notebook 7.0.6__py3-none-any.whl → 7.1.0a1__py3-none-any.whl

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.

Potentially problematic release.


This version of notebook might be problematic. Click here for more details.

Files changed (256) hide show
  1. notebook/_version.py +1 -1
  2. notebook/app.py +5 -2
  3. notebook/static/1053.bundle.js +1 -1
  4. notebook/static/1157.bundle.js +1 -0
  5. notebook/static/1169.bundle.js +1 -0
  6. notebook/static/1198.bundle.js +1 -1
  7. notebook/static/131.bundle.js +7 -0
  8. notebook/static/1326.bundle.js +2 -0
  9. notebook/static/1337.bundle.js +1 -1
  10. notebook/static/134.bundle.js +1 -1
  11. notebook/static/1408.bundle.js +1 -1
  12. notebook/static/1496.bundle.js +1 -0
  13. notebook/static/1584.bundle.js +1 -1
  14. notebook/static/1604.bundle.js +1 -0
  15. notebook/static/1647.bundle.js +1 -1
  16. notebook/static/1650.bundle.js +1 -1
  17. notebook/static/1682.bundle.js +1 -1
  18. notebook/static/1684.bundle.js +1 -1
  19. notebook/static/1696.bundle.js +1 -1
  20. notebook/static/1809.bundle.js +1 -1
  21. notebook/static/1827.bundle.js +1 -1
  22. notebook/static/1833.bundle.js +1 -1
  23. notebook/static/1835.bundle.js +1 -1
  24. notebook/static/1869.bundle.js +1 -0
  25. notebook/static/1895.bundle.js +1 -0
  26. notebook/static/1950.bundle.js +1 -1
  27. notebook/static/1958.bundle.js +1 -1
  28. notebook/static/2007.bundle.js +1 -1
  29. notebook/static/2067.bundle.js +1 -1
  30. notebook/static/2088.bundle.js +1 -1
  31. notebook/static/2089.bundle.js +1 -1
  32. notebook/static/2122.bundle.js +1 -1
  33. notebook/static/2167.bundle.js +1 -1
  34. notebook/static/2184.bundle.js +1 -1
  35. notebook/static/2311.bundle.js +1 -1
  36. notebook/static/2401.bundle.js +1 -1
  37. notebook/static/2479.bundle.js +1 -1
  38. notebook/static/2489.bundle.js +1 -0
  39. notebook/static/2502.bundle.js +1 -0
  40. notebook/static/2512.bundle.js +1 -1
  41. notebook/static/2515.bundle.js +1 -0
  42. notebook/static/2552.bundle.js +1 -1
  43. notebook/static/2577.bundle.js +1 -0
  44. notebook/static/2607.bundle.js +1 -1
  45. notebook/static/2615.bundle.js +1 -0
  46. notebook/static/2866.bundle.js +1 -1
  47. notebook/static/2883.bundle.js +1 -0
  48. notebook/static/2924.bundle.js +1 -1
  49. notebook/static/2944.bundle.js +1 -0
  50. notebook/static/2955.bundle.js +1 -1
  51. notebook/static/3079.bundle.js +1 -1
  52. notebook/static/3129.bundle.js +1 -0
  53. notebook/static/3146.bundle.js +1 -1
  54. notebook/static/3190.bundle.js +2 -0
  55. notebook/static/3190.bundle.js.LICENSE.txt +18 -0
  56. notebook/static/3213.bundle.js +1 -1
  57. notebook/static/3301.bundle.js +1 -1
  58. notebook/static/3340.bundle.js +1 -1
  59. notebook/static/3360.bundle.js +1 -1
  60. notebook/static/3466.bundle.js +1 -1
  61. notebook/static/35.bundle.js +1 -1
  62. notebook/static/3512.bundle.js +1 -0
  63. notebook/static/3642.bundle.js +1 -0
  64. notebook/static/3676.bundle.js +1 -1
  65. notebook/static/3680.bundle.js +1 -1
  66. notebook/static/3768.bundle.js +1 -1
  67. notebook/static/377.bundle.js +1 -1
  68. notebook/static/3797.bundle.js +1 -1
  69. notebook/static/3863.bundle.js +1 -1
  70. notebook/static/3881.bundle.js +1 -1
  71. notebook/static/4042.bundle.js +1 -1
  72. notebook/static/4058.bundle.js +1 -1
  73. notebook/static/4131.bundle.js +1 -1
  74. notebook/static/4166.bundle.js +1 -0
  75. notebook/static/4212.bundle.js +1 -1
  76. notebook/static/4271.bundle.js +1 -1
  77. notebook/static/4291.bundle.js +1 -1
  78. notebook/static/433.bundle.js +1 -0
  79. notebook/static/4382.bundle.js +1 -1
  80. notebook/static/4461.bundle.js +1 -0
  81. notebook/static/4499.bundle.js +1 -0
  82. notebook/static/4501.bundle.js +1 -0
  83. notebook/static/4526.bundle.js +1 -1
  84. notebook/static/4558.bundle.js +1 -1
  85. notebook/static/4630.bundle.js +2 -0
  86. notebook/static/4630.bundle.js.LICENSE.txt +9 -0
  87. notebook/static/4645.bundle.js +1 -1
  88. notebook/static/4811.bundle.js +1 -1
  89. notebook/static/4837.bundle.js +1 -1
  90. notebook/static/4892.bundle.js +1 -0
  91. notebook/static/5088.bundle.js +1 -1
  92. notebook/static/5099.bundle.js +1 -1
  93. notebook/static/5135.bundle.js +1 -1
  94. notebook/static/514.bundle.js +1 -1
  95. notebook/static/5261.bundle.js +1 -1
  96. notebook/static/5313.bundle.js +1 -1
  97. notebook/static/5325.bundle.js +1 -1
  98. notebook/static/5346.bundle.js +1 -1
  99. notebook/static/5376.bundle.js +1 -0
  100. notebook/static/5426.bundle.js +1 -1
  101. notebook/static/5573.bundle.js +1 -1
  102. notebook/static/5601.bundle.js +1 -1
  103. notebook/static/5649.bundle.js +3 -3
  104. notebook/static/5733.bundle.js +1 -1
  105. notebook/static/5828.bundle.js +1 -1
  106. notebook/static/5850.bundle.js +1 -1
  107. notebook/static/5874.bundle.js +744 -0
  108. notebook/static/5874.bundle.js.LICENSE.txt +4 -0
  109. notebook/static/5912.bundle.js +1 -1
  110. notebook/static/5921.bundle.js +1 -1
  111. notebook/static/5982.bundle.js +1 -0
  112. notebook/static/6017.bundle.js +1 -1
  113. notebook/static/6027.bundle.js +1 -1
  114. notebook/static/6061.bundle.js +1 -1
  115. notebook/static/6139.bundle.js +1 -1
  116. notebook/static/62.bundle.js +1 -1
  117. notebook/static/6249.bundle.js +1 -0
  118. notebook/static/6256.bundle.js +1 -1
  119. notebook/static/6262.bundle.js +1 -0
  120. notebook/static/6271.bundle.js +1 -1
  121. notebook/static/6345.bundle.js +1 -1
  122. notebook/static/6405.bundle.js +1 -0
  123. notebook/static/6604.bundle.js +1 -1
  124. notebook/static/6621.bundle.js +1 -1
  125. notebook/static/6627.bundle.js +1 -1
  126. notebook/static/6731.bundle.js +1 -1
  127. notebook/static/6815.bundle.js +1 -1
  128. notebook/static/6853.bundle.js +1 -1
  129. notebook/static/6869.bundle.js +1 -0
  130. notebook/static/6893.bundle.js +1 -1
  131. notebook/static/690.bundle.js +1 -1
  132. notebook/static/6962.bundle.js +1 -1
  133. notebook/static/6999.bundle.js +1 -1
  134. notebook/static/7179.bundle.js +1 -0
  135. notebook/static/7226.bundle.js +1 -1
  136. notebook/static/7252.bundle.js +1 -1
  137. notebook/static/7259.bundle.js +1 -0
  138. notebook/static/7302.bundle.js +1 -1
  139. notebook/static/7333.bundle.js +2 -0
  140. notebook/static/7333.bundle.js.LICENSE.txt +9 -0
  141. notebook/static/7339.bundle.js +1 -0
  142. notebook/static/7369.bundle.js +1 -1
  143. notebook/static/7386.bundle.js +1 -1
  144. notebook/static/7391.bundle.js +1 -1
  145. notebook/static/7394.bundle.js +1 -1
  146. notebook/static/7427.bundle.js +1 -1
  147. notebook/static/7450.bundle.js +1 -1
  148. notebook/static/7582.bundle.js +1 -1
  149. notebook/static/7590.bundle.js +1 -0
  150. notebook/static/7603.bundle.js +1 -1
  151. notebook/static/7639.bundle.js +1 -1
  152. notebook/static/7684.bundle.js +1 -1
  153. notebook/static/7811.bundle.js +2 -0
  154. notebook/static/7819.bundle.js +1 -1
  155. notebook/static/7866.bundle.js +1 -1
  156. notebook/static/7900.bundle.js +1 -1
  157. notebook/static/7906.bundle.js +1 -1
  158. notebook/static/7943.bundle.js +1 -0
  159. notebook/static/7957.bundle.js +1 -1
  160. notebook/static/7997.bundle.js +1 -1
  161. notebook/static/8010.bundle.js +1 -1
  162. notebook/static/8032.bundle.js +1 -1
  163. notebook/static/8055.bundle.js +1 -0
  164. notebook/static/8579.bundle.js +1 -1
  165. notebook/static/8633.bundle.js +1 -1
  166. notebook/static/8771.bundle.js +1 -1
  167. notebook/static/8781.bundle.js +1 -0
  168. notebook/static/882.bundle.js +1 -0
  169. notebook/static/8875.bundle.js +1 -1
  170. notebook/static/8907.bundle.js +1 -1
  171. notebook/static/8928.bundle.js +1 -1
  172. notebook/static/8929.bundle.js +1 -1
  173. notebook/static/893.bundle.js +1 -1
  174. notebook/static/901.bundle.js +1 -1
  175. notebook/static/9068.bundle.js +1 -1
  176. notebook/static/911.bundle.js +1 -1
  177. notebook/static/9151.bundle.js +1 -1
  178. notebook/static/9161.bundle.js +1 -0
  179. notebook/static/9239.bundle.js +1 -1
  180. notebook/static/9250.bundle.js +1 -1
  181. notebook/static/9268.bundle.js +1 -1
  182. notebook/static/9284.bundle.js +1 -0
  183. notebook/static/9308.bundle.js +1 -0
  184. notebook/static/9335.bundle.js +1 -1
  185. notebook/static/9341.bundle.js +1 -1
  186. notebook/static/9380.bundle.js +1 -1
  187. notebook/static/9466.bundle.js +1 -0
  188. notebook/static/9554.bundle.js +1 -0
  189. notebook/static/9605.bundle.js +1 -1
  190. notebook/static/9638.bundle.js +1 -1
  191. notebook/static/9680.bundle.js +1 -1
  192. notebook/static/9685.bundle.js +1 -1
  193. notebook/static/9752.bundle.js +1 -1
  194. notebook/static/9799.bundle.js +1 -1
  195. notebook/static/9821.bundle.js +1 -0
  196. notebook/static/9852.bundle.js +1 -1
  197. notebook/static/9987.bundle.js +1 -0
  198. notebook/static/bundle.js +1 -1
  199. notebook/static/third-party-licenses.json +513 -147
  200. {notebook-7.0.6.data → notebook-7.1.0a1.data}/data/share/jupyter/lab/schemas/@jupyter-notebook/application-extension/package.json.orig +15 -15
  201. {notebook-7.0.6.data → notebook-7.1.0a1.data}/data/share/jupyter/lab/schemas/@jupyter-notebook/documentsearch-extension/package.json.orig +5 -5
  202. {notebook-7.0.6.data → notebook-7.1.0a1.data}/data/share/jupyter/lab/schemas/@jupyter-notebook/help-extension/package.json.orig +6 -6
  203. {notebook-7.0.6.data → notebook-7.1.0a1.data}/data/share/jupyter/lab/schemas/@jupyter-notebook/notebook-extension/package.json.orig +10 -10
  204. notebook-7.1.0a1.data/data/share/jupyter/lab/schemas/@jupyter-notebook/tree-extension/file-actions.json +17 -0
  205. {notebook-7.0.6.data → notebook-7.1.0a1.data}/data/share/jupyter/lab/schemas/@jupyter-notebook/tree-extension/package.json.orig +17 -17
  206. {notebook-7.0.6.data → notebook-7.1.0a1.data}/data/share/jupyter/labextensions/@jupyter-notebook/lab-extension/package.json +12 -12
  207. {notebook-7.0.6.data → notebook-7.1.0a1.data}/data/share/jupyter/labextensions/@jupyter-notebook/lab-extension/schemas/@jupyter-notebook/lab-extension/package.json.orig +11 -11
  208. notebook-7.1.0a1.data/data/share/jupyter/labextensions/@jupyter-notebook/lab-extension/static/50.e41798f78fa32030e149.js +1 -0
  209. notebook-7.1.0a1.data/data/share/jupyter/labextensions/@jupyter-notebook/lab-extension/static/568.9fa8bfe8da6242a4fc6b.js +1 -0
  210. notebook-7.0.6.data/data/share/jupyter/labextensions/@jupyter-notebook/lab-extension/static/928.79046a2eb17bde1af38c.js → notebook-7.1.0a1.data/data/share/jupyter/labextensions/@jupyter-notebook/lab-extension/static/928.faa0d74ec3a151a81a90.js +1 -1
  211. notebook-7.1.0a1.data/data/share/jupyter/labextensions/@jupyter-notebook/lab-extension/static/93.eae3497dd223d842d198.js +1 -0
  212. notebook-7.1.0a1.data/data/share/jupyter/labextensions/@jupyter-notebook/lab-extension/static/remoteEntry.02d92bfa6cab99929020.js +1 -0
  213. {notebook-7.0.6.data → notebook-7.1.0a1.data}/data/share/jupyter/labextensions/@jupyter-notebook/lab-extension/static/third-party-licenses.json +4 -4
  214. {notebook-7.0.6.dist-info → notebook-7.1.0a1.dist-info}/METADATA +3 -2
  215. notebook-7.1.0a1.dist-info/RECORD +430 -0
  216. notebook/static/1018.bundle.js +0 -1
  217. notebook/static/4234.bundle.js +0 -1
  218. notebook/static/4746.bundle.js +0 -1
  219. notebook/static/5125.bundle.js +0 -2
  220. notebook/static/5125.bundle.js.LICENSE.txt +0 -9
  221. notebook/static/5678.bundle.js +0 -1
  222. notebook/static/6774.bundle.js +0 -1
  223. notebook/static/6919.bundle.js +0 -7
  224. notebook/static/8548.bundle.js +0 -2
  225. notebook/static/880.bundle.js +0 -1
  226. notebook/static/9086.bundle.js +0 -1
  227. notebook/static/9609.bundle.js +0 -1
  228. notebook/static/9854.bundle.js +0 -2
  229. notebook-7.0.6.data/data/share/jupyter/lab/schemas/@jupyter-notebook/tree-extension/file-actions.json +0 -10
  230. notebook-7.0.6.data/data/share/jupyter/labextensions/@jupyter-notebook/lab-extension/static/568.1e7b382fb5e84b6e7620.js +0 -1
  231. notebook-7.0.6.data/data/share/jupyter/labextensions/@jupyter-notebook/lab-extension/static/776.c7baadfaddfd4518c935.js +0 -1
  232. notebook-7.0.6.data/data/share/jupyter/labextensions/@jupyter-notebook/lab-extension/static/922.0beff4620746e288bd5e.js +0 -1
  233. notebook-7.0.6.data/data/share/jupyter/labextensions/@jupyter-notebook/lab-extension/static/remoteEntry.b2792fe643cae74ea824.js +0 -1
  234. notebook-7.0.6.dist-info/RECORD +0 -389
  235. /notebook/static/{8548.bundle.js.LICENSE.txt → 1326.bundle.js.LICENSE.txt} +0 -0
  236. /notebook/static/{9854.bundle.js.LICENSE.txt → 7811.bundle.js.LICENSE.txt} +0 -0
  237. {notebook-7.0.6.data → notebook-7.1.0a1.data}/data/etc/jupyter/jupyter_server_config.d/notebook.json +0 -0
  238. {notebook-7.0.6.data → notebook-7.1.0a1.data}/data/share/applications/jupyter-notebook.desktop +0 -0
  239. {notebook-7.0.6.data → notebook-7.1.0a1.data}/data/share/icons/hicolor/scalable/apps/notebook.svg +0 -0
  240. {notebook-7.0.6.data → notebook-7.1.0a1.data}/data/share/jupyter/lab/schemas/@jupyter-notebook/application-extension/menus.json +0 -0
  241. {notebook-7.0.6.data → notebook-7.1.0a1.data}/data/share/jupyter/lab/schemas/@jupyter-notebook/application-extension/pages.json +0 -0
  242. {notebook-7.0.6.data → notebook-7.1.0a1.data}/data/share/jupyter/lab/schemas/@jupyter-notebook/application-extension/shell.json +0 -0
  243. {notebook-7.0.6.data → notebook-7.1.0a1.data}/data/share/jupyter/lab/schemas/@jupyter-notebook/application-extension/title.json +0 -0
  244. {notebook-7.0.6.data → notebook-7.1.0a1.data}/data/share/jupyter/lab/schemas/@jupyter-notebook/application-extension/top.json +0 -0
  245. {notebook-7.0.6.data → notebook-7.1.0a1.data}/data/share/jupyter/lab/schemas/@jupyter-notebook/application-extension/zen.json +0 -0
  246. {notebook-7.0.6.data → notebook-7.1.0a1.data}/data/share/jupyter/lab/schemas/@jupyter-notebook/help-extension/open.json +0 -0
  247. {notebook-7.0.6.data → notebook-7.1.0a1.data}/data/share/jupyter/lab/schemas/@jupyter-notebook/notebook-extension/checkpoints.json +0 -0
  248. {notebook-7.0.6.data → notebook-7.1.0a1.data}/data/share/jupyter/lab/schemas/@jupyter-notebook/notebook-extension/kernel-logo.json +0 -0
  249. {notebook-7.0.6.data → notebook-7.1.0a1.data}/data/share/jupyter/lab/schemas/@jupyter-notebook/notebook-extension/scroll-output.json +0 -0
  250. {notebook-7.0.6.data → notebook-7.1.0a1.data}/data/share/jupyter/lab/schemas/@jupyter-notebook/tree-extension/widget.json +0 -0
  251. {notebook-7.0.6.data → notebook-7.1.0a1.data}/data/share/jupyter/labextensions/@jupyter-notebook/lab-extension/schemas/@jupyter-notebook/lab-extension/interface-switcher.json +0 -0
  252. {notebook-7.0.6.data → notebook-7.1.0a1.data}/data/share/jupyter/labextensions/@jupyter-notebook/lab-extension/schemas/@jupyter-notebook/lab-extension/launch-tree.json +0 -0
  253. {notebook-7.0.6.data → notebook-7.1.0a1.data}/data/share/jupyter/labextensions/@jupyter-notebook/lab-extension/static/style.js +0 -0
  254. {notebook-7.0.6.dist-info → notebook-7.1.0a1.dist-info}/WHEEL +0 -0
  255. {notebook-7.0.6.dist-info → notebook-7.1.0a1.dist-info}/entry_points.txt +0 -0
  256. {notebook-7.0.6.dist-info → notebook-7.1.0a1.dist-info}/licenses/LICENSE +0 -0
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunk_JUPYTERLAB_CORE_OUTPUT=self.webpackChunk_JUPYTERLAB_CORE_OUTPUT||[]).push([[4234],{84498:(e,t,n)=>{n.r(t),n.d(t,{CellList:()=>v,CellTypeSwitcher:()=>_,CommandEditStatus:()=>E,ExecutionIndicator:()=>k,ExecutionIndicatorComponent:()=>y,INotebookTools:()=>we,INotebookTracker:()=>be,INotebookWidgetFactory:()=>_e,KernelError:()=>g,Notebook:()=>ce,NotebookActions:()=>C,NotebookAdapter:()=>P,NotebookModel:()=>M,NotebookModelFactory:()=>I,NotebookPanel:()=>ue,NotebookSearchProvider:()=>me,NotebookToCFactory:()=>pe,NotebookToCModel:()=>ve,NotebookTools:()=>B,NotebookTracker:()=>ye,NotebookTrustStatus:()=>xe,NotebookViewModel:()=>$,NotebookWidgetFactory:()=>Se,NotebookWindowedLayout:()=>z,RunningStatus:()=>ge,StaticNotebook:()=>re,ToolbarItems:()=>p,getIdForHeading:()=>fe});var o=n(56165),i=n(93944),s=n(85421),l=n(49255),a=n(33625),d=n(20998),r=n(81997),c=n(78156),h=n.n(c);const u="application/vnd.jupyter.cells";class g extends Error{constructor(e){const t=e,n=t.ename,o=t.evalue;super(`KernelReplyNotOK: ${n} ${o}`),this.errorName=n,this.errorValue=o,this.traceback=t.traceback,Object.setPrototypeOf(this,g.prototype)}}class C{static get executed(){return m.executed}static get executionScheduled(){return m.executionScheduled}static get selectionExecuted(){return m.selectionExecuted}constructor(){}}var m;!function(e){function t(e,t){if(!e.model||!e.activeCell)return;const n=m.getState(e),o=e.widgets.findIndex((t=>e.isSelectedOrActive(t)));let i=e.widgets.slice(o+1).findIndex((t=>!e.isSelectedOrActive(t)));i>=0?i+=o+1:i=e.model.cells.length,t>0?e.moveCell(o,i,i-o):e.moveCell(o,o+t,i-o),m.handleState(e,n,!0)}function n(e,t="below",n,o=!1){if(!e.model||!e.activeCell)return;const i=m.getState(e),s=e.model;e.mode="command";let l=0;const a=e.activeCellIndex;s.sharedModel.transact((()=>{switch(t){case"below":l=e.activeCellIndex+1;break;case"belowSelected":e.widgets.forEach(((t,n)=>{e.isSelectedOrActive(t)&&(l=n+1)}));break;case"above":l=e.activeCellIndex;break;case"replace":{const t=[];e.widgets.forEach(((n,o)=>{const i=!1!==n.model.sharedModel.getMetadata("deletable");e.isSelectedOrActive(n)&&i&&t.push(o)})),t.length>0&&t.reverse().forEach((e=>{s.sharedModel.deleteCell(e)})),l=t[0];break}}s.sharedModel.insertCells(l,n.map((t=>(t.id="code"===t.cell_type&&"cut"===e.lastClipboardInteraction&&"string"==typeof t.id?t.id:void 0,t))))})),e.activeCellIndex=a+n.length,e.deselectAll(),o&&(e.lastClipboardInteraction="paste"),m.handleState(e,i,!0)}function r(t,n,o){const s=(0,a.findIndex)(o.widgets,((e,n)=>t.model.id===e.model.id));if(-1===s)return-1;if(!o.widgets.length)return s+1;let l=e.getHeadingInfo(t);if(t.isHidden||!(t instanceof i.MarkdownCell)||!l.isHeading)return s+1;let d,r=!1,c=0;for(d=s+1;d<o.widgets.length;d++){let t=o.widgets[d],i=e.getHeadingInfo(t);if(i.isHeading&&i.headingLevel<=l.headingLevel){d-=1;break}r&&i.isHeading&&i.headingLevel<=c&&(r=!1),n||r?t.setHidden(!0):(i.collapsed&&i.isHeading&&(r=!0,c=i.headingLevel),t.setHidden(!1))}return d===o.widgets.length?t.numberChildNodes=d-s-1:t.numberChildNodes=d-s,e.setCellCollapse(t,n),d+1}function h(e){if(!(e instanceof i.MarkdownCell))return{isHeading:!1,headingLevel:7};let t=e.headingInfo.level;return{isHeading:t>0,headingLevel:t,collapsed:e.headingCollapsed}}e.splitCell=function(e){if(!e.model||!e.activeCell)return;const t=m.getState(e);e.mode="edit",e.deselectAll();const n=e.model,o=e.activeCellIndex,i=e.widgets[o],s=i.editor;if(!s)return;const l=s.getSelections(),a=i.model.sharedModel.getSource(),d=[0];let r=-1,c=-1;for(let e=0;e<l.length;e++)r=s.getOffsetAt(l[e].start),c=s.getOffsetAt(l[e].end),r<c?(d.push(r),d.push(c)):c<r?(d.push(c),d.push(r)):d.push(r);d.push(a.length);const h=d.slice(0,-1).map(((e,t)=>{const{cell_type:n,metadata:o}=i.model.sharedModel.toJSON();return{cell_type:n,metadata:o,source:a.slice(e,d[t+1]).replace(/^\n+/,"").replace(/\n+$/,"")}}));n.sharedModel.transact((()=>{n.sharedModel.deleteCell(o),n.sharedModel.insertCells(o,h)}));const u=r!==c?2:1;e.activeCellIndex=o+h.length-u,e.scrollToItem(e.activeCellIndex).then((()=>{var t;null===(t=e.activeCell)||void 0===t||t.editor.focus()})).catch((e=>{})),m.handleState(e,t)},e.mergeCells=function(e,t=!1){if(!e.model||!e.activeCell)return;const n=m.getState(e),o=[],s=[],l=e.model,a=l.cells,d=e.activeCell,r=e.activeCellIndex,c={};if(e.widgets.forEach(((t,n)=>{if(e.isSelectedOrActive(t)){o.push(t.model.sharedModel.getSource()),n!==r&&s.push(n);const e=t.model;if((0,i.isRawCellModel)(e)||(0,i.isMarkdownCellModel)(e))for(const t of e.attachments.keys)c[t]=e.attachments.get(t).toJSON()}})),1===o.length)if(!0===t){if(0===r)return;const e=a.get(r-1);o.unshift(e.sharedModel.getSource()),s.push(r-1)}else if(!1===t){if(r===a.length-1)return;const e=a.get(r+1);o.push(e.sharedModel.getSource()),s.push(r+1)}e.deselectAll();const h=d.model.sharedModel,{cell_type:u,metadata:g}=h.toJSON();"code"===h.cell_type&&(g.trusted=!0);const C={cell_type:u,metadata:g,source:o.join("\n\n"),attachments:"markdown"===h.cell_type||"raw"===h.cell_type?c:void 0};l.sharedModel.transact((()=>{l.sharedModel.deleteCell(r),l.sharedModel.insertCell(r,C),s.sort(((e,t)=>t-e)).forEach((e=>{l.sharedModel.deleteCell(e)}))})),d instanceof i.MarkdownCell&&(e.activeCell.rendered=!1),m.handleState(e,n)},e.deleteCells=function(e){if(!e.model||!e.activeCell)return;const t=m.getState(e);m.deleteCells(e),m.handleState(e,t,!0)},e.insertAbove=function(e){if(!e.model)return;const t=m.getState(e),n=e.model,o=e.activeCell?e.activeCellIndex:0;n.sharedModel.insertCell(o,{cell_type:e.notebookConfig.defaultCell,metadata:"code"===e.notebookConfig.defaultCell?{trusted:!0}:{}}),e.activeCellIndex=o,e.deselectAll(),m.handleState(e,t,!0)},e.insertBelow=function(e){if(!e.model)return;const t=m.getState(e),n=e.model,o=e.activeCell?e.activeCellIndex+1:0;n.sharedModel.insertCell(o,{cell_type:e.notebookConfig.defaultCell,metadata:"code"===e.notebookConfig.defaultCell?{trusted:!0}:{}}),e.activeCellIndex=o,e.deselectAll(),m.handleState(e,t,!0)},e.moveDown=function(e){t(e,1)},e.moveUp=function(e){t(e,-1)},e.changeCellType=function(e,t){if(!e.model||!e.activeCell)return;const n=m.getState(e);m.changeCellType(e,t),m.handleState(e,n)},e.run=function(e,t,n,o){if(!e.model||!e.activeCell)return Promise.resolve(!1);const i=m.getState(e),s=m.runSelected(e,t,n,o);return m.handleRunState(e,i,!1),s},e.runAndAdvance=async function(e,t,n,o){var i;if(!e.model||!e.activeCell)return Promise.resolve(!1);const l=m.getState(e),a=m.runSelected(e,t,n,o),d=e.model;return e.activeCellIndex===e.widgets.length-1?(d.sharedModel.insertCell(e.widgets.length,{cell_type:e.notebookConfig.defaultCell,metadata:"code"===e.notebookConfig.defaultCell?{trusted:!0}:{}}),e.activeCellIndex++,!1===(null===(i=e.activeCell)||void 0===i?void 0:i.inViewport)&&await(0,s.signalToPromise)(e.activeCell.inViewportChanged,200).catch((()=>{})),e.mode="edit"):e.activeCellIndex++,m.handleState(e,l,!0),a},e.runAndInsert=async function(e,t,n,o){var i;if(!e.model||!e.activeCell)return Promise.resolve(!1);const l=m.getState(e),a=m.runSelected(e,t,n,o);return e.model.sharedModel.insertCell(e.activeCellIndex+1,{cell_type:e.notebookConfig.defaultCell,metadata:"code"===e.notebookConfig.defaultCell?{trusted:!0}:{}}),e.activeCellIndex++,!1===(null===(i=e.activeCell)||void 0===i?void 0:i.inViewport)&&await(0,s.signalToPromise)(e.activeCell.inViewportChanged,200).catch((()=>{})),e.mode="edit",m.handleState(e,l,!0),a},e.runAll=function(e,t,n,o){if(!e.model||!e.activeCell)return Promise.resolve(!1);const i=m.getState(e);e.widgets.forEach((t=>{e.select(t)}));const s=m.runSelected(e,t,n,o);return m.handleRunState(e,i,!0),s},e.renderAllMarkdown=function(e){if(!e.model||!e.activeCell)return Promise.resolve(!1);const t=e.activeCellIndex,n=m.getState(e);if(e.widgets.forEach(((t,n)=>{"markdown"===t.model.type&&(e.select(t),e.activeCellIndex=n)})),"markdown"!==e.activeCell.model.type)return Promise.resolve(!0);const o=m.runSelected(e);return e.activeCellIndex=t,m.handleRunState(e,n,!0),o},e.runAllAbove=function(e,t,n,o){const{activeCell:i,activeCellIndex:s,model:l}=e;if(!l||!i||s<1)return Promise.resolve(!1);const a=m.getState(e);e.activeCellIndex--,e.deselectAll();for(let t=0;t<e.activeCellIndex;++t)e.select(e.widgets[t]);const d=m.runSelected(e,t,n,o);return e.activeCellIndex++,m.handleRunState(e,a,!0),d},e.runAllBelow=function(e,t,n,o){if(!e.model||!e.activeCell)return Promise.resolve(!1);const i=m.getState(e);e.deselectAll();for(let t=e.activeCellIndex;t<e.widgets.length;++t)e.select(e.widgets[t]);const s=m.runSelected(e,t,n,o);return m.handleRunState(e,i,!0),s},e.replaceSelection=function(e,t){var n,o,i;e.model&&(null===(n=e.activeCell)||void 0===n?void 0:n.editor)&&(null===(i=(o=e.activeCell.editor).replaceSelection)||void 0===i||i.call(o,t))},e.selectAbove=function(e){if(!e.model||!e.activeCell)return;const t=e.layout.footer;if(t&&document.activeElement===t.node)return t.node.blur(),void(e.mode="command");if(0===e.activeCellIndex)return;let n=e.activeCellIndex-1;for(;n>=0;){const t=e.widgets[n];if(!t.inputHidden&&!t.isHidden)break;n-=1}const o=m.getState(e);e.activeCellIndex=n,e.deselectAll(),m.handleState(e,o,!0)},e.selectBelow=function(e){if(!e.model||!e.activeCell)return;let t=e.widgets.length-1;for(;e.widgets[t].isHidden||e.widgets[t].inputHidden;)t-=1;if(e.activeCellIndex===t){const t=e.layout.footer;return void(null==t||t.node.focus())}let n=e.activeCellIndex+1;for(;n<t;){let t=e.widgets[n];if(!t.inputHidden&&!t.isHidden)break;n+=1}const o=m.getState(e);e.activeCellIndex=n,e.deselectAll(),m.handleState(e,o,!0)},e.insertSameLevelHeadingAbove=async function(e){if(!e.model||!e.activeCell)return;let t=m.Headings.determineHeadingLevel(e.activeCell,e);-1==t?await m.Headings.insertHeadingAboveCellIndex(0,1,e):await m.Headings.insertHeadingAboveCellIndex(e.activeCellIndex,t,e)},e.insertSameLevelHeadingBelow=async function(e){if(!e.model||!e.activeCell)return;let t=m.Headings.determineHeadingLevel(e.activeCell,e);t=t>-1?t:1;let n=m.Headings.findLowerEqualLevelHeadingBelow(e.activeCell,e,!0);await m.Headings.insertHeadingAboveCellIndex(-1==n?e.model.cells.length:n,t,e)},e.selectHeadingAboveOrCollapseHeading=function(e){if(!e.model||!e.activeCell)return;const t=m.getState(e);let n=h(e.activeCell);if(n.isHeading&&!n.collapsed)r(e.activeCell,!0,e);else{let t=m.Headings.findLowerEqualLevelParentHeadingAbove(e.activeCell,e,!0);t>-1&&(e.activeCellIndex=t)}e.deselectAll(),m.handleState(e,t,!0)},e.selectHeadingBelowOrExpandHeading=function(e){if(!e.model||!e.activeCell)return;const t=m.getState(e);let n=h(e.activeCell);if(n.isHeading&&n.collapsed)r(e.activeCell,!1,e);else{let t=m.Headings.findHeadingBelow(e.activeCell,e,!0);t>-1&&(e.activeCellIndex=t)}e.deselectAll(),m.handleState(e,t,!0)},e.extendSelectionAbove=function(e,t=!1){if(!e.model||!e.activeCell)return;if(0===e.activeCellIndex)return;const n=m.getState(e);e.mode="command",t?e.extendContiguousSelectionTo(0):e.extendContiguousSelectionTo(e.activeCellIndex-1),m.handleState(e,n,!0)},e.extendSelectionBelow=function(e,t=!1){if(!e.model||!e.activeCell)return;if(e.activeCellIndex===e.widgets.length-1)return;const n=m.getState(e);e.mode="command",t?e.extendContiguousSelectionTo(e.widgets.length-1):e.extendContiguousSelectionTo(e.activeCellIndex+1),m.handleState(e,n,!0)},e.selectAll=function(e){e.model&&e.activeCell&&e.widgets.forEach((t=>{e.select(t)}))},e.deselectAll=function(e){e.model&&e.activeCell&&e.deselectAll()},e.copy=function(e){m.copyOrCut(e,!1)},e.cut=function(e){m.copyOrCut(e,!0)},e.paste=function(e,t="below"){const i=o.Clipboard.getInstance();i.hasData(u)&&n(e,t,i.getData(u),!0)},e.duplicate=function(e,t="below"){const o=m.selectedCells(e);o&&0!==o.length&&n(e,t,o,!1)},e.undo=function(e){if(!e.model)return;const t=m.getState(e);e.mode="command",e.model.sharedModel.undo(),e.deselectAll(),m.handleState(e,t)},e.redo=function(e){if(!e.model||!e.activeCell)return;const t=m.getState(e);e.mode="command",e.model.sharedModel.redo(),e.deselectAll(),m.handleState(e,t)},e.toggleAllLineNumbers=function(e){if(!e.model||!e.activeCell)return;const t=m.getState(e),n=e.editorConfig,o=!(n.code.lineNumbers&&n.markdown.lineNumbers&&n.raw.lineNumbers),i={code:{...n.code,lineNumbers:o},markdown:{...n.markdown,lineNumbers:o},raw:{...n.raw,lineNumbers:o}};e.editorConfig=i,m.handleState(e,t)},e.clearOutputs=function(e){if(!e.model||!e.activeCell)return;const t=m.getState(e);let n=-1;for(const t of e.model.cells){const o=e.widgets[++n];e.isSelectedOrActive(o)&&"code"===t.type&&t.sharedModel.transact((()=>{t.clearExecution(),o.outputHidden=!1}),!1)}m.handleState(e,t,!0)},e.clearAllOutputs=function(e){if(!e.model||!e.activeCell)return;const t=m.getState(e);let n=-1;for(const t of e.model.cells){const o=e.widgets[++n];"code"===t.type&&t.sharedModel.transact((()=>{t.clearExecution(),o.outputHidden=!1}),!1)}m.handleState(e,t,!0)},e.hideCode=function(e){if(!e.model||!e.activeCell)return;const t=m.getState(e);e.widgets.forEach((t=>{e.isSelectedOrActive(t)&&"code"===t.model.type&&(t.inputHidden=!0)})),m.handleState(e,t)},e.showCode=function(e){if(!e.model||!e.activeCell)return;const t=m.getState(e);e.widgets.forEach((t=>{e.isSelectedOrActive(t)&&"code"===t.model.type&&(t.inputHidden=!1)})),m.handleState(e,t)},e.hideAllCode=function(e){if(!e.model||!e.activeCell)return;const t=m.getState(e);e.widgets.forEach((e=>{"code"===e.model.type&&(e.inputHidden=!0)})),m.handleState(e,t)},e.showAllCode=function(e){if(!e.model||!e.activeCell)return;const t=m.getState(e);e.widgets.forEach((e=>{"code"===e.model.type&&(e.inputHidden=!1)})),m.handleState(e,t)},e.hideOutput=function(e){if(!e.model||!e.activeCell)return;const t=m.getState(e);e.widgets.forEach((t=>{e.isSelectedOrActive(t)&&"code"===t.model.type&&(t.outputHidden=!0)})),m.handleState(e,t,!0)},e.showOutput=function(e){if(!e.model||!e.activeCell)return;const t=m.getState(e);e.widgets.forEach((t=>{e.isSelectedOrActive(t)&&"code"===t.model.type&&(t.outputHidden=!1)})),m.handleState(e,t)},e.hideAllOutputs=function(e){if(!e.model||!e.activeCell)return;const t=m.getState(e);e.widgets.forEach((e=>{"code"===e.model.type&&(e.outputHidden=!0)})),m.handleState(e,t,!0)},e.renderSideBySide=function(e){e.renderingLayout="side-by-side"},e.renderDefault=function(e){e.renderingLayout="default"},e.showAllOutputs=function(e){if(!e.model||!e.activeCell)return;const t=m.getState(e);e.widgets.forEach((e=>{"code"===e.model.type&&(e.outputHidden=!1)})),m.handleState(e,t)},e.enableOutputScrolling=function(e){if(!e.model||!e.activeCell)return;const t=m.getState(e);e.widgets.forEach((t=>{e.isSelectedOrActive(t)&&"code"===t.model.type&&(t.outputsScrolled=!0)})),m.handleState(e,t,!0)},e.disableOutputScrolling=function(e){if(!e.model||!e.activeCell)return;const t=m.getState(e);e.widgets.forEach((t=>{e.isSelectedOrActive(t)&&"code"===t.model.type&&(t.outputsScrolled=!1)})),m.handleState(e,t)},e.selectLastRunCell=function(e){let t=null,n=null;e.widgets.forEach(((e,o)=>{if("code"===e.model.type){const i=e.model.getMetadata("execution");if(i&&d.JSONExt.isObject(i)&&void 0!==i["iopub.status.busy"]){const e=i["iopub.status.busy"].toString();if(e){const i=new Date(e);(!t||i>=t)&&(t=i,n=o)}}}})),null!==n&&(e.activeCellIndex=n)},e.setMarkdownHeader=function(e,t){if(!e.model||!e.activeCell)return;const n=m.getState(e),o=e.model.cells;t=Math.min(Math.max(t,1),6),e.widgets.forEach(((n,i)=>{e.isSelectedOrActive(n)&&m.setMarkdownHeader(o.get(i),t)})),m.changeCellType(e,"markdown"),m.handleState(e,n)},e.collapseAllHeadings=function(t){for(const n of t.widgets)e.getHeadingInfo(n).isHeading&&(e.setHeadingCollapse(n,!0,t),e.setCellCollapse(n,!0))},e.expandAllHeadings=function(t){for(const n of t.widgets)e.getHeadingInfo(n).isHeading&&(e.setHeadingCollapse(n,!1,t),e.setCellCollapse(n,!1))},e.expandParent=function e(t,n){let o=function(e,t){const n=(0,a.findIndex)(t.widgets,((t,n)=>e.model.id===t.model.id));if(-1===n)return;if(n>=t.widgets.length)return;let o=h(t.widgets[n]);for(let e=n-1;e>=0;e--)if(e<t.widgets.length){let n=h(t.widgets[e]);if(n.isHeading&&n.headingLevel<o.headingLevel)return t.widgets[e]}}(t,n);o&&(h(o).collapsed||o.isHidden)&&(o.isHidden&&e(o,n),h(o).collapsed&&r(o,!1,n))},e.findNextParentHeading=function(e,t){let n=(0,a.findIndex)(t.widgets,((t,n)=>e.model.id===t.model.id));if(-1===n)return-1;let o=h(e);for(n+=1;n<t.widgets.length;n++){let e=h(t.widgets[n]);if(e.isHeading&&e.headingLevel<=o.headingLevel)return n}return t.widgets.length},e.setHeadingCollapse=r,e.toggleCurrentHeadingCollapse=function(t){if(!t.activeCell||void 0===t.activeCellIndex)return;let n=e.getHeadingInfo(t.activeCell);n.isHeading&&e.setHeadingCollapse(t.activeCell,!n.collapsed,t),t.scrollToItem(t.activeCellIndex).catch((e=>{}))},e.setCellCollapse=function(e,t){e instanceof i.MarkdownCell?e.headingCollapsed=t:e.setHidden(t)},e.getHeadingInfo=h,e.trust=function(e,t){const n=(t=t||l.nullTranslator).load("jupyterlab");if(!e.model)return Promise.resolve();const i=(0,a.every)(e.model.cells,(e=>e.trusted)),s=c.createElement("p",null,n.__("A trusted Jupyter notebook may execute hidden malicious code when you open it."),c.createElement("br",null),n.__('Selecting "Trust" will re-render this notebook in a trusted state.'),c.createElement("br",null),n.__("For more information, see")," ",c.createElement("a",{href:"https://jupyter-server.readthedocs.io/en/stable/operators/security.html",target:"_blank",rel:"noopener noreferrer"},n.__("the Jupyter security documentation")),".");return i?(0,o.showDialog)({body:n.__("Notebook is already trusted"),buttons:[o.Dialog.okButton()]}).then((()=>{})):(0,o.showDialog)({body:s,title:n.__("Trust this notebook?"),buttons:[o.Dialog.cancelButton(),o.Dialog.warnButton({label:n.__("Trust"),ariaLabel:n.__("Confirm Trusting this notebook")})]}).then((t=>{if(t.button.accept&&e.model)for(const t of e.model.cells)t.trusted=!0}))}}(C||(C={})),function(e){function t(e){var t,n;return{wasFocused:e.node.contains(document.activeElement),activeCellId:null!==(n=null===(t=e.activeCell)||void 0===t?void 0:t.model.id)&&void 0!==n?n:null}}function n(e,t,n=!1){const{activeCell:o,activeCellIndex:i}=e;(t.wasFocused||"edit"===e.mode)&&e.activate(),n&&o&&e.scrollToItem(i,"smart",.05).catch((e=>{}))}function d(e){const t=e.model.sharedModel,n=[];e.mode="command",e.widgets.forEach(((t,o)=>{var i;const s=!1!==t.model.getMetadata("deletable");e.isSelectedOrActive(t)&&s&&(n.push(o),null===(i=e.model)||void 0===i||i.deletedCells.push(t.model.id))})),n.length>0&&(t.transact((()=>{n.reverse().forEach((e=>{t.deleteCell(e)})),t.cells.length==n.length&&t.insertCell(0,{cell_type:e.notebookConfig.defaultCell,metadata:"code"===e.notebookConfig.defaultCell?{trusted:!0}:{}})})),e.activeCellIndex=n[0]-n.length+1),e.deselectAll()}let c;e.executed=new r.Signal({}),e.executionScheduled=new r.Signal({}),e.selectionExecuted=new r.Signal({}),e.getState=t,e.handleState=n,e.handleRunState=function(e,t,n=!1){var o;if((t.wasFocused||"edit"===e.mode)&&e.activate(),n&&t.activeCellId){const n=e.widgets.findIndex((e=>e.model.id===t.activeCellId));(null===(o=e.widgets[n])||void 0===o?void 0:o.inputArea)&&e.scrollToItem(n).catch((e=>{}))}},e.runSelected=function(t,n,s,d){t.mode="command";let r=t.activeCellIndex;const c=t.widgets.filter(((e,n)=>{const o=t.isSelectedOrActive(e);return o&&(r=n),o}));return t.activeCellIndex=r,t.deselectAll(),Promise.all(c.map((r=>async function(t,n,s,d,r){var c,h,u;const C=(r=r||l.nullTranslator).load("jupyterlab");switch(n.model.type){case"markdown":n.rendered=!0,n.inputHidden=!1,e.executed.emit({notebook:t,cell:n,success:!0});break;case"code":if(s){if(s.isTerminating){await(0,o.showDialog)({title:C.__("Kernel Terminating"),body:C.__("The kernel for %1 appears to be terminating. You can not run any cell for now.",null===(c=s.session)||void 0===c?void 0:c.path),buttons:[o.Dialog.okButton()]});break}if(s.pendingInput)return await(0,o.showDialog)({title:C.__("Cell not executed due to pending input"),body:C.__("The cell has not been executed to avoid kernel deadlock as there is another pending input! Submit your pending input and try again."),buttons:[o.Dialog.okButton()]}),!1;if(s.hasNoKernel&&await s.startKernel()&&d&&await d.selectKernel(s),s.hasNoKernel)return n.model.sharedModel.transact((()=>{n.model.clearExecution()})),!0;const l=null!==(u=null===(h=t.model)||void 0===h?void 0:h.deletedCells)&&void 0!==u?u:[];e.executionScheduled.emit({notebook:t,cell:n});let r=!1;try{const e=await i.CodeCell.execute(n,s,{deletedCells:l,recordTiming:t.notebookConfig.recordTiming});l.splice(0,l.length),r=(()=>{if(n.isDisposed)return!1;if(!e)return!0;if("ok"===e.content.status){const o=e.content;return o.payload&&o.payload.length&&function(e,t,n){var o;const i=null===(o=e.payload)||void 0===o?void 0:o.filter((e=>"set_next_input"===e.source))[0];if(!i)return;const s=i.text;if(i.replace)return void n.model.sharedModel.setSource(s);const l=t.model.sharedModel,d=t.model.cells,r=(0,a.findIndex)(d,(e=>e===n.model));-1===r?l.insertCell(l.cells.length,{cell_type:"code",source:s,metadata:{trusted:!1}}):l.insertCell(r+1,{cell_type:"code",source:s,metadata:{trusted:!1}})}(o,t,n),!0}throw new g(e.content)})()}catch(o){if(!n.isDisposed&&!o.message.startsWith("Canceled"))throw e.executed.emit({notebook:t,cell:n,success:!1,error:o}),o;r=!1}return r&&e.executed.emit({notebook:t,cell:n,success:!0}),r}n.model.sharedModel.transact((()=>{n.model.clearExecution()}),!1)}return Promise.resolve(!0)}(t,r,n,s,d)))).then((n=>!t.isDisposed&&(e.selectionExecuted.emit({notebook:t,lastCell:t.widgets[r]}),t.update(),n.every((e=>e))))).catch((n=>{if(!n.message.startsWith("KernelReplyNotOK"))throw n;return c.map((e=>{"code"===e.model.type&&null==e.model.executionCount&&e.setPrompt("")})),e.selectionExecuted.emit({notebook:t,lastCell:t.widgets[r]}),t.update(),!1}))},e.selectedCells=function(e){return e.widgets.filter((t=>e.isSelectedOrActive(t))).map((e=>e.model.toJSON())).map((e=>(void 0!==e.metadata.deletable&&delete e.metadata.deletable,e)))},e.copyOrCut=function(i,s){if(!i.model||!i.activeCell)return;const l=t(i),a=o.Clipboard.getInstance();i.mode="command",a.clear();const r=e.selectedCells(i);a.setData(u,r),s?d(i):i.deselectAll(),i.lastClipboardInteraction=s?"cut":"copy",n(i,l)},e.changeCellType=function(e,t){const n=e.model.sharedModel;e.widgets.forEach(((o,i)=>{if(e.isSelectedOrActive(o)){if(o.model.type!==t){const e=o.model.toJSON();n.transact((()=>{n.deleteCell(i),e.metadata.trusted="code"===t||void 0;const o=n.insertCell(i,{cell_type:t,source:e.source,metadata:e.metadata});e.attachments&&["markdown","raw"].includes(t)&&(o.attachments=e.attachments)}))}"markdown"===t&&((o=e.widgets[i]).rendered=!1)}})),e.deselectAll()},e.deleteCells=d,e.setMarkdownHeader=function(e,t){let n=e.sharedModel.getSource();const o=Array(t+1).join("#")+" ",i=/^(#+\s*)|^(\s*)/.exec(n);i&&(n=n.slice(i[0].length)),e.sharedModel.setSource(o+n)},function(t){function n(e,t,n=!1,o=!1){let i=t.widgets.indexOf(e)-(n?1:0);for(;i>=0;){if(C.getHeadingInfo(t.widgets[i]).isHeading)return o?i:t.widgets[i];i--}return o?-1:null}t.findParentHeading=n,t.findLowerEqualLevelParentHeadingAbove=function(t,n,o=!1){let i=e.Headings.determineHeadingLevel(t,n);-1==i&&(i=1);let s=n.widgets.indexOf(t)-1;for(;s>=0;){let e=n.widgets[s],t=C.getHeadingInfo(e);if(t.isHeading&&t.headingLevel<=i)return o?s:e;s--}return o?-1:null},t.findLowerEqualLevelHeadingBelow=function(t,n,o=!1){let i=e.Headings.determineHeadingLevel(t,n);-1==i&&(i=1);let s=n.widgets.indexOf(t)+1;for(;s<n.widgets.length;){let e=n.widgets[s],t=C.getHeadingInfo(e);if(t.isHeading&&t.headingLevel<=i)return o?s:e;s++}return o?-1:null},t.findHeadingBelow=function(e,t,n=!1){let o=t.widgets.indexOf(e)+1;for(;o<t.widgets.length;){let e=t.widgets[o];if(C.getHeadingInfo(e).isHeading)return n?o:e;o++}return n?-1:null},t.determineHeadingLevel=function(e,t){let o=C.getHeadingInfo(e);if(o.isHeading)return o.headingLevel;{let o=n(e,t,!0);return null==o?-1:C.getHeadingInfo(o).headingLevel}},t.insertHeadingAboveCellIndex=async function(t,n,o){var i;n=Math.min(Math.max(n,1),6);const l=e.getState(o);o.model.sharedModel.insertCell(t,{cell_type:"markdown",source:"#".repeat(n)+" "}),o.activeCellIndex=t,!1===(null===(i=o.activeCell)||void 0===i?void 0:i.inViewport)&&await(0,s.signalToPromise)(o.activeCell.inViewportChanged,200).catch((()=>{})),o.deselectAll(),e.handleState(o,l,!0),o.mode="edit",o.widgets[t].setHidden(!1)}}(c=e.Headings||(e.Headings={}))}(m||(m={}));class v{constructor(e){this.model=e,this._cellMap=new WeakMap,this._changed=new r.Signal(this),this._isDisposed=!1,this._insertCells(0,this.model.cells),this.model.changed.connect(this._onSharedModelChanged,this)}get changed(){return this._changed}get isDisposed(){return this._isDisposed}get length(){return this.model.cells.length}*[Symbol.iterator](){for(const e of this.model.cells)yield this._cellMap.get(e)}dispose(){var e;if(!this._isDisposed){this._isDisposed=!0;for(const t of this.model.cells)null===(e=this._cellMap.get(t))||void 0===e||e.dispose();r.Signal.clearData(this)}}get(e){return this._cellMap.get(this.model.cells[e])}_insertCells(e,t){return t.forEach((e=>{let t;switch(e.cell_type){case"code":t=new i.CodeCellModel({sharedModel:e});break;case"markdown":t=new i.MarkdownCellModel({sharedModel:e});break;default:t=new i.RawCellModel({sharedModel:e})}this._cellMap.set(e,t),e.disposed.connect((()=>{t.dispose(),this._cellMap.delete(e)}))})),this.length}_onSharedModelChanged(e,t){var n;let o=0;const i=new Array;null===(n=t.cellsChange)||void 0===n||n.forEach((e=>{null!=e.insert?(this._insertCells(o,e.insert),i.push({type:"add",newIndex:o,newValues:e.insert.map((e=>this._cellMap.get(e))),oldIndex:-2,oldValues:[]}),o+=e.insert.length):null!=e.delete?i.push({type:"remove",newIndex:-1,newValues:[],oldIndex:o,oldValues:new Array(e.delete).fill(void 0)}):null!=e.retain&&(o+=e.retain)})),i.forEach((e=>this._changed.emit(e)))}}var p,f=n(59361);!function(e){function t(e,t){const n=(t||l.nullTranslator).load("jupyterlab");function i(){if(e.context.model.readOnly)return(0,o.showDialog)({title:n.__("Cannot Save"),body:n.__("Document is read-only"),buttons:[o.Dialog.okButton()]});e.context.save().then((()=>{if(!e.isDisposed)return e.context.createCheckpoint()}))}return(0,f.addToolbarButtonClass)(f.ReactWidget.create(c.createElement(f.UseSignal,{signal:e.context.fileChanged},(()=>c.createElement(f.ToolbarButtonComponent,{icon:f.saveIcon,onClick:i,tooltip:n.__("Save the notebook contents and create checkpoint"),enabled:!!(e&&e.context&&e.context.contentsModel&&e.context.contentsModel.writable)})))))}function n(e,t){const n=(t||l.nullTranslator).load("jupyterlab");return new f.ToolbarButton({icon:f.addIcon,onClick:()=>{C.insertBelow(e.content)},tooltip:n.__("Insert a cell below")})}function i(e,t){const n=(t||l.nullTranslator).load("jupyterlab");return new f.ToolbarButton({icon:f.cutIcon,onClick:()=>{C.cut(e.content)},tooltip:n.__("Cut the selected cells")})}function s(e,t){const n=(t||l.nullTranslator).load("jupyterlab");return new f.ToolbarButton({icon:f.copyIcon,onClick:()=>{C.copy(e.content)},tooltip:n.__("Copy the selected cells")})}function a(e,t){const n=(t||l.nullTranslator).load("jupyterlab");return new f.ToolbarButton({icon:f.pasteIcon,onClick:()=>{C.paste(e.content)},tooltip:n.__("Paste cells from the clipboard")})}function d(e,t,n){const o=(null!=n?n:l.nullTranslator).load("jupyterlab");return new f.ToolbarButton({icon:f.runIcon,onClick:()=>{C.runAndAdvance(e.content,e.sessionContext,t,n)},tooltip:o.__("Run the selected cells and advance")})}function r(e,t,n){const i=(null!=n?n:l.nullTranslator).load("jupyterlab");return new f.ToolbarButton({icon:f.fastForwardIcon,onClick:()=>{const i=null!=t?t:new o.SessionContextDialogs({translator:n});i.restart(e.sessionContext).then((t=>(t&&C.runAll(e.content,e.sessionContext,i,n),t)))},tooltip:i.__("Restart the kernel, then re-run the whole notebook")})}function h(e,t){return new _(e.content,t)}e.createSaveButton=t,e.createInsertButton=n,e.createCutButton=i,e.createCopyButton=s,e.createPasteButton=a,e.createRunButton=d,e.createRestartRunAllButton=r,e.createCellTypeItem=h,e.getDefaultItems=function(e,l,c){return[{name:"save",widget:t(e,c)},{name:"insert",widget:n(e,c)},{name:"cut",widget:i(e,c)},{name:"copy",widget:s(e,c)},{name:"paste",widget:a(e,c)},{name:"run",widget:d(e,l,c)},{name:"interrupt",widget:o.Toolbar.createInterruptButton(e.sessionContext,c)},{name:"restart",widget:o.Toolbar.createRestartButton(e.sessionContext,l,c)},{name:"restart-and-run",widget:r(e,l,c)},{name:"cellType",widget:h(e,c)},{name:"spacer",widget:f.Toolbar.createSpacerItem()},{name:"kernelName",widget:o.Toolbar.createKernelNameItem(e.sessionContext,l,c)}]}}(p||(p={}));class _ extends f.ReactWidget{constructor(e,t){super(),this.handleChange=e=>{"-"!==e.target.value&&(C.changeCellType(this._notebook,e.target.value),this._notebook.activate())},this.handleKeyDown=e=>{13===e.keyCode&&this._notebook.activate()},this._trans=(t||l.nullTranslator).load("jupyterlab"),this.addClass("jp-Notebook-toolbarCellType"),this._notebook=e,e.model&&this.update(),e.activeCellChanged.connect(this.update,this),e.selectionChanged.connect(this.update,this)}render(){let e="-";this._notebook.activeCell&&(e=this._notebook.activeCell.model.type);for(const t of this._notebook.widgets)if(this._notebook.isSelectedOrActive(t)&&t.model.type!==e){e="-";break}return c.createElement(f.HTMLSelect,{className:"jp-Notebook-toolbarCellTypeDropdown",onChange:this.handleChange,onKeyDown:this.handleKeyDown,value:e,"aria-label":this._trans.__("Cell type"),title:this._trans.__("Select the cell type")},c.createElement("option",{value:"-"},"-"),c.createElement("option",{value:"code"},this._trans.__("Code")),c.createElement("option",{value:"markdown"},this._trans.__("Markdown")),c.createElement("option",{value:"raw"},this._trans.__("Raw")))}}var w=n(67993),b=n(27038);function y(e){const t=e.translator||l.nullTranslator,n=(0,o.translateKernelStatuses)(t),i=t.load("jupyterlab"),s=e.state,a=e.displayOption.showOnToolBar,d=e.displayOption.showProgress,r=a?"down":"up",c=h().createElement("div",null);if(!s)return c;const u=s.kernelStatus,g={alignSelf:"normal",height:"24px"},C=s.totalTime,m=s.scheduledCellNumber||0,v=m-(s.scheduledCell.size||0);let p=100*v/m,_=d?"":"hidden";!d&&p<100&&(p=0);const b=e=>h().createElement(w.ProgressCircle,{progress:e,width:16,height:24,label:i.__("Kernel status")}),y=e=>i.__("Kernel status: %1",e),k=(e,t,o)=>h().createElement("div",{className:"jp-Notebook-ExecutionIndicator",title:d?"":y(n[e]),"data-status":e},t,h().createElement("div",{className:`jp-Notebook-ExecutionIndicator-tooltip ${r} ${_}`},h().createElement("span",null," ",y(n[e])," "),o));if("connecting"===s.kernelStatus||"disconnected"===s.kernelStatus||"unknown"===s.kernelStatus)return k(u,h().createElement(f.offlineBoltIcon.react,{...g}),[]);if("starting"===s.kernelStatus||"terminating"===s.kernelStatus||"restarting"===s.kernelStatus||"initializing"===s.kernelStatus)return k(u,h().createElement(f.circleIcon.react,{...g}),[]);if("busy"===s.executionStatus)return k("busy",b(p),[h().createElement("span",{key:0},i.__(`Executed ${v}/${m} cells`)),h().createElement("span",{key:1},i._n("Elapsed time: %1 second","Elapsed time: %1 seconds",C))]);{const e="busy"===s.kernelStatus?0:100,t="busy"===s.kernelStatus||0===C?[]:[h().createElement("span",{key:0},i._n("Executed %1 cell","Executed %1 cells",m)),h().createElement("span",{key:1},i._n("Elapsed time: %1 second","Elapsed time: %1 seconds",C))];return k(s.kernelStatus,b(e),t)}}class k extends f.VDomRenderer{constructor(e,t=!0){super(new k.Model),this.translator=e||l.nullTranslator,this.addClass("jp-mod-highlighted")}render(){if(null!==this.model&&this.model.renderFlag){const e=this.model.currentNotebook;return e?h().createElement(y,{displayOption:this.model.displayOption,state:this.model.executionState(e),translator:this.translator}):h().createElement(y,{displayOption:this.model.displayOption,state:void 0,translator:this.translator})}return h().createElement("div",null)}}!function(e){class t extends f.VDomModel{constructor(){super(),this._notebookExecutionProgress=new WeakMap,this._displayOption={showOnToolBar:!0,showProgress:!0},this._renderFlag=!0}attachNotebook(e){var t,n,o,i;if(e&&e.content&&e.context){const s=e.content,l=e.context;if(this._currentNotebook=s,!this._notebookExecutionProgress.has(s)){this._notebookExecutionProgress.set(s,{executionStatus:"idle",kernelStatus:"idle",totalTime:0,interval:0,timeout:0,scheduledCell:new Set,scheduledCellNumber:0,needReset:!0});const e=this._notebookExecutionProgress.get(s),a=t=>{e&&(e.kernelStatus=t.kernelDisplayStatus),this.stateChanged.emit(void 0)};l.statusChanged.connect(a,this);const d=t=>{e&&(e.kernelStatus=t.kernelDisplayStatus),this.stateChanged.emit(void 0)};l.connectionStatusChanged.connect(d,this),l.disposed.connect((e=>{e.connectionStatusChanged.disconnect(d,this),e.statusChanged.disconnect(a,this)}));const r=(e,t)=>{const n=t.msg,o=n.header.msg_id;if("execute_request"===n.header.msg_type)this._cellScheduledCallback(s,o);else if(b.KernelMessage.isStatusMsg(n)&&"idle"===n.content.execution_state){const e=n.parent_header.msg_id;this._cellExecutedCallback(s,e)}else b.KernelMessage.isStatusMsg(n)&&"restarting"===n.content.execution_state?this._restartHandler(s):"execute_input"===n.header.msg_type&&this._startTimer(s)};null===(n=null===(t=l.session)||void 0===t?void 0:t.kernel)||void 0===n||n.anyMessage.connect(r),null===(i=null===(o=l.session)||void 0===o?void 0:o.kernel)||void 0===i||i.disposed.connect((e=>e.anyMessage.disconnect(r)));const c=(t,n)=>{e&&(this._resetTime(e),this.stateChanged.emit(void 0),n.newValue&&n.newValue.anyMessage.connect(r))};l.kernelChanged.connect(c),l.disposed.connect((e=>e.kernelChanged.disconnect(c)))}}}get currentNotebook(){return this._currentNotebook}get displayOption(){return this._displayOption}set displayOption(e){this._displayOption=e}executionState(e){return this._notebookExecutionProgress.get(e)}_scheduleSwitchToIdle(e){window.setTimeout((()=>{e.executionStatus="idle",clearInterval(e.interval),this.stateChanged.emit(void 0)}),150),e.timeout=window.setTimeout((()=>{e.needReset=!0}),1e3)}_cellExecutedCallback(e,t){const n=this._notebookExecutionProgress.get(e);n&&n.scheduledCell.has(t)&&(n.scheduledCell.delete(t),0===n.scheduledCell.size&&this._scheduleSwitchToIdle(n))}_restartHandler(e){const t=this._notebookExecutionProgress.get(e);t&&(t.scheduledCell.clear(),this._scheduleSwitchToIdle(t))}_startTimer(e){const t=this._notebookExecutionProgress.get(e);t&&(t.scheduledCell.size>0?"busy"!==t.executionStatus&&(t.executionStatus="busy",clearTimeout(t.timeout),this.stateChanged.emit(void 0),t.interval=window.setInterval((()=>{this._tick(t)}),1e3)):this._resetTime(t))}_cellScheduledCallback(e,t){const n=this._notebookExecutionProgress.get(e);n&&!n.scheduledCell.has(t)&&(n.needReset&&this._resetTime(n),n.scheduledCell.add(t),n.scheduledCellNumber+=1)}_tick(e){e.totalTime+=1,this.stateChanged.emit(void 0)}_resetTime(e){e.totalTime=0,e.scheduledCellNumber=0,e.executionStatus="idle",e.scheduledCell=new Set,clearTimeout(e.timeout),clearInterval(e.interval),e.needReset=!1}get renderFlag(){return this._renderFlag}updateRenderOption(e){this.displayOption.showOnToolBar&&(e.showOnToolBar?this._renderFlag=!0:this._renderFlag=!1),this.displayOption.showProgress=e.showProgress,this.stateChanged.emit(void 0)}}function n(e){let t=!0,n=!0;const o=e.get("kernelStatus").composite;return o&&(t=!o.showOnStatusBar,n=o.showProgress),{showOnToolBar:t,showProgress:n}}e.Model=t,e.createExecutionIndicatorItem=function(t,o,i){const s=new e(o);return s.model.displayOption={showOnToolBar:!0,showProgress:!0},s.model.attachNotebook({content:t.content,context:t.sessionContext}),i&&i.then((e=>{const t=e=>{s.model.updateRenderOption(n(e))};e.changed.connect(t),t(e),s.disposed.connect((()=>{e.changed.disconnect(t)}))})).catch((e=>{console.error(e.message)})),s},e.getSettingValue=n}(k||(k={}));var x=n(11964),S=n(69688);class M{constructor(e={}){var t,n;this.standaloneModel=!1,this._dirty=!1,this._readOnly=!1,this._contentChanged=new r.Signal(this),this._stateChanged=new r.Signal(this),this._isDisposed=!1,this._metadataChanged=new r.Signal(this),this.standaloneModel=void 0===e.sharedModel,e.sharedModel?this.sharedModel=e.sharedModel:this.sharedModel=S.YNotebook.create({disableDocumentWideUndoRedo:null===(t=e.disableDocumentWideUndoRedo)||void 0===t||t,data:{nbformat:x.MAJOR_VERSION,nbformat_minor:x.MINOR_VERSION,metadata:{kernelspec:{name:"",display_name:""},language_info:{name:null!==(n=e.languagePreference)&&void 0!==n?n:""}}}}),this._cells=new v(this.sharedModel),this._trans=(e.translator||l.nullTranslator).load("jupyterlab"),this._deletedCells=[],this._collaborationEnabled=!!(null==e?void 0:e.collaborationEnabled),this._cells.changed.connect(this._onCellsChanged,this),this.sharedModel.changed.connect(this._onStateChanged,this),this.sharedModel.metadataChanged.connect(this._onMetadataChanged,this)}get contentChanged(){return this._contentChanged}get metadataChanged(){return this._metadataChanged}get stateChanged(){return this._stateChanged}get cells(){return this._cells}get dirty(){return this._dirty}set dirty(e){const t=this._dirty;e!==t&&(this._dirty=e,this.triggerStateChange({name:"dirty",oldValue:t,newValue:e}))}get readOnly(){return this._readOnly}set readOnly(e){if(e===this._readOnly)return;const t=this._readOnly;this._readOnly=e,this.triggerStateChange({name:"readOnly",oldValue:t,newValue:e})}get metadata(){return this.sharedModel.metadata}get nbformat(){return this.sharedModel.nbformat}get nbformatMinor(){return this.sharedModel.nbformat_minor}get defaultKernelName(){var e;const t=this.getMetadata("kernelspec");return null!==(e=null==t?void 0:t.name)&&void 0!==e?e:""}get deletedCells(){return this._deletedCells}get defaultKernelLanguage(){var e;const t=this.getMetadata("language_info");return null!==(e=null==t?void 0:t.name)&&void 0!==e?e:""}get collaborative(){return this._collaborationEnabled}dispose(){if(this.isDisposed)return;this._isDisposed=!0;const e=this.cells;this._cells=null,e.dispose(),this.standaloneModel&&this.sharedModel.dispose(),r.Signal.clearData(this)}deleteMetadata(e){return this.sharedModel.deleteMetadata(e)}getMetadata(e){return this.sharedModel.getMetadata(e)}setMetadata(e,t){void 0===t?this.sharedModel.deleteMetadata(e):this.sharedModel.setMetadata(e,t)}toString(){return JSON.stringify(this.toJSON())}fromString(e){this.fromJSON(JSON.parse(e))}toJSON(){return this._ensureMetadata(),this.sharedModel.toJSON()}fromJSON(e){var t,n;const i=d.JSONExt.deepCopy(e),s=e.metadata.orig_nbformat;if(i.nbformat=Math.max(e.nbformat,x.MAJOR_VERSION),(i.nbformat!==e.nbformat||i.nbformat_minor<x.MINOR_VERSION)&&(i.nbformat_minor=x.MINOR_VERSION),void 0!==s&&i.nbformat!==s){let e;e=i.nbformat>s?this._trans.__("This notebook has been converted from an older notebook format (v%1)\nto the current notebook format (v%2).\nThe next time you save this notebook, the current notebook format (v%2) will be used.\n'Older versions of Jupyter may not be able to read the new format.' To preserve the original format version,\nclose the notebook without saving it.",s,i.nbformat):this._trans.__("This notebook has been converted from an newer notebook format (v%1)\nto the current notebook format (v%2).\nThe next time you save this notebook, the current notebook format (v%2) will be used.\nSome features of the original notebook may not be available.' To preserve the original format version,\nclose the notebook without saving it.",s,i.nbformat),(0,o.showDialog)({title:this._trans.__("Notebook converted"),body:e,buttons:[o.Dialog.okButton({label:this._trans.__("Ok")})]})}0===(null!==(n=null===(t=i.cells)||void 0===t?void 0:t.length)&&void 0!==n?n:0)&&(i.cells=[{cell_type:"code",source:"",metadata:{trusted:!0}}]),this.sharedModel.fromJSON(i),this._ensureMetadata(),this.dirty=!0}_onCellsChanged(e,t){switch(t.type){case"add":case"set":t.newValues.forEach((e=>{e.contentChanged.connect(this.triggerContentChange,this)}))}this.triggerContentChange()}_onMetadataChanged(e,t){this._metadataChanged.emit(t),this.triggerContentChange()}_onStateChanged(e,t){t.stateChange&&t.stateChange.forEach((e=>{"dirty"===e.name?this.dirty=e.newValue:e.oldValue!==e.newValue&&this.triggerStateChange({newValue:void 0,oldValue:void 0,...e})}))}_ensureMetadata(e=""){this.getMetadata("language_info")||this.sharedModel.setMetadata("language_info",{name:e}),this.getMetadata("kernelspec")||this.sharedModel.setMetadata("kernelspec",{name:"",display_name:""})}triggerStateChange(e){this._stateChanged.emit(e)}triggerContentChange(){this._contentChanged.emit(void 0),this.dirty=!0}get isDisposed(){return this._isDisposed}}class I{constructor(e={}){var t,n;this._disposed=!1,this._disableDocumentWideUndoRedo=null===(t=e.disableDocumentWideUndoRedo)||void 0===t||t,this._collaborative=null===(n=e.collaborative)||void 0===n||n}get disableDocumentWideUndoRedo(){return this._disableDocumentWideUndoRedo}set disableDocumentWideUndoRedo(e){this._disableDocumentWideUndoRedo=e}get name(){return"notebook"}get contentType(){return"notebook"}get fileFormat(){return"json"}get collaborative(){return this._collaborative}get isDisposed(){return this._disposed}dispose(){this._disposed=!0}createNew(e={}){return new M({languagePreference:e.languagePreference,sharedModel:e.sharedModel,collaborationEnabled:e.collaborationEnabled&&this.collaborative,disableDocumentWideUndoRedo:this._disableDocumentWideUndoRedo})}preferredLanguage(e){return""}}function A(e){const t=(e.translator||l.nullTranslator).load("jupyterlab");return c.createElement(w.TextItem,{source:t.__("Mode: %1",e.modeNames[e.notebookMode])})}class E extends f.VDomRenderer{constructor(e){super(new E.Model),this.translator=e||l.nullTranslator,this._trans=this.translator.load("jupyterlab"),this._modeNames={command:this._trans.__("Command"),edit:this._trans.__("Edit")}}render(){return this.model?(this.node.title=this._trans.__("Notebook is in %1 mode",this._modeNames[this.model.notebookMode]),c.createElement(A,{notebookMode:this.model.notebookMode,translator:this.translator,modeNames:this._modeNames})):null}}!function(e){class t extends f.VDomModel{constructor(){super(...arguments),this._onChanged=e=>{const t=this._notebookMode;this._notebook?this._notebookMode=e.mode:this._notebookMode="command",this._triggerChange(t,this._notebookMode)},this._notebookMode="command",this._notebook=null}get notebookMode(){return this._notebookMode}set notebook(e){const t=this._notebook;null!==t&&(t.stateChanged.disconnect(this._onChanged,this),t.activeCellChanged.disconnect(this._onChanged,this),t.modelContentChanged.disconnect(this._onChanged,this));const n=this._notebookMode;this._notebook=e,null===this._notebook?this._notebookMode="command":(this._notebookMode=this._notebook.mode,this._notebook.stateChanged.connect(this._onChanged,this),this._notebook.activeCellChanged.connect(this._onChanged,this),this._notebook.modelContentChanged.connect(this._onChanged,this)),this._triggerChange(n,this._notebookMode)}_triggerChange(e,t){e!==t&&this.stateChanged.emit(void 0)}}e.Model=t}(E||(E={}));var T=n(400);class P extends T.WidgetLSPAdapter{constructor(e,t){super(e,t),this.editorWidget=e,this.options=t,this._type="code",this._readyDelegate=new d.PromiseDelegate,this._editorToCell=new Map,this.editor=e.content,this._cellToEditor=new WeakMap,Promise.all([this.widget.context.sessionContext.ready,this.connectionManager.ready]).then((async()=>{await this.initOnceReady(),this._readyDelegate.resolve()})).catch(console.error)}get documentPath(){return this.widget.context.path}get mimeType(){var e;let t,n=this.language_info();return t=n&&n.mimetype?n.mimetype:this.widget.content.codeMimetype,Array.isArray(t)?null!==(e=t[0])&&void 0!==e?e:"text/plain":t}get languageFileExtension(){let e=this.language_info();if(e&&e.file_extension)return e.file_extension.replace(".","")}get wrapperElement(){return this.widget.node}get editors(){if(this.isDisposed)return[];let e=this.widget.content;return this._editorToCell.clear(),e.isDisposed?[]:e.widgets.map((e=>({ceEditor:this._getCellEditor(e),type:e.model.type,value:e.model.sharedModel.getSource()})))}get activeEditor(){return this.editor.activeCell?this._getCellEditor(this.editor.activeCell):void 0}get ready(){return this._readyDelegate.promise}getEditorIndexAt(e){let t=this._getCellAt(e);return this.widget.content.widgets.findIndex((e=>t===e))}getEditorIndex(e){let t=this._editorToCell.get(e);return this.editor.widgets.findIndex((e=>t===e))}getEditorWrapper(e){return this._editorToCell.get(e).node}async onKernelChanged(e,t){if(t.newValue)try{const e=this._languageInfo;await(0,T.untilReady)(this.isReady,-1),await this._updateLanguageInfo();const t=this._languageInfo;(null==e?void 0:e.name)!=t.name||(null==e?void 0:e.mimetype)!=(null==t?void 0:t.mimetype)||(null==e?void 0:e.file_extension)!=(null==t?void 0:t.file_extension)?(console.log(`Changed to ${this._languageInfo.name} kernel, reconnecting`),this.reloadConnection()):console.log("Keeping old LSP connection as the new kernel uses the same langauge")}catch(e){console.warn(e),this.reloadConnection()}}dispose(){this.isDisposed||(this.widget.context.sessionContext.kernelChanged.disconnect(this.onKernelChanged,this),this.widget.content.activeCellChanged.disconnect(this._activeCellChanged,this),super.dispose(),this._editorToCell.clear(),r.Signal.clearData(this))}isReady(){var e;return!this.widget.isDisposed&&this.widget.context.isReady&&this.widget.content.isVisible&&this.widget.content.widgets.length>0&&null!=(null===(e=this.widget.context.sessionContext.session)||void 0===e?void 0:e.kernel)}async handleCellChange(e,t){let n=[],o=[];const i=this._type;if("set"===t.type){let e=[],s=[];if(t.newValues.length===t.oldValues.length){for(let n=0;n<t.newValues.length;n++)t.oldValues[n].type===i&&t.newValues[n].type!==i?e.push(t.newValues[n]):t.oldValues[n].type!==i&&t.newValues[n].type===i&&s.push(t.newValues[n]);n=s,o=e}}else"add"==t.type&&(n=t.newValues.filter((e=>e.type===i)));(o.length||n.length||"set"===t.type||"move"===t.type||"remove"===t.type)&&await this.updateDocuments();for(let e of n){let t=this.widget.content.widgets.find((t=>t.model.id===e.id));t?this._getCellEditor(t):console.warn(`Widget for added cell with ID: ${e.id} not found!`)}}createVirtualDocument(){return new T.VirtualDocument({language:this.language,foreignCodeExtractors:this.options.foreignCodeExtractorsManager,path:this.documentPath,fileExtension:this.languageFileExtension,standalone:!1,hasLspSupportedFile:!1})}language_info(){return this._languageInfo}async initOnceReady(){await(0,T.untilReady)(this.isReady.bind(this),-1),await this._updateLanguageInfo(),this.initVirtual(),this.connectDocument(this.virtualDocument,!1).catch(console.warn),this.widget.context.sessionContext.kernelChanged.connect(this.onKernelChanged,this),this.widget.content.activeCellChanged.connect(this._activeCellChanged,this),this._connectModelSignals(this.widget),this.editor.modelChanged.connect((e=>{console.warn("Model changed, connecting cell change handler; this is not something we were expecting"),this._connectModelSignals(e)}))}_connectModelSignals(e){null===e.model?console.warn(`Model is missing for notebook ${e}, cannot connect cell changed signal!`):e.model.cells.changed.connect(this.handleCellChange,this)}async _updateLanguageInfo(){var e,t,n,o;const i=null===(o=await(null===(n=null===(t=null===(e=this.widget.context.sessionContext)||void 0===e?void 0:e.session)||void 0===t?void 0:t.kernel)||void 0===n?void 0:n.info))||void 0===o?void 0:o.language_info;if(!i)throw new Error("Language info update failed (no session, kernel, or info available)");this._languageInfo=i}_activeCellChanged(e,t){t&&t.model.type===this._type&&this._activeEditorChanged.emit({editor:this._getCellEditor(t)})}_getCellAt(e){let t=this.virtualDocument.getEditorAtVirtualLine(e);return this._editorToCell.get(t)}_getCellEditor(e){if(!this._cellToEditor.has(e)){const t=Object.freeze({getEditor:()=>e.editor,ready:async()=>(await e.ready,e.editor),reveal:async()=>(await this.editor.scrollToCell(e),e.editor)});this._cellToEditor.set(e,t),this._editorToCell.set(t,e),e.disposed.connect((()=>{this._cellToEditor.delete(e),this._editorToCell.delete(t),this._editorRemoved.emit({editor:t})})),this._editorAdded.emit({editor:t})}return this._cellToEditor.get(e)}}var N,O=n(8434),L=n(97031),D=n(49503),H=n(9267);class R extends H.Widget{constructor(){super(),this._items=[],this.layout=new H.PanelLayout,this.addClass("jp-RankedPanel")}addWidget(e,t){const n={widget:e,rank:t},o=a.ArrayExt.upperBound(this._items,n,N.itemCmp);a.ArrayExt.insert(this._items,o,n),this.layout.insertWidget(o,e)}onChildRemoved(e){const t=a.ArrayExt.findFirstIndex(this._items,(t=>t.widget===e.child));-1!==t&&a.ArrayExt.removeAt(this._items,t)}}class B extends H.Widget{constructor(e){super(),this.addClass("jp-NotebookTools"),this.translator=e.translator||l.nullTranslator,this._tools=[],this.layout=new H.PanelLayout,this._tracker=e.tracker,this._tracker.currentChanged.connect(this._onActiveNotebookPanelChanged,this),this._tracker.activeCellChanged.connect(this._onActiveCellChanged,this),this._tracker.selectionChanged.connect(this._onSelectionChanged,this),this._onActiveNotebookPanelChanged(),this._onActiveCellChanged(),this._onSelectionChanged()}get activeCell(){return this._tracker.activeCell}get selectedCells(){const e=this._tracker.currentWidget;if(!e)return[];const t=e.content;return t.widgets.filter((e=>t.isSelectedOrActive(e)))}get activeNotebookPanel(){return this._tracker.currentWidget}addItem(e){var t;const n=e.tool,o=null!==(t=e.rank)&&void 0!==t?t:100;let i;const s=this._tools.find((t=>t.section===e.section));if(!s)throw new Error(`The section ${e.section} does not exist`);i=s.panel,n.addClass("jp-NotebookTools-tool"),i.addWidget(n,o),n.notebookTools=this,D.MessageLoop.sendMessage(n,B.ActiveNotebookPanelMessage),D.MessageLoop.sendMessage(n,B.ActiveCellMessage)}addSection(e){var t;const n=e.sectionName,o=e.label||e.sectionName,i=e.tool;let s=null!==(t=e.rank)&&void 0!==t?t:null;const l=new R;if(l.title.label=o,i&&l.addWidget(i,0),this._tools.push({section:n,panel:l,rank:s}),null!=s)this.layout.insertWidget(s,new f.Collapser({widget:l}));else{let e=null;const t=this.layout;for(let n=0;n<t.widgets.length;n++){let o=t.widgets[n];if(o instanceof f.Collapser&&"advancedToolsSection"===o.widget.id){e=n;break}}null!==e?this.layout.insertWidget(e,new f.Collapser({widget:l})):this.layout.addWidget(new f.Collapser({widget:l}))}}_onActiveNotebookPanelChanged(){this._prevActiveNotebookModel&&!this._prevActiveNotebookModel.isDisposed&&this._prevActiveNotebookModel.metadataChanged.disconnect(this._onActiveNotebookPanelMetadataChanged,this);const e=this.activeNotebookPanel&&this.activeNotebookPanel.content?this.activeNotebookPanel.content.model:null;this._prevActiveNotebookModel=e,e&&e.metadataChanged.connect(this._onActiveNotebookPanelMetadataChanged,this);for(const e of this._toolChildren())D.MessageLoop.sendMessage(e,B.ActiveNotebookPanelMessage)}_onActiveCellChanged(){this._prevActiveCell&&!this._prevActiveCell.isDisposed&&this._prevActiveCell.metadataChanged.disconnect(this._onActiveCellMetadataChanged,this);const e=this.activeCell?this.activeCell.model:null;this._prevActiveCell=e,e&&e.metadataChanged.connect(this._onActiveCellMetadataChanged,this);for(const e of this._toolChildren())D.MessageLoop.sendMessage(e,B.ActiveCellMessage)}_onSelectionChanged(){for(const e of this._toolChildren())D.MessageLoop.sendMessage(e,B.SelectionMessage)}_onActiveNotebookPanelMetadataChanged(e,t){const n=new L.ObservableJSON.ChangeMessage("activenotebookpanel-metadata-changed",{oldValue:void 0,newValue:void 0,...t});for(const e of this._toolChildren())D.MessageLoop.sendMessage(e,n)}_onActiveCellMetadataChanged(e,t){const n=new L.ObservableJSON.ChangeMessage("activecell-metadata-changed",{newValue:void 0,oldValue:void 0,...t});for(const e of this._toolChildren())D.MessageLoop.sendMessage(e,n)}*_toolChildren(){for(let e of this._tools)yield*e.panel.children()}}!function(e){e.ActiveNotebookPanelMessage=new D.ConflatableMessage("activenotebookpanel-changed"),e.ActiveCellMessage=new D.ConflatableMessage("activecell-changed"),e.SelectionMessage=new D.ConflatableMessage("selection-changed");class t extends H.Widget{dispose(){super.dispose(),this.notebookTools&&(this.notebookTools=null)}processMessage(e){switch(super.processMessage(e),e.type){case"activenotebookpanel-changed":this.onActiveNotebookPanelChanged(e);break;case"activecell-changed":this.onActiveCellChanged(e);break;case"selection-changed":this.onSelectionChanged(e);break;case"activecell-metadata-changed":this.onActiveCellMetadataChanged(e);break;case"activenotebookpanel-metadata-changed":this.onActiveNotebookPanelMetadataChanged(e)}}onActiveNotebookPanelChanged(e){}onActiveCellChanged(e){}onSelectionChanged(e){}onActiveCellMetadataChanged(e){}onActiveNotebookPanelMetadataChanged(e){}}e.Tool=t,e.MetadataEditorTool=class extends t{constructor(e){super();const{editorFactory:t}=e;this.addClass("jp-MetadataEditorTool");const n=this.layout=new H.PanelLayout;this._editorFactory=t,this._editorLabel=e.label||"Edit Metadata",this.createEditor();const o=new H.Widget({node:document.createElement("label")});o.node.textContent=e.label||"Edit Metadata",n.addWidget(o),n.addWidget(this.editor)}get editor(){return this._editor}onActiveNotebookPanelChanged(e){this.editor.dispose(),this.notebookTools.activeNotebookPanel&&this.createEditor()}createEditor(){this._editor=new O.JSONEditor({editorFactory:this._editorFactory}),this.editor.title.label=this._editorLabel,this.layout.addWidget(this.editor)}}}(B||(B={})),function(e){e.itemCmp=function(e,t){return e.rank-t.rank}}(N||(N={}));var V=n(49358),F=n(16698),W=n(18395),j=n(20805),U=n(14421),q=n(24475);const K="jp-mod-dropTarget",J="jp-mod-dropSource";class $ extends f.WindowedListModel{constructor(e,t){super(t),this.cells=e,this.estimateWidgetSize=e=>{const t=this.cells[e].model.sharedModel.getSource().split("\n").length;return $.DEFAULT_EDITOR_LINE_HEIGHT*t+$.DEFAULT_CELL_MARGIN},this.widgetRenderer=e=>this.cells[e],this._estimatedWidgetSize=$.DEFAULT_CELL_SIZE}}$.DEFAULT_CELL_SIZE=39,$.DEFAULT_EDITOR_LINE_HEIGHT=17,$.DEFAULT_CELL_MARGIN=22;class z extends f.WindowedLayout{constructor(){super(...arguments),this._header=null,this._footer=null,this._willBeRemoved=null,this._topHiddenCodeCells=-1}get header(){return this._header}set header(e){var t;this._header&&this._header.isAttached&&H.Widget.detach(this._header),this._header=e,this._header&&(null===(t=this.parent)||void 0===t?void 0:t.isAttached)&&H.Widget.attach(this._header,this.parent.node)}get footer(){return this._footer}set footer(e){var t;this._footer&&this._footer.isAttached&&H.Widget.detach(this._footer),this._footer=e,this._footer&&(null===(t=this.parent)||void 0===t?void 0:t.isAttached)&&H.Widget.attach(this._footer,this.parent.node)}dispose(){var e,t;this.isDisposed||(null===(e=this._header)||void 0===e||e.dispose(),null===(t=this._footer)||void 0===t||t.dispose(),super.dispose())}removeWidget(e){const t=this.widgets.indexOf(e);t>=0?this.removeWidgetAt(t):e===this._willBeRemoved&&this.parent&&this.detachWidget(t,e)}attachWidget(e,t){const n=t.isPlaceholder();if(this.parent.isAttached&&D.MessageLoop.sendMessage(t,H.Widget.Msg.BeforeAttach),!n&&t instanceof i.CodeCell&&t.node.parentElement)t.node.style.display="",this._topHiddenCodeCells=-1;else{const e=this._findNearestChildBinarySearch(this.parent.viewportNode.childElementCount-1,0,parseInt(t.dataset.windowedListIndex,10)+1);let n=this.parent.viewportNode.children[e];this.parent.viewportNode.insertBefore(t.node,n),this.parent.isAttached&&D.MessageLoop.sendMessage(t,H.Widget.Msg.AfterAttach)}t.inViewport=!0}detachWidget(e,t){t.inViewport=!1,t instanceof i.CodeCell&&!t.node.classList.contains(J)&&t!==this._willBeRemoved?(t.node.style.display="none",this._topHiddenCodeCells=-1):(this.parent.isAttached&&D.MessageLoop.sendMessage(t,H.Widget.Msg.BeforeDetach),this.parent.viewportNode.removeChild(t.node),t.node.classList.remove(K)),this.parent.isAttached&&D.MessageLoop.sendMessage(t,H.Widget.Msg.AfterDetach)}moveWidget(e,t,n){if(this._topHiddenCodeCells<0){this._topHiddenCodeCells=0;for(let e=0;e<this.parent.viewportNode.children.length&&"none"==this.parent.viewportNode.children[e].style.display;e++)this._topHiddenCodeCells++}const o=this.parent.viewportNode.children[t+this._topHiddenCodeCells];e<t?o.insertAdjacentElement("afterend",n.node):o.insertAdjacentElement("beforebegin",n.node)}onAfterAttach(e){super.onAfterAttach(e),this._header&&!this._header.isAttached&&H.Widget.attach(this._header,this.parent.node,this.parent.node.firstElementChild),this._footer&&!this._footer.isAttached&&H.Widget.attach(this._footer,this.parent.node)}onBeforeDetach(e){var t,n;(null===(t=this._header)||void 0===t?void 0:t.isAttached)&&H.Widget.detach(this._header),(null===(n=this._footer)||void 0===n?void 0:n.isAttached)&&H.Widget.detach(this._footer),super.onBeforeDetach(e)}onChildRemoved(e){this._willBeRemoved=e.child,super.onChildRemoved(e),this._willBeRemoved=null}_findNearestChildBinarySearch(e,t,n){for(;t<=e;){const o=t+Math.floor((e-t)/2),i=parseInt(this.parent.viewportNode.children[o].dataset.windowedListIndex,10);if(i===n)return o;i<n?t=o+1:i>n&&(e=o-1)}return t>0?t:0}}class Y extends H.Widget{constructor(e){super({node:document.createElement("button")}),this.notebook=e,this.node.dataset.jpTraversable="true";const t=e.translator.load("jupyterlab");this.addClass("jp-Notebook-footer"),this.node.innerText=t.__("Click to add a cell.")}handleEvent(e){switch(e.type){case"click":this.onClick();break;case"keydown":if("ArrowUp"===e.key){this.onArrowUp();break}}}onClick(){this.notebook.widgets.length>0&&(this.notebook.activeCellIndex=this.notebook.widgets.length-1),C.insertBelow(this.notebook)}onArrowUp(){}onAfterAttach(e){super.onAfterAttach(e),this.node.addEventListener("click",this),this.node.addEventListener("keydown",this)}onBeforeDetach(e){this.node.removeEventListener("click",this),this.node.removeEventListener("keydown",this),super.onBeforeDetach(e)}}const Q="jp-Notebook-cell",G="jp-mod-editMode",X="jp-mod-commandMode",Z="jp-mod-active",ee="jp-mod-selected",te="jp-mod-multiSelected",ne="jp-dragImage",oe="jp-dragImage-singlePrompt",ie="jp-dragImage-content",se="jp-dragImage-prompt",le="jp-dragImage-multipleBack",ae="application/vnd.jupyter.cells",de="jp-mod-sideBySide";void 0===window.requestIdleCallback&&(window.requestIdleCallback=function(e){let t=Date.now();return setTimeout((function(){e({didTimeout:!1,timeRemaining:function(){return Math.max(0,50-(Date.now()-t))}})}),1)},window.cancelIdleCallback=function(e){clearTimeout(e)});class re extends f.WindowedList{constructor(e){var t,n,o,i,s;const a=new Array;super({model:new $(a,{overscanCount:null!==(n=null===(t=e.notebookConfig)||void 0===t?void 0:t.overscanCount)&&void 0!==n?n:re.defaultNotebookConfig.overscanCount,windowingActive:"full"===(null!==(i=null===(o=e.notebookConfig)||void 0===o?void 0:o.windowingMode)&&void 0!==i?i:re.defaultNotebookConfig.windowingMode)}),layout:new z}),this._cellCollapsed=new r.Signal(this),this._cellInViewportChanged=new r.Signal(this),this._renderingLayoutChanged=new r.Signal(this),this.addClass("jp-Notebook"),this.cellsArray=a,this._idleCallBack=null,this._editorConfig=re.defaultEditorConfig,this._notebookConfig=re.defaultNotebookConfig,this._mimetype="text/plain",this._notebookModel=null,this._modelChanged=new r.Signal(this),this._modelContentChanged=new r.Signal(this),this.node.dataset.jpKernelUser="true",this.node.dataset.jpUndoer="true",this.node.dataset.jpCodeRunner="true",this.node.dataset.jpTraversable="true",this.rendermime=e.rendermime,this.translator=e.translator||l.nullTranslator,this.contentFactory=e.contentFactory,this.editorConfig=e.editorConfig||re.defaultEditorConfig,this.notebookConfig=e.notebookConfig||re.defaultNotebookConfig,this._updateNotebookConfig(),this._mimetypeService=e.mimeTypeService,this.renderingLayout=null===(s=e.notebookConfig)||void 0===s?void 0:s.renderingLayout}get cellCollapsed(){return this._cellCollapsed}get cellInViewportChanged(){return this._cellInViewportChanged}get modelChanged(){return this._modelChanged}get modelContentChanged(){return this._modelContentChanged}get renderingLayoutChanged(){return this._renderingLayoutChanged}get model(){return this._notebookModel}set model(e){var t;if(e=e||null,this._notebookModel===e)return;const n=this._notebookModel;this._notebookModel=e,this._onModelChanged(n,e),this.onModelChanged(n,e),this._modelChanged.emit(void 0),this.viewModel.itemsList=null!==(t=null==e?void 0:e.cells)&&void 0!==t?t:null}get codeMimetype(){return this._mimetype}get widgets(){return this.cellsArray}get editorConfig(){return this._editorConfig}set editorConfig(e){this._editorConfig=e,this._updateEditorConfig()}get notebookConfig(){return this._notebookConfig}set notebookConfig(e){this._notebookConfig=e,this._updateNotebookConfig()}get renderingLayout(){return this._renderingLayout}set renderingLayout(e){var t;this._renderingLayout=e,"side-by-side"===this._renderingLayout?this.node.classList.add(de):this.node.classList.remove(de),this._renderingLayoutChanged.emit(null!==(t=this._renderingLayout)&&void 0!==t?t:"default")}dispose(){var e;this.isDisposed||(this._notebookModel=null,null===(e=this.layout.header)||void 0===e||e.dispose(),super.dispose())}moveCell(e,t,n=1){if(!this.model)return;const o=Math.min(this.model.cells.length-1,Math.max(0,t));if(o===e)return;const i=new Array(n);for(let t=0;t<n;t++){i[t]={};const n=this.widgets[e+t];if("markdown"===n.model.type)for(const e of["rendered","headingCollapsed"])i[t][e]=n[e]}this.model.sharedModel.moveCells(e,o,n);for(let e=0;e<n;e++){const n=this.widgets[t+e],o=i[e];for(const e in o)n[e]=o[e]}}renderCellOutputs(e){const t=this.viewModel.widgetRenderer(e);t instanceof i.CodeCell&&t.isPlaceholder()&&(t.dataset.windowedListIndex=`${e}`,this.layout.insertWidget(e,t),"full"===this.notebookConfig.windowingMode&&requestAnimationFrame((()=>{this.layout.removeWidget(t)})))}addHeader(){const e=this.translator.load("jupyterlab"),t=new H.Widget;t.node.textContent=e.__("The notebook is empty. Click the + button on the toolbar to add a new cell."),this.layout.header=t}removeHeader(){var e;null===(e=this.layout.header)||void 0===e||e.dispose(),this.layout.header=null}onModelChanged(e,t){}onModelContentChanged(e,t){this._modelContentChanged.emit(void 0)}onMetadataChanged(e,t){"language_info"===t.key&&this._updateMimetype()}onCellInserted(e,t){}onCellRemoved(e,t){}onUpdateRequest(e){"defer"===this.notebookConfig.windowingMode?this._runOnIdleTime():super.onUpdateRequest(e)}_onModelChanged(e,t){var n;if(e)for(e.contentChanged.disconnect(this.onModelContentChanged,this),e.metadataChanged.disconnect(this.onMetadataChanged,this),e.cells.changed.disconnect(this._onCellsChanged,this);this.cellsArray.length;)this._removeCell(0);if(!t)return void(this._mimetype="text/plain");this._updateMimetype();const o=t.cells;null!==(n=t.collaborative)&&void 0!==n&&n||o.length||t.sharedModel.insertCell(0,{cell_type:this.notebookConfig.defaultCell,metadata:"code"===this.notebookConfig.defaultCell?{trusted:!0}:{}});let i=-1;for(const e of o)this._insertCell(++i,e);t.cells.changed.connect(this._onCellsChanged,this),t.metadataChanged.connect(this.onMetadataChanged,this),t.contentChanged.connect(this.onModelContentChanged,this)}_onCellsChanged(e,t){switch(this.removeHeader(),t.type){case"add":{let e=0;e=t.newIndex;for(const n of t.newValues)this._insertCell(e++,n);this._updateDataWindowedListIndex(t.newIndex,this.model.cells.length,t.newValues.length);break}case"remove":for(let e=t.oldValues.length;e>0;e--)this._removeCell(t.oldIndex);if(this._updateDataWindowedListIndex(t.oldIndex,this.model.cells.length+t.oldValues.length,-1*t.oldValues.length),!e.length){const e=this.model;requestAnimationFrame((()=>{!e||e.isDisposed||e.sharedModel.cells.length||e.sharedModel.insertCell(0,{cell_type:this.notebookConfig.defaultCell,metadata:"code"===this.notebookConfig.defaultCell?{trusted:!0}:{}})}))}break;default:return}this.model.sharedModel.cells.length||this.addHeader(),this.update()}_insertCell(e,t){let n;switch(t.type){case"code":n=this._createCodeCell(t),n.model.mimeType=this._mimetype;break;case"markdown":n=this._createMarkdownCell(t),""===t.sharedModel.getSource()&&(n.rendered=!1);break;default:n=this._createRawCell(t)}n.inViewportChanged.connect(this._onCellInViewportChanged,this),n.addClass(Q),a.ArrayExt.insert(this.cellsArray,e,n),this.onCellInserted(e,n),this._scheduleCellRenderOnIdle()}_createCodeCell(e){const t=this.rendermime,n={contentFactory:this.contentFactory,editorConfig:this.editorConfig.code,inputHistoryScope:this.notebookConfig.inputHistoryScope,maxNumberOutputs:this.notebookConfig.maxNumberOutputs,model:e,placeholder:"none"!==this._notebookConfig.windowingMode,rendermime:t,translator:this.translator},o=this.contentFactory.createCodeCell(n);return o.syncCollapse=!0,o.syncEditable=!0,o.syncScrolled=!0,o.outputArea.inputRequested.connect((()=>{this._onInputRequested(o).catch((e=>{console.error("Failed to scroll to cell requesting input.",e)}))})),o}_createMarkdownCell(e){const t=this.rendermime,n={contentFactory:this.contentFactory,editorConfig:this.editorConfig.markdown,model:e,placeholder:"none"!==this._notebookConfig.windowingMode,rendermime:t,showEditorForReadOnlyMarkdown:this._notebookConfig.showEditorForReadOnlyMarkdown},o=this.contentFactory.createMarkdownCell(n);return o.syncCollapse=!0,o.syncEditable=!0,o.headingCollapsedChanged.connect(this._onCellCollapsed,this),o}_createRawCell(e){const t=this.contentFactory,n={editorConfig:this.editorConfig.raw,model:e,contentFactory:t,placeholder:"none"!==this._notebookConfig.windowingMode},o=this.contentFactory.createRawCell(n);return o.syncCollapse=!0,o.syncEditable=!0,o}_removeCell(e){const t=this.cellsArray[e];t.parent=null,a.ArrayExt.removeAt(this.cellsArray,e),this.onCellRemoved(e,t),t.dispose()}_updateMimetype(){var e;const t=null===(e=this._notebookModel)||void 0===e?void 0:e.getMetadata("language_info");if(t){this._mimetype=this._mimetypeService.getMimeTypeByLanguage(t);for(const e of this.widgets)"code"===e.model.type&&(e.model.mimeType=this._mimetype)}}_onCellCollapsed(e,t){C.setHeadingCollapse(e,t,this),this._cellCollapsed.emit(e)}_onCellInViewportChanged(e){this._cellInViewportChanged.emit(e)}async _onInputRequested(e){if(!e.inViewport){const t=this.widgets.findIndex((t=>t===e));if(t>=0){await this.scrollToItem(t);const n=e.node.querySelector(".jp-Stdin");n&&(W.ElementExt.scrollIntoViewIfNeeded(this.node,n),n.focus())}}}_scheduleCellRenderOnIdle(){"none"===this.notebookConfig.windowingMode||this.isDisposed||this._idleCallBack||(this._idleCallBack=requestIdleCallback((e=>{this._idleCallBack=null,this._runOnIdleTime(e.didTimeout?50:e.timeRemaining())}),{timeout:3e3}))}_updateDataWindowedListIndex(e,t,n){for(let o=0;o<this.viewportNode.childElementCount;o++){const i=this.viewportNode.children[o],s=parseInt(i.dataset.windowedListIndex,10);s>=e&&s<t&&(i.dataset.windowedListIndex=`${s+n}`)}}_updateEditorConfig(){for(let e=0;e<this.widgets.length;e++){const t=this.widgets[e];let n={};switch(t.model.type){case"code":n=this._editorConfig.code;break;case"markdown":n=this._editorConfig.markdown;break;default:n=this._editorConfig.raw}t.updateEditorConfig({...n})}}async _runOnIdleTime(e=50){const t=Date.now();let n=0;for(;Date.now()-t<e&&n<this.cellsArray.length;){const e=this.cellsArray[n];if(e.isPlaceholder())switch(this.notebookConfig.windowingMode){case"defer":await this._updateForDeferMode(e,n);break;case"full":this._renderCSSAndJSOutputs(e,n)}n++}n<this.cellsArray.length?"defer"===this.notebookConfig.windowingMode&&this.viewportNode.clientHeight<this.node.clientHeight?await this._runOnIdleTime():this._scheduleCellRenderOnIdle():this._idleCallBack&&(window.cancelIdleCallback(this._idleCallBack),this._idleCallBack=null)}async _updateForDeferMode(e,t){e.dataset.windowedListIndex=`${t}`,this.layout.insertWidget(t,e),await e.ready}_renderCSSAndJSOutputs(e,t){var n,o,s;if(e instanceof i.CodeCell)for(let i=0;i<(null!==(o=null===(n=e.model.outputs)||void 0===n?void 0:n.length)&&void 0!==o?o:0);i++)if((null!==(s=e.model.outputs.get(i).data["text/html"])&&void 0!==s?s:"").match(/(<style[^>]*>[^<]*<\/style[^>]*>|<script[^>]*>.*?<\/script[^>]*>)/gims)){this.renderCellOutputs(t);break}}_updateNotebookConfig(){this.toggleClass("jp-mod-scrollPastEnd",this._notebookConfig.scrollPastEnd),this.toggleClass("jp-mod-showHiddenCellsButton",this._notebookConfig.showHiddenCellsButton);const e=this._notebookConfig.showEditorForReadOnlyMarkdown;if(void 0!==e)for(const t of this.cellsArray)"markdown"===t.model.type&&(t.showEditorForReadOnly=e);this.viewModel.windowingActive="full"===this._notebookConfig.windowingMode}}!function(e){e.defaultEditorConfig={code:{lineNumbers:!1,lineWrap:!1,matchBrackets:!0},markdown:{lineNumbers:!1,lineWrap:!0,matchBrackets:!1},raw:{lineNumbers:!1,lineWrap:!0,matchBrackets:!1}},e.defaultNotebookConfig={showHiddenCellsButton:!0,scrollPastEnd:!0,defaultCell:"code",recordTiming:!1,inputHistoryScope:"global",maxNumberOutputs:50,showEditorForReadOnlyMarkdown:!0,disableDocumentWideUndoRedo:!0,renderingLayout:"default",sideBySideLeftMarginOverride:"10px",sideBySideRightMarginOverride:"10px",sideBySideOutputRatio:1,overscanCount:1,windowingMode:"full"};class t extends i.Cell.ContentFactory{createCodeCell(e){return new i.CodeCell(e).initializeState()}createMarkdownCell(e){return new i.MarkdownCell(e).initializeState()}createRawCell(e){return new i.RawCell(e).initializeState()}}e.ContentFactory=t}(re||(re={}));class ce extends re{constructor(e){super(e),this._activeCellIndex=-1,this._activeCell=null,this._mode="command",this._drag=null,this._dragData=null,this._mouseMode=null,this._activeCellChanged=new r.Signal(this),this._stateChanged=new r.Signal(this),this._selectionChanged=new r.Signal(this),this._checkCacheOnNextResize=!1,this._lastClipboardInteraction=null,this._selectedCells=[],this.node.tabIndex=0,this.node.setAttribute("data-lm-dragscroll","true"),this.activeCellChanged.connect(this._updateSelectedCells,this),this.selectionChanged.connect(this._updateSelectedCells,this),this.addFooter()}get selectedCells(){return this._selectedCells}addFooter(){const e=new Y(this);this.layout.footer=e}_onCellsChanged(e,t){var n,o;const i=null===(n=this.activeCell)||void 0===n?void 0:n.model.id;if(super._onCellsChanged(e,t),i){const e=null===(o=this.model)||void 0===o?void 0:o.sharedModel.cells.findIndex((e=>e.getId()===i));null!=e&&(this.activeCellIndex=e)}}get activeCellChanged(){return this._activeCellChanged}get stateChanged(){return this._stateChanged}get selectionChanged(){return this._selectionChanged}get mode(){return this._mode}set mode(e){const t=this.activeCell;if(t||(e="command"),e===this._mode)return void this._ensureFocus();this.update();const n=this._mode;if(this._mode=e,"edit"===e){for(const e of this.widgets)this.deselect(e);t instanceof i.MarkdownCell&&(t.rendered=!1),t.inputHidden=!1}else this.node.focus();this._stateChanged.emit({name:"mode",oldValue:n,newValue:e}),this._ensureFocus()}get activeCellIndex(){return this.model&&this.widgets.length?this._activeCellIndex:-1}set activeCellIndex(e){var t;const n=this._activeCellIndex;this.model&&this.widgets.length?(e=Math.max(e,0),e=Math.min(e,this.widgets.length-1)):e=-1,this._activeCellIndex=e;const o=null!==(t=this.widgets[e])&&void 0!==t?t:null,s=o!==this._activeCell;s&&(this.update(),this._activeCell=o),(s||e!=n)&&this._activeCellChanged.emit(o),"edit"===this.mode&&o instanceof i.MarkdownCell&&(o.rendered=!1),this._ensureFocus(),e!==n&&(this._trimSelections(),this._stateChanged.emit({name:"activeCellIndex",oldValue:n,newValue:e}))}get activeCell(){return this._activeCell}get lastClipboardInteraction(){return this._lastClipboardInteraction}set lastClipboardInteraction(e){this._lastClipboardInteraction=e}dispose(){this.isDisposed||(this._activeCell=null,super.dispose())}moveCell(e,t,n=1){const o=e<=this.activeCellIndex&&this.activeCellIndex<e+n?this.activeCellIndex+t-e-(e>t?0:n-1):-1,i=this.widgets.slice(e,e+n).map((e=>this.isSelected(e)));super.moveCell(e,t,n),o>=0&&(this.activeCellIndex=o),e>t?i.forEach(((e,n)=>{e&&this.select(this.widgets[t+n])})):i.forEach(((e,o)=>{e&&this.select(this.widgets[t-n+1+o])}))}select(e){he.selectedProperty.get(e)||(he.selectedProperty.set(e,!0),this._selectionChanged.emit(void 0),this.update())}deselect(e){he.selectedProperty.get(e)&&(he.selectedProperty.set(e,!1),this._selectionChanged.emit(void 0),this.update())}isSelected(e){return he.selectedProperty.get(e)}isSelectedOrActive(e){return e===this._activeCell||he.selectedProperty.get(e)}deselectAll(){let e=!1;for(const t of this.widgets)he.selectedProperty.get(t)&&(e=!0),he.selectedProperty.set(t,!1);e&&this._selectionChanged.emit(void 0),this.activeCellIndex=this.activeCellIndex,this.update()}extendContiguousSelectionTo(e){let t,{head:n,anchor:o}=this.getContiguousSelection();if(null===o||null===n){if(e===this.activeCellIndex)return;n=this.activeCellIndex,o=this.activeCellIndex}if(this.activeCellIndex=e,(e=this.activeCellIndex)===o)return void this.deselectAll();let i=!1;if(n<e)for(n<o&&(he.selectedProperty.set(this.widgets[n],!1),i=!0),t=n+1;t<e;t++)t!==o&&(he.selectedProperty.set(this.widgets[t],!he.selectedProperty.get(this.widgets[t])),i=!0);else if(e<n)for(o<n&&(he.selectedProperty.set(this.widgets[n],!1),i=!0),t=e+1;t<n;t++)t!==o&&(he.selectedProperty.set(this.widgets[t],!he.selectedProperty.get(this.widgets[t])),i=!0);he.selectedProperty.get(this.widgets[o])||(i=!0),he.selectedProperty.set(this.widgets[o],!0),he.selectedProperty.get(this.widgets[e])||(i=!0),he.selectedProperty.set(this.widgets[e],!0),i&&this._selectionChanged.emit(void 0)}getContiguousSelection(){const e=this.widgets,t=a.ArrayExt.findFirstIndex(e,(e=>this.isSelected(e)));if(-1===t)return{head:null,anchor:null};const n=a.ArrayExt.findLastIndex(e,(e=>this.isSelected(e)),-1,t);for(let o=t;o<=n;o++)if(!this.isSelected(e[o]))throw new Error("Selection not contiguous");const o=this.activeCellIndex;if(t!==o&&n!==o)throw new Error("Active cell not at endpoint of selection");return t===o?{head:t,anchor:n}:{head:n,anchor:t}}async scrollToCell(e,t="auto"){try{await this.scrollToItem(this.widgets.findIndex((t=>t===e)),t)}catch(e){}this.deselectAll(),this.select(e),e.activate()}_parseFragment(e){const t=e.slice(1);if(!t)return;const n=t.split("=");return 1===n.length?{kind:"heading",value:t}:{kind:n[0],value:n.slice(1).join("=")}}async setFragment(e){const t=this._parseFragment(e);if(!t)return;let n;switch(t.kind){case"heading":n=await this._findHeading(t.value);break;case"cell-id":n=this._findCellById(t.value);break;default:console.warn(`Unknown target type for URI fragment ${e}, interpreting as a heading`),n=await this._findHeading(t.kind+"="+t.value)}if(null==n)return;let{cell:o,element:i}=n;o.inViewport||await this.scrollToCell(o,"center"),null==i&&(i=o.node);const s=this.node.getBoundingClientRect(),l=i.getBoundingClientRect();(l.top>s.bottom||l.bottom<s.top)&&i.scrollIntoView({block:"center"})}handleEvent(e){if(this.model)switch(e.type){case"contextmenu":e.eventPhase===Event.CAPTURING_PHASE&&this._evtContextMenuCapture(e);break;case"mousedown":e.eventPhase===Event.CAPTURING_PHASE?this._evtMouseDownCapture(e):e.defaultPrevented||this._evtMouseDown(e);break;case"mouseup":e.currentTarget===document&&this._evtDocumentMouseup(e);break;case"mousemove":e.currentTarget===document&&this._evtDocumentMousemove(e);break;case"keydown":this._ensureFocus(!0);break;case"dblclick":this._evtDblClick(e);break;case"focusin":this._evtFocusIn(e);break;case"focusout":this._evtFocusOut(e);break;case"lm-dragenter":this._evtDragEnter(e);break;case"lm-dragleave":this._evtDragLeave(e);break;case"lm-dragover":this._evtDragOver(e);break;case"lm-drop":this._evtDrop(e);break;default:super.handleEvent(e)}}onAfterAttach(e){super.onAfterAttach(e);const t=this.node;t.addEventListener("contextmenu",this,!0),t.addEventListener("mousedown",this,!0),t.addEventListener("mousedown",this),t.addEventListener("keydown",this),t.addEventListener("dblclick",this),t.addEventListener("focusin",this),t.addEventListener("focusout",this),t.addEventListener("lm-dragenter",this,!0),t.addEventListener("lm-dragleave",this,!0),t.addEventListener("lm-dragover",this,!0),t.addEventListener("lm-drop",this,!0)}onBeforeDetach(e){const t=this.node;t.removeEventListener("contextmenu",this,!0),t.removeEventListener("mousedown",this,!0),t.removeEventListener("mousedown",this),t.removeEventListener("keydown",this),t.removeEventListener("dblclick",this),t.removeEventListener("focusin",this),t.removeEventListener("focusout",this),t.removeEventListener("lm-dragenter",this,!0),t.removeEventListener("lm-dragleave",this,!0),t.removeEventListener("lm-dragover",this,!0),t.removeEventListener("lm-drop",this,!0),document.removeEventListener("mousemove",this,!0),document.removeEventListener("mouseup",this,!0),super.onBeforeAttach(e)}onAfterShow(e){super.onAfterShow(e),this._checkCacheOnNextResize=!0}onResize(e){var t;if(!this._checkCacheOnNextResize)return super.onResize(e);super.onResize(e),this._checkCacheOnNextResize=!1;const n=this._cellLayoutStateCache,o=parseInt(this.node.style.width,10);if(!n||o!==n.width){this._cellLayoutStateCache={width:o};for(const e of this.widgets)e instanceof i.Cell&&e.inViewport&&(null===(t=e.editorWidget)||void 0===t||t.update())}}onBeforeHide(e){super.onBeforeHide(e);const t=parseInt(this.node.style.width,10);this._cellLayoutStateCache={width:t}}onActivateRequest(e){super.onActivateRequest(e),this._ensureFocus(!0)}onUpdateRequest(e){super.onUpdateRequest(e);const t=this.activeCell;"edit"===this.mode?(this.addClass(G),this.removeClass(X)):(this.addClass(X),this.removeClass(G)),t&&t.addClass(Z);let n=0;for(const e of this.widgets)e!==t&&e.removeClass(Z),e.removeClass(te),this.isSelectedOrActive(e)?(e.addClass(ee),n++):e.removeClass(ee);n>1&&(null==t||t.addClass(te))}onCellInserted(e,t){t.ready.then((()=>{t.isDisposed||t.editor.edgeRequested.connect(this._onEdgeRequest,this)})),this.activeCellIndex=e<=this.activeCellIndex?this.activeCellIndex+1:this.activeCellIndex}onCellRemoved(e,t){this.activeCellIndex=e<=this.activeCellIndex?this.activeCellIndex-1:this.activeCellIndex,this.isSelected(t)&&this._selectionChanged.emit(void 0)}onModelChanged(e,t){super.onModelChanged(e,t),this.activeCellIndex=0}_onEdgeRequest(e,t){const n=this.activeCellIndex;if("top"===t){if(this.activeCellIndex--,this.activeCellIndex<n){const e=this.activeCell.editor;if(e){const t=e.lineCount-1;e.setCursorPosition({line:t,column:0})}}}else if("bottom"===t&&(this.activeCellIndex++,this.activeCellIndex>n)){const e=this.activeCell.editor;e&&e.setCursorPosition({line:0,column:0})}this.mode="edit"}_ensureFocus(e=!1){var t,n;const o=this.activeCell;"edit"===this.mode&&o&&!0!==(null===(t=o.editor)||void 0===t?void 0:t.hasFocus())&&(o.inViewport?null===(n=o.editor)||void 0===n||n.focus():this.scrollToItem(this.activeCellIndex).then((()=>{o.ready.then((()=>{var e;null===(e=o.editor)||void 0===e||e.focus()}))})).catch((e=>{}))),e&&!this.node.contains(document.activeElement)&&this.node.focus()}_findCell(e){let t=e;for(;t&&t!==this.node;){if(t.classList.contains(Q)){const e=a.ArrayExt.findFirstIndex(this.widgets,(e=>e.node===t));if(-1!==e)return e;break}t=t.parentElement}return-1}_findEventTargetAndCell(e){let t=e.target,n=this._findCell(t);return-1===n&&(t=document.elementFromPoint(e.clientX,e.clientY),n=this._findCell(t)),[t,n]}async _findHeading(e){for(let t=0;t<this.widgets.length;t++){const n=this.widgets[t];if("raw"!==n.model.type&&("markdown"!==n.model.type||n.rendered))for(const t of n.headings){let o="";switch(t.type){case i.Cell.HeadingType.HTML:o=t.id;break;case i.Cell.HeadingType.Markdown:{const e=t;o=await F.TableOfContentsUtils.Markdown.getHeadingId(this.rendermime.markdownParser,e.raw,e.level)}}if(o===e)return{cell:n,element:this.node.querySelector(`h${t.level}[id="${o}"]`)}}}return null}_findCellById(e){for(let t=0;t<this.widgets.length;t++){const n=this.widgets[t];if(n.model.id===e)return{cell:n}}return null}_evtContextMenuCapture(e){var t;if(e.shiftKey)return;const[n,o]=this._findEventTargetAndCell(e),i=this.widgets[o];i&&(null===(t=i.editorWidget)||void 0===t?void 0:t.node.contains(n))&&e.preventDefault()}_evtMouseDownCapture(e){var t;const{button:n,shiftKey:o}=e,[i,s]=this._findEventTargetAndCell(e),l=this.widgets[s];2===n&&!o&&l&&(null===(t=l.editorWidget)||void 0===t?void 0:t.node.contains(i))&&(this.mode="command",e.preventDefault())}_evtMouseDown(e){var t,n,o;const{button:i,shiftKey:s}=e;if(0!==i&&2!==i)return;if(s&&2===i)return;const[l,a]=this._findEventTargetAndCell(e),d=this.widgets[a];let r;if(r=d?(null===(t=d.editorWidget)||void 0===t?void 0:t.node.contains(l))?"input":(null===(n=d.promptNode)||void 0===n?void 0:n.contains(l))?"prompt":"cell":"notebook","input"!==r&&(this.mode="command"),"notebook"===r)this.deselectAll();else if("prompt"===r||"cell"===r){const t=""!==(null!==(o=window.getSelection())&&void 0!==o?o:"").toString();if(0!==i||!s||t||["INPUT","OPTION"].includes(l.tagName))0!==i||s?2===i&&(this.isSelectedOrActive(d)||(this.deselectAll(),this.activeCellIndex=a),e.preventDefault()):("prompt"===r&&(this._dragData={pressX:e.clientX,pressY:e.clientY,index:a},this._mouseMode="couldDrag",document.addEventListener("mouseup",this,!0),document.addEventListener("mousemove",this,!0),e.preventDefault()),this.isSelectedOrActive(d)||(this.deselectAll(),this.activeCellIndex=a));else{e.preventDefault();try{this.extendContiguousSelectionTo(a)}catch(e){return console.error(e),void this.deselectAll()}this._mouseMode="select",document.addEventListener("mouseup",this,!0),document.addEventListener("mousemove",this,!0)}}else"input"===r&&(2!==i||this.isSelectedOrActive(d)||(this.deselectAll(),this.activeCellIndex=a));this._ensureFocus(!0)}_evtDocumentMouseup(e){if(e.preventDefault(),e.stopPropagation(),document.removeEventListener("mousemove",this,!0),document.removeEventListener("mouseup",this,!0),"couldDrag"===this._mouseMode){const[,t]=this._findEventTargetAndCell(e);this.deselectAll(),this.activeCellIndex=t,this.activeCell.node.contains(document.activeElement)||this.node.focus()}this._mouseMode=null}_evtDocumentMousemove(e){switch(e.preventDefault(),e.stopPropagation(),this._mouseMode){case"select":{const t=e.target,n=this._findCell(t);-1!==n&&this.extendContiguousSelectionTo(n);break}case"couldDrag":{const t=this._dragData,n=Math.abs(e.clientX-t.pressX),o=Math.abs(e.clientY-t.pressY);(n>=5||o>=5)&&(this._mouseMode=null,this._startDrag(t.index,e.clientX,e.clientY));break}}}_evtDragEnter(e){if(!e.mimeData.hasData(ae))return;e.preventDefault(),e.stopPropagation();const t=e.target,n=this._findCell(t);-1!==n&&this.cellsArray[n].node.classList.add(K)}_evtDragLeave(e){if(!e.mimeData.hasData(ae))return;e.preventDefault(),e.stopPropagation();const t=this.node.getElementsByClassName(K);t.length&&t[0].classList.remove(K)}_evtDragOver(e){if(!e.mimeData.hasData(ae))return;e.preventDefault(),e.stopPropagation(),e.dropAction=e.proposedAction;const t=this.node.getElementsByClassName(K);t.length&&t[0].classList.remove(K);const n=e.target,o=this._findCell(n);-1!==o&&this.cellsArray[o].node.classList.add(K)}_evtDrop(e){if(!e.mimeData.hasData(ae))return;if(e.preventDefault(),e.stopPropagation(),"none"===e.proposedAction)return void(e.dropAction="none");let t=e.target;for(;t&&t.parentElement;){if(t.classList.contains(K)){t.classList.remove(K);break}t=t.parentElement}const n=this.model,o=e.source;if(o===this){e.dropAction="move";const n=e.mimeData.getData("internal:cells"),s=n[n.length-1];if(s instanceof i.MarkdownCell&&s.headingCollapsed){const e=C.findNextParentHeading(s,o);if(e>0){const t=(0,a.findIndex)(o.widgets,(e=>s.model.id===e.model.id));n.push(...o.widgets.slice(t+1,e))}}let l=a.ArrayExt.firstIndexOf(this.widgets,n[0]),d=this._findCell(t);if(-1!==d&&d>l?d-=1:-1===d&&(d=this.widgets.length-1),d>=l&&d<l+n.length)return;this.moveCell(l,d,n.length)}else{e.dropAction="copy";let o=this._findCell(t);-1===o&&(o=this.widgets.length);const i=o,s=e.mimeData.getData(ae);n.sharedModel.insertCells(o,s),this.deselectAll(),this.activeCellIndex=i,this.extendContiguousSelectionTo(o-1)}}_startDrag(e,t,n){var o;const i=this.model.cells,s=[],l=[];let a=-1;for(const e of this.widgets){const t=i.get(++a);this.isSelectedOrActive(e)&&(e.addClass(J),s.push(t.toJSON()),l.push(e))}const r=this.activeCell;let c,h=null;if("code"===(null==r?void 0:r.model.type)){const e=r.model.executionCount;c=" ",e&&(c=e.toString())}else c="";h=he.createDragImage(s.length,c,null!==(o=null==r?void 0:r.model.sharedModel.getSource().split("\n")[0].slice(0,26))&&void 0!==o?o:""),this._drag=new j.Drag({mimeData:new d.MimeData,dragImage:h,supportedActions:"copy-move",proposedAction:"copy",source:this}),this._drag.mimeData.setData(ae,s),this._drag.mimeData.setData("internal:cells",l);const u=l.map((e=>e.model.sharedModel.getSource())).join("\n");this._drag.mimeData.setData("text/plain",u),document.removeEventListener("mousemove",this,!0),document.removeEventListener("mouseup",this,!0),this._mouseMode=null,this._drag.start(t,n).then((e=>{if(!this.isDisposed){this._drag=null;for(const e of l)e.removeClass(J)}}))}_evtFocusIn(e){var t;const n=e.target,o=this._findCell(n);if(-1!==o){const e=this.widgets[o];e.editorWidget&&!e.editorWidget.node.contains(n)&&(this.mode="command"),this.activeCellIndex=o;const i=null===(t=e.editorWidget)||void 0===t?void 0:t.node;(null==i?void 0:i.contains(n))&&(this.mode="edit"),this.activeCellIndex=o}else this.mode="command"}_evtFocusOut(e){var t;const n=e.relatedTarget;if(!n)return;const o=this._findCell(n);-1!==o&&(null===(t=this.widgets[o].editorWidget)||void 0===t?void 0:t.node.contains(n))||"command"!==this.mode&&(this.mode="command",n&&n.focus())}_evtDblClick(e){const t=this.model;if(!t)return;this.deselectAll();const[n,o]=this._findEventTargetAndCell(e);e.target.classList.contains("jp-collapseHeadingButton")||-1===o||(this.activeCellIndex=o,"markdown"===t.cells.get(o).type?this.widgets[o].rendered=!1:"img"===n.localName&&n.classList.toggle("jp-mod-unconfined"))}_trimSelections(){for(let e=0;e<this.widgets.length;e++)if(e!==this._activeCellIndex){const t=this.widgets[e];!t.model.isDisposed&&t.editor&&t.model.selections.delete(t.editor.uuid)}}_updateSelectedCells(){this._selectedCells=this.widgets.filter((e=>this.isSelectedOrActive(e)))}}var he;!function(e){class t extends re.ContentFactory{}e.ContentFactory=t}(ce||(ce={})),function(e){e.selectedProperty=new U.AttachedProperty({name:"selected",create:()=>!1});class t extends H.PanelLayout{onUpdateRequest(e){}}e.NotebookPanelLayout=t,e.createDragImage=function(e,t,n){return e>1?""!==t?q.VirtualDOM.realize(q.h.div(q.h.div({className:ne},q.h.span({className:se},"["+t+"]:"),q.h.span({className:ie},n)),q.h.div({className:le},""))):q.VirtualDOM.realize(q.h.div(q.h.div({className:ne},q.h.span({className:se}),q.h.span({className:ie},n)),q.h.div({className:le},""))):""!==t?q.VirtualDOM.realize(q.h.div(q.h.div({className:`${ne} ${oe}`},q.h.span({className:se},"["+t+"]:"),q.h.span({className:ie},n)))):q.VirtualDOM.realize(q.h.div(q.h.div({className:`${ne} ${oe}`},q.h.span({className:se}),q.h.span({className:ie},n))))}}(he||(he={}));class ue extends V.DocumentWidget{constructor(e){super(e),this._autorestarting=!1,this.translator=e.translator||l.nullTranslator,this._trans=this.translator.load("jupyterlab"),this.addClass("jp-NotebookPanel"),this.toolbar.addClass("jp-NotebookPanel-toolbar"),this.content.addClass("jp-NotebookPanel-notebook"),this.content.model=this.context.model,this.context.sessionContext.kernelChanged.connect(this._onKernelChanged,this),this.context.sessionContext.statusChanged.connect(this._onSessionStatusChanged,this),this.context.saveState.connect(this._onSave,this),this.revealed.then((()=>{if(!this.isDisposed&&1===this.content.widgets.length){const e=this.content.widgets[0].model;"code"===e.type&&""===e.sharedModel.getSource()&&(this.content.mode="edit")}}))}_onSave(e,t){if("started"===t&&this.model)for(const e of this.model.cells)if((0,i.isMarkdownCellModel)(e))for(const t of e.attachments.keys)e.sharedModel.getSource().includes(t)||e.attachments.remove(t)}get sessionContext(){return this.context.sessionContext}get model(){return this.content.model}setConfig(e){this.content.editorConfig=e.editorConfig,this.content.notebookConfig=e.notebookConfig;const t=this.context.sessionContext.kernelPreference;this.context.sessionContext.kernelPreference={...t,shutdownOnDispose:e.kernelShutdown,autoStartDefault:e.autoStartDefault}}setFragment(e){this.context.ready.then((()=>{this.content.setFragment(e)}))}dispose(){this.content.dispose(),super.dispose()}[o.Printing.symbol](){return async()=>{this.context.model.dirty&&!this.context.model.readOnly&&await this.context.save(),await o.Printing.printURL(s.PageConfig.getNBConvertURL({format:"html",download:!1,path:this.context.path}))}}onBeforeHide(e){super.onBeforeHide(e),this.content.isParentHidden=!0}onBeforeShow(e){this.content.isParentHidden=!1,super.onBeforeShow(e)}_onKernelChanged(e,t){if(!this.model||!t.newValue)return;const{newValue:n}=t;n.info.then((e=>{var t;this.model&&(null===(t=this.context.sessionContext.session)||void 0===t?void 0:t.kernel)===n&&this._updateLanguage(e.language_info)})),this._updateSpec(n)}_onSessionStatusChanged(e,t){var n;"autorestarting"!==t||this._autorestarting?"restarting"===t||(this._autorestarting=!1):((0,o.showDialog)({title:this._trans.__("Kernel Restarting"),body:this._trans.__("The kernel for %1 appears to have died. It will restart automatically.",null===(n=this.sessionContext.session)||void 0===n?void 0:n.path),buttons:[o.Dialog.okButton({label:this._trans.__("Ok")})]}),this._autorestarting=!0)}_updateLanguage(e){this.model.setMetadata("language_info",e)}async _updateSpec(e){const t=await e.spec;this.isDisposed||this.model.setMetadata("kernelspec",{name:e.name,display_name:null==t?void 0:t.display_name,language:null==t?void 0:t.language})}}!function(e){class t extends ce.ContentFactory{createNotebook(e){return new ce(e)}}e.ContentFactory=t,e.IContentFactory=new d.Token("@jupyterlab/notebook:IContentFactory","A factory object that creates new notebooks.\n Use this if you want to create and host notebooks in your own UI elements.")}(ue||(ue={}));var ge,Ce=n(80309);class me extends Ce.SearchProvider{constructor(e,t=l.nullTranslator){super(e),this.translator=t,this._textSelection=null,this._currentProviderIndex=null,this._delayedActiveCellChangeHandler=null,this._onSelection=!1,this._selectedCells=1,this._selectedLines=0,this._query=null,this._searchProviders=[],this._editorSelectionsObservable=null,this._selectionSearchMode="cells",this._selectionLock=!1,this._handleHighlightsAfterActiveCellChange=this._handleHighlightsAfterActiveCellChange.bind(this),this.widget.model.cells.changed.connect(this._onCellsChanged,this),this.widget.content.activeCellChanged.connect(this._onActiveCellChanged,this),this.widget.content.selectionChanged.connect(this._onCellSelectionChanged,this),this.widget.content.stateChanged.connect(this._onNotebookStateChanged,this),this._observeActiveCell(),this._filtersChanged.connect(this._setEnginesSelectionSearchMode,this)}_onNotebookStateChanged(e,t){"mode"===t.name&&window.setTimeout((()=>{var e;"command"===t.newValue&&(null===(e=document.activeElement)||void 0===e?void 0:e.closest(".jp-DocumentSearch-overlay"))||(this._updateSelectionMode(),this._filtersChanged.emit())}),0)}static isApplicable(e){return e instanceof ue}static createNew(e,t){return new me(e,t)}get currentMatchIndex(){let e=0,t=!1;for(let n=0;n<this._searchProviders.length;n++){const o=this._searchProviders[n];if(this._currentProviderIndex==n){const n=o.currentMatchIndex;if(null===n)return null;e+=n,t=!0;break}e+=o.matchesCount}return t?e:null}get matchesCount(){return this._searchProviders.reduce(((e,t)=>e+t.matchesCount),0)}get isReadOnly(){var e,t,n;return null!==(n=null===(t=null===(e=this.widget)||void 0===e?void 0:e.content.model)||void 0===t?void 0:t.readOnly)&&void 0!==n&&n}get replaceOptionsSupport(){return{preserveCase:!0}}dispose(){var e;if(this.isDisposed)return;this.widget.content.activeCellChanged.disconnect(this._onActiveCellChanged,this),null===(e=this.widget.model)||void 0===e||e.cells.changed.disconnect(this._onCellsChanged,this),this.widget.content.stateChanged.disconnect(this._onNotebookStateChanged,this),this.widget.content.selectionChanged.disconnect(this._onCellSelectionChanged,this),this._stopObservingLastCell(),super.dispose();const t=this.widget.content.activeCellIndex;this.endQuery().then((()=>{this.widget.isDisposed||(this.widget.content.activeCellIndex=t)})).catch((e=>{console.error(`Fail to end search query in notebook:\n${e}`)}))}getFilters(){const e=this.translator.load("jupyterlab");return{output:{title:e.__("Search Cell Outputs"),description:e.__("Search in the cell outputs."),default:!1,supportReplace:!1},selection:{title:"cells"===this._selectionSearchMode?e._n("Search in %1 Selected Cell","Search in %1 Selected Cells",this._selectedCells):e._n("Search in %1 Selected Line","Search in %1 Selected Lines",this._selectedLines),description:e.__("Search only in the selected cells or text (depending on edit/command mode)."),default:!1,supportReplace:!0}}}_updateSelectionMode(){this._selectionLock||(this._selectionSearchMode=1===this._selectedCells&&"edit"===this.widget.content.mode&&0!==this._selectedLines?"text":"cells")}getInitialQuery(){const e=this.widget.content.activeCell,t=null==e?void 0:e.editor;return t?t.state.sliceDoc(t.state.selection.main.from,t.state.selection.main.to):""}async clearHighlight(){this._selectionLock=!0,null!==this._currentProviderIndex&&this._currentProviderIndex<this._searchProviders.length&&(await this._searchProviders[this._currentProviderIndex].clearHighlight(),this._currentProviderIndex=null),this._selectionLock=!1}async highlightNext(e=!0,t){const n=await this._stepNext(!1,e,t);return null!=n?n:void 0}async highlightPrevious(e=!0,t){const n=await this._stepNext(!0,e,t);return null!=n?n:void 0}async startQuery(e,t){if(!this.widget)return;await this.endQuery();let n=this.widget.content.widgets;this._query=e,this._filters={output:!1,selection:!1,...null!=t?t:{}},this._onSelection=this._filters.selection;const o=this.widget.content.activeCellIndex;return this._searchProviders=await Promise.all(n.map((async(t,n)=>{const s=(0,i.createCellSearchProvider)(t);return await s.setIsActive(!this._filters.selection||this.widget.content.isSelectedOrActive(t)),this._onSelection&&"text"===this._selectionSearchMode&&n===o&&this._textSelection&&await s.setSearchSelection(this._textSelection),await s.startQuery(e,this._filters),s}))),this._currentProviderIndex=o,await this.highlightNext(!0,{from:"selection-start",scroll:!1,select:!1}),Promise.resolve()}async endQuery(){await Promise.all(this._searchProviders.map((e=>e.endQuery().then((()=>{e.dispose()}))))),this._searchProviders.length=0,this._currentProviderIndex=null}async replaceCurrentMatch(e,t=!0,n){let o=!1;const i=async(e=!1)=>{var n;const o=null===(n=this.widget)||void 0===n?void 0:n.content.activeCell;"markdown"===(null==o?void 0:o.model.type)&&o.rendered&&(o.rendered=!1,e&&await this.highlightNext(t))};if(null!==this._currentProviderIndex){await i();const s=this._searchProviders[this._currentProviderIndex];o=await s.replaceCurrentMatch(e,!1,n),null===s.currentMatchIndex&&await this.highlightNext(t)}return await i(!0),o}async replaceAllMatches(e,t){return(await Promise.all(this._searchProviders.map((n=>n.replaceAllMatches(e,t))))).includes(!0)}async validateFilter(e,t){if("output"!==e)return t;if(t&&this.widget.content.widgets.some((e=>e instanceof i.CodeCell&&e.isPlaceholder()))){const e=this.translator.load("jupyterlab");if(!(await(0,o.showDialog)({title:e.__("Confirmation"),body:e.__("Searching outputs is expensive and requires to first rendered all outputs. Are you sure you want to search in the cell outputs?"),buttons:[o.Dialog.cancelButton({label:e.__("Cancel")}),o.Dialog.okButton({label:e.__("Ok")})]})).button.accept)return!1;this.widget.content.widgets.forEach(((e,t)=>{e instanceof i.CodeCell&&e.isPlaceholder()&&this.widget.content.renderCellOutputs(t)}))}return t}_addCellProvider(e){var t,n;const o=this.widget.content.widgets[e],s=(0,i.createCellSearchProvider)(o);a.ArrayExt.insert(this._searchProviders,e,s),s.setIsActive(!(null!==(n=null===(t=this._filters)||void 0===t?void 0:t.selection)&&void 0!==n&&n)||this.widget.content.isSelectedOrActive(o)).then((()=>{s.startQuery(this._query,this._filters)}))}_removeCellProvider(e){const t=a.ArrayExt.removeAt(this._searchProviders,e);null==t||t.dispose()}async _onCellsChanged(e,t){switch(t.type){case"add":t.newValues.forEach(((e,n)=>{this._addCellProvider(t.newIndex+n)}));break;case"move":a.ArrayExt.move(this._searchProviders,t.oldIndex,t.newIndex);break;case"remove":for(let e=0;e<t.oldValues.length;e++)this._removeCellProvider(t.oldIndex);break;case"set":t.newValues.forEach(((e,n)=>{this._addCellProvider(t.newIndex+n),this._removeCellProvider(t.newIndex+n+1)}))}this._stateChanged.emit()}async _stepNext(e=!1,t=!1,n){const o=async e=>{var t;if(null!==(t=null==n?void 0:n.scroll)&&void 0!==t&&!t)return;if(this._selectionLock=!0,this.widget.content.activeCellIndex!==this._currentProviderIndex&&(this.widget.content.activeCellIndex=this._currentProviderIndex),-1===this.widget.content.activeCellIndex)return console.warn("No active cell (no cells or no model), aborting search"),void(this._selectionLock=!1);const o=this.widget.content.activeCell;if(!o.inViewport)try{await this.widget.content.scrollToItem(this._currentProviderIndex)}catch(e){}if(o.inputHidden&&(o.inputHidden=!1),!o.inViewport)return void(this._selectionLock=!1);await o.ready;const i=o.editor;i.revealPosition(i.getPositionAt(e.position)),this._selectionLock=!1};null===this._currentProviderIndex&&(this._currentProviderIndex=this.widget.content.activeCellIndex),e&&"command"===this.widget.content.mode&&(this._searchProviders[this._currentProviderIndex].getCurrentMatch()||(this._currentProviderIndex-=1),t&&(this._currentProviderIndex=(this._currentProviderIndex+this._searchProviders.length)%this._searchProviders.length));const i=this._currentProviderIndex;do{const i=this._searchProviders[this._currentProviderIndex],s=e?await i.highlightPrevious(!1,n):await i.highlightNext(!1,n);if(s)return await o(s),s;this._currentProviderIndex=this._currentProviderIndex+(e?-1:1),t&&(this._currentProviderIndex=(this._currentProviderIndex+this._searchProviders.length)%this._searchProviders.length)}while(t?this._currentProviderIndex!==i:0<=this._currentProviderIndex&&this._currentProviderIndex<this._searchProviders.length);if(t){const t=this._searchProviders[i],s=e?await t.highlightPrevious(!1,n):await t.highlightNext(!1,n);if(s)return await o(s),s}return this._currentProviderIndex=null,null}async _onActiveCellChanged(){null!==this._delayedActiveCellChangeHandler&&(clearTimeout(this._delayedActiveCellChangeHandler),this._delayedActiveCellChangeHandler=null),this.widget.content.activeCellIndex!==this._currentProviderIndex&&(this._delayedActiveCellChangeHandler=setTimeout((()=>{this.delayedActiveCellChangeHandlerReady=this._handleHighlightsAfterActiveCellChange()}),0)),this._observeActiveCell()}async _handleHighlightsAfterActiveCellChange(){if(this._onSelection){const e=null!==this._currentProviderIndex&&this._currentProviderIndex<this.widget.content.widgets.length?this.widget.content.widgets[this._currentProviderIndex]:null;e&&this.widget.content.isSelectedOrActive(e)||(await this._updateCellSelection(),await this.clearHighlight(),this._currentProviderIndex=this.widget.content.activeCellIndex)}await this._ensureCurrentMatch()}async _ensureCurrentMatch(){if(null!==this._currentProviderIndex){const e=this._searchProviders[this._currentProviderIndex];if(!e)return;!e.getCurrentMatch()&&this.matchesCount&&await this.highlightNext(!0,{from:"start",scroll:!1,select:!1})}}_observeActiveCell(){var e;const t=null===(e=this.widget.content.activeCell)||void 0===e?void 0:e.editor;t&&(this._stopObservingLastCell(),t.model.selections.changed.connect(this._setSelectedLines,this),this._editorSelectionsObservable=t.model.selections)}_stopObservingLastCell(){this._editorSelectionsObservable&&this._editorSelectionsObservable.changed.disconnect(this._setSelectedLines,this)}_setSelectedLines(){var e;const t=null===(e=this.widget.content.activeCell)||void 0===e?void 0:e.editor;if(!t)return;const n=t.getSelection(),{start:o,end:i}=n,s=i.line===o.line&&i.column===o.column?0:i.line-o.line+1;this._textSelection=n,s!==this._selectedLines&&(this._selectedLines=s,this._updateSelectionMode()),this._filtersChanged.emit()}async _setEnginesSelectionSearchMode(){let e;e=!!this._onSelection&&"text"===this._selectionSearchMode,this._selectionLock||await Promise.all(this._searchProviders.map(((t,n)=>{const o=this.widget.content.activeCellIndex===n;return t.setProtectSelection(o&&this._onSelection),t.setSearchSelection(o&&e?this._textSelection:null)})))}async _onCellSelectionChanged(){if(null!==this._delayedActiveCellChangeHandler&&(clearTimeout(this._delayedActiveCellChangeHandler),this._delayedActiveCellChangeHandler=null),await this._updateCellSelection(),null===this._currentProviderIndex){const e=this.widget.content.widgets.findIndex((e=>this.widget.content.isSelectedOrActive(e)));this._currentProviderIndex=e}await this._ensureCurrentMatch()}async _updateCellSelection(){const e=this.widget.content.widgets;let t=0;await Promise.all(e.map((async(e,n)=>{const o=this._searchProviders[n],i=this.widget.content.isSelectedOrActive(e);i&&(t+=1),o&&this._onSelection&&await o.setIsActive(i)}))),t!==this._selectedCells&&(this._selectedCells=t,this._updateSelectionMode()),this._filtersChanged.emit()}}!function(e){e[e.Idle=-1]="Idle",e[e.Scheduled=0]="Scheduled",e[e.Running=1]="Running"}(ge||(ge={}));class ve extends F.TableOfContentsModel{constructor(e,t,n,o){super(e,o),this.parser=t,this.sanitizer=n,this.configMetadataMap={numberHeaders:["toc-autonumbering","toc/number_sections"],numberingH1:["!toc/skip_h1_title"],baseNumbering:["toc/base_numbering"]},this._runningCells=new Array,this._cellToHeadingIndex=new WeakMap,e.context.ready.then((()=>{this.setConfiguration({})})),this.widget.context.model.metadataChanged.connect(this.onMetadataChanged,this),this.widget.content.activeCellChanged.connect(this.onActiveCellChanged,this),C.executionScheduled.connect(this.onExecutionScheduled,this),C.executed.connect(this.onExecuted,this),this.headingsChanged.connect(this.onHeadingsChanged,this)}get documentType(){return"notebook"}get isAlwaysActive(){return!0}get supportedOptions(){return["baseNumbering","maximalDepth","numberingH1","numberHeaders","includeOutput","syncCollapseState"]}getCellHeadings(e){const t=new Array;let n=this._cellToHeadingIndex.get(e);if(void 0!==n){const e=this.headings[n];for(t.push(e);this.headings[n-1]&&this.headings[n-1].cellRef===e.cellRef;)n--,t.unshift(this.headings[n])}return t}dispose(){var e,t,n;this.isDisposed||(this.headingsChanged.disconnect(this.onHeadingsChanged,this),null===(t=null===(e=this.widget.context)||void 0===e?void 0:e.model)||void 0===t||t.metadataChanged.disconnect(this.onMetadataChanged,this),null===(n=this.widget.content)||void 0===n||n.activeCellChanged.disconnect(this.onActiveCellChanged,this),C.executionScheduled.disconnect(this.onExecutionScheduled,this),C.executed.disconnect(this.onExecuted,this),this._runningCells.length=0,super.dispose())}setConfiguration(e){const t=this.loadConfigurationFromMetadata();super.setConfiguration({...this.configuration,...t,...e})}toggleCollapse(e){super.toggleCollapse(e),this.updateRunningStatus(this.headings)}getHeadings(){const e=this.widget.content.widgets,t=[],n=new Array;for(let o=0;o<e.length;o++){const i=e[o];switch(i.model.type){case"code":!this.configuration.syncCollapseState&&this.configuration.includeOutput&&t.push(...F.TableOfContentsUtils.filterHeadings(i.headings,this.configuration,n).map((e=>({...e,cellRef:i,collapsed:!1,isRunning:ge.Idle}))));break;case"markdown":{const e=F.TableOfContentsUtils.filterHeadings(i.headings,this.configuration,n).map(((e,t)=>({...e,cellRef:i,collapsed:!1,isRunning:ge.Idle})));if(this.configuration.syncCollapseState&&i.headingCollapsed){const t=Math.min(...e.map((e=>e.level)));e.find((e=>e.level===t)).collapsed=i.headingCollapsed}t.push(...e);break}}t.length>0&&this._cellToHeadingIndex.set(i,t.length-1)}return this.updateRunningStatus(t),Promise.resolve(t)}loadConfigurationFromMetadata(){const e=this.widget.content.model,t={};if(e)for(const n in this.configMetadataMap){const o=this.configMetadataMap[n];for(const i of o){let o=i;const s="!"===o[0];s&&(o=o.slice(1));const l=o.split("/");let a=e.getMetadata(l[0]);for(let e=1;e<l.length;e++)a=(null!=a?a:{})[l[e]];void 0!==a&&("boolean"==typeof a&&s&&(a=!a),t[n]=a)}}return t}onActiveCellChanged(e,t){const n=this.getCellHeadings(t)[0];this.setActiveHeading(null!=n?n:null,!1)}onHeadingsChanged(){this.widget.content.activeCell&&this.onActiveCellChanged(this.widget.content,this.widget.content.activeCell)}onExecuted(e,t){this._runningCells.forEach(((e,n)=>{if(e===t.cell){this._runningCells.splice(n,1);const t=this._cellToHeadingIndex.get(e);void 0!==t&&(this.headings[t].isRunning=ge.Idle)}})),this.updateRunningStatus(this.headings),this.stateChanged.emit()}onExecutionScheduled(e,t){this._runningCells.includes(t.cell)||this._runningCells.push(t.cell),this.updateRunningStatus(this.headings),this.stateChanged.emit()}onMetadataChanged(){this.setConfiguration({})}updateRunningStatus(e){this._runningCells.forEach(((e,t)=>{const n=this._cellToHeadingIndex.get(e);if(void 0!==n){const e=this.headings[n];e.isRunning=Math.max(t>0?ge.Scheduled:ge.Running,e.isRunning)}}));let t=0;for(;t<e.length;){const o=e[t];if(t++,o.collapsed){const t=Math.max(o.isRunning,n(e,o.level));o.dataset={...o.dataset,"data-running":t.toString()}}else o.dataset={...o.dataset,"data-running":o.isRunning.toString()}}function n(e,o){let i=ge.Idle;for(;t<e.length;){const s=e[t];if(s.dataset={...s.dataset,"data-running":s.isRunning.toString()},!(s.level>o))break;t++,i=Math.max(s.isRunning,i),s.collapsed&&(i=Math.max(i,n(e,s.level)),s.dataset={...s.dataset,"data-running":i.toString()})}return i}}}class pe extends F.TableOfContentsFactory{constructor(e,t,n){super(e),this.parser=t,this.sanitizer=n}_createNew(e,t){const n=new ve(e,this.parser,this.sanitizer,t);let o=new WeakMap;const s=(t,n)=>{if(n){const t=async t=>{if(!t.inViewport)return;const i=o.get(n);if(i){const t=e.content.node.getBoundingClientRect(),n=i.getBoundingClientRect();(n.top>t.bottom||n.bottom<t.top)&&i.scrollIntoView({block:"center"})}else console.debug("scrolling to heading: using fallback strategy"),await e.content.scrollToItem(e.content.activeCellIndex)},i=n.cellRef,s=e.content.widgets.indexOf(i);e.content.activeCellIndex=s,i.inViewport?t(i).catch((e=>{console.error(`Fail to scroll to cell to display the required heading (${e}).`)})):e.content.scrollToItem(s).then((()=>t(i))).catch((e=>{console.error(`Fail to scroll to cell to display the required heading (${e}).`)}))}},l=e=>{n.getCellHeadings(e).forEach((async e=>{var t,n;const i=await fe(e,this.parser),s=i?`h${e.level}[id="${i}"]`:`h${e.level}`;void 0!==e.outputIndex?o.set(e,F.TableOfContentsUtils.addPrefix(e.cellRef.outputArea.widgets[e.outputIndex].node,s,null!==(t=e.prefix)&&void 0!==t?t:"")):o.set(e,F.TableOfContentsUtils.addPrefix(e.cellRef.node,s,null!==(n=e.prefix)&&void 0!==n?n:""))}))},a=t=>{this.parser&&(F.TableOfContentsUtils.clearNumbering(e.content.node),o=new WeakMap,e.content.widgets.forEach((e=>{l(e)})))},d=(t,o)=>{var s,l,a,d;if(n.configuration.syncCollapseState)if(null!==o){const e=o.cellRef;e.headingCollapsed!==(null!==(s=o.collapsed)&&void 0!==s&&s)&&(e.headingCollapsed=null!==(l=o.collapsed)&&void 0!==l&&l)}else{const t=null!==(d=null===(a=n.headings[0])||void 0===a?void 0:a.collapsed)&&void 0!==d&&d;e.content.widgets.forEach((e=>{e instanceof i.MarkdownCell&&e.headingInfo.level>=0&&(e.headingCollapsed=t)}))}},r=(e,t)=>{if(n.configuration.syncCollapseState){const e=n.getCellHeadings(t)[0];e&&n.toggleCollapse({heading:e,collapsed:t.headingCollapsed})}},c=(e,t)=>{t.inViewport?l(t):F.TableOfContentsUtils.clearNumbering(t.node)};return e.context.ready.then((()=>{a(),n.activeHeadingChanged.connect(s),n.headingsChanged.connect(a),n.collapseChanged.connect(d),e.content.cellCollapsed.connect(r),e.content.cellInViewportChanged.connect(c),e.disposed.connect((()=>{n.activeHeadingChanged.disconnect(s),n.headingsChanged.disconnect(a),n.collapseChanged.disconnect(d),e.content.cellCollapsed.disconnect(r),e.content.cellInViewportChanged.disconnect(c)}))})),n}}async function fe(e,t){let n=null;return e.type===i.Cell.HeadingType.Markdown?n=await F.TableOfContentsUtils.Markdown.getHeadingId(t,e.raw,e.level):e.type===i.Cell.HeadingType.HTML&&(n=e.id),n}const _e=new d.Token("@jupyterlab/notebook:INotebookWidgetFactory","A service to create the notebook viewer."),we=new d.Token("@jupyterlab/notebook:INotebookTools",'A service for the "Notebook Tools" panel in the\n right sidebar. Use this to add your own functionality to the panel.'),be=new d.Token("@jupyterlab/notebook:INotebookTracker","A widget tracker for notebooks.\n Use this if you want to be able to iterate over and interact with notebooks\n created by the application.");class ye extends o.WidgetTracker{constructor(){super(...arguments),this._activeCell=null,this._activeCellChanged=new r.Signal(this),this._selectionChanged=new r.Signal(this)}get activeCell(){const e=this.currentWidget;return e&&e.content.activeCell||null}get activeCellChanged(){return this._activeCellChanged}get selectionChanged(){return this._selectionChanged}add(e){const t=super.add(e);return e.content.activeCellChanged.connect(this._onActiveCellChanged,this),e.content.selectionChanged.connect(this._onSelectionChanged,this),t}dispose(){this._activeCell=null,super.dispose()}onCurrentChanged(e){const t=this.activeCell;t&&t===this._activeCell||(this._activeCell=t,e&&this._activeCellChanged.emit(e.content.activeCell||null))}_onActiveCellChanged(e,t){this.currentWidget&&this.currentWidget.content===e&&(this._activeCell=t||null,this._activeCellChanged.emit(this._activeCell))}_onSelectionChanged(e){this.currentWidget&&this.currentWidget.content===e&&this._selectionChanged.emit(void 0)}}function ke(e){return e.allCellsTrusted?h().createElement(f.trustedIcon.react,{top:"2px",stylesheet:"statusBar"}):h().createElement(f.notTrustedIcon.react,{top:"2px",stylesheet:"statusBar"})}class xe extends f.VDomRenderer{constructor(e){super(new xe.Model),this.translator=e||l.nullTranslator,this.node.classList.add("jp-StatusItem-trust")}render(){if(!this.model)return null;const e=function(e,t){const n=(t=t||l.nullTranslator).load("jupyterlab");return e.trustedCells===e.totalCells?n.__("Notebook trusted: %1 of %2 code cells trusted.",e.trustedCells,e.totalCells):e.activeCellTrusted?n.__("Active cell trusted: %1 of %2 code cells trusted.",e.trustedCells,e.totalCells):n.__("Notebook not trusted: %1 of %2 code cells trusted.",e.trustedCells,e.totalCells)}(this.model,this.translator);return e!==this.node.title&&(this.node.title=e),h().createElement(ke,{allCellsTrusted:this.model.trustedCells===this.model.totalCells,activeCellTrusted:this.model.activeCellTrusted,totalCells:this.model.totalCells,trustedCells:this.model.trustedCells})}}!function(e){class t extends f.VDomModel{constructor(){super(...arguments),this._trustedCells=0,this._totalCells=0,this._activeCellTrusted=!1,this._notebook=null}get trustedCells(){return this._trustedCells}get totalCells(){return this._totalCells}get activeCellTrusted(){return this._activeCellTrusted}get notebook(){return this._notebook}set notebook(e){const t=this._notebook;null!==t&&(t.activeCellChanged.disconnect(this._onActiveCellChanged,this),t.modelContentChanged.disconnect(this._onModelChanged,this));const n=this._getAllState();if(this._notebook=e,null===this._notebook)this._trustedCells=0,this._totalCells=0,this._activeCellTrusted=!1;else{this._notebook.activeCellChanged.connect(this._onActiveCellChanged,this),this._notebook.modelContentChanged.connect(this._onModelChanged,this),this._notebook.activeCell?this._activeCellTrusted=this._notebook.activeCell.model.trusted:this._activeCellTrusted=!1;const{total:e,trusted:t}=this._deriveCellTrustState(this._notebook.model);this._totalCells=e,this._trustedCells=t}this._triggerChange(n,this._getAllState())}_onModelChanged(e){const t=this._getAllState(),{total:n,trusted:o}=this._deriveCellTrustState(e.model);this._totalCells=n,this._trustedCells=o,this._triggerChange(t,this._getAllState())}_onActiveCellChanged(e,t){const n=this._getAllState();this._activeCellTrusted=!!t&&t.model.trusted,this._triggerChange(n,this._getAllState())}_deriveCellTrustState(e){if(null===e)return{total:0,trusted:0};let t=0,n=0;for(const o of e.cells)"code"===o.type&&(t++,o.trusted&&n++);return{total:t,trusted:n}}_getAllState(){return[this._trustedCells,this._totalCells,this.activeCellTrusted]}_triggerChange(e,t){e[0]===t[0]&&e[1]===t[1]&&e[2]===t[2]||this.stateChanged.emit(void 0)}}e.Model=t}(xe||(xe={}));class Se extends V.ABCWidgetFactory{constructor(e){super(e),this.rendermime=e.rendermime,this.contentFactory=e.contentFactory,this.mimeTypeService=e.mimeTypeService,this._editorConfig=e.editorConfig||re.defaultEditorConfig,this._notebookConfig=e.notebookConfig||re.defaultNotebookConfig}get editorConfig(){return this._editorConfig}set editorConfig(e){this._editorConfig=e}get notebookConfig(){return this._notebookConfig}set notebookConfig(e){this._notebookConfig=e}createNewWidget(e,t){const n=e.translator,o={rendermime:t?t.content.rendermime:this.rendermime.clone({resolver:e.urlResolver}),contentFactory:this.contentFactory,mimeTypeService:this.mimeTypeService,editorConfig:t?t.content.editorConfig:this._editorConfig,notebookConfig:t?t.content.notebookConfig:this._notebookConfig,translator:n},i=this.contentFactory.createNotebook(o);return new ue({context:e,content:i})}}}}]);
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunk_JUPYTERLAB_CORE_OUTPUT=self.webpackChunk_JUPYTERLAB_CORE_OUTPUT||[]).push([[4746],{91138:(t,r,n)=>{n.d(r,{Z:()=>i});var e=n(35050);const o=function(t,r){for(var n=t.length;n--;)if((0,e.Z)(t[n][0],r))return n;return-1};var c=Array.prototype.splice;function a(t){var r=-1,n=null==t?0:t.length;for(this.clear();++r<n;){var e=t[r];this.set(e[0],e[1])}}a.prototype.clear=function(){this.__data__=[],this.size=0},a.prototype.delete=function(t){var r=this.__data__,n=o(r,t);return!(n<0||(n==r.length-1?r.pop():c.call(r,n,1),--this.size,0))},a.prototype.get=function(t){var r=this.__data__,n=o(r,t);return n<0?void 0:r[n][1]},a.prototype.has=function(t){return o(this.__data__,t)>-1},a.prototype.set=function(t,r){var n=this.__data__,e=o(n,t);return e<0?(++this.size,n.push([t,r])):n[e][1]=r,this};const i=a},81700:(t,r,n)=>{n.d(r,{Z:()=>c});var e=n(26266),o=n(94311);const c=(0,e.Z)(o.Z,"Map")},24395:(t,r,n)=>{n.d(r,{Z:()=>l});const e=(0,n(26266).Z)(Object,"create");var o=Object.prototype.hasOwnProperty;var c=Object.prototype.hasOwnProperty;function a(t){var r=-1,n=null==t?0:t.length;for(this.clear();++r<n;){var e=t[r];this.set(e[0],e[1])}}a.prototype.clear=function(){this.__data__=e?e(null):{},this.size=0},a.prototype.delete=function(t){var r=this.has(t)&&delete this.__data__[t];return this.size-=r?1:0,r},a.prototype.get=function(t){var r=this.__data__;if(e){var n=r[t];return"__lodash_hash_undefined__"===n?void 0:n}return o.call(r,t)?r[t]:void 0},a.prototype.has=function(t){var r=this.__data__;return e?void 0!==r[t]:c.call(r,t)},a.prototype.set=function(t,r){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=e&&void 0===r?"__lodash_hash_undefined__":r,this};const i=a;var s=n(91138),u=n(81700);const p=function(t,r){var n,e,o=t.__data__;return("string"==(e=typeof(n=r))||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==n:null===n)?o["string"==typeof r?"string":"hash"]:o.map};function f(t){var r=-1,n=null==t?0:t.length;for(this.clear();++r<n;){var e=t[r];this.set(e[0],e[1])}}f.prototype.clear=function(){this.size=0,this.__data__={hash:new i,map:new(u.Z||s.Z),string:new i}},f.prototype.delete=function(t){var r=p(this,t).delete(t);return this.size-=r?1:0,r},f.prototype.get=function(t){return p(this,t).get(t)},f.prototype.has=function(t){return p(this,t).has(t)},f.prototype.set=function(t,r){var n=p(this,t),e=n.size;return n.set(t,r),this.size+=n.size==e?0:1,this};const l=f},16889:(t,r,n)=>{n.d(r,{Z:()=>c});var e=n(26266),o=n(94311);const c=(0,e.Z)(o.Z,"Set")},82948:(t,r,n)=>{n.d(r,{Z:()=>i});var e=n(91138);var o=n(81700),c=n(24395);function a(t){var r=this.__data__=new e.Z(t);this.size=r.size}a.prototype.clear=function(){this.__data__=new e.Z,this.size=0},a.prototype.delete=function(t){var r=this.__data__,n=r.delete(t);return this.size=r.size,n},a.prototype.get=function(t){return this.__data__.get(t)},a.prototype.has=function(t){return this.__data__.has(t)},a.prototype.set=function(t,r){var n=this.__data__;if(n instanceof e.Z){var a=n.__data__;if(!o.Z||a.length<199)return a.push([t,r]),this.size=++n.size,this;n=this.__data__=new c.Z(a)}return n.set(t,r),this.size=n.size,this};const i=a},91642:(t,r,n)=>{n.d(r,{Z:()=>e});const e=n(94311).Z.Symbol},41049:(t,r,n)=>{n.d(r,{Z:()=>e});const e=n(94311).Z.Uint8Array},54987:(t,r,n)=>{n.d(r,{Z:()=>p});var e=n(79051),o=n(9028),c=n(64058),a=n(23230),i=n(8616),s=n(14923),u=Object.prototype.hasOwnProperty;const p=function(t,r){var n=(0,c.Z)(t),p=!n&&(0,o.Z)(t),f=!n&&!p&&(0,a.Z)(t),l=!n&&!p&&!f&&(0,s.Z)(t),Z=n||p||f||l,h=Z?(0,e.Z)(t.length,String):[],v=h.length;for(var d in t)!r&&!u.call(t,d)||Z&&("length"==d||f&&("offset"==d||"parent"==d)||l&&("buffer"==d||"byteLength"==d||"byteOffset"==d)||(0,i.Z)(d,v))||h.push(d);return h}},33043:(t,r,n)=>{n.d(r,{Z:()=>e});const e=function(t,r){for(var n=-1,e=null==t?0:t.length,o=Array(e);++n<e;)o[n]=r(t[n],n,t);return o}},47032:(t,r,n)=>{n.d(r,{Z:()=>e});const e=function(t,r){for(var n=-1,e=r.length,o=t.length;++n<e;)t[o+n]=r[n];return t}},78402:(t,r,n)=>{n.d(r,{Z:()=>c});var e=n(79148),o=n(13550);const c=function(t,r){for(var n=0,c=(r=(0,e.Z)(r,t)).length;null!=t&&n<c;)t=t[(0,o.Z)(r[n++])];return n&&n==c?t:void 0}},47769:(t,r,n)=>{n.d(r,{Z:()=>c});var e=n(47032),o=n(64058);const c=function(t,r,n){var c=r(t);return(0,o.Z)(t)?c:(0,e.Z)(c,n(t))}},77070:(t,r,n)=>{n.d(r,{Z:()=>p});var e=n(91642),o=Object.prototype,c=o.hasOwnProperty,a=o.toString,i=e.Z?e.Z.toStringTag:void 0;var s=Object.prototype.toString;var u=e.Z?e.Z.toStringTag:void 0;const p=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":u&&u in Object(t)?function(t){var r=c.call(t,i),n=t[i];try{t[i]=void 0;var e=!0}catch(t){}var o=a.call(t);return e&&(r?t[i]=n:delete t[i]),o}(t):function(t){return s.call(t)}(t)}},45934:(t,r,n)=>{n.d(r,{Z:()=>a});var e=n(89418);const o=(0,n(4883).Z)(Object.keys,Object);var c=Object.prototype.hasOwnProperty;const a=function(t){if(!(0,e.Z)(t))return o(t);var r=[];for(var n in Object(t))c.call(t,n)&&"constructor"!=n&&r.push(n);return r}},79051:(t,r,n)=>{n.d(r,{Z:()=>e});const e=function(t,r){for(var n=-1,e=Array(t);++n<t;)e[n]=r(n);return e}},20274:(t,r,n)=>{n.d(r,{Z:()=>e});const e=function(t){return function(r){return t(r)}}},79148:(t,r,n)=>{n.d(r,{Z:()=>i});var e=n(64058),o=n(3818),c=n(72977),a=n(70023);const i=function(t,r){return(0,e.Z)(t)?t:(0,o.Z)(t,r)?[t]:(0,c.Z)((0,a.Z)(t))}},89268:(t,r,n)=>{n.d(r,{Z:()=>e});const e="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g},13911:(t,r,n)=>{n.d(r,{Z:()=>a});var e=n(47769),o=n(9854),c=n(11723);const a=function(t){return(0,e.Z)(t,c.Z,o.Z)}},26266:(t,r,n)=>{n.d(r,{Z:()=>d});var e=n(48489);const o=n(94311).Z["__core-js_shared__"];var c,a=(c=/[^.]+$/.exec(o&&o.keys&&o.keys.IE_PROTO||""))?"Symbol(src)_1."+c:"";var i=n(60417),s=n(62392),u=/^\[object .+?Constructor\]$/,p=Function.prototype,f=Object.prototype,l=p.toString,Z=f.hasOwnProperty,h=RegExp("^"+l.call(Z).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");const v=function(t){return!(!(0,i.Z)(t)||(r=t,a&&a in r))&&((0,e.Z)(t)?h:u).test((0,s.Z)(t));var r},d=function(t,r){var n=function(t,r){return null==t?void 0:t[r]}(t,r);return v(n)?n:void 0}},9854:(t,r,n)=>{n.d(r,{Z:()=>a});var e=n(99176),o=Object.prototype.propertyIsEnumerable,c=Object.getOwnPropertySymbols;const a=c?function(t){return null==t?[]:(t=Object(t),function(t,r){for(var n=-1,e=null==t?0:t.length,o=0,c=[];++n<e;){var a=t[n];r(a,n,t)&&(c[o++]=a)}return c}(c(t),(function(r){return o.call(t,r)})))}:e.Z},41182:(t,r,n)=>{n.d(r,{Z:()=>w});var e=n(26266),o=n(94311);const c=(0,e.Z)(o.Z,"DataView");var a=n(81700);const i=(0,e.Z)(o.Z,"Promise");var s=n(16889);const u=(0,e.Z)(o.Z,"WeakMap");var p=n(77070),f=n(62392),l="[object Map]",Z="[object Promise]",h="[object Set]",v="[object WeakMap]",d="[object DataView]",y=(0,f.Z)(c),_=(0,f.Z)(a.Z),b=(0,f.Z)(i),j=(0,f.Z)(s.Z),g=(0,f.Z)(u),O=p.Z;(c&&O(new c(new ArrayBuffer(1)))!=d||a.Z&&O(new a.Z)!=l||i&&O(i.resolve())!=Z||s.Z&&O(new s.Z)!=h||u&&O(new u)!=v)&&(O=function(t){var r=(0,p.Z)(t),n="[object Object]"==r?t.constructor:void 0,e=n?(0,f.Z)(n):"";if(e)switch(e){case y:return d;case _:return l;case b:return Z;case j:return h;case g:return v}return r});const w=O},8616:(t,r,n)=>{n.d(r,{Z:()=>o});var e=/^(?:0|[1-9]\d*)$/;const o=function(t,r){var n=typeof t;return!!(r=null==r?9007199254740991:r)&&("number"==n||"symbol"!=n&&e.test(t))&&t>-1&&t%1==0&&t<r}},3818:(t,r,n)=>{n.d(r,{Z:()=>i});var e=n(64058),o=n(59660),c=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,a=/^\w*$/;const i=function(t,r){if((0,e.Z)(t))return!1;var n=typeof t;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=t&&!(0,o.Z)(t))||a.test(t)||!c.test(t)||null!=r&&t in Object(r)}},89418:(t,r,n)=>{n.d(r,{Z:()=>o});var e=Object.prototype;const o=function(t){var r=t&&t.constructor;return t===("function"==typeof r&&r.prototype||e)}},53594:(t,r,n)=>{n.d(r,{Z:()=>i});var e=n(89268);t=n.hmd(t);var o="object"==typeof exports&&exports&&!exports.nodeType&&exports,c=o&&t&&!t.nodeType&&t,a=c&&c.exports===o&&e.Z.process;const i=function(){try{return c&&c.require&&c.require("util").types||a&&a.binding&&a.binding("util")}catch(t){}}()},4883:(t,r,n)=>{n.d(r,{Z:()=>e});const e=function(t,r){return function(n){return t(r(n))}}},94311:(t,r,n)=>{n.d(r,{Z:()=>c});var e=n(89268),o="object"==typeof self&&self&&self.Object===Object&&self;const c=e.Z||o||Function("return this")()},72977:(t,r,n)=>{n.d(r,{Z:()=>i});var e=n(24395);function o(t,r){if("function"!=typeof t||null!=r&&"function"!=typeof r)throw new TypeError("Expected a function");var n=function(){var e=arguments,o=r?r.apply(this,e):e[0],c=n.cache;if(c.has(o))return c.get(o);var a=t.apply(this,e);return n.cache=c.set(o,a)||c,a};return n.cache=new(o.Cache||e.Z),n}o.Cache=e.Z;var c=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,a=/\\(\\)?/g;const i=(s=o((function(t){var r=[];return 46===t.charCodeAt(0)&&r.push(""),t.replace(c,(function(t,n,e,o){r.push(e?o.replace(a,"$1"):n||t)})),r}),(function(t){return 500===u.size&&u.clear(),t})),u=s.cache,s);var s,u},13550:(t,r,n)=>{n.d(r,{Z:()=>o});var e=n(59660);const o=function(t){if("string"==typeof t||(0,e.Z)(t))return t;var r=t+"";return"0"==r&&1/t==-1/0?"-0":r}},62392:(t,r,n)=>{n.d(r,{Z:()=>o});var e=Function.prototype.toString;const o=function(t){if(null!=t){try{return e.call(t)}catch(t){}try{return t+""}catch(t){}}return""}},35050:(t,r,n)=>{n.d(r,{Z:()=>e});const e=function(t,r){return t===r||t!=t&&r!=r}},44964:(t,r,n)=>{n.d(r,{Z:()=>o});var e=n(78402);const o=function(t,r,n){var o=null==t?void 0:(0,e.Z)(t,r);return void 0===o?n:o}},9028:(t,r,n)=>{n.d(r,{Z:()=>u});var e=n(77070),o=n(9615);const c=function(t){return(0,o.Z)(t)&&"[object Arguments]"==(0,e.Z)(t)};var a=Object.prototype,i=a.hasOwnProperty,s=a.propertyIsEnumerable;const u=c(function(){return arguments}())?c:function(t){return(0,o.Z)(t)&&i.call(t,"callee")&&!s.call(t,"callee")}},64058:(t,r,n)=>{n.d(r,{Z:()=>e});const e=Array.isArray},69959:(t,r,n)=>{n.d(r,{Z:()=>c});var e=n(48489),o=n(30918);const c=function(t){return null!=t&&(0,o.Z)(t.length)&&!(0,e.Z)(t)}},23230:(t,r,n)=>{n.d(r,{Z:()=>i});var e=n(94311);t=n.hmd(t);var o="object"==typeof exports&&exports&&!exports.nodeType&&exports,c=o&&t&&!t.nodeType&&t,a=c&&c.exports===o?e.Z.Buffer:void 0;const i=(a?a.isBuffer:void 0)||function(){return!1}},48489:(t,r,n)=>{n.d(r,{Z:()=>c});var e=n(77070),o=n(60417);const c=function(t){if(!(0,o.Z)(t))return!1;var r=(0,e.Z)(t);return"[object Function]"==r||"[object GeneratorFunction]"==r||"[object AsyncFunction]"==r||"[object Proxy]"==r}},30918:(t,r,n)=>{n.d(r,{Z:()=>e});const e=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991}},60417:(t,r,n)=>{n.d(r,{Z:()=>e});const e=function(t){var r=typeof t;return null!=t&&("object"==r||"function"==r)}},9615:(t,r,n)=>{n.d(r,{Z:()=>e});const e=function(t){return null!=t&&"object"==typeof t}},59660:(t,r,n)=>{n.d(r,{Z:()=>c});var e=n(77070),o=n(9615);const c=function(t){return"symbol"==typeof t||(0,o.Z)(t)&&"[object Symbol]"==(0,e.Z)(t)}},14923:(t,r,n)=>{n.d(r,{Z:()=>p});var e=n(77070),o=n(30918),c=n(9615),a={};a["[object Float32Array]"]=a["[object Float64Array]"]=a["[object Int8Array]"]=a["[object Int16Array]"]=a["[object Int32Array]"]=a["[object Uint8Array]"]=a["[object Uint8ClampedArray]"]=a["[object Uint16Array]"]=a["[object Uint32Array]"]=!0,a["[object Arguments]"]=a["[object Array]"]=a["[object ArrayBuffer]"]=a["[object Boolean]"]=a["[object DataView]"]=a["[object Date]"]=a["[object Error]"]=a["[object Function]"]=a["[object Map]"]=a["[object Number]"]=a["[object Object]"]=a["[object RegExp]"]=a["[object Set]"]=a["[object String]"]=a["[object WeakMap]"]=!1;var i=n(20274),s=n(53594),u=s.Z&&s.Z.isTypedArray;const p=u?(0,i.Z)(u):function(t){return(0,c.Z)(t)&&(0,o.Z)(t.length)&&!!a[(0,e.Z)(t)]}},11723:(t,r,n)=>{n.d(r,{Z:()=>a});var e=n(54987),o=n(45934),c=n(69959);const a=function(t){return(0,c.Z)(t)?(0,e.Z)(t):(0,o.Z)(t)}},99176:(t,r,n)=>{n.d(r,{Z:()=>e});const e=function(){return[]}},70023:(t,r,n)=>{n.d(r,{Z:()=>p});var e=n(91642),o=n(33043),c=n(64058),a=n(59660),i=e.Z?e.Z.prototype:void 0,s=i?i.toString:void 0;const u=function t(r){if("string"==typeof r)return r;if((0,c.Z)(r))return(0,o.Z)(r,t)+"";if((0,a.Z)(r))return s?s.call(r):"";var n=r+"";return"0"==n&&1/r==-1/0?"-0":n},p=function(t){return null==t?"":u(t)}}}]);
@@ -1,2 +0,0 @@
1
- /*! For license information please see 5125.bundle.js.LICENSE.txt */
2
- (self.webpackChunk_JUPYTERLAB_CORE_OUTPUT=self.webpackChunk_JUPYTERLAB_CORE_OUTPUT||[]).push([[5125],{5125:(r,e,t)=>{"use strict";t.r(e),t.d(e,{ADDITIONAL_PROPERTIES_KEY:()=>Pr,ADDITIONAL_PROPERTY_FLAG:()=>Ir,ALL_OF_KEY:()=>Dr,ANY_OF_KEY:()=>Fr,CONST_KEY:()=>Tr,DEFAULT_KEY:()=>Ur,DEFINITIONS_KEY:()=>Mr,DEPENDENCIES_KEY:()=>Nr,ENUM_KEY:()=>kr,ERRORS_KEY:()=>Wr,ErrorSchemaBuilder:()=>ct,ID_KEY:()=>Lr,IF_KEY:()=>Cr,ITEMS_KEY:()=>Rr,JUNK_OPTION_ID:()=>Br,NAME_KEY:()=>$r,ONE_OF_KEY:()=>Vr,PROPERTIES_KEY:()=>qr,REF_KEY:()=>Kr,REQUIRED_KEY:()=>zr,RJSF_ADDITONAL_PROPERTIES_FLAG:()=>Jr,ROOT_SCHEMA_PREFIX:()=>Hr,SUBMIT_BTN_OPTIONS_KEY:()=>Yr,TranslatableString:()=>dt,UI_FIELD_KEY:()=>Gr,UI_GLOBAL_OPTIONS_KEY:()=>re,UI_OPTIONS_KEY:()=>Xr,UI_WIDGET_KEY:()=>Qr,allowAdditionalItems:()=>jr,ariaDescribedByIds:()=>St,asNumber:()=>wr,canExpand:()=>te,createErrorHandler:()=>ne,createSchemaUtils:()=>Xe,dataURItoBlob:()=>rt,deepEquals:()=>oe,descriptionId:()=>Ot,englishStringTranslator:()=>tt,enumOptionsDeselectValue:()=>ot,enumOptionsIndexForValue:()=>at,enumOptionsIsSelected:()=>it,enumOptionsSelectValue:()=>ut,enumOptionsValueForIndex:()=>nt,errorId:()=>_t,examplesId:()=>jt,findSchemaDefinition:()=>ae,getClosestMatchingOption:()=>Ze,getDefaultFormState:()=>Re,getDiscriminatorFieldFromSchema:()=>se,getDisplayLabel:()=>Ve,getFirstMatchingOption:()=>ce,getInputProps:()=>ft,getMatchingOption:()=>ue,getSchemaType:()=>le,getSubmitButtonOptions:()=>pt,getTemplate:()=>vt,getUiOptions:()=>ee,getWidget:()=>mt,guessType:()=>fe,hasWidget:()=>bt,hashForSchema:()=>gt,helpId:()=>wt,isConstant:()=>Fe,isCustomWidget:()=>Be,isFilesArray:()=>$e,isFixedItems:()=>Ie,isMultiSelect:()=>Ue,isObject:()=>_r,isSelect:()=>Te,labelValue:()=>Zt,localToUTC:()=>It,mergeDefaultsWithFormData:()=>Pe,mergeObjects:()=>De,mergeSchemas:()=>pe,mergeValidationData:()=>qe,optionId:()=>Et,optionsList:()=>Dt,orderProperties:()=>Ft,pad:()=>Tt,parseDateString:()=>Ut,rangeSpec:()=>st,replaceStringParameters:()=>et,retrieveSchema:()=>be,sanitizeDataForNewSchema:()=>Ye,schemaParser:()=>zt,schemaRequiresTrueValue:()=>Mt,shouldRender:()=>Nt,titleId:()=>At,toConstant:()=>Pt,toDateString:()=>kt,toErrorList:()=>Wt,toErrorSchema:()=>Lt,toIdSchema:()=>Je,toPathSchema:()=>Ge,unwrapErrorHandler:()=>Ct,utcToLocal:()=>Rt,validationDataMerge:()=>Bt,withIdRefPrefix:()=>$t});var n=t(53541),o=t(63890);const i=function(r,e,t){var n=(t="function"==typeof t?t:void 0)?t(r,e):void 0;return void 0===n?(0,o.Z)(r,e,void 0,t):!!n};var a=t(44964),u=t(66400),c=t(88208),s=t(44733),f=t(36004),l=t(60417),p=t(77070),v=t(64058),d=t(9615);const h=function(r){return"string"==typeof r||!(0,v.Z)(r)&&(0,d.Z)(r)&&"[object String]"==(0,p.Z)(r)},y=function(r,e,t,n){var o=-1,i=null==r?0:r.length;for(n&&i&&(t=r[++o]);++o<i;)t=e(t,r[o],o,r);return t},m=function(r,e,t){for(var n=-1,o=Object(r),i=t(r),a=i.length;a--;){var u=i[++n];if(!1===e(o[u],u,o))break}return r};var g=t(11723);var b=t(69959);const x=(O=function(r,e){return r&&m(r,e,g.Z)},function(r,e){if(null==r)return r;if(!(0,b.Z)(r))return O(r,e);for(var t=r.length,n=-1,o=Object(r);++n<t&&!1!==e(o[n],n,o););return r});var O,_=t(82948);const j=function(r){return r==r&&!(0,l.Z)(r)},w=function(r,e){return function(t){return null!=t&&t[r]===e&&(void 0!==e||r in Object(t))}},A=function(r){var e=function(r){for(var e=(0,g.Z)(r),t=e.length;t--;){var n=e[t],o=r[n];e[t]=[n,o,j(o)]}return e}(r);return 1==e.length&&e[0][2]?w(e[0][0],e[0][1]):function(t){return t===r||function(r,e,t,n){var i=t.length,a=i,u=!n;if(null==r)return!a;for(r=Object(r);i--;){var c=t[i];if(u&&c[2]?c[1]!==r[c[0]]:!(c[0]in r))return!1}for(;++i<a;){var s=(c=t[i])[0],f=r[s],l=c[1];if(u&&c[2]){if(void 0===f&&!(s in r))return!1}else{var p=new _.Z;if(n)var v=n(f,l,s,r,e,p);if(!(void 0===v?(0,o.Z)(l,f,3,n,p):v))return!1}}return!0}(t,r,e)}};var S=t(94180),E=t(3818),Z=t(13550);var I=t(64056);var P=t(78402);const D=function(r){return(0,E.Z)(r)?(e=(0,Z.Z)(r),function(r){return null==r?void 0:r[e]}):function(r){return function(e){return(0,P.Z)(e,r)}}(r);var e},F=function(r){return"function"==typeof r?r:null==r?I.Z:"object"==typeof r?(0,v.Z)(r)?(e=r[0],t=r[1],(0,E.Z)(e)&&j(t)?w((0,Z.Z)(e),t):function(r){var n=(0,a.Z)(r,e);return void 0===n&&n===t?(0,S.Z)(r,e):(0,o.Z)(t,n,3)}):A(r):D(r);var e,t},T=function(r,e,t,n,o){return o(r,(function(r,o,i){t=n?(n=!1,r):e(t,r,o,i)})),t},U=function(r,e,t){var n=(0,v.Z)(r)?y:T,o=arguments.length<3;return n(r,F(e),t,o,x)};var M=t(79051);const N=function(r){return"function"==typeof r?r:I.Z};var k=/\s/;var W=/^\s+/;const L=function(r){return r?r.slice(0,function(r){for(var e=r.length;e--&&k.test(r.charAt(e)););return e}(r)+1).replace(W,""):r};var C=t(59660),R=/^[-+]0x[0-9a-f]+$/i,B=/^0b[01]+$/i,$=/^0o[0-7]+$/i,V=parseInt;const q=function(r){return r?Infinity===(r=function(r){if("number"==typeof r)return r;if((0,C.Z)(r))return NaN;if((0,l.Z)(r)){var e="function"==typeof r.valueOf?r.valueOf():r;r=(0,l.Z)(e)?e+"":e}if("string"!=typeof r)return 0===r?r:+r;r=L(r);var t=B.test(r);return t||$.test(r)?V(r.slice(2),t?2:8):R.test(r)?NaN:+r}(r))||r===-1/0?17976931348623157e292*(r<0?-1:1):r==r?r:0:0===r?r:0};var z=4294967295,Y=Math.min;const K=function(r,e){if((r=function(r){var e=q(r),t=e%1;return e==e?t?e-t:e:0}(r))<1||r>9007199254740991)return[];var t=z,n=Y(r,z);e=N(e),r-=z;for(var o=(0,M.Z)(n,e);++t<r;)e(t);return o};var J=t(24787),H=t(64717),G=t.n(H),Q=t(65029),X=t(15829),rr=t(59562);var er=t(40105);const tr=function(r){return r!=r},nr=function(r,e){return!(null==r||!r.length)&&function(r,e,t){return e==e?function(r,e,t){for(var n=t-1,o=r.length;++n<o;)if(r[n]===e)return n;return-1}(r,e,t):function(r,e,t,n){for(var o=r.length,i=t+(n?1:-1);n?i--:++i<o;)if(e(r[i],i,r))return i;return-1}(r,tr,t)}(r,e,0)>-1},or=function(r,e,t){for(var n=-1,o=null==r?0:r.length;++n<o;)if(t(e,r[n]))return!0;return!1};var ir=t(8142),ar=t(16889);var ur=t(70035);const cr=ar.Z&&1/(0,ur.Z)(new ar.Z([,-0]))[1]==1/0?function(r){return new ar.Z(r)}:function(){},sr=function(r){return(0,d.Z)(r)&&(0,b.Z)(r)},fr=(lr=function(r){return function(r,e,t){var n=-1,o=nr,i=r.length,a=!0,u=[],c=u;if(t)a=!1,o=or;else if(i>=200){var s=e?null:cr(r);if(s)return(0,ur.Z)(s);a=!1,o=ir.Z,c=new er.Z}else c=e?[]:u;r:for(;++n<i;){var f=r[n],l=e?e(f):f;if(f=t||0!==f?f:0,a&&l==l){for(var p=c.length;p--;)if(c[p]===l)continue r;e&&c.push(l),u.push(f)}else o(c,l,t)||(c!==u&&c.push(l),u.push(f))}return u}((0,Q.Z)(r,1,sr,!0))},(0,rr.Z)((0,X.Z)(lr,pr,I.Z),lr+""));var lr,pr,vr=t(41151);const dr=function(r){return null==r};var hr=t(86908),yr=t(24246),mr=t(78156),gr=t(19185),br=t(81810),xr=t(97640);const Or=function(r,e){return((0,v.Z)(r)?xr.Z:x)(r,N(e))};function _r(r){return!("undefined"!=typeof File&&r instanceof File||"undefined"!=typeof Date&&r instanceof Date||"object"!=typeof r||null===r||Array.isArray(r))}function jr(r){return!0===r.additionalItems&&console.warn("additionalItems=true is currently not supported"),_r(r.additionalItems)}function wr(r){if(""!==r){if(null===r)return null;if(/\.$/.test(r))return r;if(/\.0$/.test(r))return r;if(/\.\d*0$/.test(r))return r;var e=Number(r);return"number"!=typeof e||Number.isNaN(e)?r:e}}function Ar(r,e){for(var t=0;t<e.length;t++){var n=e[t];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(r,(void 0,"symbol"==typeof(o=function(r,e){if("object"!=typeof r||null===r)return r;var t=r[Symbol.toPrimitive];if(void 0!==t){var n=t.call(r,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(r)}(n.key))?o:String(o)),n)}var o}function Sr(){return Sr=Object.assign?Object.assign.bind():function(r){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(r[n]=t[n])}return r},Sr.apply(this,arguments)}function Er(r){if(null==r)throw new TypeError("Cannot destructure "+r)}function Zr(r,e){if(null==r)return{};var t,n,o={},i=Object.keys(r);for(n=0;n<i.length;n++)t=i[n],e.indexOf(t)>=0||(o[t]=r[t]);return o}var Ir="__additional_property",Pr="additionalProperties",Dr="allOf",Fr="anyOf",Tr="const",Ur="default",Mr="definitions",Nr="dependencies",kr="enum",Wr="__errors",Lr="$id",Cr="if",Rr="items",Br="_$junk_option_schema_id$_",$r="$name",Vr="oneOf",qr="properties",zr="required",Yr="submitButtonOptions",Kr="$ref",Jr="__rjsf_additionalProperties",Hr="__rjsf_rootSchema",Gr="ui:field",Qr="ui:widget",Xr="ui:options",re="ui:globalOptions";function ee(r,e){return void 0===r&&(r={}),void 0===e&&(e={}),Object.keys(r).filter((function(r){return 0===r.indexOf("ui:")})).reduce((function(e,t){var n,o=r[t];return t===Qr&&_r(o)?(console.error("Setting options via ui:widget object is no longer supported, use ui:options instead"),e):t===Xr&&_r(o)?Sr({},e,o):Sr({},e,((n={})[t.substring(3)]=o,n))}),Sr({},e))}function te(r,e,t){if(void 0===e&&(e={}),!r.additionalProperties)return!1;var n=ee(e).expandable,o=void 0===n||n;return!1===o?o:void 0===r.maxProperties||!t||Object.keys(t).length<r.maxProperties}function ne(r){var e,t=((e={})[Wr]=[],e.addError=function(r){this[Wr].push(r)},e);if(Array.isArray(r))return r.reduce((function(r,e,t){var n;return Sr({},r,((n={})[t]=ne(e),n))}),t);if((0,n.Z)(r)){var o=r;return Object.keys(o).reduce((function(r,e){var t;return Sr({},r,((t={})[e]=ne(o[e]),t))}),t)}return t}function oe(r,e){return i(r,e,(function(r,e){if("function"==typeof r&&"function"==typeof e)return!0}))}function ie(r,e){var t=e[r];return[(0,s.Z)(e,[r]),t]}function ae(r,e){void 0===e&&(e={});var t=r||"";if(!t.startsWith("#"))throw new Error("Could not find a definition for "+r+".");t=decodeURIComponent(t.substring(1));var n=c.get(e,t);if(void 0===n)throw new Error("Could not find a definition for "+r+".");if(n[Kr]){var o=ie(Kr,n),i=o[0],a=ae(o[1],e);return Object.keys(i).length>0?Sr({},i,a):a}return n}function ue(r,e,t,n,o){if(void 0===e)return 0;for(var i=0;i<t.length;i++){var u=t[i];if(o&&(0,f.Z)(u,[qr,o])){var c=(0,a.Z)(e,o),s=(0,a.Z)(u,[qr,o],{});if(r.isValid(s,c,n))return i}else if(u[qr]){var l={anyOf:Object.keys(u[qr]).map((function(r){return{required:[r]}}))},p=void 0;if(u.anyOf){var v=Sr({},(Er(u),u));v.allOf?v.allOf=v.allOf.slice():v.allOf=[],v.allOf.push(l),p=v}else p=Object.assign({},u,l);if(delete p.required,r.isValid(p,e,n))return i}else if(r.isValid(u,e,n))return i}return 0}function ce(r,e,t,n,o){return ue(r,e,t,n,o)}function se(r){var e,t=(0,a.Z)(r,"discriminator.propertyName",void 0);return h(t)?e=t:void 0!==t&&console.warn('Expecting discriminator to be a string, got "'+typeof t+'" instead'),e}function fe(r){return Array.isArray(r)?"array":"string"==typeof r?"string":null==r?"null":"boolean"==typeof r?"boolean":isNaN(r)?"object"==typeof r?"object":"string":"number"}function le(r){var e=r.type;return!e&&r.const?fe(r.const):!e&&r.enum?"string":e||!r.properties&&!r.additionalProperties?(Array.isArray(e)&&2===e.length&&e.includes("null")&&(e=e.find((function(r){return"null"!==r}))),e):"object"}function pe(r,e){var t=Object.assign({},r);return Object.keys(e).reduce((function(t,n){var o=r?r[n]:{},i=e[n];return r&&n in r&&_r(i)?t[n]=pe(o,i):r&&e&&("object"===le(r)||"object"===le(e))&&n===zr&&Array.isArray(o)&&Array.isArray(i)?t[n]=fr(o,i):t[n]=i,t}),t)}var ve=["if","then","else"],de=["$ref"],he=["allOf"],ye=["oneOf","anyOf"],me=["dependencies"],ge=["oneOf"];function be(r,e,t,n){return void 0===t&&(t={}),_e(r,e,t,n)[0]}function xe(r){return r.reduce((function(r,e){return e.length>1?e.flatMap((function(e){return K(r.length,(function(t){return[].concat(r[t]).concat(e)}))})):(r.forEach((function(r){return r.push(e[0])})),r)}),[[]])}function Oe(r,e,t,n,o){var i=e.$ref,a=Zr(e,de);return _e(r,Sr({},ae(i,t),a),t,o,n)}function _e(r,e,t,n,o){if(void 0===o&&(o=!1),!_r(e))return[{}];var i=function(r,e,t,n,o){return Kr in e?Oe(r,e,t,n,o):Nr in e?we(r,e,t,n,o).flatMap((function(e){return _e(r,e,t,o,n)})):Dr in e&&Array.isArray(e.allOf)?xe(e.allOf.map((function(e){return _e(r,e,t,o,n)}))).map((function(r){return Sr({},e,{allOf:r})})):[e]}(r,e,t,o,n);return i.flatMap((function(e){var i=e;if(Cr in i)return function(r,e,t,n,o){var i=e.if,a=e.then,u=e.else,c=Zr(e,ve),s=r.isValid(i,o||{},t),f=[c],l=[];if(n)a&&"boolean"!=typeof a&&(l=l.concat(_e(r,a,t,o,n))),u&&"boolean"!=typeof u&&(l=l.concat(_e(r,u,t,o,n)));else{var p=s?a:u;p&&"boolean"!=typeof p&&(l=l.concat(_e(r,p,t,o,n)))}return l.length&&(f=l.map((function(r){return pe(c,r)}))),f.flatMap((function(e){return _e(r,e,t,o,n)}))}(r,i,t,o,n);if(Dr in i)try{i=G()(i,{deep:!1})}catch(r){console.warn("could not merge subschemas in allOf:\n",r);var u=i,c=u.allOf,s=Zr(u,he);return o&&c?[s].concat(c):s}return Pr in i&&!1!==i.additionalProperties?function(r,e,t,n){var o=Sr({},e,{properties:Sr({},e.properties)}),i=n&&_r(n)?n:{};return Object.keys(i).forEach((function(e){if(!(e in o.properties)){var n;n="boolean"!=typeof o.additionalProperties?Kr in o.additionalProperties?be(r,{$ref:(0,a.Z)(o.additionalProperties,[Kr])},t,i):"type"in o.additionalProperties?Sr({},o.additionalProperties):Fr in o.additionalProperties||Vr in o.additionalProperties?Sr({type:"object"},o.additionalProperties):{type:fe((0,a.Z)(i,[e]))}:{type:fe((0,a.Z)(i,[e]))},o.properties[e]=n,(0,J.Z)(o.properties,[e,Ir],!0)}})),o}(r,i,t,n):i}))}function je(r,e,t,n,o){var i,a=e,u=a.oneOf,c=a.anyOf,s=Zr(a,ye);if(Array.isArray(u)?i=u:Array.isArray(c)&&(i=c),i){var f=void 0===o&&n?{}:o,l=se(e);i=i.map((function(e){return Kr in e?Oe(r,e,t,!1,f)[0]:e}));var p=ce(r,f,i,t,l);if(n)return i.map((function(r){return Sr({},s,r)}));e=Sr({},s,i[p])}return[e]}function we(r,e,t,n,o){var i=e.dependencies,a=Zr(e,me);return je(r,a,t,n,o).flatMap((function(e){return Ae(r,i,e,t,n,o)}))}function Ae(r,e,t,n,o,i){var u=[t],c=function(){if(!o&&void 0===(0,a.Z)(i,[s]))return"continue";if(t.properties&&!(s in t.properties))return"continue";var c,f,l=ie(s,e),p=l[0],v=l[1];return Array.isArray(v)?u[0]=(c=t,(f=v)?Sr({},c,{required:Array.isArray(c.required)?Array.from(new Set([].concat(c.required,f))):f}):c):_r(v)&&(u=function(r,e,t,n,o,i,a){return _e(r,o,t,a,i).flatMap((function(o){var u=o.oneOf,c=Zr(o,ge);return e=pe(e,c),void 0===u?e:xe(u.map((function(e){return"boolean"!=typeof e&&Kr in e?Oe(r,e,t,i,a):[e]}))).flatMap((function(o){return function(r,e,t,n,o,i,a){var u=o.filter((function(e){if("boolean"==typeof e||!e||!e.properties)return!1;var o=e.properties[n];if(o){var u,c={type:"object",properties:(u={},u[n]=o,u)};return r.isValid(c,a,t)||i}return!1}));return i||1===u.length?u.flatMap((function(o){var u=Sr({},o,{properties:ie(n,o.properties)[0]});return _e(r,u,t,a,i).map((function(r){return pe(e,r)}))})):(console.warn("ignoring oneOf in dependencies because there isn't exactly one subschema that is valid"),[e])}(r,e,t,n,o,i,a)}))}))}(r,t,n,s,v,o,i)),{v:u.flatMap((function(e){return Ae(r,p,e,n,o,i)}))}};for(var s in e){var f=c();if("continue"!==f&&"object"==typeof f)return f.v}return u}var Se={type:"object",$id:Br,properties:{__not_really_there__:{type:"number"}}};function Ee(r,e,t,n){void 0===n&&(n={});var o=0;return t&&((0,l.Z)(t.properties)?o+=U(t.properties,(function(t,o,i){var u=(0,a.Z)(n,i);if("boolean"==typeof o)return t;if((0,f.Z)(o,Kr)){var c=be(r,o,e,u);return t+Ee(r,e,c,u||{})}if(((0,f.Z)(o,Vr)||(0,f.Z)(o,Fr))&&u){var s=(0,f.Z)(o,Vr)?Vr:Fr,l=se(o);return t+Ze(r,e,u,(0,a.Z)(o,s),-1,l)}if("object"===o.type)return t+Ee(r,e,o,u||{});if(o.type===fe(u)){var p=t+1;return o.default?p+=u===o.default?1:-1:o.const&&(p+=u===o.const?1:-1),p}return t}),0):h(t.type)&&t.type===fe(n)&&(o+=1)),o}function Ze(r,e,t,n,o,i){void 0===o&&(o=-1);var a=n.map((function(n){return(0,f.Z)(n,Kr)?be(r,n,e,t):n})),u=a.reduce((function(n,o,a){return 1===ce(r,t,[Se,o],e,i)&&n.push(a),n}),[]);if(1===u.length)return u[0];u.length||K(a.length,(function(r){return u.push(r)}));var c=new Set,s=u.reduce((function(n,o){var i=n.bestScore,u=a[o],s=Ee(r,e,u,t);return c.add(s),s>i?{bestIndex:o,bestScore:s}:n}),{bestIndex:o,bestScore:0}).bestIndex;return 1===c.size&&o>=0?o:s}function Ie(r){return Array.isArray(r.items)&&r.items.length>0&&r.items.every((function(r){return _r(r)}))}function Pe(r,e,t){if(void 0===t&&(t=!1),Array.isArray(e)){var n=Array.isArray(r)?r:[],o=e.map((function(r,e){return n[e]?Pe(n[e],r,t):r}));return t&&o.length<n.length&&o.push.apply(o,n.slice(o.length)),o}if(_r(e)){var i=Object.assign({},r);return Object.keys(e).reduce((function(n,o){return n[o]=Pe(r?(0,a.Z)(r,o):{},(0,a.Z)(e,o),t),n}),i)}return e}function De(r,e,t){return void 0===t&&(t=!1),Object.keys(e).reduce((function(n,o){var i=r?r[o]:{},a=e[o];if(r&&o in r&&_r(a))n[o]=De(i,a,t);else if(t&&Array.isArray(i)&&Array.isArray(a)){var u=a;"preventDuplicates"===t&&(u=a.reduce((function(r,e){return i.includes(e)||r.push(e),r}),[])),n[o]=i.concat(u)}else n[o]=a;return n}),Object.assign({},r))}function Fe(r){return Array.isArray(r.enum)&&1===r.enum.length||Tr in r}function Te(r,e,t){void 0===t&&(t={});var n=be(r,e,t,void 0),o=n.oneOf||n.anyOf;return!!Array.isArray(n.enum)||!!Array.isArray(o)&&o.every((function(r){return"boolean"!=typeof r&&Fe(r)}))}function Ue(r,e,t){return!(!e.uniqueItems||!e.items||"boolean"==typeof e.items)&&Te(r,e.items,t)}var Me,Ne=["oneOf"],ke=["anyOf"];function We(r,e,t){if(void 0===e&&(e=Me.Ignore),void 0===t&&(t=-1),t>=0){if(Array.isArray(r.items)&&t<r.items.length){var n=r.items[t];if("boolean"!=typeof n)return n}}else if(r.items&&!Array.isArray(r.items)&&"boolean"!=typeof r.items)return r.items;return e!==Me.Ignore&&_r(r.additionalItems)?r.additionalItems:{}}function Le(r,e,t,n,o,i,a){void 0===i&&(i=[]),void 0===a&&(a={});var c=a.emptyObjectFields,s=void 0===c?"populateAllDefaults":c;if(n)r[e]=t;else if("skipDefaults"!==s)if(_r(t)){var f=void 0===o?i.includes(e):o;(0,u.Z)(t)&&!i.includes(e)||!f&&"populateRequiredDefaults"===s||(r[e]=t)}else void 0===t||"populateAllDefaults"!==s&&!i.includes(e)||(r[e]=t)}function Ce(r,e,t){var n=void 0===t?{}:t,o=n.parentDefaults,i=n.rawFormData,c=n.rootSchema,s=void 0===c?{}:c,f=n.includeUndefinedValues,l=void 0!==f&&f,p=n._recurseList,v=void 0===p?[]:p,d=n.experimental_defaultFormStateBehavior,h=void 0===d?void 0:d,y=n.required,m=_r(i)?i:{},g=_r(e)?e:{},b=o,x=null,O=v;if(_r(b)&&_r(g.default))b=De(b,g.default);else if(Ur in g)b=g.default;else if(Kr in g){var _=g[Kr];v.includes(_)||(O=v.concat(_),x=ae(_,s))}else if(Nr in g)x=we(r,g,s,!1,m)[0];else if(Ie(g))b=g.items.map((function(e,t){return Ce(r,e,{rootSchema:s,includeUndefinedValues:l,_recurseList:v,experimental_defaultFormStateBehavior:h,parentDefaults:Array.isArray(o)?o[t]:void 0,rawFormData:m,required:y})}));else if(Vr in g){var j=g.oneOf,w=Zr(g,Ne);if(0===j.length)return;var A=se(g);x=Sr({},w,x=j[Ze(r,s,(0,u.Z)(m)?void 0:m,j,0,A)])}else if(Fr in g){var S=g.anyOf,E=Zr(g,ke);if(0===S.length)return;var Z=se(g);x=Sr({},E,x=S[Ze(r,s,(0,u.Z)(m)?void 0:m,S,0,Z)])}if(x)return Ce(r,x,{rootSchema:s,includeUndefinedValues:l,_recurseList:O,experimental_defaultFormStateBehavior:h,parentDefaults:b,rawFormData:m,required:y});switch(void 0===b&&(b=g.default),le(g)){case"object":var I=Object.keys(g.properties||{}).reduce((function(e,t){var n;return Le(e,t,Ce(r,(0,a.Z)(g,[qr,t]),{rootSchema:s,_recurseList:v,experimental_defaultFormStateBehavior:h,includeUndefinedValues:!0===l,parentDefaults:(0,a.Z)(b,[t]),rawFormData:(0,a.Z)(m,[t]),required:null===(n=g.required)||void 0===n?void 0:n.includes(t)}),l,y,g.required,h),e}),{});if(g.additionalProperties){var P,D=_r(g.additionalProperties)?g.additionalProperties:{},F=new Set;_r(b)&&Object.keys(b).filter((function(r){return!g.properties||!g.properties[r]})).forEach((function(r){return F.add(r)})),_r(m)&&(P=[],Object.keys(m).filter((function(r){return!g.properties||!g.properties[r]})).forEach((function(r){F.add(r),P.push(r)}))),F.forEach((function(e){var t,n=Ce(r,D,{rootSchema:s,_recurseList:v,experimental_defaultFormStateBehavior:h,includeUndefinedValues:!0===l,parentDefaults:(0,a.Z)(b,[e]),rawFormData:(0,a.Z)(m,[e]),required:null===(t=g.required)||void 0===t?void 0:t.includes(e)});Le(I,e,n,l,y,P)}))}return I;case"array":var T;if(Array.isArray(b)&&(b=b.map((function(e,t){var n=We(g,Me.Fallback,t);return Ce(r,n,{rootSchema:s,_recurseList:v,experimental_defaultFormStateBehavior:h,parentDefaults:e,required:y})}))),Array.isArray(i)){var U=We(g);b=i.map((function(e,t){return Ce(r,U,{rootSchema:s,_recurseList:v,experimental_defaultFormStateBehavior:h,rawFormData:e,parentDefaults:(0,a.Z)(b,[t]),required:y})}))}if("requiredOnly"===(null==h||null===(T=h.arrayMinItems)||void 0===T?void 0:T.populate)&&!y)return b||void 0;var M=Array.isArray(b)?b.length:0;if(!g.minItems||Ue(r,g,s)||g.minItems<=M)return b||[];var N=b||[],k=We(g,Me.Invert),W=k.default,L=new Array(g.minItems-M).fill(Ce(r,k,{parentDefaults:W,rootSchema:s,_recurseList:v,experimental_defaultFormStateBehavior:h,required:y}));return N.concat(L)}return b}function Re(r,e,t,n,o,i){if(void 0===o&&(o=!1),!_r(e))throw new Error("Invalid schema: "+e);var a=Ce(r,be(r,e,n,t),{rootSchema:n,includeUndefinedValues:o,experimental_defaultFormStateBehavior:i,rawFormData:t});if(null==t||"number"==typeof t&&isNaN(t))return a;var u=((null==i?void 0:i.arrayMinItems)||{}).mergeExtraDefaults;return _r(t)||Array.isArray(t)?Pe(a,t,u):t}function Be(r){return void 0===r&&(r={}),"widget"in ee(r)&&"hidden"!==ee(r).widget}function $e(r,e,t,n){if(void 0===t&&(t={}),"files"===t[Qr])return!0;if(e.items){var o=be(r,e.items,n);return"string"===o.type&&"data-url"===o.format}return!1}function Ve(r,e,t,n,o){void 0===t&&(t={});var i=ee(t,o).label,a=!(void 0!==i&&!i),u=le(e);return"array"===u&&(a=Ue(r,e,n)||$e(r,e,t,n)||Be(t)),"object"===u&&(a=!1),"boolean"!==u||t[Qr]||(a=!1),t[Gr]&&(a=!1),a}function qe(r,e,t){if(!t)return e;var n=e.errors,o=e.errorSchema,i=r.toErrorList(t),a=t;return(0,u.Z)(o)||(a=De(o,t,!0),i=[].concat(n).concat(i)),{errorSchema:a,errors:i}}!function(r){r[r.Ignore=0]="Ignore",r[r.Invert=1]="Invert",r[r.Fallback=2]="Fallback"}(Me||(Me={}));var ze=Symbol("no Value");function Ye(r,e,t,n,o){var i;if(void 0===o&&(o={}),(0,f.Z)(t,qr)){var u={};if((0,f.Z)(n,qr)){var c=(0,a.Z)(n,qr,{});Object.keys(c).forEach((function(r){(0,f.Z)(o,r)&&(u[r]=void 0)}))}var s=Object.keys((0,a.Z)(t,qr,{})),l={};s.forEach((function(i){var c=(0,a.Z)(o,i),s=(0,a.Z)(n,[qr,i],{}),p=(0,a.Z)(t,[qr,i],{});(0,f.Z)(s,Kr)&&(s=be(r,s,e,c)),(0,f.Z)(p,Kr)&&(p=be(r,p,e,c));var v=(0,a.Z)(s,"type"),d=(0,a.Z)(p,"type");if(!v||v===d)if((0,f.Z)(u,i)&&delete u[i],"object"===d||"array"===d&&Array.isArray(c)){var h=Ye(r,e,p,s,c);void 0===h&&"array"!==d||(l[i]=h)}else{var y=(0,a.Z)(p,"default",ze),m=(0,a.Z)(s,"default",ze);y!==ze&&y!==c&&(m===c?u[i]=y:!0===(0,a.Z)(p,"readOnly")&&(u[i]=void 0));var g=(0,a.Z)(p,"const",ze),b=(0,a.Z)(s,"const",ze);g!==ze&&g!==c&&(u[i]=b===c?g:void 0)}})),i=Sr({},o,u,l)}else if("array"===(0,a.Z)(n,"type")&&"array"===(0,a.Z)(t,"type")&&Array.isArray(o)){var p=(0,a.Z)(n,"items"),v=(0,a.Z)(t,"items");if("object"!=typeof p||"object"!=typeof v||Array.isArray(p)||Array.isArray(v))"boolean"==typeof p&&"boolean"==typeof v&&p===v&&(i=o);else{(0,f.Z)(p,Kr)&&(p=be(r,p,e,o)),(0,f.Z)(v,Kr)&&(v=be(r,v,e,o));var d=(0,a.Z)(p,"type"),h=(0,a.Z)(v,"type");if(!d||d===h){var y=(0,a.Z)(t,"maxItems",-1);i="object"===h?o.reduce((function(t,n){var o=Ye(r,e,v,p,n);return void 0!==o&&(y<0||t.length<y)&&t.push(o),t}),[]):y>0&&o.length>y?o.slice(0,y):o}}}return i}function Ke(r,e,t,n,o,i,u,c){if(void 0===c&&(c=[]),Kr in e||Nr in e||Dr in e){var s=be(r,e,i,u);if(-1===c.findIndex((function(r){return(0,vr.Z)(r,s)})))return Ke(r,s,t,n,o,i,u,c.concat(s))}if(Rr in e&&!(0,a.Z)(e,[Rr,Kr]))return Ke(r,(0,a.Z)(e,Rr),t,n,o,i,u,c);var f={$id:o||t};if("object"===le(e)&&qr in e)for(var l in e.properties){var p=(0,a.Z)(e,[qr,l]),v=f[Lr]+n+l;f[l]=Ke(r,_r(p)?p:{},t,n,v,i,(0,a.Z)(u,[l]),c)}return f}function Je(r,e,t,n,o,i,a){return void 0===i&&(i="root"),void 0===a&&(a="_"),Ke(r,e,i,a,t,n,o)}function He(r,e,t,n,o,i){var u;if(void 0===i&&(i=[]),Kr in e||Nr in e||Dr in e){var c=be(r,e,n,o);if(-1===i.findIndex((function(r){return(0,vr.Z)(r,c)})))return He(r,c,t,n,o,i.concat(c))}var s=((u={})[$r]=t.replace(/^\./,""),u);if(Vr in e||Fr in e){var f=Vr in e?e.oneOf:e.anyOf,l=se(e),p=f[Ze(r,n,o,f,0,l)];s=Sr({},s,He(r,p,t,n,o,i))}if(Pr in e&&!1!==e[Pr]&&(0,J.Z)(s,Jr,!0),Rr in e&&Array.isArray(o))o.forEach((function(o,a){s[a]=He(r,e.items,t+"."+a,n,o,i)}));else if(qr in e)for(var v in e.properties){var d=(0,a.Z)(e,[qr,v]);s[v]=He(r,d,t+"."+v,n,(0,a.Z)(o,[v]),i)}return s}function Ge(r,e,t,n,o){return void 0===t&&(t=""),He(r,e,t,n,o)}var Qe=function(){function r(r,e,t){this.rootSchema=void 0,this.validator=void 0,this.experimental_defaultFormStateBehavior=void 0,this.rootSchema=e,this.validator=r,this.experimental_defaultFormStateBehavior=t}var e=r.prototype;return e.getValidator=function(){return this.validator},e.doesSchemaUtilsDiffer=function(r,e,t){return void 0===t&&(t={}),!(!r||!e||this.validator===r&&oe(this.rootSchema,e)&&oe(this.experimental_defaultFormStateBehavior,t))},e.getDefaultFormState=function(r,e,t){return void 0===t&&(t=!1),Re(this.validator,r,e,this.rootSchema,t,this.experimental_defaultFormStateBehavior)},e.getDisplayLabel=function(r,e,t){return Ve(this.validator,r,e,this.rootSchema,t)},e.getClosestMatchingOption=function(r,e,t,n){return Ze(this.validator,this.rootSchema,r,e,t,n)},e.getFirstMatchingOption=function(r,e,t){return ce(this.validator,r,e,this.rootSchema,t)},e.getMatchingOption=function(r,e,t){return ue(this.validator,r,e,this.rootSchema,t)},e.isFilesArray=function(r,e){return $e(this.validator,r,e,this.rootSchema)},e.isMultiSelect=function(r){return Ue(this.validator,r,this.rootSchema)},e.isSelect=function(r){return Te(this.validator,r,this.rootSchema)},e.mergeValidationData=function(r,e){return qe(this.validator,r,e)},e.retrieveSchema=function(r,e){return be(this.validator,r,this.rootSchema,e)},e.sanitizeDataForNewSchema=function(r,e,t){return Ye(this.validator,this.rootSchema,r,e,t)},e.toIdSchema=function(r,e,t,n,o){return void 0===n&&(n="root"),void 0===o&&(o="_"),Je(this.validator,r,e,this.rootSchema,t,n,o)},e.toPathSchema=function(r,e,t){return Ge(this.validator,r,e,this.rootSchema,t)},r}();function Xe(r,e,t){return void 0===t&&(t={}),new Qe(r,e,t)}function rt(r){var e,t=r.split(","),n=t[0].split(";"),o=n[0].replace("data:",""),i=n.filter((function(r){return"name"===r.split("=")[0]}));e=1!==i.length?"unknown":decodeURI(i[0].split("=")[1]);try{for(var a=atob(t[1]),u=[],c=0;c<a.length;c++)u.push(a.charCodeAt(c));return{blob:new window.Blob([new Uint8Array(u)],{type:o}),name:e}}catch(e){return{blob:{size:0,type:e.message},name:r}}}function et(r,e){var t=r;if(Array.isArray(e)){var n=t.split(/(%\d)/);e.forEach((function(r,e){var t=n.findIndex((function(r){return r==="%"+(e+1)}));t>=0&&(n[t]=r)})),t=n.join("")}return t}function tt(r,e){return et(r,e)}function nt(r,e,t){if(void 0===e&&(e=[]),Array.isArray(r))return r.map((function(r){return nt(r,e)})).filter((function(r){return r}));var n=""===r||null===r?-1:Number(r),o=e[n];return o?o.value:t}function ot(r,e,t){void 0===t&&(t=[]);var n=nt(r,t);return Array.isArray(e)?e.filter((function(r){return!(0,vr.Z)(r,n)})):(0,vr.Z)(n,e)?void 0:e}function it(r,e){return Array.isArray(e)?e.some((function(e){return(0,vr.Z)(e,r)})):(0,vr.Z)(e,r)}function at(r,e,t){void 0===e&&(e=[]),void 0===t&&(t=!1);var n=e.map((function(e,t){return it(e.value,r)?String(t):void 0})).filter((function(r){return void 0!==r}));return t?n:n[0]}function ut(r,e,t){void 0===t&&(t=[]);var n=nt(r,t);if(!dr(n)){var o=t.findIndex((function(r){return n===r.value})),i=t.map((function(r){return r.value}));return e.slice(0,o).concat(n,e.slice(o)).sort((function(r,e){return Number(i.indexOf(r)>i.indexOf(e))}))}return e}var ct=function(){function r(r){this.errorSchema={},this.resetAllErrors(r)}var e,t,n=r.prototype;return n.getOrCreateErrorBlock=function(r){var e=Array.isArray(r)&&r.length>0||"string"==typeof r?(0,a.Z)(this.errorSchema,r):this.errorSchema;return!e&&r&&(e={},(0,J.Z)(this.errorSchema,r,e)),e},n.resetAllErrors=function(r){return this.errorSchema=r?(0,hr.Z)(r):{},this},n.addErrors=function(r,e){var t,n=this.getOrCreateErrorBlock(e),o=(0,a.Z)(n,Wr);return Array.isArray(o)||(o=[],n[Wr]=o),Array.isArray(r)?(t=o).push.apply(t,r):o.push(r),this},n.setErrors=function(r,e){var t=this.getOrCreateErrorBlock(e),n=Array.isArray(r)?[].concat(r):[r];return(0,J.Z)(t,Wr,n),this},n.clearErrors=function(r){var e=this.getOrCreateErrorBlock(r);return(0,J.Z)(e,Wr,[]),this},e=r,(t=[{key:"ErrorSchema",get:function(){return this.errorSchema}}])&&Ar(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),r}();function st(r){var e={};return r.multipleOf&&(e.step=r.multipleOf),(r.minimum||0===r.minimum)&&(e.min=r.minimum),(r.maximum||0===r.maximum)&&(e.max=r.maximum),e}function ft(r,e,t,n){void 0===t&&(t={}),void 0===n&&(n=!0);var o=Sr({type:e||"text"},st(r));return t.inputType?o.type=t.inputType:e||("number"===r.type?(o.type="number",n&&void 0===o.step&&(o.step="any")):"integer"===r.type&&(o.type="number",void 0===o.step&&(o.step=1))),t.autocomplete&&(o.autoComplete=t.autocomplete),o}var lt={props:{disabled:!1},submitText:"Submit",norender:!1};function pt(r){void 0===r&&(r={});var e=ee(r);if(e&&e[Yr]){var t=e[Yr];return Sr({},lt,t)}return lt}function vt(r,e,t){void 0===t&&(t={});var n=e.templates;return"ButtonTemplates"===r?n[r]:t[r]||n[r]}var dt,ht=["options"],yt={boolean:{checkbox:"CheckboxWidget",radio:"RadioWidget",select:"SelectWidget",hidden:"HiddenWidget"},string:{text:"TextWidget",password:"PasswordWidget",email:"EmailWidget",hostname:"TextWidget",ipv4:"TextWidget",ipv6:"TextWidget",uri:"URLWidget","data-url":"FileWidget",radio:"RadioWidget",select:"SelectWidget",textarea:"TextareaWidget",hidden:"HiddenWidget",date:"DateWidget",datetime:"DateTimeWidget","date-time":"DateTimeWidget","alt-date":"AltDateWidget","alt-datetime":"AltDateTimeWidget",time:"TimeWidget",color:"ColorWidget",file:"FileWidget"},number:{text:"TextWidget",select:"SelectWidget",updown:"UpDownWidget",range:"RangeWidget",radio:"RadioWidget",hidden:"HiddenWidget"},integer:{text:"TextWidget",select:"SelectWidget",updown:"UpDownWidget",range:"RangeWidget",radio:"RadioWidget",hidden:"HiddenWidget"},array:{select:"SelectWidget",checkboxes:"CheckboxesWidget",files:"FileWidget",hidden:"HiddenWidget"}};function mt(r,e,t){void 0===t&&(t={});var n=le(r);if("function"==typeof e||e&&gr.isForwardRef((0,mr.createElement)(e))||gr.isMemo(e))return function(r){var e=(0,a.Z)(r,"MergedWidget");if(!e){var t=r.defaultProps&&r.defaultProps.options||{};e=function(e){var n=e.options,o=Zr(e,ht);return(0,yr.jsx)(r,Sr({options:Sr({},t,n)},o))},(0,J.Z)(r,"MergedWidget",e)}return e}(e);if("string"!=typeof e)throw new Error("Unsupported widget definition: "+typeof e);if(e in t)return mt(r,t[e],t);if("string"==typeof n){if(!(n in yt))throw new Error("No widget for type '"+n+"'");if(e in yt[n])return mt(r,t[yt[n][e]],t)}throw new Error("No widget '"+e+"' for type '"+n+"'")}function gt(r){var e=new Set;return JSON.stringify(r,(function(r,t){return e.add(r),t})),function(r){for(var e=0,t=0;t<r.length;t+=1)e=(e<<5)-e+r.charCodeAt(t),e&=e;return e.toString(16)}(JSON.stringify(r,Array.from(e).sort()))}function bt(r,e,t){void 0===t&&(t={});try{return mt(r,e,t),!0}catch(r){var n=r;if(n.message&&(n.message.startsWith("No widget")||n.message.startsWith("Unsupported widget")))return!1;throw r}}function xt(r,e){return(h(r)?r:r[Lr])+"__"+e}function Ot(r){return xt(r,"description")}function _t(r){return xt(r,"error")}function jt(r){return xt(r,"examples")}function wt(r){return xt(r,"help")}function At(r){return xt(r,"title")}function St(r,e){void 0===e&&(e=!1);var t=e?" "+jt(r):"";return _t(r)+" "+Ot(r)+" "+wt(r)+t}function Et(r,e){return r+"-"+e}function Zt(r,e,t){return e?t:r}function It(r){return r?new Date(r).toJSON():void 0}function Pt(r){if(kr in r&&Array.isArray(r.enum)&&1===r.enum.length)return r.enum[0];if(Tr in r)return r.const;throw new Error("schema cannot be inferred as a constant")}function Dt(r){var e=r;if(e.enumNames,r.enum)return r.enum.map((function(r,t){return{label:e.enumNames&&e.enumNames[t]||String(r),value:r}}));var t=r.oneOf||r.anyOf;return t&&t.map((function(r){var e=r,t=Pt(e);return{schema:e,label:e.title||String(t),value:t}}))}function Ft(r,e){if(!Array.isArray(e))return r;var t,n=function(r){return r.reduce((function(r,e){return r[e]=!0,r}),{})},o=n(r),i=e.filter((function(r){return"*"===r||o[r]})),a=n(i),u=r.filter((function(r){return!a[r]})),c=i.indexOf("*");if(-1===c){if(u.length)throw new Error("uiSchema order list does not contain "+((t=u).length>1?"properties '"+t.join("', '")+"'":"property '"+t[0]+"'"));return i}if(c!==i.lastIndexOf("*"))throw new Error("uiSchema order list contains more than one wildcard item");var s=[].concat(i);return s.splice.apply(s,[c,1].concat(u)),s}function Tt(r,e){for(var t=String(r);t.length<e;)t="0"+t;return t}function Ut(r,e){if(void 0===e&&(e=!0),!r)return{year:-1,month:-1,day:-1,hour:e?-1:0,minute:e?-1:0,second:e?-1:0};var t=new Date(r);if(Number.isNaN(t.getTime()))throw new Error("Unable to parse date "+r);return{year:t.getUTCFullYear(),month:t.getUTCMonth()+1,day:t.getUTCDate(),hour:e?t.getUTCHours():0,minute:e?t.getUTCMinutes():0,second:e?t.getUTCSeconds():0}}function Mt(r){return!!r.const||(!(!r.enum||1!==r.enum.length||!0!==r.enum[0])||(r.anyOf&&1===r.anyOf.length?Mt(r.anyOf[0]):r.oneOf&&1===r.oneOf.length?Mt(r.oneOf[0]):!!r.allOf&&r.allOf.some((function(r){return Mt(r)}))))}function Nt(r,e,t){var n=r.props,o=r.state;return!oe(n,e)||!oe(o,t)}function kt(r,e){void 0===e&&(e=!0);var t=r.year,n=r.month,o=r.day,i=r.hour,a=void 0===i?0:i,u=r.minute,c=void 0===u?0:u,s=r.second,f=void 0===s?0:s,l=Date.UTC(t,n-1,o,a,c,f),p=new Date(l).toJSON();return e?p:p.slice(0,10)}function Wt(r,e){if(void 0===e&&(e=[]),!r)return[];var t=[];return Wr in r&&(t=t.concat(r[Wr].map((function(r){var t="."+e.join(".");return{property:t,message:r,stack:t+" "+r}})))),Object.keys(r).reduce((function(t,o){if(o!==Wr){var i=r[o];(0,n.Z)(i)&&(t=t.concat(Wt(i,[].concat(e,[o]))))}return t}),t)}function Lt(r){var e=new ct;return r.length&&r.forEach((function(r){var t=r.property,n=r.message,o="."===t?[]:(0,br.Z)(t);o.length>0&&""===o[0]&&o.splice(0,1),n&&e.addErrors(n,o)})),e.ErrorSchema}function Ct(r){return Object.keys(r).reduce((function(e,t){if("addError"===t)return e;var o,i,a=r[t];return(0,n.Z)(a)?Sr({},e,((i={})[t]=Ct(a),i)):Sr({},e,((o={})[t]=a,o))}),{})}function Rt(r){if(!r)return"";var e=new Date(r);return Tt(e.getFullYear(),4)+"-"+Tt(e.getMonth()+1,2)+"-"+Tt(e.getDate(),2)+"T"+Tt(e.getHours(),2)+":"+Tt(e.getMinutes(),2)+":"+Tt(e.getSeconds(),2)+"."+Tt(e.getMilliseconds(),3)}function Bt(r,e){if(!e)return r;var t=r.errors,n=r.errorSchema,o=Wt(e),i=e;return(0,u.Z)(n)||(i=De(n,e,!0),o=[].concat(t).concat(o)),{errorSchema:i,errors:o}}function $t(r){return r.constructor===Object?function(r){for(var e in r){var t=r,n=t[e];e===Kr&&"string"==typeof n&&n.startsWith("#")?t[e]=Hr+n:t[e]=$t(n)}return r}(Sr({},r)):Array.isArray(r)?function(r){for(var e=0;e<r.length;e++)r[e]=$t(r[e]);return r}([].concat(r)):r}!function(r){r.ArrayItemTitle="Item",r.MissingItems="Missing items definition",r.YesLabel="Yes",r.NoLabel="No",r.CloseLabel="Close",r.ErrorsLabel="Errors",r.NewStringDefault="New Value",r.AddButton="Add",r.AddItemButton="Add Item",r.CopyButton="Copy",r.MoveDownButton="Move down",r.MoveUpButton="Move up",r.RemoveButton="Remove",r.NowLabel="Now",r.ClearLabel="Clear",r.AriaDateLabel="Select a date",r.PreviewLabel="Preview",r.DecrementAriaLabel="Decrease value by 1",r.IncrementAriaLabel="Increase value by 1",r.UnknownFieldType="Unknown field type %1",r.OptionPrefix="Option %1",r.TitleOptionPrefix="%1 option %2",r.KeyLabel="%1 Key",r.InvalidObjectField='Invalid "%1" object field configuration: <em>%2</em>.',r.UnsupportedField="Unsupported field schema.",r.UnsupportedFieldWithId="Unsupported field schema for field <code>%1</code>.",r.UnsupportedFieldWithReason="Unsupported field schema: <em>%1</em>.",r.UnsupportedFieldWithIdAndReason="Unsupported field schema for field <code>%1</code>: <em>%2</em>.",r.FilesInfo="<strong>%1</strong> (%2, %3 bytes)"}(dt||(dt={}));var Vt=function(){function r(r){this.rootSchema=void 0,this.schemaMap={},this.rootSchema=r,this.addSchema(r,gt(r))}var e=r.prototype;return e.addSchema=function(r,e){var t,n=(0,a.Z)(r,Lr,e),o=Sr({},r,((t={})[Lr]=n,t)),i=this.schemaMap[n];if(i){if(!(0,vr.Z)(i,o))throw console.error("existing schema:",JSON.stringify(i,null,2)),console.error("new schema:",JSON.stringify(o,null,2)),new Error("Two different schemas exist with the same key "+n+"! What a bad coincidence. If possible, try adding an $id to one of the schemas")}else this.schemaMap[n]=o},e.getSchemaMap=function(){return this.schemaMap},e.isValid=function(r,e,t){if(!(0,vr.Z)(t,this.rootSchema))throw new Error("Unexpectedly calling isValid() with a rootSchema that differs from the construction rootSchema");return this.addSchema(r,gt(r)),!1},e.rawValidation=function(r,e){throw new Error("Unexpectedly calling the `rawValidation()` method during schema parsing")},e.toErrorList=function(r,e){throw new Error("Unexpectedly calling the `toErrorList()` method during schema parsing")},e.validateFormData=function(r,e,t,n,o){throw new Error("Unexpectedly calling the `validateFormData()` method during schema parsing")},r}();function qt(r,e,t,n){_e(r,n,t,void 0,!0).forEach((function(n){-1===e.findIndex((function(r){return(0,vr.Z)(r,n)}))&&(e.push(n),je(r,n,t,!0).forEach((function(o){qr in o&&o[qr]&&Or(n[qr],(function(n){qt(r,e,t,n)}))})),Rr in n&&!Array.isArray(n.items)&&"boolean"!=typeof n.items&&qt(r,e,t,n.items))}))}function zt(r){var e=new Vt(r);return qt(e,[],r,r),e.getSchemaMap()}},15422:(r,e,t)=>{"use strict";var n=t(17604),o=t(9333),i=t(86401),a=Math.pow(2,31)-1;function u(r,e){var t,n=1;if(0===r)return e;if(0===e)return r;for(;r%2==0&&e%2==0;)r/=2,e/=2,n*=2;for(;r%2==0;)r/=2;for(;e;){for(;e%2==0;)e/=2;r>e&&(t=e,e=r,r=t),e-=r}return n*r}function c(r,e){var t,n=0;if(0===r)return e;if(0===e)return r;for(;0==(1&r)&&0==(1&e);)r>>>=1,e>>>=1,n++;for(;0==(1&r);)r>>>=1;for(;e;){for(;0==(1&e);)e>>>=1;r>e&&(t=e,e=r,r=t),e-=r}return r<<n}r.exports=function(){var r,e,t,s,f,l,p,v=arguments.length;for(r=new Array(v),p=0;p<v;p++)r[p]=arguments[p];if(o(r)){if(2===v)return(f=r[0])<0&&(f=-f),(l=r[1])<0&&(l=-l),f<=a&&l<=a?c(f,l):u(f,l);t=r}else{if(!n(r[0]))throw new TypeError("gcd()::invalid input argument. Must provide an array of integers. Value: `"+r[0]+"`.");if(v>1){if(t=r[0],e=r[1],!i(e))throw new TypeError("gcd()::invalid input argument. Accessor must be a function. Value: `"+e+"`.")}else t=r[0]}if((s=t.length)<2)return null;if(e){for(f=new Array(s),p=0;p<s;p++)f[p]=e(t[p],p);t=f}if(v<3&&!o(t))throw new TypeError("gcd()::invalid input argument. Accessed array values must be integers. Value: `"+t+"`.");for(p=0;p<s;p++)(f=t[p])<0&&(t[p]=-f);for(f=t[0],p=1;p<s;p++)f=(l=t[p])<=a&&f<=a?c(f,l):u(f,l);return f}},72982:(r,e,t)=>{"use strict";var n=t(15422),o=t(17604),i=t(9333),a=t(86401);r.exports=function(){var r,e,t,u,c,s,f,l=arguments.length;for(r=new Array(l),f=0;f<l;f++)r[f]=arguments[f];if(i(r)){if(2===l)return(c=r[0])<0&&(c=-c),(s=r[1])<0&&(s=-s),0===c||0===s?0:c/n(c,s)*s;t=r}else{if(!o(r[0]))throw new TypeError("lcm()::invalid input argument. Must provide an array of integers. Value: `"+r[0]+"`.");if(l>1){if(t=r[0],e=r[1],!a(e))throw new TypeError("lcm()::invalid input argument. Accessor must be a function. Value: `"+e+"`.")}else t=r[0]}if((u=t.length)<2)return null;if(e){for(c=new Array(u),f=0;f<u;f++)c[f]=e(t[f],f);t=c}if(l<3&&!i(t))throw new TypeError("lcm()::invalid input argument. Accessed array values must be integers. Value: `"+t+"`.");for(f=0;f<u;f++)(c=t[f])<0&&(t[f]=-c);for(c=t[0],f=1;f<u;f++){if(s=t[f],0===c||0===s)return 0;c=c/n(c,s)*s}return c}},64316:(r,e,t)=>{var n=t(56141),o=t(95099),i=t(83766),a=t(52929),u=t(70236),c=t(28054),s=t(40861),f=t(3819),l=r=>Array.isArray(r)?r:[r],p=r=>void 0===r,v=r=>s(r)||Array.isArray(r)?Object.keys(r):[],d=(r,e)=>r.hasOwnProperty(e),h=r=>o(i(r)),y=r=>p(r)||Array.isArray(r)&&0===r.length,m=(r,e)=>p(r)&&0===e||p(e)&&0===r||n(r,e),g=r=>p(r)||n(r,{})||!0===r,b=r=>p(r)||n(r,{}),x=r=>p(r)||s(r)||!0===r||!1===r;function O(r,e){return!(!y(r)||!y(e))||n(h(r),h(e))}function _(r,e,t,o){var a=i(v(r).concat(v(e)));return!(!b(r)||!b(e))||(!b(r)||!v(e).length)&&(!b(e)||!v(r).length)&&a.every((function(t){var i=r[t],a=e[t];return Array.isArray(i)&&Array.isArray(a)?n(h(r),h(e)):!(Array.isArray(i)&&!Array.isArray(a))&&!(Array.isArray(a)&&!Array.isArray(i))&&((r,e,t,n)=>e&&d(e,t)&&r&&d(r,t)&&n(r[t],e[t]))(r,e,t,o)}))}function j(r,e,t,n){var o=a(r,n),i=a(e,n);return c(o,i,n).length===Math.max(o.length,i.length)}var w={title:n,uniqueItems:(r,e)=>p(r)&&!1===e||p(e)&&!1===r||n(r,e),minLength:m,minItems:m,minProperties:m,required:O,enum:O,type:function(r,e){return r=l(r),e=l(e),n(h(r),h(e))},items:function(r,e,t,o){return s(r)&&s(e)?o(r,e):Array.isArray(r)&&Array.isArray(e)?_(r,e,0,o):n(r,e)},anyOf:j,allOf:j,oneOf:j,properties:_,patternProperties:_,dependencies:_},A=["properties","patternProperties","dependencies","uniqueItems","minLength","minItems","minProperties","required"],S=["additionalProperties","additionalItems","contains","propertyNames","not"];r.exports=function r(e,t,o){if(o=u(o,{ignore:[]}),g(e)&&g(t))return!0;if(!x(e)||!x(t))throw new Error("Either of the values are not a JSON schema.");if(e===t)return!0;if(f(e)&&f(t))return e===t;if(void 0===e&&!1===t||void 0===t&&!1===e)return!1;if(p(e)&&!p(t)||!p(e)&&p(t))return!1;var a=i(Object.keys(e).concat(Object.keys(t)));if(o.ignore.length&&(a=a.filter((r=>-1===o.ignore.indexOf(r)))),!a.length)return!0;function c(e,t){return r(e,t,o)}return a.every((function(i){var a=e[i],u=t[i];if(-1!==S.indexOf(i))return r(a,u,o);var s=w[i];if(s||(s=n),n(a,u))return!0;if(-1===A.indexOf(i)&&(!d(e,i)&&d(t,i)||d(e,i)&&!d(t,i)))return a===u;var l=s(a,u,i,c);if(!f(l))throw new Error("Comparer must return true or false");return l}))}},2143:(r,e,t)=>{const n=t(89754),o=t(84812),i=t(40861),a=t(83766),u=t(52929),c=t(81889),s=(r,e)=>Object.prototype.hasOwnProperty.call(r,e),f=r=>i(r)||Array.isArray(r)?Object.keys(r):[],l=r=>!f(r).length&&!1!==r&&!0!==r;r.exports={allUniqueKeys:r=>a(o(r.map(f))),deleteUndefinedProps:function(r){for(const e in r)s(r,e)&&l(r[e])&&delete r[e];return r},getValues:(r,e)=>r.map((r=>r&&r[e])),has:s,isEmptySchema:l,isSchema:r=>i(r)||!0===r||!1===r,keys:f,notUndefined:r=>void 0!==r,uniqWith:u,withoutArr:(r,...e)=>c.apply(null,[r].concat(n(e)))}},71020:(r,e,t)=>{const n=t(64316),o=t(47003),{allUniqueKeys:i,deleteUndefinedProps:a,has:u,isSchema:c,notUndefined:s,uniqWith:f}=t(2143);r.exports={keywords:["items","additionalItems"],resolver(r,e,t){const l=r.map((r=>r.items)),p=l.filter(s),v={};let d;var h;return p.every(c)?v.items=t.items(l):v.items=function(r,e,t){return i(t).reduce((function(t,o){const i=function(r,e){return r.map((function(r){if(r){if(!Array.isArray(r.items))return r.items;{const t=r.items[e];if(c(t))return t;if(u(r,"additionalItems"))return r.additionalItems}}}))}(r,o),a=f(i.filter(s),n);return t[o]=e(a,o),t}),[])}(r,t.items,l),p.every(Array.isArray)?d=r.map((r=>r.additionalItems)):p.some(Array.isArray)&&(d=r.map((function(r){if(r)return Array.isArray(r.items)?r.additionalItems:r.items}))),d&&(v.additionalItems=t.additionalItems(d)),!1===v.additionalItems&&Array.isArray(v.items)&&(h=v.items,o(h,(function(r,e){!1===r&&h.splice(e,1)}))),a(v)}}},88807:(r,e,t)=>{const n=t(64316),o=t(47003),{allUniqueKeys:i,deleteUndefinedProps:a,getValues:u,keys:c,notUndefined:s,uniqWith:f,withoutArr:l}=t(2143);function p(r,e){return i(r).reduce((function(t,o){const i=u(r,o),a=f(i.filter(s),n);return t[o]=e(a,o),t}),{})}r.exports={keywords:["properties","patternProperties","additionalProperties"],resolver(r,e,t,n){n.ignoreAdditionalProperties||(r.forEach((function(e){const n=r.filter((r=>r!==e)),o=c(e.properties),i=c(e.patternProperties).map((r=>new RegExp(r)));n.forEach((function(r){const n=c(r.properties),a=n.filter((r=>i.some((e=>e.test(r)))));l(n,o,a).forEach((function(n){r.properties[n]=t.properties([r.properties[n],e.additionalProperties],n)}))}))})),r.forEach((function(e){const t=r.filter((r=>r!==e)),n=c(e.patternProperties);!1===e.additionalProperties&&t.forEach((function(r){const e=c(r.patternProperties);l(e,n).forEach((e=>delete r.patternProperties[e]))}))})));const i={additionalProperties:t.additionalProperties(r.map((r=>r.additionalProperties))),patternProperties:p(r.map((r=>r.patternProperties)),t.patternProperties),properties:p(r.map((r=>r.properties)),t.properties)};var u;return!1===i.additionalProperties&&o(u=i.properties,(function(r,e){!1===r&&delete u[e]})),a(i)}}},64717:(r,e,t)=>{const n=t(30454),o=t(64316),i=t(72982),a=t(53533),u=t(89754),c=t(84812),s=t(27921),f=t(28054),l=t(56141),p=t(40861),v=t(90254),d=t(95099),h=t(83766),y=t(52929),m=t(88807),g=t(71020),b=(r,e)=>-1!==r.indexOf(e),x=r=>p(r)||!0===r||!1===r,O=r=>!1===r,_=r=>!0===r,j=(r,e,t)=>t(r),w=r=>d(h(c(r))),A=r=>void 0!==r,S=r=>h(c(r.map(F))),E=r=>r[0],Z=r=>Math.max.apply(Math,r),I=r=>Math.min.apply(Math,r);function P(r){let{allOf:e=[],...t}=r;return t=p(r)?t:r,[t,...e.map(P)]}function D(r,e){return r.map((r=>r&&r[e]))}function F(r){return p(r)||Array.isArray(r)?Object.keys(r):[]}function T(r,e){if(e=e||[],!r.length)return e;const t=r.slice(0).shift(),n=r.slice(1);return e.length?T(n,u(e.map((r=>t.map((e=>[e].concat(r))))))):T(n,t.map((r=>r)))}function U(r,e){let t;try{t=r.map((function(r){return JSON.stringify(r,null,2)})).join("\n")}catch(e){t=r.join(", ")}throw new Error('Could not resolve values for path:"'+e.join(".")+'". They are probably incompatible. Values: \n'+t)}function M(r,e,t,n,i,a){if(r.length){const u=i.complexResolvers[e];if(!u||!u.resolver)throw new Error("No resolver found for "+e);const c=t.map((e=>r.reduce(((r,t)=>(void 0!==e[t]&&(r[t]=e[t]),r)),{}))),s=y(c,o),f=u.keywords.reduce(((r,e)=>({...r,[e]:(r,t=[])=>n(r,null,a.concat(e,t))})),{}),l=u.resolver(s,a.concat(e),f,i);return p(l)||U(s,a.concat(e)),l}}function N(r){return{required:r}}const k=["properties","patternProperties","definitions","dependencies"],W=["anyOf","oneOf"],L=["additionalProperties","additionalItems","contains","propertyNames","not","items"],C={type(r){if(r.some(Array.isArray)){const e=r.map((function(r){return Array.isArray(r)?r:[r]})),t=s.apply(null,e);if(1===t.length)return t[0];if(t.length>1)return h(t)}},dependencies:(r,e,t)=>S(r).reduce((function(e,n){const i=D(r,n);let a=y(i.filter(A),l);const u=a.filter(Array.isArray);if(u.length){if(u.length===a.length)e[n]=w(a);else{const r=a.filter(x),o=u.map(N);e[n]=t(r.concat(o),n)}return e}return a=y(a,o),e[n]=t(a,n),e}),{}),oneOf(r,e,t){const i=function(r,e){return r.map((function(r,t){try{return e(r,t)}catch(r){return}})).filter(A)}(T(n(r)),t),a=y(i,o);if(a.length)return a},not:r=>({anyOf:r}),pattern:r=>r.map((r=>"(?="+r+")")).join(""),multipleOf(r){let e=r.slice(0),t=1;for(;e.some((r=>!Number.isInteger(r)));)e=e.map((r=>10*r)),t*=10;return i(e)/t},enum(r){const e=f.apply(null,r.concat(l));if(e.length)return d(e)}};C.$id=E,C.$ref=E,C.$schema=E,C.additionalItems=j,C.additionalProperties=j,C.anyOf=C.oneOf,C.contains=j,C.default=E,C.definitions=C.dependencies,C.description=E,C.examples=r=>y(u(r),l),C.exclusiveMaximum=I,C.exclusiveMinimum=Z,C.items=g,C.maximum=I,C.maxItems=I,C.maxLength=I,C.maxProperties=I,C.minimum=Z,C.minItems=Z,C.minLength=Z,C.minProperties=Z,C.properties=m,C.propertyNames=j,C.required=r=>w(r),C.title=E,C.uniqueItems=r=>r.some(_);const R={properties:m,items:g};function B(r,e,t){t=t||[],e=a(e,{ignoreAdditionalProperties:!1,resolvers:C,complexResolvers:R,deep:!0});const i=Object.entries(e.complexResolvers),u=function r(a,u,c){a=n(a.filter(A)),c=c||[];const s=p(u)?u:{};if(!a.length)return;if(a.some(O))return!1;if(a.every(_))return!0;a=a.filter(p);const f=S(a);if(e.deep&&b(f,"allOf"))return B({allOf:a},e,t);const l=i.map((([r,e])=>f.filter((r=>e.keywords.includes(r)))));return l.forEach((r=>v(f,r))),f.forEach((function(t){const n=D(a,t),i=y(n.filter(A),function(r){return function(e,t){return o({[r]:e},{[r]:t})}}(t));if(1===i.length&&b(W,t))s[t]=i[0].map((e=>r([e],e)));else if(1!==i.length||b(k,t)||b(L,t)){const n=e.resolvers[t]||e.resolvers.defaultResolver;if(!n)throw new Error("No resolver found for key "+t+". You can provide a resolver for this keyword in the options, or provide a default resolver.");const o=(e,n=[])=>r(e,null,c.concat(t,n));s[t]=n(i,c.concat(t),o,e),void 0===s[t]?U(i,c.concat(t)):void 0===s[t]&&delete s[t]}else s[t]=i[0]})),i.reduce(((t,[n,o],i)=>({...t,...M(l[i],n,a,r,e,c)})),s)}(c(P(r)));return u}B.options={resolvers:C},r.exports=B},88208:(r,e)=>{var t=/~/,n=/~[01]/g;function o(r){switch(r){case"~1":return"/";case"~0":return"~"}throw new Error("Invalid tilde escape: "+r)}function i(r){return t.test(r)?r.replace(n,o):r}function a(r){if("string"==typeof r){if(""===(r=r.split("/"))[0])return r;throw new Error("Invalid JSON pointer.")}if(Array.isArray(r)){for(const e of r)if("string"!=typeof e&&"number"!=typeof e)throw new Error("Invalid JSON pointer. Must be of type string or number.");return r}throw new Error("Invalid JSON pointer.")}function u(r,e){if("object"!=typeof r)throw new Error("Invalid input object.");var t=(e=a(e)).length;if(1===t)return r;for(var n=1;n<t;){if(r=r[i(e[n++])],t===n)return r;if("object"!=typeof r||null===r)return}}function c(r,e,t){if("object"!=typeof r)throw new Error("Invalid input object.");if(0===(e=a(e)).length)throw new Error("Invalid JSON pointer for set.");return function(r,e,t){for(var n,o,a=1,u=e.length;a<u;){if("constructor"===e[a]||"prototype"===e[a]||"__proto__"===e[a])return r;if(n=i(e[a++]),o=u>a,void 0===r[n]&&(Array.isArray(r)&&"-"===n&&(n=r.length),o&&(""!==e[a]&&e[a]<1/0||"-"===e[a]?r[n]=[]:r[n]={})),!o)break;r=r[n]}var c=r[n];return void 0===t?delete r[n]:r[n]=t,c}(r,e,t)}e.get=u,e.set=c,e.compile=function(r){var e=a(r);return{get:function(r){return u(r,e)},set:function(r,t){return c(r,e,t)}}}},40105:(r,e,t)=>{"use strict";t.d(e,{Z:()=>i});var n=t(24395);function o(r){var e=-1,t=null==r?0:r.length;for(this.__data__=new n.Z;++e<t;)this.add(r[e])}o.prototype.add=o.prototype.push=function(r){return this.__data__.set(r,"__lodash_hash_undefined__"),this},o.prototype.has=function(r){return this.__data__.has(r)};const i=o},63890:(r,e,t)=>{"use strict";t.d(e,{Z:()=>E});var n=t(82948),o=t(40105);const i=function(r,e){for(var t=-1,n=null==r?0:r.length;++t<n;)if(e(r[t],t,r))return!0;return!1};var a=t(8142);const u=function(r,e,t,n,u,c){var s=1&t,f=r.length,l=e.length;if(f!=l&&!(s&&l>f))return!1;var p=c.get(r),v=c.get(e);if(p&&v)return p==e&&v==r;var d=-1,h=!0,y=2&t?new o.Z:void 0;for(c.set(r,e),c.set(e,r);++d<f;){var m=r[d],g=e[d];if(n)var b=s?n(g,m,d,e,r,c):n(m,g,d,r,e,c);if(void 0!==b){if(b)continue;h=!1;break}if(y){if(!i(e,(function(r,e){if(!(0,a.Z)(y,e)&&(m===r||u(m,r,t,n,c)))return y.push(e)}))){h=!1;break}}else if(m!==g&&!u(m,g,t,n,c)){h=!1;break}}return c.delete(r),c.delete(e),h};var c=t(91642),s=t(41049),f=t(35050);const l=function(r){var e=-1,t=Array(r.size);return r.forEach((function(r,n){t[++e]=[n,r]})),t};var p=t(70035),v=c.Z?c.Z.prototype:void 0,d=v?v.valueOf:void 0;var h=t(13911),y=Object.prototype.hasOwnProperty;var m=t(41182),g=t(64058),b=t(23230),x=t(14923),O="[object Arguments]",_="[object Array]",j="[object Object]",w=Object.prototype.hasOwnProperty;const A=function(r,e,t,o,i,a){var c=(0,g.Z)(r),v=(0,g.Z)(e),A=c?_:(0,m.Z)(r),S=v?_:(0,m.Z)(e),E=(A=A==O?j:A)==j,Z=(S=S==O?j:S)==j,I=A==S;if(I&&(0,b.Z)(r)){if(!(0,b.Z)(e))return!1;c=!0,E=!1}if(I&&!E)return a||(a=new n.Z),c||(0,x.Z)(r)?u(r,e,t,o,i,a):function(r,e,t,n,o,i,a){switch(t){case"[object DataView]":if(r.byteLength!=e.byteLength||r.byteOffset!=e.byteOffset)return!1;r=r.buffer,e=e.buffer;case"[object ArrayBuffer]":return!(r.byteLength!=e.byteLength||!i(new s.Z(r),new s.Z(e)));case"[object Boolean]":case"[object Date]":case"[object Number]":return(0,f.Z)(+r,+e);case"[object Error]":return r.name==e.name&&r.message==e.message;case"[object RegExp]":case"[object String]":return r==e+"";case"[object Map]":var c=l;case"[object Set]":var v=1&n;if(c||(c=p.Z),r.size!=e.size&&!v)return!1;var h=a.get(r);if(h)return h==e;n|=2,a.set(r,e);var y=u(c(r),c(e),n,o,i,a);return a.delete(r),y;case"[object Symbol]":if(d)return d.call(r)==d.call(e)}return!1}(r,e,A,t,o,i,a);if(!(1&t)){var P=E&&w.call(r,"__wrapped__"),D=Z&&w.call(e,"__wrapped__");if(P||D){var F=P?r.value():r,T=D?e.value():e;return a||(a=new n.Z),i(F,T,t,o,a)}}return!!I&&(a||(a=new n.Z),function(r,e,t,n,o,i){var a=1&t,u=(0,h.Z)(r),c=u.length;if(c!=(0,h.Z)(e).length&&!a)return!1;for(var s=c;s--;){var f=u[s];if(!(a?f in e:y.call(e,f)))return!1}var l=i.get(r),p=i.get(e);if(l&&p)return l==e&&p==r;var v=!0;i.set(r,e),i.set(e,r);for(var d=a;++s<c;){var m=r[f=u[s]],g=e[f];if(n)var b=a?n(g,m,f,e,r,i):n(m,g,f,r,e,i);if(!(void 0===b?m===g||o(m,g,t,n,i):b)){v=!1;break}d||(d="constructor"==f)}if(v&&!d){var x=r.constructor,O=e.constructor;x==O||!("constructor"in r)||!("constructor"in e)||"function"==typeof x&&x instanceof x&&"function"==typeof O&&O instanceof O||(v=!1)}return i.delete(r),i.delete(e),v}(r,e,t,o,i,a))};var S=t(9615);const E=function r(e,t,n,o,i){return e===t||(null==e||null==t||!(0,S.Z)(e)&&!(0,S.Z)(t)?e!=e&&t!=t:A(e,t,n,o,r,i))}},8142:(r,e,t)=>{"use strict";t.d(e,{Z:()=>n});const n=function(r,e){return r.has(e)}},70035:(r,e,t)=>{"use strict";t.d(e,{Z:()=>n});const n=function(r){var e=-1,t=Array(r.size);return r.forEach((function(r){t[++e]=r})),t}},41151:(r,e,t)=>{"use strict";t.d(e,{Z:()=>o});var n=t(63890);const o=function(r,e){return(0,n.Z)(r,e)}},82545:(r,e,t)=>{var n=t(81822)(t(77400),"DataView");r.exports=n},96586:(r,e,t)=>{var n=t(57753),o=t(82452),i=t(22115),a=t(38256),u=t(67426);function c(r){var e=-1,t=null==r?0:r.length;for(this.clear();++e<t;){var n=r[e];this.set(n[0],n[1])}}c.prototype.clear=n,c.prototype.delete=o,c.prototype.get=i,c.prototype.has=a,c.prototype.set=u,r.exports=c},36301:(r,e,t)=>{var n=t(69417),o=t(72470),i=t(66165),a=t(71873),u=t(52556);function c(r){var e=-1,t=null==r?0:r.length;for(this.clear();++e<t;){var n=r[e];this.set(n[0],n[1])}}c.prototype.clear=n,c.prototype.delete=o,c.prototype.get=i,c.prototype.has=a,c.prototype.set=u,r.exports=c},44538:(r,e,t)=>{var n=t(81822)(t(77400),"Map");r.exports=n},74554:(r,e,t)=>{var n=t(39448),o=t(7738),i=t(66575),a=t(7238),u=t(38738);function c(r){var e=-1,t=null==r?0:r.length;for(this.clear();++e<t;){var n=r[e];this.set(n[0],n[1])}}c.prototype.clear=n,c.prototype.delete=o,c.prototype.get=i,c.prototype.has=a,c.prototype.set=u,r.exports=c},64825:(r,e,t)=>{var n=t(81822)(t(77400),"Promise");r.exports=n},46151:(r,e,t)=>{var n=t(81822)(t(77400),"Set");r.exports=n},52485:(r,e,t)=>{var n=t(74554),o=t(38639),i=t(88379);function a(r){var e=-1,t=null==r?0:r.length;for(this.__data__=new n;++e<t;)this.add(r[e])}a.prototype.add=a.prototype.push=o,a.prototype.has=i,r.exports=a},23694:(r,e,t)=>{var n=t(36301),o=t(7354),i=t(5863),a=t(12367),u=t(90748),c=t(97569);function s(r){var e=this.__data__=new n(r);this.size=e.size}s.prototype.clear=o,s.prototype.delete=i,s.prototype.get=a,s.prototype.has=u,s.prototype.set=c,r.exports=s},96539:(r,e,t)=>{var n=t(77400).Symbol;r.exports=n},59942:(r,e,t)=>{var n=t(77400).Uint8Array;r.exports=n},66902:(r,e,t)=>{var n=t(81822)(t(77400),"WeakMap");r.exports=n},79349:r=>{r.exports=function(r,e,t){switch(t.length){case 0:return r.call(e);case 1:return r.call(e,t[0]);case 2:return r.call(e,t[0],t[1]);case 3:return r.call(e,t[0],t[1],t[2])}return r.apply(e,t)}},80594:r=>{r.exports=function(r,e){for(var t=-1,n=null==r?0:r.length;++t<n&&!1!==e(r[t],t,r););return r}},10263:r=>{r.exports=function(r,e){for(var t=-1,n=null==r?0:r.length,o=0,i=[];++t<n;){var a=r[t];e(a,t,r)&&(i[o++]=a)}return i}},58095:(r,e,t)=>{var n=t(8817);r.exports=function(r,e){return!(null==r||!r.length)&&n(r,e,0)>-1}},21796:r=>{r.exports=function(r,e,t){for(var n=-1,o=null==r?0:r.length;++n<o;)if(t(e,r[n]))return!0;return!1}},98213:(r,e,t)=>{var n=t(24701),o=t(2900),i=t(19785),a=t(43854),u=t(42383),c=t(48519),s=Object.prototype.hasOwnProperty;r.exports=function(r,e){var t=i(r),f=!t&&o(r),l=!t&&!f&&a(r),p=!t&&!f&&!l&&c(r),v=t||f||l||p,d=v?n(r.length,String):[],h=d.length;for(var y in r)!e&&!s.call(r,y)||v&&("length"==y||l&&("offset"==y||"parent"==y)||p&&("buffer"==y||"byteLength"==y||"byteOffset"==y)||u(y,h))||d.push(y);return d}},66070:r=>{r.exports=function(r,e){for(var t=-1,n=null==r?0:r.length,o=Array(n);++t<n;)o[t]=e(r[t],t,r);return o}},97141:r=>{r.exports=function(r,e){for(var t=-1,n=e.length,o=r.length;++t<n;)r[o+t]=e[t];return r}},90756:r=>{r.exports=function(r,e){for(var t=-1,n=null==r?0:r.length;++t<n;)if(e(r[t],t,r))return!0;return!1}},73140:(r,e,t)=>{var n=t(88799),o=t(85638);r.exports=function(r,e,t){(void 0!==t&&!o(r[e],t)||void 0===t&&!(e in r))&&n(r,e,t)}},71928:(r,e,t)=>{var n=t(88799),o=t(85638),i=Object.prototype.hasOwnProperty;r.exports=function(r,e,t){var a=r[e];i.call(r,e)&&o(a,t)&&(void 0!==t||e in r)||n(r,e,t)}},93382:(r,e,t)=>{var n=t(85638);r.exports=function(r,e){for(var t=r.length;t--;)if(n(r[t][0],e))return t;return-1}},41876:(r,e,t)=>{var n=t(35159),o=t(50098);r.exports=function(r,e){return r&&n(e,o(e),r)}},5947:(r,e,t)=>{var n=t(35159),o=t(53893);r.exports=function(r,e){return r&&n(e,o(e),r)}},88799:(r,e,t)=>{var n=t(42630);r.exports=function(r,e,t){"__proto__"==e&&n?n(r,e,{configurable:!0,enumerable:!0,value:t,writable:!0}):r[e]=t}},40699:(r,e,t)=>{var n=t(23694),o=t(80594),i=t(71928),a=t(41876),u=t(5947),c=t(2734),s=t(37561),f=t(31102),l=t(37048),p=t(51385),v=t(39759),d=t(3533),h=t(86541),y=t(2078),m=t(97635),g=t(19785),b=t(43854),x=t(98247),O=t(11611),_=t(47614),j=t(50098),w=t(53893),A="[object Arguments]",S="[object Function]",E="[object Object]",Z={};Z[A]=Z["[object Array]"]=Z["[object ArrayBuffer]"]=Z["[object DataView]"]=Z["[object Boolean]"]=Z["[object Date]"]=Z["[object Float32Array]"]=Z["[object Float64Array]"]=Z["[object Int8Array]"]=Z["[object Int16Array]"]=Z["[object Int32Array]"]=Z["[object Map]"]=Z["[object Number]"]=Z[E]=Z["[object RegExp]"]=Z["[object Set]"]=Z["[object String]"]=Z["[object Symbol]"]=Z["[object Uint8Array]"]=Z["[object Uint8ClampedArray]"]=Z["[object Uint16Array]"]=Z["[object Uint32Array]"]=!0,Z["[object Error]"]=Z[S]=Z["[object WeakMap]"]=!1,r.exports=function r(e,t,I,P,D,F){var T,U=1&t,M=2&t,N=4&t;if(I&&(T=D?I(e,P,D,F):I(e)),void 0!==T)return T;if(!O(e))return e;var k=g(e);if(k){if(T=h(e),!U)return s(e,T)}else{var W=d(e),L=W==S||"[object GeneratorFunction]"==W;if(b(e))return c(e,U);if(W==E||W==A||L&&!D){if(T=M||L?{}:m(e),!U)return M?l(e,u(T,e)):f(e,a(T,e))}else{if(!Z[W])return D?e:{};T=y(e,W,U)}}F||(F=new n);var C=F.get(e);if(C)return C;F.set(e,T),_(e)?e.forEach((function(n){T.add(r(n,t,I,n,e,F))})):x(e)&&e.forEach((function(n,o){T.set(o,r(n,t,I,o,e,F))}));var R=k?void 0:(N?M?v:p:M?w:j)(e);return o(R||e,(function(n,o){R&&(n=e[o=n]),i(T,o,r(n,t,I,o,e,F))})),T}},80158:(r,e,t)=>{var n=t(11611),o=Object.create,i=function(){function r(){}return function(e){if(!n(e))return{};if(o)return o(e);r.prototype=e;var t=new r;return r.prototype=void 0,t}}();r.exports=i},11005:(r,e,t)=>{var n=t(52485),o=t(58095),i=t(21796),a=t(66070),u=t(39334),c=t(65581);r.exports=function(r,e,t,s){var f=-1,l=o,p=!0,v=r.length,d=[],h=e.length;if(!v)return d;t&&(e=a(e,u(t))),s?(l=i,p=!1):e.length>=200&&(l=c,p=!1,e=new n(e));r:for(;++f<v;){var y=r[f],m=null==t?y:t(y);if(y=s||0!==y?y:0,p&&m==m){for(var g=h;g--;)if(e[g]===m)continue r;d.push(y)}else l(e,m,s)||d.push(y)}return d}},52033:(r,e,t)=>{var n=t(26194),o=t(26789)(n);r.exports=o},95372:r=>{r.exports=function(r,e,t,n){for(var o=r.length,i=t+(n?1:-1);n?i--:++i<o;)if(e(r[i],i,r))return i;return-1}},23545:(r,e,t)=>{var n=t(97141),o=t(72889);r.exports=function r(e,t,i,a,u){var c=-1,s=e.length;for(i||(i=o),u||(u=[]);++c<s;){var f=e[c];t>0&&i(f)?t>1?r(f,t-1,i,a,u):n(u,f):a||(u[u.length]=f)}return u}},49819:(r,e,t)=>{var n=t(18911)();r.exports=n},26194:(r,e,t)=>{var n=t(49819),o=t(50098);r.exports=function(r,e){return r&&n(r,e,o)}},79867:(r,e,t)=>{var n=t(76747),o=t(37948);r.exports=function(r,e){for(var t=0,i=(e=n(e,r)).length;null!=r&&t<i;)r=r[o(e[t++])];return t&&t==i?r:void 0}},11324:(r,e,t)=>{var n=t(97141),o=t(19785);r.exports=function(r,e,t){var i=e(r);return o(r)?i:n(i,t(r))}},99736:(r,e,t)=>{var n=t(96539),o=t(34840),i=t(21258),a=n?n.toStringTag:void 0;r.exports=function(r){return null==r?void 0===r?"[object Undefined]":"[object Null]":a&&a in Object(r)?o(r):i(r)}},21610:r=>{r.exports=function(r,e){return null!=r&&e in Object(r)}},8817:(r,e,t)=>{var n=t(95372),o=t(1129),i=t(58263);r.exports=function(r,e,t){return e==e?i(r,e,t):n(r,o,t)}},56006:r=>{r.exports=function(r,e,t,n){for(var o=t-1,i=r.length;++o<i;)if(n(r[o],e))return o;return-1}},96638:(r,e,t)=>{var n=t(52485),o=t(58095),i=t(21796),a=t(66070),u=t(39334),c=t(65581),s=Math.min;r.exports=function(r,e,t){for(var f=t?i:o,l=r[0].length,p=r.length,v=p,d=Array(p),h=1/0,y=[];v--;){var m=r[v];v&&e&&(m=a(m,u(e))),h=s(m.length,h),d[v]=!t&&(e||l>=120&&m.length>=120)?new n(v&&m):void 0}m=r[0];var g=-1,b=d[0];r:for(;++g<l&&y.length<h;){var x=m[g],O=e?e(x):x;if(x=t||0!==x?x:0,!(b?c(b,O):f(y,O,t))){for(v=p;--v;){var _=d[v];if(!(_?c(_,O):f(r[v],O,t)))continue r}b&&b.push(O),y.push(x)}}return y}},55829:(r,e,t)=>{var n=t(99736),o=t(92360);r.exports=function(r){return o(r)&&"[object Arguments]"==n(r)}},32866:(r,e,t)=>{var n=t(12772),o=t(92360);r.exports=function r(e,t,i,a,u){return e===t||(null==e||null==t||!o(e)&&!o(t)?e!=e&&t!=t:n(e,t,i,a,r,u))}},12772:(r,e,t)=>{var n=t(23694),o=t(27042),i=t(370),a=t(39584),u=t(3533),c=t(19785),s=t(43854),f=t(48519),l="[object Arguments]",p="[object Array]",v="[object Object]",d=Object.prototype.hasOwnProperty;r.exports=function(r,e,t,h,y,m){var g=c(r),b=c(e),x=g?p:u(r),O=b?p:u(e),_=(x=x==l?v:x)==v,j=(O=O==l?v:O)==v,w=x==O;if(w&&s(r)){if(!s(e))return!1;g=!0,_=!1}if(w&&!_)return m||(m=new n),g||f(r)?o(r,e,t,h,y,m):i(r,e,x,t,h,y,m);if(!(1&t)){var A=_&&d.call(r,"__wrapped__"),S=j&&d.call(e,"__wrapped__");if(A||S){var E=A?r.value():r,Z=S?e.value():e;return m||(m=new n),y(E,Z,t,h,m)}}return!!w&&(m||(m=new n),a(r,e,t,h,y,m))}},57657:(r,e,t)=>{var n=t(3533),o=t(92360);r.exports=function(r){return o(r)&&"[object Map]"==n(r)}},19850:(r,e,t)=>{var n=t(23694),o=t(32866);r.exports=function(r,e,t,i){var a=t.length,u=a,c=!i;if(null==r)return!u;for(r=Object(r);a--;){var s=t[a];if(c&&s[2]?s[1]!==r[s[0]]:!(s[0]in r))return!1}for(;++a<u;){var f=(s=t[a])[0],l=r[f],p=s[1];if(c&&s[2]){if(void 0===l&&!(f in r))return!1}else{var v=new n;if(i)var d=i(l,p,f,r,e,v);if(!(void 0===d?o(p,l,3,i,v):d))return!1}}return!0}},1129:r=>{r.exports=function(r){return r!=r}},46729:(r,e,t)=>{var n=t(28338),o=t(99678),i=t(11611),a=t(76532),u=/^\[object .+?Constructor\]$/,c=Function.prototype,s=Object.prototype,f=c.toString,l=s.hasOwnProperty,p=RegExp("^"+f.call(l).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");r.exports=function(r){return!(!i(r)||o(r))&&(n(r)?p:u).test(a(r))}},26903:(r,e,t)=>{var n=t(3533),o=t(92360);r.exports=function(r){return o(r)&&"[object Set]"==n(r)}},26972:(r,e,t)=>{var n=t(99736),o=t(84194),i=t(92360),a={};a["[object Float32Array]"]=a["[object Float64Array]"]=a["[object Int8Array]"]=a["[object Int16Array]"]=a["[object Int32Array]"]=a["[object Uint8Array]"]=a["[object Uint8ClampedArray]"]=a["[object Uint16Array]"]=a["[object Uint32Array]"]=!0,a["[object Arguments]"]=a["[object Array]"]=a["[object ArrayBuffer]"]=a["[object Boolean]"]=a["[object DataView]"]=a["[object Date]"]=a["[object Error]"]=a["[object Function]"]=a["[object Map]"]=a["[object Number]"]=a["[object Object]"]=a["[object RegExp]"]=a["[object Set]"]=a["[object String]"]=a["[object WeakMap]"]=!1,r.exports=function(r){return i(r)&&o(r.length)&&!!a[n(r)]}},89278:(r,e,t)=>{var n=t(71410),o=t(57518),i=t(31137),a=t(19785),u=t(96001);r.exports=function(r){return"function"==typeof r?r:null==r?i:"object"==typeof r?a(r)?o(r[0],r[1]):n(r):u(r)}},20186:(r,e,t)=>{var n=t(56016),o=t(50962),i=Object.prototype.hasOwnProperty;r.exports=function(r){if(!n(r))return o(r);var e=[];for(var t in Object(r))i.call(r,t)&&"constructor"!=t&&e.push(t);return e}},59464:(r,e,t)=>{var n=t(11611),o=t(56016),i=t(21586),a=Object.prototype.hasOwnProperty;r.exports=function(r){if(!n(r))return i(r);var e=o(r),t=[];for(var u in r)("constructor"!=u||!e&&a.call(r,u))&&t.push(u);return t}},67375:(r,e,t)=>{var n=t(52033),o=t(80068);r.exports=function(r,e){var t=-1,i=o(r)?Array(r.length):[];return n(r,(function(r,n,o){i[++t]=e(r,n,o)})),i}},71410:(r,e,t)=>{var n=t(19850),o=t(68125),i=t(65042);r.exports=function(r){var e=o(r);return 1==e.length&&e[0][2]?i(e[0][0],e[0][1]):function(t){return t===r||n(t,r,e)}}},57518:(r,e,t)=>{var n=t(32866),o=t(99729),i=t(79749),a=t(40318),u=t(68302),c=t(65042),s=t(37948);r.exports=function(r,e){return a(r)&&u(e)?c(s(r),e):function(t){var a=o(t,r);return void 0===a&&a===e?i(t,r):n(e,a,3)}}},40015:(r,e,t)=>{var n=t(23694),o=t(73140),i=t(49819),a=t(68867),u=t(11611),c=t(53893),s=t(97494);r.exports=function r(e,t,f,l,p){e!==t&&i(t,(function(i,c){if(p||(p=new n),u(i))a(e,t,c,f,r,l,p);else{var v=l?l(s(e,c),i,c+"",e,t,p):void 0;void 0===v&&(v=i),o(e,c,v)}}),c)}},68867:(r,e,t)=>{var n=t(73140),o=t(2734),i=t(63428),a=t(37561),u=t(97635),c=t(2900),s=t(19785),f=t(36468),l=t(43854),p=t(28338),v=t(11611),d=t(40861),h=t(48519),y=t(97494),m=t(89328);r.exports=function(r,e,t,g,b,x,O){var _=y(r,t),j=y(e,t),w=O.get(j);if(w)n(r,t,w);else{var A=x?x(_,j,t+"",r,e,O):void 0,S=void 0===A;if(S){var E=s(j),Z=!E&&l(j),I=!E&&!Z&&h(j);A=j,E||Z||I?s(_)?A=_:f(_)?A=a(_):Z?(S=!1,A=o(j,!0)):I?(S=!1,A=i(j,!0)):A=[]:d(j)||c(j)?(A=_,c(_)?A=m(_):v(_)&&!p(_)||(A=u(j))):S=!1}S&&(O.set(j,A),b(A,j,g,x,O),O.delete(j)),n(r,t,A)}}},98497:(r,e,t)=>{var n=t(66070),o=t(79867),i=t(89278),a=t(67375),u=t(73303),c=t(39334),s=t(96348),f=t(31137),l=t(19785);r.exports=function(r,e,t){e=e.length?n(e,(function(r){return l(r)?function(e){return o(e,1===r.length?r[0]:r)}:r})):[f];var p=-1;e=n(e,c(i));var v=a(r,(function(r,t,o){return{criteria:n(e,(function(e){return e(r)})),index:++p,value:r}}));return u(v,(function(r,e){return s(r,e,t)}))}},50517:r=>{r.exports=function(r){return function(e){return null==e?void 0:e[r]}}},10301:(r,e,t)=>{var n=t(79867);r.exports=function(r){return function(e){return n(e,r)}}},61933:(r,e,t)=>{var n=t(66070),o=t(8817),i=t(56006),a=t(39334),u=t(37561),c=Array.prototype.splice;r.exports=function(r,e,t,s){var f=s?i:o,l=-1,p=e.length,v=r;for(r===e&&(e=u(e)),t&&(v=n(r,a(t)));++l<p;)for(var d=0,h=e[l],y=t?t(h):h;(d=f(v,y,d,s))>-1;)v!==r&&c.call(v,d,1),c.call(r,d,1);return r}},1197:(r,e,t)=>{var n=t(31137),o=t(11871),i=t(63132);r.exports=function(r,e){return i(o(r,e,n),r+"")}},54459:(r,e,t)=>{var n=t(551),o=t(42630),i=t(31137),a=o?function(r,e){return o(r,"toString",{configurable:!0,enumerable:!1,value:n(e),writable:!0})}:i;r.exports=a},73303:r=>{r.exports=function(r,e){var t=r.length;for(r.sort(e);t--;)r[t]=r[t].value;return r}},24701:r=>{r.exports=function(r,e){for(var t=-1,n=Array(r);++t<r;)n[t]=e(t);return n}},34282:(r,e,t)=>{var n=t(96539),o=t(66070),i=t(19785),a=t(55193),u=n?n.prototype:void 0,c=u?u.toString:void 0;r.exports=function r(e){if("string"==typeof e)return e;if(i(e))return o(e,r)+"";if(a(e))return c?c.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}},39334:r=>{r.exports=function(r){return function(e){return r(e)}}},92198:(r,e,t)=>{var n=t(52485),o=t(58095),i=t(21796),a=t(65581),u=t(47111),c=t(43735);r.exports=function(r,e,t){var s=-1,f=o,l=r.length,p=!0,v=[],d=v;if(t)p=!1,f=i;else if(l>=200){var h=e?null:u(r);if(h)return c(h);p=!1,f=a,d=new n}else d=e?[]:v;r:for(;++s<l;){var y=r[s],m=e?e(y):y;if(y=t||0!==y?y:0,p&&m==m){for(var g=d.length;g--;)if(d[g]===m)continue r;e&&d.push(m),v.push(y)}else f(d,m,t)||(d!==v&&d.push(m),v.push(y))}return v}},65581:r=>{r.exports=function(r,e){return r.has(e)}},60923:(r,e,t)=>{var n=t(36468);r.exports=function(r){return n(r)?r:[]}},62079:(r,e,t)=>{var n=t(31137);r.exports=function(r){return"function"==typeof r?r:n}},76747:(r,e,t)=>{var n=t(19785),o=t(40318),i=t(23419),a=t(65567);r.exports=function(r,e){return n(r)?r:o(r,e)?[r]:i(a(r))}},95825:(r,e,t)=>{var n=t(59942);r.exports=function(r){var e=new r.constructor(r.byteLength);return new n(e).set(new n(r)),e}},2734:(r,e,t)=>{r=t.nmd(r);var n=t(77400),o=e&&!e.nodeType&&e,i=o&&r&&!r.nodeType&&r,a=i&&i.exports===o?n.Buffer:void 0,u=a?a.allocUnsafe:void 0;r.exports=function(r,e){if(e)return r.slice();var t=r.length,n=u?u(t):new r.constructor(t);return r.copy(n),n}},61859:(r,e,t)=>{var n=t(95825);r.exports=function(r,e){var t=e?n(r.buffer):r.buffer;return new r.constructor(t,r.byteOffset,r.byteLength)}},9377:r=>{var e=/\w*$/;r.exports=function(r){var t=new r.constructor(r.source,e.exec(r));return t.lastIndex=r.lastIndex,t}},45157:(r,e,t)=>{var n=t(96539),o=n?n.prototype:void 0,i=o?o.valueOf:void 0;r.exports=function(r){return i?Object(i.call(r)):{}}},63428:(r,e,t)=>{var n=t(95825);r.exports=function(r,e){var t=e?n(r.buffer):r.buffer;return new r.constructor(t,r.byteOffset,r.length)}},17845:(r,e,t)=>{var n=t(55193);r.exports=function(r,e){if(r!==e){var t=void 0!==r,o=null===r,i=r==r,a=n(r),u=void 0!==e,c=null===e,s=e==e,f=n(e);if(!c&&!f&&!a&&r>e||a&&u&&s&&!c&&!f||o&&u&&s||!t&&s||!i)return 1;if(!o&&!a&&!f&&r<e||f&&t&&i&&!o&&!a||c&&t&&i||!u&&i||!s)return-1}return 0}},96348:(r,e,t)=>{var n=t(17845);r.exports=function(r,e,t){for(var o=-1,i=r.criteria,a=e.criteria,u=i.length,c=t.length;++o<u;){var s=n(i[o],a[o]);if(s)return o>=c?s:s*("desc"==t[o]?-1:1)}return r.index-e.index}},37561:r=>{r.exports=function(r,e){var t=-1,n=r.length;for(e||(e=Array(n));++t<n;)e[t]=r[t];return e}},35159:(r,e,t)=>{var n=t(71928),o=t(88799);r.exports=function(r,e,t,i){var a=!t;t||(t={});for(var u=-1,c=e.length;++u<c;){var s=e[u],f=i?i(t[s],r[s],s,t,r):void 0;void 0===f&&(f=r[s]),a?o(t,s,f):n(t,s,f)}return t}},31102:(r,e,t)=>{var n=t(35159),o=t(83080);r.exports=function(r,e){return n(r,o(r),e)}},37048:(r,e,t)=>{var n=t(35159),o=t(30791);r.exports=function(r,e){return n(r,o(r),e)}},64937:(r,e,t)=>{var n=t(77400)["__core-js_shared__"];r.exports=n},7270:(r,e,t)=>{var n=t(1197),o=t(57535);r.exports=function(r){return n((function(e,t){var n=-1,i=t.length,a=i>1?t[i-1]:void 0,u=i>2?t[2]:void 0;for(a=r.length>3&&"function"==typeof a?(i--,a):void 0,u&&o(t[0],t[1],u)&&(a=i<3?void 0:a,i=1),e=Object(e);++n<i;){var c=t[n];c&&r(e,c,n,a)}return e}))}},26789:(r,e,t)=>{var n=t(80068);r.exports=function(r,e){return function(t,o){if(null==t)return t;if(!n(t))return r(t,o);for(var i=t.length,a=e?i:-1,u=Object(t);(e?a--:++a<i)&&!1!==o(u[a],a,u););return t}}},18911:r=>{r.exports=function(r){return function(e,t,n){for(var o=-1,i=Object(e),a=n(e),u=a.length;u--;){var c=a[r?u:++o];if(!1===t(i[c],c,i))break}return e}}},47111:(r,e,t)=>{var n=t(46151),o=t(50344),i=t(43735),a=n&&1/i(new n([,-0]))[1]==1/0?function(r){return new n(r)}:o;r.exports=a},19491:(r,e,t)=>{var n=t(40015),o=t(11611);r.exports=function r(e,t,i,a,u,c){return o(e)&&o(t)&&(c.set(t,e),n(e,t,void 0,r,c),c.delete(t)),e}},42630:(r,e,t)=>{var n=t(81822),o=function(){try{var r=n(Object,"defineProperty");return r({},"",{}),r}catch(r){}}();r.exports=o},27042:(r,e,t)=>{var n=t(52485),o=t(90756),i=t(65581);r.exports=function(r,e,t,a,u,c){var s=1&t,f=r.length,l=e.length;if(f!=l&&!(s&&l>f))return!1;var p=c.get(r),v=c.get(e);if(p&&v)return p==e&&v==r;var d=-1,h=!0,y=2&t?new n:void 0;for(c.set(r,e),c.set(e,r);++d<f;){var m=r[d],g=e[d];if(a)var b=s?a(g,m,d,e,r,c):a(m,g,d,r,e,c);if(void 0!==b){if(b)continue;h=!1;break}if(y){if(!o(e,(function(r,e){if(!i(y,e)&&(m===r||u(m,r,t,a,c)))return y.push(e)}))){h=!1;break}}else if(m!==g&&!u(m,g,t,a,c)){h=!1;break}}return c.delete(r),c.delete(e),h}},370:(r,e,t)=>{var n=t(96539),o=t(59942),i=t(85638),a=t(27042),u=t(19383),c=t(43735),s=n?n.prototype:void 0,f=s?s.valueOf:void 0;r.exports=function(r,e,t,n,s,l,p){switch(t){case"[object DataView]":if(r.byteLength!=e.byteLength||r.byteOffset!=e.byteOffset)return!1;r=r.buffer,e=e.buffer;case"[object ArrayBuffer]":return!(r.byteLength!=e.byteLength||!l(new o(r),new o(e)));case"[object Boolean]":case"[object Date]":case"[object Number]":return i(+r,+e);case"[object Error]":return r.name==e.name&&r.message==e.message;case"[object RegExp]":case"[object String]":return r==e+"";case"[object Map]":var v=u;case"[object Set]":var d=1&n;if(v||(v=c),r.size!=e.size&&!d)return!1;var h=p.get(r);if(h)return h==e;n|=2,p.set(r,e);var y=a(v(r),v(e),n,s,l,p);return p.delete(r),y;case"[object Symbol]":if(f)return f.call(r)==f.call(e)}return!1}},39584:(r,e,t)=>{var n=t(51385),o=Object.prototype.hasOwnProperty;r.exports=function(r,e,t,i,a,u){var c=1&t,s=n(r),f=s.length;if(f!=n(e).length&&!c)return!1;for(var l=f;l--;){var p=s[l];if(!(c?p in e:o.call(e,p)))return!1}var v=u.get(r),d=u.get(e);if(v&&d)return v==e&&d==r;var h=!0;u.set(r,e),u.set(e,r);for(var y=c;++l<f;){var m=r[p=s[l]],g=e[p];if(i)var b=c?i(g,m,p,e,r,u):i(m,g,p,r,e,u);if(!(void 0===b?m===g||a(m,g,t,i,u):b)){h=!1;break}y||(y="constructor"==p)}if(h&&!y){var x=r.constructor,O=e.constructor;x==O||!("constructor"in r)||!("constructor"in e)||"function"==typeof x&&x instanceof x&&"function"==typeof O&&O instanceof O||(h=!1)}return u.delete(r),u.delete(e),h}},39120:(r,e,t)=>{var n="object"==typeof t.g&&t.g&&t.g.Object===Object&&t.g;r.exports=n},51385:(r,e,t)=>{var n=t(11324),o=t(83080),i=t(50098);r.exports=function(r){return n(r,i,o)}},39759:(r,e,t)=>{var n=t(11324),o=t(30791),i=t(53893);r.exports=function(r){return n(r,i,o)}},95899:(r,e,t)=>{var n=t(54479);r.exports=function(r,e){var t=r.__data__;return n(e)?t["string"==typeof e?"string":"hash"]:t.map}},68125:(r,e,t)=>{var n=t(68302),o=t(50098);r.exports=function(r){for(var e=o(r),t=e.length;t--;){var i=e[t],a=r[i];e[t]=[i,a,n(a)]}return e}},81822:(r,e,t)=>{var n=t(46729),o=t(15371);r.exports=function(r,e){var t=o(r,e);return n(t)?t:void 0}},2173:(r,e,t)=>{var n=t(58023)(Object.getPrototypeOf,Object);r.exports=n},34840:(r,e,t)=>{var n=t(96539),o=Object.prototype,i=o.hasOwnProperty,a=o.toString,u=n?n.toStringTag:void 0;r.exports=function(r){var e=i.call(r,u),t=r[u];try{r[u]=void 0;var n=!0}catch(r){}var o=a.call(r);return n&&(e?r[u]=t:delete r[u]),o}},83080:(r,e,t)=>{var n=t(10263),o=t(15937),i=Object.prototype.propertyIsEnumerable,a=Object.getOwnPropertySymbols,u=a?function(r){return null==r?[]:(r=Object(r),n(a(r),(function(e){return i.call(r,e)})))}:o;r.exports=u},30791:(r,e,t)=>{var n=t(97141),o=t(2173),i=t(83080),a=t(15937),u=Object.getOwnPropertySymbols?function(r){for(var e=[];r;)n(e,i(r)),r=o(r);return e}:a;r.exports=u},3533:(r,e,t)=>{var n=t(82545),o=t(44538),i=t(64825),a=t(46151),u=t(66902),c=t(99736),s=t(76532),f="[object Map]",l="[object Promise]",p="[object Set]",v="[object WeakMap]",d="[object DataView]",h=s(n),y=s(o),m=s(i),g=s(a),b=s(u),x=c;(n&&x(new n(new ArrayBuffer(1)))!=d||o&&x(new o)!=f||i&&x(i.resolve())!=l||a&&x(new a)!=p||u&&x(new u)!=v)&&(x=function(r){var e=c(r),t="[object Object]"==e?r.constructor:void 0,n=t?s(t):"";if(n)switch(n){case h:return d;case y:return f;case m:return l;case g:return p;case b:return v}return e}),r.exports=x},15371:r=>{r.exports=function(r,e){return null==r?void 0:r[e]}},731:(r,e,t)=>{var n=t(76747),o=t(2900),i=t(19785),a=t(42383),u=t(84194),c=t(37948);r.exports=function(r,e,t){for(var s=-1,f=(e=n(e,r)).length,l=!1;++s<f;){var p=c(e[s]);if(!(l=null!=r&&t(r,p)))break;r=r[p]}return l||++s!=f?l:!!(f=null==r?0:r.length)&&u(f)&&a(p,f)&&(i(r)||o(r))}},57753:(r,e,t)=>{var n=t(35718);r.exports=function(){this.__data__=n?n(null):{},this.size=0}},82452:r=>{r.exports=function(r){var e=this.has(r)&&delete this.__data__[r];return this.size-=e?1:0,e}},22115:(r,e,t)=>{var n=t(35718),o=Object.prototype.hasOwnProperty;r.exports=function(r){var e=this.__data__;if(n){var t=e[r];return"__lodash_hash_undefined__"===t?void 0:t}return o.call(e,r)?e[r]:void 0}},38256:(r,e,t)=>{var n=t(35718),o=Object.prototype.hasOwnProperty;r.exports=function(r){var e=this.__data__;return n?void 0!==e[r]:o.call(e,r)}},67426:(r,e,t)=>{var n=t(35718);r.exports=function(r,e){var t=this.__data__;return this.size+=this.has(r)?0:1,t[r]=n&&void 0===e?"__lodash_hash_undefined__":e,this}},86541:r=>{var e=Object.prototype.hasOwnProperty;r.exports=function(r){var t=r.length,n=new r.constructor(t);return t&&"string"==typeof r[0]&&e.call(r,"index")&&(n.index=r.index,n.input=r.input),n}},2078:(r,e,t)=>{var n=t(95825),o=t(61859),i=t(9377),a=t(45157),u=t(63428);r.exports=function(r,e,t){var c=r.constructor;switch(e){case"[object ArrayBuffer]":return n(r);case"[object Boolean]":case"[object Date]":return new c(+r);case"[object DataView]":return o(r,t);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return u(r,t);case"[object Map]":case"[object Set]":return new c;case"[object Number]":case"[object String]":return new c(r);case"[object RegExp]":return i(r);case"[object Symbol]":return a(r)}}},97635:(r,e,t)=>{var n=t(80158),o=t(2173),i=t(56016);r.exports=function(r){return"function"!=typeof r.constructor||i(r)?{}:n(o(r))}},72889:(r,e,t)=>{var n=t(96539),o=t(2900),i=t(19785),a=n?n.isConcatSpreadable:void 0;r.exports=function(r){return i(r)||o(r)||!!(a&&r&&r[a])}},42383:r=>{var e=/^(?:0|[1-9]\d*)$/;r.exports=function(r,t){var n=typeof r;return!!(t=null==t?9007199254740991:t)&&("number"==n||"symbol"!=n&&e.test(r))&&r>-1&&r%1==0&&r<t}},57535:(r,e,t)=>{var n=t(85638),o=t(80068),i=t(42383),a=t(11611);r.exports=function(r,e,t){if(!a(t))return!1;var u=typeof e;return!!("number"==u?o(t)&&i(e,t.length):"string"==u&&e in t)&&n(t[e],r)}},40318:(r,e,t)=>{var n=t(19785),o=t(55193),i=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,a=/^\w*$/;r.exports=function(r,e){if(n(r))return!1;var t=typeof r;return!("number"!=t&&"symbol"!=t&&"boolean"!=t&&null!=r&&!o(r))||a.test(r)||!i.test(r)||null!=e&&r in Object(e)}},54479:r=>{r.exports=function(r){var e=typeof r;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==r:null===r}},99678:(r,e,t)=>{var n,o=t(64937),i=(n=/[^.]+$/.exec(o&&o.keys&&o.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"";r.exports=function(r){return!!i&&i in r}},56016:r=>{var e=Object.prototype;r.exports=function(r){var t=r&&r.constructor;return r===("function"==typeof t&&t.prototype||e)}},68302:(r,e,t)=>{var n=t(11611);r.exports=function(r){return r==r&&!n(r)}},69417:r=>{r.exports=function(){this.__data__=[],this.size=0}},72470:(r,e,t)=>{var n=t(93382),o=Array.prototype.splice;r.exports=function(r){var e=this.__data__,t=n(e,r);return!(t<0||(t==e.length-1?e.pop():o.call(e,t,1),--this.size,0))}},66165:(r,e,t)=>{var n=t(93382);r.exports=function(r){var e=this.__data__,t=n(e,r);return t<0?void 0:e[t][1]}},71873:(r,e,t)=>{var n=t(93382);r.exports=function(r){return n(this.__data__,r)>-1}},52556:(r,e,t)=>{var n=t(93382);r.exports=function(r,e){var t=this.__data__,o=n(t,r);return o<0?(++this.size,t.push([r,e])):t[o][1]=e,this}},39448:(r,e,t)=>{var n=t(96586),o=t(36301),i=t(44538);r.exports=function(){this.size=0,this.__data__={hash:new n,map:new(i||o),string:new n}}},7738:(r,e,t)=>{var n=t(95899);r.exports=function(r){var e=n(this,r).delete(r);return this.size-=e?1:0,e}},66575:(r,e,t)=>{var n=t(95899);r.exports=function(r){return n(this,r).get(r)}},7238:(r,e,t)=>{var n=t(95899);r.exports=function(r){return n(this,r).has(r)}},38738:(r,e,t)=>{var n=t(95899);r.exports=function(r,e){var t=n(this,r),o=t.size;return t.set(r,e),this.size+=t.size==o?0:1,this}},19383:r=>{r.exports=function(r){var e=-1,t=Array(r.size);return r.forEach((function(r,n){t[++e]=[n,r]})),t}},65042:r=>{r.exports=function(r,e){return function(t){return null!=t&&t[r]===e&&(void 0!==e||r in Object(t))}}},2941:(r,e,t)=>{var n=t(16651);r.exports=function(r){var e=n(r,(function(r){return 500===t.size&&t.clear(),r})),t=e.cache;return e}},35718:(r,e,t)=>{var n=t(81822)(Object,"create");r.exports=n},50962:(r,e,t)=>{var n=t(58023)(Object.keys,Object);r.exports=n},21586:r=>{r.exports=function(r){var e=[];if(null!=r)for(var t in Object(r))e.push(t);return e}},18125:(r,e,t)=>{r=t.nmd(r);var n=t(39120),o=e&&!e.nodeType&&e,i=o&&r&&!r.nodeType&&r,a=i&&i.exports===o&&n.process,u=function(){try{return i&&i.require&&i.require("util").types||a&&a.binding&&a.binding("util")}catch(r){}}();r.exports=u},21258:r=>{var e=Object.prototype.toString;r.exports=function(r){return e.call(r)}},58023:r=>{r.exports=function(r,e){return function(t){return r(e(t))}}},11871:(r,e,t)=>{var n=t(79349),o=Math.max;r.exports=function(r,e,t){return e=o(void 0===e?r.length-1:e,0),function(){for(var i=arguments,a=-1,u=o(i.length-e,0),c=Array(u);++a<u;)c[a]=i[e+a];a=-1;for(var s=Array(e+1);++a<e;)s[a]=i[a];return s[e]=t(c),n(r,this,s)}}},77400:(r,e,t)=>{var n=t(39120),o="object"==typeof self&&self&&self.Object===Object&&self,i=n||o||Function("return this")();r.exports=i},97494:r=>{r.exports=function(r,e){if(("constructor"!==e||"function"!=typeof r[e])&&"__proto__"!=e)return r[e]}},38639:r=>{r.exports=function(r){return this.__data__.set(r,"__lodash_hash_undefined__"),this}},88379:r=>{r.exports=function(r){return this.__data__.has(r)}},43735:r=>{r.exports=function(r){var e=-1,t=Array(r.size);return r.forEach((function(r){t[++e]=r})),t}},63132:(r,e,t)=>{var n=t(54459),o=t(49591)(n);r.exports=o},49591:r=>{var e=Date.now;r.exports=function(r){var t=0,n=0;return function(){var o=e(),i=16-(o-n);if(n=o,i>0){if(++t>=800)return arguments[0]}else t=0;return r.apply(void 0,arguments)}}},7354:(r,e,t)=>{var n=t(36301);r.exports=function(){this.__data__=new n,this.size=0}},5863:r=>{r.exports=function(r){var e=this.__data__,t=e.delete(r);return this.size=e.size,t}},12367:r=>{r.exports=function(r){return this.__data__.get(r)}},90748:r=>{r.exports=function(r){return this.__data__.has(r)}},97569:(r,e,t)=>{var n=t(36301),o=t(44538),i=t(74554);r.exports=function(r,e){var t=this.__data__;if(t instanceof n){var a=t.__data__;if(!o||a.length<199)return a.push([r,e]),this.size=++t.size,this;t=this.__data__=new i(a)}return t.set(r,e),this.size=t.size,this}},58263:r=>{r.exports=function(r,e,t){for(var n=t-1,o=r.length;++n<o;)if(r[n]===e)return n;return-1}},23419:(r,e,t)=>{var n=t(2941),o=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,i=/\\(\\)?/g,a=n((function(r){var e=[];return 46===r.charCodeAt(0)&&e.push(""),r.replace(o,(function(r,t,n,o){e.push(n?o.replace(i,"$1"):t||r)})),e}));r.exports=a},37948:(r,e,t)=>{var n=t(55193);r.exports=function(r){if("string"==typeof r||n(r))return r;var e=r+"";return"0"==e&&1/r==-1/0?"-0":e}},76532:r=>{var e=Function.prototype.toString;r.exports=function(r){if(null!=r){try{return e.call(r)}catch(r){}try{return r+""}catch(r){}}return""}},30454:(r,e,t)=>{var n=t(40699);r.exports=function(r){return n(r,5)}},551:r=>{r.exports=function(r){return function(){return r}}},70236:(r,e,t)=>{var n=t(1197),o=t(85638),i=t(57535),a=t(53893),u=Object.prototype,c=u.hasOwnProperty,s=n((function(r,e){r=Object(r);var t=-1,n=e.length,s=n>2?e[2]:void 0;for(s&&i(e[0],e[1],s)&&(n=1);++t<n;)for(var f=e[t],l=a(f),p=-1,v=l.length;++p<v;){var d=l[p],h=r[d];(void 0===h||o(h,u[d])&&!c.call(r,d))&&(r[d]=f[d])}return r}));r.exports=s},53533:(r,e,t)=>{var n=t(79349),o=t(1197),i=t(19491),a=t(73952),u=o((function(r){return r.push(void 0,i),n(a,void 0,r)}));r.exports=u},85638:r=>{r.exports=function(r,e){return r===e||r!=r&&e!=e}},89754:(r,e,t)=>{var n=t(23545);r.exports=function(r){return null!=r&&r.length?n(r,1):[]}},84812:(r,e,t)=>{var n=t(23545);r.exports=function(r){return null!=r&&r.length?n(r,1/0):[]}},47003:(r,e,t)=>{var n=t(80594),o=t(52033),i=t(62079),a=t(19785);r.exports=function(r,e){return(a(r)?n:o)(r,i(e))}},99729:(r,e,t)=>{var n=t(79867);r.exports=function(r,e,t){var o=null==r?void 0:n(r,e);return void 0===o?t:o}},79749:(r,e,t)=>{var n=t(21610),o=t(731);r.exports=function(r,e){return null!=r&&o(r,e,n)}},31137:r=>{r.exports=function(r){return r}},27921:(r,e,t)=>{var n=t(66070),o=t(96638),i=t(1197),a=t(60923),u=i((function(r){var e=n(r,a);return e.length&&e[0]===r[0]?o(e):[]}));r.exports=u},28054:(r,e,t)=>{var n=t(66070),o=t(96638),i=t(1197),a=t(60923),u=t(31159),c=i((function(r){var e=u(r),t=n(r,a);return(e="function"==typeof e?e:void 0)&&t.pop(),t.length&&t[0]===r[0]?o(t,void 0,e):[]}));r.exports=c},2900:(r,e,t)=>{var n=t(55829),o=t(92360),i=Object.prototype,a=i.hasOwnProperty,u=i.propertyIsEnumerable,c=n(function(){return arguments}())?n:function(r){return o(r)&&a.call(r,"callee")&&!u.call(r,"callee")};r.exports=c},19785:r=>{var e=Array.isArray;r.exports=e},80068:(r,e,t)=>{var n=t(28338),o=t(84194);r.exports=function(r){return null!=r&&o(r.length)&&!n(r)}},36468:(r,e,t)=>{var n=t(80068),o=t(92360);r.exports=function(r){return o(r)&&n(r)}},3819:(r,e,t)=>{var n=t(99736),o=t(92360);r.exports=function(r){return!0===r||!1===r||o(r)&&"[object Boolean]"==n(r)}},43854:(r,e,t)=>{r=t.nmd(r);var n=t(77400),o=t(57714),i=e&&!e.nodeType&&e,a=i&&r&&!r.nodeType&&r,u=a&&a.exports===i?n.Buffer:void 0,c=(u?u.isBuffer:void 0)||o;r.exports=c},56141:(r,e,t)=>{var n=t(32866);r.exports=function(r,e){return n(r,e)}},28338:(r,e,t)=>{var n=t(99736),o=t(11611);r.exports=function(r){if(!o(r))return!1;var e=n(r);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e}},84194:r=>{r.exports=function(r){return"number"==typeof r&&r>-1&&r%1==0&&r<=9007199254740991}},98247:(r,e,t)=>{var n=t(57657),o=t(39334),i=t(18125),a=i&&i.isMap,u=a?o(a):n;r.exports=u},11611:r=>{r.exports=function(r){var e=typeof r;return null!=r&&("object"==e||"function"==e)}},92360:r=>{r.exports=function(r){return null!=r&&"object"==typeof r}},40861:(r,e,t)=>{var n=t(99736),o=t(2173),i=t(92360),a=Function.prototype,u=Object.prototype,c=a.toString,s=u.hasOwnProperty,f=c.call(Object);r.exports=function(r){if(!i(r)||"[object Object]"!=n(r))return!1;var e=o(r);if(null===e)return!0;var t=s.call(e,"constructor")&&e.constructor;return"function"==typeof t&&t instanceof t&&c.call(t)==f}},47614:(r,e,t)=>{var n=t(26903),o=t(39334),i=t(18125),a=i&&i.isSet,u=a?o(a):n;r.exports=u},55193:(r,e,t)=>{var n=t(99736),o=t(92360);r.exports=function(r){return"symbol"==typeof r||o(r)&&"[object Symbol]"==n(r)}},48519:(r,e,t)=>{var n=t(26972),o=t(39334),i=t(18125),a=i&&i.isTypedArray,u=a?o(a):n;r.exports=u},50098:(r,e,t)=>{var n=t(98213),o=t(20186),i=t(80068);r.exports=function(r){return i(r)?n(r):o(r)}},53893:(r,e,t)=>{var n=t(98213),o=t(59464),i=t(80068);r.exports=function(r){return i(r)?n(r,!0):o(r)}},31159:r=>{r.exports=function(r){var e=null==r?0:r.length;return e?r[e-1]:void 0}},16651:(r,e,t)=>{var n=t(74554);function o(r,e){if("function"!=typeof r||null!=e&&"function"!=typeof e)throw new TypeError("Expected a function");var t=function(){var n=arguments,o=e?e.apply(this,n):n[0],i=t.cache;if(i.has(o))return i.get(o);var a=r.apply(this,n);return t.cache=i.set(o,a)||i,a};return t.cache=new(o.Cache||n),t}o.Cache=n,r.exports=o},73952:(r,e,t)=>{var n=t(40015),o=t(7270)((function(r,e,t,o){n(r,e,t,o)}));r.exports=o},50344:r=>{r.exports=function(){}},96001:(r,e,t)=>{var n=t(50517),o=t(10301),i=t(40318),a=t(37948);r.exports=function(r){return i(r)?n(a(r)):o(r)}},90254:(r,e,t)=>{var n=t(61933);r.exports=function(r,e){return r&&r.length&&e&&e.length?n(r,e):r}},95099:(r,e,t)=>{var n=t(23545),o=t(98497),i=t(1197),a=t(57535),u=i((function(r,e){if(null==r)return[];var t=e.length;return t>1&&a(r,e[0],e[1])?e=[]:t>2&&a(e[0],e[1],e[2])&&(e=[e[0]]),o(r,n(e,1),[])}));r.exports=u},15937:r=>{r.exports=function(){return[]}},57714:r=>{r.exports=function(){return!1}},89328:(r,e,t)=>{var n=t(35159),o=t(53893);r.exports=function(r){return n(r,o(r))}},65567:(r,e,t)=>{var n=t(34282);r.exports=function(r){return null==r?"":n(r)}},83766:(r,e,t)=>{var n=t(92198);r.exports=function(r){return r&&r.length?n(r):[]}},52929:(r,e,t)=>{var n=t(92198);r.exports=function(r,e){return e="function"==typeof e?e:void 0,r&&r.length?n(r,void 0,e):[]}},81889:(r,e,t)=>{var n=t(11005),o=t(1197),i=t(36468),a=o((function(r,e){return i(r)?n(r,e):[]}));r.exports=a},58702:(r,e)=>{"use strict";var t,n=Symbol.for("react.element"),o=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),a=Symbol.for("react.strict_mode"),u=Symbol.for("react.profiler"),c=Symbol.for("react.provider"),s=Symbol.for("react.context"),f=Symbol.for("react.server_context"),l=Symbol.for("react.forward_ref"),p=Symbol.for("react.suspense"),v=Symbol.for("react.suspense_list"),d=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),y=Symbol.for("react.offscreen");function m(r){if("object"==typeof r&&null!==r){var e=r.$$typeof;switch(e){case n:switch(r=r.type){case i:case u:case a:case p:case v:return r;default:switch(r=r&&r.$$typeof){case f:case s:case l:case h:case d:case c:return r;default:return e}}case o:return e}}}t=Symbol.for("react.module.reference"),e.ContextConsumer=s,e.ContextProvider=c,e.Element=n,e.ForwardRef=l,e.Fragment=i,e.Lazy=h,e.Memo=d,e.Portal=o,e.Profiler=u,e.StrictMode=a,e.Suspense=p,e.SuspenseList=v,e.isAsyncMode=function(){return!1},e.isConcurrentMode=function(){return!1},e.isContextConsumer=function(r){return m(r)===s},e.isContextProvider=function(r){return m(r)===c},e.isElement=function(r){return"object"==typeof r&&null!==r&&r.$$typeof===n},e.isForwardRef=function(r){return m(r)===l},e.isFragment=function(r){return m(r)===i},e.isLazy=function(r){return m(r)===h},e.isMemo=function(r){return m(r)===d},e.isPortal=function(r){return m(r)===o},e.isProfiler=function(r){return m(r)===u},e.isStrictMode=function(r){return m(r)===a},e.isSuspense=function(r){return m(r)===p},e.isSuspenseList=function(r){return m(r)===v},e.isValidElementType=function(r){return"string"==typeof r||"function"==typeof r||r===i||r===u||r===a||r===p||r===v||r===y||"object"==typeof r&&null!==r&&(r.$$typeof===h||r.$$typeof===d||r.$$typeof===c||r.$$typeof===s||r.$$typeof===l||r.$$typeof===t||void 0!==r.getModuleId)},e.typeOf=m},19185:(r,e,t)=>{"use strict";r.exports=t(58702)},17604:r=>{"use strict";r.exports=Array.isArray||function(r){return"[object Array]"===Object.prototype.toString.call(r)}},86401:r=>{"use strict";r.exports=function(r){return"function"==typeof r}},9333:(r,e,t)=>{"use strict";var n=t(17604),o=t(50459);r.exports=function(r){var e;if(!n(r))return!1;if(!(e=r.length))return!1;for(var t=0;t<e;t++)if(!o(r[t]))return!1;return!0}},50459:(r,e,t)=>{"use strict";var n=t(7365);r.exports=function(r){return n(r)&&r%1==0}},7365:r=>{"use strict";r.exports=function(r){return("number"==typeof r||"[object Number]"===Object.prototype.toString.call(r))&&r.valueOf()==r.valueOf()}}}]);
@@ -1,9 +0,0 @@
1
- /**
2
- * @license React
3
- * react-is.production.min.js
4
- *
5
- * Copyright (c) Facebook, Inc. and its affiliates.
6
- *
7
- * This source code is licensed under the MIT license found in the
8
- * LICENSE file in the root directory of this source tree.
9
- */