yamlover 0.3.25 → 0.3.49
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/README.md +47 -21
- package/bin/ga4.js +77 -0
- package/bin/yamlover.js +70 -24
- package/dist/agent-docs/AGENTS.md +109 -48
- package/dist/agent-docs/CLAUDE.md +1 -1
- package/dist/builtin-taxonomy/$defs/{.yamlover/meta.yamlover → .yo/meta.yo} +6 -0
- package/dist/builtin-taxonomy/$defs/board +1 -1
- package/dist/builtin-taxonomy/$defs/bullets +12 -0
- package/dist/builtin-taxonomy/$defs/chapter +20 -15
- package/dist/builtin-taxonomy/$defs/chunk +1 -1
- package/dist/builtin-taxonomy/$defs/config +1 -1
- package/dist/builtin-taxonomy/$defs/numbered +12 -0
- package/dist/builtin-taxonomy/$defs/table +17 -10
- package/dist/builtin-taxonomy/$defs/task +4 -3
- package/dist/builtin-taxonomy/tags/{.yamlover/body.yamlover → .yo/body.yo} +1 -1
- package/dist/client/assets/decoded-D_YQdg1-.js +1 -0
- package/dist/client/assets/djvu-Di4fPA-J.js +1 -0
- package/dist/client/assets/{docx-C3gzsgKj.js → docx-BSduN32X.js} +1 -1
- package/dist/client/assets/{heic-CZ82O7cO.js → heic-DOAG7EsW.js} +2 -2
- package/dist/client/assets/imagemap-B8RthxNE.js +1 -0
- package/dist/client/assets/index-Bf2L7I9e.js +752 -0
- package/dist/client/assets/index-N41EyNG2.css +1 -0
- package/dist/client/assets/map-Cf7ar1_U.js +1 -0
- package/dist/client/assets/openable-CCBlc-Ws.js +4 -0
- package/dist/client/assets/paged-bLurvatj.js +1 -0
- package/dist/client/assets/{pdf-DYI9E6LP.js → pdf-D1ox8M9A.js} +5 -5
- package/dist/client/assets/psd-AT50x-YR.js +11 -0
- package/dist/client/assets/{spreadsheet-DQ1DIIfm.js → spreadsheet-DeQh5CNF.js} +1 -1
- package/dist/client/assets/tiff-B3-awhzQ.js +1 -0
- package/dist/client/assets/xyflow-BnuhLJ6X.css +1 -0
- package/dist/client/assets/xyflow-DuQ4jjaq.js +23 -0
- package/dist/client/index.html +6 -2
- package/dist/client/yo-favicon.svg +16 -0
- package/dist/server.js +4013 -1300
- package/package.json +12 -4
- package/dist/client/assets/decoded-BfD5vW9k.js +0 -1
- package/dist/client/assets/djvu-DNElocuz.js +0 -1
- package/dist/client/assets/imagemap-B0by6U04.js +0 -1
- package/dist/client/assets/index-C3Raqez8.css +0 -1
- package/dist/client/assets/index-DHpG_wBG.js +0 -665
- package/dist/client/assets/map-Byy6U5tc.js +0 -1
- package/dist/client/assets/openable-d9huG_69.js +0 -4
- package/dist/client/assets/paged-DFA2Muzj.js +0 -1
- package/dist/client/assets/psd-CmNn7r6o.js +0 -11
- package/dist/client/assets/tiff-BoTWsGfS.js +0 -1
|
@@ -1,665 +0,0 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/pdf-DYI9E6LP.js","assets/paged-DFA2Muzj.js","assets/pdf-m5e3jsV4.css","assets/djvu-DNElocuz.js","assets/psd-CmNn7r6o.js","assets/decoded-BfD5vW9k.js","assets/imagemap-B0by6U04.js","assets/openable-d9huG_69.js","assets/openable-CIGW-MKW.css","assets/tiff-BoTWsGfS.js","assets/_commonjs-dynamic-modules-TDtrdbi3.js","assets/heic-CZ82O7cO.js","assets/docx-C3gzsgKj.js","assets/map-Byy6U5tc.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 l of s.addedNodes)l.tagName==="LINK"&&l.rel==="modulepreload"&&n(l)}).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 L9=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Yb(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var M_={exports:{}},rc={},D_={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 lo=Symbol.for("react.element"),Gb=Symbol.for("react.portal"),Kb=Symbol.for("react.fragment"),Xb=Symbol.for("react.strict_mode"),Qb=Symbol.for("react.profiler"),Jb=Symbol.for("react.provider"),Zb=Symbol.for("react.context"),Ob=Symbol.for("react.forward_ref"),e2=Symbol.for("react.suspense"),t2=Symbol.for("react.memo"),r2=Symbol.for("react.lazy"),Dh=Symbol.iterator;function n2(e){return e===null||typeof e!="object"?null:(e=Dh&&e[Dh]||e["@@iterator"],typeof e=="function"?e:null)}var L_={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},F_=Object.assign,j_={};function Xa(e,t,r){this.props=e,this.context=t,this.refs=j_,this.updater=r||L_}Xa.prototype.isReactComponent={};Xa.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")};Xa.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function B_(){}B_.prototype=Xa.prototype;function P0(e,t,r){this.props=e,this.context=t,this.refs=j_,this.updater=r||L_}var U0=P0.prototype=new B_;U0.constructor=P0;F_(U0,Xa.prototype);U0.isPureReactComponent=!0;var Lh=Array.isArray,P_=Object.prototype.hasOwnProperty,H0={current:null},U_={key:!0,ref:!0,__self:!0,__source:!0};function H_(e,t,r){var n,i={},s=null,l=null;if(t!=null)for(n in t.ref!==void 0&&(l=t.ref),t.key!==void 0&&(s=""+t.key),t)P_.call(t,n)&&!U_.hasOwnProperty(n)&&(i[n]=t[n]);var $=arguments.length-2;if($===1)i.children=r;else if(1<$){for(var h=Array($),d=0;d<$;d++)h[d]=arguments[d+2];i.children=h}if(e&&e.defaultProps)for(n in $=e.defaultProps,$)i[n]===void 0&&(i[n]=$[n]);return{$$typeof:lo,type:e,key:s,ref:l,props:i,_owner:H0.current}}function i2(e,t){return{$$typeof:lo,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function W0(e){return typeof e=="object"&&e!==null&&e.$$typeof===lo}function s2(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(r){return t[r]})}var Fh=/\/+/g;function e$(e,t){return typeof e=="object"&&e!==null&&e.key!=null?s2(""+e.key):t.toString(36)}function eu(e,t,r,n,i){var s=typeof e;(s==="undefined"||s==="boolean")&&(e=null);var l=!1;if(e===null)l=!0;else switch(s){case"string":case"number":l=!0;break;case"object":switch(e.$$typeof){case lo:case Gb:l=!0}}if(l)return l=e,i=i(l),e=n===""?"."+e$(l,0):n,Lh(i)?(r="",e!=null&&(r=e.replace(Fh,"$&/")+"/"),eu(i,t,r,"",function(d){return d})):i!=null&&(W0(i)&&(i=i2(i,r+(!i.key||l&&l.key===i.key?"":(""+i.key).replace(Fh,"$&/")+"/")+e)),t.push(i)),1;if(l=0,n=n===""?".":n+":",Lh(e))for(var $=0;$<e.length;$++){s=e[$];var h=n+e$(s,$);l+=eu(s,t,r,h,i)}else if(h=n2(e),typeof h=="function")for(e=h.call(e),$=0;!(s=e.next()).done;)s=s.value,h=n+e$(s,$++),l+=eu(s,t,r,h,i);else if(s==="object")throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return l}function xo(e,t,r){if(e==null)return e;var n=[],i=0;return eu(e,n,"","",function(s){return t.call(r,s,i++)}),n}function a2(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 dn={current:null},tu={transition:null},l2={ReactCurrentDispatcher:dn,ReactCurrentBatchConfig:tu,ReactCurrentOwner:H0};function W_(){throw Error("act(...) is not supported in production builds of React.")}Ot.Children={map:xo,forEach:function(e,t,r){xo(e,function(){t.apply(this,arguments)},r)},count:function(e){var t=0;return xo(e,function(){t++}),t},toArray:function(e){return xo(e,function(t){return t})||[]},only:function(e){if(!W0(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};Ot.Component=Xa;Ot.Fragment=Kb;Ot.Profiler=Qb;Ot.PureComponent=P0;Ot.StrictMode=Xb;Ot.Suspense=e2;Ot.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=l2;Ot.act=W_;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=F_({},e.props),i=e.key,s=e.ref,l=e._owner;if(t!=null){if(t.ref!==void 0&&(s=t.ref,l=H0.current),t.key!==void 0&&(i=""+t.key),e.type&&e.type.defaultProps)var $=e.type.defaultProps;for(h in t)P_.call(t,h)&&!U_.hasOwnProperty(h)&&(n[h]=t[h]===void 0&&$!==void 0?$[h]:t[h])}var h=arguments.length-2;if(h===1)n.children=r;else if(1<h){$=Array(h);for(var d=0;d<h;d++)$[d]=arguments[d+2];n.children=$}return{$$typeof:lo,type:e.type,key:i,ref:s,props:n,_owner:l}};Ot.createContext=function(e){return e={$$typeof:Zb,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:Jb,_context:e},e.Consumer=e};Ot.createElement=H_;Ot.createFactory=function(e){var t=H_.bind(null,e);return t.type=e,t};Ot.createRef=function(){return{current:null}};Ot.forwardRef=function(e){return{$$typeof:Ob,render:e}};Ot.isValidElement=W0;Ot.lazy=function(e){return{$$typeof:r2,_payload:{_status:-1,_result:e},_init:a2}};Ot.memo=function(e,t){return{$$typeof:t2,type:e,compare:t===void 0?null:t}};Ot.startTransition=function(e){var t=tu.transition;tu.transition={};try{e()}finally{tu.transition=t}};Ot.unstable_act=W_;Ot.useCallback=function(e,t){return dn.current.useCallback(e,t)};Ot.useContext=function(e){return dn.current.useContext(e)};Ot.useDebugValue=function(){};Ot.useDeferredValue=function(e){return dn.current.useDeferredValue(e)};Ot.useEffect=function(e,t){return dn.current.useEffect(e,t)};Ot.useId=function(){return dn.current.useId()};Ot.useImperativeHandle=function(e,t,r){return dn.current.useImperativeHandle(e,t,r)};Ot.useInsertionEffect=function(e,t){return dn.current.useInsertionEffect(e,t)};Ot.useLayoutEffect=function(e,t){return dn.current.useLayoutEffect(e,t)};Ot.useMemo=function(e,t){return dn.current.useMemo(e,t)};Ot.useReducer=function(e,t,r){return dn.current.useReducer(e,t,r)};Ot.useRef=function(e){return dn.current.useRef(e)};Ot.useState=function(e){return dn.current.useState(e)};Ot.useSyncExternalStore=function(e,t,r){return dn.current.useSyncExternalStore(e,t,r)};Ot.useTransition=function(){return dn.current.useTransition()};Ot.version="18.3.1";D_.exports=Ot;var ut=D_.exports;const o2=Yb(ut);/**
|
|
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 u2=ut,c2=Symbol.for("react.element"),$2=Symbol.for("react.fragment"),f2=Object.prototype.hasOwnProperty,d2=u2.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,h2={key:!0,ref:!0,__self:!0,__source:!0};function V_(e,t,r){var n,i={},s=null,l=null;r!==void 0&&(s=""+r),t.key!==void 0&&(s=""+t.key),t.ref!==void 0&&(l=t.ref);for(n in t)f2.call(t,n)&&!h2.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:c2,type:e,key:s,ref:l,props:i,_owner:d2.current}}rc.Fragment=$2;rc.jsx=V_;rc.jsxs=V_;M_.exports=rc;var le=M_.exports,Y_={exports:{}},In={},G_={exports:{}},K_={};/**
|
|
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(fe,V){var x=fe.length;fe.push(V);e:for(;0<x;){var f=x-1>>>1,o=fe[f];if(0<i(o,V))fe[f]=V,fe[x]=o,x=f;else break e}}function r(fe){return fe.length===0?null:fe[0]}function n(fe){if(fe.length===0)return null;var V=fe[0],x=fe.pop();if(x!==V){fe[0]=x;e:for(var f=0,o=fe.length,c=o>>>1;f<c;){var p=2*(f+1)-1,m=fe[p],E=p+1,T=fe[E];if(0>i(m,x))E<o&&0>i(T,m)?(fe[f]=T,fe[E]=x,f=E):(fe[f]=m,fe[p]=x,f=p);else if(E<o&&0>i(T,x))fe[f]=T,fe[E]=x,f=E;else break e}}return V}function i(fe,V){var x=fe.sortIndex-V.sortIndex;return x!==0?x:fe.id-V.id}if(typeof performance=="object"&&typeof performance.now=="function"){var s=performance;e.unstable_now=function(){return s.now()}}else{var l=Date,$=l.now();e.unstable_now=function(){return l.now()-$}}var h=[],d=[],w=1,A=null,N=3,U=!1,O=!1,j=!1,q=typeof setTimeout=="function"?setTimeout:null,Y=typeof clearTimeout=="function"?clearTimeout:null,he=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function ne(fe){for(var V=r(d);V!==null;){if(V.callback===null)n(d);else if(V.startTime<=fe)n(d),V.sortIndex=V.expirationTime,t(h,V);else break;V=r(d)}}function _e(fe){if(j=!1,ne(fe),!O)if(r(h)!==null)O=!0,W(Q);else{var V=r(d);V!==null&&Fe(_e,V.startTime-fe)}}function Q(fe,V){O=!1,j&&(j=!1,Y(Ee),Ee=-1),U=!0;var x=N;try{for(ne(V),A=r(h);A!==null&&(!(A.expirationTime>V)||fe&&!de());){var f=A.callback;if(typeof f=="function"){A.callback=null,N=A.priorityLevel;var o=f(A.expirationTime<=V);V=e.unstable_now(),typeof o=="function"?A.callback=o:A===r(h)&&n(h),ne(V)}else n(h);A=r(h)}if(A!==null)var c=!0;else{var p=r(d);p!==null&&Fe(_e,p.startTime-V),c=!1}return c}finally{A=null,N=x,U=!1}}var be=!1,oe=null,Ee=-1,te=5,Ce=-1;function de(){return!(e.unstable_now()-Ce<te)}function k(){if(oe!==null){var fe=e.unstable_now();Ce=fe;var V=!0;try{V=oe(!0,fe)}finally{V?Ae():(be=!1,oe=null)}}else be=!1}var Ae;if(typeof he=="function")Ae=function(){he(k)};else if(typeof MessageChannel<"u"){var B=new MessageChannel,pe=B.port2;B.port1.onmessage=k,Ae=function(){pe.postMessage(null)}}else Ae=function(){q(k,0)};function W(fe){oe=fe,be||(be=!0,Ae())}function Fe(fe,V){Ee=q(function(){fe(e.unstable_now())},V)}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(fe){fe.callback=null},e.unstable_continueExecution=function(){O||U||(O=!0,W(Q))},e.unstable_forceFrameRate=function(fe){0>fe||125<fe?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):te=0<fe?Math.floor(1e3/fe):5},e.unstable_getCurrentPriorityLevel=function(){return N},e.unstable_getFirstCallbackNode=function(){return r(h)},e.unstable_next=function(fe){switch(N){case 1:case 2:case 3:var V=3;break;default:V=N}var x=N;N=V;try{return fe()}finally{N=x}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(fe,V){switch(fe){case 1:case 2:case 3:case 4:case 5:break;default:fe=3}var x=N;N=fe;try{return V()}finally{N=x}},e.unstable_scheduleCallback=function(fe,V,x){var f=e.unstable_now();switch(typeof x=="object"&&x!==null?(x=x.delay,x=typeof x=="number"&&0<x?f+x:f):x=f,fe){case 1:var o=-1;break;case 2:o=250;break;case 5:o=1073741823;break;case 4:o=1e4;break;default:o=5e3}return o=x+o,fe={id:w++,callback:V,priorityLevel:fe,startTime:x,expirationTime:o,sortIndex:-1},x>f?(fe.sortIndex=x,t(d,fe),r(h)===null&&fe===r(d)&&(j?(Y(Ee),Ee=-1):j=!0,Fe(_e,x-f))):(fe.sortIndex=o,t(h,fe),O||U||(O=!0,W(Q))),fe},e.unstable_shouldYield=de,e.unstable_wrapCallback=function(fe){var V=N;return function(){var x=N;N=V;try{return fe.apply(this,arguments)}finally{N=x}}}})(K_);G_.exports=K_;var p2=G_.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 m2=ut,Rn=p2;function Rt(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 X_=new Set,Dl={};function Js(e,t){Da(e,t),Da(e+"Capture",t)}function Da(e,t){for(Dl[e]=t,e=0;e<t.length;e++)X_.add(t[e])}var qi=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),af=Object.prototype.hasOwnProperty,_2=/^[: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]*$/,jh={},Bh={};function g2(e){return af.call(Bh,e)?!0:af.call(jh,e)?!1:_2.test(e)?Bh[e]=!0:(jh[e]=!0,!1)}function v2(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 y2(e,t,r,n){if(t===null||typeof t>"u"||v2(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 hn(e,t,r,n,i,s,l){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=l}var Xr={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Xr[e]=new hn(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Xr[t]=new hn(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Xr[e]=new hn(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Xr[e]=new hn(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){Xr[e]=new hn(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Xr[e]=new hn(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Xr[e]=new hn(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Xr[e]=new hn(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Xr[e]=new hn(e,5,!1,e.toLowerCase(),null,!1,!1)});var V0=/[\-:]([a-z])/g;function Y0(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(V0,Y0);Xr[t]=new hn(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(V0,Y0);Xr[t]=new hn(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(V0,Y0);Xr[t]=new hn(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Xr[e]=new hn(e,1,!1,e.toLowerCase(),null,!1,!1)});Xr.xlinkHref=new hn("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Xr[e]=new hn(e,1,!1,e.toLowerCase(),null,!0,!0)});function G0(e,t,r,n){var i=Xr.hasOwnProperty(t)?Xr[t]:null;(i!==null?i.type!==0:n||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(y2(t,r,i,n)&&(r=null),n||i===null?g2(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 ji=m2.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,wo=Symbol.for("react.element"),ha=Symbol.for("react.portal"),pa=Symbol.for("react.fragment"),K0=Symbol.for("react.strict_mode"),lf=Symbol.for("react.profiler"),Q_=Symbol.for("react.provider"),J_=Symbol.for("react.context"),X0=Symbol.for("react.forward_ref"),of=Symbol.for("react.suspense"),uf=Symbol.for("react.suspense_list"),Q0=Symbol.for("react.memo"),Ji=Symbol.for("react.lazy"),Z_=Symbol.for("react.offscreen"),Ph=Symbol.iterator;function sl(e){return e===null||typeof e!="object"?null:(e=Ph&&e[Ph]||e["@@iterator"],typeof e=="function"?e:null)}var br=Object.assign,t$;function ml(e){if(t$===void 0)try{throw Error()}catch(r){var t=r.stack.trim().match(/\n( *(at )?)/);t$=t&&t[1]||""}return`
|
|
35
|
-
`+t$+e}var r$=!1;function n$(e,t){if(!e||r$)return"";r$=!0;var r=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(d){var n=d}Reflect.construct(e,[],t)}else{try{t.call()}catch(d){n=d}e.call(t.prototype)}else{try{throw Error()}catch(d){n=d}e()}}catch(d){if(d&&n&&typeof d.stack=="string"){for(var i=d.stack.split(`
|
|
36
|
-
`),s=n.stack.split(`
|
|
37
|
-
`),l=i.length-1,$=s.length-1;1<=l&&0<=$&&i[l]!==s[$];)$--;for(;1<=l&&0<=$;l--,$--)if(i[l]!==s[$]){if(l!==1||$!==1)do if(l--,$--,0>$||i[l]!==s[$]){var h=`
|
|
38
|
-
`+i[l].replace(" at new "," at ");return e.displayName&&h.includes("<anonymous>")&&(h=h.replace("<anonymous>",e.displayName)),h}while(1<=l&&0<=$);break}}}finally{r$=!1,Error.prepareStackTrace=r}return(e=e?e.displayName||e.name:"")?ml(e):""}function b2(e){switch(e.tag){case 5:return ml(e.type);case 16:return ml("Lazy");case 13:return ml("Suspense");case 19:return ml("SuspenseList");case 0:case 2:case 15:return e=n$(e.type,!1),e;case 11:return e=n$(e.type.render,!1),e;case 1:return e=n$(e.type,!0),e;default:return""}}function cf(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 pa:return"Fragment";case ha:return"Portal";case lf:return"Profiler";case K0:return"StrictMode";case of:return"Suspense";case uf:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case J_:return(e.displayName||"Context")+".Consumer";case Q_:return(e._context.displayName||"Context")+".Provider";case X0:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Q0:return t=e.displayName||null,t!==null?t:cf(e.type)||"Memo";case Ji:t=e._payload,e=e._init;try{return cf(e(t))}catch{}}return null}function x2(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 cf(t);case 8:return t===K0?"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 ds(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function O_(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function w2(e){var t=O_(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(l){n=""+l,s.call(this,l)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(l){n=""+l},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function ko(e){e._valueTracker||(e._valueTracker=w2(e))}function e1(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var r=t.getValue(),n="";return e&&(n=O_(e)?e.checked?"true":"false":e.value),e=n,e!==r?(t.setValue(e),!0):!1}function mu(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 $f(e,t){var r=t.checked;return br({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:r??e._wrapperState.initialChecked})}function Uh(e,t){var r=t.defaultValue==null?"":t.defaultValue,n=t.checked!=null?t.checked:t.defaultChecked;r=ds(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 t1(e,t){t=t.checked,t!=null&&G0(e,"checked",t,!1)}function ff(e,t){t1(e,t);var r=ds(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")?df(e,t.type,r):t.hasOwnProperty("defaultValue")&&df(e,t.type,ds(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Hh(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 df(e,t,r){(t!=="number"||mu(e.ownerDocument)!==e)&&(r==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+r&&(e.defaultValue=""+r))}var _l=Array.isArray;function Ca(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=""+ds(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 hf(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(Rt(91));return br({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function Wh(e,t){var r=t.value;if(r==null){if(r=t.children,t=t.defaultValue,r!=null){if(t!=null)throw Error(Rt(92));if(_l(r)){if(1<r.length)throw Error(Rt(93));r=r[0]}t=r}t==null&&(t=""),r=t}e._wrapperState={initialValue:ds(r)}}function r1(e,t){var r=ds(t.value),n=ds(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 Vh(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function n1(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 pf(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?n1(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var So,i1=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(So=So||document.createElement("div"),So.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=So.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Ll(e,t){if(t){var r=e.firstChild;if(r&&r===e.lastChild&&r.nodeType===3){r.nodeValue=t;return}}e.textContent=t}var wl={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},k2=["Webkit","ms","Moz","O"];Object.keys(wl).forEach(function(e){k2.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),wl[t]=wl[e]})});function s1(e,t,r){return t==null||typeof t=="boolean"||t===""?"":r||typeof t!="number"||t===0||wl.hasOwnProperty(e)&&wl[e]?(""+t).trim():t+"px"}function a1(e,t){e=e.style;for(var r in t)if(t.hasOwnProperty(r)){var n=r.indexOf("--")===0,i=s1(r,t[r],n);r==="float"&&(r="cssFloat"),n?e.setProperty(r,i):e[r]=i}}var S2=br({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function mf(e,t){if(t){if(S2[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(Rt(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(Rt(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(Rt(61))}if(t.style!=null&&typeof t.style!="object")throw Error(Rt(62))}}function _f(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 gf=null;function J0(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var vf=null,Ta=null,Ra=null;function Yh(e){if(e=co(e)){if(typeof vf!="function")throw Error(Rt(280));var t=e.stateNode;t&&(t=lc(t),vf(e.stateNode,e.type,t))}}function l1(e){Ta?Ra?Ra.push(e):Ra=[e]:Ta=e}function o1(){if(Ta){var e=Ta,t=Ra;if(Ra=Ta=null,Yh(e),t)for(e=0;e<t.length;e++)Yh(t[e])}}function u1(e,t){return e(t)}function c1(){}var i$=!1;function $1(e,t,r){if(i$)return e(t,r);i$=!0;try{return u1(e,t,r)}finally{i$=!1,(Ta!==null||Ra!==null)&&(c1(),o1())}}function Fl(e,t){var r=e.stateNode;if(r===null)return null;var n=lc(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(Rt(231,t,typeof r));return r}var yf=!1;if(qi)try{var al={};Object.defineProperty(al,"passive",{get:function(){yf=!0}}),window.addEventListener("test",al,al),window.removeEventListener("test",al,al)}catch{yf=!1}function E2(e,t,r,n,i,s,l,$,h){var d=Array.prototype.slice.call(arguments,3);try{t.apply(r,d)}catch(w){this.onError(w)}}var kl=!1,_u=null,gu=!1,bf=null,A2={onError:function(e){kl=!0,_u=e}};function C2(e,t,r,n,i,s,l,$,h){kl=!1,_u=null,E2.apply(A2,arguments)}function T2(e,t,r,n,i,s,l,$,h){if(C2.apply(this,arguments),kl){if(kl){var d=_u;kl=!1,_u=null}else throw Error(Rt(198));gu||(gu=!0,bf=d)}}function Zs(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 f1(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 Gh(e){if(Zs(e)!==e)throw Error(Rt(188))}function R2(e){var t=e.alternate;if(!t){if(t=Zs(e),t===null)throw Error(Rt(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 Gh(i),e;if(s===n)return Gh(i),t;s=s.sibling}throw Error(Rt(188))}if(r.return!==n.return)r=i,n=s;else{for(var l=!1,$=i.child;$;){if($===r){l=!0,r=i,n=s;break}if($===n){l=!0,n=i,r=s;break}$=$.sibling}if(!l){for($=s.child;$;){if($===r){l=!0,r=s,n=i;break}if($===n){l=!0,n=s,r=i;break}$=$.sibling}if(!l)throw Error(Rt(189))}}if(r.alternate!==n)throw Error(Rt(190))}if(r.tag!==3)throw Error(Rt(188));return r.stateNode.current===r?e:t}function d1(e){return e=R2(e),e!==null?h1(e):null}function h1(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=h1(e);if(t!==null)return t;e=e.sibling}return null}var p1=Rn.unstable_scheduleCallback,Kh=Rn.unstable_cancelCallback,z2=Rn.unstable_shouldYield,N2=Rn.unstable_requestPaint,Ar=Rn.unstable_now,I2=Rn.unstable_getCurrentPriorityLevel,Z0=Rn.unstable_ImmediatePriority,m1=Rn.unstable_UserBlockingPriority,vu=Rn.unstable_NormalPriority,q2=Rn.unstable_LowPriority,_1=Rn.unstable_IdlePriority,nc=null,hi=null;function M2(e){if(hi&&typeof hi.onCommitFiberRoot=="function")try{hi.onCommitFiberRoot(nc,e,void 0,(e.current.flags&128)===128)}catch{}}var ni=Math.clz32?Math.clz32:F2,D2=Math.log,L2=Math.LN2;function F2(e){return e>>>=0,e===0?32:31-(D2(e)/L2|0)|0}var Eo=64,Ao=4194304;function gl(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 yu(e,t){var r=e.pendingLanes;if(r===0)return 0;var n=0,i=e.suspendedLanes,s=e.pingedLanes,l=r&268435455;if(l!==0){var $=l&~i;$!==0?n=gl($):(s&=l,s!==0&&(n=gl(s)))}else l=r&~i,l!==0?n=gl(l):s!==0&&(n=gl(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-ni(t),i=1<<r,n|=e[r],t&=~i;return n}function j2(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 B2(e,t){for(var r=e.suspendedLanes,n=e.pingedLanes,i=e.expirationTimes,s=e.pendingLanes;0<s;){var l=31-ni(s),$=1<<l,h=i[l];h===-1?(!($&r)||$&n)&&(i[l]=j2($,t)):h<=t&&(e.expiredLanes|=$),s&=~$}}function xf(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function g1(){var e=Eo;return Eo<<=1,!(Eo&4194240)&&(Eo=64),e}function s$(e){for(var t=[],r=0;31>r;r++)t.push(e);return t}function oo(e,t,r){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-ni(t),e[t]=r}function P2(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-ni(r),s=1<<i;t[i]=0,n[i]=-1,e[i]=-1,r&=~s}}function O0(e,t){var r=e.entangledLanes|=t;for(e=e.entanglements;r;){var n=31-ni(r),i=1<<n;i&t|e[n]&t&&(e[n]|=t),r&=~i}}var ar=0;function v1(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var y1,ed,b1,x1,w1,wf=!1,Co=[],ss=null,as=null,ls=null,jl=new Map,Bl=new Map,Oi=[],U2="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 Xh(e,t){switch(e){case"focusin":case"focusout":ss=null;break;case"dragenter":case"dragleave":as=null;break;case"mouseover":case"mouseout":ls=null;break;case"pointerover":case"pointerout":jl.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Bl.delete(t.pointerId)}}function ll(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=co(t),t!==null&&ed(t)),e):(e.eventSystemFlags|=n,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function H2(e,t,r,n,i){switch(t){case"focusin":return ss=ll(ss,e,t,r,n,i),!0;case"dragenter":return as=ll(as,e,t,r,n,i),!0;case"mouseover":return ls=ll(ls,e,t,r,n,i),!0;case"pointerover":var s=i.pointerId;return jl.set(s,ll(jl.get(s)||null,e,t,r,n,i)),!0;case"gotpointercapture":return s=i.pointerId,Bl.set(s,ll(Bl.get(s)||null,e,t,r,n,i)),!0}return!1}function k1(e){var t=Ds(e.target);if(t!==null){var r=Zs(t);if(r!==null){if(t=r.tag,t===13){if(t=f1(r),t!==null){e.blockedOn=t,w1(e.priority,function(){b1(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 ru(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var r=kf(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(r===null){r=e.nativeEvent;var n=new r.constructor(r.type,r);gf=n,r.target.dispatchEvent(n),gf=null}else return t=co(r),t!==null&&ed(t),e.blockedOn=r,!1;t.shift()}return!0}function Qh(e,t,r){ru(e)&&r.delete(t)}function W2(){wf=!1,ss!==null&&ru(ss)&&(ss=null),as!==null&&ru(as)&&(as=null),ls!==null&&ru(ls)&&(ls=null),jl.forEach(Qh),Bl.forEach(Qh)}function ol(e,t){e.blockedOn===t&&(e.blockedOn=null,wf||(wf=!0,Rn.unstable_scheduleCallback(Rn.unstable_NormalPriority,W2)))}function Pl(e){function t(i){return ol(i,e)}if(0<Co.length){ol(Co[0],e);for(var r=1;r<Co.length;r++){var n=Co[r];n.blockedOn===e&&(n.blockedOn=null)}}for(ss!==null&&ol(ss,e),as!==null&&ol(as,e),ls!==null&&ol(ls,e),jl.forEach(t),Bl.forEach(t),r=0;r<Oi.length;r++)n=Oi[r],n.blockedOn===e&&(n.blockedOn=null);for(;0<Oi.length&&(r=Oi[0],r.blockedOn===null);)k1(r),r.blockedOn===null&&Oi.shift()}var za=ji.ReactCurrentBatchConfig,bu=!0;function V2(e,t,r,n){var i=ar,s=za.transition;za.transition=null;try{ar=1,td(e,t,r,n)}finally{ar=i,za.transition=s}}function Y2(e,t,r,n){var i=ar,s=za.transition;za.transition=null;try{ar=4,td(e,t,r,n)}finally{ar=i,za.transition=s}}function td(e,t,r,n){if(bu){var i=kf(e,t,r,n);if(i===null)p$(e,t,n,xu,r),Xh(e,n);else if(H2(i,e,t,r,n))n.stopPropagation();else if(Xh(e,n),t&4&&-1<U2.indexOf(e)){for(;i!==null;){var s=co(i);if(s!==null&&y1(s),s=kf(e,t,r,n),s===null&&p$(e,t,n,xu,r),s===i)break;i=s}i!==null&&n.stopPropagation()}else p$(e,t,n,null,r)}}var xu=null;function kf(e,t,r,n){if(xu=null,e=J0(n),e=Ds(e),e!==null)if(t=Zs(e),t===null)e=null;else if(r=t.tag,r===13){if(e=f1(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 xu=e,null}function S1(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(I2()){case Z0:return 1;case m1:return 4;case vu:case q2:return 16;case _1:return 536870912;default:return 16}default:return 16}}var rs=null,rd=null,nu=null;function E1(){if(nu)return nu;var e,t=rd,r=t.length,n,i="value"in rs?rs.value:rs.textContent,s=i.length;for(e=0;e<r&&t[e]===i[e];e++);var l=r-e;for(n=1;n<=l&&t[r-n]===i[s-n];n++);return nu=i.slice(e,1<n?1-n:void 0)}function iu(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 To(){return!0}function Jh(){return!1}function qn(e){function t(r,n,i,s,l){this._reactName=r,this._targetInst=i,this.type=n,this.nativeEvent=s,this.target=l,this.currentTarget=null;for(var $ in e)e.hasOwnProperty($)&&(r=e[$],this[$]=r?r(s):s[$]);return this.isDefaultPrevented=(s.defaultPrevented!=null?s.defaultPrevented:s.returnValue===!1)?To:Jh,this.isPropagationStopped=Jh,this}return br(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var r=this.nativeEvent;r&&(r.preventDefault?r.preventDefault():typeof r.returnValue!="unknown"&&(r.returnValue=!1),this.isDefaultPrevented=To)},stopPropagation:function(){var r=this.nativeEvent;r&&(r.stopPropagation?r.stopPropagation():typeof r.cancelBubble!="unknown"&&(r.cancelBubble=!0),this.isPropagationStopped=To)},persist:function(){},isPersistent:To}),t}var Qa={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},nd=qn(Qa),uo=br({},Qa,{view:0,detail:0}),G2=qn(uo),a$,l$,ul,ic=br({},uo,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:id,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!==ul&&(ul&&e.type==="mousemove"?(a$=e.screenX-ul.screenX,l$=e.screenY-ul.screenY):l$=a$=0,ul=e),a$)},movementY:function(e){return"movementY"in e?e.movementY:l$}}),Zh=qn(ic),K2=br({},ic,{dataTransfer:0}),X2=qn(K2),Q2=br({},uo,{relatedTarget:0}),o$=qn(Q2),J2=br({},Qa,{animationName:0,elapsedTime:0,pseudoElement:0}),Z2=qn(J2),O2=br({},Qa,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),e4=qn(O2),t4=br({},Qa,{data:0}),Oh=qn(t4),r4={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},n4={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"},i4={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function s4(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=i4[e])?!!t[e]:!1}function id(){return s4}var a4=br({},uo,{key:function(e){if(e.key){var t=r4[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=iu(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?n4[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:id,charCode:function(e){return e.type==="keypress"?iu(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?iu(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),l4=qn(a4),o4=br({},ic,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),ep=qn(o4),u4=br({},uo,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:id}),c4=qn(u4),$4=br({},Qa,{propertyName:0,elapsedTime:0,pseudoElement:0}),f4=qn($4),d4=br({},ic,{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}),h4=qn(d4),p4=[9,13,27,32],sd=qi&&"CompositionEvent"in window,Sl=null;qi&&"documentMode"in document&&(Sl=document.documentMode);var m4=qi&&"TextEvent"in window&&!Sl,A1=qi&&(!sd||Sl&&8<Sl&&11>=Sl),tp=" ",rp=!1;function C1(e,t){switch(e){case"keyup":return p4.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function T1(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var ma=!1;function _4(e,t){switch(e){case"compositionend":return T1(t);case"keypress":return t.which!==32?null:(rp=!0,tp);case"textInput":return e=t.data,e===tp&&rp?null:e;default:return null}}function g4(e,t){if(ma)return e==="compositionend"||!sd&&C1(e,t)?(e=E1(),nu=rd=rs=null,ma=!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 A1&&t.locale!=="ko"?null:t.data;default:return null}}var v4={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 np(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!v4[e.type]:t==="textarea"}function R1(e,t,r,n){l1(n),t=wu(t,"onChange"),0<t.length&&(r=new nd("onChange","change",null,r,n),e.push({event:r,listeners:t}))}var El=null,Ul=null;function y4(e){P1(e,0)}function sc(e){var t=va(e);if(e1(t))return e}function b4(e,t){if(e==="change")return t}var z1=!1;if(qi){var u$;if(qi){var c$="oninput"in document;if(!c$){var ip=document.createElement("div");ip.setAttribute("oninput","return;"),c$=typeof ip.oninput=="function"}u$=c$}else u$=!1;z1=u$&&(!document.documentMode||9<document.documentMode)}function sp(){El&&(El.detachEvent("onpropertychange",N1),Ul=El=null)}function N1(e){if(e.propertyName==="value"&&sc(Ul)){var t=[];R1(t,Ul,e,J0(e)),$1(y4,t)}}function x4(e,t,r){e==="focusin"?(sp(),El=t,Ul=r,El.attachEvent("onpropertychange",N1)):e==="focusout"&&sp()}function w4(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return sc(Ul)}function k4(e,t){if(e==="click")return sc(t)}function S4(e,t){if(e==="input"||e==="change")return sc(t)}function E4(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var si=typeof Object.is=="function"?Object.is:E4;function Hl(e,t){if(si(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(!af.call(t,i)||!si(e[i],t[i]))return!1}return!0}function ap(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function lp(e,t){var r=ap(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=ap(r)}}function I1(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?I1(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function q1(){for(var e=window,t=mu();t instanceof e.HTMLIFrameElement;){try{var r=typeof t.contentWindow.location.href=="string"}catch{r=!1}if(r)e=t.contentWindow;else break;t=mu(e.document)}return t}function ad(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 A4(e){var t=q1(),r=e.focusedElem,n=e.selectionRange;if(t!==r&&r&&r.ownerDocument&&I1(r.ownerDocument.documentElement,r)){if(n!==null&&ad(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=lp(r,s);var l=lp(r,n);i&&l&&(e.rangeCount!==1||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==l.node||e.focusOffset!==l.offset)&&(t=t.createRange(),t.setStart(i.node,i.offset),e.removeAllRanges(),s>n?(e.addRange(t),e.extend(l.node,l.offset)):(t.setEnd(l.node,l.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 C4=qi&&"documentMode"in document&&11>=document.documentMode,_a=null,Sf=null,Al=null,Ef=!1;function op(e,t,r){var n=r.window===r?r.document:r.nodeType===9?r:r.ownerDocument;Ef||_a==null||_a!==mu(n)||(n=_a,"selectionStart"in n&&ad(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}),Al&&Hl(Al,n)||(Al=n,n=wu(Sf,"onSelect"),0<n.length&&(t=new nd("onSelect","select",null,t,r),e.push({event:t,listeners:n}),t.target=_a)))}function Ro(e,t){var r={};return r[e.toLowerCase()]=t.toLowerCase(),r["Webkit"+e]="webkit"+t,r["Moz"+e]="moz"+t,r}var ga={animationend:Ro("Animation","AnimationEnd"),animationiteration:Ro("Animation","AnimationIteration"),animationstart:Ro("Animation","AnimationStart"),transitionend:Ro("Transition","TransitionEnd")},$$={},M1={};qi&&(M1=document.createElement("div").style,"AnimationEvent"in window||(delete ga.animationend.animation,delete ga.animationiteration.animation,delete ga.animationstart.animation),"TransitionEvent"in window||delete ga.transitionend.transition);function ac(e){if($$[e])return $$[e];if(!ga[e])return e;var t=ga[e],r;for(r in t)if(t.hasOwnProperty(r)&&r in M1)return $$[e]=t[r];return e}var D1=ac("animationend"),L1=ac("animationiteration"),F1=ac("animationstart"),j1=ac("transitionend"),B1=new Map,up="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 xs(e,t){B1.set(e,t),Js(t,[e])}for(var f$=0;f$<up.length;f$++){var d$=up[f$],T4=d$.toLowerCase(),R4=d$[0].toUpperCase()+d$.slice(1);xs(T4,"on"+R4)}xs(D1,"onAnimationEnd");xs(L1,"onAnimationIteration");xs(F1,"onAnimationStart");xs("dblclick","onDoubleClick");xs("focusin","onFocus");xs("focusout","onBlur");xs(j1,"onTransitionEnd");Da("onMouseEnter",["mouseout","mouseover"]);Da("onMouseLeave",["mouseout","mouseover"]);Da("onPointerEnter",["pointerout","pointerover"]);Da("onPointerLeave",["pointerout","pointerover"]);Js("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));Js("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));Js("onBeforeInput",["compositionend","keypress","textInput","paste"]);Js("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));Js("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));Js("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var vl="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(" "),z4=new Set("cancel close invalid load scroll toggle".split(" ").concat(vl));function cp(e,t,r){var n=e.type||"unknown-event";e.currentTarget=r,T2(n,t,void 0,e),e.currentTarget=null}function P1(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 l=n.length-1;0<=l;l--){var $=n[l],h=$.instance,d=$.currentTarget;if($=$.listener,h!==s&&i.isPropagationStopped())break e;cp(i,$,d),s=h}else for(l=0;l<n.length;l++){if($=n[l],h=$.instance,d=$.currentTarget,$=$.listener,h!==s&&i.isPropagationStopped())break e;cp(i,$,d),s=h}}}if(gu)throw e=bf,gu=!1,bf=null,e}function cr(e,t){var r=t[zf];r===void 0&&(r=t[zf]=new Set);var n=e+"__bubble";r.has(n)||(U1(t,e,2,!1),r.add(n))}function h$(e,t,r){var n=0;t&&(n|=4),U1(r,e,n,t)}var zo="_reactListening"+Math.random().toString(36).slice(2);function Wl(e){if(!e[zo]){e[zo]=!0,X_.forEach(function(r){r!=="selectionchange"&&(z4.has(r)||h$(r,!1,e),h$(r,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[zo]||(t[zo]=!0,h$("selectionchange",!1,t))}}function U1(e,t,r,n){switch(S1(t)){case 1:var i=V2;break;case 4:i=Y2;break;default:i=td}r=i.bind(null,t,r,e),i=void 0,!yf||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 p$(e,t,r,n,i){var s=n;if(!(t&1)&&!(t&2)&&n!==null)e:for(;;){if(n===null)return;var l=n.tag;if(l===3||l===4){var $=n.stateNode.containerInfo;if($===i||$.nodeType===8&&$.parentNode===i)break;if(l===4)for(l=n.return;l!==null;){var h=l.tag;if((h===3||h===4)&&(h=l.stateNode.containerInfo,h===i||h.nodeType===8&&h.parentNode===i))return;l=l.return}for(;$!==null;){if(l=Ds($),l===null)return;if(h=l.tag,h===5||h===6){n=s=l;continue e}$=$.parentNode}}n=n.return}$1(function(){var d=s,w=J0(r),A=[];e:{var N=B1.get(e);if(N!==void 0){var U=nd,O=e;switch(e){case"keypress":if(iu(r)===0)break e;case"keydown":case"keyup":U=l4;break;case"focusin":O="focus",U=o$;break;case"focusout":O="blur",U=o$;break;case"beforeblur":case"afterblur":U=o$;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":U=Zh;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":U=X2;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":U=c4;break;case D1:case L1:case F1:U=Z2;break;case j1:U=f4;break;case"scroll":U=G2;break;case"wheel":U=h4;break;case"copy":case"cut":case"paste":U=e4;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":U=ep}var j=(t&4)!==0,q=!j&&e==="scroll",Y=j?N!==null?N+"Capture":null:N;j=[];for(var he=d,ne;he!==null;){ne=he;var _e=ne.stateNode;if(ne.tag===5&&_e!==null&&(ne=_e,Y!==null&&(_e=Fl(he,Y),_e!=null&&j.push(Vl(he,_e,ne)))),q)break;he=he.return}0<j.length&&(N=new U(N,O,null,r,w),A.push({event:N,listeners:j}))}}if(!(t&7)){e:{if(N=e==="mouseover"||e==="pointerover",U=e==="mouseout"||e==="pointerout",N&&r!==gf&&(O=r.relatedTarget||r.fromElement)&&(Ds(O)||O[Mi]))break e;if((U||N)&&(N=w.window===w?w:(N=w.ownerDocument)?N.defaultView||N.parentWindow:window,U?(O=r.relatedTarget||r.toElement,U=d,O=O?Ds(O):null,O!==null&&(q=Zs(O),O!==q||O.tag!==5&&O.tag!==6)&&(O=null)):(U=null,O=d),U!==O)){if(j=Zh,_e="onMouseLeave",Y="onMouseEnter",he="mouse",(e==="pointerout"||e==="pointerover")&&(j=ep,_e="onPointerLeave",Y="onPointerEnter",he="pointer"),q=U==null?N:va(U),ne=O==null?N:va(O),N=new j(_e,he+"leave",U,r,w),N.target=q,N.relatedTarget=ne,_e=null,Ds(w)===d&&(j=new j(Y,he+"enter",O,r,w),j.target=ne,j.relatedTarget=q,_e=j),q=_e,U&&O)t:{for(j=U,Y=O,he=0,ne=j;ne;ne=la(ne))he++;for(ne=0,_e=Y;_e;_e=la(_e))ne++;for(;0<he-ne;)j=la(j),he--;for(;0<ne-he;)Y=la(Y),ne--;for(;he--;){if(j===Y||Y!==null&&j===Y.alternate)break t;j=la(j),Y=la(Y)}j=null}else j=null;U!==null&&$p(A,N,U,j,!1),O!==null&&q!==null&&$p(A,q,O,j,!0)}}e:{if(N=d?va(d):window,U=N.nodeName&&N.nodeName.toLowerCase(),U==="select"||U==="input"&&N.type==="file")var Q=b4;else if(np(N))if(z1)Q=S4;else{Q=w4;var be=x4}else(U=N.nodeName)&&U.toLowerCase()==="input"&&(N.type==="checkbox"||N.type==="radio")&&(Q=k4);if(Q&&(Q=Q(e,d))){R1(A,Q,r,w);break e}be&&be(e,N,d),e==="focusout"&&(be=N._wrapperState)&&be.controlled&&N.type==="number"&&df(N,"number",N.value)}switch(be=d?va(d):window,e){case"focusin":(np(be)||be.contentEditable==="true")&&(_a=be,Sf=d,Al=null);break;case"focusout":Al=Sf=_a=null;break;case"mousedown":Ef=!0;break;case"contextmenu":case"mouseup":case"dragend":Ef=!1,op(A,r,w);break;case"selectionchange":if(C4)break;case"keydown":case"keyup":op(A,r,w)}var oe;if(sd)e:{switch(e){case"compositionstart":var Ee="onCompositionStart";break e;case"compositionend":Ee="onCompositionEnd";break e;case"compositionupdate":Ee="onCompositionUpdate";break e}Ee=void 0}else ma?C1(e,r)&&(Ee="onCompositionEnd"):e==="keydown"&&r.keyCode===229&&(Ee="onCompositionStart");Ee&&(A1&&r.locale!=="ko"&&(ma||Ee!=="onCompositionStart"?Ee==="onCompositionEnd"&&ma&&(oe=E1()):(rs=w,rd="value"in rs?rs.value:rs.textContent,ma=!0)),be=wu(d,Ee),0<be.length&&(Ee=new Oh(Ee,e,null,r,w),A.push({event:Ee,listeners:be}),oe?Ee.data=oe:(oe=T1(r),oe!==null&&(Ee.data=oe)))),(oe=m4?_4(e,r):g4(e,r))&&(d=wu(d,"onBeforeInput"),0<d.length&&(w=new Oh("onBeforeInput","beforeinput",null,r,w),A.push({event:w,listeners:d}),w.data=oe))}P1(A,t)})}function Vl(e,t,r){return{instance:e,listener:t,currentTarget:r}}function wu(e,t){for(var r=t+"Capture",n=[];e!==null;){var i=e,s=i.stateNode;i.tag===5&&s!==null&&(i=s,s=Fl(e,r),s!=null&&n.unshift(Vl(e,s,i)),s=Fl(e,t),s!=null&&n.push(Vl(e,s,i))),e=e.return}return n}function la(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function $p(e,t,r,n,i){for(var s=t._reactName,l=[];r!==null&&r!==n;){var $=r,h=$.alternate,d=$.stateNode;if(h!==null&&h===n)break;$.tag===5&&d!==null&&($=d,i?(h=Fl(r,s),h!=null&&l.unshift(Vl(r,h,$))):i||(h=Fl(r,s),h!=null&&l.push(Vl(r,h,$)))),r=r.return}l.length!==0&&e.push({event:t,listeners:l})}var N4=/\r\n?/g,I4=/\u0000|\uFFFD/g;function fp(e){return(typeof e=="string"?e:""+e).replace(N4,`
|
|
39
|
-
`).replace(I4,"")}function No(e,t,r){if(t=fp(t),fp(e)!==t&&r)throw Error(Rt(425))}function ku(){}var Af=null,Cf=null;function Tf(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 Rf=typeof setTimeout=="function"?setTimeout:void 0,q4=typeof clearTimeout=="function"?clearTimeout:void 0,dp=typeof Promise=="function"?Promise:void 0,M4=typeof queueMicrotask=="function"?queueMicrotask:typeof dp<"u"?function(e){return dp.resolve(null).then(e).catch(D4)}:Rf;function D4(e){setTimeout(function(){throw e})}function m$(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),Pl(t);return}n--}else r!=="$"&&r!=="$?"&&r!=="$!"||n++;r=i}while(r);Pl(t)}function os(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 hp(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 Ja=Math.random().toString(36).slice(2),ci="__reactFiber$"+Ja,Yl="__reactProps$"+Ja,Mi="__reactContainer$"+Ja,zf="__reactEvents$"+Ja,L4="__reactListeners$"+Ja,F4="__reactHandles$"+Ja;function Ds(e){var t=e[ci];if(t)return t;for(var r=e.parentNode;r;){if(t=r[Mi]||r[ci]){if(r=t.alternate,t.child!==null||r!==null&&r.child!==null)for(e=hp(e);e!==null;){if(r=e[ci])return r;e=hp(e)}return t}e=r,r=e.parentNode}return null}function co(e){return e=e[ci]||e[Mi],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function va(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(Rt(33))}function lc(e){return e[Yl]||null}var Nf=[],ya=-1;function ws(e){return{current:e}}function dr(e){0>ya||(e.current=Nf[ya],Nf[ya]=null,ya--)}function ur(e,t){ya++,Nf[ya]=e.current,e.current=t}var hs={},nn=ws(hs),yn=ws(!1),Hs=hs;function La(e,t){var r=e.type.contextTypes;if(!r)return hs;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 bn(e){return e=e.childContextTypes,e!=null}function Su(){dr(yn),dr(nn)}function pp(e,t,r){if(nn.current!==hs)throw Error(Rt(168));ur(nn,t),ur(yn,r)}function H1(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(Rt(108,x2(e)||"Unknown",i));return br({},r,n)}function Eu(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||hs,Hs=nn.current,ur(nn,e),ur(yn,yn.current),!0}function mp(e,t,r){var n=e.stateNode;if(!n)throw Error(Rt(169));r?(e=H1(e,t,Hs),n.__reactInternalMemoizedMergedChildContext=e,dr(yn),dr(nn),ur(nn,e)):dr(yn),ur(yn,r)}var Ai=null,oc=!1,_$=!1;function W1(e){Ai===null?Ai=[e]:Ai.push(e)}function j4(e){oc=!0,W1(e)}function ks(){if(!_$&&Ai!==null){_$=!0;var e=0,t=ar;try{var r=Ai;for(ar=1;e<r.length;e++){var n=r[e];do n=n(!0);while(n!==null)}Ai=null,oc=!1}catch(i){throw Ai!==null&&(Ai=Ai.slice(e+1)),p1(Z0,ks),i}finally{ar=t,_$=!1}}return null}var ba=[],xa=0,Au=null,Cu=0,jn=[],Bn=0,Ws=null,Ti=1,Ri="";function Ns(e,t){ba[xa++]=Cu,ba[xa++]=Au,Au=e,Cu=t}function V1(e,t,r){jn[Bn++]=Ti,jn[Bn++]=Ri,jn[Bn++]=Ws,Ws=e;var n=Ti;e=Ri;var i=32-ni(n)-1;n&=~(1<<i),r+=1;var s=32-ni(t)+i;if(30<s){var l=i-i%5;s=(n&(1<<l)-1).toString(32),n>>=l,i-=l,Ti=1<<32-ni(t)+i|r<<i|n,Ri=s+e}else Ti=1<<s|r<<i|n,Ri=e}function ld(e){e.return!==null&&(Ns(e,1),V1(e,1,0))}function od(e){for(;e===Au;)Au=ba[--xa],ba[xa]=null,Cu=ba[--xa],ba[xa]=null;for(;e===Ws;)Ws=jn[--Bn],jn[Bn]=null,Ri=jn[--Bn],jn[Bn]=null,Ti=jn[--Bn],jn[Bn]=null}var Cn=null,En=null,hr=!1,ei=null;function Y1(e,t){var r=Pn(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 _p(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,Cn=e,En=os(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,Cn=e,En=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(r=Ws!==null?{id:Ti,overflow:Ri}:null,e.memoizedState={dehydrated:t,treeContext:r,retryLane:1073741824},r=Pn(18,null,null,0),r.stateNode=t,r.return=e,e.child=r,Cn=e,En=null,!0):!1;default:return!1}}function If(e){return(e.mode&1)!==0&&(e.flags&128)===0}function qf(e){if(hr){var t=En;if(t){var r=t;if(!_p(e,t)){if(If(e))throw Error(Rt(418));t=os(r.nextSibling);var n=Cn;t&&_p(e,t)?Y1(n,r):(e.flags=e.flags&-4097|2,hr=!1,Cn=e)}}else{if(If(e))throw Error(Rt(418));e.flags=e.flags&-4097|2,hr=!1,Cn=e}}}function gp(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;Cn=e}function Io(e){if(e!==Cn)return!1;if(!hr)return gp(e),hr=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!Tf(e.type,e.memoizedProps)),t&&(t=En)){if(If(e))throw G1(),Error(Rt(418));for(;t;)Y1(e,t),t=os(t.nextSibling)}if(gp(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(Rt(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var r=e.data;if(r==="/$"){if(t===0){En=os(e.nextSibling);break e}t--}else r!=="$"&&r!=="$!"&&r!=="$?"||t++}e=e.nextSibling}En=null}}else En=Cn?os(e.stateNode.nextSibling):null;return!0}function G1(){for(var e=En;e;)e=os(e.nextSibling)}function Fa(){En=Cn=null,hr=!1}function ud(e){ei===null?ei=[e]:ei.push(e)}var B4=ji.ReactCurrentBatchConfig;function cl(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(Rt(309));var n=r.stateNode}if(!n)throw Error(Rt(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(l){var $=i.refs;l===null?delete $[s]:$[s]=l},t._stringRef=s,t)}if(typeof e!="string")throw Error(Rt(284));if(!r._owner)throw Error(Rt(290,e))}return e}function qo(e,t){throw e=Object.prototype.toString.call(t),Error(Rt(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function vp(e){var t=e._init;return t(e._payload)}function K1(e){function t(Y,he){if(e){var ne=Y.deletions;ne===null?(Y.deletions=[he],Y.flags|=16):ne.push(he)}}function r(Y,he){if(!e)return null;for(;he!==null;)t(Y,he),he=he.sibling;return null}function n(Y,he){for(Y=new Map;he!==null;)he.key!==null?Y.set(he.key,he):Y.set(he.index,he),he=he.sibling;return Y}function i(Y,he){return Y=fs(Y,he),Y.index=0,Y.sibling=null,Y}function s(Y,he,ne){return Y.index=ne,e?(ne=Y.alternate,ne!==null?(ne=ne.index,ne<he?(Y.flags|=2,he):ne):(Y.flags|=2,he)):(Y.flags|=1048576,he)}function l(Y){return e&&Y.alternate===null&&(Y.flags|=2),Y}function $(Y,he,ne,_e){return he===null||he.tag!==6?(he=k$(ne,Y.mode,_e),he.return=Y,he):(he=i(he,ne),he.return=Y,he)}function h(Y,he,ne,_e){var Q=ne.type;return Q===pa?w(Y,he,ne.props.children,_e,ne.key):he!==null&&(he.elementType===Q||typeof Q=="object"&&Q!==null&&Q.$$typeof===Ji&&vp(Q)===he.type)?(_e=i(he,ne.props),_e.ref=cl(Y,he,ne),_e.return=Y,_e):(_e=$u(ne.type,ne.key,ne.props,null,Y.mode,_e),_e.ref=cl(Y,he,ne),_e.return=Y,_e)}function d(Y,he,ne,_e){return he===null||he.tag!==4||he.stateNode.containerInfo!==ne.containerInfo||he.stateNode.implementation!==ne.implementation?(he=S$(ne,Y.mode,_e),he.return=Y,he):(he=i(he,ne.children||[]),he.return=Y,he)}function w(Y,he,ne,_e,Q){return he===null||he.tag!==7?(he=Us(ne,Y.mode,_e,Q),he.return=Y,he):(he=i(he,ne),he.return=Y,he)}function A(Y,he,ne){if(typeof he=="string"&&he!==""||typeof he=="number")return he=k$(""+he,Y.mode,ne),he.return=Y,he;if(typeof he=="object"&&he!==null){switch(he.$$typeof){case wo:return ne=$u(he.type,he.key,he.props,null,Y.mode,ne),ne.ref=cl(Y,null,he),ne.return=Y,ne;case ha:return he=S$(he,Y.mode,ne),he.return=Y,he;case Ji:var _e=he._init;return A(Y,_e(he._payload),ne)}if(_l(he)||sl(he))return he=Us(he,Y.mode,ne,null),he.return=Y,he;qo(Y,he)}return null}function N(Y,he,ne,_e){var Q=he!==null?he.key:null;if(typeof ne=="string"&&ne!==""||typeof ne=="number")return Q!==null?null:$(Y,he,""+ne,_e);if(typeof ne=="object"&&ne!==null){switch(ne.$$typeof){case wo:return ne.key===Q?h(Y,he,ne,_e):null;case ha:return ne.key===Q?d(Y,he,ne,_e):null;case Ji:return Q=ne._init,N(Y,he,Q(ne._payload),_e)}if(_l(ne)||sl(ne))return Q!==null?null:w(Y,he,ne,_e,null);qo(Y,ne)}return null}function U(Y,he,ne,_e,Q){if(typeof _e=="string"&&_e!==""||typeof _e=="number")return Y=Y.get(ne)||null,$(he,Y,""+_e,Q);if(typeof _e=="object"&&_e!==null){switch(_e.$$typeof){case wo:return Y=Y.get(_e.key===null?ne:_e.key)||null,h(he,Y,_e,Q);case ha:return Y=Y.get(_e.key===null?ne:_e.key)||null,d(he,Y,_e,Q);case Ji:var be=_e._init;return U(Y,he,ne,be(_e._payload),Q)}if(_l(_e)||sl(_e))return Y=Y.get(ne)||null,w(he,Y,_e,Q,null);qo(he,_e)}return null}function O(Y,he,ne,_e){for(var Q=null,be=null,oe=he,Ee=he=0,te=null;oe!==null&&Ee<ne.length;Ee++){oe.index>Ee?(te=oe,oe=null):te=oe.sibling;var Ce=N(Y,oe,ne[Ee],_e);if(Ce===null){oe===null&&(oe=te);break}e&&oe&&Ce.alternate===null&&t(Y,oe),he=s(Ce,he,Ee),be===null?Q=Ce:be.sibling=Ce,be=Ce,oe=te}if(Ee===ne.length)return r(Y,oe),hr&&Ns(Y,Ee),Q;if(oe===null){for(;Ee<ne.length;Ee++)oe=A(Y,ne[Ee],_e),oe!==null&&(he=s(oe,he,Ee),be===null?Q=oe:be.sibling=oe,be=oe);return hr&&Ns(Y,Ee),Q}for(oe=n(Y,oe);Ee<ne.length;Ee++)te=U(oe,Y,Ee,ne[Ee],_e),te!==null&&(e&&te.alternate!==null&&oe.delete(te.key===null?Ee:te.key),he=s(te,he,Ee),be===null?Q=te:be.sibling=te,be=te);return e&&oe.forEach(function(de){return t(Y,de)}),hr&&Ns(Y,Ee),Q}function j(Y,he,ne,_e){var Q=sl(ne);if(typeof Q!="function")throw Error(Rt(150));if(ne=Q.call(ne),ne==null)throw Error(Rt(151));for(var be=Q=null,oe=he,Ee=he=0,te=null,Ce=ne.next();oe!==null&&!Ce.done;Ee++,Ce=ne.next()){oe.index>Ee?(te=oe,oe=null):te=oe.sibling;var de=N(Y,oe,Ce.value,_e);if(de===null){oe===null&&(oe=te);break}e&&oe&&de.alternate===null&&t(Y,oe),he=s(de,he,Ee),be===null?Q=de:be.sibling=de,be=de,oe=te}if(Ce.done)return r(Y,oe),hr&&Ns(Y,Ee),Q;if(oe===null){for(;!Ce.done;Ee++,Ce=ne.next())Ce=A(Y,Ce.value,_e),Ce!==null&&(he=s(Ce,he,Ee),be===null?Q=Ce:be.sibling=Ce,be=Ce);return hr&&Ns(Y,Ee),Q}for(oe=n(Y,oe);!Ce.done;Ee++,Ce=ne.next())Ce=U(oe,Y,Ee,Ce.value,_e),Ce!==null&&(e&&Ce.alternate!==null&&oe.delete(Ce.key===null?Ee:Ce.key),he=s(Ce,he,Ee),be===null?Q=Ce:be.sibling=Ce,be=Ce);return e&&oe.forEach(function(k){return t(Y,k)}),hr&&Ns(Y,Ee),Q}function q(Y,he,ne,_e){if(typeof ne=="object"&&ne!==null&&ne.type===pa&&ne.key===null&&(ne=ne.props.children),typeof ne=="object"&&ne!==null){switch(ne.$$typeof){case wo:e:{for(var Q=ne.key,be=he;be!==null;){if(be.key===Q){if(Q=ne.type,Q===pa){if(be.tag===7){r(Y,be.sibling),he=i(be,ne.props.children),he.return=Y,Y=he;break e}}else if(be.elementType===Q||typeof Q=="object"&&Q!==null&&Q.$$typeof===Ji&&vp(Q)===be.type){r(Y,be.sibling),he=i(be,ne.props),he.ref=cl(Y,be,ne),he.return=Y,Y=he;break e}r(Y,be);break}else t(Y,be);be=be.sibling}ne.type===pa?(he=Us(ne.props.children,Y.mode,_e,ne.key),he.return=Y,Y=he):(_e=$u(ne.type,ne.key,ne.props,null,Y.mode,_e),_e.ref=cl(Y,he,ne),_e.return=Y,Y=_e)}return l(Y);case ha:e:{for(be=ne.key;he!==null;){if(he.key===be)if(he.tag===4&&he.stateNode.containerInfo===ne.containerInfo&&he.stateNode.implementation===ne.implementation){r(Y,he.sibling),he=i(he,ne.children||[]),he.return=Y,Y=he;break e}else{r(Y,he);break}else t(Y,he);he=he.sibling}he=S$(ne,Y.mode,_e),he.return=Y,Y=he}return l(Y);case Ji:return be=ne._init,q(Y,he,be(ne._payload),_e)}if(_l(ne))return O(Y,he,ne,_e);if(sl(ne))return j(Y,he,ne,_e);qo(Y,ne)}return typeof ne=="string"&&ne!==""||typeof ne=="number"?(ne=""+ne,he!==null&&he.tag===6?(r(Y,he.sibling),he=i(he,ne),he.return=Y,Y=he):(r(Y,he),he=k$(ne,Y.mode,_e),he.return=Y,Y=he),l(Y)):r(Y,he)}return q}var ja=K1(!0),X1=K1(!1),Tu=ws(null),Ru=null,wa=null,cd=null;function $d(){cd=wa=Ru=null}function fd(e){var t=Tu.current;dr(Tu),e._currentValue=t}function Mf(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 Na(e,t){Ru=e,cd=wa=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(vn=!0),e.firstContext=null)}function Yn(e){var t=e._currentValue;if(cd!==e)if(e={context:e,memoizedValue:t,next:null},wa===null){if(Ru===null)throw Error(Rt(308));wa=e,Ru.dependencies={lanes:0,firstContext:e}}else wa=wa.next=e;return t}var Ls=null;function dd(e){Ls===null?Ls=[e]:Ls.push(e)}function Q1(e,t,r,n){var i=t.interleaved;return i===null?(r.next=r,dd(t)):(r.next=i.next,i.next=r),t.interleaved=r,Di(e,n)}function Di(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 Zi=!1;function hd(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function J1(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 zi(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function us(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,Di(e,r)}return i=n.interleaved,i===null?(t.next=t,dd(n)):(t.next=i.next,i.next=t),n.interleaved=t,Di(e,r)}function su(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,O0(e,r)}}function yp(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 l={eventTime:r.eventTime,lane:r.lane,tag:r.tag,payload:r.payload,callback:r.callback,next:null};s===null?i=s=l:s=s.next=l,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 zu(e,t,r,n){var i=e.updateQueue;Zi=!1;var s=i.firstBaseUpdate,l=i.lastBaseUpdate,$=i.shared.pending;if($!==null){i.shared.pending=null;var h=$,d=h.next;h.next=null,l===null?s=d:l.next=d,l=h;var w=e.alternate;w!==null&&(w=w.updateQueue,$=w.lastBaseUpdate,$!==l&&($===null?w.firstBaseUpdate=d:$.next=d,w.lastBaseUpdate=h))}if(s!==null){var A=i.baseState;l=0,w=d=h=null,$=s;do{var N=$.lane,U=$.eventTime;if((n&N)===N){w!==null&&(w=w.next={eventTime:U,lane:0,tag:$.tag,payload:$.payload,callback:$.callback,next:null});e:{var O=e,j=$;switch(N=t,U=r,j.tag){case 1:if(O=j.payload,typeof O=="function"){A=O.call(U,A,N);break e}A=O;break e;case 3:O.flags=O.flags&-65537|128;case 0:if(O=j.payload,N=typeof O=="function"?O.call(U,A,N):O,N==null)break e;A=br({},A,N);break e;case 2:Zi=!0}}$.callback!==null&&$.lane!==0&&(e.flags|=64,N=i.effects,N===null?i.effects=[$]:N.push($))}else U={eventTime:U,lane:N,tag:$.tag,payload:$.payload,callback:$.callback,next:null},w===null?(d=w=U,h=A):w=w.next=U,l|=N;if($=$.next,$===null){if($=i.shared.pending,$===null)break;N=$,$=N.next,N.next=null,i.lastBaseUpdate=N,i.shared.pending=null}}while(!0);if(w===null&&(h=A),i.baseState=h,i.firstBaseUpdate=d,i.lastBaseUpdate=w,t=i.shared.interleaved,t!==null){i=t;do l|=i.lane,i=i.next;while(i!==t)}else s===null&&(i.shared.lanes=0);Ys|=l,e.lanes=l,e.memoizedState=A}}function bp(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(Rt(191,i));i.call(n)}}}var $o={},pi=ws($o),Gl=ws($o),Kl=ws($o);function Fs(e){if(e===$o)throw Error(Rt(174));return e}function pd(e,t){switch(ur(Kl,t),ur(Gl,e),ur(pi,$o),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:pf(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=pf(t,e)}dr(pi),ur(pi,t)}function Ba(){dr(pi),dr(Gl),dr(Kl)}function Z1(e){Fs(Kl.current);var t=Fs(pi.current),r=pf(t,e.type);t!==r&&(ur(Gl,e),ur(pi,r))}function md(e){Gl.current===e&&(dr(pi),dr(Gl))}var gr=ws(0);function Nu(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 g$=[];function _d(){for(var e=0;e<g$.length;e++)g$[e]._workInProgressVersionPrimary=null;g$.length=0}var au=ji.ReactCurrentDispatcher,v$=ji.ReactCurrentBatchConfig,Vs=0,yr=null,Dr=null,Wr=null,Iu=!1,Cl=!1,Xl=0,P4=0;function Jr(){throw Error(Rt(321))}function gd(e,t){if(t===null)return!1;for(var r=0;r<t.length&&r<e.length;r++)if(!si(e[r],t[r]))return!1;return!0}function vd(e,t,r,n,i,s){if(Vs=s,yr=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,au.current=e===null||e.memoizedState===null?V4:Y4,e=r(n,i),Cl){s=0;do{if(Cl=!1,Xl=0,25<=s)throw Error(Rt(301));s+=1,Wr=Dr=null,t.updateQueue=null,au.current=G4,e=r(n,i)}while(Cl)}if(au.current=qu,t=Dr!==null&&Dr.next!==null,Vs=0,Wr=Dr=yr=null,Iu=!1,t)throw Error(Rt(300));return e}function yd(){var e=Xl!==0;return Xl=0,e}function oi(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Wr===null?yr.memoizedState=Wr=e:Wr=Wr.next=e,Wr}function Gn(){if(Dr===null){var e=yr.alternate;e=e!==null?e.memoizedState:null}else e=Dr.next;var t=Wr===null?yr.memoizedState:Wr.next;if(t!==null)Wr=t,Dr=e;else{if(e===null)throw Error(Rt(310));Dr=e,e={memoizedState:Dr.memoizedState,baseState:Dr.baseState,baseQueue:Dr.baseQueue,queue:Dr.queue,next:null},Wr===null?yr.memoizedState=Wr=e:Wr=Wr.next=e}return Wr}function Ql(e,t){return typeof t=="function"?t(e):t}function y$(e){var t=Gn(),r=t.queue;if(r===null)throw Error(Rt(311));r.lastRenderedReducer=e;var n=Dr,i=n.baseQueue,s=r.pending;if(s!==null){if(i!==null){var l=i.next;i.next=s.next,s.next=l}n.baseQueue=i=s,r.pending=null}if(i!==null){s=i.next,n=n.baseState;var $=l=null,h=null,d=s;do{var w=d.lane;if((Vs&w)===w)h!==null&&(h=h.next={lane:0,action:d.action,hasEagerState:d.hasEagerState,eagerState:d.eagerState,next:null}),n=d.hasEagerState?d.eagerState:e(n,d.action);else{var A={lane:w,action:d.action,hasEagerState:d.hasEagerState,eagerState:d.eagerState,next:null};h===null?($=h=A,l=n):h=h.next=A,yr.lanes|=w,Ys|=w}d=d.next}while(d!==null&&d!==s);h===null?l=n:h.next=$,si(n,t.memoizedState)||(vn=!0),t.memoizedState=n,t.baseState=l,t.baseQueue=h,r.lastRenderedState=n}if(e=r.interleaved,e!==null){i=e;do s=i.lane,yr.lanes|=s,Ys|=s,i=i.next;while(i!==e)}else i===null&&(r.lanes=0);return[t.memoizedState,r.dispatch]}function b$(e){var t=Gn(),r=t.queue;if(r===null)throw Error(Rt(311));r.lastRenderedReducer=e;var n=r.dispatch,i=r.pending,s=t.memoizedState;if(i!==null){r.pending=null;var l=i=i.next;do s=e(s,l.action),l=l.next;while(l!==i);si(s,t.memoizedState)||(vn=!0),t.memoizedState=s,t.baseQueue===null&&(t.baseState=s),r.lastRenderedState=s}return[s,n]}function O1(){}function eg(e,t){var r=yr,n=Gn(),i=t(),s=!si(n.memoizedState,i);if(s&&(n.memoizedState=i,vn=!0),n=n.queue,bd(ng.bind(null,r,n,e),[e]),n.getSnapshot!==t||s||Wr!==null&&Wr.memoizedState.tag&1){if(r.flags|=2048,Jl(9,rg.bind(null,r,n,i,t),void 0,null),Vr===null)throw Error(Rt(349));Vs&30||tg(r,t,i)}return i}function tg(e,t,r){e.flags|=16384,e={getSnapshot:t,value:r},t=yr.updateQueue,t===null?(t={lastEffect:null,stores:null},yr.updateQueue=t,t.stores=[e]):(r=t.stores,r===null?t.stores=[e]:r.push(e))}function rg(e,t,r,n){t.value=r,t.getSnapshot=n,ig(t)&&sg(e)}function ng(e,t,r){return r(function(){ig(t)&&sg(e)})}function ig(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!si(e,r)}catch{return!0}}function sg(e){var t=Di(e,1);t!==null&&ii(t,e,1,-1)}function xp(e){var t=oi();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Ql,lastRenderedState:e},t.queue=e,e=e.dispatch=W4.bind(null,yr,e),[t.memoizedState,e]}function Jl(e,t,r,n){return e={tag:e,create:t,destroy:r,deps:n,next:null},t=yr.updateQueue,t===null?(t={lastEffect:null,stores:null},yr.updateQueue=t,t.lastEffect=e.next=e):(r=t.lastEffect,r===null?t.lastEffect=e.next=e:(n=r.next,r.next=e,e.next=n,t.lastEffect=e)),e}function ag(){return Gn().memoizedState}function lu(e,t,r,n){var i=oi();yr.flags|=e,i.memoizedState=Jl(1|t,r,void 0,n===void 0?null:n)}function uc(e,t,r,n){var i=Gn();n=n===void 0?null:n;var s=void 0;if(Dr!==null){var l=Dr.memoizedState;if(s=l.destroy,n!==null&&gd(n,l.deps)){i.memoizedState=Jl(t,r,s,n);return}}yr.flags|=e,i.memoizedState=Jl(1|t,r,s,n)}function wp(e,t){return lu(8390656,8,e,t)}function bd(e,t){return uc(2048,8,e,t)}function lg(e,t){return uc(4,2,e,t)}function og(e,t){return uc(4,4,e,t)}function ug(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 cg(e,t,r){return r=r!=null?r.concat([e]):null,uc(4,4,ug.bind(null,t,e),r)}function xd(){}function $g(e,t){var r=Gn();t=t===void 0?null:t;var n=r.memoizedState;return n!==null&&t!==null&&gd(t,n[1])?n[0]:(r.memoizedState=[e,t],e)}function fg(e,t){var r=Gn();t=t===void 0?null:t;var n=r.memoizedState;return n!==null&&t!==null&&gd(t,n[1])?n[0]:(e=e(),r.memoizedState=[e,t],e)}function dg(e,t,r){return Vs&21?(si(r,t)||(r=g1(),yr.lanes|=r,Ys|=r,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,vn=!0),e.memoizedState=r)}function U4(e,t){var r=ar;ar=r!==0&&4>r?r:4,e(!0);var n=v$.transition;v$.transition={};try{e(!1),t()}finally{ar=r,v$.transition=n}}function hg(){return Gn().memoizedState}function H4(e,t,r){var n=$s(e);if(r={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null},pg(e))mg(t,r);else if(r=Q1(e,t,r,n),r!==null){var i=$n();ii(r,e,n,i),_g(r,t,n)}}function W4(e,t,r){var n=$s(e),i={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null};if(pg(e))mg(t,i);else{var s=e.alternate;if(e.lanes===0&&(s===null||s.lanes===0)&&(s=t.lastRenderedReducer,s!==null))try{var l=t.lastRenderedState,$=s(l,r);if(i.hasEagerState=!0,i.eagerState=$,si($,l)){var h=t.interleaved;h===null?(i.next=i,dd(t)):(i.next=h.next,h.next=i),t.interleaved=i;return}}catch{}finally{}r=Q1(e,t,i,n),r!==null&&(i=$n(),ii(r,e,n,i),_g(r,t,n))}}function pg(e){var t=e.alternate;return e===yr||t!==null&&t===yr}function mg(e,t){Cl=Iu=!0;var r=e.pending;r===null?t.next=t:(t.next=r.next,r.next=t),e.pending=t}function _g(e,t,r){if(r&4194240){var n=t.lanes;n&=e.pendingLanes,r|=n,t.lanes=r,O0(e,r)}}var qu={readContext:Yn,useCallback:Jr,useContext:Jr,useEffect:Jr,useImperativeHandle:Jr,useInsertionEffect:Jr,useLayoutEffect:Jr,useMemo:Jr,useReducer:Jr,useRef:Jr,useState:Jr,useDebugValue:Jr,useDeferredValue:Jr,useTransition:Jr,useMutableSource:Jr,useSyncExternalStore:Jr,useId:Jr,unstable_isNewReconciler:!1},V4={readContext:Yn,useCallback:function(e,t){return oi().memoizedState=[e,t===void 0?null:t],e},useContext:Yn,useEffect:wp,useImperativeHandle:function(e,t,r){return r=r!=null?r.concat([e]):null,lu(4194308,4,ug.bind(null,t,e),r)},useLayoutEffect:function(e,t){return lu(4194308,4,e,t)},useInsertionEffect:function(e,t){return lu(4,2,e,t)},useMemo:function(e,t){var r=oi();return t=t===void 0?null:t,e=e(),r.memoizedState=[e,t],e},useReducer:function(e,t,r){var n=oi();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=H4.bind(null,yr,e),[n.memoizedState,e]},useRef:function(e){var t=oi();return e={current:e},t.memoizedState=e},useState:xp,useDebugValue:xd,useDeferredValue:function(e){return oi().memoizedState=e},useTransition:function(){var e=xp(!1),t=e[0];return e=U4.bind(null,e[1]),oi().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,r){var n=yr,i=oi();if(hr){if(r===void 0)throw Error(Rt(407));r=r()}else{if(r=t(),Vr===null)throw Error(Rt(349));Vs&30||tg(n,t,r)}i.memoizedState=r;var s={value:r,getSnapshot:t};return i.queue=s,wp(ng.bind(null,n,s,e),[e]),n.flags|=2048,Jl(9,rg.bind(null,n,s,r,t),void 0,null),r},useId:function(){var e=oi(),t=Vr.identifierPrefix;if(hr){var r=Ri,n=Ti;r=(n&~(1<<32-ni(n)-1)).toString(32)+r,t=":"+t+"R"+r,r=Xl++,0<r&&(t+="H"+r.toString(32)),t+=":"}else r=P4++,t=":"+t+"r"+r.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},Y4={readContext:Yn,useCallback:$g,useContext:Yn,useEffect:bd,useImperativeHandle:cg,useInsertionEffect:lg,useLayoutEffect:og,useMemo:fg,useReducer:y$,useRef:ag,useState:function(){return y$(Ql)},useDebugValue:xd,useDeferredValue:function(e){var t=Gn();return dg(t,Dr.memoizedState,e)},useTransition:function(){var e=y$(Ql)[0],t=Gn().memoizedState;return[e,t]},useMutableSource:O1,useSyncExternalStore:eg,useId:hg,unstable_isNewReconciler:!1},G4={readContext:Yn,useCallback:$g,useContext:Yn,useEffect:bd,useImperativeHandle:cg,useInsertionEffect:lg,useLayoutEffect:og,useMemo:fg,useReducer:b$,useRef:ag,useState:function(){return b$(Ql)},useDebugValue:xd,useDeferredValue:function(e){var t=Gn();return Dr===null?t.memoizedState=e:dg(t,Dr.memoizedState,e)},useTransition:function(){var e=b$(Ql)[0],t=Gn().memoizedState;return[e,t]},useMutableSource:O1,useSyncExternalStore:eg,useId:hg,unstable_isNewReconciler:!1};function Zn(e,t){if(e&&e.defaultProps){t=br({},t),e=e.defaultProps;for(var r in e)t[r]===void 0&&(t[r]=e[r]);return t}return t}function Df(e,t,r,n){t=e.memoizedState,r=r(n,t),r=r==null?t:br({},t,r),e.memoizedState=r,e.lanes===0&&(e.updateQueue.baseState=r)}var cc={isMounted:function(e){return(e=e._reactInternals)?Zs(e)===e:!1},enqueueSetState:function(e,t,r){e=e._reactInternals;var n=$n(),i=$s(e),s=zi(n,i);s.payload=t,r!=null&&(s.callback=r),t=us(e,s,i),t!==null&&(ii(t,e,i,n),su(t,e,i))},enqueueReplaceState:function(e,t,r){e=e._reactInternals;var n=$n(),i=$s(e),s=zi(n,i);s.tag=1,s.payload=t,r!=null&&(s.callback=r),t=us(e,s,i),t!==null&&(ii(t,e,i,n),su(t,e,i))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var r=$n(),n=$s(e),i=zi(r,n);i.tag=2,t!=null&&(i.callback=t),t=us(e,i,n),t!==null&&(ii(t,e,n,r),su(t,e,n))}};function kp(e,t,r,n,i,s,l){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(n,s,l):t.prototype&&t.prototype.isPureReactComponent?!Hl(r,n)||!Hl(i,s):!0}function gg(e,t,r){var n=!1,i=hs,s=t.contextType;return typeof s=="object"&&s!==null?s=Yn(s):(i=bn(t)?Hs:nn.current,n=t.contextTypes,s=(n=n!=null)?La(e,i):hs),t=new t(r,s),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=cc,e.stateNode=t,t._reactInternals=e,n&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=s),t}function Sp(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&&cc.enqueueReplaceState(t,t.state,null)}function Lf(e,t,r,n){var i=e.stateNode;i.props=r,i.state=e.memoizedState,i.refs={},hd(e);var s=t.contextType;typeof s=="object"&&s!==null?i.context=Yn(s):(s=bn(t)?Hs:nn.current,i.context=La(e,s)),i.state=e.memoizedState,s=t.getDerivedStateFromProps,typeof s=="function"&&(Df(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&&cc.enqueueReplaceState(i,i.state,null),zu(e,r,i,n),i.state=e.memoizedState),typeof i.componentDidMount=="function"&&(e.flags|=4194308)}function Pa(e,t){try{var r="",n=t;do r+=b2(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 x$(e,t,r){return{value:e,source:null,stack:r??null,digest:t??null}}function Ff(e,t){try{console.error(t.value)}catch(r){setTimeout(function(){throw r})}}var K4=typeof WeakMap=="function"?WeakMap:Map;function vg(e,t,r){r=zi(-1,r),r.tag=3,r.payload={element:null};var n=t.value;return r.callback=function(){Du||(Du=!0,Kf=n),Ff(e,t)},r}function yg(e,t,r){r=zi(-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(){Ff(e,t)}}var s=e.stateNode;return s!==null&&typeof s.componentDidCatch=="function"&&(r.callback=function(){Ff(e,t),typeof n!="function"&&(cs===null?cs=new Set([this]):cs.add(this));var l=t.stack;this.componentDidCatch(t.value,{componentStack:l!==null?l:""})}),r}function Ep(e,t,r){var n=e.pingCache;if(n===null){n=e.pingCache=new K4;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=o3.bind(null,e,t,r),t.then(e,e))}function Ap(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 Cp(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=zi(-1,1),t.tag=2,us(r,t,1))),r.lanes|=1),e)}var X4=ji.ReactCurrentOwner,vn=!1;function on(e,t,r,n){t.child=e===null?X1(t,null,r,n):ja(t,e.child,r,n)}function Tp(e,t,r,n,i){r=r.render;var s=t.ref;return Na(t,i),n=vd(e,t,r,n,s,i),r=yd(),e!==null&&!vn?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,Li(e,t,i)):(hr&&r&&ld(t),t.flags|=1,on(e,t,n,i),t.child)}function Rp(e,t,r,n,i){if(e===null){var s=r.type;return typeof s=="function"&&!Rd(s)&&s.defaultProps===void 0&&r.compare===null&&r.defaultProps===void 0?(t.tag=15,t.type=s,bg(e,t,s,n,i)):(e=$u(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 l=s.memoizedProps;if(r=r.compare,r=r!==null?r:Hl,r(l,n)&&e.ref===t.ref)return Li(e,t,i)}return t.flags|=1,e=fs(s,n),e.ref=t.ref,e.return=t,t.child=e}function bg(e,t,r,n,i){if(e!==null){var s=e.memoizedProps;if(Hl(s,n)&&e.ref===t.ref)if(vn=!1,t.pendingProps=n=s,(e.lanes&i)!==0)e.flags&131072&&(vn=!0);else return t.lanes=e.lanes,Li(e,t,i)}return jf(e,t,r,n,i)}function xg(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(Sa,kn),kn|=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(Sa,kn),kn|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},n=s!==null?s.baseLanes:r,ur(Sa,kn),kn|=n}else s!==null?(n=s.baseLanes|r,t.memoizedState=null):n=r,ur(Sa,kn),kn|=n;return on(e,t,i,r),t.child}function wg(e,t){var r=t.ref;(e===null&&r!==null||e!==null&&e.ref!==r)&&(t.flags|=512,t.flags|=2097152)}function jf(e,t,r,n,i){var s=bn(r)?Hs:nn.current;return s=La(t,s),Na(t,i),r=vd(e,t,r,n,s,i),n=yd(),e!==null&&!vn?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,Li(e,t,i)):(hr&&n&&ld(t),t.flags|=1,on(e,t,r,i),t.child)}function zp(e,t,r,n,i){if(bn(r)){var s=!0;Eu(t)}else s=!1;if(Na(t,i),t.stateNode===null)ou(e,t),gg(t,r,n),Lf(t,r,n,i),n=!0;else if(e===null){var l=t.stateNode,$=t.memoizedProps;l.props=$;var h=l.context,d=r.contextType;typeof d=="object"&&d!==null?d=Yn(d):(d=bn(r)?Hs:nn.current,d=La(t,d));var w=r.getDerivedStateFromProps,A=typeof w=="function"||typeof l.getSnapshotBeforeUpdate=="function";A||typeof l.UNSAFE_componentWillReceiveProps!="function"&&typeof l.componentWillReceiveProps!="function"||($!==n||h!==d)&&Sp(t,l,n,d),Zi=!1;var N=t.memoizedState;l.state=N,zu(t,n,l,i),h=t.memoizedState,$!==n||N!==h||yn.current||Zi?(typeof w=="function"&&(Df(t,r,w,n),h=t.memoizedState),($=Zi||kp(t,r,$,n,N,h,d))?(A||typeof l.UNSAFE_componentWillMount!="function"&&typeof l.componentWillMount!="function"||(typeof l.componentWillMount=="function"&&l.componentWillMount(),typeof l.UNSAFE_componentWillMount=="function"&&l.UNSAFE_componentWillMount()),typeof l.componentDidMount=="function"&&(t.flags|=4194308)):(typeof l.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=n,t.memoizedState=h),l.props=n,l.state=h,l.context=d,n=$):(typeof l.componentDidMount=="function"&&(t.flags|=4194308),n=!1)}else{l=t.stateNode,J1(e,t),$=t.memoizedProps,d=t.type===t.elementType?$:Zn(t.type,$),l.props=d,A=t.pendingProps,N=l.context,h=r.contextType,typeof h=="object"&&h!==null?h=Yn(h):(h=bn(r)?Hs:nn.current,h=La(t,h));var U=r.getDerivedStateFromProps;(w=typeof U=="function"||typeof l.getSnapshotBeforeUpdate=="function")||typeof l.UNSAFE_componentWillReceiveProps!="function"&&typeof l.componentWillReceiveProps!="function"||($!==A||N!==h)&&Sp(t,l,n,h),Zi=!1,N=t.memoizedState,l.state=N,zu(t,n,l,i);var O=t.memoizedState;$!==A||N!==O||yn.current||Zi?(typeof U=="function"&&(Df(t,r,U,n),O=t.memoizedState),(d=Zi||kp(t,r,d,n,N,O,h)||!1)?(w||typeof l.UNSAFE_componentWillUpdate!="function"&&typeof l.componentWillUpdate!="function"||(typeof l.componentWillUpdate=="function"&&l.componentWillUpdate(n,O,h),typeof l.UNSAFE_componentWillUpdate=="function"&&l.UNSAFE_componentWillUpdate(n,O,h)),typeof l.componentDidUpdate=="function"&&(t.flags|=4),typeof l.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof l.componentDidUpdate!="function"||$===e.memoizedProps&&N===e.memoizedState||(t.flags|=4),typeof l.getSnapshotBeforeUpdate!="function"||$===e.memoizedProps&&N===e.memoizedState||(t.flags|=1024),t.memoizedProps=n,t.memoizedState=O),l.props=n,l.state=O,l.context=h,n=d):(typeof l.componentDidUpdate!="function"||$===e.memoizedProps&&N===e.memoizedState||(t.flags|=4),typeof l.getSnapshotBeforeUpdate!="function"||$===e.memoizedProps&&N===e.memoizedState||(t.flags|=1024),n=!1)}return Bf(e,t,r,n,s,i)}function Bf(e,t,r,n,i,s){wg(e,t);var l=(t.flags&128)!==0;if(!n&&!l)return i&&mp(t,r,!1),Li(e,t,s);n=t.stateNode,X4.current=t;var $=l&&typeof r.getDerivedStateFromError!="function"?null:n.render();return t.flags|=1,e!==null&&l?(t.child=ja(t,e.child,null,s),t.child=ja(t,null,$,s)):on(e,t,$,s),t.memoizedState=n.state,i&&mp(t,r,!0),t.child}function kg(e){var t=e.stateNode;t.pendingContext?pp(e,t.pendingContext,t.pendingContext!==t.context):t.context&&pp(e,t.context,!1),pd(e,t.containerInfo)}function Np(e,t,r,n,i){return Fa(),ud(i),t.flags|=256,on(e,t,r,n),t.child}var Pf={dehydrated:null,treeContext:null,retryLane:0};function Uf(e){return{baseLanes:e,cachePool:null,transitions:null}}function Sg(e,t,r){var n=t.pendingProps,i=gr.current,s=!1,l=(t.flags&128)!==0,$;if(($=l)||($=e!==null&&e.memoizedState===null?!1:(i&2)!==0),$?(s=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(i|=1),ur(gr,i&1),e===null)return qf(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):(l=n.children,e=n.fallback,s?(n=t.mode,s=t.child,l={mode:"hidden",children:l},!(n&1)&&s!==null?(s.childLanes=0,s.pendingProps=l):s=dc(l,n,0,null),e=Us(e,n,r,null),s.return=t,e.return=t,s.sibling=e,t.child=s,t.child.memoizedState=Uf(r),t.memoizedState=Pf,e):wd(t,l));if(i=e.memoizedState,i!==null&&($=i.dehydrated,$!==null))return Q4(e,t,l,n,$,i,r);if(s){s=n.fallback,l=t.mode,i=e.child,$=i.sibling;var h={mode:"hidden",children:n.children};return!(l&1)&&t.child!==i?(n=t.child,n.childLanes=0,n.pendingProps=h,t.deletions=null):(n=fs(i,h),n.subtreeFlags=i.subtreeFlags&14680064),$!==null?s=fs($,s):(s=Us(s,l,r,null),s.flags|=2),s.return=t,n.return=t,n.sibling=s,t.child=n,n=s,s=t.child,l=e.child.memoizedState,l=l===null?Uf(r):{baseLanes:l.baseLanes|r,cachePool:null,transitions:l.transitions},s.memoizedState=l,s.childLanes=e.childLanes&~r,t.memoizedState=Pf,n}return s=e.child,e=s.sibling,n=fs(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 wd(e,t){return t=dc({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function Mo(e,t,r,n){return n!==null&&ud(n),ja(t,e.child,null,r),e=wd(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Q4(e,t,r,n,i,s,l){if(r)return t.flags&256?(t.flags&=-257,n=x$(Error(Rt(422))),Mo(e,t,l,n)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(s=n.fallback,i=t.mode,n=dc({mode:"visible",children:n.children},i,0,null),s=Us(s,i,l,null),s.flags|=2,n.return=t,s.return=t,n.sibling=s,t.child=n,t.mode&1&&ja(t,e.child,null,l),t.child.memoizedState=Uf(l),t.memoizedState=Pf,s);if(!(t.mode&1))return Mo(e,t,l,null);if(i.data==="$!"){if(n=i.nextSibling&&i.nextSibling.dataset,n)var $=n.dgst;return n=$,s=Error(Rt(419)),n=x$(s,n,void 0),Mo(e,t,l,n)}if($=(l&e.childLanes)!==0,vn||$){if(n=Vr,n!==null){switch(l&-l){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|l)?0:i,i!==0&&i!==s.retryLane&&(s.retryLane=i,Di(e,i),ii(n,e,i,-1))}return Td(),n=x$(Error(Rt(421))),Mo(e,t,l,n)}return i.data==="$?"?(t.flags|=128,t.child=e.child,t=u3.bind(null,e),i._reactRetry=t,null):(e=s.treeContext,En=os(i.nextSibling),Cn=t,hr=!0,ei=null,e!==null&&(jn[Bn++]=Ti,jn[Bn++]=Ri,jn[Bn++]=Ws,Ti=e.id,Ri=e.overflow,Ws=t),t=wd(t,n.children),t.flags|=4096,t)}function Ip(e,t,r){e.lanes|=t;var n=e.alternate;n!==null&&(n.lanes|=t),Mf(e.return,t,r)}function w$(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 Eg(e,t,r){var n=t.pendingProps,i=n.revealOrder,s=n.tail;if(on(e,t,n.children,r),n=gr.current,n&2)n=n&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Ip(e,r,t);else if(e.tag===19)Ip(e,r,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}n&=1}if(ur(gr,n),!(t.mode&1))t.memoizedState=null;else switch(i){case"forwards":for(r=t.child,i=null;r!==null;)e=r.alternate,e!==null&&Nu(e)===null&&(i=r),r=r.sibling;r=i,r===null?(i=t.child,t.child=null):(i=r.sibling,r.sibling=null),w$(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&&Nu(e)===null){t.child=i;break}e=i.sibling,i.sibling=r,r=i,i=e}w$(t,!0,r,null,s);break;case"together":w$(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function ou(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Li(e,t,r){if(e!==null&&(t.dependencies=e.dependencies),Ys|=t.lanes,!(r&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(Rt(153));if(t.child!==null){for(e=t.child,r=fs(e,e.pendingProps),t.child=r,r.return=t;e.sibling!==null;)e=e.sibling,r=r.sibling=fs(e,e.pendingProps),r.return=t;r.sibling=null}return t.child}function J4(e,t,r){switch(t.tag){case 3:kg(t),Fa();break;case 5:Z1(t);break;case 1:bn(t.type)&&Eu(t);break;case 4:pd(t,t.stateNode.containerInfo);break;case 10:var n=t.type._context,i=t.memoizedProps.value;ur(Tu,n._currentValue),n._currentValue=i;break;case 13:if(n=t.memoizedState,n!==null)return n.dehydrated!==null?(ur(gr,gr.current&1),t.flags|=128,null):r&t.child.childLanes?Sg(e,t,r):(ur(gr,gr.current&1),e=Li(e,t,r),e!==null?e.sibling:null);ur(gr,gr.current&1);break;case 19:if(n=(r&t.childLanes)!==0,e.flags&128){if(n)return Eg(e,t,r);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),ur(gr,gr.current),n)break;return null;case 22:case 23:return t.lanes=0,xg(e,t,r)}return Li(e,t,r)}var Ag,Hf,Cg,Tg;Ag=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}};Hf=function(){};Cg=function(e,t,r,n){var i=e.memoizedProps;if(i!==n){e=t.stateNode,Fs(pi.current);var s=null;switch(r){case"input":i=$f(e,i),n=$f(e,n),s=[];break;case"select":i=br({},i,{value:void 0}),n=br({},n,{value:void 0}),s=[];break;case"textarea":i=hf(e,i),n=hf(e,n),s=[];break;default:typeof i.onClick!="function"&&typeof n.onClick=="function"&&(e.onclick=ku)}mf(r,n);var l;r=null;for(d in i)if(!n.hasOwnProperty(d)&&i.hasOwnProperty(d)&&i[d]!=null)if(d==="style"){var $=i[d];for(l in $)$.hasOwnProperty(l)&&(r||(r={}),r[l]="")}else d!=="dangerouslySetInnerHTML"&&d!=="children"&&d!=="suppressContentEditableWarning"&&d!=="suppressHydrationWarning"&&d!=="autoFocus"&&(Dl.hasOwnProperty(d)?s||(s=[]):(s=s||[]).push(d,null));for(d in n){var h=n[d];if($=i?.[d],n.hasOwnProperty(d)&&h!==$&&(h!=null||$!=null))if(d==="style")if($){for(l in $)!$.hasOwnProperty(l)||h&&h.hasOwnProperty(l)||(r||(r={}),r[l]="");for(l in h)h.hasOwnProperty(l)&&$[l]!==h[l]&&(r||(r={}),r[l]=h[l])}else r||(s||(s=[]),s.push(d,r)),r=h;else d==="dangerouslySetInnerHTML"?(h=h?h.__html:void 0,$=$?$.__html:void 0,h!=null&&$!==h&&(s=s||[]).push(d,h)):d==="children"?typeof h!="string"&&typeof h!="number"||(s=s||[]).push(d,""+h):d!=="suppressContentEditableWarning"&&d!=="suppressHydrationWarning"&&(Dl.hasOwnProperty(d)?(h!=null&&d==="onScroll"&&cr("scroll",e),s||$===h||(s=[])):(s=s||[]).push(d,h))}r&&(s=s||[]).push("style",r);var d=s;(t.updateQueue=d)&&(t.flags|=4)}};Tg=function(e,t,r,n){r!==n&&(t.flags|=4)};function $l(e,t){if(!hr)switch(e.tailMode){case"hidden":t=e.tail;for(var r=null;t!==null;)t.alternate!==null&&(r=t),t=t.sibling;r===null?e.tail=null:r.sibling=null;break;case"collapsed":r=e.tail;for(var n=null;r!==null;)r.alternate!==null&&(n=r),r=r.sibling;n===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:n.sibling=null}}function Zr(e){var t=e.alternate!==null&&e.alternate.child===e.child,r=0,n=0;if(t)for(var i=e.child;i!==null;)r|=i.lanes|i.childLanes,n|=i.subtreeFlags&14680064,n|=i.flags&14680064,i.return=e,i=i.sibling;else for(i=e.child;i!==null;)r|=i.lanes|i.childLanes,n|=i.subtreeFlags,n|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=n,e.childLanes=r,t}function Z4(e,t,r){var n=t.pendingProps;switch(od(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Zr(t),null;case 1:return bn(t.type)&&Su(),Zr(t),null;case 3:return n=t.stateNode,Ba(),dr(yn),dr(nn),_d(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(Io(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,ei!==null&&(Jf(ei),ei=null))),Hf(e,t),Zr(t),null;case 5:md(t);var i=Fs(Kl.current);if(r=t.type,e!==null&&t.stateNode!=null)Cg(e,t,r,n,i),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!n){if(t.stateNode===null)throw Error(Rt(166));return Zr(t),null}if(e=Fs(pi.current),Io(t)){n=t.stateNode,r=t.type;var s=t.memoizedProps;switch(n[ci]=t,n[Yl]=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<vl.length;i++)cr(vl[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":Uh(n,s),cr("invalid",n);break;case"select":n._wrapperState={wasMultiple:!!s.multiple},cr("invalid",n);break;case"textarea":Wh(n,s),cr("invalid",n)}mf(r,s),i=null;for(var l in s)if(s.hasOwnProperty(l)){var $=s[l];l==="children"?typeof $=="string"?n.textContent!==$&&(s.suppressHydrationWarning!==!0&&No(n.textContent,$,e),i=["children",$]):typeof $=="number"&&n.textContent!==""+$&&(s.suppressHydrationWarning!==!0&&No(n.textContent,$,e),i=["children",""+$]):Dl.hasOwnProperty(l)&&$!=null&&l==="onScroll"&&cr("scroll",n)}switch(r){case"input":ko(n),Hh(n,s,!0);break;case"textarea":ko(n),Vh(n);break;case"select":case"option":break;default:typeof s.onClick=="function"&&(n.onclick=ku)}n=i,t.updateQueue=n,n!==null&&(t.flags|=4)}else{l=i.nodeType===9?i:i.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=n1(r)),e==="http://www.w3.org/1999/xhtml"?r==="script"?(e=l.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof n.is=="string"?e=l.createElement(r,{is:n.is}):(e=l.createElement(r),r==="select"&&(l=e,n.multiple?l.multiple=!0:n.size&&(l.size=n.size))):e=l.createElementNS(e,r),e[ci]=t,e[Yl]=n,Ag(e,t,!1,!1),t.stateNode=e;e:{switch(l=_f(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<vl.length;i++)cr(vl[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":Uh(e,n),i=$f(e,n),cr("invalid",e);break;case"option":i=n;break;case"select":e._wrapperState={wasMultiple:!!n.multiple},i=br({},n,{value:void 0}),cr("invalid",e);break;case"textarea":Wh(e,n),i=hf(e,n),cr("invalid",e);break;default:i=n}mf(r,i),$=i;for(s in $)if($.hasOwnProperty(s)){var h=$[s];s==="style"?a1(e,h):s==="dangerouslySetInnerHTML"?(h=h?h.__html:void 0,h!=null&&i1(e,h)):s==="children"?typeof h=="string"?(r!=="textarea"||h!=="")&&Ll(e,h):typeof h=="number"&&Ll(e,""+h):s!=="suppressContentEditableWarning"&&s!=="suppressHydrationWarning"&&s!=="autoFocus"&&(Dl.hasOwnProperty(s)?h!=null&&s==="onScroll"&&cr("scroll",e):h!=null&&G0(e,s,h,l))}switch(r){case"input":ko(e),Hh(e,n,!1);break;case"textarea":ko(e),Vh(e);break;case"option":n.value!=null&&e.setAttribute("value",""+ds(n.value));break;case"select":e.multiple=!!n.multiple,s=n.value,s!=null?Ca(e,!!n.multiple,s,!1):n.defaultValue!=null&&Ca(e,!!n.multiple,n.defaultValue,!0);break;default:typeof i.onClick=="function"&&(e.onclick=ku)}switch(r){case"button":case"input":case"select":case"textarea":n=!!n.autoFocus;break e;case"img":n=!0;break e;default:n=!1}}n&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return Zr(t),null;case 6:if(e&&t.stateNode!=null)Tg(e,t,e.memoizedProps,n);else{if(typeof n!="string"&&t.stateNode===null)throw Error(Rt(166));if(r=Fs(Kl.current),Fs(pi.current),Io(t)){if(n=t.stateNode,r=t.memoizedProps,n[ci]=t,(s=n.nodeValue!==r)&&(e=Cn,e!==null))switch(e.tag){case 3:No(n.nodeValue,r,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&No(n.nodeValue,r,(e.mode&1)!==0)}s&&(t.flags|=4)}else n=(r.nodeType===9?r:r.ownerDocument).createTextNode(n),n[ci]=t,t.stateNode=n}return Zr(t),null;case 13:if(dr(gr),n=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(hr&&En!==null&&t.mode&1&&!(t.flags&128))G1(),Fa(),t.flags|=98560,s=!1;else if(s=Io(t),n!==null&&n.dehydrated!==null){if(e===null){if(!s)throw Error(Rt(318));if(s=t.memoizedState,s=s!==null?s.dehydrated:null,!s)throw Error(Rt(317));s[ci]=t}else Fa(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Zr(t),s=!1}else ei!==null&&(Jf(ei),ei=null),s=!0;if(!s)return t.flags&65536?t:null}return t.flags&128?(t.lanes=r,t):(n=n!==null,n!==(e!==null&&e.memoizedState!==null)&&n&&(t.child.flags|=8192,t.mode&1&&(e===null||gr.current&1?Fr===0&&(Fr=3):Td())),t.updateQueue!==null&&(t.flags|=4),Zr(t),null);case 4:return Ba(),Hf(e,t),e===null&&Wl(t.stateNode.containerInfo),Zr(t),null;case 10:return fd(t.type._context),Zr(t),null;case 17:return bn(t.type)&&Su(),Zr(t),null;case 19:if(dr(gr),s=t.memoizedState,s===null)return Zr(t),null;if(n=(t.flags&128)!==0,l=s.rendering,l===null)if(n)$l(s,!1);else{if(Fr!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(l=Nu(e),l!==null){for(t.flags|=128,$l(s,!1),n=l.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,l=s.alternate,l===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=l.childLanes,s.lanes=l.lanes,s.child=l.child,s.subtreeFlags=0,s.deletions=null,s.memoizedProps=l.memoizedProps,s.memoizedState=l.memoizedState,s.updateQueue=l.updateQueue,s.type=l.type,e=l.dependencies,s.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),r=r.sibling;return ur(gr,gr.current&1|2),t.child}e=e.sibling}s.tail!==null&&Ar()>Ua&&(t.flags|=128,n=!0,$l(s,!1),t.lanes=4194304)}else{if(!n)if(e=Nu(l),e!==null){if(t.flags|=128,n=!0,r=e.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),$l(s,!0),s.tail===null&&s.tailMode==="hidden"&&!l.alternate&&!hr)return Zr(t),null}else 2*Ar()-s.renderingStartTime>Ua&&r!==1073741824&&(t.flags|=128,n=!0,$l(s,!1),t.lanes=4194304);s.isBackwards?(l.sibling=t.child,t.child=l):(r=s.last,r!==null?r.sibling=l:t.child=l,s.last=l)}return s.tail!==null?(t=s.tail,s.rendering=t,s.tail=t.sibling,s.renderingStartTime=Ar(),t.sibling=null,r=gr.current,ur(gr,n?r&1|2:r&1),t):(Zr(t),null);case 22:case 23:return Cd(),n=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==n&&(t.flags|=8192),n&&t.mode&1?kn&1073741824&&(Zr(t),t.subtreeFlags&6&&(t.flags|=8192)):Zr(t),null;case 24:return null;case 25:return null}throw Error(Rt(156,t.tag))}function O4(e,t){switch(od(t),t.tag){case 1:return bn(t.type)&&Su(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Ba(),dr(yn),dr(nn),_d(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return md(t),null;case 13:if(dr(gr),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(Rt(340));Fa()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return dr(gr),null;case 4:return Ba(),null;case 10:return fd(t.type._context),null;case 22:case 23:return Cd(),null;case 24:return null;default:return null}}var Do=!1,Or=!1,e3=typeof WeakSet=="function"?WeakSet:Set,Ft=null;function ka(e,t){var r=e.ref;if(r!==null)if(typeof r=="function")try{r(null)}catch(n){kr(e,t,n)}else r.current=null}function Wf(e,t,r){try{r()}catch(n){kr(e,t,n)}}var qp=!1;function t3(e,t){if(Af=bu,e=q1(),ad(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 l=0,$=-1,h=-1,d=0,w=0,A=e,N=null;t:for(;;){for(var U;A!==r||i!==0&&A.nodeType!==3||($=l+i),A!==s||n!==0&&A.nodeType!==3||(h=l+n),A.nodeType===3&&(l+=A.nodeValue.length),(U=A.firstChild)!==null;)N=A,A=U;for(;;){if(A===e)break t;if(N===r&&++d===i&&($=l),N===s&&++w===n&&(h=l),(U=A.nextSibling)!==null)break;A=N,N=A.parentNode}A=U}r=$===-1||h===-1?null:{start:$,end:h}}else r=null}r=r||{start:0,end:0}}else r=null;for(Cf={focusedElem:e,selectionRange:r},bu=!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 O=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(O!==null){var j=O.memoizedProps,q=O.memoizedState,Y=t.stateNode,he=Y.getSnapshotBeforeUpdate(t.elementType===t.type?j:Zn(t.type,j),q);Y.__reactInternalSnapshotBeforeUpdate=he}break;case 3:var ne=t.stateNode.containerInfo;ne.nodeType===1?ne.textContent="":ne.nodeType===9&&ne.documentElement&&ne.removeChild(ne.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(Rt(163))}}catch(_e){kr(t,t.return,_e)}if(e=t.sibling,e!==null){e.return=t.return,Ft=e;break}Ft=t.return}return O=qp,qp=!1,O}function Tl(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&&Wf(t,r,s)}i=i.next}while(i!==n)}}function $c(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 Vf(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 Rg(e){var t=e.alternate;t!==null&&(e.alternate=null,Rg(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[ci],delete t[Yl],delete t[zf],delete t[L4],delete t[F4])),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 zg(e){return e.tag===5||e.tag===3||e.tag===4}function Mp(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||zg(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 Yf(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=ku));else if(n!==4&&(e=e.child,e!==null))for(Yf(e,t,r),e=e.sibling;e!==null;)Yf(e,t,r),e=e.sibling}function Gf(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(Gf(e,t,r),e=e.sibling;e!==null;)Gf(e,t,r),e=e.sibling}var Yr=null,On=!1;function Vi(e,t,r){for(r=r.child;r!==null;)Ng(e,t,r),r=r.sibling}function Ng(e,t,r){if(hi&&typeof hi.onCommitFiberUnmount=="function")try{hi.onCommitFiberUnmount(nc,r)}catch{}switch(r.tag){case 5:Or||ka(r,t);case 6:var n=Yr,i=On;Yr=null,Vi(e,t,r),Yr=n,On=i,Yr!==null&&(On?(e=Yr,r=r.stateNode,e.nodeType===8?e.parentNode.removeChild(r):e.removeChild(r)):Yr.removeChild(r.stateNode));break;case 18:Yr!==null&&(On?(e=Yr,r=r.stateNode,e.nodeType===8?m$(e.parentNode,r):e.nodeType===1&&m$(e,r),Pl(e)):m$(Yr,r.stateNode));break;case 4:n=Yr,i=On,Yr=r.stateNode.containerInfo,On=!0,Vi(e,t,r),Yr=n,On=i;break;case 0:case 11:case 14:case 15:if(!Or&&(n=r.updateQueue,n!==null&&(n=n.lastEffect,n!==null))){i=n=n.next;do{var s=i,l=s.destroy;s=s.tag,l!==void 0&&(s&2||s&4)&&Wf(r,t,l),i=i.next}while(i!==n)}Vi(e,t,r);break;case 1:if(!Or&&(ka(r,t),n=r.stateNode,typeof n.componentWillUnmount=="function"))try{n.props=r.memoizedProps,n.state=r.memoizedState,n.componentWillUnmount()}catch($){kr(r,t,$)}Vi(e,t,r);break;case 21:Vi(e,t,r);break;case 22:r.mode&1?(Or=(n=Or)||r.memoizedState!==null,Vi(e,t,r),Or=n):Vi(e,t,r);break;default:Vi(e,t,r)}}function Dp(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var r=e.stateNode;r===null&&(r=e.stateNode=new e3),t.forEach(function(n){var i=c3.bind(null,e,n);r.has(n)||(r.add(n),n.then(i,i))})}}function Qn(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,l=t,$=l;e:for(;$!==null;){switch($.tag){case 5:Yr=$.stateNode,On=!1;break e;case 3:Yr=$.stateNode.containerInfo,On=!0;break e;case 4:Yr=$.stateNode.containerInfo,On=!0;break e}$=$.return}if(Yr===null)throw Error(Rt(160));Ng(s,l,i),Yr=null,On=!1;var h=i.alternate;h!==null&&(h.return=null),i.return=null}catch(d){kr(i,t,d)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)Ig(t,e),t=t.sibling}function Ig(e,t){var r=e.alternate,n=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(Qn(t,e),ai(e),n&4){try{Tl(3,e,e.return),$c(3,e)}catch(j){kr(e,e.return,j)}try{Tl(5,e,e.return)}catch(j){kr(e,e.return,j)}}break;case 1:Qn(t,e),ai(e),n&512&&r!==null&&ka(r,r.return);break;case 5:if(Qn(t,e),ai(e),n&512&&r!==null&&ka(r,r.return),e.flags&32){var i=e.stateNode;try{Ll(i,"")}catch(j){kr(e,e.return,j)}}if(n&4&&(i=e.stateNode,i!=null)){var s=e.memoizedProps,l=r!==null?r.memoizedProps:s,$=e.type,h=e.updateQueue;if(e.updateQueue=null,h!==null)try{$==="input"&&s.type==="radio"&&s.name!=null&&t1(i,s),_f($,l);var d=_f($,s);for(l=0;l<h.length;l+=2){var w=h[l],A=h[l+1];w==="style"?a1(i,A):w==="dangerouslySetInnerHTML"?i1(i,A):w==="children"?Ll(i,A):G0(i,w,A,d)}switch($){case"input":ff(i,s);break;case"textarea":r1(i,s);break;case"select":var N=i._wrapperState.wasMultiple;i._wrapperState.wasMultiple=!!s.multiple;var U=s.value;U!=null?Ca(i,!!s.multiple,U,!1):N!==!!s.multiple&&(s.defaultValue!=null?Ca(i,!!s.multiple,s.defaultValue,!0):Ca(i,!!s.multiple,s.multiple?[]:"",!1))}i[Yl]=s}catch(j){kr(e,e.return,j)}}break;case 6:if(Qn(t,e),ai(e),n&4){if(e.stateNode===null)throw Error(Rt(162));i=e.stateNode,s=e.memoizedProps;try{i.nodeValue=s}catch(j){kr(e,e.return,j)}}break;case 3:if(Qn(t,e),ai(e),n&4&&r!==null&&r.memoizedState.isDehydrated)try{Pl(t.containerInfo)}catch(j){kr(e,e.return,j)}break;case 4:Qn(t,e),ai(e);break;case 13:Qn(t,e),ai(e),i=e.child,i.flags&8192&&(s=i.memoizedState!==null,i.stateNode.isHidden=s,!s||i.alternate!==null&&i.alternate.memoizedState!==null||(Ed=Ar())),n&4&&Dp(e);break;case 22:if(w=r!==null&&r.memoizedState!==null,e.mode&1?(Or=(d=Or)||w,Qn(t,e),Or=d):Qn(t,e),ai(e),n&8192){if(d=e.memoizedState!==null,(e.stateNode.isHidden=d)&&!w&&e.mode&1)for(Ft=e,w=e.child;w!==null;){for(A=Ft=w;Ft!==null;){switch(N=Ft,U=N.child,N.tag){case 0:case 11:case 14:case 15:Tl(4,N,N.return);break;case 1:ka(N,N.return);var O=N.stateNode;if(typeof O.componentWillUnmount=="function"){n=N,r=N.return;try{t=n,O.props=t.memoizedProps,O.state=t.memoizedState,O.componentWillUnmount()}catch(j){kr(n,r,j)}}break;case 5:ka(N,N.return);break;case 22:if(N.memoizedState!==null){Fp(A);continue}}U!==null?(U.return=N,Ft=U):Fp(A)}w=w.sibling}e:for(w=null,A=e;;){if(A.tag===5){if(w===null){w=A;try{i=A.stateNode,d?(s=i.style,typeof s.setProperty=="function"?s.setProperty("display","none","important"):s.display="none"):($=A.stateNode,h=A.memoizedProps.style,l=h!=null&&h.hasOwnProperty("display")?h.display:null,$.style.display=s1("display",l))}catch(j){kr(e,e.return,j)}}}else if(A.tag===6){if(w===null)try{A.stateNode.nodeValue=d?"":A.memoizedProps}catch(j){kr(e,e.return,j)}}else if((A.tag!==22&&A.tag!==23||A.memoizedState===null||A===e)&&A.child!==null){A.child.return=A,A=A.child;continue}if(A===e)break e;for(;A.sibling===null;){if(A.return===null||A.return===e)break e;w===A&&(w=null),A=A.return}w===A&&(w=null),A.sibling.return=A.return,A=A.sibling}}break;case 19:Qn(t,e),ai(e),n&4&&Dp(e);break;case 21:break;default:Qn(t,e),ai(e)}}function ai(e){var t=e.flags;if(t&2){try{e:{for(var r=e.return;r!==null;){if(zg(r)){var n=r;break e}r=r.return}throw Error(Rt(160))}switch(n.tag){case 5:var i=n.stateNode;n.flags&32&&(Ll(i,""),n.flags&=-33);var s=Mp(e);Gf(e,s,i);break;case 3:case 4:var l=n.stateNode.containerInfo,$=Mp(e);Yf(e,$,l);break;default:throw Error(Rt(161))}}catch(h){kr(e,e.return,h)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function r3(e,t,r){Ft=e,qg(e)}function qg(e,t,r){for(var n=(e.mode&1)!==0;Ft!==null;){var i=Ft,s=i.child;if(i.tag===22&&n){var l=i.memoizedState!==null||Do;if(!l){var $=i.alternate,h=$!==null&&$.memoizedState!==null||Or;$=Do;var d=Or;if(Do=l,(Or=h)&&!d)for(Ft=i;Ft!==null;)l=Ft,h=l.child,l.tag===22&&l.memoizedState!==null?jp(i):h!==null?(h.return=l,Ft=h):jp(i);for(;s!==null;)Ft=s,qg(s),s=s.sibling;Ft=i,Do=$,Or=d}Lp(e)}else i.subtreeFlags&8772&&s!==null?(s.return=i,Ft=s):Lp(e)}}function Lp(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:Or||$c(5,t);break;case 1:var n=t.stateNode;if(t.flags&4&&!Or)if(r===null)n.componentDidMount();else{var i=t.elementType===t.type?r.memoizedProps:Zn(t.type,r.memoizedProps);n.componentDidUpdate(i,r.memoizedState,n.__reactInternalSnapshotBeforeUpdate)}var s=t.updateQueue;s!==null&&bp(t,s,n);break;case 3:var l=t.updateQueue;if(l!==null){if(r=null,t.child!==null)switch(t.child.tag){case 5:r=t.child.stateNode;break;case 1:r=t.child.stateNode}bp(t,l,r)}break;case 5:var $=t.stateNode;if(r===null&&t.flags&4){r=$;var h=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":h.autoFocus&&r.focus();break;case"img":h.src&&(r.src=h.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var d=t.alternate;if(d!==null){var w=d.memoizedState;if(w!==null){var A=w.dehydrated;A!==null&&Pl(A)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(Rt(163))}Or||t.flags&512&&Vf(t)}catch(N){kr(t,t.return,N)}}if(t===e){Ft=null;break}if(r=t.sibling,r!==null){r.return=t.return,Ft=r;break}Ft=t.return}}function Fp(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 jp(e){for(;Ft!==null;){var t=Ft;try{switch(t.tag){case 0:case 11:case 15:var r=t.return;try{$c(4,t)}catch(h){kr(t,r,h)}break;case 1:var n=t.stateNode;if(typeof n.componentDidMount=="function"){var i=t.return;try{n.componentDidMount()}catch(h){kr(t,i,h)}}var s=t.return;try{Vf(t)}catch(h){kr(t,s,h)}break;case 5:var l=t.return;try{Vf(t)}catch(h){kr(t,l,h)}}}catch(h){kr(t,t.return,h)}if(t===e){Ft=null;break}var $=t.sibling;if($!==null){$.return=t.return,Ft=$;break}Ft=t.return}}var n3=Math.ceil,Mu=ji.ReactCurrentDispatcher,kd=ji.ReactCurrentOwner,Hn=ji.ReactCurrentBatchConfig,rr=0,Vr=null,Rr=null,Kr=0,kn=0,Sa=ws(0),Fr=0,Zl=null,Ys=0,fc=0,Sd=0,Rl=null,gn=null,Ed=0,Ua=1/0,Ei=null,Du=!1,Kf=null,cs=null,Lo=!1,ns=null,Lu=0,zl=0,Xf=null,uu=-1,cu=0;function $n(){return rr&6?Ar():uu!==-1?uu:uu=Ar()}function $s(e){return e.mode&1?rr&2&&Kr!==0?Kr&-Kr:B4.transition!==null?(cu===0&&(cu=g1()),cu):(e=ar,e!==0||(e=window.event,e=e===void 0?16:S1(e.type)),e):1}function ii(e,t,r,n){if(50<zl)throw zl=0,Xf=null,Error(Rt(185));oo(e,r,n),(!(rr&2)||e!==Vr)&&(e===Vr&&(!(rr&2)&&(fc|=r),Fr===4&&es(e,Kr)),xn(e,n),r===1&&rr===0&&!(t.mode&1)&&(Ua=Ar()+500,oc&&ks()))}function xn(e,t){var r=e.callbackNode;B2(e,t);var n=yu(e,e===Vr?Kr:0);if(n===0)r!==null&&Kh(r),e.callbackNode=null,e.callbackPriority=0;else if(t=n&-n,e.callbackPriority!==t){if(r!=null&&Kh(r),t===1)e.tag===0?j4(Bp.bind(null,e)):W1(Bp.bind(null,e)),M4(function(){!(rr&6)&&ks()}),r=null;else{switch(v1(n)){case 1:r=Z0;break;case 4:r=m1;break;case 16:r=vu;break;case 536870912:r=_1;break;default:r=vu}r=Ug(r,Mg.bind(null,e))}e.callbackPriority=t,e.callbackNode=r}}function Mg(e,t){if(uu=-1,cu=0,rr&6)throw Error(Rt(327));var r=e.callbackNode;if(Ia()&&e.callbackNode!==r)return null;var n=yu(e,e===Vr?Kr:0);if(n===0)return null;if(n&30||n&e.expiredLanes||t)t=Fu(e,n);else{t=n;var i=rr;rr|=2;var s=Lg();(Vr!==e||Kr!==t)&&(Ei=null,Ua=Ar()+500,Ps(e,t));do try{a3();break}catch($){Dg(e,$)}while(!0);$d(),Mu.current=s,rr=i,Rr!==null?t=0:(Vr=null,Kr=0,t=Fr)}if(t!==0){if(t===2&&(i=xf(e),i!==0&&(n=i,t=Qf(e,i))),t===1)throw r=Zl,Ps(e,0),es(e,n),xn(e,Ar()),r;if(t===6)es(e,n);else{if(i=e.current.alternate,!(n&30)&&!i3(i)&&(t=Fu(e,n),t===2&&(s=xf(e),s!==0&&(n=s,t=Qf(e,s))),t===1))throw r=Zl,Ps(e,0),es(e,n),xn(e,Ar()),r;switch(e.finishedWork=i,e.finishedLanes=n,t){case 0:case 1:throw Error(Rt(345));case 2:Is(e,gn,Ei);break;case 3:if(es(e,n),(n&130023424)===n&&(t=Ed+500-Ar(),10<t)){if(yu(e,0)!==0)break;if(i=e.suspendedLanes,(i&n)!==n){$n(),e.pingedLanes|=e.suspendedLanes&i;break}e.timeoutHandle=Rf(Is.bind(null,e,gn,Ei),t);break}Is(e,gn,Ei);break;case 4:if(es(e,n),(n&4194240)===n)break;for(t=e.eventTimes,i=-1;0<n;){var l=31-ni(n);s=1<<l,l=t[l],l>i&&(i=l),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*n3(n/1960))-n,10<n){e.timeoutHandle=Rf(Is.bind(null,e,gn,Ei),n);break}Is(e,gn,Ei);break;case 5:Is(e,gn,Ei);break;default:throw Error(Rt(329))}}}return xn(e,Ar()),e.callbackNode===r?Mg.bind(null,e):null}function Qf(e,t){var r=Rl;return e.current.memoizedState.isDehydrated&&(Ps(e,t).flags|=256),e=Fu(e,t),e!==2&&(t=gn,gn=r,t!==null&&Jf(t)),e}function Jf(e){gn===null?gn=e:gn.push.apply(gn,e)}function i3(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(!si(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 es(e,t){for(t&=~Sd,t&=~fc,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var r=31-ni(t),n=1<<r;e[r]=-1,t&=~n}}function Bp(e){if(rr&6)throw Error(Rt(327));Ia();var t=yu(e,0);if(!(t&1))return xn(e,Ar()),null;var r=Fu(e,t);if(e.tag!==0&&r===2){var n=xf(e);n!==0&&(t=n,r=Qf(e,n))}if(r===1)throw r=Zl,Ps(e,0),es(e,t),xn(e,Ar()),r;if(r===6)throw Error(Rt(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,Is(e,gn,Ei),xn(e,Ar()),null}function Ad(e,t){var r=rr;rr|=1;try{return e(t)}finally{rr=r,rr===0&&(Ua=Ar()+500,oc&&ks())}}function Gs(e){ns!==null&&ns.tag===0&&!(rr&6)&&Ia();var t=rr;rr|=1;var r=Hn.transition,n=ar;try{if(Hn.transition=null,ar=1,e)return e()}finally{ar=n,Hn.transition=r,rr=t,!(rr&6)&&ks()}}function Cd(){kn=Sa.current,dr(Sa)}function Ps(e,t){e.finishedWork=null,e.finishedLanes=0;var r=e.timeoutHandle;if(r!==-1&&(e.timeoutHandle=-1,q4(r)),Rr!==null)for(r=Rr.return;r!==null;){var n=r;switch(od(n),n.tag){case 1:n=n.type.childContextTypes,n!=null&&Su();break;case 3:Ba(),dr(yn),dr(nn),_d();break;case 5:md(n);break;case 4:Ba();break;case 13:dr(gr);break;case 19:dr(gr);break;case 10:fd(n.type._context);break;case 22:case 23:Cd()}r=r.return}if(Vr=e,Rr=e=fs(e.current,null),Kr=kn=t,Fr=0,Zl=null,Sd=fc=Ys=0,gn=Rl=null,Ls!==null){for(t=0;t<Ls.length;t++)if(r=Ls[t],n=r.interleaved,n!==null){r.interleaved=null;var i=n.next,s=r.pending;if(s!==null){var l=s.next;s.next=i,n.next=l}r.pending=n}Ls=null}return e}function Dg(e,t){do{var r=Rr;try{if($d(),au.current=qu,Iu){for(var n=yr.memoizedState;n!==null;){var i=n.queue;i!==null&&(i.pending=null),n=n.next}Iu=!1}if(Vs=0,Wr=Dr=yr=null,Cl=!1,Xl=0,kd.current=null,r===null||r.return===null){Fr=1,Zl=t,Rr=null;break}e:{var s=e,l=r.return,$=r,h=t;if(t=Kr,$.flags|=32768,h!==null&&typeof h=="object"&&typeof h.then=="function"){var d=h,w=$,A=w.tag;if(!(w.mode&1)&&(A===0||A===11||A===15)){var N=w.alternate;N?(w.updateQueue=N.updateQueue,w.memoizedState=N.memoizedState,w.lanes=N.lanes):(w.updateQueue=null,w.memoizedState=null)}var U=Ap(l);if(U!==null){U.flags&=-257,Cp(U,l,$,s,t),U.mode&1&&Ep(s,d,t),t=U,h=d;var O=t.updateQueue;if(O===null){var j=new Set;j.add(h),t.updateQueue=j}else O.add(h);break e}else{if(!(t&1)){Ep(s,d,t),Td();break e}h=Error(Rt(426))}}else if(hr&&$.mode&1){var q=Ap(l);if(q!==null){!(q.flags&65536)&&(q.flags|=256),Cp(q,l,$,s,t),ud(Pa(h,$));break e}}s=h=Pa(h,$),Fr!==4&&(Fr=2),Rl===null?Rl=[s]:Rl.push(s),s=l;do{switch(s.tag){case 3:s.flags|=65536,t&=-t,s.lanes|=t;var Y=vg(s,h,t);yp(s,Y);break e;case 1:$=h;var he=s.type,ne=s.stateNode;if(!(s.flags&128)&&(typeof he.getDerivedStateFromError=="function"||ne!==null&&typeof ne.componentDidCatch=="function"&&(cs===null||!cs.has(ne)))){s.flags|=65536,t&=-t,s.lanes|=t;var _e=yg(s,$,t);yp(s,_e);break e}}s=s.return}while(s!==null)}jg(r)}catch(Q){t=Q,Rr===r&&r!==null&&(Rr=r=r.return);continue}break}while(!0)}function Lg(){var e=Mu.current;return Mu.current=qu,e===null?qu:e}function Td(){(Fr===0||Fr===3||Fr===2)&&(Fr=4),Vr===null||!(Ys&268435455)&&!(fc&268435455)||es(Vr,Kr)}function Fu(e,t){var r=rr;rr|=2;var n=Lg();(Vr!==e||Kr!==t)&&(Ei=null,Ps(e,t));do try{s3();break}catch(i){Dg(e,i)}while(!0);if($d(),rr=r,Mu.current=n,Rr!==null)throw Error(Rt(261));return Vr=null,Kr=0,Fr}function s3(){for(;Rr!==null;)Fg(Rr)}function a3(){for(;Rr!==null&&!z2();)Fg(Rr)}function Fg(e){var t=Pg(e.alternate,e,kn);e.memoizedProps=e.pendingProps,t===null?jg(e):Rr=t,kd.current=null}function jg(e){var t=e;do{var r=t.alternate;if(e=t.return,t.flags&32768){if(r=O4(r,t),r!==null){r.flags&=32767,Rr=r;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{Fr=6,Rr=null;return}}else if(r=Z4(r,t,kn),r!==null){Rr=r;return}if(t=t.sibling,t!==null){Rr=t;return}Rr=t=e}while(t!==null);Fr===0&&(Fr=5)}function Is(e,t,r){var n=ar,i=Hn.transition;try{Hn.transition=null,ar=1,l3(e,t,r,n)}finally{Hn.transition=i,ar=n}return null}function l3(e,t,r,n){do Ia();while(ns!==null);if(rr&6)throw Error(Rt(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(Rt(177));e.callbackNode=null,e.callbackPriority=0;var s=r.lanes|r.childLanes;if(P2(e,s),e===Vr&&(Rr=Vr=null,Kr=0),!(r.subtreeFlags&2064)&&!(r.flags&2064)||Lo||(Lo=!0,Ug(vu,function(){return Ia(),null})),s=(r.flags&15990)!==0,r.subtreeFlags&15990||s){s=Hn.transition,Hn.transition=null;var l=ar;ar=1;var $=rr;rr|=4,kd.current=null,t3(e,r),Ig(r,e),A4(Cf),bu=!!Af,Cf=Af=null,e.current=r,r3(r),N2(),rr=$,ar=l,Hn.transition=s}else e.current=r;if(Lo&&(Lo=!1,ns=e,Lu=i),s=e.pendingLanes,s===0&&(cs=null),M2(r.stateNode),xn(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(Du)throw Du=!1,e=Kf,Kf=null,e;return Lu&1&&e.tag!==0&&Ia(),s=e.pendingLanes,s&1?e===Xf?zl++:(zl=0,Xf=e):zl=0,ks(),null}function Ia(){if(ns!==null){var e=v1(Lu),t=Hn.transition,r=ar;try{if(Hn.transition=null,ar=16>e?16:e,ns===null)var n=!1;else{if(e=ns,ns=null,Lu=0,rr&6)throw Error(Rt(331));var i=rr;for(rr|=4,Ft=e.current;Ft!==null;){var s=Ft,l=s.child;if(Ft.flags&16){var $=s.deletions;if($!==null){for(var h=0;h<$.length;h++){var d=$[h];for(Ft=d;Ft!==null;){var w=Ft;switch(w.tag){case 0:case 11:case 15:Tl(8,w,s)}var A=w.child;if(A!==null)A.return=w,Ft=A;else for(;Ft!==null;){w=Ft;var N=w.sibling,U=w.return;if(Rg(w),w===d){Ft=null;break}if(N!==null){N.return=U,Ft=N;break}Ft=U}}}var O=s.alternate;if(O!==null){var j=O.child;if(j!==null){O.child=null;do{var q=j.sibling;j.sibling=null,j=q}while(j!==null)}}Ft=s}}if(s.subtreeFlags&2064&&l!==null)l.return=s,Ft=l;else e:for(;Ft!==null;){if(s=Ft,s.flags&2048)switch(s.tag){case 0:case 11:case 15:Tl(9,s,s.return)}var Y=s.sibling;if(Y!==null){Y.return=s.return,Ft=Y;break e}Ft=s.return}}var he=e.current;for(Ft=he;Ft!==null;){l=Ft;var ne=l.child;if(l.subtreeFlags&2064&&ne!==null)ne.return=l,Ft=ne;else e:for(l=he;Ft!==null;){if($=Ft,$.flags&2048)try{switch($.tag){case 0:case 11:case 15:$c(9,$)}}catch(Q){kr($,$.return,Q)}if($===l){Ft=null;break e}var _e=$.sibling;if(_e!==null){_e.return=$.return,Ft=_e;break e}Ft=$.return}}if(rr=i,ks(),hi&&typeof hi.onPostCommitFiberRoot=="function")try{hi.onPostCommitFiberRoot(nc,e)}catch{}n=!0}return n}finally{ar=r,Hn.transition=t}}return!1}function Pp(e,t,r){t=Pa(r,t),t=vg(e,t,1),e=us(e,t,1),t=$n(),e!==null&&(oo(e,1,t),xn(e,t))}function kr(e,t,r){if(e.tag===3)Pp(e,e,r);else for(;t!==null;){if(t.tag===3){Pp(t,e,r);break}else if(t.tag===1){var n=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof n.componentDidCatch=="function"&&(cs===null||!cs.has(n))){e=Pa(r,e),e=yg(t,e,1),t=us(t,e,1),e=$n(),t!==null&&(oo(t,1,e),xn(t,e));break}}t=t.return}}function o3(e,t,r){var n=e.pingCache;n!==null&&n.delete(t),t=$n(),e.pingedLanes|=e.suspendedLanes&r,Vr===e&&(Kr&r)===r&&(Fr===4||Fr===3&&(Kr&130023424)===Kr&&500>Ar()-Ed?Ps(e,0):Sd|=r),xn(e,t)}function Bg(e,t){t===0&&(e.mode&1?(t=Ao,Ao<<=1,!(Ao&130023424)&&(Ao=4194304)):t=1);var r=$n();e=Di(e,t),e!==null&&(oo(e,t,r),xn(e,r))}function u3(e){var t=e.memoizedState,r=0;t!==null&&(r=t.retryLane),Bg(e,r)}function c3(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(Rt(314))}n!==null&&n.delete(t),Bg(e,r)}var Pg;Pg=function(e,t,r){if(e!==null)if(e.memoizedProps!==t.pendingProps||yn.current)vn=!0;else{if(!(e.lanes&r)&&!(t.flags&128))return vn=!1,J4(e,t,r);vn=!!(e.flags&131072)}else vn=!1,hr&&t.flags&1048576&&V1(t,Cu,t.index);switch(t.lanes=0,t.tag){case 2:var n=t.type;ou(e,t),e=t.pendingProps;var i=La(t,nn.current);Na(t,r),i=vd(null,t,n,e,i,r);var s=yd();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,bn(n)?(s=!0,Eu(t)):s=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,hd(t),i.updater=cc,t.stateNode=i,i._reactInternals=t,Lf(t,n,e,r),t=Bf(null,t,n,!0,s,r)):(t.tag=0,hr&&s&&ld(t),on(null,t,i,r),t=t.child),t;case 16:n=t.elementType;e:{switch(ou(e,t),e=t.pendingProps,i=n._init,n=i(n._payload),t.type=n,i=t.tag=f3(n),e=Zn(n,e),i){case 0:t=jf(null,t,n,e,r);break e;case 1:t=zp(null,t,n,e,r);break e;case 11:t=Tp(null,t,n,e,r);break e;case 14:t=Rp(null,t,n,Zn(n.type,e),r);break e}throw Error(Rt(306,n,""))}return t;case 0:return n=t.type,i=t.pendingProps,i=t.elementType===n?i:Zn(n,i),jf(e,t,n,i,r);case 1:return n=t.type,i=t.pendingProps,i=t.elementType===n?i:Zn(n,i),zp(e,t,n,i,r);case 3:e:{if(kg(t),e===null)throw Error(Rt(387));n=t.pendingProps,s=t.memoizedState,i=s.element,J1(e,t),zu(t,n,null,r);var l=t.memoizedState;if(n=l.element,s.isDehydrated)if(s={element:n,isDehydrated:!1,cache:l.cache,pendingSuspenseBoundaries:l.pendingSuspenseBoundaries,transitions:l.transitions},t.updateQueue.baseState=s,t.memoizedState=s,t.flags&256){i=Pa(Error(Rt(423)),t),t=Np(e,t,n,r,i);break e}else if(n!==i){i=Pa(Error(Rt(424)),t),t=Np(e,t,n,r,i);break e}else for(En=os(t.stateNode.containerInfo.firstChild),Cn=t,hr=!0,ei=null,r=X1(t,null,n,r),t.child=r;r;)r.flags=r.flags&-3|4096,r=r.sibling;else{if(Fa(),n===i){t=Li(e,t,r);break e}on(e,t,n,r)}t=t.child}return t;case 5:return Z1(t),e===null&&qf(t),n=t.type,i=t.pendingProps,s=e!==null?e.memoizedProps:null,l=i.children,Tf(n,i)?l=null:s!==null&&Tf(n,s)&&(t.flags|=32),wg(e,t),on(e,t,l,r),t.child;case 6:return e===null&&qf(t),null;case 13:return Sg(e,t,r);case 4:return pd(t,t.stateNode.containerInfo),n=t.pendingProps,e===null?t.child=ja(t,null,n,r):on(e,t,n,r),t.child;case 11:return n=t.type,i=t.pendingProps,i=t.elementType===n?i:Zn(n,i),Tp(e,t,n,i,r);case 7:return on(e,t,t.pendingProps,r),t.child;case 8:return on(e,t,t.pendingProps.children,r),t.child;case 12:return on(e,t,t.pendingProps.children,r),t.child;case 10:e:{if(n=t.type._context,i=t.pendingProps,s=t.memoizedProps,l=i.value,ur(Tu,n._currentValue),n._currentValue=l,s!==null)if(si(s.value,l)){if(s.children===i.children&&!yn.current){t=Li(e,t,r);break e}}else for(s=t.child,s!==null&&(s.return=t);s!==null;){var $=s.dependencies;if($!==null){l=s.child;for(var h=$.firstContext;h!==null;){if(h.context===n){if(s.tag===1){h=zi(-1,r&-r),h.tag=2;var d=s.updateQueue;if(d!==null){d=d.shared;var w=d.pending;w===null?h.next=h:(h.next=w.next,w.next=h),d.pending=h}}s.lanes|=r,h=s.alternate,h!==null&&(h.lanes|=r),Mf(s.return,r,t),$.lanes|=r;break}h=h.next}}else if(s.tag===10)l=s.type===t.type?null:s.child;else if(s.tag===18){if(l=s.return,l===null)throw Error(Rt(341));l.lanes|=r,$=l.alternate,$!==null&&($.lanes|=r),Mf(l,r,t),l=s.sibling}else l=s.child;if(l!==null)l.return=s;else for(l=s;l!==null;){if(l===t){l=null;break}if(s=l.sibling,s!==null){s.return=l.return,l=s;break}l=l.return}s=l}on(e,t,i.children,r),t=t.child}return t;case 9:return i=t.type,n=t.pendingProps.children,Na(t,r),i=Yn(i),n=n(i),t.flags|=1,on(e,t,n,r),t.child;case 14:return n=t.type,i=Zn(n,t.pendingProps),i=Zn(n.type,i),Rp(e,t,n,i,r);case 15:return bg(e,t,t.type,t.pendingProps,r);case 17:return n=t.type,i=t.pendingProps,i=t.elementType===n?i:Zn(n,i),ou(e,t),t.tag=1,bn(n)?(e=!0,Eu(t)):e=!1,Na(t,r),gg(t,n,i),Lf(t,n,i,r),Bf(null,t,n,!0,e,r);case 19:return Eg(e,t,r);case 22:return xg(e,t,r)}throw Error(Rt(156,t.tag))};function Ug(e,t){return p1(e,t)}function $3(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 Pn(e,t,r,n){return new $3(e,t,r,n)}function Rd(e){return e=e.prototype,!(!e||!e.isReactComponent)}function f3(e){if(typeof e=="function")return Rd(e)?1:0;if(e!=null){if(e=e.$$typeof,e===X0)return 11;if(e===Q0)return 14}return 2}function fs(e,t){var r=e.alternate;return r===null?(r=Pn(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 $u(e,t,r,n,i,s){var l=2;if(n=e,typeof e=="function")Rd(e)&&(l=1);else if(typeof e=="string")l=5;else e:switch(e){case pa:return Us(r.children,i,s,t);case K0:l=8,i|=8;break;case lf:return e=Pn(12,r,t,i|2),e.elementType=lf,e.lanes=s,e;case of:return e=Pn(13,r,t,i),e.elementType=of,e.lanes=s,e;case uf:return e=Pn(19,r,t,i),e.elementType=uf,e.lanes=s,e;case Z_:return dc(r,i,s,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Q_:l=10;break e;case J_:l=9;break e;case X0:l=11;break e;case Q0:l=14;break e;case Ji:l=16,n=null;break e}throw Error(Rt(130,e==null?e:typeof e,""))}return t=Pn(l,r,t,i),t.elementType=e,t.type=n,t.lanes=s,t}function Us(e,t,r,n){return e=Pn(7,e,n,t),e.lanes=r,e}function dc(e,t,r,n){return e=Pn(22,e,n,t),e.elementType=Z_,e.lanes=r,e.stateNode={isHidden:!1},e}function k$(e,t,r){return e=Pn(6,e,null,t),e.lanes=r,e}function S$(e,t,r){return t=Pn(4,e.children!==null?e.children:[],e.key,t),t.lanes=r,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function d3(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=s$(0),this.expirationTimes=s$(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=s$(0),this.identifierPrefix=n,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function zd(e,t,r,n,i,s,l,$,h){return e=new d3(e,t,r,$,h),t===1?(t=1,s===!0&&(t|=8)):t=0,s=Pn(3,null,null,t),e.current=s,s.stateNode=e,s.memoizedState={element:n,isDehydrated:r,cache:null,transitions:null,pendingSuspenseBoundaries:null},hd(s),e}function h3(e,t,r){var n=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:ha,key:n==null?null:""+n,children:e,containerInfo:t,implementation:r}}function Hg(e){if(!e)return hs;e=e._reactInternals;e:{if(Zs(e)!==e||e.tag!==1)throw Error(Rt(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(bn(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(Rt(171))}if(e.tag===1){var r=e.type;if(bn(r))return H1(e,r,t)}return t}function Wg(e,t,r,n,i,s,l,$,h){return e=zd(r,n,!0,e,i,s,l,$,h),e.context=Hg(null),r=e.current,n=$n(),i=$s(r),s=zi(n,i),s.callback=t??null,us(r,s,i),e.current.lanes=i,oo(e,i,n),xn(e,n),e}function hc(e,t,r,n){var i=t.current,s=$n(),l=$s(i);return r=Hg(r),t.context===null?t.context=r:t.pendingContext=r,t=zi(s,l),t.payload={element:e},n=n===void 0?null:n,n!==null&&(t.callback=n),e=us(i,t,l),e!==null&&(ii(e,i,l,s),su(e,i,l)),l}function ju(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 Up(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var r=e.retryLane;e.retryLane=r!==0&&r<t?r:t}}function Nd(e,t){Up(e,t),(e=e.alternate)&&Up(e,t)}function p3(){return null}var Vg=typeof reportError=="function"?reportError:function(e){console.error(e)};function Id(e){this._internalRoot=e}pc.prototype.render=Id.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(Rt(409));hc(e,t,null,null)};pc.prototype.unmount=Id.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Gs(function(){hc(null,e,null,null)}),t[Mi]=null}};function pc(e){this._internalRoot=e}pc.prototype.unstable_scheduleHydration=function(e){if(e){var t=x1();e={blockedOn:null,target:e,priority:t};for(var r=0;r<Oi.length&&t!==0&&t<Oi[r].priority;r++);Oi.splice(r,0,e),r===0&&k1(e)}};function qd(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function mc(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function Hp(){}function m3(e,t,r,n,i){if(i){if(typeof n=="function"){var s=n;n=function(){var d=ju(l);s.call(d)}}var l=Wg(t,n,e,0,null,!1,!1,"",Hp);return e._reactRootContainer=l,e[Mi]=l.current,Wl(e.nodeType===8?e.parentNode:e),Gs(),l}for(;i=e.lastChild;)e.removeChild(i);if(typeof n=="function"){var $=n;n=function(){var d=ju(h);$.call(d)}}var h=zd(e,0,!1,null,null,!1,!1,"",Hp);return e._reactRootContainer=h,e[Mi]=h.current,Wl(e.nodeType===8?e.parentNode:e),Gs(function(){hc(t,h,r,n)}),h}function _c(e,t,r,n,i){var s=r._reactRootContainer;if(s){var l=s;if(typeof i=="function"){var $=i;i=function(){var h=ju(l);$.call(h)}}hc(t,l,e,i)}else l=m3(r,t,e,i,n);return ju(l)}y1=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var r=gl(t.pendingLanes);r!==0&&(O0(t,r|1),xn(t,Ar()),!(rr&6)&&(Ua=Ar()+500,ks()))}break;case 13:Gs(function(){var n=Di(e,1);if(n!==null){var i=$n();ii(n,e,1,i)}}),Nd(e,1)}};ed=function(e){if(e.tag===13){var t=Di(e,134217728);if(t!==null){var r=$n();ii(t,e,134217728,r)}Nd(e,134217728)}};b1=function(e){if(e.tag===13){var t=$s(e),r=Di(e,t);if(r!==null){var n=$n();ii(r,e,t,n)}Nd(e,t)}};x1=function(){return ar};w1=function(e,t){var r=ar;try{return ar=e,t()}finally{ar=r}};vf=function(e,t,r){switch(t){case"input":if(ff(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=lc(n);if(!i)throw Error(Rt(90));e1(n),ff(n,i)}}}break;case"textarea":r1(e,r);break;case"select":t=r.value,t!=null&&Ca(e,!!r.multiple,t,!1)}};u1=Ad;c1=Gs;var _3={usingClientEntryPoint:!1,Events:[co,va,lc,l1,o1,Ad]},fl={findFiberByHostInstance:Ds,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},g3={bundleType:fl.bundleType,version:fl.version,rendererPackageName:fl.rendererPackageName,rendererConfig:fl.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:ji.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=d1(e),e===null?null:e.stateNode},findFiberByHostInstance:fl.findFiberByHostInstance||p3,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 Fo=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Fo.isDisabled&&Fo.supportsFiber)try{nc=Fo.inject(g3),hi=Fo}catch{}}In.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=_3;In.createPortal=function(e,t){var r=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!qd(t))throw Error(Rt(200));return h3(e,t,null,r)};In.createRoot=function(e,t){if(!qd(e))throw Error(Rt(299));var r=!1,n="",i=Vg;return t!=null&&(t.unstable_strictMode===!0&&(r=!0),t.identifierPrefix!==void 0&&(n=t.identifierPrefix),t.onRecoverableError!==void 0&&(i=t.onRecoverableError)),t=zd(e,1,!1,null,null,r,!1,n,i),e[Mi]=t.current,Wl(e.nodeType===8?e.parentNode:e),new Id(t)};In.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(Rt(188)):(e=Object.keys(e).join(","),Error(Rt(268,e)));return e=d1(t),e=e===null?null:e.stateNode,e};In.flushSync=function(e){return Gs(e)};In.hydrate=function(e,t,r){if(!mc(t))throw Error(Rt(200));return _c(null,e,t,!0,r)};In.hydrateRoot=function(e,t,r){if(!qd(e))throw Error(Rt(405));var n=r!=null&&r.hydratedSources||null,i=!1,s="",l=Vg;if(r!=null&&(r.unstable_strictMode===!0&&(i=!0),r.identifierPrefix!==void 0&&(s=r.identifierPrefix),r.onRecoverableError!==void 0&&(l=r.onRecoverableError)),t=Wg(t,null,e,1,r??null,i,!1,s,l),e[Mi]=t.current,Wl(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 pc(t)};In.render=function(e,t,r){if(!mc(t))throw Error(Rt(200));return _c(null,e,t,!1,r)};In.unmountComponentAtNode=function(e){if(!mc(e))throw Error(Rt(40));return e._reactRootContainer?(Gs(function(){_c(null,null,e,!1,function(){e._reactRootContainer=null,e[Mi]=null})}),!0):!1};In.unstable_batchedUpdates=Ad;In.unstable_renderSubtreeIntoContainer=function(e,t,r,n){if(!mc(r))throw Error(Rt(200));if(e==null||e._reactInternals===void 0)throw Error(Rt(38));return _c(e,t,r,!1,n)};In.version="18.3.1-next-f1338f8080-20240426";function Yg(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Yg)}catch(e){console.error(e)}}Yg(),Y_.exports=In;var Gg=Y_.exports,Kg,Wp=Gg;Kg=Wp.createRoot,Wp.hydrateRoot;const Ea=typeof window<"u"&&window.__BASE__||"",xr=e=>Ea+e;function Wn(e){return e.map(t=>typeof t=="number"?`[${t}]`:`:${encodeURIComponent(t)}`).join("")||":"}const v3=/\[\d+\]|[^:\[\]]+/g,y3=/\[\d+\]|[^/\[\]]+/g;function jr(e){const t=[];for(const r of e.match(v3)||[])t.push(/^\[\d+\]$/.test(r)?Number(r.slice(1,-1)):Md(r));return t}function Lr(e){return Wn(jr(e))}function Md(e){try{return decodeURIComponent(e)}catch{return e}}function Vp(){let e=window.location.pathname;Ea&&(e===Ea||e.startsWith(Ea+"/"))&&(e=e.slice(Ea.length)||"/");const t=[];for(const r of e.match(y3)||[])t.push(/^\[\d+\]$/.test(r)?Number(r.slice(1,-1)):Md(r));return Wn(t)}function b3(e){const r=jr(e).map(n=>typeof n=="number"?`[${n}]`:`/${encodeURIComponent(n)}`).join("")||"/";return Ea+r}function fo(e,t){return jr(t).slice(jr(e).length).map(n=>typeof n=="number"?`[${n}]`:`/${n}`).join("")}function Xg(e,t){const r=(e===":"?"":e)+":yamlover-fragments:"+t;return fo(e,r)}function _i(e){const t=jr(e);return t.length?t.map(r=>typeof r=="number"?`[${r}]`:`: ${r}`).join(""):":"}function x3(e){const t=jr(Lr(e)),r=t.indexOf("tags"),n=r>=0?t.slice(r+1):t;return n.length?n.map(i=>typeof i=="number"?`[${i}]`:i).join(": "):t.length?String(t[t.length-1]):":"}function w3(e){return e.replace(/[^:/\[\]]+/g,t=>Md(t))}function Nl(e,t){return e===t?!1:e===":"?!0:t.startsWith(e+":")||t.startsWith(e+"[")}function Yp(e){return new URLSearchParams(window.location.search).get("format")||e}function F9(){const e=Number(new URLSearchParams(window.location.search).get("page"));return Number.isInteger(e)&&e>1?e:1}function j9(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 Ts(e,t,r=!1){const n=new URLSearchParams(window.location.search);n.set("format",t),r||n.delete("page");const i=`${b3(e||":")}?${n.toString()}`;i!==window.location.pathname+window.location.search&&(r?window.history.replaceState({},"",i):window.history.pushState({},"",i))}function k3(e,t){const r=jr(e),n=[];return t&&n.push({label:t,path:":"}),r.forEach((i,s)=>{n.push({label:typeof i=="number"?`[${i}]`:i,path:Wn(r.slice(0,s+1))})}),n}async function Bi(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 Gp(){return Bi(xr("/api/info"))}function S3(){return Bi(xr("/api/tasks"))}function oa(e=":",t){const r=new URLSearchParams({path:e});return t!=null&&r.set("depth",String(t)),Bi(xr(`/api/tree?${r}`))}function en(e,t,r){const n=new URLSearchParams({path:e});return Qg(n,t),r?.binary&&n.set("binary","1"),Bi(xr(`/api/json?${n}`))}function Qg(e,t){t===null?e.set("depth",".inf"):t!==void 0&&e.set("depth",String(t))}function Pi(e){return xr(`/api/blob?path=${encodeURIComponent(e)}`)}function Kp(e,t,r){return xr(`/api/thumb?path=${encodeURIComponent(e)}&w=${t}&h=${r}`)}function E3(e,t){const r=new URLSearchParams({path:e});return Qg(r,t),Bi(xr(`/api/schema?${r}`))}function Ol(e){return Bi(xr(`/api/annotations?path=${encodeURIComponent(e)}`))}function A3(e){return Bi(xr(`/api/tagged?path=${encodeURIComponent(e)}`))}function C3(e,t=":"){const r=new URLSearchParams({q:e,path:t});return Bi(xr(`/api/query?${r}`)).then(n=>n.results)}async function Ss(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 Jg(){return Bi(xr("/api/config"))}function T3(e,t,r){return Ss(xr("/api/fragment"),{target:e,selector:t,...r?{imageBase64:r}:{}})}function Ha(e){return Ss(xr("/api/annotate"),e)}function R3(e,t){return Ss(xr("/api/board"),{path:e,lanes:t})}function z3(e){return fetch(xr("/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 N3(){return Ss(xr("/api/agent-docs"),{})}function gc(e){return fetch(xr("/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 I3(e,t,r){return gc({path:e,filename:t,contentBase64:r})}function q3(e,t,r){return gc({path:e,filename:t,contentBase64:r,inline:!0})}function M3(e,t){return gc({path:e,text:t})}function D3(e,t){return gc({path:e,rich:t})}function vc(e){return Ss(xr("/api/edit"),{edits:e})}function Xp(e){return Ss(xr("/api/preview"),{source:e})}function L3(e,t){return Ss(xr("/api/edit-text"),{source:e,edits:t})}function Zg(e,t,r,n){const i=F3(e);return Ss(xr("/api/edit"),{path:t,op:"insert",concrete:r,name:i,meta:`*${e}`,yamlover:j3(i)})}function F3(e){const t=jr(e);return"New "+String(t[t.length-1]??"object")}function j3(e){return`title: ${JSON.stringify(e)}
|
|
42
|
-
- ""`}function yc(e,t){const r=new URLSearchParams({target:e,tag:t});return fetch(xr(`/api/annotate?${r}`),{method:"DELETE"}).then(async n=>{if(!n.ok)throw new Error((await n.json().catch(()=>null))?.error||`HTTP ${n.status}`)})}const B3="modulepreload",P3=function(e){return"/"+e},Qp={},Mn=function(t,r,n){let i=Promise.resolve();if(r&&r.length>0){document.getElementsByTagName("link");const l=document.querySelector("meta[property=csp-nonce]"),$=l?.nonce||l?.getAttribute("nonce");i=Promise.allSettled(r.map(h=>{if(h=P3(h),h in Qp)return;Qp[h]=!0;const d=h.endsWith(".css"),w=d?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${h}"]${w}`))return;const A=document.createElement("link");if(A.rel=d?"stylesheet":B3,d||(A.as="script"),A.crossOrigin="",A.href=h,$&&A.setAttribute("nonce",$),document.head.appendChild(A),d)return new Promise((N,U)=>{A.addEventListener("load",N),A.addEventListener("error",()=>U(new Error(`Unable to preload CSS for ${h}`)))})}))}function s(l){const $=new Event("vite:preloadError",{cancelable:!0});if($.payload=l,window.dispatchEvent($),!$.defaultPrevented)throw l}return i.then(l=>{for(const $ of l||[])$.status==="rejected"&&s($.reason);return t().catch(s)})},Og=new Set(["json","json5","json5p"]),ev=new Set(["yaml","yamlover"]);function tv(e){return!!e&&e.startsWith("file/")}function U3(e){return e==="file/binary"}function Os(e){return e==="dir"||e==="dir/yamlover"}function rv(e){if(!e)return null;const t=e.startsWith("file/")?e.slice(5):e;return Og.has(t)||ev.has(t)?t:null}function bc(e){const t=rv(e);return t!=null&&Og.has(t)}function nv(e){const t=rv(e);return t!=null&&ev.has(t)}const Bu=ut.createContext({unlocked:!1});function ho(){return ut.useContext(Bu)}function Hr(e){return e.kind==="pointer"}const iv=/^(?:[A-Za-z][A-Za-z0-9+.-]*:)?\/\//;function Wa(e,t=!1){if(t){const l=Wa(e);return l.base.scope==="current"?{...l,base:{scope:"document"}}:l}if(H3(e))return W3(e);const r=iv.exec(e);if(r){const l=e.slice(r[0].length),{seg:$,rest:h}=V3(l);return{kind:"pointer",base:{scope:"link",authority:ov($)},steps:Zp(h),raw:e}}if(e[0]==="/")return{kind:"pointer",base:{scope:"document"},steps:Zp(e),raw:e};const n=av(e);let i={scope:"current"};n.length>0&&n[0]===".."&&(i={scope:"parent"},n.shift());const s=[];for(const l of n)l!==""&&s.push(...lv(l));return{kind:"pointer",base:i,steps:s,raw:e}}function H3(e){if(e.startsWith(":"))return!0;if(iv.test(e))return!1;let t=null;for(let r=0;r<e.length;r++){const n=e[r];if(n==="\\"&&t===null){r++;continue}if(t!==null){n===t&&(t=null);continue}if(n==="'"||n==='"'){t=n;continue}if(n===":")return!0}return!1}function W3(e){let t=e,r;if(t.startsWith(":::")){t=t.slice(3);const i=jo(t),s=i.shift();if(s===void 0||s==="")throw new SyntaxError(`pointer: ":::" needs an authority in "${e}"`);return r={scope:"link",authority:Jp(s),world:!0},{kind:"pointer",base:r,steps:Bo(i),raw:e}}if(t.startsWith("::")){t=t.slice(2);const i=jo(t),s=i.shift();if(s===void 0||s==="")throw new SyntaxError(`pointer: "::" needs a first portion in "${e}"`);return r={scope:"link",authority:Jp(s)},{kind:"pointer",base:r,steps:Bo(i),raw:e}}if(t.startsWith(":"))return{kind:"pointer",base:{scope:"document"},steps:Bo(jo(t.slice(1))),raw:e};const n=jo(t);return r={scope:"current"},n.length>0&&n[0]===".."&&(r={scope:"parent"},n.shift()),{kind:"pointer",base:r,steps:Bo(n),raw:e}}function jo(e){const t=[];let r="",n=null;for(let i=0;i<e.length;i++){const s=e[i];if(n!==null){r+=s,s===n&&(n=null);continue}if(s==="\\"&&i+1<e.length){r+=s+e[i+1],i++;continue}if(s==="'"||s==='"'){n=s,r+=s;continue}if(s===":"){t.push(r.trim()),r="";continue}r+=s}return t.push(r.trim()),t.filter(i=>i!=="")}function Bo(e){const t=[];for(const r of e)t.push(...sv(r));return t}function sv(e){if(e==="..")return[{sel:"parent"}];if(e.startsWith("..")&&e[2]==="[")return[{sel:"parent"},...Pu(e.slice(2),e,"portion")];let t="",r=0;if(e[0]==="'"||e[0]==='"'){const i=e[0];for(r=1;r<e.length;r++){if(e[r]===i){if(i==="'"&&e[r+1]==="'"){t+=i,r++;continue}r++;break}if(i==='"'&&e[r]==="\\"&&r+1<e.length){t+=e[r+1],r++;continue}t+=e[r]}}else for(;r<e.length;r++){const i=e[r];if(i==="\\"&&r+1<e.length){t+=e[r+1],r++;continue}if(i==="[")break;if(i===" "||i===" ")throw new SyntaxError(`pointer: a key containing a space must be quoted ("${e}")`);t+=i}const n=[];return t!==""&&n.push({sel:"key",name:t}),r<e.length&&n.push(...Pu(e.slice(r),e,"portion")),n}function Pu(e,t,r){const n=[];let i=0;for(;i<e.length;){if(e[i]!=="[")throw new SyntaxError(`pointer: malformed ${r} "${t}"`);let s=i+1;if(e[s]==="."){s++;let $=0;if(e[s]==="+"||e[s]==="-"){const h=e[s]==="-"?-1:1;s++;let d="";for(;s<e.length&&e[s]>="0"&&e[s]<="9";)d+=e[s],s++;if(d==="")throw new SyntaxError(`pointer: malformed index in "${t}"`);$=h*Number.parseInt(d,10)}if(e[s]!=="]")throw new SyntaxError(`pointer: malformed index in "${t}"`);n.push({sel:"relindex",k:$}),i=s+1;continue}let l="";for(;s<e.length&&e[s]>="0"&&e[s]<="9";)l+=e[s],s++;if(l===""||e[s]!=="]")throw new SyntaxError(`pointer: malformed index in "${t}"`);n.push({sel:"index",n:Number.parseInt(l,10)}),i=s+1}return n}function Jp(e){const t=sv(e);if(t.length!==1||t[0].sel!=="key")throw new SyntaxError(`pointer: bad authority portion "${e}"`);return t[0].name}function Zp(e){const t=av(e),r=[];for(let n=0;n<t.length;n++)t[n]!==""&&r.push(...lv(t[n]));return r}function av(e){const t=[];let r="";for(let n=0;n<e.length;n++){const i=e[n];if(i==="\\"&&n+1<e.length){r+=i+e[n+1],n++;continue}if(i==="/"){t.push(r),r="";continue}r+=i}return t.push(r),t}function V3(e){let t=0,r="";for(;t<e.length;t++){const n=e[t];if(n==="\\"&&t+1<e.length){r+=n+e[t+1],t++;continue}if(n==="/")break;r+=n}return{seg:r,rest:e.slice(t)}}function lv(e){if(e==="..")return[{sel:"parent"}];if(e.startsWith("..")&&e[2]==="[")return[{sel:"parent"},...Pu(e.slice(2),e,"segment")];let t=0,r="";for(;t<e.length;t++){const i=e[t];if(i==="\\"&&t+1<e.length){r+=i+e[t+1],t++;continue}if(i==="[")break;r+=i}const n=[];return r!==""&&n.push({sel:"key",name:ov(r)}),t<e.length&&n.push(...Pu(e.slice(t),e,"segment")),n}function ov(e){let t="";for(let r=0;r<e.length;r++){if(e[r]==="\\"&&r+1<e.length){t+=e[r+1],r++;continue}t+=e[r]}return t}function uv(e,t,r=!1){let n=!1;e.endsWith("[]")&&!e.endsWith("\\[]")&&(n=!0,e=e.slice(0,-2));const i=Wa(e,r);if(i.steps.some(s=>s.sel==="relindex")&&t('an anchor may not claim a position — "[.±k]" is link-only'),!n){const s=i.steps[i.steps.length-1];s===void 0&&t('an anchor path needs a key segment (or a trailing "[]" for ordinal membership)'),s.sel!=="key"&&t('an anchor may not claim a position — use a trailing "[]" for ordinal membership')}return{path:i,...n?{ordinal:!0}:{}}}function Y3(e,t,r,n){if(t.length===0)return;t.sort((O,j)=>O.start-j.start);const i=[],s=new Map,l=O=>{for(const j of O.entries??[])j.meta?.span&&(i.push(j),s.set(j,O)),Hr(j.value)||l(j.value)};l(e.root);const $=i.length?Math.min(...i.map(O=>O.meta.span.start)):r.length,h=G3(r),d=(O,j)=>j>O&&/\r?\n[ \t]*\r?\n/.test(r.slice(O,j)),w=(O,j)=>({text:O.text,span:{uri:n,start:O.start,end:O.end},placement:j,style:O.style,...K3(r,O.start)?{blankBefore:!0}:{}}),A=(O,j)=>{O.comments=[...O.comments??[],j]},N=new Set,U=t.filter(O=>O.ownLine&&O.start<$);if(U.length>0){let O=0;for(;O+1<U.length&&!d(U[O].end,U[O+1].start);)O++;const j=O+1<U.length?U[O+1].start:$;if(d(U[O].end,j)){e.head=U.slice(0,O+1).map(q=>w(q,"leading"));for(let q=0;q<=O;q++)N.add(U[q])}}for(const O of t){if(N.has(O))continue;if(!O.ownLine){const q=h(O.start);let Y;for(const _e of i){const Q=_e.meta.span;if(Q.end>O.start||h(Q.end)!==q)continue;const be=Y?Y.meta.span:void 0;(!be||Q.end>be.end||Q.end===be.end&&Q.start>be.start)&&(Y=_e)}if(Y){A(Y.meta,w(O,"trailing")),N.add(O);continue}const he=Op(i,O.start);if(he&&h(he.meta.span.start)===q){A(he.meta,w(O,"leading")),N.add(O);continue}const ne=he?s.get(he):e.root;ne.meta=ne.meta??{},A(ne.meta,w(O,"trailing")),N.add(O);continue}const j=Op(i,O.start);if(j){A(j.meta,w(O,"leading")),N.add(O);continue}e.root.meta=e.root.meta??{},A(e.root.meta,w(O,O.ownLine?"leading":"trailing")),N.add(O)}}function Op(e,t){let r;for(const n of e){const i=n.meta.span.start;i>t&&(!r||i<r.meta.span.start)&&(r=n)}return r}function G3(e){const t=[0];for(let r=0;r<e.length;r++)e[r]===`
|
|
43
|
-
`&&t.push(r+1);return r=>{let n=0,i=t.length-1;for(;n<i;){const s=n+i+1>>1;t[s]<=r?n=s:i=s-1}return n}}function K3(e,t){const r=e.lastIndexOf(`
|
|
44
|
-
`,t-1);if(r<0)return!1;const n=e.lastIndexOf(`
|
|
45
|
-
`,r-1);return/^[ \t\r]*$/.test(e.slice(n+1,r))}function Dd(e,t="<yamlover>",r={}){const n=r.yaml===!0,i=[],s=[],l=/\r\n|\r|\n/g;let $=0;for(let j=l.exec(e);j!==null;j=l.exec(e))i.push(e.slice($,j.index)),s.push($),$=j.index+j[0].length;i.push(e.slice($)),s.push($);const h=X3(i,s),d=new J3(h.lines,i,t,s,n);for(let j=0;j<d.lines.length;j++){const q=d.lines[j];q.indent===0&&(q.text==="---"||q.text.startsWith("--- ")||q.text==="...")&&(d.i=j,d.fail('multi-document streams ("---" / "...") are not yet supported (Phase 2c)'))}let w;const A=d.peek();A&&/^!!<[^>]*>$/.test(A.text.trim())&&(w=cv(A.text.trim().slice(3,-1),{block:d,lineN:A.n,col:A.indent+3}),d.i++);let N=d.node(0)??da();if(Hr(N))throw new SyntaxError(`yamlover: a top-level pointer is not allowed in ${t}`);d.i<d.lines.length&&d.peek().indent===0&&(N=d.mergeCont(N,d.container(0))),d.i<d.lines.length&&d.fail("unexpected content"),w!==void 0&&(N.meta={...N.meta,schema:w}),N.meta={...N.meta,span:{uri:t,start:0,end:e.length}};const U={root:N,source:{concrete:n?"yaml":"yamlover",uri:t}},O=h.comments.filter(j=>!d.blockLines.has(j.n)).map(({n:j,...q})=>q);return Y3(U,O,e,t),U}function X3(e,t,r){const n=[],i=[];let s=!1;for(let l=0;l<e.length;l++){const $=e[l];let h=0;for(;h<$.length&&$[h]===" ";)h++;const d=$.slice(h),w=Q3(d),A=(w>=0?d.slice(0,w):d).replace(/\s+$/,"");if(w>=0){const N=t[l]??0;i.push({start:N+h+w,end:N+$.replace(/\s+$/,"").length,text:d.slice(w+1).replace(/\s+$/,""),ownLine:A==="",style:"line",n:l})}if(A===""){s=w<0;continue}n.push({indent:h,text:A,n:l,...s?{blankBefore:!0}:{}}),s=!1}return{lines:n,comments:i}}function Q3(e){let t=!1,r=!1;for(let n=0;n<e.length;n++){const i=e[n];if(r&&i==="\\"){n++;continue}if(i==="'"&&!r)t=!t;else if(i==='"'&&!t)r=!r;else if(i==="#"&&!t&&!r&&(n===0||e[n-1]===" "||e[n-1]===" "))return n}return-1}class J3{lines;raw;uri;lineStarts;blockLines=new Set;yaml;i=0;constructor(t,r,n="<yamlover>",i=[],s=!1){this.lines=t,this.raw=r,this.uri=n,this.lineStarts=i,this.yaml=s}spanAt(t,r,n){const i=(this.lineStarts[t]??0)+r;return{uri:this.uri,start:i,end:i+n}}peek(){return this.lines[this.i]}anchorToken(t,r,n){let i,s;if(t[1]==="'"||t[1]==='"'){const h=t[1];let d=2;for(;d<t.length;){if(h==='"'&&t[d]==="\\"){d+=2;continue}if(t[d]===h){if(h==="'"&&t[d+1]==="'"){d+=2;continue}break}d++}d>=t.length&&this.fail("unterminated quoted anchor path"),i=eo(t.slice(1,d+1)).value,s=d+1}else if(e5(t.slice(1)))i=t.slice(1).trim(),s=t.length;else{let h=1;for(;h<t.length&&t[h]!==" "&&t[h]!==" ";)t[h]==="\\"&&h+1<t.length&&h++,h++;i=t.slice(1,h),s=h}const l=uv(i,h=>this.fail(h),this.yaml);l.path.span=this.spanAt(r,n,s);const $=ua(t,s,n);return{anchor:l,rest:$.rest,col:$.col}}attachAnchors(t,r){r.length!==0&&(Hr(t)&&this.fail("cannot anchor a pointer"),t.meta={...t.meta,anchors:[...t.meta?.anchors??[],...r]})}mergeCont(t,r){const n=r.kind==="scalar"&&r.value===null&&r.raw===""&&(r.entries?.length??0)===0;r.kind==="scalar"&&!n&&this.fail("a node may carry at most one scalar value line");const i=[...t.entries??[],...r.entries??[]],s={...t,...i.length>0?{entries:i,array:r.kind==="mapping"?r.array:t.array}:{}};return this.attachAnchors(s,r.meta?.anchors??[]),s}fail(t){const r=this.lines[this.i]??this.lines[this.i-1],n=r?`${this.uri}:${r.n+1}`:this.uri,i=r?`
|
|
46
|
-
${r.n+1} | ${this.raw[r.n]}`:"";throw new SyntaxError(`yamlover: ${t} at ${n}${i}`)}node(t){const r=this.peek();if(!r||r.indent<t)return null;if(/^!!(mix|var|omni|set)(?=\s|$)/.test(r.text))return this.i++,this.valueAfter(r.text,r.indent-1,r.n,r.indent);if(E$(r.text)||em(r.text)||r.text.startsWith("&")||A$(r.text))return this.container(r.indent);this.i++;let n;/^[|>][+-]?\d*$/.test(r.text)?n=this.blockScalar(r.text,r.indent,r.n):n=this.valueInline(r.text,r.indent,!0,r.n,r.indent);const i=this.peek();return i&&i.indent===r.indent&&i.indent>=t&&!Hr(n)&&n.kind==="scalar"&&(n=this.mergeCont(n,this.container(r.indent))),n}container(t,r=!1){const n=[],i=[];let s,l;for(;;){const w=this.peek();if(!w||w.indent!==t)break;const A=w.n,N=w.indent,U=w.blankBefore===!0;let O,j;if(w.text.startsWith("&")){if(r)break;this.i++;let{rest:ne,col:_e}={rest:w.text,col:w.indent};for(;ne.startsWith("&");){const Q=this.anchorToken(ne,w.n,_e);i.push(Q.anchor),{rest:ne,col:_e}=Q}if(ne!==""){const Q=this.valueInline(ne,t,!1,w.n,_e);(Hr(Q)||Q.kind!=="scalar")&&this.fail("only a scalar value may share a line with an own-line anchor"),s!==void 0&&this.fail("a node may carry at most one scalar value line"),s=Q,l=n.length}continue}if(E$(w.text)){this.i++;const ne=w.text.slice(1),_e=ne.length-ne.trimStart().length,Q=w.indent+1+_e,be=ne.trim();be===""?O=this.node(t+1)??da():!/^(!!<|\*|&)/.test(be)&&A$(be)?(this.i--,this.lines[this.i]={indent:Q,text:be,n:w.n},O=this.container(Q)):O=this.valueAfter(be,t,w.n,Q),j={key:null,edge:Hr(O)?"ref":"contain",value:O}}else if(em(w.text)){if(r)break;this.i++;const ne=ua(w.text,2,w.indent),_e=ne.rest;_e.startsWith("*")||this.fail('a "~-" entry needs a pointer value (the container that holds this node)');const Q=Wa(tm(_e.slice(1)));Q.span=this.spanAt(w.n,ne.col,_e.length),O=Q,j={key:null,edge:"back",value:O}}else{if(r)break;/^~[ \t]/.test(w.text)&&this.fail('the "~" sigil must sit tight against the key or "-" marker (write "~key:" or "~-")');const ne=A$(w.text);if(!ne){this.i++;let be;if(/^[|>][+-]?\d*$/.test(w.text))be=this.blockScalar(w.text,t,w.n);else{const oe=this.valueInline(w.text,t,!1,w.n,w.indent);(Hr(oe)||oe.kind!=="scalar")&&this.fail("unexpected content (expected an entry, an anchor, or a scalar value line)"),be=oe}s!==void 0&&this.fail("a node may carry at most one scalar value line"),s=be,l=n.length;continue}this.i++;let _e=ne.key,Q=!1;_e.startsWith("~")&&(Q=!0,_e=_e.slice(1)),O=this.valueAfter(ne.rest,t,w.n,w.indent+ne.restCol),j={key:$v(_e),edge:Q?"back":Hr(O)?"ref":"contain",value:O}}const q=this.lines[this.i-1],Y=(this.lineStarts[A]??0)+N,he=q?(this.lineStarts[q.n]??0)+q.indent+q.text.length:Y;j.meta={...j.meta,span:{uri:this.uri,start:Y,end:he},...U?{blankBefore:!0}:{}},n.push(j)}const $=n.filter(w=>w.edge!=="back"),h=$.length>0&&$.every(w=>w.key===null),d=s!==void 0?{...s,entries:n,array:h}:n.length===0?da():{kind:"mapping",entries:n,array:h};return s!==void 0&&l!==void 0&&l>0&&(d.meta={...d.meta,selfAt:l}),this.attachAnchors(d,i),d}valueAfter(t,r,n,i){({rest:t,col:i}=ua(t,0,i));let s;if(t.startsWith("!!<")){const w=t.indexOf(">");w<0&&this.fail('unterminated "!!<…>" schema tag'),s=cv(t.slice(3,w),{block:this,lineN:n,col:i+3}),{rest:t,col:i}=ua(t,w+1,i)}let l;const $=/^!!(mix|var|omni|set)(?=\s|$)/.exec(t);$&&(l=$[1]==="var"?"omni":$[1],{rest:t,col:i}=ua(t,$[0].length,i));const h=[];for(;t.startsWith("&");){const w=this.anchorToken(t,n,i);h.push(w.anchor),{rest:t,col:i}=w}let d;if(/^[|>][+-]?\d*$/.test(t))d=this.blockScalar(t,r,n),d=this.attachFields(d,r);else if(t===""){const w=this.peek();w&&w.indent===r&&E$(w.text)?d=this.container(r,!0):d=this.node(r+1)??da()}else d=this.valueInline(t,r,!1,n,i),d=this.attachFields(d,r);return this.attachAnchors(d,h),l==="set"&&!Hr(d)&&(d.meta={...d.meta,set:!0}),s!==void 0&&!Hr(d)&&(d.meta={...d.meta,schema:s}),d}attachFields(t,r){const n=this.peek();return n&&n.indent>r&&!Hr(t)&&t.kind!=="blob"?this.mergeCont(t,this.container(n.indent)):t}blockScalar(t,r,n){const i=t[0]===">";let s="clip";for(const N of t.slice(1))N==="-"?s="strip":N==="+"&&(s="keep");const l=[];let $=-1,h=n;for(let N=n+1;N<this.raw.length;N++){const U=this.raw[N];let O=0;for(;O<U.length&&U[O]===" ";)O++;if(O>=U.length){l.push(""),h=N,this.blockLines.add(N);continue}if(O<=r||$>=0&&O<$)break;$<0&&($=O),l.push(U.slice($)),h=N,this.blockLines.add(N)}for(;this.peek()&&this.peek().n<=h;)this.i++;let d=-1;for(let N=0;N<l.length;N++)l[N]!==""&&(d=N);const w=l.slice(0,d+1);let A=i?O3(w):w.join(`
|
|
47
|
-
`);return s==="keep"?A+=`
|
|
48
|
-
`.repeat(l.length-(d+1)+(d>=0?1:0)):s==="clip"&&d>=0&&(A+=`
|
|
49
|
-
`),{kind:"scalar",value:A,raw:A}}valueInline(t,r,n,i,s){({rest:t,col:s}=ua(t,0,s));const l=t[0];if(l==="{"||l==="[")return new Z3(t,this.uri,(this.lineStarts[i]??0)+s,this.yaml).parse();if(l==="*"){const $=Wa(tm(t.slice(1)),this.yaml);return $.span=this.spanAt(i,s,t.length),$}if(l==="&"){const $=[];let h=t,d=s;for(;h.startsWith("&");){const A=this.anchorToken(h,i,d);$.push(A.anchor),{rest:h,col:d}=A}const w=h===""?n?this.node(r+1)??da():da():this.valueInline(h,r,n,i,d);return this.attachAnchors(w,$),w}return l==="'"||l==='"'?eo(t):fv(t)}}class Z3{s;i=0;uri;base;yaml;constructor(t,r="<flow>",n=0,i=!1){this.s=t,this.uri=r,this.base=n,this.yaml=i}fail(t){throw new SyntaxError(`yamlover (flow): ${t} at offset ${this.i}`)}parse(){this.ws();const t=this.value();return this.ws(),this.i<this.s.length&&this.fail("trailing characters in flow value"),t}ws(){for(;this.i<this.s.length&&" ".includes(this.s[this.i]);)this.i++}value(){const t=this.s[this.i];if(t==="{")return this.map();if(t==="[")return this.seq();if(t==="*"){const n=this.i;this.i++;let i;if(this.s[this.i]==="'"||this.s[this.i]==='"')i=this.quoted().value;else{const l=this.i;let $=0;for(;this.i<this.s.length;){const h=this.s[this.i];if(h==="\\"&&this.i+1<this.s.length){this.i+=2;continue}if(h==="[")$++;else if(h==="]"){if($===0)break;$--}else if(h===","||h==="}")break;this.i++}i=this.s.slice(l,this.i).trim()}const s=Wa(i,this.yaml);return s.span={uri:this.uri,start:this.base+n,end:this.base+this.i},s}if(t==="&"){const n=this.i;this.i++;let i;if(this.s[this.i]==="'"||this.s[this.i]==='"')i=this.quoted().value;else{const $=this.i;for(;this.i<this.s.length&&!" ,]}".includes(this.s[this.i]);)this.s[this.i]==="\\"&&this.i+1<this.s.length&&this.i++,this.i++;i=this.s.slice($,this.i)}const s=uv(i,$=>this.fail($),this.yaml);s.path.span={uri:this.uri,start:this.base+n,end:this.base+this.i},this.ws();const l=this.value();return Hr(l)&&this.fail("cannot anchor a pointer"),l.meta={...l.meta,anchors:[...l.meta?.anchors??[],s]},l}if(t==="'"||t==='"')return this.quoted();const r=this.readPlain();return r===""&&this.fail("expected a value"),fv(r)}map(){this.i++;const t=[];for(;;){if(this.ws(),this.s[this.i]==="}"){this.i++;break}this.i>=this.s.length&&this.fail("unterminated flow map");let r=!1;this.s[this.i]==="~"&&(r=!0,this.i++);const n=this.s[this.i]==="'"||this.s[this.i]==='"'?this.quoted().value:$v(this.readPlain(":,}"));this.ws(),this.s[this.i]!==":"&&this.fail('expected ":" in flow map'),this.i++,this.ws();const i=this.value();if(t.push({key:n,edge:r?"back":Hr(i)?"ref":"contain",value:i}),this.ws(),this.s[this.i]===","){this.i++;continue}if(this.s[this.i]==="}"){this.i++;break}this.fail('expected "," or "}"')}return{kind:"mapping",entries:t,array:!1}}seq(){this.i++;const t=[];for(;;){if(this.ws(),this.s[this.i]==="]"){this.i++;break}this.i>=this.s.length&&this.fail("unterminated flow seq");const r=this.value();if(t.push({key:null,edge:Hr(r)?"ref":"contain",value:r}),this.ws(),this.s[this.i]===","){this.i++;continue}if(this.s[this.i]==="]"){this.i++;break}this.fail('expected "," or "]"')}return{kind:"mapping",entries:t,array:!0}}quoted(){const t=this.i,r=this.s[this.i];for(this.i++;this.i<this.s.length;){const n=this.s[this.i];if(r==='"'&&n==="\\"){this.i+=2;continue}if(r==="'"&&n==="'"&&this.s[this.i+1]==="'"){this.i+=2;continue}if(this.i++,n===r)break}return eo(this.s.slice(t,this.i))}readPlain(t=",:[]{} "){const r=this.i;for(;this.i<this.s.length&&!t.includes(this.s[this.i]);)this.i++;return this.s.slice(r,this.i).trim()}}function E$(e){return e==="-"||e.startsWith("- ")}function em(e){return e==="~-"||e.startsWith("~- ")}function A$(e){let t=!1,r=!1;for(let n=0;n<e.length;n++){const i=e[n];if(i==="'"&&!r)t=!t;else if(i==='"'&&!t)r=!r;else if(i===":"&&!t&&!r){const s=e[n+1];if(s===void 0||s===" "||s===" "){const l=e.slice(n+1),$=l.length-l.trimStart().length;return{key:e.slice(0,n).trim(),rest:l.trim(),restCol:n+1+$}}}}return null}function ua(e,t,r){const n=e.slice(t),i=n.length-n.trimStart().length;return{rest:n.trim(),col:r+t+i}}function cv(e,t){const r=e.length-e.trimStart().length;if(e=e.trim(),e.startsWith("*")){const n=Wa(e.slice(1));return t!==void 0&&(n.span=t.block.spanAt(t.lineN,t.col+r,e.length)),n}return Dd(e).root}function O3(e){let t="";for(let r=0;r<e.length;r++)r>0&&(t+=e[r]===""||e[r-1]===""?`
|
|
50
|
-
`:" "),t+=e[r];return t}function tm(e){return e=e.trim(),(e[0]==="'"||e[0]==='"')&&e[e.length-1]===e[0]?eo(e).value:e}function e5(e){let t=null;for(let r=0;r<e.length;r++){const n=e[r];if(t!==null){n===t&&(t=null);continue}if(n==="\\"){r++;continue}if(n==="'"||n==='"'){t=n;continue}if(n===":")return!0}return!1}function $v(e){return e=e.trim(),(e[0]==="'"||e[0]==='"')&&e[e.length-1]===e[0]?eo(e).value:t5(e)}function eo(e){const t=e[0],r=e.slice(1,e.length-1);if(t==="'")return{kind:"scalar",value:r.replace(/''/g,"'"),raw:e};let n="";for(let i=0;i<r.length;i++)if(r[i]==="\\"){const s=r[++i];switch(s){case"n":n+=`
|
|
51
|
-
`;break;case"t":n+=" ";break;case"r":n+="\r";break;case'"':n+='"';break;case"\\":n+="\\";break;case"/":n+="/";break;case"b":n+="\b";break;case"f":n+="\f";break;case"0":n+="\0";break;case"u":n+=String.fromCharCode(parseInt(r.slice(i+1,i+5),16)),i+=4;break;case"x":n+=String.fromCharCode(parseInt(r.slice(i+1,i+3),16)),i+=2;break;default:n+=s??""}}else n+=r[i];return{kind:"scalar",value:n,raw:e}}function fv(e){const t=e.trim();return t===""||t==="~"||t==="null"||t==="Null"||t==="NULL"?{kind:"scalar",value:null,raw:e}:t==="true"||t==="True"||t==="TRUE"?{kind:"scalar",value:!0,raw:e}:t==="false"||t==="False"||t==="FALSE"?{kind:"scalar",value:!1,raw:e}:/^[-+]?\.(?:inf|Inf|INF)$/.test(t)?{kind:"scalar",value:t[0]==="-"?-1/0:1/0,raw:e}:/^\.(?:nan|NaN|NAN)$/.test(t)?{kind:"scalar",value:NaN,raw:e}:/^[-+]?(?:\d+\.?\d*|\.\d+)(?:[eE][+-]?\d+)?$/.test(t)?{kind:"scalar",value:Number(t),raw:e}:/^[-+]?0x[0-9a-fA-F]+$/.test(t)?{kind:"scalar",value:Number(t),raw:e}:{kind:"scalar",value:t,raw:e}}function t5(e){let t="";for(let r=0;r<e.length;r++){if(e[r]==="\\"&&r+1<e.length){t+=e[r+1],r++;continue}t+=e[r]}return t}function da(){return{kind:"scalar",value:null,raw:""}}function r5(e){return e===null||typeof e=="string"||typeof e=="number"||typeof e=="boolean"}const n5=/^[A-Za-z][\w .-]*$/,i5=/^(true|false|null|yes|no|on|off|~|\.nan|[-+]?\.inf)$/i;function s5(e){return e!==""&&e===e.trim()&&n5.test(e)&&!i5.test(e)?e:JSON.stringify(e)}function a5(e,t){return e===null?"null":typeof e=="boolean"?e?"true":"false":typeof e=="number"?String(e):t==="json"?JSON.stringify(e):s5(e)}const l5=/[,{}[\]]/;function o5(e){const t=e.trim();if(t===""||!(t[0]==='"'||t[0]==="'")&&l5.test(t))return!1;try{return Dd(t,"<edit>").root.kind==="scalar"}catch{return!1}}async function u5(e,t,r){try{return await vc([{path:e,op:"emplace",yamlover:t}]),!0}catch{return!1}}function c5({initial:e,className:t,path:r,concrete:n}){const i=ut.useRef(null),s=ut.useRef(!1),l=ut.useRef(!1),$=ut.useRef(!1),[h,d]=ut.useState(!1),{sink:w}=ho();ut.useEffect(()=>{i.current&&!s.current&&(i.current.textContent=e)},[e]);const A=()=>{i.current&&(i.current.textContent=e)},N=async()=>{if(l.current){l.current=!1,A();return}if($.current)return;const U=(i.current?.textContent??"").trim();if(U===e){d(!1);return}if(!o5(U)){d(!0),A();return}$.current=!0;const O=w?await w({path:r,op:"emplace",yamlover:U}).catch(()=>!1):await u5(r,U);$.current=!1,O?d(!1):(d(!0),A())};return le.jsx("span",{ref:i,className:t+" editable"+(h?" edit-error":""),contentEditable:!0,suppressContentEditableWarning:!0,spellCheck:!1,onFocus:()=>{s.current=!0,d(!1)},onBlur:()=>{s.current=!1,N()},onKeyDown:U=>{U.key==="Enter"?(U.preventDefault(),U.target.blur()):U.key==="Escape"&&(U.preventDefault(),l.current=!0,U.target.blur())}})}function $5(e){return e===null?"null":typeof e=="boolean"?"b":typeof e=="number"?"n":"s"}function f5(e,t,r,n,i){return le.jsx(c5,{initial:i??a5(e,r),className:$5(e),path:t,concrete:n})}function xc({value:e,syntax:t,path:r,editable:n,concrete:i,raw:s}){const{unlocked:l}=ho();return!n||!l||r===null||!r5(e)?w5(e,t,s):f5(e,r,t,i,s)}const d5="$yamloverLink",h5="$yamloverBinary",p5="$yamloverRef",m5="$yamloverMixed",_5="$yamloverNum";function po(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 Ir=e=>po(e,d5),mo=e=>po(e,h5),Ks=e=>po(e,p5),Es=e=>po(e,m5),wc=e=>po(e,_5);function dv(e,t){return t==="json"?e:e==="NaN"?".nan":e==="-Infinity"?"-.inf":".inf"}function vi(e){const t=Es(e),r=t&&t.kind==="omni"?t.value:e,n=wc(r);return n?n==="NaN"?NaN:n==="-Infinity"?-1/0:1/0:r}function Va(e,t){return e===null?null:(e===":"?"":e)+(typeof t=="number"?`[${t}]`:`:${encodeURIComponent(t)}`)}function fn(e,t){if(!e.comments)return;const r=e.comments[t.slice(e.base.length)];return r&&!Array.isArray(r)?r:void 0}function kc(e,t){return(t==="yaml"?"#":"//")+" "+e.trim()}function Ld(e,t){return t==="json"?"*"+JSON.stringify(e):e!==e.trim()?`*'${e.replace(/'/g,"''")}'`:"*"+e}function hv(e,t){return t==="json"?"&"+JSON.stringify(e):"&"+e}function to(e,t,r){const n=fn(e,t);if(!n)return null;const i=r==="yaml"?n.tag:void 0,s=n.anchors??[];return!i&&s.length===0?null:le.jsxs(le.Fragment,{children:[i&&le.jsxs(le.Fragment,{children:[" ",le.jsx("span",{className:"b",children:i})]}),s.map((l,$)=>le.jsxs(ut.Fragment,{children:[" ",le.jsx("span",{className:"anchor",children:hv(l,r)})]},`an${$}`))]})}function Sc({ctx:e,frag:t,pad:r,syntax:n}){const i=fn(e,t)?.leading;return i?.length?le.jsx(le.Fragment,{children:i.map((s,l)=>le.jsxs(ut.Fragment,{children:[r,le.jsx("span",{className:"c",children:kc(s,n)}),`
|
|
52
|
-
`]},`lc${l}`))}):null}function Ec(e,t,r){const n=fn(e,t)?.trailing;return n?.length?le.jsxs(le.Fragment,{children:[" ",le.jsx("span",{className:"c",children:n.map(i=>kc(i,r)).join(" ")})]}):null}function pv(e,t,r){const n=fn(e,t)?.valueTrailing;return n?.length?le.jsxs(le.Fragment,{children:[" ",le.jsx("span",{className:"c",children:n.map(i=>kc(i,r)).join(" ")})]}):null}function g5({ctx:e,frag:t}){const r=fn(e,t),n=r?.anchors??[];return!r?.tag&&n.length===0?null:le.jsxs(le.Fragment,{children:[r?.tag&&le.jsxs(le.Fragment,{children:[le.jsx("span",{className:"b",children:r.tag}),`
|
|
53
|
-
`]}),n.map((i,s)=>le.jsxs(ut.Fragment,{children:[le.jsx("span",{className:"anchor",children:hv(i,"yaml")}),`
|
|
54
|
-
`]},`ra${s}`))]})}function rm({texts:e,syntax:t}){return le.jsx(le.Fragment,{children:e.map((r,n)=>le.jsxs(ut.Fragment,{children:[le.jsx("span",{className:"c",children:kc(r,t)}),`
|
|
55
|
-
`]},`fc${n}`))})}function nm(e,t){const r=e?.[t];return Array.isArray(r)&&r.length?r:void 0}function v5(e){const t=window.location.pathname+window.location.search;window.history.pushState({},"",t+"#"+e),document.getElementById(e)?.scrollIntoView?.()}function ro({ctx:e,frag:t}){return!e.anchors||!t?null:le.jsx("span",{id:t,className:"frag-anchor"})}function Zf({value:e,syntax:t,onNavigate:r,documentPath:n=":",nodePath:i=":",anchors:s=!0,comments:l,editable:$=!1,concrete:h=null}){const d=fo(n,i),w={nav:r,doc:n,node:i,anchors:s,comments:l,base:d,editable:$,concrete:h},A=mo(e);if(A&&t==="yaml")return le.jsx(y5,{bin:A});const N=A??e,U=nm(l,"$head"),O=nm(l,"$tail");return le.jsxs(le.Fragment,{children:[U&&le.jsx(rm,{texts:U,syntax:t}),t==="yaml"?le.jsxs(le.Fragment,{children:[le.jsx(g5,{ctx:w,frag:d}),le.jsx(k5,{value:N,indent:0,ctx:w,frag:d,path:i})]}):le.jsx(Bd,{value:N,indent:0,ctx:w,frag:d,path:i,root:!0}),O&&le.jsx(rm,{texts:O,syntax:t})]})}function y5({bin:e}){const[t,r]=ut.useState(!0);return le.jsxs(le.Fragment,{children:[le.jsx(ps,{open:t,onToggle:()=>r(n=>!n)}),le.jsx(Ac,{v:e,indent:2,open:t})]})}const js=e=>typeof e=="string"&&e.includes(`
|
|
56
|
-
`)||!!mo(e);function b5(e){const t=[];for(let r=0;r<e.length;r+=76)t.push(e.slice(r,r+76));return t}function Ac({v:e,indent:t,open:r,trail:n=null}){const i=typeof e=="string"?null:e,s=i?b5(i.base64):e.replace(/\n$/,"").split(`
|
|
57
|
-
`),l=" ".repeat(t);return le.jsxs(le.Fragment,{children:[i?le.jsxs(le.Fragment,{children:[le.jsx("span",{className:"b",children:"!!binary"})," ",le.jsx("span",{className:"punct",children:"|"})," ",le.jsx("span",{className:"c",children:`# ${i.format??"binary"}, ${i.size} bytes`})]}):le.jsx("span",{className:"punct",children:"|"}),r?le.jsxs(le.Fragment,{children:[n,`
|
|
58
|
-
`,le.jsx("span",{className:"s",children:s.map($=>l+$).join(`
|
|
59
|
-
`)}),`
|
|
60
|
-
`]}):le.jsxs(le.Fragment,{children:[" ",le.jsx("span",{className:"fold-summary",children:`{ ${s.length} lines }`}),n,`
|
|
61
|
-
`]})]})}function Cc(e,t,r){const n=e.kind==="scalar"?Fd(e.value,t):x5(e);return le.jsx("a",{className:"descend",href:e.path,onClick:i=>{i.preventDefault(),r.nav(e.path)},children:n})}function Fd(e,t){if(e==null)return"null";const r=wc(e);return r?dv(r,t):typeof e=="boolean"||typeof e=="number"?String(e):t==="json"?JSON.stringify(e):String(e)}function jd(e,t,r,n){const i=n??(t==="json"?JSON.stringify(e.text):e.text);if(!e.path)return le.jsx("span",{className:"s",children:i});if(e.path===r.node||Nl(r.node,e.path)){const $=fo(r.doc,e.path);return le.jsx("a",{className:"descend ref-local",href:"#"+$,onClick:h=>{h.preventDefault(),v5($)},children:i})}const l=e.path;return le.jsx("a",{className:"descend",href:l,onClick:$=>{$.preventDefault(),r.nav(l)},children:i})}function x5(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 ${Fd(e.value,"yaml")} + ${t} ${t===1?"field":"fields"} }`:`{ object with ${t} ${t===1?"property":"properties"} }`}function w5(e,t,r){if(e===null)return le.jsx("span",{className:"null",children:r??"null"});if(typeof e=="boolean")return le.jsx("span",{className:"b",children:r??String(e)});const n=wc(e);if(n)return le.jsx("span",{className:"n",children:r??dv(n,t)});if(typeof e=="number")return le.jsx("span",{className:"n",children:r??String(e)});const i=r??(t==="json"?JSON.stringify(e):String(e));return le.jsx("span",{className:"s",children:i})}const ea=e=>typeof e=="object"&&e!==null&&!Array.isArray(e)&&!wc(e);function Ni(e){return Ir(e)||Ks(e)?!1:Es(e)?!0:ea(e)?Object.keys(e).length>0:Array.isArray(e)?e.length>0:!1}function Tc(e){const t=Es(e);if(t){const n=t.entries.length;return t.kind==="omni"?`{ variant ${Fd(t.value,"yaml")} + ${n} ${n===1?"field":"fields"} }`:`{ mixed with ${n} ${n===1?"entry":"entries"} }`}if(Array.isArray(e)){const n=e.length;return`[ ${n} ${n===1?"item":"items"} ]`}const r=Object.keys(e).length;return`{ ${r} ${r===1?"property":"properties"} }`}function ps({open:e,onToggle:t}){return le.jsx("button",{type:"button",className:"toggle fold-gutter"+(e?" open":""),"aria-label":e?"collapse":"expand",onClick:t,children:le.jsx("span",{className:"chevron",children:"›"})})}function k5({value:e,indent:t,ctx:r,frag:n,path:i}){const s=Ir(e);if(s)return le.jsxs(le.Fragment,{children:[Cc(s,"yaml",r),`
|
|
62
|
-
`]});const l=Ks(e);return l?le.jsxs(le.Fragment,{children:[jd(l,"yaml",r),`
|
|
63
|
-
`]}):Ni(e)?le.jsx(Uu,{value:e,indent:t,ctx:r,frag:n,path:i}):ea(e)?le.jsxs(le.Fragment,{children:[le.jsx("span",{className:"punct",children:"{}"}),`
|
|
64
|
-
`]}):Array.isArray(e)?le.jsxs(le.Fragment,{children:[le.jsx("span",{className:"punct",children:"[]"}),`
|
|
65
|
-
`]}):le.jsxs(le.Fragment,{children:[le.jsx(xc,{value:e,syntax:"yaml",path:i,editable:r.editable,concrete:r.concrete,raw:fn(r,n)?.raw}),pv(r,n,"yaml"),`
|
|
66
|
-
`]})}function Uu({value:e,indent:t,ctx:r,frag:n,path:i,inlineHead:s=!1}){const l=Es(e);return l?le.jsx(T5,{mixed:l,indent:t,ctx:r,frag:n,path:i,inlineHead:s}):ea(e)?le.jsx(S5,{entries:Object.entries(e),indent:t,ctx:r,frag:n,path:i,inlineHead:s}):le.jsx(E5,{items:e,indent:t,ctx:r,frag:n,path:i,inlineHead:s})}function S5({entries:e,indent:t,ctx:r,frag:n,path:i,inlineHead:s=!1}){const l=" ".repeat(t);return le.jsx(le.Fragment,{children:e.map(([$,h],d)=>le.jsx(mv,{k:$,v:h,pad:l,indent:t,ctx:r,frag:`${n}/${$}`,path:Va(i,$),noPad:s&&d===0},d))})}function E5({items:e,indent:t,ctx:r,frag:n,path:i,inlineHead:s=!1}){const l=" ".repeat(t);return le.jsx(le.Fragment,{children:e.map(($,h)=>le.jsx(_v,{v:$,pad:l,indent:t,ctx:r,frag:`${n}[${h}]`,path:Va(i,h),noPad:s&&h===0},h))})}function A5(e){const t=Es(e);if(t){if(t.kind==="omni"&&(t.selfAt??0)===0)return!js(t.value);const r=t.entries[0];return!!r&&!Ni(r.value)&&!js(r.value)}if(ea(e)){const r=Object.values(e);return r.length>0&&!Ni(r[0])&&!js(r[0])}return Array.isArray(e)?e.length>0&&!Ni(e[0])&&!js(e[0]):!1}function C5({value:e,pad:t,indent:r,ctx:n,frag:i,path:s,noPad:l=!1}){const[$,h]=ut.useState(!0),d=pv(n,i,"yaml"),w=Ir(e);return w?le.jsxs(le.Fragment,{children:[l?null:t,Cc(w,"yaml",n),d,`
|
|
67
|
-
`]}):js(e)?le.jsxs(le.Fragment,{children:[le.jsx(ps,{open:$,onToggle:()=>h(A=>!A)}),l?null:t,le.jsx(Ac,{v:mo(e)??e,indent:r+2,open:$,trail:d})]}):le.jsxs(le.Fragment,{children:[l?null:t,le.jsx(xc,{value:e,syntax:"yaml",path:s,editable:n.editable,concrete:n.concrete,raw:fn(n,i)?.raw}),d,`
|
|
68
|
-
`]})}function T5({mixed:e,indent:t,ctx:r,frag:n,path:i,inlineHead:s=!1}){const l=" ".repeat(t),$=e.kind==="omni",h=$?Math.min(e.selfAt??0,e.entries.length):-1,d=s&&h===0,w=le.jsx(C5,{value:e.value,pad:l,indent:t,ctx:r,frag:n,path:i,noPad:d});return le.jsxs(le.Fragment,{children:[e.entries.map((A,N)=>{const U=s&&N===0&&!d;return le.jsxs(ut.Fragment,{children:[N===h&&w,A.key===null?le.jsx(_v,{v:A.value,pad:l,indent:t,ctx:r,frag:`${n}[${N}]`,path:Va(i,N),noPad:U}):le.jsx(mv,{k:A.key,v:A.value,pad:l,indent:t,ctx:r,frag:`${n}/${A.key}`,path:Va(i,A.key),noPad:U})]},N)}),$&&h>=e.entries.length&&w]})}function mv({k:e,v:t,pad:r,indent:n,ctx:i,frag:s,path:l,noPad:$=!1}){const[h,d]=ut.useState(!0),w=!$&&fn(i,s)?.blankBefore?`
|
|
69
|
-
`:null,A=$?null:le.jsx(Sc,{ctx:i,frag:s,pad:r,syntax:"yaml"}),N=Ec(i,s,"yaml"),U=fn(i,s)?.pointer,O=to(i,s,"yaml"),j=le.jsxs(le.Fragment,{children:[$?null:r,le.jsx(ro,{ctx:i,frag:s}),le.jsx("span",{className:"k",children:e}),le.jsx("span",{className:"punct",children:":"})]});return js(t)?le.jsxs(le.Fragment,{children:[w,A,le.jsx(ps,{open:h,onToggle:()=>d(q=>!q)}),j,O," ",le.jsx(Ac,{v:mo(t)??t,indent:n+2,open:h,trail:N})]}):Ni(t)?le.jsxs(le.Fragment,{children:[w,A,le.jsx(ps,{open:h,onToggle:()=>d(q=>!q)}),j,O,h?le.jsxs(le.Fragment,{children:[N,`
|
|
70
|
-
`,le.jsx(Uu,{value:t,indent:n+2,ctx:i,frag:s,path:l})]}):le.jsxs(le.Fragment,{children:[" ",le.jsx("span",{className:"fold-summary",children:Tc(t)}),N,`
|
|
71
|
-
`]})]}):le.jsxs(le.Fragment,{children:[w,A,j,O,gv(t,i,l,N,U&&Ld(U,"yaml"),fn(i,s)?.raw)]})}function _v({v:e,pad:t,indent:r,ctx:n,frag:i,path:s,noPad:l=!1}){const[$,h]=ut.useState(!0),d=!l&&fn(n,i)?.blankBefore?`
|
|
72
|
-
`:null,w=l?null:le.jsx(Sc,{ctx:n,frag:i,pad:t,syntax:"yaml"}),A=Ec(n,i,"yaml"),N=fn(n,i)?.pointer,U=to(n,i,"yaml"),O=le.jsxs(le.Fragment,{children:[l?null:t,le.jsx(ro,{ctx:n,frag:i}),le.jsx("span",{className:"punct yaml-dash",children:"-"})]});if(js(e))return le.jsxs(le.Fragment,{children:[d,w,le.jsx(ps,{open:$,onToggle:()=>h(q=>!q)}),O,U," ",le.jsx(Ac,{v:mo(e)??e,indent:r+2,open:$,trail:A})]});if(!Ni(e))return le.jsxs(le.Fragment,{children:[d,w,O,U,gv(e,n,s,A,N&&Ld(N,"yaml"),fn(n,i)?.raw)]});const j=A5(e);return le.jsxs(le.Fragment,{children:[d,w,le.jsx(ps,{open:$,onToggle:()=>h(q=>!q)}),O,U,$?j?le.jsxs(le.Fragment,{children:[" ",le.jsx(Uu,{value:e,indent:r+2,ctx:n,frag:i,path:s,inlineHead:!0})]}):le.jsxs(le.Fragment,{children:[A,`
|
|
73
|
-
`,le.jsx(Uu,{value:e,indent:r+2,ctx:n,frag:i,path:s})]}):le.jsxs(le.Fragment,{children:[" ",le.jsx("span",{className:"fold-summary",children:Tc(e)}),A,`
|
|
74
|
-
`]})]})}function gv(e,t,r,n=null,i,s){const l=Ir(e);if(l)return le.jsxs(le.Fragment,{children:[" ",Cc(l,"yaml",t),n,`
|
|
75
|
-
`]});const $=Ks(e);return $?le.jsxs(le.Fragment,{children:[" ",jd($,"yaml",t,i),n,`
|
|
76
|
-
`]}):ea(e)&&Object.keys(e).length===0?le.jsxs(le.Fragment,{children:[" ",le.jsx("span",{className:"punct",children:"{}"}),n,`
|
|
77
|
-
`]}):Array.isArray(e)&&e.length===0?le.jsxs(le.Fragment,{children:[" ",le.jsx("span",{className:"punct",children:"[]"}),n,`
|
|
78
|
-
`]}):le.jsxs(le.Fragment,{children:[" ",le.jsx(xc,{value:e,syntax:"yaml",path:r,editable:t.editable,concrete:t.concrete,raw:s}),n,`
|
|
79
|
-
`]})}function Bd({value:e,indent:t,ctx:r,frag:n,path:i,root:s=!1}){const l=Ir(e);if(l)return Cc(l,"json",r);const $=Ks(e);if($){const d=fn(r,n)?.pointer;return jd($,"json",r,d&&Ld(d,"json"))}if(s&&Ni(e))return le.jsx(Il,{value:e,indent:t,ctx:r,frag:n,path:i});const h=vv(e);return h?h.length?le.jsx(Il,{value:e,indent:t,ctx:r,frag:n,path:i}):le.jsx("span",{className:"punct",children:"{}"}):Array.isArray(e)?e.length?le.jsx(Il,{value:e,indent:t,ctx:r,frag:n,path:i}):le.jsx("span",{className:"punct",children:"[]"}):le.jsx(xc,{value:e,syntax:"json",path:i,editable:r.editable,concrete:r.concrete,raw:fn(r,n)?.raw})}function vv(e){const t=Es(e);return t?[...t.kind==="omni"?[["$value",t.value]]:[],...t.entries.map((r,n)=>[r.key??String(n),r.value])]:ea(e)?Object.entries(e):null}function Il({value:e,indent:t,ctx:r,frag:n,path:i}){const s=vv(e);if(s){const l=ea(e)?i:null;return le.jsx(R5,{entries:s,indent:t,ctx:r,frag:n,path:l})}return le.jsx(z5,{items:e,indent:t,ctx:r,frag:n,path:i})}function R5({entries:e,indent:t,ctx:r,frag:n,path:i}){const s=" ".repeat(t+2);return le.jsxs(le.Fragment,{children:[le.jsx("span",{className:"punct",children:"{"}),`
|
|
80
|
-
`,e.map(([l,$],h)=>le.jsx(N5,{k:l,v:$,pad:s,indent:t+2,ctx:r,frag:`${n}/${l}`,path:Va(i,l),last:h===e.length-1},h))," ".repeat(t),le.jsx("span",{className:"punct",children:"}"})]})}function z5({items:e,indent:t,ctx:r,frag:n,path:i}){const s=" ".repeat(t+2);return le.jsxs(le.Fragment,{children:[le.jsx("span",{className:"punct",children:"["}),`
|
|
81
|
-
`,e.map((l,$)=>le.jsx(I5,{v:l,pad:s,indent:t+2,ctx:r,frag:`${n}[${$}]`,path:Va(i,$),last:$===e.length-1},$))," ".repeat(t),le.jsx("span",{className:"punct",children:"]"})]})}function N5({k:e,v:t,pad:r,indent:n,ctx:i,frag:s,path:l,last:$}){const[h,d]=ut.useState(!0),w=le.jsx(Sc,{ctx:i,frag:s,pad:r,syntax:"json"}),A=le.jsxs(le.Fragment,{children:[r,le.jsx(ro,{ctx:i,frag:s}),le.jsx("span",{className:"k",children:`"${e}"`}),le.jsx("span",{className:"punct",children:": "}),to(i,s,"json")]}),N=le.jsxs(le.Fragment,{children:[$?"":",",Ec(i,s,"json"),`
|
|
82
|
-
`]});return Ni(t)?le.jsxs(le.Fragment,{children:[w,le.jsx(ps,{open:h,onToggle:()=>d(U=>!U)}),A,h?le.jsx(Il,{value:t,indent:n,ctx:i,frag:s,path:l}):le.jsx("span",{className:"fold-summary",children:Tc(t)}),N]}):le.jsxs(le.Fragment,{children:[w,A,le.jsx(Bd,{value:t,indent:n,ctx:i,frag:s,path:l}),N]})}function I5({v:e,pad:t,indent:r,ctx:n,frag:i,path:s,last:l}){const[$,h]=ut.useState(!0),d=le.jsx(Sc,{ctx:n,frag:i,pad:t,syntax:"json"}),w=le.jsxs(le.Fragment,{children:[l?"":",",Ec(n,i,"json"),`
|
|
83
|
-
`]});return Ni(e)?le.jsxs(le.Fragment,{children:[d,le.jsx(ps,{open:$,onToggle:()=>h(A=>!A)}),t,le.jsx(ro,{ctx:n,frag:i}),to(n,i,"json"),$?le.jsx(Il,{value:e,indent:r,ctx:n,frag:i,path:s}):le.jsx("span",{className:"fold-summary",children:Tc(e)}),w]}):le.jsxs(le.Fragment,{children:[d,t,le.jsx(ro,{ctx:n,frag:i}),to(n,i,"json"),le.jsx(Bd,{value:e,indent:r,ctx:n,frag:i,path:s}),w]})}function q5(e){return e.trim().toLowerCase().replace(/[^\p{L}\p{N}\s-]/gu,"").replace(/\s+/g,"-")}function M5(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 yv(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=M5(n.id||q5(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 Rc(e){ut.useEffect(()=>{const t=()=>{const r=decodeURIComponent(window.location.hash.slice(1));if(!r)return;const n=document.getElementById(r);n?.scrollIntoView&&(n.scrollIntoView({block:"center"}),r.includes("yamlover-fragments/")&&(n.classList.add("yo-reveal-flash"),window.setTimeout(()=>n.classList.remove("yo-reveal-flash"),1e3)))};return t(),window.addEventListener("hashchange",t),()=>window.removeEventListener("hashchange",t)},[e])}const ta="x-yamlover-tag";function Pd(e){return/(^|:)tags:colors:/.test(Lr(e))}const gi=e=>({"--tag":e});function bv({color:e,title:t,onClick:r}){return le.jsx("span",{className:"tagswatch",style:gi(e),title:t,role:r?"button":void 0,onClick:r})}function D5(e){const t=[],r={};for(const[n,i]of Object.entries(e||{})){const s=Ir(i);s&&s.format===ta?t.push({path:s.path,label:zc(s.path,s.title),color:s.color??null}):r[n]=i}return{tags:t,rest:r}}function L5(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 Vn(e){return e.color??L5(e.name)}const xv="$yamloverMixed";function zn(e){if(!e||typeof e!="object"||Array.isArray(e))return[];const t=e[xv];return t?.entries?t.entries.filter(r=>r.key!=null).map(r=>[r.key,r.value]):Object.entries(e)}function wv(e){if(typeof e=="string")return e;const t=e?.[xv];return typeof t?.value=="string"?t.value:null}function Ud(e){const t=zn(e).find(([n])=>n==="color")?.[1];if(typeof t=="string")return t;const r=t?.$yamloverLink?.value;return typeof r=="string"?r:null}function kv({tags:e,onNavigate:t}){return e.length===0?null:le.jsx(le.Fragment,{children:e.map(r=>{const n=Vn({name:r.label,color:r.color});return Pd(r.path)?le.jsx(bv,{color:n,title:r.label,onClick:()=>t(r.path)},r.path):le.jsx("a",{className:"tagtag",style:gi(n),href:r.path,title:r.label,onClick:i=>{i.preventDefault(),t(r.path)},children:r.label},r.path)})})}function zc(e,t){if(t)return t;const r=jr(e);return r.length?String(r[r.length-1]):e}const C$=new Map;function Hu({tag:e,body:t,children:r}){const n=ut.useRef(null),[i,s]=ut.useState(null),[l,$]=ut.useState(t??C$.get(e.path)??null);ut.useEffect(()=>{if(!i||t!=null||C$.has(e.path))return;let N=!0;return en(e.path,1).then(U=>wv(U.value)).catch(()=>null).then(U=>{C$.set(e.path,U??null),N&&$(U??null)}),()=>{N=!1}},[i,e.path,t]);const h=()=>{const N=n.current?.getBoundingClientRect();N&&s({left:N.left,top:N.bottom+4})},d=()=>s(null),w=Vn({name:e.name,color:e.color}),A=t??l;return le.jsxs("span",{ref:n,className:"tagtip-anchor",onMouseEnter:h,onMouseLeave:d,children:[r,i&&Gg.createPortal(le.jsxs("span",{className:"tagtip",style:{left:i.left,top:i.top,...gi(w)},children:[le.jsx("span",{className:"tagtip-path",children:x3(e.path)}),A&&le.jsx("span",{className:"tagtip-value",children:A})]}),document.body)]})}const no="yamlover:diff";function F5(e){window.dispatchEvent(new CustomEvent(no,{detail:e}))}const Za=e=>e.paths.some(t=>t.endsWith(".yamlover"));function _o(e=()=>!0){const[t,r]=ut.useState(0);return ut.useEffect(()=>{const n=i=>{const s=i.detail;s&&e(s)&&r(l=>l+1)};return window.addEventListener(no,n),()=>window.removeEventListener(no,n)},[]),t}function j5(e=()=>!0){const[t,r]=ut.useState({seq:0,paths:[]});return ut.useEffect(()=>{const n=i=>{const s=i.detail;s&&e(s)&&r(l=>({seq:l.seq+1,paths:s.paths}))};return window.addEventListener(no,n),()=>window.removeEventListener(no,n)},[]),t}const Hd=[{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"}],B5=Hd[0],P5=B5.color,im="#9399b2",Wd="yo-annotate-recent-tags";function U5(e){return e.tag?Vn(e.tag):P5}function ts(e){return JSON.stringify([e.selector??null,e.tag?.path?Lr(e.tag.path):null])}function Of(e,t){return JSON.stringify(e??null)===JSON.stringify(t??null)}function sm(e){return!!e.tag&&e.path!=="(preview)"&&e.path!=="(pending)"}let am=null;async function H5(){for(const e of["::tags:colors","::yamlover:tags:colors"])try{const t=await en(e,2),r=[];for(const[n,i]of zn(t.value)){const s=Ud(i);s&&r.push({path:`${e}:${encodeURIComponent(n)}`,name:n,color:s})}if(r.length)return r}catch{}return Hd}function W5(){const[e,t]=ut.useState(Hd);return ut.useEffect(()=>{am??=H5();let r=!1;return am.then(n=>{r||t(n)}),()=>{r=!0}},[]),e}const V5=": ...: !!<format: x-yamlover-tag>";function Y5(e){const t=new Map;for(const r of e){if(Pd(r))continue;const n=Lr(r);t.has(n)||t.set(n,r)}return[...t.values()].map(r=>({path:r,name:Ev(r),color:null}))}function G5(){const[e,t]=ut.useState([]),r=_o(Za);return ut.useEffect(()=>{let n=!1;return C3(V5).then(i=>{n||t(Y5(i))}).catch(()=>{n||t([])}),()=>{n=!0}},[r]),e}const K5=[":yamlover:tags","::yamlover:tags"];function X5(){const[e,t]=ut.useState(null);return ut.useEffect(()=>{let r=!0;return Jg().then(n=>{r&&t(n.settings.tags??null)}).catch(()=>{}),()=>{r=!1}},[]),e}function Q5(e,t){const r=Lr(e);return t.some(n=>{if(!n)return!1;const i=Lr(n);return r===i||r.startsWith(i+":")})}function Sv(e){J5(e)}function Vd(){try{const e=JSON.parse(localStorage.getItem(Wd)||"[]");if(Array.isArray(e))return e.filter(t=>t?.path&&t?.name)}catch{}return[]}function J5(e){if(Lr(e.path).startsWith(":yamlover:tags:colors:"))return;const t=[e,...Vd().filter(r=>r.path!==e.path)].slice(0,6);localStorage.setItem(Wd,JSON.stringify(t))}function Z5(){const e=r=>en(r.path,0).then(n=>n.format===ta).catch(()=>!1),t=Vd();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(Wd,JSON.stringify(n)),n})}async function O5(e,t,r,n){if(!t)return Ha({target:e,tag:r.path});const{fragmentPath:i}=await T3(e,t,n);return Ha({target:i,tag:r.path})}function e0(e,t){const r=t.node??e;return t.fragmentSlug?(r===":"?"":r)+":yamlover-fragments:"+t.fragmentSlug:r}function Yd(e,t=0){const[r,n]=ut.useState([]),i=_o(Za);return ut.useEffect(()=>{let s=!1;return Ol(e).then(l=>!s&&n(l)).catch(()=>!s&&n([])),()=>{s=!0}},[e,t,i]),r}function e6(e){const[t,r]=ut.useState(0),n=Yd(e,t),[i,s]=ut.useState([]),[l,$]=ut.useState(new Set),[h,d]=ut.useState(new Set);ut.useEffect(()=>{const _e=new Set(n.map(ts));s(Q=>Q.filter(be=>!_e.has(ts(be)))),$(Q=>new Set([...Q].filter(be=>_e.has(be))))},[n]);const w=()=>r(_e=>_e+1),A=(_e,Q)=>yc(e0(e,_e),_e.tag.path).then(w).catch(be=>{$(oe=>{const Ee=new Set(oe);return Ee.delete(Q),Ee}),window.alert("delete failed: "+be.message)});ut.useEffect(()=>{if(h.size)for(const _e of n){const Q=ts(_e);!_e.tag||!h.has(Q)||(d(be=>{const oe=new Set(be);return oe.delete(Q),oe}),$(be=>new Set(be).add(Q)),A(_e,Q))}},[n,h]);const N=(_e,Q,be)=>{s(oe=>oe.filter(Ee=>Ee!==_e)),be||window.alert("save failed: "+Q.message)},U=(_e,Q,be)=>{const oe=be?.target??e,Ee={path:"(pending)",node:oe,selector:_e??void 0,tag:Q};s(te=>[...te,Ee]),O5(oe,_e,Q,be?.imageBase64).then(w).catch(te=>N(Ee,te,be?.silent))},O=_e=>{if(!_e?.tag)return;const Q=ts(_e);if(_e.path==="(pending)"){d(be=>new Set(be).add(Q));return}$(be=>new Set(be).add(Q)),A(_e,Q)},j=ut.useRef([]),q=_e=>{const Q=n.find(be=>be.fragmentSlug&&be.path!=="(pending)"&&Of(be.selector,_e));return Q?e0(e,Q):null},Y=(_e,Q,be)=>{const oe=be?.target??e,Ee=q(_e);if(Ee){const te={path:"(pending)",node:oe,selector:_e,tag:Q};s(Ce=>[...Ce,te]),Ha({target:Ee,tag:Q.path}).then(w).catch(Ce=>N(te,Ce,be?.silent));return}if(i.some(te=>Of(te.selector,_e))){const te={path:"(pending)",node:oe,selector:_e,tag:Q};s(Ce=>[...Ce,te]),j.current.push({selector:_e,tag:Q,entry:te});return}U(_e,Q,be)};ut.useEffect(()=>{if(!j.current.length)return;const _e=[];for(const Q of j.current){const be=q(Q.selector);be?Ha({target:be,tag:Q.tag.path}).then(w).catch(oe=>N(Q.entry,oe)):_e.push(Q)}j.current=_e},[n]);const he=new Set,ne=[];for(const _e of[...i,...n]){const Q=ts(_e);l.has(Q)||h.has(Q)||he.has(Q)||(he.add(Q),ne.push(_e))}return{annotations:ne,create:U,remove:O,annotateRegion:Y}}function Ev(e){const t=jr(e);return t.length?String(t[t.length-1]):e}function t6(e,t){const r=e.name.toLowerCase();return r===t?0:r.startsWith(t)?1:r.includes(t)?2:3}function r6({label:e,concretes:t,defaultConcrete:r,onCreate:n}){const[i,s]=ut.useState(r);return le.jsxs("div",{className:"annotate-create",children:[le.jsxs("button",{type:"button",className:"annotate-action",onClick:()=>n(i),children:["+ New ",e]}),t.length>1&&le.jsx("select",{className:"annotate-concrete",value:i,onChange:l=>s(l.target.value),title:"storage form",children:t.map(l=>le.jsx("option",{value:l.id,children:l.label},l.id))})]})}function Gd({x:e,y:t,applied:r,nodeTags:n=[],mode:i,onPick:s,onUnpick:l,onCopy:$,onClose:h,menuRef:d,creates:w,title:A}){const N=W5(),U=G5(),O=X5(),[j,q]=ut.useState(Vd),[Y,he]=ut.useState(""),[ne,_e]=ut.useState(-1),[Q,be]=ut.useState(!1),oe=i==="edit"?"re-tag":"tag";ut.useEffect(()=>{let m=!0;return Z5().then(E=>{m&&q(E)}),()=>{m=!1}},[]);const Ee=(m,E)=>Lr(m)===Lr(E),te=m=>N.some(E=>Ee(E.path,m.path)),Ce=new Set(r.map(m=>Lr(m.path))),de=m=>Ce.has(Lr(m)),k=m=>(de(m.path)?l??s:s)(m),Ae=m=>{const E=[],T=new Set;for(const re of m){if(te(re))continue;const je=re.name.toLowerCase();T.has(je)||(T.add(je),E.push(re))}return E},B=U.filter(m=>Q5(m.path,[...K5,O])),pe=Ae([...r,...n,...j,...B]),W=Y.trim().toLowerCase(),Fe=W?Ae([...r,...n,...j,...U].filter(m=>m.name.toLowerCase().includes(W)||Lr(m.path).toLowerCase().includes(W)).map(m=>({t:m,rank:t6(m,W)})).sort((m,E)=>m.rank-E.rank||m.t.name.localeCompare(E.t.name)).map(({t:m})=>m)).slice(0,8):pe;ut.useEffect(()=>{_e(W&&Fe.length?0:-1)},[Y]);const fe=m=>{const E=Y.trim();!E||Q||(be(!0),en(E.startsWith(":")?E:E.startsWith("/")?":"+E.slice(1).split("/").join(":"):":"+E,1).then(T=>{if(T.format!==ta)throw new Error("not a tag node");s({path:T.path,name:T.title||Ev(T.path),color:Ud(T.value)})}).catch(T=>{if(E.includes(":")||E.includes("/"))throw new Error(`cannot ${oe} with "${E}": `+T.message);return z3(E).then(s).catch(re=>{throw new Error(`cannot create tag "${E}": `+re.message)})}).catch(T=>window.alert(T.message)).finally(()=>be(!1)))},V=ut.useRef(null),x=ut.useCallback(m=>{V.current=m,typeof d=="function"?d(m):d&&(d.current=m)},[d]),[f,o]=ut.useState({left:e,top:t}),c=ut.useRef(!1);ut.useLayoutEffect(()=>{if(c.current)return;const m=V.current;if(!m)return;const E=8,T=m.offsetWidth,re=m.offsetHeight;let je=e,nt=t;if(je+T>window.innerWidth-E&&(je=Math.max(E,window.innerWidth-T-E)),nt+re>window.innerHeight-E){const ft=t-re-12;nt=ft>=E?ft:Math.max(E,window.innerHeight-re-E)}(je!==f.left||nt!==f.top)&&o({left:je,top:nt})});const p=m=>{if(m.target.closest("button"))return;m.preventDefault();const E=m.clientX-f.left,T=m.clientY-f.top;c.current=!0;const re=nt=>o({left:nt.clientX-E,top:nt.clientY-T}),je=()=>{document.removeEventListener("mousemove",re),document.removeEventListener("mouseup",je)};document.addEventListener("mousemove",re),document.addEventListener("mouseup",je)};return le.jsxs("div",{ref:x,className:"annotate-menu",style:{left:f.left,top:f.top},role:"menu",children:[le.jsxs("div",{className:"annotate-topbar",children:[le.jsx("div",{className:"annotate-titlebar",onMouseDown:p,title:A,children:le.jsx("span",{className:"annotate-title",children:le.jsx("bdi",{children:A??""})})}),$&&le.jsx("button",{type:"button",className:"annotate-tool copy",title:"copy text to clipboard (don't annotate)",onClick:$,children:"⧉"}),le.jsx("button",{type:"button",className:"annotate-tool close",title:"close",onClick:h,children:"✕"})]}),w&&w.length>0&&le.jsx("div",{className:"annotate-actions",children:w.map(m=>le.jsx(r6,{...m},m.schema))}),le.jsx("div",{className:"annotate-palette",children:N.map(m=>le.jsx(Hu,{tag:m,children:le.jsx("button",{type:"button",className:"annotate-swatch"+(de(m.path)?" on":""),style:gi(Vn(m)),onClick:()=>k(m)})},m.path))}),Fe.length>0&&le.jsx("div",{className:"annotate-recents",role:"listbox",children:Fe.map((m,E)=>le.jsx("span",{className:"tagframe",children:le.jsx(Hu,{tag:m,children:le.jsx("button",{type:"button",role:"option","aria-selected":E===ne,className:"tagtag"+(de(m.path)?" on":"")+(E===ne?" hi":""),style:gi(Vn(m)),onClick:()=>k(m),onMouseEnter:()=>{W&&_e(E)},children:le.jsx("span",{className:"tt-label",children:m.name})})})},m.path))}),le.jsx("div",{className:"annotate-typeahead",children:le.jsx("input",{className:"annotate-taginput",type:"text",placeholder:Q?"creating tag…":`${oe}: filter, tag path, or new name… ⏎`,value:Y,disabled:Q,autoComplete:"off",onChange:m=>he(m.target.value),onKeyDown:m=>{if(Fe.length&&m.key==="ArrowDown"){m.preventDefault(),m.stopPropagation(),_e(E=>(E+1)%Fe.length);return}if(Fe.length&&m.key==="ArrowUp"){m.preventDefault(),m.stopPropagation(),_e(E=>(E-1+Fe.length)%Fe.length);return}if(m.key==="Escape"&&Y){m.preventDefault(),m.stopPropagation(),he("");return}m.key==="Enter"&&(m.preventDefault(),m.stopPropagation(),ne>=0&&Fe[ne]?k(Fe[ne]):fe())}})})]})}function n6(e,t){const[r,n]=ut.useState(null),i=ut.useRef(null),s=()=>n(null),l=(q,Y,he,ne,_e)=>{n({selector:q,nodePath:_e??t,create:!0,copy:he,imageBase64:ne,x:Y.x,y:Y.y,title:_i(_e??t)})},$=(q,Y)=>n({selector:q.selector??{},nodePath:q.node??t,create:!1,x:Y.x,y:Y.y,title:_i(e0(t,q))}),h=r?e.annotations.filter(q=>Of(q.selector,r.selector)&&(q.node??t)===r.nodePath):[],d=h.map(q=>q.tag).filter(q=>!!q),w=[],A=new Set;for(const q of e.annotations){if(!q.tag)continue;const Y=Lr(q.tag.path);A.has(Y)||(A.add(Y),w.push(q.tag))}const N=q=>{r&&(Sv(q),!d.some(Y=>Lr(Y.path)===Lr(q.path))&&e.annotateRegion(r.selector,q,{imageBase64:r.imageBase64,target:r.nodePath}))},U=q=>{if(!r)return;const Y=h.find(he=>he.tag&&Lr(he.tag.path)===Lr(q.path));Y&&e.remove(Y)};ut.useEffect(()=>{if(!r)return;const q=he=>{i.current?.contains(he.target)||s()},Y=he=>{he.target instanceof Node&&i.current?.contains(he.target)||s()};return document.addEventListener("mousedown",q),window.addEventListener("scroll",Y,!0),window.addEventListener("wheel",Y,!0),()=>{document.removeEventListener("mousedown",q),window.removeEventListener("scroll",Y,!0),window.removeEventListener("wheel",Y,!0)}},[r]);const O=r?le.jsx(Gd,{menuRef:i,x:r.x,y:r.y,applied:d,nodeTags:w,mode:"create",onPick:N,onUnpick:U,onCopy:r.copy?()=>{r.copy(),s()}:void 0,onClose:s,title:r.title}):null,j=r&&r.create&&d.length===0?{selector:r.selector,color:im}:null;return{openCreate:l,openEdit:$,palette:O,preview:j,color:im}}function i6({path:e,children:t}){const r=ut.useRef(null),n=e6(e),{openCreate:i,openEdit:s,palette:l}=n6(n,e),{annotations:$}=n,h=A=>(A instanceof HTMLElement?A:A?.parentElement)?.closest?.("[data-node-path]")?.dataset.nodePath||e;ut.useEffect(()=>{const A=r.current;if(!A)return;const N=requestAnimationFrame(()=>s6(A,$,e));return()=>cancelAnimationFrame(N)}),ut.useEffect(()=>{const A=N=>{if(N.button!==0)return;const U=r.current;if(!U||N.target?.closest?.(".annotate-menu")||N.target?.closest?.("mark.yo-annotation"))return;const O=window.getSelection();if(!O||O.isCollapsed||!O.anchorNode||!O.focusNode||!U.contains(O.anchorNode)||!U.contains(O.focusNode))return;const j=um(O);if(!j)return;const q=O.getRangeAt(0).getBoundingClientRect(),Y=()=>lm(j.exact);i({type:"text",exact:j.exact,prefix:j.prefix,suffix:j.suffix},{x:q.left,y:q.bottom+6},Y,void 0,h(O.anchorNode))};return document.addEventListener("mouseup",A),()=>document.removeEventListener("mouseup",A)},[]);const d=A=>{const N=A.target.closest("mark.yo-annotation");if(!N)return;const U=$.find(O=>ts(O)===N.dataset.annSel);!U||!sm(U)||(A.preventDefault(),s(U,{x:A.clientX,y:A.clientY}))},w=A=>{const N=r.current;if(!N)return;const U=A.target.closest("mark.yo-annotation");if(U){const Y=$.find(he=>ts(he)===U.dataset.annSel);Y&&sm(Y)&&(A.preventDefault(),s(Y,{x:A.clientX,y:A.clientY}));return}const O=window.getSelection();if(!O||O.isCollapsed||!O.anchorNode||!O.focusNode||!N.contains(O.anchorNode)||!N.contains(O.focusNode))return;const j=um(O);if(!j)return;A.preventDefault();const q=()=>lm(j.exact);i({type:"text",exact:j.exact,prefix:j.prefix,suffix:j.suffix},{x:A.clientX,y:A.clientY},q,void 0,h(O.anchorNode))};return le.jsxs("div",{className:"annotated",children:[le.jsx("div",{ref:r,onClick:d,onContextMenu:w,children:t}),l]})}function lm(e){return navigator.clipboard?.writeText?navigator.clipboard.writeText(e).then(()=>!0,()=>om(e)):Promise.resolve(om(e))}function om(e){const t=document.createElement("textarea");t.value=e,t.setAttribute("readonly",""),t.style.position="fixed",t.style.top="-1000px",t.style.opacity="0",document.body.appendChild(t);try{return t.select(),document.execCommand("copy")}catch{return!1}finally{t.remove()}}function um(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 s6(e,t,r){e.querySelectorAll("mark.yo-annotation").forEach(n=>{const i=n.parentNode;if(i){for(;n.firstChild;)i.insertBefore(n.firstChild,n);i.removeChild(n),i.normalize()}});for(const n of t){if(n.selector?.type!=="text"||!n.selector.exact)continue;let i=e;if(n.node){for(const s of e.querySelectorAll("[data-node-path]"))if(s.dataset.nodePath===n.node){i=s;break}}a6(i,n,n.node??r)}}function a6(e,t,r){const n=t.selector,i=String(n.exact),s=t.fragmentSlug?Xg(r,t.fragmentSlug):"";if(s){for(const he of e.querySelectorAll("[id]"))if(he.id===s)return}const l=document.createTreeWalker(e,NodeFilter.SHOW_TEXT),$=[];let h="";for(let he;he=l.nextNode();)$.push({node:he,at:h.length}),h+=he.nodeValue??"";const d=String(n.prefix??""),w=String(n.suffix??"");let A=-1,N=-1;for(let he=h.indexOf(i);he>=0;he=h.indexOf(i,he+1)){const ne=(d&&h.slice(0,he).endsWith(d)?2:0)+(w&&h.slice(he+i.length).startsWith(w)?1:0);ne>N&&(N=ne,A=he)}if(A<0)return;const U=$.find(he=>A>=he.at&&A<he.at+(he.node.nodeValue?.length??0));if(!U)return;const O=A-U.at;if(O+i.length>(U.node.nodeValue?.length??0))return;const j=document.createRange();j.setStart(U.node,O),j.setEnd(U.node,O+i.length);const q=U5(t),Y=document.createElement("mark");Y.className="yo-annotation",Y.style.backgroundColor=`color-mix(in srgb, ${q} var(--mark-mix, 30%), transparent)`,Y.style.borderBottomColor=q,Y.dataset.annSel=ts(t),s&&(Y.id=s),Y.title=t.description||"click to re-tag or delete";try{j.surroundContents(Y)}catch{}}const Av=[{schema:"::yamlover:$defs:chapter",childOf:["x-yamlover-chapter","x-yamlover-task"]}],l6=[{id:"yamlover",label:"inline"},{id:"file/yamlover",label:"file"},{id:"dir/yamlover",label:"directory"}],o6=[{id:"file/yamlover",label:"file"},{id:"dir/yamlover",label:"directory"}];function u6(e,t){const r=[];for(const n of Av){const i=t[n.schema]||c6(n.schema);e.format&&n.childOf.includes(e.format)?r.push({schema:n.schema,label:i,concretes:l6,defaultConcrete:"yamlover"}):Os(e.concrete)&&r.push({schema:n.schema,label:i,concretes:o6,defaultConcrete:"dir/yamlover"})}return r}function c6(e){return _i(e).replace(/^:\s?/,"").replace(/^yamlover:\s?/,"")}let cm=null;async function $6(){const e={};return await Promise.all(Av.map(async t=>{try{const r=await en(t.schema,0);r.title&&(e[t.schema]=r.title)}catch{}})),e}function f6(){const[e,t]=ut.useState({});return ut.useEffect(()=>{cm??=$6();let r=!0;return cm.then(n=>{r&&t(n)}),()=>{r=!1}},[]),e}function Kd(e){const[t,r]=ut.useState(null),[n,i]=ut.useState([]),s=f6(),l=ut.useRef(null),$=()=>{r(null),i([])},h=j=>Ol(j).then(q=>i(q.filter(Y=>!Y.fragmentSlug))).catch(()=>i([])),d=(j,q,Y,he)=>{r({target:j,x:q,y:Y,node:he}),i([]),h(j)},w=j=>{if(!t)return;Sv(j);const q={path:"(pending)",tag:j};i(Y=>[...Y,q]),Ha({target:t.target,tag:j.path}).then(()=>h(t.target)).catch(Y=>{i(he=>he.filter(ne=>ne!==q)),window.alert("tag failed: "+Y.message)})},A=j=>{if(!t)return;const q=n.find(Y=>Y.tag&&Lr(Y.tag.path)===Lr(j.path));i(Y=>Y.filter(he=>he!==q)),yc(t.target,q?.tag?.path??j.path).then(()=>h(t.target)).catch(Y=>{q&&i(he=>[...he,q]),window.alert("untag failed: "+Y.message)})};ut.useEffect(()=>{if(!t)return;const j=Y=>{l.current?.contains(Y.target)||$()},q=Y=>{Y.target instanceof Node&&l.current?.contains(Y.target)||$()};return document.addEventListener("mousedown",j),window.addEventListener("scroll",q,!0),window.addEventListener("wheel",q,!0),()=>{document.removeEventListener("mousedown",j),window.removeEventListener("scroll",q,!0),window.removeEventListener("wheel",q,!0)}},[t]);const N=n.map(j=>j.tag).filter(j=>!!j),U=t?.node&&e?.onCreate?u6(t.node,s).map(j=>({schema:j.schema,label:j.label,concretes:j.concretes,defaultConcrete:j.defaultConcrete,onCreate:q=>{e.onCreate(j.schema,t.target,q),$()}})):void 0,O=t?le.jsx(Gd,{menuRef:l,x:t.x,y:t.y,applied:N,mode:"create",onPick:w,onUnpick:A,onClose:$,creates:U,title:_i(t.target)}):null;return{openAt:d,tagMenu:O}}class It extends Error{constructor(t,r){var n="KaTeX parse error: "+t,i,s,l=r&&r.loc;if(l&&l.start<=l.end){var $=l.lexer.input;i=l.start,s=l.end,i===$.length?n+=" at end of input: ":n+=" at position "+(i+1)+": ";var h=$.slice(i,s).replace(/[^]/g,"$&̲"),d;i>15?d="…"+$.slice(i-15,i):d=$.slice(0,i);var w;s+15<$.length?w=$.slice(s,s+15)+"…":w=$.slice(s),n+=d+h+w}super(n),this.name="ParseError",this.position=void 0,this.length=void 0,this.rawMessage=void 0,Object.setPrototypeOf(this,It.prototype),this.position=i,i!=null&&s!=null&&(this.length=s-i),this.rawMessage=t}}var d6=/([A-Z])/g,h6=e=>e.replace(d6,"-$1").toLowerCase(),p6={"&":"&",">":">","<":"<",'"':""","'":"'"},m6=/[&><"']/g,rn=e=>String(e).replace(m6,t=>p6[t]),fu=e=>e.type==="ordgroup"||e.type==="color"?e.body.length===1?fu(e.body[0]):e:e.type==="font"?fu(e.body):e,_6=new Set(["mathord","textord","atom"]),Ui=e=>_6.has(fu(e).type),g6=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"},t0={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 v6(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 y6(e){if(e.default!==void 0)return e.default;var t=Array.isArray(e.type)?e.type[0]:e.type;return v6(t)}function b6(e,t,r,n){var i=r[t];e[t]=i!==void 0?n.processor?n.processor(i):i:y6(n)}class Xd{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(t0)){var n=t0[r];n&&b6(this,r,t,n)}}reportNonstrict(t,r,n){var i=this.strict;if(typeof i=="function"&&(i=i(t,r,n)),!(!i||i==="ignore")){if(i===!0||i==="error")throw new It("LaTeX-incompatible input and strict mode is set to 'error': "+(r+" ["+t+"]"),n);i==="warn"?typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+(r+" ["+t+"]")):typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to "+("unrecognized '"+i+"': "+r+" ["+t+"]"))}}useStrictBehavior(t,r,n){var i=this.strict;if(typeof i=="function")try{i=i(t,r,n)}catch{i="error"}return!i||i==="ignore"?!1:i===!0||i==="error"?!0:i==="warn"?(typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+(r+" ["+t+"]")),!1):(typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to "+("unrecognized '"+i+"': "+r+" ["+t+"]")),!1)}isTrusted(t){if("url"in t&&t.url&&!t.protocol){var r=g6(t.url);if(r==null)return!1;t.protocol=r}var n=typeof this.trust=="function"?this.trust(t):this.trust;return!!n}}class Yi{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 ui[x6[this.id]]}sub(){return ui[w6[this.id]]}fracNum(){return ui[k6[this.id]]}fracDen(){return ui[S6[this.id]]}cramp(){return ui[E6[this.id]]}text(){return ui[A6[this.id]]}isTight(){return this.size>=2}}var Qd=0,Wu=1,qa=2,Ii=3,io=4,Un=5,Ya=6,cn=7,ui=[new Yi(Qd,0,!1),new Yi(Wu,0,!0),new Yi(qa,1,!1),new Yi(Ii,1,!0),new Yi(io,2,!1),new Yi(Un,2,!0),new Yi(Ya,3,!1),new Yi(cn,3,!0)],x6=[io,Un,io,Un,Ya,cn,Ya,cn],w6=[Un,Un,Un,Un,cn,cn,cn,cn],k6=[qa,Ii,io,Un,Ya,cn,Ya,cn],S6=[Ii,Ii,Un,Un,cn,cn,cn,cn],E6=[Wu,Wu,Ii,Ii,Un,Un,cn,cn],A6=[Qd,Wu,qa,Ii,qa,Ii,qa,Ii],Gt={DISPLAY:ui[Qd],TEXT:ui[qa],SCRIPT:ui[io],SCRIPTSCRIPT:ui[Ya]},r0=[{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 C6(e){for(var t=0;t<r0.length;t++)for(var r=r0[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 du=[];r0.forEach(e=>e.blocks.forEach(t=>du.push(...t)));function Cv(e){for(var t=0;t<du.length;t+=2)if(e>=du[t]&&e<=du[t+1])return!0;return!1}var Mr=e=>e+" "+e,ca=80,T6=function(t,r){return"M95,"+(622+t+r)+`
|
|
84
|
-
c-2.7,0,-7.17,-2.7,-13.5,-8c-5.8,-5.3,-9.5,-10,-9.5,-14
|
|
85
|
-
c0,-2,0.3,-3.3,1,-4c1.3,-2.7,23.83,-20.7,67.5,-54
|
|
86
|
-
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
|
|
87
|
-
s173,378,173,378c0.7,0,35.3,-71,104,-213c68.7,-142,137.5,-285,206.5,-429
|
|
88
|
-
c69,-144,104.5,-217.7,106.5,-221
|
|
89
|
-
l`+t/2.075+" -"+t+`
|
|
90
|
-
c5.3,-9.3,12,-14,20,-14
|
|
91
|
-
H400000v`+(40+t)+`H845.2724
|
|
92
|
-
s-225.272,467,-225.272,467s-235,486,-235,486c-2.7,4.7,-9,7,-19,7
|
|
93
|
-
c-6,0,-10,-1,-12,-3s-194,-422,-194,-422s-65,47,-65,47z
|
|
94
|
-
M`+(834+t)+" "+r+"h400000v"+(40+t)+"h-400000z"},R6=function(t,r){return"M263,"+(601+t+r)+`c0.7,0,18,39.7,52,119
|
|
95
|
-
c34,79.3,68.167,158.7,102.5,238c34.3,79.3,51.8,119.3,52.5,120
|
|
96
|
-
c340,-704.7,510.7,-1060.3,512,-1067
|
|
97
|
-
l`+t/2.084+" -"+t+`
|
|
98
|
-
c4.7,-7.3,11,-11,19,-11
|
|
99
|
-
H40000v`+(40+t)+`H1012.3
|
|
100
|
-
s-271.3,567,-271.3,567c-38.7,80.7,-84,175,-136,283c-52,108,-89.167,185.3,-111.5,232
|
|
101
|
-
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
|
|
102
|
-
s-109,-253,-109,-253c-72.7,-168,-109.3,-252,-110,-252c-10.7,8,-22,16.7,-34,26
|
|
103
|
-
c-22,17.3,-33.3,26,-34,26s-26,-26,-26,-26s76,-59,76,-59s76,-60,76,-60z
|
|
104
|
-
M`+(1001+t)+" "+r+"h400000v"+(40+t)+"h-400000z"},z6=function(t,r){return"M983 "+(10+t+r)+`
|
|
105
|
-
l`+t/3.13+" -"+t+`
|
|
106
|
-
c4,-6.7,10,-10,18,-10 H400000v`+(40+t)+`
|
|
107
|
-
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
|
|
108
|
-
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
|
|
109
|
-
c-10,12,-21,25,-33,39s-32,39,-32,39c-6,-5.3,-15,-14,-27,-26s25,-30,25,-30
|
|
110
|
-
c26.7,-32.7,52,-63,76,-91s52,-60,52,-60s208,722,208,722
|
|
111
|
-
c56,-175.3,126.3,-397.3,211,-666c84.7,-268.7,153.8,-488.2,207.5,-658.5
|
|
112
|
-
c53.7,-170.3,84.5,-266.8,92.5,-289.5z
|
|
113
|
-
M`+(1001+t)+" "+r+"h400000v"+(40+t)+"h-400000z"},N6=function(t,r){return"M424,"+(2398+t+r)+`
|
|
114
|
-
c-1.3,-0.7,-38.5,-172,-111.5,-514c-73,-342,-109.8,-513.3,-110.5,-514
|
|
115
|
-
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
|
|
116
|
-
s-5,7,-5,7c-4,-3.3,-8.3,-7.7,-13,-13s-13,-13,-13,-13s76,-122,76,-122s77,-121,77,-121
|
|
117
|
-
s209,968,209,968c0,-2,84.7,-361.7,254,-1079c169.3,-717.3,254.7,-1077.7,256,-1081
|
|
118
|
-
l`+t/4.223+" -"+t+`c4,-6.7,10,-10,18,-10 H400000
|
|
119
|
-
v`+(40+t)+`H1014.6
|
|
120
|
-
s-87.3,378.7,-272.6,1166c-185.3,787.3,-279.3,1182.3,-282,1185
|
|
121
|
-
c-2,6,-10,9,-24,9
|
|
122
|
-
c-8,0,-12,-0.7,-12,-2z M`+(1001+t)+" "+r+`
|
|
123
|
-
h400000v`+(40+t)+"h-400000z"},I6=function(t,r){return"M473,"+(2713+t+r)+`
|
|
124
|
-
c339.3,-1799.3,509.3,-2700,510,-2702 l`+t/5.298+" -"+t+`
|
|
125
|
-
c3.3,-7.3,9.3,-11,18,-11 H400000v`+(40+t)+`H1017.7
|
|
126
|
-
s-90.5,478,-276.2,1466c-185.7,988,-279.5,1483,-281.5,1485c-2,6,-10,9,-24,9
|
|
127
|
-
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
|
|
128
|
-
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
|
|
129
|
-
s76,-153,76,-153s77,-151,77,-151c0.7,0.7,35.7,202,105,604c67.3,400.7,102,602.7,104,
|
|
130
|
-
606zM`+(1001+t)+" "+r+"h400000v"+(40+t)+"H1017.7z"},q6=function(t){var r=t/2;return"M400000 "+t+" H0 L"+r+" 0 l65 45 L145 "+(t-80)+" H400000z"},M6=function(t,r,n){var i=n-54-r-t;return"M702 "+(t+r)+"H400000"+(40+t)+`
|
|
131
|
-
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
|
|
132
|
-
h-12l-28-84c-16.667-52-96.667 -294.333-240-727l-212 -643 -85 170
|
|
133
|
-
c-4-3.333-8.333-7.667-13 -13l-13-13l77-155 77-156c66 199.333 139 419.667
|
|
134
|
-
219 661 l218 661zM702 `+r+"H400000v"+(40+t)+"H742z"},D6=function(t,r,n){r=1e3*r;var i="";switch(t){case"sqrtMain":i=T6(r,ca);break;case"sqrtSize1":i=R6(r,ca);break;case"sqrtSize2":i=z6(r,ca);break;case"sqrtSize3":i=N6(r,ca);break;case"sqrtSize4":i=I6(r,ca);break;case"sqrtTall":i=M6(r,ca,n)}return i},L6=function(t,r){switch(t){case"⎜":return Mr("M291 0 H417 V"+r+" H291z");case"∣":return Mr("M145 0 H188 V"+r+" H145z");case"∥":return Mr("M145 0 H188 V"+r+" H145z")+Mr("M367 0 H410 V"+r+" H367z");case"⎟":return Mr("M457 0 H583 V"+r+" H457z");case"⎢":return Mr("M319 0 H403 V"+r+" H319z");case"⎥":return Mr("M263 0 H347 V"+r+" H263z");case"⎪":return Mr("M384 0 H504 V"+r+" H384z");case"⏐":return Mr("M312 0 H355 V"+r+" H312z");case"‖":return Mr("M257 0 H300 V"+r+" H257z")+Mr("M478 0 H521 V"+r+" H478z");default:return""}},$m={doubleleftarrow:`M262 157
|
|
135
|
-
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
|
|
136
|
-
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
|
|
137
|
-
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
|
|
138
|
-
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
|
|
139
|
-
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
|
|
140
|
-
-86-123l-10-10h399738v-40H218c328 0 0 0 0 0l-10-8c-26.7-20-65.7-43-117-69 2.7
|
|
141
|
-
-2 6-3.7 10-5 36.7-16 72.3-37.3 107-64l10-8h399782v-40z
|
|
142
|
-
m8 0v40h399730v-40zm0 194v40h399730v-40z`,doublerightarrow:`M399738 392l
|
|
143
|
-
-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
|
|
144
|
-
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
|
|
145
|
-
-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
|
|
146
|
-
-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
|
|
147
|
-
-13h-6c-12 .7-18 4-18 10 0 2 1.7 7 5 15 23.3 46 52 87 86 123l10 10H0v40h399782
|
|
148
|
-
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
|
|
149
|
-
-107 64l-10 8H0v40zM0 157v40h399730v-40zm0 194v40h399730v-40z`,leftarrow:`M400000 241H110l3-3c68.7-52.7 113.7-120
|
|
150
|
-
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
|
|
151
|
-
-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
|
|
152
|
-
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
|
|
153
|
-
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
|
|
154
|
-
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
|
|
155
|
-
l-3-3h399890zM100 241v40h399900v-40z`,leftbrace:`M6 548l-6-6v-35l6-11c56-104 135.3-181.3 238-232 57.3-28.7 117
|
|
156
|
-
-45 179-50h399577v120H403c-43.3 7-81 15-113 26-100.7 33-179.7 91-237 174-2.7
|
|
157
|
-
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
|
|
158
|
-
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
|
|
159
|
-
0 2 .3 4 1 18.688 2.7 76 4.3 172 5h399450v120H429l-6-1c-124.688-8-235-61.7
|
|
160
|
-
-331-161C60.687 138.7 32.312 99.3 7 54L0 41V6z`,leftgroup:`M400000 80
|
|
161
|
-
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
|
|
162
|
-
435 0h399565z`,leftgroupunder:`M400000 262
|
|
163
|
-
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
|
|
164
|
-
435 219h399565z`,leftharpoon:`M0 267c.7 5.3 3 10 7 14h399993v-40H93c3.3
|
|
165
|
-
-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
|
|
166
|
-
-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
|
|
167
|
-
-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
|
|
168
|
-
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
|
|
169
|
-
-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
|
|
170
|
-
-10.7 8-12 10-1.3 2-2 5.7-2 11zm100-26v40h399900v-40zM0 435v40h400000v-40z
|
|
171
|
-
m0 0v40h400000v-40z`,leftharpoondown:`M7 241c-4 4-6.333 8.667-7 14 0 5.333.667 9 2 11s5.333
|
|
172
|
-
5.333 12 10c90.667 54 156 130 196 228 3.333 10.667 6.333 16.333 9 17 2 .667 5
|
|
173
|
-
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
|
|
174
|
-
-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
|
|
175
|
-
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
|
|
176
|
-
-2 18-6 2-2.7 1-9.7-3-21-32-87.3-82.7-157.7-152-211l-3-3h399907v-40H7zm93 0
|
|
177
|
-
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
|
|
178
|
-
-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
|
|
179
|
-
-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
|
|
180
|
-
71.5 23h399859zM103 281v-40h399897v40z`,leftlinesegment:Mr("M40 281 V428 H0 V94 H40 V241 H400000 v40z"),leftbracketunder:Mr("M0 0 h120 V290 H399995 v120 H0z"),leftbracketover:Mr("M0 440 h120 V150 H399995 v-120 H0z"),leftmapsto:Mr("M40 281 V448H0V74H40V241H400000v40z"),leftToFrom:`M0 147h400000v40H0zm0 214c68 40 115.7 95.7 143 167h22c15.3 0 23
|
|
181
|
-
-.3 23-1 0-1.3-5.3-13.7-16-37-18-35.3-41.3-69-70-101l-7-8h399905v-40H95l7-8
|
|
182
|
-
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
|
|
183
|
-
68 321 0 361zm0-174v-40h399900v40zm100 154v40h399900v-40z`,longequal:Mr("M0 50 h400000 v40H0z m0 194h40000v40H0z"),midbrace:`M200428 334
|
|
184
|
-
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
|
|
185
|
-
-53.3 86.7-123.7 153-211 199-66.7 36-137.3 56.3-212 62H0V214h199568c178.3-11.7
|
|
186
|
-
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
|
|
187
|
-
12 44.7 59.3 101.3 106.3 170 141s145.3 54.3 229 60h199572v120z`,midbraceunder:`M199572 214
|
|
188
|
-
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
|
|
189
|
-
53.3-86.7 123.7-153 211-199 66.7-36 137.3-56.3 212-62h199568v120H200432c-178.3
|
|
190
|
-
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
|
|
191
|
-
-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
|
|
192
|
-
-320.3 177.6S193.1 320.6 193.1 249.8c0-71.4 46.9-178.2 319.5-178.2z
|
|
193
|
-
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
|
|
194
|
-
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
|
|
195
|
-
-451.1 228.8-386.3 0-452.7-137.5-452.7-228.8 0-92.4 66.4-230 452.7-230z
|
|
196
|
-
m502.4 230c0-111.2-82.4-277.2-502.4-277.2s-504 166-504 277.2
|
|
197
|
-
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
|
|
198
|
-
-480.5 177.6S202.1 320.6 202.1 249.8c0-71.4 70.5-178.2 479.3-178.2z
|
|
199
|
-
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
|
|
200
|
-
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
|
|
201
|
-
-707.8 275.8-606 0-710.2-165.8-710.2-275.8C311 218.8 415.2 53 1021.2 53z
|
|
202
|
-
m770.4 277.1c0-131.2-126.4-327.6-770.5-327.6S248.4 198.9 248.4 330.1
|
|
203
|
-
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
|
|
204
|
-
-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
|
|
205
|
-
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
|
|
206
|
-
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
|
|
207
|
-
-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
|
|
208
|
-
-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
|
|
209
|
-
151.7 139 205zm0 0v40h399900v-40z`,rightbrace:`M400000 542l
|
|
210
|
-
-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
|
|
211
|
-
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
|
|
212
|
-
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
|
|
213
|
-
28.7-117 45-179 50H-300V214h399897c43.3-7 81-15 113-26 100.7-33 179.7-91 237
|
|
214
|
-
-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
|
|
215
|
-
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
|
|
216
|
-
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
|
|
217
|
-
-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
|
|
218
|
-
-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
|
|
219
|
-
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
|
|
220
|
-
-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
|
|
221
|
-
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
|
|
222
|
-
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
|
|
223
|
-
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
|
|
224
|
-
-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
|
|
225
|
-
-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
|
|
226
|
-
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
|
|
227
|
-
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
|
|
228
|
-
-64.7 57-92 95-27.3 38-48.7 77.7-64 119-3.3 8.7-5 14-5 16zM0 435v40h399900v-40z
|
|
229
|
-
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
|
|
230
|
-
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
|
|
231
|
-
-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
|
|
232
|
-
66.8s-14 61.2-42 83.5c-28 22.3-61 33.5-99 33.5L0 241z M0 281v-40h399859v40z`,rightlinesegment:Mr("M399960 241 V94 h40 V428 h-40 V281 H0 v-40z"),rightbracketunder:Mr("M399995 0 h-120 V290 H0 v120 H400000z"),rightbracketover:Mr("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
|
|
233
|
-
1 0 1.3 5.3 13.7 16 37 18 35.3 41.3 69 70 101l7 8H0v40h399905l-7 8c-28.7 32
|
|
234
|
-
-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
|
|
235
|
-
-167z M100 147v40h399900v-40zM0 341v40h399900v-40z`,twoheadleftarrow:`M0 167c68 40
|
|
236
|
-
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
|
|
237
|
-
-70-101l-7-8h125l9 7c50.7 39.3 85 86 103 140h46c0-4.7-6.3-18.7-19-42-18-35.3
|
|
238
|
-
-40-67.3-66-96l-9-9h399716v-40H284l9-9c26-28.7 48-60.7 66-96 12.7-23.333 19
|
|
239
|
-
-37.333 19-42h-46c-18 54-52.3 100.7-103 140l-9 7H95l7-8c28.7-32 52-65.7 70-101
|
|
240
|
-
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
|
|
241
|
-
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
|
|
242
|
-
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
|
|
243
|
-
18 35.3 40 67.3 66 96l9 9H0v40h399716l-9 9c-26 28.7-48 60.7-66 96-12.7 23.333
|
|
244
|
-
-19 37.333-19 42h46c18-54 52.3-100.7 103-140l9-7h125l-7 8c-28.7 32-52 65.7-70
|
|
245
|
-
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
|
|
246
|
-
-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
|
|
247
|
-
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
|
|
248
|
-
4.35-2 7.613-5 9.788l-19 13.05c-92 63.077-116.937 75.308-183 76.128
|
|
249
|
-
-68.267.847-113-73.952-191-73.952z`,tilde2:`M344 55.266c-142 0-300.638 81.316-311.5 86.418
|
|
250
|
-
-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
|
|
251
|
-
31.9 283 0 358 0c148 0 188 122 331 122s314-97 326-97c4 0 8 2 10 7l7 21.114
|
|
252
|
-
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
|
|
253
|
-
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
|
|
254
|
-
-11-10.37L.15 138c-1-7 3-12 10-13l19.2-6.4C378.4 40.7 634.3 0 804.3 0c337 0
|
|
255
|
-
411.8 157 746.8 157 328 0 754-112 773-112 5 0 10 3 11 9l1 14.075c1 8.066-.697
|
|
256
|
-
16.595-6.697 17.492l-21.052 7.31c-367.9 98.146-609.15 122.696-778.15 122.696
|
|
257
|
-
-338 0-409-156.573-744-156.573z`,tilde4:`M786 58C457 58 32 177.487 13 177.487c-6 0-10-3.345
|
|
258
|
-
-11-10.035L.15 143c-1-7 3-12 10-13l22-6.7C381.2 35 637.15 0 807.15 0c337 0 409
|
|
259
|
-
177 744 177 328 0 754-127 773-127 5 0 10 3 11 9l1 14.794c1 7.805-3 13.38-9
|
|
260
|
-
14.495l-20.7 5.574c-366.85 99.79-607.3 139.372-776.3 139.372-338 0-409
|
|
261
|
-
-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
|
|
262
|
-
3.333 2.667 6.667 9 10 19 6.667 24.667 20.333 43.667 41 57 7.333 4.667 11
|
|
263
|
-
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
|
|
264
|
-
-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
|
|
265
|
-
-7 1c-4.667 0-9.167-1.833-13.5-5.5S337 184 337 178c0-12.667 15.667-32.333 47-59
|
|
266
|
-
H213l-171-1c-8.667-6-13-12.333-13-19 0-4.667 4.333-11.333 13-20h359
|
|
267
|
-
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
|
|
268
|
-
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
|
|
269
|
-
-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
|
|
270
|
-
-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
|
|
271
|
-
-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,
|
|
272
|
-
-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,
|
|
273
|
-
-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,
|
|
274
|
-
-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,
|
|
275
|
-
-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
|
|
276
|
-
c4 -14.7 6 -23 6 -25c0 -7.3 -7 -11 -21 -11c-8 0 -13.2 0.8 -15.5 2.5
|
|
277
|
-
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
|
|
278
|
-
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
|
|
279
|
-
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
|
|
280
|
-
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
|
|
281
|
-
c0 -2 -2 -10.3 -6 -25c-20 -79.3 -65 -146.7 -135 -202l-3 -3h399890z
|
|
282
|
-
M100 620v40h399900v-40z M0 241v40h399900v-40zM0 241v40h399900v-40z`,rightarrowabovebar:`M0 241v40h399891c-47.3 35.3-84 78-110 128-16.7 32
|
|
283
|
-
-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
|
|
284
|
-
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
|
|
285
|
-
-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
|
|
286
|
-
-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
|
|
287
|
-
-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
|
|
288
|
-
151.7 139 205zm96 379h399894v40H0zm0 0h399904v40H0z`,baraboveshortleftharpoon:`M507,435c-4,4,-6.3,8.7,-7,14c0,5.3,0.7,9,2,11
|
|
289
|
-
c1.3,2,5.3,5.3,12,10c90.7,54,156,130,196,228c3.3,10.7,6.3,16.3,9,17
|
|
290
|
-
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
|
|
291
|
-
c-32,-87.3,-82.7,-157.7,-152,-211c0,0,-3,-3,-3,-3l399351,0l0,-40
|
|
292
|
-
c-398570,0,-399437,0,-399437,0z M593 435 v40 H399500 v-40z
|
|
293
|
-
M0 281 v-40 H399908 v40z M0 281 v-40 H399908 v40z`,rightharpoonaboveshortbar:`M0,241 l0,40c399126,0,399993,0,399993,0
|
|
294
|
-
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,
|
|
295
|
-
-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
|
|
296
|
-
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
|
|
297
|
-
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
|
|
298
|
-
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,
|
|
299
|
-
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,
|
|
300
|
-
-152,-211c0,0,-3,-3,-3,-3l399907,0l0,-40c-399126,0,-399993,0,-399993,0z
|
|
301
|
-
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
|
|
302
|
-
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,
|
|
303
|
-
-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
|
|
304
|
-
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
|
|
305
|
-
M500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z`},F6=function(t,r){switch(t){case"lbrack":return"M403 1759 V84 H666 V0 H319 V1759 v"+r+` v1759 v84 h347 v-84
|
|
306
|
-
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
|
|
307
|
-
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
|
|
308
|
-
c10,0,16.667,-5,20,-15 v-585 v`+-r+` v-585 c-2.667,-10,-9.667,-15,-21,-15
|
|
309
|
-
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
|
|
310
|
-
c10,0,16.667,-5,20,-15 v-585 v`+-r+` v-585 c-2.667,-10,-9.667,-15,-21,-15
|
|
311
|
-
c-10,0,-16.667,5,-20,15z M188 15 H145 v585 v`+r+` v585 h43z
|
|
312
|
-
M367 15 v585 v`+r+` v585 c2.667,10,9.667,15,21,15
|
|
313
|
-
c10,0,16.667,-5,20,-15 v-585 v`+-r+` v-585 c-2.667,-10,-9.667,-15,-21,-15
|
|
314
|
-
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
|
|
315
|
-
MM319 602 V0 H403 V602 v`+r+" v1715 H319z";case"rfloor":return"M319 602 V0 H403 V602 v"+r+` v1799 H0 v-84 H319z
|
|
316
|
-
MM319 602 V0 H403 V602 v`+r+" v1715 H319z";case"lceil":return"M403 1759 V84 H666 V0 H319 V1759 v"+r+` v602 h84z
|
|
317
|
-
M403 1759 V0 H319 V1759 v`+r+" v602 h84z";case"rceil":return"M347 1759 V0 H0 V84 H263 V1759 v"+r+` v602 h84z
|
|
318
|
-
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
|
|
319
|
-
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,
|
|
320
|
-
-36,557 l0,`+(r+84)+`c0.2,6,0,26,0,60c2,159.3,10,310.7,24,454c53.3,528,210,
|
|
321
|
-
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
|
|
322
|
-
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,
|
|
323
|
-
-544.7,-112.5,-882c-2,-104,-3,-167,-3,-189
|
|
324
|
-
l0,-`+(r+92)+`c0,-162.7,5.7,-314,17,-454c20.7,-272,63.7,-513,129,-723c65.3,
|
|
325
|
-
-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,
|
|
326
|
-
63,95c96.7,156.7,172.8,332.5,228.5,527.5c55.7,195,92.8,416.5,111.5,664.5
|
|
327
|
-
c11.3,139.3,17,290.7,17,454c0,28,1.7,43,3.3,45l0,`+(r+9)+`
|
|
328
|
-
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
|
|
329
|
-
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
|
|
330
|
-
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
|
|
331
|
-
c242.7,-294.7,395.3,-681.7,458,-1161c21.3,-164.7,33.3,-350.7,36,-558
|
|
332
|
-
l0,-`+(r+144)+`c-2,-159.3,-10,-310.7,-24,-454c-53.3,-528,-210,-949.7,
|
|
333
|
-
-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 j6(e){return"toText"in e}class Oa{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(j6(t))return t.toText();throw new Error("Expected MathDomNode with toText, got "+t.constructor.name)}).join("")}}var n0={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},B6={ex:!0,em:!0,mu:!0},Tv=function(t){return typeof t!="string"&&(t=t.unit),t in n0||t in B6||t==="ex"},vr=function(t,r){var n;if(t.unit in n0)n=n0[t.unit]/r.fontMetrics().ptPerEm/r.sizeMultiplier;else if(t.unit==="mu")n=r.fontMetrics().cssEmPerMu;else{var i;if(r.style.isTight()?i=r.havingStyle(r.style.text()):i=r,t.unit==="ex")n=i.fontMetrics().xHeight;else if(t.unit==="em")n=i.fontMetrics().quad;else throw new It("Invalid unit: '"+t.unit+"'");i!==r&&(n*=i.sizeMultiplier/r.sizeMultiplier)}return Math.min(t.number*n,r.maxSize)},Mt=function(t){return+t.toFixed(4)+"em"},ms=function(t){return t.filter(r=>r).join(" ")},Jd=function(t){var r="";for(var n of Object.keys(t)){var i=t[n];i!==void 0&&(r+=h6(n)+":"+i+";")}return r},Rv=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)}},zv=function(t){var r=document.createElement(t);r.className=ms(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},P6=/[\s"'>/=\x00-\x1f]/,Nv=function(t){var r="<"+t;this.classes.length&&(r+=' class="'+rn(ms(this.classes))+'"');var n=Jd(this.style);n&&(r+=' style="'+rn(n)+'"');for(var i of Object.keys(this.attributes)){if(P6.test(i))throw new It("Invalid attribute name '"+i+"'");r+=" "+i+'="'+rn(this.attributes[i])+'"'}r+=">";for(var s=0;s<this.children.length;s++)r+=this.children[s].toMarkup();return r+="</"+t+">",r};class el{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,Rv.call(this,t,n,i),this.children=r||[]}setAttribute(t,r){this.attributes[t]=r}hasClass(t){return this.classes.includes(t)}toNode(){return zv.call(this,"span")}toMarkup(){return Nv.call(this,"span")}}class Nc{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,Rv.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 zv.call(this,"a")}toMarkup(){return Nv.call(this,"a")}}class U6{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="'+rn(this.src)+'"'+(' alt="'+rn(this.alt)+'"'),r=Jd(this.style);return r&&(t+=' style="'+rn(r)+'"'),t+="'/>",t}}var H6={î:"ı̂",ï:"ı̈",í:"ı́",ì:"ı̀"};class Nn{constructor(t,r,n,i,s,l,$,h){this.text=void 0,this.height=void 0,this.depth=void 0,this.italic=void 0,this.skew=void 0,this.width=void 0,this.maxFontSize=void 0,this.classes=void 0,this.style=void 0,this.text=t,this.height=r||0,this.depth=n||0,this.italic=i||0,this.skew=s||0,this.width=l||0,this.classes=$||[],this.style=h||{},this.maxFontSize=0;var d=C6(this.text.charCodeAt(0));d&&this.classes.push(d+"_fallback"),/[îïíì]/.test(this.text)&&(this.text=H6[this.text])}hasClass(t){return this.classes.includes(t)}toNode(){var t=document.createTextNode(this.text),r=null;return this.italic>0&&(r=document.createElement("span"),r.style.marginRight=Mt(this.italic)),this.classes.length>0&&(r=r||document.createElement("span"),r.className=ms(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+=rn(ms(this.classes)),r+='"');var n="";this.italic>0&&(n+="margin-right:"+Mt(this.italic)+";"),n+=Jd(this.style),n&&(t=!0,r+=' style="'+rn(n)+'"');var i=rn(this.text);return t?(r+=">",r+=i,r+="</span>",r):i}}class Fi{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+'="'+rn(this.attributes[r])+'"';t+=">";for(var n=0;n<this.children.length;n++)t+=this.children[n].toMarkup();return t+="</svg>",t}}class _s{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",$m[this.pathName]),r}toMarkup(){return this.alternate?'<path d="'+rn(this.alternate)+'"/>':'<path d="'+rn($m[this.pathName])+'"/>'}}class i0{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+'="'+rn(this.attributes[r])+'"';return t+="/>",t}}function W6(e){if(e instanceof Nn)return e;throw new Error("Expected symbolNode but got "+String(e)+".")}function V6(e){if(e instanceof el)return e;throw new Error("Expected span<HtmlDomNode> but got "+String(e)+".")}var Y6=e=>e instanceof el||e instanceof Nc||e instanceof Oa,fi={"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]}},Po={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]},fm={Å:"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 G6(e,t){fi[e]=t}function Zd(e,t,r){if(!fi[t])throw new Error("Font metrics not found for font: "+t+".");var n=e.charCodeAt(0),i=fi[t][n];if(!i&&e[0]in fm&&(n=fm[e[0]].charCodeAt(0),i=fi[t][n]),!i&&r==="text"&&Cv(n)&&(i=fi[t][77]),i)return{depth:i[0],height:i[1],italic:i[2],skew:i[3],width:i[4]}}var T$={};function K6(e){var t;if(e>=5?t=0:e>=3?t=1:t=2,!T$[t]){var r=T$[t]={cssEmPerMu:Po.quad[t]/18};for(var n in Po)Po.hasOwnProperty(n)&&(r[n]=Po[n][t])}return T$[t]}var pr={math:{},text:{}};function ve(e,t,r,n,i,s){pr[e][i]={font:t,group:r,replace:n},s&&n&&(pr[e][n]=pr[e][i])}var Te="math",At="text",We="main",ot="ams",mr="accent-token",Lt="bin",pn="close",tl="inner",Bt="mathord",qr="op-token",Dn="open",go="punct",ct="rel",Hi="spacing",gt="textord";ve(Te,We,ct,"≡","\\equiv",!0);ve(Te,We,ct,"≺","\\prec",!0);ve(Te,We,ct,"≻","\\succ",!0);ve(Te,We,ct,"∼","\\sim",!0);ve(Te,We,ct,"⊥","\\perp");ve(Te,We,ct,"⪯","\\preceq",!0);ve(Te,We,ct,"⪰","\\succeq",!0);ve(Te,We,ct,"≃","\\simeq",!0);ve(Te,We,ct,"∣","\\mid",!0);ve(Te,We,ct,"≪","\\ll",!0);ve(Te,We,ct,"≫","\\gg",!0);ve(Te,We,ct,"≍","\\asymp",!0);ve(Te,We,ct,"∥","\\parallel");ve(Te,We,ct,"⋈","\\bowtie",!0);ve(Te,We,ct,"⌣","\\smile",!0);ve(Te,We,ct,"⊑","\\sqsubseteq",!0);ve(Te,We,ct,"⊒","\\sqsupseteq",!0);ve(Te,We,ct,"≐","\\doteq",!0);ve(Te,We,ct,"⌢","\\frown",!0);ve(Te,We,ct,"∋","\\ni",!0);ve(Te,We,ct,"∝","\\propto",!0);ve(Te,We,ct,"⊢","\\vdash",!0);ve(Te,We,ct,"⊣","\\dashv",!0);ve(Te,We,ct,"∋","\\owns");ve(Te,We,go,".","\\ldotp");ve(Te,We,go,"⋅","\\cdotp");ve(Te,We,go,"⋅","·");ve(At,We,gt,"⋅","·");ve(Te,We,gt,"#","\\#");ve(At,We,gt,"#","\\#");ve(Te,We,gt,"&","\\&");ve(At,We,gt,"&","\\&");ve(Te,We,gt,"ℵ","\\aleph",!0);ve(Te,We,gt,"∀","\\forall",!0);ve(Te,We,gt,"ℏ","\\hbar",!0);ve(Te,We,gt,"∃","\\exists",!0);ve(Te,We,gt,"∇","\\nabla",!0);ve(Te,We,gt,"♭","\\flat",!0);ve(Te,We,gt,"ℓ","\\ell",!0);ve(Te,We,gt,"♮","\\natural",!0);ve(Te,We,gt,"♣","\\clubsuit",!0);ve(Te,We,gt,"℘","\\wp",!0);ve(Te,We,gt,"♯","\\sharp",!0);ve(Te,We,gt,"♢","\\diamondsuit",!0);ve(Te,We,gt,"ℜ","\\Re",!0);ve(Te,We,gt,"♡","\\heartsuit",!0);ve(Te,We,gt,"ℑ","\\Im",!0);ve(Te,We,gt,"♠","\\spadesuit",!0);ve(Te,We,gt,"§","\\S",!0);ve(At,We,gt,"§","\\S");ve(Te,We,gt,"¶","\\P",!0);ve(At,We,gt,"¶","\\P");ve(Te,We,gt,"†","\\dag");ve(At,We,gt,"†","\\dag");ve(At,We,gt,"†","\\textdagger");ve(Te,We,gt,"‡","\\ddag");ve(At,We,gt,"‡","\\ddag");ve(At,We,gt,"‡","\\textdaggerdbl");ve(Te,We,pn,"⎱","\\rmoustache",!0);ve(Te,We,Dn,"⎰","\\lmoustache",!0);ve(Te,We,pn,"⟯","\\rgroup",!0);ve(Te,We,Dn,"⟮","\\lgroup",!0);ve(Te,We,Lt,"∓","\\mp",!0);ve(Te,We,Lt,"⊖","\\ominus",!0);ve(Te,We,Lt,"⊎","\\uplus",!0);ve(Te,We,Lt,"⊓","\\sqcap",!0);ve(Te,We,Lt,"∗","\\ast");ve(Te,We,Lt,"⊔","\\sqcup",!0);ve(Te,We,Lt,"◯","\\bigcirc",!0);ve(Te,We,Lt,"∙","\\bullet",!0);ve(Te,We,Lt,"‡","\\ddagger");ve(Te,We,Lt,"≀","\\wr",!0);ve(Te,We,Lt,"⨿","\\amalg");ve(Te,We,Lt,"&","\\And");ve(Te,We,ct,"⟵","\\longleftarrow",!0);ve(Te,We,ct,"⇐","\\Leftarrow",!0);ve(Te,We,ct,"⟸","\\Longleftarrow",!0);ve(Te,We,ct,"⟶","\\longrightarrow",!0);ve(Te,We,ct,"⇒","\\Rightarrow",!0);ve(Te,We,ct,"⟹","\\Longrightarrow",!0);ve(Te,We,ct,"↔","\\leftrightarrow",!0);ve(Te,We,ct,"⟷","\\longleftrightarrow",!0);ve(Te,We,ct,"⇔","\\Leftrightarrow",!0);ve(Te,We,ct,"⟺","\\Longleftrightarrow",!0);ve(Te,We,ct,"↦","\\mapsto",!0);ve(Te,We,ct,"⟼","\\longmapsto",!0);ve(Te,We,ct,"↗","\\nearrow",!0);ve(Te,We,ct,"↩","\\hookleftarrow",!0);ve(Te,We,ct,"↪","\\hookrightarrow",!0);ve(Te,We,ct,"↘","\\searrow",!0);ve(Te,We,ct,"↼","\\leftharpoonup",!0);ve(Te,We,ct,"⇀","\\rightharpoonup",!0);ve(Te,We,ct,"↙","\\swarrow",!0);ve(Te,We,ct,"↽","\\leftharpoondown",!0);ve(Te,We,ct,"⇁","\\rightharpoondown",!0);ve(Te,We,ct,"↖","\\nwarrow",!0);ve(Te,We,ct,"⇌","\\rightleftharpoons",!0);ve(Te,ot,ct,"≮","\\nless",!0);ve(Te,ot,ct,"","\\@nleqslant");ve(Te,ot,ct,"","\\@nleqq");ve(Te,ot,ct,"⪇","\\lneq",!0);ve(Te,ot,ct,"≨","\\lneqq",!0);ve(Te,ot,ct,"","\\@lvertneqq");ve(Te,ot,ct,"⋦","\\lnsim",!0);ve(Te,ot,ct,"⪉","\\lnapprox",!0);ve(Te,ot,ct,"⊀","\\nprec",!0);ve(Te,ot,ct,"⋠","\\npreceq",!0);ve(Te,ot,ct,"⋨","\\precnsim",!0);ve(Te,ot,ct,"⪹","\\precnapprox",!0);ve(Te,ot,ct,"≁","\\nsim",!0);ve(Te,ot,ct,"","\\@nshortmid");ve(Te,ot,ct,"∤","\\nmid",!0);ve(Te,ot,ct,"⊬","\\nvdash",!0);ve(Te,ot,ct,"⊭","\\nvDash",!0);ve(Te,ot,ct,"⋪","\\ntriangleleft");ve(Te,ot,ct,"⋬","\\ntrianglelefteq",!0);ve(Te,ot,ct,"⊊","\\subsetneq",!0);ve(Te,ot,ct,"","\\@varsubsetneq");ve(Te,ot,ct,"⫋","\\subsetneqq",!0);ve(Te,ot,ct,"","\\@varsubsetneqq");ve(Te,ot,ct,"≯","\\ngtr",!0);ve(Te,ot,ct,"","\\@ngeqslant");ve(Te,ot,ct,"","\\@ngeqq");ve(Te,ot,ct,"⪈","\\gneq",!0);ve(Te,ot,ct,"≩","\\gneqq",!0);ve(Te,ot,ct,"","\\@gvertneqq");ve(Te,ot,ct,"⋧","\\gnsim",!0);ve(Te,ot,ct,"⪊","\\gnapprox",!0);ve(Te,ot,ct,"⊁","\\nsucc",!0);ve(Te,ot,ct,"⋡","\\nsucceq",!0);ve(Te,ot,ct,"⋩","\\succnsim",!0);ve(Te,ot,ct,"⪺","\\succnapprox",!0);ve(Te,ot,ct,"≆","\\ncong",!0);ve(Te,ot,ct,"","\\@nshortparallel");ve(Te,ot,ct,"∦","\\nparallel",!0);ve(Te,ot,ct,"⊯","\\nVDash",!0);ve(Te,ot,ct,"⋫","\\ntriangleright");ve(Te,ot,ct,"⋭","\\ntrianglerighteq",!0);ve(Te,ot,ct,"","\\@nsupseteqq");ve(Te,ot,ct,"⊋","\\supsetneq",!0);ve(Te,ot,ct,"","\\@varsupsetneq");ve(Te,ot,ct,"⫌","\\supsetneqq",!0);ve(Te,ot,ct,"","\\@varsupsetneqq");ve(Te,ot,ct,"⊮","\\nVdash",!0);ve(Te,ot,ct,"⪵","\\precneqq",!0);ve(Te,ot,ct,"⪶","\\succneqq",!0);ve(Te,ot,ct,"","\\@nsubseteqq");ve(Te,ot,Lt,"⊴","\\unlhd");ve(Te,ot,Lt,"⊵","\\unrhd");ve(Te,ot,ct,"↚","\\nleftarrow",!0);ve(Te,ot,ct,"↛","\\nrightarrow",!0);ve(Te,ot,ct,"⇍","\\nLeftarrow",!0);ve(Te,ot,ct,"⇏","\\nRightarrow",!0);ve(Te,ot,ct,"↮","\\nleftrightarrow",!0);ve(Te,ot,ct,"⇎","\\nLeftrightarrow",!0);ve(Te,ot,ct,"△","\\vartriangle");ve(Te,ot,gt,"ℏ","\\hslash");ve(Te,ot,gt,"▽","\\triangledown");ve(Te,ot,gt,"◊","\\lozenge");ve(Te,ot,gt,"Ⓢ","\\circledS");ve(Te,ot,gt,"®","\\circledR");ve(At,ot,gt,"®","\\circledR");ve(Te,ot,gt,"∡","\\measuredangle",!0);ve(Te,ot,gt,"∄","\\nexists");ve(Te,ot,gt,"℧","\\mho");ve(Te,ot,gt,"Ⅎ","\\Finv",!0);ve(Te,ot,gt,"⅁","\\Game",!0);ve(Te,ot,gt,"‵","\\backprime");ve(Te,ot,gt,"▲","\\blacktriangle");ve(Te,ot,gt,"▼","\\blacktriangledown");ve(Te,ot,gt,"■","\\blacksquare");ve(Te,ot,gt,"⧫","\\blacklozenge");ve(Te,ot,gt,"★","\\bigstar");ve(Te,ot,gt,"∢","\\sphericalangle",!0);ve(Te,ot,gt,"∁","\\complement",!0);ve(Te,ot,gt,"ð","\\eth",!0);ve(At,We,gt,"ð","ð");ve(Te,ot,gt,"╱","\\diagup");ve(Te,ot,gt,"╲","\\diagdown");ve(Te,ot,gt,"□","\\square");ve(Te,ot,gt,"□","\\Box");ve(Te,ot,gt,"◊","\\Diamond");ve(Te,ot,gt,"¥","\\yen",!0);ve(At,ot,gt,"¥","\\yen",!0);ve(Te,ot,gt,"✓","\\checkmark",!0);ve(At,ot,gt,"✓","\\checkmark");ve(Te,ot,gt,"ℶ","\\beth",!0);ve(Te,ot,gt,"ℸ","\\daleth",!0);ve(Te,ot,gt,"ℷ","\\gimel",!0);ve(Te,ot,gt,"ϝ","\\digamma",!0);ve(Te,ot,gt,"ϰ","\\varkappa");ve(Te,ot,Dn,"┌","\\@ulcorner",!0);ve(Te,ot,pn,"┐","\\@urcorner",!0);ve(Te,ot,Dn,"└","\\@llcorner",!0);ve(Te,ot,pn,"┘","\\@lrcorner",!0);ve(Te,ot,ct,"≦","\\leqq",!0);ve(Te,ot,ct,"⩽","\\leqslant",!0);ve(Te,ot,ct,"⪕","\\eqslantless",!0);ve(Te,ot,ct,"≲","\\lesssim",!0);ve(Te,ot,ct,"⪅","\\lessapprox",!0);ve(Te,ot,ct,"≊","\\approxeq",!0);ve(Te,ot,Lt,"⋖","\\lessdot");ve(Te,ot,ct,"⋘","\\lll",!0);ve(Te,ot,ct,"≶","\\lessgtr",!0);ve(Te,ot,ct,"⋚","\\lesseqgtr",!0);ve(Te,ot,ct,"⪋","\\lesseqqgtr",!0);ve(Te,ot,ct,"≑","\\doteqdot");ve(Te,ot,ct,"≓","\\risingdotseq",!0);ve(Te,ot,ct,"≒","\\fallingdotseq",!0);ve(Te,ot,ct,"∽","\\backsim",!0);ve(Te,ot,ct,"⋍","\\backsimeq",!0);ve(Te,ot,ct,"⫅","\\subseteqq",!0);ve(Te,ot,ct,"⋐","\\Subset",!0);ve(Te,ot,ct,"⊏","\\sqsubset",!0);ve(Te,ot,ct,"≼","\\preccurlyeq",!0);ve(Te,ot,ct,"⋞","\\curlyeqprec",!0);ve(Te,ot,ct,"≾","\\precsim",!0);ve(Te,ot,ct,"⪷","\\precapprox",!0);ve(Te,ot,ct,"⊲","\\vartriangleleft");ve(Te,ot,ct,"⊴","\\trianglelefteq");ve(Te,ot,ct,"⊨","\\vDash",!0);ve(Te,ot,ct,"⊪","\\Vvdash",!0);ve(Te,ot,ct,"⌣","\\smallsmile");ve(Te,ot,ct,"⌢","\\smallfrown");ve(Te,ot,ct,"≏","\\bumpeq",!0);ve(Te,ot,ct,"≎","\\Bumpeq",!0);ve(Te,ot,ct,"≧","\\geqq",!0);ve(Te,ot,ct,"⩾","\\geqslant",!0);ve(Te,ot,ct,"⪖","\\eqslantgtr",!0);ve(Te,ot,ct,"≳","\\gtrsim",!0);ve(Te,ot,ct,"⪆","\\gtrapprox",!0);ve(Te,ot,Lt,"⋗","\\gtrdot");ve(Te,ot,ct,"⋙","\\ggg",!0);ve(Te,ot,ct,"≷","\\gtrless",!0);ve(Te,ot,ct,"⋛","\\gtreqless",!0);ve(Te,ot,ct,"⪌","\\gtreqqless",!0);ve(Te,ot,ct,"≖","\\eqcirc",!0);ve(Te,ot,ct,"≗","\\circeq",!0);ve(Te,ot,ct,"≜","\\triangleq",!0);ve(Te,ot,ct,"∼","\\thicksim");ve(Te,ot,ct,"≈","\\thickapprox");ve(Te,ot,ct,"⫆","\\supseteqq",!0);ve(Te,ot,ct,"⋑","\\Supset",!0);ve(Te,ot,ct,"⊐","\\sqsupset",!0);ve(Te,ot,ct,"≽","\\succcurlyeq",!0);ve(Te,ot,ct,"⋟","\\curlyeqsucc",!0);ve(Te,ot,ct,"≿","\\succsim",!0);ve(Te,ot,ct,"⪸","\\succapprox",!0);ve(Te,ot,ct,"⊳","\\vartriangleright");ve(Te,ot,ct,"⊵","\\trianglerighteq");ve(Te,ot,ct,"⊩","\\Vdash",!0);ve(Te,ot,ct,"∣","\\shortmid");ve(Te,ot,ct,"∥","\\shortparallel");ve(Te,ot,ct,"≬","\\between",!0);ve(Te,ot,ct,"⋔","\\pitchfork",!0);ve(Te,ot,ct,"∝","\\varpropto");ve(Te,ot,ct,"◀","\\blacktriangleleft");ve(Te,ot,ct,"∴","\\therefore",!0);ve(Te,ot,ct,"∍","\\backepsilon");ve(Te,ot,ct,"▶","\\blacktriangleright");ve(Te,ot,ct,"∵","\\because",!0);ve(Te,ot,ct,"⋘","\\llless");ve(Te,ot,ct,"⋙","\\gggtr");ve(Te,ot,Lt,"⊲","\\lhd");ve(Te,ot,Lt,"⊳","\\rhd");ve(Te,ot,ct,"≂","\\eqsim",!0);ve(Te,We,ct,"⋈","\\Join");ve(Te,ot,ct,"≑","\\Doteq",!0);ve(Te,ot,Lt,"∔","\\dotplus",!0);ve(Te,ot,Lt,"∖","\\smallsetminus");ve(Te,ot,Lt,"⋒","\\Cap",!0);ve(Te,ot,Lt,"⋓","\\Cup",!0);ve(Te,ot,Lt,"⩞","\\doublebarwedge",!0);ve(Te,ot,Lt,"⊟","\\boxminus",!0);ve(Te,ot,Lt,"⊞","\\boxplus",!0);ve(Te,ot,Lt,"⋇","\\divideontimes",!0);ve(Te,ot,Lt,"⋉","\\ltimes",!0);ve(Te,ot,Lt,"⋊","\\rtimes",!0);ve(Te,ot,Lt,"⋋","\\leftthreetimes",!0);ve(Te,ot,Lt,"⋌","\\rightthreetimes",!0);ve(Te,ot,Lt,"⋏","\\curlywedge",!0);ve(Te,ot,Lt,"⋎","\\curlyvee",!0);ve(Te,ot,Lt,"⊝","\\circleddash",!0);ve(Te,ot,Lt,"⊛","\\circledast",!0);ve(Te,ot,Lt,"⋅","\\centerdot");ve(Te,ot,Lt,"⊺","\\intercal",!0);ve(Te,ot,Lt,"⋒","\\doublecap");ve(Te,ot,Lt,"⋓","\\doublecup");ve(Te,ot,Lt,"⊠","\\boxtimes",!0);ve(Te,ot,ct,"⇢","\\dashrightarrow",!0);ve(Te,ot,ct,"⇠","\\dashleftarrow",!0);ve(Te,ot,ct,"⇇","\\leftleftarrows",!0);ve(Te,ot,ct,"⇆","\\leftrightarrows",!0);ve(Te,ot,ct,"⇚","\\Lleftarrow",!0);ve(Te,ot,ct,"↞","\\twoheadleftarrow",!0);ve(Te,ot,ct,"↢","\\leftarrowtail",!0);ve(Te,ot,ct,"↫","\\looparrowleft",!0);ve(Te,ot,ct,"⇋","\\leftrightharpoons",!0);ve(Te,ot,ct,"↶","\\curvearrowleft",!0);ve(Te,ot,ct,"↺","\\circlearrowleft",!0);ve(Te,ot,ct,"↰","\\Lsh",!0);ve(Te,ot,ct,"⇈","\\upuparrows",!0);ve(Te,ot,ct,"↿","\\upharpoonleft",!0);ve(Te,ot,ct,"⇃","\\downharpoonleft",!0);ve(Te,We,ct,"⊶","\\origof",!0);ve(Te,We,ct,"⊷","\\imageof",!0);ve(Te,ot,ct,"⊸","\\multimap",!0);ve(Te,ot,ct,"↭","\\leftrightsquigarrow",!0);ve(Te,ot,ct,"⇉","\\rightrightarrows",!0);ve(Te,ot,ct,"⇄","\\rightleftarrows",!0);ve(Te,ot,ct,"↠","\\twoheadrightarrow",!0);ve(Te,ot,ct,"↣","\\rightarrowtail",!0);ve(Te,ot,ct,"↬","\\looparrowright",!0);ve(Te,ot,ct,"↷","\\curvearrowright",!0);ve(Te,ot,ct,"↻","\\circlearrowright",!0);ve(Te,ot,ct,"↱","\\Rsh",!0);ve(Te,ot,ct,"⇊","\\downdownarrows",!0);ve(Te,ot,ct,"↾","\\upharpoonright",!0);ve(Te,ot,ct,"⇂","\\downharpoonright",!0);ve(Te,ot,ct,"⇝","\\rightsquigarrow",!0);ve(Te,ot,ct,"⇝","\\leadsto");ve(Te,ot,ct,"⇛","\\Rrightarrow",!0);ve(Te,ot,ct,"↾","\\restriction");ve(Te,We,gt,"‘","`");ve(Te,We,gt,"$","\\$");ve(At,We,gt,"$","\\$");ve(At,We,gt,"$","\\textdollar");ve(Te,We,gt,"%","\\%");ve(At,We,gt,"%","\\%");ve(Te,We,gt,"_","\\_");ve(At,We,gt,"_","\\_");ve(At,We,gt,"_","\\textunderscore");ve(Te,We,gt,"∠","\\angle",!0);ve(Te,We,gt,"∞","\\infty",!0);ve(Te,We,gt,"′","\\prime");ve(Te,We,gt,"△","\\triangle");ve(Te,We,gt,"Γ","\\Gamma",!0);ve(Te,We,gt,"Δ","\\Delta",!0);ve(Te,We,gt,"Θ","\\Theta",!0);ve(Te,We,gt,"Λ","\\Lambda",!0);ve(Te,We,gt,"Ξ","\\Xi",!0);ve(Te,We,gt,"Π","\\Pi",!0);ve(Te,We,gt,"Σ","\\Sigma",!0);ve(Te,We,gt,"Υ","\\Upsilon",!0);ve(Te,We,gt,"Φ","\\Phi",!0);ve(Te,We,gt,"Ψ","\\Psi",!0);ve(Te,We,gt,"Ω","\\Omega",!0);ve(Te,We,gt,"A","Α");ve(Te,We,gt,"B","Β");ve(Te,We,gt,"E","Ε");ve(Te,We,gt,"Z","Ζ");ve(Te,We,gt,"H","Η");ve(Te,We,gt,"I","Ι");ve(Te,We,gt,"K","Κ");ve(Te,We,gt,"M","Μ");ve(Te,We,gt,"N","Ν");ve(Te,We,gt,"O","Ο");ve(Te,We,gt,"P","Ρ");ve(Te,We,gt,"T","Τ");ve(Te,We,gt,"X","Χ");ve(Te,We,gt,"¬","\\neg",!0);ve(Te,We,gt,"¬","\\lnot");ve(Te,We,gt,"⊤","\\top");ve(Te,We,gt,"⊥","\\bot");ve(Te,We,gt,"∅","\\emptyset");ve(Te,ot,gt,"∅","\\varnothing");ve(Te,We,Bt,"α","\\alpha",!0);ve(Te,We,Bt,"β","\\beta",!0);ve(Te,We,Bt,"γ","\\gamma",!0);ve(Te,We,Bt,"δ","\\delta",!0);ve(Te,We,Bt,"ϵ","\\epsilon",!0);ve(Te,We,Bt,"ζ","\\zeta",!0);ve(Te,We,Bt,"η","\\eta",!0);ve(Te,We,Bt,"θ","\\theta",!0);ve(Te,We,Bt,"ι","\\iota",!0);ve(Te,We,Bt,"κ","\\kappa",!0);ve(Te,We,Bt,"λ","\\lambda",!0);ve(Te,We,Bt,"μ","\\mu",!0);ve(Te,We,Bt,"ν","\\nu",!0);ve(Te,We,Bt,"ξ","\\xi",!0);ve(Te,We,Bt,"ο","\\omicron",!0);ve(Te,We,Bt,"π","\\pi",!0);ve(Te,We,Bt,"ρ","\\rho",!0);ve(Te,We,Bt,"σ","\\sigma",!0);ve(Te,We,Bt,"τ","\\tau",!0);ve(Te,We,Bt,"υ","\\upsilon",!0);ve(Te,We,Bt,"ϕ","\\phi",!0);ve(Te,We,Bt,"χ","\\chi",!0);ve(Te,We,Bt,"ψ","\\psi",!0);ve(Te,We,Bt,"ω","\\omega",!0);ve(Te,We,Bt,"ε","\\varepsilon",!0);ve(Te,We,Bt,"ϑ","\\vartheta",!0);ve(Te,We,Bt,"ϖ","\\varpi",!0);ve(Te,We,Bt,"ϱ","\\varrho",!0);ve(Te,We,Bt,"ς","\\varsigma",!0);ve(Te,We,Bt,"φ","\\varphi",!0);ve(Te,We,Lt,"∗","*",!0);ve(Te,We,Lt,"+","+");ve(Te,We,Lt,"−","-",!0);ve(Te,We,Lt,"⋅","\\cdot",!0);ve(Te,We,Lt,"∘","\\circ",!0);ve(Te,We,Lt,"÷","\\div",!0);ve(Te,We,Lt,"±","\\pm",!0);ve(Te,We,Lt,"×","\\times",!0);ve(Te,We,Lt,"∩","\\cap",!0);ve(Te,We,Lt,"∪","\\cup",!0);ve(Te,We,Lt,"∖","\\setminus",!0);ve(Te,We,Lt,"∧","\\land");ve(Te,We,Lt,"∨","\\lor");ve(Te,We,Lt,"∧","\\wedge",!0);ve(Te,We,Lt,"∨","\\vee",!0);ve(Te,We,gt,"√","\\surd");ve(Te,We,Dn,"⟨","\\langle",!0);ve(Te,We,Dn,"∣","\\lvert");ve(Te,We,Dn,"∥","\\lVert");ve(Te,We,pn,"?","?");ve(Te,We,pn,"!","!");ve(Te,We,pn,"⟩","\\rangle",!0);ve(Te,We,pn,"∣","\\rvert");ve(Te,We,pn,"∥","\\rVert");ve(Te,We,ct,"=","=");ve(Te,We,ct,":",":");ve(Te,We,ct,"≈","\\approx",!0);ve(Te,We,ct,"≅","\\cong",!0);ve(Te,We,ct,"≥","\\ge");ve(Te,We,ct,"≥","\\geq",!0);ve(Te,We,ct,"←","\\gets");ve(Te,We,ct,">","\\gt",!0);ve(Te,We,ct,"∈","\\in",!0);ve(Te,We,ct,"","\\@not");ve(Te,We,ct,"⊂","\\subset",!0);ve(Te,We,ct,"⊃","\\supset",!0);ve(Te,We,ct,"⊆","\\subseteq",!0);ve(Te,We,ct,"⊇","\\supseteq",!0);ve(Te,ot,ct,"⊈","\\nsubseteq",!0);ve(Te,ot,ct,"⊉","\\nsupseteq",!0);ve(Te,We,ct,"⊨","\\models");ve(Te,We,ct,"←","\\leftarrow",!0);ve(Te,We,ct,"≤","\\le");ve(Te,We,ct,"≤","\\leq",!0);ve(Te,We,ct,"<","\\lt",!0);ve(Te,We,ct,"→","\\rightarrow",!0);ve(Te,We,ct,"→","\\to");ve(Te,ot,ct,"≱","\\ngeq",!0);ve(Te,ot,ct,"≰","\\nleq",!0);ve(Te,We,Hi," ","\\ ");ve(Te,We,Hi," ","\\space");ve(Te,We,Hi," ","\\nobreakspace");ve(At,We,Hi," ","\\ ");ve(At,We,Hi," "," ");ve(At,We,Hi," ","\\space");ve(At,We,Hi," ","\\nobreakspace");ve(Te,We,Hi,"","\\nobreak");ve(Te,We,Hi,"","\\allowbreak");ve(Te,We,go,",",",");ve(Te,We,go,";",";");ve(Te,ot,Lt,"⊼","\\barwedge",!0);ve(Te,ot,Lt,"⊻","\\veebar",!0);ve(Te,We,Lt,"⊙","\\odot",!0);ve(Te,We,Lt,"⊕","\\oplus",!0);ve(Te,We,Lt,"⊗","\\otimes",!0);ve(Te,We,gt,"∂","\\partial",!0);ve(Te,We,Lt,"⊘","\\oslash",!0);ve(Te,ot,Lt,"⊚","\\circledcirc",!0);ve(Te,ot,Lt,"⊡","\\boxdot",!0);ve(Te,We,Lt,"△","\\bigtriangleup");ve(Te,We,Lt,"▽","\\bigtriangledown");ve(Te,We,Lt,"†","\\dagger");ve(Te,We,Lt,"⋄","\\diamond");ve(Te,We,Lt,"⋆","\\star");ve(Te,We,Lt,"◃","\\triangleleft");ve(Te,We,Lt,"▹","\\triangleright");ve(Te,We,Dn,"{","\\{");ve(At,We,gt,"{","\\{");ve(At,We,gt,"{","\\textbraceleft");ve(Te,We,pn,"}","\\}");ve(At,We,gt,"}","\\}");ve(At,We,gt,"}","\\textbraceright");ve(Te,We,Dn,"{","\\lbrace");ve(Te,We,pn,"}","\\rbrace");ve(Te,We,Dn,"[","\\lbrack",!0);ve(At,We,gt,"[","\\lbrack",!0);ve(Te,We,pn,"]","\\rbrack",!0);ve(At,We,gt,"]","\\rbrack",!0);ve(Te,We,Dn,"(","\\lparen",!0);ve(Te,We,pn,")","\\rparen",!0);ve(At,We,gt,"<","\\textless",!0);ve(At,We,gt,">","\\textgreater",!0);ve(Te,We,Dn,"⌊","\\lfloor",!0);ve(Te,We,pn,"⌋","\\rfloor",!0);ve(Te,We,Dn,"⌈","\\lceil",!0);ve(Te,We,pn,"⌉","\\rceil",!0);ve(Te,We,gt,"\\","\\backslash");ve(Te,We,gt,"∣","|");ve(Te,We,gt,"∣","\\vert");ve(At,We,gt,"|","\\textbar",!0);ve(Te,We,gt,"∥","\\|");ve(Te,We,gt,"∥","\\Vert");ve(At,We,gt,"∥","\\textbardbl");ve(At,We,gt,"~","\\textasciitilde");ve(At,We,gt,"\\","\\textbackslash");ve(At,We,gt,"^","\\textasciicircum");ve(Te,We,ct,"↑","\\uparrow",!0);ve(Te,We,ct,"⇑","\\Uparrow",!0);ve(Te,We,ct,"↓","\\downarrow",!0);ve(Te,We,ct,"⇓","\\Downarrow",!0);ve(Te,We,ct,"↕","\\updownarrow",!0);ve(Te,We,ct,"⇕","\\Updownarrow",!0);ve(Te,We,qr,"∐","\\coprod");ve(Te,We,qr,"⋁","\\bigvee");ve(Te,We,qr,"⋀","\\bigwedge");ve(Te,We,qr,"⨄","\\biguplus");ve(Te,We,qr,"⋂","\\bigcap");ve(Te,We,qr,"⋃","\\bigcup");ve(Te,We,qr,"∫","\\int");ve(Te,We,qr,"∫","\\intop");ve(Te,We,qr,"∬","\\iint");ve(Te,We,qr,"∭","\\iiint");ve(Te,We,qr,"∏","\\prod");ve(Te,We,qr,"∑","\\sum");ve(Te,We,qr,"⨂","\\bigotimes");ve(Te,We,qr,"⨁","\\bigoplus");ve(Te,We,qr,"⨀","\\bigodot");ve(Te,We,qr,"∮","\\oint");ve(Te,We,qr,"∯","\\oiint");ve(Te,We,qr,"∰","\\oiiint");ve(Te,We,qr,"⨆","\\bigsqcup");ve(Te,We,qr,"∫","\\smallint");ve(At,We,tl,"…","\\textellipsis");ve(Te,We,tl,"…","\\mathellipsis");ve(At,We,tl,"…","\\ldots",!0);ve(Te,We,tl,"…","\\ldots",!0);ve(Te,We,tl,"⋯","\\@cdots",!0);ve(Te,We,tl,"⋱","\\ddots",!0);ve(Te,We,gt,"⋮","\\varvdots");ve(At,We,gt,"⋮","\\varvdots");ve(Te,We,mr,"ˊ","\\acute");ve(Te,We,mr,"ˋ","\\grave");ve(Te,We,mr,"¨","\\ddot");ve(Te,We,mr,"~","\\tilde");ve(Te,We,mr,"ˉ","\\bar");ve(Te,We,mr,"˘","\\breve");ve(Te,We,mr,"ˇ","\\check");ve(Te,We,mr,"^","\\hat");ve(Te,We,mr,"⃗","\\vec");ve(Te,We,mr,"˙","\\dot");ve(Te,We,mr,"˚","\\mathring");ve(Te,We,Bt,"","\\@imath");ve(Te,We,Bt,"","\\@jmath");ve(Te,We,gt,"ı","ı");ve(Te,We,gt,"ȷ","ȷ");ve(At,We,gt,"ı","\\i",!0);ve(At,We,gt,"ȷ","\\j",!0);ve(At,We,gt,"ß","\\ss",!0);ve(At,We,gt,"æ","\\ae",!0);ve(At,We,gt,"œ","\\oe",!0);ve(At,We,gt,"ø","\\o",!0);ve(At,We,gt,"Æ","\\AE",!0);ve(At,We,gt,"Œ","\\OE",!0);ve(At,We,gt,"Ø","\\O",!0);ve(At,We,mr,"ˊ","\\'");ve(At,We,mr,"ˋ","\\`");ve(At,We,mr,"ˆ","\\^");ve(At,We,mr,"˜","\\~");ve(At,We,mr,"ˉ","\\=");ve(At,We,mr,"˘","\\u");ve(At,We,mr,"˙","\\.");ve(At,We,mr,"¸","\\c");ve(At,We,mr,"˚","\\r");ve(At,We,mr,"ˇ","\\v");ve(At,We,mr,"¨",'\\"');ve(At,We,mr,"˝","\\H");ve(At,We,mr,"◯","\\textcircled");var Iv={"--":!0,"---":!0,"``":!0,"''":!0};ve(At,We,gt,"–","--",!0);ve(At,We,gt,"–","\\textendash");ve(At,We,gt,"—","---",!0);ve(At,We,gt,"—","\\textemdash");ve(At,We,gt,"‘","`",!0);ve(At,We,gt,"‘","\\textquoteleft");ve(At,We,gt,"’","'",!0);ve(At,We,gt,"’","\\textquoteright");ve(At,We,gt,"“","``",!0);ve(At,We,gt,"“","\\textquotedblleft");ve(At,We,gt,"”","''",!0);ve(At,We,gt,"”","\\textquotedblright");ve(Te,We,gt,"°","\\degree",!0);ve(At,We,gt,"°","\\degree");ve(At,We,gt,"°","\\textdegree",!0);ve(Te,We,gt,"£","\\pounds");ve(Te,We,gt,"£","\\mathsterling",!0);ve(At,We,gt,"£","\\pounds");ve(At,We,gt,"£","\\textsterling",!0);ve(Te,ot,gt,"✠","\\maltese");ve(At,ot,gt,"✠","\\maltese");var dm='0123456789/@."';for(var R$=0;R$<dm.length;R$++){var hm=dm.charAt(R$);ve(Te,We,gt,hm,hm)}var pm='0123456789!@*()-=+";:?/.,';for(var z$=0;z$<pm.length;z$++){var mm=pm.charAt(z$);ve(At,We,gt,mm,mm)}var Vu="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";for(var N$=0;N$<Vu.length;N$++){var Uo=Vu.charAt(N$);ve(Te,We,Bt,Uo,Uo),ve(At,We,gt,Uo,Uo)}ve(Te,ot,gt,"C","ℂ");ve(At,ot,gt,"C","ℂ");ve(Te,ot,gt,"H","ℍ");ve(At,ot,gt,"H","ℍ");ve(Te,ot,gt,"N","ℕ");ve(At,ot,gt,"N","ℕ");ve(Te,ot,gt,"P","ℙ");ve(At,ot,gt,"P","ℙ");ve(Te,ot,gt,"Q","ℚ");ve(At,ot,gt,"Q","ℚ");ve(Te,ot,gt,"R","ℝ");ve(At,ot,gt,"R","ℝ");ve(Te,ot,gt,"Z","ℤ");ve(At,ot,gt,"Z","ℤ");ve(Te,We,Bt,"h","ℎ");ve(At,We,Bt,"h","ℎ");var Wt;for(var ln=0;ln<Vu.length;ln++){var wr=Vu.charAt(ln);Wt=String.fromCharCode(55349,56320+ln),ve(Te,We,Bt,wr,Wt),ve(At,We,gt,wr,Wt),Wt=String.fromCharCode(55349,56372+ln),ve(Te,We,Bt,wr,Wt),ve(At,We,gt,wr,Wt),Wt=String.fromCharCode(55349,56424+ln),ve(Te,We,Bt,wr,Wt),ve(At,We,gt,wr,Wt),Wt=String.fromCharCode(55349,56580+ln),ve(Te,We,Bt,wr,Wt),ve(At,We,gt,wr,Wt),Wt=String.fromCharCode(55349,56684+ln),ve(Te,We,Bt,wr,Wt),ve(At,We,gt,wr,Wt),Wt=String.fromCharCode(55349,56736+ln),ve(Te,We,Bt,wr,Wt),ve(At,We,gt,wr,Wt),Wt=String.fromCharCode(55349,56788+ln),ve(Te,We,Bt,wr,Wt),ve(At,We,gt,wr,Wt),Wt=String.fromCharCode(55349,56840+ln),ve(Te,We,Bt,wr,Wt),ve(At,We,gt,wr,Wt),Wt=String.fromCharCode(55349,56944+ln),ve(Te,We,Bt,wr,Wt),ve(At,We,gt,wr,Wt),ln<26&&(Wt=String.fromCharCode(55349,56632+ln),ve(Te,We,Bt,wr,Wt),ve(At,We,gt,wr,Wt),Wt=String.fromCharCode(55349,56476+ln),ve(Te,We,Bt,wr,Wt),ve(At,We,gt,wr,Wt))}Wt="𝕜";ve(Te,We,Bt,"k",Wt);ve(At,We,gt,"k",Wt);for(var Rs=0;Rs<10;Rs++){var Gi=Rs.toString();Wt=String.fromCharCode(55349,57294+Rs),ve(Te,We,Bt,Gi,Wt),ve(At,We,gt,Gi,Wt),Wt=String.fromCharCode(55349,57314+Rs),ve(Te,We,Bt,Gi,Wt),ve(At,We,gt,Gi,Wt),Wt=String.fromCharCode(55349,57324+Rs),ve(Te,We,Bt,Gi,Wt),ve(At,We,gt,Gi,Wt),Wt=String.fromCharCode(55349,57334+Rs),ve(Te,We,Bt,Gi,Wt),ve(At,We,gt,Gi,Wt)}var s0="ÐÞþ";for(var I$=0;I$<s0.length;I$++){var Ho=s0.charAt(I$);ve(Te,We,Bt,Ho,Ho),ve(At,We,gt,Ho,Ho)}var a0={mathClass:"mathbf",textClass:"textbf",font:"Main-Bold"},_m={mathClass:"mathnormal",textClass:"textit",font:"Math-Italic"},gm={mathClass:"boldsymbol",textClass:"boldsymbol",font:"Main-BoldItalic"},X6={mathClass:"mathscr",textClass:"textscr",font:"Script-Regular"},qs={mathClass:"",textClass:"",font:""},vm={mathClass:"mathfrak",textClass:"textfrak",font:"Fraktur-Regular"},ym={mathClass:"mathbb",textClass:"textbb",font:"AMS-Regular"},bm={mathClass:"mathboldfrak",textClass:"textboldfrak",font:"Fraktur-Regular"},l0={mathClass:"mathsf",textClass:"textsf",font:"SansSerif-Regular"},o0={mathClass:"mathboldsf",textClass:"textboldsf",font:"SansSerif-Bold"},xm={mathClass:"mathitsf",textClass:"textitsf",font:"SansSerif-Italic"},u0={mathClass:"mathtt",textClass:"texttt",font:"Typewriter-Regular"},wm=[a0,a0,_m,_m,gm,gm,X6,qs,qs,qs,vm,vm,ym,ym,bm,bm,l0,l0,o0,o0,xm,xm,qs,qs,u0,u0],Q6=[a0,qs,l0,o0,u0],J6=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 wm[i]}else if(120782<=n&&n<=120831){var s=Math.floor((n-120782)/10);return Q6[s]}else{if(n===120485||n===120486)return wm[0];if(120486<n&&n<120782)return qs;throw new It("Unsupported character: "+e)}},Ic=function(t,r,n){if(pr[n][t]){var i=pr[n][t].replace;i&&(t=i)}return{value:t,metrics:Zd(t,r,n)}},un=function(t,r,n,i,s){var l=Ic(t,r,n),$=l.metrics;t=l.value;var h;if($){var d=$.italic;(n==="text"||i&&i.font==="mathit")&&(d=0),h=new Nn(t,$.height,$.depth,d,$.skew,$.width,s)}else typeof console<"u"&&console.warn("No character metrics "+("for '"+t+"' in style '"+r+"' and mode '"+n+"'")),h=new Nn(t,0,0,0,0,0,s);if(i){h.maxFontSize=i.sizeMultiplier,i.style.isTight()&&h.classes.push("mtight");var w=i.getColor();w&&(h.style.color=w)}return h},Od=function(t,r,n,i){return i===void 0&&(i=[]),n.font==="boldsymbol"&&Ic(t,"Main-Bold",r).metrics?un(t,"Main-Bold",r,n,i.concat(["mathbf"])):t==="\\"||pr[r][t].font==="main"?un(t,"Main-Regular",r,n,i):un(t,"AMS-Regular",r,n,i.concat(["amsrm"]))},Z6=function(t,r,n){return n!=="textord"&&Ic(t,"Math-BoldItalic",r).metrics?{fontName:"Math-BoldItalic",fontClass:"boldsymbol"}:{fontName:"Main-Bold",fontClass:"mathbf"}},qc=function(t,r,n){var i=t.mode,s=t.text,l=["mord"],{font:$,fontFamily:h,fontWeight:d,fontShape:w}=r,A=i==="math"||i==="text"&&!!$,N=A?$:h,U="",O="";if(s.charCodeAt(0)===55349){var j=J6(s);U=j.font,O=j[i+"Class"]}if(U)return un(s,U,i,r,l.concat(O));if(N){var q,Y;if(N==="boldsymbol"){var he=Z6(s,i,n);q=he.fontName,Y=[he.fontClass]}else A?(q=c0[$].fontName,Y=[$]):(q=Wo(h,d,w),Y=[h,d,w]);if(Ic(s,q,i).metrics)return un(s,q,i,r,l.concat(Y));if(Iv.hasOwnProperty(s)&&q.slice(0,10)==="Typewriter"){for(var ne=[],_e=0;_e<s.length;_e++)ne.push(un(s[_e],q,i,r,l.concat(Y)));return Wi(ne)}}if(n==="mathord")return un(s,"Math-Italic",i,r,l.concat(["mathnormal"]));if(n==="textord"){var Q=pr[i][s]&&pr[i][s].font;if(Q==="ams"){var be=Wo("amsrm",d,w);return un(s,be,i,r,l.concat("amsrm",d,w))}else if(Q==="main"||!Q){var oe=Wo("textrm",d,w);return un(s,oe,i,r,l.concat(d,w))}else{var Ee=Wo(Q,d,w);return un(s,Ee,i,r,l.concat(Ee,d,w))}}else throw new Error("unexpected type: "+n+" in makeOrd")},O6=(e,t)=>{if(ms(e.classes)!==ms(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},qv=e=>{for(var t=0;t<e.length-1;t++){var r=e[t],n=e[t+1];r instanceof Nn&&n instanceof Nn&&O6(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},eh=function(t){for(var r=0,n=0,i=0,s=0;s<t.children.length;s++){var l=t.children[s];l.height>r&&(r=l.height),l.depth>n&&(n=l.depth),l.maxFontSize>i&&(i=l.maxFontSize)}t.height=r,t.depth=n,t.maxFontSize=i},Ct=function(t,r,n,i){var s=new el(t,r,n,i);return eh(s),s},gs=(e,t,r,n)=>new el(e,t,r,n),Ga=function(t,r,n){var i=Ct([t],[],r);return i.height=Math.max(n||r.fontMetrics().defaultRuleThickness,r.minRuleThickness),i.style.borderBottomWidth=Mt(i.height),i.maxFontSize=1,i},e7=function(t,r,n,i){var s=new Nc(t,r,n,i);return eh(s),s},Wi=function(t){var r=new Oa(t);return eh(r),r},Ka=function(t,r){return t instanceof Oa?Ct([],[t],r):t},t7=function(t){if(t.positionType==="individualShift"){for(var r=t.children,n=[r[0]],i=-r[0].shift-r[0].elem.depth,s=i,l=1;l<r.length;l++){var $=-r[l].shift-s-r[l].elem.depth,h=$-(r[l-1].elem.height+r[l-1].elem.depth);s=s+$,n.push({type:"kern",size:h}),n.push(r[l])}return{children:n,depth:i}}var d;if(t.positionType==="top"){for(var w=t.positionData,A=0;A<t.children.length;A++){var N=t.children[A];w-=N.type==="kern"?N.size:N.elem.height+N.elem.depth}d=w}else if(t.positionType==="bottom")d=-t.positionData;else{var U=t.children[0];if(U.type!=="elem")throw new Error('First child must have type "elem".');if(t.positionType==="shift")d=-U.elem.depth-t.positionData;else if(t.positionType==="firstBaseline")d=-U.elem.depth;else throw new Error("Invalid positionType "+t.positionType+".")}return{children:t.children,depth:d}},ir=function(t,r){for(var{children:n,depth:i}=t7(t),s=0,l=0;l<n.length;l++){var $=n[l];if($.type==="elem"){var h=$.elem;s=Math.max(s,h.maxFontSize,h.height)}}s+=2;var d=Ct(["pstrut"],[]);d.style.height=Mt(s);for(var w=[],A=i,N=i,U=i,O=0;O<n.length;O++){var j=n[O];if(j.type==="kern")U+=j.size;else{var q=j.elem,Y=j.wrapperClasses||[],he=j.wrapperStyle||{},ne=Ct(Y,[d,q],void 0,he);ne.style.top=Mt(-s-U-q.depth),j.marginLeft&&(ne.style.marginLeft=j.marginLeft),j.marginRight&&(ne.style.marginRight=j.marginRight),w.push(ne),U+=q.height+q.depth}A=Math.min(A,U),N=Math.max(N,U)}var _e=Ct(["vlist"],w);_e.style.height=Mt(N);var Q;if(A<0){var be=Ct([],[]),oe=Ct(["vlist"],[be]);oe.style.height=Mt(-A);var Ee=Ct(["vlist-s"],[new Nn("")]);Q=[Ct(["vlist-r"],[_e,Ee]),Ct(["vlist-r"],[oe])]}else Q=[Ct(["vlist-r"],[_e])];var te=Ct(["vlist-t"],Q);return Q.length===2&&te.classes.push("vlist-t2"),te.height=N,te.depth=-A,te},Mv=(e,t)=>{var r=Ct(["mspace"],[],t),n=vr(e,t);return r.style.marginRight=Mt(n),r},Wo=(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},c0={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"}},Dv={vec:["vec",.471,.714],oiintSize1:["oiintSize1",.957,.499],oiintSize2:["oiintSize2",1.472,.659],oiiintSize1:["oiiintSize1",1.304,.499],oiiintSize2:["oiiintSize2",1.98,.659]},Lv=function(t,r){var[n,i,s]=Dv[t],l=new _s(n),$=new Fi([l],{width:Mt(i),height:Mt(s),style:"width:"+Mt(i),viewBox:"0 0 "+1e3*i+" "+1e3*s,preserveAspectRatio:"xMinYMin"}),h=gs(["overlay"],[$],r);return h.height=s,h.style.height=Mt(s),h.style.width=Mt(i),h},_r={number:3,unit:"mu"},zs={number:4,unit:"mu"},wi={number:5,unit:"mu"},r7={mord:{mop:_r,mbin:zs,mrel:wi,minner:_r},mop:{mord:_r,mop:_r,mrel:wi,minner:_r},mbin:{mord:zs,mop:zs,mopen:zs,minner:zs},mrel:{mord:wi,mop:wi,mopen:wi,minner:wi},mopen:{},mclose:{mop:_r,mbin:zs,mrel:wi,minner:_r},mpunct:{mord:_r,mop:_r,mrel:wi,mopen:_r,mclose:_r,mpunct:_r,minner:_r},minner:{mord:_r,mop:_r,mbin:zs,mrel:wi,mopen:_r,mpunct:_r,minner:_r}},n7={mord:{mop:_r},mop:{mord:_r,mop:_r},mbin:{},mrel:{},mopen:{},mclose:{mop:_r},mpunct:{},minner:{mop:_r}},Fv={},Yu={},Gu={};function Dt(e){for(var{type:t,names:r,props:n,handler:i,htmlBuilder:s,mathmlBuilder:l}=e,$={type:t,numArgs:n.numArgs,argTypes:n.argTypes,allowedInArgument:!!n.allowedInArgument,allowedInText:!!n.allowedInText,allowedInMath:n.allowedInMath===void 0?!0:n.allowedInMath,numOptionalArgs:n.numOptionalArgs||0,infix:!!n.infix,primitive:!!n.primitive,handler:i},h=0;h<r.length;++h)Fv[r[h]]=$;t&&(s&&(Yu[t]=s),l&&(Gu[t]=l))}function ra(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 Ku=function(t){return t.type==="ordgroup"&&t.body.length===1?t.body[0]:t},zr=function(t){return t.type==="ordgroup"?t.body:[t]},i7=new Set(["leftmost","mbin","mopen","mrel","mop","mpunct"]),s7=new Set(["rightmost","mrel","mclose","mpunct"]),a7={display:Gt.DISPLAY,text:Gt.TEXT,script:Gt.SCRIPT,scriptscript:Gt.SCRIPTSCRIPT},l7={mord:"mord",mop:"mop",mbin:"mbin",mrel:"mrel",mopen:"mopen",mclose:"mclose",mpunct:"mpunct",minner:"minner"},Br=function(t,r,n,i){i===void 0&&(i=[null,null]);for(var s=[],l=0;l<t.length;l++){var $=sr(t[l],r);if($ instanceof Oa){var h=$.children;s.push(...h)}else s.push($)}if(qv(s),!n)return s;var d=r;if(t.length===1){var w=t[0];w.type==="sizing"?d=r.havingSize(w.size):w.type==="styling"&&(d=r.havingStyle(a7[w.style]))}var A=Ct([i[0]||"leftmost"],[],r),N=Ct([i[1]||"rightmost"],[],r),U=n==="root";return $0(s,(O,j)=>{var q=j.classes[0],Y=O.classes[0];q==="mbin"&&s7.has(Y)?j.classes[0]="mord":Y==="mbin"&&i7.has(q)&&(O.classes[0]="mord")},{node:A},N,U),$0(s,(O,j)=>{var q,Y,he=d0(j),ne=d0(O),_e=he&&ne?O.hasClass("mtight")?(q=n7[he])==null?void 0:q[ne]:(Y=r7[he])==null?void 0:Y[ne]:null;if(_e)return Mv(_e,d)},{node:A},N,U),s},$0=function(t,r,n,i,s){i&&t.push(i);for(var l=0;l<t.length;l++){var $=t[l],h=jv($);if(h){$0(h.children,r,n,null,s);continue}var d=!$.hasClass("mspace");if(d){var w=r($,n.node);w&&(n.insertAfter?n.insertAfter(w):(t.unshift(w),l++))}d?n.node=$:s&&$.hasClass("newline")&&(n.node=Ct(["leftmost"])),n.insertAfter=(A=>N=>{t.splice(A+1,0,N),l++})(l)}i&&t.pop()},jv=function(t){return t instanceof Oa||t instanceof Nc||t instanceof el&&t.hasClass("enclosing")?t:null},f0=function(t,r){var n=jv(t);if(n){var i=n.children;if(i.length){if(r==="right")return f0(i[i.length-1],"right");if(r==="left")return f0(i[0],"left")}}return t},d0=function(t,r){if(!t)return null;r&&(t=f0(t,r));var n=t.classes[0];return l7[n]||null},so=function(t,r){var n=["nulldelimiter"].concat(t.baseSizingClasses());return Ct(r.concat(n))},sr=function(t,r,n){if(!t)return Ct();if(Yu[t.type]){var i=Yu[t.type](t,r);if(n&&r.size!==n.size){i=Ct(r.sizingClasses(n),[i],r);var s=r.sizeMultiplier/n.sizeMultiplier;i.height*=s,i.depth*=s}return i}else throw new It("Got group of unknown type: '"+t.type+"'")};function Vo(e,t){var r=Ct(["base"],e,t),n=Ct(["strut"]);return n.style.height=Mt(r.height+r.depth),r.depth&&(n.style.verticalAlign=Mt(-r.depth)),r.children.unshift(n),r}function h0(e,t){var r=null;e.length===1&&e[0].type==="tag"&&(r=e[0].tag,e=e[0].body);var n=Br(e,t,"root"),i;n.length===2&&n[1].hasClass("tag")&&(i=n.pop());for(var s=[],l=[],$=0;$<n.length;$++)if(l.push(n[$]),n[$].hasClass("mbin")||n[$].hasClass("mrel")||n[$].hasClass("allowbreak")){for(var h=!1;$<n.length-1&&n[$+1].hasClass("mspace")&&!n[$+1].hasClass("newline");)$++,l.push(n[$]),n[$].hasClass("nobreak")&&(h=!0);h||(s.push(Vo(l,t)),l=[])}else n[$].hasClass("newline")&&(l.pop(),l.length>0&&(s.push(Vo(l,t)),l=[]),s.push(n[$]));l.length>0&&s.push(Vo(l,t));var d;r?(d=Vo(Br(r,t,!0),t),d.classes=["tag"],s.push(d)):i&&s.push(i);var w=Ct(["katex-html"],s);if(w.setAttribute("aria-hidden","true"),d){var A=d.children[0];A.style.height=Mt(w.height+w.depth),w.depth&&(A.style.verticalAlign=Mt(-w.depth))}return w}function Bv(e){return new Oa(e)}class qt{constructor(t,r,n){this.type=void 0,this.attributes=void 0,this.children=void 0,this.classes=void 0,this.type=t,this.attributes={},this.children=r||[],this.classes=n||[]}setAttribute(t,r){this.attributes[t]=r}getAttribute(t){return this.attributes[t]}toNode(){var t=document.createElementNS("http://www.w3.org/1998/Math/MathML",this.type);for(var r in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,r)&&t.setAttribute(r,this.attributes[r]);this.classes.length>0&&(t.className=ms(this.classes));for(var n=0;n<this.children.length;n++)if(this.children[n]instanceof Nr&&this.children[n+1]instanceof Nr){for(var i=this.children[n].toText()+this.children[++n].toText();this.children[n+1]instanceof Nr;)i+=this.children[++n].toText();t.appendChild(new Nr(i).toNode())}else t.appendChild(this.children[n].toNode());return t}toMarkup(){var t="<"+this.type;for(var r in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,r)&&(t+=" "+r+'="',t+=rn(this.attributes[r]),t+='"');this.classes.length>0&&(t+=' class ="'+rn(ms(this.classes))+'"'),t+=">";for(var n=0;n<this.children.length;n++)t+=this.children[n].toMarkup();return t+="</"+this.type+">",t}toText(){return this.children.map(t=>t.toText()).join("")}}class Nr{constructor(t){this.text=void 0,this.text=t}toNode(){return document.createTextNode(this.text)}toMarkup(){return rn(this.toText())}toText(){return this.text}}class Pv{constructor(t){this.width=void 0,this.character=void 0,this.width=t,t>=.05555&&t<=.05556?this.character=" ":t>=.1666&&t<=.1667?this.character=" ":t>=.2222&&t<=.2223?this.character=" ":t>=.2777&&t<=.2778?this.character=" ":t>=-.05556&&t<=-.05555?this.character=" ":t>=-.1667&&t<=-.1666?this.character=" ":t>=-.2223&&t<=-.2222?this.character=" ":t>=-.2778&&t<=-.2777?this.character=" ":this.character=null}toNode(){if(this.character)return document.createTextNode(this.character);var t=document.createElementNS("http://www.w3.org/1998/Math/MathML","mspace");return t.setAttribute("width",Mt(this.width)),t}toMarkup(){return this.character?"<mtext>"+this.character+"</mtext>":'<mspace width="'+Mt(this.width)+'"/>'}toText(){return this.character?this.character:" "}}var o7=new Set(["\\imath","\\jmath"]),u7=new Set(["mrow","mtable"]),Kn=function(t,r,n){return pr[r][t]&&pr[r][t].replace&&t.charCodeAt(0)!==55349&&!(Iv.hasOwnProperty(t)&&n&&(n.fontFamily&&n.fontFamily.slice(4,6)==="tt"||n.font&&n.font.slice(4,6)==="tt"))&&(t=pr[r][t].replace),new Nr(t)},th=function(t){return t.length===1?t[0]:new qt("mrow",t)},c7={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"},rh=(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=c7[r];if(i)return typeof i=="function"?i(e):i;var s=e.text;if(o7.has(s))return null;if(pr[n][s]){var l=pr[n][s].replace;l&&(s=l)}var $=c0[r].fontName;return Zd(s,$,n)?c0[r].variant:null};function q$(e){if(!e)return!1;if(e.type==="mi"&&e.children.length===1){var t=e.children[0];return t instanceof Nr&&t.text==="."}else if(e.type==="mo"&&e.children.length===1&&e.getAttribute("separator")==="true"&&e.getAttribute("lspace")==="0em"&&e.getAttribute("rspace")==="0em"){var r=e.children[0];return r instanceof Nr&&r.text===","}else return!1}var Ln=function(t,r,n){if(t.length===1){var i=or(t[0],r);return n&&i instanceof qt&&i.type==="mo"&&(i.setAttribute("lspace","0em"),i.setAttribute("rspace","0em")),[i]}for(var s=[],l,$=0;$<t.length;$++){var h=or(t[$],r);if(h instanceof qt&&l instanceof qt){if(h.type==="mtext"&&l.type==="mtext"&&h.getAttribute("mathvariant")===l.getAttribute("mathvariant")){l.children.push(...h.children);continue}else if(h.type==="mn"&&l.type==="mn"){l.children.push(...h.children);continue}else if(q$(h)&&l.type==="mn"){l.children.push(...h.children);continue}else if(h.type==="mn"&&q$(l))h.children=[...l.children,...h.children],s.pop();else if((h.type==="msup"||h.type==="msub")&&h.children.length>=1&&(l.type==="mn"||q$(l))){var d=h.children[0];d instanceof qt&&d.type==="mn"&&(d.children=[...l.children,...d.children],s.pop())}else if(l.type==="mi"&&l.children.length===1){var w=l.children[0];if(w instanceof Nr&&w.text==="̸"&&(h.type==="mo"||h.type==="mi"||h.type==="mn")){var A=h.children[0];A instanceof Nr&&A.text.length>0&&(A.text=A.text.slice(0,1)+"̸"+A.text.slice(1),s.pop())}}}s.push(h),l=h}return s},vs=function(t,r,n){return th(Ln(t,r,n))},or=function(t,r){if(!t)return new qt("mrow");if(Gu[t.type])return Gu[t.type](t,r);throw new It("Got group of unknown type: '"+t.type+"'")};function km(e,t,r,n,i){var s=Ln(e,r),l;s.length===1&&s[0]instanceof qt&&u7.has(s[0].type)?l=s[0]:l=new qt("mrow",s);var $=new qt("annotation",[new Nr(t)]);$.setAttribute("encoding","application/x-tex");var h=new qt("semantics",[l,$]),d=new qt("math",[h]);d.setAttribute("xmlns","http://www.w3.org/1998/Math/MathML"),n&&d.setAttribute("display","block");var w=i?"katex":"katex-mathml";return Ct([w],[d])}var $7=[[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]],Sm=[.5,.6,.7,.8,.9,1,1.2,1.44,1.728,2.074,2.488],Em=function(t,r){return r.size<2?t:$7[t-1][r.size-1]};class Ci{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||Ci.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=Sm[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 Ci(r)}havingStyle(t){return this.style===t?this:this.extend({style:t,size:Em(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:Sm[t-1]})}havingBaseStyle(t){t=t||this.style.text();var r=Em(Ci.BASESIZE,t);return this.size===r&&this.textSize===Ci.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!==Ci.BASESIZE?["sizing","reset-size"+this.size,"size"+Ci.BASESIZE]:[]}fontMetrics(){return this._fontMetrics||(this._fontMetrics=K6(this.size)),this._fontMetrics}getColor(){return this.phantom?"transparent":this.color}}Ci.BASESIZE=6;var Uv=function(t){return new Ci({style:t.displayMode?Gt.DISPLAY:Gt.TEXT,maxSize:t.maxSize,minRuleThickness:t.minRuleThickness})},Hv=function(t,r){if(r.displayMode){var n=["katex-display"];r.leqno&&n.push("leqno"),r.fleqn&&n.push("fleqn"),t=Ct(n,[t])}return t},f7=function(t,r,n){var i=Uv(n),s;if(n.output==="mathml")return km(t,r,i,n.displayMode,!0);if(n.output==="html"){var l=h0(t,i);s=Ct(["katex"],[l])}else{var $=km(t,r,i,n.displayMode,!1),h=h0(t,i);s=Ct(["katex"],[$,h])}return Hv(s,n)},d7=function(t,r,n){var i=Uv(n),s=h0(t,i),l=Ct(["katex"],[s]);return Hv(l,n)},h7={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":"="},Mc=function(t){var r=new qt("mo",[new Nr(h7[t.replace(/^\\/,"")])]);return r.setAttribute("stretchy","true"),r},p7={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]},m7=new Set(["widehat","widecheck","widetilde","utilde"]),Dc=function(t,r){function n(){var $=4e5,h=t.label.slice(1);if(m7.has(h)&&"base"in t){var d=t.base.type==="ordgroup"?t.base.body.length:1,w,A,N;if(d>5)h==="widehat"||h==="widecheck"?(w=420,$=2364,N=.42,A=h+"4"):(w=312,$=2340,N=.34,A="tilde4");else{var U=[1,1,2,2,3,3][d];h==="widehat"||h==="widecheck"?($=[0,1062,2364,2364,2364][U],w=[0,239,300,360,420][U],N=[0,.24,.3,.3,.36,.42][U],A=h+U):($=[0,600,1033,2339,2340][U],w=[0,260,286,306,312][U],N=[0,.26,.286,.3,.306,.34][U],A="tilde"+U)}var O=new _s(A),j=new Fi([O],{width:"100%",height:Mt(N),viewBox:"0 0 "+$+" "+w,preserveAspectRatio:"none"});return{span:gs([],[j],r),minWidth:0,height:N}}else{var q=[],Y=p7[h];if(!Y)throw new Error('No SVG data for "'+h+'".');var[he,ne,_e]=Y,Q=_e/1e3,be=he.length,oe,Ee;if(be===1){if(Y.length!==4)throw new Error('Expected 4-tuple for single-path SVG data "'+h+'".');oe=["hide-tail"],Ee=[Y[3]]}else if(be===2)oe=["halfarrow-left","halfarrow-right"],Ee=["xMinYMin","xMaxYMin"];else if(be===3)oe=["brace-left","brace-center","brace-right"],Ee=["xMinYMin","xMidYMin","xMaxYMin"];else throw new Error(`Correct katexImagesData or update code here to support
|
|
334
|
-
`+be+" children.");for(var te=0;te<be;te++){var Ce=new _s(he[te]),de=new Fi([Ce],{width:"400em",height:Mt(Q),viewBox:"0 0 "+$+" "+_e,preserveAspectRatio:Ee[te]+" slice"}),k=gs([oe[te]],[de],r);if(be===1)return{span:k,minWidth:ne,height:Q};k.style.height=Mt(Q),q.push(k)}return{span:Ct(["stretchy"],q,r),minWidth:ne,height:Q}}}var{span:i,minWidth:s,height:l}=n();return i.height=l,i.style.height=Mt(l),s>0&&(i.style.minWidth=Mt(s)),i},_7=function(t,r,n,i,s){var l,$=t.height+t.depth+n+i;if(/fbox|color|angl/.test(r)){if(l=Ct(["stretchy",r],[],s),r==="fbox"){var h=s.color&&s.getColor();h&&(l.style.borderColor=h)}}else{var d=[];/^[bx]cancel$/.test(r)&&d.push(new i0({x1:"0",y1:"0",x2:"100%",y2:"100%","stroke-width":"0.046em"})),/^x?cancel$/.test(r)&&d.push(new i0({x1:"0",y1:"100%",x2:"100%",y2:"0","stroke-width":"0.046em"}));var w=new Fi(d,{width:"100%",height:Mt($)});l=gs([],[w],s)}return l.height=$,l.style.height=Mt($),l},g7={bin:1,close:1,inner:1,open:1,punct:1,rel:1},v7={"accent-token":1,mathord:1,"op-token":1,spacing:1,textord:1};function y7(e){return e in g7}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 Lc(e){var t=Fc(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 Fc(e){return e&&(e.type==="atom"||v7.hasOwnProperty(e.type))?e:null}var Wv=e=>{if(e instanceof Nn)return e;if(Y6(e)&&e.children.length===1)return Wv(e.children[0])},nh=(e,t)=>{var r,n,i;e&&e.type==="supsub"?(n=Qt(e.base,"accent"),r=n.base,e.base=r,i=V6(sr(e,t)),e.base=n):(n=Qt(e,"accent"),r=n.base);var s=sr(r,t.havingCrampedStyle()),l=n.isShifty&&Ui(r),$=0;if(l){var h,d;$=(h=(d=Wv(s))==null?void 0:d.skew)!=null?h:0}var w=n.label==="\\c",A=w?s.height+s.depth:Math.min(s.height,t.fontMetrics().xHeight),N;if(n.isStretchy)N=Dc(n,t),N=ir({positionType:"firstBaseline",children:[{type:"elem",elem:s},{type:"elem",elem:N,wrapperClasses:["svg-align"],wrapperStyle:$>0?{width:"calc(100% - "+Mt(2*$)+")",marginLeft:Mt(2*$)}:void 0}]});else{var U,O;n.label==="\\vec"?(U=Lv("vec",t),O=Dv.vec[1]):(U=qc({mode:n.mode,text:n.label},t,"textord"),U=W6(U),U.italic=0,O=U.width,w&&(A+=U.depth)),N=Ct(["accent-body"],[U]);var j=n.label==="\\textcircled";j&&(N.classes.push("accent-full"),A=s.height);var q=$;j||(q-=O/2),N.style.left=Mt(q),n.label==="\\textcircled"&&(N.style.top=".2em"),N=ir({positionType:"firstBaseline",children:[{type:"elem",elem:s},{type:"kern",size:-A},{type:"elem",elem:N}]})}var Y=Ct(["mord","accent"],[N],t);return i?(i.children[0]=Y,i.height=Math.max(Y.height,i.height),i.classes[0]="mord",i):Y},Vv=(e,t)=>{var r=e.isStretchy?Mc(e.label):new qt("mo",[Kn(e.label,e.mode)]),n=new qt("mover",[or(e.base,t),r]);return n.setAttribute("accent","true"),n},b7=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=Ku(t[0]),n=!b7.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:nh,mathmlBuilder:Vv});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:nh,mathmlBuilder:Vv});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=Dc(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 Ct(["mord","accentunder"],[s],t)},mathmlBuilder:(e,t)=>{var r=Mc(e.label),n=new qt("munder",[or(e.base,t),r]);return n.setAttribute("accentunder","true"),n}});var Yo=e=>{var t=new qt("mpadded",e?[e]:[]);return t.setAttribute("width","+0.6em"),t.setAttribute("lspace","0.3em"),t};Dt({type:"xArrow",names:["\\xleftarrow","\\xrightarrow","\\xLeftarrow","\\xRightarrow","\\xleftrightarrow","\\xLeftrightarrow","\\xhookleftarrow","\\xhookrightarrow","\\xmapsto","\\xrightharpoondown","\\xrightharpoonup","\\xleftharpoondown","\\xleftharpoonup","\\xrightleftharpoons","\\xleftrightharpoons","\\xlongequal","\\xtwoheadrightarrow","\\xtwoheadleftarrow","\\xtofrom","\\xrightleftarrows","\\xrightequilibrium","\\xleftequilibrium","\\\\cdrightarrow","\\\\cdleftarrow","\\\\cdlongequal"],props:{numArgs:1,numOptionalArgs:1},handler(e,t,r){var{parser:n,funcName:i}=e;return{type:"xArrow",mode:n.mode,label:i,body:t[0],below:r[0]}},htmlBuilder(e,t){var r=t.style,n=t.havingStyle(r.sup()),i=Ka(sr(e.body,n,t),t),s=e.label.slice(0,2)==="\\x"?"x":"cd";i.classes.push(s+"-arrow-pad");var l;e.below&&(n=t.havingStyle(r.sub()),l=Ka(sr(e.below,n,t),t),l.classes.push(s+"-arrow-pad"));var $=Dc(e,t),h=-t.fontMetrics().axisHeight+.5*$.height,d=-t.fontMetrics().axisHeight-.5*$.height-.111;(i.depth>.25||e.label==="\\xleftequilibrium")&&(d-=i.depth);var w;if(l){var A=-t.fontMetrics().axisHeight+l.height+.5*$.height+.111;w=ir({positionType:"individualShift",children:[{type:"elem",elem:i,shift:d},{type:"elem",elem:$,shift:h,wrapperClasses:["svg-align"]},{type:"elem",elem:l,shift:A}]})}else w=ir({positionType:"individualShift",children:[{type:"elem",elem:i,shift:d},{type:"elem",elem:$,shift:h,wrapperClasses:["svg-align"]}]});return Ct(["mrel","x-arrow"],[w],t)},mathmlBuilder(e,t){var r=Mc(e.label);r.setAttribute("minsize",e.label.charAt(0)==="x"?"1.75em":"3.0em");var n;if(e.body){var i=Yo(or(e.body,t));if(e.below){var s=Yo(or(e.below,t));n=new qt("munderover",[r,s,i])}else n=new qt("mover",[r,i])}else if(e.below){var l=Yo(or(e.below,t));n=new qt("munder",[r,l])}else n=Yo(),n=new qt("mover",[r,n]);return n}});function Yv(e,t){var r=Br(e.body,t,!0);return Ct([e.mclass],r,t)}function Gv(e,t){var r,n=Ln(e.body,t);return e.mclass==="minner"?r=new qt("mpadded",n):e.mclass==="mord"?e.isCharacterBox?(r=n[0],r.type="mi"):r=new qt("mi",n):(e.isCharacterBox?(r=n[0],r.type="mo"):r=new qt("mo",n),e.mclass==="mbin"?(r.attributes.lspace="0.22em",r.attributes.rspace="0.22em"):e.mclass==="mpunct"?(r.attributes.lspace="0em",r.attributes.rspace="0.17em"):e.mclass==="mopen"||e.mclass==="mclose"?(r.attributes.lspace="0em",r.attributes.rspace="0em"):e.mclass==="minner"&&(r.attributes.lspace="0.0556em",r.attributes.width="+0.1111em")),r}Dt({type:"mclass",names:["\\mathord","\\mathbin","\\mathrel","\\mathopen","\\mathclose","\\mathpunct","\\mathinner"],props:{numArgs:1,primitive:!0},handler(e,t){var{parser:r,funcName:n}=e,i=t[0];return{type:"mclass",mode:r.mode,mclass:"m"+n.slice(5),body:zr(i),isCharacterBox:Ui(i)}},htmlBuilder:Yv,mathmlBuilder:Gv});var jc=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:jc(t[0]),body:zr(t[1]),isCharacterBox:Ui(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],l;n!=="\\stackrel"?l=jc(i):l="mrel";var $={type:"op",mode:i.mode,limits:!0,alwaysHandleSupSub:!0,parentIsSupSub:!1,symbol:!1,suppressBaseShift:n!=="\\stackrel",body:zr(i)},h={type:"supsub",mode:s.mode,base:$,sup:n==="\\underset"?null:s,sub:n==="\\underset"?s:null};return{type:"mclass",mode:r.mode,mclass:l,body:[h],isCharacterBox:Ui(h)}},htmlBuilder:Yv,mathmlBuilder:Gv});Dt({type:"pmb",names:["\\pmb"],props:{numArgs:1,allowedInText:!0},handler(e,t){var{parser:r}=e;return{type:"pmb",mode:r.mode,mclass:jc(t[0]),body:zr(t[0])}},htmlBuilder(e,t){var r=Br(e.body,t,!0),n=Ct([e.mclass],r,t);return n.style.textShadow="0.02em 0.01em 0.04px",n},mathmlBuilder(e,t){var r=Ln(e.body,t),n=new qt("mstyle",r);return n.setAttribute("style","text-shadow: 0.02em 0.01em 0.04px"),n}});var x7={">":"\\\\cdrightarrow","<":"\\\\cdleftarrow","=":"\\\\cdlongequal",A:"\\uparrow",V:"\\downarrow","|":"\\Vert",".":"no arrow"},Am=()=>({type:"styling",body:[],mode:"math",style:"display",resetFont:!0}),Cm=e=>e.type==="textord"&&e.text==="@",w7=(e,t)=>(e.type==="mathord"||e.type==="atom")&&e.text===t;function k7(e,t,r){var n=x7[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"},l=r.callFunction("\\Big",[s],[]),$=r.callFunction("\\\\cdright",[t[1]],[]),h={type:"ordgroup",mode:"math",body:[i,l,$]};return r.callFunction("\\\\cdparent",[h],[])}case"\\\\cdlongequal":return r.callFunction("\\\\cdlongequal",[],[]);case"\\Vert":{var d={type:"textord",text:"\\Vert",mode:"math"};return r.callFunction("\\Big",[d],[])}default:return{type:"textord",text:" ",mode:"math"}}}function S7(e){var t=[];for(e.gullet.beginGroup(),e.gullet.macros.set("\\cr","\\\\\\relax"),e.gullet.beginGroup();;){t.push(e.parseExpression(!1,"\\\\")),e.gullet.endGroup(),e.gullet.beginGroup();var r=e.fetch().text;if(r==="&"||r==="\\\\")e.consume();else if(r==="\\end"){t[t.length-1].length===0&&t.pop();break}else throw new It("Expected \\\\ or \\cr or \\end",e.nextToken)}for(var n=[],i=[n],s=0;s<t.length;s++){for(var l=t[s],$=Am(),h=0;h<l.length;h++)if(!Cm(l[h]))$.body.push(l[h]);else{n.push($),h+=1;var d=Lc(l[h]).text,w=new Array(2);if(w[0]={type:"ordgroup",mode:"math",body:[]},w[1]={type:"ordgroup",mode:"math",body:[]},!"=|.".includes(d))if("<>AV".includes(d))for(var A=0;A<2;A++){for(var N=!0,U=h+1;U<l.length;U++){if(w7(l[U],d)){N=!1,h=U;break}if(Cm(l[U]))throw new It("Missing a "+d+" character to complete a CD arrow.",l[U]);w[A].body.push(l[U])}if(N)throw new It("Missing a "+d+" character to complete a CD arrow.",l[h])}else throw new It('Expected one of "<>AV=|." after @',l[h]);var O=k7(d,w,e),j={type:"styling",body:[O],mode:"math",style:"display",resetFont:!0};n.push(j),$=Am()}s%2===0?n.push($):n.shift(),n=[],i.push(n)}e.gullet.endGroup(),e.gullet.endGroup();var q=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:q,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=Ka(sr(e.label,r,t),t);return n.classes.push("cd-label-"+e.side),n.style.bottom=Mt(.8-n.depth),n.height=0,n.depth=0,n},mathmlBuilder(e,t){var r=new qt("mrow",[or(e.label,t)]);return r=new qt("mpadded",[r]),r.setAttribute("width","0"),e.side==="left"&&r.setAttribute("lspace","-1width"),r.setAttribute("voffset","0.7em"),r=new qt("mstyle",[r]),r.setAttribute("displaystyle","false"),r.setAttribute("scriptlevel","1"),r}});Dt({type:"cdlabelparent",names:["\\\\cdparent"],props:{numArgs:1},handler(e,t){var{parser:r}=e;return{type:"cdlabelparent",mode:r.mode,fragment:t[0]}},htmlBuilder(e,t){var r=Ka(sr(e.fragment,t),t);return r.classes.push("cd-vert-arrow"),r},mathmlBuilder(e,t){return new qt("mrow",[or(e.fragment,t)])}});Dt({type:"textord",names:["\\@char"],props:{numArgs:1,allowedInText:!0},handler(e,t){for(var{parser:r}=e,n=Qt(t[0],"ordgroup"),i=n.body,s="",l=0;l<i.length;l++){var $=Qt(i[l],"textord");s+=$.text}var h=parseInt(s),d;if(isNaN(h))throw new It("\\@char has non-numeric argument "+s);if(h<0||h>=1114111)throw new It("\\@char with invalid code point "+s);return h<=65535?d=String.fromCharCode(h):(h-=65536,d=String.fromCharCode((h>>10)+55296,(h&1023)+56320)),{type:"textord",mode:r.mode,text:d}}});var Kv=(e,t)=>{var r=Br(e.body,t.withColor(e.color),!1);return Wi(r)},Xv=(e,t)=>{var r=Ln(e.body,t.withColor(e.color)),n=new qt("mstyle",r);return n.setAttribute("mathcolor",e.color),n};Dt({type:"color",names:["\\textcolor"],props:{numArgs:2,allowedInText:!0,argTypes:["color","original"]},handler(e,t){var{parser:r}=e,n=Qt(t[0],"color-token").color,i=t[1];return{type:"color",mode:r.mode,color:n,body:zr(i)}},htmlBuilder:Kv,mathmlBuilder:Xv});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:Kv,mathmlBuilder:Xv});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=Ct(["mspace"],[],t);return e.newLine&&(r.classes.push("newline"),e.size&&(r.style.marginTop=Mt(vr(e.size,t)))),r},mathmlBuilder(e,t){var r=new qt("mspace");return e.newLine&&(r.setAttribute("linebreak","newline"),e.size&&r.setAttribute("height",Mt(vr(e.size,t)))),r}});var p0={"\\global":"\\global","\\long":"\\\\globallong","\\\\globallong":"\\\\globallong","\\def":"\\gdef","\\gdef":"\\gdef","\\edef":"\\xdef","\\xdef":"\\xdef","\\let":"\\\\globallet","\\futurelet":"\\\\globalfuture"},Qv=e=>{var t=e.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(t))throw new It("Expected a control sequence",e);return t},E7=e=>{var t=e.gullet.popToken();return t.text==="="&&(t=e.gullet.popToken(),t.text===" "&&(t=e.gullet.popToken())),t},Jv=(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(p0[n.text])return(r==="\\global"||r==="\\\\globallong")&&(n.text=p0[n.text]),Qt(t.parseFunction(),"internal");throw new It("Invalid token after macro prefix",n)}});Dt({type:"internal",names:["\\def","\\gdef","\\edef","\\xdef"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e){var{parser:t,funcName:r}=e,n=t.gullet.popToken(),i=n.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(i))throw new It("Expected a control sequence",n);for(var s=0,l,$=[[]];t.gullet.future().text!=="{";)if(n=t.gullet.popToken(),n.text==="#"){if(t.gullet.future().text==="{"){l=t.gullet.future(),$[s].push("{");break}if(n=t.gullet.popToken(),!/^[1-9]$/.test(n.text))throw new It('Invalid argument number "'+n.text+'"');if(parseInt(n.text)!==s+1)throw new It('Argument number "'+n.text+'" out of order');s++,$.push([])}else{if(n.text==="EOF")throw new It("Expected a macro definition");$[s].push(n.text)}var{tokens:h}=t.gullet.consumeArg();return l&&h.unshift(l),(r==="\\edef"||r==="\\xdef")&&(h=t.gullet.expandTokens(h),h.reverse()),t.gullet.macros.set(i,{tokens:h,numArgs:s,delimiters:$},r===p0[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=Qv(t.gullet.popToken());t.gullet.consumeSpaces();var i=E7(t);return Jv(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=Qv(t.gullet.popToken()),i=t.gullet.popToken(),s=t.gullet.popToken();return Jv(t,n,s,r==="\\\\globalfuture"),t.gullet.pushToken(s),t.gullet.pushToken(i),{type:"internal",mode:t.mode}}});var yl=function(t,r,n){var i=pr.math[t]&&pr.math[t].replace,s=Zd(i||t,r,n);if(!s)throw new Error("Unsupported symbol "+t+" and font size "+r+".");return s},ih=function(t,r,n,i){var s=n.havingBaseStyle(r),l=Ct(i.concat(s.sizingClasses(n)),[t],n),$=s.sizeMultiplier/n.sizeMultiplier;return l.height*=$,l.depth*=$,l.maxFontSize=s.sizeMultiplier,l},Zv=function(t,r,n){var i=r.havingBaseStyle(n),s=(1-r.sizeMultiplier/i.sizeMultiplier)*r.fontMetrics().axisHeight;t.classes.push("delimcenter"),t.style.top=Mt(s),t.height-=s,t.depth+=s},A7=function(t,r,n,i,s,l){var $=un(t,"Main-Regular",s,i),h=ih($,r,i,l);return Zv(h,i,r),h},C7=function(t,r,n,i){return un(t,"Size"+r+"-Regular",n,i)},Ov=function(t,r,n,i,s,l){var $=C7(t,r,s,i),h=ih(Ct(["delimsizing","size"+r],[$],i),Gt.TEXT,i,l);return n&&Zv(h,i,Gt.TEXT),h},M$=function(t,r,n){var i;r==="Size1-Regular"?i="delim-size1":i="delim-size4";var s=Ct(["delimsizinginner",i],[Ct([],[un(t,r,n)])]);return{type:"elem",elem:s}},D$=function(t,r,n){var i=fi["Size4-Regular"][t.charCodeAt(0)]?fi["Size4-Regular"][t.charCodeAt(0)][4]:fi["Size1-Regular"][t.charCodeAt(0)][4],s=new _s("inner",L6(t,Math.round(1e3*r))),l=new Fi([s],{width:Mt(i),height:Mt(r),style:"width:"+Mt(i),viewBox:"0 0 "+1e3*i+" "+Math.round(1e3*r),preserveAspectRatio:"xMinYMin"}),$=gs([],[l],n);return $.height=r,$.style.height=Mt(r),$.style.width=Mt(i),{type:"elem",elem:$}},m0=.008,Go={type:"kern",size:-1*m0},T7=new Set(["|","\\lvert","\\rvert","\\vert"]),R7=new Set(["\\|","\\lVert","\\rVert","\\Vert"]),ey=function(t,r,n,i,s,l){var $,h,d,w,A="",N=0;$=d=w=t,h=null;var U="Size1-Regular";t==="\\uparrow"?d=w="⏐":t==="\\Uparrow"?d=w="‖":t==="\\downarrow"?$=d="⏐":t==="\\Downarrow"?$=d="‖":t==="\\updownarrow"?($="\\uparrow",d="⏐",w="\\downarrow"):t==="\\Updownarrow"?($="\\Uparrow",d="‖",w="\\Downarrow"):T7.has(t)?(d="∣",A="vert",N=333):R7.has(t)?(d="∥",A="doublevert",N=556):t==="["||t==="\\lbrack"?($="⎡",d="⎢",w="⎣",U="Size4-Regular",A="lbrack",N=667):t==="]"||t==="\\rbrack"?($="⎤",d="⎥",w="⎦",U="Size4-Regular",A="rbrack",N=667):t==="\\lfloor"||t==="⌊"?(d=$="⎢",w="⎣",U="Size4-Regular",A="lfloor",N=667):t==="\\lceil"||t==="⌈"?($="⎡",d=w="⎢",U="Size4-Regular",A="lceil",N=667):t==="\\rfloor"||t==="⌋"?(d=$="⎥",w="⎦",U="Size4-Regular",A="rfloor",N=667):t==="\\rceil"||t==="⌉"?($="⎤",d=w="⎥",U="Size4-Regular",A="rceil",N=667):t==="("||t==="\\lparen"?($="⎛",d="⎜",w="⎝",U="Size4-Regular",A="lparen",N=875):t===")"||t==="\\rparen"?($="⎞",d="⎟",w="⎠",U="Size4-Regular",A="rparen",N=875):t==="\\{"||t==="\\lbrace"?($="⎧",h="⎨",w="⎩",d="⎪",U="Size4-Regular"):t==="\\}"||t==="\\rbrace"?($="⎫",h="⎬",w="⎭",d="⎪",U="Size4-Regular"):t==="\\lgroup"||t==="⟮"?($="⎧",w="⎩",d="⎪",U="Size4-Regular"):t==="\\rgroup"||t==="⟯"?($="⎫",w="⎭",d="⎪",U="Size4-Regular"):t==="\\lmoustache"||t==="⎰"?($="⎧",w="⎭",d="⎪",U="Size4-Regular"):(t==="\\rmoustache"||t==="⎱")&&($="⎫",w="⎩",d="⎪",U="Size4-Regular");var O=yl($,U,s),j=O.height+O.depth,q=yl(d,U,s),Y=q.height+q.depth,he=yl(w,U,s),ne=he.height+he.depth,_e=0,Q=1;if(h!==null){var be=yl(h,U,s);_e=be.height+be.depth,Q=2}var oe=j+ne+_e,Ee=Math.max(0,Math.ceil((r-oe)/(Q*Y))),te=oe+Ee*Q*Y,Ce=i.fontMetrics().axisHeight;n&&(Ce*=i.sizeMultiplier);var de=te/2-Ce,k=[];if(A.length>0){var Ae=te-j-ne,B=Math.round(te*1e3),pe=F6(A,Math.round(Ae*1e3)),W=new _s(A,pe),Fe=Mt(N/1e3),fe=Mt(B/1e3),V=new Fi([W],{width:Fe,height:fe,viewBox:"0 0 "+N+" "+B}),x=gs([],[V],i);x.height=B/1e3,x.style.width=Fe,x.style.height=fe,k.push({type:"elem",elem:x})}else{if(k.push(M$(w,U,s)),k.push(Go),h===null){var f=te-j-ne+2*m0;k.push(D$(d,f,i))}else{var o=(te-j-ne-_e)/2+2*m0;k.push(D$(d,o,i)),k.push(Go),k.push(M$(h,U,s)),k.push(Go),k.push(D$(d,o,i))}k.push(Go),k.push(M$($,U,s))}var c=i.havingBaseStyle(Gt.TEXT),p=ir({positionType:"bottom",positionData:de,children:k});return ih(Ct(["delimsizing","mult"],[p],c),Gt.TEXT,i,l)},L$=80,F$=.08,j$=function(t,r,n,i,s){var l=D6(t,i,n),$=new _s(t,l),h=new Fi([$],{width:"400em",height:Mt(r),viewBox:"0 0 400000 "+n,preserveAspectRatio:"xMinYMin slice"});return gs(["hide-tail"],[h],s)},z7=function(t,r){var n=r.havingBaseSizing(),i=sy("\\surd",t*n.sizeMultiplier,iy,n),s=n.sizeMultiplier,l=Math.max(0,r.minRuleThickness-r.fontMetrics().sqrtRuleThickness),$,h,d,w,A;return i.type==="small"?(w=1e3+1e3*l+L$,t<1?s=1:t<1.4&&(s=.7),h=(1+l+F$)/s,d=(1+l)/s,$=j$("sqrtMain",h,w,l,r),$.style.minWidth="0.853em",A=.833/s):i.type==="large"?(w=(1e3+L$)*ql[i.size],d=(ql[i.size]+l)/s,h=(ql[i.size]+l+F$)/s,$=j$("sqrtSize"+i.size,h,w,l,r),$.style.minWidth="1.02em",A=1/s):(h=t+l+F$,d=t+l,w=Math.floor(1e3*t+l)+L$,$=j$("sqrtTall",h,w,l,r),$.style.minWidth="0.742em",A=1.056),$.height=d,$.style.height=Mt(h),{span:$,advanceWidth:A,ruleWidth:(r.fontMetrics().sqrtRuleThickness+l)*s}},ty=new Set(["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","⌊","⌋","\\lceil","\\rceil","⌈","⌉","\\surd"]),N7=new Set(["\\uparrow","\\downarrow","\\updownarrow","\\Uparrow","\\Downarrow","\\Updownarrow","|","\\|","\\vert","\\Vert","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","⟮","⟯","\\lmoustache","\\rmoustache","⎰","⎱"]),ry=new Set(["<",">","\\langle","\\rangle","/","\\backslash","\\lt","\\gt"]),ql=[0,1.2,1.8,2.4,3],ny=function(t,r,n,i,s){if(t==="<"||t==="\\lt"||t==="⟨"?t="\\langle":(t===">"||t==="\\gt"||t==="⟩")&&(t="\\rangle"),ty.has(t)||ry.has(t))return Ov(t,r,!1,n,i,s);if(N7.has(t))return ey(t,ql[r],!1,n,i,s);throw new It("Illegal delimiter: '"+t+"'")},I7=[{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}],q7=[{type:"small",style:Gt.SCRIPTSCRIPT},{type:"small",style:Gt.SCRIPT},{type:"small",style:Gt.TEXT},{type:"stack"}],iy=[{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"}],M7=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.")},sy=function(t,r,n,i){for(var s=Math.min(2,3-i.style.size),l=s;l<n.length;l++){var $=n[l];if($.type==="stack")break;var h=yl(t,M7($),"math"),d=h.height+h.depth;if($.type==="small"){var w=i.havingBaseStyle($.style);d*=w.sizeMultiplier}if(d>r)return $}return n[n.length-1]},_0=function(t,r,n,i,s,l){t==="<"||t==="\\lt"||t==="⟨"?t="\\langle":(t===">"||t==="\\gt"||t==="⟩")&&(t="\\rangle");var $;ry.has(t)?$=I7:ty.has(t)?$=iy:$=q7;var h=sy(t,r,$,i);return h.type==="small"?A7(t,h.style,n,i,s,l):h.type==="large"?Ov(t,h.size,n,i,s,l):ey(t,r,n,i,s,l)},B$=function(t,r,n,i,s,l){var $=i.fontMetrics().axisHeight*i.sizeMultiplier,h=901,d=5/i.fontMetrics().ptPerEm,w=Math.max(r-$,n+$),A=Math.max(w/500*h,2*w-d);return _0(t,A,!0,i,s,l)},Tm={"\\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}},D7=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 Rm(e){return"isMiddle"in e}function Bc(e,t){var r=Fc(e);if(r&&D7.has(r.text))return r;throw r?new It("Invalid delimiter '"+r.text+"' after '"+t.funcName+"'",e):new It("Invalid delimiter type '"+e.type+"'",e)}Dt({type:"delimsizing",names:["\\bigl","\\Bigl","\\biggl","\\Biggl","\\bigr","\\Bigr","\\biggr","\\Biggr","\\bigm","\\Bigm","\\biggm","\\Biggm","\\big","\\Big","\\bigg","\\Bigg"],props:{numArgs:1,argTypes:["primitive"]},handler:(e,t)=>{var r=Bc(t[0],e);return{type:"delimsizing",mode:e.parser.mode,size:Tm[e.funcName].size,mclass:Tm[e.funcName].mclass,delim:r.text}},htmlBuilder:(e,t)=>e.delim==="."?Ct([e.mclass]):ny(e.delim,e.size,t,e.mode,[e.mclass]),mathmlBuilder:e=>{var t=[];e.delim!=="."&&t.push(Kn(e.delim,e.mode));var r=new qt("mo",t);e.mclass==="mopen"||e.mclass==="mclose"?r.setAttribute("fence","true"):r.setAttribute("fence","false"),r.setAttribute("stretchy","true");var n=Mt(ql[e.size]);return r.setAttribute("minsize",n),r.setAttribute("maxsize",n),r}});function zm(e){if(!e.body)throw new Error("Bug: The leftright ParseNode wasn't fully parsed.")}Dt({type:"leftright-right",names:["\\right"],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var r=e.parser.gullet.macros.get("\\current@color");if(r&&typeof r!="string")throw new It("\\current@color set to non-string in \\right");return{type:"leftright-right",mode:e.parser.mode,delim:Bc(t[0],e).text,color:r}}});Dt({type:"leftright",names:["\\left"],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var r=Bc(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)=>{zm(e);for(var r=Br(e.body,t,!0,["mopen","mclose"]),n=0,i=0,s=!1,l=0;l<r.length;l++){var $=r[l];Rm($)?s=!0:(n=Math.max(r[l].height,n),i=Math.max(r[l].depth,i))}n*=t.sizeMultiplier,i*=t.sizeMultiplier;var h;if(e.left==="."?h=so(t,["mopen"]):h=B$(e.left,n,i,t,e.mode,["mopen"]),r.unshift(h),s)for(var d=1;d<r.length;d++){var w=r[d];if(Rm(w)){var A=w.isMiddle;r[d]=B$(A.delim,n,i,A.options,e.mode,[])}}var N;if(e.right===".")N=so(t,["mclose"]);else{var U=e.rightColor?t.withColor(e.rightColor):t;N=B$(e.right,n,i,U,e.mode,["mclose"])}return r.push(N),Ct(["minner"],r,t)},mathmlBuilder:(e,t)=>{zm(e);var r=Ln(e.body,t);if(e.left!=="."){var n=new qt("mo",[Kn(e.left,e.mode)]);n.setAttribute("fence","true"),r.unshift(n)}if(e.right!=="."){var i=new qt("mo",[Kn(e.right,e.mode)]);i.setAttribute("fence","true"),e.rightColor&&i.setAttribute("mathcolor",e.rightColor),r.push(i)}return th(r)}});Dt({type:"middle",names:["\\middle"],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var r=Bc(t[0],e);if(!e.parser.leftrightDepth)throw new It("\\middle without preceding \\left",r);return{type:"middle",mode:e.parser.mode,delim:r.text}},htmlBuilder:(e,t)=>{var r;return e.delim==="."?r=so(t,[]):(r=ny(e.delim,1,t,e.mode,[]),r.isMiddle={delim:e.delim,options:t}),r},mathmlBuilder:(e,t)=>{var r=e.delim==="\\vert"||e.delim==="|"?Kn("|","text"):Kn(e.delim,e.mode),n=new qt("mo",[r]);return n.setAttribute("fence","true"),n.setAttribute("lspace","0.05em"),n.setAttribute("rspace","0.05em"),n}});var Pc=(e,t)=>{var r=Ka(sr(e.body,t),t),n=e.label.slice(1),i=t.sizeMultiplier,s,l,$=Ui(e.body);if(n==="sout")s=Ct(["stretchy","sout"]),s.height=t.fontMetrics().defaultRuleThickness/i,l=-.5*t.fontMetrics().xHeight;else if(n==="phase"){var h=vr({number:.6,unit:"pt"},t),d=vr({number:.35,unit:"ex"},t),w=t.havingBaseSizing();i=i/w.sizeMultiplier;var A=r.height+r.depth+h+d;r.style.paddingLeft=Mt(A/2+h);var N=Math.floor(1e3*A*i),U=q6(N),O=new Fi([new _s("phase",U)],{width:"400em",height:Mt(N/1e3),viewBox:"0 0 400000 "+N,preserveAspectRatio:"xMinYMin slice"});s=gs(["hide-tail"],[O],t),s.style.height=Mt(A),l=r.depth+h+d}else{/cancel/.test(n)?$||r.classes.push("cancel-pad"):n==="angl"?r.classes.push("anglpad"):r.classes.push("boxpad");var j,q,Y=0;/box/.test(n)?(Y=Math.max(t.fontMetrics().fboxrule,t.minRuleThickness),j=t.fontMetrics().fboxsep+(n==="colorbox"?0:Y),q=j):n==="angl"?(Y=Math.max(t.fontMetrics().defaultRuleThickness,t.minRuleThickness),j=4*Y,q=Math.max(0,.25-r.depth)):(j=$?.2:0,q=j),s=_7(r,n,j,q,t),/fbox|boxed|fcolorbox/.test(n)?(s.style.borderStyle="solid",s.style.borderWidth=Mt(Y)):n==="angl"&&Y!==.049&&(s.style.borderTopWidth=Mt(Y),s.style.borderRightWidth=Mt(Y)),l=r.depth+q,e.backgroundColor&&(s.style.backgroundColor=e.backgroundColor,e.borderColor&&(s.style.borderColor=e.borderColor))}var he;if(e.backgroundColor)he=ir({positionType:"individualShift",children:[{type:"elem",elem:s,shift:l},{type:"elem",elem:r,shift:0}]});else{var ne=/cancel|phase/.test(n)?["svg-align"]:[];he=ir({positionType:"individualShift",children:[{type:"elem",elem:r,shift:0},{type:"elem",elem:s,shift:l,wrapperClasses:ne}]})}return/cancel/.test(n)&&(he.height=r.height,he.depth=r.depth),/cancel/.test(n)&&!$?Ct(["mord","cancel-lap"],[he],t):Ct(["mord"],[he],t)},Uc=(e,t)=>{var r,n=new qt(e.label.includes("colorbox")?"mpadded":"menclose",[or(e.body,t)]);switch(e.label){case"\\cancel":n.setAttribute("notation","updiagonalstrike");break;case"\\bcancel":n.setAttribute("notation","downdiagonalstrike");break;case"\\phase":n.setAttribute("notation","phasorangle");break;case"\\sout":n.setAttribute("notation","horizontalstrike");break;case"\\fbox":n.setAttribute("notation","box");break;case"\\angl":n.setAttribute("notation","actuarial");break;case"\\fcolorbox":case"\\colorbox":if(r=t.fontMetrics().fboxsep*t.fontMetrics().ptPerEm,n.setAttribute("width","+"+2*r+"pt"),n.setAttribute("height","+"+2*r+"pt"),n.setAttribute("lspace",r+"pt"),n.setAttribute("voffset",r+"pt"),e.label==="\\fcolorbox"){var i=Math.max(t.fontMetrics().fboxrule,t.minRuleThickness);n.setAttribute("style","border: "+Mt(i)+" solid "+e.borderColor)}break;case"\\xcancel":n.setAttribute("notation","updiagonalstrike downdiagonalstrike");break}return e.backgroundColor&&n.setAttribute("mathbackground",e.backgroundColor),n};Dt({type:"enclose",names:["\\colorbox"],props:{numArgs:2,allowedInText:!0,argTypes:["color","hbox"]},handler(e,t,r){var{parser:n,funcName:i}=e,s=Qt(t[0],"color-token").color,l=t[1];return{type:"enclose",mode:n.mode,label:i,backgroundColor:s,body:l}},htmlBuilder:Pc,mathmlBuilder:Uc});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,l=Qt(t[1],"color-token").color,$=t[2];return{type:"enclose",mode:n.mode,label:i,backgroundColor:l,borderColor:s,body:$}},htmlBuilder:Pc,mathmlBuilder:Uc});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:Pc,mathmlBuilder:Uc});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:Pc,mathmlBuilder:Uc});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 ay={};function yi(e){for(var{type:t,names:r,props:n,handler:i,htmlBuilder:s,mathmlBuilder:l}=e,$={type:t,numArgs:n.numArgs||0,allowedInText:!1,numOptionalArgs:0,handler:i},h=0;h<r.length;++h)ay[r[h]]=$;s&&(Yu[t]=s),l&&(Gu[t]=l)}var ly={};function Je(e,t){ly[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 Tn{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 Tn(r,_n.range(this,t))}}function Nm(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 Hc=e=>{var t=e.parser.settings;if(!t.displayMode)throw new It("{"+e.envName+"} can be used only in display mode.")},L7=new Set(["gather","gather*"]);function sh(e){if(!e.includes("ed"))return!e.includes("*")}function As(e,t,r){var{hskipBeforeAndAfter:n,addJot:i,cols:s,arraystretch:l,colSeparationType:$,autoTag:h,singleRow:d,emptySingleRow:w,maxNumCols:A,leqno:N}=t;if(e.gullet.beginGroup(),d||e.gullet.macros.set("\\cr","\\\\\\relax"),!l){var U=e.gullet.expandMacroAsText("\\arraystretch");if(U==null)l=1;else if(l=parseFloat(U),!l||l<0)throw new It("Invalid \\arraystretch: "+U)}e.gullet.beginGroup();var O=[],j=[O],q=[],Y=[],he=h!=null?[]:void 0;function ne(){h&&e.gullet.macros.set("\\@eqnsw","1",!0)}function _e(){he&&(e.gullet.macros.get("\\df@tag")?(he.push(e.subparse([new Tn("\\df@tag")])),e.gullet.macros.set("\\df@tag",void 0,!0)):he.push(!!h&&e.gullet.macros.get("\\@eqnsw")==="1"))}for(ne(),Y.push(Nm(e));;){var Q=e.parseExpression(!1,d?"\\end":"\\\\");e.gullet.endGroup(),e.gullet.beginGroup();var be={type:"ordgroup",mode:e.mode,body:Q};r&&(be={type:"styling",mode:e.mode,style:r,resetFont:!0,body:[be]}),O.push(be);var oe=e.fetch().text;if(oe==="&"){if(A&&O.length===A){if(d||$)throw new It("Too many tab characters: &",e.nextToken);e.settings.reportNonstrict("textEnv","Too few columns specified in the {array} column argument.")}e.consume()}else if(oe==="\\end"){_e(),O.length===1&&be.type==="styling"&&be.body.length===1&&be.body[0].type==="ordgroup"&&be.body[0].body.length===0&&(j.length>1||!w)&&j.pop(),Y.length<j.length+1&&Y.push([]);break}else if(oe==="\\\\"){e.consume();var Ee=void 0;e.gullet.future().text!==" "&&(Ee=e.parseSizeGroup(!0)),q.push(Ee?Ee.value:null),_e(),Y.push(Nm(e)),O=[],j.push(O),ne()}else throw new It("Expected & or \\\\ or \\cr or \\end",e.nextToken)}return e.gullet.endGroup(),e.gullet.endGroup(),{type:"array",mode:e.mode,addJot:i,arraystretch:l,body:j,cols:s,rowGaps:q,hskipBeforeAndAfter:n,hLinesBeforeRow:Y,colSeparationType:$,tags:he,leqno:N}}function ah(e){return e.slice(0,1)==="d"?"display":"text"}var bi=function(t,r){var n,i,s=t.body.length,l=t.hLinesBeforeRow,$=0,h=new Array(s),d=[],w=Math.max(r.fontMetrics().arrayRuleWidth,r.minRuleThickness),A=1/r.fontMetrics().ptPerEm,N=5*A;if(t.colSeparationType&&t.colSeparationType==="small"){var U=r.havingStyle(Gt.SCRIPT).sizeMultiplier;N=.2778*(U/r.sizeMultiplier)}var O=t.colSeparationType==="CD"?vr({number:3,unit:"ex"},r):12*A,j=3*A,q=t.arraystretch*O,Y=.7*q,he=.3*q,ne=0;function _e($t){for(var a=0;a<$t.length;++a)a>0&&(ne+=.25),d.push({pos:ne,isDashed:$t[a]})}for(_e(l[0]),n=0;n<t.body.length;++n){var Q=t.body[n],be=Y,oe=he;$<Q.length&&($=Q.length);var Ee={cells:new Array(Q.length),height:0,depth:0,pos:0};for(i=0;i<Q.length;++i){var te=sr(Q[i],r);oe<te.depth&&(oe=te.depth),be<te.height&&(be=te.height),Ee.cells[i]=te}var Ce=t.rowGaps[n],de=0;Ce&&(de=vr(Ce,r),de>0&&(de+=he,oe<de&&(oe=de),de=0)),t.addJot&&n<t.body.length-1&&(oe+=j),Ee.height=be,Ee.depth=oe,ne+=be,Ee.pos=ne,ne+=oe+de,h[n]=Ee,_e(l[n+1])}var k=ne/2+r.fontMetrics().axisHeight,Ae=t.cols||[],B=[],pe,W,Fe=[];if(t.tags&&t.tags.some($t=>$t))for(n=0;n<s;++n){var fe=h[n],V=fe.pos-k,x=t.tags[n],f=void 0;x===!0?f=Ct(["eqn-num"],[],r):x===!1?f=Ct([],[],r):f=Ct([],Br(x,r,!0),r),f.depth=fe.depth,f.height=fe.height,Fe.push({type:"elem",elem:f,shift:V})}for(i=0,W=0;i<$||W<Ae.length;++i,++W){for(var o,c=Ae[W],p=!0;((m=c)==null?void 0:m.type)==="separator";){var m;if(p||(pe=Ct(["arraycolsep"],[]),pe.style.width=Mt(r.fontMetrics().doubleRuleSep),B.push(pe)),c.separator==="|"||c.separator===":"){var E=c.separator==="|"?"solid":"dashed",T=Ct(["vertical-separator"],[],r);T.style.height=Mt(ne),T.style.borderRightWidth=Mt(w),T.style.borderRightStyle=E,T.style.margin="0 "+Mt(-w/2);var re=ne-k;re&&(T.style.verticalAlign=Mt(-re)),B.push(T)}else throw new It("Invalid separator type: "+c.separator);W++,c=Ae[W],p=!1}if(!(i>=$)){var je=void 0;if(i>0||t.hskipBeforeAndAfter){var nt,ft;je=(nt=(ft=c)==null?void 0:ft.pregap)!=null?nt:N,je!==0&&(pe=Ct(["arraycolsep"],[]),pe.style.width=Mt(je),B.push(pe))}var yt=[];for(n=0;n<s;++n){var zt=h[n],_t=zt.cells[i];if(_t){var vt=zt.pos-k;_t.depth=zt.depth,_t.height=zt.height,yt.push({type:"elem",elem:_t,shift:vt})}}var mt=ir({positionType:"individualShift",children:yt}),xt=Ct(["col-align-"+(((o=c)==null?void 0:o.align)||"c")],[mt]);if(B.push(xt),i<$-1||t.hskipBeforeAndAfter){var St,Oe;je=(St=(Oe=c)==null?void 0:Oe.postgap)!=null?St:N,je!==0&&(pe=Ct(["arraycolsep"],[]),pe.style.width=Mt(je),B.push(pe))}}}var ze=Ct(["mtable"],B);if(d.length>0){for(var De=Ga("hline",r,w),Ge=Ga("hdashline",r,w),v=[{type:"elem",elem:ze,shift:0}];d.length>0;){var M=d.pop(),xe=M.pos-k;M.isDashed?v.push({type:"elem",elem:Ge,shift:xe}):v.push({type:"elem",elem:De,shift:xe})}ze=ir({positionType:"individualShift",children:v})}if(Fe.length===0)return Ct(["mord"],[ze],r);var Me=ir({positionType:"individualShift",children:Fe}),Qe=Ct(["tag"],[Me],r);return Wi([ze,Qe])},F7={c:"center ",l:"left ",r:"right "},xi=function(t,r){for(var n=[],i=new qt("mtd",[],["mtr-glue"]),s=new qt("mtd",[],["mml-eqn-num"]),l=0;l<t.body.length;l++){for(var $=t.body[l],h=[],d=0;d<$.length;d++)h.push(new qt("mtd",[or($[d],r)]));t.tags&&t.tags[l]&&(h.unshift(i),h.push(i),t.leqno?h.unshift(s):h.push(s)),n.push(new qt("mtr",h))}var w=new qt("mtable",n),A=t.arraystretch===.5?.1:.16+t.arraystretch-1+(t.addJot?.09:0);w.setAttribute("rowspacing",Mt(A));var N="",U="";if(t.cols&&t.cols.length>0){var O=t.cols,j="",q=!1,Y=0,he=O.length;O[0].type==="separator"&&(N+="top ",Y=1),O[O.length-1].type==="separator"&&(N+="bottom ",he-=1);for(var ne=Y;ne<he;ne++){var _e=O[ne];_e.type==="align"?(U+=F7[_e.align],q&&(j+="none "),q=!0):_e.type==="separator"&&q&&(j+=_e.separator==="|"?"solid ":"dashed ",q=!1)}w.setAttribute("columnalign",U.trim()),/[sd]/.test(j)&&w.setAttribute("columnlines",j.trim())}if(t.colSeparationType==="align"){for(var Q=t.cols||[],be="",oe=1;oe<Q.length;oe++)be+=oe%2?"0em ":"1em ";w.setAttribute("columnspacing",be.trim())}else t.colSeparationType==="alignat"||t.colSeparationType==="gather"?w.setAttribute("columnspacing","0em"):t.colSeparationType==="small"?w.setAttribute("columnspacing","0.2778em"):t.colSeparationType==="CD"?w.setAttribute("columnspacing","0.5em"):w.setAttribute("columnspacing","1em");var Ee="",te=t.hLinesBeforeRow;N+=te[0].length>0?"left ":"",N+=te[te.length-1].length>0?"right ":"";for(var Ce=1;Ce<te.length-1;Ce++)Ee+=te[Ce].length===0?"none ":te[Ce][0]?"dashed ":"solid ";return/[sd]/.test(Ee)&&w.setAttribute("rowlines",Ee.trim()),N!==""&&(w=new qt("menclose",[w]),w.setAttribute("notation",N.trim())),t.arraystretch&&t.arraystretch<1&&(w=new qt("mstyle",[w]),w.setAttribute("scriptlevel","1")),w},oy=function(t,r){t.envName.includes("ed")||Hc(t);var n=[],i=t.envName.includes("at")?"alignat":"align",s=t.envName==="split",l=As(t.parser,{cols:n,addJot:!0,autoTag:s?void 0:sh(t.envName),emptySingleRow:!0,colSeparationType:i,maxNumCols:s?2:void 0,leqno:t.parser.settings.leqno},"display"),$=0,h=0,d={type:"ordgroup",mode:t.mode,body:[]};if(r[0]&&r[0].type==="ordgroup"){for(var w="",A=0;A<r[0].body.length;A++){var N=Qt(r[0].body[A],"textord");w+=N.text}$=Number(w),h=$*2}var U=!h;l.body.forEach(function(Y){for(var he=1;he<Y.length;he+=2){var ne=Qt(Y[he],"styling"),_e=Qt(ne.body[0],"ordgroup");_e.body.unshift(d)}if(U)h<Y.length&&(h=Y.length);else{var Q=Y.length/2;if($<Q)throw new It("Too many math in a row: "+("expected "+$+", but got "+Q),Y[0])}});for(var O=0;O<h;++O){var j="r",q=0;O%2===1?j="l":O>0&&U&&(q=1),n[O]={type:"align",align:j,pregap:q,postgap:0}}return l.colSeparationType=U?"align":"alignat",l};yi({type:"array",names:["array","darray"],props:{numArgs:1},handler(e,t){var r=Fc(t[0]),n=r?[t[0]]:Qt(t[0],"ordgroup").body,i=n.map(function(l){var $=Lc(l),h=$.text;if("lcr".includes(h))return{type:"align",align:h};if(h==="|")return{type:"separator",separator:"|"};if(h===":")return{type:"separator",separator:":"};throw new It("Unknown column alignment: "+h,l)}),s={cols:i,hskipBeforeAndAfter:!0,maxNumCols:i.length};return As(e.parser,s,ah(e.envName))},htmlBuilder:bi,mathmlBuilder:xi});yi({type:"array",names:["matrix","pmatrix","bmatrix","Bmatrix","vmatrix","Vmatrix","matrix*","pmatrix*","bmatrix*","Bmatrix*","vmatrix*","Vmatrix*"],props:{numArgs:0},handler(e){var t={matrix:null,pmatrix:["(",")"],bmatrix:["[","]"],Bmatrix:["\\{","\\}"],vmatrix:["|","|"],Vmatrix:["\\Vert","\\Vert"]}[e.envName.replace("*","")],r="c",n={hskipBeforeAndAfter:!1,cols:[{type:"align",align:r}]};if(e.envName.charAt(e.envName.length-1)==="*"){var i=e.parser;if(i.consumeSpaces(),i.fetch().text==="["){if(i.consume(),i.consumeSpaces(),r=i.fetch().text,!"lcr".includes(r))throw new It("Expected l or c or r",i.nextToken);i.consume(),i.consumeSpaces(),i.expect("]"),i.consume(),n.cols=[{type:"align",align:r}]}}var s=As(e.parser,n,ah(e.envName)),l=Math.max(0,...s.body.map($=>$.length));return s.cols=new Array(l).fill({type:"align",align:r}),t?{type:"leftright",mode:e.mode,body:[s],left:t[0],right:t[1],rightColor:void 0}:s},htmlBuilder:bi,mathmlBuilder:xi});yi({type:"array",names:["smallmatrix"],props:{numArgs:0},handler(e){var t={arraystretch:.5},r=As(e.parser,t,"script");return r.colSeparationType="small",r},htmlBuilder:bi,mathmlBuilder:xi});yi({type:"array",names:["subarray"],props:{numArgs:1},handler(e,t){var r=Fc(t[0]),n=r?[t[0]]:Qt(t[0],"ordgroup").body,i=n.map(function($){var h=Lc($),d=h.text;if("lc".includes(d))return{type:"align",align:d};throw new It("Unknown column alignment: "+d,$)});if(i.length>1)throw new It("{subarray} can contain only one column");var s={cols:i,hskipBeforeAndAfter:!1,arraystretch:.5},l=As(e.parser,s,"script");if(l.body.length>0&&l.body[0].length>1)throw new It("{subarray} can contain only one column");return l},htmlBuilder:bi,mathmlBuilder:xi});yi({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=As(e.parser,t,ah(e.envName));return{type:"leftright",mode:e.mode,body:[r],left:e.envName.includes("r")?".":"\\{",right:e.envName.includes("r")?"\\}":".",rightColor:void 0}},htmlBuilder:bi,mathmlBuilder:xi});yi({type:"array",names:["align","align*","aligned","split"],props:{numArgs:0},handler:oy,htmlBuilder:bi,mathmlBuilder:xi});yi({type:"array",names:["gathered","gather","gather*"],props:{numArgs:0},handler(e){L7.has(e.envName)&&Hc(e);var t={cols:[{type:"align",align:"c"}],addJot:!0,colSeparationType:"gather",autoTag:sh(e.envName),emptySingleRow:!0,leqno:e.parser.settings.leqno};return As(e.parser,t,"display")},htmlBuilder:bi,mathmlBuilder:xi});yi({type:"array",names:["alignat","alignat*","alignedat"],props:{numArgs:1},handler:oy,htmlBuilder:bi,mathmlBuilder:xi});yi({type:"array",names:["equation","equation*"],props:{numArgs:0},handler(e){Hc(e);var t={autoTag:sh(e.envName),emptySingleRow:!0,singleRow:!0,maxNumCols:1,leqno:e.parser.settings.leqno};return As(e.parser,t,"display")},htmlBuilder:bi,mathmlBuilder:xi});yi({type:"array",names:["CD"],props:{numArgs:0},handler(e){return Hc(e),S7(e.parser)},htmlBuilder:bi,mathmlBuilder:xi});Je("\\nonumber","\\gdef\\@eqnsw{0}");Je("\\notag","\\nonumber");Dt({type:"text",names:["\\hline","\\hdashline"],props:{numArgs:0,allowedInText:!0,allowedInMath:!0},handler(e,t){throw new It(e.funcName+" valid only within array environment")}});var Im=ay;Dt({type:"environment",names:["\\begin","\\end"],props:{numArgs:1,argTypes:["text"]},handler(e,t){var{parser:r,funcName:n}=e,i=t[0];if(i.type!=="ordgroup")throw new It("Invalid environment name",i);for(var s="",l=0;l<i.body.length;++l)s+=Qt(i.body[l],"textord").text;if(n==="\\begin"){if(!Im.hasOwnProperty(s))throw new It("No such environment: "+s,i);var $=Im[s],{args:h,optArgs:d}=r.parseArguments("\\begin{"+s+"}",$),w={mode:r.mode,envName:s,parser:r},A=$.handler(w,h,d);r.expect("\\end",!1);var N=r.nextToken,U=Qt(r.parseFunction(),"environment");if(U.name!==s)throw new It("Mismatch: \\begin{"+s+"} matched by \\end{"+U.name+"}",N);return A}return{type:"environment",mode:r.mode,name:s,nameGroup:i}}});var uy=(e,t)=>{var r=e.font,n=t.withFont(r);return sr(e.body,n)},cy=(e,t)=>{var r=e.font,n=t.withFont(r);return or(e.body,n)},qm={"\\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=Ku(t[0]),s=n;return s in qm&&(s=qm[s]),{type:"font",mode:r.mode,font:s.slice(1),body:i}},htmlBuilder:uy,mathmlBuilder:cy});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:jc(n),body:[{type:"font",mode:r.mode,font:"boldsymbol",body:n}],isCharacterBox:Ui(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,l=r.parseExpression(!0,i);return{type:"font",mode:s,font:"math"+n.slice(1),body:{type:"ordgroup",mode:r.mode,body:l}}},htmlBuilder:uy,mathmlBuilder:cy});var j7=(e,t)=>{var r=t.style,n=r.fracNum(),i=r.fracDen(),s;s=t.havingStyle(n);var l=sr(e.numer,s,t);if(e.continued){var $=8.5/t.fontMetrics().ptPerEm,h=3.5/t.fontMetrics().ptPerEm;l.height=l.height<$?$:l.height,l.depth=l.depth<h?h:l.depth}s=t.havingStyle(i);var d=sr(e.denom,s,t),w,A,N;e.hasBarLine?(e.barSize?(A=vr(e.barSize,t),w=Ga("frac-line",t,A)):w=Ga("frac-line",t),A=w.height,N=w.height):(w=null,A=0,N=t.fontMetrics().defaultRuleThickness);var U,O,j;r.size===Gt.DISPLAY.size?(U=t.fontMetrics().num1,A>0?O=3*N:O=7*N,j=t.fontMetrics().denom1):(A>0?(U=t.fontMetrics().num2,O=N):(U=t.fontMetrics().num3,O=3*N),j=t.fontMetrics().denom2);var q;if(w){var he=t.fontMetrics().axisHeight;U-l.depth-(he+.5*A)<O&&(U+=O-(U-l.depth-(he+.5*A))),he-.5*A-(d.height-j)<O&&(j+=O-(he-.5*A-(d.height-j)));var ne=-(he-.5*A);q=ir({positionType:"individualShift",children:[{type:"elem",elem:d,shift:j},{type:"elem",elem:w,shift:ne},{type:"elem",elem:l,shift:-U}]})}else{var Y=U-l.depth-(d.height-j);Y<O&&(U+=.5*(O-Y),j+=.5*(O-Y)),q=ir({positionType:"individualShift",children:[{type:"elem",elem:d,shift:j},{type:"elem",elem:l,shift:-U}]})}s=t.havingStyle(r),q.height*=s.sizeMultiplier/t.sizeMultiplier,q.depth*=s.sizeMultiplier/t.sizeMultiplier;var _e;r.size===Gt.DISPLAY.size?_e=t.fontMetrics().delim1:r.size===Gt.SCRIPTSCRIPT.size?_e=t.havingStyle(Gt.SCRIPT).fontMetrics().delim2:_e=t.fontMetrics().delim2;var Q,be;return e.leftDelim==null?Q=so(t,["mopen"]):Q=_0(e.leftDelim,_e,!0,t.havingStyle(r),e.mode,["mopen"]),e.continued?be=Ct([]):e.rightDelim==null?be=so(t,["mclose"]):be=_0(e.rightDelim,_e,!0,t.havingStyle(r),e.mode,["mclose"]),Ct(["mord"].concat(s.sizingClasses(t)),[Q,Ct(["mfrac"],[q]),be],t)},B7=(e,t)=>{var r=new qt("mfrac",[or(e.numer,t),or(e.denom,t)]);if(!e.hasBarLine)r.setAttribute("linethickness","0px");else if(e.barSize){var n=vr(e.barSize,t);r.setAttribute("linethickness",Mt(n))}if(e.leftDelim!=null||e.rightDelim!=null){var i=[];if(e.leftDelim!=null){var s=new qt("mo",[new Nr(e.leftDelim.replace("\\",""))]);s.setAttribute("fence","true"),i.push(s)}if(i.push(r),e.rightDelim!=null){var l=new qt("mo",[new Nr(e.rightDelim.replace("\\",""))]);l.setAttribute("fence","true"),i.push(l)}return th(i)}return r},$y=(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],l,$=null,h=null;switch(n){case"\\cfrac":case"\\dfrac":case"\\frac":case"\\tfrac":l=!0;break;case"\\\\atopfrac":l=!1;break;case"\\dbinom":case"\\binom":case"\\tbinom":l=!1,$="(",h=")";break;case"\\\\bracefrac":l=!1,$="\\{",h="\\}";break;case"\\\\brackfrac":l=!1,$="[",h="]";break;default:throw new Error("Unrecognized genfrac command")}var d=n==="\\cfrac",w=null;return d||n.startsWith("\\d")?w="display":n.startsWith("\\t")&&(w="text"),$y({type:"genfrac",mode:r.mode,numer:i,denom:s,continued:d,hasBarLine:l,leftDelim:$,rightDelim:h,barSize:null},w)},htmlBuilder:j7,mathmlBuilder:B7});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 Mm=["display","text","script","scriptscript"],Dm=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=Ku(t[0]),l=s.type==="atom"&&s.family==="open"?Dm(s.text):null,$=Ku(t[1]),h=$.type==="atom"&&$.family==="close"?Dm($.text):null,d=Qt(t[2],"size"),w,A=null;d.isBlank?w=!0:(A=d.value,w=A.number>0);var N=null,U=t[3];if(U.type==="ordgroup"){if(U.body.length>0){var O=Qt(U.body[0],"textord");N=Mm[Number(O.text)]}}else U=Qt(U,"textord"),N=Mm[Number(U.text)];return $y({type:"genfrac",mode:r.mode,numer:n,denom:i,continued:!1,hasBarLine:w,barSize:A,leftDelim:l,rightDelim:h},N)}});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 l=t[2],$=s.number>0;return{type:"genfrac",mode:r.mode,numer:i,denom:l,continued:!1,hasBarLine:$,barSize:s,leftDelim:null,rightDelim:null}}});var fy=(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)),l=Dc(i,t),$;if(i.isOver?$=ir({positionType:"firstBaseline",children:[{type:"elem",elem:s},{type:"kern",size:.1},{type:"elem",elem:l,wrapperClasses:["svg-align"]}]}):$=ir({positionType:"bottom",positionData:s.depth+.1+l.height,children:[{type:"elem",elem:l,wrapperClasses:["svg-align"]},{type:"kern",size:.1},{type:"elem",elem:s}]}),n){var h=Ct(["minner",i.isOver?"mover":"munder"],[$],t);i.isOver?$=ir({positionType:"firstBaseline",children:[{type:"elem",elem:h},{type:"kern",size:.2},{type:"elem",elem:n}]}):$=ir({positionType:"bottom",positionData:h.depth+.2+n.height+n.depth,children:[{type:"elem",elem:n},{type:"kern",size:.2},{type:"elem",elem:h}]})}return Ct(["minner",i.isOver?"mover":"munder"],[$],t)},P7=(e,t)=>{var r=Mc(e.label);return new qt(e.isOver?"mover":"munder",[or(e.base,t),r])};Dt({type:"horizBrace",names:["\\overbrace","\\underbrace","\\overbracket","\\underbracket"],props:{numArgs:1},handler(e,t){var{parser:r,funcName:n}=e;return{type:"horizBrace",mode:r.mode,label:n,isOver:n.includes("\\over"),base:t[0]}},htmlBuilder:fy,mathmlBuilder:P7});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=Br(e.body,t,!1);return e7(e.href,[],r,t)},mathmlBuilder:(e,t)=>{var r=vs(e.body,t);return r instanceof qt||(r=new qt("mrow",[r])),r.setAttribute("href",e.href),r}});Dt({type:"href",names:["\\url"],props:{numArgs:1,argTypes:["url"],allowedInText:!0},handler:(e,t)=>{var{parser:r}=e,n=Qt(t[0],"url").url;if(!r.settings.isTrusted({command:"\\url",url:n}))return r.formatUnsupportedCmd("\\url");for(var i=[],s=0;s<n.length;s++){var l=n[s];l==="~"&&(l="\\textasciitilde"),i.push({type:"textord",mode:"text",text:l})}var $={type:"text",mode:r.mode,font:"\\texttt",body:i};return{type:"href",mode:r.mode,href:n,body:zr($)}}});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=Br(e.body,t.withFont(""),!1);return Wi(r)},mathmlBuilder(e,t){return new qt("mrow",Ln(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,l=t[1];r.settings.strict&&r.settings.reportNonstrict("htmlExtension","HTML extension is disabled on strict mode");var $,h={};switch(n){case"\\htmlClass":h.class=s,$={command:"\\htmlClass",class:s};break;case"\\htmlId":h.id=s,$={command:"\\htmlId",id:s};break;case"\\htmlStyle":h.style=s,$={command:"\\htmlStyle",style:s};break;case"\\htmlData":{for(var d=s.split(","),w=0;w<d.length;w++){var A=d[w],N=A.indexOf("=");if(N<0)throw new It("\\htmlData key/value '"+A+"' missing equals sign");var U=A.slice(0,N),O=A.slice(N+1);h["data-"+U.trim()]=O}$={command:"\\htmlData",attributes:h};break}default:throw new Error("Unrecognized html command")}return r.settings.isTrusted($)?{type:"html",mode:r.mode,attributes:h,body:zr(l)}:r.formatUnsupportedCmd(n)},htmlBuilder:(e,t)=>{var r=Br(e.body,t,!1),n=["enclosing"];e.attributes.class&&n.push(...e.attributes.class.trim().split(/\s+/));var i=Ct(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)=>vs(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=Br(e.html,t,!1);return Wi(r)},mathmlBuilder:(e,t)=>vs(e.mathml,t)});var P$=function(t){if(/^[-+]? *(\d+(\.\d*)?|\.\d+)$/.test(t))return{number:+t,unit:"bp"};var r=/([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec(t);if(!r)throw new It("Invalid size: '"+t+"' in \\includegraphics");var n={number:+(r[1]+r[2]),unit:r[3]};if(!Tv(n))throw new It("Invalid unit: '"+n.unit+"' in \\includegraphics.");return n};Dt({type:"includegraphics",names:["\\includegraphics"],props:{numArgs:1,numOptionalArgs:1,argTypes:["raw","url"],allowedInText:!1},handler:(e,t,r)=>{var{parser:n}=e,i={number:0,unit:"em"},s={number:.9,unit:"em"},l={number:0,unit:"em"},$="";if(r[0])for(var h=Qt(r[0],"raw").string,d=h.split(","),w=0;w<d.length;w++){var A=d[w].split("=");if(A.length===2){var N=A[1].trim();switch(A[0].trim()){case"alt":$=N;break;case"width":i=P$(N);break;case"height":s=P$(N);break;case"totalheight":l=P$(N);break;default:throw new It("Invalid key: '"+A[0]+"' in \\includegraphics.")}}}var U=Qt(t[0],"url").url;return $===""&&($=U,$=$.replace(/^.*[\\/]/,""),$=$.substring(0,$.lastIndexOf("."))),n.settings.isTrusted({command:"\\includegraphics",url:U})?{type:"includegraphics",mode:n.mode,alt:$,width:i,height:s,totalheight:l,src:U}:n.formatUnsupportedCmd("\\includegraphics")},htmlBuilder:(e,t)=>{var r=vr(e.height,t),n=0;e.totalheight.number>0&&(n=vr(e.totalheight,t)-r);var i=0;e.width.number>0&&(i=vr(e.width,t));var s={height:Mt(r+n)};i>0&&(s.width=Mt(i)),n>0&&(s.verticalAlign=Mt(-n));var l=new U6(e.src,e.alt,s);return l.height=r,l.depth=n,l},mathmlBuilder:(e,t)=>{var r=new qt("mglyph",[]);r.setAttribute("alt",e.alt);var n=vr(e.height,t),i=0;if(e.totalheight.number>0&&(i=vr(e.totalheight,t)-n,r.setAttribute("valign",Mt(-i))),r.setAttribute("height",Mt(n+i)),e.width.number>0){var s=vr(e.width,t);r.setAttribute("width",Mt(s))}return r.setAttribute("src",e.src),r}});Dt({type:"kern",names:["\\kern","\\mkern","\\hskip","\\mskip"],props:{numArgs:1,argTypes:["size"],primitive:!0,allowedInText:!0},handler(e,t){var{parser:r,funcName:n}=e,i=Qt(t[0],"size");if(r.settings.strict){var s=n[1]==="m",l=i.value.unit==="mu";s?(l||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")):l&&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 Mv(e.dimension,t)},mathmlBuilder(e,t){var r=vr(e.dimension,t);return new Pv(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=Ct([],[sr(e.body,t)]),r=Ct(["inner"],[r],t)):r=Ct(["inner"],[sr(e.body,t)]);var n=Ct(["fix"],[]),i=Ct([e.alignment],[r,n],t),s=Ct(["strut"]);return s.style.height=Mt(i.height+i.depth),i.depth&&(s.style.verticalAlign=Mt(-i.depth)),i.children.unshift(s),i=Ct(["thinbox"],[i],t),Ct(["mord","vbox"],[i],t)},mathmlBuilder:(e,t)=>{var r=new qt("mpadded",[or(e.body,t)]);if(e.alignment!=="rlap"){var n=e.alignment==="llap"?"-1":"-0.5";r.setAttribute("lspace",n+"width")}return r.setAttribute("width","0px"),r}});Dt({type:"styling",names:["\\(","$"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler(e,t){var{funcName:r,parser:n}=e,i=n.mode;n.switchMode("math");var s=r==="\\("?"\\)":"$",l=n.parseExpression(!1,s);return n.expect(s),n.switchMode(i),{type:"styling",mode:n.mode,style:"text",resetFont:!0,body:l}}});Dt({type:"text",names:["\\)","\\]"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler(e,t){throw new It("Mismatched "+e.funcName)}});var Lm=(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=Lm(e,t),n=Br(r,t,!1);return Wi(n)},mathmlBuilder:(e,t)=>{var r=Lm(e,t);return vs(r,t)}});var dy=(e,t,r,n,i,s,l)=>{e=Ct([],[e]);var $=r&&Ui(r),h,d;if(t){var w=sr(t,n.havingStyle(i.sup()),n);d={elem:w,kern:Math.max(n.fontMetrics().bigOpSpacing1,n.fontMetrics().bigOpSpacing3-w.depth)}}if(r){var A=sr(r,n.havingStyle(i.sub()),n);h={elem:A,kern:Math.max(n.fontMetrics().bigOpSpacing2,n.fontMetrics().bigOpSpacing4-A.height)}}var N;if(d&&h){var U=n.fontMetrics().bigOpSpacing5+h.elem.height+h.elem.depth+h.kern+e.depth+l;N=ir({positionType:"bottom",positionData:U,children:[{type:"kern",size:n.fontMetrics().bigOpSpacing5},{type:"elem",elem:h.elem,marginLeft:Mt(-s)},{type:"kern",size:h.kern},{type:"elem",elem:e},{type:"kern",size:d.kern},{type:"elem",elem:d.elem,marginLeft:Mt(s)},{type:"kern",size:n.fontMetrics().bigOpSpacing5}]})}else if(h){var O=e.height-l;N=ir({positionType:"top",positionData:O,children:[{type:"kern",size:n.fontMetrics().bigOpSpacing5},{type:"elem",elem:h.elem,marginLeft:Mt(-s)},{type:"kern",size:h.kern},{type:"elem",elem:e}]})}else if(d){var j=e.depth+l;N=ir({positionType:"bottom",positionData:j,children:[{type:"elem",elem:e},{type:"kern",size:d.kern},{type:"elem",elem:d.elem,marginLeft:Mt(s)},{type:"kern",size:n.fontMetrics().bigOpSpacing5}]})}else return e;var q=[N];if(h&&s!==0&&!$){var Y=Ct(["mspace"],[],n);Y.style.marginRight=Mt(s),q.unshift(Y)}return Ct(["mop","op-limits"],q,n)},hy=new Set(["\\smallint"]),rl=(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 l=t.style,$=!1;l.size===Gt.DISPLAY.size&&s.symbol&&!hy.has(s.name)&&($=!0);var h,d;if(s.symbol){var w=$?"Size2-Regular":"Size1-Regular",A="";if((s.name==="\\oiint"||s.name==="\\oiiint")&&(A=s.name.slice(1),s.name=A==="oiint"?"\\iint":"\\iiint"),h=un(s.name,w,"math",t,["mop","op-symbol",$?"large-op":"small-op"]),d=h.italic,A.length>0){var N=Lv(A+"Size"+($?"2":"1"),t);h=ir({positionType:"individualShift",children:[{type:"elem",elem:h,shift:0},{type:"elem",elem:N,shift:$?.08:0}]}),s.name="\\"+A,h.classes.unshift("mop"),h.italic=d}}else if(s.body){var U=Br(s.body,t,!0);U.length===1&&U[0]instanceof Nn?(h=U[0],h.classes[0]="mop"):h=Ct(["mop"],U,t)}else{for(var O=[],j=1;j<s.name.length;j++)O.push(Od(s.name[j],s.mode,t));h=Ct(["mop"],O,t)}var q=0,Y=0;if((h instanceof Nn||s.name==="\\oiint"||s.name==="\\oiiint")&&!s.suppressBaseShift){var he;q=(h.height-h.depth)/2-t.fontMetrics().axisHeight,Y=(he=h.italic)!=null?he:0}return i?dy(h,r,n,t,l,Y,q):(q&&(h.style.position="relative",h.style.top=Mt(q)),h)},vo=(e,t)=>{var r;if(e.symbol)r=new qt("mo",[Kn(e.name,e.mode)]),hy.has(e.name)&&r.setAttribute("largeop","false");else if(e.body)r=new qt("mo",Ln(e.body,t));else{r=new qt("mi",[new Nr(e.name.slice(1))]);var n=new qt("mo",[Kn("","text")]);e.parentIsSupSub?r=new qt("mrow",[r,n]):r=Bv([r,n])}return r},U7={"∏":"\\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=U7[i]),{type:"op",mode:r.mode,limits:!0,parentIsSupSub:!1,symbol:!0,name:i}},htmlBuilder:rl,mathmlBuilder:vo});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:rl,mathmlBuilder:vo});var H7={"∫":"\\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:rl,mathmlBuilder:vo});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:rl,mathmlBuilder:vo});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=H7[n]),{type:"op",mode:t.mode,limits:!1,parentIsSupSub:!1,symbol:!0,name:n}},htmlBuilder:rl,mathmlBuilder:vo});var py=(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 l;if(s.body.length>0){for(var $=s.body.map(A=>{var N="text"in A?A.text:void 0;return typeof N=="string"?{type:"textord",mode:A.mode,text:N}:A}),h=Br($,t.withFont("mathrm"),!0),d=0;d<h.length;d++){var w=h[d];w instanceof Nn&&(w.text=w.text.replace(/\u2212/,"-").replace(/\u2217/,"*"))}l=Ct(["mop"],h,t)}else l=Ct(["mop"],[],t);return i?dy(l,r,n,t,t.style,0,0):l},W7=(e,t)=>{for(var r=Ln(e.body,t.withFont("mathrm")),n=!0,i=0;i<r.length;i++){var s=r[i];if(!(s instanceof Pv))if(s instanceof qt)switch(s.type){case"mi":case"mn":case"mspace":case"mtext":break;case"mo":{var l=s.children[0];s.children.length===1&&l instanceof Nr?l.text=l.text.replace(/\u2212/,"-").replace(/\u2217/,"*"):n=!1;break}default:n=!1}else n=!1}if(n){var $=r.map(w=>w.toText()).join("");r=[new Nr($)]}var h=new qt("mi",r);h.setAttribute("mathvariant","normal");var d=new qt("mo",[Kn("","text")]);return e.parentIsSupSub?new qt("mrow",[h,d]):Bv([h,d])};Dt({type:"operatorname",names:["\\operatorname@","\\operatornamewithlimits"],props:{numArgs:1},handler:(e,t)=>{var{parser:r,funcName:n}=e,i=t[0];return{type:"operatorname",mode:r.mode,body:zr(i),alwaysHandleSupSub:n==="\\operatornamewithlimits",limits:!1,parentIsSupSub:!1}},htmlBuilder:py,mathmlBuilder:W7});Je("\\operatorname","\\@ifstar\\operatornamewithlimits\\operatorname@");ra({type:"ordgroup",htmlBuilder(e,t){return e.semisimple?Wi(Br(e.body,t,!1)):Ct(["mord"],Br(e.body,t,!0),t)},mathmlBuilder(e,t){return vs(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=Ga("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 Ct(["mord","overline"],[s],t)},mathmlBuilder(e,t){var r=new qt("mo",[new Nr("‾")]);r.setAttribute("stretchy","true");var n=new qt("mover",[or(e.body,t),r]);return n.setAttribute("accent","true"),n}});Dt({type:"phantom",names:["\\phantom"],props:{numArgs:1,allowedInText:!0},handler:(e,t)=>{var{parser:r}=e,n=t[0];return{type:"phantom",mode:r.mode,body:zr(n)}},htmlBuilder:(e,t)=>{var r=Br(e.body,t.withPhantom(),!1);return Wi(r)},mathmlBuilder:(e,t)=>{var r=Ln(e.body,t);return new qt("mphantom",r)}});Je("\\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=Ct(["inner"],[sr(e.body,t.withPhantom())]),n=Ct(["fix"],[]);return Ct(["mord","rlap"],[r,n],t)},mathmlBuilder:(e,t)=>{var r=Ln(zr(e.body),t),n=new qt("mphantom",r),i=new qt("mpadded",[n]);return i.setAttribute("width","0px"),i}});Dt({type:"raisebox",names:["\\raisebox"],props:{numArgs:2,argTypes:["size","hbox"],allowedInText:!0},handler(e,t){var{parser:r}=e,n=Qt(t[0],"size").value,i=t[1];return{type:"raisebox",mode:r.mode,dy:n,body:i}},htmlBuilder(e,t){var r=sr(e.body,t),n=vr(e.dy,t);return ir({positionType:"shift",positionData:-n,children:[{type:"elem",elem:r}]})},mathmlBuilder(e,t){var r=new qt("mpadded",[or(e.body,t)]),n=e.dy.number+e.dy.unit;return r.setAttribute("voffset",n),r}});Dt({type:"internal",names:["\\relax"],props:{numArgs:0,allowedInText:!0,allowedInArgument:!0},handler(e){var{parser:t}=e;return{type:"internal",mode:t.mode}}});Dt({type:"rule",names:["\\rule"],props:{numArgs:2,numOptionalArgs:1,allowedInText:!0,allowedInMath:!0,argTypes:["size","size","size"]},handler(e,t,r){var{parser:n}=e,i=r[0],s=Qt(t[0],"size"),l=Qt(t[1],"size");return{type:"rule",mode:n.mode,shift:i&&Qt(i,"size").value,width:s.value,height:l.value}},htmlBuilder(e,t){var r=Ct(["mord","rule"],[],t),n=vr(e.width,t),i=vr(e.height,t),s=e.shift?vr(e.shift,t):0;return r.style.borderRightWidth=Mt(n),r.style.borderTopWidth=Mt(i),r.style.bottom=Mt(s),r.width=n,r.height=i+s,r.depth=-s,r.maxFontSize=i*1.125*t.sizeMultiplier,r},mathmlBuilder(e,t){var r=vr(e.width,t),n=vr(e.height,t),i=e.shift?vr(e.shift,t):0,s=t.color&&t.getColor()||"black",l=new qt("mspace");l.setAttribute("mathbackground",s),l.setAttribute("width",Mt(r)),l.setAttribute("height",Mt(n));var $=new qt("mpadded",[l]);return i>=0?$.setAttribute("height",Mt(i)):($.setAttribute("height",Mt(i)),$.setAttribute("depth",Mt(-i))),$.setAttribute("voffset",Mt(i)),$}});function my(e,t,r){for(var n=Br(e,t,!1),i=t.sizeMultiplier/r.sizeMultiplier,s=0;s<n.length;s++){var l=n[s].classes.indexOf("sizing");l<0?Array.prototype.push.apply(n[s].classes,t.sizingClasses(r)):n[s].classes[l+1]==="reset-size"+t.size&&(n[s].classes[l+1]="reset-size"+r.size),n[s].height*=i,n[s].depth*=i}return Wi(n)}var Fm=["\\tiny","\\sixptsize","\\scriptsize","\\footnotesize","\\small","\\normalsize","\\large","\\Large","\\LARGE","\\huge","\\Huge"],V7=(e,t)=>{var r=t.havingSize(e.size);return my(e.body,r,t)};Dt({type:"sizing",names:Fm,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:Fm.indexOf(n)+1,body:s}},htmlBuilder:V7,mathmlBuilder:(e,t)=>{var r=t.havingSize(e.size),n=Ln(e.body,r),i=new qt("mstyle",n);return i.setAttribute("mathsize",Mt(r.sizeMultiplier)),i}});Dt({type:"smash",names:["\\smash"],props:{numArgs:1,numOptionalArgs:1,allowedInText:!0},handler:(e,t,r)=>{var{parser:n}=e,i=!1,s=!1,l=r[0]&&Qt(r[0],"ordgroup");if(l)for(var $,h=0;h<l.body.length;++h){var d=l.body[h];if($=Lc(d).text,$==="t")i=!0;else if($==="b")s=!0;else{i=!1,s=!1;break}}else i=!0,s=!0;var w=t[0];return{type:"smash",mode:n.mode,body:w,smashHeight:i,smashDepth:s}},htmlBuilder:(e,t)=>{var r=Ct([],[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 Ct(["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 Ct(["mord"],[i],t)},mathmlBuilder:(e,t)=>{var r=new qt("mpadded",[or(e.body,t)]);return e.smashHeight&&r.setAttribute("height","0px"),e.smashDepth&&r.setAttribute("depth","0px"),r}});Dt({type:"sqrt",names:["\\sqrt"],props:{numArgs:1,numOptionalArgs:1},handler(e,t,r){var{parser:n}=e,i=r[0],s=t[0];return{type:"sqrt",mode:n.mode,body:s,index:i}},htmlBuilder(e,t){var r=sr(e.body,t.havingCrampedStyle());r.height===0&&(r.height=t.fontMetrics().xHeight),r=Ka(r,t);var n=t.fontMetrics(),i=n.defaultRuleThickness,s=i;t.style.id<Gt.TEXT.id&&(s=t.fontMetrics().xHeight);var l=i+s/4,$=r.height+r.depth+l+i,{span:h,ruleWidth:d,advanceWidth:w}=z7($,t),A=h.height-d;A>r.height+r.depth+l&&(l=(l+A-r.height-r.depth)/2);var N=h.height-r.height-l-d;r.style.paddingLeft=Mt(w);var U=ir({positionType:"firstBaseline",children:[{type:"elem",elem:r,wrapperClasses:["svg-align"]},{type:"kern",size:-(r.height+N)},{type:"elem",elem:h},{type:"kern",size:d}]});if(e.index){var O=t.havingStyle(Gt.SCRIPTSCRIPT),j=sr(e.index,O,t),q=.6*(U.height-U.depth),Y=ir({positionType:"shift",positionData:-q,children:[{type:"elem",elem:j}]}),he=Ct(["root"],[Y]);return Ct(["mord","sqrt"],[he,U],t)}else return Ct(["mord","sqrt"],[U],t)},mathmlBuilder(e,t){var{body:r,index:n}=e;return n?new qt("mroot",[or(r,t),or(n,t)]):new qt("msqrt",[or(r,t)])}});var g0={display:Gt.DISPLAY,text:Gt.TEXT,script:Gt.SCRIPT,scriptscript:Gt.SCRIPTSCRIPT};function Y7(e){return e in g0}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),l=n.slice(1,n.length-5);if(!Y7(l))throw new Error("Unknown style: "+l);return{type:"styling",mode:i.mode,style:l,body:s}},htmlBuilder(e,t){var r=g0[e.style],n=t.havingStyle(r);return e.resetFont&&(n=n.withFont("")),my(e.body,n,t)},mathmlBuilder(e,t){var r=g0[e.style],n=t.havingStyle(r);e.resetFont&&(n=n.withFont(""));var i=Ln(e.body,n),s=new qt("mstyle",i),l={display:["0","true"],text:["0","false"],script:["1","false"],scriptscript:["2","false"]},$=l[e.style];return s.setAttribute("scriptlevel",$[0]),s.setAttribute("displaystyle",$[1]),s}});var G7=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?rl:null}else if(n.type==="operatorname"){var s=n.alwaysHandleSupSub&&(r.style.size===Gt.DISPLAY.size||n.limits);return s?py:null}else{if(n.type==="accent")return Ui(n.base)?nh:null;if(n.type==="horizBrace"){var l=!t.sub;return l===n.isOver?fy:null}else return null}else return null};ra({type:"supsub",htmlBuilder(e,t){var r=G7(e,t);if(r)return r(e,t);var{base:n,sup:i,sub:s}=e,l=sr(n,t),$,h,d=t.fontMetrics(),w=0,A=0,N=n&&Ui(n);if(i){var U=t.havingStyle(t.style.sup());$=sr(i,U,t),N||(w=l.height-U.fontMetrics().supDrop*U.sizeMultiplier/t.sizeMultiplier)}if(s){var O=t.havingStyle(t.style.sub());h=sr(s,O,t),N||(A=l.depth+O.fontMetrics().subDrop*O.sizeMultiplier/t.sizeMultiplier)}var j;t.style===Gt.DISPLAY?j=d.sup1:t.style.cramped?j=d.sup3:j=d.sup2;var q=t.sizeMultiplier,Y=Mt(.5/d.ptPerEm/q),he=null;if(h){var ne=e.base&&e.base.type==="op"&&e.base.name&&(e.base.name==="\\oiint"||e.base.name==="\\oiiint");if(l instanceof Nn||ne){var _e;he=Mt(-((_e=l.italic)!=null?_e:0))}}var Q;if($&&h){w=Math.max(w,j,$.depth+.25*d.xHeight),A=Math.max(A,d.sub2);var be=d.defaultRuleThickness,oe=4*be;if(w-$.depth-(h.height-A)<oe){A=oe-(w-$.depth)+h.height;var Ee=.8*d.xHeight-(w-$.depth);Ee>0&&(w+=Ee,A-=Ee)}var te=[{type:"elem",elem:h,shift:A,marginRight:Y,marginLeft:he},{type:"elem",elem:$,shift:-w,marginRight:Y}];Q=ir({positionType:"individualShift",children:te})}else if(h){A=Math.max(A,d.sub1,h.height-.8*d.xHeight);var Ce=[{type:"elem",elem:h,marginLeft:he,marginRight:Y}];Q=ir({positionType:"shift",positionData:A,children:Ce})}else if($)w=Math.max(w,j,$.depth+.25*d.xHeight),Q=ir({positionType:"shift",positionData:-w,children:[{type:"elem",elem:$,marginRight:Y}]});else throw new Error("supsub must have either sup or sub.");var de=d0(l,"right")||"mord";return Ct([de],[l,Ct(["msupsub"],[Q])],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 l;if(r)l=n?"mover":"munder";else if(e.sub)if(e.sup){var d=e.base;d&&d.type==="op"&&d.limits&&t.style===Gt.DISPLAY||d&&d.type==="operatorname"&&d.alwaysHandleSupSub&&(t.style===Gt.DISPLAY||d.limits)?l="munderover":l="msubsup"}else{var h=e.base;h&&h.type==="op"&&h.limits&&(t.style===Gt.DISPLAY||h.alwaysHandleSupSub)||h&&h.type==="operatorname"&&h.alwaysHandleSupSub&&(h.limits||t.style===Gt.DISPLAY)?l="munder":l="msub"}else{var $=e.base;$&&$.type==="op"&&$.limits&&(t.style===Gt.DISPLAY||$.alwaysHandleSupSub)||$&&$.type==="operatorname"&&$.alwaysHandleSupSub&&($.limits||t.style===Gt.DISPLAY)?l="mover":l="msup"}return new qt(l,s)}});ra({type:"atom",htmlBuilder(e,t){return Od(e.text,e.mode,t,["m"+e.family])},mathmlBuilder(e,t){var r=new qt("mo",[Kn(e.text,e.mode)]);if(e.family==="bin"){var n=rh(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 _y={mi:"italic",mn:"normal",mtext:"normal"};ra({type:"mathord",htmlBuilder(e,t){return qc(e,t,"mathord")},mathmlBuilder(e,t){var r=new qt("mi",[Kn(e.text,e.mode,t)]),n=rh(e,t)||"italic";return n!==_y[r.type]&&r.setAttribute("mathvariant",n),r}});ra({type:"textord",htmlBuilder(e,t){return qc(e,t,"textord")},mathmlBuilder(e,t){var r=Kn(e.text,e.mode,t),n=rh(e,t)||"normal",i;return e.mode==="text"?i=new qt("mtext",[r]):/[0-9]/.test(e.text)?i=new qt("mn",[r]):e.text==="\\prime"?i=new qt("mo",[r]):i=new qt("mi",[r]),n!==_y[i.type]&&i.setAttribute("mathvariant",n),i}});var U$={"\\nobreak":"nobreak","\\allowbreak":"allowbreak"},H$={" ":{},"\\ ":{},"~":{className:"nobreak"},"\\space":{},"\\nobreakspace":{className:"nobreak"}};ra({type:"spacing",htmlBuilder(e,t){if(H$.hasOwnProperty(e.text)){var r=H$[e.text].className||"";if(e.mode==="text"){var n=qc(e,t,"textord");return n.classes.push(r),n}else return Ct(["mspace",r],[Od(e.text,e.mode,t)],t)}else{if(U$.hasOwnProperty(e.text))return Ct(["mspace",U$[e.text]],[],t);throw new It('Unknown type of space "'+e.text+'"')}},mathmlBuilder(e,t){var r;if(H$.hasOwnProperty(e.text))r=new qt("mtext",[new Nr(" ")]);else{if(U$.hasOwnProperty(e.text))return new qt("mspace");throw new It('Unknown type of space "'+e.text+'"')}return r}});var jm=()=>{var e=new qt("mtd",[]);return e.setAttribute("width","50%"),e};ra({type:"tag",mathmlBuilder(e,t){var r=new qt("mtable",[new qt("mtr",[jm(),new qt("mtd",[vs(e.body,t)]),jm(),new qt("mtd",[vs(e.tag,t)])])]);return r.setAttribute("width","100%"),r}});var Bm={"\\text":void 0,"\\textrm":"textrm","\\textsf":"textsf","\\texttt":"texttt","\\textnormal":"textrm"},Pm={"\\textbf":"textbf","\\textmd":"textmd"},K7={"\\textit":"textit","\\textup":"textup"},Um=(e,t)=>{var r=e.font;if(r){if(Bm[r])return t.withTextFontFamily(Bm[r]);if(Pm[r])return t.withTextFontWeight(Pm[r]);if(r==="\\emph")return t.fontShape==="textit"?t.withTextFontShape("textup"):t.withTextFontShape("textit")}else return t;return t.withTextFontShape(K7[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=Um(e,t),n=Br(e.body,r,!0);return Ct(["mord","text"],n,r)},mathmlBuilder(e,t){var r=Um(e,t);return vs(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=Ga("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 Ct(["mord","underline"],[s],t)},mathmlBuilder(e,t){var r=new qt("mo",[new Nr("‾")]);r.setAttribute("stretchy","true");var n=new qt("munder",[or(e.body,t),r]);return n.setAttribute("accentunder","true"),n}});Dt({type:"vcenter",names:["\\vcenter"],props:{numArgs:1,argTypes:["original"],allowedInText:!1},handler(e,t){var{parser:r}=e;return{type:"vcenter",mode:r.mode,body:t[0]}},htmlBuilder(e,t){var r=sr(e.body,t),n=t.fontMetrics().axisHeight,i=.5*(r.height-n-(r.depth+n));return ir({positionType:"shift",positionData:i,children:[{type:"elem",elem:r}]})},mathmlBuilder(e,t){var r=new qt("mpadded",[or(e.body,t)],["vcenter"]);return new qt("mrow",[r])}});Dt({type:"verb",names:["\\verb"],props:{numArgs:0,allowedInText:!0},handler(e,t,r){throw new It("\\verb ended by end of line instead of matching delimiter")},htmlBuilder(e,t){for(var r=Hm(e),n=[],i=t.havingStyle(t.style.text()),s=0;s<r.length;s++){var l=r[s];l==="~"&&(l="\\textasciitilde"),n.push(un(l,"Typewriter-Regular",e.mode,i,["mord","texttt"]))}return Ct(["mord","text"].concat(i.sizingClasses(t)),qv(n),i)},mathmlBuilder(e,t){var r=new Nr(Hm(e)),n=new qt("mtext",[r]);return n.setAttribute("mathvariant","monospace"),n}});var Hm=e=>e.body.replace(/ /g,e.star?"␣":" "),is=Fv,gy=`[ \r
|
|
335
|
-
]`,X7="\\\\[a-zA-Z@]+",Q7="\\\\[^\uD800-\uDFFF]",J7="("+X7+")"+gy+"*",Z7=`\\\\(
|
|
336
|
-
|[ \r ]+
|
|
337
|
-
?)[ \r ]*`,v0="[̀-ͯ]",O7=new RegExp(v0+"+$"),ex="("+gy+"+)|"+(Z7+"|")+"([!-\\[\\]-‧-豈-]"+(v0+"*")+"|[\uD800-\uDBFF][\uDC00-\uDFFF]"+(v0+"*")+"|\\\\verb\\*([^]).*?\\4|\\\\verb([^*a-zA-Z]).*?\\5"+("|"+J7)+("|"+Q7+")");class Wm{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(ex,"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 Tn("EOF",new _n(this,r,r));var n=this.tokenRegex.exec(t);if(n===null||n.index!==r)throw new It("Unexpected character: '"+t[r]+"'",new Tn(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(`
|
|
338
|
-
`,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 Tn(i,new _n(this,r,this.tokenRegex.lastIndex))}}class tx{constructor(t,r){t===void 0&&(t={}),r===void 0&&(r={}),this.current=void 0,this.builtins=void 0,this.undefStack=void 0,this.current=r,this.builtins=t,this.undefStack=[]}beginGroup(){this.undefStack.push({})}endGroup(){if(this.undefStack.length===0)throw new It("Unbalanced namespace destruction: attempt to pop global namespace; please report this as a bug");var t=this.undefStack.pop();for(var r in t)t.hasOwnProperty(r)&&(t[r]==null?delete this.current[r]:this.current[r]=t[r])}endGroups(){for(;this.undefStack.length>0;)this.endGroup()}has(t){return this.current.hasOwnProperty(t)||this.builtins.hasOwnProperty(t)}get(t){return this.current.hasOwnProperty(t)?this.current[t]:this.builtins[t]}set(t,r,n){if(n===void 0&&(n=!1),n){for(var i=0;i<this.undefStack.length;i++)delete this.undefStack[i][t];this.undefStack.length>0&&(this.undefStack[this.undefStack.length-1][t]=r)}else{var s=this.undefStack[this.undefStack.length-1];s&&!s.hasOwnProperty(t)&&(s[t]=this.current[t])}r==null?delete this.current[t]:this.current[t]=r}}var rx=ly;Je("\\noexpand",function(e){var t=e.popToken();return e.isExpandable(t.text)&&(t.noexpand=!0,t.treatAsRelax=!0),{tokens:[t],numArgs:0}});Je("\\expandafter",function(e){var t=e.popToken();return e.expandOnce(!0),{tokens:[t],numArgs:0}});Je("\\@firstoftwo",function(e){var t=e.consumeArgs(2);return{tokens:t[0],numArgs:0}});Je("\\@secondoftwo",function(e){var t=e.consumeArgs(2);return{tokens:t[1],numArgs:0}});Je("\\@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}});Je("\\@ifstar","\\@ifnextchar *{\\@firstoftwo{#1}}");Je("\\TextOrMath",function(e){var t=e.consumeArgs(2);return e.mode==="text"?{tokens:t[0],numArgs:0}:{tokens:t[1],numArgs:0}});var Vm={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};Je("\\char",function(e){var t=e.popToken(),r,n=0;if(t.text==="'")r=8,t=e.popToken();else if(t.text==='"')r=16,t=e.popToken();else if(t.text==="`")if(t=e.popToken(),t.text[0]==="\\")n=t.text.charCodeAt(1);else{if(t.text==="EOF")throw new It("\\char` missing argument");n=t.text.charCodeAt(0)}else r=10;if(r){if(n=Vm[t.text],n==null||n>=r)throw new It("Invalid base-"+r+" digit "+t.text);for(var i;(i=Vm[e.future().text])!=null&&i<r;)n*=r,n+=i,e.popToken()}return"\\@char{"+n+"}"});var lh=(e,t,r,n)=>{var i=e.consumeArg().tokens;if(i.length!==1)throw new It("\\newcommand's first argument must be a macro name");var s=i[0].text,l=e.isDefined(s);if(l&&!t)throw new It("\\newcommand{"+s+"} attempting to redefine "+(s+"; use \\renewcommand"));if(!l&&!r)throw new It("\\renewcommand{"+s+"} when command "+s+" does not yet exist; use \\newcommand");var $=0;if(i=e.consumeArg().tokens,i.length===1&&i[0].text==="["){for(var h="",d=e.expandNextToken();d.text!=="]"&&d.text!=="EOF";)h+=d.text,d=e.expandNextToken();if(!h.match(/^\s*[0-9]+\s*$/))throw new It("Invalid number of arguments: "+h);$=parseInt(h),i=e.consumeArg().tokens}return l&&n||e.macros.set(s,{tokens:i,numArgs:$}),""};Je("\\newcommand",e=>lh(e,!1,!0,!1));Je("\\renewcommand",e=>lh(e,!0,!1,!1));Je("\\providecommand",e=>lh(e,!0,!0,!0));Je("\\message",e=>{var t=e.consumeArgs(1)[0];return console.log(t.reverse().map(r=>r.text).join("")),""});Je("\\errmessage",e=>{var t=e.consumeArgs(1)[0];return console.error(t.reverse().map(r=>r.text).join("")),""});Je("\\show",e=>{var t=e.popToken(),r=t.text;return console.log(t,e.macros.get(r),is[r],pr.math[r],pr.text[r]),""});Je("\\bgroup","{");Je("\\egroup","}");Je("~","\\nobreakspace");Je("\\lq","`");Je("\\rq","'");Je("\\aa","\\r a");Je("\\AA","\\r A");Je("\\textcopyright","\\html@mathml{\\textcircled{c}}{\\char`©}");Je("\\copyright","\\TextOrMath{\\textcopyright}{\\text{\\textcopyright}}");Je("\\textregistered","\\html@mathml{\\textcircled{\\scriptsize R}}{\\char`®}");Je("ℬ","\\mathscr{B}");Je("ℰ","\\mathscr{E}");Je("ℱ","\\mathscr{F}");Je("ℋ","\\mathscr{H}");Je("ℐ","\\mathscr{I}");Je("ℒ","\\mathscr{L}");Je("ℳ","\\mathscr{M}");Je("ℛ","\\mathscr{R}");Je("ℭ","\\mathfrak{C}");Je("ℌ","\\mathfrak{H}");Je("ℨ","\\mathfrak{Z}");Je("\\Bbbk","\\Bbb{k}");Je("\\llap","\\mathllap{\\textrm{#1}}");Je("\\rlap","\\mathrlap{\\textrm{#1}}");Je("\\clap","\\mathclap{\\textrm{#1}}");Je("\\mathstrut","\\vphantom{(}");Je("\\underbar","\\underline{\\text{#1}}");Je("\\not",'\\html@mathml{\\mathrel{\\mathrlap\\@not}\\nobreak}{\\char"338}');Je("\\neq","\\html@mathml{\\mathrel{\\not=}}{\\mathrel{\\char`≠}}");Je("\\ne","\\neq");Je("≠","\\neq");Je("\\notin","\\html@mathml{\\mathrel{{\\in}\\mathllap{/\\mskip1mu}}}{\\mathrel{\\char`∉}}");Je("∉","\\notin");Je("≘","\\html@mathml{\\mathrel{=\\kern{-1em}\\raisebox{0.4em}{$\\scriptsize\\frown$}}}{\\mathrel{\\char`≘}}");Je("≙","\\html@mathml{\\stackrel{\\tiny\\wedge}{=}}{\\mathrel{\\char`≘}}");Je("≚","\\html@mathml{\\stackrel{\\tiny\\vee}{=}}{\\mathrel{\\char`≚}}");Je("≛","\\html@mathml{\\stackrel{\\scriptsize\\star}{=}}{\\mathrel{\\char`≛}}");Je("≝","\\html@mathml{\\stackrel{\\tiny\\mathrm{def}}{=}}{\\mathrel{\\char`≝}}");Je("≞","\\html@mathml{\\stackrel{\\tiny\\mathrm{m}}{=}}{\\mathrel{\\char`≞}}");Je("≟","\\html@mathml{\\stackrel{\\tiny?}{=}}{\\mathrel{\\char`≟}}");Je("⟂","\\perp");Je("‼","\\mathclose{!\\mkern-0.8mu!}");Je("∌","\\notni");Je("⌜","\\ulcorner");Je("⌝","\\urcorner");Je("⌞","\\llcorner");Je("⌟","\\lrcorner");Je("©","\\copyright");Je("®","\\textregistered");Je("\\ulcorner",'\\html@mathml{\\@ulcorner}{\\mathop{\\char"231c}}');Je("\\urcorner",'\\html@mathml{\\@urcorner}{\\mathop{\\char"231d}}');Je("\\llcorner",'\\html@mathml{\\@llcorner}{\\mathop{\\char"231e}}');Je("\\lrcorner",'\\html@mathml{\\@lrcorner}{\\mathop{\\char"231f}}');Je("\\vdots","{\\varvdots\\rule{0pt}{15pt}}");Je("⋮","\\vdots");Je("\\varGamma","\\mathit{\\Gamma}");Je("\\varDelta","\\mathit{\\Delta}");Je("\\varTheta","\\mathit{\\Theta}");Je("\\varLambda","\\mathit{\\Lambda}");Je("\\varXi","\\mathit{\\Xi}");Je("\\varPi","\\mathit{\\Pi}");Je("\\varSigma","\\mathit{\\Sigma}");Je("\\varUpsilon","\\mathit{\\Upsilon}");Je("\\varPhi","\\mathit{\\Phi}");Je("\\varPsi","\\mathit{\\Psi}");Je("\\varOmega","\\mathit{\\Omega}");Je("\\substack","\\begin{subarray}{c}#1\\end{subarray}");Je("\\colon","\\nobreak\\mskip2mu\\mathpunct{}\\mathchoice{\\mkern-3mu}{\\mkern-3mu}{}{}{:}\\mskip6mu\\relax");Je("\\boxed","\\fbox{$\\displaystyle{#1}$}");Je("\\iff","\\DOTSB\\;\\Longleftrightarrow\\;");Je("\\implies","\\DOTSB\\;\\Longrightarrow\\;");Je("\\impliedby","\\DOTSB\\;\\Longleftarrow\\;");Je("\\dddot","{\\overset{\\raisebox{-0.1ex}{\\normalsize ...}}{#1}}");Je("\\ddddot","{\\overset{\\raisebox{-0.1ex}{\\normalsize ....}}{#1}}");var Ym={",":"\\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"},nx=new Set(["bin","rel"]);Je("\\dots",function(e){var t="\\dotso",r=e.expandAfterFuture().text;return r in Ym?t=Ym[r]:(r.slice(0,4)==="\\not"||r in pr.math&&nx.has(pr.math[r].group))&&(t="\\dotsb"),t});var oh={")":!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};Je("\\dotso",function(e){var t=e.future().text;return t in oh?"\\ldots\\,":"\\ldots"});Je("\\dotsc",function(e){var t=e.future().text;return t in oh&&t!==","?"\\ldots\\,":"\\ldots"});Je("\\cdots",function(e){var t=e.future().text;return t in oh?"\\@cdots\\,":"\\@cdots"});Je("\\dotsb","\\cdots");Je("\\dotsm","\\cdots");Je("\\dotsi","\\!\\cdots");Je("\\dotsx","\\ldots\\,");Je("\\DOTSI","\\relax");Je("\\DOTSB","\\relax");Je("\\DOTSX","\\relax");Je("\\tmspace","\\TextOrMath{\\kern#1#3}{\\mskip#1#2}\\relax");Je("\\,","\\tmspace+{3mu}{.1667em}");Je("\\thinspace","\\,");Je("\\>","\\mskip{4mu}");Je("\\:","\\tmspace+{4mu}{.2222em}");Je("\\medspace","\\:");Je("\\;","\\tmspace+{5mu}{.2777em}");Je("\\thickspace","\\;");Je("\\!","\\tmspace-{3mu}{.1667em}");Je("\\negthinspace","\\!");Je("\\negmedspace","\\tmspace-{4mu}{.2222em}");Je("\\negthickspace","\\tmspace-{5mu}{.277em}");Je("\\enspace","\\kern.5em ");Je("\\enskip","\\hskip.5em\\relax");Je("\\quad","\\hskip1em\\relax");Je("\\qquad","\\hskip2em\\relax");Je("\\tag","\\@ifstar\\tag@literal\\tag@paren");Je("\\tag@paren","\\tag@literal{({#1})}");Je("\\tag@literal",e=>{if(e.macros.get("\\df@tag"))throw new It("Multiple \\tag");return"\\gdef\\df@tag{\\text{#1}}"});Je("\\bmod","\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}\\mathbin{\\rm mod}\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}");Je("\\pod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern8mu}{\\mkern8mu}{\\mkern8mu}(#1)");Je("\\pmod","\\pod{{\\rm mod}\\mkern6mu#1}");Je("\\mod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern12mu}{\\mkern12mu}{\\mkern12mu}{\\rm mod}\\,\\,#1");Je("\\newline","\\\\\\relax");Je("\\TeX","\\textrm{\\html@mathml{T\\kern-.1667em\\raisebox{-.5ex}{E}\\kern-.125emX}{TeX}}");var vy=Mt(fi["Main-Regular"][84][1]-.7*fi["Main-Regular"][65][1]);Je("\\LaTeX","\\textrm{\\html@mathml{"+("L\\kern-.36em\\raisebox{"+vy+"}{\\scriptstyle A}")+"\\kern-.15em\\TeX}{LaTeX}}");Je("\\KaTeX","\\textrm{\\html@mathml{"+("K\\kern-.17em\\raisebox{"+vy+"}{\\scriptstyle A}")+"\\kern-.15em\\TeX}{KaTeX}}");Je("\\hspace","\\@ifstar\\@hspacer\\@hspace");Je("\\@hspace","\\hskip #1\\relax");Je("\\@hspacer","\\rule{0pt}{0pt}\\hskip #1\\relax");Je("\\ordinarycolon",":");Je("\\vcentcolon","\\mathrel{\\mathop\\ordinarycolon}");Je("\\dblcolon",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-.9mu}\\vcentcolon}}{\\mathop{\\char"2237}}');Je("\\coloneqq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2254}}');Je("\\Coloneqq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2237\\char"3d}}');Je("\\coloneq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"3a\\char"2212}}');Je("\\Coloneq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"2237\\char"2212}}');Je("\\eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2255}}');Je("\\Eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"3d\\char"2237}}');Je("\\eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2239}}');Je("\\Eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"2212\\char"2237}}');Je("\\colonapprox",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"3a\\char"2248}}');Je("\\Colonapprox",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"2237\\char"2248}}');Je("\\colonsim",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"3a\\char"223c}}');Je("\\Colonsim",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"2237\\char"223c}}');Je("∷","\\dblcolon");Je("∹","\\eqcolon");Je("≔","\\coloneqq");Je("≕","\\eqqcolon");Je("⩴","\\Coloneqq");Je("\\ratio","\\vcentcolon");Je("\\coloncolon","\\dblcolon");Je("\\colonequals","\\coloneqq");Je("\\coloncolonequals","\\Coloneqq");Je("\\equalscolon","\\eqqcolon");Je("\\equalscoloncolon","\\Eqqcolon");Je("\\colonminus","\\coloneq");Je("\\coloncolonminus","\\Coloneq");Je("\\minuscolon","\\eqcolon");Je("\\minuscoloncolon","\\Eqcolon");Je("\\coloncolonapprox","\\Colonapprox");Je("\\coloncolonsim","\\Colonsim");Je("\\simcolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\vcentcolon}");Je("\\simcoloncolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\dblcolon}");Je("\\approxcolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\vcentcolon}");Je("\\approxcoloncolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\dblcolon}");Je("\\notni","\\html@mathml{\\not\\ni}{\\mathrel{\\char`∌}}");Je("\\limsup","\\DOTSB\\operatorname*{lim\\,sup}");Je("\\liminf","\\DOTSB\\operatorname*{lim\\,inf}");Je("\\injlim","\\DOTSB\\operatorname*{inj\\,lim}");Je("\\projlim","\\DOTSB\\operatorname*{proj\\,lim}");Je("\\varlimsup","\\DOTSB\\operatorname*{\\overline{lim}}");Je("\\varliminf","\\DOTSB\\operatorname*{\\underline{lim}}");Je("\\varinjlim","\\DOTSB\\operatorname*{\\underrightarrow{lim}}");Je("\\varprojlim","\\DOTSB\\operatorname*{\\underleftarrow{lim}}");Je("\\gvertneqq","\\html@mathml{\\@gvertneqq}{≩}");Je("\\lvertneqq","\\html@mathml{\\@lvertneqq}{≨}");Je("\\ngeqq","\\html@mathml{\\@ngeqq}{≱}");Je("\\ngeqslant","\\html@mathml{\\@ngeqslant}{≱}");Je("\\nleqq","\\html@mathml{\\@nleqq}{≰}");Je("\\nleqslant","\\html@mathml{\\@nleqslant}{≰}");Je("\\nshortmid","\\html@mathml{\\@nshortmid}{∤}");Je("\\nshortparallel","\\html@mathml{\\@nshortparallel}{∦}");Je("\\nsubseteqq","\\html@mathml{\\@nsubseteqq}{⊈}");Je("\\nsupseteqq","\\html@mathml{\\@nsupseteqq}{⊉}");Je("\\varsubsetneq","\\html@mathml{\\@varsubsetneq}{⊊}");Je("\\varsubsetneqq","\\html@mathml{\\@varsubsetneqq}{⫋}");Je("\\varsupsetneq","\\html@mathml{\\@varsupsetneq}{⊋}");Je("\\varsupsetneqq","\\html@mathml{\\@varsupsetneqq}{⫌}");Je("\\imath","\\html@mathml{\\@imath}{ı}");Je("\\jmath","\\html@mathml{\\@jmath}{ȷ}");Je("\\llbracket","\\html@mathml{\\mathopen{[\\mkern-3.2mu[}}{\\mathopen{\\char`⟦}}");Je("\\rrbracket","\\html@mathml{\\mathclose{]\\mkern-3.2mu]}}{\\mathclose{\\char`⟧}}");Je("⟦","\\llbracket");Je("⟧","\\rrbracket");Je("\\lBrace","\\html@mathml{\\mathopen{\\{\\mkern-3.2mu[}}{\\mathopen{\\char`⦃}}");Je("\\rBrace","\\html@mathml{\\mathclose{]\\mkern-3.2mu\\}}}{\\mathclose{\\char`⦄}}");Je("⦃","\\lBrace");Je("⦄","\\rBrace");Je("\\minuso","\\mathbin{\\html@mathml{{\\mathrlap{\\mathchoice{\\kern{0.145em}}{\\kern{0.145em}}{\\kern{0.1015em}}{\\kern{0.0725em}}\\circ}{-}}}{\\char`⦵}}");Je("⦵","\\minuso");Je("\\darr","\\downarrow");Je("\\dArr","\\Downarrow");Je("\\Darr","\\Downarrow");Je("\\lang","\\langle");Je("\\rang","\\rangle");Je("\\uarr","\\uparrow");Je("\\uArr","\\Uparrow");Je("\\Uarr","\\Uparrow");Je("\\N","\\mathbb{N}");Je("\\R","\\mathbb{R}");Je("\\Z","\\mathbb{Z}");Je("\\alef","\\aleph");Je("\\alefsym","\\aleph");Je("\\Alpha","\\mathrm{A}");Je("\\Beta","\\mathrm{B}");Je("\\bull","\\bullet");Je("\\Chi","\\mathrm{X}");Je("\\clubs","\\clubsuit");Je("\\cnums","\\mathbb{C}");Je("\\Complex","\\mathbb{C}");Je("\\Dagger","\\ddagger");Je("\\diamonds","\\diamondsuit");Je("\\empty","\\emptyset");Je("\\Epsilon","\\mathrm{E}");Je("\\Eta","\\mathrm{H}");Je("\\exist","\\exists");Je("\\harr","\\leftrightarrow");Je("\\hArr","\\Leftrightarrow");Je("\\Harr","\\Leftrightarrow");Je("\\hearts","\\heartsuit");Je("\\image","\\Im");Je("\\infin","\\infty");Je("\\Iota","\\mathrm{I}");Je("\\isin","\\in");Je("\\Kappa","\\mathrm{K}");Je("\\larr","\\leftarrow");Je("\\lArr","\\Leftarrow");Je("\\Larr","\\Leftarrow");Je("\\lrarr","\\leftrightarrow");Je("\\lrArr","\\Leftrightarrow");Je("\\Lrarr","\\Leftrightarrow");Je("\\Mu","\\mathrm{M}");Je("\\natnums","\\mathbb{N}");Je("\\Nu","\\mathrm{N}");Je("\\Omicron","\\mathrm{O}");Je("\\plusmn","\\pm");Je("\\rarr","\\rightarrow");Je("\\rArr","\\Rightarrow");Je("\\Rarr","\\Rightarrow");Je("\\real","\\Re");Je("\\reals","\\mathbb{R}");Je("\\Reals","\\mathbb{R}");Je("\\Rho","\\mathrm{P}");Je("\\sdot","\\cdot");Je("\\sect","\\S");Je("\\spades","\\spadesuit");Je("\\sub","\\subset");Je("\\sube","\\subseteq");Je("\\supe","\\supseteq");Je("\\Tau","\\mathrm{T}");Je("\\thetasym","\\vartheta");Je("\\weierp","\\wp");Je("\\Zeta","\\mathrm{Z}");Je("\\argmin","\\DOTSB\\operatorname*{arg\\,min}");Je("\\argmax","\\DOTSB\\operatorname*{arg\\,max}");Je("\\plim","\\DOTSB\\mathop{\\operatorname{plim}}\\limits");Je("\\bra","\\mathinner{\\langle{#1}|}");Je("\\ket","\\mathinner{|{#1}\\rangle}");Je("\\braket","\\mathinner{\\langle{#1}\\rangle}");Je("\\Bra","\\left\\langle#1\\right|");Je("\\Ket","\\left|#1\\right\\rangle");var yy=e=>t=>{var r=t.consumeArg().tokens,n=t.consumeArg().tokens,i=t.consumeArg().tokens,s=t.consumeArg().tokens,l=t.macros.get("|"),$=t.macros.get("\\|");t.macros.beginGroup();var h=A=>N=>{e&&(N.macros.set("|",l),i.length&&N.macros.set("\\|",$));var U=A;if(!A&&i.length){var O=N.future();O.text==="|"&&(N.popToken(),U=!0)}return{tokens:U?i:n,numArgs:0}};t.macros.set("|",h(!1)),i.length&&t.macros.set("\\|",h(!0));var d=t.consumeArg().tokens,w=t.expandTokens([...s,...d,...r]);return t.macros.endGroup(),{tokens:w.reverse(),numArgs:0}};Je("\\bra@ket",yy(!1));Je("\\bra@set",yy(!0));Je("\\Braket","\\bra@ket{\\left\\langle}{\\,\\middle\\vert\\,}{\\,\\middle\\vert\\,}{\\right\\rangle}");Je("\\Set","\\bra@set{\\left\\{\\:}{\\;\\middle\\vert\\;}{\\;\\middle\\Vert\\;}{\\:\\right\\}}");Je("\\set","\\bra@set{\\{\\,}{\\mid}{}{\\,\\}}");Je("\\angln","{\\angl n}");Je("\\blue","\\textcolor{##6495ed}{#1}");Je("\\orange","\\textcolor{##ffa500}{#1}");Je("\\pink","\\textcolor{##ff00af}{#1}");Je("\\red","\\textcolor{##df0030}{#1}");Je("\\green","\\textcolor{##28ae7b}{#1}");Je("\\gray","\\textcolor{gray}{#1}");Je("\\purple","\\textcolor{##9d38bd}{#1}");Je("\\blueA","\\textcolor{##ccfaff}{#1}");Je("\\blueB","\\textcolor{##80f6ff}{#1}");Je("\\blueC","\\textcolor{##63d9ea}{#1}");Je("\\blueD","\\textcolor{##11accd}{#1}");Je("\\blueE","\\textcolor{##0c7f99}{#1}");Je("\\tealA","\\textcolor{##94fff5}{#1}");Je("\\tealB","\\textcolor{##26edd5}{#1}");Je("\\tealC","\\textcolor{##01d1c1}{#1}");Je("\\tealD","\\textcolor{##01a995}{#1}");Je("\\tealE","\\textcolor{##208170}{#1}");Je("\\greenA","\\textcolor{##b6ffb0}{#1}");Je("\\greenB","\\textcolor{##8af281}{#1}");Je("\\greenC","\\textcolor{##74cf70}{#1}");Je("\\greenD","\\textcolor{##1fab54}{#1}");Je("\\greenE","\\textcolor{##0d923f}{#1}");Je("\\goldA","\\textcolor{##ffd0a9}{#1}");Je("\\goldB","\\textcolor{##ffbb71}{#1}");Je("\\goldC","\\textcolor{##ff9c39}{#1}");Je("\\goldD","\\textcolor{##e07d10}{#1}");Je("\\goldE","\\textcolor{##a75a05}{#1}");Je("\\redA","\\textcolor{##fca9a9}{#1}");Je("\\redB","\\textcolor{##ff8482}{#1}");Je("\\redC","\\textcolor{##f9685d}{#1}");Je("\\redD","\\textcolor{##e84d39}{#1}");Je("\\redE","\\textcolor{##bc2612}{#1}");Je("\\maroonA","\\textcolor{##ffbde0}{#1}");Je("\\maroonB","\\textcolor{##ff92c6}{#1}");Je("\\maroonC","\\textcolor{##ed5fa6}{#1}");Je("\\maroonD","\\textcolor{##ca337c}{#1}");Je("\\maroonE","\\textcolor{##9e034e}{#1}");Je("\\purpleA","\\textcolor{##ddd7ff}{#1}");Je("\\purpleB","\\textcolor{##c6b9fc}{#1}");Je("\\purpleC","\\textcolor{##aa87ff}{#1}");Je("\\purpleD","\\textcolor{##7854ab}{#1}");Je("\\purpleE","\\textcolor{##543b78}{#1}");Je("\\mintA","\\textcolor{##f5f9e8}{#1}");Je("\\mintB","\\textcolor{##edf2df}{#1}");Je("\\mintC","\\textcolor{##e0e5cc}{#1}");Je("\\grayA","\\textcolor{##f6f7f7}{#1}");Je("\\grayB","\\textcolor{##f0f1f2}{#1}");Je("\\grayC","\\textcolor{##e3e5e6}{#1}");Je("\\grayD","\\textcolor{##d6d8da}{#1}");Je("\\grayE","\\textcolor{##babec2}{#1}");Je("\\grayF","\\textcolor{##888d93}{#1}");Je("\\grayG","\\textcolor{##626569}{#1}");Je("\\grayH","\\textcolor{##3b3e40}{#1}");Je("\\grayI","\\textcolor{##21242c}{#1}");Je("\\kaBlue","\\textcolor{##314453}{#1}");Je("\\kaGreen","\\textcolor{##71B307}{#1}");var by={"^":!0,_:!0,"\\limits":!0,"\\nolimits":!0};class ix{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 tx(rx,r.macros),this.mode=n,this.stack=[]}feed(t){this.lexer=new Wm(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 Tn("EOF",n.loc)),this.pushTokens(i),new Tn("",_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,l=0,$=0;do{if(s=this.popToken(),r.push(s),s.text==="{")++l;else if(s.text==="}"){if(--l,l===-1)throw new It("Extra }",s)}else if(s.text==="EOF")throw new It("Unexpected end of input in a macro argument, expected '"+(t&&n?t[$]:"}")+"'",s);if(t&&n)if((l===0||l===1&&t[$]==="{")&&s.text===t[$]){if(++$,$===t.length){r.splice(-$,$);break}}else $=0}while(l!==0||n);return i.text==="{"&&r[r.length-1].text==="}"&&(r.pop(),r.shift()),r.reverse(),{tokens:r,start:i,end:s}}consumeArgs(t,r){if(r){if(r.length!==t+1)throw new It("The length of delimiters doesn't match the number of args!");for(var n=r[0],i=0;i<n.length;i++){var s=this.popToken();if(n[i]!==s.text)throw new It("Use of the macro doesn't match its definition",s)}}for(var l=[],$=0;$<t;$++)l.push(this.consumeArg(r&&r[$+1]).tokens);return l}countExpansion(t){if(this.expansionCount+=t,this.expansionCount>this.settings.maxExpand)throw new It("Too many expansions: infinite loop or need to increase maxExpand setting")}expandOnce(t){var r=this.popToken(),n=r.text,i=r.noexpand?null:this._getExpansion(n);if(i==null||t&&i.unexpandable){if(t&&i==null&&n[0]==="\\"&&!this.isDefined(n))throw new It("Undefined control sequence: "+n);return this.pushToken(r),!1}this.countExpansion(1);var s=i.tokens,l=this.consumeArgs(i.numArgs,i.delimiters);if(i.numArgs){s=s.slice();for(var $=s.length-1;$>=0;--$){var h=s[$];if(h.text==="#"){if($===0)throw new It("Incomplete placeholder at end of macro body",h);if(h=s[--$],h.text==="#")s.splice($+1,1);else if(/^[1-9]$/.test(h.text))s.splice($,2,...l[+h.text-1]);else throw new It("Not a valid argument number",h)}}}return this.pushTokens(s),s.length}expandAfterFuture(){return this.expandOnce(),this.future()}expandNextToken(){for(;;)if(this.expandOnce()===!1){var t=this.stack.pop();return t.treatAsRelax&&(t.text="\\relax"),t}}expandMacro(t){return this.macros.has(t)?this.expandTokens([new Tn(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 l=i.replace(/##/g,"");l.includes("#"+(s+1));)++s;for(var $=new Wm(i,this.settings),h=[],d=$.lex();d.text!=="EOF";)h.push(d),d=$.lex();h.reverse();var w={tokens:h,numArgs:s};return w}return i}isDefined(t){return this.macros.has(t)||is.hasOwnProperty(t)||pr.math.hasOwnProperty(t)||pr.text.hasOwnProperty(t)||by.hasOwnProperty(t)}isExpandable(t){var r=this.macros.get(t);return r!=null?typeof r=="string"||typeof r=="function"||!r.unexpandable:is.hasOwnProperty(t)&&!is[t].primitive}}var Gm=/^[₊₋₌₍₎₀₁₂₃₄₅₆₇₈₉ₐₑₕᵢⱼₖₗₘₙₒₚᵣₛₜᵤᵥₓᵦᵧᵨᵩᵪ]/,Ko=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","ᵝ":"β","ᵞ":"γ","ᵟ":"δ","ᵠ":"ϕ","ᵡ":"χ","ᶿ":"θ"}),W$={"́":{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"}},Km={á:"á",à:"à",ä:"ä",ǟ:"ǟ",ã:"ã",ā:"ā",ă:"ă",ắ:"ắ",ằ:"ằ",ẵ:"ẵ",ǎ:"ǎ",â:"â",ấ:"ấ",ầ:"ầ",ẫ:"ẫ",ȧ:"ȧ",ǡ:"ǡ",å:"å",ǻ:"ǻ",ḃ:"ḃ",ć:"ć",ḉ:"ḉ",č:"č",ĉ:"ĉ",ċ:"ċ",ç:"ç",ď:"ď",ḋ:"ḋ",ḑ:"ḑ",é:"é",è:"è",ë:"ë",ẽ:"ẽ",ē:"ē",ḗ:"ḗ",ḕ:"ḕ",ĕ:"ĕ",ḝ:"ḝ",ě:"ě",ê:"ê",ế:"ế",ề:"ề",ễ:"ễ",ė:"ė",ȩ:"ȩ",ḟ:"ḟ",ǵ:"ǵ",ḡ:"ḡ",ğ:"ğ",ǧ:"ǧ",ĝ:"ĝ",ġ:"ġ",ģ:"ģ",ḧ:"ḧ",ȟ:"ȟ",ĥ:"ĥ",ḣ:"ḣ",ḩ:"ḩ",í:"í",ì:"ì",ï:"ï",ḯ:"ḯ",ĩ:"ĩ",ī:"ī",ĭ:"ĭ",ǐ:"ǐ",î:"î",ǰ:"ǰ",ĵ:"ĵ",ḱ:"ḱ",ǩ:"ǩ",ķ:"ķ",ĺ:"ĺ",ľ:"ľ",ļ:"ļ",ḿ:"ḿ",ṁ:"ṁ",ń:"ń",ǹ:"ǹ",ñ:"ñ",ň:"ň",ṅ:"ṅ",ņ:"ņ",ó:"ó",ò:"ò",ö:"ö",ȫ:"ȫ",õ:"õ",ṍ:"ṍ",ṏ:"ṏ",ȭ:"ȭ",ō:"ō",ṓ:"ṓ",ṑ:"ṑ",ŏ:"ŏ",ǒ:"ǒ",ô:"ô",ố:"ố",ồ:"ồ",ỗ:"ỗ",ȯ:"ȯ",ȱ:"ȱ",ő:"ő",ṕ:"ṕ",ṗ:"ṗ",ŕ:"ŕ",ř:"ř",ṙ:"ṙ",ŗ:"ŗ",ś:"ś",ṥ:"ṥ",š:"š",ṧ:"ṧ",ŝ:"ŝ",ṡ:"ṡ",ş:"ş",ẗ:"ẗ",ť:"ť",ṫ:"ṫ",ţ:"ţ",ú:"ú",ù:"ù",ü:"ü",ǘ:"ǘ",ǜ:"ǜ",ǖ:"ǖ",ǚ:"ǚ",ũ:"ũ",ṹ:"ṹ",ū:"ū",ṻ:"ṻ",ŭ:"ŭ",ǔ:"ǔ",û:"û",ů:"ů",ű:"ű",ṽ:"ṽ",ẃ:"ẃ",ẁ:"ẁ",ẅ:"ẅ",ŵ:"ŵ",ẇ:"ẇ",ẘ:"ẘ",ẍ:"ẍ",ẋ:"ẋ",ý:"ý",ỳ:"ỳ",ÿ:"ÿ",ỹ:"ỹ",ȳ:"ȳ",ŷ:"ŷ",ẏ:"ẏ",ẙ:"ẙ",ź:"ź",ž:"ž",ẑ:"ẑ",ż:"ż",Á:"Á",À:"À",Ä:"Ä",Ǟ:"Ǟ",Ã:"Ã",Ā:"Ā",Ă:"Ă",Ắ:"Ắ",Ằ:"Ằ",Ẵ:"Ẵ",Ǎ:"Ǎ",Â:"Â",Ấ:"Ấ",Ầ:"Ầ",Ẫ:"Ẫ",Ȧ:"Ȧ",Ǡ:"Ǡ",Å:"Å",Ǻ:"Ǻ",Ḃ:"Ḃ",Ć:"Ć",Ḉ:"Ḉ",Č:"Č",Ĉ:"Ĉ",Ċ:"Ċ",Ç:"Ç",Ď:"Ď",Ḋ:"Ḋ",Ḑ:"Ḑ",É:"É",È:"È",Ë:"Ë",Ẽ:"Ẽ",Ē:"Ē",Ḗ:"Ḗ",Ḕ:"Ḕ",Ĕ:"Ĕ",Ḝ:"Ḝ",Ě:"Ě",Ê:"Ê",Ế:"Ế",Ề:"Ề",Ễ:"Ễ",Ė:"Ė",Ȩ:"Ȩ",Ḟ:"Ḟ",Ǵ:"Ǵ",Ḡ:"Ḡ",Ğ:"Ğ",Ǧ:"Ǧ",Ĝ:"Ĝ",Ġ:"Ġ",Ģ:"Ģ",Ḧ:"Ḧ",Ȟ:"Ȟ",Ĥ:"Ĥ",Ḣ:"Ḣ",Ḩ:"Ḩ",Í:"Í",Ì:"Ì",Ï:"Ï",Ḯ:"Ḯ",Ĩ:"Ĩ",Ī:"Ī",Ĭ:"Ĭ",Ǐ:"Ǐ",Î:"Î",İ:"İ",Ĵ:"Ĵ",Ḱ:"Ḱ",Ǩ:"Ǩ",Ķ:"Ķ",Ĺ:"Ĺ",Ľ:"Ľ",Ļ:"Ļ",Ḿ:"Ḿ",Ṁ:"Ṁ",Ń:"Ń",Ǹ:"Ǹ",Ñ:"Ñ",Ň:"Ň",Ṅ:"Ṅ",Ņ:"Ņ",Ó:"Ó",Ò:"Ò",Ö:"Ö",Ȫ:"Ȫ",Õ:"Õ",Ṍ:"Ṍ",Ṏ:"Ṏ",Ȭ:"Ȭ",Ō:"Ō",Ṓ:"Ṓ",Ṑ:"Ṑ",Ŏ:"Ŏ",Ǒ:"Ǒ",Ô:"Ô",Ố:"Ố",Ồ:"Ồ",Ỗ:"Ỗ",Ȯ:"Ȯ",Ȱ:"Ȱ",Ő:"Ő",Ṕ:"Ṕ",Ṗ:"Ṗ",Ŕ:"Ŕ",Ř:"Ř",Ṙ:"Ṙ",Ŗ:"Ŗ",Ś:"Ś",Ṥ:"Ṥ",Š:"Š",Ṧ:"Ṧ",Ŝ:"Ŝ",Ṡ:"Ṡ",Ş:"Ş",Ť:"Ť",Ṫ:"Ṫ",Ţ:"Ţ",Ú:"Ú",Ù:"Ù",Ü:"Ü",Ǘ:"Ǘ",Ǜ:"Ǜ",Ǖ:"Ǖ",Ǚ:"Ǚ",Ũ:"Ũ",Ṹ:"Ṹ",Ū:"Ū",Ṻ:"Ṻ",Ŭ:"Ŭ",Ǔ:"Ǔ",Û:"Û",Ů:"Ů",Ű:"Ű",Ṽ:"Ṽ",Ẃ:"Ẃ",Ẁ:"Ẁ",Ẅ:"Ẅ",Ŵ:"Ŵ",Ẇ:"Ẇ",Ẍ:"Ẍ",Ẋ:"Ẋ",Ý:"Ý",Ỳ:"Ỳ",Ÿ:"Ÿ",Ỹ:"Ỹ",Ȳ:"Ȳ",Ŷ:"Ŷ",Ẏ:"Ẏ",Ź:"Ź",Ž:"Ž",Ẑ:"Ẑ",Ż:"Ż",ά:"ά",ὰ:"ὰ",ᾱ:"ᾱ",ᾰ:"ᾰ",έ:"έ",ὲ:"ὲ",ή:"ή",ὴ:"ὴ",ί:"ί",ὶ:"ὶ",ϊ:"ϊ",ΐ:"ΐ",ῒ:"ῒ",ῑ:"ῑ",ῐ:"ῐ",ό:"ό",ὸ:"ὸ",ύ:"ύ",ὺ:"ὺ",ϋ:"ϋ",ΰ:"ΰ",ῢ:"ῢ",ῡ:"ῡ",ῠ:"ῠ",ώ:"ώ",ὼ:"ὼ",Ύ:"Ύ",Ὺ:"Ὺ",Ϋ:"Ϋ",Ῡ:"Ῡ",Ῠ:"Ῠ",Ώ:"Ώ",Ὼ:"Ὼ"};class Wc{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 ix(t,r,this.mode),this.settings=r,this.leftrightDepth=0,this.nextToken=null}expect(t,r){if(r===void 0&&(r=!0),this.fetch().text!==t)throw new It("Expected '"+t+"', got '"+this.fetch().text+"'",this.fetch());r&&this.consume()}consume(){this.nextToken=null}fetch(){return this.nextToken==null&&(this.nextToken=this.gullet.expandNextToken()),this.nextToken}switchMode(t){this.mode=t,this.gullet.switchMode(t)}parse(){this.settings.globalGroup||this.gullet.beginGroup(),this.settings.colorIsTextColor&&this.gullet.macros.set("\\color","\\textcolor");try{var t=this.parseExpression(!1);return this.expect("EOF"),this.settings.globalGroup||this.gullet.endGroup(),t}finally{this.gullet.endGroups()}}subparse(t){var r=this.nextToken;this.consume(),this.gullet.pushToken(new Tn("}")),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(Wc.endOfExpression.has(i.text)||r&&i.text===r||t&&is[i.text]&&is[i.text].infix)break;var s=this.parseAtom(r);if(s){if(s.type==="internal")continue}else break;n.push(s)}return this.mode==="text"&&this.formLigatures(n),this.handleInfixNodes(n)}handleInfixNodes(t){for(var r=-1,n,i=0;i<t.length;i++){var s=t[i];if(s.type==="infix"){if(r!==-1)throw new It("only one infix operator per group",s.token);r=i,n=s.replaceWith}}if(r!==-1&&n){var l,$,h=t.slice(0,r),d=t.slice(r+1);h.length===1&&h[0].type==="ordgroup"?l=h[0]:l={type:"ordgroup",mode:this.mode,body:h},d.length===1&&d[0].type==="ordgroup"?$=d[0]:$={type:"ordgroup",mode:this.mode,body:d};var w;return n==="\\\\abovefrac"?w=this.callFunction(n,[l,t[r],$],[]):w=this.callFunction(n,[l,$],[]),[w]}else return t}handleSupSubscript(t){var r=this.fetch(),n=r.text;this.consume(),this.consumeSpaces();var i;do{var s;i=this.parseGroup(t)}while(((s=i)==null?void 0:s.type)==="internal");if(!i)throw new It("Expected group after '"+n+"'",r);return i}formatUnsupportedCmd(t){for(var r=[],n=0;n<t.length;n++)r.push({type:"textord",mode:"text",text:t[n]});var i={type:"text",mode:this.mode,body:r},s={type:"color",mode:this.mode,color:this.settings.errorColor,body:[i]};return s}parseAtom(t){var r=this.parseGroup("atom",t);if(r?.type==="internal"||this.mode==="text")return r;for(var n,i;;){this.consumeSpaces();var s=this.fetch();if(s.text==="\\limits"||s.text==="\\nolimits"){if(r&&r.type==="op"){var l=s.text==="\\limits";r.limits=l,r.alwaysHandleSupSub=!0}else if(r&&r.type==="operatorname")r.alwaysHandleSupSub&&(r.limits=s.text==="\\limits");else throw new It("Limit controls must follow a math operator",s);this.consume()}else if(s.text==="^"){if(n)throw new It("Double superscript",s);n=this.handleSupSubscript("superscript")}else if(s.text==="_"){if(i)throw new It("Double subscript",s);i=this.handleSupSubscript("subscript")}else if(s.text==="'"){if(n)throw new It("Double superscript",s);var $={type:"textord",mode:this.mode,text:"\\prime"},h=[$];for(this.consume();this.fetch().text==="'";)h.push($),this.consume();this.fetch().text==="^"&&h.push(this.handleSupSubscript("superscript")),n={type:"ordgroup",mode:this.mode,body:h}}else if(Ko[s.text]){var d=Gm.test(s.text),w=[];for(w.push(new Tn(Ko[s.text])),this.consume();;){var A=this.fetch().text;if(!Ko[A]||Gm.test(A)!==d)break;w.unshift(new Tn(Ko[A])),this.consume()}var N=this.subparse(w);d?i={type:"ordgroup",mode:"math",body:N}:n={type:"ordgroup",mode:"math",body:N}}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=is[i];if(!s)return null;if(this.consume(),r&&r!=="atom"&&!s.allowedInArgument)throw new It("Got function '"+i+"' with no arguments"+(r?" as "+r:""),n);if(this.mode==="text"&&!s.allowedInText)throw new It("Can't use function '"+i+"' in text mode",n);if(this.mode==="math"&&s.allowedInMath===!1)throw new It("Can't use function '"+i+"' in math mode",n);var{args:l,optArgs:$}=this.parseArguments(i,s);return this.callFunction(i,l,$,n,t)}callFunction(t,r,n,i,s){var l={funcName:t,parser:this,token:i,breakOnTokenText:s},$=is[t];if($&&$.handler)return $.handler(l,r,n);throw new It("No function handler for "+t)}parseArguments(t,r){var n=r.numArgs+r.numOptionalArgs;if(n===0)return{args:[],optArgs:[]};for(var i=[],s=[],l=0;l<n;l++){var $=r.argTypes&&r.argTypes[l],h=l<r.numOptionalArgs;("primitive"in r&&r.primitive&&$==null||r.type==="sqrt"&&l===1&&s[0]==null)&&($="primitive");var d=this.parseGroupOfType("argument to '"+t+"'",$,h);if(h)s.push(d);else if(d!=null)i.push(d);else throw new It("Null argument, please report this as a bug")}return{args:i,optArgs:s}}parseGroupOfType(t,r,n){switch(r){case"color":return this.parseColorGroup(n);case"size":return this.parseSizeGroup(n);case"url":return this.parseUrlGroup(n);case"math":case"text":return this.parseArgumentGroup(n,r);case"hbox":{var i=this.parseArgumentGroup(n,"text");return i!=null?{type:"styling",mode:i.mode,body:[i],style:"text",resetFont:!0}:null}case"raw":{var s=this.parseStringGroup("raw",n);return s!=null?{type:"raw",mode:"text",string:s.text}:null}case"primitive":{if(n)throw new It("A primitive argument cannot be optional");var l=this.parseGroup(t);if(l==null)throw new It("Expected group as "+t,this.fetch());return l}case"original":case null:case void 0:return this.parseArgumentGroup(n);default:throw new It("Unknown group type as "+t,this.fetch())}}consumeSpaces(){for(;this.fetch().text===" ";)this.consume()}parseStringGroup(t,r){var n=this.gullet.scanArgument(r);if(n==null)return null;for(var i="",s;(s=this.fetch()).text!=="EOF";)i+=s.text,this.consume();return this.consume(),n.text=i,n}parseRegexGroup(t,r){for(var n=this.fetch(),i=n,s="",l;(l=this.fetch()).text!=="EOF"&&t.test(s+l.text);)i=l,s+=i.text,this.consume();if(s==="")throw new It("Invalid "+r+": '"+n.text+"'",n);return n.range(i,s)}parseColorGroup(t){var r=this.parseStringGroup("color",t);if(r==null)return null;var n=/^(#[a-f0-9]{3,4}|#[a-f0-9]{6}|#[a-f0-9]{8}|[a-f0-9]{6}|[a-z]+)$/i.exec(r.text);if(!n)throw new It("Invalid color: '"+r.text+"'",r);var i=n[0];return/^[0-9a-f]{6}$/i.test(i)&&(i="#"+i),{type:"color-token",mode:this.mode,color:i}}parseSizeGroup(t){var r,n=!1;if(this.gullet.consumeSpaces(),!t&&this.gullet.future().text!=="{"?r=this.parseRegexGroup(/^[-+]? *(?:$|\d+|\d+\.\d*|\.\d*) *[a-z]{0,2} *$/,"size"):r=this.parseStringGroup("size",t),!r)return null;!t&&r.text.length===0&&(r.text="0pt",n=!0);var i=/([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec(r.text);if(!i)throw new It("Invalid size: '"+r.text+"'",r);var s={number:+(i[1]+i[2]),unit:i[3]};if(!Tv(s))throw new It("Invalid unit: '"+s.unit+"'",r);return{type:"size",mode:this.mode,value:s,isBlank:n}}parseUrlGroup(t){this.gullet.lexer.setCatcode("%",13),this.gullet.lexer.setCatcode("~",12);var r=this.parseStringGroup("url",t);if(this.gullet.lexer.setCatcode("%",14),this.gullet.lexer.setCatcode("~",13),r==null)return null;var n=r.text.replace(/\\([#$%&~_^{}])/g,"$1");return{type:"url",mode:this.mode,url:n}}parseArgumentGroup(t,r){var n=this.gullet.scanArgument(t);if(n==null)return null;var i=this.mode;r&&this.switchMode(r),this.gullet.beginGroup();var s=this.parseExpression(!1,"EOF");this.expect("EOF"),this.gullet.endGroup();var l={type:"ordgroup",mode:this.mode,loc:n.loc,body:s};return r&&this.switchMode(i),l}parseGroup(t,r){var n=this.fetch(),i=n.text,s;if(i==="{"||i==="\\begingroup"){this.consume();var l=i==="{"?"}":"\\endgroup";this.gullet.beginGroup();var $=this.parseExpression(!1,l),h=this.fetch();this.expect(l),this.gullet.endGroup(),s={type:"ordgroup",mode:this.mode,loc:_n.range(n,h),body:$,semisimple:i==="\\begingroup"||void 0}}else if(s=this.parseFunction(r,t)||this.parseSymbol(),s==null&&i[0]==="\\"&&!by.hasOwnProperty(i)){if(this.settings.throwOnError)throw new It("Undefined control sequence: "+i,n);s=this.formatUnsupportedCmd(i),this.consume()}return s}formLigatures(t){for(var r=t.length-1,n=0;n<r;++n){var i=t[n];if(i.type==="textord"){var s=i.text,l=t[n+1];if(!(!l||l.type!=="textord")){if(s==="-"&&l.text==="-"){var $=t[n+2];n+1<r&&$&&$.type==="textord"&&$.text==="-"?(t.splice(n,3,{type:"textord",mode:"text",loc:_n.range(i,$),text:"---"}),r-=2):(t.splice(n,2,{type:"textord",mode:"text",loc:_n.range(i,l),text:"--"}),r-=1)}(s==="'"||s==="`")&&l.text===s&&(t.splice(n,2,{type:"textord",mode:"text",loc:_n.range(i,l),text:s+s}),r-=1)}}}}parseSymbol(){var t=this.fetch(),r=t.text;if(/^\\verb[^a-zA-Z]/.test(r)){this.consume();var n=r.slice(5),i=n.charAt(0)==="*";if(i&&(n=n.slice(1)),n.length<2||n.charAt(0)!==n.slice(-1))throw new It(`\\verb assertion failed --
|
|
339
|
-
please report what input caused this bug`);return n=n.slice(1,-1),{type:"verb",mode:"text",body:n,star:i}}Km.hasOwnProperty(r[0])&&!pr[this.mode][r[0]]&&(this.settings.strict&&this.mode==="math"&&this.settings.reportNonstrict("unicodeTextInMathMode",'Accented Unicode text character "'+r[0]+'" used in math mode',t),r=Km[r[0]]+r.slice(1));var s=O7.exec(r);s&&(r=r.substring(0,s.index),r==="i"?r="ı":r==="j"&&(r="ȷ"));var l;if(pr[this.mode][r]){this.settings.strict&&this.mode==="math"&&s0.includes(r)&&this.settings.reportNonstrict("unicodeTextInMathMode",'Latin-1/Unicode text character "'+r[0]+'" used in math mode',t);var $=pr[this.mode][r].group,h=_n.range(t),d;y7($)?d={type:"atom",mode:this.mode,family:$,loc:h,text:r}:d={type:$,mode:this.mode,loc:h,text:r},l=d}else if(r.charCodeAt(0)>=128)this.settings.strict&&(Cv(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)),l={type:"textord",mode:"text",loc:_n.range(t),text:r};else return null;if(this.consume(),s)for(var w=0;w<s[0].length;w++){var A=s[0][w];if(!W$[A])throw new It("Unknown accent ' "+A+"'",t);var N=W$[A][this.mode]||W$[A].text;if(!N)throw new It("Accent "+A+" unsupported in "+this.mode+" mode",t);l={type:"accent",mode:this.mode,loc:_n.range(t),label:N,isStretchy:!1,isShifty:!0,base:l}}return l}}Wc.endOfExpression=new Set(["}","\\endgroup","\\end","\\right","&"]);var uh=function(t,r){if(!(typeof t=="string"||t instanceof String))throw new TypeError("KaTeX can only parse string typed expression");var n=new Wc(t,r);delete n.gullet.macros.current["\\df@tag"];var i=n.parse();if(delete n.gullet.macros.current["\\current@color"],delete n.gullet.macros.current["\\color"],n.gullet.macros.get("\\df@tag")){if(!r.displayMode)throw new It("\\tag works only in display equations");i=[{type:"tag",mode:"text",body:i,tag:n.subparse([new Tn("\\df@tag")])}]}return i},xy=function(t,r,n){r.textContent="";var i=ch(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."),xy=function(){throw new It("KaTeX doesn't work in quirks mode.")});var sx=function(t,r){var n=ch(t,r).toMarkup();return n},ax=function(t,r){var n=new Xd(r);return uh(t,n)},wy=function(t,r,n){if(n.throwOnError||!(t instanceof It))throw t;var i=Ct(["katex-error"],[new Nn(r)]);return i.setAttribute("title",t.toString()),i.setAttribute("style","color:"+n.errorColor),i},ch=function(t,r){var n=new Xd(r);try{var i=uh(t,n);return f7(i,t,n)}catch(s){return wy(s,t,n)}},lx=function(t,r){var n=new Xd(r);try{var i=uh(t,n);return d7(i,t,n)}catch(s){return wy(s,t,n)}},ox="0.16.47",ux={Span:el,Anchor:Nc,SymbolNode:Nn,SvgNode:Fi,PathNode:_s,LineNode:i0},cx={version:ox,render:xy,renderToString:sx,ParseError:It,SETTINGS_SCHEMA:t0,__parse:ax,__renderToDomTree:ch,__renderToHTMLTree:lx,__setFontMetrics:G6,__defineSymbol:ve,__defineFunction:Dt,__defineMacro:Je,__domTree:ux};function di(e,t){return cx.renderToString(String(e??""),{displayMode:t,throwOnError:!1})}function $x({node:e}){return le.jsxs("div",{className:"text",children:[e.title&&le.jsx("h1",{className:"chapter-title",children:e.title}),e.description&&le.jsx("p",{className:"chapter-subtitle",children:e.description}),le.jsx("div",{className:"markup",dangerouslySetInnerHTML:{__html:di(vi(e.value),!0)}})]})}function fx({chunk:e}){return le.jsx("div",{className:"markup",dangerouslySetInnerHTML:{__html:di(e.value,!0)}})}const Xm={path:null,href:null},dx=e=>/^[a-z][a-z0-9+.-]*:/i.test(e);function hx(e,t){return Wn([...jr(e),...jr(t)])}function Qm(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 ky(e,t=":"){const r=e.trim();return r?r.startsWith("::")?{path:Wn(jr(r.slice(2))),href:null}:r.startsWith(":")?{path:hx(t,r),href:null}:r.startsWith("//")?{path:Wn(Qm(r)),href:null}:dx(r)?{path:null,href:r}:r.startsWith("/")?{path:Wn([...jr(t),...Qm(r)]),href:null}:Xm:Xm}function px({target:e,documentPath:t,onNavigate:r,children:n}){const{path:i,href:s}=ky(e,t);return s?le.jsx("a",{className:"extlink",href:s,target:"_blank",rel:"noopener noreferrer",children:n}):i?le.jsx("a",{className:"descend",href:i,onClick:l=>{l.preventDefault(),r(i)},children:n}):le.jsx(le.Fragment,{children:n})}const mx=/\.(mp4|webm|ogv|mov|m4v)$/i,_x=/\.(mp3|ogg|oga|wav|flac|m4a|aac)$/i,gx=/\.(png|jpe?g|gif|webp|avif|bmp|ico|svg)$/i;function Jm(e){return mx.test(e)?"video":_x.test(e)?"audio":gx.test(e)?"image":null}function vx(e){if(!e)return null;if(/^\d+s?$/.test(e))return Number(e.replace(/s$/,""));const t=/^(?:(\d+)h)?(?:(\d+)m)?(?:(\d+)s)?$/.exec(e);return!t||!t[0]?null:Number(t[1]??0)*3600+Number(t[2]??0)*60+Number(t[3]??0)||null}function yx(e){const t=e.hostname.replace(/^www\.|^m\./,""),r=e.pathname.split("/").filter(Boolean);return t==="youtu.be"?r[0]??null:t!=="youtube.com"&&t!=="youtube-nocookie.com"?null:r[0]==="watch"?e.searchParams.get("v"):r[0]==="embed"||r[0]==="shorts"||r[0]==="live"?r[1]??null:null}function bx(e){const t=e.hostname.replace(/^www\./,""),r=e.pathname.split("/").filter(Boolean);return t==="vimeo.com"?/^\d+$/.test(r[0]??"")?r[0]:null:t==="player.vimeo.com"&&r[0]==="video"&&/^\d+$/.test(r[1]??"")?r[1]:null}function xx(e){const t=vx(e.searchParams.get("t")??e.searchParams.get("start")),r=yx(e);if(r){const i=t?`?start=${t}`:"";return{kind:"iframe",provider:"youtube",src:`https://www.youtube-nocookie.com/embed/${encodeURIComponent(r)}${i}`,poster:`https://i.ytimg.com/vi/${encodeURIComponent(r)}/hqdefault.jpg`}}const n=bx(e);if(n){const i=t?`?dnt=1#t=${t}s`:"?dnt=1";return{kind:"iframe",provider:"vimeo",src:`https://player.vimeo.com/video/${n}${i}`,poster:null}}return null}function $h(e,t){const{path:r,href:n}=ky(e,t);if(r){const $=Jm(r);return $?{kind:$,src:Pi(r),path:r}:null}if(!n)return null;let i;try{i=new URL(n)}catch{return null}if(i.protocol!=="http:"&&i.protocol!=="https:")return null;const s=xx(i);if(s)return s;const l=Jm(i.pathname);return l?{kind:l,src:n}:null}function Sy(e,t){return $h(e,t)!==null}const Ey={iframe:"▶",video:"▶",audio:"♪",image:"🖼"};function wx({spec:e,label:t}){const[r,n]=ut.useState(!1);return r?le.jsx("iframe",{className:"mlw-embed-frame",src:`${e.src}${e.src.includes("?")?"&":"?"}autoplay=1`,title:t||e.provider,allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture",allowFullScreen:!0,loading:"lazy",referrerPolicy:"strict-origin-when-cross-origin"}):le.jsxs("button",{type:"button",className:`mlw-embed-facade mlw-embed-${e.provider}`,onClick:()=>n(!0),title:`Play${t?`: ${t}`:""}`,style:e.poster?{backgroundImage:`url(${e.poster})`}:void 0,children:[le.jsx("span",{className:"mlw-embed-play","aria-hidden":"true",children:"▶"}),le.jsx("span",{className:"visually-hidden",children:`Play ${t||e.provider} video`})]})}function Ay({spec:e,label:t}){switch(e.kind){case"iframe":return le.jsx(wx,{spec:e,label:t});case"video":return le.jsx("video",{className:"mlw-embed-video",src:e.src,controls:!0,preload:"metadata"});case"audio":return le.jsx("audio",{className:"mlw-embed-audio",src:e.src,controls:!0,preload:"metadata"});case"image":return le.jsx("img",{className:"mlw-embed-image",src:e.src,alt:t,loading:"lazy"})}}function kx({spec:e,label:t}){return le.jsxs("figure",{className:"mlw-embed",children:[le.jsx(Ay,{spec:e,label:t}),t&&le.jsx("figcaption",{className:"mlw-embed-caption",children:t})]})}function Sx({spec:e,label:t}){const[r,n]=ut.useState(!1);return e.kind==="image"?le.jsx("img",{className:"mlw-embed-chip-image",src:e.src,alt:t,loading:"lazy"}):r?le.jsx("span",{className:"mlw-embed-opened",children:le.jsx(Ay,{spec:e,label:t})}):le.jsxs("button",{type:"button",className:"mlw-embed-chip",onClick:()=>n(!0),title:`Open${t?`: ${t}`:""}`,children:[le.jsx("span",{"aria-hidden":"true",children:Ey[e.kind]}),t]})}function Xu(e){return e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">")}function Ml(e){return Xu(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 Zm=String.raw`(?:[^\[\]]|\[[^\]]*\])*?`,Cy=new RegExp(String.raw`\$\$([\s\S]+?)\$\$|`+"`([^`]+?)`|"+String.raw`\*\[(${Zm})\]\(([^)]+?)\)(?!\*)|`+String.raw`\[(${Zm})\]\(([^)]+?)\)`,"g");function Ex(e,t,r){return/(^|\n)[ \t]*$/.test(e.slice(0,t))&&/^[ \t]*(\n|$)/.test(e.slice(r))}function Ty(e,t,r){const n=String(e??""),i=[];let s="",l=0,$=!1;const h=()=>{s&&(i.push(le.jsx("span",{dangerouslySetInnerHTML:{__html:s}},l++)),s="")},d=(j,q)=>le.jsx(px,{target:q,documentPath:r,onNavigate:t,children:le.jsx("span",{dangerouslySetInnerHTML:{__html:Ml(j)}})},l++);let w=0,A=!1,N=!1;const U=j=>(A?j=j.replace(/^[ \t]*\n/,""):N&&(j=j.replace(/^\n(?!\n)/," ")),Ml(j.replace(/(?<=[^\n])\n(?=[^\n])/g," "))),O=()=>{s=s.replace(/(?<=[^\n])\n[ \t]*$/," ")};for(const j of n.matchAll(Cy)){s+=U(n.slice(w,j.index)),A=!1;const q=j.index+j[0].length;if(N=!0,j[1]!==void 0)O(),s+=di(j[1],!1);else if(j[2]!==void 0)O(),s+=`<code>${Xu(j[2])}</code>`;else if(j[3]!==void 0){const Y=$h(j[4],r);Y?Ex(n,j.index,q)?($=!0,A=!0,N=!1,s=s.replace(/\n[ \t]*$/,""),h(),i.push(le.jsx(kx,{spec:Y,label:j[3]},l++))):(O(),h(),i.push(le.jsx(Sx,{spec:Y,label:j[3]},l++))):(O(),h(),i.push(d(j[3],j[4])))}else O(),h(),i.push(d(j[5],j[6]));w=q}return s+=U(n.slice(w)),h(),{nodes:i,block:$}}function Ry({parsed:e}){const t=e.block?"div":"p";return le.jsx(t,{className:"chapter-prose",children:e.nodes})}function Ax({node:e,onNavigate:t}){return le.jsxs("div",{className:"marklower",children:[e.title&&le.jsx("h1",{className:"chapter-title",children:e.title}),e.description&&le.jsx("p",{className:"chapter-subtitle",children:e.description}),le.jsx(Ry,{parsed:Ty(vi(e.value),t,e.documentPath)})]})}function zy({chunk:e,onNavigate:t}){return le.jsx(Ry,{parsed:Ty(e.value,t,e.documentPath)})}function Xo(e){return e.replace(/&/g,"&").replace(/"/g,""").replace(/</g,"<").replace(/>/g,">")}function fh(e){const t=String(e??"");let r="",n=0;for(const i of t.matchAll(Cy)){if(r+=Ml(t.slice(n,i.index)),i[1]!==void 0)r+=`<span class="mlw-atom" contenteditable="false" data-src="${Xo("$$"+i[1]+"$$")}">${di(i[1],!1)}</span>`;else if(i[2]!==void 0)r+=`<code class="mlw-atom" contenteditable="false" data-src="${Xo("`"+i[2]+"`")}">${Xu(i[2])}</code>`;else if(i[3]!==void 0){const s=$h(i[4]);r+=`<span class="mlw-atom mlw-embed-chip" contenteditable="false" data-src="${Xo("*["+i[3]+"]("+i[4]+")")}">${s?Ey[s.kind]:"▶"} ${Xu(i[3])}</span>`}else r+=`<a class="mlw-atom mlw-link" contenteditable="false" data-src="${Xo("["+i[5]+"]("+i[6]+")")}">${Ml(i[5])}</a>`;n=i.index+i[0].length}return r+=Ml(t.slice(n)),r}const Cx=new Set(["script","style","noscript","template","head","title"]);function Ny(e){const t=e.getAttribute("src")||e.querySelector("source[src]")?.getAttribute("src")||"",r=t.startsWith("//")?"https:"+t:t;return/^https?:\/\//i.test(r)?r:""}function dh(e){if(e.nodeType===Node.TEXT_NODE)return e.textContent??"";if(!(e instanceof Element))return"";const t=e.getAttribute("data-src");if(t!=null)return t;const r=e.tagName.toLowerCase();if(Cx.has(r))return"";if(r==="br")return`
|
|
340
|
-
`;if(r==="img"||r==="iframe"){const i=Ny(e),s=e.getAttribute(r==="img"?"alt":"title")??"";return i&&Sy(i)?`*[${s}](${i})`:""}const n=Array.from(e.childNodes).map(dh).join("");if(r==="a"){const i=e.getAttribute("href")??"",s=n.trim();return/^https?:\/\//.test(i)&&s?`[${s}](${i})`:n}return r==="strong"||r==="b"?n.trim()?`**${n.trim()}**`:"":r==="em"||r==="i"?n.trim()?`*${n.trim()}*`:"":r==="code"?n.trim()?"`"+n.trim()+"`":"":r==="del"||r==="s"||r==="strike"?n.trim()?`~~${n.trim()}~~`:"":n}function hh(e){const t=[],r=n=>{for(const i of Array.from(n.childNodes))i instanceof HTMLElement&&(i.tagName==="DIV"||i.tagName==="P")?(t.push(`
|
|
341
|
-
`),r(i)):t.push(dh(i))};return r(e),t.join("").replace(/^\n+/,"").replace(/\n+$/,"")}function Tx(e){Iy(e,0)}function Rx(e){e.focus();const t=window.getSelection();if(!t)return;const r=document.createRange();r.selectNodeContents(e),r.collapse(!1),t.removeAllRanges(),t.addRange(r)}function Iy(e,t){e.focus();const r=window.getSelection();if(!r)return;const n=document.createRange();let i=Math.max(0,t);const s=l=>{for(const $ of Array.from(l.childNodes))if($.nodeType===Node.TEXT_NODE){const h=$.textContent?.length??0;if(i<=h)return n.setStart($,i),n.collapse(!0),!0;i-=h}else if($ instanceof HTMLElement){if($.getAttribute("contenteditable")==="false"||$.hasAttribute("data-src")){const d=$.textContent?.length??0;if(i<=d)return n.setStartAfter($),n.collapse(!0),!0;i-=d}else if(s($))return!0}return!1};s(e)||(n.selectNodeContents(e),n.collapse(!1)),r.removeAllRanges(),r.addRange(n)}function Vc(e){const t=window.getSelection();if(!t||t.rangeCount===0||!t.isCollapsed)return null;const r=t.getRangeAt(0);return e.contains(r.startContainer)?r:null}function zx(e){const t=Vc(e);if(!t)return!1;const r=document.createRange();return r.selectNodeContents(e),r.setEnd(t.startContainer,t.startOffset),r.toString().length===0}function Nx(e){const t=Vc(e);if(!t)return!1;const r=document.createRange();return r.selectNodeContents(e),r.setStart(t.endContainer,t.endOffset),r.toString().length===0}function qy(e){const t=e.cloneRange();t.collapse(!0);let r=t.getBoundingClientRect();if(r.height===0&&r.top===0){const n=document.createElement("span");n.textContent="",t.insertNode(n),r=n.getBoundingClientRect();const i=n.parentNode;n.remove(),i?.normalize()}return r}function My(e){const t=getComputedStyle(e),r=parseFloat(t.lineHeight);return Number.isFinite(r)&&r>0?r:(parseFloat(t.fontSize)||16)*1.4}function Ix(e){const t=Vc(e);if(!t)return!1;if(e.clientHeight===0)return!0;const r=qy(t);return r?r.top-e.getBoundingClientRect().top<My(e)*.75:!0}function qx(e){const t=Vc(e);if(!t)return!1;if(e.clientHeight===0)return!0;const r=qy(t);return r?e.getBoundingClientRect().bottom-r.bottom<My(e)*.75:!0}const Mx={"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 Dy(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 Ly(e){return e.name?e.name:`pasted.${Mx[e.type]||"bin"}`}function Fy(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)})}function Dx(e){const t=document.createElement("div");return t.innerHTML=fh(e),t.textContent?.length??0}function Lx(e){const t=window.getSelection();if(!t||t.rangeCount===0||!e.contains(t.getRangeAt(0).endContainer))return null;const r=t.getRangeAt(0),n=i=>{const s=document.createRange();s.selectNodeContents(e),i==="head"?s.setEnd(r.endContainer,r.endOffset):s.setStart(r.endContainer,r.endOffset);const l=document.createElement("div");return l.appendChild(s.cloneContents()),hh(l)};return{head:n("head"),tail:n("tail")}}function Fx(e){return e.replace(/\.[^.]+$/,"")}async function jx(e,t,r,n,i){for(const l of r){const $=Ly(l),h=await q3(n,$,await Fy(l)),d=document.createElement("span");d.innerHTML=fh(`*[${Fx($)}](:${h.path})`);const w=d.firstChild;w&&(t.insertNode(w),t.setStartAfter(w),t.collapse(!0))}const s=window.getSelection();s&&(s.removeAllRanges(),s.addRange(t)),i(hh(e))}function Bx(e,t){t==="start"?Tx(e):t==="end"?Rx(e):typeof t=="number"&&Iy(e,t)}const jy=({text:e,rev:t,chapterPath:r,focusAt:n,onFocused:i,onChangeText:s,onSplit:l,onArrowOut:$,onJoinPrev:h,onJoinNext:d})=>{const w=ut.useRef(null);return ut.useEffect(()=>{w.current&&(w.current.innerHTML=fh(e))},[t]),ut.useEffect(()=>{n!=null&&w.current&&(Bx(w.current,n),i())},[n]),le.jsx("p",{ref:w,className:"chapter-prose editable",contentEditable:!0,suppressContentEditableWarning:!0,onInput:()=>{w.current&&s(hh(w.current))},onPaste:A=>{const N=w.current,U=Dy(A.nativeEvent).filter(j=>j.type.startsWith("image/"));if(!N||U.length===0)return;const O=window.getSelection();!O||O.rangeCount===0||!N.contains(O.getRangeAt(0).endContainer)||(A.preventDefault(),jx(N,O.getRangeAt(0).cloneRange(),U,r,s))},onKeyDown:A=>{const N=w.current;if(N){if(A.key==="Enter"&&!A.shiftKey){A.preventDefault();const U=Lx(N);U&&l(U.head,U.tail);return}if(A.key==="ArrowUp"&&Ix(N)){A.preventDefault(),$("up");return}if(A.key==="ArrowDown"&&qx(N)){A.preventDefault(),$("down");return}if(A.key==="Backspace"&&zx(N)){A.preventDefault(),h();return}if(A.key==="Delete"&&Nx(N)){A.preventDefault(),d();return}}}})},Px=({text:e,rev:t,focusAt:r,onFocused:n,onChangeText:i,onArrowOut:s})=>{const l=ut.useRef(null),$=h=>{h.style.height="auto",h.style.height=h.scrollHeight+"px"};return ut.useEffect(()=>{l.current&&(l.current.value=e,$(l.current))},[t]),ut.useEffect(()=>{const h=l.current;if(r==null||!h)return;const d=r==="start"?0:r==="end"?h.value.length:r;h.focus(),h.setSelectionRange(d,d),n()},[r]),le.jsx("textarea",{ref:l,className:"chapter-latex-src editable",spellCheck:!1,rows:1,defaultValue:e,onInput:h=>{const d=h.currentTarget;$(d),i(d.value)},onKeyDown:h=>{const d=h.currentTarget,w=d.value.slice(0,d.selectionStart),A=d.value.slice(d.selectionEnd),N=d.selectionStart===d.selectionEnd;if(h.key==="ArrowUp"&&N&&!w.includes(`
|
|
342
|
-
`)){h.preventDefault(),s("up");return}if(h.key==="ArrowDown"&&N&&!A.includes(`
|
|
343
|
-
`)){h.preventDefault(),s("down");return}}})};function Ux(e){return e===null||e==="text/marklower"||e==="text/markdown"?jy:e==="text/x-latex"?Px:null}function Om(e){return e===null||e==="text/marklower"||e==="text/markdown"}const Bs=":.browser:settings.yamlover";function Hx(e){return e===":.browser"||e===Bs||e.startsWith(":.browser:")}const hu="yamlover.settings",Wx="yamlover.markupWidthCh",ph=20,mh=400;function e_(e){return`# Browser settings — THIS DEVICE only (stored in this browser, not in any project), living
|
|
344
|
-
# at the virtual path *:: .browser: settings.yamlover. The same schema as
|
|
345
|
-
# .yamlover/settings.yamlover; a key authored here OVERRIDES the project's value for viewer
|
|
346
|
-
# preferences (reading width). Server-side creation locations stay project-governed. Edit me
|
|
347
|
-
# here, or via the second gear in the topbar.
|
|
348
|
-
!!<*yamlover:$defs:config>
|
|
349
|
-
|
|
350
|
-
width: ${e} # reading width (ch) for rendered prose (markdown, asciidoc, chapters)
|
|
351
|
-
theme: light # ui palette: dark | light
|
|
352
|
-
`}const Vx=[{key:"theme",line:"theme: light # ui palette: dark | light"}];function Yx(e){let t=e;for(const r of Vx)new RegExp(`^${r.key}:`,"m").test(t)||(t=(t===""||t.endsWith(`
|
|
353
|
-
`)?t:t+`
|
|
354
|
-
`)+r.line+`
|
|
355
|
-
`);return t}function Qu(){try{const e=localStorage.getItem(hu);if(e!=null){const r=Yx(e);return r!==e&&localStorage.setItem(hu,r),r}const t=e_(Gx()??72);return localStorage.setItem(hu,t),t}catch{return e_(72)}}function By(e){try{localStorage.setItem(hu,e)}catch{}_h()}function Gx(){try{const e=Number(localStorage.getItem(Wx));return Number.isFinite(e)&&e>=ph&&e<=mh?e:null}catch{return null}}let t_,V$=null;function Py(){const e=Qu();if(e!==t_){t_=e;try{V$=Dd(e,"<browser-settings>").root}catch{V$=null}}return V$}function Kx(){const e=Py(),t=e&&!Hr(e)?e.entries?.find(r=>r.key==="width")?.value:void 0;return!t||Hr(t)||t.kind!=="scalar"||typeof t.value!="number"?null:Number.isInteger(t.value)&&t.value>=ph&&t.value<=mh?t.value:null}const Uy=e=>e==="dark"||e==="light";function Xx(){const e=Py(),t=e&&!Hr(e)?e.entries?.find(r=>r.key==="theme")?.value:void 0;return!t||Hr(t)||t.kind!=="scalar"?null:Uy(t.value)?t.value:null}const Qx="yamlover.theme";function _h(){const e=Xx()??b0??"light";document.documentElement.dataset.theme=e;try{localStorage.setItem(Qx,e)}catch{}}function Jx(e,t){const r=Qu(),n=`${e}: ${t}`,i=new RegExp("^"+e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")+":.*$","m");let s=i.test(r)?r.replace(i,n):(r===""||r.endsWith(`
|
|
356
|
-
`)?r:r+`
|
|
357
|
-
`)+n;s.endsWith(`
|
|
358
|
-
`)||(s+=`
|
|
359
|
-
`),By(s)}let y0=null,b0=null;function Zx(){Jg().then(e=>{const t=e.settings.width;y0=typeof t=="number"&&Number.isInteger(t)&&t>=ph&&t<=mh?t:null,b0=Uy(e.settings.theme)?e.settings.theme:null,_h()}).catch(()=>{y0=null,b0=null})}function Ox(){return y0}const ew=/^([a-z][a-z0-9+.-]*:|\/\/|\/|#)/i;function tw(e){try{return decodeURIComponent(e)}catch{return e}}function Hy(e,t){if(!t)return null;const r=e.trim();if(!r||ew.test(r))return null;const n=r.split(/[?#]/,1)[0],i=jr(t).slice(0,-1);for(const s of n.split("/"))s===""||s==="."||(s===".."?i.pop():i.push(tw(s)));return i}function Wy(e,t){if(!t||!e.includes("<a"))return e;const r=document.createElement("template");r.innerHTML=e;for(const n of r.content.querySelectorAll("a[href]")){const i=Hy(n.getAttribute("href")||"",t);if(!i)continue;const s=Wn(i);n.setAttribute("href",s),n.setAttribute("data-navpath",s)}return r.innerHTML}function gh(e){return t=>{if(!e||t.defaultPrevented||t.button!==0||t.metaKey||t.ctrlKey||t.shiftKey||t.altKey)return;const r=t.target.closest?.("a[data-navpath]");r&&(t.preventDefault(),e(r.getAttribute("data-navpath")))}}const Vy=72,x0=20,w0=400,Yy=()=>new URLSearchParams(window.location.search),rw=e=>Number.isFinite(e)&&e>=x0&&e<=w0;function Yc(){const e=Number(Yy().get("width"));return rw(e)?e:Kx()??Ox()??Vy}function nw(e){Jx("width",String(e));const t=Yy();t.delete("width"),e!==Vy&&t.set("width",String(e));const r=t.toString();window.history.replaceState({},"",window.location.pathname+(r?"?"+r:""))}function Gy({html:e,onNavigate:t}){return le.jsx("div",{className:"markup",style:{maxWidth:`${Yc()}ch`},onClick:gh(t),dangerouslySetInnerHTML:{__html:e}})}function Qo({rerender:e}){const t=Yc(),[r,n]=ut.useState(String(t));ut.useEffect(()=>n(String(t)),[t]);const i=Number(r),s=r.trim()!==""&&Number.isInteger(i)&&i>=x0&&i<=w0;return le.jsx("input",{className:"markup-width"+(s?"":" invalid"),type:"text",inputMode:"numeric",title:"width, ch",value:r,onChange:l=>{const $=l.target.value;n($);const h=Number($);$.trim()!==""&&Number.isInteger(h)&&h>=x0&&h<=w0&&(nw(h),e())}})}const vh="$yamloverMixed";function k0(e){const t=e.split(`
|
|
360
|
-
`).find(i=>i.trim().length>0);if(!t||/^\s/.test(t))return JSON.stringify(e);const r=e.endsWith(`
|
|
361
|
-
`)?e.slice(0,-1):e;return[e.endsWith(`
|
|
362
|
-
`)?"|":"|-",...r.split(`
|
|
363
|
-
`).map(i=>i.trim().length?" "+i:"")].join(`
|
|
364
|
-
`)}function iw(e){return e==null||e==="text/marklower"||e==="text/markdown"||e==="text/x-latex"}function sw(e,t){return e==="string"&&iw(t)}function yh(e){return e==="x-yamlover-chapter"||e==="x-yamlover-task"}function ys(e,t){return Wn([...jr(e),t])}function aw(e){if(Array.isArray(e))return e.map((r,n)=>({value:r,absIndex:n}));const t=e?.[vh];return t?.entries?t.entries.map((r,n)=>({e:r,i:n})).filter(({e:r})=>r.key==null).map(({e:r,i:n})=>({value:r.value,absIndex:n})):[]}function lw(e){return Array.isArray(e)?e.length:e?.[vh]?.entries?.length??0}function ow(e){const t=i=>yh(Ir(i)?.format)?"subchapter":"chunk";if(Array.isArray(e))return e.map(i=>({kind:t(i),value:i}));const r=e?.[vh];if(!r?.entries)return[];const n=[];for(const i of r.entries)i.key==="title"?n.push({kind:"title",value:i.value}):i.key==="description"?n.push({kind:"description",value:i.value}):i.key==null&&n.push({kind:t(i.value),value:i.value});return n}function r_(e){const t=vi(Ir(e)?.value??e);return typeof t=="string"?t:t==null?"":String(t)}let uw=0;const S0=()=>`ck${uw++}`;function n_(e,t="text/marklower"){return{id:S0(),rev:0,editable:!0,text:e,format:t,concrete:"yamlover",subchapter:!1,marker:null,absIndex:-1}}function cw(e){const r=aw(e.value).map(({value:n,absIndex:i})=>{const s=Ir(n),l=s?.format??null;if(yh(l))return{id:S0(),rev:0,editable:!1,text:"",format:l,concrete:s?.concrete??"yamlover",subchapter:!0,navPath:s?.path,title:s?.title,marker:n,absIndex:i};const $=!s||typeof s.path=="string"&&s.path.startsWith(e.path+"["),h=s?.type,d=$&&sw(h,l);return{id:S0(),rev:0,editable:d,text:d?String(s?.value??n??""):"",format:l,concrete:s?.concrete??"yamlover",subchapter:!1,marker:n,absIndex:i}});return{path:e.path,title:e.title??"",description:e.description??"",chunks:r,entryCount:lw(e.value)}}function i_(e){return{path:e.path,title:e.title,description:e.description,chunks:e.chunks.map(t=>({...t})),entryCount:e.entryCount}}function $w(e,t){const r=[],n=t.path,i=(U,O)=>O?{path:U,op:"emplace",yamlover:JSON.stringify(O)}:{path:U,op:"remove"};let s=0,l=0;for(const U of["title","description"])t[U]!==e[U]&&(r.push(i(ys(n,U),t[U])),!t[U]&&e[U]?s-=1:t[U]&&!e[U]&&(l+=1));const $=t.chunks.map(U=>U.id),h=new Map(t.chunks.map(U=>[U.id,U])),d=new Map(e.chunks.map(U=>[U.id,U])),w=e.chunks.map(U=>({id:U.id,abs:U.absIndex+s}));let A=e.entryCount+s+l;const N=U=>ys(n,U);for(let U=w.length-1;U>=0;U--)if(!h.has(w[U].id)){r.push({path:N(w[U].abs),op:"remove"}),w.splice(U,1);for(let O=U;O<w.length;O++)w[O].abs-=1;A-=1}for(let U=0;U<$.length;U++){const O=$[U];if(w.some(q=>q.id===O))continue;const j=U<w.length?w[U].abs:A;r.push({path:U<w.length?N(j):n,op:"insert",yamlover:k0(h.get(O).text)});for(let q=U;q<w.length;q++)w[q].abs+=1;w.splice(U,0,{id:O,abs:j}),A+=1}for(let U=0;U<$.length;U++){const O=h.get($[U]),j=d.get($[U]);j&&O.editable&&O.text!==j.text&&r.push({path:N(w[U].abs),op:"emplace",yamlover:k0(O.text)})}return t.chunks.forEach((U,O)=>{U.absIndex=w[O].abs}),t.entryCount=A,r}function Ky({node:e,onNavigate:t}){const{unlocked:r}=ho(),{openAt:n,tagMenu:i}=Kd({onCreate:(l,$,h)=>void Zg(l,$,h).then(d=>t(d.path)).catch(d=>window.alert("create failed: "+d.message))}),s=l=>{l.target.closest(".chunk-body, .editable, a, button, textarea")||(l.preventDefault(),n(e.path,l.clientX,l.clientY,{format:e.format,concrete:e.concrete}))};return le.jsxs("div",{className:"chapter-page",onContextMenu:s,children:[r?le.jsx(pw,{initialNode:e,onNavigate:t},e.path):le.jsx(fw,{node:e,onNavigate:t}),i]})}function fw({node:e,onNavigate:t}){const r=ow(e.value);Rc(e);let n=0;return le.jsx("div",{className:"chapter",style:{maxWidth:`${Yc()}ch`},children:r.map((i,s)=>{if(i.kind==="title")return le.jsx("h1",{className:"chapter-title",children:r_(i.value)},s);if(i.kind==="description")return le.jsx("p",{className:"chapter-subtitle",children:r_(i.value)},s);if(i.kind==="subchapter"){const l=Ir(i.value);return le.jsx(Xy,{path:l?.path,title:l?.title,onNavigate:t},s)}return le.jsx(dw,{index:n++,item:i.value,basePath:e.path,documentPath:e.documentPath,onNavigate:t},s)})})}function dw({index:e,item:t,basePath:r,documentPath:n,onNavigate:i}){const s=Jy(t,n),l=il(s),$=l?.renderChunk?l.renderChunk(s,i):le.jsx("p",{className:"chapter-prose",children:String(s.value??"")}),h=s.path?fo(r,s.path):null;return le.jsxs("div",{className:"chunk",id:h??void 0,"data-node-path":s.path||void 0,children:[le.jsx(Qy,{index:e,anchor:h}),le.jsx("div",{className:"chunk-body",children:$})]})}function Xy({path:e,title:t,onNavigate:r}){return le.jsx("h2",{className:"chapter-link",children:le.jsx("a",{className:"descend",href:e??"#",onClick:n=>{n.preventDefault(),e&&r(e)},children:t||"(untitled chapter)"})})}function hw(e){const t=ut.useRef(null);t.current===null&&(t.current=i_(e));const r=ut.useRef(e);r.current=e;const n=ut.useRef(void 0),i=ut.useRef(!1),s=ut.useRef(!1),l=ut.useCallback(async()=>{if(i.current){s.current=!0;return}const $=r.current,h=$w(t.current,$);if(h.length){i.current=!0;try{await vc(h),t.current=i_($)}catch(d){window.alert("edit sync failed: "+d.message)}finally{i.current=!1,s.current&&(s.current=!1,l())}}},[]);return ut.useEffect(()=>(n.current&&clearTimeout(n.current),n.current=setTimeout(()=>void l(),500),()=>{n.current&&clearTimeout(n.current)}),[e,l]),ut.useCallback(()=>(n.current&&clearTimeout(n.current),l()),[l])}function pw({initialNode:e,onNavigate:t}){const[r,n]=ut.useState(()=>cw(e)),[i,s]=ut.useState(null),l=hw(r),$=ut.useRef(l);$.current=l,ut.useEffect(()=>()=>void $.current(),[]);const h=ut.useCallback((U,O)=>{n(j=>({...j,chunks:j.chunks.map(q=>q.id===U?{...q,text:O}:q)}))},[]),d=ut.useCallback((U,O,j)=>{n(q=>{const Y=q.chunks.findIndex(_e=>_e.id===U);if(Y<0)return q;const he=n_(j,q.chunks[Y].format),ne=q.chunks.slice();return ne[Y]={...ne[Y],text:O,rev:ne[Y].rev+1},ne.splice(Y+1,0,he),s({id:he.id,at:"start"}),{...q,chunks:ne}})},[]);ut.useCallback(U=>{n(O=>{const j=n_(""),q=O.chunks.slice();return q.splice(U+1,0,j),s({id:j.id,at:"start"}),{...O,chunks:q}})},[]);const w=ut.useCallback(U=>{n(O=>{const j=O.chunks.findIndex(he=>he.id===U);if(j<0||O.chunks.length<=1)return O;const q=O.chunks.slice();q.splice(j,1);const Y=q[Math.max(0,j-1)];return Y?.editable&&s({id:Y.id,at:"end"}),{...O,chunks:q}})},[]),A=ut.useCallback((U,O)=>{n(j=>{const q=j.chunks.findIndex(ne=>ne.id===U),Y=O==="up"?q-1:q+1,he=j.chunks[Y];return he?.editable&&s({id:he.id,at:O==="up"?"end":"start"}),j})},[]),N=ut.useCallback((U,O)=>{n(j=>{const q=j.chunks.findIndex(oe=>oe.id===U),Y=O==="prev"?q-1:q,he=O==="prev"?q:q+1;if(Y<0||he>=j.chunks.length)return j;const ne=j.chunks[Y],_e=j.chunks[he];if(!ne.editable||!_e.editable||!Om(ne.format)||!Om(_e.format))return j;const Q=Dx(ne.text),be=j.chunks.slice();return be[Y]={...ne,text:ne.text+_e.text,rev:ne.rev+1},be.splice(he,1),s({id:ne.id,at:Q}),{...j,chunks:be}})},[]);return le.jsxs("div",{className:"chapter",style:{maxWidth:`${Yc()}ch`},children:[le.jsx(s_,{as:"h1",className:"chapter-title",placeholder:"Title",value:r.title,onCommit:U=>n(O=>({...O,title:U}))}),le.jsx(s_,{as:"p",className:"chapter-subtitle",placeholder:"Description",value:r.description,onCommit:U=>n(O=>({...O,description:U}))}),r.chunks.map((U,O)=>U.subchapter?le.jsx(Xy,{path:U.navPath,title:U.title,onNavigate:t},U.id):le.jsx(mw,{index:O,part:U,basePath:r.path,documentPath:e.documentPath,onNavigate:t,focusAt:i?.id===U.id?i.at:null,onFocused:()=>s(null),onChangeText:j=>h(U.id,j),onSplit:(j,q)=>d(U.id,j,q),onArrowOut:j=>A(U.id,j),onJoinPrev:()=>N(U.id,"prev"),onJoinNext:()=>N(U.id,"next"),onRemove:r.chunks.filter(j=>!j.subchapter).length>1?()=>w(U.id):void 0},U.id))]})}function mw({index:e,part:t,basePath:r,documentPath:n,onNavigate:i,focusAt:s,onFocused:l,onChangeText:$,onSplit:h,onArrowOut:d,onJoinPrev:w,onJoinNext:A,onRemove:N}){const U=ys(r,e),O=fo(r,U),j=t.editable?Ux(t.format):null;let q;if(j)q=le.jsx(j,{text:t.text,rev:t.rev,chapterPath:r,focusAt:s,onFocused:l,onChangeText:$,onSplit:h,onArrowOut:d,onJoinPrev:w,onJoinNext:A});else{const Y=Jy(t.marker,n),he=il(Y);q=he?.renderChunk?he.renderChunk(Y,i):le.jsx("p",{className:"chapter-prose",children:String(Y.value??"")})}return le.jsxs("div",{className:"chunk",id:O??void 0,children:[le.jsx(Qy,{index:e,anchor:O}),le.jsx("div",{className:"chunk-body",children:q}),j&&N&&le.jsx("span",{className:"chunk-tools",children:le.jsx("button",{className:"chunk-tool",title:"Delete this paragraph",onClick:N,children:"🗑"})})]})}function s_({as:e,value:t,onCommit:r,className:n,placeholder:i}){const s=ut.useRef(null),l=ut.useRef(!1),$=e;return ut.useEffect(()=>{s.current&&!l.current&&(s.current.textContent=t)},[t]),le.jsx($,{ref:s,className:(n?n+" ":"")+"editable",contentEditable:!0,suppressContentEditableWarning:!0,"data-placeholder":i,onFocus:()=>l.current=!0,onBlur:()=>{l.current=!1,r((s.current?.textContent??"").trim())},onKeyDown:h=>{h.key==="Enter"&&(h.preventDefault(),h.target.blur())}})}function Qy({index:e,anchor:t}){return t?le.jsxs("a",{className:"chunk-index",href:`#${t}`,children:["§",e]}):le.jsxs("span",{className:"chunk-index",children:["§",e]})}function Jy(e,t){const r=Ir(e),n=r?r.value:vi(e),i=!r&&typeof n=="string";return{value:n,path:r?.path??"",type:r?.type??"string",format:r?.format??(i?"text/marklower":null),valueType:r?.valueType??"string",hasKeyed:r?.hasKeyed??!1,hasOrdinal:r?.hasOrdinal??!1,documentPath:t}}const _w="$yamloverRef",gw="x-yamlover-workflow";function Xs(e){const t=Ir(e);if(t)return t.path;const r=e?.[_w];return r&&typeof r.path=="string"?r.path:null}function Zy(e){const t=zn(e).find(([n])=>n==="next")?.[1];if(t==null)return[];if(Array.isArray(t))return t.map(Xs).filter(n=>n!=null);const r=Xs(t);return r?[r]:[]}async function vw(e){const t=await en(e,1),r=Xs(zn(t.value).find(([s])=>s==="initial")?.[1]),n=new Set,i=[];for(const[s,l]of zn(t.value)){if(s==="initial"||s==="color")continue;const $=Ir(l);!$||$.format!==ta||n.has($.path)||(n.add($.path),i.push({path:$.path,label:zc($.path,$.title),color:$.color??null,next:[],initial:$.path===r}))}return await Promise.all(i.map(async s=>{try{s.next=Zy((await en(s.path,2)).value)}catch{}})),i}async function Oy(e,t,r){t!==r&&(t&&await yc(e,t),await Ha({target:e,tag:r}))}async function yw(e){const t=e.lastIndexOf(":");if(t<=0)return!1;try{return(await en(e.slice(0,t),0)).format===gw}catch{return!1}}async function E0(e){const t=await en(e,2);return{path:e,label:zc(e,t.title),color:Ud(t.value),next:Zy(t.value)}}const Jo=(e,t)=>{const r=zn(e).find(([i])=>i===t)?.[1],n=Ir(r)?.value??r;return typeof n=="string"?n:typeof n=="number"?String(n):null};function bw({node:e,onNavigate:t}){const r=_o(Za),[n,i]=ut.useState(null),s=Jo(e.value,"priority"),l=Jo(e.value,"assignee"),$=Jo(e.value,"due"),h=Jo(e.value,"estimate");ut.useEffect(()=>{let w=!1;return(async()=>{const A=await Ol(e.path).catch(()=>[]);let N=null;for(const U of A){const O=U.tag?.path;if(!O||!await yw(O))continue;const j=await E0(O),q=await Promise.all(j.next.map(Y=>E0(Y)));N={...j,nextStates:q};break}w||i(N)})(),()=>{w=!0}},[e.path,r]);const d=async w=>{n&&await Oy(e.path,n.path,w).catch(()=>{})};return le.jsxs("div",{className:"task",children:[le.jsxs("div",{className:"task-strip",children:[n&&le.jsx("span",{className:"task-state",style:gi(Vn({name:n.label,color:n.color})),children:n.label}),n?.nextStates.map(w=>le.jsxs("button",{className:"task-advance",style:{borderColor:Vn({name:w.label,color:w.color})},onClick:()=>d(w.path),title:`Move to ${w.label}`,children:["→ ",w.label]},w.path)),s&&le.jsx("span",{className:"board-chip prio-"+s,children:s}),l&&le.jsxs("span",{className:"board-chip board-assignee",children:["@",l]}),$&&le.jsx("span",{className:"board-chip board-due",children:$.slice(0,10)}),h&&le.jsx("span",{className:"board-chip board-estimate",children:h})]}),le.jsx(Ky,{node:e,onNavigate:t})]})}function bh(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var na=bh();function eb(e){na=e}var Ms={exec:()=>null};function $a(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 l=typeof s=="string"?s:s.source;return l=l.replace(tn.caret,"$1"),r=r.replace(i,l),n},getRegex:()=>new RegExp(r,t)};return n}var xw=((e="")=>{try{return!!new RegExp("(?<=1)(?<!1)"+e)}catch{return!1}})(),tn={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:$a(e=>new RegExp(`^ {0,${e}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`)),hrRegex:$a(e=>new RegExp(`^ {0,${e}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`)),fencesBeginRegex:$a(e=>new RegExp(`^ {0,${e}}(?:\`\`\`|~~~)`)),headingBeginRegex:$a(e=>new RegExp(`^ {0,${e}}#`)),htmlBeginRegex:$a(e=>new RegExp(`^ {0,${e}}<(?:[a-z].*>|!--)`,"i")),blockquoteBeginRegex:$a(e=>new RegExp(`^ {0,${e}}>`))},ww=/^(?:[ \t]*(?:\n|$))+/,kw=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,Sw=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,yo=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,Ew=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,xh=/ {0,3}(?:[*+-]|\d{1,9}[.)])/,tb=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,rb=tr(tb).replace(/bull/g,xh).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(),Aw=tr(tb).replace(/bull/g,xh).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(),wh=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,Cw=/^[^\n]+/,kh=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,Tw=tr(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",kh).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),Rw=tr(/^(bull)([ \t][^\n]*?)?(?:\n|$)/).replace(/bull/g,xh).getRegex(),Gc="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",Sh=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,zw=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",Sh).replace("tag",Gc).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),nb=tr(wh).replace("hr",yo).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]+[^ \\t\\n]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Gc).getRegex(),Nw=tr(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",nb).getRegex(),Eh={blockquote:Nw,code:kw,def:Tw,fences:Sw,heading:Ew,hr:yo,html:zw,lheading:rb,list:Rw,newline:ww,paragraph:nb,table:Ms,text:Cw},a_=tr("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",yo).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",Gc).getRegex(),Iw={...Eh,lheading:Aw,table:a_,paragraph:tr(wh).replace("hr",yo).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",a_).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]+[^ \\t\\n]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Gc).getRegex()},qw={...Eh,html:tr(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",Sh).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:Ms,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:tr(wh).replace("hr",yo).replace("heading",` *#{1,6} *[^
|
|
365
|
-
]`).replace("lheading",rb).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},Mw=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,Dw=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,ib=/^( {2,}|\\)\n(?!\s*$)/,Lw=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,nl=/[\p{P}\p{S}]/u,Kc=/[\s\p{P}\p{S}]/u,Ah=/[^\s\p{P}\p{S}]/u,Fw=tr(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,Kc).getRegex(),sb=/(?!~)[\p{P}\p{S}]/u,jw=/(?!~)[\s\p{P}\p{S}]/u,Bw=/(?:[^\s\p{P}\p{S}]|~)/u,Pw=tr(/link|precode-code|html/,"g").replace("link",/\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-",xw?"(?<!`)()":"(^^|[^`])").replace("code",/(?<b>`+)[^`]+\k<b>(?!`)/).replace("html",/<(?! )[^<>]*?>/).getRegex(),ab=/^(?:\*+(?:((?!\*)punct)|([^\s*]))?)|^_+(?:((?!_)punct)|([^\s_]))?/,Uw=tr(ab,"u").replace(/punct/g,nl).getRegex(),Hw=tr(ab,"u").replace(/punct/g,sb).getRegex(),lb="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",Ww=tr(lb,"gu").replace(/notPunctSpace/g,Ah).replace(/punctSpace/g,Kc).replace(/punct/g,nl).getRegex(),Vw=tr(lb,"gu").replace(/notPunctSpace/g,Bw).replace(/punctSpace/g,jw).replace(/punct/g,sb).getRegex(),Yw=tr("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,Ah).replace(/punctSpace/g,Kc).replace(/punct/g,nl).getRegex(),Gw=tr(/^~~?(?:((?!~)punct)|[^\s~])/,"u").replace(/punct/g,nl).getRegex(),Kw="^[^~]+(?=[^~])|(?!~)punct(~~?)(?=[\\s]|$)|notPunctSpace(~~?)(?!~)(?=punctSpace|$)|(?!~)punctSpace(~~?)(?=notPunctSpace)|[\\s](~~?)(?!~)(?=punct)|(?!~)punct(~~?)(?!~)(?=punct)|notPunctSpace(~~?)(?=notPunctSpace)",Xw=tr(Kw,"gu").replace(/notPunctSpace/g,Ah).replace(/punctSpace/g,Kc).replace(/punct/g,nl).getRegex(),Qw=tr(/\\(punct)/,"gu").replace(/punct/g,nl).getRegex(),Jw=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(),Zw=tr(Sh).replace("(?:-->|$)","-->").getRegex(),Ow=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",Zw).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),Ju=/(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+(?!`)[^`]*?`+(?!`)|``+(?=\])|[^\[\]\\`])*?/,e8=tr(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]+(?:\n[ \t]*)?|\n[ \t]*)(title))?\s*\)/).replace("label",Ju).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),ob=tr(/^!?\[(label)\]\[(ref)\]/).replace("label",Ju).replace("ref",kh).getRegex(),ub=tr(/^!?\[(ref)\](?:\[\])?/).replace("ref",kh).getRegex(),t8=tr("reflink|nolink(?!\\()","g").replace("reflink",ob).replace("nolink",ub).getRegex(),l_=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,Ch={_backpedal:Ms,anyPunctuation:Qw,autolink:Jw,blockSkip:Pw,br:ib,code:Dw,del:Ms,delLDelim:Ms,delRDelim:Ms,emStrongLDelim:Uw,emStrongRDelimAst:Ww,emStrongRDelimUnd:Yw,escape:Mw,link:e8,nolink:ub,punctuation:Fw,reflink:ob,reflinkSearch:t8,tag:Ow,text:Lw,url:Ms},r8={...Ch,link:tr(/^!?\[(label)\]\((.*?)\)/).replace("label",Ju).getRegex(),reflink:tr(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",Ju).getRegex()},A0={...Ch,emStrongRDelimAst:Vw,emStrongLDelim:Hw,delLDelim:Gw,delRDelim:Xw,url:tr(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol",l_).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",l_).getRegex()},n8={...A0,br:tr(ib).replace("{2,}","*").getRegex(),text:tr(A0.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},Zo={normal:Eh,gfm:Iw,pedantic:qw},dl={normal:Ch,gfm:A0,breaks:n8,pedantic:r8},i8={"&":"&","<":"<",">":">",'"':""","'":"'"},o_=e=>i8[e];function li(e,t){if(t){if(tn.escapeTest.test(e))return e.replace(tn.escapeReplace,o_)}else if(tn.escapeTestNoEncode.test(e))return e.replace(tn.escapeReplaceNoEncode,o_);return e}function u_(e){try{e=encodeURI(e).replace(tn.percentDecode,"%")}catch{return null}return e}function c_(e,t){let r=e.replace(tn.findPipe,(s,l,$)=>{let h=!1,d=l;for(;--d>=0&&$[d]==="\\";)h=!h;return h?"|":" |"}),n=r.split(tn.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(tn.slashPipe,"|");return n}function Ki(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 $_(e){let t=e.split(`
|
|
366
|
-
`),r=t.length-1;for(;r>=0&&tn.blankLine.test(t[r]);)r--;return t.length-r<=2?e:t.slice(0,r+1).join(`
|
|
367
|
-
`)}function s8(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 a8(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 f_(e,t,r,n,i){let s=t.href,l=t.title||null,$=e[1].replace(i.other.outputLinkReplace,"$1");n.state.inLink=!0;let h={type:e[0].charAt(0)==="!"?"image":"link",raw:r,href:s,title:l,text:$,tokens:n.inlineTokens($)};return n.state.inLink=!1,h}function l8(e,t,r){let n=e.match(r.other.indentCodeCompensation);if(n===null)return t;let i=n[1];return t.split(`
|
|
368
|
-
`).map(s=>{let l=s.match(r.other.beginningSpace);if(l===null)return s;let[$]=l;return $.length>=i.length?s.slice(i.length):s}).join(`
|
|
369
|
-
`)}var Zu=class{options;rules;lexer;constructor(e){this.options=e||na}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]:$_(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=l8(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=Ki(r,"#");(this.options.pedantic||!n||this.rules.other.endingSpaceChar.test(n))&&(r=n.trim())}return{type:"heading",raw:Ki(t[0],`
|
|
370
|
-
`),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:Ki(t[0],`
|
|
371
|
-
`)}}blockquote(e){let t=this.rules.block.blockquote.exec(e);if(t){let r=Ki(t[0],`
|
|
372
|
-
`).split(`
|
|
373
|
-
`),n="",i="",s=[];for(;r.length>0;){let l=!1,$=[],h;for(h=0;h<r.length;h++)if(this.rules.other.blockquoteStart.test(r[h]))$.push(r[h]),l=!0;else if(!l)$.push(r[h]);else break;r=r.slice(h);let d=$.join(`
|
|
374
|
-
`),w=d.replace(this.rules.other.blockquoteSetextReplace,`
|
|
375
|
-
$1`).replace(this.rules.other.blockquoteSetextReplace2,"");n=n?`${n}
|
|
376
|
-
${d}`:d,i=i?`${i}
|
|
377
|
-
${w}`:w;let A=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(w,s,!0),this.lexer.state.top=A,r.length===0)break;let N=s.at(-1);if(N?.type==="code")break;if(N?.type==="blockquote"){let U=N,O=U.raw+`
|
|
378
|
-
`+r.join(`
|
|
379
|
-
`),j=this.blockquote(O);s[s.length-1]=j,n=n.substring(0,n.length-U.raw.length)+j.raw,i=i.substring(0,i.length-U.text.length)+j.text;break}else if(N?.type==="list"){let U=N,O=U.raw+`
|
|
380
|
-
`+r.join(`
|
|
381
|
-
`),j=this.list(O);s[s.length-1]=j,n=n.substring(0,n.length-N.raw.length)+j.raw,i=i.substring(0,i.length-U.raw.length)+j.raw,r=O.substring(s.at(-1).raw.length).split(`
|
|
382
|
-
`);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),l=!1;for(;e;){let h=!1,d="",w="";if(!(t=s.exec(e))||this.rules.block.hr.test(e))break;d=t[0],e=e.substring(d.length);let A=a8(t[2].split(`
|
|
383
|
-
`,1)[0],t[1].length),N=e.split(`
|
|
384
|
-
`,1)[0],U=!A.trim(),O=0;if(this.options.pedantic?(O=2,w=A.trimStart()):U?O=t[1].length+1:(O=A.search(this.rules.other.nonSpaceChar),O=O>4?1:O,w=A.slice(O),O+=t[1].length),U&&this.rules.other.blankLine.test(N)&&(d+=N+`
|
|
385
|
-
`,e=e.substring(N.length+1),h=!0),!h){let j=this.rules.other.nextBulletRegex(O),q=this.rules.other.hrRegex(O),Y=this.rules.other.fencesBeginRegex(O),he=this.rules.other.headingBeginRegex(O),ne=this.rules.other.htmlBeginRegex(O),_e=this.rules.other.blockquoteBeginRegex(O);for(;e;){let Q=e.split(`
|
|
386
|
-
`,1)[0],be;if(N=Q,this.options.pedantic?(N=N.replace(this.rules.other.listReplaceNesting," "),be=N):be=N.replace(this.rules.other.tabCharGlobal," "),Y.test(N)||he.test(N)||ne.test(N)||_e.test(N)||j.test(N)||q.test(N))break;if(be.search(this.rules.other.nonSpaceChar)>=O||!N.trim())w+=`
|
|
387
|
-
`+be.slice(O);else{if(U||A.replace(this.rules.other.tabCharGlobal," ").search(this.rules.other.nonSpaceChar)>=4||Y.test(A)||he.test(A)||q.test(A))break;w+=`
|
|
388
|
-
`+N}U=!N.trim(),d+=Q+`
|
|
389
|
-
`,e=e.substring(Q.length+1),A=be.slice(O)}}i.loose||(l?i.loose=!0:this.rules.other.doubleBlankLine.test(d)&&(l=!0)),i.items.push({type:"list_item",raw:d,task:!!this.options.gfm&&this.rules.other.listIsTask.test(w),loose:!1,text:w,tokens:[]}),i.raw+=d}let $=i.items.at(-1);if($)$.raw=$.raw.trimEnd(),$.text=$.text.trimEnd();else return;i.raw=i.raw.trimEnd();for(let h of i.items){this.lexer.state.top=!1,h.tokens=this.lexer.blockTokens(h.text,[]);let d=h.tokens[0];if(h.task&&(d?.type==="text"||d?.type==="paragraph")){h.text=h.text.replace(this.rules.other.listReplaceTask,""),d.raw=d.raw.replace(this.rules.other.listReplaceTask,""),d.text=d.text.replace(this.rules.other.listReplaceTask,"");for(let A=this.lexer.inlineQueue.length-1;A>=0;A--)if(this.rules.other.listIsTask.test(this.lexer.inlineQueue[A].src)){this.lexer.inlineQueue[A].src=this.lexer.inlineQueue[A].src.replace(this.rules.other.listReplaceTask,"");break}let w=this.rules.other.listTaskCheckbox.exec(h.raw);if(w){let A={type:"checkbox",raw:w[0]+" ",checked:w[0]!=="[ ]"};h.checked=A.checked,i.loose?h.tokens[0]&&["paragraph","text"].includes(h.tokens[0].type)&&"tokens"in h.tokens[0]&&h.tokens[0].tokens?(h.tokens[0].raw=A.raw+h.tokens[0].raw,h.tokens[0].text=A.raw+h.tokens[0].text,h.tokens[0].tokens.unshift(A)):h.tokens.unshift({type:"paragraph",raw:A.raw,text:A.raw,tokens:[A]}):h.tokens.unshift(A)}}else h.task&&(h.task=!1);if(!i.loose){let w=h.tokens.filter(N=>N.type==="space"),A=w.length>0&&w.some(N=>this.rules.other.anyLine.test(N.raw));i.loose=A}}if(i.loose)for(let h of i.items){h.loose=!0;for(let d of h.tokens)d.type==="text"&&(d.type="paragraph")}return i}}html(e){let t=this.rules.block.html.exec(e);if(t){let r=$_(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:Ki(t[0],`
|
|
390
|
-
`),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=c_(t[1]),n=t[2].replace(this.rules.other.tableAlignChars,"").split("|"),i=t[3]?.trim()?t[3].replace(this.rules.other.tableRowBlankLine,"").split(`
|
|
391
|
-
`):[],s={type:"table",raw:Ki(t[0],`
|
|
392
|
-
`),header:[],align:[],rows:[]};if(r.length===n.length){for(let l of n)this.rules.other.tableAlignRight.test(l)?s.align.push("right"):this.rules.other.tableAlignCenter.test(l)?s.align.push("center"):this.rules.other.tableAlignLeft.test(l)?s.align.push("left"):s.align.push(null);for(let l=0;l<r.length;l++)s.header.push({text:r[l],tokens:this.lexer.inline(r[l]),header:!0,align:s.align[l]});for(let l of i)s.rows.push(c_(l,s.header.length).map(($,h)=>({text:$,tokens:this.lexer.inline($),header:!1,align:s.align[h]})));return s}}lheading(e){let t=this.rules.block.lheading.exec(e);if(t){let r=t[1].trim();return{type:"heading",raw:Ki(t[0],`
|
|
393
|
-
`),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)===`
|
|
394
|
-
`?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=Ki(r.slice(0,-1),"\\");if((r.length-s.length)%2===0)return}else{let s=s8(t[2],"()");if(s===-2)return;if(s>-1){let l=(t[0].indexOf("!")===0?5:4)+t[1].length+s;t[2]=t[2].substring(0,s),t[0]=t[0].substring(0,l).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)),f_(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 f_(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,l,$=i,h=0,d=n[0][0]==="*"?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(d.lastIndex=0,t=t.slice(-1*e.length+i);(n=d.exec(t))!==null;){if(s=n[1]||n[2]||n[3]||n[4]||n[5]||n[6],!s)continue;if(l=[...s].length,n[3]||n[4]){$+=l;continue}else if((n[5]||n[6])&&i%3&&!((i+l)%3)){h+=l;continue}if($-=l,$>0)continue;l=Math.min(l,l+$+h);let w=[...n[0]][0].length,A=e.slice(0,i+n.index+w+l);if(Math.min(i,l)%2){let U=A.slice(1,-1);return{type:"em",raw:A,text:U,tokens:this.lexer.inlineTokens(U)}}let N=A.slice(2,-2);return{type:"strong",raw:A,text:N,tokens:this.lexer.inlineTokens(N)}}}}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,l,$=i,h=this.rules.inline.delRDelim;for(h.lastIndex=0,t=t.slice(-1*e.length+i);(n=h.exec(t))!==null;){if(s=n[1]||n[2]||n[3]||n[4]||n[5]||n[6],!s||(l=[...s].length,l!==i))continue;if(n[3]||n[4]){$+=l;continue}if($-=l,$>0)continue;l=Math.min(l,l+$);let d=[...n[0]][0].length,w=e.slice(0,i+n.index+d+l),A=w.slice(i,-i);return{type:"del",raw:w,text:A,tokens:this.lexer.inlineTokens(A)}}}}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}}}},ti=class C0{tokens;options;state;inlineQueue;tokenizer;constructor(t){this.tokens=[],this.tokens.links=Object.create(null),this.options=t||na,this.options.tokenizer=this.options.tokenizer||new Zu,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:tn,block:Zo.normal,inline:dl.normal};this.options.pedantic?(r.block=Zo.pedantic,r.inline=dl.pedantic):this.options.gfm&&(r.block=Zo.gfm,this.options.breaks?r.inline=dl.breaks:r.inline=dl.gfm),this.tokenizer.rules=r}static get rules(){return{block:Zo,inline:dl}}static lex(t,r){return new C0(r).lex(t)}static lexInline(t,r){return new C0(r).inlineTokens(t)}lex(t){t=t.replace(tn.carriageReturn,`
|
|
395
|
-
`),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(tn.tabCharGlobal," ").replace(tn.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($=>(s=$.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 $=r.at(-1);s.raw.length===1&&$!==void 0?$.raw+=`
|
|
396
|
-
`:r.push(s);continue}if(s=this.tokenizer.code(t)){t=t.substring(s.raw.length);let $=r.at(-1);$?.type==="paragraph"||$?.type==="text"?($.raw+=($.raw.endsWith(`
|
|
397
|
-
`)?"":`
|
|
398
|
-
`)+s.raw,$.text+=`
|
|
399
|
-
`+s.text,this.inlineQueue.at(-1).src=$.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 $=r.at(-1);$?.type==="paragraph"||$?.type==="text"?($.raw+=($.raw.endsWith(`
|
|
400
|
-
`)?"":`
|
|
401
|
-
`)+s.raw,$.text+=`
|
|
402
|
-
`+s.raw,this.inlineQueue.at(-1).src=$.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 l=t;if(this.options.extensions?.startBlock){let $=1/0,h=t.slice(1),d;this.options.extensions.startBlock.forEach(w=>{d=w.call({lexer:this},h),typeof d=="number"&&d>=0&&($=Math.min($,d))}),$<1/0&&$>=0&&(l=t.substring(0,$+1))}if(this.state.top&&(s=this.tokenizer.paragraph(l))){let $=r.at(-1);n&&$?.type==="paragraph"?($.raw+=($.raw.endsWith(`
|
|
403
|
-
`)?"":`
|
|
404
|
-
`)+s.raw,$.text+=`
|
|
405
|
-
`+s.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=$.text):r.push(s),n=l.length!==t.length,t=t.substring(s.raw.length);continue}if(s=this.tokenizer.text(t)){t=t.substring(s.raw.length);let $=r.at(-1);$?.type==="text"?($.raw+=($.raw.endsWith(`
|
|
406
|
-
`)?"":`
|
|
407
|
-
`)+s.raw,$.text+=`
|
|
408
|
-
`+s.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=$.text):r.push(s);continue}if(t){this.infiniteLoopError(t.charCodeAt(0));break}}return this.state.top=!0,r}inline(t,r=[]){return this.inlineQueue.push({src:t,tokens:r}),r}inlineTokens(t,r=[]){this.tokenizer.lexer=this;let n=t,i=null;if(this.tokens.links){let d=Object.keys(this.tokens.links);if(d.length>0)for(;(i=this.tokenizer.rules.inline.reflinkSearch.exec(n))!==null;)d.includes(i[0].slice(i[0].lastIndexOf("[")+1,-1))&&(n=n.slice(0,i.index)+"["+"a".repeat(i[0].length-2)+"]"+n.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(i=this.tokenizer.rules.inline.anyPunctuation.exec(n))!==null;)n=n.slice(0,i.index)+"++"+n.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);let s;for(;(i=this.tokenizer.rules.inline.blockSkip.exec(n))!==null;)s=i[2]?i[2].length:0,n=n.slice(0,i.index+s)+"["+"a".repeat(i[0].length-s-2)+"]"+n.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);n=this.options.hooks?.emStrongMask?.call({lexer:this},n)??n;let l=!1,$="",h=1/0;for(;t;){if(t.length<h)h=t.length;else{this.infiniteLoopError(t.charCodeAt(0));break}l||($=""),l=!1;let d;if(this.options.extensions?.inline?.some(A=>(d=A.call({lexer:this},t,r))?(t=t.substring(d.raw.length),r.push(d),!0):!1))continue;if(d=this.tokenizer.escape(t)){t=t.substring(d.raw.length),r.push(d);continue}if(d=this.tokenizer.tag(t)){t=t.substring(d.raw.length),r.push(d);continue}if(d=this.tokenizer.link(t)){t=t.substring(d.raw.length),r.push(d);continue}if(d=this.tokenizer.reflink(t,this.tokens.links)){t=t.substring(d.raw.length);let A=r.at(-1);d.type==="text"&&A?.type==="text"?(A.raw+=d.raw,A.text+=d.text):r.push(d);continue}if(d=this.tokenizer.emStrong(t,n,$)){t=t.substring(d.raw.length),r.push(d);continue}if(d=this.tokenizer.codespan(t)){t=t.substring(d.raw.length),r.push(d);continue}if(d=this.tokenizer.br(t)){t=t.substring(d.raw.length),r.push(d);continue}if(d=this.tokenizer.del(t,n,$)){t=t.substring(d.raw.length),r.push(d);continue}if(d=this.tokenizer.autolink(t)){t=t.substring(d.raw.length),r.push(d);continue}if(!this.state.inLink&&(d=this.tokenizer.url(t))){t=t.substring(d.raw.length),r.push(d);continue}let w=t;if(this.options.extensions?.startInline){let A=1/0,N=t.slice(1),U;this.options.extensions.startInline.forEach(O=>{U=O.call({lexer:this},N),typeof U=="number"&&U>=0&&(A=Math.min(A,U))}),A<1/0&&A>=0&&(w=t.substring(0,A+1))}if(d=this.tokenizer.inlineText(w)){t=t.substring(d.raw.length),d.raw.slice(-1)!=="_"&&($=d.raw.slice(-1)),l=!0;let A=r.at(-1);A?.type==="text"?(A.raw+=d.raw,A.text+=d.text):r.push(d);continue}if(t){this.infiniteLoopError(t.charCodeAt(0));break}}return r}infiniteLoopError(t){let r="Infinite loop on byte: "+t;if(this.options.silent)console.error(r);else throw new Error(r)}},Ou=class{options;parser;constructor(e){this.options=e||na}space(e){return""}code({text:e,lang:t,escaped:r}){let n=(t||"").match(tn.notSpaceStart)?.[0],i=e.replace(tn.endingNewline,"")+`
|
|
409
|
-
`;return n?'<pre><code class="language-'+li(n)+'">'+(r?i:li(i,!0))+`</code></pre>
|
|
410
|
-
`:"<pre><code>"+(r?i:li(i,!0))+`</code></pre>
|
|
411
|
-
`}blockquote({tokens:e}){return`<blockquote>
|
|
412
|
-
${this.parser.parse(e)}</blockquote>
|
|
413
|
-
`}html({text:e}){return e}def(e){return""}heading({tokens:e,depth:t}){return`<h${t}>${this.parser.parseInline(e)}</h${t}>
|
|
414
|
-
`}hr(e){return`<hr>
|
|
415
|
-
`}list(e){let t=e.ordered,r=e.start,n="";for(let l=0;l<e.items.length;l++){let $=e.items[l];n+=this.listitem($)}let i=t?"ol":"ul",s=t&&r!==1?' start="'+r+'"':"";return"<"+i+s+`>
|
|
416
|
-
`+n+"</"+i+`>
|
|
417
|
-
`}listitem(e){return`<li>${this.parser.parse(e.tokens)}</li>
|
|
418
|
-
`}checkbox({checked:e}){return"<input "+(e?'checked="" ':"")+'disabled="" type="checkbox"> '}paragraph({tokens:e}){return`<p>${this.parser.parseInline(e)}</p>
|
|
419
|
-
`}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 l=0;l<s.length;l++)r+=this.tablecell(s[l]);n+=this.tablerow({text:r})}return n&&(n=`<tbody>${n}</tbody>`),`<table>
|
|
420
|
-
<thead>
|
|
421
|
-
`+t+`</thead>
|
|
422
|
-
`+n+`</table>
|
|
423
|
-
`}tablerow({text:e}){return`<tr>
|
|
424
|
-
${e}</tr>
|
|
425
|
-
`}tablecell(e){let t=this.parser.parseInline(e.tokens),r=e.header?"th":"td";return(e.align?`<${r} align="${e.align}">`:`<${r}>`)+t+`</${r}>
|
|
426
|
-
`}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>${li(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=u_(e);if(i===null)return n;e=i;let s='<a href="'+e+'"';return t&&(s+=' title="'+li(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=u_(e);if(i===null)return li(r);e=i;let s=`<img src="${e}" alt="${li(r)}"`;return t&&(s+=` title="${li(t)}"`),s+=">",s}text(e){return"tokens"in e&&e.tokens?this.parser.parseInline(e.tokens):"escaped"in e&&e.escaped?e.text:li(e.text)}},Th=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}},ri=class T0{options;renderer;textRenderer;constructor(t){this.options=t||na,this.options.renderer=this.options.renderer||new Ou,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new Th}static parse(t,r){return new T0(r).parse(t)}static parseInline(t,r){return new T0(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 l=i,$=this.options.extensions.renderers[l.type].call({parser:this},l);if($!==!1||!["space","hr","heading","code","table","blockquote","list","html","def","paragraph","text"].includes(l.type)){r+=$||"";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 l='Token with "'+s.type+'" type was not found.';if(this.options.silent)return console.error(l),"";throw new Error(l)}}}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 $=this.options.extensions.renderers[s.type].call({parser:this},s);if($!==!1||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(s.type)){n+=$||"";continue}}let l=s;switch(l.type){case"escape":{n+=r.text(l);break}case"html":{n+=r.html(l);break}case"link":{n+=r.link(l);break}case"image":{n+=r.image(l);break}case"checkbox":{n+=r.checkbox(l);break}case"strong":{n+=r.strong(l);break}case"em":{n+=r.em(l);break}case"codespan":{n+=r.codespan(l);break}case"br":{n+=r.br(l);break}case"del":{n+=r.del(l);break}case"text":{n+=r.text(l);break}default:{let $='Token with "'+l.type+'" type was not found.';if(this.options.silent)return console.error($),"";throw new Error($)}}}return n}},bl=class{options;block;constructor(e){this.options=e||na}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?ti.lex:ti.lexInline}provideParser(e=this.block){return e?ri.parse:ri.parseInline}},cb=class{defaults=bh();options=this.setOptions;parse=this.parseMarkdown(!0);parseInline=this.parseMarkdown(!1);Parser=ri;Renderer=Ou;TextRenderer=Th;Lexer=ti;Tokenizer=Zu;Hooks=bl;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 l of s)r=r.concat(this.walkTokens(l.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 l=i[s].flat(1/0);r=r.concat(this.walkTokens(l,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(...l){let $=i.renderer.apply(this,l);return $===!1&&($=s.apply(this,l)),$}: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 Ou(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 l=s,$=r.renderer[l],h=i[l];i[l]=(...d)=>{let w=$.apply(i,d);return w===!1&&(w=h.apply(i,d)),w||""}}n.renderer=i}if(r.tokenizer){let i=this.defaults.tokenizer||new Zu(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 l=s,$=r.tokenizer[l],h=i[l];i[l]=(...d)=>{let w=$.apply(i,d);return w===!1&&(w=h.apply(i,d)),w}}n.tokenizer=i}if(r.hooks){let i=this.defaults.hooks||new bl;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 l=s,$=r.hooks[l],h=i[l];bl.passThroughHooks.has(s)?i[l]=d=>{if(this.defaults.async&&bl.passThroughHooksRespectAsync.has(s))return(async()=>{let A=await $.call(i,d);return h.call(i,A)})();let w=$.call(i,d);return h.call(i,w)}:i[l]=(...d)=>{if(this.defaults.async)return(async()=>{let A=await $.apply(i,d);return A===!1&&(A=await h.apply(i,d)),A})();let w=$.apply(i,d);return w===!1&&(w=h.apply(i,d)),w}}n.hooks=i}if(r.walkTokens){let i=this.defaults.walkTokens,s=r.walkTokens;n.walkTokens=function(l){let $=[];return $.push(s.call(this,l)),i&&($=$.concat(i.call(this,l))),$}}this.defaults={...this.defaults,...n}}),this}setOptions(e){return this.defaults={...this.defaults,...e},this}lexer(e,t){return ti.lex(e,t??this.defaults)}parser(e,t){return ri.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 l=i.hooks?await i.hooks.preprocess(t):t,$=await(i.hooks?await i.hooks.provideLexer(e):e?ti.lex:ti.lexInline)(l,i),h=i.hooks?await i.hooks.processAllTokens($):$;i.walkTokens&&await Promise.all(this.walkTokens(h,i.walkTokens));let d=await(i.hooks?await i.hooks.provideParser(e):e?ri.parse:ri.parseInline)(h,i);return i.hooks?await i.hooks.postprocess(d):d})().catch(s);try{i.hooks&&(t=i.hooks.preprocess(t));let l=(i.hooks?i.hooks.provideLexer(e):e?ti.lex:ti.lexInline)(t,i);i.hooks&&(l=i.hooks.processAllTokens(l)),i.walkTokens&&this.walkTokens(l,i.walkTokens);let $=(i.hooks?i.hooks.provideParser(e):e?ri.parse:ri.parseInline)(l,i);return i.hooks&&($=i.hooks.postprocess($)),$}catch(l){return s(l)}}}onError(e,t){return r=>{if(r.message+=`
|
|
427
|
-
Please report this to https://github.com/markedjs/marked.`,e){let n="<p>An error occurred:</p><pre>"+li(r.message+"",!0)+"</pre>";return t?Promise.resolve(n):n}if(t)return Promise.reject(r);throw r}}},Qs=new cb;function lr(e,t){return Qs.parse(e,t)}lr.options=lr.setOptions=function(e){return Qs.setOptions(e),lr.defaults=Qs.defaults,eb(lr.defaults),lr};lr.getDefaults=bh;lr.defaults=na;lr.use=function(...e){return Qs.use(...e),lr.defaults=Qs.defaults,eb(lr.defaults),lr};lr.walkTokens=function(e,t){return Qs.walkTokens(e,t)};lr.parseInline=Qs.parseInline;lr.Parser=ri;lr.parser=ri.parse;lr.Renderer=Ou;lr.TextRenderer=Th;lr.Lexer=ti;lr.lexer=ti.lex;lr.Tokenizer=Zu;lr.Hooks=bl;lr.parse=lr;lr.options;lr.setOptions;lr.use;lr.walkTokens;lr.parseInline;ri.parse;ti.lex;const o8=new cb({extensions:[{name:"blockMath",level:"block",start(e){return e.indexOf("$$")},tokenizer(e){const t=/^\$\$([\s\S]+?)\$\$/.exec(e);if(t)return{type:"blockMath",raw:t[0],text:t[1].trim()}},renderer(e){return di(e.text,!0)}},{name:"inlineMath",level:"inline",start(e){return e.indexOf("$")},tokenizer(e){const t=/^\$(?!\s)((?:\\.|[^$\\])+?)(?<!\s)\$(?!\d)/.exec(e);if(t)return{type:"inlineMath",raw:t[0],text:t[1]}},renderer(e){return di(e.text,!1)}}]});function u8(e,t){const r=Hy(e,t);return r?Pi(Wn(r)):null}function c8(e,t){if(!t||!e.includes("<img"))return e;const r=document.createElement("template");r.innerHTML=e;for(const n of r.content.querySelectorAll("img[src]")){const i=u8(n.getAttribute("src")||"",t);i&&n.setAttribute("src",i)}return r.innerHTML}function $b(e,t){const r=yv(o8.parse(String(e??""),{async:!1}));return Wy(c8(r,t),t)}function $8({node:e,onNavigate:t}){return Rc(e),le.jsxs("div",{className:"text",children:[e.title&&le.jsx("h1",{className:"chapter-title",children:e.title}),e.description&&le.jsx("p",{className:"chapter-subtitle",children:e.description}),le.jsx(Gy,{html:$b(vi(e.value),e.path),onNavigate:t})]})}function f8({chunk:e,onNavigate:t}){return le.jsx("div",{className:"markup",onClick:gh(t),dangerouslySetInnerHTML:{__html:$b(e.value,e.documentPath)}})}/**
|
|
428
|
-
* @license Asciidoctor.js 3.0.4 | MIT | https://github.com/asciidoctor/asciidoctor.js
|
|
429
|
-
*/(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,l,$,h,d=e.Opal={};d.global=e,d.config={missing_require_severity:"error",unsupported_features_severity:"warning",experimental_features_severity:"warning",enable_stack_trace:!0};var w=Function.prototype.call,A=Function.prototype.bind,N=Object.hasOwn||w.bind(Object.prototype.hasOwnProperty),U=Object.setPrototypeOf,O=w.bind(Array.prototype.slice),j=w.bind(Array.prototype.splice),q=4,Y=q;function he(){return Y+=2,Y}d.uid=he,d.id=function(v){return v.$$is_number?v*2+1:(v.$$id==null&&Q(v,"$$id",he()),v.$$id)};var ne=d.gvars={};d.exit=function(v){ne.DEBUG&&t.log("Exited with status "+v)},d.exceptions=[],d.pop_exception=function(){var v=d.exceptions.pop();v?(ne["!"]=v,ne["@"]=v.$backtrace()):ne["!"]=ne["@"]=r};function _e(v,M){if(v||(v=d.Exception||Error),h&&h.$raise)arguments.length>2?h.$raise(v.$new.apply(v,O(arguments,1))):h.$raise(v,M);else throw v.$new?v.$new(M):new v(M)}function Q(v,M,xe){typeof v=="string"?v[M]=xe:Object.defineProperty(v,M,{value:xe,enumerable:!1,configurable:!0,writable:!0})}d.prop=Q,d.defineProperty=d.prop,d.slice=O;var be=d.truthy=function(v){return v!==!1&&r!==v&&v!==void 0&&v!==null&&(!(v instanceof Boolean)||v.valueOf()===!0)};d.falsy=function(v){return!be(v)},d.type_error=function(v,M,xe,Me){v=v.$$class,Me&&xe?(Me=Me.$$class,_e(d.TypeError,"can't convert "+v+" into "+M+" ("+v+"#"+xe+" gives "+Me+")")):_e(d.TypeError,"no implicit conversion of "+v+" into "+M)},d.coerce_to=function(v,M,xe,Me){var Qe;return xe==="to_int"&&M===d.Integer&&v.$$is_number?v<0?Math.ceil(v):Math.floor(v):xe==="to_str"&&M===d.String&&v.$$is_string||d.is_a(v,M)?v:v["$respond_to?"].$$pristine&&v.$method_missing.$$pristine?(Qe=v[_t(xe)],(Qe==null||Qe.$$stub)&&d.type_error(v,M),Qe.apply(v,Me)):(v["$respond_to?"](xe)||d.type_error(v,M),Me==null&&(Me=[]),d.send(v,xe,Me))},d.respond_to=function(v,M,xe){if(v==null||!v.$$class)return!1;xe=!!xe;var Me=v[M];if(v["$respond_to?"].$$pristine){if(typeof Me=="function"&&!Me.$$stub)return!0;if(!v["$respond_to_missing?"].$$pristine)return d.send(v,v["$respond_to_missing?"],[M.substr(1),xe])}else return d.send(v,v["$respond_to?"],[M.substr(1),xe])},d.trace_class=!1,d.tracers_for_class=[];function oe(v){var M,xe,Me;for(M=0,xe=d.tracers_for_class.length;M<xe;M++)Me=d.tracers_for_class[M],Me.trace_object=v,Me.block.$call(Me)}function Ee(v,M){if(v.$$autoload[M].loaded){if(v.$$autoload[M].loaded&&!v.$$autoload[M].required&&v.$$autoload[M].exception)throw v.$$autoload[M].exception}else{v.$$autoload[M].loaded=!0;try{d.Kernel.$require(v.$$autoload[M].path)}catch(xe){throw v.$$autoload[M].exception=xe,xe}if(v.$$autoload[M].required=!0,v.$$const[M]!=null)return v.$$autoload[M].success=!0,v.$$const[M]}}function te(v,M){if(v){if(v.$$const[M]!=null)return v.$$const[M];if(v.$$autoload&&v.$$autoload[M])return Ee(v,M)}}function Ce(v,M){var xe,Me,Qe;if(v.length!==0)for(xe=0,Me=v.length;xe<Me;xe++){if(Qe=v[xe].$$const[M],Qe!=null)return Qe;if(v[xe].$$autoload&&v[xe].$$autoload[M])return Ee(v[xe],M)}}function de(v,M){var xe,Me,Qe;if(v!=null)for(Qe=nt(v),xe=0,Me=Qe.length;xe<Me;xe++){if(Qe[xe].$$const&&N(Qe[xe].$$const,M))return Qe[xe].$$const[M];if(Qe[xe].$$autoload&&Qe[xe].$$autoload[M])return Ee(Qe[xe],M)}}function k(v,M){if(v==null||v.$$is_module)return de(i,M)}function Ae(v,M){return(v||i).$const_missing(M)}d.const_get_local=function(v,M,xe){var Me;if(v!=null)return v==="::"&&(v=i),!v.$$is_module&&!v.$$is_class&&_e(d.TypeError,v.toString()+" is not a class/module"),Me=te(v,M),Me!=null||xe?Me:Ae(v,M)},d.const_get_qualified=function(v,M,xe){var Me,Qe,$t,a=d.const_cache_version;if(M==null)return Me=te(i,v),Me??d.const_get_qualified(i,v,xe);if(v!=null)return v==="::"&&(v=i),!v.$$is_module&&!v.$$is_class&&_e(d.TypeError,v.toString()+" is not a class/module"),(Qe=v.$$const_cache)==null&&(Q(v,"$$const_cache",Object.create(null)),Qe=v.$$const_cache),$t=Qe[M],$t==null||$t[0]!==a?((Me=te(v,M))!=null||(Me=de(v,M))!=null,Qe[M]=[a,Me]):Me=$t[1],Me!=null||xe?Me:Ae(v,M)},d.const_cache_version=1,d.const_get_relative=function(v,M,xe){var Me=v[0],Qe,$t=d.const_cache_version,a,ue;return(a=v.$$const_cache)==null&&(Q(v,"$$const_cache",Object.create(null)),a=v.$$const_cache),ue=a[M],ue==null||ue[0]!==$t?((Qe=te(Me,M))!=null||(Qe=Ce(v,M))!=null||(Qe=de(Me,M))!=null||(Qe=k(Me,M))!=null,a[M]=[$t,Qe]):Qe=ue[1],Qe!=null||xe?Qe:Ae(Me,M)};function B(v,M,xe){var Me=!0;return(v==null||v==="::")&&(v=i),xe.$$is_a_module&&((xe.$$name==null||xe.$$name===r)&&(xe.$$name=M),xe.$$base_module==null&&(xe.$$base_module=v)),v.$$const=v.$$const||Object.create(null),(M in v.$$const||"$$autoload"in v&&M in v.$$autoload)&&(Me=!1),v.$$const[M]=xe,v.$$=v.$$const,d.const_cache_version++,v===i&&(d[M]=xe),Q(v,M,xe),Me&&v.$const_added&&!v.$const_added.$$pristine&&v.$const_added(M),xe}d.const_set=B,d.constants=function(v,M){M==null&&(M=!0);var xe,Me=[v],Qe,$t,a={},ue;for(M&&(Me=Me.concat(nt(v))),M&&v.$$is_module&&(Me=Me.concat([d.Object]).concat(nt(d.Object))),Qe=0,$t=Me.length;Qe<$t&&(xe=Me[Qe],!(v!==i&&xe==i));Qe++){for(ue in xe.$$const)a[ue]=!0;if(xe.$$autoload)for(ue in xe.$$autoload)a[ue]=!0}return Object.keys(a)},d.const_remove=function(v,M){if(d.const_cache_version++,v.$$const[M]!=null){var xe=v.$$const[M];return delete v.$$const[M],xe}if(v.$$autoload&&v.$$autoload[M])return delete v.$$autoload[M],r;_e(d.NameError,"constant "+v+"::"+v.$name()+" not defined")},d.const_get_relative_factory=function(v){return function(M,xe){return d.$$(v,M,xe)}},d.$$=d.const_get_relative,d.$$$=d.const_get_qualified,d.$r=d.const_get_relative_factory;function pe(v,M,xe){var Me;if(M!=null&&M.$$bridge?Me=function(){var ue=O(arguments),se=new(A.apply(M.$$constructor,[null].concat(ue)));return U(se,Me.$$prototype),se}:Me=function(){},v&&v!==r&&Q(Me,"displayName","::"+v),Q(Me,"$$name",v),Q(Me,"$$constructor",Me),Q(Me,"$$prototype",Me.prototype),Q(Me,"$$const",{}),Q(Me,"$$is_class",!0),Q(Me,"$$is_a_module",!0),Q(Me,"$$super",M),Q(Me,"$$cvars",{}),Q(Me,"$$own_included_modules",[]),Q(Me,"$$own_prepended_modules",[]),Q(Me,"$$ancestors",[]),Q(Me,"$$ancestors_cache_version",null),Q(Me,"$$subclasses",[]),Q(Me.$$prototype,"$$class",Me),d.Class&&U(Me,d.Class.prototype),M!=null){if(U(Me.$$prototype,M.$$prototype),xe!==!0)if(typeof WeakRef<"u"){var Qe,$t,a=[];for(Qe=0;Qe<M.$$subclasses.length;Qe++)$t=M.$$subclasses[Qe],$t.deref()!==void 0&&a.push($t);a.push(new WeakRef(Me)),M.$$subclasses=a}else M.$$subclasses.push(Me);M.$$meta&&d.build_class_singleton_class(Me)}return Me}d.allocate_class=pe;function W(v,M){var xe=te(v,M);if(xe)return xe.$$is_class||_e(d.TypeError,M+" is not a class"),xe}function Fe(v,M){v.$$super!==M&&_e(d.TypeError,"superclass mismatch for class "+v.$$name)}d.klass=function(v,M,xe){var Me;v==null||v=="::"?v=i:!v.$$is_class&&!v.$$is_module&&(v=v.$$class),M!=null&&(!M.hasOwnProperty||M.hasOwnProperty&&!M.hasOwnProperty("$$is_class"))&&(M.constructor&&M.constructor.name=="Function"?(Me=M,M=i):_e(d.TypeError,"superclass must be a Class ("+(M.constructor&&(M.constructor.name||M.constructor.$$name)||typeof M)+" given)"));var Qe=W(v,xe);return Qe!=null?M&&Fe(Qe,M):(M==null&&(M=i),Qe=pe(xe,M),B(v,xe,Qe),M.$inherited&&M.$inherited(Qe),Me&&d.bridge(Me,Qe)),d.trace_class&&oe(Qe),Qe};function fe(v){var M=function(){},xe=M;return v&&Q(M,"displayName",v+".constructor"),Q(xe,"$$name",v),Q(xe,"$$prototype",M.prototype),Q(xe,"$$const",{}),Q(xe,"$$is_module",!0),Q(xe,"$$is_a_module",!0),Q(xe,"$$cvars",{}),Q(xe,"$$iclasses",[]),Q(xe,"$$own_included_modules",[]),Q(xe,"$$own_prepended_modules",[]),Q(xe,"$$ancestors",[xe]),Q(xe,"$$ancestors_cache_version",null),U(xe,d.Module.prototype),xe}d.allocate_module=fe;function V(v,M){var xe=te(v,M);return xe==null&&v===i&&(xe=de(i,M)),xe&&!xe.$$is_module&&xe!==i&&_e(d.TypeError,M+" is not a module"),xe}d.module=function(v,M){var xe;return v==null||v=="::"?v=i:!v.$$is_class&&!v.$$is_module&&(v=v.$$class),xe=V(v,M),xe==null&&(xe=fe(M),B(v,M,xe)),d.trace_class&&oe(xe),xe},d.get_singleton_class=function(v){return v.$$is_number&&_e(d.TypeError,"can't define singleton"),v.$$meta?v.$$meta:v.hasOwnProperty("$$is_class")?d.build_class_singleton_class(v):v.hasOwnProperty("$$is_module")?d.build_module_singleton_class(v):d.build_object_singleton_class(v)};function x(v,M){v.hasOwnProperty("$$meta")?v.$$meta=M:Q(v,"$$meta",M),v.$$frozen?v.$$meta.$freeze():U(v,M.$$prototype)}d.build_class_singleton_class=function(v){if(v.$$meta)return v.$$meta;var M=v===n?l:d.get_singleton_class(v.$$super),xe=pe(null,M,!0);return Q(xe,"$$is_singleton",!0),Q(xe,"$$singleton_of",v),x(v,xe),Q(v,"$$class",d.Class),xe},d.build_module_singleton_class=function(v){if(v.$$meta)return v.$$meta;var M=pe(null,d.Module,!0);return Q(M,"$$is_singleton",!0),Q(M,"$$singleton_of",v),x(v,M),Q(v,"$$class",d.Module),M},d.build_object_singleton_class=function(v){var M=v.$$class,xe=pe(r,M,!0);return Q(xe,"$$is_singleton",!0),Q(xe,"$$singleton_of",v),delete xe.$$prototype.$$class,x(v,xe),xe},d.is_method=function(v){return v[0]==="$"&&v[1]!=="$"},d.instance_methods=function(v){for(var M=[],xe=[],Me=nt(v),Qe=0,$t=Me.length;Qe<$t;Qe++){var a=Me[Qe],ue=a.$$prototype;ue.hasOwnProperty("$$dummy")&&(ue=ue.$$define_methods_on);for(var se=Object.getOwnPropertyNames(ue),K=0,ye=se.length;K<ye;K++){var y=se[K];if(d.is_method(y)){var X=y.slice(1),Ue=ue[y];Ue.$$stub&&M.indexOf(X)===-1&&M.push(X),!Ue.$$stub&&xe.indexOf(X)===-1&&M.indexOf(X)===-1&&xe.push(X)}}}return xe},d.own_instance_methods=function(v){var M=[],xe=v.$$prototype;xe.hasOwnProperty("$$dummy")&&(xe=xe.$$define_methods_on);for(var Me=Object.getOwnPropertyNames(xe),Qe=0,$t=Me.length;Qe<$t;Qe++){var a=Me[Qe];if(d.is_method(a)){var ue=xe[a];if(!ue.$$stub){var se=a.slice(1);M.push(se)}}}return M},d.methods=function(v){return d.instance_methods(v.$$meta||v.$$class)},d.own_methods=function(v){return v.$$meta?d.own_instance_methods(v.$$meta):[]},d.receiver_methods=function(v){var M=d.get_singleton_class(v),xe=d.own_instance_methods(M),Me=d.own_instance_methods(M.$$super);return xe.concat(Me)},d.class_variables=function(v){var M=nt(v),xe,Me=M.length,Qe={};for(xe=Me-1;xe>=0;xe--){var $t=M[xe];for(var a in $t.$$cvars)Qe[a]=$t.$$cvars[a]}return Qe},d.class_variable_set=function(v,M,xe){var Me=nt(v),Qe,$t=Me.length;for(Qe=$t-2;Qe>=0;Qe--){var a=Me[Qe];if(N(a.$$cvars,M))return a.$$cvars[M]=xe,xe}return v.$$cvars[M]=xe,xe},d.class_variable_get=function(v,M,xe){if(N(v.$$cvars,M))return v.$$cvars[M];var Me=nt(v),Qe,$t=Me.length;for(Qe=0;Qe<$t;Qe++){var a=Me[Qe];if(N(a.$$cvars,M))return a.$$cvars[M]}return xe||_e(d.NameError,"uninitialized class variable "+M+" in "+v.$name()),r};function f(v){return v.hasOwnProperty("$$iclass")&&v.hasOwnProperty("$$root")}function o(v){for(var M=[],xe,Me=Object.getPrototypeOf(v.$$prototype);Me&&!Me.hasOwnProperty("$$class");)xe=re(Me),xe&&M.push(xe),Me=Object.getPrototypeOf(Me);return M}function c(v){var M=[],xe,Me=Object.getPrototypeOf(v.$$prototype);if(v.$$prototype.hasOwnProperty("$$dummy"))for(;Me&&Me!==v.$$prototype.$$define_methods_on;)xe=re(Me),xe&&M.push(xe),Me=Object.getPrototypeOf(Me);return M}d.append_features=function(v,M){var xe=nt(v),Me=[];xe.indexOf(M)!==-1&&_e(d.ArgumentError,"cyclic include detected");for(var Qe=0,$t=xe.length;Qe<$t;Qe++){var a=xe[Qe],ue=m(a);Q(ue,"$$included",!0),Me.push(ue)}var se=nt(M),K=T(Me),ye,y;if(se.indexOf(v)===-1)ye=M.$$prototype,y=Object.getPrototypeOf(M.$$prototype);else{for(var X=M.$$prototype,Ue=Object.getPrototypeOf(X);Ue!=null&&!(Ue.$$module===v&&f(Ue));)X=Ue,Ue=Object.getPrototypeOf(Ue);if(Ue){for(var J=Object.getPrototypeOf(Ue);J.hasOwnProperty("$$iclass")&&!f(J);)J=Object.getPrototypeOf(J);ye=X,y=J}else ye=M.$$prototype,y=Object.getPrototypeOf(M.$$prototype)}U(ye,K.first),U(K.last,y),M.$$own_included_modules=o(M),d.const_cache_version++},d.prepend_features=function(v,M){var xe=nt(v),Me=[];xe.indexOf(M)!==-1&&_e(d.ArgumentError,"cyclic prepend detected");for(var Qe=0,$t=xe.length;Qe<$t;Qe++){var a=xe[Qe],ue=m(a);Q(ue,"$$prepended",!0),Me.push(ue)}var se=T(Me),K=M.$$prototype,ye=Object.getPrototypeOf(K),y,X,Ue;K.hasOwnProperty("$$dummy")?y=K.$$define_methods_on:(y=E(M),p(M),Q(K,"$$dummy",!0),Q(K,"$$define_methods_on",y),U(K,y),U(y,ye));var J=nt(M);if(J.indexOf(v)===-1)for(X=K,Ue=Object.getPrototypeOf(K);Ue!=null&&!(Ue.hasOwnProperty("$$root")||Ue===y||!Ue.hasOwnProperty("$$iclass"));)Ue=Object.getPrototypeOf(Ue);else _e(d.RuntimeError,"Prepending a module multiple times is not supported");U(X,se.first),U(se.last,Ue),M.$$own_prepended_modules=c(M),d.const_cache_version++};function p(v){for(var M=v.$$prototype,xe=Object.getOwnPropertyNames(M),Me=0;Me<xe.length;Me++){var Qe=xe[Me];d.is_method(Qe)&&delete M[Qe]}}function m(v){var M=E(v);return v.$$is_module&&v.$$iclasses.push(M),M}function E(v){var M={},xe=v.$$prototype;xe.hasOwnProperty("$$dummy")&&(xe=xe.$$define_methods_on);var Me=Object.getOwnPropertyNames(xe),Qe=Me.length,$t;for($t=0;$t<Qe;$t++){var a=Me[$t];Q(M,a,xe[a])}return Q(M,"$$iclass",!0),Q(M,"$$module",v),M}function T(v){var M=v.length,xe=v[0];if(Q(xe,"$$root",!0),M===1)return{first:xe,last:xe};for(var Me=xe,Qe=1;Qe<M;Qe++){var $t=v[Qe];U(Me,$t),Me=$t}return{first:v[0],last:v[M-1]}}d.bridge=function(v,M){v.hasOwnProperty("$$bridge")&&_e(d.ArgumentError,"already bridged"),Q(v,"$$bridge",M),U(v.prototype,(M.$$super||d.Object).$$prototype),Q(M,"$$prototype",v.prototype),Q(M.$$prototype,"$$class",M),Q(M,"$$constructor",v),Q(M,"$$bridge",!0)};function re(v){if(!v.hasOwnProperty("$$dummy")){if(v.hasOwnProperty("$$iclass"))return v.$$module;if(v.hasOwnProperty("$$class"))return v.$$class}}function je(v){return v.$$own_prepended_modules.concat([v]).concat(v.$$own_included_modules)}function nt(v){if(!v)return[];if(v.$$ancestors_cache_version===d.const_cache_version)return v.$$ancestors;var M=[],xe,Me,Qe;for(xe=0,Me=je(v),Qe=Me.length;xe<Qe;xe++)M.push(Me[xe]);if(v.$$super)for(xe=0,Me=nt(v.$$super),Qe=Me.length;xe<Qe;xe++)M.push(Me[xe]);return v.$$ancestors_cache_version=d.const_cache_version,v.$$ancestors=M,M}d.ancestors=nt,d.included_modules=function(v){for(var M=[],xe=null,Me=Object.getPrototypeOf(v.$$prototype);Me&&Object.getPrototypeOf(Me);Me=Object.getPrototypeOf(Me))xe=re(Me),xe&&xe.$$is_module&&Me.$$iclass&&Me.$$included&&M.push(xe);return M},d.add_stubs=function(v){var M=d.BasicObject.$$prototype,xe,Me;v=v.split(",");for(var Qe=0,$t=v.length;Qe<$t;Qe++)xe=_t(v[Qe]),Me=M[xe],(Me==null||Me.$$stub)&&d.add_stub_for(M,xe)},d.add_stub_for=function(v,M){Q(v,M,d.stub_for(M))},d.stub_for=function(v){function M(){this.$method_missing.$$p=M.$$p,M.$$p=null;for(var xe=new Array(arguments.length),Me=0,Qe=xe.length;Me<Qe;Me++)xe[Me]=arguments[Me];return this.$method_missing.apply(this,[v.slice(1)].concat(xe))}return M.$$stub=!0,M},d.ac=function(v,M,xe,Me){var Qe="";xe.$$is_a_module?Qe+=xe.$$name+".":Qe+=xe.$$class.$$name+"#",Qe+=Me,_e(d.ArgumentError,"["+Qe+"] wrong number of arguments (given "+v+", expected "+M+")")},d.block_ac=function(v,M,xe){var Me="`block in "+xe+"'";_e(d.ArgumentError,Me+": wrong number of arguments (given "+v+", expected "+M+")")};function ft(v){return v.hasOwnProperty("$$meta")&&v.$$meta!==null?nt(v.$$meta):nt(v.$$class)}d.find_super=function(v,M,xe,Me,Qe){var $t=_t(M),a,ue;a=ft(v);for(var se=a.indexOf(xe.$$owner),K=se+1;K<a.length;K++){var ye=a[K],y=ye.$$prototype;if(y.hasOwnProperty("$$dummy")&&(y=y.$$define_methods_on),y.hasOwnProperty($t)){ue=y[$t];break}}return!Me&&ue&&ue.$$stub&&v.$method_missing.$$pristine&&_e(d.NoMethodError,"super: no superclass method `"+M+"' for "+v,M),ue.$$stub&&!Qe?null:ue},d.find_block_super=function(v,M,xe,Me,Qe){var $t=M;return xe||_e(d.RuntimeError,"super called outside of method"),Qe&&xe.$$define_meth&&_e(d.RuntimeError,"implicit argument passing of super from method defined by define_method() is not supported. Specify all arguments explicitly"),xe.$$def&&($t=xe.$$jsid),d.find_super(v,$t,xe,Me)},d.find_super_dispatcher=d.find_super,d.find_iter_super_dispatcher=d.find_block_super,d.yield1=function(v,M){typeof v!="function"&&_e(d.LocalJumpError,"no block given");var xe=v.$$has_top_level_mlhs_arg,Me=v.$$has_trailing_comma_in_args;return(v.length>1||(xe||Me)&&v.length===1)&&(M=d.to_ary(M)),(v.length>1||Me&&v.length===1)&&M.$$is_array?v.apply(null,M):v(M)},d.yieldX=function(v,M){if(typeof v!="function"&&_e(d.LocalJumpError,"no block given"),v.length>1&&M.length===1&&M[0].$$is_array)return v.apply(null,M[0]);if(!M.$$is_array){for(var xe=new Array(M.length),Me=0,Qe=xe.length;Me<Qe;Me++)xe[Me]=M[Me];return v.apply(null,xe)}return v.apply(null,M)},d.rescue=function(v,M){for(var xe=0;xe<M.length;xe++){var Me=M[xe];if(Me.$$is_array){var Qe=d.rescue(v,Me);if(Qe)return Qe}else if(Me===d.JS.Error||Me["$==="](v))return Me}return null},d.is_a=function(v,M){if(M!=null&&v.$$meta===M||v.$$class===M)return!0;if(v.$$is_number&&M.$$is_number_class)return M.$$is_integer_class?v%1===0:!0;var xe=nt(v.$$is_class?d.get_singleton_class(v):v.$$meta||v.$$class);return xe.indexOf(M)!==-1},d.to_hash=function(v){if(v.$$is_hash)return v;if(v["$respond_to?"]("to_hash",!0)){var M=v.$to_hash();if(M.$$is_hash)return M;_e(d.TypeError,"Can't convert "+v.$$class+" to Hash ("+v.$$class+"#to_hash gives "+M.$$class+")")}else _e(d.TypeError,"no implicit conversion of "+v.$$class+" into Hash")},d.to_ary=function(v){if(v.$$is_array)return v;if(v["$respond_to?"]("to_ary",!0)){var M=v.$to_ary();if(M===r)return[v];if(M.$$is_array)return M;_e(d.TypeError,"Can't convert "+v.$$class+" to Array ("+v.$$class+"#to_ary gives "+M.$$class+")")}else return[v]},d.to_a=function(v){if(v.$$is_array)return v.slice();if(v["$respond_to?"]("to_a",!0)){var M=v.$to_a();if(M===r)return[v];if(M.$$is_array)return M;_e(d.TypeError,"Can't convert "+v.$$class+" to Array ("+v.$$class+"#to_a gives "+M.$$class+")")}else return[v]},d.extract_kwargs=function(v){var M=v[v.length-1];if(M!=null&&d.respond_to(M,"$to_hash",!0))return j(v,v.length-1),M},d.kwrestargs=function(v,M){var xe=[],Me={},Qe,$t=v.$$smap;for(Qe in $t)M[Qe]||(xe.push(Qe),Me[Qe]=$t[Qe]);return d.hash2(xe,Me)};function yt(v,M){typeof M=="number"?v.$$arity=M:typeof M=="object"&&Object.assign(v,M)}var zt={};function _t(v){return zt[v]||(zt[v]="$"+v)}d.jsid=_t,d.send=function(v,M,xe,Me,Qe){var $t;return typeof M=="function"?($t=M,M=null):typeof M=="string"?$t=v[_t(M)]:_e(d.NameError,"Passed method should be a string or a function"),d.send2(v,$t,M,xe,Me,Qe)},d.send2=function(v,M,xe,Me,Qe,$t){return M==null&&xe!=null&&v.$method_missing&&(M=v.$method_missing,Me=[xe].concat(Me)),yt(Qe,$t),typeof Qe=="function"&&(M.$$p=Qe),M.apply(v,Me)},d.refined_send=function(v,M,xe,Me,Qe,$t){var a,ue,se,K,ye,y,X,Ue,J,qe;for(K=ft(M),a=0;a<K.length;a++)for(ye=d.id(K[a]),ue=0;ue<v.length;ue++)for(y=v[ue],se=y.length-1;se>=0;se--)if(X=y[se],!(typeof X.$$refine_modules>"u")&&(Ue=X.$$refine_modules,!(typeof Ue[ye]>"u")&&(J=Ue[ye],typeof J.$$prototype[_t(xe)]<"u")))return qe=J.$$prototype[_t(xe)],d.send2(M,qe,xe,Me,Qe,$t);return d.send(M,xe,Me,Qe,$t)},d.lambda=function(v,M){return v.$$is_lambda=!0,yt(v,M),v},d.def=function(v,M,xe,Me){return yt(xe,Me),v===d.top?d.defn(d.Object,M,xe):!v.$$eval&&v.$$is_a_module?d.defn(v,M,xe):d.defs(v,M,xe)},d.defn=function(v,M,xe){xt(v),xe.displayName=M,xe.$$owner=v;var Me=M.substr(1),Qe=v.$$prototype;if(Qe.hasOwnProperty("$$dummy")&&(Qe=Qe.$$define_methods_on),Q(Qe,M,xe),v.$$is_module){v.$$module_function&&d.defs(v,M,xe);for(var $t=0,a=v.$$iclasses,ue=a.length;$t<ue;$t++){var se=a[$t];Q(se,M,xe)}}var K=v.$$singleton_of;return v.$method_added&&!v.$method_added.$$stub&&!K?v.$method_added(Me):K&&K.$singleton_method_added&&!K.$singleton_method_added.$$stub&&K.$singleton_method_added(Me),Me},d.defs=function(v,M,xe,Me){return yt(xe,Me),(v.$$is_string||v.$$is_number)&&_e(d.TypeError,"can't define singleton"),d.defn(d.get_singleton_class(v),M,xe)},d.rdef=function(v,M){N(v.$$prototype,M)||_e(d.NameError,"method '"+M.substr(1)+"' not defined in "+v.$name()),delete v.$$prototype[M],v.$$is_singleton?v.$$prototype.$singleton_method_removed&&!v.$$prototype.$singleton_method_removed.$$stub&&v.$$prototype.$singleton_method_removed(M.substr(1)):v.$method_removed&&!v.$method_removed.$$stub&&v.$method_removed(M.substr(1))},d.udef=function(v,M){(!v.$$prototype[M]||v.$$prototype[M].$$stub)&&_e(d.NameError,"method '"+M.substr(1)+"' not defined in "+v.$name()),d.add_stub_for(v.$$prototype,M),v.$$is_singleton?v.$$prototype.$singleton_method_undefined&&!v.$$prototype.$singleton_method_undefined.$$stub&&v.$$prototype.$singleton_method_undefined(M.substr(1)):v.$method_undefined&&!v.$method_undefined.$$stub&&v.$method_undefined(M.substr(1))};function vt(v){return typeof v=="function"&&!v.$$stub}d.alias=function(v,M,xe){var Me=_t(M),Qe=_t(xe),$t,a;if(typeof v.$$prototype>"u"&&(v=d.Object),$t=v.$$prototype[Qe],v.$$eval)return d.alias(d.get_singleton_class(v),M,xe);if(!vt($t)){for(var ue=v.$$super;typeof $t!="function"&&ue;)$t=ue[Qe],ue=ue.$$super;!vt($t)&&v.$$is_module&&($t=d.Object.$$prototype[Qe]),vt($t)||_e(d.NameError,"undefined method `"+xe+"' for class `"+v.$name()+"'")}$t.$$alias_of&&($t=$t.$$alias_of),a=function(){var se=a.$$p,K,ye,y;for(K=new Array(arguments.length),ye=0,y=arguments.length;ye<y;ye++)K[ye]=arguments[ye];return a.$$p=null,d.send(this,$t,K,se)};try{Object.defineProperty(a,"length",{value:$t.length})}catch{}return a.displayName=M,a.$$arity=$t.$$arity==null?$t.length:$t.$$arity,a.$$parameters=$t.$$parameters,a.$$source_location=$t.$$source_location,a.$$alias_of=$t,a.$$alias_name=M,d.defn(v,Me,a),v},d.alias_gvar=function(v,M){return Object.defineProperty(ne,v,{configurable:!0,enumerable:!0,get:function(){return ne[M]},set:function(xe){ne[M]=xe}}),r},d.alias_native=function(v,M,xe){var Me=_t(M),Qe=v.$$prototype[xe];return(typeof Qe!="function"||Qe.$$stub)&&_e(d.NameError,"undefined native method `"+xe+"' for class `"+v.$name()+"'"),d.defn(v,Me,Qe),v},d.hash_init=function(v){v.$$smap=Object.create(null),v.$$map=Object.create(null),v.$$keys=[]},d.hash_clone=function(v,M){M.$$none=v.$$none,M.$$proc=v.$$proc;for(var xe=0,Me=v.$$keys,Qe=v.$$smap,$t=Me.length,a,ue;xe<$t;xe++)a=Me[xe],a.$$is_string?ue=Qe[a]:(ue=a.value,a=a.key),d.hash_put(M,a,ue)},d.hash_put=function(v,M,xe){if(M.$$is_string){N(v.$$smap,M)||v.$$keys.push(M),v.$$smap[M]=xe;return}var Me,Qe,$t;if(Me=v.$$by_identity?d.id(M):M.$hash(),!N(v.$$map,Me)){Qe={key:M,key_hash:Me,value:xe},v.$$keys.push(Qe),v.$$map[Me]=Qe;return}for(Qe=v.$$map[Me];Qe;){if(M===Qe.key||M["$eql?"](Qe.key)){$t=void 0,Qe.value=xe;break}$t=Qe,Qe=Qe.next}$t&&(Qe={key:M,key_hash:Me,value:xe},v.$$keys.push(Qe),$t.next=Qe)},d.hash_get=function(v,M){if(M.$$is_string)return N(v.$$smap,M)?v.$$smap[M]:void 0;var xe,Me;if(xe=v.$$by_identity?d.id(M):M.$hash(),N(v.$$map,xe))for(Me=v.$$map[xe];Me;){if(M===Me.key||M["$eql?"](Me.key))return Me.value;Me=Me.next}},d.hash_delete=function(v,M){var xe,Me=v.$$keys,Qe=Me.length,$t,a;if(M.$$is_string){if(typeof M!="string"&&(M=M.valueOf()),!N(v.$$smap,M))return;for(xe=0;xe<Qe;xe++)if(a=Me[xe],a.$$is_string&&typeof a!="string"&&(a=a.valueOf()),a===M){Me.splice(xe,1);break}return $t=v.$$smap[M],delete v.$$smap[M],$t}var ue=M.$hash();if(N(v.$$map,ue))for(var se=v.$$map[ue],K;se;){if(M===se.key||M["$eql?"](se.key)){for($t=se.value,xe=0;xe<Qe;xe++)if(Me[xe]===se){Me.splice(xe,1);break}return K&&se.next?K.next=se.next:K?delete K.next:se.next?v.$$map[ue]=se.next:delete v.$$map[ue],$t}K=se,se=se.next}},d.hash_rehash=function(v){for(var M=0,xe=v.$$keys.length,Me,Qe,$t;M<xe;M++)if(!v.$$keys[M].$$is_string&&(Me=v.$$keys[M].key.$hash(),Me!==v.$$keys[M].key_hash)){for(Qe=v.$$map[v.$$keys[M].key_hash],$t=void 0;Qe;){if(Qe===v.$$keys[M]){$t&&Qe.next?$t.next=Qe.next:$t?delete $t.next:Qe.next?v.$$map[v.$$keys[M].key_hash]=Qe.next:delete v.$$map[v.$$keys[M].key_hash];break}$t=Qe,Qe=Qe.next}if(v.$$keys[M].key_hash=Me,!N(v.$$map,Me)){v.$$map[Me]=v.$$keys[M];continue}for(Qe=v.$$map[Me],$t=void 0;Qe;){if(Qe===v.$$keys[M]){$t=void 0;break}$t=Qe,Qe=Qe.next}$t&&($t.next=v.$$keys[M])}},d.hash=function(){var v=arguments.length,M,xe,Me,Qe,$t,a;if(v===1&&arguments[0].$$is_hash)return arguments[0];if(xe=new d.Hash,d.hash_init(xe),v===1)if(M=arguments[0],arguments[0].$$is_array){for(Qe=M.length,Me=0;Me<Qe;Me++)M[Me].length!==2&&_e(d.ArgumentError,"value not of length 2: "+M[Me].$inspect()),$t=M[Me][0],a=M[Me][1],d.hash_put(xe,$t,a);return xe}else{M=arguments[0];for($t in M)N(M,$t)&&(a=M[$t],d.hash_put(xe,$t,a));return xe}for(v%2!==0&&_e(d.ArgumentError,"odd number of arguments for Hash"),Me=0;Me<v;Me+=2)$t=arguments[Me],a=arguments[Me+1],d.hash_put(xe,$t,a);return xe},d.hash2=function(v,M){var xe=new d.Hash;return xe.$$smap=M,xe.$$map=Object.create(null),xe.$$keys=v,xe},d.range=function(v,M,xe){var Me=new d.Range;return Me.begin=v,Me.end=M,Me.excl=xe,Me};var mt=["constructor","displayName","__count__","__noSuchMethod__","__parent__","__proto__","hasOwnProperty","valueOf"];d.ivar=function(v){return mt.indexOf(v)!==-1&&(v+="$"),v};function xt(v){v.$$frozen&&_e(d.FrozenError,"can't modify frozen "+v.$class()+": "+v,d.hash2(["receiver"],{receiver:v}))}d.deny_frozen_access=xt,d.freeze=function(v){return Q(v,"$$frozen",!0),v.hasOwnProperty("$$id")||Q(v,"$$id",he()),v.hasOwnProperty("$$meta")?v.$$meta.$freeze():Q(v,"$$meta",null),v.hasOwnProperty("$$comparable")||Q(v,"$$comparable",null),Object.seal(v),v},d.freeze_props=function(v){var M,xe,Me;for(M in v)xe=typeof M,!((xe==="string"||xe==="object")&&M[0]==="$")&&(Me=Object.getOwnPropertyDescriptor(v,M),Me&&Me.enumerable&&Me.writable&&function(){var Qe=v[M];Object.defineProperty(v,M,{get:function(){return Qe},set:function($t){xt(v)},enumerable:!0})}())},d.escape_regexp=function(v){return v.replace(/([-[\]\/{}()*+?.^$\\| ])/g,"\\$1").replace(/[\n]/g,"\\n").replace(/[\r]/g,"\\r").replace(/[\f]/g,"\\f").replace(/[\t]/g,"\\t")},d.global_regexp=function(v){return v.global?v:(v.$$g==null?v.$$g=new RegExp(v.source,(v.multiline?"gm":"g")+(v.ignoreCase?"i":"")):v.$$g.lastIndex=null,v.$$g)},d.global_multiline_regexp=function(v){var M,xe;return v.global&&v.multiline?v:(xe="gm"+(v.ignoreCase?"i":""),v.multiline?(v.$$g==null&&(v.$$g=new RegExp(v.source,xe)),M=v.$$g):(v.$$gm==null&&(v.$$gm=new RegExp(v.source,xe)),M=v.$$gm),M.lastIndex=null,M)},d.regexp=function(v,M){for(var xe,Me=typeof M<"u"&&M&&M.indexOf("i")>=0,Qe=0,$t=v.length;Qe<$t;Qe++)xe=v[Qe],xe instanceof RegExp&&(xe.ignoreCase!==Me&&d.Kernel.$warn("ignore case doesn't match for "+xe.source.$inspect(),d.hash({uplevel:1})),xe=xe.source),xe===""&&(xe="(?:"+xe+")"),v[Qe]=xe;return M?new RegExp(v.join(""),M):new RegExp(v.join(""))},d.modules={},d.loaded_features=["corelib/runtime"],d.current_dir=".",d.require_table={"corelib/runtime":!0},d.normalize=function(v){var M,xe,Me=[],Qe="/";d.current_dir!=="."&&(v=d.current_dir.replace(/\/*$/,"/")+v),v=v.replace(/^\.\//,""),v=v.replace(/\.(rb|opal|js)$/,""),M=v.split(Qe);for(var $t=0,a=M.length;$t<a;$t++)xe=M[$t],xe!==""&&(xe===".."?Me.pop():Me.push(xe));return Me.join(Qe)},d.loaded=function(v){var M,xe,Me;for(M=0,xe=v.length;M<xe;M++)Me=d.normalize(v[M]),!d.require_table[Me]&&(d.loaded_features.push(Me),d.require_table[Me]=!0)},d.load_normalized=function(v){d.loaded([v]);var M=d.modules[v];if(M){var xe=M(d);if(typeof Promise<"u"&&xe instanceof Promise)return xe.then(De(!0))}else{var Me=d.config.missing_require_severity,Qe="cannot load such file -- "+v;Me==="error"?_e(d.LoadError,Qe):Me==="warning"&&t.warn("WARNING: LoadError: "+Qe)}return!0},d.load=function(v){return v=d.normalize(v),d.load_normalized(v)},d.require=function(v){return v=d.normalize(v),d.require_table[v]?!1:d.load_normalized(v)},d.encodings=Object.create(null),d.set_encoding=function(v,M,xe){typeof xe>"u"&&(xe="encoding"),(typeof v=="string"||v.$$frozen===!0)&&_e(d.FrozenError,"can't modify frozen String");var Me=d.find_encoding(M);return Me===v[xe]||(v[xe]=Me),v},d.find_encoding=function(v){var M=d.encodings,xe=M[v]||M[v.toUpperCase()];return xe||_e(d.ArgumentError,"unknown encoding name - "+v),xe},d.enc=function(v,M){var xe=new String(v);return xe=d.set_encoding(xe,M),xe.internal_encoding=xe.encoding,xe},d.binary=function(v){var M=new String(v);return d.set_encoding(M,"binary","internal_encoding")},d.last_promise=null,d.promise_unhandled_exception=!1,d.queue=function(v){if(d.last_promise)return d.last_promise=d.last_promise.then(function(){if(!d.promise_unhandled_exception)return v(d)}).catch(function(xe){d.respond_to(xe,"$full_message")&&(xe=xe.$full_message()),t.error(xe),d.promise_unhandled_exception=!0,d.exit(1)}),d.last_promise;var M=v(d);return typeof Promise=="function"&&typeof M=="object"&&M instanceof Promise&&(d.last_promise=M),M};function St(v,M){return typeof v=="number"&&typeof M=="number"}d.rb_plus=function(v,M){return St(v,M)?v+M:v["$+"](M)},d.rb_minus=function(v,M){return St(v,M)?v-M:v["$-"](M)},d.rb_times=function(v,M){return St(v,M)?v*M:v["$*"](M)},d.rb_divide=function(v,M){return St(v,M)?v/M:v["$/"](M)},d.rb_lt=function(v,M){return St(v,M)?v<M:v["$<"](M)},d.rb_gt=function(v,M){return St(v,M)?v>M:v["$>"](M)},d.rb_le=function(v,M){return St(v,M)?v<=M:v["$<="](M)},d.rb_ge=function(v,M){return St(v,M)?v>=M:v["$>="](M)};function Oe(v,M){return typeof v=="number"&&typeof M=="number"||typeof v=="string"&&typeof M=="string"}function ze(v,M){return Oe(v,M)?v===M:be(v["$=="](M))}d.eqeq=ze,d.eqeqeq=function(v,M){return Oe(v,M)?v===M:be(v["$==="](M))},d.neqeq=function(v,M){return Oe(v,M)?v!==M:be(v["$!="](M))},d.not=function(v){return v==null||v===!1||r===v?!0:v===!0||v["$!"].$$pristine?!1:be(v["$!"]())};function De(v){return function(){return v}}d.return_val=De,d.return_self=function(){return this},d.return_ivar=function(v){return function(){return this[v]==null?r:this[v]}},d.assign_ivar=function(v){return function(M){return xt(this),this[v]=M}},d.assign_ivar_val=function(v,M){return function(){return xt(this),this[v]=M}},d.ensure_kwargs=function(v){if(v==null)return d.hash2([],{});if(v.$$is_hash)return v;_e(d.ArgumentError,"expected kwargs")},d.get_kwarg=function(v,M){return N(v.$$smap,M)||_e(d.ArgumentError,"missing keyword: "+M),v.$$smap[M]},d.large_array_unpack=function(v){var M=v.split(","),xe=M.length,Me;for(Me=0;Me<xe;Me++)switch(M[Me][0]){case void 0:M[Me]=r;break;case"-":case"0":case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":M[Me]=+M[Me]}return M},d.BasicObject=n=pe("BasicObject",null),d.Object=i=pe("Object",d.BasicObject),d.Module=s=pe("Module",d.Object),d.Class=l=pe("Class",d.Module),d.Opal=$=fe("Opal"),d.Kernel=h=fe("Kernel"),U(d.BasicObject,d.Class.$$prototype),U(d.Object,d.Class.$$prototype),U(d.Module,d.Class.$$prototype),U(d.Class,d.Class.$$prototype),n.$$const.BasicObject=n,B(i,"BasicObject",n),B(i,"Object",i),B(i,"Module",s),B(i,"Class",l),B(i,"Opal",$),B(i,"Kernel",h),n.$$class=l,i.$$class=l,s.$$class=l,l.$$class=l,$.$$class=s,h.$$class=s,Q(i.$$prototype,"toString",function(){var v=this.$to_s();return v.$$is_string&&typeof v=="object"?v.valueOf():v}),Q(i.$$prototype,"$require",d.require),d.top=new i,d.top.$to_s=d.top.$inspect=De("main"),d.top.$define_method=Ge;function Ge(){var v=O(arguments),M=Ge.$$p;return Ge.$$p=null,d.send(i,"define_method",v,M)}d.NilClass=pe("NilClass",d.Object),B(i,"NilClass",d.NilClass),r=d.nil=new d.NilClass,r.$$id=q,r.call=r.apply=function(){_e(d.LocalJumpError,"no block given")},r.$$frozen=!0,r.$$comparable=!1,Object.seal(r),d.thrower=function(v){var M=new Error("unexpected "+v);return M.$thrower_type=v,M.$throw=function(xe){throw xe==null&&(xe=r),M.$v=xe,M},M},d.t_eval_return=d.thrower("return"),TypeError.$$super=Error,d.file_sources={}}).call(void 0);Opal.loaded(["corelib/runtime.js"]);Opal.modules["corelib/helpers"]=function(e){var t=e.type_error,r=e.coerce_to,n=e.module,i=e.defs,s=e.slice,l=e.eqeqeq,$=e.Kernel,h=e.truthy,d=e.Opal,w=e.nil,A=e.$$$;return e.add_stubs("===,raise,respond_to?,nil?,__send__,<=>,class,coerce_to!,new,to_s,__id__"),function(N){var U=n(N,"Opal");i(U,"$bridge",function(q,Y){return e.bridge(q,Y)}),i(U,"$coerce_to!",function(q,Y,he,ne){var _e,Q,be=w;return _e=s(arguments,3),Q=_e,be=r(q,Y,he,Q),l(Y,be)||$.$raise(t(q,Y,he,be)),be},-4),i(U,"$coerce_to?",function(q,Y,he,ne){var _e,Q,be=w;return _e=s(arguments,3),Q=_e,!h(q["$respond_to?"](he))||(be=r(q,Y,he,Q),h(be["$nil?"]()))?w:(l(Y,be)||$.$raise(t(q,Y,he,be)),be)},-4),i(U,"$try_convert",function(q,Y,he){return l(Y,q)?q:h(q["$respond_to?"](he))?q.$__send__(he):w}),i(U,"$compare",function(q,Y){var he=w;return he=q["$<=>"](Y),h(he===w)&&$.$raise(A("ArgumentError"),"comparison of "+q.$class()+" with "+Y.$class()+" failed"),he}),i(U,"$destructure",function(q){if(q.length==1)return q[0];if(q.$$is_array)return q;for(var Y=new Array(q.length),he=0,ne=Y.length;he<ne;he++)Y[he]=q[he];return Y}),i(U,"$respond_to?",function(q,Y,he){return he==null&&(he=!1),q==null||!q.$$class?!1:q["$respond_to?"](Y,he)},-3),i(U,"$instance_variable_name!",function(q){return q=d["$coerce_to!"](q,A("String"),"to_str"),h(/^@[a-zA-Z_][a-zA-Z0-9_]*?$/.test(q))||$.$raise(A("NameError").$new("'"+q+"' is not allowed as an instance variable name",q)),q}),i(U,"$class_variable_name!",function(q){return q=d["$coerce_to!"](q,A("String"),"to_str"),h(q.length<3||q.slice(0,2)!=="@@")&&$.$raise(A("NameError").$new("`"+q+"' is not allowed as a class variable name",q)),q}),i(U,"$const_name?",function(q){return typeof q!="string"&&(q=d["$coerce_to!"](q,A("String"),"to_str")),q[0]===q[0].toUpperCase()}),i(U,"$const_name!",function(q){var Y=this;return h(A("::","String","skip_raise")?"constant":w)&&(q=d["$coerce_to!"](q,A("String"),"to_str")),(!q||q[0]!=q[0].toUpperCase())&&Y.$raise(A("NameError"),"wrong constant name "+q),q}),i(U,"$pristine",function(q,Y){var he,ne;he=s(arguments,1),ne=he;for(var _e,Q,be=ne.length-1;be>=0;be--)_e=ne[be],Q=q.$$prototype[e.jsid(_e)],Q&&!Q.$$stub&&(Q.$$pristine=!0);return w},-2);var O=[];return i(U,"$inspect",function(q){var Y=w,he=!1;return function(){try{try{return q===null?"null":q===void 0?"undefined":typeof q.$$class>"u"?Object.prototype.toString.apply(q):typeof q.$inspect!="function"||q.$inspect.$$stub||O.indexOf(q.$__id__())!==-1?"#<"+q.$$class+":0x"+q.$__id__().$to_s(16)+">":(O.push(q.$__id__()),he=!0,q.$inspect())}catch(ne){if(e.rescue(ne,[A("Exception")])){Y=ne;try{return"#<"+q.$$class+":0x"+q.$__id__().$to_s(16)+">"}finally{e.pop_exception()}}else throw ne}}finally{he&&O.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,l=e.assign_ivar,$=e.ivar,h=e.deny_frozen_access,d=e.freeze,w=e.prop,A=e.jsid,N=e.klass,U=e.defs,O=e.send,j=e.def,q=e.eqeqeq,Y=e.Module,he=e.Kernel,ne=e.rb_lt,_e=e.rb_gt,Q=e.slice,be=e.to_a,oe=e.hash2,Ee=e.Opal,te=e.return_val,Ce=e.eqeq,de=e.lambda,k=e.range,Ae=e.send2,B=e.find_super,pe=e.alias,W=[],Fe=e.nil,fe=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(V,x,f){var o=N(V,x,"Module"),c=[o].concat(f),p=e.$r(c);return U(o,"$allocate",function(){var E=this,T=e.allocate_module(Fe,function(){});return E!==e.Module&&Object.setPrototypeOf(T,E.$$prototype),T}),j(o,"$initialize",function m(){var E=m.$$p||Fe,T=this;return m.$$p=null,E!==Fe?O(T,"module_eval",[],E.$to_proc()):Fe}),j(o,"$===",function(E){var T=this;return t(E==null)?!1:e.is_a(E,T)}),j(o,"$<",function(E){var T=this;q(Y,E)||he.$raise(fe("TypeError"),"compared with non class/module");var re=T,je,nt,ft;if(re===E)return!1;for(nt=0,je=e.ancestors(T),ft=je.length;nt<ft;nt++)if(je[nt]===E)return!0;for(nt=0,je=e.ancestors(E),ft=je.length;nt<ft;nt++)if(je[nt]===T)return!1;return Fe}),j(o,"$<=",function(E){var T=this,re=Fe;return t(re=T["$equal?"](E))?re:ne(T,E)}),j(o,"$>",function(E){var T=this;return q(Y,E)||he.$raise(fe("TypeError"),"compared with non class/module"),ne(E,T)}),j(o,"$>=",function(E){var T=this,re=Fe;return t(re=T["$equal?"](E))?re:_e(T,E)}),j(o,"$<=>",function(E){var T=this,re=Fe;return T===E?0:!q(Y,E)||(re=ne(T,E),t(re["$nil?"]()))?Fe:t(re)?-1:1}),j(o,"$alias_method",function(E,T){var re=this;return h(re),E=r(E,fe("String"),"to_str"),T=r(T,fe("String"),"to_str"),e.alias(re,E,T),re}),j(o,"$alias_native",function(E,T){var re=this;return T==null&&(T=E),h(re),e.alias_native(re,E,T),re},-2),j(o,"$ancestors",function(){var E=this;return e.ancestors(E)}),j(o,"$append_features",function(E){var T=this;return h(E),e.append_features(T,E),T}),j(o,"$attr_accessor",function(E){var T,re,je=this;return T=Q(arguments),re=T,O(je,"attr_reader",be(re)),O(je,"attr_writer",be(re))},-1),j(o,"$attr",function(E){var T,re,je=this;return T=Q(arguments),re=T,re.length==2&&(re[1]===!0||re[1]===!1)?(je.$warn("optional boolean argument is obsoleted",oe(["uplevel"],{uplevel:1})),re[1]?je.$attr_accessor(re[0]):je.$attr_reader(re[0]),Fe):O(je,"attr_reader",be(re))},-1),j(o,"$attr_reader",function(E){var T,re,je=this;T=Q(arguments),re=T,h(je);for(var nt=je.$$prototype,ft=re.length-1;ft>=0;ft--){var yt=re[ft],zt=A(yt),_t=$(yt),vt=s(_t);e.prop(nt,_t,Fe),vt.$$parameters=[],vt.$$arity=0,e.defn(je,zt,vt)}return Fe},-1),j(o,"$attr_writer",function(E){var T,re,je=this;T=Q(arguments),re=T,h(je);for(var nt=je.$$prototype,ft=re.length-1;ft>=0;ft--){var yt=re[ft],zt=A(yt+"="),_t=$(yt),vt=l(_t);vt.$$parameters=[["req"]],vt.$$arity=1,e.prop(nt,_t,Fe),e.defn(je,zt,vt)}return Fe},-1),j(o,"$autoload",function(E,T){var re=this;return h(re),p("Opal")["$const_name?"](E)||he.$raise(fe("NameError"),"autoload must be constant name: "+E),T==""&&he.$raise(fe("ArgumentError"),"empty file name"),re.$$const.hasOwnProperty(E)||(re.$$autoload||(re.$$autoload={}),e.const_cache_version++,re.$$autoload[E]={path:T,loaded:!1,required:!1,success:!1,exception:!1},re.$const_added&&!re.$const_added.$$pristine&&re.$const_added(E)),Fe}),j(o,"$autoload?",function(E){var T=this;if(T.$$autoload&&T.$$autoload[E]&&!T.$$autoload[E].required&&!T.$$autoload[E].success)return T.$$autoload[E].path;for(var re=T.$ancestors(),je=0,nt=re.length;je<nt;je++)if(re[je].$$autoload&&re[je].$$autoload[E]&&!re[je].$$autoload[E].required&&!re[je].$$autoload[E].success)return re[je].$$autoload[E].path;return Fe}),j(o,"$class_variables",function(){var E=this;return Object.keys(e.class_variables(E))}),j(o,"$class_variable_get",function(E){var T=this;return E=Ee["$class_variable_name!"](E),e.class_variable_get(T,E,!1)}),j(o,"$class_variable_set",function(E,T){var re=this;return h(re),E=Ee["$class_variable_name!"](E),e.class_variable_set(re,E,T)}),j(o,"$class_variable_defined?",function(E){var T=this;return E=Ee["$class_variable_name!"](E),e.class_variables(T).hasOwnProperty(E)}),j(o,"$const_added",te(Fe)),Ee.$pristine(o,"const_added"),j(o,"$remove_class_variable",function(E){var T=this;if(h(T),E=Ee["$class_variable_name!"](E),e.hasOwnProperty.call(T.$$cvars,E)){var re=T.$$cvars[E];return delete T.$$cvars[E],re}else he.$raise(fe("NameError"),"cannot remove "+E+" for "+T)}),j(o,"$constants",function(E){var T=this;return E==null&&(E=!0),e.constants(T,E)},-1),U(o,"$constants",function(E){var T=this;if(E==null){var re=(T.$$nesting||[]).concat(i),je,nt={},ft,yt;for(ft=0,yt=re.length;ft<yt;ft++)for(je in re[ft].$$const)nt[je]=!0;return Object.keys(nt)}else return e.constants(T,E)},-1),U(o,"$nesting",function(){var E=this;return E.$$nesting||[]}),j(o,"$const_defined?",function(E,T){var re=this;T==null&&(T=!0),E=p("Opal")["$const_name!"](E),t(E["$=~"](fe(Ee,"CONST_NAME_REGEXP")))||he.$raise(fe("NameError").$new("wrong constant name "+E,E));var je,nt=[re],ft,yt;for(T&&(nt=nt.concat(e.ancestors(re)),re.$$is_module&&(nt=nt.concat([i]).concat(e.ancestors(i)))),ft=0,yt=nt.length;ft<yt;ft++)if(je=nt[ft],je.$$const[E]!=null||je.$$autoload&&je.$$autoload[E]&&!je.$$autoload[E].required&&!je.$$autoload[E].success)return!0;return!1},-2),j(o,"$const_get",function(E,T){var re=this;return T==null&&(T=!0),E=p("Opal")["$const_name!"](E),E.indexOf("::")===0&&E!=="::"&&(E=E.slice(2)),t(E.indexOf("::")!=-1&&E!="::")?O(E.$split("::"),"inject",[re],function(nt,ft){return nt==null&&(nt=Fe),ft==null&&(ft=Fe),nt.$const_get(ft)}):(t(E["$=~"](fe(Ee,"CONST_NAME_REGEXP")))||he.$raise(fe("NameError").$new("wrong constant name "+E,E)),T?e.$$([re],E):e.const_get_local(re,E))},-2),j(o,"$const_missing",function(E){var T=this,re=Fe;return re=Ce(T,i)?E:""+T+"::"+E,he.$raise(fe("NameError").$new("uninitialized constant "+re,E))}),j(o,"$const_set",function(E,T){var re=this;return h(re),E=Ee["$const_name!"](E),(t(E["$!~"](fe(Ee,"CONST_NAME_REGEXP")))||t(E["$start_with?"]("::")))&&he.$raise(fe("NameError").$new("wrong constant name "+E,E)),n(re,E,T),T}),j(o,"$public_constant",te(Fe)),j(o,"$define_method",function m(E,T){var re=m.$$p||Fe,je=this,nt=Fe,ft=Fe;return m.$$p=null,h(je),T===void 0&&re===Fe&&he.$raise(fe("ArgumentError"),"tried to create a Proc object without a block"),re=t(nt=re)?nt:q(fe("Proc"),ft=T)?T:q(fe("Method"),ft)?T.$to_proc().$$unbound:q(fe("UnboundMethod"),ft)?de(function yt(zt){var _t,vt,mt=yt.$$s==null?this:yt.$$s,xt=Fe;return _t=Q(arguments),vt=_t,xt=T.$bind(mt),O(xt,"call",be(vt))},{$$arity:-1,$$s:je}):he.$raise(fe("TypeError"),"wrong argument type "+re.$class()+" (expected Proc/Method)"),typeof Proxy<"u"&&(re.$$proxy_target=re,re=new Proxy(re,{apply:function(yt,zt,_t){var vt=yt.$$jsid;yt.$$jsid=E;try{return yt.apply(zt,_t)}catch(mt){if(mt===yt.$$brk||mt===yt.$$ret)return mt.$v;throw mt}finally{yt.$$jsid=vt}}})),re.$$jsid=E,re.$$s=null,re.$$def=re,re.$$define_meth=!0,e.defn(je,A(E),re)},-2),j(o,"$freeze",function(){var E=this;return t(E["$frozen?"]())?E:(E.hasOwnProperty("$$base_module")||w(E,"$$base_module",null),d(E))}),j(o,"$remove_method",function(E){var T,re,je=this;T=Q(arguments),re=T;for(var nt=0;nt<re.length;nt++){var ft=re[nt];typeof ft=="string"||ft.$$is_string||je.$raise(fe("TypeError"),""+je.$name()+" is not a symbol nor a string"),h(je),e.rdef(je,"$"+ft)}return je},-1),j(o,"$singleton_class?",function(){var E=this;return!!E.$$is_singleton}),j(o,"$include",function(E){var T,re,je=this;T=Q(arguments),re=T;for(var nt=re.length-1;nt>=0;nt--){var ft=re[nt];ft.$$is_module||he.$raise(fe("TypeError"),"wrong argument type "+ft.$class()+" (expected Module)"),ft.$append_features(je),ft.$included(je)}return je},-1),j(o,"$included_modules",function(){var E=this;return e.included_modules(E)}),j(o,"$include?",function(E){var T=this;E.$$is_module||he.$raise(fe("TypeError"),"wrong argument type "+E.$class()+" (expected Module)");var re,je,nt,ft=e.ancestors(T);for(re=0,je=ft.length;re<je;re++)if(nt=ft[re],nt===E&&nt!==T)return!0;return!1}),j(o,"$instance_method",function(E){var T=this,re=T.$$prototype[A(E)];return(!re||re.$$stub)&&he.$raise(fe("NameError").$new("undefined method `"+E+"' for class `"+T.$name()+"'",E)),fe("UnboundMethod").$new(T,re.$$owner||T,re,E)}),j(o,"$instance_methods",function(E){var T=this;return E==null&&(E=!0),t(E)?e.instance_methods(T):e.own_instance_methods(T)},-1),j(o,"$included",te(Fe)),j(o,"$extended",te(Fe)),j(o,"$extend_object",function(E){return h(E),Fe}),j(o,"$method_added",function(E){return Q(arguments),Fe},-1),j(o,"$method_removed",function(E){return Q(arguments),Fe},-1),j(o,"$method_undefined",function(E){return Q(arguments),Fe},-1),j(o,"$module_eval",function m(E){var T=m.$$p||Fe,re,je,nt,ft=this,yt=Fe,zt=Fe,_t=Fe,vt=Fe,mt=Fe,xt=Fe;m.$$p=null,re=Q(arguments),je=re,t(T["$nil?"]())&&t(!!e.compile)?(t(k(1,3,!1)["$cover?"](je.$size()))||he.$raise(fe("ArgumentError"),"wrong number of arguments (0 for 1..3)"),nt=[].concat(be(je)),yt=nt[0]==null?Fe:nt[0],zt=nt[1]==null?Fe:nt[1],nt[2]==null||nt[2],_t=oe(["file","eval"],{file:t(vt=zt)?vt:"(eval)",eval:!0}),mt=e.hash({arity_check:!1}).$merge(_t),xt=Ee.$compile(yt,mt),T=O(he,"proc",[],function ze(){var De=ze.$$s==null?this:ze.$$s;return new Function("Opal,self","return "+xt)(e,De)},{$$s:ft})):t(je["$any?"]())&&he.$raise(fe("ArgumentError"),"wrong number of arguments ("+je.$size()+` for 0)
|
|
430
|
-
|
|
431
|
-
NOTE:If you want to enable passing a String argument please add "require 'opal-parser'" to your script
|
|
432
|
-
`);var St=T.$$s,Oe;return T.$$s=null,Oe=T.apply(ft,[ft]),T.$$s=St,Oe},-1),j(o,"$module_exec",function m(E){var T=m.$$p||Fe,re,je,nt=this;m.$$p=null,re=Q(arguments),je=re,T===Fe&&he.$raise(fe("LocalJumpError"),"no block given");var ft=T.$$s,yt;return T.$$s=null,yt=T.apply(nt,je),T.$$s=ft,yt},-1),j(o,"$method_defined?",function(E){var T=this,re=T.$$prototype[A(E)];return!!re&&!re.$$stub}),j(o,"$module_function",function(E){var T,re,je=this;if(T=Q(arguments),re=T,h(je),re.length===0)return je.$$module_function=!0,Fe;for(var nt=0,ft=re.length;nt<ft;nt++){var yt=re[nt],zt=A(yt),_t=je.$$prototype[zt];e.defs(je,zt,_t)}return re.length===1?re[0]:re},-1),j(o,"$name",function(){var E=this;if(E.$$full_name)return E.$$full_name;for(var T=[],re=E;re;){if(re.$$name===Fe||re.$$name==null)return Fe;if(T.unshift(re.$$name),re=re.$$base_module,re===i)break}return T.length===0?Fe:E.$$full_name=T.join("::")}),j(o,"$prepend",function(E){var T,re,je=this;T=Q(arguments),re=T,re.length===0&&he.$raise(fe("ArgumentError"),"wrong number of arguments (given 0, expected 1+)");for(var nt=re.length-1;nt>=0;nt--){var ft=re[nt];ft.$$is_module||he.$raise(fe("TypeError"),"wrong argument type "+ft.$class()+" (expected Module)"),ft.$prepend_features(je),ft.$prepended(je)}return je},-1),j(o,"$prepend_features",function(E){var T=this;return h(E),T.$$is_module||he.$raise(fe("TypeError"),"wrong argument type "+T.$class()+" (expected Module)"),e.prepend_features(T,E),T}),j(o,"$prepended",te(Fe)),j(o,"$remove_const",function(E){var T=this;return h(T),e.const_remove(T,E)}),j(o,"$to_s",function(){var E=this,T=Fe;return t(T=e.Module.$name.call(E))?T:"#<"+(E.$$is_module?"Module":"Class")+":0x"+E.$__id__().$to_s(16)+">"}),j(o,"$undef_method",function(E){var T,re,je=this;T=Q(arguments),re=T;for(var nt=0;nt<re.length;nt++){var ft=re[nt];typeof ft=="string"||ft.$$is_string||je.$raise(fe("TypeError"),""+je.$name()+" is not a symbol nor a string"),h(je),e.udef(je,"$"+re[nt])}return je},-1),j(o,"$instance_variables",function(){var E=this,T=Fe;T=(e.Module.$$nesting=c,E.$constants());var re=[];for(var je in E)E.hasOwnProperty(je)&&je.charAt(0)!=="$"&&je!=="constructor"&&!T["$include?"](je)&&re.push("@"+je);return re}),j(o,"$dup",function m(){var E=m.$$p||Fe,T=this,re=Fe;return m.$$p=null,re=Ae(T,B(T,"dup",m,!1,!0),"dup",[],E),re.$copy_class_variables(T),re.$copy_constants(T),re}),j(o,"$copy_class_variables",function(E){var T=this;for(var re in E.$$cvars)T.$$cvars[re]=E.$$cvars[re]}),j(o,"$copy_constants",function(E){var T=this,re,je=E.$$const;for(re in je)n(T,re,je[re])}),j(o,"$refine",function m(E){var T=m.$$p||Fe,re,je=this,nt=Fe,ft=Fe,yt=Fe;return m.$$p=null,re=[je,Fe,Fe],nt=re[0],ft=re[1],yt=re[2],yt=e.id(E),typeof je.$$refine_modules>"u"&&(je.$$refine_modules=Object.create(null)),typeof je.$$refine_modules[yt]>"u"?ft=je.$$refine_modules[yt]=fe("Refinement").$new():ft=je.$$refine_modules[yt],ft.refinement_module=nt,ft.refined_class=E,O(ft,"class_exec",[],T.$to_proc()),ft}),j(o,"$refinements",function(){var E=this,T=E.$$refine_modules,re=oe([],{});if(typeof T>"u")return re;for(var je in T)re["$[]="](T[je].refined_class,T[je]);return re}),j(o,"$using",function(E){return he.$raise("Module#using is not permitted in methods")}),pe(o,"class_eval","module_eval"),pe(o,"class_exec","module_exec"),pe(o,"inspect","to_s")}("::",null,W),function(V,x){var f=N(V,x,"Refinement"),o=f.$$prototype;return o.refinement_module=o.refined_class=Fe,f.$attr_reader("refined_class"),j(f,"$inspect",function c(){var p=c.$$p||Fe,m=this;return c.$$p=null,t(m.refinement_module)?"#<refinement:"+m.refined_class.$inspect()+"@"+m.refinement_module.$inspect()+">":Ae(m,B(m,"inspect",c,!1,!0),"inspect",[],p)})}("::",Y)};Opal.modules["corelib/class"]=function(e){var t=e.klass,r=e.send,n=e.defs,i=e.def,s=e.rb_plus,l=e.return_val,$=e.slice,h=e.send2,d=e.find_super,w=e.Kernel,A=e.alias,N=e.top,U=[],O=e.nil,j=e.$$$;return e.add_stubs("require,class_eval,to_proc,+,subclasses,flatten,map,initialize_copy,allocate,name,to_s,raise"),N.$require("corelib/module"),function(q,Y,he){var ne=t(q,Y,"Class"),_e=[ne].concat(he),Q=e.$r(_e);return n(ne,"$new",function be(oe){var Ee=be.$$p||O;if(be.$$p=null,oe==null&&(oe=Q("Object")),!oe.$$is_class)throw e.TypeError.$new("superclass must be a Class");var te=e.allocate_class(O,oe);return oe.$inherited(te),Ee!==O&&r(te,"class_eval",[],Ee.$to_proc()),te},-1),i(ne,"$allocate",function(){var oe=this,Ee=new oe.$$constructor;return Ee.$$id=e.uid(),Ee}),i(ne,"$descendants",function(){var oe=this;return s(oe.$subclasses(),r(oe.$subclasses(),"map",[],"descendants".$to_proc()).$flatten())}),i(ne,"$inherited",l(O)),i(ne,"$initialize_dup",function(oe){var Ee=this;Ee.$initialize_copy(oe),Ee.$$name=null,Ee.$$full_name=null}),i(ne,"$new",function be(oe){var Ee=be.$$p||O,te,Ce,de=this;be.$$p=null,te=$(arguments),Ce=te;var k=de.$allocate();return e.send(k,k.$initialize,Ce,Ee),k},-1),i(ne,"$subclasses",function(){var oe=this;if(typeof WeakRef<"u"){var Ee,te,Ce=[];for(Ee=0;Ee<oe.$$subclasses.length;Ee++)te=oe.$$subclasses[Ee].deref(),te!==void 0&&Ce.push(te);return Ce}else return oe.$$subclasses}),i(ne,"$superclass",function(){var oe=this;return oe.$$super||O}),i(ne,"$to_s",function be(){be.$$p;var oe=this;be.$$p=null;var Ee=oe.$$singleton_of;return Ee&&Ee.$$is_a_module?"#<Class:"+Ee.$name()+">":Ee?"#<Class:#<"+Ee.$$class.$name()+":0x"+e.id(Ee).$to_s(16)+">>":h(oe,d(oe,"to_s",be,!1,!0),"to_s",[],null)}),i(ne,"$attached_object",function(){var oe=this;if(oe.$$singleton_of!=null)return oe.$$singleton_of;w.$raise(j("TypeError"),"`"+oe+"' is not a singleton class")}),A(ne,"inspect","to_s")}("::",null,U)};Opal.modules["corelib/basic_object"]=function(e){var t=e.klass,r=e.slice,n=e.def,i=e.alias,s=e.return_val,l=e.Opal,$=e.truthy,h=e.range,d=e.Kernel,w=e.to_a,A=e.hash2,N=e.send,U=e.eqeq,O=e.rb_ge,j=e.nil,q=e.$$$;return e.add_stubs("==,raise,inspect,pristine,!,nil?,cover?,size,merge,compile,proc,[],first,>=,length,instance_variable_get,any?,new,caller"),function(Y,he){var ne=t(Y,he,"BasicObject");return n(ne,"$initialize",function(Q){return r(arguments),j},-1),n(ne,"$==",function(Q){var be=this;return be===Q}),n(ne,"$eql?",function(Q){var be=this;return be["$=="](Q)}),i(ne,"equal?","=="),n(ne,"$__id__",function(){var Q=this;return Q.$$id!=null||e.prop(Q,"$$id",e.uid()),Q.$$id}),n(ne,"$__send__",function _e(Q,be){var oe=_e.$$p||j,Ee,te,Ce=this;_e.$$p=null,Ee=r(arguments,1),te=Ee,Q.$$is_string||Ce.$raise(q("TypeError"),""+Ce.$inspect()+" is not a symbol nor a string");var de=Ce[e.jsid(Q)];return de?(oe!==j&&(de.$$p=oe),de.apply(Ce,te)):(oe!==j&&(Ce.$method_missing.$$p=oe),Ce.$method_missing.apply(Ce,[Q].concat(te)))},-2),n(ne,"$!",s(!1)),l.$pristine("!"),n(ne,"$!=",function(Q){var be=this;return be["$=="](Q)["$!"]()}),n(ne,"$instance_eval",function _e(Q){var be=_e.$$p||j,oe,Ee,te,Ce=this,de=j,k=j,Ae=j,B=j,pe=j,W=j;if(_e.$$p=null,oe=r(arguments),Ee=oe,$(be["$nil?"]())&&$(!!e.compile))$(h(1,3,!1)["$cover?"](Ee.$size()))||d.$raise(q("ArgumentError"),"wrong number of arguments (0 for 1..3)"),te=[].concat(w(Ee)),de=te[0]==null?j:te[0],k=te[1]==null?j:te[1],te[2]==null||te[2],Ae=A(["file","eval"],{file:$(B=k)?B:"(eval)",eval:!0}),pe=e.hash({arity_check:!1}).$merge(Ae),W=l.$compile(de,pe),be=N(d,"proc",[],function V(){var x=V.$$s==null?this:V.$$s;return new Function("Opal,self","return "+W)(e,x)},{$$s:Ce});else{if($(be["$nil?"]())&&$(O(Ee.$length(),1))&&U(Ee.$first()["$[]"](0),"@"))return Ce.$instance_variable_get(Ee.$first());$(Ee["$any?"]())&&d.$raise(q("ArgumentError"),"wrong number of arguments ("+Ee.$size()+" for 0)")}var Fe=be.$$s,fe;if(be.$$s=null,Ce.$$is_a_module){Ce.$$eval=!0;try{fe=be.call(Ce,Ce)}finally{Ce.$$eval=!1}}else fe=be.call(Ce,Ce);return be.$$s=Fe,fe},-1),n(ne,"$instance_exec",function _e(Q){var be=_e.$$p||j,oe,Ee,te=this;_e.$$p=null,oe=r(arguments),Ee=oe,$(be)||d.$raise(q("ArgumentError"),"no block given");var Ce=be.$$s,de;if(be.$$s=null,te.$$is_a_module){te.$$eval=!0;try{de=be.apply(te,Ee)}finally{te.$$eval=!1}}else de=be.apply(te,Ee);return be.$$s=Ce,de},-1),n(ne,"$singleton_method_added",function(Q){return r(arguments),j},-1),n(ne,"$singleton_method_removed",function(Q){return r(arguments),j},-1),n(ne,"$singleton_method_undefined",function(Q){return r(arguments),j},-1),n(ne,"$method_missing",function _e(Q,be){_e.$$p;var oe,Ee,te=this,Ce=j;return _e.$$p=null,oe=r(arguments,1),Ee=oe,Ce=l.$inspect(te),d.$raise(q("NoMethodError").$new("undefined method `"+Q+"' for "+Ce,Q,Ee),j,d.$caller(1))},-2),l.$pristine(ne,"method_missing"),n(ne,"$respond_to_missing?",function(Q,be){return!1},-2)}("::",null)};Opal.modules["corelib/kernel"]=function(e){var t=e.truthy,r=e.coerce_to,n=e.respond_to,i=e.Opal,s=e.deny_frozen_access,l=e.freeze,$=e.freeze_props,h=e.jsid,d=e.module,w=e.return_val,A=e.def,N=e.Kernel,U=e.gvars,O=e.slice,j=e.send,q=e.to_a,Y=e.ensure_kwargs,he=e.eqeq,ne=e.hash2,_e=e.rb_plus,Q=e.eqeqeq,be=e.return_self,oe=e.rb_le,Ee=e.extract_kwargs,te=e.rb_lt,Ce=e.Object,de=e.alias,k=e.klass,Ae=[],B=e.nil,pe=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(W,Fe){var fe=d(W,"Kernel"),V=[fe].concat(Fe),x=e.$r(V);A(fe,"$=~",w(!1)),A(fe,"$!~",function(c){var p=this;return p["$=~"](c)["$!"]()}),A(fe,"$===",function(c){var p=this,m=B;return t(m=p.$object_id()["$=="](c.$object_id()))?m:p["$=="](c)}),A(fe,"$<=>",function(c){var p=this;p.$$comparable=!0;var m=p["$=="](c);return m&&m!==B?0:B}),A(fe,"$method",function(c){var p=this,m=p[h(c)];return(!m||m.$$stub)&&N.$raise(pe("NameError").$new("undefined method `"+c+"' for class `"+p.$class()+"'",c)),pe("Method").$new(p,m.$$owner||p.$class(),m,c)}),A(fe,"$methods",function(c){var p=this;return c==null&&(c=!0),t(c)?e.methods(p):e.own_methods(p)},-1),A(fe,"$public_methods",function(c){var p=this;return c==null&&(c=!0),t(c)?e.methods(p):e.receiver_methods(p)},-1),A(fe,"$Array",function(c){var p;return c===B?[]:c.$$is_array?c:(p=i["$coerce_to?"](c,pe("Array"),"to_ary"),p!==B||(p=i["$coerce_to?"](c,pe("Array"),"to_a"),p!==B)?p:[c])}),A(fe,"$at_exit",function o(){var c=o.$$p||B,p=B;return U.__at_exit__==null&&(U.__at_exit__=B),o.$$p=null,U.__at_exit__=t(p=U.__at_exit__)?p:[],U.__at_exit__["$<<"](c),c}),A(fe,"$caller",function(c,p){c==null&&(c=1),p==null&&(p=B);var m,E;m=new Error().$backtrace(),E=[];for(var T=c+1,re=m.length;T<re;T++)m[T].match(/runtime\.js/)||E.push(m[T]);return p!=B&&(E=E.slice(0,p)),E},-1),A(fe,"$caller_locations",function(c){var p,m,E=this;return p=O(arguments),m=p,j(j(E,"caller",q(m)),"map",[],function(re){return re==null&&(re=B),pe(pe(pe("Thread"),"Backtrace"),"Location").$new(re)})},-1),A(fe,"$class",function(){var c=this;return c.$$class}),A(fe,"$copy_instance_variables",function(c){var p=this,m=Object.keys(c),E,T,re;for(E=0,T=m.length;E<T;E++)re=m[E],re.charAt(0)!=="$"&&c.hasOwnProperty(re)&&(p[re]=c[re])}),A(fe,"$copy_singleton_methods",function(c){var p=this,m,E,T,re;if(c.hasOwnProperty("$$meta")&&c.$$meta!==null){var je=e.get_singleton_class(c),nt=e.get_singleton_class(p);for(T=Object.getOwnPropertyNames(je.$$prototype),m=0,re=T.length;m<re;m++)E=T[m],e.is_method(E)&&(nt.$$prototype[E]=je.$$prototype[E]);nt.$$const=Object.assign({},je.$$const),Object.setPrototypeOf(nt.$$prototype,Object.getPrototypeOf(je.$$prototype))}for(m=0,T=Object.getOwnPropertyNames(c),re=T.length;m<re;m++)E=T[m],E.charAt(0)==="$"&&E.charAt(1)!=="$"&&c.hasOwnProperty(E)&&(p[E]=c[E])}),A(fe,"$clone",function(c){var p,m=this,E=B;return c=Y(c),p=c.$$smap.freeze,p==null&&(p=B),t(p["$nil?"]())||he(p,!0)||he(p,!1)||m.$raise(x("ArgumentError"),"unexpected value for freeze: "+p.$class()),E=m.$class().$allocate(),E.$copy_instance_variables(m),E.$copy_singleton_methods(m),E.$initialize_clone(m,ne(["freeze"],{freeze:p})),(he(p,!0)||t(p["$nil?"]())&&t(m["$frozen?"]()))&&E.$freeze(),E},-1),A(fe,"$initialize_clone",function(c,p){var m=this;return p=Y(p),p.$$smap.freeze,m.$initialize_copy(c),m},-2),A(fe,"$define_singleton_method",function o(c,p){var m=o.$$p||B,E=this;return o.$$p=null,j(E.$singleton_class(),"define_method",[c,p],m.$to_proc())},-2),A(fe,"$dup",function(){var c=this,p=B;return p=c.$class().$allocate(),p.$copy_instance_variables(c),p.$initialize_dup(c),p}),A(fe,"$initialize_dup",function(c){var p=this;return p.$initialize_copy(c)}),A(fe,"$enum_for",function o(c,p){var m=o.$$p||B,E,T,re,je=this;return o.$$p=null,E=O(arguments),E.length>0&&(T=E.shift()),T==null&&(T="each"),re=E,j(pe("Enumerator"),"for",[je,T].concat(q(re)),m.$to_proc())},-1),A(fe,"$equal?",function(c){var p=this;return p===c}),A(fe,"$exit",function(c){var p=B,m=B;for(U.__at_exit__==null&&(U.__at_exit__=B),c==null&&(c=!0),U.__at_exit__=t(p=U.__at_exit__)?p:[];!t(U.__at_exit__["$empty?"]());)m=U.__at_exit__.$pop(),m.$call();return c.$$is_boolean?c=c?0:1:c=r(c,pe("Integer"),"to_int"),e.exit(c),B},-1),A(fe,"$extend",function(c){var p,m,E=this;p=O(arguments),m=p,m.length==0&&E.$raise(pe("ArgumentError"),"wrong number of arguments (given 0, expected 1+)"),s(E);for(var T=E.$singleton_class(),re=m.length-1;re>=0;re--){var je=m[re];je.$$is_module||N.$raise(pe("TypeError"),"wrong argument type "+je.$class()+" (expected Module)"),je.$append_features(T),je.$extend_object(E),je.$extended(E)}return E},-1),A(fe,"$freeze",function(){var c=this;return t(c["$frozen?"]())?c:typeof c=="object"?($(c),l(c)):c}),A(fe,"$frozen?",function(){var c=this;switch(typeof c){case"string":case"symbol":case"number":case"boolean":return!0;case"object":return c.$$frozen||!1;default:return!1}}),A(fe,"$gets",function(c){var p,m;return U.stdin==null&&(U.stdin=B),p=O(arguments),m=p,j(U.stdin,"gets",q(m))},-1),A(fe,"$hash",function(){var c=this;return c.$__id__()}),A(fe,"$initialize_copy",w(B));var f=[];return A(fe,"$inspect",function(){var c=this,p=B,m=B,E=B,T=B;return function(){try{try{return p="",m=c.$__id__(),t(f["$include?"](m))?p=" ...":(f["$<<"](m),E=!0,j(c.$instance_variables(),"each",[],function re(je){var nt=re.$$s==null?this:re.$$s,ft=B,yt=B;return je==null&&(je=B),ft=nt.$instance_variable_get(je),yt=x("Opal").$inspect(ft),p=_e(p," "+je+"="+yt)},{$$s:c})),"#<"+c.$class()+":0x"+m.$to_s(16)+p+">"}catch(re){if(e.rescue(re,[x("StandardError")])){T=re;try{return"#<"+c.$class()+":0x"+m.$to_s(16)+">"}finally{e.pop_exception()}}else throw re}}finally{t(E)&&f.$pop()}}()}),A(fe,"$instance_of?",function(c){var p=this;return!c.$$is_class&&!c.$$is_module&&N.$raise(pe("TypeError"),"class or module required"),p.$$class===c}),A(fe,"$instance_variable_defined?",function(c){var p=this;return c=i["$instance_variable_name!"](c),e.hasOwnProperty.call(p,c.substr(1))}),A(fe,"$instance_variable_get",function(c){var p=this;c=i["$instance_variable_name!"](c);var m=p[e.ivar(c.substr(1))];return m??B}),A(fe,"$instance_variable_set",function(c,p){var m=this;return s(m),c=i["$instance_variable_name!"](c),m[e.ivar(c.substr(1))]=p}),A(fe,"$remove_instance_variable",function(c){var p=this;c=i["$instance_variable_name!"](c);var m=e.ivar(c.substr(1)),E;return p.hasOwnProperty(m)?(E=p[m],delete p[m],E):N.$raise(pe("NameError"),"instance variable "+c+" not defined")}),A(fe,"$instance_variables",function(){var c=this,p=[],m;for(var E in c)c.hasOwnProperty(E)&&E.charAt(0)!=="$"&&(E.substr(-1)==="$"?m=E.slice(0,E.length-1):m=E,p.push("@"+m));return p}),A(fe,"$Integer",function(c,p){var m,E,T;return c.$$is_string?c==="0"?0:(p===void 0?p=0:(p=r(p,pe("Integer"),"to_int"),(p===1||p<0||p>36)&&N.$raise(pe("ArgumentError"),"invalid radix "+p)),E=c.toLowerCase(),E=E.replace(/(\d)_(?=\d)/g,"$1"),E=E.replace(/^(\s*[+-]?)(0[bodx]?)/,function(re,je,nt){switch(nt){case"0b":if(p===0||p===2)return p=2,je;case"0":case"0o":if(p===0||p===8)return p=8,je;case"0d":if(p===0||p===10)return p=10,je;case"0x":if(p===0||p===16)return p=16,je}N.$raise(pe("ArgumentError"),'invalid value for Integer(): "'+c+'"')}),p=p===0?10:p,T="0-"+(p<=10?p-1:"9a-"+String.fromCharCode(97+(p-11))),new RegExp("^\\s*[+-]?["+T+"]+\\s*$").test(E)||N.$raise(pe("ArgumentError"),'invalid value for Integer(): "'+c+'"'),m=parseInt(E,p),isNaN(m)&&N.$raise(pe("ArgumentError"),'invalid value for Integer(): "'+c+'"'),m):(p!==void 0&&N.$raise(pe("ArgumentError"),"base specified for non string value"),c===B&&N.$raise(pe("TypeError"),"can't convert nil into Integer"),c.$$is_number?((c===1/0||c===-1/0||isNaN(c))&&N.$raise(pe("FloatDomainError"),c),Math.floor(c)):c["$respond_to?"]("to_int")&&(m=c.$to_int(),m!==B)?m:i["$coerce_to!"](c,pe("Integer"),"to_i"))},-2),A(fe,"$Float",function(c){var p;return c===B&&N.$raise(pe("TypeError"),"can't convert nil into Float"),c.$$is_string?(p=c.toString(),p=p.replace(/(\d)_(?=\d)/g,"$1"),/^\s*[-+]?0[xX][0-9a-fA-F]+\s*$/.test(p)?N.$Integer(p):(/^\s*[-+]?[0-9]*\.?[0-9]+([eE][-+]?[0-9]+)?\s*$/.test(p)||N.$raise(pe("ArgumentError"),'invalid value for Float(): "'+c+'"'),parseFloat(p))):i["$coerce_to!"](c,pe("Float"),"to_f")}),A(fe,"$Hash",function(c){return t(c["$nil?"]())||he(c,[])?ne([],{}):Q(pe("Hash"),c)?c:i["$coerce_to!"](c,pe("Hash"),"to_hash")}),A(fe,"$is_a?",function(c){var p=this;return!c.$$is_class&&!c.$$is_module&&N.$raise(pe("TypeError"),"class or module required"),e.is_a(p,c)}),A(fe,"$itself",be),A(fe,"$lambda",function o(){var c=o.$$p||B;return o.$$p=null,e.lambda(c)}),A(fe,"$load",function(c){return c=i["$coerce_to!"](c,pe("String"),"to_str"),e.load(c)}),A(fe,"$loop",function o(){var c=o.$$p||B,p=this,m=B;if(o.$$p=null,c===B)return j(p,"enum_for",["loop"],function(){return pe(pe("Float"),"INFINITY")});for(;t(!0);)try{e.yieldX(c,[])}catch(E){if(e.rescue(E,[pe("StopIteration")])){m=E;try{return m.$result()}finally{e.pop_exception()}}else throw E}return p}),A(fe,"$nil?",w(!1)),A(fe,"$printf",function(c){var p,m,E=this;return p=O(arguments),m=p,t(m["$any?"]())&&E.$print(j(E,"format",q(m))),B},-1),A(fe,"$proc",function o(){var c=o.$$p||B;return o.$$p=null,t(c)||N.$raise(pe("ArgumentError"),"tried to create Proc object without a block"),c.$$is_lambda=!1,c}),A(fe,"$puts",function(c){var p,m;return U.stdout==null&&(U.stdout=B),p=O(arguments),m=p,j(U.stdout,"puts",q(m))},-1),A(fe,"$p",function(c){var p,m;return p=O(arguments),m=p,j(m,"each",[],function(T){return U.stdout==null&&(U.stdout=B),T==null&&(T=B),U.stdout.$puts(T.$inspect())}),t(oe(m.$length(),1))?m["$[]"](0):m},-1),A(fe,"$print",function(c){var p,m;return U.stdout==null&&(U.stdout=B),p=O(arguments),m=p,j(U.stdout,"print",q(m))},-1),A(fe,"$readline",function(c){var p,m;return U.stdin==null&&(U.stdin=B),p=O(arguments),m=p,j(U.stdin,"readline",q(m))},-1),A(fe,"$warn",function(c,p){var m,E,T,re,je,nt,ft=this,yt=B;return U.VERBOSE==null&&(U.VERBOSE=B),U.stderr==null&&(U.stderr=B),m=O(arguments),E=Ee(m),E=Y(E),T=m,re=E.$$smap.uplevel,re==null&&(re=B),t(re)&&(re=i["$coerce_to!"](re,pe("Integer"),"to_str"),t(te(re,0))&&N.$raise(pe("ArgumentError"),"negative level ("+re+")"),yt=(je=(nt=ft.$caller(_e(re,1),1).$first(),nt===B||nt==null?B:nt.$split(":in `")),je===B||je==null?B:je.$first()),t(yt)&&(yt=""+yt+": "),T=j(T,"map",[],function(_t){return _t==null&&(_t=B),""+yt+"warning: "+_t})),t(U.VERBOSE["$nil?"]())||t(T["$empty?"]())?B:j(U.stderr,"puts",q(T))},-1),A(fe,"$raise",function(c,p,m){throw U["!"]==null&&(U["!"]=B),U["@"]==null&&(U["@"]=B),p==null&&(p=B),m==null&&(m=B),c==null&&U["!"]!==B?U["!"]:(c==null?c=pe("RuntimeError").$new(""):n(c,"$to_str")?c=pe("RuntimeError").$new(c.$to_str()):c.$$is_class&&n(c,"$exception")?c=c.$exception(p):c.$$is_exception||(c=pe("TypeError").$new("exception class/object expected")),m!==B&&c.$set_backtrace(m),U["!"]!==B&&e.exceptions.push(U["!"]),U["!"]=c,U["@"]=c.$backtrace(),c)},-1),A(fe,"$rand",function(c){return c===void 0?pe(pe("Random"),"DEFAULT").$rand():(c.$$is_number&&(c<0&&(c=Math.abs(c)),c%1!==0&&(c=c.$to_i()),c===0&&(c=void 0)),pe(pe("Random"),"DEFAULT").$rand(c))},-1),A(fe,"$respond_to?",function(c,p){var m=this;p==null&&(p=!1);var E=m[h(c)];return typeof E=="function"&&!E.$$stub?!0:m["$respond_to_missing?"].$$pristine===!0?!1:m["$respond_to_missing?"](c,p)},-2),A(fe,"$respond_to_missing?",function(c,p){return!1},-2),i.$pristine(fe,"respond_to?","respond_to_missing?"),A(fe,"$require",function(c){return typeof c!="string"&&e.String&&e.Array&&(c=i["$coerce_to!"](c,pe("String"),"to_str")),e.require(c)}),A(fe,"$require_relative",function(c){return i["$try_convert!"](c,pe("String"),"to_str"),c=pe("File").$expand_path(pe("File").$join(e.current_file,"..",c)),e.require(c)}),A(fe,"$require_tree",function(c,p){var m;p=Y(p),m=p.$$smap.autoload,m==null&&(m=!1);var E=[];c=pe("File").$expand_path(c),c=e.normalize(c),c==="."&&(c="");for(var T in e.modules)T["$start_with?"](c)&&(m?E.push([T,!0]):E.push([T,e.require(T)]));return E},-2),A(fe,"$singleton_class",function(){var c=this;return e.get_singleton_class(c)}),A(fe,"$sleep",function(c){c==null&&(c=B),c===B&&N.$raise(pe("TypeError"),"can't convert NilClass into time interval"),c.$$is_number||N.$raise(pe("TypeError"),"can't convert "+c.$class()+" into time interval"),c<0&&N.$raise(pe("ArgumentError"),"time interval must be positive");for(var p=e.global.performance?function(){return performance.now()}:function(){return new Date},m=p();p()-m<=c*1e3;);return Math.round(c)},-1),A(fe,"$srand",function(c){return c==null&&(c=x("Random").$new_seed()),pe("Random").$srand(c)},-1),A(fe,"$String",function(c){var p=B;return t(p=i["$coerce_to?"](c,pe("String"),"to_str"))?p:i["$coerce_to!"](c,pe("String"),"to_s")}),A(fe,"$tap",function o(){var c=o.$$p||B,p=this;return o.$$p=null,e.yield1(c,p),p}),A(fe,"$to_proc",be),A(fe,"$to_s",function(){var c=this;return"#<"+c.$class()+":0x"+c.$__id__().$to_s(16)+">"}),A(fe,"$catch",function o(c){var p=o.$$p||B,m=B,E=B;o.$$p=null,c==null&&(c=B);try{return c=t(m=c)?m:Ce.$new(),e.yield1(p,c)}catch(T){if(e.rescue(T,[pe("UncaughtThrowError")])){E=T;try{return he(E.$tag(),c)?E.$value():N.$raise()}finally{e.pop_exception()}}else throw T}},-1),A(fe,"$throw",function(c,p){return p==null&&(p=B),N.$raise(pe("UncaughtThrowError").$new(c,p))},-2),A(fe,"$open",function o(c){var p=o.$$p||B,m,E;return o.$$p=null,m=O(arguments),E=m,j(pe("File"),"open",q(E),p.$to_proc())},-1),A(fe,"$yield_self",function o(){var c=o.$$p||B,p=this;return o.$$p=null,c===B?j(p,"enum_for",["yield_self"],w(1)):e.yield1(c,p)}),de(fe,"fail","raise"),de(fe,"kind_of?","is_a?"),de(fe,"object_id","__id__"),de(fe,"public_send","__send__"),de(fe,"send","__send__"),de(fe,"then","yield_self"),de(fe,"to_enum","enum_for")}("::",Ae),function(W,Fe){var fe=k(W,Fe,"Object");return delete Ce.$$prototype.$require,fe.$include(N)}("::",null)};Opal.modules["corelib/main"]=function(e){var t=e.return_val,r=e.def,n=e.Object,i=e.slice,s=e.Kernel,l=e.top;return e.nil,e.add_stubs("include,raise"),function($,h){return r($,"$to_s",t("main")),r($,"$include",function(w){return n.$include(w)}),r($,"$autoload",function(w){var A,N;return A=i(arguments),N=A,e.Object.$autoload.apply(e.Object,N)},-1),r($,"$using",function(w){return s.$raise("main.using is permitted only at toplevel")})}(e.get_singleton_class(l))};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,l=e.def,$=e.klass,h=e.nil,d=e.$$$;return e.add_stubs("+,errno,class,attr_reader"),function(w,A){var N=t(w,"Errno"),U=h,O=h;U=[["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]],O=h;var j;for(j=0;j<U.length;j++)(function(){var q=U[j][0],Y=U[j][1],he=U[j][2];O=e.klass(N,e.SystemCallError,q),O.errno=he,function(ne,_e){return l(ne,"$new",function Q(be){Q.$$p;var oe=this,Ee=h;return Q.$$p=null,be==null&&(be=h),Ee=Y,r(be)&&(Ee=n(Ee," - "+be)),i(oe,s(oe,"new",Q,!1,!0),"new",[Ee],null)},-1)}(e.get_singleton_class(O))})()}("::"),function(w,A,N){var U=$(w,A,"SystemCallError");return l(U,"$errno",function(){var j=this;return j.$class().$errno()}),function(O,j){return O.$attr_reader("errno")}(e.get_singleton_class(U))}("::",d("StandardError"))};Opal.modules["corelib/error"]=function(e){var t=e.klass,r=e.slice,n=e.gvars,i=e.defs,s=e.send,l=e.to_a,$=e.def,h=e.truthy,d=e.hash2,w=e.Kernel,A=e.not,N=e.rb_plus,U=e.eqeq,O=e.Object,j=e.ensure_kwargs,q=e.send2,Y=e.find_super,he=e.module,ne=[],_e=e.nil,Q=e.$$$;return e.add_stubs("new,map,backtrace,clone,to_s,merge,tty?,[],include?,raise,dup,empty?,!,caller,shift,+,class,join,cause,full_message,==,reverse,split,autoload,attr_reader,inspect"),function(be,oe,Ee){var te=t(be,oe,"Exception"),Ce=[te].concat(Ee),de=e.$r(Ce),k=te.$$prototype;k.message=_e,e.prop(te.$$prototype,"$$is_exception",!0);var Ae;Error.stackTraceLimit=100,i(te,"$new",function(W){var Fe,fe,V=this;n["!"]==null&&(n["!"]=_e),Fe=r(arguments),fe=Fe;var x=fe.length>0?fe[0]:_e,f=new V.$$constructor(x);return f.name=V.$$name,f.message=x,f.cause=n["!"],e.send(f,f.$initialize,fe),e.config.enable_stack_trace&&Error.captureStackTrace&&Error.captureStackTrace(f,Ae),f},-1),Ae=te.$new,i(te,"$exception",function(W){var Fe,fe,V=this;return Fe=r(arguments),fe=Fe,s(V,"new",l(fe))},-1),$(te,"$initialize",function(W){var Fe,fe,V=this;return Fe=r(arguments),fe=Fe,V.message=fe.length>0?fe[0]:_e},-1);function B(pe){for(var W=[],Fe,fe=0;fe<pe.length;fe++){var V=pe[fe];!V||!V.$$is_string||((Fe=V.match(/^ at (.*?) \((.*?)\)$/))?W.push(Fe[2]+":in `"+Fe[1]+"'"):(Fe=V.match(/^ at (.*?)$/))?W.push(Fe[1]+":in `undefined'"):(Fe=V.match(/^ from (.*?)$/))?W.push(Fe[1]):(Fe=V.match(/^(.*?)@(.*?)$/))&&W.push(Fe[2]+":in `"+Fe[1]+"'"))}return W}return $(te,"$backtrace",function(){var W=this;if(W.backtrace)return W.backtrace;var Fe=W.stack;return typeof Fe<"u"&&Fe.$$is_string?W.backtrace=B(Fe.split(`
|
|
433
|
-
`)):Fe?W.backtrace=B(Fe):[]}),$(te,"$backtrace_locations",function(){var W,Fe=this;return Fe.backtrace_locations||(Fe.backtrace_locations=(W=Fe.$backtrace(),W===_e||W==null?_e:s(W,"map",[],function(V){return V==null&&(V=_e),Q(Q(Q("Thread"),"Backtrace"),"Location").$new(V)}))),Fe.backtrace_locations}),$(te,"$cause",function(){var W=this;return W.cause||_e}),$(te,"$exception",function(W){var Fe=this;if(W==null&&(W=_e),W===_e||Fe===W)return Fe;var fe=Fe.$clone();return fe.message=W,Fe.backtrace&&(fe.backtrace=Fe.backtrace.$dup()),fe.stack=Fe.stack,fe.cause=Fe.cause,fe},-1),$(te,"$message",function(){var W=this;return W.$to_s()}),$(te,"$full_message",function(W){var Fe,fe=this,V=_e,x=_e,f=_e,o=_e,c=_e,p=_e,m=_e,E=_e,T=_e;return n.stderr==null&&(n.stderr=_e),W==null&&(W=_e),h(de("Hash","skip_raise")?"constant":_e)?(W=d(["highlight","order"],{highlight:n.stderr["$tty?"](),order:"top"}).$merge(h(V=W)?V:d([],{})),Fe=[W["$[]"]("highlight"),W["$[]"]("order")],x=Fe[0],f=Fe[1],h([!0,!1]["$include?"](x))||w.$raise(Q("ArgumentError"),"expected true or false as highlight: "+x),h(["top","bottom"]["$include?"](f))||w.$raise(Q("ArgumentError"),"expected :top or :bottom as order: "+f),h(x)?(o="\x1B[1;4m",c="\x1B[1m",p="\x1B[m"):o=c=p="",m=fe.$backtrace().$dup(),(A(m)||h(m["$empty?"]()))&&(m=fe.$caller()),E=m.$shift(),T=""+E+": ",T=N(T,""+c+fe.$to_s()+" ("+o+fe.$class()+p+c+")"+p+`
|
|
434
|
-
`),T=N(T,s(m,"map",[],function(je){return je==null&&(je=_e)," from "+je+`
|
|
435
|
-
`}).$join()),h(fe.$cause())&&(T=N(T,fe.$cause().$full_message(d(["highlight"],{highlight:x})))),U(f,"bottom")&&(T=T.$split(`
|
|
436
|
-
`).$reverse().$join(`
|
|
437
|
-
`),T=N(""+c+"Traceback"+p+` (most recent call last):
|
|
438
|
-
`,T)),T):""+fe.message+`
|
|
439
|
-
`+fe.stack},-1),$(te,"$inspect",function(){var W=this,Fe=_e;return Fe=W.$to_s(),h(Fe["$empty?"]())?W.$class().$to_s():"#<"+W.$class().$to_s()+": "+W.$to_s()+">"}),$(te,"$set_backtrace",function(W){var Fe=this,fe=!0,V,x;if(W===_e)Fe.backtrace=_e,Fe.stack="";else if(W.$$is_string)Fe.backtrace=[W],Fe.stack=" from "+W;else{if(W.$$is_array){for(V=0,x=W.length;V<x;V++)if(!W[V].$$is_string){fe=!1;break}}else fe=!1;fe===!1&&w.$raise(Q("TypeError"),"backtrace must be Array of String"),Fe.backtrace=W,Fe.stack=s(W,"map",[],function(o){return o==null&&(o=_e),N(" from ",o)}).join(`
|
|
440
|
-
`)}return W}),$(te,"$to_s",function(){var W=this,Fe=_e,fe=_e;return h(Fe=h(fe=W.message)?W.message.$to_s():fe)?Fe:W.$class().$to_s()})}("::",Error,ne),t("::",Q("Exception"),"ScriptError"),t("::",Q("ScriptError"),"SyntaxError"),t("::",Q("ScriptError"),"LoadError"),t("::",Q("ScriptError"),"NotImplementedError"),t("::",Q("Exception"),"SystemExit"),t("::",Q("Exception"),"NoMemoryError"),t("::",Q("Exception"),"SignalException"),t("::",Q("SignalException"),"Interrupt"),t("::",Q("Exception"),"SecurityError"),t("::",Q("Exception"),"SystemStackError"),t("::",Q("Exception"),"StandardError"),t("::",Q("StandardError"),"EncodingError"),t("::",Q("StandardError"),"ZeroDivisionError"),t("::",Q("StandardError"),"NameError"),t("::",Q("NameError"),"NoMethodError"),t("::",Q("StandardError"),"RuntimeError"),t("::",Q("RuntimeError"),"FrozenError"),t("::",Q("StandardError"),"LocalJumpError"),t("::",Q("StandardError"),"TypeError"),t("::",Q("StandardError"),"ArgumentError"),t("::",Q("ArgumentError"),"UncaughtThrowError"),t("::",Q("StandardError"),"IndexError"),t("::",Q("IndexError"),"StopIteration"),t("::",Q("StopIteration"),"ClosedQueueError"),t("::",Q("IndexError"),"KeyError"),t("::",Q("StandardError"),"RangeError"),t("::",Q("RangeError"),"FloatDomainError"),t("::",Q("StandardError"),"IOError"),t("::",Q("IOError"),"EOFError"),t("::",Q("StandardError"),"SystemCallError"),t("::",Q("StandardError"),"RegexpError"),t("::",Q("StandardError"),"ThreadError"),t("::",Q("StandardError"),"FiberError"),O.$autoload("Errno","corelib/error/errno"),function(be,oe){var Ee=t(be,oe,"FrozenError");return Ee.$attr_reader("receiver"),$(Ee,"$initialize",function te(Ce,de){var k;te.$$p;var Ae=this;return te.$$p=null,de=j(de),k=de.$$smap.receiver,k==null&&(k=_e),q(Ae,Y(Ae,"initialize",te,!1,!0),"initialize",[Ce],null),Ae.receiver=k},-2)}("::",Q("RuntimeError")),function(be,oe){var Ee=t(be,oe,"UncaughtThrowError"),te=Ee.$$prototype;return te.tag=_e,Ee.$attr_reader("tag","value"),$(Ee,"$initialize",function Ce(de,k){Ce.$$p;var Ae=this;return Ce.$$p=null,k==null&&(k=_e),Ae.tag=de,Ae.value=k,q(Ae,Y(Ae,"initialize",Ce,!1,!0),"initialize",["uncaught throw "+Ae.tag.$inspect()],null)},-2)}("::",Q("ArgumentError")),function(be,oe){var Ee=t(be,oe,"NameError");return Ee.$attr_reader("name"),$(Ee,"$initialize",function te(Ce,de){te.$$p;var k=this;return te.$$p=null,de==null&&(de=_e),q(k,Y(k,"initialize",te,!1,!0),"initialize",[Ce],null),k.name=de},-2)}("::",null),function(be,oe){var Ee=t(be,oe,"NoMethodError");return Ee.$attr_reader("args"),$(Ee,"$initialize",function te(Ce,de,k){te.$$p;var Ae=this;return te.$$p=null,de==null&&(de=_e),k==null&&(k=[]),q(Ae,Y(Ae,"initialize",te,!1,!0),"initialize",[Ce,de],null),Ae.args=k},-2)}("::",null),function(be,oe){var Ee=t(be,oe,"StopIteration");return Ee.$attr_reader("result")}("::",null),function(be,oe){var Ee=t(be,oe,"KeyError"),te=Ee.$$prototype;return te.receiver=te.key=_e,$(Ee,"$initialize",function Ce(de,k){var Ae,B;Ce.$$p;var pe=this;return Ce.$$p=null,k=j(k),Ae=k.$$smap.receiver,Ae==null&&(Ae=_e),B=k.$$smap.key,B==null&&(B=_e),q(pe,Y(pe,"initialize",Ce,!1,!0),"initialize",[de],null),pe.receiver=Ae,pe.key=B},-2),$(Ee,"$receiver",function(){var de=this,k=_e;return h(k=de.receiver)?k:w.$raise(Q("ArgumentError"),"no receiver is available")}),$(Ee,"$key",function(){var de=this,k=_e;return h(k=de.key)?k:w.$raise(Q("ArgumentError"),"no key is available")})}("::",null),function(be,oe){var Ee=he(be,"JS"),te=[Ee].concat(oe);return t(te[0],null,"Error"),_e}("::",ne)};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,l=e.NilClass,$=e.slice,h=e.truthy,d=e.rb_gt,w=e.alias,A=e.nil,N=e.$$$;return e.add_stubs("raise,name,new,>,length,Rational,to_i"),function(U,O,j){var q=t(U,O,"NilClass");return q.$$prototype.$$meta=q,function(Y,he){return n(Y,"$allocate",function(){var _e=this;return r.$raise(N("TypeError"),"allocator undefined for "+_e.$name())}),e.udef(Y,"$new"),A}(e.get_singleton_class(q)),n(q,"$!",i(!0)),n(q,"$&",i(!1)),n(q,"$|",function(he){return he!==!1&&he!==A}),n(q,"$^",function(he){return he!==!1&&he!==A}),n(q,"$==",function(he){return he===A}),n(q,"$dup",i(A)),n(q,"$clone",function(he){return he=s(he),he.$$smap.freeze,A},-1),n(q,"$inspect",i("nil")),n(q,"$nil?",i(!0)),n(q,"$singleton_class",function(){return l}),n(q,"$to_a",function(){return[]}),n(q,"$to_h",function(){return e.hash()}),n(q,"$to_i",i(0)),n(q,"$to_s",i("")),n(q,"$to_c",function(){return N("Complex").$new(0,0)}),n(q,"$rationalize",function(he){var ne,_e;return ne=$(arguments),_e=ne,h(d(_e.$length(),1))&&r.$raise(N("ArgumentError")),r.$Rational(0,1)},-1),n(q,"$to_r",function(){return r.$Rational(0,1)}),n(q,"$instance_variables",function(){return[]}),w(q,"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,l=e.slice,$=e.truthy,h=e.send2,d=e.find_super,w=e.to_a,A=e.alias,N=e.nil,U=e.$$$;return e.add_stubs("raise,name,==,to_s,__id__"),function(O,j,q){var Y=t(O,j,"Boolean");e.prop(Y.$$prototype,"$$is_boolean",!0);for(var he=["$$class","$$meta"],ne=0;ne<he.length;ne++)Object.defineProperty(Y.$$prototype,he[ne],{configurable:!0,enumerable:!1,get:function(){return this==!0?e.TrueClass:this==!1?e.FalseClass:e.Boolean}});return Object.defineProperty(Y.$$prototype,"$$id",{configurable:!0,enumerable:!1,get:function(){return this==!0?2:this==!1?0:N}}),function(_e,Q){return n(_e,"$allocate",function(){var oe=this;return r.$raise(U("TypeError"),"allocator undefined for "+oe.$name())}),e.udef(_e,"$new"),N}(e.get_singleton_class(Y)),n(Y,"$__id__",function(){var Q=this;return Q.valueOf()?2:0}),n(Y,"$!",function(){var Q=this;return Q!=!0}),n(Y,"$&",function(Q){var be=this;return be==!0?Q!==!1&&Q!==N:!1}),n(Y,"$|",function(Q){var be=this;return be==!0?!0:Q!==!1&&Q!==N}),n(Y,"$^",function(Q){var be=this;return be==!0?Q===!1||Q===N:Q!==!1&&Q!==N}),n(Y,"$==",function(Q){var be=this;return be==!0===Q.valueOf()}),n(Y,"$singleton_class",function(){var Q=this;return Q.$$meta}),n(Y,"$to_s",function(){var Q=this;return Q==!0?"true":"false"}),n(Y,"$dup",i),n(Y,"$clone",function(Q){var be=this;return Q=s(Q),Q.$$smap.freeze,be},-1),n(Y,"$method_missing",function _e(Q,be){var oe=_e.$$p||N,Ee,te,Ce=this;_e.$$p=null,Ee=l(arguments,1),te=Ee;var de=Ce.$$class.$$prototype[e.jsid(Q)];return $(typeof de<"u"&&!de.$$stub)||h(Ce,d(Ce,"method_missing",_e,!1,!0),"method_missing",[Q].concat(w(te)),oe),e.send(Ce,de,te,oe)},-2),n(Y,"$respond_to_missing?",function(Q,be){var oe=this,Ee=oe.$$class.$$prototype[e.jsid(Q)];return typeof Ee<"u"&&!Ee.$$stub},-2),A(Y,"eql?","=="),A(Y,"equal?","=="),A(Y,"inspect","to_s"),A(Y,"object_id","__id__")}("::",Boolean),t("::",U("Boolean"),"TrueClass"),t("::",U("Boolean"),"FalseClass"),N};Opal.modules["corelib/comparable"]=function(e){var t=e.truthy,r=e.module,n=e.rb_gt,i=e.rb_lt,s=e.eqeqeq,l=e.Kernel,$=e.def,h=e.nil,d=e.$$$;return e.add_stubs(">,<,===,raise,class,<=>,equal?"),function(w){var A=r(w,"Comparable"),N=h;function U(q){return e.is_a(q,e.Integer)?q:n(q,0)?1:i(q,0)?-1:0}function O(q,Y){var he;s(h,N=Y)||s(!0,N)||s(!1,N)||s(d("Integer"),N)||s(d("Float"),N)?he=Y.$inspect():he=Y.$$class,l.$raise(d("ArgumentError"),"comparison of "+q.$class()+" with "+he+" failed")}function j(q,Y){var he=q["$<=>"](Y);return t(he)||O(q,Y),U(he)}return $(A,"$==",function(Y){var he=this,ne=h;return t(he["$equal?"](Y))?!0:he["$<=>"]==e.Kernel["$<=>"]?!1:he.$$comparable?(he.$$comparable=!1,!1):t(ne=he["$<=>"](Y))?U(ne)==0:!1}),$(A,"$>",function(Y){var he=this;return j(he,Y)>0}),$(A,"$>=",function(Y){var he=this;return j(he,Y)>=0}),$(A,"$<",function(Y){var he=this;return j(he,Y)<0}),$(A,"$<=",function(Y){var he=this;return j(he,Y)<=0}),$(A,"$between?",function(Y,he){var ne=this;return!(i(ne,Y)||n(ne,he))}),$(A,"$clamp",function(Y,he){var ne=this;he==null&&(he=h);var _e,Q;if(he===h&&(e.is_a(Y,e.Range)||l.$raise(d("TypeError"),"wrong argument type "+Y.$class()+" (expected Range)"),Q=Y.excl,he=Y.end,Y=Y.begin,he!==h&&Q&&l.$raise(d("ArgumentError"),"cannot clamp with an exclusive range")),Y!==h&&he!==h&&j(Y,he)>0&&l.$raise(d("ArgumentError"),"min argument must be smaller than max argument"),Y!==h){if(_e=j(ne,Y),_e==0)return ne;if(_e<0)return Y}return he!==h&&(_e=j(ne,he),_e>0)?he:ne},-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,l=e.send2,$=e.find_super,h=e.def,d=e.truthy,w=e.gvars,A=e.slice,N=e.Kernel,U=e.Opal,O=e.alias,j=e.send,q=e.hash2,Y=e.rb_plus,he=e.ensure_kwargs,ne=e.rb_ge,_e=e.to_a,Q=e.eqeqeq,be=e.rb_minus,oe=e.return_ivar,Ee=[],te=e.nil,Ce=e.$$$;return e.add_stubs("nil?,[],raise,escape,options,to_str,new,join,coerce_to!,!,match,coerce_to?,begin,frozen?,uniq,map,scan,source,to_proc,transform_values,group_by,each_with_index,+,last,=~,==,attr_reader,>=,length,is_a?,include?,names,regexp,named_captures,===,captures,-,inspect,empty?,each,to_a"),i("::",Ce("StandardError"),"RegexpError"),function(de,k,Ae){var B=i(de,k,"Regexp"),pe=[B].concat(Ae),W=e.$r(pe);return s(B,"IGNORECASE",1),s(B,"EXTENDED",2),s(B,"MULTILINE",4),e.prop(B.$$prototype,"$$is_regexp",!0),function(Fe,fe){var V=[Fe].concat(fe),x=e.$r(V);return h(Fe,"$allocate",function f(){var o=f.$$p||te,c=this,p=te;return f.$$p=null,p=l(c,$(c,"allocate",f,!1,!0),"allocate",[],o),p.uninitialized=!0,p}),h(Fe,"$escape",function(o){return e.escape_regexp(o)}),h(Fe,"$last_match",function(o){return w["~"]==null&&(w["~"]=te),o==null&&(o=te),d(o["$nil?"]())?w["~"]:d(w["~"])?w["~"]["$[]"](o):te},-1),h(Fe,"$union",function(o){var c,p,m=this;c=A(arguments),p=c;var E,T,re,je,nt;if(p.length==0)return/(?!)/;if(p.length==1&&p[0].$$is_regexp)return p[0];E=p[0].$$is_array,p.length>1&&E&&N.$raise(Ce("TypeError"),"no implicit conversion of Array into String"),E&&(p=p[0]),je=void 0,T=[];for(var ft=0;ft<p.length;ft++)re=p[ft],re.$$is_string?T.push(m.$escape(re)):re.$$is_regexp?(nt=re.$options(),je!=null&&je!=nt&&N.$raise(Ce("TypeError"),"All expressions must use the same options"),je=nt,T.push("("+re.source+")")):T.push(m.$escape(re.$to_str()));return m.$new(T.$join("|"),je)},-1),h(Fe,"$new",function(o,c){if(o.$$is_regexp)return new RegExp(o);if(o=U["$coerce_to!"](o,Ce("String"),"to_str"),o.charAt(o.length-1)==="\\"&&o.charAt(o.length-2)!=="\\"&&N.$raise(Ce("RegexpError"),"too short escape sequence: /"+o+"/"),o=o.replace("\\A","^").replace("\\z","$"),c===void 0||c["$!"]())return new RegExp(o);if(c.$$is_number){var p="";x("IGNORECASE")&c&&(p+="i"),x("MULTILINE")&c&&(p+="m"),c=p}else c="i";return new RegExp(o,c)},-2),O(Fe,"compile","new"),O(Fe,"quote","escape")}(e.get_singleton_class(B),pe),h(B,"$==",function(fe){var V=this;return fe instanceof RegExp&&V.toString()===fe.toString()}),h(B,"$===",function(fe){var V=this;return V.$match(U["$coerce_to?"](fe,Ce("String"),"to_str"))!==te}),h(B,"$=~",function(fe){var V=this,x=te;return w["~"]==null&&(w["~"]=te),d(x=V.$match(fe))?w["~"].$begin(0):x}),h(B,"$freeze",function(){var fe=this;return d(fe["$frozen?"]())?fe:(fe.hasOwnProperty("$$g")||r(fe,"$$g",null),fe.hasOwnProperty("$$gm")||r(fe,"$$gm",null),n(fe))}),h(B,"$inspect",function(){var fe=this,V=/^\/(.*)\/([^\/]*)$/,x=fe.toString(),f=V.exec(x);if(f){for(var o=f[1],c=f[2],p=o.split(""),m=p.length,E=!1,T="",re=0;re<m;re++){var je=p[re];!E&&je=="/"&&(T=T.concat("\\")),T=T.concat(je),je=="\\"?E?E=!1:E=!0:E=!1}return"/"+T+"/"+c}else return x}),h(B,"$match",function Fe(fe,V){var x=Fe.$$p||te,f=this;if(w["~"]==null&&(w["~"]=te),Fe.$$p=null,f.uninitialized&&N.$raise(Ce("TypeError"),"uninitialized Regexp"),V===void 0){if(fe===te)return w["~"]=te;var o=f.exec(t(fe,Ce("String"),"to_str"));return o?(w["~"]=Ce("MatchData").$new(f,o),x===te?w["~"]:e.yield1(x,w["~"])):w["~"]=te}if(V=t(V,Ce("Integer"),"to_int"),fe===te||(fe=t(fe,Ce("String"),"to_str"),V<0&&(V+=fe.length,V<0)))return w["~"]=te;for(var c,p=e.global_regexp(f);;){if(c=p.exec(fe),c===null)return w["~"]=te;if(c.index>=V)return w["~"]=Ce("MatchData").$new(p,c),x===te?w["~"]:e.yield1(x,w["~"]);p.lastIndex=c.index+1}},-2),h(B,"$match?",function(fe,V){var x=this;if(x.uninitialized&&N.$raise(Ce("TypeError"),"uninitialized Regexp"),V===void 0)return fe===te?!1:x.test(t(fe,Ce("String"),"to_str"));if(V=t(V,Ce("Integer"),"to_int"),fe===te||(fe=t(fe,Ce("String"),"to_str"),V<0&&(V+=fe.length,V<0)))return!1;var f,o=e.global_regexp(x);return f=o.exec(fe),!(f===null||f.index<V)},-2),h(B,"$names",function(){var fe=this;return j(fe.$source().$scan(/\(?<(\w+)>/,q(["no_matchdata"],{no_matchdata:!0})),"map",[],"first".$to_proc()).$uniq()}),h(B,"$named_captures",function(){var fe=this;return j(j(j(fe.$source().$scan(/\(?<(\w+)>/,q(["no_matchdata"],{no_matchdata:!0})),"map",[],"first".$to_proc()).$each_with_index(),"group_by",[],"first".$to_proc()),"transform_values",[],function(x){return x==null&&(x=te),j(x,"map",[],function(o){return o==null&&(o=te),Y(o.$last(),1)})})}),h(B,"$~",function(){var fe=this;return w._==null&&(w._=te),fe["$=~"](w._)}),h(B,"$source",function(){var fe=this;return fe.source}),h(B,"$options",function(){var fe=this;fe.uninitialized&&N.$raise(Ce("TypeError"),"uninitialized Regexp");var V=0;return fe.multiline&&(V|=W("MULTILINE")),fe.ignoreCase&&(V|=W("IGNORECASE")),V}),h(B,"$casefold?",function(){var fe=this;return fe.ignoreCase}),O(B,"eql?","=="),O(B,"to_s","source")}("::",RegExp,Ee),function(de,k,Ae){var B=i(de,k,"MatchData"),pe=[B].concat(Ae),W=e.$r(pe),Fe=B.$$prototype;return Fe.matches=te,B.$attr_reader("post_match","pre_match","regexp","string"),h(B,"$initialize",function(V,x,f){var o,c=this;f=he(f),o=f.$$smap.no_matchdata,o==null&&(o=!1),d(o)||(w["~"]=c),c.regexp=V,c.begin=x.index,c.string=x.input,c.pre_match=x.input.slice(0,x.index),c.post_match=x.input.slice(x.index+x[0].length),c.matches=[];for(var p=0,m=x.length;p<m;p++){var E=x[p];E==null?c.matches.push(te):c.matches.push(E)}},-3),h(B,"$match",function(V){var x=this,f=te;return d(f=x["$[]"](V))?f:d(V["$is_a?"](W("Integer")))&&d(ne(V,x.$length()))?N.$raise(Ce("IndexError"),"index "+V+" out of matches"):te}),h(B,"$match_length",function(V){var x,f=this;return x=f.$match(V),x===te||x==null?te:x.$length()}),h(B,"$[]",function(V){var x,f,o=this;return x=A(arguments),f=x,f[0].$$is_string?(o.$regexp().$names()["$include?"](f["$[]"](0))["$!"]()&&N.$raise(Ce("IndexError"),"undefined group name reference: "+f["$[]"](0)),o.$named_captures()["$[]"](f["$[]"](0))):j(o.matches,"[]",_e(f))},-1),h(B,"$offset",function(V){var x=this;return V!==0&&N.$raise(Ce("ArgumentError"),"MatchData#offset only supports 0th element"),[x.begin,x.begin+x.matches[V].length]}),h(B,"$==",function(V){var x=this,f=te,o=te,c=te,p=te;return Q(Ce("MatchData"),V)?d(f=d(o=d(c=d(p=x.string==V.string)?x.regexp.toString()==V.regexp.toString():p)?x.pre_match==V.pre_match:c)?x.post_match==V.post_match:o)?x.begin==V.begin:f:!1}),h(B,"$begin",function(V){var x=this;return V!==0&&N.$raise(Ce("ArgumentError"),"MatchData#begin only supports 0th element"),x.begin}),h(B,"$end",function(V){var x=this;return V!==0&&N.$raise(Ce("ArgumentError"),"MatchData#end only supports 0th element"),x.begin+x.matches[V].length}),h(B,"$captures",function(){var V=this;return V.matches.slice(1)}),h(B,"$named_captures",function(){var V=this,x=te;return x=V.$captures(),j(V.$regexp().$named_captures(),"transform_values",[],function(o){return o==null&&(o=te),x["$[]"](be(o.$last(),1))})}),h(B,"$names",function(){var V=this;return V.$regexp().$names()}),h(B,"$inspect",function(){var V=this,x="#<MatchData "+V.matches[0].$inspect();if(V.$regexp().$names()["$empty?"]())for(var f=1,o=V.matches.length;f<o;f++)x+=" "+f+":"+V.matches[f].$inspect();else j(V.$named_captures(),"each",[],function(p,m){return p==null&&(p=te),m==null&&(m=te),x+=" "+p+":"+m.$inspect()});return x+">"}),h(B,"$length",function(){var V=this;return V.matches.length}),h(B,"$to_a",oe("matches")),h(B,"$to_s",function(){var V=this;return V.matches[0]}),h(B,"$values_at",function(V){var x,f,o=this;x=A(arguments),f=x;var c,p,m,E=[];for(c=0;c<f.length;c++){if(f[c].$$is_range&&(p=f[c].$to_a(),p.unshift(c,1),Array.prototype.splice.apply(f,p)),m=U["$coerce_to!"](f[c],Ce("Integer"),"to_int"),m<0&&(m+=o.matches.length,m<0)){E.push(te);continue}E.push(o.matches[m])}return E},-1),O(B,"eql?","=="),O(B,"size","length")}(Ee[0],null,Ee)};Opal.modules["corelib/string"]=function(e){var t=e.coerce_to,r=e.respond_to,n=e.global_multiline_regexp,i=e.prop,s=e.klass,l=e.def,$=e.Opal,h=e.defs,d=e.slice,w=e.send,A=e.to_a,N=e.extract_kwargs,U=e.ensure_kwargs,O=e.eqeqeq,j=e.Kernel,q=e.truthy,Y=e.gvars,he=e.rb_divide,ne=e.rb_plus,_e=e.eqeq,Q=e.hash2,be=e.alias,oe=e.const_set,Ee=e.top,te=[],Ce=e.$r(te),de=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"),Ee.$require("corelib/comparable"),Ee.$require("corelib/regexp"),function(Ae,B,pe){var W=s(Ae,B,"String"),Fe=[W].concat(pe),fe=e.$r(Fe);W.$include(k("Comparable")),e.prop(W.$$prototype,"$$is_string",!0),l(W,"$__id__",function(){var f=this;return f.toString()}),h(W,"$try_convert",function(f){return $["$coerce_to?"](f,k("String"),"to_str")}),h(W,"$new",function(f){var o,c,p=this;o=d(arguments),c=o;var m=c[0]||"",E=c[c.length-1];return m=t(m,k("String"),"to_str"),E&&E.$$is_hash&&E.$$smap.encoding&&(m=m.$force_encoding(E.$$smap.encoding)),m=new p.$$constructor(m),m.$initialize.$$pristine||w(m,"initialize",A(c)),m},-1),l(W,"$initialize",function(f,o){var c,p;return c=d(arguments),p=N(c),p=U(p),c.length>0&&c.shift(),p.$$smap.encoding,p.$$smap.capacity,de},-1),l(W,"$%",function(f){var o=this;return O(k("Array"),f)?w(o,"format",[o].concat(A(f))):o.$format(o,f)}),l(W,"$*",function(f){var o=this;if(f=t(f,k("Integer"),"to_int"),f<0&&j.$raise(k("ArgumentError"),"negative argument"),f===0)return"";var c="",p=o.toString();for(p.length*f>=1<<28&&j.$raise(k("RangeError"),"multiply count must not overflow maximum string size");(f&1)===1&&(c+=p),f>>>=1,f!==0;)p+=p;return c}),l(W,"$+",function(f){var o=this;if(f=t(f,k("String"),"to_str"),f==""&&o.$$class===e.String)return o;if(o==""&&f.$$class===e.String)return f;var c=o+f;return o.encoding===c.encoding&&f.encoding===c.encoding||o.encoding.name==="UTF-8"||f.encoding.name==="UTF-8"?c:e.enc(c,o.encoding)}),l(W,"$<=>",function(f){var o=this;if(q(f["$respond_to?"]("to_str")))return f=f.$to_str().$to_s(),o>f?1:o<f?-1:0;var c=f["$<=>"](o);return c===de?de:c>0?-1:c<0?1:0}),l(W,"$==",function(f){var o=this;return f.$$is_string?o.toString()===f.toString():r(f,"$to_str")?f["$=="](o):!1}),l(W,"$=~",function(f){var o=this;return f.$$is_string&&j.$raise(k("TypeError"),"type mismatch: String given"),f["$=~"](o)}),l(W,"$[]",function(f,o){var c=this,p=c.length,m,E;if(f.$$is_range)return m=f.excl,E=f,o=f.end===de?-1:t(f.end,k("Integer"),"to_int"),f=f.begin===de?0:t(f.begin,k("Integer"),"to_int"),Math.abs(f)>p?de:(f<0&&(f+=p),o<0&&(o+=p),(!m||E.end===de)&&(o+=1),o=o-f,o<0&&(o=0),c.substr(f,o));if(f.$$is_string)return o!=null&&j.$raise(k("TypeError")),c.indexOf(f)!==-1?f:de;if(f.$$is_regexp){var T=c.match(f);return T===null?(Y["~"]=de,de):(Y["~"]=k("MatchData").$new(f,T),o==null?T[0]:(o=t(o,k("Integer"),"to_int"),o<0&&-o<T.length?T[o+=T.length]:o>=0&&o<T.length?T[o]:de))}return f=t(f,k("Integer"),"to_int"),f<0&&(f+=p),o==null?f>=p||f<0?de:c.substr(f,1):(o=t(o,k("Integer"),"to_int"),o<0||f>p||f<0?de:c.substr(f,o))},-2),l(W,"$b",function(){var f=this;return new String(f).$force_encoding("binary")}),l(W,"$capitalize",function(){var f=this;return f.charAt(0).toUpperCase()+f.substr(1).toLowerCase()}),l(W,"$casecmp",function(f){var o=this;if(!q(f["$respond_to?"]("to_str")))return de;f=t(f,k("String"),"to_str").$to_s();var c=/^[\x00-\x7F]*$/;return c.test(o)&&c.test(f)&&(o=o.toLowerCase(),f=f.toLowerCase()),o["$<=>"](f)}),l(W,"$casecmp?",function(f){var o=this,c=o.$casecmp(f);return c===de?de:c===0}),l(W,"$center",function(f,o){var c=this;if(o==null&&(o=" "),f=t(f,k("Integer"),"to_int"),o=t(o,k("String"),"to_str").$to_s(),q(o["$empty?"]())&&j.$raise(k("ArgumentError"),"zero width padding"),q(f<=c.length))return c;var p=c.$ljust(he(ne(f,c.length),2).$ceil(),o),m=c.$rjust(he(ne(f,c.length),2).$floor(),o);return m+p.slice(c.length)},-2),l(W,"$chomp",function(f){var o=this;if(Y["/"]==null&&(Y["/"]=de),f==null&&(f=Y["/"]),q(f===de||o.length===0))return o;f=$["$coerce_to!"](f,k("String"),"to_str").$to_s();var c;if(f===`
|
|
441
|
-
`)c=o.replace(/\r?\n?$/,"");else if(f==="")c=o.replace(/(\r?\n)+$/,"");else if(o.length>=f.length){var p=o.substr(o.length-f.length,f.length);p===f&&(c=o.substr(0,o.length-f.length))}return c??o},-1),l(W,"$chop",function(){var f=this,o=f.length,c;return o<=1?c="":f.charAt(o-1)===`
|
|
442
|
-
`&&f.charAt(o-2)==="\r"?c=f.substr(0,o-2):c=f.substr(0,o-1),c}),l(W,"$chr",function(){var f=this;return f.charAt(0)}),l(W,"$clone",function(f){var o,c=this,p=de;return f=U(f),o=f.$$smap.freeze,o==null&&(o=de),q(o["$nil?"]())||_e(o,!0)||_e(o,!1)||c.$raise(fe("ArgumentError"),"unexpected value for freeze: "+o.$class()),p=new String(c),p.$copy_singleton_methods(c),p.$initialize_clone(c,Q(["freeze"],{freeze:o})),_e(o,!0)?p.$$frozen||(p.$$frozen=!0):q(o["$nil?"]())&&c.$$frozen&&(p.$$frozen=!0),p},-1),l(W,"$dup",function(){var f=this,o=de;return o=new String(f),o.$initialize_dup(f),o}),l(W,"$count",function(f){var o,c,p=this;o=d(arguments),c=o,c.length===0&&j.$raise(k("ArgumentError"),"ArgumentError: wrong number of arguments (0 for 1+)");var m=V(c);return m===null?0:p.length-p.replace(new RegExp(m,"g"),"").length},-1),l(W,"$delete",function(f){var o,c,p=this;o=d(arguments),c=o,c.length===0&&j.$raise(k("ArgumentError"),"ArgumentError: wrong number of arguments (0 for 1+)");var m=V(c);return m===null?p:p.replace(new RegExp(m,"g"),"")},-1),l(W,"$delete_prefix",function(f){var o=this;return f.$$is_string||(f=t(f,k("String"),"to_str")),o.slice(0,f.length)===f?o.slice(f.length):o}),l(W,"$delete_suffix",function(f){var o=this;return f.$$is_string||(f=t(f,k("String"),"to_str")),o.slice(o.length-f.length)===f?o.slice(0,o.length-f.length):o}),l(W,"$downcase",function(){var f=this;return f.toLowerCase()}),l(W,"$each_line",function x(f,o){var c=x.$$p||de,p,m,E,T,re=this;if(Y["/"]==null&&(Y["/"]=de),x.$$p=null,p=d(arguments),m=N(p),m=U(m),p.length>0&&(E=p.shift()),E==null&&(E=Y["/"]),T=m.$$smap.chomp,T==null&&(T=!1),c===de)return re.$enum_for("each_line",E,Q(["chomp"],{chomp:T}));if(E===de)return e.yield1(c,re),re;E=t(E,k("String"),"to_str");var je,nt,ft,yt,zt,_t,vt,mt;if(E.length===0){for(je=re.split(/((?:\r?\n){2})(?:(?:\r?\n)*)/),nt=0,ft=je.length;nt<ft;nt+=2)(je[nt]||je[nt+1])&&(mt=(je[nt]||"")+(je[nt+1]||""),T&&(mt=mt.$chomp(`
|
|
443
|
-
`)),e.yield1(c,mt));return re}for(zt=re.$chomp(E),_t=re.length!=zt.length,vt=zt.split(E),nt=0,yt=vt.length;nt<yt;nt++)mt=vt[nt],(nt<yt-1||_t)&&(mt+=E),T&&(mt=mt.$chomp(E)),e.yield1(c,mt);return re},-1),l(W,"$empty?",function(){var f=this;return f.length===0}),l(W,"$end_with?",function(f){var o,c,p=this;o=d(arguments),c=o;for(var m=0,E=c.length;m<E;m++){var T=t(c[m],k("String"),"to_str").$to_s();if(p.length>=T.length&&p.substr(p.length-T.length,T.length)==T)return!0}return!1},-1),l(W,"$gsub",function x(f,o){var c=x.$$p||de,p=this;if(x.$$p=null,o===void 0&&c===de)return p.$enum_for("gsub",f);var m="",E=de,T=0,re,je;f.$$is_regexp?f=n(f):(f=t(f,k("String"),"to_str"),f=new RegExp(f.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),"gm"));for(var nt;;){if(re=f.exec(p),re===null){Y["~"]=de,m+=p.slice(T);break}E=k("MatchData").$new(f,re),o===void 0?(nt=f.lastIndex,je=c(re[0]),f.lastIndex=nt):o.$$is_hash?je=o["$[]"](re[0]).$to_s():(o.$$is_string||(o=t(o,k("String"),"to_str")),je=o.replace(/([\\]+)([0-9+&`'])/g,function(ft,yt,zt){if(yt.length%2===0)return ft;switch(zt){case"+":for(var _t=re.length-1;_t>0;_t--)if(re[_t]!==void 0)return yt.slice(1)+re[_t];return"";case"&":return yt.slice(1)+re[0];case"`":return yt.slice(1)+p.slice(0,re.index);case"'":return yt.slice(1)+p.slice(re.index+re[0].length);default:return yt.slice(1)+(re[zt]||"")}}).replace(/\\\\/g,"\\")),f.lastIndex===re.index?(m+=p.slice(T,re.index)+je+(p[re.index]||""),f.lastIndex+=1):m+=p.slice(T,re.index)+je,T=f.lastIndex}return Y["~"]=E,m},-2),l(W,"$hash",function(){var f=this;return f.toString()}),l(W,"$hex",function(){var f=this;return f.$to_i(16)}),l(W,"$include?",function(f){var o=this;return f.$$is_string||(f=t(f,k("String"),"to_str")),o.indexOf(f)!==-1}),l(W,"$index",function(f,o){var c=this,p,m,E;if(o===void 0)o=0;else if(o=t(o,k("Integer"),"to_int"),o<0&&(o+=c.length,o<0))return de;if(f.$$is_regexp)for(E=n(f);;){if(m=E.exec(c),m===null){Y["~"]=de,p=-1;break}if(m.index>=o){Y["~"]=k("MatchData").$new(E,m),p=m.index;break}E.lastIndex=m.index+1}else f=t(f,k("String"),"to_str"),f.length===0&&o>c.length?p=-1:p=c.indexOf(f,o);return p===-1?de:p},-2),l(W,"$inspect",function(){var f=this,o=/[\\\"\x00-\x1f\u007F-\u009F\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,c={"\x07":"\\a","\x1B":"\\e","\b":"\\b"," ":"\\t","\n":"\\n","\f":"\\f","\r":"\\r","\v":"\\v",'"':'\\"',"\\":"\\\\"},p=f.replace(o,function(m){return c[m]?c[m]:(m=m.charCodeAt(0),m<=255&&(f.encoding["$binary?"]()||f.internal_encoding["$binary?"]())?"\\x"+("00"+m.toString(16).toUpperCase()).slice(-2):"\\u"+("0000"+m.toString(16).toUpperCase()).slice(-4))});return'"'+p.replace(/\#[\$\@\{]/g,"\\$&")+'"'}),l(W,"$intern",function(){var f=this;return f.toString()}),l(W,"$length",function(){var f=this;return f.length}),be(W,"size","length"),l(W,"$lines",function x(f,o){var c=x.$$p||de,p,m,E,T,re=this,je=de;return Y["/"]==null&&(Y["/"]=de),x.$$p=null,p=d(arguments),m=N(p),m=U(m),p.length>0&&(E=p.shift()),E==null&&(E=Y["/"]),T=m.$$smap.chomp,T==null&&(T=!1),je=w(re,"each_line",[E,Q(["chomp"],{chomp:T})],c.$to_proc()),q(c)?re:je.$to_a()},-1),l(W,"$ljust",function(f,o){var c=this;if(o==null&&(o=" "),f=t(f,k("Integer"),"to_int"),o=t(o,k("String"),"to_str").$to_s(),q(o["$empty?"]())&&j.$raise(k("ArgumentError"),"zero width padding"),q(f<=c.length))return c;var p=-1,m="";for(f-=c.length;++p<f;)m+=o;return c+m.slice(0,f)},-2),l(W,"$lstrip",function(){var f=this;return f.replace(/^[\u0000\s]*/,"")}),l(W,"$ascii_only?",function(){var f=this;return f.encoding.ascii?/^[\x00-\x7F]*$/.test(f):!1}),l(W,"$match",function x(f,o){var c=x.$$p||de,p=this;return x.$$p=null,(O(fe("String"),f)||q(f["$respond_to?"]("to_str")))&&(f=k("Regexp").$new(f.$to_str())),O(k("Regexp"),f)||j.$raise(k("TypeError"),"wrong argument type "+f.$class()+" (expected Regexp)"),w(f,"match",[p,o],c.$to_proc())},-2),l(W,"$match?",function(f,o){var c=this;return(O(fe("String"),f)||q(f["$respond_to?"]("to_str")))&&(f=k("Regexp").$new(f.$to_str())),O(k("Regexp"),f)||j.$raise(k("TypeError"),"wrong argument type "+f.$class()+" (expected Regexp)"),f["$match?"](c,o)},-2),l(W,"$next",function(){var f=this,o=f.length;if(o===0)return"";for(var c=f,p=f.search(/[a-zA-Z0-9]/),m=!1,E;o--;){if(E=f.charCodeAt(o),E>=48&&E<=57||E>=65&&E<=90||E>=97&&E<=122)switch(E){case 57:m=!0,E=48;break;case 90:m=!0,E=65;break;case 122:m=!0,E=97;break;default:m=!1,E+=1}else p===-1?E===255?(m=!0,E=0):(m=!1,E+=1):m=!0;if(c=c.slice(0,o)+String.fromCharCode(E)+c.slice(o+1),m&&(o===0||o===p)){switch(E){case 65:break;case 97:break;default:E+=1}o===0?c=String.fromCharCode(E)+c:c=c.slice(0,o)+String.fromCharCode(E)+c.slice(o),m=!1}if(!m)break}return c}),l(W,"$oct",function(){var f=this,o,c=f,p=8;return/^\s*_/.test(c)?0:(c=c.replace(/^(\s*[+-]?)(0[bodx]?)(.+)$/i,function(m,E,T,re){switch(re.charAt(0)){case"+":case"-":return m;case"0":if(re.charAt(1)==="x"&&T==="0x")return m}switch(T){case"0b":p=2;break;case"0":case"0o":p=8;break;case"0d":p=10;break;case"0x":p=16;break}return E+re}),o=parseInt(c.replace(/_(?!_)/g,""),p),isNaN(o)?0:o)}),l(W,"$ord",function(){var f=this;return typeof f.codePointAt=="function"?f.codePointAt(0):f.charCodeAt(0)}),l(W,"$partition",function(f){var o=this,c,p;return f.$$is_regexp?(p=f.exec(o),p===null?c=-1:(k("MatchData").$new(f,p),f=p[0],c=p.index)):(f=t(f,k("String"),"to_str"),c=o.indexOf(f)),c===-1?[o,"",""]:[o.slice(0,c),o.slice(c,c+f.length),o.slice(c+f.length)]}),l(W,"$reverse",function(){var f=this;return f.split("").reverse().join("")}),l(W,"$rindex",function(f,o){var c=this,p,m,E,T;if(o===void 0)o=c.length;else if(o=t(o,k("Integer"),"to_int"),o<0&&(o+=c.length,o<0))return de;if(f.$$is_regexp){for(m=null,E=n(f);T=E.exec(c),!(T===null||T.index>o);)m=T,E.lastIndex=m.index+1;m===null?(Y["~"]=de,p=-1):(k("MatchData").$new(E,m),p=m.index)}else f=t(f,k("String"),"to_str"),p=c.lastIndexOf(f,o);return p===-1?de:p},-2),l(W,"$rjust",function(f,o){var c=this;if(o==null&&(o=" "),f=t(f,k("Integer"),"to_int"),o=t(o,k("String"),"to_str").$to_s(),q(o["$empty?"]())&&j.$raise(k("ArgumentError"),"zero width padding"),q(f<=c.length))return c;var p=Math.floor(f-c.length),m=Math.floor(p/o.length),E=Array(m+1).join(o),T=p-E.length;return E+o.slice(0,T)+c},-2),l(W,"$rpartition",function(f){var o=this,c,p,m,E;if(f.$$is_regexp){for(p=null,m=n(f);E=m.exec(o),E!==null;)p=E,m.lastIndex=p.index+1;p===null?c=-1:(k("MatchData").$new(m,p),f=p[0],c=p.index)}else f=t(f,k("String"),"to_str"),c=o.lastIndexOf(f);return c===-1?["","",o]:[o.slice(0,c),o.slice(c,c+f.length),o.slice(c+f.length)]}),l(W,"$rstrip",function(){var f=this;return f.replace(/[\s\u0000]*$/,"")}),l(W,"$scan",function x(f,o){var c=x.$$p||de,p,m=this;x.$$p=null,o=U(o),p=o.$$smap.no_matchdata,p==null&&(p=!1);var E=[],T=de,re;for(f.$$is_regexp?f=n(f):(f=t(f,k("String"),"to_str"),f=new RegExp(f.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),"gm"));(re=f.exec(m))!=null;)T=k("MatchData").$new(f,re,Q(["no_matchdata"],{no_matchdata:p})),c===de?re.length==1?E.push(re[0]):E.push(T.$captures()):re.length==1?e.yield1(c,re[0]):e.yield1(c,T.$captures()),f.lastIndex===re.index&&(f.lastIndex+=1);return p||(Y["~"]=T),c!==de?m:E},-2),l(W,"$singleton_class",function(){var f=this;return e.get_singleton_class(f)}),l(W,"$split",function(f,o){var c=this,p=de;if(Y[";"]==null&&(Y[";"]=de),c.length===0)return[];if(o===void 0)o=0;else if(o=$["$coerce_to!"](o,k("Integer"),"to_int"),o===1)return[c];(f===void 0||f===de)&&(f=q(p=Y[";"])?p:" ");var m=[],E=c.toString(),T=0,re,je,nt;if(f.$$is_regexp?f=n(f):(f=t(f,k("String"),"to_str").$to_s(),f===" "?(f=/\s+/gm,E=E.replace(/^\s+/,"")):f=new RegExp(f.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),"gm")),m=E.split(f),m.length===1&&m[0]===E)return[m[0]];for(;(je=m.indexOf(void 0))!==-1;)m.splice(je,1);if(o===0){for(;m[m.length-1]==="";)m.length-=1;return m}if(re=f.exec(E),o<0){if(re!==null&&re[0]===""&&f.source.indexOf("(?=")===-1)for(je=0,nt=re.length;je<nt;je++)m.push("");return m}if(re!==null&&re[0]==="")return m.splice(o-1,m.length-1,m.slice(o-1).join("")),m;if(o>=m.length)return m;for(je=0;re!==null&&(je++,T=f.lastIndex,je+1!==o);)re=f.exec(E);return m.splice(o-1,m.length-1,E.slice(T)),m},-1),l(W,"$squeeze",function(f){var o,c,p=this;if(o=d(arguments),c=o,c.length===0)return p.replace(/(.)\1+/g,"$1");var m=V(c);return m===null?p:p.replace(new RegExp("("+m+")\\1+","g"),"$1")},-1),l(W,"$start_with?",function(f){var o,c,p=this;o=d(arguments),c=o;for(var m=0,E=c.length;m<E;m++)if(c[m].$$is_regexp){var T=c[m],re=T.exec(p);if(re!=null&&re.index===0)return Y["~"]=k("MatchData").$new(T,re),!0;Y["~"]=de}else{var je=t(c[m],k("String"),"to_str").$to_s();if(p.indexOf(je)===0)return!0}return!1},-1),l(W,"$strip",function(){var f=this;return f.replace(/^[\s\u0000]*|[\s\u0000]*$/g,"")}),l(W,"$sub",function x(f,o){var c=x.$$p||de,p=this;x.$$p=null,f.$$is_regexp||(f=t(f,k("String"),"to_str"),f=new RegExp(f.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")));var m,E=f.exec(p);return E===null?(Y["~"]=de,m=p.toString()):(k("MatchData").$new(f,E),o===void 0?(c===de&&j.$raise(k("ArgumentError"),"wrong number of arguments (1 for 2)"),m=p.slice(0,E.index)+c(E[0])+p.slice(E.index+E[0].length)):o.$$is_hash?m=p.slice(0,E.index)+o["$[]"](E[0]).$to_s()+p.slice(E.index+E[0].length):(o=t(o,k("String"),"to_str"),o=o.replace(/([\\]+)([0-9+&`'])/g,function(T,re,je){if(re.length%2===0)return T;switch(je){case"+":for(var nt=E.length-1;nt>0;nt--)if(E[nt]!==void 0)return re.slice(1)+E[nt];return"";case"&":return re.slice(1)+E[0];case"`":return re.slice(1)+p.slice(0,E.index);case"'":return re.slice(1)+p.slice(E.index+E[0].length);default:return re.slice(1)+(E[je]||"")}}).replace(/\\\\/g,"\\"),m=p.slice(0,E.index)+o+p.slice(E.index+E[0].length))),m},-2),l(W,"$sum",function(f){var o=this;f==null&&(f=16),f=t(f,k("Integer"),"to_int");for(var c=0,p=o.length,m=0;m<p;m++)c+=o.charCodeAt(m);return f<=0?c:c&Math.pow(2,f)-1},-1),l(W,"$swapcase",function(){var f=this,o=f.replace(/([a-z]+)|([A-Z]+)/g,function(c,p,m){return p?c.toUpperCase():c.toLowerCase()});return o}),l(W,"$to_f",function(){var f=this;if(f.charAt(0)==="_")return 0;var o=parseFloat(f.replace(/_/g,""));return isNaN(o)||o==1/0||o==-1/0?0:o}),l(W,"$to_i",function(f){var o=this;f==null&&(f=10);var c,p=o.toLowerCase(),m=t(f,k("Integer"),"to_int");return(m===1||m<0||m>36)&&j.$raise(k("ArgumentError"),"invalid radix "+m),/^\s*_/.test(p)?0:(p=p.replace(/^(\s*[+-]?)(0[bodx]?)(.+)$/,function(E,T,re,je){switch(je.charAt(0)){case"+":case"-":return E;case"0":if(je.charAt(1)==="x"&&re==="0x"&&(m===0||m===16))return E}switch(re){case"0b":if(m===0||m===2)return m=2,T+je;break;case"0":case"0o":if(m===0||m===8)return m=8,T+je;break;case"0d":if(m===0||m===10)return m=10,T+je;break;case"0x":if(m===0||m===16)return m=16,T+je;break}return E}),c=parseInt(p.replace(/_(?!_)/g,""),m),isNaN(c)?0:c)},-1),l(W,"$to_proc",function x(){x.$$p;var f=this,o=de,c=de,p=de;return x.$$p=null,o=f.valueOf(),c=e.jsid(o),p=w(j,"proc",[],function m(E){var T=m.$$p||de,re,je;m.$$p=null,re=d(arguments),je=re,je.length===0&&j.$raise(k("ArgumentError"),"no receiver given");var nt=je[0];nt==null&&(nt=de);var ft=nt[c];return ft?je=je.slice(1):(ft=nt.$method_missing,je[0]=o),typeof T=="function"&&(ft.$$p=T),je.length===0?ft.call(nt):ft.apply(nt,je)},-1),p.$$source_location=de,p}),l(W,"$to_s",function(){var f=this;return f.toString()}),l(W,"$tr",function(f,o){var c=this;if(f=t(f,k("String"),"to_str").$to_s(),o=t(o,k("String"),"to_str").$to_s(),f.length==0||f===o)return c;var p,m,E,T,re,je,nt,ft={},yt=f.split(""),zt=yt.length,_t=o.split(""),vt=_t.length,mt=!1,xt=null;yt[0]==="^"&&yt.length>1&&(mt=!0,yt.shift(),xt=_t[vt-1],zt-=1);var St=[],Oe=null;for(m=!1,p=0;p<zt;p++)if(T=yt[p],Oe==null)Oe=T,St.push(T);else if(T==="-")Oe==="-"?(St.push("-"),St.push("-")):p==zt-1?St.push("-"):m=!0;else if(m){for(re=Oe.charCodeAt(0),je=T.charCodeAt(0),re>je&&j.$raise(k("ArgumentError"),'invalid range "'+String.fromCharCode(re)+"-"+String.fromCharCode(je)+'" in string transliteration'),E=re+1;E<je;E++)St.push(String.fromCharCode(E));St.push(T),m=null,Oe=null}else St.push(T);if(yt=St,zt=yt.length,mt)for(p=0;p<zt;p++)ft[yt[p]]=!0;else{if(vt>0){var ze=[],De=null;for(m=!1,p=0;p<vt;p++)if(T=_t[p],De==null)De=T,ze.push(T);else if(T==="-")De==="-"?(ze.push("-"),ze.push("-")):p==vt-1?ze.push("-"):m=!0;else if(m){for(re=De.charCodeAt(0),je=T.charCodeAt(0),re>je&&j.$raise(k("ArgumentError"),'invalid range "'+String.fromCharCode(re)+"-"+String.fromCharCode(je)+'" in string transliteration'),E=re+1;E<je;E++)ze.push(String.fromCharCode(E));ze.push(T),m=null,De=null}else ze.push(T);_t=ze,vt=_t.length}var Ge=zt-vt;if(Ge>0){var v=vt>0?_t[vt-1]:"";for(p=0;p<Ge;p++)_t.push(v)}for(p=0;p<zt;p++)ft[yt[p]]=_t[p]}var M="";for(p=0,nt=c.length;p<nt;p++){T=c.charAt(p);var xe=ft[T];mt?M+=xe==null?xt:T:M+=xe??T}return M}),l(W,"$tr_s",function(f,o){var c=this;if(f=t(f,k("String"),"to_str").$to_s(),o=t(o,k("String"),"to_str").$to_s(),f.length==0)return c;var p,m,E,T,re,je,nt,ft={},yt=f.split(""),zt=yt.length,_t=o.split(""),vt=_t.length,mt=!1,xt=null;yt[0]==="^"&&yt.length>1&&(mt=!0,yt.shift(),xt=_t[vt-1],zt-=1);var St=[],Oe=null;for(m=!1,p=0;p<zt;p++)if(T=yt[p],Oe==null)Oe=T,St.push(T);else if(T==="-")Oe==="-"?(St.push("-"),St.push("-")):p==zt-1?St.push("-"):m=!0;else if(m){for(re=Oe.charCodeAt(0),je=T.charCodeAt(0),re>je&&j.$raise(k("ArgumentError"),'invalid range "'+String.fromCharCode(re)+"-"+String.fromCharCode(je)+'" in string transliteration'),E=re+1;E<je;E++)St.push(String.fromCharCode(E));St.push(T),m=null,Oe=null}else St.push(T);if(yt=St,zt=yt.length,mt)for(p=0;p<zt;p++)ft[yt[p]]=!0;else{if(vt>0){var ze=[],De=null;for(m=!1,p=0;p<vt;p++)if(T=_t[p],Oe==null)Oe=T,ze.push(T);else if(T==="-")De==="-"?(ze.push("-"),ze.push("-")):p==vt-1?ze.push("-"):m=!0;else if(m){for(re=Oe.charCodeAt(0),je=T.charCodeAt(0),re>je&&j.$raise(k("ArgumentError"),'invalid range "'+String.fromCharCode(re)+"-"+String.fromCharCode(je)+'" in string transliteration'),E=re+1;E<je;E++)ze.push(String.fromCharCode(E));ze.push(T),m=null,Oe=null}else ze.push(T);_t=ze,vt=_t.length}var Ge=zt-vt;if(Ge>0){var v=vt>0?_t[vt-1]:"";for(p=0;p<Ge;p++)_t.push(v)}for(p=0;p<zt;p++)ft[yt[p]]=_t[p]}var M="",xe=null;for(p=0,nt=c.length;p<nt;p++){T=c.charAt(p);var Me=ft[T];mt?Me==null?xe==null&&(M+=xt,xe=!0):(M+=T,xe=null):Me!=null?(xe==null||xe!==Me)&&(M+=Me,xe=Me):(M+=T,xe=null)}return M}),l(W,"$upcase",function(){var f=this;return f.toUpperCase()}),l(W,"$upto",function x(f,o){var c=x.$$p||de,p=this;if(x.$$p=null,o==null&&(o=!1),c===de)return p.$enum_for("upto",f,o);var m,E,T=p.toString();if(f=t(f,k("String"),"to_str"),T.length===1&&f.length===1)for(m=T.charCodeAt(0),E=f.charCodeAt(0);m<=E&&!(o&&m===E);)c(String.fromCharCode(m)),m+=1;else if(parseInt(T,10).toString()===T&&parseInt(f,10).toString()===f)for(m=parseInt(T,10),E=parseInt(f,10);m<=E&&!(o&&m===E);)c(m.toString()),m+=1;else for(;T.length<=f.length&&T<=f&&!(o&&T===f);)c(T),T=T.$succ();return p},-2);function V(x){function f(ft){var yt="",zt,_t=ft.length,vt,mt,xt,St,Oe;for(zt=0;zt<_t;zt++)if(vt=ft.charAt(zt),vt==="-"&&zt>0&&zt<_t-1&&!mt){for(xt=ft.charCodeAt(zt-1),St=ft.charCodeAt(zt+1),xt>St&&j.$raise(k("ArgumentError"),'invalid range "'+xt+"-"+St+'" in string transliteration'),Oe=xt+1;Oe<St+1;Oe++)yt+=String.fromCharCode(Oe);mt=!0,zt++}else mt=vt==="\\",yt+=vt;return yt}function o(ft,yt){if(ft.length===0)return yt;var zt="",_t,vt=ft.length,mt;for(_t=0;_t<vt;_t++)mt=ft.charAt(_t),yt.indexOf(mt)!==-1&&(zt+=mt);return zt}var c,p,m,E,T,re,je="",nt="";for(c=0,p=x.length;c<p;c++)m=t(x[c],k("String"),"to_str"),E=m.charAt(0)==="^"&&m.length>1,m=f(E?m.slice(1):m),E?nt=o(nt,m):je=o(je,m);if(je.length>0&&nt.length>0){for(re="",c=0,p=je.length;c<p;c++)T=je.charAt(c),nt.indexOf(T)===-1&&(re+=T);je=re,nt=""}return je.length>0?"["+k("Regexp").$escape(je)+"]":nt.length>0?"[^"+k("Regexp").$escape(nt)+"]":null}return l(W,"$instance_variables",function(){return[]}),h(W,"$_load",function(f){var o,c,p=this;return o=d(arguments),c=o,w(p,"new",A(c))},-1),l(W,"$unicode_normalize",function(f){var o=this;return f==null&&(f="nfc"),q(["nfc","nfd","nfkc","nfkd"]["$include?"](f))||j.$raise(k("ArgumentError"),"Invalid normalization form "+f),o.normalize(f.$upcase())},-1),l(W,"$unicode_normalized?",function(f){var o=this;return f==null&&(f="nfc"),o.$unicode_normalize(f)["$=="](o)},-1),l(W,"$unpack",function(f){return j.$raise("To use String#unpack, you must first require 'corelib/string/unpack'.")}),l(W,"$unpack1",function(f){return j.$raise("To use String#unpack1, you must first require 'corelib/string/unpack'.")}),l(W,"$freeze",function(){var f=this;return typeof f=="string"||i(f,"$$frozen",!0),f}),l(W,"$-@",function(){var f=this;return typeof f=="string"||f.$$frozen?f:f.encoding.name=="UTF-8"&&f.internal_encoding.name=="UTF-8"?f.toString():f.$dup().$freeze()}),l(W,"$frozen?",function(){var f=this;return typeof f=="string"||f.$$frozen===!0}),be(W,"+@","dup"),be(W,"===","=="),be(W,"byteslice","[]"),be(W,"eql?","=="),be(W,"equal?","==="),be(W,"object_id","__id__"),be(W,"slice","[]"),be(W,"succ","next"),be(W,"to_str","to_s"),be(W,"to_sym","intern"),$.$pristine(W,"initialize")}("::",String,te),oe(te[0],"Symbol",Ce("String"))};Opal.modules["corelib/enumerable"]=function(e){var t=e.truthy,r=e.coerce_to,n=e.yield1,i=e.yieldX,s=e.deny_frozen_access,l=e.module,$=e.send,h=e.slice,d=e.to_a,w=e.Opal,A=e.thrower,N=e.def,U=e.Kernel,O=e.return_val,j=e.rb_gt,q=e.rb_times,Y=e.rb_lt,he=e.eqeq,ne=e.rb_plus,_e=e.rb_minus,Q=e.rb_divide,be=e.rb_le,oe=e.hash2,Ee=e.lambda,te=e.not,Ce=e.alias,de=[],k=e.nil,Ae=e.$$$;return e.add_stubs("each,public_send,destructure,to_enum,enumerator_size,new,yield,raise,slice_when,!,enum_for,flatten,map,to_proc,compact,to_a,warn,proc,==,nil?,respond_to?,coerce_to!,>,*,try_convert,<,+,-,ceil,/,size,select,__send__,length,<=,[],push,<<,[]=,===,inspect,<=>,first,reverse,sort,take,sort_by,compare,call,dup,sort!,map!,include?,-@,key?,values,transform_values,group_by,fetch,to_h,coerce_to?,class,zip,detect,find_all,collect_concat,collect,inject,entries"),function(B,pe){var W=l(B,"Enumerable"),Fe=[W].concat(pe),fe=e.$r(Fe);function V(x){return x.length===0&&(x=[k]),x.length>1&&(x=[x]),x}return N(W,"$all?",function x(f){try{var o=A("return"),c=x.$$p||k,p=this;return x.$$p=null,t(f!==void 0)?$(p,"each",[],function(E){var T,re,je=k;if(T=h(arguments),re=T,je=V(re),t($(f,"public_send",["==="].concat(d(je)))))return k;o.$throw(!1)},{$$arity:-1,$$ret:o}):c!==k?$(p,"each",[],function(E){var T,re;if(T=h(arguments),re=T,t(e.yieldX(c,d(re))))return k;o.$throw(!1)},{$$arity:-1,$$ret:o}):$(p,"each",[],function(E){var T,re;if(T=h(arguments),re=T,t(w.$destructure(re)))return k;o.$throw(!1)},{$$arity:-1,$$ret:o}),!0}catch(m){if(m===o)return m.$v;throw m}},-1),N(W,"$any?",function x(f){try{var o=A("return"),c=x.$$p||k,p=this;return x.$$p=null,t(f!==void 0)?$(p,"each",[],function(E){var T,re,je=k;if(T=h(arguments),re=T,je=V(re),t($(f,"public_send",["==="].concat(d(je)))))o.$throw(!0);else return k},{$$arity:-1,$$ret:o}):c!==k?$(p,"each",[],function(E){var T,re;if(T=h(arguments),re=T,t(e.yieldX(c,d(re))))o.$throw(!0);else return k},{$$arity:-1,$$ret:o}):$(p,"each",[],function(E){var T,re;if(T=h(arguments),re=T,t(w.$destructure(re)))o.$throw(!0);else return k},{$$arity:-1,$$ret:o}),!1}catch(m){if(m===o)return m.$v;throw m}},-1),N(W,"$chunk",function x(){var f=x.$$p||k,o=this;return x.$$p=null,f===k?$(o,"to_enum",["chunk"],function c(){var p=c.$$s==null?this:c.$$s;return p.$enumerator_size()},{$$s:o}):$(Ae("Enumerator"),"new",[],function c(p){var m=c.$$s==null?this:c.$$s;p==null&&(p=k);var E=k,T=[];function re(){T.length>0&&p.$yield(E,T)}m.$each.$$p=function(je){var nt=n(f,je);nt===k?(re(),T=[],E=k):(E===k||E===nt?T.push(je):(re(),T=[je]),E=nt)},m.$each(),re()},{$$s:o})}),N(W,"$chunk_while",function x(){var f=x.$$p||k,o=this;return x.$$p=null,f===k&&U.$raise(Ae("ArgumentError"),"no block given"),$(o,"slice_when",[],function(p,m){return p==null&&(p=k),m==null&&(m=k),e.yieldX(f,[p,m])["$!"]()})}),N(W,"$collect",function x(){var f=x.$$p||k,o=this;if(x.$$p=null,f===k)return $(o,"enum_for",["collect"],function p(){var m=p.$$s==null?this:p.$$s;return m.$enumerator_size()},{$$s:o});var c=[];return o.$each.$$p=function(){var p=i(f,arguments);c.push(p)},o.$each(),c}),N(W,"$collect_concat",function x(){var f=x.$$p||k,o=this;return x.$$p=null,f===k?$(o,"enum_for",["collect_concat"],function c(){var p=c.$$s==null?this:c.$$s;return p.$enumerator_size()},{$$s:o}):$(o,"map",[],f.$to_proc()).$flatten(1)}),N(W,"$compact",function(){var f=this;return f.$to_a().$compact()}),N(W,"$count",function x(f){var o=x.$$p||k,c=this,p=k;return x.$$p=null,p=0,f!=null&&o!==k&&c.$warn("warning: given block not used"),t(f!=null)?o=$(U,"proc",[],function(E){var T,re;return T=h(arguments),re=T,w.$destructure(re)["$=="](f)},-1):t(o["$nil?"]())&&(o=$(U,"proc",[],O(!0))),$(c,"each",[],function(E){var T,re;return T=h(arguments),re=T,t(i(o,re))?p++:k},-1),p},-1),N(W,"$cycle",function x(f){var o=x.$$p||k,c=this;if(x.$$p=null,f==null&&(f=k),o===k)return $(c,"enum_for",["cycle",f],function T(){var re=T.$$s==null?this:T.$$s;return t(f["$nil?"]())?t(re["$respond_to?"]("size"))?Ae(Ae("Float"),"INFINITY"):k:(f=w["$coerce_to!"](f,Ae("Integer"),"to_int"),t(j(f,0))?q(re.$enumerator_size(),f):0)},{$$s:c});if(!t(f["$nil?"]())&&(f=w["$coerce_to!"](f,Ae("Integer"),"to_int"),t(f<=0)))return k;var p=[],m,E;if(c.$each.$$p=function(){var T=w.$destructure(arguments);n(o,T),p.push(T)},c.$each(),p.length===0)return k;if(f===k)for(;;)for(m=0,E=p.length;m<E;m++)n(o,p[m]);else for(;f>1;){for(m=0,E=p.length;m<E;m++)n(o,p[m]);f--}},-1),N(W,"$detect",function x(f){try{var o=A("return"),c=x.$$p||k,p=this;return x.$$p=null,c===k?p.$enum_for("detect",f):($(p,"each",[],function(E){var T,re,je=k;if(T=h(arguments),re=T,je=w.$destructure(re),t(e.yield1(c,je)))o.$throw(je);else return k},{$$arity:-1,$$ret:o}),f!==void 0?typeof f=="function"?f():f:k)}catch(m){if(m===o)return m.$v;throw m}},-1),N(W,"$drop",function(f){var o=this;f=r(f,Ae("Integer"),"to_int"),t(f<0)&&U.$raise(Ae("ArgumentError"),"attempt to drop negative size");var c=[],p=0;return o.$each.$$p=function(){f<=p&&c.push(w.$destructure(arguments)),p++},o.$each(),c}),N(W,"$drop_while",function x(){var f=x.$$p||k,o=this;if(x.$$p=null,f===k)return o.$enum_for("drop_while");var c=[],p=!0;return o.$each.$$p=function(){var m=w.$destructure(arguments);if(p){var E=n(f,m);t(E)||(p=!1,c.push(m))}else c.push(m)},o.$each(),c}),N(W,"$each_cons",function x(f){var o=x.$$p||k,c=this;if(x.$$p=null,t(arguments.length!=1)&&U.$raise(Ae("ArgumentError"),"wrong number of arguments ("+arguments.length+" for 1)"),f=w.$try_convert(f,Ae("Integer"),"to_int"),t(f<=0)&&U.$raise(Ae("ArgumentError"),"invalid size"),o===k)return $(c,"enum_for",["each_cons",f],function m(){var E=m.$$s==null?this:m.$$s,T=k;return T=E.$enumerator_size(),t(T["$nil?"]())?k:he(T,0)||t(Y(T,f))?0:ne(_e(T,f),1)},{$$s:c});var p=[];return c.$each.$$p=function(){var m=w.$destructure(arguments);p.push(m),p.length>f&&p.shift(),p.length==f&&n(o,p.slice(0,f))},c.$each(),c}),N(W,"$each_entry",function x(f){var o=x.$$p||k,c,p,m=this;return x.$$p=null,c=h(arguments),p=c,o===k?$(m,"to_enum",["each_entry"].concat(d(p)),function E(){var T=E.$$s==null?this:E.$$s;return T.$enumerator_size()},{$$s:m}):(m.$each.$$p=function(){var E=w.$destructure(arguments);n(o,E)},m.$each.apply(m,p),m)},-1),N(W,"$each_slice",function x(f){var o=x.$$p||k,c=this;if(x.$$p=null,f=r(f,Ae("Integer"),"to_int"),t(f<=0)&&U.$raise(Ae("ArgumentError"),"invalid slice size"),o===k)return $(c,"enum_for",["each_slice",f],function m(){var E=m.$$s==null?this:m.$$s;return t(E["$respond_to?"]("size"))?Q(E.$size(),f).$ceil():k},{$$s:c});var p=[];return c.$each.$$p=function(){var m=w.$destructure(arguments);p.push(m),p.length===f&&(n(o,p),p=[])},c.$each(),p.length>0&&n(o,p),c}),N(W,"$each_with_index",function x(f){var o=x.$$p||k,c,p,m=this;if(x.$$p=null,c=h(arguments),p=c,o===k)return $(m,"enum_for",["each_with_index"].concat(d(p)),function T(){var re=T.$$s==null?this:T.$$s;return re.$enumerator_size()},{$$s:m});var E=0;return m.$each.$$p=function(){var T=w.$destructure(arguments);o(T,E),E++},m.$each.apply(m,p),m},-1),N(W,"$each_with_object",function x(f){var o=x.$$p||k,c=this;return x.$$p=null,o===k?$(c,"enum_for",["each_with_object",f],function p(){var m=p.$$s==null?this:p.$$s;return m.$enumerator_size()},{$$s:c}):(c.$each.$$p=function(){var p=w.$destructure(arguments);o(p,f)},c.$each(),f)}),N(W,"$entries",function(f){var o,c,p=this;o=h(arguments),c=o;var m=[];return p.$each.$$p=function(){m.push(w.$destructure(arguments))},p.$each.apply(p,c),m},-1),N(W,"$filter_map",function x(){var f=x.$$p||k,o=this;return x.$$p=null,f===k?$(o,"enum_for",["filter_map"],function c(){var p=c.$$s==null?this:c.$$s;return p.$enumerator_size()},{$$s:o}):$($(o,"map",[],f.$to_proc()),"select",[],"itself".$to_proc())}),N(W,"$find_all",function x(){var f=x.$$p||k,o=this;if(x.$$p=null,f===k)return $(o,"enum_for",["find_all"],function p(){var m=p.$$s==null?this:p.$$s;return m.$enumerator_size()},{$$s:o});var c=[];return o.$each.$$p=function(){var p=w.$destructure(arguments),m=n(f,p);t(m)&&c.push(p)},o.$each(),c}),N(W,"$find_index",function x(f){try{var o=A("return"),c=x.$$p||k,p=this,m=k;return x.$$p=null,t(f===void 0&&c===k)?p.$enum_for("find_index"):(f!=null&&c!==k&&p.$warn("warning: given block not used"),m=0,t(f!=null)?$(p,"each",[],function(T){var re,je;return re=h(arguments),je=re,he(w.$destructure(je),f)&&o.$throw(m),m+=1},{$$arity:-1,$$ret:o}):$(p,"each",[],function(T){var re,je;return re=h(arguments),je=re,t(e.yieldX(c,d(je)))&&o.$throw(m),m+=1},{$$arity:-1,$$ret:o}),k)}catch(E){if(E===o)return E.$v;throw E}},-1),N(W,"$first",function(f){try{var o=A("return"),c=this,p=k,m=k;return t(f===void 0)?$(c,"each",[],function(T){T==null&&(T=k),o.$throw(T)},{$$ret:o}):(p=[],f=r(f,Ae("Integer"),"to_int"),t(f<0)&&U.$raise(Ae("ArgumentError"),"attempt to take negative size"),t(f==0)?[]:(m=0,$(c,"each",[],function(T){var re,je;if(re=h(arguments),je=re,p.push(w.$destructure(je)),t(f<=++m))o.$throw(p);else return k},{$$arity:-1,$$ret:o}),p))}catch(E){if(E===o)return E.$v;throw E}},-1),N(W,"$grep",function x(f){var o=x.$$p||k,c=this,p=k;return x.$$p=null,p=[],$(c,"each",[],function(E){var T,re,je=k;return T=h(arguments),re=T,je=V(re),t($(f,"__send__",["==="].concat(d(je))))?(o!==k?(t(j(re.$length(),1))&&(re=[re]),re=e.yieldX(o,d(re))):t(be(re.$length(),1))&&(re=re["$[]"](0)),p.$push(re)):k},-1),p}),N(W,"$grep_v",function x(f){var o=x.$$p||k,c=this,p=k;return x.$$p=null,p=[],$(c,"each",[],function(E){var T,re,je=k;return T=h(arguments),re=T,je=V(re),t($(f,"__send__",["==="].concat(d(je))))?k:(o!==k?(t(j(re.$length(),1))&&(re=[re]),re=e.yieldX(o,d(re))):t(be(re.$length(),1))&&(re=re["$[]"](0)),p.$push(re))},-1),p}),N(W,"$group_by",function x(){var f=x.$$p||k,o,c=this,p=k,m=k;return x.$$p=null,f===k?$(c,"enum_for",["group_by"],function E(){var T=E.$$s==null?this:E.$$s;return T.$enumerator_size()},{$$s:c}):(p=oe([],{}),c.$each.$$p=function(){var E=w.$destructure(arguments),T=n(f,E);(t(m=p["$[]"](T))?m:(o=[T,[]],$(p,"[]=",o),o[o.length-1]))["$<<"](E)},c.$each(),p)}),N(W,"$include?",function(f){try{var o=A("return"),c=this;return $(c,"each",[],function(m){var E,T;if(E=h(arguments),T=E,he(w.$destructure(T),f))o.$throw(!0);else return k},{$$arity:-1,$$ret:o}),!1}catch(p){if(p===o)return p.$v;throw p}}),N(W,"$inject",function x(f,o){var c=x.$$p||k,p=this;x.$$p=null;var m=f;return c!==k&&o===void 0?p.$each.$$p=function(){var E=w.$destructure(arguments);if(m===void 0){m=E;return}E=i(c,[m,E]),m=E}:(o===void 0&&(Ae("Symbol")["$==="](f)||U.$raise(Ae("TypeError"),""+f.$inspect()+" is not a Symbol"),o=f,m=void 0),p.$each.$$p=function(){var E=w.$destructure(arguments);if(m===void 0){m=E;return}m=m.$__send__(o,E)}),p.$each(),m??k},-1),N(W,"$lazy",function(){var f=this;return $(Ae(Ae("Enumerator"),"Lazy"),"new",[f,f.$enumerator_size()],function(c,p){var m,E;return c==null&&(c=k),m=h(arguments,1),E=m,$(c,"yield",d(E))},-2)}),N(W,"$enumerator_size",function(){var f=this;return t(f["$respond_to?"]("size"))?f.$size():k}),N(W,"$max",function x(f){var o=x.$$p||k,c=this;if(x.$$p=null,f===void 0||f===k){var p,m;return c.$each.$$p=function(){var E=w.$destructure(arguments);if(p===void 0){p=E;return}o!==k?m=i(o,[E,p]):m=E["$<=>"](p),m===k&&U.$raise(Ae("ArgumentError"),"comparison failed"),m>0&&(p=E)},c.$each(),p===void 0?k:p}return f=r(f,Ae("Integer"),"to_int"),$(c,"sort",[],o.$to_proc()).$reverse().$first(f)},-1),N(W,"$max_by",function x(f){var o=x.$$p||k,c=this;if(x.$$p=null,f==null&&(f=k),!t(o))return $(c,"enum_for",["max_by",f],function E(){var T=E.$$s==null?this:E.$$s;return T.$enumerator_size()},{$$s:c});if(!t(f["$nil?"]()))return $(c,"sort_by",[],o.$to_proc()).$reverse().$take(f);var p,m;return c.$each.$$p=function(){var E=w.$destructure(arguments),T=n(o,E);if(p===void 0){p=E,m=T;return}T["$<=>"](m)>0&&(p=E,m=T)},c.$each(),p===void 0?k:p},-1),N(W,"$min",function x(f){var o=x.$$p||k,c=this;if(x.$$p=null,f==null&&(f=k),!t(f["$nil?"]()))return o!==k?$(c,"sort",[],function(E,T){return E==null&&(E=k),T==null&&(T=k),e.yieldX(o,[E,T])}).$take(f):c.$sort().$take(f);var p;return o!==k?c.$each.$$p=function(){var m=w.$destructure(arguments);if(p===void 0){p=m;return}var E=o(m,p);E===k&&U.$raise(Ae("ArgumentError"),"comparison failed"),E<0&&(p=m)}:c.$each.$$p=function(){var m=w.$destructure(arguments);if(p===void 0){p=m;return}w.$compare(m,p)<0&&(p=m)},c.$each(),p===void 0?k:p},-1),N(W,"$min_by",function x(f){var o=x.$$p||k,c=this;if(x.$$p=null,f==null&&(f=k),!t(o))return $(c,"enum_for",["min_by",f],function E(){var T=E.$$s==null?this:E.$$s;return T.$enumerator_size()},{$$s:c});if(!t(f["$nil?"]()))return $(c,"sort_by",[],o.$to_proc()).$take(f);var p,m;return c.$each.$$p=function(){var E=w.$destructure(arguments),T=n(o,E);if(p===void 0){p=E,m=T;return}T["$<=>"](m)<0&&(p=E,m=T)},c.$each(),p===void 0?k:p},-1),N(W,"$minmax",function x(){var f=x.$$p||k,o=this,c=k;x.$$p=null,f=t(c=f)?c:$(U,"proc",[],function(re,je){return re==null&&(re=k),je==null&&(je=k),re["$<=>"](je)});var p=k,m=k,E=!0;return o.$each.$$p=function(){var T=w.$destructure(arguments);if(E)p=m=T,E=!1;else{var re=f.$call(p,T);re===k?U.$raise(Ae("ArgumentError"),"comparison failed"):re>0&&(p=T);var je=f.$call(m,T);je===k?U.$raise(Ae("ArgumentError"),"comparison failed"):je<0&&(m=T)}},o.$each(),[p,m]}),N(W,"$minmax_by",function x(){var f=x.$$p||k,o=this;if(x.$$p=null,!t(f))return $(o,"enum_for",["minmax_by"],function T(){var re=T.$$s==null?this:T.$$s;return re.$enumerator_size()},{$$s:o});var c=k,p=k,m,E;return o.$each.$$p=function(){var T=w.$destructure(arguments),re=n(f,T);(m===void 0||re["$<=>"](m)<0)&&(c=T,m=re),(E===void 0||re["$<=>"](E)>0)&&(p=T,E=re)},o.$each(),[c,p]}),N(W,"$none?",function x(f){try{var o=A("return"),c=x.$$p||k,p=this;return x.$$p=null,t(f!==void 0)?$(p,"each",[],function(E){var T,re,je=k;if(T=h(arguments),re=T,je=V(re),t($(f,"public_send",["==="].concat(d(je)))))o.$throw(!1);else return k},{$$arity:-1,$$ret:o}):c!==k?$(p,"each",[],function(E){var T,re;if(T=h(arguments),re=T,t(e.yieldX(c,d(re))))o.$throw(!1);else return k},{$$arity:-1,$$ret:o}):$(p,"each",[],function(E){var T,re,je=k;if(T=h(arguments),re=T,je=w.$destructure(re),t(je))o.$throw(!1);else return k},{$$arity:-1,$$ret:o}),!0}catch(m){if(m===o)return m.$v;throw m}},-1),N(W,"$one?",function x(f){try{var o=A("return"),c=x.$$p||k,p=this,m=k;return x.$$p=null,m=0,t(f!==void 0)?$(p,"each",[],function(T){var re,je,nt=k;if(re=h(arguments),je=re,nt=V(je),t($(f,"public_send",["==="].concat(d(nt)))))if(m=ne(m,1),t(j(m,1)))o.$throw(!1);else return k;else return k},{$$arity:-1,$$ret:o}):c!==k?$(p,"each",[],function(T){var re,je;if(re=h(arguments),je=re,!t(e.yieldX(c,d(je))))return k;if(m=ne(m,1),t(j(m,1)))o.$throw(!1);else return k},{$$arity:-1,$$ret:o}):$(p,"each",[],function(T){var re,je;if(re=h(arguments),je=re,!t(w.$destructure(je)))return k;if(m=ne(m,1),t(j(m,1)))o.$throw(!1);else return k},{$$arity:-1,$$ret:o}),m["$=="](1)}catch(E){if(E===o)return E.$v;throw E}},-1),N(W,"$partition",function x(){var f=x.$$p||k,o=this;if(x.$$p=null,f===k)return $(o,"enum_for",["partition"],function m(){var E=m.$$s==null?this:m.$$s;return E.$enumerator_size()},{$$s:o});var c=[],p=[];return o.$each.$$p=function(){var m=w.$destructure(arguments),E=n(f,m);t(E)?c.push(m):p.push(m)},o.$each(),[c,p]}),N(W,"$reject",function x(){var f=x.$$p||k,o=this;if(x.$$p=null,f===k)return $(o,"enum_for",["reject"],function p(){var m=p.$$s==null?this:p.$$s;return m.$enumerator_size()},{$$s:o});var c=[];return o.$each.$$p=function(){var p=w.$destructure(arguments),m=n(f,p);t(m)||c.push(p)},o.$each(),c}),N(W,"$reverse_each",function x(){var f=x.$$p||k,o=this;if(x.$$p=null,f===k)return $(o,"enum_for",["reverse_each"],function m(){var E=m.$$s==null?this:m.$$s;return E.$enumerator_size()},{$$s:o});var c=[];o.$each.$$p=function(){c.push(arguments)},o.$each();for(var p=c.length-1;p>=0;p--)i(f,c[p]);return c}),N(W,"$slice_before",function x(f){var o=x.$$p||k,c=this;return x.$$p=null,t(f===void 0&&o===k)&&U.$raise(Ae("ArgumentError"),"both pattern and block are given"),t(f!==void 0&&o!==k||arguments.length>1)&&U.$raise(Ae("ArgumentError"),"wrong number of arguments ("+arguments.length+" expected 1)"),$(Ae("Enumerator"),"new",[],function p(m){var E=p.$$s==null?this:p.$$s;m==null&&(m=k);var T=[];o!==k?f===void 0?E.$each.$$p=function(){var re=w.$destructure(arguments),je=n(o,re);t(je)&&T.length>0&&(m["$<<"](T),T=[]),T.push(re)}:E.$each.$$p=function(){var re=w.$destructure(arguments),je=o(re,f.$dup());t(je)&&T.length>0&&(m["$<<"](T),T=[]),T.push(re)}:E.$each.$$p=function(){var re=w.$destructure(arguments),je=f["$==="](re);t(je)&&T.length>0&&(m["$<<"](T),T=[]),T.push(re)},E.$each(),T.length>0&&m["$<<"](T)},{$$s:c})},-1),N(W,"$slice_after",function x(f){var o=x.$$p||k,c=this;return x.$$p=null,t(f===void 0&&o===k)&&U.$raise(Ae("ArgumentError"),"both pattern and block are given"),t(f!==void 0&&o!==k||arguments.length>1)&&U.$raise(Ae("ArgumentError"),"wrong number of arguments ("+arguments.length+" expected 1)"),t(f!==void 0)&&(o=$(U,"proc",[],function(m){return m==null&&(m=k),f["$==="](m)})),$(Ae("Enumerator"),"new",[],function p(m){var E=p.$$s==null?this:p.$$s;m==null&&(m=k);var T;E.$each.$$p=function(){var re=w.$destructure(arguments),je=n(o,re);T==null&&(T=[]),t(je)?(T.push(re),m.$yield(T),T=null):T.push(re)},E.$each(),T!=null&&m.$yield(T)},{$$s:c})},-1),N(W,"$slice_when",function x(){var f=x.$$p||k,o=this;return x.$$p=null,f===k&&U.$raise(Ae("ArgumentError"),"wrong number of arguments (0 for 1)"),$(Ae("Enumerator"),"new",[],function c(p){var m=c.$$s==null?this:c.$$s;p==null&&(p=k);var E=k,T=k;m.$each_cons.$$p=function(){var re=w.$destructure(arguments),je=re[0],nt=re[1],ft=i(f,[je,nt]);T=nt,E===k&&(E=[]),t(ft)?(E.push(je),p.$yield(E),E=[]):E.push(je)},m.$each_cons(2),E!==k&&(E.push(T),p.$yield(E))},{$$s:o})}),N(W,"$sort",function x(){var f=x.$$p||k,o=this,c=k;return x.$$p=null,c=o.$to_a(),f===k&&(f=Ee(function(m,E){return m==null&&(m=k),E==null&&(E=k),m["$<=>"](E)})),$(c,"sort",[],f.$to_proc())}),N(W,"$sort_by",function x(){var f=x.$$p||k,o=this,c=k;return x.$$p=null,f===k?$(o,"enum_for",["sort_by"],function p(){var m=p.$$s==null?this:p.$$s;return m.$enumerator_size()},{$$s:o}):(c=$(o,"map",[],function(){var m=k;return m=w.$destructure(arguments),[e.yield1(f,m),m]}),$(c,"sort!",[],function(m,E){return m==null&&(m=k),E==null&&(E=k),m[0]["$<=>"](E[0])}),$(c,"map!",[],function(m){return m==null&&(m=k),m[1]}))}),N(W,"$sum",function x(f){var o=x.$$p||k,c=this,p=k,m=k;return x.$$p=null,f==null&&(f=0),p=f,m=0,$(c,"each",[],function(T){var re,je,nt=k,ft=k,yt=k;return re=h(arguments),je=re,nt=o!==k?e.yieldX(o,d(je)):w.$destructure(je),te([Ae(Ae("Float"),"INFINITY"),Ae(Ae("Float"),"INFINITY")["$-@"]()]["$include?"](nt))&&t(nt["$respond_to?"]("-"))?(ft=_e(nt,m),yt=ne(p,ft),m=_e(_e(yt,p),ft),p=yt):p=ne(p,nt)},-1),p},-1),N(W,"$take",function(f){var o=this;return o.$first(f)}),N(W,"$take_while",function x(){try{var f=A("return"),o=x.$$p||k,c=this,p=k;return x.$$p=null,t(o)?(p=[],$(c,"each",[],function(E){var T,re,je=k;return T=h(arguments),re=T,je=w.$destructure(re),t(e.yield1(o,je))||f.$throw(p),p.push(je)},{$$arity:-1,$$ret:f})):c.$enum_for("take_while")}catch(m){if(m===f)return m.$v;throw m}}),N(W,"$uniq",function x(){var f=x.$$p||k,o=this,c=k;return x.$$p=null,c=oe([],{}),$(o,"each",[],function(m){var E,T,re,je=k,nt=k;return E=h(arguments),T=E,je=w.$destructure(T),nt=f!==k?e.yield1(f,je):je,t(c["$key?"](nt))?k:(re=[nt,je],$(c,"[]=",re),re[re.length-1])},-1),c.$values()}),N(W,"$tally",function(f){var o=this,c=k;return f&&f!==k&&s(f),c=$($(o,"group_by",[],"itself".$to_proc()),"transform_values",[],"count".$to_proc()),t(f)?($(c,"each",[],function(m,E){var T;return m==null&&(m=k),E==null&&(E=k),T=[m,ne(f.$fetch(m,0),E)],$(f,"[]=",T),T[T.length-1]}),f):c},-1),N(W,"$to_h",function x(f){var o=x.$$p||k,c,p,m=this;if(x.$$p=null,c=h(arguments),p=c,o!==k)return $($(m,"map",[],o.$to_proc()),"to_h",d(p));var E=oe([],{});return m.$each.$$p=function(){var T=w.$destructure(arguments),re=w["$coerce_to?"](T,Ae("Array"),"to_ary"),je,nt;re.$$is_array||U.$raise(Ae("TypeError"),"wrong element type "+re.$class()+" (expected array)"),re.length!==2&&U.$raise(Ae("ArgumentError"),"wrong array length (expected 2, was "+re.$length()+")"),je=re[0],nt=re[1],e.hash_put(E,je,nt)},m.$each.apply(m,p),E},-1),N(W,"$to_set",function x(f,o){var c=x.$$p||k,p,m,E,T=this;return x.$$p=null,p=h(arguments),p.length>0&&(m=p.shift()),m==null&&(m=fe("Set")),E=p,$(m,"new",[T].concat(d(E)),c.$to_proc())},-1),N(W,"$zip",function x(f){x.$$p;var o,c,p=this;return x.$$p=null,o=h(arguments),c=o,$(p.$to_a(),"zip",d(c))},-1),Ce(W,"find","detect"),Ce(W,"filter","find_all"),Ce(W,"flat_map","collect_concat"),Ce(W,"map","collect"),Ce(W,"member?","include?"),Ce(W,"reduce","inject"),Ce(W,"select","find_all"),Ce(W,"to_a","entries")}("::",de)};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,l=e.def,$=e.rb_gt,h=e.rb_lt,d=e.rb_le,w=e.rb_ge,A=e.rb_plus,N=e.rb_minus,U=e.eqeqeq,O=e.not,j=e.rb_times,q=e.rb_divide,Y=e.alias,he=[],ne=e.nil,_e=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(Q,be,oe){var Ee=t(Q,be,"Enumerator"),te=[Ee].concat(oe);return function(Ce,de,k){var Ae=t(Ce,de,"ArithmeticSequence"),B=[Ae].concat(k),pe=e.$r(B),W=Ae.$$prototype;W.step_arg2=W.receiver_num=W.step_arg1=W.step=W.range=W.topfx=W.bypfx=W.creation_method=W.skipped_arg=ne,e.prop(Ae.$$prototype,"$$is_arithmetic_seq",!0);var Fe=1/0;return l(Ae,"$initialize",function(V,x,f){var o,c=this,p=ne;return f==null&&(f="step"),c.creation_method=f,r(V["$is_a?"](_e("Array")))?(o=[].concat(n(V)),c.step_arg1=o[0]==null?ne:o[0],c.step_arg2=o[1]==null?ne:o[1],c.topfx=o[2]==null?ne:o[2],c.bypfx=o[3]==null?ne:o[3],c.receiver_num=x,c.step=1,c.range=r(c.step_arg2)?(c.step=c.step_arg2,e.Range.$new(c.receiver_num,c.step_arg1,!1)):r(c.step_arg1)?e.Range.$new(c.receiver_num,c.step_arg1,!1):e.Range.$new(c.receiver_num,ne,!1)):(r(x)||(c.skipped_arg=!0),o=[V,r(p=x)?p:1],c.range=o[0],c.step=o[1]),c.object=c,i(c.step,0)&&s.$raise(pe("ArgumentError"),"step can't be 0"),r(c.step["$respond_to?"]("to_int"))?ne:s.$raise(pe("ArgumentError"),"no implicit conversion of "+c.step.$class()+" into Integer")},-2),Ae.$attr_reader("step"),l(Ae,"$begin",function(){var V=this;return V.range.$begin()}),l(Ae,"$end",function(){var V=this;return V.range.$end()}),l(Ae,"$exclude_end?",function(){var V=this;return V.range["$exclude_end?"]()}),l(Ae,"$_lesser_than_end?",function(V){var x=this,f=ne,o=ne;return f=r(o=x.$end())?o:Fe,r($(x.$step(),0))?r(x["$exclude_end?"]())?h(V,f):d(V,f):r(x["$exclude_end?"]())?$(V,f):w(V,f)}),l(Ae,"$_greater_than_begin?",function(V){var x=this,f=ne,o=ne;return f=r(o=x.$begin())?o:Fe["$-@"](),r($(x.$step(),0))?$(V,f):h(V,f)}),l(Ae,"$first",function(V){var x=this,f=ne,o=ne,c=ne;if(f=r(o=x.$begin())?o:Fe["$-@"](),!r(V))return r(x["$_lesser_than_end?"](f))?f:ne;for(c=[];r(r(o=x["$_lesser_than_end?"](f))?$(V,0):o);)c["$<<"](f),f=A(f,x.$step()),V=N(V,1);return c},-1),l(Ae,"$each",function fe(){var V=fe.$$p||ne,x=this,f=ne,o=ne;if(fe.$$p=null,V===ne)return x;for(U(ne,f=x.$begin())&&s.$raise(pe("TypeError"),"nil can't be coerced into Integer"),o=r(f=x.$begin())?f:Fe["$-@"]();r(x["$_lesser_than_end?"](o));)e.yield1(V,o),o=A(o,x.$step());return x}),l(Ae,"$last",function(V){var x=this,f=ne,o=ne,c=ne;if(U(Fe,f=x.$end())||U(Fe["$-@"](),f)?s.$raise(_e("FloatDomainError"),x.$end()):U(ne,f)&&s.$raise(_e("RangeError"),"cannot get the last element of endless arithmetic sequence"),o=N(x.$end(),N(x.$end(),x.$begin())["$%"](x.$step())),r(x["$_lesser_than_end?"](o))||(o=N(o,x.$step())),!r(V))return r(x["$_greater_than_begin?"](o))?o:ne;for(c=[];r(r(f=x["$_greater_than_begin?"](o))?$(V,0):f);)c["$<<"](o),o=N(o,x.$step()),V=N(V,1);return c.$reverse()},-1),l(Ae,"$size",function(){var V=this,x=ne,f=ne;return x=r($(V.$step(),0))?1:-1,O(V["$_lesser_than_end?"](V.$begin()))?0:r([Fe["$-@"](),Fe]["$include?"](V.$step()))?1:r([j(Fe["$-@"](),x),ne]["$include?"](V.$begin()))||r([j(Fe,x),ne]["$include?"](V.$end()))?Fe:(f=N(V.$end(),N(V.$end(),V.$begin())["$%"](V.$step())),r(V["$_lesser_than_end?"](f))||(f=N(f,V.$step())),A(q(N(f,V.$begin()),V.$step()).$abs().$to_i(),1))}),l(Ae,"$==",function(V){var x=this,f=ne,o=ne,c=ne,p=ne;return r(f=r(o=r(c=r(p=x.$class()["$=="](V.$class()))?x.$begin()["$=="](V.$begin()):p)?x.$end()["$=="](V.$end()):c)?x.$step()["$=="](V.$step()):o)?x["$exclude_end?"]()["$=="](V["$exclude_end?"]()):f}),l(Ae,"$hash",function(){var V=this;return[V.$begin(),V.$end(),V.$step(),V["$exclude_end?"]()].$hash()}),l(Ae,"$inspect",function(){var V=this,x=ne;return r(V.receiver_num)?(x=r(V.step_arg2)?"("+V.topfx+V.step_arg1.$inspect()+", "+V.bypfx+V.step_arg2.$inspect()+")":r(V.step_arg1)?"("+V.topfx+V.step_arg1.$inspect()+")":ne,"("+V.receiver_num.$inspect()+"."+V.creation_method+x+")"):(x=r(V.skipped_arg)?ne:"("+V.step+")","(("+V.range.$inspect()+")."+V.creation_method+x+")")}),Y(Ae,"===","=="),Y(Ae,"eql?","==")}(Ee,Ee,te)}("::",null,he)};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,l=e.to_a,$=e.truthy,h=e.rb_plus,d=e.thrower,w=e.nil,A=e.$$$;return e.add_stubs("to_enum,size,each,<<,to_proc,include?,+,reverse_each,respond_to?,rewind,inspect"),function(N,U){var O=r(N,U,"Enumerator");return function(j,q){var Y=r(j,q,"Chain"),he=Y.$$prototype;return he.enums=he.iterated=w,i(Y,"$initialize",function(_e){var Q,be,oe=this;return Q=n(arguments),be=Q,t(oe),oe.enums=be,oe.iterated=[],oe.object=oe},-1),i(Y,"$each",function ne(_e){var Q=ne.$$p||w,be,oe,Ee=this;return ne.$$p=null,be=n(arguments),oe=be,Q===w?s(Ee,"to_enum",["each"].concat(l(oe)),function te(){var Ce=te.$$s==null?this:te.$$s;return Ce.$size()},{$$s:Ee}):(s(Ee.enums,"each",[],function te(Ce){var de=te.$$s==null?this:te.$$s;return de.iterated==null&&(de.iterated=w),Ce==null&&(Ce=w),de.iterated["$<<"](Ce),s(Ce,"each",l(oe),Q.$to_proc())},{$$s:Ee}),Ee)},-1),i(Y,"$size",function(_e){try{var Q=d("return"),be,oe,Ee=this,te=w;return be=n(arguments),oe=be,te=0,s(Ee.enums,"each",[],function(de){var k=w;return de==null&&(de=w),k=s(de,"size",l(oe)),$([w,A(A("Float"),"INFINITY")]["$include?"](k))&&Q.$throw(k),te=h(te,k)},{$$ret:Q}),te}catch(Ce){if(Ce===Q)return Ce.$v;throw Ce}},-1),i(Y,"$rewind",function(){var _e=this;return s(_e.iterated,"reverse_each",[],function(be){return be==null&&(be=w),$(be["$respond_to?"]("rewind"))?be.$rewind():w}),_e.iterated=[],_e}),i(Y,"$inspect",function(){var _e=this;return"#<Enumerator::Chain: "+_e.enums.$inspect()+">"})}(O,O)}("::",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,l=e.slice,$=e.send,h=[],d=e.nil,w=e.$$$;return e.add_stubs("include,raise,new,to_proc"),function(A,N,U){var O=r(A,N,"Enumerator"),j=[O].concat(U);return function(q,Y,he){var ne=r(q,Y,"Generator"),_e=[ne].concat(he),Q=e.$r(_e),be=ne.$$prototype;return be.block=d,ne.$include(w("Enumerable")),s(ne,"$initialize",function oe(){var Ee=oe.$$p||d,te=this;return oe.$$p=null,t(te),n(Ee)||i.$raise(w("LocalJumpError"),"no block given"),te.block=Ee}),s(ne,"$each",function oe(Ee){var te=oe.$$p||d,Ce,de,k=this,Ae=d;oe.$$p=null,Ce=l(arguments),de=Ce,Ae=$(Q("Yielder"),"new",[],te.$to_proc());try{de.unshift(Ae),e.yieldX(k.block,de)}catch(B){if(B&&B.$thrower_type=="breaker")return B.$v;throw B}return k},-1)}(j[0],null,j)}(h[0],null,h)};Opal.modules["corelib/enumerator/lazy"]=function(e){var t=e.truthy,r=e.coerce_to,n=e.yield1,i=e.yieldX,s=e.deny_frozen_access,l=e.klass,$=e.slice,h=e.send2,d=e.find_super,w=e.to_a,A=e.defs,N=e.Kernel,U=e.send,O=e.def,j=e.return_self,q=e.Opal,Y=e.rb_lt,he=e.eqeqeq,ne=e.rb_plus,_e=e.alias,Q=[],be=e.nil,oe=e.$$$;return e.add_stubs("raise,each,new,enumerator_size,yield,respond_to?,try_convert,<,===,+,for,class,to_proc,destructure,inspect,to_a,find_all,collect_concat,collect,enum_for"),function(Ee,te,Ce){var de=l(Ee,te,"Enumerator"),k=[de].concat(Ce);return function(Ae,B,pe){var W=l(Ae,B,"Lazy"),Fe=[W].concat(pe),fe=e.$r(Fe),V=W.$$prototype;return V.enumerator=be,l(W,oe("Exception"),"StopLazyError"),A(W,"$for",function x(f,o){var c,p,m=x.$$p||be,E=this,T=be;return x.$$p=null,c=$(arguments,1),p=c,T=h(E,d(E,"for",x,!1,!0),"for",[f].concat(w(p)),m),T.enumerator=f,T},-2),O(W,"$initialize",function x(f,o){var c=x.$$p||be,p=this;return x.$$p=null,o==null&&(o=be),s(p),c===be&&N.$raise(oe("ArgumentError"),"tried to call lazy new without a block"),p.enumerator=f,h(p,d(p,"initialize",x,!1,!0),"initialize",[o],function(E,T){var re,je;E==null&&(E=be),re=$(arguments,1),je=re;try{return U(f,"each",w(je),function(ft){var yt,zt;yt=$(arguments),zt=yt,zt.unshift(E),i(c,zt)},-1)}catch(nt){if(e.rescue(nt,[fe("StopLazyError")]))try{return be}finally{e.pop_exception()}else throw nt}},-2)},-2),O(W,"$lazy",j),O(W,"$collect",function x(){var f=x.$$p||be,o=this;return x.$$p=null,t(f)||N.$raise(oe("ArgumentError"),"tried to call lazy map without a block"),U(fe("Lazy"),"new",[o,o.$enumerator_size()],function(p,m){var E,T;p==null&&(p=be),E=$(arguments,1),T=E;var re=i(f,T);p.$yield(re)},-2)}),O(W,"$collect_concat",function x(){var f=x.$$p||be,o=this;return x.$$p=null,t(f)||N.$raise(oe("ArgumentError"),"tried to call lazy map without a block"),U(fe("Lazy"),"new",[o,be],function(p,m){var E,T;p==null&&(p=be),E=$(arguments,1),T=E;var re=i(f,T);if(re["$respond_to?"]("force")&&re["$respond_to?"]("each"))U(re,"each",[],function(ft){return ft==null&&(ft=be),p.$yield(ft)});else{var je=q.$try_convert(re,oe("Array"),"to_ary");je===be?p.$yield(re):U(re,"each",[],function(ft){return ft==null&&(ft=be),p.$yield(ft)})}},-2)}),O(W,"$drop",function(f){var o=this,c=be,p=be,m=be;return f=r(f,oe("Integer"),"to_int"),t(Y(f,0))&&N.$raise(oe("ArgumentError"),"attempt to drop negative size"),c=o.$enumerator_size(),p=he(oe("Integer"),c)&&t(Y(f,c))?f:c,m=0,U(fe("Lazy"),"new",[o,p],function(T,re){var je,nt;return T==null&&(T=be),je=$(arguments,1),nt=je,t(Y(m,f))?m=ne(m,1):U(T,"yield",w(nt))},-2)}),O(W,"$drop_while",function x(){var f=x.$$p||be,o=this,c=be;return x.$$p=null,t(f)||N.$raise(oe("ArgumentError"),"tried to call lazy drop_while without a block"),c=!0,U(fe("Lazy"),"new",[o,be],function(m,E){var T,re;if(m==null&&(m=be),T=$(arguments,1),re=T,t(c)){var je=i(f,re);t(je)||(c=!1,U(m,"yield",w(re)))}else return U(m,"yield",w(re))},-2)}),O(W,"$enum_for",function x(f,o){var c=x.$$p||be,p,m,E,T=this;return x.$$p=null,p=$(arguments),p.length>0&&(m=p.shift()),m==null&&(m="each"),E=p,U(T.$class(),"for",[T,m].concat(w(E)),c.$to_proc())},-1),O(W,"$find_all",function x(){var f=x.$$p||be,o=this;return x.$$p=null,t(f)||N.$raise(oe("ArgumentError"),"tried to call lazy select without a block"),U(fe("Lazy"),"new",[o,be],function(p,m){var E,T;p==null&&(p=be),E=$(arguments,1),T=E;var re=i(f,T);t(re)&&U(p,"yield",w(T))},-2)}),O(W,"$grep",function x(f){var o=x.$$p||be,c=this;return x.$$p=null,t(o)?U(fe("Lazy"),"new",[c,be],function(m,E){var T,re;m==null&&(m=be),T=$(arguments,1),re=T;var je=q.$destructure(re),nt=f["$==="](je);t(nt)&&(nt=n(o,je),m.$yield(n(o,je)))},-2):U(fe("Lazy"),"new",[c,be],function(m,E){var T,re;m==null&&(m=be),T=$(arguments,1),re=T;var je=q.$destructure(re),nt=f["$==="](je);t(nt)&&m.$yield(je)},-2)}),O(W,"$reject",function x(){var f=x.$$p||be,o=this;return x.$$p=null,t(f)||N.$raise(oe("ArgumentError"),"tried to call lazy reject without a block"),U(fe("Lazy"),"new",[o,be],function(p,m){var E,T;p==null&&(p=be),E=$(arguments,1),T=E;var re=i(f,T);t(re)||U(p,"yield",w(T))},-2)}),O(W,"$take",function(f){var o=this,c=be,p=be,m=be;return f=r(f,oe("Integer"),"to_int"),t(Y(f,0))&&N.$raise(oe("ArgumentError"),"attempt to take negative size"),c=o.$enumerator_size(),p=he(oe("Integer"),c)&&t(Y(f,c))?f:c,m=0,U(fe("Lazy"),"new",[o,p],function(T,re){var je,nt;return T==null&&(T=be),je=$(arguments,1),nt=je,t(Y(m,f))?(U(T,"yield",w(nt)),m=ne(m,1)):N.$raise(fe("StopLazyError"))},-2)}),O(W,"$take_while",function x(){var f=x.$$p||be,o=this;return x.$$p=null,t(f)||N.$raise(oe("ArgumentError"),"tried to call lazy take_while without a block"),U(fe("Lazy"),"new",[o,be],function(p,m){var E,T;p==null&&(p=be),E=$(arguments,1),T=E;var re=i(f,T);t(re)?U(p,"yield",w(T)):N.$raise(fe("StopLazyError"))},-2)}),O(W,"$inspect",function(){var f=this;return"#<"+f.$class()+": "+f.enumerator.$inspect()+">"}),_e(W,"force","to_a"),_e(W,"filter","find_all"),_e(W,"flat_map","collect_concat"),_e(W,"map","collect"),_e(W,"select","find_all"),_e(W,"to_enum","enum_for")}(de,de,k)}("::",null,Q)};Opal.modules["corelib/enumerator/yielder"]=function(e){var t=e.klass,r=e.def,n=e.slice,i=e.send,s=e.to_a,l=[],$=e.nil;return e.add_stubs("yield,proc"),function(h,d,w){var A=t(h,d,"Enumerator"),N=[A].concat(w);return function(U,O){var j=t(U,O,"Yielder"),q=j.$$prototype;return q.block=$,r(j,"$initialize",function Y(){var he=Y.$$p||$,ne=this;return Y.$$p=null,ne.block=he,ne}),r(j,"$yield",function(he){var ne,_e,Q=this;ne=n(arguments),_e=ne;var be=e.yieldX(Q.block,_e);if(be&&be.$thrower_type=="break")throw be;return be},-1),r(j,"$<<",function(he){var ne=this;return ne.$yield(he),ne}),r(j,"$to_proc",function(){var he=this;return i(he,"proc",[],function ne(_e){var Q,be,oe=ne.$$s==null?this:ne.$$s;return Q=n(arguments),be=Q,i(oe,"yield",s(be))},{$$arity:-1,$$s:he})})}(N[0],null)}(l[0],null,l)};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,l=e.truthy,$=e.send,h=e.not,d=e.def,w=e.rb_plus,A=e.to_a,N=e.Opal,U=e.send2,O=e.find_super,j=e.rb_ge,q=e.Kernel,Y=e.rb_le,he=e.alias,ne=e.top,_e=[],Q=e.nil,be=e.$$$;return e.add_stubs("require,include,allocate,new,to_proc,!,respond_to?,empty?,nil?,+,class,__send__,call,enum_for,size,destructure,map,>=,length,raise,[],peek_values,<=,next_values,inspect,any?,each_with_object,autoload"),ne.$require("corelib/enumerable"),function(oe,Ee,te){var Ce=i(oe,Ee,"Enumerator"),de=[Ce].concat(te),k=e.$r(de),Ae=Ce.$$prototype;return Ae.size=Ae.args=Ae.object=Ae.method=Ae.values=Ae.cursor=Q,Ce.$include(be("Enumerable")),Ce.$$prototype.$$is_enumerator=!0,s(Ce,"$for",function B(pe,W,Fe){var fe=B.$$p||Q,V,x,f,o=this;B.$$p=null,V=t(arguments,1),V.length>0&&(x=V.shift()),x==null&&(x="each"),f=V;var c=o.$allocate();return c.object=pe,c.size=fe,c.method=x,c.args=f,c.cursor=0,c},-2),d(Ce,"$initialize",function B(pe){var W=B.$$p||Q,Fe=this;return B.$$p=null,t(arguments),n(Fe),Fe.cursor=0,l(W)?(Fe.object=$(k("Generator"),"new",[],W.$to_proc()),Fe.method="each",Fe.args=[],Fe.size=arguments[0]||Q,l(Fe.size)&&h(Fe.size["$respond_to?"]("call"))?Fe.size=r(Fe.size,be("Integer"),"to_int"):Q):(Fe.object=arguments[0],Fe.method=arguments[1]||"each",Fe.args=t(arguments,2),Fe.size=Q)},-1),d(Ce,"$each",function B(pe){var W=B.$$p||Q,Fe,fe,V=this;return B.$$p=null,Fe=t(arguments),fe=Fe,l(W["$nil?"]())&&l(fe["$empty?"]())?V:(fe=w(V.args,fe),l(W["$nil?"]())?$(V.$class(),"new",[V.object,V.method].concat(A(fe))):$(V.object,"__send__",[V.method].concat(A(fe)),W.$to_proc()))},-1),d(Ce,"$size",function(){var pe=this;return l(pe.size["$respond_to?"]("call"))?$(pe.size,"call",A(pe.args)):pe.size}),d(Ce,"$with_index",function B(pe){var W=B.$$p||Q,Fe=this;if(B.$$p=null,pe==null&&(pe=0),pe=l(pe)?r(pe,be("Integer"),"to_int"):0,!l(W))return $(Fe,"enum_for",["with_index",pe],function V(){var x=V.$$s==null?this:V.$$s;return x.$size()},{$$s:Fe});var fe=pe;return Fe.$each.$$p=function(){var V=N.$destructure(arguments),x=W(V,fe);return fe++,x},Fe.$each()},-1),d(Ce,"$each_with_index",function B(){var pe=B.$$p||Q,W=this;return B.$$p=null,pe===Q?$(W,"enum_for",["each_with_index"],function Fe(){var fe=Fe.$$s==null?this:Fe.$$s;return fe.$size()},{$$s:W}):(U(W,O(W,"each_with_index",B,!1,!0),"each_with_index",[],pe),W.object)}),d(Ce,"$rewind",function(){var pe=this;return pe.cursor=0,pe}),d(Ce,"$peek_values",function(){var pe=this,W=Q;return pe.values=l(W=pe.values)?W:$(pe,"map",[],function(fe){var V,x;return V=t(arguments),x=V,x},-1),l(j(pe.cursor,pe.values.$length()))&&q.$raise(be("StopIteration"),"iteration reached an end"),pe.values["$[]"](pe.cursor)}),d(Ce,"$peek",function(){var pe=this,W=Q;return W=pe.$peek_values(),l(Y(W.$length(),1))?W["$[]"](0):W}),d(Ce,"$next_values",function(){var pe=this,W=Q;return W=pe.$peek_values(),pe.cursor=w(pe.cursor,1),W}),d(Ce,"$next",function(){var pe=this,W=Q;return W=pe.$next_values(),l(Y(W.$length(),1))?W["$[]"](0):W}),d(Ce,"$feed",function(pe){var W=this;return W.$raise(k("NotImplementedError"),"Opal doesn't support Enumerator#feed")}),d(Ce,"$+",function(pe){var W=this;return be(be("Enumerator"),"Chain").$new(W,pe)}),d(Ce,"$inspect",function(){var pe=this,W=Q;return W="#<"+pe.$class()+": "+pe.object.$inspect()+":"+pe.method,l(pe.args["$any?"]())&&(W=w(W,"("+pe.args.$inspect()["$[]"](be("Range").$new(1,-2))+")")),w(W,">")}),he(Ce,"with_object","each_with_object"),Ce.$autoload("ArithmeticSequence","corelib/enumerator/arithmetic_sequence"),Ce.$autoload("Chain","corelib/enumerator/chain"),Ce.$autoload("Generator","corelib/enumerator/generator"),Ce.$autoload("Lazy","corelib/enumerator/lazy"),Ce.$autoload("Yielder","corelib/enumerator/yielder")}("::",null,_e)};Opal.modules["corelib/numeric"]=function(e){var t=e.klass,r=e.truthy,n=e.Kernel,i=e.def,s=e.to_ary,l=e.return_self,$=e.rb_minus,h=e.rb_times,d=e.rb_lt,w=e.eqeq,A=e.rb_divide,N=e.return_val,U=e.Opal,O=e.slice,j=e.extract_kwargs,q=e.ensure_kwargs,Y=e.not,he=e.send,ne=e.rb_ge,_e=e.rb_le,Q=e.rb_plus,be=e.rb_gt,oe=e.alias,Ee=e.top,te=e.nil,Ce=e.$$$;return e.add_stubs("require,include,instance_of?,class,Float,respond_to?,coerce,__send__,raise,equal?,-,*,div,<,-@,ceil,to_f,denominator,to_r,==,floor,/,%,Complex,zero?,numerator,abs,arg,coerce_to!,round,<=>,compare,is_a?,!,new,enum_for,to_proc,negative?,>=,<=,+,to_i,truncate,>,angle,conj,imag,rect"),Ee.$require("corelib/comparable"),function(de,k){var Ae=t(de,k,"Numeric");return Ae.$include(Ce("Comparable")),i(Ae,"$coerce",function(pe){var W=this;return r(pe["$instance_of?"](W.$class()))?[pe,W]:[n.$Float(pe),n.$Float(W)]}),i(Ae,"$__coerced__",function(pe,W){var Fe,fe,V=this,x=te,f=te;if(r(W["$respond_to?"]("coerce")))return fe=W.$coerce(V),Fe=s(fe),x=Fe[0]==null?te:Fe[0],f=Fe[1]==null?te:Fe[1],x.$__send__(pe,f);switch(pe){case"+":case"-":case"*":case"/":case"%":case"&":case"|":case"^":case"**":return n.$raise(Ce("TypeError"),""+W.$class()+" can't be coerced into Numeric");case">":case">=":case"<":case"<=":case"<=>":return n.$raise(Ce("ArgumentError"),"comparison of "+V.$class()+" with "+W.$class()+" failed");default:return te}}),i(Ae,"$<=>",function(pe){var W=this;return r(W["$equal?"](pe))?0:te}),i(Ae,"$+@",l),i(Ae,"$-@",function(){var pe=this;return $(0,pe)}),i(Ae,"$%",function(pe){var W=this;return $(W,h(pe,W.$div(pe)))}),i(Ae,"$abs",function(){var pe=this;return d(pe,0)?pe["$-@"]():pe}),i(Ae,"$abs2",function(){var pe=this;return h(pe,pe)}),i(Ae,"$angle",function(){var pe=this;return d(pe,0)?Ce(Ce("Math"),"PI"):0}),i(Ae,"$ceil",function(pe){var W=this;return pe==null&&(pe=0),W.$to_f().$ceil(pe)},-1),i(Ae,"$conj",l),i(Ae,"$denominator",function(){var pe=this;return pe.$to_r().$denominator()}),i(Ae,"$div",function(pe){var W=this;return w(pe,0)&&n.$raise(Ce("ZeroDivisionError"),"divided by o"),A(W,pe).$floor()}),i(Ae,"$divmod",function(pe){var W=this;return[W.$div(pe),W["$%"](pe)]}),i(Ae,"$fdiv",function(pe){var W=this;return A(W.$to_f(),pe)}),i(Ae,"$floor",function(pe){var W=this;return pe==null&&(pe=0),W.$to_f().$floor(pe)},-1),i(Ae,"$i",function(){var pe=this;return n.$Complex(0,pe)}),i(Ae,"$imag",N(0)),i(Ae,"$integer?",N(!1)),i(Ae,"$nonzero?",function(){var pe=this;return r(pe["$zero?"]())?te:pe}),i(Ae,"$numerator",function(){var pe=this;return pe.$to_r().$numerator()}),i(Ae,"$polar",function(){var pe=this;return[pe.$abs(),pe.$arg()]}),i(Ae,"$quo",function(pe){var W=this;return A(U["$coerce_to!"](W,Ce("Rational"),"to_r"),pe)}),i(Ae,"$real",l),i(Ae,"$real?",N(!0)),i(Ae,"$rect",function(){var pe=this;return[pe,0]}),i(Ae,"$round",function(pe){var W=this;return W.$to_f().$round(pe)},-1),i(Ae,"$step",function B(pe,W,Fe){var fe=B.$$p||te,V,x,f,o,c,p,m=this,E=te;B.$$p=null,V=O(arguments),x=j(V),x=q(x),V.length>0&&(f=V.shift()),V.length>0&&(o=V.shift()),c=x.$$smap.to,p=x.$$smap.by,f!==void 0&&c!==void 0&&n.$raise(Ce("ArgumentError"),"to is given twice"),o!==void 0&&p!==void 0&&n.$raise(Ce("ArgumentError"),"step is given twice"),c!==void 0&&(f=c),p!==void 0&&(o=p),f===void 0&&(f=te);function T(){o===te&&n.$raise(Ce("TypeError"),"step must be numeric"),o!=null&&o["$=="](0)&&n.$raise(Ce("ArgumentError"),"step can't be 0"),(o===te||o==null)&&(o=1);var xt=o["$<=>"](0);xt===te&&n.$raise(Ce("ArgumentError"),"0 can't be coerced into "+o.$class()),(f===te||f==null)&&(f=xt>0?Ce(Ce("Float"),"INFINITY"):Ce(Ce("Float"),"INFINITY")["$-@"]()),U.$compare(m,f)}function re(){if(o>0&&m>f||o<0&&m<f)return 0;if(o===1/0||o===-1/0)return 1;var xt=Math.abs,St=Math.floor,Oe=(xt(m)+xt(f)+xt(f-m))/xt(o)*Ce(Ce("Float"),"EPSILON");return Oe===1/0||Oe===-1/0?0:(Oe>.5&&(Oe=.5),St((f-m)/o+Oe)+1)}function je(){if(T(),o===0)return 1/0;if(o%1!==0)return re();if(o>0&&m>f||o<0&&m<f)return 0;var xt=Math.ceil,St=Math.abs,Oe=St(m-f)+1,ze=St(o);return xt(Oe/ze)}if(fe===te)return(Y(f)||r(f["$is_a?"](Ce("Numeric"))))&&(Y(o)||r(o["$is_a?"](Ce("Numeric"))))?Ce(Ce("Enumerator"),"ArithmeticSequence").$new([f,o,r(c)?"to: ":te,r(p)?"by: ":te],m):he(m,"enum_for",["step",f,o],je.$to_proc());T();var nt=o["$negative?"](),ft=o["$=="](0)||f===1/0&&!nt||f===-1/0&&nt;if(m.$$is_number&&o.$$is_number&&f.$$is_number)if(m%1===0&&(ft||f%1===0)&&o%1===0){var yt=m;if(ft)for(;;yt+=o)fe(yt);else if(nt)for(;yt>=f;yt+=o)fe(yt);else for(;yt<=f;yt+=o)fe(yt);return m}else{var zt=m.$to_f().valueOf();o=o.$to_f().valueOf(),f=f.$to_f().valueOf();var _t=re();if(!isFinite(o))_t!==0&&fe(zt);else if(o===0)for(;;)fe(zt);else for(var vt=0;vt<_t;vt++){var mt=vt*o+m;(o>=0?f<mt:f>mt)&&(mt=f),fe(mt)}return m}for(E=m;r(nt?ne(E,f):_e(E,f));)e.yield1(fe,E),E=Q(E,o)},-1),i(Ae,"$to_c",function(){var pe=this;return n.$Complex(pe,0)}),i(Ae,"$to_int",function(){var pe=this;return pe.$to_i()}),i(Ae,"$truncate",function(pe){var W=this;return pe==null&&(pe=0),W.$to_f().$truncate(pe)},-1),i(Ae,"$zero?",function(){var pe=this;return pe["$=="](0)}),i(Ae,"$positive?",function(){var pe=this;return be(pe,0)}),i(Ae,"$negative?",function(){var pe=this;return d(pe,0)}),i(Ae,"$dup",l),i(Ae,"$clone",function(pe){var W=this;return pe=q(pe),pe.$$smap.freeze,W},-1),i(Ae,"$finite?",N(!0)),i(Ae,"$infinite?",N(te)),oe(Ae,"arg","angle"),oe(Ae,"conjugate","conj"),oe(Ae,"imaginary","imag"),oe(Ae,"magnitude","abs"),oe(Ae,"modulo","%"),oe(Ae,"phase","arg"),oe(Ae,"rectangular","rect")}("::",null)};Opal.modules["corelib/array"]=function(e){var t=e.truthy,r=e.falsy,n=e.hash_ids,i=e.yield1,s=e.hash_get,l=e.hash_put,$=e.hash_delete,h=e.coerce_to,d=e.respond_to,w=e.deny_frozen_access,A=e.freeze,N=e.klass,U=e.slice,O=e.defs,j=e.Kernel,q=e.def,Y=e.Opal,he=e.eqeqeq,ne=e.hash2,_e=e.send2,Q=e.find_super,be=e.send,oe=e.rb_gt,Ee=e.rb_times,te=e.eqeq,Ce=e.rb_minus,de=e.to_a,k=e.to_ary,Ae=e.gvars,B=e.rb_ge,pe=e.assign_ivar,W=e.rb_lt,Fe=e.return_self,fe=e.neqeq,V=e.alias,x=e.top,f=[],o=e.nil,c=e.$$$;return e.add_stubs("require,include,to_a,warn,raise,replace,respond_to?,to_ary,coerce_to?,===,join,to_str,hash,<=>,==,object_id,inspect,enum_for,class,bsearch_index,to_proc,nil?,coerce_to!,>,*,enumerator_size,empty?,size,map,equal?,dup,each,reduce,-,[],dig,eql?,length,exclude_end?,flatten,frozen?,__id__,&,!,intersection,to_s,new,item,max,min,>=,**,delete_if,reverse,rotate,rand,at,keep_if,shuffle!,<,sort,sort_by,!=,times,[]=,<<,uniq,|,values,is_a?,end,begin,upto,reject,push,select,select!,collect,collect!,unshift,pristine,singleton_class"),x.$require("corelib/enumerable"),x.$require("corelib/numeric"),function(p,m,E){var T=N(p,m,"Array"),re=[T].concat(E),je=e.$r(re);T.$include(c("Enumerable")),e.prop(T.$$prototype,"$$is_array",!0);function nt(Oe){for(var ze=Oe[0],De=1,Ge=Oe.length;De<Ge;De++)Oe[De-1]=Oe[De];return Oe.pop(),ze}function ft(Oe,ze){return ze.$$name===e.Array?Oe:ze.$allocate().$replace(Oe.$to_a())}function yt(Oe,ze,De){for(var Ge,v=null,M=new Array(Oe.length),xe=0,Me=0,Qe=Oe.length;xe<Qe;xe++){if(!v)try{Ge=i(De,Oe[xe])}catch($t){v=$t}(v||ze(Ge))&&(M[Me]=Oe[xe],Me+=1)}if(Me!==xe&&(Oe.splice.apply(Oe,[0,M.length].concat(M)),Oe.splice(Me,M.length)),v)throw v}O(T,"$[]",function(ze){var De,Ge,v=this;return De=U(arguments),Ge=De,ft(Ge,v)},-1),q(T,"$initialize",function Oe(ze,De){var Ge=Oe.$$p||o,v=this;if(Oe.$$p=null,ze==null&&(ze=o),De==null&&(De=o),w(v),De!==o&&Ge!==o&&j.$warn("warning: block supersedes default value argument"),ze>c(c("Integer"),"MAX")&&j.$raise(c("ArgumentError"),"array size too big"),arguments.length>2&&j.$raise(c("ArgumentError"),"wrong number of arguments ("+arguments.length+" for 0..2)"),arguments.length===0)return v.splice(0,v.length),v;if(arguments.length===1){if(ze.$$is_array)return v.$replace(ze.$to_a()),v;if(ze["$respond_to?"]("to_ary"))return v.$replace(ze.$to_ary()),v}ze=h(ze,c("Integer"),"to_int"),ze<0&&j.$raise(c("ArgumentError"),"negative array size"),v.splice(0,v.length);var M,xe;if(Ge===o)for(M=0;M<ze;M++)v.push(De);else for(M=0,xe;M<ze;M++)xe=Ge(M),v[M]=xe;return v},-1),O(T,"$try_convert",function(ze){return Y["$coerce_to?"](ze,c("Array"),"to_ary")}),q(T,"$&",function(ze){var De=this;ze=he(c("Array"),ze)?ze.$to_a():h(ze,c("Array"),"to_ary").$to_a();var Ge=[],v=ne([],{}),M,xe,Me;for(M=0,xe=ze.length;M<xe;M++)l(v,ze[M],!0);for(M=0,xe=De.length;M<xe;M++)Me=De[M],$(v,Me)!==void 0&&Ge.push(Me);return Ge}),q(T,"$|",function(ze){var De=this;ze=he(c("Array"),ze)?ze.$to_a():h(ze,c("Array"),"to_ary").$to_a();var Ge=ne([],{}),v,M;for(v=0,M=De.length;v<M;v++)l(Ge,De[v],!0);for(v=0,M=ze.length;v<M;v++)l(Ge,ze[v],!0);return Ge.$keys()}),q(T,"$*",function(ze){var De=this;if(t(ze["$respond_to?"]("to_str")))return De.$join(ze.$to_str());ze=h(ze,c("Integer"),"to_int"),t(ze<0)&&j.$raise(c("ArgumentError"),"negative argument");for(var Ge=[],v=De.$to_a(),M=0;M<ze;M++)Ge=Ge.concat(v);return Ge}),q(T,"$+",function(ze){var De=this;return ze=he(c("Array"),ze)?ze.$to_a():h(ze,c("Array"),"to_ary").$to_a(),De.concat(ze)}),q(T,"$-",function(ze){var De=this;if(ze=he(c("Array"),ze)?ze.$to_a():h(ze,c("Array"),"to_ary").$to_a(),t(De.length===0))return[];if(t(ze.length===0))return De.slice();var Ge=[],v=ne([],{}),M,xe,Me;for(M=0,xe=ze.length;M<xe;M++)l(v,ze[M],!0);for(M=0,xe=De.length;M<xe;M++)Me=De[M],s(v,Me)===void 0&&Ge.push(Me);return Ge}),q(T,"$<<",function(ze){var De=this;return w(De),De.push(ze),De}),q(T,"$<=>",function(ze){var De=this;if(he(c("Array"),ze))ze=ze.$to_a();else if(t(ze["$respond_to?"]("to_ary")))ze=ze.$to_ary().$to_a();else return o;if(De.$hash()===ze.$hash())return 0;for(var Ge=Math.min(De.length,ze.length),v=0;v<Ge;v++){var M=De[v]["$<=>"](ze[v]);if(M!==0)return M}return De.length["$<=>"](ze.length)}),q(T,"$==",function(ze){var De=this,Ge={};function v(M,xe){var Me,Qe,$t,a;if(M===xe)return!0;if(!xe.$$is_array)return d(xe,"$to_ary")?xe["$=="](M):!1;if(M.$$constructor!==Array&&(M=M.$to_a()),xe.$$constructor!==Array&&(xe=xe.$to_a()),M.length!==xe.length)return!1;for(Ge[M.$object_id()]=!0,Me=0,Qe=M.length;Me<Qe;Me++)if($t=M[Me],a=xe[Me],$t.$$is_array){if(a.$$is_array&&a.length!==$t.length||!Ge.hasOwnProperty($t.$object_id())&&!v($t,a))return!1}else if(!$t["$=="](a))return!1;return!0}return v(De,ze)});function zt(Oe,ze){var De=Oe.length,Ge,v,M,xe;return Ge=ze.excl,v=ze.begin===o?0:h(ze.begin,e.Integer,"to_int"),M=ze.end===o?-1:h(ze.end,e.Integer,"to_int"),v<0&&(v+=De,v<0)||(ze.excl_rev&&ze.begin!==o&&(v+=1),v>De)?o:M<0&&(M+=De,M<0)?[]:((!Ge||ze.end===o)&&(M+=1),xe=Oe.slice(v,M),xe)}function _t(Oe,ze){var De,Ge=[],v=0,M;for(ze.step<0?(M={begin:ze.range.end,end:ze.range.begin,excl:!1,excl_rev:ze.range.excl},De=zt(Oe,M).$reverse()):De=zt(Oe,ze.range);v<De.length;)Ge.push(De[v]),v+=Math.abs(ze.step);return Ge}function vt(Oe,ze,De){var Ge=Oe.length,v;return ze=h(ze,e.Integer,"to_int"),ze<0&&(ze+=Ge,ze<0)?o:De===void 0?ze>=Ge||ze<0?o:Oe[ze]:(De=h(De,e.Integer,"to_int"),De<0||ze>Ge||ze<0?o:(v=Oe.slice(ze,ze+De),v))}q(T,"$[]",function(ze,De){var Ge=this;return ze.$$is_range?zt(Ge,ze):ze.$$is_arithmetic_seq?_t(Ge,ze):vt(Ge,ze,De)},-2),q(T,"$[]=",function(ze,De,Ge){var v=this,M=o,xe=o;w(v),M=o;var Me,Qe=v.length;if(ze.$$is_range){De.$$is_array?M=De.$to_a():De["$respond_to?"]("to_ary")?M=De.$to_ary().$to_a():M=[De];var $t=ze.excl,a=ze.begin===o?0:h(ze.begin,e.Integer,"to_int"),ue=ze.end===o?-1:h(ze.end,e.Integer,"to_int");if(a<0&&(a+=Qe,a<0&&j.$raise(c("RangeError"),""+ze.$inspect()+" out of range")),ue<0&&(ue+=Qe),(!$t||ze.end===o)&&(ue+=1),a>Qe)for(Me=Qe;Me<a;Me++)v[Me]=o;return ue<0?v.splice.apply(v,[a,0].concat(M)):v.splice.apply(v,[a,ue-a].concat(M)),De}else{Ge===void 0?xe=1:(xe=De,De=Ge,De.$$is_array?M=De.$to_a():De["$respond_to?"]("to_ary")?M=De.$to_ary().$to_a():M=[De]);var se;if(ze=h(ze,c("Integer"),"to_int"),xe=h(xe,c("Integer"),"to_int"),ze<0&&(se=ze,ze+=Qe,ze<0&&j.$raise(c("IndexError"),"index "+se+" too small for array; minimum "+-v.length)),xe<0&&j.$raise(c("IndexError"),"negative length ("+xe+")"),ze>Qe)for(Me=Qe;Me<ze;Me++)v[Me]=o;return Ge===void 0?v[ze]=De:v.splice.apply(v,[ze,xe].concat(M)),De}},-3),q(T,"$any?",function Oe(ze){var De=Oe.$$p||o,Ge=this;return Oe.$$p=null,Ge.length===0?!1:_e(Ge,Q(Ge,"any?",Oe,!1,!0),"any?",[ze],De)},-1),q(T,"$assoc",function(ze){for(var De=this,Ge=0,v=De.length,M;Ge<v;Ge++)if(M=De[Ge],M.length&&M[0]["$=="](ze))return M;return o}),q(T,"$at",function(ze){var De=this;return ze=h(ze,c("Integer"),"to_int"),ze<0&&(ze+=De.length),ze<0||ze>=De.length?o:De[ze]}),q(T,"$bsearch_index",function Oe(){var ze=Oe.$$p||o,De=this;if(Oe.$$p=null,ze===o)return De.$enum_for("bsearch_index");for(var Ge=0,v=De.length,M,xe,Me,Qe=!1,$t=o;Ge<v;){if(M=Ge+Math.floor((v-Ge)/2),xe=De[M],Me=i(ze,xe),Me===!0)$t=M,Qe=!0;else if(Me===!1||Me===o)Qe=!1;else if(Me.$$is_number){if(Me===0)return M;Qe=Me<0}else j.$raise(c("TypeError"),"wrong argument type "+Me.$class()+" (must be numeric, true, false or nil)");Qe?v=M:Ge=M+1}return $t}),q(T,"$bsearch",function Oe(){var ze=Oe.$$p||o,De=this,Ge=o;return Oe.$$p=null,ze===o?De.$enum_for("bsearch"):(Ge=be(De,"bsearch_index",[],ze.$to_proc()),Ge!=null&&Ge.$$is_number?De[Ge]:Ge)}),q(T,"$cycle",function Oe(ze){var De=Oe.$$p||o,Ge=this;if(Oe.$$p=null,ze==null&&(ze=o),De===o)return be(Ge,"enum_for",["cycle",ze],function xe(){var Me=xe.$$s==null?this:xe.$$s;return t(ze["$nil?"]())?c(c("Float"),"INFINITY"):(ze=Y["$coerce_to!"](ze,c("Integer"),"to_int"),t(oe(ze,0))?Ee(Me.$enumerator_size(),ze):0)},{$$s:Ge});if(t(Ge["$empty?"]())||te(ze,0))return o;var v,M;if(ze===o)for(;;)for(v=0,M=Ge.length;v<M;v++)i(De,Ge[v]);else{if(ze=Y["$coerce_to!"](ze,c("Integer"),"to_int"),ze<=0)return Ge;for(;ze>0;){for(v=0,M=Ge.length;v<M;v++)i(De,Ge[v]);ze--}}return Ge},-1),q(T,"$clear",function(){var ze=this;return w(ze),ze.splice(0,ze.length),ze}),q(T,"$count",function Oe(ze){var De=Oe.$$p||o,Ge=this;return Oe.$$p=null,t(ze!==void 0)||t(De)?_e(Ge,Q(Ge,"count",Oe,!1,!0),"count",[ze],De):Ge.$size()},-1),q(T,"$initialize_copy",function(ze){var De=this;return De.$replace(ze)}),q(T,"$collect",function Oe(){var ze=Oe.$$p||o,De=this;if(Oe.$$p=null,ze===o)return be(De,"enum_for",["collect"],function Me(){var Qe=Me.$$s==null?this:Me.$$s;return Qe.$size()},{$$s:De});for(var Ge=[],v=0,M=De.length;v<M;v++){var xe=i(ze,De[v]);Ge.push(xe)}return Ge}),q(T,"$collect!",function Oe(){var ze=Oe.$$p||o,De=this;if(Oe.$$p=null,ze===o)return be(De,"enum_for",["collect!"],function xe(){var Me=xe.$$s==null?this:xe.$$s;return Me.$size()},{$$s:De});w(De);for(var Ge=0,v=De.length;Ge<v;Ge++){var M=i(ze,De[Ge]);De[Ge]=M}return De});function mt(Oe,ze){return Oe===ze||ze===0?1:ze>0&&Oe>ze?mt(Oe-1,ze-1)+mt(Oe-1,ze):0}q(T,"$combination",function Oe(ze){var De=Oe.$$p||o,Ge=this,v=o;if(Oe.$$p=null,v=Y["$coerce_to!"](ze,c("Integer"),"to_int"),De===o)return be(Ge,"enum_for",["combination",v],function se(){var K=se.$$s==null?this:se.$$s;return mt(K.length,v)},{$$s:Ge});var M,xe,Me,Qe,$t,a,ue;if(v===0)e.yield1(De,[]);else if(v===1)for(M=0,xe=Ge.length;M<xe;M++)e.yield1(De,[Ge[M]]);else if(v===Ge.length)e.yield1(De,Ge.slice());else if(v>=0&&v<Ge.length){for(Me=[],M=0;M<=v+1;M++)Me.push(0);for(Qe=[],$t=0,a=!1,Me[0]=-1;!a;){for(Qe[$t]=Ge[Me[$t+1]];$t<v-1;)$t++,ue=Me[$t+1]=Me[$t]+1,Qe[$t]=Ge[ue];e.yield1(De,Qe.slice()),$t++;do a=$t===0,Me[$t]++,$t--;while(Me[$t+1]+v===Ge.length+$t+1)}}return Ge}),q(T,"$repeated_combination",function Oe(ze){var De=Oe.$$p||o,Ge=this,v=o;if(Oe.$$p=null,v=Y["$coerce_to!"](ze,c("Integer"),"to_int"),De===o)return be(Ge,"enum_for",["repeated_combination",v],function xe(){var Me=xe.$$s==null?this:xe.$$s;return mt(Me.length+v-1,v)},{$$s:Ge});function M(xe,Me,Qe,$t){if(Qe.length==xe){var a=Qe.slice();e.yield1(De,a);return}for(var ue=Me;ue<$t.length;ue++)Qe.push($t[ue]),M(xe,ue,Qe,$t),Qe.pop()}return v>=0&&M(v,0,[],Ge),Ge}),q(T,"$compact",function(){for(var ze=this,De=[],Ge=0,v=ze.length,M;Ge<v;Ge++)(M=ze[Ge])!==o&&De.push(M);return De}),q(T,"$compact!",function(){var ze=this;w(ze);for(var De=ze.length,Ge=0,v=ze.length;Ge<v;Ge++)ze[Ge]===o&&(ze.splice(Ge,1),v--,Ge--);return ze.length===De?o:ze}),q(T,"$concat",function(ze){var De,Ge,v=this;return De=U(arguments),Ge=De,w(v),Ge=be(Ge,"map",[],function M(xe){var Me=M.$$s==null?this:M.$$s;return xe==null&&(xe=o),xe=he(c("Array"),xe)?xe.$to_a():h(xe,c("Array"),"to_ary").$to_a(),t(xe["$equal?"](Me))&&(xe=xe.$dup()),xe},{$$s:v}),be(Ge,"each",[],function M(xe){var Me=M.$$s==null?this:M.$$s;xe==null&&(xe=o);for(var Qe=0,$t=xe.length;Qe<$t;Qe++)Me.push(xe[Qe])},{$$s:v}),v},-1),q(T,"$delete",function Oe(ze){var De=Oe.$$p||o,Ge=this;Oe.$$p=null;for(var v=Ge.length,M=0,xe=v;M<xe;M++)Ge[M]["$=="](ze)&&(w(Ge),Ge.splice(M,1),xe--,M--);return Ge.length===v?De!==o?e.yieldX(De,[]):o:ze}),q(T,"$delete_at",function(ze){var De=this;if(w(De),ze=h(ze,c("Integer"),"to_int"),ze<0&&(ze+=De.length),ze<0||ze>=De.length)return o;var Ge=De[ze];return De.splice(ze,1),Ge}),q(T,"$delete_if",function Oe(){var ze=Oe.$$p||o,De=this;return Oe.$$p=null,ze===o?be(De,"enum_for",["delete_if"],function Ge(){var v=Ge.$$s==null?this:Ge.$$s;return v.$size()},{$$s:De}):(w(De),yt(De,r,ze),De)}),q(T,"$difference",function(ze){var De,Ge,v=this;return De=U(arguments),Ge=De,be(Ge,"reduce",[v.$to_a().$dup()],function(xe,Me){return xe==null&&(xe=o),Me==null&&(Me=o),Ce(xe,Me)})},-1),q(T,"$dig",function(ze,De){var Ge,v,M=this,xe=o;return Ge=U(arguments,1),v=Ge,xe=M["$[]"](ze),xe===o||v.length===0?xe:(t(xe["$respond_to?"]("dig"))||j.$raise(c("TypeError"),""+xe.$class()+" does not have #dig method"),be(xe,"dig",de(v)))},-2),q(T,"$drop",function(ze){var De=this;return ze=h(ze,c("Integer"),"to_int"),ze<0&&j.$raise(c("ArgumentError")),De.slice(ze)}),q(T,"$dup",function Oe(){var ze=Oe.$$p||o,De=this;return Oe.$$p=null,De.$$class===e.Array&&De.$$class.$allocate.$$pristine&&De.$copy_instance_variables.$$pristine&&De.$initialize_dup.$$pristine?De.slice(0):_e(De,Q(De,"dup",Oe,!1,!0),"dup",[],ze)}),q(T,"$each",function Oe(){var ze=Oe.$$p||o,De=this;if(Oe.$$p=null,ze===o)return be(De,"enum_for",["each"],function M(){var xe=M.$$s==null?this:M.$$s;return xe.$size()},{$$s:De});for(var Ge=0,v=De.length;Ge<v;Ge++)i(ze,De[Ge]);return De}),q(T,"$each_index",function Oe(){var ze=Oe.$$p||o,De=this;if(Oe.$$p=null,ze===o)return be(De,"enum_for",["each_index"],function M(){var xe=M.$$s==null?this:M.$$s;return xe.$size()},{$$s:De});for(var Ge=0,v=De.length;Ge<v;Ge++)i(ze,Ge);return De}),q(T,"$empty?",function(){var ze=this;return ze.length===0}),q(T,"$eql?",function(ze){var De=this,Ge={};function v(M,xe){var Me,Qe,$t,a;if(!xe.$$is_array||(xe=xe.$to_a(),M.length!==xe.length))return!1;for(Ge[M.$object_id()]=!0,Me=0,Qe=M.length;Me<Qe;Me++)if($t=M[Me],a=xe[Me],$t.$$is_array){if(a.$$is_array&&a.length!==$t.length||!Ge.hasOwnProperty($t.$object_id())&&!v($t,a))return!1}else if(!$t["$eql?"](a))return!1;return!0}return v(De,ze)}),q(T,"$fetch",function Oe(ze,De){var Ge=Oe.$$p||o,v=this;Oe.$$p=null;var M=ze;if(ze=h(ze,c("Integer"),"to_int"),ze<0&&(ze+=v.length),ze>=0&&ze<v.length)return v[ze];if(Ge!==o&&De!=null&&v.$warn("warning: block supersedes default value argument"),Ge!==o)return Ge(M);if(De!=null)return De;v.length===0?j.$raise(c("IndexError"),"index "+M+" outside of array bounds: 0...0"):j.$raise(c("IndexError"),"index "+M+" outside of array bounds: -"+v.length+"..."+v.length)},-2),q(T,"$fill",function Oe(ze){var De=Oe.$$p||o,Ge,v,M,xe,Me=this,Qe=o,$t=o,a=o,ue=o,se=o;Oe.$$p=null,Ge=U(arguments),v=Ge,w(Me);var K,ye;if(t(De)?(t(v.length>2)&&j.$raise(c("ArgumentError"),"wrong number of arguments ("+v.$length()+" for 0..2)"),xe=v,M=k(xe),Qe=M[0]==null?o:M[0],$t=M[1]==null?o:M[1]):(t(v.length==0)?j.$raise(c("ArgumentError"),"wrong number of arguments (0 for 1..3)"):t(v.length>3)&&j.$raise(c("ArgumentError"),"wrong number of arguments ("+v.$length()+" for 1..3)"),xe=v,M=k(xe),a=M[0]==null?o:M[0],Qe=M[1]==null?o:M[1],$t=M[2]==null?o:M[2]),he(c("Range"),Qe)){if(t($t)&&j.$raise(c("TypeError"),"length invalid with range"),ue=Qe.begin===o?0:h(Qe.begin,c("Integer"),"to_int"),t(ue<0)&&(ue+=this.length),t(ue<0)&&j.$raise(c("RangeError"),""+Qe.$inspect()+" out of range"),se=Qe.end===o?-1:h(Qe.end,c("Integer"),"to_int"),t(se<0)&&(se+=this.length),t(Qe["$exclude_end?"]())||(se+=1),t(se<=ue))return Me}else if(t(Qe))if(ue=h(Qe,c("Integer"),"to_int"),t(ue<0)&&(ue+=this.length),t(ue<0)&&(ue=0),t($t)){if(se=h($t,c("Integer"),"to_int"),t(se==0))return Me;se+=ue}else se=this.length;else ue=0,se=this.length;if(t(ue>this.length))for(K=this.length;K<se;K++)Me[K]=o;if(t(se>this.length)&&(this.length=se),t(De))for(this.length;ue<se;ue++)ye=De(ue),Me[ue]=ye;else for(this.length;ue<se;ue++)Me[ue]=a;return Me},-1),q(T,"$first",function(ze){var De=this;return ze==null?De.length===0?o:De[0]:(ze=h(ze,c("Integer"),"to_int"),ze<0&&j.$raise(c("ArgumentError"),"negative array size"),De.slice(0,ze))},-1),q(T,"$flatten",function(ze){var De=this;function Ge(v,M){var xe=[],Me,Qe,$t,a;for(v=v.$to_a(),Me=0,Qe=v.length;Me<Qe;Me++){if($t=v[Me],!d($t,"$to_ary",!0)){xe.push($t);continue}if(a=$t.$to_ary(),a===o){xe.push($t);continue}switch(a.$$is_array||j.$raise(c("TypeError")),a===De&&j.$raise(c("ArgumentError")),M){case void 0:xe=xe.concat(Ge(a));break;case 0:xe.push(a);break;default:xe.push.apply(xe,Ge(a,M-1))}}return xe}return ze!==void 0&&(ze=h(ze,c("Integer"),"to_int")),Ge(De,ze)},-1),q(T,"$flatten!",function(ze){var De=this;w(De);var Ge=De.$flatten(ze);if(De.length==Ge.length){for(var v=0,M=De.length;v<M&&De[v]===Ge[v];v++);if(v==M)return o}return De.$replace(Ge),De},-1),q(T,"$freeze",function(){var ze=this;return t(ze["$frozen?"]())?ze:A(ze)}),q(T,"$hash",function(){var ze=this,De=n===void 0,Ge=["A"],v=ze.$object_id(),M,xe,Me;try{if(De&&(n=Object.create(null)),n[v])return"self";for(Me in n)if(M=n[Me],ze["$eql?"](M))return"self";for(n[v]=ze,xe=0;xe<ze.length;xe++)M=ze[xe],Ge.push(M.$hash());return Ge.join(",")}finally{De&&(n=void 0)}}),q(T,"$include?",function(ze){for(var De=this,Ge=0,v=De.length;Ge<v;Ge++)if(De[Ge]["$=="](ze))return!0;return!1}),q(T,"$index",function Oe(ze){var De=Oe.$$p||o,Ge=this;Oe.$$p=null;var v,M,xe;if(ze!=null&&De!==o&&Ge.$warn("warning: given block not used"),ze!=null){for(v=0,M=Ge.length;v<M;v++)if(Ge[v]["$=="](ze))return v}else if(De!==o){for(v=0,M=Ge.length;v<M;v++)if(xe=De(Ge[v]),xe!==!1&&xe!==o)return v}else return Ge.$enum_for("index");return o},-1),q(T,"$insert",function(ze,De){var Ge,v,M=this;if(Ge=U(arguments,1),v=Ge,w(M),ze=h(ze,c("Integer"),"to_int"),v.length>0){if(ze<0&&(ze+=M.length+1,ze<0&&j.$raise(c("IndexError"),""+ze+" is out of bounds")),ze>M.length)for(var xe=M.length;xe<ze;xe++)M.push(o);M.splice.apply(M,[ze,0].concat(v))}return M},-2);var xt=[];q(T,"$inspect",function(){var ze=this,De=[],Ge=ze.$__id__(),v=!0;return function(){try{if(xt.indexOf(Ge)!==-1)return v=!1,"[...]";xt.push(Ge);for(var M=0,xe=ze.length;M<xe;M++){var Me=ze["$[]"](M);De.push(je("Opal").$inspect(Me))}return"["+De.join(", ")+"]"}finally{v&&xt.pop()}}()}),q(T,"$intersection",function(ze){var De,Ge,v=this;return De=U(arguments),Ge=De,be(Ge,"reduce",[v.$to_a().$dup()],function(xe,Me){return xe==null&&(xe=o),Me==null&&(Me=o),xe["$&"](Me)})},-1),q(T,"$intersect?",function(ze){var De=this;return De.$intersection(ze)["$empty?"]()["$!"]()}),q(T,"$join",function(ze){var De=this;if(Ae[","]==null&&(Ae[","]=o),ze==null&&(ze=o),t(De.length===0))return"";t(ze===o)&&(ze=Ae[","]);var Ge=[],v,M,xe,Me;for(v=0,M=De.length;v<M;v++){if(xe=De[v],d(xe,"$to_str")&&(Me=xe.$to_str(),Me!==o)){Ge.push(Me.$to_s());continue}if(d(xe,"$to_ary")&&(Me=xe.$to_ary(),Me===De&&j.$raise(c("ArgumentError")),Me!==o)){Ge.push(Me.$join(ze));continue}if(d(xe,"$to_s")&&(Me=xe.$to_s(),Me!==o)){Ge.push(Me);continue}j.$raise(c("NoMethodError").$new(""+je("Opal").$inspect(De.$item())+" doesn't respond to #to_str, #to_ary or #to_s","to_str"))}return ze===o?Ge.join(""):Ge.join(Y["$coerce_to!"](ze,c("String"),"to_str").$to_s())},-1),q(T,"$keep_if",function Oe(){var ze=Oe.$$p||o,De=this;return Oe.$$p=null,ze===o?be(De,"enum_for",["keep_if"],function Ge(){var v=Ge.$$s==null?this:Ge.$$s;return v.$size()},{$$s:De}):(w(De),yt(De,t,ze),De)}),q(T,"$last",function(ze){var De=this;return ze==null?De.length===0?o:De[De.length-1]:(ze=h(ze,c("Integer"),"to_int"),ze<0&&j.$raise(c("ArgumentError"),"negative array size"),ze>De.length&&(ze=De.length),De.slice(De.length-ze,De.length))},-1),q(T,"$length",function(){var ze=this;return ze.length}),q(T,"$max",function Oe(ze){var De=Oe.$$p||o,Ge=this;return Oe.$$p=null,be(Ge.$each(),"max",[ze],De.$to_proc())},-1),q(T,"$min",function Oe(){var ze=Oe.$$p||o,De=this;return Oe.$$p=null,be(De.$each(),"min",[],ze.$to_proc())});function St(Oe,ze){for(var De=ze>=0?1:0;ze;)De*=Oe,Oe--,ze--;return De}return q(T,"$permutation",function Oe(ze){var De=Oe.$$p||o,Ge=this,v=o,M=o;if(Oe.$$p=null,De===o)return be(Ge,"enum_for",["permutation",ze],function a(){var ue=a.$$s==null?this:a.$$s;return St(ue.length,ze===void 0?ue.length:ze)},{$$s:Ge});var xe,Me,Qe;if(ze===void 0?ze=Ge.length:ze=h(ze,c("Integer"),"to_int"),!(ze<0||Ge.length<ze))if(ze===0)e.yield1(De,[]);else if(ze===1)for(var $t=0;$t<Ge.length;$t++)e.yield1(De,[Ge[$t]]);else v=je("Array").$new(ze),M=je("Array").$new(Ge.length,!1),xe=function(a,ue,se,K,ye){Ge=this;for(var y=0;y<Ge.length;y++)if(K["$[]"](y)["$!"]())if(ue[se]=y,se<a-1)K[y]=!0,xe.call(Ge,a,ue,se+1,K,ye),K[y]=!1;else{Qe=[];for(var X=0;X<ue.length;X++)Qe.push(Ge[ue[X]]);i(ye,Qe)}},De!==o?(Me=Ge.slice(),xe.call(Me,ze,v,0,M,De)):xe.call(Ge,ze,v,0,M,De);return Ge},-1),q(T,"$repeated_permutation",function Oe(ze){var De=Oe.$$p||o,Ge=this,v=o;if(Oe.$$p=null,v=Y["$coerce_to!"](ze,c("Integer"),"to_int"),De===o)return be(Ge,"enum_for",["repeated_permutation",v],function xe(){var Me=xe.$$s==null?this:xe.$$s;return t(B(v,0))?Me.$size()["$**"](v):0},{$$s:Ge});function M(xe,Me,Qe){if(Me.length==xe){var $t=Me.slice();e.yield1(De,$t);return}for(var a=0;a<Qe.length;a++)Me.push(Qe[a]),M(xe,Me,Qe),Me.pop()}return M(v,[],Ge.slice()),Ge}),q(T,"$pop",function(ze){var De=this;return w(De),t(ze===void 0)?t(De.length===0)?o:De.pop():(ze=h(ze,c("Integer"),"to_int"),t(ze<0)&&j.$raise(c("ArgumentError"),"negative array size"),t(De.length===0)?[]:t(ze===1)?[De.pop()]:t(ze>De.length)?De.splice(0,De.length):De.splice(De.length-ze,De.length))},-1),q(T,"$product",function Oe(ze){var De=Oe.$$p||o,Ge,v,M=this;Oe.$$p=null,Ge=U(arguments),v=Ge;var xe=De!==o?null:[],Me=v.length+1,Qe=new Array(Me),$t=new Array(Me),a=new Array(Me),ue,se,K,ye,y=1;for(a[0]=M,ue=1;ue<Me;ue++)a[ue]=h(v[ue-1],c("Array"),"to_ary");for(ue=0;ue<Me;ue++){if(ye=a[ue].length,ye===0)return xe||M;y*=ye,y>2147483647&&j.$raise(c("RangeError"),"too big to product"),$t[ue]=ye,Qe[ue]=0}e:for(;;){for(K=[],ue=0;ue<Me;ue++)K.push(a[ue][Qe[ue]]);for(xe?xe.push(K):e.yield1(De,K),se=Me-1,Qe[se]++;Qe[se]===$t[se];){if(Qe[se]=0,--se<0)break e;Qe[se]++}}return xe||M},-1),q(T,"$push",function(ze){var De,Ge,v=this;De=U(arguments),Ge=De,w(v);for(var M=0,xe=Ge.length;M<xe;M++)v.push(Ge[M]);return v},-1),q(T,"$rassoc",function(ze){for(var De=this,Ge=0,v=De.length,M;Ge<v;Ge++)if(M=De[Ge],M.length&&M[1]!==void 0&&M[1]["$=="](ze))return M;return o}),q(T,"$reject",function Oe(){var ze=Oe.$$p||o,De=this;if(Oe.$$p=null,ze===o)return be(De,"enum_for",["reject"],function Me(){var Qe=Me.$$s==null?this:Me.$$s;return Qe.$size()},{$$s:De});for(var Ge=[],v=0,M=De.length,xe;v<M;v++)xe=ze(De[v]),(xe===!1||xe===o)&&Ge.push(De[v]);return Ge}),q(T,"$reject!",function Oe(){var ze=Oe.$$p||o,De=this,Ge=o;return Oe.$$p=null,ze===o?be(De,"enum_for",["reject!"],function v(){var M=v.$$s==null?this:v.$$s;return M.$size()},{$$s:De}):(w(De),Ge=De.$length(),be(De,"delete_if",[],ze.$to_proc()),te(De.$length(),Ge)?o:De)}),q(T,"$replace",function(ze){var De=this;return w(De),ze=he(c("Array"),ze)?ze.$to_a():h(ze,c("Array"),"to_ary").$to_a(),De.splice(0,De.length),De.push.apply(De,ze),De}),q(T,"$reverse",function(){var ze=this;return ze.slice(0).reverse()}),q(T,"$reverse!",function(){var ze=this;return w(ze),ze.reverse()}),q(T,"$reverse_each",function Oe(){var ze=Oe.$$p||o,De=this;return Oe.$$p=null,ze===o?be(De,"enum_for",["reverse_each"],function Ge(){var v=Ge.$$s==null?this:Ge.$$s;return v.$size()},{$$s:De}):(be(De.$reverse(),"each",[],ze.$to_proc()),De)}),q(T,"$rindex",function Oe(ze){var De=Oe.$$p||o,Ge=this;Oe.$$p=null;var v,M;if(ze!=null&&De!==o&&Ge.$warn("warning: given block not used"),ze!=null){for(v=Ge.length-1;v>=0&&!(v>=Ge.length);v--)if(Ge[v]["$=="](ze))return v}else if(De!==o){for(v=Ge.length-1;v>=0&&!(v>=Ge.length);v--)if(M=De(Ge[v]),M!==!1&&M!==o)return v}else if(ze==null)return Ge.$enum_for("rindex");return o},-1),q(T,"$rotate",function(ze){var De=this;ze==null&&(ze=1);var Ge,v,M,xe;return ze=h(ze,c("Integer"),"to_int"),De.length===1?De.slice():De.length===0?[]:(Ge=De.slice(),v=ze%Ge.length,M=Ge.slice(v),xe=Ge.slice(0,v),M.concat(xe))},-1),q(T,"$rotate!",function(ze){var De=this,Ge=o;return ze==null&&(ze=1),w(De),De.length===0||De.length===1?De:(ze=h(ze,c("Integer"),"to_int"),Ge=De.$rotate(ze),De.$replace(Ge))},-1),function(Oe,ze){var De=N(Oe,ze,"SampleRandom"),Ge=De.$$prototype;return Ge.rng=o,q(De,"$initialize",pe("rng")),q(De,"$rand",function(M){var xe=this,Me=o;return Me=h(xe.rng.$rand(M),c("Integer"),"to_int"),t(Me<0)&&j.$raise(c("RangeError"),"random value must be >= 0"),t(Me<M)||j.$raise(c("RangeError"),"random value must be less than Array size"),Me})}(T,null),q(T,"$sample",function(ze,De){var Ge=this,v=o,M=o;if(t(ze===void 0))return Ge.$at(j.$rand(Ge.length));if(t(De===void 0)?t(v=Y["$coerce_to?"](ze,c("Hash"),"to_hash"))?(De=v,ze=o):(De=o,ze=h(ze,c("Integer"),"to_int")):(ze=h(ze,c("Integer"),"to_int"),De=h(De,c("Hash"),"to_hash")),t(ze)&&t(ze<0)&&j.$raise(c("ArgumentError"),"count must be greater than 0"),t(De)&&(M=De["$[]"]("random")),M=t(M)&&t(M["$respond_to?"]("rand"))?je("SampleRandom").$new(M):j,!t(ze))return Ge[M.$rand(Ge.length)];var xe,Me,Qe,$t,a,ue,se,K;switch(ze>Ge.length&&(ze=Ge.length),ze){case 0:return[];case 1:return[Ge[M.$rand(Ge.length)]];case 2:return $t=M.$rand(Ge.length),a=M.$rand(Ge.length-1),$t<=a&&a++,[Ge[$t],Ge[a]];default:if(Ge.length/ze>3){for(xe=!1,Me=0,Qe=je("Array").$new(ze),$t=1,Qe[0]=M.$rand(Ge.length);$t<ze;){for(ue=M.$rand(Ge.length),a=0;a<$t;){for(;ue===Qe[a];){if(Me++,Me>100){xe=!0;break}ue=M.$rand(Ge.length)}if(xe)break;a++}if(xe)break;Qe[$t]=ue,$t++}if(!xe){for($t=0;$t<ze;)Qe[$t]=Ge[Qe[$t]],$t++;return Qe}}Qe=Ge.slice();for(var ye=0;ye<ze;ye++)se=M.$rand(Ge.length-ye)+ye,K=Qe[ye],Qe[ye]=Qe[se],Qe[se]=K;return ze===Ge.length?Qe:Qe["$[]"](0,ze)}},-1),q(T,"$select",function Oe(){var ze=Oe.$$p||o,De=this;if(Oe.$$p=null,ze===o)return be(De,"enum_for",["select"],function Qe(){var $t=Qe.$$s==null?this:Qe.$$s;return $t.$size()},{$$s:De});for(var Ge=[],v=0,M=De.length,xe,Me;v<M;v++)xe=De[v],Me=i(ze,xe),t(Me)&&Ge.push(xe);return Ge}),q(T,"$select!",function Oe(){var ze=Oe.$$p||o,De=this;if(Oe.$$p=null,ze===o)return be(De,"enum_for",["select!"],function v(){var M=v.$$s==null?this:v.$$s;return M.$size()},{$$s:De});w(De);var Ge=De.length;return be(De,"keep_if",[],ze.$to_proc()),De.length===Ge?o:De}),q(T,"$shift",function(ze){var De=this;return w(De),t(ze===void 0)?t(De.length===0)?o:nt(De):(ze=h(ze,c("Integer"),"to_int"),t(ze<0)&&j.$raise(c("ArgumentError"),"negative array size"),t(De.length===0)?[]:De.splice(0,ze))},-1),q(T,"$shuffle",function(ze){var De=this;return De.$dup().$to_a()["$shuffle!"](ze)},-1),q(T,"$shuffle!",function(ze){var De=this;w(De);var Ge,v=De.length,M,xe;for(ze!==void 0&&(ze=Y["$coerce_to?"](ze,c("Hash"),"to_hash"),ze!==o&&(ze=ze["$[]"]("random"),ze!==o&&ze["$respond_to?"]("rand")&&(Ge=ze)));v;)Ge?(M=Ge.$rand(v).$to_int(),M<0&&j.$raise(c("RangeError"),"random number too small "+M),M>=v&&j.$raise(c("RangeError"),"random number too big "+M)):M=De.$rand(v),xe=De[--v],De[v]=De[M],De[M]=xe;return De},-1),q(T,"$slice!",function(ze,De){var Ge=this,v=o,M=o,xe=o,Me=o,Qe=o;if(w(Ge),v=o,t(De===void 0))if(he(c("Range"),ze)){M=ze,v=Ge["$[]"](M),xe=M.begin===o?0:h(M.begin,c("Integer"),"to_int"),Me=M.end===o?-1:h(M.end,c("Integer"),"to_int"),xe<0&&(xe+=Ge.length),Me<0?Me+=Ge.length:Me>=Ge.length&&(Me=Ge.length-1,M.excl&&(Me+=1));var $t=Me-xe;M.excl&&M.end!==o?Me-=1:$t+=1,xe<Ge.length&&xe>=0&&Me<Ge.length&&Me>=0&&$t>0&&Ge.splice(xe,$t)}else{if(Qe=h(ze,c("Integer"),"to_int"),Qe<0&&(Qe+=Ge.length),Qe<0||Qe>=Ge.length)return o;v=Ge[Qe],Qe===0?Ge.shift():Ge.splice(Qe,1)}else{if(Qe=h(ze,c("Integer"),"to_int"),De=h(De,c("Integer"),"to_int"),De<0)return o;v=Ge["$[]"](Qe,De),Qe<0&&(Qe+=Ge.length),Qe+De>Ge.length&&(De=Ge.length-Qe),Qe<Ge.length&&Qe>=0&&Ge.splice(Qe,De)}return v},-2),q(T,"$sort",function Oe(){var ze=Oe.$$p||o,De=this;return Oe.$$p=null,t(De.length>1)?(ze===o&&(ze=function(Ge,v){return Ge["$<=>"](v)}),De.slice().sort(function(Ge,v){var M=ze(Ge,v);return M===o&&j.$raise(c("ArgumentError"),"comparison of "+Ge.$inspect()+" with "+v.$inspect()+" failed"),oe(M,0)?1:W(M,0)?-1:0})):De}),q(T,"$sort!",function Oe(){var ze=Oe.$$p||o,De=this;Oe.$$p=null,w(De);var Ge;ze!==o?Ge=be(De.slice(),"sort",[],ze.$to_proc()):Ge=De.slice().$sort(),De.length=0;for(var v=0,M=Ge.length;v<M;v++)De.push(Ge[v]);return De}),q(T,"$sort_by!",function Oe(){var ze=Oe.$$p||o,De=this;return Oe.$$p=null,ze===o?be(De,"enum_for",["sort_by!"],function Ge(){var v=Ge.$$s==null?this:Ge.$$s;return v.$size()},{$$s:De}):(w(De),De.$replace(be(De,"sort_by",[],ze.$to_proc())))}),q(T,"$take",function(ze){var De=this;return ze<0&&j.$raise(c("ArgumentError")),De.slice(0,ze)}),q(T,"$take_while",function Oe(){var ze=Oe.$$p||o,De=this;Oe.$$p=null;for(var Ge=[],v=0,M=De.length,xe,Me;v<M;v++){if(xe=De[v],Me=ze(xe),Me===!1||Me===o)return Ge;Ge.push(xe)}return Ge}),q(T,"$to_a",function(){var ze=this;return ze.$$class===e.Array?ze:e.Array.$new(ze)}),q(T,"$to_ary",Fe),q(T,"$to_h",function Oe(){var ze=Oe.$$p||o,De=this,Ge=o;Oe.$$p=null,Ge=De,ze!==o&&(Ge=be(Ge,"map",[],ze.$to_proc()));var v,M=Ge.length,xe,Me,Qe,$t=ne([],{});for(v=0;v<M;v++)xe=Y["$coerce_to?"](Ge[v],c("Array"),"to_ary"),xe.$$is_array||j.$raise(c("TypeError"),"wrong element type "+xe.$class()+" at "+v+" (expected array)"),xe.length!==2&&j.$raise(c("ArgumentError"),"wrong array length at "+v+" (expected 2, was "+xe.$length()+")"),Me=xe[0],Qe=xe[1],l($t,Me,Qe);return $t}),q(T,"$transpose",function(){var ze=this,De=o,Ge=o;return t(ze["$empty?"]())?[]:(De=[],Ge=o,be(ze,"each",[],function(M){var xe=o;return M==null&&(M=o),M=he(c("Array"),M)?M.$to_a():h(M,c("Array"),"to_ary").$to_a(),Ge=t(xe=Ge)?xe:M.length,fe(M.length,Ge)&&j.$raise(c("IndexError"),"element size differs ("+M.length+" should be "+Ge+")"),be(M.length,"times",[],function(Qe){var $t,a=o;return Qe==null&&(Qe=o),a=t(xe=De["$[]"](Qe))?xe:($t=[Qe,[]],be(De,"[]=",$t),$t[$t.length-1]),a["$<<"](M.$at(Qe))})}),De)}),q(T,"$union",function(ze){var De,Ge,v=this;return De=U(arguments),Ge=De,be(Ge,"reduce",[v.$uniq()],function(xe,Me){return xe==null&&(xe=o),Me==null&&(Me=o),xe["$|"](Me)})},-1),q(T,"$uniq",function Oe(){var ze=Oe.$$p||o,De=this;Oe.$$p=null;var Ge=ne([],{}),v,M,xe,Me;if(ze===o)for(v=0,M=De.length;v<M;v++)xe=De[v],s(Ge,xe)===void 0&&l(Ge,xe,xe);else for(v=0,M=De.length;v<M;v++)xe=De[v],Me=i(ze,xe),s(Ge,Me)===void 0&&l(Ge,Me,xe);return Ge.$values()}),q(T,"$uniq!",function Oe(){var ze=Oe.$$p||o,De=this;Oe.$$p=null,w(De);var Ge=De.length,v=ne([],{}),M,xe,Me,Qe;for(M=0,xe=Ge;M<xe;M++){if(Me=De[M],Qe=ze===o?Me:i(ze,Me),s(v,Qe)===void 0){l(v,Qe,Me);continue}De.splice(M,1),xe--,M--}return De.length===Ge?o:De}),q(T,"$unshift",function(ze){var De,Ge,v=this;De=U(arguments),Ge=De,w(v);var M=v.length,xe=Ge.length;if(xe==0)return v;for(var Me=M-xe,Qe=0;Qe<xe;Qe++)v.push(v[Me+Qe]);for(var $t=M-1;$t-xe>=0;)v[$t]=v[$t-xe],$t--;for(var a=0;a<xe;a++)v[a]=Ge[a];return v},-1),q(T,"$values_at",function(ze){var De,Ge,v=this,M=o;return De=U(arguments),Ge=De,M=[],be(Ge,"each",[],function xe(Me){var Qe=xe.$$s==null?this:xe.$$s,$t=o,a=o,ue=o;return Me==null&&(Me=o),t(Me["$is_a?"](c("Range")))?($t=Me.$end()===o?-1:h(Me.$end(),c("Integer"),"to_int"),a=Me.$begin()===o?0:h(Me.$begin(),c("Integer"),"to_int"),a<0?(a=a+Qe.length,o):($t<0&&($t=$t+Qe.length),Me["$exclude_end?"]()&&Me.$end()!==o&&$t--,$t<a?o:be(a,"upto",[$t],function se(K){var ye=se.$$s==null?this:se.$$s;return K==null&&(K=o),M["$<<"](ye.$at(K))},{$$s:Qe}))):(ue=h(Me,c("Integer"),"to_int"),M["$<<"](Qe.$at(ue)))},{$$s:v}),M},-1),q(T,"$zip",function Oe(ze){var De=Oe.$$p||o,Ge,v,M=this,xe=o;Oe.$$p=null,Ge=U(arguments),v=Ge;var Me=[],Qe=M.length,$t,a,ue,se,K;for(se=0,K=v.length;se<K;se++)if(a=v[se],!a.$$is_array){if(a.$$is_range||a.$$is_enumerator){v[se]=a.$take(Qe);continue}v[se]=(t(xe=Y["$coerce_to?"](a,c("Array"),"to_ary"))?xe:Y["$coerce_to!"](a,c("Enumerator"),"to_enum","each")).$to_a()}for(ue=0;ue<Qe;ue++){for($t=[M[ue]],se=0,K=v.length;se<K;se++)a=v[se][ue],a==null&&(a=o),$t[se+1]=a;Me[ue]=$t}if(De!==o){for(ue=0;ue<Qe;ue++)e.yield1(De,Me[ue]);return o}return Me},-1),O(T,"$inherited",function(ze){ze.$$prototype.$to_a=function(){return this.slice(0,this.length)}}),q(T,"$instance_variables",function Oe(){var ze=Oe.$$p||o,De=this;return Oe.$$p=null,be(_e(De,Q(De,"instance_variables",Oe,!1,!0),"instance_variables",[],ze),"reject",[],function(v){var M=o;return v==null&&(v=o),t(M=/^@\d+$/.test(v))?M:v["$=="]("@length")})}),q(T,"$pack",function(ze){return U(arguments),j.$raise("To use Array#pack, you must first require 'corelib/array/pack'.")},-1),V(T,"append","push"),V(T,"filter","select"),V(T,"filter!","select!"),V(T,"map","collect"),V(T,"map!","collect!"),V(T,"prepend","unshift"),V(T,"size","length"),V(T,"slice","[]"),V(T,"to_s","inspect"),Y.$pristine(T.$singleton_class(),"allocate"),Y.$pristine(T,"copy_instance_variables","initialize_dup")}("::",Array,f)};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,l=e.hash_delete,$=e.deny_frozen_access,h=e.freeze,d=e.klass,w=e.slice,A=e.Opal,N=e.Kernel,U=e.defs,O=e.def,j=e.send,q=e.rb_ge,Y=e.rb_gt,he=e.hash2,ne=e.truthy,_e=e.to_a,Q=e.return_self,be=e.alias,oe=e.top,Ee=[],te=e.nil,Ce=e.$$$;return e.add_stubs("require,include,coerce_to?,[],merge!,allocate,raise,coerce_to!,each,fetch,>=,>,==,compare_by_identity,lambda?,abs,arity,enum_for,size,respond_to?,class,dig,except!,dup,delete,new,inspect,map,to_proc,flatten,frozen?,eql?,default,default_proc,default_proc=,default=,to_h,proc,clone,select,select!,has_key?,indexes,index,length,[]=,has_value?"),oe.$require("corelib/enumerable"),function(de,k,Ae){var B=d(de,k,"Hash"),pe=[B].concat(Ae),W=e.$r(pe);B.$include(Ce("Enumerable")),B.$$prototype.$$is_hash=!0,U(B,"$[]",function(V){var x,f,o=this;x=w(arguments),f=x;var c,p=f.length,m;if(p===1){if(c=A["$coerce_to?"](f["$[]"](0),Ce("Hash"),"to_hash"),c!==te)return o.$allocate()["$merge!"](c);for(f=A["$coerce_to?"](f["$[]"](0),Ce("Array"),"to_ary"),f===te&&N.$raise(Ce("ArgumentError"),"odd number of arguments for Hash"),p=f.length,c=o.$allocate(),m=0;m<p;m++)if(f[m].$$is_array)switch(f[m].length){case 1:c.$store(f[m][0],te);break;case 2:c.$store(f[m][0],f[m][1]);break;default:N.$raise(Ce("ArgumentError"),"invalid number of elements ("+f[m].length+" for 1..2)")}return c}for(p%2!==0&&N.$raise(Ce("ArgumentError"),"odd number of arguments for Hash"),c=o.$allocate(),m=0;m<p;m+=2)c.$store(f[m],f[m+1]);return c},-1),U(B,"$allocate",function(){var V=this,x=new V.$$constructor;return n(x),x.$$none=te,x.$$proc=te,x}),U(B,"$try_convert",function(V){return A["$coerce_to?"](V,Ce("Hash"),"to_hash")}),O(B,"$initialize",function fe(V){var x=fe.$$p||te,f=this;return fe.$$p=null,$(f),V!==void 0&&x!==te&&N.$raise(Ce("ArgumentError"),"wrong number of arguments (1 for 0)"),f.$$none=V===void 0?te:V,f.$$proc=x,f},-1),O(B,"$==",function(V){var x=this;if(x===V)return!0;if(!V.$$is_hash||x.$$keys.length!==V.$$keys.length)return!1;for(var f=0,o=x.$$keys,c=o.length,p,m,E;f<c;f++)if(p=o[f],p.$$is_string?(m=x.$$smap[p],E=V.$$smap[p]):(m=p.value,E=i(V,p.key)),E===void 0||!m["$eql?"](E))return!1;return!0}),O(B,"$>=",function(V){var x=this,f=te;return V=A["$coerce_to!"](V,Ce("Hash"),"to_hash"),x.$$keys.length<V.$$keys.length?!1:(f=!0,j(V,"each",[],function o(c,p){var m=o.$$s==null?this:o.$$s,E=te;if(c==null&&(c=te),p==null&&(p=te),E=m.$fetch(c,null),E==null||E!==p){f=!1;return}},{$$s:x}),f)}),O(B,"$>",function(V){var x=this;return V=A["$coerce_to!"](V,Ce("Hash"),"to_hash"),x.$$keys.length<=V.$$keys.length?!1:q(x,V)}),O(B,"$<",function(V){var x=this;return V=A["$coerce_to!"](V,Ce("Hash"),"to_hash"),Y(V,x)}),O(B,"$<=",function(V){var x=this;return V=A["$coerce_to!"](V,Ce("Hash"),"to_hash"),q(V,x)}),O(B,"$[]",function(V){var x=this,f=i(x,V);return f!==void 0?f:x.$default(V)}),O(B,"$[]=",function(V,x){var f=this;return $(f),s(f,V,x),x}),O(B,"$assoc",function(V){for(var x=this,f=0,o=x.$$keys,c=o.length,p;f<c;f++)if(p=o[f],p.$$is_string){if(p["$=="](V))return[p,x.$$smap[p]]}else if(p.key["$=="](V))return[p.key,p.value];return te}),O(B,"$clear",function(){var V=this;return $(V),n(V),V}),O(B,"$clone",function(){var V=this,x=new V.$$class;return n(x),e.hash_clone(V,x),x}),O(B,"$compact",function(){for(var V=this,x=r(),f=0,o=V.$$keys,c=o.length,p,m,E;f<c;f++)p=o[f],p.$$is_string?m=V.$$smap[p]:(m=p.value,p=p.key),m!==te&&s(x,p,m);return x}),O(B,"$compact!",function(){var V=this;$(V);for(var x=!1,f=0,o=V.$$keys,c=o.length,p,m,E;f<c;f++)p=o[f],p.$$is_string?m=V.$$smap[p]:(m=p.value,p=p.key),m===te&&l(V,p)!==void 0&&(x=!0,c--,f--);return x?V:te}),O(B,"$compare_by_identity",function(){var V=this;$(V);var x,f,o,c=V.$$keys,p;if(V.$$by_identity)return V;if(V.$$keys.length===0)return V.$$by_identity=!0,V;for(p=he([],{}).$compare_by_identity(),x=0,f=c.length;x<f;x++)o=c[x],o.$$is_string||(o=o.key),s(p,o,i(V,o));return V.$$by_identity=!0,V.$$map=p.$$map,V.$$smap=p.$$smap,V}),O(B,"$compare_by_identity?",function(){var V=this;return V.$$by_identity===!0}),O(B,"$default",function(V){var x=this;return V!==void 0&&x.$$proc!==te&&x.$$proc!==void 0?x.$$proc.$call(x,V):x.$$none===void 0?te:x.$$none},-1),O(B,"$default=",function(V){var x=this;return $(x),x.$$proc=te,x.$$none=V,V}),O(B,"$default_proc",function(){var V=this;return V.$$proc!==void 0?V.$$proc:te}),O(B,"$default_proc=",function(V){var x=this;$(x);var f=V;return f!==te&&(f=A["$coerce_to!"](f,Ce("Proc"),"to_proc"),f["$lambda?"]()&&f.$arity().$abs()!==2&&N.$raise(Ce("TypeError"),"default_proc takes two arguments")),x.$$none=te,x.$$proc=f,V}),O(B,"$delete",function fe(V){var x=fe.$$p||te,f=this;fe.$$p=null,$(f);var o=l(f,V);return o!==void 0?o:x!==te?e.yield1(x,V):te}),O(B,"$delete_if",function fe(){var V=fe.$$p||te,x=this;if(fe.$$p=null,!ne(V))return j(x,"enum_for",["delete_if"],function T(){var re=T.$$s==null?this:T.$$s;return re.$size()},{$$s:x});$(x);for(var f=0,o=x.$$keys,c=o.length,p,m,E;f<c;f++)p=o[f],p.$$is_string?m=x.$$smap[p]:(m=p.value,p=p.key),E=V(p,m),E!==!1&&E!==te&&l(x,p)!==void 0&&(c--,f--);return x}),O(B,"$dig",function(V,x){var f,o,c=this,p=te;return f=w(arguments,1),o=f,p=c["$[]"](V),p===te||o.length===0?p:(ne(p["$respond_to?"]("dig"))||N.$raise(Ce("TypeError"),""+p.$class()+" does not have #dig method"),j(p,"dig",_e(o)))},-2),O(B,"$each",function fe(){var V=fe.$$p||te,x=this;if(fe.$$p=null,!ne(V))return j(x,"enum_for",["each"],function E(){var T=E.$$s==null?this:E.$$s;return T.$size()},{$$s:x});for(var f=0,o=x.$$keys.slice(),c=o.length,p,m;f<c;f++)p=o[f],p.$$is_string?m=x.$$smap[p]:(m=p.value,p=p.key),t(V,[p,m]);return x}),O(B,"$each_key",function fe(){var V=fe.$$p||te,x=this;if(fe.$$p=null,!ne(V))return j(x,"enum_for",["each_key"],function m(){var E=m.$$s==null?this:m.$$s;return E.$size()},{$$s:x});for(var f=0,o=x.$$keys.slice(),c=o.length,p;f<c;f++)p=o[f],V(p.$$is_string?p:p.key);return x}),O(B,"$each_value",function fe(){var V=fe.$$p||te,x=this;if(fe.$$p=null,!ne(V))return j(x,"enum_for",["each_value"],function m(){var E=m.$$s==null?this:m.$$s;return E.$size()},{$$s:x});for(var f=0,o=x.$$keys.slice(),c=o.length,p;f<c;f++)p=o[f],V(p.$$is_string?x.$$smap[p]:p.value);return x}),O(B,"$empty?",function(){var V=this;return V.$$keys.length===0}),O(B,"$except",function(V){var x,f,o=this;return x=w(arguments),f=x,j(o.$dup(),"except!",_e(f))},-1),O(B,"$except!",function(V){var x,f,o=this;return x=w(arguments),f=x,j(f,"each",[],function c(p){var m=c.$$s==null?this:c.$$s;return p==null&&(p=te),m.$delete(p)},{$$s:o}),o},-1),O(B,"$fetch",function fe(V,x){var f=fe.$$p||te,o=this;fe.$$p=null;var c=i(o,V);return c!==void 0?c:f!==te?f(V):x!==void 0?x:N.$raise(Ce("KeyError").$new("key not found: "+V.$inspect(),he(["key","receiver"],{key:V,receiver:o})))},-2),O(B,"$fetch_values",function fe(V){var x=fe.$$p||te,f,o,c=this;return fe.$$p=null,f=w(arguments),o=f,j(o,"map",[],function p(m){var E=p.$$s==null?this:p.$$s;return m==null&&(m=te),j(E,"fetch",[m],x.$to_proc())},{$$s:c})},-1),O(B,"$flatten",function(V){var x=this;V==null&&(V=1),V=A["$coerce_to!"](V,Ce("Integer"),"to_int");for(var f=[],o=0,c=x.$$keys,p=c.length,m,E;o<p;o++){if(m=c[o],m.$$is_string?E=x.$$smap[m]:(E=m.value,m=m.key),f.push(m),E.$$is_array){if(V===1){f.push(E);continue}f=f.concat(E.$flatten(V-2));continue}f.push(E)}return f},-1),O(B,"$freeze",function(){var V=this;return ne(V["$frozen?"]())?V:h(V)}),O(B,"$has_key?",function(V){var x=this;return i(x,V)!==void 0}),O(B,"$has_value?",function(V){for(var x=this,f=0,o=x.$$keys,c=o.length,p;f<c;f++)if(p=o[f],(p.$$is_string?x.$$smap[p]:p.value)["$=="](V))return!0;return!1}),O(B,"$hash",function(){var V=this,x=e.hash_ids===void 0,f=V.$object_id(),o=["Hash"],c,p;try{if(x&&(e.hash_ids=Object.create(null)),e[f])return"self";for(c in e.hash_ids)if(p=e.hash_ids[c],V["$eql?"](p))return"self";e.hash_ids[f]=V;for(var m=0,E=V.$$keys,T=E.length;m<T;m++)c=E[m],c.$$is_string?o.push([c,V.$$smap[c].$hash()]):o.push([c.key_hash,c.value.$hash()]);return o.sort().join()}finally{x&&(e.hash_ids=void 0)}}),O(B,"$index",function(V){for(var x=this,f=0,o=x.$$keys,c=o.length,p,m;f<c;f++)if(p=o[f],p.$$is_string?m=x.$$smap[p]:(m=p.value,p=p.key),m["$=="](V))return p;return te}),O(B,"$indexes",function(V){var x,f,o=this;x=w(arguments),f=x;for(var c=[],p=0,m=f.length,E,T;p<m;p++){if(E=f[p],T=i(o,E),T===void 0){c.push(o.$default());continue}c.push(T)}return c},-1);var Fe;return O(B,"$inspect",function(){var V=this,x=Fe===void 0,f=V.$object_id(),o=[];return function(){try{if(x&&(Fe={}),Fe.hasOwnProperty(f))return"{...}";Fe[f]=!0;for(var c=0,p=V.$$keys,m=p.length,E,T;c<m;c++)E=p[c],E.$$is_string?T=V.$$smap[E]:(T=E.value,E=E.key),E=W("Opal").$inspect(E),T=W("Opal").$inspect(T),o.push(E+"=>"+T);return"{"+o.join(", ")+"}"}finally{x&&(Fe=void 0)}}()}),O(B,"$invert",function(){for(var V=this,x=r(),f=0,o=V.$$keys,c=o.length,p,m;f<c;f++)p=o[f],p.$$is_string?m=V.$$smap[p]:(m=p.value,p=p.key),s(x,m,p);return x}),O(B,"$keep_if",function fe(){var V=fe.$$p||te,x=this;if(fe.$$p=null,!ne(V))return j(x,"enum_for",["keep_if"],function T(){var re=T.$$s==null?this:T.$$s;return re.$size()},{$$s:x});$(x);for(var f=0,o=x.$$keys,c=o.length,p,m,E;f<c;f++)p=o[f],p.$$is_string?m=x.$$smap[p]:(m=p.value,p=p.key),E=V(p,m),(E===!1||E===te)&&l(x,p)!==void 0&&(c--,f--);return x}),O(B,"$keys",function(){for(var V=this,x=[],f=0,o=V.$$keys,c=o.length,p;f<c;f++)p=o[f],p.$$is_string?x.push(p):x.push(p.key);return x}),O(B,"$length",function(){var V=this;return V.$$keys.length}),O(B,"$merge",function fe(V){var x=fe.$$p||te,f,o,c=this;return fe.$$p=null,f=w(arguments),o=f,j(c.$dup(),"merge!",_e(o),x.$to_proc())},-1),O(B,"$merge!",function fe(V){var x=fe.$$p||te,f,o,c=this;fe.$$p=null,f=w(arguments),o=f,$(c);var p,m,E,T,re,je,nt,ft;for(p=0;p<o.length;++p)if(E=A["$coerce_to!"](o[p],Ce("Hash"),"to_hash"),T=E.$$keys,re=T.length,x===te)for(m=0;m<re;m++)je=T[m],je.$$is_string?ft=E.$$smap[je]:(ft=je.value,je=je.key),s(c,je,ft);else for(m=0;m<re;m++){if(je=T[m],je.$$is_string?ft=E.$$smap[je]:(ft=je.value,je=je.key),nt=i(c,je),nt===void 0){s(c,je,ft);continue}s(c,je,x(je,nt,ft))}return c},-1),O(B,"$rassoc",function(V){for(var x=this,f=0,o=x.$$keys,c=o.length,p,m;f<c;f++)if(p=o[f],p.$$is_string?m=x.$$smap[p]:(m=p.value,p=p.key),m["$=="](V))return[p,m];return te}),O(B,"$rehash",function(){var V=this;return $(V),e.hash_rehash(V),V}),O(B,"$reject",function fe(){var V=fe.$$p||te,x=this;if(fe.$$p=null,!ne(V))return j(x,"enum_for",["reject"],function re(){var je=re.$$s==null?this:re.$$s;return je.$size()},{$$s:x});for(var f=r(),o=0,c=x.$$keys,p=c.length,m,E,T;o<p;o++)m=c[o],m.$$is_string?E=x.$$smap[m]:(E=m.value,m=m.key),T=V(m,E),(T===!1||T===te)&&s(f,m,E);return f}),O(B,"$reject!",function fe(){var V=fe.$$p||te,x=this;if(fe.$$p=null,!ne(V))return j(x,"enum_for",["reject!"],function re(){var je=re.$$s==null?this:re.$$s;return je.$size()},{$$s:x});$(x);for(var f=!1,o=0,c=x.$$keys,p=c.length,m,E,T;o<p;o++)m=c[o],m.$$is_string?E=x.$$smap[m]:(E=m.value,m=m.key),T=V(m,E),T!==!1&&T!==te&&l(x,m)!==void 0&&(f=!0,p--,o--);return f?x:te}),O(B,"$replace",function(V){var x=this;$(x),V=A["$coerce_to!"](V,Ce("Hash"),"to_hash"),n(x);for(var f=0,o=V.$$keys,c=o.length,p,m,E;f<c;f++)p=o[f],p.$$is_string?E=V.$$smap[p]:(E=p.value,p=p.key),s(x,p,E);return ne(V.$default_proc())?x["$default_proc="](V.$default_proc()):x["$default="](V.$default()),x}),O(B,"$select",function fe(){var V=fe.$$p||te,x=this;if(fe.$$p=null,!ne(V))return j(x,"enum_for",["select"],function re(){var je=re.$$s==null?this:re.$$s;return je.$size()},{$$s:x});for(var f=r(),o=0,c=x.$$keys,p=c.length,m,E,T;o<p;o++)m=c[o],m.$$is_string?E=x.$$smap[m]:(E=m.value,m=m.key),T=V(m,E),T!==!1&&T!==te&&s(f,m,E);return f}),O(B,"$select!",function fe(){var V=fe.$$p||te,x=this;if(fe.$$p=null,!ne(V))return j(x,"enum_for",["select!"],function re(){var je=re.$$s==null?this:re.$$s;return je.$size()},{$$s:x});$(x);for(var f=te,o=0,c=x.$$keys,p=c.length,m,E,T;o<p;o++)m=c[o],m.$$is_string?E=x.$$smap[m]:(E=m.value,m=m.key),T=V(m,E),(T===!1||T===te)&&(l(x,m)!==void 0&&(p--,o--),f=x);return f}),O(B,"$shift",function(){var V=this;$(V);var x=V.$$keys,f;return x.length>0?(f=x[0],f=f.$$is_string?f:f.key,[f,l(V,f)]):te}),O(B,"$slice",function(V){var x,f,o=this;x=w(arguments),f=x;for(var c=r(),p=0,m=f.length;p<m;p++){var E=f[p],T=i(o,E);T!==void 0&&s(c,E,T)}return c},-1),O(B,"$to_a",function(){for(var V=this,x=[],f=0,o=V.$$keys,c=o.length,p,m;f<c;f++)p=o[f],p.$$is_string?m=V.$$smap[p]:(m=p.value,p=p.key),x.push([p,m]);return x}),O(B,"$to_h",function fe(){var V=fe.$$p||te,x=this;if(fe.$$p=null,V!==te)return j(x,"map",[],V.$to_proc()).$to_h();if(x.$$class===e.Hash)return x;var f=new e.Hash;return n(f),e.hash_clone(x,f),f}),O(B,"$to_hash",Q),O(B,"$to_proc",function(){var V=this;return j(V,"proc",[],function x(f){var o=x.$$s==null?this:x.$$s;return f==null&&N.$raise(Ce("ArgumentError"),"no key given"),o["$[]"](f)},{$$arity:-1,$$s:V})}),O(B,"$transform_keys",function fe(){var V=fe.$$p||te,x=this;if(fe.$$p=null,!ne(V))return j(x,"enum_for",["transform_keys"],function T(){var re=T.$$s==null?this:T.$$s;return re.$size()},{$$s:x});for(var f=r(),o=0,c=x.$$keys,p=c.length,m,E;o<p;o++)m=c[o],m.$$is_string?E=x.$$smap[m]:(E=m.value,m=m.key),m=t(V,m),s(f,m,E);return f}),O(B,"$transform_keys!",function fe(){var V=fe.$$p||te,x=this;if(fe.$$p=null,!ne(V))return j(x,"enum_for",["transform_keys!"],function T(){var re=T.$$s==null?this:T.$$s;return re.$size()},{$$s:x});$(x);var f=e.slice(x.$$keys),o,c=f.length,p,m,E;for(o=0;o<c;o++)p=f[o],p.$$is_string?m=x.$$smap[p]:(m=p.value,p=p.key),E=t(V,p),l(x,p),s(x,E,m);return x}),O(B,"$transform_values",function fe(){var V=fe.$$p||te,x=this;if(fe.$$p=null,!ne(V))return j(x,"enum_for",["transform_values"],function T(){var re=T.$$s==null?this:T.$$s;return re.$size()},{$$s:x});for(var f=r(),o=0,c=x.$$keys,p=c.length,m,E;o<p;o++)m=c[o],m.$$is_string?E=x.$$smap[m]:(E=m.value,m=m.key),E=t(V,E),s(f,m,E);return f}),O(B,"$transform_values!",function fe(){var V=fe.$$p||te,x=this;if(fe.$$p=null,!ne(V))return j(x,"enum_for",["transform_values!"],function E(){var T=E.$$s==null?this:E.$$s;return T.$size()},{$$s:x});$(x);for(var f=0,o=x.$$keys,c=o.length,p,m;f<c;f++)p=o[f],p.$$is_string?m=x.$$smap[p]:(m=p.value,p=p.key),m=t(V,m),s(x,p,m);return x}),O(B,"$values",function(){for(var V=this,x=[],f=0,o=V.$$keys,c=o.length,p;f<c;f++)p=o[f],p.$$is_string?x.push(V.$$smap[p]):x.push(p.value);return x}),be(B,"dup","clone"),be(B,"each_pair","each"),be(B,"eql?","=="),be(B,"filter","select"),be(B,"filter!","select!"),be(B,"include?","has_key?"),be(B,"indices","indexes"),be(B,"key","index"),be(B,"key?","has_key?"),be(B,"member?","has_key?"),be(B,"size","length"),be(B,"store","[]="),be(B,"to_s","inspect"),be(B,"update","merge!"),be(B,"value?","has_value?"),be(B,"values_at","indexes")}("::",null,Ee)};Opal.modules["corelib/number"]=function(e){var t=e.klass,r=e.Opal,n=e.Kernel,i=e.def,s=e.eqeqeq,l=e.truthy,$=e.rb_gt,h=e.not,d=e.rb_lt,w=e.alias,A=e.send2,N=e.find_super,U=e.send,O=e.rb_plus,j=e.rb_minus,q=e.eqeq,Y=e.return_self,he=e.rb_divide,ne=e.to_ary,_e=e.rb_times,Q=e.rb_le,be=e.rb_ge,oe=e.return_val,Ee=e.const_set,te=e.top,Ce=[],de=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?"),te.$require("corelib/numeric"),function(Ae,B,pe){var W=t(Ae,B,"Number");r.$bridge(Number,W),e.prop(W.$$prototype,"$$is_number",!0),W.$$is_number_class=!0,function(o,c){return i(o,"$allocate",function(){var m=this;return n.$raise(k("TypeError"),"allocator undefined for "+m.$name())}),e.udef(o,"$new"),de}(e.get_singleton_class(W)),i(W,"$coerce",function(c){var p=this;if(c===de)n.$raise(k("TypeError"),"can't convert "+c.$class()+" into Float");else{if(c.$$is_string)return[n.$Float(c),p];if(c["$respond_to?"]("to_f"))return[r["$coerce_to!"](c,k("Float"),"to_f"),p];if(c.$$is_number)return[c,p];n.$raise(k("TypeError"),"can't convert "+c.$class()+" into Float")}}),i(W,"$__id__",function(){var c=this;return c*2+1}),i(W,"$+",function(c){var p=this;return c.$$is_number?p+c:p.$__coerced__("+",c)}),i(W,"$-",function(c){var p=this;return c.$$is_number?p-c:p.$__coerced__("-",c)}),i(W,"$*",function(c){var p=this;return c.$$is_number?p*c:p.$__coerced__("*",c)}),i(W,"$/",function(c){var p=this;return c.$$is_number?p/c:p.$__coerced__("/",c)}),i(W,"$%",function(c){var p=this;if(c.$$is_number){if(c==-1/0)return c;if(c==0)n.$raise(k("ZeroDivisionError"),"divided by 0");else return c<0||p<0?(p%c+c)%c:p%c}else return p.$__coerced__("%",c)}),i(W,"$&",function(c){var p=this;return c.$$is_number?p&c:p.$__coerced__("&",c)}),i(W,"$|",function(c){var p=this;return c.$$is_number?p|c:p.$__coerced__("|",c)}),i(W,"$^",function(c){var p=this;return c.$$is_number?p^c:p.$__coerced__("^",c)}),i(W,"$<",function(c){var p=this;return c.$$is_number?p<c:p.$__coerced__("<",c)}),i(W,"$<=",function(c){var p=this;return c.$$is_number?p<=c:p.$__coerced__("<=",c)}),i(W,"$>",function(c){var p=this;return c.$$is_number?p>c:p.$__coerced__(">",c)}),i(W,"$>=",function(c){var p=this;return c.$$is_number?p>=c:p.$__coerced__(">=",c)});var Fe=function(o,c){return c.$$is_number?isNaN(o)||isNaN(c)?de:o>c?1:o<c?-1:0:o.$__coerced__("<=>",c)};i(W,"$<=>",function(c){var p=this;try{return Fe(p,c)}catch(m){if(e.rescue(m,[k("ArgumentError")]))try{return de}finally{e.pop_exception()}else throw m}}),i(W,"$<<",function(c){var p=this;return c=r["$coerce_to!"](c,k("Integer"),"to_int"),c>0?p<<c:p>>-c}),i(W,"$>>",function(c){var p=this;return c=r["$coerce_to!"](c,k("Integer"),"to_int"),c>0?p>>c:p<<-c}),i(W,"$[]",function(c){var p=this;return c=r["$coerce_to!"](c,k("Integer"),"to_int"),c<0?0:c>=32?p<0?1:0:p>>c&1}),i(W,"$+@",function(){var c=this;return+c}),i(W,"$-@",function(){var c=this;return-c}),i(W,"$~",function(){var c=this;return~c}),i(W,"$**",function(c){var p=this;return s(k("Integer"),c)?h(k("Integer")["$==="](p))||l($(c,0))?Math.pow(p,c):k("Rational").$new(p,1)["$**"](c):d(p,0)&&(s(k("Float"),c)||s(k("Rational"),c))?k("Complex").$new(p,0)["$**"](c.$to_f()):l(c.$$is_number!=null)?Math.pow(p,c):p.$__coerced__("**",c)}),i(W,"$==",function(c){var p=this;return c.$$is_number?p.valueOf()===c.valueOf():c["$respond_to?"]("==")?c["$=="](p):!1}),w(W,"===","=="),i(W,"$abs",function(){var c=this;return Math.abs(c)}),i(W,"$abs2",function(){var c=this;return Math.abs(c*c)}),i(W,"$allbits?",function(c){var p=this;return c=r["$coerce_to!"](c,k("Integer"),"to_int"),(p&c)==c}),i(W,"$anybits?",function(c){var p=this;return c=r["$coerce_to!"](c,k("Integer"),"to_int"),(p&c)!==0}),i(W,"$angle",function(){var c=this;return l(c["$nan?"]())?c:c==0?1/c>0?0:Math.PI:c<0?Math.PI:0}),i(W,"$bit_length",function(){var c=this;if(s(k("Integer"),c)||n.$raise(k("NoMethodError").$new("undefined method `bit_length` for "+c+":Float","bit_length")),c===0||c===-1)return 0;for(var p=0,m=c<0?~c:c;m!=0;)p+=1,m>>>=1;return p}),i(W,"$ceil",function(c){var p=this;c==null&&(c=0);var m=p.$to_f();if(m%1===0&&c>=0)return m;var E=Math.pow(10,c),T=Math.ceil(m*E)/E;return m%1===0&&(T=Math.round(T)),T},-1),i(W,"$chr",function(c){var p=this;return e.enc(String.fromCharCode(p),c||"BINARY")},-1),i(W,"$denominator",function o(){var c=o.$$p||de,p=this;return o.$$p=null,l(p["$nan?"]())||l(p["$infinite?"]())?1:A(p,N(p,"denominator",o,!1,!0),"denominator",[],c)}),i(W,"$downto",function o(c){var p=o.$$p||de,m=this;if(o.$$p=null,p===de)return U(m,"enum_for",["downto",c],function T(){var re=T.$$s==null?this:T.$$s;return s(k("Numeric"),c)||n.$raise(k("ArgumentError"),"comparison of "+re.$class()+" with "+c.$class()+" failed"),l($(c,re))?0:O(j(re,c),1)},{$$s:m});c.$$is_number||n.$raise(k("ArgumentError"),"comparison of "+m.$class()+" with "+c.$class()+" failed");for(var E=m;E>=c;E--)p(E);return m}),i(W,"$equal?",function(c){var p=this,m=de;return l(m=p["$=="](c))?m:isNaN(p)&&isNaN(c)}),i(W,"$even?",function(){var c=this;return c%2===0}),i(W,"$floor",function(c){var p=this;c==null&&(c=0);var m=p.$to_f();if(m%1===0&&c>=0)return m;var E=Math.pow(10,c),T=Math.floor(m*E)/E;return m%1===0&&(T=Math.round(T)),T},-1),i(W,"$gcd",function(c){var p=this;s(k("Integer"),c)||n.$raise(k("TypeError"),"not an integer");for(var m=Math.abs(p),E=Math.abs(c);m>0;){var T=m;m=E%m,E=T}return E}),i(W,"$gcdlcm",function(c){var p=this;return[p.$gcd(c),p.$lcm(c)]}),i(W,"$integer?",function(){var c=this;return c%1===0}),i(W,"$is_a?",function o(c){var p=o.$$p||de,m=this;return o.$$p=null,q(c,k("Integer"))&&s(k("Integer"),m)||q(c,k("Integer"))&&s(k("Integer"),m)||q(c,k("Float"))&&s(k("Float"),m)?!0:A(m,N(m,"is_a?",o,!1,!0),"is_a?",[c],p)}),i(W,"$instance_of?",function o(c){var p=o.$$p||de,m=this;return o.$$p=null,q(c,k("Integer"))&&s(k("Integer"),m)||q(c,k("Integer"))&&s(k("Integer"),m)||q(c,k("Float"))&&s(k("Float"),m)?!0:A(m,N(m,"instance_of?",o,!1,!0),"instance_of?",[c],p)}),i(W,"$lcm",function(c){var p=this;return s(k("Integer"),c)||n.$raise(k("TypeError"),"not an integer"),p==0||c==0?0:Math.abs(p*c/p.$gcd(c))}),i(W,"$next",function(){var c=this;return c+1}),i(W,"$nobits?",function(c){var p=this;return c=r["$coerce_to!"](c,k("Integer"),"to_int"),(p&c)==0}),i(W,"$nonzero?",function(){var c=this;return c==0?de:c}),i(W,"$numerator",function o(){var c=o.$$p||de,p=this;return o.$$p=null,l(p["$nan?"]())||l(p["$infinite?"]())?p:A(p,N(p,"numerator",o,!1,!0),"numerator",[],c)}),i(W,"$odd?",function(){var c=this;return c%2!==0}),i(W,"$ord",Y),i(W,"$pow",function(c,p){var m=this;return m==0&&n.$raise(k("ZeroDivisionError"),"divided by 0"),p===void 0?m["$**"](c):(k("Integer")["$==="](c)||n.$raise(k("TypeError"),"Integer#pow() 2nd argument not allowed unless a 1st argument is integer"),c<0&&n.$raise(k("TypeError"),"Integer#pow() 1st argument cannot be negative when 2nd argument specified"),k("Integer")["$==="](p)||n.$raise(k("TypeError"),"Integer#pow() 2nd argument not allowed unless all arguments are integers"),p===0&&n.$raise(k("ZeroDivisionError"),"divided by 0"),m["$**"](c)["$%"](p))},-2),i(W,"$pred",function(){var c=this;return c-1}),i(W,"$quo",function o(c){var p=o.$$p||de,m=this;return o.$$p=null,s(k("Integer"),m)?A(m,N(m,"quo",o,!1,!0),"quo",[c],p):he(m,c)}),i(W,"$rationalize",function(c){var p,m,E=this,T=de,re=de;return arguments.length>1&&n.$raise(k("ArgumentError"),"wrong number of arguments ("+arguments.length+" for 0..1)"),s(k("Integer"),E)?k("Rational").$new(E,1):l(E["$infinite?"]())?n.$raise(k("FloatDomainError"),"Infinity"):l(E["$nan?"]())?n.$raise(k("FloatDomainError"),"NaN"):l(c==null)?(m=k("Math").$frexp(E),p=ne(m),T=p[0]==null?de:p[0],re=p[1]==null?de:p[1],T=k("Math").$ldexp(T,k(k("Float"),"MANT_DIG")).$to_i(),re=j(re,k(k("Float"),"MANT_DIG")),k("Rational").$new(_e(2,T),1["$<<"](j(1,re))).$rationalize(k("Rational").$new(1,1["$<<"](j(1,re))))):E.$to_r().$rationalize(c)},-1),i(W,"$remainder",function(c){var p=this;return j(p,_e(c,he(p,c).$truncate()))}),i(W,"$round",function(c){var p,m,E=this,T=de;if(s(k("Integer"),E)){if(l(c==null)||(s(k("Float"),c)&&l(c["$infinite?"]())&&n.$raise(k("RangeError"),"Infinity"),c=r["$coerce_to!"](c,k("Integer"),"to_int"),l(d(c,k(k("Integer"),"MIN")))&&n.$raise(k("RangeError"),"out of bounds"),l(c>=0)))return E;if(c=c["$-@"](),.415241*c-.125>E.$size())return 0;var re=Math.pow(10,c),je=Math.floor((Math.abs(E)+re/2)/re)*re;return E<0?-je:je}else{if(l(E["$nan?"]())&&l(c==null)&&n.$raise(k("FloatDomainError"),"NaN"),c=r["$coerce_to!"](c||0,k("Integer"),"to_int"),l(Q(c,0)))l(E["$nan?"]())?n.$raise(k("RangeError"),"NaN"):l(E["$infinite?"]())&&n.$raise(k("FloatDomainError"),"Infinity");else{if(q(c,0))return Math.round(E);if(l(E["$nan?"]())||l(E["$infinite?"]()))return E}return m=k("Math").$frexp(E),p=ne(m),p[0]==null||p[0],T=p[1]==null?de:p[1],l(be(c,j(O(k(k("Float"),"DIG"),2),l($(T,0))?he(T,4):j(he(T,3),1))))?E:l(d(c,(l($(T,0))?O(he(T,3),1):he(T,4))["$-@"]()))?0:Math.round(E*Math.pow(10,c))/Math.pow(10,c)}},-1),i(W,"$times",function o(){var c=o.$$p||de,p=this;if(o.$$p=null,!l(c))return U(p,"enum_for",["times"],function E(){var T=E.$$s==null?this:E.$$s;return T},{$$s:p});for(var m=0;m<p;m++)c(m);return p}),i(W,"$to_f",Y),i(W,"$to_i",function(){var c=this;return c<0?Math.ceil(c):Math.floor(c)}),i(W,"$to_r",function(){var c,p,m=this,E=de,T=de;return s(k("Integer"),m)?k("Rational").$new(m,1):(p=k("Math").$frexp(m),c=ne(p),E=c[0]==null?de:c[0],T=c[1]==null?de:c[1],E=k("Math").$ldexp(E,k(k("Float"),"MANT_DIG")).$to_i(),T=j(T,k(k("Float"),"MANT_DIG")),_e(E,k(k("Float"),"RADIX")["$**"](T)).$to_r())}),i(W,"$to_s",function(c){var p=this;return c==null&&(c=10),c=r["$coerce_to!"](c,k("Integer"),"to_int"),(l(d(c,2))||l($(c,36)))&&n.$raise(k("ArgumentError"),"invalid radix "+c),q(p,0)&&l(1/p===-1/0)?"-0.0":p.toString(c)},-1),i(W,"$truncate",function(c){var p=this;c==null&&(c=0);var m=p.$to_f();if(m%1===0&&c>=0)return m;var E=Math.pow(10,c),T=parseInt(m*E,10)/E;return m%1===0&&(T=Math.round(T)),T},-1),i(W,"$digits",function(c){var p=this;c==null&&(c=10),d(p,0)&&n.$raise(k(k("Math"),"DomainError"),"out of domain"),c=r["$coerce_to!"](c,k("Integer"),"to_int"),l(d(c,2))&&n.$raise(k("ArgumentError"),"invalid radix "+c),p!=parseInt(p)&&n.$raise(k("NoMethodError"),"undefined method `digits' for "+p.$inspect());var m=p,E=[];if(p==0)return[0];for(;m!=0;)E.push(m%c),m=parseInt(m/c,10);return E},-1),i(W,"$divmod",function o(c){var p=o.$$p||de,m=this;return o.$$p=null,l(m["$nan?"]())||l(c["$nan?"]())?n.$raise(k("FloatDomainError"),"NaN"):l(m["$infinite?"]())?n.$raise(k("FloatDomainError"),"Infinity"):A(m,N(m,"divmod",o,!1,!0),"divmod",[c],p)}),i(W,"$upto",function o(c){var p=o.$$p||de,m=this;if(o.$$p=null,p===de)return U(m,"enum_for",["upto",c],function T(){var re=T.$$s==null?this:T.$$s;return s(k("Numeric"),c)||n.$raise(k("ArgumentError"),"comparison of "+re.$class()+" with "+c.$class()+" failed"),l(d(c,re))?0:O(j(c,re),1)},{$$s:m});c.$$is_number||n.$raise(k("ArgumentError"),"comparison of "+m.$class()+" with "+c.$class()+" failed");for(var E=m;E<=c;E++)p(E);return m}),i(W,"$zero?",function(){var c=this;return c==0}),i(W,"$size",oe(4)),i(W,"$nan?",function(){var c=this;return isNaN(c)}),i(W,"$finite?",function(){var c=this;return c!=1/0&&c!=-1/0&&!isNaN(c)}),i(W,"$infinite?",function(){var c=this;return c==1/0?1:c==-1/0?-1:de}),i(W,"$positive?",function(){var c=this;return c!=0&&(c==1/0||1/c>0)}),i(W,"$negative?",function(){var c=this;return c==-1/0||1/c<0});function fe(o){var c=new Uint8Array(8);return new DataView(c.buffer).setFloat64(0,o,!0),c}function V(o){return new DataView(o.buffer).getFloat64(0,!0)}function x(o){for(var c=fe(o),p=0;p<c.length;p++)if(c[p]===255)c[p]=0;else{c[p]++;break}return V(c)}function f(o){for(var c=fe(o),p=0;p<c.length;p++)if(c[p]===0)c[p]=255;else{c[p]--;break}return V(c)}return i(W,"$next_float",function(){var c=this;return q(c,k(k("Float"),"INFINITY"))?k(k("Float"),"INFINITY"):l(c["$nan?"]())?k(k("Float"),"NAN"):be(c,0)?x(Math.abs(c)):f(c)}),i(W,"$prev_float",function(){var c=this;return q(c,k(k("Float"),"INFINITY")["$-@"]())?k(k("Float"),"INFINITY")["$-@"]():l(c["$nan?"]())?k(k("Float"),"NAN"):$(c,0)?f(c):-x(Math.abs(c))}),w(W,"arg","angle"),w(W,"eql?","=="),w(W,"fdiv","/"),w(W,"inspect","to_s"),w(W,"kind_of?","is_a?"),w(W,"magnitude","abs"),w(W,"modulo","%"),w(W,"object_id","__id__"),w(W,"phase","angle"),w(W,"succ","next"),w(W,"to_int","to_i")}("::",k("Numeric")),Ee("::","Fixnum",k("Number")),function(Ae,B,pe){var W=t(Ae,B,"Integer"),Fe=[W].concat(pe);return W.$$is_number_class=!0,W.$$is_integer_class=!0,function(fe,V){var x=[fe].concat(V),f=e.$r(x);return i(fe,"$allocate",function(){var c=this;return n.$raise(k("TypeError"),"allocator undefined for "+c.$name())}),e.udef(fe,"$new"),i(fe,"$sqrt",function(c){return c=r["$coerce_to!"](c,k("Integer"),"to_int"),c<0&&n.$raise(k(k("Math"),"DomainError"),'Numerical argument is out of domain - "isqrt"'),parseInt(Math.sqrt(c),10)}),i(fe,"$try_convert",function(c){var p=this;return f("Opal")["$coerce_to?"](c,p,"to_int")})}(e.get_singleton_class(W),Fe),Ee(W,"MAX",Math.pow(2,30)-1),Ee(W,"MIN",-Math.pow(2,30))}("::",k("Numeric"),Ce),function(Ae,B,pe){var W=t(Ae,B,"Float");return W.$$is_number_class=!0,function(Fe,fe){return i(Fe,"$allocate",function(){var x=this;return n.$raise(k("TypeError"),"allocator undefined for "+x.$name())}),e.udef(Fe,"$new"),i(Fe,"$===",function(x){return!!x.$$is_number})}(e.get_singleton_class(W)),Ee(W,"INFINITY",1/0),Ee(W,"MAX",Number.MAX_VALUE),Ee(W,"MIN",Number.MIN_VALUE),Ee(W,"NAN",NaN),Ee(W,"DIG",15),Ee(W,"MANT_DIG",53),Ee(W,"RADIX",2),Ee(W,"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,l=e.send2,$=e.find_super,h=e.rb_lt,d=e.rb_le,w=e.send,A=e.eqeq,N=e.eqeqeq,U=e.return_ivar,O=e.rb_gt,j=e.rb_minus,q=e.Opal,Y=e.rb_divide,he=e.rb_plus,ne=e.rb_times,_e=e.rb_ge,Q=e.thrower,be=e.alias,oe=e.top,Ee=[],te=e.nil,Ce=e.$$$;return e.add_stubs("require,include,attr_reader,raise,nil?,<=>,include?,!,<,<=,enum_for,size,upto,to_proc,respond_to?,class,succ,==,===,exclude_end?,eql?,begin,end,last,to_a,>,-@,-,to_i,coerce_to!,ceil,/,is_a?,new,loop,+,*,>=,each_with_index,%,step,bsearch,inspect,[],hash,cover?"),oe.$require("corelib/enumerable"),function(de,k,Ae){var B=t(de,k,"Range"),pe=[B].concat(Ae),W=e.$r(pe),Fe=B.$$prototype;Fe.begin=Fe.end=Fe.excl=te,B.$include(Ce("Enumerable")),B.$$prototype.$$is_range=!0,B.$attr_reader("begin","end"),i(B,"$initialize",function(x,f,o){var c=this;return o==null&&(o=!1),r(c.begin)&&n.$raise(Ce("NameError"),"'initialize' called twice"),r(x["$<=>"](f))||r(x["$nil?"]())||r(f["$nil?"]())||n.$raise(Ce("ArgumentError"),"bad value for range"),c.begin=x,c.end=f,c.excl=o},-3),i(B,"$===",function(x){var f=this;return f["$include?"](x)});function fe(V){return V.begin===te||V.end===te||V.begin===-1/0||V.end===1/0||V.begin===1/0||V.end===-1/0}return i(B,"$count",function V(){var x=V.$$p||te,f=this;return V.$$p=null,s(x!==te)&&r(fe(f))?Ce(Ce("Float"),"INFINITY"):l(f,$(f,"count",V,!1,!0),"count",[],x)}),i(B,"$to_a",function V(){var x=V.$$p||te,f=this;return V.$$p=null,r(fe(f))&&n.$raise(Ce("TypeError"),"cannot convert endless range to an array"),l(f,$(f,"to_a",V,!1,!0),"to_a",[],x)}),i(B,"$cover?",function(x){var f=this,o=te,c=te,p=te,m=te,E=te;return o=r(c=r(p=r(m=f.begin["$nil?"]())?-1:m)?p:f.begin["$<=>"](x))&&c,E=r(c=r(p=r(m=f.end["$nil?"]())?-1:m)?p:x["$<=>"](f.end))&&c,r(c=r(p=r(f.excl)?r(m=E)?h(E,0):m:r(m=E)?d(E,0):m)?o:p)?d(o,0):c}),i(B,"$each",function V(){var x=V.$$p||te,f=this,o=te,c=te,p=te;if(V.$$p=null,x===te)return w(f,"enum_for",["each"],function T(){var re=T.$$s==null?this:T.$$s;return re.$size()},{$$s:f});var m,E;if(f.begin.$$is_number&&f.end.$$is_number){for((f.begin%1!==0||f.end%1!==0)&&n.$raise(Ce("TypeError"),"can't iterate from Float"),m=f.begin,E=f.end+(r(f.excl)?0:1);m<E;m++)x(m);return f}if(f.begin.$$is_string&&f.end.$$is_string)return w(f.begin,"upto",[f.end,f.excl],x.$to_proc()),f;for(o=f.begin,c=f.end,r(o["$respond_to?"]("succ"))||n.$raise(Ce("TypeError"),"can't iterate from "+o.$class());r(r(p=f.end["$nil?"]())?p:h(o["$<=>"](c),0));)e.yield1(x,o),o=o.$succ();return s(f.excl)&&A(o,c)&&e.yield1(x,o),f}),i(B,"$eql?",function(x){var f=this,o=te,c=te;return N(Ce("Range"),x)?r(o=r(c=f.excl["$==="](x["$exclude_end?"]()))?f.begin["$eql?"](x.$begin()):c)?f.end["$eql?"](x.$end()):o:!1}),i(B,"$exclude_end?",U("excl")),i(B,"$first",function V(x){var f=V.$$p||te,o=this;return V.$$p=null,r(o.begin["$nil?"]())&&n.$raise(Ce("RangeError"),"cannot get the minimum of beginless range"),r(x==null)?o.begin:l(o,$(o,"first",V,!1,!0),"first",[x],f)},-1),i(B,"$last",function(x){var f=this;return r(f.end["$nil?"]())&&n.$raise(Ce("RangeError"),"cannot get the maximum of endless range"),r(x==null)?f.end:f.$to_a().$last(x)},-1),i(B,"$max",function V(){var x=V.$$p||te,f=this;return V.$$p=null,r(f.end["$nil?"]())?n.$raise(Ce("RangeError"),"cannot get the maximum of endless range"):x!==te?l(f,$(f,"max",V,!1,!0),"max",[],x):s(f.begin["$nil?"]())&&(r(O(f.begin,f.end))||r(f.excl)&&A(f.begin,f.end))?te:f.excl?f.end-1:f.end}),i(B,"$min",function V(){var x=V.$$p||te,f=this;return V.$$p=null,r(f.begin["$nil?"]())?n.$raise(Ce("RangeError"),"cannot get the minimum of beginless range"):x!==te?l(f,$(f,"min",V,!1,!0),"min",[],x):s(f.end["$nil?"]())&&(r(O(f.begin,f.end))||r(f.excl)&&A(f.begin,f.end))?te:f.begin}),i(B,"$size",function(){var x=this,f=te,o=te,c=te;return f=Ce(Ce("Float"),"INFINITY"),A(x.begin,f)&&s(x.end["$nil?"]())||A(x.end,f["$-@"]())&&s(x.begin["$nil?"]())?0:r(fe(x))?f:N(Ce("Numeric"),x.begin)&&N(Ce("Numeric"),x.end)?(o=x.begin,c=x.end,r(x.excl)&&(c=j(c,1)),r(h(c,o))?0:(Math.abs(c-o)+1).$to_i()):te}),i(B,"$step",function V(x){var f=V.$$p||te,o=this,c=te,p=te;V.$$p=null;function m(){x==null?x=1:x.$$is_number||(x=q["$coerce_to!"](x,Ce("Integer"),"to_int")),x<0?n.$raise(Ce("ArgumentError"),"step can't be negative"):x===0&&n.$raise(Ce("ArgumentError"),"step can't be 0")}function E(){if(!o.begin["$respond_to?"]("succ")||o.begin.$$is_string&&o.end.$$is_string)return te;if(x%1===0)return Y(o.$size(),x).$ceil();var T=o.begin,re=o.end,je=Math.abs,nt=Math.floor,ft=(je(T)+je(re)+je(re-T))/je(x)*Ce(Ce("Float"),"EPSILON"),yt;return ft>.5&&(ft=.5),o.excl?(yt=nt((re-T)/x-ft),yt*x+T<re&&yt++):yt=nt((re-T)/x+ft)+1,yt}return f===te?(r(o.begin["$is_a?"](W("Numeric")))||r(o.begin["$nil?"]()))&&(r(o.end["$is_a?"](W("Numeric")))||r(o.end["$nil?"]()))&&s(r(c=o.begin["$nil?"]())?o.end["$nil?"]():c)?Ce(Ce("Enumerator"),"ArithmeticSequence").$new(o,x,"step"):w(o,"enum_for",["step",x],function(){return m(),E()}):(m(),r(o.begin.$$is_number&&o.end.$$is_number)?(p=0,function(){try{var T=Q("break");return w(o,"loop",[],function re(){var je=re.$$s==null?this:re.$$s,nt=te;return je.begin==null&&(je.begin=te),je.excl==null&&(je.excl=te),je.end==null&&(je.end=te),nt=he(je.begin,ne(p,x)),r(je.excl)?r(_e(nt,je.end))&&T.$throw():r(O(nt,je.end))&&T.$throw(),e.yield1(f,nt),p=he(p,1)},{$$s:o})}catch(re){if(re===T)return re.$v;throw re}}()):(o.begin.$$is_string&&o.end.$$is_string&&x%1!==0&&n.$raise(Ce("TypeError"),"no implicit conversion to float from string"),w(o,"each_with_index",[],function(re,je){return re==null&&(re=te),je==null&&(je=te),A(je["$%"](x),0)?e.yield1(f,re):te})),o)},-1),i(B,"$%",function(x){var f=this;return r(f.begin["$is_a?"](W("Numeric")))&&r(f.end["$is_a?"](W("Numeric")))?Ce(Ce("Enumerator"),"ArithmeticSequence").$new(f,x,"%"):f.$step(x)}),i(B,"$bsearch",function V(){var x=V.$$p||te,f=this;return V.$$p=null,x===te?f.$enum_for("bsearch"):(r(fe(f)&&(f.begin.$$is_number||f.end.$$is_number))&&n.$raise(Ce("NotImplementedError"),"Can't #bsearch an infinite range"),r(f.begin.$$is_number&&f.end.$$is_number)||n.$raise(Ce("TypeError"),"can't do binary search for "+f.begin.$class()),w(f.$to_a(),"bsearch",[],x.$to_proc()))}),i(B,"$to_s",function(){var x=this,f=te;return""+(r(f=x.begin)?f:"")+(r(x.excl)?"...":"..")+(r(f=x.end)?f:"")}),i(B,"$inspect",function(){var x=this,f=te;return""+(r(f=x.begin)?x.begin.$inspect():f)+(r(x.excl)?"...":"..")+(r(f=x.end)?x.end.$inspect():f)}),i(B,"$marshal_load",function(x){var f=this;return f.begin=x["$[]"]("begin"),f.end=x["$[]"]("end"),f.excl=x["$[]"]("excl")}),i(B,"$hash",function(){var x=this;return[x.begin,x.end,x.excl].$hash()}),be(B,"==","eql?"),be(B,"include?","cover?"),be(B,"member?","cover?")}("::",null,Ee)};Opal.modules["corelib/proc"]=function(e){var t=e.slice,r=e.klass,n=e.truthy,i=e.Kernel,s=e.defs,l=e.def,$=e.send,h=e.to_a,d=e.return_self,w=e.ensure_kwargs,A=e.Opal,N=e.alias,U=e.nil,O=e.$$$;return e.add_stubs("raise,proc,call,to_proc,new,source_location,coerce_to!,dup"),function(j,q){var Y=r(j,q,"Proc");return e.prop(Y.$$prototype,"$$is_proc",!0),e.prop(Y.$$prototype,"$$is_lambda",!1),s(Y,"$new",function he(){var ne=he.$$p||U;return he.$$p=null,n(ne)||i.$raise(O("ArgumentError"),"tried to create a Proc object without a block"),ne}),l(Y,"$call",function he(ne){var _e=he.$$p||U,Q,be,oe=this;he.$$p=null,Q=t(arguments),be=Q,_e!==U&&(oe.$$p=_e);var Ee,te=oe.$$brk,Ce=oe.$$ret;if(te||Ce&&oe.$$is_lambda)try{oe.$$is_lambda?Ee=oe.apply(null,be):Ee=e.yieldX(oe,be)}catch(de){if(de===te)return de.$v;if(oe.$$is_lambda&&de===Ce)return de.$v;throw de}else oe.$$is_lambda?Ee=oe.apply(null,be):Ee=e.yieldX(oe,be);return Ee},-1),l(Y,"$>>",function he(ne){he.$$p;var _e=this;return he.$$p=null,$(i,"proc",[],function Q(be){var oe=Q.$$p||U,Ee,te,Ce=Q.$$s==null?this:Q.$$s,de=U;return Q.$$p=null,Ee=t(arguments),te=Ee,de=$(Ce,"call",h(te),oe.$to_proc()),ne.$call(de)},{$$arity:-1,$$s:_e})}),l(Y,"$<<",function he(ne){he.$$p;var _e=this;return he.$$p=null,$(i,"proc",[],function Q(be){var oe=Q.$$p||U,Ee,te,Ce=Q.$$s==null?this:Q.$$s,de=U;return Q.$$p=null,Ee=t(arguments),te=Ee,de=$(ne,"call",h(te),oe.$to_proc()),Ce.$call(de)},{$$arity:-1,$$s:_e})}),l(Y,"$to_proc",d),l(Y,"$lambda?",function(){var ne=this;return!!ne.$$is_lambda}),l(Y,"$arity",function(){var ne=this;return ne.$$is_curried?-1:ne.$$arity!=null?ne.$$arity:ne.length}),l(Y,"$source_location",function(){var ne=this,_e=U;return ne.$$is_curried?U:n(_e=ne.$$source_location)?_e:U}),l(Y,"$binding",function(){var ne=this;return ne.$$is_curried&&i.$raise(O("ArgumentError"),"Can't create Binding"),n(O("::","Binding","skip_raise")?"constant":U)?O("Binding").$new(U,[],ne.$$s,ne.$source_location()):U}),l(Y,"$parameters",function(ne){var _e,Q=this;if(ne=w(ne),_e=ne.$$smap.lambda,Q.$$is_curried)return[["rest"]];if(Q.$$parameters){if(_e??Q.$$is_lambda)return Q.$$parameters;var be=[],oe,Ee;for(oe=0,Ee=Q.$$parameters.length;oe<Ee;oe++){var te=Q.$$parameters[oe];te[0]==="req"&&(te=["opt",te[1]]),be.push(te)}return be}else return[]},-1),l(Y,"$curry",function(ne){var _e=this;ne===void 0?ne=_e.length:(ne=A["$coerce_to!"](ne,O("Integer"),"to_int"),_e.$$is_lambda&&ne!==_e.length&&i.$raise(O("ArgumentError"),"wrong number of arguments ("+ne+" for "+_e.length+")"));function Q(){var be=t(arguments),oe=be.length,Ee;return oe>ne&&_e.$$is_lambda&&!_e.$$is_curried&&i.$raise(O("ArgumentError"),"wrong number of arguments ("+oe+" for "+ne+")"),oe>=ne?_e.$call.apply(_e,be):(Ee=function(){return Q.apply(null,be.concat(t(arguments)))},Ee.$$is_lambda=_e.$$is_lambda,Ee.$$is_curried=!0,Ee)}return Q.$$is_lambda=_e.$$is_lambda,Q.$$is_curried=!0,Q},-1),l(Y,"$dup",function(){var ne=this,_e=ne.$$original_proc||ne,Q=function(){return _e.apply(this,arguments)};for(var be in ne)ne.hasOwnProperty(be)&&(Q[be]=ne[be]);return Q}),N(Y,"===","call"),N(Y,"clone","dup"),N(Y,"yield","call"),N(Y,"[]","call")}("::",Function)};Opal.modules["corelib/method"]=function(e){var t=e.klass,r=e.def,n=e.truthy,i=e.slice,s=e.alias,l=e.Kernel,$=e.send,h=e.to_a,d=e.nil,w=e.$$$;return e.add_stubs("attr_reader,arity,curry,>>,<<,new,class,join,source_location,call,raise,bind,to_proc"),function(A,N){var U=t(A,N,"Method"),O=U.$$prototype;return O.method=O.receiver=O.owner=O.name=d,U.$attr_reader("owner","receiver","name"),r(U,"$initialize",function(q,Y,he,ne){var _e=this;return _e.receiver=q,_e.owner=Y,_e.name=ne,_e.method=he}),r(U,"$arity",function(){var q=this;return q.method.$arity()}),r(U,"$parameters",function(){var q=this;return q.method.$$parameters}),r(U,"$source_location",function(){var q=this,Y=d;return n(Y=q.method.$$source_location)?Y:["(eval)",0]}),r(U,"$comments",function(){var q=this,Y=d;return n(Y=q.method.$$comments)?Y:[]}),r(U,"$call",function j(q){var Y=j.$$p||d,he,ne,_e=this;return j.$$p=null,he=i(arguments),ne=he,_e.method.$$p=Y,_e.method.apply(_e.receiver,ne)},-1),r(U,"$curry",function(q){var Y=this;return Y.method.$curry(q)},-1),r(U,"$>>",function(q){var Y=this;return Y.method["$>>"](q)}),r(U,"$<<",function(q){var Y=this;return Y.method["$<<"](q)}),r(U,"$unbind",function(){var q=this;return w("UnboundMethod").$new(q.receiver.$class(),q.owner,q.method,q.name)}),r(U,"$to_proc",function(){var q=this,Y=q.$call.bind(q);return Y.$$unbound=q.method,Y.$$is_lambda=!0,Y.$$arity=q.method.$$arity==null?q.method.length:q.method.$$arity,Y.$$parameters=q.method.$$parameters,Y}),r(U,"$inspect",function(){var q=this;return"#<"+q.$class()+": "+q.receiver.$class()+"#"+q.name+" (defined in "+q.owner+" in "+q.$source_location().$join(":")+")>"}),s(U,"[]","call"),s(U,"===","call")}("::",null),function(A,N){var U=t(A,N,"UnboundMethod"),O=U.$$prototype;return O.method=O.owner=O.name=O.source=d,U.$attr_reader("source","owner","name"),r(U,"$initialize",function(q,Y,he,ne){var _e=this;return _e.source=q,_e.owner=Y,_e.method=he,_e.name=ne}),r(U,"$arity",function(){var q=this;return q.method.$arity()}),r(U,"$parameters",function(){var q=this;return q.method.$$parameters}),r(U,"$source_location",function(){var q=this,Y=d;return n(Y=q.method.$$source_location)?Y:["(eval)",0]}),r(U,"$comments",function(){var q=this,Y=d;return n(Y=q.method.$$comments)?Y:[]}),r(U,"$bind",function(q){var Y=this;if(Y.owner.$$is_module||e.is_a(q,Y.owner))return w("Method").$new(q,Y.owner,Y.method,Y.name);l.$raise(w("TypeError"),"can't bind singleton method to a different class (expected "+q+".kind_of?("+Y.owner+" to be true)")}),r(U,"$bind_call",function j(q,Y){var he=j.$$p||d,ne,_e,Q=this;return j.$$p=null,ne=i(arguments,1),_e=ne,$(Q.$bind(q),"call",h(_e),he.$to_proc())},-2),r(U,"$inspect",function(){var q=this;return"#<"+q.$class()+": "+q.source+"#"+q.name+" (defined in "+q.owner+" in "+q.$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["/"]=`
|
|
444
|
-
`,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,l=e.return_ivar,$=e.return_val,h=e.slice,d=e.Kernel,w=e.gvars,A=e.send,N=e.to_a,U=e.rb_plus,O=e.neqeq,j=e.range,q=e.hash2,Y=e.eqeq,he=e.to_ary,ne=e.rb_gt,_e=e.assign_ivar_val,Q=e.alias,be,oe=e.nil,Ee=e.$$$;e.add_stubs("attr_reader,attr_accessor,!,match?,include?,size,write,String,flatten,puts,sysread_noraise,+,!=,[],ord,getc,readchar,raise,gets,==,to_str,length,split,sub,sysread,>,to_a,each_line,enum_for,getbyte,closed_write?,closed_read?,each,eof,new,write_proc=,read_proc="),function(Ce,de){var k=t(Ce,de,"IO"),Ae=k.$$prototype;return Ae.read_buffer=Ae.closed=oe,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(pe,W){var Fe=this;return W==null&&(W="r"),Fe.fd=pe,Fe.flags=W,Fe.eof=!1,i(W["$include?"]("r"))&&n(W["$match?"](/[wa+]/))?Fe.closed="write":i(W["$match?"](/[wa]/))&&n(W["$match?"](/[r+]/))?Fe.closed="read":oe},-2),s(k,"$fileno",l("fd")),s(k,"$tty?",function(){var pe=this;return pe.tty==!0}),s(k,"$write",function(pe){var W=this;return W.write_proc(pe),pe.$size()}),s(k,"$flush",$(oe)),s(k,"$<<",function(pe){var W=this;return W.$write(pe),W}),s(k,"$print",function(pe){var W,Fe,fe=this;w[","]==null&&(w[","]=oe),W=h(arguments),Fe=W;for(var V=0,x=Fe.length;V<x;V++)Fe[V]=d.$String(Fe[V]);return fe.$write(Fe.join(w[","])),oe},-1),s(k,"$puts",function(pe){var W,Fe,fe=this;W=h(arguments),Fe=W;var V;if(Fe.length===0)return fe.$write(`
|
|
445
|
-
`),oe;for(var x=0,f=Fe.length;x<f;x++)if(Fe[x].$$is_array){var o=Fe[x].$flatten();o.length>0&&A(fe,"puts",N(o))}else Fe[x].$$is_string?V=Fe[x].valueOf():V=d.$String(Fe[x]),V.endsWith(`
|
|
446
|
-
`)||(V+=`
|
|
447
|
-
`),fe.$write(V);return oe},-1),s(k,"$getc",function(){var pe=this,W=oe,Fe=oe,fe=oe;pe.read_buffer=i(W=pe.read_buffer)?W:"",Fe="";do if(pe.read_buffer=U(pe.read_buffer,Fe),O(pe.read_buffer,""))return fe=pe.read_buffer["$[]"](0),pe.read_buffer=pe.read_buffer["$[]"](j(1,-1,!1)),fe;while(i(Fe=pe.$sysread_noraise(1)));return oe}),s(k,"$getbyte",function(){var pe,W=this;return pe=W.$getc(),pe===oe||pe==null?oe:pe.$ord()}),s(k,"$readbyte",function(){var pe=this;return pe.$readchar().$ord()}),s(k,"$readchar",function(){var pe=this,W=oe;return i(W=pe.$getc())?W:d.$raise(Ee("EOFError"),"end of file reached")}),s(k,"$readline",function(pe){var W,Fe,fe=this,V=oe;return W=h(arguments),Fe=W,i(V=A(fe,"gets",N(Fe)))?V:d.$raise(Ee("EOFError"),"end of file reached")},-1),s(k,"$gets",function(pe,W,Fe){var fe,V,x=this,f=oe,o=oe,c=oe,p=oe,m=oe,E=oe;w["/"]==null&&(w["/"]=oe),pe==null&&(pe=!1),W==null&&(W=oe),Fe==null&&(Fe=q([],{})),i(pe.$$is_number)&&n(W)&&(fe=[!1,pe,W],pe=fe[0],W=fe[1],Fe=fe[2]),i(pe.$$is_hash)&&n(W)&&Y(Fe,q([],{}))?(fe=[!1,oe,pe],pe=fe[0],W=fe[1],Fe=fe[2]):i(W.$$is_hash)&&Y(Fe,q([],{}))&&(fe=[pe,oe,W],pe=fe[0],W=fe[1],Fe=fe[2]),f=pe,Y(pe,!1)&&(pe=w["/"]),Y(pe,"")&&(pe=/\r?\n\r?\n/),pe=i(o=pe)?o:"",Y(f,"")||(pe=pe.$to_str()),c=Y(f,"")?2:pe.$length(),Y(pe," ")&&(pe=/ /),x.read_buffer=i(o=x.read_buffer)?o:"",p="",m=oe;do if(x.read_buffer=U(x.read_buffer,p),O(pe,"")&&i(i(pe.$$is_regexp)?x.read_buffer["$match?"](pe):x.read_buffer["$include?"](pe))){E=x.read_buffer,V=x.read_buffer.$split(pe,2),fe=he(V),m=fe[0]==null?oe:fe[0],x.read_buffer=fe[1]==null?oe:fe[1],O(m,E)&&(m=U(m,E["$[]"](m.$length(),c)));break}while(i(p=x.$sysread_noraise(Y(pe,"")?65536:1)));return i(m)||(fe=[i(o=x.read_buffer)?o:"",""],m=fe[0],x.read_buffer=fe[1],Y(m,"")&&(m=oe)),i(m)&&(i(W)&&(m=m["$[]"](e.Range.$new(0,W,!0)),x.read_buffer=U(m["$[]"](e.Range.$new(W,-1,!1)),x.read_buffer)),i(Fe["$[]"]("chomp"))&&(m=m.$sub(/\r?\n$/,"")),Y(f,"")&&(m=m.$sub(/^[\r\n]+/,""))),Y(f,!1)&&(w._=m),m},-1),s(k,"$sysread",function(pe){var W=this,Fe=oe;return i(Fe=W.read_proc(pe))?Fe:(W.eof=!0,d.$raise(Ee("EOFError"),"end of file reached"))}),s(k,"$sysread_noraise",function(pe){var W=this;try{return W.$sysread(pe)}catch(Fe){if(e.rescue(Fe,[Ee("EOFError")]))try{return oe}finally{e.pop_exception()}else throw Fe}}),s(k,"$readpartial",function(pe){var W,Fe=this,fe=oe,V=oe,x=oe;return Fe.read_buffer=i(fe=Fe.read_buffer)?fe:"",V=Fe.$sysread(pe),W=[U(Fe.read_buffer,i(fe=V)?fe:""),""],x=W[0],Fe.read_buffer=W[1],Y(x,"")&&(x=oe),x}),s(k,"$read",function(pe){var W,Fe=this,fe=oe,V=oe,x=oe;pe==null&&(pe=oe),Fe.read_buffer=i(fe=Fe.read_buffer)?fe:"",V="",x=oe;do if(Fe.read_buffer=U(Fe.read_buffer,V),i(pe)&&i(ne(Fe.read_buffer.$length(),pe)))return W=[Fe.read_buffer["$[]"](e.Range.$new(0,pe,!0)),Fe.read_buffer["$[]"](e.Range.$new(pe,-1,!1))],x=W[0],Fe.read_buffer=W[1],x;while(i(V=Fe.$sysread_noraise(i(fe=pe)?fe:65536)));return W=[Fe.read_buffer,""],x=W[0],Fe.read_buffer=W[1],x},-1),s(k,"$readlines",function(pe){var W=this;return w["/"]==null&&(w["/"]=oe),pe==null&&(pe=w["/"]),W.$each_line(pe).$to_a()},-1),s(k,"$each",function B(pe,W){var Fe=B.$$p||oe,fe,V,x,f=this,o=oe;if(w["/"]==null&&(w["/"]=oe),B.$$p=null,fe=h(arguments),fe.length>0&&(V=fe.shift()),V==null&&(V=w["/"]),x=fe,Fe===oe)return A(f,"enum_for",["each",V].concat(N(x)));for(;i(o=A(f,"gets",[V].concat(N(x))));)e.yield1(Fe,o);return f},-1),s(k,"$each_byte",function B(){var pe=B.$$p||oe,W=this,Fe=oe;if(B.$$p=null,pe===oe)return W.$enum_for("each_byte");for(;i(Fe=W.$getbyte());)e.yield1(pe,Fe);return W}),s(k,"$each_char",function B(){var pe=B.$$p||oe,W=this,Fe=oe;if(B.$$p=null,pe===oe)return W.$enum_for("each_char");for(;i(Fe=W.$getc());)e.yield1(pe,Fe);return W}),s(k,"$close",_e("closed","both")),s(k,"$close_read",function(){var pe=this;return Y(pe.closed,"write")?pe.closed="both":pe.closed="read"}),s(k,"$close_write",function(){var pe=this;return Y(pe.closed,"read")?pe.closed="both":pe.closed="write"}),s(k,"$closed?",function(){var pe=this;return pe.closed["$=="]("both")}),s(k,"$closed_read?",function(){var pe=this,W=oe;return i(W=pe.closed["$=="]("read"))?W:pe.closed["$=="]("both")}),s(k,"$closed_write?",function(){var pe=this,W=oe;return i(W=pe.closed["$=="]("write"))?W:pe.closed["$=="]("both")}),s(k,"$check_writable",function(){var pe=this;return i(pe["$closed_write?"]())?d.$raise(Ee("IOError"),"not opened for writing"):oe}),s(k,"$check_readable",function(){var pe=this;return i(pe["$closed_read?"]())?d.$raise(Ee("IOError"),"not opened for reading"):oe}),Q(k,"each_line","each"),Q(k,"eof?","eof")}("::",null),r("::","STDIN",w.stdin=Ee("IO").$new(0,"r")),r("::","STDOUT",w.stdout=Ee("IO").$new(1,"w")),r("::","STDERR",w.stderr=Ee("IO").$new(2,"w"));var te=e.global.console;return Ee("STDOUT")["$write_proc="](typeof process=="object"&&typeof process.stdout=="object"?function(Ce){process.stdout.write(Ce)}:function(Ce){te.log(Ce)}),Ee("STDERR")["$write_proc="](typeof process=="object"&&typeof process.stderr=="object"?function(Ce){process.stderr.write(Ce)}:function(Ce){te.warn(Ce)}),be=[function(Ce){var de=prompt();return de!==null?de+`
|
|
448
|
-
`:oe}],A(Ee("STDIN"),"read_proc=",be),be[be.length-1]};Opal.modules["opal/regexp_anchors"]=function(e){var t=e.module,r=e.const_set,n=[];e.nil;var i=e.$$$;return e.add_stubs("new"),function(s,l){var $=t(s,"Opal"),h=[$].concat(l),d=e.$r(h);return r($,"REGEXP_START","^"),r($,"REGEXP_END","$"),r($,"FORBIDDEN_STARTING_IDENTIFIER_CHARS","\\u0001-\\u002F\\u003A-\\u0040\\u005B-\\u005E\\u0060\\u007B-\\u007F"),r($,"FORBIDDEN_ENDING_IDENTIFIER_CHARS","\\u0001-\\u0020\\u0022-\\u002F\\u003A-\\u003E\\u0040\\u005B-\\u005E\\u0060\\u007B-\\u007F"),r($,"INLINE_IDENTIFIER_REGEXP",d("Regexp").$new("[^"+i($,"FORBIDDEN_STARTING_IDENTIFIER_CHARS")+"]*[^"+i($,"FORBIDDEN_ENDING_IDENTIFIER_CHARS")+"]")),r($,"FORBIDDEN_CONST_NAME_CHARS","\\u0001-\\u0020\\u0021-\\u002F\\u003B-\\u003F\\u0040\\u005B-\\u005E\\u0060\\u007B-\\u007F"),r($,"CONST_NAME_REGEXP",d("Regexp").$new(""+i($,"REGEXP_START")+"(::)?[A-Z][^"+i($,"FORBIDDEN_CONST_NAME_CHARS")+"]*"+i($,"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,l=e.Opal,$=e.Kernel,h=e.gvars,d=e.def,w=e.alias,A=e.nil,N=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(U){var O=r(U,"Kernel");return d(O,"$format",function(q,Y){var he,ne,_e=A;h.DEBUG==null&&(h.DEBUG=A),he=n(arguments,1),ne=he,s(ne.$length(),1)&&i(ne["$[]"](0)["$respond_to?"]("to_ary"))&&(_e=l["$coerce_to?"](ne["$[]"](0),N("Array"),"to_ary"),i(_e["$nil?"]())||(ne=_e.$to_a()));var Q="",be=0,oe,Ee,te=q.length,Ce,de,k,Ae,B,pe,W,Fe,fe,V,x,f,o,c=1,p=0,m,E=0,T=1,re=2,je=4,nt=8,ft=16,yt=32,zt=64,_t=128;function vt(){m&yt&&$.$raise(N("ArgumentError"),"flag after width"),m&_t&&$.$raise(N("ArgumentError"),"flag after precision")}function mt(){m&yt&&$.$raise(N("ArgumentError"),"width given twice"),m&_t&&$.$raise(N("ArgumentError"),"width after precision")}function xt(v){return v>=ne.length&&$.$raise(N("ArgumentError"),"too few arguments"),ne[v]}function St(){switch(p){case-1:$.$raise(N("ArgumentError"),"unnumbered("+c+") mixed with numbered");case-2:$.$raise(N("ArgumentError"),"unnumbered("+c+") mixed with named")}return p=c++,xt(p-1)}function Oe(v){return p>0&&$.$raise(N("ArgumentError"),"numbered("+v+") after unnumbered("+p+")"),p===-2&&$.$raise(N("ArgumentError"),"numbered("+v+") after named"),v<1&&$.$raise(N("ArgumentError"),"invalid index - "+v+"$"),p=-1,xt(v-1)}function ze(){return o===void 0?St():o}function De(v){for(var M,xe="";;Ee++){if(Ee===te&&$.$raise(N("ArgumentError"),"malformed format string - %*[0-9]"),q.charCodeAt(Ee)<48||q.charCodeAt(Ee)>57)return Ee--,M=parseInt(xe,10)||0,M>2147483647&&$.$raise(N("ArgumentError"),""+v+" too big"),M;xe+=q.charAt(Ee)}}function Ge(v){var M,xe=De(v);return q.charAt(Ee+1)==="$"?(Ee++,M=Oe(xe)):M=St(),M.$to_int()}for(Ee=q.indexOf("%");Ee!==-1;Ee=q.indexOf("%",Ee)){switch(de=void 0,m=E,Ae=-1,B=-1,o=void 0,oe=Ee,Ee++,q.charAt(Ee)){case"%":be=Ee;case"":case`
|
|
449
|
-
`:case"\0":Ee++;continue}e:for(;Ee<te;Ee++)switch(q.charAt(Ee)){case" ":vt(),m|=ft;continue e;case"#":vt(),m|=T;continue e;case"+":vt(),m|=je;continue e;case"-":vt(),m|=re;continue e;case"0":vt(),m|=nt;continue e;case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":if(pe=De("width"),q.charAt(Ee+1)==="$"){if(Ee+2===te){de="%",Ee++;break e}o!==void 0&&$.$raise(N("ArgumentError"),"value given twice - %"+pe+"$"),o=Oe(pe),Ee++}else mt(),m|=yt,Ae=pe;continue e;case"<":case"{":for(Fe=q.charAt(Ee)==="<"?">":"}",W="",Ee++;;Ee++){if(Ee===te&&$.$raise(N("ArgumentError"),"malformed name - unmatched parenthesis"),q.charAt(Ee)===Fe){if(p>0&&$.$raise(N("ArgumentError"),"named "+W+" after unnumbered("+p+")"),p===-1&&$.$raise(N("ArgumentError"),"named "+W+" after numbered"),p=-2,(ne[0]===void 0||!ne[0].$$is_hash)&&$.$raise(N("ArgumentError"),"one hash required"),o=ne[0].$fetch(W),Fe===">")continue e;if(de=o.toString(),B!==-1&&(de=de.slice(0,B)),m&re)for(;de.length<Ae;)de=de+" ";else for(;de.length<Ae;)de=" "+de;break e}W+=q.charAt(Ee)}case"*":Ee++,mt(),m|=yt,Ae=Ge("width"),Ae<0&&(m|=re,Ae=-Ae);continue e;case".":if(m&_t&&$.$raise(N("ArgumentError"),"precision given twice"),m|=zt|_t,B=0,Ee++,q.charAt(Ee)==="*"){Ee++,B=Ge("precision"),B<0&&(m&=~zt);continue e}B=De("precision");continue e;case"d":case"i":case"u":if(Ce=$.$Integer(ze()),Ce>=0){for(de=Ce.toString();de.length<B;)de="0"+de;if(m&re)for((m&je||m&ft)&&(de=(m&je?"+":" ")+de);de.length<Ae;)de=de+" ";else if(m&nt&&B===-1){for(;de.length<Ae-(m&je||m&ft?1:0);)de="0"+de;(m&je||m&ft)&&(de=(m&je?"+":" ")+de)}else for((m&je||m&ft)&&(de=(m&je?"+":" ")+de);de.length<Ae;)de=" "+de}else{for(de=(-Ce).toString();de.length<B;)de="0"+de;if(m&re)for(de="-"+de;de.length<Ae;)de=de+" ";else if(m&nt&&B===-1){for(;de.length<Ae-1;)de="0"+de;de="-"+de}else for(de="-"+de;de.length<Ae;)de=" "+de}break e;case"b":case"B":case"o":case"x":case"X":switch(q.charAt(Ee)){case"b":case"B":fe=2,V="0b",x=/^1+/,f="1";break;case"o":fe=8,V="0",x=/^3?7+/,f="7";break;case"x":case"X":fe=16,V="0x",x=/^f+/,f="f";break}if(Ce=$.$Integer(ze()),Ce>=0){for(de=Ce.toString(fe);de.length<B;)de="0"+de;if(m&re)for((m&je||m&ft)&&(de=(m&je?"+":" ")+de),m&T&&Ce!==0&&(de=V+de);de.length<Ae;)de=de+" ";else if(m&nt&&B===-1){for(;de.length<Ae-(m&je||m&ft?1:0)-(m&T&&Ce!==0?V.length:0);)de="0"+de;m&T&&Ce!==0&&(de=V+de),(m&je||m&ft)&&(de=(m&je?"+":" ")+de)}else for(m&T&&Ce!==0&&(de=V+de),(m&je||m&ft)&&(de=(m&je?"+":" ")+de);de.length<Ae;)de=" "+de}else if(m&je||m&ft){for(de=(-Ce).toString(fe);de.length<B;)de="0"+de;if(m&re)for(m&T&&(de=V+de),de="-"+de;de.length<Ae;)de=de+" ";else if(m&nt&&B===-1){for(;de.length<Ae-1-(m&T?2:0);)de="0"+de;m&T&&(de=V+de),de="-"+de}else for(m&T&&(de=V+de),de="-"+de;de.length<Ae;)de=" "+de}else{for(de=(Ce>>>0).toString(fe).replace(x,f);de.length<B-2;)de=f+de;if(m&re)for(de=".."+de,m&T&&(de=V+de);de.length<Ae;)de=de+" ";else if(m&nt&&B===-1){for(;de.length<Ae-2-(m&T?V.length:0);)de=f+de;de=".."+de,m&T&&(de=V+de)}else for(de=".."+de,m&T&&(de=V+de);de.length<Ae;)de=" "+de}q.charAt(Ee)===q.charAt(Ee).toUpperCase()&&(de=de.toUpperCase());break e;case"f":case"e":case"E":case"g":case"G":if(Ce=$.$Float(ze()),Ce>=0||isNaN(Ce)){if(Ce===1/0)de="Inf";else switch(q.charAt(Ee)){case"f":de=Ce.toFixed(B===-1?6:B);break;case"e":case"E":de=Ce.toExponential(B===-1?6:B);break;case"g":case"G":de=Ce.toExponential(),k=parseInt(de.split("e")[1],10),k<-4||k>=(B===-1?6:B)||(de=Ce.toPrecision(B===-1?m&T?6:void 0:B));break}if(m&re)for((m&je||m&ft)&&(de=(m&je?"+":" ")+de);de.length<Ae;)de=de+" ";else if(m&nt&&Ce!==1/0&&!isNaN(Ce)){for(;de.length<Ae-(m&je||m&ft?1:0);)de="0"+de;(m&je||m&ft)&&(de=(m&je?"+":" ")+de)}else for((m&je||m&ft)&&(de=(m&je?"+":" ")+de);de.length<Ae;)de=" "+de}else{if(Ce===-1/0)de="Inf";else switch(q.charAt(Ee)){case"f":de=(-Ce).toFixed(B===-1?6:B);break;case"e":case"E":de=(-Ce).toExponential(B===-1?6:B);break;case"g":case"G":de=(-Ce).toExponential(),k=parseInt(de.split("e")[1],10),k<-4||k>=(B===-1?6:B)||(de=(-Ce).toPrecision(B===-1?m&T?6:void 0:B));break}if(m&re)for(de="-"+de;de.length<Ae;)de=de+" ";else if(m&nt&&Ce!==-1/0){for(;de.length<Ae-1;)de="0"+de;de="-"+de}else for(de="-"+de;de.length<Ae;)de=" "+de}q.charAt(Ee)===q.charAt(Ee).toUpperCase()&&Ce!==1/0&&Ce!==-1/0&&!isNaN(Ce)&&(de=de.toUpperCase()),de=de.replace(/([eE][-+]?)([0-9])$/,"$10$2");break e;case"a":case"A":$.$raise(N("NotImplementedError"),"`A` and `a` format field types are not implemented in Opal yet");case"c":if(Ce=ze(),Ce["$respond_to?"]("to_ary")&&(Ce=Ce.$to_ary()[0]),Ce["$respond_to?"]("to_str")?de=Ce.$to_str():de=String.fromCharCode(t(Ce,N("Integer"),"to_int")),de.length!==1&&$.$raise(N("ArgumentError"),"%c requires a character"),m&re)for(;de.length<Ae;)de=de+" ";else for(;de.length<Ae;)de=" "+de;break e;case"p":if(de=ze().$inspect(),B!==-1&&(de=de.slice(0,B)),m&re)for(;de.length<Ae;)de=de+" ";else for(;de.length<Ae;)de=" "+de;break e;case"s":if(de=ze().$to_s(),B!==-1&&(de=de.slice(0,B)),m&re)for(;de.length<Ae;)de=de+" ";else for(;de.length<Ae;)de=" "+de;break e;default:$.$raise(N("ArgumentError"),"malformed format string - %"+q.charAt(Ee))}de===void 0&&$.$raise(N("ArgumentError"),"malformed format string - %"),Q+=q.slice(be,oe)+de,be=Ee+1}return h.DEBUG&&p>=0&&c<ne.length&&$.$raise(N("ArgumentError"),"too many arguments for format string"),Q+q.slice(be)},-2),w(O,"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,l=e.defs,$=e.eqeq,h=e.def,d=e.return_ivar,w=e.return_val,A=e.slice,N=e.Kernel,U=e.Opal,O=e.rb_lt,j,q=e.top,Y=[],he=e.$r(Y),ne=e.nil,_e=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="),q.$require("corelib/string"),function(Q,be){var oe=t(Q,be,"Encoding"),Ee=oe.$$prototype;return Ee.name=Ee.dummy=ne,l(oe,"$register",function te(Ce,de){var k=te.$$p||ne,Ae=this,B=ne,pe=ne,W=ne,Fe=ne,fe=ne,V=ne;return te.$$p=null,de==null&&(de=r([],{})),B=n([Ce],i(pe=de["$[]"]("aliases"))?pe:[]),W=i(pe=de["$[]"]("ascii"))&&pe,Fe=i(pe=de["$[]"]("dummy"))&&pe,i(de["$[]"]("inherits"))?(fe=de["$[]"]("inherits").$clone(),fe.$initialize(Ce,B,W,Fe)):fe=Ae.$new(Ce,B,W,Fe),k!==ne&&s(fe,"instance_eval",[],k.$to_proc()),V=e.encodings,s(B,"each",[],function x(f){var o=x.$$s==null?this:x.$$s;return f==null&&(f=ne),o.$const_set(f.$tr("-","_"),fe),V[f]=fe},{$$s:Ae})},-2),l(oe,"$find",function(Ce){var de=this;return $(Ce,"default_external")?de.$default_external():e.find_encoding(Ce)}),oe.$singleton_class().$attr_accessor("default_external"),oe.$attr_reader("name","names"),h(oe,"$initialize",function(Ce,de,k,Ae){var B=this;return B.name=Ce,B.names=de,B.ascii=k,B.dummy=Ae}),h(oe,"$ascii_compatible?",d("ascii")),h(oe,"$dummy?",d("dummy")),h(oe,"$binary?",w(!1)),h(oe,"$to_s",d("name")),h(oe,"$inspect",function(){var Ce=this;return"#<Encoding:"+Ce.name+(i(Ce.dummy)?" (dummy)":ne)+">"}),h(oe,"$charsize",function(Ce){for(var de=0,k=0,Ae=Ce.length;k<Ae;k++){var B=Ce.charCodeAt(k);B>=55296&&B<=56319||de++}return de}),h(oe,"$each_char",function te(Ce){var de=te.$$p||ne;te.$$p=null;for(var k="",Ae=0,B=Ce.length;Ae<B;Ae++){var pe=Ce.charCodeAt(Ae),W=Ce.charAt(Ae);if(pe>=56320&&pe<=57343){k=W;continue}else pe>=55296&&pe<=56319&&(W=k+W);Ce.encoding.name!="UTF-8"&&(W=new String(W),W.encoding=Ce.encoding),e.yield1(de,W)}}),h(oe,"$each_byte",function(Ce){return A(arguments),N.$raise(_e("NotImplementedError"))},-1),h(oe,"$bytesize",function(Ce){return A(arguments),N.$raise(_e("NotImplementedError"))},-1),t("::",_e("StandardError"),"EncodingError"),t("::",_e("EncodingError"),"CompatibilityError"),ne}("::",null),s(_e("Encoding"),"register",["UTF-8",r(["aliases","ascii"],{aliases:["CP65001"],ascii:!0})],function Q(){var be=Q.$$s==null?this:Q.$$s;return h(be,"$each_byte",function oe(Ee){var te=oe.$$p||ne;oe.$$p=null;for(var Ce=1/0,de,k=Ee.length,Ae=null,B=0;B<k;++B){if(de=Ee.charCodeAt(B),de>55295&&de<57344){if(!Ae){if(de>56319){(Ce-=3)>-1&&(e.yield1(te,239),e.yield1(te,191),e.yield1(te,189));continue}else if(B+1===k){(Ce-=3)>-1&&(e.yield1(te,239),e.yield1(te,191),e.yield1(te,189));continue}Ae=de;continue}if(de<56320){(Ce-=3)>-1&&(e.yield1(te,239),e.yield1(te,191),e.yield1(te,189)),Ae=de;continue}de=(Ae-55296<<10|de-56320)+65536}else Ae&&(Ce-=3)>-1&&(e.yield1(te,239),e.yield1(te,191),e.yield1(te,189));if(Ae=null,de<128){if((Ce-=1)<0)break;e.yield1(te,de)}else if(de<2048){if((Ce-=2)<0)break;e.yield1(te,de>>6|192),e.yield1(te,de&63|128)}else if(de<65536){if((Ce-=3)<0)break;e.yield1(te,de>>12|224),e.yield1(te,de>>6&63|128),e.yield1(te,de&63|128)}else if(de<1114112){if((Ce-=4)<0)break;e.yield1(te,de>>18|240),e.yield1(te,de>>12&63|128),e.yield1(te,de>>6&63|128),e.yield1(te,de&63|128)}}}),h(be,"$bytesize",function(Ee){return Ee.$bytes().$length()})},{$$s:q}),s(_e("Encoding"),"register",["UTF-16LE"],function Q(){var be=Q.$$s==null?this:Q.$$s;return h(be,"$each_byte",function oe(Ee){var te=oe.$$p||ne;oe.$$p=null;for(var Ce=0,de=Ee.length;Ce<de;Ce++){var k=Ee.charCodeAt(Ce);e.yield1(te,k&255),e.yield1(te,k>>8)}}),h(be,"$bytesize",function(Ee){return Ee.length*2})},{$$s:q}),s(_e("Encoding"),"register",["UTF-16BE",r(["inherits"],{inherits:_e(_e("Encoding"),"UTF_16LE")})],function Q(){var be=Q.$$s==null?this:Q.$$s;return h(be,"$each_byte",function oe(Ee){var te=oe.$$p||ne;oe.$$p=null;for(var Ce=0,de=Ee.length;Ce<de;Ce++){var k=Ee.charCodeAt(Ce);e.yield1(te,k>>8),e.yield1(te,k&255)}})},{$$s:q}),s(_e("Encoding"),"register",["UTF-32LE"],function Q(){var be=Q.$$s==null?this:Q.$$s;return h(be,"$each_byte",function oe(Ee){var te=oe.$$p||ne;oe.$$p=null;for(var Ce=0,de=Ee.length;Ce<de;Ce++){var k=Ee.charCodeAt(Ce);e.yield1(te,k&255),e.yield1(te,k>>8),e.yield1(te,0),e.yield1(te,0)}}),h(be,"$bytesize",function(Ee){return Ee.length*4})},{$$s:q}),s(_e("Encoding"),"register",["UTF-32BE",r(["inherits"],{inherits:_e(_e("Encoding"),"UTF_32LE")})],function Q(){var be=Q.$$s==null?this:Q.$$s;return h(be,"$each_byte",function oe(Ee){var te=oe.$$p||ne;oe.$$p=null;for(var Ce=0,de=Ee.length;Ce<de;Ce++){var k=Ee.charCodeAt(Ce);e.yield1(te,0),e.yield1(te,0),e.yield1(te,k>>8),e.yield1(te,k&255)}})},{$$s:q}),s(_e("Encoding"),"register",["ASCII-8BIT",r(["aliases","ascii"],{aliases:["BINARY"],ascii:!0})],function Q(){var be=Q.$$s==null?this:Q.$$s;return h(be,"$each_char",function oe(Ee){var te=oe.$$p||ne;oe.$$p=null;for(var Ce=0,de=Ee.length;Ce<de;Ce++){var k=new String(Ee.charAt(Ce));k.encoding=Ee.encoding,e.yield1(te,k)}}),h(be,"$charsize",function(Ee){return Ee.length}),h(be,"$each_byte",function oe(Ee){var te=oe.$$p||ne;oe.$$p=null;for(var Ce=0,de=Ee.length;Ce<de;Ce++){var k=Ee.charCodeAt(Ce);e.yield1(te,k&255)}}),h(be,"$bytesize",function(Ee){return Ee.length}),h(be,"$binary?",w(!0))},{$$s:q}),_e("Encoding").$register("ISO-8859-1",r(["aliases","ascii","inherits"],{aliases:["ISO8859-1"],ascii:!0,inherits:_e(_e("Encoding"),"ASCII_8BIT")})),_e("Encoding").$register("US-ASCII",r(["aliases","ascii","inherits"],{aliases:["ASCII"],ascii:!0,inherits:_e(_e("Encoding"),"ASCII_8BIT")})),function(Q,be){var oe=t(Q,be,"String"),Ee=oe.$$prototype;return Ee.internal_encoding=Ee.bytes=Ee.encoding=ne,oe.$attr_reader("encoding"),oe.$attr_reader("internal_encoding"),e.prop(String.prototype,"bytes",ne),e.prop(String.prototype,"encoding",_e(_e("Encoding"),"UTF_8")),e.prop(String.prototype,"internal_encoding",_e(_e("Encoding"),"UTF_8")),h(oe,"$b",function(){var Ce=this;return Ce.$dup().$force_encoding("binary")}),h(oe,"$bytesize",function(){var Ce=this;return Ce.internal_encoding.$bytesize(Ce)}),h(oe,"$each_byte",function te(){var Ce=te.$$p||ne,de=this;return te.$$p=null,Ce===ne?s(de,"enum_for",["each_byte"],function k(){var Ae=k.$$s==null?this:k.$$s;return Ae.$bytesize()},{$$s:de}):(s(de.internal_encoding,"each_byte",[de],Ce.$to_proc()),de)}),h(oe,"$bytes",function(){var Ce=this,de=ne;return typeof Ce=="string"?new String(Ce).$each_byte().$to_a():(Ce.bytes=i(de=Ce.bytes)?de:Ce.$each_byte().$to_a(),Ce.bytes.$dup())}),h(oe,"$each_char",function te(){var Ce=te.$$p||ne,de=this;return te.$$p=null,Ce===ne?s(de,"enum_for",["each_char"],function k(){var Ae=k.$$s==null?this:k.$$s;return Ae.$length()},{$$s:de}):(s(de.encoding,"each_char",[de],Ce.$to_proc()),de)}),h(oe,"$chars",function te(){var Ce=te.$$p||ne,de=this;return te.$$p=null,i(Ce)?s(de,"each_char",[],Ce.$to_proc()):de.$each_char().$to_a()}),h(oe,"$each_codepoint",function te(){var Ce=te.$$p||ne,de=this;if(te.$$p=null,Ce===ne)return de.$enum_for("each_codepoint");for(var k=0,Ae=de.length;k<Ae;k++)e.yield1(Ce,de.codePointAt(k));return de}),h(oe,"$codepoints",function te(){var Ce=te.$$p||ne,de=this;return te.$$p=null,Ce!==ne?s(de,"each_codepoint",[],Ce.$to_proc()):de.$each_codepoint().$to_a()}),h(oe,"$encode",function(Ce){var de=this;return e.enc(de,Ce)}),h(oe,"$force_encoding",function(Ce){var de=this,k=de;return Ce===k.encoding||(Ce=U["$coerce_to!"](Ce,_e("String"),"to_s"),Ce=_e("Encoding").$find(Ce),Ce===k.encoding)||(k=e.set_encoding(k,Ce)),k}),h(oe,"$getbyte",function(Ce){var de=this,k=ne;return k=de.$bytes(),Ce=U["$coerce_to!"](Ce,_e("Integer"),"to_int"),i(O(k.$length(),Ce))?ne:k["$[]"](Ce)}),h(oe,"$initialize_copy",function(Ce){return`
|
|
450
|
-
self.encoding = other.encoding;
|
|
451
|
-
self.internal_encoding = other.internal_encoding;
|
|
452
|
-
`}),h(oe,"$valid_encoding?",w(!0))}("::",null),j=[_e(he("Encoding"),"UTF_8")],s(_e("Encoding"),"default_external=",j),j[j.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,l=e.Kernel,$=e.defs,h=e.truthy,d=e.send,w=e.def,A=e.rb_minus,N=e.eqeqeq,U=e.rb_divide,O=[],j=e.nil,q=e.$$$;return e.add_stubs("new,raise,Float,Integer,module_function,each,define_method,checked,float!,===,gamma,-,integer!,/,infinite?"),function(Y,he){var ne=r(Y,"Math"),_e=[ne].concat(he),Q=e.$r(_e);return n(ne,"E",Math.E),n(ne,"PI",Math.PI),n(ne,"DomainError",i.$new(q("StandardError"))),$(ne,"$checked",function(oe,Ee){var te,Ce;if(te=s(arguments,1),Ce=te,isNaN(Ce[0])||Ce.length==2&&isNaN(Ce[1]))return NaN;var de=Math[oe].apply(null,Ce);return isNaN(de)&&l.$raise(Q("DomainError"),'Numerical argument is out of domain - "'+oe+'"'),de},-2),$(ne,"$float!",function(oe){try{return l.$Float(oe)}catch(Ee){if(e.rescue(Ee,[q("ArgumentError")]))try{return l.$raise(t(oe,q("Float")))}finally{e.pop_exception()}else throw Ee}}),$(ne,"$integer!",function(oe){try{return l.$Integer(oe)}catch(Ee){if(e.rescue(Ee,[q("ArgumentError")]))try{return l.$raise(t(oe,q("Integer")))}finally{e.pop_exception()}else throw Ee}}),ne.$module_function(),h(typeof Math.erf<"u")||e.prop(Math,"erf",function(be){var oe=.254829592,Ee=-.284496736,te=1.421413741,Ce=-1.453152027,de=1.061405429,k=.3275911,Ae=1;be<0&&(Ae=-1),be=Math.abs(be);var B=1/(1+k*be),pe=1-((((de*B+Ce)*B+te)*B+Ee)*B+oe)*B*Math.exp(-be*be);return Ae*pe}),h(typeof Math.erfc<"u")||e.prop(Math,"erfc",function(be){var oe=Math.abs(be),Ee=1/(.5*oe+1),te=Ee*.17087277+-.82215223,Ce=Ee*te+1.48851587,de=Ee*Ce+-1.13520398,k=Ee*de+.27886807,Ae=Ee*k+-.18628806,B=Ee*Ae+.09678418,pe=Ee*B+.37409196,W=Ee*pe+1.00002368,Fe=Ee*W,fe=-oe*oe-1.26551223+Fe,V=Ee*Math.exp(fe);return be<0?2-V:V}),d(["acos","acosh","asin","asinh","atan","atanh","cbrt","cos","cosh","erf","erfc","exp","sin","sinh","sqrt","tanh"],"each",[],function be(oe){var Ee=be.$$s==null?this:be.$$s;return oe==null&&(oe=j),d(Ee,"define_method",[oe],function(Ce){return Ce==null&&(Ce=j),q("Math").$checked(oe,q("Math")["$float!"](Ce))})},{$$s:ne}),w(ne,"$atan2",function(oe,Ee){return q("Math").$checked("atan2",q("Math")["$float!"](oe),q("Math")["$float!"](Ee))}),w(ne,"$hypot",function(oe,Ee){return q("Math").$checked("hypot",q("Math")["$float!"](oe),q("Math")["$float!"](Ee))}),w(ne,"$frexp",function(oe){if(oe=Q("Math")["$float!"](oe),isNaN(oe))return[NaN,0];var Ee=Math.floor(Math.log(Math.abs(oe))/Math.log(2))+1,te=oe/Math.pow(2,Ee);return[te,Ee]}),w(ne,"$gamma",function(oe){oe=Q("Math")["$float!"](oe);var Ee,te,Ce,de,k,Ae,B,pe,W,Fe=4.7421875,fe=[.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(oe))return NaN;if(oe===0&&1/oe<0)return-1/0;if((oe===-1||oe===-1/0)&&l.$raise(Q("DomainError"),'Numerical argument is out of domain - "gamma"'),Q("Integer")["$==="](oe)){if(oe<=0)return isFinite(oe)?1/0:NaN;if(oe>171)return 1/0;for(de=oe-2,k=oe-1;de>1;)k*=de,de--;return k==0&&(k=1),k}if(oe<.5)return Math.PI/(Math.sin(Math.PI*oe)*q("Math").$gamma(A(1,oe)));if(oe>=171.35)return 1/0;if(oe>85)return Ae=oe*oe,B=Ae*oe,pe=B*oe,W=pe*oe,Math.sqrt(2*Math.PI/oe)*Math.pow(oe/Math.E,oe)*(1+1/(12*oe)+1/(288*Ae)-139/(51840*B)-571/(2488320*pe)+163879/(209018880*W)+5246819/(75246796800*W*oe));for(oe-=1,Ce=fe[0],Ee=1;Ee<fe.length;++Ee)Ce+=fe[Ee]/(oe+Ee);return te=oe+Fe+.5,Math.sqrt(2*Math.PI)*Math.pow(te,oe+.5)*Math.exp(-te)*Ce}),w(ne,"$ldexp",function(oe,Ee){return oe=Q("Math")["$float!"](oe),Ee=Q("Math")["$integer!"](Ee),isNaN(Ee)&&l.$raise(q("RangeError"),"float NaN out of range of integer"),oe*Math.pow(2,Ee)}),w(ne,"$lgamma",function(oe){return oe==-1?[1/0,1]:[Math.log(Math.abs(q("Math").$gamma(oe))),q("Math").$gamma(oe)<0?-1:1]}),w(ne,"$log",function(oe,Ee){return N(q("String"),oe)&&l.$raise(t(oe,q("Float"))),h(Ee==null)?q("Math").$checked("log",q("Math")["$float!"](oe)):(N(q("String"),Ee)&&l.$raise(t(Ee,q("Float"))),U(q("Math").$checked("log",q("Math")["$float!"](oe)),q("Math").$checked("log",q("Math")["$float!"](Ee))))},-2),w(ne,"$log10",function(oe){return N(q("String"),oe)&&l.$raise(t(oe,q("Float"))),q("Math").$checked("log10",q("Math")["$float!"](oe))}),w(ne,"$log2",function(oe){return N(q("String"),oe)&&l.$raise(t(oe,q("Float"))),q("Math").$checked("log2",q("Math")["$float!"](oe))}),w(ne,"$tan",function(oe){return oe=q("Math")["$float!"](oe),h(oe["$infinite?"]())?q(q("Float"),"NAN"):q("Math").$checked("tan",q("Math")["$float!"](oe))})}("::",O)};Opal.modules["corelib/complex/base"]=function(e){var t=e.module,r=e.truthy,n=e.def,i=e.klass,s=[],l=e.nil;return e.add_stubs("new,from_string"),function($,h){var d=t($,"Kernel"),w=[d].concat(h),A=e.$r(w);return n(d,"$Complex",function(U,O){return O==null&&(O=l),r(O)?A("Complex").$new(U,O):A("Complex").$new(U,0)},-2)}("::",s),function($,h,d){var w=i($,h,"String"),A=[w].concat(d),N=e.$r(A);return n(w,"$to_c",function(){var O=this;return N("Complex").$from_string(O)})}("::",null,s)};Opal.modules["corelib/complex"]=function(e){var t=e.klass,r=e.truthy,n=e.eqeqeq,i=e.Kernel,s=e.defs,l=e.rb_times,$=e.def,h=e.rb_plus,d=e.rb_minus,w=e.rb_divide,A=e.eqeq,N=e.to_ary,U=e.rb_gt,O=e.neqeq,j=e.return_val,q=e.const_set,Y=e.alias,he=e.top,ne=[],_e=e.nil,Q=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"),he.$require("corelib/numeric"),he.$require("corelib/complex/base"),function(be,oe,Ee){var te=t(be,oe,"Complex"),Ce=[te].concat(Ee),de=e.$r(Ce),k=te.$$prototype;return k.real=k.imag=_e,s(te,"$rect",function(B,pe){var W=this;return pe==null&&(pe=0),n(Q("Numeric"),B)&&r(B["$real?"]())&&n(Q("Numeric"),pe)&&r(pe["$real?"]())||i.$raise(Q("TypeError"),"not a real"),W.$new(B,pe)},-2),s(te,"$polar",function(B,pe){var W=this;return pe==null&&(pe=0),n(Q("Numeric"),B)&&r(B["$real?"]())&&n(Q("Numeric"),pe)&&r(pe["$real?"]())||i.$raise(Q("TypeError"),"not a real"),W.$new(l(B,Q("Math").$cos(pe)),l(B,Q("Math").$sin(pe)))},-2),te.$attr_reader("real","imag"),$(te,"$initialize",function(B,pe){var W=this;return pe==null&&(pe=0),W.real=B,W.imag=pe,W.$freeze()},-2),$(te,"$coerce",function(B){var pe=this;return n(Q("Complex"),B)?[B,pe]:n(Q("Numeric"),B)&&r(B["$real?"]())?[Q("Complex").$new(B,0),pe]:i.$raise(Q("TypeError"),""+B.$class()+" can't be coerced into Complex")}),$(te,"$==",function(B){var pe=this,W=_e;return n(Q("Complex"),B)?r(W=pe.real["$=="](B.$real()))?pe.imag["$=="](B.$imag()):W:n(Q("Numeric"),B)&&r(B["$real?"]())?r(W=pe.real["$=="](B))?pe.imag["$=="](0):W:B["$=="](pe)}),$(te,"$-@",function(){var B=this;return i.$Complex(B.real["$-@"](),B.imag["$-@"]())}),$(te,"$+",function(B){var pe=this;return n(Q("Complex"),B)?i.$Complex(h(pe.real,B.$real()),h(pe.imag,B.$imag())):n(Q("Numeric"),B)&&r(B["$real?"]())?i.$Complex(h(pe.real,B),pe.imag):pe.$__coerced__("+",B)}),$(te,"$-",function(B){var pe=this;return n(Q("Complex"),B)?i.$Complex(d(pe.real,B.$real()),d(pe.imag,B.$imag())):n(Q("Numeric"),B)&&r(B["$real?"]())?i.$Complex(d(pe.real,B),pe.imag):pe.$__coerced__("-",B)}),$(te,"$*",function(B){var pe=this;return n(Q("Complex"),B)?i.$Complex(d(l(pe.real,B.$real()),l(pe.imag,B.$imag())),h(l(pe.real,B.$imag()),l(pe.imag,B.$real()))):n(Q("Numeric"),B)&&r(B["$real?"]())?i.$Complex(l(pe.real,B),l(pe.imag,B)):pe.$__coerced__("*",B)}),$(te,"$/",function(B){var pe=this;return n(Q("Complex"),B)?n(Q("Number"),pe.real)&&r(pe.real["$nan?"]())||n(Q("Number"),pe.imag)&&r(pe.imag["$nan?"]())||n(Q("Number"),B.$real())&&r(B.$real()["$nan?"]())||n(Q("Number"),B.$imag())&&r(B.$imag()["$nan?"]())?Q("Complex").$new(Q(Q("Float"),"NAN"),Q(Q("Float"),"NAN")):w(l(pe,B.$conj()),B.$abs2()):n(Q("Numeric"),B)&&r(B["$real?"]())?i.$Complex(pe.real.$quo(B),pe.imag.$quo(B)):pe.$__coerced__("/",B)}),$(te,"$**",function(B){var pe,W,Fe=this,fe=_e,V=_e,x=_e,f=_e,o=_e,c=_e,p=_e,m=_e,E=_e,T=_e,re=_e;if(A(B,0))return Q("Complex").$new(1,0);if(n(Q("Complex"),B))return W=Fe.$polar(),pe=N(W),fe=pe[0]==null?_e:pe[0],V=pe[1]==null?_e:pe[1],x=B.$real(),f=B.$imag(),o=Q("Math").$exp(d(l(x,Q("Math").$log(fe)),l(f,V))),c=h(l(V,x),l(f,Q("Math").$log(fe))),Q("Complex").$polar(o,c);if(n(Q("Integer"),B))if(r(U(B,0))){for(p=Fe,m=p,E=d(B,1);O(E,0);){for(W=E.$divmod(2),pe=N(W),T=pe[0]==null?_e:pe[0],re=pe[1]==null?_e:pe[1];A(re,0);)p=i.$Complex(d(l(p.$real(),p.$real()),l(p.$imag(),p.$imag())),l(l(2,p.$real()),p.$imag())),E=T,W=E.$divmod(2),pe=N(W),T=pe[0]==null?_e:pe[0],re=pe[1]==null?_e:pe[1];m=l(m,p),E=d(E,1)}return m}else return w(Q("Rational").$new(1,1),Fe)["$**"](B["$-@"]());else return n(Q("Float"),B)||n(Q("Rational"),B)?(W=Fe.$polar(),pe=N(W),fe=pe[0]==null?_e:pe[0],V=pe[1]==null?_e:pe[1],Q("Complex").$polar(fe["$**"](B),l(V,B))):Fe.$__coerced__("**",B)}),$(te,"$abs",function(){var B=this;return Q("Math").$hypot(B.real,B.imag)}),$(te,"$abs2",function(){var B=this;return h(l(B.real,B.real),l(B.imag,B.imag))}),$(te,"$angle",function(){var B=this;return Q("Math").$atan2(B.imag,B.real)}),$(te,"$conj",function(){var B=this;return i.$Complex(B.real,B.imag["$-@"]())}),$(te,"$denominator",function(){var B=this;return B.real.$denominator().$lcm(B.imag.$denominator())}),$(te,"$eql?",function(B){var pe=this,W=_e,Fe=_e;return r(W=r(Fe=de("Complex")["$==="](B))?pe.real.$class()["$=="](pe.imag.$class()):Fe)?pe["$=="](B):W}),$(te,"$fdiv",function(B){var pe=this;return n(Q("Numeric"),B)||i.$raise(Q("TypeError"),""+B.$class()+" can't be coerced into Complex"),w(pe,B)}),$(te,"$finite?",function(){var B=this,pe=_e;return r(pe=B.real["$finite?"]())?B.imag["$finite?"]():pe}),$(te,"$hash",function(){var B=this;return"Complex:"+B.real+":"+B.imag}),$(te,"$infinite?",function(){var B=this,pe=_e;return r(pe=B.real["$infinite?"]())?pe:B.imag["$infinite?"]()}),$(te,"$inspect",function(){var B=this;return"("+B+")"}),$(te,"$numerator",function(){var B=this,pe=_e;return pe=B.$denominator(),i.$Complex(l(B.real.$numerator(),w(pe,B.real.$denominator())),l(B.imag.$numerator(),w(pe,B.imag.$denominator())))}),$(te,"$polar",function(){var B=this;return[B.$abs(),B.$arg()]}),$(te,"$rationalize",function(B){var pe=this;return arguments.length>1&&i.$raise(Q("ArgumentError"),"wrong number of arguments ("+arguments.length+" for 0..1)"),O(pe.imag,0)&&i.$raise(Q("RangeError"),"can't convert "+pe+" into Rational"),pe.$real().$rationalize(B)},-1),$(te,"$real?",j(!1)),$(te,"$rect",function(){var B=this;return[B.real,B.imag]}),$(te,"$to_f",function(){var B=this;return A(B.imag,0)||i.$raise(Q("RangeError"),"can't convert "+B+" into Float"),B.real.$to_f()}),$(te,"$to_i",function(){var B=this;return A(B.imag,0)||i.$raise(Q("RangeError"),"can't convert "+B+" into Integer"),B.real.$to_i()}),$(te,"$to_r",function(){var B=this;return A(B.imag,0)||i.$raise(Q("RangeError"),"can't convert "+B+" into Rational"),B.real.$to_r()}),$(te,"$to_s",function(){var B=this,pe=_e;return pe=B.real.$inspect(),pe=h(pe,n(Q("Number"),B.imag)&&r(B.imag["$nan?"]())||r(B.imag["$positive?"]())||r(B.imag["$zero?"]())?"+":"-"),pe=h(pe,B.imag.$abs().$inspect()),n(Q("Number"),B.imag)&&(r(B.imag["$nan?"]())||r(B.imag["$infinite?"]()))&&(pe=h(pe,"*")),h(pe,"i")}),q(Ce[0],"I",te.$new(0,1)),s(te,"$from_string",function(B){var pe=/[+-]?[\d_]+(\.[\d_]+)?(e\d+)?/;B.match(pe);var W,Fe;function fe(){return pe.test(B)}function V(){var f=B.match(pe),o=f[0];return B=B.slice(o.length),o.replace(/_/g,"")}function x(){if(fe()){var f=parseFloat(V());if(B[0]==="/")if(B=B.slice(1),fe()){var o=parseFloat(V());return i.$Rational(f,o)}else return B="/"+B,f;else return f}else return null}return W=x(),W?(Fe=x(),Fe?i.$Complex(W,Fe):B[0]==="i"?i.$Complex(0,W):i.$Complex(W,0)):B[0]==="i"?i.$Complex(0,1):B[0]==="-"&&B[1]==="i"?i.$Complex(0,-1):B[0]==="+"&&B[1]==="i"?i.$Complex(0,1):i.$Complex(0,0)}),function(Ae,B){return Y(Ae,"rectangular","rect")}(e.get_singleton_class(te)),Y(te,"arg","angle"),Y(te,"conjugate","conj"),Y(te,"divide","/"),Y(te,"imaginary","imag"),Y(te,"magnitude","abs"),Y(te,"phase","arg"),Y(te,"quo","/"),Y(te,"rectangular","rect"),e.udef(te,"$negative?"),e.udef(te,"$positive?"),e.udef(te,"$step"),_e}("::",Q("Numeric"),ne)};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 l=t(s,"Kernel");return r(l,"$Rational",function(h,d){return d==null&&(d=1),i("Rational").$convert(h,d)},-2)}("::"),function(s,l){var $=n(s,l,"String");return r($,"$to_r",function(){var d=this;return i("Rational").$from_string(d)})}("::",null)};Opal.modules["corelib/rational"]=function(e){var t=e.klass,r=e.eqeq,n=e.Kernel,i=e.truthy,s=e.rb_lt,l=e.rb_divide,$=e.defs,h=e.eqeqeq,d=e.not,w=e.Opal,A=e.def,N=e.return_ivar,U=e.rb_minus,O=e.rb_times,j=e.rb_plus,q=e.rb_gt,Y=e.rb_le,he=e.return_self,ne=e.alias,_e=e.top,Q=e.nil,be=e.$$$;return e.add_stubs("require,to_i,==,raise,<,-@,new,gcd,/,nil?,===,reduce,to_r,!,equal?,coerce_to!,freeze,to_f,numerator,denominator,<=>,-,*,__coerced__,+,Rational,>,**,abs,ceil,with_precision,floor,<=,truncate,send"),_e.$require("corelib/numeric"),_e.$require("corelib/rational/base"),function(oe,Ee){var te=t(oe,Ee,"Rational"),Ce=te.$$prototype;return Ce.num=Ce.den=Q,$(te,"$reduce",function(k,Ae){var B=this,pe=Q;if(k=k.$to_i(),Ae=Ae.$to_i(),r(Ae,0))n.$raise(be("ZeroDivisionError"),"divided by 0");else if(i(s(Ae,0)))k=k["$-@"](),Ae=Ae["$-@"]();else if(r(Ae,1))return B.$new(k,Ae);return pe=k.$gcd(Ae),B.$new(l(k,pe),l(Ae,pe))}),$(te,"$convert",function(k,Ae){var B=this;return(i(k["$nil?"]())||i(Ae["$nil?"]()))&&n.$raise(be("TypeError"),"cannot convert nil into Rational"),h(be("Integer"),k)&&h(be("Integer"),Ae)?B.$reduce(k,Ae):((h(be("Float"),k)||h(be("String"),k)||h(be("Complex"),k))&&(k=k.$to_r()),(h(be("Float"),Ae)||h(be("String"),Ae)||h(be("Complex"),Ae))&&(Ae=Ae.$to_r()),i(Ae["$equal?"](1))&&d(be("Integer")["$==="](k))?w["$coerce_to!"](k,be("Rational"),"to_r"):h(be("Numeric"),k)&&h(be("Numeric"),Ae)?l(k,Ae):B.$reduce(k,Ae))}),A(te,"$initialize",function(k,Ae){var B=this;return B.num=k,B.den=Ae,B.$freeze()}),A(te,"$numerator",N("num")),A(te,"$denominator",N("den")),A(te,"$coerce",function(k){var Ae=this,B=Q;return h(be("Rational"),B=k)?[k,Ae]:h(be("Integer"),B)?[k.$to_r(),Ae]:h(be("Float"),B)?[k,Ae.$to_f()]:Q}),A(te,"$==",function(k){var Ae=this,B=Q,pe=Q;return h(be("Rational"),B=k)?i(pe=Ae.num["$=="](k.$numerator()))?Ae.den["$=="](k.$denominator()):pe:h(be("Integer"),B)?i(pe=Ae.num["$=="](k))?Ae.den["$=="](1):pe:h(be("Float"),B)?Ae.$to_f()["$=="](k):k["$=="](Ae)}),A(te,"$<=>",function(k){var Ae=this,B=Q;return h(be("Rational"),B=k)?U(O(Ae.num,k.$denominator()),O(Ae.den,k.$numerator()))["$<=>"](0):h(be("Integer"),B)?U(Ae.num,O(Ae.den,k))["$<=>"](0):h(be("Float"),B)?Ae.$to_f()["$<=>"](k):Ae.$__coerced__("<=>",k)}),A(te,"$+",function(k){var Ae=this,B=Q,pe=Q,W=Q;return h(be("Rational"),B=k)?(pe=j(O(Ae.num,k.$denominator()),O(Ae.den,k.$numerator())),W=O(Ae.den,k.$denominator()),n.$Rational(pe,W)):h(be("Integer"),B)?n.$Rational(j(Ae.num,O(k,Ae.den)),Ae.den):h(be("Float"),B)?j(Ae.$to_f(),k):Ae.$__coerced__("+",k)}),A(te,"$-",function(k){var Ae=this,B=Q,pe=Q,W=Q;return h(be("Rational"),B=k)?(pe=U(O(Ae.num,k.$denominator()),O(Ae.den,k.$numerator())),W=O(Ae.den,k.$denominator()),n.$Rational(pe,W)):h(be("Integer"),B)?n.$Rational(U(Ae.num,O(k,Ae.den)),Ae.den):h(be("Float"),B)?U(Ae.$to_f(),k):Ae.$__coerced__("-",k)}),A(te,"$*",function(k){var Ae=this,B=Q,pe=Q,W=Q;return h(be("Rational"),B=k)?(pe=O(Ae.num,k.$numerator()),W=O(Ae.den,k.$denominator()),n.$Rational(pe,W)):h(be("Integer"),B)?n.$Rational(O(Ae.num,k),Ae.den):h(be("Float"),B)?O(Ae.$to_f(),k):Ae.$__coerced__("*",k)}),A(te,"$/",function(k){var Ae=this,B=Q,pe=Q,W=Q;return h(be("Rational"),B=k)?(pe=O(Ae.num,k.$denominator()),W=O(Ae.den,k.$numerator()),n.$Rational(pe,W)):h(be("Integer"),B)?r(k,0)?l(Ae.$to_f(),0):n.$Rational(Ae.num,O(Ae.den,k)):h(be("Float"),B)?l(Ae.$to_f(),k):Ae.$__coerced__("/",k)}),A(te,"$**",function(k){var Ae=this,B=Q;return h(be("Integer"),B=k)?r(Ae,0)&&i(s(k,0))?be(be("Float"),"INFINITY"):i(q(k,0))?n.$Rational(Ae.num["$**"](k),Ae.den["$**"](k)):i(s(k,0))?n.$Rational(Ae.den["$**"](k["$-@"]()),Ae.num["$**"](k["$-@"]())):n.$Rational(1,1):h(be("Float"),B)?Ae.$to_f()["$**"](k):h(be("Rational"),B)?r(k,0)?n.$Rational(1,1):r(k.$denominator(),1)?i(s(k,0))?n.$Rational(Ae.den["$**"](k.$numerator().$abs()),Ae.num["$**"](k.$numerator().$abs())):n.$Rational(Ae.num["$**"](k.$numerator()),Ae.den["$**"](k.$numerator())):r(Ae,0)&&i(s(k,0))?n.$raise(be("ZeroDivisionError"),"divided by 0"):Ae.$to_f()["$**"](k):Ae.$__coerced__("**",k)}),A(te,"$abs",function(){var k=this;return n.$Rational(k.num.$abs(),k.den.$abs())}),A(te,"$ceil",function(k){var Ae=this;return k==null&&(k=0),r(k,0)?l(Ae.num["$-@"](),Ae.den)["$-@"]().$ceil():Ae.$with_precision("ceil",k)},-1),A(te,"$floor",function(k){var Ae=this;return k==null&&(k=0),r(k,0)?l(Ae.num["$-@"](),Ae.den)["$-@"]().$floor():Ae.$with_precision("floor",k)},-1),A(te,"$hash",function(){var k=this;return"Rational:"+k.num+":"+k.den}),A(te,"$inspect",function(){var k=this;return"("+k+")"}),A(te,"$rationalize",function(k){var Ae=this;if(arguments.length>1&&n.$raise(be("ArgumentError"),"wrong number of arguments ("+arguments.length+" for 0..1)"),k==null)return Ae;for(var B=k.$abs(),pe=U(Ae,B),W=j(Ae,B),Fe=0,fe=1,V=1,x=0,f,o,c,p,m;c=pe.$ceil(),!Y(c,W);)p=c-1,f=p*fe+Fe,o=p*x+V,m=l(1,U(W,p)),W=l(1,U(pe,p)),pe=m,Fe=fe,V=x,fe=f,x=o;return n.$Rational(c*fe+Fe,c*x+V)},-1),A(te,"$round",function(k){var Ae=this,B=Q,pe=Q,W=Q;return k==null&&(k=0),r(k,0)?r(Ae.num,0)?0:r(Ae.den,1)?Ae.num:(B=j(O(Ae.num.$abs(),2),Ae.den),pe=O(Ae.den,2),W=l(B,pe).$truncate(),i(s(Ae.num,0))?W["$-@"]():W):Ae.$with_precision("round",k)},-1),A(te,"$to_f",function(){var k=this;return l(k.num,k.den)}),A(te,"$to_i",function(){var k=this;return k.$truncate()}),A(te,"$to_r",he),A(te,"$to_s",function(){var k=this;return""+k.num+"/"+k.den}),A(te,"$truncate",function(k){var Ae=this;return k==null&&(k=0),r(k,0)?i(s(Ae.num,0))?Ae.$ceil():Ae.$floor():Ae.$with_precision("truncate",k)},-1),A(te,"$with_precision",function(k,Ae){var B=this,pe=Q,W=Q;return h(be("Integer"),Ae)||n.$raise(be("TypeError"),"not an Integer"),pe=10["$**"](Ae),W=O(B,pe),i(s(Ae,1))?l(W.$send(k),pe).$to_i():n.$Rational(W.$send(k),pe)}),$(te,"$from_string",function(k){var Ae=k.trimLeft(),B=/^[+-]?[\d_]+(\.[\d_]+)?/;Ae.match(B);var pe,W;function Fe(){return B.test(Ae)}function fe(){var V=Ae.match(B),x=V[0];return Ae=Ae.slice(x.length),x.replace(/_/g,"")}return Fe()?(pe=parseFloat(fe()),Ae[0]==="/"?(Ae=Ae.slice(1),Fe()?(W=parseFloat(fe()),n.$Rational(pe,W)):n.$Rational(pe,1)):n.$Rational(pe,1)):n.$Rational(0,1)}),ne(te,"divide","/"),ne(te,"quo","/")}("::",be("Numeric"))};Opal.modules["corelib/time"]=function(e){var t=e.slice,r=e.deny_frozen_access,n=e.klass,i=e.Kernel,s=e.Opal,l=e.defs,$=e.eqeqeq,h=e.def,d=e.truthy,w=e.rb_gt,A=e.rb_lt,N=e.send,U=e.rb_plus,O=e.rb_divide,j=e.rb_minus,q=e.range,Y=e.neqeq,he=e.rb_le,ne=e.eqeq,_e=e.alias,Q=e.top,be=[],oe=e.nil,Ee=e.$$$;return e.add_stubs("require,include,===,raise,coerce_to!,respond_to?,to_str,to_i,_parse_offset,new,<=>,to_f,nil?,>,<,strftime,each,define_method,year,month,day,+,round,/,-,copy_instance_variables,initialize_dup,is_a?,zero?,wday,utc?,mon,yday,hour,min,sec,rjust,ljust,zone,to_s,[],cweek_cyear,jd,to_date,format,isdst,!=,<=,==,ceil,local,gm,asctime,getgm,gmt_offset,inspect,usec,gmtime,gmt?"),Q.$require("corelib/comparable"),function(te,Ce,de){var k=n(te,Ce,"Time"),Ae=[k].concat(de),B=e.$r(Ae);k.$include(Ee("Comparable"));var pe=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],W=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],Fe=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],fe=["January","February","March","April","May","June","July","August","September","October","November","December"];l(k,"$at",function(f,o){var c;return Ee("Time")["$==="](f)?(o!==void 0&&i.$raise(Ee("TypeError"),"can't convert Time into an exact number"),c=new Date(f.getTime()),c.timezone=f.timezone,c):(f.$$is_number||(f=s["$coerce_to!"](f,Ee("Integer"),"to_int")),o===void 0?new Date(f*1e3):(o.$$is_number||(o=s["$coerce_to!"](o,Ee("Integer"),"to_int")),new Date(f*1e3+o/1e3)))},-2);function V(x,f,o,c,p,m){if(x.$$is_string?x=parseInt(x,10):x=s["$coerce_to!"](x,Ee("Integer"),"to_int"),f===oe)f=1;else if(!f.$$is_number)if(f["$respond_to?"]("to_str"))switch(f=f.$to_str(),f.toLowerCase()){case"jan":f=1;break;case"feb":f=2;break;case"mar":f=3;break;case"apr":f=4;break;case"may":f=5;break;case"jun":f=6;break;case"jul":f=7;break;case"aug":f=8;break;case"sep":f=9;break;case"oct":f=10;break;case"nov":f=11;break;case"dec":f=12;break;default:f=f.$to_i()}else f=s["$coerce_to!"](f,Ee("Integer"),"to_int");return(f<1||f>12)&&i.$raise(Ee("ArgumentError"),"month out of range: "+f),f=f-1,o===oe?o=1:o.$$is_string?o=parseInt(o,10):o=s["$coerce_to!"](o,Ee("Integer"),"to_int"),(o<1||o>31)&&i.$raise(Ee("ArgumentError"),"day out of range: "+o),c===oe?c=0:c.$$is_string?c=parseInt(c,10):c=s["$coerce_to!"](c,Ee("Integer"),"to_int"),(c<0||c>24)&&i.$raise(Ee("ArgumentError"),"hour out of range: "+c),p===oe?p=0:p.$$is_string?p=parseInt(p,10):p=s["$coerce_to!"](p,Ee("Integer"),"to_int"),(p<0||p>59)&&i.$raise(Ee("ArgumentError"),"min out of range: "+p),m===oe?m=0:m.$$is_number||(m.$$is_string?m=parseInt(m,10):m=s["$coerce_to!"](m,Ee("Integer"),"to_int")),(m<0||m>60)&&i.$raise(Ee("ArgumentError"),"sec out of range: "+m),[x,f,o,c,p,m]}return l(k,"$new",function(f,o,c,p,m,E,T){var re=this;o==null&&(o=oe),c==null&&(c=oe),p==null&&(p=oe),m==null&&(m=oe),E==null&&(E=oe),T==null&&(T=oe);var je,nt,ft,yt;return f===void 0?new Date:(je=V(f,o,c,p,m,E),f=je[0],o=je[1],c=je[2],p=je[3],m=je[4],E=je[5],T===oe?(nt=new Date(f,o,c,p,m,0,E*1e3),f<100&&nt.setFullYear(f),nt):(ft=re.$_parse_offset(T),yt=new Date(Date.UTC(f,o,c,p,m,0,E*1e3)),f<100&&yt.setUTCFullYear(f),nt=new Date(yt.getTime()-ft*36e5),nt.timezone=ft,nt))},-1),l(k,"$_parse_offset",function(f){var o;if(f.$$is_string)if(f=="UTC")o=0;else if(/^[+-]\d\d:[0-5]\d$/.test(f)){var c,p,m;c=f[0],p=+(f[1]+f[2]),m=+(f[4]+f[5]),o=(c=="-"?-1:1)*(p+m/60)}else i.$raise(Ee("ArgumentError"),'"+HH:MM", "-HH:MM", "UTC" expected for utc_offset: '+f);else f.$$is_number?o=f/3600:i.$raise(Ee("ArgumentError"),"Opal doesn't support other types for a timezone argument than Integer and String");return o}),l(k,"$local",function(f,o,c,p,m,E,T,re,je,nt){o==null&&(o=oe),c==null&&(c=oe),p==null&&(p=oe),m==null&&(m=oe),E==null&&(E=oe),T==null&&(T=oe),re==null&&(re=oe),je==null&&(je=oe),nt==null&&(nt=oe);var ft,yt;return arguments.length===10&&(ft=t(arguments),f=ft[5],o=ft[4],c=ft[3],p=ft[2],m=ft[1],E=ft[0]),ft=V(f,o,c,p,m,E),f=ft[0],o=ft[1],c=ft[2],p=ft[3],m=ft[4],E=ft[5],yt=new Date(f,o,c,p,m,0,E*1e3),f<100&&yt.setFullYear(f),yt},-2),l(k,"$gm",function(f,o,c,p,m,E,T,re,je,nt){o==null&&(o=oe),c==null&&(c=oe),p==null&&(p=oe),m==null&&(m=oe),E==null&&(E=oe),T==null&&(T=oe),re==null&&(re=oe),je==null&&(je=oe),nt==null&&(nt=oe);var ft,yt;return arguments.length===10&&(ft=t(arguments),f=ft[5],o=ft[4],c=ft[3],p=ft[2],m=ft[1],E=ft[0]),ft=V(f,o,c,p,m,E),f=ft[0],o=ft[1],c=ft[2],p=ft[3],m=ft[4],E=ft[5],yt=new Date(Date.UTC(f,o,c,p,m,0,E*1e3)),f<100&&yt.setUTCFullYear(f),yt.timezone=0,yt},-2),l(k,"$now",function(){var f=this;return f.$new()}),h(k,"$+",function(f){var o=this;$(Ee("Time"),f)&&i.$raise(Ee("TypeError"),"time + time?"),f.$$is_number||(f=s["$coerce_to!"](f,Ee("Integer"),"to_int"));var c=new Date(o.getTime()+f*1e3);return c.timezone=o.timezone,c}),h(k,"$-",function(f){var o=this;if($(Ee("Time"),f))return(o.getTime()-f.getTime())/1e3;f.$$is_number||(f=s["$coerce_to!"](f,Ee("Integer"),"to_int"));var c=new Date(o.getTime()-f*1e3);return c.timezone=o.timezone,c}),h(k,"$<=>",function(f){var o=this,c=oe;return $(Ee("Time"),f)?o.$to_f()["$<=>"](f.$to_f()):(c=f["$<=>"](o),d(c["$nil?"]())?oe:d(w(c,0))?-1:d(A(c,0))?1:0)}),h(k,"$==",function(f){var o=this,c=oe;return d(c=Ee("Time")["$==="](f))?o.$to_f()===f.$to_f():c}),h(k,"$asctime",function(){var f=this;return f.$strftime("%a %b %e %H:%M:%S %Y")}),N([["year","getFullYear","getUTCFullYear"],["mon","getMonth","getUTCMonth",1],["wday","getDay","getUTCDay"],["day","getDate","getUTCDate"],["hour","getHours","getUTCHours"],["min","getMinutes","getUTCMinutes"],["sec","getSeconds","getUTCSeconds"]],"each",[],function x(f,o,c,p){var m=x.$$s==null?this:x.$$s;return f==null&&(f=oe),o==null&&(o=oe),c==null&&(c=oe),p==null&&(p=0),N(m,"define_method",[f],function E(){var T=E.$$s==null?this:E.$$s;return p+(T.timezone!=null?new Date(T.getTime()+T.timezone*36e5)[c]():T[o]())},{$$s:m})},{$$arity:-4,$$s:k}),h(k,"$yday",function(){var f=this,o=oe,c=oe,p=oe;return o=B("Time").$new(f.$year()).$to_i(),c=B("Time").$new(f.$year(),f.$month(),f.$day()).$to_i(),p=86400,U(O(j(c,o),p).$round(),1)}),h(k,"$isdst",function(){var f=this,o=new Date(f.getFullYear(),0,1),c=new Date(f.getFullYear(),6,1);return f.getTimezoneOffset()<Math.max(o.getTimezoneOffset(),c.getTimezoneOffset())}),h(k,"$dup",function(){var f=this,o=oe;return o=new Date(f.getTime()),o.$copy_instance_variables(f),o.$initialize_dup(f),o}),h(k,"$eql?",function(f){var o=this,c=oe;return d(c=f["$is_a?"](Ee("Time")))?o["$<=>"](f)["$zero?"]():c}),N([["sunday?",0],["monday?",1],["tuesday?",2],["wednesday?",3],["thursday?",4],["friday?",5],["saturday?",6]],"each",[],function x(f,o){var c=x.$$s==null?this:x.$$s;return f==null&&(f=oe),o==null&&(o=oe),N(c,"define_method",[f],function p(){var m=p.$$s==null?this:p.$$s;return m.$wday()===o},{$$s:c})},{$$s:k}),h(k,"$hash",function(){var f=this;return"Time:"+f.getTime()}),h(k,"$inspect",function(){var f=this;return d(f["$utc?"]())?f.$strftime("%Y-%m-%d %H:%M:%S UTC"):f.$strftime("%Y-%m-%d %H:%M:%S %z")}),h(k,"$succ",function(){var f=this,o=new Date(f.getTime()+1e3);return o.timezone=f.timezone,o}),h(k,"$usec",function(){var f=this;return f.getMilliseconds()*1e3}),h(k,"$zone",function(){var f=this;if(f.timezone===0)return"UTC";if(f.timezone!=null)return oe;var o=f.toString(),c;return o.indexOf("(")==-1?c=o.match(/[A-Z]{3,4}/)[0]:c=o.match(/\((.+)\)(?:\s|$)/)[1],c=="GMT"&&/(GMT\W*\d{4})/.test(o)?RegExp.$1:c}),h(k,"$getgm",function(){var f=this,o=new Date(f.getTime());return o.timezone=0,o}),h(k,"$gmtime",function(){var f=this;return f.timezone!==0&&(r(f),f.timezone=0),f}),h(k,"$gmt?",function(){var f=this;return f.timezone===0}),h(k,"$gmt_offset",function(){var f=this;return f.timezone!=null?f.timezone*60:-f.getTimezoneOffset()*60}),h(k,"$strftime",function(f){var o=this;return f.replace(/%([\-_#^0]*:{0,2})(\d+)?([EO]*)(.)/g,function(c,p,m,E,T){var re="",je,nt,ft,yt=p.indexOf("0")!==-1,zt=p.indexOf("-")===-1,_t=p.indexOf("_")!==-1,vt=p.indexOf("^")!==-1,mt=p.indexOf("#")!==-1,xt=(p.match(":")||[]).length;switch(m=parseInt(m,10),yt&&_t&&(p.indexOf("0")<p.indexOf("_")?yt=!1:_t=!1),T){case"Y":re+=o.$year();break;case"C":yt=!_t,re+=Math.round(o.$year()/100);break;case"y":yt=!_t,re+=o.$year()%100;break;case"m":yt=!_t,re+=o.$mon();break;case"B":re+=fe[o.$mon()-1];break;case"b":case"h":_t=!yt,re+=Fe[o.$mon()-1];break;case"d":yt=!_t,re+=o.$day();break;case"e":_t=!yt,re+=o.$day();break;case"j":yt=!_t,m=isNaN(m)?3:m,re+=o.$yday();break;case"H":yt=!_t,re+=o.$hour();break;case"k":_t=!yt,re+=o.$hour();break;case"I":yt=!_t,re+=o.$hour()%12||12;break;case"l":_t=!yt,re+=o.$hour()%12||12;break;case"P":re+=o.$hour()>=12?"pm":"am";break;case"p":re+=o.$hour()>=12?"PM":"AM";break;case"M":yt=!_t,re+=o.$min();break;case"S":yt=!_t,re+=o.$sec();break;case"L":yt=!_t,m=isNaN(m)?3:m,re+=o.getMilliseconds();break;case"N":m=isNaN(m)?9:m,re+=o.getMilliseconds().toString().$rjust(3,"0"),re=re.$ljust(m,"0");break;case"z":var St=o.timezone==null?o.getTimezoneOffset():-o.timezone*60,Oe=Math.floor(Math.abs(St)/60),ze=Math.abs(St)%60;re+=St<0?"+":"-",re+=Oe<10?"0":"",re+=Oe,xt>0&&(re+=":"),re+=ze<10?"0":"",re+=ze,xt>1&&(re+=":00");break;case"Z":re+=o.$zone();break;case"A":re+=pe[o.$wday()];break;case"a":re+=W[o.$wday()];break;case"u":re+=o.$wday()+1;break;case"w":re+=o.$wday();break;case"V":re+=o.$cweek_cyear()["$[]"](0).$to_s().$rjust(2,"0");break;case"G":re+=o.$cweek_cyear()["$[]"](1);break;case"g":re+=o.$cweek_cyear()["$[]"](1)["$[]"](q(-2,-1,!1));break;case"s":re+=o.$to_i();break;case"n":re+=`
|
|
453
|
-
`;break;case"t":re+=" ";break;case"%":re+="%";break;case"c":re+=o.$strftime("%a %b %e %T %Y");break;case"D":case"x":re+=o.$strftime("%m/%d/%y");break;case"F":re+=o.$strftime("%Y-%m-%d");break;case"v":re+=o.$strftime("%e-%^b-%4Y");break;case"r":re+=o.$strftime("%I:%M:%S %p");break;case"R":re+=o.$strftime("%H:%M");break;case"T":case"X":re+=o.$strftime("%H:%M:%S");break;case"J":if(je=o.$to_date().$jd(),je<2405160){re+=o.$strftime("%Y-%m-%d");break}else je<2419614?(nt="M",ft=1867):je<2424875?(nt="T",ft=1911):je<2447535?(nt="S",ft=1925):je<2458605?(nt="H",ft=1988):(nt="R",ft=2018);re+=o.$format("%c%02d",nt,j(o.$year(),ft)),re+=o.$strftime("-%m-%d");break;default:return c}return vt&&(re=re.toUpperCase()),mt&&(re=re.replace(/[A-Z]/,function(De){De.toLowerCase()}).replace(/[a-z]/,function(De){De.toUpperCase()})),zt&&(yt||_t)&&(re=re.$rjust(isNaN(m)?2:m,_t?" ":"0")),re})}),h(k,"$to_a",function(){var f=this;return[f.$sec(),f.$min(),f.$hour(),f.$day(),f.$month(),f.$year(),f.$wday(),f.$yday(),f.$isdst(),f.$zone()]}),h(k,"$to_f",function(){var f=this;return f.getTime()/1e3}),h(k,"$to_i",function(){var f=this;return parseInt(f.getTime()/1e3,10)}),h(k,"$cweek_cyear",function(){var f=this,o=oe,c=oe,p=oe,m=oe,E=oe,T=oe,re=oe;return o=Ee("Time").$new(f.$year(),1,1),c=o.$wday(),p=f.$year(),d(he(c,4))&&Y(c,0)?m=j(c,1):(m=j(j(c,7),1),ne(m,-8)&&(m=-1)),E=O(U(f.$yday(),m),7).$ceil(),d(he(E,0))?Ee("Time").$new(j(f.$year(),1),12,31).$cweek_cyear():(ne(E,53)&&(T=Ee("Time").$new(f.$year(),12,31),re=T.$wday(),d(he(re,3))&&Y(re,0)&&(E=1,p=U(p,1))),[E,p])}),function(x,f){return _e(x,"mktime","local"),_e(x,"utc","gm")}(e.get_singleton_class(k)),_e(k,"ctime","asctime"),_e(k,"dst?","isdst"),_e(k,"getutc","getgm"),_e(k,"gmtoff","gmt_offset"),_e(k,"mday","day"),_e(k,"month","mon"),_e(k,"to_s","inspect"),_e(k,"tv_sec","to_i"),_e(k,"tv_usec","usec"),_e(k,"utc","gmtime"),_e(k,"utc?","gmt?"),_e(k,"utc_offset","gmt_offset")}("::",Date,be)};Opal.modules["corelib/struct"]=function(e){var t=e.klass,r=e.slice,n=e.extract_kwargs,i=e.ensure_kwargs,s=e.truthy,l=e.neqeq,$=e.eqeq,h=e.Opal,d=e.send,w=e.Class,A=e.to_a,N=e.def,U=e.defs,O=e.Kernel,j=e.hash2,q=e.rb_gt,Y=e.rb_minus,he=e.eqeqeq,ne=e.rb_lt,_e=e.rb_ge,Q=e.rb_plus,be=e.alias,oe=e.top,Ee=[],te=e.nil,Ce=e.$$$;return e.add_stubs("require,include,!=,upcase,[],==,class,unshift,const_name!,map,coerce_to!,new,each,define_struct_attribute,allocate,initialize,alias_method,module_eval,to_proc,const_set,raise,<<,members,define_method,instance_eval,last,>,length,-,keys,any?,join,[]=,each_with_index,hash,===,<,-@,size,>=,include?,to_sym,instance_of?,__id__,eql?,enum_for,+,name,each_pair,inspect,to_h,args,each_with_object,flatten,to_a,respond_to?,dig"),oe.$require("corelib/enumerable"),function(de,k,Ae){var B=t(de,k,"Struct"),pe=[B].concat(Ae),W=e.$r(pe);B.$include(Ce("Enumerable")),U(B,"$new",function fe(V,x,f){var o=fe.$$p||te,c,p,m,E,T=this,re=te;if(fe.$$p=null,c=r(arguments,1),p=n(c),p=i(p),m=c,E=p.$$smap.keyword_init,E==null&&(E=!1),s(V))if($(V.$class(),Ce("String"))&&l(V["$[]"](0).$upcase(),V["$[]"](0)))m.$unshift(V),V=te;else try{V=h["$const_name!"](V)}catch(je){if(e.rescue(je,[Ce("TypeError"),Ce("NameError")]))try{m.$unshift(V),V=te}finally{e.pop_exception()}else throw je}return d(m,"map",[],function(nt){return nt==null&&(nt=te),h["$coerce_to!"](nt,Ce("String"),"to_str")}),re=d(w,"new",[T],function je(){var nt=je.$$s==null?this:je.$$s;return d(m,"each",[],function ft(yt){var zt=ft.$$s==null?this:ft.$$s;return yt==null&&(yt=te),zt.$define_struct_attribute(yt)},{$$s:nt}),function(ft,yt){return N(ft,"$new",function(_t){var vt,mt,xt=this,St=te;return vt=r(arguments),mt=vt,St=xt.$allocate(),St.$$data={},d(St,"initialize",A(mt)),St},-1),ft.$alias_method("[]","new")}(e.get_singleton_class(nt))},{$$s:T}),s(o)&&d(re,"module_eval",[],o.$to_proc()),re.$$keyword_init=E,s(V)&&Ce("Struct").$const_set(V,re),re},-2),U(B,"$define_struct_attribute",function(V){var x=this;return $(x,Ce("Struct"))&&O.$raise(Ce("ArgumentError"),"you cannot define attributes to the Struct class"),x.$members()["$<<"](V),d(x,"define_method",[V],function f(){var o=f.$$s==null?this:f.$$s;return o.$$data[V]},{$$s:x}),d(x,"define_method",[""+V+"="],function f(o){var c=f.$$s==null?this:f.$$s;return o==null&&(o=te),c.$$data[V]=o},{$$s:x})}),U(B,"$members",function(){var V=this,x=te;return V.members==null&&(V.members=te),$(V,Ce("Struct"))&&O.$raise(Ce("ArgumentError"),"the Struct class has no members"),V.members=s(x=V.members)?x:[]}),U(B,"$inherited",function(V){var x=this,f=te;return x.members==null&&(x.members=te),f=x.members,d(V,"instance_eval",[],function o(){var c=o.$$s==null?this:o.$$s;return c.members=f},{$$s:x})}),N(B,"$initialize",function(V){var x,f,o=this,c=te,p=te,m=te;return x=r(arguments),f=x,s(o.$class().$$keyword_init)?(c=s(p=f.$last())?p:j([],{}),(s(q(f.$length(),1))||s(f.length===1&&!c.$$is_hash))&&O.$raise(Ce("ArgumentError"),"wrong number of arguments (given "+f.$length()+", expected 0)"),m=Y(c.$keys(),o.$class().$members()),s(m["$any?"]())&&O.$raise(Ce("ArgumentError"),"unknown keywords: "+m.$join(", ")),d(o.$class().$members(),"each",[],function E(T){var re,je=E.$$s==null?this:E.$$s;return T==null&&(T=te),re=[T,c["$[]"](T)],d(je,"[]=",re),re[re.length-1]},{$$s:o})):(s(q(f.$length(),o.$class().$members().$length()))&&O.$raise(Ce("ArgumentError"),"struct size differs"),d(o.$class().$members(),"each_with_index",[],function E(T,re){var je,nt=E.$$s==null?this:E.$$s;return T==null&&(T=te),re==null&&(re=te),je=[T,f["$[]"](re)],d(nt,"[]=",je),je[je.length-1]},{$$s:o}))},-1),N(B,"$initialize_copy",function(V){var x=this;x.$$data={};var f=Object.keys(V.$$data),o,c,p;for(o=0,c=f.length;o<c;o++)p=f[o],x.$$data[p]=V.$$data[p]}),U(B,"$keyword_init?",function(){var V=this;return V.$$keyword_init}),N(B,"$members",function(){var V=this;return V.$class().$members()}),N(B,"$hash",function(){var V=this;return W("Hash").$new(V.$$data).$hash()}),N(B,"$[]",function(V){var x=this;return he(Ce("Integer"),V)?(s(ne(V,x.$class().$members().$size()["$-@"]()))&&O.$raise(Ce("IndexError"),"offset "+V+" too small for struct(size:"+x.$class().$members().$size()+")"),s(_e(V,x.$class().$members().$size()))&&O.$raise(Ce("IndexError"),"offset "+V+" too large for struct(size:"+x.$class().$members().$size()+")"),V=x.$class().$members()["$[]"](V)):he(Ce("String"),V)?x.$$data.hasOwnProperty(V)||O.$raise(Ce("NameError").$new("no member '"+V+"' in struct",V)):O.$raise(Ce("TypeError"),"no implicit conversion of "+V.$class()+" into Integer"),V=h["$coerce_to!"](V,Ce("String"),"to_str"),x.$$data[V]}),N(B,"$[]=",function(V,x){var f=this;return he(Ce("Integer"),V)?(s(ne(V,f.$class().$members().$size()["$-@"]()))&&O.$raise(Ce("IndexError"),"offset "+V+" too small for struct(size:"+f.$class().$members().$size()+")"),s(_e(V,f.$class().$members().$size()))&&O.$raise(Ce("IndexError"),"offset "+V+" too large for struct(size:"+f.$class().$members().$size()+")"),V=f.$class().$members()["$[]"](V)):he(Ce("String"),V)?s(f.$class().$members()["$include?"](V.$to_sym()))||O.$raise(Ce("NameError").$new("no member '"+V+"' in struct",V)):O.$raise(Ce("TypeError"),"no implicit conversion of "+V.$class()+" into Integer"),V=h["$coerce_to!"](V,Ce("String"),"to_str"),f.$$data[V]=x}),N(B,"$==",function(V){var x=this;if(!s(V["$instance_of?"](x.$class())))return!1;var f={},o={};function c(p,m){var E,T,re;f[p.$__id__()]=!0,o[m.$__id__()]=!0;for(E in p.$$data)if(T=p.$$data[E],re=m.$$data[E],Ce("Struct")["$==="](T)){if((!f.hasOwnProperty(T.$__id__())||!o.hasOwnProperty(re.$__id__()))&&!c(T,re))return!1}else if(!T["$=="](re))return!1;return!0}return c(x,V)}),N(B,"$eql?",function(V){var x=this;if(!s(V["$instance_of?"](x.$class())))return!1;var f={},o={};function c(p,m){var E,T,re;f[p.$__id__()]=!0,o[m.$__id__()]=!0;for(E in p.$$data)if(T=p.$$data[E],re=m.$$data[E],Ce("Struct")["$==="](T)){if((!f.hasOwnProperty(T.$__id__())||!o.hasOwnProperty(re.$__id__()))&&!c(T,re))return!1}else if(!T["$eql?"](re))return!1;return!0}return c(x,V)}),N(B,"$each",function fe(){var V=fe.$$p||te,x=this;return fe.$$p=null,V===te?d(x,"enum_for",["each"],function f(){var o=f.$$s==null?this:f.$$s;return o.$size()},{$$s:x}):(d(x.$class().$members(),"each",[],function f(o){var c=f.$$s==null?this:f.$$s;return o==null&&(o=te),e.yield1(V,c["$[]"](o))},{$$s:x}),x)}),N(B,"$each_pair",function fe(){var V=fe.$$p||te,x=this;return fe.$$p=null,V===te?d(x,"enum_for",["each_pair"],function f(){var o=f.$$s==null?this:f.$$s;return o.$size()},{$$s:x}):(d(x.$class().$members(),"each",[],function f(o){var c=f.$$s==null?this:f.$$s;return o==null&&(o=te),e.yield1(V,[o,c["$[]"](o)])},{$$s:x}),x)}),N(B,"$length",function(){var V=this;return V.$class().$members().$length()}),N(B,"$to_a",function(){var V=this;return d(V.$class().$members(),"map",[],function x(f){var o=x.$$s==null?this:x.$$s;return f==null&&(f=te),o["$[]"](f)},{$$s:V})});var Fe=[];return N(B,"$inspect",function(){var V=this,x=te,f=te;return function(){try{return x="#<struct ",s(Fe["$include?"](V.$__id__()))?Q(x,":...>"):(Fe["$<<"](V.$__id__()),f=!0,he(Ce("Struct"),V)&&s(V.$class().$name())&&(x=Q(x,""+V.$class()+" ")),x=Q(x,d(V.$each_pair(),"map",[],function(c,p){return c==null&&(c=te),p==null&&(p=te),""+c+"="+W("Opal").$inspect(p)}).$join(", ")),x=Q(x,">"),x)}finally{s(f)&&Fe.pop()}}()}),N(B,"$to_h",function fe(){var V=fe.$$p||te,x=this;return fe.$$p=null,V!==te?d(d(x,"map",[],V.$to_proc()),"to_h",A(x.$args())):d(x.$class().$members(),"each_with_object",[j([],{})],function f(o,c){var p,m=f.$$s==null?this:f.$$s;return o==null&&(o=te),c==null&&(c=te),p=[o,m["$[]"](o)],d(c,"[]=",p),p[p.length-1]},{$$s:x})}),N(B,"$values_at",function(V){var x,f,o=this;x=r(arguments),f=x,f=d(f,"map",[],function(T){return T==null&&(T=te),T.$$is_range?T.$to_a():T}).$flatten();for(var c=[],p=0,m=f.length;p<m;p++)f[p].$$is_number||O.$raise(Ce("TypeError"),"no implicit conversion of "+f[p].$class()+" into Integer"),c.push(o["$[]"](f[p]));return c},-1),N(B,"$dig",function(V,x){var f,o,c=this,p=te;return f=r(arguments,1),o=f,p=s(V.$$is_string&&c.$$data.hasOwnProperty(V))&&c.$$data[V]||te,p===te||o.length===0?p:(s(p["$respond_to?"]("dig"))||O.$raise(Ce("TypeError"),""+p.$class()+" does not have #dig method"),d(p,"dig",A(o)))},-2),be(B,"size","length"),be(B,"to_s","inspect"),be(B,"values","to_a")}("::",null,Ee)};Opal.modules["corelib/set"]=function(e){var t=e.freeze,r=e.klass,n=e.slice,i=e.defs,s=e.hash2,l=e.truthy,$=e.eqeqeq,h=e.Kernel,d=e.send,w=e.def,A=e.eqeq,N=e.rb_lt,U=e.rb_le,O=e.alias,j=[],q=e.nil,Y=e.$$$;return e.add_stubs("include,new,nil?,===,raise,each,add,merge,class,respond_to?,subtract,dup,join,to_a,equal?,instance_of?,==,instance_variable_get,size,is_a?,all?,include?,[]=,enum_for,[],<<,replace,compare_by_identity,name,compare_by_identity?,delete,select,frozen?,freeze,reject,delete_if,to_proc,keep_if,each_key,empty?,eql?,instance_eval,clear,<,<=,any?,!,intersect?,keys,|,proper_subset?,subset?,proper_superset?,superset?,-,select!,collect!"),function(he,ne,_e){var Q=r(he,ne,"Set"),be=[Q].concat(_e),oe=e.$r(be),Ee=q,te=Q.$$prototype;te.hash=q,Q.$include(Y("Enumerable")),i(Q,"$[]",function(k){var Ae,B,pe=this;return Ae=n(arguments),B=Ae,pe.$new(B)},-1),w(Q,"$initialize",function de(k){var Ae=de.$$p||q,B=this;return de.$$p=null,k==null&&(k=q),B.hash=s([],{}),l(k["$nil?"]())?q:($(Y("Enumerable"),k)||h.$raise(Y("ArgumentError"),"value must be enumerable"),l(Ae)?d(k,"each",[],function pe(W){var Fe=pe.$$s==null?this:pe.$$s;return W==null&&(W=q),Fe.$add(e.yield1(Ae,W))},{$$s:B}):B.$merge(k))},-1),w(Q,"$dup",function(){var k=this,Ae=q;return Ae=k.$class().$new(),Ae.$merge(k)}),w(Q,"$-",function(k){var Ae=this;return l(k["$respond_to?"]("each"))||h.$raise(Y("ArgumentError"),"value must be enumerable"),Ae.$dup().$subtract(k)}),w(Q,"$inspect",function(){var k=this;return"#<Set: {"+k.$to_a().$join(",")+"}>"}),w(Q,"$==",function(k){var Ae=this;return l(Ae["$equal?"](k))?!0:l(k["$instance_of?"](Ae.$class()))?Ae.hash["$=="](k.$instance_variable_get("@hash")):l(k["$is_a?"](Y("Set")))&&A(Ae.$size(),k.$size())?d(k,"all?",[],function B(pe){var W=B.$$s==null?this:B.$$s;return W.hash==null&&(W.hash=q),pe==null&&(pe=q),W.hash["$include?"](pe)},{$$s:Ae}):!1}),w(Q,"$add",function(k){var Ae=this;return Ae.hash["$[]="](k,!0),Ae}),w(Q,"$classify",function de(){var k=de.$$p||q,Ae=this,B=q;return de.$$p=null,k===q?Ae.$enum_for("classify"):(B=d(Y("Hash"),"new",[],function pe(W,Fe){var fe,V=pe.$$s==null?this:pe.$$s;return W==null&&(W=q),Fe==null&&(Fe=q),fe=[Fe,V.$class().$new()],d(W,"[]=",fe),fe[fe.length-1]},{$$s:Ae}),d(Ae,"each",[],function(W){return W==null&&(W=q),B["$[]"](e.yield1(k,W)).$add(W)}),B)}),w(Q,"$collect!",function de(){var k=de.$$p||q,Ae=this,B=q;return de.$$p=null,k===q?Ae.$enum_for("collect!"):(B=Ae.$class().$new(),d(Ae,"each",[],function(W){return W==null&&(W=q),B["$<<"](e.yield1(k,W))}),Ae.$replace(B))}),w(Q,"$compare_by_identity",function(){var k=this;return l(k.hash["$respond_to?"]("compare_by_identity"))?(k.hash.$compare_by_identity(),k):k.$raise(oe("NotImplementedError"),""+k.$class().$name()+"#compare_by_identity is not implemented")}),w(Q,"$compare_by_identity?",function(){var k=this,Ae=q;return l(Ae=k.hash["$respond_to?"]("compare_by_identity?"))?k.hash["$compare_by_identity?"]():Ae}),w(Q,"$delete",function(k){var Ae=this;return Ae.hash.$delete(k),Ae}),w(Q,"$delete?",function(k){var Ae=this;return l(Ae["$include?"](k))?(Ae.$delete(k),Ae):q}),w(Q,"$delete_if",function de(){var k=de.$$p||q,Ae=this;return de.$$p=null,k===q?Ae.$enum_for("delete_if"):(d(d(Ae,"select",[],function(pe){return pe==null&&(pe=q),e.yield1(k,pe)}),"each",[],function B(pe){var W=B.$$s==null?this:B.$$s;return W.hash==null&&(W.hash=q),pe==null&&(pe=q),W.hash.$delete(pe)},{$$s:Ae}),Ae)}),w(Q,"$freeze",function(){var k=this;return l(k["$frozen?"]())?k:(k.hash.$freeze(),t(k))}),w(Q,"$keep_if",function de(){var k=de.$$p||q,Ae=this;return de.$$p=null,k===q?Ae.$enum_for("keep_if"):(d(d(Ae,"reject",[],function(pe){return pe==null&&(pe=q),e.yield1(k,pe)}),"each",[],function B(pe){var W=B.$$s==null?this:B.$$s;return W.hash==null&&(W.hash=q),pe==null&&(pe=q),W.hash.$delete(pe)},{$$s:Ae}),Ae)}),w(Q,"$reject!",function de(){var k=de.$$p||q,Ae=this,B=q;return de.$$p=null,k===q?Ae.$enum_for("reject!"):(B=Ae.$size(),d(Ae,"delete_if",[],k.$to_proc()),A(Ae.$size(),B)?q:Ae)}),w(Q,"$select!",function de(){var k=de.$$p||q,Ae=this,B=q;return de.$$p=null,k===q?Ae.$enum_for("select!"):(B=Ae.$size(),d(Ae,"keep_if",[],k.$to_proc()),A(Ae.$size(),B)?q:Ae)}),w(Q,"$add?",function(k){var Ae=this;return l(Ae["$include?"](k))?q:Ae.$add(k)}),w(Q,"$each",function de(){var k=de.$$p||q,Ae=this;return de.$$p=null,k===q?Ae.$enum_for("each"):(d(Ae.hash,"each_key",[],k.$to_proc()),Ae)}),w(Q,"$empty?",function(){var k=this;return k.hash["$empty?"]()}),w(Q,"$eql?",function(k){var Ae=this;return Ae.hash["$eql?"](d(k,"instance_eval",[],function B(){var pe=B.$$s==null?this:B.$$s;return pe.hash==null&&(pe.hash=q),pe.hash},{$$s:Ae}))}),w(Q,"$clear",function(){var k=this;return k.hash.$clear(),k}),w(Q,"$include?",function(k){var Ae=this;return Ae.hash["$include?"](k)}),w(Q,"$merge",function(k){var Ae=this;return d(k,"each",[],function B(pe){var W=B.$$s==null?this:B.$$s;return pe==null&&(pe=q),W.$add(pe)},{$$s:Ae}),Ae}),w(Q,"$replace",function(k){var Ae=this;return Ae.$clear(),Ae.$merge(k),Ae}),w(Q,"$size",function(){var k=this;return k.hash.$size()}),w(Q,"$subtract",function(k){var Ae=this;return d(k,"each",[],function B(pe){var W=B.$$s==null?this:B.$$s;return pe==null&&(pe=q),W.$delete(pe)},{$$s:Ae}),Ae}),w(Q,"$|",function(k){var Ae=this;return l(k["$respond_to?"]("each"))||h.$raise(Y("ArgumentError"),"value must be enumerable"),Ae.$dup().$merge(k)});function Ce(de){l(Ee=de["$is_a?"](Y("Set")))||h.$raise(Y("ArgumentError"),"value must be a set")}return w(Q,"$superset?",function(k){var Ae=this;return Ce(k),l(N(Ae.$size(),k.$size()))?!1:d(k,"all?",[],function B(pe){var W=B.$$s==null?this:B.$$s;return pe==null&&(pe=q),W["$include?"](pe)},{$$s:Ae})}),w(Q,"$proper_superset?",function(k){var Ae=this;return Ce(k),l(U(Ae.$size(),k.$size()))?!1:d(k,"all?",[],function B(pe){var W=B.$$s==null?this:B.$$s;return pe==null&&(pe=q),W["$include?"](pe)},{$$s:Ae})}),w(Q,"$subset?",function(k){var Ae=this;return Ce(k),l(N(k.$size(),Ae.$size()))?!1:d(Ae,"all?",[],function(pe){return pe==null&&(pe=q),k["$include?"](pe)})}),w(Q,"$proper_subset?",function(k){var Ae=this;return Ce(k),l(U(k.$size(),Ae.$size()))?!1:d(Ae,"all?",[],function(pe){return pe==null&&(pe=q),k["$include?"](pe)})}),w(Q,"$intersect?",function(k){var Ae=this;return Ce(k),l(N(Ae.$size(),k.$size()))?d(Ae,"any?",[],function(pe){return pe==null&&(pe=q),k["$include?"](pe)}):d(k,"any?",[],function B(pe){var W=B.$$s==null?this:B.$$s;return pe==null&&(pe=q),W["$include?"](pe)},{$$s:Ae})}),w(Q,"$disjoint?",function(k){var Ae=this;return Ae["$intersect?"](k)["$!"]()}),w(Q,"$to_a",function(){var k=this;return k.hash.$keys()}),O(Q,"+","|"),O(Q,"<","proper_subset?"),O(Q,"<<","add"),O(Q,"<=","subset?"),O(Q,">","proper_superset?"),O(Q,">=","superset?"),O(Q,"difference","-"),O(Q,"filter!","select!"),O(Q,"length","size"),O(Q,"map!","collect!"),O(Q,"member?","include?"),O(Q,"union","|")}("::",null,j)};Opal.modules["corelib/dir"]=function(e){var t=e.klass,r=e.def,n=e.truthy,i=e.alias,s=e.nil,l=e.$$$;return e.add_stubs("[],pwd"),function($,h,d){var w=t($,h,"Dir");return function(A,N){return r(A,"$chdir",function U(O){var j=U.$$p||s,q=s;return U.$$p=null,function(){try{return q=e.current_dir,e.current_dir=O,e.yieldX(j,[])}finally{e.current_dir=q}}()}),r(A,"$pwd",function(){return e.current_dir||"."}),r(A,"$home",function(){var O=s;return n(O=l("ENV")["$[]"]("HOME"))?O:"."}),i(A,"getwd","pwd")}(e.get_singleton_class(w))}("::",null)};Opal.modules["corelib/file"]=function(e){var t=e.truthy,r=e.klass,n=e.const_set,i=e.Opal,s=e.regexp,l=e.rb_plus,$=e.def,h=e.Kernel,d=e.eqeq,w=e.rb_lt,A=e.rb_minus,N=e.range,U=e.send,O=e.slice,j=e.alias,q=[],Y=e.nil,he=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(ne,_e,Q){var be=r(ne,_e,"File"),oe=[be].concat(Q),Ee=Y;return n(oe[0],"Separator",n(oe[0],"SEPARATOR","/")),n(oe[0],"ALT_SEPARATOR",Y),n(oe[0],"PATH_SEPARATOR",":"),n(oe[0],"FNM_SYSCASE",0),Ee=/^[a-zA-Z]:(?:\\|\/)/,function(te,Ce){var de=[te].concat(Ce),k=e.$r(de);$(te,"$absolute_path",function(W,Fe){var fe=Y,V=Y,x=Y,f=Y,o=Y,c=Y,p=Y,m=Y,E=Y,T=Y;Fe==null&&(Fe=Y),fe=k("SEPARATOR"),V=B(),x=[],W=t(W["$respond_to?"]("to_path"))?W.$to_path():W,W=i["$coerce_to!"](W,he("String"),"to_str"),Fe=t(f=Fe)?f:he("Dir").$pwd(),o=W.substr(0,fe.length)===fe||Ee.test(W),c=Fe.substr(0,fe.length)===fe||Ee.test(Fe),t(o)?(p=W.$split(s(["[",V,"]"])),m=Ee.test(W)?"":W.$sub(s(["^([",V,"]+).*$"]),"\\1"),E=!0):(p=l(Fe.$split(s(["[",V,"]"])),W.$split(s(["[",V,"]"]))),m=Ee.test(Fe)?"":Fe.$sub(s(["^([",V,"]+).*$"]),"\\1"),E=c);for(var re,je=0,nt=p.length;je<nt;je++)re=p[je],!(re===Y||re===""&&(x.length===0||E)||re==="."&&(x.length===0||E))&&(re===".."?x.pop():x.push(re));return!E&&p[0]!=="."&&x.$unshift("."),T=x.$join(fe),t(E)&&(T=l(m,T)),T},-2),$(te,"$expand_path",function(W,Fe){var fe=this,V=Y,x=Y,f=Y,o=Y,c=Y;return Fe==null&&(Fe=Y),V=k("SEPARATOR"),x=B(),t(W[0]==="~"||Fe&&Fe[0]==="~")&&(f=k("Dir").$home(),t(f)||h.$raise(he("ArgumentError"),"couldn't find HOME environment -- expanding `~'"),o=Ee.test(f)?"":f.$sub(s(["^([",x,"]+).*$"]),"\\1"),t(f["$start_with?"](o))||h.$raise(he("ArgumentError"),"non-absolute home"),f=l(f,V),c=s(["^\\~(?:",V,"|$)"]),W=W.$sub(c,f),t(Fe)&&(Fe=Fe.$sub(c,f))),fe.$absolute_path(W,Fe)},-2);function Ae(pe){return t(pe["$respond_to?"]("to_path"))&&(pe=pe.$to_path()),pe=i["$coerce_to!"](pe,he("String"),"to_str"),pe}function B(){return k("ALT_SEPARATOR")===Y?e.escape_regexp(k("SEPARATOR")):e.escape_regexp(l(k("SEPARATOR"),k("ALT_SEPARATOR")))}return $(te,"$dirname",function(W,Fe){var fe=this,V=Y;if(Fe==null&&(Fe=1),d(Fe,0))return W;t(w(Fe,0))&&h.$raise(he("ArgumentError"),"level can't be negative"),V=B(),W=Ae(W);var x=W.match(new RegExp("^["+V+"]")),f;return W=W.replace(new RegExp("["+V+"]+$"),""),W=W.replace(new RegExp("[^"+V+"]+$"),""),W=W.replace(new RegExp("["+V+"]+$"),""),W===""?f=x?"/":".":f=W,Fe==1?f:fe.$dirname(f,A(Fe,1))},-2),$(te,"$basename",function(W,Fe){var fe=Y;return Fe==null&&(Fe=Y),fe=B(),W=Ae(W),W.length==0||(Fe!==Y?Fe=i["$coerce_to!"](Fe,he("String"),"to_str"):Fe=null,W=W.replace(new RegExp("(.)["+fe+"]*$"),"$1"),W=W.replace(new RegExp("^(?:.*["+fe+"])?([^"+fe+"]+)$"),"$1"),Fe===".*"?W=W.replace(/\.[^\.]+$/,""):Fe!==null&&(Fe=e.escape_regexp(Fe),W=W.replace(new RegExp(""+Fe+"$"),""))),W},-2),$(te,"$extname",function(W){var Fe=this,fe=Y,V=Y;return W=Ae(W),fe=Fe.$basename(W),t(fe["$empty?"]())||(V=fe["$[]"](N(1,-1,!1)).$rindex("."),t(V["$nil?"]())||d(l(V,1),A(fe.$length(),1)))?"":fe["$[]"](e.Range.$new(l(V,1),-1,!1))}),$(te,"$exist?",function(W){return e.modules[W]!=null}),$(te,"$directory?",function(W){var Fe=Y;Fe=[];for(var fe in e.modules)Fe.push(fe);return W=W.$gsub(s(["(^.",k("SEPARATOR"),"+|",k("SEPARATOR"),"+$)"])),U(Fe,"find",[],function(x){return x==null&&(x=Y),x["$=~"](s(["^",W]))})}),$(te,"$join",function(W){var Fe,fe,V=Y;return Fe=O(arguments),fe=Fe,t(fe["$empty?"]())?"":(V="",fe=U(fe.$flatten().$each_with_index(),"map",[],function(f,o){return f==null&&(f=Y),o==null&&(o=Y),d(o,0)&&t(f["$empty?"]())||d(fe.$length(),l(o,1))&&t(f["$empty?"]())?k("SEPARATOR"):f}),fe=U(fe,"reject",[],"empty?".$to_proc()),U(fe,"each_with_index",[],function(f,o){var c=Y;return f==null&&(f=Y),o==null&&(o=Y),c=fe["$[]"](l(o,1)),t(c["$nil?"]())?V=""+V+f:(t(f["$end_with?"](k("SEPARATOR")))&&t(c["$start_with?"](k("SEPARATOR")))&&(f=f.$sub(s([k("SEPARATOR"),"+$"]),"")),V=t(f["$end_with?"](k("SEPARATOR")))||t(c["$start_with?"](k("SEPARATOR")))?""+V+f:""+V+f+k("SEPARATOR"))}),V)},-1),$(te,"$split",function(W){return W.$split(k("SEPARATOR"))}),j(te,"realpath","expand_path"),j(te,"exists?","exist?")}(e.get_singleton_class(be),oe)}("::",he("IO"),q)};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(l,$){var h=t(l,$,"Signal");return n(h,"$trap",function(w){return r(arguments),s},-1)}("::",null),function(l,$){var h=t(l,$,"GC");return n(h,"$start",i(s))}("::",null)};Opal.modules["corelib/process"]=function(e){var t=e.module,r=e.defs,n=e.truthy,i=e.return_val,s=e.Kernel,l=e.nil,$=e.$$$;return e.add_stubs("const_set,size,<<,__register_clock__,to_f,now,new,[],raise"),function(h){var d=t(h,"Process"),w=l;if(d.__clocks__=[],r(d,"$__register_clock__",function(U,O){var j=this;return j.__clocks__==null&&(j.__clocks__=l),j.$const_set(U,j.__clocks__.$size()),j.__clocks__["$<<"](O)}),d.$__register_clock__("CLOCK_REALTIME",function(){return Date.now()}),w=!1,e.global.performance)w=function(){return performance.now()};else if(e.global.process&&process.hrtime){var A=process.hrtime();w=function(){var N=process.hrtime(A),U=N[1]/1e3|0;return N[0]*1e3+U/1e3}}return n(w)&&d.$__register_clock__("CLOCK_MONOTONIC",w),r(d,"$pid",i(0)),r(d,"$times",function(){var U=l;return U=$("Time").$now().$to_f(),$($("Benchmark"),"Tms").$new(U,U,U,U,U)}),r(d,"$clock_gettime",function(U,O){var j=this,q=l;j.__clocks__==null&&(j.__clocks__=l),O==null&&(O="float_second"),n(q=j.__clocks__["$[]"](U))||s.$raise($($("Errno"),"EINVAL"),"clock_gettime("+U+") "+j.__clocks__["$[]"](U));var Y=q();switch(O){case"float_second":return Y/1e3;case"float_millisecond":return Y/1;case"float_microsecond":return Y*1e3;case"second":return Y/1e3|0;case"millisecond":return Y/1|0;case"microsecond":return Y*1e3|0;case"nanosecond":return Y*1e6|0;default:s.$raise($("ArgumentError"),"unexpected unit: "+O)}},-2)}("::")};Opal.modules["corelib/random/formatter"]=function(e){var t=e.klass,r=e.module,n=e.def,i=e.range,s=e.send,l=e.rb_divide,$=e.Kernel,h=e.Opal,d=[],w=e.nil,A=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(N,U,O){var j=t(N,U,"Random"),q=[j].concat(O);return function(Y,he){var ne=r(Y,"Formatter"),_e=[ne].concat(he),Q=e.$r(_e);return n(ne,"$hex",function(oe){var Ee=this;oe==null&&(oe=w),oe=A("Random").$_verify_count(oe);for(var te=Ee.$bytes(oe),Ce="",de=0;de<oe;de++)Ce+=te.charCodeAt(de).toString(16).padStart(2,"0");return Ce.$encode("US-ASCII")},-1),n(ne,"$random_bytes",function(oe){var Ee=this;return oe==null&&(oe=w),Ee.$bytes(oe)},-1),n(ne,"$base64",function(oe){var Ee=this;return oe==null&&(oe=w),A("Base64").$strict_encode64(Ee.$random_bytes(oe)).$encode("US-ASCII")},-1),n(ne,"$urlsafe_base64",function(oe,Ee){var te=this;return oe==null&&(oe=w),Ee==null&&(Ee=!1),A("Base64").$urlsafe_encode64(te.$random_bytes(oe),Ee).$encode("US-ASCII")},-1),n(ne,"$uuid",function(){var oe=this,Ee=w;return Ee=oe.$hex(16).$split(""),Ee["$[]="](12,"4"),Ee["$[]="](16,(parseInt(Ee["$[]"](16),16)&3|8).toString(16)),Ee=[Ee["$[]"](i(0,8,!0)),Ee["$[]"](i(8,12,!0)),Ee["$[]"](i(12,16,!0)),Ee["$[]"](i(16,20,!0)),Ee["$[]"](i(20,32,!0))],Ee=s(Ee,"map",[],"join".$to_proc()),Ee.$join("-")}),n(ne,"$random_float",function(){var oe=this,Ee=w,te=w;return Ee=oe.$bytes(4),te=0,s(4,"times",[],function(de){return de==null&&(de=w),te=te["$<<"](8),te=te["$|"](Ee["$[]"](de).$ord())}),l(te.$abs(),2147483647)}),n(ne,"$random_number",function(oe){var Ee=this;function te(){return Ee.$random_float()}function Ce(k){return Math.floor(te()*k)}function de(){var k=oe.begin,Ae=oe.end;if(k===w||Ae===w)return w;var B=Ae-k;return B<0?w:B===0?k:(Ae%1===0&&k%1===0&&!oe.excl&&B++,Ce(B)+k)}return oe==null?te():oe.$$is_range?de():oe.$$is_number?(oe<=0&&$.$raise(A("ArgumentError"),"invalid argument - "+oe),oe%1===0?Ce(oe):te()*oe):(oe=h["$coerce_to!"](oe,A("Integer"),"to_int"),oe<=0&&$.$raise(A("ArgumentError"),"invalid argument - "+oe),Ce(oe))},-1),n(ne,"$alphanumeric",function(oe){var Ee=this,te=w;return oe==null&&(oe=w),oe=Q("Random").$_verify_count(oe),te=s([i("0","9",!1),i("a","z",!1),i("A","Z",!1)],"map",[],"to_a".$to_proc()).$flatten(),s(A("Array"),"new",[oe],function Ce(de){var k=Ce.$$s==null?this:Ce.$$s;return te["$[]"](k.$random_number(te.$length()))},{$$s:Ee}).$join()},-1)}(j,q),j.$include(A(A("Random"),"Formatter")),j.$extend(A(A("Random"),"Formatter"))}("::",null,d)};Opal.modules["corelib/random/mersenne_twister"]=function(e){var t=e.klass,r=e.const_set,n=e.send,i=e.nil,s=e.$$$,l=i;return e.add_stubs("generator="),l=function(){var $=624,h=397,d=2567483615,w=2147483648,A=2147483647,N=function(_e,Q){return _e&w|Q&A},U=function(_e,Q){return N(_e,Q)>>>1^(Q&1?d:0)};function O(_e){var Q={left:0,next:$,state:new Array($)};return j(Q,_e),Q}function j(_e,Q){var be;for(_e.state[0]=Q>>>0,be=1;be<$;be++)_e.state[be]=1812433253*(_e.state[be-1]^_e.state[be-1]>>30>>>0)+be,_e.state[be]&=4294967295;_e.left=1,_e.next=$}function q(_e){var Q=0,be=_e.state,oe;for(_e.left=$,_e.next=0,oe=$-h+1;--oe;Q++)be[Q]=be[Q+h]^U(be[Q+0],be[Q+1]);for(oe=h;--oe;Q++)be[Q]=be[Q+(h-$)]^U(be[Q+0],be[Q+1]);be[Q]=be[Q+(h-$)]^U(be[Q+0],be[0])}function Y(_e){var Q;return--_e.left<=0&&q(_e),Q=_e.state[_e.next++],Q^=Q>>>11,Q^=Q<<7&2636928640,Q^=Q<<15&4022730752,Q^=Q>>>18,Q>>>0}function he(_e,Q){return _e>>>=5,Q>>>=6,(_e*67108864+Q)*(1/9007199254740992)}function ne(_e){var Q=Y(_e),be=Y(_e);return he(Q,be)}return{genrand_real:ne,init:O}}(),function($,h){var d=t($,h,"Random"),w,A=Number.MAX_SAFE_INTEGER||Math.pow(2,53)-1;return r(d,"MERSENNE_TWISTER_GENERATOR",{new_seed:function(){return Math.round(Math.random()*A)},reseed:function(N){return l.init(N)},rand:function(N){return l.genrand_real(N)}}),w=[s(d,"MERSENNE_TWISTER_GENERATOR")],n(d,"generator=",w),w[w.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,l=e.def,$=e.eqeqeq,h=e.send,d=e.top,w=e.nil,A=e.$$$;return e.add_stubs("require,attr_reader,to_int,raise,new_seed,coerce_to!,reseed,rand,seed,bytes,===,==,state,_verify_count,encode,join,new,chr,random_number,random_float,const_defined?,const_set"),d.$require("corelib/random/formatter"),function(N,U){var O=r(N,U,"Random");return O.$attr_reader("seed","state"),i(O,"$_verify_count",function(q){return t(q)||(q=16),typeof q!="number"&&(q=q.$to_int()),q<0&&n.$raise(A("ArgumentError"),"negative string size (or size too big)"),q=Math.floor(q),q}),l(O,"$initialize",function(q){var Y=this;return q==null&&(q=A("Random").$new_seed()),q=s["$coerce_to!"](q,A("Integer"),"to_int"),Y.state=q,Y.$reseed(q)},-1),l(O,"$reseed",function(q){var Y=this;return Y.seed=q,Y.$rng=e.$$rand.reseed(q)}),i(O,"$new_seed",function(){return e.$$rand.new_seed()}),i(O,"$rand",function(q){var Y=this;return A(Y,"DEFAULT").$rand(q)},-1),i(O,"$srand",function(q){var Y=this,he=w;return q==null&&(q=A("Random").$new_seed()),q=s["$coerce_to!"](q,A("Integer"),"to_int"),he=A(Y,"DEFAULT").$seed(),A(Y,"DEFAULT").$reseed(q),he},-1),i(O,"$urandom",function(q){return A("SecureRandom").$bytes(q)}),l(O,"$==",function(q){var Y=this,he=w;return $(A("Random"),q)?t(he=Y.$seed()["$=="](q.$seed()))?Y.$state()["$=="](q.$state()):he:!1}),l(O,"$bytes",function(q){var Y=this;return q=A("Random").$_verify_count(q),h(A("Array"),"new",[q],function he(){var ne=he.$$s==null?this:he.$$s;return ne.$rand(255).$chr()},{$$s:Y}).$join().$encode("ASCII-8BIT")}),i(O,"$bytes",function(q){var Y=this;return A(Y,"DEFAULT").$bytes(q)}),l(O,"$rand",function(q){var Y=this;return Y.$random_number(q)},-1),l(O,"$random_float",function(){var q=this;return q.state++,e.$$rand.rand(q.$rng)}),i(O,"$random_float",function(){var q=this;return A(q,"DEFAULT").$random_float()}),i(O,"$generator=",function(q){var Y=this;return e.$$rand=q,t(Y["$const_defined?"]("DEFAULT"))?A(Y,"DEFAULT").$reseed():Y.$const_set("DEFAULT",Y.$new(Y.$new_seed()))})}("::",null),d.$require("corelib/random/mersenne_twister")};Opal.modules["corelib/unsupported"]=function(e){var t=e.Kernel,r=e.klass,n=e.send,i=e.slice,s=e.module,l=e.def,$=e.return_val,h=e.alias,d=e.defs,w=e.top,A=[],N=e.nil,U=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 O={};function j(Y){switch(e.config.unsupported_features_severity){case"error":t.$raise(U("NotImplementedError"),Y);break;case"warning":q(Y);break}}function q(Y){O[Y]||(O[Y]=!0,w.$warn(Y))}return function(Y,he){var ne=r(Y,he,"String"),_e="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 Q(be){var oe=Q.$$s==null?this:Q.$$s;return be==null&&(be=N),n(oe,"define_method",[be],function(te){return i(arguments),t.$raise(U("NotImplementedError"),_e["$%"](be))},-1)},{$$s:ne})}("::",null),function(Y){var he=s(Y,"Kernel"),ne="Object tainting is not supported by Opal";return l(he,"$taint",function(){var Q=this;return j(ne),Q}),l(he,"$untaint",function(){var Q=this;return j(ne),Q}),l(he,"$tainted?",function(){return j(ne),!1})}("::"),function(Y,he){var ne=r(Y,he,"Module");return l(ne,"$public",function(Q){var be,oe,Ee=this;return be=i(arguments),oe=be,oe.length===0?(Ee.$$module_function=!1,N):oe.length===1?oe[0]:oe},-1),l(ne,"$private_class_method",function(Q){var be,oe;return be=i(arguments),oe=be,oe.length===1?oe[0]:oe},-1),l(ne,"$private_method_defined?",$(!1)),l(ne,"$private_constant",function(Q){return i(arguments),N},-1),h(ne,"nesting","public"),h(ne,"private","public"),h(ne,"protected","public"),h(ne,"protected_method_defined?","private_method_defined?"),h(ne,"public_class_method","private_class_method"),h(ne,"public_instance_method","instance_method"),h(ne,"public_instance_methods","instance_methods"),h(ne,"public_method_defined?","method_defined?")}("::",null),function(Y){var he=s(Y,"Kernel");return l(he,"$private_methods",function(_e){return i(arguments),[]},-1),h(he,"protected_methods","private_methods"),h(he,"private_instance_methods","private_methods"),h(he,"protected_instance_methods","private_methods")}("::"),function(Y,he){var ne=s(Y,"Kernel"),_e=[ne].concat(he),Q=e.$r(_e);return l(ne,"$eval",function(oe){return i(arguments),t.$raise(U("NotImplementedError"),"To use Kernel#eval, you must first require 'opal-parser'. "+("See https://github.com/opal/opal/blob/"+Q("RUBY_ENGINE_VERSION")+"/docs/opal_parser.md for details."))},-1)}("::",A),d(w,"$public",function(he){var ne,_e;return ne=i(arguments),_e=ne,_e.length===1?_e[0]:_e},-1),d(w,"$private",function(he){var ne,_e;return ne=i(arguments),_e=ne,_e.length===1?_e[0]:_e},-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 d8(e){Opal.modules["asciidoctor/js/opal_ext/browser/file"]=function(a){var ue=a.klass,se=a.defs,K=[];return a.nil,a.add_stubs("new"),function(ye,y,X){var Ue=ue(ye,y,"File"),J=[Ue].concat(X),qe=a.$r(J);return se(Ue,"$read",function(et){var Ne="",Ke=-1;try{var Le=new XMLHttpRequest;Le.open("GET",et,!1),Le.addEventListener("load",function(){Ke=this.status,(Ke===0||Ke===200)&&(Ne=this.responseText)}),Le.overrideMimeType("text/plain"),Le.send()}catch(Pe){throw qe("IOError").$new("Error reading file or directory: "+et+"; reason: "+Pe.message)}if(Ke===404||Ke===0&&!Ne)throw qe("IOError").$new("No such file or directory: "+et);return Ne})}(K[0],null,K)},Opal.modules["asciidoctor/js/opal_ext/browser"]=function(a){var ue=a.const_set,se=a.top,K=[];a.nil,a.add_stubs("require");var ye,y,X,Ue;return Ue=Ue||"xmlhttprequest",ye=ye||"browser",y=y||"",X=X||"",ue(K[0],"JAVASCRIPT_IO_MODULE",Ue),ue(K[0],"JAVASCRIPT_PLATFORM",ye),ue(K[0],"JAVASCRIPT_ENGINE",y),ue(K[0],"JAVASCRIPT_FRAMEWORK",X),se.$require("asciidoctor/js/opal_ext/browser/file")},Opal.modules["asciidoctor/js/asciidoctor_ext/browser/abstract_node"]=function(a){var ue=a.module,se=a.klass,K=a.hash2,ye=a.truthy,y=a.def,X=[],Ue=a.nil,J=a.$$$;return a.add_stubs("web_path,path_resolver,uriish?,[],attr?,start_with?,descends_from?,base_dir,join,prepare_source_string,read,fetch,warn,logger,normalize_system_path,read_asset"),function(qe,R){var et=ue(qe,"Asciidoctor"),Ne=[et].concat(R);return function(Ke,Le,Pe){var ht=se(Ke,Le,"AbstractNode"),Ve=[ht].concat(Pe),st=a.$r(Ve),Ye=ht.$$prototype;return Ye.document=Ue,y(ht,"$read_contents",function(dt,I){var tt=this,C=Ue,rt=Ue,lt=Ue;if(I==null&&(I=K([],{})),C=tt.document,ye(st("Helpers")["$uriish?"](dt))||ye(rt=I["$[]"]("start"))&&ye(st("Helpers")["$uriish?"](rt))&&ye(dt=C.$path_resolver().$web_path(dt,rt)))if(ye(C.$path_resolver()["$descends_from?"](dt,C.$base_dir()))||ye(dt["$start_with?"]("chrome://"))||ye(C["$attr?"]("allow-uri-read")))try{return ye(I["$[]"]("normalize"))?st("Helpers").$prepare_source_string(J("File").$read(dt)).$join(st("LF")):J("File").$read(dt)}catch(Z){if(a.rescue(Z,[st("StandardError")]))try{return ye(I.$fetch("warn_on_failure",!0))&&tt.$logger().$warn("could not retrieve contents of "+(ye(lt=I["$[]"]("label"))?lt:"asset")+" at URI: "+dt),Ue}finally{a.pop_exception()}else throw Z}else return ye(I.$fetch("warn_on_failure",!0))&&tt.$logger().$warn("cannot retrieve contents of "+(ye(lt=I["$[]"]("label"))?lt:"asset")+" at URI: "+dt+" (allow-uri-read attribute not enabled)"),Ue;else return dt=tt.$normalize_system_path(dt,I["$[]"]("start"),Ue,K(["target_name"],{target_name:ye(lt=I["$[]"]("label"))?lt:"asset"})),tt.$read_asset(dt,K(["normalize","warn_on_failure","label"],{normalize:I["$[]"]("normalize"),warn_on_failure:I.$fetch("warn_on_failure",!0),label:I["$[]"]("label")}))},-2),y(ht,"$generate_data_uri_from_uri",function(dt,I){var tt=this,C="",rt="",lt=-1;try{var Z=new XMLHttpRequest;Z.open("GET",dt,!1),Z.overrideMimeType("text/plain; charset=x-user-defined"),Z.addEventListener("load",function(){if(lt=this.status,lt===0||lt===200){for(var L="",He=this.responseText,ke=0,Ie=He.length;ke<Ie;++ke){var Re=He.charCodeAt(ke),$e=Re&255;L+=String.fromCharCode($e)}rt=btoa(L),C=this.getResponseHeader("content-type")}}),Z.send(null),C||(dt.endsWith(".jpeg")||dt.endsWith(".jpg")||dt.endsWith(".jpe")?C="image/jpg":dt.endsWith(".png")?C="image/png":dt.endsWith(".svg")?C="image/svg+xml":dt.endsWith(".bmp")?C="image/bmp":(dt.endsWith(".tif")||dt.endsWith(".tiff"))&&(C="image/tiff"))}catch{lt=0}return lt===404||lt===0&&(!rt||!C)?(tt.$logger().$warn("could not retrieve image data from URI: "+dt),dt):"data:"+C+";base64,"+rt},-2)}(Ne[0],null,Ne)}(X[0],X)},Opal.modules["asciidoctor/js/asciidoctor_ext/browser/open_uri"]=function(a){var ue=a.module,se=a.slice,K=a.send,ye=a.to_a,y=a.defs,X=[],Ue=a.nil;return a.add_stubs("new,path"),function(J,qe){var R=ue(J,"OpenURI"),et=[R].concat(qe),Ne=a.$r(et);return y(Ne("OpenURI"),"$open_uri",function Ke(Le,Pe){var ht,Ve,st=Ke.$$p||Ue,Ye=this,Ze=Ue;return Ke.$$p=null,ht=se(arguments,1),Ve=ht,Ze=K(Ne("File"),"new",[Ye.$path()].concat(ye(Ve))),st!==Ue?a.yield1(st,Ze):Ze},-2)}(X[0],X)},Opal.modules["asciidoctor/js/asciidoctor_ext/browser/path_resolver"]=function(a){var ue=a.module,se=a.klass,K=a.truthy,ye=a.def,y=[],X=a.nil;return a.add_stubs("absolute_path?,start_with?"),function(Ue,J){var qe=ue(Ue,"Asciidoctor"),R=[qe].concat(J);return function(et,Ne){var Ke=se(et,Ne,"PathResolver");return ye(Ke,"$root?",function(Pe){var ht=this,Ve=X;return K(Ve=ht["$absolute_path?"](Pe))?Ve:Pe["$start_with?"]("file://","http://","https://","chrome://")})}(R[0],null)}(y[0],y)},Opal.modules["asciidoctor/js/asciidoctor_ext/browser/reader"]=function(a){var ue=a.module,se=a.klass,K=a.truthy,ye=a.eqeq,y=a.not,X=a.def,Ue=[],J=a.nil;return a.add_stubs("posixify,new,base_dir,start_with?,uriish?,key?,attributes,descends_from?,replace_next_line,absolute_path?,==,empty?,!,slice,length"),function(qe,R){var et=ue(qe,"Asciidoctor"),Ne=[et].concat(R),Ke=a.$r(Ne);return function(Le,Pe,ht){var Ve=se(Le,Pe,"PreprocessorReader"),st=[Ve].concat(ht),Ye=a.$r(st),Ze=Ve.$$prototype;return Ze.path_resolver=Ze.document=Ze.include_stack=Ze.dir=J,X(Ve,"$resolve_include_path",function(I,tt,C){var rt,lt=this,Z=J,L=J,He=J,ke=J,Ie=J,Re=J,$e=J,we=J;if(Z=(lt.path_resolver=K(L=lt.path_resolver)?L:Ye("PathResolver").$new("\\")).$posixify(I),rt=["file",lt.document.$base_dir()],rt[0],He=rt[1],K(Z["$start_with?"]("file://")))ke=Ie=Z;else if(K(Ye("Helpers")["$uriish?"](Z))){if(!(K(lt.path_resolver["$descends_from?"](Z,He))||K(lt.document.$attributes()["$key?"]("allow-uri-read"))))return lt.$replace_next_line("link:"+I+"["+tt+"]");ke=Ie=Z}else if(K(lt.path_resolver["$absolute_path?"](Z)))ke=Ie="file://"+(K(Z["$start_with?"]("/"))?"":"/")+Z;else if(ye(Re=K($e=lt.include_stack["$empty?"]())?He:lt.dir,"."))ke=Ie=Z;else if(K(Re["$start_with?"]("file://"))||y(Ye("Helpers")["$uriish?"](Re)))ke=""+Re+"/"+Z,K($e)?Ie=Z:ye(He,".")||y(we=lt.path_resolver["$descends_from?"](ke,He))?Ie=ke:Ie=ke.$slice(we,ke.$length());else if(K($e))ke=""+Re+"/"+(Ie=Z);else if(K(we=lt.path_resolver["$descends_from?"](Re,He))||K(lt.document.$attributes()["$key?"]("allow-uri-read")))ke=""+Re+"/"+Z,Ie=K(we)?ke.$slice(we,ke.$length()):Z;else return lt.$replace_next_line("link:"+I+"["+tt+"]");return[ke,"file",Ie]})}(Ne[0],Ke("Reader"),Ne)}(Ue[0],Ue)},Opal.modules["asciidoctor/js/asciidoctor_ext/browser"]=function(a){var ue=a.eqeq,se=a.top,K=[],ye=a.$r(K),y=a.nil;return a.add_stubs("==,require"),ue(ye("JAVASCRIPT_IO_MODULE"),"xmlhttprequest")?(se.$require("asciidoctor/js/asciidoctor_ext/browser/abstract_node"),se.$require("asciidoctor/js/asciidoctor_ext/browser/open_uri"),se.$require("asciidoctor/js/asciidoctor_ext/browser/path_resolver"),se.$require("asciidoctor/js/asciidoctor_ext/browser/reader")):y},Opal.modules.set=Opal.return_val(Opal.nil),Opal.modules["asciidoctor/js/opal_ext/kernel"]=function(a){var ue=a.module,se=a.slice,K=a.send,ye=a.to_a,y=a.def,X=a.return_val,Ue=[],J=a.nil;return a.add_stubs("new"),function(qe,R){var et=ue(qe,"Kernel"),Ne=[et].concat(R),Ke=a.$r(Ne);return y(et,"$open",function Le(Pe,ht){var Ve,st,Ye=Le.$$p||J,Ze=J;return Le.$$p=null,Ve=se(arguments,1),st=Ve,Ze=K(Ke("File"),"new",[Pe].concat(ye(st))),Ye!==J?a.yield1(Ye,Ze):Ze},-2),y(et,"$__dir__",X(""))}(Ue[0],Ue)},Opal.modules["asciidoctor/js/opal_ext/file"]=function(a){var ue=a.klass,se=a.def,K=a.truthy,ye=a.gvars,y=a.return_val,X=a.defs,Ue=[],J=a.nil;return a.add_stubs("attr_reader,delete,gsub,read,size,to_enum,chomp,each_line,readlines,split"),function(qe,R,et){var Ne=ue(qe,R,"File"),Ke=[Ne].concat(et),Le=a.$r(Ke),Pe=Ne.$$prototype;return Pe.eof=Pe.path=J,Ne.$attr_reader("eof"),Ne.$attr_reader("lineno"),Ne.$attr_reader("path"),se(Ne,"$initialize",function(Ve,st){var Ye=this,Ze=J;return st==null&&(st="r"),Ye.path=Ve,Ye.contents=J,Ye.eof=!1,Ye.lineno=0,st=st.$delete("b"),Ze=/:(.*)/,st=st.$gsub(Ze,""),Ye.flags=st},-2),se(Ne,"$read",function(){var Ve=this,st=J;return K(Ve.eof)?"":(st=Le("File").$read(Ve.path),Ve.eof=!0,Ve.lineno=st.$size(),st)}),se(Ne,"$each_line",function ht(Ve){var st=ht.$$p||J,Ye=this,Ze=J;if(ye["/"]==null&&(ye["/"]=J),ht.$$p=null,Ve==null&&(Ve=ye["/"]),K(Ye.eof))return st!==J?Ye:[].$to_enum();if(st!==J){Ze=Le("File").$read(Ye.path),Ye.eof=!1,Ye.lineno=0;for(var dt=Ze.$chomp(),I=Ze.length!=dt.length,tt=dt.split(Ve),C=0,rt=tt.length;C<rt;C++)Ye.lineno+=1,C<rt-1||I?a.yield1(st,tt[C]+Ve):a.yield1(st,tt[C]);return Ye.eof=!0,Ye}else return Ye.$read().$each_line()},-1),se(Ne,"$readlines",function(){var Ve=this;return Le("File").$readlines(Ve.path)}),function(ht,Ve){var st=[ht].concat(Ve),Ye=a.$r(st);return se(ht,"$readlines",function(dt,I){var tt=J;return ye["/"]==null&&(ye["/"]=J),I==null&&(I=ye["/"]),tt=Ye("File").$read(dt),tt.$split(I)},-2),se(ht,"$file?",y(!0)),se(ht,"$readable?",y(!0)),se(ht,"$read",y(""))}(a.get_singleton_class(Ne),Ke)}(Ue[0],null,Ue),function(qe,R,et){var Ne=ue(qe,R,"IO"),Ke=[Ne].concat(et),Le=a.$r(Ke);return X(Ne,"$read",function(ht){return Le("File").$read(ht)})}(Ue[0],null,Ue)},Opal.modules["asciidoctor/js/opal_ext/match_data"]=function(a){var ue=a.klass,se=a.send,K=a.def,ye=[],y=a.nil;return a.add_stubs("[]="),function(X,Ue){var J=ue(X,Ue,"MatchData"),qe=J.$$prototype;return qe.matches=y,K(J,"$[]=",function(et,Ne){var Ke,Le=this;return Ke=[et,Ne],se(Le.matches,"[]=",Ke),Ke[Ke.length-1]})}(ye[0],null)},Opal.modules["asciidoctor/js/opal_ext/string"]=function(a){var ue=a.klass,se=a.truthy,K=a.rb_lt,ye=a.def,y=a.alias,X=a.rb_ge,Ue=a.eqeq,J=a.rb_minus,qe=[],R=a.nil;return a.add_stubs("method_defined?,<,length,bytes,to_s,byteslice,limit_bytesize,>=,==,-,_original_byteslice,unpack,_original_unpack"),function(et,Ne){var Ke=ue(et,Ne,"String");return se(Ke["$method_defined?"]("limit_bytesize"))||ye(Ke,"$limit_bytesize",function(Pe){var ht=this,Ve=R;return se(K(Pe,ht.$bytes().$length()))?(Ve=ht.$byteslice(0,Pe),Ve.$to_s()):ht.$to_s()}),se(Ke["$method_defined?"]("limit"))||y(Ke,"limit","limit_bytesize"),y(Ke,"_original_byteslice","byteslice"),ye(Ke,"$byteslice",function(Pe,ht){var Ve=this;return ht==null&&(ht=1),Ue(Pe,3)&&se(X(ht,Pe))&&se(Ve.charCodeAt()===65279)?Ve.substr(1).$byteslice(0,J(ht,3)):Ve.$_original_byteslice(Pe,ht)},-2),y(Ke,"_original_unpack","unpack"),ye(Ke,"$unpack",function(Pe){var ht=this;if(Ue(Pe,"C3")){if(se(ht.charCodeAt()===65279))return[239,187,191];for(var Ve=[],st=0;st<3;st++)st<ht.length?Ve.push(ht.charCodeAt(st)):Ve.push(R);return Ve}else return ht.$_original_unpack(Pe)})}(qe[0],null)},Opal.modules["asciidoctor/js/opal_ext/uri"]=function(a){var ue=a.module,se=a.defs,K=a.return_self,ye=a.def,y=[];return a.nil,a.add_stubs("extend"),function(X,Ue){var J=ue(X,"URI"),qe=[J].concat(Ue),R=a.$r(qe);return se(J,"$parse",function(Ne){return Ne.$extend(R("URI"))}),ye(J,"$path",K)}(y[0],y)},Opal.modules["asciidoctor/js/opal_ext/base64"]=function(a){var ue=a.module,se=a.defs,K=a.ensure_kwargs,ye=a.truthy,y=[],X=a.nil;return a.add_stubs("delete"),function(Ue){var J=ue(Ue,"Base64"),qe,R;return qe=a.global.btoa||function(et){var Ne;return et instanceof Buffer?Ne=et:Ne=Buffer.from(et.toString(),"binary"),Ne.toString("base64")},R=a.global.atob||function(et){return Buffer.from(et,"base64").toString("binary")},se(J,"$decode64",function(Ne){return R(Ne.replace(/\r?\n/g,""))}),se(J,"$encode64",function(Ne){return qe(Ne).replace(/(.{60})/g,`$1
|
|
454
|
-
`).replace(/([^\n])$/g,`$1
|
|
455
|
-
`)}),se(J,"$strict_decode64",function(Ne){return R(Ne)}),se(J,"$strict_encode64",function(Ne){return qe(Ne)}),se(J,"$urlsafe_decode64",function(Ne){return R(Ne.replace(/\-/g,"+").replace(/_/g,"/"))}),se(J,"$urlsafe_encode64",function(Ne,Ke){var Le,Pe=X;return Ke=K(Ke),Le=Ke.$$smap.padding,Le==null&&(Le=!0),Pe=qe(Ne).replace(/\+/g,"-").replace(/\//g,"_"),ye(Le)||(Pe=Pe.$delete("=")),Pe},-2)}(y[0])},Opal.modules["asciidoctor/js/opal_ext/number"]=function(a){var ue=a.klass,se=a.truthy,K=a.rb_gt,ye=a.def,y=[],X=a.$r(y);return a.nil,a.add_stubs("coerce_to!,>"),function(Ue,J,qe){var R=ue(Ue,J,"Number"),et=[R].concat(qe),Ne=a.$r(et);return ye(R,"$round",function(Le){var Pe=this;return Le=Ne("Opal")["$coerce_to!"](Le,Ne("Integer"),"to_int"),se(K(Le,0))?Number(Pe.toFixed(Le)):Math.round(Pe)},-1)}(y[0],X("Numeric"),y)},Opal.modules["asciidoctor/js/opal_ext"]=function(a){var ue=a.top;a.nil,a.add_stubs("require"),ue.$require("asciidoctor/js/opal_ext/kernel"),ue.$require("asciidoctor/js/opal_ext/file"),ue.$require("asciidoctor/js/opal_ext/match_data"),ue.$require("asciidoctor/js/opal_ext/string"),ue.$require("asciidoctor/js/opal_ext/uri"),ue.$require("asciidoctor/js/opal_ext/base64"),ue.$require("asciidoctor/js/opal_ext/number"),a.config.unsupported_features_severity="ignore",ue.$require("asciidoctor/js/opal_ext/browser")},Opal.modules["asciidoctor/js/rx"]=function(a){var ue=a.module,se=a.const_set,K=a.send,ye=a.gvars,y=a.truthy,X=a.defs,Ue=a.rb_plus,J=[],qe=a.nil;return a.add_stubs("gsub,+,unpack_hex_range"),function(R,et){var Ne=ue(R,"Asciidoctor"),Ke=[Ne].concat(et),Le=a.$r(Ke);return se(Ke[0],"HEX_RANGE_RX",/([A-F0-9]{4})(?:-([A-F0-9]{4}))?/),X(Ne,"$unpack_hex_range",function(ht){return K(ht,"gsub",[Le("HEX_RANGE_RX")],function(){var st,Ye=qe;return"\\u"+((st=ye["~"])===qe?qe:st["$[]"](1))+(y(Ye=(st=ye["~"])===qe?qe:st["$[]"](2))?"-\\u"+((st=ye["~"])===qe?qe:st["$[]"](2)):Ye)})}),se(Ke[0],"P_L",Ue("A-Za-z",Ne.$unpack_hex_range("00AA00B500BA00C0-00D600D8-00F600F8-02C102C6-02D102E0-02E402EC02EE0370-037403760377037A-037D037F03860388-038A038C038E-03A103A3-03F503F7-0481048A-052F0531-055605590561-058705D0-05EA05F0-05F20620-064A066E066F0671-06D306D506E506E606EE06EF06FA-06FC06FF07100712-072F074D-07A507B107CA-07EA07F407F507FA0800-0815081A082408280840-085808A0-08B20904-0939093D09500958-09610971-09800985-098C098F09900993-09A809AA-09B009B209B6-09B909BD09CE09DC09DD09DF-09E109F009F10A05-0A0A0A0F0A100A13-0A280A2A-0A300A320A330A350A360A380A390A59-0A5C0A5E0A72-0A740A85-0A8D0A8F-0A910A93-0AA80AAA-0AB00AB20AB30AB5-0AB90ABD0AD00AE00AE10B05-0B0C0B0F0B100B13-0B280B2A-0B300B320B330B35-0B390B3D0B5C0B5D0B5F-0B610B710B830B85-0B8A0B8E-0B900B92-0B950B990B9A0B9C0B9E0B9F0BA30BA40BA8-0BAA0BAE-0BB90BD00C05-0C0C0C0E-0C100C12-0C280C2A-0C390C3D0C580C590C600C610C85-0C8C0C8E-0C900C92-0CA80CAA-0CB30CB5-0CB90CBD0CDE0CE00CE10CF10CF20D05-0D0C0D0E-0D100D12-0D3A0D3D0D4E0D600D610D7A-0D7F0D85-0D960D9A-0DB10DB3-0DBB0DBD0DC0-0DC60E01-0E300E320E330E40-0E460E810E820E840E870E880E8A0E8D0E94-0E970E99-0E9F0EA1-0EA30EA50EA70EAA0EAB0EAD-0EB00EB20EB30EBD0EC0-0EC40EC60EDC-0EDF0F000F40-0F470F49-0F6C0F88-0F8C1000-102A103F1050-1055105A-105D106110651066106E-10701075-1081108E10A0-10C510C710CD10D0-10FA10FC-1248124A-124D1250-12561258125A-125D1260-1288128A-128D1290-12B012B2-12B512B8-12BE12C012C2-12C512C8-12D612D8-13101312-13151318-135A1380-138F13A0-13F41401-166C166F-167F1681-169A16A0-16EA16F1-16F81700-170C170E-17111720-17311740-17511760-176C176E-17701780-17B317D717DC1820-18771880-18A818AA18B0-18F51900-191E1950-196D1970-19741980-19AB19C1-19C71A00-1A161A20-1A541AA71B05-1B331B45-1B4B1B83-1BA01BAE1BAF1BBA-1BE51C00-1C231C4D-1C4F1C5A-1C7D1CE9-1CEC1CEE-1CF11CF51CF61D00-1DBF1E00-1F151F18-1F1D1F20-1F451F48-1F4D1F50-1F571F591F5B1F5D1F5F-1F7D1F80-1FB41FB6-1FBC1FBE1FC2-1FC41FC6-1FCC1FD0-1FD31FD6-1FDB1FE0-1FEC1FF2-1FF41FF6-1FFC2071207F2090-209C21022107210A-211321152119-211D212421262128212A-212D212F-2139213C-213F2145-2149214E218321842C00-2C2E2C30-2C5E2C60-2CE42CEB-2CEE2CF22CF32D00-2D252D272D2D2D30-2D672D6F2D80-2D962DA0-2DA62DA8-2DAE2DB0-2DB62DB8-2DBE2DC0-2DC62DC8-2DCE2DD0-2DD62DD8-2DDE2E2F300530063031-3035303B303C3041-3096309D-309F30A1-30FA30FC-30FF3105-312D3131-318E31A0-31BA31F0-31FF3400-4DB54E00-9FCCA000-A48CA4D0-A4FDA500-A60CA610-A61FA62AA62BA640-A66EA67F-A69DA6A0-A6E5A717-A71FA722-A788A78B-A78EA790-A7ADA7B0A7B1A7F7-A801A803-A805A807-A80AA80C-A822A840-A873A882-A8B3A8F2-A8F7A8FBA90A-A925A930-A946A960-A97CA984-A9B2A9CFA9E0-A9E4A9E6-A9EFA9FA-A9FEAA00-AA28AA40-AA42AA44-AA4BAA60-AA76AA7AAA7E-AAAFAAB1AAB5AAB6AAB9-AABDAAC0AAC2AADB-AADDAAE0-AAEAAAF2-AAF4AB01-AB06AB09-AB0EAB11-AB16AB20-AB26AB28-AB2EAB30-AB5AAB5C-AB5FAB64AB65ABC0-ABE2AC00-D7A3D7B0-D7C6D7CB-D7FBF900-FA6DFA70-FAD9FB00-FB06FB13-FB17FB1DFB1F-FB28FB2A-FB36FB38-FB3CFB3EFB40FB41FB43FB44FB46-FBB1FBD3-FD3DFD50-FD8FFD92-FDC7FDF0-FDFBFE70-FE74FE76-FEFCFF21-FF3AFF41-FF5AFF66-FFBEFFC2-FFC7FFCA-FFCFFFD2-FFD7FFDA-FFDC"))),se(Ke[0],"P_Nl",Ne.$unpack_hex_range("16EE-16F02160-21822185-218830073021-30293038-303AA6E6-A6EF")),se(Ke[0],"P_Nd",Ue("0-9",Ne.$unpack_hex_range("0660-066906F0-06F907C0-07C90966-096F09E6-09EF0A66-0A6F0AE6-0AEF0B66-0B6F0BE6-0BEF0C66-0C6F0CE6-0CEF0D66-0D6F0DE6-0DEF0E50-0E590ED0-0ED90F20-0F291040-10491090-109917E0-17E91810-18191946-194F19D0-19D91A80-1A891A90-1A991B50-1B591BB0-1BB91C40-1C491C50-1C59A620-A629A8D0-A8D9A900-A909A9D0-A9D9A9F0-A9F9AA50-AA59ABF0-ABF9FF10-FF19"))),se(Ke[0],"P_Pc",Ne.$unpack_hex_range("005F203F20402054FE33FE34FE4D-FE4FFF3F")),se(Ke[0],"CC_ALPHA",""+Le("P_L")+Le("P_Nl")),se(Ke[0],"CG_ALPHA","["+Le("CC_ALPHA")+"]"),se(Ke[0],"CC_ALNUM",""+Le("CC_ALPHA")+Le("P_Nd")),se(Ke[0],"CG_ALNUM","["+Le("CC_ALNUM")+"]"),se(Ke[0],"CC_WORD",""+Le("CC_ALNUM")+Le("P_Pc")),se(Ke[0],"CG_WORD","["+Le("CC_WORD")+"]"),se(Ke[0],"CG_BLANK","[ \\t]"),se(Ke[0],"CC_EOL","(?=\\n|$)"),se(Ke[0],"CG_GRAPH","[^\\s\\x00-\\x1F\\x7F]"),se(Ke[0],"CC_ALL","[\\s\\S]"),se(Ke[0],"CC_ANY","[^\\n]")}(J[0],J)},Opal.modules.strscan=function(a){var ue=a.klass,se=a.def,K=a.truthy,ye=a.eqeqeq,y=a.Opal,X=a.return_ivar,Ue=a.send,J=a.alias,qe=[],R=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(et,Ne,Ke){var Le=ue(et,Ne,"StringScanner"),Pe=[Le].concat(Ke),ht=a.$r(Pe),Ve=Le.$$prototype;return Ve.pos=Ve.string=Ve.working=Ve.matched=Ve.prev_pos=Ve.match=R,Le.$attr_reader("pos","matched"),se(Le,"$initialize",function(Ye){var Ze=this;return Ze.string=Ye,Ze.pos=0,Ze.matched=R,Ze.working=Ye,Ze.match=[]}),Le.$attr_reader("string"),se(Le,"$beginning_of_line?",function(){var Ye=this;return Ye.pos===0||Ye.string.charAt(Ye.pos-1)===`
|
|
456
|
-
`}),se(Le,"$scan",function(Ye){var Ze=this;Ye=Ze.$anchor(Ye);var dt=Ye.exec(Ze.working);return dt==null?Ze.matched=R:(Ze.prev_pos=Ze.pos,Ze.pos+=dt[0].length,Ze.working=Ze.working.substring(dt[0].length),Ze.matched=dt[0],Ze.match=dt,dt[0])}),se(Le,"$scan_until",function(Ye){var Ze=this;Ye=Ze.$anchor(Ye);for(var dt=Ze.working,I=0;dt.length!=I;++I){var tt=Ye.exec(dt.substr(I));if(tt!==null){var C=I+tt[0].length,rt=dt.substr(0,C);return Ze.matched=tt[0],Ze.match=tt,Ze.prev_pos=Ze.pos+I,Ze.pos+=C,Ze.working=dt.substr(C),rt}}return Ze.matched=R}),se(Le,"$[]",function(Ye){var Ze=this,dt=R;if(K(Ze.match["$empty?"]()))return R;ye(ht("Symbol"),dt=Ye)?Ye=Ye.$to_s():ye(ht("String"),dt)||(Ye=y["$coerce_to!"](Ye,ht("Integer"),"to_int"));var I=Ze.match;return Ye<0&&(Ye+=I.length),Ye<0||Ye>=I.length||I[Ye]==null?R:I[Ye]}),se(Le,"$check",function(Ye){var Ze=this;Ye=Ze.$anchor(Ye);var dt=Ye.exec(Ze.working);return dt==null?Ze.matched=R:Ze.matched=dt[0]}),se(Le,"$check_until",function(Ye){var Ze=this,dt=Ze.prev_pos,I=Ze.pos,tt=Ze.working,C=Ze.$scan_until(Ye);return Ze.prev_pos=dt,Ze.pos=I,Ze.working=tt,C}),se(Le,"$peek",function(Ye){var Ze=this;return Ze.working.substring(0,Ye)}),se(Le,"$eos?",function(){var Ye=this;return Ye.working.length===0}),se(Le,"$exist?",function(Ye){var Ze=this,dt=Ye.exec(Ze.working);return dt==null?R:dt.index==0?0:dt.index+1}),se(Le,"$skip",function(Ye){var Ze=this;Ye=Ze.$anchor(Ye);var dt=Ye.exec(Ze.working);if(dt==null)return Ze.match=[],Ze.matched=R;var I=dt[0],tt=I.length;return Ze.matched=I,Ze.match=dt,Ze.prev_pos=Ze.pos,Ze.pos+=tt,Ze.working=Ze.working.substring(tt),tt}),se(Le,"$skip_until",function(Ye){var Ze=this,dt=Ze.$scan_until(Ye);return dt===R?R:(Ze.matched=dt.substr(-1),dt.length)}),se(Le,"$get_byte",function(){var Ye=this,Ze=R;return Ye.pos<Ye.string.length?(Ye.prev_pos=Ye.pos,Ye.pos+=1,Ze=Ye.matched=Ye.working.substring(0,1),Ye.working=Ye.working.substring(1)):Ye.matched=R,Ze}),se(Le,"$match?",function(Ye){var Ze=this;Ye=Ze.$anchor(Ye);var dt=Ye.exec(Ze.working);return dt==null?R:(Ze.prev_pos=Ze.pos,dt[0].length)}),se(Le,"$pos=",function(Ye){var Ze=this;return Ye<0&&(Ye+=Ze.string.$length()),Ze.pos=Ye,Ze.working=Ze.string.slice(Ye)}),se(Le,"$matched_size",function(){var Ye=this;return Ye.matched===R?R:Ye.matched.length}),se(Le,"$post_match",function(){var Ye=this;return Ye.matched===R?R:Ye.string.substr(Ye.pos)}),se(Le,"$pre_match",function(){var Ye=this;return Ye.matched===R?R:Ye.string.substr(0,Ye.prev_pos)}),se(Le,"$reset",function(){var Ye=this;return Ye.working=Ye.string,Ye.matched=R,Ye.pos=0}),se(Le,"$rest",X("working")),se(Le,"$rest?",function(){var Ye=this;return Ye.working.length!==0}),se(Le,"$rest_size",function(){var Ye=this;return Ye.$rest().$size()}),se(Le,"$terminate",function(){var Ye,Ze=this;return Ze.match=R,Ye=[Ze.string.$length()],Ue(Ze,"pos=",Ye),Ye[Ye.length-1]}),se(Le,"$unscan",function(){var Ye=this;return Ye.pos=Ye.prev_pos,Ye.prev_pos=R,Ye.match=R,Ye}),J(Le,"bol?","beginning_of_line?"),J(Le,"getch","get_byte"),Le.$private(),se(Le,"$anchor",function(Ye){var Ze=Ye.toString().match(/\/([^\/]+)$/);return Ze=Ze?Ze[1]:void 0,new RegExp("^(?:"+Ye.source+")",Ze)})}(qe[0],null,qe)},Opal.modules["asciidoctor/js"]=function(a){var ue=a.top;return a.nil,a.add_stubs("require"),ue.$require("asciidoctor/js/opal_ext"),ue.$require("asciidoctor/js/rx"),ue.$require("strscan")},Opal.modules["asciidoctor/core_ext/nil_or_empty"]=function(a){var ue=a.klass,se=a.truthy,K=a.alias,ye=[],y=a.nil;return a.add_stubs("method_defined?,nil?,empty?"),function(X,Ue){var J=ue(X,Ue,"NilClass");return se(J["$method_defined?"]("nil_or_empty?"))?y:K(J,"nil_or_empty?","nil?")}(ye[0],null),function(X,Ue){var J=ue(X,Ue,"String");return se(J["$method_defined?"]("nil_or_empty?"))?y:K(J,"nil_or_empty?","empty?")}(ye[0],null),function(X,Ue){var J=ue(X,Ue,"Array");return se(J["$method_defined?"]("nil_or_empty?"))?y:K(J,"nil_or_empty?","empty?")}(ye[0],null),function(X,Ue){var J=ue(X,Ue,"Hash");return se(J["$method_defined?"]("nil_or_empty?"))?y:K(J,"nil_or_empty?","empty?")}(ye[0],null),function(X,Ue){var J=ue(X,Ue,"Numeric");return se(J["$method_defined?"]("nil_or_empty?"))?y:K(J,"nil_or_empty?","nil?")}(ye[0],null)},Opal.modules["asciidoctor/core_ext/hash/merge"]=function(a){var ue=a.eqeq,se=a.send,K=a.slice,ye=a.truthy,y=a.rb_lt,X=a.rb_gt,Ue=a.send2,J=a.find_super,qe=a.def,R=a.top,et=[],Ne=a.$r(et),Ke=a.nil;return a.add_stubs("==,arity,instance_method,send,new,<,length,dup,>,inject,merge,[]"),ue(Ne("Hash").$instance_method("merge").$arity(),1)?Ne("Hash").$send("prepend",se(Ne("Module"),"new",[],function Le(){var Pe=Le.$$s==null?this:Le.$$s;return qe(Pe,"$merge",function ht(Ve){var st,Ye;ht.$$p;var Ze=this,dt=Ke;return ht.$$p=null,st=K(arguments),Ye=st,ye(y(dt=Ye.$length(),1))?Ze.$dup():ye(X(dt,1))?se(Ye,"inject",[Ze],function(tt,C){return tt==null&&(tt=Ke),C==null&&(C=Ke),tt.$merge(C)}):Ue(Ze,J(Ze,"merge",ht,!1,!0),"merge",[Ye["$[]"](0)],null)},-1)},{$$s:R})):Ke},Opal.modules["asciidoctor/core_ext/match_data/names"]=function(a){var ue=a.truthy,se=a.klass,K=a.def,ye=[],y=a.$r(ye),X=a.nil;return a.add_stubs("method_defined?"),ue(y("MatchData")["$method_defined?"]("names"))?X:function(Ue,J){var qe=se(Ue,J,"MatchData");return K(qe,"$names",function(){return[]})}(ye[0],null)},Opal.modules["asciidoctor/core_ext"]=function(a){var ue=a.top;return a.nil,ue.$require("asciidoctor/core_ext.rb/../core_ext/nil_or_empty"),ue.$require("asciidoctor/core_ext.rb/../core_ext/hash/merge"),ue.$require("asciidoctor/core_ext.rb/../core_ext/match_data/names")},Opal.modules["asciidoctor/helpers"]=function(a){var ue=a.module,se=a.truthy,K=a.eqeq,ye=a.gvars,y=a.def,X=a.send,Ue=a.neqeq,J=a.const_set,qe=a.hash2,R=a.to_ary,et=a.rb_times,Ne=a.eqeqeq,Ke=a.rb_plus,Le=a.Class,Pe=a.Object,ht=[],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(Ye,Ze){var dt=ue(Ye,"Asciidoctor"),I=[dt].concat(Ze);return function(tt,C){var rt=ue(tt,"Helpers"),lt=[rt].concat(C),Z=a.$r(lt);return rt.$module_function(),y(rt,"$require_library",function(He,ke,Ie){var Re=this,$e=Ve;ye["!"]==null&&(ye["!"]=Ve),ke==null&&(ke=!0),Ie==null&&(Ie="abort");try{return Re.$require(He)}catch(we){if(a.rescue(we,[st("LoadError")]))try{if(se(Re["$include?"](Z("Logging")))||Re.$include(Z("Logging")),se(ke))switch(K(ke,!0)&&(ke=He),Ie){case"abort":$e=K(ye["!"].$path(),ke)?"":" (reason: "+(se(ye["!"].$path())?"cannot load '"+ye["!"].$path()+"'":ye["!"].$message())+")",Re.$raise(st("LoadError"),"asciidoctor: FAILED: required gem '"+ke+"' is not available"+$e+". Processing aborted.");break;case"warn":$e=K(ye["!"].$path(),ke)?"":" (reason: "+(se(ye["!"].$path())?"cannot load '"+ye["!"].$path()+"'":ye["!"].$message())+")",Re.$logger().$warn("optional gem '"+ke+"' is not available"+$e+". Functionality disabled.");break;default:}else switch(Ie){case"abort":Re.$raise(st("LoadError"),"asciidoctor: FAILED: "+ye["!"].$message().$chomp(".")+". Processing aborted.");break;case"warn":Re.$logger().$warn(""+ye["!"].$message().$chomp(".")+". Functionality disabled.");break;default:}return Ve}finally{a.pop_exception()}else throw we}},-2),y(rt,"$prepare_source_array",function(He,ke){var Ie=Ve,Re=Ve,$e=Ve;return ke==null&&(ke=!0),se(He["$empty?"]())?[]:K(Ie=(Re=($e=He["$[]"](0)).$unpack("C3")).$slice(0,2),Z("BOM_BYTES_UTF_16LE"))?(He["$[]="](0,$e.$byteslice(2,$e.$bytesize())),se(ke)?X(He,"map",[],function(ee){return ee==null&&(ee=Ve),ee.$encode(Z("UTF_8"),st(st("Encoding"),"UTF_16LE")).$rstrip()}):X(He,"map",[],function(ee){return ee==null&&(ee=Ve),ee.$encode(Z("UTF_8"),st(st("Encoding"),"UTF_16LE")).$chomp()})):K(Ie,Z("BOM_BYTES_UTF_16BE"))?(He["$[]="](0,$e.$byteslice(2,$e.$bytesize())),se(ke)?X(He,"map",[],function(ee){return ee==null&&(ee=Ve),ee.$encode(Z("UTF_8"),st(st("Encoding"),"UTF_16BE")).$rstrip()}):X(He,"map",[],function(ee){return ee==null&&(ee=Ve),ee.$encode(Z("UTF_8"),st(st("Encoding"),"UTF_16BE")).$chomp()})):(K(Re,Z("BOM_BYTES_UTF_8"))&&He["$[]="](0,$e.$byteslice(3,$e.$bytesize())),K($e.$encoding(),Z("UTF_8"))?se(ke)?X(He,"map",[],function(ee){return ee==null&&(ee=Ve),ee.$rstrip()}):X(He,"map",[],function(ee){return ee==null&&(ee=Ve),ee.$chomp()}):se(ke)?X(He,"map",[],function(ee){return ee==null&&(ee=Ve),ee.$encode(Z("UTF_8")).$rstrip()}):X(He,"map",[],function(ee){return ee==null&&(ee=Ve),ee.$encode(Z("UTF_8")).$chomp()}))},-2),y(rt,"$prepare_source_string",function(He,ke){var Ie=Ve,Re=Ve;return ke==null&&(ke=!0),se(He["$nil_or_empty?"]())?[]:(K(Ie=(Re=He.$unpack("C3")).$slice(0,2),Z("BOM_BYTES_UTF_16LE"))?He=He.$byteslice(2,He.$bytesize()).$encode(Z("UTF_8"),st(st("Encoding"),"UTF_16LE")):K(Ie,Z("BOM_BYTES_UTF_16BE"))?He=He.$byteslice(2,He.$bytesize()).$encode(Z("UTF_8"),st(st("Encoding"),"UTF_16BE")):K(Re,Z("BOM_BYTES_UTF_8"))?(He=He.$byteslice(3,He.$bytesize()),K(He.$encoding(),Z("UTF_8"))||(He=He.$encode(Z("UTF_8")))):Ue(He.$encoding(),Z("UTF_8"))&&(He=He.$encode(Z("UTF_8"))),se(ke)?X([],"tap",[],function(we){return we==null&&(we=Ve),X(He,"each_line",[],function(P){return P==null&&(P=Ve),we["$<<"](P.$rstrip())})}):X([],"tap",[],function(we){return we==null&&(we=Ve),X(He,"each_line",[],function(P){return P==null&&(P=Ve),we["$<<"](P.$chomp())})}))},-2),K(st("RUBY_ENGINE"),"jruby")?y(rt,"$uriish?",function(He){var ke=Ve,Ie=Ve;return se(ke=se(Ie=He["$include?"](":"))?He["$start_with?"]("uri:classloader:")["$!"]():Ie)?Z("UriSniffRx")["$match?"](He):ke}):y(rt,"$uriish?",function(He){var ke=Ve;return se(ke=He["$include?"](":"))?Z("UriSniffRx")["$match?"](He):ke}),y(rt,"$encode_uri_component",function(He){return encodeURIComponent(He).replace(/%20|[!'()*]/g,function(ke){return ke==="%20"?"+":"%"+ke.charCodeAt(0).toString(16)})}),y(rt,"$encode_spaces_in_uri",function(He){return se(He["$include?"](" "))?He.$gsub(" ","%20"):He}),y(rt,"$rootname",function(He){var ke=Ve;return se(ke=He.$rindex("."))?se(He.$index("/",ke))?He:He.$slice(0,ke):He}),y(rt,"$basename",function(He,ke){var Ie=this;return ke==null&&(ke=Ve),se(ke)?st("File").$basename(He,K(ke,!0)?Ie.$extname(He):ke):st("File").$basename(He)},-2),y(rt,"$extname?",function(He){var ke=Ve,Ie=Ve;return se(ke=Ie=He.$rindex("."))?He.$index("/",Ie)["$!"]():ke}),se(st(st("File"),"ALT_SEPARATOR"))?y(rt,"$extname",function(He,ke){var Ie=Ve;return ke==null&&(ke=""),se(Ie=He.$rindex("."))?se(He.$index("/",Ie))||se(He.$index(st(st("File"),"ALT_SEPARATOR"),Ie))?ke:He.$slice(Ie,He.$length()):ke},-2):y(rt,"$extname",function(He,ke){var Ie=Ve;return ke==null&&(ke=""),se(Ie=He.$rindex("."))?se(He.$index("/",Ie))?ke:He.$slice(Ie,He.$length()):ke},-2),y(rt,"$mkdir_p",function(He){var ke=this,Ie=Ve;if(se(st("File")["$directory?"](He)))return Ve;K(Ie=st("File").$dirname(He),".")||ke.$mkdir_p(Ie);try{return st("Dir").$mkdir(He)}catch(Re){if(a.rescue(Re,[st("SystemCallError")]))try{return se(st("File")["$directory?"](He))?Ve:ke.$raise()}finally{a.pop_exception()}else throw Re}}),J(lt[0],"ROMAN_NUMERALS",qe(["M","CM","D","CD","C","XC","L","XL","X","IX","V","IV","I"],{M:1e3,CM:900,D:500,CD:400,C:100,XC:90,L:50,XL:40,X:10,IX:9,V:5,IV:4,I:1})),rt.$private_constant("ROMAN_NUMERALS"),y(rt,"$int_to_roman",function(He){return X(Z("ROMAN_NUMERALS"),"map",[],function(Ie,Re){var $e,we,ee=Ve;return Ie==null&&(Ie=Ve),Re==null&&(Re=Ve),we=He.$divmod(Re),$e=R(we),ee=$e[0]==null?Ve:$e[0],He=$e[1]==null?Ve:$e[1],et(Ie,ee)}).$join()}),y(rt,"$nextval",function(He){var ke=Ve;return Ne(st("Integer"),He)?Ke(He,1):K((ke=He.$to_i()).$to_s(),He.$to_s())?Ke(ke,1):He.$succ()}),y(rt,"$resolve_class",function(He){var ke=this;return Ne(Le,He)?He:Ne(st("String"),He)?ke.$class_for_name(He):Ve}),y(rt,"$class_for_name",function(He){var ke=this,Ie=Ve;try{return Ne(Le,Ie=Pe.$const_get(He,!1))||ke.$raise(),Ie}catch(Re){if(a.rescue(Re,[Z("StandardError")]))try{return ke.$raise(st("NameError"),"Could not resolve class for name: "+He)}finally{a.pop_exception()}else throw Re}})}(I[0],I)}(ht[0],ht)},Opal.modules.logger=function(a){var ue=a.klass,se=a.module,K=a.const_set,ye=a.send,y=a.def,X=a.eqeqeq,Ue=a.rb_plus,J=a.truthy,qe=a.rb_le,R=a.rb_lt,et=[],Ne=a.nil,Ke=a.$$$;return a.add_stubs("include,to_h,map,constants,const_get,to_s,format,chr,strftime,message_as_string,===,+,message,class,join,backtrace,inspect,attr_reader,attr_accessor,new,key,upcase,raise,add,to_proc,<=,<,write,call,[],now"),function(Le,Pe,ht){var Ve=ue(Le,Pe,"Logger"),st=[Ve].concat(ht),Ye=a.$r(st),Ze=Ve.$$prototype;return Ze.level=Ze.progname=Ze.pipe=Ze.formatter=Ne,function(dt,I){var tt=se(dt,"Severity"),C=[tt].concat(I);return K(C[0],"DEBUG",0),K(C[0],"INFO",1),K(C[0],"WARN",2),K(C[0],"ERROR",3),K(C[0],"FATAL",4),K(C[0],"UNKNOWN",5)}(st[0],st),Ve.$include(Ye("Severity")),K(st[0],"SEVERITY_LABELS",ye(Ye("Severity").$constants(),"map",[],function(I){return I==null&&(I=Ne),[Ye("Severity").$const_get(I),I.$to_s()]}).$to_h()),function(dt,I,tt){var C=ue(dt,I,"Formatter"),rt=[C].concat(tt),lt=a.$r(rt);return K(rt[0],"MESSAGE_FORMAT",`%s, [%s] %5s -- %s: %s
|
|
457
|
-
`),K(rt[0],"DATE_TIME_FORMAT","%Y-%m-%dT%H:%M:%S.%6N"),y(C,"$call",function(L,He,ke,Ie){var Re=this;return Re.$format(lt("MESSAGE_FORMAT"),L.$chr(),He.$strftime(lt("DATE_TIME_FORMAT")),L,ke,Re.$message_as_string(Ie))}),y(C,"$message_as_string",function(L){var He=Ne,ke=Ne;return X(Ke("String"),He=L)?L:X(Ke("Exception"),He)?Ue(""+L.$message()+" ("+L.$class()+`)
|
|
458
|
-
`,(J(ke=L.$backtrace())?ke:[]).$join(`
|
|
459
|
-
`)):L.$inspect()})}(st[0],null,st),Ve.$attr_reader("level"),Ve.$attr_accessor("progname"),Ve.$attr_accessor("formatter"),y(Ve,"$initialize",function(I){var tt=this;return tt.pipe=I,tt.level=Ye("DEBUG"),tt.formatter=Ye("Formatter").$new()}),y(Ve,"$level=",function(I){var tt=this,C=Ne;return X(Ke("Integer"),I)?tt.level=I:J(C=Ye("SEVERITY_LABELS").$key(I.$to_s().$upcase()))?tt.level=C:tt.$raise(Ye("ArgumentError"),"invalid log level: "+I)}),y(Ve,"$info",function dt(I){var tt=dt.$$p||Ne,C=this;return dt.$$p=null,I==null&&(I=Ne),ye(C,"add",[Ye("INFO"),Ne,I],tt.$to_proc())},-1),y(Ve,"$debug",function dt(I){var tt=dt.$$p||Ne,C=this;return dt.$$p=null,I==null&&(I=Ne),ye(C,"add",[Ye("DEBUG"),Ne,I],tt.$to_proc())},-1),y(Ve,"$warn",function dt(I){var tt=dt.$$p||Ne,C=this;return dt.$$p=null,I==null&&(I=Ne),ye(C,"add",[Ye("WARN"),Ne,I],tt.$to_proc())},-1),y(Ve,"$error",function dt(I){var tt=dt.$$p||Ne,C=this;return dt.$$p=null,I==null&&(I=Ne),ye(C,"add",[Ye("ERROR"),Ne,I],tt.$to_proc())},-1),y(Ve,"$fatal",function dt(I){var tt=dt.$$p||Ne,C=this;return dt.$$p=null,I==null&&(I=Ne),ye(C,"add",[Ye("FATAL"),Ne,I],tt.$to_proc())},-1),y(Ve,"$unknown",function dt(I){var tt=dt.$$p||Ne,C=this;return dt.$$p=null,I==null&&(I=Ne),ye(C,"add",[Ye("UNKNOWN"),Ne,I],tt.$to_proc())},-1),y(Ve,"$info?",function(){var I=this;return qe(I.level,Ye("INFO"))}),y(Ve,"$debug?",function(){var I=this;return qe(I.level,Ye("DEBUG"))}),y(Ve,"$warn?",function(){var I=this;return qe(I.level,Ye("WARN"))}),y(Ve,"$error?",function(){var I=this;return qe(I.level,Ye("ERROR"))}),y(Ve,"$fatal?",function(){var I=this;return qe(I.level,Ye("FATAL"))}),y(Ve,"$add",function dt(I,tt,C){var rt=dt.$$p||Ne,lt=this,Z=Ne;return dt.$$p=null,tt==null&&(tt=Ne),C==null&&(C=Ne),J(R(I=J(Z=I)?Z:Ye("UNKNOWN"),lt.level))||(C=J(Z=C)?Z:lt.progname,J(tt)||(rt!==Ne?tt=a.yieldX(rt,[]):(tt=C,C=lt.progname)),lt.pipe.$write(lt.formatter.$call(J(Z=Ye("SEVERITY_LABELS")["$[]"](I))?Z:"ANY",Ke("Time").$now(),C,tt))),!0},-2)}(et[0],null,et)},Opal.modules["asciidoctor/logging"]=function(a){var ue=a.module,se=a.klass,K=a.slice,ye=a.send2,y=a.find_super,X=a.to_a,Ue=a.send,J=a.def,qe=a.truthy,R=a.rb_gt,et=a.const_set,Ne=a.hash2,Ke=a.eqeqeq,Le=a.gvars,Pe=a.alias,ht=a.defs,Ve=a.top,st=[],Ye=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(dt,I){var tt=ue(dt,"Asciidoctor"),C=[tt].concat(I);return function(rt,lt,Z){var L=se(rt,lt,"Logger"),He=[L].concat(Z),ke=a.$r(He),Ie=L.$$prototype;return Ie.max_severity=Ye,L.$attr_reader("max_severity"),J(L,"$initialize",function Re($e){var we,ee,P,D=Re.$$p||Ye,ae=this;return Re.$$p=null,we=K(arguments),ee=we,ye(ae,y(ae,"initialize",Re,!1,!0),"initialize",X(ee),D),ae["$progname="]("asciidoctor"),ae["$formatter="](ke("BasicFormatter").$new()),P=[ke("WARN")],Ue(ae,"level=",P),P[P.length-1]},-1),J(L,"$add",function Re($e,we,ee){var P=Re.$$p||Ye,D=this,ae=Ye;return Re.$$p=null,we==null&&(we=Ye),ee==null&&(ee=Ye),qe(R($e=qe(ae=$e)?ae:ke("UNKNOWN"),D.max_severity=qe(ae=D.max_severity)?ae:$e))&&(D.max_severity=$e),ye(D,y(D,"add",Re,!1,!0),"add",[$e,we,ee],P)},-2),function(Re,$e,we){var ee=se(Re,$e,"BasicFormatter"),P=[ee].concat(we),D=a.$r(P);return et(P[0],"SEVERITY_LABEL_SUBSTITUTES",Ne(["WARN","FATAL"],{WARN:"WARNING",FATAL:"FAILED"})),J(ee,"$call",function(ie,me,G,g){var u=Ye;return""+G+": "+(qe(u=D("SEVERITY_LABEL_SUBSTITUTES")["$[]"](ie))?u:ie)+": "+(Ke(Ze("String"),g)?g:g.$inspect())+D("LF")})}(He[0],ke("Formatter"),He),function(Re){var $e=ue(Re,"AutoFormattingMessage");return J($e,"$inspect",function(){var ee=this,P=Ye;return qe(P=ee["$[]"]("source_location"))?""+P+": "+ee["$[]"]("text"):ee["$[]"]("text")})}(He[0])}(C[0],Ze("Logger"),C),function(rt,lt,Z){var L=se(rt,lt,"MemoryLogger"),He=[L].concat(Z),ke=a.$r(He),Ie=L.$$prototype;return Ie.messages=Ye,et(He[0],"SEVERITY_SYMBOL_BY_VALUE",Ue(ke("Severity").$constants(!1),"map",[],function($e){return $e==null&&($e=Ye),[ke("Severity").$const_get($e),$e]}).$to_h()),L.$attr_reader("messages"),J(L,"$initialize",function(){var $e=this;return $e["$level="](ke("WARN")),$e.messages=[]}),J(L,"$add",function Re($e,we,ee){var P=Re.$$p||Ye,D=this,ae=Ye;return Re.$$p=null,we==null&&(we=Ye),ee==null&&(ee=Ye),we=qe(ae=we)?ae:P!==Ye?a.yieldX(P,[]):ee,D.messages["$<<"](Ne(["severity","message"],{severity:ke("SEVERITY_SYMBOL_BY_VALUE")["$[]"](qe(ae=$e)?ae:ke("UNKNOWN")),message:we})),!0},-2),J(L,"$clear",function(){var $e=this;return $e.messages.$clear()}),J(L,"$empty?",function(){var $e=this;return $e.messages["$empty?"]()}),J(L,"$max_severity",function(){var $e=this;return qe($e["$empty?"]())?Ye:Ue($e.messages,"map",[],function(ee){return ee==null&&(ee=Ye),ke("Severity").$const_get(ee["$[]"]("severity"))}).$max()})}(C[0],Ze("Logger"),C),function(rt,lt,Z){var L=se(rt,lt,"NullLogger"),He=[L].concat(Z),ke=a.$r(He),Ie=L.$$prototype;return Ie.max_severity=Ye,L.$attr_reader("max_severity"),J(L,"$initialize",function(){var $e,we=this;return $e=[ke("WARN")],Ue(we,"level=",$e),$e[$e.length-1]}),J(L,"$add",function($e,we,ee){var P=this,D=Ye;return qe(R($e=qe(D=$e)?D:ke("UNKNOWN"),P.max_severity=qe(D=P.max_severity)?D:$e))&&(P.max_severity=$e),!0},-2)}(C[0],Ze("Logger"),C),function(rt,lt){var Z=ue(rt,"LoggerManager"),L=[Z].concat(lt),He=a.$r(L);return Z.logger_class=He("Logger"),function(ke,Ie){return ke.$attr_accessor("logger_class"),J(ke,"$logger",function($e){var we=this,ee=Ye;return we.logger==null&&(we.logger=Ye),we.logger_class==null&&(we.logger_class=Ye),Le.stderr==null&&(Le.stderr=Ye),$e==null&&($e=Le.stderr),we.$memoize_logger(),we.logger=qe(ee=we.logger)?ee:we.logger_class.$new($e)},-1),J(ke,"$logger=",function($e){var we=this,ee=Ye;return we.logger_class==null&&(we.logger_class=Ye),Le.stderr==null&&(Le.stderr=Ye),we.logger=qe(ee=$e)?ee:we.logger_class.$new(Le.stderr)}),ke.$private(),J(ke,"$memoize_logger",function(){var $e=this;return function(we,ee){return Pe(we,"logger","logger"),we.$attr_reader("logger")}(a.get_singleton_class($e))})}(a.get_singleton_class(Z))}(C[0],C),function(rt,lt){var Z=ue(rt,"Logging"),L=[Z].concat(lt),He=a.$r(L);return ht(Z,"$included",function(Ie){return Ie.$extend(He("Logging"))}),Z.$private_class_method("included"),J(Z,"$logger",function(){return He("LoggerManager").$logger()}),J(Z,"$message_with_context",function(Ie,Re){return Re==null&&(Re=Ne([],{})),Ne(["text"],{text:Ie}).$merge(Re).$extend(Ze(He("Logger"),"AutoFormattingMessage"))},-2)}(C[0],C)}(st[0],st)},Opal.modules["asciidoctor/rx"]=function(a){var ue=a.module,se=a.const_set,K=a.regexp,ye=a.hash2,y=a.send,X=a.truthy,Ue=a.hash,J=[],qe=a.nil,R=a.$$$;return a.add_stubs("join,to_a,new,[]=,empty?,escape"),function(et,Ne){var Ke=ue(et,"Asciidoctor"),Le=[Ke].concat(Ne),Pe=a.$r(Le);return ue(Le[0],"Rx"),se(Le[0],"AuthorInfoLineRx",K(["^(",Pe("CG_WORD"),"[",Pe("CC_WORD"),"\\-'.]*)(?: +(",Pe("CG_WORD"),"[",Pe("CC_WORD"),"\\-'.]*))?(?: +(",Pe("CG_WORD"),"[",Pe("CC_WORD"),"\\-'.]*))?(?: +<([^>]+)>)?$"])),se(Le[0],"AuthorDelimiterRx",/;(?: |$)/),se(Le[0],"RevisionInfoLineRx",K(["^(?:[^\\d{]*(",Pe("CC_ANY"),"*?),)? *(?!:)(",Pe("CC_ANY"),"*?)(?: *(?!^),?: *(",Pe("CC_ANY"),"*))?$"])),se(Le[0],"ManpageTitleVolnumRx",K(["^(",Pe("CC_ANY"),"+?) *\\( *(",Pe("CC_ANY"),"+?) *\\)$"])),se(Le[0],"ManpageNamePurposeRx",K(["^(",Pe("CC_ANY"),"+?) +- +(",Pe("CC_ANY"),"+)$"])),se(Le[0],"ConditionalDirectiveRx",K(["^(\\\\)?(ifdef|ifndef|ifeval|endif)::(\\S*?(?:([,+])\\S*?)?)\\[(",Pe("CC_ANY"),"+)?\\]$"])),se(Le[0],"EvalExpressionRx",K(["^(",Pe("CC_ANY"),"+?) *([=!><]=|[><]) *(",Pe("CC_ANY"),"+)$"])),se(Le[0],"IncludeDirectiveRx",K(["^(\\\\)?include::([^\\s\\[](?:[^\\[]*[^\\s\\[])?)\\[(",Pe("CC_ANY"),"+)?\\]$"])),se(Le[0],"TagDirectiveRx",/\b(?:tag|(e)nd)::(\S+?)\[\](?=$|[ \r])/m),se(Le[0],"AttributeEntryRx",K(["^:(!?",Pe("CG_WORD"),"[^:]*):(?:[ \\t]+(",Pe("CC_ANY"),"*))?$"])),se(Le[0],"InvalidAttributeNameCharsRx",K(["[^",Pe("CC_WORD"),"-]"])),se(Le[0],"AttributeEntryPassMacroRx",K(["^pass:([a-z]+(?:,[a-z-]+)*)?\\[(",Pe("CC_ALL"),"*)\\]$"])),se(Le[0],"AttributeReferenceRx",K(["(\\\\)?\\{(",Pe("CG_WORD"),"[",Pe("CC_WORD"),"-]*|(set|counter2?):",Pe("CC_ANY"),"+?)(\\\\)?\\}"])),se(Le[0],"BlockAnchorRx",K(["^\\[\\[(?:|([",Pe("CC_ALPHA"),"_:][",Pe("CC_WORD"),"\\-:.]*)(?:, *(",Pe("CC_ANY"),"+))?)\\]\\]$"])),se(Le[0],"BlockAttributeListRx",K(["^\\[(|[",Pe("CC_WORD"),`.#%{,"']`,Pe("CC_ANY"),"*)\\]$"])),se(Le[0],"BlockAttributeLineRx",K(["^\\[(?:|[",Pe("CC_WORD"),`.#%{,"']`,Pe("CC_ANY"),"*|\\[(?:|[",Pe("CC_ALPHA"),"_:][",Pe("CC_WORD"),"\\-:.]*(?:, *",Pe("CC_ANY"),"+)?)\\])\\]$"])),se(Le[0],"BlockTitleRx",K(["^\\.(\\.?[^ \\t.]",Pe("CC_ANY"),"*)$"])),se(Le[0],"AdmonitionParagraphRx",K(["^(",Pe("ADMONITION_STYLES").$to_a().$join("|"),"):[ \\t]+"])),se(Le[0],"LiteralParagraphRx",K(["^([ \\t]+",Pe("CC_ANY"),"*)$"])),se(Le[0],"AtxSectionTitleRx",K(["^(=={0,5})[ \\t]+(",Pe("CC_ANY"),"+?)(?:[ \\t]+\\1)?$"])),se(Le[0],"ExtAtxSectionTitleRx",K(["^(=={0,5}|#\\#{0,5})[ \\t]+(",Pe("CC_ANY"),"+?)(?:[ \\t]+\\1)?$"])),se(Le[0],"SetextSectionTitleRx",K(["^((?!\\.)",Pe("CC_ANY"),"*?",Pe("CG_ALNUM"),Pe("CC_ANY"),"*)$"])),se(Le[0],"InlineSectionAnchorRx",K([" (\\\\)?\\[\\[([",Pe("CC_ALPHA"),"_:][",Pe("CC_WORD"),"\\-:.]*)(?:, *(",Pe("CC_ANY"),"+))?\\]\\]$"])),se(Le[0],"InvalidSectionIdCharsRx",K(["<[^>]+>|&(?:[a-z][a-z]+\\d{0,2}|#\\d\\d\\d{0,4}|#x[\\da-f][\\da-f][\\da-f]{0,3});|[^ ",Pe("CC_WORD"),"\\-.]+?"])),se(Le[0],"SectionLevelStyleRx",/^sect\d$/),se(Le[0],"AnyListRx",K(["^(?:[ \\t]*(?:-|\\*\\**|\\.\\.*|\\u2022|\\d+\\.|[a-zA-Z]\\.|[IVXivx]+\\))[ \\t]|(?!//[^/])[ \\t]*[^ \\t]",Pe("CC_ANY"),"*?(?::::{0,2}|;;)(?:$|[ \\t])|<(?:\\d+|\\.)>[ \\t])"])),se(Le[0],"UnorderedListRx",K(["^[ \\t]*(-|\\*\\**|\\u2022)[ \\t]+(",Pe("CC_ANY"),"*)$"])),se(Le[0],"OrderedListRx",K(["^[ \\t]*(\\.\\.*|\\d+\\.|[a-zA-Z]\\.|[IVXivx]+\\))[ \\t]+(",Pe("CC_ANY"),"*)$"])),se(Le[0],"OrderedListMarkerRxMap",ye(["arabic","loweralpha","lowerroman","upperalpha","upperroman"],{arabic:/\d+\./,loweralpha:/[a-z]\./,lowerroman:/[ivx]+\)/,upperalpha:/[A-Z]\./,upperroman:/[IVX]+\)/})),se(Le[0],"DescriptionListRx",K(["^(?!//[^/])[ \\t]*([^ \\t]",Pe("CC_ANY"),"*?)(:::{0,2}|;;)(?:$|[ \\t]+(",Pe("CC_ANY"),"*)$)"])),se(Le[0],"DescriptionListSiblingRx",ye(["::",":::","::::",";;"],{"::":K(["^(?!//[^/])[ \\t]*([^ \\t]",Pe("CC_ANY"),"*?[^:]|[^ \\t:])(::)(?:$|[ \\t]+(",Pe("CC_ANY"),"*)$)"]),":::":K(["^(?!//[^/])[ \\t]*([^ \\t]",Pe("CC_ANY"),"*?[^:]|[^ \\t:])(:::)(?:$|[ \\t]+(",Pe("CC_ANY"),"*)$)"]),"::::":K(["^(?!//[^/])[ \\t]*([^ \\t]",Pe("CC_ANY"),"*?[^:]|[^ \\t:])(::::)(?:$|[ \\t]+(",Pe("CC_ANY"),"*)$)"]),";;":K(["^(?!//[^/])[ \\t]*([^ \\t]",Pe("CC_ANY"),"*?)(;;)(?:$|[ \\t]+(",Pe("CC_ANY"),"*)$)"])})),se(Le[0],"CalloutListRx",K(["^<(\\d+|\\.)>[ \\t]+(",Pe("CC_ANY"),"*)$"])),se(Le[0],"CalloutExtractRx",/((?:\/\/|#|--|;;) ?)?(\\)?<!?(|--)(\d+|\.)\3>(?=(?: ?\\?<!?\3(?:\d+|\.)\3>)*$)/),se(Le[0],"CalloutExtractRxt","(\\\\)?<()(\\d+|\\.)>(?=(?: ?\\\\?<(?:\\d+|\\.)>)*$)"),se(Le[0],"CalloutExtractRxMap",y(R("Hash"),"new",[],function(Ve,st){var Ye;return Ve==null&&(Ve=qe),st==null&&(st=qe),Ye=[st,K(["(",X(st["$empty?"]())?"":""+R("Regexp").$escape(st)+" ?",")?",Pe("CalloutExtractRxt")])],y(Ve,"[]=",Ye),Ye[Ye.length-1]})),se(Le[0],"CalloutScanRx",K(["\\\\?<!?(|--)(\\d+|\\.)\\1>(?=(?: ?\\\\?<!?\\1(?:\\d+|\\.)\\1>)*",Pe("CC_EOL"),")"])),se(Le[0],"CalloutSourceRx",K(["((?://|#|--|;;) ?)?(\\\\)?<!?(|--)(\\d+|\\.)\\3>(?=(?: ?\\\\?<!?\\3(?:\\d+|\\.)\\3>)*",Pe("CC_EOL"),")"])),se(Le[0],"CalloutSourceRxt","(\\\\)?<()(\\d+|\\.)>(?=(?: ?\\\\?<(?:\\d+|\\.)>)*"+Pe("CC_EOL")+")"),se(Le[0],"CalloutSourceRxMap",y(R("Hash"),"new",[],function(Ve,st){var Ye;return Ve==null&&(Ve=qe),st==null&&(st=qe),Ye=[st,K(["(",X(st["$empty?"]())?"":""+R("Regexp").$escape(st)+" ?",")?",Pe("CalloutSourceRxt")])],y(Ve,"[]=",Ye),Ye[Ye.length-1]})),se(Le[0],"ListRxMap",ye(["ulist","olist","dlist","colist"],{ulist:Pe("UnorderedListRx"),olist:Pe("OrderedListRx"),dlist:Pe("DescriptionListRx"),colist:Pe("CalloutListRx")})),se(Le[0],"ColumnSpecRx",/^(?:(\d+)\*)?([<^>](?:\.[<^>]?)?|(?:[<^>]?\.)?[<^>])?(\d+%?|~)?([a-z])?$/),se(Le[0],"CellSpecStartRx",/^[ \t]*(?:(\d+(?:\.\d*)?|(?:\d*\.)?\d+)([*+]))?([<^>](?:\.[<^>]?)?|(?:[<^>]?\.)?[<^>])?([a-z])?$/),se(Le[0],"CellSpecEndRx",/[ \t]+(?:(\d+(?:\.\d*)?|(?:\d*\.)?\d+)([*+]))?([<^>](?:\.[<^>]?)?|(?:[<^>]?\.)?[<^>])?([a-z])?$/),se(Le[0],"CustomBlockMacroRx",K(["^(",Pe("CG_WORD"),"[",Pe("CC_WORD"),"-]*)::(|\\S|\\S",Pe("CC_ANY"),"*?\\S)\\[(",Pe("CC_ANY"),"+)?\\]$"])),se(Le[0],"BlockMediaMacroRx",K(["^(image|video|audio)::(\\S|\\S",Pe("CC_ANY"),"*?\\S)\\[(",Pe("CC_ANY"),"+)?\\]$"])),se(Le[0],"BlockTocMacroRx",K(["^toc::\\[(",Pe("CC_ANY"),"+)?\\]$"])),se(Le[0],"InlineAnchorRx",K(["(\\\\)?(?:\\[\\[([",Pe("CC_ALPHA"),"_:][",Pe("CC_WORD"),"\\-:.]*)(?:, *(",Pe("CC_ANY"),"+?))?\\]\\]|anchor:([",Pe("CC_ALPHA"),"_:][",Pe("CC_WORD"),"\\-:.]*)\\[(?:\\]|(",Pe("CC_ANY"),"*?[^\\\\])\\]))"])),se(Le[0],"InlineAnchorScanRx",K(["(?:^|[^\\\\\\[])\\[\\[([",Pe("CC_ALPHA"),"_:][",Pe("CC_WORD"),"\\-:.]*)(?:, *(",Pe("CC_ANY"),"+?))?\\]\\]|(?:^|[^\\\\])anchor:([",Pe("CC_ALPHA"),"_:][",Pe("CC_WORD"),"\\-:.]*)\\[(?:\\]|(",Pe("CC_ANY"),"*?[^\\\\])\\])"])),se(Le[0],"LeadingInlineAnchorRx",K(["^\\[\\[([",Pe("CC_ALPHA"),"_:][",Pe("CC_WORD"),"\\-:.]*)(?:, *(",Pe("CC_ANY"),"+?))?\\]\\]"])),se(Le[0],"InlineBiblioAnchorRx",K(["^\\[\\[\\[([",Pe("CC_ALPHA"),"_:][",Pe("CC_WORD"),"\\-:.]*)(?:, *(",Pe("CC_ANY"),"+?))?\\]\\]\\]"])),se(Le[0],"InlineEmailRx",K(["([\\\\>:/])?",Pe("CG_WORD"),"(?:&|[",Pe("CC_WORD"),"\\-.%+])*@",Pe("CG_ALNUM"),"[",Pe("CC_ALNUM"),"_\\-.]*\\.[a-zA-Z]{2,5}\\b"])),se(Le[0],"InlineFootnoteMacroRx",K(["\\\\?footnote(?:(ref):|:([",Pe("CC_WORD"),"-]+)?)\\[(?:|(",Pe("CC_ALL"),"*?[^\\\\]))\\](?!</a>)"],"m")),se(Le[0],"InlineImageMacroRx",K(["\\\\?i(?:mage|con):([^:\\s\\[](?:[^\\n\\[]*[^\\s\\[])?)\\[(|",Pe("CC_ALL"),"*?[^\\\\])\\]"],"m")),se(Le[0],"InlineIndextermMacroRx",K(["\\\\?(?:(indexterm2?):\\[(",Pe("CC_ALL"),"*?[^\\\\])\\]|\\(\\((",Pe("CC_ALL"),"+?)\\)\\)(?!\\)))"],"m")),se(Le[0],"InlineKbdBtnMacroRx",K(["(\\\\)?(kbd|btn):\\[(",Pe("CC_ALL"),"*?[^\\\\])\\]"],"m")),se(Le[0],"InlineLinkRx",K(["(^|link:|",Pe("CG_BLANK"),`|<|[>\\(\\)\\[\\];"'])(\\\\?(?:https?|file|ftp|irc)://)(?:([^\\s\\[\\]]+)\\[(|`,Pe("CC_ALL"),"*?[^\\\\])\\]|([^\\s\\[\\]<]*([^\\s,.?!\\[\\]<\\)])))"],"m")),se(Le[0],"InlineLinkMacroRx",K(["\\\\?(?:link|(mailto)):(|[^:\\s\\[][^\\s\\[]*)\\[(|",Pe("CC_ALL"),"*?[^\\\\])\\]"],"m")),se(Le[0],"MacroNameRx",K(["^",Pe("CG_WORD"),"[",Pe("CC_WORD"),"-]*$"])),se(Le[0],"InlineStemMacroRx",K(["\\\\?(stem|(?:latex|ascii)math):([a-z]+(?:,[a-z-]+)*)?\\[(",Pe("CC_ALL"),"*?[^\\\\])\\]"],"m")),se(Le[0],"InlineMenuMacroRx",K(["\\\\?menu:(",Pe("CG_WORD"),"|[",Pe("CC_WORD"),"&][^\\n\\[]*[^\\s\\[])\\[ *(?:|(",Pe("CC_ALL"),"*?[^\\\\]))\\]"],"m")),se(Le[0],"InlineMenuRx",K(['\\\\?"([',Pe("CC_WORD"),'&][^"]*?[ \\n]+>[ \\n]+[^"]*)"'])),se(Le[0],"InlinePassRx",Ue(!1,["+","-]",K(["((?:^|[^",Pe("CC_WORD"),";:\\\\])(?=(\\[)|\\+)|\\\\(?=\\[)|(?=\\\\\\+))(?:\\2(x-|[^\\]]+ x-)\\]|(?:\\[([^\\]]+)\\])?(?=(\\\\)?\\+))(\\5?(\\+|`)(\\S|\\S",Pe("CC_ALL"),"*?\\S)\\7)(?!",Pe("CG_WORD"),")"],"m")],!0,["`",qe,K(["(^|[^`",Pe("CC_WORD"),"])(?:(\\Z)()|\\[([^\\]]+)\\](?=(\\\\))?)?(\\5?(`)([^`\\s]|[^`\\s]",Pe("CC_ALL"),"*?\\S)\\7)(?![`",Pe("CC_WORD"),"])"],"m")])),se(Le[0],"InlinePassMacroRx",K(["(?:(?:(\\\\?)\\[([^\\]]+)\\])?(\\\\{0,2})(\\+\\+\\+?|\\$\\$)(",Pe("CC_ALL"),"*?)\\4|(\\\\?)pass:([a-z]+(?:,[a-z-]+)*)?\\[(|",Pe("CC_ALL"),"*?[^\\\\])\\])"],"m")),se(Le[0],"InlineXrefMacroRx",K(["\\\\?(?:<<([",Pe("CC_WORD"),"#/.:{]",Pe("CC_ALL"),"*?)>>|xref:([",Pe("CC_WORD"),"#/.:{]",Pe("CC_ALL"),"*?)\\[(?:\\]|(",Pe("CC_ALL"),"*?[^\\\\])\\]))"],"m")),se(Le[0],"HardLineBreakRx",K(["^(",Pe("CC_ANY"),"*) \\+$"],"m")),se(Le[0],"MarkdownThematicBreakRx",/^ {0,3}([-*_])( *)\1\2\1$/),se(Le[0],"ExtLayoutBreakRx",/^(?:'{3,}|<{3,}|([-*_])( *)\1\2\1)$/),se(Le[0],"BlankLineRx",/\n{2,}/),se(Le[0],"EscapedSpaceRx",/\\([ \t\n])/),se(Le[0],"ReplaceableTextRx",/[&']|--|\.\.\.|\([CRT]M?\)/),se(Le[0],"SpaceDelimiterRx",/([^\\])[ \t\n]+/),se(Le[0],"SubModifierSniffRx",/[+-]/),se(Le[0],"TrailingDigitsRx",/\d+$/),se(Le[0],"UriSniffRx",K(["^",Pe("CG_ALPHA"),"[",Pe("CC_ALNUM"),".+-]+:/{0,2}"])),se(Le[0],"XmlSanitizeRx",/<[^>]+>/)}(J[0],J)},Opal.modules["asciidoctor/substitutors"]=function(a){var ue=a.module,se=a.const_set,K=a.hash2,ye=a.hash,y=a.rb_plus,X=a.regexp,Ue=a.not,J=a.truthy,qe=a.send,R=a.def,et=a.alias,Ne=a.gvars,Ke=a.eqeq,Le=a.to_ary,Pe=a.neqeq,ht=a.to_a,Ve=a.eqeqeq,st=a.rb_gt,Ye=a.slice,Ze=a.rb_minus,dt=a.rb_lt,I=a.rb_times,tt=[],C=a.nil,rt=a.$$$;return a.add_stubs("freeze,+,keys,!,empty?,===,[],join,include?,extract_passthroughs,each,sub_specialchars,sub_quotes,sub_attributes,sub_replacements,sub_macros,highlight_source,sub_callouts,sub_post_replacements,warn,logger,restore_passthroughs,clear,split,apply_subs,gsub,match?,compat_mode,convert_quoted_text,attributes,==,shift,store_attribute,!=,attribute_undefined,counter,key?,downcase,attribute_missing,info,squeeze,delete,reject,start_with?,do_replacement,inline_macros?,extensions,inline_macros,regexp,instance,slice,length,names,config,merge,[]=,normalize_text,parse_attributes,process_method,expand_subs,text=,text,convert,class,strip,index,min,compact,>,end_with?,map,chop,new,pop,rstrip,register,tr,basename,parse,lstrip,split_simple_csv,-,partition,extract_attributes_from_text,sub,encode_uri_component,style,extname?,rindex,catalog,info?,fetch,outfilesuffix,natural_xrefs,resolve_id,find,footnotes,id,<,size,<<,attr?,attr,to_s,read_next_id,callouts,highlight?,syntax_highlighter,sub_source,extract_callouts,name,to_i,to_sym,resolve_lines_to_highlight,highlight,nil_or_empty?,restore_callouts,count,to_a,|,sort,*,parse_quoted_text_attributes,resolve_pass_subs,basebackend?,error,chr,drop,&,resolve_subs,resolve_block_subs,parse_into,private,shorthand_property_syntax,each_char"),function(lt,Z){var L=ue(lt,"Asciidoctor"),He=[L].concat(Z);return function(ke,Ie){var Re=ue(ke,"Substitutors"),$e=[Re].concat(Ie),we=a.$r($e);return se($e[0],"SpecialCharsRx",/[<&>]/),se($e[0],"SpecialCharsTr",K([">","<","&"],{">":">","<":"<","&":"&"})),se($e[0],"QuotedTextSniffRx",ye(!1,/[*_`#^~]/,!0,/[*'_+#^~]/)),se($e[0],"BASIC_SUBS",["specialcharacters"]).$freeze(),se($e[0],"HEADER_SUBS",["specialcharacters","attributes"]).$freeze(),se($e[0],"NO_SUBS",[]).$freeze(),se($e[0],"NORMAL_SUBS",["specialcharacters","quotes","attributes","replacements","macros","post_replacements"]).$freeze(),se($e[0],"REFTEXT_SUBS",["specialcharacters","quotes","replacements"]).$freeze(),se($e[0],"VERBATIM_SUBS",["specialcharacters","callouts"]).$freeze(),se($e[0],"SUB_GROUPS",K(["none","normal","verbatim","specialchars"],{none:we("NO_SUBS"),normal:we("NORMAL_SUBS"),verbatim:we("VERBATIM_SUBS"),specialchars:we("BASIC_SUBS")})),se($e[0],"SUB_HINTS",K(["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"})),se($e[0],"SUB_OPTIONS",K(["block","inline"],{block:y(y(we("SUB_GROUPS").$keys(),we("NORMAL_SUBS")),["callouts"]),inline:y(we("SUB_GROUPS").$keys(),we("NORMAL_SUBS"))})),se($e[0],"CAN",""),se($e[0],"DEL",""),se($e[0],"PASS_START",""),se($e[0],"PASS_END",""),se($e[0],"PassSlotRx",X([we("PASS_START"),"(\\d+)",we("PASS_END")])),se($e[0],"HighlightedPassSlotRx",X(["<span\\b[^>]*>",we("PASS_START"),"</span>[^\\d]*(\\d+)[^\\d]*<span\\b[^>]*>",we("PASS_END"),"</span>"])),se($e[0],"RS","\\"),se($e[0],"R_SB","]"),se($e[0],"ESC_R_SB","\\]"),se($e[0],"PLUS","+"),R(Re,"$apply_subs",function(P,D){var ae=this,ie=C,me=C,G=C,g=C;return ae.passthroughs==null&&(ae.passthroughs=C),ae.passthroughs_locked==null&&(ae.passthroughs_locked=C),D==null&&(D=we("NORMAL_SUBS")),J(P["$empty?"]())||Ue(D)?P:(J(ie=rt("Array")["$==="](P))&&(P=J(P["$[]"](1))?P.$join(we("LF")):P["$[]"](0)),J(D["$include?"]("macros"))&&(P=ae.$extract_passthroughs(P),J(ae.passthroughs["$empty?"]())||(me=ae.passthroughs,ae.passthroughs_locked=J(G=ae.passthroughs_locked)?G:g=!0)),qe(D,"each",[],function u(_){var z=u.$$s==null?this:u.$$s;switch(_==null&&(_=C),_){case"specialcharacters":return P=z.$sub_specialchars(P);case"quotes":return P=z.$sub_quotes(P);case"attributes":return J(P["$include?"](we("ATTR_REF_HEAD")))?P=z.$sub_attributes(P):C;case"replacements":return P=z.$sub_replacements(P);case"macros":return P=z.$sub_macros(P);case"highlight":return P=z.$highlight_source(P,D["$include?"]("callouts"));case"callouts":return J(D["$include?"]("highlight"))?C:P=z.$sub_callouts(P);case"post_replacements":return P=z.$sub_post_replacements(P);default:return z.$logger().$warn("unknown substitution type "+_)}},{$$s:ae}),J(me)&&(P=ae.$restore_passthroughs(P),J(g)&&(me.$clear(),ae.passthroughs_locked=C)),J(ie)?P.$split(we("LF"),-1):P)},-2),R(Re,"$apply_normal_subs",function(P){var D=this;return D.$apply_subs(P,we("NORMAL_SUBS"))}),R(Re,"$apply_header_subs",function(P){var D=this;return D.$apply_subs(P,we("HEADER_SUBS"))}),et(Re,"apply_title_subs","apply_subs"),R(Re,"$apply_reftext_subs",function(P){var D=this;return D.$apply_subs(P,we("REFTEXT_SUBS"))}),R(Re,"$sub_specialchars",function(P){return J(P["$include?"](">"))||J(P["$include?"]("&"))||J(P["$include?"]("<"))?P.$gsub(we("SpecialCharsRx"),we("SpecialCharsTr")):P}),et(Re,"sub_specialcharacters","sub_specialchars"),R(Re,"$sub_quotes",function(P){var D=this,ae=C;return D.document==null&&(D.document=C),J(we("QuotedTextSniffRx")["$[]"](ae=D.document.$compat_mode())["$match?"](P))&&qe(we("QUOTE_SUBS")["$[]"](ae),"each",[],function ie(me,G,g){var u=ie.$$s==null?this:ie.$$s;return me==null&&(me=C),G==null&&(G=C),g==null&&(g=C),P=qe(P,"gsub",[g],function _(){var z=_.$$s==null?this:_.$$s;return Ne["~"]==null&&(Ne["~"]=C),z.$convert_quoted_text(Ne["~"],me,G)},{$$s:u})},{$$s:D}),P}),R(Re,"$sub_attributes",function(P,D){var ae=this,ie=C,me=C,G=C,g=C,u=C,_=C,z=C,S=C;return ae.document==null&&(ae.document=C),D==null&&(D=K([],{})),ie=ae.document.$attributes(),me=G=g=u=_=z=C,P=qe(P,"gsub",[we("AttributeReferenceRx")],function b(){var F,H,ge=b.$$s==null?this:b.$$s,ce=C,Se=C,Be=C,Xe=C,it=C,pt=C;if(ge.document==null&&(ge.document=C),Ke((F=Ne["~"])===C?C:F["$[]"](1),we("RS"))||Ke((F=Ne["~"])===C?C:F["$[]"](4),we("RS")))return"{"+((F=Ne["~"])===C?C:F["$[]"](2))+"}";if(J((F=Ne["~"])===C?C:F["$[]"](3)))switch((ce=((F=Ne["~"])===C?C:F["$[]"](2)).$split(":",3)).$shift()){case"set":return H=we("Parser").$store_attribute(ce["$[]"](0),J(Se=ce["$[]"](1))?Se:"",ge.document),F=Le(H),F[0]==null||F[0],Be=F[1]==null?C:F[1],J(Be)||Pe(_=J(Se=_)?Se:J(Xe=ie["$[]"]("attribute-undefined"))?Xe:we("Compliance").$attribute_undefined(),"drop-line")?me=u=we("DEL"):me=G=we("CAN");case"counter2":return qe(ge.document,"counter",ht(ce)),me=u=we("DEL");default:return qe(ge.document,"counter",ht(ce))}else{if(J(ie["$key?"](it=((F=Ne["~"])===C?C:F["$[]"](2)).$downcase())))return ie["$[]"](it);if(J(Be=we("INTRINSIC_ATTRIBUTES")["$[]"](it)))return Be;switch(z=J(Se=z)?Se:J(Xe=J(pt=D["$[]"]("attribute_missing"))?pt:ie["$[]"]("attribute-missing"))?Xe:we("Compliance").$attribute_missing()){case"drop":return me=u=we("DEL");case"drop-line":return Ke(g=J(Se=g)?Se:J(Xe=D["$[]"]("drop_line_severity"))?Xe:"info","info")&&qe(ge.$logger(),"info",[],function(){return"dropping line containing reference to missing attribute: "+it}),me=G=we("CAN");case"warn":return ge.$logger().$warn("skipping reference to missing attribute: "+it),(F=Ne["~"])===C?C:F["$[]"](0);default:return(F=Ne["~"])===C?C:F["$[]"](0)}}},{$$s:ae}),J(me)?J(u)?(S=P.$squeeze(we("DEL")).$split(we("LF"),-1),J(G)?qe(S,"reject",[],function(F){var H=C,ge=C,ce=C;return F==null&&(F=C),J(H=J(ge=J(ce=F["$=="](we("DEL")))?ce:F["$=="](we("CAN")))?ge:F["$start_with?"](we("CAN")))?H:F["$include?"](we("CAN"))}).$join(we("LF")).$delete(we("DEL")):qe(S,"reject",[],function(F){return F==null&&(F=C),F["$=="](we("DEL"))}).$join(we("LF")).$delete(we("DEL"))):J(P["$include?"](we("LF")))?qe(P.$split(we("LF"),-1),"reject",[],function(F){var H=C,ge=C;return F==null&&(F=C),J(H=J(ge=F["$=="](we("CAN")))?ge:F["$start_with?"](we("CAN")))?H:F["$include?"](we("CAN"))}).$join(we("LF")):"":P},-2),R(Re,"$sub_replacements",function(P){var D=this;return J(we("ReplaceableTextRx")["$match?"](P))&&qe(we("REPLACEMENTS"),"each",[],function ae(ie,me,G){var g=ae.$$s==null?this:ae.$$s;return ie==null&&(ie=C),me==null&&(me=C),G==null&&(G=C),P=qe(P,"gsub",[ie],function u(){var _=u.$$s==null?this:u.$$s;return Ne["~"]==null&&(Ne["~"]=C),_.$do_replacement(Ne["~"],me,G)},{$$s:g})},{$$s:D}),P}),R(Re,"$sub_macros",function(P){var D=this,ae=C,ie=C,me=C,G=C,g=C,u=C,_=C,z=C;return D.document==null&&(D.document=C),D.parent==null&&(D.parent=C),D.context==null&&(D.context=C),ae=P["$include?"]("["),ie=P["$include?"](":"),me=J(G=ae)?ie:G,g=J(G=me)?P["$include?"](":["):G,u=(_=D.document).$attributes(),J(z=_.$extensions())&&J(z["$inline_macros?"]())&&qe(z.$inline_macros(),"each",[],function S(b){var F=S.$$s==null?this:S.$$s;return b==null&&(b=C),P=qe(P,"gsub",[b.$instance().$regexp()],function H(){var ge,ce,Se=H.$$s==null?this:H.$$s,Be=C,Xe=C,it=C,pt=C,at=C,bt=C,kt=C,Et=C,wt=C;return Ne["~"]==null&&(Ne["~"]=C),J((Be=(ge=Ne["~"])===C?C:ge["$[]"](0))["$start_with?"](we("RS")))?((ge=Ne["~"])===C?C:ge["$[]"](0)).$slice(1,((ge=Ne["~"])===C?C:ge["$[]"](0)).$length()):(J(Ne["~"].$names()["$empty?"]())?(ge=[(ce=Ne["~"])===C?C:ce["$[]"](1),(ce=Ne["~"])===C?C:ce["$[]"](2)],Xe=ge[0],it=ge[1]):(ge=[function(){try{return Ne["~"]["$[]"]("target")}catch(Nt){if(a.rescue(Nt,[we("StandardError")]))try{return C}finally{a.pop_exception()}else throw Nt}}(),function(){try{return Ne["~"]["$[]"]("content")}catch(Nt){if(a.rescue(Nt,[we("StandardError")]))try{return C}finally{a.pop_exception()}else throw Nt}}()],Xe=ge[0],it=ge[1]),pt=J(at=(bt=b.$config())["$[]"]("default_attrs"))?at.$merge():K([],{}),J(it)&&(J(it["$empty?"]())?Ke(bt["$[]"]("content_model"),"attributes")||pt["$[]="]("text",it):(it=Se.$normalize_text(it,!0,!0),Ke(bt["$[]"]("content_model"),"attributes")?Se.$parse_attributes(it,J(G=J(kt=bt["$[]"]("positional_attrs"))?kt:bt["$[]"]("pos_attrs"))?G:[],K(["into"],{into:pt})):pt["$[]="]("text",it)),Xe=J(G=Xe)?G:Ke(bt["$[]"]("format"),"short")?it:Xe),Ve(we("Inline"),Et=b.$process_method()["$[]"](Se,Xe,pt))?(J(wt=Et.$attributes().$delete("subs"))&&J(wt=Se.$expand_subs(wt,"custom inline macro"))&&Et["$text="](Se.$apply_subs(Et.$text(),wt)),Et.$convert()):J(Et)?(qe(Se.$logger(),"info",[],function(){return"expected substitution value for custom inline macro to be of type Inline; got "+Et.$class()+": "+Be}),Et):"")},{$$s:F})},{$$s:D}),J(u["$key?"]("experimental"))&&(J(g)&&(J(P["$include?"]("kbd:"))||J(P["$include?"]("btn:")))&&(P=qe(P,"gsub",[we("InlineKbdBtnMacroRx")],function S(){var b,F=S.$$s==null?this:S.$$s,H=C,ge=C,ce=C;return J((b=Ne["~"])===C?C:b["$[]"](1))?((b=Ne["~"])===C?C:b["$[]"](0)).$slice(1,((b=Ne["~"])===C?C:b["$[]"](0)).$length()):Ke((b=Ne["~"])===C?C:b["$[]"](2),"kbd")?(J((H=((b=Ne["~"])===C?C:b["$[]"](3)).$strip())["$include?"](we("R_SB")))&&(H=H.$gsub(we("ESC_R_SB"),we("R_SB"))),J(st(H.$length(),1))&&J(ge=J(ge=H.$index(",",1))?[ge,H.$index("+",1)].$compact().$min():H.$index("+",1))?(ce=H.$slice(ge,1),J(H["$end_with?"](ce))?(H=qe(H.$chop().$split(ce,-1),"map",[],function(Be){return Be==null&&(Be=C),Be.$strip()}),H["$[]="](-1,y(H["$[]"](-1),ce))):H=qe(H.$split(ce),"map",[],function(Be){return Be==null&&(Be=C),Be.$strip()})):H=[H],we("Inline").$new(F,"kbd",C,K(["attributes"],{attributes:K(["keys"],{keys:H})})).$convert()):we("Inline").$new(F,"button",F.$normalize_text((b=Ne["~"])===C?C:b["$[]"](3),!0,!0)).$convert()},{$$s:D})),J(me)&&J(P["$include?"]("menu:"))&&(P=qe(P,"gsub",[we("InlineMenuMacroRx")],function S(){var b,F=S.$$s==null?this:S.$$s,H=C,ge=C,ce=C,Se=C,Be=C;return J(((b=Ne["~"])===C?C:b["$[]"](0))["$start_with?"](we("RS")))?((b=Ne["~"])===C?C:b["$[]"](0)).$slice(1,((b=Ne["~"])===C?C:b["$[]"](0)).$length()):(H=(b=Ne["~"])===C?C:b["$[]"](1),J(ge=(b=Ne["~"])===C?C:b["$[]"](2))?(J(ge["$include?"](we("R_SB")))&&(ge=ge.$gsub(we("ESC_R_SB"),we("R_SB"))),J(ce=J(ge["$include?"](">"))?">":J(ge["$include?"](","))?",":C)?(Se=qe(ge.$split(ce),"map",[],function(it){return it==null&&(it=C),it.$strip()}),Be=Se.$pop()):(b=[[],ge.$rstrip()],Se=b[0],Be=b[1])):(b=[[],C],Se=b[0],Be=b[1]),we("Inline").$new(F,"menu",C,K(["attributes"],{attributes:K(["menu","submenus","menuitem"],{menu:H,submenus:Se,menuitem:Be})})).$convert())},{$$s:D})),J(P["$include?"]('"'))&&J(P["$include?"](">"))&&(P=qe(P,"gsub",[we("InlineMenuRx")],function S(){var b,F,H,ge=S.$$s==null?this:S.$$s,ce=C,Se=C,Be=C;return J(((b=Ne["~"])===C?C:b["$[]"](0))["$start_with?"](we("RS")))?((b=Ne["~"])===C?C:b["$[]"](0)).$slice(1,((b=Ne["~"])===C?C:b["$[]"](0)).$length()):(F=qe(((H=Ne["~"])===C?C:H["$[]"](1)).$split(">"),"map",[],function(it){return it==null&&(it=C),it.$strip()}),b=Le(F),ce=b[0]==null?C:b[0],Se=Ye(b,1),Be=Se.$pop(),we("Inline").$new(ge,"menu",C,K(["attributes"],{attributes:K(["menu","submenus","menuitem"],{menu:ce,submenus:Se,menuitem:Be})})).$convert())},{$$s:D}))),J(me)&&(J(P["$include?"]("image:"))||J(P["$include?"]("icon:")))&&(P=qe(P,"gsub",[we("InlineImageMacroRx")],function S(){var b,F=S.$$s==null?this:S.$$s,H=C,ge=C,ce=C,Se=C;return J(((b=Ne["~"])===C?C:b["$[]"](0))["$start_with?"](we("RS")))?((b=Ne["~"])===C?C:b["$[]"](0)).$slice(1,((b=Ne["~"])===C?C:b["$[]"](0)).$length()):(J(((b=Ne["~"])===C?C:b["$[]"](0))["$start_with?"]("icon:"))?(b=["icon",["size"]],H=b[0],ge=b[1]):(b=["image",["alt","width","height"]],H=b[0],ge=b[1]),ce=(b=Ne["~"])===C?C:b["$[]"](1),Se=F.$parse_attributes((b=Ne["~"])===C?C:b["$[]"](2),ge,K(["unescape_input"],{unescape_input:!0})),Ke(H,"icon")||(_.$register("images",ce),Se["$[]="]("imagesdir",u["$[]"]("imagesdir"))),J(G=Se["$[]"]("alt"))||Se["$[]="]("alt",(b=["default-alt",we("Helpers").$basename(ce,!0).$tr("_-"," ")],qe(Se,"[]=",b),b[b.length-1])),we("Inline").$new(F,"image",C,K(["type","target","attributes"],{type:H,target:ce,attributes:Se})).$convert())},{$$s:D})),(J(P["$include?"]("(("))&&J(P["$include?"]("))"))||J(g)&&J(P["$include?"]("dexterm")))&&(P=qe(P,"gsub",[we("InlineIndextermMacroRx")],function S(){var b,F,H=S.$$s==null?this:S.$$s,ge=C,ce=C,Se=C,Be=C,Xe=C,it=C,pt=C,at=C,bt=C,kt=C,Et=C,wt=C,Nt=C,Tt=C;switch((b=Ne["~"])===C?C:b["$[]"](1)){case"indexterm":return J(((b=Ne["~"])===C?C:b["$[]"](0))["$start_with?"](we("RS")))?((b=Ne["~"])===C?C:b["$[]"](0)).$slice(1,((b=Ne["~"])===C?C:b["$[]"](0)).$length()):(J((ge=H.$normalize_text((b=Ne["~"])===C?C:b["$[]"](2),!0,!0))["$include?"]("="))?J(ce=(Se=we("AttributeList").$new(ge,H).$parse())["$[]"](1))?(Se["$[]="]("terms",[ce]),J(Be=Se["$[]"]("see-also"))&&Se["$[]="]("see-also",J(Be["$include?"](","))?qe(Be.$split(","),"map",[],function(jt){return jt==null&&(jt=C),jt.$lstrip()}):[Be])):Se=K(["terms"],{terms:ge}):Se=K(["terms"],{terms:H.$split_simple_csv(ge)}),we("Inline").$new(H,"indexterm",C,K(["attributes"],{attributes:Se})).$convert());case"indexterm2":return J(((b=Ne["~"])===C?C:b["$[]"](0))["$start_with?"](we("RS")))?((b=Ne["~"])===C?C:b["$[]"](0)).$slice(1,((b=Ne["~"])===C?C:b["$[]"](0)).$length()):(J((Xe=H.$normalize_text((b=Ne["~"])===C?C:b["$[]"](2),!0,!0))["$include?"]("="))&&(Xe=J(it=J(pt=(Se=we("AttributeList").$new(Xe,H).$parse())["$[]"](1))?pt:Se=C)?it:Xe,J(Se)&&J(Be=Se["$[]"]("see-also"))&&Se["$[]="]("see-also",J(Be["$include?"](","))?qe(Be.$split(","),"map",[],function(jt){return jt==null&&(jt=C),jt.$lstrip()}):[Be])),we("Inline").$new(H,"indexterm",Xe,K(["attributes","type"],{attributes:Se,type:"visible"})).$convert());default:if(at=(b=Ne["~"])===C?C:b["$[]"](3),J(((b=Ne["~"])===C?C:b["$[]"](0))["$start_with?"](we("RS"))))if(J(at["$start_with?"]("("))&&J(at["$end_with?"](")")))at=at.$slice(1,Ze(at.$length(),2)),b=[!0,"(",")"],bt=b[0],kt=b[1],Et=b[2];else return((b=Ne["~"])===C?C:b["$[]"](0)).$slice(1,((b=Ne["~"])===C?C:b["$[]"](0)).$length());else bt=!0,J(at["$start_with?"]("("))?J(at["$end_with?"](")"))?(b=[at.$slice(1,Ze(at.$length(),2)),!1],at=b[0],bt=b[1]):(b=[at.$slice(1,at.$length()),"(",""],at=b[0],kt=b[1],Et=b[2]):J(at["$end_with?"](")"))&&(b=[at.$chop(),"",")"],at=b[0],kt=b[1],Et=b[2]);return J(bt)?(J((Xe=H.$normalize_text(at,!0))["$include?"](";&"))&&(J(Xe["$include?"](" >> "))?(F=Xe.$partition(" >> "),b=Le(F),Xe=b[0]==null?C:b[0],b[1]==null||b[1],wt=b[2]==null?C:b[2],Se=K(["see"],{see:wt})):J(Xe["$include?"](" &> "))&&(F=Xe.$split(" &> "),b=Le(F),Xe=b[0]==null?C:b[0],Be=Ye(b,1),Se=K(["see-also"],{"see-also":Be}))),Nt=we("Inline").$new(H,"indexterm",Xe,K(["attributes","type"],{attributes:Se,type:"visible"})).$convert()):(Se=K([],{}),J((Tt=H.$normalize_text(at,!0))["$include?"](";&"))&&(J(Tt["$include?"](" >> "))?(F=Tt.$partition(" >> "),b=Le(F),Tt=b[0]==null?C:b[0],b[1]==null||b[1],wt=b[2]==null?C:b[2],Se["$[]="]("see",wt)):J(Tt["$include?"](" &> "))&&(F=Tt.$split(" &> "),b=Le(F),Tt=b[0]==null?C:b[0],Be=Ye(b,1),Se["$[]="]("see-also",Be))),Se["$[]="]("terms",H.$split_simple_csv(Tt)),Nt=we("Inline").$new(H,"indexterm",C,K(["attributes"],{attributes:Se})).$convert()),J(kt)?""+kt+Nt+Et:Nt}},{$$s:D})),J(ie)&&J(P["$include?"]("://"))&&(P=qe(P,"gsub",[we("InlineLinkRx")],function S(){var b,F,H=S.$$s==null?this:S.$$s,ge=C,ce=C,Se=C,Be=C,Xe=C,it=C,pt=C,at=C,bt=C;if(J((ge=y((b=Ne["~"])===C?C:b["$[]"](2),J(G=(b=Ne["~"])===C?C:b["$[]"](3))?G:(b=Ne["~"])===C?C:b["$[]"](5)))["$start_with?"](we("RS"))))return y(((b=Ne["~"])===C?C:b["$[]"](0)).$slice(0,ce=((b=Ne["~"])===C?C:b["$[]"](1)).$length()),((b=Ne["~"])===C?C:b["$[]"](0)).$slice(y(ce,1),((b=Ne["~"])===C?C:b["$[]"](0)).$length()));if(b=[(F=Ne["~"])===C?C:F["$[]"](1),""],Se=b[0],Be=b[1],J((b=Ne["~"])===C?C:b["$[]"](4)))Ke(Se,"link:")&&(Se=""),J((Xe=(b=Ne["~"])===C?C:b["$[]"](4))["$empty?"]())&&(Xe=C);else{switch(Se){case"link:":case'"':case"'":return(b=Ne["~"])===C?C:b["$[]"](0)}switch((b=Ne["~"])===C?C:b["$[]"](6)){case";":if(J(Se["$start_with?"]("<"))&&J(ge["$end_with?"](">"))?(Se=Se.$slice(4,Se.$length()),ge=ge.$slice(0,Ze(ge.$length(),4))):J((ge=ge.$chop())["$end_with?"](")"))?(ge=ge.$chop(),Be=");"):Be=";",J(ge["$end_with?"]("://")))return(b=Ne["~"])===C?C:b["$[]"](0);break;case":":if(J((ge=ge.$chop())["$end_with?"](")"))?(ge=ge.$chop(),Be="):"):Be=":",J(ge["$end_with?"]("://")))return(b=Ne["~"])===C?C:b["$[]"](0);break}}return b=[C,K(["type"],{type:"link"})],it=b[0],pt=b[1],J(Xe)?(J(Xe["$include?"](we("R_SB")))&&(at=Xe=Xe.$gsub(we("ESC_R_SB"),we("R_SB"))),Ue(_.$compat_mode())&&J(Xe["$include?"]("="))&&(F=H.$extract_attributes_from_text(Xe,""),b=Le(F),Xe=b[0]==null?C:b[0],it=b[1]==null?C:b[1],at=Xe,pt["$[]="]("id",it["$[]"]("id"))),J(Xe["$end_with?"]("^"))&&(at=Xe=Xe.$chop(),J(it)?J(G=it["$[]"]("window"))||it["$[]="]("window","_blank"):it=K(["window"],{window:"_blank"})),J(at)&&J(at["$empty?"]())&&(Xe=J(u["$key?"]("hide-uri-scheme"))?ge.$sub(we("UriSniffRx"),""):ge,bt=!0)):(Xe=J(u["$key?"]("hide-uri-scheme"))?ge.$sub(we("UriSniffRx"),""):ge,bt=!0),J(bt)&&(J(it)?it["$[]="]("role",J(it["$key?"]("role"))?"bare "+it["$[]"]("role"):"bare"):it=K(["role"],{role:"bare"})),_.$register("links",(b=["target",ge],qe(pt,"[]=",b),b[b.length-1])),J(it)&&pt["$[]="]("attributes",it),""+Se+we("Inline").$new(H,"anchor",Xe,pt).$convert()+Be},{$$s:D})),J(me)&&(J(P["$include?"]("link:"))||J(P["$include?"]("ilto:")))&&(P=qe(P,"gsub",[we("InlineLinkMacroRx")],function S(){var b,F,H=S.$$s==null?this:S.$$s,ge=C,ce=C,Se=C,Be=C,Xe=C,it=C;return J(((b=Ne["~"])===C?C:b["$[]"](0))["$start_with?"](we("RS")))?((b=Ne["~"])===C?C:b["$[]"](0)).$slice(1,((b=Ne["~"])===C?C:b["$[]"](0)).$length()):(J(ge=(b=Ne["~"])===C?C:b["$[]"](1))?ce=y("mailto:",Se=(b=Ne["~"])===C?C:b["$[]"](2)):ce=(b=Ne["~"])===C?C:b["$[]"](2),b=[C,K(["type"],{type:"link"})],Be=b[0],Xe=b[1],J((it=(b=Ne["~"])===C?C:b["$[]"](3))["$empty?"]())||(J(it["$include?"](we("R_SB")))&&(it=it.$gsub(we("ESC_R_SB"),we("R_SB"))),J(ge)?Ue(_.$compat_mode())&&J(it["$include?"](","))&&(F=H.$extract_attributes_from_text(it,""),b=Le(F),it=b[0]==null?C:b[0],Be=b[1]==null?C:b[1],Xe["$[]="]("id",Be["$[]"]("id")),J(Be["$key?"](2))&&(J(Be["$key?"](3))?ce=""+ce+"?subject="+we("Helpers").$encode_uri_component(Be["$[]"](2))+"&body="+we("Helpers").$encode_uri_component(Be["$[]"](3)):ce=""+ce+"?subject="+we("Helpers").$encode_uri_component(Be["$[]"](2)))):Ue(_.$compat_mode())&&J(it["$include?"]("="))&&(F=H.$extract_attributes_from_text(it,""),b=Le(F),it=b[0]==null?C:b[0],Be=b[1]==null?C:b[1],Xe["$[]="]("id",Be["$[]"]("id"))),J(it["$end_with?"]("^"))&&(it=it.$chop(),J(Be)?J(G=Be["$[]"]("window"))||Be["$[]="]("window","_blank"):Be=K(["window"],{window:"_blank"}))),J(it["$empty?"]())&&(J(ge)?it=Se:(J(u["$key?"]("hide-uri-scheme"))?J((it=ce.$sub(we("UriSniffRx"),""))["$empty?"]())&&(it=ce):it=ce,J(Be)?Be["$[]="]("role",J(Be["$key?"]("role"))?"bare "+Be["$[]"]("role"):"bare"):Be=K(["role"],{role:"bare"}))),_.$register("links",(b=["target",ce],qe(Xe,"[]=",b),b[b.length-1])),J(Be)&&Xe["$[]="]("attributes",Be),we("Inline").$new(H,"anchor",it,Xe).$convert())},{$$s:D})),J(P["$include?"]("@"))&&(P=qe(P,"gsub",[we("InlineEmailRx")],function S(){var b,F=S.$$s==null?this:S.$$s,H=C,ge=C;return J((b=Ne["~"])===C?C:b["$[]"](1))?Ke((b=Ne["~"])===C?C:b["$[]"](1),we("RS"))?((b=Ne["~"])===C?C:b["$[]"](0)).$slice(1,((b=Ne["~"])===C?C:b["$[]"](0)).$length()):(b=Ne["~"])===C?C:b["$[]"](0):(H=y("mailto:",ge=(b=Ne["~"])===C?C:b["$[]"](0)),_.$register("links",H),we("Inline").$new(F,"anchor",ge,K(["type","target"],{type:"link",target:H})).$convert())},{$$s:D})),J(ae)&&Ke(D.context,"list_item")&&Ke(D.parent.$style(),"bibliography")&&(P=qe(P,"sub",[we("InlineBiblioAnchorRx")],function S(){var b,F=S.$$s==null?this:S.$$s;return we("Inline").$new(F,"anchor",(b=Ne["~"])===C?C:b["$[]"](2),K(["type","id"],{type:"bibref",id:(b=Ne["~"])===C?C:b["$[]"](1)})).$convert()},{$$s:D})),(J(ae)&&J(P["$include?"]("[["))||J(me)&&J(P["$include?"]("or:")))&&(P=qe(P,"gsub",[we("InlineAnchorRx")],function S(){var b,F=S.$$s==null?this:S.$$s,H=C,ge=C;return J((b=Ne["~"])===C?C:b["$[]"](1))?((b=Ne["~"])===C?C:b["$[]"](0)).$slice(1,((b=Ne["~"])===C?C:b["$[]"](0)).$length()):(J(H=(b=Ne["~"])===C?C:b["$[]"](2))?ge=(b=Ne["~"])===C?C:b["$[]"](3):(H=(b=Ne["~"])===C?C:b["$[]"](4),J(ge=(b=Ne["~"])===C?C:b["$[]"](5))&&J(ge["$include?"](we("R_SB")))&&(ge=ge.$gsub(we("ESC_R_SB"),we("R_SB")))),we("Inline").$new(F,"anchor",ge,K(["type","id"],{type:"ref",id:H})).$convert())},{$$s:D})),(J(P["$include?"]("&"))&&J(P["$include?"](";&l"))||J(me)&&J(P["$include?"]("xref:")))&&(P=qe(P,"gsub",[we("InlineXrefMacroRx")],function S(){var b,F,H=S.$$s==null?this:S.$$s,ge=C,ce=C,Se=C,Be=C,Xe=C,it=C,pt=C,at=C,bt=C,kt=C;return J(((b=Ne["~"])===C?C:b["$[]"](0))["$start_with?"](we("RS")))?((b=Ne["~"])===C?C:b["$[]"](0)).$slice(1,((b=Ne["~"])===C?C:b["$[]"](0)).$length()):(ge=K([],{}),J(ce=(b=Ne["~"])===C?C:b["$[]"](1))?J(ce["$include?"](","))&&(F=ce.$partition(","),b=Le(F),ce=b[0]==null?C:b[0],b[1]==null||b[1],Se=b[2]==null?C:b[2],J((Se=Se.$lstrip())["$empty?"]())&&(Se=C)):(Be=!0,ce=(b=Ne["~"])===C?C:b["$[]"](2),J(Se=(b=Ne["~"])===C?C:b["$[]"](3))&&(J(Se["$include?"](we("R_SB")))&&(Se=Se.$gsub(we("ESC_R_SB"),we("R_SB"))),Ue(_.$compat_mode())&&J(Se["$include?"]("="))&&(F=H.$extract_attributes_from_text(Se),b=Le(F),Se=b[0]==null?C:b[0],ge=b[1]==null?C:b[1]))),J(_.$compat_mode())?Xe=ce:J(it=ce.$index("#"))&&Pe(ce["$[]"](Ze(it,1)),"&")?J(st(it,0))?(J(st(pt=Ze(Ze(ce.$length(),1),it),0))?(b=[ce.$slice(0,it),ce.$slice(y(it,1),pt)],at=b[0],Xe=b[1]):at=ce.$chop(),J(Be)?J(at["$end_with?"](".adoc"))?bt=at=at.$slice(0,Ze(at.$length(),5)):Ue(we("Helpers")["$extname?"](at))&&(bt=at):J(qe(at,"end_with?",ht(we("ASCIIDOC_EXTENSIONS").$keys())))?bt=at=at.$slice(0,at.$rindex(".")):bt=at):(b=[ce,ce.$slice(1,ce.$length())],kt=b[0],Xe=b[1]):J(Be)?J(ce["$end_with?"](".adoc"))?bt=at=ce.$slice(0,Ze(ce.$length(),5)):J(we("Helpers")["$extname?"](ce))?at=ce:Xe=ce:Xe=ce,J(kt)?(ce=Xe,J(H.$logger()["$info?"]())&&Ue(_.$catalog()["$[]"]("refs")["$[]"](ce))&&H.$logger().$info("possible invalid reference: "+ce)):J(at)?J(bt)&&(Ke(_.$attributes()["$[]"]("docname"),at)||J(_.$catalog()["$[]"]("includes")["$[]"](at)))?J(Xe)?(b=[Xe,C,"#"+Xe],ce=b[0],at=b[1],kt=b[2],J(H.$logger()["$info?"]())&&Ue(_.$catalog()["$[]"]("refs")["$[]"](ce))&&H.$logger().$info("possible invalid reference: "+ce)):(b=[C,C,"#"],ce=b[0],at=b[1],kt=b[2]):(b=[at,""+(J(G=_.$attributes()["$[]"]("relfileprefix"))?G:"")+at+(J(bt)?_.$attributes().$fetch("relfilesuffix",_.$outfilesuffix()):"")],ce=b[0],at=b[1],J(Xe)?(b=[""+ce+"#"+Xe,""+at+"#"+Xe],ce=b[0],kt=b[1]):kt=at):J(_.$compat_mode())||Ue(we("Compliance").$natural_xrefs())?(b=[Xe,"#"+Xe],ce=b[0],kt=b[1],J(H.$logger()["$info?"]())&&Ue(_.$catalog()["$[]"]("refs")["$[]"](ce))&&H.$logger().$info("possible invalid reference: "+ce)):J(_.$catalog()["$[]"]("refs")["$[]"](Xe))?(b=[Xe,"#"+Xe],ce=b[0],kt=b[1]):(J(Xe["$include?"](" "))||Pe(Xe.$downcase(),Xe))&&J(ce=_.$resolve_id(Xe))?(b=[ce,"#"+ce],Xe=b[0],kt=b[1]):(b=[Xe,"#"+Xe],ce=b[0],kt=b[1],J(H.$logger()["$info?"]())&&H.$logger().$info("possible invalid reference: "+ce)),ge["$[]="]("path",at),ge["$[]="]("fragment",Xe),ge["$[]="]("refid",ce),we("Inline").$new(H,"anchor",Se,K(["type","target","attributes"],{type:"xref",target:kt,attributes:ge})).$convert())},{$$s:D})),J(me)&&J(P["$include?"]("tnote"))&&(P=qe(P,"gsub",[we("InlineFootnoteMacroRx")],function S(){var b,F,H,ge=S.$$s==null?this:S.$$s,ce=C,Se=C,Be=C,Xe=C,it=C,pt=C;if(J(((b=Ne["~"])===C?C:b["$[]"](0))["$start_with?"](we("RS"))))return((b=Ne["~"])===C?C:b["$[]"](0)).$slice(1,((b=Ne["~"])===C?C:b["$[]"](0)).$length());if(J((b=Ne["~"])===C?C:b["$[]"](1)))if(J((b=Ne["~"])===C?C:b["$[]"](3)))F=((H=Ne["~"])===C?C:H["$[]"](3)).$split(",",2),b=Le(F),ce=b[0]==null?C:b[0],Se=b[1]==null?C:b[1],J(_.$compat_mode())||ge.$logger().$warn("found deprecated footnoteref macro: "+((b=Ne["~"])===C?C:b["$[]"](0))+"; use footnote macro with target instead");else return(b=Ne["~"])===C?C:b["$[]"](0);else ce=(b=Ne["~"])===C?C:b["$[]"](2),Se=(b=Ne["~"])===C?C:b["$[]"](3);if(J(ce))J(Be=qe(_.$footnotes(),"find",[],function(bt){return bt==null&&(bt=C),bt.$id()["$=="](ce)}))?(b=[Be.$index(),Be.$text()],Xe=b[0],Se=b[1],b=["xref",ce,C],it=b[0],pt=b[1],ce=b[2]):J(Se)?(Se=ge.$restore_passthroughs(ge.$normalize_text(Se,!0,!0)),Xe=_.$counter("footnote-number"),_.$register("footnotes",rt(we("Document"),"Footnote").$new(Xe,ce,Se)),b=["ref",C],it=b[0],pt=b[1]):(ge.$logger().$warn("invalid footnote reference: "+ce),b=["xref",ce,ce,C],it=b[0],pt=b[1],Se=b[2],ce=b[3]);else if(J(Se))Se=ge.$restore_passthroughs(ge.$normalize_text(Se,!0,!0)),Xe=_.$counter("footnote-number"),_.$register("footnotes",rt(we("Document"),"Footnote").$new(Xe,ce,Se)),it=pt=C;else return(b=Ne["~"])===C?C:b["$[]"](0);return we("Inline").$new(ge,"footnote",Se,K(["attributes","id","target","type"],{attributes:K(["index"],{index:Xe}),id:ce,target:pt,type:it})).$convert()},{$$s:D})),P}),R(Re,"$sub_post_replacements",function(P){var D=this,ae=C,ie=C;return D.document==null&&(D.document=C),D.attributes==null&&(D.attributes=C),J(D.attributes["$[]"]("hardbreaks-option"))||J(D.document.$attributes()["$[]"]("hardbreaks-option"))?(ae=P.$split(we("LF"),-1),J(dt(ae.$size(),2))?P:(ie=ae.$pop(),qe(ae,"map",[],function me(G){var g=me.$$s==null?this:me.$$s;return G==null&&(G=C),we("Inline").$new(g,"break",J(G["$end_with?"](we("HARD_LINE_BREAK")))?G.$slice(0,Ze(G.$length(),2)):G,K(["type"],{type:"line"})).$convert()},{$$s:D})["$<<"](ie).$join(we("LF")))):J(P["$include?"](we("PLUS")))&&J(P["$include?"](we("HARD_LINE_BREAK")))?qe(P,"gsub",[we("HardLineBreakRx")],function me(){var G,g=me.$$s==null?this:me.$$s;return we("Inline").$new(g,"break",(G=Ne["~"])===C?C:G["$[]"](1),K(["type"],{type:"line"})).$convert()},{$$s:D}):P}),R(Re,"$sub_source",function(P,D){var ae=this;return J(D)?ae.$sub_callouts(ae.$sub_specialchars(P)):ae.$sub_specialchars(P)}),R(Re,"$sub_callouts",function(P){var D=this,ae=C,ie=C;return ae=J(D["$attr?"]("line-comment"))?we("CalloutSourceRxMap")["$[]"](D.$attr("line-comment")):we("CalloutSourceRx"),ie=0,qe(P,"gsub",[ae],function me(){var G,g=me.$$s==null?this:me.$$s,u=C;return g.document==null&&(g.document=C),J((G=Ne["~"])===C?C:G["$[]"](2))?((G=Ne["~"])===C?C:G["$[]"](0)).$sub(we("RS"),""):we("Inline").$new(g,"callout",Ke((G=Ne["~"])===C?C:G["$[]"](4),".")?(ie=y(ie,1)).$to_s():(G=Ne["~"])===C?C:G["$[]"](4),K(["id","attributes"],{id:g.document.$callouts().$read_next_id(),attributes:K(["guard"],{guard:J(u=(G=Ne["~"])===C?C:G["$[]"](1))?u:Ke((G=Ne["~"])===C?C:G["$[]"](3),"--")?["<!--","-->"]:C})})).$convert()},{$$s:D})}),R(Re,"$highlight_source",function(P,D){var ae,ie,me=this,G=C,g=C,u=C,_=C,z=C,S=C,b=C,F=C,H=C,ge=C;return me.document==null&&(me.document=C),me.passthroughs==null&&(me.passthroughs=C),J(G=me.document.$syntax_highlighter())&&J(G["$highlight?"]())?(J(D)&&(ie=me.$extract_callouts(P),ae=Le(ie),P=ae[0]==null?C:ae[0],g=ae[1]==null?C:ae[1]),u=me.document.$attributes(),_=G.$name(),J(S=J(me["$attr?"]("linenums"))?(J(b=u["$[]"](""+_+"-linenums-mode"))?b:"table").$to_sym():C)&&J(dt(z=me.$attr("start",1).$to_i(),1))&&(z=1),J(me["$attr?"]("highlight"))&&(F=me.$resolve_lines_to_highlight(P,me.$attr("highlight"),z)),ie=G.$highlight(me,P,me.$attr("language"),K(["callouts","css_mode","highlight_lines","number_lines","start_line_number","style"],{callouts:g,css_mode:(J(b=u["$[]"](""+_+"-css"))?b:"class").$to_sym(),highlight_lines:F,number_lines:S,start_line_number:z,style:u["$[]"](""+_+"-style")})),ae=Le(ie),H=ae[0]==null?C:ae[0],ge=ae[1]==null?C:ae[1],J(me.passthroughs["$empty?"]())||(H=H.$gsub(we("HighlightedPassSlotRx"),""+we("PASS_START")+"\\1"+we("PASS_END"))),J(g["$nil_or_empty?"]())?H:me.$restore_callouts(H,g,ge)):me.$sub_source(P,D)}),R(Re,"$resolve_lines_to_highlight",function(P,D,ae){var ie=C,me=C;return ae==null&&(ae=C),ie=[],J(D["$include?"](" "))&&(D=D.$delete(" ")),qe(J(D["$include?"](","))?D.$split(","):D.$split(";"),"map",[],function(g){var u,_,z=C,S=C,b=C,F=C,H=C;return g==null&&(g=C),J(g["$start_with?"]("!"))&&(g=g.$slice(1,g.$length()),z=!0),J(S=J(g["$include?"](".."))?"..":J(g["$include?"]("-"))?"-":C)?(_=g.$partition(S),u=Le(_),b=u[0]==null?C:u[0],u[1]==null||u[1],F=u[2]==null?C:u[2],(J(F["$empty?"]())||J(dt(F=F.$to_i(),0)))&&(F=y(P.$count(we("LF")),1)),J(z)?ie=Ze(ie,a.Range.$new(b.$to_i(),F,!1).$to_a()):ie=ie["$|"](a.Range.$new(b.$to_i(),F,!1).$to_a())):J(z)?ie.$delete(g.$to_i()):Ue(ie["$include?"](H=g.$to_i()))?ie["$<<"](H):C}),Ke(me=J(ae)?Ze(ae,1):0,0)||(ie=qe(ie,"map",[],function(g){return g==null&&(g=C),Ze(g,me)})),ie.$sort()},-3),R(Re,"$extract_passthroughs",function(P){var D,ae,ie=this,me=C,G=C,g=C,u=C,_=C;return ie.document==null&&(ie.document=C),ie.passthroughs==null&&(ie.passthroughs=C),me=ie.document.$compat_mode(),G=ie.passthroughs,(J(P["$include?"]("++"))||J(P["$include?"]("$$"))||J(P["$include?"]("ss:")))&&(P=qe(P,"gsub",[we("InlinePassMacroRx")],function z(){var S,b=z.$$s==null?this:z.$$s,F=C,H=C,ge=C,ce=C,Se=C,Be=C,Xe=C,it=C,pt=C;if(J(F=(S=Ne["~"])===C?C:S["$[]"](4))){if(J(me)&&Ke(F,"++"))return(J((S=Ne["~"])===C?C:S["$[]"](2))?""+((S=Ne["~"])===C?C:S["$[]"](1))+"["+((S=Ne["~"])===C?C:S["$[]"](2))+"]"+((S=Ne["~"])===C?C:S["$[]"](3)):""+((S=Ne["~"])===C?C:S["$[]"](1))+((S=Ne["~"])===C?C:S["$[]"](3)))+"++"+b.$extract_passthroughs((S=Ne["~"])===C?C:S["$[]"](5))+"++";if(J(H=(S=Ne["~"])===C?C:S["$[]"](2))){if(J(st(ge=((S=Ne["~"])===C?C:S["$[]"](3)).$length(),0)))return""+((S=Ne["~"])===C?C:S["$[]"](1))+"["+H+"]"+I(we("RS"),Ze(ge,1))+F+((S=Ne["~"])===C?C:S["$[]"](5))+F;Ke((S=Ne["~"])===C?C:S["$[]"](1),we("RS"))?ce="["+H+"]":Ke(F,"++")?Ke(H,"x-")?(Se=!0,Be=K([],{})):J(H["$end_with?"](" x-"))?(Se=!0,Be=b.$parse_quoted_text_attributes(H.$slice(0,Ze(H.$length(),3)))):Be=b.$parse_quoted_text_attributes(H):Be=b.$parse_quoted_text_attributes(H)}else if(J(st(ge=((S=Ne["~"])===C?C:S["$[]"](3)).$length(),0)))return""+I(we("RS"),Ze(ge,1))+F+((S=Ne["~"])===C?C:S["$[]"](5))+F;Xe=Ke(F,"+++")?[]:we("BASIC_SUBS"),J(Be)?J(Se)?G["$[]="](it=G.$size(),K(["text","subs","type","attributes"],{text:(S=Ne["~"])===C?C:S["$[]"](5),subs:we("NORMAL_SUBS"),type:"monospaced",attributes:Be})):G["$[]="](it=G.$size(),K(["text","subs","type","attributes"],{text:(S=Ne["~"])===C?C:S["$[]"](5),subs:Xe,type:"unquoted",attributes:Be})):G["$[]="](it=G.$size(),K(["text","subs"],{text:(S=Ne["~"])===C?C:S["$[]"](5),subs:Xe}))}else{if(Ke((S=Ne["~"])===C?C:S["$[]"](6),we("RS")))return((S=Ne["~"])===C?C:S["$[]"](0)).$slice(1,((S=Ne["~"])===C?C:S["$[]"](0)).$length());J(Xe=(S=Ne["~"])===C?C:S["$[]"](7))?G["$[]="](it=G.$size(),K(["text","subs"],{text:b.$normalize_text((S=Ne["~"])===C?C:S["$[]"](8),C,!0),subs:b.$resolve_pass_subs(Xe)})):G["$[]="](it=G.$size(),K(["text"],{text:b.$normalize_text((S=Ne["~"])===C?C:S["$[]"](8),C,!0)}))}return""+(J(pt=ce)?pt:"")+we("PASS_START")+it+we("PASS_END")},{$$s:ie})),ae=we("InlinePassRx")["$[]"](me),D=Le(ae),g=D[0]==null?C:D[0],u=D[1]==null?C:D[1],_=D[2]==null?C:D[2],(J(P["$include?"](g))||J(u)&&J(P["$include?"](u)))&&(P=qe(P,"gsub",[_],function z(){var S,b=z.$$s==null?this:z.$$s,F=C,H=C,ge=C,ce=C,Se=C,Be=C,Xe=C,it=C,pt=C,at=C,bt=C,kt=C;if(F=(S=Ne["~"])===C?C:S["$[]"](1),H=J(ge=(S=Ne["~"])===C?C:S["$[]"](4))?ge:(S=Ne["~"])===C?C:S["$[]"](3),J((S=Ne["~"])===C?C:S["$[]"](5))&&(ce=!0),Se=(S=Ne["~"])===C?C:S["$[]"](6),Be=(S=Ne["~"])===C?C:S["$[]"](7),Xe=(S=Ne["~"])===C?C:S["$[]"](8),J(me)?it=!0:J(H)&&(Ke(H,"x-")||J(H["$end_with?"](" x-")))&&(it=pt=!0),J(H)){if(J(ce))return""+F+"["+H+"]"+Se.$slice(1,Se.$length());if(Ke(F,we("RS"))){if(J(pt)&&Ke(Be,"`"))return""+F+"["+H+"]"+Se;F="["+H+"]"}else J(pt)?at=Ke(H,"x-")?K([],{}):b.$parse_quoted_text_attributes(H.$slice(0,Ze(H.$length(),3))):at=b.$parse_quoted_text_attributes(H)}else{if(J(ce))return""+F+Se.$slice(1,Se.$length());if(J(me)&&Ke(F,we("RS")))return Se}return J(me)?G["$[]="](bt=G.$size(),K(["text","subs","attributes","type"],{text:Xe,subs:we("BASIC_SUBS"),attributes:at,type:"monospaced"})):J(at)?J(it)?(kt=Ke(Be,"`")?we("BASIC_SUBS"):we("NORMAL_SUBS"),G["$[]="](bt=G.$size(),K(["text","subs","attributes","type"],{text:Xe,subs:kt,attributes:at,type:"monospaced"}))):G["$[]="](bt=G.$size(),K(["text","subs","attributes","type"],{text:Xe,subs:we("BASIC_SUBS"),attributes:at,type:"unquoted"})):G["$[]="](bt=G.$size(),K(["text","subs"],{text:Xe,subs:we("BASIC_SUBS")})),""+F+we("PASS_START")+bt+we("PASS_END")},{$$s:ie})),J(P["$include?"](":"))&&(J(P["$include?"]("stem:"))||J(P["$include?"]("math:")))&&(P=qe(P,"gsub",[we("InlineStemMacroRx")],function z(){var S,b=z.$$s==null?this:z.$$s,F=C,H=C,ge=C,ce=C;return b.document==null&&(b.document=C),J(((S=Ne["~"])===C?C:S["$[]"](0))["$start_with?"](we("RS")))?((S=Ne["~"])===C?C:S["$[]"](0)).$slice(1,((S=Ne["~"])===C?C:S["$[]"](0)).$length()):(Ke(F=((S=Ne["~"])===C?C:S["$[]"](1)).$to_sym(),"stem")&&(F=we("STEM_TYPE_ALIASES")["$[]"](b.document.$attributes()["$[]"]("stem")).$to_sym()),H=(S=Ne["~"])===C?C:S["$[]"](2),ge=b.$normalize_text((S=Ne["~"])===C?C:S["$[]"](3),C,!0),Ke(F,"latexmath")&&J(ge["$start_with?"]("$"))&&J(ge["$end_with?"]("$"))&&(ge=ge.$slice(1,Ze(ge.$length(),2))),H=J(H)?b.$resolve_pass_subs(H):J(b.document["$basebackend?"]("html"))?we("BASIC_SUBS"):C,G["$[]="](ce=G.$size(),K(["text","subs","type"],{text:ge,subs:H,type:F})),""+we("PASS_START")+ce+we("PASS_END"))},{$$s:ie})),P}),R(Re,"$restore_passthroughs",function(P){var D=this,ae=C;return D.passthroughs==null&&(D.passthroughs=C),ae=D.passthroughs,qe(P,"gsub",[we("PassSlotRx")],function ie(){var me,G=ie.$$s==null?this:ie.$$s,g=C,u=C,_=C,z=C,S=C;return J(g=ae["$[]"](((me=Ne["~"])===C?C:me["$[]"](1)).$to_i()))?(u=G.$apply_subs(g["$[]"]("text"),g["$[]"]("subs")),J(_=g["$[]"]("type"))&&(J(z=g["$[]"]("attributes"))&&(S=z["$[]"]("id")),u=we("Inline").$new(G,"quoted",u,K(["type","id","attributes"],{type:_,id:S,attributes:z})).$convert()),J(u["$include?"](we("PASS_START")))?G.$restore_passthroughs(u):u):(G.$logger().$error("unresolved passthrough detected: "+P),"??pass??")},{$$s:D})}),R(Re,"$resolve_subs",function(P,D,ae,ie){var me=this,G=C,g=C,u=C,_=C;return D==null&&(D="block"),ae==null&&(ae=C),ie==null&&(ie=C),J(P["$nil_or_empty?"]())||(G=C,J(P["$include?"](" "))&&(P=P.$delete(" ")),g=we("SubModifierSniffRx")["$match?"](P),qe(P.$split(","),"each",[],function(S){var b=C,F=C,H=C,ge=C,ce=C,Se=C;if(S==null&&(S=C),b=C,J(g)&&(Ke(F=S.$chr(),"+")?(b="append",S=S.$slice(1,S.$length())):Ke(F,"-")?(b="remove",S=S.$slice(1,S.$length())):J(S["$end_with?"]("+"))&&(b="prepend",S=S.$chop())),S=S.$to_sym(),Ke(D,"inline")&&(Ke(S,"verbatim")||Ke(S,"v"))?H=we("BASIC_SUBS"):J(we("SUB_GROUPS")["$key?"](S))?H=we("SUB_GROUPS")["$[]"](S):Ke(D,"inline")&&Ke(S.$length(),1)&&J(we("SUB_HINTS")["$key?"](S))?(ge=we("SUB_HINTS")["$[]"](S),J(ce=we("SUB_GROUPS")["$[]"](ge))?H=ce:H=[ge]):H=[S],J(b))switch(G=J(Se=G)?Se:J(ae)?ae.$drop(0):[],b){case"append":return G=y(G,H);case"prepend":return G=y(H,G);case"remove":return G=Ze(G,H);default:return C}else return G=J(Se=G)?Se:[],G=y(G,H)}),!J(G))?C:(u=G["$&"](we("SUB_OPTIONS")["$[]"](D)),J(Ze(G,u)["$empty?"]())||(_=Ze(G,u),me.$logger().$warn("invalid substitution type"+(J(st(_.$size(),1))?"s":"")+(J(ie)?" for ":"")+ie+": "+_.$join(", "))),u)},-2),R(Re,"$resolve_block_subs",function(P,D,ae){var ie=this;return ie.$resolve_subs(P,"block",D,ae)}),R(Re,"$resolve_pass_subs",function(P){var D=this;return D.$resolve_subs(P,"inline",C,"passthrough macro")}),R(Re,"$expand_subs",function(P,D){var ae=this,ie=C,me=C,G=C;return D==null&&(D=C),Ve(rt("Symbol"),ie=P)?Ke(P,"none")?C:J(me=we("SUB_GROUPS")["$[]"](P))?me:[P]:Ve(rt("Array"),ie)?(G=[],qe(P,"each",[],function(u){var _=C;return u==null&&(u=C),Ke(u,"none")?C:J(_=we("SUB_GROUPS")["$[]"](u))?G=y(G,_):G["$<<"](u)}),J(G["$empty?"]())?C:G):ae.$resolve_subs(P,"inline",C,D)},-2),R(Re,"$commit_subs",function(){var P=this,D=C,ae=C,ie=C,me=C,G=C;if(P.default_subs==null&&(P.default_subs=C),P.content_model==null&&(P.content_model=C),P.context==null&&(P.context=C),P.subs==null&&(P.subs=C),P.attributes==null&&(P.attributes=C),P.document==null&&(P.document=C),P.style==null&&(P.style=C),!J(D=P.default_subs))switch(P.content_model){case"simple":D=we("NORMAL_SUBS");break;case"verbatim":D=Ke(P.context,"verse")?we("NORMAL_SUBS"):we("VERBATIM_SUBS");break;case"raw":D=Ke(P.context,"stem")?we("BASIC_SUBS"):we("NO_SUBS");break;default:return P.subs}return J(ae=P.attributes["$[]"]("subs"))?P.subs=J(ie=P.$resolve_block_subs(ae,D,P.context))?ie:[]:P.subs=D.$drop(0),Ke(P.context,"listing")&&Ke(P.style,"source")&&J(G=P.document.$syntax_highlighter())&&J(G["$highlight?"]())&&J(me=P.subs.$index("specialcharacters"))&&P.subs["$[]="](me,"highlight"),C}),R(Re,"$parse_attributes",function(P,D,ae){var ie=this,me=C,G=C;return ie.document==null&&(ie.document=C),D==null&&(D=[]),ae==null&&(ae=K([],{})),J(J(P)?P["$empty?"]():!0)?K([],{}):(J(ae["$[]"]("unescape_input"))&&(P=ie.$normalize_text(P,!0,!0)),J(ae["$[]"]("sub_input"))&&J(P["$include?"](we("ATTR_REF_HEAD")))&&(P=ie.document.$sub_attributes(P)),J(ae["$[]"]("sub_result"))&&(me=ie),J(G=ae["$[]"]("into"))?we("AttributeList").$new(P,me).$parse_into(G,D):we("AttributeList").$new(P,me).$parse(D))},-2),Re.$private(),R(Re,"$extract_attributes_from_text",function(P,D){var ae=this,ie=C,me=C,G=C;return D==null&&(D=C),ie=J(P["$include?"](we("LF")))?P.$tr(we("LF")," "):P,J(me=(G=we("AttributeList").$new(ie,ae).$parse())["$[]"](1))?Ke(me,ie)?[P,G.$clear()]:[me,G]:[D,G]},-2),R(Re,"$extract_callouts",function(P){var D=this,ae=C,ie=C,me=C,G=C,g=C;return ae=K([],{}),ie=me=0,G=C,g=J(D["$attr?"]("line-comment"))?we("CalloutExtractRxMap")["$[]"](D.$attr("line-comment")):we("CalloutExtractRx"),P=qe(P.$split(we("LF"),-1),"map",[],function(_){return _==null&&(_=C),me=y(me,1),qe(_,"gsub",[g],function(){var S,b=C;return J((S=Ne["~"])===C?C:S["$[]"](2))?((S=Ne["~"])===C?C:S["$[]"](0)).$sub(we("RS"),""):((J(b=ae["$[]"](me))?b:(S=[me,[]],qe(ae,"[]=",S),S[S.length-1]))["$<<"]([J(b=(S=Ne["~"])===C?C:S["$[]"](1))?b:Ke((S=Ne["~"])===C?C:S["$[]"](3),"--")?["<!--","-->"]:C,Ke((S=Ne["~"])===C?C:S["$[]"](4),".")?(ie=y(ie,1)).$to_s():(S=Ne["~"])===C?C:S["$[]"](4)]),G=me,"")})}).$join(we("LF")),J(G)?Ke(G,me)&&(P=""+P+we("LF")):ae=C,[P,ae]}),R(Re,"$restore_callouts",function(P,D,ae){var ie=this,me=C,G=C;return ae==null&&(ae=C),J(ae)?(me=P.$slice(0,ae),P=P.$slice(ae,P.$length())):me="",G=0,y(me,qe(P.$split(we("LF"),-1),"map",[],function g(u){var _,z,S=g.$$s==null?this:g.$$s,b=C,F=C,H=C;return S.document==null&&(S.document=C),u==null&&(u=C),J(b=D.$delete(G=y(G,1)))?Ke(b.$size(),1)?(z=b["$[]"](0),_=Le(z),F=_[0]==null?C:_[0],H=_[1]==null?C:_[1],""+u+we("Inline").$new(S,"callout",H,K(["id","attributes"],{id:S.document.$callouts().$read_next_id(),attributes:K(["guard"],{guard:F})})).$convert()):""+u+qe(b,"map",[],function ge(ce,Se){var Be=ge.$$s==null?this:ge.$$s;return Be.document==null&&(Be.document=C),ce==null&&(ce=C),Se==null&&(Se=C),we("Inline").$new(Be,"callout",Se,K(["id","attributes"],{id:Be.document.$callouts().$read_next_id(),attributes:K(["guard"],{guard:ce})})).$convert()},{$$s:S}).$join(" "):u},{$$s:ie}).$join(we("LF")))},-3),R(Re,"$convert_quoted_text",function(P,D,ae){var ie=this,me=C,G=C,g=C,u=C,_=C;if(J(P["$[]"](0)["$start_with?"](we("RS"))))if(Ke(ae,"constrained")&&J(me=P["$[]"](2)))G="["+me+"]";else return P["$[]"](0).$slice(1,P["$[]"](0).$length());return Ke(ae,"constrained")?J(G)?""+G+we("Inline").$new(ie,"quoted",P["$[]"](3),K(["type"],{type:D})).$convert():(J(g=P["$[]"](2))&&(u=(_=ie.$parse_quoted_text_attributes(g))["$[]"]("id"),Ke(D,"mark")&&(D="unquoted")),""+P["$[]"](1)+we("Inline").$new(ie,"quoted",P["$[]"](3),K(["type","id","attributes"],{type:D,id:u,attributes:_})).$convert()):(J(g=P["$[]"](1))&&(u=(_=ie.$parse_quoted_text_attributes(g))["$[]"]("id"),Ke(D,"mark")&&(D="unquoted")),we("Inline").$new(ie,"quoted",P["$[]"](2),K(["type","id","attributes"],{type:D,id:u,attributes:_})).$convert())}),R(Re,"$do_replacement",function(P,D,ae){var ie=C;if(J((ie=P["$[]"](0))["$include?"](we("RS"))))return ie.$sub(we("RS"),"");switch(ae){case"none":return D;case"bounding":return y(y(P["$[]"](1),D),P["$[]"](2));default:return y(P["$[]"](1),D)}}),R(Re,"$parse_quoted_text_attributes",function(P){var D,ae,ie=this,me=C,G=C,g=C,u=C,_=C;return J(P["$include?"](we("ATTR_REF_HEAD")))&&(P=ie.$sub_attributes(P)),J(P["$include?"](","))&&(P=P.$slice(0,P.$index(","))),J((P=P.$strip())["$empty?"]())?K([],{}):J(P["$start_with?"](".","#"))&&J(we("Compliance").$shorthand_property_syntax())?(ae=P.$partition("#"),D=Le(ae),me=D[0]==null?C:D[0],D[1]==null||D[1],G=D[2]==null?C:D[2],g=K([],{}),J(G["$empty?"]())?J(st(me.$length(),1))&&g["$[]="]("role",me.$tr("."," ").$lstrip()):(ae=G.$partition("."),D=Le(ae),u=D[0]==null?C:D[0],D[1]==null||D[1],_=D[2]==null?C:D[2],J(u["$empty?"]())||g["$[]="]("id",u),J(_["$empty?"]())?J(st(me.$length(),1))&&g["$[]="]("role",me.$tr("."," ").$lstrip()):J(st(me.$length(),1))?g["$[]="]("role",y(y(me,"."),_).$tr("."," ").$lstrip()):g["$[]="]("role",_.$tr("."," "))),g):K(["role"],{role:P})}),R(Re,"$normalize_text",function(P,D,ae){return D==null&&(D=C),ae==null&&(ae=C),J(P["$empty?"]())||(J(D)&&(P=P.$strip().$tr(we("LF")," ")),J(ae)&&J(P["$include?"](we("R_SB")))&&(P=P.$gsub(we("ESC_R_SB"),we("R_SB")))),P},-2),R(Re,"$split_simple_csv",function(P){var D=C,ae=C,ie=C;return J(P["$empty?"]())?[]:J(P["$include?"]('"'))?(D=[],ae="",ie=C,qe(P,"each_char",[],function(G){switch(G==null&&(G=C),G){case",":return J(ie)?ae=y(ae,G):(D["$<<"](ae.$strip()),ae="");case'"':return ie=ie["$!"]();default:return ae=y(ae,G)}}),D["$<<"](ae.$strip())):qe(P.$split(","),"map",[],function(G){return G==null&&(G=C),G.$strip()})})}(He[0],He)}(tt[0],tt)},Opal.modules["asciidoctor/version"]=function(a){var ue=a.module,se=a.const_set,K=[];return a.nil,function(ye,y){var X=ue(ye,"Asciidoctor"),Ue=[X].concat(y);return se(Ue[0],"VERSION","2.0.20")}(K[0],K)},Opal.modules["asciidoctor/abstract_node"]=function(a){var ue=a.module,se=a.klass,K=a.hash2,ye=a.eqeq,y=a.truthy,X=a.def,Ue=a.send,J=a.rb_minus,qe=a.eqeqeq,R=a.rb_lt,et=a.not,Ne=a.to_ary,Ke=[],Le=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(ht,Ve){var st=ue(ht,"Asciidoctor"),Ye=[st].concat(Ve);return function(Ze,dt,I){var tt=se(Ze,dt,"AbstractNode"),C=[tt].concat(I),rt=a.$r(C),lt=tt.$$prototype;return lt.document=lt.attributes=lt.parent=Le,tt.$include(rt("Logging")),tt.$include(rt("Substitutors")),tt.$attr_reader("attributes"),tt.$attr_reader("context"),tt.$attr_reader("document"),tt.$attr_accessor("id"),tt.$attr_reader("node_name"),tt.$attr_reader("parent"),X(tt,"$initialize",function(L,He,ke){var Ie=this,Re=Le;return ke==null&&(ke=K([],{})),ye(He,"document")?Ie.document=Ie:y(L)&&(Ie.document=(Ie.parent=L).$document()),Ie.node_name=(Ie.context=He).$to_s(),Ie.attributes=y(Re=ke["$[]"]("attributes"))?Re.$merge():K([],{}),Ie.passthroughs=[]},-3),X(tt,"$block?",function(){var L=this;return L.$raise(Pe("NotImplementedError"))}),X(tt,"$inline?",function(){var L=this;return L.$raise(Pe("NotImplementedError"))}),X(tt,"$converter",function(){var L=this;return L.document.$converter()}),X(tt,"$parent=",function(L){var He,ke=this;return He=[L,L.$document()],ke.parent=He[0],ke.document=He[1],He}),X(tt,"$attr",function(L,He,ke){var Ie=this,Re=Le,$e=Le,we=Le,ee=Le;return He==null&&(He=Le),ke==null&&(ke=Le),y(Re=Ie.attributes["$[]"](L.$to_s()))?Re:y($e=y(we=y(ee=ke)?Ie.parent:ee)?Ie.document.$attributes()["$[]"]((ye(ke,!0)?L:ke).$to_s()):we)?$e:He},-2),X(tt,"$attr?",function(L,He,ke){var Ie=this,Re=Le;return He==null&&(He=Le),ke==null&&(ke=Le),y(He)?He["$=="](y(Re=Ie.attributes["$[]"](L.$to_s()))?Re:y(ke)&&y(Ie.parent)?Ie.document.$attributes()["$[]"]((ye(ke,!0)?L:ke).$to_s()):Le):y(Re=Ie.attributes["$key?"](L.$to_s()))?Re:y(ke)&&y(Ie.parent)?Ie.document.$attributes()["$key?"]((ye(ke,!0)?L:ke).$to_s()):!1},-2),X(tt,"$set_attr",function(L,He,ke){var Ie=this;return He==null&&(He=""),ke==null&&(ke=!0),ye(ke,!1)&&y(Ie.attributes["$key?"](L))?!1:(Ie.attributes["$[]="](L,He),!0)},-2),X(tt,"$remove_attr",function(L){var He=this;return He.attributes.$delete(L)}),X(tt,"$option?",function(L){var He=this;return!!y(He.attributes["$[]"](""+L+"-option"))}),X(tt,"$set_option",function(L){var He=this;return He.attributes["$[]="](""+L+"-option",""),Le}),X(tt,"$enabled_options",function(){var L=this;return Ue(Pe("Set").$new(),"tap",[],function He(ke){var Ie=He.$$s==null?this:He.$$s;return Ie.attributes==null&&(Ie.attributes=Le),ke==null&&(ke=Le),Ue(Ie.attributes,"each_key",[],function($e){return $e==null&&($e=Le),y($e.$to_s()["$end_with?"]("-option"))?ke["$<<"]($e.$slice(0,J($e.$length(),7))):Le})},{$$s:L})}),X(tt,"$update_attributes",function(L){var He=this;return He.attributes.$update(L)}),X(tt,"$role",function(){var L=this;return L.attributes["$[]"]("role")}),X(tt,"$roles",function(){var L=this,He=Le;return y(He=L.attributes["$[]"]("role"))?He.$split():[]}),X(tt,"$role?",function(L){var He=this;return L==null&&(L=Le),y(L)?L["$=="](He.attributes["$[]"]("role")):He.attributes["$key?"]("role")},-1),X(tt,"$has_role?",function(L){var He=this,ke=Le;return y(ke=He.attributes["$[]"]("role"))?(" "+ke+" ")["$include?"](" "+L+" "):!1}),X(tt,"$role=",function(L){var He,ke=this;return He=["role",qe(Pe("Array"),L)?L.$join(" "):L],Ue(ke.attributes,"[]=",He),He[He.length-1]}),X(tt,"$add_role",function(L){var He=this,ke=Le;return y(ke=He.attributes["$[]"]("role"))?y((" "+ke+" ")["$include?"](" "+L+" "))?!1:(He.attributes["$[]="]("role",""+ke+" "+L),!0):(He.attributes["$[]="]("role",L),!0)}),X(tt,"$remove_role",function(L){var He=this,ke=Le;return y(ke=He.attributes["$[]"]("role"))&&y((ke=ke.$split()).$delete(L))?(y(ke["$empty?"]())?He.attributes.$delete("role"):He.attributes["$[]="]("role",ke.$join(" ")),!0):!1}),X(tt,"$reftext",function(){var L=this,He=Le;return y(He=L.attributes["$[]"]("reftext"))?L.$apply_reftext_subs(He):Le}),X(tt,"$reftext?",function(){var L=this;return L.attributes["$key?"]("reftext")}),X(tt,"$icon_uri",function(L){var He=this,ke=Le;return y(He["$attr?"]("icon"))?(ke=He.$attr("icon"),y(rt("Helpers")["$extname?"](ke))||(ke=""+ke+"."+He.document.$attr("icontype","png"))):ke=""+L+"."+He.document.$attr("icontype","png"),He.$image_uri(ke,"iconsdir")}),X(tt,"$image_uri",function(L,He){var ke=this,Ie=Le,Re=Le;return He==null&&(He="imagesdir"),y(R((Ie=ke.document).$safe(),Pe(rt("SafeMode"),"SECURE")))&&y(Ie["$attr?"]("data-uri"))?y(rt("Helpers")["$uriish?"](L))&&y(L=rt("Helpers").$encode_spaces_in_uri(L))||y(He)&&y(Re=Ie.$attr(He))&&y(rt("Helpers")["$uriish?"](Re))&&y(L=ke.$normalize_web_path(L,Re,!1))?y(Ie["$attr?"]("allow-uri-read"))?ke.$generate_data_uri_from_uri(L,Ie["$attr?"]("cache-uri")):L:ke.$generate_data_uri(L,He):ke.$normalize_web_path(L,y(He)?Ie.$attr(He):Le)},-2),X(tt,"$media_uri",function(L,He){var ke=this;return He==null&&(He="imagesdir"),ke.$normalize_web_path(L,y(He)?ke.document.$attr(He):Le)},-2),X(tt,"$generate_data_uri",function(L,He){var ke=this,Ie=Le,Re=Le,$e=Le;return He==null&&(He=Le),y(Ie=rt("Helpers").$extname(L,Le))?Re=ye(Ie,".svg")?"image/svg+xml":"image/"+Ie.$slice(1,Ie.$length()):Re="application/octet-stream",y(He)?$e=ke.$normalize_system_path(L,ke.document.$attr(He),Le,K(["target_name"],{target_name:"image"})):$e=ke.$normalize_system_path(L),y(Pe("File")["$readable?"]($e))?"data:"+Re+";base64,"+Pe("Base64").$strict_encode64(Pe("File").$binread($e)):(ke.$logger().$warn("image to embed not found or not readable: "+$e),"data:"+Re+";base64,")},-2),X(tt,"$generate_data_uri_from_uri",function(L,He){var ke,Ie,Re=this,$e=Le,we=Le;He==null&&(He=!1),y(He)?rt("Helpers").$require_library("open-uri/cached","open-uri-cached"):et(rt("RUBY_ENGINE_OPAL"))&&Pe("OpenURI");try{return Ie=Ue(Pe("OpenURI"),"open_uri",[L,rt("URI_READ_MODE")],function(P){return P==null&&(P=Le),[P.$content_type(),P.$read()]}),ke=Ne(Ie),$e=ke[0]==null?Le:ke[0],we=ke[1]==null?Le:ke[1],"data:"+$e+";base64,"+Pe("Base64").$strict_encode64(we)}catch(ee){if(a.rescue(ee,[rt("StandardError")]))try{return Re.$logger().$warn("could not retrieve image data from URI: "+L),L}finally{a.pop_exception()}else throw ee}},-2),X(tt,"$normalize_asset_path",function(L,He,ke){var Ie=this;return He==null&&(He="path"),ke==null&&(ke=!0),Ie.$normalize_system_path(L,Ie.document.$base_dir(),Le,K(["target_name","recover"],{target_name:He,recover:ke}))},-2),X(tt,"$normalize_system_path",function(L,He,ke,Ie){var Re=this,$e=Le,we=Le;return He==null&&(He=Le),ke==null&&(ke=Le),Ie==null&&(Ie=K([],{})),y(R(($e=Re.document).$safe(),Pe(rt("SafeMode"),"SAFE")))?y(He)?y($e.$path_resolver()["$root?"](He))||(He=Pe("File").$join($e.$base_dir(),He)):He=$e.$base_dir():(He=y(we=He)?we:$e.$base_dir(),ke=y(we=ke)?we:$e.$base_dir()),$e.$path_resolver().$system_path(L,He,ke,Ie)},-2),X(tt,"$normalize_web_path",function(L,He,ke){var Ie=this;return He==null&&(He=Le),ke==null&&(ke=!0),y(ke)&&y(rt("Helpers")["$uriish?"](L))?rt("Helpers").$encode_spaces_in_uri(L):Ie.document.$path_resolver().$web_path(L,He)},-2),X(tt,"$read_asset",function(L,He){var ke=this,Ie=Le;return He==null&&(He=K([],{})),qe(Pe("Hash"),He)||(He=K(["warn_on_failure"],{warn_on_failure:He["$!="](!1)})),y(Pe("File")["$readable?"](L))?y(He["$[]"]("normalize"))?rt("Helpers").$prepare_source_string(Pe("File").$read(L,K(["mode"],{mode:rt("FILE_READ_MODE")}))).$join(rt("LF")):Pe("File").$read(L,K(["mode"],{mode:rt("FILE_READ_MODE")})):(y(He["$[]"]("warn_on_failure"))&&ke.$logger().$warn(""+(y(Ie=ke.$attr("docfile"))?Ie:"<stdin>")+": "+(y(Ie=He["$[]"]("label"))?Ie:"file")+" does not exist or cannot be read: "+L),Le)},-2),X(tt,"$read_contents",function(L,He){var ke=this,Ie=Le,Re=Le,$e=Le,we=Le;if(He==null&&(He=K([],{})),Ie=ke.document,y(rt("Helpers")["$uriish?"](L))||y(Re=He["$[]"]("start"))&&y(rt("Helpers")["$uriish?"](Re))&&y(L=Ie.$path_resolver().$web_path(L,Re)))if(y(Ie["$attr?"]("allow-uri-read"))){y(Ie["$attr?"]("cache-uri"))&&rt("Helpers").$require_library("open-uri/cached","open-uri-cached");try{y(He["$[]"]("normalize"))?$e=rt("Helpers").$prepare_source_string(Ue(Pe("OpenURI"),"open_uri",[L,rt("URI_READ_MODE")],function(P){return P==null&&(P=Le),P.$read()})).$join(rt("LF")):$e=Ue(Pe("OpenURI"),"open_uri",[L,rt("URI_READ_MODE")],function(P){return P==null&&(P=Le),P.$read()})}catch(ee){if(a.rescue(ee,[rt("StandardError")]))try{y(He.$fetch("warn_on_failure",!0))&&ke.$logger().$warn("could not retrieve contents of "+(y(we=He["$[]"]("label"))?we:"asset")+" at URI: "+L)}finally{a.pop_exception()}else throw ee}}else y(He.$fetch("warn_on_failure",!0))&&ke.$logger().$warn("cannot retrieve contents of "+(y(we=He["$[]"]("label"))?we:"asset")+" at URI: "+L+" (allow-uri-read attribute not enabled)");else L=ke.$normalize_system_path(L,He["$[]"]("start"),Le,K(["target_name"],{target_name:y(we=He["$[]"]("label"))?we:"asset"})),$e=ke.$read_asset(L,K(["normalize","warn_on_failure","label"],{normalize:He["$[]"]("normalize"),warn_on_failure:He.$fetch("warn_on_failure",!0),label:He["$[]"]("label")}));return y($e)&&y(He["$[]"]("warn_if_empty"))&&y($e["$empty?"]())&&ke.$logger().$warn("contents of "+(y(we=He["$[]"]("label"))?we:"asset")+" is empty: "+L),$e},-2),X(tt,"$is_uri?",function(L){return rt("Helpers")["$uriish?"](L)})}(Ye[0],null,Ye)}(Ke[0],Ke)},Opal.modules["asciidoctor/abstract_block"]=function(a){var ue=a.module,se=a.klass,K=a.hash2,ye=a.send2,y=a.find_super,X=a.eqeq,Ue=a.eqeqeq,J=a.def,qe=a.return_val,R=a.truthy,et=a.alias,Ne=a.send,Ke=a.rb_plus,Le=a.not,Pe=a.neqeq,ht=[],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(Ye,Ze){var dt=ue(Ye,"Asciidoctor"),I=[dt].concat(Ze),tt=a.$r(I);return function(C,rt,lt){var Z=se(C,rt,"AbstractBlock"),L=[Z].concat(lt),He=a.$r(L),ke=Z.$$prototype;return ke.source_location=ke.document=ke.attributes=ke.blocks=ke.numeral=ke.context=ke.parent=ke.caption=ke.style=ke.converted_title=ke.title=ke.subs=ke.next_section_index=ke.next_section_ordinal=ke.id=ke.header=Ve,Z.$attr_reader("blocks"),Z.$attr_writer("caption"),Z.$attr_accessor("content_model"),Z.$attr_accessor("level"),Z.$attr_accessor("numeral"),Z.$attr_accessor("source_location"),Z.$attr_accessor("style"),Z.$attr_reader("subs"),J(Z,"$initialize",function Ie(Re,$e,we){var ee=Ie.$$p||Ve,P=this;return Ie.$$p=null,we==null&&(we=K([],{})),ye(P,y(P,"initialize",Ie,!1,!0),"initialize",[Re,$e,we],ee),P.content_model="compound",P.blocks=[],P.subs=[],P.id=P.title=P.caption=P.numeral=P.style=P.default_subs=P.source_location=Ve,X($e,"document")||X($e,"section")?(P.level=P.next_section_index=0,P.next_section_ordinal=1):Ue(He("AbstractBlock"),Re)?P.level=Re.$level():P.level=Ve},-3),J(Z,"$block?",qe(!0)),J(Z,"$inline?",qe(!1)),J(Z,"$file",function(){var Re=this,$e=Ve;return R($e=Re.source_location)?Re.source_location.$file():$e}),J(Z,"$lineno",function(){var Re=this,$e=Ve;return R($e=Re.source_location)?Re.source_location.$lineno():$e}),J(Z,"$convert",function(){var Re=this;return Re.document.$playback_attributes(Re.attributes),Re.$converter().$convert(Re)}),et(Z,"render","convert"),J(Z,"$content",function(){var Re=this;return Ne(Re.blocks,"map",[],function(we){return we==null&&(we=Ve),we.$convert()}).$join(He("LF"))}),J(Z,"$context=",function(Re){var $e=this;return $e.node_name=($e.context=Re).$to_s()}),J(Z,"$<<",function(Re){var $e=this;return X(Re.$parent(),$e)||Re["$parent="]($e),$e.blocks["$<<"](Re),$e}),et(Z,"append","<<"),J(Z,"$blocks?",function(){var Re=this;return!R(Re.blocks["$empty?"]())}),J(Z,"$sections?",qe(!1)),J(Z,"$number",function(){var Re=this;try{return Re.$Integer(Re.numeral)}catch($e){if(a.rescue($e,[He("StandardError")]))try{return Re.numeral}finally{a.pop_exception()}else throw $e}}),J(Z,"$number=",function(Re){var $e=this;return $e.numeral=Re.$to_s()}),J(Z,"$find_by",function Ie(Re){var $e=Ie.$$p||Ve,we=this,ee=Ve;Ie.$$p=null,Re==null&&(Re=K([],{}));try{return Ne(we,"find_by_internal",[Re,ee=[]],$e.$to_proc())}catch(P){if(a.rescue(P,[st("StopIteration")]))try{return ee}finally{a.pop_exception()}else throw P}},-1),et(Z,"query","find_by"),J(Z,"$next_adjacent_block",function(){var Re=this,$e=Ve,we=Ve;return X(Re.context,"document")?Ve:X(($e=Re.parent).$context(),"dlist")&&X(Re.context,"list_item")?R(we=$e.$items()["$[]"](Ke(Ne($e.$items(),"find_index",[],function ee(P,D){var ae=ee.$$s==null?this:ee.$$s,ie=Ve;return P==null&&(P=Ve),D==null&&(D=Ve),R(ie=P["$include?"](ae))?ie:D["$=="](ae)},{$$s:Re}),1)))?we:$e.$next_adjacent_block():R(we=$e.$blocks()["$[]"](Ke($e.$blocks().$find_index(Re),1)))?we:$e.$next_adjacent_block()}),J(Z,"$sections",function(){var Re=this;return Ne(Re.blocks,"select",[],function(we){return we==null&&(we=Ve),we.$context()["$=="]("section")})}),J(Z,"$alt",function(){var Re=this,$e=Ve;return R($e=Re.attributes["$[]"]("alt"))?X($e,Re.attributes["$[]"]("default-alt"))?Re.$sub_specialchars($e):($e=Re.$sub_specialchars($e),R(He("ReplaceableTextRx")["$match?"]($e))?Re.$sub_replacements($e):$e):""}),J(Z,"$caption",function(){var Re=this;return X(Re.context,"admonition")?Re.attributes["$[]"]("textlabel"):Re.caption}),J(Z,"$captioned_title",function(){var Re=this;return""+Re.caption+Re.$title()}),J(Z,"$list_marker_keyword",function(Re){var $e=this,we=Ve;return Re==null&&(Re=Ve),He("ORDERED_LIST_KEYWORDS")["$[]"](R(we=Re)?we:$e.style)},-1),J(Z,"$title",function(){var Re=this,$e=Ve,we=Ve;return Re.converted_title=R($e=Re.converted_title)?$e:R(we=Re.title)?Re.$apply_title_subs(Re.title):we}),J(Z,"$title?",function(){var Re=this;return!!R(Re.title)}),J(Z,"$title=",function(Re){var $e=this;return $e.converted_title=Ve,$e.title=Re}),J(Z,"$sub?",function(Re){var $e=this;return $e.subs["$include?"](Re)}),J(Z,"$remove_sub",function(Re){var $e=this;return $e.subs.$delete(Re),Ve}),J(Z,"$xreftext",function(Re){var $e=this,we=Ve,ee=Ve,P=Ve,D=Ve;if(Re==null&&(Re=Ve),R(we=$e.$reftext())&&Le(we["$empty?"]()))return we;if(R(Re)&&R($e.title)&&Le($e.caption["$nil_or_empty?"]()))switch(Re){case"full":return ee=$e.$sub_placeholder($e.$sub_quotes(R($e.document.$compat_mode())?"``%s''":'"`%s`"'),$e.$title()),R($e.numeral)&&R(D=He("CAPTION_ATTRIBUTE_NAMES")["$[]"]($e.context))&&R(P=$e.document.$attributes()["$[]"](D))?""+P+" "+$e.numeral+", "+ee:""+$e.caption.$chomp(". ")+", "+ee;case"short":return R($e.numeral)&&R(D=He("CAPTION_ATTRIBUTE_NAMES")["$[]"]($e.context))&&R(P=$e.document.$attributes()["$[]"](D))?""+P+" "+$e.numeral:$e.caption.$chomp(". ");default:return $e.$title()}else return $e.$title()},-1),J(Z,"$assign_caption",function(Re,$e){var we=this,ee=Ve,P=Ve,D=Ve;return $e==null&&($e=we.context),R(we.caption)||Le(we.title)||R(we.caption=R(ee=Re)?ee:we.document.$attributes()["$[]"]("caption"))||R(D=He("CAPTION_ATTRIBUTE_NAMES")["$[]"]($e))&&R(P=we.document.$attributes()["$[]"](D))&&(we.caption=""+P+" "+(we.numeral=we.document.$increment_and_store_counter(""+$e+"-number",we))+". "),Ve},-2),J(Z,"$assign_numeral",function(Re){var $e,we=this,ee=Ve,P=Ve,D=Ve;return we.next_section_index=Ke(($e=[we.next_section_index],Ne(Re,"index=",$e),$e[$e.length-1]),1),R(ee=Re.$numbered())&&(X(P=Re.$sectname(),"appendix")?(Re["$numeral="](we.document.$counter("appendix-number","A")),Re["$caption="](R(D=we.document.$attributes()["$[]"]("appendix-caption"))?""+D+" "+Re.$numeral()+": ":""+Re.$numeral()+". ")):X(P,"chapter")||X(ee,"chapter")?Re["$numeral="](we.document.$counter("chapter-number",1).$to_s()):(Re["$numeral="](X(P,"part")?He("Helpers").$int_to_roman(we.next_section_ordinal):we.next_section_ordinal.$to_s()),we.next_section_ordinal=Ke(we.next_section_ordinal,1))),Ve}),J(Z,"$reindex_sections",function(){var Re=this;return Re.next_section_index=0,Re.next_section_ordinal=1,Ne(Re.blocks,"each",[],function $e(we){var ee=$e.$$s==null?this:$e.$$s;return we==null&&(we=Ve),X(we.$context(),"section")?(ee.$assign_numeral(we),we.$reindex_sections()):Ve},{$$s:Re})}),Z.$protected(),J(Z,"$find_by_internal",function Ie(Re,$e){var we=Ie.$$p||Ve,ee=this,P=Ve,D=Ve,ae=Ve,ie=Ve,me=Ve,G=Ve;if(Ie.$$p=null,Re==null&&(Re=K([],{})),$e==null&&($e=[]),(R(ie=R(me=Re["$[]"]("context"))?Ve:!0)||X(me,ee.context))&&(Le(ae=Re["$[]"]("style"))||X(ae,ee.style))&&(Le(D=Re["$[]"]("role"))||R(ee["$has_role?"](D)))&&(Le(P=Re["$[]"]("id"))||X(P,ee.id)))if(we!==Ve)if(R(G=a.yield1(we,ee)))switch(G){case"prune":return $e["$<<"](ee),R(P)&&ee.$raise(st("StopIteration")),$e;case"reject":return R(P)&&ee.$raise(st("StopIteration")),$e;case"stop":ee.$raise(st("StopIteration"));break;default:$e["$<<"](ee),R(P)&&ee.$raise(st("StopIteration"))}else R(P)&&ee.$raise(st("StopIteration"));else $e["$<<"](ee),R(P)&&ee.$raise(st("StopIteration"));switch(ee.context){case"document":X(me,"document")||(R(ee["$header?"]())&&(R(ie)||X(me,"section"))&&Ne(ee.header,"find_by_internal",[Re,$e],we.$to_proc()),Ne(ee.blocks,"each",[],function(u){return u==null&&(u=Ve),X(me,"section")&&Pe(u.$context(),"section")?Ve:Ne(u,"find_by_internal",[Re,$e],we.$to_proc())}));break;case"dlist":(R(ie)||Pe(me,"section"))&&Ne(ee.blocks.$flatten(),"each",[],function(u){return u==null&&(u=Ve),R(u)?Ne(u,"find_by_internal",[Re,$e],we.$to_proc()):Ve});break;case"table":R(Re["$[]"]("traverse_documents"))?(Ne(ee.$rows().$head(),"each",[],function(u){return u==null&&(u=Ve),Ne(u,"each",[],function(z){return z==null&&(z=Ve),Ne(z,"find_by_internal",[Re,$e],we.$to_proc())})}),X(me,"inner_document")&&(Re=Re.$merge(K(["context"],{context:"document"}))),Ne(Ke(ee.$rows().$body(),ee.$rows().$foot()),"each",[],function(u){return u==null&&(u=Ve),Ne(u,"each",[],function(z){return z==null&&(z=Ve),Ne(z,"find_by_internal",[Re,$e],we.$to_proc()),X(z.$style(),"asciidoc")?Ne(z.$inner_document(),"find_by_internal",[Re,$e],we.$to_proc()):Ve})})):Ne(Ke(Ke(ee.$rows().$head(),ee.$rows().$body()),ee.$rows().$foot()),"each",[],function(u){return u==null&&(u=Ve),Ne(u,"each",[],function(z){return z==null&&(z=Ve),Ne(z,"find_by_internal",[Re,$e],we.$to_proc())})});break;default:Ne(ee.blocks,"each",[],function(u){return u==null&&(u=Ve),X(me,"section")&&Pe(u.$context(),"section")?Ve:Ne(u,"find_by_internal",[Re,$e],we.$to_proc())})}return $e},-1)}(I[0],tt("AbstractNode"),I)}(ht[0],ht)},Opal.modules["asciidoctor/attribute_list"]=function(a){var ue=a.module,se=a.klass,K=a.const_set,ye=a.hash,y=a.regexp,X=a.hash2,Ue=a.def,J=a.truthy,qe=a.rb_plus,R=a.send,et=a.defs,Ne=a.eqeqeq,Ke=a.eqeq,Le=a.rb_times,Pe=[],ht=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,Ye){var Ze=ue(st,"Asciidoctor"),dt=[Ze].concat(Ye);return function(I,tt,C){var rt=se(I,tt,"AttributeList"),lt=[rt].concat(C),Z=a.$r(lt),L=rt.$$prototype;return L.attributes=L.scanner=L.delimiter=L.block=L.delimiter_skip_pattern=L.delimiter_boundary_pattern=ht,K(lt[0],"APOS","'"),K(lt[0],"BACKSLASH","\\"),K(lt[0],"QUOT",'"'),K(lt[0],"BoundaryRx",ye(Z("QUOT"),/.*?[^\\](?=")/,Z("APOS"),/.*?[^\\](?=')/,",",/.*?(?=[ \t]*(,|$))/)),K(lt[0],"EscapedQuotes",ye(Z("QUOT"),'\\"',Z("APOS"),"\\'")),K(lt[0],"NameRx",y([Z("CG_WORD"),"[",Z("CC_WORD"),"\\-.]*"])),K(lt[0],"BlankRx",/[ \t]+/),K(lt[0],"SkipRx",X([","],{",":/[ \t]*(,|$)/})),Ue(rt,"$initialize",function(ke,Ie,Re){var $e=this;return Ie==null&&(Ie=ht),Re==null&&(Re=","),$e.scanner=Ve("StringScanner").$new(ke),$e.block=Ie,$e.delimiter=Re,$e.delimiter_skip_pattern=Z("SkipRx")["$[]"](Re),$e.delimiter_boundary_pattern=Z("BoundaryRx")["$[]"](Re),$e.attributes=ht},-2),Ue(rt,"$parse_into",function(ke,Ie){var Re=this;return Ie==null&&(Ie=[]),ke.$update(Re.$parse(Ie))},-2),Ue(rt,"$parse",function(ke){var Ie=this,Re=ht;if(ke==null&&(ke=[]),J(Ie.attributes))return Ie.attributes;for(Ie.attributes=X([],{}),Re=0;J(Ie.$parse_attribute(Re,ke))&&!J(Ie.scanner["$eos?"]());)Ie.$skip_delimiter(),Re=qe(Re,1);return Ie.attributes},-1),Ue(rt,"$rekey",function(ke){var Ie=this;return Z("AttributeList").$rekey(Ie.attributes,ke)}),et(rt,"$rekey",function(ke,Ie){return R(Ie,"each_with_index",[],function($e,we){var ee,P=ht;return $e==null&&($e=ht),we==null&&(we=ht),J($e)&&J(P=ke["$[]"](qe(we,1)))?(ee=[$e,P],R(ke,"[]=",ee),ee[ee.length-1]):ht}),ke}),rt.$private(),Ue(rt,"$parse_attribute",function(ke,Ie){var Re=this,$e=ht,we=ht,ee=ht,P=ht,D=ht,ae=ht,ie=ht,me=ht,G=ht,g=ht;if($e=!0,Re.$skip_blank(),Ne(Z("QUOT"),we=Re.scanner.$peek(1)))ee=Re.$parse_attribute_value(Re.scanner.$get_byte());else if(Ne(Z("APOS"),we))ee=Re.$parse_attribute_value(Re.scanner.$get_byte()),J(ee["$start_with?"](Z("APOS")))||(P=!0);else if(D=J(ae=J(ie=ee=Re.$scan_name())?Re.$skip_blank():ie)?ae:0,J(Re.scanner["$eos?"]())){if(!(J(ee)||J(Re.scanner.$string().$rstrip()["$end_with?"](Re.delimiter))))return ht;$e=ht}else if(Ke(me=Re.scanner.$get_byte(),Re.delimiter))Re.scanner.$unscan();else if(J(ee))if(Ke(me,"=")){if(Re.$skip_blank(),Ne(Z("QUOT"),ae=me=Re.scanner.$get_byte()))G=Re.$parse_attribute_value(me);else if(Ne(Z("APOS"),ae))G=Re.$parse_attribute_value(me),J(G["$start_with?"](Z("APOS")))||(P=!0);else if(Ne(Re.delimiter,ae))G="",Re.scanner.$unscan();else if(Ne(ht,ae))G="";else if(G=""+me+Re.$scan_to_delimiter(),Ke(G,"None"))return!0}else ee=""+ee+Le(" ",D)+me+Re.$scan_to_delimiter();else ee=""+me+Re.$scan_to_delimiter();if(J(G))switch(ee){case"options":case"opts":J(G["$include?"](","))?(J(G["$include?"](" "))&&(G=G.$delete(" ")),R(G.$split(","),"each",[],function u(_){var z,S=u.$$s==null?this:u.$$s;return S.attributes==null&&(S.attributes=ht),_==null&&(_=ht),J(_["$empty?"]())?ht:(z=[""+_+"-option",""],R(S.attributes,"[]=",z),z[z.length-1])},{$$s:Re})):J(G["$empty?"]())||Re.attributes["$[]="](""+G+"-option","");break;default:if(J(P)&&J(Re.block))switch(ee){case"title":case"reftext":Re.attributes["$[]="](ee,G);break;default:Re.attributes["$[]="](ee,Re.block.$apply_subs(G))}else Re.attributes["$[]="](ee,G)}else J(P)&&J(Re.block)&&(ee=Re.block.$apply_subs(ee)),J(g=Ie["$[]"](ke))&&J(ee)&&Re.attributes["$[]="](g,ee),Re.attributes["$[]="](qe(ke,1),ee);return $e}),Ue(rt,"$parse_attribute_value",function(ke){var Ie=this,Re=ht;return Ke(Ie.scanner.$peek(1),ke)?(Ie.scanner.$get_byte(),""):J(Re=Ie.$scan_to_quote(ke))?(Ie.scanner.$get_byte(),J(Re["$include?"](Z("BACKSLASH")))?Re.$gsub(Z("EscapedQuotes")["$[]"](ke),ke):Re):""+ke+Ie.$scan_to_delimiter()}),Ue(rt,"$skip_blank",function(){var ke=this;return ke.scanner.$skip(Z("BlankRx"))}),Ue(rt,"$skip_delimiter",function(){var ke=this;return ke.scanner.$skip(ke.delimiter_skip_pattern)}),Ue(rt,"$scan_name",function(){var ke=this;return ke.scanner.$scan(Z("NameRx"))}),Ue(rt,"$scan_to_delimiter",function(){var ke=this;return ke.scanner.$scan(ke.delimiter_boundary_pattern)}),Ue(rt,"$scan_to_quote",function(ke){var Ie=this;return Ie.scanner.$scan(Z("BoundaryRx")["$[]"](ke))})}(dt[0],null,dt)}(Pe[0],Pe)},Opal.modules["asciidoctor/block"]=function(a){var ue=a.module,se=a.klass,K=a.const_set,ye=a.hash2,y=a.alias,X=a.send2,Ue=a.find_super,J=a.truthy,qe=a.eqeqeq,R=a.def,et=a.rb_lt,Ne=a.eqeq,Ke=[],Le=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(ht,Ve){var st=ue(ht,"Asciidoctor"),Ye=[st].concat(Ve),Ze=a.$r(Ye);return function(dt,I,tt){var C=se(dt,I,"Block"),rt=[C].concat(tt),lt=a.$r(rt),Z=C.$$prototype;return Z.attributes=Z.content_model=Z.lines=Z.subs=Z.blocks=Z.context=Z.style=Le,K(rt[0],"DEFAULT_CONTENT_MODEL",ye(["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"),y(C,"blockname","context"),C.$attr_accessor("lines"),R(C,"$initialize",function L(He,ke,Ie){var Re=L.$$p||Le,$e=this,we=Le,ee=Le,P=Le;return L.$$p=null,Ie==null&&(Ie=ye([],{})),X($e,Ue($e,"initialize",L,!1,!0),"initialize",[He,ke,Ie],Re),$e.content_model=J(we=Ie["$[]"]("content_model"))?we:lt("DEFAULT_CONTENT_MODEL")["$[]"](ke),J(Ie["$key?"]("subs"))?J(ee=Ie["$[]"]("subs"))?(qe("default",we=ee)?$e.default_subs=Ie["$[]"]("default_subs"):qe(Pe("Array"),we)?($e.default_subs=ee.$drop(0),$e.attributes.$delete("subs")):($e.default_subs=Le,$e.attributes["$[]="]("subs",ee.$to_s())),$e.$commit_subs()):($e.default_subs=[],$e.attributes.$delete("subs")):$e.default_subs=Le,J((P=Ie["$[]"]("source"))["$nil_or_empty?"]())?$e.lines=[]:qe(Pe("String"),P)?$e.lines=lt("Helpers").$prepare_source_string(P):$e.lines=P.$drop(0)},-3),R(C,"$content",function L(){var He=L.$$p||Le,ke=this,Ie=Le,Re=Le,$e=Le,we=Le;switch(L.$$p=null,ke.content_model){case"compound":return X(ke,Ue(ke,"content",L,!1,!0),"content",[],He);case"simple":return ke.$apply_subs(ke.lines.$join(lt("LF")),ke.subs);case"verbatim":case"raw":if(Ie=ke.$apply_subs(ke.lines,ke.subs),J(et(Ie.$size(),2)))return J(Re=Ie["$[]"](0))?Re:"";for(;J(J(Re=$e=Ie["$[]"](0))?$e.$rstrip()["$empty?"]():Re);)Ie.$shift();for(;J(J(Re=we=Ie["$[]"](-1))?we.$rstrip()["$empty?"]():Re);)Ie.$pop();return Ie.$join(lt("LF"));default:return Ne(ke.content_model,"empty")||ke.$logger().$warn("unknown content model '"+ke.content_model+"' for block: "+ke),Le}}),R(C,"$source",function(){var He=this;return He.lines.$join(lt("LF"))}),R(C,"$to_s",function(){var He=this,ke=Le;return ke=Ne(He.content_model,"compound")?"blocks: "+He.blocks.$size():"lines: "+He.lines.$size(),"#<"+He.$class()+"@"+He.$object_id()+" {context: "+He.context.$inspect()+", content_model: "+He.content_model.$inspect()+", style: "+He.style.$inspect()+", "+ke+"}>"})}(Ye[0],Ze("AbstractBlock"),Ye)}(Ke[0],Ke)},Opal.modules["asciidoctor/callouts"]=function(a){var ue=a.module,se=a.klass,K=a.def,ye=a.hash2,y=a.rb_plus,X=a.truthy,Ue=a.rb_le,J=a.rb_minus,qe=a.send,R=a.eqeq,et=a.rb_lt,Ne=[],Ke=a.nil;return a.add_stubs("next_list,<<,current_list,to_i,generate_next_callout_id,+,<=,size,[],-,chop,join,map,==,<,private,generate_callout_id"),function(Le,Pe){var ht=ue(Le,"Asciidoctor"),Ve=[ht].concat(Pe);return function(st,Ye){var Ze=se(st,Ye,"Callouts"),dt=Ze.$$prototype;return dt.co_index=dt.lists=dt.list_index=Ke,K(Ze,"$initialize",function(){var tt=this;return tt.lists=[],tt.list_index=0,tt.$next_list()}),K(Ze,"$register",function(tt){var C=this,rt=Ke;return C.$current_list()["$<<"](ye(["ordinal","id"],{ordinal:tt.$to_i(),id:rt=C.$generate_next_callout_id()})),C.co_index=y(C.co_index,1),rt}),K(Ze,"$read_next_id",function(){var tt=this,C=Ke,rt=Ke;return C=Ke,rt=tt.$current_list(),X(Ue(tt.co_index,rt.$size()))&&(C=rt["$[]"](J(tt.co_index,1))["$[]"]("id")),tt.co_index=y(tt.co_index,1),C}),K(Ze,"$callout_ids",function(tt){var C=this;return qe(C.$current_list(),"map",[],function(lt){return lt==null&&(lt=Ke),R(lt["$[]"]("ordinal"),tt)?""+lt["$[]"]("id")+" ":""}).$join().$chop()}),K(Ze,"$current_list",function(){var tt=this;return tt.lists["$[]"](J(tt.list_index,1))}),K(Ze,"$next_list",function(){var tt=this;return tt.list_index=y(tt.list_index,1),X(et(tt.lists.$size(),tt.list_index))&&tt.lists["$<<"]([]),tt.co_index=1,Ke}),K(Ze,"$rewind",function(){var tt=this;return tt.list_index=1,tt.co_index=1,Ke}),Ze.$private(),K(Ze,"$generate_next_callout_id",function(){var tt=this;return tt.$generate_callout_id(tt.list_index,tt.co_index)}),K(Ze,"$generate_callout_id",function(tt,C){return"CO"+tt+"-"+C})}(Ve[0],null)}(Ne[0],Ne)},Opal.modules["asciidoctor/converter/composite"]=function(a){var ue=a.module,se=a.klass,K=a.slice,ye=a.extract_kwargs,y=a.ensure_kwargs,X=a.send,Ue=a.truthy,J=a.def,qe=a.thrower,R=[],et=a.nil,Ne=a.$$$;return a.add_stubs("attr_reader,each,respond_to?,composed,init_backend_traits,backend_traits,new,[]=,find_converter,convert,converter_for,node_name,[],handles?,raise"),function(Ke,Le){var Pe=ue(Ke,"Asciidoctor"),ht=[Pe].concat(Le),Ve=a.$r(ht);return function(st,Ye){var Ze=se(st,Ye,"CompositeConverter"),dt=Ze.$$prototype;return dt.converter_cache=dt.converters=et,Ze.$attr_reader("converters"),J(Ze,"$initialize",function(tt,C,rt){var lt,Z,L,He,ke=this;return lt=K(arguments,1),Z=ye(lt),Z=y(Z),L=lt,He=Z.$$smap.backend_traits_source,He==null&&(He=et),ke.backend=tt,X(ke.converters=L,"each",[],function Ie(Re){var $e=Ie.$$s==null?this:Ie.$$s;return Re==null&&(Re=et),Ue(Re["$respond_to?"]("composed"))?Re.$composed($e):et},{$$s:ke}),Ue(He)&&ke.$init_backend_traits(He.$backend_traits()),ke.converter_cache=X(Ne("Hash"),"new",[],function Ie(Re,$e){var we,ee=Ie.$$s==null?this:Ie.$$s;return Re==null&&(Re=et),$e==null&&($e=et),we=[$e,ee.$find_converter($e)],X(Re,"[]=",we),we[we.length-1]},{$$s:ke})},-2),J(Ze,"$convert",function(tt,C,rt){var lt=this,Z=et;return C==null&&(C=et),rt==null&&(rt=et),lt.$converter_for(C=Ue(Z=C)?Z:tt.$node_name()).$convert(tt,C,rt)},-2),J(Ze,"$converter_for",function(tt){var C=this;return C.converter_cache["$[]"](tt)}),J(Ze,"$find_converter",function(tt){try{var C=qe("return"),rt=this;return X(rt.converters,"each",[],function(Z){if(Z==null&&(Z=et),Ue(Z["$handles?"](tt)))C.$throw(Z);else return et},{$$ret:C}),rt.$raise("Could not find a converter to handle transform: "+tt)}catch(lt){if(lt===C)return lt.$v;throw lt}})}(Ve("Converter"),Ne(Ve("Converter"),"Base"))}(R[0],R)},Opal.modules["asciidoctor/converter"]=function(a){var ue=a.module,se=a.hash2,K=a.def,ye=a.return_val,y=a.truthy,X=a.eqeq,Ue=a.defs,J=a.send,qe=a.alias,R=a.slice,et=a.to_a,Ne=a.extract_kwargs,Ke=a.ensure_kwargs,Le=a.eqeqeq,Pe=a.Class,ht=a.klass,Ve=a.class_variable_set,st=a.class_variable_get,Ye=a.rb_plus,Ze=a.gvars,dt=[],I=a.nil,tt=a.$$$;return a.add_stubs("autoload,attr_reader,raise,class,[],sub,slice,length,==,[]=,backend_traits,derive_backend_traits,register,map,to_s,new,create,default,each,default=,registry,for,===,supports_templates?,merge,private,include,delete,clear,send,extend,private_class_method,node_name,+,name,receiver,warn,logger,respond_to?,content"),function(C,rt){var lt=ue(C,"Asciidoctor"),Z=[lt].concat(rt);return function(L,He){var ke=ue(L,"Converter"),Ie=[ke].concat(He),Re=a.$r(Ie);return ke.$autoload("CompositeConverter","asciidoctor/converter/composite"),ke.$attr_reader("backend"),K(ke,"$initialize",function(we,ee){var P=this;return ee==null&&(ee=se([],{})),P.backend=we},-2),K(ke,"$convert",function(we,ee,P){var D=this;return D.backend==null&&(D.backend=I),D.$raise(tt("NotImplementedError"),""+D.$class()+" (backend: "+D.backend+") must implement the #convert method")},-2),K(ke,"$handles?",ye(!0)),Ue(ke,"$derive_backend_traits",function(we,ee){var P=I,D=I,ae=I;return ee==null&&(ee=I),y(we)?(y(P=Re("DEFAULT_EXTENSIONS")["$[]"](ee=y(D=ee)?D:we.$sub(Re("TrailingDigitsRx"),"")))?ae=P.$slice(1,P.$length()):P="."+(ae=ee),X(ae,"html")?se(["basebackend","filetype","htmlsyntax","outfilesuffix"],{basebackend:ee,filetype:ae,htmlsyntax:"html",outfilesuffix:P}):se(["basebackend","filetype","outfilesuffix"],{basebackend:ee,filetype:ae,outfilesuffix:P})):se([],{})},-2),function($e,we){var ee=ue($e,"BackendTraits"),P=[ee].concat(we),D=a.$r(P);return K(ee,"$basebackend",function(ie){var me,G=this;return ie==null&&(ie=I),y(ie)?(me=["basebackend",ie],J(G.$backend_traits(ie),"[]=",me),me[me.length-1]):G.$backend_traits()["$[]"]("basebackend")},-1),K(ee,"$filetype",function(ie){var me,G=this;return ie==null&&(ie=I),y(ie)?(me=["filetype",ie],J(G.$backend_traits(),"[]=",me),me[me.length-1]):G.$backend_traits()["$[]"]("filetype")},-1),K(ee,"$htmlsyntax",function(ie){var me,G=this;return ie==null&&(ie=I),y(ie)?(me=["htmlsyntax",ie],J(G.$backend_traits(),"[]=",me),me[me.length-1]):G.$backend_traits()["$[]"]("htmlsyntax")},-1),K(ee,"$outfilesuffix",function(ie){var me,G=this;return ie==null&&(ie=I),y(ie)?(me=["outfilesuffix",ie],J(G.$backend_traits(),"[]=",me),me[me.length-1]):G.$backend_traits()["$[]"]("outfilesuffix")},-1),K(ee,"$supports_templates",function(ie){var me,G=this;return ie==null&&(ie=!0),me=["supports_templates",ie],J(G.$backend_traits(),"[]=",me),me[me.length-1]},-1),K(ee,"$supports_templates?",function(){var ie=this;return ie.$backend_traits()["$[]"]("supports_templates")}),K(ee,"$init_backend_traits",function(ie){var me=this,G=I;return ie==null&&(ie=I),me.backend_traits=y(G=ie)?G:se([],{})},-1),K(ee,"$backend_traits",function(ie){var me=this,G=I;return me.backend_traits==null&&(me.backend_traits=I),me.backend==null&&(me.backend=I),ie==null&&(ie=I),me.backend_traits=y(G=me.backend_traits)?G:D("Converter").$derive_backend_traits(me.backend,ie)},-1),qe(ee,"backend_info","backend_traits"),Ue(ee,"$derive_backend_traits",function(ie,me){return me==null&&(me=I),D("Converter").$derive_backend_traits(ie,me)},-2)}(Ie[0],Ie),function($e,we){var ee=ue($e,"Config"),P=[ee].concat(we),D=a.$r(P);return K(ee,"$register_for",function(ie){var me,G,g=this;return me=R(arguments),G=me,J(D("Converter"),"register",[g].concat(et(J(G,"map",[],function(_){return _==null&&(_=I),_.$to_s()}))))},-1)}(Ie[0],Ie),function($e,we){var ee=ue($e,"Factory"),P=[ee].concat(we),D=a.$r(P);return Ue(ee,"$new",function(ie,me){var G,g,u,_;return G=R(arguments),g=Ne(G),g=Ke(g),G.length>0&&(u=G.shift()),u==null&&(u=I),_=g.$$smap.proxy_default,_==null&&(_=!0),y(_)?D("DefaultFactoryProxy").$new(u):D("CustomFactory").$new(u)},-1),Ue(ee,"$default",function(ie){return R(arguments),D("Converter")},-1),Ue(ee,"$create",function(ie,me){var G=this;return me==null&&(me=se([],{})),G.$default().$create(ie,me)},-2),K(ee,"$register",function(ie,me){var G,g,u=this;return G=R(arguments,1),g=G,J(g,"each",[],function _(z){var S,b=_.$$s==null?this:_.$$s;return z==null&&(z=I),X(z,"*")?(S=[ie],J(b.$registry(),"default=",S),S[S.length-1]):(S=[z,ie],J(b.$registry(),"[]=",S),S[S.length-1])},{$$s:u})},-2),K(ee,"$for",function(ie){var me=this;return me.$registry()["$[]"](ie)}),K(ee,"$create",function(ie,me){var G=this,g=I,u=I,_=I;return me==null&&(me=se([],{})),y(g=G.$for(ie))?(Le(Pe,g)&&(g=g.$new(ie,me)),y(u=me["$[]"]("template_dirs"))&&Le(D("BackendTraits"),g)&&y(g["$supports_templates?"]())?D("CompositeConverter").$new(ie,D("TemplateConverter").$new(ie,u,me),g,se(["backend_traits_source"],{backend_traits_source:g})):g):y(u=me["$[]"]("template_dirs"))?y(_=me["$[]"]("delegate_backend"))&&y(g=G.$for(_))?(Le(Pe,g)&&(g=g.$new(_,me)),D("CompositeConverter").$new(ie,D("TemplateConverter").$new(ie,u,me),g,se(["backend_traits_source"],{backend_traits_source:g}))):D("TemplateConverter").$new(ie,u,me):I},-2),K(ee,"$converters",function(){var ie=this;return ie.$registry().$merge()}),ee.$private(),K(ee,"$registry",function(){var ie=this;return ie.$raise(tt("NotImplementedError"),""+D("Factory")+" subclass "+ie.$class()+" must implement the #registry method")})}(Ie[0],Ie),function($e,we,ee){var P=ht($e,we,"CustomFactory"),D=[P].concat(ee),ae=a.$r(D);return P.$include(ae("Factory")),K(P,"$initialize",function(me){var G=this;return me==null&&(me=I),y(me)?(me["$default="](me.$delete("*")),G.registry=me):G.registry=se([],{})},-1),K(P,"$unregister_all",function(){var me,G=this;return me=[I],J(G.$registry().$clear(),"default=",me),me[me.length-1]}),P.$private(),P.$attr_reader("registry")}(Ie[0],null,Ie),function($e,we){var ee=ue($e,"DefaultFactory"),P=[ee].concat(we),D=a.$r(P);return ee.$include(D("Factory")),ee.$private(),Ve(P[0],"@@registry",se([],{})),K(ee,"$registry",function(){return st(P[0],"@@registry",!1)}),I}(Ie[0],Ie),function($e,we,ee){var P=ht($e,we,"DefaultFactoryProxy"),D=[P].concat(ee),ae=a.$r(D);return P.$include(ae("DefaultFactory")),I}(Ie[0],Re("CustomFactory"),Ie),Ue(ke,"$included",function(we){return we.$send("include",Re("BackendTraits")),we.$extend(Re("Config"))}),ke.$private_class_method("included"),function($e,we,ee){var P=ht($e,we,"Base"),D=[P].concat(ee),ae=a.$r(D),ie=P.$$prototype;return ie.backend=I,P.$include(ae("Logging")),P.$include(ae("Converter")),K(P,"$convert",function(G,g,u){var _=this,z=I;Ze["!"]==null&&(Ze["!"]=I),g==null&&(g=G.$node_name()),u==null&&(u=I);try{return y(u)?_.$send(Ye("convert_",g),G,u):_.$send(Ye("convert_",g),G)}catch(S){if(a.rescue(S,[ae("StandardError")]))try{return Le(tt("NoMethodError"),z=Ze["!"])&&X(z.$receiver(),_)&&X(z.$name().$to_s(),g)||_.$raise(),_.$logger().$warn("missing convert handler for "+z.$name()+" node in "+_.backend+" backend ("+_.$class()+")"),I}finally{a.pop_exception()}else throw S}},-2),K(P,"$handles?",function(G){var g=this;return g["$respond_to?"]("convert_"+G)}),K(P,"$content_only",function(G){return G.$content()}),K(P,"$skip",ye(I))}(Ie[0],null,Ie),ke.$extend(Re("DefaultFactory"))}(Z[0],Z)}(dt[0],dt)},Opal.modules["asciidoctor/document"]=function(a){var ue=a.module,se=a.klass,K=a.const_set,ye=a.send,y=a.alias,X=a.truthy,Ue=a.def,J=a.hash2,qe=a.not,R=a.to_ary,et=a.return_ivar,Ne=a.send2,Ke=a.find_super,Le=a.rb_minus,Pe=a.eqeq,ht=a.eqeqeq,Ve=a.hash,st=a.rb_ge,Ye=a.rb_plus,Ze=a.neqeq,dt=a.thrower,I=a.rb_gt,tt=a.rb_lt,C=a.gvars,rt=a.to_a,lt=[],Z=a.nil,L=a.$$$;return a.add_stubs("new,target,attr_reader,nil?,<<,[],[]=,main,include?,strip,squeeze,gsub,!,empty?,rpartition,attr_accessor,catalog,delete,base_dir,options,merge,instance_variable_get,attributes,safe,compat_mode,outfilesuffix,sourcemap,path_resolver,converter,extensions,syntax_highlighter,each,end_with?,start_with?,slice,-,length,chop,==,downcase,===,extname,value_for_name,key?,freeze,attribute_undefined,attribute_missing,update,&,keys,name_for_value,expand_path,pwd,to_s,>=,+,abs,to_i,delete_if,update_doctype_attributes,cursor,parse,restore_attributes,update_backend_attributes,fetch,fill_datetime_attributes,activate,groups,create,to_proc,preprocessors?,preprocessors,process_method,tree_processors?,tree_processors,!=,counter,nil_or_empty?,attribute_locked?,nextval,value,save_to,increment_and_store_counter,register,tap,xreftext,>,source,source_lines,doctitle,sectname=,title=,first_section,title,reftext,<,find,context,header?,assign_numeral,clear_playback_attributes,save_attributes,name,negate,rewind,replace,apply_attribute_value_subs,delete?,start,doctype,content_model,warn,logger,content,convert,postprocessors?,postprocessors,record,write,respond_to?,chomp,class,write_alternate_pages,map,split,resolve_docinfo_subs,normalize_system_path,read_asset,apply_subs,docinfo_processors?,join,concat,compact,docinfo_processors,object_id,inspect,size,private,=~,resolve_pass_subs,apply_header_subs,limit_bytesize,bytesize,valid_encoding?,byteslice,resolve_subs,utc,at,Integer,now,index,strftime,year,utc_offset,partition,create_converter,basebackend,filetype,htmlsyntax,derive_backend_traits,raise"),function(He,ke){var Ie=ue(He,"Asciidoctor"),Re=[Ie].concat(ke),$e=a.$r(Re);return function(we,ee,P){var D=se(we,ee,"Document"),ae=[D].concat(P),ie=a.$r(ae),me=D.$$prototype;return me.attributes=me.safe=me.sourcemap=me.reader=me.base_dir=me.parsed=me.parent_document=me.extensions=me.options=me.counters=me.catalog=me.reftexts=me.next_section_index=me.header=me.blocks=me.header_attributes=me.attributes_modified=me.backend=me.attribute_overrides=me.timings=me.converter=me.outfilesuffix=me.docinfo_processor_extensions=me.document=me.max_attribute_value_size=me.id=me.doctype=Z,K(ae[0],"ImageReference",ye(L("Struct"),"new",["target","imagesdir"],function G(){var g=G.$$s==null?this:G.$$s;return y(g,"to_s","target")},{$$s:D})),K(ae[0],"Footnote",L("Struct").$new("index","id","text")),function(G,g){var u=se(G,g,"AttributeEntry");return u.$attr_reader("name","value","negate"),Ue(u,"$initialize",function(z,S,b){var F=this;return b==null&&(b=Z),F.name=z,F.value=S,F.negate=X(b["$nil?"]())?S["$nil?"]():b},-3),Ue(u,"$save_to",function(z){var S,b=this,F=Z;return(X(F=z["$[]"]("attribute_entries"))?F:(S=["attribute_entries",[]],ye(z,"[]=",S),S[S.length-1]))["$<<"](b),b})}(ae[0],null),function(G,g,u){var _=se(G,g,"Title"),z=[_].concat(u),S=a.$r(z),b=_.$$prototype;return b.subtitle=Z,_.$attr_reader("main"),y(_,"title","main"),_.$attr_reader("subtitle"),_.$attr_reader("combined"),Ue(_,"$initialize",function(H,ge){var ce,Se,Be=this,Xe=Z,it=Z;return ge==null&&(ge=J([],{})),X(Be.sanitized=ge["$[]"]("sanitize"))&&X(H["$include?"]("<"))&&(H=H.$gsub(S("XmlSanitizeRx"),"").$squeeze(" ").$strip()),X((Xe=X(it=ge["$[]"]("separator"))?it:":")["$empty?"]())||qe(H["$include?"](Xe=""+Xe+" "))?(Be.main=H,Be.subtitle=Z):(Se=H.$rpartition(Xe),ce=R(Se),Be.main=ce[0]==null?Z:ce[0],ce[1]==null||ce[1],Be.subtitle=ce[2]==null?Z:ce[2]),Be.combined=H},-2),Ue(_,"$sanitized?",et("sanitized")),Ue(_,"$subtitle?",function(){var H=this;return!!X(H.subtitle)}),Ue(_,"$to_s",et("combined"))}(ae[0],null,ae),K(ae[0],"Author",L("Struct").$new("name","firstname","middlename","lastname","initials","email")),D.$attr_reader("safe"),D.$attr_reader("compat_mode"),D.$attr_reader("backend"),D.$attr_reader("doctype"),D.$attr_accessor("sourcemap"),D.$attr_reader("catalog"),y(D,"references","catalog"),D.$attr_reader("counters"),D.$attr_reader("header"),D.$attr_reader("base_dir"),D.$attr_reader("options"),D.$attr_reader("outfilesuffix"),D.$attr_reader("parent_document"),D.$attr_reader("reader"),D.$attr_reader("path_resolver"),D.$attr_reader("converter"),D.$attr_reader("syntax_highlighter"),D.$attr_reader("extensions"),Ue(D,"$initialize",function G(g,u){var _,z,S,b;G.$$p;var F=this,H=Z,ge=Z,ce=Z,Se=Z,Be=Z,Xe=Z,it=Z,pt=Z,at=Z,bt=Z,kt=Z,Et=Z,wt=Z,Nt=Z,Tt=Z,Vt=Z,jt=Z,er=Z;return G.$$p=null,g==null&&(g=Z),u==null&&(u=J([],{})),Ne(F,Ke(F,"initialize",G,!1,!0),"initialize",[F,"document"],null),X(H=u.$delete("parent"))?(F.parent_document=H,X(ge=u["$[]"]("base_dir"))||u["$[]="]("base_dir",H.$base_dir()),X(H.$options()["$[]"]("catalog_assets"))&&u["$[]="]("catalog_assets",!0),X(H.$options()["$[]"]("to_dir"))&&u["$[]="]("to_dir",H.$options()["$[]"]("to_dir")),F.catalog=H.$catalog().$merge(J(["footnotes"],{footnotes:[]})),F.attribute_overrides=ce=H.$instance_variable_get("@attribute_overrides").$merge(H.$attributes()),ce.$delete("compat-mode"),Se=ce.$delete("doctype"),ce.$delete("notitle"),ce.$delete("showtitle"),ce.$delete("toc"),F.attributes["$[]="]("toc-placement",X(ge=ce.$delete("toc-placement"))?ge:"auto"),ce.$delete("toc-position"),F.safe=H.$safe(),X(F.compat_mode=H.$compat_mode())&&F.attributes["$[]="]("compat-mode",""),F.outfilesuffix=H.$outfilesuffix(),F.sourcemap=H.$sourcemap(),F.timings=Z,F.path_resolver=H.$path_resolver(),F.converter=H.$converter(),Be=Z,F.extensions=H.$extensions(),F.syntax_highlighter=H.$syntax_highlighter()):(F.parent_document=Z,F.catalog=J(["ids","refs","footnotes","links","images","callouts","includes"],{ids:J([],{}),refs:J([],{}),footnotes:[],links:[],images:[],callouts:ie("Callouts").$new(),includes:J([],{})}),F.attribute_overrides=ce=J([],{}),ye(X(ge=u["$[]"]("attributes"))?ge:J([],{}),"each",[],function(Pt,Yt){var Xt;return Pt==null&&(Pt=Z),Yt==null&&(Yt=Z),X(Pt["$end_with?"]("@"))?X(Pt["$start_with?"]("!"))?(Xt=[Pt.$slice(1,Le(Pt.$length(),2)),!1],Pt=Xt[0],Yt=Xt[1]):X(Pt["$end_with?"]("!@"))?(Xt=[Pt.$slice(0,Le(Pt.$length(),2)),!1],Pt=Xt[0],Yt=Xt[1]):(Xt=[Pt.$chop(),""+Yt+"@"],Pt=Xt[0],Yt=Xt[1]):X(Pt["$start_with?"]("!"))?(Xt=[Pt.$slice(1,Pt.$length()),Pe(Yt,"@")?!1:Z],Pt=Xt[0],Yt=Xt[1]):X(Pt["$end_with?"]("!"))&&(Xt=[Pt.$chop(),Pe(Yt,"@")?!1:Z],Pt=Xt[0],Yt=Xt[1]),Xt=[Pt.$downcase(),Yt],ye(ce,"[]=",Xt),Xt[Xt.length-1]}),ht(L("String"),Xe=u["$[]"]("to_file"))&&ce["$[]="]("outfilesuffix",ie("Helpers").$extname(Xe)),qe(it=u["$[]"]("safe"))?F.safe=L(ie("SafeMode"),"SECURE"):ht(L("Integer"),it)?F.safe=it:F.safe=function(){try{return ie("SafeMode").$value_for_name(it)}catch(Kt){if(a.rescue(Kt,[ie("StandardError")]))try{return L(ie("SafeMode"),"SECURE")}finally{a.pop_exception()}else throw Kt}}(),pt=u.$delete("input_mtime"),F.compat_mode=ce["$key?"]("compat-mode"),F.sourcemap=u["$[]"]("sourcemap"),F.timings=u.$delete("timings"),F.path_resolver=ie("PathResolver").$new(),Be=X((_=L("::","Asciidoctor","skip_raise"))&&L(_,"Extensions","skip_raise")?"constant":Z)||X(u["$key?"]("extensions"))?L(L("Asciidoctor"),"Extensions"):Z,F.extensions=Z,X(u["$key?"]("header_footer"))&&qe(u["$key?"]("standalone"))&&u["$[]="]("standalone",u["$[]"]("header_footer"))),F.parsed=F.reftexts=F.header=F.header_attributes=Z,F.counters=J([],{}),F.attributes_modified=L("Set").$new(),F.docinfo_processor_extensions=J([],{}),at=u["$[]"]("standalone"),(F.options=u).$freeze(),bt=F.attributes,X(H)||(bt["$[]="]("attribute-undefined",ie("Compliance").$attribute_undefined()),bt["$[]="]("attribute-missing",ie("Compliance").$attribute_missing()),bt.$update(ie("DEFAULT_ATTRIBUTES"))),X(at)?(ce["$[]="]("embedded",Z),bt["$[]="]("copycss",""),bt["$[]="]("iconfont-remote",""),bt["$[]="]("stylesheet",""),bt["$[]="]("webfonts","")):(ce["$[]="]("embedded",""),X(ce["$key?"]("showtitle"))&&Pe(ce.$keys()["$&"](["notitle","showtitle"])["$[]"](-1),"showtitle")?ce["$[]="]("notitle",Ve(Z,"",!1,"@","@",!1)["$[]"](ce["$[]"]("showtitle"))):X(ce["$key?"]("notitle"))?ce["$[]="]("showtitle",Ve(Z,"",!1,"@","@",!1)["$[]"](ce["$[]"]("notitle"))):bt["$[]="]("notitle","")),ce["$[]="]("asciidoctor",""),ce["$[]="]("asciidoctor-version",L(L("Asciidoctor"),"VERSION")),ce["$[]="]("safe-mode-name",kt=ie("SafeMode").$name_for_value(F.safe)),ce["$[]="]("safe-mode-"+kt,""),ce["$[]="]("safe-mode-level",F.safe),X(ge=ce["$[]"]("max-include-depth"))||ce["$[]="]("max-include-depth",64),X(ge=ce["$[]"]("allow-uri-read"))||ce["$[]="]("allow-uri-read",Z),X(ce["$key?"]("numbered"))&&ce["$[]="]("sectnums",ce.$delete("numbered")),X(ce["$key?"]("hardbreaks"))&&ce["$[]="]("hardbreaks-option",ce.$delete("hardbreaks")),X(Et=u["$[]"]("base_dir"))?F.base_dir=(z=["docdir",L("File").$expand_path(Et)],ye(ce,"[]=",z),z[z.length-1]):X(ce["$[]"]("docdir"))?F.base_dir=ce["$[]"]("docdir"):F.base_dir=(z=["docdir",L("Dir").$pwd()],ye(ce,"[]=",z),z[z.length-1]),X(wt=u["$[]"]("backend"))&&ce["$[]="]("backend",wt.$to_s()),X(Nt=u["$[]"]("doctype"))&&ce["$[]="]("doctype",Nt.$to_s()),X(st(F.safe,L(ie("SafeMode"),"SERVER")))?(X(ge=ce["$[]"]("copycss"))||ce["$[]="]("copycss",Z),X(ge=ce["$[]"]("source-highlighter"))||ce["$[]="]("source-highlighter",Z),X(ge=ce["$[]"]("backend"))||ce["$[]="]("backend",ie("DEFAULT_BACKEND")),qe(H)&&X(ce["$key?"]("docfile"))&&ce["$[]="]("docfile",ce["$[]"]("docfile")["$[]"](a.Range.$new(Ye(ce["$[]"]("docdir").$length(),1),-1,!1))),ce["$[]="]("docdir",""),X(ge=ce["$[]"]("user-home"))||ce["$[]="]("user-home","."),X(st(F.safe,L(ie("SafeMode"),"SECURE")))&&(X(ce["$key?"]("max-attribute-value-size"))||ce["$[]="]("max-attribute-value-size",4096),X(ce["$key?"]("linkcss"))||ce["$[]="]("linkcss",""),X(ge=ce["$[]"]("icons"))||ce["$[]="]("icons",Z))):X(ge=ce["$[]"]("user-home"))||ce["$[]="]("user-home",ie("USER_HOME")),F.max_attribute_value_size=X(Tt=X(ge=ce["$[]"]("max-attribute-value-size"))?ge:(z=["max-attribute-value-size",Z],ye(ce,"[]=",z),z[z.length-1]))?Tt.$to_i().$abs():Z,ye(ce,"delete_if",[],function(Pt,Yt){var Xt,nr=Z;return Pt==null&&(Pt=Z),Yt==null&&(Yt=Z),X(Yt)?(ht(L("String"),Yt)&&X(Yt["$end_with?"]("@"))&&(Xt=[Yt.$chop(),!0],Yt=Xt[0],nr=Xt[1]),bt["$[]="](Pt,Yt)):(bt.$delete(Pt),nr=Yt["$=="](!1)),nr}),X(H)?(F.backend=bt["$[]"]("backend"),Pe(F.doctype=(z=["doctype",Se],ye(bt,"[]=",z),z[z.length-1]),ie("DEFAULT_DOCTYPE"))||F.$update_doctype_attributes(ie("DEFAULT_DOCTYPE")),F.reader=ie("Reader").$new(g,u["$[]"]("cursor")),X(F.sourcemap)&&(F.source_location=F.reader.$cursor()),ie("Parser").$parse(F.reader,F),F.$restore_attributes(),F.parsed=!0):(F.backend=Z,Pe(Vt=X(ge=bt["$[]"]("backend"))?ge:ie("DEFAULT_BACKEND"),"manpage")?F.doctype=(z=["doctype",(S=["doctype","manpage"],ye(ce,"[]=",S),S[S.length-1])],ye(bt,"[]=",z),z[z.length-1]):F.doctype=X(ge=bt["$[]"]("doctype"))?ge:(z=["doctype",ie("DEFAULT_DOCTYPE")],ye(bt,"[]=",z),z[z.length-1]),F.$update_backend_attributes(Vt,!0),X(ge=bt["$[]"]("stylesdir"))||bt["$[]="]("stylesdir","."),X(ge=bt["$[]"]("iconsdir"))||bt["$[]="]("iconsdir",""+bt.$fetch("imagesdir","./images")+"/icons"),F.$fill_datetime_attributes(bt,pt),X(Be)&&(X(jt=u["$[]"]("extension_registry"))?(ht(L(ie("Extensions"),"Registry"),jt)||X((b=L("::","AsciidoctorJ","skip_raise"))&&(S=L(b,"Extensions","skip_raise"))&&(z=L(S,"ExtensionRegistry","skip_raise"))?"constant":Z)&&ht(L(L(L("AsciidoctorJ"),"Extensions"),"ExtensionRegistry"),jt))&&(F.extensions=jt.$activate(F)):X((er=u["$[]"]("extensions"))["$nil?"]())?X(ie("Extensions").$groups()["$empty?"]())||(F.extensions=L(ie("Extensions"),"Registry").$new().$activate(F)):ht(L("Proc"),er)&&(F.extensions=ye(ie("Extensions"),"create",[],er.$to_proc()).$activate(F))),F.reader=ie("PreprocessorReader").$new(F,g,L(ie("Reader"),"Cursor").$new(bt["$[]"]("docfile"),F.base_dir),J(["normalize"],{normalize:!0})),X(F.sourcemap)?F.source_location=F.reader.$cursor():Z)},-1),Ue(D,"$parse",function(g){var u=this,_=Z,z=Z;return g==null&&(g=Z),X(u.parsed)?u:(_=u,X(g)&&(u.reader=ie("PreprocessorReader").$new(_,g,L(ie("Reader"),"Cursor").$new(u.attributes["$[]"]("docfile"),u.base_dir),J(["normalize"],{normalize:!0})),X(u.sourcemap)&&(u.source_location=u.reader.$cursor())),X(z=X(u.parent_document)?Z:u.extensions)&&X(z["$preprocessors?"]())&&ye(z.$preprocessors(),"each",[],function S(b){var F=S.$$s==null?this:S.$$s,H=Z;return F.reader==null&&(F.reader=Z),b==null&&(b=Z),F.reader=X(H=b.$process_method()["$[]"](_,F.reader))?H:F.reader},{$$s:u}),ie("Parser").$parse(u.reader,_,J(["header_only"],{header_only:u.options["$[]"]("parse_header_only")})),u.$restore_attributes(),X(z)&&X(z["$tree_processors?"]())&&ye(z.$tree_processors(),"each",[],function(b){var F=Z;return b==null&&(b=Z),X(F=b.$process_method()["$[]"](_))&&ht(ie("Document"),F)&&Ze(F,_)?_=F:Z}),u.parsed=!0,_)},-1),Ue(D,"$parsed?",et("parsed")),Ue(D,"$counter",function(g,u){var _,z=this,S=Z,b=Z,F=Z;return u==null&&(u=Z),X(z.parent_document)?z.parent_document.$counter(g,u):(X(b=z["$attribute_locked?"](g))&&X(S=z.counters["$[]"](g))||qe((S=z.attributes["$[]"](g))["$nil_or_empty?"]())?F=(_=[g,ie("Helpers").$nextval(S)],ye(z.counters,"[]=",_),_[_.length-1]):X(u)?F=(_=[g,Pe(u,u.$to_i().$to_s())?u.$to_i():u],ye(z.counters,"[]=",_),_[_.length-1]):F=(_=[g,1],ye(z.counters,"[]=",_),_[_.length-1]),X(b)||z.attributes["$[]="](g,F),F)},-2),Ue(D,"$increment_and_store_counter",function(g,u){var _=this;return ie("AttributeEntry").$new(g,_.$counter(g)).$save_to(u.$attributes()).$value()}),y(D,"counter_increment","increment_and_store_counter"),Ue(D,"$register",function(g,u){var _=this,z=Z,S=Z,b=Z;switch(g){case"ids":return _.$register("refs",[z=u["$[]"](0),ie("Inline").$new(_,"anchor",u["$[]"](1),J(["type","id"],{type:"ref",id:z}))]);case"refs":return S=_.catalog["$[]"]("refs"),X(S["$[]"](u["$[]"](0)))||S["$[]="](u["$[]"](0),b=u["$[]"](1)),b;case"footnotes":return _.catalog["$[]"](g)["$<<"](u);default:return X(_.options["$[]"]("catalog_assets"))?_.catalog["$[]"](g)["$<<"](Pe(g,"images")?ie("ImageReference").$new(u,_.attributes["$[]"]("imagesdir")):u):Z}}),Ue(D,"$resolve_id",function(g){var u=this,_=Z,z=Z;return X(u.reftexts)?u.reftexts["$[]"](g):X(u.parsed)?ye(u.reftexts=J([],{}),"tap",[],function S(b){var F=S.$$s==null?this:S.$$s;return F.catalog==null&&(F.catalog=Z),b==null&&(b=Z),ye(F.catalog["$[]"]("refs"),"each",[],function(ge,ce){var Se,Be=Z;return ge==null&&(ge=Z),ce==null&&(ce=Z),X(Be=b["$[]"](ce.$xreftext()))?Be:(Se=[ce.$xreftext(),ge],ye(b,"[]=",Se),Se[Se.length-1])})},{$$s:u})["$[]"](g):(_=Z,u.reftexts=z=J([],{}),function(){try{var S=dt("break");return ye(u.catalog["$[]"]("refs"),"each",[],function(F,H){var ge,ce=Z,Se=Z;return F==null&&(F=Z),H==null&&(H=Z),Pe(ce=H.$xreftext(),g)&&(_=F,S.$throw()),X(Se=z["$[]"](ce))?Se:(ge=[ce,F],ye(z,"[]=",ge),ge[ge.length-1])})}catch(b){if(b===S)return b.$v;throw b}}(),u.reftexts=Z,_)}),Ue(D,"$sections?",function(){var g=this;return I(g.next_section_index,0)}),Ue(D,"$footnotes?",function(){var g=this;return!X(g.catalog["$[]"]("footnotes")["$empty?"]())}),Ue(D,"$footnotes",function(){var g=this;return g.catalog["$[]"]("footnotes")}),Ue(D,"$callouts",function(){var g=this;return g.catalog["$[]"]("callouts")}),Ue(D,"$nested?",function(){var g=this;return!!X(g.parent_document)}),Ue(D,"$embedded?",function(){var g=this;return g.attributes["$key?"]("embedded")}),Ue(D,"$extensions?",function(){var g=this;return!!X(g.extensions)}),Ue(D,"$source",function(){var g=this;return X(g.reader)?g.reader.$source():Z}),Ue(D,"$source_lines",function(){var g=this;return X(g.reader)?g.reader.$source_lines():Z}),Ue(D,"$basebackend?",function(g){var u=this;return u.attributes["$[]"]("basebackend")["$=="](g)}),Ue(D,"$title",function(){var g=this;return g.$doctitle()}),Ue(D,"$title=",function(g){var u,_=this,z=Z;return X(z=_.header)||(z=_.header=ie("Section").$new(_,0))["$sectname="]("header"),u=[g],ye(z,"title=",u),u[u.length-1]}),Ue(D,"$doctitle",function(g){var u=this,_=Z,z=Z,S=Z,b=Z;if(g==null&&(g=J([],{})),!X(_=u.attributes["$[]"]("title"))){if(X(z=u.$first_section()))_=z.$title();else if(qe(X(S=g["$[]"]("use_fallback"))?_=u.attributes["$[]"]("untitled-label"):S))return Z}return X(b=g["$[]"]("partition"))?ie("Title").$new(_,g.$merge(J(["separator"],{separator:Pe(b,!0)?u.attributes["$[]"]("title-separator"):b}))):X(g["$[]"]("sanitize"))&&X(_["$include?"]("<"))?_.$gsub(ie("XmlSanitizeRx"),"").$squeeze(" ").$strip():_},-1),y(D,"name","doctitle"),Ue(D,"$xreftext",function(g){var u=this,_=Z;return X(_=u.$reftext())&&qe(_["$empty?"]())?_:u.$title()},-1),Ue(D,"$author",function(){var g=this;return g.attributes["$[]"]("author")}),Ue(D,"$authors",function(){var g=this,u=Z,_=Z,z=Z,S=Z,b=Z;if(X((u=g.attributes)["$key?"]("author"))){if(_=[ie("Author").$new(u["$[]"]("author"),u["$[]"]("firstname"),u["$[]"]("middlename"),u["$[]"]("lastname"),u["$[]"]("authorinitials"),u["$[]"]("email"))],X(I(z=X(S=u["$[]"]("authorcount"))?S:0,1)))for(b=1;X(tt(b,z));)b=Ye(b,1),_["$<<"](ie("Author").$new(u["$[]"]("author_"+b),u["$[]"]("firstname_"+b),u["$[]"]("middlename_"+b),u["$[]"]("lastname_"+b),u["$[]"]("authorinitials_"+b),u["$[]"]("email_"+b)));return _}else return[]}),Ue(D,"$revdate",function(){var g=this;return g.attributes["$[]"]("revdate")}),Ue(D,"$notitle",function(){var g=this;return g.attributes["$key?"]("notitle")}),Ue(D,"$noheader",function(){var g=this;return g.attributes["$key?"]("noheader")}),Ue(D,"$nofooter",function(){var g=this;return g.attributes["$key?"]("nofooter")}),Ue(D,"$first_section",function(){var g=this,u=Z;return X(u=g.header)?u:ye(g.blocks,"find",[],function(z){return z==null&&(z=Z),z.$context()["$=="]("section")})}),Ue(D,"$header?",function(){var g=this;return!!X(g.header)}),y(D,"has_header?","header?"),Ue(D,"$<<",function G(g){var u=G.$$p||Z,_=this;return G.$$p=null,Pe(g.$context(),"section")&&_.$assign_numeral(g),Ne(_,Ke(_,"<<",G,!1,!0),"<<",[g],u)}),Ue(D,"$finalize_header",function(g,u){var _=this;return u==null&&(u=!0),_.$clear_playback_attributes(g),_.$save_attributes(),X(u)||g["$[]="]("invalid-header",!0),g},-2),Ue(D,"$playback_attributes",function(g){var u=this;return X(g["$key?"]("attribute_entries"))?ye(g["$[]"]("attribute_entries"),"each",[],function _(z){var S=_.$$s==null?this:_.$$s,b=Z;return S.attributes==null&&(S.attributes=Z),z==null&&(z=Z),b=z.$name(),X(z.$negate())?(S.attributes.$delete(b),Pe(b,"compat-mode")?S.compat_mode=!1:Z):(S.attributes["$[]="](b,z.$value()),Pe(b,"compat-mode")?S.compat_mode=!0:Z)},{$$s:u}):Z}),Ue(D,"$restore_attributes",function(){var g=this;return X(g.parent_document)||g.catalog["$[]"]("callouts").$rewind(),g.attributes.$replace(g.header_attributes)}),Ue(D,"$set_attribute",function(g,u){var _=this,z=Z;if(u==null&&(u=""),X(_["$attribute_locked?"](g)))return Z;if(X(u["$empty?"]())||(u=_.$apply_attribute_value_subs(u)),X(_.header_attributes))_.attributes["$[]="](g,u);else{switch(g){case"backend":_.$update_backend_attributes(u,X(z=_.attributes_modified["$delete?"]("htmlsyntax"))?u["$=="](_.backend):z);break;case"doctype":_.$update_doctype_attributes(u);break;default:_.attributes["$[]="](g,u)}_.attributes_modified["$<<"](g)}return u},-2),Ue(D,"$delete_attribute",function(g){var u=this;return X(u["$attribute_locked?"](g))?!1:(u.attributes.$delete(g),u.attributes_modified["$<<"](g),!0)}),Ue(D,"$attribute_locked?",function(g){var u=this;return u.attribute_overrides["$key?"](g)}),Ue(D,"$set_header_attribute",function(g,u,_){var z=this,S=Z,b=Z;return u==null&&(u=""),_==null&&(_=!0),S=X(b=z.header_attributes)?b:z.attributes,Pe(_,!1)&&X(S["$key?"](g))?!1:(S["$[]="](g,u),!0)},-2),Ue(D,"$convert",function(g){var u,_=this,z=Z,S=Z,b=Z,F=Z,H=Z;return g==null&&(g=J([],{})),X(_.timings)&&_.timings.$start("convert"),X(_.parsed)||_.$parse(),X(st(_.safe,L(ie("SafeMode"),"SERVER")))||X(g["$empty?"]())||(X((u=["outfile",g["$[]"]("outfile")],ye(_.attributes,"[]=",u),u[u.length-1]))||_.attributes.$delete("outfile"),X((u=["outdir",g["$[]"]("outdir")],ye(_.attributes,"[]=",u),u[u.length-1]))||_.attributes.$delete("outdir")),Pe(_.$doctype(),"inline")?X(z=X(S=_.blocks["$[]"](0))?S:_.header)&&(Pe(z.$content_model(),"compound")||Pe(z.$content_model(),"empty")?_.$logger().$warn("no inline candidate; use the inline doctype to convert a single paragragh, verbatim, or raw block"):b=z.$content()):(X(g["$key?"]("standalone"))?F=X(g["$[]"]("standalone"))?"document":"embedded":X(g["$key?"]("header_footer"))?F=X(g["$[]"]("header_footer"))?"document":"embedded":F=X(_.options["$[]"]("standalone"))?"document":"embedded",b=_.converter.$convert(_,F)),X(_.parent_document)||X(H=_.extensions)&&X(H["$postprocessors?"]())&&ye(H.$postprocessors(),"each",[],function ge(ce){var Se=ge.$$s==null?this:ge.$$s;return ce==null&&(ce=Z),b=ce.$process_method()["$[]"](Se,b)},{$$s:_}),X(_.timings)&&_.timings.$record("convert"),b},-1),y(D,"render","convert"),Ue(D,"$write",function(g,u){var _=this;return X(_.timings)&&_.timings.$start("write"),ht(ie("Writer"),_.converter)?_.converter.$write(g,u):(X(u["$respond_to?"]("write"))?X(g["$nil_or_empty?"]())||(u.$write(g.$chomp()),u.$write(ie("LF"))):L("File").$write(u,g,J(["mode"],{mode:ie("FILE_WRITE_MODE")})),Pe(_.backend,"manpage")&&ht(L("String"),u)&&X(_.converter.$class()["$respond_to?"]("write_alternate_pages"))&&_.converter.$class().$write_alternate_pages(_.attributes["$[]"]("mannames"),_.attributes["$[]"]("manvolnum"),u)),X(_.timings)&&_.timings.$record("write"),Z}),Ue(D,"$content",function G(){var g=G.$$p||Z,u=this;return G.$$p=null,u.attributes.$delete("title"),Ne(u,Ke(u,"content",G,!1,!0),"content",[],g)}),Ue(D,"$docinfo",function(g,u){var _,z=this,S=Z,b=Z,F=Z,H=Z,ge=Z,ce=Z,Se=Z,Be=Z,Xe=Z,it=Z;return g==null&&(g="head"),u==null&&(u=Z),X(tt(z.$safe(),L(ie("SafeMode"),"SECURE")))&&(Pe(g,"head")||(S="-"+g),u=X(b=u)?b:z.outfilesuffix,X((F=z.attributes["$[]"]("docinfo"))["$nil_or_empty?"]())?X(z.attributes["$key?"]("docinfo2"))?F=["private","shared"]:X(z.attributes["$key?"]("docinfo1"))?F=["shared"]:F=X(F)?["private"]:Z:F=ye(F.$split(","),"map",[],function(at){return at==null&&(at=Z),at.$strip()}),X(F)&&(H=[],_=["docinfo"+S+u,z.attributes["$[]"]("docinfodir"),z.$resolve_docinfo_subs()],ge=_[0],ce=_[1],Se=_[2],X(F["$&"](["shared","shared-"+g])["$empty?"]())||(Be=z.$normalize_system_path(ge,ce),X(Xe=z.$read_asset(Be,J(["normalize"],{normalize:!0})))&&H["$<<"](z.$apply_subs(Xe,Se))),X(z.attributes["$[]"]("docname")["$nil_or_empty?"]())||X(F["$&"](["private","private-"+g])["$empty?"]())||(Be=z.$normalize_system_path(""+z.attributes["$[]"]("docname")+"-"+ge,ce),X(it=z.$read_asset(Be,J(["normalize"],{normalize:!0})))&&H["$<<"](z.$apply_subs(it,Se))))),X(z.extensions)&&X(z["$docinfo_processors?"](g))?(X(b=H)?b:[]).$concat(ye(z.docinfo_processor_extensions["$[]"](g),"map",[],function pt(at){var bt=pt.$$s==null?this:pt.$$s;return at==null&&(at=Z),at.$process_method()["$[]"](bt)},{$$s:z}).$compact()).$join(ie("LF")):X(H)?H.$join(ie("LF")):""},-1),Ue(D,"$docinfo_processors?",function(g){var u,_=this;return g==null&&(g="head"),X(_.docinfo_processor_extensions["$key?"](g))?_.docinfo_processor_extensions["$[]"](g)["$!="](!1):X(_.extensions)&&X(_.document.$extensions()["$docinfo_processors?"](g))?(u=[g,_.document.$extensions().$docinfo_processors(g)],ye(_.docinfo_processor_extensions,"[]=",u),u[u.length-1])["$!"]()["$!"]():(u=[g,!1],ye(_.docinfo_processor_extensions,"[]=",u),u[u.length-1])},-1),Ue(D,"$to_s",function(){var g=this,u=Z;return"#<"+g.$class()+"@"+g.$object_id()+" {doctype: "+g.$doctype().$inspect()+", doctitle: "+(X(u=g.header)?g.header.$title():u).$inspect()+", blocks: "+g.blocks.$size()+"}>"}),D.$private(),Ue(D,"$apply_attribute_value_subs",function(g){var u,_=this;return X(ie("AttributeEntryPassMacroRx")["$=~"](g))?(g=(u=C["~"])===Z?Z:u["$[]"](2),X((u=C["~"])===Z?Z:u["$[]"](1))&&(g=_.$apply_subs(g,_.$resolve_pass_subs((u=C["~"])===Z?Z:u["$[]"](1))))):g=_.$apply_header_subs(g),X(_.max_attribute_value_size)?_.$limit_bytesize(g,_.max_attribute_value_size):g}),Ue(D,"$limit_bytesize",function(g,u){if(X(I(g.$bytesize(),u)))for(;!X((g=g.$byteslice(0,u))["$valid_encoding?"]());)u=Le(u,1);return g}),Ue(D,"$resolve_docinfo_subs",function(){var g=this;return X(g.attributes["$key?"]("docinfosubs"))?g.$resolve_subs(g.attributes["$[]"]("docinfosubs"),"block",Z,"docinfo"):["attributes"]}),Ue(D,"$create_converter",function(g,u){var _=this,z=Z,S=Z,b=Z,F=Z,H=Z;return z=J(["document","htmlsyntax"],{document:_,htmlsyntax:_.attributes["$[]"]("htmlsyntax")}),X(S=X(b=(F=_.options)["$[]"]("template_dirs"))?b:F["$[]"]("template_dir"))&&(z["$[]="]("template_dirs",[].concat(rt(S))),z["$[]="]("template_cache",F.$fetch("template_cache",!0)),z["$[]="]("template_engine",F["$[]"]("template_engine")),z["$[]="]("template_engine_options",F["$[]"]("template_engine_options")),z["$[]="]("eruby",F["$[]"]("eruby")),z["$[]="]("safe",_.safe),X(u)&&z["$[]="]("delegate_backend",u)),X(H=F["$[]"]("converter"))?L(ie("Converter"),"CustomFactory").$new(Ve(g,H)).$create(g,z):F.$fetch("converter_factory",ie("Converter")).$create(g,z)}),Ue(D,"$clear_playback_attributes",function(g){return g.$delete("attribute_entries")}),Ue(D,"$save_attributes",function(){var g=this,u=Z,_=Z,z=Z,S=Z,b=Z,F=Z,H=Z,ge=Z,ce=Z,Se=Z,Be=Z,Xe=Z,it=Z,pt=Z;if(X((_=g.attributes)["$key?"]("doctitle"))||qe(u=g.$doctitle())||_["$[]="]("doctitle",u),g.id=X(z=g.id)?z:_["$[]"]("css-signature"),X(S=X(_.$delete("toc2"))?"left":_["$[]"]("toc"))&&(b=X(F=_.$fetch("toc-placement","macro"))&&Ze(F,"auto")?F:_["$[]"]("toc-position"),!(X(S["$empty?"]())&&X(b["$nil_or_empty?"]())))){switch(H="left",ge="toc2",ce=X(b["$nil_or_empty?"]())?X(S["$empty?"]())?H:S:b,_["$[]="]("toc",""),_["$[]="]("toc-placement","auto"),ce){case"left":case"<":case"<":_["$[]="]("toc-position","left");break;case"right":case">":case">":_["$[]="]("toc-position","right");break;case"top":case"^":_["$[]="]("toc-position","top");break;case"bottom":case"v":_["$[]="]("toc-position","bottom");break;case"preamble":case"macro":_["$[]="]("toc-position","content"),_["$[]="]("toc-placement",ce),ge=Z;break;default:_.$delete("toc-position"),ge=Z}X(ge)&&(X(z=_["$[]"]("toc-class"))||_["$[]="]("toc-class",ge))}if(X(Se=_["$[]"]("icons"))&&qe(_["$key?"]("icontype")))switch(Se){case"":case"font":break;default:_["$[]="]("icons",""),Pe(Se,"image")||_["$[]="]("icontype",Se)}return X(g.compat_mode=_["$key?"]("compat-mode"))&&X(_["$key?"]("language"))&&_["$[]="]("source-language",_["$[]"]("language")),X(g.parent_document)||(Pe(Be=_["$[]"]("basebackend"),"html")?X(Xe=_["$[]"]("source-highlighter"))&&qe(_["$[]"](""+Xe+"-unavailable"))&&(X(it=g.options["$[]"]("syntax_highlighter_factory"))?g.syntax_highlighter=it.$create(Xe,g.backend,J(["document"],{document:g})):X(pt=g.options["$[]"]("syntax_highlighters"))?g.syntax_highlighter=L(ie("SyntaxHighlighter"),"DefaultFactoryProxy").$new(pt).$create(Xe,g.backend,J(["document"],{document:g})):g.syntax_highlighter=ie("SyntaxHighlighter").$create(Xe,g.backend,J(["document"],{document:g}))):Pe(Be,"docbook")&&(X(g["$attribute_locked?"]("toc"))||X(g.attributes_modified["$include?"]("toc"))||_["$[]="]("toc",""),X(g["$attribute_locked?"]("sectnums"))||X(g.attributes_modified["$include?"]("sectnums"))||_["$[]="]("sectnums","")),g.outfilesuffix=_["$[]"]("outfilesuffix"),ye(ie("FLEXIBLE_ATTRIBUTES"),"each",[],function at(bt){var kt=at.$$s==null?this:at.$$s;return kt.attribute_overrides==null&&(kt.attribute_overrides=Z),bt==null&&(bt=Z),X(kt.attribute_overrides["$key?"](bt))&&X(kt.attribute_overrides["$[]"](bt))?kt.attribute_overrides.$delete(bt):Z},{$$s:g})),g.header_attributes=_.$merge()}),Ue(D,"$fill_datetime_attributes",function(g,u){var _,z=this,S=Z,b=Z,F=Z,H=Z,ge=Z,ce=Z,Se=Z,Be=Z;return S=X(L("ENV")["$key?"]("SOURCE_DATE_EPOCH"))?b=L("Time").$at(z.$Integer(L("ENV")["$[]"]("SOURCE_DATE_EPOCH"))).$utc():L("Time").$now(),X(F=g["$[]"]("localdate"))?X(H=g["$[]"]("localyear"))||g["$[]="]("localyear",Pe(F.$index("-"),4)?F.$slice(0,4):Z):(F=(_=["localdate",S.$strftime("%F")],ye(g,"[]=",_),_[_.length-1]),X(H=g["$[]"]("localyear"))||g["$[]="]("localyear",S.$year().$to_s())),ge=X(H=g["$[]"]("localtime"))?H:(_=["localtime",S.$strftime("%T "+(Pe(S.$utc_offset(),0)?"UTC":"%z"))],ye(g,"[]=",_),_[_.length-1]),X(H=g["$[]"]("localdatetime"))||g["$[]="]("localdatetime",""+F+" "+ge),u=X(H=X(ce=b)?ce:u)?H:S,X(Se=g["$[]"]("docdate"))?X(H=g["$[]"]("docyear"))||g["$[]="]("docyear",Pe(Se.$index("-"),4)?Se.$slice(0,4):Z):(Se=(_=["docdate",u.$strftime("%F")],ye(g,"[]=",_),_[_.length-1]),X(H=g["$[]"]("docyear"))||g["$[]="]("docyear",u.$year().$to_s())),Be=X(H=g["$[]"]("doctime"))?H:(_=["doctime",u.$strftime("%T "+(Pe(u.$utc_offset(),0)?"UTC":"%z"))],ye(g,"[]=",_),_[_.length-1]),X(H=g["$[]"]("docdatetime"))||g["$[]="]("docdatetime",""+Se+" "+Be),Z}),Ue(D,"$update_backend_attributes",function(g,u){var _,z,S=this,b=Z,F=Z,H=Z,ge=Z,ce=Z,Se=Z,Be=Z,Xe=Z,it=Z,pt=Z,at=Z,bt=Z,kt=Z,Et=Z;return u==null&&(u=Z),X(u)||Ze(g,S.backend)?(b=S.backend,F=(H=S.attributes)["$[]"]("basebackend"),ge=S.doctype,X(g["$include?"](":"))&&(z=g.$partition(":"),_=R(z),ce=_[0]==null?Z:_[0],_[1]==null||_[1],g=_[2]==null?Z:_[2]),X(g["$start_with?"]("xhtml"))?(H["$[]="]("htmlsyntax","xml"),g=g.$slice(1,g.$length())):X(g["$start_with?"]("html"))&&(X(Se=H["$[]"]("htmlsyntax"))||H["$[]="]("htmlsyntax","html")),g=X(Se=ie("BACKEND_ALIASES")["$[]"](g))?Se:g,X(ce)&&(_=[ce,g],g=_[0],Be=_[1]),X(ge)?(X(b)&&(H.$delete("backend-"+b),H.$delete("backend-"+b+"-doctype-"+ge)),H["$[]="]("backend-"+g+"-doctype-"+ge,""),H["$[]="]("doctype-"+ge,"")):X(b)&&H.$delete("backend-"+b),H["$[]="]("backend-"+g,""),S.backend=(_=["backend",g],ye(H,"[]=",_),_[_.length-1]),ht(L(ie("Converter"),"BackendTraits"),Xe=S.$create_converter(g,Be))?(it=Xe.$basebackend(),pt=Xe.$filetype(),X(at=Xe.$htmlsyntax())&&H["$[]="]("htmlsyntax",at),X(u)?X(Se=H["$[]"]("outfilesuffix"))||H["$[]="]("outfilesuffix",Xe.$outfilesuffix()):X(S["$attribute_locked?"]("outfilesuffix"))||H["$[]="]("outfilesuffix",Xe.$outfilesuffix())):X(Xe)?(bt=ie("Converter").$derive_backend_traits(g),it=bt["$[]"]("basebackend"),pt=bt["$[]"]("filetype"),X(u)?X(Se=H["$[]"]("outfilesuffix"))||H["$[]="]("outfilesuffix",bt["$[]"]("outfilesuffix")):X(S["$attribute_locked?"]("outfilesuffix"))||H["$[]="]("outfilesuffix",bt["$[]"]("outfilesuffix"))):S.$raise(L("NotImplementedError"),"asciidoctor: FAILED: missing converter for backend '"+g+"'. Processing aborted."),S.converter=Xe,X(kt=H["$[]"]("filetype"))&&H.$delete("filetype-"+kt),H["$[]="]("filetype",pt),H["$[]="]("filetype-"+pt,""),X(Et=ie("DEFAULT_PAGE_WIDTHS")["$[]"](it))?H["$[]="]("pagewidth",Et):H.$delete("pagewidth"),Ze(it,F)&&(X(ge)?(X(F)&&(H.$delete("basebackend-"+F),H.$delete("basebackend-"+F+"-doctype-"+ge)),H["$[]="]("basebackend-"+it+"-doctype-"+ge,"")):X(F)&&H.$delete("basebackend-"+F),H["$[]="]("basebackend-"+it,""),H["$[]="]("basebackend",it)),g):Z},-2),Ue(D,"$update_doctype_attributes",function(g){var u,_=this,z=Z,S=Z,b=Z,F=Z;return X(g)&&Ze(g,_.doctype)?(u=[_.backend,(z=_.attributes)["$[]"]("basebackend"),_.doctype],S=u[0],b=u[1],F=u[2],X(F)?(z.$delete("doctype-"+F),X(S)&&(z.$delete("backend-"+S+"-doctype-"+F),z["$[]="]("backend-"+S+"-doctype-"+g,"")),X(b)&&(z.$delete("basebackend-"+b+"-doctype-"+F),z["$[]="]("basebackend-"+b+"-doctype-"+g,""))):(X(S)&&z["$[]="]("backend-"+S+"-doctype-"+g,""),X(b)&&z["$[]="]("basebackend-"+b+"-doctype-"+g,"")),z["$[]="]("doctype-"+g,""),_.doctype=(u=["doctype",g],ye(z,"[]=",u),u[u.length-1])):Z})}(Re[0],$e("AbstractBlock"),Re)}(lt[0],lt)},Opal.modules["asciidoctor/inline"]=function(a){var ue=a.module,se=a.klass,K=a.hash2,ye=a.send2,y=a.find_super,X=a.def,Ue=a.return_val,J=a.alias,qe=a.truthy,R=[],et=a.nil;return a.add_stubs("attr_accessor,attr_reader,[],convert,converter,attr,==,apply_reftext_subs,reftext"),function(Ne,Ke){var Le=ue(Ne,"Asciidoctor"),Pe=[Le].concat(Ke),ht=a.$r(Pe);return function(Ve,st){var Ye=se(Ve,st,"Inline"),Ze=Ye.$$prototype;return Ze.text=Ze.type=et,Ye.$attr_accessor("text"),Ye.$attr_reader("type"),Ye.$attr_accessor("target"),X(Ye,"$initialize",function dt(I,tt,C,rt){dt.$$p;var lt=this;return dt.$$p=null,C==null&&(C=et),rt==null&&(rt=K([],{})),ye(lt,y(lt,"initialize",dt,!1,!0),"initialize",[I,tt,rt],null),lt.node_name="inline_"+tt,lt.text=C,lt.id=rt["$[]"]("id"),lt.type=rt["$[]"]("type"),lt.target=rt["$[]"]("target")},-3),X(Ye,"$block?",Ue(!1)),X(Ye,"$inline?",Ue(!0)),X(Ye,"$convert",function(){var I=this;return I.$converter().$convert(I)}),J(Ye,"render","convert"),X(Ye,"$alt",function(){var I=this,tt=et;return qe(tt=I.$attr("alt"))?tt:""}),X(Ye,"$reftext?",function(){var I=this,tt=et,C=et;return qe(tt=I.text)?qe(C=I.type["$=="]("ref"))?C:I.type["$=="]("bibref"):tt}),X(Ye,"$reftext",function(){var I=this,tt=et;return qe(tt=I.text)?I.$apply_reftext_subs(tt):et}),X(Ye,"$xreftext",function(I){var tt=this;return tt.$reftext()},-1)}(Pe[0],ht("AbstractNode"))}(R[0],R)},Opal.modules["asciidoctor/list"]=function(a){var ue=a.module,se=a.klass,K=a.alias,ye=a.hash2,y=a.send2,X=a.find_super,Ue=a.def,J=a.truthy,qe=a.eqeq,R=[],et=a.nil;return a.add_stubs("blocks,blocks?,==,next_list,callouts,convert,class,object_id,inspect,size,items,parent,attr_accessor,level,drop,nil_or_empty?,apply_subs,attr_writer,empty?,===,[],outline?,!,simple?,source,shift,context"),function(Ne,Ke){var Le=ue(Ne,"Asciidoctor"),Pe=[Le].concat(Ke),ht=a.$r(Pe);return function(Ve,st){var Ye=se(Ve,st,"List"),Ze=Ye.$$prototype;return Ze.context=Ze.document=Ze.style=et,K(Ye,"items","blocks"),K(Ye,"content","blocks"),K(Ye,"items?","blocks?"),Ue(Ye,"$initialize",function dt(I,tt,C){var rt=dt.$$p||et,lt=this;return dt.$$p=null,C==null&&(C=ye([],{})),y(lt,X(lt,"initialize",dt,!1,!0),"initialize",[I,tt,C],rt)},-3),Ue(Ye,"$outline?",function(){var I=this,tt=et;return J(tt=I.context["$=="]("ulist"))?tt:I.context["$=="]("olist")}),Ue(Ye,"$convert",function dt(){var I=dt.$$p||et,tt=this,C=et;return dt.$$p=null,qe(tt.context,"colist")?(C=y(tt,X(tt,"convert",dt,!1,!0),"convert",[],I),tt.document.$callouts().$next_list(),C):y(tt,X(tt,"convert",dt,!1,!0),"convert",[],I)}),K(Ye,"render","convert"),Ue(Ye,"$to_s",function(){var I=this;return"#<"+I.$class()+"@"+I.$object_id()+" {context: "+I.context.$inspect()+", style: "+I.style.$inspect()+", items: "+I.$items().$size()+"}>"})}(Pe[0],ht("AbstractBlock")),function(Ve,st,Ye){var Ze=se(Ve,st,"ListItem"),dt=[Ze].concat(Ye),I=a.$r(dt),tt=Ze.$$prototype;return tt.text=tt.subs=tt.blocks=et,K(Ze,"list","parent"),Ze.$attr_accessor("marker"),Ue(Ze,"$initialize",function C(rt,lt){C.$$p;var Z=this;return C.$$p=null,lt==null&&(lt=et),y(Z,X(Z,"initialize",C,!1,!0),"initialize",[rt,"list_item"],null),Z.text=lt,Z.level=rt.$level(),Z.subs=I("NORMAL_SUBS").$drop(0)},-2),Ue(Ze,"$text?",function(){var rt=this;return!J(rt.text["$nil_or_empty?"]())}),Ue(Ze,"$text",function(){var rt=this,lt=et;return J(lt=rt.text)?rt.$apply_subs(rt.text,rt.subs):lt}),Ze.$attr_writer("text"),Ue(Ze,"$simple?",function(){var rt=this,lt=et,Z=et,L=et,He=et;return J(lt=rt.blocks["$empty?"]())?lt:J(Z=J(L=rt.blocks.$size()["$=="](1))?I("List")["$==="](He=rt.blocks["$[]"](0)):L)?He["$outline?"]():Z}),Ue(Ze,"$compound?",function(){var rt=this;return rt["$simple?"]()["$!"]()}),Ue(Ze,"$fold_first",function(){var rt=this;return rt.text=J(rt.text["$nil_or_empty?"]())?rt.blocks.$shift().$source():""+rt.text+I("LF")+rt.blocks.$shift().$source(),et}),Ue(Ze,"$to_s",function(){var rt=this,lt=et;return"#<"+rt.$class()+"@"+rt.$object_id()+" {list_context: "+rt.$parent().$context().$inspect()+", text: "+rt.text.$inspect()+", blocks: "+(J(lt=rt.blocks)?lt:[]).$size()+"}>"})}(Pe[0],ht("AbstractBlock"),Pe)}(R[0],R)},Opal.modules["asciidoctor/parser"]=function(a){var ue=a.module,se=a.klass,K=a.const_set,ye=a.send,y=a.truthy,X=a.hash2,Ue=a.to_ary,J=a.defs,qe=a.eqeq,R=a.not,et=a.gvars,Ne=a.neqeq,Ke=a.rb_plus,Le=a.rb_lt,Pe=a.rb_gt,ht=a.to_a,Ve=a.eqeqeq,st=a.rb_minus,Ye=a.rb_times,Ze=a.thrower,dt=[],I=a.nil,tt=a.$$$;return a.add_stubs("include,new,proc,start_with?,match?,is_delimited_block?,private_class_method,parse_document_header,[],has_more_lines?,next_section,assign_numeral,<<,blocks,skip_blank_lines,parse_block_metadata_lines,attributes,is_next_line_doctitle?,[]=,finalize_header,nil_or_empty?,title=,sourcemap,cursor,parse_section_title,id=,include?,sub_specialchars,sub_attributes,source_location=,header,attribute_locked?,id,clear,delete,instance_variable_get,parse_header_metadata,==,!,register,process_authors,update,doctype,parse_manpage_header,=~,downcase,error,logger,message_with_context,cursor_at_line,backend,save,is_next_line_section?,initialize_section,join,map,read_lines_until,lstrip,split,title,restore_save,discard_save,header?,empty?,context,!=,attr?,attr,key?,document,+,level,special,sectname,to_i,<,>,warn,next_block,blocks?,style,style=,parent=,content_model,content_model=,lines,subs,size,context=,shift,unwrap_standalone_preamble,source_location,merge,fetch,parse_block_metadata_line,extensions,block_macros?,mark,read_line,terminator,to_s,masq,to_sym,registered_for_block?,debug?,debug,cursor_at_mark,strict_verbatim_paragraphs,unshift_line,markdown_syntax,keys,chr,uniform?,length,end_with?,parse_attributes,attribute_missing,tr,basename,assign_caption,registered_for_block_macro?,config,process_method,replace,parse_callout_list,callouts,===,parse_list,parse_description_list,underline_style_section_titles,is_section_title?,peek_line,atx_section_title?,generate_id,level=,read_paragraph_lines,adjust_indentation!,map!,slice,pop,build_block,apply_subs,chop,catalog_inline_anchors,rekey,index,strip,-,parse_table,each,raise,title?,update_attributes,commit_subs,sub?,catalog_callouts,source,remove_sub,block_terminates_paragraph,to_proc,nil?,parse_blocks,parse_list_item,items,scan,gsub,count,advance,dup,match,callout_ids,next_list,catalog_inline_anchor,marker=,catalog_inline_biblio_anchor,set_option,text=,resolve_ordered_list_marker,read_lines_for_list_item,skip_line_comments,unshift_lines,fold_first,text?,is_sibling_list_item?,concat,find,casecmp,sectname=,special=,numbered=,numbered,lineno,peek_lines,setext_section_title?,abs,cursor_at_prev_line,process_attribute_entries,next_line_empty?,apply_header_subs,rstrip,each_with_index,compact,to_h,squeeze,to_a,parse_style_attribute,process_attribute_entry,skip_comment_lines,store_attribute,sanitize_attribute_name,set_attribute,save_to,delete_attribute,ord,int_to_roman,resolve_list_marker,parse_colspecs,create_columns,has_header_option=,format,starts_with_delimiter?,close_open_cell,parse_cellspec,delimiter,match_delimiter,pre_match,post_match,buffer_has_unclosed_quotes?,skip_past_delimiter,buffer=,buffer,skip_past_escaped_delimiter,keep_cell_open,push_cellspec,close_cell,cell_open?,columns,assign_column_widths,partition_header_footer,upto,partition,shorthand_property_syntax,each_char,yield_buffered_attribute,any?,*,each_byte,%"),function(C,rt){var lt=ue(C,"Asciidoctor"),Z=[lt].concat(rt);return function(L,He,ke){var Ie=se(L,He,"Parser"),Re=[Ie].concat(ke),$e=a.$r(Re);return Ie.$include($e("Logging")),K(Re[0],"BlockMatchData",$e("Struct").$new("context","masq","tip","terminator")),K(Re[0],"TAB"," "),K(Re[0],"TabIndentRx",/^\t+/),K(Re[0],"StartOfBlockProc",ye(Ie,"proc",[],function we(ee){var P=we.$$s==null?this:we.$$s,D=I,ae=I;return ee==null&&(ee=I),y(D=y(ae=ee["$start_with?"]("["))?$e("BlockAttributeLineRx")["$match?"](ee):ae)?D:P["$is_delimited_block?"](ee)},{$$s:Ie})),K(Re[0],"StartOfListProc",ye(Ie,"proc",[],function(ee){return ee==null&&(ee=I),$e("AnyListRx")["$match?"](ee)})),K(Re[0],"StartOfBlockOrListProc",ye(Ie,"proc",[],function we(ee){var P=we.$$s==null?this:we.$$s,D=I,ae=I,ie=I;return ee==null&&(ee=I),y(D=y(ae=P["$is_delimited_block?"](ee))?ae:y(ie=ee["$start_with?"]("["))?$e("BlockAttributeLineRx")["$match?"](ee):ie)?D:$e("AnyListRx")["$match?"](ee)},{$$s:Ie})),K(Re[0],"NoOp",I),K(Re[0],"AuthorKeys",["author","authorinitials","firstname","middlename","lastname","email"]),K(Re[0],"TableCellHorzAlignments",X(["<",">","^"],{"<":"left",">":"right","^":"center"})),K(Re[0],"TableCellVertAlignments",X(["<",">","^"],{"<":"top",">":"bottom","^":"middle"})),K(Re[0],"TableCellStyles",X(["d","s","e","m","h","l","a"],{d:"none",s:"strong",e:"emphasis",m:"monospaced",h:"header",l:"literal",a:"asciidoc"})),Ie.$private_class_method("new"),J(Ie,"$parse",function(ee,P,D){var ae,ie,me=this,G=I,g=I,u=I;if(D==null&&(D=X([],{})),G=me.$parse_document_header(ee,P,g=D["$[]"]("header_only")),!y(g))for(;y(ee["$has_more_lines?"]());)ie=me.$next_section(ee,P,G),ae=Ue(ie),u=ae[0]==null?I:ae[0],G=ae[1]==null?I:ae[1],y(u)&&(P.$assign_numeral(u),P.$blocks()["$<<"](u));return P},-3),J(Ie,"$parse_document_header",function(ee,P,D){var ae,ie,me,G=this,g=I,u=I,_=I,z=I,S=I,b=I,F=I,H=I,ge=I,ce=I,Se=I,Be=I,Xe=I,it=I,pt=I;return D==null&&(D=!1),g=y(ee.$skip_blank_lines())?G.$parse_block_metadata_lines(ee,P):X([],{}),u=P.$attributes(),y(_=G["$is_next_line_doctitle?"](ee,g,u["$[]"]("leveloffset")))&&y(g["$[]"]("title"))?(u["$[]="]("authorcount",0),P.$finalize_header(g,!1)):(y((z=u["$[]"]("doctitle"))["$nil_or_empty?"]())||P["$title="](S=z),y(_)?(y(P.$sourcemap())&&(b=ee.$cursor()),ie=G.$parse_section_title(ee,P),ae=Ue(ie),me=[ae[0]==null?I:ae[0]],ye(P,"id=",me),me[me.length-1],ae[1]==null||ae[1],F=ae[2]==null?I:ae[2],ae[3]==null||ae[3],H=ae[4]==null?I:ae[4],y(S)?F=I:(P["$title="](F),y((ae=["doctitle",S=P.$sub_specialchars(F)],ye(u,"[]=",ae),ae[ae.length-1])["$include?"]($e("ATTR_REF_HEAD")))&&u["$[]="]("doctitle",S=P.$sub_attributes(S,X(["attribute_missing"],{attribute_missing:"skip"})))),y(b)&&P.$header()["$source_location="](b),y(H)||y(P["$attribute_locked?"]("compat-mode"))||u["$[]="]("compat-mode",""),y(ge=g["$[]"]("separator"))&&(y(P["$attribute_locked?"]("title-separator"))||u["$[]="]("title-separator",ge)),y(ce=g["$[]"]("id"))?P["$id="](ce):ce=P.$id(),y(Se=g["$[]"]("role"))&&u["$[]="]("role",Se),y(Be=g["$[]"]("reftext"))&&u["$[]="]("reftext",Be),g.$clear(),(Xe=P.$instance_variable_get("@attributes_modified")).$delete("doctitle"),G.$parse_header_metadata(ee,P,I),y(Xe["$include?"]("doctitle"))?y((z=u["$[]"]("doctitle"))["$nil_or_empty?"]())||qe(z,S)?u["$[]="]("doctitle",S):P["$title="](z):R(F)&&Xe["$<<"]("doctitle"),y(ce)&&P.$register("refs",[ce,P])):y(it=u["$[]"]("author"))?(pt=G.$process_authors(it,!0,!1),y(u["$[]"]("authorinitials"))&&pt.$delete("authorinitials"),u.$update(pt)):y(it=u["$[]"]("authors"))?(pt=G.$process_authors(it,!0),u.$update(pt)):u["$[]="]("authorcount",0),qe(P.$doctype(),"manpage")&&G.$parse_manpage_header(ee,P,g,D),P.$finalize_header(g))},-3),J(Ie,"$parse_manpage_header",function(ee,P,D,ae){var ie,me=this,G=I,g=I,u=I,_=I,z=I,S=I,b=I,F=I,H=I,ge=I,ce=I,Se=I;return ae==null&&(ae=!1),y($e("ManpageTitleVolnumRx")["$=~"]((G=P.$attributes())["$[]"]("doctitle")))?(G["$[]="]("manvolnum",g=(ie=et["~"])===I?I:ie["$[]"](2)),G["$[]="]("mantitle",(y((u=(ie=et["~"])===I?I:ie["$[]"](1))["$include?"]($e("ATTR_REF_HEAD")))?P.$sub_attributes(u):u).$downcase())):(me.$logger().$error(me.$message_with_context("non-conforming manpage title",X(["source_location"],{source_location:ee.$cursor_at_line(1)}))),G["$[]="]("mantitle",y(_=y(z=G["$[]"]("doctitle"))?z:G["$[]"]("docname"))?_:"command"),G["$[]="]("manvolnum",g="1")),y(S=G["$[]"]("manname"))&&y(G["$[]"]("manpurpose"))?(y(_=G["$[]"]("manname-title"))||G["$[]="]("manname-title","Name"),G["$[]="]("mannames",[S]),qe(P.$backend(),"manpage")&&(G["$[]="]("docname",S),G["$[]="]("outfilesuffix","."+g))):y(ae)||(ee.$skip_blank_lines(),ee.$save(),D.$update(me.$parse_block_metadata_lines(ee,P)),y(b=me["$is_next_line_section?"](ee,X([],{})))?qe(b,1)?(F=me.$initialize_section(ee,P,X([],{})),H=ye(ee.$read_lines_until(X(["break_on_blank_lines","skip_line_comments"],{break_on_blank_lines:!0,skip_line_comments:!0})),"map",[],function(Xe){return Xe==null&&(Xe=I),Xe.$lstrip()}).$join(" "),y($e("ManpageNamePurposeRx")["$=~"](H))?(y((S=(ie=et["~"])===I?I:ie["$[]"](1))["$include?"]($e("ATTR_REF_HEAD")))&&(S=P.$sub_attributes(S)),y(S["$include?"](","))?S=(ge=ye(S.$split(","),"map",[],function(Xe){return Xe==null&&(Xe=I),Xe.$lstrip()}))["$[]"](0):ge=[S],y((ce=(ie=et["~"])===I?I:ie["$[]"](2))["$include?"]($e("ATTR_REF_HEAD")))&&(ce=P.$sub_attributes(ce)),y(_=G["$[]"]("manname-title"))||G["$[]="]("manname-title",F.$title()),y(F.$id())&&G["$[]="]("manname-id",F.$id()),G["$[]="]("manname",S),G["$[]="]("mannames",ge),G["$[]="]("manpurpose",ce),qe(P.$backend(),"manpage")&&(G["$[]="]("docname",S),G["$[]="]("outfilesuffix","."+g))):Se="non-conforming name section body"):Se="name section must be at level 1":Se="name section expected",y(Se)?(ee.$restore_save(),me.$logger().$error(me.$message_with_context(Se,X(["source_location"],{source_location:ee.$cursor()}))),G["$[]="]("manname",S=y(_=G["$[]"]("docname"))?_:"command"),G["$[]="]("mannames",[S]),qe(P.$backend(),"manpage")&&(G["$[]="]("docname",S),G["$[]="]("outfilesuffix","."+g))):ee.$discard_save()),I},-4),J(Ie,"$next_section",function(ee,P,D){var ae,ie,me=this,G=I,g=I,u=I,_=I,z=I,S=I,b=I,F=I,H=I,ge=I,ce=I,Se=I,Be=I,Xe=I,it=I,pt=I,at=I,bt=I,kt=I,Et=I;for(D==null&&(D=X([],{})),G=g=u=!1,qe(P.$context(),"document")&&y(P.$blocks()["$empty?"]())&&(y(_=P["$header?"]())||y(D.$delete("invalid-header"))||R(me["$is_next_line_section?"](ee,D)))?(z=(S=P).$doctype()["$=="]("book"),(y(_)||y(z)&&Ne(D["$[]"](1),"abstract"))&&(G=g=$e("Block").$new(P,"preamble",X(["content_model"],{content_model:"compound"})),y(z)&&y(P["$attr?"]("preface-title"))&&G["$title="](P.$attr("preface-title")),P.$blocks()["$<<"](G)),b=P,F=0,y(P.$attributes()["$key?"]("fragment"))?H=-1:y(z)?(ae=[1,0],H=ae[0],ge=ae[1]):H=1):(z=(S=P.$document()).$doctype()["$=="]("book"),b=me.$initialize_section(ee,P,D),D=y(ce=D["$[]"]("title"))?X(["title"],{title:ce}):X([],{}),H=Ke(F=b.$level(),1),qe(F,0)?u=z:qe(F,1)&&y(b.$special())&&(qe(Se=b.$sectname(),"appendix")||qe(Se,"preface")||qe(Se,"abstract")||(H=I))),ee.$skip_blank_lines();y(ee["$has_more_lines?"]());){if(me.$parse_block_metadata_lines(ee,S,D),y(Be=me["$is_next_line_section?"](ee,D)))if(y(S["$attr?"]("leveloffset"))&&(Be=Ke(Be,S.$attr("leveloffset").$to_i()),y(Le(Be,0))&&(Be=0)),y(Pe(Be,F)))y(H)?qe(Be,H)||y(ge)&&qe(Be,ge)||y(Le(H,0))||(Xe=y(ge)?"expected levels "+ge+" or "+H:"expected level "+H,me.$logger().$warn(me.$message_with_context("section title out of sequence: "+Xe+", got level "+Be,X(["source_location"],{source_location:ee.$cursor()})))):me.$logger().$error(me.$message_with_context(""+Se+" sections do not support nested sections",X(["source_location"],{source_location:ee.$cursor()}))),ie=me.$next_section(ee,b,D),ae=Ue(ie),it=ae[0]==null?I:ae[0],D=ae[1]==null?I:ae[1],b.$assign_numeral(it),b.$blocks()["$<<"](it);else if(qe(Be,0)&&qe(b,S))y(z)||me.$logger().$error(me.$message_with_context("level 0 sections can only be used when doctype is book",X(["source_location"],{source_location:ee.$cursor()}))),ie=me.$next_section(ee,b,D),ae=Ue(ie),it=ae[0]==null?I:ae[0],D=ae[1]==null?I:ae[1],b.$assign_numeral(it),b.$blocks()["$<<"](it);else break;else pt=ee.$cursor(),y(at=me.$next_block(ee,y(bt=g)?bt:b,D,X(["parse_metadata"],{parse_metadata:!1})))&&(y(u)&&(R(b["$blocks?"]())?Ne(at.$style(),"partintro")?qe(at.$style(),"open")&&qe(at.$context(),"open")?at["$style="]("partintro"):(at["$parent="](g=$e("Block").$new(b,"open",X(["content_model"],{content_model:"compound"}))),g["$style="]("partintro"),b.$blocks()["$<<"](g)):qe(at.$content_model(),"simple")&&(at["$content_model="]("compound"),at["$<<"]($e("Block").$new(at,"paragraph",X(["source","subs"],{source:at.$lines(),subs:at.$subs()}))),at.$lines().$clear(),at.$subs().$clear()):qe(b.$blocks().$size(),1)&&(kt=b.$blocks()["$[]"](0),R(g)&&qe(kt.$content_model(),"compound")?me.$logger().$error(me.$message_with_context("illegal block content outside of partintro block",X(["source_location"],{source_location:pt}))):Ne(kt.$content_model(),"compound")&&(at["$parent="](g=$e("Block").$new(b,"open",X(["content_model"],{content_model:"compound"}))),qe(kt.$style(),(ae=["partintro"],ye(g,"style=",ae),ae[ae.length-1]))&&(kt["$context="]("paragraph"),kt["$style="](I)),b.$blocks().$shift(),g["$<<"](kt),b.$blocks()["$<<"](g)))),(y(bt=g)?bt:b).$blocks()["$<<"](at),D.$clear());if(!y(bt=ee.$skip_blank_lines()))break}if(y(u))y(b["$blocks?"]())&&qe(b.$blocks()["$[]"](-1).$context(),"section")||me.$logger().$error(me.$message_with_context("invalid part, must have at least one section (e.g., chapter, appendix, etc.)",X(["source_location"],{source_location:ee.$cursor()})));else if(y(G))if(y(G["$blocks?"]()))if(y(z)||y(S.$blocks()["$[]"](1))||R($e("Compliance").$unwrap_standalone_preamble()))y(S.$sourcemap())&&G["$source_location="](G.$blocks()["$[]"](0).$source_location());else for(S.$blocks().$shift();y(Et=G.$blocks().$shift());)S["$<<"](Et);else S.$blocks().$shift();return[qe(b,P)?I:b,D.$merge()]},-3),J(Ie,"$next_block",function(ee,P,D,ae){var ie,me,G=this,g=I,u=I,_=I,z=I,S=I,b=I,F=I,H=I,ge=I,ce=I,Se=I,Be=I,Xe=I,it=I,pt=I,at=I,bt=I,kt=I,Et=I,wt=I,Nt=I,Tt=I,Vt=I,jt=I,er=I,Kt=I,Pt=I,Yt=I,Xt=I,nr=I,Xn=I,sn=I,Zt=I,Ut=I,Jt=I,Cr=I,Ht=I,Sr=I,mn=I,Tr=I,Er=I,wn=I,Pr=I,Qr=I,ia=I,sa=I,Zc=I,aa=I,Oc=I;if(et["~"]==null&&(et["~"]=I),D==null&&(D=X([],{})),ae==null&&(ae=X([],{})),!y(g=ee.$skip_blank_lines()))return I;if(y(u=ae["$[]"]("text_only"))&&y(Pe(g,0))&&(ae.$delete("text_only"),u=I),_=P.$document(),y(ae.$fetch("parse_metadata",!0))){for(;y(G.$parse_block_metadata_line(ee,_,D,ae));)if(ee.$shift(),!y(z=ee.$skip_blank_lines()))return I}if(y(S=_.$extensions())&&(ie=[S["$blocks?"](),S["$block_macros?"]()],b=ie[0],F=ie[1]),ee.$mark(),ie=[ee.$read_line(),_.$attributes(),D["$[]"](1)],H=ie[0],ge=ie[1],ce=ie[2],Se=Be=Xe=it=I,y(pt=G["$is_delimited_block?"](H,!0))&&(Be=Xe=pt.$context(),it=pt.$terminator(),y(ce)?qe(ce,Be.$to_s())||(y(pt.$masq()["$include?"](ce))?Be=ce.$to_sym():y(pt.$masq()["$include?"]("admonition"))&&y($e("ADMONITION_STYLES")["$include?"](ce))?Be="admonition":y(b)&&y(S["$registered_for_block?"](ce,Be))?Be=ce.$to_sym():(y(G.$logger()["$debug?"]())&&G.$logger().$debug(G.$message_with_context("unknown style for "+Be+" block: "+ce,X(["source_location"],{source_location:ee.$cursor_at_mark()}))),ce=Be.$to_s())):ce=(ie=["style",Be.$to_s()],ye(D,"[]=",ie),ie[ie.length-1])),!y(pt))for(;y(!0);){if(y(ce)&&y($e("Compliance").$strict_verbatim_paragraphs())&&y($e("VERBATIM_STYLES")["$include?"](ce))){Be=ce.$to_sym(),ee.$unshift_line(H);break}if(y(u))at=H["$start_with?"](" ",$e("TAB"));else if(bt=$e("Compliance").$markdown_syntax(),y(H["$start_with?"](" "))){if(ie=[!0," "],at=ie[0],kt=ie[1],y(bt)&&y(ye(H.$lstrip(),"start_with?",ht($e("MARKDOWN_THEMATIC_BREAK_CHARS").$keys())))&&y($e("MarkdownThematicBreakRx")["$match?"](H))){Se=$e("Block").$new(P,"thematic_break",X(["content_model"],{content_model:"empty"}));break}}else if(y(H["$start_with?"]($e("TAB"))))ie=[!0,$e("TAB")],at=ie[0],kt=ie[1];else if(ie=[!1,H.$chr()],at=ie[0],kt=ie[1],Et=y(bt)?$e("HYBRID_LAYOUT_BREAK_CHARS"):$e("LAYOUT_BREAK_CHARS"),y(Et["$key?"](kt))&&y(y(bt)?$e("ExtLayoutBreakRx")["$match?"](H):y(z=G["$uniform?"](H,kt,wt=H.$length()))?Pe(wt,2):z)){Se=$e("Block").$new(P,Et["$[]"](kt),X(["content_model"],{content_model:"empty"}));break}else if(y(H["$end_with?"]("]"))&&y(H["$include?"]("::"))){if((qe(kt,"i")||y(H["$start_with?"]("video:","audio:")))&&y($e("BlockMediaMacroRx")["$=~"](H))){if(ie=[((me=et["~"])===I?I:me["$[]"](1)).$to_sym(),(me=et["~"])===I?I:me["$[]"](2),(me=et["~"])===I?I:me["$[]"](3)],Nt=ie[0],Tt=ie[1],Vt=ie[2],Se=$e("Block").$new(P,Nt,X(["content_model"],{content_model:"empty"})),y(Vt)){switch(Nt){case"video":jt=["poster","width","height"];break;case"audio":jt=[];break;default:jt=["alt","width","height"]}Se.$parse_attributes(Vt,jt,X(["sub_input","into"],{sub_input:!0,into:D}))}if(y(D["$key?"]("style"))&&D.$delete("style"),y(Tt["$include?"]($e("ATTR_REF_HEAD")))){if(y((er=Se.$sub_attributes(Tt))["$empty?"]())&&qe(y(z=ge["$[]"]("attribute-missing"))?z:$e("Compliance").$attribute_missing(),"drop-line")&&y(Se.$sub_attributes(Ke(Tt," "),X(["attribute_missing","drop_line_severity"],{attribute_missing:"drop-line",drop_line_severity:"ignore"}))["$empty?"]()))return D.$clear(),I;Tt=er}qe(Nt,"image")&&(_.$register("images",Tt),D["$[]="]("imagesdir",ge["$[]"]("imagesdir")),y(z=D["$[]"]("alt"))||D["$[]="]("alt",y(Kt=ce)?Kt:(ie=["default-alt",$e("Helpers").$basename(Tt,!0).$tr("_-"," ")],ye(D,"[]=",ie),ie[ie.length-1])),y((Pt=D.$delete("scaledwidth"))["$nil_or_empty?"]())||D["$[]="]("scaledwidth",y($e("TrailingDigitsRx")["$match?"](Pt))?""+Pt+"%":Pt),y(D["$[]"]("title"))&&(Se["$title="](Yt=D.$delete("title")),Se.$assign_caption(D.$delete("caption"),"figure"))),D["$[]="]("target",Tt);break}else if(qe(kt,"t")&&y(H["$start_with?"]("toc:"))&&y($e("BlockTocMacroRx")["$=~"](H))){Se=$e("Block").$new(P,"toc",X(["content_model"],{content_model:"empty"})),y((ie=et["~"])===I?I:ie["$[]"](1))&&Se.$parse_attributes((ie=et["~"])===I?I:ie["$[]"](1),[],X(["into"],{into:D}));break}else if(y(y(F)?y(z=y(Kt=$e("CustomBlockMacroRx")["$=~"](H))?Xt=S["$registered_for_block_macro?"]((ie=et["~"])===I?I:ie["$[]"](1)):Kt)?z:nr=G.$logger()["$debug?"]():y(z=G.$logger()["$debug?"]())?nr=$e("CustomBlockMacroRx")["$=~"](H):z))if(y(nr))G.$logger().$debug(G.$message_with_context("unknown name for block macro: "+((ie=et["~"])===I?I:ie["$[]"](1)),X(["source_location"],{source_location:ee.$cursor_at_mark()})));else{if(Xn=(ie=et["~"])===I?I:ie["$[]"](3),y((Tt=(ie=et["~"])===I?I:ie["$[]"](2))["$include?"]($e("ATTR_REF_HEAD")))){if(y((er=P.$sub_attributes(Tt))["$empty?"]())&&qe(y(z=ge["$[]"]("attribute-missing"))?z:$e("Compliance").$attribute_missing(),"drop-line")&&y(P.$sub_attributes(Ke(Tt," "),X(["attribute_missing","drop_line_severity"],{attribute_missing:"drop-line",drop_line_severity:"ignore"}))["$empty?"]()))return D.$clear(),I;Tt=er}if(qe((sn=Xt.$config())["$[]"]("content_model"),"attributes")?y(Xn)&&_.$parse_attributes(Xn,y(z=y(Kt=sn["$[]"]("positional_attrs"))?Kt:sn["$[]"]("pos_attrs"))?z:[],X(["sub_input","into"],{sub_input:!0,into:D})):D["$[]="]("text",y(z=Xn)?z:""),y(Zt=sn["$[]"]("default_attrs"))&&ye(D,"update",[Zt],function(an,Cs){return Cs==null&&(Cs=I),Cs}),y(Se=Xt.$process_method()["$[]"](P,Tt,D))&&Ne(Se,P)){D.$replace(Se.$attributes());break}else return D.$clear(),I}}if(R(at)&&qe(kt=y(z=kt)?z:H.$chr(),"<")&&y($e("CalloutListRx")["$=~"](H))){ee.$unshift_line(H),Se=G.$parse_callout_list(ee,et["~"],P,_.$callouts()),D["$[]="]("style","arabic");break}else if(y($e("UnorderedListRx")["$match?"](H))){ee.$unshift_line(H),R(ce)&&Ve($e("Section"),P)&&qe(P.$sectname(),"bibliography")&&D["$[]="]("style",ce="bibliography"),Se=G.$parse_list(ee,"ulist",P,ce);break}else if(y($e("OrderedListRx")["$match?"](H))){ee.$unshift_line(H),Se=G.$parse_list(ee,"olist",P,ce),y(Se.$style())&&D["$[]="]("style",Se.$style());break}else if((y(H["$include?"]("::"))||y(H["$include?"](";;")))&&y($e("DescriptionListRx")["$=~"](H))){ee.$unshift_line(H),Se=G.$parse_description_list(ee,et["~"],P);break}else if((qe(ce,"float")||qe(ce,"discrete"))&&y(y($e("Compliance").$underline_style_section_titles())?G["$is_section_title?"](H,ee.$peek_line()):y(z=at["$!"]())?G["$atx_section_title?"](H):z)){ee.$unshift_line(H),me=G.$parse_section_title(ee,_,D["$[]"]("id")),ie=Ue(me),Ut=ie[0]==null?I:ie[0],Jt=ie[1]==null?I:ie[1],Yt=ie[2]==null?I:ie[2],Cr=ie[3]==null?I:ie[3],y(Jt)&&D["$[]="]("reftext",Jt),Se=$e("Block").$new(P,"floating_title",X(["content_model"],{content_model:"empty"})),Se["$title="](Yt),D.$delete("title"),Se["$id="](y(z=Ut)?z:y(ge["$key?"]("sectids"))?$e("Section").$generate_id(Se.$title(),_):I),Se["$level="](Cr);break}else if(y(ce)&&Ne(ce,"normal"))if(y($e("PARAGRAPH_STYLES")["$include?"](ce))){Be=ce.$to_sym(),Xe="paragraph",ee.$unshift_line(H);break}else if(y($e("ADMONITION_STYLES")["$include?"](ce))){Be="admonition",Xe="paragraph",ee.$unshift_line(H);break}else if(y(b)&&y(S["$registered_for_block?"](ce,"paragraph"))){Be=ce.$to_sym(),Xe="paragraph",ee.$unshift_line(H);break}else y(G.$logger()["$debug?"]())&&G.$logger().$debug(G.$message_with_context("unknown style for paragraph: "+ce,X(["source_location"],{source_location:ee.$cursor_at_mark()}))),ce=I;if(ee.$unshift_line(H),y(at)&&R(ce))Ht=G.$read_paragraph_lines(ee,Sr=qe(g,0)?ae["$[]"]("list_type"):I,X(["skip_line_comments"],{skip_line_comments:u})),G["$adjust_indentation!"](Ht),y(u)||qe(Sr,"dlist")?Se=$e("Block").$new(P,"paragraph",X(["content_model","source","attributes"],{content_model:"simple",source:Ht,attributes:D})):Se=$e("Block").$new(P,"literal",X(["content_model","source","attributes"],{content_model:"verbatim",source:Ht,attributes:D}));else{if(Ht=G.$read_paragraph_lines(ee,y(z=g["$=="](0))?ae["$[]"]("list_type"):z,X(["skip_line_comments"],{skip_line_comments:!0})),y(u))y(at)&&qe(ce,"normal")&&G["$adjust_indentation!"](Ht),Se=$e("Block").$new(P,"paragraph",X(["content_model","source","attributes"],{content_model:"simple",source:Ht,attributes:D}));else if(y($e("ADMONITION_STYLE_HEADS")["$include?"](kt))&&y(H["$include?"](":"))&&y($e("AdmonitionParagraphRx")["$=~"](H)))Ht["$[]="](0,(ie=et["~"])===I?I:ie.$post_match()),D["$[]="]("name",mn=(ie=["style",(me=et["~"])===I?I:me["$[]"](1)],ye(D,"[]=",ie),ie[ie.length-1]).$downcase()),D["$[]="]("textlabel",y(z=D.$delete("caption"))?z:ge["$[]"](""+mn+"-caption")),Se=$e("Block").$new(P,"admonition",X(["content_model","source","attributes"],{content_model:"simple",source:Ht,attributes:D}));else if(y(bt)&&qe(kt,">")&&y(H["$start_with?"]("> "))){if(ye(Ht,"map!",[],function(an){return an==null&&(an=I),qe(an,">")?an.$slice(1,an.$length()):y(an["$start_with?"]("> "))?an.$slice(2,an.$length()):an}),y(Ht["$[]"](-1)["$start_with?"]("-- "))&&(Tr=(Tr=Ht.$pop()).$slice(3,Tr.$length()),!y(Ht["$empty?"]())))for(;y(Ht["$[]"](-1)["$empty?"]());)Ht.$pop();D["$[]="]("style","quote"),Se=G.$build_block("quote","compound",!1,P,$e("Reader").$new(Ht),D),y(Tr)&&(me=Se.$apply_subs(Tr).$split(", ",2),ie=Ue(me),Er=ie[0]==null?I:ie[0],wn=ie[1]==null?I:ie[1],y(Er)&&D["$[]="]("attribution",Er),y(wn)&&D["$[]="]("citetitle",wn))}else if(qe(kt,'"')&&y(Pe(Ht.$size(),1))&&y(Ht["$[]"](-1)["$start_with?"]("-- "))&&y(Ht["$[]"](-2)["$end_with?"]('"'))){for(Ht["$[]="](0,H.$slice(1,H.$length())),Tr=(Tr=Ht.$pop()).$slice(3,Tr.$length());y(Ht["$[]"](-1)["$empty?"]());)Ht.$pop();Ht["$<<"](Ht.$pop().$chop()),D["$[]="]("style","quote"),Se=$e("Block").$new(P,"quote",X(["content_model","source","attributes"],{content_model:"simple",source:Ht,attributes:D})),me=Se.$apply_subs(Tr).$split(", ",2),ie=Ue(me),Er=ie[0]==null?I:ie[0],wn=ie[1]==null?I:ie[1],y(Er)&&D["$[]="]("attribution",Er),y(wn)&&D["$[]="]("citetitle",wn)}else y(at)&&qe(ce,"normal")&&G["$adjust_indentation!"](Ht),Se=$e("Block").$new(P,"paragraph",X(["content_model","source","attributes"],{content_model:"simple",source:Ht,attributes:D}));G.$catalog_inline_anchors(Ht.$join($e("LF")),Se,_,ee)}break}if(!y(Se))switch(Be){case"listing":case"source":(qe(Be,"source")||R(D["$[]"](1))&&y(Pr=y(Kt=D["$[]"](2))?Kt:ge["$[]"]("source-language")))&&(y(Pr)?(D["$[]="]("style","source"),D["$[]="]("language",Pr),$e("AttributeList").$rekey(D,[I,I,"linenums"])):($e("AttributeList").$rekey(D,[I,"language","linenums"]),y(D["$key?"]("language"))||y(ge["$key?"]("source-language"))&&D["$[]="]("language",ge["$[]"]("source-language"))),y(D["$key?"]("linenums"))||(y(D["$[]"]("linenums-option"))||y(ge["$[]"]("source-linenums-option")))&&D["$[]="]("linenums",""),y(D["$key?"]("indent"))||y(ge["$key?"]("source-indent"))&&D["$[]="]("indent",ge["$[]"]("source-indent"))),Se=G.$build_block("listing","verbatim",it,P,ee,D);break;case"fenced_code":D["$[]="]("style","source"),y(Pe(wt=H.$length(),3))&&(y(Qr=(Pr=H.$slice(3,wt)).$index(","))?y(Pe(Qr,0))?(Pr=Pr.$slice(0,Qr).$strip(),y(Le(Qr,st(wt,4)))&&D["$[]="]("linenums","")):y(Pe(wt,4))&&D["$[]="]("linenums",""):Pr=Pr.$lstrip()),y(Pr["$nil_or_empty?"]())?y(ge["$key?"]("source-language"))&&D["$[]="]("language",ge["$[]"]("source-language")):D["$[]="]("language",Pr),y(D["$key?"]("linenums"))||(y(D["$[]"]("linenums-option"))||y(ge["$[]"]("source-linenums-option")))&&D["$[]="]("linenums",""),y(D["$key?"]("indent"))||y(ge["$key?"]("source-indent"))&&D["$[]="]("indent",ge["$[]"]("source-indent")),it=it.$slice(0,3),Se=G.$build_block("listing","verbatim",it,P,ee,D);break;case"table":ia=ee.$cursor(),sa=$e("Reader").$new(ee.$read_lines_until(X(["terminator","skip_line_comments","context","cursor"],{terminator:it,skip_line_comments:!0,context:"table",cursor:"at_mark"})),ia),y(it["$start_with?"]("|","!"))||y(Kt=D["$[]"]("format"))||D["$[]="]("format",y(it["$start_with?"](","))?"csv":"dsv"),Se=G.$parse_table(sa,P,D);break;case"sidebar":Se=G.$build_block(Be,"compound",it,P,ee,D);break;case"admonition":D["$[]="]("name",mn=ce.$downcase()),D["$[]="]("textlabel",y(Kt=D.$delete("caption"))?Kt:ge["$[]"](""+mn+"-caption")),Se=G.$build_block(Be,"compound",it,P,ee,D);break;case"open":case"abstract":case"partintro":Se=G.$build_block("open","compound",it,P,ee,D);break;case"literal":Se=G.$build_block(Be,"verbatim",it,P,ee,D);break;case"example":y(D["$[]"]("collapsible-option"))&&D["$[]="]("caption",""),Se=G.$build_block(Be,"compound",it,P,ee,D);break;case"quote":case"verse":$e("AttributeList").$rekey(D,[I,"attribution","citetitle"]),Se=G.$build_block(Be,qe(Be,"verse")?"verbatim":"compound",it,P,ee,D);break;case"stem":case"latexmath":case"asciimath":qe(Be,"stem")&&D["$[]="]("style",$e("STEM_TYPE_ALIASES")["$[]"](y(Kt=D["$[]"](2))?Kt:ge["$[]"]("stem"))),Se=G.$build_block("stem","raw",it,P,ee,D);break;case"pass":Se=G.$build_block(Be,"raw",it,P,ee,D);break;case"comment":return G.$build_block(Be,"skip",it,P,ee,D),D.$clear(),I;default:if(y(b)&&y(Xt=S["$registered_for_block?"](Be,Xe))){if(qe(Zc=(sn=Xt.$config())["$[]"]("content_model"),"skip")||(y((aa=y(Kt=sn["$[]"]("positional_attrs"))?Kt:sn["$[]"]("pos_attrs"))["$nil_or_empty?"]())||$e("AttributeList").$rekey(D,Ke([I],aa)),y(Zt=sn["$[]"]("default_attrs"))&&ye(Zt,"each",[],function(an,Cs){var bo;return an==null&&(an=I),Cs==null&&(Cs=I),y(Kt=D["$[]"](an))?Kt:(bo=[an,Cs],ye(D,"[]=",bo),bo[bo.length-1])}),D["$[]="]("cloaked-context",Xe)),!y(Se=G.$build_block(Be,Zc,it,P,ee,D,X(["extension"],{extension:Xt}))))return D.$clear(),I}else G.$raise("Unsupported block type "+Be+" at "+ee.$cursor())}return y(_.$sourcemap())&&Se["$source_location="](ee.$cursor_at_mark()),y(D["$[]"]("title"))&&(Se["$title="](Yt=D.$delete("title")),y($e("CAPTION_ATTRIBUTE_NAMES")["$[]"](Se.$context()))&&Se.$assign_caption(D.$delete("caption"))),Se["$style="](D["$[]"]("style")),y(Oc=y(z=Se.$id())?z:(ie=[D["$[]"]("id")],ye(Se,"id=",ie),ie[ie.length-1]))&&(y(y(Yt)?Yt["$include?"]($e("ATTR_REF_HEAD")):Se["$title?"]())&&Se.$title(),y(_.$register("refs",[Oc,Se]))||G.$logger().$warn(G.$message_with_context("id assigned to block already in use: "+Oc,X(["source_location"],{source_location:ee.$cursor_at_mark()})))),y(D["$empty?"]())||Se.$update_attributes(D),Se.$commit_subs(),y(Se["$sub?"]("callouts"))&&(y(G.$catalog_callouts(Se.$source(),_))||Se.$remove_sub("callouts")),Se},-3),J(Ie,"$read_paragraph_lines",function(ee,P,D){var ae=I;return D==null&&(D=X([],{})),D["$[]="]("break_on_blank_lines",!0),D["$[]="]("break_on_list_continuation",!0),D["$[]="]("preserve_last_line",!0),ae=y(P)?y($e("Compliance").$block_terminates_paragraph())?$e("StartOfBlockOrListProc"):$e("StartOfListProc"):y($e("Compliance").$block_terminates_paragraph())?$e("StartOfBlockProc"):$e("NoOp"),ye(ee,"read_lines_until",[D],ae.$to_proc())},-3),J(Ie,"$is_delimited_block?",function(ee,P){var D,ae,ie=this,me=I,G=I,g=I,u=I,_=I;if(P==null&&(P=I),!(y(Pe(me=ee.$length(),1))&&y($e("DELIMITED_BLOCK_HEADS")["$[]"](ee.$slice(0,2)))))return I;if(qe(me,2))G=ee,g=2;else if(y(Le(me,5))?(G=ee,g=me):G=ee.$slice(0,g=4),y($e("Compliance").$markdown_syntax())&&y(G["$start_with?"]("`"))){if(qe(g,4)){if(qe(G,"````")||Ne(G=G.$chop(),"```"))return I;ee=G,me=g=3}else if(Ne(G,"```"))return I}else if(qe(g,3))return I;return ae=$e("DELIMITED_BLOCKS")["$[]"](G),D=Ue(ae),u=D[0]==null?I:D[0],_=D[1]==null?I:D[1],y(u)&&(qe(me,g)||y(ie["$uniform?"](ee.$slice(1,me),$e("DELIMITED_BLOCK_TAILS")["$[]"](G),st(me,1))))?y(P)?$e("BlockMatchData").$new(u,_,G,ee):!0:I},-2),J(Ie,"$build_block",function(ee,P,D,ae,ie,me,G){var g,u=this,_=I,z=I,S=I,b=I,F=I,H=I,ge=I,ce=I,Se=I,Be=I,Xe=I;switch(G==null&&(G=X([],{})),P){case"skip":g=[!0,"simple"],_=g[0],z=g[1];break;case"raw":g=[!1,"simple"],_=g[0],z=g[1];break;default:g=[!1,P],_=g[0],z=g[1]}switch(y(D["$nil?"]())?(qe(z,"verbatim")?S=ie.$read_lines_until(X(["break_on_blank_lines","break_on_list_continuation"],{break_on_blank_lines:!0,break_on_list_continuation:!0})):(qe(P,"compound")&&(P="simple"),S=u.$read_paragraph_lines(ie,!1,X(["skip_line_comments","skip_processing"],{skip_line_comments:!0,skip_processing:_}))),b=I):Ne(z,"compound")?(S=ie.$read_lines_until(X(["terminator","skip_processing","context","cursor"],{terminator:D,skip_processing:_,context:ee,cursor:"at_mark"})),b=I):qe(D,!1)?(S=I,b=ie):(S=I,F=ie.$cursor(),b=$e("Reader").$new(ie.$read_lines_until(X(["terminator","skip_processing","context","cursor"],{terminator:D,skip_processing:_,context:ee,cursor:"at_mark"})),F)),P){case"verbatim":H=(y(ge=me["$[]"]("tabsize"))?ge:ae.$document().$attributes()["$[]"]("tabsize")).$to_i(),y(ce=me["$[]"]("indent"))?u["$adjust_indentation!"](S,ce.$to_i(),H):y(Pe(H,0))&&u["$adjust_indentation!"](S,-1,H);break;case"skip":return I}if(y(Se=G["$[]"]("extension")))if(me.$delete("style"),y(Be=Se.$process_method()["$[]"](ae,y(Xe=b)?Xe:$e("Reader").$new(S),me.$merge()))&&Ne(Be,ae))me.$replace(Be.$attributes()),qe(Be.$content_model(),"compound")&&Ve($e("Block"),Be)&&R((S=Be.$lines())["$empty?"]())&&(P="compound",b=$e("Reader").$new(S));else return I;else Be=$e("Block").$new(ae,ee,X(["content_model","source","attributes"],{content_model:P,source:S,attributes:me}));return qe(P,"compound")&&u.$parse_blocks(b,Be),Be},-7),J(Ie,"$parse_blocks",function(ee,P,D){var ae=this,ie=I,me=I,G=I;if(D==null&&(D=I),y(D))for(;y(y(ie=y(me=G=ae.$next_block(ee,P,D.$merge()))?P.$blocks()["$<<"](G):me)?ie:ee["$has_more_lines?"]()););else for(;y(y(ie=y(me=G=ae.$next_block(ee,P))?P.$blocks()["$<<"](G):me)?ie:ee["$has_more_lines?"]()););return I},-3),J(Ie,"$parse_list",function(ee,P,D,ae){var ie,me=this,G=I,g=I,u=I,_=I;for(et["~"]==null&&(et["~"]=I),G=$e("List").$new(D,P),g=$e("ListRxMap")["$[]"](P);y(y(u=ee["$has_more_lines?"]())?g["$=~"](ee.$peek_line()):u)&&(y(_=me.$parse_list_item(ee,G,et["~"],(ie=et["~"])===I?I:ie["$[]"](1),ae))&&G.$items()["$<<"](_),!!y(u=ee.$skip_blank_lines())););return G}),J(Ie,"$catalog_callouts",function(ee,P){var D=I,ae=I;return D=!1,ae=0,y(ee["$include?"]("<"))&&ye(ee,"scan",[$e("CalloutScanRx")],function(){var me;return y(((me=et["~"])===I?I:me["$[]"](0))["$start_with?"]("\\"))||P.$callouts().$register(qe((me=et["~"])===I?I:me["$[]"](2),".")?(ae=Ke(ae,1)).$to_s():(me=et["~"])===I?I:me["$[]"](2)),D=!0}),D}),J(Ie,"$catalog_inline_anchor",function(ee,P,D,ae,ie){var me=this;return ie==null&&(ie=D.$document()),y(P)&&y(P["$include?"]($e("ATTR_REF_HEAD")))&&(P=ie.$sub_attributes(P)),y(ie.$register("refs",[ee,$e("Inline").$new(D,"anchor",P,X(["type","id"],{type:"ref",id:ee}))]))||(Ve($e("Reader"),ae)&&(ae=ae.$cursor()),me.$logger().$warn(me.$message_with_context("id assigned to anchor already in use: "+ee,X(["source_location"],{source_location:ae})))),I},-5),J(Ie,"$catalog_inline_anchors",function(ee,P,D,ae){var ie=this;return(y(ee["$include?"]("[["))||y(ee["$include?"]("or:")))&&ye(ee,"scan",[$e("InlineAnchorScanRx")],function me(){var G,g=me.$$s==null?this:me.$$s,u=I,_=I,z=I,S=I;if(y(u=(G=et["~"])===I?I:G["$[]"](1))){if(y(_=(G=et["~"])===I?I:G["$[]"](2))&&y(_["$include?"]($e("ATTR_REF_HEAD")))&&y((_=D.$sub_attributes(_))["$empty?"]()))return I}else u=(G=et["~"])===I?I:G["$[]"](3),y(_=(G=et["~"])===I?I:G["$[]"](4))&&(y(_["$include?"]("]"))?(_=_.$gsub("\\]","]"),y(_["$include?"]($e("ATTR_REF_HEAD")))&&(_=D.$sub_attributes(_))):y(_["$include?"]($e("ATTR_REF_HEAD")))&&y((_=D.$sub_attributes(_))["$empty?"]())&&(_=I));return y(D.$register("refs",[u,$e("Inline").$new(P,"anchor",_,X(["type","id"],{type:"ref",id:u}))]))?I:(z=ae.$cursor_at_mark(),y(Pe(S=Ke(((G=et["~"])===I?I:G.$pre_match()).$count($e("LF")),y(((G=et["~"])===I?I:G["$[]"](0))["$start_with?"]($e("LF")))?1:0),0))&&(z=z.$dup()).$advance(S),g.$logger().$warn(g.$message_with_context("id assigned to anchor already in use: "+u,X(["source_location"],{source_location:z}))))},{$$s:ie}),I}),J(Ie,"$catalog_inline_biblio_anchor",function(ee,P,D,ae){var ie=this,me=I;return y(D.$document().$register("refs",[ee,$e("Inline").$new(D,"anchor",y(me=P)?"["+P+"]":me,X(["type","id"],{type:"bibref",id:ee}))]))||ie.$logger().$warn(ie.$message_with_context("id assigned to bibliography anchor already in use: "+ee,X(["source_location"],{source_location:ae.$cursor()}))),I}),J(Ie,"$parse_description_list",function(ee,P,D){var ae=this,ie=I,me=I,G=I,g=I,u=I;for(et["~"]==null&&(et["~"]=I),ie=$e("List").$new(D,"dlist"),me=$e("DescriptionListSiblingRx")["$[]"](P["$[]"](2)),ie.$items()["$<<"](G=ae.$parse_list_item(ee,ie,P,me));y(y(g=ee["$has_more_lines?"]())?me["$=~"](ee.$peek_line()):g);)u=ae.$parse_list_item(ee,ie,et["~"],me),y(G["$[]"](1))?ie.$items()["$<<"](G=u):(G["$[]"](0)["$<<"](u["$[]"](0)["$[]"](0)),G["$[]="](1,u["$[]"](1)));return ie}),J(Ie,"$parse_callout_list",function(ee,P,D,ae){var ie=this,me=I,G=I,g=I,u=I,_=I,z=I,S=I,b=I;for(me=$e("List").$new(D,"colist"),G=1,g=0;y(y(u=P)?u:y(_=P=$e("CalloutListRx").$match(ee.$peek_line()))?ee.$mark():_);)qe(z=P["$[]"](1),".")&&(z=(g=Ke(g,1)).$to_s()),qe(z,G.$to_s())||ie.$logger().$warn(ie.$message_with_context("callout list item index: expected "+G+", got "+z,X(["source_location"],{source_location:ee.$cursor_at_mark()}))),y(S=ie.$parse_list_item(ee,me,P,"<1>"))&&(me.$items()["$<<"](S),y((b=ae.$callout_ids(me.$items().$size()))["$empty?"]())?ie.$logger().$warn(ie.$message_with_context("no callout found for <"+me.$items().$size()+">",X(["source_location"],{source_location:ee.$cursor_at_mark()}))):S.$attributes()["$[]="]("coids",b)),G=Ke(G,1),P=I;return ae.$next_list(),me}),J(Ie,"$parse_list_item",function(ee,P,D,ae,ie){var me,G,g=this,u=I,_=I,z=I,S=I,b=I,F=I,H=I,ge=I,ce=I,Se=I,Be=I,Xe=I,it=I,pt=I,at=I,bt=I,kt=I,Et=I,wt=I,Nt=I;if(ie==null&&(ie=I),qe(u=P.$context(),"dlist"))_=!0,z=$e("ListItem").$new(P,S=D["$[]"](1)),y(S["$start_with?"]("[["))&&y($e("LeadingInlineAnchorRx")["$=~"](S))&&g.$catalog_inline_anchor((me=et["~"])===I?I:me["$[]"](1),y(b=(me=et["~"])===I?I:me["$[]"](2))?b:((me=et["~"])===I?I:me.$post_match()).$lstrip(),z,ee),y(F=D["$[]"](3))&&(H=!0),ge=$e("ListItem").$new(P,F),y(P.$document().$sourcemap())&&(z["$source_location="](ee.$cursor()),y(H)?ge["$source_location="](z.$source_location()):ce=!0);else switch(H=!0,ge=$e("ListItem").$new(P,F=D["$[]"](2)),y(P.$document().$sourcemap())&&ge["$source_location="](ee.$cursor()),u){case"ulist":ge["$marker="](ae),y(F["$start_with?"]("["))&&(y(ie)&&qe(ie,"bibliography")?y($e("InlineBiblioAnchorRx")["$=~"](F))&&g.$catalog_inline_biblio_anchor((me=et["~"])===I?I:me["$[]"](1),(me=et["~"])===I?I:me["$[]"](2),ge,ee):y(F["$start_with?"]("[["))?y($e("LeadingInlineAnchorRx")["$=~"](F))&&g.$catalog_inline_anchor((me=et["~"])===I?I:me["$[]"](1),(me=et["~"])===I?I:me["$[]"](2),ge,ee):y(F["$start_with?"]("[ ] ","[x] ","[*] "))&&(P.$set_option("checklist"),ge.$attributes()["$[]="]("checkbox",""),y(F["$start_with?"]("[ "))||ge.$attributes()["$[]="]("checked",""),ge["$text="](F.$slice(4,F.$length()))));break;case"olist":G=g.$resolve_ordered_list_marker(ae,Se=P.$items().$size(),!0,ee),me=Ue(G),ae=me[0]==null?I:me[0],Be=me[1]==null?I:me[1],ge["$marker="](ae),qe(Se,0)&&R(ie)&&P["$style="](y(Xe=Be)?Xe:(y(it=$e("ORDERED_LIST_STYLES")["$[]"](st(ae.$length(),1)))?it:"arabic").$to_s()),y(F["$start_with?"]("[["))&&y($e("LeadingInlineAnchorRx")["$=~"](F))&&g.$catalog_inline_anchor((me=et["~"])===I?I:me["$[]"](1),(me=et["~"])===I?I:me["$[]"](2),ge,ee);break;default:ge["$marker="](ae),y(F["$start_with?"]("[["))&&y($e("LeadingInlineAnchorRx")["$=~"](F))&&g.$catalog_inline_anchor((me=et["~"])===I?I:me["$[]"](1),(me=et["~"])===I?I:me["$[]"](2),ge,ee)}if(ee.$shift(),pt=ee.$cursor(),at=$e("Reader").$new(g.$read_lines_for_list_item(ee,u,ae,H),pt),y(at["$has_more_lines?"]())){for(y(ce)&&ge["$source_location="](pt),bt=at.$skip_line_comments(),y(kt=at.$peek_line())&&(y(bt["$empty?"]())||at.$unshift_lines(bt),y(kt["$empty?"]())||(Et=!0,y(_)||(H=I))),y(wt=g.$next_block(at,ge,X([],{}),X(["text_only","list_type"],{text_only:y(H)?I:!0,list_type:u})))&&ge.$blocks()["$<<"](wt);y(at["$has_more_lines?"]());)y(wt=g.$next_block(at,ge,X([],{}),X(["list_type"],{list_type:u})))&&ge.$blocks()["$<<"](wt);y(Et)&&y(Nt=ge.$blocks()["$[]"](0))&&qe(Nt.$context(),"paragraph")&&ge.$fold_first()}return y(_)?[[z],y(ge["$text?"]())||y(ge["$blocks?"]())?ge:I]:ge},-5),J(Ie,"$read_lines_for_list_item",function(ee,P,D,ae){var ie,me=this,G=I,g=I,u=I,_=I,z=I,S=I,b=I,F=I,H=I,ge=I,ce=I,Se=I,Be=I,Xe=I,it=I;for(D==null&&(D=I),ae==null&&(ae=!0),G=[],g="inactive",u=!1,_=I,z=P["$=="]("dlist");y(ee["$has_more_lines?"]())&&(S=ee.$read_line(),!y(me["$is_sibling_list_item?"](S,P,D)));){if(b=y(G["$empty?"]())?I:G["$[]"](-1),qe(b,$e("LIST_CONTINUATION"))&&(qe(g,"inactive")&&(g="active",ae=!0,y(u)||G["$[]="](-1,"")),qe(S,$e("LIST_CONTINUATION")))){Ne(g,"frozen")&&(g="frozen",G["$<<"](S)),S=I;continue}if(y(F=me["$is_delimited_block?"](S,!0))){if(!qe(g,"active"))break;G["$<<"](S),G.$concat(ee.$read_lines_until(X(["terminator","read_last_line","context"],{terminator:F.$terminator(),read_last_line:!0,context:I}))),g="inactive"}else if(y(z)&&Ne(g,"active")&&y(S["$start_with?"]("["))&&y($e("BlockAttributeLineRx")["$match?"](S))){for(H=[S];y(ge=ee.$peek_line());){if(y(me["$is_delimited_block?"](ge)))ce=!0;else if(y(ge["$empty?"]())||y(ge["$start_with?"]("["))&&y($e("BlockAttributeLineRx")["$match?"](ge))){H["$<<"](ee.$read_line());continue}else y($e("AnyListRx")["$match?"](ge))&&R(me["$is_sibling_list_item?"](ge,P,D))?G.$concat(H):ce=!0;break}if(y(ce)){ee.$unshift_lines(H);break}}else if(qe(g,"active")&&R(S["$empty?"]()))y($e("LiteralParagraphRx")["$match?"](S))?(ee.$unshift_line(S),y(z)?G.$concat(ye(ee,"read_lines_until",[X(["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 pt(at){var bt=pt.$$s==null?this:pt.$$s;return at==null&&(at=I),bt["$is_sibling_list_item?"](at,P,D)},{$$s:me})):G.$concat(ee.$read_lines_until(X(["preserve_last_line","break_on_blank_lines","break_on_list_continuation"],{preserve_last_line:!0,break_on_blank_lines:!0,break_on_list_continuation:!0}))),g="inactive"):qe(Se=S.$chr(),".")&&y($e("BlockTitleRx")["$match?"](S))||qe(Se,"[")&&y($e("BlockAttributeLineRx")["$match?"](S))||qe(Se,":")&&y($e("AttributeEntryRx")["$match?"](S))?G["$<<"](S):(y(Be=ye(y(u)?["dlist"]:$e("NESTABLE_LIST_CONTEXTS"),"find",[],function(at){return at==null&&(at=I),$e("ListRxMap")["$[]"](at)["$match?"](S)}))&&(u=!0,qe(Be,"dlist")&&y(((ie=et["~"])===I?I:ie["$[]"](3))["$nil_or_empty?"]())&&(ae=!1)),G["$<<"](S),g="inactive");else if(y(b)&&y(b["$empty?"]())){if(y(S["$empty?"]())&&(!y(S=y(Xe=ee.$skip_blank_lines())?ee.$read_line():Xe)||y(me["$is_sibling_list_item?"](S,P,D))))break;if(qe(S,$e("LIST_CONTINUATION")))_=G.$size(),G["$<<"](S);else if(y(ae)){if(y(me["$is_sibling_list_item?"](S,P,D)))break;if(y(Be=ye($e("NESTABLE_LIST_CONTEXTS"),"find",[],function(at){return at==null&&(at=I),$e("ListRxMap")["$[]"](at)["$=~"](S)})))G["$<<"](S),u=!0,qe(Be,"dlist")&&y(((ie=et["~"])===I?I:ie["$[]"](3))["$nil_or_empty?"]())&&(ae=!1);else if(y($e("LiteralParagraphRx")["$match?"](S)))ee.$unshift_line(S),y(z)?G.$concat(ye(ee,"read_lines_until",[X(["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 pt(at){var bt=pt.$$s==null?this:pt.$$s;return at==null&&(at=I),bt["$is_sibling_list_item?"](at,P,D)},{$$s:me})):G.$concat(ee.$read_lines_until(X(["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 y(u)||G.$pop(),G["$<<"](S),ae=!0}else y(S["$empty?"]())||(ae=!0),y(Be=ye(y(u)?["dlist"]:$e("NESTABLE_LIST_CONTEXTS"),"find",[],function(at){return at==null&&(at=I),$e("ListRxMap")["$[]"](at)["$=~"](S)}))&&(u=!0,qe(Be,"dlist")&&y(((ie=et["~"])===I?I:ie["$[]"](3))["$nil_or_empty?"]())&&(ae=!1)),G["$<<"](S);S=I}for(y(S)&&ee.$unshift_line(S),y(_)&&G["$[]="](_,"");!y(G["$empty?"]());)if(y((it=G["$[]"](-1))["$empty?"]()))G.$pop();else{qe(it,$e("LIST_CONTINUATION"))&&G.$pop();break}return G},-3),J(Ie,"$initialize_section",function(ee,P,D){var ae,ie,me=this,G=I,g=I,u=I,_=I,z=I,S=I,b=I,F=I,H=I,ge=I,ce=I,Se=I,Be=I,Xe=I,it=I,pt=I,at=I;return D==null&&(D=X([],{})),G=P.$document(),g=(u=G.$doctype())["$=="]("book"),y(G.$sourcemap())&&(_=ee.$cursor()),z=D["$[]"](1),ie=me.$parse_section_title(ee,G,D["$[]"]("id")),ae=Ue(ie),S=ae[0]==null?I:ae[0],b=ae[1]==null?I:ae[1],F=ae[2]==null?I:ae[2],H=ae[3]==null?I:ae[3],ge=ae[4]==null?I:ae[4],y(z)?y(g)&&qe(z,"abstract")?(ae=["chapter",1],ce=ae[0],H=ae[1]):y(z["$start_with?"]("sect"))&&y($e("SectionLevelStyleRx")["$match?"](z))?ce="section":(ae=[z,!0],ce=ae[0],Se=ae[1],qe(H,0)&&(H=1),Be=ce["$=="]("appendix")):y(g)?ce=qe(H,0)?"part":y(Pe(H,1))?"section":"chapter":qe(u,"manpage")&&qe(F.$casecmp("synopsis"),0)?(ae=["synopsis",!0],ce=ae[0],Se=ae[1]):ce="section",y(b)&&D["$[]="]("reftext",b),Xe=$e("Section").$new(P,H),ae=[S,F,ce,_],ie=[ae[0]],ye(Xe,"id=",ie),ie[ie.length-1],ie=[ae[1]],ye(Xe,"title=",ie),ie[ie.length-1],ie=[ae[2]],ye(Xe,"sectname=",ie),ie[ie.length-1],ie=[ae[3]],ye(Xe,"source_location=",ie),ie[ie.length-1],y(Se)?(Xe["$special="](!0),y(Be)?Xe["$numbered="](!0):qe(G.$attributes()["$[]"]("sectnums"),"all")&&Xe["$numbered="](y(g)&&qe(H,1)?"chapter":!0)):y(G.$attributes()["$[]"]("sectnums"))&&y(Pe(H,0))?Xe["$numbered="](y(Xe.$special())?y(it=P.$numbered())||it:!0):y(g)&&qe(H,0)&&y(G.$attributes()["$[]"]("partnums"))&&Xe["$numbered="](!0),y(pt=y(it=Xe.$id())?it:(ae=[y(G.$attributes()["$key?"]("sectids"))?at=$e("Section").$generate_id(Xe.$title(),G):I],ye(Xe,"id=",ae),ae[ae.length-1]))&&(y(at)||R(F["$include?"]($e("ATTR_REF_HEAD")))||Xe.$title(),y(G.$register("refs",[pt,Xe]))||me.$logger().$warn(me.$message_with_context("id assigned to section already in use: "+pt,X(["source_location"],{source_location:ee.$cursor_at_line(st(ee.$lineno(),y(ge)?1:2))})))),Xe.$update_attributes(D),ee.$skip_blank_lines(),Xe},-3),J(Ie,"$is_next_line_section?",function(ee,P){var D=this,ae=I,ie=I,me=I;return y(ae=P["$[]"](1))&&(qe(ae,"discrete")||qe(ae,"float"))?I:y($e("Compliance").$underline_style_section_titles())?(ie=ee.$peek_lines(2,y(me=ae)?ae["$=="]("comment"):me),D["$is_section_title?"](y(me=ie["$[]"](0))?me:"",ie["$[]"](1))):D["$atx_section_title?"](y(me=ee.$peek_line())?me:"")}),J(Ie,"$is_next_line_doctitle?",function(ee,P,D){var ae=this,ie=I,me=I;return y(D)?y(ie=me=ae["$is_next_line_section?"](ee,P))?Ke(me,D.$to_i())["$=="](0):ie:ae["$is_next_line_section?"](ee,P)["$=="](0)}),J(Ie,"$is_section_title?",function(ee,P){var D=this,ae=I;return P==null&&(P=I),y(ae=D["$atx_section_title?"](ee))?ae:y(P["$nil_or_empty?"]())?I:D["$setext_section_title?"](ee,P)},-2),J(Ie,"$atx_section_title?",function(ee){var P,D=I;return y(y($e("Compliance").$markdown_syntax())?y(D=ee["$start_with?"]("=","#"))?$e("ExtAtxSectionTitleRx")["$=~"](ee):D:y(D=ee["$start_with?"]("="))?$e("AtxSectionTitleRx")["$=~"](ee):D)?st(((P=et["~"])===I?I:P["$[]"](1)).$length(),1):I}),J(Ie,"$setext_section_title?",function(ee,P){var D=this,ae=I,ie=I,me=I;return y(ie=$e("SETEXT_SECTION_LEVELS")["$[]"](me=P.$chr()))&&y(D["$uniform?"](P,me,ae=P.$length()))&&y($e("SetextSectionTitleRx")["$match?"](ee))&&y(Le(st(ee.$length(),ae).$abs(),2))?ie:I}),J(Ie,"$parse_section_title",function(ee,P,D){var ae,ie,me=this,G=I,g=I,u=I,_=I,z=I,S=I,b=I,F=I,H=I;return D==null&&(D=I),G=I,g=ee.$read_line(),y(y($e("Compliance").$markdown_syntax())?y(u=g["$start_with?"]("=","#"))?$e("ExtAtxSectionTitleRx")["$=~"](g):u:y(u=g["$start_with?"]("="))?$e("AtxSectionTitleRx")["$=~"](g):u)?(ae=[st(((ie=et["~"])===I?I:ie["$[]"](1)).$length(),1),(ie=et["~"])===I?I:ie["$[]"](2),!0],_=ae[0],z=ae[1],S=ae[2],y(D)||y(z["$end_with?"]("]]"))&&y($e("InlineSectionAnchorRx")["$=~"](z))&&R((ae=et["~"])===I?I:ae["$[]"](1))&&(ae=[z.$slice(0,st(z.$length(),((ie=et["~"])===I?I:ie["$[]"](0)).$length())),(ie=et["~"])===I?I:ie["$[]"](2),(ie=et["~"])===I?I:ie["$[]"](3)],z=ae[0],D=ae[1],G=ae[2])):y($e("Compliance").$underline_style_section_titles())&&y(H=ee.$peek_line(!0))&&y(_=$e("SETEXT_SECTION_LEVELS")["$[]"](F=H.$chr()))&&y(me["$uniform?"](H,F,b=H.$length()))&&y(z=y(u=$e("SetextSectionTitleRx")["$=~"](g))?(ae=et["~"])===I?I:ae["$[]"](1):u)&&y(Le(st(g.$length(),b).$abs(),2))?(S=!1,y(D)||y(z["$end_with?"]("]]"))&&y($e("InlineSectionAnchorRx")["$=~"](z))&&R((ae=et["~"])===I?I:ae["$[]"](1))&&(ae=[z.$slice(0,st(z.$length(),((ie=et["~"])===I?I:ie["$[]"](0)).$length())),(ie=et["~"])===I?I:ie["$[]"](2),(ie=et["~"])===I?I:ie["$[]"](3)],z=ae[0],D=ae[1],G=ae[2]),ee.$shift()):me.$raise("Unrecognized section at "+ee.$cursor_at_prev_line()),y(P["$attr?"]("leveloffset"))&&(_=Ke(_,P.$attr("leveloffset").$to_i()),y(Le(_,0))&&(_=0)),[D,G,z,_,S]},-3),J(Ie,"$parse_header_metadata",function(ee,P,D){var ae,ie=this,me=I,G=I,g=I,u=I,_=I,z=I,S=I,b=I,F=I,H=I,ge=I,ce=I,Se=I,Be=I,Xe=I,it=I,pt=I,at=I,bt=I;if(P==null&&(P=I),D==null&&(D=!0),me=y(G=P)?P.$attributes():G,ie.$process_attribute_entries(ee,P),y(ee["$has_more_lines?"]())&&R(ee["$next_line_empty?"]())?(g=(u=ie.$process_authors(ee.$read_line())).$delete("authorcount"),y(P)&&y(Pe((ae=["authorcount",g],ye(me,"[]=",ae),ae[ae.length-1]),0))&&(ye(u,"each",[],function(Et,wt){var Nt;return Et==null&&(Et=I),wt==null&&(wt=I),y(me["$key?"](Et))?I:(Nt=[Et,P.$apply_header_subs(wt)],ye(me,"[]=",Nt),Nt[Nt.length-1])}),_=me["$[]"]("author"),z=me["$[]"]("authorinitials"),S=me["$[]"]("authors")),u["$[]="]("authorcount",g),ie.$process_attribute_entries(ee,P),y(ee["$has_more_lines?"]())&&R(ee["$next_line_empty?"]())&&(b=ee.$read_line(),y(F=$e("RevisionInfoLineRx").$match(b))?(H=X([],{}),y(F["$[]"](1))&&H["$[]="]("revnumber",F["$[]"](1).$rstrip()),y((ge=F["$[]"](2).$strip())["$empty?"]())||(R(F["$[]"](1))&&y(ge["$start_with?"]("v"))?H["$[]="]("revnumber",ge.$slice(1,ge.$length())):H["$[]="]("revdate",ge)),y(F["$[]"](3))&&H["$[]="]("revremark",F["$[]"](3).$rstrip()),y(P)&&R(H["$empty?"]())&&ye(H,"each",[],function(Et,wt){var Nt;return Et==null&&(Et=I),wt==null&&(wt=I),y(me["$key?"](Et))?I:(Nt=[Et,P.$apply_header_subs(wt)],ye(me,"[]=",Nt),Nt[Nt.length-1])})):ee.$unshift_line(b)),ie.$process_attribute_entries(ee,P),ee.$skip_blank_lines()):u=X([],{}),y(P)){if(y(me["$key?"]("author"))&&Ne(ce=me["$[]"]("author"),_))Se=ie.$process_authors(ce,!0,!1),Ne(me["$[]"]("authorinitials"),z)&&Se.$delete("authorinitials");else if(y(me["$key?"]("authors"))&&Ne(ce=me["$[]"]("authors"),S))Se=ie.$process_authors(ce,!0);else{for(ae=[[],1,"author_1",!1,!1],Be=ae[0],Xe=ae[1],it=ae[2],pt=ae[3],at=ae[4];y(me["$key?"](it));)qe(bt=me["$[]"](it),u["$[]"](it))?(Be["$<<"](I),at=!0):(Be["$<<"](bt),pt=!0),it="author_"+(Xe=Ke(Xe,1));y(pt)?(y(at)&&ye(Be,"each_with_index",[],function(Et,wt){var Nt,Tt=I;return Et==null&&(Et=I),wt==null&&(wt=I),y(Et)?I:(Nt=[wt,ye([u["$[]"]("firstname_"+(Tt=Ke(wt,1))),u["$[]"]("middlename_"+Tt),u["$[]"]("lastname_"+Tt)].$compact(),"map",[],function(jt){return jt==null&&(jt=I),jt.$tr(" ","_")}).$join(" ")],ye(Be,"[]=",Nt),Nt[Nt.length-1])}),Se=ie.$process_authors(Be,!0,!1)):Se=X(["authorcount"],{authorcount:0})}qe(Se["$[]"]("authorcount"),0)?y(g)?Se=I:me["$[]="]("authorcount",0):(me.$update(Se),R(me["$key?"]("email"))&&y(me["$key?"]("email_1"))&&me["$[]="]("email",me["$[]"]("email_1")))}return y(D)?u.$merge(H.$to_h(),Se.$to_h()):I},-2),J(Ie,"$process_authors",function(ee,P,D){var ae=I,ie=I;return P==null&&(P=!1),D==null&&(D=!0),ae=X([],{}),ie=0,ye(y(D)&&y(ee["$include?"](";"))?ee.$split($e("AuthorDelimiterRx")):[].concat(ht(ee)),"each",[],function(G){var g,u=I,_=I,z=I,S=I,b=I,F=I,H=I;return G==null&&(G=I),y(G["$empty?"]())?I:(u=X([],{}),qe(ie=Ke(ie,1),1)?ye($e("AuthorKeys"),"each",[],function(ce){var Se;return ce==null&&(ce=I),Se=[ce.$to_sym(),ce],ye(u,"[]=",Se),Se[Se.length-1]}):ye($e("AuthorKeys"),"each",[],function(ce){var Se;return ce==null&&(ce=I),Se=[ce.$to_sym(),""+ce+"_"+ie],ye(u,"[]=",Se),Se[Se.length-1]}),y(P)?(y(G["$include?"]("<"))&&(ae["$[]="](u["$[]"]("author"),G.$tr("_"," ")),G=G.$gsub($e("XmlSanitizeRx"),"")),qe((_=G.$split(I,3)).$size(),3)&&_["$<<"](_.$pop().$squeeze(" "))):y(z=$e("AuthorInfoLineRx").$match(G))&&(_=z.$to_a()).$shift(),y(_)?(S=(g=[u["$[]"]("firstname"),b=_["$[]"](0).$tr("_"," ")],ye(ae,"[]=",g),g[g.length-1]),ae["$[]="](u["$[]"]("authorinitials"),b.$chr()),y(_["$[]"](1))&&(y(_["$[]"](2))?(ae["$[]="](u["$[]"]("middlename"),F=_["$[]"](1).$tr("_"," ")),ae["$[]="](u["$[]"]("lastname"),H=_["$[]"](2).$tr("_"," ")),S=Ke(Ke(Ke(Ke(b," "),F)," "),H),ae["$[]="](u["$[]"]("authorinitials"),""+b.$chr()+F.$chr()+H.$chr())):(ae["$[]="](u["$[]"]("lastname"),H=_["$[]"](1).$tr("_"," ")),S=Ke(Ke(b," "),H),ae["$[]="](u["$[]"]("authorinitials"),""+b.$chr()+H.$chr()))),y(ae["$[]"](u["$[]"]("author")))||ae["$[]="](u["$[]"]("author"),S),y(P)||R(_["$[]"](3))||ae["$[]="](u["$[]"]("email"),_["$[]"](3))):(ae["$[]="](u["$[]"]("author"),(g=[u["$[]"]("firstname"),b=G.$squeeze(" ").$strip()],ye(ae,"[]=",g),g[g.length-1])),ae["$[]="](u["$[]"]("authorinitials"),b.$chr())),qe(ie,1)?(g=["authors",ae["$[]"](u["$[]"]("author"))],ye(ae,"[]=",g),g[g.length-1]):(qe(ie,2)&&ye($e("AuthorKeys"),"each",[],function(ce){var Se;return ce==null&&(ce=I),y(ae["$key?"](ce))?(Se=[""+ce+"_1",ae["$[]"](ce)],ye(ae,"[]=",Se),Se[Se.length-1]):I}),g=["authors",""+ae["$[]"]("authors")+", "+ae["$[]"](u["$[]"]("author"))],ye(ae,"[]=",g),g[g.length-1]))}),ae["$[]="]("authorcount",ie),ae},-2),J(Ie,"$parse_block_metadata_lines",function(ee,P,D,ae){var ie=this;for(D==null&&(D=X([],{})),ae==null&&(ae=X([],{}));y(ie.$parse_block_metadata_line(ee,P,D,ae))&&(ee.$shift(),!!y(ee.$skip_blank_lines())););return D},-3),J(Ie,"$parse_block_metadata_line",function(ee,P,D,ae){var ie,me=this,G=I,g=I,u=I,_=I,z=I,S=I;if(et["~"]==null&&(et["~"]=I),ae==null&&(ae=X([],{})),y(g=ee.$peek_line())&&y(y(ae["$[]"]("text_only"))?g["$start_with?"]("[","/"):G=g["$start_with?"]("[",".","/",":"))){if(y(g["$start_with?"]("["))){if(y(g["$start_with?"]("[["))){if(y(g["$end_with?"]("]]"))&&y($e("BlockAnchorRx")["$=~"](g)))return D["$[]="]("id",(ie=et["~"])===I?I:ie["$[]"](1)),y(u=(ie=et["~"])===I?I:ie["$[]"](2))&&D["$[]="]("reftext",y(u["$include?"]($e("ATTR_REF_HEAD")))?P.$sub_attributes(u):u),!0}else if(y(g["$end_with?"]("]"))&&y($e("BlockAttributeListRx")["$=~"](g)))return _=D["$[]"](1),y(P.$parse_attributes((ie=et["~"])===I?I:ie["$[]"](1),[],X(["sub_input","sub_result","into"],{sub_input:!0,sub_result:!0,into:D}))["$[]"](1))&&D["$[]="](1,y(z=me.$parse_style_attribute(D,ee))?z:_),!0}else if(y(G)&&y(g["$start_with?"]("."))){if(y($e("BlockTitleRx")["$=~"](g)))return D["$[]="]("title",(ie=et["~"])===I?I:ie["$[]"](1)),!0}else if(R(G)||y(g["$start_with?"]("/"))){if(y(g["$start_with?"]("//"))){if(qe(g,"//"))return!0;if(y(G)&&y(me["$uniform?"](g,"/",S=g.$length()))){if(!qe(S,3))return ee.$read_lines_until(X(["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(!y(g["$start_with?"]("///")))return!0}}else if(y(G)&&y(g["$start_with?"](":"))&&y($e("AttributeEntryRx")["$=~"](g)))return me.$process_attribute_entry(ee,P,D,et["~"]),!0}return I},-4),J(Ie,"$process_attribute_entries",function(ee,P,D){var ae=this;for(D==null&&(D=I),ee.$skip_comment_lines();y(ae.$process_attribute_entry(ee,P,D));)ee.$shift(),ee.$skip_comment_lines()},-3),J(Ie,"$process_attribute_entry",function(ee,P,D,ae){var ie,me=this,G=I,g=I,u=I,_=I,z=I,S=I;if(D==null&&(D=I),ae==null&&(ae=I),y(ae)||y(ae=y(ee["$has_more_lines?"]())?$e("AttributeEntryRx").$match(ee.$peek_line()):I)){if(y((G=ae["$[]"](2))["$nil_or_empty?"]()))G="";else if(y(G["$end_with?"]($e("LINE_CONTINUATION"),$e("LINE_CONTINUATION_LEGACY"))))for(ie=[G.$slice(st(G.$length(),2),2),G.$slice(0,st(G.$length(),2)).$rstrip()],g=ie[0],G=ie[1];y(y(u=ee.$advance())?(_=y(z=ee.$peek_line())?z:"")["$empty?"]()["$!"]():u)&&(_=_.$lstrip(),y(S=_["$end_with?"](g))&&(_=_.$slice(0,st(_.$length(),2)).$rstrip()),G=""+G+(y(G["$end_with?"]($e("HARD_LINE_BREAK")))?$e("LF"):" ")+_,!!y(S)););return me.$store_attribute(ae["$[]"](1),G,P,D),!0}else return I},-3),J(Ie,"$store_attribute",function(ee,P,D,ae){var ie=this,me=I;return D==null&&(D=I),ae==null&&(ae=I),y(ee["$end_with?"]("!"))?(ee=ee.$chop(),P=I):y(ee["$start_with?"]("!"))&&(ee=ee.$slice(1,ee.$length()),P=I),qe(ee=ie.$sanitize_attribute_name(ee),"numbered")?ee="sectnums":qe(ee,"hardbreaks")?ee="hardbreaks-option":qe(ee,"showtitle")&&ie.$store_attribute("notitle",y(P)?I:"",D,ae),y(D)?y(P)?(qe(ee,"leveloffset")&&(y(P["$start_with?"]("+"))?P=Ke(D.$attr("leveloffset",0).$to_i(),P.$slice(1,P.$length()).$to_i()).$to_s():y(P["$start_with?"]("-"))&&(P=st(D.$attr("leveloffset",0).$to_i(),P.$slice(1,P.$length()).$to_i()).$to_s())),y(me=D.$set_attribute(ee,P))&&(P=me,y(ae)&&tt($e("Document"),"AttributeEntry").$new(ee,P).$save_to(ae))):y(D.$delete_attribute(ee))&&y(ae)&&tt($e("Document"),"AttributeEntry").$new(ee,P).$save_to(ae):y(ae)&&tt($e("Document"),"AttributeEntry").$new(ee,P).$save_to(ae),[ee,P]},-3),J(Ie,"$resolve_list_marker",function(ee,P,D,ae,ie){var me=this;switch(D==null&&(D=0),ae==null&&(ae=!1),ie==null&&(ie=I),ee){case"ulist":return P;case"olist":return me.$resolve_ordered_list_marker(P,D,ae,ie)["$[]"](0);default:return"<1>"}},-3),J(Ie,"$resolve_ordered_list_marker",function(ee,P,D,ae){var ie=this,me=I,G=I,g=I;if(P==null&&(P=0),D==null&&(D=!1),ae==null&&(ae=I),y(ee["$start_with?"](".")))return[ee];switch(me=ye($e("ORDERED_LIST_STYLES"),"find",[],function(_){return _==null&&(_=I),$e("OrderedListMarkerRxMap")["$[]"](_)["$match?"](ee)})){case"arabic":y(D)&&(G=Ke(P,1),g=ee.$to_i()),ee="1.";break;case"loweralpha":y(D)&&(G=Ke("a"["$[]"](0).$ord(),P).$chr(),g=ee.$chop()),ee="a.";break;case"upperalpha":y(D)&&(G=Ke("A"["$[]"](0).$ord(),P).$chr(),g=ee.$chop()),ee="A.";break;case"lowerroman":y(D)&&(G=$e("Helpers").$int_to_roman(Ke(P,1)).$downcase(),g=ee.$chop()),ee="i)";break;case"upperroman":y(D)&&(G=$e("Helpers").$int_to_roman(Ke(P,1)),g=ee.$chop()),ee="I)";break}return y(D)&&Ne(G,g)&&ie.$logger().$warn(ie.$message_with_context("list item index: expected "+G+", got "+g,X(["source_location"],{source_location:ae.$cursor()}))),[ee,me]},-2),J(Ie,"$is_sibling_list_item?",function(ee,P,D){var ae,ie=this,me=I;return Ve(tt("Regexp"),D)?D["$match?"](ee):y(me=$e("ListRxMap")["$[]"](P)["$=~"](ee))?D["$=="](ie.$resolve_list_marker(P,(ae=et["~"])===I?I:ae["$[]"](1))):me}),J(Ie,"$parse_table",function(ee,P,D){var ae,ie,me,G=this,g=I,u=I,_=I,z=I,S=I,b=I,F=I,H=I,ge=I,ce=I,Se=I,Be=I,Xe=I,it=I,pt=I,at=I,bt=I,kt=I;for(g=$e("Table").$new(P,D),y(D["$key?"]("cols"))&&R((u=G.$parse_colspecs(D["$[]"]("cols")))["$empty?"]())&&(g.$create_columns(u),_=!0),z=y(S=ee.$skip_blank_lines())?S:0,y(D["$[]"]("header-option"))?g["$has_header_option="](!0):qe(z,0)&&R(D["$[]"]("noheader-option"))&&(g["$has_header_option="]("implicit"),b=!0),F=tt($e("Table"),"ParserContext").$new(ee,g,D),ae=[F.$format(),-1,I],H=ae[0],ge=ae[1],ce=ae[2];y(Se=ee.$read_line());){for(y(Be=Pe(ge=Ke(ge,1),0))&&y(Se["$empty?"]())?(Se=I,y(ce)&&(ce=Ke(ce,1))):qe(H,"psv")&&(y(F["$starts_with_delimiter?"](Se))?(Se=Se.$slice(1,Se.$length()),F.$close_open_cell(),y(ce)&&(ce=I)):(ie=G.$parse_cellspec(Se,"start",F.$delimiter()),ae=Ue(ie),Xe=ae[0]==null?I:ae[0],Se=ae[1]==null?I:ae[1],y(Xe)?(F.$close_open_cell(Xe),y(ce)&&(ce=I)):y(ce)&&qe(ce,ge)&&g["$has_header_option="](b=ce=I))),y(Be)||(ee.$mark(),y(b)&&(y(ee["$has_more_lines?"]())&&y(ee.$peek_line()["$empty?"]())?ce=1:g["$has_header_option="](b=I))),ae=!1;ae||y(!0);)if(ae=!1,y(Se)&&y(it=F.$match_delimiter(Se))){if(ie=[it.$pre_match(),it.$post_match()],pt=ie[0],at=ie[1],Ve("csv",S=H)){if(y(F["$buffer_has_unclosed_quotes?"](pt))){if(F.$skip_past_delimiter(pt),y((Se=at)["$empty?"]()))break;ae=!0;continue}F["$buffer="](""+F.$buffer()+pt)}else if(Ve("dsv",S)){if(y(pt["$end_with?"]("\\"))){if(F.$skip_past_escaped_delimiter(pt),y((Se=at)["$empty?"]())){F["$buffer="](""+F.$buffer()+$e("LF")),F.$keep_cell_open();break}ae=!0;continue}F["$buffer="](""+F.$buffer()+pt)}else{if(y(pt["$end_with?"]("\\"))){if(F.$skip_past_escaped_delimiter(pt),y((Se=at)["$empty?"]())){F["$buffer="](""+F.$buffer()+$e("LF")),F.$keep_cell_open();break}ae=!0;continue}me=G.$parse_cellspec(pt),ie=Ue(me),Xe=ie[0]==null?I:ie[0],bt=ie[1]==null?I:ie[1],F.$push_cellspec(Xe),F["$buffer="](""+F.$buffer()+bt)}y((Se=at)["$empty?"]())&&(Se=I),F.$close_cell()}else{switch(F["$buffer="](""+F.$buffer()+Se+$e("LF")),H){case"csv":y(F["$buffer_has_unclosed_quotes?"]())?(y(ce)&&qe(ge,0)&&g["$has_header_option="](b=ce=I),F.$keep_cell_open()):F.$close_cell(!0);break;case"dsv":F.$close_cell(!0);break;default:F.$keep_cell_open()}break}if(y(F["$cell_open?"]()))y(ee["$has_more_lines?"]())||F.$close_cell(!0);else if(!y(S=ee.$skip_blank_lines()))break}return qe((kt=g.$attributes(),y(S=kt["$[]"]("colcount"))?S:(ae=["colcount",g.$columns().$size()],ye(kt,"[]=",ae),ae[ae.length-1])),0)||y(_)||g.$assign_column_widths(),y(b)&&g["$has_header_option="](!0),g.$partition_header_footer(D),g}),J(Ie,"$parse_colspecs",function(ee){var P=I;return y(ee["$include?"](" "))&&(ee=ee.$delete(" ")),qe(ee,ee.$to_i().$to_s())?ye(tt("Array"),"new",[ee.$to_i()],function(){return X(["width"],{width:1})}):(P=[],ye(y(ee["$include?"](","))?ee.$split(",",-1):ee.$split(";",-1),"each",[],function(ae){var ie,me,G=I,g=I,u=I,_=I,z=I;return ae==null&&(ae=I),y(ae["$empty?"]())?P["$<<"](X(["width"],{width:1})):y(G=$e("ColumnSpecRx").$match(ae))?(g=X([],{}),y(G["$[]"](2))&&(me=G["$[]"](2).$split("."),ie=Ue(me),u=ie[0]==null?I:ie[0],_=ie[1]==null?I:ie[1],R(u["$nil_or_empty?"]())&&y($e("TableCellHorzAlignments")["$key?"](u))&&g["$[]="]("halign",$e("TableCellHorzAlignments")["$[]"](u)),R(_["$nil_or_empty?"]())&&y($e("TableCellVertAlignments")["$key?"](_))&&g["$[]="]("valign",$e("TableCellVertAlignments")["$[]"](_))),y(z=G["$[]"](3))?g["$[]="]("width",qe(z,"~")?-1:z.$to_i()):g["$[]="]("width",1),y(G["$[]"](4))&&y($e("TableCellStyles")["$key?"](G["$[]"](4)))&&g["$[]="]("style",$e("TableCellStyles")["$[]"](G["$[]"](4))),y(G["$[]"](1))?ye(1,"upto",[G["$[]"](1).$to_i()],function(){return P["$<<"](g.$merge())}):P["$<<"](g)):I}),P)}),J(Ie,"$parse_cellspec",function(ee,P,D){var ae,ie,me=I,G=I,g=I,u=I,_=I,z=I;if(P==null&&(P="end"),D==null&&(D=I),ae=[I,""],me=ae[0],G=ae[1],qe(P,"start"))if(y(ee["$include?"](D)))if(ie=ee.$partition(D),ae=Ue(ie),g=ae[0]==null?I:ae[0],ae[1]==null||ae[1],G=ae[2]==null?I:ae[2],y(me=$e("CellSpecStartRx").$match(g))){if(y(me["$[]"](0)["$empty?"]()))return[X([],{}),G]}else return[I,ee];else return[I,ee];else if(y(me=$e("CellSpecEndRx").$match(ee))){if(y(me["$[]"](0).$lstrip()["$empty?"]()))return[X([],{}),ee.$rstrip()];G=me.$pre_match()}else return[X([],{}),ee];if(u=X([],{}),y(me["$[]"](1)))switch(ie=me["$[]"](1).$split("."),ae=Ue(ie),_=ae[0]==null?I:ae[0],z=ae[1]==null?I:ae[1],_=y(_["$nil_or_empty?"]())?1:_.$to_i(),z=y(z["$nil_or_empty?"]())?1:z.$to_i(),me["$[]"](2)){case"+":qe(_,1)||u["$[]="]("colspan",_),qe(z,1)||u["$[]="]("rowspan",z);break;case"*":qe(_,1)||u["$[]="]("repeatcol",_);break}return y(me["$[]"](3))&&(ie=me["$[]"](3).$split("."),ae=Ue(ie),_=ae[0]==null?I:ae[0],z=ae[1]==null?I:ae[1],R(_["$nil_or_empty?"]())&&y($e("TableCellHorzAlignments")["$key?"](_))&&u["$[]="]("halign",$e("TableCellHorzAlignments")["$[]"](_)),R(z["$nil_or_empty?"]())&&y($e("TableCellVertAlignments")["$key?"](z))&&u["$[]="]("valign",$e("TableCellVertAlignments")["$[]"](z))),y(me["$[]"](4))&&y($e("TableCellStyles")["$key?"](me["$[]"](4)))&&u["$[]="]("style",$e("TableCellStyles")["$[]"](me["$[]"](4))),[u,G]},-2),J(Ie,"$parse_style_attribute",function(ee,P){var D,ae=this,ie=I,me=I,G=I,g=I,u=I,_=I;return P==null&&(P=I),y(ie=ee["$[]"](1))&&R(ie["$include?"](" "))&&y($e("Compliance").$shorthand_property_syntax())?(me=I,G="",g=X([],{}),ye(ie,"each_char",[],function z(S){var b=z.$$s==null?this:z.$$s;switch(S==null&&(S=I),S){case".":return b.$yield_buffered_attribute(g,me,G,P),G="",me="role";case"#":return b.$yield_buffered_attribute(g,me,G,P),G="",me="id";case"%":return b.$yield_buffered_attribute(g,me,G,P),G="",me="option";default:return G=Ke(G,S)}},{$$s:ae}),y(me)?(ae.$yield_buffered_attribute(g,me,G,P),y(u=g["$[]"]("style"))&&ee["$[]="]("style",u),y(g["$key?"]("id"))&&ee["$[]="]("id",g["$[]"]("id")),y(g["$key?"]("role"))&&ee["$[]="]("role",y((_=ee["$[]"]("role"))["$nil_or_empty?"]())?g["$[]"]("role").$join(" "):""+_+" "+g["$[]"]("role").$join(" ")),y(g["$key?"]("option"))&&ye(g["$[]"]("option"),"each",[],function(S){var b;return S==null&&(S=I),b=[""+S+"-option",""],ye(ee,"[]=",b),b[b.length-1]}),u):(D=["style",ie],ye(ee,"[]=",D),D[D.length-1])):(D=["style",ie],ye(ee,"[]=",D),D[D.length-1])},-2),J(Ie,"$yield_buffered_attribute",function(ee,P,D,ae){var ie,me=this,G=I;return y(P)?y(D["$empty?"]())?y(ae)?me.$logger().$warn(me.$message_with_context("invalid empty "+P+" detected in style attribute",X(["source_location"],{source_location:ae.$cursor_at_prev_line()}))):me.$logger().$warn("invalid empty "+P+" detected in style attribute"):qe(P,"id")?(y(ee["$key?"]("id"))&&(y(ae)?me.$logger().$warn(me.$message_with_context("multiple ids detected in style attribute",X(["source_location"],{source_location:ae.$cursor_at_prev_line()}))):me.$logger().$warn("multiple ids detected in style attribute")),ee["$[]="](P,D)):(y(G=ee["$[]"](P))?G:(ie=[P,[]],ye(ee,"[]=",ie),ie[ie.length-1]))["$<<"](D):y(D["$empty?"]())||ee["$[]="]("style",D),I}),J(Ie,"$adjust_indentation!",function(ee,P,D){var ae=I,ie=I,me=I;return P==null&&(P=0),D==null&&(D=0),y(ee["$empty?"]())||(y(Pe(D,0))&&y(ye(ee,"any?",[],function(g){return g==null&&(g=I),g["$include?"]($e("TAB"))}))&&(ae=Ye(" ",D),ye(ee,"map!",[],function(g){var u=I,_=I,z=I,S=I,b=I;return g==null&&(g=I),y(g["$empty?"]())||y((u=g.$index($e("TAB")))["$nil?"]())||qe(u,0)&&(_=0,function(){try{var F=Ze("break");return ye(g,"each_byte",[],function(ge){return ge==null&&(ge=I),qe(ge,9)||F.$throw(),_=Ke(_,1)})}catch(H){if(H===F)return H.$v;throw H}}(),g=""+Ye(ae,_)+g.$slice(_,g.$length()),!y(g["$include?"]($e("TAB"))))?g:(z=0,S=0,b="",ye(g,"each_char",[],function(H){var ge=I,ce=I;return H==null&&(H=I),qe(H,$e("TAB"))?qe((ge=Ke(S,z))["$%"](D),0)?(z=Ke(z,st(D,1)),b=Ke(b,ae)):(qe(ce=st(D,ge["$%"](D)),1)||(z=Ke(z,st(ce,1))),b=Ke(b,Ye(" ",ce))):b=Ke(b,H),S=Ke(S,1)}),b)})),y(Le(P,0)))||(ie=I,function(){try{var G=Ze("break");return ye(ee,"each",[],function(u){var _=I;return u==null&&(u=I),y(u["$empty?"]())||(qe(_=st(u.$length(),u.$lstrip().$length()),0)&&(ie=I,G.$throw()),y(ie)&&y(Le(ie,_)))?I:ie=_})}catch(g){if(g===G)return g.$v;throw g}}(),qe(P,0)?y(ie)&&ye(ee,"map!",[],function(g){return g==null&&(g=I),y(g["$empty?"]())?g:g.$slice(ie,g.$length())}):(me=Ye(" ",P),y(ie)?ye(ee,"map!",[],function(g){return g==null&&(g=I),y(g["$empty?"]())?g:Ke(me,g.$slice(ie,g.$length()))}):ye(ee,"map!",[],function(g){return g==null&&(g=I),y(g["$empty?"]())?g:Ke(me,g)}))),I},-2),J(Ie,"$uniform?",function(ee,P,D){return ee.$count(P)["$=="](D)}),J(Ie,"$sanitize_attribute_name",function(ee){return ee.$gsub($e("InvalidAttributeNameCharsRx"),"").$downcase()})}(Z[0],null,Z)}(dt[0],dt)},Opal.modules["asciidoctor/path_resolver"]=function(a){var ue=a.module,se=a.klass,K=a.const_set,ye=a.truthy,y=a.hash2,X=a.def,Ue=a.eqeq,J=a.alias,qe=a.rb_plus,R=a.to_ary,et=a.send,Ne=a.not,Ke=a.neqeq,Le=a.rb_gt,Pe=a.gvars,ht=[],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(Ye,Ze){var dt=ue(Ye,"Asciidoctor"),I=[dt].concat(Ze);return function(tt,C,rt){var lt=se(tt,C,"PathResolver"),Z=[lt].concat(rt),L=a.$r(Z),He=lt.$$prototype;return He.file_separator=He._partition_path_web=He._partition_path_sys=He.working_dir=Ve,lt.$include(L("Logging")),K(Z[0],"DOT","."),K(Z[0],"DOT_DOT",".."),K(Z[0],"DOT_SLASH","./"),K(Z[0],"SLASH","/"),K(Z[0],"BACKSLASH","\\"),K(Z[0],"DOUBLE_SLASH","//"),K(Z[0],"URI_CLASSLOADER","uri:classloader:"),K(Z[0],"WindowsRootRx",/^(?:[a-zA-Z]:)?[\\\/]/),lt.$attr_accessor("file_separator"),lt.$attr_accessor("working_dir"),X(lt,"$initialize",function(Ie,Re){var $e=this,we=Ve,ee=Ve;return Ie==null&&(Ie=Ve),Re==null&&(Re=Ve),$e.file_separator=ye(we=ye(ee=Ie)?ee:st(st("File"),"ALT_SEPARATOR"))?we:st(st("File"),"SEPARATOR"),$e.working_dir=ye(Re)?ye($e["$root?"](Re))?$e.$posixify(Re):st("File").$expand_path(Re):st("Dir").$pwd(),$e._partition_path_sys=y([],{}),$e._partition_path_web=y([],{})},-1),X(lt,"$absolute_path?",function(Ie){var Re=this,$e=Ve,we=Ve;return ye($e=Ie["$start_with?"](L("SLASH")))?$e:ye(we=Re.file_separator["$=="](L("BACKSLASH")))?L("WindowsRootRx")["$match?"](Ie):we}),Ue(L("RUBY_ENGINE"),"opal")&&Ue(st("JAVASCRIPT_IO_MODULE"),"xmlhttprequest")?X(lt,"$root?",function(Ie){var Re=this,$e=Ve;return ye($e=Re["$absolute_path?"](Ie))?$e:Ie["$start_with?"]("file://","http://","https://")}):Ue(st("RUBY_ENGINE"),"jruby")?X(lt,"$root?",function(Ie){var Re=this,$e=Ve;return ye($e=Re["$absolute_path?"](Ie))?$e:Ie["$start_with?"](L("URI_CLASSLOADER"))}):J(lt,"root?","absolute_path?"),X(lt,"$unc?",function(Ie){return Ie["$start_with?"](L("DOUBLE_SLASH"))}),X(lt,"$web_root?",function(Ie){return Ie["$start_with?"](L("SLASH"))}),X(lt,"$descends_from?",function(Ie,Re){var $e=Ve;return Ue(Re,Ie)?0:Ue(Re,L("SLASH"))?ye($e=Ie["$start_with?"](L("SLASH")))?1:$e:ye($e=Ie["$start_with?"](qe(Re,L("SLASH"))))?qe(Re.$length(),1):$e}),X(lt,"$relative_path",function(Ie,Re){var $e=this,we=Ve;if(ye($e["$root?"](Ie))){if(ye(we=$e["$descends_from?"](Ie,Re)))return Ie.$slice(we,Ie.$length());try{return L("Pathname").$new(Ie).$relative_path_from(L("Pathname").$new(Re)).$to_s()}catch(ee){if(a.rescue(ee,[L("StandardError")]))try{return Ie}finally{a.pop_exception()}else throw ee}}else return Ie}),X(lt,"$posixify",function(Ie){var Re=this;return ye(Ie)?Ue(Re.file_separator,L("BACKSLASH"))&&ye(Ie["$include?"](L("BACKSLASH")))?Ie.$tr(L("BACKSLASH"),L("SLASH")):Ie:""}),J(lt,"posixfy","posixify"),X(lt,"$expand_path",function(Ie){var Re,$e,we=this,ee=Ve,P=Ve,D=Ve;return $e=we.$partition_path(Ie),Re=R($e),ee=Re[0]==null?Ve:Re[0],P=Re[1]==null?Ve:Re[1],ye(Ie["$include?"](L("DOT_DOT")))?(D=[],et(ee,"each",[],function(ie){return ie==null&&(ie=Ve),Ue(ie,L("DOT_DOT"))?D.$pop():D["$<<"](ie)}),we.$join_path(D,P)):we.$join_path(ee,P)}),X(lt,"$partition_path",function(Ie,Re){var $e,we=this,ee=Ve,P=Ve,D=Ve,ae=Ve,ie=Ve;return Re==null&&(Re=Ve),ye(ee=(P=ye(Re)?we._partition_path_web:we._partition_path_sys)["$[]"](Ie))?ee:(D=we.$posixify(Ie),ye(Re)?ye(we["$web_root?"](D))?ae=L("SLASH"):ye(D["$start_with?"](L("DOT_SLASH")))&&(ae=L("DOT_SLASH")):ye(we["$root?"](D))?ye(we["$unc?"](D))?ae=L("DOUBLE_SLASH"):ye(D["$start_with?"](L("SLASH")))?ae=L("SLASH"):ye(D["$start_with?"](L("URI_CLASSLOADER")))?ae=D.$slice(0,L("URI_CLASSLOADER").$length()):ae=D.$slice(0,qe(D.$index(L("SLASH")),1)):ye(D["$start_with?"](L("DOT_SLASH")))&&(ae=L("DOT_SLASH")),ie=(ye(ae)?D.$slice(ae.$length(),D.$length()):D).$split(L("SLASH")),ie.$delete(L("DOT")),$e=[Ie,[ie,ae]],et(P,"[]=",$e),$e[$e.length-1])},-2),X(lt,"$join_path",function(Ie,Re){return Re==null&&(Re=Ve),ye(Re)?""+Re+Ie.$join(L("SLASH")):Ie.$join(L("SLASH"))},-2),X(lt,"$system_path",function(Ie,Re,$e,we){var ee,P,D=this,ae=Ve,ie=Ve,me=Ve,G=Ve,g=Ve,u=Ve,_=Ve,z=Ve,S=Ve,b=Ve,F=Ve;if(Re==null&&(Re=Ve),$e==null&&($e=Ve),we==null&&(we=y([],{})),ye($e)&&(ye(D["$root?"]($e))||D.$raise(st("SecurityError"),"Jail is not an absolute path: "+$e),$e=D.$posixify($e)),ye(Ie))if(ye(D["$root?"](Ie))){if(ae=D.$expand_path(Ie),ye($e)&&Ne(D["$descends_from?"](ae,$e))){if(ye(we.$fetch("recover",!0)))return D.$logger().$warn(""+(ye(ie=we["$[]"]("target_name"))?ie:"path")+" is outside of jail; recovering automatically"),P=D.$partition_path(ae),ee=R(P),me=ee[0]==null?Ve:ee[0],P=D.$partition_path($e),ee=R(P),G=ee[0]==null?Ve:ee[0],g=ee[1]==null?Ve:ee[1],D.$join_path(qe(G,me),g);D.$raise(st("SecurityError"),""+(ye(ie=we["$[]"]("target_name"))?ie:"path")+" "+Ie+" is outside of jail: "+$e+" (disallowed in safe mode)")}return ae}else P=D.$partition_path(Ie),ee=R(P),me=ee[0]==null?Ve:ee[0];else me=[];if(ye(me["$empty?"]())){if(ye(Re["$nil_or_empty?"]()))return ye(ie=$e)?ie:D.working_dir;if(ye(D["$root?"](Re)))if(ye($e))Re=D.$posixify(Re);else return D.$expand_path(Re);else P=D.$partition_path(Re),ee=R(P),me=ee[0]==null?Ve:ee[0],Re=ye(ie=$e)?ie:D.working_dir}else ye(Re["$nil_or_empty?"]())?Re=ye(ie=$e)?ie:D.working_dir:ye(D["$root?"](Re))?ye($e)&&(Re=D.$posixify(Re)):Re=""+(ye(ie=$e)?ie:D.working_dir).$chomp("/")+"/"+Re;return ye($e)&&ye(u=D["$descends_from?"](Re,$e)["$!"]())&&Ue(D.file_separator,L("BACKSLASH"))?(P=D.$partition_path(Re),ee=R(P),_=ee[0]==null?Ve:ee[0],z=ee[1]==null?Ve:ee[1],P=D.$partition_path($e),ee=R(P),G=ee[0]==null?Ve:ee[0],g=ee[1]==null?Ve:ee[1],Ke(z,g)&&(ye(we.$fetch("recover",!0))?(D.$logger().$warn("start path for "+(ye(ie=we["$[]"]("target_name"))?ie:"path")+" is outside of jail root; recovering automatically"),_=G,u=!1):D.$raise(st("SecurityError"),"start path for "+(ye(ie=we["$[]"]("target_name"))?ie:"path")+" "+Re+" refers to location outside jail root: "+$e+" (disallowed in safe mode)"))):(P=D.$partition_path(Re),ee=R(P),_=ee[0]==null?Ve:ee[0],g=ee[1]==null?Ve:ee[1]),ye((S=qe(_,me))["$include?"](L("DOT_DOT")))&&(ee=[S,[]],b=ee[0],S=ee[1],ye($e)?(ye(G)||(P=D.$partition_path($e),ee=R(P),G=ee[0]==null?Ve:ee[0]),F=!1,et(b,"each",[],function H(ge){var ce=H.$$s==null?this:H.$$s;return ge==null&&(ge=Ve),Ue(ge,L("DOT_DOT"))?ye(Le(S.$size(),G.$size()))?S.$pop():ye(we.$fetch("recover",!0))?ye(F)?Ve:(ce.$logger().$warn(""+(ye(ie=we["$[]"]("target_name"))?ie:"path")+" has illegal reference to ancestor of jail; recovering automatically"),F=!0):ce.$raise(st("SecurityError"),""+(ye(ie=we["$[]"]("target_name"))?ie:"path")+" "+Ie+" refers to location outside jail: "+$e+" (disallowed in safe mode)"):S["$<<"](ge)},{$$s:D})):et(b,"each",[],function(ge){return ge==null&&(ge=Ve),Ue(ge,L("DOT_DOT"))?S.$pop():S["$<<"](ge)})),ye(u)?(ae=D.$join_path(S,g),ye(D["$descends_from?"](ae,$e))?ae:ye(we.$fetch("recover",!0))?(D.$logger().$warn(""+(ye(ie=we["$[]"]("target_name"))?ie:"path")+" is outside of jail; recovering automatically"),ye(G)||(P=D.$partition_path($e),ee=R(P),G=ee[0]==null?Ve:ee[0]),D.$join_path(qe(G,me),g)):D.$raise(st("SecurityError"),""+(ye(ie=we["$[]"]("target_name"))?ie:"path")+" "+Ie+" is outside of jail: "+$e+" (disallowed in safe mode)")):D.$join_path(S,g)},-2),X(lt,"$web_path",function(Ie,Re){var $e,we,ee=this,P=Ve,D=Ve,ae=Ve,ie=Ve,me=Ve;return Re==null&&(Re=Ve),Ie=ee.$posixify(Ie),Re=ee.$posixify(Re),ye(Re["$nil_or_empty?"]())||ye(ee["$web_root?"](Ie))||(we=ee.$extract_uri_prefix(""+Re+(ye(Re["$end_with?"](L("SLASH")))?"":L("SLASH"))+Ie),$e=R(we),Ie=$e[0]==null?Ve:$e[0],P=$e[1]==null?Ve:$e[1]),we=ee.$partition_path(Ie,!0),$e=R(we),D=$e[0]==null?Ve:$e[0],ae=$e[1]==null?Ve:$e[1],ie=[],et(D,"each",[],function(g){return g==null&&(g=Ve),Ue(g,L("DOT_DOT"))?ye(ie["$empty?"]())?ye(ae)&&Ke(ae,L("DOT_SLASH"))?Ve:ie["$<<"](g):Ue(ie["$[]"](-1),L("DOT_DOT"))?ie["$<<"](g):ie.$pop():ie["$<<"](g)}),ye((me=ee.$join_path(ie,ae))["$include?"](" "))&&(me=me.$gsub(" ","%20")),ye(P)?""+P+me:me},-2),lt.$private(),X(lt,"$extract_uri_prefix",function(Ie){var Re;return ye(Ie["$include?"](":"))&&ye(L("UriSniffRx")["$=~"](Ie))?[Ie.$slice(((Re=Pe["~"])===Ve?Ve:Re["$[]"](0)).$length(),Ie.$length()),(Re=Pe["~"])===Ve?Ve:Re["$[]"](0)]:Ie})}(I[0],null,I)}(ht[0],ht)},Opal.modules["asciidoctor/reader"]=function(a){var ue=a.module,se=a.klass,K=a.def,ye=a.rb_plus,y=a.alias,X=a.hash2,Ue=a.not,J=a.eqeqeq,qe=a.to_ary,R=a.truthy,et=a.rb_gt,Ne=a.send,Ke=a.rb_minus,Le=a.thrower,Pe=a.eqeq,ht=a.rb_times,Ve=a.neqeq,st=a.to_a,Ye=a.assign_ivar_val,Ze=a.send2,dt=a.find_super,I=a.rb_ge,tt=a.gvars,C=a.rb_lt,rt=a.hash,lt=[],Z=a.nil,L=a.$$$;return a.add_stubs("include,attr_reader,+,line_info,attr_accessor,!,===,split,file,dir,dirname,path,basename,lineno,reverse,prepare_lines,empty?,nil_or_empty?,peek_line,[],>,slice,length,process_line,times,shift,read_line,<<,-,unshift_all,has_more_lines?,read_lines,join,unshift,unshift_line,unshift_lines,replace_next_line,start_with?,==,*,read_lines_until,size,clear,cursor,[]=,fetch,!=,cursor_at_mark,warn,logger,message_with_context,pop,push,respond_to?,reverse_each,new,tap,each,instance_variables,instance_variable_get,drop,instance_variable_set,class,object_id,inspect,private,prepare_source_array,prepare_source_string,chomp,valid_encoding?,to_s,raise,to_i,attributes,catalog,pop_include,parse,path=,dup,end_with?,keys,rindex,rootname,key?,attr,reverse!,>=,exceeds_max_depth?,nil?,include_processors?,extensions,extensions?,include_processors,map,skip_front_matter!,adjust_indentation!,include?,=~,preprocess_conditional_directive,preprocess_include_directive,downcase,error,none?,any?,all?,strip,send,resolve_expr_val,rstrip,sub_attributes,attribute_missing,info,parse_attributes,find,handles?,instance,process_method,safe,resolve_include_path,method,split_delimited_value,partition,<,to_a,uniq,sort,call,each_line,infinite?,push_include,delete,first,values,value?,create_include_cursor,delete_at,keep_if,read,uriish?,attr?,require_library,normalize_system_path,file?,relative_path,path_resolver,base_dir,to_f"),function(He,ke){var Ie=ue(He,"Asciidoctor"),Re=[Ie].concat(ke),$e=a.$r(Re);return function(we,ee,P){var D=se(we,ee,"Reader"),ae=[D].concat(P),ie=a.$r(ae),me=D.$$prototype;return me.file=me.lines=me.look_ahead=me.unescape_next_line=me.lineno=me.process_lines=me.dir=me.path=me.mark=me.source_lines=me.saved=Z,D.$include(ie("Logging")),function(G,g){var u=se(G,g,"Cursor"),_=u.$$prototype;return _.lineno=_.path=Z,u.$attr_reader("file","dir","path","lineno"),K(u,"$initialize",function(S,b,F,H){var ge,ce=this;return b==null&&(b=Z),F==null&&(F=Z),H==null&&(H=1),ge=[S,b,F,H],ce.file=ge[0],ce.dir=ge[1],ce.path=ge[2],ce.lineno=ge[3],ge},-2),K(u,"$advance",function(S){var b=this;return b.lineno=ye(b.lineno,S)}),K(u,"$line_info",function(){var S=this;return""+S.path+": line "+S.lineno}),y(u,"to_s","line_info")}(ae[0],null),D.$attr_reader("file"),D.$attr_reader("dir"),D.$attr_reader("path"),D.$attr_reader("lineno"),D.$attr_reader("source_lines"),D.$attr_accessor("process_lines"),D.$attr_accessor("unterminated"),K(D,"$initialize",function(g,u,_){var z,S,b=this,F=Z;return g==null&&(g=Z),u==null&&(u=Z),_==null&&(_=X([],{})),Ue(u)?(b.file=Z,b.dir=".",b.path="<stdin>",b.lineno=1):J(L("String"),u)?(b.file=u,S=L("File").$split(b.file),z=qe(S),b.dir=z[0]==null?Z:z[0],b.path=z[1]==null?Z:z[1],b.lineno=1):(R(b.file=u.$file())?(b.dir=R(F=u.$dir())?F:L("File").$dirname(b.file),b.path=R(F=u.$path())?F:L("File").$basename(b.file)):(b.dir=R(F=u.$dir())?F:".",b.path=R(F=u.$path())?F:"<stdin>"),b.lineno=R(F=u.$lineno())?F:1),b.lines=(b.source_lines=b.$prepare_lines(g,_)).$reverse(),b.mark=Z,b.look_ahead=0,b.process_lines=!0,b.unescape_next_line=!1,b.unterminated=Z,b.saved=Z},-1),K(D,"$has_more_lines?",function(){var g=this;return R(g.lines["$empty?"]())?(g.look_ahead=0,!1):!0}),K(D,"$empty?",function(){var g=this;return R(g.lines["$empty?"]())?(g.look_ahead=0,!0):!1}),y(D,"eof?","empty?"),K(D,"$next_line_empty?",function(){var g=this;return g.$peek_line()["$nil_or_empty?"]()}),K(D,"$peek_line",function(g){var u=this,_=Z,z=Z;for(g==null&&(g=!1);R(!0);){if(_=u.lines["$[]"](-1),R(g)||R(et(u.look_ahead,0)))return R(u.unescape_next_line)?_.$slice(1,_.$length()):_;if(R(_)){if(R(z=u.$process_line(_)))return z}else return u.look_ahead=0,Z}},-1),K(D,"$peek_lines",function(g,u){var _=this,z=Z,S=Z,b=Z;return g==null&&(g=Z),u==null&&(u=!1),z=_.look_ahead,S=[],function(){try{var F=Le("break");return Ne(R(b=g)?b:ie("MAX_INT"),"times",[],function H(){var ge=H.$$s==null?this:H.$$s,ce=Z;if(ge.lineno==null&&(ge.lineno=Z),R(ce=R(u)?ge.$shift():ge.$read_line()))return S["$<<"](ce);R(u)&&(ge.lineno=Ke(ge.lineno,1)),F.$throw()},{$$s:_})}catch(H){if(H===F)return H.$v;throw H}}(),R(S["$empty?"]())||(_.$unshift_all(S),R(u)&&(_.look_ahead=z)),S},-1),K(D,"$read_line",function(){var g=this;return R(et(g.look_ahead,0))||R(g["$has_more_lines?"]())?g.$shift():Z}),K(D,"$read_lines",function(){var g=this,u=Z;for(u=[];R(g["$has_more_lines?"]());)u["$<<"](g.$shift());return u}),y(D,"readlines","read_lines"),K(D,"$read",function(){var g=this;return g.$read_lines().$join(ie("LF"))}),K(D,"$advance",function(){var g=this;return!!R(g.$shift())}),K(D,"$unshift_line",function(g){var u=this;return u.$unshift(g),Z}),y(D,"restore_line","unshift_line"),K(D,"$unshift_lines",function(g){var u=this;return u.$unshift_all(g)}),y(D,"restore_lines","unshift_lines"),K(D,"$replace_next_line",function(g){var u=this;return u.$shift(),u.$unshift(g),!0}),y(D,"replace_line","replace_next_line"),K(D,"$skip_blank_lines",function(){var g=this,u=Z,_=Z;if(R(g["$empty?"]()))return Z;for(u=0;R(_=g.$peek_line());)if(R(_["$empty?"]()))g.$shift(),u=ye(u,1);else return u}),K(D,"$skip_comment_lines",function(){var g=this,u=Z,_=Z,z=Z;if(R(g["$empty?"]()))return Z;for(;R(R(u=_=g.$peek_line())?_["$empty?"]()["$!"]():u)&&R(_["$start_with?"]("//"));)if(R(_["$start_with?"]("///")))if(R(et(z=_.$length(),3))&&Pe(_,ht("/",z)))g.$read_lines_until(X(["terminator","skip_first_line","read_last_line","skip_processing","context"],{terminator:_,skip_first_line:!0,read_last_line:!0,skip_processing:!0,context:"comment"}));else break;else g.$shift();return Z}),K(D,"$skip_line_comments",function(){var g=this,u=Z,_=Z,z=Z;if(R(g["$empty?"]()))return[];for(u=[];R(R(_=z=g.$peek_line())?z["$empty?"]()["$!"]():_)&&R(z["$start_with?"]("//"));)u["$<<"](g.$shift());return u}),K(D,"$terminate",function(){var g=this;return g.lineno=ye(g.lineno,g.lines.$size()),g.lines.$clear(),g.look_ahead=0,Z}),K(D,"$read_lines_until",function G(g){var u,_=G.$$p||Z,z=this,S=Z,b=Z,F=Z,H=Z,ge=Z,ce=Z,Se=Z,Be=Z,Xe=Z,it=Z,pt=Z,at=Z,bt=Z,kt=Z,Et=Z,wt=Z;for(G.$$p=null,g==null&&(g=X([],{})),S=[],R(z.process_lines)&&R(g["$[]"]("skip_processing"))&&(z.process_lines=!1,b=!0),R(F=g["$[]"]("terminator"))?(H=R(ge=g["$[]"]("cursor"))?ge:z.$cursor(),ce=!1,Se=!1):(ce=g["$[]"]("break_on_blank_lines"),Se=g["$[]"]("break_on_list_continuation")),Be=g["$[]"]("skip_line_comments"),Xe=it=Z,R(g["$[]"]("skip_first_line"))&&z.$shift();R(pt=z.$read_line());){if(R(R(F)?pt["$=="](F):R(ge=R(at=R(bt=ce)?pt["$empty?"]():bt)?at:R(bt=R(kt=R(Et=Se)?Xe:Et)?pt["$=="](ie("LIST_CONTINUATION")):kt)?(u=["preserve_last_line",!0],Ne(g,"[]=",u),u[u.length-1]):bt)?ge:R(at=_!==Z)?a.yield1(_,pt):at)){R(g["$[]"]("read_last_line"))&&S["$<<"](pt),R(g["$[]"]("preserve_last_line"))&&(z.$unshift(pt),it=!0);break}R(Be)&&R(pt["$start_with?"]("//"))&&Ue(pt["$start_with?"]("///"))||(S["$<<"](pt),Xe=!0)}return R(b)&&(z.process_lines=!0,R(it)&&Ue(F)&&(z.look_ahead=Ke(z.look_ahead,1))),R(F)&&Ve(F,pt)&&R(wt=g.$fetch("context",F))&&(Pe(H,"at_mark")&&(H=z.$cursor_at_mark()),z.$logger().$warn(z.$message_with_context("unterminated "+wt+" block",X(["source_location"],{source_location:H}))),z.unterminated=!0),S},-1),K(D,"$shift",function(){var g=this;return g.lineno=ye(g.lineno,1),Pe(g.look_ahead,0)||(g.look_ahead=Ke(g.look_ahead,1)),g.lines.$pop()}),K(D,"$unshift",function(g){var u=this;return u.lineno=Ke(u.lineno,1),u.look_ahead=ye(u.look_ahead,1),u.lines.$push(g),Z}),Pe(L("RUBY_ENGINE"),"jruby")?K(D,"$unshift_all",function(g){var u=this;return u.lineno=Ke(u.lineno,g.$size()),u.look_ahead=ye(u.look_ahead,g.$size()),R(g["$respond_to?"]("reverse"))?Ne(u.lines,"push",st(g.$reverse())):Ne(g,"reverse_each",[],function _(z){var S=_.$$s==null?this:_.$$s;return S.lines==null&&(S.lines=Z),z==null&&(z=Z),S.lines.$push(z)},{$$s:u}),Z}):K(D,"$unshift_all",function(g){var u=this;return u.lineno=Ke(u.lineno,g.$size()),u.look_ahead=ye(u.look_ahead,g.$size()),Ne(u.lines,"push",st(g.$reverse())),Z}),K(D,"$cursor",function(){var g=this;return ie("Cursor").$new(g.file,g.dir,g.path,g.lineno)}),K(D,"$cursor_at_line",function(g){var u=this;return ie("Cursor").$new(u.file,u.dir,u.path,g)}),K(D,"$cursor_at_mark",function(){var g=this;return R(g.mark)?Ne(ie("Cursor"),"new",st(g.mark)):g.$cursor()}),K(D,"$cursor_before_mark",function(){var g,u,_=this,z=Z,S=Z,b=Z,F=Z;return R(_.mark)?(u=_.mark,g=qe(u),z=g[0]==null?Z:g[0],S=g[1]==null?Z:g[1],b=g[2]==null?Z:g[2],F=g[3]==null?Z:g[3],ie("Cursor").$new(z,S,b,Ke(F,1))):ie("Cursor").$new(_.file,_.dir,_.path,Ke(_.lineno,1))}),K(D,"$cursor_at_prev_line",function(){var g=this;return ie("Cursor").$new(g.file,g.dir,g.path,Ke(g.lineno,1))}),K(D,"$mark",function(){var g=this;return g.mark=[g.file,g.dir,g.path,g.lineno]}),K(D,"$line_info",function(){var g=this;return""+g.path+": line "+g.lineno}),K(D,"$lines",function(){var g=this;return g.lines.$reverse()}),K(D,"$string",function(){var g=this;return g.lines.$reverse().$join(ie("LF"))}),K(D,"$source",function(){var g=this;return g.source_lines.$join(ie("LF"))}),K(D,"$save",function(){var g=this;return g.saved=Ne(X([],{}),"tap",[],function u(_){var z=u.$$s==null?this:u.$$s;return _==null&&(_=Z),Ne(z.$instance_variables(),"each",[],function S(b){var F,H=S.$$s==null?this:S.$$s,ge=Z;return b==null&&(b=Z),Pe(b,"@saved")||Pe(b,"@source_lines")?Z:(F=[b,J(L("Array"),ge=H.$instance_variable_get(b))?ge.$drop(0):ge],Ne(_,"[]=",F),F[F.length-1])},{$$s:z})},{$$s:g}),Z}),K(D,"$restore_save",function(){var g=this;return R(g.saved)?(Ne(g.saved,"each",[],function u(_,z){var S=u.$$s==null?this:u.$$s;return _==null&&(_=Z),z==null&&(z=Z),S.$instance_variable_set(_,z)},{$$s:g}),g.saved=Z):Z}),K(D,"$discard_save",Ye("saved",Z)),K(D,"$to_s",function(){var g=this;return"#<"+g.$class()+"@"+g.$object_id()+" {path: "+g.path.$inspect()+", line: "+g.lineno+"}>"}),D.$private(),K(D,"$prepare_lines",function(g,u){var _=this,z=Z;u==null&&(u=X([],{}));try{return R(z=u["$[]"]("normalize"))?J(L("Array"),g)?ie("Helpers").$prepare_source_array(g,z["$!="]("chomp")):ie("Helpers").$prepare_source_string(g,z["$!="]("chomp")):J(L("Array"),g)?g.$drop(0):R(g)?g.$chomp().$split(ie("LF"),-1):[]}catch(S){if(a.rescue(S,[ie("StandardError")]))try{return R((J(L("Array"),g)?g.$join():g.$to_s())["$valid_encoding?"]())?_.$raise():_.$raise(L("ArgumentError"),"source is either binary or contains invalid Unicode data")}finally{a.pop_exception()}else throw S}},-2),K(D,"$process_line",function(g){var u=this;return R(u.process_lines)&&(u.look_ahead=ye(u.look_ahead,1)),g})}(Re[0],null,Re),function(we,ee,P){var D=se(we,ee,"PreprocessorReader"),ae=[D].concat(P),ie=a.$r(ae),me=D.$$prototype;return me.include_stack=me.lines=me.file=me.dir=me.path=me.lineno=me.maxdepth=me.process_lines=me.includes=me.document=me.unescape_next_line=me.include_processor_extensions=me.look_ahead=me.skipping=me.conditional_stack=Z,D.$attr_reader("include_stack"),K(D,"$initialize",function G(g,u,_,z){G.$$p;var S=this,b=Z,F=Z;return G.$$p=null,u==null&&(u=Z),_==null&&(_=Z),z==null&&(z=X([],{})),S.document=g,Ze(S,dt(S,"initialize",G,!1,!0),"initialize",[u,_,z],null),R(et(b=(R(F=g.$attributes()["$[]"]("max-include-depth"))?F:64).$to_i(),0))?S.maxdepth=X(["abs","curr","rel"],{abs:b,curr:b,rel:b}):S.maxdepth=Z,S.include_stack=[],S.includes=g.$catalog()["$[]"]("includes"),S.skipping=!1,S.conditional_stack=[],S.include_processor_extensions=Z},-2),K(D,"$has_more_lines?",function(){var g=this;return!!R(g.$peek_line())}),K(D,"$empty?",function(){var g=this;return!R(g.$peek_line())}),y(D,"eof?","empty?"),K(D,"$peek_line",function G(g){var u=G.$$p||Z,_=this,z=Z;return G.$$p=null,g==null&&(g=!1),R(z=Ze(_,dt(_,"peek_line",G,!1,!0),"peek_line",[g],u))?z:R(_.include_stack["$empty?"]())?Z:(_.$pop_include(),_.$peek_line(g))},-1),K(D,"$push_include",function(g,u,_,z,S){var b=this,F=Z,H=Z,ge=Z,ce=Z,Se=Z,Be=Z;return u==null&&(u=Z),_==null&&(_=Z),z==null&&(z=1),S==null&&(S=X([],{})),b.include_stack["$<<"]([b.lines,b.file,b.dir,b.path,b.lineno,b.maxdepth,b.process_lines]),R(b.file=u)?(J(L("String"),u)?b.dir=L("File").$dirname(u):R(ie("RUBY_ENGINE_OPAL"))?b.dir=L("URI").$parse(L("File").$dirname(u=u.$to_s())):((b.dir=u.$dup())["$path="](Pe(F=L("File").$dirname(u.$path()),"/")?"":F),u=u.$to_s()),b.path=_=R(H=_)?H:L("File").$basename(u),R(b.process_lines=Ne(u,"end_with?",st(ie("ASCIIDOC_EXTENSIONS").$keys())))&&(R(H=b.includes["$[]"](_.$slice(0,_.$rindex("."))))||b.includes["$[]="](_.$slice(0,_.$rindex(".")),R(S["$[]"]("partial-option"))?Z:!0))):(b.dir=".",b.process_lines=!0,R(b.path=_)?R(H=b.includes["$[]"](ie("Helpers").$rootname(_)))||b.includes["$[]="](ie("Helpers").$rootname(_),R(S["$[]"]("partial-option"))?Z:!0):b.path="<stdin>"),b.lineno=z,R(b.maxdepth)&&R(S["$key?"]("depth"))&&(R(et(ge=S["$[]"]("depth").$to_i(),0))?(R(et(ce=ye(b.include_stack.$size(),ge),Se=b.maxdepth["$[]"]("abs")))&&(ce=ge=Se),b.maxdepth=X(["abs","curr","rel"],{abs:Se,curr:ce,rel:ge})):b.maxdepth=X(["abs","curr","rel"],{abs:b.maxdepth["$[]"]("abs"),curr:b.include_stack.$size(),rel:0})),R((b.lines=b.$prepare_lines(g,X(["normalize","condense","indent"],{normalize:R(H=b.process_lines)?H:"chomp",condense:!1,indent:S["$[]"]("indent")})))["$empty?"]())?b.$pop_include():(R(S["$key?"]("leveloffset"))?(b.lines=ye(ye([R(Be=b.document.$attr("leveloffset"))?":leveloffset: "+Be:":leveloffset!:",""],b.lines.$reverse()),["",":leveloffset: "+S["$[]"]("leveloffset")]),b.lineno=Ke(b.lineno,2)):b.lines["$reverse!"](),b.look_ahead=0),b},-2),K(D,"$include_depth",function(){var g=this;return g.include_stack.$size()}),K(D,"$exceeds_max_depth?",function(){var g=this,u=Z,_=Z;return R(u=R(_=g.maxdepth)?I(g.include_stack.$size(),g.maxdepth["$[]"]("curr")):_)?g.maxdepth["$[]"]("rel"):u}),y(D,"exceeded_max_depth?","exceeds_max_depth?"),K(D,"$shift",function G(){var g=G.$$p||Z,u=this,_=Z;return G.$$p=null,R(u.unescape_next_line)?(u.unescape_next_line=!1,(_=Ze(u,dt(u,"shift",G,!1,!0),"shift",[],g)).$slice(1,_.$length())):Ze(u,dt(u,"shift",G,!1,!0),"shift",[],g)}),K(D,"$include_processors?",function(){var g=this;return R(g.include_processor_extensions["$nil?"]())?R(g.document["$extensions?"]())&&R(g.document.$extensions()["$include_processors?"]())?(g.include_processor_extensions=g.document.$extensions().$include_processors())["$!"]()["$!"]():g.include_processor_extensions=!1:g.include_processor_extensions["$!="](!1)}),K(D,"$create_include_cursor",function(g,u,_){var z=Z;return J(L("String"),g)?z=L("File").$dirname(g):R(ie("RUBY_ENGINE_OPAL"))?z=L("File").$dirname(g=g.$to_s()):(z=Pe(z=L("File").$dirname(g.$path()),"")?"/":z,g=g.$to_s()),ie("Cursor").$new(g,z,u,_)}),K(D,"$to_s",function(){var g=this;return"#<"+g.$class()+"@"+g.$object_id()+" {path: "+g.path.$inspect()+", line: "+g.lineno+", include depth: "+g.include_stack.$size()+", include stack: ["+Ne(g.include_stack,"map",[],function(_){return _==null&&(_=Z),_.$to_s()}).$join(", ")+"]}>"}),D.$private(),K(D,"$prepare_lines",function G(g,u){var _=G.$$p||Z,z=this,S=Z,b=Z,F=Z,H=Z;if(G.$$p=null,u==null&&(u=X([],{})),S=Ze(z,dt(z,"prepare_lines",G,!1,!0),"prepare_lines",[g,u],_),R(z.document)&&R(z.document.$attributes()["$[]"]("skip-front-matter"))&&R(b=z["$skip_front_matter!"](S))&&z.document.$attributes()["$[]="]("front-matter",b.$join(ie("LF"))),R(u.$fetch("condense",!0)))for(;R(R(F=H=S["$[]"](-1))?H["$empty?"]():F);)S.$pop();return R(u["$[]"]("indent"))&&ie("Parser")["$adjust_indentation!"](S,u["$[]"]("indent").$to_i(),z.document.$attr("tabsize").$to_i()),S},-2),K(D,"$process_line",function(g){var u,_=this;return R(_.process_lines)?R(g["$empty?"]())?(_.look_ahead=ye(_.look_ahead,1),g):R(g["$end_with?"]("]"))&&Ue(g["$start_with?"]("["))&&R(g["$include?"]("::"))?R(g["$include?"]("if"))&&R(ie("ConditionalDirectiveRx")["$=~"](g))?Pe((u=tt["~"])===Z?Z:u["$[]"](1),"\\")?(_.unescape_next_line=!0,_.look_ahead=ye(_.look_ahead,1),g.$slice(1,g.$length())):R(_.$preprocess_conditional_directive((u=tt["~"])===Z?Z:u["$[]"](2),(u=tt["~"])===Z?Z:u["$[]"](3),(u=tt["~"])===Z?Z:u["$[]"](4),(u=tt["~"])===Z?Z:u["$[]"](5)))?(_.$shift(),Z):(_.look_ahead=ye(_.look_ahead,1),g):R(_.skipping)?(_.$shift(),Z):R(g["$start_with?"]("inc","\\inc"))&&R(ie("IncludeDirectiveRx")["$=~"](g))?Pe((u=tt["~"])===Z?Z:u["$[]"](1),"\\")?(_.unescape_next_line=!0,_.look_ahead=ye(_.look_ahead,1),g.$slice(1,g.$length())):R(_.$preprocess_include_directive((u=tt["~"])===Z?Z:u["$[]"](2),(u=tt["~"])===Z?Z:u["$[]"](3)))?Z:(_.look_ahead=ye(_.look_ahead,1),g):(_.look_ahead=ye(_.look_ahead,1),g):R(_.skipping)?(_.$shift(),Z):(_.look_ahead=ye(_.look_ahead,1),g):g}),K(D,"$preprocess_conditional_directive",function(g,u,_,z){var S,b=this,F=Z,H=Z,ge=Z,ce=Z,Se=Z,Be=Z;if(R(F=u["$empty?"]())||(u=u.$downcase()),Pe(g,"endif"))return R(z)?b.$logger().$error(b.$message_with_context("malformed preprocessor directive - text not permitted: endif::"+u+"["+z+"]",X(["source_location"],{source_location:b.$cursor()}))):R(b.conditional_stack["$empty?"]())?b.$logger().$error(b.$message_with_context("unmatched preprocessor directive: endif::"+u+"[]",X(["source_location"],{source_location:b.$cursor()}))):R(F)||Pe(u,(H=b.conditional_stack["$[]"](-1))["$[]"]("target"))?(b.conditional_stack.$pop(),b.skipping=R(b.conditional_stack["$empty?"]())?!1:b.conditional_stack["$[]"](-1)["$[]"]("skipping")):b.$logger().$error(b.$message_with_context("mismatched preprocessor directive: endif::"+u+"[], expected endif::"+H["$[]"]("target")+"[]",X(["source_location"],{source_location:b.$cursor()}))),!0;if(R(b.skipping))ge=!1;else switch(g){case"ifdef":if(R(F))return b.$logger().$error(b.$message_with_context("malformed preprocessor directive - missing target: ifdef::["+z+"]",X(["source_location"],{source_location:b.$cursor()}))),!0;switch(_){case",":ge=Ne(u.$split(",",-1),"none?",[],function Xe(it){var pt=Xe.$$s==null?this:Xe.$$s;return pt.document==null&&(pt.document=Z),it==null&&(it=Z),pt.document.$attributes()["$key?"](it)},{$$s:b});break;case"+":ge=Ne(u.$split("+",-1),"any?",[],function Xe(it){var pt=Xe.$$s==null?this:Xe.$$s;return pt.document==null&&(pt.document=Z),it==null&&(it=Z),pt.document.$attributes()["$key?"](it)["$!"]()},{$$s:b});break;default:ge=b.document.$attributes()["$key?"](u)["$!"]()}break;case"ifndef":if(R(F))return b.$logger().$error(b.$message_with_context("malformed preprocessor directive - missing target: ifndef::["+z+"]",X(["source_location"],{source_location:b.$cursor()}))),!0;switch(_){case",":ge=Ne(u.$split(",",-1),"any?",[],function Xe(it){var pt=Xe.$$s==null?this:Xe.$$s;return pt.document==null&&(pt.document=Z),it==null&&(it=Z),pt.document.$attributes()["$key?"](it)},{$$s:b});break;case"+":ge=Ne(u.$split("+",-1),"all?",[],function Xe(it){var pt=Xe.$$s==null?this:Xe.$$s;return pt.document==null&&(pt.document=Z),it==null&&(it=Z),pt.document.$attributes()["$key?"](it)},{$$s:b});break;default:ge=b.document.$attributes()["$key?"](u)}break;case"ifeval":if(R(F))if(R(z)&&R(ie("EvalExpressionRx")["$=~"](z.$strip())))ce=(S=tt["~"])===Z?Z:S["$[]"](1),Se=(S=tt["~"])===Z?Z:S["$[]"](2),Be=(S=tt["~"])===Z?Z:S["$[]"](3),ge=function(){try{return!R(b.$resolve_expr_val(ce).$send(Se,b.$resolve_expr_val(Be)))}catch(Xe){if(a.rescue(Xe,[ie("StandardError")]))try{return!0}finally{a.pop_exception()}else throw Xe}}();else return b.$logger().$error(b.$message_with_context("malformed preprocessor directive - "+(R(z)?"invalid expression":"missing expression")+": ifeval::["+z+"]",X(["source_location"],{source_location:b.$cursor()}))),!0;else return b.$logger().$error(b.$message_with_context("malformed preprocessor directive - target not permitted: ifeval::"+u+"["+z+"]",X(["source_location"],{source_location:b.$cursor()}))),!0;break}return Pe(g,"ifeval")||Ue(z)?(R(ge)&&(b.skipping=!0),b.conditional_stack["$<<"](X(["target","skip","skipping"],{target:u,skip:ge,skipping:b.skipping}))):R(b.skipping)||R(ge)||(b.$replace_next_line(z.$rstrip()),b.$unshift(""),R(z["$start_with?"]("include::"))&&(b.look_ahead=Ke(b.look_ahead,1))),!0}),K(D,"$preprocess_include_directive",function(g,u){var _,z,S=this,b=Z,F=Z,H=Z,ge=Z,ce=Z,Se=Z,Be=Z,Xe=Z,it=Z,pt=Z,at=Z,bt=Z,kt=Z,Et=Z,wt=Z,Nt=Z,Tt=Z,Vt=Z,jt=Z,er=Z,Kt=Z,Pt=Z,Yt=Z,Xt=Z,nr=Z,Xn=Z,sn=Z;if(b=S.document,R((F=g)["$include?"](ie("ATTR_REF_HEAD")))&&R((F=b.$sub_attributes(g,X(["attribute_missing"],{attribute_missing:Pe(H=R(ge=b.$attributes()["$[]"]("attribute-missing"))?ge:ie("Compliance").$attribute_missing(),"warn")?"drop-line":H})))["$empty?"]()))return Pe(H,"drop-line")&&R(b.$sub_attributes(ye(g," "),X(["attribute_missing","drop_line_severity"],{attribute_missing:"drop-line",drop_line_severity:"ignore"}))["$empty?"]())?(Ne(S.$logger(),"info",[],function Zt(){var Ut=Zt.$$s==null?this:Zt.$$s;return Ut.$message_with_context("include dropped due to missing attribute: include::"+g+"["+u+"]",X(["source_location"],{source_location:Ut.$cursor()}))},{$$s:S}),S.$shift(),!0):R(b.$parse_attributes(u,[],X(["sub_input"],{sub_input:!0}))["$[]"]("optional-option"))?(Ne(S.$logger(),"info",[],function Zt(){var Ut=Zt.$$s==null?this:Zt.$$s;return Ut.$message_with_context("optional include dropped "+(Pe(H,"warn")&&R(b.$sub_attributes(ye(g," "),X(["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+"]",X(["source_location"],{source_location:Ut.$cursor()}))},{$$s:S}),S.$shift(),!0):(S.$logger().$warn(S.$message_with_context("include dropped "+(Pe(H,"warn")&&R(b.$sub_attributes(ye(g," "),X(["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+"]",X(["source_location"],{source_location:S.$cursor()}))),S.$replace_next_line("Unresolved directive in "+S.path+" - include::"+g+"["+u+"]"));if(R(S["$include_processors?"]())&&R(ce=Ne(S.include_processor_extensions,"find",[],function(Ut){return Ut==null&&(Ut=Z),Ut.$instance()["$handles?"](F)})))return S.$shift(),ce.$process_method()["$[]"](b,S,F,b.$parse_attributes(u,[],X(["sub_input"],{sub_input:!0}))),!0;if(R(I(b.$safe(),L(ie("SafeMode"),"SECURE"))))return S.$replace_next_line("link:"+F+"[role=include]");if(R(S.maxdepth)){if(R(I(S.include_stack.$size(),S.maxdepth["$[]"]("curr"))))return S.$logger().$error(S.$message_with_context("maximum include depth of "+S.maxdepth["$[]"]("rel")+" exceeded",X(["source_location"],{source_location:S.$cursor()}))),Z;switch(Se=b.$parse_attributes(u,[],X(["sub_input"],{sub_input:!0})),z=S.$resolve_include_path(F,u,Se),_=qe(z),Be=_[0]==null?Z:_[0],Xe=_[1]==null?Z:_[1],it=_[2]==null?Z:_[2],Xe){case"file":pt=L("File").$method("open"),at=ie("FILE_READ_MODE");break;case"uri":pt=L("OpenURI").$method("open_uri"),at=ie("URI_READ_MODE");break;default:return Be}if(R(ie("RUBY_ENGINE_OPAL"))||R(bt=Se["$[]"]("encoding"))&&R(function(){try{return L("Encoding").$find(bt)}catch(Zt){if(a.rescue(Zt,[ie("StandardError")]))try{return Z}finally{a.pop_exception()}else throw Zt}}())&&((kt=at.$split(":"))["$[]="](1,bt),at=kt.$join(":")),Et=wt=Z,R(u)&&(R(Se["$key?"]("lines"))?(Et=[],Ne(S.$split_delimited_value(Se["$[]"]("lines")),"each",[],function(Ut){var Jt,Cr,Ht=Z,Sr=Z;return Ut==null&&(Ut=Z),R(Ut["$include?"](".."))?(Cr=Ut.$partition(".."),Jt=qe(Cr),Ht=Jt[0]==null?Z:Jt[0],Jt[1]==null||Jt[1],Sr=Jt[2]==null?Z:Jt[2],Et=ye(Et,R(Sr["$empty?"]())||R(C(Sr=Sr.$to_i(),0))?[Ht.$to_i(),L(L("Float"),"INFINITY")]:a.Range.$new(Ht.$to_i(),Sr,!1).$to_a())):Et["$<<"](Ut.$to_i())}),Et=R(Et["$empty?"]())?Z:Et.$sort().$uniq()):R(Se["$key?"]("tag"))?R((Nt=Se["$[]"]("tag"))["$empty?"]())||Pe(Nt,"!")||(wt=R(Nt["$start_with?"]("!"))?rt(Nt.$slice(1,Nt.$length()),!1):rt(Nt,!0)):R(Se["$key?"]("tags"))&&(wt=X([],{}),Ne(S.$split_delimited_value(Se["$[]"]("tags")),"each",[],function(Ut){var Jt;return Ut==null&&(Ut=Z),R(Ut["$empty?"]())||Pe(Ut,"!")?Z:R(Ut["$start_with?"]("!"))?(Jt=[Ut.$slice(1,Ut.$length()),!1],Ne(wt,"[]=",Jt),Jt[Jt.length-1]):(Jt=[Ut,!0],Ne(wt,"[]=",Jt),Jt[Jt.length-1])}),R(wt["$empty?"]())&&(wt=Z))),R(Et)){_=[[],Z,0],Tt=_[0],Vt=_[1],jt=_[2];try{Ne(pt,"call",[Be,at],function(Ut){var Jt=Z;return Ut==null&&(Ut=Z),Jt=Z,function(){try{var Cr=Le("break");return Ne(Ut,"each_line",[],function(Sr){var mn=Z;if(Sr==null&&(Sr=Z),jt=ye(jt,1),R(Jt)||J(L("Float"),mn=Et["$[]"](0))&&R(Jt=mn["$infinite?"]()))return Vt=R(ge=Vt)?ge:jt,Tt["$<<"](Sr);if(Pe(mn,jt)&&(Vt=R(ge=Vt)?ge:jt,Tt["$<<"](Sr),Et.$shift()),R(Et["$empty?"]()))Cr.$throw();else return Z})}catch(Ht){if(Ht===Cr)return Ht.$v;throw Ht}}()})}catch(Zt){if(a.rescue(Zt,[ie("StandardError")]))try{return S.$logger().$error(S.$message_with_context("include "+Xe+" not readable: "+Be,X(["source_location"],{source_location:S.$cursor()}))),S.$replace_next_line("Unresolved directive in "+S.path+" - include::"+F+"["+u+"]")}finally{a.pop_exception()}else throw Zt}S.$shift(),R(Vt)&&(Se["$[]="]("partial-option",""),S.$push_include(Tt,Be,it,Vt,Se))}else if(R(wt)){_=[[],Z,0,[],L("Set").$new(),Z],Tt=_[0],Vt=_[1],jt=_[2],er=_[3],Kt=_[4],Pt=_[5],R(wt["$key?"]("**"))?(Yt=Xt=wt.$delete("**"),R(wt["$key?"]("*"))?nr=wt.$delete("*"):Ue(Yt)&&Pe(wt.$values().$first(),!1)&&(nr=!0)):R(wt["$key?"]("*"))?Pe(wt.$keys().$first(),"*")?Yt=Xt=(nr=wt.$delete("*"))["$!"]():(Yt=Xt=!1,nr=wt.$delete("*")):Yt=Xt=wt["$value?"](!0)["$!"]();try{Ne(pt,"call",[Be,at],function Zt(Ut){var Jt,Cr=Zt.$$s==null?this:Zt.$$s,Ht=Z,Sr=Z;return Ut==null&&(Ut=Z),Jt=["::","[]"],Ht=Jt[0],Sr=Jt[1],Ne(Ut,"each_line",[],function mn(Tr){var Er,wn,Pr=mn.$$s==null?this:mn.$$s,Qr=Z,ia=Z,sa=Z;return Tr==null&&(Tr=Z),jt=ye(jt,1),R(Tr["$include?"](Ht))&&R(Tr["$include?"](Sr))&&R(ie("TagDirectiveRx")["$=~"](Tr))?(Qr=(Er=tt["~"])===Z?Z:Er["$[]"](2),R((Er=tt["~"])===Z?Z:Er["$[]"](1))?Pe(Qr,Pt)?(er.$pop(),wn=R(er["$empty?"]())?[Z,Xt]:er["$[]"](-1),Er=qe(wn),Pt=Er[0]==null?Z:Er[0],Yt=Er[1]==null?Z:Er[1],wn):R(wt["$key?"](Qr))?(ia=Pr.$create_include_cursor(Be,F,jt),R(sa=Ne(er,"rindex",[],function(aa){return aa==null&&(aa=Z),aa["$=="](Qr)},{$$has_trailing_comma_in_args:!0}))?(Pe(sa,0)?er.$shift():er.$delete_at(sa),Pr.$logger().$warn(Pr.$message_with_context("mismatched end tag (expected '"+Pt+"' but found '"+Qr+"') at line "+jt+" of include "+Xe+": "+Be,X(["source_location","include_location"],{source_location:Pr.$cursor(),include_location:ia})))):Pr.$logger().$warn(Pr.$message_with_context("unexpected end tag '"+Qr+"' at line "+jt+" of include "+Xe+": "+Be,X(["source_location","include_location"],{source_location:Pr.$cursor(),include_location:ia})))):Z:R(wt["$key?"](Qr))?(R(Yt=wt["$[]"](Qr))&&Kt["$<<"](Qr),er["$<<"]([Pt=Qr,Yt,jt])):Ue(nr["$nil?"]())?(Yt=R(Pt)&&Ue(Yt)?!1:nr,er["$<<"]([Pt=Qr,Yt,jt])):Z):R(Yt)?(Vt=R(ge=Vt)?ge:jt,Tt["$<<"](Tr)):Z},{$$s:Cr})},{$$s:S})}catch(Zt){if(a.rescue(Zt,[ie("StandardError")]))try{return S.$logger().$error(S.$message_with_context("include "+Xe+" not readable: "+Be,X(["source_location"],{source_location:S.$cursor()}))),S.$replace_next_line("Unresolved directive in "+S.path+" - include::"+F+"["+u+"]")}finally{a.pop_exception()}else throw Zt}R(er["$empty?"]())||Ne(er,"each",[],function Zt(Ut,Jt,Cr){var Ht=Zt.$$s==null?this:Zt.$$s;return Ut==null&&(Ut=Z),Cr==null&&(Cr=Z),Ht.$logger().$warn(Ht.$message_with_context("detected unclosed tag '"+Ut+"' starting at line "+Cr+" of include "+Xe+": "+Be,X(["source_location","include_location"],{source_location:Ht.$cursor(),include_location:Ht.$create_include_cursor(Be,F,Cr)})))},{$$s:S}),R((Xn=Ke(Ne(wt,"keep_if",[],function(Ut,Jt){return Jt==null&&(Jt=Z),Jt}).$keys(),Kt.$to_a()))["$empty?"]())||S.$logger().$warn(S.$message_with_context("tag"+(R(et(Xn.$size(),1))?"s":"")+" '"+Xn.$join(", ")+"' not found in include "+Xe+": "+Be,X(["source_location"],{source_location:S.$cursor()}))),S.$shift(),R(Vt)&&(R(Xt)&&Ve(nr,!1)&&R(wt["$empty?"]())||Se["$[]="]("partial-option",""),S.$push_include(Tt,Be,it,Vt,Se))}else{sn=Z;try{sn=Ne(pt,"call",[Be,at],function(Ut){return Ut==null&&(Ut=Z),Ut.$read()}),S.$shift()}catch(Zt){if(a.rescue(Zt,[ie("StandardError")]))try{return S.$logger().$error(S.$message_with_context("include "+Xe+" not readable: "+Be,X(["source_location"],{source_location:S.$cursor()}))),S.$replace_next_line("Unresolved directive in "+S.path+" - include::"+F+"["+u+"]")}finally{a.pop_exception()}else throw Zt}S.$push_include(sn,Be,it,1,Se)}return!0}else return Z}),K(D,"$resolve_include_path",function(g,u,_){var z,S=this,b=Z,F=Z,H=Z;return b=S.document,R(ie("Helpers")["$uriish?"](g))||R(J(L("String"),S.dir)?Z:g=""+S.dir+"/"+g)?R(b["$attr?"]("allow-uri-read"))?(R(b["$attr?"]("cache-uri"))?R((z=L("::","OpenURI","skip_raise"))&&L(z,"Cache","skip_raise")?"constant":Z)||ie("Helpers").$require_library("open-uri/cached","open-uri-cached"):Ue(ie("RUBY_ENGINE_OPAL"))&&L("OpenURI"),[L("URI").$parse(g),"uri",g]):S.$replace_next_line("link:"+g+"[role=include]"):(F=b.$normalize_system_path(g,S.dir,Z,X(["target_name"],{target_name:"include file"})),R(L("File")["$file?"](F))?(H=b.$path_resolver().$relative_path(F,b.$base_dir()),[F,"file",H]):R(_["$[]"]("optional-option"))?(Ne(S.$logger(),"info",[],function ge(){var ce=ge.$$s==null?this:ge.$$s;return ce.$message_with_context("optional include dropped because include file not found: "+F,X(["source_location"],{source_location:ce.$cursor()}))},{$$s:S}),S.$shift(),!0):(S.$logger().$error(S.$message_with_context("include file not found: "+F,X(["source_location"],{source_location:S.$cursor()}))),S.$replace_next_line("Unresolved directive in "+S.path+" - include::"+g+"["+u+"]")))}),K(D,"$pop_include",function(){var g,u,_=this;return R(_.include_stack["$empty?"]())||(u=_.include_stack.$pop(),g=qe(u),_.lines=g[0]==null?Z:g[0],_.file=g[1]==null?Z:g[1],_.dir=g[2]==null?Z:g[2],_.path=g[3]==null?Z:g[3],_.lineno=g[4]==null?Z:g[4],_.maxdepth=g[5]==null?Z:g[5],_.process_lines=g[6]==null?Z:g[6],_.look_ahead=0),Z}),K(D,"$split_delimited_value",function(g){return R(g["$include?"](","))?g.$split(","):g.$split(";")}),K(D,"$skip_front_matter!",function(g,u){var _=this,z=Z,S=Z,b=Z,F=Z,H=Z;if(u==null&&(u=!0),!Pe(z=g["$[]"](0),"---"))return Z;for(S=g.$drop(0),g.$shift(),b=[],R(u)&&(_.lineno=ye(_.lineno,1));!R(R(F=H=g["$empty?"]())?F:g["$[]"](0)["$=="](z));)b["$<<"](g.$shift()),R(u)&&(_.lineno=ye(_.lineno,1));return R(H)?(Ne(g,"unshift",st(S)),R(u)&&(_.lineno=Ke(_.lineno,S.$size())),Z):(g.$shift(),R(u)&&(_.lineno=ye(_.lineno,1)),b)},-2),K(D,"$resolve_expr_val",function(g){var u=this,_=Z;return R(g["$start_with?"]('"'))&&R(g["$end_with?"]('"'))||R(g["$start_with?"]("'"))&&R(g["$end_with?"]("'"))?(_=!0,g=g.$slice(1,Ke(g.$length(),1))):_=!1,R(g["$include?"](ie("ATTR_REF_HEAD")))&&(g=u.document.$sub_attributes(g,X(["attribute_missing"],{attribute_missing:"drop"}))),R(_)?g:R(g["$empty?"]())?Z:Pe(g,"true")?!0:Pe(g,"false")?!1:R(g.$rstrip()["$empty?"]())?" ":R(g["$include?"]("."))?g.$to_f():g.$to_i()})}(Re[0],$e("Reader"),Re)}(lt[0],lt)},Opal.modules["asciidoctor/section"]=function(a){var ue=a.module,se=a.klass,K=a.hash2,ye=a.send2,y=a.find_super,X=a.eqeqeq,Ue=a.truthy,J=a.rb_plus,qe=a.def,R=a.alias,et=a.rb_gt,Ne=a.eqeq,Ke=a.not,Le=a.send,Pe=a.defs,ht=[],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,Ye){var Ze=ue(st,"Asciidoctor"),dt=[Ze].concat(Ye),I=a.$r(dt);return function(tt,C,rt){var lt=se(tt,C,"Section"),Z=[lt].concat(rt),L=a.$r(Z),He=lt.$$prototype;return He.document=He.next_section_index=He.parent=He.level=He.numeral=He.numbered=He.sectname=He.title=He.blocks=Ve,lt.$attr_accessor("index"),lt.$attr_accessor("sectname"),lt.$attr_accessor("special"),lt.$attr_accessor("numbered"),lt.$attr_reader("caption"),qe(lt,"$initialize",function ke(Ie,Re,$e,we){var ee;ke.$$p;var P=this,D=Ve;return ke.$$p=null,Ie==null&&(Ie=Ve),Re==null&&(Re=Ve),$e==null&&($e=!1),we==null&&(we=K([],{})),ye(P,y(P,"initialize",ke,!1,!0),"initialize",[Ie,"section",we],null),X(L("Section"),Ie)?(ee=[Ue(D=Re)?D:J(Ie.$level(),1),Ie.$special()],P.level=ee[0],P.special=ee[1]):(ee=[Ue(D=Re)?D:1,!1],P.level=ee[0],P.special=ee[1]),P.numbered=$e,P.index=0},-1),R(lt,"name","title"),qe(lt,"$generate_id",function(){var Ie=this;return L("Section").$generate_id(Ie.$title(),Ie.document)}),qe(lt,"$sections?",function(){var Ie=this;return et(Ie.next_section_index,0)}),qe(lt,"$sectnum",function(Ie,Re){var $e=this,we=Ve;return Ie==null&&(Ie="."),Re==null&&(Re=Ve),Re=Ue(we=Re)?we:Ne(Re,!1)?"":Ie,Ue(et($e.level,1))&&X(L("Section"),$e.parent)?""+$e.parent.$sectnum(Ie,Ie)+$e.numeral+Re:""+$e.numeral+Re},-1),qe(lt,"$xreftext",function(Ie){var Re=this,$e=Ve,we=Ve,ee=Ve,P=Ve;if(Ie==null&&(Ie=Ve),Ue($e=Re.$reftext())&&Ke($e["$empty?"]()))return $e;if(Ue(Ie))if(Ue(Re.numbered))switch(Ie){case"full":return Ne(we=Re.sectname,"chapter")||Ne(we,"appendix")?ee=Re.$sub_placeholder(Re.$sub_quotes("_%s_"),Re.$title()):ee=Re.$sub_placeholder(Re.$sub_quotes(Ue(Re.document.$compat_mode())?"``%s''":'"`%s`"'),Re.$title()),Ue(P=Re.document.$attributes()["$[]"](""+we+"-refsig"))?""+P+" "+Re.$sectnum(".",",")+" "+ee:""+Re.$sectnum(".",",")+" "+ee;case"short":return Ue(P=Re.document.$attributes()["$[]"](""+Re.sectname+"-refsig"))?""+P+" "+Re.$sectnum(".",""):Re.$sectnum(".","");default:return Ne(we=Re.sectname,"chapter")||Ne(we,"appendix")?Re.$sub_placeholder(Re.$sub_quotes("_%s_"),Re.$title()):Re.$title()}else return Ne(we=Re.sectname,"chapter")||Ne(we,"appendix")?Re.$sub_placeholder(Re.$sub_quotes("_%s_"),Re.$title()):Re.$title();else return Re.$title()},-1),qe(lt,"$<<",function ke(Ie){var Re=ke.$$p||Ve,$e=this;return ke.$$p=null,Ne(Ie.$context(),"section")&&$e.$assign_numeral(Ie),ye($e,y($e,"<<",ke,!1,!0),"<<",[Ie],Re)}),qe(lt,"$to_s",function ke(){var Ie=ke.$$p||Ve,Re=this,$e=Ve;return ke.$$p=null,Ue(Re.title)?($e=Ue(Re.numbered)?""+Re.$sectnum()+" "+Re.title:Re.title,"#<"+Re.$class()+"@"+Re.$object_id()+" {level: "+Re.level+", title: "+$e.$inspect()+", blocks: "+Re.blocks.$size()+"}>"):ye(Re,y(Re,"to_s",ke,!1,!0),"to_s",[],Ie)}),Pe(lt,"$generate_id",function(Ie,Re){var $e,we=Ve,ee=Ve,P=Ve,D=Ve,ae=Ve,ie=Ve,me=Ve,G=Ve,g=Ve,u=Ve;if(we=Re.$attributes(),ee=Ue(P=we["$[]"]("idprefix"))?P:"_",Ue(D=we["$[]"]("idseparator"))?(Ne(D.$length(),1)||Ke(ae=D["$empty?"]())&&Ue(D=($e=["idseparator",D.$chr()],Le(we,"[]=",$e),$e[$e.length-1])))&&(ie=Ne(D,"-")||Ne(D,".")?" .-":" "+D+".-"):($e=["_"," _.-"],D=$e[0],ie=$e[1]),me=""+ee+Ie.$downcase().$gsub(L("InvalidSectionIdCharsRx"),""),Ue(ae)?me=me.$delete(" "):(me=me.$tr_s(ie,D),Ue(me["$end_with?"](D))&&(me=me.$chop()),Ue(ee["$empty?"]())&&Ue(me["$start_with?"](D))&&(me=me.$slice(1,me.$length()))),Ue(Re.$catalog()["$[]"]("refs")["$key?"](me))){for(G=Re.$catalog()["$[]"]("refs"),g=L("Compliance").$unique_id_start_index();Ue(G["$[]"](u=""+me+D+g));)g=J(g,1);return u}else return me})}(dt[0],I("AbstractBlock"),dt)}(ht[0],ht)},Opal.modules["asciidoctor/stylesheets"]=function(a){var ue=a.module,se=a.klass,K=a.const_set,ye=a.return_ivar,y=a.defs,X=a.def,Ue=a.truthy,J=a.hash2,qe=[],R=a.nil,et=a.$$$;return a.add_stubs("join,new,rstrip,read,primary_stylesheet_data,write,primary_stylesheet_name,stylesheet_basename,for,read_stylesheet,coderay_stylesheet_data,coderay_stylesheet_name,pygments_stylesheet_data,pygments_stylesheet_name"),function(Ne,Ke){var Le=ue(Ne,"Asciidoctor"),Pe=[Le].concat(Ke);return function(ht,Ve,st){var Ye=se(ht,Ve,"Stylesheets"),Ze=[Ye].concat(st),dt=a.$r(Ze),I=Ye.$$prototype;return I.primary_stylesheet_data=R,K(Ze[0],"DEFAULT_STYLESHEET_NAME","asciidoctor.css"),K(Ze[0],"STYLESHEETS_DIR",et("File").$join(dt("DATA_DIR"),"stylesheets")),Ye.__instance__=Ye.$new(),y(Ye,"$instance",ye("__instance__")),X(Ye,"$primary_stylesheet_name",function(){return dt("DEFAULT_STYLESHEET_NAME")}),X(Ye,"$primary_stylesheet_data",function(){var C=this,rt=R;return C.primary_stylesheet_data=Ue(rt=C.primary_stylesheet_data)?rt:et("File").$read(et("File").$join(dt("STYLESHEETS_DIR"),"asciidoctor-default.css"),J(["mode"],{mode:dt("FILE_READ_MODE")})).$rstrip()}),X(Ye,"$embed_primary_stylesheet",function(){var C=this;return`<style>
|
|
460
|
-
`+C.$primary_stylesheet_data()+`
|
|
461
|
-
</style>`}),X(Ye,"$write_primary_stylesheet",function(C){var rt=this;return C==null&&(C="."),et("File").$write(et("File").$join(C,rt.$primary_stylesheet_name()),rt.$primary_stylesheet_data(),J(["mode"],{mode:dt("FILE_WRITE_MODE")}))},-1),X(Ye,"$coderay_stylesheet_name",function(){return dt("SyntaxHighlighter").$for("coderay").$stylesheet_basename()}),X(Ye,"$coderay_stylesheet_data",function(){return dt("SyntaxHighlighter").$for("coderay").$read_stylesheet()}),X(Ye,"$embed_coderay_stylesheet",function(){var C=this;return`<style>
|
|
462
|
-
`+C.$coderay_stylesheet_data()+`
|
|
463
|
-
</style>`}),X(Ye,"$write_coderay_stylesheet",function(C){var rt=this;return C==null&&(C="."),et("File").$write(et("File").$join(C,rt.$coderay_stylesheet_name()),rt.$coderay_stylesheet_data(),J(["mode"],{mode:dt("FILE_WRITE_MODE")}))},-1),X(Ye,"$pygments_stylesheet_name",function(C){return C==null&&(C=R),dt("SyntaxHighlighter").$for("pygments").$stylesheet_basename(C)},-1),X(Ye,"$pygments_stylesheet_data",function(C){return C==null&&(C=R),dt("SyntaxHighlighter").$for("pygments").$read_stylesheet(C)},-1),X(Ye,"$embed_pygments_stylesheet",function(C){var rt=this;return C==null&&(C=R),`<style>
|
|
464
|
-
`+rt.$pygments_stylesheet_data(C)+`
|
|
465
|
-
</style>`},-1),X(Ye,"$write_pygments_stylesheet",function(C,rt){var lt=this;return C==null&&(C="."),rt==null&&(rt=R),et("File").$write(et("File").$join(C,lt.$pygments_stylesheet_name(rt)),lt.$pygments_stylesheet_data(rt),J(["mode"],{mode:dt("FILE_WRITE_MODE")}))},-1)}(Pe[0],null,Pe)}(qe[0],qe)},Opal.modules["asciidoctor/table"]=function(a){var ue=a.module,se=a.klass,K=a.const_set,ye=a.def,y=a.alias,X=a.hash2,Ue=a.send2,J=a.find_super,qe=a.truthy,R=a.rb_lt,et=a.rb_gt,Ne=a.eqeq,Ke=a.rb_times,Le=a.rb_divide,Pe=a.send,ht=a.rb_plus,Ve=a.rb_minus,st=a.return_val,Ye=a.to_a,Ze=a.gvars,dt=a.neqeq,I=a.return_ivar,tt=a.to_ary,C=a.regexp,rt=a.not,lt=a.thrower,Z=[],L=a.nil,He=a.$$$;return a.add_stubs("attr_accessor,send,attr_reader,new,[],<,>,to_i,==,[]=,attributes,truncate,*,/,to_f,empty?,body,each,<<,size,+,assign_column_widths,warn,logger,-,update_attributes,assign_width,round,head=,map,shift,reinitialize,nil?,unshift,foot=,pop,parent,sourcemap,dup,header_row?,table,style,merge,delete,start_with?,rstrip,slice,length,advance,lstrip,strip,split,include?,readlines,catalog_inline_anchor,=~,apply_subs,attr_writer,convert,text,!=,file,lineno,include,to_set,mark,key?,nested?,document,error,message_with_context,cursor_at_prev_line,nil_or_empty?,escape,columns,match,chop,end_with?,gsub,!,push_cellspec,cell_open?,close_cell,take_cellspec,squeeze,upto,times,cursor_before_mark,rowspan,activate_rowspan,colspan,end_of_row?,close_row,private,rows,effective_column_visits"),function(ke,Ie){var Re=ue(ke,"Asciidoctor"),$e=[Re].concat(Ie),we=a.$r($e);return function(ee,P,D){var ae=se(ee,P,"Table"),ie=[ae].concat(D),me=a.$r(ie),G=ae.$$prototype;return G.attributes=G.document=G.rows=G.has_header_option=G.columns=L,K(ie[0],"DEFAULT_PRECISION",4),function(g,u){var _=se(g,u,"Rows"),z=_.$$prototype;return z.head=z.body=z.foot=L,_.$attr_accessor("head","foot","body"),ye(_,"$initialize",function(b,F,H){var ge=this;return b==null&&(b=[]),F==null&&(F=[]),H==null&&(H=[]),ge.head=b,ge.foot=F,ge.body=H},-1),y(_,"[]","send"),ye(_,"$by_section",function(){var b=this;return[["head",b.head],["body",b.body],["foot",b.foot]]}),ye(_,"$to_h",function(){var b=this;return X(["head","body","foot"],{head:b.head,body:b.body,foot:b.foot})})}(ie[0],null),ae.$attr_accessor("columns"),ae.$attr_accessor("rows"),ae.$attr_accessor("has_header_option"),ae.$attr_reader("caption"),ye(ae,"$initialize",function g(u,_){var z;g.$$p;var S=this,b=L,F=L,H=L;return g.$$p=null,Ue(S,J(S,"initialize",g,!1,!0),"initialize",[u,"table"],null),S.rows=me("Rows").$new(),S.columns=[],S.has_header_option=!1,qe(b=_["$[]"]("width"))?(qe(et(F=b.$to_i(),100))||qe(R(F,1)))&&(Ne(F,0)&&(Ne(b,"0")||Ne(b,"0%"))||(F=100)):F=100,S.attributes["$[]="]("tablepcwidth",F),qe(S.document.$attributes()["$[]"]("pagewidth"))&&S.attributes["$[]="]("tableabswidth",Ne(H=Ke(Le(F,100),S.document.$attributes()["$[]"]("pagewidth").$to_f()).$truncate(me("DEFAULT_PRECISION")),H.$to_i())?H.$to_i():H),qe(_["$[]"]("rotate-option"))?(z=["orientation","landscape"],Pe(S.attributes,"[]=",z),z[z.length-1]):L}),ye(ae,"$header_row?",function(){var u=this,_=L;return qe(_=u.has_header_option)&&qe(u.rows.$body()["$empty?"]())?_:L}),ye(ae,"$create_columns",function(u){var _=this,z=L,S=L,b=L,F=L;return z=[],S=L,b=0,Pe(u,"each",[],function H(ge){var ce=H.$$s==null?this:H.$$s,Se=L,Be=L;return ge==null&&(ge=L),Se=ge["$[]"]("width"),z["$<<"](me("Column").$new(ce,z.$size(),ge)),qe(R(Se,0))?(S=qe(Be=S)?Be:[])["$<<"](z["$[]"](-1)):b=ht(b,Se)},{$$s:_}),qe(et(F=(_.columns=z).$size(),0))&&(_.attributes["$[]="]("colcount",F),qe(et(b,0))||qe(S)||(b=L),_.$assign_column_widths(b,S)),L}),ye(ae,"$assign_column_widths",function(u,_){var z=this,S=L,b=L,F=L,H=L,ge=L;return u==null&&(u=L),_==null&&(_=L),S=me("DEFAULT_PRECISION"),b=F=0,qe(u)?(qe(_)&&(qe(et(u,100))?(H=0,z.$logger().$warn("total column width must not exceed 100% when using autowidth columns; got "+u+"%")):(H=Le(Ve(100,u),_.$size()).$truncate(S),Ne(H.$to_i(),H)&&(H=H.$to_i()),u=100),ge=X(["width","autowidth-option"],{width:H,"autowidth-option":""}),Pe(_,"each",[],function(Se){return Se==null&&(Se=L),Se.$update_attributes(ge)})),Pe(z.columns,"each",[],function(Se){return Se==null&&(Se=L),b=ht(b,F=Se.$assign_width(L,u,S))})):(F=Le(100,z.columns.$size()).$truncate(S),Ne(F.$to_i(),F)&&(F=F.$to_i()),Pe(z.columns,"each",[],function(Se){return Se==null&&(Se=L),b=ht(b,Se.$assign_width(F,L,S))})),Ne(b,100)||z.columns["$[]"](-1).$assign_width(ht(Ve(100,b),F).$round(S),L,S),L},-1),ye(ae,"$partition_header_footer",function(u){var _,z=this,S=L,b=L;return S=(_=["rowcount",(b=z.rows.$body()).$size()],Pe(z.attributes,"[]=",_),_[_.length-1]),qe(et(S,0))&&(qe(z.has_header_option)?(z.rows["$head="]([Pe(b.$shift(),"map",[],function(H){return H==null&&(H=L),H.$reinitialize(!0)})]),S=Ve(S,1)):qe(z.has_header_option["$nil?"]())&&(z.has_header_option=!1,b.$unshift(Pe(b.$shift(),"map",[],function(H){return H==null&&(H=L),H.$reinitialize(!1)})))),qe(et(S,0))&&qe(u["$[]"]("footer-option"))&&z.rows["$foot="]([b.$pop()]),L})}($e[0],we("AbstractBlock"),$e),function(ee,P){var D=se(ee,P,"Column"),ae=D.$$prototype;return ae.attributes=L,D.$attr_accessor("style"),ye(D,"$initialize",function ie(me,G,g){ie.$$p;var u=this;return ie.$$p=null,g==null&&(g=X([],{})),Ue(u,J(u,"initialize",ie,!1,!0),"initialize",[me,"table_column"],null),u.style=g["$[]"]("style"),g["$[]="]("colnumber",ht(G,1)),qe(g["$[]"]("width"))||g["$[]="]("width",1),qe(g["$[]"]("halign"))||g["$[]="]("halign","left"),qe(g["$[]"]("valign"))||g["$[]="]("valign","top"),u.$update_attributes(g)},-3),y(D,"table","parent"),ye(D,"$assign_width",function(me,G,g){var u,_=this,z=L;return qe(G)&&(me=Le(Ke(_.attributes["$[]"]("width").$to_f(),100),G).$truncate(g),Ne(me.$to_i(),me)&&(me=me.$to_i())),qe(_.$parent().$attributes()["$[]"]("tableabswidth"))&&_.attributes["$[]="]("colabswidth",Ne(z=Ke(Le(me,100),_.$parent().$attributes()["$[]"]("tableabswidth")).$truncate(g),z.$to_i())?z.$to_i():z),u=["colpcwidth",me],Pe(_.attributes,"[]=",u),u[u.length-1]}),ye(D,"$block?",st(!1)),ye(D,"$inline?",st(!1))}(we("Table"),we("AbstractNode")),function(ee,P,D){var ae=se(ee,P,"Cell"),ie=[ae].concat(D),me=a.$r(ie),G=ae.$$prototype;return G.document=G.reinitialize_args=G.attributes=G.cursor=G.text=G.subs=G.style=G.inner_document=G.source_location=G.colspan=G.rowspan=L,K(ie[0],"DOUBLE_LF",Ke(me("LF"),2)),ae.$attr_accessor("colspan"),ae.$attr_accessor("rowspan"),y(ae,"column","parent"),ae.$attr_reader("inner_document"),ye(ae,"$initialize",function g(u,_,z,S){var b;g.$$p;var F=this,H=L,ge=L,ce=L,Se=L,Be=L,Xe=L,it=L,pt=L,at=L,bt=L,kt=L,Et=L,wt=L;if(g.$$p=null,z==null&&(z=X([],{})),S==null&&(S=X([],{})),Ue(F,J(F,"initialize",g,!1,!0),"initialize",[u,"table_cell"],null),F.cursor=F.reinitialize_args=L,qe(F.document.$sourcemap())&&(F.source_location=S["$[]"]("cursor").$dup()),qe(u)&&(qe(H=u.$table()["$header_row?"]())?Ne(H,"implicit")&&qe(ge=qe(ce=u.$style())?ce:qe(Se=z)?z["$[]"]("style"):Se)&&((Ne(ge,"asciidoc")||Ne(ge,"literal"))&&(F.reinitialize_args=[u,_,qe(ce=z)?z.$merge():ce,S]),ge=L):ge=u.$style(),F.$update_attributes(u.$attributes())),qe(z))switch(qe(z["$empty?"]())?F.colspan=F.rowspan=L:(b=[z.$delete("colspan"),z.$delete("rowspan")],F.colspan=b[0],F.rowspan=b[1],qe(H)||(ge=qe(ce=z["$[]"]("style"))?ce:ge),F.$update_attributes(z)),ge){case"asciidoc":if(Be=!0,Xe=S["$[]"]("cursor"),qe((_=_.$rstrip())["$start_with?"](me("LF")))){for(it=1;qe((_=_.$slice(1,_.$length()))["$start_with?"](me("LF")));)it=ht(it,1);Xe.$advance(it)}else _=_.$lstrip();break;case"literal":for(pt=!0,_=_.$rstrip();qe(_["$start_with?"](me("LF")));)_=_.$slice(1,_.$length());break;default:at=!0,_=qe(_)?_.$strip():""}else F.colspan=F.rowspan=L,Ne(ge,"asciidoc")&&(Be=!0,Xe=S["$[]"]("cursor"));return qe(Be)?(bt=F.document.$attributes().$delete("doctitle"),kt=_.$split(me("LF"),-1),qe(kt["$empty?"]())||qe((Et=kt["$[]"](0))["$include?"]("::"))&&(wt=me("PreprocessorReader").$new(F.document,[Et]).$readlines(),Ne(Et,wt["$[]"](0))&&qe(R(wt.$size(),2))||(kt.$shift(),qe(wt["$empty?"]())||Pe(kt,"unshift",Ye(wt)))),F.inner_document=me("Document").$new(kt,X(["standalone","parent","cursor"],{standalone:!1,parent:F.document,cursor:Xe})),qe(bt["$nil?"]())||F.document.$attributes()["$[]="]("doctitle",bt),F.subs=L):qe(pt)?(F.content_model="verbatim",F.subs=me("BASIC_SUBS")):(qe(at)&&(qe(H)?F.cursor=S["$[]"]("cursor"):F.$catalog_inline_anchor(_,S["$[]"]("cursor"))),F.content_model="simple",F.subs=me("NORMAL_SUBS")),F.text=_,F.style=ge},-3),ye(ae,"$reinitialize",function(u){var _=this;if(qe(u))_.reinitialize_args=L;else{if(qe(_.reinitialize_args))return Pe(He(me("Table"),"Cell"),"new",Ye(_.reinitialize_args));_.style=_.attributes["$[]"]("style")}return qe(_.cursor)&&_.$catalog_inline_anchor(),_}),ye(ae,"$catalog_inline_anchor",function(u,_){var z,S=this;return u==null&&(u=S.text),_==null&&(_=L),qe(_)||(z=[S.cursor,L],_=z[0],S.cursor=z[1]),qe(u["$start_with?"]("[["))&&qe(me("LeadingInlineAnchorRx")["$=~"](u))?me("Parser").$catalog_inline_anchor((z=Ze["~"])===L?L:z["$[]"](1),(z=Ze["~"])===L?L:z["$[]"](2),S,_,S.document):L},-1),ye(ae,"$text",function(){var u=this;return u.$apply_subs(u.text,u.subs)}),ae.$attr_writer("text"),ye(ae,"$content",function(){var u=this,_=L,z=L;return Ne(_=u.style,"asciidoc")?u.inner_document.$convert():qe(u.text["$include?"](me("DOUBLE_LF")))?Pe(u.$text().$split(me("BlankLineRx")),"map",[],function S(b){var F=S.$$s==null?this:S.$$s;return b==null&&(b=L),qe(_)&&dt(_,"header")?me("Inline").$new(F.$parent(),"quoted",b,X(["type"],{type:_})).$convert():b},{$$s:u}):qe((z=u.$text())["$empty?"]())?[]:qe(_)&&dt(_,"header")?[me("Inline").$new(u.$parent(),"quoted",z,X(["type"],{type:_})).$convert()]:[z]}),ye(ae,"$lines",function(){var u=this;return u.text.$split(me("LF"))}),ye(ae,"$source",I("text")),ye(ae,"$file",function(){var u=this,_=L;return qe(_=u.source_location)?u.source_location.$file():_}),ye(ae,"$lineno",function(){var u=this,_=L;return qe(_=u.source_location)?u.source_location.$lineno():_}),ye(ae,"$to_s",function g(){var u=g.$$p||L,_=this,z=L;return g.$$p=null,""+Ue(_,J(_,"to_s",g,!1,!0),"to_s",[],u)+" - [text: "+_.text+", colspan: "+(qe(z=_.colspan)?z:1)+", rowspan: "+(qe(z=_.rowspan)?z:1)+", attributes: "+_.attributes+"]"})}(we("Table"),we("AbstractBlock"),$e),function(ee,P,D){var ae=se(ee,P,"ParserContext"),ie=[ae].concat(D),me=a.$r(ie),G=ae.$$prototype;return G.delimiter=G.delimiter_rx=G.buffer=G.cellspecs=G.cell_open=G.format=G.start_cursor_data=G.reader=G.table=G.current_row=G.colcount=G.column_visits=G.active_rowspans=G.linenum=L,ae.$include(me("Logging")),K(ie[0],"FORMATS",["psv","csv","dsv","tsv"].$to_set()),K(ie[0],"DELIMITERS",X(["psv","csv","dsv","tsv","!sv"],{psv:["|",/\|/],csv:[",",/,/],dsv:[":",/:/],tsv:[" ",/\t/],"!sv":["!",/!/]})),ae.$attr_accessor("table"),ae.$attr_accessor("format"),ae.$attr_reader("colcount"),ae.$attr_accessor("buffer"),ae.$attr_reader("delimiter"),ae.$attr_reader("delimiter_re"),ye(ae,"$initialize",function(u,_,z){var S,b,F=this,H=L,ge=L;return z==null&&(z=X([],{})),F.start_cursor_data=(F.reader=u).$mark(),F.table=_,qe(z["$key?"]("format"))?qe(me("FORMATS")["$include?"](H=z["$[]"]("format")))?Ne(H,"tsv")?F.format="csv":Ne(F.format=H,"psv")&&qe(_.$document()["$nested?"]())&&(H="!sv"):(F.$logger().$error(F.$message_with_context("illegal table format: "+H,X(["source_location"],{source_location:u.$cursor_at_prev_line()}))),S=["psv",qe(_.$document()["$nested?"]())?"!sv":"psv"],F.format=S[0],H=S[1]):(S=["psv",qe(_.$document()["$nested?"]())?"!sv":"psv"],F.format=S[0],H=S[1]),qe(z["$key?"]("separator"))?qe((ge=z["$[]"]("separator"))["$nil_or_empty?"]())?(b=me("DELIMITERS")["$[]"](H),S=tt(b),F.delimiter=S[0]==null?L:S[0],F.delimiter_rx=S[1]==null?L:S[1]):Ne(ge,"\\t")?(b=me("DELIMITERS")["$[]"]("tsv"),S=tt(b),F.delimiter=S[0]==null?L:S[0],F.delimiter_rx=S[1]==null?L:S[1]):(S=[ge,C([He("Regexp").$escape(ge)])],F.delimiter=S[0],F.delimiter_rx=S[1]):(b=me("DELIMITERS")["$[]"](H),S=tt(b),F.delimiter=S[0]==null?L:S[0],F.delimiter_rx=S[1]==null?L:S[1]),F.colcount=qe(_.$columns()["$empty?"]())?-1:_.$columns().$size(),F.buffer="",F.cellspecs=[],F.cell_open=!1,F.active_rowspans=[0],F.column_visits=0,F.current_row=[],F.linenum=-1},-3),ye(ae,"$starts_with_delimiter?",function(u){var _=this;return u["$start_with?"](_.delimiter)}),ye(ae,"$match_delimiter",function(u){var _=this;return _.delimiter_rx.$match(u)}),ye(ae,"$skip_past_delimiter",function(u){var _=this;return _.buffer=""+_.buffer+u+_.delimiter,L}),ye(ae,"$skip_past_escaped_delimiter",function(u){var _=this;return _.buffer=""+_.buffer+u.$chop()+_.delimiter,L}),ye(ae,"$buffer_has_unclosed_quotes?",function(u,_){var z=this,S=L,b=L,F=L,H=L;return u==null&&(u=L),_==null&&(_='"'),Ne(S=qe(u)?ht(z.buffer,u).$strip():z.buffer.$strip(),_)?!0:qe(S["$start_with?"](_))?(b=ht(_,_),qe(F=S["$end_with?"](_))&&qe(S["$end_with?"](b))||qe(S["$start_with?"](b))?qe(H=(S=S.$gsub(b,""))["$start_with?"](_))?S["$end_with?"](_)["$!"]():H:F["$!"]()):!1},-1),ye(ae,"$take_cellspec",function(){var u=this;return u.cellspecs.$shift()}),ye(ae,"$push_cellspec",function(u){var _=this,z=L;return u==null&&(u=X([],{})),_.cellspecs["$<<"](qe(z=u)?z:X([],{})),L},-1),ye(ae,"$keep_cell_open",function(){var u=this;return u.cell_open=!0,L}),ye(ae,"$mark_cell_closed",function(){var u=this;return u.cell_open=!1,L}),ye(ae,"$cell_open?",I("cell_open")),ye(ae,"$cell_closed?",function(){var u=this;return u.cell_open["$!"]()}),ye(ae,"$close_open_cell",function(u){var _=this;return u==null&&(u=X([],{})),_.$push_cellspec(u),qe(_["$cell_open?"]())&&_.$close_cell(!0),_.$advance(),L},-1),ye(ae,"$close_cell",function(u){try{var _=lt("return"),z=this,S=L,b=L,F=L,H=L,ge=L;return u==null&&(u=!1),Ne(z.format,"psv")?(S=z.buffer,z.buffer="",qe(b=z.$take_cellspec())?F=qe(H=b.$delete("repeatcol"))?H:1:(z.$logger().$error(z.$message_with_context("table missing leading separator; recovering automatically",X(["source_location"],{source_location:Pe(He(me("Reader"),"Cursor"),"new",Ye(z.start_cursor_data))}))),b=X([],{}),F=1)):(S=z.buffer.$strip(),z.buffer="",b=L,F=1,Ne(z.format,"csv")&&rt(S["$empty?"]())&&qe(S["$include?"](ge='"'))&&(qe(S["$start_with?"](ge))&&qe(S["$end_with?"](ge))?qe(S=S.$slice(1,Ve(S.$length(),2)))?S=S.$strip().$squeeze(ge):(z.$logger().$error(z.$message_with_context("unclosed quote in CSV data; setting cell to empty",X(["source_location"],{source_location:z.reader.$cursor_at_prev_line()}))),S=""):S=S.$squeeze(ge))),Pe(1,"upto",[F],function ce(Se){var Be=ce.$$s==null?this:ce.$$s,Xe=L,it=L,pt=L,at=L;return Be.colcount==null&&(Be.colcount=L),Be.table==null&&(Be.table=L),Be.current_row==null&&(Be.current_row=L),Be.reader==null&&(Be.reader=L),Be.column_visits==null&&(Be.column_visits=L),Be.linenum==null&&(Be.linenum=L),Se==null&&(Se=L),Ne(Be.colcount,-1)?(Be.table.$columns()["$<<"](Xe=He(me("Table"),"Column").$new(Be.table,Ve(ht(Be.table.$columns().$size(),Se),1))),qe(b)&&qe(b["$key?"]("colspan"))&&qe(et(it=Ve(b["$[]"]("colspan").$to_i(),1),0))&&(pt=Be.table.$columns().$size(),Pe(it,"times",[],function bt(kt){var Et=bt.$$s==null?this:bt.$$s;return Et.table==null&&(Et.table=L),kt==null&&(kt=L),Et.table.$columns()["$<<"](He(me("Table"),"Column").$new(Et.table,ht(pt,kt)))},{$$s:Be}))):qe(Xe=Be.table.$columns()["$[]"](Be.current_row.$size()))||(Be.$logger().$error(Be.$message_with_context("dropping cell because it exceeds specified number of columns",X(["source_location"],{source_location:Be.reader.$cursor_before_mark()}))),_.$throw()),at=He(me("Table"),"Cell").$new(Xe,S,b,X(["cursor"],{cursor:Be.reader.$cursor_before_mark()})),Be.reader.$mark(),rt(at.$rowspan())||Ne(at.$rowspan(),1)||Be.$activate_rowspan(at.$rowspan(),qe(H=at.$colspan())?H:1),Be.column_visits=ht(Be.column_visits,qe(H=at.$colspan())?H:1),Be.current_row["$<<"](at),qe(Be["$end_of_row?"]())&&(dt(Be.colcount,-1)||qe(et(Be.linenum,0))||qe(u)&&Ne(Se,F))?Be.$close_row():L},{$$s:z,$$ret:_}),z.cell_open=!1,L}catch(ce){if(ce===_)return ce.$v;throw ce}},-1),ae.$private(),ye(ae,"$close_row",function(){var u=this;return u.table.$rows().$body()["$<<"](u.current_row),Ne(u.colcount,-1)&&(u.colcount=u.column_visits),u.column_visits=0,u.current_row=[],u.active_rowspans.$shift(),qe(u.active_rowspans["$[]"](0))||u.active_rowspans["$[]="](0,0),L}),ye(ae,"$activate_rowspan",function(u,_){var z=this;return Pe(1,"upto",[Ve(u,1)],function S(b){var F,H=S.$$s==null?this:S.$$s,ge=L;return H.active_rowspans==null&&(H.active_rowspans=L),b==null&&(b=L),F=[b,ht(qe(ge=H.active_rowspans["$[]"](b))?ge:0,_)],Pe(H.active_rowspans,"[]=",F),F[F.length-1]},{$$s:z}),L}),ye(ae,"$end_of_row?",function(){var u=this,_=L;return qe(_=u.colcount["$=="](-1))?_:u.$effective_column_visits()["$=="](u.colcount)}),ye(ae,"$effective_column_visits",function(){var u=this;return ht(u.column_visits,u.active_rowspans["$[]"](0))}),ye(ae,"$advance",function(){var u=this;return u.linenum=ht(u.linenum,1)})}(we("Table"),null,$e)}(Z[0],Z)},Opal.modules["asciidoctor/writer"]=function(a){var ue=a.module,se=a.truthy,K=a.rb_plus,ye=a.hash2,y=a.def,X=a.return_val,Ue=[],J=a.nil,qe=a.$$$;return a.add_stubs("respond_to?,write,+,chomp,include"),function(R,et){var Ne=ue(R,"Asciidoctor"),Ke=[Ne].concat(et);return function(Le,Pe){var ht=ue(Le,"Writer"),Ve=[ht].concat(Pe),st=a.$r(Ve);return y(ht,"$write",function(Ze,dt){return se(dt["$respond_to?"]("write"))?dt.$write(K(Ze.$chomp(),st("LF"))):qe("File").$write(dt,Ze,ye(["mode"],{mode:st("FILE_WRITE_MODE")})),J})}(Ke[0],Ke),function(Le,Pe){var ht=ue(Le,"VoidWriter"),Ve=[ht].concat(Pe),st=a.$r(Ve);return ht.$include(st("Writer")),y(ht,"$write",X(J))}(Ke[0],Ke)}(Ue[0],Ue)},Opal.modules["asciidoctor/load"]=function(a){var ue=a.module,se=a.hash2,K=a.truthy,ye=a.neqeq,y=a.not,X=a.eqeqeq,Ue=a.send,J=a.to_ary,qe=a.rb_plus,R=a.eqeq,et=a.def,Ne=[],Ke=a.nil,Le=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,ht){var Ve=ue(Pe,"Asciidoctor"),st=[Ve].concat(ht);return function(Ye,Ze){var dt=[Ye].concat(Ze),I=a.$r(dt);return et(Ye,"$load",function(C,rt){var lt,Z,L,He,ke=this,Ie=Ke,Re=Ke,$e=Ke,we=Ke,ee=Ke,P=Ke,D=Ke,ae=Ke,ie=Ke,me=Ke;rt==null&&(rt=se([],{}));try{if(rt=rt.$merge(),K(Ie=rt["$[]"]("timings"))&&Ie.$start("read"),K(rt["$key?"]("logger"))&&ye(Re=rt["$[]"]("logger"),I("LoggerManager").$logger())&&I("LoggerManager")["$logger="](K($e=Re)?$e:I("NullLogger").$new()),y(we=rt["$[]"]("attributes"))?we=se([],{}):X(Le("Hash"),we)?we=we.$merge():K((L=Le("::","Java","skip_raise"))&&(Z=Le(L,"JavaUtil","skip_raise"))&&(lt=Le(Z,"Map","skip_raise"))?"constant":Ke)&&X(Le(Le(Le("Java"),"JavaUtil"),"Map"),we)?we=we.$dup():X(Le("Array"),we)?we=Ue(se([],{}),"tap",[],function(g){return g==null&&(g=Ke),Ue(we,"each",[],function(_){var z,S,b=Ke,F=Ke,H=Ke;return _==null&&(_=Ke),S=_.$partition("="),z=J(S),b=z[0]==null?Ke:z[0],F=z[1]==null?Ke:z[1],H=z[2]==null?Ke:z[2],z=[b,H],Ue(g,"[]=",z),z[z.length-1]})}):X(Le("String"),we)?we=Ue(se([],{}),"tap",[],function(g){return g==null&&(g=Ke),Ue(we.$gsub(I("SpaceDelimiterRx"),qe("\\1",I("NULL"))).$gsub(I("EscapedSpaceRx"),"\\1").$split(I("NULL")),"each",[],function(_){var z,S,b=Ke,F=Ke,H=Ke;return _==null&&(_=Ke),S=_.$partition("="),z=J(S),b=z[0]==null?Ke:z[0],F=z[1]==null?Ke:z[1],H=z[2]==null?Ke:z[2],z=[b,H],Ue(g,"[]=",z),z[z.length-1]})}):K(we["$respond_to?"]("keys"))&&K(we["$respond_to?"]("[]"))?we=Ue(se([],{}),"tap",[],function(g){return g==null&&(g=Ke),Ue(we.$keys(),"each",[],function(_){var z;return _==null&&(_=Ke),z=[_,we["$[]"](_)],Ue(g,"[]=",z),z[z.length-1]})}):ke.$raise(Le("ArgumentError"),"illegal type for attributes option: "+we.$class().$ancestors().$join(" < ")),X(Le("File"),C))rt["$[]="]("input_mtime",R(I("RUBY_ENGINE"),"jruby")?Le("Time").$at(C.$mtime().$to_i()):C.$mtime()),we["$[]="]("docfile",ee=Le("File").$absolute_path(C.$path())),we["$[]="]("docdir",Le("File").$dirname(ee)),we["$[]="]("docname",I("Helpers").$basename(ee,(He=["docfilesuffix",I("Helpers").$extname(ee)],Ue(we,"[]=",He),He[He.length-1]))),P=C.$read();else if(K(C["$respond_to?"]("read"))){try{C.$rewind()}catch(G){if(a.rescue(G,[I("StandardError")]))try{}finally{a.pop_exception()}else throw G}P=C.$read()}else X(Le("String"),C)?P=C:X(Le("Array"),C)?P=C.$drop(0):K(C)&&ke.$raise(Le("ArgumentError"),"unsupported input type: "+C.$class());return K(Ie)&&(Ie.$record("read"),Ie.$start("parse")),rt["$[]="]("attributes",we),D=R(rt["$[]"]("parse"),!1)?I("Document").$new(P,rt):I("Document").$new(P,rt).$parse(),K(Ie)&&Ie.$record("parse"),D}catch(G){if(a.rescue(G,[I("StandardError")])){ae=G;try{try{ie="asciidoctor: FAILED: "+(K($e=we["$[]"]("docfile"))?$e:"<stdin>")+": Failed to load AsciiDoc document",K(ae["$respond_to?"]("exception"))?(me=ae.$exception(""+ie+" - "+ae.$message()),me.$set_backtrace(ae.$backtrace())):(me=ae.$class().$new(ie,ae),me["$stack_trace="](ae.$stack_trace()))}catch(g){if(a.rescue(g,[I("StandardError")]))try{me=ae}finally{a.pop_exception()}else throw g}return ke.$raise(me)}finally{a.pop_exception()}}else throw G}},-2),et(Ye,"$load_file",function(C,rt){var lt=this;return rt==null&&(rt=se([],{})),Ue(Le("File"),"open",[C,I("FILE_READ_MODE")],function Z(L){var He=Z.$$s==null?this:Z.$$s;return L==null&&(L=Ke),He.$load(L,rt)},{$$s:lt})},-2)}(a.get_singleton_class(Ve),st)}(Ne[0],Ne)},Opal.modules["asciidoctor/convert"]=function(a){var ue=a.module,se=a.hash2,K=a.eqeqeq,ye=a.truthy,y=a.eqeq,X=a.rb_ge,Ue=a.not,J=a.rb_lt,qe=a.neqeq,R=a.def,et=a.send,Ne=a.alias,Ke=[],Le=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(ht,Ve){var st=ue(ht,"Asciidoctor"),Ye=[st].concat(Ve);return function(Ze,dt){var I=[Ze].concat(dt),tt=a.$r(I);return R(Ze,"$convert",function(rt,lt){var Z=this,L=Le,He=Le,ke=Le,Ie=Le,Re=Le,$e=Le,we=Le,ee=Le,P=Le,D=Le,ae=Le,ie=Le,me=Le,G=Le,g=Le,u=Le,_=Le,z=Le,S=Le,b=Le,F=Le,H=Le,ge=Le,ce=Le;if(lt==null&&(lt=se([],{})),(lt=lt.$merge()).$delete("parse"),L=lt.$delete("to_dir"),He=lt.$delete("mkdirs"),K(!0,ke=Ie=lt.$delete("to_file"))||K(Le,ke))ye(Re=L)||K(Pe("File"),rt)&&($e=Pe("File").$absolute_path(rt.$path())),Ie=Le;else if(K(!1,ke))Ie=Le;else{if(K("/dev/null",ke))return Z.$load(rt,lt);ye(we=Ie["$respond_to?"]("write"))||lt["$[]="]("to_file",Re=Ie)}return ye(lt["$key?"]("standalone"))||(ye($e)||ye(Re)?lt["$[]="]("standalone",lt.$fetch("header_footer",!0)):ye(lt["$key?"]("header_footer"))&<["$[]="]("standalone",lt["$[]"]("header_footer"))),ye($e)?lt["$[]="]("to_dir",ee=Pe("File").$dirname($e)):ye(Re)&&(ye(L)?ye(Ie)?lt["$[]="]("to_dir",Pe("File").$dirname(Pe("File").$expand_path(Ie,L))):lt["$[]="]("to_dir",Pe("File").$expand_path(L)):ye(Ie)&<["$[]="]("to_dir",Pe("File").$dirname(Pe("File").$expand_path(Ie)))),P=Z.$load(rt,lt),ye($e)?(D=Pe("File").$join(ee,""+P.$attributes()["$[]"]("docname")+P.$outfilesuffix()),y(D,$e)&&Z.$raise(Pe("IOError"),"input file and output file cannot be the same: "+D)):ye(Re)?(ae=ye(lt["$key?"]("base_dir"))?Pe("File").$expand_path(lt["$[]"]("base_dir")):Pe("Dir").$pwd(),ie=ye(X(P.$safe(),Pe(tt("SafeMode"),"SAFE")))?ae:Le,ye(L)?(ee=P.$normalize_system_path(L,ae,ie,se(["target_name","recover"],{target_name:"to_dir",recover:!1})),ye(Ie)?(D=P.$normalize_system_path(Ie,ee,Le,se(["target_name","recover"],{target_name:"to_dir",recover:!1})),ee=Pe("File").$dirname(D)):D=Pe("File").$join(ee,""+P.$attributes()["$[]"]("docname")+P.$outfilesuffix())):ye(Ie)&&(D=P.$normalize_system_path(Ie,ae,ie,se(["target_name","recover"],{target_name:"to_dir",recover:!1})),ee=Pe("File").$dirname(D)),K(Pe("File"),rt)&&y(D,Pe("File").$absolute_path(rt.$path()))&&Z.$raise(Pe("IOError"),"input file and output file cannot be the same: "+D),ye(He)?tt("Helpers").$mkdir_p(ee):ye(Pe("File")["$directory?"](ee))||Z.$raise(Pe("IOError"),"target directory does not exist: "+L+" (hint: set :mkdirs option)")):(D=Ie,ee=Le),ye(D)&&Ue(we)?me=P.$convert(se(["outfile","outdir"],{outfile:D,outdir:ee})):me=P.$convert(),ye(D)?(P.$write(me,D),Ue(we)&&ye(J(P.$safe(),Pe(tt("SafeMode"),"SECURE")))&&ye(P["$attr?"]("linkcss"))&&ye(P["$attr?"]("copycss"))&&ye(P["$basebackend?"]("html"))&&Ue(ye(ke=G=P.$attr("stylesdir"))?tt("Helpers")["$uriish?"](G):ke)&&(ye(g=P.$attr("stylesheet"))&&(ye(tt("DEFAULT_STYLESHEET_KEYS")["$include?"](g))?u=!0:Ue(tt("Helpers")["$uriish?"](g))&&(_=!0)),z=ye(ke=S=P.$syntax_highlighter())?S["$write_stylesheet?"](P):ke,(ye(u)||ye(_)||ye(z))&&(b=P.$normalize_system_path(G,ee,ye(X(P.$safe(),Pe(tt("SafeMode"),"SAFE")))?ee:Le),ye(He)?tt("Helpers").$mkdir_p(b):ye(Pe("File")["$directory?"](b))||Z.$raise(Pe("IOError"),"target stylesheet directory does not exist: "+b+" (hint: set :mkdirs option)"),ye(u)?tt("Stylesheets").$instance().$write_primary_stylesheet(b):ye(_)&&(y(F=P.$attr("copycss"),"")||y(F,!0)?F=P.$normalize_system_path(g):F=P.$normalize_system_path(F.$to_s()),H=P.$normalize_system_path(g,b,ye(X(P.$safe(),Pe(tt("SafeMode"),"SAFE")))?ee:Le),qe(F,H)&&ye(ge=P.$read_asset(F,se(["warn_on_failure","label"],{warn_on_failure:Pe("File")["$file?"](H)["$!"](),label:"stylesheet"})))&&(qe(ce=Pe("File").$dirname(H),b)&&Ue(Pe("File")["$directory?"](ce))&&(ye(He)?tt("Helpers").$mkdir_p(ce):Z.$raise(Pe("IOError"),"target stylesheet directory does not exist: "+ce+" (hint: set :mkdirs option)")),Pe("File").$write(H,ge,se(["mode"],{mode:tt("FILE_WRITE_MODE")})))),ye(z)&&S.$write_stylesheet(P,b))),P):me},-2),R(Ze,"$convert_file",function(rt,lt){var Z=this;return lt==null&&(lt=se([],{})),et(Pe("File"),"open",[rt,tt("FILE_READ_MODE")],function L(He){var ke=L.$$s==null?this:L.$$s;return He==null&&(He=Le),ke.$convert(He,lt)},{$$s:Z})},-2),Ne(Ze,"render","convert"),Ne(Ze,"render_file","convert_file")}(a.get_singleton_class(st),Ye)}(Ke[0],Ke)},Opal.modules["asciidoctor/syntax_highlighter/highlightjs"]=function(a){var ue=a.module,se=a.klass,K=a.slice,ye=a.send2,y=a.find_super,X=a.to_a,Ue=a.def,J=a.hash2,qe=a.send,R=a.truthy,et=a.return_val,Ne=a.eqeq,Ke=[],Le=a.nil,Pe=a.$$$;return a.add_stubs("register_for,merge,proc,[]=,attr,[],==,attr?,join,map,split,lstrip"),function(ht,Ve){var st=ue(ht,"Asciidoctor"),Ye=[st].concat(Ve),Ze=a.$r(Ye);return function(dt,I,tt){var C=se(dt,I,"HighlightJsAdapter"),rt=[C].concat(tt),lt=a.$r(rt);return C.$register_for("highlightjs","highlight.js"),Ue(C,"$initialize",function Z(L){var He,ke,Ie=Z.$$p||Le,Re=this;return Z.$$p=null,He=K(arguments),ke=He,ye(Re,y(Re,"initialize",Z,!1,!0),"initialize",X(ke),Ie),Re.name=Re.pre_class="highlightjs"},-1),Ue(C,"$format",function Z(L,He,ke){Z.$$p;var Ie=this;return Z.$$p=null,ye(Ie,y(Ie,"format",Z,!1,!0),"format",[L,He,ke.$merge(J(["transform"],{transform:qe(Ie,"proc",[],function($e,we){var ee,P=Le;return we==null&&(we=Le),ee=["class","language-"+(R(P=He)?P:"none")+" hljs"],qe(we,"[]=",ee),ee[ee.length-1]})}))],null)}),Ue(C,"$docinfo?",et(!0)),Ue(C,"$docinfo",function(L,He,ke){var Ie=Le;return Ie=He.$attr("highlightjsdir",""+ke["$[]"]("cdn_base_url")+"/highlight.js/"+lt("HIGHLIGHT_JS_VERSION")),Ne(L,"head")?'<link rel="stylesheet" href="'+Ie+"/styles/"+He.$attr("highlightjs-theme","github")+'.min.css"'+ke["$[]"]("self_closing_tag_slash")+">":'<script src="'+Ie+`/highlight.min.js"><\/script>
|
|
466
|
-
`+(R(He["$attr?"]("highlightjs-languages"))?qe(He.$attr("highlightjs-languages").$split(","),"map",[],function($e){return $e==null&&($e=Le),'<script src="'+Ie+"/languages/"+$e.$lstrip()+`.min.js"><\/script>
|
|
467
|
-
`}).$join():"")+`<script>
|
|
468
|
-
if (!hljs.initHighlighting.called) {
|
|
469
|
-
hljs.initHighlighting.called = true
|
|
470
|
-
;[].slice.call(document.querySelectorAll('pre.highlight > code[data-lang]')).forEach(function (el) { hljs.highlightBlock(el) })
|
|
471
|
-
}
|
|
472
|
-
<\/script>`})}(Ze("SyntaxHighlighter"),Pe(Ze("SyntaxHighlighter"),"Base"),Ye)}(Ke[0],Ke)},Opal.modules["asciidoctor/syntax_highlighter"]=function(a){var ue=a.module,se=a.hash2,K=a.def,ye=a.return_val,y=a.defs,X=a.slice,Ue=a.send,J=a.to_a,qe=a.truthy,R=a.eqeqeq,et=a.Class,Ne=a.klass,Ke=a.class_variable_set,Le=a.class_variable_get,Pe=a.top,ht=[],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(Ye,Ze){var dt=ue(Ye,"Asciidoctor"),I=[dt].concat(Ze);return function(tt,C){var rt=ue(tt,"SyntaxHighlighter"),lt=[rt].concat(C),Z=a.$r(lt);return rt.$attr_reader("name"),K(rt,"$initialize",function(He,ke,Ie){var Re=this;return Ie==null&&(Ie=se([],{})),Re.name=Re.pre_class=He},-2),K(rt,"$docinfo?",ye(Ve)),K(rt,"$docinfo",function(He,ke,Ie){var Re=this;return Re.$raise(st("NotImplementedError"),""+Z("SyntaxHighlighter")+" subclass "+Re.$class()+" must implement the #docinfo method since #docinfo? returns true")}),K(rt,"$highlight?",ye(Ve)),K(rt,"$highlight",function(He,ke,Ie,Re){var $e=this;return $e.$raise(st("NotImplementedError"),""+Z("SyntaxHighlighter")+" subclass "+$e.$class()+" must implement the #highlight method since #highlight? returns true")}),K(rt,"$format",function(He,ke,Ie){var Re=this;return Re.$raise(st("NotImplementedError"),""+Z("SyntaxHighlighter")+" subclass "+Re.$class()+" must implement the #format method")}),K(rt,"$write_stylesheet?",ye(Ve)),K(rt,"$write_stylesheet",function(He,ke){var Ie=this;return Ie.$raise(st("NotImplementedError"),""+Z("SyntaxHighlighter")+" subclass "+Ie.$class()+" must implement the #write_stylesheet method since #write_stylesheet? returns true")}),y(rt,"$included",function(He){return He.$extend(Z("Config"))}),rt.$private_class_method("included"),function(L,He){var ke=ue(L,"Config"),Ie=[ke].concat(He),Re=a.$r(Ie);return K(ke,"$register_for",function(we){var ee,P,D=this;return ee=X(arguments),P=ee,Ue(Re("SyntaxHighlighter"),"register",[D].concat(J(Ue(P,"map",[],function(ie){return ie==null&&(ie=Ve),ie.$to_s()}))))},-1)}(lt[0],lt),function(L,He){var ke=ue(L,"Factory"),Ie=[ke].concat(He),Re=a.$r(Ie);return K(ke,"$register",function(we,ee){var P,D,ae=this;return P=X(arguments,1),D=P,Ue(D,"each",[],function ie(me){var G,g=ie.$$s==null?this:ie.$$s;return me==null&&(me=Ve),G=[me,we],Ue(g.$registry(),"[]=",G),G[G.length-1]},{$$s:ae})},-2),K(ke,"$for",function(we){var ee=this;return ee.$registry()["$[]"](we)}),K(ke,"$create",function(we,ee,P){var D=this,ae=Ve;return ee==null&&(ee="html5"),P==null&&(P=se([],{})),qe(ae=D.$for(we))?(R(et,ae)&&(ae=ae.$new(we,ee,P)),qe(ae.$name())||D.$raise(st("NameError"),""+ae.$class()+" must specify a value for `name'"),ae):Ve},-2),ke.$private(),K(ke,"$registry",function(){var we=this;return we.$raise(st("NotImplementedError"),""+Re("Factory")+" subclass "+we.$class()+" must implement the #registry method")})}(lt[0],lt),function(L,He,ke){var Ie=Ne(L,He,"CustomFactory"),Re=[Ie].concat(ke),$e=a.$r(Re);return Ie.$include($e("Factory")),K(Ie,"$initialize",function(ee){var P=this,D=Ve;return ee==null&&(ee=Ve),P.registry=qe(D=ee)?D:se([],{})},-1),Ie.$private(),Ie.$attr_reader("registry")}(lt[0],null,lt),function(L,He){var ke=ue(L,"DefaultFactory"),Ie=[ke].concat(He),Re=a.$r(Ie);return ke.$include(Re("Factory")),Ke(Ie[0],"@@registry",se([],{})),ke.$private(),K(ke,"$registry",function(){return Le(Ie[0],"@@registry",!1)}),Ve}(lt[0],lt),function(L,He,ke){var Ie=Ne(L,He,"DefaultFactoryProxy"),Re=[Ie].concat(ke),$e=a.$r(Re);return Ie.$include($e("DefaultFactory")),Ve}(lt[0],Z("CustomFactory"),lt),function(L,He,ke){var Ie=Ne(L,He,"Base"),Re=[Ie].concat(ke),$e=a.$r(Re),we=Ie.$$prototype;return we.pre_class=Ve,Ie.$include($e("SyntaxHighlighter")),K(Ie,"$format",function(P,D,ae){var ie=this,me=Ve,G=Ve,g=Ve,u=Ve;return me=qe(ae["$[]"]("nowrap"))?""+ie.pre_class+" highlight nowrap":""+ie.pre_class+" highlight",qe(G=ae["$[]"]("transform"))?(G["$[]"](g=se(["class"],{class:me}),u=qe(D)?se(["data-lang"],{"data-lang":D}):se([],{})),qe(D=u.$delete("data-lang"))&&u["$[]="]("data-lang",D),"<pre"+Ue(g,"map",[],function(z,S){return z==null&&(z=Ve),S==null&&(S=Ve)," "+z+'="'+S+'"'}).$join()+"><code"+Ue(u,"map",[],function(z,S){return z==null&&(z=Ve),S==null&&(S=Ve)," "+z+'="'+S+'"'}).$join()+">"+P.$content()+"</code></pre>"):'<pre class="'+me+'"><code'+(qe(D)?' data-lang="'+D+'"':"")+">"+P.$content()+"</code></pre>"})}(lt[0],null,lt),rt.$extend(Z("DefaultFactory"))}(I[0],I)}(ht[0],ht),Pe.$require("asciidoctor/syntax_highlighter.rb/../syntax_highlighter/highlightjs"),Ve},Opal.modules["asciidoctor/timings"]=function(a){var ue=a.module,se=a.klass,K=a.hash2,ye=a.def,y=a.send,X=a.rb_minus,Ue=a.slice,J=a.rb_plus,qe=a.truthy,R=a.rb_gt,et=a.gvars,Ne=a.eqeq,Ke=a.const_set,Le=[],Pe=a.nil,ht=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 Ye=ue(Ve,"Asciidoctor"),Ze=[Ye].concat(st);return function(dt,I,tt){var C=se(dt,I,"Timings"),rt,lt,Z,L,He=[C].concat(tt),ke=a.$r(He),Ie=C.$$prototype;return Ie.timers=Ie.log=Pe,ye(C,"$initialize",function(){var $e=this;return $e.log=K([],{}),$e.timers=K([],{})}),ye(C,"$start",function($e){var we,ee=this;return we=[$e,ee.$now()],y(ee.timers,"[]=",we),we[we.length-1]}),ye(C,"$record",function($e){var we,ee=this;return we=[$e,X(ee.$now(),ee.timers.$delete($e))],y(ee.log,"[]=",we),we[we.length-1]}),ye(C,"$time",function($e){var we,ee,P=this,D=Pe;return we=Ue(arguments),ee=we,D=y(ee,"reduce",[0],function ae(ie,me){var G=ae.$$s==null?this:ae.$$s,g=Pe;return G.log==null&&(G.log=Pe),ie==null&&(ie=Pe),me==null&&(me=Pe),J(ie,qe(g=G.log["$[]"](me))?g:0)},{$$s:P}),qe(R(D,0))?D:Pe},-1),ye(C,"$read",function(){var $e=this;return $e.$time("read")}),ye(C,"$parse",function(){var $e=this;return $e.$time("parse")}),ye(C,"$read_parse",function(){var $e=this;return $e.$time("read","parse")}),ye(C,"$convert",function(){var $e=this;return $e.$time("convert")}),ye(C,"$read_parse_convert",function(){var $e=this;return $e.$time("read","parse","convert")}),ye(C,"$write",function(){var $e=this;return $e.$time("write")}),ye(C,"$total",function(){var $e=this;return $e.$time("read","parse","convert","write")}),ye(C,"$print_report",function($e,we){var ee=this;return et.stdout==null&&(et.stdout=Pe),$e==null&&($e=et.stdout),we==null&&(we=Pe),qe(we)&&$e.$puts("Input file: "+we),$e.$puts(" Time to read and parse source: "+ee.$sprintf("%05.5f",ee.$read_parse().$to_f())),$e.$puts(" Time to convert document: "+ee.$sprintf("%05.5f",ee.$convert().$to_f())),$e.$puts(" Total time (read, parse and convert): "+ee.$sprintf("%05.5f",ee.$read_parse_convert().$to_f()))},-1),C.$private(),qe(ht("Process")["$const_defined?"]("CLOCK_MONOTONIC",!1))&&Ne((rt=ht("::","Process","skip_raise"))&&(lt=rt,lt)&&(Z=lt)&&((L=Z.$clock_gettime)&&!L.$$stub||Z["$respond_to_missing?"]("clock_gettime"))?"method":Pe,"method")?(Ke(He[0],"CLOCK_ID",ht(ht("Process"),"CLOCK_MONOTONIC")),ye(C,"$now",function(){return ht("Process").$clock_gettime(ke("CLOCK_ID"))})):ye(C,"$now",function(){return ht("Time").$now()})}(Ze[0],null,Ze)}(Le[0],Le)},Opal.modules["asciidoctor/converter/html5"]=function(a){var ue=a.module,se=a.klass,K=a.const_set,ye=a.hash2,y=a.regexp,X=a.eqeq,Ue=a.def,J=a.send2,qe=a.find_super,R=a.truthy,et=a.send,Ne=a.rb_gt,Ke=a.rb_plus,Le=a.not,Pe=a.neqeq,ht=a.rb_le,Ve=a.rb_lt,st=a.to_ary,Ye=a.rb_times,Ze=a.rb_minus,dt=a.gvars,I=a.return_val,tt=a.alias,C=a.eqeqeq,rt=a.slice,lt=a.to_a,Z=[],L=a.nil,He=a.$$$;return a.add_stubs("register_for,default=,==,[],init_backend_traits,node_name,convert_inline_quoted,convert_paragraph,convert_inline_anchor,convert_section,convert_listing,convert_literal,convert_ulist,convert_olist,convert_dlist,convert_admonition,convert_colist,convert_embedded,convert_example,convert_floating_title,convert_image,convert_inline_break,convert_inline_button,convert_inline_callout,convert_inline_footnote,convert_inline_image,convert_inline_indexterm,convert_inline_kbd,convert_inline_menu,convert_open,convert_page_break,convert_preamble,convert_quote,convert_sidebar,convert_stem,convert_table,convert_thematic_break,convert_verse,convert_video,convert_document,convert_toc,convert_pass,convert_audio,empty?,attr,attr?,<<,include?,sub_replacements,gsub,extname,slice,length,doctitle,normalize_web_path,primary_stylesheet_data,instance,read_contents,syntax_highlighter,size,docinfo,id,sections?,doctype,role?,role,join,noheader,convert,converter,generate_manname_section,header?,notitle,title,header,each,authors,>,name,email,sub_macros,+,downcase,concat,content,!,footnotes?,footnotes,index,text,nofooter,docinfo?,[]=,delete_at,inspect,!=,to_i,attributes,document,sections,level,caption,captioned_title,<=,numbered,<,sectname,sectnum,convert_outline,title?,icon_uri,compact,media_uri,option?,append_boolean_attribute,style,items,blocks?,text?,chomp,safe,read_svg_contents,alt,image_uri,encode_attribute_value,append_link_constraint_attrs,highlight?,to_sym,format,*,-,count,end_with?,start_with?,list_marker_keyword,parent,warn,logger,context,error,content_only,new,columns,to_h,rows,colspan,rowspan,unshift,shift,split,pop,nil_or_empty?,type,===,catalog,get_root_document,xreftext,target,reftext,chop,sub,match,private,upcase,nested?,parent_document,handles?,to_s,send"),function(ke,Ie){var Re=ue(ke,"Asciidoctor"),$e=[Re].concat(Ie),we=a.$r($e);return function(ee,P,D){var ae=se(ee,P,"Html5Converter"),ie=[ae].concat(D),me=a.$r(ie),G=ae.$$prototype;return G.void_element_slash=G.xml_mode=G.refs=G.resolving_xref=L,ae.$register_for("html5"),K(ie[0],"QUOTE_TAGS",ye(["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="](["",""]),K(ie[0],"DropAnchorRx",/<(?:a\b[^>]*|\/a)>/),K(ie[0],"StemBreakRx",/ *\\\n(?:\\?\n)*|\n\n+/),K(ie[0],"SvgPreambleRx",y(["^",me("CC_ALL"),"*?(?=<svg[\\s>])"])),K(ie[0],"SvgStartTagRx",/^<svg(?:\s[^>]*)?>/),K(ie[0],"DimensionAttributeRx",y([`\\s(?:width|height|style)=(["'])`,me("CC_ANY"),"*?\\1"])),Ue(ae,"$initialize",function(u,_){var z=this,S=L;return _==null&&(_=ye([],{})),z.backend=u,X(_["$[]"]("htmlsyntax"),"xml")?(S="xml",z.xml_mode=!0,z.void_element_slash="/"):(S="html",z.xml_mode=L,z.void_element_slash=""),z.$init_backend_traits(ye(["basebackend","filetype","htmlsyntax","outfilesuffix","supports_templates"],{basebackend:"html",filetype:"html",htmlsyntax:S,outfilesuffix:".html",supports_templates:!0}))},-2),Ue(ae,"$convert",function g(u,_,z){var S=g.$$p||L,b=this;switch(g.$$p=null,_==null&&(_=u.$node_name()),z==null&&(z=L),_){case"inline_quoted":return b.$convert_inline_quoted(u);case"paragraph":return b.$convert_paragraph(u);case"inline_anchor":return b.$convert_inline_anchor(u);case"section":return b.$convert_section(u);case"listing":return b.$convert_listing(u);case"literal":return b.$convert_literal(u);case"ulist":return b.$convert_ulist(u);case"olist":return b.$convert_olist(u);case"dlist":return b.$convert_dlist(u);case"admonition":return b.$convert_admonition(u);case"colist":return b.$convert_colist(u);case"embedded":return b.$convert_embedded(u);case"example":return b.$convert_example(u);case"floating_title":return b.$convert_floating_title(u);case"image":return b.$convert_image(u);case"inline_break":return b.$convert_inline_break(u);case"inline_button":return b.$convert_inline_button(u);case"inline_callout":return b.$convert_inline_callout(u);case"inline_footnote":return b.$convert_inline_footnote(u);case"inline_image":return b.$convert_inline_image(u);case"inline_indexterm":return b.$convert_inline_indexterm(u);case"inline_kbd":return b.$convert_inline_kbd(u);case"inline_menu":return b.$convert_inline_menu(u);case"open":return b.$convert_open(u);case"page_break":return b.$convert_page_break(u);case"preamble":return b.$convert_preamble(u);case"quote":return b.$convert_quote(u);case"sidebar":return b.$convert_sidebar(u);case"stem":return b.$convert_stem(u);case"table":return b.$convert_table(u);case"thematic_break":return b.$convert_thematic_break(u);case"verse":return b.$convert_verse(u);case"video":return b.$convert_video(u);case"document":return b.$convert_document(u);case"toc":return b.$convert_toc(u);case"pass":return b.$convert_pass(u);case"audio":return b.$convert_audio(u);default:return J(b,qe(b,"convert",g,!1,!0),"convert",[u,_,z],S)}},-2),Ue(ae,"$convert_document",function(u){var _=this,z=L,S=L,b=L,F=L,H=L,ge=L,ce=L,Se=L,Be=L,Xe=L,it=L,pt=L,at=L,bt=L,kt=L,Et=L,wt=L,Nt=L,Tt=L,Vt=L,jt=L,er=L,Kt=L,Pt=L,Yt=L;return z="<br"+(S=_.void_element_slash)+">",R((b=u.$attr("asset-uri-scheme","https"))["$empty?"]())||(b=""+b+":"),F=""+b+"//cdnjs.cloudflare.com/ajax/libs",H=u["$attr?"]("linkcss"),ge=R(u["$attr?"]("max-width"))?' style="max-width: '+u.$attr("max-width")+';"':"",ce=["<!DOCTYPE html>"],Se=R(u["$attr?"]("nolang"))?"":' lang="'+u.$attr("lang","en")+'"',ce["$<<"]("<html"+(R(_.xml_mode)?' xmlns="http://www.w3.org/1999/xhtml"':"")+Se+">"),ce["$<<"](`<head>
|
|
473
|
-
<meta charset="`+u.$attr("encoding","UTF-8")+'"'+S+`>
|
|
474
|
-
<meta http-equiv="X-UA-Compatible" content="IE=edge"`+S+`>
|
|
475
|
-
<meta name="viewport" content="width=device-width, initial-scale=1.0"`+S+`>
|
|
476
|
-
<meta name="generator" content="Asciidoctor `+u.$attr("asciidoctor-version")+'"'+S+">"),R(u["$attr?"]("app-name"))&&ce["$<<"]('<meta name="application-name" content="'+u.$attr("app-name")+'"'+S+">"),R(u["$attr?"]("description"))&&ce["$<<"]('<meta name="description" content="'+u.$attr("description")+'"'+S+">"),R(u["$attr?"]("keywords"))&&ce["$<<"]('<meta name="keywords" content="'+u.$attr("keywords")+'"'+S+">"),R(u["$attr?"]("authors"))&&ce["$<<"]('<meta name="author" content="'+(R((Be=u.$sub_replacements(u.$attr("authors")))["$include?"]("<"))?Be.$gsub(me("XmlSanitizeRx"),""):Be)+'"'+S+">"),R(u["$attr?"]("copyright"))&&ce["$<<"]('<meta name="copyright" content="'+u.$attr("copyright")+'"'+S+">"),R(u["$attr?"]("favicon"))&&(R((Xe=u.$attr("favicon"))["$empty?"]())?(Xe="favicon.ico",it="image/x-icon"):R(pt=me("Helpers").$extname(Xe,L))?it=X(pt,".ico")?"image/x-icon":"image/"+pt.$slice(1,pt.$length()):it="image/x-icon",ce["$<<"]('<link rel="icon" type="'+it+'" href="'+Xe+'"'+S+">")),ce["$<<"]("<title>"+u.$doctitle(ye(["sanitize","use_fallback"],{sanitize:!0,use_fallback:!0}))+"</title>"),R(me("DEFAULT_STYLESHEET_KEYS")["$include?"](u.$attr("stylesheet")))?(R(at=u.$attr("webfonts"))&&ce["$<<"]('<link rel="stylesheet" href="'+b+"//fonts.googleapis.com/css?family="+(R(at["$empty?"]())?"Open+Sans:300,300italic,400,400italic,600,600italic%7CNoto+Serif:400,400italic,700,700italic%7CDroid+Sans+Mono:400,700":at)+'"'+S+">"),R(H)?ce["$<<"]('<link rel="stylesheet" href="'+u.$normalize_web_path(me("DEFAULT_STYLESHEET_NAME"),u.$attr("stylesdir",""),!1)+'"'+S+">"):ce["$<<"](`<style>
|
|
477
|
-
`+me("Stylesheets").$instance().$primary_stylesheet_data()+`
|
|
478
|
-
</style>`)):R(u["$attr?"]("stylesheet"))&&(R(H)?ce["$<<"]('<link rel="stylesheet" href="'+u.$normalize_web_path(u.$attr("stylesheet"),u.$attr("stylesdir",""))+'"'+S+">"):ce["$<<"](`<style>
|
|
479
|
-
`+u.$read_contents(u.$attr("stylesheet"),ye(["start","warn_on_failure","label"],{start:u.$attr("stylesdir"),warn_on_failure:!0,label:"stylesheet"}))+`
|
|
480
|
-
</style>`)),R(u["$attr?"]("icons","font"))&&(R(u["$attr?"]("iconfont-remote"))?ce["$<<"]('<link rel="stylesheet" href="'+u.$attr("iconfont-cdn",""+F+"/font-awesome/"+me("FONT_AWESOME_VERSION")+"/css/font-awesome.min.css")+'"'+S+">"):(bt=""+u.$attr("iconfont-name","font-awesome")+".css",ce["$<<"]('<link rel="stylesheet" href="'+u.$normalize_web_path(bt,u.$attr("stylesdir",""),!1)+'"'+S+">"))),R(kt=u.$syntax_highlighter())&&ce["$<<"](Et=ce.$size()),R((wt=u.$docinfo())["$empty?"]())||ce["$<<"](wt),ce["$<<"]("</head>"),Nt=R(u.$id())?' id="'+u.$id()+'"':"",R(Tt=u["$sections?"]())&&R(u["$attr?"]("toc-class"))&&R(u["$attr?"]("toc"))&&R(u["$attr?"]("toc-placement","auto"))?Vt=[u.$doctype(),u.$attr("toc-class"),"toc-"+u.$attr("toc-position","header")]:Vt=[u.$doctype()],R(u["$role?"]())&&Vt["$<<"](u.$role()),ce["$<<"]("<body"+Nt+' class="'+Vt.$join(" ")+'">'),R((wt=u.$docinfo("header"))["$empty?"]())||ce["$<<"](wt),R(u.$noheader())||(ce["$<<"]('<div id="header"'+ge+">"),X(u.$doctype(),"manpage")?(ce["$<<"]("<h1>"+u.$doctitle()+" Manual Page</h1>"),R(Tt)&&R(u["$attr?"]("toc"))&&R(u["$attr?"]("toc-placement","auto"))&&ce["$<<"]('<div id="toc" class="'+u.$attr("toc-class","toc")+`">
|
|
481
|
-
<div id="toctitle">`+u.$attr("toc-title")+`</div>
|
|
482
|
-
`+u.$converter().$convert(u,"outline")+`
|
|
483
|
-
</div>`),R(u["$attr?"]("manpurpose"))&&ce["$<<"](_.$generate_manname_section(u))):(R(u["$header?"]())&&(R(u.$notitle())||ce["$<<"]("<h1>"+u.$header().$title()+"</h1>"),jt=[],er=1,et(u.$authors(),"each",[],function(nr){return nr==null&&(nr=L),jt["$<<"]('<span id="author'+(R(Ne(er,1))?er:"")+'" class="author">'+u.$sub_replacements(nr.$name())+"</span>"+z),R(nr.$email())&&jt["$<<"]('<span id="email'+(R(Ne(er,1))?er:"")+'" class="email">'+u.$sub_macros(nr.$email())+"</span>"+z),er=Ke(er,1)}),R(u["$attr?"]("revnumber"))&&jt["$<<"]('<span id="revnumber">'+(R(Kt=u.$attr("version-label"))?Kt:"").$downcase()+" "+u.$attr("revnumber")+(R(u["$attr?"]("revdate"))?",":"")+"</span>"),R(u["$attr?"]("revdate"))&&jt["$<<"]('<span id="revdate">'+u.$attr("revdate")+"</span>"),R(u["$attr?"]("revremark"))&&jt["$<<"](""+z+'<span id="revremark">'+u.$attr("revremark")+"</span>"),R(jt["$empty?"]())||(ce["$<<"]('<div class="details">'),ce.$concat(jt),ce["$<<"]("</div>"))),R(Tt)&&R(u["$attr?"]("toc"))&&R(u["$attr?"]("toc-placement","auto"))&&ce["$<<"]('<div id="toc" class="'+u.$attr("toc-class","toc")+`">
|
|
484
|
-
<div id="toctitle">`+u.$attr("toc-title")+`</div>
|
|
485
|
-
`+u.$converter().$convert(u,"outline")+`
|
|
486
|
-
</div>`)),ce["$<<"]("</div>")),ce["$<<"]('<div id="content"'+ge+`>
|
|
487
|
-
`+u.$content()+`
|
|
488
|
-
</div>`),R(u["$footnotes?"]())&&Le(u["$attr?"]("nofootnotes"))&&(ce["$<<"]('<div id="footnotes"'+ge+`>
|
|
489
|
-
<hr`+S+">"),et(u.$footnotes(),"each",[],function(nr){return nr==null&&(nr=L),ce["$<<"]('<div class="footnote" id="_footnotedef_'+nr.$index()+`">
|
|
490
|
-
<a href="#_footnoteref_`+nr.$index()+'">'+nr.$index()+"</a>. "+nr.$text()+`
|
|
491
|
-
</div>`)}),ce["$<<"]("</div>")),R(u.$nofooter())||(ce["$<<"]('<div id="footer"'+ge+">"),ce["$<<"]('<div id="footer-text">'),R(u["$attr?"]("revnumber"))&&ce["$<<"](""+u.$attr("version-label")+" "+u.$attr("revnumber")+z),R(u["$attr?"]("last-update-label"))&&Le(u["$attr?"]("reproducible"))&&ce["$<<"](""+u.$attr("last-update-label")+" "+u.$attr("docdatetime")),ce["$<<"]("</div>"),ce["$<<"]("</div>")),R(kt)&&(R(kt["$docinfo?"]("head"))?ce["$[]="](Et,kt.$docinfo("head",u,ye(["cdn_base_url","linkcss","self_closing_tag_slash"],{cdn_base_url:F,linkcss:H,self_closing_tag_slash:S}))):ce.$delete_at(Et),R(kt["$docinfo?"]("footer"))&&ce["$<<"](kt.$docinfo("footer",u,ye(["cdn_base_url","linkcss","self_closing_tag_slash"],{cdn_base_url:F,linkcss:H,self_closing_tag_slash:S})))),R(u["$attr?"]("stem"))&&(Pt=u.$attr("eqnums","none"),R(Pt["$empty?"]())&&(Pt="AMS"),Yt=' equationNumbers: { autoNumber: "'+Pt+'" } ',ce["$<<"](`<script type="text/x-mathjax-config">
|
|
492
|
-
MathJax.Hub.Config({
|
|
493
|
-
messageStyle: "none",
|
|
494
|
-
tex2jax: {
|
|
495
|
-
inlineMath: [`+me("INLINE_MATH_DELIMITERS")["$[]"]("latexmath").$inspect()+`],
|
|
496
|
-
displayMath: [`+me("BLOCK_MATH_DELIMITERS")["$[]"]("latexmath").$inspect()+`],
|
|
497
|
-
ignoreClass: "nostem|nolatexmath"
|
|
498
|
-
},
|
|
499
|
-
asciimath2jax: {
|
|
500
|
-
delimiters: [`+me("BLOCK_MATH_DELIMITERS")["$[]"]("asciimath").$inspect()+`],
|
|
501
|
-
ignoreClass: "nostem|noasciimath"
|
|
502
|
-
},
|
|
503
|
-
TeX: {`+Yt+`}
|
|
504
|
-
})
|
|
505
|
-
MathJax.Hub.Register.StartupHook("AsciiMath Jax Ready", function () {
|
|
506
|
-
MathJax.InputJax.AsciiMath.postfilterHooks.Add(function (data, node) {
|
|
507
|
-
if ((node = data.script.parentNode) && (node = node.parentNode) && node.classList.contains("stemblock")) {
|
|
508
|
-
data.math.root.display = "block"
|
|
509
|
-
}
|
|
510
|
-
return data
|
|
511
|
-
})
|
|
512
|
-
})
|
|
513
|
-
<\/script>
|
|
514
|
-
<script src="`+F+"/mathjax/"+me("MATHJAX_VERSION")+'/MathJax.js?config=TeX-MML-AM_HTMLorMML"><\/script>')),R((wt=u.$docinfo("footer"))["$empty?"]())||ce["$<<"](wt),ce["$<<"]("</body>"),ce["$<<"]("</html>"),ce.$join(me("LF"))}),Ue(ae,"$convert_embedded",function(u){var _=this,z=L,S=L,b=L;return z=[],X(u.$doctype(),"manpage")?(R(u.$notitle())||(S=R(u.$id())?' id="'+u.$id()+'"':"",z["$<<"]("<h1"+S+">"+u.$doctitle()+" Manual Page</h1>")),R(u["$attr?"]("manpurpose"))&&z["$<<"](_.$generate_manname_section(u))):R(u["$header?"]())&&Le(u.$notitle())&&(S=R(u.$id())?' id="'+u.$id()+'"':"",z["$<<"]("<h1"+S+">"+u.$header().$title()+"</h1>")),R(u["$sections?"]())&&R(u["$attr?"]("toc"))&&Pe(b=u.$attr("toc-placement"),"macro")&&Pe(b,"preamble")&&z["$<<"](`<div id="toc" class="toc">
|
|
515
|
-
<div id="toctitle">`+u.$attr("toc-title")+`</div>
|
|
516
|
-
`+u.$converter().$convert(u,"outline")+`
|
|
517
|
-
</div>`),z["$<<"](u.$content()),R(u["$footnotes?"]())&&Le(u["$attr?"]("nofootnotes"))&&(z["$<<"](`<div id="footnotes">
|
|
518
|
-
<hr`+_.void_element_slash+">"),et(u.$footnotes(),"each",[],function(H){return H==null&&(H=L),z["$<<"]('<div class="footnote" id="_footnotedef_'+H.$index()+`">
|
|
519
|
-
<a href="#_footnoteref_`+H.$index()+'">'+H.$index()+"</a>. "+H.$text()+`
|
|
520
|
-
</div>`)}),z["$<<"]("</div>")),z.$join(me("LF"))}),Ue(ae,"$convert_outline",function(u,_){var z=this,S=L,b=L,F=L,H=L,ge=L,ce=L;return _==null&&(_=ye([],{})),R(u["$sections?"]())?(S=R(b=_["$[]"]("sectnumlevels"))?b:(R(F=u.$document().$attributes()["$[]"]("sectnumlevels"))?F:3).$to_i(),H=R(b=_["$[]"]("toclevels"))?b:(R(F=u.$document().$attributes()["$[]"]("toclevels"))?F:2).$to_i(),ge=u.$sections(),ce=['<ul class="sectlevel'+ge["$[]"](0).$level()+'">'],et(ge,"each",[],function Se(Be){var Xe=Se.$$s==null?this:Se.$$s,it=L,pt=L,at=L,bt=L;if(Be==null&&(Be=L),it=Be.$level(),R(Be.$caption()))pt=Be.$captioned_title();else if(R(Be.$numbered())&&R(ht(it,S)))if(R(Ve(it,2))&&X(u.$document().$doctype(),"book"))switch(Be.$sectname()){case"chapter":pt=(R(at=u.$document().$attributes()["$[]"]("chapter-signifier"))?""+at+" ":"")+Be.$sectnum()+" "+Be.$title();break;case"part":pt=(R(at=u.$document().$attributes()["$[]"]("part-signifier"))?""+at+" ":"")+Be.$sectnum(L,":")+" "+Be.$title();break;default:pt=""+Be.$sectnum()+" "+Be.$title()}else pt=""+Be.$sectnum()+" "+Be.$title();else pt=Be.$title();return R(pt["$include?"]("<a"))&&(pt=pt.$gsub(me("DropAnchorRx"),"")),R(Ve(it,H))&&R(bt=Xe.$convert_outline(Be,ye(["toclevels","sectnumlevels"],{toclevels:H,sectnumlevels:S})))?(ce["$<<"]('<li><a href="#'+Be.$id()+'">'+pt+"</a>"),ce["$<<"](bt),ce["$<<"]("</li>")):ce["$<<"]('<li><a href="#'+Be.$id()+'">'+pt+"</a></li>")},{$$s:z}),ce["$<<"]("</ul>"),ce.$join(me("LF"))):L},-2),Ue(ae,"$convert_section",function(u){var _=L,z=L,S=L,b=L,F=L,H=L,ge=L,ce=L;if(_=u.$document().$attributes(),z=u.$level(),R(u.$caption()))S=u.$captioned_title();else if(R(u.$numbered())&&R(ht(z,(R(b=_["$[]"]("sectnumlevels"))?b:3).$to_i())))if(R(Ve(z,2))&&X(u.$document().$doctype(),"book"))switch(u.$sectname()){case"chapter":S=(R(F=_["$[]"]("chapter-signifier"))?""+F+" ":"")+u.$sectnum()+" "+u.$title();break;case"part":S=(R(F=_["$[]"]("part-signifier"))?""+F+" ":"")+u.$sectnum(L,":")+" "+u.$title();break;default:S=""+u.$sectnum()+" "+u.$title()}else S=""+u.$sectnum()+" "+u.$title();else S=u.$title();return R(u.$id())?(H=' id="'+(ge=u.$id())+'"',R(_["$[]"]("sectlinks"))&&(S='<a class="link" href="#'+ge+'">'+S+"</a>"),R(_["$[]"]("sectanchors"))&&(X(_["$[]"]("sectanchors"),"after")?S=""+S+'<a class="anchor" href="#'+ge+'"></a>':S='<a class="anchor" href="#'+ge+'"></a>'+S)):H="",X(z,0)?"<h1"+H+' class="sect0'+(R(ce=u.$role())?" "+ce:"")+'">'+S+`</h1>
|
|
521
|
-
`+u.$content():'<div class="sect'+z+(R(ce=u.$role())?" "+ce:"")+`">
|
|
522
|
-
<h`+Ke(z,1)+H+">"+S+"</h"+Ke(z,1)+`>
|
|
523
|
-
`+(X(z,1)?`<div class="sectionbody">
|
|
524
|
-
`+u.$content()+`
|
|
525
|
-
</div>`:u.$content())+`
|
|
526
|
-
</div>`}),Ue(ae,"$convert_admonition",function(u){var _=this,z=L,S=L,b=L,F=L,H=L;return z=R(u.$id())?' id="'+u.$id()+'"':"",S=u.$attr("name"),b=R(u["$title?"]())?'<div class="title">'+u.$title()+`</div>
|
|
527
|
-
`:"",R(u.$document()["$attr?"]("icons"))?R(u.$document()["$attr?"]("icons","font"))&&Le(u["$attr?"]("icon"))?F='<i class="fa icon-'+S+'" title="'+u.$attr("textlabel")+'"></i>':F='<img src="'+u.$icon_uri(S)+'" alt="'+u.$attr("textlabel")+'"'+_.void_element_slash+">":F='<div class="title">'+u.$attr("textlabel")+"</div>","<div"+z+' class="admonitionblock '+S+(R(H=u.$role())?" "+H:"")+`">
|
|
528
|
-
<table>
|
|
529
|
-
<tr>
|
|
530
|
-
<td class="icon">
|
|
531
|
-
`+F+`
|
|
532
|
-
</td>
|
|
533
|
-
<td class="content">
|
|
534
|
-
`+b+u.$content()+`
|
|
535
|
-
</td>
|
|
536
|
-
</tr>
|
|
537
|
-
</table>
|
|
538
|
-
</div>`}),Ue(ae,"$convert_audio",function(u){var _=this,z=L,S=L,b=L,F=L,H=L,ge=L,ce=L,Se=L,Be=L;return z=_.xml_mode,S=R(u.$id())?' id="'+u.$id()+'"':"",b=["audioblock",u.$role()].$compact(),F=' class="'+b.$join(" ")+'"',H=R(u["$title?"]())?'<div class="title">'+u.$title()+`</div>
|
|
539
|
-
`:"",ge=u.$attr("start"),ce=u.$attr("end"),Se=R(ge)||R(ce)?"#t="+(R(Be=ge)?Be:"")+(R(ce)?","+ce:""):"","<div"+S+F+`>
|
|
540
|
-
`+H+`<div class="content">
|
|
541
|
-
<audio src="`+u.$media_uri(u.$attr("target"))+Se+'"'+(R(u["$option?"]("autoplay"))?_.$append_boolean_attribute("autoplay",z):"")+(R(u["$option?"]("nocontrols"))?"":_.$append_boolean_attribute("controls",z))+(R(u["$option?"]("loop"))?_.$append_boolean_attribute("loop",z):"")+`>
|
|
542
|
-
Your browser does not support the audio tag.
|
|
543
|
-
</audio>
|
|
544
|
-
</div>
|
|
545
|
-
</div>`}),Ue(ae,"$convert_colist",function(u){var _,z=this,S=L,b=L,F=L,H=L,ge=L,ce=L;return S=[],b=R(u.$id())?' id="'+u.$id()+'"':"",F=["colist",u.$style(),u.$role()].$compact(),H=' class="'+F.$join(" ")+'"',S["$<<"]("<div"+b+H+">"),R(u["$title?"]())&&S["$<<"]('<div class="title">'+u.$title()+"</div>"),R(u.$document()["$attr?"]("icons"))?(S["$<<"]("<table>"),_=[u.$document()["$attr?"]("icons","font"),0],ge=_[0],ce=_[1],et(u.$items(),"each",[],function Se(Be){var Xe=Se.$$s==null?this:Se.$$s,it=L;return Xe.void_element_slash==null&&(Xe.void_element_slash=L),Be==null&&(Be=L),ce=Ke(ce,1),R(ge)?it='<i class="conum" data-value="'+ce+'"></i><b>'+ce+"</b>":it='<img src="'+u.$icon_uri("callouts/"+ce)+'" alt="'+ce+'"'+Xe.void_element_slash+">",S["$<<"](`<tr>
|
|
546
|
-
<td>`+it+`</td>
|
|
547
|
-
<td>`+Be.$text()+(R(Be["$blocks?"]())?Ke(me("LF"),Be.$content()):"")+`</td>
|
|
548
|
-
</tr>`)},{$$s:z}),S["$<<"]("</table>")):(S["$<<"]("<ol>"),et(u.$items(),"each",[],function(Be){return Be==null&&(Be=L),S["$<<"](`<li>
|
|
549
|
-
<p>`+Be.$text()+"</p>"+(R(Be["$blocks?"]())?Ke(me("LF"),Be.$content()):"")+`
|
|
550
|
-
</li>`)}),S["$<<"]("</ol>")),S["$<<"]("</div>"),S.$join(me("LF"))}),Ue(ae,"$convert_dlist",function(u){var _=this,z=L,S=L,b=L,F=L,H=L,ge=L,ce=L;switch(z=[],S=R(u.$id())?' id="'+u.$id()+'"':"",u.$style()){case"qanda":b=["qlist","qanda",u.$role()];break;case"horizontal":b=["hdlist",u.$role()];break;default:b=["dlist",u.$style(),u.$role()]}switch(F=' class="'+b.$compact().$join(" ")+'"',z["$<<"]("<div"+S+F+">"),R(u["$title?"]())&&z["$<<"]('<div class="title">'+u.$title()+"</div>"),u.$style()){case"qanda":z["$<<"]("<ol>"),et(u.$items(),"each",[],function(Be,Xe){return Be==null&&(Be=L),Xe==null&&(Xe=L),z["$<<"]("<li>"),et(Be,"each",[],function(pt){return pt==null&&(pt=L),z["$<<"]("<p><em>"+pt.$text()+"</em></p>")}),R(Xe)&&(R(Xe["$text?"]())&&z["$<<"]("<p>"+Xe.$text()+"</p>"),R(Xe["$blocks?"]())&&z["$<<"](Xe.$content())),z["$<<"]("</li>")}),z["$<<"]("</ol>");break;case"horizontal":H=_.void_element_slash,z["$<<"]("<table>"),(R(u["$attr?"]("labelwidth"))||R(u["$attr?"]("itemwidth")))&&(z["$<<"]("<colgroup>"),ge=R(u["$attr?"]("labelwidth"))?' style="width: '+u.$attr("labelwidth").$chomp("%")+'%;"':"",z["$<<"]("<col"+ge+H+">"),ge=R(u["$attr?"]("itemwidth"))?' style="width: '+u.$attr("itemwidth").$chomp("%")+'%;"':"",z["$<<"]("<col"+ge+H+">"),z["$<<"]("</colgroup>")),et(u.$items(),"each",[],function(Be,Xe){var it=L;return Be==null&&(Be=L),Xe==null&&(Xe=L),z["$<<"]("<tr>"),z["$<<"]('<td class="hdlist1'+(R(u["$option?"]("strong"))?" strong":"")+'">'),it=!0,et(Be,"each",[],function(at){return at==null&&(at=L),R(it)||z["$<<"]("<br"+H+">"),z["$<<"](at.$text()),it=L}),z["$<<"]("</td>"),z["$<<"]('<td class="hdlist2">'),R(Xe)&&(R(Xe["$text?"]())&&z["$<<"]("<p>"+Xe.$text()+"</p>"),R(Xe["$blocks?"]())&&z["$<<"](Xe.$content())),z["$<<"]("</td>"),z["$<<"]("</tr>")}),z["$<<"]("</table>");break;default:z["$<<"]("<dl>"),ce=R(u.$style())?"":' class="hdlist1"',et(u.$items(),"each",[],function(Be,Xe){return Be==null&&(Be=L),Xe==null&&(Xe=L),et(Be,"each",[],function(pt){return pt==null&&(pt=L),z["$<<"]("<dt"+ce+">"+pt.$text()+"</dt>")}),R(Xe)?(z["$<<"]("<dd>"),R(Xe["$text?"]())&&z["$<<"]("<p>"+Xe.$text()+"</p>"),R(Xe["$blocks?"]())&&z["$<<"](Xe.$content()),z["$<<"]("</dd>")):L}),z["$<<"]("</dl>")}return z["$<<"]("</div>"),z.$join(me("LF"))}),Ue(ae,"$convert_example",function(u){var _=L,z=L,S=L,b=L,F=L;return _=R(u.$id())?' id="'+u.$id()+'"':"",R(u["$option?"]("collapsible"))?(z=R(u.$role())?' class="'+u.$role()+'"':"",S=R(u["$title?"]())?'<summary class="title">'+u.$title()+"</summary>":'<summary class="title">Details</summary>',"<details"+_+z+(R(u["$option?"]("open"))?" open":"")+`>
|
|
551
|
-
`+S+`
|
|
552
|
-
<div class="content">
|
|
553
|
-
`+u.$content()+`
|
|
554
|
-
</div>
|
|
555
|
-
</details>`):(b=R(u["$title?"]())?'<div class="title">'+u.$captioned_title()+`</div>
|
|
556
|
-
`:"","<div"+_+' class="exampleblock'+(R(F=u.$role())?" "+F:"")+`">
|
|
557
|
-
`+b+`<div class="content">
|
|
558
|
-
`+u.$content()+`
|
|
559
|
-
</div>
|
|
560
|
-
</div>`)}),Ue(ae,"$convert_floating_title",function(u){var _=L,z=L,S=L;return _="h"+Ke(u.$level(),1),z=R(u.$id())?' id="'+u.$id()+'"':"",S=[u.$style(),u.$role()].$compact(),"<"+_+z+' class="'+S.$join(" ")+'">'+u.$title()+"</"+_+">"}),Ue(ae,"$convert_image",function(u){var _=this,z=L,S=L,b=L,F=L,H=L,ge=L,ce=L,Se=L,Be=L,Xe=L;return z=u.$attr("target"),S=R(u["$attr?"]("width"))?' width="'+u.$attr("width")+'"':"",b=R(u["$attr?"]("height"))?' height="'+u.$attr("height")+'"':"",(R(u["$attr?"]("format","svg"))||R(z["$include?"](".svg")))&&R(Ve(u.$document().$safe(),He(me("SafeMode"),"SECURE")))?R(u["$option?"]("inline"))?F=R(H=_.$read_svg_contents(u,z))?H:'<span class="alt">'+u.$alt()+"</span>":R(u["$option?"]("interactive"))?(ge=R(u["$attr?"]("fallback"))?'<img src="'+u.$image_uri(u.$attr("fallback"))+'" alt="'+_.$encode_attribute_value(u.$alt())+'"'+S+b+_.void_element_slash+">":'<span class="alt">'+u.$alt()+"</span>",F='<object type="image/svg+xml" data="'+u.$image_uri(z)+'"'+S+b+">"+ge+"</object>"):F='<img src="'+u.$image_uri(z)+'" alt="'+_.$encode_attribute_value(u.$alt())+'"'+S+b+_.void_element_slash+">":F='<img src="'+u.$image_uri(z)+'" alt="'+_.$encode_attribute_value(u.$alt())+'"'+S+b+_.void_element_slash+">",R(u["$attr?"]("link"))&&(F='<a class="image" href="'+u.$attr("link")+'"'+_.$append_link_constraint_attrs(u).$join()+">"+F+"</a>"),ce=R(u.$id())?' id="'+u.$id()+'"':"",Se=["imageblock"],R(u["$attr?"]("float"))&&Se["$<<"](u.$attr("float")),R(u["$attr?"]("align"))&&Se["$<<"]("text-"+u.$attr("align")),R(u.$role())&&Se["$<<"](u.$role()),Be=' class="'+Se.$join(" ")+'"',Xe=R(u["$title?"]())?`
|
|
561
|
-
<div class="title">`+u.$captioned_title()+"</div>":"","<div"+ce+Be+`>
|
|
562
|
-
<div class="content">
|
|
563
|
-
`+F+`
|
|
564
|
-
</div>`+Xe+`
|
|
565
|
-
</div>`}),Ue(ae,"$convert_listing",function(u){var _=L,z=L,S=L,b=L,F=L,H=L,ge=L,ce=L,Se=L,Be=L,Xe=L;return _=R(z=u["$option?"]("nowrap"))?z:u.$document()["$attr?"]("prewrap")["$!"](),X(u.$style(),"source")?(S=u.$attr("language"),R(b=u.$document().$syntax_highlighter())?(F=R(b["$highlight?"]())?ye(["css_mode","style"],{css_mode:(R(z=(H=u.$document().$attributes())["$[]"](""+b.$name()+"-css"))?z:"class").$to_sym(),style:H["$[]"](""+b.$name()+"-style")}):ye([],{}),F["$[]="]("nowrap",_)):(ge='<pre class="highlight'+(R(_)?" nowrap":"")+'"><code'+(R(S)?' class="language-'+S+'" data-lang="'+S+'"':"")+">",ce="</code></pre>")):(ge="<pre"+(R(_)?' class="nowrap"':"")+">",ce="</pre>"),Se=R(u.$id())?' id="'+u.$id()+'"':"",Be=R(u["$title?"]())?'<div class="title">'+u.$captioned_title()+`</div>
|
|
566
|
-
`:"","<div"+Se+' class="listingblock'+(R(Xe=u.$role())?" "+Xe:"")+`">
|
|
567
|
-
`+Be+`<div class="content">
|
|
568
|
-
`+(R(b)?b.$format(u,S,F):Ke(Ke(ge,u.$content()),ce))+`
|
|
569
|
-
</div>
|
|
570
|
-
</div>`}),Ue(ae,"$convert_literal",function(u){var _=L,z=L,S=L,b=L,F=L;return _=R(u.$id())?' id="'+u.$id()+'"':"",z=R(u["$title?"]())?'<div class="title">'+u.$title()+`</div>
|
|
571
|
-
`:"",S=R(b=u.$document()["$attr?"]("prewrap")["$!"]())?b:u["$option?"]("nowrap"),"<div"+_+' class="literalblock'+(R(F=u.$role())?" "+F:"")+`">
|
|
572
|
-
`+z+`<div class="content">
|
|
573
|
-
<pre`+(R(S)?' class="nowrap"':"")+">"+u.$content()+`</pre>
|
|
574
|
-
</div>
|
|
575
|
-
</div>`}),Ue(ae,"$convert_stem",function(u){var _,z,S=this,b=L,F=L,H=L,ge=L,ce=L,Se=L,Be=L,Xe=L;return b=R(u.$id())?' id="'+u.$id()+'"':"",F=R(u["$title?"]())?'<div class="title">'+u.$title()+`</div>
|
|
576
|
-
`:"",z=me("BLOCK_MATH_DELIMITERS")["$[]"](H=u.$style().$to_sym()),_=st(z),ge=_[0]==null?L:_[0],ce=_[1]==null?L:_[1],R(Se=u.$content())?(X(H,"asciimath")&&R(Se["$include?"](me("LF")))&&(Be=""+me("LF")+"<br"+S.void_element_slash+">",Se=et(Se,"gsub",[me("StemBreakRx")],function(){var pt;return""+ce+Ye(Be,Ze(((pt=dt["~"])===L?L:pt["$[]"](0)).$count(me("LF")),1))+me("LF")+ge})),R(Se["$start_with?"](ge))&&R(Se["$end_with?"](ce))||(Se=""+ge+Se+ce)):Se="","<div"+b+' class="stemblock'+(R(Xe=u.$role())?" "+Xe:"")+`">
|
|
577
|
-
`+F+`<div class="content">
|
|
578
|
-
`+Se+`
|
|
579
|
-
</div>
|
|
580
|
-
</div>`}),Ue(ae,"$convert_olist",function(u){var _=this,z=L,S=L,b=L,F=L,H=L,ge=L,ce=L,Se=L;return z=[],S=R(u.$id())?' id="'+u.$id()+'"':"",b=["olist",u.$style(),u.$role()].$compact(),F=' class="'+b.$join(" ")+'"',z["$<<"]("<div"+S+F+">"),R(u["$title?"]())&&z["$<<"]('<div class="title">'+u.$title()+"</div>"),H=R(ge=u.$list_marker_keyword())?' type="'+ge+'"':"",ce=R(u["$attr?"]("start"))?' start="'+u.$attr("start")+'"':"",Se=R(u["$option?"]("reversed"))?_.$append_boolean_attribute("reversed",_.xml_mode):"",z["$<<"]('<ol class="'+u.$style()+'"'+H+ce+Se+">"),et(u.$items(),"each",[],function(Xe){return Xe==null&&(Xe=L),R(Xe.$id())?z["$<<"]('<li id="'+Xe.$id()+'"'+(R(Xe.$role())?' class="'+Xe.$role()+'"':"")+">"):R(Xe.$role())?z["$<<"]('<li class="'+Xe.$role()+'">'):z["$<<"]("<li>"),z["$<<"]("<p>"+Xe.$text()+"</p>"),R(Xe["$blocks?"]())&&z["$<<"](Xe.$content()),z["$<<"]("</li>")}),z["$<<"]("</ol>"),z["$<<"]("</div>"),z.$join(me("LF"))}),Ue(ae,"$convert_open",function(u){var _=this,z=L,S=L,b=L,F=L;return X(z=u.$style(),"abstract")?X(u.$parent(),u.$document())&&X(u.$document().$doctype(),"book")?(_.$logger().$warn("abstract block cannot be used in a document without a title when doctype is book. Excluding block content."),""):(S=R(u.$id())?' id="'+u.$id()+'"':"",b=R(u["$title?"]())?'<div class="title">'+u.$title()+`</div>
|
|
581
|
-
`:"","<div"+S+' class="quoteblock abstract'+(R(F=u.$role())?" "+F:"")+`">
|
|
582
|
-
`+b+`<blockquote>
|
|
583
|
-
`+u.$content()+`
|
|
584
|
-
</blockquote>
|
|
585
|
-
</div>`):X(z,"partintro")&&(R(Ne(u.$level(),0))||Pe(u.$parent().$context(),"section")||Pe(u.$document().$doctype(),"book"))?(_.$logger().$error("partintro block can only be used when doctype is book and must be a child of a book part. Excluding block content."),""):(S=R(u.$id())?' id="'+u.$id()+'"':"",b=R(u["$title?"]())?'<div class="title">'+u.$title()+`</div>
|
|
586
|
-
`:"","<div"+S+' class="openblock'+(R(z)&&Pe(z,"open")?" "+z:"")+(R(F=u.$role())?" "+F:"")+`">
|
|
587
|
-
`+b+`<div class="content">
|
|
588
|
-
`+u.$content()+`
|
|
589
|
-
</div>
|
|
590
|
-
</div>`)}),Ue(ae,"$convert_page_break",I('<div style="page-break-after: always;"></div>')),Ue(ae,"$convert_paragraph",function(u){var _=L;return R(u.$role())?_=(R(u.$id())?' id="'+u.$id()+'"':"")+' class="paragraph '+u.$role()+'"':R(u.$id())?_=' id="'+u.$id()+'" class="paragraph"':_=' class="paragraph"',R(u["$title?"]())?"<div"+_+`>
|
|
591
|
-
<div class="title">`+u.$title()+`</div>
|
|
592
|
-
<p>`+u.$content()+`</p>
|
|
593
|
-
</div>`:"<div"+_+`>
|
|
594
|
-
<p>`+u.$content()+`</p>
|
|
595
|
-
</div>`}),tt(ae,"convert_pass","content_only"),Ue(ae,"$convert_preamble",function(u){var _=L,z=L;return R((_=u.$document())["$attr?"]("toc-placement","preamble"))&&R(_["$sections?"]())&&R(_["$attr?"]("toc"))?z=`
|
|
596
|
-
<div id="toc" class="`+_.$attr("toc-class","toc")+`">
|
|
597
|
-
<div id="toctitle">`+_.$attr("toc-title")+`</div>
|
|
598
|
-
`+_.$converter().$convert(_,"outline")+`
|
|
599
|
-
</div>`:z="",`<div id="preamble">
|
|
600
|
-
<div class="sectionbody">
|
|
601
|
-
`+u.$content()+`
|
|
602
|
-
</div>`+z+`
|
|
603
|
-
</div>`}),Ue(ae,"$convert_quote",function(u){var _=this,z=L,S=L,b=L,F=L,H=L,ge=L,ce=L,Se=L,Be=L;return z=R(u.$id())?' id="'+u.$id()+'"':"",S=["quoteblock",u.$role()].$compact(),b=' class="'+S.$join(" ")+'"',F=R(u["$title?"]())?`
|
|
604
|
-
<div class="title">`+u.$title()+"</div>":"",H=R(u["$attr?"]("attribution"))?u.$attr("attribution"):L,ge=R(u["$attr?"]("citetitle"))?u.$attr("citetitle"):L,R(H)||R(ge)?(ce=R(ge)?"<cite>"+ge+"</cite>":"",Se=R(H)?"— "+H+(R(ge)?"<br"+_.void_element_slash+`>
|
|
605
|
-
`:""):"",Be=`
|
|
606
|
-
<div class="attribution">
|
|
607
|
-
`+Se+ce+`
|
|
608
|
-
</div>`):Be="","<div"+z+b+">"+F+`
|
|
609
|
-
<blockquote>
|
|
610
|
-
`+u.$content()+`
|
|
611
|
-
</blockquote>`+Be+`
|
|
612
|
-
</div>`}),Ue(ae,"$convert_thematic_break",function(u){var _=this;return"<hr"+_.void_element_slash+">"}),Ue(ae,"$convert_sidebar",function(u){var _=L,z=L,S=L;return _=R(u.$id())?' id="'+u.$id()+'"':"",z=R(u["$title?"]())?'<div class="title">'+u.$title()+`</div>
|
|
613
|
-
`:"","<div"+_+' class="sidebarblock'+(R(S=u.$role())?" "+S:"")+`">
|
|
614
|
-
<div class="content">
|
|
615
|
-
`+z+u.$content()+`
|
|
616
|
-
</div>
|
|
617
|
-
</div>`}),Ue(ae,"$convert_table",function(u){var _=this,z=L,S=L,b=L,F=L,H=L,ge=L,ce=L,Se=L,Be=L,Xe=L,it=L;return z=[],S=R(u.$id())?' id="'+u.$id()+'"':"",X(b=u.$attr("frame","all","table-frame"),"topbot")&&(b="ends"),F=["tableblock","frame-"+b,"grid-"+u.$attr("grid","all","table-grid")],R(H=u.$attr("stripes",L,"table-stripes"))&&F["$<<"]("stripes-"+H),ge="",R(ce=u["$option?"]("autowidth"))&&Le(u["$attr?"]("width"))?F["$<<"]("fit-content"):X(Se=u.$attr("tablepcwidth"),100)?F["$<<"]("stretch"):ge=' style="width: '+Se+'%;"',R(u["$attr?"]("float"))&&F["$<<"](u.$attr("float")),R(Be=u.$role())&&F["$<<"](Be),Xe=' class="'+F.$join(" ")+'"',z["$<<"]("<table"+S+Xe+ge+">"),R(u["$title?"]())&&z["$<<"]('<caption class="title">'+u.$captioned_title()+"</caption>"),R(Ne(u.$attr("rowcount"),0))&&(it=_.void_element_slash,z["$<<"]("<colgroup>"),R(ce)?z=Ke(z,me("Array").$new(u.$columns().$size(),"<col"+it+">")):et(u.$columns(),"each",[],function(at){return at==null&&(at=L),z["$<<"](R(at["$option?"]("autowidth"))?"<col"+it+">":'<col style="width: '+at.$attr("colpcwidth")+'%;"'+it+">")}),z["$<<"]("</colgroup>"),et(u.$rows().$to_h(),"each",[],function(at,bt){return at==null&&(at=L),bt==null&&(bt=L),R(bt["$empty?"]())?L:(z["$<<"]("<t"+at+">"),et(bt,"each",[],function(Et){return Et==null&&(Et=L),z["$<<"]("<tr>"),et(Et,"each",[],function(Nt){var Tt=L,Vt=L,jt=L,er=L,Kt=L,Pt=L;if(Nt==null&&(Nt=L),X(at,"head"))Tt=Nt.$text();else switch(Nt.$style()){case"asciidoc":Tt='<div class="content">'+Nt.$content()+"</div>";break;case"literal":Tt='<div class="literal"><pre>'+Nt.$text()+"</pre></div>";break;default:Tt=R((Tt=Nt.$content())["$empty?"]())?"":'<p class="tableblock">'+Tt.$join(`</p>
|
|
618
|
-
<p class="tableblock">`)+"</p>"}return Vt=X(at,"head")||X(Nt.$style(),"header")?"th":"td",jt=' class="tableblock halign-'+Nt.$attr("halign")+" valign-"+Nt.$attr("valign")+'"',er=R(Nt.$colspan())?' colspan="'+Nt.$colspan()+'"':"",Kt=R(Nt.$rowspan())?' rowspan="'+Nt.$rowspan()+'"':"",Pt=R(u.$document()["$attr?"]("cellbgcolor"))?' style="background-color: '+u.$document().$attr("cellbgcolor")+';"':"",z["$<<"]("<"+Vt+jt+er+Kt+Pt+">"+Tt+"</"+Vt+">")}),z["$<<"]("</tr>")}),z["$<<"]("</t"+at+">"))})),z["$<<"]("</table>"),z.$join(me("LF"))}),Ue(ae,"$convert_toc",function(u){var _=L,z=L,S=L,b=L,F=L,H=L;return R((_=u.$document())["$attr?"]("toc-placement","macro"))&&R(_["$sections?"]())&&R(_["$attr?"]("toc"))?(R(u.$id())?(z=' id="'+u.$id()+'"',S=' id="'+u.$id()+'title"'):(z=' id="toc"',S=' id="toctitle"'),b=R(u["$title?"]())?u.$title():_.$attr("toc-title"),F=R(u["$attr?"]("levels"))?u.$attr("levels").$to_i():L,H=R(u["$role?"]())?u.$role():_.$attr("toc-class","toc"),"<div"+z+' class="'+H+`">
|
|
619
|
-
<div`+S+' class="title">'+b+`</div>
|
|
620
|
-
`+_.$converter().$convert(_,"outline",ye(["toclevels"],{toclevels:F}))+`
|
|
621
|
-
</div>`):"<!-- toc disabled -->"}),Ue(ae,"$convert_ulist",function(u){var _=this,z=L,S=L,b=L,F=L,H=L,ge=L,ce=L;return z=[],S=R(u.$id())?' id="'+u.$id()+'"':"",b=["ulist",u.$style(),u.$role()].$compact(),F=H="",R(ge=u["$option?"]("checklist"))?(b.$unshift(b.$shift(),"checklist"),ce=' class="checklist"',R(u["$option?"]("interactive"))?R(_.xml_mode)?(F='<input type="checkbox" data-item-complete="1" checked="checked"/> ',H='<input type="checkbox" data-item-complete="0"/> '):(F='<input type="checkbox" data-item-complete="1" checked> ',H='<input type="checkbox" data-item-complete="0"> '):R(u.$document()["$attr?"]("icons","font"))?(F='<i class="fa fa-check-square-o"></i> ',H='<i class="fa fa-square-o"></i> '):(F="✓ ",H="❏ ")):ce=R(u.$style())?' class="'+u.$style()+'"':"",z["$<<"]("<div"+S+' class="'+b.$join(" ")+'">'),R(u["$title?"]())&&z["$<<"]('<div class="title">'+u.$title()+"</div>"),z["$<<"]("<ul"+ce+">"),et(u.$items(),"each",[],function(Be){return Be==null&&(Be=L),R(Be.$id())?z["$<<"]('<li id="'+Be.$id()+'"'+(R(Be.$role())?' class="'+Be.$role()+'"':"")+">"):R(Be.$role())?z["$<<"]('<li class="'+Be.$role()+'">'):z["$<<"]("<li>"),R(ge)&&R(Be["$attr?"]("checkbox"))?z["$<<"]("<p>"+(R(Be["$attr?"]("checked"))?F:H)+Be.$text()+"</p>"):z["$<<"]("<p>"+Be.$text()+"</p>"),R(Be["$blocks?"]())&&z["$<<"](Be.$content()),z["$<<"]("</li>")}),z["$<<"]("</ul>"),z["$<<"]("</div>"),z.$join(me("LF"))}),Ue(ae,"$convert_verse",function(u){var _=this,z=L,S=L,b=L,F=L,H=L,ge=L,ce=L,Se=L,Be=L;return z=R(u.$id())?' id="'+u.$id()+'"':"",S=["verseblock",u.$role()].$compact(),b=' class="'+S.$join(" ")+'"',F=R(u["$title?"]())?`
|
|
622
|
-
<div class="title">`+u.$title()+"</div>":"",H=R(u["$attr?"]("attribution"))?u.$attr("attribution"):L,ge=R(u["$attr?"]("citetitle"))?u.$attr("citetitle"):L,R(H)||R(ge)?(ce=R(ge)?"<cite>"+ge+"</cite>":"",Se=R(H)?"— "+H+(R(ge)?"<br"+_.void_element_slash+`>
|
|
623
|
-
`:""):"",Be=`
|
|
624
|
-
<div class="attribution">
|
|
625
|
-
`+Se+ce+`
|
|
626
|
-
</div>`):Be="","<div"+z+b+">"+F+`
|
|
627
|
-
<pre class="content">`+u.$content()+"</pre>"+Be+`
|
|
628
|
-
</div>`}),Ue(ae,"$convert_video",function(u){var _,z,S=this,b=L,F=L,H=L,ge=L,ce=L,Se=L,Be=L,Xe=L,it=L,pt=L,at=L,bt=L,kt=L,Et=L,wt=L,Nt=L,Tt=L,Vt=L,jt=L,er=L,Kt=L,Pt=L,Yt=L,Xt=L,nr=L,Xn=L,sn=L,Zt=L,Ut=L,Jt=L,Cr=L,Ht=L,Sr=L,mn=L,Tr=L,Er=L,wn=L;switch(b=S.xml_mode,F=R(u.$id())?' id="'+u.$id()+'"':"",H=["videoblock"],R(u["$attr?"]("float"))&&H["$<<"](u.$attr("float")),R(u["$attr?"]("align"))&&H["$<<"]("text-"+u.$attr("align")),R(u.$role())&&H["$<<"](u.$role()),ge=' class="'+H.$join(" ")+'"',ce=R(u["$title?"]())?`
|
|
629
|
-
<div class="title">`+u.$title()+"</div>":"",Se=R(u["$attr?"]("width"))?' width="'+u.$attr("width")+'"':"",Be=R(u["$attr?"]("height"))?' height="'+u.$attr("height")+'"':"",u.$attr("poster")){case"vimeo":return R((Xe=u.$document().$attr("asset-uri-scheme","https"))["$empty?"]())||(Xe=""+Xe+":"),it=R(u["$attr?"]("start"))?"#at="+u.$attr("start"):"",pt=["?"],z=u.$attr("target").$split("/",2),_=st(z),at=_[0]==null?L:_[0],bt=_[1]==null?L:_[1],kt=R(bt=R(Et=bt)?Et:u.$attr("hash"))?""+(R(Et=pt.$pop())?Et:"&")+"h="+bt:"",wt=R(u["$option?"]("autoplay"))?""+(R(Et=pt.$pop())?Et:"&")+"autoplay=1":"",Nt=R(u["$option?"]("loop"))?""+(R(Et=pt.$pop())?Et:"&")+"loop=1":"",Tt=R(u["$option?"]("muted"))?""+(R(Et=pt.$pop())?Et:"&")+"muted=1":"","<div"+F+ge+">"+ce+`
|
|
630
|
-
<div class="content">
|
|
631
|
-
<iframe`+Se+Be+' src="'+Xe+"//player.vimeo.com/video/"+at+kt+wt+Nt+Tt+it+'" frameborder="0"'+(R(u["$option?"]("nofullscreen"))?"":S.$append_boolean_attribute("allowfullscreen",b))+`></iframe>
|
|
632
|
-
</div>
|
|
633
|
-
</div>`;case"youtube":return R((Xe=u.$document().$attr("asset-uri-scheme","https"))["$empty?"]())||(Xe=""+Xe+":"),Vt=R(u["$option?"]("related"))?1:0,jt=R(u["$attr?"]("start"))?"&start="+u.$attr("start"):"",er=R(u["$attr?"]("end"))?"&end="+u.$attr("end"):"",wt=R(u["$option?"]("autoplay"))?"&autoplay=1":"",Nt=R(Kt=u["$option?"]("loop"))?"&loop=1":"",Pt=R(u["$option?"]("muted"))?"&mute=1":"",Yt=R(u["$option?"]("nocontrols"))?"&controls=0":"",R(u["$option?"]("nofullscreen"))?(Xt="&fs=0",nr=""):(Xt="",nr=S.$append_boolean_attribute("allowfullscreen",b)),Xn=R(u["$option?"]("modest"))?"&modestbranding=1":"",sn=R(u["$attr?"]("theme"))?"&theme="+u.$attr("theme"):"",Zt=R(u["$attr?"]("lang"))?"&hl="+u.$attr("lang"):"",z=u.$attr("target").$split("/",2),_=st(z),at=_[0]==null?L:_[0],Ut=_[1]==null?L:_[1],R(Ut=R(Et=Ut)?Et:u.$attr("list"))?Jt="&list="+Ut:(z=at.$split(",",2),_=st(z),at=_[0]==null?L:_[0],Cr=_[1]==null?L:_[1],R(Cr=R(Et=Cr)?Et:u.$attr("playlist"))?Jt="&playlist="+at+","+Cr:Jt=R(Kt)?"&playlist="+at:""),"<div"+F+ge+">"+ce+`
|
|
634
|
-
<div class="content">
|
|
635
|
-
<iframe`+Se+Be+' src="'+Xe+"//www.youtube.com/embed/"+at+"?rel="+Vt+jt+er+wt+Nt+Pt+Yt+Jt+Xt+Xn+sn+Zt+'" frameborder="0"'+nr+`></iframe>
|
|
636
|
-
</div>
|
|
637
|
-
</div>`;default:return Ht=R((Sr=u.$attr("poster"))["$nil_or_empty?"]())?"":' poster="'+u.$media_uri(Sr)+'"',mn=R((Sr=u.$attr("preload"))["$nil_or_empty?"]())?"":' preload="'+Sr+'"',Tr=u.$attr("start"),Er=u.$attr("end"),wn=R(Tr)||R(Er)?"#t="+(R(Et=Tr)?Et:"")+(R(Er)?","+Er:""):"","<div"+F+ge+">"+ce+`
|
|
638
|
-
<div class="content">
|
|
639
|
-
<video src="`+u.$media_uri(u.$attr("target"))+wn+'"'+Se+Be+Ht+(R(u["$option?"]("autoplay"))?S.$append_boolean_attribute("autoplay",b):"")+(R(u["$option?"]("muted"))?S.$append_boolean_attribute("muted",b):"")+(R(u["$option?"]("nocontrols"))?"":S.$append_boolean_attribute("controls",b))+(R(u["$option?"]("loop"))?S.$append_boolean_attribute("loop",b):"")+mn+`>
|
|
640
|
-
Your browser does not support the video tag.
|
|
641
|
-
</video>
|
|
642
|
-
</div>
|
|
643
|
-
</div>`}}),Ue(ae,"$convert_inline_anchor",function(u){var _=this,z=L,S=L,b=L,F=L,H=L,ge=L,ce=L,Se=L,Be=L;switch(u.$type()){case"xref":return R(z=u.$attributes()["$[]"]("path"))?(S=_.$append_link_constraint_attrs(u,R(u.$role())?[' class="'+u.$role()+'"']:[]).$join(),b=R(F=u.$text())?F:z):(S=R(u.$role())?' class="'+u.$role()+'"':"",R(b=u.$text())||(C(me("AbstractNode"),H=R(F=(_.refs=R(ge=_.refs)?ge:u.$document().$catalog()["$[]"]("refs"))["$[]"](ce=u.$attributes()["$[]"]("refid")))?F:R(ce["$nil_or_empty?"]())?Se=_.$get_root_document(u):L)?R(_.resolving_xref=R(F=_.resolving_xref)?F:Be=!0)&&R(Be)?(R(b=H.$xreftext(u.$attr("xrefstyle",L,!0)))?R(b["$include?"]("<a"))&&(b=b.$gsub(me("DropAnchorRx"),"")):b=R(Se)?"[^top]":"["+ce+"]",_.resolving_xref=L):b=R(Se)?"[^top]":"["+ce+"]":b="["+ce+"]")),'<a href="'+u.$target()+'"'+S+">"+b+"</a>";case"ref":return'<a id="'+u.$id()+'"></a>';case"link":return S=R(u.$id())?[' id="'+u.$id()+'"']:[],R(u.$role())&&S["$<<"](' class="'+u.$role()+'"'),R(u["$attr?"]("title"))&&S["$<<"](' title="'+u.$attr("title")+'"'),'<a href="'+u.$target()+'"'+_.$append_link_constraint_attrs(u,S).$join()+">"+u.$text()+"</a>";case"bibref":return'<a id="'+u.$id()+'"></a>['+(R(F=u.$reftext())?F:u.$id())+"]";default:return _.$logger().$warn("unknown anchor type: "+u.$type().$inspect()),L}}),Ue(ae,"$convert_inline_break",function(u){var _=this;return""+u.$text()+"<br"+_.void_element_slash+">"}),Ue(ae,"$convert_inline_button",function(u){return'<b class="button">'+u.$text()+"</b>"}),Ue(ae,"$convert_inline_callout",function(u){var _=this,z=L,S=L;return R(u.$document()["$attr?"]("icons","font"))?'<i class="conum" data-value="'+u.$text()+'"></i><b>('+u.$text()+")</b>":R(u.$document()["$attr?"]("icons"))?(z=u.$icon_uri("callouts/"+u.$text()),'<img src="'+z+'" alt="'+u.$text()+'"'+_.void_element_slash+">"):C(He("Array"),S=u.$attributes()["$[]"]("guard"))?'<!--<b class="conum">('+u.$text()+")</b>-->":""+S+'<b class="conum">('+u.$text()+")</b>"}),Ue(ae,"$convert_inline_footnote",function(u){var _=L,z=L;return R(_=u.$attr("index"))?X(u.$type(),"xref")?'<sup class="footnoteref">[<a class="footnote" href="#_footnotedef_'+_+'" title="View footnote.">'+_+"</a>]</sup>":(z=R(u.$id())?' id="_footnote_'+u.$id()+'"':"",'<sup class="footnote"'+z+'>[<a id="_footnoteref_'+_+'" class="footnote" href="#_footnotedef_'+_+'" title="View footnote.">'+_+"</a>]</sup>"):X(u.$type(),"xref")?'<sup class="footnoteref red" title="Unresolved footnote reference.">['+u.$text()+"]</sup>":L}),Ue(ae,"$convert_inline_image",function(u){var _=this,z=L,S=L,b=L,F=L,H=L,ge=L,ce=L,Se=L,Be=L,Xe=L;return z=u.$target(),X(S=R(b=u.$type())?b:"image","icon")?X(F=u.$document().$attr("icons"),"font")?(H="fa fa-"+z,R(u["$attr?"]("size"))&&(H=""+H+" fa-"+u.$attr("size")),R(u["$attr?"]("flip"))?H=""+H+" fa-flip-"+u.$attr("flip"):R(u["$attr?"]("rotate"))&&(H=""+H+" fa-rotate-"+u.$attr("rotate")),ge=R(u["$attr?"]("title"))?' title="'+u.$attr("title")+'"':"",ce='<i class="'+H+'"'+ge+"></i>"):R(F)?(ge=R(u["$attr?"]("width"))?' width="'+u.$attr("width")+'"':"",R(u["$attr?"]("height"))&&(ge=""+ge+' height="'+u.$attr("height")+'"'),R(u["$attr?"]("title"))&&(ge=""+ge+' title="'+u.$attr("title")+'"'),ce='<img src="'+u.$icon_uri(z)+'" alt="'+_.$encode_attribute_value(u.$alt())+'"'+ge+_.void_element_slash+">"):ce="["+u.$alt()+"]":(ge=R(u["$attr?"]("width"))?' width="'+u.$attr("width")+'"':"",R(u["$attr?"]("height"))&&(ge=""+ge+' height="'+u.$attr("height")+'"'),R(u["$attr?"]("title"))&&(ge=""+ge+' title="'+u.$attr("title")+'"'),(R(u["$attr?"]("format","svg"))||R(z["$include?"](".svg")))&&R(Ve(u.$document().$safe(),He(me("SafeMode"),"SECURE")))?R(u["$option?"]("inline"))?ce=R(b=_.$read_svg_contents(u,z))?b:'<span class="alt">'+u.$alt()+"</span>":R(u["$option?"]("interactive"))?(Se=R(u["$attr?"]("fallback"))?'<img src="'+u.$image_uri(u.$attr("fallback"))+'" alt="'+_.$encode_attribute_value(u.$alt())+'"'+ge+_.void_element_slash+">":'<span class="alt">'+u.$alt()+"</span>",ce='<object type="image/svg+xml" data="'+u.$image_uri(z)+'"'+ge+">"+Se+"</object>"):ce='<img src="'+u.$image_uri(z)+'" alt="'+_.$encode_attribute_value(u.$alt())+'"'+ge+_.void_element_slash+">":ce='<img src="'+u.$image_uri(z)+'" alt="'+_.$encode_attribute_value(u.$alt())+'"'+ge+_.void_element_slash+">"),R(u["$attr?"]("link"))&&(ce='<a class="image" href="'+u.$attr("link")+'"'+_.$append_link_constraint_attrs(u).$join()+">"+ce+"</a>"),Be=S,R(Xe=u.$role())?Be=R(u["$attr?"]("float"))?""+Be+" "+u.$attr("float")+" "+Xe:""+Be+" "+Xe:R(u["$attr?"]("float"))&&(Be=""+Be+" "+u.$attr("float")),'<span class="'+Be+'">'+ce+"</span>"}),Ue(ae,"$convert_inline_indexterm",function(u){return X(u.$type(),"visible")?u.$text():""}),Ue(ae,"$convert_inline_kbd",function(u){var _=L;return X((_=u.$attr("keys")).$size(),1)?"<kbd>"+_["$[]"](0)+"</kbd>":'<span class="keyseq"><kbd>'+_.$join("</kbd>+<kbd>")+"</kbd></span>"}),Ue(ae,"$convert_inline_menu",function(u){var _=L,z=L,S=L,b=L,F=L;return _=R(u.$document()["$attr?"]("icons","font"))?' <i class="fa fa-angle-right caret"></i> ':' <b class="caret">›</b> ',z="</b>"+_+'<b class="submenu">',S=u.$attr("menu"),R((b=u.$attr("submenus"))["$empty?"]())?R(F=u.$attr("menuitem"))?'<span class="menuseq"><b class="menu">'+S+"</b>"+_+'<b class="menuitem">'+F+"</b></span>":'<b class="menuref">'+S+"</b>":'<span class="menuseq"><b class="menu">'+S+"</b>"+_+'<b class="submenu">'+b.$join(z)+"</b>"+_+'<b class="menuitem">'+u.$attr("menuitem")+"</b></span>"}),Ue(ae,"$convert_inline_quoted",function(u){var _,z,S=L,b=L,F=L,H=L;return z=me("QUOTE_TAGS")["$[]"](u.$type()),_=st(z),S=_[0]==null?L:_[0],b=_[1]==null?L:_[1],F=_[2]==null?L:_[2],R(u.$id())?(H=R(u.$role())?' class="'+u.$role()+'"':"",R(F)?""+S.$chop()+' id="'+u.$id()+'"'+H+">"+u.$text()+b:'<span id="'+u.$id()+'"'+H+">"+S+u.$text()+b+"</span>"):R(u.$role())?R(F)?""+S.$chop()+' class="'+u.$role()+'">'+u.$text()+b:'<span class="'+u.$role()+'">'+S+u.$text()+b+"</span>":""+S+u.$text()+b}),Ue(ae,"$read_svg_contents",function(u,_){var z=L,S=L,b=L,F=L;if(R(z=u.$read_contents(_,ye(["start","normalize","label","warn_if_empty"],{start:u.$document().$attr("imagesdir"),normalize:!0,label:"SVG",warn_if_empty:!0})))){if(R(z["$empty?"]()))return L;R(z["$start_with?"]("<svg"))||(z=z.$sub(me("SvgPreambleRx"),"")),S=b=F=L,et(["width","height"],"each",[],function(ge){var ce=L,Se=L;if(ge==null&&(ge=L),!R(u["$attr?"](ge)))return L;if(!R(b)){if(X(F=R(ce=F)?ce:R(Se=z.$match(me("SvgStartTagRx")))?Se:"no_match","no_match"))return L;b=(S=F["$[]"](0)).$gsub(me("DimensionAttributeRx"),"")}return b=""+b.$chop()+" "+ge+'="'+u.$attr(ge)+'">'}),R(b)&&(z=""+b+z["$[]"](a.Range.$new(S.$length(),-1,!1)))}return z}),ae.$private(),Ue(ae,"$append_boolean_attribute",function(u,_){return R(_)?" "+u+'="'+u+'"':" "+u}),Ue(ae,"$append_link_constraint_attrs",function(u,_){var z=L,S=L;return _==null&&(_=[]),R(u["$option?"]("nofollow"))&&(z="nofollow"),R(S=u.$attributes()["$[]"]("window"))?(_["$<<"](' target="'+S+'"'),(X(S,"_blank")||R(u["$option?"]("noopener")))&&_["$<<"](R(z)?' rel="'+z+' noopener"':' rel="noopener"')):R(z)&&_["$<<"](' rel="'+z+'"'),_},-2),Ue(ae,"$encode_attribute_value",function(u){return R(u["$include?"]('"'))?u.$gsub('"',"""):u}),Ue(ae,"$generate_manname_section",function(u){var _=L,z=L,S=L,b=L,F=L;return _=u.$attr("manname-title","Name"),R(S=u.$sections()["$[]"](0))&&X(z=S.$title(),z.$upcase())&&(_=_.$upcase()),b=R(F=u.$attr("manname-id"))?' id="'+F+'"':"","<h2"+b+">"+_+`</h2>
|
|
644
|
-
<div class="sectionbody">
|
|
645
|
-
<p>`+u.$attr("mannames").$join(", ")+" - "+u.$attr("manpurpose")+`</p>
|
|
646
|
-
</div>`}),Ue(ae,"$get_root_document",function(u){for(;R((u=u.$document())["$nested?"]());)u=u.$parent_document();return u}),Ue(ae,"$method_missing",function g(u,_){var z,S,b=g.$$p||L,F=this,H=L;return g.$$p=null,z=rt(arguments,1),S=z,Le((H=u.$to_s())["$start_with?"]("convert_"))&&R(F["$handles?"](H))?et(F,"send",["convert_"+H].concat(lt(S))):J(F,qe(F,"method_missing",g,!1,!0),"method_missing",[u].concat(lt(S)),b)},-2),Ue(ae,"$respond_to_missing?",function(u,_){var z=this,S=L,b=L;return rt(arguments,1),R(S=(b=u.$to_s())["$start_with?"]("convert_")["$!"]())?z["$handles?"](b):S},-2)}(we("Converter"),He(we("Converter"),"Base"),$e)}(Z[0],Z)},Opal.modules["asciidoctor/extensions"]=function(a){var ue=a.module,se=a.klass,K=a.truthy,ye=a.hash2,y=a.def,X=a.send,Ue=a.alias,J=a.slice,qe=a.rb_plus,R=a.eqeq,et=a.rb_gt,Ne=a.not,Ke=a.eqeqeq,Le=a.to_a,Pe=a.to_ary,ht=a.const_set,Ve=a.return_val,st=a.send2,Ye=a.find_super,Ze=a.NilClass,dt=a.class_variable_set,I=a.class_variable_get,tt=a.regexp,C=a.Class,rt=a.return_ivar,lt=a.rb_lt,Z=a.rb_minus,L=a.hash,He=[],ke=a.nil,Ie=a.$$$;return a.add_stubs("[]=,config,const_defined?,singleton_class?,include,const_get,extend,enable_dsl,attr_reader,merge,class,update,raise,document,==,doctype,[],+,level,delete,>,casecmp,new,title=,sectname=,special=,fetch,numbered=,attr?,!,key?,special,numbered,id=,generate_id,title,update_attributes,tr,basename,create_block,assign_caption,===,parse_blocks,empty?,include?,sub_attributes,parse,each,define_method,unshift,shift,send,size,receiver,binding,define_singleton_method,instance_exec,to_proc,call,option,content_model,flatten,positional_attributes,default_attributes,respond_to?,to_s,partition,to_i,<<,compact,inspect,resolve_attributes,attr_accessor,to_set,contexts,match?,resolve_regexp,format,method,register,reset,values,groups,arity,activate,add_document_processor,tree_processor,tree_processors?,tree_processors,any?,select,add_syntax_processor,to_sym,instance_variable_get,kind,private,join,map,split,capitalize,instance_variable_set,resolve_args,singleton_class,process_block_given?,source_location,freeze,resolve_class,<,update_config,as_symbol,name,name=,pop,-,-@,next_auto_id,generate_name,each_with_object"),function(Re,$e){var we=ue(Re,"Asciidoctor"),ee=[we].concat($e);return function(P,D){var ae=ue(P,"Extensions"),ie=[ae].concat(D),me=a.$r(ie);return function(G,g,u){var _=se(G,g,"Processor"),z=[_].concat(u),S=a.$r(z),b=_.$$prototype;return b.config=ke,function(F,H){return y(F,"$config",function(){var ce=this,Se=ke;return ce.config==null&&(ce.config=ke),ce.config=K(Se=ce.config)?Se:ye([],{})}),y(F,"$option",function(ce,Se){var Be,Xe=this;return Be=[ce,Se],X(Xe.$config(),"[]=",Be),Be[Be.length-1]}),y(F,"$enable_dsl",function(){var ce=this;return K(ce["$const_defined?"]("DSL"))?K(ce["$singleton_class?"]())?ce.$include(ce.$const_get("DSL")):ce.$extend(ce.$const_get("DSL")):ke}),Ue(F,"use_dsl","enable_dsl")}(a.get_singleton_class(_)),_.$attr_reader("config"),y(_,"$initialize",function(H){var ge=this;return H==null&&(H=ye([],{})),ge.config=ge.$class().$config().$merge(H)},-1),y(_,"$update_config",function(H){var ge=this;return ge.config.$update(H)}),y(_,"$process",function(H){var ge=this;return J(arguments),ge.$raise(Ie("NotImplementedError"),""+S("Processor")+" subclass "+ge.$class()+" must implement the #process method")},-1),y(_,"$create_section",function(H,ge,ce,Se){var Be,Xe,it=ke,pt=ke,at=ke,bt=ke,kt=ke,Et=ke,wt=ke,Nt=ke,Tt=ke,Vt=ke;return Se==null&&(Se=ye([],{})),it=H.$document(),pt=(at=it.$doctype())["$=="]("book"),bt=K(kt=Se["$[]"]("level"))?kt:qe(H.$level(),1),K(Et=ce.$delete("style"))?K(pt)&&R(Et,"abstract")?(Be=["chapter",1],wt=Be[0],bt=Be[1]):(Be=[Et,!0],wt=Be[0],Nt=Be[1],R(bt,0)&&(bt=1)):K(pt)?wt=R(bt,0)?"part":K(et(bt,1))?"section":"chapter":R(at,"manpage")&&R(ge.$casecmp("synopsis"),0)?(Be=["synopsis",!0],wt=Be[0],Nt=Be[1]):wt="section",Tt=S("Section").$new(H,bt),Be=[ge,wt],Xe=[Be[0]],X(Tt,"title=",Xe),Xe[Xe.length-1],Xe=[Be[1]],X(Tt,"sectname=",Xe),Xe[Xe.length-1],K(Nt)?(Tt["$special="](!0),K(Se.$fetch("numbered",Et["$=="]("appendix")))?Tt["$numbered="](!0):Ne(Se["$key?"]("numbered"))&&K(it["$attr?"]("sectnums","all"))&&Tt["$numbered="](K(pt)&&R(bt,1)?"chapter":!0)):K(et(bt,0))?K(Se.$fetch("numbered",it["$attr?"]("sectnums")))&&Tt["$numbered="](K(Tt.$special())?K(kt=H.$numbered())||kt:!0):K(Se.$fetch("numbered",K(kt=pt)?it["$attr?"]("partnums"):kt))&&Tt["$numbered="](!0),R(Vt=ce["$[]"]("id"),!1)?ce.$delete("id"):Tt["$id="]((Be=["id",K(kt=Vt)?kt:K(it["$attr?"]("sectids"))?S("Section").$generate_id(Tt.$title(),it):ke],X(ce,"[]=",Be),Be[Be.length-1])),Tt.$update_attributes(ce),Tt},-4),y(_,"$create_block",function(H,ge,ce,Se,Be){return Be==null&&(Be=ye([],{})),S("Block").$new(H,ge,ye(["source","attributes"],{source:ce,attributes:Se}).$merge(Be))},-5),y(_,"$create_list",function(H,ge,ce){var Se=ke;return ce==null&&(ce=ke),Se=S("List").$new(H,ge),K(ce)&&Se.$update_attributes(ce),Se},-3),y(_,"$create_list_item",function(H,ge){return ge==null&&(ge=ke),S("ListItem").$new(H,ge)},-2),y(_,"$create_image_block",function(H,ge,ce){var Se,Be=this,Xe=ke,it=ke,pt=ke;return ce==null&&(ce=ye([],{})),K(Xe=ge["$[]"]("target"))||Be.$raise(Ie("ArgumentError"),"Unable to create an image block, target attribute is required"),K(ge["$[]"]("alt"))||ge["$[]="]("alt",(Se=["default-alt",S("Helpers").$basename(Xe,!0).$tr("_-"," ")],X(ge,"[]=",Se),Se[Se.length-1])),it=K(ge["$key?"]("title"))?ge.$delete("title"):ke,pt=Be.$create_block(H,"image",ke,ge,ce),K(it)&&(pt["$title="](it),pt.$assign_caption(ge.$delete("caption"),"figure")),pt},-3),y(_,"$create_inline",function(H,ge,ce,Se){return Se==null&&(Se=ye([],{})),S("Inline").$new(H,ge,ce,R(ge,"quoted")?ye(["type"],{type:"unquoted"}).$merge(Se):Se)},-4),y(_,"$parse_content",function(H,ge,ce){var Se=ke;return ce==null&&(ce=ke),Se=Ke(S("Reader"),ge)?ge:S("Reader").$new(ge),S("Parser").$parse_blocks(Se,H,ce),H},-3),y(_,"$parse_attributes",function(H,ge,ce){var Se=ke;return ce==null&&(ce=ye([],{})),K(K(ge)?ge["$empty?"]():!0)?ye([],{}):(K(ce["$[]"]("sub_attributes"))&&K(ge["$include?"](S("ATTR_REF_HEAD")))&&(ge=H.$sub_attributes(ge)),S("AttributeList").$new(ge).$parse(K(Se=ce["$[]"]("positional_attributes"))?Se:[]))},-3),X([["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 F(H,ge,ce){var Se=F.$$s==null?this:F.$$s;return H==null&&(H=ke),ge==null&&(ge=ke),ce==null&&(ce=ke),X(Se,"define_method",[H],function Be(Xe){var it,pt,at=Be.$$s==null?this:Be.$$s;return it=J(arguments),pt=it,pt.$unshift(pt.$shift(),ce),X(at,"send",[ge].concat(Le(pt)))},{$$arity:-1,$$s:Se})},{$$s:_})}(ie[0],null,ie),function(G){var g=ue(G,"ProcessorDsl");return y(g,"$option",function(_,z){var S,b=this;return S=[_,z],X(b.$config(),"[]=",S),S[S.length-1]}),y(g,"$process",function u(_){var z=u.$$p||ke,S,b,F,H=this,ge=ke;return H.process_block==null&&(H.process_block=ke),u.$$p=null,S=J(arguments),b=S,z!==ke?(K(b["$empty?"]())||H.$raise(Ie("ArgumentError"),"wrong number of arguments (given "+b.$size()+", expected 0)"),K(z.$binding())&&R(H,z.$binding().$receiver())||(ge=H,X(z,"define_singleton_method",["call"],function(Se){var Be,Xe;return Be=J(arguments),Xe=Be,X(ge,"instance_exec",Le(Xe),z.$to_proc())},-1)),H.process_block=z):K((F=H.process_block,F!=null&&F!==ke?"instance-variable":ke))?X(H.process_block,"call",Le(b)):H.$raise(Ie("NotImplementedError"),""+H.$class()+" #process method called before being registered")},-1),y(g,"$process_block_given?",function(){var _,z=this;return _=z.process_block,_!=null&&_!==ke?"instance-variable":ke})}(ie[0]),function(G,g){var u=ue(G,"DocumentProcessorDsl"),_=[u].concat(g),z=a.$r(_);return u.$include(z("ProcessorDsl")),y(u,"$prefer",function(){var b=this;return b.$option("position",">>")})}(ie[0],ie),function(G,g){var u=ue(G,"SyntaxProcessorDsl"),_=[u].concat(g),z=a.$r(_);return u.$include(z("ProcessorDsl")),y(u,"$named",function(b){var F=this;return Ke(z("Processor"),F)?F.name=b:F.$option("name",b)}),y(u,"$content_model",function(b){var F=this;return F.$option("content_model",b)}),Ue(u,"parse_content_as","content_model"),y(u,"$positional_attributes",function(b){var F,H,ge=this;return F=J(arguments),H=F,ge.$option("positional_attrs",H.$flatten())},-1),Ue(u,"name_positional_attributes","positional_attributes"),Ue(u,"positional_attrs","positional_attributes"),y(u,"$default_attributes",function(b){var F=this;return F.$option("default_attrs",b)}),Ue(u,"default_attrs","default_attributes"),y(u,"$resolve_attributes",function(b){var F,H,ge,ce=this,Se=ke,Be=ke,Xe=ke;return F=J(arguments),H=F,K(et(H.$size(),1))||K((H=H.$fetch(0,!0))["$respond_to?"]("to_sym"))&&(H=[H]),Ke(!0,Se=H)?(ce.$option("positional_attrs",[]),ce.$option("default_attrs",ye([],{}))):Ke(Ie("Array"),Se)?(ge=[[],ye([],{})],Be=ge[0],Xe=ge[1],X(H,"each",[],function(pt){var at,bt,kt=ke,Et=ke,wt=ke;return pt==null&&(pt=ke),K((pt=pt.$to_s())["$include?"]("="))?(bt=pt.$partition("="),at=Pe(bt),kt=at[0]==null?ke:at[0],at[1]==null||at[1],Et=at[2]==null?ke:at[2],K(kt["$include?"](":"))&&(bt=kt.$partition(":"),at=Pe(bt),wt=at[0]==null?ke:at[0],at[1]==null||at[1],kt=at[2]==null?ke:at[2],wt=R(wt,"@")?Be.$size():wt.$to_i(),Be["$[]="](wt,kt)),at=[kt,Et],X(Xe,"[]=",at),at[at.length-1]):K(pt["$include?"](":"))?(bt=pt.$partition(":"),at=Pe(bt),wt=at[0]==null?ke:at[0],at[1]==null||at[1],kt=at[2]==null?ke:at[2],wt=R(wt,"@")?Be.$size():wt.$to_i(),at=[wt,kt],X(Be,"[]=",at),at[at.length-1]):Be["$<<"](pt)}),ce.$option("positional_attrs",Be.$compact()),ce.$option("default_attrs",Xe)):Ke(Ie("Hash"),Se)?(ge=[[],ye([],{})],Be=ge[0],Xe=ge[1],X(H,"each",[],function(pt,at){var bt,kt,Et=ke,wt=ke;return pt==null&&(pt=ke),at==null&&(at=ke),K((Et=pt.$to_s())["$include?"](":"))&&(kt=Et.$partition(":"),bt=Pe(kt),wt=bt[0]==null?ke:bt[0],bt[1]==null||bt[1],Et=bt[2]==null?ke:bt[2],wt=R(wt,"@")?Be.$size():wt.$to_i(),Be["$[]="](wt,Et)),K(at)?(bt=[Et,at],X(Xe,"[]=",bt),bt[bt.length-1]):ke}),ce.$option("positional_attrs",Be.$compact()),ce.$option("default_attrs",Xe)):ce.$raise(Ie("ArgumentError"),"unsupported attributes specification for macro: "+H.$inspect())},-1),Ue(u,"resolves_attributes","resolve_attributes")}(ie[0],ie),function(G,g,u){var _=se(G,g,"Preprocessor"),z=[_].concat(u),S=a.$r(z);return y(_,"$process",function(F,H){var ge=this;return ge.$raise(Ie("NotImplementedError"),""+S("Preprocessor")+" subclass "+ge.$class()+" must implement the #process method")})}(ie[0],me("Processor"),ie),ht(me("Preprocessor"),"DSL",me("DocumentProcessorDsl")),function(G,g,u){var _=se(G,g,"TreeProcessor"),z=[_].concat(u),S=a.$r(z);return y(_,"$process",function(F){var H=this;return H.$raise(Ie("NotImplementedError"),""+S("TreeProcessor")+" subclass "+H.$class()+" must implement the #process method")})}(ie[0],me("Processor"),ie),ht(me("TreeProcessor"),"DSL",me("DocumentProcessorDsl")),ht(ie[0],"Treeprocessor",me("TreeProcessor")),function(G,g,u){var _=se(G,g,"Postprocessor"),z=[_].concat(u),S=a.$r(z);return y(_,"$process",function(F,H){var ge=this;return ge.$raise(Ie("NotImplementedError"),""+S("Postprocessor")+" subclass "+ge.$class()+" must implement the #process method")})}(ie[0],me("Processor"),ie),ht(me("Postprocessor"),"DSL",me("DocumentProcessorDsl")),function(G,g,u){var _=se(G,g,"IncludeProcessor"),z=[_].concat(u),S=a.$r(z);return y(_,"$process",function(F,H,ge,ce){var Se=this;return Se.$raise(Ie("NotImplementedError"),""+S("IncludeProcessor")+" subclass "+Se.$class()+" must implement the #process method")}),y(_,"$handles?",Ve(!0))}(ie[0],me("Processor"),ie),function(G,g){var u=ue(G,"IncludeProcessorDsl"),_=[u].concat(g),z=a.$r(_);return u.$include(z("DocumentProcessorDsl")),y(u,"$handles?",function S(b){var F=S.$$p||ke,H,ge,ce,Se=this;return Se.handles_block==null&&(Se.handles_block=ke),S.$$p=null,H=J(arguments),ge=H,F!==ke?(K(ge["$empty?"]())||Se.$raise(Ie("ArgumentError"),"wrong number of arguments (given "+ge.$size()+", expected 0)"),Se.handles_block=F):K((ce=Se.handles_block,ce!=null&&ce!==ke?"instance-variable":ke))?Se.handles_block.$call(ge["$[]"](0)):!0},-1)}(ie[0],ie),ht(me("IncludeProcessor"),"DSL",me("IncludeProcessorDsl")),function(G,g,u){var _=se(G,g,"DocinfoProcessor"),z=[_].concat(u),S=a.$r(z),b=_.$$prototype;return b.config=ke,y(_,"$initialize",function F(H){var ge;F.$$p;var ce=this,Se=ke;return F.$$p=null,H==null&&(H=ye([],{})),st(ce,Ye(ce,"initialize",F,!1,!0),"initialize",[H],null),K(Se=ce.config["$[]"]("location"))?Se:(ge=["location","head"],X(ce.config,"[]=",ge),ge[ge.length-1])},-1),y(_,"$process",function(H){var ge=this;return ge.$raise(Ie("NotImplementedError"),""+S("DocinfoProcessor")+" subclass "+ge.$class()+" must implement the #process method")})}(ie[0],me("Processor"),ie),function(G,g){var u=ue(G,"DocinfoProcessorDsl"),_=[u].concat(g),z=a.$r(_);return u.$include(z("DocumentProcessorDsl")),y(u,"$at_location",function(b){var F=this;return F.$option("location",b)})}(ie[0],ie),ht(me("DocinfoProcessor"),"DSL",me("DocinfoProcessorDsl")),function(G,g,u){var _=se(G,g,"BlockProcessor"),z=[_].concat(u),S=a.$r(z),b=_.$$prototype;return b.config=ke,_.$attr_accessor("name"),y(_,"$initialize",function F(H,ge){var ce;F.$$p;var Se=this,Be=ke;return F.$$p=null,H==null&&(H=ke),ge==null&&(ge=ye([],{})),st(Se,Ye(Se,"initialize",F,!1,!0),"initialize",[ge],null),Se.name=K(Be=H)?Be:Se.config["$[]"]("name"),Ke(Ze,Be=Se.config["$[]"]("contexts"))?K(Se.config["$[]"]("contexts"))||Se.config["$[]="]("contexts",["open","paragraph"].$to_set()):Ke(Ie("Symbol"),Be)?Se.config["$[]="]("contexts",[Se.config["$[]"]("contexts")].$to_set()):Se.config["$[]="]("contexts",Se.config["$[]"]("contexts").$to_set()),K(Be=Se.config["$[]"]("content_model"))?Be:(ce=["content_model","compound"],X(Se.config,"[]=",ce),ce[ce.length-1])},-1),y(_,"$process",function(H,ge,ce){var Se=this;return Se.$raise(Ie("NotImplementedError"),""+S("BlockProcessor")+" subclass "+Se.$class()+" must implement the #process method")})}(ie[0],me("Processor"),ie),function(G,g){var u=ue(G,"BlockProcessorDsl"),_=[u].concat(g),z=a.$r(_);return u.$include(z("SyntaxProcessorDsl")),y(u,"$contexts",function(b){var F,H,ge=this;return F=J(arguments),H=F,ge.$option("contexts",H.$flatten().$to_set())},-1),Ue(u,"on_contexts","contexts"),Ue(u,"on_context","contexts"),Ue(u,"bind_to","contexts")}(ie[0],ie),ht(me("BlockProcessor"),"DSL",me("BlockProcessorDsl")),function(G,g,u){var _=se(G,g,"MacroProcessor"),z=[_].concat(u),S=a.$r(z),b=_.$$prototype;return b.config=ke,_.$attr_accessor("name"),y(_,"$initialize",function F(H,ge){var ce;F.$$p;var Se=this,Be=ke;return F.$$p=null,H==null&&(H=ke),ge==null&&(ge=ye([],{})),st(Se,Ye(Se,"initialize",F,!1,!0),"initialize",[ge],null),Se.name=K(Be=H)?Be:Se.config["$[]"]("name"),K(Be=Se.config["$[]"]("content_model"))?Be:(ce=["content_model","attributes"],X(Se.config,"[]=",ce),ce[ce.length-1])},-1),y(_,"$process",function(H,ge,ce){var Se=this;return Se.$raise(Ie("NotImplementedError"),""+S("MacroProcessor")+" subclass "+Se.$class()+" must implement the #process method")})}(ie[0],me("Processor"),ie),function(G,g){var u=ue(G,"MacroProcessorDsl"),_=[u].concat(g),z=a.$r(_);return u.$include(z("SyntaxProcessorDsl")),y(u,"$resolve_attributes",function S(b){var F,H,ge=S.$$p||ke,ce=this;return S.$$p=null,F=J(arguments),H=F,R(H.$size(),1)&&Ne(H["$[]"](0))?ce.$option("content_model","text"):(st(ce,Ye(ce,"resolve_attributes",S,!1,!0),"resolve_attributes",Le(H),ge),ce.$option("content_model","attributes"))},-1),Ue(u,"resolves_attributes","resolve_attributes")}(ie[0],ie),function(G,g,u){var _=se(G,g,"BlockMacroProcessor"),z=[_].concat(u),S=a.$r(z),b=_.$$prototype;return b.name=ke,y(_,"$name",function(){var H=this;return K(S("MacroNameRx")["$match?"](H.name.$to_s()))||H.$raise(Ie("ArgumentError"),"invalid name for block macro: "+H.name),H.name})}(ie[0],me("MacroProcessor"),ie),ht(me("BlockMacroProcessor"),"DSL",me("MacroProcessorDsl")),function(G,g,u){var _=se(G,g,"InlineMacroProcessor"),z=[_].concat(u),S=a.$r(z),b=_.$$prototype;return b.config=b.name=ke,dt(z[0],"@@rx_cache",ye([],{})),y(_,"$regexp",function(){var H,ge=this,ce=ke;return K(ce=ge.config["$[]"]("regexp"))?ce:(H=["regexp",ge.$resolve_regexp(ge.name.$to_s(),ge.config["$[]"]("format"))],X(ge.config,"[]=",H),H[H.length-1])}),y(_,"$resolve_regexp",function(H,ge){var ce,Se=this,Be=ke;return K(S("MacroNameRx")["$match?"](H))||Se.$raise(Ie("ArgumentError"),"invalid name for inline macro: "+H),K(Be=I(z[0],"@@rx_cache",!1)["$[]"]([H,ge]))?Be:(ce=[[H,ge],tt(["\\\\?",H,":",R(ge,"short")?"(){0}":"(\\S+?)","\\[(|",S("CC_ANY"),"*?[^\\\\])\\]"])],X(I(z[0],"@@rx_cache",!1),"[]=",ce),ce[ce.length-1])})}(ie[0],me("MacroProcessor"),ie),function(G,g){var u=ue(G,"InlineMacroProcessorDsl"),_=[u].concat(g),z=a.$r(_);return u.$include(z("MacroProcessorDsl")),y(u,"$format",function(b){var F=this;return F.$option("format",b)}),Ue(u,"match_format","format"),Ue(u,"using_format","format"),y(u,"$match",function(b){var F=this;return F.$option("regexp",b)})}(ie[0],ie),ht(me("InlineMacroProcessor"),"DSL",me("InlineMacroProcessorDsl")),function(G,g){var u=se(G,g,"Extension");return u.$attr_reader("kind"),u.$attr_reader("config"),u.$attr_reader("instance"),y(u,"$initialize",function(z,S,b){var F=this;return F.kind=z,F.instance=S,F.config=b})}(ie[0],null),function(G,g){var u=se(G,g,"ProcessorExtension");return u.$attr_reader("process_method"),y(u,"$initialize",function _(z,S,b){_.$$p;var F=this,H=ke;return _.$$p=null,b==null&&(b=ke),st(F,Ye(F,"initialize",_,!1,!0),"initialize",[z,S,S.$config()],null),F.process_method=K(H=b)?H:S.$method("process")},-3)}(ie[0],me("Extension")),function(G,g,u){var _=se(G,g,"Group"),z=[_].concat(u);return function(S,b){var F=[S].concat(b),H=a.$r(F);return y(S,"$register",function(ce){var Se=this;return ce==null&&(ce=ke),H("Extensions").$register(ce,Se)},-1)}(a.get_singleton_class(_),z),y(_,"$activate",function(b){var F=this;return F.$raise(Ie("NotImplementedError"))})}(ie[0],null,ie),function(G,g,u){var _=se(G,g,"Registry"),z=[_].concat(u),S=a.$r(z),b=_.$$prototype;return b.document=b.groups=b.preprocessor_extensions=b.tree_processor_extensions=b.postprocessor_extensions=b.include_processor_extensions=b.docinfo_processor_extensions=b.block_extensions=b.block_macro_extensions=b.inline_macro_extensions=ke,_.$attr_reader("document"),_.$attr_reader("groups"),y(_,"$initialize",function(H){var ge=this;return H==null&&(H=ye([],{})),ge.groups=H,ge.$reset(),ge.preprocessor_extensions=ge.tree_processor_extensions=ge.postprocessor_extensions=ge.include_processor_extensions=ge.docinfo_processor_extensions=ge.block_extensions=ge.block_macro_extensions=ge.inline_macro_extensions=ke,ge.document=ke},-1),y(_,"$activate",function(H){var ge=this,ce=ke;return K(ge.document)&&ge.$reset(),ge.document=H,K((ce=qe(S("Extensions").$groups().$values(),ge.groups.$values()))["$empty?"]())||X(ce,"each",[],function Se(Be){var Xe=Se.$$s==null?this:Se.$$s,it=ke;if(Be==null&&(Be=ke),Ke(Ie("Proc"),it=Be))switch(Be.$arity()){case 0:case-1:return X(Xe,"instance_exec",[],Be.$to_proc());case 1:return Be.$call(Xe);default:return ke}else return Ke(C,it)?Be.$new().$activate(Xe):Be.$activate(Xe)},{$$s:ge}),ge}),y(_,"$preprocessor",function F(H){var ge=F.$$p||ke,ce,Se,Be=this;return F.$$p=null,ce=J(arguments),Se=ce,X(Be,"add_document_processor",["preprocessor",Se],ge.$to_proc())},-1),y(_,"$preprocessors?",function(){var H=this;return H.preprocessor_extensions["$!"]()["$!"]()}),y(_,"$preprocessors",rt("preprocessor_extensions")),y(_,"$tree_processor",function F(H){var ge=F.$$p||ke,ce,Se,Be=this;return F.$$p=null,ce=J(arguments),Se=ce,X(Be,"add_document_processor",["tree_processor",Se],ge.$to_proc())},-1),y(_,"$tree_processors?",function(){var H=this;return H.tree_processor_extensions["$!"]()["$!"]()}),y(_,"$tree_processors",rt("tree_processor_extensions")),Ue(_,"treeprocessor","tree_processor"),Ue(_,"treeprocessors?","tree_processors?"),Ue(_,"treeprocessors","tree_processors"),y(_,"$postprocessor",function F(H){var ge=F.$$p||ke,ce,Se,Be=this;return F.$$p=null,ce=J(arguments),Se=ce,X(Be,"add_document_processor",["postprocessor",Se],ge.$to_proc())},-1),y(_,"$postprocessors?",function(){var H=this;return H.postprocessor_extensions["$!"]()["$!"]()}),y(_,"$postprocessors",rt("postprocessor_extensions")),y(_,"$include_processor",function F(H){var ge=F.$$p||ke,ce,Se,Be=this;return F.$$p=null,ce=J(arguments),Se=ce,X(Be,"add_document_processor",["include_processor",Se],ge.$to_proc())},-1),y(_,"$include_processors?",function(){var H=this;return H.include_processor_extensions["$!"]()["$!"]()}),y(_,"$include_processors",rt("include_processor_extensions")),y(_,"$docinfo_processor",function F(H){var ge=F.$$p||ke,ce,Se,Be=this;return F.$$p=null,ce=J(arguments),Se=ce,X(Be,"add_document_processor",["docinfo_processor",Se],ge.$to_proc())},-1),y(_,"$docinfo_processors?",function(H){var ge=this;return H==null&&(H=ke),K(ge.docinfo_processor_extensions)?K(H)?X(ge.docinfo_processor_extensions,"any?",[],function(Se){return Se==null&&(Se=ke),Se.$config()["$[]"]("location")["$=="](H)}):!0:!1},-1),y(_,"$docinfo_processors",function(H){var ge=this;return H==null&&(H=ke),K(ge.docinfo_processor_extensions)?K(H)?X(ge.docinfo_processor_extensions,"select",[],function(Se){return Se==null&&(Se=ke),Se.$config()["$[]"]("location")["$=="](H)}):ge.docinfo_processor_extensions:ke},-1),y(_,"$block",function F(H){var ge=F.$$p||ke,ce,Se,Be=this;return F.$$p=null,ce=J(arguments),Se=ce,X(Be,"add_syntax_processor",["block",Se],ge.$to_proc())},-1),y(_,"$blocks?",function(){var H=this;return H.block_extensions["$!"]()["$!"]()}),y(_,"$registered_for_block?",function(H,ge){var ce=this,Se=ke;return K(Se=ce.block_extensions["$[]"](H.$to_sym()))&&K(Se.$config()["$[]"]("contexts")["$include?"](ge))?Se:!1}),y(_,"$find_block_extension",function(H){var ge=this;return ge.block_extensions["$[]"](H.$to_sym())}),y(_,"$block_macro",function F(H){var ge=F.$$p||ke,ce,Se,Be=this;return F.$$p=null,ce=J(arguments),Se=ce,X(Be,"add_syntax_processor",["block_macro",Se],ge.$to_proc())},-1),y(_,"$block_macros?",function(){var H=this;return H.block_macro_extensions["$!"]()["$!"]()}),y(_,"$registered_for_block_macro?",function(H){var ge=this,ce=ke;return K(ce=ge.block_macro_extensions["$[]"](H.$to_sym()))?ce:!1}),y(_,"$find_block_macro_extension",function(H){var ge=this;return ge.block_macro_extensions["$[]"](H.$to_sym())}),y(_,"$inline_macro",function F(H){var ge=F.$$p||ke,ce,Se,Be=this;return F.$$p=null,ce=J(arguments),Se=ce,X(Be,"add_syntax_processor",["inline_macro",Se],ge.$to_proc())},-1),y(_,"$inline_macros?",function(){var H=this;return H.inline_macro_extensions["$!"]()["$!"]()}),y(_,"$registered_for_inline_macro?",function(H){var ge=this,ce=ke;return K(ce=ge.inline_macro_extensions["$[]"](H.$to_sym()))?ce:!1}),y(_,"$find_inline_macro_extension",function(H){var ge=this;return ge.inline_macro_extensions["$[]"](H.$to_sym())}),y(_,"$inline_macros",function(){var H=this;return H.inline_macro_extensions.$values()}),y(_,"$prefer",function F(H){var ge=F.$$p||ke,ce,Se,Be=this,Xe=ke,it=ke,pt=ke;return F.$$p=null,ce=J(arguments),Se=ce,Xe=Ke(S("ProcessorExtension"),it=Se.$shift())?it:X(Be,"send",[it].concat(Le(Se)),ge.$to_proc()),pt=Be.$instance_variable_get(("@"+Xe.$kind()+"_extensions").$to_sym()),pt.$unshift(pt.$delete(Xe)),Xe},-1),_.$private(),y(_,"$add_document_processor",function F(H,ge){var ce=F.$$p||ke,Se,Be,Xe=this,it=ke,pt=ke,at=ke,bt=ke,kt=ke,Et=ke,wt=ke,Nt=ke,Tt=ke,Vt=ke,jt=ke;return F.$$p=null,it=H.$to_s().$tr("_"," "),pt=X(it.$split(),"map",[],function(Kt){return Kt==null&&(Kt=ke),Kt.$capitalize()}).$join().$to_sym(),at=S("Extensions").$const_get(pt,!1),bt=K(Ie("::","AsciidoctorJ","skip_raise")?"constant":ke)?Ie(Ie("AsciidoctorJ"),"Extensions").$const_get(pt,!1):ke,kt=K(Et=Xe.$instance_variable_get(("@"+H+"_extensions").$to_sym()))?Et:Xe.$instance_variable_set(("@"+H+"_extensions").$to_sym(),[]),ce!==ke?(wt=Xe.$resolve_args(ge,1),(Nt=at.$new(wt)).$singleton_class().$enable_dsl(),R(ce.$arity(),0)?X(Nt,"instance_exec",[],ce.$to_proc()):a.yield1(ce,Nt),K(Nt["$process_block_given?"]())||Xe.$raise(Ie("NoMethodError"),"No block specified to process "+it+" extension at "+ce.$source_location().$join(":")),Nt.$freeze(),Tt=S("ProcessorExtension").$new(H,Nt)):(Be=Xe.$resolve_args(ge,2),Se=Pe(Be),Nt=Se[0]==null?ke:Se[0],wt=Se[1]==null?ke:Se[1],K(Vt=S("Helpers").$resolve_class(Nt))?(K(lt(Vt,at))||K(bt)&&K(lt(Vt,bt))||Xe.$raise(Ie("ArgumentError"),"Invalid type for "+it+" extension: "+Nt),jt=Vt.$new(wt),jt.$freeze(),Tt=S("ProcessorExtension").$new(H,jt)):Ke(at,Nt)||K(bt)&&Ke(bt,Nt)?(Nt.$update_config(wt),Nt.$freeze(),Tt=S("ProcessorExtension").$new(H,Nt)):Xe.$raise(Ie("ArgumentError"),"Invalid arguments specified for registering "+it+" extension: "+ge)),R(Tt.$config()["$[]"]("position"),">>")?kt.$unshift(Tt):kt["$<<"](Tt),Tt}),y(_,"$add_syntax_processor",function F(H,ge){var ce=F.$$p||ke,Se,Be,Xe=this,it=ke,pt=ke,at=ke,bt=ke,kt=ke,Et=ke,wt=ke,Nt=ke,Tt=ke,Vt=ke,jt=ke;return F.$$p=null,it=H.$to_s().$tr("_"," "),pt=X(it.$split(),"map",[],function(Kt){return Kt==null&&(Kt=ke),Kt.$capitalize()})["$<<"]("Processor").$join().$to_sym(),at=S("Extensions").$const_get(pt,!1),bt=K(Ie("::","AsciidoctorJ","skip_raise")?"constant":ke)?Ie(Ie("AsciidoctorJ"),"Extensions").$const_get(pt,!1):ke,kt=K(Et=Xe.$instance_variable_get(("@"+H+"_extensions").$to_sym()))?Et:Xe.$instance_variable_set(("@"+H+"_extensions").$to_sym(),ye([],{})),ce!==ke?(Be=Xe.$resolve_args(ge,2),Se=Pe(Be),wt=Se[0]==null?ke:Se[0],Nt=Se[1]==null?ke:Se[1],(Tt=at.$new(Xe.$as_symbol(wt),Nt)).$singleton_class().$enable_dsl(),R(ce.$arity(),0)?X(Tt,"instance_exec",[],ce.$to_proc()):a.yield1(ce,Tt),K(wt=Xe.$as_symbol(Tt.$name()))||Xe.$raise(Ie("ArgumentError"),"No name specified for "+it+" extension at "+ce.$source_location().$join(":")),K(Tt["$process_block_given?"]())||Xe.$raise(Ie("NoMethodError"),"No block specified to process "+it+" extension at "+ce.$source_location().$join(":")),Tt.$freeze(),Se=[wt,S("ProcessorExtension").$new(H,Tt)],X(kt,"[]=",Se),Se[Se.length-1]):(Be=Xe.$resolve_args(ge,3),Se=Pe(Be),Tt=Se[0]==null?ke:Se[0],wt=Se[1]==null?ke:Se[1],Nt=Se[2]==null?ke:Se[2],K(Vt=S("Helpers").$resolve_class(Tt))?(K(lt(Vt,at))||K(bt)&&K(lt(Vt,bt))||Xe.$raise(Ie("ArgumentError"),"Class specified for "+it+" extension does not inherit from "+at+": "+Tt),jt=Vt.$new(Xe.$as_symbol(wt),Nt),K(wt=Xe.$as_symbol(jt.$name()))||Xe.$raise(Ie("ArgumentError"),"No name specified for "+it+" extension: "+Tt),jt.$freeze(),Se=[wt,S("ProcessorExtension").$new(H,jt)],X(kt,"[]=",Se),Se[Se.length-1]):Ke(at,Tt)||K(bt)&&Ke(bt,Tt)?(Tt.$update_config(Nt),K(wt=K(wt)?(Se=[Xe.$as_symbol(wt)],X(Tt,"name=",Se),Se[Se.length-1]):Xe.$as_symbol(Tt.$name()))||Xe.$raise(Ie("ArgumentError"),"No name specified for "+it+" extension: "+Tt),Tt.$freeze(),Se=[wt,S("ProcessorExtension").$new(H,Tt)],X(kt,"[]=",Se),Se[Se.length-1]):Xe.$raise(Ie("ArgumentError"),"Invalid arguments specified for registering "+it+" extension: "+ge))}),y(_,"$reset",function(){var H=this;return H.preprocessor_extensions=H.tree_processor_extensions=H.postprocessor_extensions=H.include_processor_extensions=H.docinfo_processor_extensions=H.block_extensions=H.block_macro_extensions=H.inline_macro_extensions=ke,H.document=ke}),y(_,"$resolve_args",function(H,ge){var ce=ke,Se=ke;return ce=Ke(Ie("Hash"),H["$[]"](-1))?H.$pop():ye([],{}),R(ge,1)?ce:(K(et(Se=Z(Z(ge,1),H.$size()),0))?H=qe(H,Ie("Array").$new(Se)):K(lt(Se,0))&&H.$pop(Se["$-@"]()),H["$<<"](ce),H)}),y(_,"$as_symbol",function(H){return K(H)?H.$to_sym():ke})}(ie[0],null,ie),function(G,g){var u=[G].concat(g),_=a.$r(u);return y(G,"$generate_name",function(){var S=this;return"extgrp"+S.$next_auto_id()}),y(G,"$next_auto_id",function(){var S=this,b=ke;return S.auto_id==null&&(S.auto_id=ke),S.auto_id=K(b=S.auto_id)?b:-1,S.auto_id=qe(S.auto_id,1)}),y(G,"$groups",function(){var S=this,b=ke;return S.groups==null&&(S.groups=ke),S.groups=K(b=S.groups)?b:ye([],{})}),y(G,"$create",function z(S){var b=z.$$p||ke,F=this,H=ke;return z.$$p=null,S==null&&(S=ke),b!==ke?_("Registry").$new(L(K(H=S)?H:F.$generate_name(),b)):_("Registry").$new()},-1),y(G,"$register",function z(S){var b=z.$$p||ke,F,H,ge,ce=this,Se=ke,Be=ke,Xe=ke,it=ke,pt=ke;return z.$$p=null,F=J(arguments),H=F,Se=H.$size(),b!==ke?Be=b:K(Xe=H.$pop())?Be=K(it=_("Helpers").$resolve_class(Xe))?it:Xe:ce.$raise(Ie("ArgumentError"),"Extension group to register not specified"),pt=K(it=H.$pop())?it:ce.$generate_name(),K(H["$empty?"]())||ce.$raise(Ie("ArgumentError"),"Wrong number of arguments ("+Se+" for 1..2)"),ge=[pt.$to_sym(),Be],X(ce.$groups(),"[]=",ge),ge[ge.length-1]},-1),y(G,"$unregister_all",function(){var S=this;return S.groups=ye([],{}),ke}),y(G,"$unregister",function(S){var b,F,H=this;return b=J(arguments),F=b,X(F,"each_with_object",[H.$groups()],function(ce,Se){return ce==null&&(ce=ke),Se==null&&(Se=ke),Se.$delete(ce.$to_sym())}),ke},-1)}(a.get_singleton_class(ae),ie)}(ee[0],ee)}(He[0],He)},Opal.modules["asciidoctor/js/asciidoctor_ext/stylesheet"]=function(a){var ue=a.module,se=a.klass,K=a.truthy,ye=a.def,y=[],X=a.nil,Ue=a.$$$;return a.add_stubs("rstrip,read,join"),function(J,qe){var R=ue(J,"Asciidoctor"),et=[R].concat(qe);return function(Ne,Ke){var Le=se(Ne,Ke,"Stylesheets"),Pe=Le.$$prototype;return Pe.primary_stylesheet_data=X,ye(Le,"$primary_stylesheet_data",function(){var Ve=this,st=X;return Ve.primary_stylesheet_data=K(st=Ve.primary_stylesheet_data)?st:Ue("IO").$read(Ue("File").$join("css","asciidoctor.css")).$rstrip()})}(et[0],null)}(y[0],y)},Opal.modules["asciidoctor/js/asciidoctor_ext/document"]=function(a){var ue=a.module,se=a.klass,K=a.def,ye=[];return a.nil,function(y,X){var Ue=ue(y,"Asciidoctor"),J=[Ue].concat(X),qe=a.$r(J);return function(R,et){var Ne=se(R,et,"Document");return K(Ne,"$fill_datetime_attributes",function(Le,Pe){var ht=a.truthy,Ve=a.falsy,st=a.nil,Ye,Ze,dt,I,tt,C,rt,lt,Z=function(z,S){return S===0?z.getUTCFullYear():z.getFullYear()},L=function(z,S){return S===0?z.getUTCMonth():z.getMonth()},He=function(z,S){return S===0?z.getUTCDate():z.getDate()},ke=function(z,S){return S===0?z.getUTCHours():z.getHours()},Ie=new Date;if(a.const_get_qualified("::","ENV")["$key?"]("SOURCE_DATE_EPOCH")?(Ie.setTime(parseInt(a.const_get_qualified("::","ENV")["$[]"]("SOURCE_DATE_EPOCH"))*1e3),Ze=Ie,Ye=0):Ye=-Ie.getTimezoneOffset()/60,ht(dt=Le["$[]"]("localdate")))Ve(I=Le["$[]"]("localyear"))&&(I=dt.indexOf("-")===4?dt.substring(0,4):st,Le["$[]="]("localyear",I));else{var Re=Z(Ie,Ye).toString(),$e=("0"+(L(Ie,Ye)+1)).slice(-2),we=("0"+He(Ie,Ye)).slice(-2);dt=Re+"-"+$e+"-"+we,Le["$[]="]("localdate",dt),I=Re,Le["$[]="]("localyear",Re)}if(Ve(tt=Le["$[]"]("localtime"))){var ee=("0"+ke(Ie,Ye)).slice(-2),P=("0"+Ie.getMinutes()).slice(-2),D=("0"+Ie.getSeconds()).slice(-2),ae;Ye===0?ae="UTC":Ye>0?ae=("+0"+Ye*100).slice(-5):ae=("-0"+-Ye*100).slice(-5),tt=ee+":"+P+":"+D+" "+ae,Le["$[]="]("localtime",tt)}if(Ve(C=Le["$[]"]("localdatetime"))&&(C=dt+" "+tt,Le["$[]="]("localdatetime",C)),ht(Ze)?Pe=Ze:ht(Pe)?Ye=-Pe.getTimezoneOffset()/60:Pe=Ie,ht(rt=Le["$[]"]("docdate")))Le["$[]="]("docyear",rt.indexOf("-")===4?rt.substring(0,4):st);else{var ie=Z(Pe,Ye).toString(),me=("0"+(L(Pe,Ye)+1)).slice(-2),G=("0"+He(Pe,Ye)).slice(-2);rt=ie+"-"+me+"-"+G,Le["$[]="]("docdate",rt),Ve(Le["$[]"]("docyear"))&&Le["$[]="]("docyear",ie)}if(Ve(lt=Le["$[]"]("doctime"))){var g=("0"+ke(Pe,Ye)).slice(-2),u=("0"+Pe.getMinutes()).slice(-2),_=("0"+Pe.getSeconds()).slice(-2),ae;Ye===0?ae="UTC":Ye>0?ae=("+0"+Ye*100).slice(-5):ae=("-0"+-Ye*100).slice(-5),lt=g+":"+u+":"+_+" "+ae,Le["$[]="]("doctime",lt)}return Ve(Le["$[]"]("docdatetime"))&&Le["$[]="]("docdatetime",rt+" "+lt),st})}(J[0],qe("AbstractBlock"))}(ye[0],ye)},Opal.modules["asciidoctor/js/asciidoctor_ext/substitutors"]=function(a){var ue=a.module,se=a.def,K=[];return a.nil,function(ye,y){var X=ue(ye,"Asciidoctor"),Ue=[X].concat(y);return function(J){var qe=ue(J,"Substitutors");return se(qe,"$sub_placeholder",function(et,Ne){return et.replace("%s",Ne)})}(Ue[0])}(K[0],K)},Opal.modules["asciidoctor/js/asciidoctor_ext/parser"]=function(a){var ue=a.module,se=a.klass,K=a.truthy,ye=a.defs,y=[];return a.nil,function(X,Ue){var J=ue(X,"Asciidoctor"),qe=[J].concat(Ue);return function(R,et){var Ne=se(R,et,"Parser");return K(String.prototype.repeat)?ye(Ne,"$uniform?",function(Le,Pe,ht){return Pe.repeat(ht)===Le}):ye(Ne,"$uniform?",function(Le,Pe,ht){return Array.apply(null,{length:ht}).map(function(){return Pe}).join("")===Le})}(qe[0],null)}(y[0],y)},Opal.modules["asciidoctor/js/asciidoctor_ext/syntax_highlighter"]=function(a){var ue=a.module,se=a.truthy,K=a.def,ye=[],y=a.nil;return a.add_stubs("key?,registry,[],include?,include,empty?,debug,logger,join,keys"),function(X,Ue){var J=ue(X,"Asciidoctor"),qe=[J].concat(Ue);return function(R,et){var Ne=ue(R,"SyntaxHighlighter"),Ke=[Ne].concat(et);return function(Le,Pe){var ht=ue(Le,"Factory"),Ve=[ht].concat(Pe),st=a.$r(Ve);return K(ht,"$for",function(Ze){var dt=this;return se(dt.$registry()["$key?"](Ze))?dt.$registry()["$[]"](Ze):(se(dt["$include?"](st("Logging")))||dt.$include(st("Logging")),se(dt.$registry()["$empty?"]())?dt.$logger().$debug("no syntax highlighter available, functionality disabled."):dt.$logger().$debug("syntax highlighter named '"+Ze+"' is not available, must be one of: '"+dt.$registry().$keys().$join("', '")+"'."),y)})}(Ke[0],Ke)}(qe[0],qe)}(ye[0],ye)},Opal.modules["asciidoctor/js/asciidoctor_ext"]=function(a){var ue=a.top;a.nil,a.add_stubs("require"),ue.$require("asciidoctor/js/asciidoctor_ext/stylesheet"),ue.$require("asciidoctor/js/asciidoctor_ext/document"),ue.$require("asciidoctor/js/asciidoctor_ext/substitutors"),ue.$require("asciidoctor/js/asciidoctor_ext/parser"),ue.$require("asciidoctor/js/asciidoctor_ext/syntax_highlighter"),ue.$require("asciidoctor/js/asciidoctor_ext/browser")},Opal.modules["asciidoctor/js/opal_ext/logger"]=function(a){var ue=a.klass,se=a.def,K=a.truthy,ye=a.rb_lt,y=[],X=a.nil;return a.add_stubs("chr,rjust,message_as_string,<,write,call,[]"),function(Ue,J,qe){var R=ue(Ue,J,"Logger"),et=[R].concat(qe),Ne=a.$r(et),Ke=R.$$prototype;return Ke.level=Ke.progname=Ke.pipe=Ke.formatter=X,function(Le,Pe){var ht=ue(Le,Pe,"Formatter");return se(ht,"$call",function(st,Ye,Ze,dt){var I=this,tt=X;return tt=Ye.getFullYear()+"-"+("0"+(Ye.getMonth()+1)).slice(-2)+"-"+("0"+Ye.getDate()).slice(-2)+"T"+("0"+Ye.getHours()).slice(-2)+":"+("0"+Ye.getMinutes()).slice(-2)+":"+("0"+Ye.getSeconds()).slice(-2)+"."+("00"+new Date().getMilliseconds()*1e3).slice(-6),""+st.$chr()+", ["+tt+"] "+st.$rjust(5)+" -- "+Ze+": "+I.$message_as_string(dt)})}(et[0],null),se(R,"$add",function Le(Pe,ht,Ve){var st=Le.$$p||X,Ye=this,Ze=X;return Le.$$p=null,ht==null&&(ht=X),Ve==null&&(Ve=X),K(ye(Pe=K(Ze=Pe)?Ze:Ne("UNKNOWN"),Ye.level))||(Ve=K(Ze=Ve)?Ze:Ye.progname,K(ht)||(st!==X?ht=a.yieldX(st,[]):(ht=Ve,Ve=Ye.progname)),Ye.pipe.$write(Ye.formatter.$call(K(Ze=Ne("SEVERITY_LABELS")["$[]"](Pe))?Ze:"ANY",new Date,Ve,ht))),!0},-2)}(y[0],null,y)},Opal.modules["asciidoctor/js/postscript"]=function(a){var ue=a.top;return a.nil,a.add_stubs("require"),ue.$require("asciidoctor/converter/composite"),ue.$require("asciidoctor/converter/html5"),ue.$require("asciidoctor/extensions"),ue.$require("asciidoctor/js/asciidoctor_ext"),ue.$require("asciidoctor/js/opal_ext/logger")},Opal.queue(function(a){var ue=a.module,se=a.const_set,K=a.send,ye=a.to_ary,y=a.defs,X=a.def,Ue=a.truthy,J=a.hash2,qe=a.eqeq,R=a.rb_minus,et=a.regexp,Ne=a.top,Ke=[],Le=a.nil,Pe=a.$$$;return a.add_stubs("require,==,to_h,sort,map,constants,const_get,downcase,to_s,<=>,upcase,[],values,new,attr_reader,instance_variable_set,send,singleton_class,<<,define,dirname,absolute_path,join,home,pwd,to_set,tap,each,chr,each_key,[]=,slice,length,-,merge,default=,drop,insert"),Ne.$require("set"),Ne.$require("asciidoctor/js"),function(ht,Ve){var st=ue(ht,"Asciidoctor"),Ye=[st].concat(Ve),Ze=a.$r(Ye),dt=Le;return se(Ye[0],"RUBY_ENGINE_OPAL",se(Ye[0],"RUBY_ENGINE",Pe("RUBY_ENGINE"))["$=="]("opal")),function(I,tt){var C=ue(I,"SafeMode"),rt=[C].concat(tt);return se(rt[0],"UNSAFE",0),se(rt[0],"SAFE",1),se(rt[0],"SERVER",10),se(rt[0],"SECURE",20),C.names_by_value=K(K(C.$constants(!1),"map",[],function lt(Z){var L=lt.$$s==null?this:lt.$$s;return Z==null&&(Z=Le),[L.$const_get(Z),Z.$to_s().$downcase()]},{$$s:C}),"sort",[],function(Z,L){var He,ke,Ie=Le,Re=Le;return Z==null&&(Z=Le),L==null&&(L=Le),ke=Z,He=ye(ke),Ie=He[0]==null?Le:He[0],ke=L,He=ye(ke),Re=He[0]==null?Le:He[0],Ie["$<=>"](Re)},{$$has_top_level_mlhs_arg:!0}).$to_h(),y(C,"$value_for_name",function(Z){var L=this;return L.$const_get(Z.$upcase(),!1)}),y(C,"$name_for_value",function(Z){var L=this;return L.names_by_value==null&&(L.names_by_value=Le),L.names_by_value["$[]"](Z)}),y(C,"$names",function(){var Z=this;return Z.names_by_value==null&&(Z.names_by_value=Le),Z.names_by_value.$values()})}(Ye[0],Ye),function(I,tt){var C=ue(I,"Compliance");return C.keys=Pe("Set").$new(),function(rt,lt){return rt.$attr_reader("keys"),X(rt,"$define",function(L,He){var ke=this;return ke.keys==null&&(ke.keys=Le),ke.$instance_variable_set("@"+L,He),ke.$singleton_class().$send("attr_accessor",L),ke.keys["$<<"](L),Le})}(a.get_singleton_class(C)),C.$define("block_terminates_paragraph",!0),C.$define("strict_verbatim_paragraphs",!0),C.$define("underline_style_section_titles",!0),C.$define("unwrap_standalone_preamble",!0),C.$define("attribute_missing","skip"),C.$define("attribute_undefined","drop-line"),C.$define("shorthand_property_syntax",!0),C.$define("natural_xrefs",!0),C.$define("unique_id_start_index",2),C.$define("markdown_syntax",!0)}(Ye[0]),Ue(Ze("ROOT_DIR","skip_raise")?"constant":Le)||se(Ye[0],"ROOT_DIR",Pe("File").$dirname(Pe("File").$absolute_path("."))),se(Ye[0],"LIB_DIR",Pe("File").$join(Ze("ROOT_DIR"),"lib")),se(Ye[0],"DATA_DIR",Pe("File").$join(Ze("ROOT_DIR"),"data")),se(Ye[0],"USER_HOME",function(){try{return Pe("Dir").$home()}catch(I){if(a.rescue(I,[Ze("StandardError")]))try{return Ue(dt=Pe("ENV")["$[]"]("HOME"))?dt:Pe("Dir").$pwd()}finally{a.pop_exception()}else throw I}}()),se(Ye[0],"LF",`
|
|
647
|
-
`),se(Ye[0],"NULL","\0"),se(Ye[0],"TAB"," "),se(Ye[0],"MAX_INT",9007199254740991),se(Ye[0],"UTF_8",Pe(Pe("Encoding"),"UTF_8")),se(Ye[0],"BOM_BYTES_UTF_8",[239,187,191]),se(Ye[0],"BOM_BYTES_UTF_16LE",[255,254]),se(Ye[0],"BOM_BYTES_UTF_16BE",[254,255]),se(Ye[0],"FILE_READ_MODE",Ue(Ze("RUBY_ENGINE_OPAL"))?"r":"rb:utf-8:utf-8"),se(Ye[0],"URI_READ_MODE",Ze("FILE_READ_MODE")),se(Ye[0],"FILE_WRITE_MODE",Ue(Ze("RUBY_ENGINE_OPAL"))?"w":"w:utf-8"),se(Ye[0],"DEFAULT_DOCTYPE","article"),se(Ye[0],"DEFAULT_BACKEND","html5"),se(Ye[0],"DEFAULT_STYLESHEET_KEYS",["","DEFAULT"].$to_set()),se(Ye[0],"DEFAULT_STYLESHEET_NAME","asciidoctor.css"),se(Ye[0],"BACKEND_ALIASES",J(["html","docbook"],{html:"html5",docbook:"docbook5"})),se(Ye[0],"DEFAULT_PAGE_WIDTHS",J(["docbook"],{docbook:425})),se(Ye[0],"DEFAULT_EXTENSIONS",J(["html","docbook","pdf","epub","manpage","asciidoc"],{html:".html",docbook:".xml",pdf:".pdf",epub:".epub",manpage:".man",asciidoc:".adoc"})),se(Ye[0],"ASCIIDOC_EXTENSIONS",J([".adoc",".asciidoc",".asc",".ad",".txt"],{".adoc":!0,".asciidoc":!0,".asc":!0,".ad":!0,".txt":!0})),se(Ye[0],"SETEXT_SECTION_LEVELS",J(["=","-","~","^","+"],{"=":0,"-":1,"~":2,"^":3,"+":4})),se(Ye[0],"ADMONITION_STYLES",["NOTE","TIP","IMPORTANT","WARNING","CAUTION"].$to_set()),se(Ye[0],"ADMONITION_STYLE_HEADS",K(Pe("Set").$new(),"tap",[],function(tt){return tt==null&&(tt=Le),K(Ze("ADMONITION_STYLES"),"each",[],function(rt){return rt==null&&(rt=Le),tt["$<<"](rt.$chr())})})),se(Ye[0],"PARAGRAPH_STYLES",["comment","example","literal","listing","normal","open","pass","quote","sidebar","source","verse","abstract","partintro"].$to_set()),se(Ye[0],"VERBATIM_STYLES",["literal","listing","source","verse"].$to_set()),se(Ye[0],"DELIMITED_BLOCKS",J(["--","----","....","====","****","____","++++","|===",",===",":===","!===","////","```"],{"--":["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()]})),se(Ye[0],"DELIMITED_BLOCK_HEADS",K(J([],{}),"tap",[],function(tt){return tt==null&&(tt=Le),K(Ze("DELIMITED_BLOCKS"),"each_key",[],function(rt){var lt;return rt==null&&(rt=Le),lt=[rt.$slice(0,2),!0],K(tt,"[]=",lt),lt[lt.length-1]})})),se(Ye[0],"DELIMITED_BLOCK_TAILS",K(J([],{}),"tap",[],function(tt){return tt==null&&(tt=Le),K(Ze("DELIMITED_BLOCKS"),"each_key",[],function(rt){var lt;return rt==null&&(rt=Le),qe(rt.$length(),4)?(lt=[rt,rt["$[]"](R(rt.$length(),1))],K(tt,"[]=",lt),lt[lt.length-1]):Le})})),se(Ye[0],"CAPTION_ATTRIBUTE_NAMES",J(["example","figure","listing","table"],{example:"example-caption",figure:"figure-caption",listing:"listing-caption",table:"table-caption"})),se(Ye[0],"LAYOUT_BREAK_CHARS",J(["'","<"],{"'":"thematic_break","<":"page_break"})),se(Ye[0],"MARKDOWN_THEMATIC_BREAK_CHARS",J(["-","*","_"],{"-":"thematic_break","*":"thematic_break",_:"thematic_break"})),se(Ye[0],"HYBRID_LAYOUT_BREAK_CHARS",Ze("LAYOUT_BREAK_CHARS").$merge(Ze("MARKDOWN_THEMATIC_BREAK_CHARS"))),se(Ye[0],"NESTABLE_LIST_CONTEXTS",["ulist","olist","dlist"]),se(Ye[0],"ORDERED_LIST_STYLES",["arabic","loweralpha","lowerroman","upperalpha","upperroman"]),se(Ye[0],"ORDERED_LIST_KEYWORDS",J(["loweralpha","lowerroman","upperalpha","upperroman"],{loweralpha:"a",lowerroman:"i",upperalpha:"A",upperroman:"I"})),se(Ye[0],"ATTR_REF_HEAD","{"),se(Ye[0],"LIST_CONTINUATION","+"),se(Ye[0],"HARD_LINE_BREAK"," +"),se(Ye[0],"LINE_CONTINUATION"," \\"),se(Ye[0],"LINE_CONTINUATION_LEGACY"," +"),se(Ye[0],"BLOCK_MATH_DELIMITERS",J(["asciimath","latexmath"],{asciimath:["\\$","\\$"],latexmath:["\\[","\\]"]})),se(Ye[0],"INLINE_MATH_DELIMITERS",J(["asciimath","latexmath"],{asciimath:["\\$","\\$"],latexmath:["\\(","\\)"]})),se(Ye[0],"STEM_TYPE_ALIASES",J(["latexmath","latex","tex"],{latexmath:"latexmath",latex:"latexmath",tex:"latexmath"}))["$default="]("asciimath"),se(Ye[0],"FONT_AWESOME_VERSION","4.7.0"),se(Ye[0],"HIGHLIGHT_JS_VERSION","9.18.3"),se(Ye[0],"MATHJAX_VERSION","2.7.9"),se(Ye[0],"DEFAULT_ATTRIBUTES",J(["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"})),se(Ye[0],"FLEXIBLE_ATTRIBUTES",["sectnums"]),se(Ye[0],"INTRINSIC_ATTRIBUTES",J(["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:">"})),se(Ye[0],"QUOTE_SUBS",K(J([],{}),"tap",[],function(tt){var C=Le,rt=Le;return tt==null&&(tt=Le),tt["$[]="](!1,C=[["strong","unconstrained",et(["\\\\?(?:\\[([^\\]]+)\\])?\\*\\*(",Ze("CC_ALL"),"+?)\\*\\*"],"m")],["strong","constrained",et(["(^|[^",Ze("CC_WORD"),";:}])(?:\\[([^\\]]+)\\])?\\*(\\S|\\S",Ze("CC_ALL"),"*?\\S)\\*(?!",Ze("CG_WORD"),")"],"m")],["double","constrained",et(["(^|[^",Ze("CC_WORD"),';:}])(?:\\[([^\\]]+)\\])?"`(\\S|\\S',Ze("CC_ALL"),'*?\\S)`"(?!',Ze("CG_WORD"),")"],"m")],["single","constrained",et(["(^|[^",Ze("CC_WORD"),";:`}])(?:\\[([^\\]]+)\\])?'`(\\S|\\S",Ze("CC_ALL"),"*?\\S)`'(?!",Ze("CG_WORD"),")"],"m")],["monospaced","unconstrained",et(["\\\\?(?:\\[([^\\]]+)\\])?``(",Ze("CC_ALL"),"+?)``"],"m")],["monospaced","constrained",et(["(^|[^",Ze("CC_WORD"),";:\"'`}])(?:\\[([^\\]]+)\\])?`(\\S|\\S",Ze("CC_ALL"),"*?\\S)`(?![",Ze("CC_WORD"),"\"'`])"],"m")],["emphasis","unconstrained",et(["\\\\?(?:\\[([^\\]]+)\\])?__(",Ze("CC_ALL"),"+?)__"],"m")],["emphasis","constrained",et(["(^|[^",Ze("CC_WORD"),";:}])(?:\\[([^\\]]+)\\])?_(\\S|\\S",Ze("CC_ALL"),"*?\\S)_(?!",Ze("CG_WORD"),")"],"m")],["mark","unconstrained",et(["\\\\?(?:\\[([^\\]]+)\\])?##(",Ze("CC_ALL"),"+?)##"],"m")],["mark","constrained",et(["(^|[^",Ze("CC_WORD"),"&;:}])(?:\\[([^\\]]+)\\])?#(\\S|\\S",Ze("CC_ALL"),"*?\\S)#(?!",Ze("CG_WORD"),")"],"m")],["superscript","unconstrained",/\\?(?:\[([^\]]+)\])?\^(\S+?)\^/],["subscript","unconstrained",/\\?(?:\[([^\]]+)\])?~(\S+?)~/]]),tt["$[]="](!0,rt=C.$drop(0)),rt["$[]="](2,["double","constrained",et(["(^|[^",Ze("CC_WORD"),";:}])(?:\\[([^\\]]+)\\])?``(\\S|\\S",Ze("CC_ALL"),"*?\\S)''(?!",Ze("CG_WORD"),")"],"m")]),rt["$[]="](3,["single","constrained",et(["(^|[^",Ze("CC_WORD"),";:}])(?:\\[([^\\]]+)\\])?`(\\S|\\S",Ze("CC_ALL"),"*?\\S)'(?!",Ze("CG_WORD"),")"],"m")]),rt["$[]="](4,["monospaced","unconstrained",et(["\\\\?(?:\\[([^\\]]+)\\])?\\+\\+(",Ze("CC_ALL"),"+?)\\+\\+"],"m")]),rt["$[]="](5,["monospaced","constrained",et(["(^|[^",Ze("CC_WORD"),";:}])(?:\\[([^\\]]+)\\])?\\+(\\S|\\S",Ze("CC_ALL"),"*?\\S)\\+(?!",Ze("CG_WORD"),")"],"m")]),rt.$insert(3,["emphasis","constrained",et(["(^|[^",Ze("CC_WORD"),";:}])(?:\\[([^\\]]+)\\])?'(\\S|\\S",Ze("CC_ALL"),"*?\\S)'(?!",Ze("CG_WORD"),")"],"m")])})),se(Ye[0],"REPLACEMENTS",[[/\\?\(C\)/,"©","none"],[/\\?\(R\)/,"®","none"],[/\\?\(TM\)/,"™","none"],[/(?: |\n|^|\\)--(?: |\n|$)/," — ","none"],[et(["(",Ze("CG_WORD"),")\\\\?--(?=",Ze("CG_WORD"),")"]),"—​","leading"],[/\\?\.\.\./,"…​","none"],[/\\?`'/,"’","none"],[et(["(",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"]]),Le}(Ke[0],Ke),Ne.$require("asciidoctor.rb/../asciidoctor/core_ext"),Ne.$require("asciidoctor.rb/../asciidoctor/helpers"),Ne.$require("asciidoctor.rb/../asciidoctor/logging"),Ne.$require("asciidoctor.rb/../asciidoctor/rx"),Ne.$require("asciidoctor.rb/../asciidoctor/substitutors"),Ne.$require("asciidoctor.rb/../asciidoctor/version"),Ne.$require("asciidoctor.rb/../asciidoctor/abstract_node"),Ne.$require("asciidoctor.rb/../asciidoctor/abstract_block"),Ne.$require("asciidoctor.rb/../asciidoctor/attribute_list"),Ne.$require("asciidoctor.rb/../asciidoctor/block"),Ne.$require("asciidoctor.rb/../asciidoctor/callouts"),Ne.$require("asciidoctor.rb/../asciidoctor/converter"),Ne.$require("asciidoctor.rb/../asciidoctor/document"),Ne.$require("asciidoctor.rb/../asciidoctor/inline"),Ne.$require("asciidoctor.rb/../asciidoctor/list"),Ne.$require("asciidoctor.rb/../asciidoctor/parser"),Ne.$require("asciidoctor.rb/../asciidoctor/path_resolver"),Ne.$require("asciidoctor.rb/../asciidoctor/reader"),Ne.$require("asciidoctor.rb/../asciidoctor/section"),Ne.$require("asciidoctor.rb/../asciidoctor/stylesheets"),Ne.$require("asciidoctor.rb/../asciidoctor/table"),Ne.$require("asciidoctor.rb/../asciidoctor/writer"),Ne.$require("asciidoctor.rb/../asciidoctor/load"),Ne.$require("asciidoctor.rb/../asciidoctor/convert"),Ne.$require("asciidoctor.rb/../asciidoctor/syntax_highlighter"),Ne.$require("asciidoctor.rb/../asciidoctor/timings"),Ne.$require("asciidoctor/js/postscript")});const t=function(a){return a&&!a.$$is_hash?Opal.hash2(Object.keys(a),a):a},r=function(a){const ue={};if(a){const se=a.$$smap;for(const ye in se){const y=se[ye];ue[ye]=y===Opal.nil?void 0:y}const K=a.$$map;if(K){const ye=[];for(const y in K){const X=K[y],Ue=X.value,J=X.key-1;ye[J]=Ue===Opal.nil?void 0:Ue}ye.length>0&&(ue.$positional=ye)}}return ue},n=function(a){const ue={};if(a){const se=a.$$keys;for(const K in se){const ye=se[K].value;ue[K.toString()]=ye===Opal.nil?void 0:ye}}return ue},i=function(a){if(a=t(a),a){const ue=a["$[]"]("converter");ue&&ue!==Opal.nil&&a["$[]="]("converter",s(ue));const se=a["$[]"]("attributes");se&&typeof se=="object"&&se.constructor.name==="Object"&&(a=a.$dup(),a["$[]="]("attributes",t(se)))}return a},s=function(a){const ue=function(qe){return Object.assign({},qe.basebackend?{basebackend:qe.basebackend}:{},qe.outfilesuffix?{outfilesuffix:qe.outfilesuffix}:{},qe.filetype?{filetype:qe.filetype}:{},qe.htmlsyntax?{htmlsyntax:qe.htmlsyntax}:{},qe.supports_templates?{supports_templates:qe.supports_templates}:{})},se=function(qe,R){qe.backend_traits?R.backend_traits=t(qe.backend_traits):qe.backendTraits?R.backend_traits=t(qe.backendTraits):(qe.basebackend||qe.outfilesuffix||qe.filetype||qe.htmlsyntax||qe.supports_templates)&&(R.backend_traits=t(ue(qe)))},K=function(qe,R){Ue(qe,R,"$handles?","handles",function(){return!0})},ye=function(qe,R){Ue(qe,R,"$composed","composed")},y=function(qe,R){Ue(qe,R,"$==","==",function(et){return R===et})},X=function(qe,R){Ue(qe,R,"$send","send",function(et){const[,...Ne]=Array.from(arguments),Ke=R["$"+et];if(Ke)return Ke.apply(R,Ne);throw new Error(`undefined method \`${et}\` for \`${R.toString()}\``)})},Ue=function(qe,R,et,Ne,Ke){typeof qe[et]>"u"&&(typeof qe[Ne]=="function"?R[et]=qe[Ne]:Ke&&(R[et]=Ke))},J=function(qe){typeof qe["$respond_to?"]!="function"&&(qe["$respond_to?"]=function(R){return typeof this[R]=="function"})};if(typeof a=="function"){const qe=l(ft,a.constructor.name,{initialize:function(R,et){const Ne=this,Ke=new a(R,et);Object.assign(this,Ke),se(Ke,Ne);const Le=Object.getOwnPropertyNames(a.prototype);for(let Pe=0;Pe<Le.length;Pe++){const ht=Le[Pe];ht!=="constructor"&&(Ne[ht]=Ke[ht])}typeof Ke.$convert>"u"&&typeof Ke.convert=="function"&&(Ne.$convert=Ke.convert),K(Ke,Ne),ye(Ke,Ne),J(Ne),Ne.super(R,et)}});return qe.$extend(yt),qe}if(typeof a=="object"){if(typeof a.$convert>"u"&&typeof a.convert=="function"&&(a.$convert=a.convert),se(a,a),a.backend_traits){const qe=["basebackend","filetype","htmlsyntax","outfilesuffix","supports_templates","supports_templates?","init_backend_traits","backend_traits"];for(const R of qe)a["$"+R]=yt.prototype["$"+R];a.$$meta=yt}return K(a,a),ye(a,a),y(a,a),X(a,a),J(a),a}return a};function l(a,ue,se,K,ye){const y=Opal.klass(Opal.Object,a,ue,function(){});let X,Ue,J;const qe={};for(const Ne in se)Object.prototype.hasOwnProperty.call(se,Ne)&&function(Ke){const Le=se[Ke];if(Ke==="postConstruct")X=Le;else if(Ke==="initialize")Ue=Le;else if(Ke==="constructor")J=Le;else{K&&Object.prototype.hasOwnProperty.call(K,Ke)&&(qe[Ke]=!0);let Pe;Opal.def(y,"$"+Ke,Pe=function(){let ht;ye&&Object.prototype.hasOwnProperty.call(ye,Ke)?ht=ye[Ke](arguments):ht=arguments;const Ve=Pe.$$p;return Ve&&(ht[ht.length]=function(){return Opal.yield1(Ve)},ht.length+=1,Pe.$$p=null),Le.apply(this,ht)})}}(Ne);let R;typeof J=="function"?R=function(){const Ne=Array.from(arguments);for(let Le=0;Le<Ne.length;Le++)typeof Ne[Le]=="object"&&"$$smap"in Ne[Le]&&(Ne[Le]=r(Ne[Le]));Ne.unshift(null);const Ke=new(Function.prototype.bind.apply(J,Ne));Object.assign(this,Ke),typeof X=="function"&&X.bind(this)()}:typeof Ue=="function"?R=function(){const Ne=Array.from(arguments);for(let Ke=0;Ke<Ne.length;Ke++)typeof Ne[Ke]=="object"&&"$$smap"in Ne[Ke]&&(Ne[Ke]=r(Ne[Ke]));Ue.apply(this,Ne),typeof X=="function"&&X.bind(this)()}:R=function(){Opal.send(this,Opal.find_super_dispatcher(this,"initialize",R)),typeof X=="function"&&X.bind(this)()},Opal.def(y,"$initialize",R);let et;Opal.def(y,"super",et=function(Ne){if(typeof Ne=="function")Opal.send(this,Opal.find_super_dispatcher(this,Ne.name,Ne));else{const Ke=Array.from(arguments);for(let Le=0;Le<Ke.length;Le++)typeof Ke[Le]=="object"&&(Ke[Le]=t(Ke[Le]));Opal.send(this,Opal.find_super_dispatcher(this,"initialize",R),Ke)}});for(const Ne in se)et[Ne]=function(){const Ke=Array.from(arguments);for(let Pe=0;Pe<Ke.length;Pe++)typeof Ke[Pe]=="object"&&typeof Ke[Pe].constructor=="function"&&Ke[Pe].constructor.name==="Object"&&(Ke[Pe]=t(Ke[Pe]));const Le=y.$$prototype;return Opal.send(Le,Opal.find_super_dispatcher(Le,Ne,Le[`$${Ne}`]),Ke)};if(K)for(const Ne in K)Object.prototype.hasOwnProperty.call(K,Ne)&&!Object.prototype.hasOwnProperty.call(qe,Ne)&&function(Ke){const Le=K[Ke];Opal.def(y,"$"+Ke,function(){return Le.apply(this,arguments)})}(Ne);return y}const $=Opal.Asciidoctor.$$class;$.prototype.getCoreVersion=function(){return this.$$const.VERSION},$.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")}},$.prototype.convert=function(a,ue){typeof a=="object"&&a.constructor.name==="Buffer"&&(a=a.toString("utf8"));const se=ue&&ue.to_file;typeof se=="object"&&se.constructor.name==="Writable"&&typeof se.write=="function"&&(se["$respond_to?"]=y=>y==="write",se.$object_id=()=>"",se.$write=function(y){this.write(y)});const K=i(ue),ye=this.$convert(a,K);return typeof se=="object"&&se.constructor.name==="Writable"&&typeof se.end=="function"&&se.end(),ye===Opal.nil?"":ye},$.prototype.convertFile=function(a,ue){return this.$convert_file(a,i(ue))},$.prototype.load=function(a,ue){return typeof a=="object"&&a.constructor.name==="Buffer"&&(a=a.toString("utf8")),this.$load(a,i(ue))},$.prototype.loadFile=function(a,ue){return this.$load_file(a,i(ue))};const h=Opal.Asciidoctor.AbstractBlock;h.prototype.getContentModel=function(){const a=this.content_model;return a===Opal.nil?void 0:a},h.prototype.setContentModel=function(a){this.content_model=a},h.prototype.append=function(a){return this.$append(a),this},h.prototype.getTitle=function(){const a=this.$title();return a===Opal.nil?void 0:a},h.prototype.setTitle=function(a){return a=typeof a>"u"?Opal.nil:a,this["$title="](a)},h.prototype.assignCaption=function(a,ue){a=typeof a>"u"?Opal.nil:a,ue=typeof ue>"u"?null:ue,this.$assign_caption(a,ue)},h.prototype.getCaptionedTitle=function(){return this.$captioned_title()},h.prototype.getStyle=function(){const a=this.style;return a===Opal.nil?void 0:a},h.prototype.setStyle=function(a){this.style=a},h.prototype.getSourceLocation=function(){const a=this.source_location;if(a!==Opal.nil)return a.getFile=function(){const ue=this.file;return ue===Opal.nil?void 0:ue},a.getDirectory=function(){const ue=this.dir;return ue===Opal.nil?void 0:ue},a.getPath=function(){const ue=this.path;return ue===Opal.nil?void 0:ue},a.getLineNumber=function(){const ue=this.lineno;return ue===Opal.nil?void 0:ue},a},h.prototype.getCaption=function(){const a=this.$caption();return a===Opal.nil?void 0:a},h.prototype.setCaption=function(a){this.caption=typeof a>"u"?Opal.nil:a},h.prototype.getLevel=function(){const a=this.level;return a===Opal.nil?void 0:a},h.prototype.getSubstitutions=function(){return this.subs},h.prototype.hasSubstitution=function(a){return this["$sub?"](a)},h.prototype.removeSubstitution=function(a){this.$remove_sub(a)},h.prototype.hasBlocks=function(){return this.blocks.length>0},h.prototype.getBlocks=function(){return this.blocks},h.prototype.getContent=function(){const a=this.$content();return a===Opal.nil?void 0:a},h.prototype.convert=function(){return this.$convert()},h.prototype.findBy=function(a,ue){return typeof ue>"u"&&typeof a=="function"?Opal.send(this,"find_by",null,a):typeof ue=="function"?Opal.send(this,"find_by",[t(a)],ue):this.$find_by(t(a))},h.prototype.getLineNumber=function(){const a=this.$lineno();return a===Opal.nil?void 0:a},h.prototype.hasSections=function(){return this.next_section_index!==Opal.nil&&this.next_section_index>0},h.prototype.getSections=function(){return this.$sections()},h.prototype.getNumeral=function(){const a=this.$numeral();return a===Opal.nil?void 0:a},h.prototype.setNumeral=function(a){this["$numeral="](a)},h.prototype.hasTitle=function(){return this["$title?"]()},h.prototype.getAlt=function(){return this.$alt()};const d=Opal.Asciidoctor.Section;d.create=function(a,ue,se,K){return K&&K.attributes&&(K.attributes=t(K.attributes)),this.$new(a,ue,se,t(K))},d.prototype.setLevel=function(a){this.level=a},d.prototype.getIndex=function(){return this.index},d.prototype.setIndex=function(a){this.index=a},d.prototype.getSectionName=function(){const a=this.sectname;return a===Opal.nil?void 0:a},d.prototype.setSectionName=function(a){this.sectname=a},d.prototype.getSectionNumeral=function(){return this.$sectnum()},d.prototype.getSectionNumber=d.prototype.getSectionNumeral,d.prototype.isSpecial=function(){return this.special},d.prototype.setSpecial=function(a){this.special=a},d.prototype.isNumbered=function(){return this.numbered},d.prototype.getCaption=function(){const a=this.caption;return a===Opal.nil?void 0:a},d.prototype.getName=function(){return this.getTitle()};const w=Opal.Asciidoctor.Block;w.create=function(a,ue,se){return se&&se.attributes&&(se.attributes=t(se.attributes)),this.$new(a,ue,t(se))},w.prototype.getSource=function(){return this.$source()},w.prototype.getSourceLines=function(){return this.lines};const A=Opal.Asciidoctor.AbstractNode;A.prototype.applySubstitutions=function(a,ue){return this.$apply_subs(a,ue)},A.prototype.resolveSubstitutions=function(a,ue,se,K){typeof ue>"u"&&(ue="block"),typeof se>"u"&&(se=Opal.nil),typeof K>"u"&&(K=Opal.nil);const ye=this.$resolve_subs(a,ue,se,K);return ye===Opal.nil?void 0:ye},A.prototype.resolveBlockSubstitutions=function(a,ue,se){return this.resolveSubstitutions(a,"block",ue,se)},A.prototype.resolvePassSubstitutions=function(a){return this.resolveSubstitutions(a,"inline",void 0,"passthrough macro")},A.prototype.getNodeName=function(){return this.node_name},A.prototype.getAttributes=function(){return r(this.attributes)},A.prototype.getAttribute=function(a,ue,se){const K=this.$attr(a,ue,se);return K===Opal.nil?void 0:K},A.prototype.hasAttribute=function(a){return a in this.attributes.$$smap},A.prototype.isAttribute=function(a,ue,se){return this["$attr?"](a,ue,se)},A.prototype.setAttribute=function(a,ue,se){return typeof se>"u"&&(se=!0),this.$set_attr(a,ue,se)},A.prototype.removeAttribute=function(a){const ue=this.$remove_attr(a);return ue===Opal.nil?void 0:ue},A.prototype.getDocument=function(){return this.document},A.prototype.getParent=function(){const a=this.parent;return a===Opal.nil?void 0:a},A.prototype.isInline=function(){return this["$inline?"]()},A.prototype.isBlock=function(){return this["$block?"]()},A.prototype.isRole=function(a){return this["$role?"](a)},A.prototype.getRole=function(){const a=this.$role();return a===Opal.nil?void 0:a},A.prototype.setRole=function(a){return Array.isArray(a)||typeof a=="string"&&arguments.length===1?this["$role="](a):this["$role="](Array.from(arguments))},A.prototype.hasRole=function(a){return this["$has_role?"](a)},A.prototype.getRoles=function(){return this.$roles()},A.prototype.addRole=function(a){return this.$add_role(a)},A.prototype.removeRole=function(a){return this.$remove_role(a)},A.prototype.isReftext=function(){return this["$reftext?"]()},A.prototype.getReftext=function(){const a=this.$reftext();return a===Opal.nil?void 0:a},A.prototype.getContext=function(){const a=this.context;return typeof a=="string"?a:a.toString()},A.prototype.getId=function(){const a=this.id;return a===Opal.nil?void 0:a},A.prototype.setId=function(a){this.id=a},A.prototype.isOption=function(a){return this["$option?"](a)},A.prototype.setOption=function(a){return this.$set_option(a)},A.prototype.getIconUri=function(a){return this.$icon_uri(a)},A.prototype.getMediaUri=function(a,ue){return this.$media_uri(a,ue)},A.prototype.getImageUri=function(a,ue){return this.$image_uri(a,ue)},A.prototype.getConverter=function(){return this.$converter()},A.prototype.readContents=function(a,ue){return this.$read_contents(a,t(ue))},A.prototype.readAsset=function(a,ue){const se=this.$read_asset(a,t(ue));return se===Opal.nil?void 0:se},A.prototype.normalizeWebPath=function(a,ue,se){return this.$normalize_web_path(a,ue,se)},A.prototype.normalizeSystemPath=function(a,ue,se,K){return this.$normalize_system_path(a,ue,se,t(K))},A.prototype.normalizeAssetPath=function(a,ue,se){return this.$normalize_asset_path(a,ue,se)};const N=Opal.Asciidoctor.Document;N.prototype.append=function(a){return this["$<<"](a),this},N.prototype.getSyntaxHighlighter=function(){const a=this.syntax_highlighter,ue=a.__proto__;return ue&&(typeof ue["$highlight?"]=="function"&&(ue.handlesHighlighting=function(){const se=ue["$highlight?"]();return se===Opal.nil?!1:se}),typeof ue["$docinfo?"]=="function"&&(ue.hasDocinfo=ue["$docinfo?"]),typeof ue.$format=="function"&&(ue.format=function(se,K,ye){return this.$format(se,K,t(ye))}),typeof ue.$docinfo=="function"&&(ue.docinfo=function(se,K,ye){return this.$docinfo(se,K,t(ye))})),a},N.prototype.getRefs=function(){return r(this.catalog.$$smap.refs)},N.prototype.getImages=function(){return this.catalog.$$smap.images},N.prototype.getLinks=function(){return this.catalog.$$smap.links},N.prototype.hasFootnotes=function(){return this["$footnotes?"]()},N.prototype.getFootnotes=function(){return this.$footnotes()},N.prototype.getHeader=function(){return this.header},N.prototype.setAttribute=function(a,ue){return this.$set_attribute(a,ue)},N.prototype.removeAttribute=function(a){this.attributes.$delete(a),this.attribute_overrides.$delete(a)},N.prototype.convert=function(a){const ue=this.$convert(t(a));return ue===Opal.nil?"":ue},N.prototype.write=function(a,ue){return this.$write(a,ue)},N.prototype.getAuthor=function(){return this.$author()},N.prototype.getSource=function(){return this.$source()},N.prototype.getSourceLines=function(){return this.$source_lines()},N.prototype.isNested=function(){return this["$nested?"]()},N.prototype.isEmbedded=function(){return this["$embedded?"]()},N.prototype.hasExtensions=function(){return this["$extensions?"]()},N.prototype.getDoctype=function(){return this.doctype},N.prototype.getBackend=function(){return this.backend},N.prototype.isBasebackend=function(a){return this["$basebackend?"](a)},N.prototype.getTitle=function(){const a=this.$title();return a===Opal.nil?void 0:a},N.prototype.setTitle=function(a){return this["$title="](a)},N.prototype.getDocumentTitle=function(a){const ue=this.$doctitle(t(a));return ue===Opal.nil?void 0:ue},N.prototype.getDoctitle=N.prototype.getDocumentTitle,N.prototype.getCatalog=function(){return r(this.catalog)},N.prototype.getReferences=N.prototype.getCatalog,N.prototype.getRevisionDate=function(){return this.getAttribute("revdate")},N.prototype.getRevdate=function(){return this.getRevisionDate()},N.prototype.getRevisionNumber=function(){return this.getAttribute("revnumber")},N.prototype.getRevisionRemark=function(){return this.getAttribute("revremark")},N.prototype.setHeaderAttribute=function(a,ue,se){return typeof se>"u"&&(se=!0),typeof ue>"u"&&(ue=""),this.$set_header_attribute(a,ue,se)},N.prototype.getAuthors=function(){return this.$authors()};const U=N.Footnote;U.prototype.getIndex=function(){const a=this.$$data.index;return a===Opal.nil?void 0:a},U.prototype.getId=function(){const a=this.$$data.id;return a===Opal.nil?void 0:a},U.prototype.getText=function(){const a=this.$$data.text;return a===Opal.nil?void 0:a};const O=N.ImageReference;O.prototype.getTarget=function(){return this.$$data.target},O.prototype.getImagesDirectory=function(){const a=this.$$data.imagesdir;return a===Opal.nil?void 0:a};const j=N.Author;j.prototype.getName=function(){const a=this.$$data.name;return a===Opal.nil?void 0:a},j.prototype.getFirstName=function(){const a=this.$$data.firstname;return a===Opal.nil?void 0:a},j.prototype.getMiddleName=function(){const a=this.$$data.middlename;return a===Opal.nil?void 0:a},j.prototype.getLastName=function(){const a=this.$$data.lastname;return a===Opal.nil?void 0:a},j.prototype.getInitials=function(){const a=this.$$data.initials;return a===Opal.nil?void 0:a},j.prototype.getEmail=function(){const a=this.$$data.email;return a===Opal.nil?void 0:a},N.RevisionInfo=function(a,ue,se){this.date=a,this.number=ue,this.remark=se};const q=N.RevisionInfo;q.prototype.getDate=function(){return this.date},q.prototype.getNumber=function(){return this.number},q.prototype.getRemark=function(){return this.remark},q.prototype.isEmpty=function(){return this.date===void 0&&this.number===void 0&&this.remark===void 0};const Y=Opal.Asciidoctor.SafeMode;Y.getValueForName=function(a){return this.$value_for_name(a)},Y.getNameForValue=function(a){const ue=this.$name_for_value(a);return ue===Opal.nil?void 0:ue},Y.getNames=function(){return this.$names()};const he=Opal.Asciidoctor.Callouts;he.create=function(){return this.$new()},he.prototype.register=function(a){return this.$register(a)},he.prototype.readNextId=function(){return this.$read_next_id()},he.prototype.getCalloutIds=function(a){return this.$callout_ids(a)},he.prototype.getLists=function(){const a=this.lists;if(a&&a.length>0)for(let ue=0;ue<a.length;ue++){const se=a[ue];if(se&&se.length>0)for(let K=0;K<se.length;K++)typeof se[K]=="object"&&"$$smap"in se[K]&&(se[K]=r(se[K]))}return a},he.prototype.getListIndex=function(){return this.list_index},he.prototype.getCurrentList=function(){const a=this.$current_list();if(a&&a.length>0)for(let ue=0;ue<a.length;ue++)typeof a[ue]=="object"&&"$$smap"in a[ue]&&(a[ue]=r(a[ue]));return a},he.prototype.nextList=function(){return this.$nextList()},he.prototype.rewind=function(){return this.$rewind()},N.prototype.getRevisionInfo=function(){return new N.RevisionInfo(this.getRevisionDate(),this.getRevisionNumber(),this.getRevisionRemark())},N.prototype.hasRevisionInfo=function(){return!this.getRevisionInfo().isEmpty()},N.prototype.getNotitle=function(){return this.$notitle()},N.prototype.getNoheader=function(){return this.$noheader()},N.prototype.getNofooter=function(){return this.$nofooter()},N.prototype.hasHeader=function(){return this["$header?"]()},N.prototype.playbackAttributes=function(a){if(a=t(a),a){const ue=a["$[]"]("attribute_entries");if(ue&&Array.isArray(ue)){const se=[];for(let K=0;K<ue.length;K++){const ye=ue[K];ye&&typeof ye=="object"&&ye.constructor.name==="Object"&&(ye.$name=function(){return this.name},ye.$value=function(){return this.value},ye.$negate=function(){return this.negate}),se.push(ye)}a["$[]="]("attribute_entries",se)}}this.$playback_attributes(a)},N.prototype.deleteAttribute=function(a){return this.$delete_attribute(a)},N.prototype.isAttributeLocked=function(a){return this["$attribute_locked?"](a)},N.prototype.restoreAttributes=function(){return this.$restore_attributes()},N.prototype.parse=function(a){return this.$parse(a)},N.prototype.getDocinfo=function(a,ue){return this.$docinfo(a,ue)},N.prototype.hasDocinfoProcessors=function(a){return this["$docinfo_processors?"](a)},N.prototype.incrementAndStoreCounter=function(a,ue){return this.$increment_and_store_counter(a,ue)},N.prototype.counterIncrement=N.prototype.incrementAndStoreCounter,N.prototype.counter=function(a,ue){return this.$counter(a,ue)},N.prototype.getSafe=function(){return this.safe},N.prototype.getCompatMode=function(){return this.compat_mode},N.prototype.getSourcemap=function(){const a=this.sourcemap;return a===Opal.nil?!1:a},N.prototype.setSourcemap=function(a){this.sourcemap=a},N.prototype.getCounters=function(){return r(this.counters)},N.prototype.getCallouts=function(){return this.$callouts()},N.prototype.getBaseDir=function(){return this.base_dir},N.prototype.getOptions=function(){return r(this.options)},N.prototype.getOutfilesuffix=function(){return this.outfilesuffix},N.prototype.getParentDocument=function(){const a=this.parent_document;return a===Opal.nil?void 0:a},N.prototype.getReader=function(){return this.reader},N.prototype.getConverter=function(){return this.converter},N.prototype.getExtensions=function(){const a=this.extensions;return a===Opal.nil?void 0:a};const ne=N.Title;ne.prototype.getMain=function(){return this.main},ne.prototype.getCombined=function(){return this.combined},ne.prototype.getSubtitle=function(){const a=this.subtitle;return a===Opal.nil?void 0:a},ne.prototype.isSanitized=function(){const a=this["$sanitized?"]();return a===Opal.nil?!1:a},ne.prototype.hasSubtitle=function(){return this["$subtitle?"]()};const _e=Opal.Asciidoctor.Inline;_e.create=function(a,ue,se,K){return this.$new(a,ue,se,i(K))},_e.prototype.convert=function(){return this.$convert()},_e.prototype.getText=function(){const a=this.$text();return a===Opal.nil?void 0:a},_e.prototype.getType=function(){return this.$type()},_e.prototype.getTarget=function(){const a=this.$target();return a===Opal.nil?void 0:a},_e.prototype.getAlt=function(){return this.$alt()};const Q=Opal.Asciidoctor.List;Q.prototype.hasItems=function(){return this["$items?"]()},Q.prototype.getItems=function(){return this.blocks};const be=Opal.Asciidoctor.ListItem;be.prototype.getText=function(){return this.$text()},be.prototype.setText=function(a){return this["$text="](a)},be.prototype.hasText=function(){return this["$text?"]()},be.prototype.getMarker=function(){return this.marker},be.prototype.setMarker=function(a){this.marker=a},be.prototype.getList=function(){return this.$list()},be.prototype.getParent=be.prototype.getList;const oe=Opal.Asciidoctor.Reader;oe.prototype.pushInclude=function(a,ue,se,K,ye){return this.$push_include(a,ue,se,K,t(ye))},oe.prototype.getCursor=function(){return this.$cursor()},oe.prototype.getLines=function(){return this.$lines()},oe.prototype.getString=function(){return this.$string()},oe.prototype.hasMoreLines=function(){return this["$has_more_lines?"]()},oe.prototype.isEmpty=function(){return this["$empty?"]()},oe.prototype.peekLine=function(a){a=a||!1;const ue=this.$peek_line(a);return ue===Opal.nil?void 0:ue},oe.prototype.readLine=function(){const a=this.$read_line();return a===Opal.nil?void 0:a},oe.prototype.readLines=function(){return this.$read_lines()},oe.prototype.read=function(){return this.$read()},oe.prototype.advance=function(){return this.$advance()};const Ee=Opal.Asciidoctor.Reader.Cursor;Ee.prototype.getFile=function(){const a=this.file;return a===Opal.nil?void 0:a},Ee.prototype.getDirectory=function(){const a=this.dir;return a===Opal.nil?void 0:a},Ee.prototype.getPath=function(){const a=this.path;return a===Opal.nil?void 0:a},Ee.prototype.getLineNumber=function(){return this.lineno};function te(a,ue){const se=Opal.const_get_qualified(Opal.Logger,"Formatter");return l(se,a,ue,{},{call:function(K){for(let ye=0;ye<K.length;ye++)typeof K[ye]=="object"&&"$$smap"in K[ye]&&(K[ye]=r(K[ye]));return K}})}function Ce(a,ue){const se=Opal.const_get_qualified(Opal.Asciidoctor,"Logger");return l(se,a,ue,{},{add:function(K){if(K.length>=2&&typeof K[2]=="object"&&"$$smap"in K[2]){const ye=K[2],y=r(ye);y.getText=function(){return this.text},y.getSourceLocation=function(){return this.source_location},y.$inspect=function(){const X=this.getSourceLocation();return X?X.getPath()+": line "+X.getLineNumber()+": "+this.getText():this.getText()},K[2]=y}return K.length>=1&&(K[1]=K[1]===Opal.nil?void 0:K[1]),K}})}const de=Opal.const_get_qualified(Opal.Asciidoctor,"LoggerManager",!0);Opal.Asciidoctor.LoggerManager=de,de.getLogger=function(){return this.$logger()},de.setLogger=function(a){this["$logger="](a)},de.newLogger=function(a,ue){return Ce(a,ue).$new()},de.newFormatter=function(a,ue){return te(a,ue).$new()};const k=Opal.const_get_qualified(Opal.Logger,"Severity",!0);Opal.Asciidoctor.LoggerSeverity=k,k.get=function(a){return k.$constants()[a]};const Ae=Opal.const_get_qualified(Opal.Logger,"Formatter",!0);Opal.Asciidoctor.LoggerFormatter=Ae,Ae.prototype.call=function(a,ue,se,K){return this.$call(k.get(a),ue,se,K)};const B=Opal.const_get_qualified(Opal.Asciidoctor,"MemoryLogger",!0);Opal.Asciidoctor.MemoryLogger=B,B.create=function(){return this.$new()},B.prototype.getMessages=function(){const a=this.messages,ue=[];for(let se=0;se<a.length;se++){const K=a[se],ye=r(K);typeof ye.message=="string"?ye.getText=function(){return this.message}:(ye.message=r(ye.message),ye.getText=function(){return this.message.text}),ye.getSeverity=function(){return this.severity.toString()},ye.getSourceLocation=function(){return this.message.source_location},ue.push(ye)}return ue};const pe=Opal.const_get_qualified(Opal.Asciidoctor,"Logging",!0);Opal.Asciidoctor.Logging=pe,pe.getLogger=function(){return de.$logger()},pe.createLogMessage=function(a,ue){return pe.prototype.$message_with_context(a,t(ue))},oe.prototype.getLogger=pe.getLogger,oe.prototype.createLogMessage=pe.createLogMessage,A.prototype.getLogger=pe.getLogger,A.prototype.createLogMessage=pe.createLogMessage;const W=Opal.const_get_qualified(Opal.Asciidoctor,"Logger",!0);Opal.Asciidoctor.Logger=W,W.prototype.getMaxSeverity=function(){const a=this.max_severity;return a===Opal.nil?void 0:a},W.prototype.getFormatter=function(){return this.formatter},W.prototype.setFormatter=function(a){this.formatter=a},W.prototype.getLevel=function(){return this.level},W.prototype.setLevel=function(a){this.level=a},W.prototype.getProgramName=function(){return this.progname},W.prototype.setProgramName=function(a){this.progname=a};const Fe=Opal.const_get_qualified("::","Logger"),fe=function(a,ue,se){a["$"+ue](se)};Fe.prototype.add=function(a,ue,se){const K=typeof a=="string"?k[a.toUpperCase()]:a;this.$add(K,ue,se)},Fe.prototype.log=Fe.prototype.add,Fe.prototype.debug=function(a){fe(this,"debug",a)},Fe.prototype.info=function(a){fe(this,"info",a)},Fe.prototype.warn=function(a){fe(this,"warn",a)},Fe.prototype.error=function(a){fe(this,"error",a)},Fe.prototype.fatal=function(a){fe(this,"fatal",a)},Fe.prototype.isDebugEnabled=function(){return this["$debug?"]()},Fe.prototype.isInfoEnabled=function(){return this["$info?"]()},Fe.prototype.isWarnEnabled=function(){return this["$warn?"]()},Fe.prototype.isErrorEnabled=function(){return this["$error?"]()},Fe.prototype.isFatalEnabled=function(){return this["$fatal?"]()};const V=Opal.const_get_qualified(Opal.Asciidoctor,"NullLogger",!0);Opal.Asciidoctor.NullLogger=V,V.create=function(){return this.$new()},V.prototype.getMaxSeverity=function(){return this.max_severity},Opal.Asciidoctor.StopIteration=Opal.StopIteration;const x=Opal.const_get_qualified(Opal.Asciidoctor,"Timings",!0);Opal.Asciidoctor.Timings=x,x.create=function(){return this.$new()},x.prototype.printReport=function(a,ue){let se;if(a)if(typeof a.$add=="function")se=function(K){a.$add(1,K)};else if(typeof a.log=="function")se=a.log;else if(typeof a.write=="function")se=function(K){a.write(K,"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 se=function(K){Opal.gvars.stdout.$write(K)};ue&&se("Input file: "+ue),se(" Time to read and parse source: "+this.$read_parse().toFixed(2)),se(" Time to convert document: "+this.$convert().toFixed(2)),se(" Total time (read, parse and convert): "+this.$read_parse_convert().toFixed(2))};const f=Opal.const_get_qualified(Opal.Asciidoctor,"SyntaxHighlighter",!0);Opal.Asciidoctor.SyntaxHighlighter=f,f.register=function(a,ue){const se=typeof a=="string"?a:a[0];if(typeof ue=="function"){const y=ue.prototype,X=Object.getOwnPropertyNames(y);ue={};for(const Ue in X){const J=X[Ue];ue[J]=y[J]}}const K=l(o,se,ue,{},{format:function(ye){return ye.length>=2&&typeof ye[2]=="object"&&"$$smap"in ye[2]&&(ye[2]=r(ye[2])),ye.length>=1&&(ye[1]=ye[1]===Opal.nil?void 0:ye[1]),ye},highlight:function(ye){if(ye.length>=3&&typeof ye[3]=="object"&&"$$smap"in ye[3]){let y=ye[3];y=r(y);for(const X in y){const Ue=y[X];if(X==="callouts"){const J=n(Ue);for(const qe in J){const R=J[qe];for(let et=0;et<R.length;et++){const Ne=R[et];for(let Ke=0;Ke<Ne.length;Ke++)Ne[Ke]=Ne[Ke]===Opal.nil?void 0:Ne[Ke]}}y[X]=J}else y[X]=Ue===Opal.nil?void 0:Ue}ye[3]=y}return ye.length>=2&&(ye[2]=ye[2]===Opal.nil?void 0:ye[2]),ye}});for(const ye in ue)Object.prototype.hasOwnProperty.call(ue,ye)&&function(y){const X=ue[y];y==="handlesHighlighting"?Opal.def(K,"$highlight?",function(){return X.call()}):y==="hasDocinfo"&&Opal.def(K,"$docinfo?",function(Ue){return X.apply(this,[Ue])})}(ye);return Opal.def(K,"$name",function(){return se}),f.$register(K,a),K},f.get=function(a){const ue=f.$for(a);return ue===Opal.nil?void 0:ue},f.for=f.get;const o=Opal.const_get_qualified(f,"Base",!0);Opal.Asciidoctor.SyntaxHighlighterBase=o,o.prototype.registerFor=function(a){f.$register(this,a)};const c=Opal.Asciidoctor.Table;c.create=function(a,ue){return this.$new(a,t(ue))},c.prototype.getCaption=function(){return this.caption},c.prototype.getRows=function(){return this.rows},c.prototype.getColumns=function(){return this.columns},c.prototype.getHeadRows=function(){return this.rows.head},c.prototype.hasHeadRows=function(){return this.rows!==Opal.nil&&this.rows.head.length>0},c.prototype.getBodyRows=function(){return this.rows.body},c.prototype.hasBodyRows=function(){return this.rows!==Opal.nil&&this.rows.body.length>0},c.prototype.getFootRows=function(){return this.rows.foot},c.prototype.hasFootRows=function(){return this.rows!==Opal.nil&&this.rows.foot.length>0},c.prototype.hasHeaderOption=function(){return this.has_header_option},c.prototype.hasFooterOption=function(){return this.isOption("footer")},c.prototype.hasAutowidthOption=function(){return this.isOption("autowidth")},c.prototype.getRowCount=function(){return this.getAttribute("rowcount")},c.prototype.setRowCount=function(a){this.setAttribute("rowcount",a)},c.prototype.getColumnCount=function(){return this.getAttribute("colcount")},c.prototype.setColumnCount=function(a){this.setAttribute("colcount",a)};const p=Opal.Asciidoctor.Table.Rows;p.create=function(a,ue,se){return this.$new(a,ue,se)},p.prototype.getHead=function(){return this.head},p.prototype.getFoot=function(){return this.foot},p.prototype.getBody=function(){return this.body},p.prototype.bySection=function(){return[["head",this.head],["body",this.body],["foot",this.foot]]};const m=Opal.Asciidoctor.Table.Column;m.create=function(a,ue,se){return this.$new(a,ue,t(se))},m.prototype.getColumnNumber=function(){return this.getAttribute("colnumber")},m.prototype.getWidth=function(){return this.getAttribute("width")},m.prototype.getHorizontalAlign=function(){return this.getAttribute("halign")},m.prototype.getVerticalAlign=function(){return this.getAttribute("valign")},m.prototype.getStyle=function(){const a=this.style;return a===Opal.nil?void 0:a};const E=Opal.Asciidoctor.Table.Cell;E.create=function(a,ue,se,K){return this.$new(a,ue,t(se),t(K))},E.prototype.getColumnSpan=function(){const a=this.colspan;return a===Opal.nil?void 0:a},E.prototype.setColumnSpan=function(a){return this["$colspan="](a)},E.prototype.getRowSpan=function(){const a=this.rowspan;return a===Opal.nil?void 0:a},E.prototype.setRowSpan=function(a){return this["$rowspan="](a)},E.prototype.getContent=function(){return this.$content()},E.prototype.getText=function(){return this.$text()},E.prototype.getSource=function(){return this.$source()},E.prototype.getLines=function(){return this.$lines()},E.prototype.getLineNumber=function(){const a=this.$lineno();return a===Opal.nil?void 0:a},E.prototype.getFile=function(){const a=this.$file();return a===Opal.nil?void 0:a},E.prototype.getStyle=function(){const a=this.$style();return a===Opal.nil?void 0:a},E.prototype.getColumn=function(){const a=this.$column();return a===Opal.nil?void 0:a},E.prototype.getWidth=function(){return this.getAttribute("width")},E.prototype.getColumnPercentageWidth=function(){return this.getAttribute("colpcwidth")},E.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(ue,se,K){K&&K.template_cache&&(K.template_cache=t(K.template_cache)),this.$new(ue,se,t(K))},T.getCache=function(){const ue=r(this.caches);if(ue){if(ue.scans){ue.scans=r(ue.scans);for(const se in ue.scans)ue.scans[se]=r(ue.scans[se])}ue.templates&&(ue.templates=r(ue.templates))}return ue},T.clearCache=function(){this.$clear_caches()},T.prototype.convert=function(ue,se,K){return this.$convert(ue,se,t(K))},T.prototype.handles=function(ue){return this["$handles?"](ue)},T.prototype.getContentOnly=function(ue){return this.$content_only(ue)},T.prototype.skip=function(ue){this.$skip(ue)},T.prototype.getTemplates=function(){return r(this.$templates())},T.prototype.register=function(ue,se){return this.$register(ue,se)};const a={};a.registry={},Opal.Asciidoctor.TemplateEngine=a,a.register=function(ue,se){if(typeof ue=="string")this.registry[ue]=se;else for(let K=0;K<ue.length;K++){const ye=ue[K];this.registry[ye]=se}}}const re=Opal.Asciidoctor.Converter.CompositeConverter;re&&(Opal.Asciidoctor.CompositeConverter=re,re.prototype.convert=function(a,ue,se){return this.$convert(a,ue,t(se))},re.prototype.getContentOnly=function(a){return this.$content_only(a)},re.prototype.skip=function(a){this.$skip(a)},re.prototype.getConverters=function(){return this.converters},re.prototype.getConverter=function(a){const ue=this.$converter_for(a);return ue===Opal.nil?void 0:ue},re.prototype.findConverter=function(a){return this.$find_converter(a)});const je=Opal.const_get_qualified(Opal.Asciidoctor,"Converter");Opal.Asciidoctor.Converter=je,je.prototype.convert=function(a,ue,se){return this.$convert(a,ue,t(se))},je.create=function(a,ue){return this.$create(a,t(ue))};const nt=Opal.Asciidoctor.Converter.Factory,ft=Opal.Asciidoctor.Converter.Base;Opal.Asciidoctor.ConverterFactory=nt;const yt=Opal.Asciidoctor.Converter.BackendTraits;Opal.Asciidoctor.ConverterBackendTraits=yt,nt.register=function(a,ue){const se=[s(a)].concat(ue);return je.$register.apply(je,se)},nt.getDefault=function(a){return this.$default(a)},nt.prototype.create=function(a,ue){return this.$create(a,t(ue))},nt.getRegistry=function(){return r(je.$registry())},nt.for=function(a){const ue=je.$for(a);return ue===Opal.nil?void 0:ue},nt.unregisterAll=function(){const a=je.DefaultFactory.$$cvars["@@registry"];je.DefaultFactory.$$cvars["@@registry"]=t({html5:a["$[]"]("html5")})};const zt=Opal.Asciidoctor.Converter.Html5Converter;Opal.Asciidoctor.Html5Converter=zt,zt.create=function(){return this.$new()},zt.prototype.convert=function(a,ue,se){return this.$convert(a,ue,se)};const _t=function(a){return a.$$arity=a.length,a},vt=function(a,ue,se,K){return typeof se=="object"||se.$$is_class?a["$"+ue](se,K):Opal.send(a,ue,K&&[K],_t(se))},mt=Opal.const_get_qualified(Opal.Asciidoctor,"Extensions");Opal.Asciidoctor.Extensions=mt,mt.create=function(a,ue){return typeof a=="function"&&typeof ue>"u"?Opal.send(this,"create",null,_t(a)):typeof ue=="function"?Opal.send(this,"create",[a],_t(ue)):this.$create()},mt.register=function(a,ue){return typeof a=="function"&&typeof ue>"u"?Opal.send(this,"register",null,_t(a)):Opal.send(this,"register",[a],_t(ue))},mt.getGroups=function(){return r(this.$groups())},mt.unregisterAll=function(){this.$unregister_all()},mt.unregister=function(){const a=Array.prototype.concat.apply([],arguments),ue=this.$groups(),se={};let K=0;const ye=ue.$$keys;for(;K<ye.length;K++){const y=ye[K];se[y.toString()]=y}for(let y=0;y<a.length;y++){const X=a[y];X in se&&Opal.hash_delete(ue,se[X])}};const xt=mt.Registry;xt.prototype.getGroups=mt.getGroups,xt.prototype.unregisterAll=function(){this.groups=Opal.hash()},xt.prototype.unregister=mt.unregister,xt.prototype.prefer=function(a,ue){return arguments.length===1&&(ue=a,a=null),typeof ue=="object"||ue.$$is_class?this.$prefer(a,ue):Opal.send(this,"prefer",a&&[a],_t(ue))},xt.prototype.block=function(a,ue){return arguments.length===1&&(ue=a,a=null),vt(this,"block",ue,a)},xt.prototype.inlineMacro=function(a,ue){return arguments.length===1&&(ue=a,a=null),vt(this,"inline_macro",ue,a)},xt.prototype.includeProcessor=function(a,ue){return arguments.length===1&&(ue=a,a=null),vt(this,"include_processor",ue,a)},xt.prototype.blockMacro=function(a,ue){return arguments.length===1&&(ue=a,a=null),vt(this,"block_macro",ue,a)},xt.prototype.treeProcessor=function(a,ue){return arguments.length===1&&(ue=a,a=null),vt(this,"tree_processor",ue,a)},xt.prototype.postprocessor=function(a,ue){return arguments.length===1&&(ue=a,a=null),vt(this,"postprocessor",ue,a)},xt.prototype.preprocessor=function(a,ue){return arguments.length===1&&(ue=a,a=null),vt(this,"preprocessor",ue,a)},xt.prototype.docinfoProcessor=function(a,ue){return arguments.length===1&&(ue=a,a=null),vt(this,"docinfo_processor",ue,a)},xt.prototype.hasPreprocessors=function(){return this["$preprocessors?"]()},xt.prototype.hasTreeProcessors=function(){return this["$tree_processors?"]()},xt.prototype.hasIncludeProcessors=function(){return this["$include_processors?"]()},xt.prototype.hasPostprocessors=function(){return this["$postprocessors?"]()},xt.prototype.hasDocinfoProcessors=function(a){return this["$docinfo_processors?"](a)},xt.prototype.hasBlocks=function(){return this["$blocks?"]()},xt.prototype.hasBlockMacros=function(){return this["$block_macros?"]()},xt.prototype.hasInlineMacros=function(){return this["$inline_macros?"]()},xt.prototype.getPreprocessors=function(){return this.$preprocessors()},xt.prototype.getTreeProcessors=function(){return this.$tree_processors()},xt.prototype.getIncludeProcessors=function(){return this.$include_processors()},xt.prototype.getPostprocessors=function(){return this.$postprocessors()},xt.prototype.getDocinfoProcessors=function(a){return this.$docinfo_processors(a)},xt.prototype.getBlocks=function(){return this.block_extensions.$values()},xt.prototype.getBlockMacros=function(){return this.block_macro_extensions.$values()},xt.prototype.getInlineMacros=function(){return this.$inline_macros()},xt.prototype.getInlineMacroFor=function(a){const ue=this["$registered_for_inline_macro?"](a);return ue===!1?void 0:ue},xt.prototype.getBlockFor=function(a,ue){if(typeof ue>"u"){const K=this.$find_block_extension(a);return K===Opal.nil?void 0:K}const se=this["$registered_for_block?"](a,ue);return se===!1?void 0:se},xt.prototype.getBlockMacroFor=function(a){const ue=this["$registered_for_block_macro?"](a);return ue===!1?void 0:ue};const St=mt.Processor;St.prototype.prepend=function(){this.$option("position",">>")},St.prototype.process=function(a){const ue={apply:function(K,ye,y){for(let X=0;X<y.length;X++)typeof y[X]=="object"&&"$$smap"in y[X]&&(y[X]=r(y[X]));return K.apply(ye,y)}},se=new Proxy(a,ue);return Opal.send(this,"process",null,_t(se))},St.prototype.named=function(a){return this.$named(a)},St.prototype.createBlock=function(a,ue,se,K,ye){return this.$create_block(a,ue,se,t(K),t(ye))},St.prototype.createList=function(a,ue,se){return this.$create_list(a,ue,t(se))},St.prototype.createListItem=function(a,ue){return this.$create_list_item(a,ue)},St.prototype.createImageBlock=function(a,ue,se){return this.$create_image_block(a,t(ue),t(se))},St.prototype.createParagraph=function(a,ue,se,K){return this.$create_paragraph(a,ue,t(se),t(K))},St.prototype.createOpenBlock=function(a,ue,se,K){return this.$create_open_block(a,ue,t(se),t(K))},St.prototype.createExampleBlock=function(a,ue,se,K){return this.$create_example_block(a,ue,t(se),t(K))},St.prototype.createPassBlock=function(a,ue,se,K){return this.$create_pass_block(a,ue,t(se),t(K))},St.prototype.createListingBlock=function(a,ue,se,K){return this.$create_listing_block(a,ue,t(se),t(K))},St.prototype.createLiteralBlock=function(a,ue,se,K){return this.$create_literal_block(a,ue,t(se),t(K))},St.prototype.createAnchor=function(a,ue,se){return se&&se.attributes&&(se.attributes=t(se.attributes)),this.$create_anchor(a,ue,t(se))},St.prototype.createInlinePass=function(a,ue,se){return se&&se.attributes&&(se.attributes=t(se.attributes)),this.$create_inline_pass(a,ue,t(se))},St.prototype.createInline=function(a,ue,se,K){return K&&K.attributes&&(K.attributes=t(K.attributes)),this.$create_inline(a,ue,se,t(K))},St.prototype.parseContent=function(a,ue,se){return this.$parse_content(a,ue,t(se))},St.prototype.parseAttributes=function(a,ue,se){return se&&se.attributes&&(se.attributes=t(se.attributes)),r(this.$parse_attributes(a,ue,t(se)))},St.prototype.positionalAttributes=function(a){return this.$positional_attrs(a)},St.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)},St.prototype.resolvesAttributes=St.prototype.resolveAttributes,St.prototype.getConfig=function(){return r(this.config)},St.prototype.option=function(a,ue){this.$option(a,ue)};const Oe=mt.BlockProcessor;Oe.prototype.defaultAttributes=function(a){this.$default_attributes(t(a))},Oe.prototype.onContext=function(a){return this.$on_context(a)},Oe.prototype.onContexts=function(a){return this.$on_contexts(Array.prototype.slice.call(arguments))},Oe.prototype.getName=function(){const a=this.name;return a===Opal.nil?void 0:a},Oe.prototype.parseContentAs=function(a){this.$parse_content_as(a)};const ze=mt.BlockMacroProcessor;ze.prototype.defaultAttributes=function(a){this.$default_attributes(t(a))},ze.prototype.getName=function(){const a=this.name;return a===Opal.nil?void 0:a},ze.prototype.parseContentAs=function(a){this.$parse_content_as(a)};const De=mt.InlineMacroProcessor;De.prototype.defaultAttributes=function(a){this.$default_attributes(t(a))},De.prototype.getName=function(){const a=this.name;return a===Opal.nil?void 0:a},De.prototype.parseContentAs=function(a){this.$parse_content_as(a)},De.prototype.matchFormat=function(a){this.$match_format(a)},De.prototype.match=function(a){this.$match(a)};const Ge=mt.IncludeProcessor;Ge.prototype.handles=function(a){return Opal.send(this,"handles?",null,_t(a))},Ge.prototype.prefer=function(){this.$prefer()};const v=mt.TreeProcessor;v.prototype.prefer=function(){this.$prefer()};const M=mt.Postprocessor;M.prototype.prefer=function(){this.$prefer()};const xe=mt.Preprocessor;xe.prototype.prefer=function(){this.$prefer()};const Me=mt.DocinfoProcessor;Me.prototype.prefer=function(){this.$prefer()},Me.prototype.atLocation=function(a){this.$at_location(a)};function Qe(a,ue,se){const K=Opal.const_get_qualified(mt,a);return l(K,ue,se,{"handles?":function(){return!0}})}mt.createPostprocessor=function(a,ue){return arguments.length===1&&(ue=a,a=null),Qe("Postprocessor",a,ue)},mt.newPostprocessor=function(a,ue){return arguments.length===1&&(ue=a,a=null),this.createPostprocessor(a,ue).$new()},mt.createPreprocessor=function(a,ue){return arguments.length===1&&(ue=a,a=null),Qe("Preprocessor",a,ue)},mt.newPreprocessor=function(a,ue){return arguments.length===1&&(ue=a,a=null),this.createPreprocessor(a,ue).$new()},mt.createTreeProcessor=function(a,ue){return arguments.length===1&&(ue=a,a=null),Qe("TreeProcessor",a,ue)},mt.newTreeProcessor=function(a,ue){return arguments.length===1&&(ue=a,a=null),this.createTreeProcessor(a,ue).$new()},mt.createIncludeProcessor=function(a,ue){return arguments.length===1&&(ue=a,a=null),Qe("IncludeProcessor",a,ue)},mt.newIncludeProcessor=function(a,ue){return arguments.length===1&&(ue=a,a=null),this.createIncludeProcessor(a,ue).$new()},mt.createDocinfoProcessor=function(a,ue){return arguments.length===1&&(ue=a,a=null),Qe("DocinfoProcessor",a,ue)},mt.newDocinfoProcessor=function(a,ue){return arguments.length===1&&(ue=a,a=null),this.createDocinfoProcessor(a,ue).$new()},mt.createBlockProcessor=function(a,ue){return arguments.length===1&&(ue=a,a=null),Qe("BlockProcessor",a,ue)},mt.newBlockProcessor=function(a,ue){return arguments.length===1&&(ue=a,a=null),this.createBlockProcessor(a,ue).$new()},mt.createInlineMacroProcessor=function(a,ue){return arguments.length===1&&(ue=a,a=null),Qe("InlineMacroProcessor",a,ue)},mt.newInlineMacroProcessor=function(a,ue){return arguments.length===1&&(ue=a,a=null),this.createInlineMacroProcessor(a,ue).$new()},mt.createBlockMacroProcessor=function(a,ue){return arguments.length===1&&(ue=a,a=null),Qe("BlockMacroProcessor",a,ue)},mt.newBlockMacroProcessor=function(a,ue){return arguments.length===1&&(ue=a,a=null),this.createBlockMacroProcessor(a,ue).$new()};var $t="3.0.4";return Opal.Asciidoctor.prototype.getVersion=function(){return $t},Opal.Asciidoctor}const h8=d8();function p8(e){return e.trim().replace(/^\\[([$]/,"").replace(/\\[)\]$]$/,"")}function m8(e){return e=e.replace(/(<div class="stemblock">\s*<div class="content">)([\s\S]*?)(<\/div>\s*<\/div>)/g,(t,r,n,i)=>r+di(p8(n),!0)+i),e.replace(/\\\(([\s\S]+?)\\\)/g,(t,r)=>di(r,!1)).replace(/\\\[([\s\S]+?)\\\]/g,(t,r)=>di(r,!0)).replace(/\\\$([\s\S]+?)\\\$/g,(t,r)=>di(r,!1))}function fb(e,t){const r=yv(m8(h8.convert(String(e??""),{standalone:!1})));return Wy(r,t)}function _8({node:e,onNavigate:t}){return Rc(e),le.jsxs("div",{className:"text",children:[e.title&&le.jsx("h1",{className:"chapter-title",children:e.title}),e.description&&le.jsx("p",{className:"chapter-subtitle",children:e.description}),le.jsx(Gy,{html:fb(vi(e.value),e.path),onNavigate:t})]})}function g8({chunk:e,onNavigate:t}){return le.jsx("div",{className:"markup",onClick:gh(t),dangerouslySetInnerHTML:{__html:fb(e.value,e.documentPath)}})}function db(e,t,r='"'){const n=[];let i=[],s="",l=!1,$=0;const h=()=>{i.push(s),s=""},d=()=>{h(),n.push(i),i=[]};for(;$<e.length;){const w=e[$];if(l){w===r?e[$+1]===r?(s+=r,$+=2):(l=!1,$++):(s+=w,$++);continue}w===r?(l=!0,$++):w===t?(h(),$++):w===`
|
|
648
|
-
`||w==="\r"?(w==="\r"&&e[$+1]===`
|
|
649
|
-
`&&$++,d(),$++):(s+=w,$++)}return(s!==""||i.length)&&d(),n}function v8(e){return e?e==="tab"||e==="\\t"?" ":e==="space"?" ":e[0]:null}function hb(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 l=r.split(s).length-1;l>i&&(i=l,n=s)}return n}const y8=[{label:"auto",value:""},{label:"comma ,",value:","},{label:"semicolon ;",value:";"},{label:"tab",value:"tab"},{label:"pipe |",value:"|"}],R0=()=>new URLSearchParams(window.location.search);function pb(e){const t=e.get("header");return!(t==="false"||t==="0")}function d_(e,t){return e.length>=t?e:[...e,...Array(t-e.length).fill("")]}function mb({rows:e,header:t}){if(!e.length)return le.jsx("p",{className:"csv-empty",children:"(empty)"});const r=e.reduce((s,l)=>Math.max(s,l.length),0),n=t?e[0]:null,i=t?e.slice(1):e;return le.jsx("div",{className:"csv-scroll",children:le.jsxs("table",{className:"csv-table",children:[n&&le.jsx("thead",{children:le.jsx("tr",{children:d_(n,r).map((s,l)=>le.jsx("th",{children:s},l))})}),le.jsx("tbody",{children:i.map((s,l)=>le.jsx("tr",{children:d_(s,r).map(($,h)=>le.jsx("td",{children:$},h))},l))})]})})}function b8({node:e}){const t=R0(),r=pb(t),n=String(vi(e.value)??""),i=v8(t.get("sep"))??hb(n,e.format??null),s=db(n,i);return le.jsxs("div",{className:"csv",children:[e.title&&le.jsx("h1",{className:"chapter-title",children:e.title}),e.description&&le.jsx("p",{className:"chapter-subtitle",children:e.description}),le.jsx(mb,{rows:s,header:r})]})}function x8({rerender:e}){const t=R0(),r=t.get("sep")??"",n=pb(t),i=(s,l)=>{const $=R0();l?$.set(s,l):$.delete(s);const h=$.toString();window.history.replaceState({},"",window.location.pathname+(h?"?"+h:"")),e()};return le.jsxs("div",{className:"csv-toolbar",children:[le.jsxs("label",{children:["separator"," ",le.jsx("select",{value:r,onChange:s=>i("sep",s.target.value),children:y8.map(s=>le.jsx("option",{value:s.value,children:s.label},s.value))})]}),le.jsxs("label",{children:[le.jsx("input",{type:"checkbox",checked:n,onChange:s=>i("header",s.target.checked?"":"false")})," ","header row"]})]})}function w8({chunk:e}){const t=String(e.value??""),r=db(t,hb(t,e.format??null));return le.jsx("div",{className:"csv",children:le.jsx(mb,{rows:r,header:!0})})}const k8="$yamloverMixed";function _b(e,t){const r=Array.isArray(e)?e.map($=>({key:null,value:$})):e?.[k8]?.entries??[];let n=null;const i=[];r.forEach(($,h)=>{if($.key==="title"){n=typeof $.value=="string"?$.value:null;return}const d=ys(t,$.key??h),w=Array.isArray($.value)?$.value:$.value==null?[]:[$.value];i.push({cells:w.map((A,N)=>({value:A,path:ys(d,N)})),path:d,header:$.key==="header",overflow:0})});const l=(i.find($=>$.header)??i[0])?.cells.length??0;for(const $ of i)$.overflow=Math.max(0,$.cells.length-l);return{title:n,rows:i,cols:l}}function S8(e){const t=e.rows.map(i=>Array(Math.max(i.cells.length,e.cols)).fill(void 0)),r=new Map;e.rows.forEach((i,s)=>i.cells.forEach((l,$)=>r.set(l.path,{r:s,c:$})));const n=new Map;e.rows.forEach((i,s)=>i.cells.forEach((l,$)=>{const h=Ks(l.value);if(!h?.path)return;const d=r.get(h.path);if(!d||Ks(e.rows[d.r].cells[d.c].value))return;const w=n.get(h.path)??[];w.push({r:s,c:$}),n.set(h.path,w)}));for(const[i,s]of n){const l=r.get(i),$=[l,...s],h=Math.min(...$.map(q=>q.r)),d=Math.max(...$.map(q=>q.r)),w=Math.min(...$.map(q=>q.c)),A=Math.max(...$.map(q=>q.c)),N=(d-h+1)*(A-w+1),U=new Set($.map(q=>q.r+":"+q.c)).size===N&&$.length===N,O=l.r===h&&l.c===w,j=e.rows.slice(h,d+1).every(q=>q.header===e.rows[h].header);if(!(!U||!O||!j)){t[l.r][l.c]={colSpan:A-w+1,rowSpan:d-h+1};for(const q of s)t[q.r][q.c]=null}}return t}function E8(e,t){return{value:e.value,path:e.path,type:"string",format:"text/marklower",documentPath:t}}function A8({cell:e,tablePath:t,onNavigate:r}){const[n,i]=ut.useState(String(e.value??"")),s=ut.useRef(null),l=ut.useRef(n),$=ut.useRef(!1),h=()=>{$.current&&($.current=!1,vc([{path:e.path,op:"emplace",yamlover:k0(l.current)}]).catch(w=>alert(`cell edit failed: ${w.message}`)))};ut.useEffect(()=>()=>{s.current&&clearTimeout(s.current),h()},[]);const d=w=>{i(w),l.current=w,$.current=!0,s.current&&clearTimeout(s.current),s.current=setTimeout(h,500)};return le.jsx(jy,{text:l.current,rev:0,chapterPath:t,focusAt:null,onFocused:()=>{},onChangeText:d,onSplit:()=>{},onArrowOut:()=>{},onJoinPrev:()=>{},onJoinNext:()=>{}})}function gb({cell:e,tablePath:t,documentPath:r,unlocked:n,onNavigate:i}){const s=Ks(e.value);if(s)return s.path?le.jsx("a",{href:"#",className:"ref",onClick:h=>{h.preventDefault(),i(s.path)},children:s.text}):le.jsx("span",{className:"s",children:s.text});const l=Es(e.value);if(l?.format==="x-yamlover-chapter")return le.jsx(C8,{mixed:l,path:e.path,tablePath:t,documentPath:r,onNavigate:i});if(l||Array.isArray(e.value))return le.jsx(ec,{value:e.value,path:e.path,documentPath:r,onNavigate:i,caption:!0});const $=Ir(e.value);return $?le.jsx("a",{href:"#",className:"ref",onClick:h=>{h.preventDefault(),i($.path)},children:$.title??$.path}):n?le.jsx(A8,{cell:e,tablePath:t,onNavigate:i},e.path):le.jsx(zy,{chunk:E8(e,r),onNavigate:i})}function C8({mixed:e,path:t,tablePath:r,documentPath:n,onNavigate:i}){return le.jsx("div",{className:"yl-cell-chapter",children:e.entries.map((s,l)=>{const $=ys(t,s.key??l);return s.key==="title"?le.jsx("p",{className:"yl-cell-chapter-title",children:le.jsx("strong",{children:String(s.value??"")})},$):s.key==="description"?le.jsx("p",{children:String(s.value??"")},$):s.key!==null?null:le.jsx("div",{className:"yl-cell-chapter-item",children:le.jsx(gb,{cell:{value:s.value,path:$},tablePath:r,documentPath:n,unlocked:!1,onNavigate:i})},$)})})}function vb({title:e,tablePath:t}){const[r,n]=ut.useState(e),i=ut.useRef(null),s=l=>void vc([{path:ys(t,"title"),op:"emplace",yamlover:JSON.stringify(l)}]);return le.jsx("input",{className:"yl-table-title-edit",value:r,onChange:l=>{n(l.target.value),i.current&&clearTimeout(i.current),i.current=setTimeout(()=>s(l.target.value),500)},onBlur:()=>s(r)})}function ec({value:e,path:t,documentPath:r,onNavigate:n,caption:i}){const{unlocked:s}=ho(),l=_b(e,t);if(!l.rows.length)return le.jsx("p",{className:"csv-empty",children:"(empty table)"});const $=S8(l),h=l.rows.reduce((A,N)=>A+N.overflow,0),d=(A,N)=>{const U=A.header?"th":"td",O=[...A.cells];for(;O.length<l.cols;)O.push({value:"",path:ys(A.path,O.length)});return le.jsx("tr",{children:O.map((j,q)=>{const Y=$[N]?.[q];return Y===null?null:le.jsx(U,{"data-node-path":j.path,colSpan:Y?.colSpan,rowSpan:Y?.rowSpan,children:le.jsx(gb,{cell:j,tablePath:t,documentPath:r,unlocked:s,onNavigate:n})},j.path)})},A.path)};let w=0;for(;w<l.rows.length&&l.rows[w].header;)w++;return le.jsxs("div",{className:"csv-scroll",children:[le.jsxs("table",{className:"csv-table yl-table",children:[i&&l.title!=null&&le.jsx("caption",{children:s?le.jsx(vb,{title:l.title,tablePath:t}):l.title}),w>0&&le.jsx("thead",{children:l.rows.slice(0,w).map((A,N)=>d(A,N))}),le.jsx("tbody",{children:l.rows.slice(w).map((A,N)=>d(A,w+N))})]}),h>0&&le.jsxs("p",{className:"yl-table-notice",children:["⚠ ",h," cell",h>1?"s":""," beyond the column count inferred from the first row (TABLE.md)"]})]})}function T8({node:e,onNavigate:t}){const r=_b(e.value,e.path),{unlocked:n}=ho();return le.jsxs("div",{className:"csv",children:[r.title!=null&&(n?le.jsx(vb,{title:r.title,tablePath:e.path}):le.jsx("h1",{className:"chapter-title",children:r.title})),e.description&&le.jsx("p",{className:"chapter-subtitle",children:e.description}),le.jsx(ec,{value:e.value,path:e.path,documentPath:e.documentPath,onNavigate:t})]})}function R8({chunk:e,onNavigate:t}){const[r,n]=ut.useState(null),[i,s]=ut.useState(null),l=Es(e.value)||Array.isArray(e.value);return ut.useEffect(()=>{if(l)return;let $=!1;return en(e.path,null).then(h=>!$&&n(h)).catch(h=>!$&&s(h.message)),()=>{$=!0}},[e.path,l]),l?le.jsx(ec,{value:e.value,path:e.path,documentPath:e.documentPath,onNavigate:t,caption:!0}):i?le.jsxs("p",{className:"csv-empty",children:["table failed to load: ",i]}):r?le.jsx(ec,{value:r.value,path:r.path,documentPath:r.documentPath??e.documentPath,onNavigate:t,caption:!0}):le.jsx("p",{className:"csv-empty",children:"…"})}const yb=()=>new URLSearchParams(window.location.search),bb=[{label:"UTF-8",value:"utf-8"},{label:"Windows-1251",value:"windows-1251"},{label:"CP866",value:"ibm866"},{label:"KOI8-R",value:"koi8-r"}],Rh="utf-8",z8=e=>bb.some(t=>t.value===e);function xb(){const e=yb().get("enc")??"";return z8(e)?e:Rh}function wb(e,t){try{return new TextDecoder(t).decode(e)}catch{return new TextDecoder("utf-8").decode(e)}}function kb(e){const[t,r]=ut.useState(null),[n,i]=ut.useState(null);return ut.useEffect(()=>{let s=!1;if(r(null),i(null),e!=null)return fetch(Pi(e)).then(l=>l.arrayBuffer()).then(l=>!s&&r(new Uint8Array(l))).catch(l=>!s&&i(String(l.message||l))),()=>{s=!0}},[e]),{bytes:t,error:n}}function N8({node:e}){const t=tv(e.concrete),r=t?null:vi(e.value),n=typeof r=="string"?r:t?null:"",{bytes:i,error:s}=kb(t?e.path:null),l=xb(),$=ut.useMemo(()=>n??(i?wb(i,l):null),[n,i,l]);return s?le.jsxs("div",{className:"error",children:["text: ",s]}):$==null?le.jsx("div",{className:"loading",children:"reading…"}):le.jsxs("div",{className:"text",children:[e.title&&le.jsx("h1",{className:"chapter-title",children:e.title}),e.description&&le.jsx("p",{className:"chapter-subtitle",children:e.description}),le.jsx("pre",{className:"plaintext",children:$})]})}function I8({chunk:e}){const{bytes:t,error:r}=kb(e.path),n=ut.useMemo(()=>t?wb(t,Rh):null,[t]);return r?le.jsxs("div",{className:"error",children:["text: ",r]}):n==null?le.jsx("div",{className:"loading",children:"reading…"}):le.jsx("pre",{className:"plaintext",children:n})}function q8({rerender:e}){const t=xb(),r=n=>{const i=yb();n&&n!==Rh?i.set("enc",n):i.delete("enc");const s=i.toString();window.history.replaceState({},"",window.location.pathname+(s?"?"+s:"")),e()};return le.jsxs("label",{className:"enc-control",children:["encoding"," ",le.jsx("select",{value:t,onChange:n=>r(n.target.value),children:bb.map(n=>le.jsx("option",{value:n.value,children:n.label},n.value))})]})}const M8={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:"Ÿ"},D8=e=>e<128?String.fromCharCode(e):M8[e]??String.fromCharCode(e),L8=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 F8(e){return e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">")}function j8(e){const t=[];let r=[],n={b:!1,i:!1,u:!1,uc:1};const i=[];let s=0,l=1/0;const $=e.length;let h=0;const d=()=>s<l,w=O=>{if(!O||!d())return;const j=r[r.length-1];j&&j.b===n.b&&j.i===n.i&&j.u===n.u?j.text+=O:r.push({text:O,b:n.b,i:n.i,u:n.u})},A=()=>{d()&&(t.push(r),r=[])},N=(O,j)=>{switch(O){case"b":n.b=j!==0;break;case"i":n.i=j!==0;break;case"ul":n.u=j!==0;break;case"ulnone":n.u=!1;break;case"uc":n.uc=j??1;break;case"par":case"row":A();break;case"line":case"sect":w(`
|
|
650
|
-
`);break;case"tab":case"cell":w(" ");break;case"pard":case"plain":n.b=n.i=n.u=!1;break;default:L8.has(O)&&(l=Math.min(l,s));break}};for(;h<$;){const O=e[h];if(O==="{")i.push({...n}),s++,h++;else if(O==="}")s--,s<l&&(l=1/0),n=i.pop()??n,h++;else if(O==="\\"){const j=e[h+1];if(j==="\\"||j==="{"||j==="}")w(j),h+=2;else if(j==="*")l=Math.min(l,s),h+=2;else if(j==="'"){const q=parseInt(e.substr(h+2,2),16);isNaN(q)||w(D8(q)),h+=4}else if(j==="~")w(" "),h+=2;else if(j==="-")h+=2;else if(/[a-zA-Z]/.test(j??"")){let q=h+1;for(;q<$&&/[a-zA-Z]/.test(e[q]);)q++;const Y=e.slice(h+1,q);let he="";for(e[q]==="-"&&(he+="-",q++);q<$&&/[0-9]/.test(e[q]);)he+=e[q++];const ne=he===""?null:parseInt(he,10);if(e[q]===" "&&q++,h=q,Y==="u"&&ne!==null){d()&&w(String.fromCodePoint(ne<0?ne+65536:ne));for(let _e=n.uc;_e>0&&h<$;_e--)if(e[h]==="\\"&&e[h+1]==="'")h+=4;else if(e[h]==="\\")h+=2;else{if(e[h]==="{"||e[h]==="}")break;h++}}else N(Y,ne)}else h++}else O==="\r"||O===`
|
|
651
|
-
`||w(O),h++}A();const U=O=>{let j=F8(O.text).replace(/\t/g," ").replace(/\n/g,"<br>");return O.u&&(j=`<u>${j}</u>`),O.i&&(j=`<em>${j}</em>`),O.b&&(j=`<strong>${j}</strong>`),j};return t.filter(O=>O.some(j=>j.text.trim()||j.text.includes(`
|
|
652
|
-
`))).map(O=>`<p>${O.map(U).join("")}</p>`).join(`
|
|
653
|
-
`)}function Sb(e){const[t,r]=ut.useState(null),[n,i]=ut.useState(null);return ut.useEffect(()=>{let s=!1;return r(null),i(null),fetch(Pi(e)).then(l=>l.arrayBuffer()).then(l=>{if(s)return;const $=new TextDecoder("windows-1252").decode(new Uint8Array(l));r(j8($))}).catch(l=>!s&&i(String(l.message||l))),()=>{s=!0}},[e]),{html:t,error:n}}function B8({node:e}){const{html:t,error:r}=Sb(e.path);return r?le.jsxs("div",{className:"error",children:["rtf: ",r]}):t==null?le.jsx("div",{className:"loading",children:"reading RTF…"}):le.jsxs("div",{className:"text",children:[e.title&&le.jsx("h1",{className:"chapter-title",children:e.title}),e.description&&le.jsx("p",{className:"chapter-subtitle",children:e.description}),le.jsx("div",{className:"markup",dangerouslySetInnerHTML:{__html:t}})]})}function P8({chunk:e}){const{html:t,error:r}=Sb(e.path);return r?le.jsxs("div",{className:"error",children:["rtf: ",r]}):t==null?le.jsx("div",{className:"loading",children:"reading RTF…"}):le.jsx("div",{className:"markup",dangerouslySetInnerHTML:{__html:t}})}function Eb({path:e}){return le.jsxs("div",{className:"office-fallback",children:[le.jsxs("p",{children:["Legacy ",le.jsx("code",{children:".doc"})," (Word 97–2003) isn’t rendered in the browser — the old binary format has no reliable client-side parser. Newer ",le.jsx("code",{children:".docx"})," files render in full."]}),le.jsxs("p",{children:[le.jsx("a",{className:"descend",href:Pi(e),download:!0,children:"⤓ Download the document"})," ","to open it in an office application."]})]})}function U8({node:e}){return le.jsxs("div",{className:"text",children:[e.title&&le.jsx("h1",{className:"chapter-title",children:e.title}),e.description&&le.jsx("p",{className:"chapter-subtitle",children:e.description}),le.jsx(Eb,{path:e.path})]})}function H8({chunk:e}){return le.jsx(Eb,{path:e.path})}var Gr=Uint8Array,An=Uint16Array,zh=Int32Array,Xc=new Gr([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]),Qc=new Gr([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]),z0=new Gr([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),Ab=function(e,t){for(var r=new An(31),n=0;n<31;++n)r[n]=t+=1<<e[n-1];for(var i=new zh(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}},Cb=Ab(Xc,2),Tb=Cb.b,N0=Cb.r;Tb[28]=258,N0[258]=28;var Rb=Ab(Qc,0),W8=Rb.b,h_=Rb.r,I0=new An(32768);for(var fr=0;fr<32768;++fr){var Xi=(fr&43690)>>1|(fr&21845)<<1;Xi=(Xi&52428)>>2|(Xi&13107)<<2,Xi=(Xi&61680)>>4|(Xi&3855)<<4,I0[fr]=((Xi&65280)>>8|(Xi&255)<<8)>>1}var mi=function(e,t,r){for(var n=e.length,i=0,s=new An(t);i<n;++i)e[i]&&++s[e[i]-1];var l=new An(t);for(i=1;i<t;++i)l[i]=l[i-1]+s[i-1]<<1;var $;if(r){$=new An(1<<t);var h=15-t;for(i=0;i<n;++i)if(e[i])for(var d=i<<4|e[i],w=t-e[i],A=l[e[i]-1]++<<w,N=A|(1<<w)-1;A<=N;++A)$[I0[A]>>h]=d}else for($=new An(n),i=0;i<n;++i)e[i]&&($[i]=I0[l[e[i]-1]++]>>15-e[i]);return $},bs=new Gr(288);for(var fr=0;fr<144;++fr)bs[fr]=8;for(var fr=144;fr<256;++fr)bs[fr]=9;for(var fr=256;fr<280;++fr)bs[fr]=7;for(var fr=280;fr<288;++fr)bs[fr]=8;var ao=new Gr(32);for(var fr=0;fr<32;++fr)ao[fr]=5;var V8=mi(bs,9,0),Y8=mi(bs,9,1),G8=mi(ao,5,0),K8=mi(ao,5,1),Y$=function(e){for(var t=e[0],r=1;r<e.length;++r)e[r]>t&&(t=e[r]);return t},Jn=function(e,t,r){var n=t/8|0;return(e[n]|e[n+1]<<8)>>(t&7)&r},G$=function(e,t){var r=t/8|0;return(e[r]|e[r+1]<<8|e[r+2]<<16)>>(t&7)},Nh=function(e){return(e+7)/8|0},Jc=function(e,t,r){return(t==null||t<0)&&(t=0),(r==null||r>e.length)&&(r=e.length),new Gr(e.subarray(t,r))},X8=["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"],Sn=function(e,t,r){var n=new Error(t||X8[e]);if(n.code=e,Error.captureStackTrace&&Error.captureStackTrace(n,Sn),!r)throw n;return n},Q8=function(e,t,r,n){var i=e.length,s=n?n.length:0;if(!i||t.f&&!t.l)return r||new Gr(0);var l=!r,$=l||t.i!=2,h=t.i;l&&(r=new Gr(i*3));var d=function(ft){var yt=r.length;if(ft>yt){var zt=new Gr(Math.max(yt*2,ft));zt.set(r),r=zt}},w=t.f||0,A=t.p||0,N=t.b||0,U=t.l,O=t.d,j=t.m,q=t.n,Y=i*8;do{if(!U){w=Jn(e,A,1);var he=Jn(e,A+1,3);if(A+=3,he)if(he==1)U=Y8,O=K8,j=9,q=5;else if(he==2){var be=Jn(e,A,31)+257,oe=Jn(e,A+10,15)+4,Ee=be+Jn(e,A+5,31)+1;A+=14;for(var te=new Gr(Ee),Ce=new Gr(19),de=0;de<oe;++de)Ce[z0[de]]=Jn(e,A+de*3,7);A+=oe*3;for(var k=Y$(Ce),Ae=(1<<k)-1,B=mi(Ce,k,1),de=0;de<Ee;){var pe=B[Jn(e,A,Ae)];A+=pe&15;var ne=pe>>4;if(ne<16)te[de++]=ne;else{var W=0,Fe=0;for(ne==16?(Fe=3+Jn(e,A,3),A+=2,W=te[de-1]):ne==17?(Fe=3+Jn(e,A,7),A+=3):ne==18&&(Fe=11+Jn(e,A,127),A+=7);Fe--;)te[de++]=W}}var fe=te.subarray(0,be),V=te.subarray(be);j=Y$(fe),q=Y$(V),U=mi(fe,j,1),O=mi(V,q,1)}else Sn(1);else{var ne=Nh(A)+4,_e=e[ne-4]|e[ne-3]<<8,Q=ne+_e;if(Q>i){h&&Sn(0);break}$&&d(N+_e),r.set(e.subarray(ne,Q),N),t.b=N+=_e,t.p=A=Q*8,t.f=w;continue}if(A>Y){h&&Sn(0);break}}$&&d(N+131072);for(var x=(1<<j)-1,f=(1<<q)-1,o=A;;o=A){var W=U[G$(e,A)&x],c=W>>4;if(A+=W&15,A>Y){h&&Sn(0);break}if(W||Sn(2),c<256)r[N++]=c;else if(c==256){o=A,U=null;break}else{var p=c-254;if(c>264){var de=c-257,m=Xc[de];p=Jn(e,A,(1<<m)-1)+Tb[de],A+=m}var E=O[G$(e,A)&f],T=E>>4;E||Sn(3),A+=E&15;var V=W8[T];if(T>3){var m=Qc[T];V+=G$(e,A)&(1<<m)-1,A+=m}if(A>Y){h&&Sn(0);break}$&&d(N+131072);var re=N+p;if(N<V){var je=s-V,nt=Math.min(V,re);for(je+N<0&&Sn(3);N<nt;++N)r[N]=n[je+N]}for(;N<re;++N)r[N]=r[N-V]}}t.l=U,t.p=o,t.b=N,t.f=w,U&&(w=1,t.m=j,t.d=O,t.n=q)}while(!w);return N!=r.length&&l?Jc(r,0,N):r.subarray(0,N)},ki=function(e,t,r){r<<=t&7;var n=t/8|0;e[n]|=r,e[n+1]|=r>>8},hl=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},K$=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:Nb,l:0};if(i==1){var l=new Gr(r[0].s+1);return l[r[0].s]=1,{t:l,l:1}}r.sort(function(Q,be){return Q.f-be.f}),r.push({s:-1,f:25001});var $=r[0],h=r[1],d=0,w=1,A=2;for(r[0]={s:-1,f:$.f+h.f,l:$,r:h};w!=i-1;)$=r[r[d].f<r[A].f?d++:A++],h=r[d!=w&&r[d].f<r[A].f?d++:A++],r[w++]={s:-1,f:$.f+h.f,l:$,r:h};for(var N=s[0].s,n=1;n<i;++n)s[n].s>N&&(N=s[n].s);var U=new An(N+1),O=q0(r[w-1],U,0);if(O>t){var n=0,j=0,q=O-t,Y=1<<q;for(s.sort(function(be,oe){return U[oe.s]-U[be.s]||be.f-oe.f});n<i;++n){var he=s[n].s;if(U[he]>t)j+=Y-(1<<O-U[he]),U[he]=t;else break}for(j>>=q;j>0;){var ne=s[n].s;U[ne]<t?j-=1<<t-U[ne]++-1:++n}for(;n>=0&&j;--n){var _e=s[n].s;U[_e]==t&&(--U[_e],++j)}O=t}return{t:new Gr(U),l:O}},q0=function(e,t,r){return e.s==-1?Math.max(q0(e.l,t,r+1),q0(e.r,t,r+1)):t[e.s]=r},p_=function(e){for(var t=e.length;t&&!e[--t];);for(var r=new An(++t),n=0,i=e[0],s=1,l=function(h){r[n++]=h},$=1;$<=t;++$)if(e[$]==i&&$!=t)++s;else{if(!i&&s>2){for(;s>138;s-=138)l(32754);s>2&&(l(s>10?s-11<<5|28690:s-3<<5|12305),s=0)}else if(s>3){for(l(i),--s;s>6;s-=6)l(8304);s>2&&(l(s-3<<5|8208),s=0)}for(;s--;)l(i);s=1,i=e[$]}return{c:r.subarray(0,n),n:t}},pl=function(e,t){for(var r=0,n=0;n<t.length;++n)r+=e[n]*t[n];return r},zb=function(e,t,r){var n=r.length,i=Nh(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},m_=function(e,t,r,n,i,s,l,$,h,d,w){ki(t,w++,r),++i[256];for(var A=K$(i,15),N=A.t,U=A.l,O=K$(s,15),j=O.t,q=O.l,Y=p_(N),he=Y.c,ne=Y.n,_e=p_(j),Q=_e.c,be=_e.n,oe=new An(19),Ee=0;Ee<he.length;++Ee)++oe[he[Ee]&31];for(var Ee=0;Ee<Q.length;++Ee)++oe[Q[Ee]&31];for(var te=K$(oe,7),Ce=te.t,de=te.l,k=19;k>4&&!Ce[z0[k-1]];--k);var Ae=d+5<<3,B=pl(i,bs)+pl(s,ao)+l,pe=pl(i,N)+pl(s,j)+l+14+3*k+pl(oe,Ce)+2*oe[16]+3*oe[17]+7*oe[18];if(h>=0&&Ae<=B&&Ae<=pe)return zb(t,w,e.subarray(h,h+d));var W,Fe,fe,V;if(ki(t,w,1+(pe<B)),w+=2,pe<B){W=mi(N,U,0),Fe=N,fe=mi(j,q,0),V=j;var x=mi(Ce,de,0);ki(t,w,ne-257),ki(t,w+5,be-1),ki(t,w+10,k-4),w+=14;for(var Ee=0;Ee<k;++Ee)ki(t,w+3*Ee,Ce[z0[Ee]]);w+=3*k;for(var f=[he,Q],o=0;o<2;++o)for(var c=f[o],Ee=0;Ee<c.length;++Ee){var p=c[Ee]&31;ki(t,w,x[p]),w+=Ce[p],p>15&&(ki(t,w,c[Ee]>>5&127),w+=c[Ee]>>12)}}else W=V8,Fe=bs,fe=G8,V=ao;for(var Ee=0;Ee<$;++Ee){var m=n[Ee];if(m>255){var p=m>>18&31;hl(t,w,W[p+257]),w+=Fe[p+257],p>7&&(ki(t,w,m>>23&31),w+=Xc[p]);var E=m&31;hl(t,w,fe[E]),w+=V[E],E>3&&(hl(t,w,m>>5&8191),w+=Qc[E])}else hl(t,w,W[m]),w+=Fe[m]}return hl(t,w,W[256]),w+Fe[256]},J8=new zh([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),Nb=new Gr(0),Z8=function(e,t,r,n,i,s){var l=s.z||e.length,$=new Gr(n+l+5*(1+Math.ceil(l/7e3))+i),h=$.subarray(n,$.length-i),d=s.l,w=(s.r||0)&7;if(t){w&&(h[0]=s.r>>3);for(var A=J8[t-1],N=A>>13,U=A&8191,O=(1<<r)-1,j=s.p||new An(32768),q=s.h||new An(O+1),Y=Math.ceil(r/3),he=2*Y,ne=function(_t){return(e[_t]^e[_t+1]<<Y^e[_t+2]<<he)&O},_e=new zh(25e3),Q=new An(288),be=new An(32),oe=0,Ee=0,te=s.i||0,Ce=0,de=s.w||0,k=0;te+2<l;++te){var Ae=ne(te),B=te&32767,pe=q[Ae];if(j[B]=pe,q[Ae]=B,de<=te){var W=l-te;if((oe>7e3||Ce>24576)&&(W>423||!d)){w=m_(e,h,0,_e,Q,be,Ee,Ce,k,te-k,w),Ce=oe=Ee=0,k=te;for(var Fe=0;Fe<286;++Fe)Q[Fe]=0;for(var Fe=0;Fe<30;++Fe)be[Fe]=0}var fe=2,V=0,x=U,f=B-pe&32767;if(W>2&&Ae==ne(te-f))for(var o=Math.min(N,W)-1,c=Math.min(32767,te),p=Math.min(258,W);f<=c&&--x&&B!=pe;){if(e[te+fe]==e[te+fe-f]){for(var m=0;m<p&&e[te+m]==e[te+m-f];++m);if(m>fe){if(fe=m,V=f,m>o)break;for(var E=Math.min(f,m-2),T=0,Fe=0;Fe<E;++Fe){var re=te-f+Fe&32767,je=j[re],nt=re-je&32767;nt>T&&(T=nt,pe=re)}}}B=pe,pe=j[B],f+=B-pe&32767}if(V){_e[Ce++]=268435456|N0[fe]<<18|h_[V];var ft=N0[fe]&31,yt=h_[V]&31;Ee+=Xc[ft]+Qc[yt],++Q[257+ft],++be[yt],de=te+fe,++oe}else _e[Ce++]=e[te],++Q[e[te]]}}for(te=Math.max(te,de);te<l;++te)_e[Ce++]=e[te],++Q[e[te]];w=m_(e,h,d,_e,Q,be,Ee,Ce,k,te-k,w),d||(s.r=w&7|h[w/8|0]<<3,w-=7,s.h=q,s.p=j,s.i=te,s.w=de)}else{for(var te=s.w||0;te<l+d;te+=65535){var zt=te+65535;zt>=l&&(h[w/8|0]=d,zt=l),w=zb(h,w+1,e.subarray(te,zt))}s.i=l}return Jc($,0,n+Nh(w)+i)},O8=function(e,t,r,n,i){if(!i&&(i={l:1},t.dictionary)){var s=t.dictionary.subarray(-32768),l=new Gr(s.length+e.length);l.set(s),l.set(e,s.length),e=l,i.w=s.length}return Z8(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)},$i=function(e,t){return e[t]|e[t+1]<<8},Fn=function(e,t){return(e[t]|e[t+1]<<8|e[t+2]<<16|e[t+3]<<24)>>>0},X$=function(e,t){return Fn(e,t)+Fn(e,t+4)*4294967296};function ek(e,t){return O8(e,t||{},0,0)}function tk(e,t){return Q8(e,{i:2},t&&t.out,t&&t.dictionary)}var M0=typeof TextDecoder<"u"&&new TextDecoder,rk=0;try{M0.decode(Nb,{stream:!0}),rk=1}catch{}var nk=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:Jc(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 D0(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(M0)return M0.decode(e);var i=nk(e),s=i.s,r=i.r;return r.length&&Sn(8),s}}var ik=function(e,t){return t+30+$i(e,t+26)+$i(e,t+28)},sk=function(e,t,r){var n=$i(e,t+28),i=$i(e,t+30),s=D0(e.subarray(t+46,t+46+n),!($i(e,t+8)&2048)),l=t+46+n,$=ak(e,l,i,r,Fn(e,t+20),Fn(e,t+24),Fn(e,t+42)),h=$[0],d=$[1],w=$[2];return[$i(e,t+10),h,d,s,l+i+$i(e,t+32),w]},ak=function(e,t,r,n,i,s,l){var $=i==4294967295,h=s==4294967295,d=l==4294967295,w=t+r,A=$+h+d;if(n&&A){for(;t+4<w;t+=4+$i(e,t+2))if($i(e,t)==1)return[$?X$(e,t+4+8*h):i,h?X$(e,t+4):s,d?X$(e,t+4+8*(h+$)):l,1];n<2&&Sn(13)}return[i,s,l,0]};function lk(e,t){for(var r={},n=e.length-22;Fn(e,n)!=101010256;--n)(!n||e.length-n>65558)&&Sn(13);var i=$i(e,n+8);if(!i)return{};var s=Fn(e,n+16),l=Fn(e,n-20)==117853008;if(l){var $=Fn(e,n-12);l=Fn(e,$)==101075792,l&&(i=Fn(e,$+32),s=Fn(e,$+48))}for(var h=0;h<i;++h){var d=sk(e,s,l),w=d[0],A=d[1],N=d[2],U=d[3],O=d[4],j=d[5],q=ik(e,j);s=O,w?w==8?r[U]=tk(e.subarray(q,q+A),{out:new Gr(N)}):Sn(14,"unknown compression type "+w):r[U]=Jc(e,q,q+A)}return r}const ok={},uk=ok?.VITE_PLANTUML_SERVER?.replace(/\/+$/,"")??"https://www.plantuml.com/plantuml";function Oo(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 Q$(e,t,r){const n=e>>2,i=(e&3)<<4|t>>4,s=(t&15)<<2|r>>6,l=r&63;return Oo(n&63)+Oo(i&63)+Oo(s&63)+Oo(l&63)}function ck(e){let t="";for(let r=0;r<e.length;r+=3)r+2===e.length?t+=Q$(e[r],e[r+1],0):r+1===e.length?t+=Q$(e[r],0,0):t+=Q$(e[r],e[r+1],e[r+2]);return t}function $k(e){const t=ek(new TextEncoder().encode(e),{level:9});return`${uk}/svg/${ck(t)}`}function Ib({source:e}){return le.jsx("div",{className:"filemedia",children:le.jsx("img",{className:"fileimage plantuml",src:$k(e),alt:"PlantUML diagram"})})}function fk({node:e}){return le.jsxs("div",{className:"text",children:[e.title&&le.jsx("h1",{className:"chapter-title",children:e.title}),e.description&&le.jsx("p",{className:"chapter-subtitle",children:e.description}),le.jsx(Ib,{source:String(vi(e.value)??"")})]})}function dk({chunk:e}){return le.jsx(Ib,{source:String(e.value??"")})}const hk={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"}},pk={"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 mk(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 tc(e,t,r){if(t==="x-yamlover-fragment")return{glyph:"",cls:"t-fmt frag-icon",title:"fragment"};if(t){const i=pk[t]??mk(t);if(i)return{glyph:i,cls:"t-fmt",title:t}}if(r==="dir")return{glyph:"📁",cls:"t-struct",title:"folder"};if(r==="dir/yamlover")return{glyph:"🗂️",cls:"t-struct",title:"yamlover folder"};const n=hk[e];return n?{glyph:n.glyph,cls:n.cls,title:e}:{glyph:"•",cls:"t-bin",title:e||"unknown"}}const _k="x-yamlover-board",gk=new Set(["x-yamlover-tag","x-yamlover-workflow","x-yamlover-board"]);function vk(e){return e.format===_k?!0:zn(e.value).some(([t])=>t==="workflow"||t==="lanes")}const yk=new Set(["cancelled","canceled","rejected","wontfix","won't-fix","dropped","declined","abandoned","duplicate","invalid"]),J$=e=>yk.has(e.toLowerCase()),Z$=(e,t)=>{const r=zn(e).find(([n])=>n===t)?.[1];return typeof r=="string"?r:typeof r=="number"?String(r):null},bk=e=>{const t=e.lastIndexOf(":");return t<0?e:e.slice(t+1)};function xk(e){return Xs(zn(e.value).find(([t])=>t==="workflow")?.[1])}function wk(e){const t=zn(e.value).find(([r])=>r==="lanes")?.[1];return Array.isArray(t)?t.map(r=>Array.isArray(r)?r.map(Xs).filter(n=>!!n):[]):null}const kk=new Set(["workflow","lanes","yamlover","tags"]);function Sk(e){return Ih(e).filter(t=>t.link&&!kk.has(t.key)).filter(t=>!(t.link.format&&gk.has(t.link.format))).map(t=>t.link.path)}function Ek(e){const t=zn(e).find(([i])=>i==="yamlover-annotations")?.[1],r=Array.isArray(t)?t:[],n=[];for(const i of r){const s=Xs(i)??Xs(zn(i).find(([l])=>l==="tag")?.[1]);s&&n.push(s)}return n}function Ak({node:e,onNavigate:t,openContextMenu:r}){const n=_o(Za),[i,s]=ut.useState([]),[l,$]=ut.useState([]),[h,d]=ut.useState(null),[w,A]=ut.useState(null),[N,U]=ut.useState(null),[O,j]=ut.useState(null),q=ut.useRef(null);ut.useEffect(()=>{let Ee=!1;return(async()=>{try{const te=xk(e),de=zn(e.value).some(([pe])=>pe==="lanes")?wk(await en(e.path,3)):null;let k=[];if(de)k=await Promise.all(de.map(async pe=>({tags:await Promise.all(pe.map(E0))})));else if(te){const pe=(await vw(te)).filter(fe=>!fe.initial),W=pe.filter(fe=>fe.next.length>0),Fe=pe.filter(fe=>fe.next.length===0);Fe.sort((fe,V)=>Number(J$(fe.label))-Number(J$(V.label))),k=[...W.map(fe=>({tags:[fe]})),...Fe.length?[{tags:Fe}]:[]]}const Ae=Sk(e),B=await Promise.all(Ae.map(async pe=>{const W=await en(pe,2);return{path:pe,title:W.title??bk(pe),priority:Z$(W.value,"priority"),assignee:Z$(W.value,"assignee"),due:Z$(W.value,"due"),tags:Ek(W.value)}}));if(Ee)return;s(k),$(B),d(null)}catch(te){Ee||d(String(te?.message||te))}})(),()=>{Ee=!0}},[e.path,n]);const Y=()=>i.map(Ee=>Ee.tags.map(te=>te.path)),he=Ee=>{R3(e.path,Ee).catch(te=>d(String(te?.message||te)))},ne=(Ee,te)=>{const Ce=Y();Ce[Ee]||(Ce[Ee]=[]),Ce[Ee].includes(te)||Ce[Ee].push(te),he(Ce)},_e=(Ee,te)=>{const Ce=Y().map((de,k)=>k===Ee?de.filter(Ae=>Ae!==te):de);he(Ce)},Q=()=>he([...Y(),[]]),be=Ee=>he(Y().filter((te,Ce)=>Ce!==Ee)),oe=async Ee=>{const te=w;if(A(null),U(null),!(!te||Ee===te.from))try{await Oy(te.task,te.from,Ee),$(Ce=>Ce.map(de=>de.path===te.task?{...de,tags:[...de.tags.filter(k=>k!==te.from),Ee]}:de))}catch(Ce){d(String(Ce?.message||Ce))}};return ut.useEffect(()=>{if(!O)return;const Ee=te=>{q.current?.contains(te.target)||j(null)};return document.addEventListener("mousedown",Ee),()=>document.removeEventListener("mousedown",Ee)},[O]),h?le.jsxs("div",{className:"board-error",children:["Board error: ",h]}):le.jsxs("div",{className:"board",children:[i.map((Ee,te)=>{const Ce=Ee.tags[0]?Vn({name:Ee.tags[0].label,color:Ee.tags[0].color}):"#6c7086",de=Ee.tags.reduce((k,Ae)=>k+l.filter(B=>B.tags.includes(Ae.path)).length,0);return le.jsxs("section",{className:"board-col",children:[le.jsxs("header",{className:"board-col-head",style:{borderTopColor:Ce},children:[le.jsxs("div",{className:"board-col-tags",children:[Ee.tags.length===1&&le.jsx(Hu,{tag:{path:Ee.tags[0].path,name:Ee.tags[0].label,color:Ee.tags[0].color},children:le.jsx("button",{type:"button",className:"tagtag on",style:gi(Vn({name:Ee.tags[0].label,color:Ee.tags[0].color})),onClick:()=>_e(te,Ee.tags[0].path),children:le.jsx("span",{className:"tt-label",children:Ee.tags[0].label})})}),le.jsx("button",{className:"board-lane-add",title:Ee.tags.length===0?"set this lane's tag":"add a sublane",onClick:k=>j({lane:te,x:k.clientX,y:k.clientY}),children:"+"})]}),le.jsx("span",{className:"board-col-count",children:de}),le.jsx("button",{className:"board-lane-del",title:"remove this lane",onClick:()=>be(te),children:"🗑"})]}),le.jsx("div",{className:"board-col-body",children:Ee.tags.map((k,Ae)=>{const B=l.filter(Fe=>Fe.tags.includes(k.path)),pe=Vn({name:k.label,color:k.color}),W=J$(k.label);return le.jsxs("div",{className:"board-group"+(Ae>0?" board-group-split":"")+(N===k.path?" board-group-over":""),onDragOver:Fe=>{w&&(Fe.preventDefault(),N!==k.path&&U(k.path))},onDrop:Fe=>{Fe.preventDefault(),oe(k.path)},children:[Ee.tags.length>1&&le.jsxs("div",{className:"board-group-head",children:[le.jsx("span",{className:"board-group-dot",style:gi(pe)}),le.jsx("span",{className:"board-group-title",children:k.label}),le.jsx("span",{className:"board-col-count",children:B.length}),le.jsx("button",{className:"board-group-del",title:"remove this sublane",onClick:()=>_e(te,k.path),children:"✕"})]}),le.jsx("div",{className:"board-group-cards",children:B.map(Fe=>le.jsxs("article",{className:"board-card"+(W?" board-card-negative":""),draggable:!0,onDragStart:()=>A({task:Fe.path,from:k.path}),onDragEnd:()=>{A(null),U(null)},onClick:()=>t(Fe.path),onContextMenu:r?fe=>{fe.preventDefault(),r(Fe.path,fe.clientX,fe.clientY)}:void 0,title:_i(Fe.path),style:{borderLeftColor:pe},children:[le.jsx("div",{className:"board-card-title",children:Fe.title}),le.jsxs("div",{className:"board-card-meta",children:[Fe.priority&&le.jsx("span",{className:"board-chip prio-"+Fe.priority,children:Fe.priority}),Fe.assignee&&le.jsxs("span",{className:"board-chip board-assignee",children:["@",Fe.assignee]}),Fe.due&&le.jsx("span",{className:"board-chip board-due",children:Fe.due.slice(0,10)})]})]},Fe.path))})]},k.path)})})]},te)}),le.jsx("button",{className:"board-add-lane",title:"add a lane",onClick:Q,children:"+ lane"}),O&&le.jsx(Gd,{menuRef:q,x:O.x,y:O.y,applied:[],mode:"create",onPick:Ee=>{ne(O.lane,Ee.path),j(null)},onClose:()=>j(null),title:_i(e.path)})]})}function Ck(e){const t=e.link;return t?t.format?t.format.replace(/^x-yamlover-/,"").replace(/^.*\//,""):Os(t.concrete)?"folder":t.type??t.kind??"":"scalar"}function Tk(e){const t=e.link;if(!t)return"";if(typeof t.count=="number")return`${t.count} item${t.count===1?"":"s"}`;if(typeof t.size=="number"){const r=["B","KB","MB","GB"];let n=t.size,i=0;for(;n>=1024&&i<r.length-1;)n/=1024,i++;return`${i===0?n:n.toFixed(1)} ${r[i]}`}return""}function Rk({members:e,onNavigate:t,openContextMenu:r}){const{seq:n,paths:i}=j5(Za),[s,l]=ut.useState({}),$=e.map(d=>d.link?.path).filter(d=>!!d),h=$.join("|");return ut.useEffect(()=>{let d=!1;return Promise.all($.map(w=>Ol(w).then(A=>[w,A]).catch(()=>[w,[]]))).then(w=>{d||l(Object.fromEntries(w))}),()=>{d=!0}},[h]),ut.useEffect(()=>{if(n===0)return;const d=$.filter(A=>i.some(N=>N===A||N.startsWith(A+":")));if(d.length===0)return;let w=!1;return Promise.all(d.map(A=>Ol(A).then(N=>[A,N]).catch(()=>[A,[]]))).then(A=>{w||l(N=>({...N,...Object.fromEntries(A)}))}),()=>{w=!0}},[n]),le.jsx("div",{className:"detailsview",children:le.jsxs("table",{className:"details",children:[le.jsx("thead",{children:le.jsxs("tr",{children:[le.jsx("th",{className:"details-name",children:"Name"}),le.jsx("th",{className:"details-kind",children:"Kind"}),le.jsx("th",{className:"details-tags",children:"Tags"}),le.jsx("th",{className:"details-size",children:"Size"})]})}),le.jsxs("tbody",{children:[e.map((d,w)=>{const A=d.link;if(!A)return null;const N=tc(A.type??A.kind,A.format??null,A.concrete),U=A.title??d.key,O=s[A.path]??[];return le.jsxs("tr",{className:"details-row",onClick:()=>t(A.path),onContextMenu:r&&!d.up?j=>{j.preventDefault(),r(A.path,j.clientX,j.clientY)}:void 0,title:_i(A.path),children:[le.jsxs("td",{className:"details-name",children:[le.jsx("span",{className:"details-icon "+N.cls,title:N.title,children:N.glyph}),le.jsx("span",{className:"details-label",children:U})]}),le.jsx("td",{className:"details-kind",children:Ck(d)}),le.jsx("td",{className:"details-tags",children:O.map((j,q)=>{if(!j.tag)return null;const Y=Vn({name:j.tag.name,color:j.tag.color});return le.jsx(Hu,{tag:j.tag,children:Pd(j.tag.path)?le.jsx(bv,{color:Y,title:""}):le.jsx("span",{className:"tagtag",style:gi(Y),children:j.tag.name})},q)})}),le.jsx("td",{className:"details-size",children:Tk(d)})]},`${A.path}#${w}`)}),e.length===0&&le.jsx("tr",{children:le.jsx("td",{className:"details-empty",colSpan:4,children:"empty"})})]})]})})}const zk="x-yamlover-annotation",Nk="$yamloverMixed",__={large:256,thumbnails:512};function Ik(e){return Object.entries(e??{}).map(([t,r])=>({key:t,link:Ir(r),up:!0})).filter(t=>t.link!=null)}function Ih(e){const t=e.value;if(Array.isArray(t))return t.map((n,i)=>({key:`[${i}]`,link:Ir(n),raw:n}));if(!t||typeof t!="object")return[];const r=t[Nk];return Object.keys(t).length===1&&r?.entries?r.entries.map((n,i)=>({key:n.key??`[${i}]`,link:Ir(n.value),raw:n.value})):Object.entries(t).map(([n,i])=>({key:n,link:Ir(i),raw:i}))}function qk(e){return[...Ik(e.relations),...Ih(e)]}function Mk(e,t){const r=Ih(e).filter(i=>i.link?.format!==zk),n=new Set(r.map(i=>i.link?.path).filter(Boolean));for(const i of t)n.has(i.path)||r.push({key:zc(i.path,i.title),link:i});return r}function Dk(e,t){return e.format===ta?Mk(e,t):qk(e)}function Lk(e){if(e==null)return"null";if(Array.isArray(e))return"array";const t=typeof e;return t==="object"?"object":t==="boolean"?"boolean":t==="number"?Number.isInteger(e)?"integer":"number":"string"}function g_(e){if(e==null)return"~";const t=String(e).split(`
|
|
654
|
-
`,1)[0];return t.length>80?t.slice(0,79)+"…":t}function Fk(e){return!!e&&(e.includes("/")||e.startsWith("x-yamlover-"))}function jk(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(),l=s.left+s.width/2,$=s.top+s.height/2,h=r==="ArrowDown";let d=t,w=1/0;for(let A=0;A<n;A++){const N=e[A];if(!N||A===t)continue;const U=N.getBoundingClientRect(),O=U.left+U.width/2,j=U.top+U.height/2;if(h?j<=$+1:j>=$-1)continue;const q=Math.abs(O-l)*2+Math.abs(j-$);q<w&&(w=q,d=A)}return d}function Bk(e,t){if(e.preview)return Kp(e.preview,t,t);const r=e.format??null;return!r||!r.startsWith("image/")?null:r==="image/svg+xml"?Pi(e.path):Kp(e.path,t,t)}function Pk({link:e,glyph:t,box:r}){const[n,i]=ut.useState(!1),s=n?null:Bk(e,r);return s?le.jsx("img",{className:"dirview-icon dirview-thumb",src:s,alt:"",loading:"lazy",onError:()=>i(!0)}):le.jsx("span",{className:"dirview-icon "+t.cls,title:t.title,children:t.glyph})}function Uk({it:e,active:t,view:r,setRef:n,onFocus:i,onNavigate:s,onContext:l}){const $=e.link,h=t?0:-1,d=$&&!e.up&&l?{onContextMenu:U=>{U.preventDefault(),l($.path,U.clientX,U.clientY)}}:{};if(!$){const U=tc(Lk(e.raw),null);return le.jsxs("span",{className:"dirview-item",ref:n,tabIndex:h,onFocus:i,children:[le.jsx("span",{className:"dirview-icon "+U.cls,title:U.title,children:U.glyph}),le.jsxs("span",{className:"dirview-label",children:[e.key,": ",g_(e.raw)]})]})}const w=tc($.type??$.kind,$.format??null,$.concrete),A=e.up?w3(e.key):$.title??e.key,N=$.format===ta?le.jsx("span",{className:"tagtag",style:gi(Vn({name:A,color:$.color})),children:A}):$.kind==="scalar"&&!Fk($.format)?le.jsxs(le.Fragment,{children:[A,": ",le.jsx("span",{className:"val",children:g_($.value)})]}):A;return le.jsxs("a",{className:"dirview-item"+(e.up?" dirview-up":""),href:$.path,title:_i($.path),ref:n,tabIndex:h,onFocus:i,onClick:U=>{U.preventDefault(),s($.path)},...d,children:[__[r]&&!e.up?le.jsx(Pk,{link:$,glyph:w,box:__[r]}):le.jsx("span",{className:"dirview-icon "+w.cls,title:w.title,children:w.glyph}),le.jsx("span",{className:"dirview-label",children:N})]})}function Hk({node:e,view:t,onNavigate:r}){const n=e.format===ta,[i,s]=ut.useState([]),l=_o(Za),{openAt:$,tagMenu:h}=Kd();ut.useEffect(()=>{if(s([]),!n)return;let he=!1;return A3(e.path).then(ne=>{he||s(ne.map(Ir).filter(_e=>_e!=null))}).catch(()=>{}),()=>{he=!0}},[e.path,n,l]);const d=Dk(e,i),w=ut.useRef(null),A=ut.useRef([]);A.current.length=d.length;const[N,U]=ut.useState(0);ut.useEffect(()=>{N>d.length-1&&U(Math.max(0,d.length-1))},[d.length,N]);const O=ut.useRef(!0);ut.useEffect(()=>{U(0),O.current=!0},[e.path]),ut.useEffect(()=>{!O.current||!d.length||(O.current=!1,!w.current?.closest(".chunk-body")&&A.current[0]?.focus({preventScroll:!0}))},[d.length,e.path]);const j=he=>{if(he.ctrlKey||he.altKey||he.metaKey||!d.length)return;if(he.key==="Enter"){const _e=d[N]?.link;_e&&(he.preventDefault(),r(_e.path));return}if(!/^(Arrow(Up|Down|Left|Right)|Home|End)$/.test(he.key))return;he.preventDefault();const ne=jk(A.current,N,he.key,d.length);ne!==N&&(U(ne),A.current[ne]?.focus())};if(t==="board")return le.jsxs(le.Fragment,{children:[h,le.jsx(Ak,{node:e,onNavigate:r,openContextMenu:$})]});if(t==="details")return le.jsxs(le.Fragment,{children:[h,le.jsx(Rk,{members:d,onNavigate:r,openContextMenu:$})]});const q=(n?wv(e.value):null)??e.description,Y="dirview"+(t!=="small"?" dirview-lg":"")+(t==="thumbnails"?" dirview-thumbs":"");return le.jsxs("div",{className:"explorerview",children:[h,q&&le.jsx("div",{className:"dirhead",children:le.jsx("p",{className:"tagdesc",children:q})}),le.jsxs("div",{ref:w,className:Y,onKeyDown:j,children:[d.map((he,ne)=>le.jsx(Uk,{it:he,active:ne===N,view:t,setRef:_e=>{A.current[ne]=_e},onFocus:()=>U(ne),onNavigate:r,onContext:$},`${he.up?"^":""}${he.link?.path??he.key}#${ne}`)),d.length===0&&le.jsx("span",{className:"dirview-empty",children:"empty"})]})]})}const qb="http://www.w3.org/1999/xlink",Wk=new RegExp("[\\u0000-\\u0008\\u000B\\u000C\\u000E-\\u001F]","g");function Vk(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(Wk,"")}function Yk(e){return e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">")}function Mb(e,t){if(e.nodeType===3)return Yk(e.textContent||"");if(e.nodeType!==1)return"";const r=e,n=()=>Array.from(r.childNodes).map(i=>Mb(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(qb,"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 v_({node:e}){const[t,r]=ut.useState(null),[n,i]=ut.useState(null);return ut.useEffect(()=>{let s=!1;return r(null),i(null),fetch(Pi(e.path)).then(l=>l.arrayBuffer()).then(l=>{if(s)return;const $=new DOMParser().parseFromString(Vk(l),"application/xml"),h=$.getElementsByTagName("parsererror")[0];if(h)throw new Error(h.textContent?.trim().split(`
|
|
655
|
-
`)[0]||"invalid FB2 XML");const d=new Map;for(const ne of Array.from($.getElementsByTagNameNS("*","binary"))){const _e=ne.getAttribute("id");if(_e){const Q=ne.getAttribute("content-type")||"image/jpeg";d.set(_e,`data:${Q};base64,${(ne.textContent||"").replace(/\s+/g,"")}`)}}const w=$.getElementsByTagNameNS("*","title-info")[0],A=(ne,_e)=>ne?.getElementsByTagNameNS("*",_e)[0]?.textContent?.trim()||"",N=A(w,"book-title")||void 0,U=w&&Array.from(w.getElementsByTagNameNS("*","author")).map(ne=>[A(ne,"first-name"),A(ne,"middle-name"),A(ne,"last-name")].filter(Boolean).join(" ")||A(ne,"nickname")).filter(Boolean).join(", "),O=w?.getElementsByTagNameNS("*","coverpage")[0]?.getElementsByTagNameNS("*","image")[0],j=(O?.getAttributeNS(qb,"href")||O?.getAttribute("l:href")||"").replace(/^#/,""),q=Array.from($.getElementsByTagNameNS("*","body")),Y=q.find(ne=>ne.getAttribute("name")!=="notes")||q[0],he=Y?Array.from(Y.childNodes).map(ne=>Mb(ne,d)).join(""):"";r({title:N,author:U||void 0,cover:j?d.get(j):void 0,html:he})}).catch(l=>!s&&i(String(l.message||l))),()=>{s=!0}},[e.path]),n?le.jsxs("div",{className:"error",children:["fb2: ",n]}):t?le.jsxs("div",{className:"text fb2",children:[t.cover&&le.jsx("img",{className:"fb2-cover",src:t.cover,alt:""}),t.title&&le.jsx("h1",{className:"chapter-title",children:t.title}),t.author&&le.jsx("p",{className:"chapter-subtitle",children:t.author}),le.jsx("div",{className:"markup fb2-body",dangerouslySetInnerHTML:{__html:t.html}})]}):le.jsx("div",{className:"loading",children:"loading FB2…"})}const y_="http://www.w3.org/1999/xlink";function O$(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 b_(e){const t=e.lastIndexOf("/");return t<0?"":e.slice(0,t)}function x_({node:e}){const[t,r]=ut.useState(null),[n,i]=ut.useState(null);return ut.useEffect(()=>{let s=!1;const l=[];return r(null),i(null),fetch(Pi(e.path)).then($=>$.arrayBuffer()).then($=>{if(s)return;const h=lk(new Uint8Array($)),d=oe=>h[oe]?D0(h[oe]):"",w=oe=>new DOMParser().parseFromString(d(oe),"application/xml"),A=w("META-INF/container.xml").getElementsByTagNameNS("*","rootfile")[0]?.getAttribute("full-path");if(!A||!h[A])throw new Error("no OPF package document");const N=w(A),U=b_(A),O=new Map,j=(oe,Ee="")=>{if(!h[oe])return"";const te=O.get(oe);if(te)return te;const Ce=URL.createObjectURL(new Blob([h[oe]],{type:Ee}));return O.set(oe,Ce),l.push(Ce),Ce},q=N.getElementsByTagNameNS("*","title")[0]?.textContent?.trim(),Y=Array.from(N.getElementsByTagNameNS("*","creator")).map(oe=>oe.textContent?.trim()).filter(Boolean).join(", "),he=new Map;for(const oe of Array.from(N.getElementsByTagNameNS("*","item"))){const Ee=oe.getAttribute("id"),te=oe.getAttribute("href");Ee&&te&&he.set(Ee,{path:O$(U,te),type:oe.getAttribute("media-type")||""})}const ne=Array.from(N.getElementsByTagNameNS("*","meta")).find(oe=>oe.getAttribute("name")==="cover")?.getAttribute("content"),_e=ne?he.get(ne):void 0,Q=_e?j(_e.path,_e.type):void 0,be=[];for(const oe of Array.from(N.getElementsByTagNameNS("*","itemref"))){const Ee=he.get(oe.getAttribute("idref")||"");if(!Ee||!/html/.test(Ee.type)||!h[Ee.path])continue;const te=b_(Ee.path),de=new DOMParser().parseFromString(D0(h[Ee.path]),"text/html").body;if(de){de.querySelectorAll("script, style, link").forEach(k=>k.remove());for(const k of Array.from(de.querySelectorAll("img"))){const Ae=k.getAttribute("src"),B=Ae?j(O$(te,Ae)):"";B?k.setAttribute("src",B):k.removeAttribute("src")}for(const k of Array.from(de.querySelectorAll("image"))){const Ae=k.getAttributeNS(y_,"href")||k.getAttribute("href")||k.getAttribute("xlink:href"),B=Ae?j(O$(te,Ae)):"";B&&k.setAttributeNS(y_,"xlink:href",B)}be.push(`<section class="epub-doc">${de.innerHTML}</section>`)}}if(s){l.forEach(URL.revokeObjectURL);return}r({title:q,author:Y||void 0,cover:Q,html:be.join(`
|
|
656
|
-
`)})}).catch($=>!s&&i(String($.message||$))),()=>{s=!0,l.forEach(URL.revokeObjectURL)}},[e.path]),n?le.jsxs("div",{className:"error",children:["epub: ",n]}):t?le.jsxs("div",{className:"text epub",children:[t.cover&&le.jsx("img",{className:"fb2-cover",src:t.cover,alt:""}),t.title&&le.jsx("h1",{className:"chapter-title",children:t.title}),t.author&&le.jsx("p",{className:"chapter-subtitle",children:t.author}),le.jsx("div",{className:"markup epub-body",dangerouslySetInnerHTML:{__html:t.html}})]}):le.jsx("div",{className:"loading",children:"unpacking EPUB…"})}function w_({node:e}){return le.jsx("iframe",{className:"filehtml",src:Pi(e.path),sandbox:"allow-same-origin",title:e.title??_i(e.path)})}const k_=ut.lazy(()=>Mn(()=>import("./pdf-DYI9E6LP.js"),__vite__mapDeps([0,1,2])).then(e=>({default:e.PdfView}))),S_=ut.lazy(()=>Mn(()=>import("./djvu-DNElocuz.js"),__vite__mapDeps([3,1])).then(e=>({default:e.DjvuView}))),E_=ut.lazy(()=>Mn(()=>import("./psd-CmNn7r6o.js"),__vite__mapDeps([4,5,6,7,8])).then(e=>({default:e.PsdView}))),A_=ut.lazy(()=>Mn(()=>import("./tiff-BoTWsGfS.js"),__vite__mapDeps([9,10,5,6,7,8])).then(e=>({default:e.TiffView}))),C_=ut.lazy(()=>Mn(()=>import("./heic-CZ82O7cO.js"),__vite__mapDeps([11,5,6,7,8])).then(e=>({default:e.HeicView}))),Gk=ut.lazy(()=>Mn(()=>import("./docx-C3gzsgKj.js"),__vite__mapDeps([12,10])).then(e=>({default:e.DocxView}))),Kk=ut.lazy(()=>Mn(()=>import("./docx-C3gzsgKj.js"),__vite__mapDeps([12,10])).then(e=>({default:e.DocxChunk}))),Xk=ut.lazy(()=>Mn(()=>import("./spreadsheet-DQ1DIIfm.js"),[]).then(e=>({default:e.SpreadsheetView}))),Qk=ut.lazy(()=>Mn(()=>import("./spreadsheet-DQ1DIIfm.js"),[]).then(e=>({default:e.SpreadsheetChunk}))),Jk=ut.lazy(()=>Mn(()=>import("./map-Byy6U5tc.js"),__vite__mapDeps([13,7,8])).then(e=>({default:e.MapView}))),Zk=ut.lazy(()=>Mn(()=>import("./map-Byy6U5tc.js"),__vite__mapDeps([13,7,8])).then(e=>({default:e.MapChunk}))),Ok=ut.lazy(()=>Mn(()=>import("./imagemap-B0by6U04.js"),__vite__mapDeps([6,7,8])).then(e=>({default:e.ImageView}))),e9=ut.lazy(()=>Mn(()=>import("./imagemap-B0by6U04.js"),__vite__mapDeps([6,7,8])).then(e=>({default:e.ImageChunk}))),Ur=e=>le.jsx(ut.Suspense,{fallback:le.jsx("div",{className:"loading",children:"…"}),children:e}),Qi=e=>({path:e.path,type:e.type,format:e.format,concrete:null,title:null,description:null,value:e.value}),t9=e=>({valueType:e.valueType??null,format:e.format??null,hasKeyed:!!e.hasKeyed,hasOrdinal:!!e.hasOrdinal}),$r=(...e)=>t=>t.format!==null&&e.includes(t.format),xl=(e,t,r,n)=>({name:e,label:t,icon:r,accepts:$r("x-yamlover-tag","x-yamlover-board"),specificity:2,render:(i,s)=>le.jsx(Hk,{node:i,view:n,onNavigate:s})}),Db=xl("tag-board","tag board","▥","board"),L0=[xl("thumbnails","thumbnails","🖼️","thumbnails"),xl("large-icons","large icons","⊞","large"),xl("small-icons","small icons","∷","small"),xl("details","details","☰","details")],Ma=L0.find(e=>e.name==="large-icons"),Lb=[{name:"chapter",icon:"§",accepts:$r("x-yamlover-chapter"),specificity:2,depth:1,tocView:T_,render:(e,t)=>le.jsx(Ky,{node:e,onNavigate:t}),config:e=>le.jsx(Qo,{rerender:e})},{name:"task",icon:"☑",accepts:$r("x-yamlover-task"),specificity:2,depth:1,tocView:T_,render:(e,t)=>le.jsx(bw,{node:e,onNavigate:t}),config:e=>le.jsx(Qo,{rerender:e})},{name:"marklower",icon:"✍",accepts:$r("text/marklower"),specificity:2,render:(e,t)=>le.jsx(Ax,{node:e,onNavigate:t}),renderChunk:(e,t)=>le.jsx(zy,{chunk:e,onNavigate:t})},{name:"markdown",icon:"📝",accepts:$r("text/markdown"),specificity:2,render:(e,t)=>le.jsx($8,{node:e,onNavigate:t}),renderChunk:(e,t)=>le.jsx(f8,{chunk:e,onNavigate:t}),config:e=>le.jsx(Qo,{rerender:e})},{name:"asciidoc",icon:"📃",accepts:$r("text/asciidoc"),specificity:2,render:(e,t)=>le.jsx(_8,{node:e,onNavigate:t}),renderChunk:(e,t)=>le.jsx(g8,{chunk:e,onNavigate:t}),config:e=>le.jsx(Qo,{rerender:e})},{name:"csv",icon:"▦",accepts:$r("text/csv","text/tab-separated-values"),specificity:2,render:e=>le.jsx(b8,{node:e}),renderChunk:e=>le.jsx(w8,{chunk:e}),config:e=>le.jsx(x8,{rerender:e})},{name:"table",icon:"▤",accepts:$r("x-yamlover-table"),specificity:2,depth:null,render:(e,t)=>le.jsx(T8,{node:e,onNavigate:t}),renderChunk:(e,t)=>le.jsx(R8,{chunk:e,onNavigate:t})},{name:"plaintext",icon:"🗒️",accepts:$r("text/plain"),specificity:2,render:e=>le.jsx(N8,{node:e}),renderChunk:e=>le.jsx(I8,{chunk:e}),config:e=>le.jsx(q8,{rerender:e})},{name:"rtf",icon:"📄",accepts:$r("application/rtf"),specificity:2,render:e=>le.jsx(B8,{node:e}),renderChunk:e=>le.jsx(P8,{chunk:e})},{name:"docx",icon:"📄",accepts:$r("application/vnd.openxmlformats-officedocument.wordprocessingml.document"),specificity:2,render:e=>Ur(le.jsx(Gk,{node:e})),renderChunk:e=>Ur(le.jsx(Kk,{chunk:e}))},{name:"spreadsheet",icon:"▦",accepts:$r("application/vnd.openxmlformats-officedocument.spreadsheetml.sheet","application/vnd.ms-excel"),specificity:2,render:e=>Ur(le.jsx(Xk,{node:e})),renderChunk:e=>Ur(le.jsx(Qk,{chunk:e}))},{name:"doc",icon:"📄",accepts:$r("application/msword"),specificity:2,render:e=>le.jsx(U8,{node:e}),renderChunk:e=>le.jsx(H8,{chunk:e})},{name:"map",icon:"🗺️",accepts:$r("application/vnd.google-earth.kml+xml","application/vnd.google-earth.kmz"),specificity:2,render:e=>Ur(le.jsx(Jk,{node:e})),renderChunk:(e,t)=>Ur(le.jsx(Zk,{chunk:e,onNavigate:t}))},{name:"latex",icon:"∑",accepts:$r("text/x-latex"),specificity:2,render:e=>le.jsx($x,{node:e}),renderChunk:e=>le.jsx(fx,{chunk:e})},{name:"plantuml",icon:"📊",accepts:$r("text/x-plantuml"),specificity:2,render:e=>le.jsx(fk,{node:e}),renderChunk:e=>le.jsx(dk,{chunk:e})},Ma,{name:"image",icon:"🖼️",accepts:$r("image/png","image/jpeg","image/gif","image/webp","image/avif","image/bmp","image/x-icon","image/svg+xml"),specificity:2,render:e=>Ur(le.jsx(Ok,{node:e})),renderChunk:(e,t)=>Ur(le.jsx(e9,{chunk:e,onNavigate:t}))},{name:"html",icon:"🌐",accepts:$r("text/html"),specificity:2,render:e=>le.jsx(w_,{node:e}),renderChunk:e=>le.jsx(w_,{node:Qi(e)})},{name:"fb2",icon:"📘",accepts:$r("application/x-fictionbook+xml"),specificity:2,render:e=>le.jsx(v_,{node:e}),renderChunk:e=>le.jsx(v_,{node:Qi(e)})},{name:"epub",icon:"📗",accepts:$r("application/epub+zip"),specificity:2,render:e=>le.jsx(x_,{node:e}),renderChunk:e=>le.jsx(x_,{node:Qi(e)})},{name:"pdf",icon:"📕",accepts:$r("application/pdf"),specificity:2,render:e=>Ur(le.jsx(k_,{node:e})),renderChunk:e=>Ur(le.jsx(k_,{node:Qi(e)}))},{name:"djvu",icon:"📓",accepts:$r("image/vnd.djvu"),specificity:2,render:e=>Ur(le.jsx(S_,{node:e})),renderChunk:e=>Ur(le.jsx(S_,{node:Qi(e)}))},{name:"psd",icon:"🎨",accepts:$r("image/vnd.adobe.photoshop"),specificity:2,render:e=>Ur(le.jsx(E_,{node:e})),renderChunk:(e,t)=>Ur(le.jsx(E_,{node:Qi(e),chunk:{onNavigate:t}}))},{name:"tiff",icon:"🖼️",accepts:$r("image/tiff"),specificity:2,render:e=>Ur(le.jsx(A_,{node:e})),renderChunk:(e,t)=>Ur(le.jsx(A_,{node:Qi(e),chunk:{onNavigate:t}}))},{name:"heic",icon:"🖼️",accepts:$r("image/heic"),specificity:2,render:e=>Ur(le.jsx(C_,{node:e})),renderChunk:(e,t)=>Ur(le.jsx(C_,{node:Qi(e),chunk:{onNavigate:t}}))}];function T_(e){if(e.children.length===0)return{children:[],expandable:e.hasChildren,loaded:!1,loadDepth:2};const t=e.children.filter(r=>yh(r.format));return{children:t,expandable:t.length>0,loaded:!0,loadDepth:2}}function il(e){const t=t9(e);let r=null;for(const n of Lb)n.accepts(t)&&(r===null||n.specificity>r.specificity)&&(r=n);return r}function r9(e){return vk(e)?[Db,...L0]:L0}function ef(e){const t=[],r=il(e);return r&&r!==Ma&&t.push(r),(r===Ma||i9(e))&&t.push(...r9(e)),t}const n9=new Set(["object","array","mixed","variant"]),Fb=e=>!!e.type&&n9.has(e.type);function i9(e){const t=e.concrete;return(Os(t)||bc(t)||nv(t))&&Fb(e)}const R_=Lb.find(e=>e.name==="plaintext");function tf(e){return Os(e.concrete)||il(e)===R_||!(bc(e.concrete)||nv(e.concrete)||e.format==="text/markdown"||e.format==="text/asciidoc")?null:tv(e.concrete)||typeof vi(e.value)=="string"?R_:null}function pu(e,t){const r=il(e);return r&&r!==Ma?r.name:r===Ma||Os(t)&&Fb(e)?e.format==="x-yamlover-board"?Db.name:Ma.name:null}function jb(e){const t=il(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 s9=ut.memo(function e({node:t,current:r,onSelect:n,onLoadChildren:i,onContext:s,depth:l=0}){const{children:$,expandable:h,loaded:d,loadDepth:w}=jb(t),[A,N]=ut.useState(l===0),[U,O]=ut.useState(!1),j=t.path===r,q=Nl(t.path,r),Y=ut.useRef(null);ut.useEffect(()=>{q&&N(!0)},[q]),ut.useEffect(()=>{j&&Y.current?.scrollIntoView?.({block:"nearest",inline:"nearest"})},[j]);const he=tc(t.type,t.format,t.concrete),ne=A&&he.glyph==="📁"?"📂":he.glyph,_e=async()=>{if(!A&&h&&!d){O(!0);try{await i(t.path,w)}finally{O(!1)}}N(Q=>!Q)};return le.jsxs("div",{className:"tree-branch",children:[le.jsxs("div",{ref:Y,className:"tree-row"+(j?" selected":""),style:{paddingLeft:l*14+4},onContextMenu:s?Q=>{Q.preventDefault(),s(t,Q.clientX,Q.clientY)}:void 0,children:[h?le.jsx("button",{className:"toggle"+(A?" open":"")+(U?" loading":""),onClick:_e,"aria-label":A?"collapse":"expand",children:le.jsx("span",{className:"chevron",children:"›"})}):le.jsx("span",{className:"toggle leaf"}),le.jsx("span",{className:"icon "+he.cls,title:he.title,children:ne}),le.jsx("span",{className:"tree-label",onClick:()=>n(t.path),title:`${_i(t.path)} (${t.type})`,children:t.label})]}),A&&$.map(Q=>le.jsx(e,{node:Q,current:r,onSelect:n,onLoadChildren:i,onContext:s,depth:l+1},Q.path))]})});function a9({tasks:e}){return e.length?le.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,l=n?`${r}/${n}`:t.state==="running"&&r>0?String(r):"";return le.jsxs("span",{className:`task-chip ${t.state}`,title:t.error??i??t.label,children:[le.jsxs("span",{className:"task-label",children:[t.label,l&&le.jsxs("span",{className:"task-counts",children:[" ",l]}),t.state==="error"&&" — failed"]}),le.jsx("span",{className:"task-bar",children:s!==null?le.jsx("span",{className:"task-bar-fill",style:{width:`${s}%`}}):le.jsx("span",{className:"task-bar-fill indeterminate"})})]},t.id)})}):null}function l9(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 o9(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 u9(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,`
|
|
657
|
-
`),"text/html").querySelector("blockquote"),s=i?.querySelector("p")?.textContent?.trim();if(!s)throw new Error("no tweet text in the oEmbed payload");const l=(r.author_url??"").split("/").filter(Boolean).pop(),$=i?Array.from(i.querySelectorAll(":scope > a")):[],h=$[$.length-1]?.textContent?.trim(),d=[r.author_name,l&&`@${l}`].filter(Boolean).join(" "),w=[d&&`— ${d}`,h].filter(Boolean).join(", ");return[s,"",[w,r.url??e].filter(Boolean).join(`
|
|
658
|
-
`)].join(`
|
|
659
|
-
`)}const c9=new Set(["script","style","noscript","template","svg","head","title"]),$9=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 f9(e){const t=new DOMParser().parseFromString(e,"text/html"),r=p9(d9(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 l={title:s.text||"Untitled",chunks:[],children:[]};i[i.length-1].node.children.push(l),i.push({node:l,level:s.level})}else i[i.length-1].node.chunks.push(s.kind==="image"?{image:{url:s.url,alt:s.alt}}:s.kind==="embed"?{text:`*[${s.label}](${s.target})`}:{text:s.text});return n}function d9(e){const t=[];let r="";const n=()=>{const s=r.replace(/[ \t]+/g," ").replace(/ ?\n ?/g,`
|
|
660
|
-
`).replace(/\n{2,}/g,`
|
|
661
|
-
`).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 l=s.tagName.toLowerCase();if(!c9.has(l)){if(/^h[1-6]$/.test(l)){n(),t.push({kind:"heading",level:Number(l[1]),text:(s.textContent??"").replace(/\[edit\]/gi,"").trim()});return}if(l==="img"){n();const $=h9(s);$&&t.push({kind:"image",url:$,alt:s.getAttribute("alt")??""});return}if(l==="iframe"||l==="video"||l==="audio"){const $=Ny(s);$&&Sy($)&&(n(),t.push({kind:"embed",target:$,label:s.getAttribute("title")??""}));return}if(l==="li"){n(),s.childNodes.forEach(i);const $=r.replace(/\s+/g," ").trim();r="",$&&t.push({kind:"text",text:"- "+$});return}if(l==="pre"){n();const $=(s.textContent??"").replace(/\n+$/,"");$.trim()&&t.push({kind:"text",text:"```\n"+$+"\n```"});return}if(l==="blockquote"){n(),s.childNodes.forEach(i);const $=r.trim();r="",$&&t.push({kind:"text",text:$.split(`
|
|
662
|
-
`).map(h=>"> "+h).join(`
|
|
663
|
-
`)});return}if(l==="br"){r+=`
|
|
664
|
-
`;return}if(l==="td"||l==="th"){s.childNodes.forEach(i),r+=" ";return}if($9.has(l)){n(),s.childNodes.forEach(i),n();return}if(!s.querySelector("img")){r+=dh(s);return}s.childNodes.forEach(i)}};return i(e),n(),t}function h9(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 p9(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+=`
|
|
665
|
-
`+r.text:t.push(r)}return t}const m9={"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 Bb(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:_9(t.image.url,n.type),contentBase64:await g9(n)}}}catch{return{text:`*[${t.image.alt}](${t.image.url})`}}})),children:await Promise.all(e.children.map(Bb))}}function _9(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+="."+(m9[t]||"bin")),r}function g9(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 Pb(e){return e.chunks.filter(t=>"image"in t).length+e.children.reduce((t,r)=>t+Pb(r),0)}const Ub=1,Hb=()=>new URLSearchParams(window.location.search);function qh(e){const t=e.trim().toLowerCase();return t===".inf"||t==="inf"}function z_(e){if(qh(e))return!0;const t=Number(e);return e.trim()!==""&&Number.isInteger(t)&&t>=Ub}function F0(){const e=Hb().get("depth");if(e==null||e===""||qh(e))return null;const t=Number(e);return Number.isInteger(t)&&t>=Ub?t:null}function v9(e){const t=Hb();e==null?t.delete("depth"):t.set("depth",String(e));const r=t.toString();window.history.replaceState({},"",window.location.pathname+(r?"?"+r:""))}function y9({onChange:e}){const t=F0(),r=t==null?".inf":String(t),[n,i]=ut.useState(r);ut.useEffect(()=>i(r),[r]);const s=z_(n);return le.jsx("input",{className:"depth-control"+(s?"":" invalid"),type:"text",title:"depth",value:n,onChange:l=>{const $=l.target.value;i($),z_($)&&(v9(qh($)?null:Number($)),e())}})}const b9=new Set(["chapter","markdown","asciidoc","marklower"]),x9=new Set(["chapter","task","table"]),Wb=["yamlover","json5p","yamlover/schema"],Si="yamlover",rf=e=>e.endsWith("schema"),N_=e=>e==="json5p"?"json":"yaml";function nf(e){return bc(e.concrete)?["yamlover","json5p","yamlover/schema"]:["yamlover","yamlover/schema"]}function sf(e,t,r){return r.includes(e)?e:pu(t,t.concrete)??Si}function w9(e,t){return e!=="yamlover"||t.type==="binary"||t.valueType==="binary"?!1:!U3(t.concrete)&&!Os(t.concrete)}function k9(e){const t=jr(e),r=t[t.length-1];return r===void 0?"":typeof r=="number"?`[${r}]`:r}const S9=ut.memo(function({path:t,format:r,refreshSignal:n=0,onFormat:i,onNavigate:s,onContentChanged:l,onOpenUploaded:$}){const[h,d]=ut.useState(null),[w,A]=ut.useState(null),[N,U]=ut.useState(null),[O,j]=ut.useState(null),[q,Y]=ut.useState(0),[he,ne]=ut.useState(!1),[_e,Q]=ut.useState(null),[be,oe]=ut.useState(!1),Ee=ut.useRef(t),[,te]=ut.useReducer(vt=>vt+1,0),Ce=Yd(t);Rc(h);const de=ut.useRef(!1);ut.useEffect(()=>{const vt=mt=>{de.current&&(mt.key==="F2"&&!he?(mt.preventDefault(),ne(!0)):mt.key==="Escape"&&he&&(mt.preventDefault(),ne(!1)))};return document.addEventListener("keydown",vt),()=>document.removeEventListener("keydown",vt)},[he]),ut.useEffect(()=>{const vt=Ee.current!==t;if(he&&!vt)return;j(null),vt&&(d(null),Ee.current=t);let mt=!1;return en(t).then(xt=>{if(mt)return;const St=ef(xt),Oe=tf(xt),ze=[...St.map(Me=>Me.name),...nf(xt),...Oe?[Oe.name]:[]],De=sf(r,xt,ze),Ge=[...St,...Oe?[Oe]:[]].find(Me=>Me.name===De),v=Me=>!mt&&d(Me),M=Me=>!mt&&j(Me.message),xe=Os(xt.concrete)||xt.type==="binary"?1:1/0;if(Ge){const Me=Ge.depth===null?1/0:Ge.depth??1;Me!==xe?en(t,Me===1/0?null:Me).then(v).catch(M):d(xt)}else{const Me=F0();(Me===null?1/0:Me)===xe?d(xt):en(t,Me).then(v).catch(M)}}).catch(xt=>!mt&&j(xt.message)),()=>{mt=!0}},[t,q,n,r,he]),ut.useEffect(()=>{if(!h)return;const vt=mt=>{const xt=mt.target;if(xt&&(xt.isContentEditable||/^(INPUT|TEXTAREA|SELECT)$/.test(xt.tagName)))return;const St=Dy(mt);if(St.length>0){mt.preventDefault(),k(St);return}const Oe=mt.clipboardData?.getData("text/html")??"",ze=Oe?f9(Oe):null;if(ze){mt.preventDefault(),B(ze);return}const De=mt.clipboardData?.getData("text/plain")??"";if(!De.trim())return;mt.preventDefault();const Ge=l9(De);if(Ge){Ae(Ge);return}const v=o9(De);if(v){pe(v);return}W(De)};return document.addEventListener("paste",vt),()=>document.removeEventListener("paste",vt)},[h,t]),ut.useEffect(()=>{if(!h)return;const vt=De=>Array.from(De.dataTransfer?.types||[]).includes("Files");let mt=0;const xt=De=>{vt(De)&&(De.preventDefault(),mt++,oe(!0))},St=De=>{vt(De)&&(De.preventDefault(),De.dataTransfer&&(De.dataTransfer.dropEffect="copy"))},Oe=()=>{mt=Math.max(0,mt-1),mt===0&&oe(!1)},ze=De=>{if(!vt(De))return;De.preventDefault(),mt=0,oe(!1);const Ge=Array.from(De.dataTransfer?.files||[]);Ge.length&&k(Ge)};return document.addEventListener("dragenter",xt),document.addEventListener("dragover",St),document.addEventListener("dragleave",Oe),document.addEventListener("drop",ze),()=>{document.removeEventListener("dragenter",xt),document.removeEventListener("dragover",St),document.removeEventListener("dragleave",Oe),document.removeEventListener("drop",ze)}},[h,t]);const k=async vt=>{try{Q(`uploading ${vt.length} file${vt.length>1?"s":""}…`);let mt=null;for(const xt of vt){const St=await Fy(xt);mt=await I3(t,Ly(xt),St)}Q(vt.length>1?`uploaded ${vt.length} files`:"uploaded"),window.setTimeout(()=>Q(null),1500),mt?.open?$?.(mt):(Y(xt=>xt+1),l?.(t))}catch(mt){Q("paste failed: "+mt.message),window.setTimeout(()=>Q(null),4e3)}},Ae=async({url:vt,name:mt})=>{try{Q(`downloading ${mt}…`);const xt=await fetch(vt);if(!xt.ok)throw new Error(`HTTP ${xt.status} fetching ${vt}`);const St=await xt.blob();await k([new File([St],mt,{type:"application/pdf"})])}catch(xt){Q("download failed: "+xt.message),window.setTimeout(()=>Q(null),4e3)}},B=async vt=>{try{const mt=Pb(vt);mt&&Q(`downloading ${mt} image${mt>1?"s":""}…`);const xt=await Bb(vt);Q("pasting…");const St=await D3(t,xt);Q(St.chapter?"chunks added":"chapter created"),window.setTimeout(()=>Q(null),1500),St.open?$?.(St):(Y(Oe=>Oe+1),l?.(t))}catch(mt){Q("paste failed: "+mt.message),window.setTimeout(()=>Q(null),4e3)}},pe=async vt=>{try{Q("fetching tweet…"),await W(await u9(vt))}catch(mt){Q("tweet fetch failed: "+mt.message),window.setTimeout(()=>Q(null),4e3)}},W=async vt=>{try{Q("pasting text…");const mt=await M3(t,vt);Q(mt.chapter?"chunk added":"chapter created"),window.setTimeout(()=>Q(null),1500),mt.open?$?.(mt):(Y(xt=>xt+1),l?.(t))}catch(mt){Q("paste failed: "+mt.message),window.setTimeout(()=>Q(null),4e3)}};if(ut.useEffect(()=>{h&&(document.title=h.title?.trim()||k9(t)||"yamlover")},[h,t]),ut.useEffect(()=>{if(A(null),U(null),!h)return;const vt=ef(h),mt=tf(h),xt=[...vt.map(Oe=>Oe.name),...nf(h),...mt?[mt.name]:[]],St=sf(r,h,xt);[...vt,...mt?[mt]:[]].some(Oe=>Oe.name===St)||(rf(St)?E3(t,F0()??void 0).then(A).catch(Oe=>j(Oe.message)):(h.type==="binary"||h.valueType==="binary")&&en(t,void 0,{binary:!0}).then(Oe=>U(Oe.value)).catch(Oe=>j(Oe.message)))},[r,t,h]),O)return le.jsx("div",{className:"error",children:O});if(!h)return le.jsx("div",{className:"loading",children:"…"});const Fe=ef(h),fe=nf(h),V=tf(h),x=V?[...Fe,V]:Fe,f=[...Fe.map(vt=>vt.name),...fe,...V?[V.name]:[]],o=sf(r,h,f),c=vt=>x.find(mt=>mt.name===vt)?.label??vt,p={yamlover:"y:",json5p:"{}","yamlover/schema":"$"},m=vt=>x.find(mt=>mt.name===vt)?.icon??p[vt]??vt,E=x.find(vt=>vt.name===o)??null,T=E!=null,re=T?!!E&&x9.has(E.name):w9(o,h);de.current=re;const je=h.documentPath??t;let nt,ft;T?(nt=h.value,ft=!0):rf(o)?(nt=w,ft=w!=null):h.type==="binary"||h.valueType==="binary"?(nt=N,ft=N!=null):(nt=h.value,ft=!0);const{tags:yt,rest:zt}=D5(h.relations),_t=[...yt];for(const vt of Ce)vt.fragmentSlug||vt.tag&&!_t.some(mt=>mt.path===vt.tag.path)&&_t.push({path:vt.tag.path,label:vt.tag.name,color:vt.tag.color});return le.jsxs("div",{className:"nodeview",children:[_e&&le.jsx("div",{className:"paste-toast",children:_e}),be&&le.jsx("div",{className:"drop-overlay",children:"Drop file to upload"}),le.jsxs("div",{className:"nodehead",children:[le.jsxs("div",{className:"nodemeta",children:[le.jsx("span",{className:"tag",children:h.type}),h.concrete&&le.jsx("span",{className:"tag dim",children:h.concrete}),le.jsx(kv,{tags:_t,onNavigate:s})]}),le.jsx("span",{className:"bar-sep","aria-hidden":"true",children:"|"}),re&&le.jsxs("button",{className:"lockbtn"+(he?" unlocked":""),title:he?"Editing — click or Esc to finish":"Read-only — click or F2 to edit","aria-pressed":he,onClick:()=>ne(vt=>!vt),children:[le.jsx("span",{className:"lockbtn-icon","aria-hidden":"true",children:he?"✓":"✏️"}),le.jsx("span",{className:"lockbtn-label",children:he?"Done":"Edit"})]}),le.jsx("div",{className:"tabs",children:f.map(vt=>le.jsxs(ut.Fragment,{children:[le.jsx("button",{className:"tab"+(o===vt?" active":""),title:c(vt),"aria-label":c(vt),onClick:()=>i(vt),children:m(vt)}),T&&E&&vt===E.name&&E.config?.(te,h),!T&&vt===o&&le.jsx(y9,{onChange:()=>Y(mt=>mt+1)})]},vt))})]}),!T&&h.description&&le.jsx("p",{className:"nodedesc",children:h.description}),T?le.jsx(Bu.Provider,{value:{unlocked:he},children:b9.has(E.name)&&!he?le.jsx(i6,{path:t,children:E.render(h,s)}):E.render(h,s)}):le.jsx(Bu.Provider,{value:{unlocked:he},children:le.jsxs("pre",{className:"code",children:[!rf(o)&&Object.keys(zt).length>0&&le.jsxs(le.Fragment,{children:[le.jsx(Zf,{value:zt,syntax:N_(o),onNavigate:s,documentPath:je,nodePath:t,anchors:!1}),le.jsx("hr",{className:"reldiv"})]}),ft?le.jsx(Zf,{value:nt,syntax:N_(o),onNavigate:s,documentPath:je,nodePath:t,comments:h.comments,editable:re,concrete:h.concrete}):"…"]})})]})});function E9({onNavigate:e}){const[t,r]=ut.useState(null),[n,i]=ut.useState(null),[s,l]=ut.useState(!1);ut.useEffect(()=>{document.title="Browser settings",Xp(Qu()).then(h=>{r(h),i(null)}).catch(h=>i(String(h.message||h)))},[]),ut.useEffect(()=>{const h=d=>{d.key==="F2"&&!s?(d.preventDefault(),l(!0)):d.key==="Escape"&&s&&(d.preventDefault(),l(!1))};return document.addEventListener("keydown",h),()=>document.removeEventListener("keydown",h)},[s]);const $=ut.useCallback(async h=>{try{const d=h.path.startsWith(Bs)?h.path.slice(Bs.length):h.path,{source:w}=await L3(Qu(),[{...h,path:d}]);return By(w),r(await Xp(w)),!0}catch{return!1}},[]);return n?le.jsx("div",{className:"nodeview",children:le.jsx("p",{className:"error",children:n})}):t?le.jsxs("div",{className:"nodeview",children:[le.jsxs("div",{className:"nodehead",children:[le.jsxs("div",{className:"nodemeta",children:[le.jsx("span",{className:"tag",children:t.type}),t.concrete&&le.jsx("span",{className:"tag dim",children:t.concrete}),le.jsx("span",{className:"tag dim",title:"Stored in this browser's localStorage — not part of any project",children:"this browser"})]}),le.jsx("span",{className:"bar-sep","aria-hidden":"true",children:"|"}),le.jsxs("button",{className:"lockbtn"+(s?" unlocked":""),title:s?"Editing — click or Esc to finish":"Read-only — click or F2 to edit","aria-pressed":s,onClick:()=>l(h=>!h),children:[le.jsx("span",{className:"lockbtn-icon","aria-hidden":"true",children:s?"✓":"✏️"}),le.jsx("span",{className:"lockbtn-label",children:s?"Done":"Edit"})]})]}),le.jsx(Bu.Provider,{value:{unlocked:s,sink:$},children:le.jsx("pre",{className:"code",children:le.jsx(Zf,{value:t.value,syntax:"yaml",onNavigate:e,documentPath:Bs,nodePath:Bs,comments:t.comments,editable:!0,concrete:t.concrete})})})]}):le.jsx("div",{className:"nodeview",children:le.jsx("p",{children:"…"})})}function A9(e,t){return(e===":"?"":e)+":yamlover-fragments:"+t}function C9(e){const t=[],r=new Map;for(const n of e){if(!n.fragmentSlug)continue;let i=r.get(n.fragmentSlug);i?(!i.selector&&n.selector&&(i.selector=n.selector),!i.imageUrl&&n.imageUrl&&(i.imageUrl=n.imageUrl)):(i={slug:n.fragmentSlug,node:n.node,selector:n.selector,imageUrl:n.imageUrl,tags:[]},r.set(n.fragmentSlug,i),t.push(n.fragmentSlug)),n.tag&&!i.tags.some(s=>s.path===n.tag.path)&&i.tags.push({path:n.tag.path,label:n.tag.name,color:n.tag.color})}return t.map(n=>r.get(n))}function T9(e){const t=e.selector;if(t?.type==="text"&&typeof t.exact=="string")return t.exact;switch(t?.type){case"map":return"map region";case"pdf":return"PDF region";case"rect":return"image region";case"djvu":return"djvu region";default:return"fragment"}}function R9({path:e,groups:t,width:r,onNavigate:n}){const[i,s]=ut.useState(new Set),l=d=>{window.location.hash="#"+Xg(d.node??e,d.slug)},$=async d=>{s(A=>new Set(A).add(d.slug));const w=A9(d.node??e,d.slug);try{for(const A of d.tags)await yc(w,A.path)}catch(A){s(N=>{const U=new Set(N);return U.delete(d.slug),U}),window.alert("delete failed: "+A.message)}},h=t.filter(d=>!i.has(d.slug));return h.length===0?null:le.jsxs("aside",{className:"pane fragments",style:{width:r},children:[le.jsxs("div",{className:"fragments-head",children:[le.jsx("span",{className:"fragments-title",children:"Fragments"}),le.jsx("span",{className:"fragments-count",children:h.length})]}),le.jsx("ul",{className:"fragments-list",children:h.map(d=>le.jsxs("li",{className:"fragment-row",children:[le.jsxs("div",{className:"fragment-main",children:[le.jsx("button",{type:"button",className:"fragment-locate",title:"Scroll to this fragment",onClick:()=>l(d),children:d.imageUrl?le.jsx("img",{className:"fragment-thumb",src:d.imageUrl,alt:""}):le.jsx("span",{className:"fragment-excerpt",children:T9(d)})}),le.jsx("button",{type:"button",className:"fragment-delete",title:"Delete this fragment","aria-label":"Delete this fragment",onClick:()=>$(d),children:"✕"})]}),d.tags.length>0&&le.jsx("div",{className:"fragment-tags",children:le.jsx(kv,{tags:d.tags,onNavigate:n})})]},d.slug))})]})}const z9=e=>Wb.includes(e),N9=(e,t)=>z9(e)&&(e!=="json5p"||bc(t));function I_(e){try{return localStorage.getItem(e)==="1"}catch{return!1}}function q_({collapsed:e,glyph:t,label:r,onToggle:n,onDragStart:i}){return le.jsx("div",{className:"splitter"+(e?" collapsed":""),onMouseDown:e?void 0:i,children:le.jsx("button",{type:"button",className:"splitter-toggle",title:r,"aria-label":r,"aria-expanded":!e,onClick:n,onMouseDown:s=>s.stopPropagation(),children:t})})}const fa=1;function j0(e,t,r){return e.path===t?{...e,children:r}:e.children.length?{...e,children:e.children.map(n=>j0(n,t,r))}:e}function Vb(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=>Vb(r.get(i.path),i)):t.hasChildren?e.children:[];return{...t,children:n}}function B0(e,t,r){return e.path===t?Vb(e,r):e.children.length?{...e,children:e.children.map(n=>B0(n,t,r))}:e}function Aa(e,t){if(e.path===t)return e;for(const r of e.children){const n=Aa(r,t);if(n)return n}return null}function I9(e,t){const r=jr(t);for(let n=0;n<r.length;n++){const i=Wn(r.slice(0,n)),s=Aa(e,i);if(!s)return null;if(s.hasChildren&&s.children.length===0)return i}return null}function q9(e){if(!e)return[];const t=[],r=n=>{t.push(n.path);for(const i of jb(n).children)r(i)};return r(e),t}function M9(){const[e,t]=ut.useState(null),[r,n]=ut.useState(null),[i,s]=ut.useState(Vp()),[l,$]=ut.useState(Yp(Si)),[h,d]=ut.useState(""),[w,A]=ut.useState("idle"),N=ut.useCallback(()=>{Ts(Bs,Si,!1),s(Bs),$(Si)},[]),U=ut.useCallback(()=>{const _t=":.yamlover:settings.yamlover";Ts(_t,Si,!1),s(_t),$(Si)},[]),[O,j]=ut.useState(320),[q,Y]=ut.useState(300),[he,ne]=ut.useState(()=>I_("yo-left-collapsed")),[_e,Q]=ut.useState(()=>I_("yo-right-collapsed"));ut.useEffect(()=>{try{localStorage.setItem("yo-left-collapsed",he?"1":"0")}catch{}},[he]),ut.useEffect(()=>{try{localStorage.setItem("yo-right-collapsed",_e?"1":"0")}catch{}},[_e]);const be=ut.useRef(null),oe=C9(Yd(i)),Ee=oe.length>0&&!Wb.includes(l),te=Ee&&!_e;ut.useEffect(()=>{Gp().then(_t=>d(_t.root)).catch(()=>{})},[]),ut.useEffect(()=>{_h(),Zx()},[]);const[Ce,de]=ut.useState([]);ut.useEffect(()=>{S3().then(de).catch(()=>{})},[]);const k=ut.useCallback(_t=>{de(vt=>[...vt.filter(mt=>mt.id!==_t.id),_t].sort((mt,xt)=>mt.startedAt-xt.startedAt)),_t.state!=="running"&&setTimeout(()=>de(vt=>vt.filter(mt=>mt.id!==_t.id)),3e3)},[]),Ae=ut.useRef(new URLSearchParams(window.location.search).has("format"));ut.useEffect(()=>{Ts(i,l,!0)},[]),ut.useEffect(()=>{oa(":",fa).then(t).catch(_t=>n(_t.message))},[]);const B=ut.useRef(!1);ut.useEffect(()=>{if(Ae.current||B.current||!e)return;const _t=Aa(e,i);if(!_t)return;B.current=!0;const vt=pu(_t,_t.concrete);vt&&($(vt),Ts(i,vt,!0))},[e,i]);const pe=ut.useCallback(async(_t,vt=fa)=>{const mt=await oa(_t,vt);t(xt=>xt&&j0(xt,_t,mt.children))},[]);ut.useEffect(()=>{if(!e)return;const _t=I9(e,i);_t&&pe(_t).catch(()=>{})},[e,i,pe]);const W=ut.useRef(e);W.current=e;const Fe=ut.useRef(i);Fe.current=i;const[fe,V]=ut.useState(0),x=ut.useCallback(async _t=>{const vt=W.current;if(!vt)return;const mt=new Set;for(const St of _t){const Oe=jr(St);let ze=":";for(let De=0;De<Oe.length;De++){const Ge=Wn(Oe.slice(0,De)),v=Aa(vt,Ge);if(!v)break;(Ge===":"||v.children.length>0)&&(ze=Ge)}mt.add(ze)}const xt=[...mt].filter(St=>![...mt].some(Oe=>Oe!==St&&Nl(Oe,St)));await Promise.all(xt.map(async St=>{const Oe=await oa(St,fa);t(ze=>ze&&B0(ze,St,Oe))}))},[]),f=ut.useCallback(()=>{W.current||(oa(":",fa).then(_t=>{t(_t),n(null)}).catch(()=>{}),Gp().then(_t=>d(_t.root)).catch(()=>{}))},[]);ut.useEffect(()=>{if(typeof EventSource>"u")return;const _t=new EventSource(xr("/api/events"));let vt=!1;return _t.onopen=()=>{if(!vt){vt=!0;return}f(),oa(":",fa).then(mt=>t(xt=>xt?B0(xt,":",mt):mt)).catch(()=>{}),V(mt=>mt+1)},_t.onmessage=mt=>{try{const xt=JSON.parse(mt.data);if(xt.type==="task"){const De=xt.task;k(De),De.state==="done"&&f();return}const St=xt;f();const Oe=[...St.added,...St.changed,...St.removed,...(St.moved??[]).flatMap(De=>[De.from,De.to])];if(!Oe.length)return;F5({paths:Oe,removed:St.removed}),x(Oe).catch(()=>{});const ze=Fe.current;Oe.some(De=>De===ze||Nl(De,ze)||Nl(ze,De))&&V(De=>De+1)}catch{}},()=>_t.close()},[x,k,f]),ut.useEffect(()=>{const _t=()=>{s(Vp()),$(Yp(Si))};return window.addEventListener("popstate",_t),()=>window.removeEventListener("popstate",_t)},[]);const o=ut.useCallback(_t=>{const vt=e?Aa(e,_t):null;let mt=l;vt&&(mt=pu(vt,vt.concrete)??(N9(l,vt.concrete)?l:Si)),Ts(_t,mt,!1),s(_t),mt!==l&&$(mt)},[l,e]),c=ut.useCallback(_t=>{o(_t),be.current?.focus()},[o]),{openAt:p,tagMenu:m}=Kd({onCreate:(_t,vt,mt)=>void Zg(_t,vt,mt).then(xt=>o(xt.path)).catch(xt=>window.alert("create failed: "+xt.message))}),E=ut.useCallback((_t,vt,mt)=>p(_t.path,vt,mt,_t),[p]),T=ut.useRef(o);T.current=o,ut.useEffect(()=>{const _t=vt=>{if(!(vt.ctrlKey||vt.altKey)||vt.key!=="ArrowDown"&&vt.key!=="ArrowUp")return;const mt=vt.target;if(mt&&(mt.isContentEditable||/^(INPUT|TEXTAREA|SELECT)$/.test(mt.tagName)))return;const xt=q9(W.current),St=xt.indexOf(Fe.current);if(St<0)return;const Oe=Math.min(Math.max(St+(vt.key==="ArrowDown"?1:-1),0),xt.length-1);vt.preventDefault(),Oe!==St&&T.current(xt[Oe])};return window.addEventListener("keydown",_t),()=>window.removeEventListener("keydown",_t)},[]);const re=ut.useCallback(_t=>{Ts(i,_t,!0),$(_t)},[i]),je=ut.useCallback(_t=>{const vt=e?Aa(e,_t):null;pe(vt?_t:":").catch(()=>{})},[e,pe]),nt=ut.useCallback(async _t=>{const vt=_t.dir??":";try{const mt=await oa(vt,fa);t(Oe=>Oe&&j0(Oe,vt,mt.children));const xt=mt.children.find(Oe=>Oe.path===_t.path),St=(xt?pu(xt,xt.concrete):null)??Si;Ts(_t.path,St,!1),s(_t.path),$(St)}catch{o(_t.path)}},[o]),ft=ut.useRef(null);ut.useEffect(()=>{const _t=mt=>{ft.current==="left"?j(Math.min(Math.max(mt.clientX,160),window.innerWidth-240)):ft.current==="right"&&Y(Math.min(Math.max(window.innerWidth-mt.clientX,200),window.innerWidth-240))},vt=()=>{ft.current=null,document.body.style.userSelect=""};return window.addEventListener("mousemove",_t),window.addEventListener("mouseup",vt),()=>{window.removeEventListener("mousemove",_t),window.removeEventListener("mouseup",vt)}},[]);const yt=_t=>{ft.current=_t,document.body.style.userSelect="none"},zt=ut.useCallback(async()=>{if(w!=="busy"){A("busy");try{const{files:_t}=await N3(),vt=_t.filter(mt=>mt.status!=="exists").map(mt=>mt.name);n(null),window.alert(vt.length?`Installed agent guide: ${vt.join(", ")}.`:"Agent guide is already up to date.")}catch(_t){n(`agent docs: ${_t.message}`)}finally{A("idle")}}},[w]);return le.jsxs("div",{className:"app",children:[le.jsxs("header",{className:"topbar",children:[le.jsxs("nav",{className:"crumbs",children:[le.jsx("button",{type:"button",className:"crumb-action crumb-settings",title:"Project configuration (settings.yamlover)","aria-label":"Project configuration",onClick:U,children:"⚙"}),le.jsx("button",{type:"button",className:"crumb-action crumb-settings crumb-settings-browser",title:"Browser settings (this device — stored in this browser)","aria-label":"Browser settings",onClick:N,children:"⛭"}),le.jsx("button",{type:"button",className:"crumb-action",disabled:w==="busy",title:"Install the LLM agent guide (AGENTS.md + CLAUDE.md) into this project","aria-label":"Install LLM agent guide",onClick:zt,children:"🤖"}),k3(i,h).map((_t,vt)=>le.jsxs("span",{children:[vt>0&&le.jsx("span",{className:"crumb-sep",children:":"}),le.jsx("a",{className:"crumb",href:_t.path,onClick:mt=>{mt.preventDefault(),o(_t.path)},children:_t.label})]},_t.path))]}),le.jsx("div",{className:"topbar-right",children:le.jsx(a9,{tasks:Ce})})]}),le.jsxs("div",{className:"body",children:[!he&&le.jsx("aside",{className:"pane left",style:{width:O},children:(()=>{const _t=e?void 0:Ce.find(vt=>vt.state==="running");if(_t){const{done:vt,total:mt}=_t.progress;return le.jsxs("div",{className:"loading",children:[_t.label,"… ",mt?`${vt}/${mt}`:""]})}return r?le.jsx("div",{className:"error",children:r}):e?le.jsx(s9,{node:e,current:i,onSelect:c,onLoadChildren:pe,onContext:E}):le.jsx("div",{className:"loading",children:"loading…"})})()}),le.jsx(q_,{collapsed:he,glyph:he?"»":"«",label:he?"Show the tree":"Hide the tree",onToggle:()=>ne(_t=>!_t),onDragStart:()=>yt("left")}),le.jsx("main",{className:"pane right",ref:be,tabIndex:-1,children:(()=>{if(Hx(i))return le.jsx(E9,{onNavigate:o});const _t=e?void 0:Ce.find(vt=>vt.state==="running");if(_t){const{done:vt,total:mt}=_t.progress;return le.jsxs("div",{className:"loading",children:[_t.label,"… ",mt?`${vt}/${mt}`:""]})}return le.jsx(S9,{path:i,format:l,refreshSignal:fe,onFormat:re,onNavigate:o,onContentChanged:je,onOpenUploaded:nt})})()}),Ee&&le.jsxs(le.Fragment,{children:[le.jsx(q_,{collapsed:_e,glyph:_e?"«":"»",label:_e?"Show fragments":"Hide fragments",onToggle:()=>Q(_t=>!_t),onDragStart:()=>yt("right")}),te&&le.jsx(R9,{path:i,groups:oe,width:q,onNavigate:o})]})]}),m]})}class D9 extends ut.Component{state={error:null};static getDerivedStateFromError(t){return{error:t}}componentDidCatch(t){console.error("yamlover UI crashed:",t)}render(){const{error:t}=this.state;return t?le.jsxs("div",{className:"crash",children:[le.jsx("h1",{children:"Something went wrong"}),le.jsx("p",{children:"The viewer hit an error and stopped rendering."}),le.jsx("pre",{children:t.message}),le.jsxs("div",{className:"crash-actions",children:[le.jsx("button",{onClick:()=>this.setState({error:null}),children:"Try again"}),le.jsx("button",{onClick:()=>location.reload(),children:"Reload"})]})]}):this.props.children}}Kg(document.getElementById("root")).render(le.jsx(o2.StrictMode,{children:le.jsx(D9,{children:le.jsx(M9,{})})}));export{P5 as D,n6 as a,Pi as b,U5 as c,L9 as d,sm as e,Xg as f,Yb as g,lk as h,Vn as i,le as j,Pd as k,F9 as p,ut as r,D0 as s,e6 as u,j9 as w};
|