@zeniai/web-components 4.4.70 → 4.4.71-beta0AN

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (184) hide show
  1. package/dist/Editor-CbBxvSmp.js +919 -0
  2. package/dist/{SessionTimeoutPopup-BKNhya21.js → SessionTimeoutPopup-BMerO3g4.js} +112074 -113753
  3. package/dist/TaskDescriptionEditor-DyTyMxvk.js +700 -0
  4. package/dist/apple-wallet-DMr790ZM.js +19 -0
  5. package/dist/bank-verification-HpVi21UA.js +5 -0
  6. package/dist/cockpit.esm.js +1198 -1199
  7. package/dist/components/common/lazyLottie.d.ts +8 -0
  8. package/dist/components/common/lazyReactPdf.d.ts +13 -0
  9. package/dist/components/common/lazySvg.d.ts +17 -0
  10. package/dist/components/formElements/autoCompleteSingleSelectField/AutoCompleteSingleSelectField.d.ts +3 -1
  11. package/dist/components/formElements/singleSelectPickerField/SingleSelectPickerField.d.ts +2 -0
  12. package/dist/components/invoicing/createInvoice/InvoicingCreateInvoicePage.d.ts +3 -1
  13. package/dist/components/invoicing/subscriptionForm/InvoicingSubscriptionFormPage.d.ts +3 -1
  14. package/dist/components/invoicing/subscriptionForm/subscriptionForm.shared.d.ts +4 -0
  15. package/dist/components/settingsPage/Integrations/components/integrationLogos.d.ts +2874 -12
  16. package/dist/index.esm.js +139 -139
  17. package/dist/mcdonalds-logo-BTFuGR4i.js +5 -0
  18. package/dist/mercury-logo-Xd1WsXHh.js +5 -0
  19. package/dist/mercury-logo-dark-WebeUx9w.js +5 -0
  20. package/dist/more-providers-avatars-Dt7HPmCt.js +5 -0
  21. package/dist/netsuite-logo-Dp53a_wk.js +5 -0
  22. package/dist/netsuite-logo-dark-C53BYo7C.js +5 -0
  23. package/dist/paypal-logo-RhbjaD58.js +5 -0
  24. package/dist/paypal-logo-dark-_jTZA_FH.js +5 -0
  25. package/dist/phone-otp-DI7iHM2C.js +7 -0
  26. package/dist/subway-logo-B-Kc0fke.js +5 -0
  27. package/dist/underline-BNKkE4Fr.js +223 -0
  28. package/dist/vendor-@stripe-stripe-js-BmvP0myE.js +108 -0
  29. package/dist/vendor-react-lottie-player-Qhg4gMF8.js +174 -0
  30. package/dist/zeni-card-trust-BpxZYDve.js +5 -0
  31. package/dist/zeni-thanksgiving-logo-full-BLmLHEXd.js +5 -0
  32. package/package.json +6 -8
  33. package/dist/SessionTimeoutPopup-D12fxo7a.cjs +0 -92815
  34. package/dist/assets/illustrative/ai-cfo.svg +0 -13
  35. package/dist/assets/illustrative/rewardsEmailTemplate/business-banking-icon.svg +0 -21
  36. package/dist/assets/illustrative/rewardsEmailTemplate/cards-icon.svg +0 -11
  37. package/dist/assets/interface/ai-icon-color-selected-filled-small.svg +0 -27
  38. package/dist/assets/interface/ai-icon-color-selected-small.svg +0 -20
  39. package/dist/assets/interface/ai-icon-selected-filled-plain.svg +0 -5
  40. package/dist/assets/interface/arrow-2-left.svg +0 -4
  41. package/dist/assets/interface/autofill-3.svg +0 -3
  42. package/dist/assets/interface/graph-trend.svg +0 -11
  43. package/dist/assets/interface/growth-round.svg +0 -5
  44. package/dist/assets/interface/saving-money-egg.svg +0 -15
  45. package/dist/assets/interface/treasury-thumbnail.png +0 -0
  46. package/dist/assets/logos/gmail-logo.svg +0 -20
  47. package/dist/assets/logos/microsoft365-logo.svg +0 -25
  48. package/dist/assets/oldicons/promoPages/usp-line.svg +0 -3
  49. package/dist/cockpit.cjs.js +0 -5805
  50. package/dist/index.cjs.js +0 -1
  51. package/dist/vendor-@babel-runtime-_D8QudKm.cjs +0 -4
  52. package/dist/vendor-@floating-ui-core-Dyvby5gX.cjs +0 -1
  53. package/dist/vendor-@floating-ui-dom-CexqkosJ.cjs +0 -1
  54. package/dist/vendor-@floating-ui-utils-sUr78tUz.cjs +0 -1
  55. package/dist/vendor-@popperjs-core-Da5z8R8_.cjs +0 -1
  56. package/dist/vendor-@react-oauth-google-RY6l5Pdi.cjs +0 -1
  57. package/dist/vendor-@statsig-client-core-CcuuGlfw.cjs +0 -1
  58. package/dist/vendor-@statsig-js-client-C6n1oYZG.cjs +0 -1
  59. package/dist/vendor-@statsig-react-bindings-DVuaLZfm.cjs +0 -1
  60. package/dist/vendor-@ungap-structured-clone-BSqP9FP7.cjs +0 -1
  61. package/dist/vendor-@zeniai-client-epic-state-DWdyw6ma.cjs +0 -1
  62. package/dist/vendor-autosuggest-highlight-BrLUL75m.cjs +0 -1
  63. package/dist/vendor-bail-CPU4onRe.cjs +0 -1
  64. package/dist/vendor-big.js-BfsYTtpv.cjs +0 -1
  65. package/dist/vendor-browser-image-compression-BZPRtRQ2.cjs +0 -20
  66. package/dist/vendor-ccount-B3JMtXU-.cjs +0 -1
  67. package/dist/vendor-clsx-CAED27AB.cjs +0 -1
  68. package/dist/vendor-color-BlJDv7Qx.cjs +0 -1
  69. package/dist/vendor-color-convert-DNxf_t0v.cjs +0 -1
  70. package/dist/vendor-color-name-DMfyNIC_.cjs +0 -1
  71. package/dist/vendor-color-string-DlngRZWO.cjs +0 -1
  72. package/dist/vendor-comma-separated-tokens-CM2uar_0.cjs +0 -1
  73. package/dist/vendor-countries-list-DdDJCIea.cjs +0 -1
  74. package/dist/vendor-country-flag-icons-CaT9dyG0.cjs +0 -1
  75. package/dist/vendor-cross-fetch-BcrCP3uC.cjs +0 -2
  76. package/dist/vendor-decode-named-character-reference-CpsLJx05.cjs +0 -1
  77. package/dist/vendor-devlop-IYc_KfOj.cjs +0 -1
  78. package/dist/vendor-escape-string-regexp-CXe2COqk.cjs +0 -1
  79. package/dist/vendor-estree-util-is-identifier-name-DqXb06tQ.cjs +0 -1
  80. package/dist/vendor-extend-Xv02IcfV.cjs +0 -1
  81. package/dist/vendor-fast-deep-equal-xp5wgv1k.cjs +0 -1
  82. package/dist/vendor-hast-util-to-jsx-runtime-Cn0tASh-.cjs +0 -1
  83. package/dist/vendor-hast-util-whitespace-B7YrIln0.cjs +0 -1
  84. package/dist/vendor-html-url-attributes-B55Ir3vo.cjs +0 -1
  85. package/dist/vendor-inline-style-parser-BwLpyraz.cjs +0 -2
  86. package/dist/vendor-input-format-B4RKCxE4.cjs +0 -3
  87. package/dist/vendor-is-arrayish-DfXUb1DJ.cjs +0 -1
  88. package/dist/vendor-is-plain-obj-DH-Kh8FX.cjs +0 -1
  89. package/dist/vendor-js-file-download-Cbb6agEb.cjs +0 -1
  90. package/dist/vendor-libphonenumber-js-DkZ7WT-u.cjs +0 -13
  91. package/dist/vendor-lodash-CNz95YDD.cjs +0 -1
  92. package/dist/vendor-lodash.debounce-C9YP0rOk.cjs +0 -1
  93. package/dist/vendor-longest-streak-CpfJ7Pkv.cjs +0 -1
  94. package/dist/vendor-lottie-web-Cnpvoe-Q.cjs +0 -2
  95. package/dist/vendor-markdown-table-BIbVC1pY.cjs +0 -2
  96. package/dist/vendor-mdast-util-find-and-replace-BqOMYvvg.cjs +0 -1
  97. package/dist/vendor-mdast-util-from-markdown-DmcqmoHq.cjs +0 -1
  98. package/dist/vendor-mdast-util-gfm-DYVYZtQo.cjs +0 -1
  99. package/dist/vendor-mdast-util-gfm-autolink-literal-B7Jk_6Zc.cjs +0 -1
  100. package/dist/vendor-mdast-util-gfm-footnote-BqZr5GmF.cjs +0 -2
  101. package/dist/vendor-mdast-util-gfm-strikethrough-DkmBmVZz.cjs +0 -1
  102. package/dist/vendor-mdast-util-gfm-table-GRkZEL2K.cjs +0 -3
  103. package/dist/vendor-mdast-util-gfm-task-list-item-COkL7umh.cjs +0 -1
  104. package/dist/vendor-mdast-util-phrasing-B3pE6Gyd.cjs +0 -1
  105. package/dist/vendor-mdast-util-to-hast-DZGTy4jY.cjs +0 -11
  106. package/dist/vendor-mdast-util-to-markdown-CFDJSkr8.cjs +0 -12
  107. package/dist/vendor-mdast-util-to-string-epeputJu.cjs +0 -1
  108. package/dist/vendor-memoize-one-DetCWhre.cjs +0 -1
  109. package/dist/vendor-micromark-QT1lJ_9G.cjs +0 -3
  110. package/dist/vendor-micromark-core-commonmark-CHMYvCou.cjs +0 -1
  111. package/dist/vendor-micromark-extension-gfm-DOHEv_Ow.cjs +0 -1
  112. package/dist/vendor-micromark-extension-gfm-autolink-literal-BIi53Rt2.cjs +0 -1
  113. package/dist/vendor-micromark-extension-gfm-footnote-CuTbB2_e.cjs +0 -1
  114. package/dist/vendor-micromark-extension-gfm-strikethrough-CcuQ-v4I.cjs +0 -1
  115. package/dist/vendor-micromark-extension-gfm-table-CoYdjDBk.cjs +0 -1
  116. package/dist/vendor-micromark-extension-gfm-tagfilter-Dyvby5gX.cjs +0 -1
  117. package/dist/vendor-micromark-extension-gfm-task-list-item-eGtf7dwN.cjs +0 -1
  118. package/dist/vendor-micromark-factory-destination-DODxvNwQ.cjs +0 -1
  119. package/dist/vendor-micromark-factory-label-DRCYHbTp.cjs +0 -1
  120. package/dist/vendor-micromark-factory-space-BxE8R4nI.cjs +0 -1
  121. package/dist/vendor-micromark-factory-title-HTScd-95.cjs +0 -1
  122. package/dist/vendor-micromark-factory-whitespace-Cfovfawt.cjs +0 -1
  123. package/dist/vendor-micromark-util-character-ThpXZ0p5.cjs +0 -1
  124. package/dist/vendor-micromark-util-chunked-CCaF1jRh.cjs +0 -1
  125. package/dist/vendor-micromark-util-classify-character-BXzv_u9-.cjs +0 -1
  126. package/dist/vendor-micromark-util-combine-extensions-ymdtWEAr.cjs +0 -1
  127. package/dist/vendor-micromark-util-decode-numeric-character-reference-sKQehvtv.cjs +0 -1
  128. package/dist/vendor-micromark-util-decode-string-Coo2FPbM.cjs +0 -1
  129. package/dist/vendor-micromark-util-encode-Dyvby5gX.cjs +0 -1
  130. package/dist/vendor-micromark-util-html-tag-name-BqwwRvi2.cjs +0 -1
  131. package/dist/vendor-micromark-util-normalize-identifier-CZzRW9lF.cjs +0 -1
  132. package/dist/vendor-micromark-util-resolve-all-B1vkj8Lj.cjs +0 -1
  133. package/dist/vendor-micromark-util-sanitize-uri-fWsohj9C.cjs +0 -1
  134. package/dist/vendor-micromark-util-subtokenize-B5hanNMp.cjs +0 -1
  135. package/dist/vendor-object-assign-5rXDT7QN.cjs +0 -1
  136. package/dist/vendor-prop-types-D7ILSZ36.cjs +0 -2
  137. package/dist/vendor-property-information-B58jd_xz.cjs +0 -1
  138. package/dist/vendor-react-CzqSQR9J.cjs +0 -14
  139. package/dist/vendor-react-circular-progressbar-BnDuoTgW.cjs +0 -6
  140. package/dist/vendor-react-datepicker-GIiaQhgI.cjs +0 -2
  141. package/dist/vendor-react-draggable-rHHMjzs1.cjs +0 -3
  142. package/dist/vendor-react-error-boundary-DUjnAjoQ.cjs +0 -1
  143. package/dist/vendor-react-fast-compare-DjJCSAPj.cjs +0 -1
  144. package/dist/vendor-react-google-autocomplete-Du5iErAd.cjs +0 -2
  145. package/dist/vendor-react-hook-form-DowHtP8_.cjs +0 -1
  146. package/dist/vendor-react-is-DK4cIQ7j.cjs +0 -1
  147. package/dist/vendor-react-lottie-player-Cwb-Xhoz.cjs +0 -1
  148. package/dist/vendor-react-lottie-player-DcNoEdGF.js +0 -155
  149. package/dist/vendor-react-markdown-sVAdj9xV.cjs +0 -1
  150. package/dist/vendor-react-merge-refs-Daoz85kW.cjs +0 -1
  151. package/dist/vendor-react-number-format-QGmN0d2v.cjs +0 -7
  152. package/dist/vendor-react-onclickoutside-CjoT6SX4.cjs +0 -1
  153. package/dist/vendor-react-phone-number-input-BBnFN-wD.cjs +0 -4
  154. package/dist/vendor-react-popper-DEi6sOBD.cjs +0 -1
  155. package/dist/vendor-react-select-DufBhudz.cjs +0 -4
  156. package/dist/vendor-react-virtualized-auto-sizer-DS8s5Nqf.cjs +0 -1
  157. package/dist/vendor-react-vtree-CtDSz2Mv.cjs +0 -1
  158. package/dist/vendor-react-webcam-CPpkXthK.cjs +0 -1
  159. package/dist/vendor-react-window-CuU_qzaW.cjs +0 -1
  160. package/dist/vendor-react-window-infinite-loader-CdyCIjx6.cjs +0 -1
  161. package/dist/vendor-remark-gfm-Bou12kJi.cjs +0 -1
  162. package/dist/vendor-remark-parse-BYKtvo5n.cjs +0 -1
  163. package/dist/vendor-remark-rehype-CuqXXG-2.cjs +0 -1
  164. package/dist/vendor-rfdc-sZ2eP5eF.cjs +0 -1
  165. package/dist/vendor-simple-swizzle-BNELyqz6.cjs +0 -1
  166. package/dist/vendor-space-separated-tokens-0etuzMC1.cjs +0 -1
  167. package/dist/vendor-style-to-js-CUjGi3ge.cjs +0 -1
  168. package/dist/vendor-style-to-object--fzklQoy.cjs +0 -1
  169. package/dist/vendor-trim-lines-BO73c4j-.cjs +0 -1
  170. package/dist/vendor-trough-CZIkZM5d.cjs +0 -1
  171. package/dist/vendor-unified-hdBFtaBE.cjs +0 -1
  172. package/dist/vendor-unist-util-is-C5fG5pIe.cjs +0 -1
  173. package/dist/vendor-unist-util-position-DsgljCtl.cjs +0 -1
  174. package/dist/vendor-unist-util-stringify-position-DfmUoPWR.cjs +0 -1
  175. package/dist/vendor-unist-util-visit-Cyg51Aas.cjs +0 -1
  176. package/dist/vendor-unist-util-visit-parents-BFfGpcYZ.cjs +0 -1
  177. package/dist/vendor-us-bank-account-validator-DOz5Vc9n.cjs +0 -1
  178. package/dist/vendor-use-isomorphic-layout-effect-CkGv31zs.cjs +0 -1
  179. package/dist/vendor-use-resize-observer-FgrE0mfc.cjs +0 -1
  180. package/dist/vendor-utils-CN5UYrS0.cjs +0 -1
  181. package/dist/vendor-vfile-DagMcMZP.cjs +0 -1
  182. package/dist/vendor-vfile-message-DB4fwBOw.cjs +0 -1
  183. package/dist/vendor-warning-FOT2NNRo.cjs +0 -1
  184. package/dist/vendor-zwitch-Dyvby5gX.cjs +0 -1
