@diplodoc/cli 4.13.7 → 4.13.9-alpha-1

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.
@@ -0,0 +1,2 @@
1
+ (()=>{"use strict";var e,t={63735:(e,t,n)=>{var o=n(67294),r=n(20745),l=(n(56001),n(45289));function i(e){const t=function(){const[e,t]=(0,o.useState)(null),n=(0,o.useCallback)((async t=>{if(e)return e.run(t)}),[e]);return(0,o.useEffect)((()=>((window.latexJsonp=window.latexJsonp||[]).push(t),()=>{const e=window.latexJsonp.indexOf(t);e>-1&&window.latexJsonp.splice(e,1)})),[]),n}();return(0,o.useEffect)((()=>{t(e).catch(e.onError||(()=>{}))})),null}function c(){return o.createElement(o.Fragment,null,o.createElement(i,null),o.createElement(l.u,null))}const a=document.getElementById("root");if(!a)throw new Error("Root element not found!");(0,r.a)(a,o.createElement(c,null))},56001:()=>{(()=>{var e,t,n,o,r,l,i,c,a=Object.create,s=Object.defineProperty,d=Object.getOwnPropertyDescriptor,u=Object.getOwnPropertyNames,f=Object.getPrototypeOf,m=Object.prototype.hasOwnProperty,p=(e={"../../node_modules/get-root-node-polyfill/index.js"(e,t){function n(e){var t=o(e);return function(e){return"#document-fragment"===e.nodeName&&"ShadowRoot"===e.constructor.name}(t)?n(t.host):t}function o(e){return null!=e.parentNode?o(e.parentNode):e}"object"==typeof t&&t.exports&&(t.exports=function(e){return"object"==typeof e&&Boolean(e.composed)?n(this):o(this)})}},function(){return t||(0,e[u(e)[0]])((t={exports:{}}).exports,t),t.exports});n="active",o=Symbol.for("diplodocTabs"),r=e=>{let t=e.composedPath();return Array.isArray(t)&&t.length>0?t[0]:e.target},l=e=>Math.abs(e.scrollHeight-e.clientHeight)>1?e:e.parentElement?l(e.parentElement):void 0,i=(e,t)=>{let n=e.getBoundingClientRect(),o=t.getBoundingClientRect();return{top:n.top-o.top,left:n.left-o.left}},c={TABS:".yfm-tabs",TAB_LIST:".yfm-tab-list",TAB:".yfm-tab",TAB_PANEL:".yfm-tab-panel"},"undefined"!=typeof window&&"undefined"!=typeof document&&!window[o]&&(window[o]=new class{constructor(e){this._onSelectTabHandlers=new Set,this._document=e,this._document.addEventListener("click",(e=>{let t=r(e);if((e=>{let t=r(e);return!t||!t.matches})(e)||!this.isValidTabElement(t))return;let n=this.getTabDataFromHTMLElement(t);n&&this._selectTab(n,t)}))}onSelectTab(e){return this._onSelectTabHandlers.add(e),()=>{this._onSelectTabHandlers.delete(e)}}selectTabById(e,t){let n=this._document.querySelector(`${c.TAB}[data-diplodoc-id="${e}"]`);if(!n||!this.isValidTabElement(n))return;let o=this.getTabDataFromHTMLElement(n);o&&this._selectTab(o,n),null!=t&&t.scrollToElement&&n.scrollIntoView()}selectTab(e){this._selectTab(e)}_selectTab(e,t){let{group:n,key:o}=e;if(!n)return;let r=t&&l(t),c=r&&i(t,r);this.updateHTML({group:n,key:o})>0&&(c&&this.resetScroll(t,r,c),this.fireSelectTabEvent({group:n,key:o},null==t?void 0:t.dataset.diplodocId))}updateHTML(e){let{group:t,key:o}=e,r=this._document.querySelectorAll(`${c.TABS}[data-diplodoc-group="${t}"] ${c.TAB}[data-diplodoc-key="${o}"]`),l=0;return r.forEach((e=>{let t=e;if(!this.isValidTabElement(t)||"true"===t.dataset.diplodocIsActive)return;l++;let o=e,r=o.parentNode,i=null==r?void 0:r.parentNode,a=Array.from((null==i?void 0:i.querySelectorAll(c.TAB))||[]),s=Array.from((null==i?void 0:i.querySelectorAll(c.TAB_PANEL))||[]),d=a.indexOf(o);a.forEach(((e,t)=>{let o=s[t],r=t===d;e.dataset.diplodocIsActive=r?"true":"false",e.classList.toggle(n,r),e.setAttribute("aria-selected",r.toString()),e.setAttribute("tabindex",r?"-1":"0"),o.classList.toggle(n,r)}))})),l}resetScroll(e,t,n){let o=i(e,t);t.scrollTo(o.left+t.scrollLeft-n.left,o.top+t.scrollTop-n.top)}fireSelectTabEvent(e,t){let{group:n,key:o}=e,r=n.startsWith("defaultTabsGroup-")?{key:o}:e;this._onSelectTabHandlers.forEach((e=>{e({tab:r,currentTabId:t})}))}isValidTabElement(e){let t=e.matches(c.TAB)&&e.dataset.diplodocId?e.closest(c.TAB_LIST):null;return null==t?void 0:t.closest(c.TABS)}getTabDataFromHTMLElement(e){var t;let n=e.dataset.diplodocKey,o=null==(t=e.closest(c.TABS))?void 0:t.dataset.diplodocGroup;return n&&o?{group:o,key:n}:null}}(document));var b=((e,t,n)=>(n=null!=e?a(f(e)):{},((e,t,n,o)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let n of u(t))m.call(e,n)||undefined===n||s(e,n,{get:()=>t[n],enumerable:!(o=d(t,n))||o.enumerable});return e})(e&&e.__esModule?n:s(n,"default",{value:e,enumerable:!0}),e)))(p());"undefined"!=typeof document&&function(e){const t=e.matches||e.matchesSelector||e.webkitMatchesSelector||e.mozMatchesSelector||e.msMatchesSelector||e.oMatchesSelector;e.matches=e.matchesSelector=t||function(t){const n=(e.getRootNode?e.getRootNode():b.default.call(e)).querySelectorAll(t),o=this;return Array.prototype.some.call(n,(e=>e===o))}}(Element.prototype);var g=e=>{const t=e.composedPath();return Array.isArray(t)&&t.length>0?t[0]:e.target},y=e=>{const t=g(e);return!t||!t.matches};"undefined"!=typeof document&&document.addEventListener("click",(e=>{const t=g(e);if(y(e)||!t.matches(".yfm-clipboard-button"))return;const n=t.parentNode;if(!n)return;const o=n.querySelector("pre code");o&&function(e){if(!e)return Promise.resolve();if(navigator.clipboard&&(navigator.clipboard.writeText,1))return navigator.clipboard.writeText(e);const t=document.createElement("textarea");return t.setAttribute("style","position: absolute; left: 1000%"),t.textContent=e,document.body.append(t),t.select(),document.execCommand("copy"),document.body.removeChild(t),Promise.resolve()}(o.innerText).then((()=>{!function(e){if(!e)return;const t=e.getAttribute("data-animation"),n=e.getRootNode().getElementById(`visibileAnimation-${t}`);n&&n.beginElement()}(n.querySelector(".yfm-clipboard-button"))}))}));var h=".yfm .yfm-cut-title";function v(e){var t;return e instanceof HTMLElement&&(null==(t=null==e?void 0:e.matches)?void 0:t.call(e,h))}"undefined"!=typeof document&&document.addEventListener("click",(e=>{if(y(e))return;const t=function(e){var t;const n=g(e);if(v(n))return n;const o=null==(t=e.composedPath)?void 0:t.call(e);return null==o?void 0:o.find(v)}(e);t&&function(e){const t=e.parentNode;t instanceof HTMLElement&&t.classList.toggle("open")}(t)}));var T={TITLE:".yfm .yfm-term_title",CONTENT:".yfm .yfm-term_dfn"},E="open",A=T.CONTENT.replace(/\./g,"")+" "+E,w=!0;function S(e,t){const{x:n,y:o,right:r,left:l,width:i,height:c}=t.getBoundingClientRect(),a=L(t);if(!a)return;const{right:s,left:d}=a.getBoundingClientRect();if((s<l||d>r)&&!w)return void O(e);w&&a&&(a.addEventListener("scroll",B),w=!1);const u=Number(e.getAttribute("relativeX")),f=Number(e.getAttribute("relativeY"));if(u===n&&f===o)return;e.setAttribute("relativeX",String(n)),e.setAttribute("relativeY",String(o));const m=c+5,p=e.parentElement;if(!p)return;const{width:b}=e.getBoundingClientRect(),{left:g}=p.getBoundingClientRect(),y=Number(_(t).left),h=y-b<0,v=(b+y>document.body.clientWidth||"rtl"===document.dir)&&!h?b-i:0,T=_(p).top-p.offsetTop;e.style.top=Number(_(t).top+m-T)+"px",e.style.left=Number(_(t).left-g+p.offsetLeft-v)+"px"}function B(){const e=document.getElementsByClassName(A)[0];if(!e)return;const t=e.getAttribute("term-id")||"",n=document.getElementById(t);n&&S(e,n)}function L(e){return e?e.closest("table")||e.closest("code")||e.parentElement:null}function O(e){e.classList.remove(E);const t=e.getAttribute("term-id")||"",n=L(document.getElementById(t));n&&(n.removeEventListener("scroll",B),w=!0)}function _(e){const t=e.getBoundingClientRect(),n=document.body,o=document.documentElement,r=window.pageYOffset||o.scrollTop||n.scrollTop,l=window.pageXOffset||o.scrollLeft||n.scrollLeft,i=o.clientTop||n.clientTop||0,c=o.clientLeft||n.clientLeft||0,a=t.top+r-i,s=t.left+l-c;return{top:Math.round(a),left:Math.round(s)}}"undefined"!=typeof document&&(document.addEventListener("click",(e=>{const t=document.getElementsByClassName(A)[0],n=g(e),o=n.getAttribute("id"),r=n.getAttribute("term-key");let l=document.getElementById(r+"_element");if(r&&!l&&(l=function(e){var t;const n=e.getAttribute("term-key"),o=document.getElementById(`${n}_template`),r=null==o?void 0:o.content.cloneNode(!0).firstChild;return null==(t=null==o?void 0:o.parentElement)||t.appendChild(r),o.remove(),r}(n)),t&&o===t.getAttribute("term-id"))return void O(t);const i=n.closest([T.CONTENT.replace(" ",""),E].join("."));t&&!i&&O(t),!y(e)&&n.matches(T.TITLE)&&l&&(function(e,t){const n=t.getAttribute("id")||Math.random().toString(36).substr(2,8);null==e||e.setAttribute("term-id",n)}(l,n),S(l,n),l.classList.toggle(E))})),document.addEventListener("keydown",(e=>{const t=document.getElementsByClassName(A)[0];"Escape"===e.key&&t&&O(t)})),window.addEventListener("resize",(()=>{const e=document.getElementsByClassName(A)[0];if(!e)return;const t=e.getAttribute("term-id")||"",n=document.getElementById(t);n?S(e,n):e.classList.toggle(E)})))})()}},n={};function o(e){var r=n[e];if(void 0!==r)return r.exports;var l=n[e]={id:e,loaded:!1,exports:{}};return t[e].call(l.exports,l,l.exports,o),l.loaded=!0,l.exports}o.m=t,o.amdO={},e=[],o.O=(t,n,r,l)=>{if(!n){var i=1/0;for(d=0;d<e.length;d++){for(var[n,r,l]=e[d],c=!0,a=0;a<n.length;a++)(!1&l||i>=l)&&Object.keys(o.O).every((e=>o.O[e](n[a])))?n.splice(a--,1):(c=!1,l<i&&(i=l));if(c){e.splice(d--,1);var s=r();void 0!==s&&(t=s)}}return t}l=l||0;for(var d=e.length;d>0&&e[d-1][2]>l;d--)e[d]=e[d-1];e[d]=[n,r,l]},o.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return o.d(t,{a:t}),t},o.d=(e,t)=>{for(var n in t)o.o(t,n)&&!o.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},o.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),o.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),o.j=740,(()=>{var e={740:0};o.O.j=t=>0===e[t];var t=(t,n)=>{var r,l,[i,c,a]=n,s=0;if(i.some((t=>0!==e[t]))){for(r in c)o.o(c,r)&&(o.m[r]=c[r]);if(a)var d=a(o)}for(t&&t(n);s<i.length;s++)l=i[s],o.o(e,l)&&e[l]&&e[l][0](),e[l]=0;return o.O(d)},n=self.webpackChunk_diplodoc_client=self.webpackChunk_diplodoc_client||[];n.forEach(t.bind(null,0)),n.push=t.bind(null,n.push.bind(n))})();var r=o.O(void 0,[736],(()=>o(63735)));r=o.O(r)})();
2
+ //# sourceMappingURL=print.js.map