@datalayer/agent-runtimes 1.5.65 → 1.5.70
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-embed/chunks/{AgentDetails-RIFH8RAg.js → AgentDetails-BriiIXid.js} +1 -1
- package/dist-embed/chunks/{AgentDetailsDialog-CK7jVPSc.js → AgentDetailsDialog-Bh3yhb7O.js} +1 -1
- package/dist-embed/chunks/{AgentInspector-DwZk4yjT.js → AgentInspector-Dd-G3TvL.js} +1 -1
- package/dist-embed/chunks/{AgentInspectorDialog-Ct12Hqc-.js → AgentInspectorDialog-CQEiBqOl.js} +1 -1
- package/dist-embed/chunks/{CellSidebarExtension-CbVVhhaO.js → CellSidebarExtension-DbbW8AJP.js} +1 -1
- package/dist-embed/chunks/ChatView-LzqHHAEe.js +32 -0
- package/dist-embed/chunks/{ContextPie-DLR5REbp.js → ContextPie-I90j658q.js} +1 -1
- package/dist-embed/chunks/{DeckComponent-C_ZaO_iF.js → DeckComponent-DAnUabRV.js} +2 -2
- package/dist-embed/chunks/{DocumentView-DP-dxfpu.js → DocumentView-BKFitqiB.js} +1 -1
- package/dist-embed/chunks/{EphemeralDocument-D3rfKBME.js → EphemeralDocument-BRzYMd8Z.js} +1 -1
- package/dist-embed/chunks/{EphemeralNotebook-Dn3ku5jr.js → EphemeralNotebook-COnqhW7Q.js} +1 -1
- package/dist-embed/chunks/{ExcalidrawComponent-B7I0SoHM.js → ExcalidrawComponent-VnKcai35.js} +1 -1
- package/dist-embed/chunks/{ExcalidrawModal-B2VIt9DT.js → ExcalidrawModal-DrntFjbe.js} +1 -1
- package/dist-embed/chunks/{JupyterLexicalExtension-LpJ6Rj9h.js → JupyterLexicalExtension-BBivQZvX.js} +9 -9
- package/dist-embed/chunks/{KernelVariables-ZFnygJ4R.js → KernelVariables-CNEfUsyt.js} +1 -1
- package/dist-embed/chunks/{LexicalToolRegistry-BRMKFkxC.js → LexicalToolRegistry-B8ccPURu.js} +4 -4
- package/dist-embed/chunks/{NotebookToolSurfaces-Dz_cxy8L.js → NotebookToolSurfaces-B8Rmjy_m.js} +1 -1
- package/dist-embed/chunks/{NotebookView-DG-pAyOq.js → NotebookView-BDChKuA9.js} +1 -1
- package/dist-embed/chunks/{Output-Cnq5i-bK.js → Output-CEoYDjwn.js} +1 -1
- package/dist-embed/chunks/{SandboxDetailsDialog-BzGdQmTQ.js → SandboxDetailsDialog-DuavSJSL.js} +1 -1
- package/dist-embed/chunks/SchemaForm-C6wDxDrg.js +1 -0
- package/dist-embed/chunks/{WidgetVariableView-kRHeKnmD.js → WidgetVariableView-Tm5SSEKf.js} +1 -1
- package/dist-embed/chunks/{YouTubePlugin-ChwsOfjj.js → YouTubePlugin-C209681s.js} +1 -1
- package/dist-embed/chunks/{abnfDiagram-VCTEODGH-sr3TJAkV.js → abnfDiagram-VCTEODGH-CsKFU4Ej.js} +1 -1
- package/dist-embed/chunks/{abnfDiagram-VCTEODGH-Byz1QYm8.js → abnfDiagram-VCTEODGH-m7LJLYga.js} +1 -1
- package/dist-embed/chunks/{ar-SA-G6X2FPQ2-D1OmbW2u.js → ar-SA-G6X2FPQ2-Dypu3IcK.js} +1 -1
- package/dist-embed/chunks/{architectureDiagram-5GKGNRK7-B7rDWQh9.js → architectureDiagram-5GKGNRK7-C22xzf-o.js} +1 -1
- package/dist-embed/chunks/{architectureDiagram-5GKGNRK7-DOxpBf54.js → architectureDiagram-5GKGNRK7-iDgRBR0a.js} +1 -1
- package/dist-embed/chunks/{az-AZ-76LH7QW2-CmSoFd5x.js → az-AZ-76LH7QW2-D8CzfKb1.js} +1 -1
- package/dist-embed/chunks/{bg-BG-XCXSNQG7-D7b2U9I0.js → bg-BG-XCXSNQG7-_NVFEM1_.js} +1 -1
- package/dist-embed/chunks/{blockDiagram-868be97b-CKmWpImQ.js → blockDiagram-868be97b-D3BurtSN.js} +1 -1
- package/dist-embed/chunks/{blockDiagram-I7D4REHJ-_fDDlpCe.js → blockDiagram-I7D4REHJ-CHicgYkf.js} +1 -1
- package/dist-embed/chunks/{blockDiagram-I7D4REHJ-bzZkd0c3.js → blockDiagram-I7D4REHJ-oDRNhSU2.js} +1 -1
- package/dist-embed/chunks/{bn-BD-2XOGV67Q-CG3iRJ8B.js → bn-BD-2XOGV67Q-DMgdNi-k.js} +1 -1
- package/dist-embed/chunks/{c4Diagram-3f4bdde3-zvlk6Xm2.js → c4Diagram-3f4bdde3-Dmbl9p6m.js} +1 -1
- package/dist-embed/chunks/{c4Diagram-7LVT6UL2-NpmtOeoK.js → c4Diagram-7LVT6UL2-CR3iQQ6O.js} +1 -1
- package/dist-embed/chunks/{c4Diagram-7LVT6UL2-vHp7kFMG.js → c4Diagram-7LVT6UL2-auJZQjpw.js} +1 -1
- package/dist-embed/chunks/{ca-ES-6MX7JW3Y-BW4zf4cd.js → ca-ES-6MX7JW3Y-DpOQhzr4.js} +1 -1
- package/dist-embed/chunks/{celltoolbartracker-DDVXLR_l.js → celltoolbartracker-DCR86wxV.js} +1 -1
- package/dist-embed/chunks/{chunk-2Q5K7J3B-Blqxrfai.js → chunk-2Q5K7J3B-DpFWUcsT.js} +1 -1
- package/dist-embed/chunks/{chunk-2Q5K7J3B-D26LTlFj.js → chunk-2Q5K7J3B-H_DA_jTG.js} +1 -1
- package/dist-embed/chunks/{chunk-5VM5RSS4-CdbSD_M8.js → chunk-5VM5RSS4-BhWUyelG.js} +1 -1
- package/dist-embed/chunks/{chunk-5VM5RSS4-BcO1XpWr.js → chunk-5VM5RSS4-CaowF8Al.js} +1 -1
- package/dist-embed/chunks/{chunk-F27PBJKO-BQ-ZIw-1.js → chunk-F27PBJKO-B9wgW70d.js} +1 -1
- package/dist-embed/chunks/{chunk-F27PBJKO-BRe2RwsD.js → chunk-F27PBJKO-D7PuEggc.js} +1 -1
- package/dist-embed/chunks/{chunk-IMKFNOWR-D-RO-dCd.js → chunk-IMKFNOWR-DhXkXQPV.js} +1 -1
- package/dist-embed/chunks/{chunk-IMKFNOWR-CLFrksv5.js → chunk-IMKFNOWR-jZNuNkCa.js} +1 -1
- package/dist-embed/chunks/{chunk-JWPE2WC7-wyMu098x.js → chunk-JWPE2WC7-BIShIUcJ.js} +1 -1
- package/dist-embed/chunks/{chunk-JWPE2WC7-DbtWvNSt.js → chunk-JWPE2WC7-DaBG37yC.js} +1 -1
- package/dist-embed/chunks/{chunk-POPQ4Y6H-OgpU0qcq.js → chunk-POPQ4Y6H-DG5Q2OKT.js} +1 -1
- package/dist-embed/chunks/{chunk-POPQ4Y6H-lwXXWwpD.js → chunk-POPQ4Y6H-WjTzJISs.js} +1 -1
- package/dist-embed/chunks/{chunk-SVP7TREG-CtOO_gz8.js → chunk-SVP7TREG-ERRaAh-x.js} +1 -1
- package/dist-embed/chunks/{chunk-SVP7TREG-C1pZJEUL.js → chunk-SVP7TREG-bq0J6tH_.js} +1 -1
- package/dist-embed/chunks/{chunk-TICWLB2K-BUeW_P5i.js → chunk-TICWLB2K-B91fA6Jd.js} +1 -1
- package/dist-embed/chunks/{chunk-TICWLB2K-B2id4fS-.js → chunk-TICWLB2K-BV_9f6ak.js} +1 -1
- package/dist-embed/chunks/{chunk-XXDRQBXY-6emV99Se.js → chunk-XXDRQBXY-BAy0lBJk.js} +1 -1
- package/dist-embed/chunks/{chunk-XXDRQBXY-DASCZDLb.js → chunk-XXDRQBXY-fV8doVJJ.js} +1 -1
- package/dist-embed/chunks/{classDiagram-ZZMXUADV-BUcYJSYu.js → classDiagram-ZZMXUADV-B0pbDswj.js} +1 -1
- package/dist-embed/chunks/{classDiagram-ZZMXUADV-DXK_VS6x.js → classDiagram-ZZMXUADV-CGdcKCOI.js} +1 -1
- package/dist-embed/chunks/{classDiagram-f62afe4f-D_XtspOB.js → classDiagram-f62afe4f-tD890DEl.js} +1 -1
- package/dist-embed/chunks/{classDiagram-v2-604399ef-DmVGURP4.js → classDiagram-v2-604399ef-DReIuoeI.js} +1 -1
- package/dist-embed/chunks/{classDiagram-v2-VYDZK3BY-BUcYJSYu.js → classDiagram-v2-VYDZK3BY-B0pbDswj.js} +1 -1
- package/dist-embed/chunks/{classDiagram-v2-VYDZK3BY-DXK_VS6x.js → classDiagram-v2-VYDZK3BY-CGdcKCOI.js} +1 -1
- package/dist-embed/chunks/{code-block-IT6T5CEO-CLFy43wi.js → code-block-IT6T5CEO-DD7hwbHA.js} +1 -1
- package/dist-embed/chunks/{component-BABP_IeE.js → component-BWDcVpKW.js} +1 -1
- package/dist-embed/chunks/{cose-bilkent-JH36ORCC-DkllT3uc.js → cose-bilkent-JH36ORCC-BS_pJML-.js} +1 -1
- package/dist-embed/chunks/{cose-bilkent-JH36ORCC-zloY56Dd.js → cose-bilkent-JH36ORCC-BsK2pWDL.js} +1 -1
- package/dist-embed/chunks/{createText-aed3d8b3-B_AmUgWn.js → createText-aed3d8b3-1eVJ8jxH.js} +2 -2
- package/dist-embed/chunks/{cs-CZ-2BRQDIVT-DzWWfN4P.js → cs-CZ-2BRQDIVT-Fr-SpqHD.js} +1 -1
- package/dist-embed/chunks/{cynefinDiagram-5FMLGOSQ-CT11o-tV.js → cynefinDiagram-5FMLGOSQ-AxJwZ7KT.js} +1 -1
- package/dist-embed/chunks/{cynefinDiagram-5FMLGOSQ-Benlx8nr.js → cynefinDiagram-5FMLGOSQ-vmheD_S2.js} +1 -1
- package/dist-embed/chunks/{da-DK-5WZEPLOC-CaeirLFF.js → da-DK-5WZEPLOC-DO_sAXvt.js} +1 -1
- package/dist-embed/chunks/{dagre-GXQ25YYZ-B2PPWFKB.js → dagre-GXQ25YYZ-B8Ip03td.js} +1 -1
- package/dist-embed/chunks/{dagre-GXQ25YYZ-qys4evHY.js → dagre-GXQ25YYZ-BgrGEY09.js} +1 -1
- package/dist-embed/chunks/{de-DE-XR44H4JA-DBkebtzo.js → de-DE-XR44H4JA-4JnXB_iM.js} +1 -1
- package/dist-embed/chunks/{diagram-S7CK7UJ4-C1EHbNes.js → diagram-S7CK7UJ4-BxRBCYVP.js} +1 -1
- package/dist-embed/chunks/{diagram-S7CK7UJ4-CBkf-BrM.js → diagram-S7CK7UJ4-hQvZziAN.js} +1 -1
- package/dist-embed/chunks/{diagram-UQ7AKVKN-CKsxaZCe.js → diagram-UQ7AKVKN-BFkOO3Wu.js} +1 -1
- package/dist-embed/chunks/{diagram-UQ7AKVKN-C9zuKZ5Y.js → diagram-UQ7AKVKN-BvgP6_rf.js} +1 -1
- package/dist-embed/chunks/{diagram-VSXAHHWV-Cd8pBAf-.js → diagram-VSXAHHWV-Cy8iWh4H.js} +1 -1
- package/dist-embed/chunks/{diagram-VSXAHHWV-Dd_PlC0S.js → diagram-VSXAHHWV-WVuzjdxU.js} +1 -1
- package/dist-embed/chunks/{diagram-VX7I27RA-DZTLEsKe.js → diagram-VX7I27RA-CCx8R8FK.js} +1 -1
- package/dist-embed/chunks/{diagram-VX7I27RA-D5qf5Kw-.js → diagram-VX7I27RA-_LUOsaBb.js} +1 -1
- package/dist-embed/chunks/{diagram-Z3DM3KII-DlsBShb0.js → diagram-Z3DM3KII-CY856Sry.js} +1 -1
- package/dist-embed/chunks/{diagram-Z3DM3KII-B2zosfsY.js → diagram-Z3DM3KII-Dqcrl8-1.js} +1 -1
- package/dist-embed/chunks/{ebnfDiagram-PWID7BFC-VhBXkHc8.js → ebnfDiagram-PWID7BFC-DC-Zam6d.js} +1 -1
- package/dist-embed/chunks/{ebnfDiagram-PWID7BFC-sUXnKXhD.js → ebnfDiagram-PWID7BFC-kqD9RLAA.js} +1 -1
- package/dist-embed/chunks/{edges-b2856ca0-cYsFYCgh.js → edges-b2856ca0-B3ybuHDU.js} +1 -1
- package/dist-embed/chunks/{el-GR-BZB4AONW-DkmsSwGL.js → el-GR-BZB4AONW-MydAlwHl.js} +1 -1
- package/dist-embed/chunks/{erDiagram-5d81789a-DHzqp69u.js → erDiagram-5d81789a-HZ-VLc2f.js} +1 -1
- package/dist-embed/chunks/{erDiagram-RLTQ6QDP-DPzcAUZq.js → erDiagram-RLTQ6QDP-CNO4pVhU.js} +1 -1
- package/dist-embed/chunks/{erDiagram-RLTQ6QDP-BRf7HEXF.js → erDiagram-RLTQ6QDP-zwXEFcAp.js} +1 -1
- package/dist-embed/chunks/{es-ES-U4NZUMDT-Dvnvh6dW.js → es-ES-U4NZUMDT-rQmnr_uu.js} +1 -1
- package/dist-embed/chunks/{eu-ES-A7QVB2H4-DYX6hpyz.js → eu-ES-A7QVB2H4-j5Hf8ngk.js} +1 -1
- package/dist-embed/chunks/{fa-IR-HGAKTJCU-Dmlm1ZjK.js → fa-IR-HGAKTJCU-DMJRRSBp.js} +1 -1
- package/dist-embed/chunks/{fi-FI-Z5N7JZ37-2ov9-9H3.js → fi-FI-Z5N7JZ37-BFLC0BFd.js} +1 -1
- package/dist-embed/chunks/{flowDb-185abca5-vnPYmNxZ.js → flowDb-185abca5-7Nn2obHG.js} +1 -1
- package/dist-embed/chunks/{flowDiagram-1629c991-D_P7IhnT.js → flowDiagram-1629c991-CnvM_psw.js} +1 -1
- package/dist-embed/chunks/{flowDiagram-HODETNUW-BUuZtbKx.js → flowDiagram-HODETNUW-BrbR1EkW.js} +1 -1
- package/dist-embed/chunks/{flowDiagram-HODETNUW-Dqms2kHK.js → flowDiagram-HODETNUW-Bsl5oOFb.js} +1 -1
- package/dist-embed/chunks/{flowDiagram-v2-1d953310-jyYNkbVD.js → flowDiagram-v2-1d953310-TkF25UVC.js} +1 -1
- package/dist-embed/chunks/{flowchart-elk-definition-6df44142-CkUTQpED.js → flowchart-elk-definition-6df44142-CwiGfEuJ.js} +1 -1
- package/dist-embed/chunks/{fr-FR-RHASNOE6-BUlHGdL2.js → fr-FR-RHASNOE6-CxjhSJC1.js} +1 -1
- package/dist-embed/chunks/{ganttDiagram-3b0b3873-CDk8PUcC.js → ganttDiagram-3b0b3873-DeouFDZE.js} +1 -1
- package/dist-embed/chunks/{ganttDiagram-EL5Y4UJY-D4fzILsk.js → ganttDiagram-EL5Y4UJY-BeK3rGHM.js} +1 -1
- package/dist-embed/chunks/{ganttDiagram-EL5Y4UJY-Tsk8dNyJ.js → ganttDiagram-EL5Y4UJY-DfJDZVnm.js} +1 -1
- package/dist-embed/chunks/{gitGraphDiagram-WWUBYQGX-DSJR8KGU.js → gitGraphDiagram-WWUBYQGX-BujqTwbf.js} +1 -1
- package/dist-embed/chunks/{gitGraphDiagram-WWUBYQGX-XOpfU7hY.js → gitGraphDiagram-WWUBYQGX-DkYi8eWr.js} +1 -1
- package/dist-embed/chunks/{gitGraphDiagram-f01e8bc2-C7QWh6IZ.js → gitGraphDiagram-f01e8bc2-mCCRVzIs.js} +1 -1
- package/dist-embed/chunks/{gl-ES-HMX3MZ6V-T3hKsmlm.js → gl-ES-HMX3MZ6V-BuuMpTaX.js} +1 -1
- package/dist-embed/chunks/{he-IL-6SHJWFNN-DoePgaFj.js → he-IL-6SHJWFNN-Cv3Nrcgu.js} +1 -1
- package/dist-embed/chunks/{hi-IN-IWLTKZ5I-B_E7TPlk.js → hi-IN-IWLTKZ5I-Sddst60F.js} +1 -1
- package/dist-embed/chunks/{hu-HU-A5ZG7DT2-Bu8X3BrR.js → hu-HU-A5ZG7DT2-ehrXVpD0.js} +1 -1
- package/dist-embed/chunks/{id-ID-SAP4L64H-jOs7pgj2.js → id-ID-SAP4L64H-Gfb1UYxZ.js} +1 -1
- package/dist-embed/chunks/{index-JF61_zqs.js → index-5NOGMVjz.js} +1 -1
- package/dist-embed/chunks/{index-BzgczmKp.js → index-6zxVHKca.js} +10 -10
- package/dist-embed/chunks/{index-9bae90f3-BywpAnlj.js → index-9bae90f3-CzUk5Hhq.js} +1 -1
- package/dist-embed/chunks/{index-DvHqo_Qj.js → index-AHAhJxOc.js} +1 -1
- package/dist-embed/chunks/{index-7hNcqUR-.js → index-B9Ya6z2n.js} +1 -1
- package/dist-embed/chunks/{index-BwyZ8O-M.js → index-BOEhatkt.js} +1 -1
- package/dist-embed/chunks/{index-BYo3uv0g.js → index-BOGJMsUN.js} +2 -2
- package/dist-embed/chunks/{index-Bmo-OFNb.js → index-BaBNw6X5.js} +4 -4
- package/dist-embed/chunks/{index-BR58wzgU.js → index-BfvZMC2B.js} +1 -1
- package/dist-embed/chunks/{index-DnqWNX5L.js → index-BiuABva5.js} +1 -1
- package/dist-embed/chunks/{index-0m4vhMAR.js → index-BjfpYq_l.js} +1 -1
- package/dist-embed/chunks/{index-BI_0cBab.js → index-BuXVVl_h.js} +7 -7
- package/dist-embed/chunks/{index-fBSCurWE.js → index-By5Ku2wm.js} +4 -4
- package/dist-embed/chunks/{index-Bw1BRX9C.js → index-CNpJ8Y2y.js} +1 -1
- package/dist-embed/chunks/{index-zrM_sbHt.js → index-Cw1r0WFc.js} +1 -1
- package/dist-embed/chunks/{index-CS3mm6qN.js → index-D8x0MQWQ.js} +1 -1
- package/dist-embed/chunks/{index-BqpOM6Mx.js → index-DDnf06e_.js} +1 -1
- package/dist-embed/chunks/{index-B3fpdUTu.js → index-DGefzKhT.js} +1 -1
- package/dist-embed/chunks/{index-CgCcVxV_.js → index-DN6Cori6.js} +1 -1
- package/dist-embed/chunks/{index-_z7rhr9l.js → index-DQ-v6JVz.js} +4 -4
- package/dist-embed/chunks/{index-C2JsK59r.js → index-DTYZzbES.js} +1 -1
- package/dist-embed/chunks/{index-MfJ2dN-o.js → index-DWkIO3YS.js} +1 -1
- package/dist-embed/chunks/{index-CL2J1VY_.js → index-DZwyICkp.js} +1 -1
- package/dist-embed/chunks/{index-CoVJiT-h.js → index-D_vehxcD.js} +1 -1
- package/dist-embed/chunks/{index-wqOJuJys.js → index-DiTcTB7Y.js} +1 -1
- package/dist-embed/chunks/{index-COPak822.js → index-DmpLE1d4.js} +1 -1
- package/dist-embed/chunks/{index-Ca5wn1F-.js → index-Do4nOAaR.js} +1 -1
- package/dist-embed/chunks/{index-DBRbrQr1.js → index-DobaF_Ee.js} +1 -1
- package/dist-embed/chunks/{index-BfuxhQsr.js → index-DvwQdrde.js} +1 -1
- package/dist-embed/chunks/{index-KC9furSU.js → index-DzMYyq8T.js} +1 -1
- package/dist-embed/chunks/{index-Cz0vwY93.js → index-QHmZQlKN.js} +6 -6
- package/dist-embed/chunks/{index-C00mEIpi.js → index-hxIHgkzg.js} +1 -1
- package/dist-embed/chunks/{index-B27olYsx.js → index-nMwnYxTd.js} +1 -1
- package/dist-embed/chunks/{index-NvC9D0Mh.js → index-umwkqggg.js} +1 -1
- package/dist-embed/chunks/{index-3JfFVSno.js → index-yMppJWrQ.js} +1 -1
- package/dist-embed/chunks/{index.esm-BbIi4n-Y.js → index.esm-CC457Cyg.js} +1 -1
- package/dist-embed/chunks/{index.esm-ePira_es.js → index.esm-DFDbLGof.js} +1 -1
- package/dist-embed/chunks/{infoDiagram-27XIBGKW-CvSw0Uqm.js → infoDiagram-27XIBGKW-C18Zz25F.js} +1 -1
- package/dist-embed/chunks/{infoDiagram-27XIBGKW-BagqSEKB.js → infoDiagram-27XIBGKW-DiC5_yjB.js} +1 -1
- package/dist-embed/chunks/{infoDiagram-a29d40f1-CY6P-RB2.js → infoDiagram-a29d40f1-DRVyx4Bf.js} +1 -1
- package/dist-embed/chunks/{ishikawaDiagram-5VMMS53U-CJjl4-N0.js → ishikawaDiagram-5VMMS53U-3WGbru46.js} +1 -1
- package/dist-embed/chunks/{ishikawaDiagram-5VMMS53U-DQfqd5pn.js → ishikawaDiagram-5VMMS53U-DrEzfSK9.js} +1 -1
- package/dist-embed/chunks/{it-IT-JPQ66NNP-CrGtxCjf.js → it-IT-JPQ66NNP-BehLHkar.js} +1 -1
- package/dist-embed/chunks/{ja-JP-DBVTYXUO-MhHoMhnM.js → ja-JP-DBVTYXUO-BZvqIigI.js} +1 -1
- package/dist-embed/chunks/{journeyDiagram-3NMN7TZE-B186toLf.js → journeyDiagram-3NMN7TZE-BZWmkUfk.js} +1 -1
- package/dist-embed/chunks/{journeyDiagram-3NMN7TZE-fMuL5yIV.js → journeyDiagram-3NMN7TZE-DpWKIFIN.js} +1 -1
- package/dist-embed/chunks/{journeyDiagram-95396277-Bt2VFr_f.js → journeyDiagram-95396277-D_QLiVq4.js} +1 -1
- package/dist-embed/chunks/{kaa-6HZHGXH3-otexWzw0.js → kaa-6HZHGXH3-DgAIF6rN.js} +1 -1
- package/dist-embed/chunks/{kab-KAB-ZGHBKWFO-Bk_pPM_n.js → kab-KAB-ZGHBKWFO-DW4thPSJ.js} +1 -1
- package/dist-embed/chunks/{kanban-definition-UXKFOSKX-tkyZOsyz.js → kanban-definition-UXKFOSKX-B84ZaZEy.js} +1 -1
- package/dist-embed/chunks/{kanban-definition-UXKFOSKX-DyX3lLGq.js → kanban-definition-UXKFOSKX-DxbTprYr.js} +1 -1
- package/dist-embed/chunks/{kk-KZ-P5N5QNE5-DuPx0Ivn.js → kk-KZ-P5N5QNE5-CCy_nSJ7.js} +1 -1
- package/dist-embed/chunks/{km-KH-HSX4SM5Z-DfW3Tv6Q.js → km-KH-HSX4SM5Z-kpXyoxjS.js} +1 -1
- package/dist-embed/chunks/{ko-KR-MTYHY66A-CWeM03UD.js → ko-KR-MTYHY66A-CFm6WtQG.js} +1 -1
- package/dist-embed/chunks/{ku-TR-6OUDTVRD-BpZVGVBG.js → ku-TR-6OUDTVRD-CKF85mOv.js} +1 -1
- package/dist-embed/chunks/{layout-i1FLEqsi.js → layout-DYytgC9r.js} +1 -1
- package/dist-embed/chunks/{layout-P_H-0ax9.js → layout-Dx5Hzkor.js} +1 -1
- package/dist-embed/chunks/{lexicalHooks-BjTCfdUi.js → lexicalHooks-DbTGOMyq.js} +1 -1
- package/dist-embed/chunks/{lt-LT-XHIRWOB4-LavcVuZR.js → lt-LT-XHIRWOB4-CO9Bo5qJ.js} +1 -1
- package/dist-embed/chunks/{lv-LV-5QDEKY6T-DWoheFP4.js → lv-LV-5QDEKY6T-CvZszc5p.js} +1 -1
- package/dist-embed/chunks/{mermaid.core-Cltl6__q.js → mermaid.core-D0955PCw.js} +5 -5
- package/dist-embed/chunks/{mermaid.core-Bd5egiDP.js → mermaid.core-D98kc0OO.js} +3 -3
- package/dist-embed/chunks/{mindmap-definition-YA3MSWOX-BmuUH3a3.js → mindmap-definition-YA3MSWOX-D86IPkt3.js} +1 -1
- package/dist-embed/chunks/{mindmap-definition-YA3MSWOX-Di0Xac42.js → mindmap-definition-YA3MSWOX-_1SBIPav.js} +1 -1
- package/dist-embed/chunks/{mindmap-definition-e4c1d938-D0Ep5LxZ.js → mindmap-definition-e4c1d938-UbbfpF-a.js} +1 -1
- package/dist-embed/chunks/{mr-IN-CRQNXWMA-G-1tBL4-.js → mr-IN-CRQNXWMA-Cio_dB9M.js} +1 -1
- package/dist-embed/chunks/{my-MM-5M5IBNSE-DpmzmQ2W.js → my-MM-5M5IBNSE-Z0RQ5Vbz.js} +1 -1
- package/dist-embed/chunks/{nb-NO-T6EIAALU-DFU_SPCx.js → nb-NO-T6EIAALU-BEQ0YP9J.js} +1 -1
- package/dist-embed/chunks/{nl-NL-IS3SIHDZ-Dlz_okxD.js → nl-NL-IS3SIHDZ-YtkJnS_J.js} +1 -1
- package/dist-embed/chunks/{nn-NO-6E72VCQL-D9E-BpHw.js → nn-NO-6E72VCQL-C1j2s3qO.js} +1 -1
- package/dist-embed/chunks/{oc-FR-POXYY2M6-CVonm6mx.js → oc-FR-POXYY2M6-CinnjccW.js} +1 -1
- package/dist-embed/chunks/{pa-IN-N4M65BXN-a5ExTB9v.js → pa-IN-N4M65BXN-c_6OtC6L.js} +1 -1
- package/dist-embed/chunks/{pegDiagram-XKGWAZYB-BYznG-ZK.js → pegDiagram-XKGWAZYB-BBVcHZ8T.js} +1 -1
- package/dist-embed/chunks/{pegDiagram-XKGWAZYB-Cptotyez.js → pegDiagram-XKGWAZYB-BJAdJVqh.js} +1 -1
- package/dist-embed/chunks/{percentages-BXMCSKIN-C2-svgs_.js → percentages-BXMCSKIN-VqMxh8LK.js} +5 -5
- package/dist-embed/chunks/{pieDiagram-E7YTZNPT-BYEkkWvq.js → pieDiagram-E7YTZNPT-C55wHgO0.js} +1 -1
- package/dist-embed/chunks/{pieDiagram-E7YTZNPT-D51avc4V.js → pieDiagram-E7YTZNPT-EvMxJb2S.js} +1 -1
- package/dist-embed/chunks/{pieDiagram-c941bede-Bcau8_Gm.js → pieDiagram-c941bede-DTmViAsB.js} +1 -1
- package/dist-embed/chunks/{pl-PL-T2D74RX3-BaHKKcOg.js → pl-PL-T2D74RX3-Cn_9xZgM.js} +1 -1
- package/dist-embed/chunks/{pt-BR-5N22H2LF-DZEHszX8.js → pt-BR-5N22H2LF-Da6r-Pp1.js} +1 -1
- package/dist-embed/chunks/{pt-PT-UZXXM6DQ-BbJKz8vE.js → pt-PT-UZXXM6DQ-D6lhcuX9.js} +1 -1
- package/dist-embed/chunks/{quadrantDiagram-AXDQQJYC-BfWK8wgJ.js → quadrantDiagram-AXDQQJYC-BCeMrGXB.js} +1 -1
- package/dist-embed/chunks/{quadrantDiagram-AXDQQJYC-CcMIo23m.js → quadrantDiagram-AXDQQJYC-rFaTvNlk.js} +1 -1
- package/dist-embed/chunks/{quadrantDiagram-cf8b8fe0-Db1y7cGB.js → quadrantDiagram-cf8b8fe0-BZAbhmbg.js} +1 -1
- package/dist-embed/chunks/{railroadDiagram-O6MQD6OU-BzqhRF47.js → railroadDiagram-O6MQD6OU-BAXhb26s.js} +1 -1
- package/dist-embed/chunks/{railroadDiagram-O6MQD6OU-DCRFdpxj.js → railroadDiagram-O6MQD6OU-bR7xXZGS.js} +1 -1
- package/dist-embed/chunks/{renderer-CM-Z_1Uj.js → renderer-DfML3j-s.js} +1 -1
- package/dist-embed/chunks/{requirementDiagram-53bda41b-Dj564NwS.js → requirementDiagram-53bda41b-DNqx3JRF.js} +1 -1
- package/dist-embed/chunks/{requirementDiagram-BXWQKSXE-dma0a-bN.js → requirementDiagram-BXWQKSXE-B0SL6Gqb.js} +1 -1
- package/dist-embed/chunks/{requirementDiagram-BXWQKSXE-CIFZt_cP.js → requirementDiagram-BXWQKSXE-DHLQ_9Lw.js} +1 -1
- package/dist-embed/chunks/{ro-RO-JPDTUUEW-szdAFgjr.js → ro-RO-JPDTUUEW-BFss9e8X.js} +1 -1
- package/dist-embed/chunks/{ru-RU-B4JR7IUQ-CbdtKkxy.js → ru-RU-B4JR7IUQ-DIruW2gS.js} +1 -1
- package/dist-embed/chunks/{sankeyDiagram-P5KCCOFB-8ur8k-HP.js → sankeyDiagram-P5KCCOFB-CktuQIU1.js} +1 -1
- package/dist-embed/chunks/{sankeyDiagram-P5KCCOFB-DRxZFl9I.js → sankeyDiagram-P5KCCOFB-Nk71fRsK.js} +1 -1
- package/dist-embed/chunks/{sankeyDiagram-c3ef121a-Da81kIDr.js → sankeyDiagram-c3ef121a-4-5C_fXA.js} +1 -1
- package/dist-embed/chunks/{sequenceDiagram-82a5b84f-DM8BTW5K.js → sequenceDiagram-82a5b84f-DedJ5qnD.js} +1 -1
- package/dist-embed/chunks/{sequenceDiagram-WJ2MYXX4-BH0Y4uG3.js → sequenceDiagram-WJ2MYXX4-BBGHED3s.js} +1 -1
- package/dist-embed/chunks/{sequenceDiagram-WJ2MYXX4-CNwXBdZi.js → sequenceDiagram-WJ2MYXX4-Dm3QM01Z.js} +1 -1
- package/dist-embed/chunks/{sessions-DlvFLGbP.js → sessions-lT1zQJEG.js} +2 -2
- package/dist-embed/chunks/{si-LK-N5RQ5JYF-DfCWfEQf.js → si-LK-N5RQ5JYF-Dom-aTTE.js} +1 -1
- package/dist-embed/chunks/{sizeCapture-INFHLROL-D-nX-7Hv.js → sizeCapture-INFHLROL-BNuVN7vX.js} +1 -1
- package/dist-embed/chunks/{sizeCapture-INFHLROL-Tw2tvJ1W.js → sizeCapture-INFHLROL-BW7unDBA.js} +1 -1
- package/dist-embed/chunks/{sk-SK-C5VTKIMK-CTeAwA1b.js → sk-SK-C5VTKIMK-CLRU9TNq.js} +1 -1
- package/dist-embed/chunks/{sl-SI-NN7IZMDC-eFw2lQcd.js → sl-SI-NN7IZMDC-BKLCNVXA.js} +1 -1
- package/dist-embed/chunks/{stateDiagram-43e79a5f-H8oVn7EH.js → stateDiagram-43e79a5f-C-TVhCrM.js} +1 -1
- package/dist-embed/chunks/{stateDiagram-D77RDMKH-DS-byRyy.js → stateDiagram-D77RDMKH-mLSMGpPQ.js} +1 -1
- package/dist-embed/chunks/{stateDiagram-D77RDMKH-CGEuq_3Z.js → stateDiagram-D77RDMKH-tqnmMQUf.js} +1 -1
- package/dist-embed/chunks/{stateDiagram-v2-2041ed4f-D7zd-PeH.js → stateDiagram-v2-2041ed4f-TVcKzajK.js} +1 -1
- package/dist-embed/chunks/{stateDiagram-v2-MP3YSRHH-Bbn7CxXx.js → stateDiagram-v2-MP3YSRHH-C3MNIg5B.js} +1 -1
- package/dist-embed/chunks/{stateDiagram-v2-MP3YSRHH-CllCmLuo.js → stateDiagram-v2-MP3YSRHH-C6TftAzE.js} +1 -1
- package/dist-embed/chunks/{styles-455b33cd-CYP0pxwM.js → styles-455b33cd-CIILXOoF.js} +1 -1
- package/dist-embed/chunks/{styles-f932cba9-dXHjU5Mc.js → styles-f932cba9-CVBMDsh6.js} +1 -1
- package/dist-embed/chunks/{styles-fcc2142b-CrgFTq7b.js → styles-fcc2142b-CTOmFTKK.js} +1 -1
- package/dist-embed/chunks/{subset-shared.chunk-BCNcfBdp.js → subset-shared.chunk-zIH7OLsP.js} +1 -1
- package/dist-embed/chunks/{subset-worker.chunk-nY71AE9b.js → subset-worker.chunk-b9j7PKPe.js} +1 -1
- package/dist-embed/chunks/{sv-SE-XGPEYMSR-B3BAd7ic.js → sv-SE-XGPEYMSR-D0UV0HV7.js} +1 -1
- package/dist-embed/chunks/{svgDrawCommon-148a3cd9-DY-6e2w2.js → svgDrawCommon-148a3cd9-BCgvh5nL.js} +1 -1
- package/dist-embed/chunks/{swimlanes-42K2YHIH-CpFqKR23.js → swimlanes-42K2YHIH-BQTDK2Ta.js} +1 -1
- package/dist-embed/chunks/{swimlanes-42K2YHIH-BoshoQYI.js → swimlanes-42K2YHIH-DHcV40DB.js} +1 -1
- package/dist-embed/chunks/{swimlanesDiagram-VR7AAH4N-BNalU-se.js → swimlanesDiagram-VR7AAH4N-BV8Vb5g2.js} +1 -1
- package/dist-embed/chunks/{swimlanesDiagram-VR7AAH4N-CUEoZUeR.js → swimlanesDiagram-VR7AAH4N-CQ7d-sbG.js} +1 -1
- package/dist-embed/chunks/{ta-IN-2NMHFXQM-Ch7Coorh.js → ta-IN-2NMHFXQM-C-EJ3jDE.js} +1 -1
- package/dist-embed/chunks/{th-TH-HPSO5L25-gmc7tguq.js → th-TH-HPSO5L25-CfQh62Qa.js} +1 -1
- package/dist-embed/chunks/{timeline-definition-24CTP7MA-BD_Hd7OM.js → timeline-definition-24CTP7MA-CKtubk73.js} +1 -1
- package/dist-embed/chunks/{timeline-definition-24CTP7MA-CLQC5Soj.js → timeline-definition-24CTP7MA-DJcFE1jT.js} +1 -1
- package/dist-embed/chunks/{timeline-definition-7545f45a-CBNPBc2S.js → timeline-definition-7545f45a-CLycxRtq.js} +1 -1
- package/dist-embed/chunks/{tr-TR-DEFEU3FU-DoKmjhCn.js → tr-TR-DEFEU3FU-Lz7Ka2Zr.js} +1 -1
- package/dist-embed/chunks/{uk-UA-QMV73CPH-uzMCDuv6.js → uk-UA-QMV73CPH-DU0hsGUJ.js} +1 -1
- package/dist-embed/chunks/{vennDiagram-4TSXK5OY-Clhmiu8L.js → vennDiagram-4TSXK5OY-BMmQ-DIV.js} +1 -1
- package/dist-embed/chunks/{vennDiagram-4TSXK5OY-BxbIHKUM.js → vennDiagram-4TSXK5OY-Bq0xMhnH.js} +1 -1
- package/dist-embed/chunks/{vi-VN-M7AON7JQ-UC9RyOt8.js → vi-VN-M7AON7JQ-CDvS0SiL.js} +1 -1
- package/dist-embed/chunks/{wardleyDiagram-VM6X3IG4-HuiHAtr-.js → wardleyDiagram-VM6X3IG4-C1VKw6YX.js} +1 -1
- package/dist-embed/chunks/{wardleyDiagram-VM6X3IG4-un-PuqHe.js → wardleyDiagram-VM6X3IG4-DL5LgQWr.js} +1 -1
- package/dist-embed/chunks/{xychartDiagram-3f383b91-3k3NdPbU.js → xychartDiagram-3f383b91-B-BTwetN.js} +1 -1
- package/dist-embed/chunks/{xychartDiagram-S5SC5T6Z-CIDOTVoZ.js → xychartDiagram-S5SC5T6Z-BQHFHk-x.js} +1 -1
- package/dist-embed/chunks/{xychartDiagram-S5SC5T6Z-CvZAV0KM.js → xychartDiagram-S5SC5T6Z-BXkM4beH.js} +1 -1
- package/dist-embed/chunks/{zh-CN-LNUGB5OW-DFA0PCzk.js → zh-CN-LNUGB5OW-CWE-bF0d.js} +1 -1
- package/dist-embed/chunks/{zh-HK-E62DVLB3-WzEwoBkd.js → zh-HK-E62DVLB3-pEfL2bds.js} +1 -1
- package/dist-embed/chunks/{zh-TW-RAJ6MFWO-B7w1h39x.js → zh-TW-RAJ6MFWO-Cp6UFUuD.js} +1 -1
- package/dist-embed/datalayer-app-main.js +107 -106
- package/lib/apps/apps/records.d.ts +21 -4
- package/lib/apps/apps/records.js +8 -6
- package/lib/apps/apps/threads.d.ts +11 -1
- package/lib/apps/apps/threads.js +17 -0
- package/lib/apps/core/index.d.ts +71 -0
- package/lib/apps/core/index.js +22 -0
- package/lib/apps/plugins/app-activity/AppActivity.js +10 -4
- package/lib/apps/plugins/chat/ChatView.js +123 -6
- package/lib/apps/plugins/chat/SessionActionsMenu.d.ts +40 -0
- package/lib/apps/plugins/chat/SessionActionsMenu.js +73 -0
- package/lib/apps/plugins/chat/SessionChooseDialog.d.ts +22 -0
- package/lib/apps/plugins/chat/SessionChooseDialog.js +39 -0
- package/lib/apps/plugins/chat/index.js +8 -1
- package/lib/apps/plugins/chat/sessionActions.d.ts +65 -0
- package/lib/apps/plugins/chat/sessionActions.js +184 -0
- package/lib/chat/Chat.d.ts +42 -2
- package/lib/chat/Chat.js +148 -2
- package/lib/chat/base/ChatBase.js +33 -6
- package/lib/chat/index.d.ts +1 -1
- package/lib/chat/messages/ChatMessageList.d.ts +3 -1
- package/lib/chat/messages/ChatMessageList.js +21 -2
- package/lib/portable/activity.d.ts +91 -2
- package/lib/portable/activity.js +143 -4
- package/lib/portable/fixtures.d.ts +1 -1
- package/lib/portable/fixtures.js +17 -7
- package/lib/portable/index.d.ts +1 -1
- package/lib/portable/index.js +3 -2
- package/lib/portable/sessions.d.ts +25 -1
- package/lib/portable/sessions.js +62 -4
- package/lib/specs/harnesses.js +96 -0
- package/lib/specs/index.d.ts +1 -0
- package/lib/specs/index.js +1 -0
- package/lib/specs/sessionFiles.d.ts +123 -0
- package/lib/specs/sessionFiles.js +578 -0
- package/lib/types/agentspecs.d.ts +26 -0
- package/lib/types/chat.d.ts +38 -0
- package/package.json +1 -1
- package/scripts/codegen/generate_agents.py +1 -0
- package/scripts/codegen/generate_harnesses.py +70 -0
- package/scripts/codegen/generate_session_files.py +296 -0
- package/dist-embed/chunks/ChatView-B_EEvtKi.js +0 -32
- package/dist-embed/chunks/SchemaForm-Dg9uk6m3.js +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{aD as Om,h7 as Lm,as as Dm,ch as ji,k as Ou,r as mn,az as ar,h9 as Vi,j as Nm,sA as cl,ar as Ys,ck as dl,ex as km,sB as Kd,bc as cs,av as jm,sC as Mm,sD as $m,sE as qm,sF as Fm,bd as Vm,ay as Ui,a8 as Mn,iW as Um,aA as Yd,eA as Lu,mW as Bm}from"../datalayer-app-main.js";import{b as zm,c as fa}from"./color-CG7_7V2-.js";import{r as Hm}from"./isEqual-B_c_I9Ri.js";import{f as $s}from"./defaultLocale-5voVPcsN.js";const Wm=60*1e3,Jm=500,Du=4;class Sn{constructor(e={}){var r,s,t,a,l,c,f;if(this._id=0,this._ranks={},this._types=null,this._factories={},this.translator=(r=e.translator)!==null&&r!==void 0?r:Om,this.resolver=(s=e.resolver)!==null&&s!==void 0?s:null,this.linkHandler=(t=e.linkHandler)!==null&&t!==void 0?t:null,this.trustHandler=(a=e.trustHandler)!==null&&a!==void 0?a:null,this.latexTypesetter=(l=e.latexTypesetter)!==null&&l!==void 0?l:null,this.markdownParser=(c=e.markdownParser)!==null&&c!==void 0?c:null,this.sanitizer=(f=e.sanitizer)!==null&&f!==void 0?f:new Lm,e.initialFactories)for(const m of e.initialFactories)this.addFactory(m)}get mimeTypes(){return this._types||(this._types=Rn.sortedTypes(this._ranks))}preferredMimeType(e,r="ensure"){if(r==="ensure"||r==="prefer"){for(const s of this.mimeTypes)if(s in e&&this._factories[s].safe)return s}if(r!=="ensure"){for(const s of this.mimeTypes)if(s in e)return s}}createRenderer(e){if(!(e in this._factories))throw new Error(`No factory for mime type: '${e}'`);return this._factories[e].createRenderer({mimeType:e,resolver:this.resolver,sanitizer:this.sanitizer,linkHandler:this.linkHandler,trustHandler:this.trustHandler,latexTypesetter:this.latexTypesetter,markdownParser:this.markdownParser,translator:this.translator})}createModel(e={}){return new Dm(e)}clone(e={}){var r,s,t,a,l,c,f,m,p,_,E,y;const w=new Sn({resolver:(s=(r=e.resolver)!==null&&r!==void 0?r:this.resolver)!==null&&s!==void 0?s:void 0,sanitizer:(a=(t=e.sanitizer)!==null&&t!==void 0?t:this.sanitizer)!==null&&a!==void 0?a:void 0,linkHandler:(c=(l=e.linkHandler)!==null&&l!==void 0?l:this.linkHandler)!==null&&c!==void 0?c:void 0,trustHandler:(m=(f=e.trustHandler)!==null&&f!==void 0?f:this.trustHandler)!==null&&m!==void 0?m:void 0,latexTypesetter:(_=(p=e.latexTypesetter)!==null&&p!==void 0?p:this.latexTypesetter)!==null&&_!==void 0?_:void 0,markdownParser:(y=(E=e.markdownParser)!==null&&E!==void 0?E:this.markdownParser)!==null&&y!==void 0?y:void 0,translator:this.translator});return w._factories={...this._factories},w._ranks={...this._ranks},w._id=this._id,w}getFactory(e){return this._factories[e]}addFactory(e,r){r===void 0&&(r=e.defaultRank,r===void 0&&(r=100));for(const s of e.mimeTypes)this._factories[s]=e,this._ranks[s]={rank:r,id:this._id++};this._types=null}removeMimeType(e){delete this._factories[e],delete this._ranks[e],this._types=null}getRank(e){const r=this._ranks[e];return r&&r.rank}setRank(e,r){if(!this._ranks[e])return;const s=this._id++;this._ranks[e]={rank:r,id:s},this._types=null}}(function(i){class e{constructor(s){this._resolvePathApiAvailable=null,this._resolvePathCache=new ji.LruCache({maxSize:Jm}),this._resolvePathCacheKernelId="",this._resolvePathLanes=Array.from({length:Du},()=>Promise.resolve()),this._resolvePathLane=0,this._path=s.path,this._contents=s.contents,this._getKernelId=s.getKernelId}get path(){return this._path}set path(s){this._path=s}async resolveUrl(s){if(this.isLocal(s)){const t=encodeURI(ji.PathExt.dirname(this.path));s=ji.PathExt.resolve(t,s)}return s}async getDownloadUrl(s){return this.isLocal(s)?this._contents.getDownloadUrl(decodeURIComponent(s)):s}isLocal(s,t=!1){return this.isMalformed(s)?!1:ji.URLExt.isLocal(s,t)||!!this._contents.driveName(decodeURI(s))}async resolvePath(s){var t,a;const l=(a=(t=this._getKernelId)===null||t===void 0?void 0:t.call(this))!==null&&a!==void 0?a:"";l!==this._resolvePathCacheKernelId&&(this._resolvePathCache.clear(),this._resolvePathCacheKernelId=l);const c=this._resolvePathCache.get(s);return c&&(c.pending||Date.now()-c.time<Wm)?c.result:this._resolveAndRememberPath(s)}isMalformed(s){try{return decodeURI(s),!1}catch(t){if(t instanceof URIError)return!0;throw t}}_resolveAndRememberPath(s){const t={pending:!0,time:Date.now(),result:this._resolveInLane(s)};return t.result=t.result.then(a=>(t.pending=!1,t.time=Date.now(),a),a=>(console.warn(`Could not resolve location of ${s}`,a),t.pending=!1,t.time=0,null)),this._resolvePathCache.set(s,t),t.result}_resolveInLane(s){const t=(this._resolvePathLane+1)%Du;this._resolvePathLane=t;const a=this._resolvePathLanes[t].then(()=>this._resolveUncachedPath(s));return this._resolvePathLanes[t]=a.catch(()=>{}),a}async _resolveUncachedPath(s){const t=await this._resolvePathUsingServerApi(s);return t!==void 0?t:this._resolvePathUsingLegacyHeuristics(s)}async _resolvePathUsingServerApi(s){var t,a,l,c,f,m;if(this._resolvePathApiAvailable===!1)return;const p={path:s},_=(t=this._getKernelId)===null||t===void 0?void 0:t.call(this);_&&(p.kernel=_);let E=await this._makeResolvePathRequest(p);if(!E)throw new Error(`Could not reach the server to resolve ${s}`);if(E.status===404){this._resolvePathApiAvailable=!1;return}if(!E.ok)throw new Error(`Server answered ${E.status} when resolving ${s}`);this._resolvePathApiAvailable=!0;try{const y=await E.json(),w=(l=(a=y?.resolved)===null||a===void 0?void 0:a.filter(Rn.isResolvedLocation))!==null&&l!==void 0?l:[],R=(f=(c=y?.unresolved)===null||c===void 0?void 0:c.some(C=>!!C&&typeof C=="object"&&C.scope==="kernel"))!==null&&f!==void 0?f:!1;return w.length?(m=w.find(C=>C.scope==="server"))!==null&&m!==void 0?m:w[0]:null}catch{throw new Error(`Could not read the resolution of ${s}`)}}async _makeResolvePathRequest(s){const t=this._contents.serverSettings,a=ji.URLExt.join(t.baseUrl,"api","resolvePath")+ji.URLExt.objectToQueryString(s);try{return await Ou.ServerConnection.makeRequest(a,{},t)}catch{return null}}async _resolvePathUsingLegacyHeuristics(s){const t=ji.PageConfig.getOption("rootUri").replace("file://","");if(s.startsWith("~/")&&t.startsWith("/home/")&&(s=t.split("/").slice(0,3).join("/")+s.substring(1)),s.startsWith(t)||s.startsWith("./"))try{const a=s.replace(t,"");return{path:(await this._contents.get(a,{content:!1})).path,scope:"server"}}catch(a){if(a instanceof Ou.ServerConnection.ResponseError&&a.response.status===404)return null;throw a}return{path:s,scope:"kernel"}}}i.UrlResolver=e})(Sn||(Sn={}));var Rn;(function(i){function e(s){if(!s||typeof s!="object")return!1;const t=s;return typeof t.path=="string"&&(t.scope==="server"||t.scope==="kernel")}i.isResolvedLocation=e;function r(s){return Object.keys(s).sort((t,a)=>{const l=s[t],c=s[a];return l.rank!==c.rank?l.rank-c.rank:l.id-c.id})}i.sortedTypes=r})(Rn||(Rn={}));const q0=({id:i="lumino-id",height:e="100%",children:r})=>{const s=mn.useRef(null),t=mn.useRef(!0);return mn.useEffect(()=>()=>{t.current=!1},[]),mn.useEffect(()=>{if(s&&s.current&&r){try{r.isAttached?s.current.contains(r.node)||ar.attach(r,s.current):(ar.attach(r,s.current),r.isVisible||r.show(),r.update())}catch(l){console.warn("Exception while attaching Lumino widget.",l)}const a=new ResizeObserver(()=>{r.isAttached&&Vi.sendMessage(r,ar.ResizeMessage.UnknownSize)});return a.observe(s.current),()=>{a.disconnect();const l=r;queueMicrotask(()=>{try{if(!t.current)return;l&&!l.isDisposed&&l.isAttached&&ar.detach(l)}catch(c){console.warn("Exception while detaching Lumino widget.",c)}})}}},[s,r]),Nm.jsx("div",{id:i,ref:s,style:{height:e,minHeight:e}})};var js={exports:{}};var Gm=js.exports,Nu;function Xm(){return Nu||(Nu=1,(function(i,e){(function(r,s){s(e)})(Gm,(function(r){function s(){for(var q=arguments.length,L=Array(q),B=0;B<q;B++)L[B]=arguments[B];if(L.length>1){L[0]=L[0].slice(0,-1);for(var ue=L.length-1,le=1;le<ue;++le)L[le]=L[le].slice(1,-1);return L[ue]=L[ue].slice(1),L.join("")}else return L[0]}function t(q){return"(?:"+q+")"}function a(q){return q===void 0?"undefined":q===null?"null":Object.prototype.toString.call(q).split(" ").pop().split("]").shift().toLowerCase()}function l(q){return q.toUpperCase()}function c(q){return q!=null?q instanceof Array?q:typeof q.length!="number"||q.split||q.setInterval||q.call?[q]:Array.prototype.slice.call(q):[]}function f(q,L){var B=q;if(L)for(var ue in L)B[ue]=L[ue];return B}function m(q){var L="[A-Za-z]",B="[0-9]",ue=s(B,"[A-Fa-f]"),le=t(t("%[EFef]"+ue+"%"+ue+ue+"%"+ue+ue)+"|"+t("%[89A-Fa-f]"+ue+"%"+ue+ue)+"|"+t("%"+ue+ue)),Je="[\\:\\/\\?\\#\\[\\]\\@]",Qe="[\\!\\$\\&\\'\\(\\)\\*\\+\\,\\;\\=]",mt=s(Je,Qe),Lt=q?"[\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]":"[]",At=q?"[\\uE000-\\uF8FF]":"[]",ht=s(L,B,"[\\-\\.\\_\\~]",Lt);t(L+s(L,B,"[\\+\\-\\.]")+"*"),t(t(le+"|"+s(ht,Qe,"[\\:]"))+"*");var wt=t(t("25[0-5]")+"|"+t("2[0-4]"+B)+"|"+t("1"+B+B)+"|"+t("0?[1-9]"+B)+"|0?0?"+B),jt=t(wt+"\\."+wt+"\\."+wt+"\\."+wt),Ze=t(ue+"{1,4}"),Dt=t(t(Ze+"\\:"+Ze)+"|"+jt),Ut=t(t(Ze+"\\:")+"{6}"+Dt),Rt=t("\\:\\:"+t(Ze+"\\:")+"{5}"+Dt),Ir=t(t(Ze)+"?\\:\\:"+t(Ze+"\\:")+"{4}"+Dt),wr=t(t(t(Ze+"\\:")+"{0,1}"+Ze)+"?\\:\\:"+t(Ze+"\\:")+"{3}"+Dt),ir=t(t(t(Ze+"\\:")+"{0,2}"+Ze)+"?\\:\\:"+t(Ze+"\\:")+"{2}"+Dt),Or=t(t(t(Ze+"\\:")+"{0,3}"+Ze)+"?\\:\\:"+Ze+"\\:"+Dt),zr=t(t(t(Ze+"\\:")+"{0,4}"+Ze)+"?\\:\\:"+Dt),Zt=t(t(t(Ze+"\\:")+"{0,5}"+Ze)+"?\\:\\:"+Ze),Rr=t(t(t(Ze+"\\:")+"{0,6}"+Ze)+"?\\:\\:"),Hr=t([Ut,Rt,Ir,wr,ir,Or,zr,Zt,Rr].join("|")),ur=t(t(ht+"|"+le)+"+");t("[vV]"+ue+"+\\."+s(ht,Qe,"[\\:]")+"+"),t(t(le+"|"+s(ht,Qe))+"*");var ei=t(le+"|"+s(ht,Qe,"[\\:\\@]"));return t(t(le+"|"+s(ht,Qe,"[\\@]"))+"+"),t(t(ei+"|"+s("[\\/\\?]",At))+"*"),{NOT_SCHEME:new RegExp(s("[^]",L,B,"[\\+\\-\\.]"),"g"),NOT_USERINFO:new RegExp(s("[^\\%\\:]",ht,Qe),"g"),NOT_HOST:new RegExp(s("[^\\%\\[\\]\\:]",ht,Qe),"g"),NOT_PATH:new RegExp(s("[^\\%\\/\\:\\@]",ht,Qe),"g"),NOT_PATH_NOSCHEME:new RegExp(s("[^\\%\\/\\@]",ht,Qe),"g"),NOT_QUERY:new RegExp(s("[^\\%]",ht,Qe,"[\\:\\@\\/\\?]",At),"g"),NOT_FRAGMENT:new RegExp(s("[^\\%]",ht,Qe,"[\\:\\@\\/\\?]"),"g"),ESCAPE:new RegExp(s("[^]",ht,Qe),"g"),UNRESERVED:new RegExp(ht,"g"),OTHER_CHARS:new RegExp(s("[^\\%]",ht,mt),"g"),PCT_ENCODED:new RegExp(le,"g"),IPV4ADDRESS:new RegExp("^("+jt+")$"),IPV6ADDRESS:new RegExp("^\\[?("+Hr+")"+t(t("\\%25|\\%(?!"+ue+"{2})")+"("+ur+")")+"?\\]?$")}}var p=m(!1),_=m(!0),E=(function(){function q(L,B){var ue=[],le=!0,Je=!1,Qe=void 0;try{for(var mt=L[Symbol.iterator](),Lt;!(le=(Lt=mt.next()).done)&&(ue.push(Lt.value),!(B&&ue.length===B));le=!0);}catch(At){Je=!0,Qe=At}finally{try{!le&&mt.return&&mt.return()}finally{if(Je)throw Qe}}return ue}return function(L,B){if(Array.isArray(L))return L;if(Symbol.iterator in Object(L))return q(L,B);throw new TypeError("Invalid attempt to destructure non-iterable instance")}})(),y=function(q){if(Array.isArray(q)){for(var L=0,B=Array(q.length);L<q.length;L++)B[L]=q[L];return B}else return Array.from(q)},w=2147483647,R=36,C=1,A=26,te=38,Y=700,U=72,F=128,ee="-",u=/^xn--/,P=/[^\0-\x7E]/,W=/[\x2E\u3002\uFF0E\uFF61]/g,z={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},G=R-C,X=Math.floor,oe=String.fromCharCode;function ye(q){throw new RangeError(z[q])}function Oe(q,L){for(var B=[],ue=q.length;ue--;)B[ue]=L(q[ue]);return B}function ze(q,L){var B=q.split("@"),ue="";B.length>1&&(ue=B[0]+"@",q=B[1]),q=q.replace(W,".");var le=q.split("."),Je=Oe(le,L).join(".");return ue+Je}function he(q){for(var L=[],B=0,ue=q.length;B<ue;){var le=q.charCodeAt(B++);if(le>=55296&&le<=56319&&B<ue){var Je=q.charCodeAt(B++);(Je&64512)==56320?L.push(((le&1023)<<10)+(Je&1023)+65536):(L.push(le),B--)}else L.push(le)}return L}var re=function(L){return String.fromCodePoint.apply(String,y(L))},we=function(L){return L-48<10?L-22:L-65<26?L-65:L-97<26?L-97:R},xe=function(L,B){return L+22+75*(L<26)-((B!=0)<<5)},Fe=function(L,B,ue){var le=0;for(L=ue?X(L/Y):L>>1,L+=X(L/B);L>G*A>>1;le+=R)L=X(L/G);return X(le+(G+1)*L/(L+te))},Pe=function(L){var B=[],ue=L.length,le=0,Je=F,Qe=U,mt=L.lastIndexOf(ee);mt<0&&(mt=0);for(var Lt=0;Lt<mt;++Lt)L.charCodeAt(Lt)>=128&&ye("not-basic"),B.push(L.charCodeAt(Lt));for(var At=mt>0?mt+1:0;At<ue;){for(var ht=le,wt=1,jt=R;;jt+=R){At>=ue&&ye("invalid-input");var Ze=we(L.charCodeAt(At++));(Ze>=R||Ze>X((w-le)/wt))&&ye("overflow"),le+=Ze*wt;var Dt=jt<=Qe?C:jt>=Qe+A?A:jt-Qe;if(Ze<Dt)break;var Ut=R-Dt;wt>X(w/Ut)&&ye("overflow"),wt*=Ut}var Rt=B.length+1;Qe=Fe(le-ht,Rt,ht==0),X(le/Rt)>w-Je&&ye("overflow"),Je+=X(le/Rt),le%=Rt,B.splice(le++,0,Je)}return String.fromCodePoint.apply(String,B)},Ne=function(L){var B=[];L=he(L);var ue=L.length,le=F,Je=0,Qe=U,mt=!0,Lt=!1,At=void 0;try{for(var ht=L[Symbol.iterator](),wt;!(mt=(wt=ht.next()).done);mt=!0){var jt=wt.value;jt<128&&B.push(oe(jt))}}catch(Lr){Lt=!0,At=Lr}finally{try{!mt&&ht.return&&ht.return()}finally{if(Lt)throw At}}var Ze=B.length,Dt=Ze;for(Ze&&B.push(ee);Dt<ue;){var Ut=w,Rt=!0,Ir=!1,wr=void 0;try{for(var ir=L[Symbol.iterator](),Or;!(Rt=(Or=ir.next()).done);Rt=!0){var zr=Or.value;zr>=le&&zr<Ut&&(Ut=zr)}}catch(Lr){Ir=!0,wr=Lr}finally{try{!Rt&&ir.return&&ir.return()}finally{if(Ir)throw wr}}var Zt=Dt+1;Ut-le>X((w-Je)/Zt)&&ye("overflow"),Je+=(Ut-le)*Zt,le=Ut;var Rr=!0,Hr=!1,ur=void 0;try{for(var ei=L[Symbol.iterator](),Mr;!(Rr=(Mr=ei.next()).done);Rr=!0){var qt=Mr.value;if(qt<le&&++Je>w&&ye("overflow"),qt==le){for(var Bt=Je,xr=R;;xr+=R){var $r=xr<=Qe?C:xr>=Qe+A?A:xr-Qe;if(Bt<$r)break;var Ai=Bt-$r,Qi=R-$r;B.push(oe(xe($r+Ai%Qi,0))),Bt=X(Ai/Qi)}B.push(oe(xe(Bt,0))),Qe=Fe(Je,Zt,Dt==Ze),Je=0,++Dt}}}catch(Lr){Hr=!0,ur=Lr}finally{try{!Rr&&ei.return&&ei.return()}finally{if(Hr)throw ur}}++Je,++le}return B.join("")},Ue=function(L){return ze(L,function(B){return u.test(B)?Pe(B.slice(4).toLowerCase()):B})},qe=function(L){return ze(L,function(B){return P.test(B)?"xn--"+Ne(B):B})},$={version:"2.1.0",ucs2:{decode:he,encode:re},decode:Pe,encode:Ne,toASCII:qe,toUnicode:Ue},ce={};function Ee(q){var L=q.charCodeAt(0),B=void 0;return L<16?B="%0"+L.toString(16).toUpperCase():L<128?B="%"+L.toString(16).toUpperCase():L<2048?B="%"+(L>>6|192).toString(16).toUpperCase()+"%"+(L&63|128).toString(16).toUpperCase():B="%"+(L>>12|224).toString(16).toUpperCase()+"%"+(L>>6&63|128).toString(16).toUpperCase()+"%"+(L&63|128).toString(16).toUpperCase(),B}function Ve(q){for(var L="",B=0,ue=q.length;B<ue;){var le=parseInt(q.substr(B+1,2),16);if(le<128)L+=String.fromCharCode(le),B+=3;else if(le>=194&&le<224){if(ue-B>=6){var Je=parseInt(q.substr(B+4,2),16);L+=String.fromCharCode((le&31)<<6|Je&63)}else L+=q.substr(B,6);B+=6}else if(le>=224){if(ue-B>=9){var Qe=parseInt(q.substr(B+4,2),16),mt=parseInt(q.substr(B+7,2),16);L+=String.fromCharCode((le&15)<<12|(Qe&63)<<6|mt&63)}else L+=q.substr(B,9);B+=9}else L+=q.substr(B,3),B+=3}return L}function me(q,L){function B(ue){var le=Ve(ue);return le.match(L.UNRESERVED)?le:ue}return q.scheme&&(q.scheme=String(q.scheme).replace(L.PCT_ENCODED,B).toLowerCase().replace(L.NOT_SCHEME,"")),q.userinfo!==void 0&&(q.userinfo=String(q.userinfo).replace(L.PCT_ENCODED,B).replace(L.NOT_USERINFO,Ee).replace(L.PCT_ENCODED,l)),q.host!==void 0&&(q.host=String(q.host).replace(L.PCT_ENCODED,B).toLowerCase().replace(L.NOT_HOST,Ee).replace(L.PCT_ENCODED,l)),q.path!==void 0&&(q.path=String(q.path).replace(L.PCT_ENCODED,B).replace(q.scheme?L.NOT_PATH:L.NOT_PATH_NOSCHEME,Ee).replace(L.PCT_ENCODED,l)),q.query!==void 0&&(q.query=String(q.query).replace(L.PCT_ENCODED,B).replace(L.NOT_QUERY,Ee).replace(L.PCT_ENCODED,l)),q.fragment!==void 0&&(q.fragment=String(q.fragment).replace(L.PCT_ENCODED,B).replace(L.NOT_FRAGMENT,Ee).replace(L.PCT_ENCODED,l)),q}function Re(q){return q.replace(/^0*(.*)/,"$1")||"0"}function He(q,L){var B=q.match(L.IPV4ADDRESS)||[],ue=E(B,2),le=ue[1];return le?le.split(".").map(Re).join("."):q}function rt(q,L){var B=q.match(L.IPV6ADDRESS)||[],ue=E(B,3),le=ue[1],Je=ue[2];if(le){for(var Qe=le.toLowerCase().split("::").reverse(),mt=E(Qe,2),Lt=mt[0],At=mt[1],ht=At?At.split(":").map(Re):[],wt=Lt.split(":").map(Re),jt=L.IPV4ADDRESS.test(wt[wt.length-1]),Ze=jt?7:8,Dt=wt.length-Ze,Ut=Array(Ze),Rt=0;Rt<Ze;++Rt)Ut[Rt]=ht[Rt]||wt[Dt+Rt]||"";jt&&(Ut[Ze-1]=He(Ut[Ze-1],L));var Ir=Ut.reduce(function(Zt,Rr,Hr){if(!Rr||Rr==="0"){var ur=Zt[Zt.length-1];ur&&ur.index+ur.length===Hr?ur.length++:Zt.push({index:Hr,length:1})}return Zt},[]),wr=Ir.sort(function(Zt,Rr){return Rr.length-Zt.length})[0],ir=void 0;if(wr&&wr.length>1){var Or=Ut.slice(0,wr.index),zr=Ut.slice(wr.index+wr.length);ir=Or.join(":")+"::"+zr.join(":")}else ir=Ut.join(":");return Je&&(ir+="%"+Je),ir}else return q}var g=/^(?:([^:\/?#]+):)?(?:\/\/((?:([^\/?#@]*)@)?(\[[^\/?#\]]+\]|[^\/?#:]*)(?:\:(\d*))?))?([^?#]*)(?:\?([^#]*))?(?:#((?:.|\n|\r)*))?/i,T="".match(/(){0}/)[1]===void 0;function O(q){var L=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},B={},ue=L.iri!==!1?_:p;L.reference==="suffix"&&(q=(L.scheme?L.scheme+":":"")+"//"+q);var le=q.match(g);if(le){T?(B.scheme=le[1],B.userinfo=le[3],B.host=le[4],B.port=parseInt(le[5],10),B.path=le[6]||"",B.query=le[7],B.fragment=le[8],isNaN(B.port)&&(B.port=le[5])):(B.scheme=le[1]||void 0,B.userinfo=q.indexOf("@")!==-1?le[3]:void 0,B.host=q.indexOf("//")!==-1?le[4]:void 0,B.port=parseInt(le[5],10),B.path=le[6]||"",B.query=q.indexOf("?")!==-1?le[7]:void 0,B.fragment=q.indexOf("#")!==-1?le[8]:void 0,isNaN(B.port)&&(B.port=q.match(/\/\/(?:.|\n)*\:(?:\/|\?|\#|$)/)?le[4]:void 0)),B.host&&(B.host=rt(He(B.host,ue),ue)),B.scheme===void 0&&B.userinfo===void 0&&B.host===void 0&&B.port===void 0&&!B.path&&B.query===void 0?B.reference="same-document":B.scheme===void 0?B.reference="relative":B.fragment===void 0?B.reference="absolute":B.reference="uri",L.reference&&L.reference!=="suffix"&&L.reference!==B.reference&&(B.error=B.error||"URI is not a "+L.reference+" reference.");var Je=ce[(L.scheme||B.scheme||"").toLowerCase()];if(!L.unicodeSupport&&(!Je||!Je.unicodeSupport)){if(B.host&&(L.domainHost||Je&&Je.domainHost))try{B.host=$.toASCII(B.host.replace(ue.PCT_ENCODED,Ve).toLowerCase())}catch(Qe){B.error=B.error||"Host's domain name can not be converted to ASCII via punycode: "+Qe}me(B,p)}else me(B,ue);Je&&Je.parse&&Je.parse(B,L)}else B.error=B.error||"URI can not be parsed.";return B}function V(q,L){var B=L.iri!==!1?_:p,ue=[];return q.userinfo!==void 0&&(ue.push(q.userinfo),ue.push("@")),q.host!==void 0&&ue.push(rt(He(String(q.host),B),B).replace(B.IPV6ADDRESS,function(le,Je,Qe){return"["+Je+(Qe?"%25"+Qe:"")+"]"})),(typeof q.port=="number"||typeof q.port=="string")&&(ue.push(":"),ue.push(String(q.port))),ue.length?ue.join(""):void 0}var se=/^\.\.?\//,fe=/^\/\.(\/|$)/,ke=/^\/\.\.(\/|$)/,et=/^\/?(?:.|\n)*?(?=\/|$)/;function Ye(q){for(var L=[];q.length;)if(q.match(se))q=q.replace(se,"");else if(q.match(fe))q=q.replace(fe,"/");else if(q.match(ke))q=q.replace(ke,"/"),L.pop();else if(q==="."||q==="..")q="";else{var B=q.match(et);if(B){var ue=B[0];q=q.slice(ue.length),L.push(ue)}else throw new Error("Unexpected dot segment condition")}return L.join("")}function at(q){var L=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},B=L.iri?_:p,ue=[],le=ce[(L.scheme||q.scheme||"").toLowerCase()];if(le&&le.serialize&&le.serialize(q,L),q.host&&!B.IPV6ADDRESS.test(q.host)){if(L.domainHost||le&&le.domainHost)try{q.host=L.iri?$.toUnicode(q.host):$.toASCII(q.host.replace(B.PCT_ENCODED,Ve).toLowerCase())}catch(mt){q.error=q.error||"Host's domain name can not be converted to "+(L.iri?"Unicode":"ASCII")+" via punycode: "+mt}}me(q,B),L.reference!=="suffix"&&q.scheme&&(ue.push(q.scheme),ue.push(":"));var Je=V(q,L);if(Je!==void 0&&(L.reference!=="suffix"&&ue.push("//"),ue.push(Je),q.path&&q.path.charAt(0)!=="/"&&ue.push("/")),q.path!==void 0){var Qe=q.path;!L.absolutePath&&(!le||!le.absolutePath)&&(Qe=Ye(Qe)),Je===void 0&&(Qe=Qe.replace(/^\/\//,"/%2F")),ue.push(Qe)}return q.query!==void 0&&(ue.push("?"),ue.push(q.query)),q.fragment!==void 0&&(ue.push("#"),ue.push(q.fragment)),ue.join("")}function pt(q,L){var B=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},ue=arguments[3],le={};return ue||(q=O(at(q,B),B),L=O(at(L,B),B)),B=B||{},!B.tolerant&&L.scheme?(le.scheme=L.scheme,le.userinfo=L.userinfo,le.host=L.host,le.port=L.port,le.path=Ye(L.path||""),le.query=L.query):(L.userinfo!==void 0||L.host!==void 0||L.port!==void 0?(le.userinfo=L.userinfo,le.host=L.host,le.port=L.port,le.path=Ye(L.path||""),le.query=L.query):(L.path?(L.path.charAt(0)==="/"?le.path=Ye(L.path):((q.userinfo!==void 0||q.host!==void 0||q.port!==void 0)&&!q.path?le.path="/"+L.path:q.path?le.path=q.path.slice(0,q.path.lastIndexOf("/")+1)+L.path:le.path=L.path,le.path=Ye(le.path)),le.query=L.query):(le.path=q.path,L.query!==void 0?le.query=L.query:le.query=q.query),le.userinfo=q.userinfo,le.host=q.host,le.port=q.port),le.scheme=q.scheme),le.fragment=L.fragment,le}function Ce(q,L,B){var ue=f({scheme:"null"},B);return at(pt(O(q,ue),O(L,ue),ue,!0),ue)}function _t(q,L){return typeof q=="string"?q=at(O(q,L),L):a(q)==="object"&&(q=O(at(q,L),L)),q}function k(q,L,B){return typeof q=="string"?q=at(O(q,B),B):a(q)==="object"&&(q=at(q,B)),typeof L=="string"?L=at(O(L,B),B):a(L)==="object"&&(L=at(L,B)),q===L}function S(q,L){return q&&q.toString().replace(!L||!L.iri?p.ESCAPE:_.ESCAPE,Ee)}function D(q,L){return q&&q.toString().replace(!L||!L.iri?p.PCT_ENCODED:_.PCT_ENCODED,Ve)}var Q={scheme:"http",domainHost:!0,parse:function(L,B){return L.host||(L.error=L.error||"HTTP URIs must have a host."),L},serialize:function(L,B){var ue=String(L.scheme).toLowerCase()==="https";return(L.port===(ue?443:80)||L.port==="")&&(L.port=void 0),L.path||(L.path="/"),L}},J={scheme:"https",domainHost:Q.domainHost,parse:Q.parse,serialize:Q.serialize};function ve(q){return typeof q.secure=="boolean"?q.secure:String(q.scheme).toLowerCase()==="wss"}var Ae={scheme:"ws",domainHost:!0,parse:function(L,B){var ue=L;return ue.secure=ve(ue),ue.resourceName=(ue.path||"/")+(ue.query?"?"+ue.query:""),ue.path=void 0,ue.query=void 0,ue},serialize:function(L,B){if((L.port===(ve(L)?443:80)||L.port==="")&&(L.port=void 0),typeof L.secure=="boolean"&&(L.scheme=L.secure?"wss":"ws",L.secure=void 0),L.resourceName){var ue=L.resourceName.split("?"),le=E(ue,2),Je=le[0],Qe=le[1];L.path=Je&&Je!=="/"?Je:void 0,L.query=Qe,L.resourceName=void 0}return L.fragment=void 0,L}},tt={scheme:"wss",domainHost:Ae.domainHost,parse:Ae.parse,serialize:Ae.serialize},nt={},Mt="[A-Za-z0-9\\-\\.\\_\\~\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]",Be="[0-9A-Fa-f]",je=t(t("%[EFef]"+Be+"%"+Be+Be+"%"+Be+Be)+"|"+t("%[89A-Fa-f]"+Be+"%"+Be+Be)+"|"+t("%"+Be+Be)),ct="[A-Za-z0-9\\!\\$\\%\\'\\*\\+\\-\\^\\_\\`\\{\\|\\}\\~]",dt="[\\!\\$\\%\\'\\(\\)\\*\\+\\,\\-\\.0-9\\<\\>A-Z\\x5E-\\x7E]",We=s(dt,'[\\"\\\\]'),Pt="[\\!\\$\\'\\(\\)\\*\\+\\,\\;\\:\\@]",Qt=new RegExp(Mt,"g"),Ct=new RegExp(je,"g"),zt=new RegExp(s("[^]",ct,"[\\.]",'[\\"]',We),"g"),Vt=new RegExp(s("[^]",Mt,Pt),"g"),kr=Vt;function Pi(q){var L=Ve(q);return L.match(Qt)?L:q}var yr={scheme:"mailto",parse:function(L,B){var ue=L,le=ue.to=ue.path?ue.path.split(","):[];if(ue.path=void 0,ue.query){for(var Je=!1,Qe={},mt=ue.query.split("&"),Lt=0,At=mt.length;Lt<At;++Lt){var ht=mt[Lt].split("=");switch(ht[0]){case"to":for(var wt=ht[1].split(","),jt=0,Ze=wt.length;jt<Ze;++jt)le.push(wt[jt]);break;case"subject":ue.subject=D(ht[1],B);break;case"body":ue.body=D(ht[1],B);break;default:Je=!0,Qe[D(ht[0],B)]=D(ht[1],B);break}}Je&&(ue.headers=Qe)}ue.query=void 0;for(var Dt=0,Ut=le.length;Dt<Ut;++Dt){var Rt=le[Dt].split("@");if(Rt[0]=D(Rt[0]),B.unicodeSupport)Rt[1]=D(Rt[1],B).toLowerCase();else try{Rt[1]=$.toASCII(D(Rt[1],B).toLowerCase())}catch(Ir){ue.error=ue.error||"Email address's domain name can not be converted to ASCII via punycode: "+Ir}le[Dt]=Rt.join("@")}return ue},serialize:function(L,B){var ue=L,le=c(L.to);if(le){for(var Je=0,Qe=le.length;Je<Qe;++Je){var mt=String(le[Je]),Lt=mt.lastIndexOf("@"),At=mt.slice(0,Lt).replace(Ct,Pi).replace(Ct,l).replace(zt,Ee),ht=mt.slice(Lt+1);try{ht=B.iri?$.toUnicode(ht):$.toASCII(D(ht,B).toLowerCase())}catch(Dt){ue.error=ue.error||"Email address's domain name can not be converted to "+(B.iri?"Unicode":"ASCII")+" via punycode: "+Dt}le[Je]=At+"@"+ht}ue.path=le.join(",")}var wt=L.headers=L.headers||{};L.subject&&(wt.subject=L.subject),L.body&&(wt.body=L.body);var jt=[];for(var Ze in wt)wt[Ze]!==nt[Ze]&&jt.push(Ze.replace(Ct,Pi).replace(Ct,l).replace(Vt,Ee)+"="+wt[Ze].replace(Ct,Pi).replace(Ct,l).replace(kr,Ee));return jt.length&&(ue.query=jt.join("&")),ue}},Yi=/^([^\:]+)\:(.*)/,jr={scheme:"urn",parse:function(L,B){var ue=L.path&&L.path.match(Yi),le=L;if(ue){var Je=B.scheme||le.scheme||"urn",Qe=ue[1].toLowerCase(),mt=ue[2],Lt=Je+":"+(B.nid||Qe),At=ce[Lt];le.nid=Qe,le.nss=mt,le.path=void 0,At&&(le=At.parse(le,B))}else le.error=le.error||"URN can not be parsed.";return le},serialize:function(L,B){var ue=B.scheme||L.scheme||"urn",le=L.nid,Je=ue+":"+(B.nid||le),Qe=ce[Je];Qe&&(L=Qe.serialize(L,B));var mt=L,Lt=L.nss;return mt.path=(le||B.nid)+":"+Lt,mt}},Zr=/^[0-9A-Fa-f]{8}(?:\-[0-9A-Fa-f]{4}){3}\-[0-9A-Fa-f]{12}$/,vi={scheme:"urn:uuid",parse:function(L,B){var ue=L;return ue.uuid=ue.nss,ue.nss=void 0,!B.tolerant&&(!ue.uuid||!ue.uuid.match(Zr))&&(ue.error=ue.error||"UUID is not valid."),ue},serialize:function(L,B){var ue=L;return ue.nss=(L.uuid||"").toLowerCase(),ue}};ce[Q.scheme]=Q,ce[J.scheme]=J,ce[Ae.scheme]=Ae,ce[tt.scheme]=tt,ce[yr.scheme]=yr,ce[jr.scheme]=jr,ce[vi.scheme]=vi,r.SCHEMES=ce,r.pctEncChar=Ee,r.pctDecChars=Ve,r.parse=O,r.removeDotSegments=Ye,r.serialize=at,r.resolveComponents=pt,r.resolve=Ce,r.normalize=_t,r.equal=k,r.escapeComponent=S,r.unescapeComponent=D,Object.defineProperty(r,"__esModule",{value:!0})}))})(js,js.exports)),js.exports}var pa,ku;function Km(){return ku||(ku=1,pa=function(e){for(var r=0,s=e.length,t=0,a;t<s;)r++,a=e.charCodeAt(t++),a>=55296&&a<=56319&&t<s&&(a=e.charCodeAt(t),(a&64512)==56320&&t++);return r}),pa}var ma,ju;function vs(){if(ju)return ma;ju=1,ma={copy:i,checkDataType:e,checkDataTypes:r,coerceToTypes:t,toHash:a,getProperty:f,escapeQuotes:m,equal:cl(),ucs2length:Km(),varOccurences:p,varReplace:_,schemaHasRules:E,schemaHasRulesExcept:y,schemaUnknownRules:w,toQuotedString:R,getPathExpr:C,getPath:A,getData:U,unescapeFragment:ee,unescapeJsonPointer:W,escapeFragment:u,escapeJsonPointer:P};function i(z,G){G=G||{};for(var X in z)G[X]=z[X];return G}function e(z,G,X,oe){var ye=oe?" !== ":" === ",Oe=oe?" || ":" && ",ze=oe?"!":"",he=oe?"":"!";switch(z){case"null":return G+ye+"null";case"array":return ze+"Array.isArray("+G+")";case"object":return"("+ze+G+Oe+"typeof "+G+ye+'"object"'+Oe+he+"Array.isArray("+G+"))";case"integer":return"(typeof "+G+ye+'"number"'+Oe+he+"("+G+" % 1)"+Oe+G+ye+G+(X?Oe+ze+"isFinite("+G+")":"")+")";case"number":return"(typeof "+G+ye+'"'+z+'"'+(X?Oe+ze+"isFinite("+G+")":"")+")";default:return"typeof "+G+ye+'"'+z+'"'}}function r(z,G,X){switch(z.length){case 1:return e(z[0],G,X,!0);default:var oe="",ye=a(z);ye.array&&ye.object&&(oe=ye.null?"(":"(!"+G+" || ",oe+="typeof "+G+' !== "object")',delete ye.null,delete ye.array,delete ye.object),ye.number&&delete ye.integer;for(var Oe in ye)oe+=(oe?" && ":"")+e(Oe,G,X,!0);return oe}}var s=a(["string","number","integer","boolean","null"]);function t(z,G){if(Array.isArray(G)){for(var X=[],oe=0;oe<G.length;oe++){var ye=G[oe];(s[ye]||z==="array"&&ye==="array")&&(X[X.length]=ye)}if(X.length)return X}else{if(s[G])return[G];if(z==="array"&&G==="array")return["array"]}}function a(z){for(var G={},X=0;X<z.length;X++)G[z[X]]=!0;return G}var l=/^[a-z$_][a-z$_0-9]*$/i,c=/'|\\/g;function f(z){return typeof z=="number"?"["+z+"]":l.test(z)?"."+z:"['"+m(z)+"']"}function m(z){return z.replace(c,"\\$&").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/\f/g,"\\f").replace(/\t/g,"\\t")}function p(z,G){G+="[^0-9]";var X=z.match(new RegExp(G,"g"));return X?X.length:0}function _(z,G,X){return G+="([^0-9])",X=X.replace(/\$/g,"$$$$"),z.replace(new RegExp(G,"g"),X+"$1")}function E(z,G){if(typeof z=="boolean")return!z;for(var X in z)if(G[X])return!0}function y(z,G,X){if(typeof z=="boolean")return!z&&X!="not";for(var oe in z)if(oe!=X&&G[oe])return!0}function w(z,G){if(typeof z!="boolean"){for(var X in z)if(!G[X])return X}}function R(z){return"'"+m(z)+"'"}function C(z,G,X,oe){var ye=X?"'/' + "+G+(oe?"":".replace(/~/g, '~0').replace(/\\//g, '~1')"):oe?"'[' + "+G+" + ']'":"'[\\'' + "+G+" + '\\']'";return F(z,ye)}function A(z,G,X){var oe=R(X?"/"+P(G):f(G));return F(z,oe)}var te=/^\/(?:[^~]|~0|~1)*$/,Y=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function U(z,G,X){var oe,ye,Oe,ze;if(z==="")return"rootData";if(z[0]=="/"){if(!te.test(z))throw new Error("Invalid JSON-pointer: "+z);ye=z,Oe="rootData"}else{if(ze=z.match(Y),!ze)throw new Error("Invalid JSON-pointer: "+z);if(oe=+ze[1],ye=ze[2],ye=="#"){if(oe>=G)throw new Error("Cannot access property/index "+oe+" levels up, current level is "+G);return X[G-oe]}if(oe>G)throw new Error("Cannot access data "+oe+" levels up, current level is "+G);if(Oe="data"+(G-oe||""),!ye)return Oe}for(var he=Oe,re=ye.split("/"),we=0;we<re.length;we++){var xe=re[we];xe&&(Oe+=f(W(xe)),he+=" && "+Oe)}return he}function F(z,G){return z=='""'?G:(z+" + "+G).replace(/([^\\])' \+ '/g,"$1")}function ee(z){return W(decodeURIComponent(z))}function u(z){return encodeURIComponent(P(z))}function P(z){return z.replace(/~/g,"~0").replace(/\//g,"~1")}function W(z){return z.replace(/~1/g,"/").replace(/~0/g,"~")}return ma}var ga,Mu;function Qd(){if(Mu)return ga;Mu=1;var i=vs();ga=e;function e(r){i.copy(r,this)}return ga}var va={exports:{}},$u;function Ym(){if($u)return va.exports;$u=1;var i=va.exports=function(s,t,a){typeof t=="function"&&(a=t,t={}),a=t.cb||a;var l=typeof a=="function"?a:a.pre||function(){},c=a.post||function(){};e(t,l,c,s,"",s)};i.keywords={additionalItems:!0,items:!0,contains:!0,additionalProperties:!0,propertyNames:!0,not:!0},i.arrayKeywords={items:!0,allOf:!0,anyOf:!0,oneOf:!0},i.propsKeywords={definitions:!0,properties:!0,patternProperties:!0,dependencies:!0},i.skipKeywords={default:!0,enum:!0,const:!0,required:!0,maximum:!0,minimum:!0,exclusiveMaximum:!0,exclusiveMinimum:!0,multipleOf:!0,maxLength:!0,minLength:!0,pattern:!0,format:!0,maxItems:!0,minItems:!0,uniqueItems:!0,maxProperties:!0,minProperties:!0};function e(s,t,a,l,c,f,m,p,_,E){if(l&&typeof l=="object"&&!Array.isArray(l)){t(l,c,f,m,p,_,E);for(var y in l){var w=l[y];if(Array.isArray(w)){if(y in i.arrayKeywords)for(var R=0;R<w.length;R++)e(s,t,a,w[R],c+"/"+y+"/"+R,f,c,y,l,R)}else if(y in i.propsKeywords){if(w&&typeof w=="object")for(var C in w)e(s,t,a,w[C],c+"/"+y+"/"+r(C),f,c,y,l,C)}else(y in i.keywords||s.allKeys&&!(y in i.skipKeywords))&&e(s,t,a,w,c+"/"+y,f,c,y,l)}a(l,c,f,m,p,_,E)}}function r(s){return s.replace(/~/g,"~0").replace(/\//g,"~1")}return va.exports}var ba,qu;function hl(){if(qu)return ba;qu=1;var i=Xm(),e=cl(),r=vs(),s=Qd(),t=Ym();ba=a,a.normalizeId=A,a.fullPath=w,a.url=te,a.ids=Y,a.inlineRef=_,a.schema=l;function a(U,F,ee){var u=this._refs[ee];if(typeof u=="string")if(this._refs[u])u=this._refs[u];else return a.call(this,U,F,u);if(u=u||this._schemas[ee],u instanceof s)return _(u.schema,this._opts.inlineRefs)?u.schema:u.validate||this._compile(u);var P=l.call(this,F,ee),W,z,G;return P&&(W=P.schema,F=P.root,G=P.baseId),W instanceof s?z=W.validate||U.call(this,W.schema,F,void 0,G):W!==void 0&&(z=_(W,this._opts.inlineRefs)?W:U.call(this,W,F,void 0,G)),z}function l(U,F){var ee=i.parse(F),u=R(ee),P=w(this._getId(U.schema));if(Object.keys(U.schema).length===0||u!==P){var W=A(u),z=this._refs[W];if(typeof z=="string")return c.call(this,U,z,ee);if(z instanceof s)z.validate||this._compile(z),U=z;else if(z=this._schemas[W],z instanceof s){if(z.validate||this._compile(z),W==A(F))return{schema:z,root:U,baseId:P};U=z}else return;if(!U.schema)return;P=w(this._getId(U.schema))}return m.call(this,ee,P,U.schema,U)}function c(U,F,ee){var u=l.call(this,U,F);if(u){var P=u.schema,W=u.baseId;U=u.root;var z=this._getId(P);return z&&(W=te(W,z)),m.call(this,ee,W,P,U)}}var f=r.toHash(["properties","patternProperties","enum","dependencies","definitions"]);function m(U,F,ee,u){if(U.fragment=U.fragment||"",U.fragment.slice(0,1)=="/"){for(var P=U.fragment.split("/"),W=1;W<P.length;W++){var z=P[W];if(z){if(z=r.unescapeFragment(z),ee=ee[z],ee===void 0)break;var G;if(!f[z]&&(G=this._getId(ee),G&&(F=te(F,G)),ee.$ref)){var X=te(F,ee.$ref),oe=l.call(this,u,X);oe&&(ee=oe.schema,u=oe.root,F=oe.baseId)}}}if(ee!==void 0&&ee!==u.schema)return{schema:ee,root:u,baseId:F}}}var p=r.toHash(["type","format","pattern","maxLength","minLength","maxProperties","minProperties","maxItems","minItems","maximum","minimum","uniqueItems","multipleOf","required","enum"]);function _(U,F){if(F===!1)return!1;if(F===void 0||F===!0)return E(U);if(F)return y(U)<=F}function E(U){var F;if(Array.isArray(U)){for(var ee=0;ee<U.length;ee++)if(F=U[ee],typeof F=="object"&&!E(F))return!1}else for(var u in U)if(u=="$ref"||(F=U[u],typeof F=="object"&&!E(F)))return!1;return!0}function y(U){var F=0,ee;if(Array.isArray(U)){for(var u=0;u<U.length;u++)if(ee=U[u],typeof ee=="object"&&(F+=y(ee)),F==1/0)return 1/0}else for(var P in U){if(P=="$ref")return 1/0;if(p[P])F++;else if(ee=U[P],typeof ee=="object"&&(F+=y(ee)+1),F==1/0)return 1/0}return F}function w(U,F){F!==!1&&(U=A(U));var ee=i.parse(U);return R(ee)}function R(U){return i.serialize(U).split("#")[0]+"#"}var C=/#\/?$/;function A(U){return U?U.replace(C,""):""}function te(U,F){return F=A(F),i.resolve(U,F)}function Y(U){var F=A(this._getId(U)),ee={"":F},u={"":w(F,!1)},P={},W=this;return t(U,{allKeys:!0},function(z,G,X,oe,ye,Oe,ze){if(G!==""){var he=W._getId(z),re=ee[oe],we=u[oe]+"/"+ye;if(ze!==void 0&&(we+="/"+(typeof ze=="number"?ze:r.escapeFragment(ze))),typeof he=="string"){he=re=A(re?i.resolve(re,he):he);var xe=W._refs[he];if(typeof xe=="string"&&(xe=W._refs[xe]),xe&&xe.schema){if(!e(z,xe.schema))throw new Error('id "'+he+'" resolves to more than one schema')}else if(he!=A(we))if(he[0]=="#"){if(P[he]&&!e(z,P[he]))throw new Error('id "'+he+'" resolves to more than one schema');P[he]=z}else W._refs[he]=we}ee[G]=re,u[G]=we}}),P}return ba}var _a,Fu;function fl(){if(Fu)return _a;Fu=1;var i=hl();_a={Validation:s(e),MissingRef:s(r)};function e(t){this.message="validation failed",this.errors=t,this.ajv=this.validation=!0}r.message=function(t,a){return"can't resolve reference "+a+" from id "+t};function r(t,a,l){this.message=l||r.message(t,a),this.missingRef=i.url(t,a),this.missingSchema=i.normalizeId(i.fullPath(this.missingRef))}function s(t){return t.prototype=Object.create(Error.prototype),t.prototype.constructor=t,t}return _a}var ya,Vu;function Zd(){return Vu||(Vu=1,ya=function(i,e){e||(e={}),typeof e=="function"&&(e={cmp:e});var r=typeof e.cycles=="boolean"?e.cycles:!1,s=e.cmp&&(function(a){return function(l){return function(c,f){var m={key:c,value:l[c]},p={key:f,value:l[f]};return a(m,p)}}})(e.cmp),t=[];return(function a(l){if(l&&l.toJSON&&typeof l.toJSON=="function"&&(l=l.toJSON()),l!==void 0){if(typeof l=="number")return isFinite(l)?""+l:"null";if(typeof l!="object")return JSON.stringify(l);var c,f;if(Array.isArray(l)){for(f="[",c=0;c<l.length;c++)c&&(f+=","),f+=a(l[c])||"null";return f+"]"}if(l===null)return"null";if(t.indexOf(l)!==-1){if(r)return JSON.stringify("__cycle__");throw new TypeError("Converting circular structure to JSON")}var m=t.push(l)-1,p=Object.keys(l).sort(s&&s(l));for(f="",c=0;c<p.length;c++){var _=p[c],E=a(l[_]);E&&(f&&(f+=","),f+=JSON.stringify(_)+":"+E)}return t.splice(m,1),"{"+f+"}"}})(i)}),ya}var wa,Uu;function eh(){return Uu||(Uu=1,wa=function(e,r,s){var t="",a=e.schema.$async===!0,l=e.util.schemaHasRulesExcept(e.schema,e.RULES.all,"$ref"),c=e.self._getId(e.schema);if(e.opts.strictKeywords){var f=e.util.schemaUnknownRules(e.schema,e.RULES.keywords);if(f){var m="unknown keyword: "+f;if(e.opts.strictKeywords==="log")e.logger.warn(m);else throw new Error(m)}}if(e.isTop&&(t+=" var validate = ",a&&(e.async=!0,t+="async "),t+="function(data, dataPath, parentData, parentDataProperty, rootData) { 'use strict'; ",c&&(e.opts.sourceCode||e.opts.processCode)&&(t+=" "+("/*# sourceURL="+c+" */")+" ")),typeof e.schema=="boolean"||!(l||e.schema.$ref)){var r="false schema",p=e.level,_=e.dataLevel,E=e.schema[r],y=e.schemaPath+e.util.getProperty(r),w=e.errSchemaPath+"/"+r,F=!e.opts.allErrors,P,R="data"+(_||""),U="valid"+p;if(e.schema===!1){e.isTop?F=!0:t+=" var "+U+" = false; ";var C=C||[];C.push(t),t="",e.createErrors!==!1?(t+=" { keyword: '"+(P||"false schema")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(w)+" , params: {} ",e.opts.messages!==!1&&(t+=" , message: 'boolean schema is false' "),e.opts.verbose&&(t+=" , schema: false , parentSchema: validate.schema"+e.schemaPath+" , data: "+R+" "),t+=" } "):t+=" {} ";var A=t;t=C.pop(),!e.compositeRule&&F?e.async?t+=" throw new ValidationError(["+A+"]); ":t+=" validate.errors = ["+A+"]; return false; ":t+=" var err = "+A+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}else e.isTop?a?t+=" return data; ":t+=" validate.errors = null; return true; ":t+=" var "+U+" = true; ";return e.isTop&&(t+=" }; return validate; "),t}if(e.isTop){var te=e.isTop,p=e.level=0,_=e.dataLevel=0,R="data";if(e.rootId=e.resolve.fullPath(e.self._getId(e.root.schema)),e.baseId=e.baseId||e.rootId,delete e.isTop,e.dataPathArr=[""],e.schema.default!==void 0&&e.opts.useDefaults&&e.opts.strictDefaults){var Y="default is ignored in the schema root";if(e.opts.strictDefaults==="log")e.logger.warn(Y);else throw new Error(Y)}t+=" var vErrors = null; ",t+=" var errors = 0; ",t+=" if (rootData === undefined) rootData = data; "}else{var p=e.level,_=e.dataLevel,R="data"+(_||"");if(c&&(e.baseId=e.resolve.url(e.baseId,c)),a&&!e.async)throw new Error("async schema in sync schema");t+=" var errs_"+p+" = errors;"}var U="valid"+p,F=!e.opts.allErrors,ee="",u="",P,W=e.schema.type,z=Array.isArray(W);if(W&&e.opts.nullable&&e.schema.nullable===!0&&(z?W.indexOf("null")==-1&&(W=W.concat("null")):W!="null"&&(W=[W,"null"],z=!0)),z&&W.length==1&&(W=W[0],z=!1),e.schema.$ref&&l){if(e.opts.extendRefs=="fail")throw new Error('$ref: validation keywords used in schema at path "'+e.errSchemaPath+'" (see option extendRefs)');e.opts.extendRefs!==!0&&(l=!1,e.logger.warn('$ref: keywords ignored in schema at path "'+e.errSchemaPath+'"'))}if(e.schema.$comment&&e.opts.$comment&&(t+=" "+e.RULES.all.$comment.code(e,"$comment")),W){if(e.opts.coerceTypes)var G=e.util.coerceToTypes(e.opts.coerceTypes,W);var X=e.RULES.types[W];if(G||z||X===!0||X&&!fe(X)){var y=e.schemaPath+".type",w=e.errSchemaPath+"/type",y=e.schemaPath+".type",w=e.errSchemaPath+"/type",oe=z?"checkDataTypes":"checkDataType";if(t+=" if ("+e.util[oe](W,R,e.opts.strictNumbers,!0)+") { ",G){var ye="dataType"+p,Oe="coerced"+p;t+=" var "+ye+" = typeof "+R+"; var "+Oe+" = undefined; ",e.opts.coerceTypes=="array"&&(t+=" if ("+ye+" == 'object' && Array.isArray("+R+") && "+R+".length == 1) { "+R+" = "+R+"[0]; "+ye+" = typeof "+R+"; if ("+e.util.checkDataType(e.schema.type,R,e.opts.strictNumbers)+") "+Oe+" = "+R+"; } "),t+=" if ("+Oe+" !== undefined) ; ";var ze=G;if(ze)for(var he,re=-1,we=ze.length-1;re<we;)he=ze[re+=1],he=="string"?t+=" else if ("+ye+" == 'number' || "+ye+" == 'boolean') "+Oe+" = '' + "+R+"; else if ("+R+" === null) "+Oe+" = ''; ":he=="number"||he=="integer"?(t+=" else if ("+ye+" == 'boolean' || "+R+" === null || ("+ye+" == 'string' && "+R+" && "+R+" == +"+R+" ",he=="integer"&&(t+=" && !("+R+" % 1)"),t+=")) "+Oe+" = +"+R+"; "):he=="boolean"?t+=" else if ("+R+" === 'false' || "+R+" === 0 || "+R+" === null) "+Oe+" = false; else if ("+R+" === 'true' || "+R+" === 1) "+Oe+" = true; ":he=="null"?t+=" else if ("+R+" === '' || "+R+" === 0 || "+R+" === false) "+Oe+" = null; ":e.opts.coerceTypes=="array"&&he=="array"&&(t+=" else if ("+ye+" == 'string' || "+ye+" == 'number' || "+ye+" == 'boolean' || "+R+" == null) "+Oe+" = ["+R+"]; ");t+=" else { ";var C=C||[];C.push(t),t="",e.createErrors!==!1?(t+=" { keyword: '"+(P||"type")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(w)+" , params: { type: '",z?t+=""+W.join(","):t+=""+W,t+="' } ",e.opts.messages!==!1&&(t+=" , message: 'should be ",z?t+=""+W.join(","):t+=""+W,t+="' "),e.opts.verbose&&(t+=" , schema: validate.schema"+y+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+R+" "),t+=" } "):t+=" {} ";var A=t;t=C.pop(),!e.compositeRule&&F?e.async?t+=" throw new ValidationError(["+A+"]); ":t+=" validate.errors = ["+A+"]; return false; ":t+=" var err = "+A+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",t+=" } if ("+Oe+" !== undefined) { ";var xe=_?"data"+(_-1||""):"parentData",Fe=_?e.dataPathArr[_]:"parentDataProperty";t+=" "+R+" = "+Oe+"; ",_||(t+="if ("+xe+" !== undefined)"),t+=" "+xe+"["+Fe+"] = "+Oe+"; } "}else{var C=C||[];C.push(t),t="",e.createErrors!==!1?(t+=" { keyword: '"+(P||"type")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(w)+" , params: { type: '",z?t+=""+W.join(","):t+=""+W,t+="' } ",e.opts.messages!==!1&&(t+=" , message: 'should be ",z?t+=""+W.join(","):t+=""+W,t+="' "),e.opts.verbose&&(t+=" , schema: validate.schema"+y+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+R+" "),t+=" } "):t+=" {} ";var A=t;t=C.pop(),!e.compositeRule&&F?e.async?t+=" throw new ValidationError(["+A+"]); ":t+=" validate.errors = ["+A+"]; return false; ":t+=" var err = "+A+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}t+=" } "}}if(e.schema.$ref&&!l)t+=" "+e.RULES.all.$ref.code(e,"$ref")+" ",F&&(t+=" } if (errors === ",te?t+="0":t+="errs_"+p,t+=") { ",u+="}");else{var Pe=e.RULES;if(Pe){for(var X,Ne=-1,Ue=Pe.length-1;Ne<Ue;)if(X=Pe[Ne+=1],fe(X)){if(X.type&&(t+=" if ("+e.util.checkDataType(X.type,R,e.opts.strictNumbers)+") { "),e.opts.useDefaults){if(X.type=="object"&&e.schema.properties){var E=e.schema.properties,qe=Object.keys(E),$=qe;if($)for(var ce,Ee=-1,Ve=$.length-1;Ee<Ve;){ce=$[Ee+=1];var me=E[ce];if(me.default!==void 0){var Re=R+e.util.getProperty(ce);if(e.compositeRule){if(e.opts.strictDefaults){var Y="default is ignored for: "+Re;if(e.opts.strictDefaults==="log")e.logger.warn(Y);else throw new Error(Y)}}else t+=" if ("+Re+" === undefined ",e.opts.useDefaults=="empty"&&(t+=" || "+Re+" === null || "+Re+" === '' "),t+=" ) "+Re+" = ",e.opts.useDefaults=="shared"?t+=" "+e.useDefault(me.default)+" ":t+=" "+JSON.stringify(me.default)+" ",t+="; "}}}else if(X.type=="array"&&Array.isArray(e.schema.items)){var He=e.schema.items;if(He){for(var me,re=-1,rt=He.length-1;re<rt;)if(me=He[re+=1],me.default!==void 0){var Re=R+"["+re+"]";if(e.compositeRule){if(e.opts.strictDefaults){var Y="default is ignored for: "+Re;if(e.opts.strictDefaults==="log")e.logger.warn(Y);else throw new Error(Y)}}else t+=" if ("+Re+" === undefined ",e.opts.useDefaults=="empty"&&(t+=" || "+Re+" === null || "+Re+" === '' "),t+=" ) "+Re+" = ",e.opts.useDefaults=="shared"?t+=" "+e.useDefault(me.default)+" ":t+=" "+JSON.stringify(me.default)+" ",t+="; "}}}}var g=X.rules;if(g){for(var T,O=-1,V=g.length-1;O<V;)if(T=g[O+=1],ke(T)){var se=T.code(e,T.keyword,X.type);se&&(t+=" "+se+" ",F&&(ee+="}"))}}if(F&&(t+=" "+ee+" ",ee=""),X.type&&(t+=" } ",W&&W===X.type&&!G)){t+=" else { ";var y=e.schemaPath+".type",w=e.errSchemaPath+"/type",C=C||[];C.push(t),t="",e.createErrors!==!1?(t+=" { keyword: '"+(P||"type")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(w)+" , params: { type: '",z?t+=""+W.join(","):t+=""+W,t+="' } ",e.opts.messages!==!1&&(t+=" , message: 'should be ",z?t+=""+W.join(","):t+=""+W,t+="' "),e.opts.verbose&&(t+=" , schema: validate.schema"+y+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+R+" "),t+=" } "):t+=" {} ";var A=t;t=C.pop(),!e.compositeRule&&F?e.async?t+=" throw new ValidationError(["+A+"]); ":t+=" validate.errors = ["+A+"]; return false; ":t+=" var err = "+A+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",t+=" } "}F&&(t+=" if (errors === ",te?t+="0":t+="errs_"+p,t+=") { ",u+="}")}}}F&&(t+=" "+u+" "),te?(a?(t+=" if (errors === 0) return data; ",t+=" else throw new ValidationError(vErrors); "):(t+=" validate.errors = vErrors; ",t+=" return errors === 0; "),t+=" }; return validate;"):t+=" var "+U+" = errors === errs_"+p+";";function fe(Ye){for(var at=Ye.rules,pt=0;pt<at.length;pt++)if(ke(at[pt]))return!0}function ke(Ye){return e.schema[Ye.keyword]!==void 0||Ye.implements&&et(Ye)}function et(Ye){for(var at=Ye.implements,pt=0;pt<at.length;pt++)if(e.schema[at[pt]]!==void 0)return!0}return t}),wa}var xa,Bu;function Qm(){if(Bu)return xa;Bu=1;var i=hl(),e=vs(),r=fl(),s=Zd(),t=eh(),a=e.ucs2length,l=cl(),c=r.Validation;xa=f;function f(C,A,te,Y){var U=this,F=this._opts,ee=[void 0],u={},P=[],W={},z=[],G={},X=[];function oe(me,Re){var He=F.regExp?"regExp":"new RegExp";return"var pattern"+me+" = "+He+"("+e.toQuotedString(Re[me])+");"}A=A||{schema:C,refVal:ee,refs:u};var ye=m.call(this,C,A,Y),Oe=this._compilations[ye.index];if(ye.compiling)return Oe.callValidate=xe;var ze=this._formats,he=this.RULES;try{var re=Fe(C,A,te,Y);Oe.validate=re;var we=Oe.callValidate;return we&&(we.schema=re.schema,we.errors=null,we.refs=re.refs,we.refVal=re.refVal,we.root=re.root,we.$async=re.$async,F.sourceCode&&(we.source=re.source)),re}finally{p.call(this,C,A,Y)}function xe(){var me=Oe.validate,Re=me.apply(this,arguments);return xe.errors=me.errors,Re}function Fe(me,Re,He,rt){var g=!Re||Re&&Re.schema==me;if(Re.schema!=A.schema)return f.call(U,me,Re,He,rt);var T=me.$async===!0,O=t({isTop:!0,schema:me,isRoot:g,baseId:rt,root:Re,schemaPath:"",errSchemaPath:"#",errorPath:'""',MissingRefError:r.MissingRef,RULES:he,validate:t,util:e,resolve:i,resolveRef:Pe,usePattern:ce,useDefault:Ee,useCustomRule:Ve,opts:F,formats:ze,logger:U.logger,self:U});O=R(ee,y)+R(P,oe)+R(z,E)+R(X,w)+O,F.processCode&&(O=F.processCode(O,me));var V;try{var se=new Function("self","RULES","formats","root","refVal","defaults","customRules","equal","ucs2length","ValidationError","regExp",O);V=se(U,he,ze,A,ee,z,X,l,a,c,F.regExp),ee[0]=V}catch(fe){throw U.logger.error("Error compiling schema, function code:",O),fe}return V.schema=me,V.errors=null,V.refs=u,V.refVal=ee,V.root=g?V:Re,T&&(V.$async=!0),F.sourceCode===!0&&(V.source={code:O,patterns:P,defaults:z}),V}function Pe(me,Re,He){Re=i.url(me,Re);var rt=u[Re],g,T;if(rt!==void 0)return g=ee[rt],T="refVal["+rt+"]",$(g,T);if(!He&&A.refs){var O=A.refs[Re];if(O!==void 0)return g=A.refVal[O],T=Ne(Re,g),$(g,T)}T=Ne(Re);var V=i.call(U,Fe,A,Re);if(V===void 0){var se=te&&te[Re];se&&(V=i.inlineRef(se,F.inlineRefs)?se:f.call(U,se,A,te,me))}if(V===void 0)Ue(Re);else return qe(Re,V),$(V,T)}function Ne(me,Re){var He=ee.length;return ee[He]=Re,u[me]=He,"refVal"+He}function Ue(me){delete u[me]}function qe(me,Re){var He=u[me];ee[He]=Re}function $(me,Re){return typeof me=="object"||typeof me=="boolean"?{code:Re,schema:me,inline:!0}:{code:Re,$async:me&&!!me.$async}}function ce(me){var Re=W[me];return Re===void 0&&(Re=W[me]=P.length,P[Re]=me),"pattern"+Re}function Ee(me){switch(typeof me){case"boolean":case"number":return""+me;case"string":return e.toQuotedString(me);case"object":if(me===null)return"null";var Re=s(me),He=G[Re];return He===void 0&&(He=G[Re]=z.length,z[He]=me),"default"+He}}function Ve(me,Re,He,rt){if(U._opts.validateSchema!==!1){var g=me.definition.dependencies;if(g&&!g.every(function(at){return Object.prototype.hasOwnProperty.call(He,at)}))throw new Error("parent schema must have all required keywords: "+g.join(","));var T=me.definition.validateSchema;if(T){var O=T(Re);if(!O){var V="keyword schema is invalid: "+U.errorsText(T.errors);if(U._opts.validateSchema=="log")U.logger.error(V);else throw new Error(V)}}}var se=me.definition.compile,fe=me.definition.inline,ke=me.definition.macro,et;if(se)et=se.call(U,Re,He,rt);else if(ke)et=ke.call(U,Re,He,rt),F.validateSchema!==!1&&U.validateSchema(et,!0);else if(fe)et=fe.call(U,rt,me.keyword,Re,He);else if(et=me.definition.validate,!et)return;if(et===void 0)throw new Error('custom keyword "'+me.keyword+'"failed to compile');var Ye=X.length;return X[Ye]=et,{code:"customRule"+Ye,validate:et}}}function m(C,A,te){var Y=_.call(this,C,A,te);return Y>=0?{index:Y,compiling:!0}:(Y=this._compilations.length,this._compilations[Y]={schema:C,root:A,baseId:te},{index:Y,compiling:!1})}function p(C,A,te){var Y=_.call(this,C,A,te);Y>=0&&this._compilations.splice(Y,1)}function _(C,A,te){for(var Y=0;Y<this._compilations.length;Y++){var U=this._compilations[Y];if(U.schema==C&&U.root==A&&U.baseId==te)return Y}return-1}function E(C){return"var default"+C+" = defaults["+C+"];"}function y(C,A){return A[C]===void 0?"":"var refVal"+C+" = refVal["+C+"];"}function w(C){return"var customRule"+C+" = customRules["+C+"];"}function R(C,A){if(!C.length)return"";for(var te="",Y=0;Y<C.length;Y++)te+=A(Y,C);return te}return xa}var Ea={exports:{}},zu;function Zm(){if(zu)return Ea.exports;zu=1;var i=Ea.exports=function(){this._cache={}};return i.prototype.put=function(r,s){this._cache[r]=s},i.prototype.get=function(r){return this._cache[r]},i.prototype.del=function(r){delete this._cache[r]},i.prototype.clear=function(){this._cache={}},Ea.exports}var Sa,Hu;function eg(){if(Hu)return Sa;Hu=1;var i=vs(),e=/^(\d\d\d\d)-(\d\d)-(\d\d)$/,r=[0,31,28,31,30,31,30,31,31,30,31,30,31],s=/^(\d\d):(\d\d):(\d\d)(\.\d+)?(z|[+-]\d\d(?::?\d\d)?)?$/i,t=/^(?=.{1,253}\.?$)[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[-0-9a-z]{0,61}[0-9a-z])?)*\.?$/i,a=/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)(?:\?(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i,l=/^(?:[a-z][a-z0-9+\-.]*:)?(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'"()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?(?:\?(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i,c=/^(?:(?:[^\x00-\x20"'<>%\\^`{|}]|%[0-9a-f]{2})|\{[+#./;?&=,!@|]?(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?(?:,(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?)*\})*$/i,f=/^(?:(?:http[s\u017F]?|ftp):\/\/)(?:(?:[\0-\x08\x0E-\x1F!-\x9F\xA1-\u167F\u1681-\u1FFF\u200B-\u2027\u202A-\u202E\u2030-\u205E\u2060-\u2FFF\u3001-\uD7FF\uE000-\uFEFE\uFF00-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+(?::(?:[\0-\x08\x0E-\x1F!-\x9F\xA1-\u167F\u1681-\u1FFF\u200B-\u2027\u202A-\u202E\u2030-\u205E\u2060-\u2FFF\u3001-\uD7FF\uE000-\uFEFE\uFF00-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])*)?@)?(?:(?!10(?:\.[0-9]{1,3}){3})(?!127(?:\.[0-9]{1,3}){3})(?!169\.254(?:\.[0-9]{1,3}){2})(?!192\.168(?:\.[0-9]{1,3}){2})(?!172\.(?:1[6-9]|2[0-9]|3[01])(?:\.[0-9]{1,3}){2})(?:[1-9][0-9]?|1[0-9][0-9]|2[01][0-9]|22[0-3])(?:\.(?:1?[0-9]{1,2}|2[0-4][0-9]|25[0-5])){2}(?:\.(?:[1-9][0-9]?|1[0-9][0-9]|2[0-4][0-9]|25[0-4]))|(?:(?:(?:[0-9a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+-)*(?:[0-9a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+)(?:\.(?:(?:[0-9a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+-)*(?:[0-9a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+)*(?:\.(?:(?:[a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]){2,})))(?::[0-9]{2,5})?(?:\/(?:[\0-\x08\x0E-\x1F!-\x9F\xA1-\u167F\u1681-\u1FFF\u200B-\u2027\u202A-\u202E\u2030-\u205E\u2060-\u2FFF\u3001-\uD7FF\uE000-\uFEFE\uFF00-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])*)?$/i,m=/^(?:urn:uuid:)?[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$/i,p=/^(?:\/(?:[^~/]|~0|~1)*)*$/,_=/^#(?:\/(?:[a-z0-9_\-.!$&'()*+,;:=@]|%[0-9a-f]{2}|~0|~1)*)*$/i,E=/^(?:0|[1-9][0-9]*)(?:#|(?:\/(?:[^~/]|~0|~1)*)*)$/;Sa=y;function y(u){return u=u=="full"?"full":"fast",i.copy(y[u],Object.create(null))}y.fast={date:/^\d\d\d\d-[0-1]\d-[0-3]\d$/,time:/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i,"date-time":/^\d\d\d\d-[0-1]\d-[0-3]\d[t\s](?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i,uri:/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/)?[^\s]*$/i,"uri-reference":/^(?:(?:[a-z][a-z0-9+\-.]*:)?\/?\/)?(?:[^\\\s#][^\s#]*)?(?:#[^\\\s]*)?$/i,"uri-template":c,url:f,email:/^[a-z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?)*$/i,hostname:t,ipv4:/^(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)$/,ipv6:/^\s*(?:(?:(?:[0-9a-f]{1,4}:){7}(?:[0-9a-f]{1,4}|:))|(?:(?:[0-9a-f]{1,4}:){6}(?::[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(?:(?:[0-9a-f]{1,4}:){5}(?:(?:(?::[0-9a-f]{1,4}){1,2})|:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(?:(?:[0-9a-f]{1,4}:){4}(?:(?:(?::[0-9a-f]{1,4}){1,3})|(?:(?::[0-9a-f]{1,4})?:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){3}(?:(?:(?::[0-9a-f]{1,4}){1,4})|(?:(?::[0-9a-f]{1,4}){0,2}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){2}(?:(?:(?::[0-9a-f]{1,4}){1,5})|(?:(?::[0-9a-f]{1,4}){0,3}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){1}(?:(?:(?::[0-9a-f]{1,4}){1,6})|(?:(?::[0-9a-f]{1,4}){0,4}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?::(?:(?:(?::[0-9a-f]{1,4}){1,7})|(?:(?::[0-9a-f]{1,4}){0,5}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))(?:%.+)?\s*$/i,regex:ee,uuid:m,"json-pointer":p,"json-pointer-uri-fragment":_,"relative-json-pointer":E},y.full={date:R,time:C,"date-time":te,uri:U,"uri-reference":l,"uri-template":c,url:f,email:/^[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$/i,hostname:t,ipv4:/^(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)$/,ipv6:/^\s*(?:(?:(?:[0-9a-f]{1,4}:){7}(?:[0-9a-f]{1,4}|:))|(?:(?:[0-9a-f]{1,4}:){6}(?::[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(?:(?:[0-9a-f]{1,4}:){5}(?:(?:(?::[0-9a-f]{1,4}){1,2})|:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(?:(?:[0-9a-f]{1,4}:){4}(?:(?:(?::[0-9a-f]{1,4}){1,3})|(?:(?::[0-9a-f]{1,4})?:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){3}(?:(?:(?::[0-9a-f]{1,4}){1,4})|(?:(?::[0-9a-f]{1,4}){0,2}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){2}(?:(?:(?::[0-9a-f]{1,4}){1,5})|(?:(?::[0-9a-f]{1,4}){0,3}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){1}(?:(?:(?::[0-9a-f]{1,4}){1,6})|(?:(?::[0-9a-f]{1,4}){0,4}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?::(?:(?:(?::[0-9a-f]{1,4}){1,7})|(?:(?::[0-9a-f]{1,4}){0,5}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))(?:%.+)?\s*$/i,regex:ee,uuid:m,"json-pointer":p,"json-pointer-uri-fragment":_,"relative-json-pointer":E};function w(u){return u%4===0&&(u%100!==0||u%400===0)}function R(u){var P=u.match(e);if(!P)return!1;var W=+P[1],z=+P[2],G=+P[3];return z>=1&&z<=12&&G>=1&&G<=(z==2&&w(W)?29:r[z])}function C(u,P){var W=u.match(s);if(!W)return!1;var z=W[1],G=W[2],X=W[3],oe=W[5];return(z<=23&&G<=59&&X<=59||z==23&&G==59&&X==60)&&(!P||oe)}var A=/t|\s/i;function te(u){var P=u.split(A);return P.length==2&&R(P[0])&&C(P[1],!0)}var Y=/\/|:/;function U(u){return Y.test(u)&&a.test(u)}var F=/[^\\]\\Z/;function ee(u){if(F.test(u))return!1;try{return new RegExp(u),!0}catch{return!1}}return Sa}var Ra,Wu;function tg(){return Wu||(Wu=1,Ra=function(e,r,s){var t=" ",a=e.level,l=e.dataLevel,c=e.schema[r],f=e.errSchemaPath+"/"+r,m=!e.opts.allErrors,p="data"+(l||""),_="valid"+a,E,y;if(c=="#"||c=="#/")e.isRoot?(E=e.async,y="validate"):(E=e.root.schema.$async===!0,y="root.refVal[0]");else{var w=e.resolveRef(e.baseId,c,e.isRoot);if(w===void 0){var R=e.MissingRefError.message(e.baseId,c);if(e.opts.missingRefs=="fail"){e.logger.error(R);var C=C||[];C.push(t),t="",e.createErrors!==!1?(t+=" { keyword: '$ref' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(f)+" , params: { ref: '"+e.util.escapeQuotes(c)+"' } ",e.opts.messages!==!1&&(t+=" , message: 'can\\'t resolve reference "+e.util.escapeQuotes(c)+"' "),e.opts.verbose&&(t+=" , schema: "+e.util.toQuotedString(c)+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+p+" "),t+=" } "):t+=" {} ";var A=t;t=C.pop(),!e.compositeRule&&m?e.async?t+=" throw new ValidationError(["+A+"]); ":t+=" validate.errors = ["+A+"]; return false; ":t+=" var err = "+A+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",m&&(t+=" if (false) { ")}else if(e.opts.missingRefs=="ignore")e.logger.warn(R),m&&(t+=" if (true) { ");else throw new e.MissingRefError(e.baseId,c,R)}else if(w.inline){var te=e.util.copy(e);te.level++;var Y="valid"+te.level;te.schema=w.schema,te.schemaPath="",te.errSchemaPath=c;var U=e.validate(te).replace(/validate\.schema/g,w.code);t+=" "+U+" ",m&&(t+=" if ("+Y+") { ")}else E=w.$async===!0||e.async&&w.$async!==!1,y=w.code}if(y){var C=C||[];C.push(t),t="",e.opts.passContext?t+=" "+y+".call(this, ":t+=" "+y+"( ",t+=" "+p+", (dataPath || '')",e.errorPath!='""'&&(t+=" + "+e.errorPath);var F=l?"data"+(l-1||""):"parentData",ee=l?e.dataPathArr[l]:"parentDataProperty";t+=" , "+F+" , "+ee+", rootData) ";var u=t;if(t=C.pop(),E){if(!e.async)throw new Error("async schema referenced by sync schema");m&&(t+=" var "+_+"; "),t+=" try { await "+u+"; ",m&&(t+=" "+_+" = true; "),t+=" } catch (e) { if (!(e instanceof ValidationError)) throw e; if (vErrors === null) vErrors = e.errors; else vErrors = vErrors.concat(e.errors); errors = vErrors.length; ",m&&(t+=" "+_+" = false; "),t+=" } ",m&&(t+=" if ("+_+") { ")}else t+=" if (!"+u+") { if (vErrors === null) vErrors = "+y+".errors; else vErrors = vErrors.concat("+y+".errors); errors = vErrors.length; } ",m&&(t+=" else { ")}return t}),Ra}var Ta,Ju;function rg(){return Ju||(Ju=1,Ta=function(e,r,s){var t=" ",a=e.schema[r],l=e.schemaPath+e.util.getProperty(r),c=e.errSchemaPath+"/"+r,f=!e.opts.allErrors,m=e.util.copy(e),p="";m.level++;var _="valid"+m.level,E=m.baseId,y=!0,w=a;if(w)for(var R,C=-1,A=w.length-1;C<A;)R=w[C+=1],(e.opts.strictKeywords?typeof R=="object"&&Object.keys(R).length>0||R===!1:e.util.schemaHasRules(R,e.RULES.all))&&(y=!1,m.schema=R,m.schemaPath=l+"["+C+"]",m.errSchemaPath=c+"/"+C,t+=" "+e.validate(m)+" ",m.baseId=E,f&&(t+=" if ("+_+") { ",p+="}"));return f&&(y?t+=" if (true) { ":t+=" "+p.slice(0,-1)+" "),t}),Ta}var Ca,Gu;function ig(){return Gu||(Gu=1,Ca=function(e,r,s){var t=" ",a=e.level,l=e.dataLevel,c=e.schema[r],f=e.schemaPath+e.util.getProperty(r),m=e.errSchemaPath+"/"+r,p=!e.opts.allErrors,_="data"+(l||""),E="valid"+a,y="errs__"+a,w=e.util.copy(e),R="";w.level++;var C="valid"+w.level,A=c.every(function(P){return e.opts.strictKeywords?typeof P=="object"&&Object.keys(P).length>0||P===!1:e.util.schemaHasRules(P,e.RULES.all)});if(A){var te=w.baseId;t+=" var "+y+" = errors; var "+E+" = false; ";var Y=e.compositeRule;e.compositeRule=w.compositeRule=!0;var U=c;if(U)for(var F,ee=-1,u=U.length-1;ee<u;)F=U[ee+=1],w.schema=F,w.schemaPath=f+"["+ee+"]",w.errSchemaPath=m+"/"+ee,t+=" "+e.validate(w)+" ",w.baseId=te,t+=" "+E+" = "+E+" || "+C+"; if (!"+E+") { ",R+="}";e.compositeRule=w.compositeRule=Y,t+=" "+R+" if (!"+E+") { var err = ",e.createErrors!==!1?(t+=" { keyword: 'anyOf' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(m)+" , params: {} ",e.opts.messages!==!1&&(t+=" , message: 'should match some schema in anyOf' "),e.opts.verbose&&(t+=" , schema: validate.schema"+f+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+_+" "),t+=" } "):t+=" {} ",t+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",!e.compositeRule&&p&&(e.async?t+=" throw new ValidationError(vErrors); ":t+=" validate.errors = vErrors; return false; "),t+=" } else { errors = "+y+"; if (vErrors !== null) { if ("+y+") vErrors.length = "+y+"; else vErrors = null; } ",e.opts.allErrors&&(t+=" } ")}else p&&(t+=" if (true) { ");return t}),Ca}var Pa,Xu;function sg(){return Xu||(Xu=1,Pa=function(e,r,s){var t=" ",a=e.schema[r],l=e.errSchemaPath+"/"+r;e.opts.allErrors;var c=e.util.toQuotedString(a);return e.opts.$comment===!0?t+=" console.log("+c+");":typeof e.opts.$comment=="function"&&(t+=" self._opts.$comment("+c+", "+e.util.toQuotedString(l)+", validate.root.schema);"),t}),Pa}var Aa,Ku;function ng(){return Ku||(Ku=1,Aa=function(e,r,s){var t=" ",a=e.level,l=e.dataLevel,c=e.schema[r],f=e.schemaPath+e.util.getProperty(r),m=e.errSchemaPath+"/"+r,p=!e.opts.allErrors,_="data"+(l||""),E="valid"+a,y=e.opts.$data&&c&&c.$data;y&&(t+=" var schema"+a+" = "+e.util.getData(c.$data,l,e.dataPathArr)+"; "),y||(t+=" var schema"+a+" = validate.schema"+f+";"),t+="var "+E+" = equal("+_+", schema"+a+"); if (!"+E+") { ";var w=w||[];w.push(t),t="",e.createErrors!==!1?(t+=" { keyword: 'const' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(m)+" , params: { allowedValue: schema"+a+" } ",e.opts.messages!==!1&&(t+=" , message: 'should be equal to constant' "),e.opts.verbose&&(t+=" , schema: validate.schema"+f+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+_+" "),t+=" } "):t+=" {} ";var R=t;return t=w.pop(),!e.compositeRule&&p?e.async?t+=" throw new ValidationError(["+R+"]); ":t+=" validate.errors = ["+R+"]; return false; ":t+=" var err = "+R+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",t+=" }",p&&(t+=" else { "),t}),Aa}var Ia,Yu;function ag(){return Yu||(Yu=1,Ia=function(e,r,s){var t=" ",a=e.level,l=e.dataLevel,c=e.schema[r],f=e.schemaPath+e.util.getProperty(r),m=e.errSchemaPath+"/"+r,p=!e.opts.allErrors,_="data"+(l||""),E="valid"+a,y="errs__"+a,w=e.util.copy(e),R="";w.level++;var C="valid"+w.level,A="i"+a,te=w.dataLevel=e.dataLevel+1,Y="data"+te,U=e.baseId,F=e.opts.strictKeywords?typeof c=="object"&&Object.keys(c).length>0||c===!1:e.util.schemaHasRules(c,e.RULES.all);if(t+="var "+y+" = errors;var "+E+";",F){var ee=e.compositeRule;e.compositeRule=w.compositeRule=!0,w.schema=c,w.schemaPath=f,w.errSchemaPath=m,t+=" var "+C+" = false; for (var "+A+" = 0; "+A+" < "+_+".length; "+A+"++) { ",w.errorPath=e.util.getPathExpr(e.errorPath,A,e.opts.jsonPointers,!0);var u=_+"["+A+"]";w.dataPathArr[te]=A;var P=e.validate(w);w.baseId=U,e.util.varOccurences(P,Y)<2?t+=" "+e.util.varReplace(P,Y,u)+" ":t+=" var "+Y+" = "+u+"; "+P+" ",t+=" if ("+C+") break; } ",e.compositeRule=w.compositeRule=ee,t+=" "+R+" if (!"+C+") {"}else t+=" if ("+_+".length == 0) {";var W=W||[];W.push(t),t="",e.createErrors!==!1?(t+=" { keyword: 'contains' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(m)+" , params: {} ",e.opts.messages!==!1&&(t+=" , message: 'should contain a valid item' "),e.opts.verbose&&(t+=" , schema: validate.schema"+f+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+_+" "),t+=" } "):t+=" {} ";var z=t;return t=W.pop(),!e.compositeRule&&p?e.async?t+=" throw new ValidationError(["+z+"]); ":t+=" validate.errors = ["+z+"]; return false; ":t+=" var err = "+z+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",t+=" } else { ",F&&(t+=" errors = "+y+"; if (vErrors !== null) { if ("+y+") vErrors.length = "+y+"; else vErrors = null; } "),e.opts.allErrors&&(t+=" } "),t}),Ia}var Oa,Qu;function og(){return Qu||(Qu=1,Oa=function(e,r,s){var t=" ",a=e.level,l=e.dataLevel,c=e.schema[r],f=e.schemaPath+e.util.getProperty(r),m=e.errSchemaPath+"/"+r,p=!e.opts.allErrors,_="data"+(l||""),E="errs__"+a,y=e.util.copy(e),w="";y.level++;var R="valid"+y.level,C={},A={},te=e.opts.ownProperties;for(ee in c)if(ee!="__proto__"){var Y=c[ee],U=Array.isArray(Y)?A:C;U[ee]=Y}t+="var "+E+" = errors;";var F=e.errorPath;t+="var missing"+a+";";for(var ee in A)if(U=A[ee],U.length){if(t+=" if ( "+_+e.util.getProperty(ee)+" !== undefined ",te&&(t+=" && Object.prototype.hasOwnProperty.call("+_+", '"+e.util.escapeQuotes(ee)+"') "),p){t+=" && ( ";var u=U;if(u)for(var P,W=-1,z=u.length-1;W<z;){P=u[W+=1],W&&(t+=" || ");var G=e.util.getProperty(P),X=_+G;t+=" ( ( "+X+" === undefined ",te&&(t+=" || ! Object.prototype.hasOwnProperty.call("+_+", '"+e.util.escapeQuotes(P)+"') "),t+=") && (missing"+a+" = "+e.util.toQuotedString(e.opts.jsonPointers?P:G)+") ) "}t+=")) { ";var oe="missing"+a,ye="' + "+oe+" + '";e.opts._errorDataPathProperty&&(e.errorPath=e.opts.jsonPointers?e.util.getPathExpr(F,oe,!0):F+" + "+oe);var Oe=Oe||[];Oe.push(t),t="",e.createErrors!==!1?(t+=" { keyword: 'dependencies' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(m)+" , params: { property: '"+e.util.escapeQuotes(ee)+"', missingProperty: '"+ye+"', depsCount: "+U.length+", deps: '"+e.util.escapeQuotes(U.length==1?U[0]:U.join(", "))+"' } ",e.opts.messages!==!1&&(t+=" , message: 'should have ",U.length==1?t+="property "+e.util.escapeQuotes(U[0]):t+="properties "+e.util.escapeQuotes(U.join(", ")),t+=" when property "+e.util.escapeQuotes(ee)+" is present' "),e.opts.verbose&&(t+=" , schema: validate.schema"+f+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+_+" "),t+=" } "):t+=" {} ";var ze=t;t=Oe.pop(),!e.compositeRule&&p?e.async?t+=" throw new ValidationError(["+ze+"]); ":t+=" validate.errors = ["+ze+"]; return false; ":t+=" var err = "+ze+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}else{t+=" ) { ";var he=U;if(he)for(var P,re=-1,we=he.length-1;re<we;){P=he[re+=1];var G=e.util.getProperty(P),ye=e.util.escapeQuotes(P),X=_+G;e.opts._errorDataPathProperty&&(e.errorPath=e.util.getPath(F,P,e.opts.jsonPointers)),t+=" if ( "+X+" === undefined ",te&&(t+=" || ! Object.prototype.hasOwnProperty.call("+_+", '"+e.util.escapeQuotes(P)+"') "),t+=") { var err = ",e.createErrors!==!1?(t+=" { keyword: 'dependencies' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(m)+" , params: { property: '"+e.util.escapeQuotes(ee)+"', missingProperty: '"+ye+"', depsCount: "+U.length+", deps: '"+e.util.escapeQuotes(U.length==1?U[0]:U.join(", "))+"' } ",e.opts.messages!==!1&&(t+=" , message: 'should have ",U.length==1?t+="property "+e.util.escapeQuotes(U[0]):t+="properties "+e.util.escapeQuotes(U.join(", ")),t+=" when property "+e.util.escapeQuotes(ee)+" is present' "),e.opts.verbose&&(t+=" , schema: validate.schema"+f+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+_+" "),t+=" } "):t+=" {} ",t+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; } "}}t+=" } ",p&&(w+="}",t+=" else { ")}e.errorPath=F;var xe=y.baseId;for(var ee in C){var Y=C[ee];(e.opts.strictKeywords?typeof Y=="object"&&Object.keys(Y).length>0||Y===!1:e.util.schemaHasRules(Y,e.RULES.all))&&(t+=" "+R+" = true; if ( "+_+e.util.getProperty(ee)+" !== undefined ",te&&(t+=" && Object.prototype.hasOwnProperty.call("+_+", '"+e.util.escapeQuotes(ee)+"') "),t+=") { ",y.schema=Y,y.schemaPath=f+e.util.getProperty(ee),y.errSchemaPath=m+"/"+e.util.escapeFragment(ee),t+=" "+e.validate(y)+" ",y.baseId=xe,t+=" } ",p&&(t+=" if ("+R+") { ",w+="}"))}return p&&(t+=" "+w+" if ("+E+" == errors) {"),t}),Oa}var La,Zu;function lg(){return Zu||(Zu=1,La=function(e,r,s){var t=" ",a=e.level,l=e.dataLevel,c=e.schema[r],f=e.schemaPath+e.util.getProperty(r),m=e.errSchemaPath+"/"+r,p=!e.opts.allErrors,_="data"+(l||""),E="valid"+a,y=e.opts.$data&&c&&c.$data;y&&(t+=" var schema"+a+" = "+e.util.getData(c.$data,l,e.dataPathArr)+"; ");var w="i"+a,R="schema"+a;y||(t+=" var "+R+" = validate.schema"+f+";"),t+="var "+E+";",y&&(t+=" if (schema"+a+" === undefined) "+E+" = true; else if (!Array.isArray(schema"+a+")) "+E+" = false; else {"),t+=""+E+" = false;for (var "+w+"=0; "+w+"<"+R+".length; "+w+"++) if (equal("+_+", "+R+"["+w+"])) { "+E+" = true; break; }",y&&(t+=" } "),t+=" if (!"+E+") { ";var C=C||[];C.push(t),t="",e.createErrors!==!1?(t+=" { keyword: 'enum' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(m)+" , params: { allowedValues: schema"+a+" } ",e.opts.messages!==!1&&(t+=" , message: 'should be equal to one of the allowed values' "),e.opts.verbose&&(t+=" , schema: validate.schema"+f+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+_+" "),t+=" } "):t+=" {} ";var A=t;return t=C.pop(),!e.compositeRule&&p?e.async?t+=" throw new ValidationError(["+A+"]); ":t+=" validate.errors = ["+A+"]; return false; ":t+=" var err = "+A+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",t+=" }",p&&(t+=" else { "),t}),La}var Da,ec;function ug(){return ec||(ec=1,Da=function(e,r,s){var t=" ",a=e.level,l=e.dataLevel,c=e.schema[r],f=e.schemaPath+e.util.getProperty(r),m=e.errSchemaPath+"/"+r,p=!e.opts.allErrors,_="data"+(l||"");if(e.opts.format===!1)return p&&(t+=" if (true) { "),t;var E=e.opts.$data&&c&&c.$data,y;E?(t+=" var schema"+a+" = "+e.util.getData(c.$data,l,e.dataPathArr)+"; ",y="schema"+a):y=c;var w=e.opts.unknownFormats,R=Array.isArray(w);if(E){var C="format"+a,A="isObject"+a,te="formatType"+a;t+=" var "+C+" = formats["+y+"]; var "+A+" = typeof "+C+" == 'object' && !("+C+" instanceof RegExp) && "+C+".validate; var "+te+" = "+A+" && "+C+".type || 'string'; if ("+A+") { ",e.async&&(t+=" var async"+a+" = "+C+".async; "),t+=" "+C+" = "+C+".validate; } if ( ",E&&(t+=" ("+y+" !== undefined && typeof "+y+" != 'string') || "),t+=" (",w!="ignore"&&(t+=" ("+y+" && !"+C+" ",R&&(t+=" && self._opts.unknownFormats.indexOf("+y+") == -1 "),t+=") || "),t+=" ("+C+" && "+te+" == '"+s+"' && !(typeof "+C+" == 'function' ? ",e.async?t+=" (async"+a+" ? await "+C+"("+_+") : "+C+"("+_+")) ":t+=" "+C+"("+_+") ",t+=" : "+C+".test("+_+"))))) {"}else{var C=e.formats[c];if(!C){if(w=="ignore")return e.logger.warn('unknown format "'+c+'" ignored in schema at path "'+e.errSchemaPath+'"'),p&&(t+=" if (true) { "),t;if(R&&w.indexOf(c)>=0)return p&&(t+=" if (true) { "),t;throw new Error('unknown format "'+c+'" is used in schema at path "'+e.errSchemaPath+'"')}var A=typeof C=="object"&&!(C instanceof RegExp)&&C.validate,te=A&&C.type||"string";if(A){var Y=C.async===!0;C=C.validate}if(te!=s)return p&&(t+=" if (true) { "),t;if(Y){if(!e.async)throw new Error("async format in sync schema");var U="formats"+e.util.getProperty(c)+".validate";t+=" if (!(await "+U+"("+_+"))) { "}else{t+=" if (! ";var U="formats"+e.util.getProperty(c);A&&(U+=".validate"),typeof C=="function"?t+=" "+U+"("+_+") ":t+=" "+U+".test("+_+") ",t+=") { "}}var F=F||[];F.push(t),t="",e.createErrors!==!1?(t+=" { keyword: 'format' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(m)+" , params: { format: ",E?t+=""+y:t+=""+e.util.toQuotedString(c),t+=" } ",e.opts.messages!==!1&&(t+=` , message: 'should match format "`,E?t+="' + "+y+" + '":t+=""+e.util.escapeQuotes(c),t+=`"' `),e.opts.verbose&&(t+=" , schema: ",E?t+="validate.schema"+f:t+=""+e.util.toQuotedString(c),t+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+_+" "),t+=" } "):t+=" {} ";var ee=t;return t=F.pop(),!e.compositeRule&&p?e.async?t+=" throw new ValidationError(["+ee+"]); ":t+=" validate.errors = ["+ee+"]; return false; ":t+=" var err = "+ee+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",t+=" } ",p&&(t+=" else { "),t}),Da}var Na,tc;function cg(){return tc||(tc=1,Na=function(e,r,s){var t=" ",a=e.level,l=e.dataLevel,c=e.schema[r],f=e.schemaPath+e.util.getProperty(r),m=e.errSchemaPath+"/"+r,p=!e.opts.allErrors,_="data"+(l||""),E="valid"+a,y="errs__"+a,w=e.util.copy(e);w.level++;var R="valid"+w.level,C=e.schema.then,A=e.schema.else,te=C!==void 0&&(e.opts.strictKeywords?typeof C=="object"&&Object.keys(C).length>0||C===!1:e.util.schemaHasRules(C,e.RULES.all)),Y=A!==void 0&&(e.opts.strictKeywords?typeof A=="object"&&Object.keys(A).length>0||A===!1:e.util.schemaHasRules(A,e.RULES.all)),U=w.baseId;if(te||Y){var F;w.createErrors=!1,w.schema=c,w.schemaPath=f,w.errSchemaPath=m,t+=" var "+y+" = errors; var "+E+" = true; ";var ee=e.compositeRule;e.compositeRule=w.compositeRule=!0,t+=" "+e.validate(w)+" ",w.baseId=U,w.createErrors=!0,t+=" errors = "+y+"; if (vErrors !== null) { if ("+y+") vErrors.length = "+y+"; else vErrors = null; } ",e.compositeRule=w.compositeRule=ee,te?(t+=" if ("+R+") { ",w.schema=e.schema.then,w.schemaPath=e.schemaPath+".then",w.errSchemaPath=e.errSchemaPath+"/then",t+=" "+e.validate(w)+" ",w.baseId=U,t+=" "+E+" = "+R+"; ",te&&Y?(F="ifClause"+a,t+=" var "+F+" = 'then'; "):F="'then'",t+=" } ",Y&&(t+=" else { ")):t+=" if (!"+R+") { ",Y&&(w.schema=e.schema.else,w.schemaPath=e.schemaPath+".else",w.errSchemaPath=e.errSchemaPath+"/else",t+=" "+e.validate(w)+" ",w.baseId=U,t+=" "+E+" = "+R+"; ",te&&Y?(F="ifClause"+a,t+=" var "+F+" = 'else'; "):F="'else'",t+=" } "),t+=" if (!"+E+") { var err = ",e.createErrors!==!1?(t+=" { keyword: 'if' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(m)+" , params: { failingKeyword: "+F+" } ",e.opts.messages!==!1&&(t+=` , message: 'should match "' + `+F+` + '" schema' `),e.opts.verbose&&(t+=" , schema: validate.schema"+f+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+_+" "),t+=" } "):t+=" {} ",t+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",!e.compositeRule&&p&&(e.async?t+=" throw new ValidationError(vErrors); ":t+=" validate.errors = vErrors; return false; "),t+=" } ",p&&(t+=" else { ")}else p&&(t+=" if (true) { ");return t}),Na}var ka,rc;function dg(){return rc||(rc=1,ka=function(e,r,s){var t=" ",a=e.level,l=e.dataLevel,c=e.schema[r],f=e.schemaPath+e.util.getProperty(r),m=e.errSchemaPath+"/"+r,p=!e.opts.allErrors,_="data"+(l||""),E="valid"+a,y="errs__"+a,w=e.util.copy(e),R="";w.level++;var C="valid"+w.level,A="i"+a,te=w.dataLevel=e.dataLevel+1,Y="data"+te,U=e.baseId;if(t+="var "+y+" = errors;var "+E+";",Array.isArray(c)){var F=e.schema.additionalItems;if(F===!1){t+=" "+E+" = "+_+".length <= "+c.length+"; ";var ee=m;m=e.errSchemaPath+"/additionalItems",t+=" if (!"+E+") { ";var u=u||[];u.push(t),t="",e.createErrors!==!1?(t+=" { keyword: 'additionalItems' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(m)+" , params: { limit: "+c.length+" } ",e.opts.messages!==!1&&(t+=" , message: 'should NOT have more than "+c.length+" items' "),e.opts.verbose&&(t+=" , schema: false , parentSchema: validate.schema"+e.schemaPath+" , data: "+_+" "),t+=" } "):t+=" {} ";var P=t;t=u.pop(),!e.compositeRule&&p?e.async?t+=" throw new ValidationError(["+P+"]); ":t+=" validate.errors = ["+P+"]; return false; ":t+=" var err = "+P+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",t+=" } ",m=ee,p&&(R+="}",t+=" else { ")}var W=c;if(W){for(var z,G=-1,X=W.length-1;G<X;)if(z=W[G+=1],e.opts.strictKeywords?typeof z=="object"&&Object.keys(z).length>0||z===!1:e.util.schemaHasRules(z,e.RULES.all)){t+=" "+C+" = true; if ("+_+".length > "+G+") { ";var oe=_+"["+G+"]";w.schema=z,w.schemaPath=f+"["+G+"]",w.errSchemaPath=m+"/"+G,w.errorPath=e.util.getPathExpr(e.errorPath,G,e.opts.jsonPointers,!0),w.dataPathArr[te]=G;var ye=e.validate(w);w.baseId=U,e.util.varOccurences(ye,Y)<2?t+=" "+e.util.varReplace(ye,Y,oe)+" ":t+=" var "+Y+" = "+oe+"; "+ye+" ",t+=" } ",p&&(t+=" if ("+C+") { ",R+="}")}}if(typeof F=="object"&&(e.opts.strictKeywords?typeof F=="object"&&Object.keys(F).length>0||F===!1:e.util.schemaHasRules(F,e.RULES.all))){w.schema=F,w.schemaPath=e.schemaPath+".additionalItems",w.errSchemaPath=e.errSchemaPath+"/additionalItems",t+=" "+C+" = true; if ("+_+".length > "+c.length+") { for (var "+A+" = "+c.length+"; "+A+" < "+_+".length; "+A+"++) { ",w.errorPath=e.util.getPathExpr(e.errorPath,A,e.opts.jsonPointers,!0);var oe=_+"["+A+"]";w.dataPathArr[te]=A;var ye=e.validate(w);w.baseId=U,e.util.varOccurences(ye,Y)<2?t+=" "+e.util.varReplace(ye,Y,oe)+" ":t+=" var "+Y+" = "+oe+"; "+ye+" ",p&&(t+=" if (!"+C+") break; "),t+=" } } ",p&&(t+=" if ("+C+") { ",R+="}")}}else if(e.opts.strictKeywords?typeof c=="object"&&Object.keys(c).length>0||c===!1:e.util.schemaHasRules(c,e.RULES.all)){w.schema=c,w.schemaPath=f,w.errSchemaPath=m,t+=" for (var "+A+" = 0; "+A+" < "+_+".length; "+A+"++) { ",w.errorPath=e.util.getPathExpr(e.errorPath,A,e.opts.jsonPointers,!0);var oe=_+"["+A+"]";w.dataPathArr[te]=A;var ye=e.validate(w);w.baseId=U,e.util.varOccurences(ye,Y)<2?t+=" "+e.util.varReplace(ye,Y,oe)+" ":t+=" var "+Y+" = "+oe+"; "+ye+" ",p&&(t+=" if (!"+C+") break; "),t+=" }"}return p&&(t+=" "+R+" if ("+y+" == errors) {"),t}),ka}var ja,ic;function sc(){return ic||(ic=1,ja=function(e,r,s){var t=" ",a=e.level,l=e.dataLevel,c=e.schema[r],f=e.schemaPath+e.util.getProperty(r),m=e.errSchemaPath+"/"+r,p=!e.opts.allErrors,U,_="data"+(l||""),E=e.opts.$data&&c&&c.$data,y;E?(t+=" var schema"+a+" = "+e.util.getData(c.$data,l,e.dataPathArr)+"; ",y="schema"+a):y=c;var w=r=="maximum",R=w?"exclusiveMaximum":"exclusiveMinimum",C=e.schema[R],A=e.opts.$data&&C&&C.$data,te=w?"<":">",Y=w?">":"<",U=void 0;if(!(E||typeof c=="number"||c===void 0))throw new Error(r+" must be number");if(!(A||C===void 0||typeof C=="number"||typeof C=="boolean"))throw new Error(R+" must be number or boolean");if(A){var F=e.util.getData(C.$data,l,e.dataPathArr),ee="exclusive"+a,u="exclType"+a,P="exclIsNumber"+a,W="op"+a,z="' + "+W+" + '";t+=" var schemaExcl"+a+" = "+F+"; ",F="schemaExcl"+a,t+=" var "+ee+"; var "+u+" = typeof "+F+"; if ("+u+" != 'boolean' && "+u+" != 'undefined' && "+u+" != 'number') { ";var U=R,G=G||[];G.push(t),t="",e.createErrors!==!1?(t+=" { keyword: '"+(U||"_exclusiveLimit")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(m)+" , params: {} ",e.opts.messages!==!1&&(t+=" , message: '"+R+" should be boolean' "),e.opts.verbose&&(t+=" , schema: validate.schema"+f+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+_+" "),t+=" } "):t+=" {} ";var X=t;t=G.pop(),!e.compositeRule&&p?e.async?t+=" throw new ValidationError(["+X+"]); ":t+=" validate.errors = ["+X+"]; return false; ":t+=" var err = "+X+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",t+=" } else if ( ",E&&(t+=" ("+y+" !== undefined && typeof "+y+" != 'number') || "),t+=" "+u+" == 'number' ? ( ("+ee+" = "+y+" === undefined || "+F+" "+te+"= "+y+") ? "+_+" "+Y+"= "+F+" : "+_+" "+Y+" "+y+" ) : ( ("+ee+" = "+F+" === true) ? "+_+" "+Y+"= "+y+" : "+_+" "+Y+" "+y+" ) || "+_+" !== "+_+") { var op"+a+" = "+ee+" ? '"+te+"' : '"+te+"='; ",c===void 0&&(U=R,m=e.errSchemaPath+"/"+R,y=F,E=A)}else{var P=typeof C=="number",z=te;if(P&&E){var W="'"+z+"'";t+=" if ( ",E&&(t+=" ("+y+" !== undefined && typeof "+y+" != 'number') || "),t+=" ( "+y+" === undefined || "+C+" "+te+"= "+y+" ? "+_+" "+Y+"= "+C+" : "+_+" "+Y+" "+y+" ) || "+_+" !== "+_+") { "}else{P&&c===void 0?(ee=!0,U=R,m=e.errSchemaPath+"/"+R,y=C,Y+="="):(P&&(y=Math[w?"min":"max"](C,c)),C===(P?y:!0)?(ee=!0,U=R,m=e.errSchemaPath+"/"+R,Y+="="):(ee=!1,z+="="));var W="'"+z+"'";t+=" if ( ",E&&(t+=" ("+y+" !== undefined && typeof "+y+" != 'number') || "),t+=" "+_+" "+Y+" "+y+" || "+_+" !== "+_+") { "}}U=U||r;var G=G||[];G.push(t),t="",e.createErrors!==!1?(t+=" { keyword: '"+(U||"_limit")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(m)+" , params: { comparison: "+W+", limit: "+y+", exclusive: "+ee+" } ",e.opts.messages!==!1&&(t+=" , message: 'should be "+z+" ",E?t+="' + "+y:t+=""+y+"'"),e.opts.verbose&&(t+=" , schema: ",E?t+="validate.schema"+f:t+=""+c,t+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+_+" "),t+=" } "):t+=" {} ";var X=t;return t=G.pop(),!e.compositeRule&&p?e.async?t+=" throw new ValidationError(["+X+"]); ":t+=" validate.errors = ["+X+"]; return false; ":t+=" var err = "+X+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",t+=" } ",p&&(t+=" else { "),t}),ja}var Ma,nc;function ac(){return nc||(nc=1,Ma=function(e,r,s){var t=" ",a=e.level,l=e.dataLevel,c=e.schema[r],f=e.schemaPath+e.util.getProperty(r),m=e.errSchemaPath+"/"+r,p=!e.opts.allErrors,R,_="data"+(l||""),E=e.opts.$data&&c&&c.$data,y;if(E?(t+=" var schema"+a+" = "+e.util.getData(c.$data,l,e.dataPathArr)+"; ",y="schema"+a):y=c,!(E||typeof c=="number"))throw new Error(r+" must be number");var w=r=="maxItems"?">":"<";t+="if ( ",E&&(t+=" ("+y+" !== undefined && typeof "+y+" != 'number') || "),t+=" "+_+".length "+w+" "+y+") { ";var R=r,C=C||[];C.push(t),t="",e.createErrors!==!1?(t+=" { keyword: '"+(R||"_limitItems")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(m)+" , params: { limit: "+y+" } ",e.opts.messages!==!1&&(t+=" , message: 'should NOT have ",r=="maxItems"?t+="more":t+="fewer",t+=" than ",E?t+="' + "+y+" + '":t+=""+c,t+=" items' "),e.opts.verbose&&(t+=" , schema: ",E?t+="validate.schema"+f:t+=""+c,t+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+_+" "),t+=" } "):t+=" {} ";var A=t;return t=C.pop(),!e.compositeRule&&p?e.async?t+=" throw new ValidationError(["+A+"]); ":t+=" validate.errors = ["+A+"]; return false; ":t+=" var err = "+A+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",t+="} ",p&&(t+=" else { "),t}),Ma}var $a,oc;function lc(){return oc||(oc=1,$a=function(e,r,s){var t=" ",a=e.level,l=e.dataLevel,c=e.schema[r],f=e.schemaPath+e.util.getProperty(r),m=e.errSchemaPath+"/"+r,p=!e.opts.allErrors,R,_="data"+(l||""),E=e.opts.$data&&c&&c.$data,y;if(E?(t+=" var schema"+a+" = "+e.util.getData(c.$data,l,e.dataPathArr)+"; ",y="schema"+a):y=c,!(E||typeof c=="number"))throw new Error(r+" must be number");var w=r=="maxLength"?">":"<";t+="if ( ",E&&(t+=" ("+y+" !== undefined && typeof "+y+" != 'number') || "),e.opts.unicode===!1?t+=" "+_+".length ":t+=" ucs2length("+_+") ",t+=" "+w+" "+y+") { ";var R=r,C=C||[];C.push(t),t="",e.createErrors!==!1?(t+=" { keyword: '"+(R||"_limitLength")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(m)+" , params: { limit: "+y+" } ",e.opts.messages!==!1&&(t+=" , message: 'should NOT be ",r=="maxLength"?t+="longer":t+="shorter",t+=" than ",E?t+="' + "+y+" + '":t+=""+c,t+=" characters' "),e.opts.verbose&&(t+=" , schema: ",E?t+="validate.schema"+f:t+=""+c,t+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+_+" "),t+=" } "):t+=" {} ";var A=t;return t=C.pop(),!e.compositeRule&&p?e.async?t+=" throw new ValidationError(["+A+"]); ":t+=" validate.errors = ["+A+"]; return false; ":t+=" var err = "+A+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",t+="} ",p&&(t+=" else { "),t}),$a}var qa,uc;function cc(){return uc||(uc=1,qa=function(e,r,s){var t=" ",a=e.level,l=e.dataLevel,c=e.schema[r],f=e.schemaPath+e.util.getProperty(r),m=e.errSchemaPath+"/"+r,p=!e.opts.allErrors,R,_="data"+(l||""),E=e.opts.$data&&c&&c.$data,y;if(E?(t+=" var schema"+a+" = "+e.util.getData(c.$data,l,e.dataPathArr)+"; ",y="schema"+a):y=c,!(E||typeof c=="number"))throw new Error(r+" must be number");var w=r=="maxProperties"?">":"<";t+="if ( ",E&&(t+=" ("+y+" !== undefined && typeof "+y+" != 'number') || "),t+=" Object.keys("+_+").length "+w+" "+y+") { ";var R=r,C=C||[];C.push(t),t="",e.createErrors!==!1?(t+=" { keyword: '"+(R||"_limitProperties")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(m)+" , params: { limit: "+y+" } ",e.opts.messages!==!1&&(t+=" , message: 'should NOT have ",r=="maxProperties"?t+="more":t+="fewer",t+=" than ",E?t+="' + "+y+" + '":t+=""+c,t+=" properties' "),e.opts.verbose&&(t+=" , schema: ",E?t+="validate.schema"+f:t+=""+c,t+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+_+" "),t+=" } "):t+=" {} ";var A=t;return t=C.pop(),!e.compositeRule&&p?e.async?t+=" throw new ValidationError(["+A+"]); ":t+=" validate.errors = ["+A+"]; return false; ":t+=" var err = "+A+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",t+="} ",p&&(t+=" else { "),t}),qa}var Fa,dc;function hg(){return dc||(dc=1,Fa=function(e,r,s){var t=" ",a=e.level,l=e.dataLevel,c=e.schema[r],f=e.schemaPath+e.util.getProperty(r),m=e.errSchemaPath+"/"+r,p=!e.opts.allErrors,_="data"+(l||""),E=e.opts.$data&&c&&c.$data,y;if(E?(t+=" var schema"+a+" = "+e.util.getData(c.$data,l,e.dataPathArr)+"; ",y="schema"+a):y=c,!(E||typeof c=="number"))throw new Error(r+" must be number");t+="var division"+a+";if (",E&&(t+=" "+y+" !== undefined && ( typeof "+y+" != 'number' || "),t+=" (division"+a+" = "+_+" / "+y+", ",e.opts.multipleOfPrecision?t+=" Math.abs(Math.round(division"+a+") - division"+a+") > 1e-"+e.opts.multipleOfPrecision+" ":t+=" division"+a+" !== parseInt(division"+a+") ",t+=" ) ",E&&(t+=" ) "),t+=" ) { ";var w=w||[];w.push(t),t="",e.createErrors!==!1?(t+=" { keyword: 'multipleOf' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(m)+" , params: { multipleOf: "+y+" } ",e.opts.messages!==!1&&(t+=" , message: 'should be multiple of ",E?t+="' + "+y:t+=""+y+"'"),e.opts.verbose&&(t+=" , schema: ",E?t+="validate.schema"+f:t+=""+c,t+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+_+" "),t+=" } "):t+=" {} ";var R=t;return t=w.pop(),!e.compositeRule&&p?e.async?t+=" throw new ValidationError(["+R+"]); ":t+=" validate.errors = ["+R+"]; return false; ":t+=" var err = "+R+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",t+="} ",p&&(t+=" else { "),t}),Fa}var Va,hc;function fg(){return hc||(hc=1,Va=function(e,r,s){var t=" ",a=e.level,l=e.dataLevel,c=e.schema[r],f=e.schemaPath+e.util.getProperty(r),m=e.errSchemaPath+"/"+r,p=!e.opts.allErrors,_="data"+(l||""),E="errs__"+a,y=e.util.copy(e);y.level++;var w="valid"+y.level;if(e.opts.strictKeywords?typeof c=="object"&&Object.keys(c).length>0||c===!1:e.util.schemaHasRules(c,e.RULES.all)){y.schema=c,y.schemaPath=f,y.errSchemaPath=m,t+=" var "+E+" = errors; ";var R=e.compositeRule;e.compositeRule=y.compositeRule=!0,y.createErrors=!1;var C;y.opts.allErrors&&(C=y.opts.allErrors,y.opts.allErrors=!1),t+=" "+e.validate(y)+" ",y.createErrors=!0,C&&(y.opts.allErrors=C),e.compositeRule=y.compositeRule=R,t+=" if ("+w+") { ";var A=A||[];A.push(t),t="",e.createErrors!==!1?(t+=" { keyword: 'not' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(m)+" , params: {} ",e.opts.messages!==!1&&(t+=" , message: 'should NOT be valid' "),e.opts.verbose&&(t+=" , schema: validate.schema"+f+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+_+" "),t+=" } "):t+=" {} ";var te=t;t=A.pop(),!e.compositeRule&&p?e.async?t+=" throw new ValidationError(["+te+"]); ":t+=" validate.errors = ["+te+"]; return false; ":t+=" var err = "+te+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",t+=" } else { errors = "+E+"; if (vErrors !== null) { if ("+E+") vErrors.length = "+E+"; else vErrors = null; } ",e.opts.allErrors&&(t+=" } ")}else t+=" var err = ",e.createErrors!==!1?(t+=" { keyword: 'not' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(m)+" , params: {} ",e.opts.messages!==!1&&(t+=" , message: 'should NOT be valid' "),e.opts.verbose&&(t+=" , schema: validate.schema"+f+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+_+" "),t+=" } "):t+=" {} ",t+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",p&&(t+=" if (false) { ");return t}),Va}var Ua,fc;function pg(){return fc||(fc=1,Ua=function(e,r,s){var t=" ",a=e.level,l=e.dataLevel,c=e.schema[r],f=e.schemaPath+e.util.getProperty(r),m=e.errSchemaPath+"/"+r,p=!e.opts.allErrors,_="data"+(l||""),E="valid"+a,y="errs__"+a,w=e.util.copy(e),R="";w.level++;var C="valid"+w.level,A=w.baseId,te="prevValid"+a,Y="passingSchemas"+a;t+="var "+y+" = errors , "+te+" = false , "+E+" = false , "+Y+" = null; ";var U=e.compositeRule;e.compositeRule=w.compositeRule=!0;var F=c;if(F)for(var ee,u=-1,P=F.length-1;u<P;)ee=F[u+=1],(e.opts.strictKeywords?typeof ee=="object"&&Object.keys(ee).length>0||ee===!1:e.util.schemaHasRules(ee,e.RULES.all))?(w.schema=ee,w.schemaPath=f+"["+u+"]",w.errSchemaPath=m+"/"+u,t+=" "+e.validate(w)+" ",w.baseId=A):t+=" var "+C+" = true; ",u&&(t+=" if ("+C+" && "+te+") { "+E+" = false; "+Y+" = ["+Y+", "+u+"]; } else { ",R+="}"),t+=" if ("+C+") { "+E+" = "+te+" = true; "+Y+" = "+u+"; }";return e.compositeRule=w.compositeRule=U,t+=""+R+"if (!"+E+") { var err = ",e.createErrors!==!1?(t+=" { keyword: 'oneOf' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(m)+" , params: { passingSchemas: "+Y+" } ",e.opts.messages!==!1&&(t+=" , message: 'should match exactly one schema in oneOf' "),e.opts.verbose&&(t+=" , schema: validate.schema"+f+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+_+" "),t+=" } "):t+=" {} ",t+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",!e.compositeRule&&p&&(e.async?t+=" throw new ValidationError(vErrors); ":t+=" validate.errors = vErrors; return false; "),t+="} else { errors = "+y+"; if (vErrors !== null) { if ("+y+") vErrors.length = "+y+"; else vErrors = null; }",e.opts.allErrors&&(t+=" } "),t}),Ua}var Ba,pc;function mg(){return pc||(pc=1,Ba=function(e,r,s){var t=" ",a=e.level,l=e.dataLevel,c=e.schema[r],f=e.schemaPath+e.util.getProperty(r),m=e.errSchemaPath+"/"+r,p=!e.opts.allErrors,_="data"+(l||""),E="valid"+a,y=e.opts.$data&&c&&c.$data,w;y?(t+=" var schema"+a+" = "+e.util.getData(c.$data,l,e.dataPathArr)+"; ",w="schema"+a):w=c;var R=e.opts.regExp?"regExp":"new RegExp";if(y)t+=" var "+E+" = true; try { "+E+" = "+R+"("+w+").test("+_+"); } catch(e) { "+E+" = false; } if ( ",y&&(t+=" ("+w+" !== undefined && typeof "+w+" != 'string') || "),t+=" !"+E+") {";else{var C=e.usePattern(c);t+=" if ( ",y&&(t+=" ("+w+" !== undefined && typeof "+w+" != 'string') || "),t+=" !"+C+".test("+_+") ) {"}var A=A||[];A.push(t),t="",e.createErrors!==!1?(t+=" { keyword: 'pattern' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(m)+" , params: { pattern: ",y?t+=""+w:t+=""+e.util.toQuotedString(c),t+=" } ",e.opts.messages!==!1&&(t+=` , message: 'should match pattern "`,y?t+="' + "+w+" + '":t+=""+e.util.escapeQuotes(c),t+=`"' `),e.opts.verbose&&(t+=" , schema: ",y?t+="validate.schema"+f:t+=""+e.util.toQuotedString(c),t+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+_+" "),t+=" } "):t+=" {} ";var te=t;return t=A.pop(),!e.compositeRule&&p?e.async?t+=" throw new ValidationError(["+te+"]); ":t+=" validate.errors = ["+te+"]; return false; ":t+=" var err = "+te+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",t+="} ",p&&(t+=" else { "),t}),Ba}var za,mc;function gg(){return mc||(mc=1,za=function(e,r,s){var t=" ",a=e.level,l=e.dataLevel,c=e.schema[r],f=e.schemaPath+e.util.getProperty(r),m=e.errSchemaPath+"/"+r,p=!e.opts.allErrors,_="data"+(l||""),E="errs__"+a,y=e.util.copy(e),w="";y.level++;var R="valid"+y.level,C="key"+a,A="idx"+a,te=y.dataLevel=e.dataLevel+1,Y="data"+te,U="dataProperties"+a,F=Object.keys(c||{}).filter(re),ee=e.schema.patternProperties||{},u=Object.keys(ee).filter(re),P=e.schema.additionalProperties,W=F.length||u.length,z=P===!1,G=typeof P=="object"&&Object.keys(P).length,X=e.opts.removeAdditional,oe=z||G||X,ye=e.opts.ownProperties,Oe=e.baseId,ze=e.schema.required;if(ze&&!(e.opts.$data&&ze.$data)&&ze.length<e.opts.loopRequired)var he=e.util.toHash(ze);function re(k){return k!=="__proto__"}if(t+="var "+E+" = errors;var "+R+" = true;",ye&&(t+=" var "+U+" = undefined;"),oe){if(ye?t+=" "+U+" = "+U+" || Object.keys("+_+"); for (var "+A+"=0; "+A+"<"+U+".length; "+A+"++) { var "+C+" = "+U+"["+A+"]; ":t+=" for (var "+C+" in "+_+") { ",W){if(t+=" var isAdditional"+a+" = !(false ",F.length)if(F.length>8)t+=" || validate.schema"+f+".hasOwnProperty("+C+") ";else{var we=F;if(we)for(var xe,Fe=-1,Pe=we.length-1;Fe<Pe;)xe=we[Fe+=1],t+=" || "+C+" == "+e.util.toQuotedString(xe)+" "}if(u.length){var Ne=u;if(Ne)for(var Ue,qe=-1,$=Ne.length-1;qe<$;)Ue=Ne[qe+=1],t+=" || "+e.usePattern(Ue)+".test("+C+") "}t+=" ); if (isAdditional"+a+") { "}if(X=="all")t+=" delete "+_+"["+C+"]; ";else{var ce=e.errorPath,Ee="' + "+C+" + '";if(e.opts._errorDataPathProperty&&(e.errorPath=e.util.getPathExpr(e.errorPath,C,e.opts.jsonPointers)),z)if(X)t+=" delete "+_+"["+C+"]; ";else{t+=" "+R+" = false; ";var Ve=m;m=e.errSchemaPath+"/additionalProperties";var me=me||[];me.push(t),t="",e.createErrors!==!1?(t+=" { keyword: 'additionalProperties' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(m)+" , params: { additionalProperty: '"+Ee+"' } ",e.opts.messages!==!1&&(t+=" , message: '",e.opts._errorDataPathProperty?t+="is an invalid additional property":t+="should NOT have additional properties",t+="' "),e.opts.verbose&&(t+=" , schema: false , parentSchema: validate.schema"+e.schemaPath+" , data: "+_+" "),t+=" } "):t+=" {} ";var Re=t;t=me.pop(),!e.compositeRule&&p?e.async?t+=" throw new ValidationError(["+Re+"]); ":t+=" validate.errors = ["+Re+"]; return false; ":t+=" var err = "+Re+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",m=Ve,p&&(t+=" break; ")}else if(G)if(X=="failing"){t+=" var "+E+" = errors; ";var He=e.compositeRule;e.compositeRule=y.compositeRule=!0,y.schema=P,y.schemaPath=e.schemaPath+".additionalProperties",y.errSchemaPath=e.errSchemaPath+"/additionalProperties",y.errorPath=e.opts._errorDataPathProperty?e.errorPath:e.util.getPathExpr(e.errorPath,C,e.opts.jsonPointers);var rt=_+"["+C+"]";y.dataPathArr[te]=C;var g=e.validate(y);y.baseId=Oe,e.util.varOccurences(g,Y)<2?t+=" "+e.util.varReplace(g,Y,rt)+" ":t+=" var "+Y+" = "+rt+"; "+g+" ",t+=" if (!"+R+") { errors = "+E+"; if (validate.errors !== null) { if (errors) validate.errors.length = errors; else validate.errors = null; } delete "+_+"["+C+"]; } ",e.compositeRule=y.compositeRule=He}else{y.schema=P,y.schemaPath=e.schemaPath+".additionalProperties",y.errSchemaPath=e.errSchemaPath+"/additionalProperties",y.errorPath=e.opts._errorDataPathProperty?e.errorPath:e.util.getPathExpr(e.errorPath,C,e.opts.jsonPointers);var rt=_+"["+C+"]";y.dataPathArr[te]=C;var g=e.validate(y);y.baseId=Oe,e.util.varOccurences(g,Y)<2?t+=" "+e.util.varReplace(g,Y,rt)+" ":t+=" var "+Y+" = "+rt+"; "+g+" ",p&&(t+=" if (!"+R+") break; ")}e.errorPath=ce}W&&(t+=" } "),t+=" } ",p&&(t+=" if ("+R+") { ",w+="}")}var T=e.opts.useDefaults&&!e.compositeRule;if(F.length){var O=F;if(O)for(var xe,V=-1,se=O.length-1;V<se;){xe=O[V+=1];var fe=c[xe];if(e.opts.strictKeywords?typeof fe=="object"&&Object.keys(fe).length>0||fe===!1:e.util.schemaHasRules(fe,e.RULES.all)){var ke=e.util.getProperty(xe),rt=_+ke,et=T&&fe.default!==void 0;y.schema=fe,y.schemaPath=f+ke,y.errSchemaPath=m+"/"+e.util.escapeFragment(xe),y.errorPath=e.util.getPath(e.errorPath,xe,e.opts.jsonPointers),y.dataPathArr[te]=e.util.toQuotedString(xe);var g=e.validate(y);if(y.baseId=Oe,e.util.varOccurences(g,Y)<2){g=e.util.varReplace(g,Y,rt);var Ye=rt}else{var Ye=Y;t+=" var "+Y+" = "+rt+"; "}if(et)t+=" "+g+" ";else{if(he&&he[xe]){t+=" if ( "+Ye+" === undefined ",ye&&(t+=" || ! Object.prototype.hasOwnProperty.call("+_+", '"+e.util.escapeQuotes(xe)+"') "),t+=") { "+R+" = false; ";var ce=e.errorPath,Ve=m,at=e.util.escapeQuotes(xe);e.opts._errorDataPathProperty&&(e.errorPath=e.util.getPath(ce,xe,e.opts.jsonPointers)),m=e.errSchemaPath+"/required";var me=me||[];me.push(t),t="",e.createErrors!==!1?(t+=" { keyword: 'required' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(m)+" , params: { missingProperty: '"+at+"' } ",e.opts.messages!==!1&&(t+=" , message: '",e.opts._errorDataPathProperty?t+="is a required property":t+="should have required property \\'"+at+"\\'",t+="' "),e.opts.verbose&&(t+=" , schema: validate.schema"+f+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+_+" "),t+=" } "):t+=" {} ";var Re=t;t=me.pop(),!e.compositeRule&&p?e.async?t+=" throw new ValidationError(["+Re+"]); ":t+=" validate.errors = ["+Re+"]; return false; ":t+=" var err = "+Re+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",m=Ve,e.errorPath=ce,t+=" } else { "}else p?(t+=" if ( "+Ye+" === undefined ",ye&&(t+=" || ! Object.prototype.hasOwnProperty.call("+_+", '"+e.util.escapeQuotes(xe)+"') "),t+=") { "+R+" = true; } else { "):(t+=" if ("+Ye+" !== undefined ",ye&&(t+=" && Object.prototype.hasOwnProperty.call("+_+", '"+e.util.escapeQuotes(xe)+"') "),t+=" ) { ");t+=" "+g+" } "}}p&&(t+=" if ("+R+") { ",w+="}")}}if(u.length){var pt=u;if(pt)for(var Ue,Ce=-1,_t=pt.length-1;Ce<_t;){Ue=pt[Ce+=1];var fe=ee[Ue];if(e.opts.strictKeywords?typeof fe=="object"&&Object.keys(fe).length>0||fe===!1:e.util.schemaHasRules(fe,e.RULES.all)){y.schema=fe,y.schemaPath=e.schemaPath+".patternProperties"+e.util.getProperty(Ue),y.errSchemaPath=e.errSchemaPath+"/patternProperties/"+e.util.escapeFragment(Ue),ye?t+=" "+U+" = "+U+" || Object.keys("+_+"); for (var "+A+"=0; "+A+"<"+U+".length; "+A+"++) { var "+C+" = "+U+"["+A+"]; ":t+=" for (var "+C+" in "+_+") { ",t+=" if ("+e.usePattern(Ue)+".test("+C+")) { ",y.errorPath=e.util.getPathExpr(e.errorPath,C,e.opts.jsonPointers);var rt=_+"["+C+"]";y.dataPathArr[te]=C;var g=e.validate(y);y.baseId=Oe,e.util.varOccurences(g,Y)<2?t+=" "+e.util.varReplace(g,Y,rt)+" ":t+=" var "+Y+" = "+rt+"; "+g+" ",p&&(t+=" if (!"+R+") break; "),t+=" } ",p&&(t+=" else "+R+" = true; "),t+=" } ",p&&(t+=" if ("+R+") { ",w+="}")}}}return p&&(t+=" "+w+" if ("+E+" == errors) {"),t}),za}var Ha,gc;function vg(){return gc||(gc=1,Ha=function(e,r,s){var t=" ",a=e.level,l=e.dataLevel,c=e.schema[r],f=e.schemaPath+e.util.getProperty(r),m=e.errSchemaPath+"/"+r,p=!e.opts.allErrors,_="data"+(l||""),E="errs__"+a,y=e.util.copy(e),w="";y.level++;var R="valid"+y.level;if(t+="var "+E+" = errors;",e.opts.strictKeywords?typeof c=="object"&&Object.keys(c).length>0||c===!1:e.util.schemaHasRules(c,e.RULES.all)){y.schema=c,y.schemaPath=f,y.errSchemaPath=m;var C="key"+a,A="idx"+a,te="i"+a,Y="' + "+C+" + '",U=y.dataLevel=e.dataLevel+1,F="data"+U,ee="dataProperties"+a,u=e.opts.ownProperties,P=e.baseId;u&&(t+=" var "+ee+" = undefined; "),u?t+=" "+ee+" = "+ee+" || Object.keys("+_+"); for (var "+A+"=0; "+A+"<"+ee+".length; "+A+"++) { var "+C+" = "+ee+"["+A+"]; ":t+=" for (var "+C+" in "+_+") { ",t+=" var startErrs"+a+" = errors; ";var W=C,z=e.compositeRule;e.compositeRule=y.compositeRule=!0;var G=e.validate(y);y.baseId=P,e.util.varOccurences(G,F)<2?t+=" "+e.util.varReplace(G,F,W)+" ":t+=" var "+F+" = "+W+"; "+G+" ",e.compositeRule=y.compositeRule=z,t+=" if (!"+R+") { for (var "+te+"=startErrs"+a+"; "+te+"<errors; "+te+"++) { vErrors["+te+"].propertyName = "+C+"; } var err = ",e.createErrors!==!1?(t+=" { keyword: 'propertyNames' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(m)+" , params: { propertyName: '"+Y+"' } ",e.opts.messages!==!1&&(t+=" , message: 'property name \\'"+Y+"\\' is invalid' "),e.opts.verbose&&(t+=" , schema: validate.schema"+f+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+_+" "),t+=" } "):t+=" {} ",t+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",!e.compositeRule&&p&&(e.async?t+=" throw new ValidationError(vErrors); ":t+=" validate.errors = vErrors; return false; "),p&&(t+=" break; "),t+=" } }"}return p&&(t+=" "+w+" if ("+E+" == errors) {"),t}),Ha}var Wa,vc;function bg(){return vc||(vc=1,Wa=function(e,r,s){var t=" ",a=e.level,l=e.dataLevel,c=e.schema[r],f=e.schemaPath+e.util.getProperty(r),m=e.errSchemaPath+"/"+r,p=!e.opts.allErrors,_="data"+(l||""),E="valid"+a,y=e.opts.$data&&c&&c.$data;y&&(t+=" var schema"+a+" = "+e.util.getData(c.$data,l,e.dataPathArr)+"; ");var w="schema"+a;if(!y)if(c.length<e.opts.loopRequired&&e.schema.properties&&Object.keys(e.schema.properties).length){var R=[],C=c;if(C)for(var A,te=-1,Y=C.length-1;te<Y;){A=C[te+=1];var U=e.schema.properties[A];U&&(e.opts.strictKeywords?typeof U=="object"&&Object.keys(U).length>0||U===!1:e.util.schemaHasRules(U,e.RULES.all))||(R[R.length]=A)}}else var R=c;if(y||R.length){var F=e.errorPath,ee=y||R.length>=e.opts.loopRequired,u=e.opts.ownProperties;if(p)if(t+=" var missing"+a+"; ",ee){y||(t+=" var "+w+" = validate.schema"+f+"; ");var P="i"+a,W="schema"+a+"["+P+"]",z="' + "+W+" + '";e.opts._errorDataPathProperty&&(e.errorPath=e.util.getPathExpr(F,W,e.opts.jsonPointers)),t+=" var "+E+" = true; ",y&&(t+=" if (schema"+a+" === undefined) "+E+" = true; else if (!Array.isArray(schema"+a+")) "+E+" = false; else {"),t+=" for (var "+P+" = 0; "+P+" < "+w+".length; "+P+"++) { "+E+" = "+_+"["+w+"["+P+"]] !== undefined ",u&&(t+=" && Object.prototype.hasOwnProperty.call("+_+", "+w+"["+P+"]) "),t+="; if (!"+E+") break; } ",y&&(t+=" } "),t+=" if (!"+E+") { ";var G=G||[];G.push(t),t="",e.createErrors!==!1?(t+=" { keyword: 'required' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(m)+" , params: { missingProperty: '"+z+"' } ",e.opts.messages!==!1&&(t+=" , message: '",e.opts._errorDataPathProperty?t+="is a required property":t+="should have required property \\'"+z+"\\'",t+="' "),e.opts.verbose&&(t+=" , schema: validate.schema"+f+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+_+" "),t+=" } "):t+=" {} ";var X=t;t=G.pop(),!e.compositeRule&&p?e.async?t+=" throw new ValidationError(["+X+"]); ":t+=" validate.errors = ["+X+"]; return false; ":t+=" var err = "+X+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",t+=" } else { "}else{t+=" if ( ";var oe=R;if(oe)for(var ye,P=-1,Oe=oe.length-1;P<Oe;){ye=oe[P+=1],P&&(t+=" || ");var ze=e.util.getProperty(ye),he=_+ze;t+=" ( ( "+he+" === undefined ",u&&(t+=" || ! Object.prototype.hasOwnProperty.call("+_+", '"+e.util.escapeQuotes(ye)+"') "),t+=") && (missing"+a+" = "+e.util.toQuotedString(e.opts.jsonPointers?ye:ze)+") ) "}t+=") { ";var W="missing"+a,z="' + "+W+" + '";e.opts._errorDataPathProperty&&(e.errorPath=e.opts.jsonPointers?e.util.getPathExpr(F,W,!0):F+" + "+W);var G=G||[];G.push(t),t="",e.createErrors!==!1?(t+=" { keyword: 'required' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(m)+" , params: { missingProperty: '"+z+"' } ",e.opts.messages!==!1&&(t+=" , message: '",e.opts._errorDataPathProperty?t+="is a required property":t+="should have required property \\'"+z+"\\'",t+="' "),e.opts.verbose&&(t+=" , schema: validate.schema"+f+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+_+" "),t+=" } "):t+=" {} ";var X=t;t=G.pop(),!e.compositeRule&&p?e.async?t+=" throw new ValidationError(["+X+"]); ":t+=" validate.errors = ["+X+"]; return false; ":t+=" var err = "+X+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",t+=" } else { "}else if(ee){y||(t+=" var "+w+" = validate.schema"+f+"; ");var P="i"+a,W="schema"+a+"["+P+"]",z="' + "+W+" + '";e.opts._errorDataPathProperty&&(e.errorPath=e.util.getPathExpr(F,W,e.opts.jsonPointers)),y&&(t+=" if ("+w+" && !Array.isArray("+w+")) { var err = ",e.createErrors!==!1?(t+=" { keyword: 'required' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(m)+" , params: { missingProperty: '"+z+"' } ",e.opts.messages!==!1&&(t+=" , message: '",e.opts._errorDataPathProperty?t+="is a required property":t+="should have required property \\'"+z+"\\'",t+="' "),e.opts.verbose&&(t+=" , schema: validate.schema"+f+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+_+" "),t+=" } "):t+=" {} ",t+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; } else if ("+w+" !== undefined) { "),t+=" for (var "+P+" = 0; "+P+" < "+w+".length; "+P+"++) { if ("+_+"["+w+"["+P+"]] === undefined ",u&&(t+=" || ! Object.prototype.hasOwnProperty.call("+_+", "+w+"["+P+"]) "),t+=") { var err = ",e.createErrors!==!1?(t+=" { keyword: 'required' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(m)+" , params: { missingProperty: '"+z+"' } ",e.opts.messages!==!1&&(t+=" , message: '",e.opts._errorDataPathProperty?t+="is a required property":t+="should have required property \\'"+z+"\\'",t+="' "),e.opts.verbose&&(t+=" , schema: validate.schema"+f+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+_+" "),t+=" } "):t+=" {} ",t+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; } } ",y&&(t+=" } ")}else{var re=R;if(re)for(var ye,we=-1,xe=re.length-1;we<xe;){ye=re[we+=1];var ze=e.util.getProperty(ye),z=e.util.escapeQuotes(ye),he=_+ze;e.opts._errorDataPathProperty&&(e.errorPath=e.util.getPath(F,ye,e.opts.jsonPointers)),t+=" if ( "+he+" === undefined ",u&&(t+=" || ! Object.prototype.hasOwnProperty.call("+_+", '"+e.util.escapeQuotes(ye)+"') "),t+=") { var err = ",e.createErrors!==!1?(t+=" { keyword: 'required' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(m)+" , params: { missingProperty: '"+z+"' } ",e.opts.messages!==!1&&(t+=" , message: '",e.opts._errorDataPathProperty?t+="is a required property":t+="should have required property \\'"+z+"\\'",t+="' "),e.opts.verbose&&(t+=" , schema: validate.schema"+f+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+_+" "),t+=" } "):t+=" {} ",t+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; } "}}e.errorPath=F}else p&&(t+=" if (true) {");return t}),Wa}var Ja,bc;function _g(){return bc||(bc=1,Ja=function(e,r,s){var t=" ",a=e.level,l=e.dataLevel,c=e.schema[r],f=e.schemaPath+e.util.getProperty(r),m=e.errSchemaPath+"/"+r,p=!e.opts.allErrors,_="data"+(l||""),E="valid"+a,y=e.opts.$data&&c&&c.$data,w;if(y?(t+=" var schema"+a+" = "+e.util.getData(c.$data,l,e.dataPathArr)+"; ",w="schema"+a):w=c,(c||y)&&e.opts.uniqueItems!==!1){y&&(t+=" var "+E+"; if ("+w+" === false || "+w+" === undefined) "+E+" = true; else if (typeof "+w+" != 'boolean') "+E+" = false; else { "),t+=" var i = "+_+".length , "+E+" = true , j; if (i > 1) { ";var R=e.schema.items&&e.schema.items.type,C=Array.isArray(R);if(!R||R=="object"||R=="array"||C&&(R.indexOf("object")>=0||R.indexOf("array")>=0))t+=" outer: for (;i--;) { for (j = i; j--;) { if (equal("+_+"[i], "+_+"[j])) { "+E+" = false; break outer; } } } ";else{t+=" var itemIndices = {}, item; for (;i--;) { var item = "+_+"[i]; ";var A="checkDataType"+(C?"s":"");t+=" if ("+e.util[A](R,"item",e.opts.strictNumbers,!0)+") continue; ",C&&(t+=` if (typeof item == 'string') item = '"' + item; `),t+=" if (typeof itemIndices[item] == 'number') { "+E+" = false; j = itemIndices[item]; break; } itemIndices[item] = i; } "}t+=" } ",y&&(t+=" } "),t+=" if (!"+E+") { ";var te=te||[];te.push(t),t="",e.createErrors!==!1?(t+=" { keyword: 'uniqueItems' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(m)+" , params: { i: i, j: j } ",e.opts.messages!==!1&&(t+=" , message: 'should NOT have duplicate items (items ## ' + j + ' and ' + i + ' are identical)' "),e.opts.verbose&&(t+=" , schema: ",y?t+="validate.schema"+f:t+=""+c,t+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+_+" "),t+=" } "):t+=" {} ";var Y=t;t=te.pop(),!e.compositeRule&&p?e.async?t+=" throw new ValidationError(["+Y+"]); ":t+=" validate.errors = ["+Y+"]; return false; ":t+=" var err = "+Y+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",t+=" } ",p&&(t+=" else { ")}else p&&(t+=" if (true) { ");return t}),Ja}var Ga,_c;function yg(){return _c||(_c=1,Ga={$ref:tg(),allOf:rg(),anyOf:ig(),$comment:sg(),const:ng(),contains:ag(),dependencies:og(),enum:lg(),format:ug(),if:cg(),items:dg(),maximum:sc(),minimum:sc(),maxItems:ac(),minItems:ac(),maxLength:lc(),minLength:lc(),maxProperties:cc(),minProperties:cc(),multipleOf:hg(),not:fg(),oneOf:pg(),pattern:mg(),properties:gg(),propertyNames:vg(),required:bg(),uniqueItems:_g(),validate:eh()}),Ga}var Xa,yc;function wg(){if(yc)return Xa;yc=1;var i=yg(),e=vs().toHash;return Xa=function(){var s=[{type:"number",rules:[{maximum:["exclusiveMaximum"]},{minimum:["exclusiveMinimum"]},"multipleOf","format"]},{type:"string",rules:["maxLength","minLength","pattern","format"]},{type:"array",rules:["maxItems","minItems","items","contains","uniqueItems"]},{type:"object",rules:["maxProperties","minProperties","required","dependencies","propertyNames",{properties:["additionalProperties","patternProperties"]}]},{rules:["$ref","const","enum","not","anyOf","oneOf","allOf","if"]}],t=["type","$comment"],a=["$schema","$id","id","$data","$async","title","description","default","definitions","examples","readOnly","writeOnly","contentMediaType","contentEncoding","additionalItems","then","else"],l=["number","integer","string","array","object","boolean","null"];return s.all=e(t),s.types=e(l),s.forEach(function(c){c.rules=c.rules.map(function(f){var m;if(typeof f=="object"){var p=Object.keys(f)[0];m=f[p],f=p,m.forEach(function(E){t.push(E),s.all[E]=!0})}t.push(f);var _=s.all[f]={keyword:f,code:i[f],implements:m};return _}),s.all.$comment={keyword:"$comment",code:i.$comment},c.type&&(s.types[c.type]=c)}),s.keywords=e(t.concat(a)),s.custom={},s},Xa}var Ka,wc;function xg(){if(wc)return Ka;wc=1;var i=["multipleOf","maximum","exclusiveMaximum","minimum","exclusiveMinimum","maxLength","minLength","pattern","additionalItems","maxItems","minItems","uniqueItems","maxProperties","minProperties","required","additionalProperties","enum","format","const"];return Ka=function(e,r){for(var s=0;s<r.length;s++){e=JSON.parse(JSON.stringify(e));var t=r[s].split("/"),a=e,l;for(l=1;l<t.length;l++)a=a[t[l]];for(l=0;l<i.length;l++){var c=i[l],f=a[c];f&&(a[c]={anyOf:[f,{$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"}]})}}return e},Ka}var Ya,xc;function Eg(){if(xc)return Ya;xc=1;var i=fl().MissingRef;Ya=e;function e(r,s,t){var a=this;if(typeof this._opts.loadSchema!="function")throw new Error("options.loadSchema should be a function");typeof s=="function"&&(t=s,s=void 0);var l=c(r).then(function(){var m=a._addSchema(r,void 0,s);return m.validate||f(m)});return t&&l.then(function(m){t(null,m)},t),l;function c(m){var p=m.$schema;return p&&!a.getSchema(p)?e.call(a,{$ref:p},!0):Promise.resolve()}function f(m){try{return a._compile(m)}catch(_){if(_ instanceof i)return p(_);throw _}function p(_){var E=_.missingSchema;if(R(E))throw new Error("Schema "+E+" is loaded but "+_.missingRef+" cannot be resolved");var y=a._loadingSchemas[E];return y||(y=a._loadingSchemas[E]=a._opts.loadSchema(E),y.then(w,w)),y.then(function(C){if(!R(E))return c(C).then(function(){R(E)||a.addSchema(C,E,void 0,s)})}).then(function(){return f(m)});function w(){delete a._loadingSchemas[E]}function R(C){return a._refs[C]||a._schemas[C]}}}}return Ya}var Qa,Ec;function Sg(){return Ec||(Ec=1,Qa=function(e,r,s){var t=" ",a=e.level,l=e.dataLevel,c=e.schema[r],f=e.schemaPath+e.util.getProperty(r),m=e.errSchemaPath+"/"+r,p=!e.opts.allErrors,_,E="data"+(l||""),y="valid"+a,w="errs__"+a,R=e.opts.$data&&c&&c.$data,C;R?(t+=" var schema"+a+" = "+e.util.getData(c.$data,l,e.dataPathArr)+"; ",C="schema"+a):C=c;var A=this,te="definition"+a,Y=A.definition,U="",F,ee,u,P,W;if(R&&Y.$data){W="keywordValidate"+a;var z=Y.validateSchema;t+=" var "+te+" = RULES.custom['"+r+"'].definition; var "+W+" = "+te+".validate;"}else{if(P=e.useCustomRule(A,c,e.schema,e),!P)return;C="validate.schema"+f,W=P.code,F=Y.compile,ee=Y.inline,u=Y.macro}var G=W+".errors",X="i"+a,oe="ruleErr"+a,ye=Y.async;if(ye&&!e.async)throw new Error("async keyword in sync schema");if(ee||u||(t+=""+G+" = null;"),t+="var "+w+" = errors;var "+y+";",R&&Y.$data&&(U+="}",t+=" if ("+C+" === undefined) { "+y+" = true; } else { ",z&&(U+="}",t+=" "+y+" = "+te+".validateSchema("+C+"); if ("+y+") { ")),ee)Y.statements?t+=" "+P.validate+" ":t+=" "+y+" = "+P.validate+"; ";else if(u){var Oe=e.util.copy(e),U="";Oe.level++;var ze="valid"+Oe.level;Oe.schema=P.validate,Oe.schemaPath="";var he=e.compositeRule;e.compositeRule=Oe.compositeRule=!0;var re=e.validate(Oe).replace(/validate\.schema/g,W);e.compositeRule=Oe.compositeRule=he,t+=" "+re}else{var we=we||[];we.push(t),t="",t+=" "+W+".call( ",e.opts.passContext?t+="this":t+="self",F||Y.schema===!1?t+=" , "+E+" ":t+=" , "+C+" , "+E+" , validate.schema"+e.schemaPath+" ",t+=" , (dataPath || '')",e.errorPath!='""'&&(t+=" + "+e.errorPath);var xe=l?"data"+(l-1||""):"parentData",Fe=l?e.dataPathArr[l]:"parentDataProperty";t+=" , "+xe+" , "+Fe+" , rootData ) ";var Pe=t;t=we.pop(),Y.errors===!1?(t+=" "+y+" = ",ye&&(t+="await "),t+=""+Pe+"; "):ye?(G="customErrors"+a,t+=" var "+G+" = null; try { "+y+" = await "+Pe+"; } catch (e) { "+y+" = false; if (e instanceof ValidationError) "+G+" = e.errors; else throw e; } "):t+=" "+G+" = null; "+y+" = "+Pe+"; "}if(Y.modifying&&(t+=" if ("+xe+") "+E+" = "+xe+"["+Fe+"];"),t+=""+U,Y.valid)p&&(t+=" if (true) { ");else{t+=" if ( ",Y.valid===void 0?(t+=" !",u?t+=""+ze:t+=""+y):t+=" "+!Y.valid+" ",t+=") { ",_=A.keyword;var we=we||[];we.push(t),t="";var we=we||[];we.push(t),t="",e.createErrors!==!1?(t+=" { keyword: '"+(_||"custom")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(m)+" , params: { keyword: '"+A.keyword+"' } ",e.opts.messages!==!1&&(t+=` , message: 'should pass "`+A.keyword+`" keyword validation' `),e.opts.verbose&&(t+=" , schema: validate.schema"+f+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+E+" "),t+=" } "):t+=" {} ";var Ne=t;t=we.pop(),!e.compositeRule&&p?e.async?t+=" throw new ValidationError(["+Ne+"]); ":t+=" validate.errors = ["+Ne+"]; return false; ":t+=" var err = "+Ne+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ";var Ue=t;t=we.pop(),ee?Y.errors?Y.errors!="full"&&(t+=" for (var "+X+"="+w+"; "+X+"<errors; "+X+"++) { var "+oe+" = vErrors["+X+"]; if ("+oe+".dataPath === undefined) "+oe+".dataPath = (dataPath || '') + "+e.errorPath+"; if ("+oe+".schemaPath === undefined) { "+oe+'.schemaPath = "'+m+'"; } ',e.opts.verbose&&(t+=" "+oe+".schema = "+C+"; "+oe+".data = "+E+"; "),t+=" } "):Y.errors===!1?t+=" "+Ue+" ":(t+=" if ("+w+" == errors) { "+Ue+" } else { for (var "+X+"="+w+"; "+X+"<errors; "+X+"++) { var "+oe+" = vErrors["+X+"]; if ("+oe+".dataPath === undefined) "+oe+".dataPath = (dataPath || '') + "+e.errorPath+"; if ("+oe+".schemaPath === undefined) { "+oe+'.schemaPath = "'+m+'"; } ',e.opts.verbose&&(t+=" "+oe+".schema = "+C+"; "+oe+".data = "+E+"; "),t+=" } } "):u?(t+=" var err = ",e.createErrors!==!1?(t+=" { keyword: '"+(_||"custom")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(m)+" , params: { keyword: '"+A.keyword+"' } ",e.opts.messages!==!1&&(t+=` , message: 'should pass "`+A.keyword+`" keyword validation' `),e.opts.verbose&&(t+=" , schema: validate.schema"+f+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+E+" "),t+=" } "):t+=" {} ",t+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",!e.compositeRule&&p&&(e.async?t+=" throw new ValidationError(vErrors); ":t+=" validate.errors = vErrors; return false; ")):Y.errors===!1?t+=" "+Ue+" ":(t+=" if (Array.isArray("+G+")) { if (vErrors === null) vErrors = "+G+"; else vErrors = vErrors.concat("+G+"); errors = vErrors.length; for (var "+X+"="+w+"; "+X+"<errors; "+X+"++) { var "+oe+" = vErrors["+X+"]; if ("+oe+".dataPath === undefined) "+oe+".dataPath = (dataPath || '') + "+e.errorPath+"; "+oe+'.schemaPath = "'+m+'"; ',e.opts.verbose&&(t+=" "+oe+".schema = "+C+"; "+oe+".data = "+E+"; "),t+=" } } else { "+Ue+" } "),t+=" } ",p&&(t+=" else { ")}return t}),Qa}const Rg="http://json-schema.org/draft-07/schema#",Tg="http://json-schema.org/draft-07/schema#",Cg="Core schema meta-schema",Pg={schemaArray:{type:"array",minItems:1,items:{$ref:"#"}},nonNegativeInteger:{type:"integer",minimum:0},nonNegativeIntegerDefault0:{allOf:[{$ref:"#/definitions/nonNegativeInteger"},{default:0}]},simpleTypes:{enum:["array","boolean","integer","null","number","object","string"]},stringArray:{type:"array",items:{type:"string"},uniqueItems:!0,default:[]}},Ag=["object","boolean"],Ig={$id:{type:"string",format:"uri-reference"},$schema:{type:"string",format:"uri"},$ref:{type:"string",format:"uri-reference"},$comment:{type:"string"},title:{type:"string"},description:{type:"string"},default:!0,readOnly:{type:"boolean",default:!1},examples:{type:"array",items:!0},multipleOf:{type:"number",exclusiveMinimum:0},maximum:{type:"number"},exclusiveMaximum:{type:"number"},minimum:{type:"number"},exclusiveMinimum:{type:"number"},maxLength:{$ref:"#/definitions/nonNegativeInteger"},minLength:{$ref:"#/definitions/nonNegativeIntegerDefault0"},pattern:{type:"string",format:"regex"},additionalItems:{$ref:"#"},items:{anyOf:[{$ref:"#"},{$ref:"#/definitions/schemaArray"}],default:!0},maxItems:{$ref:"#/definitions/nonNegativeInteger"},minItems:{$ref:"#/definitions/nonNegativeIntegerDefault0"},uniqueItems:{type:"boolean",default:!1},contains:{$ref:"#"},maxProperties:{$ref:"#/definitions/nonNegativeInteger"},minProperties:{$ref:"#/definitions/nonNegativeIntegerDefault0"},required:{$ref:"#/definitions/stringArray"},additionalProperties:{$ref:"#"},definitions:{type:"object",additionalProperties:{$ref:"#"},default:{}},properties:{type:"object",additionalProperties:{$ref:"#"},default:{}},patternProperties:{type:"object",additionalProperties:{$ref:"#"},propertyNames:{format:"regex"},default:{}},dependencies:{type:"object",additionalProperties:{anyOf:[{$ref:"#"},{$ref:"#/definitions/stringArray"}]}},propertyNames:{$ref:"#"},const:!0,enum:{type:"array",items:!0,minItems:1,uniqueItems:!0},type:{anyOf:[{$ref:"#/definitions/simpleTypes"},{type:"array",items:{$ref:"#/definitions/simpleTypes"},minItems:1,uniqueItems:!0}]},format:{type:"string"},contentMediaType:{type:"string"},contentEncoding:{type:"string"},if:{$ref:"#"},then:{$ref:"#"},else:{$ref:"#"},allOf:{$ref:"#/definitions/schemaArray"},anyOf:{$ref:"#/definitions/schemaArray"},oneOf:{$ref:"#/definitions/schemaArray"},not:{$ref:"#"}},th={$schema:Rg,$id:Tg,title:Cg,definitions:Pg,type:Ag,properties:Ig,default:!0};var Za,Sc;function Og(){if(Sc)return Za;Sc=1;var i=th;return Za={$id:"https://github.com/ajv-validator/ajv/blob/master/lib/definition_schema.js",definitions:{simpleTypes:i.definitions.simpleTypes},type:"object",dependencies:{schema:["validate"],$data:["validate"],statements:["inline"],valid:{not:{required:["macro"]}}},properties:{type:i.properties.type,schema:{type:"boolean"},statements:{type:"boolean"},dependencies:{type:"array",items:{type:"string"}},metaSchema:{type:"object"},modifying:{type:"boolean"},valid:{type:"boolean"},$data:{type:"boolean"},async:{type:"boolean"},errors:{anyOf:[{type:"boolean"},{const:"full"}]}}},Za}var eo,Rc;function Lg(){if(Rc)return eo;Rc=1;var i=/^[a-z_$][a-z0-9_$-]*$/i,e=Sg(),r=Og();eo={add:s,get:t,remove:a,validate:l};function s(c,f){var m=this.RULES;if(m.keywords[c])throw new Error("Keyword "+c+" is already defined");if(!i.test(c))throw new Error("Keyword "+c+" is not a valid identifier");if(f){this.validateKeyword(f,!0);var p=f.type;if(Array.isArray(p))for(var _=0;_<p.length;_++)y(c,p[_],f);else y(c,p,f);var E=f.metaSchema;E&&(f.$data&&this._opts.$data&&(E={anyOf:[E,{$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"}]}),f.validateSchema=this.compile(E,!0))}m.keywords[c]=m.all[c]=!0;function y(w,R,C){for(var A,te=0;te<m.length;te++){var Y=m[te];if(Y.type==R){A=Y;break}}A||(A={type:R,rules:[]},m.push(A));var U={keyword:w,definition:C,custom:!0,code:e,implements:C.implements};A.rules.push(U),m.custom[w]=U}return this}function t(c){var f=this.RULES.custom[c];return f?f.definition:this.RULES.keywords[c]||!1}function a(c){var f=this.RULES;delete f.keywords[c],delete f.all[c],delete f.custom[c];for(var m=0;m<f.length;m++)for(var p=f[m].rules,_=0;_<p.length;_++)if(p[_].keyword==c){p.splice(_,1);break}return this}function l(c,f){l.errors=null;var m=this._validateKeyword=this._validateKeyword||this.compile(r,!0);if(m(c))return!0;if(l.errors=m.errors,f)throw new Error("custom keyword definition is invalid: "+this.errorsText(m.errors));return!1}return eo}const Dg="http://json-schema.org/draft-07/schema#",Ng="https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#",kg="Meta-schema for $data reference (JSON Schema extension proposal)",jg="object",Mg=["$data"],$g={$data:{type:"string",anyOf:[{format:"relative-json-pointer"},{format:"json-pointer"}]}},qg=!1,Fg={$schema:Dg,$id:Ng,description:kg,type:jg,required:Mg,properties:$g,additionalProperties:qg};var to,Tc;function Vg(){if(Tc)return to;Tc=1;var i=Qm(),e=hl(),r=Zm(),s=Qd(),t=Zd(),a=eg(),l=wg(),c=xg(),f=vs();to=w,w.prototype.validate=R,w.prototype.compile=C,w.prototype.addSchema=A,w.prototype.addMetaSchema=te,w.prototype.validateSchema=Y,w.prototype.getSchema=F,w.prototype.removeSchema=P,w.prototype.addFormat=he,w.prototype.errorsText=ze,w.prototype._addSchema=z,w.prototype._compile=G,w.prototype.compileAsync=Eg();var m=Lg();w.prototype.addKeyword=m.add,w.prototype.getKeyword=m.get,w.prototype.removeKeyword=m.remove,w.prototype.validateKeyword=m.validate;var p=fl();w.ValidationError=p.Validation,w.MissingRefError=p.MissingRef,w.$dataMetaSchema=c;var _="http://json-schema.org/draft-07/schema",E=["removeAdditional","useDefaults","coerceTypes","strictDefaults"],y=["/properties"];function w($){if(!(this instanceof w))return new w($);$=this._opts=f.copy($)||{},Ue(this),this._schemas={},this._refs={},this._fragments={},this._formats=a($.format),this._cache=$.cache||new r,this._loadingSchemas={},this._compilations=[],this.RULES=l(),this._getId=X($),$.loopRequired=$.loopRequired||1/0,$.errorDataPath=="property"&&($._errorDataPathProperty=!0),$.serialize===void 0&&($.serialize=t),this._metaOpts=Ne(this),$.formats&&xe(this),$.keywords&&Fe(this),re(this),typeof $.meta=="object"&&this.addMetaSchema($.meta),$.nullable&&this.addKeyword("nullable",{metaSchema:{type:"boolean"}}),we(this)}function R($,ce){var Ee;if(typeof $=="string"){if(Ee=this.getSchema($),!Ee)throw new Error('no schema with key or ref "'+$+'"')}else{var Ve=this._addSchema($);Ee=Ve.validate||this._compile(Ve)}var me=Ee(ce);return Ee.$async!==!0&&(this.errors=Ee.errors),me}function C($,ce){var Ee=this._addSchema($,void 0,ce);return Ee.validate||this._compile(Ee)}function A($,ce,Ee,Ve){if(Array.isArray($)){for(var me=0;me<$.length;me++)this.addSchema($[me],void 0,Ee,Ve);return this}var Re=this._getId($);if(Re!==void 0&&typeof Re!="string")throw new Error("schema id must be string");return ce=e.normalizeId(ce||Re),Pe(this,ce),this._schemas[ce]=this._addSchema($,Ee,Ve,!0),this}function te($,ce,Ee){return this.addSchema($,ce,Ee,!0),this}function Y($,ce){var Ee=$.$schema;if(Ee!==void 0&&typeof Ee!="string")throw new Error("$schema must be a string");if(Ee=Ee||this._opts.defaultMeta||U(this),!Ee)return this.logger.warn("meta-schema not available"),this.errors=null,!0;var Ve=this.validate(Ee,$);if(!Ve&&ce){var me="schema is invalid: "+this.errorsText();if(this._opts.validateSchema=="log")this.logger.error(me);else throw new Error(me)}return Ve}function U($){var ce=$._opts.meta;return $._opts.defaultMeta=typeof ce=="object"?$._getId(ce)||ce:$.getSchema(_)?_:void 0,$._opts.defaultMeta}function F($){var ce=u(this,$);switch(typeof ce){case"object":return ce.validate||this._compile(ce);case"string":return this.getSchema(ce);case"undefined":return ee(this,$)}}function ee($,ce){var Ee=e.schema.call($,{schema:{}},ce);if(Ee){var Ve=Ee.schema,me=Ee.root,Re=Ee.baseId,He=i.call($,Ve,me,void 0,Re);return $._fragments[ce]=new s({ref:ce,fragment:!0,schema:Ve,root:me,baseId:Re,validate:He}),He}}function u($,ce){return ce=e.normalizeId(ce),$._schemas[ce]||$._refs[ce]||$._fragments[ce]}function P($){if($ instanceof RegExp)return W(this,this._schemas,$),W(this,this._refs,$),this;switch(typeof $){case"undefined":return W(this,this._schemas),W(this,this._refs),this._cache.clear(),this;case"string":var ce=u(this,$);return ce&&this._cache.del(ce.cacheKey),delete this._schemas[$],delete this._refs[$],this;case"object":var Ee=this._opts.serialize,Ve=Ee?Ee($):$;this._cache.del(Ve);var me=this._getId($);me&&(me=e.normalizeId(me),delete this._schemas[me],delete this._refs[me])}return this}function W($,ce,Ee){for(var Ve in ce){var me=ce[Ve];!me.meta&&(!Ee||Ee.test(Ve))&&($._cache.del(me.cacheKey),delete ce[Ve])}}function z($,ce,Ee,Ve){if(typeof $!="object"&&typeof $!="boolean")throw new Error("schema should be object or boolean");var me=this._opts.serialize,Re=me?me($):$,He=this._cache.get(Re);if(He)return He;Ve=Ve||this._opts.addUsedSchema!==!1;var rt=e.normalizeId(this._getId($));rt&&Ve&&Pe(this,rt);var g=this._opts.validateSchema!==!1&&!ce,T;g&&!(T=rt&&rt==e.normalizeId($.$schema))&&this.validateSchema($,!0);var O=e.ids.call(this,$),V=new s({id:rt,schema:$,localRefs:O,cacheKey:Re,meta:Ee});return rt[0]!="#"&&Ve&&(this._refs[rt]=V),this._cache.put(Re,V),g&&T&&this.validateSchema($,!0),V}function G($,ce){if($.compiling)return $.validate=me,me.schema=$.schema,me.errors=null,me.root=ce||me,$.schema.$async===!0&&(me.$async=!0),me;$.compiling=!0;var Ee;$.meta&&(Ee=this._opts,this._opts=this._metaOpts);var Ve;try{Ve=i.call(this,$.schema,ce,$.localRefs)}catch(Re){throw delete $.validate,Re}finally{$.compiling=!1,$.meta&&(this._opts=Ee)}return $.validate=Ve,$.refs=Ve.refs,$.refVal=Ve.refVal,$.root=Ve.root,Ve;function me(){var Re=$.validate,He=Re.apply(this,arguments);return me.errors=Re.errors,He}}function X($){switch($.schemaId){case"auto":return Oe;case"id":return oe;default:return ye}}function oe($){return $.$id&&this.logger.warn("schema $id ignored",$.$id),$.id}function ye($){return $.id&&this.logger.warn("schema id ignored",$.id),$.$id}function Oe($){if($.$id&&$.id&&$.$id!=$.id)throw new Error("schema $id is different from id");return $.$id||$.id}function ze($,ce){if($=$||this.errors,!$)return"No errors";ce=ce||{};for(var Ee=ce.separator===void 0?", ":ce.separator,Ve=ce.dataVar===void 0?"data":ce.dataVar,me="",Re=0;Re<$.length;Re++){var He=$[Re];He&&(me+=Ve+He.dataPath+" "+He.message+Ee)}return me.slice(0,-Ee.length)}function he($,ce){return typeof ce=="string"&&(ce=new RegExp(ce)),this._formats[$]=ce,this}function re($){var ce;if($._opts.$data&&(ce=Fg,$.addMetaSchema(ce,ce.$id,!0)),$._opts.meta!==!1){var Ee=th;$._opts.$data&&(Ee=c(Ee,y)),$.addMetaSchema(Ee,_,!0),$._refs["http://json-schema.org/schema"]=_}}function we($){var ce=$._opts.schemas;if(ce)if(Array.isArray(ce))$.addSchema(ce);else for(var Ee in ce)$.addSchema(ce[Ee],Ee)}function xe($){for(var ce in $._opts.formats){var Ee=$._opts.formats[ce];$.addFormat(ce,Ee)}}function Fe($){for(var ce in $._opts.keywords){var Ee=$._opts.keywords[ce];$.addKeyword(ce,Ee)}}function Pe($,ce){if($._schemas[ce]||$._refs[ce])throw new Error('schema with key or id "'+ce+'" already exists')}function Ne($){for(var ce=f.copy($._opts),Ee=0;Ee<E.length;Ee++)delete ce[E[Ee]];return ce}function Ue($){var ce=$._opts.logger;if(ce===!1)$.logger={log:qe,warn:qe,error:qe};else{if(ce===void 0&&(ce=console),!(typeof ce=="object"&&ce.log&&ce.warn&&ce.error))throw new Error("logger must implement log, warn and error methods");$.logger=ce}}function qe(){}return to}var Ug=Vg();const Bg=Ys(Ug),rh="http://json-schema.org/draft-07/schema#",ih="Jupyter Interactive Widget State JSON schema.",sh="object",nh={version_major:{description:"Format version (major)",type:"number",minimum:2,maximum:2},version_minor:{description:"Format version (minor)",type:"number",minimum:0,maximum:0},state:{description:"Model State for All Widget Models - keys are model ids, values are model state",type:"object",additionalProperties:{type:"object",properties:{model_name:{description:"Name of the JavaScript class holding the model implementation",type:"string"},model_module:{description:"Name of the JavaScript module holding the model implementation",type:"string"},model_module_version:{description:"Semver range for the JavaScript module holding the model implementation",type:"string"},state:{description:"Serialized state of the model",type:"object"},buffers:{description:"Binary buffers in the state",type:"array",items:{type:"object",properties:{path:{description:"A path for a binary buffer value.",type:"array",items:{description:"An object key or array index",type:["string","number"]}},data:{description:"A binary buffer encoded as specified in the 'encoding' property",type:"string"},encoding:{description:"The encoding of the buffer data",type:"string",oneOf:[{const:"hex",description:"Base 16 encoding, as specified in RFC 4648, section 8 (https://tools.ietf.org/html/rfc4648#section-8)"},{const:"base64",description:"Base 64 encoding, as specified in RFC 4648, section 4 (https://tools.ietf.org/html/rfc4648#section-4)"}]}},required:["path","data","encoding"]}}},required:["model_name","model_module","state"]}}},ah=["version_major","version_minor","state"],zg={$schema:rh,description:ih,type:sh,properties:nh,required:ah},Hg=Object.freeze(Object.defineProperty({__proto__:null,$schema:rh,default:zg,description:ih,properties:nh,required:ah,type:sh},Symbol.toStringTag,{value:"Module"})),oh="http://json-schema.org/draft-07/schema#",lh="Jupyter Interactive Widget View JSON schema.",uh="object",ch={version_major:{description:"Format version (major)",type:"number",minimum:2,maximum:2},version_minor:{description:"Format version (minor)",type:"number"},model_id:{description:"Unique identifier of the widget model to be displayed",type:"string"}},dh=["model_id"],Wg={$schema:oh,description:lh,type:uh,properties:ch,required:dh},Jg=Object.freeze(Object.defineProperty({__proto__:null,$schema:oh,default:Wg,description:lh,properties:ch,required:dh,type:uh},Symbol.toStringTag,{value:"Module"}));__webpack_public_path__=window.__jupyter_widgets_assets_path__||"";const hh=new Bg({allowUnionTypes:!0}),Cc=hh.compile(Hg),Pc=hh.compile(Jg);async function Gg(i,e=document.documentElement){const r=e.querySelectorAll('script[type="application/vnd.jupyter.widget-state+json"]');await Promise.all(Array.from(r).map(async s=>Xg(e,JSON.parse(s.innerHTML),i)))}async function Xg(i,e,r){if(!Cc(e))throw new Error(`Model state has errors: ${Cc.errors}`);const t=r(),a=await t.set_state(e),l=i.querySelectorAll('script[type="application/vnd.jupyter.widget-view+json"]');await Promise.all(Array.from(l).map(async c=>{const f=JSON.parse(c.innerHTML);if(!Pc(f))throw new Error(`View state has errors: ${Pc.errors}`);const p=f.model_id,_=a.find(E=>E.model_id==p);if(_!==void 0&&c.parentElement!==null){const E=c.previousElementSibling;E&&E.tagName==="img"&&E.classList.contains("jupyter-widget")&&c.parentElement.removeChild(E);const y=document.createElement("div");y.className="widget-subarea",c.parentElement.insertBefore(y,c);const w=await t.create_view(_);t.display_view(w,y)}}))}let qs="https://cdn.jsdelivr.net/npm/",el=!0;const Kg=document.getElementsByTagName("script");Array.prototype.forEach.call(Kg,i=>{qs=i.getAttribute("data-jupyter-widgets-cdn")||qs,el=el&&!!i.getAttribute("data-jupyter-widgets-cdn-only")});const tl=function(i){return new Promise((e,r)=>{const s=window.requirejs;s===void 0?r("Requirejs is needed, please ensure it is loaded on the page."):s(i,e,r)})};function Yg(i,e){let r=i,s="index",t=i.indexOf("/");return t!=-1&&i[0]=="@"&&(t=i.indexOf("/",t+1)),t!=-1&&(s=i.substr(t+1),r=i.substr(0,t)),r==="@widgetti/jupyter-react"&&(e=e.replace("0.4.2","0.4.1")),`${qs}${r}@${e}/dist/${s}`}function Qg(i,e){const r=window.requirejs;if(r===void 0)throw new Error("Requirejs is needed, please ensure it is loaded on the page.");function s(){const t={paths:{}};return t.paths[i]=Yg(i,e),r.config(t),tl([`${i}`])}return el?(console.log(`Loading from ${qs} for ${i}@${e}`),s()):tl([`${i}`]).catch(t=>{const a=t.requireModules&&t.requireModules[0];if(a)return r.undef(a),console.log(`Falling back to ${qs} for ${i}@${e}`),s()})}function F0(i=document.documentElement,e=Qg){tl(["./classic/htmlmanager"]).then(r=>{Gg(()=>new r.HTMLManager({loader:e}),i)})}const V0="application/vnd.jupyter.widget-view+json",U0="application/vnd.jupyter.widget-state+json";var gn={exports:{}},ro,Ac;function Qs(){if(Ac)return ro;Ac=1;const i="2.0.0",e=256,r=Number.MAX_SAFE_INTEGER||9007199254740991,s=16,t=e-6;return ro={MAX_LENGTH:e,MAX_SAFE_COMPONENT_LENGTH:s,MAX_SAFE_BUILD_LENGTH:t,MAX_SAFE_INTEGER:r,RELEASE_TYPES:["major","premajor","minor","preminor","patch","prepatch","prerelease"],SEMVER_SPEC_VERSION:i,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2},ro}var io,Ic;function $n(){if(Ic)return io;Ic=1;var i={};return io=typeof process=="object"&&i&&i.NODE_DEBUG&&/\bsemver\b/i.test(i.NODE_DEBUG)?(...r)=>console.error("SEMVER",...r):()=>{},io}var Oc;function Zs(){return Oc||(Oc=1,(function(i,e){const{MAX_SAFE_COMPONENT_LENGTH:r,MAX_SAFE_BUILD_LENGTH:s,MAX_LENGTH:t}=Qs(),a=$n();e=i.exports={};const l=e.re=[],c=e.safeRe=[],f=e.src=[],m=e.safeSrc=[],p=e.t={};let _=0;const E="[a-zA-Z0-9-]",y=[["\\s",1],["\\d",t],[E,s]],w=C=>{for(const[A,te]of y)C=C.split(`${A}*`).join(`${A}{0,${te}}`).split(`${A}+`).join(`${A}{1,${te}}`);return C},R=(C,A,te)=>{const Y=w(A),U=_++;a(C,U,A),p[C]=U,f[U]=A,m[U]=Y,l[U]=new RegExp(A,te?"g":void 0),c[U]=new RegExp(Y,te?"g":void 0)};R("NUMERICIDENTIFIER","0|[1-9]\\d*"),R("NUMERICIDENTIFIERLOOSE","\\d+"),R("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${E}*`),R("MAINVERSION",`(${f[p.NUMERICIDENTIFIER]})\\.(${f[p.NUMERICIDENTIFIER]})\\.(${f[p.NUMERICIDENTIFIER]})`),R("MAINVERSIONLOOSE",`(${f[p.NUMERICIDENTIFIERLOOSE]})\\.(${f[p.NUMERICIDENTIFIERLOOSE]})\\.(${f[p.NUMERICIDENTIFIERLOOSE]})`),R("PRERELEASEIDENTIFIER",`(?:${f[p.NONNUMERICIDENTIFIER]}|${f[p.NUMERICIDENTIFIER]})`),R("PRERELEASEIDENTIFIERLOOSE",`(?:${f[p.NONNUMERICIDENTIFIER]}|${f[p.NUMERICIDENTIFIERLOOSE]})`),R("PRERELEASE",`(?:-(${f[p.PRERELEASEIDENTIFIER]}(?:\\.${f[p.PRERELEASEIDENTIFIER]})*))`),R("PRERELEASELOOSE",`(?:-?(${f[p.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${f[p.PRERELEASEIDENTIFIERLOOSE]})*))`),R("BUILDIDENTIFIER",`${E}+`),R("BUILD",`(?:\\+(${f[p.BUILDIDENTIFIER]}(?:\\.${f[p.BUILDIDENTIFIER]})*))`),R("FULLPLAIN",`v?${f[p.MAINVERSION]}${f[p.PRERELEASE]}?${f[p.BUILD]}?`),R("FULL",`^${f[p.FULLPLAIN]}$`),R("LOOSEPLAIN",`[v=\\s]*${f[p.MAINVERSIONLOOSE]}${f[p.PRERELEASELOOSE]}?${f[p.BUILD]}?`),R("LOOSE",`^${f[p.LOOSEPLAIN]}$`),R("GTLT","((?:<|>)?=?)"),R("XRANGEIDENTIFIERLOOSE",`${f[p.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),R("XRANGEIDENTIFIER",`${f[p.NUMERICIDENTIFIER]}|x|X|\\*`),R("XRANGEPLAIN",`[v=\\s]*(${f[p.XRANGEIDENTIFIER]})(?:\\.(${f[p.XRANGEIDENTIFIER]})(?:\\.(${f[p.XRANGEIDENTIFIER]})(?:${f[p.PRERELEASE]})?${f[p.BUILD]}?)?)?`),R("XRANGEPLAINLOOSE",`[v=\\s]*(${f[p.XRANGEIDENTIFIERLOOSE]})(?:\\.(${f[p.XRANGEIDENTIFIERLOOSE]})(?:\\.(${f[p.XRANGEIDENTIFIERLOOSE]})(?:${f[p.PRERELEASELOOSE]})?${f[p.BUILD]}?)?)?`),R("XRANGE",`^${f[p.GTLT]}\\s*${f[p.XRANGEPLAIN]}$`),R("XRANGELOOSE",`^${f[p.GTLT]}\\s*${f[p.XRANGEPLAINLOOSE]}$`),R("COERCEPLAIN",`(^|[^\\d])(\\d{1,${r}})(?:\\.(\\d{1,${r}}))?(?:\\.(\\d{1,${r}}))?`),R("COERCE",`${f[p.COERCEPLAIN]}(?:$|[^\\d])`),R("COERCEFULL",f[p.COERCEPLAIN]+`(?:${f[p.PRERELEASE]})?(?:${f[p.BUILD]})?(?:$|[^\\d])`),R("COERCERTL",f[p.COERCE],!0),R("COERCERTLFULL",f[p.COERCEFULL],!0),R("LONETILDE","(?:~>?)"),R("TILDETRIM",`(\\s*)${f[p.LONETILDE]}\\s+`,!0),e.tildeTrimReplace="$1~",R("TILDE",`^${f[p.LONETILDE]}${f[p.XRANGEPLAIN]}$`),R("TILDELOOSE",`^${f[p.LONETILDE]}${f[p.XRANGEPLAINLOOSE]}$`),R("LONECARET","(?:\\^)"),R("CARETTRIM",`(\\s*)${f[p.LONECARET]}\\s+`,!0),e.caretTrimReplace="$1^",R("CARET",`^${f[p.LONECARET]}${f[p.XRANGEPLAIN]}$`),R("CARETLOOSE",`^${f[p.LONECARET]}${f[p.XRANGEPLAINLOOSE]}$`),R("COMPARATORLOOSE",`^${f[p.GTLT]}\\s*(${f[p.LOOSEPLAIN]})$|^$`),R("COMPARATOR",`^${f[p.GTLT]}\\s*(${f[p.FULLPLAIN]})$|^$`),R("COMPARATORTRIM",`(\\s*)${f[p.GTLT]}\\s*(${f[p.LOOSEPLAIN]}|${f[p.XRANGEPLAIN]})`,!0),e.comparatorTrimReplace="$1$2$3",R("HYPHENRANGE",`^\\s*(${f[p.XRANGEPLAIN]})\\s+-\\s+(${f[p.XRANGEPLAIN]})\\s*$`),R("HYPHENRANGELOOSE",`^\\s*(${f[p.XRANGEPLAINLOOSE]})\\s+-\\s+(${f[p.XRANGEPLAINLOOSE]})\\s*$`),R("STAR","(<|>)?=?\\s*\\*"),R("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$"),R("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")})(gn,gn.exports)),gn.exports}var so,Lc;function pl(){if(Lc)return so;Lc=1;const i=Object.freeze({loose:!0}),e=Object.freeze({});return so=s=>s?typeof s!="object"?i:s:e,so}var no,Dc;function fh(){if(Dc)return no;Dc=1;const i=/^[0-9]+$/,e=(s,t)=>{if(typeof s=="number"&&typeof t=="number")return s===t?0:s<t?-1:1;const a=i.test(s),l=i.test(t);return a&&l&&(s=+s,t=+t),s===t?0:a&&!l?-1:l&&!a?1:s<t?-1:1};return no={compareIdentifiers:e,rcompareIdentifiers:(s,t)=>e(t,s)},no}var ao,Nc;function mr(){if(Nc)return ao;Nc=1;const i=$n(),{MAX_LENGTH:e,MAX_SAFE_INTEGER:r}=Qs(),{safeRe:s,t}=Zs(),a=pl(),{compareIdentifiers:l}=fh(),c=(m,p)=>{const _=p.split(".");if(_.length>m.length)return!1;for(let E=0;E<_.length;E++)if(l(m[E],_[E])!==0)return!1;return!0};class f{constructor(p,_){if(_=a(_),p instanceof f){if(p.loose===!!_.loose&&p.includePrerelease===!!_.includePrerelease)return p;p=p.version}else if(typeof p!="string")throw new TypeError(`Invalid version. Must be a string. Got type "${typeof p}".`);if(p.length>e)throw new TypeError(`version is longer than ${e} characters`);i("SemVer",p,_),this.options=_,this.loose=!!_.loose,this.includePrerelease=!!_.includePrerelease;const E=p.trim().match(_.loose?s[t.LOOSE]:s[t.FULL]);if(!E)throw new TypeError(`Invalid Version: ${p}`);if(this.raw=p,this.major=+E[1],this.minor=+E[2],this.patch=+E[3],this.major>r||this.major<0)throw new TypeError("Invalid major version");if(this.minor>r||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>r||this.patch<0)throw new TypeError("Invalid patch version");E[4]?this.prerelease=E[4].split(".").map(y=>{if(/^[0-9]+$/.test(y)){const w=+y;if(w>=0&&w<r)return w}return y}):this.prerelease=[],this.build=E[5]?E[5].split("."):[],this.format()}format(){return this.version=`${this.major}.${this.minor}.${this.patch}`,this.prerelease.length&&(this.version+=`-${this.prerelease.join(".")}`),this.version}toString(){return this.version}compare(p){if(i("SemVer.compare",this.version,this.options,p),!(p instanceof f)){if(typeof p=="string"&&p===this.version)return 0;p=new f(p,this.options)}return p.version===this.version?0:this.compareMain(p)||this.comparePre(p)}compareMain(p){return p instanceof f||(p=new f(p,this.options)),this.major<p.major?-1:this.major>p.major?1:this.minor<p.minor?-1:this.minor>p.minor?1:this.patch<p.patch?-1:this.patch>p.patch?1:0}comparePre(p){if(p instanceof f||(p=new f(p,this.options)),this.prerelease.length&&!p.prerelease.length)return-1;if(!this.prerelease.length&&p.prerelease.length)return 1;if(!this.prerelease.length&&!p.prerelease.length)return 0;let _=0;do{const E=this.prerelease[_],y=p.prerelease[_];if(i("prerelease compare",_,E,y),E===void 0&&y===void 0)return 0;if(y===void 0)return 1;if(E===void 0)return-1;if(E===y)continue;return l(E,y)}while(++_)}compareBuild(p){p instanceof f||(p=new f(p,this.options));let _=0;do{const E=this.build[_],y=p.build[_];if(i("build compare",_,E,y),E===void 0&&y===void 0)return 0;if(y===void 0)return 1;if(E===void 0)return-1;if(E===y)continue;return l(E,y)}while(++_)}inc(p,_,E){if(p.startsWith("pre")){if(!_&&E===!1)throw new Error("invalid increment argument: identifier is empty");if(_){const y=`-${_}`.match(this.options.loose?s[t.PRERELEASELOOSE]:s[t.PRERELEASE]);if(!y||y[1]!==_)throw new Error(`invalid identifier: ${_}`)}}switch(p){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",_,E);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",_,E);break;case"prepatch":this.prerelease.length=0,this.inc("patch",_,E),this.inc("pre",_,E);break;case"prerelease":this.prerelease.length===0&&this.inc("patch",_,E),this.inc("pre",_,E);break;case"release":if(this.prerelease.length===0)throw new Error(`version ${this.raw} is not a prerelease`);this.prerelease.length=0;break;case"major":(this.minor!==0||this.patch!==0||this.prerelease.length===0)&&this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":(this.patch!==0||this.prerelease.length===0)&&this.minor++,this.patch=0,this.prerelease=[];break;case"patch":this.prerelease.length===0&&this.patch++,this.prerelease=[];break;case"pre":{const y=Number(E)?1:0;if(this.prerelease.length===0)this.prerelease=[y];else{let w=this.prerelease.length;for(;--w>=0;)typeof this.prerelease[w]=="number"&&(this.prerelease[w]++,w=-2);if(w===-1){if(_===this.prerelease.join(".")&&E===!1)throw new Error("invalid increment argument: identifier already exists");this.prerelease.push(y)}}if(_){let w=[_,y];if(E===!1&&(w=[_]),c(this.prerelease,_)){const R=this.prerelease[_.split(".").length];isNaN(R)&&(this.prerelease=w)}else this.prerelease=w}break}default:throw new Error(`invalid increment argument: ${p}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(".")}`),this}}return ao=f,ao}var oo,kc;function Hi(){if(kc)return oo;kc=1;const i=mr();return oo=(r,s,t=!1)=>{if(r instanceof i)return r;try{return new i(r,s)}catch(a){if(!t)return null;throw a}},oo}var lo,jc;function Zg(){if(jc)return lo;jc=1;const i=Hi();return lo=(r,s)=>{const t=i(r,s);return t?t.version:null},lo}var uo,Mc;function ev(){if(Mc)return uo;Mc=1;const i=Hi();return uo=(r,s)=>{const t=i(r.trim().replace(/^[=v]+/,""),s);return t?t.version:null},uo}var co,$c;function tv(){if($c)return co;$c=1;const i=mr();return co=(r,s,t,a,l)=>{typeof t=="string"&&(l=a,a=t,t=void 0);try{return new i(r instanceof i?r.version:r,t).inc(s,a,l).version}catch{return null}},co}var ho,qc;function rv(){if(qc)return ho;qc=1;const i=Hi();return ho=(r,s)=>{const t=i(r,null,!0),a=i(s,null,!0),l=t.compare(a);if(l===0)return null;const c=l>0,f=c?t:a,m=c?a:t,p=!!f.prerelease.length;if(!!m.prerelease.length&&!p){if(!m.patch&&!m.minor)return"major";if(m.compareMain(f)===0)return m.minor&&!m.patch?"minor":"patch"}const E=p?"pre":"";return t.major!==a.major?E+"major":t.minor!==a.minor?E+"minor":t.patch!==a.patch?E+"patch":"prerelease"},ho}var fo,Fc;function iv(){if(Fc)return fo;Fc=1;const i=mr();return fo=(r,s)=>new i(r,s).major,fo}var po,Vc;function sv(){if(Vc)return po;Vc=1;const i=mr();return po=(r,s)=>new i(r,s).minor,po}var mo,Uc;function nv(){if(Uc)return mo;Uc=1;const i=mr();return mo=(r,s)=>new i(r,s).patch,mo}var go,Bc;function av(){if(Bc)return go;Bc=1;const i=Hi();return go=(r,s)=>{const t=i(r,s);return t&&t.prerelease.length?t.prerelease:null},go}var vo,zc;function Yr(){if(zc)return vo;zc=1;const i=mr();return vo=(r,s,t)=>new i(r,t).compare(new i(s,t)),vo}var bo,Hc;function ov(){if(Hc)return bo;Hc=1;const i=Yr();return bo=(r,s,t)=>i(s,r,t),bo}var _o,Wc;function lv(){if(Wc)return _o;Wc=1;const i=Yr();return _o=(r,s)=>i(r,s,!0),_o}var yo,Jc;function ml(){if(Jc)return yo;Jc=1;const i=mr();return yo=(r,s,t)=>{const a=new i(r,t),l=new i(s,t);return a.compare(l)||a.compareBuild(l)},yo}var wo,Gc;function uv(){if(Gc)return wo;Gc=1;const i=ml();return wo=(r,s)=>r.sort((t,a)=>i(t,a,s)),wo}var xo,Xc;function cv(){if(Xc)return xo;Xc=1;const i=ml();return xo=(r,s)=>r.sort((t,a)=>i(a,t,s)),xo}var Eo,Kc;function qn(){if(Kc)return Eo;Kc=1;const i=Yr();return Eo=(r,s,t)=>i(r,s,t)>0,Eo}var So,Yc;function gl(){if(Yc)return So;Yc=1;const i=Yr();return So=(r,s,t)=>i(r,s,t)<0,So}var Ro,Qc;function ph(){if(Qc)return Ro;Qc=1;const i=Yr();return Ro=(r,s,t)=>i(r,s,t)===0,Ro}var To,Zc;function mh(){if(Zc)return To;Zc=1;const i=Yr();return To=(r,s,t)=>i(r,s,t)!==0,To}var Co,ed;function vl(){if(ed)return Co;ed=1;const i=Yr();return Co=(r,s,t)=>i(r,s,t)>=0,Co}var Po,td;function bl(){if(td)return Po;td=1;const i=Yr();return Po=(r,s,t)=>i(r,s,t)<=0,Po}var Ao,rd;function gh(){if(rd)return Ao;rd=1;const i=ph(),e=mh(),r=qn(),s=vl(),t=gl(),a=bl();return Ao=(c,f,m,p)=>{switch(f){case"===":return typeof c=="object"&&(c=c.version),typeof m=="object"&&(m=m.version),c===m;case"!==":return typeof c=="object"&&(c=c.version),typeof m=="object"&&(m=m.version),c!==m;case"":case"=":case"==":return i(c,m,p);case"!=":return e(c,m,p);case">":return r(c,m,p);case">=":return s(c,m,p);case"<":return t(c,m,p);case"<=":return a(c,m,p);default:throw new TypeError(`Invalid operator: ${f}`)}},Ao}var Io,id;function dv(){if(id)return Io;id=1;const i=mr(),e=Hi(),{safeRe:r,t:s}=Zs();return Io=(a,l)=>{if(a instanceof i)return a;if(typeof a=="number"&&(a=String(a)),typeof a!="string")return null;l=l||{};let c=null;if(!l.rtl)c=a.match(l.includePrerelease?r[s.COERCEFULL]:r[s.COERCE]);else{const y=l.includePrerelease?r[s.COERCERTLFULL]:r[s.COERCERTL];let w;for(;(w=y.exec(a))&&(!c||c.index+c[0].length!==a.length);)(!c||w.index+w[0].length!==c.index+c[0].length)&&(c=w),y.lastIndex=w.index+w[1].length+w[2].length;y.lastIndex=-1}if(c===null)return null;const f=c[2],m=c[3]||"0",p=c[4]||"0",_=l.includePrerelease&&c[5]?`-${c[5]}`:"",E=l.includePrerelease&&c[6]?`+${c[6]}`:"";return e(`${f}.${m}.${p}${_}${E}`,l)},Io}var Oo,sd;function hv(){if(sd)return Oo;sd=1;const i=Hi(),e=Qs(),r=mr(),s=(c,f,m)=>{if(!e.RELEASE_TYPES.includes(f))return null;const p=t(c,m);return p&&a(p,f)},t=(c,f)=>{const m=c instanceof r?c.version:c;return i(m,f)},a=(c,f)=>{if(l(f))return c.version;switch(c.prerelease=[],f){case"major":c.minor=0,c.patch=0;break;case"minor":c.patch=0;break}return c.format()},l=c=>c.startsWith("pre");return Oo=s,Oo}var Lo,nd;function fv(){if(nd)return Lo;nd=1;class i{constructor(){this.max=1e3,this.map=new Map}get(r){const s=this.map.get(r);if(s!==void 0)return this.map.delete(r),this.map.set(r,s),s}delete(r){return this.map.delete(r)}set(r,s){if(!this.delete(r)&&s!==void 0){if(this.map.size>=this.max){const a=this.map.keys().next().value;this.delete(a)}this.map.set(r,s)}return this}}return Lo=i,Lo}var Do,ad;function Qr(){if(ad)return Do;ad=1;const i=/\s+/g;class e{constructor(re,we){if(we=t(we),re instanceof e)return re.loose===!!we.loose&&re.includePrerelease===!!we.includePrerelease?re:new e(re.raw,we);if(re instanceof a)return this.raw=re.value,this.set=[[re]],this.formatted=void 0,this;if(this.options=we,this.loose=!!we.loose,this.includePrerelease=!!we.includePrerelease,this.raw=re.trim().replace(i," "),this.set=this.raw.split("||").map(xe=>this.parseRange(xe.trim())).filter(xe=>xe.length),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${this.raw}`);if(this.set.length>1){const xe=this.set[0];if(this.set=this.set.filter(Fe=>!A(Fe[0])),this.set.length===0)this.set=[xe];else if(this.set.length>1){for(const Fe of this.set)if(Fe.length===1&&te(Fe[0])){this.set=[Fe];break}}}this.formatted=void 0}get range(){if(this.formatted===void 0){this.formatted="";for(let re=0;re<this.set.length;re++){re>0&&(this.formatted+="||");const we=this.set[re];for(let xe=0;xe<we.length;xe++)xe>0&&(this.formatted+=" "),this.formatted+=we[xe].toString().trim()}}return this.formatted}format(){return this.range}toString(){return this.range}parseRange(re){re=re.replace(C,"");const xe=((this.options.includePrerelease&&w)|(this.options.loose&&R))+":"+re,Fe=s.get(xe);if(Fe)return Fe;const Pe=this.options.loose,Ne=Pe?f[p.HYPHENRANGELOOSE]:f[p.HYPHENRANGE];re=re.replace(Ne,Oe(this.options.includePrerelease)),l("hyphen replace",re),re=re.replace(f[p.COMPARATORTRIM],_),l("comparator trim",re),re=re.replace(f[p.TILDETRIM],E),l("tilde trim",re),re=re.replace(f[p.CARETTRIM],y),l("caret trim",re);let Ue=re.split(" ").map(Ee=>U(Ee,this.options)).join(" ").split(/\s+/).map(Ee=>ye(Ee,this.options));Pe&&(Ue=Ue.filter(Ee=>(l("loose invalid filter",Ee,this.options),!!Ee.match(f[p.COMPARATORLOOSE])))),l("range list",Ue);const qe=new Map,$=Ue.map(Ee=>new a(Ee,this.options));for(const Ee of $){if(A(Ee))return[Ee];qe.set(Ee.value,Ee)}qe.size>1&&qe.has("")&&qe.delete("");const ce=[...qe.values()];return s.set(xe,ce),ce}intersects(re,we){if(!(re instanceof e))throw new TypeError("a Range is required");return this.set.some(xe=>Y(xe,we)&&re.set.some(Fe=>Y(Fe,we)&&xe.every(Pe=>Fe.every(Ne=>Pe.intersects(Ne,we)))))}test(re){if(!re)return!1;if(typeof re=="string")try{re=new c(re,this.options)}catch{return!1}for(let we=0;we<this.set.length;we++)if(ze(this.set[we],re,this.options))return!0;return!1}}Do=e;const r=fv(),s=new r,t=pl(),a=Fn(),l=$n(),c=mr(),{safeRe:f,src:m,t:p,comparatorTrimReplace:_,tildeTrimReplace:E,caretTrimReplace:y}=Zs(),{FLAG_INCLUDE_PRERELEASE:w,FLAG_LOOSE:R}=Qs(),C=new RegExp(m[p.BUILD],"g"),A=he=>he.value==="<0.0.0-0",te=he=>he.value==="",Y=(he,re)=>{let we=!0;const xe=he.slice();let Fe=xe.pop();for(;we&&xe.length;)we=xe.every(Pe=>Fe.intersects(Pe,re)),Fe=xe.pop();return we},U=(he,re)=>(he=he.replace(f[p.BUILD],""),l("comp",he,re),he=W(he,re),l("caret",he),he=u(he,re),l("tildes",he),he=G(he,re),l("xrange",he),he=oe(he,re),l("stars",he),he),F=he=>!he||he.toLowerCase()==="x"||he==="*",ee=(he,re,we)=>F(he)&&!F(re)||F(re)&&we&&!F(we),u=(he,re)=>he.trim().split(/\s+/).map(we=>P(we,re)).join(" "),P=(he,re)=>{const we=re.loose?f[p.TILDELOOSE]:f[p.TILDE],xe=re.includePrerelease?"-0":"";return he.replace(we,(Fe,Pe,Ne,Ue,qe)=>{l("tilde",he,Fe,Pe,Ne,Ue,qe);let $;return F(Pe)?$="":F(Ne)?$=`>=${Pe}.0.0${xe} <${+Pe+1}.0.0-0`:F(Ue)?$=`>=${Pe}.${Ne}.0${xe} <${Pe}.${+Ne+1}.0-0`:qe?(l("replaceTilde pr",qe),$=`>=${Pe}.${Ne}.${Ue}-${qe} <${Pe}.${+Ne+1}.0-0`):$=`>=${Pe}.${Ne}.${Ue} <${Pe}.${+Ne+1}.0-0`,l("tilde return",$),$})},W=(he,re)=>he.trim().split(/\s+/).map(we=>z(we,re)).join(" "),z=(he,re)=>{l("caret",he,re);const we=re.loose?f[p.CARETLOOSE]:f[p.CARET],xe=re.includePrerelease?"-0":"";return he.replace(we,(Fe,Pe,Ne,Ue,qe)=>{l("caret",he,Fe,Pe,Ne,Ue,qe);let $;return F(Pe)?$="":F(Ne)?$=`>=${Pe}.0.0${xe} <${+Pe+1}.0.0-0`:F(Ue)?Pe==="0"?$=`>=${Pe}.${Ne}.0${xe} <${Pe}.${+Ne+1}.0-0`:$=`>=${Pe}.${Ne}.0${xe} <${+Pe+1}.0.0-0`:qe?(l("replaceCaret pr",qe),Pe==="0"?Ne==="0"?$=`>=${Pe}.${Ne}.${Ue}-${qe} <${Pe}.${Ne}.${+Ue+1}-0`:$=`>=${Pe}.${Ne}.${Ue}-${qe} <${Pe}.${+Ne+1}.0-0`:$=`>=${Pe}.${Ne}.${Ue}-${qe} <${+Pe+1}.0.0-0`):(l("no pr"),Pe==="0"?Ne==="0"?$=`>=${Pe}.${Ne}.${Ue} <${Pe}.${Ne}.${+Ue+1}-0`:$=`>=${Pe}.${Ne}.${Ue} <${Pe}.${+Ne+1}.0-0`:$=`>=${Pe}.${Ne}.${Ue} <${+Pe+1}.0.0-0`),l("caret return",$),$})},G=(he,re)=>(l("replaceXRanges",he,re),he.split(/\s+/).map(we=>X(we,re)).join(" ")),X=(he,re)=>{he=he.trim();const we=re.loose?f[p.XRANGELOOSE]:f[p.XRANGE];return he.replace(we,(xe,Fe,Pe,Ne,Ue,qe)=>{if(l("xRange",he,xe,Fe,Pe,Ne,Ue,qe),ee(Pe,Ne,Ue))return he;const $=F(Pe),ce=$||F(Ne),Ee=ce||F(Ue),Ve=Ee;return Fe==="="&&Ve&&(Fe=""),qe=re.includePrerelease?"-0":"",$?Fe===">"||Fe==="<"?xe="<0.0.0-0":xe="*":Fe&&Ve?(ce&&(Ne=0),Ue=0,Fe===">"?(Fe=">=",ce?(Pe=+Pe+1,Ne=0,Ue=0):(Ne=+Ne+1,Ue=0)):Fe==="<="&&(Fe="<",ce?Pe=+Pe+1:Ne=+Ne+1),Fe==="<"&&(qe="-0"),xe=`${Fe+Pe}.${Ne}.${Ue}${qe}`):ce?xe=`>=${Pe}.0.0${qe} <${+Pe+1}.0.0-0`:Ee&&(xe=`>=${Pe}.${Ne}.0${qe} <${Pe}.${+Ne+1}.0-0`),l("xRange return",xe),xe})},oe=(he,re)=>(l("replaceStars",he,re),he.trim().replace(f[p.STAR],"")),ye=(he,re)=>(l("replaceGTE0",he,re),he.trim().replace(f[re.includePrerelease?p.GTE0PRE:p.GTE0],"")),Oe=he=>(re,we,xe,Fe,Pe,Ne,Ue,qe,$,ce,Ee,Ve)=>(F(xe)?we="":F(Fe)?we=`>=${xe}.0.0${he?"-0":""}`:F(Pe)?we=`>=${xe}.${Fe}.0${he?"-0":""}`:Ne?we=`>=${we}`:we=`>=${we}${he?"-0":""}`,F($)?qe="":F(ce)?qe=`<${+$+1}.0.0-0`:F(Ee)?qe=`<${$}.${+ce+1}.0-0`:Ve?qe=`<=${$}.${ce}.${Ee}-${Ve}`:he?qe=`<${$}.${ce}.${+Ee+1}-0`:qe=`<=${qe}`,`${we} ${qe}`.trim()),ze=(he,re,we)=>{for(let xe=0;xe<he.length;xe++)if(!he[xe].test(re))return!1;if(re.prerelease.length&&!we.includePrerelease){for(let xe=0;xe<he.length;xe++)if(l(he[xe].semver),he[xe].semver!==a.ANY&&he[xe].semver.prerelease.length>0){const Fe=he[xe].semver;if(Fe.major===re.major&&Fe.minor===re.minor&&Fe.patch===re.patch)return!0}return!1}return!0};return Do}var No,od;function Fn(){if(od)return No;od=1;const i=Symbol("SemVer ANY");class e{static get ANY(){return i}constructor(p,_){if(_=r(_),p instanceof e){if(p.loose===!!_.loose)return p;p=p.value}p=p.trim().split(/\s+/).join(" "),l("comparator",p,_),this.options=_,this.loose=!!_.loose,this.parse(p),this.semver===i?this.value="":this.value=this.operator+this.semver.version,l("comp",this)}parse(p){const _=this.options.loose?s[t.COMPARATORLOOSE]:s[t.COMPARATOR],E=p.match(_);if(!E)throw new TypeError(`Invalid comparator: ${p}`);this.operator=E[1]!==void 0?E[1]:"",this.operator==="="&&(this.operator=""),E[2]?this.semver=new c(E[2],this.options.loose):this.semver=i}toString(){return this.value}test(p){if(l("Comparator.test",p,this.options.loose),this.semver===i||p===i)return!0;if(typeof p=="string")try{p=new c(p,this.options)}catch{return!1}return a(p,this.operator,this.semver,this.options)}intersects(p,_){if(!(p instanceof e))throw new TypeError("a Comparator is required");return this.operator===""?this.value===""?!0:new f(p.value,_).test(this.value):p.operator===""?p.value===""?!0:new f(this.value,_).test(p.semver):(_=r(_),_.includePrerelease&&(this.value==="<0.0.0-0"||p.value==="<0.0.0-0")||!_.includePrerelease&&(this.value.startsWith("<0.0.0")||p.value.startsWith("<0.0.0"))?!1:!!(this.operator.startsWith(">")&&p.operator.startsWith(">")||this.operator.startsWith("<")&&p.operator.startsWith("<")||this.semver.version===p.semver.version&&this.operator.includes("=")&&p.operator.includes("=")||a(this.semver,"<",p.semver,_)&&this.operator.startsWith(">")&&p.operator.startsWith("<")||a(this.semver,">",p.semver,_)&&this.operator.startsWith("<")&&p.operator.startsWith(">")))}}No=e;const r=pl(),{safeRe:s,t}=Zs(),a=gh(),l=$n(),c=mr(),f=Qr();return No}var ko,ld;function Vn(){if(ld)return ko;ld=1;const i=Qr();return ko=(r,s,t)=>{try{s=new i(s,t)}catch{return!1}return s.test(r)},ko}var jo,ud;function pv(){if(ud)return jo;ud=1;const i=Qr();return jo=(r,s)=>new i(r,s).set.map(t=>t.map(a=>a.value).join(" ").trim().split(" ")),jo}var Mo,cd;function mv(){if(cd)return Mo;cd=1;const i=mr(),e=Qr();return Mo=(s,t,a)=>{let l=null,c=null,f=null;try{f=new e(t,a)}catch{return null}return s.forEach(m=>{f.test(m)&&(!l||c.compare(m)===-1)&&(l=m,c=new i(l,a))}),l},Mo}var $o,dd;function gv(){if(dd)return $o;dd=1;const i=mr(),e=Qr();return $o=(s,t,a)=>{let l=null,c=null,f=null;try{f=new e(t,a)}catch{return null}return s.forEach(m=>{f.test(m)&&(!l||c.compare(m)===1)&&(l=m,c=new i(l,a))}),l},$o}var qo,hd;function vv(){if(hd)return qo;hd=1;const i=mr(),e=Qr(),r=qn();return qo=(t,a)=>{t=new e(t,a);let l=new i("0.0.0");if(t.test(l)||(l=new i("0.0.0-0"),t.test(l)))return l;l=null;for(let c=0;c<t.set.length;++c){const f=t.set[c];let m=null;f.forEach(p=>{const _=new i(p.semver.version);switch(p.operator){case">":_.prerelease.length===0?_.patch++:_.prerelease.push(0),_.raw=_.format();case"":case">=":(!m||r(_,m))&&(m=_);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${p.operator}`)}}),m&&(!l||r(l,m))&&(l=m)}return l&&t.test(l)?l:null},qo}var Fo,fd;function bv(){if(fd)return Fo;fd=1;const i=Qr();return Fo=(r,s)=>{try{return new i(r,s).range||"*"}catch{return null}},Fo}var Vo,pd;function _l(){if(pd)return Vo;pd=1;const i=mr(),e=Fn(),{ANY:r}=e,s=Qr(),t=Vn(),a=qn(),l=gl(),c=bl(),f=vl();return Vo=(p,_,E,y)=>{p=new i(p,y),_=new s(_,y);let w,R,C,A,te;switch(E){case">":w=a,R=c,C=l,A=">",te=">=";break;case"<":w=l,R=f,C=a,A="<",te="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(t(p,_,y))return!1;for(let Y=0;Y<_.set.length;++Y){const U=_.set[Y];let F=null,ee=null;if(U.forEach(u=>{u.semver===r&&(u=new e(">=0.0.0")),F=F||u,ee=ee||u,w(u.semver,F.semver,y)?F=u:C(u.semver,ee.semver,y)&&(ee=u)}),F.operator===A||F.operator===te||(!ee.operator||ee.operator===A)&&R(p,ee.semver))return!1;if(ee.operator===te&&C(p,ee.semver))return!1}return!0},Vo}var Uo,md;function _v(){if(md)return Uo;md=1;const i=_l();return Uo=(r,s,t)=>i(r,s,">",t),Uo}var Bo,gd;function yv(){if(gd)return Bo;gd=1;const i=_l();return Bo=(r,s,t)=>i(r,s,"<",t),Bo}var zo,vd;function wv(){if(vd)return zo;vd=1;const i=Qr();return zo=(r,s,t)=>(r=new i(r,t),s=new i(s,t),r.intersects(s,t)),zo}var Ho,bd;function xv(){if(bd)return Ho;bd=1;const i=Vn(),e=Yr();return Ho=(r,s,t)=>{const a=[];let l=null,c=null;const f=r.sort((E,y)=>e(E,y,t));for(const E of f)i(E,s,t)?(c=E,l||(l=E)):(c&&a.push([l,c]),c=null,l=null);l&&a.push([l,null]);const m=[];for(const[E,y]of a)E===y?m.push(E):!y&&E===f[0]?m.push("*"):y?E===f[0]?m.push(`<=${y}`):m.push(`${E} - ${y}`):m.push(`>=${E}`);const p=m.join(" || "),_=typeof s.raw=="string"?s.raw:String(s);return p.length<_.length?p:s},Ho}var Wo,_d;function Ev(){if(_d)return Wo;_d=1;const i=Qr(),e=Fn(),{ANY:r}=e,s=Vn(),t=Yr(),a=(_,E,y={})=>{if(_===E)return!0;_=new i(_,y),E=new i(E,y);let w=!1;e:for(const R of _.set){for(const C of E.set){const A=f(R,C,y);if(w=w||A!==null,A)continue e}if(w)return!1}return!0},l=[new e(">=0.0.0-0")],c=[new e(">=0.0.0")],f=(_,E,y)=>{if(_===E)return!0;if(_.length===1&&_[0].semver===r){if(E.length===1&&E[0].semver===r)return!0;y.includePrerelease?_=l:_=c}if(E.length===1&&E[0].semver===r){if(y.includePrerelease)return!0;E=c}const w=new Set;let R,C;for(const P of _)P.operator===">"||P.operator===">="?R=m(R,P,y):P.operator==="<"||P.operator==="<="?C=p(C,P,y):w.add(P.semver);if(w.size>1)return null;let A;if(R&&C){if(A=t(R.semver,C.semver,y),A>0)return null;if(A===0&&(R.operator!==">="||C.operator!=="<="))return null}for(const P of w){if(R&&!s(P,String(R),y)||C&&!s(P,String(C),y))return null;for(const W of E)if(!s(P,String(W),y))return!1;return!0}let te,Y,U,F,ee=C&&!y.includePrerelease&&C.semver.prerelease.length?C.semver:!1,u=R&&!y.includePrerelease&&R.semver.prerelease.length?R.semver:!1;ee&&ee.prerelease.length===1&&C.operator==="<"&&ee.prerelease[0]===0&&(ee=!1);for(const P of E){if(F=F||P.operator===">"||P.operator===">=",U=U||P.operator==="<"||P.operator==="<=",R){if(u&&P.semver.prerelease&&P.semver.prerelease.length&&P.semver.major===u.major&&P.semver.minor===u.minor&&P.semver.patch===u.patch&&(u=!1),P.operator===">"||P.operator===">="){if(te=m(R,P,y),te===P&&te!==R)return!1}else if(R.operator===">="&&!P.test(R.semver))return!1}if(C){if(ee&&P.semver.prerelease&&P.semver.prerelease.length&&P.semver.major===ee.major&&P.semver.minor===ee.minor&&P.semver.patch===ee.patch&&(ee=!1),P.operator==="<"||P.operator==="<="){if(Y=p(C,P,y),Y===P&&Y!==C)return!1}else if(C.operator==="<="&&!P.test(C.semver))return!1}if(!P.operator&&(C||R)&&A!==0)return!1}return!(R&&U&&!C&&A!==0||C&&F&&!R&&A!==0||u||ee)},m=(_,E,y)=>{if(!_)return E;const w=t(_.semver,E.semver,y);return w>0?_:w<0||E.operator===">"&&_.operator===">="?E:_},p=(_,E,y)=>{if(!_)return E;const w=t(_.semver,E.semver,y);return w<0?_:w>0||E.operator==="<"&&_.operator==="<="?E:_};return Wo=a,Wo}var Jo,yd;function Sv(){if(yd)return Jo;yd=1;const i=Zs(),e=Qs(),r=mr(),s=fh(),t=Hi(),a=Zg(),l=ev(),c=tv(),f=rv(),m=iv(),p=sv(),_=nv(),E=av(),y=Yr(),w=ov(),R=lv(),C=ml(),A=uv(),te=cv(),Y=qn(),U=gl(),F=ph(),ee=mh(),u=vl(),P=bl(),W=gh(),z=dv(),G=hv(),X=Fn(),oe=Qr(),ye=Vn(),Oe=pv(),ze=mv(),he=gv(),re=vv(),we=bv(),xe=_l(),Fe=_v(),Pe=yv(),Ne=wv(),Ue=xv(),qe=Ev();return Jo={parse:t,valid:a,clean:l,inc:c,diff:f,major:m,minor:p,patch:_,prerelease:E,compare:y,rcompare:w,compareLoose:R,compareBuild:C,sort:A,rsort:te,gt:Y,lt:U,eq:F,neq:ee,gte:u,lte:P,cmp:W,coerce:z,truncate:G,Comparator:X,Range:oe,satisfies:ye,toComparators:Oe,maxSatisfying:ze,minSatisfying:he,minVersion:re,validRange:we,outside:xe,gtr:Fe,ltr:Pe,intersects:Ne,simplifyRange:Ue,subset:qe,SemVer:r,re:i.re,src:i.src,tokens:i.t,SEMVER_SPEC_VERSION:e.SEMVER_SPEC_VERSION,RELEASE_TYPES:e.RELEASE_TYPES,compareIdentifiers:s.compareIdentifiers,rcompareIdentifiers:s.rcompareIdentifiers},Jo}var Rv=Sv();class B0{set(e,r,s){e in this._cache||(this._cache[e]=Object.create(null)),r in this._cache[e]?console.warn(`Version ${r} of key ${e} already registered.`):this._cache[e][r]=s}get(e,r){if(e in this._cache){const s=this._cache[e],t=Rv.maxSatisfying(Object.keys(s),r);if(t!==null)return s[t]}}getAllVersions(e){if(e in this._cache)return this._cache[e]}_cache=Object.create(null)}var Tv=Hm();const Cv=Ys(Tv);function rl(i,e){return i.filter(r=>e.indexOf(r)===-1)}function Tn(i,e){return Cv(i,e)}const $i=Object.assign||function(i,...e){for(let r=1;r<e.length;r++){const s=e[r];for(const t in s)Object.prototype.hasOwnProperty.call(s,t)&&(i[t]=s[t])}return i};function rr(){return km.uuid4()}function bs(i){const e=Object.keys(i),r=[];return e.forEach(function(s){r.push(i[s])}),Promise.all(r).then(s=>{const t={};for(let a=0;a<e.length;a++)t[e[a]]=s[a];return t})}function Xr(i,e){return function(s){throw e&&console.error(new Error(i)),s}}function os(i,e,r){for(let s=0;s<e.length;s++){const t=e[s];let a=r[s];a instanceof DataView||(a=new DataView(a instanceof ArrayBuffer?a:a.buffer));let l=i;for(let c=0;c<t.length-1;c++)l=l[t[c]];l[t[t.length-1]]=a}}function vh(i){var e;return(e=typeof i=="object"&&i&&"toJSON"in i)!==null&&e!==void 0?e:!1}function bh(i){return dl.isObject(i)}function yl(i){const e=[],r=[];function s(a,l){if(vh(a)&&(a=a.toJSON()),Array.isArray(a)){let c=!1;for(let f=0;f<a.length;f++){const m=a[f];if(m)if(m instanceof ArrayBuffer||ArrayBuffer.isView(m))c||(a=a.slice(),c=!0),e.push(ArrayBuffer.isView(m)?m.buffer:m),r.push(l.concat([f])),a[f]=null;else{const p=s(m,l.concat([f]));p!==m&&(c||(a=a.slice(),c=!0),a[f]=p)}}}else if(bh(a))for(const c in a){let f=!1;if(Object.prototype.hasOwnProperty.call(a,c)){const m=a[c];if(m)if(m instanceof ArrayBuffer||ArrayBuffer.isView(m))f||(a=Object.assign({},a),f=!0),e.push(ArrayBuffer.isView(m)?m.buffer:m),r.push(l.concat([c])),delete a[c];else{const p=s(m,l.concat([c]));p!==m&&(f||(a=Object.assign({},a),f=!0),a[c]=p)}}}return a}return{state:s(i,[]),buffers:e,buffer_paths:r}}const il=`<svg style="height:50%;max-height: 50px;" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 48 48">
|
|
1
|
+
import{aD as Om,fJ as Lm,as as Dm,ch as ji,k as Ou,r as mn,az as ar,fL as Vi,j as Nm,sJ as cl,ar as Ys,ck as dl,ex as km,sK as Kd,bc as cs,av as jm,sL as Mm,sM as $m,sN as qm,sO as Fm,bd as Vm,ay as Ui,a8 as Mn,j4 as Um,aA as Yd,eA as Lu,n3 as Bm}from"../datalayer-app-main.js";import{b as zm,c as fa}from"./color-CG7_7V2-.js";import{r as Hm}from"./isEqual-B_c_I9Ri.js";import{f as $s}from"./defaultLocale-5voVPcsN.js";const Wm=60*1e3,Jm=500,Du=4;class Sn{constructor(e={}){var r,s,t,a,l,c,f;if(this._id=0,this._ranks={},this._types=null,this._factories={},this.translator=(r=e.translator)!==null&&r!==void 0?r:Om,this.resolver=(s=e.resolver)!==null&&s!==void 0?s:null,this.linkHandler=(t=e.linkHandler)!==null&&t!==void 0?t:null,this.trustHandler=(a=e.trustHandler)!==null&&a!==void 0?a:null,this.latexTypesetter=(l=e.latexTypesetter)!==null&&l!==void 0?l:null,this.markdownParser=(c=e.markdownParser)!==null&&c!==void 0?c:null,this.sanitizer=(f=e.sanitizer)!==null&&f!==void 0?f:new Lm,e.initialFactories)for(const m of e.initialFactories)this.addFactory(m)}get mimeTypes(){return this._types||(this._types=Rn.sortedTypes(this._ranks))}preferredMimeType(e,r="ensure"){if(r==="ensure"||r==="prefer"){for(const s of this.mimeTypes)if(s in e&&this._factories[s].safe)return s}if(r!=="ensure"){for(const s of this.mimeTypes)if(s in e)return s}}createRenderer(e){if(!(e in this._factories))throw new Error(`No factory for mime type: '${e}'`);return this._factories[e].createRenderer({mimeType:e,resolver:this.resolver,sanitizer:this.sanitizer,linkHandler:this.linkHandler,trustHandler:this.trustHandler,latexTypesetter:this.latexTypesetter,markdownParser:this.markdownParser,translator:this.translator})}createModel(e={}){return new Dm(e)}clone(e={}){var r,s,t,a,l,c,f,m,p,_,E,y;const w=new Sn({resolver:(s=(r=e.resolver)!==null&&r!==void 0?r:this.resolver)!==null&&s!==void 0?s:void 0,sanitizer:(a=(t=e.sanitizer)!==null&&t!==void 0?t:this.sanitizer)!==null&&a!==void 0?a:void 0,linkHandler:(c=(l=e.linkHandler)!==null&&l!==void 0?l:this.linkHandler)!==null&&c!==void 0?c:void 0,trustHandler:(m=(f=e.trustHandler)!==null&&f!==void 0?f:this.trustHandler)!==null&&m!==void 0?m:void 0,latexTypesetter:(_=(p=e.latexTypesetter)!==null&&p!==void 0?p:this.latexTypesetter)!==null&&_!==void 0?_:void 0,markdownParser:(y=(E=e.markdownParser)!==null&&E!==void 0?E:this.markdownParser)!==null&&y!==void 0?y:void 0,translator:this.translator});return w._factories={...this._factories},w._ranks={...this._ranks},w._id=this._id,w}getFactory(e){return this._factories[e]}addFactory(e,r){r===void 0&&(r=e.defaultRank,r===void 0&&(r=100));for(const s of e.mimeTypes)this._factories[s]=e,this._ranks[s]={rank:r,id:this._id++};this._types=null}removeMimeType(e){delete this._factories[e],delete this._ranks[e],this._types=null}getRank(e){const r=this._ranks[e];return r&&r.rank}setRank(e,r){if(!this._ranks[e])return;const s=this._id++;this._ranks[e]={rank:r,id:s},this._types=null}}(function(i){class e{constructor(s){this._resolvePathApiAvailable=null,this._resolvePathCache=new ji.LruCache({maxSize:Jm}),this._resolvePathCacheKernelId="",this._resolvePathLanes=Array.from({length:Du},()=>Promise.resolve()),this._resolvePathLane=0,this._path=s.path,this._contents=s.contents,this._getKernelId=s.getKernelId}get path(){return this._path}set path(s){this._path=s}async resolveUrl(s){if(this.isLocal(s)){const t=encodeURI(ji.PathExt.dirname(this.path));s=ji.PathExt.resolve(t,s)}return s}async getDownloadUrl(s){return this.isLocal(s)?this._contents.getDownloadUrl(decodeURIComponent(s)):s}isLocal(s,t=!1){return this.isMalformed(s)?!1:ji.URLExt.isLocal(s,t)||!!this._contents.driveName(decodeURI(s))}async resolvePath(s){var t,a;const l=(a=(t=this._getKernelId)===null||t===void 0?void 0:t.call(this))!==null&&a!==void 0?a:"";l!==this._resolvePathCacheKernelId&&(this._resolvePathCache.clear(),this._resolvePathCacheKernelId=l);const c=this._resolvePathCache.get(s);return c&&(c.pending||Date.now()-c.time<Wm)?c.result:this._resolveAndRememberPath(s)}isMalformed(s){try{return decodeURI(s),!1}catch(t){if(t instanceof URIError)return!0;throw t}}_resolveAndRememberPath(s){const t={pending:!0,time:Date.now(),result:this._resolveInLane(s)};return t.result=t.result.then(a=>(t.pending=!1,t.time=Date.now(),a),a=>(console.warn(`Could not resolve location of ${s}`,a),t.pending=!1,t.time=0,null)),this._resolvePathCache.set(s,t),t.result}_resolveInLane(s){const t=(this._resolvePathLane+1)%Du;this._resolvePathLane=t;const a=this._resolvePathLanes[t].then(()=>this._resolveUncachedPath(s));return this._resolvePathLanes[t]=a.catch(()=>{}),a}async _resolveUncachedPath(s){const t=await this._resolvePathUsingServerApi(s);return t!==void 0?t:this._resolvePathUsingLegacyHeuristics(s)}async _resolvePathUsingServerApi(s){var t,a,l,c,f,m;if(this._resolvePathApiAvailable===!1)return;const p={path:s},_=(t=this._getKernelId)===null||t===void 0?void 0:t.call(this);_&&(p.kernel=_);let E=await this._makeResolvePathRequest(p);if(!E)throw new Error(`Could not reach the server to resolve ${s}`);if(E.status===404){this._resolvePathApiAvailable=!1;return}if(!E.ok)throw new Error(`Server answered ${E.status} when resolving ${s}`);this._resolvePathApiAvailable=!0;try{const y=await E.json(),w=(l=(a=y?.resolved)===null||a===void 0?void 0:a.filter(Rn.isResolvedLocation))!==null&&l!==void 0?l:[],R=(f=(c=y?.unresolved)===null||c===void 0?void 0:c.some(C=>!!C&&typeof C=="object"&&C.scope==="kernel"))!==null&&f!==void 0?f:!1;return w.length?(m=w.find(C=>C.scope==="server"))!==null&&m!==void 0?m:w[0]:null}catch{throw new Error(`Could not read the resolution of ${s}`)}}async _makeResolvePathRequest(s){const t=this._contents.serverSettings,a=ji.URLExt.join(t.baseUrl,"api","resolvePath")+ji.URLExt.objectToQueryString(s);try{return await Ou.ServerConnection.makeRequest(a,{},t)}catch{return null}}async _resolvePathUsingLegacyHeuristics(s){const t=ji.PageConfig.getOption("rootUri").replace("file://","");if(s.startsWith("~/")&&t.startsWith("/home/")&&(s=t.split("/").slice(0,3).join("/")+s.substring(1)),s.startsWith(t)||s.startsWith("./"))try{const a=s.replace(t,"");return{path:(await this._contents.get(a,{content:!1})).path,scope:"server"}}catch(a){if(a instanceof Ou.ServerConnection.ResponseError&&a.response.status===404)return null;throw a}return{path:s,scope:"kernel"}}}i.UrlResolver=e})(Sn||(Sn={}));var Rn;(function(i){function e(s){if(!s||typeof s!="object")return!1;const t=s;return typeof t.path=="string"&&(t.scope==="server"||t.scope==="kernel")}i.isResolvedLocation=e;function r(s){return Object.keys(s).sort((t,a)=>{const l=s[t],c=s[a];return l.rank!==c.rank?l.rank-c.rank:l.id-c.id})}i.sortedTypes=r})(Rn||(Rn={}));const q0=({id:i="lumino-id",height:e="100%",children:r})=>{const s=mn.useRef(null),t=mn.useRef(!0);return mn.useEffect(()=>()=>{t.current=!1},[]),mn.useEffect(()=>{if(s&&s.current&&r){try{r.isAttached?s.current.contains(r.node)||ar.attach(r,s.current):(ar.attach(r,s.current),r.isVisible||r.show(),r.update())}catch(l){console.warn("Exception while attaching Lumino widget.",l)}const a=new ResizeObserver(()=>{r.isAttached&&Vi.sendMessage(r,ar.ResizeMessage.UnknownSize)});return a.observe(s.current),()=>{a.disconnect();const l=r;queueMicrotask(()=>{try{if(!t.current)return;l&&!l.isDisposed&&l.isAttached&&ar.detach(l)}catch(c){console.warn("Exception while detaching Lumino widget.",c)}})}}},[s,r]),Nm.jsx("div",{id:i,ref:s,style:{height:e,minHeight:e}})};var js={exports:{}};var Gm=js.exports,Nu;function Xm(){return Nu||(Nu=1,(function(i,e){(function(r,s){s(e)})(Gm,(function(r){function s(){for(var q=arguments.length,L=Array(q),B=0;B<q;B++)L[B]=arguments[B];if(L.length>1){L[0]=L[0].slice(0,-1);for(var ue=L.length-1,le=1;le<ue;++le)L[le]=L[le].slice(1,-1);return L[ue]=L[ue].slice(1),L.join("")}else return L[0]}function t(q){return"(?:"+q+")"}function a(q){return q===void 0?"undefined":q===null?"null":Object.prototype.toString.call(q).split(" ").pop().split("]").shift().toLowerCase()}function l(q){return q.toUpperCase()}function c(q){return q!=null?q instanceof Array?q:typeof q.length!="number"||q.split||q.setInterval||q.call?[q]:Array.prototype.slice.call(q):[]}function f(q,L){var B=q;if(L)for(var ue in L)B[ue]=L[ue];return B}function m(q){var L="[A-Za-z]",B="[0-9]",ue=s(B,"[A-Fa-f]"),le=t(t("%[EFef]"+ue+"%"+ue+ue+"%"+ue+ue)+"|"+t("%[89A-Fa-f]"+ue+"%"+ue+ue)+"|"+t("%"+ue+ue)),Je="[\\:\\/\\?\\#\\[\\]\\@]",Qe="[\\!\\$\\&\\'\\(\\)\\*\\+\\,\\;\\=]",mt=s(Je,Qe),Lt=q?"[\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]":"[]",At=q?"[\\uE000-\\uF8FF]":"[]",ht=s(L,B,"[\\-\\.\\_\\~]",Lt);t(L+s(L,B,"[\\+\\-\\.]")+"*"),t(t(le+"|"+s(ht,Qe,"[\\:]"))+"*");var wt=t(t("25[0-5]")+"|"+t("2[0-4]"+B)+"|"+t("1"+B+B)+"|"+t("0?[1-9]"+B)+"|0?0?"+B),jt=t(wt+"\\."+wt+"\\."+wt+"\\."+wt),Ze=t(ue+"{1,4}"),Dt=t(t(Ze+"\\:"+Ze)+"|"+jt),Ut=t(t(Ze+"\\:")+"{6}"+Dt),Rt=t("\\:\\:"+t(Ze+"\\:")+"{5}"+Dt),Ir=t(t(Ze)+"?\\:\\:"+t(Ze+"\\:")+"{4}"+Dt),wr=t(t(t(Ze+"\\:")+"{0,1}"+Ze)+"?\\:\\:"+t(Ze+"\\:")+"{3}"+Dt),ir=t(t(t(Ze+"\\:")+"{0,2}"+Ze)+"?\\:\\:"+t(Ze+"\\:")+"{2}"+Dt),Or=t(t(t(Ze+"\\:")+"{0,3}"+Ze)+"?\\:\\:"+Ze+"\\:"+Dt),zr=t(t(t(Ze+"\\:")+"{0,4}"+Ze)+"?\\:\\:"+Dt),Zt=t(t(t(Ze+"\\:")+"{0,5}"+Ze)+"?\\:\\:"+Ze),Rr=t(t(t(Ze+"\\:")+"{0,6}"+Ze)+"?\\:\\:"),Hr=t([Ut,Rt,Ir,wr,ir,Or,zr,Zt,Rr].join("|")),ur=t(t(ht+"|"+le)+"+");t("[vV]"+ue+"+\\."+s(ht,Qe,"[\\:]")+"+"),t(t(le+"|"+s(ht,Qe))+"*");var ei=t(le+"|"+s(ht,Qe,"[\\:\\@]"));return t(t(le+"|"+s(ht,Qe,"[\\@]"))+"+"),t(t(ei+"|"+s("[\\/\\?]",At))+"*"),{NOT_SCHEME:new RegExp(s("[^]",L,B,"[\\+\\-\\.]"),"g"),NOT_USERINFO:new RegExp(s("[^\\%\\:]",ht,Qe),"g"),NOT_HOST:new RegExp(s("[^\\%\\[\\]\\:]",ht,Qe),"g"),NOT_PATH:new RegExp(s("[^\\%\\/\\:\\@]",ht,Qe),"g"),NOT_PATH_NOSCHEME:new RegExp(s("[^\\%\\/\\@]",ht,Qe),"g"),NOT_QUERY:new RegExp(s("[^\\%]",ht,Qe,"[\\:\\@\\/\\?]",At),"g"),NOT_FRAGMENT:new RegExp(s("[^\\%]",ht,Qe,"[\\:\\@\\/\\?]"),"g"),ESCAPE:new RegExp(s("[^]",ht,Qe),"g"),UNRESERVED:new RegExp(ht,"g"),OTHER_CHARS:new RegExp(s("[^\\%]",ht,mt),"g"),PCT_ENCODED:new RegExp(le,"g"),IPV4ADDRESS:new RegExp("^("+jt+")$"),IPV6ADDRESS:new RegExp("^\\[?("+Hr+")"+t(t("\\%25|\\%(?!"+ue+"{2})")+"("+ur+")")+"?\\]?$")}}var p=m(!1),_=m(!0),E=(function(){function q(L,B){var ue=[],le=!0,Je=!1,Qe=void 0;try{for(var mt=L[Symbol.iterator](),Lt;!(le=(Lt=mt.next()).done)&&(ue.push(Lt.value),!(B&&ue.length===B));le=!0);}catch(At){Je=!0,Qe=At}finally{try{!le&&mt.return&&mt.return()}finally{if(Je)throw Qe}}return ue}return function(L,B){if(Array.isArray(L))return L;if(Symbol.iterator in Object(L))return q(L,B);throw new TypeError("Invalid attempt to destructure non-iterable instance")}})(),y=function(q){if(Array.isArray(q)){for(var L=0,B=Array(q.length);L<q.length;L++)B[L]=q[L];return B}else return Array.from(q)},w=2147483647,R=36,C=1,A=26,te=38,Y=700,U=72,F=128,ee="-",u=/^xn--/,P=/[^\0-\x7E]/,W=/[\x2E\u3002\uFF0E\uFF61]/g,z={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},G=R-C,X=Math.floor,oe=String.fromCharCode;function ye(q){throw new RangeError(z[q])}function Oe(q,L){for(var B=[],ue=q.length;ue--;)B[ue]=L(q[ue]);return B}function ze(q,L){var B=q.split("@"),ue="";B.length>1&&(ue=B[0]+"@",q=B[1]),q=q.replace(W,".");var le=q.split("."),Je=Oe(le,L).join(".");return ue+Je}function he(q){for(var L=[],B=0,ue=q.length;B<ue;){var le=q.charCodeAt(B++);if(le>=55296&&le<=56319&&B<ue){var Je=q.charCodeAt(B++);(Je&64512)==56320?L.push(((le&1023)<<10)+(Je&1023)+65536):(L.push(le),B--)}else L.push(le)}return L}var re=function(L){return String.fromCodePoint.apply(String,y(L))},we=function(L){return L-48<10?L-22:L-65<26?L-65:L-97<26?L-97:R},xe=function(L,B){return L+22+75*(L<26)-((B!=0)<<5)},Fe=function(L,B,ue){var le=0;for(L=ue?X(L/Y):L>>1,L+=X(L/B);L>G*A>>1;le+=R)L=X(L/G);return X(le+(G+1)*L/(L+te))},Pe=function(L){var B=[],ue=L.length,le=0,Je=F,Qe=U,mt=L.lastIndexOf(ee);mt<0&&(mt=0);for(var Lt=0;Lt<mt;++Lt)L.charCodeAt(Lt)>=128&&ye("not-basic"),B.push(L.charCodeAt(Lt));for(var At=mt>0?mt+1:0;At<ue;){for(var ht=le,wt=1,jt=R;;jt+=R){At>=ue&&ye("invalid-input");var Ze=we(L.charCodeAt(At++));(Ze>=R||Ze>X((w-le)/wt))&&ye("overflow"),le+=Ze*wt;var Dt=jt<=Qe?C:jt>=Qe+A?A:jt-Qe;if(Ze<Dt)break;var Ut=R-Dt;wt>X(w/Ut)&&ye("overflow"),wt*=Ut}var Rt=B.length+1;Qe=Fe(le-ht,Rt,ht==0),X(le/Rt)>w-Je&&ye("overflow"),Je+=X(le/Rt),le%=Rt,B.splice(le++,0,Je)}return String.fromCodePoint.apply(String,B)},Ne=function(L){var B=[];L=he(L);var ue=L.length,le=F,Je=0,Qe=U,mt=!0,Lt=!1,At=void 0;try{for(var ht=L[Symbol.iterator](),wt;!(mt=(wt=ht.next()).done);mt=!0){var jt=wt.value;jt<128&&B.push(oe(jt))}}catch(Lr){Lt=!0,At=Lr}finally{try{!mt&&ht.return&&ht.return()}finally{if(Lt)throw At}}var Ze=B.length,Dt=Ze;for(Ze&&B.push(ee);Dt<ue;){var Ut=w,Rt=!0,Ir=!1,wr=void 0;try{for(var ir=L[Symbol.iterator](),Or;!(Rt=(Or=ir.next()).done);Rt=!0){var zr=Or.value;zr>=le&&zr<Ut&&(Ut=zr)}}catch(Lr){Ir=!0,wr=Lr}finally{try{!Rt&&ir.return&&ir.return()}finally{if(Ir)throw wr}}var Zt=Dt+1;Ut-le>X((w-Je)/Zt)&&ye("overflow"),Je+=(Ut-le)*Zt,le=Ut;var Rr=!0,Hr=!1,ur=void 0;try{for(var ei=L[Symbol.iterator](),Mr;!(Rr=(Mr=ei.next()).done);Rr=!0){var qt=Mr.value;if(qt<le&&++Je>w&&ye("overflow"),qt==le){for(var Bt=Je,xr=R;;xr+=R){var $r=xr<=Qe?C:xr>=Qe+A?A:xr-Qe;if(Bt<$r)break;var Ai=Bt-$r,Qi=R-$r;B.push(oe(xe($r+Ai%Qi,0))),Bt=X(Ai/Qi)}B.push(oe(xe(Bt,0))),Qe=Fe(Je,Zt,Dt==Ze),Je=0,++Dt}}}catch(Lr){Hr=!0,ur=Lr}finally{try{!Rr&&ei.return&&ei.return()}finally{if(Hr)throw ur}}++Je,++le}return B.join("")},Ue=function(L){return ze(L,function(B){return u.test(B)?Pe(B.slice(4).toLowerCase()):B})},qe=function(L){return ze(L,function(B){return P.test(B)?"xn--"+Ne(B):B})},$={version:"2.1.0",ucs2:{decode:he,encode:re},decode:Pe,encode:Ne,toASCII:qe,toUnicode:Ue},ce={};function Ee(q){var L=q.charCodeAt(0),B=void 0;return L<16?B="%0"+L.toString(16).toUpperCase():L<128?B="%"+L.toString(16).toUpperCase():L<2048?B="%"+(L>>6|192).toString(16).toUpperCase()+"%"+(L&63|128).toString(16).toUpperCase():B="%"+(L>>12|224).toString(16).toUpperCase()+"%"+(L>>6&63|128).toString(16).toUpperCase()+"%"+(L&63|128).toString(16).toUpperCase(),B}function Ve(q){for(var L="",B=0,ue=q.length;B<ue;){var le=parseInt(q.substr(B+1,2),16);if(le<128)L+=String.fromCharCode(le),B+=3;else if(le>=194&&le<224){if(ue-B>=6){var Je=parseInt(q.substr(B+4,2),16);L+=String.fromCharCode((le&31)<<6|Je&63)}else L+=q.substr(B,6);B+=6}else if(le>=224){if(ue-B>=9){var Qe=parseInt(q.substr(B+4,2),16),mt=parseInt(q.substr(B+7,2),16);L+=String.fromCharCode((le&15)<<12|(Qe&63)<<6|mt&63)}else L+=q.substr(B,9);B+=9}else L+=q.substr(B,3),B+=3}return L}function me(q,L){function B(ue){var le=Ve(ue);return le.match(L.UNRESERVED)?le:ue}return q.scheme&&(q.scheme=String(q.scheme).replace(L.PCT_ENCODED,B).toLowerCase().replace(L.NOT_SCHEME,"")),q.userinfo!==void 0&&(q.userinfo=String(q.userinfo).replace(L.PCT_ENCODED,B).replace(L.NOT_USERINFO,Ee).replace(L.PCT_ENCODED,l)),q.host!==void 0&&(q.host=String(q.host).replace(L.PCT_ENCODED,B).toLowerCase().replace(L.NOT_HOST,Ee).replace(L.PCT_ENCODED,l)),q.path!==void 0&&(q.path=String(q.path).replace(L.PCT_ENCODED,B).replace(q.scheme?L.NOT_PATH:L.NOT_PATH_NOSCHEME,Ee).replace(L.PCT_ENCODED,l)),q.query!==void 0&&(q.query=String(q.query).replace(L.PCT_ENCODED,B).replace(L.NOT_QUERY,Ee).replace(L.PCT_ENCODED,l)),q.fragment!==void 0&&(q.fragment=String(q.fragment).replace(L.PCT_ENCODED,B).replace(L.NOT_FRAGMENT,Ee).replace(L.PCT_ENCODED,l)),q}function Re(q){return q.replace(/^0*(.*)/,"$1")||"0"}function He(q,L){var B=q.match(L.IPV4ADDRESS)||[],ue=E(B,2),le=ue[1];return le?le.split(".").map(Re).join("."):q}function rt(q,L){var B=q.match(L.IPV6ADDRESS)||[],ue=E(B,3),le=ue[1],Je=ue[2];if(le){for(var Qe=le.toLowerCase().split("::").reverse(),mt=E(Qe,2),Lt=mt[0],At=mt[1],ht=At?At.split(":").map(Re):[],wt=Lt.split(":").map(Re),jt=L.IPV4ADDRESS.test(wt[wt.length-1]),Ze=jt?7:8,Dt=wt.length-Ze,Ut=Array(Ze),Rt=0;Rt<Ze;++Rt)Ut[Rt]=ht[Rt]||wt[Dt+Rt]||"";jt&&(Ut[Ze-1]=He(Ut[Ze-1],L));var Ir=Ut.reduce(function(Zt,Rr,Hr){if(!Rr||Rr==="0"){var ur=Zt[Zt.length-1];ur&&ur.index+ur.length===Hr?ur.length++:Zt.push({index:Hr,length:1})}return Zt},[]),wr=Ir.sort(function(Zt,Rr){return Rr.length-Zt.length})[0],ir=void 0;if(wr&&wr.length>1){var Or=Ut.slice(0,wr.index),zr=Ut.slice(wr.index+wr.length);ir=Or.join(":")+"::"+zr.join(":")}else ir=Ut.join(":");return Je&&(ir+="%"+Je),ir}else return q}var g=/^(?:([^:\/?#]+):)?(?:\/\/((?:([^\/?#@]*)@)?(\[[^\/?#\]]+\]|[^\/?#:]*)(?:\:(\d*))?))?([^?#]*)(?:\?([^#]*))?(?:#((?:.|\n|\r)*))?/i,T="".match(/(){0}/)[1]===void 0;function O(q){var L=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},B={},ue=L.iri!==!1?_:p;L.reference==="suffix"&&(q=(L.scheme?L.scheme+":":"")+"//"+q);var le=q.match(g);if(le){T?(B.scheme=le[1],B.userinfo=le[3],B.host=le[4],B.port=parseInt(le[5],10),B.path=le[6]||"",B.query=le[7],B.fragment=le[8],isNaN(B.port)&&(B.port=le[5])):(B.scheme=le[1]||void 0,B.userinfo=q.indexOf("@")!==-1?le[3]:void 0,B.host=q.indexOf("//")!==-1?le[4]:void 0,B.port=parseInt(le[5],10),B.path=le[6]||"",B.query=q.indexOf("?")!==-1?le[7]:void 0,B.fragment=q.indexOf("#")!==-1?le[8]:void 0,isNaN(B.port)&&(B.port=q.match(/\/\/(?:.|\n)*\:(?:\/|\?|\#|$)/)?le[4]:void 0)),B.host&&(B.host=rt(He(B.host,ue),ue)),B.scheme===void 0&&B.userinfo===void 0&&B.host===void 0&&B.port===void 0&&!B.path&&B.query===void 0?B.reference="same-document":B.scheme===void 0?B.reference="relative":B.fragment===void 0?B.reference="absolute":B.reference="uri",L.reference&&L.reference!=="suffix"&&L.reference!==B.reference&&(B.error=B.error||"URI is not a "+L.reference+" reference.");var Je=ce[(L.scheme||B.scheme||"").toLowerCase()];if(!L.unicodeSupport&&(!Je||!Je.unicodeSupport)){if(B.host&&(L.domainHost||Je&&Je.domainHost))try{B.host=$.toASCII(B.host.replace(ue.PCT_ENCODED,Ve).toLowerCase())}catch(Qe){B.error=B.error||"Host's domain name can not be converted to ASCII via punycode: "+Qe}me(B,p)}else me(B,ue);Je&&Je.parse&&Je.parse(B,L)}else B.error=B.error||"URI can not be parsed.";return B}function V(q,L){var B=L.iri!==!1?_:p,ue=[];return q.userinfo!==void 0&&(ue.push(q.userinfo),ue.push("@")),q.host!==void 0&&ue.push(rt(He(String(q.host),B),B).replace(B.IPV6ADDRESS,function(le,Je,Qe){return"["+Je+(Qe?"%25"+Qe:"")+"]"})),(typeof q.port=="number"||typeof q.port=="string")&&(ue.push(":"),ue.push(String(q.port))),ue.length?ue.join(""):void 0}var se=/^\.\.?\//,fe=/^\/\.(\/|$)/,ke=/^\/\.\.(\/|$)/,et=/^\/?(?:.|\n)*?(?=\/|$)/;function Ye(q){for(var L=[];q.length;)if(q.match(se))q=q.replace(se,"");else if(q.match(fe))q=q.replace(fe,"/");else if(q.match(ke))q=q.replace(ke,"/"),L.pop();else if(q==="."||q==="..")q="";else{var B=q.match(et);if(B){var ue=B[0];q=q.slice(ue.length),L.push(ue)}else throw new Error("Unexpected dot segment condition")}return L.join("")}function at(q){var L=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},B=L.iri?_:p,ue=[],le=ce[(L.scheme||q.scheme||"").toLowerCase()];if(le&&le.serialize&&le.serialize(q,L),q.host&&!B.IPV6ADDRESS.test(q.host)){if(L.domainHost||le&&le.domainHost)try{q.host=L.iri?$.toUnicode(q.host):$.toASCII(q.host.replace(B.PCT_ENCODED,Ve).toLowerCase())}catch(mt){q.error=q.error||"Host's domain name can not be converted to "+(L.iri?"Unicode":"ASCII")+" via punycode: "+mt}}me(q,B),L.reference!=="suffix"&&q.scheme&&(ue.push(q.scheme),ue.push(":"));var Je=V(q,L);if(Je!==void 0&&(L.reference!=="suffix"&&ue.push("//"),ue.push(Je),q.path&&q.path.charAt(0)!=="/"&&ue.push("/")),q.path!==void 0){var Qe=q.path;!L.absolutePath&&(!le||!le.absolutePath)&&(Qe=Ye(Qe)),Je===void 0&&(Qe=Qe.replace(/^\/\//,"/%2F")),ue.push(Qe)}return q.query!==void 0&&(ue.push("?"),ue.push(q.query)),q.fragment!==void 0&&(ue.push("#"),ue.push(q.fragment)),ue.join("")}function pt(q,L){var B=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},ue=arguments[3],le={};return ue||(q=O(at(q,B),B),L=O(at(L,B),B)),B=B||{},!B.tolerant&&L.scheme?(le.scheme=L.scheme,le.userinfo=L.userinfo,le.host=L.host,le.port=L.port,le.path=Ye(L.path||""),le.query=L.query):(L.userinfo!==void 0||L.host!==void 0||L.port!==void 0?(le.userinfo=L.userinfo,le.host=L.host,le.port=L.port,le.path=Ye(L.path||""),le.query=L.query):(L.path?(L.path.charAt(0)==="/"?le.path=Ye(L.path):((q.userinfo!==void 0||q.host!==void 0||q.port!==void 0)&&!q.path?le.path="/"+L.path:q.path?le.path=q.path.slice(0,q.path.lastIndexOf("/")+1)+L.path:le.path=L.path,le.path=Ye(le.path)),le.query=L.query):(le.path=q.path,L.query!==void 0?le.query=L.query:le.query=q.query),le.userinfo=q.userinfo,le.host=q.host,le.port=q.port),le.scheme=q.scheme),le.fragment=L.fragment,le}function Ce(q,L,B){var ue=f({scheme:"null"},B);return at(pt(O(q,ue),O(L,ue),ue,!0),ue)}function _t(q,L){return typeof q=="string"?q=at(O(q,L),L):a(q)==="object"&&(q=O(at(q,L),L)),q}function k(q,L,B){return typeof q=="string"?q=at(O(q,B),B):a(q)==="object"&&(q=at(q,B)),typeof L=="string"?L=at(O(L,B),B):a(L)==="object"&&(L=at(L,B)),q===L}function S(q,L){return q&&q.toString().replace(!L||!L.iri?p.ESCAPE:_.ESCAPE,Ee)}function D(q,L){return q&&q.toString().replace(!L||!L.iri?p.PCT_ENCODED:_.PCT_ENCODED,Ve)}var Q={scheme:"http",domainHost:!0,parse:function(L,B){return L.host||(L.error=L.error||"HTTP URIs must have a host."),L},serialize:function(L,B){var ue=String(L.scheme).toLowerCase()==="https";return(L.port===(ue?443:80)||L.port==="")&&(L.port=void 0),L.path||(L.path="/"),L}},J={scheme:"https",domainHost:Q.domainHost,parse:Q.parse,serialize:Q.serialize};function ve(q){return typeof q.secure=="boolean"?q.secure:String(q.scheme).toLowerCase()==="wss"}var Ae={scheme:"ws",domainHost:!0,parse:function(L,B){var ue=L;return ue.secure=ve(ue),ue.resourceName=(ue.path||"/")+(ue.query?"?"+ue.query:""),ue.path=void 0,ue.query=void 0,ue},serialize:function(L,B){if((L.port===(ve(L)?443:80)||L.port==="")&&(L.port=void 0),typeof L.secure=="boolean"&&(L.scheme=L.secure?"wss":"ws",L.secure=void 0),L.resourceName){var ue=L.resourceName.split("?"),le=E(ue,2),Je=le[0],Qe=le[1];L.path=Je&&Je!=="/"?Je:void 0,L.query=Qe,L.resourceName=void 0}return L.fragment=void 0,L}},tt={scheme:"wss",domainHost:Ae.domainHost,parse:Ae.parse,serialize:Ae.serialize},nt={},Mt="[A-Za-z0-9\\-\\.\\_\\~\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]",Be="[0-9A-Fa-f]",je=t(t("%[EFef]"+Be+"%"+Be+Be+"%"+Be+Be)+"|"+t("%[89A-Fa-f]"+Be+"%"+Be+Be)+"|"+t("%"+Be+Be)),ct="[A-Za-z0-9\\!\\$\\%\\'\\*\\+\\-\\^\\_\\`\\{\\|\\}\\~]",dt="[\\!\\$\\%\\'\\(\\)\\*\\+\\,\\-\\.0-9\\<\\>A-Z\\x5E-\\x7E]",We=s(dt,'[\\"\\\\]'),Pt="[\\!\\$\\'\\(\\)\\*\\+\\,\\;\\:\\@]",Qt=new RegExp(Mt,"g"),Ct=new RegExp(je,"g"),zt=new RegExp(s("[^]",ct,"[\\.]",'[\\"]',We),"g"),Vt=new RegExp(s("[^]",Mt,Pt),"g"),kr=Vt;function Pi(q){var L=Ve(q);return L.match(Qt)?L:q}var yr={scheme:"mailto",parse:function(L,B){var ue=L,le=ue.to=ue.path?ue.path.split(","):[];if(ue.path=void 0,ue.query){for(var Je=!1,Qe={},mt=ue.query.split("&"),Lt=0,At=mt.length;Lt<At;++Lt){var ht=mt[Lt].split("=");switch(ht[0]){case"to":for(var wt=ht[1].split(","),jt=0,Ze=wt.length;jt<Ze;++jt)le.push(wt[jt]);break;case"subject":ue.subject=D(ht[1],B);break;case"body":ue.body=D(ht[1],B);break;default:Je=!0,Qe[D(ht[0],B)]=D(ht[1],B);break}}Je&&(ue.headers=Qe)}ue.query=void 0;for(var Dt=0,Ut=le.length;Dt<Ut;++Dt){var Rt=le[Dt].split("@");if(Rt[0]=D(Rt[0]),B.unicodeSupport)Rt[1]=D(Rt[1],B).toLowerCase();else try{Rt[1]=$.toASCII(D(Rt[1],B).toLowerCase())}catch(Ir){ue.error=ue.error||"Email address's domain name can not be converted to ASCII via punycode: "+Ir}le[Dt]=Rt.join("@")}return ue},serialize:function(L,B){var ue=L,le=c(L.to);if(le){for(var Je=0,Qe=le.length;Je<Qe;++Je){var mt=String(le[Je]),Lt=mt.lastIndexOf("@"),At=mt.slice(0,Lt).replace(Ct,Pi).replace(Ct,l).replace(zt,Ee),ht=mt.slice(Lt+1);try{ht=B.iri?$.toUnicode(ht):$.toASCII(D(ht,B).toLowerCase())}catch(Dt){ue.error=ue.error||"Email address's domain name can not be converted to "+(B.iri?"Unicode":"ASCII")+" via punycode: "+Dt}le[Je]=At+"@"+ht}ue.path=le.join(",")}var wt=L.headers=L.headers||{};L.subject&&(wt.subject=L.subject),L.body&&(wt.body=L.body);var jt=[];for(var Ze in wt)wt[Ze]!==nt[Ze]&&jt.push(Ze.replace(Ct,Pi).replace(Ct,l).replace(Vt,Ee)+"="+wt[Ze].replace(Ct,Pi).replace(Ct,l).replace(kr,Ee));return jt.length&&(ue.query=jt.join("&")),ue}},Yi=/^([^\:]+)\:(.*)/,jr={scheme:"urn",parse:function(L,B){var ue=L.path&&L.path.match(Yi),le=L;if(ue){var Je=B.scheme||le.scheme||"urn",Qe=ue[1].toLowerCase(),mt=ue[2],Lt=Je+":"+(B.nid||Qe),At=ce[Lt];le.nid=Qe,le.nss=mt,le.path=void 0,At&&(le=At.parse(le,B))}else le.error=le.error||"URN can not be parsed.";return le},serialize:function(L,B){var ue=B.scheme||L.scheme||"urn",le=L.nid,Je=ue+":"+(B.nid||le),Qe=ce[Je];Qe&&(L=Qe.serialize(L,B));var mt=L,Lt=L.nss;return mt.path=(le||B.nid)+":"+Lt,mt}},Zr=/^[0-9A-Fa-f]{8}(?:\-[0-9A-Fa-f]{4}){3}\-[0-9A-Fa-f]{12}$/,vi={scheme:"urn:uuid",parse:function(L,B){var ue=L;return ue.uuid=ue.nss,ue.nss=void 0,!B.tolerant&&(!ue.uuid||!ue.uuid.match(Zr))&&(ue.error=ue.error||"UUID is not valid."),ue},serialize:function(L,B){var ue=L;return ue.nss=(L.uuid||"").toLowerCase(),ue}};ce[Q.scheme]=Q,ce[J.scheme]=J,ce[Ae.scheme]=Ae,ce[tt.scheme]=tt,ce[yr.scheme]=yr,ce[jr.scheme]=jr,ce[vi.scheme]=vi,r.SCHEMES=ce,r.pctEncChar=Ee,r.pctDecChars=Ve,r.parse=O,r.removeDotSegments=Ye,r.serialize=at,r.resolveComponents=pt,r.resolve=Ce,r.normalize=_t,r.equal=k,r.escapeComponent=S,r.unescapeComponent=D,Object.defineProperty(r,"__esModule",{value:!0})}))})(js,js.exports)),js.exports}var pa,ku;function Km(){return ku||(ku=1,pa=function(e){for(var r=0,s=e.length,t=0,a;t<s;)r++,a=e.charCodeAt(t++),a>=55296&&a<=56319&&t<s&&(a=e.charCodeAt(t),(a&64512)==56320&&t++);return r}),pa}var ma,ju;function vs(){if(ju)return ma;ju=1,ma={copy:i,checkDataType:e,checkDataTypes:r,coerceToTypes:t,toHash:a,getProperty:f,escapeQuotes:m,equal:cl(),ucs2length:Km(),varOccurences:p,varReplace:_,schemaHasRules:E,schemaHasRulesExcept:y,schemaUnknownRules:w,toQuotedString:R,getPathExpr:C,getPath:A,getData:U,unescapeFragment:ee,unescapeJsonPointer:W,escapeFragment:u,escapeJsonPointer:P};function i(z,G){G=G||{};for(var X in z)G[X]=z[X];return G}function e(z,G,X,oe){var ye=oe?" !== ":" === ",Oe=oe?" || ":" && ",ze=oe?"!":"",he=oe?"":"!";switch(z){case"null":return G+ye+"null";case"array":return ze+"Array.isArray("+G+")";case"object":return"("+ze+G+Oe+"typeof "+G+ye+'"object"'+Oe+he+"Array.isArray("+G+"))";case"integer":return"(typeof "+G+ye+'"number"'+Oe+he+"("+G+" % 1)"+Oe+G+ye+G+(X?Oe+ze+"isFinite("+G+")":"")+")";case"number":return"(typeof "+G+ye+'"'+z+'"'+(X?Oe+ze+"isFinite("+G+")":"")+")";default:return"typeof "+G+ye+'"'+z+'"'}}function r(z,G,X){switch(z.length){case 1:return e(z[0],G,X,!0);default:var oe="",ye=a(z);ye.array&&ye.object&&(oe=ye.null?"(":"(!"+G+" || ",oe+="typeof "+G+' !== "object")',delete ye.null,delete ye.array,delete ye.object),ye.number&&delete ye.integer;for(var Oe in ye)oe+=(oe?" && ":"")+e(Oe,G,X,!0);return oe}}var s=a(["string","number","integer","boolean","null"]);function t(z,G){if(Array.isArray(G)){for(var X=[],oe=0;oe<G.length;oe++){var ye=G[oe];(s[ye]||z==="array"&&ye==="array")&&(X[X.length]=ye)}if(X.length)return X}else{if(s[G])return[G];if(z==="array"&&G==="array")return["array"]}}function a(z){for(var G={},X=0;X<z.length;X++)G[z[X]]=!0;return G}var l=/^[a-z$_][a-z$_0-9]*$/i,c=/'|\\/g;function f(z){return typeof z=="number"?"["+z+"]":l.test(z)?"."+z:"['"+m(z)+"']"}function m(z){return z.replace(c,"\\$&").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/\f/g,"\\f").replace(/\t/g,"\\t")}function p(z,G){G+="[^0-9]";var X=z.match(new RegExp(G,"g"));return X?X.length:0}function _(z,G,X){return G+="([^0-9])",X=X.replace(/\$/g,"$$$$"),z.replace(new RegExp(G,"g"),X+"$1")}function E(z,G){if(typeof z=="boolean")return!z;for(var X in z)if(G[X])return!0}function y(z,G,X){if(typeof z=="boolean")return!z&&X!="not";for(var oe in z)if(oe!=X&&G[oe])return!0}function w(z,G){if(typeof z!="boolean"){for(var X in z)if(!G[X])return X}}function R(z){return"'"+m(z)+"'"}function C(z,G,X,oe){var ye=X?"'/' + "+G+(oe?"":".replace(/~/g, '~0').replace(/\\//g, '~1')"):oe?"'[' + "+G+" + ']'":"'[\\'' + "+G+" + '\\']'";return F(z,ye)}function A(z,G,X){var oe=R(X?"/"+P(G):f(G));return F(z,oe)}var te=/^\/(?:[^~]|~0|~1)*$/,Y=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function U(z,G,X){var oe,ye,Oe,ze;if(z==="")return"rootData";if(z[0]=="/"){if(!te.test(z))throw new Error("Invalid JSON-pointer: "+z);ye=z,Oe="rootData"}else{if(ze=z.match(Y),!ze)throw new Error("Invalid JSON-pointer: "+z);if(oe=+ze[1],ye=ze[2],ye=="#"){if(oe>=G)throw new Error("Cannot access property/index "+oe+" levels up, current level is "+G);return X[G-oe]}if(oe>G)throw new Error("Cannot access data "+oe+" levels up, current level is "+G);if(Oe="data"+(G-oe||""),!ye)return Oe}for(var he=Oe,re=ye.split("/"),we=0;we<re.length;we++){var xe=re[we];xe&&(Oe+=f(W(xe)),he+=" && "+Oe)}return he}function F(z,G){return z=='""'?G:(z+" + "+G).replace(/([^\\])' \+ '/g,"$1")}function ee(z){return W(decodeURIComponent(z))}function u(z){return encodeURIComponent(P(z))}function P(z){return z.replace(/~/g,"~0").replace(/\//g,"~1")}function W(z){return z.replace(/~1/g,"/").replace(/~0/g,"~")}return ma}var ga,Mu;function Qd(){if(Mu)return ga;Mu=1;var i=vs();ga=e;function e(r){i.copy(r,this)}return ga}var va={exports:{}},$u;function Ym(){if($u)return va.exports;$u=1;var i=va.exports=function(s,t,a){typeof t=="function"&&(a=t,t={}),a=t.cb||a;var l=typeof a=="function"?a:a.pre||function(){},c=a.post||function(){};e(t,l,c,s,"",s)};i.keywords={additionalItems:!0,items:!0,contains:!0,additionalProperties:!0,propertyNames:!0,not:!0},i.arrayKeywords={items:!0,allOf:!0,anyOf:!0,oneOf:!0},i.propsKeywords={definitions:!0,properties:!0,patternProperties:!0,dependencies:!0},i.skipKeywords={default:!0,enum:!0,const:!0,required:!0,maximum:!0,minimum:!0,exclusiveMaximum:!0,exclusiveMinimum:!0,multipleOf:!0,maxLength:!0,minLength:!0,pattern:!0,format:!0,maxItems:!0,minItems:!0,uniqueItems:!0,maxProperties:!0,minProperties:!0};function e(s,t,a,l,c,f,m,p,_,E){if(l&&typeof l=="object"&&!Array.isArray(l)){t(l,c,f,m,p,_,E);for(var y in l){var w=l[y];if(Array.isArray(w)){if(y in i.arrayKeywords)for(var R=0;R<w.length;R++)e(s,t,a,w[R],c+"/"+y+"/"+R,f,c,y,l,R)}else if(y in i.propsKeywords){if(w&&typeof w=="object")for(var C in w)e(s,t,a,w[C],c+"/"+y+"/"+r(C),f,c,y,l,C)}else(y in i.keywords||s.allKeys&&!(y in i.skipKeywords))&&e(s,t,a,w,c+"/"+y,f,c,y,l)}a(l,c,f,m,p,_,E)}}function r(s){return s.replace(/~/g,"~0").replace(/\//g,"~1")}return va.exports}var ba,qu;function hl(){if(qu)return ba;qu=1;var i=Xm(),e=cl(),r=vs(),s=Qd(),t=Ym();ba=a,a.normalizeId=A,a.fullPath=w,a.url=te,a.ids=Y,a.inlineRef=_,a.schema=l;function a(U,F,ee){var u=this._refs[ee];if(typeof u=="string")if(this._refs[u])u=this._refs[u];else return a.call(this,U,F,u);if(u=u||this._schemas[ee],u instanceof s)return _(u.schema,this._opts.inlineRefs)?u.schema:u.validate||this._compile(u);var P=l.call(this,F,ee),W,z,G;return P&&(W=P.schema,F=P.root,G=P.baseId),W instanceof s?z=W.validate||U.call(this,W.schema,F,void 0,G):W!==void 0&&(z=_(W,this._opts.inlineRefs)?W:U.call(this,W,F,void 0,G)),z}function l(U,F){var ee=i.parse(F),u=R(ee),P=w(this._getId(U.schema));if(Object.keys(U.schema).length===0||u!==P){var W=A(u),z=this._refs[W];if(typeof z=="string")return c.call(this,U,z,ee);if(z instanceof s)z.validate||this._compile(z),U=z;else if(z=this._schemas[W],z instanceof s){if(z.validate||this._compile(z),W==A(F))return{schema:z,root:U,baseId:P};U=z}else return;if(!U.schema)return;P=w(this._getId(U.schema))}return m.call(this,ee,P,U.schema,U)}function c(U,F,ee){var u=l.call(this,U,F);if(u){var P=u.schema,W=u.baseId;U=u.root;var z=this._getId(P);return z&&(W=te(W,z)),m.call(this,ee,W,P,U)}}var f=r.toHash(["properties","patternProperties","enum","dependencies","definitions"]);function m(U,F,ee,u){if(U.fragment=U.fragment||"",U.fragment.slice(0,1)=="/"){for(var P=U.fragment.split("/"),W=1;W<P.length;W++){var z=P[W];if(z){if(z=r.unescapeFragment(z),ee=ee[z],ee===void 0)break;var G;if(!f[z]&&(G=this._getId(ee),G&&(F=te(F,G)),ee.$ref)){var X=te(F,ee.$ref),oe=l.call(this,u,X);oe&&(ee=oe.schema,u=oe.root,F=oe.baseId)}}}if(ee!==void 0&&ee!==u.schema)return{schema:ee,root:u,baseId:F}}}var p=r.toHash(["type","format","pattern","maxLength","minLength","maxProperties","minProperties","maxItems","minItems","maximum","minimum","uniqueItems","multipleOf","required","enum"]);function _(U,F){if(F===!1)return!1;if(F===void 0||F===!0)return E(U);if(F)return y(U)<=F}function E(U){var F;if(Array.isArray(U)){for(var ee=0;ee<U.length;ee++)if(F=U[ee],typeof F=="object"&&!E(F))return!1}else for(var u in U)if(u=="$ref"||(F=U[u],typeof F=="object"&&!E(F)))return!1;return!0}function y(U){var F=0,ee;if(Array.isArray(U)){for(var u=0;u<U.length;u++)if(ee=U[u],typeof ee=="object"&&(F+=y(ee)),F==1/0)return 1/0}else for(var P in U){if(P=="$ref")return 1/0;if(p[P])F++;else if(ee=U[P],typeof ee=="object"&&(F+=y(ee)+1),F==1/0)return 1/0}return F}function w(U,F){F!==!1&&(U=A(U));var ee=i.parse(U);return R(ee)}function R(U){return i.serialize(U).split("#")[0]+"#"}var C=/#\/?$/;function A(U){return U?U.replace(C,""):""}function te(U,F){return F=A(F),i.resolve(U,F)}function Y(U){var F=A(this._getId(U)),ee={"":F},u={"":w(F,!1)},P={},W=this;return t(U,{allKeys:!0},function(z,G,X,oe,ye,Oe,ze){if(G!==""){var he=W._getId(z),re=ee[oe],we=u[oe]+"/"+ye;if(ze!==void 0&&(we+="/"+(typeof ze=="number"?ze:r.escapeFragment(ze))),typeof he=="string"){he=re=A(re?i.resolve(re,he):he);var xe=W._refs[he];if(typeof xe=="string"&&(xe=W._refs[xe]),xe&&xe.schema){if(!e(z,xe.schema))throw new Error('id "'+he+'" resolves to more than one schema')}else if(he!=A(we))if(he[0]=="#"){if(P[he]&&!e(z,P[he]))throw new Error('id "'+he+'" resolves to more than one schema');P[he]=z}else W._refs[he]=we}ee[G]=re,u[G]=we}}),P}return ba}var _a,Fu;function fl(){if(Fu)return _a;Fu=1;var i=hl();_a={Validation:s(e),MissingRef:s(r)};function e(t){this.message="validation failed",this.errors=t,this.ajv=this.validation=!0}r.message=function(t,a){return"can't resolve reference "+a+" from id "+t};function r(t,a,l){this.message=l||r.message(t,a),this.missingRef=i.url(t,a),this.missingSchema=i.normalizeId(i.fullPath(this.missingRef))}function s(t){return t.prototype=Object.create(Error.prototype),t.prototype.constructor=t,t}return _a}var ya,Vu;function Zd(){return Vu||(Vu=1,ya=function(i,e){e||(e={}),typeof e=="function"&&(e={cmp:e});var r=typeof e.cycles=="boolean"?e.cycles:!1,s=e.cmp&&(function(a){return function(l){return function(c,f){var m={key:c,value:l[c]},p={key:f,value:l[f]};return a(m,p)}}})(e.cmp),t=[];return(function a(l){if(l&&l.toJSON&&typeof l.toJSON=="function"&&(l=l.toJSON()),l!==void 0){if(typeof l=="number")return isFinite(l)?""+l:"null";if(typeof l!="object")return JSON.stringify(l);var c,f;if(Array.isArray(l)){for(f="[",c=0;c<l.length;c++)c&&(f+=","),f+=a(l[c])||"null";return f+"]"}if(l===null)return"null";if(t.indexOf(l)!==-1){if(r)return JSON.stringify("__cycle__");throw new TypeError("Converting circular structure to JSON")}var m=t.push(l)-1,p=Object.keys(l).sort(s&&s(l));for(f="",c=0;c<p.length;c++){var _=p[c],E=a(l[_]);E&&(f&&(f+=","),f+=JSON.stringify(_)+":"+E)}return t.splice(m,1),"{"+f+"}"}})(i)}),ya}var wa,Uu;function eh(){return Uu||(Uu=1,wa=function(e,r,s){var t="",a=e.schema.$async===!0,l=e.util.schemaHasRulesExcept(e.schema,e.RULES.all,"$ref"),c=e.self._getId(e.schema);if(e.opts.strictKeywords){var f=e.util.schemaUnknownRules(e.schema,e.RULES.keywords);if(f){var m="unknown keyword: "+f;if(e.opts.strictKeywords==="log")e.logger.warn(m);else throw new Error(m)}}if(e.isTop&&(t+=" var validate = ",a&&(e.async=!0,t+="async "),t+="function(data, dataPath, parentData, parentDataProperty, rootData) { 'use strict'; ",c&&(e.opts.sourceCode||e.opts.processCode)&&(t+=" "+("/*# sourceURL="+c+" */")+" ")),typeof e.schema=="boolean"||!(l||e.schema.$ref)){var r="false schema",p=e.level,_=e.dataLevel,E=e.schema[r],y=e.schemaPath+e.util.getProperty(r),w=e.errSchemaPath+"/"+r,F=!e.opts.allErrors,P,R="data"+(_||""),U="valid"+p;if(e.schema===!1){e.isTop?F=!0:t+=" var "+U+" = false; ";var C=C||[];C.push(t),t="",e.createErrors!==!1?(t+=" { keyword: '"+(P||"false schema")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(w)+" , params: {} ",e.opts.messages!==!1&&(t+=" , message: 'boolean schema is false' "),e.opts.verbose&&(t+=" , schema: false , parentSchema: validate.schema"+e.schemaPath+" , data: "+R+" "),t+=" } "):t+=" {} ";var A=t;t=C.pop(),!e.compositeRule&&F?e.async?t+=" throw new ValidationError(["+A+"]); ":t+=" validate.errors = ["+A+"]; return false; ":t+=" var err = "+A+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}else e.isTop?a?t+=" return data; ":t+=" validate.errors = null; return true; ":t+=" var "+U+" = true; ";return e.isTop&&(t+=" }; return validate; "),t}if(e.isTop){var te=e.isTop,p=e.level=0,_=e.dataLevel=0,R="data";if(e.rootId=e.resolve.fullPath(e.self._getId(e.root.schema)),e.baseId=e.baseId||e.rootId,delete e.isTop,e.dataPathArr=[""],e.schema.default!==void 0&&e.opts.useDefaults&&e.opts.strictDefaults){var Y="default is ignored in the schema root";if(e.opts.strictDefaults==="log")e.logger.warn(Y);else throw new Error(Y)}t+=" var vErrors = null; ",t+=" var errors = 0; ",t+=" if (rootData === undefined) rootData = data; "}else{var p=e.level,_=e.dataLevel,R="data"+(_||"");if(c&&(e.baseId=e.resolve.url(e.baseId,c)),a&&!e.async)throw new Error("async schema in sync schema");t+=" var errs_"+p+" = errors;"}var U="valid"+p,F=!e.opts.allErrors,ee="",u="",P,W=e.schema.type,z=Array.isArray(W);if(W&&e.opts.nullable&&e.schema.nullable===!0&&(z?W.indexOf("null")==-1&&(W=W.concat("null")):W!="null"&&(W=[W,"null"],z=!0)),z&&W.length==1&&(W=W[0],z=!1),e.schema.$ref&&l){if(e.opts.extendRefs=="fail")throw new Error('$ref: validation keywords used in schema at path "'+e.errSchemaPath+'" (see option extendRefs)');e.opts.extendRefs!==!0&&(l=!1,e.logger.warn('$ref: keywords ignored in schema at path "'+e.errSchemaPath+'"'))}if(e.schema.$comment&&e.opts.$comment&&(t+=" "+e.RULES.all.$comment.code(e,"$comment")),W){if(e.opts.coerceTypes)var G=e.util.coerceToTypes(e.opts.coerceTypes,W);var X=e.RULES.types[W];if(G||z||X===!0||X&&!fe(X)){var y=e.schemaPath+".type",w=e.errSchemaPath+"/type",y=e.schemaPath+".type",w=e.errSchemaPath+"/type",oe=z?"checkDataTypes":"checkDataType";if(t+=" if ("+e.util[oe](W,R,e.opts.strictNumbers,!0)+") { ",G){var ye="dataType"+p,Oe="coerced"+p;t+=" var "+ye+" = typeof "+R+"; var "+Oe+" = undefined; ",e.opts.coerceTypes=="array"&&(t+=" if ("+ye+" == 'object' && Array.isArray("+R+") && "+R+".length == 1) { "+R+" = "+R+"[0]; "+ye+" = typeof "+R+"; if ("+e.util.checkDataType(e.schema.type,R,e.opts.strictNumbers)+") "+Oe+" = "+R+"; } "),t+=" if ("+Oe+" !== undefined) ; ";var ze=G;if(ze)for(var he,re=-1,we=ze.length-1;re<we;)he=ze[re+=1],he=="string"?t+=" else if ("+ye+" == 'number' || "+ye+" == 'boolean') "+Oe+" = '' + "+R+"; else if ("+R+" === null) "+Oe+" = ''; ":he=="number"||he=="integer"?(t+=" else if ("+ye+" == 'boolean' || "+R+" === null || ("+ye+" == 'string' && "+R+" && "+R+" == +"+R+" ",he=="integer"&&(t+=" && !("+R+" % 1)"),t+=")) "+Oe+" = +"+R+"; "):he=="boolean"?t+=" else if ("+R+" === 'false' || "+R+" === 0 || "+R+" === null) "+Oe+" = false; else if ("+R+" === 'true' || "+R+" === 1) "+Oe+" = true; ":he=="null"?t+=" else if ("+R+" === '' || "+R+" === 0 || "+R+" === false) "+Oe+" = null; ":e.opts.coerceTypes=="array"&&he=="array"&&(t+=" else if ("+ye+" == 'string' || "+ye+" == 'number' || "+ye+" == 'boolean' || "+R+" == null) "+Oe+" = ["+R+"]; ");t+=" else { ";var C=C||[];C.push(t),t="",e.createErrors!==!1?(t+=" { keyword: '"+(P||"type")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(w)+" , params: { type: '",z?t+=""+W.join(","):t+=""+W,t+="' } ",e.opts.messages!==!1&&(t+=" , message: 'should be ",z?t+=""+W.join(","):t+=""+W,t+="' "),e.opts.verbose&&(t+=" , schema: validate.schema"+y+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+R+" "),t+=" } "):t+=" {} ";var A=t;t=C.pop(),!e.compositeRule&&F?e.async?t+=" throw new ValidationError(["+A+"]); ":t+=" validate.errors = ["+A+"]; return false; ":t+=" var err = "+A+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",t+=" } if ("+Oe+" !== undefined) { ";var xe=_?"data"+(_-1||""):"parentData",Fe=_?e.dataPathArr[_]:"parentDataProperty";t+=" "+R+" = "+Oe+"; ",_||(t+="if ("+xe+" !== undefined)"),t+=" "+xe+"["+Fe+"] = "+Oe+"; } "}else{var C=C||[];C.push(t),t="",e.createErrors!==!1?(t+=" { keyword: '"+(P||"type")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(w)+" , params: { type: '",z?t+=""+W.join(","):t+=""+W,t+="' } ",e.opts.messages!==!1&&(t+=" , message: 'should be ",z?t+=""+W.join(","):t+=""+W,t+="' "),e.opts.verbose&&(t+=" , schema: validate.schema"+y+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+R+" "),t+=" } "):t+=" {} ";var A=t;t=C.pop(),!e.compositeRule&&F?e.async?t+=" throw new ValidationError(["+A+"]); ":t+=" validate.errors = ["+A+"]; return false; ":t+=" var err = "+A+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}t+=" } "}}if(e.schema.$ref&&!l)t+=" "+e.RULES.all.$ref.code(e,"$ref")+" ",F&&(t+=" } if (errors === ",te?t+="0":t+="errs_"+p,t+=") { ",u+="}");else{var Pe=e.RULES;if(Pe){for(var X,Ne=-1,Ue=Pe.length-1;Ne<Ue;)if(X=Pe[Ne+=1],fe(X)){if(X.type&&(t+=" if ("+e.util.checkDataType(X.type,R,e.opts.strictNumbers)+") { "),e.opts.useDefaults){if(X.type=="object"&&e.schema.properties){var E=e.schema.properties,qe=Object.keys(E),$=qe;if($)for(var ce,Ee=-1,Ve=$.length-1;Ee<Ve;){ce=$[Ee+=1];var me=E[ce];if(me.default!==void 0){var Re=R+e.util.getProperty(ce);if(e.compositeRule){if(e.opts.strictDefaults){var Y="default is ignored for: "+Re;if(e.opts.strictDefaults==="log")e.logger.warn(Y);else throw new Error(Y)}}else t+=" if ("+Re+" === undefined ",e.opts.useDefaults=="empty"&&(t+=" || "+Re+" === null || "+Re+" === '' "),t+=" ) "+Re+" = ",e.opts.useDefaults=="shared"?t+=" "+e.useDefault(me.default)+" ":t+=" "+JSON.stringify(me.default)+" ",t+="; "}}}else if(X.type=="array"&&Array.isArray(e.schema.items)){var He=e.schema.items;if(He){for(var me,re=-1,rt=He.length-1;re<rt;)if(me=He[re+=1],me.default!==void 0){var Re=R+"["+re+"]";if(e.compositeRule){if(e.opts.strictDefaults){var Y="default is ignored for: "+Re;if(e.opts.strictDefaults==="log")e.logger.warn(Y);else throw new Error(Y)}}else t+=" if ("+Re+" === undefined ",e.opts.useDefaults=="empty"&&(t+=" || "+Re+" === null || "+Re+" === '' "),t+=" ) "+Re+" = ",e.opts.useDefaults=="shared"?t+=" "+e.useDefault(me.default)+" ":t+=" "+JSON.stringify(me.default)+" ",t+="; "}}}}var g=X.rules;if(g){for(var T,O=-1,V=g.length-1;O<V;)if(T=g[O+=1],ke(T)){var se=T.code(e,T.keyword,X.type);se&&(t+=" "+se+" ",F&&(ee+="}"))}}if(F&&(t+=" "+ee+" ",ee=""),X.type&&(t+=" } ",W&&W===X.type&&!G)){t+=" else { ";var y=e.schemaPath+".type",w=e.errSchemaPath+"/type",C=C||[];C.push(t),t="",e.createErrors!==!1?(t+=" { keyword: '"+(P||"type")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(w)+" , params: { type: '",z?t+=""+W.join(","):t+=""+W,t+="' } ",e.opts.messages!==!1&&(t+=" , message: 'should be ",z?t+=""+W.join(","):t+=""+W,t+="' "),e.opts.verbose&&(t+=" , schema: validate.schema"+y+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+R+" "),t+=" } "):t+=" {} ";var A=t;t=C.pop(),!e.compositeRule&&F?e.async?t+=" throw new ValidationError(["+A+"]); ":t+=" validate.errors = ["+A+"]; return false; ":t+=" var err = "+A+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",t+=" } "}F&&(t+=" if (errors === ",te?t+="0":t+="errs_"+p,t+=") { ",u+="}")}}}F&&(t+=" "+u+" "),te?(a?(t+=" if (errors === 0) return data; ",t+=" else throw new ValidationError(vErrors); "):(t+=" validate.errors = vErrors; ",t+=" return errors === 0; "),t+=" }; return validate;"):t+=" var "+U+" = errors === errs_"+p+";";function fe(Ye){for(var at=Ye.rules,pt=0;pt<at.length;pt++)if(ke(at[pt]))return!0}function ke(Ye){return e.schema[Ye.keyword]!==void 0||Ye.implements&&et(Ye)}function et(Ye){for(var at=Ye.implements,pt=0;pt<at.length;pt++)if(e.schema[at[pt]]!==void 0)return!0}return t}),wa}var xa,Bu;function Qm(){if(Bu)return xa;Bu=1;var i=hl(),e=vs(),r=fl(),s=Zd(),t=eh(),a=e.ucs2length,l=cl(),c=r.Validation;xa=f;function f(C,A,te,Y){var U=this,F=this._opts,ee=[void 0],u={},P=[],W={},z=[],G={},X=[];function oe(me,Re){var He=F.regExp?"regExp":"new RegExp";return"var pattern"+me+" = "+He+"("+e.toQuotedString(Re[me])+");"}A=A||{schema:C,refVal:ee,refs:u};var ye=m.call(this,C,A,Y),Oe=this._compilations[ye.index];if(ye.compiling)return Oe.callValidate=xe;var ze=this._formats,he=this.RULES;try{var re=Fe(C,A,te,Y);Oe.validate=re;var we=Oe.callValidate;return we&&(we.schema=re.schema,we.errors=null,we.refs=re.refs,we.refVal=re.refVal,we.root=re.root,we.$async=re.$async,F.sourceCode&&(we.source=re.source)),re}finally{p.call(this,C,A,Y)}function xe(){var me=Oe.validate,Re=me.apply(this,arguments);return xe.errors=me.errors,Re}function Fe(me,Re,He,rt){var g=!Re||Re&&Re.schema==me;if(Re.schema!=A.schema)return f.call(U,me,Re,He,rt);var T=me.$async===!0,O=t({isTop:!0,schema:me,isRoot:g,baseId:rt,root:Re,schemaPath:"",errSchemaPath:"#",errorPath:'""',MissingRefError:r.MissingRef,RULES:he,validate:t,util:e,resolve:i,resolveRef:Pe,usePattern:ce,useDefault:Ee,useCustomRule:Ve,opts:F,formats:ze,logger:U.logger,self:U});O=R(ee,y)+R(P,oe)+R(z,E)+R(X,w)+O,F.processCode&&(O=F.processCode(O,me));var V;try{var se=new Function("self","RULES","formats","root","refVal","defaults","customRules","equal","ucs2length","ValidationError","regExp",O);V=se(U,he,ze,A,ee,z,X,l,a,c,F.regExp),ee[0]=V}catch(fe){throw U.logger.error("Error compiling schema, function code:",O),fe}return V.schema=me,V.errors=null,V.refs=u,V.refVal=ee,V.root=g?V:Re,T&&(V.$async=!0),F.sourceCode===!0&&(V.source={code:O,patterns:P,defaults:z}),V}function Pe(me,Re,He){Re=i.url(me,Re);var rt=u[Re],g,T;if(rt!==void 0)return g=ee[rt],T="refVal["+rt+"]",$(g,T);if(!He&&A.refs){var O=A.refs[Re];if(O!==void 0)return g=A.refVal[O],T=Ne(Re,g),$(g,T)}T=Ne(Re);var V=i.call(U,Fe,A,Re);if(V===void 0){var se=te&&te[Re];se&&(V=i.inlineRef(se,F.inlineRefs)?se:f.call(U,se,A,te,me))}if(V===void 0)Ue(Re);else return qe(Re,V),$(V,T)}function Ne(me,Re){var He=ee.length;return ee[He]=Re,u[me]=He,"refVal"+He}function Ue(me){delete u[me]}function qe(me,Re){var He=u[me];ee[He]=Re}function $(me,Re){return typeof me=="object"||typeof me=="boolean"?{code:Re,schema:me,inline:!0}:{code:Re,$async:me&&!!me.$async}}function ce(me){var Re=W[me];return Re===void 0&&(Re=W[me]=P.length,P[Re]=me),"pattern"+Re}function Ee(me){switch(typeof me){case"boolean":case"number":return""+me;case"string":return e.toQuotedString(me);case"object":if(me===null)return"null";var Re=s(me),He=G[Re];return He===void 0&&(He=G[Re]=z.length,z[He]=me),"default"+He}}function Ve(me,Re,He,rt){if(U._opts.validateSchema!==!1){var g=me.definition.dependencies;if(g&&!g.every(function(at){return Object.prototype.hasOwnProperty.call(He,at)}))throw new Error("parent schema must have all required keywords: "+g.join(","));var T=me.definition.validateSchema;if(T){var O=T(Re);if(!O){var V="keyword schema is invalid: "+U.errorsText(T.errors);if(U._opts.validateSchema=="log")U.logger.error(V);else throw new Error(V)}}}var se=me.definition.compile,fe=me.definition.inline,ke=me.definition.macro,et;if(se)et=se.call(U,Re,He,rt);else if(ke)et=ke.call(U,Re,He,rt),F.validateSchema!==!1&&U.validateSchema(et,!0);else if(fe)et=fe.call(U,rt,me.keyword,Re,He);else if(et=me.definition.validate,!et)return;if(et===void 0)throw new Error('custom keyword "'+me.keyword+'"failed to compile');var Ye=X.length;return X[Ye]=et,{code:"customRule"+Ye,validate:et}}}function m(C,A,te){var Y=_.call(this,C,A,te);return Y>=0?{index:Y,compiling:!0}:(Y=this._compilations.length,this._compilations[Y]={schema:C,root:A,baseId:te},{index:Y,compiling:!1})}function p(C,A,te){var Y=_.call(this,C,A,te);Y>=0&&this._compilations.splice(Y,1)}function _(C,A,te){for(var Y=0;Y<this._compilations.length;Y++){var U=this._compilations[Y];if(U.schema==C&&U.root==A&&U.baseId==te)return Y}return-1}function E(C){return"var default"+C+" = defaults["+C+"];"}function y(C,A){return A[C]===void 0?"":"var refVal"+C+" = refVal["+C+"];"}function w(C){return"var customRule"+C+" = customRules["+C+"];"}function R(C,A){if(!C.length)return"";for(var te="",Y=0;Y<C.length;Y++)te+=A(Y,C);return te}return xa}var Ea={exports:{}},zu;function Zm(){if(zu)return Ea.exports;zu=1;var i=Ea.exports=function(){this._cache={}};return i.prototype.put=function(r,s){this._cache[r]=s},i.prototype.get=function(r){return this._cache[r]},i.prototype.del=function(r){delete this._cache[r]},i.prototype.clear=function(){this._cache={}},Ea.exports}var Sa,Hu;function eg(){if(Hu)return Sa;Hu=1;var i=vs(),e=/^(\d\d\d\d)-(\d\d)-(\d\d)$/,r=[0,31,28,31,30,31,30,31,31,30,31,30,31],s=/^(\d\d):(\d\d):(\d\d)(\.\d+)?(z|[+-]\d\d(?::?\d\d)?)?$/i,t=/^(?=.{1,253}\.?$)[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[-0-9a-z]{0,61}[0-9a-z])?)*\.?$/i,a=/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)(?:\?(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i,l=/^(?:[a-z][a-z0-9+\-.]*:)?(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'"()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?(?:\?(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i,c=/^(?:(?:[^\x00-\x20"'<>%\\^`{|}]|%[0-9a-f]{2})|\{[+#./;?&=,!@|]?(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?(?:,(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?)*\})*$/i,f=/^(?:(?:http[s\u017F]?|ftp):\/\/)(?:(?:[\0-\x08\x0E-\x1F!-\x9F\xA1-\u167F\u1681-\u1FFF\u200B-\u2027\u202A-\u202E\u2030-\u205E\u2060-\u2FFF\u3001-\uD7FF\uE000-\uFEFE\uFF00-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+(?::(?:[\0-\x08\x0E-\x1F!-\x9F\xA1-\u167F\u1681-\u1FFF\u200B-\u2027\u202A-\u202E\u2030-\u205E\u2060-\u2FFF\u3001-\uD7FF\uE000-\uFEFE\uFF00-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])*)?@)?(?:(?!10(?:\.[0-9]{1,3}){3})(?!127(?:\.[0-9]{1,3}){3})(?!169\.254(?:\.[0-9]{1,3}){2})(?!192\.168(?:\.[0-9]{1,3}){2})(?!172\.(?:1[6-9]|2[0-9]|3[01])(?:\.[0-9]{1,3}){2})(?:[1-9][0-9]?|1[0-9][0-9]|2[01][0-9]|22[0-3])(?:\.(?:1?[0-9]{1,2}|2[0-4][0-9]|25[0-5])){2}(?:\.(?:[1-9][0-9]?|1[0-9][0-9]|2[0-4][0-9]|25[0-4]))|(?:(?:(?:[0-9a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+-)*(?:[0-9a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+)(?:\.(?:(?:[0-9a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+-)*(?:[0-9a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+)*(?:\.(?:(?:[a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]){2,})))(?::[0-9]{2,5})?(?:\/(?:[\0-\x08\x0E-\x1F!-\x9F\xA1-\u167F\u1681-\u1FFF\u200B-\u2027\u202A-\u202E\u2030-\u205E\u2060-\u2FFF\u3001-\uD7FF\uE000-\uFEFE\uFF00-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])*)?$/i,m=/^(?:urn:uuid:)?[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$/i,p=/^(?:\/(?:[^~/]|~0|~1)*)*$/,_=/^#(?:\/(?:[a-z0-9_\-.!$&'()*+,;:=@]|%[0-9a-f]{2}|~0|~1)*)*$/i,E=/^(?:0|[1-9][0-9]*)(?:#|(?:\/(?:[^~/]|~0|~1)*)*)$/;Sa=y;function y(u){return u=u=="full"?"full":"fast",i.copy(y[u],Object.create(null))}y.fast={date:/^\d\d\d\d-[0-1]\d-[0-3]\d$/,time:/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i,"date-time":/^\d\d\d\d-[0-1]\d-[0-3]\d[t\s](?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i,uri:/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/)?[^\s]*$/i,"uri-reference":/^(?:(?:[a-z][a-z0-9+\-.]*:)?\/?\/)?(?:[^\\\s#][^\s#]*)?(?:#[^\\\s]*)?$/i,"uri-template":c,url:f,email:/^[a-z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?)*$/i,hostname:t,ipv4:/^(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)$/,ipv6:/^\s*(?:(?:(?:[0-9a-f]{1,4}:){7}(?:[0-9a-f]{1,4}|:))|(?:(?:[0-9a-f]{1,4}:){6}(?::[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(?:(?:[0-9a-f]{1,4}:){5}(?:(?:(?::[0-9a-f]{1,4}){1,2})|:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(?:(?:[0-9a-f]{1,4}:){4}(?:(?:(?::[0-9a-f]{1,4}){1,3})|(?:(?::[0-9a-f]{1,4})?:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){3}(?:(?:(?::[0-9a-f]{1,4}){1,4})|(?:(?::[0-9a-f]{1,4}){0,2}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){2}(?:(?:(?::[0-9a-f]{1,4}){1,5})|(?:(?::[0-9a-f]{1,4}){0,3}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){1}(?:(?:(?::[0-9a-f]{1,4}){1,6})|(?:(?::[0-9a-f]{1,4}){0,4}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?::(?:(?:(?::[0-9a-f]{1,4}){1,7})|(?:(?::[0-9a-f]{1,4}){0,5}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))(?:%.+)?\s*$/i,regex:ee,uuid:m,"json-pointer":p,"json-pointer-uri-fragment":_,"relative-json-pointer":E},y.full={date:R,time:C,"date-time":te,uri:U,"uri-reference":l,"uri-template":c,url:f,email:/^[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$/i,hostname:t,ipv4:/^(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)$/,ipv6:/^\s*(?:(?:(?:[0-9a-f]{1,4}:){7}(?:[0-9a-f]{1,4}|:))|(?:(?:[0-9a-f]{1,4}:){6}(?::[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(?:(?:[0-9a-f]{1,4}:){5}(?:(?:(?::[0-9a-f]{1,4}){1,2})|:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(?:(?:[0-9a-f]{1,4}:){4}(?:(?:(?::[0-9a-f]{1,4}){1,3})|(?:(?::[0-9a-f]{1,4})?:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){3}(?:(?:(?::[0-9a-f]{1,4}){1,4})|(?:(?::[0-9a-f]{1,4}){0,2}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){2}(?:(?:(?::[0-9a-f]{1,4}){1,5})|(?:(?::[0-9a-f]{1,4}){0,3}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){1}(?:(?:(?::[0-9a-f]{1,4}){1,6})|(?:(?::[0-9a-f]{1,4}){0,4}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?::(?:(?:(?::[0-9a-f]{1,4}){1,7})|(?:(?::[0-9a-f]{1,4}){0,5}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))(?:%.+)?\s*$/i,regex:ee,uuid:m,"json-pointer":p,"json-pointer-uri-fragment":_,"relative-json-pointer":E};function w(u){return u%4===0&&(u%100!==0||u%400===0)}function R(u){var P=u.match(e);if(!P)return!1;var W=+P[1],z=+P[2],G=+P[3];return z>=1&&z<=12&&G>=1&&G<=(z==2&&w(W)?29:r[z])}function C(u,P){var W=u.match(s);if(!W)return!1;var z=W[1],G=W[2],X=W[3],oe=W[5];return(z<=23&&G<=59&&X<=59||z==23&&G==59&&X==60)&&(!P||oe)}var A=/t|\s/i;function te(u){var P=u.split(A);return P.length==2&&R(P[0])&&C(P[1],!0)}var Y=/\/|:/;function U(u){return Y.test(u)&&a.test(u)}var F=/[^\\]\\Z/;function ee(u){if(F.test(u))return!1;try{return new RegExp(u),!0}catch{return!1}}return Sa}var Ra,Wu;function tg(){return Wu||(Wu=1,Ra=function(e,r,s){var t=" ",a=e.level,l=e.dataLevel,c=e.schema[r],f=e.errSchemaPath+"/"+r,m=!e.opts.allErrors,p="data"+(l||""),_="valid"+a,E,y;if(c=="#"||c=="#/")e.isRoot?(E=e.async,y="validate"):(E=e.root.schema.$async===!0,y="root.refVal[0]");else{var w=e.resolveRef(e.baseId,c,e.isRoot);if(w===void 0){var R=e.MissingRefError.message(e.baseId,c);if(e.opts.missingRefs=="fail"){e.logger.error(R);var C=C||[];C.push(t),t="",e.createErrors!==!1?(t+=" { keyword: '$ref' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(f)+" , params: { ref: '"+e.util.escapeQuotes(c)+"' } ",e.opts.messages!==!1&&(t+=" , message: 'can\\'t resolve reference "+e.util.escapeQuotes(c)+"' "),e.opts.verbose&&(t+=" , schema: "+e.util.toQuotedString(c)+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+p+" "),t+=" } "):t+=" {} ";var A=t;t=C.pop(),!e.compositeRule&&m?e.async?t+=" throw new ValidationError(["+A+"]); ":t+=" validate.errors = ["+A+"]; return false; ":t+=" var err = "+A+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",m&&(t+=" if (false) { ")}else if(e.opts.missingRefs=="ignore")e.logger.warn(R),m&&(t+=" if (true) { ");else throw new e.MissingRefError(e.baseId,c,R)}else if(w.inline){var te=e.util.copy(e);te.level++;var Y="valid"+te.level;te.schema=w.schema,te.schemaPath="",te.errSchemaPath=c;var U=e.validate(te).replace(/validate\.schema/g,w.code);t+=" "+U+" ",m&&(t+=" if ("+Y+") { ")}else E=w.$async===!0||e.async&&w.$async!==!1,y=w.code}if(y){var C=C||[];C.push(t),t="",e.opts.passContext?t+=" "+y+".call(this, ":t+=" "+y+"( ",t+=" "+p+", (dataPath || '')",e.errorPath!='""'&&(t+=" + "+e.errorPath);var F=l?"data"+(l-1||""):"parentData",ee=l?e.dataPathArr[l]:"parentDataProperty";t+=" , "+F+" , "+ee+", rootData) ";var u=t;if(t=C.pop(),E){if(!e.async)throw new Error("async schema referenced by sync schema");m&&(t+=" var "+_+"; "),t+=" try { await "+u+"; ",m&&(t+=" "+_+" = true; "),t+=" } catch (e) { if (!(e instanceof ValidationError)) throw e; if (vErrors === null) vErrors = e.errors; else vErrors = vErrors.concat(e.errors); errors = vErrors.length; ",m&&(t+=" "+_+" = false; "),t+=" } ",m&&(t+=" if ("+_+") { ")}else t+=" if (!"+u+") { if (vErrors === null) vErrors = "+y+".errors; else vErrors = vErrors.concat("+y+".errors); errors = vErrors.length; } ",m&&(t+=" else { ")}return t}),Ra}var Ta,Ju;function rg(){return Ju||(Ju=1,Ta=function(e,r,s){var t=" ",a=e.schema[r],l=e.schemaPath+e.util.getProperty(r),c=e.errSchemaPath+"/"+r,f=!e.opts.allErrors,m=e.util.copy(e),p="";m.level++;var _="valid"+m.level,E=m.baseId,y=!0,w=a;if(w)for(var R,C=-1,A=w.length-1;C<A;)R=w[C+=1],(e.opts.strictKeywords?typeof R=="object"&&Object.keys(R).length>0||R===!1:e.util.schemaHasRules(R,e.RULES.all))&&(y=!1,m.schema=R,m.schemaPath=l+"["+C+"]",m.errSchemaPath=c+"/"+C,t+=" "+e.validate(m)+" ",m.baseId=E,f&&(t+=" if ("+_+") { ",p+="}"));return f&&(y?t+=" if (true) { ":t+=" "+p.slice(0,-1)+" "),t}),Ta}var Ca,Gu;function ig(){return Gu||(Gu=1,Ca=function(e,r,s){var t=" ",a=e.level,l=e.dataLevel,c=e.schema[r],f=e.schemaPath+e.util.getProperty(r),m=e.errSchemaPath+"/"+r,p=!e.opts.allErrors,_="data"+(l||""),E="valid"+a,y="errs__"+a,w=e.util.copy(e),R="";w.level++;var C="valid"+w.level,A=c.every(function(P){return e.opts.strictKeywords?typeof P=="object"&&Object.keys(P).length>0||P===!1:e.util.schemaHasRules(P,e.RULES.all)});if(A){var te=w.baseId;t+=" var "+y+" = errors; var "+E+" = false; ";var Y=e.compositeRule;e.compositeRule=w.compositeRule=!0;var U=c;if(U)for(var F,ee=-1,u=U.length-1;ee<u;)F=U[ee+=1],w.schema=F,w.schemaPath=f+"["+ee+"]",w.errSchemaPath=m+"/"+ee,t+=" "+e.validate(w)+" ",w.baseId=te,t+=" "+E+" = "+E+" || "+C+"; if (!"+E+") { ",R+="}";e.compositeRule=w.compositeRule=Y,t+=" "+R+" if (!"+E+") { var err = ",e.createErrors!==!1?(t+=" { keyword: 'anyOf' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(m)+" , params: {} ",e.opts.messages!==!1&&(t+=" , message: 'should match some schema in anyOf' "),e.opts.verbose&&(t+=" , schema: validate.schema"+f+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+_+" "),t+=" } "):t+=" {} ",t+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",!e.compositeRule&&p&&(e.async?t+=" throw new ValidationError(vErrors); ":t+=" validate.errors = vErrors; return false; "),t+=" } else { errors = "+y+"; if (vErrors !== null) { if ("+y+") vErrors.length = "+y+"; else vErrors = null; } ",e.opts.allErrors&&(t+=" } ")}else p&&(t+=" if (true) { ");return t}),Ca}var Pa,Xu;function sg(){return Xu||(Xu=1,Pa=function(e,r,s){var t=" ",a=e.schema[r],l=e.errSchemaPath+"/"+r;e.opts.allErrors;var c=e.util.toQuotedString(a);return e.opts.$comment===!0?t+=" console.log("+c+");":typeof e.opts.$comment=="function"&&(t+=" self._opts.$comment("+c+", "+e.util.toQuotedString(l)+", validate.root.schema);"),t}),Pa}var Aa,Ku;function ng(){return Ku||(Ku=1,Aa=function(e,r,s){var t=" ",a=e.level,l=e.dataLevel,c=e.schema[r],f=e.schemaPath+e.util.getProperty(r),m=e.errSchemaPath+"/"+r,p=!e.opts.allErrors,_="data"+(l||""),E="valid"+a,y=e.opts.$data&&c&&c.$data;y&&(t+=" var schema"+a+" = "+e.util.getData(c.$data,l,e.dataPathArr)+"; "),y||(t+=" var schema"+a+" = validate.schema"+f+";"),t+="var "+E+" = equal("+_+", schema"+a+"); if (!"+E+") { ";var w=w||[];w.push(t),t="",e.createErrors!==!1?(t+=" { keyword: 'const' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(m)+" , params: { allowedValue: schema"+a+" } ",e.opts.messages!==!1&&(t+=" , message: 'should be equal to constant' "),e.opts.verbose&&(t+=" , schema: validate.schema"+f+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+_+" "),t+=" } "):t+=" {} ";var R=t;return t=w.pop(),!e.compositeRule&&p?e.async?t+=" throw new ValidationError(["+R+"]); ":t+=" validate.errors = ["+R+"]; return false; ":t+=" var err = "+R+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",t+=" }",p&&(t+=" else { "),t}),Aa}var Ia,Yu;function ag(){return Yu||(Yu=1,Ia=function(e,r,s){var t=" ",a=e.level,l=e.dataLevel,c=e.schema[r],f=e.schemaPath+e.util.getProperty(r),m=e.errSchemaPath+"/"+r,p=!e.opts.allErrors,_="data"+(l||""),E="valid"+a,y="errs__"+a,w=e.util.copy(e),R="";w.level++;var C="valid"+w.level,A="i"+a,te=w.dataLevel=e.dataLevel+1,Y="data"+te,U=e.baseId,F=e.opts.strictKeywords?typeof c=="object"&&Object.keys(c).length>0||c===!1:e.util.schemaHasRules(c,e.RULES.all);if(t+="var "+y+" = errors;var "+E+";",F){var ee=e.compositeRule;e.compositeRule=w.compositeRule=!0,w.schema=c,w.schemaPath=f,w.errSchemaPath=m,t+=" var "+C+" = false; for (var "+A+" = 0; "+A+" < "+_+".length; "+A+"++) { ",w.errorPath=e.util.getPathExpr(e.errorPath,A,e.opts.jsonPointers,!0);var u=_+"["+A+"]";w.dataPathArr[te]=A;var P=e.validate(w);w.baseId=U,e.util.varOccurences(P,Y)<2?t+=" "+e.util.varReplace(P,Y,u)+" ":t+=" var "+Y+" = "+u+"; "+P+" ",t+=" if ("+C+") break; } ",e.compositeRule=w.compositeRule=ee,t+=" "+R+" if (!"+C+") {"}else t+=" if ("+_+".length == 0) {";var W=W||[];W.push(t),t="",e.createErrors!==!1?(t+=" { keyword: 'contains' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(m)+" , params: {} ",e.opts.messages!==!1&&(t+=" , message: 'should contain a valid item' "),e.opts.verbose&&(t+=" , schema: validate.schema"+f+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+_+" "),t+=" } "):t+=" {} ";var z=t;return t=W.pop(),!e.compositeRule&&p?e.async?t+=" throw new ValidationError(["+z+"]); ":t+=" validate.errors = ["+z+"]; return false; ":t+=" var err = "+z+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",t+=" } else { ",F&&(t+=" errors = "+y+"; if (vErrors !== null) { if ("+y+") vErrors.length = "+y+"; else vErrors = null; } "),e.opts.allErrors&&(t+=" } "),t}),Ia}var Oa,Qu;function og(){return Qu||(Qu=1,Oa=function(e,r,s){var t=" ",a=e.level,l=e.dataLevel,c=e.schema[r],f=e.schemaPath+e.util.getProperty(r),m=e.errSchemaPath+"/"+r,p=!e.opts.allErrors,_="data"+(l||""),E="errs__"+a,y=e.util.copy(e),w="";y.level++;var R="valid"+y.level,C={},A={},te=e.opts.ownProperties;for(ee in c)if(ee!="__proto__"){var Y=c[ee],U=Array.isArray(Y)?A:C;U[ee]=Y}t+="var "+E+" = errors;";var F=e.errorPath;t+="var missing"+a+";";for(var ee in A)if(U=A[ee],U.length){if(t+=" if ( "+_+e.util.getProperty(ee)+" !== undefined ",te&&(t+=" && Object.prototype.hasOwnProperty.call("+_+", '"+e.util.escapeQuotes(ee)+"') "),p){t+=" && ( ";var u=U;if(u)for(var P,W=-1,z=u.length-1;W<z;){P=u[W+=1],W&&(t+=" || ");var G=e.util.getProperty(P),X=_+G;t+=" ( ( "+X+" === undefined ",te&&(t+=" || ! Object.prototype.hasOwnProperty.call("+_+", '"+e.util.escapeQuotes(P)+"') "),t+=") && (missing"+a+" = "+e.util.toQuotedString(e.opts.jsonPointers?P:G)+") ) "}t+=")) { ";var oe="missing"+a,ye="' + "+oe+" + '";e.opts._errorDataPathProperty&&(e.errorPath=e.opts.jsonPointers?e.util.getPathExpr(F,oe,!0):F+" + "+oe);var Oe=Oe||[];Oe.push(t),t="",e.createErrors!==!1?(t+=" { keyword: 'dependencies' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(m)+" , params: { property: '"+e.util.escapeQuotes(ee)+"', missingProperty: '"+ye+"', depsCount: "+U.length+", deps: '"+e.util.escapeQuotes(U.length==1?U[0]:U.join(", "))+"' } ",e.opts.messages!==!1&&(t+=" , message: 'should have ",U.length==1?t+="property "+e.util.escapeQuotes(U[0]):t+="properties "+e.util.escapeQuotes(U.join(", ")),t+=" when property "+e.util.escapeQuotes(ee)+" is present' "),e.opts.verbose&&(t+=" , schema: validate.schema"+f+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+_+" "),t+=" } "):t+=" {} ";var ze=t;t=Oe.pop(),!e.compositeRule&&p?e.async?t+=" throw new ValidationError(["+ze+"]); ":t+=" validate.errors = ["+ze+"]; return false; ":t+=" var err = "+ze+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}else{t+=" ) { ";var he=U;if(he)for(var P,re=-1,we=he.length-1;re<we;){P=he[re+=1];var G=e.util.getProperty(P),ye=e.util.escapeQuotes(P),X=_+G;e.opts._errorDataPathProperty&&(e.errorPath=e.util.getPath(F,P,e.opts.jsonPointers)),t+=" if ( "+X+" === undefined ",te&&(t+=" || ! Object.prototype.hasOwnProperty.call("+_+", '"+e.util.escapeQuotes(P)+"') "),t+=") { var err = ",e.createErrors!==!1?(t+=" { keyword: 'dependencies' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(m)+" , params: { property: '"+e.util.escapeQuotes(ee)+"', missingProperty: '"+ye+"', depsCount: "+U.length+", deps: '"+e.util.escapeQuotes(U.length==1?U[0]:U.join(", "))+"' } ",e.opts.messages!==!1&&(t+=" , message: 'should have ",U.length==1?t+="property "+e.util.escapeQuotes(U[0]):t+="properties "+e.util.escapeQuotes(U.join(", ")),t+=" when property "+e.util.escapeQuotes(ee)+" is present' "),e.opts.verbose&&(t+=" , schema: validate.schema"+f+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+_+" "),t+=" } "):t+=" {} ",t+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; } "}}t+=" } ",p&&(w+="}",t+=" else { ")}e.errorPath=F;var xe=y.baseId;for(var ee in C){var Y=C[ee];(e.opts.strictKeywords?typeof Y=="object"&&Object.keys(Y).length>0||Y===!1:e.util.schemaHasRules(Y,e.RULES.all))&&(t+=" "+R+" = true; if ( "+_+e.util.getProperty(ee)+" !== undefined ",te&&(t+=" && Object.prototype.hasOwnProperty.call("+_+", '"+e.util.escapeQuotes(ee)+"') "),t+=") { ",y.schema=Y,y.schemaPath=f+e.util.getProperty(ee),y.errSchemaPath=m+"/"+e.util.escapeFragment(ee),t+=" "+e.validate(y)+" ",y.baseId=xe,t+=" } ",p&&(t+=" if ("+R+") { ",w+="}"))}return p&&(t+=" "+w+" if ("+E+" == errors) {"),t}),Oa}var La,Zu;function lg(){return Zu||(Zu=1,La=function(e,r,s){var t=" ",a=e.level,l=e.dataLevel,c=e.schema[r],f=e.schemaPath+e.util.getProperty(r),m=e.errSchemaPath+"/"+r,p=!e.opts.allErrors,_="data"+(l||""),E="valid"+a,y=e.opts.$data&&c&&c.$data;y&&(t+=" var schema"+a+" = "+e.util.getData(c.$data,l,e.dataPathArr)+"; ");var w="i"+a,R="schema"+a;y||(t+=" var "+R+" = validate.schema"+f+";"),t+="var "+E+";",y&&(t+=" if (schema"+a+" === undefined) "+E+" = true; else if (!Array.isArray(schema"+a+")) "+E+" = false; else {"),t+=""+E+" = false;for (var "+w+"=0; "+w+"<"+R+".length; "+w+"++) if (equal("+_+", "+R+"["+w+"])) { "+E+" = true; break; }",y&&(t+=" } "),t+=" if (!"+E+") { ";var C=C||[];C.push(t),t="",e.createErrors!==!1?(t+=" { keyword: 'enum' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(m)+" , params: { allowedValues: schema"+a+" } ",e.opts.messages!==!1&&(t+=" , message: 'should be equal to one of the allowed values' "),e.opts.verbose&&(t+=" , schema: validate.schema"+f+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+_+" "),t+=" } "):t+=" {} ";var A=t;return t=C.pop(),!e.compositeRule&&p?e.async?t+=" throw new ValidationError(["+A+"]); ":t+=" validate.errors = ["+A+"]; return false; ":t+=" var err = "+A+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",t+=" }",p&&(t+=" else { "),t}),La}var Da,ec;function ug(){return ec||(ec=1,Da=function(e,r,s){var t=" ",a=e.level,l=e.dataLevel,c=e.schema[r],f=e.schemaPath+e.util.getProperty(r),m=e.errSchemaPath+"/"+r,p=!e.opts.allErrors,_="data"+(l||"");if(e.opts.format===!1)return p&&(t+=" if (true) { "),t;var E=e.opts.$data&&c&&c.$data,y;E?(t+=" var schema"+a+" = "+e.util.getData(c.$data,l,e.dataPathArr)+"; ",y="schema"+a):y=c;var w=e.opts.unknownFormats,R=Array.isArray(w);if(E){var C="format"+a,A="isObject"+a,te="formatType"+a;t+=" var "+C+" = formats["+y+"]; var "+A+" = typeof "+C+" == 'object' && !("+C+" instanceof RegExp) && "+C+".validate; var "+te+" = "+A+" && "+C+".type || 'string'; if ("+A+") { ",e.async&&(t+=" var async"+a+" = "+C+".async; "),t+=" "+C+" = "+C+".validate; } if ( ",E&&(t+=" ("+y+" !== undefined && typeof "+y+" != 'string') || "),t+=" (",w!="ignore"&&(t+=" ("+y+" && !"+C+" ",R&&(t+=" && self._opts.unknownFormats.indexOf("+y+") == -1 "),t+=") || "),t+=" ("+C+" && "+te+" == '"+s+"' && !(typeof "+C+" == 'function' ? ",e.async?t+=" (async"+a+" ? await "+C+"("+_+") : "+C+"("+_+")) ":t+=" "+C+"("+_+") ",t+=" : "+C+".test("+_+"))))) {"}else{var C=e.formats[c];if(!C){if(w=="ignore")return e.logger.warn('unknown format "'+c+'" ignored in schema at path "'+e.errSchemaPath+'"'),p&&(t+=" if (true) { "),t;if(R&&w.indexOf(c)>=0)return p&&(t+=" if (true) { "),t;throw new Error('unknown format "'+c+'" is used in schema at path "'+e.errSchemaPath+'"')}var A=typeof C=="object"&&!(C instanceof RegExp)&&C.validate,te=A&&C.type||"string";if(A){var Y=C.async===!0;C=C.validate}if(te!=s)return p&&(t+=" if (true) { "),t;if(Y){if(!e.async)throw new Error("async format in sync schema");var U="formats"+e.util.getProperty(c)+".validate";t+=" if (!(await "+U+"("+_+"))) { "}else{t+=" if (! ";var U="formats"+e.util.getProperty(c);A&&(U+=".validate"),typeof C=="function"?t+=" "+U+"("+_+") ":t+=" "+U+".test("+_+") ",t+=") { "}}var F=F||[];F.push(t),t="",e.createErrors!==!1?(t+=" { keyword: 'format' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(m)+" , params: { format: ",E?t+=""+y:t+=""+e.util.toQuotedString(c),t+=" } ",e.opts.messages!==!1&&(t+=` , message: 'should match format "`,E?t+="' + "+y+" + '":t+=""+e.util.escapeQuotes(c),t+=`"' `),e.opts.verbose&&(t+=" , schema: ",E?t+="validate.schema"+f:t+=""+e.util.toQuotedString(c),t+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+_+" "),t+=" } "):t+=" {} ";var ee=t;return t=F.pop(),!e.compositeRule&&p?e.async?t+=" throw new ValidationError(["+ee+"]); ":t+=" validate.errors = ["+ee+"]; return false; ":t+=" var err = "+ee+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",t+=" } ",p&&(t+=" else { "),t}),Da}var Na,tc;function cg(){return tc||(tc=1,Na=function(e,r,s){var t=" ",a=e.level,l=e.dataLevel,c=e.schema[r],f=e.schemaPath+e.util.getProperty(r),m=e.errSchemaPath+"/"+r,p=!e.opts.allErrors,_="data"+(l||""),E="valid"+a,y="errs__"+a,w=e.util.copy(e);w.level++;var R="valid"+w.level,C=e.schema.then,A=e.schema.else,te=C!==void 0&&(e.opts.strictKeywords?typeof C=="object"&&Object.keys(C).length>0||C===!1:e.util.schemaHasRules(C,e.RULES.all)),Y=A!==void 0&&(e.opts.strictKeywords?typeof A=="object"&&Object.keys(A).length>0||A===!1:e.util.schemaHasRules(A,e.RULES.all)),U=w.baseId;if(te||Y){var F;w.createErrors=!1,w.schema=c,w.schemaPath=f,w.errSchemaPath=m,t+=" var "+y+" = errors; var "+E+" = true; ";var ee=e.compositeRule;e.compositeRule=w.compositeRule=!0,t+=" "+e.validate(w)+" ",w.baseId=U,w.createErrors=!0,t+=" errors = "+y+"; if (vErrors !== null) { if ("+y+") vErrors.length = "+y+"; else vErrors = null; } ",e.compositeRule=w.compositeRule=ee,te?(t+=" if ("+R+") { ",w.schema=e.schema.then,w.schemaPath=e.schemaPath+".then",w.errSchemaPath=e.errSchemaPath+"/then",t+=" "+e.validate(w)+" ",w.baseId=U,t+=" "+E+" = "+R+"; ",te&&Y?(F="ifClause"+a,t+=" var "+F+" = 'then'; "):F="'then'",t+=" } ",Y&&(t+=" else { ")):t+=" if (!"+R+") { ",Y&&(w.schema=e.schema.else,w.schemaPath=e.schemaPath+".else",w.errSchemaPath=e.errSchemaPath+"/else",t+=" "+e.validate(w)+" ",w.baseId=U,t+=" "+E+" = "+R+"; ",te&&Y?(F="ifClause"+a,t+=" var "+F+" = 'else'; "):F="'else'",t+=" } "),t+=" if (!"+E+") { var err = ",e.createErrors!==!1?(t+=" { keyword: 'if' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(m)+" , params: { failingKeyword: "+F+" } ",e.opts.messages!==!1&&(t+=` , message: 'should match "' + `+F+` + '" schema' `),e.opts.verbose&&(t+=" , schema: validate.schema"+f+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+_+" "),t+=" } "):t+=" {} ",t+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",!e.compositeRule&&p&&(e.async?t+=" throw new ValidationError(vErrors); ":t+=" validate.errors = vErrors; return false; "),t+=" } ",p&&(t+=" else { ")}else p&&(t+=" if (true) { ");return t}),Na}var ka,rc;function dg(){return rc||(rc=1,ka=function(e,r,s){var t=" ",a=e.level,l=e.dataLevel,c=e.schema[r],f=e.schemaPath+e.util.getProperty(r),m=e.errSchemaPath+"/"+r,p=!e.opts.allErrors,_="data"+(l||""),E="valid"+a,y="errs__"+a,w=e.util.copy(e),R="";w.level++;var C="valid"+w.level,A="i"+a,te=w.dataLevel=e.dataLevel+1,Y="data"+te,U=e.baseId;if(t+="var "+y+" = errors;var "+E+";",Array.isArray(c)){var F=e.schema.additionalItems;if(F===!1){t+=" "+E+" = "+_+".length <= "+c.length+"; ";var ee=m;m=e.errSchemaPath+"/additionalItems",t+=" if (!"+E+") { ";var u=u||[];u.push(t),t="",e.createErrors!==!1?(t+=" { keyword: 'additionalItems' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(m)+" , params: { limit: "+c.length+" } ",e.opts.messages!==!1&&(t+=" , message: 'should NOT have more than "+c.length+" items' "),e.opts.verbose&&(t+=" , schema: false , parentSchema: validate.schema"+e.schemaPath+" , data: "+_+" "),t+=" } "):t+=" {} ";var P=t;t=u.pop(),!e.compositeRule&&p?e.async?t+=" throw new ValidationError(["+P+"]); ":t+=" validate.errors = ["+P+"]; return false; ":t+=" var err = "+P+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",t+=" } ",m=ee,p&&(R+="}",t+=" else { ")}var W=c;if(W){for(var z,G=-1,X=W.length-1;G<X;)if(z=W[G+=1],e.opts.strictKeywords?typeof z=="object"&&Object.keys(z).length>0||z===!1:e.util.schemaHasRules(z,e.RULES.all)){t+=" "+C+" = true; if ("+_+".length > "+G+") { ";var oe=_+"["+G+"]";w.schema=z,w.schemaPath=f+"["+G+"]",w.errSchemaPath=m+"/"+G,w.errorPath=e.util.getPathExpr(e.errorPath,G,e.opts.jsonPointers,!0),w.dataPathArr[te]=G;var ye=e.validate(w);w.baseId=U,e.util.varOccurences(ye,Y)<2?t+=" "+e.util.varReplace(ye,Y,oe)+" ":t+=" var "+Y+" = "+oe+"; "+ye+" ",t+=" } ",p&&(t+=" if ("+C+") { ",R+="}")}}if(typeof F=="object"&&(e.opts.strictKeywords?typeof F=="object"&&Object.keys(F).length>0||F===!1:e.util.schemaHasRules(F,e.RULES.all))){w.schema=F,w.schemaPath=e.schemaPath+".additionalItems",w.errSchemaPath=e.errSchemaPath+"/additionalItems",t+=" "+C+" = true; if ("+_+".length > "+c.length+") { for (var "+A+" = "+c.length+"; "+A+" < "+_+".length; "+A+"++) { ",w.errorPath=e.util.getPathExpr(e.errorPath,A,e.opts.jsonPointers,!0);var oe=_+"["+A+"]";w.dataPathArr[te]=A;var ye=e.validate(w);w.baseId=U,e.util.varOccurences(ye,Y)<2?t+=" "+e.util.varReplace(ye,Y,oe)+" ":t+=" var "+Y+" = "+oe+"; "+ye+" ",p&&(t+=" if (!"+C+") break; "),t+=" } } ",p&&(t+=" if ("+C+") { ",R+="}")}}else if(e.opts.strictKeywords?typeof c=="object"&&Object.keys(c).length>0||c===!1:e.util.schemaHasRules(c,e.RULES.all)){w.schema=c,w.schemaPath=f,w.errSchemaPath=m,t+=" for (var "+A+" = 0; "+A+" < "+_+".length; "+A+"++) { ",w.errorPath=e.util.getPathExpr(e.errorPath,A,e.opts.jsonPointers,!0);var oe=_+"["+A+"]";w.dataPathArr[te]=A;var ye=e.validate(w);w.baseId=U,e.util.varOccurences(ye,Y)<2?t+=" "+e.util.varReplace(ye,Y,oe)+" ":t+=" var "+Y+" = "+oe+"; "+ye+" ",p&&(t+=" if (!"+C+") break; "),t+=" }"}return p&&(t+=" "+R+" if ("+y+" == errors) {"),t}),ka}var ja,ic;function sc(){return ic||(ic=1,ja=function(e,r,s){var t=" ",a=e.level,l=e.dataLevel,c=e.schema[r],f=e.schemaPath+e.util.getProperty(r),m=e.errSchemaPath+"/"+r,p=!e.opts.allErrors,U,_="data"+(l||""),E=e.opts.$data&&c&&c.$data,y;E?(t+=" var schema"+a+" = "+e.util.getData(c.$data,l,e.dataPathArr)+"; ",y="schema"+a):y=c;var w=r=="maximum",R=w?"exclusiveMaximum":"exclusiveMinimum",C=e.schema[R],A=e.opts.$data&&C&&C.$data,te=w?"<":">",Y=w?">":"<",U=void 0;if(!(E||typeof c=="number"||c===void 0))throw new Error(r+" must be number");if(!(A||C===void 0||typeof C=="number"||typeof C=="boolean"))throw new Error(R+" must be number or boolean");if(A){var F=e.util.getData(C.$data,l,e.dataPathArr),ee="exclusive"+a,u="exclType"+a,P="exclIsNumber"+a,W="op"+a,z="' + "+W+" + '";t+=" var schemaExcl"+a+" = "+F+"; ",F="schemaExcl"+a,t+=" var "+ee+"; var "+u+" = typeof "+F+"; if ("+u+" != 'boolean' && "+u+" != 'undefined' && "+u+" != 'number') { ";var U=R,G=G||[];G.push(t),t="",e.createErrors!==!1?(t+=" { keyword: '"+(U||"_exclusiveLimit")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(m)+" , params: {} ",e.opts.messages!==!1&&(t+=" , message: '"+R+" should be boolean' "),e.opts.verbose&&(t+=" , schema: validate.schema"+f+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+_+" "),t+=" } "):t+=" {} ";var X=t;t=G.pop(),!e.compositeRule&&p?e.async?t+=" throw new ValidationError(["+X+"]); ":t+=" validate.errors = ["+X+"]; return false; ":t+=" var err = "+X+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",t+=" } else if ( ",E&&(t+=" ("+y+" !== undefined && typeof "+y+" != 'number') || "),t+=" "+u+" == 'number' ? ( ("+ee+" = "+y+" === undefined || "+F+" "+te+"= "+y+") ? "+_+" "+Y+"= "+F+" : "+_+" "+Y+" "+y+" ) : ( ("+ee+" = "+F+" === true) ? "+_+" "+Y+"= "+y+" : "+_+" "+Y+" "+y+" ) || "+_+" !== "+_+") { var op"+a+" = "+ee+" ? '"+te+"' : '"+te+"='; ",c===void 0&&(U=R,m=e.errSchemaPath+"/"+R,y=F,E=A)}else{var P=typeof C=="number",z=te;if(P&&E){var W="'"+z+"'";t+=" if ( ",E&&(t+=" ("+y+" !== undefined && typeof "+y+" != 'number') || "),t+=" ( "+y+" === undefined || "+C+" "+te+"= "+y+" ? "+_+" "+Y+"= "+C+" : "+_+" "+Y+" "+y+" ) || "+_+" !== "+_+") { "}else{P&&c===void 0?(ee=!0,U=R,m=e.errSchemaPath+"/"+R,y=C,Y+="="):(P&&(y=Math[w?"min":"max"](C,c)),C===(P?y:!0)?(ee=!0,U=R,m=e.errSchemaPath+"/"+R,Y+="="):(ee=!1,z+="="));var W="'"+z+"'";t+=" if ( ",E&&(t+=" ("+y+" !== undefined && typeof "+y+" != 'number') || "),t+=" "+_+" "+Y+" "+y+" || "+_+" !== "+_+") { "}}U=U||r;var G=G||[];G.push(t),t="",e.createErrors!==!1?(t+=" { keyword: '"+(U||"_limit")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(m)+" , params: { comparison: "+W+", limit: "+y+", exclusive: "+ee+" } ",e.opts.messages!==!1&&(t+=" , message: 'should be "+z+" ",E?t+="' + "+y:t+=""+y+"'"),e.opts.verbose&&(t+=" , schema: ",E?t+="validate.schema"+f:t+=""+c,t+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+_+" "),t+=" } "):t+=" {} ";var X=t;return t=G.pop(),!e.compositeRule&&p?e.async?t+=" throw new ValidationError(["+X+"]); ":t+=" validate.errors = ["+X+"]; return false; ":t+=" var err = "+X+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",t+=" } ",p&&(t+=" else { "),t}),ja}var Ma,nc;function ac(){return nc||(nc=1,Ma=function(e,r,s){var t=" ",a=e.level,l=e.dataLevel,c=e.schema[r],f=e.schemaPath+e.util.getProperty(r),m=e.errSchemaPath+"/"+r,p=!e.opts.allErrors,R,_="data"+(l||""),E=e.opts.$data&&c&&c.$data,y;if(E?(t+=" var schema"+a+" = "+e.util.getData(c.$data,l,e.dataPathArr)+"; ",y="schema"+a):y=c,!(E||typeof c=="number"))throw new Error(r+" must be number");var w=r=="maxItems"?">":"<";t+="if ( ",E&&(t+=" ("+y+" !== undefined && typeof "+y+" != 'number') || "),t+=" "+_+".length "+w+" "+y+") { ";var R=r,C=C||[];C.push(t),t="",e.createErrors!==!1?(t+=" { keyword: '"+(R||"_limitItems")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(m)+" , params: { limit: "+y+" } ",e.opts.messages!==!1&&(t+=" , message: 'should NOT have ",r=="maxItems"?t+="more":t+="fewer",t+=" than ",E?t+="' + "+y+" + '":t+=""+c,t+=" items' "),e.opts.verbose&&(t+=" , schema: ",E?t+="validate.schema"+f:t+=""+c,t+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+_+" "),t+=" } "):t+=" {} ";var A=t;return t=C.pop(),!e.compositeRule&&p?e.async?t+=" throw new ValidationError(["+A+"]); ":t+=" validate.errors = ["+A+"]; return false; ":t+=" var err = "+A+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",t+="} ",p&&(t+=" else { "),t}),Ma}var $a,oc;function lc(){return oc||(oc=1,$a=function(e,r,s){var t=" ",a=e.level,l=e.dataLevel,c=e.schema[r],f=e.schemaPath+e.util.getProperty(r),m=e.errSchemaPath+"/"+r,p=!e.opts.allErrors,R,_="data"+(l||""),E=e.opts.$data&&c&&c.$data,y;if(E?(t+=" var schema"+a+" = "+e.util.getData(c.$data,l,e.dataPathArr)+"; ",y="schema"+a):y=c,!(E||typeof c=="number"))throw new Error(r+" must be number");var w=r=="maxLength"?">":"<";t+="if ( ",E&&(t+=" ("+y+" !== undefined && typeof "+y+" != 'number') || "),e.opts.unicode===!1?t+=" "+_+".length ":t+=" ucs2length("+_+") ",t+=" "+w+" "+y+") { ";var R=r,C=C||[];C.push(t),t="",e.createErrors!==!1?(t+=" { keyword: '"+(R||"_limitLength")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(m)+" , params: { limit: "+y+" } ",e.opts.messages!==!1&&(t+=" , message: 'should NOT be ",r=="maxLength"?t+="longer":t+="shorter",t+=" than ",E?t+="' + "+y+" + '":t+=""+c,t+=" characters' "),e.opts.verbose&&(t+=" , schema: ",E?t+="validate.schema"+f:t+=""+c,t+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+_+" "),t+=" } "):t+=" {} ";var A=t;return t=C.pop(),!e.compositeRule&&p?e.async?t+=" throw new ValidationError(["+A+"]); ":t+=" validate.errors = ["+A+"]; return false; ":t+=" var err = "+A+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",t+="} ",p&&(t+=" else { "),t}),$a}var qa,uc;function cc(){return uc||(uc=1,qa=function(e,r,s){var t=" ",a=e.level,l=e.dataLevel,c=e.schema[r],f=e.schemaPath+e.util.getProperty(r),m=e.errSchemaPath+"/"+r,p=!e.opts.allErrors,R,_="data"+(l||""),E=e.opts.$data&&c&&c.$data,y;if(E?(t+=" var schema"+a+" = "+e.util.getData(c.$data,l,e.dataPathArr)+"; ",y="schema"+a):y=c,!(E||typeof c=="number"))throw new Error(r+" must be number");var w=r=="maxProperties"?">":"<";t+="if ( ",E&&(t+=" ("+y+" !== undefined && typeof "+y+" != 'number') || "),t+=" Object.keys("+_+").length "+w+" "+y+") { ";var R=r,C=C||[];C.push(t),t="",e.createErrors!==!1?(t+=" { keyword: '"+(R||"_limitProperties")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(m)+" , params: { limit: "+y+" } ",e.opts.messages!==!1&&(t+=" , message: 'should NOT have ",r=="maxProperties"?t+="more":t+="fewer",t+=" than ",E?t+="' + "+y+" + '":t+=""+c,t+=" properties' "),e.opts.verbose&&(t+=" , schema: ",E?t+="validate.schema"+f:t+=""+c,t+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+_+" "),t+=" } "):t+=" {} ";var A=t;return t=C.pop(),!e.compositeRule&&p?e.async?t+=" throw new ValidationError(["+A+"]); ":t+=" validate.errors = ["+A+"]; return false; ":t+=" var err = "+A+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",t+="} ",p&&(t+=" else { "),t}),qa}var Fa,dc;function hg(){return dc||(dc=1,Fa=function(e,r,s){var t=" ",a=e.level,l=e.dataLevel,c=e.schema[r],f=e.schemaPath+e.util.getProperty(r),m=e.errSchemaPath+"/"+r,p=!e.opts.allErrors,_="data"+(l||""),E=e.opts.$data&&c&&c.$data,y;if(E?(t+=" var schema"+a+" = "+e.util.getData(c.$data,l,e.dataPathArr)+"; ",y="schema"+a):y=c,!(E||typeof c=="number"))throw new Error(r+" must be number");t+="var division"+a+";if (",E&&(t+=" "+y+" !== undefined && ( typeof "+y+" != 'number' || "),t+=" (division"+a+" = "+_+" / "+y+", ",e.opts.multipleOfPrecision?t+=" Math.abs(Math.round(division"+a+") - division"+a+") > 1e-"+e.opts.multipleOfPrecision+" ":t+=" division"+a+" !== parseInt(division"+a+") ",t+=" ) ",E&&(t+=" ) "),t+=" ) { ";var w=w||[];w.push(t),t="",e.createErrors!==!1?(t+=" { keyword: 'multipleOf' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(m)+" , params: { multipleOf: "+y+" } ",e.opts.messages!==!1&&(t+=" , message: 'should be multiple of ",E?t+="' + "+y:t+=""+y+"'"),e.opts.verbose&&(t+=" , schema: ",E?t+="validate.schema"+f:t+=""+c,t+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+_+" "),t+=" } "):t+=" {} ";var R=t;return t=w.pop(),!e.compositeRule&&p?e.async?t+=" throw new ValidationError(["+R+"]); ":t+=" validate.errors = ["+R+"]; return false; ":t+=" var err = "+R+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",t+="} ",p&&(t+=" else { "),t}),Fa}var Va,hc;function fg(){return hc||(hc=1,Va=function(e,r,s){var t=" ",a=e.level,l=e.dataLevel,c=e.schema[r],f=e.schemaPath+e.util.getProperty(r),m=e.errSchemaPath+"/"+r,p=!e.opts.allErrors,_="data"+(l||""),E="errs__"+a,y=e.util.copy(e);y.level++;var w="valid"+y.level;if(e.opts.strictKeywords?typeof c=="object"&&Object.keys(c).length>0||c===!1:e.util.schemaHasRules(c,e.RULES.all)){y.schema=c,y.schemaPath=f,y.errSchemaPath=m,t+=" var "+E+" = errors; ";var R=e.compositeRule;e.compositeRule=y.compositeRule=!0,y.createErrors=!1;var C;y.opts.allErrors&&(C=y.opts.allErrors,y.opts.allErrors=!1),t+=" "+e.validate(y)+" ",y.createErrors=!0,C&&(y.opts.allErrors=C),e.compositeRule=y.compositeRule=R,t+=" if ("+w+") { ";var A=A||[];A.push(t),t="",e.createErrors!==!1?(t+=" { keyword: 'not' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(m)+" , params: {} ",e.opts.messages!==!1&&(t+=" , message: 'should NOT be valid' "),e.opts.verbose&&(t+=" , schema: validate.schema"+f+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+_+" "),t+=" } "):t+=" {} ";var te=t;t=A.pop(),!e.compositeRule&&p?e.async?t+=" throw new ValidationError(["+te+"]); ":t+=" validate.errors = ["+te+"]; return false; ":t+=" var err = "+te+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",t+=" } else { errors = "+E+"; if (vErrors !== null) { if ("+E+") vErrors.length = "+E+"; else vErrors = null; } ",e.opts.allErrors&&(t+=" } ")}else t+=" var err = ",e.createErrors!==!1?(t+=" { keyword: 'not' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(m)+" , params: {} ",e.opts.messages!==!1&&(t+=" , message: 'should NOT be valid' "),e.opts.verbose&&(t+=" , schema: validate.schema"+f+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+_+" "),t+=" } "):t+=" {} ",t+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",p&&(t+=" if (false) { ");return t}),Va}var Ua,fc;function pg(){return fc||(fc=1,Ua=function(e,r,s){var t=" ",a=e.level,l=e.dataLevel,c=e.schema[r],f=e.schemaPath+e.util.getProperty(r),m=e.errSchemaPath+"/"+r,p=!e.opts.allErrors,_="data"+(l||""),E="valid"+a,y="errs__"+a,w=e.util.copy(e),R="";w.level++;var C="valid"+w.level,A=w.baseId,te="prevValid"+a,Y="passingSchemas"+a;t+="var "+y+" = errors , "+te+" = false , "+E+" = false , "+Y+" = null; ";var U=e.compositeRule;e.compositeRule=w.compositeRule=!0;var F=c;if(F)for(var ee,u=-1,P=F.length-1;u<P;)ee=F[u+=1],(e.opts.strictKeywords?typeof ee=="object"&&Object.keys(ee).length>0||ee===!1:e.util.schemaHasRules(ee,e.RULES.all))?(w.schema=ee,w.schemaPath=f+"["+u+"]",w.errSchemaPath=m+"/"+u,t+=" "+e.validate(w)+" ",w.baseId=A):t+=" var "+C+" = true; ",u&&(t+=" if ("+C+" && "+te+") { "+E+" = false; "+Y+" = ["+Y+", "+u+"]; } else { ",R+="}"),t+=" if ("+C+") { "+E+" = "+te+" = true; "+Y+" = "+u+"; }";return e.compositeRule=w.compositeRule=U,t+=""+R+"if (!"+E+") { var err = ",e.createErrors!==!1?(t+=" { keyword: 'oneOf' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(m)+" , params: { passingSchemas: "+Y+" } ",e.opts.messages!==!1&&(t+=" , message: 'should match exactly one schema in oneOf' "),e.opts.verbose&&(t+=" , schema: validate.schema"+f+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+_+" "),t+=" } "):t+=" {} ",t+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",!e.compositeRule&&p&&(e.async?t+=" throw new ValidationError(vErrors); ":t+=" validate.errors = vErrors; return false; "),t+="} else { errors = "+y+"; if (vErrors !== null) { if ("+y+") vErrors.length = "+y+"; else vErrors = null; }",e.opts.allErrors&&(t+=" } "),t}),Ua}var Ba,pc;function mg(){return pc||(pc=1,Ba=function(e,r,s){var t=" ",a=e.level,l=e.dataLevel,c=e.schema[r],f=e.schemaPath+e.util.getProperty(r),m=e.errSchemaPath+"/"+r,p=!e.opts.allErrors,_="data"+(l||""),E="valid"+a,y=e.opts.$data&&c&&c.$data,w;y?(t+=" var schema"+a+" = "+e.util.getData(c.$data,l,e.dataPathArr)+"; ",w="schema"+a):w=c;var R=e.opts.regExp?"regExp":"new RegExp";if(y)t+=" var "+E+" = true; try { "+E+" = "+R+"("+w+").test("+_+"); } catch(e) { "+E+" = false; } if ( ",y&&(t+=" ("+w+" !== undefined && typeof "+w+" != 'string') || "),t+=" !"+E+") {";else{var C=e.usePattern(c);t+=" if ( ",y&&(t+=" ("+w+" !== undefined && typeof "+w+" != 'string') || "),t+=" !"+C+".test("+_+") ) {"}var A=A||[];A.push(t),t="",e.createErrors!==!1?(t+=" { keyword: 'pattern' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(m)+" , params: { pattern: ",y?t+=""+w:t+=""+e.util.toQuotedString(c),t+=" } ",e.opts.messages!==!1&&(t+=` , message: 'should match pattern "`,y?t+="' + "+w+" + '":t+=""+e.util.escapeQuotes(c),t+=`"' `),e.opts.verbose&&(t+=" , schema: ",y?t+="validate.schema"+f:t+=""+e.util.toQuotedString(c),t+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+_+" "),t+=" } "):t+=" {} ";var te=t;return t=A.pop(),!e.compositeRule&&p?e.async?t+=" throw new ValidationError(["+te+"]); ":t+=" validate.errors = ["+te+"]; return false; ":t+=" var err = "+te+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",t+="} ",p&&(t+=" else { "),t}),Ba}var za,mc;function gg(){return mc||(mc=1,za=function(e,r,s){var t=" ",a=e.level,l=e.dataLevel,c=e.schema[r],f=e.schemaPath+e.util.getProperty(r),m=e.errSchemaPath+"/"+r,p=!e.opts.allErrors,_="data"+(l||""),E="errs__"+a,y=e.util.copy(e),w="";y.level++;var R="valid"+y.level,C="key"+a,A="idx"+a,te=y.dataLevel=e.dataLevel+1,Y="data"+te,U="dataProperties"+a,F=Object.keys(c||{}).filter(re),ee=e.schema.patternProperties||{},u=Object.keys(ee).filter(re),P=e.schema.additionalProperties,W=F.length||u.length,z=P===!1,G=typeof P=="object"&&Object.keys(P).length,X=e.opts.removeAdditional,oe=z||G||X,ye=e.opts.ownProperties,Oe=e.baseId,ze=e.schema.required;if(ze&&!(e.opts.$data&&ze.$data)&&ze.length<e.opts.loopRequired)var he=e.util.toHash(ze);function re(k){return k!=="__proto__"}if(t+="var "+E+" = errors;var "+R+" = true;",ye&&(t+=" var "+U+" = undefined;"),oe){if(ye?t+=" "+U+" = "+U+" || Object.keys("+_+"); for (var "+A+"=0; "+A+"<"+U+".length; "+A+"++) { var "+C+" = "+U+"["+A+"]; ":t+=" for (var "+C+" in "+_+") { ",W){if(t+=" var isAdditional"+a+" = !(false ",F.length)if(F.length>8)t+=" || validate.schema"+f+".hasOwnProperty("+C+") ";else{var we=F;if(we)for(var xe,Fe=-1,Pe=we.length-1;Fe<Pe;)xe=we[Fe+=1],t+=" || "+C+" == "+e.util.toQuotedString(xe)+" "}if(u.length){var Ne=u;if(Ne)for(var Ue,qe=-1,$=Ne.length-1;qe<$;)Ue=Ne[qe+=1],t+=" || "+e.usePattern(Ue)+".test("+C+") "}t+=" ); if (isAdditional"+a+") { "}if(X=="all")t+=" delete "+_+"["+C+"]; ";else{var ce=e.errorPath,Ee="' + "+C+" + '";if(e.opts._errorDataPathProperty&&(e.errorPath=e.util.getPathExpr(e.errorPath,C,e.opts.jsonPointers)),z)if(X)t+=" delete "+_+"["+C+"]; ";else{t+=" "+R+" = false; ";var Ve=m;m=e.errSchemaPath+"/additionalProperties";var me=me||[];me.push(t),t="",e.createErrors!==!1?(t+=" { keyword: 'additionalProperties' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(m)+" , params: { additionalProperty: '"+Ee+"' } ",e.opts.messages!==!1&&(t+=" , message: '",e.opts._errorDataPathProperty?t+="is an invalid additional property":t+="should NOT have additional properties",t+="' "),e.opts.verbose&&(t+=" , schema: false , parentSchema: validate.schema"+e.schemaPath+" , data: "+_+" "),t+=" } "):t+=" {} ";var Re=t;t=me.pop(),!e.compositeRule&&p?e.async?t+=" throw new ValidationError(["+Re+"]); ":t+=" validate.errors = ["+Re+"]; return false; ":t+=" var err = "+Re+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",m=Ve,p&&(t+=" break; ")}else if(G)if(X=="failing"){t+=" var "+E+" = errors; ";var He=e.compositeRule;e.compositeRule=y.compositeRule=!0,y.schema=P,y.schemaPath=e.schemaPath+".additionalProperties",y.errSchemaPath=e.errSchemaPath+"/additionalProperties",y.errorPath=e.opts._errorDataPathProperty?e.errorPath:e.util.getPathExpr(e.errorPath,C,e.opts.jsonPointers);var rt=_+"["+C+"]";y.dataPathArr[te]=C;var g=e.validate(y);y.baseId=Oe,e.util.varOccurences(g,Y)<2?t+=" "+e.util.varReplace(g,Y,rt)+" ":t+=" var "+Y+" = "+rt+"; "+g+" ",t+=" if (!"+R+") { errors = "+E+"; if (validate.errors !== null) { if (errors) validate.errors.length = errors; else validate.errors = null; } delete "+_+"["+C+"]; } ",e.compositeRule=y.compositeRule=He}else{y.schema=P,y.schemaPath=e.schemaPath+".additionalProperties",y.errSchemaPath=e.errSchemaPath+"/additionalProperties",y.errorPath=e.opts._errorDataPathProperty?e.errorPath:e.util.getPathExpr(e.errorPath,C,e.opts.jsonPointers);var rt=_+"["+C+"]";y.dataPathArr[te]=C;var g=e.validate(y);y.baseId=Oe,e.util.varOccurences(g,Y)<2?t+=" "+e.util.varReplace(g,Y,rt)+" ":t+=" var "+Y+" = "+rt+"; "+g+" ",p&&(t+=" if (!"+R+") break; ")}e.errorPath=ce}W&&(t+=" } "),t+=" } ",p&&(t+=" if ("+R+") { ",w+="}")}var T=e.opts.useDefaults&&!e.compositeRule;if(F.length){var O=F;if(O)for(var xe,V=-1,se=O.length-1;V<se;){xe=O[V+=1];var fe=c[xe];if(e.opts.strictKeywords?typeof fe=="object"&&Object.keys(fe).length>0||fe===!1:e.util.schemaHasRules(fe,e.RULES.all)){var ke=e.util.getProperty(xe),rt=_+ke,et=T&&fe.default!==void 0;y.schema=fe,y.schemaPath=f+ke,y.errSchemaPath=m+"/"+e.util.escapeFragment(xe),y.errorPath=e.util.getPath(e.errorPath,xe,e.opts.jsonPointers),y.dataPathArr[te]=e.util.toQuotedString(xe);var g=e.validate(y);if(y.baseId=Oe,e.util.varOccurences(g,Y)<2){g=e.util.varReplace(g,Y,rt);var Ye=rt}else{var Ye=Y;t+=" var "+Y+" = "+rt+"; "}if(et)t+=" "+g+" ";else{if(he&&he[xe]){t+=" if ( "+Ye+" === undefined ",ye&&(t+=" || ! Object.prototype.hasOwnProperty.call("+_+", '"+e.util.escapeQuotes(xe)+"') "),t+=") { "+R+" = false; ";var ce=e.errorPath,Ve=m,at=e.util.escapeQuotes(xe);e.opts._errorDataPathProperty&&(e.errorPath=e.util.getPath(ce,xe,e.opts.jsonPointers)),m=e.errSchemaPath+"/required";var me=me||[];me.push(t),t="",e.createErrors!==!1?(t+=" { keyword: 'required' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(m)+" , params: { missingProperty: '"+at+"' } ",e.opts.messages!==!1&&(t+=" , message: '",e.opts._errorDataPathProperty?t+="is a required property":t+="should have required property \\'"+at+"\\'",t+="' "),e.opts.verbose&&(t+=" , schema: validate.schema"+f+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+_+" "),t+=" } "):t+=" {} ";var Re=t;t=me.pop(),!e.compositeRule&&p?e.async?t+=" throw new ValidationError(["+Re+"]); ":t+=" validate.errors = ["+Re+"]; return false; ":t+=" var err = "+Re+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",m=Ve,e.errorPath=ce,t+=" } else { "}else p?(t+=" if ( "+Ye+" === undefined ",ye&&(t+=" || ! Object.prototype.hasOwnProperty.call("+_+", '"+e.util.escapeQuotes(xe)+"') "),t+=") { "+R+" = true; } else { "):(t+=" if ("+Ye+" !== undefined ",ye&&(t+=" && Object.prototype.hasOwnProperty.call("+_+", '"+e.util.escapeQuotes(xe)+"') "),t+=" ) { ");t+=" "+g+" } "}}p&&(t+=" if ("+R+") { ",w+="}")}}if(u.length){var pt=u;if(pt)for(var Ue,Ce=-1,_t=pt.length-1;Ce<_t;){Ue=pt[Ce+=1];var fe=ee[Ue];if(e.opts.strictKeywords?typeof fe=="object"&&Object.keys(fe).length>0||fe===!1:e.util.schemaHasRules(fe,e.RULES.all)){y.schema=fe,y.schemaPath=e.schemaPath+".patternProperties"+e.util.getProperty(Ue),y.errSchemaPath=e.errSchemaPath+"/patternProperties/"+e.util.escapeFragment(Ue),ye?t+=" "+U+" = "+U+" || Object.keys("+_+"); for (var "+A+"=0; "+A+"<"+U+".length; "+A+"++) { var "+C+" = "+U+"["+A+"]; ":t+=" for (var "+C+" in "+_+") { ",t+=" if ("+e.usePattern(Ue)+".test("+C+")) { ",y.errorPath=e.util.getPathExpr(e.errorPath,C,e.opts.jsonPointers);var rt=_+"["+C+"]";y.dataPathArr[te]=C;var g=e.validate(y);y.baseId=Oe,e.util.varOccurences(g,Y)<2?t+=" "+e.util.varReplace(g,Y,rt)+" ":t+=" var "+Y+" = "+rt+"; "+g+" ",p&&(t+=" if (!"+R+") break; "),t+=" } ",p&&(t+=" else "+R+" = true; "),t+=" } ",p&&(t+=" if ("+R+") { ",w+="}")}}}return p&&(t+=" "+w+" if ("+E+" == errors) {"),t}),za}var Ha,gc;function vg(){return gc||(gc=1,Ha=function(e,r,s){var t=" ",a=e.level,l=e.dataLevel,c=e.schema[r],f=e.schemaPath+e.util.getProperty(r),m=e.errSchemaPath+"/"+r,p=!e.opts.allErrors,_="data"+(l||""),E="errs__"+a,y=e.util.copy(e),w="";y.level++;var R="valid"+y.level;if(t+="var "+E+" = errors;",e.opts.strictKeywords?typeof c=="object"&&Object.keys(c).length>0||c===!1:e.util.schemaHasRules(c,e.RULES.all)){y.schema=c,y.schemaPath=f,y.errSchemaPath=m;var C="key"+a,A="idx"+a,te="i"+a,Y="' + "+C+" + '",U=y.dataLevel=e.dataLevel+1,F="data"+U,ee="dataProperties"+a,u=e.opts.ownProperties,P=e.baseId;u&&(t+=" var "+ee+" = undefined; "),u?t+=" "+ee+" = "+ee+" || Object.keys("+_+"); for (var "+A+"=0; "+A+"<"+ee+".length; "+A+"++) { var "+C+" = "+ee+"["+A+"]; ":t+=" for (var "+C+" in "+_+") { ",t+=" var startErrs"+a+" = errors; ";var W=C,z=e.compositeRule;e.compositeRule=y.compositeRule=!0;var G=e.validate(y);y.baseId=P,e.util.varOccurences(G,F)<2?t+=" "+e.util.varReplace(G,F,W)+" ":t+=" var "+F+" = "+W+"; "+G+" ",e.compositeRule=y.compositeRule=z,t+=" if (!"+R+") { for (var "+te+"=startErrs"+a+"; "+te+"<errors; "+te+"++) { vErrors["+te+"].propertyName = "+C+"; } var err = ",e.createErrors!==!1?(t+=" { keyword: 'propertyNames' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(m)+" , params: { propertyName: '"+Y+"' } ",e.opts.messages!==!1&&(t+=" , message: 'property name \\'"+Y+"\\' is invalid' "),e.opts.verbose&&(t+=" , schema: validate.schema"+f+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+_+" "),t+=" } "):t+=" {} ",t+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",!e.compositeRule&&p&&(e.async?t+=" throw new ValidationError(vErrors); ":t+=" validate.errors = vErrors; return false; "),p&&(t+=" break; "),t+=" } }"}return p&&(t+=" "+w+" if ("+E+" == errors) {"),t}),Ha}var Wa,vc;function bg(){return vc||(vc=1,Wa=function(e,r,s){var t=" ",a=e.level,l=e.dataLevel,c=e.schema[r],f=e.schemaPath+e.util.getProperty(r),m=e.errSchemaPath+"/"+r,p=!e.opts.allErrors,_="data"+(l||""),E="valid"+a,y=e.opts.$data&&c&&c.$data;y&&(t+=" var schema"+a+" = "+e.util.getData(c.$data,l,e.dataPathArr)+"; ");var w="schema"+a;if(!y)if(c.length<e.opts.loopRequired&&e.schema.properties&&Object.keys(e.schema.properties).length){var R=[],C=c;if(C)for(var A,te=-1,Y=C.length-1;te<Y;){A=C[te+=1];var U=e.schema.properties[A];U&&(e.opts.strictKeywords?typeof U=="object"&&Object.keys(U).length>0||U===!1:e.util.schemaHasRules(U,e.RULES.all))||(R[R.length]=A)}}else var R=c;if(y||R.length){var F=e.errorPath,ee=y||R.length>=e.opts.loopRequired,u=e.opts.ownProperties;if(p)if(t+=" var missing"+a+"; ",ee){y||(t+=" var "+w+" = validate.schema"+f+"; ");var P="i"+a,W="schema"+a+"["+P+"]",z="' + "+W+" + '";e.opts._errorDataPathProperty&&(e.errorPath=e.util.getPathExpr(F,W,e.opts.jsonPointers)),t+=" var "+E+" = true; ",y&&(t+=" if (schema"+a+" === undefined) "+E+" = true; else if (!Array.isArray(schema"+a+")) "+E+" = false; else {"),t+=" for (var "+P+" = 0; "+P+" < "+w+".length; "+P+"++) { "+E+" = "+_+"["+w+"["+P+"]] !== undefined ",u&&(t+=" && Object.prototype.hasOwnProperty.call("+_+", "+w+"["+P+"]) "),t+="; if (!"+E+") break; } ",y&&(t+=" } "),t+=" if (!"+E+") { ";var G=G||[];G.push(t),t="",e.createErrors!==!1?(t+=" { keyword: 'required' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(m)+" , params: { missingProperty: '"+z+"' } ",e.opts.messages!==!1&&(t+=" , message: '",e.opts._errorDataPathProperty?t+="is a required property":t+="should have required property \\'"+z+"\\'",t+="' "),e.opts.verbose&&(t+=" , schema: validate.schema"+f+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+_+" "),t+=" } "):t+=" {} ";var X=t;t=G.pop(),!e.compositeRule&&p?e.async?t+=" throw new ValidationError(["+X+"]); ":t+=" validate.errors = ["+X+"]; return false; ":t+=" var err = "+X+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",t+=" } else { "}else{t+=" if ( ";var oe=R;if(oe)for(var ye,P=-1,Oe=oe.length-1;P<Oe;){ye=oe[P+=1],P&&(t+=" || ");var ze=e.util.getProperty(ye),he=_+ze;t+=" ( ( "+he+" === undefined ",u&&(t+=" || ! Object.prototype.hasOwnProperty.call("+_+", '"+e.util.escapeQuotes(ye)+"') "),t+=") && (missing"+a+" = "+e.util.toQuotedString(e.opts.jsonPointers?ye:ze)+") ) "}t+=") { ";var W="missing"+a,z="' + "+W+" + '";e.opts._errorDataPathProperty&&(e.errorPath=e.opts.jsonPointers?e.util.getPathExpr(F,W,!0):F+" + "+W);var G=G||[];G.push(t),t="",e.createErrors!==!1?(t+=" { keyword: 'required' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(m)+" , params: { missingProperty: '"+z+"' } ",e.opts.messages!==!1&&(t+=" , message: '",e.opts._errorDataPathProperty?t+="is a required property":t+="should have required property \\'"+z+"\\'",t+="' "),e.opts.verbose&&(t+=" , schema: validate.schema"+f+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+_+" "),t+=" } "):t+=" {} ";var X=t;t=G.pop(),!e.compositeRule&&p?e.async?t+=" throw new ValidationError(["+X+"]); ":t+=" validate.errors = ["+X+"]; return false; ":t+=" var err = "+X+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",t+=" } else { "}else if(ee){y||(t+=" var "+w+" = validate.schema"+f+"; ");var P="i"+a,W="schema"+a+"["+P+"]",z="' + "+W+" + '";e.opts._errorDataPathProperty&&(e.errorPath=e.util.getPathExpr(F,W,e.opts.jsonPointers)),y&&(t+=" if ("+w+" && !Array.isArray("+w+")) { var err = ",e.createErrors!==!1?(t+=" { keyword: 'required' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(m)+" , params: { missingProperty: '"+z+"' } ",e.opts.messages!==!1&&(t+=" , message: '",e.opts._errorDataPathProperty?t+="is a required property":t+="should have required property \\'"+z+"\\'",t+="' "),e.opts.verbose&&(t+=" , schema: validate.schema"+f+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+_+" "),t+=" } "):t+=" {} ",t+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; } else if ("+w+" !== undefined) { "),t+=" for (var "+P+" = 0; "+P+" < "+w+".length; "+P+"++) { if ("+_+"["+w+"["+P+"]] === undefined ",u&&(t+=" || ! Object.prototype.hasOwnProperty.call("+_+", "+w+"["+P+"]) "),t+=") { var err = ",e.createErrors!==!1?(t+=" { keyword: 'required' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(m)+" , params: { missingProperty: '"+z+"' } ",e.opts.messages!==!1&&(t+=" , message: '",e.opts._errorDataPathProperty?t+="is a required property":t+="should have required property \\'"+z+"\\'",t+="' "),e.opts.verbose&&(t+=" , schema: validate.schema"+f+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+_+" "),t+=" } "):t+=" {} ",t+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; } } ",y&&(t+=" } ")}else{var re=R;if(re)for(var ye,we=-1,xe=re.length-1;we<xe;){ye=re[we+=1];var ze=e.util.getProperty(ye),z=e.util.escapeQuotes(ye),he=_+ze;e.opts._errorDataPathProperty&&(e.errorPath=e.util.getPath(F,ye,e.opts.jsonPointers)),t+=" if ( "+he+" === undefined ",u&&(t+=" || ! Object.prototype.hasOwnProperty.call("+_+", '"+e.util.escapeQuotes(ye)+"') "),t+=") { var err = ",e.createErrors!==!1?(t+=" { keyword: 'required' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(m)+" , params: { missingProperty: '"+z+"' } ",e.opts.messages!==!1&&(t+=" , message: '",e.opts._errorDataPathProperty?t+="is a required property":t+="should have required property \\'"+z+"\\'",t+="' "),e.opts.verbose&&(t+=" , schema: validate.schema"+f+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+_+" "),t+=" } "):t+=" {} ",t+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; } "}}e.errorPath=F}else p&&(t+=" if (true) {");return t}),Wa}var Ja,bc;function _g(){return bc||(bc=1,Ja=function(e,r,s){var t=" ",a=e.level,l=e.dataLevel,c=e.schema[r],f=e.schemaPath+e.util.getProperty(r),m=e.errSchemaPath+"/"+r,p=!e.opts.allErrors,_="data"+(l||""),E="valid"+a,y=e.opts.$data&&c&&c.$data,w;if(y?(t+=" var schema"+a+" = "+e.util.getData(c.$data,l,e.dataPathArr)+"; ",w="schema"+a):w=c,(c||y)&&e.opts.uniqueItems!==!1){y&&(t+=" var "+E+"; if ("+w+" === false || "+w+" === undefined) "+E+" = true; else if (typeof "+w+" != 'boolean') "+E+" = false; else { "),t+=" var i = "+_+".length , "+E+" = true , j; if (i > 1) { ";var R=e.schema.items&&e.schema.items.type,C=Array.isArray(R);if(!R||R=="object"||R=="array"||C&&(R.indexOf("object")>=0||R.indexOf("array")>=0))t+=" outer: for (;i--;) { for (j = i; j--;) { if (equal("+_+"[i], "+_+"[j])) { "+E+" = false; break outer; } } } ";else{t+=" var itemIndices = {}, item; for (;i--;) { var item = "+_+"[i]; ";var A="checkDataType"+(C?"s":"");t+=" if ("+e.util[A](R,"item",e.opts.strictNumbers,!0)+") continue; ",C&&(t+=` if (typeof item == 'string') item = '"' + item; `),t+=" if (typeof itemIndices[item] == 'number') { "+E+" = false; j = itemIndices[item]; break; } itemIndices[item] = i; } "}t+=" } ",y&&(t+=" } "),t+=" if (!"+E+") { ";var te=te||[];te.push(t),t="",e.createErrors!==!1?(t+=" { keyword: 'uniqueItems' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(m)+" , params: { i: i, j: j } ",e.opts.messages!==!1&&(t+=" , message: 'should NOT have duplicate items (items ## ' + j + ' and ' + i + ' are identical)' "),e.opts.verbose&&(t+=" , schema: ",y?t+="validate.schema"+f:t+=""+c,t+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+_+" "),t+=" } "):t+=" {} ";var Y=t;t=te.pop(),!e.compositeRule&&p?e.async?t+=" throw new ValidationError(["+Y+"]); ":t+=" validate.errors = ["+Y+"]; return false; ":t+=" var err = "+Y+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",t+=" } ",p&&(t+=" else { ")}else p&&(t+=" if (true) { ");return t}),Ja}var Ga,_c;function yg(){return _c||(_c=1,Ga={$ref:tg(),allOf:rg(),anyOf:ig(),$comment:sg(),const:ng(),contains:ag(),dependencies:og(),enum:lg(),format:ug(),if:cg(),items:dg(),maximum:sc(),minimum:sc(),maxItems:ac(),minItems:ac(),maxLength:lc(),minLength:lc(),maxProperties:cc(),minProperties:cc(),multipleOf:hg(),not:fg(),oneOf:pg(),pattern:mg(),properties:gg(),propertyNames:vg(),required:bg(),uniqueItems:_g(),validate:eh()}),Ga}var Xa,yc;function wg(){if(yc)return Xa;yc=1;var i=yg(),e=vs().toHash;return Xa=function(){var s=[{type:"number",rules:[{maximum:["exclusiveMaximum"]},{minimum:["exclusiveMinimum"]},"multipleOf","format"]},{type:"string",rules:["maxLength","minLength","pattern","format"]},{type:"array",rules:["maxItems","minItems","items","contains","uniqueItems"]},{type:"object",rules:["maxProperties","minProperties","required","dependencies","propertyNames",{properties:["additionalProperties","patternProperties"]}]},{rules:["$ref","const","enum","not","anyOf","oneOf","allOf","if"]}],t=["type","$comment"],a=["$schema","$id","id","$data","$async","title","description","default","definitions","examples","readOnly","writeOnly","contentMediaType","contentEncoding","additionalItems","then","else"],l=["number","integer","string","array","object","boolean","null"];return s.all=e(t),s.types=e(l),s.forEach(function(c){c.rules=c.rules.map(function(f){var m;if(typeof f=="object"){var p=Object.keys(f)[0];m=f[p],f=p,m.forEach(function(E){t.push(E),s.all[E]=!0})}t.push(f);var _=s.all[f]={keyword:f,code:i[f],implements:m};return _}),s.all.$comment={keyword:"$comment",code:i.$comment},c.type&&(s.types[c.type]=c)}),s.keywords=e(t.concat(a)),s.custom={},s},Xa}var Ka,wc;function xg(){if(wc)return Ka;wc=1;var i=["multipleOf","maximum","exclusiveMaximum","minimum","exclusiveMinimum","maxLength","minLength","pattern","additionalItems","maxItems","minItems","uniqueItems","maxProperties","minProperties","required","additionalProperties","enum","format","const"];return Ka=function(e,r){for(var s=0;s<r.length;s++){e=JSON.parse(JSON.stringify(e));var t=r[s].split("/"),a=e,l;for(l=1;l<t.length;l++)a=a[t[l]];for(l=0;l<i.length;l++){var c=i[l],f=a[c];f&&(a[c]={anyOf:[f,{$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"}]})}}return e},Ka}var Ya,xc;function Eg(){if(xc)return Ya;xc=1;var i=fl().MissingRef;Ya=e;function e(r,s,t){var a=this;if(typeof this._opts.loadSchema!="function")throw new Error("options.loadSchema should be a function");typeof s=="function"&&(t=s,s=void 0);var l=c(r).then(function(){var m=a._addSchema(r,void 0,s);return m.validate||f(m)});return t&&l.then(function(m){t(null,m)},t),l;function c(m){var p=m.$schema;return p&&!a.getSchema(p)?e.call(a,{$ref:p},!0):Promise.resolve()}function f(m){try{return a._compile(m)}catch(_){if(_ instanceof i)return p(_);throw _}function p(_){var E=_.missingSchema;if(R(E))throw new Error("Schema "+E+" is loaded but "+_.missingRef+" cannot be resolved");var y=a._loadingSchemas[E];return y||(y=a._loadingSchemas[E]=a._opts.loadSchema(E),y.then(w,w)),y.then(function(C){if(!R(E))return c(C).then(function(){R(E)||a.addSchema(C,E,void 0,s)})}).then(function(){return f(m)});function w(){delete a._loadingSchemas[E]}function R(C){return a._refs[C]||a._schemas[C]}}}}return Ya}var Qa,Ec;function Sg(){return Ec||(Ec=1,Qa=function(e,r,s){var t=" ",a=e.level,l=e.dataLevel,c=e.schema[r],f=e.schemaPath+e.util.getProperty(r),m=e.errSchemaPath+"/"+r,p=!e.opts.allErrors,_,E="data"+(l||""),y="valid"+a,w="errs__"+a,R=e.opts.$data&&c&&c.$data,C;R?(t+=" var schema"+a+" = "+e.util.getData(c.$data,l,e.dataPathArr)+"; ",C="schema"+a):C=c;var A=this,te="definition"+a,Y=A.definition,U="",F,ee,u,P,W;if(R&&Y.$data){W="keywordValidate"+a;var z=Y.validateSchema;t+=" var "+te+" = RULES.custom['"+r+"'].definition; var "+W+" = "+te+".validate;"}else{if(P=e.useCustomRule(A,c,e.schema,e),!P)return;C="validate.schema"+f,W=P.code,F=Y.compile,ee=Y.inline,u=Y.macro}var G=W+".errors",X="i"+a,oe="ruleErr"+a,ye=Y.async;if(ye&&!e.async)throw new Error("async keyword in sync schema");if(ee||u||(t+=""+G+" = null;"),t+="var "+w+" = errors;var "+y+";",R&&Y.$data&&(U+="}",t+=" if ("+C+" === undefined) { "+y+" = true; } else { ",z&&(U+="}",t+=" "+y+" = "+te+".validateSchema("+C+"); if ("+y+") { ")),ee)Y.statements?t+=" "+P.validate+" ":t+=" "+y+" = "+P.validate+"; ";else if(u){var Oe=e.util.copy(e),U="";Oe.level++;var ze="valid"+Oe.level;Oe.schema=P.validate,Oe.schemaPath="";var he=e.compositeRule;e.compositeRule=Oe.compositeRule=!0;var re=e.validate(Oe).replace(/validate\.schema/g,W);e.compositeRule=Oe.compositeRule=he,t+=" "+re}else{var we=we||[];we.push(t),t="",t+=" "+W+".call( ",e.opts.passContext?t+="this":t+="self",F||Y.schema===!1?t+=" , "+E+" ":t+=" , "+C+" , "+E+" , validate.schema"+e.schemaPath+" ",t+=" , (dataPath || '')",e.errorPath!='""'&&(t+=" + "+e.errorPath);var xe=l?"data"+(l-1||""):"parentData",Fe=l?e.dataPathArr[l]:"parentDataProperty";t+=" , "+xe+" , "+Fe+" , rootData ) ";var Pe=t;t=we.pop(),Y.errors===!1?(t+=" "+y+" = ",ye&&(t+="await "),t+=""+Pe+"; "):ye?(G="customErrors"+a,t+=" var "+G+" = null; try { "+y+" = await "+Pe+"; } catch (e) { "+y+" = false; if (e instanceof ValidationError) "+G+" = e.errors; else throw e; } "):t+=" "+G+" = null; "+y+" = "+Pe+"; "}if(Y.modifying&&(t+=" if ("+xe+") "+E+" = "+xe+"["+Fe+"];"),t+=""+U,Y.valid)p&&(t+=" if (true) { ");else{t+=" if ( ",Y.valid===void 0?(t+=" !",u?t+=""+ze:t+=""+y):t+=" "+!Y.valid+" ",t+=") { ",_=A.keyword;var we=we||[];we.push(t),t="";var we=we||[];we.push(t),t="",e.createErrors!==!1?(t+=" { keyword: '"+(_||"custom")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(m)+" , params: { keyword: '"+A.keyword+"' } ",e.opts.messages!==!1&&(t+=` , message: 'should pass "`+A.keyword+`" keyword validation' `),e.opts.verbose&&(t+=" , schema: validate.schema"+f+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+E+" "),t+=" } "):t+=" {} ";var Ne=t;t=we.pop(),!e.compositeRule&&p?e.async?t+=" throw new ValidationError(["+Ne+"]); ":t+=" validate.errors = ["+Ne+"]; return false; ":t+=" var err = "+Ne+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ";var Ue=t;t=we.pop(),ee?Y.errors?Y.errors!="full"&&(t+=" for (var "+X+"="+w+"; "+X+"<errors; "+X+"++) { var "+oe+" = vErrors["+X+"]; if ("+oe+".dataPath === undefined) "+oe+".dataPath = (dataPath || '') + "+e.errorPath+"; if ("+oe+".schemaPath === undefined) { "+oe+'.schemaPath = "'+m+'"; } ',e.opts.verbose&&(t+=" "+oe+".schema = "+C+"; "+oe+".data = "+E+"; "),t+=" } "):Y.errors===!1?t+=" "+Ue+" ":(t+=" if ("+w+" == errors) { "+Ue+" } else { for (var "+X+"="+w+"; "+X+"<errors; "+X+"++) { var "+oe+" = vErrors["+X+"]; if ("+oe+".dataPath === undefined) "+oe+".dataPath = (dataPath || '') + "+e.errorPath+"; if ("+oe+".schemaPath === undefined) { "+oe+'.schemaPath = "'+m+'"; } ',e.opts.verbose&&(t+=" "+oe+".schema = "+C+"; "+oe+".data = "+E+"; "),t+=" } } "):u?(t+=" var err = ",e.createErrors!==!1?(t+=" { keyword: '"+(_||"custom")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(m)+" , params: { keyword: '"+A.keyword+"' } ",e.opts.messages!==!1&&(t+=` , message: 'should pass "`+A.keyword+`" keyword validation' `),e.opts.verbose&&(t+=" , schema: validate.schema"+f+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+E+" "),t+=" } "):t+=" {} ",t+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",!e.compositeRule&&p&&(e.async?t+=" throw new ValidationError(vErrors); ":t+=" validate.errors = vErrors; return false; ")):Y.errors===!1?t+=" "+Ue+" ":(t+=" if (Array.isArray("+G+")) { if (vErrors === null) vErrors = "+G+"; else vErrors = vErrors.concat("+G+"); errors = vErrors.length; for (var "+X+"="+w+"; "+X+"<errors; "+X+"++) { var "+oe+" = vErrors["+X+"]; if ("+oe+".dataPath === undefined) "+oe+".dataPath = (dataPath || '') + "+e.errorPath+"; "+oe+'.schemaPath = "'+m+'"; ',e.opts.verbose&&(t+=" "+oe+".schema = "+C+"; "+oe+".data = "+E+"; "),t+=" } } else { "+Ue+" } "),t+=" } ",p&&(t+=" else { ")}return t}),Qa}const Rg="http://json-schema.org/draft-07/schema#",Tg="http://json-schema.org/draft-07/schema#",Cg="Core schema meta-schema",Pg={schemaArray:{type:"array",minItems:1,items:{$ref:"#"}},nonNegativeInteger:{type:"integer",minimum:0},nonNegativeIntegerDefault0:{allOf:[{$ref:"#/definitions/nonNegativeInteger"},{default:0}]},simpleTypes:{enum:["array","boolean","integer","null","number","object","string"]},stringArray:{type:"array",items:{type:"string"},uniqueItems:!0,default:[]}},Ag=["object","boolean"],Ig={$id:{type:"string",format:"uri-reference"},$schema:{type:"string",format:"uri"},$ref:{type:"string",format:"uri-reference"},$comment:{type:"string"},title:{type:"string"},description:{type:"string"},default:!0,readOnly:{type:"boolean",default:!1},examples:{type:"array",items:!0},multipleOf:{type:"number",exclusiveMinimum:0},maximum:{type:"number"},exclusiveMaximum:{type:"number"},minimum:{type:"number"},exclusiveMinimum:{type:"number"},maxLength:{$ref:"#/definitions/nonNegativeInteger"},minLength:{$ref:"#/definitions/nonNegativeIntegerDefault0"},pattern:{type:"string",format:"regex"},additionalItems:{$ref:"#"},items:{anyOf:[{$ref:"#"},{$ref:"#/definitions/schemaArray"}],default:!0},maxItems:{$ref:"#/definitions/nonNegativeInteger"},minItems:{$ref:"#/definitions/nonNegativeIntegerDefault0"},uniqueItems:{type:"boolean",default:!1},contains:{$ref:"#"},maxProperties:{$ref:"#/definitions/nonNegativeInteger"},minProperties:{$ref:"#/definitions/nonNegativeIntegerDefault0"},required:{$ref:"#/definitions/stringArray"},additionalProperties:{$ref:"#"},definitions:{type:"object",additionalProperties:{$ref:"#"},default:{}},properties:{type:"object",additionalProperties:{$ref:"#"},default:{}},patternProperties:{type:"object",additionalProperties:{$ref:"#"},propertyNames:{format:"regex"},default:{}},dependencies:{type:"object",additionalProperties:{anyOf:[{$ref:"#"},{$ref:"#/definitions/stringArray"}]}},propertyNames:{$ref:"#"},const:!0,enum:{type:"array",items:!0,minItems:1,uniqueItems:!0},type:{anyOf:[{$ref:"#/definitions/simpleTypes"},{type:"array",items:{$ref:"#/definitions/simpleTypes"},minItems:1,uniqueItems:!0}]},format:{type:"string"},contentMediaType:{type:"string"},contentEncoding:{type:"string"},if:{$ref:"#"},then:{$ref:"#"},else:{$ref:"#"},allOf:{$ref:"#/definitions/schemaArray"},anyOf:{$ref:"#/definitions/schemaArray"},oneOf:{$ref:"#/definitions/schemaArray"},not:{$ref:"#"}},th={$schema:Rg,$id:Tg,title:Cg,definitions:Pg,type:Ag,properties:Ig,default:!0};var Za,Sc;function Og(){if(Sc)return Za;Sc=1;var i=th;return Za={$id:"https://github.com/ajv-validator/ajv/blob/master/lib/definition_schema.js",definitions:{simpleTypes:i.definitions.simpleTypes},type:"object",dependencies:{schema:["validate"],$data:["validate"],statements:["inline"],valid:{not:{required:["macro"]}}},properties:{type:i.properties.type,schema:{type:"boolean"},statements:{type:"boolean"},dependencies:{type:"array",items:{type:"string"}},metaSchema:{type:"object"},modifying:{type:"boolean"},valid:{type:"boolean"},$data:{type:"boolean"},async:{type:"boolean"},errors:{anyOf:[{type:"boolean"},{const:"full"}]}}},Za}var eo,Rc;function Lg(){if(Rc)return eo;Rc=1;var i=/^[a-z_$][a-z0-9_$-]*$/i,e=Sg(),r=Og();eo={add:s,get:t,remove:a,validate:l};function s(c,f){var m=this.RULES;if(m.keywords[c])throw new Error("Keyword "+c+" is already defined");if(!i.test(c))throw new Error("Keyword "+c+" is not a valid identifier");if(f){this.validateKeyword(f,!0);var p=f.type;if(Array.isArray(p))for(var _=0;_<p.length;_++)y(c,p[_],f);else y(c,p,f);var E=f.metaSchema;E&&(f.$data&&this._opts.$data&&(E={anyOf:[E,{$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"}]}),f.validateSchema=this.compile(E,!0))}m.keywords[c]=m.all[c]=!0;function y(w,R,C){for(var A,te=0;te<m.length;te++){var Y=m[te];if(Y.type==R){A=Y;break}}A||(A={type:R,rules:[]},m.push(A));var U={keyword:w,definition:C,custom:!0,code:e,implements:C.implements};A.rules.push(U),m.custom[w]=U}return this}function t(c){var f=this.RULES.custom[c];return f?f.definition:this.RULES.keywords[c]||!1}function a(c){var f=this.RULES;delete f.keywords[c],delete f.all[c],delete f.custom[c];for(var m=0;m<f.length;m++)for(var p=f[m].rules,_=0;_<p.length;_++)if(p[_].keyword==c){p.splice(_,1);break}return this}function l(c,f){l.errors=null;var m=this._validateKeyword=this._validateKeyword||this.compile(r,!0);if(m(c))return!0;if(l.errors=m.errors,f)throw new Error("custom keyword definition is invalid: "+this.errorsText(m.errors));return!1}return eo}const Dg="http://json-schema.org/draft-07/schema#",Ng="https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#",kg="Meta-schema for $data reference (JSON Schema extension proposal)",jg="object",Mg=["$data"],$g={$data:{type:"string",anyOf:[{format:"relative-json-pointer"},{format:"json-pointer"}]}},qg=!1,Fg={$schema:Dg,$id:Ng,description:kg,type:jg,required:Mg,properties:$g,additionalProperties:qg};var to,Tc;function Vg(){if(Tc)return to;Tc=1;var i=Qm(),e=hl(),r=Zm(),s=Qd(),t=Zd(),a=eg(),l=wg(),c=xg(),f=vs();to=w,w.prototype.validate=R,w.prototype.compile=C,w.prototype.addSchema=A,w.prototype.addMetaSchema=te,w.prototype.validateSchema=Y,w.prototype.getSchema=F,w.prototype.removeSchema=P,w.prototype.addFormat=he,w.prototype.errorsText=ze,w.prototype._addSchema=z,w.prototype._compile=G,w.prototype.compileAsync=Eg();var m=Lg();w.prototype.addKeyword=m.add,w.prototype.getKeyword=m.get,w.prototype.removeKeyword=m.remove,w.prototype.validateKeyword=m.validate;var p=fl();w.ValidationError=p.Validation,w.MissingRefError=p.MissingRef,w.$dataMetaSchema=c;var _="http://json-schema.org/draft-07/schema",E=["removeAdditional","useDefaults","coerceTypes","strictDefaults"],y=["/properties"];function w($){if(!(this instanceof w))return new w($);$=this._opts=f.copy($)||{},Ue(this),this._schemas={},this._refs={},this._fragments={},this._formats=a($.format),this._cache=$.cache||new r,this._loadingSchemas={},this._compilations=[],this.RULES=l(),this._getId=X($),$.loopRequired=$.loopRequired||1/0,$.errorDataPath=="property"&&($._errorDataPathProperty=!0),$.serialize===void 0&&($.serialize=t),this._metaOpts=Ne(this),$.formats&&xe(this),$.keywords&&Fe(this),re(this),typeof $.meta=="object"&&this.addMetaSchema($.meta),$.nullable&&this.addKeyword("nullable",{metaSchema:{type:"boolean"}}),we(this)}function R($,ce){var Ee;if(typeof $=="string"){if(Ee=this.getSchema($),!Ee)throw new Error('no schema with key or ref "'+$+'"')}else{var Ve=this._addSchema($);Ee=Ve.validate||this._compile(Ve)}var me=Ee(ce);return Ee.$async!==!0&&(this.errors=Ee.errors),me}function C($,ce){var Ee=this._addSchema($,void 0,ce);return Ee.validate||this._compile(Ee)}function A($,ce,Ee,Ve){if(Array.isArray($)){for(var me=0;me<$.length;me++)this.addSchema($[me],void 0,Ee,Ve);return this}var Re=this._getId($);if(Re!==void 0&&typeof Re!="string")throw new Error("schema id must be string");return ce=e.normalizeId(ce||Re),Pe(this,ce),this._schemas[ce]=this._addSchema($,Ee,Ve,!0),this}function te($,ce,Ee){return this.addSchema($,ce,Ee,!0),this}function Y($,ce){var Ee=$.$schema;if(Ee!==void 0&&typeof Ee!="string")throw new Error("$schema must be a string");if(Ee=Ee||this._opts.defaultMeta||U(this),!Ee)return this.logger.warn("meta-schema not available"),this.errors=null,!0;var Ve=this.validate(Ee,$);if(!Ve&&ce){var me="schema is invalid: "+this.errorsText();if(this._opts.validateSchema=="log")this.logger.error(me);else throw new Error(me)}return Ve}function U($){var ce=$._opts.meta;return $._opts.defaultMeta=typeof ce=="object"?$._getId(ce)||ce:$.getSchema(_)?_:void 0,$._opts.defaultMeta}function F($){var ce=u(this,$);switch(typeof ce){case"object":return ce.validate||this._compile(ce);case"string":return this.getSchema(ce);case"undefined":return ee(this,$)}}function ee($,ce){var Ee=e.schema.call($,{schema:{}},ce);if(Ee){var Ve=Ee.schema,me=Ee.root,Re=Ee.baseId,He=i.call($,Ve,me,void 0,Re);return $._fragments[ce]=new s({ref:ce,fragment:!0,schema:Ve,root:me,baseId:Re,validate:He}),He}}function u($,ce){return ce=e.normalizeId(ce),$._schemas[ce]||$._refs[ce]||$._fragments[ce]}function P($){if($ instanceof RegExp)return W(this,this._schemas,$),W(this,this._refs,$),this;switch(typeof $){case"undefined":return W(this,this._schemas),W(this,this._refs),this._cache.clear(),this;case"string":var ce=u(this,$);return ce&&this._cache.del(ce.cacheKey),delete this._schemas[$],delete this._refs[$],this;case"object":var Ee=this._opts.serialize,Ve=Ee?Ee($):$;this._cache.del(Ve);var me=this._getId($);me&&(me=e.normalizeId(me),delete this._schemas[me],delete this._refs[me])}return this}function W($,ce,Ee){for(var Ve in ce){var me=ce[Ve];!me.meta&&(!Ee||Ee.test(Ve))&&($._cache.del(me.cacheKey),delete ce[Ve])}}function z($,ce,Ee,Ve){if(typeof $!="object"&&typeof $!="boolean")throw new Error("schema should be object or boolean");var me=this._opts.serialize,Re=me?me($):$,He=this._cache.get(Re);if(He)return He;Ve=Ve||this._opts.addUsedSchema!==!1;var rt=e.normalizeId(this._getId($));rt&&Ve&&Pe(this,rt);var g=this._opts.validateSchema!==!1&&!ce,T;g&&!(T=rt&&rt==e.normalizeId($.$schema))&&this.validateSchema($,!0);var O=e.ids.call(this,$),V=new s({id:rt,schema:$,localRefs:O,cacheKey:Re,meta:Ee});return rt[0]!="#"&&Ve&&(this._refs[rt]=V),this._cache.put(Re,V),g&&T&&this.validateSchema($,!0),V}function G($,ce){if($.compiling)return $.validate=me,me.schema=$.schema,me.errors=null,me.root=ce||me,$.schema.$async===!0&&(me.$async=!0),me;$.compiling=!0;var Ee;$.meta&&(Ee=this._opts,this._opts=this._metaOpts);var Ve;try{Ve=i.call(this,$.schema,ce,$.localRefs)}catch(Re){throw delete $.validate,Re}finally{$.compiling=!1,$.meta&&(this._opts=Ee)}return $.validate=Ve,$.refs=Ve.refs,$.refVal=Ve.refVal,$.root=Ve.root,Ve;function me(){var Re=$.validate,He=Re.apply(this,arguments);return me.errors=Re.errors,He}}function X($){switch($.schemaId){case"auto":return Oe;case"id":return oe;default:return ye}}function oe($){return $.$id&&this.logger.warn("schema $id ignored",$.$id),$.id}function ye($){return $.id&&this.logger.warn("schema id ignored",$.id),$.$id}function Oe($){if($.$id&&$.id&&$.$id!=$.id)throw new Error("schema $id is different from id");return $.$id||$.id}function ze($,ce){if($=$||this.errors,!$)return"No errors";ce=ce||{};for(var Ee=ce.separator===void 0?", ":ce.separator,Ve=ce.dataVar===void 0?"data":ce.dataVar,me="",Re=0;Re<$.length;Re++){var He=$[Re];He&&(me+=Ve+He.dataPath+" "+He.message+Ee)}return me.slice(0,-Ee.length)}function he($,ce){return typeof ce=="string"&&(ce=new RegExp(ce)),this._formats[$]=ce,this}function re($){var ce;if($._opts.$data&&(ce=Fg,$.addMetaSchema(ce,ce.$id,!0)),$._opts.meta!==!1){var Ee=th;$._opts.$data&&(Ee=c(Ee,y)),$.addMetaSchema(Ee,_,!0),$._refs["http://json-schema.org/schema"]=_}}function we($){var ce=$._opts.schemas;if(ce)if(Array.isArray(ce))$.addSchema(ce);else for(var Ee in ce)$.addSchema(ce[Ee],Ee)}function xe($){for(var ce in $._opts.formats){var Ee=$._opts.formats[ce];$.addFormat(ce,Ee)}}function Fe($){for(var ce in $._opts.keywords){var Ee=$._opts.keywords[ce];$.addKeyword(ce,Ee)}}function Pe($,ce){if($._schemas[ce]||$._refs[ce])throw new Error('schema with key or id "'+ce+'" already exists')}function Ne($){for(var ce=f.copy($._opts),Ee=0;Ee<E.length;Ee++)delete ce[E[Ee]];return ce}function Ue($){var ce=$._opts.logger;if(ce===!1)$.logger={log:qe,warn:qe,error:qe};else{if(ce===void 0&&(ce=console),!(typeof ce=="object"&&ce.log&&ce.warn&&ce.error))throw new Error("logger must implement log, warn and error methods");$.logger=ce}}function qe(){}return to}var Ug=Vg();const Bg=Ys(Ug),rh="http://json-schema.org/draft-07/schema#",ih="Jupyter Interactive Widget State JSON schema.",sh="object",nh={version_major:{description:"Format version (major)",type:"number",minimum:2,maximum:2},version_minor:{description:"Format version (minor)",type:"number",minimum:0,maximum:0},state:{description:"Model State for All Widget Models - keys are model ids, values are model state",type:"object",additionalProperties:{type:"object",properties:{model_name:{description:"Name of the JavaScript class holding the model implementation",type:"string"},model_module:{description:"Name of the JavaScript module holding the model implementation",type:"string"},model_module_version:{description:"Semver range for the JavaScript module holding the model implementation",type:"string"},state:{description:"Serialized state of the model",type:"object"},buffers:{description:"Binary buffers in the state",type:"array",items:{type:"object",properties:{path:{description:"A path for a binary buffer value.",type:"array",items:{description:"An object key or array index",type:["string","number"]}},data:{description:"A binary buffer encoded as specified in the 'encoding' property",type:"string"},encoding:{description:"The encoding of the buffer data",type:"string",oneOf:[{const:"hex",description:"Base 16 encoding, as specified in RFC 4648, section 8 (https://tools.ietf.org/html/rfc4648#section-8)"},{const:"base64",description:"Base 64 encoding, as specified in RFC 4648, section 4 (https://tools.ietf.org/html/rfc4648#section-4)"}]}},required:["path","data","encoding"]}}},required:["model_name","model_module","state"]}}},ah=["version_major","version_minor","state"],zg={$schema:rh,description:ih,type:sh,properties:nh,required:ah},Hg=Object.freeze(Object.defineProperty({__proto__:null,$schema:rh,default:zg,description:ih,properties:nh,required:ah,type:sh},Symbol.toStringTag,{value:"Module"})),oh="http://json-schema.org/draft-07/schema#",lh="Jupyter Interactive Widget View JSON schema.",uh="object",ch={version_major:{description:"Format version (major)",type:"number",minimum:2,maximum:2},version_minor:{description:"Format version (minor)",type:"number"},model_id:{description:"Unique identifier of the widget model to be displayed",type:"string"}},dh=["model_id"],Wg={$schema:oh,description:lh,type:uh,properties:ch,required:dh},Jg=Object.freeze(Object.defineProperty({__proto__:null,$schema:oh,default:Wg,description:lh,properties:ch,required:dh,type:uh},Symbol.toStringTag,{value:"Module"}));__webpack_public_path__=window.__jupyter_widgets_assets_path__||"";const hh=new Bg({allowUnionTypes:!0}),Cc=hh.compile(Hg),Pc=hh.compile(Jg);async function Gg(i,e=document.documentElement){const r=e.querySelectorAll('script[type="application/vnd.jupyter.widget-state+json"]');await Promise.all(Array.from(r).map(async s=>Xg(e,JSON.parse(s.innerHTML),i)))}async function Xg(i,e,r){if(!Cc(e))throw new Error(`Model state has errors: ${Cc.errors}`);const t=r(),a=await t.set_state(e),l=i.querySelectorAll('script[type="application/vnd.jupyter.widget-view+json"]');await Promise.all(Array.from(l).map(async c=>{const f=JSON.parse(c.innerHTML);if(!Pc(f))throw new Error(`View state has errors: ${Pc.errors}`);const p=f.model_id,_=a.find(E=>E.model_id==p);if(_!==void 0&&c.parentElement!==null){const E=c.previousElementSibling;E&&E.tagName==="img"&&E.classList.contains("jupyter-widget")&&c.parentElement.removeChild(E);const y=document.createElement("div");y.className="widget-subarea",c.parentElement.insertBefore(y,c);const w=await t.create_view(_);t.display_view(w,y)}}))}let qs="https://cdn.jsdelivr.net/npm/",el=!0;const Kg=document.getElementsByTagName("script");Array.prototype.forEach.call(Kg,i=>{qs=i.getAttribute("data-jupyter-widgets-cdn")||qs,el=el&&!!i.getAttribute("data-jupyter-widgets-cdn-only")});const tl=function(i){return new Promise((e,r)=>{const s=window.requirejs;s===void 0?r("Requirejs is needed, please ensure it is loaded on the page."):s(i,e,r)})};function Yg(i,e){let r=i,s="index",t=i.indexOf("/");return t!=-1&&i[0]=="@"&&(t=i.indexOf("/",t+1)),t!=-1&&(s=i.substr(t+1),r=i.substr(0,t)),r==="@widgetti/jupyter-react"&&(e=e.replace("0.4.2","0.4.1")),`${qs}${r}@${e}/dist/${s}`}function Qg(i,e){const r=window.requirejs;if(r===void 0)throw new Error("Requirejs is needed, please ensure it is loaded on the page.");function s(){const t={paths:{}};return t.paths[i]=Yg(i,e),r.config(t),tl([`${i}`])}return el?(console.log(`Loading from ${qs} for ${i}@${e}`),s()):tl([`${i}`]).catch(t=>{const a=t.requireModules&&t.requireModules[0];if(a)return r.undef(a),console.log(`Falling back to ${qs} for ${i}@${e}`),s()})}function F0(i=document.documentElement,e=Qg){tl(["./classic/htmlmanager"]).then(r=>{Gg(()=>new r.HTMLManager({loader:e}),i)})}const V0="application/vnd.jupyter.widget-view+json",U0="application/vnd.jupyter.widget-state+json";var gn={exports:{}},ro,Ac;function Qs(){if(Ac)return ro;Ac=1;const i="2.0.0",e=256,r=Number.MAX_SAFE_INTEGER||9007199254740991,s=16,t=e-6;return ro={MAX_LENGTH:e,MAX_SAFE_COMPONENT_LENGTH:s,MAX_SAFE_BUILD_LENGTH:t,MAX_SAFE_INTEGER:r,RELEASE_TYPES:["major","premajor","minor","preminor","patch","prepatch","prerelease"],SEMVER_SPEC_VERSION:i,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2},ro}var io,Ic;function $n(){if(Ic)return io;Ic=1;var i={};return io=typeof process=="object"&&i&&i.NODE_DEBUG&&/\bsemver\b/i.test(i.NODE_DEBUG)?(...r)=>console.error("SEMVER",...r):()=>{},io}var Oc;function Zs(){return Oc||(Oc=1,(function(i,e){const{MAX_SAFE_COMPONENT_LENGTH:r,MAX_SAFE_BUILD_LENGTH:s,MAX_LENGTH:t}=Qs(),a=$n();e=i.exports={};const l=e.re=[],c=e.safeRe=[],f=e.src=[],m=e.safeSrc=[],p=e.t={};let _=0;const E="[a-zA-Z0-9-]",y=[["\\s",1],["\\d",t],[E,s]],w=C=>{for(const[A,te]of y)C=C.split(`${A}*`).join(`${A}{0,${te}}`).split(`${A}+`).join(`${A}{1,${te}}`);return C},R=(C,A,te)=>{const Y=w(A),U=_++;a(C,U,A),p[C]=U,f[U]=A,m[U]=Y,l[U]=new RegExp(A,te?"g":void 0),c[U]=new RegExp(Y,te?"g":void 0)};R("NUMERICIDENTIFIER","0|[1-9]\\d*"),R("NUMERICIDENTIFIERLOOSE","\\d+"),R("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${E}*`),R("MAINVERSION",`(${f[p.NUMERICIDENTIFIER]})\\.(${f[p.NUMERICIDENTIFIER]})\\.(${f[p.NUMERICIDENTIFIER]})`),R("MAINVERSIONLOOSE",`(${f[p.NUMERICIDENTIFIERLOOSE]})\\.(${f[p.NUMERICIDENTIFIERLOOSE]})\\.(${f[p.NUMERICIDENTIFIERLOOSE]})`),R("PRERELEASEIDENTIFIER",`(?:${f[p.NONNUMERICIDENTIFIER]}|${f[p.NUMERICIDENTIFIER]})`),R("PRERELEASEIDENTIFIERLOOSE",`(?:${f[p.NONNUMERICIDENTIFIER]}|${f[p.NUMERICIDENTIFIERLOOSE]})`),R("PRERELEASE",`(?:-(${f[p.PRERELEASEIDENTIFIER]}(?:\\.${f[p.PRERELEASEIDENTIFIER]})*))`),R("PRERELEASELOOSE",`(?:-?(${f[p.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${f[p.PRERELEASEIDENTIFIERLOOSE]})*))`),R("BUILDIDENTIFIER",`${E}+`),R("BUILD",`(?:\\+(${f[p.BUILDIDENTIFIER]}(?:\\.${f[p.BUILDIDENTIFIER]})*))`),R("FULLPLAIN",`v?${f[p.MAINVERSION]}${f[p.PRERELEASE]}?${f[p.BUILD]}?`),R("FULL",`^${f[p.FULLPLAIN]}$`),R("LOOSEPLAIN",`[v=\\s]*${f[p.MAINVERSIONLOOSE]}${f[p.PRERELEASELOOSE]}?${f[p.BUILD]}?`),R("LOOSE",`^${f[p.LOOSEPLAIN]}$`),R("GTLT","((?:<|>)?=?)"),R("XRANGEIDENTIFIERLOOSE",`${f[p.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),R("XRANGEIDENTIFIER",`${f[p.NUMERICIDENTIFIER]}|x|X|\\*`),R("XRANGEPLAIN",`[v=\\s]*(${f[p.XRANGEIDENTIFIER]})(?:\\.(${f[p.XRANGEIDENTIFIER]})(?:\\.(${f[p.XRANGEIDENTIFIER]})(?:${f[p.PRERELEASE]})?${f[p.BUILD]}?)?)?`),R("XRANGEPLAINLOOSE",`[v=\\s]*(${f[p.XRANGEIDENTIFIERLOOSE]})(?:\\.(${f[p.XRANGEIDENTIFIERLOOSE]})(?:\\.(${f[p.XRANGEIDENTIFIERLOOSE]})(?:${f[p.PRERELEASELOOSE]})?${f[p.BUILD]}?)?)?`),R("XRANGE",`^${f[p.GTLT]}\\s*${f[p.XRANGEPLAIN]}$`),R("XRANGELOOSE",`^${f[p.GTLT]}\\s*${f[p.XRANGEPLAINLOOSE]}$`),R("COERCEPLAIN",`(^|[^\\d])(\\d{1,${r}})(?:\\.(\\d{1,${r}}))?(?:\\.(\\d{1,${r}}))?`),R("COERCE",`${f[p.COERCEPLAIN]}(?:$|[^\\d])`),R("COERCEFULL",f[p.COERCEPLAIN]+`(?:${f[p.PRERELEASE]})?(?:${f[p.BUILD]})?(?:$|[^\\d])`),R("COERCERTL",f[p.COERCE],!0),R("COERCERTLFULL",f[p.COERCEFULL],!0),R("LONETILDE","(?:~>?)"),R("TILDETRIM",`(\\s*)${f[p.LONETILDE]}\\s+`,!0),e.tildeTrimReplace="$1~",R("TILDE",`^${f[p.LONETILDE]}${f[p.XRANGEPLAIN]}$`),R("TILDELOOSE",`^${f[p.LONETILDE]}${f[p.XRANGEPLAINLOOSE]}$`),R("LONECARET","(?:\\^)"),R("CARETTRIM",`(\\s*)${f[p.LONECARET]}\\s+`,!0),e.caretTrimReplace="$1^",R("CARET",`^${f[p.LONECARET]}${f[p.XRANGEPLAIN]}$`),R("CARETLOOSE",`^${f[p.LONECARET]}${f[p.XRANGEPLAINLOOSE]}$`),R("COMPARATORLOOSE",`^${f[p.GTLT]}\\s*(${f[p.LOOSEPLAIN]})$|^$`),R("COMPARATOR",`^${f[p.GTLT]}\\s*(${f[p.FULLPLAIN]})$|^$`),R("COMPARATORTRIM",`(\\s*)${f[p.GTLT]}\\s*(${f[p.LOOSEPLAIN]}|${f[p.XRANGEPLAIN]})`,!0),e.comparatorTrimReplace="$1$2$3",R("HYPHENRANGE",`^\\s*(${f[p.XRANGEPLAIN]})\\s+-\\s+(${f[p.XRANGEPLAIN]})\\s*$`),R("HYPHENRANGELOOSE",`^\\s*(${f[p.XRANGEPLAINLOOSE]})\\s+-\\s+(${f[p.XRANGEPLAINLOOSE]})\\s*$`),R("STAR","(<|>)?=?\\s*\\*"),R("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$"),R("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")})(gn,gn.exports)),gn.exports}var so,Lc;function pl(){if(Lc)return so;Lc=1;const i=Object.freeze({loose:!0}),e=Object.freeze({});return so=s=>s?typeof s!="object"?i:s:e,so}var no,Dc;function fh(){if(Dc)return no;Dc=1;const i=/^[0-9]+$/,e=(s,t)=>{if(typeof s=="number"&&typeof t=="number")return s===t?0:s<t?-1:1;const a=i.test(s),l=i.test(t);return a&&l&&(s=+s,t=+t),s===t?0:a&&!l?-1:l&&!a?1:s<t?-1:1};return no={compareIdentifiers:e,rcompareIdentifiers:(s,t)=>e(t,s)},no}var ao,Nc;function mr(){if(Nc)return ao;Nc=1;const i=$n(),{MAX_LENGTH:e,MAX_SAFE_INTEGER:r}=Qs(),{safeRe:s,t}=Zs(),a=pl(),{compareIdentifiers:l}=fh(),c=(m,p)=>{const _=p.split(".");if(_.length>m.length)return!1;for(let E=0;E<_.length;E++)if(l(m[E],_[E])!==0)return!1;return!0};class f{constructor(p,_){if(_=a(_),p instanceof f){if(p.loose===!!_.loose&&p.includePrerelease===!!_.includePrerelease)return p;p=p.version}else if(typeof p!="string")throw new TypeError(`Invalid version. Must be a string. Got type "${typeof p}".`);if(p.length>e)throw new TypeError(`version is longer than ${e} characters`);i("SemVer",p,_),this.options=_,this.loose=!!_.loose,this.includePrerelease=!!_.includePrerelease;const E=p.trim().match(_.loose?s[t.LOOSE]:s[t.FULL]);if(!E)throw new TypeError(`Invalid Version: ${p}`);if(this.raw=p,this.major=+E[1],this.minor=+E[2],this.patch=+E[3],this.major>r||this.major<0)throw new TypeError("Invalid major version");if(this.minor>r||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>r||this.patch<0)throw new TypeError("Invalid patch version");E[4]?this.prerelease=E[4].split(".").map(y=>{if(/^[0-9]+$/.test(y)){const w=+y;if(w>=0&&w<r)return w}return y}):this.prerelease=[],this.build=E[5]?E[5].split("."):[],this.format()}format(){return this.version=`${this.major}.${this.minor}.${this.patch}`,this.prerelease.length&&(this.version+=`-${this.prerelease.join(".")}`),this.version}toString(){return this.version}compare(p){if(i("SemVer.compare",this.version,this.options,p),!(p instanceof f)){if(typeof p=="string"&&p===this.version)return 0;p=new f(p,this.options)}return p.version===this.version?0:this.compareMain(p)||this.comparePre(p)}compareMain(p){return p instanceof f||(p=new f(p,this.options)),this.major<p.major?-1:this.major>p.major?1:this.minor<p.minor?-1:this.minor>p.minor?1:this.patch<p.patch?-1:this.patch>p.patch?1:0}comparePre(p){if(p instanceof f||(p=new f(p,this.options)),this.prerelease.length&&!p.prerelease.length)return-1;if(!this.prerelease.length&&p.prerelease.length)return 1;if(!this.prerelease.length&&!p.prerelease.length)return 0;let _=0;do{const E=this.prerelease[_],y=p.prerelease[_];if(i("prerelease compare",_,E,y),E===void 0&&y===void 0)return 0;if(y===void 0)return 1;if(E===void 0)return-1;if(E===y)continue;return l(E,y)}while(++_)}compareBuild(p){p instanceof f||(p=new f(p,this.options));let _=0;do{const E=this.build[_],y=p.build[_];if(i("build compare",_,E,y),E===void 0&&y===void 0)return 0;if(y===void 0)return 1;if(E===void 0)return-1;if(E===y)continue;return l(E,y)}while(++_)}inc(p,_,E){if(p.startsWith("pre")){if(!_&&E===!1)throw new Error("invalid increment argument: identifier is empty");if(_){const y=`-${_}`.match(this.options.loose?s[t.PRERELEASELOOSE]:s[t.PRERELEASE]);if(!y||y[1]!==_)throw new Error(`invalid identifier: ${_}`)}}switch(p){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",_,E);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",_,E);break;case"prepatch":this.prerelease.length=0,this.inc("patch",_,E),this.inc("pre",_,E);break;case"prerelease":this.prerelease.length===0&&this.inc("patch",_,E),this.inc("pre",_,E);break;case"release":if(this.prerelease.length===0)throw new Error(`version ${this.raw} is not a prerelease`);this.prerelease.length=0;break;case"major":(this.minor!==0||this.patch!==0||this.prerelease.length===0)&&this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":(this.patch!==0||this.prerelease.length===0)&&this.minor++,this.patch=0,this.prerelease=[];break;case"patch":this.prerelease.length===0&&this.patch++,this.prerelease=[];break;case"pre":{const y=Number(E)?1:0;if(this.prerelease.length===0)this.prerelease=[y];else{let w=this.prerelease.length;for(;--w>=0;)typeof this.prerelease[w]=="number"&&(this.prerelease[w]++,w=-2);if(w===-1){if(_===this.prerelease.join(".")&&E===!1)throw new Error("invalid increment argument: identifier already exists");this.prerelease.push(y)}}if(_){let w=[_,y];if(E===!1&&(w=[_]),c(this.prerelease,_)){const R=this.prerelease[_.split(".").length];isNaN(R)&&(this.prerelease=w)}else this.prerelease=w}break}default:throw new Error(`invalid increment argument: ${p}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(".")}`),this}}return ao=f,ao}var oo,kc;function Hi(){if(kc)return oo;kc=1;const i=mr();return oo=(r,s,t=!1)=>{if(r instanceof i)return r;try{return new i(r,s)}catch(a){if(!t)return null;throw a}},oo}var lo,jc;function Zg(){if(jc)return lo;jc=1;const i=Hi();return lo=(r,s)=>{const t=i(r,s);return t?t.version:null},lo}var uo,Mc;function ev(){if(Mc)return uo;Mc=1;const i=Hi();return uo=(r,s)=>{const t=i(r.trim().replace(/^[=v]+/,""),s);return t?t.version:null},uo}var co,$c;function tv(){if($c)return co;$c=1;const i=mr();return co=(r,s,t,a,l)=>{typeof t=="string"&&(l=a,a=t,t=void 0);try{return new i(r instanceof i?r.version:r,t).inc(s,a,l).version}catch{return null}},co}var ho,qc;function rv(){if(qc)return ho;qc=1;const i=Hi();return ho=(r,s)=>{const t=i(r,null,!0),a=i(s,null,!0),l=t.compare(a);if(l===0)return null;const c=l>0,f=c?t:a,m=c?a:t,p=!!f.prerelease.length;if(!!m.prerelease.length&&!p){if(!m.patch&&!m.minor)return"major";if(m.compareMain(f)===0)return m.minor&&!m.patch?"minor":"patch"}const E=p?"pre":"";return t.major!==a.major?E+"major":t.minor!==a.minor?E+"minor":t.patch!==a.patch?E+"patch":"prerelease"},ho}var fo,Fc;function iv(){if(Fc)return fo;Fc=1;const i=mr();return fo=(r,s)=>new i(r,s).major,fo}var po,Vc;function sv(){if(Vc)return po;Vc=1;const i=mr();return po=(r,s)=>new i(r,s).minor,po}var mo,Uc;function nv(){if(Uc)return mo;Uc=1;const i=mr();return mo=(r,s)=>new i(r,s).patch,mo}var go,Bc;function av(){if(Bc)return go;Bc=1;const i=Hi();return go=(r,s)=>{const t=i(r,s);return t&&t.prerelease.length?t.prerelease:null},go}var vo,zc;function Yr(){if(zc)return vo;zc=1;const i=mr();return vo=(r,s,t)=>new i(r,t).compare(new i(s,t)),vo}var bo,Hc;function ov(){if(Hc)return bo;Hc=1;const i=Yr();return bo=(r,s,t)=>i(s,r,t),bo}var _o,Wc;function lv(){if(Wc)return _o;Wc=1;const i=Yr();return _o=(r,s)=>i(r,s,!0),_o}var yo,Jc;function ml(){if(Jc)return yo;Jc=1;const i=mr();return yo=(r,s,t)=>{const a=new i(r,t),l=new i(s,t);return a.compare(l)||a.compareBuild(l)},yo}var wo,Gc;function uv(){if(Gc)return wo;Gc=1;const i=ml();return wo=(r,s)=>r.sort((t,a)=>i(t,a,s)),wo}var xo,Xc;function cv(){if(Xc)return xo;Xc=1;const i=ml();return xo=(r,s)=>r.sort((t,a)=>i(a,t,s)),xo}var Eo,Kc;function qn(){if(Kc)return Eo;Kc=1;const i=Yr();return Eo=(r,s,t)=>i(r,s,t)>0,Eo}var So,Yc;function gl(){if(Yc)return So;Yc=1;const i=Yr();return So=(r,s,t)=>i(r,s,t)<0,So}var Ro,Qc;function ph(){if(Qc)return Ro;Qc=1;const i=Yr();return Ro=(r,s,t)=>i(r,s,t)===0,Ro}var To,Zc;function mh(){if(Zc)return To;Zc=1;const i=Yr();return To=(r,s,t)=>i(r,s,t)!==0,To}var Co,ed;function vl(){if(ed)return Co;ed=1;const i=Yr();return Co=(r,s,t)=>i(r,s,t)>=0,Co}var Po,td;function bl(){if(td)return Po;td=1;const i=Yr();return Po=(r,s,t)=>i(r,s,t)<=0,Po}var Ao,rd;function gh(){if(rd)return Ao;rd=1;const i=ph(),e=mh(),r=qn(),s=vl(),t=gl(),a=bl();return Ao=(c,f,m,p)=>{switch(f){case"===":return typeof c=="object"&&(c=c.version),typeof m=="object"&&(m=m.version),c===m;case"!==":return typeof c=="object"&&(c=c.version),typeof m=="object"&&(m=m.version),c!==m;case"":case"=":case"==":return i(c,m,p);case"!=":return e(c,m,p);case">":return r(c,m,p);case">=":return s(c,m,p);case"<":return t(c,m,p);case"<=":return a(c,m,p);default:throw new TypeError(`Invalid operator: ${f}`)}},Ao}var Io,id;function dv(){if(id)return Io;id=1;const i=mr(),e=Hi(),{safeRe:r,t:s}=Zs();return Io=(a,l)=>{if(a instanceof i)return a;if(typeof a=="number"&&(a=String(a)),typeof a!="string")return null;l=l||{};let c=null;if(!l.rtl)c=a.match(l.includePrerelease?r[s.COERCEFULL]:r[s.COERCE]);else{const y=l.includePrerelease?r[s.COERCERTLFULL]:r[s.COERCERTL];let w;for(;(w=y.exec(a))&&(!c||c.index+c[0].length!==a.length);)(!c||w.index+w[0].length!==c.index+c[0].length)&&(c=w),y.lastIndex=w.index+w[1].length+w[2].length;y.lastIndex=-1}if(c===null)return null;const f=c[2],m=c[3]||"0",p=c[4]||"0",_=l.includePrerelease&&c[5]?`-${c[5]}`:"",E=l.includePrerelease&&c[6]?`+${c[6]}`:"";return e(`${f}.${m}.${p}${_}${E}`,l)},Io}var Oo,sd;function hv(){if(sd)return Oo;sd=1;const i=Hi(),e=Qs(),r=mr(),s=(c,f,m)=>{if(!e.RELEASE_TYPES.includes(f))return null;const p=t(c,m);return p&&a(p,f)},t=(c,f)=>{const m=c instanceof r?c.version:c;return i(m,f)},a=(c,f)=>{if(l(f))return c.version;switch(c.prerelease=[],f){case"major":c.minor=0,c.patch=0;break;case"minor":c.patch=0;break}return c.format()},l=c=>c.startsWith("pre");return Oo=s,Oo}var Lo,nd;function fv(){if(nd)return Lo;nd=1;class i{constructor(){this.max=1e3,this.map=new Map}get(r){const s=this.map.get(r);if(s!==void 0)return this.map.delete(r),this.map.set(r,s),s}delete(r){return this.map.delete(r)}set(r,s){if(!this.delete(r)&&s!==void 0){if(this.map.size>=this.max){const a=this.map.keys().next().value;this.delete(a)}this.map.set(r,s)}return this}}return Lo=i,Lo}var Do,ad;function Qr(){if(ad)return Do;ad=1;const i=/\s+/g;class e{constructor(re,we){if(we=t(we),re instanceof e)return re.loose===!!we.loose&&re.includePrerelease===!!we.includePrerelease?re:new e(re.raw,we);if(re instanceof a)return this.raw=re.value,this.set=[[re]],this.formatted=void 0,this;if(this.options=we,this.loose=!!we.loose,this.includePrerelease=!!we.includePrerelease,this.raw=re.trim().replace(i," "),this.set=this.raw.split("||").map(xe=>this.parseRange(xe.trim())).filter(xe=>xe.length),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${this.raw}`);if(this.set.length>1){const xe=this.set[0];if(this.set=this.set.filter(Fe=>!A(Fe[0])),this.set.length===0)this.set=[xe];else if(this.set.length>1){for(const Fe of this.set)if(Fe.length===1&&te(Fe[0])){this.set=[Fe];break}}}this.formatted=void 0}get range(){if(this.formatted===void 0){this.formatted="";for(let re=0;re<this.set.length;re++){re>0&&(this.formatted+="||");const we=this.set[re];for(let xe=0;xe<we.length;xe++)xe>0&&(this.formatted+=" "),this.formatted+=we[xe].toString().trim()}}return this.formatted}format(){return this.range}toString(){return this.range}parseRange(re){re=re.replace(C,"");const xe=((this.options.includePrerelease&&w)|(this.options.loose&&R))+":"+re,Fe=s.get(xe);if(Fe)return Fe;const Pe=this.options.loose,Ne=Pe?f[p.HYPHENRANGELOOSE]:f[p.HYPHENRANGE];re=re.replace(Ne,Oe(this.options.includePrerelease)),l("hyphen replace",re),re=re.replace(f[p.COMPARATORTRIM],_),l("comparator trim",re),re=re.replace(f[p.TILDETRIM],E),l("tilde trim",re),re=re.replace(f[p.CARETTRIM],y),l("caret trim",re);let Ue=re.split(" ").map(Ee=>U(Ee,this.options)).join(" ").split(/\s+/).map(Ee=>ye(Ee,this.options));Pe&&(Ue=Ue.filter(Ee=>(l("loose invalid filter",Ee,this.options),!!Ee.match(f[p.COMPARATORLOOSE])))),l("range list",Ue);const qe=new Map,$=Ue.map(Ee=>new a(Ee,this.options));for(const Ee of $){if(A(Ee))return[Ee];qe.set(Ee.value,Ee)}qe.size>1&&qe.has("")&&qe.delete("");const ce=[...qe.values()];return s.set(xe,ce),ce}intersects(re,we){if(!(re instanceof e))throw new TypeError("a Range is required");return this.set.some(xe=>Y(xe,we)&&re.set.some(Fe=>Y(Fe,we)&&xe.every(Pe=>Fe.every(Ne=>Pe.intersects(Ne,we)))))}test(re){if(!re)return!1;if(typeof re=="string")try{re=new c(re,this.options)}catch{return!1}for(let we=0;we<this.set.length;we++)if(ze(this.set[we],re,this.options))return!0;return!1}}Do=e;const r=fv(),s=new r,t=pl(),a=Fn(),l=$n(),c=mr(),{safeRe:f,src:m,t:p,comparatorTrimReplace:_,tildeTrimReplace:E,caretTrimReplace:y}=Zs(),{FLAG_INCLUDE_PRERELEASE:w,FLAG_LOOSE:R}=Qs(),C=new RegExp(m[p.BUILD],"g"),A=he=>he.value==="<0.0.0-0",te=he=>he.value==="",Y=(he,re)=>{let we=!0;const xe=he.slice();let Fe=xe.pop();for(;we&&xe.length;)we=xe.every(Pe=>Fe.intersects(Pe,re)),Fe=xe.pop();return we},U=(he,re)=>(he=he.replace(f[p.BUILD],""),l("comp",he,re),he=W(he,re),l("caret",he),he=u(he,re),l("tildes",he),he=G(he,re),l("xrange",he),he=oe(he,re),l("stars",he),he),F=he=>!he||he.toLowerCase()==="x"||he==="*",ee=(he,re,we)=>F(he)&&!F(re)||F(re)&&we&&!F(we),u=(he,re)=>he.trim().split(/\s+/).map(we=>P(we,re)).join(" "),P=(he,re)=>{const we=re.loose?f[p.TILDELOOSE]:f[p.TILDE],xe=re.includePrerelease?"-0":"";return he.replace(we,(Fe,Pe,Ne,Ue,qe)=>{l("tilde",he,Fe,Pe,Ne,Ue,qe);let $;return F(Pe)?$="":F(Ne)?$=`>=${Pe}.0.0${xe} <${+Pe+1}.0.0-0`:F(Ue)?$=`>=${Pe}.${Ne}.0${xe} <${Pe}.${+Ne+1}.0-0`:qe?(l("replaceTilde pr",qe),$=`>=${Pe}.${Ne}.${Ue}-${qe} <${Pe}.${+Ne+1}.0-0`):$=`>=${Pe}.${Ne}.${Ue} <${Pe}.${+Ne+1}.0-0`,l("tilde return",$),$})},W=(he,re)=>he.trim().split(/\s+/).map(we=>z(we,re)).join(" "),z=(he,re)=>{l("caret",he,re);const we=re.loose?f[p.CARETLOOSE]:f[p.CARET],xe=re.includePrerelease?"-0":"";return he.replace(we,(Fe,Pe,Ne,Ue,qe)=>{l("caret",he,Fe,Pe,Ne,Ue,qe);let $;return F(Pe)?$="":F(Ne)?$=`>=${Pe}.0.0${xe} <${+Pe+1}.0.0-0`:F(Ue)?Pe==="0"?$=`>=${Pe}.${Ne}.0${xe} <${Pe}.${+Ne+1}.0-0`:$=`>=${Pe}.${Ne}.0${xe} <${+Pe+1}.0.0-0`:qe?(l("replaceCaret pr",qe),Pe==="0"?Ne==="0"?$=`>=${Pe}.${Ne}.${Ue}-${qe} <${Pe}.${Ne}.${+Ue+1}-0`:$=`>=${Pe}.${Ne}.${Ue}-${qe} <${Pe}.${+Ne+1}.0-0`:$=`>=${Pe}.${Ne}.${Ue}-${qe} <${+Pe+1}.0.0-0`):(l("no pr"),Pe==="0"?Ne==="0"?$=`>=${Pe}.${Ne}.${Ue} <${Pe}.${Ne}.${+Ue+1}-0`:$=`>=${Pe}.${Ne}.${Ue} <${Pe}.${+Ne+1}.0-0`:$=`>=${Pe}.${Ne}.${Ue} <${+Pe+1}.0.0-0`),l("caret return",$),$})},G=(he,re)=>(l("replaceXRanges",he,re),he.split(/\s+/).map(we=>X(we,re)).join(" ")),X=(he,re)=>{he=he.trim();const we=re.loose?f[p.XRANGELOOSE]:f[p.XRANGE];return he.replace(we,(xe,Fe,Pe,Ne,Ue,qe)=>{if(l("xRange",he,xe,Fe,Pe,Ne,Ue,qe),ee(Pe,Ne,Ue))return he;const $=F(Pe),ce=$||F(Ne),Ee=ce||F(Ue),Ve=Ee;return Fe==="="&&Ve&&(Fe=""),qe=re.includePrerelease?"-0":"",$?Fe===">"||Fe==="<"?xe="<0.0.0-0":xe="*":Fe&&Ve?(ce&&(Ne=0),Ue=0,Fe===">"?(Fe=">=",ce?(Pe=+Pe+1,Ne=0,Ue=0):(Ne=+Ne+1,Ue=0)):Fe==="<="&&(Fe="<",ce?Pe=+Pe+1:Ne=+Ne+1),Fe==="<"&&(qe="-0"),xe=`${Fe+Pe}.${Ne}.${Ue}${qe}`):ce?xe=`>=${Pe}.0.0${qe} <${+Pe+1}.0.0-0`:Ee&&(xe=`>=${Pe}.${Ne}.0${qe} <${Pe}.${+Ne+1}.0-0`),l("xRange return",xe),xe})},oe=(he,re)=>(l("replaceStars",he,re),he.trim().replace(f[p.STAR],"")),ye=(he,re)=>(l("replaceGTE0",he,re),he.trim().replace(f[re.includePrerelease?p.GTE0PRE:p.GTE0],"")),Oe=he=>(re,we,xe,Fe,Pe,Ne,Ue,qe,$,ce,Ee,Ve)=>(F(xe)?we="":F(Fe)?we=`>=${xe}.0.0${he?"-0":""}`:F(Pe)?we=`>=${xe}.${Fe}.0${he?"-0":""}`:Ne?we=`>=${we}`:we=`>=${we}${he?"-0":""}`,F($)?qe="":F(ce)?qe=`<${+$+1}.0.0-0`:F(Ee)?qe=`<${$}.${+ce+1}.0-0`:Ve?qe=`<=${$}.${ce}.${Ee}-${Ve}`:he?qe=`<${$}.${ce}.${+Ee+1}-0`:qe=`<=${qe}`,`${we} ${qe}`.trim()),ze=(he,re,we)=>{for(let xe=0;xe<he.length;xe++)if(!he[xe].test(re))return!1;if(re.prerelease.length&&!we.includePrerelease){for(let xe=0;xe<he.length;xe++)if(l(he[xe].semver),he[xe].semver!==a.ANY&&he[xe].semver.prerelease.length>0){const Fe=he[xe].semver;if(Fe.major===re.major&&Fe.minor===re.minor&&Fe.patch===re.patch)return!0}return!1}return!0};return Do}var No,od;function Fn(){if(od)return No;od=1;const i=Symbol("SemVer ANY");class e{static get ANY(){return i}constructor(p,_){if(_=r(_),p instanceof e){if(p.loose===!!_.loose)return p;p=p.value}p=p.trim().split(/\s+/).join(" "),l("comparator",p,_),this.options=_,this.loose=!!_.loose,this.parse(p),this.semver===i?this.value="":this.value=this.operator+this.semver.version,l("comp",this)}parse(p){const _=this.options.loose?s[t.COMPARATORLOOSE]:s[t.COMPARATOR],E=p.match(_);if(!E)throw new TypeError(`Invalid comparator: ${p}`);this.operator=E[1]!==void 0?E[1]:"",this.operator==="="&&(this.operator=""),E[2]?this.semver=new c(E[2],this.options.loose):this.semver=i}toString(){return this.value}test(p){if(l("Comparator.test",p,this.options.loose),this.semver===i||p===i)return!0;if(typeof p=="string")try{p=new c(p,this.options)}catch{return!1}return a(p,this.operator,this.semver,this.options)}intersects(p,_){if(!(p instanceof e))throw new TypeError("a Comparator is required");return this.operator===""?this.value===""?!0:new f(p.value,_).test(this.value):p.operator===""?p.value===""?!0:new f(this.value,_).test(p.semver):(_=r(_),_.includePrerelease&&(this.value==="<0.0.0-0"||p.value==="<0.0.0-0")||!_.includePrerelease&&(this.value.startsWith("<0.0.0")||p.value.startsWith("<0.0.0"))?!1:!!(this.operator.startsWith(">")&&p.operator.startsWith(">")||this.operator.startsWith("<")&&p.operator.startsWith("<")||this.semver.version===p.semver.version&&this.operator.includes("=")&&p.operator.includes("=")||a(this.semver,"<",p.semver,_)&&this.operator.startsWith(">")&&p.operator.startsWith("<")||a(this.semver,">",p.semver,_)&&this.operator.startsWith("<")&&p.operator.startsWith(">")))}}No=e;const r=pl(),{safeRe:s,t}=Zs(),a=gh(),l=$n(),c=mr(),f=Qr();return No}var ko,ld;function Vn(){if(ld)return ko;ld=1;const i=Qr();return ko=(r,s,t)=>{try{s=new i(s,t)}catch{return!1}return s.test(r)},ko}var jo,ud;function pv(){if(ud)return jo;ud=1;const i=Qr();return jo=(r,s)=>new i(r,s).set.map(t=>t.map(a=>a.value).join(" ").trim().split(" ")),jo}var Mo,cd;function mv(){if(cd)return Mo;cd=1;const i=mr(),e=Qr();return Mo=(s,t,a)=>{let l=null,c=null,f=null;try{f=new e(t,a)}catch{return null}return s.forEach(m=>{f.test(m)&&(!l||c.compare(m)===-1)&&(l=m,c=new i(l,a))}),l},Mo}var $o,dd;function gv(){if(dd)return $o;dd=1;const i=mr(),e=Qr();return $o=(s,t,a)=>{let l=null,c=null,f=null;try{f=new e(t,a)}catch{return null}return s.forEach(m=>{f.test(m)&&(!l||c.compare(m)===1)&&(l=m,c=new i(l,a))}),l},$o}var qo,hd;function vv(){if(hd)return qo;hd=1;const i=mr(),e=Qr(),r=qn();return qo=(t,a)=>{t=new e(t,a);let l=new i("0.0.0");if(t.test(l)||(l=new i("0.0.0-0"),t.test(l)))return l;l=null;for(let c=0;c<t.set.length;++c){const f=t.set[c];let m=null;f.forEach(p=>{const _=new i(p.semver.version);switch(p.operator){case">":_.prerelease.length===0?_.patch++:_.prerelease.push(0),_.raw=_.format();case"":case">=":(!m||r(_,m))&&(m=_);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${p.operator}`)}}),m&&(!l||r(l,m))&&(l=m)}return l&&t.test(l)?l:null},qo}var Fo,fd;function bv(){if(fd)return Fo;fd=1;const i=Qr();return Fo=(r,s)=>{try{return new i(r,s).range||"*"}catch{return null}},Fo}var Vo,pd;function _l(){if(pd)return Vo;pd=1;const i=mr(),e=Fn(),{ANY:r}=e,s=Qr(),t=Vn(),a=qn(),l=gl(),c=bl(),f=vl();return Vo=(p,_,E,y)=>{p=new i(p,y),_=new s(_,y);let w,R,C,A,te;switch(E){case">":w=a,R=c,C=l,A=">",te=">=";break;case"<":w=l,R=f,C=a,A="<",te="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(t(p,_,y))return!1;for(let Y=0;Y<_.set.length;++Y){const U=_.set[Y];let F=null,ee=null;if(U.forEach(u=>{u.semver===r&&(u=new e(">=0.0.0")),F=F||u,ee=ee||u,w(u.semver,F.semver,y)?F=u:C(u.semver,ee.semver,y)&&(ee=u)}),F.operator===A||F.operator===te||(!ee.operator||ee.operator===A)&&R(p,ee.semver))return!1;if(ee.operator===te&&C(p,ee.semver))return!1}return!0},Vo}var Uo,md;function _v(){if(md)return Uo;md=1;const i=_l();return Uo=(r,s,t)=>i(r,s,">",t),Uo}var Bo,gd;function yv(){if(gd)return Bo;gd=1;const i=_l();return Bo=(r,s,t)=>i(r,s,"<",t),Bo}var zo,vd;function wv(){if(vd)return zo;vd=1;const i=Qr();return zo=(r,s,t)=>(r=new i(r,t),s=new i(s,t),r.intersects(s,t)),zo}var Ho,bd;function xv(){if(bd)return Ho;bd=1;const i=Vn(),e=Yr();return Ho=(r,s,t)=>{const a=[];let l=null,c=null;const f=r.sort((E,y)=>e(E,y,t));for(const E of f)i(E,s,t)?(c=E,l||(l=E)):(c&&a.push([l,c]),c=null,l=null);l&&a.push([l,null]);const m=[];for(const[E,y]of a)E===y?m.push(E):!y&&E===f[0]?m.push("*"):y?E===f[0]?m.push(`<=${y}`):m.push(`${E} - ${y}`):m.push(`>=${E}`);const p=m.join(" || "),_=typeof s.raw=="string"?s.raw:String(s);return p.length<_.length?p:s},Ho}var Wo,_d;function Ev(){if(_d)return Wo;_d=1;const i=Qr(),e=Fn(),{ANY:r}=e,s=Vn(),t=Yr(),a=(_,E,y={})=>{if(_===E)return!0;_=new i(_,y),E=new i(E,y);let w=!1;e:for(const R of _.set){for(const C of E.set){const A=f(R,C,y);if(w=w||A!==null,A)continue e}if(w)return!1}return!0},l=[new e(">=0.0.0-0")],c=[new e(">=0.0.0")],f=(_,E,y)=>{if(_===E)return!0;if(_.length===1&&_[0].semver===r){if(E.length===1&&E[0].semver===r)return!0;y.includePrerelease?_=l:_=c}if(E.length===1&&E[0].semver===r){if(y.includePrerelease)return!0;E=c}const w=new Set;let R,C;for(const P of _)P.operator===">"||P.operator===">="?R=m(R,P,y):P.operator==="<"||P.operator==="<="?C=p(C,P,y):w.add(P.semver);if(w.size>1)return null;let A;if(R&&C){if(A=t(R.semver,C.semver,y),A>0)return null;if(A===0&&(R.operator!==">="||C.operator!=="<="))return null}for(const P of w){if(R&&!s(P,String(R),y)||C&&!s(P,String(C),y))return null;for(const W of E)if(!s(P,String(W),y))return!1;return!0}let te,Y,U,F,ee=C&&!y.includePrerelease&&C.semver.prerelease.length?C.semver:!1,u=R&&!y.includePrerelease&&R.semver.prerelease.length?R.semver:!1;ee&&ee.prerelease.length===1&&C.operator==="<"&&ee.prerelease[0]===0&&(ee=!1);for(const P of E){if(F=F||P.operator===">"||P.operator===">=",U=U||P.operator==="<"||P.operator==="<=",R){if(u&&P.semver.prerelease&&P.semver.prerelease.length&&P.semver.major===u.major&&P.semver.minor===u.minor&&P.semver.patch===u.patch&&(u=!1),P.operator===">"||P.operator===">="){if(te=m(R,P,y),te===P&&te!==R)return!1}else if(R.operator===">="&&!P.test(R.semver))return!1}if(C){if(ee&&P.semver.prerelease&&P.semver.prerelease.length&&P.semver.major===ee.major&&P.semver.minor===ee.minor&&P.semver.patch===ee.patch&&(ee=!1),P.operator==="<"||P.operator==="<="){if(Y=p(C,P,y),Y===P&&Y!==C)return!1}else if(C.operator==="<="&&!P.test(C.semver))return!1}if(!P.operator&&(C||R)&&A!==0)return!1}return!(R&&U&&!C&&A!==0||C&&F&&!R&&A!==0||u||ee)},m=(_,E,y)=>{if(!_)return E;const w=t(_.semver,E.semver,y);return w>0?_:w<0||E.operator===">"&&_.operator===">="?E:_},p=(_,E,y)=>{if(!_)return E;const w=t(_.semver,E.semver,y);return w<0?_:w>0||E.operator==="<"&&_.operator==="<="?E:_};return Wo=a,Wo}var Jo,yd;function Sv(){if(yd)return Jo;yd=1;const i=Zs(),e=Qs(),r=mr(),s=fh(),t=Hi(),a=Zg(),l=ev(),c=tv(),f=rv(),m=iv(),p=sv(),_=nv(),E=av(),y=Yr(),w=ov(),R=lv(),C=ml(),A=uv(),te=cv(),Y=qn(),U=gl(),F=ph(),ee=mh(),u=vl(),P=bl(),W=gh(),z=dv(),G=hv(),X=Fn(),oe=Qr(),ye=Vn(),Oe=pv(),ze=mv(),he=gv(),re=vv(),we=bv(),xe=_l(),Fe=_v(),Pe=yv(),Ne=wv(),Ue=xv(),qe=Ev();return Jo={parse:t,valid:a,clean:l,inc:c,diff:f,major:m,minor:p,patch:_,prerelease:E,compare:y,rcompare:w,compareLoose:R,compareBuild:C,sort:A,rsort:te,gt:Y,lt:U,eq:F,neq:ee,gte:u,lte:P,cmp:W,coerce:z,truncate:G,Comparator:X,Range:oe,satisfies:ye,toComparators:Oe,maxSatisfying:ze,minSatisfying:he,minVersion:re,validRange:we,outside:xe,gtr:Fe,ltr:Pe,intersects:Ne,simplifyRange:Ue,subset:qe,SemVer:r,re:i.re,src:i.src,tokens:i.t,SEMVER_SPEC_VERSION:e.SEMVER_SPEC_VERSION,RELEASE_TYPES:e.RELEASE_TYPES,compareIdentifiers:s.compareIdentifiers,rcompareIdentifiers:s.rcompareIdentifiers},Jo}var Rv=Sv();class B0{set(e,r,s){e in this._cache||(this._cache[e]=Object.create(null)),r in this._cache[e]?console.warn(`Version ${r} of key ${e} already registered.`):this._cache[e][r]=s}get(e,r){if(e in this._cache){const s=this._cache[e],t=Rv.maxSatisfying(Object.keys(s),r);if(t!==null)return s[t]}}getAllVersions(e){if(e in this._cache)return this._cache[e]}_cache=Object.create(null)}var Tv=Hm();const Cv=Ys(Tv);function rl(i,e){return i.filter(r=>e.indexOf(r)===-1)}function Tn(i,e){return Cv(i,e)}const $i=Object.assign||function(i,...e){for(let r=1;r<e.length;r++){const s=e[r];for(const t in s)Object.prototype.hasOwnProperty.call(s,t)&&(i[t]=s[t])}return i};function rr(){return km.uuid4()}function bs(i){const e=Object.keys(i),r=[];return e.forEach(function(s){r.push(i[s])}),Promise.all(r).then(s=>{const t={};for(let a=0;a<e.length;a++)t[e[a]]=s[a];return t})}function Xr(i,e){return function(s){throw e&&console.error(new Error(i)),s}}function os(i,e,r){for(let s=0;s<e.length;s++){const t=e[s];let a=r[s];a instanceof DataView||(a=new DataView(a instanceof ArrayBuffer?a:a.buffer));let l=i;for(let c=0;c<t.length-1;c++)l=l[t[c]];l[t[t.length-1]]=a}}function vh(i){var e;return(e=typeof i=="object"&&i&&"toJSON"in i)!==null&&e!==void 0?e:!1}function bh(i){return dl.isObject(i)}function yl(i){const e=[],r=[];function s(a,l){if(vh(a)&&(a=a.toJSON()),Array.isArray(a)){let c=!1;for(let f=0;f<a.length;f++){const m=a[f];if(m)if(m instanceof ArrayBuffer||ArrayBuffer.isView(m))c||(a=a.slice(),c=!0),e.push(ArrayBuffer.isView(m)?m.buffer:m),r.push(l.concat([f])),a[f]=null;else{const p=s(m,l.concat([f]));p!==m&&(c||(a=a.slice(),c=!0),a[f]=p)}}}else if(bh(a))for(const c in a){let f=!1;if(Object.prototype.hasOwnProperty.call(a,c)){const m=a[c];if(m)if(m instanceof ArrayBuffer||ArrayBuffer.isView(m))f||(a=Object.assign({},a),f=!0),e.push(ArrayBuffer.isView(m)?m.buffer:m),r.push(l.concat([c])),delete a[c];else{const p=s(m,l.concat([c]));p!==m&&(f||(a=Object.assign({},a),f=!0),a[c]=p)}}}return a}return{state:s(i,[]),buffers:e,buffer_paths:r}}const il=`<svg style="height:50%;max-height: 50px;" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 48 48">
|
|
2
2
|
<g >
|
|
3
3
|
<g transform="translate(0.24520123,0.93464292)">
|
|
4
4
|
<path d="M 8.2494641,21.074514 V 5.6225142 c 0,-0.314 0.254,-0.567 0.57,-0.567 H 29.978464 c 2.388,0 9.268,5.8269998 9.268,8.3029998 v 5.5835 l -3.585749,4.407396 -2.772971,-3.535534 -5.126524,3.414213 -5.944543,-3.237436 -5.722718,3.06066 z m 30.9969999,3.8675 v 15.5835 c 0,0.314 -0.254,0.567 -0.57,0.567 H 8.8194641 c -0.315,0.002 -0.57,-0.251 -0.57,-0.566 v -15.452 l 7.8444949,2.628449 5.656854,-2.65165 4.24264,3.005204 5.833631,-3.237437 3.712311,3.944543 z" style="fill:url(#linearGradient3448);stroke:#888a85" />
|