@@ -1 +0,0 @@
1
- "use strict";const F=require("react");let c;typeof window<"u"?c=window:typeof self<"u"?c=self:c=global;let E=null,b=null;const N=20,y=c.clearTimeout,C=c.setTimeout,R=c.cancelAnimationFrame||c.mozCancelAnimationFrame||c.webkitCancelAnimationFrame,S=c.requestAnimationFrame||c.mozRequestAnimationFrame||c.webkitRequestAnimationFrame;R==null||S==null?(E=y,b=function(a){return C(a,N)}):(E=function([a,t]){R(a),y(t)},b=function(a){const t=S(function(){y(l),a()}),l=C(function(){R(t),a()},N);return[t,l]});function A(m){let a,t,l,_,g,f,p;const z=typeof document<"u"&&document.attachEvent;if(!z){f=function(n){const r=n.__resizeTriggers__,h=r.firstElementChild,w=r.lastElementChild,T=h.firstElementChild;w.scrollLeft=w.scrollWidth,w.scrollTop=w.scrollHeight,T.style.width=h.offsetWidth+1+"px",T.style.height=h.offsetHeight+1+"px",h.scrollLeft=h.scrollWidth,h.scrollTop=h.scrollHeight},g=function(n){return n.offsetWidth!==n.__resizeLast__.width||n.offsetHeight!==n.__resizeLast__.height},p=function(n){if(n.target.className&&typeof n.target.className.indexOf=="function"&&n.target.className.indexOf("contract-trigger")<0&&n.target.className.indexOf("expand-trigger")<0)return;const r=this;f(this),this.__resizeRAF__&&E(this.__resizeRAF__),this.__resizeRAF__=b(function(){g(r)&&(r.__resizeLast__.width=r.offsetWidth,r.__resizeLast__.height=r.offsetHeight,r.__resizeListeners__.forEach(function(T){T.call(r,n)}))})};let e=!1,i="";l="animationstart";const o="Webkit Moz O ms".split(" ");let s="webkitAnimationStart animationstart oAnimationStart MSAnimationStart".split(" "),d="";{const n=document.createElement("fakeelement");if(n.style.animationName!==void 0&&(e=!0),e===!1){for(let r=0;r<o.length;r++)if(n.style[o[r]+"AnimationName"]!==void 0){d=o[r],i="-"+d.toLowerCase()+"-",l=s[r],e=!0;break}}}t="resizeanim",a="@"+i+"keyframes "+t+" { from { opacity: 0; } to { opacity: 0; } } ",_=i+"animation: 1ms "+t+"; "}const L=function(e){if(!e.getElementById("detectElementResize")){const i=(a||"")+".resize-triggers { "+(_||"")+'visibility: hidden; opacity: 0; } .resize-triggers, .resize-triggers > div, .contract-trigger:before { content: " "; display: block; position: absolute; top: 0; left: 0; height: 100%; width: 100%; overflow: hidden; z-index: -1; } .resize-triggers > div { background: #eee; overflow: auto; } .contract-trigger:before { width: 200%; height: 200%; }',o=e.head||e.getElementsByTagName("head")[0],s=e.createElement("style");s.id="detectElementResize",s.type="text/css",m!=null&&s.setAttribute("nonce",m),s.styleSheet?s.styleSheet.cssText=i:s.appendChild(e.createTextNode(i)),o.appendChild(s)}};return{addResizeListener:function(e,i){if(z)e.attachEvent("onresize",i);else{if(!e.__resizeTriggers__){const o=e.ownerDocument,s=c.getComputedStyle(e);s&&s.position==="static"&&(e.style.position="relative"),L(o),e.__resizeLast__={},e.__resizeListeners__=[],(e.__resizeTriggers__=o.createElement("div")).className="resize-triggers";const d=o.createElement("div");d.className="expand-trigger",d.appendChild(o.createElement("div"));const n=o.createElement("div");n.className="contract-trigger",e.__resizeTriggers__.appendChild(d),e.__resizeTriggers__.appendChild(n),e.appendChild(e.__resizeTriggers__),f(e),e.addEventListener("scroll",p,!0),l&&(e.__resizeTriggers__.__animationListener__=function(h){h.animationName===t&&f(e)},e.__resizeTriggers__.addEventListener(l,e.__resizeTriggers__.__animationListener__))}e.__resizeListeners__.push(i)}},removeResizeListener:function(e,i){if(z)e.detachEvent("onresize",i);else if(e.__resizeListeners__.splice(e.__resizeListeners__.indexOf(i),1),!e.__resizeListeners__.length){e.removeEventListener("scroll",p,!0),e.__resizeTriggers__.__animationListener__&&(e.__resizeTriggers__.removeEventListener(l,e.__resizeTriggers__.__animationListener__),e.__resizeTriggers__.__animationListener__=null);try{e.__resizeTriggers__=!e.removeChild(e.__resizeTriggers__)}catch{}}}}}class x extends F.Component{constructor(...a){super(...a),this.state={height:this.props.defaultHeight||0,width:this.props.defaultWidth||0},this._autoSizer=null,this._detectElementResize=null,this._didLogDeprecationWarning=!1,this._parentNode=null,this._resizeObserver=null,this._timeoutId=null,this._onResize=()=>{this._timeoutId=null;const{disableHeight:t,disableWidth:l,onResize:_}=this.props;if(this._parentNode){const g=window.getComputedStyle(this._parentNode)||{},f=parseFloat(g.paddingLeft||"0"),p=parseFloat(g.paddingRight||"0"),z=parseFloat(g.paddingTop||"0"),L=parseFloat(g.paddingBottom||"0"),v=this._parentNode.getBoundingClientRect(),u=v.height-z-L,e=v.width-f-p;if(!t&&this.state.height!==u||!l&&this.state.width!==e){this.setState({height:u,width:e});const i=()=>{this._didLogDeprecationWarning||(this._didLogDeprecationWarning=!0,console.warn("scaledWidth and scaledHeight parameters have been deprecated; use width and height instead"))};typeof _=="function"&&_({height:u,width:e,get scaledHeight(){return i(),u},get scaledWidth(){return i(),e}})}}},this._setRef=t=>{this._autoSizer=t}}componentDidMount(){const{nonce:a}=this.props,t=this._autoSizer?this._autoSizer.parentNode:null;if(t!=null&&t.ownerDocument&&t.ownerDocument.defaultView&&t instanceof t.ownerDocument.defaultView.HTMLElement){this._parentNode=t;const l=t.ownerDocument.defaultView.ResizeObserver;l!=null?(this._resizeObserver=new l(()=>{this._timeoutId=setTimeout(this._onResize,0)}),this._resizeObserver.observe(t)):(this._detectElementResize=A(a),this._detectElementResize.addResizeListener(t,this._onResize)),this._onResize()}}componentWillUnmount(){this._parentNode&&(this._detectElementResize&&this._detectElementResize.removeResizeListener(this._parentNode,this._onResize),this._timeoutId!==null&&clearTimeout(this._timeoutId),this._resizeObserver&&this._resizeObserver.disconnect())}render(){const{children:a,defaultHeight:t,defaultWidth:l,disableHeight:_=!1,disableWidth:g=!1,doNotBailOutOnEmptyChildren:f=!1,nonce:p,onResize:z,style:L={},tagName:v="div",...u}=this.props,{height:e,width:i}=this.state,o={overflow:"visible"},s={};let d=!1;return _||(e===0&&(d=!0),o.height=0,s.height=e,s.scaledHeight=e),g||(i===0&&(d=!0),o.width=0,s.width=i,s.scaledWidth=i),f&&(d=!1),F.createElement(v,{ref:this._setRef,style:{...o,...L},...u},!d&&a(s))}}exports.AutoSizer=x;
@@ -1 +0,0 @@
1
- "use strict";const k=require("react"),b=require("./vendor-@babel-runtime-_D8QudKm.cjs"),N=require("./vendor-react-window-CuU_qzaW.cjs"),P=require("./vendor-react-merge-refs-Daoz85kW.cjs");var w=function(){},M=function(a,n){return n===void 0&&(n=null),{child:null,isShown:n?n.public.isOpen&&n.isShown:!0,parent:n,public:a,sibling:null,visited:!1}},R=function(a,n){var i=n.getRecordData,t=i(a),e=t.data.id;return e},B=function(a){var n=a.index,i=a.data,t=i.component,e=i.getRecordData,r=i.treeData,l=a.style,u=a.isScrolling,c=e(n);return k.createElement(t,Object.assign({isScrolling:u,style:l,treeData:r},c))},L=function(a,n,i){var t=a.createRecord,e=n.buildingTaskTimeout,r=n.placeholder,l=n.async,u=l===void 0?!1:l,c=n.treeWalker,p=u&&i.records!==void 0,m=i.records,I=[],S=new Map,_=e?{timeout:e}:void 0,s=new WeakMap,T=c(),h=T.next(),D=h.value,d=t(D.data,i,void 0,p?m.get(D.data.id):void 0);S.set(d.public.data.id,d),s.set(d,D);var o=d,v=!0,g=d,O=r!==void 0&&!(r===null&&!i.order),W=O?function($){return $.timeRemaining()>0}:function(){return!0},y=function $(q){for(;o!==null;){if(!W(q)){requestIdleCallback($,_);return}if(o.visited)o.visited=!1,o=o.sibling!==null?o.sibling:o.parent,g=o;else{var E=T.next(s.get(o)),z=E.value;if(z===void 0){v?v=!1:(o.isShown&&I.push(o.public.data.id),o.visited=o.child!==null,o=o.child!==null?o.child:o.sibling!==null?o.sibling:o.parent),g=o;continue}var x=t(z.data,i,v?void 0:o,p?m.get(z.data.id):void 0);S.set(x.public.data.id,x),s.set(x,z),!v&&g===o?g.child=x:g.sibling=x,g=x}}O&&i.setState({order:I,records:S,updateRequest:{}})};return O?requestIdleCallback(y,_):y(),r!==void 0&&u&&i.order?i:{order:I,records:S}},C=32768,j=2,V=function(a,n){var i=a.order,t=a.records,e=n.opennessState;if(typeof e!="object")return null;for(var r in e)if(t.has(r)){var l=e[r],u=t.get(r),c=typeof l=="boolean"?{open:l}:l,p=c.open,m=c.subtreeCallback,I=m===void 0?w:m,S=w,_=w;u.isShown&&(p?(function(){for(var T=i.indexOf(r),h=u;h!==null;){if(h.sibling!==null){h=h.sibling;break}h=h.parent}var D=h===null?i.length-1-T:i.indexOf(h.public.data.id)-1-T,d=[[T+1,D]];S=function(v){if(v.isShown=v.parent?v.parent.public.isOpen&&v.parent.isShown:!0,v.isShown){var g=d[d.length-1];g.push(v.public.data.id),g.length===C+j&&d.push([T+1+C*d.length,0])}},_=function(){for(var v=0;v<d.length;v++){var g;(g=i).splice.apply(g,d[v])}}})():u.public.isOpen&&(function(){var T=i.indexOf(r),h=0;S=function(d){d.isShown&&(h+=1),d.isShown=d.parent?d.parent.public.isOpen&&d.parent.isShown:!0},_=function(){i.splice(T+1,h)}})());for(var s=u;s!==null;)s.visited?(s.visited=!1,s=s===u?null:s.sibling!==null?s.sibling:s.parent):(s.public.isOpen=s===u?p:s.public.isOpen,I(s.public,u.public),s!==u&&S(s),s.visited=s.child!==null,s=s.child!==null?s.child:s===u?null:s.sibling!==null?s.sibling:s.parent);_()}return{order:i,records:t,updateRequest:{}}},U=function(a){return function(n,i,t){return t.refresh?L(a,n,i):V(i,t)}},A=(function(f){b._inheritsLoose(a,f),a.getDerivedStateFromProps=function(t,e){var r=t.listRef,l=r===void 0?null:r,u=t.treeWalker,c=e.computeTree,p=e.list,m=e.order,I=e.treeWalker;return b._extends({attachRefs:P.mergeRefs([p,l])},u!==I||!m?c(t,e,{refresh:!0}):null,{treeWalker:u})};function a(i,t){var e;return e=f.call(this,i,t)||this,e.getRecordData=e.getRecordData.bind(b._assertThisInitialized(e)),e.state={list:k.createRef(),recomputeTree:e.recomputeTree.bind(b._assertThisInitialized(e)),setState:e.setState.bind(b._assertThisInitialized(e))},e}var n=a.prototype;return n.getItemData=function(){var t=this.props,e=t.children,r=t.itemData;return{component:e,getRecordData:this.getRecordData,treeData:r}},n.getRecordData=function(t){var e=this.state,r=e.order,l=e.records;return l.get(r[t]).public},n.recomputeTree=function(t){var e=this;return new Promise(function(r){e.setState(function(l){return l.computeTree(e.props,l,{opennessState:t})},r)})},n.scrollTo=function(t){var e;(e=this.state.list.current)==null||e.scrollTo(t)},n.scrollToItem=function(t,e){var r;(r=this.state.list.current)==null||r.scrollToItem(this.state.order.indexOf(t),e)},a})(k.PureComponent);A.defaultProps={rowComponent:B};var F=U({createRecord:function(a,n,i,t){var e=n.recomputeTree,r=n.resetAfterId,l=M({data:a,height:t?t.public.height:a.defaultHeight,isOpen:t?t.public.isOpen:a.isOpenByDefault,resize:function(c,p){l.public.height=c,r(l.public.data.id,p)},setOpen:function(c){var p;return e((p={},p[a.id]=c,p))}},i);return l}}),G=(function(f){b._inheritsLoose(a,f);function a(i,t){var e;return e=f.call(this,i,t)||this,e.getItemSize=e.getItemSize.bind(b._assertThisInitialized(e)),e.state=b._extends({},e.state,{computeTree:F,resetAfterId:e.resetAfterId.bind(b._assertThisInitialized(e))}),e}var n=a.prototype;return n.resetAfterId=function(t,e){var r;e===void 0&&(e=!1);var l=this.state,u=l.list,c=l.order;(r=u.current)==null||r.resetAfterIndex(c.indexOf(t),e)},n.recomputeTree=function(t){var e=this;return f.prototype.recomputeTree.call(this,t).then(function(){var r;(r=e.state.list.current)==null||r.resetAfterIndex(0,!0)})},n.render=function(){var t=this.props;t.children;var e=t.placeholder,r=t.itemSize,l=t.rowComponent;t.treeWalker;var u=b._objectWithoutPropertiesLoose(t,["children","placeholder","itemSize","rowComponent","treeWalker"]),c=this.state,p=c.attachRefs,m=c.order;return e&&m.length===0?e:k.createElement(N.VariableSizeList,Object.assign({},u,{itemCount:m.length,itemData:this.getItemData(),itemKey:R,itemSize:r??this.getItemSize,ref:p}),l)},n.getItemSize=function(t){return this.getRecordData(t).height},a})(A);exports.VariableSizeTree=G;
@@ -1 +0,0 @@
1
- "use strict";const j=require("./vendor-react-CzqSQR9J.cjs"),E=require("react");var U={exports:{}},W=U.exports,O;function I(){return O||(O=1,(function(w,A){(function(m,g){w.exports=g(E)})(W,function(b){return(function(m){var g={};function u(n){if(g[n])return g[n].exports;var a=g[n]={i:n,l:!1,exports:{}};return m[n].call(a.exports,a,a.exports,u),a.l=!0,a.exports}return u.m=m,u.c=g,u.d=function(n,a,p){u.o(n,a)||Object.defineProperty(n,a,{enumerable:!0,get:p})},u.r=function(n){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(n,"__esModule",{value:!0})},u.t=function(n,a){if(a&1&&(n=u(n)),a&8||a&4&&typeof n=="object"&&n&&n.__esModule)return n;var p=Object.create(null);if(u.r(p),Object.defineProperty(p,"default",{enumerable:!0,value:n}),a&2&&typeof n!="string")for(var S in n)u.d(p,S,(function(M){return n[M]}).bind(null,S));return p},u.n=function(n){var a=n&&n.__esModule?function(){return n.default}:function(){return n};return u.d(a,"a",a),a},u.o=function(n,a){return Object.prototype.hasOwnProperty.call(n,a)},u.p="",u(u.s="./src/react-webcam.tsx")})({"./src/react-webcam.tsx":(function(m,g,u){u.r(g);var n=u("react"),a=(function(){var f=function(o,e){return f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var r in i)i.hasOwnProperty(r)&&(t[r]=i[r])},f(o,e)};return function(o,e){f(o,e);function t(){this.constructor=o}o.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}})(),p=function(){return p=Object.assign||function(f){for(var o,e=1,t=arguments.length;e<t;e++){o=arguments[e];for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(f[i]=o[i])}return f},p.apply(this,arguments)},S=function(f,o){var e={};for(var t in f)Object.prototype.hasOwnProperty.call(f,t)&&o.indexOf(t)<0&&(e[t]=f[t]);if(f!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,t=Object.getOwnPropertySymbols(f);i<t.length;i++)o.indexOf(t[i])<0&&Object.prototype.propertyIsEnumerable.call(f,t[i])&&(e[t[i]]=f[t[i]]);return e};(function(){typeof window>"u"||(navigator.mediaDevices===void 0&&(navigator.mediaDevices={}),navigator.mediaDevices.getUserMedia===void 0&&(navigator.mediaDevices.getUserMedia=function(o){var e=navigator.getUserMedia||navigator.webkitGetUserMedia||navigator.mozGetUserMedia||navigator.msGetUserMedia;return e?new Promise(function(t,i){e.call(navigator,o,t,i)}):Promise.reject(new Error("getUserMedia is not implemented in this browser"))}))})();function M(){return!!(navigator.mediaDevices&&navigator.mediaDevices.getUserMedia)}var _=(function(f){a(o,f);function o(e){var t=f.call(this,e)||this;return t.canvas=null,t.ctx=null,t.requestUserMediaId=0,t.unmounted=!1,t.state={hasUserMedia:!1},t}return o.prototype.componentDidMount=function(){var e=this,t=e.state,i=e.props;if(this.unmounted=!1,!M()){i.onUserMediaError("getUserMedia not supported");return}t.hasUserMedia||this.requestUserMedia(),i.children&&typeof i.children!="function"&&console.warn("children must be a function")},o.prototype.componentDidUpdate=function(e){var t=this.props;if(!M()){t.onUserMediaError("getUserMedia not supported");return}var i=JSON.stringify(e.audioConstraints)!==JSON.stringify(t.audioConstraints),r=JSON.stringify(e.videoConstraints)!==JSON.stringify(t.videoConstraints),h=e.minScreenshotWidth!==t.minScreenshotWidth,c=e.minScreenshotHeight!==t.minScreenshotHeight;(r||h||c)&&(this.canvas=null,this.ctx=null),(i||r)&&(this.stopAndCleanup(),this.requestUserMedia())},o.prototype.componentWillUnmount=function(){this.unmounted=!0,this.stopAndCleanup()},o.stopMediaStream=function(e){e&&(e.getVideoTracks&&e.getAudioTracks?(e.getVideoTracks().map(function(t){e.removeTrack(t),t.stop()}),e.getAudioTracks().map(function(t){e.removeTrack(t),t.stop()})):e.stop())},o.prototype.stopAndCleanup=function(){var e=this.state;e.hasUserMedia&&(o.stopMediaStream(this.stream),e.src&&window.URL.revokeObjectURL(e.src))},o.prototype.getScreenshot=function(e){var t=this,i=t.state,r=t.props;if(!i.hasUserMedia)return null;var h=this.getCanvas(e);return h&&h.toDataURL(r.screenshotFormat,r.screenshotQuality)},o.prototype.getCanvas=function(e){var t=this,i=t.state,r=t.props;if(!this.video||!i.hasUserMedia||!this.video.videoHeight)return null;if(!this.ctx){var h=this.video.videoWidth,c=this.video.videoHeight;if(!this.props.forceScreenshotSourceSize){var d=h/c;h=r.minScreenshotWidth||this.video.clientWidth,c=h/d,r.minScreenshotHeight&&c<r.minScreenshotHeight&&(c=r.minScreenshotHeight,h=c*d)}this.canvas=document.createElement("canvas"),this.canvas.width=e?.width||h,this.canvas.height=e?.height||c,this.ctx=this.canvas.getContext("2d")}var v=this,l=v.ctx,s=v.canvas;return l&&s&&(s.width=e?.width||s.width,s.height=e?.height||s.height,r.mirrored&&(l.translate(s.width,0),l.scale(-1,1)),l.imageSmoothingEnabled=r.imageSmoothing,l.drawImage(this.video,0,0,e?.width||s.width,e?.height||s.height),r.mirrored&&(l.scale(-1,1),l.translate(-s.width,0))),s},o.prototype.requestUserMedia=function(){var e=this,t=this.props,i=function(c,d){var v={video:typeof d<"u"?d:!0};t.audio&&(v.audio=typeof c<"u"?c:!0),e.requestUserMediaId++;var l=e.requestUserMediaId;navigator.mediaDevices.getUserMedia(v).then(function(s){e.unmounted||l!==e.requestUserMediaId?o.stopMediaStream(s):e.handleUserMedia(null,s)}).catch(function(s){e.handleUserMedia(s)})};if("mediaDevices"in navigator)i(t.audioConstraints,t.videoConstraints);else{var r=function(c){return{optional:[{sourceId:c}]}},h=function(c){var d=c.deviceId;return typeof d=="string"?d:Array.isArray(d)&&d.length>0?d[0]:typeof d=="object"&&d.ideal?d.ideal:null};MediaStreamTrack.getSources(function(c){var d=null,v=null;c.forEach(function(y){y.kind==="audio"?d=y.id:y.kind==="video"&&(v=y.id)});var l=h(t.audioConstraints);l&&(d=l);var s=h(t.videoConstraints);s&&(v=s),i(r(d),r(v))})}},o.prototype.handleUserMedia=function(e,t){var i=this.props;if(e||!t){this.setState({hasUserMedia:!1}),i.onUserMediaError(e);return}this.stream=t;try{this.video&&(this.video.srcObject=t),this.setState({hasUserMedia:!0})}catch{this.setState({hasUserMedia:!0,src:window.URL.createObjectURL(t)})}i.onUserMedia(t)},o.prototype.render=function(){var e=this,t=this,i=t.state,r=t.props,h=r.audio;r.forceScreenshotSourceSize;var c=r.disablePictureInPicture;r.onUserMedia,r.onUserMediaError,r.screenshotFormat,r.screenshotQuality,r.minScreenshotWidth,r.minScreenshotHeight,r.audioConstraints,r.videoConstraints,r.imageSmoothing;var d=r.mirrored,v=r.style,l=v===void 0?{}:v,s=r.children,y=S(r,["audio","forceScreenshotSourceSize","disablePictureInPicture","onUserMedia","onUserMediaError","screenshotFormat","screenshotQuality","minScreenshotWidth","minScreenshotHeight","audioConstraints","videoConstraints","imageSmoothing","mirrored","style","children"]),C=d?p(p({},l),{transform:(l.transform||"")+" scaleX(-1)"}):l,P={getScreenshot:this.getScreenshot.bind(this)};return n.createElement(n.Fragment,null,n.createElement("video",p({autoPlay:!0,disablePictureInPicture:c,src:i.src,muted:!h,playsInline:!0,ref:function(x){e.video=x},style:C},y)),s&&s(P))},o.defaultProps={audio:!1,disablePictureInPicture:!1,forceScreenshotSourceSize:!1,imageSmoothing:!0,mirrored:!1,onUserMedia:function(){},onUserMediaError:function(){},screenshotFormat:"image/webp",screenshotQuality:.92},o})(n.Component);g.default=_}),react:(function(m,g){m.exports=b})}).default})})(U)),U.exports}var q=I();const R=j.getDefaultExportFromCjs(q);exports.Webcam=R;
@@ -1 +0,0 @@
1
- "use strict";const _=require("./vendor-@babel-runtime-_D8QudKm.cjs"),P=require("./vendor-memoize-one-DetCWhre.cjs"),R=require("react");var ne=typeof performance=="object"&&typeof performance.now=="function",q=ne?function(){return performance.now()}:function(){return Date.now()};function U(o){cancelAnimationFrame(o.id)}function ae(o,t){var i=q();function r(){q()-i>=t?o.call(null):a.id=requestAnimationFrame(r)}var a={id:requestAnimationFrame(r)};return a}var F=-1;function H(o){if(o===void 0&&(o=!1),F===-1||o){var t=document.createElement("div"),i=t.style;i.width="50px",i.height="50px",i.overflow="scroll",document.body.appendChild(t),F=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return F}var O=null;function K(o){if(o===void 0&&(o=!1),O===null||o){var t=document.createElement("div"),i=t.style;i.width="50px",i.height="50px",i.overflow="scroll",i.direction="rtl";var r=document.createElement("div"),a=r.style;return a.width="100px",a.height="100px",t.appendChild(r),document.body.appendChild(t),t.scrollLeft>0?O="positive-descending":(t.scrollLeft=1,t.scrollLeft===0?O="negative":O="positive-ascending"),document.body.removeChild(t),O}return O}process.env.NODE_ENV;var oe=150,se=function(t,i){return t},W=null,A=null;process.env.NODE_ENV!=="production"&&typeof window<"u"&&typeof window.WeakSet<"u"&&(W=new WeakSet,A=new WeakSet);function G(o){var t,i=o.getItemOffset,r=o.getEstimatedTotalSize,a=o.getItemSize,l=o.getOffsetForIndexAndAlignment,c=o.getStartIndexForOffset,f=o.getStopIndexForStartIndex,I=o.initInstanceProps,S=o.shouldResetStyleCacheOnItemSizeChange,m=o.validateProps;return t=(function(w){_._inheritsLoose(M,w);function M(v){var e;return e=w.call(this,v)||this,e._instanceProps=I(e.props,_._assertThisInitialized(e)),e._outerRef=void 0,e._resetIsScrollingTimeoutId=null,e.state={instance:_._assertThisInitialized(e),isScrolling:!1,scrollDirection:"forward",scrollOffset:typeof e.props.initialScrollOffset=="number"?e.props.initialScrollOffset:0,scrollUpdateWasRequested:!1},e._callOnItemsRendered=void 0,e._callOnItemsRendered=P.memoizeOne$1(function(n,s,u,h){return e.props.onItemsRendered({overscanStartIndex:n,overscanStopIndex:s,visibleStartIndex:u,visibleStopIndex:h})}),e._callOnScroll=void 0,e._callOnScroll=P.memoizeOne$1(function(n,s,u){return e.props.onScroll({scrollDirection:n,scrollOffset:s,scrollUpdateWasRequested:u})}),e._getItemStyle=void 0,e._getItemStyle=function(n){var s=e.props,u=s.direction,h=s.itemSize,g=s.layout,d=e._getItemStyleCache(S&&h,S&&g,S&&u),p;if(d.hasOwnProperty(n))p=d[n];else{var y=i(e.props,n,e._instanceProps),T=a(e.props,n,e._instanceProps),b=u==="horizontal"||g==="horizontal",E=u==="rtl",N=b?y:0;d[n]=p={position:"absolute",left:E?void 0:N,right:E?N:void 0,top:b?0:y,height:b?"100%":T,width:b?T:"100%"}}return p},e._getItemStyleCache=void 0,e._getItemStyleCache=P.memoizeOne$1(function(n,s,u){return{}}),e._onScrollHorizontal=function(n){var s=n.currentTarget,u=s.clientWidth,h=s.scrollLeft,g=s.scrollWidth;e.setState(function(d){if(d.scrollOffset===h)return null;var p=e.props.direction,y=h;if(p==="rtl")switch(K()){case"negative":y=-h;break;case"positive-descending":y=g-u-h;break}return y=Math.max(0,Math.min(y,g-u)),{isScrolling:!0,scrollDirection:d.scrollOffset<y?"forward":"backward",scrollOffset:y,scrollUpdateWasRequested:!1}},e._resetIsScrollingDebounced)},e._onScrollVertical=function(n){var s=n.currentTarget,u=s.clientHeight,h=s.scrollHeight,g=s.scrollTop;e.setState(function(d){if(d.scrollOffset===g)return null;var p=Math.max(0,Math.min(g,h-u));return{isScrolling:!0,scrollDirection:d.scrollOffset<p?"forward":"backward",scrollOffset:p,scrollUpdateWasRequested:!1}},e._resetIsScrollingDebounced)},e._outerRefSetter=function(n){var s=e.props.outerRef;e._outerRef=n,typeof s=="function"?s(n):s!=null&&typeof s=="object"&&s.hasOwnProperty("current")&&(s.current=n)},e._resetIsScrollingDebounced=function(){e._resetIsScrollingTimeoutId!==null&&U(e._resetIsScrollingTimeoutId),e._resetIsScrollingTimeoutId=ae(e._resetIsScrolling,oe)},e._resetIsScrolling=function(){e._resetIsScrollingTimeoutId=null,e.setState({isScrolling:!1},function(){e._getItemStyleCache(-1,null)})},e}M.getDerivedStateFromProps=function(e,n){return le(e,n),m(e),null};var z=M.prototype;return z.scrollTo=function(e){e=Math.max(0,e),this.setState(function(n){return n.scrollOffset===e?null:{scrollDirection:n.scrollOffset<e?"forward":"backward",scrollOffset:e,scrollUpdateWasRequested:!0}},this._resetIsScrollingDebounced)},z.scrollToItem=function(e,n){n===void 0&&(n="auto");var s=this.props,u=s.itemCount,h=s.layout,g=this.state.scrollOffset;e=Math.max(0,Math.min(e,u-1));var d=0;if(this._outerRef){var p=this._outerRef;h==="vertical"?d=p.scrollWidth>p.clientWidth?H():0:d=p.scrollHeight>p.clientHeight?H():0}this.scrollTo(l(this.props,e,n,g,this._instanceProps,d))},z.componentDidMount=function(){var e=this.props,n=e.direction,s=e.initialScrollOffset,u=e.layout;if(typeof s=="number"&&this._outerRef!=null){var h=this._outerRef;n==="horizontal"||u==="horizontal"?h.scrollLeft=s:h.scrollTop=s}this._callPropsCallbacks()},z.componentDidUpdate=function(){var e=this.props,n=e.direction,s=e.layout,u=this.state,h=u.scrollOffset,g=u.scrollUpdateWasRequested;if(g&&this._outerRef!=null){var d=this._outerRef;if(n==="horizontal"||s==="horizontal")if(n==="rtl")switch(K()){case"negative":d.scrollLeft=-h;break;case"positive-ascending":d.scrollLeft=h;break;default:var p=d.clientWidth,y=d.scrollWidth;d.scrollLeft=y-p-h;break}else d.scrollLeft=h;else d.scrollTop=h}this._callPropsCallbacks()},z.componentWillUnmount=function(){this._resetIsScrollingTimeoutId!==null&&U(this._resetIsScrollingTimeoutId)},z.render=function(){var e=this.props,n=e.children,s=e.className,u=e.direction,h=e.height,g=e.innerRef,d=e.innerElementType,p=e.innerTagName,y=e.itemCount,T=e.itemData,b=e.itemKey,E=b===void 0?se:b,N=e.layout,J=e.outerElementType,Q=e.outerTagName,X=e.style,Y=e.useIsScrolling,ee=e.width,L=this.state.isScrolling,D=u==="horizontal"||N==="horizontal",te=D?this._onScrollHorizontal:this._onScrollVertical,k=this._getRangeToRender(),ie=k[0],re=k[1],$=[];if(y>0)for(var C=ie;C<=re;C++)$.push(R.createElement(n,{data:T,key:E(C,T),index:C,isScrolling:Y?L:void 0,style:this._getItemStyle(C)}));var V=r(this.props,this._instanceProps);return R.createElement(J||Q||"div",{className:s,onScroll:te,ref:this._outerRefSetter,style:_._extends({position:"relative",height:h,width:ee,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:u},X)},R.createElement(d||p||"div",{children:$,ref:g,style:{height:D?"100%":V,pointerEvents:L?"none":void 0,width:D?V:"100%"}}))},z._callPropsCallbacks=function(){if(typeof this.props.onItemsRendered=="function"){var e=this.props.itemCount;if(e>0){var n=this._getRangeToRender(),s=n[0],u=n[1],h=n[2],g=n[3];this._callOnItemsRendered(s,u,h,g)}}if(typeof this.props.onScroll=="function"){var d=this.state,p=d.scrollDirection,y=d.scrollOffset,T=d.scrollUpdateWasRequested;this._callOnScroll(p,y,T)}},z._getRangeToRender=function(){var e=this.props,n=e.itemCount,s=e.overscanCount,u=this.state,h=u.isScrolling,g=u.scrollDirection,d=u.scrollOffset;if(n===0)return[0,0,0,0];var p=c(this.props,d,this._instanceProps),y=f(this.props,p,d,this._instanceProps),T=!h||g==="backward"?Math.max(1,s):1,b=!h||g==="forward"?Math.max(1,s):1;return[Math.max(0,p-T),Math.max(0,Math.min(n-1,y+b)),p,y]},M})(R.PureComponent),t.defaultProps={direction:"ltr",itemData:void 0,layout:"vertical",overscanCount:2,useIsScrolling:!1},t}var le=function(t,i){var r=t.children,a=t.direction,l=t.height,c=t.layout,f=t.innerTagName,I=t.outerTagName,S=t.width,m=i.instance;if(process.env.NODE_ENV!=="production"){(f!=null||I!=null)&&A&&!A.has(m)&&(A.add(m),console.warn("The innerTagName and outerTagName props have been deprecated. Please use the innerElementType and outerElementType props instead."));var w=a==="horizontal"||c==="horizontal";switch(a){case"horizontal":case"vertical":W&&!W.has(m)&&(W.add(m),console.warn('The direction prop should be either "ltr" (default) or "rtl". Please use the layout prop to specify "vertical" (default) or "horizontal" orientation.'));break;case"ltr":case"rtl":break;default:throw Error('An invalid "direction" prop has been specified. Value should be either "ltr" or "rtl". '+('"'+a+'" was specified.'))}switch(c){case"horizontal":case"vertical":break;default:throw Error('An invalid "layout" prop has been specified. Value should be either "horizontal" or "vertical". '+('"'+c+'" was specified.'))}if(r==null)throw Error('An invalid "children" prop has been specified. Value should be a React component. '+('"'+(r===null?"null":typeof r)+'" was specified.'));if(w&&typeof S!="number")throw Error('An invalid "width" prop has been specified. Horizontal lists must specify a number for width. '+('"'+(S===null?"null":typeof S)+'" was specified.'));if(!w&&typeof l!="number")throw Error('An invalid "height" prop has been specified. Vertical lists must specify a number for height. '+('"'+(l===null?"null":typeof l)+'" was specified.'))}},ce=50,x=function(t,i,r){var a=t,l=a.itemSize,c=r.itemMetadataMap,f=r.lastMeasuredIndex;if(i>f){var I=0;if(f>=0){var S=c[f];I=S.offset+S.size}for(var m=f+1;m<=i;m++){var w=l(m);c[m]={offset:I,size:w},I+=w}r.lastMeasuredIndex=i}return c[i]},ue=function(t,i,r){var a=i.itemMetadataMap,l=i.lastMeasuredIndex,c=l>0?a[l].offset:0;return c>=r?Z(t,i,l,0,r):de(t,i,Math.max(0,l),r)},Z=function(t,i,r,a,l){for(;a<=r;){var c=a+Math.floor((r-a)/2),f=x(t,c,i).offset;if(f===l)return c;f<l?a=c+1:f>l&&(r=c-1)}return a>0?a-1:0},de=function(t,i,r,a){for(var l=t.itemCount,c=1;r<l&&x(t,r,i).offset<a;)r+=c,c*=2;return Z(t,i,Math.min(r,l-1),Math.floor(r/2),a)},j=function(t,i){var r=t.itemCount,a=i.itemMetadataMap,l=i.estimatedItemSize,c=i.lastMeasuredIndex,f=0;if(c>=r&&(c=r-1),c>=0){var I=a[c];f=I.offset+I.size}var S=r-c-1,m=S*l;return f+m},fe=G({getItemOffset:function(t,i,r){return x(t,i,r).offset},getItemSize:function(t,i,r){return r.itemMetadataMap[i].size},getEstimatedTotalSize:j,getOffsetForIndexAndAlignment:function(t,i,r,a,l,c){var f=t.direction,I=t.height,S=t.layout,m=t.width,w=f==="horizontal"||S==="horizontal",M=w?m:I,z=x(t,i,l),v=j(t,l),e=Math.max(0,Math.min(v-M,z.offset)),n=Math.max(0,z.offset-M+z.size+c);switch(r==="smart"&&(a>=n-M&&a<=e+M?r="auto":r="center"),r){case"start":return e;case"end":return n;case"center":return Math.round(n+(e-n)/2);default:return a>=n&&a<=e?a:a<n?n:e}},getStartIndexForOffset:function(t,i,r){return ue(t,r,i)},getStopIndexForStartIndex:function(t,i,r,a){for(var l=t.direction,c=t.height,f=t.itemCount,I=t.layout,S=t.width,m=l==="horizontal"||I==="horizontal",w=m?S:c,M=x(t,i,a),z=r+w,v=M.offset+M.size,e=i;e<f-1&&v<z;)e++,v+=x(t,e,a).size;return e},initInstanceProps:function(t,i){var r=t,a=r.estimatedItemSize,l={itemMetadataMap:{},estimatedItemSize:a||ce,lastMeasuredIndex:-1};return i.resetAfterIndex=function(c,f){f===void 0&&(f=!0),l.lastMeasuredIndex=Math.min(l.lastMeasuredIndex,c-1),i._getItemStyleCache(-1),f&&i.forceUpdate()},l},shouldResetStyleCacheOnItemSizeChange:!1,validateProps:function(t){var i=t.itemSize;if(process.env.NODE_ENV!=="production"&&typeof i!="function")throw Error('An invalid "itemSize" prop has been specified. Value should be a function. '+('"'+(i===null?"null":typeof i)+'" was specified.'))}}),he=G({getItemOffset:function(t,i){var r=t.itemSize;return i*r},getItemSize:function(t,i){var r=t.itemSize;return r},getEstimatedTotalSize:function(t){var i=t.itemCount,r=t.itemSize;return r*i},getOffsetForIndexAndAlignment:function(t,i,r,a,l,c){var f=t.direction,I=t.height,S=t.itemCount,m=t.itemSize,w=t.layout,M=t.width,z=f==="horizontal"||w==="horizontal",v=z?M:I,e=Math.max(0,S*m-v),n=Math.min(e,i*m),s=Math.max(0,i*m-v+m+c);switch(r==="smart"&&(a>=s-v&&a<=n+v?r="auto":r="center"),r){case"start":return n;case"end":return s;case"center":{var u=Math.round(s+(n-s)/2);return u<Math.ceil(v/2)?0:u>e+Math.floor(v/2)?e:u}default:return a>=s&&a<=n?a:a<s?s:n}},getStartIndexForOffset:function(t,i){var r=t.itemCount,a=t.itemSize;return Math.max(0,Math.min(r-1,Math.floor(i/a)))},getStopIndexForStartIndex:function(t,i,r){var a=t.direction,l=t.height,c=t.itemCount,f=t.itemSize,I=t.layout,S=t.width,m=a==="horizontal"||I==="horizontal",w=i*f,M=m?S:l,z=Math.ceil((M+r-w)/f);return Math.max(0,Math.min(c-1,i+z-1))},initInstanceProps:function(t){},shouldResetStyleCacheOnItemSizeChange:!0,validateProps:function(t){var i=t.itemSize;if(process.env.NODE_ENV!=="production"&&typeof i!="number")throw Error('An invalid "itemSize" prop has been specified. Value should be a number. '+('"'+(i===null?"null":typeof i)+'" was specified.'))}});function B(o,t){for(var i in o)if(!(i in t))return!0;for(var r in t)if(o[r]!==t[r])return!0;return!1}var me=["style"],pe=["style"];function ve(o,t){var i=o.style,r=_._objectWithoutPropertiesLoose(o,me),a=t.style,l=_._objectWithoutPropertiesLoose(t,pe);return!B(i,a)&&!B(r,l)}exports.FixedSizeList=he;exports.VariableSizeList=fe;exports.areEqual=ve;
@@ -1 +0,0 @@
1
- "use strict";const R=require("react");function h(n){return typeof n=="number"&&isFinite(n)&&Math.floor(n)===n}function v(n){var t=n.lastRenderedStartIndex,a=n.lastRenderedStopIndex,o=n.startIndex,e=n.stopIndex;return!(o>a||e<t)}function _(n){for(var t=n.isItemLoaded,a=n.itemCount,o=n.minimumBatchSize,e=n.startIndex,u=n.stopIndex,i=[],d=null,r=null,s=e;s<=u;s++){var l=t(s);l?r!==null&&(i.push(d,r),d=r=null):(r=s,d===null&&(d=s))}if(r!==null){for(var m=Math.min(Math.max(r,d+o-1),a-1),f=r+1;f<=m&&!t(f);f++)r=f;i.push(d,r)}if(i.length)for(;i[1]-i[0]+1<o&&i[0]>0;){var c=i[0]-1;if(!t(c))i[0]=c;else break}return i}var x=function(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function")},g=(function(){function n(t,a){for(var o=0;o<a.length;o++){var e=a[o];e.enumerable=e.enumerable||!1,e.configurable=!0,"value"in e&&(e.writable=!0),Object.defineProperty(t,e.key,e)}}return function(t,a,o){return a&&n(t.prototype,a),o&&n(t,o),t}})(),S=function(n,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)},p=function(n,t){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:n},y=(function(n){S(t,n);function t(){var a,o,e,u;x(this,t);for(var i=arguments.length,d=Array(i),r=0;r<i;r++)d[r]=arguments[r];return u=(o=(e=p(this,(a=t.__proto__||Object.getPrototypeOf(t)).call.apply(a,[this].concat(d))),e),e._lastRenderedStartIndex=-1,e._lastRenderedStopIndex=-1,e._memoizedUnloadedRanges=[],e._onItemsRendered=function(s){var l=s.visibleStartIndex,m=s.visibleStopIndex;process.env.NODE_ENV!=="production"&&((!h(l)||!h(m))&&console.warn("Invalid onItemsRendered signature; please refer to InfiniteLoader documentation."),typeof e.props.loadMoreRows=="function"&&console.warn('InfiniteLoader "loadMoreRows" prop has been renamed to "loadMoreItems".')),e._lastRenderedStartIndex=l,e._lastRenderedStopIndex=m,e._ensureRowsLoaded(l,m)},e._setRef=function(s){e._listRef=s},o),p(e,u)}return g(t,[{key:"resetloadMoreItemsCache",value:function(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;this._memoizedUnloadedRanges=[],o&&this._ensureRowsLoaded(this._lastRenderedStartIndex,this._lastRenderedStopIndex)}},{key:"componentDidMount",value:function(){process.env.NODE_ENV!=="production"&&this._listRef==null&&console.warn("Invalid list ref; please refer to InfiniteLoader documentation.")}},{key:"render",value:function(){var o=this.props.children;return o({onItemsRendered:this._onItemsRendered,ref:this._setRef})}},{key:"_ensureRowsLoaded",value:function(o,e){var u=this.props,i=u.isItemLoaded,d=u.itemCount,r=u.minimumBatchSize,s=r===void 0?10:r,l=u.threshold,m=l===void 0?15:l,f=_({isItemLoaded:i,itemCount:d,minimumBatchSize:s,startIndex:Math.max(0,o-m),stopIndex:Math.min(d-1,e+m)});(this._memoizedUnloadedRanges.length!==f.length||this._memoizedUnloadedRanges.some(function(c,I){return f[I]!==c}))&&(this._memoizedUnloadedRanges=f,this._loadUnloadedRanges(f))}},{key:"_loadUnloadedRanges",value:function(o){for(var e=this,u=this.props.loadMoreItems||this.props.loadMoreRows,i=function(s){var l=o[s],m=o[s+1],f=u(l,m);f?.then(function(){if(v({lastRenderedStartIndex:e._lastRenderedStartIndex,lastRenderedStopIndex:e._lastRenderedStopIndex,startIndex:l,stopIndex:m})){if(e._listRef==null)return;typeof e._listRef.resetAfterIndex=="function"?e._listRef.resetAfterIndex(l,!0):(typeof e._listRef._getItemStyleCache=="function"&&e._listRef._getItemStyleCache(-1),e._listRef.forceUpdate())}})},d=0;d<o.length;d+=2)i(d)}}]),t})(R.PureComponent);exports.InfiniteLoader=y;
@@ -1 +0,0 @@
1
- "use strict";const a=require("./vendor-micromark-extension-gfm-DOHEv_Ow.cjs"),s=require("./vendor-mdast-util-gfm-DYVYZtQo.cjs"),c={};function k(t){const r=this,o=t||c,n=r.data(),e=n.micromarkExtensions||(n.micromarkExtensions=[]),i=n.fromMarkdownExtensions||(n.fromMarkdownExtensions=[]),m=n.toMarkdownExtensions||(n.toMarkdownExtensions=[]);e.push(a.gfm(o)),i.push(s.gfmFromMarkdown()),m.push(s.gfmToMarkdown(o))}exports.remarkGfm=k;
@@ -1 +0,0 @@
1
- "use strict";const a=require("./vendor-mdast-util-from-markdown-DmcqmoHq.cjs");function e(s){const r=this;r.parser=n;function n(t){return a.fromMarkdown(t,{...r.data("settings"),...s,extensions:r.data("micromarkExtensions")||[],mdastExtensions:r.data("fromMarkdownExtensions")||[]})}}exports.remarkParse=e;
@@ -1 +0,0 @@
1
- "use strict";const n=require("./vendor-mdast-util-to-hast-DZGTy4jY.cjs");function c(r,u){return r&&"run"in r?async function(e,t){const a=n.toHast(e,{file:t,...u});await r.run(a,t)}:function(e,t){return n.toHast(e,{file:t,...r||u})}}exports.remarkRehype=c;
@@ -1 +0,0 @@
1
- "use strict";var j,O;function B(){if(O)return j;O=1,j=g;function d(o){return o instanceof Buffer?Buffer.from(o):new o.constructor(o.buffer.slice(),o.byteOffset,o.length)}function g(o){if(o=o||{},o.circles)return k(o);const i=new Map;if(i.set(Date,t=>new Date(t)),i.set(Map,(t,c)=>new Map(a(Array.from(t),c))),i.set(Set,(t,c)=>new Set(a(Array.from(t),c))),o.constructorHandlers)for(const t of o.constructorHandlers)i.set(t[0],t[1]);let u=null;return o.proto?y:l;function a(t,c){const e=Object.keys(t),r=new Array(e.length);for(let s=0;s<e.length;s++){const n=e[s],f=t[n];typeof f!="object"||f===null?r[n]=f:f.constructor!==Object&&(u=i.get(f.constructor))?r[n]=u(f,c):ArrayBuffer.isView(f)?r[n]=d(f):r[n]=c(f)}return r}function l(t){if(typeof t!="object"||t===null)return t;if(Array.isArray(t))return a(t,l);if(t.constructor!==Object&&(u=i.get(t.constructor)))return u(t,l);const c={};for(const e in t){if(Object.hasOwnProperty.call(t,e)===!1)continue;const r=t[e];typeof r!="object"||r===null?c[e]=r:r.constructor!==Object&&(u=i.get(r.constructor))?c[e]=u(r,l):ArrayBuffer.isView(r)?c[e]=d(r):c[e]=l(r)}return c}function y(t){if(typeof t!="object"||t===null)return t;if(Array.isArray(t))return a(t,y);if(t.constructor!==Object&&(u=i.get(t.constructor)))return u(t,y);const c={};for(const e in t){const r=t[e];typeof r!="object"||r===null?c[e]=r:r.constructor!==Object&&(u=i.get(r.constructor))?c[e]=u(r,y):ArrayBuffer.isView(r)?c[e]=d(r):c[e]=y(r)}return c}}function k(o){const i=[],u=[],a=new Map;if(a.set(Date,e=>new Date(e)),a.set(Map,(e,r)=>new Map(y(Array.from(e),r))),a.set(Set,(e,r)=>new Set(y(Array.from(e),r))),o.constructorHandlers)for(const e of o.constructorHandlers)a.set(e[0],e[1]);let l=null;return o.proto?c:t;function y(e,r){const s=Object.keys(e),n=new Array(s.length);for(let f=0;f<s.length;f++){const p=s[f],b=e[p];if(typeof b!="object"||b===null)n[p]=b;else if(b.constructor!==Object&&(l=a.get(b.constructor)))n[p]=l(b,r);else if(ArrayBuffer.isView(b))n[p]=d(b);else{const w=i.indexOf(b);w!==-1?n[p]=u[w]:n[p]=r(b)}}return n}function t(e){if(typeof e!="object"||e===null)return e;if(Array.isArray(e))return y(e,t);if(e.constructor!==Object&&(l=a.get(e.constructor)))return l(e,t);const r={};i.push(e),u.push(r);for(const s in e){if(Object.hasOwnProperty.call(e,s)===!1)continue;const n=e[s];if(typeof n!="object"||n===null)r[s]=n;else if(n.constructor!==Object&&(l=a.get(n.constructor)))r[s]=l(n,t);else if(ArrayBuffer.isView(n))r[s]=d(n);else{const f=i.indexOf(n);f!==-1?r[s]=u[f]:r[s]=t(n)}}return i.pop(),u.pop(),r}function c(e){if(typeof e!="object"||e===null)return e;if(Array.isArray(e))return y(e,c);if(e.constructor!==Object&&(l=a.get(e.constructor)))return l(e,c);const r={};i.push(e),u.push(r);for(const s in e){const n=e[s];if(typeof n!="object"||n===null)r[s]=n;else if(n.constructor!==Object&&(l=a.get(n.constructor)))r[s]=l(n,c);else if(ArrayBuffer.isView(n))r[s]=d(n);else{const f=i.indexOf(n);f!==-1?r[s]=u[f]:r[s]=c(n)}}return i.pop(),u.pop(),r}}return j}var A,h;function H(){return h||(h=1,A=B()()),A}exports.require_default=H;
@@ -1 +0,0 @@
1
- "use strict";const z=require("./vendor-is-arrayish-DfXUb1DJ.cjs");var t={exports:{}},a;function v(){if(a)return t.exports;a=1;var u=z.requireIsArrayish(),o=Array.prototype.concat,c=Array.prototype.slice,s=t.exports=function(n){for(var r=[],e=0,p=n.length;e<p;e++){var i=n[e];u(i)?r=o.call(r,c.call(i)):r.push(i)}return r};return s.wrap=function(l){return function(){return l(s(arguments))}},t.exports}exports.requireSimpleSwizzle=v;
@@ -1 +0,0 @@
1
- "use strict";function t(i){return i.join(" ").trim()}exports.stringify=t;
@@ -1 +0,0 @@
1
- "use strict";const C=require("./vendor-react-CzqSQR9J.cjs"),R=require("./vendor-style-to-object--fzklQoy.cjs");var n={},o;function m(){if(o)return n;o=1,Object.defineProperty(n,"__esModule",{value:!0}),n.camelCase=void 0;var l=/^--[a-zA-Z0-9_-]+$/,f=/-([a-z])/g,_=/^[^-]+$/,r=/^-(webkit|moz|ms|o|khtml)-/,t=/^-(ms)-/,v=function(e){return!e||_.test(e)||l.test(e)},i=function(e,a){return a.toUpperCase()},u=function(e,a){return"".concat(a,"-")},c=function(e,a){return a===void 0&&(a={}),v(e)?e:(e=e.toLowerCase(),a.reactCompat?e=e.replace(t,u):e=e.replace(r,u),e.replace(f,i))};return n.camelCase=c,n}var s,E;function d(){if(E)return s;E=1;var l=s&&s.__importDefault||function(t){return t&&t.__esModule?t:{default:t}},f=l(R.requireCjs()),_=m();function r(t,v){var i={};return!t||typeof t!="string"||(0,f.default)(t,function(u,c){u&&c&&(i[(0,_.camelCase)(u,v)]=c)}),i}return r.default=r,s=r,s}var j=d();const q=C.getDefaultExportFromCjs(j);exports.styleToJs=q;
@@ -1 +0,0 @@
1
- "use strict";const p=require("./vendor-inline-style-parser-BwLpyraz.cjs");var r={},f;function j(){if(f)return r;f=1;var l=r&&r.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(r,"__esModule",{value:!0}),r.default=a;const o=l(p.requireCjs());function a(e,i){let t=null;if(!e||typeof e!="string")return t;const c=(0,o.default)(e),_=typeof i=="function";return c.forEach(n=>{if(n.type!=="declaration")return;const{property:s,value:u}=n;_?i(s,u,n):u&&(t=t||{},t[s]=u)}),t}return r}exports.requireCjs=j;
@@ -1 +0,0 @@
1
- "use strict";function r(i){const c=String(i),s=/\r?\n|\r/g;let t=s.exec(c),e=0;const n=[];for(;t;)n.push(o(c.slice(e,t.index),e>0,!0),t[0]),e=t.index+t[0].length,t=s.exec(c);return n.push(o(c.slice(e),e>0,!1)),n.join("")}function o(i,c,s){let t=0,e=i.length;if(c){let n=i.codePointAt(t);for(;n===9||n===32;)t++,n=i.codePointAt(t)}if(s){let n=i.codePointAt(e-1);for(;n===9||n===32;)e--,n=i.codePointAt(e-1)}return e>t?i.slice(t,e):""}exports.trimLines=r;
@@ -1 +0,0 @@
1
- "use strict";function p(){const o=[],u={run:c,use:s};return u;function c(...n){let h=-1;const t=n.pop();if(typeof t!="function")throw new TypeError("Expected function as last argument, not "+t);f(null,...n);function f(e,...i){const r=o[++h];let l=-1;if(e){t(e);return}for(;++l<n.length;)(i[l]===null||i[l]===void 0)&&(i[l]=n[l]);n=i,r?d(r,f)(...i):t(null,...i)}}function s(n){if(typeof n!="function")throw new TypeError("Expected `middelware` to be a function, not "+n);return o.push(n),u}}function d(o,u){let c;return s;function s(...t){const f=o.length>t.length;let e;f&&t.push(n);try{e=o.apply(this,t)}catch(i){const r=i;if(f&&c)throw r;return n(r)}f||(e&&e.then&&typeof e.then=="function"?e.then(h,n):e instanceof Error?n(e):h(e))}function n(t,...f){c||(c=!0,u(t,...f))}function h(t){n(null,t)}}exports.trough=p;
@@ -1 +0,0 @@
1
- "use strict";const E=require("./vendor-bail-CPU4onRe.cjs"),m=require("./vendor-extend-Xv02IcfV.cjs"),x=require("./vendor-is-plain-obj-DH-Kh8FX.cjs"),C=require("./vendor-trough-CZIkZM5d.cjs"),j=require("./vendor-vfile-DagMcMZP.cjs"),A=(function(n){const t=this.constructor.prototype,i=t[n],f=function(){return i.apply(f,arguments)};return Object.setPrototypeOf(f,t),f}),O={}.hasOwnProperty;class z extends A{constructor(){super("copy"),this.Compiler=void 0,this.Parser=void 0,this.attachers=[],this.compiler=void 0,this.freezeIndex=-1,this.frozen=void 0,this.namespace={},this.parser=void 0,this.transformers=C.trough()}copy(){const e=new z;let s=-1;for(;++s<this.attachers.length;){const t=this.attachers[s];e.use(...t)}return e.data(m.extend(!0,{},this.namespace)),e}data(e,s){return typeof e=="string"?arguments.length===2?(b("data",this.frozen),this.namespace[e]=s,this):O.call(this.namespace,e)&&this.namespace[e]||void 0:e?(b("data",this.frozen),this.namespace=e,this):this.namespace}freeze(){if(this.frozen)return this;const e=this;for(;++this.freezeIndex<this.attachers.length;){const[s,...t]=this.attachers[this.freezeIndex];if(t[0]===!1)continue;t[0]===!0&&(t[0]=void 0);const i=s.call(e,...t);typeof i=="function"&&this.transformers.use(i)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(e){this.freeze();const s=y(e),t=this.parser||this.Parser;return w("parse",t),t(String(s),s)}process(e,s){const t=this;return this.freeze(),w("process",this.parser||this.Parser),g("process",this.compiler||this.Compiler),s?i(void 0,s):new Promise(i);function i(f,h){const u=y(e),l=t.parse(u);t.run(l,u,function(o,c,a){if(o||!c||!a)return r(o);const p=c,d=t.stringify(p,a);q(d)?a.value=d:a.result=d,r(o,a)});function r(o,c){o||!c?h(o):f?f(c):s(void 0,c)}}}processSync(e){let s=!1,t;return this.freeze(),w("processSync",this.parser||this.Parser),g("processSync",this.compiler||this.Compiler),this.process(e,i),T("processSync","process",s),t;function i(f,h){s=!0,E.bail(f),t=h}}run(e,s,t){I(e),this.freeze();const i=this.transformers;return!t&&typeof s=="function"&&(t=s,s=void 0),t?f(void 0,t):new Promise(f);function f(h,u){const l=y(s);i.run(e,l,r);function r(o,c,a){const p=c||e;o?u(o):h?h(p):t(void 0,p,a)}}}runSync(e,s){let t=!1,i;return this.run(e,s,f),T("runSync","run",t),i;function f(h,u){E.bail(h),i=u,t=!0}}stringify(e,s){this.freeze();const t=y(s),i=this.compiler||this.Compiler;return g("stringify",i),I(e),i(e,t)}use(e,...s){const t=this.attachers,i=this.namespace;if(b("use",this.frozen),e!=null)if(typeof e=="function")l(e,s);else if(typeof e=="object")Array.isArray(e)?u(e):h(e);else throw new TypeError("Expected usable value, not `"+e+"`");return this;function f(r){if(typeof r=="function")l(r,[]);else if(typeof r=="object")if(Array.isArray(r)){const[o,...c]=r;l(o,c)}else h(r);else throw new TypeError("Expected usable value, not `"+r+"`")}function h(r){if(!("plugins"in r)&&!("settings"in r))throw new Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");u(r.plugins),r.settings&&(i.settings=m.extend(!0,i.settings,r.settings))}function u(r){let o=-1;if(r!=null)if(Array.isArray(r))for(;++o<r.length;){const c=r[o];f(c)}else throw new TypeError("Expected a list of plugins, not `"+r+"`")}function l(r,o){let c=-1,a=-1;for(;++c<t.length;)if(t[c][0]===r){a=c;break}if(a===-1)t.push([r,...o]);else if(o.length>0){let[p,...d]=o;const P=t[a][1];x.isPlainObject(P)&&x.isPlainObject(p)&&(p=m.extend(!0,P,p)),t[a]=[r,p,...d]}}}}const S=new z().freeze();function w(n,e){if(typeof e!="function")throw new TypeError("Cannot `"+n+"` without `parser`")}function g(n,e){if(typeof e!="function")throw new TypeError("Cannot `"+n+"` without `compiler`")}function b(n,e){if(e)throw new Error("Cannot call `"+n+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function I(n){if(!x.isPlainObject(n)||typeof n.type!="string")throw new TypeError("Expected node, got `"+n+"`")}function T(n,e,s){if(!s)throw new Error("`"+n+"` finished async. Use `"+e+"` instead")}function y(n){return F(n)?n:new j.VFile(n)}function F(n){return!!(n&&typeof n=="object"&&"message"in n&&"messages"in n)}function q(n){return typeof n=="string"||D(n)}function D(n){return!!(n&&typeof n=="object"&&"byteLength"in n&&"byteOffset"in n)}exports.unified=S;
@@ -1 +0,0 @@
1
- "use strict";const i=(function(n){if(n==null)return p;if(typeof n=="function")return u(n);if(typeof n=="object")return Array.isArray(n)?f(n):y(n);if(typeof n=="string")return l(n);throw new Error("Expected function, string, or object as test")});function f(n){const e=[];let r=-1;for(;++r<n.length;)e[r]=i(n[r]);return u(t);function t(...c){let o=-1;for(;++o<e.length;)if(e[o].apply(this,c))return!0;return!1}}function y(n){const e=n;return u(r);function r(t){const c=t;let o;for(o in n)if(c[o]!==e[o])return!1;return!0}}function l(n){return u(e);function e(r){return r&&r.type===n}}function u(n){return e;function e(r,t,c){return!!(a(r)&&n.call(this,r,typeof t=="number"?t:void 0,c||void 0))}}function p(){return!0}function a(n){return n!==null&&typeof n=="object"&&"type"in n}exports.convert=i;
@@ -1 +0,0 @@
1
- "use strict";const e=s("end"),f=s("start");function s(o){return i;function i(t){const n=t&&t.position&&t.position[o]||{};if(typeof n.line=="number"&&n.line>0&&typeof n.column=="number"&&n.column>0)return{line:n.line,column:n.column,offset:typeof n.offset=="number"&&n.offset>-1?n.offset:void 0}}}function u(o){const i=f(o),t=e(o);if(i&&t)return{start:i,end:t}}exports.pointEnd=e;exports.pointStart=f;exports.position=u;
@@ -1 +0,0 @@
1
- "use strict";function o(n){return!n||typeof n!="object"?"":"position"in n||"type"in n?t(n.position):"start"in n||"end"in n?t(n):"line"in n||"column"in n?i(n):""}function i(n){return r(n&&n.line)+":"+r(n&&n.column)}function t(n){return i(n&&n.start)+"-"+i(n&&n.end)}function r(n){return n&&typeof n=="number"?n:1}exports.stringifyPosition=o;
@@ -1 +0,0 @@
1
- "use strict";const r=require("./vendor-unist-util-visit-parents-BFfGpcYZ.cjs");function v(l,n,t,o){let e,i,f;typeof n=="function"&&typeof t!="function"?(i=void 0,f=n,e=t):(i=n,f=t,e=o),r.visitParents(l,i,s,e);function s(u,d){const c=d[d.length-1],a=c?c.children.indexOf(u):void 0;return f(u,a,c)}}exports.visit=v;
@@ -1 +0,0 @@
1
- "use strict";const N=require("./vendor-unist-util-is-C5fG5pIe.cjs");const m=[],A=!0,y=!1,E="skip";function T(n,o,s,l){let d;typeof o=="function"&&typeof s!="function"?(l=s,s=o):d=o;const b=N.convert(d),h=l?-1:1;p(n,void 0,[])();function p(t,I,u){const r=t&&typeof t=="object"?t:{};if(typeof r.type=="string"){const e=typeof r.tagName=="string"?r.tagName:typeof r.name=="string"?r.name:void 0;Object.defineProperty(a,"name",{value:"node ("+(t.type+(e?"<"+e+">":""))+")"})}return a;function a(){let e=m,c,i,g;if((!o||b(t,I,u[u.length-1]||void 0))&&(e=U(s(t,u)),e[0]===y))return e;if("children"in t&&t.children){const f=t;if(f.children&&e[0]!==E)for(i=(l?f.children.length:-1)+h,g=u.concat(f);i>-1&&i<f.children.length;){const P=f.children[i];if(c=p(P,i,g)(),c[0]===y)return c;i=typeof c[1]=="number"?c[1]:i+h}}return e}}}function U(n){return Array.isArray(n)?n:typeof n=="number"?[A,n]:n==null?m:[n]}exports.EXIT=y;exports.visitParents=T;