@hpcc-js/comms 2.83.2 → 2.84.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (48) hide show
  1. package/dist/index.es6.js +20468 -56
  2. package/dist/index.es6.js.map +1 -1
  3. package/dist/index.js +87 -29
  4. package/dist/index.js.map +1 -1
  5. package/dist/index.min.js +1 -1
  6. package/dist/index.min.js.map +1 -1
  7. package/dist/index.node.js +20576 -145
  8. package/dist/index.node.js.map +1 -1
  9. package/dist/index.node.min.js +4 -1
  10. package/dist/index.node.min.js.map +1 -1
  11. package/lib-es6/__package__.js +2 -2
  12. package/lib-es6/connection.js +9 -1
  13. package/lib-es6/connection.js.map +1 -1
  14. package/lib-es6/ecl/targetCluster.js.map +1 -1
  15. package/lib-es6/ecl/topology.js.map +1 -1
  16. package/lib-es6/index.node.js +16 -4
  17. package/lib-es6/index.node.js.map +1 -1
  18. package/lib-es6/services/wsTopology.js +5 -31
  19. package/lib-es6/services/wsTopology.js.map +1 -1
  20. package/lib-es6/services/wsWorkunits.js +1 -1
  21. package/lib-es6/services/wsWorkunits.js.map +1 -1
  22. package/lib-es6/services/wsdl/WsTopology/v1.31/WsTopology.js +29 -26
  23. package/lib-es6/services/wsdl/WsTopology/v1.31/WsTopology.js.map +1 -1
  24. package/package.json +9 -8
  25. package/src/__package__.ts +3 -3
  26. package/src/connection.ts +9 -1
  27. package/src/ecl/targetCluster.ts +11 -11
  28. package/src/ecl/topology.ts +9 -9
  29. package/src/index.node.ts +16 -5
  30. package/src/services/wsTopology.ts +7 -525
  31. package/src/services/wsWorkunits.ts +2 -2
  32. package/src/services/wsdl/WsTopology/v1.31/WsTopology.ts +685 -685
  33. package/types/__package__.d.ts +2 -2
  34. package/types/connection.d.ts.map +1 -1
  35. package/types/ecl/targetCluster.d.ts +8 -8
  36. package/types/ecl/targetCluster.d.ts.map +1 -1
  37. package/types/ecl/topology.d.ts +9 -9
  38. package/types/ecl/topology.d.ts.map +1 -1
  39. package/types/index.node.d.ts.map +1 -1
  40. package/types/services/wsTopology.d.ts +5 -434
  41. package/types/services/wsTopology.d.ts.map +1 -1
  42. package/types/services/wsdl/WsTopology/v1.31/WsTopology.d.ts +9 -10
  43. package/types/services/wsdl/WsTopology/v1.31/WsTopology.d.ts.map +1 -1
  44. package/types-3.4/__package__.d.ts +2 -2
  45. package/types-3.4/ecl/targetCluster.d.ts +8 -8
  46. package/types-3.4/ecl/topology.d.ts +9 -9
  47. package/types-3.4/services/wsTopology.d.ts +5 -434
  48. package/types-3.4/services/wsdl/WsTopology/v1.31/WsTopology.d.ts +9 -10
@@ -1,2 +1,5 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var util=require("@hpcc-js/util"),xmldom=require("@xmldom/xmldom"),fetch$1=require("node-fetch"),AbortController=require("abort-controller"),https=require("https"),safeBuffer=require("safe-buffer"),cp=require("child_process"),fs=require("fs"),os=require("os"),path=require("path"),tmp=require("tmp");function _interopDefaultLegacy(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}function _interopNamespace(e){if(e&&e.__esModule)return e;var t=Object.create(null);return e&&Object.keys(e).forEach((function(n){if("default"!==n){var r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:function(){return e[n]}})}})),t.default=e,Object.freeze(t)}var fetch__default=_interopDefaultLegacy(fetch$1),AbortController__default=_interopDefaultLegacy(AbortController),https__namespace=_interopNamespace(https),cp__namespace=_interopNamespace(cp),fs__namespace=_interopNamespace(fs),os__namespace=_interopNamespace(os),path__namespace=_interopNamespace(path),tmp__namespace=_interopNamespace(tmp),trustwave="\nTrustwave Secure Global Extended Validation CA, Level 1\nSecureTrust Corporation\n00F6F61CE4A3635BB0CA8AACEEFCB2D0F0\n-----BEGIN CERTIFICATE-----\nMIIE+DCCA+CgAwIBAgIRAPb2HOSjY1uwyoqs7vyy0PAwDQYJKoZIhvcNAQELBQAw\nSjELMAkGA1UEBhMCVVMxID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QcBAQRgMF4wJQYIKwYBBQUHMAGGGWh0dHA6Ly9v\nY3NwLnRydXN0d2F2ZS5jb20wNQYIKwYBBQUHMAKGKWh0dHA6Ly9zc2wudHJ1c3R3\nYXZlLmNvbS9pc3N1ZXJzL1NHQ0EuY3J0MB0GA1UdJQQWMBQGCCsGAQUFBwMCBggr\nBgEFBQcDATAfBgNVHSMEGDAWgBSvRATCQX5Ig9tOOQLs7IR65s7JpDANBgkqhkiG\n9w0BAQsFAAOCAQEAkn/4wKQRLo41fDRkZtfF+3o8JtUmfQXf2zoo9Ll29hhCiz8k\nBOpIek9MrFd/cdNgUw1nckIi+J3udyFrbO5p64JBvtc0K4kAOPFSKpHssFcnRLPx\nFXgGxXq6ohD4Py+xaEApslYFfMy89N6DKs/v/10/+/xD831RFEUMUoQxBimsmmNf\n+cLoMwF5bpoSz9JcWqCmSlK0Nla1dPphaoA/MObLN2iQPpeM3yF5dTUm1tPxe39W\nOlr6nLU1xO+yRDrlGLXrVDP1l1/qGVuwi+xufIAcdFycLLBjSSNX7LOIK3tbva7A\nWctLUs+qhIlUrbPyFERm7YOY4SttWdozeYFNfg==\n-----END CERTIFICATE-----\n\nSecureTrust Domain Validation CA, Level 1\nSecureTrust Corporation\n06F1EC00E80B1BAF9870A7C4B6CBE401A32D68\n-----BEGIN CERTIFICATE-----\nMIIEfzCCA2egAwIBAgITBvHsAOgLG6+YcKfEtsvkAaMtaDANBgkqhkiG9w0BAQsF\nADBIMQswCQYDVQQGEwJVUzEgMB4GA1UEChMXU2VjdXJlVHJ1c3QgQ29ycG9yYXRp\nb24xFzAVBgNVBAMTDlNlY3VyZVRydXN0IENBMB4XDTE5MDEyOTEyNTk1OVoXDTI5\nMDEyOTEyNTk1OVowfDEyMDAGA1UEAxMpU2VjdXJlVHJ1c3QgRG9tYWluIFZhbGlk\nYXRpb24gQ0EsIExldmVsIDExFDASBgNVBAoTC1NlY3VyZVRydXN0MRAwDgYDVQQH\nEwdDaGljYWdvMREwDwYDVQQI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/RN4JdESEECAwEA\nAaOCATYwggEyMBIGA1UdEwEB/wQIMAYBAf8CAQAwDgYDVR0PAQH/BAQDAgGGMB0G\nA1UdJQQWMBQGCCsGAQUFBwMCBggrBgEFBQcDATAdBgNVHQ4EFgQUA6uAxlUKKpWh\n4Nf+GubAynjMsJYwHwYDVR0jBBgwFoAUQjK2FvoE/f5dS3rD/fdMQB1aQ68wQQYD\nVR0gBDowODA2BgRVHSAAMC4wLAYIKwYBBQUHAgEWIGh0dHBzOi8vY2VydHMuc2Vj\ndXJldHJ1c3QuY29tL0NBMDIGA1UdHwQrMCkwJ6AloCOGIWh0dHA6Ly9jcmwudHJ1\nc3R3YXZlLmNvbS9TVENBLmNybDA2BggrBgEFBQcBAQQqMCgwJgYIKwYBBQUHMAGG\nGmh0dHA6Ly9vY3NwLnRydXN0d2F2ZS5jb20vMA0GCSqGSIb3DQEBCwUAA4IBAQB1\nfzAmGGmtbJyIvOfjq2McCpUoYkXAq6JTN51+nb9NDAihhDoTKMde+801bC1/l54h\nxPPm4HImM6GK6LFckDew/FGwbdRbEznUOJ7uVL5ploNBIjte23kTBUZa9fx3+aXK\nhUTAipSyPtNjnOwVVBVXzrMynfMhdsyRRe7gLXNFYCXIxtks3IkIpuYnc86NAuV9\nnBLFlZzgmbAsW+tMc5QsNvQJ9pQ539K8cqZaM+HFCScreDERxmNtHHbMw+hCa2yL\nOj4ntekgWLO8KQbE0lPUNLIM17QK8aktJavj+GezBztKMmJJwhVYQy9nxS388ApX\nxcZsEgIzOCeH0SOWg4FA\n-----END CERTIFICATE-----\n\nSecureTrust Organization Validation CA, Level 1\nSecureTrust Corporation\n06F1EC00E58E9ADD372C871D25843FDAB852D9\n-----BEGIN CERTIFICATE-----\nMIIEkDCCA3igAwIBAgITBvHsAOWOmt03LIcdJYQ/2rhS2TANBgkqhkiG9w0BAQsF\nADBIMQswCQYDVQQGEwJVUzEgMB4GA1UEChMXU2VjdXJlVHJ1c3QgQ29ycG9yYXRp\nb24xFzAVB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AYYaaHR0cDovL29jc3AudHJ1c3R3YXZlLmNvbS8wDQYJKoZIhvcNAQELBQAD\nggEBAIwGM/ejz4Hbjf7Vc11gS8jzf+BwtZq9N4t1Nibj4rIDsW2G2jDE0S7fCN2m\nMhq76xkfnwfXhBbXDEKz6rj/M0G2u1kHw4Y8ZtKSzYEyRtgpeBFm4qU6voCSREpD\nFJXsL+Go2/YLRSE6xkWVSocklxppx4hi5o/RVdMMQept6ooOSFzBpH5XZYUoblKi\n99Yj0FUe8egIa9qSts42TObTpH1YVRMDnH3k2MNX3rcgPf9v/QO9Cf8W6RQ2+X3R\nCaYMPdL5OIKh4RGYjxXe3LpgiTKBWik/ZWTFL5sZSjetrJFl50NONzTc8E+BJtrx\nVCHAI2OcWyloxrYd4zMipw0YjDw=\n-----END CERTIFICATE-----\n\nTrustwave Domain Validation SHA256 CA, Level 1\nSecureTrust Corporation\n00DDEDF6F64298490E694C36EFA422C88F\n-----BEGIN CERTIFICATE-----\nMIIE7jCCA9agAwIBAgIRAN3t9vZCmEkOaUw276QiyI8wDQYJKoZIhvcNAQELBQAw\nSDELMAkGA1UEBhMCVVMxIDAeBgNVBAoTF1NlY3VyZVRydXN0IENvcnBvcmF0aW9u\nMRcwFQYDVQQDEw5TZWN1cmVUcnVzdCBDQTAeFw0xNDEwMDExOTIyMzJaFw0yNDA5\nMjgxOTIyMzJaMIGvMQswCQYDVQQGEwJVUzERMA8GA1UECBMISWxsaW5vaXMxEDAO\nBgNVBAcTB0NoaWNhZ28xITAfBgNVBAoTGFRydXN0d2F2ZSBIb2xkaW5ncywgSW5j\nLjE3MDUGA1UEAxMuVHJ1c3R3YXZlIERvbWFpbiBWYWxpZGF0aW9uIFNIQTI1NiBD\nQSwgTGV2ZWwgMTEfMB0GCSqGSIb3DQEJARYQY2FAdHJ1c3R3YXZlLmNvbTCCASIw\nDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBALNr4Z91k7AKM+Pz5XXWTIuVeMts\nPU2W/pI4WdEHG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h0dHBzOi8vc3NsLnRydXN0d2F2ZS5jb20vQ0EwMgYDVR0fBCsw\nKTAnoCWgI4YhaHR0cDovL2NybC50cnVzdHdhdmUuY29tL1NUQ0EuY3JsMGwGCCsG\nAQUFBwEBBGAwXjAlBggrBgEFBQcwAYYZaHR0cDovL29jc3AudHJ1c3R3YXZlLmNv\nbTA1BggrBgEFBQcwAoYpaHR0cDovL3NzbC50cnVzdHdhdmUuY29tL2lzc3VlcnMv\nU1RDQS5jcnQwHQYDVR0lBBYwFAYIKwYBBQUHAwIGCCsGAQUFBwMBMB8GA1UdIwQY\nMBaAFEIythb6BP3+XUt6w/33TEAdWkOvMA0GCSqGSIb3DQEBCwUAA4IBAQCly1p1\nrvcOlRS+ODBLb2kYHd4q+cXDl65X+IQ7hOlXg9dpa7CzSAGNNpzhyYMbE48mB/RE\nBXxbZkMzEhWPFj+4jdGNsmX0zjEWatJWsnNVxpA7hDR0iZssezu86oDQ/sbVoaXj\n0a5jB2cZsnMS5287CNDk5i+ImruhbMAYV9sadliXoDy3y01Sv+FLMx39C5UhYhWU\ngvoT9igbSCoc/DPOukEDqsnKMmDqTf3JzuFI1CbJcR6M8R1hAda4mZrxIdGcbT8R\nXp8JQ8Vuv/+plPMcAiZ2Bzed0hPVr5A1Mz8K8w9OyORGlRwjWS65jsr26bjMCcfj\npvuAANrc0Alu4nJC\n-----END CERTIFICATE-----\n\nTrustwave Extended Validation SHA256 CA, Level 1\nSecureTrust Corporation\n35962F305C5A0BEC400D4E9877528C65\n-----BEGIN CERTIFICATE-----\nMIIFCzCCA/OgAwIBAgIQNZYvMFxaC+xADU6Yd1KMZTANBgkqhkiG9w0BAQsFADBI\nMQswCQYDVQQGEwJVUzEgMB4GA1UEChMXU2VjdXJlVHJ1c3QgQ29ycG9yYXRpb24x\nFzAVBgNVBAMTDlNlY3VyZVRydXN0IENBMB4XDTE2MDkwMTE0MzUzNFoXDTI0MDky\nOTE0MzUzNFowgbExCzAJBgNVBAYTAlVTMREwDwYD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AwIGCCsGAQUFBwMBMB8G\nA1UdIwQYMBaAFEIythb6BP3+XUt6w/33TEAdWkOvMBsGA1UdEQQUMBKBEGNhQHRy\ndXN0d2F2ZS5jb20wDQYJKoZIhvcNAQELBQADggEBAGUMIDkrvlMJ0wHLuP3lkneC\nwGU6mZ3g17jyU2RJwhRinYctraryG7Jh20DQ9/ppTHoxTIADw2JDsC5ByplabteQ\nnLghrl17K1b6PO+rzWA/NFKVwo6u8Gh7Lz0iUuit7ZBD4eKcRedxRZcPQlnD9KTR\nIs94SRpootsuCv/Y5b+1FMPV1KrYtbco9yEVlaNEWLpmiEsqvLjxiWEmt71rzz+0\nS59OtA/ihnbGP9Xrnhe7wf1ybCNOO5gZQMKr/OszfLZ7oVKACGOPLlcSZRRW98gA\nszE+1ZvlHkdjamfTSs4yMvUorYn9NhXnjAWl28NuD9m3FPiE2O50ezEDnHTiaOQ=\n-----END CERTIFICATE-----\n\nTrustwave Organization Validation SHA256 CA, Level 1\nSecureTrust Corporation\n4B2C6646F434775B67DF34A04DD504E6\n-----BEGIN CERTIFICATE-----\nMIIE/TCCA+WgAwIBAgIQSyxmRvQ0d1tn3zSgTdUE5jANBgkqhkiG9w0BAQsFADBI\nMQswCQYDVQQGEwJVUzEgMB4GA1UEChMXU2VjdXJlVHJ1c3QgQ29ycG9yYXRpb24x\nFzAVBgNVBAMTDlNlY3VyZVRydXN0IENBMB4XDTE0MTAwMTE5MjIzNloXDTI0MDky\nODE5MjIzNlowgbUxCzAJBgNVBAYTAlVTMREwDwYDVQQIEwhJbGxpbm9pczEQMA4G\nA1UEBxMHQ2hpY2FnbzEhMB8GA1UEChMYVHJ1c3R3YXZlIEhvbGRpbmdzLCBJbmMu\nMT0wOwYDVQQDEzRUcnVzdHdhdmUgT3JnYW5pemF0aW9uIFZhbGlkYXRpb24gU0hB\nMjU2IENBLCBMZXZlbCAxMR8wHQYJKoZIhvcNAQkBFhBjYUB0cnVzdHdhdmUuY29t\nMIIBIjANBgkqhkiG9w0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VTRKDqm1ZC9kbm3MWOwtnEOw4WURWS1X2v4Hv\n2AJaXe11ZRqjx7/c6U50tYp3eVpRDCw7bOIXRffLG0oibhjHiEu8dgq7KkTSrx9m\nQFS6T2x9GLiJKhj2mEfPuGr73TfBPyKsRBymOpG67LThKVnwoUfH3pghA6VkZp5Z\n1Vm6AcDm+eelf5XPvZtNve4evLVPYueA3TmGyxXh1m2d\n-----END CERTIFICATE-----\n\nTrustwave Organization Validation SHA256 CA, Level 1\nSecureTrust Corporation\n0092B8744F71CED0E26C72A3D8D5D925B2\n-----BEGIN CERTIFICATE-----\nMIIFEDCCA/igAwIBAgIRAJK4dE9xztDibHKj2NXZJbIwDQYJKoZIhvcNAQELBQAw\nSDELMAkGA1UEBhMCVVMxIDAeBgNVBAoTF1NlY3VyZVRydXN0IENvcnBvcmF0aW9u\nMRcwFQYDVQQDEw5TZWN1cmVUcnVzdCBDQTAeFw0xNjA5MDExNDM1MzVaFw0yNDA5\nMjkxNDM1MzVaMIG1MQswCQYDVQQGEwJVUzERMA8GA1UECBMISWxsaW5vaXMxEDAO\nBgNVBAcTB0NoaWNhZ28xITAfBgNVBAoTGFRydXN0d2F2ZSBIb2xkaW5ncywgSW5j\nLjE9MDsGA1UEAxM0VHJ1c3R3YXZlIE9yZ2FuaXphdGlvbiBWYWxpZGF0aW9uIFNI\nQTI1NiBDQSwgTGV2ZWwgMTEfMB0GCSqGSIb3DQEJARYQY2FAdHJ1c3R3YXZlLmNv\nbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAOPTqIZSRwSf47okE5om\nzktvKR7wgqdWzznOnpUOtgwmBPwNeCV1LSPMmlHPZxY4enTc0eyoxTxKv6g6ZUJe\n39U74eYnwTTT9sEOnvNtE1pTzuB4Uf+YOPt4hZidTe5Ba8Q6dfz/Ht/vZXCbF3JF\nwrXxZEPbJaICap2grIqYHax+IEIYnBQC+WKh8NgCn3LWS0j6cYSN8SEjFf5SEMGT\n1iNtttb/QC3JKJIea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5smU29OD4AlcNUXqQuKEFasyTtkRlORnWhU37c36HB8dc57xWQKOf8pMq\n7lK+ublO9G4mO1Aqr9mioTN4oMONFJG4W5dWwG9baNg682ZACkvPaw45MqSztL3A\nKb4s2cDTWu/D34hV3oafkTwu8B7B2mFZnWRJ9q4akPmZF45uw4RZx2ALaYGGGs67\n+r5qS300As9ONg8hxfVkFQSHOc00IiBkgi3OpoCofEKTgDwZwHVqOJyyPjk6H9Sh\nZANmUOT2mGDLwl86Ar5bTu8ipzlsyDYQMFjho7WaVs8I5OXyVdONXDYLIOtpITGT\n1fRcXFzxYHhrNuFwrdj2zBVyvVD4O6xV97/9nv2Eng==\n-----END CERTIFICATE-----\n\nTrustwave Global Domain Validation CA, Level 1\nTrustwave Holdings, Inc.\n06CE82D9AD30465CF22697F246B101EC92953B\n-----BEGIN CERTIFICATE-----\nMIIHCDCCBPCgAwIBAgITBs6C2a0wRlzyJpfyRrEB7JKVOzANBgkqhkiG9w0BAQsF\nADCBiDELMAkGA1UEBhMCVVMxETAPBgNVBAgMCElsbGlub2lzMRAwDgYDVQQHDAdD\naGljYWdvMSEwHwYDVQQKDBhUcnVzdHdhdmUgSG9sZGluZ3MsIEluYy4xMTAvBgNV\nBAMMKFRydXN0d2F2ZSBHbG9iYWwgQ2VydGlmaWNhdGlvbiBBdXRob3JpdHkwHhcN\nMTgwMjA2MTIyMTIxWhcNMjgwMjI0MDUwMTIxWjCBjjE3MDUGA1UEAxMuVHJ1c3R3\nYXZlIEdsb2JhbCBEb21haW4gVmFsaWRhdGlvbiBDQSwgTGV2ZWwgMTEhMB8GA1UE\nChMYVHJ1c3R3YXZlIEhvbGRpbmdzLCBJbmMuMRAwDgYDVQQHEwdDaGljYWdvMREw\nDwYDVQQIEwhJbGxpbm9pczELMAkGA1UEBhMCVVMwggIiMA0GCSqGSIb3DQEBAQUA\nA4ICDwAwggIKAoICAQChh5brvvk/kFUZwhlUhqdsUmsMCBjzYqBBLnTyNrKPr4nd\nS9s2h2JvA+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zA2BggrBgEFBQcwAoYqaHR0cDovL3NzbC50cnVzdHdh\ndmUuY29tL2lzc3VlcnMvVFdHQ0EuY3J0MA0GCSqGSIb3DQEBCwUAA4ICAQAmn0jp\n+lNp188KxjKQZtpJ3mixLmuqGdH6SVpRs40BYQg/68xOPH3C6AJ17tqE6IwZMW9s\nlgiO4B7khR3ESA6Sct3zmkA8woR/KJVzzegjscHhtQUifQ+Eb9Gi0ORNnetGV+5g\n5vlrFZMptBRGUxXMo2xa+Z/NTyimpMopfXj7qCW/nQWQbzvkQGchK9IokyqV2wra\ntX68/P3zleG+LLwzoJd5AhHYSXWrIRJpClZHN+LQKkbI3MYW7+upo/1e9HEmFKxu\n5SFV3nuQm5wSOsz/ZtIL1AS8IoZYxcSe1Q/yuV9GjnxtL1jkPbzsBx4eBGxUrcIe\nsBat6SI8G58uHTpIPpqUxRYsg8w0FdjK3kNBB5QWDeXiDxzqIRzA0iE1kHeTXRZ3\n7qgGXUcce7ciW5KqeRApjQbD5BSZG2EKkQ7aaOhvxK0LiuxHZnjPW4/fdEcaCuku\nMT5qMDiF2U85V9BvanEy/xkYn4I2UeK4EdSXe7q6j+CIJz9WnoLQDbIS04GqIWe0\nVRQUlx3idUWYSJU/SG8KrEHhlJLmgSjshCwtT6qo4vHwT5WcWDLIbjMqgL1iQ6JS\n4gxXuOGia3d0I4/wec5x23EWwx9V8BtDJ8N7NDeRNmZ8RXOHSYJsVQYIQuFUEXE1\nv3WMSIxuyQMyR5FYSCG9xnKRFzNmiPngDil5IA==\n-----END CERTIFICATE-----\n\nTrustwave Global Extended Validation CA, Level 1\nTrustwave Holdings, Inc.\n06CE82D99FB3B180C281020314A2D1C7640017\n-----BEGIN CERTIFICATE-----\nMIIHFDCCBPygAwIBAgITBs6C2Z+zsYDCgQIDFKLRx2QAFzANBgkqhkiG9w0BAQsF\nADCBiDELMAkGA1UEBhMCVVMxETAPBgNVBAgMCElsbGlub2lzMRAwDgYDVQQHDAdD\naGljYWdvMSEwHwYDV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9bVzvBZTUTFsbdSMBAAF1BJjdRqYR63DI\ncQASY7CRoUiak1NTgPkzeV8VcNJmUt8c2eKJIifqBAjquH6+6UXs9Ol0aMPn6v0y\nB+TSuxhX2sSrpna9QcOh/QyoR5Hvcd81rZSbMc7yasKoUMXviotV1SfEqs3RU5Ts\nwnU4NHPn5ITRiuh5VMuvB/VnjnPC953u5uqAGtZ8BkC7X9cu5E0rMQ==\n-----END CERTIFICATE-----\n\nTrustwave Global Organization Validation CA, Level 1\nTrustwave Holdings, Inc.\n06CE82D9A69703AEFE5D37D18858C74026B004\n-----BEGIN CERTIFICATE-----\nMIIHGDCCBQCgAwIBAgITBs6C2aaXA67+XTfRiFjHQCawBDANBgkqhkiG9w0BAQsF\nADCBiDELMAkGA1UEBhMCVVMxETAPBgNVBAgMCElsbGlub2lzMRAwDgYDVQQHDAdD\naGljYWdvMSEwHwYDVQQKDBhUcnVzdHdhdmUgSG9sZGluZ3MsIEluYy4xMTAvBgNV\nBAMMKFRydXN0d2F2ZSBHbG9iYWwgQ2VydGlmaWNhdGlvbiBBdXRob3JpdHkwHhcN\nMTgwMjA2MTIyMTIwWhcNMjgwMjI0MDUwMTIwWjCBlDE9MDsGA1UEAxM0VHJ1c3R3\nYXZlIEdsb2JhbCBPcmdhbml6YXRpb24gVmFsaWRhdGlvbiBDQSwgTGV2ZWwgMTEh\nMB8GA1UEChMYVHJ1c3R3YXZlIEhvbGRpbmdzLCBJbmMuMRAwDgYDVQQHEwdDaGlj\nYWdvMREwDwYDVQQIEwhJbGxpbm9pczELMAkGA1UEBhMCVVMwggIiMA0GCSqGSIb3\nDQEBAQUAA4ICDwAwggIKAoICAQC8BzZtA3eWejFOGHc2DLgex6P471dLWIIHSlrF\nY4a2BCtzAd/VlpQ3gslWnTgthOmK2/hCc+WSaOLPVZzZf3lGnxbb0+Y87Kx+nS1m\nIfJ/4OR6o8XLMLoCTAI1jsWxggiB4NBMqsW2xXQ5VAvBb66KEQYbshNlRpTbtBFq\nEed4YI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AgEAFXwfmELpEGKUguzVTMix79XbUnkfLa7IXcqBOrwOWEF1V8F1\nxGY6jLlUTtoEXRYZwCpqOK/i4m4nmWCYE45O7URR8nqeFffceTi62t4Yvh6LkC9g\nUnj3aChLiO/Zdxilq6vfsXO0mKafrGtZXwjyskS250Pj9DsANs57QqvYN4hqbplJ\nzc95p09OUvEhPiyRyx6FyY28U+3X6+mSNMJWd4Nhr+3HtvmItLIXP2JCLxuYtu/K\n6nKcpFCFFKeF8K3PWpjsAb0hfXL4vc3WfyCYsQnvJeisyAh7yEuge2iDwl1/xXIo\nEOAyyYAxvy5UnzcAa0Z2lwjptve+jZ4gQ+A1ioYUavR3pSfBNzuJW30nZCWFadKc\nNXOPoAPkK8JLxgRBH3JboeBCXG6xgy/pXrTjyhW7/SS+Z+7eKkp9jgdTVQ12yUtc\nCiYWUuM4l240D/z+s03WOEcLTluESwFkJhzs3D9i5crTL72uSkDDmlh8HXoPAyYO\nl3Mn9cGWhd8M8IeQRXmb6O7gvvQZDoSXDVDbjBKcW1lFpi0wBxIBzLaOi4CX4OhI\nJHJ/H3duOMaltuzXLSLkc26jwHzMeq8seQRSXraXJi1t5oBKlmEWFEgq6xlH7mLW\n3TOqS19cuiSWl/CsnlLGaW8MH5YHmk+MJxQE1BcLBs6ciapvHlhLEd9EUpU=\n-----END CERTIFICATE-----\n\nSecureTrust TWG ECDSA P-256 Secure Email CA, Level 2\nTrustwave Holdings, Inc.\n072F30E9C4627001DECFEBF6BF5D3B1066D7E3\n-----BEGIN CERTIFICATE-----\nMIIDbTCCAxKgAwIBAgITBy8w6cRicAHez+v2v107EGbX4zAKBggqhkjOPQQDAjCB\nkTELMAkGA1UEBhMCVVMxETAPBgNVBAgTCElsbGlub2lzMRAwDgYDVQQHEwdDaGlj\nYWdvMSEwHwYDVQQKExhUcnVzdHdhdmUgSG9sZGluZ3MsIEluYy4xOjA4BgNVBAMT\nMVRydXN0d2F2ZSBHbG9iYWwgRUNDIFAyNTYgQ2VydGlmaWN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5jb20vMD4GCCsGAQUF\nBzAChjJodHRwOi8vY2VydHMuc2VjdXJldHJ1c3QuY29tL2lzc3VlcnMvVFdHUDM4\nNENBLmNydDAKBggqhkjOPQQDAwNpADBmAjEA8X5zwZHtdHjLIn60rwG3Z3NAa6cU\n6gOFxyF+ksTCXvWCUP0oFUqsRPMKMYE2mtdQAjEA2diuEHTPUgCQ0ynhLjged8BO\nFyzL3UlFieGGp90v58gUpfjoFq0BReAw7MPYo/Qa\n-----END CERTIFICATE-----\n\nTrustwave Global ECDSA P-384 Domain Validation CA, Level 1\nTrustwave Holdings, Inc.\n06CE82D9B07A17CC5376157813389A2930A44A\n-----BEGIN CERTIFICATE-----\nMIID1TCCA1ygAwIBAgITBs6C2bB6F8xTdhV4EziaKTCkSjAKBggqhkjOPQQDAzCB\nkTELMAkGA1UEBhMCVVMxETAPBgNVBAgTCElsbGlub2lzMRAwDgYDVQQHEwdDaGlj\nYWdvMSEwHwYDVQQKExhUcnVzdHdhdmUgSG9sZGluZ3MsIEluYy4xOjA4BgNVBAMT\nMVRydXN0d2F2ZSBHbG9iYWwgRUNDIFAzODQgQ2VydGlmaWNhdGlvbiBBdXRob3Jp\ndHkwHhcNMTgwMjA2MTIyMTIxWhcNMjgwMjI0MDUwMTIxWjCBmjFDMEEGA1UEAxM6\nVHJ1c3R3YXZlIEdsb2JhbCBFQ0RTQSBQLTM4NCBEb21haW4gVmFsaWRhdGlvbiBD\nQSwgTGV2ZWwgMTEhMB8GA1UEChMYVHJ1c3R3YXZlIEhvbGRpbmdzLCBJbmMuMRAw\nDgYDVQQHEwdDaGljYWdvMREwDwYDVQQIEwhJbGxpbm9pczELMAkGA1UEBhMCVVMw\ndjAQBgcqhkjOPQIBBgUrgQQAIgNiAASxlBEflNumTKsypgdOscM2x6ZRpQGSyB4B\nhJScRQI81UhZvzYSwxPWcxNZwFQoV457HfqR51pviJnHltRS8MJhJ9Q9Rf1sSmy4\nW6SPsM9qnBjwfBRxghByIsEIaTW/PKyjggFpMIIBZTASBgNVHRMBAf8ECDAGAQH/\nAgEAMA4GA1UdDwEB/wQEAwIBhjATBgNVHSUEDDAKBggrBgEFBQcDATAdBgNVHQ4E\nFgQUp6etGGS1u/oGGEfIwJ68Zf9pAWAwHwYDVR0jBBgwFoAUVamEidLBMr0Yy2ym\nB07I552+gpAwPQYDVR0gBDYwNDAyBgRVHSAAMCowKAYIKwYBBQUHAgEWHGh0dHBz\nOi8vc3NsLnRydXN0d2F2ZS5jb20vQ0EwNwYDVR0fBDAwLjAsoCqgKIYmaHR0cDov\nL2NybC50cnVzdHdhdmUuY29tL1RXR1AzODRDQS5jcmwwcgYIKwYBBQUHAQEEZjBk\nMCYGCCsGAQUFBzABhhpodHRwOi8vb2NzcC50cnVzdHdhdmUuY29tLzA6BggrBgEF\nBQcwAoYuaHR0cDovL3NzbC50cnVzdHdhdmUuY29tL2lzc3VlcnMvVFdHUDM4NENB\nLmNydDAKBggqhkjOPQQDAwNnADBkAjA6fS1jRjt+DvnWSI58v4lX+8DCXbdEhDaB\nbBOS/rXwS/ntsFXqTf0B90GPv3AWlFMCMBbz6nXMwX0jKRkaFZOZx9tvwUapdq7M\n6jYpT/NnAzH68x1t3/7ysZ8lPuKIqAwdKQ==\n-----END CERTIFICATE-----\n\nTrustwave Global ECDSA P-384 Extended Validation CA, Level 1\nTrustwave Holdings, Inc.\n06CE82D9A331594530006781829387E40DBCB6\n-----BEGIN CERTIFICATE-----\nMIID4zCCA2igAwIBAgITBs6C2aMxWUUwAGeBgpOH5A28tjAKBggqhkjOPQQDAzCB\nkTELMAkGA1UEBhMCVVMxETAPBgNVBAgTCElsbGlub2lzMRAwDgYDVQQHEwdDaGlj\nYWdvMSEwHwYDVQQKExhUcnVzdHdhdmUgSG9sZGluZ3MsIEluYy4xOjA4BgNVBAMT\nMVRydXN0d2F2ZSBHbG9iYWwgRUNDIFAzODQgQ2VydGlmaWNhdGlvbiBBdXRob3Jp\ndHkwHhcNMTgwMjA2MTIyMTIwWhcNMjg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ngJAsrqBQKXkUpEbYEmmorXxj6/74e//xwXTz0XS0BS9cXhONlTQffyJnMeLaunzQ\nS1x/MvALfPCHCZCTOfLDmwylKtHHu+V2Ks0HV+ZrzCBRR5W3MhGTU7PpNEMQwyGF\n+MG5eZTd0jyxOSOjaXQm7iDh0tG/iKZZegn5AhNdaHE74QEHTjK+teLQlo60QGBk\necyzakgVYZ/Ezalz8nQwhCA=\n-----END CERTIFICATE-----\n\nTrustwave XRamp Global Extended Validation CA, Level 1\nXRamp Security Services Inc\n00D3D519C2B2EB5C7040F64CBC957BBD2C\n-----BEGIN CERTIFICATE-----\nMIIFMDCCBBigAwIBAgIRANPVGcKy61xwQPZMvJV7vSwwDQYJKoZIhvcNAQELBQAw\ngYIxCzAJBgNVBAYTAlVTMR4wHAYDVQQLExV3d3cueHJhbXBzZWN1cml0eS5jb20x\nJDAiBgNVBAoTG1hSYW1wIFNlY3VyaXR5IFNlcnZpY2VzIEluYzEtMCsGA1UEAxMk\nWFJhbXAgR2xvYmFsIENlcnRpZmljYXRpb24gQXV0aG9yaXR5MB4XDTE1MDgxMjIw\nMTczMVoXDTI1MDgwOTIwMTczMVowgbcxCzAJBgNVBAYTAlVTMREwDwYDVQQIEwhJ\nbGxpbm9pczEQMA4GA1UEBxMHQ2hpY2FnbzEhMB8GA1UEChMYVHJ1c3R3YXZlIEhv\nbGRpbmdzLCBJbmMuMT8wPQYDVQQDEzZUcnVzdHdhdmUgWFJhbXAgR2xvYmFsIEV4\ndGVuZGVkIFZhbGlkYXRpb24gQ0EsIExldmVsIDExHzAdBgkqhkiG9w0BCQEWEGNh\nQHRydXN0d2F2ZS5jb20wggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQC9\nAAbj9SknrNJT9pDatGvlR386KRi0SkqIOGr+C5W91+8E8PqydEHwjrnrWt/MTLGO\n+2kfEO3TEJlWxQQqbHy8SdhjCANefLzOT1cfTfjroWBIS9yiHpBIQytAaz/td95Y\n+JKrRBVCnIR/wB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IBBjANBgkqhkiG9w0BAQsFAAOCAgEAmHNw4rDT7TnsTGDZqRKGFx6W\n0OhUKDtkLSGm+J1WE2pIPU/HPinbbViDVD2HfSMF1OQc3Og4ZYbFdada2zUFvXfe\nuyk3QAUHw5RSn8pk3fEbK9xGChACMf1KaA0HZJDmHvUqoai7PF35owgLEQzxPy0Q\nlG/+4jSHg9bP5Rs1bdID4bANqKCqRieCNqcVtgimQlRXtpla4gt5kNdXElE1GYhB\naCXUNxeEFfsBctyV3lImIJgm4nb1J2/6ADtKYdkNy1GTKv0WBpanI5ojSP5RvbbE\nsLFUzt5sQa0WZ37b/TjNuThOssFgy50X31ieemKyJo90lZvkWx3SD92YHJtZuSPT\nMaCm/zjdzyBP6VhWOmfD0faZmZ26NraAL4hHT4a/RDqA5Dccprrql5gR0IRiR2Qe\nqu5AvzSxnI9O4fKSTx+O856X3vOmeWqJcU9LJxdI/uz0UA9PSX3MReO9ekDFQdxh\nVicGaeVyQYHTtgGJoC86cnn+OjC/QezHYj6RS8fZMXZC+fc8Y+wmjHMMfRod6qh8\nh6jCJ3zhM0EPz8/8AKAigJ5Kp28AsEFFtyLKaEjFQqKu3R3y4G5OBVixwJAWKqQ9\nEEC+j2Jjg6mcgn0tAumDMHzLJ8n9HmYAsC7TIS+OMxZsmO0QqAfWzJPP29FpHOTK\nyeC2nOnOcXHebD8WpHk=\n-----END CERTIFICATE-----\n\nTrustwave Global ECC P256 Certification Authority\nTrustwave Holdings, Inc.\n0D6A5F083F285C3E5195DF5D\n-----BEGIN CERTIFICATE-----\nMIICYDCCAgegAwIBAgIMDWpfCD8oXD5Rld9dMAoGCCqGSM49BAMCMIGRMQswCQYD\nVQQGEwJVUzERMA8GA1UECBMISWxsaW5vaXMxEDAOBgNVBAcTB0NoaWNhZ28xITAf\nBgNVBAoTGFRydXN0d2F2ZSBIb2xkaW5ncywgSW5jLjE6MDgGA1UEAxMxVHJ1c3R3\nYXZlIEdsb2JhbCBFQ0MgUDI1NiBDZXJ0aW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MxEDAOBgNVBAcTB0NoaWNhZ28xITAfBgNVBAoTGFRydXN0\nd2F2ZSBIb2xkaW5ncywgSW5jLjE6MDgGA1UEAxMxVHJ1c3R3YXZlIEdsb2JhbCBF\nQ0MgUDM4NCBDZXJ0aWZpY2F0aW9uIEF1dGhvcml0eTB2MBAGByqGSM49AgEGBSuB\nBAAiA2IABGvaDXU1CDFHBa5FmVXxERMuSvgQMSOjfoPTfygIOiYaOs+Xgh+AtycJ\nj9GOMMQKmw6sWASr9zZ9lCOkmwqKi6vr/TklZvFe/oyujUF5nQlgziip04pt89ZF\n1PKYhDhloKNDMEEwDwYDVR0TAQH/BAUwAwEB/zAPBgNVHQ8BAf8EBQMDBwYAMB0G\nA1UdDgQWBBRVqYSJ0sEyvRjLbKYHTsjnnb6CkDAKBggqhkjOPQQDAwNnADBkAjA3\nAZKXRRJ+oPM+rRk6ct30UJMDEr5E0k9BpIycnR+j9sKS50gU/k6bpZFXrsY3crsC\nMGclCrEMXu6pY5Jv5ZAL/mYiykf9ijH3g/56vxC+GCsej/YpHpRZ744hN8tRmKVu\nSw==\n-----END CERTIFICATE-----\n",PKG_NAME="@hpcc-js/comms",PKG_VERSION="2.83.2",BUILD_VERSION="2.104.24",extendStatics=function(e,t){return extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},extendStatics(e,t)};function __extends(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}extendStatics(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var __assign=function(){return __assign=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},__assign.apply(this,arguments)};function __awaiter(e,t,n,r){return new(n||(n=Promise))((function(o,i){function s(e){try{u(r.next(e))}catch(e){i(e)}}function c(e){try{u(r.throw(e))}catch(e){i(e)}}function u(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,c)}u((r=r.apply(e,t||[])).next())}))}function __generator(e,t){var n,r,o,i,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:c(0),throw:c(1),return:c(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function c(c){return function(u){return function(c){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,c[0]&&(s=0)),s;)try{if(n=1,r&&(o=2&c[0]?r.return:c[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,c[1])).done)return o;switch(r=0,o&&(c=[2&c[0],o.value]),c[0]){case 0:case 1:o=c;break;case 4:return s.label++,{value:c[1],done:!1};case 5:s.label++,r=c[1],c=[0];continue;case 7:c=s.ops.pop(),s.trys.pop();continue;default:if(!(o=s.trys,(o=o.length>0&&o[o.length-1])||6!==c[0]&&2!==c[0])){s=0;continue}if(3===c[0]&&(!o||c[1]>o[0]&&c[1]<o[3])){s.label=c[1];break}if(6===c[0]&&s.label<o[1]){s.label=o[1],o=c;break}if(o&&s.label<o[2]){s.label=o[2],s.ops.push(c);break}o[2]&&s.ops.pop(),s.trys.pop();continue}c=t.call(e,s)}catch(e){c=[6,e],r=0}finally{n=o=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}([c,u])}}}function __spreadArray(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}var logger$5=util.scopedLogger("comms/connection.ts");function instanceOfIOptions(e){return"baseUrl"in e}var DefaultOptions={type:"post",baseUrl:"",userID:"",password:"",rejectUnauthorized:!0,timeoutSecs:60};function instanceOfIConnection(e){return"function"==typeof e.opts&&"function"==typeof e.send&&"function"==typeof e.clone}function encode(e,t){return void 0===t||!0===t?encodeURIComponent(e):""+e}function serializeRequest(e,t,n){if(void 0===t&&(t=!0),void 0===n&&(n=""),n&&(n+="."),"object"!=typeof e)return encode(e,t);var r=[],o=function(o){if(e.hasOwnProperty(o))if(e[o]instanceof Array){var i=!1;e[o].forEach((function(e,s){"object"==typeof e?(i=!0,r.push(serializeRequest(e,t,n+encode("".concat(o,".").concat(s),t)))):r.push(n+encode("".concat(o,"_i").concat(s),t)+"="+serializeRequest(e,t))})),i&&r.push(n+encode("".concat(o,".itemcount"),t)+"="+e[o].length)}else"object"==typeof e[o]?e[o]&&e[o].Item instanceof Array?(r.push(serializeRequest(e[o].Item,t,n+encode(o,t))),r.push(n+encode("".concat(o,".itemcount"),t)+"="+e[o].Item.length)):r.push(serializeRequest(e[o],t,n+encode(o,t))):void 0!==e[o]?r.push(n+encode(o,t)+"="+encode(e[o],t)):r.push(n+encode(o,t))};for(var i in e)o(i);return r.join("&")}function deserializeResponse(e){return JSON.parse(e)}function jsonp(e,t,n,r,o){return void 0===n&&(n={}),void 0===r&&(r="json"),o&&console.warn("Header attributes ignored for JSONP connections"),new Promise((function(o,i){var s=1e3*e.timeoutSecs,c="jsonp_callback_"+Math.round(999999*Math.random());window[c]=function(e){s=0,l(),o("json"===r&&"string"==typeof e?deserializeResponse(e):e)};var u=document.createElement("script"),a=util.join(e.baseUrl,t);a+=a.indexOf("?")>=0?"&":"?",u.src=a+"jsonp="+c+"&"+serializeRequest(n,e.encodeRequest),document.body.appendChild(u);var p=setInterval((function(){s<=0?clearInterval(p):(s-=5e3)<=0?(clearInterval(p),logger$5.error("Request timeout: "+u.src),l(),i(Error("Request timeout: "+u.src))):logger$5.debug("Request pending ("+s/1e3+" sec): "+u.src)}),5e3);function l(){delete window[c],document.body.removeChild(u)}}))}function authHeader(e){return e.userID?{Authorization:"Basic ".concat(btoa("".concat(e.userID,":").concat(e.password)))}:{}}var _omitMap={};function doFetch(e,t,n,r,o){function i(e){if(e.ok)return"json"===o?e.json():e.text();throw new Error(e.statusText)}return r=__assign(__assign({},authHeader(e)),r),n=__assign(__assign({credentials:_omitMap[e.baseUrl]?"omit":"include"},n),{headers:r}),0===e.baseUrl.indexOf("https:")&&(!1===e.rejectUnauthorized&&fetch.__rejectUnauthorizedAgent?n.agent=fetch.__rejectUnauthorizedAgent:fetch.__trustwaveAgent&&(n.agent=fetch.__trustwaveAgent)),util.promiseTimeout(1e3*e.timeoutSecs,fetch(util.join(e.baseUrl,t),n).then(i).catch((function(r){return n.credentials=_omitMap[e.baseUrl]?"include":"omit",fetch(util.join(e.baseUrl,t),n).then(i).then((function(t){return _omitMap[e.baseUrl]=!_omitMap[e.baseUrl],t}))})))}function post(e,t,n,r,o){var i;return void 0===r&&(r="json"),n.upload_&&(delete n.upload_,t+="?upload_"),n.abortSignal_&&(i=n.abortSignal_,delete n.abortSignal_),doFetch(e,t,{method:"post",body:serializeRequest(n,e.encodeRequest),signal:i},__assign({"Content-Type":"application/x-www-form-urlencoded"},o),r)}function get(e,t,n,r,o){var i;return void 0===r&&(r="json"),n.abortSignal_&&(i=n.abortSignal_,delete n.abortSignal_),doFetch(e,"".concat(t,"?").concat(serializeRequest(n,e.encodeRequest)),{method:"get",signal:i},__assign({},o),r)}function send(e,t,n,r,o){var i;switch(void 0===r&&(r="json"),e.type){case"jsonp":i=jsonp(e,t,n,r,o);break;case"get":i=get(e,t,n,r,o);break;default:i=post(e,t,n,r,o)}return i}var hookedSend=send;function hookSend(e){var t=hookedSend;return e&&(hookedSend=e),t}var Connection=function(){function e(e){this.opts(e)}return Object.defineProperty(e.prototype,"baseUrl",{get:function(){return this._opts.baseUrl},enumerable:!1,configurable:!0}),e.prototype.opts=function(e){return 0===arguments.length?this._opts:(this._opts=__assign(__assign({},DefaultOptions),e),this)},e.prototype.send=function(e,t,n,r){return void 0===n&&(n="json"),this._opts.hookSend?this._opts.hookSend(this._opts,e,t,n,hookedSend,r):hookedSend(this._opts,e,t,n,r)},e.prototype.clone=function(){return new e(this.opts())},e}();function setTransportFactory(e){var t=exports.createConnection;return exports.createConnection=e,t}function isArray(e){return"[object Array]"===Object.prototype.toString.call(e)}exports.createConnection=function(e){return new Connection(e)};var ESPExceptions=function(e){function t(t,n,r){var o=e.call(this,"ESPException: "+r.Source)||this;return o.isESPExceptions=!0,o.action=t,o.request=n,o.Source=r.Source,o.Exception=r.Exception,r.Exception.length?o.message="".concat(r.Exception[0].Code,": ").concat(r.Exception[0].Message):o.message="",o}return __extends(t,e),t}(Error);function isExceptions(e){return e instanceof ESPExceptions||e.isESPExceptions&&Array.isArray(e.Exception)}function isConnection(e){return void 0!==e.send}var ESPConnection=function(){function e(e,t,n){this._connection=isConnection(e)?e:exports.createConnection(e),this._service=t,this._version=n}return Object.defineProperty(e.prototype,"baseUrl",{get:function(){return this._connection.opts().baseUrl},enumerable:!1,configurable:!0}),e.prototype.service=function(e){return void 0===e?this._service:(this._service=e,this)},e.prototype.version=function(e){return void 0===e?this._version:(this._version=e,this)},e.prototype.toESPStringArray=function(e,t){if(isArray(e[t])){for(var n=0;n<e[t].length;++n)e[t+"_i"+n]=e[t][n];delete e[t]}return e},e.prototype.opts=function(e){return void 0===e?this._connection.opts():(this._connection.opts(e),this)},e.prototype.send=function(e,t,n,r,o,i){void 0===t&&(t={}),void 0===n&&(n="json"),void 0===r&&(r=!1);var s,c=__assign(__assign({},t),{ver_:this._version});r&&(c.upload_=!0),o&&(c.abortSignal_=o);var u="json";switch(n){case"text":s=util.join(this._service,e),u="text";break;case"xsd":s=util.join(this._service,e+".xsd"),u="text";break;case"json2":s=util.join(this._service,e+"/json"),n="json";var a=e.split("/");e=a.pop();break;default:s=util.join(this._service,e+".json")}return this._connection.send(s,c,u).then((function(t){if("json"===n){var r=void 0;if(t&&t.Exceptions)throw new ESPExceptions(e,c,t.Exceptions);if(t&&(r=t[i||e+"Response"]),!r)throw new ESPExceptions(e,c,{Source:"ESPConnection.send",Exception:[{Code:0,Message:"Missing Response"}]});return r}return t})).catch((function(t){if(t.isESPExceptions)throw t;throw new ESPExceptions(e,c,{Source:"ESPConnection.send",Exception:[{Code:0,Message:t.message}]})}))},e.prototype.clone=function(){return new e(this._connection.clone(),this._service,this._version)},e}(),Service=function(){function e(e,t,n){this._connection=new ESPConnection(e,t,n)}return Object.defineProperty(e.prototype,"baseUrl",{get:function(){return this._connection.opts().baseUrl},enumerable:!1,configurable:!0}),e}();exports.FileSpray=void 0,function(e){var t;(t=e.DFUWUActions||(e.DFUWUActions={})).Delete="Delete",t.Protect="Protect",t.Unprotect="Unprotect",t.Restore="Restore",t.SetToFailed="SetToFailed",t.Archive="Archive"}(exports.FileSpray||(exports.FileSpray={}));var FileSprayServiceBase=function(e){function t(t){return e.call(this,t,"FileSpray","1.25")||this}return __extends(t,e),t.prototype.AbortDFUWorkunit=function(e){return this._connection.send("AbortDFUWorkunit",e,"json",!1,void 0,"AbortDFUWorkunitResponse")},t.prototype.Copy=function(e){return this._connection.send("Copy",e,"json",!1,void 0,"CopyResponse")},t.prototype.CreateDFUPublisherWorkunit=function(e){return this._connection.send("CreateDFUPublisherWorkunit",e,"json",!1,void 0,"CreateDFUPublisherWorkunitResponse")},t.prototype.CreateDFUWorkunit=function(e){return this._connection.send("CreateDFUWorkunit",e,"json",!1,void 0,"CreateDFUWorkunitResponse")},t.prototype.DFUWUFile=function(e){return this._connection.send("DFUWUFile",e,"json",!1,void 0,"DFUWUFileResponse")},t.prototype.DFUWUSearch=function(e){return this._connection.send("DFUWUSearch",e,"json",!1,void 0,"DFUWUSearchResponse")},t.prototype.DFUWorkunitsAction=function(e){return this._connection.send("DFUWorkunitsAction",e,"json",!1,void 0,"DFUWorkunitsActionResponse")},t.prototype.DeleteDFUWorkunit=function(e){return this._connection.send("DeleteDFUWorkunit",e,"json",!1,void 0,"DeleteDFUWorkunitResponse")},t.prototype.DeleteDFUWorkunits=function(e){return this._connection.send("DeleteDFUWorkunits",e,"json",!1,void 0,"DeleteDFUWorkunitsResponse")},t.prototype.DeleteDropZoneFiles=function(e){return this._connection.send("DeleteDropZoneFiles",e,"json",!1,void 0,"DFUWorkunitsActionResponse")},t.prototype.Despray=function(e){return this._connection.send("Despray",e,"json",!1,void 0,"DesprayResponse")},t.prototype.DfuMonitor=function(e){return this._connection.send("DfuMonitor",e,"json",!1,void 0,"DfuMonitorResponse")},t.prototype.DropZoneFileSearch=function(e){return this._connection.send("DropZoneFileSearch",e,"json",!1,void 0,"DropZoneFileSearchResponse")},t.prototype.DropZoneFiles=function(e){return this._connection.send("DropZoneFiles",e,"json",!1,void 0,"DropZoneFilesResponse")},t.prototype.EchoDateTime=function(e){return this._connection.send("EchoDateTime",e,"json",!1,void 0,"EchoDateTimeResponse")},t.prototype.FileList=function(e){return this._connection.send("FileList",e,"json",!1,void 0,"FileListResponse")},t.prototype.GetDFUExceptions=function(e){return this._connection.send("GetDFUExceptions",e,"json",!1,void 0,"GetDFUExceptionsResponse")},t.prototype.GetDFUProgress=function(e){return this._connection.send("GetDFUProgress",e,"json",!1,void 0,"ProgressResponse")},t.prototype.GetDFUServerQueues=function(e){return this._connection.send("GetDFUServerQueues",e,"json",!1,void 0,"GetDFUServerQueuesResponse")},t.prototype.GetDFUWorkunit=function(e){return this._connection.send("GetDFUWorkunit",e,"json",!1,void 0,"GetDFUWorkunitResponse")},t.prototype.GetDFUWorkunits=function(e){return this._connection.send("GetDFUWorkunits",e,"json",!1,void 0,"GetDFUWorkunitsResponse")},t.prototype.GetSprayTargets=function(e){return this._connection.send("GetSprayTargets",e,"json",!1,void 0,"GetSprayTargetsResponse")},t.prototype.OpenSave=function(e){return this._connection.send("OpenSave",e,"json",!1,void 0,"OpenSaveResponse")},t.prototype.Ping=function(e){return this._connection.send("Ping",e,"json",!1,void 0,"FileSprayPingResponse")},t.prototype.Rename=function(e){return this._connection.send("Rename",e,"json",!1,void 0,"RenameResponse")},t.prototype.Replicate=function(e){return this._connection.send("Replicate",e,"json",!1,void 0,"ReplicateResponse")},t.prototype.ShowResult=function(e){return this._connection.send("ShowResult",e,"json",!1,void 0,"ShowResultResponse")},t.prototype.SprayFixed=function(e){return this._connection.send("SprayFixed",e,"json",!1,void 0,"SprayFixedResponse")},t.prototype.SprayVariable=function(e){return this._connection.send("SprayVariable",e,"json",!1,void 0,"SprayResponse")},t.prototype.SubmitDFUWorkunit=function(e){return this._connection.send("SubmitDFUWorkunit",e,"json",!1,void 0,"SubmitDFUWorkunitResponse")},t.prototype.UpdateDFUWorkunit=function(e){return this._connection.send("UpdateDFUWorkunit",e,"json",!1,void 0,"UpdateDFUWorkunitResponse")},t}(Service),FileSprayService=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends(t,e),t.prototype.SprayFixedEx=function(e){return this._connection.send("SprayFixed",e)},t.prototype.SprayVariableEx=function(e){return this._connection.send("SprayVariable",e,"json",!1,null,"SprayResponse")},t.prototype.DesprayEx=function(e){return this._connection.send("Despray",e)},t.prototype.UpdateDFUWorkunitEx=function(e){return this._connection.send("UpdateDFUWorkunit",e,"json",!1,void 0,"UpdateDFUWorkunitResponse")},t}(FileSprayServiceBase);exports.WsAccess=void 0,function(e){var t,n,r,o,i;(t=e.ViewMemberType||(e.ViewMemberType={})).User="User",t.Group="Group",(n=e.UserSortBy||(e.UserSortBy={})).username="username",n.fullname="fullname",n.passwordexpiration="passwordexpiration",n.employeeID="employeeID",n.employeeNumber="employeeNumber",(r=e.GroupSortBy||(e.GroupSortBy={})).Name="Name",r.ManagedBy="ManagedBy",(o=e.AccountTypeReq||(e.AccountTypeReq={})).Any="Any",o.User="User",o.Group="Group",(i=e.ResourcePermissionSortBy||(e.ResourcePermissionSortBy={})).Name="Name",i.Type="Type",(e.ResourceSortBy||(e.ResourceSortBy={})).Name="Name"}(exports.WsAccess||(exports.WsAccess={}));var AccessServiceBase=function(e){function t(t){return e.call(this,t,"ws_access","1.17")||this}return __extends(t,e),t.prototype.AccountPermissions=function(e){return this._connection.send("AccountPermissions",e,"json",!1,void 0,"AccountPermissionsResponse")},t.prototype.AccountPermissionsV2=function(e){return this._connection.send("AccountPermissionsV2",e,"json",!1,void 0,"AccountPermissionsV2Response")},t.prototype.AddUser=function(e){return this._connection.send("AddUser",e,"json",!1,void 0,"AddUserResponse")},t.prototype.AddView=function(e){return this._connection.send("AddView",e,"json",!1,void 0,"AddViewResponse")},t.prototype.AddViewColumn=function(e){return this._connection.send("AddViewColumn",e,"json",!1,void 0,"AddViewColumnResponse")},t.prototype.AddViewMember=function(e){return this._connection.send("AddViewMember",e,"json",!1,void 0,"AddViewMemberResponse")},t.prototype.ClearPermissionsCache=function(e){return this._connection.send("ClearPermissionsCache",e,"json",!1,void 0,"ClearPermissionsCacheResponse")},t.prototype.DeleteView=function(e){return this._connection.send("DeleteView",e,"json",!1,void 0,"DeleteViewResponse")},t.prototype.DeleteViewColumn=function(e){return this._connection.send("DeleteViewColumn",e,"json",!1,void 0,"DeleteViewColumnResponse")},t.prototype.DeleteViewMember=function(e){return this._connection.send("DeleteViewMember",e,"json",!1,void 0,"DeleteViewMemberResponse")},t.prototype.DisableScopeScans=function(e){return this._connection.send("DisableScopeScans",e,"json",!1,void 0,"DisableScopeScansResponse")},t.prototype.EnableScopeScans=function(e){return this._connection.send("EnableScopeScans",e,"json",!1,void 0,"EnableScopeScansResponse")},t.prototype.FilePermission=function(e){return this._connection.send("FilePermission",e,"json",!1,void 0,"FilePermissionResponse")},t.prototype.GroupAction=function(e){return this._connection.send("GroupAction",e,"json",!1,void 0,"GroupActionResponse")},t.prototype.GroupAdd=function(e){return this._connection.send("GroupAdd",e,"json",!1,void 0,"GroupAddResponse")},t.prototype.GroupEdit=function(e){return this._connection.send("GroupEdit",e,"json",!1,void 0,"GroupEditResponse")},t.prototype.GroupMemberEdit=function(e){return this._connection.send("GroupMemberEdit",e,"json",!1,void 0,"GroupMemberEditResponse")},t.prototype.GroupMemberEditInput=function(e){return this._connection.send("GroupMemberEditInput",e,"json",!1,void 0,"GroupMemberEditInputResponse")},t.prototype.GroupMemberQuery=function(e){return this._connection.send("GroupMemberQuery",e,"json",!1,void 0,"GroupMemberQueryResponse")},t.prototype.GroupQuery=function(e){return this._connection.send("GroupQuery",e,"json",!1,void 0,"GroupQueryResponse")},t.prototype.Groups=function(e){return this._connection.send("Groups",e,"json",!1,void 0,"GroupResponse")},t.prototype.PermissionAction=function(e){return this._connection.send("PermissionAction",e,"json",!1,void 0,"PermissionActionResponse")},t.prototype.PermissionAddInput=function(e){return this._connection.send("PermissionAddInput",e,"json",!1,void 0,"PermissionAddResponse")},t.prototype.Permissions=function(e){return this._connection.send("Permissions",e,"json",!1,void 0,"BasednsResponse")},t.prototype.PermissionsReset=function(e){return this._connection.send("PermissionsReset",e,"json",!1,void 0,"PermissionsResetResponse")},t.prototype.PermissionsResetInput=function(e){return this._connection.send("PermissionsResetInput",e,"json",!1,void 0,"PermissionsResetInputResponse")},t.prototype.Ping=function(e){return this._connection.send("Ping",e,"json",!1,void 0,"ws_accessPingResponse")},t.prototype.QueryScopeScansEnabled=function(e){return this._connection.send("QueryScopeScansEnabled",e,"json",!1,void 0,"QueryScopeScansEnabledResponse")},t.prototype.QueryUserViewColumns=function(e){return this._connection.send("QueryUserViewColumns",e,"json",!1,void 0,"QueryUserViewColumnsResponse")},t.prototype.QueryViewColumns=function(e){return this._connection.send("QueryViewColumns",e,"json",!1,void 0,"QueryViewColumnsResponse")},t.prototype.QueryViewMembers=function(e){return this._connection.send("QueryViewMembers",e,"json",!1,void 0,"QueryViewMembersResponse")},t.prototype.QueryViews=function(e){return this._connection.send("QueryViews",e,"json",!1,void 0,"QueryViewsResponse")},t.prototype.ResourceAdd=function(e){return this._connection.send("ResourceAdd",e,"json",!1,void 0,"ResourceAddResponse")},t.prototype.ResourceAddInput=function(e){return this._connection.send("ResourceAddInput",e,"json",!1,void 0,"ResourceAddInputResponse")},t.prototype.ResourceDelete=function(e){return this._connection.send("ResourceDelete",e,"json",!1,void 0,"ResourceDeleteResponse")},t.prototype.ResourcePermissionQuery=function(e){return this._connection.send("ResourcePermissionQuery",e,"json",!1,void 0,"ResourcePermissionQueryResponse")},t.prototype.ResourcePermissions=function(e){return this._connection.send("ResourcePermissions",e,"json",!1,void 0,"ResourcePermissionsResponse")},t.prototype.ResourceQuery=function(e){return this._connection.send("ResourceQuery",e,"json",!1,void 0,"ResourceQueryResponse")},t.prototype.Resources=function(e){return this._connection.send("Resources",e,"json",!1,void 0,"ResourcesResponse")},t.prototype.UserAccountExport=function(e){return this._connection.send("UserAccountExport",e,"json",!1,void 0,"UserAccountExportResponse")},t.prototype.UserAction=function(e){return this._connection.send("UserAction",e,"json",!1,void 0,"UserActionResponse")},t.prototype.UserEdit=function(e){return this._connection.send("UserEdit",e,"json",!1,void 0,"UserEditResponse")},t.prototype.UserGroupEdit=function(e){return this._connection.send("UserGroupEdit",e,"json",!1,void 0,"UserGroupEditResponse")},t.prototype.UserGroupEditInput=function(e){return this._connection.send("UserGroupEditInput",e,"json",!1,void 0,"UserGroupEditInputResponse")},t.prototype.UserInfoEdit=function(e){return this._connection.send("UserInfoEdit",e,"json",!1,void 0,"UserInfoEditResponse")},t.prototype.UserInfoEditInput=function(e){return this._connection.send("UserInfoEditInput",e,"json",!1,void 0,"UserInfoEditInputResponse")},t.prototype.UserPosix=function(e){return this._connection.send("UserPosix",e,"json",!1,void 0,"UserPosixResponse")},t.prototype.UserPosixInput=function(e){return this._connection.send("UserPosixInput",e,"json",!1,void 0,"UserPosixInputResponse")},t.prototype.UserQuery=function(e){return this._connection.send("UserQuery",e,"json",!1,void 0,"UserQueryResponse")},t.prototype.UserResetPass=function(e){return this._connection.send("UserResetPass",e,"json",!1,void 0,"UserResetPassResponse")},t.prototype.UserResetPassInput=function(e){return this._connection.send("UserResetPassInput",e,"json",!1,void 0,"UserResetPassInputResponse")},t.prototype.UserSudoers=function(e){return this._connection.send("UserSudoers",e,"json",!1,void 0,"UserSudoersResponse")},t.prototype.UserSudoersInput=function(e){return this._connection.send("UserSudoersInput",e,"json",!1,void 0,"UserSudoersInputResponse")},t.prototype.Users=function(e){return this._connection.send("Users",e,"json",!1,void 0,"UserResponse")},t}(Service),AccessService=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends(t,e),t}(AccessServiceBase),AccountService=function(){function e(e){this._connection=new ESPConnection(e,"Ws_Account","1.05")}return e.prototype.connectionOptions=function(){return this._connection.opts()},e.prototype.MyAccount=function(e){return this._connection.send("MyAccount",e)},e.prototype.UpdateUser=function(e){return this._connection.send("UpdateUser",e)},e.prototype.UpdateUserInput=function(e){return this._connection.send("UpdateUserInput",e)},e.prototype.VerifyUser=function(e){return this._connection.send("VerifyUser",e).catch((function(e){if(e.isESPExceptions&&e.Exception.some((function(e){return 20043===e.Code})))return{retcode:20043,Exceptions:{Source:"wsAccount",Exception:e.Exception}};throw e}))},e}(),CloudServiceBase=function(e){function t(t){return e.call(this,t,"WsCloud","1")||this}return __extends(t,e),t.prototype.GetPODs=function(e){return this._connection.send("GetPODs",e)},t.prototype.Ping=function(e){return this._connection.send("Ping",e)},t}(Service),CloudService=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends(t,e),t.prototype.getPODs=function(){return e.prototype.GetPODs.call(this,{}).then((function(e){var t;try{var n="string"==typeof e.Result?JSON.parse(e.Result):e.Result;return null!==(t=null==n?void 0:n.items)&&void 0!==t?t:[]}catch(e){return[]}}))},t}(CloudServiceBase),CodesignService=function(){function e(e){this._connection=new ESPConnection(e,"ws_codesign","1.1")}return e.prototype.connectionOptions=function(){return this._connection.opts()},e.prototype.ListUserIDs=function(e){return this._connection.send("ListUserIDs",e).then((function(e){return e.UserIDs.Item})).catch((function(e){return[]}))},e.prototype.Sign=function(e){return this._connection.send("Sign",__assign({SigningMethod:"gpg"},e))},e.prototype.Verify=function(e){return this._connection.send("Verify",e)},e}(),DaliServiceBase=function(e){function t(t){return e.call(this,t,"WSDali","1.04")||this}return __extends(t,e),t.prototype.Add=function(e){return this._connection.send("Add",e,"json",!1,void 0,"ResultResponse")},t.prototype.Count=function(e){return this._connection.send("Count",e,"json",!1,void 0,"CountResponse")},t.prototype.DFSCheck=function(e){return this._connection.send("DFSCheck",e,"json",!1,void 0,"ResultResponse")},t.prototype.DFSExists=function(e){return this._connection.send("DFSExists",e,"json",!1,void 0,"BooleanResponse")},t.prototype.DFSLS=function(e){return this._connection.send("DFSLS",e,"json",!1,void 0,"ResultResponse")},t.prototype.Delete=function(e){return this._connection.send("Delete",e,"json",!1,void 0,"ResultResponse")},t.prototype.GetDFSCSV=function(e){return this._connection.send("GetDFSCSV",e,"json",!1,void 0,"ResultResponse")},t.prototype.GetDFSMap=function(e){return this._connection.send("GetDFSMap",e,"json",!1,void 0,"ResultResponse")},t.prototype.GetDFSParents=function(e){return this._connection.send("GetDFSParents",e,"json",!1,void 0,"ResultResponse")},t.prototype.GetLogicalFile=function(e){return this._connection.send("GetLogicalFile",e,"json",!1,void 0,"ResultResponse")},t.prototype.GetLogicalFilePart=function(e){return this._connection.send("GetLogicalFilePart",e,"json",!1,void 0,"ResultResponse")},t.prototype.GetProtectedList=function(e){return this._connection.send("GetProtectedList",e,"json",!1,void 0,"ResultResponse")},t.prototype.GetValue=function(e){return this._connection.send("GetValue",e,"json",!1,void 0,"ResultResponse")},t.prototype.Import=function(e){return this._connection.send("Import",e,"json",!1,void 0,"ResultResponse")},t.prototype.Ping=function(e){return this._connection.send("Ping",e,"json",!1,void 0,"WSDaliPingResponse")},t.prototype.SetLogicalFilePartAttr=function(e){return this._connection.send("SetLogicalFilePartAttr",e,"json",!1,void 0,"ResultResponse")},t.prototype.SetProtected=function(e){return this._connection.send("SetProtected",e,"json",!1,void 0,"ResultResponse")},t.prototype.SetUnprotected=function(e){return this._connection.send("SetUnprotected",e,"json",!1,void 0,"ResultResponse")},t.prototype.SetValue=function(e){return this._connection.send("SetValue",e,"json",!1,void 0,"ResultResponse")},t}(Service),DaliService=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends(t,e),t}(DaliServiceBase);exports.WsDfu=void 0,function(e){var t,n,r;!function(e){e.Delete="Delete",e.AddToSuperfile="AddToSuperfile",e.ChangeProtection="ChangeProtection",e.ChangeRestriction="ChangeRestriction"}(e.DFUArrayActions||(e.DFUArrayActions={})),function(e){e[e.NoChange=0]="NoChange",e[e.Protect=1]="Protect",e[e.Unprotect=2]="Unprotect",e[e.UnprotectAll=3]="UnprotectAll"}(e.DFUChangeProtection||(e.DFUChangeProtection={})),function(e){e[e.NoChange=0]="NoChange",e[e.Restrict=1]="Restrict",e[e.Unrestricted=2]="Unrestricted"}(e.DFUChangeRestriction||(e.DFUChangeRestriction={})),function(e){e.xml="xml",e.def="def"}(e.DFUDefFileFormat||(e.DFUDefFileFormat={})),(t=e.FileAccessRole||(e.FileAccessRole={})).Token="Token",t.Engine="Engine",t.External="External",(n=e.SecAccessType||(e.SecAccessType={})).None="None",n.Access="Access",n.Read="Read",n.Write="Write",n.Full="Full",(r=e.DFUFileType||(e.DFUFileType={})).Flat="Flat",r.Index="Index",r.Xml="Xml",r.Csv="Csv",r.Json="Json",r.IndexLocal="IndexLocal",r.IndexPartitioned="IndexPartitioned",r.Unset="Unset"}(exports.WsDfu||(exports.WsDfu={}));var DfuServiceBase=function(e){function t(t){return e.call(this,t,"WsDfu","1.65")||this}return __extends(t,e),t.prototype.Add=function(e){return this._connection.send("Add",e,"json",!1,void 0,"AddResponse")},t.prototype.AddRemote=function(e){return this._connection.send("AddRemote",e,"json",!1,void 0,"AddRemoteResponse")},t.prototype.AddtoSuperfile=function(e){return this._connection.send("AddtoSuperfile",e,"json",!1,void 0,"AddtoSuperfileResponse")},t.prototype.DFUArrayAction=function(e){return this._connection.send("DFUArrayAction",e,"json",!1,void 0,"DFUArrayActionResponse")},t.prototype.DFUBrowseData=function(e){return this._connection.send("DFUBrowseData",e,"json",!1,void 0,"DFUBrowseDataResponse")},t.prototype.DFUDefFile=function(e){return this._connection.send("DFUDefFile",e,"json",!1,void 0,"DFUDefFileResponse")},t.prototype.DFUFileAccess=function(e){return this._connection.send("DFUFileAccess",e,"json",!1,void 0,"DFUFileAccessResponse")},t.prototype.DFUFileAccessV2=function(e){return this._connection.send("DFUFileAccessV2",e,"json",!1,void 0,"DFUFileAccessResponse")},t.prototype.DFUFileCreate=function(e){return this._connection.send("DFUFileCreate",e,"json",!1,void 0,"DFUFileCreateResponse")},t.prototype.DFUFileCreateV2=function(e){return this._connection.send("DFUFileCreateV2",e,"json",!1,void 0,"DFUFileCreateResponse")},t.prototype.DFUFilePublish=function(e){return this._connection.send("DFUFilePublish",e,"json",!1,void 0,"DFUFilePublishResponse")},t.prototype.DFUFileView=function(e){return this._connection.send("DFUFileView",e,"json",!1,void 0,"DFUFileViewResponse")},t.prototype.DFUGetDataColumns=function(e){return this._connection.send("DFUGetDataColumns",e,"json",!1,void 0,"DFUGetDataColumnsResponse")},t.prototype.DFUGetFileMetaData=function(e){return this._connection.send("DFUGetFileMetaData",e,"json",!1,void 0,"DFUGetFileMetaDataResponse")},t.prototype.DFUInfo=function(e){return this._connection.send("DFUInfo",e,"json",!1,void 0,"DFUInfoResponse")},t.prototype.DFUQuery=function(e){return this._connection.send("DFUQuery",e,"json",!1,void 0,"DFUQueryResponse")},t.prototype.DFURecordTypeInfo=function(e){return this._connection.send("DFURecordTypeInfo",e,"json",!1,void 0,"DFURecordTypeInfoResponse")},t.prototype.DFUSearch=function(e){return this._connection.send("DFUSearch",e,"json",!1,void 0,"DFUSearchResponse")},t.prototype.DFUSearchData=function(e){return this._connection.send("DFUSearchData",e,"json",!1,void 0,"DFUSearchDataResponse")},t.prototype.DFUSpace=function(e){return this._connection.send("DFUSpace",e,"json",!1,void 0,"DFUSpaceResponse")},t.prototype.EclRecordTypeInfo=function(e){return this._connection.send("EclRecordTypeInfo",e,"json",!1,void 0,"EclRecordTypeInfoResponse")},t.prototype.EraseHistory=function(e){return this._connection.send("EraseHistory",e,"json",!1,void 0,"EraseHistoryResponse")},t.prototype.ListHistory=function(e){return this._connection.send("ListHistory",e,"json",!1,void 0,"ListHistoryResponse")},t.prototype.Ping=function(e){return this._connection.send("Ping",e,"json",!1,void 0,"WsDfuPingResponse")},t.prototype.Savexml=function(e){return this._connection.send("Savexml",e,"json",!1,void 0,"SavexmlResponse")},t.prototype.SuperfileAction=function(e){return this._connection.send("SuperfileAction",e,"json",!1,void 0,"SuperfileActionResponse")},t.prototype.SuperfileList=function(e){return this._connection.send("SuperfileList",e,"json",!1,void 0,"SuperfileListResponse")},t}(Service),DFUArrayActions=exports.WsDfu.DFUArrayActions,DFUDefFileFormat=exports.WsDfu.DFUDefFileFormat,DFUChangeProtection=exports.WsDfu.DFUChangeProtection,DFUChangeRestriction=exports.WsDfu.DFUChangeRestriction,DFUService=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends(t,e),t.prototype.DFUFile=function(e){return this._connection.send("DFUDefFile",e,"text")},t}(DfuServiceBase),DFUXRefService=function(e){function t(t){return e.call(this,t,"WsDFUXRef","1.01")||this}return __extends(t,e),t.prototype.DFUXRefArrayAction=function(e){return this._connection.send("DFUXRefArrayAction",e)},t.prototype.DFUXRefBuild=function(e){return this._connection.send("DFUXRefBuild",e)},t.prototype.DFUXRefBuildCancel=function(e){return this._connection.send("DFUXRefBuildCancel",e)},t.prototype.DFUXRefCleanDirectories=function(e){return this._connection.send("DFUXRefCleanDirectories",e)},t.prototype.DFUXRefDirectories=function(e){return this._connection.send("DFUXRefDirectories",e,void 0,void 0,void 0,"DFUXRefDirectoriesQueryResponse")},t.prototype.DFUXRefFoundFiles=function(e){return this._connection.send("DFUXRefFoundFiles",e,void 0,void 0,void 0,"DFUXRefFoundFilesQueryResponse")},t.prototype.DFUXRefList=function(e){return void 0===e&&(e={}),this._connection.send("DFUXRefList",e)},t.prototype.DFUXRefLostFiles=function(e){return this._connection.send("DFUXRefLostFiles",e,void 0,void 0,void 0,"DFUXRefLostFilesQueryResponse")},t.prototype.DFUXRefMessages=function(e){return this._connection.send("DFUXRefMessages",e,void 0,void 0,void 0,"DFUXRefMessagesQueryResponse")},t.prototype.DFUXRefOrphanFiles=function(e){return this._connection.send("DFUXRefOrphanFiles",e,void 0,void 0,void 0,"DFUXRefOrphanFilesQueryResponse")},t.prototype.DFUXRefUnusedFiles=function(e){return this._connection.send("DFUXRefUnusedFiles",e)},t}(Service);function jsonToIField(e,t){var n=typeof t;switch(n){case"boolean":case"number":case"string":return{id:e,type:n};case"object":if(t.Row instanceof Array&&(t=t.Row),t instanceof Array)return{id:e,type:"dataset",children:jsonToIFieldArr(t[0])};if(t instanceof Object){if(t.Item&&t.Item instanceof Array&&1===t.Item.length){var r=typeof t.Item[0];if("string"===r||"number"===r)return{id:e,type:"set",fieldType:r};throw new Error("Unknown field type")}return{id:e,type:"object",fields:jsonToIFieldObj(t)}}default:throw new Error("Unknown field type")}}function jsonToIFieldArr(e){e.Row&&e.Row instanceof Array&&(e=e.Row[0]);var t=[];for(var n in e)t.push(jsonToIField(n,e[n]));return t}function jsonToIFieldObj(e){var t={};for(var n in e)t[n]=jsonToIField(n,e[n]);return t}var EclService=function(e){function t(t){return e.call(this,t,"WsEcl","0")||this}return __extends(t,e),t.prototype.opts=function(){return this._connection.opts()},t.prototype.requestJson=function(e,t){return this._connection.send("example/request/query/".concat(e,"/").concat(t,"/json"),{},"text").then((function(e){var t=JSON.parse(e);for(var n in t)return t[n];return{}})).then(jsonToIFieldArr)},t.prototype.responseJson=function(e,t){return this._connection.send("example/response/query/".concat(e,"/").concat(t,"/json"),{},"text").then((function(e){var t=JSON.parse(e);for(var n in t)return t[n].Results;return{}})).then((function(e){var t={};for(var n in e)t[n]=jsonToIFieldArr(e[n]);return t}))},t.prototype.submit=function(e,t,n){var r="submit/query/".concat(e,"/").concat(t);return this._connection.send(r,n,"json2").then((function(e){if(e.Results&&e.Results.Exception)throw new ESPExceptions(r,n,{Source:"wsEcl.submit",Exception:e.Results.Exception});return e.Results}))},t}(Service),ElkServiceBase=function(e){function t(t){return e.call(this,t,"ws_elk","1")||this}return __extends(t,e),t.prototype.GetConfigDetails=function(e){return this._connection.send("GetConfigDetails",e)},t.prototype.Ping=function(e){return this._connection.send("Ping",e)},t}(Service),ElkService=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends(t,e),t}(ElkServiceBase);exports.WsLogaccess=void 0,function(e){var t,n,r,o,i,s,c;(t=e.LogColumnType||(e.LogColumnType={})).global="global",t.workunits="workunits",t.components="components",t.audience="audience",t.class="class",t.instance="instance",t.node="node",t.message="message",t.logid="logid",t.processid="processid",t.threadid="threadid",t.timestamp="timestamp",(n=e.LogColumnValueType||(e.LogColumnValueType={})).string="string",n.numeric="numeric",n.datetime="datetime",n.enum="enum",(r=e.LogAccessType||(e.LogAccessType={}))[r.All=0]="All",r[r.ByJobID=1]="ByJobID",r[r.ByComponent=2]="ByComponent",r[r.ByLogType=3]="ByLogType",r[r.ByTargetAudience=4]="ByTargetAudience",r[r.BySourceInstance=5]="BySourceInstance",r[r.BySourceNode=6]="BySourceNode",r[r.ByFieldName=7]="ByFieldName",(o=e.LogAccessFilterOperator||(e.LogAccessFilterOperator={}))[o.NONE=0]="NONE",o[o.AND=1]="AND",o[o.OR=2]="OR",(i=e.LogSelectColumnMode||(e.LogSelectColumnMode={}))[i.MIN=0]="MIN",i[i.DEFAULT=1]="DEFAULT",i[i.ALL=2]="ALL",i[i.CUSTOM=3]="CUSTOM",(s=e.SortColumType||(e.SortColumType={}))[s.ByDate=0]="ByDate",s[s.ByJobID=1]="ByJobID",s[s.ByComponent=2]="ByComponent",s[s.ByLogType=3]="ByLogType",s[s.ByTargetAudience=4]="ByTargetAudience",s[s.BySourceInstance=5]="BySourceInstance",s[s.BySourceNode=6]="BySourceNode",s[s.ByFieldName=7]="ByFieldName",(c=e.SortDirection||(e.SortDirection={}))[c.ASC=0]="ASC",c[c.DSC=1]="DSC"}(exports.WsLogaccess||(exports.WsLogaccess={}));var ElasticKnownColumns,LogaccessServiceBase=function(e){function t(t){return e.call(this,t,"ws_logaccess","1.04")||this}return __extends(t,e),t.prototype.GetLogAccessInfo=function(e){return this._connection.send("GetLogAccessInfo",e,"json",!1,void 0,"GetLogAccessInfoResponse")},t.prototype.GetLogs=function(e){return this._connection.send("GetLogs",e,"json",!1,void 0,"GetLogsResponse")},t.prototype.Ping=function(e){return this._connection.send("Ping",e,"json",!1,void 0,"ws_logaccessPingResponse")},t}(Service),logger$4=util.scopedLogger("@hpcc-js/comms/services/wsLogaccess.ts");!function(e){e.audience="hpcc.log.audience",e.class="hpcc.log.class",e.containerName="kubernetes.container.name",e.jobId="hpcc.log.jobid",e.message="hpcc.log.message",e.procId="hpcc.log.procid",e.sequence="hpcc.log.sequence",e.threadId="hpcc.log.threadid",e.timestamp="hpcc.log.timestamp"}(ElasticKnownColumns||(ElasticKnownColumns={}));var RElasticKnownColumns={};for(var key in ElasticKnownColumns)ElasticKnownColumns.hasOwnProperty(key)&&(RElasticKnownColumns[ElasticKnownColumns[key]]=key);var AzureKnownColumns,elasticToLogLine=function(e){var t={};for(var n in RElasticKnownColumns)t[RElasticKnownColumns[n]]=null==e?void 0:e.fields[0][n];return t};!function(e){e.audience="hpcc_log_audience",e.class="hpcc_log_class",e.containerID="ContainerID",e.containerName="ContainerID",e.jobId="hpcc_log_jobid",e.message="hpcc_log_message",e.procId="",e.sequence="hpcc_log_sequence",e.threadId="hpcc_log_threadid",e.timestamp="hpcc_log_timestamp"}(AzureKnownColumns||(AzureKnownColumns={}));var RAzureKnownColumns={};for(var key in AzureKnownColumns)AzureKnownColumns.hasOwnProperty(key)&&(RAzureKnownColumns[AzureKnownColumns[key]]=key);var azureToLogLine=function(e){var t,n={};for(var r in RAzureKnownColumns)n[RAzureKnownColumns[r]]=null!==(t=null==e?void 0:e.fields[0][r])&&void 0!==t?t:"";return n},LogaccessService=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends(t,e),t.prototype.GetLogAccessInfo=function(t){return void 0===t&&(t={}),this._logAccessInfo||(this._logAccessInfo=e.prototype.GetLogAccessInfo.call(this,t)),this._logAccessInfo},t.prototype.GetLogs=function(t){return e.prototype.GetLogs.call(this,t)},t.prototype.GetLogsEx=function(e){var t,n,r,o,i,s,c,u,a,p;return __awaiter(this,void 0,void 0,(function(){var l,d,f,h,g,y;return __generator(this,(function(A){switch(A.label){case 0:return[4,this.GetLogAccessInfo()];case 1:for(g in l=A.sent(),d={Filter:{leftBinaryFilter:{BinaryLogFilter:[{leftFilter:{LogCategory:exports.WsLogaccess.LogAccessType.All}}]}},Range:{StartDate:new Date(0).toISOString()},LogLineStartFrom:null!==(t=e.LogLineStartFrom)&&void 0!==t?t:0,LogLineLimit:null!==(n=e.LogLineLimit)&&void 0!==n?n:100,SelectColumnMode:exports.WsLogaccess.LogSelectColumnMode.DEFAULT,Format:"JSON"},f=[],h=function(t){var n;switch(l.RemoteLogManagerType){case"azureloganalyticscurl":t in AzureKnownColumns&&(n=AzureKnownColumns[t]);break;case"elasticstack":t in ElasticKnownColumns&&(n=ElasticKnownColumns[t])}n&&(Array.isArray(e[t])?e[t].forEach((function(e){f.push({LogCategory:exports.WsLogaccess.LogAccessType.ByFieldName,SearchField:n,SearchByValue:e})})):f.push({LogCategory:exports.WsLogaccess.LogAccessType.ByFieldName,SearchField:n,SearchByValue:e[t]}))},e)h(g);return f.length>2?(y=d.Filter.leftBinaryFilter.BinaryLogFilter[0],f.forEach((function(e,t){var n=exports.WsLogaccess.LogAccessFilterOperator.AND;t>0?(f[t-1].SearchField===e.SearchField&&(n=exports.WsLogaccess.LogAccessFilterOperator.OR),t===f.length-1?(y.Operator=n,y.rightFilter=e):(y.Operator=n,y.rightBinaryFilter={BinaryLogFilter:[{leftFilter:e}]},y=y.rightBinaryFilter.BinaryLogFilter[0])):y.leftFilter=e}))):(delete d.Filter.leftBinaryFilter,d.Filter.leftFilter={LogCategory:exports.WsLogaccess.LogAccessType.All},(null===(r=f[0])||void 0===r?void 0:r.SearchField)&&(d.Filter.leftFilter={LogCategory:null===(o=f[0])||void 0===o?void 0:o.LogCategory,SearchField:null===(i=f[0])||void 0===i?void 0:i.SearchField,SearchByValue:null===(s=f[0])||void 0===s?void 0:s.SearchByValue}),(null===(c=f[1])||void 0===c?void 0:c.SearchField)&&(d.Filter.Operator=exports.WsLogaccess.LogAccessFilterOperator.AND,f[0].SearchField===f[1].SearchField&&(d.Filter.Operator=exports.WsLogaccess.LogAccessFilterOperator.OR),d.Filter.rightFilter={LogCategory:null===(u=f[0])||void 0===u?void 0:u.LogCategory,SearchField:null===(a=f[1])||void 0===a?void 0:a.SearchField,SearchByValue:null===(p=f[1])||void 0===p?void 0:p.SearchByValue})),e.StartDate&&(d.Range.StartDate=e.StartDate.toISOString()),e.EndDate&&(d.Range.EndDate=e.EndDate.toISOString()),[2,this.GetLogs(d).then((function(e){var t,n,r,o,i;try{var s=JSON.parse(e.LogLines),c=[];switch(l.RemoteLogManagerType){case"azureloganalyticscurl":c=null!==(n=null===(t=s.lines)||void 0===t?void 0:t.map(azureToLogLine))&&void 0!==n?n:[];break;case"elasticstack":c=null!==(o=null===(r=s.lines)||void 0===r?void 0:r.map(elasticToLogLine))&&void 0!==o?o:[];break;default:logger$4.warning("Unknown RemoteLogManagerType: ".concat(l.RemoteLogManagerType)),c=[]}return{lines:c,total:null!==(i=e.TotalLogLinesAvailable)&&void 0!==i?i:1e4}}catch(e){logger$4.error(e)}return{lines:[],total:0}}))]}}))}))},t}(LogaccessServiceBase);function ascending(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}function bisector(e){return 1===e.length&&(e=ascendingComparator(e)),{left:function(t,n,r,o){for(null==r&&(r=0),null==o&&(o=t.length);r<o;){var i=r+o>>>1;e(t[i],n)<0?r=i+1:o=i}return r},right:function(t,n,r,o){for(null==r&&(r=0),null==o&&(o=t.length);r<o;){var i=r+o>>>1;e(t[i],n)>0?o=i:r=i+1}return r}}}function ascendingComparator(e){return function(t,n){return ascending(e(t),n)}}function number(e){return null===e?NaN:+e}function d3Max(e,t){var n,r,o=e.length,i=-1;if(null==t){for(;++i<o;)if(null!=(n=e[i])&&n>=n)for(r=n;++i<o;)null!=(n=e[i])&&n>r&&(r=n)}else for(;++i<o;)if(null!=(n=t(e[i],i,e))&&n>=n)for(r=n;++i<o;)null!=(n=t(e[i],i,e))&&n>r&&(r=n);return r}function d3Mean(e,t){var n,r=e.length,o=r,i=-1,s=0;if(null==t)for(;++i<r;)isNaN(n=number(e[i]))?--o:s+=n;else for(;++i<r;)isNaN(n=number(t(e[i],i,e)))?--o:s+=n;if(o)return s/o}bisector(ascending);var MachineServiceBase=function(e){function t(t){return e.call(this,t,"ws_machine","1.17")||this}return __extends(t,e),t.prototype.GetComponentStatus=function(e){return this._connection.send("GetComponentStatus",e)},t.prototype.GetComponentUsage=function(e){return this._connection.send("GetComponentUsage",e)},t.prototype.GetMachineInfo=function(e){return this._connection.send("GetMachineInfo",e)},t.prototype.GetMachineInfoEx=function(e){return this._connection.send("GetMachineInfoEx",e)},t.prototype.GetMetrics=function(e){return this._connection.send("GetMetrics",e)},t.prototype.GetNodeGroupUsage=function(e){return this._connection.send("GetNodeGroupUsage",e)},t.prototype.GetTargetClusterInfo=function(e){return this._connection.send("GetTargetClusterInfo",e)},t.prototype.GetTargetClusterUsage=function(e){return this._connection.send("GetTargetClusterUsage",e)},t.prototype.Ping=function(e){return this._connection.send("Ping",e)},t.prototype.UpdateComponentStatus=function(e){return this._connection.send("UpdateComponentStatus",e)},t}(Service),MachineService=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends(t,e),t.prototype.GetTargetClusterUsageEx=function(e,t){return void 0===t&&(t=!1),this._connection.send("GetTargetClusterUsage",{TargetClusters:e?{Item:e}:{},BypassCachedResult:t}).then((function(e){return util.exists("TargetClusterUsages.TargetClusterUsage",e)?e.TargetClusterUsages.TargetClusterUsage:[]})).then((function(e){return e.filter((function(e){return!!e.ComponentUsages})).map((function(e){var t=e.ComponentUsages.ComponentUsage.map((function(e){var t=(e.MachineUsages&&e.MachineUsages.MachineUsage?e.MachineUsages.MachineUsage:[]).map((function(e){var t=e.DiskUsages&&e.DiskUsages.DiskUsage?e.DiskUsages.DiskUsage.map((function(e){return __assign(__assign({},e),{Total:e.InUse+e.Available,PercentUsed:100-e.PercentAvailable})})):[];return{Name:e.Name,NetAddress:e.NetAddress,Description:e.Description,DiskUsages:t,mean:d3Mean(t.filter((function(e){return!isNaN(e.PercentUsed)})),(function(e){return e.PercentUsed})),max:d3Max(t.filter((function(e){return!isNaN(e.PercentUsed)})),(function(e){return e.PercentUsed}))}}));return{Type:e.Type,Name:e.Name,Description:e.Description,MachineUsages:t,MachineUsagesDescription:t.reduce((function(e,t){return e+(t.Description||"")}),""),mean:d3Mean(t.filter((function(e){return!isNaN(e.mean)})),(function(e){return e.mean})),max:d3Max(t.filter((function(e){return!isNaN(e.max)})),(function(e){return e.max}))}}));return{Name:e.Name,Description:e.Description,ComponentUsages:t,ComponentUsagesDescription:t.reduce((function(e,t){return e+(t.MachineUsagesDescription||"")}),""),mean:d3Mean(t.filter((function(e){return!isNaN(e.mean)})),(function(e){return e.mean})),max:d3Max(t.filter((function(e){return!isNaN(e.max)})),(function(e){return e.max}))}}))}))},t}(MachineServiceBase),PackageProcessServiceBase=function(e){function t(t){return e.call(this,t,"WsPackageProcess","1.04")||this}return __extends(t,e),t.prototype.ActivatePackage=function(e){return this._connection.send("ActivatePackage",e)},t.prototype.AddPackage=function(e){return this._connection.send("AddPackage",e)},t.prototype.AddPartToPackageMap=function(e){return this._connection.send("AddPartToPackageMap",e)},t.prototype.CopyPackageMap=function(e){return this._connection.send("CopyPackageMap",e)},t.prototype.DeActivatePackage=function(e){return this._connection.send("DeActivatePackage",e)},t.prototype.DeletePackage=function(e){return this._connection.send("DeletePackage",e)},t.prototype.Echo=function(e){return this._connection.send("Echo",e)},t.prototype.GetPackage=function(e){return this._connection.send("GetPackage",e)},t.prototype.GetPackageMapById=function(e){return this._connection.send("GetPackageMapById",e)},t.prototype.GetPackageMapSelectOptions=function(e){return this._connection.send("GetPackageMapSelectOptions",e)},t.prototype.GetPartFromPackageMap=function(e){return this._connection.send("GetPartFromPackageMap",e)},t.prototype.GetQueryFileMapping=function(e){return this._connection.send("GetQueryFileMapping",e)},t.prototype.ListPackage=function(e){return this._connection.send("ListPackage",e)},t.prototype.ListPackages=function(e){return this._connection.send("ListPackages",e)},t.prototype.Ping=function(e){return this._connection.send("Ping",e)},t.prototype.RemovePartFromPackageMap=function(e){return this._connection.send("RemovePartFromPackageMap",e)},t.prototype.ValidatePackage=function(e){return this._connection.send("ValidatePackage",e)},t}(Service),PackageProcessService=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends(t,e),t}(PackageProcessServiceBase),ResourcesServiceBase=function(e){function t(t){return e.call(this,t,"WsResources","1.01")||this}return __extends(t,e),t.prototype.Ping=function(e){return this._connection.send("Ping",e)},t.prototype.ServiceQuery=function(e){return this._connection.send("ServiceQuery",e)},t.prototype.WebLinksQuery=function(e){return this._connection.send("WebLinksQuery",e)},t}(Service),ResourcesService=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends(t,e),t}(ResourcesServiceBase),SMCService=function(){function e(e){this._connection=new ESPConnection(e,"WsSMC","1.24")}return e.prototype.connectionOptions=function(){return this._connection.opts()},e.prototype.Activity=function(e){return this._connection.send("Activity",e).then((function(e){return __assign({Running:{ActiveWorkunit:[]}},e)}))},e.prototype.BrowseResources=function(e){return this._connection.send("BrowseResources",e)},e.prototype.GetBuildInfo=function(e){return this._connection.send("GetBuildInfo",e)},e.prototype.GetStatusServerInfo=function(e){return this._connection.send("GetStatusServerInfo",e)},e.prototype.GetThorQueueAvailability=function(e){return this._connection.send("GetThorQueueAvailability",e)},e.prototype.LockQuery=function(e){return this._connection.send("LockQuery",e)},e.prototype.NotInCommunityEdition=function(e){return this._connection.send("NotInCommunityEdition",e)},e.prototype.RoxieControlCmd=function(e){return this._connection.send("RoxieControlCmd",e)},e.prototype.SetBanner=function(e){return this._connection.send("SetBanner",e)},e.prototype.SMCJob=function(e){return this._connection.send("SMCJob",e)},e}(),StoreService=function(e){function t(t){return e.call(this,t,"WsStore","1")||this}return __extends(t,e),t.prototype.CreateStore=function(e){return this._connection.send("Fetch",e)},t.prototype.Delete=function(e){return this._connection.send("Delete",e).catch((function(e){if(e.isESPExceptions&&e.Exception.some((function(e){return-1===e.Code})))return{Exceptions:void 0,Success:!0};throw e}))},t.prototype.DeleteNamespace=function(e){return this._connection.send("DeleteNamespace",e)},t.prototype.Fetch=function(e){return this._connection.send("Fetch",e).catch((function(e){if(e.isESPExceptions&&e.Exception.some((function(e){return-1===e.Code})))return{Exceptions:void 0,Value:void 0};throw e}))},t.prototype.FetchAll=function(e){return this._connection.send("FetchAll",e)},t.prototype.FetchKeyMD=function(e){return this._connection.send("FetchKeyMD",e)},t.prototype.ListKeys=function(e){return this._connection.send("ListKeys",e)},t.prototype.ListNamespaces=function(e){return this._connection.send("ListNamespaces",e)},t.prototype.Set=function(e){return this._connection.send("Set",e)},t}(Service);exports.TpLogicalClusterQuery=void 0,function(e){var t;(t=e.RoxieQueueFilter||(e.RoxieQueueFilter={})).All="All",t.QueriesOnly="QueriesOnly",t.WorkunitsOnly="WorkunitsOnly"}(exports.TpLogicalClusterQuery||(exports.TpLogicalClusterQuery={}));var WsWorkunits,TopologyService=function(e){function t(t){return e.call(this,t,"WsTopology","1.31")||this}return __extends(t,e),t.prototype.connectionOptions=function(){return this._connection.opts()},t.prototype.protocol=function(){return this._connection.opts().baseUrl.split("//")[0]},t.prototype.ip=function(){return this._connection.opts().baseUrl.split("//")[1].split(":")[0]},t.prototype.TpLogicalClusterQuery=function(e){return void 0===e&&(e={}),this._connection.send("TpLogicalClusterQuery",e)},t.prototype.DefaultTpLogicalClusterQuery=function(e){return void 0===e&&(e={}),this.TpLogicalClusterQuery(e).then((function(e){return e.default?e.default:(e.TpLogicalClusters.TpLogicalCluster.some((function(e,r){return 0===r&&(n=e),"hthor"===e.Type&&(t=e,!0)})),t||n);var t,n}))},t.prototype.TpServiceQuery=function(e){return this._connection.send("TpServiceQuery",e)},t.prototype.TpTargetClusterQuery=function(e){return this._connection.send("TpTargetClusterQuery",e)},t.prototype.TpListTargetClusters=function(e){return this._connection.send("TpListTargetClusters",e)},t}(Service);!function(e){var t,n,r,o,i,s,c,u,a,p,l,d;(t=e.ECLWUActions||(e.ECLWUActions={})).Abort="Abort",t.Delete="Delete",t.Deschedule="Deschedule",t.Reschedule="Reschedule",t.Pause="Pause",t.PauseNow="PauseNow",t.Protect="Protect",t.Unprotect="Unprotect",t.Restore="Restore",t.Resume="Resume",t.SetToFailed="SetToFailed",t.Archive="Archive",(n=e.EclDefinitionActions||(e.EclDefinitionActions={})).SyntaxCheck="SyntaxCheck",n.Deploy="Deploy",n.Publish="Publish",(r=e.ErrorMessageFormat||(e.ErrorMessageFormat={})).xml="xml",r.json="json",r.text="text",(o=e.LogSelectColumnMode||(e.LogSelectColumnMode={}))[o.MIN=0]="MIN",o[o.DEFAULT=1]="DEFAULT",o[o.ALL=2]="ALL",o[o.CUSTOM=3]="CUSTOM",(i=e.LogAccessLogFormat||(e.LogAccessLogFormat={}))[i.XML=0]="XML",i[i.JSON=1]="JSON",i[i.CSV=2]="CSV",(s=e.WUExceptionSeverity||(e.WUExceptionSeverity={})).info="info",s.warning="warning",s.error="error",s.alert="alert",(c=e.WUQueryFilterSuspendedType||(e.WUQueryFilterSuspendedType={})).Allqueries="Allqueries",c.Notsuspended="Notsuspended",c.Suspended="Suspended",c.Suspendedbyuser="Suspendedbyuser",c.Suspendedbyfirstnode="Suspendedbyfirstnode",c.Suspendedbyanynode="Suspendedbyanynode",(u=e.WUQuerySetFilterType||(e.WUQuerySetFilterType={})).All="All",u.Id="Id",u.Name="Name",u.Alias="Alias",u.Status="Status",(a=e.WUProtectFilter||(e.WUProtectFilter={})).All="All",a.Protected="Protected",a.NotProtected="NotProtected",(e.QuerySetAliasActionTypes||(e.QuerySetAliasActionTypes={})).Deactivate="Deactivate",(p=e.QuerysetImportActivation||(e.QuerysetImportActivation={})).None="None",p.ActivateImportedActive="ActivateImportedActive",(l=e.QuerySetQueryActionTypes||(e.QuerySetQueryActionTypes={})).Suspend="Suspend",l.Unsuspend="Unsuspend",l.ToggleSuspend="ToggleSuspend",l.Activate="Activate",l.Delete="Delete",l.DeleteQueriesAndWUs="DeleteQueriesAndWUs",l.RemoveAllAliases="RemoveAllAliases",l.ResetQueryStats="ResetQueryStats",(d=e.WUQueryActivationMode||(e.WUQueryActivationMode={}))[d.DoNotActivateQuery=0]="DoNotActivateQuery",d[d.ActivateQuery=1]="ActivateQuery",d[d.ActivateQuerySuspendPrevious=2]="ActivateQuerySuspendPrevious",d[d.ActivateQueryDeletePrevious=3]="ActivateQueryDeletePrevious"}(WsWorkunits||(WsWorkunits={}));var WorkunitsServiceBase=function(e){function t(t){return e.call(this,t,"WsWorkunits","1.95")||this}return __extends(t,e),t.prototype.GVCAjaxGraph=function(e){return this._connection.send("GVCAjaxGraph",e,"json",!1,void 0,"GVCAjaxGraphResponse")},t.prototype.Ping=function(e){return this._connection.send("Ping",e,"json",!1,void 0,"WsWorkunitsPingResponse")},t.prototype.WUAbort=function(e){return this._connection.send("WUAbort",e,"json",!1,void 0,"WUAbortResponse")},t.prototype.WUAction=function(e){return this._connection.send("WUAction",e,"json",!1,void 0,"WUActionResponse")},t.prototype.WUAddLocalFileToWorkunit=function(e){return this._connection.send("WUAddLocalFileToWorkunit",e,"json",!1,void 0,"WUAddLocalFileToWorkunitResponse")},t.prototype.WUAnalyseHotspot=function(e){return this._connection.send("WUAnalyseHotspot",e,"json",!1,void 0,"WUAnalyseHotspotResponse")},t.prototype.WUCDebug=function(e){return this._connection.send("WUCDebug",e,"json",!1,void 0,"WUDebugResponse")},t.prototype.WUCheckFeatures=function(e){return this._connection.send("WUCheckFeatures",e,"json",!1,void 0,"WUCheckFeaturesResponse")},t.prototype.WUClusterJobQueueLOG=function(e){return this._connection.send("WUClusterJobQueueLOG",e,"json",!1,void 0,"WUClusterJobQueueLOGResponse")},t.prototype.WUClusterJobQueueXLS=function(e){return this._connection.send("WUClusterJobQueueXLS",e,"json",!1,void 0,"WUClusterJobQueueXLSResponse")},t.prototype.WUClusterJobSummaryXLS=function(e){return this._connection.send("WUClusterJobSummaryXLS",e,"json",!1,void 0,"WUClusterJobSummaryXLSResponse")},t.prototype.WUClusterJobXLS=function(e){return this._connection.send("WUClusterJobXLS",e,"json",!1,void 0,"WUClusterJobXLSResponse")},t.prototype.WUCompileECL=function(e){return this._connection.send("WUCompileECL",e,"json",!1,void 0,"WUCompileECLResponse")},t.prototype.WUCopyLogicalFiles=function(e){return this._connection.send("WUCopyLogicalFiles",e,"json",!1,void 0,"WUCopyLogicalFilesResponse")},t.prototype.WUCopyQuerySet=function(e){return this._connection.send("WUCopyQuerySet",e,"json",!1,void 0,"WUCopyQuerySetResponse")},t.prototype.WUCreate=function(e){return this._connection.send("WUCreate",e,"json",!1,void 0,"WUCreateResponse")},t.prototype.WUCreateAndUpdate=function(e){return this._connection.send("WUCreateAndUpdate",e,"json",!1,void 0,"WUUpdateResponse")},t.prototype.WUCreateZAPInfo=function(e){return this._connection.send("WUCreateZAPInfo",e,"json",!1,void 0,"WUCreateZAPInfoResponse")},t.prototype.WUDelete=function(e){return this._connection.send("WUDelete",e,"json",!1,void 0,"WUDeleteResponse")},t.prototype.WUDeployWorkunit=function(e){return this._connection.send("WUDeployWorkunit",e,"json",!1,void 0,"WUDeployWorkunitResponse")},t.prototype.WUDetails=function(e){return this._connection.send("WUDetails",e,"json",!1,void 0,"WUDetailsResponse")},t.prototype.WUDetailsMeta=function(e){return this._connection.send("WUDetailsMeta",e,"json",!1,void 0,"WUDetailsMetaResponse")},t.prototype.WUEclDefinitionAction=function(e){return this._connection.send("WUEclDefinitionAction",e,"json",!1,void 0,"WUEclDefinitionActionResponse")},t.prototype.WUExport=function(e){return this._connection.send("WUExport",e,"json",!1,void 0,"WUExportResponse")},t.prototype.WUFile=function(e){return this._connection.send("WUFile",e,"json",!1,void 0,"WULogFileResponse")},t.prototype.WUFullResult=function(e){return this._connection.send("WUFullResult",e,"json",!1,void 0,"WUFullResultResponse")},t.prototype.WUGVCGraphInfo=function(e){return this._connection.send("WUGVCGraphInfo",e,"json",!1,void 0,"WUGVCGraphInfoResponse")},t.prototype.WUGetArchiveFile=function(e){return this._connection.send("WUGetArchiveFile",e,"json",!1,void 0,"WUGetArchiveFileResponse")},t.prototype.WUGetDependancyTrees=function(e){return this._connection.send("WUGetDependancyTrees",e,"json",!1,void 0,"WUGetDependancyTreesResponse")},t.prototype.WUGetGraph=function(e){return this._connection.send("WUGetGraph",e,"json",!1,void 0,"WUGetGraphResponse")},t.prototype.WUGetGraphNameAndTypes=function(e){return this._connection.send("WUGetGraphNameAndTypes",e,"json",!1,void 0,"WUGetGraphNameAndTypesResponse")},t.prototype.WUGetNumFileToCopy=function(e){return this._connection.send("WUGetNumFileToCopy",e,"json",!1,void 0,"WUGetNumFileToCopyResponse")},t.prototype.WUGetPlugins=function(e){return this._connection.send("WUGetPlugins",e,"json",!1,void 0,"WUGetPluginsResponse")},t.prototype.WUGetStats=function(e){return this._connection.send("WUGetStats",e,"json",!1,void 0,"WUGetStatsResponse")},t.prototype.WUGetThorJobList=function(e){return this._connection.send("WUGetThorJobList",e,"json",!1,void 0,"WUGetThorJobListResponse")},t.prototype.WUGetThorJobQueue=function(e){return this._connection.send("WUGetThorJobQueue",e,"json",!1,void 0,"WUGetThorJobQueueResponse")},t.prototype.WUGetZAPInfo=function(e){return this._connection.send("WUGetZAPInfo",e,"json",!1,void 0,"WUGetZAPInfoResponse")},t.prototype.WUGraphInfo=function(e){return this._connection.send("WUGraphInfo",e,"json",!1,void 0,"WUGraphInfoResponse")},t.prototype.WUGraphTiming=function(e){return this._connection.send("WUGraphTiming",e,"json",!1,void 0,"WUGraphTimingResponse")},t.prototype.WUInfo=function(e){return this._connection.send("WUInfo",e,"json",!1,void 0,"WUInfoResponse")},t.prototype.WUInfoDetails=function(e){return this._connection.send("WUInfoDetails",e,"json",!1,void 0,"WUInfoResponse")},t.prototype.WUJobList=function(e){return this._connection.send("WUJobList",e,"json",!1,void 0,"WUJobListResponse")},t.prototype.WULightWeightQuery=function(e){return this._connection.send("WULightWeightQuery",e,"json",!1,void 0,"WULightWeightQueryResponse")},t.prototype.WUListArchiveFiles=function(e){return this._connection.send("WUListArchiveFiles",e,"json",!1,void 0,"WUListArchiveFilesResponse")},t.prototype.WUListLocalFileRequired=function(e){return this._connection.send("WUListLocalFileRequired",e,"json",!1,void 0,"WUListLocalFileRequiredResponse")},t.prototype.WUListQueries=function(e){return this._connection.send("WUListQueries",e,"json",!1,void 0,"WUListQueriesResponse")},t.prototype.WUListQueriesUsingFile=function(e){return this._connection.send("WUListQueriesUsingFile",e,"json",!1,void 0,"WUListQueriesUsingFileResponse")},t.prototype.WUMultiQuerysetDetails=function(e){return this._connection.send("WUMultiQuerysetDetails",e,"json",!1,void 0,"WUMultiQuerySetDetailsResponse")},t.prototype.WUProcessGraph=function(e){return this._connection.send("WUProcessGraph",e,"json",!1,void 0,"WUProcessGraphResponse")},t.prototype.WUProtect=function(e){return this._connection.send("WUProtect",e,"json",!1,void 0,"WUProtectResponse")},t.prototype.WUPublishWorkunit=function(e){return this._connection.send("WUPublishWorkunit",e,"json",!1,void 0,"WUPublishWorkunitResponse")},t.prototype.WUPushEvent=function(e){return this._connection.send("WUPushEvent",e,"json",!1,void 0,"WUPushEventResponse")},t.prototype.WUQuery=function(e){return this._connection.send("WUQuery",e,"json",!1,void 0,"WUQueryResponse")},t.prototype.WUQueryConfig=function(e){return this._connection.send("WUQueryConfig",e,"json",!1,void 0,"WUQueryConfigResponse")},t.prototype.WUQueryDetails=function(e){return this._connection.send("WUQueryDetails",e,"json",!1,void 0,"WUQueryDetailsResponse")},t.prototype.WUQueryDetailsLightWeight=function(e){return this._connection.send("WUQueryDetailsLightWeight",e,"json",!1,void 0,"WUQueryDetailsResponse")},t.prototype.WUQueryFiles=function(e){return this._connection.send("WUQueryFiles",e,"json",!1,void 0,"WUQueryFilesResponse")},t.prototype.WUQueryGetGraph=function(e){return this._connection.send("WUQueryGetGraph",e,"json",!1,void 0,"WUQueryGetGraphResponse")},t.prototype.WUQueryGetSummaryStats=function(e){return this._connection.send("WUQueryGetSummaryStats",e,"json",!1,void 0,"WUQueryGetSummaryStatsResponse")},t.prototype.WUQuerysetAliasAction=function(e){return this._connection.send("WUQuerysetAliasAction",e,"json",!1,void 0,"WUQuerySetAliasActionResponse")},t.prototype.WUQuerysetCopyQuery=function(e){return this._connection.send("WUQuerysetCopyQuery",e,"json",!1,void 0,"WUQuerySetCopyQueryResponse")},t.prototype.WUQuerysetDetails=function(e){return this._connection.send("WUQuerysetDetails",e,"json",!1,void 0,"WUQuerySetDetailsResponse")},t.prototype.WUQuerysetExport=function(e){return this._connection.send("WUQuerysetExport",e,"json",!1,void 0,"WUQuerysetExportResponse")},t.prototype.WUQuerysetImport=function(e){return this._connection.send("WUQuerysetImport",e,"json",!1,void 0,"WUQuerysetImportResponse")},t.prototype.WUQuerysetQueryAction=function(e){return this._connection.send("WUQuerysetQueryAction",e,"json",!1,void 0,"WUQuerySetQueryActionResponse")},t.prototype.WUQuerysets=function(e){return this._connection.send("WUQuerysets",e,"json",!1,void 0,"WUQuerysetsResponse")},t.prototype.WURecreateQuery=function(e){return this._connection.send("WURecreateQuery",e,"json",!1,void 0,"WURecreateQueryResponse")},t.prototype.WUResubmit=function(e){return this._connection.send("WUResubmit",e,"json",!1,void 0,"WUResubmitResponse")},t.prototype.WUResult=function(e){return this._connection.send("WUResult",e,"json",!1,void 0,"WUResultResponse")},t.prototype.WUResultBin=function(e){return this._connection.send("WUResultBin",e,"json",!1,void 0,"WUResultBinResponse")},t.prototype.WUResultSummary=function(e){return this._connection.send("WUResultSummary",e,"json",!1,void 0,"WUResultSummaryResponse")},t.prototype.WUResultView=function(e){return this._connection.send("WUResultView",e,"json",!1,void 0,"WUResultViewResponse")},t.prototype.WURun=function(e){return this._connection.send("WURun",e,"json",!1,void 0,"WURunResponse")},t.prototype.WUSchedule=function(e){return this._connection.send("WUSchedule",e,"json",!1,void 0,"WUScheduleResponse")},t.prototype.WUShowScheduled=function(e){return this._connection.send("WUShowScheduled",e,"json",!1,void 0,"WUShowScheduledResponse")},t.prototype.WUSubmit=function(e){return this._connection.send("WUSubmit",e,"json",!1,void 0,"WUSubmitResponse")},t.prototype.WUSyntaxCheckECL=function(e){return this._connection.send("WUSyntaxCheckECL",e,"json",!1,void 0,"WUSyntaxCheckResponse")},t.prototype.WUUpdate=function(e){return this._connection.send("WUUpdate",e,"json",!1,void 0,"WUUpdateResponse")},t.prototype.WUUpdateQueryEntry=function(e){return this._connection.send("WUUpdateQueryEntry",e,"json",!1,void 0,"WUUpdateQueryEntryResponse")},t.prototype.WUWaitCompiled=function(e){return this._connection.send("WUWaitCompiled",e,"json",!1,void 0,"WUWaitResponse")},t.prototype.WUWaitComplete=function(e){return this._connection.send("WUWaitComplete",e,"json",!1,void 0,"WUWaitResponse")},t}(Service);function isECLResult(e){return"string"==typeof e.Name}function isWUQueryECLWorkunit(e){return void 0!==e.TotalClusterTime}function isWUInfoWorkunit(e){return void 0!==e.StateEx}exports.WUStateID=void 0,function(e){e[e.Unknown=0]="Unknown",e[e.Compiled=1]="Compiled",e[e.Running=2]="Running",e[e.Completed=3]="Completed",e[e.Failed=4]="Failed",e[e.Archived=5]="Archived",e[e.Aborting=6]="Aborting",e[e.Aborted=7]="Aborted",e[e.Blocked=8]="Blocked",e[e.Submitted=9]="Submitted",e[e.Scheduled=10]="Scheduled",e[e.Compiling=11]="Compiling",e[e.Wait=12]="Wait",e[e.UploadingFiled=13]="UploadingFiled",e[e.DebugPaused=14]="DebugPaused",e[e.DebugRunning=15]="DebugRunning",e[e.Paused=16]="Paused",e[e.LAST=17]="LAST",e[e.NotFound=999]="NotFound"}(exports.WUStateID||(exports.WUStateID={})),exports.WUUpdate=void 0,function(e){var t;(t=e.Action||(e.Action={}))[t.Unknown=0]="Unknown",t[t.Compile=1]="Compile",t[t.Check=2]="Check",t[t.Run=3]="Run",t[t.ExecuteExisting=4]="ExecuteExisting",t[t.Pause=5]="Pause",t[t.PauseNow=6]="PauseNow",t[t.Resume=7]="Resume",t[t.Debug=8]="Debug",t[t.__size=9]="__size"}(exports.WUUpdate||(exports.WUUpdate={}));var WorkunitsService=function(e){function t(t){return e.call(this,t,"WsWorkunits","1.95")||this}return __extends(t,e),t.prototype.opts=function(){return this._connection.opts()},t.prototype.connection=function(){return this._connection.clone()},t.prototype.Ping=function(){return this._connection.send("Ping",{},"json",!1,void 0,"WsWorkunitsPingResponse").then((function(e){return{result:!0}})).catch((function(e){return{result:!1,error:e}}))},t.prototype.WUQuery=function(e){return void 0===e&&(e={}),this._connection.send("WUQuery",e).then((function(e){return util.deepMixin({Workunits:{ECLWorkunit:[]}},e)}))},t.prototype.WUInfo=function(e){var t=__assign({Wuid:"",TruncateEclTo64k:!0,IncludeExceptions:!1,IncludeGraphs:!1,IncludeSourceFiles:!1,IncludeResults:!1,IncludeResultsViewNames:!1,IncludeVariables:!1,IncludeTimers:!1,IncludeDebugValues:!1,IncludeApplicationValues:!1,IncludeWorkflows:!1,IncludeXmlSchemas:!1,IncludeResourceURLs:!1,IncludeECL:!1,IncludeHelpers:!1,IncludeAllowedClusters:!1,IncludeTotalClusterTime:!0,IncludeServiceNames:!0,SuppressResultSchemas:!0},e);return this._connection.send("WUInfo",t)},t.prototype.WUCreate=function(){return this._connection.send("WUCreate")},t.prototype.WUUpdate=function(e){return this._connection.send("WUUpdate",e,"json",!0)},t.prototype.WUSubmit=function(e){return this._connection.send("WUSubmit",e)},t.prototype.WUResubmit=function(e){return this._connection.toESPStringArray(e,"Wuids"),this._connection.send("WUResubmit",e)},t.prototype.WUQueryDetails=function(e){return this._connection.send("WUQueryDetails",e)},t.prototype.WUListQueries=function(e){return this._connection.send("WUListQueries",e)},t.prototype.WUPushEvent=function(e){return this._connection.send("WUPushEvent",e)},t.prototype.WUAction=function(e){return e.ActionType=e.WUActionType,this._connection.send("WUAction",e)},t.prototype.WUGetZAPInfo=function(e){return this._connection.send("WUGetZAPInfo",e)},t.prototype.WUShowScheduled=function(e){return this._connection.send("WUShowScheduled",e)},t.prototype.WUQuerySetAliasAction=function(e){return this._connection.send("WUQuerySetAliasAction",e)},t.prototype.WUQuerySetQueryAction=function(e){return this._connection.send("WUQuerySetQueryAction",e)},t.prototype.WUPublishWorkunit=function(e){return this._connection.send("WUPublishWorkunit",e)},t.prototype.WUQueryFiles=function(e){return this._connection.send("WUQueryFiles",e)},t.prototype.WUGetGraph=function(e){return this._connection.send("WUGetGraph",e)},t.prototype.WUResult=function(e,t){return this._connection.send("WUResult",e,"json",!1,t)},t.prototype.WUQueryGetGraph=function(e){return this._connection.send("WUQueryGetGraph",e)},t.prototype.WUFile=function(e){return this._connection.send("WUFile",e,"text")},t.prototype.WUGetStats=function(e){return this._connection.send("WUGetStats",e)},t.prototype.WUQueryGetSummaryStats=function(e){return this._connection.send("WUQueryGetSummaryStats",e)},t.prototype.WUDetailsMeta=function(e){return this._WUDetailsMetaPromise||(this._WUDetailsMetaPromise=this._connection.send("WUDetailsMeta",e)),this._WUDetailsMetaPromise},t.prototype.WUDetails=function(e){return this._connection.send("WUDetails",e)},t.prototype.WUCDebug=function(e){return this._connection.send("WUCDebug",e,void 0,void 0,void 0,"WUDebug").then((function(e){var t=util.xml2json(e.Result).children();return t.length?t[0]:null}))},t}(Service),WorkunitsServiceEx=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends(t,e),t}(WorkunitsServiceBase);function formatDecimal(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function formatDecimalParts(e,t){if((n=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null;var n,r=e.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+e.slice(n+1)]}function exponent(e){return(e=formatDecimalParts(Math.abs(e)))?e[1]:NaN}function formatGroup(e,t){return function(n,r){for(var o=n.length,i=[],s=0,c=e[0],u=0;o>0&&c>0&&(u+c+1>r&&(c=Math.max(1,r-u)),i.push(n.substring(o-=c,o+c)),!((u+=c+1)>r));)c=e[s=(s+1)%e.length];return i.reverse().join(t)}}function formatNumerals(e){return function(t){return t.replace(/[0-9]/g,(function(t){return e[+t]}))}}var prefixExponent,re=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function formatSpecifier(e){if(!(t=re.exec(e)))throw new Error("invalid format: "+e);var t;return new FormatSpecifier({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}function FormatSpecifier(e){this.fill=void 0===e.fill?" ":e.fill+"",this.align=void 0===e.align?">":e.align+"",this.sign=void 0===e.sign?"-":e.sign+"",this.symbol=void 0===e.symbol?"":e.symbol+"",this.zero=!!e.zero,this.width=void 0===e.width?void 0:+e.width,this.comma=!!e.comma,this.precision=void 0===e.precision?void 0:+e.precision,this.trim=!!e.trim,this.type=void 0===e.type?"":e.type+""}function formatTrim(e){e:for(var t,n=e.length,r=1,o=-1;r<n;++r)switch(e[r]){case".":o=t=r;break;case"0":0===o&&(o=r),t=r;break;default:if(!+e[r])break e;o>0&&(o=0)}return o>0?e.slice(0,o)+e.slice(t+1):e}function formatPrefixAuto(e,t){var n=formatDecimalParts(e,t);if(!n)return e+"";var r=n[0],o=n[1],i=o-(prefixExponent=3*Math.max(-8,Math.min(8,Math.floor(o/3))))+1,s=r.length;return i===s?r:i>s?r+new Array(i-s+1).join("0"):i>0?r.slice(0,i)+"."+r.slice(i):"0."+new Array(1-i).join("0")+formatDecimalParts(e,Math.max(0,t+i-1))[0]}function formatRounded(e,t){var n=formatDecimalParts(e,t);if(!n)return e+"";var r=n[0],o=n[1];return o<0?"0."+new Array(-o).join("0")+r:r.length>o+1?r.slice(0,o+1)+"."+r.slice(o+1):r+new Array(o-r.length+2).join("0")}formatSpecifier.prototype=FormatSpecifier.prototype,FormatSpecifier.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(void 0===this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(void 0===this.precision?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type};var formatTypes={"%":function(e,t){return(100*e).toFixed(t)},b:function(e){return Math.round(e).toString(2)},c:function(e){return e+""},d:formatDecimal,e:function(e,t){return e.toExponential(t)},f:function(e,t){return e.toFixed(t)},g:function(e,t){return e.toPrecision(t)},o:function(e){return Math.round(e).toString(8)},p:function(e,t){return formatRounded(100*e,t)},r:formatRounded,s:formatPrefixAuto,X:function(e){return Math.round(e).toString(16).toUpperCase()},x:function(e){return Math.round(e).toString(16)}};function identity(e){return e}var locale$1,format,map=Array.prototype.map,prefixes=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function formatLocale$1(e){var t=void 0===e.grouping||void 0===e.thousands?identity:formatGroup(map.call(e.grouping,Number),e.thousands+""),n=void 0===e.currency?"":e.currency[0]+"",r=void 0===e.currency?"":e.currency[1]+"",o=void 0===e.decimal?".":e.decimal+"",i=void 0===e.numerals?identity:formatNumerals(map.call(e.numerals,String)),s=void 0===e.percent?"%":e.percent+"",c=void 0===e.minus?"-":e.minus+"",u=void 0===e.nan?"NaN":e.nan+"";function a(e){var a=(e=formatSpecifier(e)).fill,p=e.align,l=e.sign,d=e.symbol,f=e.zero,h=e.width,g=e.comma,y=e.precision,A=e.trim,m=e.type;"n"===m?(g=!0,m="g"):formatTypes[m]||(void 0===y&&(y=12),A=!0,m="g"),(f||"0"===a&&"="===p)&&(f=!0,a="0",p="=");var b="$"===d?n:"#"===d&&/[boxX]/.test(m)?"0"+m.toLowerCase():"",C="$"===d?r:/[%p]/.test(m)?s:"",D=formatTypes[m],B=/[defgprs%]/.test(m);function v(e){var n,r,s,d=b,v=C;if("c"===m)v=D(e)+v,e="";else{var w=(e=+e)<0||1/e<0;if(e=isNaN(e)?u:D(Math.abs(e),y),A&&(e=formatTrim(e)),w&&0==+e&&"+"!==l&&(w=!1),d=(w?"("===l?l:c:"-"===l||"("===l?"":l)+d,v=("s"===m?prefixes[8+prefixExponent/3]:"")+v+(w&&"("===l?")":""),B)for(n=-1,r=e.length;++n<r;)if(48>(s=e.charCodeAt(n))||s>57){v=(46===s?o+e.slice(n+1):e.slice(n))+v,e=e.slice(0,n);break}}g&&!f&&(e=t(e,1/0));var S=d.length+e.length+v.length,E=S<h?new Array(h-S+1).join(a):"";switch(g&&f&&(e=t(E+e,E.length?h-v.length:1/0),E=""),p){case"<":e=d+e+v+E;break;case"=":e=d+E+e+v;break;case"^":e=E.slice(0,S=E.length>>1)+d+e+v+E.slice(S);break;default:e=E+d+e+v}return i(e)}return y=void 0===y?6:/[gprs]/.test(m)?Math.max(1,Math.min(21,y)):Math.max(0,Math.min(20,y)),v.toString=function(){return e+""},v}return{format:a,formatPrefix:function(e,t){var n=a(((e=formatSpecifier(e)).type="f",e)),r=3*Math.max(-8,Math.min(8,Math.floor(exponent(t)/3))),o=Math.pow(10,-r),i=prefixes[8+r/3];return function(e){return n(o*e)+i}}}}function defaultLocale$1(e){return locale$1=formatLocale$1(e),format=locale$1.format,locale$1.formatPrefix,locale$1}defaultLocale$1({decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"});var t0=new Date,t1=new Date;function newInterval(e,t,n,r){function o(t){return e(t=0===arguments.length?new Date:new Date(+t)),t}return o.floor=function(t){return e(t=new Date(+t)),t},o.ceil=function(n){return e(n=new Date(n-1)),t(n,1),e(n),n},o.round=function(e){var t=o(e),n=o.ceil(e);return e-t<n-e?t:n},o.offset=function(e,n){return t(e=new Date(+e),null==n?1:Math.floor(n)),e},o.range=function(n,r,i){var s,c=[];if(n=o.ceil(n),i=null==i?1:Math.floor(i),!(n<r&&i>0))return c;do{c.push(s=new Date(+n)),t(n,i),e(n)}while(s<n&&n<r);return c},o.filter=function(n){return newInterval((function(t){if(t>=t)for(;e(t),!n(t);)t.setTime(t-1)}),(function(e,r){if(e>=e)if(r<0)for(;++r<=0;)for(;t(e,-1),!n(e););else for(;--r>=0;)for(;t(e,1),!n(e););}))},n&&(o.count=function(t,r){return t0.setTime(+t),t1.setTime(+r),e(t0),e(t1),Math.floor(n(t0,t1))},o.every=function(e){return e=Math.floor(e),isFinite(e)&&e>0?e>1?o.filter(r?function(t){return r(t)%e==0}:function(t){return o.count(0,t)%e==0}):o:null}),o}var durationMinute=6e4,durationDay=864e5,durationWeek=6048e5,day=newInterval((function(e){e.setHours(0,0,0,0)}),(function(e,t){e.setDate(e.getDate()+t)}),(function(e,t){return(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*durationMinute)/durationDay}),(function(e){return e.getDate()-1})),timeDay=day;function weekday(e){return newInterval((function(t){t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)}),(function(e,t){e.setDate(e.getDate()+7*t)}),(function(e,t){return(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*durationMinute)/durationWeek}))}day.range;var sunday=weekday(0),monday=weekday(1),tuesday=weekday(2),wednesday=weekday(3),thursday=weekday(4),friday=weekday(5),saturday=weekday(6);sunday.range,monday.range,tuesday.range,wednesday.range,thursday.range,friday.range,saturday.range;var year=newInterval((function(e){e.setMonth(0,1),e.setHours(0,0,0,0)}),(function(e,t){e.setFullYear(e.getFullYear()+t)}),(function(e,t){return t.getFullYear()-e.getFullYear()}),(function(e){return e.getFullYear()}));year.every=function(e){return isFinite(e=Math.floor(e))&&e>0?newInterval((function(t){t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)}),(function(t,n){t.setFullYear(t.getFullYear()+n*e)})):null};var timeYear=year;year.range;var utcDay=newInterval((function(e){e.setUTCHours(0,0,0,0)}),(function(e,t){e.setUTCDate(e.getUTCDate()+t)}),(function(e,t){return(t-e)/durationDay}),(function(e){return e.getUTCDate()-1})),utcDay$1=utcDay;function utcWeekday(e){return newInterval((function(t){t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)}),(function(e,t){e.setUTCDate(e.getUTCDate()+7*t)}),(function(e,t){return(t-e)/durationWeek}))}utcDay.range;var utcSunday=utcWeekday(0),utcMonday=utcWeekday(1),utcTuesday=utcWeekday(2),utcWednesday=utcWeekday(3),utcThursday=utcWeekday(4),utcFriday=utcWeekday(5),utcSaturday=utcWeekday(6);utcSunday.range,utcMonday.range,utcTuesday.range,utcWednesday.range,utcThursday.range,utcFriday.range,utcSaturday.range;var utcYear=newInterval((function(e){e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)}),(function(e,t){e.setUTCFullYear(e.getUTCFullYear()+t)}),(function(e,t){return t.getUTCFullYear()-e.getUTCFullYear()}),(function(e){return e.getUTCFullYear()}));utcYear.every=function(e){return isFinite(e=Math.floor(e))&&e>0?newInterval((function(t){t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)}),(function(t,n){t.setUTCFullYear(t.getUTCFullYear()+n*e)})):null};var utcYear$1=utcYear;function localDate(e){if(0<=e.y&&e.y<100){var t=new Date(-1,e.m,e.d,e.H,e.M,e.S,e.L);return t.setFullYear(e.y),t}return new Date(e.y,e.m,e.d,e.H,e.M,e.S,e.L)}function utcDate(e){if(0<=e.y&&e.y<100){var t=new Date(Date.UTC(-1,e.m,e.d,e.H,e.M,e.S,e.L));return t.setUTCFullYear(e.y),t}return new Date(Date.UTC(e.y,e.m,e.d,e.H,e.M,e.S,e.L))}function newDate(e,t,n){return{y:e,m:t,d:n,H:0,M:0,S:0,L:0}}function formatLocale(e){var t=e.dateTime,n=e.date,r=e.time,o=e.periods,i=e.days,s=e.shortDays,c=e.months,u=e.shortMonths,a=formatRe(o),p=formatLookup(o),l=formatRe(i),d=formatLookup(i),f=formatRe(s),h=formatLookup(s),g=formatRe(c),y=formatLookup(c),A=formatRe(u),m=formatLookup(u),b={a:function(e){return s[e.getDay()]},A:function(e){return i[e.getDay()]},b:function(e){return u[e.getMonth()]},B:function(e){return c[e.getMonth()]},c:null,d:formatDayOfMonth,e:formatDayOfMonth,f:formatMicroseconds,g:formatYearISO,G:formatFullYearISO,H:formatHour24,I:formatHour12,j:formatDayOfYear,L:formatMilliseconds,m:formatMonthNumber,M:formatMinutes,p:function(e){return o[+(e.getHours()>=12)]},q:function(e){return 1+~~(e.getMonth()/3)},Q:formatUnixTimestamp,s:formatUnixTimestampSeconds,S:formatSeconds,u:formatWeekdayNumberMonday,U:formatWeekNumberSunday,V:formatWeekNumberISO,w:formatWeekdayNumberSunday,W:formatWeekNumberMonday,x:null,X:null,y:formatYear,Y:formatFullYear,Z:formatZone,"%":formatLiteralPercent},C={a:function(e){return s[e.getUTCDay()]},A:function(e){return i[e.getUTCDay()]},b:function(e){return u[e.getUTCMonth()]},B:function(e){return c[e.getUTCMonth()]},c:null,d:formatUTCDayOfMonth,e:formatUTCDayOfMonth,f:formatUTCMicroseconds,g:formatUTCYearISO,G:formatUTCFullYearISO,H:formatUTCHour24,I:formatUTCHour12,j:formatUTCDayOfYear,L:formatUTCMilliseconds,m:formatUTCMonthNumber,M:formatUTCMinutes,p:function(e){return o[+(e.getUTCHours()>=12)]},q:function(e){return 1+~~(e.getUTCMonth()/3)},Q:formatUnixTimestamp,s:formatUnixTimestampSeconds,S:formatUTCSeconds,u:formatUTCWeekdayNumberMonday,U:formatUTCWeekNumberSunday,V:formatUTCWeekNumberISO,w:formatUTCWeekdayNumberSunday,W:formatUTCWeekNumberMonday,x:null,X:null,y:formatUTCYear,Y:formatUTCFullYear,Z:formatUTCZone,"%":formatLiteralPercent},D={a:function(e,t,n){var r=f.exec(t.slice(n));return r?(e.w=h[r[0].toLowerCase()],n+r[0].length):-1},A:function(e,t,n){var r=l.exec(t.slice(n));return r?(e.w=d[r[0].toLowerCase()],n+r[0].length):-1},b:function(e,t,n){var r=A.exec(t.slice(n));return r?(e.m=m[r[0].toLowerCase()],n+r[0].length):-1},B:function(e,t,n){var r=g.exec(t.slice(n));return r?(e.m=y[r[0].toLowerCase()],n+r[0].length):-1},c:function(e,n,r){return w(e,t,n,r)},d:parseDayOfMonth,e:parseDayOfMonth,f:parseMicroseconds,g:parseYear,G:parseFullYear,H:parseHour24,I:parseHour24,j:parseDayOfYear,L:parseMilliseconds,m:parseMonthNumber,M:parseMinutes,p:function(e,t,n){var r=a.exec(t.slice(n));return r?(e.p=p[r[0].toLowerCase()],n+r[0].length):-1},q:parseQuarter,Q:parseUnixTimestamp,s:parseUnixTimestampSeconds,S:parseSeconds,u:parseWeekdayNumberMonday,U:parseWeekNumberSunday,V:parseWeekNumberISO,w:parseWeekdayNumberSunday,W:parseWeekNumberMonday,x:function(e,t,r){return w(e,n,t,r)},X:function(e,t,n){return w(e,r,t,n)},y:parseYear,Y:parseFullYear,Z:parseZone,"%":parseLiteralPercent};function B(e,t){return function(n){var r,o,i,s=[],c=-1,u=0,a=e.length;for(n instanceof Date||(n=new Date(+n));++c<a;)37===e.charCodeAt(c)&&(s.push(e.slice(u,c)),null!=(o=pads[r=e.charAt(++c)])?r=e.charAt(++c):o="e"===r?" ":"0",(i=t[r])&&(r=i(n,o)),s.push(r),u=c+1);return s.push(e.slice(u,c)),s.join("")}}function v(e,t){return function(n){var r,o,i=newDate(1900,void 0,1);if(w(i,e,n+="",0)!=n.length)return null;if("Q"in i)return new Date(i.Q);if("s"in i)return new Date(1e3*i.s+("L"in i?i.L:0));if(t&&!("Z"in i)&&(i.Z=0),"p"in i&&(i.H=i.H%12+12*i.p),void 0===i.m&&(i.m="q"in i?i.q:0),"V"in i){if(i.V<1||i.V>53)return null;"w"in i||(i.w=1),"Z"in i?(o=(r=utcDate(newDate(i.y,0,1))).getUTCDay(),r=o>4||0===o?utcMonday.ceil(r):utcMonday(r),r=utcDay$1.offset(r,7*(i.V-1)),i.y=r.getUTCFullYear(),i.m=r.getUTCMonth(),i.d=r.getUTCDate()+(i.w+6)%7):(o=(r=localDate(newDate(i.y,0,1))).getDay(),r=o>4||0===o?monday.ceil(r):monday(r),r=timeDay.offset(r,7*(i.V-1)),i.y=r.getFullYear(),i.m=r.getMonth(),i.d=r.getDate()+(i.w+6)%7)}else("W"in i||"U"in i)&&("w"in i||(i.w="u"in i?i.u%7:"W"in i?1:0),o="Z"in i?utcDate(newDate(i.y,0,1)).getUTCDay():localDate(newDate(i.y,0,1)).getDay(),i.m=0,i.d="W"in i?(i.w+6)%7+7*i.W-(o+5)%7:i.w+7*i.U-(o+6)%7);return"Z"in i?(i.H+=i.Z/100|0,i.M+=i.Z%100,utcDate(i)):localDate(i)}}function w(e,t,n,r){for(var o,i,s=0,c=t.length,u=n.length;s<c;){if(r>=u)return-1;if(37===(o=t.charCodeAt(s++))){if(o=t.charAt(s++),!(i=D[o in pads?t.charAt(s++):o])||(r=i(e,n,r))<0)return-1}else if(o!=n.charCodeAt(r++))return-1}return r}return b.x=B(n,b),b.X=B(r,b),b.c=B(t,b),C.x=B(n,C),C.X=B(r,C),C.c=B(t,C),{format:function(e){var t=B(e+="",b);return t.toString=function(){return e},t},parse:function(e){var t=v(e+="",!1);return t.toString=function(){return e},t},utcFormat:function(e){var t=B(e+="",C);return t.toString=function(){return e},t},utcParse:function(e){var t=v(e+="",!0);return t.toString=function(){return e},t}}}utcYear.range;var locale,utcFormat,utcParse,pads={"-":"",_:" ",0:"0"},numberRe=/^\s*\d+/,percentRe=/^%/,requoteRe=/[\\^$*+?|[\]().{}]/g;function pad(e,t,n){var r=e<0?"-":"",o=(r?-e:e)+"",i=o.length;return r+(i<n?new Array(n-i+1).join(t)+o:o)}function requote(e){return e.replace(requoteRe,"\\$&")}function formatRe(e){return new RegExp("^(?:"+e.map(requote).join("|")+")","i")}function formatLookup(e){for(var t={},n=-1,r=e.length;++n<r;)t[e[n].toLowerCase()]=n;return t}function parseWeekdayNumberSunday(e,t,n){var r=numberRe.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function parseWeekdayNumberMonday(e,t,n){var r=numberRe.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function parseWeekNumberSunday(e,t,n){var r=numberRe.exec(t.slice(n,n+2));return r?(e.U=+r[0],n+r[0].length):-1}function parseWeekNumberISO(e,t,n){var r=numberRe.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function parseWeekNumberMonday(e,t,n){var r=numberRe.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function parseFullYear(e,t,n){var r=numberRe.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function parseYear(e,t,n){var r=numberRe.exec(t.slice(n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function parseZone(e,t,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(n,n+6));return r?(e.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function parseQuarter(e,t,n){var r=numberRe.exec(t.slice(n,n+1));return r?(e.q=3*r[0]-3,n+r[0].length):-1}function parseMonthNumber(e,t,n){var r=numberRe.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function parseDayOfMonth(e,t,n){var r=numberRe.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function parseDayOfYear(e,t,n){var r=numberRe.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function parseHour24(e,t,n){var r=numberRe.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function parseMinutes(e,t,n){var r=numberRe.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function parseSeconds(e,t,n){var r=numberRe.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function parseMilliseconds(e,t,n){var r=numberRe.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function parseMicroseconds(e,t,n){var r=numberRe.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function parseLiteralPercent(e,t,n){var r=percentRe.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function parseUnixTimestamp(e,t,n){var r=numberRe.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function parseUnixTimestampSeconds(e,t,n){var r=numberRe.exec(t.slice(n));return r?(e.s=+r[0],n+r[0].length):-1}function formatDayOfMonth(e,t){return pad(e.getDate(),t,2)}function formatHour24(e,t){return pad(e.getHours(),t,2)}function formatHour12(e,t){return pad(e.getHours()%12||12,t,2)}function formatDayOfYear(e,t){return pad(1+timeDay.count(timeYear(e),e),t,3)}function formatMilliseconds(e,t){return pad(e.getMilliseconds(),t,3)}function formatMicroseconds(e,t){return formatMilliseconds(e,t)+"000"}function formatMonthNumber(e,t){return pad(e.getMonth()+1,t,2)}function formatMinutes(e,t){return pad(e.getMinutes(),t,2)}function formatSeconds(e,t){return pad(e.getSeconds(),t,2)}function formatWeekdayNumberMonday(e){var t=e.getDay();return 0===t?7:t}function formatWeekNumberSunday(e,t){return pad(sunday.count(timeYear(e)-1,e),t,2)}function dISO(e){var t=e.getDay();return t>=4||0===t?thursday(e):thursday.ceil(e)}function formatWeekNumberISO(e,t){return e=dISO(e),pad(thursday.count(timeYear(e),e)+(4===timeYear(e).getDay()),t,2)}function formatWeekdayNumberSunday(e){return e.getDay()}function formatWeekNumberMonday(e,t){return pad(monday.count(timeYear(e)-1,e),t,2)}function formatYear(e,t){return pad(e.getFullYear()%100,t,2)}function formatYearISO(e,t){return pad((e=dISO(e)).getFullYear()%100,t,2)}function formatFullYear(e,t){return pad(e.getFullYear()%1e4,t,4)}function formatFullYearISO(e,t){var n=e.getDay();return pad((e=n>=4||0===n?thursday(e):thursday.ceil(e)).getFullYear()%1e4,t,4)}function formatZone(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+pad(t/60|0,"0",2)+pad(t%60,"0",2)}function formatUTCDayOfMonth(e,t){return pad(e.getUTCDate(),t,2)}function formatUTCHour24(e,t){return pad(e.getUTCHours(),t,2)}function formatUTCHour12(e,t){return pad(e.getUTCHours()%12||12,t,2)}function formatUTCDayOfYear(e,t){return pad(1+utcDay$1.count(utcYear$1(e),e),t,3)}function formatUTCMilliseconds(e,t){return pad(e.getUTCMilliseconds(),t,3)}function formatUTCMicroseconds(e,t){return formatUTCMilliseconds(e,t)+"000"}function formatUTCMonthNumber(e,t){return pad(e.getUTCMonth()+1,t,2)}function formatUTCMinutes(e,t){return pad(e.getUTCMinutes(),t,2)}function formatUTCSeconds(e,t){return pad(e.getUTCSeconds(),t,2)}function formatUTCWeekdayNumberMonday(e){var t=e.getUTCDay();return 0===t?7:t}function formatUTCWeekNumberSunday(e,t){return pad(utcSunday.count(utcYear$1(e)-1,e),t,2)}function UTCdISO(e){var t=e.getUTCDay();return t>=4||0===t?utcThursday(e):utcThursday.ceil(e)}function formatUTCWeekNumberISO(e,t){return e=UTCdISO(e),pad(utcThursday.count(utcYear$1(e),e)+(4===utcYear$1(e).getUTCDay()),t,2)}function formatUTCWeekdayNumberSunday(e){return e.getUTCDay()}function formatUTCWeekNumberMonday(e,t){return pad(utcMonday.count(utcYear$1(e)-1,e),t,2)}function formatUTCYear(e,t){return pad(e.getUTCFullYear()%100,t,2)}function formatUTCYearISO(e,t){return pad((e=UTCdISO(e)).getUTCFullYear()%100,t,2)}function formatUTCFullYear(e,t){return pad(e.getUTCFullYear()%1e4,t,4)}function formatUTCFullYearISO(e,t){var n=e.getUTCDay();return pad((e=n>=4||0===n?utcThursday(e):utcThursday.ceil(e)).getUTCFullYear()%1e4,t,4)}function formatUTCZone(){return"+0000"}function formatLiteralPercent(){return"%"}function formatUnixTimestamp(e){return+e}function formatUnixTimestampSeconds(e){return Math.floor(+e/1e3)}function defaultLocale(e){return(locale=formatLocale(e)).format,locale.parse,utcFormat=locale.utcFormat,utcParse=locale.utcParse,locale}defaultLocale({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});var ECLGraph=function(e){function t(t,n,r){var o=e.call(this)||this;o.wu=t;for(var i=0,s=0,c=r;s<c.length;s++){var u=c[s];if(u.GraphName===n.Name&&!u.HasSubGraphId){i=Math.round(1e3*u.Seconds)/1e3;break}}return o.set(__assign({Time:i},n)),o}return __extends(t,e),Object.defineProperty(t.prototype,"properties",{get:function(){return this.get()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Name",{get:function(){return this.get("Name")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Label",{get:function(){return this.get("Label")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Type",{get:function(){return this.get("Type")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Complete",{get:function(){return this.get("Complete")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"WhenStarted",{get:function(){return this.get("WhenStarted")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"WhenFinished",{get:function(){return this.get("WhenFinished")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Time",{get:function(){return this.get("Time")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Running",{get:function(){return this.get("Running")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"RunningId",{get:function(){return this.get("RunningId")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Failed",{get:function(){return this.get("Failed")},enumerable:!1,configurable:!0}),t.prototype.fetchScopeGraph=function(e){return e?this.wu.fetchGraphDetails([e],["subgraph"]).then((function(e){return createGraph(e)})):this.wu.fetchGraphDetails([this.Name],["graph"]).then((function(e){return createGraph(e)}))},t}(util.StateObject),GraphCache=function(e){function t(){return e.call(this,(function(e){return util.Cache.hash([e.Name])}))||this}return __extends(t,e),t}(util.Cache);function walkXmlJson$1(e,t,n){(n=n||[]).push(e),t(e.name,e.$,e.children(),n),e.children().forEach((function(e){walkXmlJson$1(e,t,n)})),n.pop()}function flattenAtt(e){var t={};return e.forEach((function(e){"att"===e.name&&(t[e.$.name]=e.$.value)})),t}var XGMMLGraph=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends(t,e),t}(util.Graph),XGMMLSubgraph=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends(t,e),t}(util.Subgraph),XGMMLVertex=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends(t,e),t}(util.Vertex),XGMMLEdge=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends(t,e),t}(util.Edge);function createXGMMLGraph(e,t){var n={},r={},o={},i=new XGMMLGraph((function(e){return e._.id})),s=[i.root];return walkXmlJson$1(t,(function(e,t,i,c){var u=s[s.length-1];switch(e){case"graph":break;case"node":if(i.length&&i[0].children().length&&"graph"===i[0].children()[0].name){var a=u.createSubgraph(flattenAtt(i));s.push(a),n[t.id]=a}var p=u.createVertex(flattenAtt(i));r[t.id]=p;break;case"edge":var l=u.createEdge(r[t.source],r[t.target],flattenAtt(i));o[t.id]=l}})),i}var ScopeGraph=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends(t,e),t}(util.Graph),ScopeSubgraph=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends(t,e),t}(util.Subgraph),ScopeVertex=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends(t,e),t}(util.Vertex),ScopeEdge=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends(t,e),t}(util.Edge);function createGraph(e){for(var t,n={},r={},o={},i=0,s=e;i<s.length;i++){switch((d=s[i]).ScopeType){case"graph":t=new ScopeGraph((function(e){return e._.Id}),d),n[d.ScopeName]=t.root;break;case"subgraph":t||(t=new ScopeGraph((function(e){return e._.Id}),d),n[d.ScopeName]=t.root);for(var c=d.parentScope().split(":"),u=n[d.parentScope()];c.length&&!u;)u=n[c.join(":")],c.pop();if(u){var a=u;n[d.ScopeName]=a.createSubgraph(d)}else console.warn("Missing SG:Parent (".concat(d.Id,"): ").concat(d.parentScope()));break;case"activity":var p=n[d.parentScope()];p?o[d.ScopeName]=p.createVertex(d):console.warn("Missing A:Parent (".concat(d.Id,"): ").concat(d.parentScope()));break;case"edge":r[d.ScopeName]=d;break;case"function":(f=o[d.parentScope()])?f._.children().push(d):console.warn("Missing F:Parent (".concat(d.Id,"): ").concat(d.parentScope()))}}for(var l in r){var d,f;if(f=n[(d=r[l]).parentScope()]){var h=f;try{var g=t.vertex(d.attr("IdSource").RawValue),y=t.vertex(d.attr("IdTarget").RawValue);h.createEdge(g,y,d)}catch(e){console.warn("Invalid Edge: ".concat(l))}}else console.warn("Missing E:Parent (".concat(d.Id,"): ").concat(d.parentScope()))}return t}var Resource=function(e){function t(t,n){var r=e.call(this)||this;r.wu=t;var o=n.split("\\").join("/"),i=o.split("/"),s="res/"+r.wu.Wuid+"/",c="",u="";return 0===o.indexOf(s)&&(c=o.substr(s.length),u=i[i.length-1]),r.set({URL:n,DisplayName:u,DisplayPath:c}),r}return __extends(t,e),Object.defineProperty(t.prototype,"properties",{get:function(){return this.get()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"URL",{get:function(){return this.get("URL")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"DisplayName",{get:function(){return this.get("DisplayName")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"DisplayPath",{get:function(){return this.get("DisplayPath")},enumerable:!1,configurable:!0}),t}(util.StateObject),XSDNode=function(){function e(e){this.e=e}return e.prototype.fix=function(){delete this.e},e}(),XSDXMLNode=function(e){function t(t){var n=e.call(this,t)||this;return n.isSet=!1,n.attrs={},n._children=[],n}return __extends(t,e),t.prototype.append=function(e){this._children.push(e),this.type||(this.type="hpcc:childDataset")},t.prototype.fix=function(){var e;this.name=this.e.$.name,this.type=this.e.$.type;for(var t=this._children.length-1;t>=0;--t){var n=this._children[t];"Row"===n.name&&void 0===n.type&&((e=this._children).push.apply(e,n._children),this._children.splice(t,1))}var r=this.setOfType();r&&(this.type=r,this.isSet=!0,this._children=[])},t.prototype.children=function(){return this._children},t.prototype.isAll=function(e){return"All"===e.name&&void 0===e.type},t.prototype.setOfType=function(){var e=this.children();if(void 0===this.type&&2===e.length){if(this.isAll(e[0]))return e[1].type;if(this.isAll(e[1]))return e[0].type}},t.prototype.charWidth=function(){var e=-1;switch(this.type){case"xs:boolean":e=5;break;case"xs:integer":case"xs:nonNegativeInteger":case"xs:double":e=8;break;case"xs:string":e=32;break;default:for(var t=this.type.lastIndexOf("_"),n=t>0?t:this.type.length,r=n-1;r>=0&&-1!=="0123456789".indexOf(this.type.charAt(r));--r);r+1<n&&(e=parseInt(this.type.substring(r+1,n),10)),0===this.type.indexOf("data")&&(e*=2)}return e<this.name.length&&(e=this.name.length),e},t}(XSDNode),XSDSimpleType=function(e){function t(t){return e.call(this,t)||this}return __extends(t,e),t.prototype.append=function(e){switch(e.name){case"xs:restriction":this._restricition=e;break;case"xs:maxLength":this._maxLength=e}},t.prototype.fix=function(){this.name=this.e.$.name,this.type=this._restricition.$.base,this.maxLength=this._maxLength?+this._maxLength.$.value:void 0,delete this._restricition,delete this._maxLength,e.prototype.fix.call(this)},t}(XSDNode),XSDSchema=function(){function e(){this.simpleTypes={}}return e.prototype.fields=function(){return this.root.children()},e}(),XSDParser=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.schema=new XSDSchema,t.simpleTypes={},t.xsdStack=new util.Stack,t}return __extends(t,e),t.prototype.startXMLNode=function(t){switch(e.prototype.startXMLNode.call(this,t),t.name){case"xs:element":var n=new XSDXMLNode(t);this.schema.root?this.xsdStack.depth()&&this.xsdStack.top().append(n):this.schema.root=n,this.xsdStack.push(n);break;case"xs:simpleType":this.simpleType=new XSDSimpleType(t)}},t.prototype.endXMLNode=function(t){switch(t.name){case"xs:element":this.xsdStack.pop().fix();break;case"xs:simpleType":this.simpleType.fix(),this.simpleTypes[this.simpleType.name]=this.simpleType,delete this.simpleType;break;case"xs:appinfo":var n=this.xsdStack.top();for(var r in t.$)n.attrs[r]=t.$[r];break;default:this.simpleType&&this.simpleType.append(t)}e.prototype.endXMLNode.call(this,t)},t}(util.SAXStackParser);function parseXSD(e){var t=new XSDParser;return t.parse(e),t.schema}var XSDParser2=function(e){function t(t){var n=e.call(this)||this;return n.schema=new XSDSchema,n.simpleTypes={},n.xsdStack=new util.Stack,n._rootName=t,n}return __extends(t,e),t.prototype.startXMLNode=function(t){switch(e.prototype.startXMLNode.call(this,t),t.name){case"xsd:element":var n=new XSDXMLNode(t);this.schema.root||this._rootName!==t.$.name||(this.schema.root=n),this.xsdStack.depth()&&this.xsdStack.top().append(n),this.xsdStack.push(n);break;case"xsd:simpleType":this.simpleType=new XSDSimpleType(t)}},t.prototype.endXMLNode=function(t){"xsd:element"===t.name&&this.xsdStack.pop().fix();e.prototype.endXMLNode.call(this,t)},t}(XSDParser);function parseXSD2(e,t){var n=new XSDParser2(t);return n.parse(e),n.schema}var GlobalResultCache=function(e){function t(){return e.call(this,(function(e){return"".concat(e.BaseUrl,"-").concat(e.Wuid,"-").concat(e.ResultName)}))||this}return __extends(t,e),t}(util.Cache),_results=new GlobalResultCache,Result=function(e){function t(t,n,r,o){var i=e.call(this)||this;return i.connection=t instanceof WorkunitsService?t:new WorkunitsService(t),"boolean"==typeof o&&!0===o?i.set({NodeGroup:n,LogicalFileName:r}):isECLResult(r)&&Array.isArray(o)?i.set(__assign(__assign({},r),{Wuid:n,ResultName:r.Name,ResultViews:o})):void 0===o?"number"==typeof r?i.set({Wuid:n,ResultSequence:r}):"string"==typeof r?i.set({Wuid:n,ResultName:r}):console.warn("Unknown Result.attach (1)"):console.warn("Unknown Result.attach (2)"),i}return __extends(t,e),Object.defineProperty(t.prototype,"BaseUrl",{get:function(){return this.connection.baseUrl},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"properties",{get:function(){return this.get()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Wuid",{get:function(){return this.get("Wuid")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ResultName",{get:function(){return this.get("ResultName")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ResultSequence",{get:function(){return this.get("ResultSequence")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"LogicalFileName",{get:function(){return this.get("LogicalFileName")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Name",{get:function(){return this.get("Name")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Sequence",{get:function(){return this.get("Sequence")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Value",{get:function(){return this.get("Value")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Link",{get:function(){return this.get("Link")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"FileName",{get:function(){return this.get("FileName")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"IsSupplied",{get:function(){return this.get("IsSupplied")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ShowFileContent",{get:function(){return this.get("ShowFileContent")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Total",{get:function(){return this.get("Total")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ECLSchemas",{get:function(){return this.get("ECLSchemas")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"NodeGroup",{get:function(){return this.get("NodeGroup")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ResultViews",{get:function(){return this.get("ResultViews")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"XmlSchema",{get:function(){return this.get("XmlSchema")},enumerable:!1,configurable:!0}),t.attach=function(e,n,r,o){var i;return Array.isArray(o)?(i=_results.get({BaseUrl:e.baseUrl,Wuid:n,ResultName:r.Name},(function(){return new t(e,n,r,o)}))).set(r):void 0===o&&("number"==typeof r?i=_results.get({BaseUrl:e.baseUrl,Wuid:n,ResultName:"Sequence_"+r},(function(){return new t(e,n,r)})):"string"==typeof r&&(i=_results.get({BaseUrl:e.baseUrl,Wuid:n,ResultName:r},(function(){return new t(e,n,r)})))),i},t.attachLogicalFile=function(e,n,r){return _results.get({BaseUrl:e.baseUrl,Wuid:n,ResultName:r},(function(){return new t(e,n,r,!0)}))},t.prototype.isComplete=function(){return-1!==this.Total},t.prototype.fetchXMLSchema=function(e){var t=this;return void 0===e&&(e=!1),this._fetchXMLSchemaPromise&&!e||(this._fetchXMLSchemaPromise=this.WUResult().then((function(e){return util.exists("Result.XmlSchema.xml",e)?(t.xsdSchema=parseXSD(e.Result.XmlSchema.xml),t.xsdSchema):null}))),this._fetchXMLSchemaPromise},t.prototype.refresh=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){switch(e.label){case 0:return[4,this.fetchRows(0,1,!0)];case 1:return e.sent(),[2,this]}}))}))},t.prototype.fetchRows=function(e,t,n,r,o){var i=this;return void 0===e&&(e=0),void 0===t&&(t=-1),void 0===n&&(n=!1),void 0===r&&(r={}),this.WUResult(e,t,!n,r,o).then((function(e){var t=e.Result;return delete e.Result,i.set(__assign({},e)),util.exists("XmlSchema.xml",t)&&(i.xsdSchema=parseXSD(t.XmlSchema.xml)),util.exists("Row",t)?t.Row:i.ResultName&&util.exists(i.ResultName,t)?t[i.ResultName].Row:[]}))},t.prototype.rootField=function(){return this.xsdSchema?this.xsdSchema.root:null},t.prototype.fields=function(){return this.xsdSchema?this.xsdSchema.root.children():[]},t.prototype.WUResult=function(e,t,n,r,o){void 0===e&&(e=0),void 0===t&&(t=1),void 0===n&&(n=!1),void 0===r&&(r={});var i={NamedValue:{itemcount:0}};for(var s in r)i.NamedValue[i.NamedValue.itemcount++]={Name:s,Value:r[s]};var c={FilterBy:i};return this.Wuid&&void 0!==this.ResultName?(c.Wuid=this.Wuid,c.ResultName=this.ResultName):this.Wuid&&void 0!==this.ResultSequence?(c.Wuid=this.Wuid,c.Sequence=this.ResultSequence):this.LogicalFileName&&this.NodeGroup?(c.LogicalName=this.LogicalFileName,c.Cluster=this.NodeGroup):this.LogicalFileName&&(c.LogicalName=this.LogicalFileName),c.Start=e,c.Count=t,c.SuppressXmlSchema=n,this.connection.WUResult(c,o).then((function(e){return e}))},t}(util.StateObject),ResultCache=function(e){function t(){return e.call(this,(function(e){return util.Cache.hash([e.Sequence,e.Name,e.Value,e.FileName])}))||this}return __extends(t,e),t}(util.Cache),Attribute=function(e){function t(t,n){var r=e.call(this)||this;return r.scope=t,r.set(n),r}return __extends(t,e),Object.defineProperty(t.prototype,"properties",{get:function(){return this.get()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Name",{get:function(){return this.get("Name")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"RawValue",{get:function(){return this.get("RawValue")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Formatted",{get:function(){return this.get("Formatted")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"FormattedEnd",{get:function(){return this.get("FormattedEnd")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Measure",{get:function(){return this.get("Measure")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Creator",{get:function(){return this.get("Creator")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"CreatorType",{get:function(){return this.get("CreatorType")},enumerable:!1,configurable:!0}),t}(util.StateObject),BaseScope=function(e){function t(t){var n=e.call(this)||this;return n._attributeMap={},n._children=[],n.update(t),n}return __extends(t,e),Object.defineProperty(t.prototype,"properties",{get:function(){return this.get()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ScopeName",{get:function(){return this.get("ScopeName")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Id",{get:function(){return this.get("Id")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ScopeType",{get:function(){return this.get("ScopeType")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Properties",{get:function(){return this.get("Properties",{Property:[]})},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Notes",{get:function(){return this.get("Notes",{Note:[]})},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"CAttributes",{get:function(){var e=this,t=[],n={start:null,end:null};return this.Properties.Property.forEach((function(r){"ts"===r.Measure&&r.Name.indexOf("Started")>=0?n.start=r:e.ScopeName&&"ts"===r.Measure&&r.Name.indexOf("Finished")>=0?n.end=r:t.push(new Attribute(e,r))})),n.start&&n.end?(n.start.FormattedEnd=n.end.Formatted,t.push(new Attribute(this,n.start))):n.start?t.push(new Attribute(this,n.start)):n.end&&t.push(new Attribute(this,n.end)),t},enumerable:!1,configurable:!0}),t.prototype.update=function(e){var t=this;for(var n in this.set(e),this.CAttributes.forEach((function(e){t._attributeMap[e.Name]=e})),this.Properties.Property=[],this._attributeMap)this._attributeMap.hasOwnProperty(n)&&this.Properties.Property.push(this._attributeMap[n].properties)},t.prototype.parentScope=function(){var e=this.ScopeName.split(":");return e.pop(),e.join(":")},t.prototype.children=function(e){return arguments.length?(this._children=e,this):this._children},t.prototype.walk=function(e){if(e.start(this))return!0;for(var t=0,n=this.children();t<n.length;t++){if(n[t].walk(e))return!0}return e.end(this)},t.prototype.formattedAttrs=function(){var e={};for(var t in this._attributeMap)e[t]=this._attributeMap[t].Formatted||this._attributeMap[t].RawValue;return e},t.prototype.rawAttrs=function(){var e={};for(var t in this._attributeMap)e[t]=this._attributeMap[t].RawValue;return e},t.prototype.hasAttr=function(e){return void 0!==this._attributeMap[e]},t.prototype.attr=function(e){return this._attributeMap[e]||new Attribute(this,{Creator:"",CreatorType:"",Formatted:"",Measure:"",Name:"",RawValue:""})},t.prototype.attrMeasure=function(e){return this._attributeMap[e].Measure},t.prototype.calcTooltip=function(e){var t="",n=[];t=this.Id,n.push('<tr><td class="key">ID:</td><td class="value">'.concat(this.Id,"</td></tr>")),e&&n.push('<tr><td class="key">Parent ID:</td><td class="value">'.concat(e.Id,"</td></tr>")),n.push('<tr><td class="key">Scope:</td><td class="value">'.concat(this.ScopeName,"</td></tr>"));var r=this.formattedAttrs();for(var o in r)"Label"===o?t=r[o]:n.push('<tr><td class="key">'.concat(o,'</td><td class="value">').concat(r[o],"</td></tr>"));return'<div class="eclwatch_WUGraph_Tooltip" style="max-width:480px">\n <h4 align="center">'.concat(t,"</h4>\n <table>\n ").concat(n.join(""),"\n </table>\n </div>")},t}(util.StateObject),Scope=function(e){function t(t,n){var r=e.call(this,n)||this;return r.wu=t,r}return __extends(t,e),t}(BaseScope),SourceFile=function(e){function t(t,n,r){var o=e.call(this)||this;return o.connection=t instanceof WorkunitsService?t:new WorkunitsService(t),o.set(__assign({Wuid:n},r)),o}return __extends(t,e),Object.defineProperty(t.prototype,"properties",{get:function(){return this.get()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Wuid",{get:function(){return this.get("Wuid")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"FileCluster",{get:function(){return this.get("FileCluster")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Name",{get:function(){return this.get("Name")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"IsSuperFile",{get:function(){return this.get("IsSuperFile")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Subs",{get:function(){return this.get("Subs")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Count",{get:function(){return this.get("Count")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ECLSourceFiles",{get:function(){return this.get("ECLSourceFiles")},enumerable:!1,configurable:!0}),t}(util.StateObject),Timer=function(e){function t(t,n,r){var o=e.call(this)||this;o.connection=t instanceof WorkunitsService?t:new WorkunitsService(t);var i=util.espTime2Seconds(r.Value);return o.set(__assign({Wuid:n,Seconds:Math.round(1e3*i)/1e3,HasSubGraphId:void 0!==r.SubGraphId},r)),o}return __extends(t,e),Object.defineProperty(t.prototype,"properties",{get:function(){return this.get()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Wuid",{get:function(){return this.get("Wuid")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Name",{get:function(){return this.get("Name")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Value",{get:function(){return this.get("Value")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Seconds",{get:function(){return this.get("Seconds")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"GraphName",{get:function(){return this.get("GraphName")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"SubGraphId",{get:function(){return this.get("SubGraphId")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"HasSubGraphId",{get:function(){return this.get("HasSubGraphId")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"count",{get:function(){return this.get("count")},enumerable:!1,configurable:!0}),t}(util.StateObject),formatter=utcFormat("%Y-%m-%dT%H:%M:%S.%LZ"),parser=utcParse("%Y-%m-%dT%H:%M:%S.%LZ"),d3FormatNum=format(",");function formatNum(e){return e&&!isNaN(+e)?d3FormatNum(+e):e}var _activity,logger$3=util.scopedLogger("workunit.ts"),WUStateID=exports.WUStateID,WorkunitCache=function(e){function t(){return e.call(this,(function(e){return"".concat(e.BaseUrl,"-").concat(e.Wuid)}))||this}return __extends(t,e),t}(util.Cache),_workunits$1=new WorkunitCache,Workunit=function(e){function t(t,n){var r=e.call(this)||this;return r._debugMode=!1,r._resultCache=new ResultCache,r._graphCache=new GraphCache,r.connection=new WorkunitsService(t),r.topologyConnection=new TopologyService(t),r.clearState(n),r}return __extends(t,e),Object.defineProperty(t.prototype,"BaseUrl",{get:function(){return this.connection.baseUrl},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"properties",{get:function(){return this.get()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Wuid",{get:function(){return this.get("Wuid")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Owner",{get:function(){return this.get("Owner","")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Cluster",{get:function(){return this.get("Cluster","")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Jobname",{get:function(){return this.get("Jobname","")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Description",{get:function(){return this.get("Description","")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ActionEx",{get:function(){return this.get("ActionEx","")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"StateID",{get:function(){return this.get("StateID",exports.WUStateID.Unknown)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"State",{get:function(){return this.get("State")||exports.WUStateID[this.StateID]},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Protected",{get:function(){return this.get("Protected",!1)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Exceptions",{get:function(){return this.get("Exceptions",{ECLException:[]})},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ResultViews",{get:function(){return this.get("ResultViews",{View:[]})},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ResultCount",{get:function(){return this.get("ResultCount",0)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Results",{get:function(){return this.get("Results",{ECLResult:[]})},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"CResults",{get:function(){var e=this;return this.Results.ECLResult.map((function(t){return e._resultCache.get(t,(function(){return Result.attach(e.connection,e.Wuid,t,e.ResultViews.View)}))}))},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"SequenceResults",{get:function(){var e={};return this.CResults.forEach((function(t){e[t.Sequence]=t})),e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Timers",{get:function(){return this.get("Timers",{ECLTimer:[]})},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"CTimers",{get:function(){var e=this;return this.Timers.ECLTimer.map((function(t){return new Timer(e.connection,e.Wuid,t)}))},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"GraphCount",{get:function(){return this.get("GraphCount",0)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Graphs",{get:function(){return this.get("Graphs",{ECLGraph:[]})},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"CGraphs",{get:function(){var e=this;return this.Graphs.ECLGraph.map((function(t){return e._graphCache.get(t,(function(){return new ECLGraph(e,t,e.CTimers)}))}))},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ThorLogList",{get:function(){return this.get("ThorLogList")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ResourceURLCount",{get:function(){return this.get("ResourceURLCount",0)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ResourceURLs",{get:function(){return this.get("ResourceURLs",{URL:[]})},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"CResourceURLs",{get:function(){var e=this;return this.ResourceURLs.URL.map((function(t){return new Resource(e,t)}))},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"TotalClusterTime",{get:function(){return this.get("TotalClusterTime","")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"DateTimeScheduled",{get:function(){return this.get("DateTimeScheduled")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"IsPausing",{get:function(){return this.get("IsPausing")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ThorLCR",{get:function(){return this.get("ThorLCR")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ApplicationValues",{get:function(){return this.get("ApplicationValues",{ApplicationValue:[]})},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"HasArchiveQuery",{get:function(){return this.get("HasArchiveQuery")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"StateEx",{get:function(){return this.get("StateEx")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"PriorityClass",{get:function(){return this.get("PriorityClass")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"PriorityLevel",{get:function(){return this.get("PriorityLevel")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Snapshot",{get:function(){return this.get("Snapshot")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ResultLimit",{get:function(){return this.get("ResultLimit")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"EventSchedule",{get:function(){return this.get("EventSchedule")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"HaveSubGraphTimings",{get:function(){return this.get("HaveSubGraphTimings")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Query",{get:function(){return this.get("Query")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"HelpersCount",{get:function(){return this.get("HelpersCount",0)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Helpers",{get:function(){return this.get("Helpers",{ECLHelpFile:[]})},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"DebugValues",{get:function(){return this.get("DebugValues")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"AllowedClusters",{get:function(){return this.get("AllowedClusters")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ErrorCount",{get:function(){return this.get("ErrorCount",0)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"WarningCount",{get:function(){return this.get("WarningCount",0)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"InfoCount",{get:function(){return this.get("InfoCount",0)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"AlertCount",{get:function(){return this.get("AlertCount",0)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"SourceFileCount",{get:function(){return this.get("SourceFileCount",0)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"SourceFiles",{get:function(){return this.get("SourceFiles",{ECLSourceFile:[]})},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"CSourceFiles",{get:function(){var e=this;return this.SourceFiles.ECLSourceFile.map((function(t){return new SourceFile(e.connection,e.Wuid,t)}))},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"VariableCount",{get:function(){return this.get("VariableCount",0)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Variables",{get:function(){return this.get("Variables",{ECLResult:[]})},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"TimerCount",{get:function(){return this.get("TimerCount",0)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"HasDebugValue",{get:function(){return this.get("HasDebugValue")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ApplicationValueCount",{get:function(){return this.get("ApplicationValueCount",0)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"XmlParams",{get:function(){return this.get("XmlParams")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"AccessFlag",{get:function(){return this.get("AccessFlag")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ClusterFlag",{get:function(){return this.get("ClusterFlag")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ResultViewCount",{get:function(){return this.get("ResultViewCount",0)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"DebugValueCount",{get:function(){return this.get("DebugValueCount",0)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"WorkflowCount",{get:function(){return this.get("WorkflowCount",0)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Archived",{get:function(){return this.get("Archived")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"RoxieCluster",{get:function(){return this.get("RoxieCluster")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"DebugState",{get:function(){return this.get("DebugState",{})},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Queue",{get:function(){return this.get("Queue")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Active",{get:function(){return this.get("Active")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Action",{get:function(){return this.get("Action")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Scope",{get:function(){return this.get("Scope")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"AbortBy",{get:function(){return this.get("AbortBy")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"AbortTime",{get:function(){return this.get("AbortTime")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Workflows",{get:function(){return this.get("Workflows")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"TimingData",{get:function(){return this.get("TimingData")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"HelpersDesc",{get:function(){return this.get("HelpersDesc")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"GraphsDesc",{get:function(){return this.get("GraphsDesc")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"SourceFilesDesc",{get:function(){return this.get("SourceFilesDesc")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ResultsDesc",{get:function(){return this.get("ResultsDesc")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"VariablesDesc",{get:function(){return this.get("VariablesDesc")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"TimersDesc",{get:function(){return this.get("TimersDesc")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"DebugValuesDesc",{get:function(){return this.get("DebugValuesDesc")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ApplicationValuesDesc",{get:function(){return this.get("ApplicationValuesDesc")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"WorkflowsDesc",{get:function(){return this.get("WorkflowsDesc")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ServiceNames",{get:function(){return this.get("ServiceNames")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"CompileCost",{get:function(){return this.get("CompileCost")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ExecuteCost",{get:function(){return this.get("ExecuteCost")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"FileAccessCost",{get:function(){return this.get("FileAccessCost")},enumerable:!1,configurable:!0}),t.create=function(e){var n=new t(e);return n.connection.WUCreate().then((function(e){return _workunits$1.set(n),n.set(e.Workunit),n}))},t.attach=function(e,n,r){var o=_workunits$1.get({BaseUrl:e.baseUrl,Wuid:n},(function(){return new t(e,n)}));return r&&o.set(r),o},t.existsLocal=function(e,t){return _workunits$1.has({BaseUrl:e,Wuid:t})},t.submit=function(e,n,r,o){return void 0===o&&(o=!1),t.create(e).then((function(e){return e.update({QueryText:r})})).then((function(e){return o?e.submit(n,exports.WUUpdate.Action.Compile):e.submit(n)}))},t.compile=function(e,n,r){return t.submit(e,n,r,!0)},t.query=function(e,n){return new WorkunitsService(e).WUQuery(n).then((function(n){return n.Workunits.ECLWorkunit.map((function(n){return t.attach(e,n.Wuid,n)}))}))},t.prototype.clearState=function(e){this.clear({Wuid:e,StateID:WUStateID.Unknown})},t.prototype.update=function(e){var t=this;return this.connection.WUUpdate(__assign(__assign({},e),{Wuid:this.Wuid,StateOrig:this.State,JobnameOrig:this.Jobname,DescriptionOrig:this.Description,ProtectedOrig:this.Protected,ClusterOrig:this.Cluster})).then((function(e){return t.set(e.Workunit),t}))},t.prototype.submit=function(e,t,n){var r,o=this;return void 0===t&&(t=exports.WUUpdate.Action.Run),r=void 0!==e?Promise.resolve(e):this.topologyConnection.DefaultTpLogicalClusterQuery().then((function(e){return e.Name})),this._debugMode=!1,t===exports.WUUpdate.Action.Debug&&(t=exports.WUUpdate.Action.Run,this._debugMode=!0),r.then((function(e){return o.connection.WUUpdate({Wuid:o.Wuid,Action:t,ResultLimit:n,DebugValues:{DebugValue:[{Name:"Debug",Value:o._debugMode?"1":""}]}}).then((function(n){return o.set(n.Workunit),o._submitAction=t,o.connection.WUSubmit({Wuid:o.Wuid,Cluster:e})}))})).then((function(){return o}))},t.prototype.isComplete=function(){switch(this.StateID){case WUStateID.Compiled:return"compile"===this.ActionEx||this._submitAction===exports.WUUpdate.Action.Compile;case WUStateID.Completed:case WUStateID.Failed:case WUStateID.Aborted:case WUStateID.NotFound:return!0}return!1},t.prototype.isFailed=function(){switch(this.StateID){case WUStateID.Aborted:case WUStateID.Failed:return!0}return!1},t.prototype.isDeleted=function(){return this.StateID===WUStateID.NotFound},t.prototype.isDebugging=function(){switch(this.StateID){case WUStateID.DebugPaused:case WUStateID.DebugRunning:return!0}return this._debugMode},t.prototype.isRunning=function(){switch(this.StateID){case WUStateID.Compiled:case WUStateID.Running:case WUStateID.Aborting:case WUStateID.Blocked:case WUStateID.DebugPaused:case WUStateID.DebugRunning:return!0}return!1},t.prototype.setToFailed=function(){return this.WUAction("SetToFailed")},t.prototype.pause=function(){return this.WUAction("Pause")},t.prototype.pauseNow=function(){return this.WUAction("PauseNow")},t.prototype.resume=function(){return this.WUAction("Resume")},t.prototype.abort=function(){return this.WUAction("Abort")},t.prototype.delete=function(){return this.WUAction("Delete")},t.prototype.restore=function(){return this.WUAction("Restore")},t.prototype.deschedule=function(){return this.WUAction("Deschedule")},t.prototype.reschedule=function(){return this.WUAction("Reschedule")},t.prototype.resubmit=function(){var e=this;return this.WUResubmit({CloneWorkunit:!1,ResetWorkflow:!1}).then((function(){return e.clearState(e.Wuid),e.refresh().then((function(){return e._monitor(),e}))}))},t.prototype.clone=function(){var e=this;return this.WUResubmit({CloneWorkunit:!0,ResetWorkflow:!1}).then((function(n){return t.attach(e.connection.opts(),n.WUs.WU[0].WUID).refresh()}))},t.prototype.refreshState=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){switch(e.label){case 0:return[4,this.WUQuery()];case 1:return e.sent(),[2,this]}}))}))},t.prototype.refreshInfo=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){switch(e.label){case 0:return[4,this.WUInfo()];case 1:return e.sent(),[2,this]}}))}))},t.prototype.refreshDebug=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){switch(e.label){case 0:return[4,this.debugStatus()];case 1:return e.sent(),[2,this]}}))}))},t.prototype.refresh=function(e){return void 0===e&&(e=!1),__awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){switch(t.label){case 0:return e?[4,Promise.all([this.refreshInfo(),this.refreshDebug()])]:[3,2];case 1:return t.sent(),[3,4];case 2:return[4,this.refreshState()];case 3:t.sent(),t.label=4;case 4:return[2,this]}}))}))},t.prototype.eclExceptions=function(){return this.Exceptions.ECLException},t.prototype.fetchArchive=function(){return this.connection.WUFile({Wuid:this.Wuid,Type:"ArchiveQuery"})},t.prototype.fetchECLExceptions=function(){var e=this;return this.WUInfo({IncludeExceptions:!0}).then((function(){return e.eclExceptions()}))},t.prototype.fetchResults=function(){var e=this;return this.WUInfo({IncludeResults:!0}).then((function(){return e.CResults}))},t.prototype.fetchGraphs=function(){var e=this;return this.WUInfo({IncludeGraphs:!0}).then((function(){return e.CGraphs}))},t.prototype.fetchQuery=function(){var e=this;return this.WUInfo({IncludeECL:!0,TruncateEclTo64k:!1}).then((function(){return e.Query}))},t.prototype.fetchHelpers=function(){var e=this;return this.WUInfo({IncludeHelpers:!0}).then((function(){var t;return(null===(t=e.Helpers)||void 0===t?void 0:t.ECLHelpFile)||[]}))},t.prototype.fetchAllowedClusters=function(){var e=this;return this.WUInfo({IncludeAllowedClusters:!0}).then((function(){var t;return(null===(t=e.AllowedClusters)||void 0===t?void 0:t.AllowedCluster)||[]}))},t.prototype.fetchTotalClusterTime=function(){var e=this;return this.WUInfo({IncludeTotalClusterTime:!0}).then((function(){return e.TotalClusterTime}))},t.prototype.fetchServiceNames=function(){var e=this;return this.WUInfo({IncludeServiceNames:!0}).then((function(){var t;return null===(t=e.ServiceNames)||void 0===t?void 0:t.Item}))},t.prototype.fetchDetailsMeta=function(e){return void 0===e&&(e={}),this.WUDetailsMeta(e)},t.prototype.fetchDetailsRaw=function(e){return void 0===e&&(e={}),this.WUDetails(e).then((function(e){return e.Scopes.Scope}))},t.prototype.fetchDetailsNormalized=function(e){return void 0===e&&(e={}),Promise.all([this.fetchDetailsMeta(),this.fetchDetailsRaw(e)]).then((function(e){for(var t,n=e[0],r={id:{Measure:"label"},name:{Measure:"label"},type:{Measure:"label"}},o=[],i=0,s=e[1];i<s.length;i++){var c=s[i],u={},a={};if(c&&c.Id&&c.Properties&&c.Properties.Property)for(var p in c.Properties.Property){var l=c.Properties.Property[p];switch("ns"===l.Measure&&(l.Measure="s"),r[l.Name]=__assign({},l),delete r[l.Name].RawValue,delete r[l.Name].Formatted,l.Measure){case"bool":u[l.Name]=!!+l.RawValue;break;case"sz":case"ns":case"cnt":u[l.Name]=+l.RawValue;break;case"s":u[l.Name]=+l.RawValue/1e9;break;case"ts":u[l.Name]=new Date(+l.RawValue/1e3).toISOString();break;case"cost":u[l.Name]=+l.RawValue/1e6;break;default:u[l.Name]=l.RawValue}a[l.Name]=formatNum(null!==(t=l.Formatted)&&void 0!==t?t:u[l.Name])}o.push(__assign({id:c.Id,name:c.ScopeName,type:c.ScopeType,__formattedProps:a},u))}return{meta:n,columns:r,data:o}}))},t.prototype.fetchInfo=function(e){return void 0===e&&(e={}),this.WUInfo(e)},t.prototype.fetchDetails=function(e){var t=this;return void 0===e&&(e={}),this.WUDetails(e).then((function(e){return e.Scopes.Scope.map((function(e){return new Scope(t,e)}))}))},t.prototype.fetchDetailsHierarchy=function(e){var t=this;return void 0===e&&(e={}),this.WUDetails(e).then((function(e){var n=[],r={};for(var o in e.Scopes.Scope.forEach((function(e){if(r[e.ScopeName])return r[e.ScopeName].update(e),null;var n=new Scope(t,e);return r[n.ScopeName]=n,n})),r)if(r.hasOwnProperty(o)){var i=r[o],s=i.parentScope();s&&r[s]?r[s].children().push(i):n.push(i)}return n}))},t.prototype.fetchGraphDetails=function(e,t){return void 0===e&&(e=[]),this.fetchDetails({ScopeFilter:{MaxDepth:999999,Ids:e,ScopeTypes:t},NestedFilter:{Depth:999999,ScopeTypes:["graph","subgraph","activity","edge","function"]},PropertiesToReturn:{AllStatistics:!0,AllAttributes:!0,AllHints:!0,AllProperties:!0,AllScopes:!0},ScopeOptions:{IncludeId:!0,IncludeScope:!0,IncludeScopeType:!0},PropertyOptions:{IncludeName:!0,IncludeRawValue:!0,IncludeFormatted:!0,IncludeMeasure:!0,IncludeCreator:!1,IncludeCreatorType:!1}})},t.prototype.fetchScopeGraphs=function(e){return void 0===e&&(e=[]),this.fetchGraphDetails(e,["graph"]).then((function(e){return createGraph(e)}))},t.prototype.fetchTimeElapsed=function(){return this.fetchDetails({ScopeFilter:{PropertyFilters:{PropertyFilter:[{Name:"TimeElapsed"}]}}}).then((function(e){var t={};e.forEach((function(e){t[e.ScopeName]=t[e.ScopeName]||{scope:e.ScopeName,start:null,elapsed:null,finish:null},e.CAttributes.forEach((function(n){"TimeElapsed"===n.Name?t[e.ScopeName].elapsed=+n.RawValue:"ts"===n.Measure&&n.Name.indexOf("Started")>=0&&(t[e.ScopeName].start=n.Formatted)}))}));var n=[];for(var r in t){var o=t[r];if(o.start&&o.elapsed){var i=parser(o.start);i.setMilliseconds(i.getMilliseconds()+o.elapsed/1e6),o.finish=formatter(i),n.push(o)}}return n.sort((function(e,t){return e.start<t.start?-1:e.start>t.start?1:0})),n}))},t.prototype._monitor=function(){this.isComplete()?this._monitorTickCount=0:e.prototype._monitor.call(this)},t.prototype._monitorTimeoutDuration=function(){var t=e.prototype._monitorTimeoutDuration.call(this);return this._monitorTickCount<=1?1e3:this._monitorTickCount<=3?3e3:this._monitorTickCount<=5?5e3:this._monitorTickCount<=7?1e4:t},t.prototype.on=function(t,n,r){var o=this;if(this.isCallback(n))switch(t){case"completed":e.prototype.on.call(this,"propChanged","StateID",(function(e){o.isComplete()&&n([e])}));break;case"changed":e.prototype.on.call(this,t,n)}else if("changed"===t)e.prototype.on.call(this,t,n,r);return this._monitor(),this},t.prototype.watchUntilComplete=function(e){var t=this;return new Promise((function(n,r){var o=t.watch((function(r){e&&e(r),t.isComplete()&&(o.release(),n(t))}))}))},t.prototype.watchUntilRunning=function(e){var t=this;return new Promise((function(n,r){var o=t.watch((function(r){e&&e(r),(t.isComplete()||t.isRunning())&&(o.release(),n(t))}))}))},t.prototype.WUQuery=function(e){var t=this;return void 0===e&&(e={}),this.connection.WUQuery(__assign(__assign({},e),{Wuid:this.Wuid})).then((function(e){return t.set(e.Workunits.ECLWorkunit[0]),e})).catch((function(e){if(!e.Exception.some((function(e){return 20081===e.Code&&(t.clearState(t.Wuid),t.set("StateID",WUStateID.NotFound),!0)})))throw logger$3.warning("Unexpected exception: "),e;return{}}))},t.prototype.WUCreate=function(){var e=this;return this.connection.WUCreate().then((function(t){return e.set(t.Workunit),_workunits$1.set(e),t}))},t.prototype.WUInfo=function(e){var t=this;void 0===e&&(e={});var n=e.IncludeResults||e.IncludeResultsViewNames;return this.connection.WUInfo(__assign(__assign({},e),{Wuid:this.Wuid,IncludeResults:n,IncludeResultsViewNames:n,SuppressResultSchemas:!1})).then((function(e){return t.set(e.Workunit),n&&t.set({ResultViews:e.ResultViews}),e})).catch((function(e){if(!e.Exception.some((function(e){return 20080===e.Code&&(t.clearState(t.Wuid),t.set("StateID",WUStateID.NotFound),!0)})))throw logger$3.warning("Unexpected exception: "),e;return{}}))},t.prototype.WUResubmit=function(e){return this.connection.WUResubmit(util.deepMixinT({},e,{Wuids:[this.Wuid]}))},t.prototype.WUDetailsMeta=function(e){return this.connection.WUDetailsMeta(e)},t.prototype.WUDetails=function(e){return this.connection.WUDetails(util.deepMixinT({ScopeFilter:{MaxDepth:9999},ScopeOptions:{IncludeMatchedScopesInResults:!0,IncludeScope:!0,IncludeId:!1,IncludeScopeType:!1},PropertyOptions:{IncludeName:!0,IncludeRawValue:!1,IncludeFormatted:!0,IncludeMeasure:!0,IncludeCreator:!1,IncludeCreatorType:!1}},e,{WUID:this.Wuid})).then((function(e){return util.deepMixinT({Scopes:{Scope:[]}},e)}))},t.prototype.WUAction=function(e){var t=this;return this.connection.WUAction({Wuids:[this.Wuid],WUActionType:e}).then((function(e){return t.refresh().then((function(){return t._monitor(),e}))}))},t.prototype.publish=function(e){return this.connection.WUPublishWorkunit({Wuid:this.Wuid,Cluster:this.Cluster,JobName:e||this.Jobname,AllowForeignFiles:!0,Activate:!0,Wait:5e3})},t.prototype.WUCDebug=function(e,t){void 0===t&&(t={});var n="";for(var r in t)t.hasOwnProperty(r)&&(n+=" ".concat(r,"='").concat(t[r],"'"));return this.connection.WUCDebug({Wuid:this.Wuid,Command:"<debug:".concat(e," uid='").concat(this.Wuid,"'").concat(n,"/>")}).then((function(e){return e}))},t.prototype.debug=function(e,t){return this.isDebugging()?this.WUCDebug(e,t).then((function(t){var n=t.children(e);return n.length?n[0]:new util.XMLNode(e)})).catch((function(t){return logger$3.error(t),Promise.resolve(new util.XMLNode(e))})):Promise.resolve(new util.XMLNode(e))},t.prototype.debugStatus=function(){var e=this;return this.isDebugging()?this.debug("status").then((function(t){var n=__assign(__assign({},e.DebugState),t.$);return e.set({DebugState:n}),t})):Promise.resolve({DebugState:{state:"unknown"}})},t.prototype.debugContinue=function(e){return void 0===e&&(e=""),this.debug("continue",{mode:e})},t.prototype.debugStep=function(e){return this.debug("step",{mode:e})},t.prototype.debugPause=function(){return this.debug("interrupt")},t.prototype.debugQuit=function(){return this.debug("quit")},t.prototype.debugDeleteAllBreakpoints=function(){return this.debug("delete",{idx:0})},t.prototype.debugBreakpointResponseParser=function(e){return e.children().map((function(e){if("break"===e.name)return e.$}))},t.prototype.debugBreakpointAdd=function(e,t,n){var r=this;return this.debug("breakpoint",{id:e,mode:t,action:n}).then((function(e){return r.debugBreakpointResponseParser(e)}))},t.prototype.debugBreakpointList=function(){var e=this;return this.debug("list").then((function(t){return e.debugBreakpointResponseParser(t)}))},t.prototype.debugGraph=function(){var e=this;return this._debugAllGraph&&this.DebugState._prevGraphSequenceNum===this.DebugState.graphSequenceNum?Promise.resolve(this._debugAllGraph):this.debug("graph",{name:"all"}).then((function(t){return e.DebugState._prevGraphSequenceNum=e.DebugState.graphSequenceNum,e._debugAllGraph=createXGMMLGraph(e.Wuid,t),e._debugAllGraph}))},t.prototype.debugBreakpointValid=function(e){return this.debugGraph().then((function(t){return breakpointLocations(t,e)}))},t.prototype.debugPrint=function(e,t,n){return void 0===t&&(t=0),void 0===n&&(n=10),this.debug("print",{edgeID:e,startRow:t,numRows:n}).then((function(e){return e.children().map((function(e){var t={};return e.children().forEach((function(e){t[e.name]=e.content})),t}))}))},t}(util.StateObject),ATTR_DEFINITION="definition";function hasECLDefinition(e){return void 0!==e._[ATTR_DEFINITION]}function getECLDefinition(e){var t=/([a-z]:\\(?:[-\w\.\d]+\\)*(?:[-\w\.\d]+)?|(?:\/[\w\.\-]+)+)\((\d*),(\d*)\)/.exec(e._[ATTR_DEFINITION]);if(t){var n=t[1],r=t[2],o=t[3];return n.replace(/\/\.\//g,"/"),{id:e._.id,file:n,line:+r,column:+o}}throw new Error("Bad definition: ".concat(e._[ATTR_DEFINITION]))}function breakpointLocations(e,t){for(var n=[],r=0,o=e.vertices;r<o.length;r++){var i=o[r];if(hasECLDefinition(i)){var s=getECLDefinition(i);(s&&!t||t===s.file)&&n.push(s)}}return n.sort((function(e,t){return e.line-t.line}))}var Activity=function(e){function t(t){var n=e.call(this)||this;return n.lazyRefresh=util.debounce((function(){return __awaiter(n,void 0,void 0,(function(){var e;return __generator(this,(function(t){switch(t.label){case 0:return[4,this.connection.Activity({})];case 1:return e=t.sent(),this.set(e),[2,this]}}))}))})),n.connection=t instanceof SMCService?t:new SMCService(t),n.clear({}),n}return __extends(t,e),Object.defineProperty(t.prototype,"properties",{get:function(){return this.get()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Exceptions",{get:function(){return this.get("Exceptions")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Build",{get:function(){return this.get("Build")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ThorClusterList",{get:function(){return this.get("ThorClusterList")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"RoxieClusterList",{get:function(){return this.get("RoxieClusterList")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"HThorClusterList",{get:function(){return this.get("HThorClusterList")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"DFUJobs",{get:function(){return this.get("DFUJobs")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Running",{get:function(){return this.get("Running",{ActiveWorkunit:[]})},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"BannerContent",{get:function(){return this.get("BannerContent")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"BannerColor",{get:function(){return this.get("BannerColor")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"BannerSize",{get:function(){return this.get("BannerSize")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"BannerScroll",{get:function(){return this.get("BannerScroll")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ChatURL",{get:function(){return this.get("ChatURL")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ShowBanner",{get:function(){return this.get("ShowBanner")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ShowChatURL",{get:function(){return this.get("ShowChatURL")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"SortBy",{get:function(){return this.get("SortBy")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Descending",{get:function(){return this.get("Descending")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"SuperUser",{get:function(){return this.get("SuperUser")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"AccessRight",{get:function(){return this.get("AccessRight")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ServerJobQueues",{get:function(){return this.get("ServerJobQueues")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ActivityTime",{get:function(){return this.get("ActivityTime")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"DaliDetached",{get:function(){return this.get("DaliDetached")},enumerable:!1,configurable:!0}),t.attach=function(e,n){return _activity||(_activity=new t(e)),n&&_activity.set(__assign({},n)),_activity},t.prototype.runningWorkunits=function(e){var t=this;return void 0===e&&(e=""),this.Running.ActiveWorkunit.filter((function(t){return""===e||t.ClusterName===e})).map((function(e){return Workunit.attach(t.connection.connectionOptions(),e.Wuid,e)}))},t.prototype.setBanner=function(e){var t=this;return this.connection.SetBanner(__assign({},e)).then((function(e){return t.set(e),t}))},t.prototype.refresh=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){return[2,this.lazyRefresh()]}))}))},t}(util.StateObject),LogicalFileCache=function(e){function t(){return e.call(this,(function(e){return"".concat(e.BaseUrl,"-").concat(e.Cluster,"-").concat(e.Name)}))||this}return __extends(t,e),t}(util.Cache),_store$1=new LogicalFileCache,LogicalFile=function(e){function t(t,n,r){var o=e.call(this)||this;return o.connection=t instanceof DFUService?t:new DFUService(t),o.clear({Cluster:n,Name:r}),o}return __extends(t,e),Object.defineProperty(t.prototype,"BaseUrl",{get:function(){return this.connection.baseUrl},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Cluster",{get:function(){return this.get("Cluster")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Name",{get:function(){return this.get("Name")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Filename",{get:function(){return this.get("Filename")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Prefix",{get:function(){return this.get("Prefix")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"NodeGroup",{get:function(){return this.get("NodeGroup")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"NumParts",{get:function(){return this.get("NumParts")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Description",{get:function(){return this.get("Description")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Dir",{get:function(){return this.get("Dir")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"PathMask",{get:function(){return this.get("PathMask")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Filesize",{get:function(){return this.get("Filesize")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"FileSizeInt64",{get:function(){return this.get("FileSizeInt64")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"RecordSize",{get:function(){return this.get("RecordSize")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"RecordCount",{get:function(){return this.get("RecordCount")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"RecordSizeInt64",{get:function(){return this.get("RecordSizeInt64")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"RecordCountInt64",{get:function(){return this.get("RecordCountInt64")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Wuid",{get:function(){return this.get("Wuid")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Owner",{get:function(){return this.get("Owner")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"JobName",{get:function(){return this.get("JobName")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Persistent",{get:function(){return this.get("Persistent")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Format",{get:function(){return this.get("Format")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"MaxRecordSize",{get:function(){return this.get("MaxRecordSize")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"CsvSeparate",{get:function(){return this.get("CsvSeparate")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"CsvQuote",{get:function(){return this.get("CsvQuote")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"CsvTerminate",{get:function(){return this.get("CsvTerminate")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"CsvEscape",{get:function(){return this.get("CsvEscape")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Modified",{get:function(){return this.get("Modified")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Ecl",{get:function(){return this.get("Ecl")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Stat",{get:function(){return this.get("Stat")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"DFUFilePartsOnClusters",{get:function(){return this.get("DFUFilePartsOnClusters")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isSuperfile",{get:function(){return this.get("isSuperfile")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ShowFileContent",{get:function(){return this.get("ShowFileContent")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"subfiles",{get:function(){return this.get("subfiles")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Superfiles",{get:function(){return this.get("Superfiles")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ProtectList",{get:function(){return this.get("ProtectList")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"FromRoxieCluster",{get:function(){return this.get("FromRoxieCluster")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Graphs",{get:function(){return this.get("Graphs")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"UserPermission",{get:function(){return this.get("UserPermission")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ContentType",{get:function(){return this.get("ContentType")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"CompressedFileSize",{get:function(){return this.get("CompressedFileSize")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"PercentCompressed",{get:function(){return this.get("PercentCompressed")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"IsCompressed",{get:function(){return this.get("IsCompressed")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"BrowseData",{get:function(){return this.get("BrowseData")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"jsonInfo",{get:function(){return this.get("jsonInfo")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"binInfo",{get:function(){return this.get("binInfo")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"PackageID",{get:function(){return this.get("PackageID")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Partition",{get:function(){return this.get("Partition")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Blooms",{get:function(){return this.get("Blooms")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ExpireDays",{get:function(){return this.get("ExpireDays")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"KeyType",{get:function(){return this.get("KeyType")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"IsRestricted",{get:function(){return this.get("IsRestricted")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"AtRestCost",{get:function(){return this.get("AtRestCost")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"AccessCost",{get:function(){return this.get("AccessCost")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ExpirationDate",{get:function(){return this.get("ExpirationDate")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ExtendedIndexInfo",{get:function(){return this.get("ExtendedIndexInfo")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"properties",{get:function(){return this.get()},enumerable:!1,configurable:!0}),t.attach=function(e,n,r){return _store$1.get({BaseUrl:e.baseUrl,Cluster:n,Name:r},(function(){return new t(e,n,r)}))},t.prototype.filePartsOnCluster=function(){var e;return __spreadArray([],(null===(e=this.DFUFilePartsOnClusters)||void 0===e?void 0:e.DFUFilePartsOnCluster)||[],!0)},t.prototype.fileParts=function(){for(var e,t,n=[],r=0,o=(null===(e=this.DFUFilePartsOnClusters)||void 0===e?void 0:e.DFUFilePartsOnCluster)||[];r<o.length;r++)for(var i=o[r],s=0,c=(null===(t=null==i?void 0:i.DFUFileParts)||void 0===t?void 0:t.DFUPart)||[];s<c.length;s++){var u=c[s],a=__assign(__assign({},i),u);delete a.DFUFileParts,n.push(a)}return n},t.prototype.update=function(e){var t=this;return this.connection.DFUInfo(__assign(__assign({},e),{Cluster:this.Cluster,Name:this.Name})).then((function(e){return t.set(__assign({Cluster:t.Cluster},e.FileDetail)),e}))},t.prototype.fetchInfo=function(){var e=this;return this.connection.DFUInfo({Cluster:this.Cluster,Name:this.Name}).then((function(t){return e.set(__assign({Cluster:e.Cluster},t.FileDetail)),t.FileDetail}))},t.prototype.fetchDefFile=function(e){return this.connection.DFUFile({Name:this.Name,Format:e})},t.prototype.fetchListHistory=function(){return this.connection.ListHistory({Name:this.Name}).then((function(e){var t;return(null===(t=null==e?void 0:e.History)||void 0===t?void 0:t.Origin)||[]}))},t.prototype.eraseHistory=function(){return this.connection.EraseHistory({Name:this.Name}).then((function(e){var t;return(null===(t=null==e?void 0:e.History)||void 0===t?void 0:t.Origin)||[]}))},t}(util.StateObject),MachineCache=function(e){function t(){return e.call(this,(function(e){return e.Address}))||this}return __extends(t,e),t}(util.Cache),_machines=new MachineCache,Machine=function(e){function t(t){var n=e.call(this)||this;return n.connection=t instanceof MachineService?t:new MachineService(t),n}return __extends(t,e),Object.defineProperty(t.prototype,"Address",{get:function(){return this.get("Address")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ConfigAddress",{get:function(){return this.get("ConfigAddress")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Name",{get:function(){return this.get("Name")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ProcessType",{get:function(){return this.get("ProcessType")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"DisplayType",{get:function(){return this.get("DisplayType")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Description",{get:function(){return this.get("Description")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"AgentVersion",{get:function(){return this.get("AgentVersion")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Contact",{get:function(){return this.get("Contact")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Location",{get:function(){return this.get("Location")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"UpTime",{get:function(){return this.get("UpTime")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ComponentName",{get:function(){return this.get("ComponentName")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ComponentPath",{get:function(){return this.get("ComponentPath")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"RoxieState",{get:function(){return this.get("RoxieState")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"RoxieStateDetails",{get:function(){return this.get("RoxieStateDetails")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"OS",{get:function(){return this.get("OS")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ProcessNumber",{get:function(){return this.get("ProcessNumber")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Channels",{get:function(){return this.get("Channels")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Processors",{get:function(){return this.get("Processors")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Storage",{get:function(){return this.get("Storage")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Running",{get:function(){return this.get("Running")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"PhysicalMemory",{get:function(){return this.get("PhysicalMemory")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"VirtualMemory",{get:function(){return this.get("VirtualMemory")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ComponentInfo",{get:function(){return this.get("ComponentInfo")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Exception",{get:function(){return this.get("Exception")},enumerable:!1,configurable:!0}),t.attach=function(e,n,r){var o=_machines.get({Address:n},(function(){return new t(e)}));return r&&o.set(r),o},t}(util.StateObject),TargetClusterCache=function(e){function t(){return e.call(this,(function(e){return"".concat(e.BaseUrl,"-").concat(e.Name)}))||this}return __extends(t,e),t}(util.Cache),_targetCluster=new TargetClusterCache,TargetCluster=function(e){function t(t,n){var r=e.call(this)||this;return t instanceof TopologyService?(r.connection=t,r.machineConnection=new MachineService(t.connectionOptions())):(r.connection=new TopologyService(t),r.machineConnection=new MachineService(t)),r.clear({Name:n}),r}return __extends(t,e),Object.defineProperty(t.prototype,"BaseUrl",{get:function(){return this.connection.baseUrl},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Name",{get:function(){return this.get("Name")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Prefix",{get:function(){return this.get("Prefix")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Type",{get:function(){return this.get("Type")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"IsDefault",{get:function(){return this.get("IsDefault")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"TpClusters",{get:function(){return this.get("TpClusters")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"TpEclCCServers",{get:function(){return this.get("TpEclCCServers")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"TpEclServers",{get:function(){return this.get("TpEclServers")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"TpEclAgents",{get:function(){return this.get("TpEclAgents")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"TpEclSchedulers",{get:function(){return this.get("TpEclSchedulers")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"MachineInfoEx",{get:function(){return this.get("MachineInfoEx",[])},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"CMachineInfoEx",{get:function(){var e=this;return this.MachineInfoEx.map((function(t){return Machine.attach(e.machineConnection,t.Address,t)}))},enumerable:!1,configurable:!0}),t.attach=function(e,n,r){var o=_targetCluster.get({BaseUrl:e.baseUrl,Name:n},(function(){return new t(e,n)}));return r&&o.set(__assign({},r)),o},t.prototype.fetchMachines=function(e){var t=this;return void 0===e&&(e={}),this.machineConnection.GetTargetClusterInfo(__assign({TargetClusters:{Item:["".concat(this.Type,":").concat(this.Name)]}},e)).then((function(e){for(var n=[],r=0,o=e.TargetClusterInfoList.TargetClusterInfo;r<o.length;r++)for(var i=0,s=o[r].Processes.MachineInfoEx;i<s.length;i++){var c=s[i];n.push(c)}return t.set("MachineInfoEx",n),t.CMachineInfoEx}))},t.prototype.machineStats=function(){for(var e=0,t=0,n=0,r=0,o=this.CMachineInfoEx;r<o.length;r++)for(var i=0,s=o[r].Storage.StorageInfo;i<s.length;i++){var c=s[i];t+=c.Available,n+=c.Total;var u=1-c.Available/c.Total;u>e&&(e=u)}return{maxDisk:e,meanDisk:1-(n?t/n:1)}},t.prototype.fetchUsage=function(){return this.machineConnection.GetTargetClusterUsageEx([this.Name])},t}(util.StateObject);function targetClusters(e){return(e instanceof TopologyService?e:new TopologyService(e)).TpListTargetClusters({}).then((function(t){return t.TargetClusters.TpClusterNameType.map((function(t){return TargetCluster.attach(e,t.Name,t)}))}))}var _defaultTargetCluster={};function defaultTargetCluster(e){if(!_defaultTargetCluster[e.baseUrl]){var t=void 0;t=e instanceof TopologyService?e:new TopologyService(e),_defaultTargetCluster[e.baseUrl]=t.TpListTargetClusters({}).then((function(t){var n,r,o;t.TargetClusters.TpClusterNameType.forEach((function(e){n||(n=e),r||!0!==e.IsDefault||(r=e),o||"hthor"!==e.Type||(o=e)}));var i=r||o||n;return TargetCluster.attach(e,i.Name,i)}))}return _defaultTargetCluster[e.baseUrl]}var States,TopologyCache=function(e){function t(){return e.call(this,(function(e){return e.BaseUrl}))||this}return __extends(t,e),t}(util.Cache),_topology=new TopologyCache,Topology=function(e){function t(t){var n=e.call(this)||this;return n.connection=t instanceof TopologyService?t:new TopologyService(t),n}return __extends(t,e),Object.defineProperty(t.prototype,"BaseUrl",{get:function(){return this.connection.baseUrl},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"properties",{get:function(){return this.get()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"TargetClusters",{get:function(){return this.get("TargetClusters")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"CTargetClusters",{get:function(){var e=this;return this.TargetClusters.map((function(t){return TargetCluster.attach(e.connection,t.Name,t)}))},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"LogicalClusters",{get:function(){return this.get("LogicalClusters")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Services",{get:function(){return this.get("Services")},enumerable:!1,configurable:!0}),t.attach=function(e){return _topology.get({BaseUrl:e.baseUrl},(function(){return new t(e)}))},t.prototype.GetESPServiceBaseURL=function(e){var t=this;return void 0===e&&(e=""),this.connection.TpServiceQuery({}).then((function(n){var r=t.connection.protocol(),o=t.connection.ip(),i="https:"===r?"18002":"8002";if(util.exists("ServiceList.TpEspServers.TpEspServer",n))for(var s=0,c=n.ServiceList.TpEspServers.TpEspServer;s<c.length;s++){var u=c[s];if(util.exists("TpBindings.TpBinding",u))for(var a=0,p=u.TpBindings.TpBinding;a<p.length;a++){var l=p[a];l.Service===e&&l.Protocol+":"===r&&(i=l.Port)}}return"".concat(r,"//").concat(o,":").concat(i,"/")}))},t.prototype.fetchTargetClusters=function(){var e=this;return this.connection.TpTargetClusterQuery({Type:"ROOT"}).then((function(t){var n,r;return e.set({TargetClusters:null!==(r=null===(n=t.TpTargetClusters)||void 0===n?void 0:n.TpTargetCluster)&&void 0!==r?r:[]}),e.CTargetClusters}))},t.prototype.fetchLogicalClusters=function(e){var t=this;return void 0===e&&(e={}),this.connection.TpLogicalClusterQuery(e).then((function(e){return t.set({LogicalClusters:e.TpLogicalClusters.TpLogicalCluster}),t.LogicalClusters}))},t.prototype.fetchServices=function(e){var t=this;return void 0===e&&(e={}),this.connection.TpServiceQuery(e).then((function(e){return t.set({Services:e.ServiceList}),t.Services}))},t.prototype.refresh=function(e){var t=this;return void 0===e&&(e=!1),this._prevRefresh&&!e||(this._prevRefresh=Promise.all([this.fetchTargetClusters(),this.fetchLogicalClusters(),this.fetchServices()]).then((function(){return t}))),this._prevRefresh},t.prototype.on=function(t,n,r){if(this.isCallback(n)){if("changed"===t)e.prototype.on.call(this,t,n)}else if("changed"===t)e.prototype.on.call(this,t,n,r);return this._monitor(),this},t}(util.StateObject),logger$2=util.scopedLogger("@hpcc-js/comms/ecl/query.ts"),QueryCache=function(e){function t(){return e.call(this,(function(e){return util.Cache.hash([e.QueryId,e.QuerySet])}))||this}return __extends(t,e),t}(util.Cache),_queries=new QueryCache,Query=function(e){function t(t,n,r,o){var i=e.call(this)||this;return i.wsWorkunitsService=t instanceof WorkunitsService?t:new WorkunitsService(t),i.topology=Topology.attach(i.wsWorkunitsService.opts()),i.set(__assign({QuerySet:n,QueryId:r},o)),i}return __extends(t,e),Object.defineProperty(t.prototype,"BaseUrl",{get:function(){return this.wsWorkunitsService.baseUrl},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"properties",{get:function(){return this.get()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Exceptions",{get:function(){return this.get("Exceptions")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"QueryId",{get:function(){return this.get("QueryId")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"QuerySet",{get:function(){return this.get("QuerySet")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"QueryName",{get:function(){return this.get("QueryName")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Wuid",{get:function(){return this.get("Wuid")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Dll",{get:function(){return this.get("Dll")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Suspended",{get:function(){return this.get("Suspended")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Activated",{get:function(){return this.get("Activated")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"SuspendedBy",{get:function(){return this.get("SuspendedBy")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Clusters",{get:function(){return this.get("Clusters")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"PublishedBy",{get:function(){return this.get("PublishedBy")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Comment",{get:function(){return this.get("Comment")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"LogicalFiles",{get:function(){return this.get("LogicalFiles")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"SuperFiles",{get:function(){return this.get("SuperFiles")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"IsLibrary",{get:function(){return this.get("IsLibrary")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Priority",{get:function(){return this.get("Priority")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"WUSnapShot",{get:function(){return this.get("WUSnapShot")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"CompileTime",{get:function(){return this.get("CompileTime")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"LibrariesUsed",{get:function(){return this.get("LibrariesUsed")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"CountGraphs",{get:function(){return this.get("CountGraphs")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ResourceURLCount",{get:function(){return this.get("ResourceURLCount")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"WsEclAddresses",{get:function(){return this.get("WsEclAddresses")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"WUGraphs",{get:function(){return this.get("WUGraphs")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"WUTimers",{get:function(){return this.get("WUTimers")},enumerable:!1,configurable:!0}),t.attach=function(e,n,r){return _queries.get({BaseUrl:e.baseUrl,QuerySet:n,QueryId:r},(function(){return new t(e,n,r)}))},t.prototype.wsEclService=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){return this._eclService||(this._eclService=this.topology.fetchServices({}).then((function(e){for(var t,n,r,o,i=0,s=null!==(n=null===(t=null==e?void 0:e.TpEspServers)||void 0===t?void 0:t.TpEspServer)&&void 0!==n?n:[];i<s.length;i++)for(var c=s[i],u=0,a=null!==(o=null===(r=null==c?void 0:c.TpBindings)||void 0===r?void 0:r.TpBinding)&&void 0!==o?o:[];u<a.length;u++){var p=a[u];if("ws_ecl"===(null==p?void 0:p.Service)){var l="".concat(p.Protocol,"://").concat(globalThis.location.hostname,":").concat(p.Port);return new EclService({baseUrl:l})}}}))),[2,this._eclService]}))}))},t.prototype.fetchDetails=function(){return __awaiter(this,void 0,void 0,(function(){var e;return __generator(this,(function(t){switch(t.label){case 0:return[4,this.wsWorkunitsService.WUQueryDetails({QuerySet:this.QuerySet,QueryId:this.QueryId,IncludeStateOnClusters:!0,IncludeSuperFiles:!0,IncludeWsEclAddresses:!0,CheckAllNodes:!1})];case 1:return e=t.sent(),this.set(__assign({},e)),[2]}}))}))},t.prototype.fetchRequestSchema=function(){var e;return __awaiter(this,void 0,void 0,(function(){var t,n,r;return __generator(this,(function(o){switch(o.label){case 0:return[4,this.wsEclService()];case 1:t=o.sent(),o.label=2;case 2:return o.trys.push([2,4,,5]),n=this,[4,null==t?void 0:t.requestJson(this.QuerySet,this.QueryId)];case 3:return n._requestSchema=null!==(e=o.sent())&&void 0!==e?e:[],[3,5];case 4:return r=o.sent(),logger$2.debug(r),this._requestSchema=[],[3,5];case 5:return[2]}}))}))},t.prototype.fetchResponseSchema=function(){var e;return __awaiter(this,void 0,void 0,(function(){var t,n,r;return __generator(this,(function(o){switch(o.label){case 0:return[4,this.wsEclService()];case 1:t=o.sent(),o.label=2;case 2:return o.trys.push([2,4,,5]),n=this,[4,null==t?void 0:t.responseJson(this.QuerySet,this.QueryId)];case 3:return n._responseSchema=null!==(e=o.sent())&&void 0!==e?e:{},[3,5];case 4:return r=o.sent(),logger$2.debug(r),this._responseSchema={},[3,5];case 5:return[2]}}))}))},t.prototype.fetchSchema=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){switch(e.label){case 0:return[4,Promise.all([this.fetchRequestSchema(),this.fetchResponseSchema()])];case 1:return e.sent(),[2]}}))}))},t.prototype.fetchSummaryStats=function(){return this.wsWorkunitsService.WUQueryGetSummaryStats({Target:this.QuerySet,QueryId:this.QueryId})},t.prototype.submit=function(e){var t;return __awaiter(this,void 0,void 0,(function(){var n;return __generator(this,(function(r){switch(r.label){case 0:return[4,this.wsEclService()];case 1:n=r.sent();try{return[2,null!==(t=null==n?void 0:n.submit(this.QuerySet,this.QueryId,e).then((function(e){for(var t in e)e[t]=e[t].Row;return e})))&&void 0!==t?t:[]]}catch(e){return logger$2.debug(e),[2,[]]}return[2]}}))}))},t.prototype.refresh=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){switch(e.label){case 0:return[4,Promise.all([this.fetchDetails(),this.fetchSchema()])];case 1:return e.sent(),[2,this]}}))}))},t.prototype.requestFields=function(){return this._requestSchema?this._requestSchema:[]},t.prototype.responseFields=function(){return this._responseSchema?this._responseSchema:{}},t.prototype.resultNames=function(){var e=[];for(var t in this.responseFields())e.push(t);return e},t.prototype.resultFields=function(e){return this._responseSchema[e]?this._responseSchema[e]:[]},t}(util.StateObject),StoreCache=function(e){function t(){return e.call(this,(function(e){return"".concat(e.BaseUrl,"-").concat(e.Name,":").concat(e.UserSpecific,"-").concat(e.Namespace)}))||this}return __extends(t,e),t}(util.Cache),_store=new StoreCache,ValueChangedMessage=function(e){function t(t,n,r){var o=e.call(this)||this;return o.key=t,o.value=n,o.oldValue=r,o}return __extends(t,e),Object.defineProperty(t.prototype,"canConflate",{get:function(){return!0},enumerable:!1,configurable:!0}),t.prototype.conflate=function(e){return this.key===e.key&&(this.value=e.value,!0)},t.prototype.void=function(){return this.value===this.oldValue},t}(util.Message),Store=function(){function e(e,t,n,r){this._dispatch=new util.Dispatch,this._knownValues={},this.connection=e instanceof StoreService?e:new StoreService(e),this.Name=t,this.UserSpecific=r,this.Namespace=n}return Object.defineProperty(e.prototype,"BaseUrl",{get:function(){return this.connection.baseUrl},enumerable:!1,configurable:!0}),e.attach=function(t,n,r,o){return void 0===n&&(n="HPCCApps"),void 0===o&&(o=!0),_store.get({BaseUrl:t.baseUrl,Name:n,UserSpecific:o,Namespace:r},(function(){return new e(t,n,r,o)}))},e.prototype.create=function(){this.connection.CreateStore({Name:this.Name,UserSpecific:this.UserSpecific,Type:"",Description:""})},e.prototype.set=function(e,t,n){var r=this;return void 0===n&&(n=!0),this.connection.Set({StoreName:this.Name,UserSpecific:this.UserSpecific,Namespace:this.Namespace,Key:e,Value:t}).then((function(o){var i=r._knownValues[e];r._knownValues[e]=t,n&&r._dispatch.post(new ValueChangedMessage(e,t,i))})).catch((function(n){console.error('Store.set("'.concat(e,'", "').concat(t,'") failed:'),n)}))},e.prototype.get=function(e,t){var n=this;return void 0===t&&(t=!0),this.connection.Fetch({StoreName:this.Name,UserSpecific:this.UserSpecific,Namespace:this.Namespace,Key:e}).then((function(r){var o=n._knownValues[e];return n._knownValues[e]=r.Value,t&&n._dispatch.post(new ValueChangedMessage(e,r.Value,o)),r.Value})).catch((function(t){console.error("Store.get(".concat(e,") failed:"),t)}))},e.prototype.getAll=function(e){var t=this;return void 0===e&&(e=!0),this.connection.FetchAll({StoreName:this.Name,UserSpecific:this.UserSpecific,Namespace:this.Namespace}).then((function(n){var r={},o=t._knownValues;if(t._knownValues={},n.Pairs.Pair.forEach((function(n){var i=t._knownValues[n.Key];t._knownValues[n.Key]=n.Value,delete o[n.Key],r[n.Key]=n.Value,e&&t._dispatch.post(new ValueChangedMessage(n.Key,n.Value,i))})),e)for(var i in o)t._dispatch.post(new ValueChangedMessage(i,void 0,o[i]));return r})).catch((function(e){return console.error("Store.getAll failed:",e),{}}))},e.prototype.delete=function(e,t){var n=this;return void 0===t&&(t=!0),this.connection.Delete({StoreName:this.Name,UserSpecific:this.UserSpecific,Namespace:this.Namespace,Key:e}).then((function(r){var o=n._knownValues[e];delete n._knownValues[e],t&&n._dispatch.post(new ValueChangedMessage(e,void 0,o))})).catch((function(t){console.error("Store.delete(".concat(e,") failed:"),t)}))},e.prototype.monitor=function(e){return this._dispatch.attach(e)},e}(),logger$1=util.scopedLogger("@hpcc-js/comms/dfuWorkunit.ts");!function(e){e[e.Unknown=0]="Unknown",e[e.Scheduled=1]="Scheduled",e[e.Queued=2]="Queued",e[e.Started=3]="Started",e[e.Aborted=4]="Aborted",e[e.Failed=5]="Failed",e[e.Finished=6]="Finished",e[e.Monitoring=7]="Monitoring",e[e.Aborting=8]="Aborting",e[e.NotFound=999]="NotFound"}(States||(States={}));var DFUWorkunitCache=function(e){function t(){return e.call(this,(function(e){return"".concat(e.BaseUrl,"-").concat(e.ID)}))||this}return __extends(t,e),t}(util.Cache),_workunits=new DFUWorkunitCache,DFUWorkunit=function(e){function t(t,n){var r=e.call(this)||this;return r.connection=new FileSprayService(t),r.topologyConnection=new TopologyService(t),r.clearState(n),r}return __extends(t,e),Object.defineProperty(t.prototype,"BaseUrl",{get:function(){return this.connection.baseUrl},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"properties",{get:function(){return this.get()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ID",{get:function(){return this.get("ID")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"DFUServerName",{get:function(){return this.get("DFUServerName")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ClusterName",{get:function(){return this.get("ClusterName")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"JobName",{get:function(){return this.get("JobName")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Queue",{get:function(){return this.get("Queue")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"User",{get:function(){return this.get("User")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isProtected",{get:function(){return this.get("isProtected")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Command",{get:function(){return this.get("Command")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"CommandMessage",{get:function(){return this.get("CommandMessage")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"PercentDone",{get:function(){return this.get("PercentDone")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"SecsLeft",{get:function(){return this.get("SecsLeft")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ProgressMessage",{get:function(){return this.get("ProgressMessage")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"SummaryMessage",{get:function(){return this.get("SummaryMessage")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"State",{get:function(){return this.get("State",States.Unknown)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"SourceLogicalName",{get:function(){return this.get("SourceLogicalName")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"SourceIP",{get:function(){return this.get("SourceIP")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"SourceFilePath",{get:function(){return this.get("SourceFilePath")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"SourceDali",{get:function(){return this.get("SourceDali")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"SourceRecordSize",{get:function(){return this.get("SourceRecordSize")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"SourceFormat",{get:function(){return this.get("SourceFormat")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"RowTag",{get:function(){return this.get("RowTag")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"SourceNumParts",{get:function(){return this.get("SourceNumParts")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"SourceDirectory",{get:function(){return this.get("SourceDirectory")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"DestLogicalName",{get:function(){return this.get("DestLogicalName")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"DestGroupName",{get:function(){return this.get("DestGroupName")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"DestDirectory",{get:function(){return this.get("DestDirectory")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"DestIP",{get:function(){return this.get("DestIP")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"DestFilePath",{get:function(){return this.get("DestFilePath")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"DestFormat",{get:function(){return this.get("DestFormat")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"DestNumParts",{get:function(){return this.get("DestNumParts")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"DestRecordSize",{get:function(){return this.get("DestRecordSize")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Replicate",{get:function(){return this.get("Replicate")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Overwrite",{get:function(){return this.get("Overwrite")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Compress",{get:function(){return this.get("Compress")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"SourceCsvSeparate",{get:function(){return this.get("SourceCsvSeparate")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"SourceCsvQuote",{get:function(){return this.get("SourceCsvQuote")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"SourceCsvTerminate",{get:function(){return this.get("SourceCsvTerminate")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"SourceCsvEscape",{get:function(){return this.get("SourceCsvEscape")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"TimeStarted",{get:function(){return this.get("TimeStarted")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"TimeStopped",{get:function(){return this.get("TimeStopped")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"StateMessage",{get:function(){return this.get("StateMessage")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"MonitorEventName",{get:function(){return this.get("MonitorEventName")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"MonitorSub",{get:function(){return this.get("MonitorSub")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"MonitorShotLimit",{get:function(){return this.get("MonitorShotLimit")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"SourceDiffKeyName",{get:function(){return this.get("SourceDiffKeyName")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"DestDiffKeyName",{get:function(){return this.get("DestDiffKeyName")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Archived",{get:function(){return this.get("Archived")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"encrypt",{get:function(){return this.get("encrypt")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"decrypt",{get:function(){return this.get("decrypt")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"failIfNoSourceFile",{get:function(){return this.get("failIfNoSourceFile")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"recordStructurePresent",{get:function(){return this.get("recordStructurePresent")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"quotedTerminator",{get:function(){return this.get("quotedTerminator")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"preserveCompression",{get:function(){return this.get("preserveCompression")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"expireDays",{get:function(){return this.get("expireDays")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"PreserveFileParts",{get:function(){return this.get("PreserveFileParts")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"FileAccessCost",{get:function(){return this.get("FileAccessCost")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"KbPerSecAve",{get:function(){return this.get("KbPerSecAve")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"KbPerSec",{get:function(){return this.get("KbPerSec")},enumerable:!1,configurable:!0}),t.create=function(e,n){var r=new t(e);return r.connection.CreateDFUWorkunit({DFUServerQueue:n}).then((function(e){return _workunits.set(r),r.set(e.result),r}))},t.attach=function(e,n,r){var o=_workunits.get({BaseUrl:e.baseUrl,ID:n},(function(){return new t(e,n)}));return r&&o.set(r),o},t.sprayFixed=function(e,n){var r=new FileSprayService(e);return r.SprayFixedEx(__assign({},n)).then((function(n){var o=n.wuid;return r.GetDFUWorkunit({wuid:o}).then((function(n){return t.attach(e,o,n.result)}))}))},t.sprayVariable=function(e,n){var r=new FileSprayService(e);return r.SprayVariableEx(__assign({},n)).then((function(n){var o=n.wuid;return r.GetDFUWorkunit({wuid:o}).then((function(n){return t.attach(e,o,n.result)}))}))},t.despray=function(e,n){var r=new FileSprayService(e);return r.DesprayEx(__assign({},n)).then((function(n){var o=n.wuid;return r.GetDFUWorkunit({wuid:o}).then((function(n){return t.attach(e,o,n.result)}))}))},t.prototype.update=function(e){var t,n,r,o;return this.connection.UpdateDFUWorkunitEx({wu:{JobName:null!==(n=null===(t=null==e?void 0:e.wu)||void 0===t?void 0:t.JobName)&&void 0!==n?n:this.JobName,isProtected:null!==(o=null===(r=null==e?void 0:e.wu)||void 0===r?void 0:r.isProtected)&&void 0!==o?o:this.isProtected,ID:this.ID,State:this.State},ClusterOrig:this.ClusterName,JobNameOrig:this.JobName,isProtectedOrig:this.isProtected,StateOrig:this.State})},t.prototype.isComplete=function(){switch(this.State){case States.Finished:case States.Failed:case States.Aborted:case States.NotFound:return!0}return!1},t.prototype.isFailed=function(){return!(!this.isComplete()||this.State===States.Finished)},t.prototype.isDeleted=function(){return this.State===States.NotFound},t.prototype.isRunning=function(){return!this.isComplete()},t.prototype.abort=function(){return this.connection.AbortDFUWorkunit({wuid:this.ID})},t.prototype.delete=function(){return this.DFUWUAction(exports.FileSpray.DFUWUActions.Delete)},t.prototype.refresh=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){switch(e.label){case 0:return[4,this.GetDFUWorkunit()];case 1:return e.sent(),[2,this]}}))}))},t.prototype.fetchXML=function(e){return this.DFUWUFile()},t.prototype._monitor=function(){this.isComplete()?this._monitorTickCount=0:e.prototype._monitor.call(this)},t.prototype._monitorTimeoutDuration=function(){var t=e.prototype._monitorTimeoutDuration.call(this);return this._monitorTickCount<=1?3e3:this._monitorTickCount<=5?6e3:this._monitorTickCount<=7?12e3:t},t.prototype.DFUWUFile=function(e){return void 0===e&&(e={}),this.connection.DFUWUFile(__assign(__assign({},e),{Wuid:this.ID})).then((function(e){return e})).catch((function(e){return{}}))},t.prototype.DFUWUAction=function(e){var t=this;return this.connection.DFUWorkunitsAction({wuids:{Item:[this.ID]},Type:e}).then((function(n){return e===exports.FileSpray.DFUWUActions.Delete?n:t.refresh().then((function(){return t._monitor(),n}))}))},t.prototype.on=function(t,n,r){var o=this;if(this.isCallback(n))switch(t){case"finished":e.prototype.on.call(this,"propChanged","State",(function(e){o.isComplete()&&n([e])}));break;case"changed":e.prototype.on.call(this,t,n)}else if("changed"===t)e.prototype.on.call(this,t,n,r);return this._monitor(),this},t.prototype.watchUntilComplete=function(e){var t=this;return new Promise((function(n,r){var o=t.watch((function(r){e&&e(r),t.isComplete()&&(o.release(),n(t))}))}))},t.prototype.watchUntilRunning=function(e){var t=this;return new Promise((function(n,r){var o=t.watch((function(r){e&&e(r),(t.isComplete()||t.isRunning())&&(o.release(),n(t))}))}))},t.prototype.clearState=function(e){this.clear({ID:e,State:States.Unknown})},t.prototype.GetDFUWorkunit=function(e){var t=this;return void 0===e&&(e={}),this.connection.GetDFUWorkunit(__assign(__assign({},e),{wuid:this.ID})).then((function(e){return t.set(e.result),e})).catch((function(e){if(!e.Exception.some((function(e){return 20081===e.Code&&(t.clearState(t.ID),t.set("State",States.NotFound),!0)})))throw logger$1.warning("Unexpected exception: "),e;return{}}))},t}(util.StateObject);util.scopedLogger("clienttools/eclmeta");var Attr=function(e){this.__attrs=e.$,this.name=e.$.name},Field=function(){function e(e,t){this.__attrs=t.$,this.definition=e,this.name=t.$.name,this.type=t.$.type}return Object.defineProperty(e.prototype,"scope",{get:function(){return this.definition},enumerable:!1,configurable:!0}),e}(),ECLScope=function(){function e(e,t,n,r,o,i,s,c){void 0===o&&(o=1),void 0===i&&(i=0),void 0===s&&(s=0),void 0===c&&(c=Number.MAX_VALUE),this.name=e,this.type=t,this.sourcePath=path__namespace.normalize(n),this.line=+o-1,this.start=+i,this.body=+s,this.end=+c,this.definitions=this.parseDefinitions(r)}return Object.defineProperty(e.prototype,"scope",{get:function(){return this},enumerable:!1,configurable:!0}),e.prototype.parseDefinitions=function(e){var t=this;return void 0===e&&(e=[]),e.map((function(e){return new Definition(t.sourcePath,e)}))},e.prototype.contains=function(e){return e>=this.start&&e<=this.end},e.prototype.scopeStackAt=function(e){var t=[];return this.contains(e)&&(t.push(this),this.definitions.forEach((function(n){t=n.scopeStackAt(e).concat(t)}))),t},e.prototype._resolve=function(e,t){void 0===e&&(e=[]);var n=t.split("."),r=n.shift(),o=util.find(e,(function(e){return"string"==typeof e.name&&"string"==typeof r&&e.name.toLowerCase()===r.toLowerCase()}));return o&&o.definitions.length&&n.length?this._resolve(o.definitions,n.join(".")):o},e.prototype.resolve=function(e){return this._resolve(this.definitions,e)},e.prototype.suggestions=function(){var e=this;return this.definitions.map((function(t){return{name:t.name,type:e.type}}))},e}(),Definition=function(e){function t(t,n){var r=e.call(this,n.$.name,n.$.type,t,n.children("Definition"),n.$.line,n.$.start,n.$.body,n.$.end)||this;return r.__attrs=n.$,r.exported=!!n.$.exported,r.shared=!!n.$.shared,r.fullname=n.$.fullname,r.inherittype=n.$.inherittype,r.attrs=r.parseAttrs(n.children("Attr")),r.fields=r.parseFields(n.children("Field")),r}return __extends(t,e),t.prototype.parseAttrs=function(e){return void 0===e&&(e=[]),e.map((function(e){return new Attr(e)}))},t.prototype.parseFields=function(e){var t=this;return void 0===e&&(e=[]),e.map((function(e){return new Field(t,e)}))},t.prototype.suggestions=function(){return e.prototype.suggestions.call(this).concat(this.fields.map((function(e){return{name:e.name,type:e.type}})))},t}(ECLScope),Import=function(e){this.__attrs=e.$,this.name=e.$.name,this.ref=e.$.ref,this.start=e.$.start,this.end=e.$.end,this.line=e.$.line},Source=function(e){function t(t){var n=e.call(this,t.$.name,"source",t.$.sourcePath,t.children("Definition"))||this;n.__attrs=t.$;var r=t.$.name.split(".");r.pop();var o=new util.XMLNode("");return o.appendAttribute("name","$"),o.appendAttribute("ref",r.join(".")),n.imports=__spreadArray([new Import(o)],n.parseImports(t.children("Import")),!0),n}return __extends(t,e),t.prototype.parseImports=function(e){return void 0===e&&(e=[]),e.map((function(e){return new Import(e)}))},t.prototype.resolve=function(t,n){var r;r||void 0===n||this.scopeStackAt(n).some((function(e){return!!(r=e.resolve(t))}));return r||(r=e.prototype.resolve.call(this,t)),r},t}(ECLScope),isHiddenDirectory=function(e){return 0===path__namespace.basename(e).indexOf(".")},isDirectory=function(e){return fs__namespace.lstatSync(e).isDirectory()&&!isHiddenDirectory(e)},isEcl=function(e){return[".ecl",".ecllib"].indexOf(path__namespace.extname(e).toLowerCase())>=0},modAttrs=function(e){return fs__namespace.readdirSync(e).map((function(t){return path__namespace.join(e,t)})).filter((function(e){return isDirectory(e)||isEcl(e)}))},File=function(e){function t(t,n){return e.call(this,t,"file",n,[])||this}return __extends(t,e),t.prototype.suggestions=function(){return[]},t}(ECLScope),Folder=function(e){function t(t,n){return e.call(this,t,"folder",n,[])||this}return __extends(t,e),t.prototype.suggestions=function(){return modAttrs(this.sourcePath).map((function(e){return{name:path__namespace.basename(e,".ecl"),type:"folder"}}))},t}(ECLScope),Workspace=function(){function e(e,t){this._sourceByID=new util.DictionaryNoCase,this._sourceByPath=new util.Dictionary,this._test=new util.DictionaryNoCase,this._workspacePath=e,this._eclccPath=t}return e.prototype.refresh=function(){this.primeWorkspace(),this.primeClientTools()},e.prototype.primeClientTools=function(){var e=this;return locateClientTools(this._eclccPath,"",this._workspacePath).then((function(t){return e._clientTools=t,t.paths()})).then((function(t){for(var n=0,r=["ECLCC_ECLLIBRARY_PATH","ECLCC_PLUGIN_PATH"];n<r.length;n++){var o=r[n];t[o]&&fs__namespace.existsSync(t[o])&&e.walkChildFolders(t[o],t[o])}return e}))},e.prototype.primeWorkspace=function(){fs__namespace.existsSync(this._workspacePath)&&this.visitFolder(this._workspacePath,this._workspacePath)},e.prototype.walkChildFolders=function(e,t,n){void 0===n&&(n=!1);for(var r=0,o=modAttrs(e);r<o.length;r++){var i=o[r];isDirectory(i)?this.visitFolder(i,t,n):this.visitFile(i,t,n)}},e.prototype.visitFile=function(e,t,n){void 0===n&&(n=!1);var r=path__namespace.parse(e),o=path__namespace.join(r.dir,r.name),i=path__namespace.relative(t,o).split(path__namespace.sep).join(".");!n&&this._test.has(i)||this._test.set(i,new File("",e))},e.prototype.visitFolder=function(e,t,n){void 0===n&&(n=!1);var r=path__namespace.relative(t,e).split(path__namespace.sep).join(".");!n&&this._test.has(r)||(this._test.set(r,new Folder(r,e)),this.walkChildFolders(e,t,n))},e.prototype.buildStack=function(e,t,n){var r=t.split(".");n&&e[e.length-1]===r[0]&&r.shift();var o=__spreadArray(__spreadArray([],e,!0),r,!0),i=o.join(".");return{stack:o,qid:i}},e.prototype.walkECLScope=function(e,t){var n=this.buildStack(e,t.name,!0);this._test.set(n.qid,t);for(var r=0,o=t.definitions;r<o.length;r++){var i=o[r];this.walkDefinition(n.stack,i)}},e.prototype.walkField=function(e,t){var n=this.buildStack(e,t.name,!1);this._test.set(n.qid,t)},e.prototype.walkDefinition=function(e,t){var n=this.buildStack(e,t.name,!0);this.walkECLScope(e,t);for(var r=0,o=t.fields;r<o.length;r++){var i=o[r];this.walkField(n.stack,i)}},e.prototype.walkSource=function(e){this.walkECLScope([],e)},e.prototype.parseSources=function(e){void 0===e&&(e=[]);for(var t=0,n=e;t<n.length;t++){var r=n[t];if(r.$.name){var o=new Source(r);if(this._sourceByID.set(o.name,o),this._sourceByPath.set(o.sourcePath,o),o.name){var i=o.name.split(".").length;if(i>1){for(var s=o.sourcePath;i>1;)s=path__namespace.dirname(s),--i;this.visitFolder(s,path__namespace.dirname(s))}}this.walkSource(o)}}},e.prototype.parseMetaXML=function(e){var t=new MetaParser;return t.parse(e),this.parseSources(t.sources),t.sources.map((function(e){return path__namespace.normalize(e.$.sourcePath)}))},e.prototype.resolveQualifiedID=function(e,t,n){var r;if(!r&&this._test.has(t)&&(r=this._test.get(t).scope),!r&&this._sourceByPath.has(e)){for(var o=this._sourceByPath.get(e),i=t.split("."),s=0,c=o.imports;s<c.length;s++){var u=c[s];if(u.name.toLowerCase()===i[0].toLowerCase()){u.ref?i[0]=u.ref:i.shift();break}}var a=i.join(".");!r&&this._test.has(a)&&(r=this._test.get(a).scope),r||(a=__spreadArray(__spreadArray([],o.name.split("."),!0),i,!0).join("."),this._test.has(a)&&(r=this._test.get(a).scope))}return r},e.prototype.resolvePartialID=function(e,t,n){var r=(t=t.toLowerCase()).split(".");r.pop();var o=1===r.length?r[0]:r.join(".");return this.resolveQualifiedID(e,o,n)},e}(),workspaceCache=new util.Dictionary;function attachWorkspace(e,t){var n=path__namespace.normalize(e);if(!workspaceCache.has(n)){var r=new Workspace(n,t);workspaceCache.set(n,r),r.refresh()}return workspaceCache.get(n)}function isQualifiedIDChar(e,t,n){if(t<0)return!1;var r=e.charAt(t);return(n?/[a-zA-Z\d_\.$]/:/[a-zA-Z\d_]/).test(r)}function qualifiedIDBoundary(e,t,n){for(;isQualifiedIDChar(e,t,n);)t+=n?-1:1;return t+(n?1:-1)}var MetaParser=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.sources=[],t}return __extends(t,e),t.prototype.endXMLNode=function(t){if("Source"===t.name)this.sources.push(t);e.prototype.endXMLNode.call(this,t)},t}(util.SAXStackParser),logger=util.scopedLogger("clienttools/eclcc"),exeExt="Windows_NT"===os__namespace.type()?".exe":"";function tidyCRLF(e){return e.split("\r\n").join("\n").split("\r").join("\n")}var Version=function(){function e(e){this.prefix="",this.major=0,this.minor=0,this.patch=0,this.postfix="";var t=e.split(" ");if(t.length){var n=/(?:(\w+)_)?(\d+)\.(\d+)\.(\d+)(?:-(.*))?/.exec(t[t.length-1]);n&&(this.prefix=n[1]||"",this.major=+n[2]||0,this.minor=+n[3]||0,this.patch=+n[4]||0,this.postfix=n[5]||"")}}return e.prototype.parse=function(e){},e.prototype.exists=function(){return 0!==this.major||0!==this.minor||0!==this.patch||""!==this.postfix},e.prototype.compare=function(e){return this.major>e.major?1:this.major<e.major?-1:this.minor>e.minor?1:this.minor<e.minor?-1:this.patch>e.patch?1:this.patch<e.patch?-1:""===this.postfix&&""!==e.postfix?1:this.postfix.localeCompare(e.postfix)},e.prototype.toString=function(){return"".concat(this.prefix,"_").concat(this.major,".").concat(this.minor,".").concat(this.patch,"-").concat(this.postfix)},e}(),ERROR="error",WARN="warning",Errors=function(){function e(e){this.errWarn=[],this.errOther=[],this._checked=e}return e.prototype.checked=function(){return this._checked},e.prototype.all=function(){return this.errWarn},e.prototype.errors=function(){return this.errWarn.filter((function(e){return e.severity===ERROR}))},e.prototype.hasError=function(){return this.errors().length>0},e.prototype.warnings=function(){return this.errWarn.filter((function(e){return e.severity===WARN}))},e.prototype.hasWarning=function(){return this.warnings().length>0},e.prototype.info=function(){return this.errWarn.filter((function(e){return[ERROR,WARN].indexOf(e.severity)<0}))},e.prototype.hasOther=function(){return this.info().length>0},e.prototype.unknown=function(){return this.errOther},e.prototype.hasUnknown=function(){return this.unknown().length>0},e}(),EclccErrors=function(e){function t(t,n){var r=e.call(this,n)||this;if(t&&t.length)for(var o=0,i=t.split(os__namespace.EOL);o<i.length;o++){var s=i[o],c=/([a-zA-Z]:\\(?:[- \w\.\d]+\\)*(?:[- \w\.\d]+)?|(?:\/[\w\.\-]+)+)\((\d*),(\d*)\) ?: ?(error|warning|info) C(\d*) ?: ?(.*)/.exec(s);if(c){var u=c[1],a=c[2],p=c[3],l=c[4],d=+a,f=+p,h=c[5]+": "+c[6];r.errWarn.push({filePath:u,line:d,col:f,msg:h,severity:l})}else if(c=/(error|warning|info): (.*)/i.exec(s)){l=c[1],h=c[2];r.errWarn.push({filePath:"",line:0,col:0,msg:h,severity:l})}else(c=/\d error(s?), \d warning(s?)/.exec(s))||(logger.warning('parseECLErrors: Unable to parse "'.concat(s,'"')),r.errOther.push(s))}return r._checked=n,r}return __extends(t,e),t}(Errors),EnvchkErrors=function(e){function t(t,n,r){var o=e.call(this,r)||this,i=fs__namespace.readFileSync(t,"utf8");if(i=i.replace(/\r\n/g,"\n"),o._lines=i.split("\n"),n&&n.length)for(var s=0,c=n.split(os__namespace.EOL);s<c.length;s++){var u=c[s],a=/(Warning|Error) : Path\=(\S*?)(\[\S*\])? Message\=(.*)/.exec(u);if(a){var p=a[1],l=a[2],d=a[3],f=a[4],h="".concat(l," ").concat(d||"",": ").concat(f),g=o.locate(l),y=g[0],A=g[1];o.errWarn.push({filePath:t,line:y,col:A,msg:h,severity:p})}else a||(logger.warning('parseECLErrors: Unable to parse "'.concat(u,'"')),o.errOther.push(u))}return o._checked=r,o}return __extends(t,e),t.prototype.locate=function(e){var t=e.split("/");if(t.length&&""===t[0]&&t.shift(),t.length>0)for(var n=0,r=0,o=this._lines;r<o.length;r++){var i=o[r],s="<"+t[0];if((i.indexOf(s+" ")>=0||i.indexOf(s+">")>=0)&&(t.shift(),0===t.length))return[n+1,i.indexOf(s)+1];++n}return[0,0]},t}(Errors);function walkXmlJson(e,t,n){for(var r in(n=n||[]).push(e),e)if(e.hasOwnProperty(r)){var o=e[r];t(r,o,n),o instanceof Array?o.forEach((function(e){walkXmlJson(e,t,n)})):"object"==typeof o&&walkXmlJson(o,t,n)}n.pop()}var allClientToolsCache,LocalWorkunit=function(){function e(e){this.jsonWU=e}return e.prototype.bpGetValidLocations=function(e){var t=[];if(util.exists("W_LOCAL.Graphs",this.jsonWU)){var n="";walkXmlJson(this.jsonWU.W_LOCAL.Graphs,(function(r,o,i){if("$"===r&&o.id&&(n=o.id),"$"===r&&"definition"===o.name){var s=/([a-z,A-Z]:\\(?:[-\w\.\d]+\\)*(?:[-\w\.\d]+)?|(?:\/[\w\.\-]+)+)\((\d*),(\d*)\)/.exec(o.value);if(s){var c=s[1],u=+s[2],a=+s[3];e===c&&t.push({file:c,line:u,col:a,id:n})}}}))}return t},e}(),ClientTools=function(){function e(e,t,n,r,o,i){void 0===n&&(n=[]),void 0===r&&(r=!1),void 0===o&&(o=[]),this._paths={},this.eclccPath=e,this.binPath=path__namespace.dirname(this.eclccPath),this.envchkPath=path__namespace.join(this.binPath,"envchk"+exeExt),this.eclBundlePath=path__namespace.join(this.binPath,"ecl-bundle"+exeExt),this.cwd=path__namespace.normalize(t||this.binPath),this.includeFolders=n,this._legacyMode=r,this._args=o,this._version=i}return e.prototype.clone=function(t,n,r,o){return void 0===r&&(r=!1),void 0===o&&(o=[]),new e(this.eclccPath,t,n,r,o,this._version)},e.prototype.exists=function(e){try{return fs__namespace.accessSync(e),!0}catch(e){}return!1},e.prototype.args=function(e){void 0===e&&(e=[]);var t=__spreadArray([],this._args,!0);return this._legacyMode&&t.push("-legacy"),t.concat(this.includeFolders.map((function(e){return"-I"+path__namespace.normalize(e)}))).concat(e)},e.prototype.version=function(){var e=this;return this._version?Promise.resolve(this._version):this.execFile(this.eclccPath,this.binPath,this.args(["--version"]),"eclcc","Cannot find ".concat(this.eclccPath)).then((function(t){return e._version=new Version(t.stdout),e._version}))},e.prototype.versionSync=function(){return this._version},e.prototype.paths=function(){var e=this;return this.execFile(this.eclccPath,this.cwd,this.args(["-showpaths"]),"eclcc","Cannot find ".concat(this.eclccPath)).then((function(t){if(t&&t.stdout&&t.stdout.length)for(var n=0,r=t.stdout.split(/\r?\n/);n<r.length;n++){var o=r[n].split("=");2===o.length&&(e._paths[o[0]]=o[1])}return e._paths}))},e.prototype.loadXMLDoc=function(e,t){return new Promise((function(n,r){var o=fs__namespace.readFileSync(e,"ascii"),i=util.xml2json(o);t&&fs__namespace.unlink(e,(function(e){})),n(i)}))},e.prototype.createWU=function(e){var t=this,n=tmp__namespace.tmpNameSync({prefix:"eclcc-wu-tmp",postfix:""}),r=["-o"+n,"-wu"].concat([e]);return this.execFile(this.eclccPath,this.cwd,this.args(r),"eclcc","Cannot find ".concat(this.eclccPath)).then((function(e){var r=path__namespace.normalize(n+".xml");return(t.exists(r)?t.loadXMLDoc(r,!0):Promise.resolve({})).then((function(e){return new LocalWorkunit(e)}))}))},e.prototype.createArchive=function(e){var t=["-E"].concat([e]);return this.execFile(this.eclccPath,this.cwd,this.args(t),"eclcc","Cannot find ".concat(this.eclccPath)).then((function(e){return{content:e.stdout,err:new EclccErrors(e.stderr,[])}}))},e.prototype.attachWorkspace=function(){return attachWorkspace(this.cwd)},e.prototype.fetchMeta=function(e){return Promise.all([attachWorkspace(this.cwd),this.execFile(this.eclccPath,this.cwd,this.args(["-M",e]),"eclcc","Cannot find ".concat(this.eclccPath))]).then((function(e){var t=e[0],n=e[1];return n&&n.stdout&&n.stdout.length&&t.parseMetaXML(n.stdout),t}))},e.prototype.syntaxCheck=function(e,t){return void 0===t&&(t=["-syntax"]),Promise.all([attachWorkspace(this.cwd),this.execFile(this.eclccPath,this.cwd,this.args(__spreadArray(__spreadArray([],t,!0),["-M",e],!1)),"eclcc","Cannot find ".concat(this.eclccPath))]).then((function(e){var t=e[0],n=e[1],r=[];return n&&n.stdout&&n.stdout.length&&(r=t.parseMetaXML(n.stdout)),new EclccErrors(n?n.stderr:"",r)}))},e.prototype.envCheck=function(e,t){return void 0===t&&(t=[]),Promise.all([attachWorkspace(this.cwd),this.execFile(this.envchkPath,this.cwd,this.args(__spreadArray(__spreadArray([],t,!0),[e],!1)),"envchk","Cannot find ".concat(this.envchkPath))]).then((function(t){t[0];var n=t[1];return new EnvchkErrors(e,n?n.stderr:"",[])}))},e.prototype.bundleList=function(){var e=this,t=/\|(.*)\|(.*)\|(.*)\|/g;return Promise.all([fetch("https://raw.githubusercontent.com/hpcc-systems/ecl-bundles/master/README.rst").then((function(e){return e.text()})).then((function(e){for(var n=[],r=t.exec(e);r;)n.push({name:r[1].trim(),description:r[2].trim(),url:r[3].trim()}),r=t.exec(e);return n})),this.execFile(this.eclBundlePath,this.cwd,this.args(["list"]),"ecl-bundle","Cannot find ".concat(this.eclBundlePath)).then((function(e){return tidyCRLF(e.stdout).split("\n")})).then((function(t){var n={};return Promise.all(t.filter((function(e){return!!e})).map((function(t){return e.execFile(e.eclBundlePath,e.cwd,e.args(["info",t]),"ecl-bundle","Cannot find ".concat(e.eclBundlePath)).then((function(e){return tidyCRLF(e.stdout).split("\n")})).then((function(e){var r={};e.forEach((function(e){var t=e.split(":");r[t.shift().trim()]=t.join(":").trim()})),n[t]={name:t,props:r}}))}))).then((function(){return n}))}))]).then((function(e){var t=e[0],n=e[1];for(var r in t.forEach((function(e){n[e.name]&&(e.props=n[e.name].props,delete n[e.name])})),n)t.push({name:r,url:"",description:"",props:n[r].props});return t})).catch((function(e){return[]}))},e.prototype.bundleInstall=function(e){return Promise.all([attachWorkspace(this.cwd),this.execFile(this.eclBundlePath,this.cwd,this.args(["install",e]),"ecl-bundle","Cannot find ".concat(this.eclBundlePath))]).then((function(e){return e[0],e[1]}))},e.prototype.bundleUninstall=function(e){return Promise.all([attachWorkspace(this.cwd),this.execFile(this.eclBundlePath,this.cwd,this.args(["uninstall",e]),"ecl-bundle","Cannot find ".concat(this.eclBundlePath))]).then((function(e){return e[0],e[1]}))},e.prototype.execFile=function(e,t,n,r,o){return new Promise((function(r,o){logger.debug("".concat(e," ").concat(n.join(" ")));var i=cp__namespace.spawn(e,n,{cwd:t}),s="",c="";i.stdout.on("data",(function(e){s+=e.toString()})),i.stderr.on("data",(function(e){c+=e.toString()})),i.on("close",(function(e,t){r({code:e,stdout:s.trim(),stderr:c.trim()})}))}))},e}();function locateClientToolsInFolder(e,t){if(e){var n=path__namespace.join(e,"HPCCSystems");if(fs__namespace.existsSync(n)&&fs__namespace.statSync(n).isDirectory()){if("Windows_NT"!==os__namespace.type()){var r=path__namespace.join(n,"bin","eclcc");fs__namespace.existsSync(r)&&t.push(new ClientTools(r))}fs__namespace.readdirSync(n).forEach((function(e){var r=path__namespace.join(n,e,"clienttools","bin","eclcc"+exeExt);if(fs__namespace.existsSync(r)){var o=path__namespace.basename(e);new Version(o).exists()&&t.push(new ClientTools(r))}}))}}}function clearAllClientToolsCache(){allClientToolsCache=void 0}function locateAllClientTools(){if(allClientToolsCache)return allClientToolsCache;var e=[];switch(os__namespace.type()){case"Windows_NT":var t=process.env["ProgramFiles(x86)"]||"";t&&locateClientToolsInFolder(t,e);var n=process.env.ProgramFiles||"";n&&locateClientToolsInFolder(n,e),t||n||locateClientToolsInFolder("c:\\Program Files (x86)",e);break;case"Linux":case"Darwin":locateClientToolsInFolder("/opt",e)}return allClientToolsCache=Promise.all(e.map((function(e){return e.version()}))).then((function(){return e.sort((function(e,t){return t.versionSync().compare(e.versionSync())})),e}))}var eclccPathMsg="";function logEclccPath(e){var t="Using eclccPath setting: ".concat(e);eclccPathMsg!==t&&(logger.info(t),eclccPathMsg=t)}function locateClientTools(e,t,n,r,o,i){return void 0===e&&(e=""),void 0===t&&(t=""),void 0===n&&(n="."),void 0===r&&(r=[]),void 0===o&&(o=!1),void 0===i&&(i=[]),e&&fs__namespace.existsSync(e)?(logEclccPath(e),Promise.resolve(new ClientTools(e,n,r,o,i))):locateAllClientTools().then((function(e){if(!e.length)throw new Error("Unable to locate ECL Client Tools.");for(var s,c,u=new Version(t),a=0,p=e;a<p.length;a++){var l=p[a],d=l.versionSync();if(d.exists()&&(s||(s=l),c||u.major!==d.major||(c=l),u.major===d.major&&u.minor===d.minor))return l.clone(n,r,o,i)}var f=c||s;return logEclccPath(f.eclccPath),f.clone(n,r,o,i)}))}util.root.DOMParser=xmldom.DOMParser,void 0===util.root.fetch&&(util.root.fetch=fetch__default.default),void 0===util.root.AbortController&&(util.root.AbortController=AbortController__default.default),util.root.fetch.__rejectUnauthorizedAgent=new https__namespace.Agent({rejectUnauthorized:!1});var globalCA="";void 0!==https__namespace.globalAgent.options.ca&&(Array.isArray(https__namespace.globalAgent.options.ca)&&https__namespace.globalAgent.options.ca.length?"string"==typeof https__namespace.globalAgent.options.ca[0]?globalCA=https__namespace.globalAgent.options.ca.join("\n"):https__namespace.globalAgent.options.ca[0]instanceof safeBuffer.Buffer&&(globalCA=https__namespace.globalAgent.options.ca.map((function(e){return e.toString()})).join("\n")):"string"==typeof https__namespace.globalAgent.options.ca?globalCA=https__namespace.globalAgent.options.ca:https__namespace.globalAgent.options.ca instanceof safeBuffer.Buffer&&(globalCA=https__namespace.globalAgent.options.ca.toString()),globalCA+="\n"),util.root.fetch.__trustwaveAgent=new https__namespace.Agent({ca:globalCA+trustwave}),void 0===util.root.btoa&&(util.root.btoa=function(e){return safeBuffer.Buffer.from(e||"","utf8").toString("base64")}),exports.AccessService=AccessService,exports.AccountService=AccountService,exports.Activity=Activity,exports.Attr=Attr,exports.Attribute=Attribute,exports.BUILD_VERSION=BUILD_VERSION,exports.BaseScope=BaseScope,exports.ClientTools=ClientTools,exports.CloudService=CloudService,exports.CodesignService=CodesignService,exports.Connection=Connection,exports.DFUArrayActions=DFUArrayActions,exports.DFUChangeProtection=DFUChangeProtection,exports.DFUChangeRestriction=DFUChangeRestriction,exports.DFUDefFileFormat=DFUDefFileFormat,exports.DFUService=DFUService,exports.DFUWorkunit=DFUWorkunit,exports.DFUWorkunitCache=DFUWorkunitCache,exports.DFUXRefService=DFUXRefService,exports.DaliService=DaliService,exports.Definition=Definition,exports.ECLGraph=ECLGraph,exports.ECLScope=ECLScope,exports.ESPConnection=ESPConnection,exports.ESPExceptions=ESPExceptions,exports.EclService=EclService,exports.EclccErrors=EclccErrors,exports.ElkService=ElkService,exports.EnvchkErrors=EnvchkErrors,exports.Errors=Errors,exports.Field=Field,exports.File=File,exports.FileSprayService=FileSprayService,exports.Folder=Folder,exports.GlobalResultCache=GlobalResultCache,exports.GraphCache=GraphCache,exports.Import=Import,exports.LocalWorkunit=LocalWorkunit,exports.LogaccessService=LogaccessService,exports.LogicalFile=LogicalFile,exports.LogicalFileCache=LogicalFileCache,exports.Machine=Machine,exports.MachineCache=MachineCache,exports.MachineService=MachineService,exports.PKG_NAME=PKG_NAME,exports.PKG_VERSION=PKG_VERSION,exports.PackageProcessService=PackageProcessService,exports.Query=Query,exports.Resource=Resource,exports.ResourcesService=ResourcesService,exports.Result=Result,exports.ResultCache=ResultCache,exports.SMCService=SMCService,exports.Scope=Scope,exports.ScopeEdge=ScopeEdge,exports.ScopeGraph=ScopeGraph,exports.ScopeSubgraph=ScopeSubgraph,exports.ScopeVertex=ScopeVertex,exports.Service=Service,exports.Source=Source,exports.SourceFile=SourceFile,exports.Store=Store,exports.StoreCache=StoreCache,exports.StoreService=StoreService,exports.TargetCluster=TargetCluster,exports.TargetClusterCache=TargetClusterCache,exports.Timer=Timer,exports.Topology=Topology,exports.TopologyCache=TopologyCache,exports.TopologyService=TopologyService,exports.ValueChangedMessage=ValueChangedMessage,exports.Version=Version,exports.Workspace=Workspace,exports.Workunit=Workunit,exports.WorkunitCache=WorkunitCache,exports.WorkunitsService=WorkunitsService,exports.WorkunitsServiceEx=WorkunitsServiceEx,exports.XGMMLEdge=XGMMLEdge,exports.XGMMLGraph=XGMMLGraph,exports.XGMMLSubgraph=XGMMLSubgraph,exports.XGMMLVertex=XGMMLVertex,exports.XSDNode=XSDNode,exports.XSDSchema=XSDSchema,exports.XSDSimpleType=XSDSimpleType,exports.XSDXMLNode=XSDXMLNode,exports.attachWorkspace=attachWorkspace,exports.clearAllClientToolsCache=clearAllClientToolsCache,exports.createGraph=createGraph,exports.createXGMMLGraph=createXGMMLGraph,exports.defaultTargetCluster=defaultTargetCluster,exports.deserializeResponse=deserializeResponse,exports.get=get,exports.hookSend=hookSend,exports.instanceOfIConnection=instanceOfIConnection,exports.instanceOfIOptions=instanceOfIOptions,exports.isArray=isArray,exports.isECLResult=isECLResult,exports.isExceptions=isExceptions,exports.isWUInfoWorkunit=isWUInfoWorkunit,exports.isWUQueryECLWorkunit=isWUQueryECLWorkunit,exports.jsonp=jsonp,exports.locateAllClientTools=locateAllClientTools,exports.locateClientTools=locateClientTools,exports.parseXSD=parseXSD,exports.parseXSD2=parseXSD2,exports.post=post,exports.qualifiedIDBoundary=qualifiedIDBoundary,exports.send=send,exports.serializeRequest=serializeRequest,exports.setTransportFactory=setTransportFactory,exports.targetClusters=targetClusters,exports.walkXmlJson=walkXmlJson;
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var util$m=require("@hpcc-js/util"),xmldom=require("@xmldom/xmldom"),fetch$2=require("node-fetch"),https=require("https"),require$$0=require("assert"),require$$4=require("net"),require$$2$2=require("http2"),require$$0$1=require("stream"),require$$2=require("http"),require$$7=require("buffer"),require$$0$2=require("util"),require$$8=require("querystring"),require$$13=require("stream/web"),require$$10=require("events"),require$$0$3=require("worker_threads"),require$$2$1=require("perf_hooks"),require$$5=require("util/types"),require$$4$1=require("tls"),require$$4$2=require("async_hooks");require("console"),require("url");var require$$3=require("zlib"),require$$6=require("string_decoder"),require$$0$4=require("crypto"),require$$1=require("diagnostics_channel"),AbortController$1=require("abort-controller"),safeBuffer=require("safe-buffer"),cp=require("child_process"),fs=require("fs"),os=require("os"),path=require("path"),tmp=require("tmp");function _interopDefaultLegacy(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}function _interopNamespace(e){if(e&&e.__esModule)return e;var t=Object.create(null);return e&&Object.keys(e).forEach((function(r){if("default"!==r){var n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:function(){return e[r]}})}})),t.default=e,Object.freeze(t)}var fetch__default=_interopDefaultLegacy(fetch$2),https__namespace=_interopNamespace(https),require$$0__default=_interopDefaultLegacy(require$$0),require$$4__default=_interopDefaultLegacy(require$$4),require$$2__default$2=_interopDefaultLegacy(require$$2$2),require$$0__default$1=_interopDefaultLegacy(require$$0$1),require$$2__default=_interopDefaultLegacy(require$$2),require$$7__default=_interopDefaultLegacy(require$$7),require$$0__default$2=_interopDefaultLegacy(require$$0$2),require$$8__default=_interopDefaultLegacy(require$$8),require$$13__default=_interopDefaultLegacy(require$$13),require$$10__default=_interopDefaultLegacy(require$$10),require$$0__default$3=_interopDefaultLegacy(require$$0$3),require$$2__default$1=_interopDefaultLegacy(require$$2$1),require$$5__default=_interopDefaultLegacy(require$$5),require$$4__default$1=_interopDefaultLegacy(require$$4$1),require$$4__default$2=_interopDefaultLegacy(require$$4$2),require$$3__default=_interopDefaultLegacy(require$$3),require$$6__default=_interopDefaultLegacy(require$$6),require$$0__default$4=_interopDefaultLegacy(require$$0$4),require$$1__default=_interopDefaultLegacy(require$$1),AbortController__default=_interopDefaultLegacy(AbortController$1),cp__namespace=_interopNamespace(cp),fs__namespace=_interopNamespace(fs),os__namespace=_interopNamespace(os),path__namespace=_interopNamespace(path),tmp__namespace=_interopNamespace(tmp),commonjsGlobal="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},symbols$4={kClose:Symbol("close"),kDestroy:Symbol("destroy"),kDispatch:Symbol("dispatch"),kUrl:Symbol("url"),kWriting:Symbol("writing"),kResuming:Symbol("resuming"),kQueue:Symbol("queue"),kConnect:Symbol("connect"),kConnecting:Symbol("connecting"),kHeadersList:Symbol("headers list"),kKeepAliveDefaultTimeout:Symbol("default keep alive timeout"),kKeepAliveMaxTimeout:Symbol("max keep alive timeout"),kKeepAliveTimeoutThreshold:Symbol("keep alive timeout threshold"),kKeepAliveTimeoutValue:Symbol("keep alive timeout"),kKeepAlive:Symbol("keep alive"),kHeadersTimeout:Symbol("headers timeout"),kBodyTimeout:Symbol("body timeout"),kServerName:Symbol("server name"),kLocalAddress:Symbol("local address"),kHost:Symbol("host"),kNoRef:Symbol("no ref"),kBodyUsed:Symbol("used"),kRunning:Symbol("running"),kBlocking:Symbol("blocking"),kPending:Symbol("pending"),kSize:Symbol("size"),kBusy:Symbol("busy"),kQueued:Symbol("queued"),kFree:Symbol("free"),kConnected:Symbol("connected"),kClosed:Symbol("closed"),kNeedDrain:Symbol("need drain"),kReset:Symbol("reset"),kDestroyed:Symbol.for("nodejs.stream.destroyed"),kMaxHeadersSize:Symbol("max headers size"),kRunningIdx:Symbol("running index"),kPendingIdx:Symbol("pending index"),kError:Symbol("error"),kClients:Symbol("clients"),kClient:Symbol("client"),kParser:Symbol("parser"),kOnDestroyed:Symbol("destroy callbacks"),kPipelining:Symbol("pipelining"),kSocket:Symbol("socket"),kHostHeader:Symbol("host header"),kConnector:Symbol("connector"),kStrictContentLength:Symbol("strict content length"),kMaxRedirections:Symbol("maxRedirections"),kMaxRequests:Symbol("maxRequestsPerClient"),kProxy:Symbol("proxy agent options"),kCounter:Symbol("socket request counter"),kInterceptors:Symbol("dispatch interceptors"),kMaxResponseSize:Symbol("max response size"),kHTTP2Session:Symbol("http2Session"),kHTTP2SessionState:Symbol("http2Session state"),kHTTP2BuildRequest:Symbol("http2 build request"),kHTTP1BuildRequest:Symbol("http1 build request"),kHTTP2CopyHeaders:Symbol("http2 copy headers"),kHTTPConnVersion:Symbol("http connection version")};class UndiciError extends Error{constructor(e){super(e),this.name="UndiciError",this.code="UND_ERR"}}class ConnectTimeoutError$1 extends UndiciError{constructor(e){super(e),Error.captureStackTrace(this,ConnectTimeoutError$1),this.name="ConnectTimeoutError",this.message=e||"Connect Timeout Error",this.code="UND_ERR_CONNECT_TIMEOUT"}}class HeadersTimeoutError$1 extends UndiciError{constructor(e){super(e),Error.captureStackTrace(this,HeadersTimeoutError$1),this.name="HeadersTimeoutError",this.message=e||"Headers Timeout Error",this.code="UND_ERR_HEADERS_TIMEOUT"}}class HeadersOverflowError$1 extends UndiciError{constructor(e){super(e),Error.captureStackTrace(this,HeadersOverflowError$1),this.name="HeadersOverflowError",this.message=e||"Headers Overflow Error",this.code="UND_ERR_HEADERS_OVERFLOW"}}class BodyTimeoutError$1 extends UndiciError{constructor(e){super(e),Error.captureStackTrace(this,BodyTimeoutError$1),this.name="BodyTimeoutError",this.message=e||"Body Timeout Error",this.code="UND_ERR_BODY_TIMEOUT"}}class ResponseStatusCodeError$1 extends UndiciError{constructor(e,t,r,n){super(e),Error.captureStackTrace(this,ResponseStatusCodeError$1),this.name="ResponseStatusCodeError",this.message=e||"Response Status Code Error",this.code="UND_ERR_RESPONSE_STATUS_CODE",this.body=n,this.status=t,this.statusCode=t,this.headers=r}}class InvalidArgumentError$g extends UndiciError{constructor(e){super(e),Error.captureStackTrace(this,InvalidArgumentError$g),this.name="InvalidArgumentError",this.message=e||"Invalid Argument Error",this.code="UND_ERR_INVALID_ARG"}}class InvalidReturnValueError$2 extends UndiciError{constructor(e){super(e),Error.captureStackTrace(this,InvalidReturnValueError$2),this.name="InvalidReturnValueError",this.message=e||"Invalid Return Value Error",this.code="UND_ERR_INVALID_RETURN_VALUE"}}class RequestAbortedError$8 extends UndiciError{constructor(e){super(e),Error.captureStackTrace(this,RequestAbortedError$8),this.name="AbortError",this.message=e||"Request aborted",this.code="UND_ERR_ABORTED"}}class InformationalError$1 extends UndiciError{constructor(e){super(e),Error.captureStackTrace(this,InformationalError$1),this.name="InformationalError",this.message=e||"Request information",this.code="UND_ERR_INFO"}}class RequestContentLengthMismatchError$1 extends UndiciError{constructor(e){super(e),Error.captureStackTrace(this,RequestContentLengthMismatchError$1),this.name="RequestContentLengthMismatchError",this.message=e||"Request body length does not match content-length header",this.code="UND_ERR_REQ_CONTENT_LENGTH_MISMATCH"}}class ResponseContentLengthMismatchError$1 extends UndiciError{constructor(e){super(e),Error.captureStackTrace(this,ResponseContentLengthMismatchError$1),this.name="ResponseContentLengthMismatchError",this.message=e||"Response body length does not match content-length header",this.code="UND_ERR_RES_CONTENT_LENGTH_MISMATCH"}}class ClientDestroyedError$2 extends UndiciError{constructor(e){super(e),Error.captureStackTrace(this,ClientDestroyedError$2),this.name="ClientDestroyedError",this.message=e||"The client is destroyed",this.code="UND_ERR_DESTROYED"}}class ClientClosedError$1 extends UndiciError{constructor(e){super(e),Error.captureStackTrace(this,ClientClosedError$1),this.name="ClientClosedError",this.message=e||"The client is closed",this.code="UND_ERR_CLOSED"}}class SocketError$3 extends UndiciError{constructor(e,t){super(e),Error.captureStackTrace(this,SocketError$3),this.name="SocketError",this.message=e||"Socket error",this.code="UND_ERR_SOCKET",this.socket=t}}class NotSupportedError$2 extends UndiciError{constructor(e){super(e),Error.captureStackTrace(this,NotSupportedError$2),this.name="NotSupportedError",this.message=e||"Not supported error",this.code="UND_ERR_NOT_SUPPORTED"}}class BalancedPoolMissingUpstreamError extends UndiciError{constructor(e){super(e),Error.captureStackTrace(this,NotSupportedError$2),this.name="MissingUpstreamError",this.message=e||"No upstream has been added to the BalancedPool",this.code="UND_ERR_BPL_MISSING_UPSTREAM"}}class HTTPParserError$1 extends Error{constructor(e,t,r){super(e),Error.captureStackTrace(this,HTTPParserError$1),this.name="HTTPParserError",this.code=t?`HPE_${t}`:void 0,this.data=r?r.toString():void 0}}class ResponseExceededMaxSizeError$1 extends UndiciError{constructor(e){super(e),Error.captureStackTrace(this,ResponseExceededMaxSizeError$1),this.name="ResponseExceededMaxSizeError",this.message=e||"Response content exceeded max size",this.code="UND_ERR_RES_EXCEEDED_MAX_SIZE"}}var errors$1={HTTPParserError:HTTPParserError$1,UndiciError:UndiciError,HeadersTimeoutError:HeadersTimeoutError$1,HeadersOverflowError:HeadersOverflowError$1,BodyTimeoutError:BodyTimeoutError$1,RequestContentLengthMismatchError:RequestContentLengthMismatchError$1,ConnectTimeoutError:ConnectTimeoutError$1,ResponseStatusCodeError:ResponseStatusCodeError$1,InvalidArgumentError:InvalidArgumentError$g,InvalidReturnValueError:InvalidReturnValueError$2,RequestAbortedError:RequestAbortedError$8,ClientDestroyedError:ClientDestroyedError$2,ClientClosedError:ClientClosedError$1,InformationalError:InformationalError$1,SocketError:SocketError$3,NotSupportedError:NotSupportedError$2,ResponseContentLengthMismatchError:ResponseContentLengthMismatchError$1,BalancedPoolMissingUpstreamError:BalancedPoolMissingUpstreamError,ResponseExceededMaxSizeError:ResponseExceededMaxSizeError$1};const assert$h=require$$0__default.default,{kDestroyed:kDestroyed$1,kBodyUsed:kBodyUsed$2}=symbols$4,{IncomingMessage:IncomingMessage}=require$$2__default.default,stream$1=require$$0__default$1.default,net$2=require$$4__default.default,{InvalidArgumentError:InvalidArgumentError$f}=errors$1,{Blob:Blob$5}=require$$7__default.default,nodeUtil=require$$0__default$2.default,{stringify:stringify}=require$$8__default.default,[nodeMajor$1,nodeMinor$1]=process.versions.node.split(".").map((e=>Number(e)));function nop(){}function isStream(e){return e&&"object"==typeof e&&"function"==typeof e.pipe&&"function"==typeof e.on}function isBlobLike$7(e){return Blob$5&&e instanceof Blob$5||e&&"object"==typeof e&&("function"==typeof e.stream||"function"==typeof e.arrayBuffer)&&/^(Blob|File)$/.test(e[Symbol.toStringTag])}function buildURL(e,t){if(e.includes("?")||e.includes("#"))throw new Error('Query params cannot be passed when url already contains "?" or "#".');const r=stringify(t);return r&&(e+="?"+r),e}function parseURL(e){if("string"==typeof e){if(e=new URL(e),!/^https?:/.test(e.origin||e.protocol))throw new InvalidArgumentError$f("Invalid URL protocol: the URL must start with `http:` or `https:`.");return e}if(!e||"object"!=typeof e)throw new InvalidArgumentError$f("Invalid URL: The URL argument must be a non-null object.");if(null!=e.port&&""!==e.port&&!Number.isFinite(parseInt(e.port)))throw new InvalidArgumentError$f("Invalid URL: port must be a valid integer or a string representation of an integer.");if(null!=e.path&&"string"!=typeof e.path)throw new InvalidArgumentError$f("Invalid URL path: the path must be a string or null/undefined.");if(null!=e.pathname&&"string"!=typeof e.pathname)throw new InvalidArgumentError$f("Invalid URL pathname: the pathname must be a string or null/undefined.");if(null!=e.hostname&&"string"!=typeof e.hostname)throw new InvalidArgumentError$f("Invalid URL hostname: the hostname must be a string or null/undefined.");if(null!=e.origin&&"string"!=typeof e.origin)throw new InvalidArgumentError$f("Invalid URL origin: the origin must be a string or null/undefined.");if(!/^https?:/.test(e.origin||e.protocol))throw new InvalidArgumentError$f("Invalid URL protocol: the URL must start with `http:` or `https:`.");if(!(e instanceof URL)){const t=null!=e.port?e.port:"https:"===e.protocol?443:80;let r=null!=e.origin?e.origin:`${e.protocol}//${e.hostname}:${t}`,n=null!=e.path?e.path:`${e.pathname||""}${e.search||""}`;r.endsWith("/")&&(r=r.substring(0,r.length-1)),n&&!n.startsWith("/")&&(n=`/${n}`),e=new URL(r+n)}return e}function parseOrigin(e){if("/"!==(e=parseURL(e)).pathname||e.search||e.hash)throw new InvalidArgumentError$f("invalid url");return e}function getHostname(e){if("["===e[0]){const t=e.indexOf("]");return assert$h(-1!==t),e.substr(1,t-1)}const t=e.indexOf(":");return-1===t?e:e.substr(0,t)}function getServerName(e){if(!e)return null;assert$h.strictEqual(typeof e,"string");const t=getHostname(e);return net$2.isIP(t)?"":t}function deepClone(e){return JSON.parse(JSON.stringify(e))}function isAsyncIterable(e){return!(null==e||"function"!=typeof e[Symbol.asyncIterator])}function isIterable(e){return!(null==e||"function"!=typeof e[Symbol.iterator]&&"function"!=typeof e[Symbol.asyncIterator])}function bodyLength(e){if(null==e)return 0;if(isStream(e)){const t=e._readableState;return t&&!0===t.ended&&Number.isFinite(t.length)?t.length:null}return isBlobLike$7(e)?null!=e.size?e.size:null:isBuffer(e)?e.byteLength:null}function isDestroyed(e){return!e||!(!e.destroyed&&!e[kDestroyed$1])}function isReadableAborted(e){const t=e&&e._readableState;return isDestroyed(e)&&t&&!t.endEmitted}function destroy(e,t){isStream(e)&&!isDestroyed(e)&&("function"==typeof e.destroy?(Object.getPrototypeOf(e).constructor===IncomingMessage&&(e.socket=null),e.destroy(t)):t&&process.nextTick(((e,t)=>{e.emit("error",t)}),e,t),!0!==e.destroyed&&(e[kDestroyed$1]=!0))}const KEEPALIVE_TIMEOUT_EXPR=/timeout=(\d+)/;function parseKeepAliveTimeout(e){const t=e.toString().match(KEEPALIVE_TIMEOUT_EXPR);return t?1e3*parseInt(t[1],10):null}function parseHeaders(e,t={}){if(!Array.isArray(e))return e;for(let r=0;r<e.length;r+=2){const n=e[r].toString().toLowerCase();let o=t[n];o?(Array.isArray(o)||(o=[o],t[n]=o),o.push(e[r+1].toString("utf8"))):Array.isArray(e[r+1])?t[n]=e[r+1]:t[n]=e[r+1].toString("utf8")}return"content-length"in t&&"content-disposition"in t&&(t["content-disposition"]=Buffer.from(t["content-disposition"]).toString("latin1")),t}function parseRawHeaders(e){const t=[];let r=!1,n=-1;for(let o=0;o<e.length;o+=2){const i=e[o+0].toString(),s=e[o+1].toString("utf8");14!==i.length||"content-length"!==i&&"content-length"!==i.toLowerCase()?19!==i.length||"content-disposition"!==i&&"content-disposition"!==i.toLowerCase()?t.push(i,s):n=t.push(i,s)-1:(t.push(i,s),r=!0)}return r&&-1!==n&&(t[n]=Buffer.from(t[n]).toString("latin1")),t}function isBuffer(e){return e instanceof Uint8Array||Buffer.isBuffer(e)}function validateHandler(e,t,r){if(!e||"object"!=typeof e)throw new InvalidArgumentError$f("handler must be an object");if("function"!=typeof e.onConnect)throw new InvalidArgumentError$f("invalid onConnect method");if("function"!=typeof e.onError)throw new InvalidArgumentError$f("invalid onError method");if("function"!=typeof e.onBodySent&&void 0!==e.onBodySent)throw new InvalidArgumentError$f("invalid onBodySent method");if(r||"CONNECT"===t){if("function"!=typeof e.onUpgrade)throw new InvalidArgumentError$f("invalid onUpgrade method")}else{if("function"!=typeof e.onHeaders)throw new InvalidArgumentError$f("invalid onHeaders method");if("function"!=typeof e.onData)throw new InvalidArgumentError$f("invalid onData method");if("function"!=typeof e.onComplete)throw new InvalidArgumentError$f("invalid onComplete method")}}function isDisturbed$1(e){return!(!e||!(stream$1.isDisturbed?stream$1.isDisturbed(e)||e[kBodyUsed$2]:e[kBodyUsed$2]||e.readableDidRead||e._readableState&&e._readableState.dataEmitted||isReadableAborted(e)))}function isErrored$2(e){return!(!e||!(stream$1.isErrored?stream$1.isErrored(e):/state: 'errored'/.test(nodeUtil.inspect(e))))}function isReadable$1(e){return!(!e||!(stream$1.isReadable?stream$1.isReadable(e):/state: 'readable'/.test(nodeUtil.inspect(e))))}function getSocketInfo(e){return{localAddress:e.localAddress,localPort:e.localPort,remoteAddress:e.remoteAddress,remotePort:e.remotePort,remoteFamily:e.remoteFamily,timeout:e.timeout,bytesWritten:e.bytesWritten,bytesRead:e.bytesRead}}async function*convertIterableToBuffer(e){for await(const t of e)yield Buffer.isBuffer(t)?t:Buffer.from(t)}let ReadableStream$4,events$1;function ReadableStreamFrom$3(e){if(ReadableStream$4||(ReadableStream$4=require$$13__default.default.ReadableStream),ReadableStream$4.from)return ReadableStream$4.from(convertIterableToBuffer(e));let t;return new ReadableStream$4({async start(){t=e[Symbol.asyncIterator]()},async pull(e){const{done:r,value:n}=await t.next();if(r)queueMicrotask((()=>{e.close()}));else{const t=Buffer.isBuffer(n)?n:Buffer.from(n);e.enqueue(new Uint8Array(t))}return e.desiredSize>0},async cancel(e){await t.return()}},0)}function isFormDataLike(e){return e&&"object"==typeof e&&"function"==typeof e.append&&"function"==typeof e.delete&&"function"==typeof e.get&&"function"==typeof e.getAll&&"function"==typeof e.has&&"function"==typeof e.set&&"FormData"===e[Symbol.toStringTag]}function throwIfAborted$1(e){if(e)if("function"==typeof e.throwIfAborted)e.throwIfAborted();else if(e.aborted){const e=new Error("The operation was aborted");throw e.name="AbortError",e}}function addAbortListener$2(e,t){return"symbol"==typeof Symbol.dispose&&(events$1||(events$1=require$$10__default.default),"function"==typeof events$1.addAbortListener&&"aborted"in e)?events$1.addAbortListener(e,t):"addEventListener"in e?(e.addEventListener("abort",t,{once:!0}),()=>e.removeEventListener("abort",t)):(e.addListener("abort",t),()=>e.removeListener("abort",t))}const hasToWellFormed=!!String.prototype.toWellFormed;function toUSVString$5(e){return hasToWellFormed?`${e}`.toWellFormed():nodeUtil.toUSVString?nodeUtil.toUSVString(e):`${e}`}const kEnumerableProperty$9=Object.create(null);kEnumerableProperty$9.enumerable=!0;var util$l={kEnumerableProperty:kEnumerableProperty$9,nop:nop,isDisturbed:isDisturbed$1,isErrored:isErrored$2,isReadable:isReadable$1,toUSVString:toUSVString$5,isReadableAborted:isReadableAborted,isBlobLike:isBlobLike$7,parseOrigin:parseOrigin,parseURL:parseURL,getServerName:getServerName,isStream:isStream,isIterable:isIterable,isAsyncIterable:isAsyncIterable,isDestroyed:isDestroyed,parseRawHeaders:parseRawHeaders,parseHeaders:parseHeaders,parseKeepAliveTimeout:parseKeepAliveTimeout,destroy:destroy,bodyLength:bodyLength,deepClone:deepClone,ReadableStreamFrom:ReadableStreamFrom$3,isBuffer:isBuffer,validateHandler:validateHandler,getSocketInfo:getSocketInfo,isFormDataLike:isFormDataLike,buildURL:buildURL,throwIfAborted:throwIfAborted$1,addAbortListener:addAbortListener$2,nodeMajor:nodeMajor$1,nodeMinor:nodeMinor$1,nodeHasAutoSelectFamily:nodeMajor$1>18||18===nodeMajor$1&&nodeMinor$1>=13};let fastNowTimeout,fastNow=Date.now();const fastTimers=[];function onTimeout(){fastNow=Date.now();let e=fastTimers.length,t=0;for(;t<e;){const r=fastTimers[t];0===r.state?r.state=fastNow+r.delay:r.state>0&&fastNow>=r.state&&(r.state=-1,r.callback(r.opaque)),-1===r.state?(r.state=-2,t!==e-1?fastTimers[t]=fastTimers.pop():fastTimers.pop(),e-=1):t+=1}fastTimers.length>0&&refreshTimeout()}function refreshTimeout(){fastNowTimeout&&fastNowTimeout.refresh?fastNowTimeout.refresh():(clearTimeout(fastNowTimeout),fastNowTimeout=setTimeout(onTimeout,1e3),fastNowTimeout.unref&&fastNowTimeout.unref())}class Timeout{constructor(e,t,r){this.callback=e,this.delay=t,this.opaque=r,this.state=-2,this.refresh()}refresh(){-2===this.state&&(fastTimers.push(this),fastNowTimeout&&1!==fastTimers.length||refreshTimeout()),this.state=0}clear(){this.state=-1}}var timers$1={setTimeout:(e,t,r)=>t<1e3?setTimeout(e,t,r):new Timeout(e,t,r),clearTimeout(e){e instanceof Timeout?e.clear():clearTimeout(e)}};function parseContentType$2(e){if(0===e.length)return;const t=Object.create(null);let r=0;for(;r<e.length;++r){const t=e.charCodeAt(r);if(1!==TOKEN$1[t]){if(47!==t||0===r)return;break}}if(r===e.length)return;const n=e.slice(0,r).toLowerCase(),o=++r;for(;r<e.length;++r){const n=e.charCodeAt(r);if(1!==TOKEN$1[n]){if(r===o)return;if(void 0===parseContentTypeParams(e,r,t))return;break}}if(r===o)return;return{type:n,subtype:e.slice(o,r).toLowerCase(),params:t}}function parseContentTypeParams(e,t,r){for(;t<e.length;){for(;t<e.length;++t){const r=e.charCodeAt(t);if(32!==r&&9!==r)break}if(t===e.length)break;if(59!==e.charCodeAt(t++))return;for(;t<e.length;++t){const r=e.charCodeAt(t);if(32!==r&&9!==r)break}if(t===e.length)return;let n;const o=t;for(;t<e.length;++t){const r=e.charCodeAt(t);if(1!==TOKEN$1[r]){if(61!==r)return;break}}if(t===e.length)return;if(n=e.slice(o,t),++t===e.length)return;let i,s="";if(34===e.charCodeAt(t)){i=++t;let r=!1;for(;t<e.length;++t){const n=e.charCodeAt(t);if(92!==n){if(34===n){if(r){i=t,r=!1;continue}s+=e.slice(i,t);break}if(r&&(i=t-1,r=!1),1!==QDTEXT[n])return}else r?(i=t,r=!1):(s+=e.slice(i,t),r=!0)}if(t===e.length)return;++t}else{for(i=t;t<e.length;++t){const r=e.charCodeAt(t);if(1!==TOKEN$1[r]){if(t===i)return;break}}s=e.slice(i,t)}n=n.toLowerCase(),void 0===r[n]&&(r[n]=s)}return r}function parseDisposition$1(e,t){if(0===e.length)return;const r=Object.create(null);let n=0;for(;n<e.length;++n){const o=e.charCodeAt(n);if(1!==TOKEN$1[o]){if(void 0===parseDispositionParams(e,n,r,t))return;break}}return{type:e.slice(0,n).toLowerCase(),params:r}}function parseDispositionParams(e,t,r,n){for(;t<e.length;){for(;t<e.length;++t){const r=e.charCodeAt(t);if(32!==r&&9!==r)break}if(t===e.length)break;if(59!==e.charCodeAt(t++))return;for(;t<e.length;++t){const r=e.charCodeAt(t);if(32!==r&&9!==r)break}if(t===e.length)return;let o;const i=t;for(;t<e.length;++t){const r=e.charCodeAt(t);if(1!==TOKEN$1[r]){if(61===r)break;return}}if(t===e.length)return;let s,A,a="";if(o=e.slice(i,t),42===o.charCodeAt(o.length-1)){const r=++t;for(;t<e.length;++t){const r=e.charCodeAt(t);if(1!==CHARSET[r]){if(39!==r)return;break}}if(t===e.length)return;for(A=e.slice(r,t),++t;t<e.length;++t){if(39===e.charCodeAt(t))break}if(t===e.length)return;if(++t===e.length)return;s=t;let n=0;for(;t<e.length;++t){const r=e.charCodeAt(t);if(1!==EXTENDED_VALUE[r]){if(37===r){let r,o;if(t+2<e.length&&-1!==(r=HEX_VALUES$1[e.charCodeAt(t+1)])&&-1!==(o=HEX_VALUES$1[e.charCodeAt(t+2)])){const i=(r<<4)+o;a+=e.slice(s,t),a+=String.fromCharCode(i),s=(t+=2)+1,i>=128?n=2:0===n&&(n=1);continue}return}break}}if(a+=e.slice(s,t),a=convertToUTF8$1(a,A,n),void 0===a)return}else{if(++t===e.length)return;if(34===e.charCodeAt(t)){s=++t;let r=!1;for(;t<e.length;++t){const n=e.charCodeAt(t);if(92!==n){if(34===n){if(r){s=t,r=!1;continue}a+=e.slice(s,t);break}if(r&&(s=t-1,r=!1),1!==QDTEXT[n])return}else r?(s=t,r=!1):(a+=e.slice(s,t),r=!0)}if(t===e.length)return;++t}else{for(s=t;t<e.length;++t){const r=e.charCodeAt(t);if(1!==TOKEN$1[r]){if(t===s)return;break}}a=e.slice(s,t)}if(a=n(a,2),void 0===a)return}o=o.toLowerCase(),void 0===r[o]&&(r[o]=a)}return r}function getDecoder$2(e){let t;for(;;)switch(e){case"utf-8":case"utf8":return decoders.utf8;case"latin1":case"ascii":case"us-ascii":case"iso-8859-1":case"iso8859-1":case"iso88591":case"iso_8859-1":case"windows-1252":case"iso_8859-1:1987":case"cp1252":case"x-cp1252":return decoders.latin1;case"utf16le":case"utf-16le":case"ucs2":case"ucs-2":return decoders.utf16le;case"base64":return decoders.base64;default:if(void 0===t){t=!0,e=e.toLowerCase();continue}return decoders.other.bind(e)}}const decoders={utf8:(e,t)=>{if(0===e.length)return"";if("string"==typeof e){if(t<2)return e;e=Buffer.from(e,"latin1")}return e.utf8Slice(0,e.length)},latin1:(e,t)=>0===e.length?"":"string"==typeof e?e:e.latin1Slice(0,e.length),utf16le:(e,t)=>0===e.length?"":("string"==typeof e&&(e=Buffer.from(e,"latin1")),e.ucs2Slice(0,e.length)),base64:(e,t)=>0===e.length?"":("string"==typeof e&&(e=Buffer.from(e,"latin1")),e.base64Slice(0,e.length)),other:(e,t)=>{if(0===e.length)return"";"string"==typeof e&&(e=Buffer.from(e,"latin1"));try{return new TextDecoder(void 0).decode(e)}catch{}}};function convertToUTF8$1(e,t,r){const n=getDecoder$2(t);if(n)return n(e,r)}function basename$1(e){if("string"!=typeof e)return"";for(let t=e.length-1;t>=0;--t)switch(e.charCodeAt(t)){case 47:case 92:return".."===(e=e.slice(t+1))||"."===e?"":e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0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],HEX_VALUES$1=[-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,0,1,2,3,4,5,6,7,8,9,-1,-1,-1,-1,-1,-1,-1,10,11,12,13,14,15,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,10,11,12,13,14,15,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1];var utils$1={basename:basename$1,convertToUTF8:convertToUTF8$1,getDecoder:getDecoder$2,parseContentType:parseContentType$2,parseDisposition:parseDisposition$1};function memcmp(e,t,r,n,o){for(let i=0;i<o;++i)if(e[t+i]!==r[n+i])return!1;return!0}class SBMH{constructor(e,t){if("function"!=typeof t)throw new Error("Missing match callback");if("string"==typeof e)e=Buffer.from(e);else if(!Buffer.isBuffer(e))throw new Error("Expected Buffer for needle, got "+typeof e);const r=e.length;if(this.maxMatches=1/0,this.matches=0,this._cb=t,this._lookbehindSize=0,this._needle=e,this._bufPos=0,this._lookbehind=Buffer.allocUnsafe(r),this._occ=[r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r],r>1)for(let t=0;t<r-1;++t)this._occ[e[t]]=r-1-t}reset(){this.matches=0,this._lookbehindSize=0,this._bufPos=0}push(e,t){let r;Buffer.isBuffer(e)||(e=Buffer.from(e,"latin1"));const n=e.length;for(this._bufPos=t||0;r!==n&&this.matches<this.maxMatches;)r=feed(this,e);return r}destroy(){const e=this._lookbehindSize;e&&this._cb(!1,this._lookbehind,0,e,!1),this.reset()}}function feed(e,t){const r=t.length,n=e._needle,o=n.length;let i=-e._lookbehindSize;const s=o-1,A=n[s],a=r-o,c=e._occ,u=e._lookbehind;if(i<0){for(;i<0&&i<=a;){const r=i+s,n=r<0?u[e._lookbehindSize+r]:t[r];if(n===A&&matchNeedle(e,t,i,s))return e._lookbehindSize=0,++e.matches,i>-e._lookbehindSize?e._cb(!0,u,0,e._lookbehindSize+i,!1):e._cb(!0,void 0,0,0,!0),e._bufPos=i+o;i+=c[n]}for(;i<0&&!matchNeedle(e,t,i,r-i);)++i;if(i<0){const n=e._lookbehindSize+i;return n>0&&e._cb(!1,u,0,n,!1),e._lookbehindSize-=n,u.copy(u,0,n,e._lookbehindSize),u.set(t,e._lookbehindSize),e._lookbehindSize+=r,e._bufPos=r,r}e._cb(!1,u,0,e._lookbehindSize,!1),e._lookbehindSize=0}i+=e._bufPos;const l=n[0];for(;i<=a;){const r=t[i+s];if(r===A&&t[i]===l&&memcmp(n,0,t,i,s))return++e.matches,i>0?e._cb(!0,t,e._bufPos,i,!0):e._cb(!0,void 0,0,0,!0),e._bufPos=i+o;i+=c[r]}for(;i<r;){if(t[i]===l&&memcmp(t,i,n,0,r-i)){t.copy(u,0,i,r),e._lookbehindSize=r-i;break}++i}return i>0&&e._cb(!1,t,e._bufPos,i<r?i:r,!0),e._bufPos=r,r}function matchNeedle(e,t,r,n){const o=e._lookbehind,i=e._lookbehindSize,s=e._needle;for(let e=0;e<n;++e,++r){if((r<0?o[i+r]:t[r])!==s[e])return!1}return!0}var sbmh=SBMH;const{Readable:Readable$4,Writable:Writable$2}=require$$0__default$1.default,StreamSearch=sbmh,{basename:basename,convertToUTF8:convertToUTF8,getDecoder:getDecoder$1,parseContentType:parseContentType$1,parseDisposition:parseDisposition}=utils$1,BUF_CRLF=Buffer.from("\r\n"),BUF_CR=Buffer.from("\r"),BUF_DASH=Buffer.from("-");function noop(){}const MAX_HEADER_PAIRS=2e3,MAX_HEADER_SIZE=16384,HPARSER_NAME=0,HPARSER_PRE_OWS=1,HPARSER_VALUE=2;class HeaderParser{constructor(e){this.header=Object.create(null),this.pairCount=0,this.byteCount=0,this.state=0,this.name="",this.value="",this.crlf=0,this.cb=e}reset(){this.header=Object.create(null),this.pairCount=0,this.byteCount=0,this.state=0,this.name="",this.value="",this.crlf=0}push(e,t,r){let n=t;for(;t<r;)switch(this.state){case 0:{let o=!1;for(;t<r;++t){if(16384===this.byteCount)return-1;++this.byteCount;const r=e[t];if(1!==TOKEN[r]){if(58!==r)return-1;if(this.name+=e.latin1Slice(n,t),0===this.name.length)return-1;++t,o=!0,this.state=1;break}}if(!o){this.name+=e.latin1Slice(n,t);break}}case 1:{let o=!1;for(;t<r;++t){if(16384===this.byteCount)return-1;++this.byteCount;const r=e[t];if(32!==r&&9!==r){n=t,o=!0,this.state=2;break}}if(!o)break}case 2:switch(this.crlf){case 0:for(;t<r;++t){if(16384===this.byteCount)return-1;++this.byteCount;const r=e[t];if(1!==FIELD_VCHAR[r]){if(13!==r)return-1;++this.crlf;break}}this.value+=e.latin1Slice(n,t++);break;case 1:if(16384===this.byteCount)return-1;if(++this.byteCount,10!==e[t++])return-1;++this.crlf;break;case 2:{if(16384===this.byteCount)return-1;++this.byteCount;const r=e[t];32===r||9===r?(n=t,this.crlf=0):(++this.pairCount<2e3&&(this.name=this.name.toLowerCase(),void 0===this.header[this.name]?this.header[this.name]=[this.value]:this.header[this.name].push(this.value)),13===r?(++this.crlf,++t):(n=t,this.crlf=0,this.state=0,this.name="",this.value=""));break}case 3:{if(16384===this.byteCount)return-1;if(++this.byteCount,10!==e[t++])return-1;const r=this.header;return this.reset(),this.cb(r),t}}}return t}}class FileStream extends Readable$4{constructor(e,t){super(e),this.truncated=!1,this._readcb=null,this.once("end",(()=>{if(this._read(),0==--t._fileEndsLeft&&t._finalcb){const e=t._finalcb;t._finalcb=null,process.nextTick(e)}}))}_read(e){const t=this._readcb;t&&(this._readcb=null,t())}}const ignoreData={push:(e,t)=>{},destroy:()=>{}};function callAndUnsetCb(e,t){const r=e._writecb;e._writecb=null,t?e.destroy(t):r&&r()}function nullDecoder(e,t){return e}class Multipart extends Writable$2{constructor(e){if(super({autoDestroy:!0,emitClose:!0,highWaterMark:"number"==typeof e.highWaterMark?e.highWaterMark:void 0}),!e.conType.params||"string"!=typeof e.conType.params.boundary)throw new Error("Multipart: Boundary not found");const t=e.conType.params.boundary,r="string"==typeof e.defParamCharset&&e.defParamCharset?getDecoder$1(e.defParamCharset):nullDecoder,n=e.defCharset||"utf8",o=e.preservePath,i={autoDestroy:!0,emitClose:!0,highWaterMark:"number"==typeof e.fileHwm?e.fileHwm:void 0},s=e.limits,A=s&&"number"==typeof s.fieldSize?s.fieldSize:1048576,a=s&&"number"==typeof s.fileSize?s.fileSize:1/0,c=s&&"number"==typeof s.files?s.files:1/0,u=s&&"number"==typeof s.fields?s.fields:1/0,l=s&&"number"==typeof s.parts?s.parts:1/0;let d=-1,g=0,h=0,p=!1;this._fileEndsLeft=0,this._fileStream=void 0,this._complete=!1;let E,C,f,B,Q,I=0,y=0,b=!1,m=!1,w=!1;this._hparser=null;const k=new HeaderParser((e=>{let t;if(this._hparser=null,p=!1,B="text/plain",C=n,f="7bit",Q=void 0,b=!1,!e["content-disposition"])return void(p=!0);const s=parseDisposition(e["content-disposition"][0],r);if(s&&"form-data"===s.type){if(s.params&&(s.params.name&&(Q=s.params.name),s.params["filename*"]?t=s.params["filename*"]:s.params.filename&&(t=s.params.filename),void 0===t||o||(t=basename(t))),e["content-type"]){const t=parseContentType$1(e["content-type"][0]);t&&(B=`${t.type}/${t.subtype}`,t.params&&"string"==typeof t.params.charset&&(C=t.params.charset.toLowerCase()))}if(e["content-transfer-encoding"]&&(f=e["content-transfer-encoding"][0].toLowerCase()),"application/octet-stream"===B||void 0!==t){if(h===c)return m||(m=!0,this.emit("filesLimit")),void(p=!0);if(++h,0===this.listenerCount("file"))return void(p=!0);I=0,this._fileStream=new FileStream(i,this),++this._fileEndsLeft,this.emit("file",Q,this._fileStream,{filename:t,encoding:f,mimeType:B})}else{if(g===u)return w||(w=!0,this.emit("fieldsLimit")),void(p=!0);if(++g,0===this.listenerCount("field"))return void(p=!0);E=[],y=0}}else p=!0}));let R=0;const D=(e,t,r,n,o)=>{e:for(;t;){if(null!==this._hparser){const e=this._hparser.push(t,r,n);if(-1===e){this._hparser=null,k.reset(),this.emit("error",new Error("Malformed part header"));break}r=e}if(r===n)break;if(0!==R){if(1===R){switch(t[r]){case 45:R=2,++r;break;case 13:R=3,++r;break;default:R=0}if(r===n)return}if(2===R){if(R=0,45===t[r])return this._complete=!0,void(this._bparser=ignoreData);const e=this._writecb;this._writecb=noop,D(!1,BUF_DASH,0,1,!1),this._writecb=e}else if(3===R){if(R=0,10===t[r]){if(++r,d>=l)break;if(this._hparser=k,r===n)break;continue e}{const e=this._writecb;this._writecb=noop,D(!1,BUF_CR,0,1,!1),this._writecb=e}}}if(!p)if(this._fileStream){let e;const i=Math.min(n-r,a-I);o?e=t.slice(r,r+i):(e=Buffer.allocUnsafe(i),t.copy(e,0,r,r+i)),I+=e.length,I===a?(e.length>0&&this._fileStream.push(e),this._fileStream.emit("limit"),this._fileStream.truncated=!0,p=!0):this._fileStream.push(e)||(this._writecb&&(this._fileStream._readcb=this._writecb),this._writecb=null)}else if(void 0!==E){let e;const i=Math.min(n-r,A-y);o?e=t.slice(r,r+i):(e=Buffer.allocUnsafe(i),t.copy(e,0,r,r+i)),y+=i,E.push(e),y===A&&(p=!0,b=!0)}break}if(e){if(R=1,this._fileStream)this._fileStream.push(null),this._fileStream=null;else if(void 0!==E){let e;switch(E.length){case 0:e="";break;case 1:e=convertToUTF8(E[0],C,0);break;default:e=convertToUTF8(Buffer.concat(E,y),C,0)}E=void 0,y=0,this.emit("field",Q,e,{nameTruncated:!1,valueTruncated:b,encoding:f,mimeType:B})}++d===l&&this.emit("partsLimit")}};this._bparser=new StreamSearch(`\r\n--${t}`,D),this._writecb=null,this._finalcb=null,this.write(BUF_CRLF)}static detect(e){return"multipart"===e.type&&"form-data"===e.subtype}_write(e,t,r){this._writecb=r,this._bparser.push(e,0),this._writecb&&callAndUnsetCb(this)}_destroy(e,t){this._hparser=null,this._bparser=ignoreData,e||(e=checkEndState(this));const r=this._fileStream;r&&(this._fileStream=null,r.destroy(e)),t(e)}_final(e){if(this._bparser.destroy(),!this._complete)return e(new Error("Unexpected end of form"));this._fileEndsLeft?this._finalcb=finalcb.bind(null,this,e):finalcb(this,e)}}function finalcb(e,t,r){if(r)return t(r);t(r=checkEndState(e))}function checkEndState(e){if(e._hparser)return new Error("Malformed part header");const t=e._fileStream;return t&&(e._fileStream=null,t.destroy(new Error("Unexpected end of file"))),e._complete?void 0:new Error("Unexpected end of form")}const TOKEN=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,1,1,1,1,1,0,0,1,1,0,1,1,0,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,1,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],FIELD_VCHAR=[0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1];var multipart=Multipart;const{Writable:Writable$1}=require$$0__default$1.default,{getDecoder:getDecoder}=utils$1;class URLEncoded extends Writable$1{constructor(e){super({autoDestroy:!0,emitClose:!0,highWaterMark:"number"==typeof e.highWaterMark?e.highWaterMark:void 0});let t=e.defCharset||"utf8";e.conType.params&&"string"==typeof e.conType.params.charset&&(t=e.conType.params.charset),this.charset=t;const r=e.limits;this.fieldSizeLimit=r&&"number"==typeof r.fieldSize?r.fieldSize:1048576,this.fieldsLimit=r&&"number"==typeof r.fields?r.fields:1/0,this.fieldNameSizeLimit=r&&"number"==typeof r.fieldNameSize?r.fieldNameSize:100,this._inKey=!0,this._keyTrunc=!1,this._valTrunc=!1,this._bytesKey=0,this._bytesVal=0,this._fields=0,this._key="",this._val="",this._byte=-2,this._lastPos=0,this._encode=0,this._decoder=getDecoder(t)}static detect(e){return"application"===e.type&&"x-www-form-urlencoded"===e.subtype}_write(e,t,r){if(this._fields>=this.fieldsLimit)return r();let n=0;const o=e.length;if(this._lastPos=0,-2!==this._byte){if(n=readPctEnc(this,e,n,o),-1===n)return r(new Error("Malformed urlencoded form"));if(n>=o)return r();this._inKey?++this._bytesKey:++this._bytesVal}e:for(;n<o;)if(this._inKey){for(n=skipKeyBytes(this,e,n,o);n<o;){switch(e[n]){case 61:this._lastPos<n&&(this._key+=e.latin1Slice(this._lastPos,n)),this._lastPos=++n,this._key=this._decoder(this._key,this._encode),this._encode=0,this._inKey=!1;continue e;case 38:if(this._lastPos<n&&(this._key+=e.latin1Slice(this._lastPos,n)),this._lastPos=++n,this._key=this._decoder(this._key,this._encode),this._encode=0,this._bytesKey>0&&this.emit("field",this._key,"",{nameTruncated:this._keyTrunc,valueTruncated:!1,encoding:this.charset,mimeType:"text/plain"}),this._key="",this._val="",this._keyTrunc=!1,this._valTrunc=!1,this._bytesKey=0,this._bytesVal=0,++this._fields>=this.fieldsLimit)return this.emit("fieldsLimit"),r();continue;case 43:this._lastPos<n&&(this._key+=e.latin1Slice(this._lastPos,n)),this._key+=" ",this._lastPos=n+1;break;case 37:if(0===this._encode&&(this._encode=1),this._lastPos<n&&(this._key+=e.latin1Slice(this._lastPos,n)),this._lastPos=n+1,this._byte=-1,n=readPctEnc(this,e,n+1,o),-1===n)return r(new Error("Malformed urlencoded form"));if(n>=o)return r();++this._bytesKey,n=skipKeyBytes(this,e,n,o);continue}++n,++this._bytesKey,n=skipKeyBytes(this,e,n,o)}this._lastPos<n&&(this._key+=e.latin1Slice(this._lastPos,n))}else{for(n=skipValBytes(this,e,n,o);n<o;){switch(e[n]){case 38:if(this._lastPos<n&&(this._val+=e.latin1Slice(this._lastPos,n)),this._lastPos=++n,this._inKey=!0,this._val=this._decoder(this._val,this._encode),this._encode=0,(this._bytesKey>0||this._bytesVal>0)&&this.emit("field",this._key,this._val,{nameTruncated:this._keyTrunc,valueTruncated:this._valTrunc,encoding:this.charset,mimeType:"text/plain"}),this._key="",this._val="",this._keyTrunc=!1,this._valTrunc=!1,this._bytesKey=0,this._bytesVal=0,++this._fields>=this.fieldsLimit)return this.emit("fieldsLimit"),r();continue e;case 43:this._lastPos<n&&(this._val+=e.latin1Slice(this._lastPos,n)),this._val+=" ",this._lastPos=n+1;break;case 37:if(0===this._encode&&(this._encode=1),this._lastPos<n&&(this._val+=e.latin1Slice(this._lastPos,n)),this._lastPos=n+1,this._byte=-1,n=readPctEnc(this,e,n+1,o),-1===n)return r(new Error("Malformed urlencoded form"));if(n>=o)return r();++this._bytesVal,n=skipValBytes(this,e,n,o);continue}++n,++this._bytesVal,n=skipValBytes(this,e,n,o)}this._lastPos<n&&(this._val+=e.latin1Slice(this._lastPos,n))}r()}_final(e){if(-2!==this._byte)return e(new Error("Malformed urlencoded form"));(!this._inKey||this._bytesKey>0||this._bytesVal>0)&&(this._inKey?this._key=this._decoder(this._key,this._encode):this._val=this._decoder(this._val,this._encode),this.emit("field",this._key,this._val,{nameTruncated:this._keyTrunc,valueTruncated:this._valTrunc,encoding:this.charset,mimeType:"text/plain"})),e()}}function readPctEnc(e,t,r,n){if(r>=n)return n;if(-1===e._byte){const o=HEX_VALUES[t[r++]];if(-1===o)return-1;if(o>=8&&(e._encode=2),r<n){const n=HEX_VALUES[t[r++]];if(-1===n)return-1;e._inKey?e._key+=String.fromCharCode((o<<4)+n):e._val+=String.fromCharCode((o<<4)+n),e._byte=-2,e._lastPos=r}else e._byte=o}else{const n=HEX_VALUES[t[r++]];if(-1===n)return-1;e._inKey?e._key+=String.fromCharCode((e._byte<<4)+n):e._val+=String.fromCharCode((e._byte<<4)+n),e._byte=-2,e._lastPos=r}return r}function skipKeyBytes(e,t,r,n){if(e._bytesKey>e.fieldNameSizeLimit){for(e._keyTrunc||e._lastPos<r&&(e._key+=t.latin1Slice(e._lastPos,r-1)),e._keyTrunc=!0;r<n;++r){const n=t[r];if(61===n||38===n)break;++e._bytesKey}e._lastPos=r}return r}function skipValBytes(e,t,r,n){if(e._bytesVal>e.fieldSizeLimit){for(e._valTrunc||e._lastPos<r&&(e._val+=t.latin1Slice(e._lastPos,r-1)),e._valTrunc=!0;r<n&&38!==t[r];++r)++e._bytesVal;e._lastPos=r}return r}const HEX_VALUES=[-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,0,1,2,3,4,5,6,7,8,9,-1,-1,-1,-1,-1,-1,-1,10,11,12,13,14,15,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,10,11,12,13,14,15,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1];var urlencoded=URLEncoded;const{parseContentType:parseContentType}=utils$1;function getInstance(e){const t=e.headers,r=parseContentType(t["content-type"]);if(!r)throw new Error("Malformed content type");for(const n of TYPES){if(!n.detect(r))continue;const o={limits:e.limits,headers:t,conType:r,highWaterMark:void 0,fileHwm:void 0,defCharset:void 0,defParamCharset:void 0,preservePath:!1};return e.highWaterMark&&(o.highWaterMark=e.highWaterMark),e.fileHwm&&(o.fileHwm=e.fileHwm),o.defCharset=e.defCharset,o.defParamCharset=e.defParamCharset,o.preservePath=e.preservePath,new n(o)}throw new Error(`Unsupported content type: ${t["content-type"]}`)}const TYPES=[multipart,urlencoded].filter((function(e){return"function"==typeof e.detect}));var lib=e=>{if("object"==typeof e&&null!==e||(e={}),"object"!=typeof e.headers||null===e.headers||"string"!=typeof e.headers["content-type"])throw new Error("Missing Content-Type");return getInstance(e)};const{MessageChannel:MessageChannel,receiveMessageOnPort:receiveMessageOnPort}=require$$0__default$3.default,corsSafeListedMethods$1=["GET","HEAD","POST"],nullBodyStatus$2=[101,204,205,304],redirectStatus$3=[301,302,303,307,308],badPorts$1=["1","7","9","11","13","15","17","19","20","21","22","23","25","37","42","43","53","69","77","79","87","95","101","102","103","104","109","110","111","113","115","117","119","123","135","137","139","143","161","179","389","427","465","512","513","514","515","526","530","531","532","540","548","554","556","563","587","601","636","989","990","993","995","1719","1720","1723","2049","3659","4045","5060","5061","6000","6566","6665","6666","6667","6668","6669","6697","10080"],referrerPolicy$1=["","no-referrer","no-referrer-when-downgrade","same-origin","origin","strict-origin","origin-when-cross-origin","strict-origin-when-cross-origin","unsafe-url"],requestRedirect$1=["follow","manual","error"],safeMethods$1=["GET","HEAD","OPTIONS","TRACE"],requestMode$1=["navigate","same-origin","no-cors","cors"],requestCredentials$1=["omit","same-origin","include"],requestCache$1=["default","no-store","reload","no-cache","force-cache","only-if-cached"],requestBodyHeader$1=["content-encoding","content-language","content-location","content-type","content-length"],requestDuplex$1=["half"],forbiddenMethods$1=["CONNECT","TRACE","TRACK"],subresource$1=["audio","audioworklet","font","image","manifest","paintworklet","script","style","track","video","xslt",""],DOMException$6=globalThis.DOMException??(()=>{try{atob("~")}catch(e){return Object.getPrototypeOf(e).constructor}})();let channel;const structuredClone$1=globalThis.structuredClone??function(e,t=void 0){if(0===arguments.length)throw new TypeError("missing argument");return channel||(channel=new MessageChannel),channel.port1.unref(),channel.port2.unref(),channel.port1.postMessage(e,t?.transfer),receiveMessageOnPort(channel.port2).message};var constants$3={DOMException:DOMException$6,structuredClone:structuredClone$1,subresource:subresource$1,forbiddenMethods:forbiddenMethods$1,requestBodyHeader:requestBodyHeader$1,referrerPolicy:referrerPolicy$1,requestRedirect:requestRedirect$1,requestMode:requestMode$1,requestCredentials:requestCredentials$1,requestCache:requestCache$1,redirectStatus:redirectStatus$3,corsSafeListedMethods:corsSafeListedMethods$1,nullBodyStatus:nullBodyStatus$2,safeMethods:safeMethods$1,badPorts:badPorts$1,requestDuplex:requestDuplex$1};const globalOrigin=Symbol.for("undici.globalOrigin.1");function getGlobalOrigin$4(){return globalThis[globalOrigin]}function setGlobalOrigin(e){if(void 0!==e&&"string"!=typeof e&&!(e instanceof URL))throw new Error("Invalid base url");if(void 0===e)return void Object.defineProperty(globalThis,globalOrigin,{value:void 0,writable:!0,enumerable:!1,configurable:!1});const t=new URL(e);if("http:"!==t.protocol&&"https:"!==t.protocol)throw new TypeError(`Only http & https urls are allowed, received ${t.protocol}`);Object.defineProperty(globalThis,globalOrigin,{value:t,writable:!0,enumerable:!1,configurable:!1})}var global$2={getGlobalOrigin:getGlobalOrigin$4,setGlobalOrigin:setGlobalOrigin};const{redirectStatus:redirectStatus$2,badPorts:badPorts,referrerPolicy:referrerPolicyTokens}=constants$3,{getGlobalOrigin:getGlobalOrigin$3}=global$2,{performance:performance$1}=require$$2__default$1.default,{isBlobLike:isBlobLike$6,toUSVString:toUSVString$4,ReadableStreamFrom:ReadableStreamFrom$2}=util$l,assert$g=require$$0__default.default,{isUint8Array:isUint8Array$1}=require$$5__default.default;let crypto;try{crypto=require("crypto")}catch{}function responseURL(e){const t=e.urlList,r=t.length;return 0===r?null:t[r-1].toString()}function responseLocationURL$1(e,t){if(!redirectStatus$2.includes(e.status))return null;let r=e.headersList.get("location");return null!==r&&isValidHeaderValue$1(r)&&(r=new URL(r,responseURL(e))),r&&!r.hash&&(r.hash=t),r}function requestCurrentURL$1(e){return e.urlList[e.urlList.length-1]}function requestBadPort$1(e){const t=requestCurrentURL$1(e);return urlIsHttpHttpsScheme$2(t)&&badPorts.includes(t.port)?"blocked":"allowed"}function isErrorLike$2(e){return e instanceof Error||"Error"===e?.constructor?.name||"DOMException"===e?.constructor?.name}function isValidReasonPhrase$1(e){for(let t=0;t<e.length;++t){const r=e.charCodeAt(t);if(!(9===r||r>=32&&r<=126||r>=128&&r<=255))return!1}return!0}function isTokenChar(e){return!(e>=127||e<=32||"("===e||")"===e||"<"===e||">"===e||"@"===e||","===e||";"===e||":"===e||"\\"===e||'"'===e||"/"===e||"["===e||"]"===e||"?"===e||"="===e||"{"===e||"}"===e)}function isValidHTTPToken$1(e){if(!e||"string"!=typeof e)return!1;for(let t=0;t<e.length;++t){const r=e.charCodeAt(t);if(r>127||!isTokenChar(r))return!1}return!0}function isValidHeaderName$2(e){return 0!==e.length&&isValidHTTPToken$1(e)}function isValidHeaderValue$1(e){return!(e.startsWith("\t")||e.startsWith(" ")||e.endsWith("\t")||e.endsWith(" "))&&!(e.includes("\0")||e.includes("\r")||e.includes("\n"))}function setRequestReferrerPolicyOnRedirect$1(e,t){const{headersList:r}=t,n=(r.get("referrer-policy")??"").split(",");let o="";if(n.length>0)for(let e=n.length;0!==e;e--){const t=n[e-1].trim();if(referrerPolicyTokens.includes(t)){o=t;break}}""!==o&&(e.referrerPolicy=o)}function crossOriginResourcePolicyCheck$1(){return"allowed"}function corsCheck$1(){return"success"}function TAOCheck$1(){return"success"}function appendFetchMetadata$1(e){let t=null;t=e.mode,e.headersList.set("sec-fetch-mode",t)}function appendRequestOriginHeader$1(e){let t=e.origin;if("cors"===e.responseTainting||"websocket"===e.mode)t&&e.headersList.append("origin",t);else if("GET"!==e.method&&"HEAD"!==e.method){switch(e.referrerPolicy){case"no-referrer":t=null;break;case"no-referrer-when-downgrade":case"strict-origin":case"strict-origin-when-cross-origin":e.origin&&urlHasHttpsScheme$1(e.origin)&&!urlHasHttpsScheme$1(requestCurrentURL$1(e))&&(t=null);break;case"same-origin":sameOrigin$2(e,requestCurrentURL$1(e))||(t=null)}t&&e.headersList.append("origin",t)}}function coarsenedSharedCurrentTime$1(e){return performance$1.now()}function createOpaqueTimingInfo$1(e){return{startTime:e.startTime??0,redirectStartTime:0,redirectEndTime:0,postRedirectStartTime:e.startTime??0,finalServiceWorkerStartTime:0,finalNetworkResponseStartTime:0,finalNetworkRequestStartTime:0,endTime:0,encodedBodySize:0,decodedBodySize:0,finalConnectionTimingInfo:null}}function makePolicyContainer$2(){return{referrerPolicy:"strict-origin-when-cross-origin"}}function clonePolicyContainer$1(e){return{referrerPolicy:e.referrerPolicy}}function determineRequestsReferrer$1(e){const t=e.referrerPolicy;assert$g(t);let r=null;if("client"===e.referrer){const e=getGlobalOrigin$3();if(!e||"null"===e.origin)return"no-referrer";r=new URL(e)}else e.referrer instanceof URL&&(r=e.referrer);let n=stripURLForReferrer(r);const o=stripURLForReferrer(r,!0);n.toString().length>4096&&(n=o);const i=sameOrigin$2(e,n),s=isURLPotentiallyTrustworthy(n)&&!isURLPotentiallyTrustworthy(e.url);switch(t){case"origin":return null!=o?o:stripURLForReferrer(r,!0);case"unsafe-url":return n;case"same-origin":return i?o:"no-referrer";case"origin-when-cross-origin":return i?n:o;case"strict-origin-when-cross-origin":{const t=requestCurrentURL$1(e);return sameOrigin$2(n,t)?n:isURLPotentiallyTrustworthy(n)&&!isURLPotentiallyTrustworthy(t)?"no-referrer":o}default:return s?"no-referrer":o}}function stripURLForReferrer(e,t){return assert$g(e instanceof URL),"file:"===e.protocol||"about:"===e.protocol||"blank:"===e.protocol?"no-referrer":(e.username="",e.password="",e.hash="",t&&(e.pathname="",e.search=""),e)}function isURLPotentiallyTrustworthy(e){return e instanceof URL&&("about:blank"===e.href||"about:srcdoc"===e.href||("data:"===e.protocol||("file:"===e.protocol||function(e){if(null==e||"null"===e)return!1;const t=new URL(e);if("https:"===t.protocol||"wss:"===t.protocol)return!0;if(/^127(?:\.[0-9]+){0,2}\.[0-9]+$|^\[(?:0*:)*?:?0*1\]$/.test(t.hostname)||"localhost"===t.hostname||t.hostname.includes("localhost.")||t.hostname.endsWith(".localhost"))return!0;return!1}(e.origin))))}function bytesMatch$1(e,t){if(void 0===crypto)return!0;const r=parseMetadata(t);if("no metadata"===r)return!0;if(0===r.length)return!0;const n=r.sort(((e,t)=>t.algo.localeCompare(e.algo))),o=n[0].algo,i=n.filter((e=>e.algo===o));for(const t of i){const r=t.algo;let n=t.hash;n.endsWith("==")&&(n=n.slice(0,-2));let o=crypto.createHash(r).update(e).digest("base64");if(o.endsWith("==")&&(o=o.slice(0,-2)),o===n)return!0;let i=crypto.createHash(r).update(e).digest("base64url");if(i.endsWith("==")&&(i=i.slice(0,-2)),i===n)return!0}return!1}const parseHashWithOptions=/((?<algo>sha256|sha384|sha512)-(?<hash>[A-z0-9+/]{1}.*={0,2}))( +[\x21-\x7e]?)?/i;function parseMetadata(e){const t=[];let r=!0;const n=crypto.getHashes();for(const o of e.split(" ")){r=!1;const e=parseHashWithOptions.exec(o);if(null===e||void 0===e.groups)continue;const i=e.groups.algo;n.includes(i.toLowerCase())&&t.push(e.groups)}return!0===r?"no metadata":t}function tryUpgradeRequestToAPotentiallyTrustworthyURL$1(e){}function sameOrigin$2(e,t){return e.origin===t.origin&&"null"===e.origin||e.protocol===t.protocol&&e.hostname===t.hostname&&e.port===t.port}function createDeferredPromise$3(){let e,t;return{promise:new Promise(((r,n)=>{e=r,t=n})),resolve:e,reject:t}}function isAborted$2(e){return"aborted"===e.controller.state}function isCancelled$2(e){return"aborted"===e.controller.state||"terminated"===e.controller.state}function normalizeMethod$1(e){return/^(DELETE|GET|HEAD|OPTIONS|POST|PUT)$/i.test(e)?e.toUpperCase():e}function serializeJavascriptValueToJSONString$1(e){const t=JSON.stringify(e);if(void 0===t)throw new TypeError("Value is not JSON serializable");return assert$g("string"==typeof t),t}const esIteratorPrototype=Object.getPrototypeOf(Object.getPrototypeOf([][Symbol.iterator]()));function makeIterator$2(e,t,r){const n={index:0,kind:r,target:e},o={next(){if(Object.getPrototypeOf(this)!==o)throw new TypeError(`'next' called on an object that does not implement interface ${t} Iterator.`);const{index:e,kind:r,target:i}=n,s=i();if(e>=s.length)return{value:void 0,done:!0};const A=s[e];return n.index=e+1,iteratorResult(A,r)},[Symbol.toStringTag]:`${t} Iterator`};return Object.setPrototypeOf(o,esIteratorPrototype),Object.setPrototypeOf({},o)}function iteratorResult(e,t){let r;switch(t){case"key":r=e[0];break;case"value":r=e[1];break;case"key+value":r=e}return{value:r,done:!1}}async function fullyReadBody$2(e,t,r){const n=t,o=r;let i;try{i=e.stream.getReader()}catch(e){return void o(e)}try{n(await readAllBytes$1(i))}catch(e){o(e)}}let ReadableStream$3=globalThis.ReadableStream;function isReadableStreamLike$1(e){return ReadableStream$3||(ReadableStream$3=require$$13__default.default.ReadableStream),e instanceof ReadableStream$3||"ReadableStream"===e[Symbol.toStringTag]&&"function"==typeof e.tee}const MAXIMUM_ARGUMENT_LENGTH=65535;function isomorphicDecode$1(e){return e.length<65535?String.fromCharCode(...e):e.reduce(((e,t)=>e+String.fromCharCode(t)),"")}function readableStreamClose$2(e){try{e.close()}catch(e){if(!e.message.includes("Controller is already closed"))throw e}}function isomorphicEncode$2(e){for(let t=0;t<e.length;t++)assert$g(e.charCodeAt(t)<=255);return e}async function readAllBytes$1(e){const t=[];let r=0;for(;;){const{done:n,value:o}=await e.read();if(n)return Buffer.concat(t,r);if(!isUint8Array$1(o))throw new TypeError("Received non-Uint8Array chunk");t.push(o),r+=o.length}}function urlIsLocal$1(e){assert$g("protocol"in e);const t=e.protocol;return"about:"===t||"blob:"===t||"data:"===t}function urlHasHttpsScheme$1(e){return"string"==typeof e?e.startsWith("https:"):"https:"===e.protocol}function urlIsHttpHttpsScheme$2(e){assert$g("protocol"in e);const t=e.protocol;return"http:"===t||"https:"===t}const hasOwn$1=Object.hasOwn||((e,t)=>Object.prototype.hasOwnProperty.call(e,t));var util$k={isAborted:isAborted$2,isCancelled:isCancelled$2,createDeferredPromise:createDeferredPromise$3,ReadableStreamFrom:ReadableStreamFrom$2,toUSVString:toUSVString$4,tryUpgradeRequestToAPotentiallyTrustworthyURL:tryUpgradeRequestToAPotentiallyTrustworthyURL$1,coarsenedSharedCurrentTime:coarsenedSharedCurrentTime$1,determineRequestsReferrer:determineRequestsReferrer$1,makePolicyContainer:makePolicyContainer$2,clonePolicyContainer:clonePolicyContainer$1,appendFetchMetadata:appendFetchMetadata$1,appendRequestOriginHeader:appendRequestOriginHeader$1,TAOCheck:TAOCheck$1,corsCheck:corsCheck$1,crossOriginResourcePolicyCheck:crossOriginResourcePolicyCheck$1,createOpaqueTimingInfo:createOpaqueTimingInfo$1,setRequestReferrerPolicyOnRedirect:setRequestReferrerPolicyOnRedirect$1,isValidHTTPToken:isValidHTTPToken$1,requestBadPort:requestBadPort$1,requestCurrentURL:requestCurrentURL$1,responseURL:responseURL,responseLocationURL:responseLocationURL$1,isBlobLike:isBlobLike$6,isURLPotentiallyTrustworthy:isURLPotentiallyTrustworthy,isValidReasonPhrase:isValidReasonPhrase$1,sameOrigin:sameOrigin$2,normalizeMethod:normalizeMethod$1,serializeJavascriptValueToJSONString:serializeJavascriptValueToJSONString$1,makeIterator:makeIterator$2,isValidHeaderName:isValidHeaderName$2,isValidHeaderValue:isValidHeaderValue$1,hasOwn:hasOwn$1,isErrorLike:isErrorLike$2,fullyReadBody:fullyReadBody$2,bytesMatch:bytesMatch$1,isReadableStreamLike:isReadableStreamLike$1,readableStreamClose:readableStreamClose$2,isomorphicEncode:isomorphicEncode$2,isomorphicDecode:isomorphicDecode$1,urlIsLocal:urlIsLocal$1,urlHasHttpsScheme:urlHasHttpsScheme$1,urlIsHttpHttpsScheme:urlIsHttpHttpsScheme$2,readAllBytes:readAllBytes$1},symbols$3={kUrl:Symbol("url"),kHeaders:Symbol("headers"),kSignal:Symbol("signal"),kState:Symbol("state"),kGuard:Symbol("guard"),kRealm:Symbol("realm")};const{types:types$4}=require$$0__default$2.default,{hasOwn:hasOwn,toUSVString:toUSVString$3}=util$k,webidl$e={converters:{},util:{},errors:{}};webidl$e.errors.exception=function(e){return new TypeError(`${e.header}: ${e.message}`)},webidl$e.errors.conversionFailed=function(e){const t=1===e.types.length?"":" one of",r=`${e.argument} could not be converted to${t}: ${e.types.join(", ")}.`;return webidl$e.errors.exception({header:e.prefix,message:r})},webidl$e.errors.invalidArgument=function(e){return webidl$e.errors.exception({header:e.prefix,message:`"${e.value}" is an invalid ${e.type}.`})},webidl$e.brandCheck=function(e,t,r=void 0){if(!1===r?.strict||e instanceof t)return e?.[Symbol.toStringTag]===t.prototype[Symbol.toStringTag];throw new TypeError("Illegal invocation")},webidl$e.argumentLengthCheck=function({length:e},t,r){if(e<t)throw webidl$e.errors.exception({message:`${t} argument${1!==t?"s":""} required, but${e?" only":""} ${e} found.`,...r})},webidl$e.illegalConstructor=function(){throw webidl$e.errors.exception({header:"TypeError",message:"Illegal constructor"})},webidl$e.util.Type=function(e){switch(typeof e){case"undefined":return"Undefined";case"boolean":return"Boolean";case"string":return"String";case"symbol":return"Symbol";case"number":return"Number";case"bigint":return"BigInt";case"function":case"object":return null===e?"Null":"Object"}},webidl$e.util.ConvertToInt=function(e,t,r,n={}){let o,i;64===t?(o=Math.pow(2,53)-1,i="unsigned"===r?0:Math.pow(-2,53)+1):"unsigned"===r?(i=0,o=Math.pow(2,t)-1):(i=Math.pow(-2,t)-1,o=Math.pow(2,t-1)-1);let s=Number(e);if(0===s&&(s=0),!0===n.enforceRange){if(Number.isNaN(s)||s===Number.POSITIVE_INFINITY||s===Number.NEGATIVE_INFINITY)throw webidl$e.errors.exception({header:"Integer conversion",message:`Could not convert ${e} to an integer.`});if(s=webidl$e.util.IntegerPart(s),s<i||s>o)throw webidl$e.errors.exception({header:"Integer conversion",message:`Value must be between ${i}-${o}, got ${s}.`});return s}return Number.isNaN(s)||!0!==n.clamp?Number.isNaN(s)||0===s&&Object.is(0,s)||s===Number.POSITIVE_INFINITY||s===Number.NEGATIVE_INFINITY?0:(s=webidl$e.util.IntegerPart(s),s%=Math.pow(2,t),"signed"===r&&s>=Math.pow(2,t)-1?s-Math.pow(2,t):s):(s=Math.min(Math.max(s,i),o),s=Math.floor(s)%2==0?Math.floor(s):Math.ceil(s),s)},webidl$e.util.IntegerPart=function(e){const t=Math.floor(Math.abs(e));return e<0?-1*t:t},webidl$e.sequenceConverter=function(e){return t=>{if("Object"!==webidl$e.util.Type(t))throw webidl$e.errors.exception({header:"Sequence",message:`Value of type ${webidl$e.util.Type(t)} is not an Object.`});const r=t?.[Symbol.iterator]?.(),n=[];if(void 0===r||"function"!=typeof r.next)throw webidl$e.errors.exception({header:"Sequence",message:"Object is not an iterator."});for(;;){const{done:t,value:o}=r.next();if(t)break;n.push(e(o))}return n}},webidl$e.recordConverter=function(e,t){return r=>{if("Object"!==webidl$e.util.Type(r))throw webidl$e.errors.exception({header:"Record",message:`Value of type ${webidl$e.util.Type(r)} is not an Object.`});const n={};if(!types$4.isProxy(r)){const o=Object.keys(r);for(const i of o){const o=e(i),s=t(r[i]);n[o]=s}return n}const o=Reflect.ownKeys(r);for(const i of o){const o=Reflect.getOwnPropertyDescriptor(r,i);if(o?.enumerable){const o=e(i),s=t(r[i]);n[o]=s}}return n}},webidl$e.interfaceConverter=function(e){return(t,r={})=>{if(!1!==r.strict&&!(t instanceof e))throw webidl$e.errors.exception({header:e.name,message:`Expected ${t} to be an instance of ${e.name}.`});return t}},webidl$e.dictionaryConverter=function(e){return t=>{const r=webidl$e.util.Type(t),n={};if("Null"===r||"Undefined"===r)return n;if("Object"!==r)throw webidl$e.errors.exception({header:"Dictionary",message:`Expected ${t} to be one of: Null, Undefined, Object.`});for(const r of e){const{key:e,defaultValue:o,required:i,converter:s}=r;if(!0===i&&!hasOwn(t,e))throw webidl$e.errors.exception({header:"Dictionary",message:`Missing required key "${e}".`});let A=t[e];const a=hasOwn(r,"defaultValue");if(a&&null!==A&&(A=A??o),i||a||void 0!==A){if(A=s(A),r.allowedValues&&!r.allowedValues.includes(A))throw webidl$e.errors.exception({header:"Dictionary",message:`${A} is not an accepted type. Expected one of ${r.allowedValues.join(", ")}.`});n[e]=A}}return n}},webidl$e.nullableConverter=function(e){return t=>null===t?t:e(t)},webidl$e.converters.DOMString=function(e,t={}){if(null===e&&t.legacyNullToEmptyString)return"";if("symbol"==typeof e)throw new TypeError("Could not convert argument of type symbol to string.");return String(e)},webidl$e.converters.ByteString=function(e){const t=webidl$e.converters.DOMString(e);for(let e=0;e<t.length;e++){const r=t.charCodeAt(e);if(r>255)throw new TypeError(`Cannot convert argument to a ByteString because the character at index ${e} has a value of ${r} which is greater than 255.`)}return t},webidl$e.converters.USVString=toUSVString$3,webidl$e.converters.boolean=function(e){return Boolean(e)},webidl$e.converters.any=function(e){return e},webidl$e.converters["long long"]=function(e){return webidl$e.util.ConvertToInt(e,64,"signed")},webidl$e.converters["unsigned long long"]=function(e){return webidl$e.util.ConvertToInt(e,64,"unsigned")},webidl$e.converters["unsigned long"]=function(e){return webidl$e.util.ConvertToInt(e,32,"unsigned")},webidl$e.converters["unsigned short"]=function(e,t){return webidl$e.util.ConvertToInt(e,16,"unsigned",t)},webidl$e.converters.ArrayBuffer=function(e,t={}){if("Object"!==webidl$e.util.Type(e)||!types$4.isAnyArrayBuffer(e))throw webidl$e.errors.conversionFailed({prefix:`${e}`,argument:`${e}`,types:["ArrayBuffer"]});if(!1===t.allowShared&&types$4.isSharedArrayBuffer(e))throw webidl$e.errors.exception({header:"ArrayBuffer",message:"SharedArrayBuffer is not allowed."});return e},webidl$e.converters.TypedArray=function(e,t,r={}){if("Object"!==webidl$e.util.Type(e)||!types$4.isTypedArray(e)||e.constructor.name!==t.name)throw webidl$e.errors.conversionFailed({prefix:`${t.name}`,argument:`${e}`,types:[t.name]});if(!1===r.allowShared&&types$4.isSharedArrayBuffer(e.buffer))throw webidl$e.errors.exception({header:"ArrayBuffer",message:"SharedArrayBuffer is not allowed."});return e},webidl$e.converters.DataView=function(e,t={}){if("Object"!==webidl$e.util.Type(e)||!types$4.isDataView(e))throw webidl$e.errors.exception({header:"DataView",message:"Object is not a DataView."});if(!1===t.allowShared&&types$4.isSharedArrayBuffer(e.buffer))throw webidl$e.errors.exception({header:"ArrayBuffer",message:"SharedArrayBuffer is not allowed."});return e},webidl$e.converters.BufferSource=function(e,t={}){if(types$4.isAnyArrayBuffer(e))return webidl$e.converters.ArrayBuffer(e,t);if(types$4.isTypedArray(e))return webidl$e.converters.TypedArray(e,e.constructor);if(types$4.isDataView(e))return webidl$e.converters.DataView(e,t);throw new TypeError(`Could not convert ${e} to a BufferSource.`)},webidl$e.converters["sequence<ByteString>"]=webidl$e.sequenceConverter(webidl$e.converters.ByteString),webidl$e.converters["sequence<sequence<ByteString>>"]=webidl$e.sequenceConverter(webidl$e.converters["sequence<ByteString>"]),webidl$e.converters["record<ByteString, ByteString>"]=webidl$e.recordConverter(webidl$e.converters.ByteString,webidl$e.converters.ByteString);var webidl_1={webidl:webidl$e};const assert$f=require$$0__default.default,{atob:atob$1}=require$$7__default.default,{isomorphicDecode:isomorphicDecode}=util$k,encoder=new TextEncoder,HTTP_TOKEN_CODEPOINTS=/^[!#$%&'*+-.^_|~A-Za-z0-9]+$/,HTTP_WHITESPACE_REGEX=/(\u000A|\u000D|\u0009|\u0020)/,HTTP_QUOTED_STRING_TOKENS=/[\u0009|\u0020-\u007E|\u0080-\u00FF]/;function dataURLProcessor$1(e){assert$f("data:"===e.protocol);let t=URLSerializer$4(e,!0);t=t.slice(5);const r={position:0};let n=collectASequenceOfCodePointsFast(",",t,r);const o=n.length;if(n=removeASCIIWhitespace(n,!0,!0),r.position>=t.length)return"failure";r.position++;let i=stringPercentDecode(t.slice(o+1));if(/;(\u0020){0,}base64$/i.test(n)){if(i=forgivingBase64(isomorphicDecode(i)),"failure"===i)return"failure";n=n.slice(0,-6),n=n.replace(/(\u0020)+$/,""),n=n.slice(0,-1)}n.startsWith(";")&&(n="text/plain"+n);let s=parseMIMEType$3(n);return"failure"===s&&(s=parseMIMEType$3("text/plain;charset=US-ASCII")),{mimeType:s,body:i}}function URLSerializer$4(e,t=!1){const r=e.href;if(!t)return r;const n=r.lastIndexOf("#");return-1===n?r:r.slice(0,n)}function collectASequenceOfCodePoints(e,t,r){let n="";for(;r.position<t.length&&e(t[r.position]);)n+=t[r.position],r.position++;return n}function collectASequenceOfCodePointsFast(e,t,r){const n=t.indexOf(e,r.position),o=r.position;return-1===n?(r.position=t.length,t.slice(o)):(r.position=n,t.slice(o,r.position))}function stringPercentDecode(e){return percentDecode(encoder.encode(e))}function percentDecode(e){const t=[];for(let r=0;r<e.length;r++){const n=e[r];if(37!==n)t.push(n);else if(37!==n||/^[0-9A-Fa-f]{2}$/i.test(String.fromCharCode(e[r+1],e[r+2]))){const n=String.fromCharCode(e[r+1],e[r+2]),o=Number.parseInt(n,16);t.push(o),r+=2}else t.push(37)}return Uint8Array.from(t)}function parseMIMEType$3(e){const t={position:0},r=collectASequenceOfCodePointsFast("/",e=removeHTTPWhitespace(e,!0,!0),t);if(0===r.length||!HTTP_TOKEN_CODEPOINTS.test(r))return"failure";if(t.position>e.length)return"failure";t.position++;let n=collectASequenceOfCodePointsFast(";",e,t);if(n=removeHTTPWhitespace(n,!1,!0),0===n.length||!HTTP_TOKEN_CODEPOINTS.test(n))return"failure";const o=r.toLowerCase(),i=n.toLowerCase(),s={type:o,subtype:i,parameters:new Map,essence:`${o}/${i}`};for(;t.position<e.length;){t.position++,collectASequenceOfCodePoints((e=>HTTP_WHITESPACE_REGEX.test(e)),e,t);let r=collectASequenceOfCodePoints((e=>";"!==e&&"="!==e),e,t);if(r=r.toLowerCase(),t.position<e.length){if(";"===e[t.position])continue;t.position++}if(t.position>e.length)break;let n=null;if('"'===e[t.position])n=collectAnHTTPQuotedString(e,t,!0),collectASequenceOfCodePointsFast(";",e,t);else if(n=collectASequenceOfCodePointsFast(";",e,t),n=removeHTTPWhitespace(n,!1,!0),0===n.length)continue;0===r.length||!HTTP_TOKEN_CODEPOINTS.test(r)||0!==n.length&&!HTTP_QUOTED_STRING_TOKENS.test(n)||s.parameters.has(r)||s.parameters.set(r,n)}return s}function forgivingBase64(e){if((e=e.replace(/[\u0009\u000A\u000C\u000D\u0020]/g,"")).length%4==0&&(e=e.replace(/=?=$/,"")),e.length%4==1)return"failure";if(/[^+/0-9A-Za-z]/.test(e))return"failure";const t=atob$1(e),r=new Uint8Array(t.length);for(let e=0;e<t.length;e++)r[e]=t.charCodeAt(e);return r}function collectAnHTTPQuotedString(e,t,r){const n=t.position;let o="";for(assert$f('"'===e[t.position]),t.position++;o+=collectASequenceOfCodePoints((e=>'"'!==e&&"\\"!==e),e,t),!(t.position>=e.length);){const r=e[t.position];if(t.position++,"\\"!==r){assert$f('"'===r);break}if(t.position>=e.length){o+="\\";break}o+=e[t.position],t.position++}return r?o:e.slice(n,t.position)}function serializeAMimeType$4(e){assert$f("failure"!==e);const{parameters:t,essence:r}=e;let n=r;for(let[e,r]of t.entries())n+=";",n+=e,n+="=",HTTP_TOKEN_CODEPOINTS.test(r)||(r=r.replace(/(\\|")/g,"\\$1"),r='"'+r,r+='"'),n+=r;return n}function isHTTPWhiteSpace(e){return"\r"===e||"\n"===e||"\t"===e||" "===e}function removeHTTPWhitespace(e,t=!0,r=!0){let n=0,o=e.length-1;if(t)for(;n<e.length&&isHTTPWhiteSpace(e[n]);n++);if(r)for(;o>0&&isHTTPWhiteSpace(e[o]);o--);return e.slice(n,o+1)}function isASCIIWhitespace(e){return"\r"===e||"\n"===e||"\t"===e||"\f"===e||" "===e}function removeASCIIWhitespace(e,t=!0,r=!0){let n=0,o=e.length-1;if(t)for(;n<e.length&&isASCIIWhitespace(e[n]);n++);if(r)for(;o>0&&isASCIIWhitespace(e[o]);o--);return e.slice(n,o+1)}var dataURL={dataURLProcessor:dataURLProcessor$1,URLSerializer:URLSerializer$4,collectASequenceOfCodePoints:collectASequenceOfCodePoints,collectASequenceOfCodePointsFast:collectASequenceOfCodePointsFast,stringPercentDecode:stringPercentDecode,parseMIMEType:parseMIMEType$3,collectAnHTTPQuotedString:collectAnHTTPQuotedString,serializeAMimeType:serializeAMimeType$4};const{Blob:Blob$4,File:NativeFile$2}=require$$7__default.default,{types:types$3}=require$$0__default$2.default,{kState:kState$9}=symbols$3,{isBlobLike:isBlobLike$5}=util$k,{webidl:webidl$d}=webidl_1,{parseMIMEType:parseMIMEType$2,serializeAMimeType:serializeAMimeType$3}=dataURL,{kEnumerableProperty:kEnumerableProperty$8}=util$l;class File$3 extends Blob$4{constructor(e,t,r={}){webidl$d.argumentLengthCheck(arguments,2,{header:"File constructor"}),e=webidl$d.converters["sequence<BlobPart>"](e);const n=t=webidl$d.converters.USVString(t);let o,i=(r=webidl$d.converters.FilePropertyBag(r)).type;e:{if(i){if(i=parseMIMEType$2(i),"failure"===i){i="";break e}i=serializeAMimeType$3(i).toLowerCase()}o=r.lastModified}super(processBlobParts(e,r),{type:i}),this[kState$9]={name:n,lastModified:o,type:i}}get name(){return webidl$d.brandCheck(this,File$3),this[kState$9].name}get lastModified(){return webidl$d.brandCheck(this,File$3),this[kState$9].lastModified}get type(){return webidl$d.brandCheck(this,File$3),this[kState$9].type}}class FileLike$1{constructor(e,t,r={}){const n=t,o=r.type,i=r.lastModified??Date.now();this[kState$9]={blobLike:e,name:n,type:o,lastModified:i}}stream(...e){return webidl$d.brandCheck(this,FileLike$1),this[kState$9].blobLike.stream(...e)}arrayBuffer(...e){return webidl$d.brandCheck(this,FileLike$1),this[kState$9].blobLike.arrayBuffer(...e)}slice(...e){return webidl$d.brandCheck(this,FileLike$1),this[kState$9].blobLike.slice(...e)}text(...e){return webidl$d.brandCheck(this,FileLike$1),this[kState$9].blobLike.text(...e)}get size(){return webidl$d.brandCheck(this,FileLike$1),this[kState$9].blobLike.size}get type(){return webidl$d.brandCheck(this,FileLike$1),this[kState$9].blobLike.type}get name(){return webidl$d.brandCheck(this,FileLike$1),this[kState$9].name}get lastModified(){return webidl$d.brandCheck(this,FileLike$1),this[kState$9].lastModified}get[Symbol.toStringTag](){return"File"}}function processBlobParts(e,t){const r=[];for(const n of e)if("string"==typeof n){let e=n;"native"===t.endings&&(e=convertLineEndingsNative(e)),r.push((new TextEncoder).encode(e))}else types$3.isAnyArrayBuffer(n)||types$3.isTypedArray(n)?n.buffer?r.push(new Uint8Array(n.buffer,n.byteOffset,n.byteLength)):r.push(new Uint8Array(n)):isBlobLike$5(n)&&r.push(n);return r}function convertLineEndingsNative(e){let t="\n";return"win32"===process.platform&&(t="\r\n"),e.replace(/\r?\n/g,t)}function isFileLike$1(e){return NativeFile$2&&e instanceof NativeFile$2||e instanceof File$3||e&&("function"==typeof e.stream||"function"==typeof e.arrayBuffer)&&"File"===e[Symbol.toStringTag]}Object.defineProperties(File$3.prototype,{[Symbol.toStringTag]:{value:"File",configurable:!0},name:kEnumerableProperty$8,lastModified:kEnumerableProperty$8}),webidl$d.converters.Blob=webidl$d.interfaceConverter(Blob$4),webidl$d.converters.BlobPart=function(e,t){if("Object"===webidl$d.util.Type(e)){if(isBlobLike$5(e))return webidl$d.converters.Blob(e,{strict:!1});if(ArrayBuffer.isView(e)||types$3.isAnyArrayBuffer(e))return webidl$d.converters.BufferSource(e,t)}return webidl$d.converters.USVString(e,t)},webidl$d.converters["sequence<BlobPart>"]=webidl$d.sequenceConverter(webidl$d.converters.BlobPart),webidl$d.converters.FilePropertyBag=webidl$d.dictionaryConverter([{key:"lastModified",converter:webidl$d.converters["long long"],get defaultValue(){return Date.now()}},{key:"type",converter:webidl$d.converters.DOMString,defaultValue:""},{key:"endings",converter:e=>("native"!==(e=(e=webidl$d.converters.DOMString(e)).toLowerCase())&&(e="transparent"),e),defaultValue:"transparent"}]);var file={File:File$3,FileLike:FileLike$1,isFileLike:isFileLike$1};const{isBlobLike:isBlobLike$4,toUSVString:toUSVString$2,makeIterator:makeIterator$1}=util$k,{kState:kState$8}=symbols$3,{File:UndiciFile$1,FileLike:FileLike,isFileLike:isFileLike}=file,{webidl:webidl$c}=webidl_1,{Blob:Blob$3,File:NativeFile$1}=require$$7__default.default,File$2=NativeFile$1??UndiciFile$1;class FormData$2{constructor(e){if(void 0!==e)throw webidl$c.errors.conversionFailed({prefix:"FormData constructor",argument:"Argument 1",types:["undefined"]});this[kState$8]=[]}append(e,t,r=void 0){if(webidl$c.brandCheck(this,FormData$2),webidl$c.argumentLengthCheck(arguments,2,{header:"FormData.append"}),3===arguments.length&&!isBlobLike$4(t))throw new TypeError("Failed to execute 'append' on 'FormData': parameter 2 is not of type 'Blob'");const n=makeEntry(e=webidl$c.converters.USVString(e),t=isBlobLike$4(t)?webidl$c.converters.Blob(t,{strict:!1}):webidl$c.converters.USVString(t),r=3===arguments.length?webidl$c.converters.USVString(r):void 0);this[kState$8].push(n)}delete(e){webidl$c.brandCheck(this,FormData$2),webidl$c.argumentLengthCheck(arguments,1,{header:"FormData.delete"}),e=webidl$c.converters.USVString(e),this[kState$8]=this[kState$8].filter((t=>t.name!==e))}get(e){webidl$c.brandCheck(this,FormData$2),webidl$c.argumentLengthCheck(arguments,1,{header:"FormData.get"}),e=webidl$c.converters.USVString(e);const t=this[kState$8].findIndex((t=>t.name===e));return-1===t?null:this[kState$8][t].value}getAll(e){return webidl$c.brandCheck(this,FormData$2),webidl$c.argumentLengthCheck(arguments,1,{header:"FormData.getAll"}),e=webidl$c.converters.USVString(e),this[kState$8].filter((t=>t.name===e)).map((e=>e.value))}has(e){return webidl$c.brandCheck(this,FormData$2),webidl$c.argumentLengthCheck(arguments,1,{header:"FormData.has"}),e=webidl$c.converters.USVString(e),-1!==this[kState$8].findIndex((t=>t.name===e))}set(e,t,r=void 0){if(webidl$c.brandCheck(this,FormData$2),webidl$c.argumentLengthCheck(arguments,2,{header:"FormData.set"}),3===arguments.length&&!isBlobLike$4(t))throw new TypeError("Failed to execute 'set' on 'FormData': parameter 2 is not of type 'Blob'");e=webidl$c.converters.USVString(e),t=isBlobLike$4(t)?webidl$c.converters.Blob(t,{strict:!1}):webidl$c.converters.USVString(t),r=3===arguments.length?toUSVString$2(r):void 0;const n=makeEntry(e,t,r),o=this[kState$8].findIndex((t=>t.name===e));-1!==o?this[kState$8]=[...this[kState$8].slice(0,o),n,...this[kState$8].slice(o+1).filter((t=>t.name!==e))]:this[kState$8].push(n)}entries(){return webidl$c.brandCheck(this,FormData$2),makeIterator$1((()=>this[kState$8].map((e=>[e.name,e.value]))),"FormData","key+value")}keys(){return webidl$c.brandCheck(this,FormData$2),makeIterator$1((()=>this[kState$8].map((e=>[e.name,e.value]))),"FormData","key")}values(){return webidl$c.brandCheck(this,FormData$2),makeIterator$1((()=>this[kState$8].map((e=>[e.name,e.value]))),"FormData","value")}forEach(e,t=globalThis){if(webidl$c.brandCheck(this,FormData$2),webidl$c.argumentLengthCheck(arguments,1,{header:"FormData.forEach"}),"function"!=typeof e)throw new TypeError("Failed to execute 'forEach' on 'FormData': parameter 1 is not of type 'Function'.");for(const[r,n]of this)e.apply(t,[n,r,this])}}function makeEntry(e,t,r){if(e=Buffer.from(e).toString("utf8"),"string"==typeof t)t=Buffer.from(t).toString("utf8");else if(isFileLike(t)||(t=t instanceof Blob$3?new File$2([t],"blob",{type:t.type}):new FileLike(t,"blob",{type:t.type})),void 0!==r){const e={type:t.type,lastModified:t.lastModified};t=NativeFile$1&&t instanceof NativeFile$1||t instanceof UndiciFile$1?new File$2([t],r,e):new FileLike(t,r,e)}return{name:e,value:t}}FormData$2.prototype[Symbol.iterator]=FormData$2.prototype.entries,Object.defineProperties(FormData$2.prototype,{[Symbol.toStringTag]:{value:"FormData",configurable:!0}});var formdata={FormData:FormData$2};const Busboy=lib,util$j=util$l,{ReadableStreamFrom:ReadableStreamFrom$1,isBlobLike:isBlobLike$3,isReadableStreamLike:isReadableStreamLike,readableStreamClose:readableStreamClose$1,createDeferredPromise:createDeferredPromise$2,fullyReadBody:fullyReadBody$1}=util$k,{FormData:FormData$1}=formdata,{kState:kState$7}=symbols$3,{webidl:webidl$b}=webidl_1,{DOMException:DOMException$5,structuredClone:structuredClone}=constants$3,{Blob:Blob$2,File:NativeFile}=require$$7__default.default,{kBodyUsed:kBodyUsed$1}=symbols$4,assert$e=require$$0__default.default,{isErrored:isErrored$1}=util$l,{isUint8Array:isUint8Array,isArrayBuffer:isArrayBuffer}=require$$5__default.default,{File:UndiciFile}=file,{parseMIMEType:parseMIMEType$1,serializeAMimeType:serializeAMimeType$2}=dataURL;let ReadableStream$2=globalThis.ReadableStream;const File$1=NativeFile??UndiciFile;function extractBody$3(e,t=!1){ReadableStream$2||(ReadableStream$2=require$$13__default.default.ReadableStream);let r=null;r=e instanceof ReadableStream$2?e:isBlobLike$3(e)?e.stream():new ReadableStream$2({async pull(e){e.enqueue("string"==typeof o?(new TextEncoder).encode(o):o),queueMicrotask((()=>readableStreamClose$1(e)))},start(){},type:void 0}),assert$e(isReadableStreamLike(r));let n=null,o=null,i=null,s=null;if("string"==typeof e)o=e,s="text/plain;charset=UTF-8";else if(e instanceof URLSearchParams)o=e.toString(),s="application/x-www-form-urlencoded;charset=UTF-8";else if(isArrayBuffer(e))o=new Uint8Array(e.slice());else if(ArrayBuffer.isView(e))o=new Uint8Array(e.buffer.slice(e.byteOffset,e.byteOffset+e.byteLength));else if(util$j.isFormDataLike(e)){const t=`----formdata-undici-0${`${Math.floor(1e11*Math.random())}`.padStart(11,"0")}`,r=`--${t}\r\nContent-Disposition: form-data`
2
+ /*! formdata-polyfill. MIT License. Jimmy Wärting <https://jimmy.warting.se/opensource> */,A=e=>e.replace(/\n/g,"%0A").replace(/\r/g,"%0D").replace(/"/g,"%22"),a=e=>e.replace(/\r?\n|\r/g,"\r\n"),c=new TextEncoder,u=[],l=new Uint8Array([13,10]);i=0;let d=!1;for(const[t,n]of e)if("string"==typeof n){const e=c.encode(r+`; name="${A(a(t))}"`+`\r\n\r\n${a(n)}\r\n`);u.push(e),i+=e.byteLength}else{const e=c.encode(`${r}; name="${A(a(t))}"`+(n.name?`; filename="${A(n.name)}"`:"")+"\r\n"+`Content-Type: ${n.type||"application/octet-stream"}\r\n\r\n`);u.push(e,n,l),"number"==typeof n.size?i+=e.byteLength+n.size+l.byteLength:d=!0}const g=c.encode(`--${t}--`);u.push(g),i+=g.byteLength,d&&(i=null),o=e,n=async function*(){for(const e of u)e.stream?yield*e.stream():yield e},s="multipart/form-data; boundary="+t}else if(isBlobLike$3(e))o=e,i=e.size,e.type&&(s=e.type);else if("function"==typeof e[Symbol.asyncIterator]){if(t)throw new TypeError("keepalive");if(util$j.isDisturbed(e)||e.locked)throw new TypeError("Response body object should not be disturbed or locked");r=e instanceof ReadableStream$2?e:ReadableStreamFrom$1(e)}if(("string"==typeof o||util$j.isBuffer(o))&&(i=Buffer.byteLength(o)),null!=n){let t;r=new ReadableStream$2({async start(){t=n(e)[Symbol.asyncIterator]()},async pull(e){const{value:n,done:o}=await t.next();return o?queueMicrotask((()=>{e.close()})):isErrored$1(r)||e.enqueue(new Uint8Array(n)),e.desiredSize>0},async cancel(e){await t.return()},type:void 0})}return[{stream:r,source:o,length:i},s]}function safelyExtractBody$1(e,t=!1){return ReadableStream$2||(ReadableStream$2=require$$13__default.default.ReadableStream),e instanceof ReadableStream$2&&(assert$e(!util$j.isDisturbed(e),"The body has already been consumed."),assert$e(!e.locked,"The stream is locked.")),extractBody$3(e,t)}function cloneBody$2(e){const[t,r]=e.stream.tee(),n=structuredClone(r,{transfer:[r]}),[,o]=n.tee();return e.stream=t,{stream:o,length:e.length,source:e.source}}async function*consumeBody(e){if(e)if(isUint8Array(e))yield e;else{const t=e.stream;if(util$j.isDisturbed(t))throw new TypeError("The body has already been consumed.");if(t.locked)throw new TypeError("The stream is locked.");t[kBodyUsed$1]=!0,yield*t}}function throwIfAborted(e){if(e.aborted)throw new DOMException$5("The operation was aborted.","AbortError")}function bodyMixinMethods(e){const t={blob(){return specConsumeBody(this,(e=>{let t=bodyMimeType(this);return"failure"===t?t="":t&&(t=serializeAMimeType$2(t)),new Blob$2([e],{type:t})}),e)},arrayBuffer(){return specConsumeBody(this,(e=>new Uint8Array(e).buffer),e)},text(){return specConsumeBody(this,utf8DecodeBytes,e)},json(){return specConsumeBody(this,parseJSONFromBytes,e)},async formData(){webidl$b.brandCheck(this,e),throwIfAborted(this[kState$7]);const t=this.headers.get("Content-Type");if(/multipart\/form-data/.test(t)){const e={};for(const[t,r]of this.headers)e[t.toLowerCase()]=r;const t=new FormData$1;let r;try{r=Busboy({headers:e,preservePath:!0,defParamCharset:"utf8"})}catch(e){throw new DOMException$5(`${e}`,"AbortError")}r.on("field",((e,r)=>{t.append(e,r)})),r.on("file",((e,r,n)=>{const{filename:o,encoding:i,mimeType:s}=n,A=[];if("base64"===i||"base64"===i.toLowerCase()){let n="";r.on("data",(e=>{n+=e.toString().replace(/[\r\n]/gm,"");const t=n.length-n.length%4;A.push(Buffer.from(n.slice(0,t),"base64")),n=n.slice(t)})),r.on("end",(()=>{A.push(Buffer.from(n,"base64")),t.append(e,new File$1(A,o,{type:s}))}))}else r.on("data",(e=>{A.push(e)})),r.on("end",(()=>{t.append(e,new File$1(A,o,{type:s}))}))}));const n=new Promise(((e,t)=>{r.on("finish",e),r.on("error",(e=>t(new TypeError(e))))}));if(null!==this.body)for await(const e of consumeBody(this[kState$7].body))r.write(e);return r.end(),await n,t}if(/application\/x-www-form-urlencoded/.test(t)){let e;try{let t="";const r=new TextDecoder("utf-8",{ignoreBOM:!0});for await(const e of consumeBody(this[kState$7].body)){if(!isUint8Array(e))throw new TypeError("Expected Uint8Array chunk");t+=r.decode(e,{stream:!0})}t+=r.decode(),e=new URLSearchParams(t)}catch(e){throw Object.assign(new TypeError,{cause:e})}const t=new FormData$1;for(const[r,n]of e)t.append(r,n);return t}throw await Promise.resolve(),throwIfAborted(this[kState$7]),webidl$b.errors.exception({header:`${e.name}.formData`,message:"Could not parse content as FormData."})}};return t}function mixinBody$2(e){Object.assign(e.prototype,bodyMixinMethods(e))}async function specConsumeBody(e,t,r){if(webidl$b.brandCheck(e,r),throwIfAborted(e[kState$7]),bodyUnusable(e[kState$7].body))throw new TypeError("Body is unusable");const n=createDeferredPromise$2(),o=e=>n.reject(e),i=e=>{try{n.resolve(t(e))}catch(e){o(e)}};return null==e[kState$7].body?(i(new Uint8Array),n.promise):(await fullyReadBody$1(e[kState$7].body,i,o),n.promise)}function bodyUnusable(e){return null!=e&&(e.stream.locked||util$j.isDisturbed(e.stream))}function utf8DecodeBytes(e){if(0===e.length)return"";239===e[0]&&187===e[1]&&191===e[2]&&(e=e.subarray(3));return(new TextDecoder).decode(e)}function parseJSONFromBytes(e){return JSON.parse(utf8DecodeBytes(e))}function bodyMimeType(e){const{headersList:t}=e[kState$7],r=t.get("content-type");return null===r?"failure":parseMIMEType$1(r)}var body={extractBody:extractBody$3,safelyExtractBody:safelyExtractBody$1,cloneBody:cloneBody$2,mixinBody:mixinBody$2};const{InvalidArgumentError:InvalidArgumentError$e,NotSupportedError:NotSupportedError$1}=errors$1,assert$d=require$$0__default.default,{kHTTP2BuildRequest:kHTTP2BuildRequest$1,kHTTP2CopyHeaders:kHTTP2CopyHeaders$1,kHTTP1BuildRequest:kHTTP1BuildRequest$1}=symbols$4,util$i=util$l,tokenRegExp=/^[\^_`a-zA-Z\-0-9!#$%&'*+.|~]+$/,headerCharRegex=/[^\t\x20-\x7e\x80-\xff]/,invalidPathRegex=/[^\u0021-\u00ff]/,kHandler=Symbol("handler"),channels$3={};let extractBody$2;try{const e=require("diagnostics_channel");channels$3.create=e.channel("undici:request:create"),channels$3.bodySent=e.channel("undici:request:bodySent"),channels$3.headers=e.channel("undici:request:headers"),channels$3.trailers=e.channel("undici:request:trailers"),channels$3.error=e.channel("undici:request:error")}catch{channels$3.create={hasSubscribers:!1},channels$3.bodySent={hasSubscribers:!1},channels$3.headers={hasSubscribers:!1},channels$3.trailers={hasSubscribers:!1},channels$3.error={hasSubscribers:!1}}class Request$4{constructor(e,{path:t,method:r,body:n,headers:o,query:i,idempotent:s,blocking:A,upgrade:a,headersTimeout:c,bodyTimeout:u,reset:l,throwOnError:d,expectContinue:g},h){if("string"!=typeof t)throw new InvalidArgumentError$e("path must be a string");if("/"!==t[0]&&!t.startsWith("http://")&&!t.startsWith("https://")&&"CONNECT"!==r)throw new InvalidArgumentError$e("path must be an absolute URL or start with a slash");if(null!==invalidPathRegex.exec(t))throw new InvalidArgumentError$e("invalid request path");if("string"!=typeof r)throw new InvalidArgumentError$e("method must be a string");if(null===tokenRegExp.exec(r))throw new InvalidArgumentError$e("invalid request method");if(a&&"string"!=typeof a)throw new InvalidArgumentError$e("upgrade must be a string");if(null!=c&&(!Number.isFinite(c)||c<0))throw new InvalidArgumentError$e("invalid headersTimeout");if(null!=u&&(!Number.isFinite(u)||u<0))throw new InvalidArgumentError$e("invalid bodyTimeout");if(null!=l&&"boolean"!=typeof l)throw new InvalidArgumentError$e("invalid reset");if(null!=g&&"boolean"!=typeof g)throw new InvalidArgumentError$e("invalid expectContinue");if(this.headersTimeout=c,this.bodyTimeout=u,this.throwOnError=!0===d,this.method=r,null==n)this.body=null;else if(util$i.isStream(n))this.body=n;else if(util$i.isBuffer(n))this.body=n.byteLength?n:null;else if(ArrayBuffer.isView(n))this.body=n.buffer.byteLength?Buffer.from(n.buffer,n.byteOffset,n.byteLength):null;else if(n instanceof ArrayBuffer)this.body=n.byteLength?Buffer.from(n):null;else if("string"==typeof n)this.body=n.length?Buffer.from(n):null;else{if(!(util$i.isFormDataLike(n)||util$i.isIterable(n)||util$i.isBlobLike(n)))throw new InvalidArgumentError$e("body must be a string, a Buffer, a Readable stream, an iterable, or an async iterable");this.body=n}if(this.completed=!1,this.aborted=!1,this.upgrade=a||null,this.path=i?util$i.buildURL(t,i):t,this.origin=e,this.idempotent=null==s?"HEAD"===r||"GET"===r:s,this.blocking=null!=A&&A,this.reset=null==l?null:l,this.host=null,this.contentLength=null,this.contentType=null,this.headers="",this.expectContinue=null!=g&&g,Array.isArray(o)){if(o.length%2!=0)throw new InvalidArgumentError$e("headers array must be even");for(let e=0;e<o.length;e+=2)processHeader(this,o[e],o[e+1])}else if(o&&"object"==typeof o){const e=Object.keys(o);for(let t=0;t<e.length;t++){const r=e[t];processHeader(this,r,o[r])}}else if(null!=o)throw new InvalidArgumentError$e("headers must be an object or an array");if(util$i.isFormDataLike(this.body)){if(util$i.nodeMajor<16||16===util$i.nodeMajor&&util$i.nodeMinor<8)throw new InvalidArgumentError$e("Form-Data bodies are only supported in node v16.8 and newer.");extractBody$2||(extractBody$2=body.extractBody);const[e,t]=extractBody$2(n);null==this.contentType&&(this.contentType=t,this.headers+=`content-type: ${t}\r\n`),this.body=e.stream,this.contentLength=e.length}else util$i.isBlobLike(n)&&null==this.contentType&&n.type&&(this.contentType=n.type,this.headers+=`content-type: ${n.type}\r\n`);util$i.validateHandler(h,r,a),this.servername=util$i.getServerName(this.host),this[kHandler]=h,channels$3.create.hasSubscribers&&channels$3.create.publish({request:this})}onBodySent(e){if(this[kHandler].onBodySent)try{this[kHandler].onBodySent(e)}catch(e){this.onError(e)}}onRequestSent(){channels$3.bodySent.hasSubscribers&&channels$3.bodySent.publish({request:this})}onConnect(e){return assert$d(!this.aborted),assert$d(!this.completed),this[kHandler].onConnect(e)}onHeaders(e,t,r,n){return assert$d(!this.aborted),assert$d(!this.completed),channels$3.headers.hasSubscribers&&channels$3.headers.publish({request:this,response:{statusCode:e,headers:t,statusText:n}}),this[kHandler].onHeaders(e,t,r,n)}onData(e){return assert$d(!this.aborted),assert$d(!this.completed),this[kHandler].onData(e)}onUpgrade(e,t,r){return assert$d(!this.aborted),assert$d(!this.completed),this[kHandler].onUpgrade(e,t,r)}onComplete(e){return assert$d(!this.aborted),this.completed=!0,channels$3.trailers.hasSubscribers&&channels$3.trailers.publish({request:this,trailers:e}),this[kHandler].onComplete(e)}onError(e){if(channels$3.error.hasSubscribers&&channels$3.error.publish({request:this,error:e}),!this.aborted)return this.aborted=!0,this[kHandler].onError(e)}addHeader(e,t){return processHeader(this,e,t),this}static[kHTTP1BuildRequest$1](e,t,r){return new Request$4(e,t,r)}static[kHTTP2BuildRequest$1](e,t,r){const n=t.headers;t={...t,headers:null};const o=new Request$4(e,t,r);if(o.headers={},Array.isArray(n)){if(n.length%2!=0)throw new InvalidArgumentError$e("headers array must be even");for(let e=0;e<n.length;e+=2)processHeader(o,n[e],n[e+1],!0)}else if(n&&"object"==typeof n){const e=Object.keys(n);for(let t=0;t<e.length;t++){const r=e[t];processHeader(o,r,n[r],!0)}}else if(null!=n)throw new InvalidArgumentError$e("headers must be an object or an array");return o}static[kHTTP2CopyHeaders$1](e){const t=e.split("\r\n"),r={};for(const e of t){const[t,n]=e.split(": ");r[t]?r[t]+=`,${n}`:r[t]=n}return r}}function processHeaderValue(e,t,r){if(t&&"object"==typeof t)throw new InvalidArgumentError$e(`invalid ${e} header`);if(t=null!=t?`${t}`:"",null!==headerCharRegex.exec(t))throw new InvalidArgumentError$e(`invalid ${e} header`);return r?t:`${e}: ${t}\r\n`}function processHeader(e,t,r,n=!1){if(r&&"object"==typeof r&&!Array.isArray(r))throw new InvalidArgumentError$e(`invalid ${t} header`);if(void 0!==r)if(null===e.host&&4===t.length&&"host"===t.toLowerCase()){if(null!==headerCharRegex.exec(r))throw new InvalidArgumentError$e(`invalid ${t} header`);e.host=r}else if(null===e.contentLength&&14===t.length&&"content-length"===t.toLowerCase()){if(e.contentLength=parseInt(r,10),!Number.isFinite(e.contentLength))throw new InvalidArgumentError$e("invalid content-length header")}else if(null===e.contentType&&12===t.length&&"content-type"===t.toLowerCase())e.contentType=r,e.headers+=processHeaderValue(t,r);else{if(17===t.length&&"transfer-encoding"===t.toLowerCase())throw new InvalidArgumentError$e("invalid transfer-encoding header");if(10===t.length&&"connection"===t.toLowerCase()){const t="string"==typeof r?r.toLowerCase():null;if("close"!==t&&"keep-alive"!==t)throw new InvalidArgumentError$e("invalid connection header");"close"===t&&(e.reset=!0)}else{if(10===t.length&&"keep-alive"===t.toLowerCase())throw new InvalidArgumentError$e("invalid keep-alive header");if(7===t.length&&"upgrade"===t.toLowerCase())throw new InvalidArgumentError$e("invalid upgrade header");if(6===t.length&&"expect"===t.toLowerCase())throw new NotSupportedError$1("expect header not supported");if(null===tokenRegExp.exec(t))throw new InvalidArgumentError$e("invalid header key");if(Array.isArray(r))for(let o=0;o<r.length;o++)n?e.headers[t]?e.headers[t]+=`,${processHeaderValue(t,r[o],n)}`:e.headers[t]=processHeaderValue(t,r[o],n):e.headers+=processHeaderValue(t,r[o]);else n?e.headers[t]=processHeaderValue(t,r,n):e.headers+=processHeaderValue(t,r)}}}var request$2=Request$4;const EventEmitter=require$$10__default.default;class Dispatcher$2 extends EventEmitter{dispatch(){throw new Error("not implemented")}close(){throw new Error("not implemented")}destroy(){throw new Error("not implemented")}}var dispatcher=Dispatcher$2;const Dispatcher$1=dispatcher,{ClientDestroyedError:ClientDestroyedError$1,ClientClosedError:ClientClosedError,InvalidArgumentError:InvalidArgumentError$d}=errors$1,{kDestroy:kDestroy$3,kClose:kClose$3,kDispatch:kDispatch$3,kInterceptors:kInterceptors$3}=symbols$4,kDestroyed=Symbol("destroyed"),kClosed=Symbol("closed"),kOnDestroyed=Symbol("onDestroyed"),kOnClosed=Symbol("onClosed"),kInterceptedDispatch=Symbol("Intercepted Dispatch");class DispatcherBase$3 extends Dispatcher$1{constructor(){super(),this[kDestroyed]=!1,this[kOnDestroyed]=null,this[kClosed]=!1,this[kOnClosed]=[]}get destroyed(){return this[kDestroyed]}get closed(){return this[kClosed]}get interceptors(){return this[kInterceptors$3]}set interceptors(e){if(e)for(let t=e.length-1;t>=0;t--){if("function"!=typeof this[kInterceptors$3][t])throw new InvalidArgumentError$d("interceptor must be an function")}this[kInterceptors$3]=e}close(e){if(void 0===e)return new Promise(((e,t)=>{this.close(((r,n)=>r?t(r):e(n)))}));if("function"!=typeof e)throw new InvalidArgumentError$d("invalid callback");if(this[kDestroyed])return void queueMicrotask((()=>e(new ClientDestroyedError$1,null)));if(this[kClosed])return void(this[kOnClosed]?this[kOnClosed].push(e):queueMicrotask((()=>e(null,null))));this[kClosed]=!0,this[kOnClosed].push(e);const t=()=>{const e=this[kOnClosed];this[kOnClosed]=null;for(let t=0;t<e.length;t++)e[t](null,null)};this[kClose$3]().then((()=>this.destroy())).then((()=>{queueMicrotask(t)}))}destroy(e,t){if("function"==typeof e&&(t=e,e=null),void 0===t)return new Promise(((t,r)=>{this.destroy(e,((e,n)=>e?r(e):t(n)))}));if("function"!=typeof t)throw new InvalidArgumentError$d("invalid callback");if(this[kDestroyed])return void(this[kOnDestroyed]?this[kOnDestroyed].push(t):queueMicrotask((()=>t(null,null))));e||(e=new ClientDestroyedError$1),this[kDestroyed]=!0,this[kOnDestroyed]=this[kOnDestroyed]||[],this[kOnDestroyed].push(t);const r=()=>{const e=this[kOnDestroyed];this[kOnDestroyed]=null;for(let t=0;t<e.length;t++)e[t](null,null)};this[kDestroy$3](e).then((()=>{queueMicrotask(r)}))}[kInterceptedDispatch](e,t){if(!this[kInterceptors$3]||0===this[kInterceptors$3].length)return this[kInterceptedDispatch]=this[kDispatch$3],this[kDispatch$3](e,t);let r=this[kDispatch$3].bind(this);for(let e=this[kInterceptors$3].length-1;e>=0;e--)r=this[kInterceptors$3][e](r);return this[kInterceptedDispatch]=r,r(e,t)}dispatch(e,t){if(!t||"object"!=typeof t)throw new InvalidArgumentError$d("handler must be an object");try{if(!e||"object"!=typeof e)throw new InvalidArgumentError$d("opts must be an object.");if(this[kDestroyed]||this[kOnDestroyed])throw new ClientDestroyedError$1;if(this[kClosed])throw new ClientClosedError;return this[kInterceptedDispatch](e,t)}catch(e){if("function"!=typeof t.onError)throw new InvalidArgumentError$d("invalid onError method");return t.onError(e),!1}}}var dispatcherBase=DispatcherBase$3;const net$1=require$$4__default.default,assert$c=require$$0__default.default,util$h=util$l,{InvalidArgumentError:InvalidArgumentError$c,ConnectTimeoutError:ConnectTimeoutError}=errors$1;let tls,SessionCache;function buildConnector$2({allowH2:e,maxCachedSessions:t,socketPath:r,timeout:n,...o}){if(null!=t&&(!Number.isInteger(t)||t<0))throw new InvalidArgumentError$c("maxCachedSessions must be a positive integer or zero");const i={path:r,...o},s=new SessionCache(null==t?100:t);return n=null==n?1e4:n,e=null!=e&&e,function({hostname:t,host:r,protocol:o,port:A,servername:a,localAddress:c,httpSocket:u},l){let d;if("https:"===o){tls||(tls=require$$4__default$1.default);const n=(a=a||i.servername||util$h.getServerName(r)||null)||t,o=s.get(n)||null;assert$c(n),d=tls.connect({highWaterMark:16384,...i,servername:a,session:o,localAddress:c,ALPNProtocols:e?["http/1.1","h2"]:["http/1.1"],socket:u,port:A||443,host:t}),d.on("session",(function(e){s.set(n,e)}))}else assert$c(!u,"httpSocket can only be sent on TLS update"),d=net$1.connect({highWaterMark:65536,...i,localAddress:c,port:A||80,host:t});if(null==i.keepAlive||i.keepAlive){const e=void 0===i.keepAliveInitialDelay?6e4:i.keepAliveInitialDelay;d.setKeepAlive(!0,e)}const g=setupTimeout((()=>onConnectTimeout(d)),n);return d.setNoDelay(!0).once("https:"===o?"secureConnect":"connect",(function(){if(g(),l){const e=l;l=null,e(null,this)}})).on("error",(function(e){if(g(),l){const t=l;l=null,t(e)}})),d}}function setupTimeout(e,t){if(!t)return()=>{};let r=null,n=null;const o=setTimeout((()=>{r=setImmediate((()=>{"win32"===process.platform?n=setImmediate((()=>e())):e()}))}),t);return()=>{clearTimeout(o),clearImmediate(r),clearImmediate(n)}}function onConnectTimeout(e){util$h.destroy(e,new ConnectTimeoutError)}SessionCache=commonjsGlobal.FinalizationRegistry?class{constructor(e){this._maxCachedSessions=e,this._sessionCache=new Map,this._sessionRegistry=new commonjsGlobal.FinalizationRegistry((e=>{if(this._sessionCache.size<this._maxCachedSessions)return;const t=this._sessionCache.get(e);void 0!==t&&void 0===t.deref()&&this._sessionCache.delete(e)}))}get(e){const t=this._sessionCache.get(e);return t?t.deref():null}set(e,t){0!==this._maxCachedSessions&&(this._sessionCache.set(e,new WeakRef(t)),this._sessionRegistry.register(t,e))}}:class{constructor(e){this._maxCachedSessions=e,this._sessionCache=new Map}get(e){return this._sessionCache.get(e)}set(e,t){if(0!==this._maxCachedSessions){if(this._sessionCache.size>=this._maxCachedSessions){const{value:e}=this._sessionCache.keys().next();this._sessionCache.delete(e)}this._sessionCache.set(e,t)}}};var connect$2=buildConnector$2,constants$2={},utils={};function enumToMap(e){const t={};return Object.keys(e).forEach((r=>{const n=e[r];"number"==typeof n&&(t[r]=n)})),t}Object.defineProperty(utils,"__esModule",{value:!0}),utils.enumToMap=void 0,utils.enumToMap=enumToMap,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.SPECIAL_HEADERS=e.HEADER_STATE=e.MINOR=e.MAJOR=e.CONNECTION_TOKEN_CHARS=e.HEADER_CHARS=e.TOKEN=e.STRICT_TOKEN=e.HEX=e.URL_CHAR=e.STRICT_URL_CHAR=e.USERINFO_CHARS=e.MARK=e.ALPHANUM=e.NUM=e.HEX_MAP=e.NUM_MAP=e.ALPHA=e.FINISH=e.H_METHOD_MAP=e.METHOD_MAP=e.METHODS_RTSP=e.METHODS_ICE=e.METHODS_HTTP=e.METHODS=e.LENIENT_FLAGS=e.FLAGS=e.TYPE=e.ERROR=void 0;const t=utils;var r,n,o,i,s,A;!function(e){e[e.OK=0]="OK",e[e.INTERNAL=1]="INTERNAL",e[e.STRICT=2]="STRICT",e[e.LF_EXPECTED=3]="LF_EXPECTED",e[e.UNEXPECTED_CONTENT_LENGTH=4]="UNEXPECTED_CONTENT_LENGTH",e[e.CLOSED_CONNECTION=5]="CLOSED_CONNECTION",e[e.INVALID_METHOD=6]="INVALID_METHOD",e[e.INVALID_URL=7]="INVALID_URL",e[e.INVALID_CONSTANT=8]="INVALID_CONSTANT",e[e.INVALID_VERSION=9]="INVALID_VERSION",e[e.INVALID_HEADER_TOKEN=10]="INVALID_HEADER_TOKEN",e[e.INVALID_CONTENT_LENGTH=11]="INVALID_CONTENT_LENGTH",e[e.INVALID_CHUNK_SIZE=12]="INVALID_CHUNK_SIZE",e[e.INVALID_STATUS=13]="INVALID_STATUS",e[e.INVALID_EOF_STATE=14]="INVALID_EOF_STATE",e[e.INVALID_TRANSFER_ENCODING=15]="INVALID_TRANSFER_ENCODING",e[e.CB_MESSAGE_BEGIN=16]="CB_MESSAGE_BEGIN",e[e.CB_HEADERS_COMPLETE=17]="CB_HEADERS_COMPLETE",e[e.CB_MESSAGE_COMPLETE=18]="CB_MESSAGE_COMPLETE",e[e.CB_CHUNK_HEADER=19]="CB_CHUNK_HEADER",e[e.CB_CHUNK_COMPLETE=20]="CB_CHUNK_COMPLETE",e[e.PAUSED=21]="PAUSED",e[e.PAUSED_UPGRADE=22]="PAUSED_UPGRADE",e[e.PAUSED_H2_UPGRADE=23]="PAUSED_H2_UPGRADE",e[e.USER=24]="USER"}(e.ERROR||(e.ERROR={})),(r=e.TYPE||(e.TYPE={}))[r.BOTH=0]="BOTH",r[r.REQUEST=1]="REQUEST",r[r.RESPONSE=2]="RESPONSE",(n=e.FLAGS||(e.FLAGS={}))[n.CONNECTION_KEEP_ALIVE=1]="CONNECTION_KEEP_ALIVE",n[n.CONNECTION_CLOSE=2]="CONNECTION_CLOSE",n[n.CONNECTION_UPGRADE=4]="CONNECTION_UPGRADE",n[n.CHUNKED=8]="CHUNKED",n[n.UPGRADE=16]="UPGRADE",n[n.CONTENT_LENGTH=32]="CONTENT_LENGTH",n[n.SKIPBODY=64]="SKIPBODY",n[n.TRAILING=128]="TRAILING",n[n.TRANSFER_ENCODING=512]="TRANSFER_ENCODING",(o=e.LENIENT_FLAGS||(e.LENIENT_FLAGS={}))[o.HEADERS=1]="HEADERS",o[o.CHUNKED_LENGTH=2]="CHUNKED_LENGTH",o[o.KEEP_ALIVE=4]="KEEP_ALIVE",function(e){e[e.DELETE=0]="DELETE",e[e.GET=1]="GET",e[e.HEAD=2]="HEAD",e[e.POST=3]="POST",e[e.PUT=4]="PUT",e[e.CONNECT=5]="CONNECT",e[e.OPTIONS=6]="OPTIONS",e[e.TRACE=7]="TRACE",e[e.COPY=8]="COPY",e[e.LOCK=9]="LOCK",e[e.MKCOL=10]="MKCOL",e[e.MOVE=11]="MOVE",e[e.PROPFIND=12]="PROPFIND",e[e.PROPPATCH=13]="PROPPATCH",e[e.SEARCH=14]="SEARCH",e[e.UNLOCK=15]="UNLOCK",e[e.BIND=16]="BIND",e[e.REBIND=17]="REBIND",e[e.UNBIND=18]="UNBIND",e[e.ACL=19]="ACL",e[e.REPORT=20]="REPORT",e[e.MKACTIVITY=21]="MKACTIVITY",e[e.CHECKOUT=22]="CHECKOUT",e[e.MERGE=23]="MERGE",e[e["M-SEARCH"]=24]="M-SEARCH",e[e.NOTIFY=25]="NOTIFY",e[e.SUBSCRIBE=26]="SUBSCRIBE",e[e.UNSUBSCRIBE=27]="UNSUBSCRIBE",e[e.PATCH=28]="PATCH",e[e.PURGE=29]="PURGE",e[e.MKCALENDAR=30]="MKCALENDAR",e[e.LINK=31]="LINK",e[e.UNLINK=32]="UNLINK",e[e.SOURCE=33]="SOURCE",e[e.PRI=34]="PRI",e[e.DESCRIBE=35]="DESCRIBE",e[e.ANNOUNCE=36]="ANNOUNCE",e[e.SETUP=37]="SETUP",e[e.PLAY=38]="PLAY",e[e.PAUSE=39]="PAUSE",e[e.TEARDOWN=40]="TEARDOWN",e[e.GET_PARAMETER=41]="GET_PARAMETER",e[e.SET_PARAMETER=42]="SET_PARAMETER",e[e.REDIRECT=43]="REDIRECT",e[e.RECORD=44]="RECORD",e[e.FLUSH=45]="FLUSH"}(i=e.METHODS||(e.METHODS={})),e.METHODS_HTTP=[i.DELETE,i.GET,i.HEAD,i.POST,i.PUT,i.CONNECT,i.OPTIONS,i.TRACE,i.COPY,i.LOCK,i.MKCOL,i.MOVE,i.PROPFIND,i.PROPPATCH,i.SEARCH,i.UNLOCK,i.BIND,i.REBIND,i.UNBIND,i.ACL,i.REPORT,i.MKACTIVITY,i.CHECKOUT,i.MERGE,i["M-SEARCH"],i.NOTIFY,i.SUBSCRIBE,i.UNSUBSCRIBE,i.PATCH,i.PURGE,i.MKCALENDAR,i.LINK,i.UNLINK,i.PRI,i.SOURCE],e.METHODS_ICE=[i.SOURCE],e.METHODS_RTSP=[i.OPTIONS,i.DESCRIBE,i.ANNOUNCE,i.SETUP,i.PLAY,i.PAUSE,i.TEARDOWN,i.GET_PARAMETER,i.SET_PARAMETER,i.REDIRECT,i.RECORD,i.FLUSH,i.GET,i.POST],e.METHOD_MAP=t.enumToMap(i),e.H_METHOD_MAP={},Object.keys(e.METHOD_MAP).forEach((t=>{/^H/.test(t)&&(e.H_METHOD_MAP[t]=e.METHOD_MAP[t])})),(s=e.FINISH||(e.FINISH={}))[s.SAFE=0]="SAFE",s[s.SAFE_WITH_CB=1]="SAFE_WITH_CB",s[s.UNSAFE=2]="UNSAFE",e.ALPHA=[];for(let t="A".charCodeAt(0);t<="Z".charCodeAt(0);t++)e.ALPHA.push(String.fromCharCode(t)),e.ALPHA.push(String.fromCharCode(t+32));e.NUM_MAP={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9},e.HEX_MAP={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,A:10,B:11,C:12,D:13,E:14,F:15,a:10,b:11,c:12,d:13,e:14,f:15},e.NUM=["0","1","2","3","4","5","6","7","8","9"],e.ALPHANUM=e.ALPHA.concat(e.NUM),e.MARK=["-","_",".","!","~","*","'","(",")"],e.USERINFO_CHARS=e.ALPHANUM.concat(e.MARK).concat(["%",";",":","&","=","+","$",","]),e.STRICT_URL_CHAR=["!",'"',"$","%","&","'","(",")","*","+",",","-",".","/",":",";","<","=",">","@","[","\\","]","^","_","`","{","|","}","~"].concat(e.ALPHANUM),e.URL_CHAR=e.STRICT_URL_CHAR.concat(["\t","\f"]);for(let t=128;t<=255;t++)e.URL_CHAR.push(t);e.HEX=e.NUM.concat(["a","b","c","d","e","f","A","B","C","D","E","F"]),e.STRICT_TOKEN=["!","#","$","%","&","'","*","+","-",".","^","_","`","|","~"].concat(e.ALPHANUM),e.TOKEN=e.STRICT_TOKEN.concat([" "]),e.HEADER_CHARS=["\t"];for(let t=32;t<=255;t++)127!==t&&e.HEADER_CHARS.push(t);e.CONNECTION_TOKEN_CHARS=e.HEADER_CHARS.filter((e=>44!==e)),e.MAJOR=e.NUM_MAP,e.MINOR=e.MAJOR,function(e){e[e.GENERAL=0]="GENERAL",e[e.CONNECTION=1]="CONNECTION",e[e.CONTENT_LENGTH=2]="CONTENT_LENGTH",e[e.TRANSFER_ENCODING=3]="TRANSFER_ENCODING",e[e.UPGRADE=4]="UPGRADE",e[e.CONNECTION_KEEP_ALIVE=5]="CONNECTION_KEEP_ALIVE",e[e.CONNECTION_CLOSE=6]="CONNECTION_CLOSE",e[e.CONNECTION_UPGRADE=7]="CONNECTION_UPGRADE",e[e.TRANSFER_ENCODING_CHUNKED=8]="TRANSFER_ENCODING_CHUNKED"}(A=e.HEADER_STATE||(e.HEADER_STATE={})),e.SPECIAL_HEADERS={connection:A.CONNECTION,"content-length":A.CONTENT_LENGTH,"proxy-connection":A.CONNECTION,"transfer-encoding":A.TRANSFER_ENCODING,upgrade:A.UPGRADE}}(constants$2);const util$g=util$l,{kBodyUsed:kBodyUsed}=symbols$4,assert$b=require$$0__default.default,{InvalidArgumentError:InvalidArgumentError$b}=errors$1,EE$1=require$$10__default.default,redirectableStatusCodes=[300,301,302,303,307,308],kBody$1=Symbol("body");class BodyAsyncIterable{constructor(e){this[kBody$1]=e,this[kBodyUsed]=!1}async*[Symbol.asyncIterator](){assert$b(!this[kBodyUsed],"disturbed"),this[kBodyUsed]=!0,yield*this[kBody$1]}}class RedirectHandler$1{constructor(e,t,r,n){if(null!=t&&(!Number.isInteger(t)||t<0))throw new InvalidArgumentError$b("maxRedirections must be a positive number");util$g.validateHandler(n,r.method,r.upgrade),this.dispatch=e,this.location=null,this.abort=null,this.opts={...r,maxRedirections:0},this.maxRedirections=t,this.handler=n,this.history=[],util$g.isStream(this.opts.body)?(0===util$g.bodyLength(this.opts.body)&&this.opts.body.on("data",(function(){assert$b(!1)})),"boolean"!=typeof this.opts.body.readableDidRead&&(this.opts.body[kBodyUsed]=!1,EE$1.prototype.on.call(this.opts.body,"data",(function(){this[kBodyUsed]=!0})))):(this.opts.body&&"function"==typeof this.opts.body.pipeTo||this.opts.body&&"string"!=typeof this.opts.body&&!ArrayBuffer.isView(this.opts.body)&&util$g.isIterable(this.opts.body))&&(this.opts.body=new BodyAsyncIterable(this.opts.body))}onConnect(e){this.abort=e,this.handler.onConnect(e,{history:this.history})}onUpgrade(e,t,r){this.handler.onUpgrade(e,t,r)}onError(e){this.handler.onError(e)}onHeaders(e,t,r,n){if(this.location=this.history.length>=this.maxRedirections||util$g.isDisturbed(this.opts.body)?null:parseLocation(e,t),this.opts.origin&&this.history.push(new URL(this.opts.path,this.opts.origin)),!this.location)return this.handler.onHeaders(e,t,r,n);const{origin:o,pathname:i,search:s}=util$g.parseURL(new URL(this.location,this.opts.origin&&new URL(this.opts.path,this.opts.origin))),A=s?`${i}${s}`:i;this.opts.headers=cleanRequestHeaders(this.opts.headers,303===e,this.opts.origin!==o),this.opts.path=A,this.opts.origin=o,this.opts.maxRedirections=0,this.opts.query=null,303===e&&"HEAD"!==this.opts.method&&(this.opts.method="GET",this.opts.body=null)}onData(e){if(!this.location)return this.handler.onData(e)}onComplete(e){this.location?(this.location=null,this.abort=null,this.dispatch(this.opts,this)):this.handler.onComplete(e)}onBodySent(e){this.handler.onBodySent&&this.handler.onBodySent(e)}}function parseLocation(e,t){if(-1===redirectableStatusCodes.indexOf(e))return null;for(let e=0;e<t.length;e+=2)if("location"===t[e].toString().toLowerCase())return t[e+1]}function shouldRemoveHeader(e,t,r){return 4===e.length&&"host"===e.toString().toLowerCase()||t&&0===e.toString().toLowerCase().indexOf("content-")||r&&13===e.length&&"authorization"===e.toString().toLowerCase()||r&&6===e.length&&"cookie"===e.toString().toLowerCase()}function cleanRequestHeaders(e,t,r){const n=[];if(Array.isArray(e))for(let o=0;o<e.length;o+=2)shouldRemoveHeader(e[o],t,r)||n.push(e[o],e[o+1]);else if(e&&"object"==typeof e)for(const o of Object.keys(e))shouldRemoveHeader(o,t,r)||n.push(o,e[o]);else assert$b(null==e,"headers must be an object or an array");return n}var RedirectHandler_1=RedirectHandler$1;const RedirectHandler=RedirectHandler_1;function createRedirectInterceptor$2({maxRedirections:e}){return t=>function(r,n){const{maxRedirections:o=e}=r;if(!o)return t(r,n);const i=new RedirectHandler(t,o,r,n);return r={...r,maxRedirections:0},t(r,i)}}var redirectInterceptor=createRedirectInterceptor$2,llhttpWasm="AGFzbQEAAAABMAhgAX8Bf2ADf39/AX9gBH9/f38Bf2AAAGADf39/AGABfwBgAn9/AGAGf39/f39/AALLAQgDZW52GHdhc21fb25faGVhZGVyc19jb21wbGV0ZQACA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QAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQCAQDscBAAECAwQFBgcICQoLDA0ODxAREhMUFRYXGBkaGxweHyAhIyUoP0BBREVGR0hJSktMTU9QUVJT3gNXWVtcXWBiZWZnaGlqa2xtb3BxcnN0dXZ3eHl6e3x9foABggGFAYYBhwGJAYsBjAGNAY4BjwGQAZEBlAGVA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IREM5QELQgMhEQzkAQtCBCERDOMBC0IFIREM4gELQgYhEQzhAQtCByERDOABC0IIIREM3wELQgkhEQzeAQtCCiERDN0BC0ILIREM3AELQgwhEQzbAQtCDSERDNoBC0IOIREM2QELQg8hEQzYAQtCCiERDNcBC0ILIREM1gELQgwhEQzVAQtCDSERDNQBC0IOIREM0wELQg8hEQzSAQtCACERAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQCAQLQAAQVBqDjflAeQBAAECAwQFBgfmAeYB5gHmAeYB5gHmAQgJCgsMDeYB5gHmAeYB5gHmAeYB5gHmAeYB5gHmAeYB5gHmAeYB5gHmAeYB5gHmAeYB5gHmAeYB5gEODxAREhPmAQtCAiERDOQBC0IDIREM4wELQgQhEQziAQtCBSERDOEBC0IGIREM4AELQgchEQzfAQtCCCERDN4BC0IJIREM3QELQgohEQzcAQtCCyERDNsBC0IMIREM2gELQg0hEQzZAQtCDiERDNgBC0IPIREM1wELQgohEQzWAQtCCyERDNUBC0IMIREM1AELQg0hEQzTAQtCDiERDNIBC0IPIREM0QELIABCACAAKQMgIhEgAiABIhBrrSISfSITIBMgEVYbNwMgIBEgElYiFEUN0gFBHyEQDMADCwJAIAEiASACRg0AIABBiYCAgAA2AgggACABNgIEIAEhAUEkIRAMpwMLQSAhEAy/AwsgACABIhAgAhC+gICAAEF/ag4FtgEAxQIB0QHSAQtBESEQDKQDCyAAQQE6AC8gECEBDLsDCyABIgEgAkcN0gFBJCEQDLsDCyABIg0gAkcNHkHGACEQDLoDCyAAIAEiASACELKAgIAAIhAN1AEgASEBDLUBCyABIhAgAkcNJkHQACEQDLgDCwJAIAEiASACRw0AQSghEAy4AwsgAEEANgIEIABBjICAgAA2AgggACABIAEQsYCAgAAiEA3TASABIQEM2AELAkAgASIQIAJHDQBBKSEQDLcDCyAQLQAAIgFBIEYNFCABQQlHDdMBIBBBAWohAQwVCwJAIAEiASACRg0AIAFBAWohAQwXC0EqIRAMtQMLAkAgASIQIA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yAAKAIEIRAgAEEANgIEAkAgACAQIAEQp4CAgAAiEA0AIAEhAQxNCyAAQdIANgIcIAAgATYCFCAAIBA2AgxBACEQDLIBCyAAKAIEIRAgAEEANgIEAkAgACAQIAEQp4CAgAAiEA0AIAEhAQxNCyAAQdMANgIcIAAgATYCFCAAIBA2AgxBACEQDLEBCyAAKAIEIRAgAEEANgIEAkAgACAQIAEQp4CAgAAiEA0AIAEhAQxRCyAAQeUANgIcIAAgATYCFCAAIBA2AgxBACEQDLABCyAAQQA2AhwgACABNgIUIABBxoqAgAA2AhAgAEEHNgIMQQAhEAyvAQsgACgCBCEQIABBADYCBAJAIAAgECABEKeAgIAAIhANACABIQEMSQsgAEHSADYCHCAAIAE2AhQgACAQNgIMQQAhEAyuAQsgACgCBCEQIABBADYCBAJAIAAgECABEKeAgIAAIhANACABIQEMSQsgAEHTADYCHCAAIAE2AhQgACAQNgIMQQAhEAytAQsgACgCBCEQIABBADYCBAJAIAAgECABEKeAgIAAIhANACABIQEMTQsgAEHlADYCHCAAIAE2AhQgACAQNgIMQQAhEAysAQsgAEEANgIcIAAgATYCFCAAQdyIgIAANgIQIABBBzYCDEEAIRAMqwELIBBBP0cNASABQQFqIQELQQUhEAyQAQtBACEQIABBADYCHCAAIAE2AhQgAEH9koCAADYCECAAQQc2AgwMqAELIAAoAgQhECAAQQA2AgQCQCAAIBAgARCngICAACIQDQAgASEBDEILIABB0gA2AhwgACABNgIUIAAgEDYCDEEAIRAMpwELIAAoAgQhECAAQQA2AgQCQCAAIBAgARCngICAACIQDQAgASEBDEILIABB0wA2AhwgACABNgIUIAAgEDYCDEEAIRAMpgELIAAoAgQhECAAQQA2AgQCQCAAIBAgARCngICAACIQDQAgASEBDEYLIABB5QA2AhwgACABNgIUIAAgEDYCDEEAIRAMpQELIAAoAgQhASAAQQA2AgQCQCAAIAEgFBCngICAACIBDQAgFCEBDD8LIABB0gA2AhwgACAUNgIUIAAgATYCDEEAIRAMpAELIAAoAgQhASAAQQA2AgQC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QAAAAAAAAAAAAIAAAAAAgAAAAAAAAAAAAAAAAAAAAAAAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMAAAAAAAADAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABOT1VOQ0VFQ0tPVVRORUNURVRFQ1JJQkVMVVNIRVRFQURTRUFSQ0hSR0VDVElWSVRZTEVOREFSVkVPVElGWVBUSU9OU0NIU0VBWVNUQVRDSEdFT1JESVJFQ1RPUlRSQ0hQQVJBTUVURVJVUkNFQlNDUklCRUFSRE9XTkFDRUlORE5LQ0tVQlNDUklCRUhUVFAvQURUUC8=";const assert$a=require$$0__default.default,net=require$$4__default.default,http2=require$$2__default$2.default,{pipeline:pipeline$2}=require$$0__default$1.default,util$f=util$l,timers=timers$1,Request$3=request$2,DispatcherBase$2=dispatcherBase,{RequestContentLengthMismatchError:RequestContentLengthMismatchError,ResponseContentLengthMismatchError:ResponseContentLengthMismatchError,InvalidArgumentError:InvalidArgumentError$a,RequestAbortedError:RequestAbortedError$7,HeadersTimeoutError:HeadersTimeoutError,HeadersOverflowError:HeadersOverflowError,SocketError:SocketError$2,InformationalError:InformationalError,BodyTimeoutError:BodyTimeoutError,HTTPParserError:HTTPParserError,ResponseExceededMaxSizeError:ResponseExceededMaxSizeError,ClientDestroyedError:ClientDestroyedError}=errors$1,buildConnector$1=connect$2,{kUrl:kUrl$2,kReset:kReset,kServerName:kServerName,kClient:kClient,kBusy:kBusy$1,kParser:kParser,kConnect:kConnect,kBlocking:kBlocking,kResuming:kResuming,kRunning:kRunning$3,kPending:kPending$2,kSize:kSize$4,kWriting:kWriting,kQueue:kQueue$1,kConnected:kConnected$3,kConnecting:kConnecting,kNeedDrain:kNeedDrain$2,kNoRef:kNoRef,kKeepAliveDefaultTimeout:kKeepAliveDefaultTimeout,kHostHeader:kHostHeader,kPendingIdx:kPendingIdx,kRunningIdx:kRunningIdx,kError:kError$2,kPipelining:kPipelining,kSocket:kSocket,kKeepAliveTimeoutValue:kKeepAliveTimeoutValue,kMaxHeadersSize:kMaxHeadersSize,kKeepAliveMaxTimeout:kKeepAliveMaxTimeout,kKeepAliveTimeoutThreshold:kKeepAliveTimeoutThreshold,kHeadersTimeout:kHeadersTimeout,kBodyTimeout:kBodyTimeout,kStrictContentLength:kStrictContentLength,kConnector:kConnector,kMaxRedirections:kMaxRedirections$1,kMaxRequests:kMaxRequests,kCounter:kCounter,kClose:kClose$2,kDestroy:kDestroy$2,kDispatch:kDispatch$2,kInterceptors:kInterceptors$2,kLocalAddress:kLocalAddress,kMaxResponseSize:kMaxResponseSize,kHTTPConnVersion:kHTTPConnVersion,kHost:kHost,kHTTP2Session:kHTTP2Session,kHTTP2SessionState:kHTTP2SessionState,kHTTP2BuildRequest:kHTTP2BuildRequest,kHTTP2CopyHeaders:kHTTP2CopyHeaders,kHTTP1BuildRequest:kHTTP1BuildRequest}=symbols$4,{constants:{HTTP2_HEADER_AUTHORITY:HTTP2_HEADER_AUTHORITY,HTTP2_HEADER_METHOD:HTTP2_HEADER_METHOD,HTTP2_HEADER_PATH:HTTP2_HEADER_PATH,HTTP2_HEADER_CONTENT_LENGTH:HTTP2_HEADER_CONTENT_LENGTH,HTTP2_HEADER_EXPECT:HTTP2_HEADER_EXPECT,HTTP2_HEADER_STATUS:HTTP2_HEADER_STATUS}}=http2;let h2ExperimentalWarned=!1;const FastBuffer=Buffer[Symbol.species],kClosedResolve$1=Symbol("kClosedResolve"),channels$2={};try{const e=require("diagnostics_channel");channels$2.sendHeaders=e.channel("undici:client:sendHeaders"),channels$2.beforeConnect=e.channel("undici:client:beforeConnect"),channels$2.connectError=e.channel("undici:client:connectError"),channels$2.connected=e.channel("undici:client:connected")}catch{channels$2.sendHeaders={hasSubscribers:!1},channels$2.beforeConnect={hasSubscribers:!1},channels$2.connectError={hasSubscribers:!1},channels$2.connected={hasSubscribers:!1}}class Client$2 extends DispatcherBase$2{constructor(e,{interceptors:t,maxHeaderSize:r,headersTimeout:n,socketTimeout:o,requestTimeout:i,connectTimeout:s,bodyTimeout:A,idleTimeout:a,keepAlive:c,keepAliveTimeout:u,maxKeepAliveTimeout:l,keepAliveMaxTimeout:d,keepAliveTimeoutThreshold:g,socketPath:h,pipelining:p,tls:E,strictContentLength:C,maxCachedSessions:f,maxRedirections:B,connect:Q,maxRequestsPerClient:I,localAddress:y,maxResponseSize:b,autoSelectFamily:m,autoSelectFamilyAttemptTimeout:w,allowH2:k,maxConcurrentStreams:R}={}){if(super(),void 0!==c)throw new InvalidArgumentError$a("unsupported keepAlive, use pipelining=0 instead");if(void 0!==o)throw new InvalidArgumentError$a("unsupported socketTimeout, use headersTimeout & bodyTimeout instead");if(void 0!==i)throw new InvalidArgumentError$a("unsupported requestTimeout, use headersTimeout & bodyTimeout instead");if(void 0!==a)throw new InvalidArgumentError$a("unsupported idleTimeout, use keepAliveTimeout instead");if(void 0!==l)throw new InvalidArgumentError$a("unsupported maxKeepAliveTimeout, use keepAliveMaxTimeout instead");if(null!=r&&!Number.isFinite(r))throw new InvalidArgumentError$a("invalid maxHeaderSize");if(null!=h&&"string"!=typeof h)throw new InvalidArgumentError$a("invalid socketPath");if(null!=s&&(!Number.isFinite(s)||s<0))throw new InvalidArgumentError$a("invalid connectTimeout");if(null!=u&&(!Number.isFinite(u)||u<=0))throw new InvalidArgumentError$a("invalid keepAliveTimeout");if(null!=d&&(!Number.isFinite(d)||d<=0))throw new InvalidArgumentError$a("invalid keepAliveMaxTimeout");if(null!=g&&!Number.isFinite(g))throw new InvalidArgumentError$a("invalid keepAliveTimeoutThreshold");if(null!=n&&(!Number.isInteger(n)||n<0))throw new InvalidArgumentError$a("headersTimeout must be a positive integer or zero");if(null!=A&&(!Number.isInteger(A)||A<0))throw new InvalidArgumentError$a("bodyTimeout must be a positive integer or zero");if(null!=Q&&"function"!=typeof Q&&"object"!=typeof Q)throw new InvalidArgumentError$a("connect must be a function or an object");if(null!=B&&(!Number.isInteger(B)||B<0))throw new InvalidArgumentError$a("maxRedirections must be a positive number");if(null!=I&&(!Number.isInteger(I)||I<0))throw new InvalidArgumentError$a("maxRequestsPerClient must be a positive number");if(null!=y&&("string"!=typeof y||0===net.isIP(y)))throw new InvalidArgumentError$a("localAddress must be valid string IP address");if(null!=b&&(!Number.isInteger(b)||b<-1))throw new InvalidArgumentError$a("maxResponseSize must be a positive number");if(null!=w&&(!Number.isInteger(w)||w<-1))throw new InvalidArgumentError$a("autoSelectFamilyAttemptTimeout must be a positive number");if(null!=k&&"boolean"!=typeof k)throw new InvalidArgumentError$a("allowH2 must be a valid boolean value");if(null!=R&&("number"!=typeof R||R<1))throw new InvalidArgumentError$a("maxConcurrentStreams must be a possitive integer, greater than 0");"function"!=typeof Q&&(Q=buildConnector$1({...E,maxCachedSessions:f,allowH2:k,socketPath:h,timeout:s,...util$f.nodeHasAutoSelectFamily&&m?{autoSelectFamily:m,autoSelectFamilyAttemptTimeout:w}:void 0,...Q})),this[kInterceptors$2]=t&&t.Client&&Array.isArray(t.Client)?t.Client:[createRedirectInterceptor$1({maxRedirections:B})],this[kUrl$2]=util$f.parseOrigin(e),this[kConnector]=Q,this[kSocket]=null,this[kPipelining]=null!=p?p:1,this[kMaxHeadersSize]=r||16384,this[kKeepAliveDefaultTimeout]=null==u?4e3:u,this[kKeepAliveMaxTimeout]=null==d?6e5:d,this[kKeepAliveTimeoutThreshold]=null==g?1e3:g,this[kKeepAliveTimeoutValue]=this[kKeepAliveDefaultTimeout],this[kServerName]=null,this[kLocalAddress]=null!=y?y:null,this[kResuming]=0,this[kNeedDrain$2]=0,this[kHostHeader]=`host: ${this[kUrl$2].hostname}${this[kUrl$2].port?`:${this[kUrl$2].port}`:""}\r\n`,this[kBodyTimeout]=null!=A?A:3e5,this[kHeadersTimeout]=null!=n?n:3e5,this[kStrictContentLength]=null==C||C,this[kMaxRedirections$1]=B,this[kMaxRequests]=I,this[kClosedResolve$1]=null,this[kMaxResponseSize]=b>-1?b:-1,this[kHTTPConnVersion]="h1",this[kHTTP2Session]=null,this[kHTTP2SessionState]=k?{openStreams:0,maxConcurrentStreams:null!=R?R:100}:null,this[kHost]=`${this[kUrl$2].hostname}${this[kUrl$2].port?`:${this[kUrl$2].port}`:""}`,this[kQueue$1]=[],this[kRunningIdx]=0,this[kPendingIdx]=0}get pipelining(){return this[kPipelining]}set pipelining(e){this[kPipelining]=e,resume(this,!0)}get[kPending$2](){return this[kQueue$1].length-this[kPendingIdx]}get[kRunning$3](){return this[kPendingIdx]-this[kRunningIdx]}get[kSize$4](){return this[kQueue$1].length-this[kRunningIdx]}get[kConnected$3](){return!!this[kSocket]&&!this[kConnecting]&&!this[kSocket].destroyed}get[kBusy$1](){const e=this[kSocket];return e&&(e[kReset]||e[kWriting]||e[kBlocking])||this[kSize$4]>=(this[kPipelining]||1)||this[kPending$2]>0}[kConnect](e){connect$1(this),this.once("connect",e)}[kDispatch$2](e,t){const r=e.origin||this[kUrl$2].origin,n="h2"===this[kHTTPConnVersion]?Request$3[kHTTP2BuildRequest](r,e,t):Request$3[kHTTP1BuildRequest](r,e,t);return this[kQueue$1].push(n),this[kResuming]||(null==util$f.bodyLength(n.body)&&util$f.isIterable(n.body)?(this[kResuming]=1,process.nextTick(resume,this)):resume(this,!0)),this[kResuming]&&2!==this[kNeedDrain$2]&&this[kBusy$1]&&(this[kNeedDrain$2]=2),this[kNeedDrain$2]<2}async[kClose$2](){return new Promise((e=>{this[kSize$4]?this[kClosedResolve$1]=e:e(null)}))}async[kDestroy$2](e){return new Promise((t=>{const r=this[kQueue$1].splice(this[kPendingIdx]);for(let t=0;t<r.length;t++){errorRequest(this,r[t],e)}const n=()=>{this[kClosedResolve$1]&&(this[kClosedResolve$1](),this[kClosedResolve$1]=null),t()};null!=this[kHTTP2Session]&&(util$f.destroy(this[kHTTP2Session],e),this[kHTTP2Session]=null,this[kHTTP2SessionState]=null),this[kSocket]?util$f.destroy(this[kSocket].on("close",n),e):queueMicrotask(n),resume(this)}))}}function onHttp2SessionError(e){assert$a("ERR_TLS_CERT_ALTNAME_INVALID"!==e.code),this[kSocket][kError$2]=e,onError(this[kClient],e)}function onHttp2FrameError(e,t,r){const n=new InformationalError(`HTTP/2: "frameError" received - type ${e}, code ${t}`);0===r&&(this[kSocket][kError$2]=n,onError(this[kClient],n))}function onHttp2SessionEnd(){util$f.destroy(this,new SocketError$2("other side closed")),util$f.destroy(this[kSocket],new SocketError$2("other side closed"))}function onHTTP2GoAway(e){const t=this[kClient],r=new InformationalError(`HTTP/2: "GOAWAY" frame received with code ${e}`);if(t[kSocket]=null,t[kHTTP2Session]=null,t.destroyed){assert$a(0===this[kPending$2]);const e=t[kQueue$1].splice(t[kRunningIdx]);for(let t=0;t<e.length;t++){errorRequest(this,e[t],r)}}else if(t[kRunning$3]>0){const e=t[kQueue$1][t[kRunningIdx]];t[kQueue$1][t[kRunningIdx]++]=null,errorRequest(t,e,r)}t[kPendingIdx]=t[kRunningIdx],assert$a(0===t[kRunning$3]),t.emit("disconnect",t[kUrl$2],[t],r),resume(t)}const constants$1=constants$2,createRedirectInterceptor$1=redirectInterceptor,EMPTY_BUF=Buffer.alloc(0);async function lazyllhttp(){const e=process.env.JEST_WORKER_ID?llhttpWasm:void 0;let t;try{t=await WebAssembly.compile(Buffer.from(require("./llhttp/llhttp_simd-wasm.js"),"base64"))}catch(r){t=await WebAssembly.compile(Buffer.from(e||llhttpWasm,"base64"))}return await WebAssembly.instantiate(t,{env:{wasm_on_url:(e,t,r)=>0,wasm_on_status:(e,t,r)=>{assert$a.strictEqual(currentParser.ptr,e);const n=t-currentBufferPtr+currentBufferRef.byteOffset;return currentParser.onStatus(new FastBuffer(currentBufferRef.buffer,n,r))||0},wasm_on_message_begin:e=>(assert$a.strictEqual(currentParser.ptr,e),currentParser.onMessageBegin()||0),wasm_on_header_field:(e,t,r)=>{assert$a.strictEqual(currentParser.ptr,e);const n=t-currentBufferPtr+currentBufferRef.byteOffset;return currentParser.onHeaderField(new FastBuffer(currentBufferRef.buffer,n,r))||0},wasm_on_header_value:(e,t,r)=>{assert$a.strictEqual(currentParser.ptr,e);const n=t-currentBufferPtr+currentBufferRef.byteOffset;return currentParser.onHeaderValue(new FastBuffer(currentBufferRef.buffer,n,r))||0},wasm_on_headers_complete:(e,t,r,n)=>(assert$a.strictEqual(currentParser.ptr,e),currentParser.onHeadersComplete(t,Boolean(r),Boolean(n))||0),wasm_on_body:(e,t,r)=>{assert$a.strictEqual(currentParser.ptr,e);const n=t-currentBufferPtr+currentBufferRef.byteOffset;return currentParser.onBody(new FastBuffer(currentBufferRef.buffer,n,r))||0},wasm_on_message_complete:e=>(assert$a.strictEqual(currentParser.ptr,e),currentParser.onMessageComplete()||0)}})}let llhttpInstance=null,llhttpPromise=lazyllhttp();llhttpPromise.catch();let currentParser=null,currentBufferRef=null,currentBufferSize=0,currentBufferPtr=null;const TIMEOUT_HEADERS=1,TIMEOUT_BODY=2,TIMEOUT_IDLE=3;class Parser{constructor(e,t,{exports:r}){assert$a(Number.isFinite(e[kMaxHeadersSize])&&e[kMaxHeadersSize]>0),this.llhttp=r,this.ptr=this.llhttp.llhttp_alloc(constants$1.TYPE.RESPONSE),this.client=e,this.socket=t,this.timeout=null,this.timeoutValue=null,this.timeoutType=null,this.statusCode=null,this.statusText="",this.upgrade=!1,this.headers=[],this.headersSize=0,this.headersMaxSize=e[kMaxHeadersSize],this.shouldKeepAlive=!1,this.paused=!1,this.resume=this.resume.bind(this),this.bytesRead=0,this.keepAlive="",this.contentLength="",this.connection="",this.maxResponseSize=e[kMaxResponseSize]}setTimeout(e,t){this.timeoutType=t,e!==this.timeoutValue?(timers.clearTimeout(this.timeout),e?(this.timeout=timers.setTimeout(onParserTimeout,e,this),this.timeout.unref&&this.timeout.unref()):this.timeout=null,this.timeoutValue=e):this.timeout&&this.timeout.refresh&&this.timeout.refresh()}resume(){!this.socket.destroyed&&this.paused&&(assert$a(null!=this.ptr),assert$a(null==currentParser),this.llhttp.llhttp_resume(this.ptr),assert$a(2===this.timeoutType),this.timeout&&this.timeout.refresh&&this.timeout.refresh(),this.paused=!1,this.execute(this.socket.read()||EMPTY_BUF),this.readMore())}readMore(){for(;!this.paused&&this.ptr;){const e=this.socket.read();if(null===e)break;this.execute(e)}}execute(e){assert$a(null!=this.ptr),assert$a(null==currentParser),assert$a(!this.paused);const{socket:t,llhttp:r}=this;e.length>currentBufferSize&&(currentBufferPtr&&r.free(currentBufferPtr),currentBufferSize=4096*Math.ceil(e.length/4096),currentBufferPtr=r.malloc(currentBufferSize)),new Uint8Array(r.memory.buffer,currentBufferPtr,currentBufferSize).set(e);try{let n;try{currentBufferRef=e,currentParser=this,n=r.llhttp_execute(this.ptr,currentBufferPtr,e.length)}catch(e){throw e}finally{currentParser=null,currentBufferRef=null}const o=r.llhttp_get_error_pos(this.ptr)-currentBufferPtr;if(n===constants$1.ERROR.PAUSED_UPGRADE)this.onUpgrade(e.slice(o));else if(n===constants$1.ERROR.PAUSED)this.paused=!0,t.unshift(e.slice(o));else if(n!==constants$1.ERROR.OK){const t=r.llhttp_get_error_reason(this.ptr);let i="";if(t){const e=new Uint8Array(r.memory.buffer,t).indexOf(0);i="Response does not match the HTTP/1.1 protocol ("+Buffer.from(r.memory.buffer,t,e).toString()+")"}throw new HTTPParserError(i,constants$1.ERROR[n],e.slice(o))}}catch(e){util$f.destroy(t,e)}}destroy(){assert$a(null!=this.ptr),assert$a(null==currentParser),this.llhttp.llhttp_free(this.ptr),this.ptr=null,timers.clearTimeout(this.timeout),this.timeout=null,this.timeoutValue=null,this.timeoutType=null,this.paused=!1}onStatus(e){this.statusText=e.toString()}onMessageBegin(){const{socket:e,client:t}=this;if(e.destroyed)return-1;return t[kQueue$1][t[kRunningIdx]]?void 0:-1}onHeaderField(e){const t=this.headers.length;0==(1&t)?this.headers.push(e):this.headers[t-1]=Buffer.concat([this.headers[t-1],e]),this.trackHeader(e.length)}onHeaderValue(e){let t=this.headers.length;1==(1&t)?(this.headers.push(e),t+=1):this.headers[t-1]=Buffer.concat([this.headers[t-1],e]);const r=this.headers[t-2];10===r.length&&"keep-alive"===r.toString().toLowerCase()?this.keepAlive+=e.toString():10===r.length&&"connection"===r.toString().toLowerCase()?this.connection+=e.toString():14===r.length&&"content-length"===r.toString().toLowerCase()&&(this.contentLength+=e.toString()),this.trackHeader(e.length)}trackHeader(e){this.headersSize+=e,this.headersSize>=this.headersMaxSize&&util$f.destroy(this.socket,new HeadersOverflowError)}onUpgrade(e){const{upgrade:t,client:r,socket:n,headers:o,statusCode:i}=this;assert$a(t);const s=r[kQueue$1][r[kRunningIdx]];assert$a(s),assert$a(!n.destroyed),assert$a(n===r[kSocket]),assert$a(!this.paused),assert$a(s.upgrade||"CONNECT"===s.method),this.statusCode=null,this.statusText="",this.shouldKeepAlive=null,assert$a(this.headers.length%2==0),this.headers=[],this.headersSize=0,n.unshift(e),n[kParser].destroy(),n[kParser]=null,n[kClient]=null,n[kError$2]=null,n.removeListener("error",onSocketError$1).removeListener("readable",onSocketReadable).removeListener("end",onSocketEnd).removeListener("close",onSocketClose$1),r[kSocket]=null,r[kQueue$1][r[kRunningIdx]++]=null,r.emit("disconnect",r[kUrl$2],[r],new InformationalError("upgrade"));try{s.onUpgrade(i,o,n)}catch(e){util$f.destroy(n,e)}resume(r)}onHeadersComplete(e,t,r){const{client:n,socket:o,headers:i,statusText:s}=this;if(o.destroyed)return-1;const A=n[kQueue$1][n[kRunningIdx]];if(!A)return-1;if(assert$a(!this.upgrade),assert$a(this.statusCode<200),100===e)return util$f.destroy(o,new SocketError$2("bad response",util$f.getSocketInfo(o))),-1;if(t&&!A.upgrade)return util$f.destroy(o,new SocketError$2("bad upgrade",util$f.getSocketInfo(o))),-1;if(assert$a.strictEqual(this.timeoutType,TIMEOUT_HEADERS),this.statusCode=e,this.shouldKeepAlive=r||"HEAD"===A.method&&!o[kReset]&&"keep-alive"===this.connection.toLowerCase(),this.statusCode>=200){const e=null!=A.bodyTimeout?A.bodyTimeout:n[kBodyTimeout];this.setTimeout(e,2)}else this.timeout&&this.timeout.refresh&&this.timeout.refresh();if("CONNECT"===A.method)return assert$a(1===n[kRunning$3]),this.upgrade=!0,2;if(t)return assert$a(1===n[kRunning$3]),this.upgrade=!0,2;if(assert$a(this.headers.length%2==0),this.headers=[],this.headersSize=0,this.shouldKeepAlive&&n[kPipelining]){const e=this.keepAlive?util$f.parseKeepAliveTimeout(this.keepAlive):null;if(null!=e){const t=Math.min(e-n[kKeepAliveTimeoutThreshold],n[kKeepAliveMaxTimeout]);t<=0?o[kReset]=!0:n[kKeepAliveTimeoutValue]=t}else n[kKeepAliveTimeoutValue]=n[kKeepAliveDefaultTimeout]}else o[kReset]=!0;let a;try{a=!1===A.onHeaders(e,i,this.resume,s)}catch(e){return util$f.destroy(o,e),-1}return"HEAD"===A.method||e<200?1:(o[kBlocking]&&(o[kBlocking]=!1,resume(n)),a?constants$1.ERROR.PAUSED:0)}onBody(e){const{client:t,socket:r,statusCode:n,maxResponseSize:o}=this;if(r.destroyed)return-1;const i=t[kQueue$1][t[kRunningIdx]];if(assert$a(i),assert$a.strictEqual(this.timeoutType,2),this.timeout&&this.timeout.refresh&&this.timeout.refresh(),assert$a(n>=200),o>-1&&this.bytesRead+e.length>o)return util$f.destroy(r,new ResponseExceededMaxSizeError),-1;this.bytesRead+=e.length;try{if(!1===i.onData(e))return constants$1.ERROR.PAUSED}catch(e){return util$f.destroy(r,e),-1}}onMessageComplete(){const{client:e,socket:t,statusCode:r,upgrade:n,headers:o,contentLength:i,bytesRead:s,shouldKeepAlive:A}=this;if(t.destroyed&&(!r||A))return-1;if(n)return;const a=e[kQueue$1][e[kRunningIdx]];if(assert$a(a),assert$a(r>=100),this.statusCode=null,this.statusText="",this.bytesRead=0,this.contentLength="",this.keepAlive="",this.connection="",assert$a(this.headers.length%2==0),this.headers=[],this.headersSize=0,!(r<200)){if("HEAD"!==a.method&&i&&s!==parseInt(i,10))return util$f.destroy(t,new ResponseContentLengthMismatchError),-1;try{a.onComplete(o)}catch(t){errorRequest(e,a,t)}return e[kQueue$1][e[kRunningIdx]++]=null,t[kWriting]?(assert$a.strictEqual(e[kRunning$3],0),util$f.destroy(t,new InformationalError("reset")),constants$1.ERROR.PAUSED):A?t[kReset]&&0===e[kRunning$3]?(util$f.destroy(t,new InformationalError("reset")),constants$1.ERROR.PAUSED):void(1===e[kPipelining]?setImmediate(resume,e):resume(e)):(util$f.destroy(t,new InformationalError("reset")),constants$1.ERROR.PAUSED)}}}function onParserTimeout(e){const{socket:t,timeoutType:r,client:n}=e;r===TIMEOUT_HEADERS?(!t[kWriting]||t.writableNeedDrain||n[kRunning$3]>1)&&(assert$a(!e.paused,"cannot be paused while waiting for headers"),util$f.destroy(t,new HeadersTimeoutError)):2===r?e.paused||util$f.destroy(t,new BodyTimeoutError):r===TIMEOUT_IDLE&&(assert$a(0===n[kRunning$3]&&n[kKeepAliveTimeoutValue]),util$f.destroy(t,new InformationalError("socket idle timeout")))}function onSocketReadable(){const{[kParser]:e}=this;e.readMore()}function onSocketError$1(e){const{[kClient]:t,[kParser]:r}=this;assert$a("ERR_TLS_CERT_ALTNAME_INVALID"!==e.code),"h2"===t[kHTTPConnVersion]||"ECONNRESET"!==e.code||!r.statusCode||r.shouldKeepAlive?(this[kError$2]=e,onError(this[kClient],e)):r.onMessageComplete()}function onError(e,t){if(0===e[kRunning$3]&&"UND_ERR_INFO"!==t.code&&"UND_ERR_SOCKET"!==t.code){assert$a(e[kPendingIdx]===e[kRunningIdx]);const r=e[kQueue$1].splice(e[kRunningIdx]);for(let n=0;n<r.length;n++){errorRequest(e,r[n],t)}assert$a(0===e[kSize$4])}}function onSocketEnd(){const{[kParser]:e,[kClient]:t}=this;"h2"===t[kHTTPConnVersion]||!e.statusCode||e.shouldKeepAlive?util$f.destroy(this,new SocketError$2("other side closed",util$f.getSocketInfo(this))):e.onMessageComplete()}function onSocketClose$1(){const{[kClient]:e,[kParser]:t}=this;"h1"===e[kHTTPConnVersion]&&t&&(this[kError$2]||!t.statusCode||t.shouldKeepAlive||t.onMessageComplete(),this[kParser].destroy(),this[kParser]=null);const r=this[kError$2]||new SocketError$2("closed",util$f.getSocketInfo(this));if(e[kSocket]=null,e.destroyed){assert$a(0===e[kPending$2]);const t=e[kQueue$1].splice(e[kRunningIdx]);for(let n=0;n<t.length;n++){errorRequest(e,t[n],r)}}else if(e[kRunning$3]>0&&"UND_ERR_INFO"!==r.code){const t=e[kQueue$1][e[kRunningIdx]];e[kQueue$1][e[kRunningIdx]++]=null,errorRequest(e,t,r)}e[kPendingIdx]=e[kRunningIdx],assert$a(0===e[kRunning$3]),e.emit("disconnect",e[kUrl$2],[e],r),resume(e)}async function connect$1(e){assert$a(!e[kConnecting]),assert$a(!e[kSocket]);let{host:t,hostname:r,protocol:n,port:o}=e[kUrl$2];if("["===r[0]){const e=r.indexOf("]");assert$a(-1!==e);const t=r.substr(1,e-1);assert$a(net.isIP(t)),r=t}e[kConnecting]=!0,channels$2.beforeConnect.hasSubscribers&&channels$2.beforeConnect.publish({connectParams:{host:t,hostname:r,protocol:n,port:o,servername:e[kServerName],localAddress:e[kLocalAddress]},connector:e[kConnector]});try{const i=await new Promise(((i,s)=>{e[kConnector]({host:t,hostname:r,protocol:n,port:o,servername:e[kServerName],localAddress:e[kLocalAddress]},((e,t)=>{e?s(e):i(t)}))}));if(e.destroyed)return void util$f.destroy(i.on("error",(()=>{})),new ClientDestroyedError);e[kConnecting]=!1,assert$a(i);if("h2"===i.alpnProtocol){h2ExperimentalWarned||(h2ExperimentalWarned=!0,process.emitWarning("H2 support is experimental, expect them to change at any time.",{code:"UNDICI-H2"}));const t=http2.connect(e[kUrl$2],{createConnection:()=>i,peerMaxConcurrentStreams:e[kHTTP2SessionState].maxConcurrentStreams});e[kHTTPConnVersion]="h2",t[kClient]=e,t[kSocket]=i,t.on("error",onHttp2SessionError),t.on("frameError",onHttp2FrameError),t.on("end",onHttp2SessionEnd),t.on("goaway",onHTTP2GoAway),t.on("close",onSocketClose$1),t.unref(),e[kHTTP2Session]=t,i[kHTTP2Session]=t}else llhttpInstance||(llhttpInstance=await llhttpPromise,llhttpPromise=null),i[kNoRef]=!1,i[kWriting]=!1,i[kReset]=!1,i[kBlocking]=!1,i[kParser]=new Parser(e,i,llhttpInstance);i[kCounter]=0,i[kMaxRequests]=e[kMaxRequests],i[kClient]=e,i[kError$2]=null,i.on("error",onSocketError$1).on("readable",onSocketReadable).on("end",onSocketEnd).on("close",onSocketClose$1),e[kSocket]=i,channels$2.connected.hasSubscribers&&channels$2.connected.publish({connectParams:{host:t,hostname:r,protocol:n,port:o,servername:e[kServerName],localAddress:e[kLocalAddress]},connector:e[kConnector],socket:i}),e.emit("connect",e[kUrl$2],[e])}catch(i){if(e.destroyed)return;if(e[kConnecting]=!1,channels$2.connectError.hasSubscribers&&channels$2.connectError.publish({connectParams:{host:t,hostname:r,protocol:n,port:o,servername:e[kServerName],localAddress:e[kLocalAddress]},connector:e[kConnector],error:i}),"ERR_TLS_CERT_ALTNAME_INVALID"===i.code)for(assert$a(0===e[kRunning$3]);e[kPending$2]>0&&e[kQueue$1][e[kPendingIdx]].servername===e[kServerName];){const t=e[kQueue$1][e[kPendingIdx]++];errorRequest(e,t,i)}else onError(e,i);e.emit("connectionError",e[kUrl$2],[e],i)}resume(e)}function emitDrain(e){e[kNeedDrain$2]=0,e.emit("drain",e[kUrl$2],[e])}function resume(e,t){2!==e[kResuming]&&(e[kResuming]=2,_resume(e,t),e[kResuming]=0,e[kRunningIdx]>256&&(e[kQueue$1].splice(0,e[kRunningIdx]),e[kPendingIdx]-=e[kRunningIdx],e[kRunningIdx]=0))}function _resume(e,t){for(;;){if(e.destroyed)return void assert$a(0===e[kPending$2]);if(e[kClosedResolve$1]&&!e[kSize$4])return e[kClosedResolve$1](),void(e[kClosedResolve$1]=null);const r=e[kSocket];if(r&&!r.destroyed&&"h2"!==r.alpnProtocol)if(0===e[kSize$4]?!r[kNoRef]&&r.unref&&(r.unref(),r[kNoRef]=!0):r[kNoRef]&&r.ref&&(r.ref(),r[kNoRef]=!1),0===e[kSize$4])r[kParser].timeoutType!==TIMEOUT_IDLE&&r[kParser].setTimeout(e[kKeepAliveTimeoutValue],TIMEOUT_IDLE);else if(e[kRunning$3]>0&&r[kParser].statusCode<200&&r[kParser].timeoutType!==TIMEOUT_HEADERS){const t=e[kQueue$1][e[kRunningIdx]],n=null!=t.headersTimeout?t.headersTimeout:e[kHeadersTimeout];r[kParser].setTimeout(n,TIMEOUT_HEADERS)}if(e[kBusy$1])e[kNeedDrain$2]=2;else if(2===e[kNeedDrain$2]){t?(e[kNeedDrain$2]=1,process.nextTick(emitDrain,e)):emitDrain(e);continue}if(0===e[kPending$2])return;if(e[kRunning$3]>=(e[kPipelining]||1))return;const n=e[kQueue$1][e[kPendingIdx]];if("https:"===e[kUrl$2].protocol&&e[kServerName]!==n.servername){if(e[kRunning$3]>0)return;if(e[kServerName]=n.servername,r&&r.servername!==n.servername)return void util$f.destroy(r,new InformationalError("servername changed"))}if(e[kConnecting])return;if(!r&&!e[kHTTP2Session])return void connect$1(e);if(r.destroyed||r[kWriting]||r[kReset]||r[kBlocking])return;if(e[kRunning$3]>0&&!n.idempotent)return;if(e[kRunning$3]>0&&(n.upgrade||"CONNECT"===n.method))return;if(util$f.isStream(n.body)&&0===util$f.bodyLength(n.body)&&(n.body.on("data",(function(){assert$a(!1)})).on("error",(function(t){errorRequest(e,n,t)})).on("end",(function(){util$f.destroy(this)})),n.body=null),e[kRunning$3]>0&&(util$f.isStream(n.body)||util$f.isAsyncIterable(n.body)))return;!n.aborted&&write(e,n)?e[kPendingIdx]++:e[kQueue$1].splice(e[kPendingIdx],1)}}function write(e,t){if("h2"===e[kHTTPConnVersion])return void writeH2(e,e[kHTTP2Session],t);const{body:r,method:n,path:o,host:i,upgrade:s,headers:A,blocking:a,reset:c}=t,u="PUT"===n||"POST"===n||"PATCH"===n;r&&"function"==typeof r.read&&r.read(0);let l=util$f.bodyLength(r);if(null===l&&(l=t.contentLength),0!==l||u||(l=null),null!==t.contentLength&&t.contentLength!==l){if(e[kStrictContentLength])return errorRequest(e,t,new RequestContentLengthMismatchError),!1;process.emitWarning(new RequestContentLengthMismatchError)}const d=e[kSocket];try{t.onConnect((r=>{t.aborted||t.completed||(errorRequest(e,t,r||new RequestAbortedError$7),util$f.destroy(d,new InformationalError("aborted")))}))}catch(r){errorRequest(e,t,r)}if(t.aborted)return!1;"HEAD"===n&&(d[kReset]=!0),(s||"CONNECT"===n)&&(d[kReset]=!0),null!=c&&(d[kReset]=c),e[kMaxRequests]&&d[kCounter]++>=e[kMaxRequests]&&(d[kReset]=!0),a&&(d[kBlocking]=!0);let g=`${n} ${o} HTTP/1.1\r\n`;return g+="string"==typeof i?`host: ${i}\r\n`:e[kHostHeader],s?g+=`connection: upgrade\r\nupgrade: ${s}\r\n`:e[kPipelining]&&!d[kReset]?g+="connection: keep-alive\r\n":g+="connection: close\r\n",A&&(g+=A),channels$2.sendHeaders.hasSubscribers&&channels$2.sendHeaders.publish({request:t,headers:g,socket:d}),r?util$f.isBuffer(r)?(assert$a(l===r.byteLength,"buffer body must have content length"),d.cork(),d.write(`${g}content-length: ${l}\r\n\r\n`,"latin1"),d.write(r),d.uncork(),t.onBodySent(r),t.onRequestSent(),u||(d[kReset]=!0)):util$f.isBlobLike(r)?"function"==typeof r.stream?writeIterable({body:r.stream(),client:e,request:t,socket:d,contentLength:l,header:g,expectsPayload:u}):writeBlob({body:r,client:e,request:t,socket:d,contentLength:l,header:g,expectsPayload:u}):util$f.isStream(r)?writeStream({body:r,client:e,request:t,socket:d,contentLength:l,header:g,expectsPayload:u}):util$f.isIterable(r)?writeIterable({body:r,client:e,request:t,socket:d,contentLength:l,header:g,expectsPayload:u}):assert$a(!1):(0===l?d.write(`${g}content-length: 0\r\n\r\n`,"latin1"):(assert$a(null===l,"no body must not have content length"),d.write(`${g}\r\n`,"latin1")),t.onRequestSent()),!0}function writeH2(e,t,r){const{body:n,method:o,path:i,host:s,upgrade:A,expectContinue:a,signal:c,headers:u}=r;let l,d;if(l="string"==typeof u?Request$3[kHTTP2CopyHeaders](u.trim()):u,A)return errorRequest(e,r,new Error("Upgrade not supported for H2")),!1;try{r.onConnect((t=>{r.aborted||r.completed||errorRequest(e,r,t||new RequestAbortedError$7)}))}catch(t){errorRequest(e,r,t)}if(r.aborted)return!1;const g=e[kHTTP2SessionState];if(l[HTTP2_HEADER_AUTHORITY]=s||e[kHost],l[HTTP2_HEADER_PATH]=i,"CONNECT"===o)return t.ref(),d=t.request(l,{endStream:!1,signal:c}),d.id&&!d.pending?(r.onUpgrade(null,null,d),++g.openStreams):d.once("ready",(()=>{r.onUpgrade(null,null,d),++g.openStreams})),d.once("close",(()=>{g.openStreams-=1,0===g.openStreams&&t.unref()})),!0;l[HTTP2_HEADER_METHOD]=o;const h="PUT"===o||"POST"===o||"PATCH"===o;n&&"function"==typeof n.read&&n.read(0);let p=util$f.bodyLength(n);if(null==p&&(p=r.contentLength),0!==p&&h||(p=null),null!=r.contentLength&&r.contentLength!==p){if(e[kStrictContentLength])return errorRequest(e,r,new RequestContentLengthMismatchError),!1;process.emitWarning(new RequestContentLengthMismatchError)}return null!=p&&(assert$a(n,"no body must not have content length"),l[HTTP2_HEADER_CONTENT_LENGTH]=`${p}`),t.ref(),a?(l[HTTP2_HEADER_EXPECT]="100-continue",d=t.request(l,{endStream:!1,signal:c}),d.once("continue",E)):(d=t.request(l,{endStream:!1,signal:c}),E()),++g.openStreams,d.once("response",(e=>{!1===r.onHeaders(Number(e[HTTP2_HEADER_STATUS]),e,d.resume.bind(d),"")&&d.pause()})),d.once("end",(()=>{r.onComplete([])})),d.on("data",(e=>{!1===r.onData(e)&&d.pause()})),d.once("close",(()=>{g.openStreams-=1,0===g.openStreams&&t.unref()})),d.once("error",(function(t){!e[kHTTP2Session]||e[kHTTP2Session].destroyed||this.closed||this.destroyed||(g.streams-=1,util$f.destroy(d,t))})),d.once("frameError",((t,n)=>{const o=new InformationalError(`HTTP/2: "frameError" received - type ${t}, code ${n}`);errorRequest(e,r,o),!e[kHTTP2Session]||e[kHTTP2Session].destroyed||this.closed||this.destroyed||(g.streams-=1,util$f.destroy(d,o))})),!0;function E(){n?util$f.isBuffer(n)?(assert$a(p===n.byteLength,"buffer body must have content length"),d.cork(),d.write(n),d.uncork(),r.onBodySent(n),r.onRequestSent()):util$f.isBlobLike(n)?"function"==typeof n.stream?writeIterable({client:e,request:r,contentLength:p,h2stream:d,expectsPayload:h,body:n.stream(),socket:e[kSocket],header:""}):writeBlob({body:n,client:e,request:r,contentLength:p,expectsPayload:h,h2stream:d,header:"",socket:e[kSocket]}):util$f.isStream(n)?writeStream({body:n,client:e,request:r,contentLength:p,expectsPayload:h,socket:e[kSocket],h2stream:d,header:""}):util$f.isIterable(n)?writeIterable({body:n,client:e,request:r,contentLength:p,expectsPayload:h,header:"",h2stream:d,socket:e[kSocket]}):assert$a(!1):r.onRequestSent()}}function writeStream({h2stream:e,body:t,client:r,request:n,socket:o,contentLength:i,header:s,expectsPayload:A}){if(assert$a(0!==i||0===r[kRunning$3],"stream body cannot be pipelined"),"h2"===r[kHTTPConnVersion]){const h=pipeline$2(t,e,(r=>{r?(util$f.destroy(t,r),util$f.destroy(e,r)):n.onRequestSent()}));function p(e){n.onBodySent(e)}return h.on("data",p),void h.once("end",(()=>{h.removeListener("data",p),util$f.destroy(h)}))}let a=!1;const c=new AsyncWriter({socket:o,request:n,contentLength:i,client:r,expectsPayload:A,header:s}),u=function(e){if(!a)try{!c.write(e)&&this.pause&&this.pause()}catch(e){util$f.destroy(this,e)}},l=function(){a||t.resume&&t.resume()},d=function(){g(new RequestAbortedError$7)},g=function(e){if(!a){if(a=!0,assert$a(o.destroyed||o[kWriting]&&r[kRunning$3]<=1),o.off("drain",l).off("error",g),t.removeListener("data",u).removeListener("end",g).removeListener("error",g).removeListener("close",d),!e)try{c.end()}catch(t){e=t}c.destroy(e),!e||"UND_ERR_INFO"===e.code&&"reset"===e.message?util$f.destroy(t):util$f.destroy(t,e)}};t.on("data",u).on("end",g).on("error",g).on("close",d),t.resume&&t.resume(),o.on("drain",l).on("error",g)}async function writeBlob({h2stream:e,body:t,client:r,request:n,socket:o,contentLength:i,header:s,expectsPayload:A}){assert$a(i===t.size,"blob body must have content length");const a="h2"===r[kHTTPConnVersion];try{if(null!=i&&i!==t.size)throw new RequestContentLengthMismatchError;const c=Buffer.from(await t.arrayBuffer());a?(e.cork(),e.write(c),e.uncork()):(o.cork(),o.write(`${s}content-length: ${i}\r\n\r\n`,"latin1"),o.write(c),o.uncork()),n.onBodySent(c),n.onRequestSent(),A||(o[kReset]=!0),resume(r)}catch(t){util$f.destroy(a?e:o,t)}}async function writeIterable({h2stream:e,body:t,client:r,request:n,socket:o,contentLength:i,header:s,expectsPayload:A}){assert$a(0!==i||0===r[kRunning$3],"iterator body cannot be pipelined");let a=null;function c(){if(a){const e=a;a=null,e()}}const u=()=>new Promise(((e,t)=>{assert$a(null===a),o[kError$2]?t(o[kError$2]):a=e}));if("h2"===r[kHTTPConnVersion]){e.on("close",c).on("drain",c);try{for await(const r of t){if(o[kError$2])throw o[kError$2];e.write(r)||await u()}}catch(t){e.destroy(t)}finally{e.off("close",c).off("drain",c)}return}o.on("close",c).on("drain",c);const l=new AsyncWriter({socket:o,request:n,contentLength:i,client:r,expectsPayload:A,header:s});try{for await(const e of t){if(o[kError$2])throw o[kError$2];l.write(e)||await u()}l.end()}catch(e){l.destroy(e)}finally{o.off("close",c).off("drain",c)}}class AsyncWriter{constructor({socket:e,request:t,contentLength:r,client:n,expectsPayload:o,header:i}){this.socket=e,this.request=t,this.contentLength=r,this.client=n,this.bytesWritten=0,this.expectsPayload=o,this.header=i,e[kWriting]=!0}write(e){const{socket:t,request:r,contentLength:n,client:o,bytesWritten:i,expectsPayload:s,header:A}=this;if(t[kError$2])throw t[kError$2];if(t.destroyed)return!1;const a=Buffer.byteLength(e);if(!a)return!0;if(null!==n&&i+a>n){if(o[kStrictContentLength])throw new RequestContentLengthMismatchError;process.emitWarning(new RequestContentLengthMismatchError)}t.cork(),0===i&&(s||(t[kReset]=!0),null===n?t.write(`${A}transfer-encoding: chunked\r\n`,"latin1"):t.write(`${A}content-length: ${n}\r\n\r\n`,"latin1")),null===n&&t.write(`\r\n${a.toString(16)}\r\n`,"latin1"),this.bytesWritten+=a;const c=t.write(e);return t.uncork(),r.onBodySent(e),c||t[kParser].timeout&&t[kParser].timeoutType===TIMEOUT_HEADERS&&t[kParser].timeout.refresh&&t[kParser].timeout.refresh(),c}end(){const{socket:e,contentLength:t,client:r,bytesWritten:n,expectsPayload:o,header:i,request:s}=this;if(s.onRequestSent(),e[kWriting]=!1,e[kError$2])throw e[kError$2];if(!e.destroyed){if(0===n?o?e.write(`${i}content-length: 0\r\n\r\n`,"latin1"):e.write(`${i}\r\n`,"latin1"):null===t&&e.write("\r\n0\r\n\r\n","latin1"),null!==t&&n!==t){if(r[kStrictContentLength])throw new RequestContentLengthMismatchError;process.emitWarning(new RequestContentLengthMismatchError)}e[kParser].timeout&&e[kParser].timeoutType===TIMEOUT_HEADERS&&e[kParser].timeout.refresh&&e[kParser].timeout.refresh(),resume(r)}}destroy(e){const{socket:t,client:r}=this;t[kWriting]=!1,e&&(assert$a(r[kRunning$3]<=1,"pipeline should only contain this request"),util$f.destroy(t,e))}}function errorRequest(e,t,r){try{t.onError(r),assert$a(t.aborted)}catch(r){e.emit("error",r)}}var client=Client$2;const kSize$3=2048,kMask=2047;class FixedCircularBuffer{constructor(){this.bottom=0,this.top=0,this.list=new Array(2048),this.next=null}isEmpty(){return this.top===this.bottom}isFull(){return(this.top+1&2047)===this.bottom}push(e){this.list[this.top]=e,this.top=this.top+1&2047}shift(){const e=this.list[this.bottom];return void 0===e?null:(this.list[this.bottom]=void 0,this.bottom=this.bottom+1&2047,e)}}var fixedQueue=class{constructor(){this.head=this.tail=new FixedCircularBuffer}isEmpty(){return this.head.isEmpty()}push(e){this.head.isFull()&&(this.head=this.head.next=new FixedCircularBuffer),this.head.push(e)}shift(){const e=this.tail,t=e.shift();return e.isEmpty()&&null!==e.next&&(this.tail=e.next),t}};const{kFree:kFree$1,kConnected:kConnected$2,kPending:kPending$1,kQueued:kQueued$1,kRunning:kRunning$2,kSize:kSize$2}=symbols$4,kPool=Symbol("pool");class PoolStats$1{constructor(e){this[kPool]=e}get connected(){return this[kPool][kConnected$2]}get free(){return this[kPool][kFree$1]}get pending(){return this[kPool][kPending$1]}get queued(){return this[kPool][kQueued$1]}get running(){return this[kPool][kRunning$2]}get size(){return this[kPool][kSize$2]}}var poolStats=PoolStats$1;const DispatcherBase$1=dispatcherBase,FixedQueue=fixedQueue,{kConnected:kConnected$1,kSize:kSize$1,kRunning:kRunning$1,kPending:kPending,kQueued:kQueued,kBusy:kBusy,kFree:kFree,kUrl:kUrl$1,kClose:kClose$1,kDestroy:kDestroy$1,kDispatch:kDispatch$1}=symbols$4,PoolStats=poolStats,kClients$2=Symbol("clients"),kNeedDrain$1=Symbol("needDrain"),kQueue=Symbol("queue"),kClosedResolve=Symbol("closed resolve"),kOnDrain$1=Symbol("onDrain"),kOnConnect$1=Symbol("onConnect"),kOnDisconnect$1=Symbol("onDisconnect"),kOnConnectionError$1=Symbol("onConnectionError"),kGetDispatcher$1=Symbol("get dispatcher"),kAddClient$1=Symbol("add client"),kRemoveClient=Symbol("remove client"),kStats=Symbol("stats");class PoolBase$1 extends DispatcherBase$1{constructor(){super(),this[kQueue]=new FixedQueue,this[kClients$2]=[],this[kQueued]=0;const e=this;this[kOnDrain$1]=function(t,r){const n=e[kQueue];let o=!1;for(;!o;){const t=n.shift();if(!t)break;e[kQueued]--,o=!this.dispatch(t.opts,t.handler)}this[kNeedDrain$1]=o,!this[kNeedDrain$1]&&e[kNeedDrain$1]&&(e[kNeedDrain$1]=!1,e.emit("drain",t,[e,...r])),e[kClosedResolve]&&n.isEmpty()&&Promise.all(e[kClients$2].map((e=>e.close()))).then(e[kClosedResolve])},this[kOnConnect$1]=(t,r)=>{e.emit("connect",t,[e,...r])},this[kOnDisconnect$1]=(t,r,n)=>{e.emit("disconnect",t,[e,...r],n)},this[kOnConnectionError$1]=(t,r,n)=>{e.emit("connectionError",t,[e,...r],n)},this[kStats]=new PoolStats(this)}get[kBusy](){return this[kNeedDrain$1]}get[kConnected$1](){return this[kClients$2].filter((e=>e[kConnected$1])).length}get[kFree](){return this[kClients$2].filter((e=>e[kConnected$1]&&!e[kNeedDrain$1])).length}get[kPending](){let e=this[kQueued];for(const{[kPending]:t}of this[kClients$2])e+=t;return e}get[kRunning$1](){let e=0;for(const{[kRunning$1]:t}of this[kClients$2])e+=t;return e}get[kSize$1](){let e=this[kQueued];for(const{[kSize$1]:t}of this[kClients$2])e+=t;return e}get stats(){return this[kStats]}async[kClose$1](){return this[kQueue].isEmpty()?Promise.all(this[kClients$2].map((e=>e.close()))):new Promise((e=>{this[kClosedResolve]=e}))}async[kDestroy$1](e){for(;;){const t=this[kQueue].shift();if(!t)break;t.handler.onError(e)}return Promise.all(this[kClients$2].map((t=>t.destroy(e))))}[kDispatch$1](e,t){const r=this[kGetDispatcher$1]();return r?r.dispatch(e,t)||(r[kNeedDrain$1]=!0,this[kNeedDrain$1]=!this[kGetDispatcher$1]()):(this[kNeedDrain$1]=!0,this[kQueue].push({opts:e,handler:t}),this[kQueued]++),!this[kNeedDrain$1]}[kAddClient$1](e){return e.on("drain",this[kOnDrain$1]).on("connect",this[kOnConnect$1]).on("disconnect",this[kOnDisconnect$1]).on("connectionError",this[kOnConnectionError$1]),this[kClients$2].push(e),this[kNeedDrain$1]&&process.nextTick((()=>{this[kNeedDrain$1]&&this[kOnDrain$1](e[kUrl$1],[this,e])})),this}[kRemoveClient](e){e.close((()=>{const t=this[kClients$2].indexOf(e);-1!==t&&this[kClients$2].splice(t,1)})),this[kNeedDrain$1]=this[kClients$2].some((e=>!e[kNeedDrain$1]&&!0!==e.closed&&!0!==e.destroyed))}}var poolBase={PoolBase:PoolBase$1,kClients:kClients$2,kNeedDrain:kNeedDrain$1,kAddClient:kAddClient$1,kRemoveClient:kRemoveClient,kGetDispatcher:kGetDispatcher$1};const{PoolBase:PoolBase,kClients:kClients$1,kNeedDrain:kNeedDrain,kAddClient:kAddClient,kGetDispatcher:kGetDispatcher}=poolBase,Client$1=client,{InvalidArgumentError:InvalidArgumentError$9}=errors$1,util$e=util$l,{kUrl:kUrl,kInterceptors:kInterceptors$1}=symbols$4,buildConnector=connect$2,kOptions$1=Symbol("options"),kConnections=Symbol("connections"),kFactory$1=Symbol("factory");function defaultFactory$1(e,t){return new Client$1(e,t)}class Pool$1 extends PoolBase{constructor(e,{connections:t,factory:r=defaultFactory$1,connect:n,connectTimeout:o,tls:i,maxCachedSessions:s,socketPath:A,autoSelectFamily:a,autoSelectFamilyAttemptTimeout:c,...u}={}){if(super(),null!=t&&(!Number.isFinite(t)||t<0))throw new InvalidArgumentError$9("invalid connections");if("function"!=typeof r)throw new InvalidArgumentError$9("factory must be a function.");if(null!=n&&"function"!=typeof n&&"object"!=typeof n)throw new InvalidArgumentError$9("connect must be a function or an object");"function"!=typeof n&&(n=buildConnector({...i,maxCachedSessions:s,socketPath:A,timeout:null==o?1e4:o,...util$e.nodeHasAutoSelectFamily&&a?{autoSelectFamily:a,autoSelectFamilyAttemptTimeout:c}:void 0,...n})),this[kInterceptors$1]=u.interceptors&&u.interceptors.Pool&&Array.isArray(u.interceptors.Pool)?u.interceptors.Pool:[],this[kConnections]=t||null,this[kUrl]=util$e.parseOrigin(e),this[kOptions$1]={...util$e.deepClone(u),connect:n},this[kOptions$1].interceptors=u.interceptors?{...u.interceptors}:void 0,this[kFactory$1]=r}[kGetDispatcher](){let e=this[kClients$1].find((e=>!e[kNeedDrain]));return e||((!this[kConnections]||this[kClients$1].length<this[kConnections])&&(e=this[kFactory$1](this[kUrl],this[kOptions$1]),this[kAddClient](e)),e)}}var pool=Pool$1;const{kConnected:kConnected,kSize:kSize}=symbols$4;class CompatWeakRef{constructor(e){this.value=e}deref(){return 0===this.value[kConnected]&&0===this.value[kSize]?void 0:this.value}}class CompatFinalizer{constructor(e){this.finalizer=e}register(e,t){e.on("disconnect",(()=>{0===e[kConnected]&&0===e[kSize]&&this.finalizer(t)}))}}var dispatcherWeakref=function(){return{WeakRef:commonjsGlobal.WeakRef||CompatWeakRef,FinalizationRegistry:commonjsGlobal.FinalizationRegistry||CompatFinalizer}};const{InvalidArgumentError:InvalidArgumentError$8}=errors$1,{kClients:kClients,kRunning:kRunning,kClose:kClose,kDestroy:kDestroy,kDispatch:kDispatch,kInterceptors:kInterceptors}=symbols$4,DispatcherBase=dispatcherBase,Pool=pool,Client=client,util$d=util$l,createRedirectInterceptor=redirectInterceptor,{WeakRef:WeakRef$1,FinalizationRegistry:FinalizationRegistry$1}=dispatcherWeakref(),kOnConnect=Symbol("onConnect"),kOnDisconnect=Symbol("onDisconnect"),kOnConnectionError=Symbol("onConnectionError"),kMaxRedirections=Symbol("maxRedirections"),kOnDrain=Symbol("onDrain"),kFactory=Symbol("factory"),kFinalizer=Symbol("finalizer"),kOptions=Symbol("options");function defaultFactory(e,t){return t&&1===t.connections?new Client(e,t):new Pool(e,t)}class Agent$2 extends DispatcherBase{constructor({factory:e=defaultFactory,maxRedirections:t=0,connect:r,...n}={}){if(super(),"function"!=typeof e)throw new InvalidArgumentError$8("factory must be a function.");if(null!=r&&"function"!=typeof r&&"object"!=typeof r)throw new InvalidArgumentError$8("connect must be a function or an object");if(!Number.isInteger(t)||t<0)throw new InvalidArgumentError$8("maxRedirections must be a positive number");r&&"function"!=typeof r&&(r={...r}),this[kInterceptors]=n.interceptors&&n.interceptors.Agent&&Array.isArray(n.interceptors.Agent)?n.interceptors.Agent:[createRedirectInterceptor({maxRedirections:t})],this[kOptions]={...util$d.deepClone(n),connect:r},this[kOptions].interceptors=n.interceptors?{...n.interceptors}:void 0,this[kMaxRedirections]=t,this[kFactory]=e,this[kClients]=new Map,this[kFinalizer]=new FinalizationRegistry$1((e=>{const t=this[kClients].get(e);void 0!==t&&void 0===t.deref()&&this[kClients].delete(e)}));const o=this;this[kOnDrain]=(e,t)=>{o.emit("drain",e,[o,...t])},this[kOnConnect]=(e,t)=>{o.emit("connect",e,[o,...t])},this[kOnDisconnect]=(e,t,r)=>{o.emit("disconnect",e,[o,...t],r)},this[kOnConnectionError]=(e,t,r)=>{o.emit("connectionError",e,[o,...t],r)}}get[kRunning](){let e=0;for(const t of this[kClients].values()){const r=t.deref();r&&(e+=r[kRunning])}return e}[kDispatch](e,t){let r;if(!e.origin||!("string"==typeof e.origin||e.origin instanceof URL))throw new InvalidArgumentError$8("opts.origin must be a non-empty string or URL.");r=String(e.origin);const n=this[kClients].get(r);let o=n?n.deref():null;return o||(o=this[kFactory](e.origin,this[kOptions]).on("drain",this[kOnDrain]).on("connect",this[kOnConnect]).on("disconnect",this[kOnDisconnect]).on("connectionError",this[kOnConnectionError]),this[kClients].set(r,new WeakRef$1(o)),this[kFinalizer].register(o,r)),o.dispatch(e,t)}async[kClose](){const e=[];for(const t of this[kClients].values()){const r=t.deref();r&&e.push(r.close())}await Promise.all(e)}async[kDestroy](e){const t=[];for(const r of this[kClients].values()){const n=r.deref();n&&t.push(n.destroy(e))}await Promise.all(t)}}var agent=Agent$2,api$1={};const assert$9=require$$0__default.default,{Readable:Readable$3}=require$$0__default$1.default,{RequestAbortedError:RequestAbortedError$6,NotSupportedError:NotSupportedError,InvalidArgumentError:InvalidArgumentError$7}=errors$1,util$c=util$l,{ReadableStreamFrom:ReadableStreamFrom,toUSVString:toUSVString$1}=util$l;let Blob$1;const kConsume=Symbol("kConsume"),kReading=Symbol("kReading"),kBody=Symbol("kBody"),kAbort=Symbol("abort"),kContentType=Symbol("kContentType");var readable=class extends Readable$3{constructor({resume:e,abort:t,contentType:r="",highWaterMark:n=65536}){super({autoDestroy:!0,read:e,highWaterMark:n}),this._readableState.dataEmitted=!1,this[kAbort]=t,this[kConsume]=null,this[kBody]=null,this[kContentType]=r,this[kReading]=!1}destroy(e){return this.destroyed?this:(e||this._readableState.endEmitted||(e=new RequestAbortedError$6),e&&this[kAbort](),super.destroy(e))}emit(e,...t){return"data"===e?this._readableState.dataEmitted=!0:"error"===e&&(this._readableState.errorEmitted=!0),super.emit(e,...t)}on(e,...t){return"data"!==e&&"readable"!==e||(this[kReading]=!0),super.on(e,...t)}addListener(e,...t){return this.on(e,...t)}off(e,...t){const r=super.off(e,...t);return"data"!==e&&"readable"!==e||(this[kReading]=this.listenerCount("data")>0||this.listenerCount("readable")>0),r}removeListener(e,...t){return this.off(e,...t)}push(e){return this[kConsume]&&null!==e&&0===this.readableLength?(consumePush(this[kConsume],e),!this[kReading]||super.push(e)):super.push(e)}async text(){return consume(this,"text")}async json(){return consume(this,"json")}async blob(){return consume(this,"blob")}async arrayBuffer(){return consume(this,"arrayBuffer")}async formData(){throw new NotSupportedError}get bodyUsed(){return util$c.isDisturbed(this)}get body(){return this[kBody]||(this[kBody]=ReadableStreamFrom(this),this[kConsume]&&(this[kBody].getReader(),assert$9(this[kBody].locked))),this[kBody]}async dump(e){let t=e&&Number.isFinite(e.limit)?e.limit:262144;const r=e&&e.signal,n=()=>{this.destroy()};let o;if(r){if("object"!=typeof r||!("aborted"in r))throw new InvalidArgumentError$7("signal must be an AbortSignal");util$c.throwIfAborted(r),o=util$c.addAbortListener(r,n)}try{for await(const e of this)if(util$c.throwIfAborted(r),t-=Buffer.byteLength(e),t<0)return}catch{util$c.throwIfAborted(r)}finally{"function"==typeof o?o():o&&o[Symbol.dispose]()}}};function isLocked(e){return e[kBody]&&!0===e[kBody].locked||e[kConsume]}function isUnusable(e){return util$c.isDisturbed(e)||isLocked(e)}async function consume(e,t){if(isUnusable(e))throw new TypeError("unusable");return assert$9(!e[kConsume]),new Promise(((r,n)=>{e[kConsume]={type:t,stream:e,resolve:r,reject:n,length:0,body:[]},e.on("error",(function(e){consumeFinish(this[kConsume],e)})).on("close",(function(){null!==this[kConsume].body&&consumeFinish(this[kConsume],new RequestAbortedError$6)})),process.nextTick(consumeStart,e[kConsume])}))}function consumeStart(e){if(null===e.body)return;const{_readableState:t}=e.stream;for(const r of t.buffer)consumePush(e,r);for(t.endEmitted?consumeEnd(this[kConsume]):e.stream.on("end",(function(){consumeEnd(this[kConsume])})),e.stream.resume();null!=e.stream.read(););}function consumeEnd(e){const{type:t,body:r,resolve:n,stream:o,length:i}=e;try{if("text"===t)n(toUSVString$1(Buffer.concat(r)));else if("json"===t)n(JSON.parse(Buffer.concat(r)));else if("arrayBuffer"===t){const e=new Uint8Array(i);let t=0;for(const n of r)e.set(n,t),t+=n.byteLength;n(e)}else"blob"===t&&(Blob$1||(Blob$1=require("buffer").Blob),n(new Blob$1(r,{type:o[kContentType]})));consumeFinish(e)}catch(e){o.destroy(e)}}function consumePush(e,t){e.length+=t.length,e.body.push(t)}function consumeFinish(e,t){null!==e.body&&(t?e.reject(t):e.resolve(),e.type=null,e.stream=null,e.resolve=null,e.reject=null,e.length=0,e.body=null)}const assert$8=require$$0__default.default,{ResponseStatusCodeError:ResponseStatusCodeError}=errors$1,{toUSVString:toUSVString}=util$l;async function getResolveErrorBodyCallback$2({callback:e,body:t,contentType:r,statusCode:n,statusMessage:o,headers:i}){assert$8(t);let s=[],A=0;for await(const e of t)if(s.push(e),A+=e.length,A>131072){s=null;break}if(204!==n&&r&&s){try{if(r.startsWith("application/json")){const t=JSON.parse(toUSVString(Buffer.concat(s)));return void process.nextTick(e,new ResponseStatusCodeError(`Response status code ${n}${o?`: ${o}`:""}`,n,i,t))}if(r.startsWith("text/")){const t=toUSVString(Buffer.concat(s));return void process.nextTick(e,new ResponseStatusCodeError(`Response status code ${n}${o?`: ${o}`:""}`,n,i,t))}}catch(e){}process.nextTick(e,new ResponseStatusCodeError(`Response status code ${n}${o?`: ${o}`:""}`,n,i))}else process.nextTick(e,new ResponseStatusCodeError(`Response status code ${n}${o?`: ${o}`:""}`,n,i))}var util$b={getResolveErrorBodyCallback:getResolveErrorBodyCallback$2};const{addAbortListener:addAbortListener$1}=util$l,{RequestAbortedError:RequestAbortedError$5}=errors$1,kListener=Symbol("kListener"),kSignal$1=Symbol("kSignal");function abort(e){e.abort?e.abort():e.onError(new RequestAbortedError$5)}function addSignal$5(e,t){e[kSignal$1]=null,e[kListener]=null,t&&(t.aborted?abort(e):(e[kSignal$1]=t,e[kListener]=()=>{abort(e)},addAbortListener$1(e[kSignal$1],e[kListener])))}function removeSignal$5(e){e[kSignal$1]&&("removeEventListener"in e[kSignal$1]?e[kSignal$1].removeEventListener("abort",e[kListener]):e[kSignal$1].removeListener("abort",e[kListener]),e[kSignal$1]=null,e[kListener]=null)}var abortSignal={addSignal:addSignal$5,removeSignal:removeSignal$5};const Readable$2=readable,{InvalidArgumentError:InvalidArgumentError$6,RequestAbortedError:RequestAbortedError$4}=errors$1,util$a=util$l,{getResolveErrorBodyCallback:getResolveErrorBodyCallback$1}=util$b,{AsyncResource:AsyncResource$4}=require$$4__default$2.default,{addSignal:addSignal$4,removeSignal:removeSignal$4}=abortSignal;class RequestHandler extends AsyncResource$4{constructor(e,t){if(!e||"object"!=typeof e)throw new InvalidArgumentError$6("invalid opts");const{signal:r,method:n,opaque:o,body:i,onInfo:s,responseHeaders:A,throwOnError:a,highWaterMark:c}=e;try{if("function"!=typeof t)throw new InvalidArgumentError$6("invalid callback");if(c&&("number"!=typeof c||c<0))throw new InvalidArgumentError$6("invalid highWaterMark");if(r&&"function"!=typeof r.on&&"function"!=typeof r.addEventListener)throw new InvalidArgumentError$6("signal must be an EventEmitter or EventTarget");if("CONNECT"===n)throw new InvalidArgumentError$6("invalid method");if(s&&"function"!=typeof s)throw new InvalidArgumentError$6("invalid onInfo callback");super("UNDICI_REQUEST")}catch(e){throw util$a.isStream(i)&&util$a.destroy(i.on("error",util$a.nop),e),e}this.responseHeaders=A||null,this.opaque=o||null,this.callback=t,this.res=null,this.abort=null,this.body=i,this.trailers={},this.context=null,this.onInfo=s||null,this.throwOnError=a,this.highWaterMark=c,util$a.isStream(i)&&i.on("error",(e=>{this.onError(e)})),addSignal$4(this,r)}onConnect(e,t){if(!this.callback)throw new RequestAbortedError$4;this.abort=e,this.context=t}onHeaders(e,t,r,n){const{callback:o,opaque:i,abort:s,context:A,responseHeaders:a,highWaterMark:c}=this,u="raw"===a?util$a.parseRawHeaders(t):util$a.parseHeaders(t);if(e<200)return void(this.onInfo&&this.onInfo({statusCode:e,headers:u}));const l=("raw"===a?util$a.parseHeaders(t):u)["content-type"],d=new Readable$2({resume:r,abort:s,contentType:l,highWaterMark:c});this.callback=null,this.res=d,null!==o&&(this.throwOnError&&e>=400?this.runInAsyncScope(getResolveErrorBodyCallback$1,null,{callback:o,body:d,contentType:l,statusCode:e,statusMessage:n,headers:u}):this.runInAsyncScope(o,null,null,{statusCode:e,headers:u,trailers:this.trailers,opaque:i,body:d,context:A}))}onData(e){const{res:t}=this;return t.push(e)}onComplete(e){const{res:t}=this;removeSignal$4(this),util$a.parseHeaders(e,this.trailers),t.push(null)}onError(e){const{res:t,callback:r,body:n,opaque:o}=this;removeSignal$4(this),r&&(this.callback=null,queueMicrotask((()=>{this.runInAsyncScope(r,null,e,{opaque:o})}))),t&&(this.res=null,queueMicrotask((()=>{util$a.destroy(t,e)}))),n&&(this.body=null,util$a.destroy(n,e))}}function request$1(e,t){if(void 0===t)return new Promise(((t,r)=>{request$1.call(this,e,((e,n)=>e?r(e):t(n)))}));try{this.dispatch(e,new RequestHandler(e,t))}catch(r){if("function"!=typeof t)throw r;const n=e&&e.opaque;queueMicrotask((()=>t(r,{opaque:n})))}}var apiRequest=request$1;const{finished:finished,PassThrough:PassThrough$1}=require$$0__default$1.default,{InvalidArgumentError:InvalidArgumentError$5,InvalidReturnValueError:InvalidReturnValueError$1,RequestAbortedError:RequestAbortedError$3}=errors$1,util$9=util$l,{getResolveErrorBodyCallback:getResolveErrorBodyCallback}=util$b,{AsyncResource:AsyncResource$3}=require$$4__default$2.default,{addSignal:addSignal$3,removeSignal:removeSignal$3}=abortSignal;class StreamHandler extends AsyncResource$3{constructor(e,t,r){if(!e||"object"!=typeof e)throw new InvalidArgumentError$5("invalid opts");const{signal:n,method:o,opaque:i,body:s,onInfo:A,responseHeaders:a,throwOnError:c}=e;try{if("function"!=typeof r)throw new InvalidArgumentError$5("invalid callback");if("function"!=typeof t)throw new InvalidArgumentError$5("invalid factory");if(n&&"function"!=typeof n.on&&"function"!=typeof n.addEventListener)throw new InvalidArgumentError$5("signal must be an EventEmitter or EventTarget");if("CONNECT"===o)throw new InvalidArgumentError$5("invalid method");if(A&&"function"!=typeof A)throw new InvalidArgumentError$5("invalid onInfo callback");super("UNDICI_STREAM")}catch(e){throw util$9.isStream(s)&&util$9.destroy(s.on("error",util$9.nop),e),e}this.responseHeaders=a||null,this.opaque=i||null,this.factory=t,this.callback=r,this.res=null,this.abort=null,this.context=null,this.trailers=null,this.body=s,this.onInfo=A||null,this.throwOnError=c||!1,util$9.isStream(s)&&s.on("error",(e=>{this.onError(e)})),addSignal$3(this,n)}onConnect(e,t){if(!this.callback)throw new RequestAbortedError$3;this.abort=e,this.context=t}onHeaders(e,t,r,n){const{factory:o,opaque:i,context:s,callback:A,responseHeaders:a}=this,c="raw"===a?util$9.parseRawHeaders(t):util$9.parseHeaders(t);if(e<200)return void(this.onInfo&&this.onInfo({statusCode:e,headers:c}));let u;if(this.factory=null,this.throwOnError&&e>=400){const r=("raw"===a?util$9.parseHeaders(t):c)["content-type"];u=new PassThrough$1,this.callback=null,this.runInAsyncScope(getResolveErrorBodyCallback,null,{callback:A,body:u,contentType:r,statusCode:e,statusMessage:n,headers:c})}else{if(u=this.runInAsyncScope(o,null,{statusCode:e,headers:c,opaque:i,context:s}),!u||"function"!=typeof u.write||"function"!=typeof u.end||"function"!=typeof u.on)throw new InvalidReturnValueError$1("expected Writable");finished(u,{readable:!1},(e=>{const{callback:t,res:r,opaque:n,trailers:o,abort:i}=this;this.res=null,!e&&r.readable||util$9.destroy(r,e),this.callback=null,this.runInAsyncScope(t,null,e||null,{opaque:n,trailers:o}),e&&i()}))}u.on("drain",r),this.res=u;return!0!==(void 0!==u.writableNeedDrain?u.writableNeedDrain:u._writableState&&u._writableState.needDrain)}onData(e){const{res:t}=this;return t.write(e)}onComplete(e){const{res:t}=this;removeSignal$3(this),this.trailers=util$9.parseHeaders(e),t.end()}onError(e){const{res:t,callback:r,opaque:n,body:o}=this;removeSignal$3(this),this.factory=null,t?(this.res=null,util$9.destroy(t,e)):r&&(this.callback=null,queueMicrotask((()=>{this.runInAsyncScope(r,null,e,{opaque:n})}))),o&&(this.body=null,util$9.destroy(o,e))}}function stream(e,t,r){if(void 0===r)return new Promise(((r,n)=>{stream.call(this,e,t,((e,t)=>e?n(e):r(t)))}));try{this.dispatch(e,new StreamHandler(e,t,r))}catch(t){if("function"!=typeof r)throw t;const n=e&&e.opaque;queueMicrotask((()=>r(t,{opaque:n})))}}var apiStream=stream;const{Readable:Readable$1,Duplex:Duplex,PassThrough:PassThrough}=require$$0__default$1.default,{InvalidArgumentError:InvalidArgumentError$4,InvalidReturnValueError:InvalidReturnValueError,RequestAbortedError:RequestAbortedError$2}=errors$1,util$8=util$l,{AsyncResource:AsyncResource$2}=require$$4__default$2.default,{addSignal:addSignal$2,removeSignal:removeSignal$2}=abortSignal,assert$7=require$$0__default.default,kResume=Symbol("resume");class PipelineRequest extends Readable$1{constructor(){super({autoDestroy:!0}),this[kResume]=null}_read(){const{[kResume]:e}=this;e&&(this[kResume]=null,e())}_destroy(e,t){this._read(),t(e)}}class PipelineResponse extends Readable$1{constructor(e){super({autoDestroy:!0}),this[kResume]=e}_read(){this[kResume]()}_destroy(e,t){e||this._readableState.endEmitted||(e=new RequestAbortedError$2),t(e)}}class PipelineHandler extends AsyncResource$2{constructor(e,t){if(!e||"object"!=typeof e)throw new InvalidArgumentError$4("invalid opts");if("function"!=typeof t)throw new InvalidArgumentError$4("invalid handler");const{signal:r,method:n,opaque:o,onInfo:i,responseHeaders:s}=e;if(r&&"function"!=typeof r.on&&"function"!=typeof r.addEventListener)throw new InvalidArgumentError$4("signal must be an EventEmitter or EventTarget");if("CONNECT"===n)throw new InvalidArgumentError$4("invalid method");if(i&&"function"!=typeof i)throw new InvalidArgumentError$4("invalid onInfo callback");super("UNDICI_PIPELINE"),this.opaque=o||null,this.responseHeaders=s||null,this.handler=t,this.abort=null,this.context=null,this.onInfo=i||null,this.req=(new PipelineRequest).on("error",util$8.nop),this.ret=new Duplex({readableObjectMode:e.objectMode,autoDestroy:!0,read:()=>{const{body:e}=this;e&&e.resume&&e.resume()},write:(e,t,r)=>{const{req:n}=this;n.push(e,t)||n._readableState.destroyed?r():n[kResume]=r},destroy:(e,t)=>{const{body:r,req:n,res:o,ret:i,abort:s}=this;e||i._readableState.endEmitted||(e=new RequestAbortedError$2),s&&e&&s(),util$8.destroy(r,e),util$8.destroy(n,e),util$8.destroy(o,e),removeSignal$2(this),t(e)}}).on("prefinish",(()=>{const{req:e}=this;e.push(null)})),this.res=null,addSignal$2(this,r)}onConnect(e,t){const{ret:r,res:n}=this;if(assert$7(!n,"pipeline cannot be retried"),r.destroyed)throw new RequestAbortedError$2;this.abort=e,this.context=t}onHeaders(e,t,r){const{opaque:n,handler:o,context:i}=this;if(e<200){if(this.onInfo){const r="raw"===this.responseHeaders?util$8.parseRawHeaders(t):util$8.parseHeaders(t);this.onInfo({statusCode:e,headers:r})}return}let s;this.res=new PipelineResponse(r);try{this.handler=null;const r="raw"===this.responseHeaders?util$8.parseRawHeaders(t):util$8.parseHeaders(t);s=this.runInAsyncScope(o,null,{statusCode:e,headers:r,opaque:n,body:this.res,context:i})}catch(e){throw this.res.on("error",util$8.nop),e}if(!s||"function"!=typeof s.on)throw new InvalidReturnValueError("expected Readable");s.on("data",(e=>{const{ret:t,body:r}=this;!t.push(e)&&r.pause&&r.pause()})).on("error",(e=>{const{ret:t}=this;util$8.destroy(t,e)})).on("end",(()=>{const{ret:e}=this;e.push(null)})).on("close",(()=>{const{ret:e}=this;e._readableState.ended||util$8.destroy(e,new RequestAbortedError$2)})),this.body=s}onData(e){const{res:t}=this;return t.push(e)}onComplete(e){const{res:t}=this;t.push(null)}onError(e){const{ret:t}=this;this.handler=null,util$8.destroy(t,e)}}function pipeline$1(e,t){try{const r=new PipelineHandler(e,t);return this.dispatch({...e,body:r.req},r),r.ret}catch(e){return(new PassThrough).destroy(e)}}var apiPipeline=pipeline$1;const{InvalidArgumentError:InvalidArgumentError$3,RequestAbortedError:RequestAbortedError$1,SocketError:SocketError$1}=errors$1,{AsyncResource:AsyncResource$1}=require$$4__default$2.default,util$7=util$l,{addSignal:addSignal$1,removeSignal:removeSignal$1}=abortSignal,assert$6=require$$0__default.default;class UpgradeHandler extends AsyncResource$1{constructor(e,t){if(!e||"object"!=typeof e)throw new InvalidArgumentError$3("invalid opts");if("function"!=typeof t)throw new InvalidArgumentError$3("invalid callback");const{signal:r,opaque:n,responseHeaders:o}=e;if(r&&"function"!=typeof r.on&&"function"!=typeof r.addEventListener)throw new InvalidArgumentError$3("signal must be an EventEmitter or EventTarget");super("UNDICI_UPGRADE"),this.responseHeaders=o||null,this.opaque=n||null,this.callback=t,this.abort=null,this.context=null,addSignal$1(this,r)}onConnect(e,t){if(!this.callback)throw new RequestAbortedError$1;this.abort=e,this.context=null}onHeaders(){throw new SocketError$1("bad upgrade",null)}onUpgrade(e,t,r){const{callback:n,opaque:o,context:i}=this;assert$6.strictEqual(e,101),removeSignal$1(this),this.callback=null;const s="raw"===this.responseHeaders?util$7.parseRawHeaders(t):util$7.parseHeaders(t);this.runInAsyncScope(n,null,null,{headers:s,socket:r,opaque:o,context:i})}onError(e){const{callback:t,opaque:r}=this;removeSignal$1(this),t&&(this.callback=null,queueMicrotask((()=>{this.runInAsyncScope(t,null,e,{opaque:r})})))}}function upgrade(e,t){if(void 0===t)return new Promise(((t,r)=>{upgrade.call(this,e,((e,n)=>e?r(e):t(n)))}));try{const r=new UpgradeHandler(e,t);this.dispatch({...e,method:e.method||"GET",upgrade:e.protocol||"Websocket"},r)}catch(r){if("function"!=typeof t)throw r;const n=e&&e.opaque;queueMicrotask((()=>t(r,{opaque:n})))}}var apiUpgrade=upgrade;const{AsyncResource:AsyncResource}=require$$4__default$2.default,{InvalidArgumentError:InvalidArgumentError$2,RequestAbortedError:RequestAbortedError,SocketError:SocketError}=errors$1,util$6=util$l,{addSignal:addSignal,removeSignal:removeSignal}=abortSignal;class ConnectHandler extends AsyncResource{constructor(e,t){if(!e||"object"!=typeof e)throw new InvalidArgumentError$2("invalid opts");if("function"!=typeof t)throw new InvalidArgumentError$2("invalid callback");const{signal:r,opaque:n,responseHeaders:o}=e;if(r&&"function"!=typeof r.on&&"function"!=typeof r.addEventListener)throw new InvalidArgumentError$2("signal must be an EventEmitter or EventTarget");super("UNDICI_CONNECT"),this.opaque=n||null,this.responseHeaders=o||null,this.callback=t,this.abort=null,addSignal(this,r)}onConnect(e,t){if(!this.callback)throw new RequestAbortedError;this.abort=e,this.context=t}onHeaders(){throw new SocketError("bad connect",null)}onUpgrade(e,t,r){const{callback:n,opaque:o,context:i}=this;removeSignal(this),this.callback=null;let s=t;null!=s&&(s="raw"===this.responseHeaders?util$6.parseRawHeaders(t):util$6.parseHeaders(t)),this.runInAsyncScope(n,null,null,{statusCode:e,headers:s,socket:r,opaque:o,context:i})}onError(e){const{callback:t,opaque:r}=this;removeSignal(this),t&&(this.callback=null,queueMicrotask((()=>{this.runInAsyncScope(t,null,e,{opaque:r})})))}}function connect(e,t){if(void 0===t)return new Promise(((t,r)=>{connect.call(this,e,((e,n)=>e?r(e):t(n)))}));try{const r=new ConnectHandler(e,t);this.dispatch({...e,method:"CONNECT"},r)}catch(r){if("function"!=typeof t)throw r;const n=e&&e.opaque;queueMicrotask((()=>t(r,{opaque:n})))}}var apiConnect=connect;api$1.request=apiRequest,api$1.stream=apiStream,api$1.pipeline=apiPipeline,api$1.upgrade=apiUpgrade,api$1.connect=apiConnect;const globalDispatcher=Symbol.for("undici.globalDispatcher.1"),{InvalidArgumentError:InvalidArgumentError$1}=errors$1,Agent$1=agent;function setGlobalDispatcher$1(e){if(!e||"function"!=typeof e.dispatch)throw new InvalidArgumentError$1("Argument agent must implement Agent");Object.defineProperty(globalThis,globalDispatcher,{value:e,writable:!0,enumerable:!1,configurable:!1})}function getGlobalDispatcher$5(){return globalThis[globalDispatcher]}void 0===getGlobalDispatcher$5()&&setGlobalDispatcher$1(new Agent$1);var global$1={setGlobalDispatcher:setGlobalDispatcher$1,getGlobalDispatcher:getGlobalDispatcher$5};const{kHeadersList:kHeadersList$5}=symbols$4,{kGuard:kGuard$4}=symbols$3,{kEnumerableProperty:kEnumerableProperty$7}=util$l,{makeIterator:makeIterator,isValidHeaderName:isValidHeaderName$1,isValidHeaderValue:isValidHeaderValue}=util$k,{webidl:webidl$a}=webidl_1,assert$5=require$$0__default.default,kHeadersMap=Symbol("headers map"),kHeadersSortedMap=Symbol("headers map sorted");function headerValueNormalize(e){let t=e.length;for(;/[\r\n\t ]/.test(e.charAt(--t)););return e.slice(0,t+1).replace(/^[\r\n\t ]+/,"")}function fill$1(e,t){if(Array.isArray(t))for(const r of t){if(2!==r.length)throw webidl$a.errors.exception({header:"Headers constructor",message:`expected name/value pair to be length 2, found ${r.length}.`});e.append(r[0],r[1])}else{if("object"!=typeof t||null===t)throw webidl$a.errors.conversionFailed({prefix:"Headers constructor",argument:"Argument 1",types:["sequence<sequence<ByteString>>","record<ByteString, ByteString>"]});for(const[r,n]of Object.entries(t))e.append(r,n)}}class HeadersList$2{cookies=null;constructor(e){e instanceof HeadersList$2?(this[kHeadersMap]=new Map(e[kHeadersMap]),this[kHeadersSortedMap]=e[kHeadersSortedMap],this.cookies=e.cookies):(this[kHeadersMap]=new Map(e),this[kHeadersSortedMap]=null)}contains(e){return e=e.toLowerCase(),this[kHeadersMap].has(e)}clear(){this[kHeadersMap].clear(),this[kHeadersSortedMap]=null,this.cookies=null}append(e,t){this[kHeadersSortedMap]=null;const r=e.toLowerCase(),n=this[kHeadersMap].get(r);if(n){const e="cookie"===r?"; ":", ";this[kHeadersMap].set(r,{name:n.name,value:`${n.value}${e}${t}`})}else this[kHeadersMap].set(r,{name:e,value:t});"set-cookie"===r&&(this.cookies??=[],this.cookies.push(t))}set(e,t){this[kHeadersSortedMap]=null;const r=e.toLowerCase();return"set-cookie"===r&&(this.cookies=[t]),this[kHeadersMap].set(r,{name:e,value:t})}delete(e){return this[kHeadersSortedMap]=null,"set-cookie"===(e=e.toLowerCase())&&(this.cookies=null),this[kHeadersMap].delete(e)}get(e){return this.contains(e)?this[kHeadersMap].get(e.toLowerCase())?.value??null:null}*[Symbol.iterator](){for(const[e,{value:t}]of this[kHeadersMap])yield[e,t]}get entries(){const e={};if(this[kHeadersMap].size)for(const{name:t,value:r}of this[kHeadersMap].values())e[t]=r;return e}}class Headers$4{constructor(e=void 0){this[kHeadersList$5]=new HeadersList$2,this[kGuard$4]="none",void 0!==e&&fill$1(this,e=webidl$a.converters.HeadersInit(e))}append(e,t){if(webidl$a.brandCheck(this,Headers$4),webidl$a.argumentLengthCheck(arguments,2,{header:"Headers.append"}),e=webidl$a.converters.ByteString(e),t=headerValueNormalize(t=webidl$a.converters.ByteString(t)),!isValidHeaderName$1(e))throw webidl$a.errors.invalidArgument({prefix:"Headers.append",value:e,type:"header name"});if(!isValidHeaderValue(t))throw webidl$a.errors.invalidArgument({prefix:"Headers.append",value:t,type:"header value"});if("immutable"===this[kGuard$4])throw new TypeError("immutable");return this[kGuard$4],this[kHeadersList$5].append(e,t)}delete(e){if(webidl$a.brandCheck(this,Headers$4),webidl$a.argumentLengthCheck(arguments,1,{header:"Headers.delete"}),e=webidl$a.converters.ByteString(e),!isValidHeaderName$1(e))throw webidl$a.errors.invalidArgument({prefix:"Headers.delete",value:e,type:"header name"});if("immutable"===this[kGuard$4])throw new TypeError("immutable");if(this[kGuard$4],this[kHeadersList$5].contains(e))return this[kHeadersList$5].delete(e)}get(e){if(webidl$a.brandCheck(this,Headers$4),webidl$a.argumentLengthCheck(arguments,1,{header:"Headers.get"}),e=webidl$a.converters.ByteString(e),!isValidHeaderName$1(e))throw webidl$a.errors.invalidArgument({prefix:"Headers.get",value:e,type:"header name"});return this[kHeadersList$5].get(e)}has(e){if(webidl$a.brandCheck(this,Headers$4),webidl$a.argumentLengthCheck(arguments,1,{header:"Headers.has"}),e=webidl$a.converters.ByteString(e),!isValidHeaderName$1(e))throw webidl$a.errors.invalidArgument({prefix:"Headers.has",value:e,type:"header name"});return this[kHeadersList$5].contains(e)}set(e,t){if(webidl$a.brandCheck(this,Headers$4),webidl$a.argumentLengthCheck(arguments,2,{header:"Headers.set"}),e=webidl$a.converters.ByteString(e),t=headerValueNormalize(t=webidl$a.converters.ByteString(t)),!isValidHeaderName$1(e))throw webidl$a.errors.invalidArgument({prefix:"Headers.set",value:e,type:"header name"});if(!isValidHeaderValue(t))throw webidl$a.errors.invalidArgument({prefix:"Headers.set",value:t,type:"header value"});if("immutable"===this[kGuard$4])throw new TypeError("immutable");return this[kGuard$4],this[kHeadersList$5].set(e,t)}getSetCookie(){webidl$a.brandCheck(this,Headers$4);const e=this[kHeadersList$5].cookies;return e?[...e]:[]}get[kHeadersSortedMap](){if(this[kHeadersList$5][kHeadersSortedMap])return this[kHeadersList$5][kHeadersSortedMap];const e=[],t=[...this[kHeadersList$5]].sort(((e,t)=>e[0]<t[0]?-1:1)),r=this[kHeadersList$5].cookies;for(const[n,o]of t)if("set-cookie"===n)for(const t of r)e.push([n,t]);else assert$5(null!==o),e.push([n,o]);return this[kHeadersList$5][kHeadersSortedMap]=e,e}keys(){return webidl$a.brandCheck(this,Headers$4),makeIterator((()=>[...this[kHeadersSortedMap].values()]),"Headers","key")}values(){return webidl$a.brandCheck(this,Headers$4),makeIterator((()=>[...this[kHeadersSortedMap].values()]),"Headers","value")}entries(){return webidl$a.brandCheck(this,Headers$4),makeIterator((()=>[...this[kHeadersSortedMap].values()]),"Headers","key+value")}forEach(e,t=globalThis){if(webidl$a.brandCheck(this,Headers$4),webidl$a.argumentLengthCheck(arguments,1,{header:"Headers.forEach"}),"function"!=typeof e)throw new TypeError("Failed to execute 'forEach' on 'Headers': parameter 1 is not of type 'Function'.");for(const[r,n]of this)e.apply(t,[n,r,this])}[Symbol.for("nodejs.util.inspect.custom")](){return webidl$a.brandCheck(this,Headers$4),this[kHeadersList$5]}}Headers$4.prototype[Symbol.iterator]=Headers$4.prototype.entries,Object.defineProperties(Headers$4.prototype,{append:kEnumerableProperty$7,delete:kEnumerableProperty$7,get:kEnumerableProperty$7,has:kEnumerableProperty$7,set:kEnumerableProperty$7,getSetCookie:kEnumerableProperty$7,keys:kEnumerableProperty$7,values:kEnumerableProperty$7,entries:kEnumerableProperty$7,forEach:kEnumerableProperty$7,[Symbol.iterator]:{enumerable:!1},[Symbol.toStringTag]:{value:"Headers",configurable:!0}}),webidl$a.converters.HeadersInit=function(e){if("Object"===webidl$a.util.Type(e))return e[Symbol.iterator]?webidl$a.converters["sequence<sequence<ByteString>>"](e):webidl$a.converters["record<ByteString, ByteString>"](e);throw webidl$a.errors.conversionFailed({prefix:"Headers constructor",argument:"Argument 1",types:["sequence<sequence<ByteString>>","record<ByteString, ByteString>"]})};var headers={fill:fill$1,Headers:Headers$4,HeadersList:HeadersList$2};const{Headers:Headers$3,HeadersList:HeadersList$1,fill:fill}=headers,{extractBody:extractBody$1,cloneBody:cloneBody$1,mixinBody:mixinBody$1}=body,util$5=util$l,{kEnumerableProperty:kEnumerableProperty$6}=util$5,{isValidReasonPhrase:isValidReasonPhrase,isCancelled:isCancelled$1,isAborted:isAborted$1,isBlobLike:isBlobLike$2,serializeJavascriptValueToJSONString:serializeJavascriptValueToJSONString,isErrorLike:isErrorLike$1,isomorphicEncode:isomorphicEncode$1}=util$k,{redirectStatus:redirectStatus$1,nullBodyStatus:nullBodyStatus$1,DOMException:DOMException$4}=constants$3,{kState:kState$6,kHeaders:kHeaders$3,kGuard:kGuard$3,kRealm:kRealm$3}=symbols$3,{webidl:webidl$9}=webidl_1,{FormData:FormData}=formdata,{getGlobalOrigin:getGlobalOrigin$2}=global$2,{URLSerializer:URLSerializer$3}=dataURL,{kHeadersList:kHeadersList$4}=symbols$4,assert$4=require$$0__default.default,{types:types$2}=require$$0__default$2.default,ReadableStream$1=globalThis.ReadableStream||require$$13__default.default.ReadableStream;class Response$2{static error(){const e={settingsObject:{}},t=new Response$2;return t[kState$6]=makeNetworkError$1(),t[kRealm$3]=e,t[kHeaders$3][kHeadersList$4]=t[kState$6].headersList,t[kHeaders$3][kGuard$3]="immutable",t[kHeaders$3][kRealm$3]=e,t}static json(e,t={}){webidl$9.argumentLengthCheck(arguments,1,{header:"Response.json"}),null!==t&&(t=webidl$9.converters.ResponseInit(t));const r=new TextEncoder("utf-8").encode(serializeJavascriptValueToJSONString(e)),n=extractBody$1(r),o={settingsObject:{}},i=new Response$2;return i[kRealm$3]=o,i[kHeaders$3][kGuard$3]="response",i[kHeaders$3][kRealm$3]=o,initializeResponse(i,t,{body:n[0],type:"application/json"}),i}static redirect(e,t=302){const r={settingsObject:{}};let n;webidl$9.argumentLengthCheck(arguments,1,{header:"Response.redirect"}),e=webidl$9.converters.USVString(e),t=webidl$9.converters["unsigned short"](t);try{n=new URL(e,getGlobalOrigin$2())}catch(t){throw Object.assign(new TypeError("Failed to parse URL from "+e),{cause:t})}if(!redirectStatus$1.includes(t))throw new RangeError("Invalid status code "+t);const o=new Response$2;o[kRealm$3]=r,o[kHeaders$3][kGuard$3]="immutable",o[kHeaders$3][kRealm$3]=r,o[kState$6].status=t;const i=isomorphicEncode$1(URLSerializer$3(n));return o[kState$6].headersList.append("location",i),o}constructor(e=null,t={}){null!==e&&(e=webidl$9.converters.BodyInit(e)),t=webidl$9.converters.ResponseInit(t),this[kRealm$3]={settingsObject:{}},this[kState$6]=makeResponse$1({}),this[kHeaders$3]=new Headers$3,this[kHeaders$3][kGuard$3]="response",this[kHeaders$3][kHeadersList$4]=this[kState$6].headersList,this[kHeaders$3][kRealm$3]=this[kRealm$3];let r=null;if(null!=e){const[t,n]=extractBody$1(e);r={body:t,type:n}}initializeResponse(this,t,r)}get type(){return webidl$9.brandCheck(this,Response$2),this[kState$6].type}get url(){webidl$9.brandCheck(this,Response$2);const e=this[kState$6].urlList,t=e[e.length-1]??null;return null===t?"":URLSerializer$3(t,!0)}get redirected(){return webidl$9.brandCheck(this,Response$2),this[kState$6].urlList.length>1}get status(){return webidl$9.brandCheck(this,Response$2),this[kState$6].status}get ok(){return webidl$9.brandCheck(this,Response$2),this[kState$6].status>=200&&this[kState$6].status<=299}get statusText(){return webidl$9.brandCheck(this,Response$2),this[kState$6].statusText}get headers(){return webidl$9.brandCheck(this,Response$2),this[kHeaders$3]}get body(){return webidl$9.brandCheck(this,Response$2),this[kState$6].body?this[kState$6].body.stream:null}get bodyUsed(){return webidl$9.brandCheck(this,Response$2),!!this[kState$6].body&&util$5.isDisturbed(this[kState$6].body.stream)}clone(){if(webidl$9.brandCheck(this,Response$2),this.bodyUsed||this.body&&this.body.locked)throw webidl$9.errors.exception({header:"Response.clone",message:"Body has already been consumed."});const e=cloneResponse$1(this[kState$6]),t=new Response$2;return t[kState$6]=e,t[kRealm$3]=this[kRealm$3],t[kHeaders$3][kHeadersList$4]=e.headersList,t[kHeaders$3][kGuard$3]=this[kHeaders$3][kGuard$3],t[kHeaders$3][kRealm$3]=this[kHeaders$3][kRealm$3],t}}function cloneResponse$1(e){if(e.internalResponse)return filterResponse$1(cloneResponse$1(e.internalResponse),e.type);const t=makeResponse$1({...e,body:null});return null!=e.body&&(t.body=cloneBody$1(e.body)),t}function makeResponse$1(e){return{aborted:!1,rangeRequested:!1,timingAllowPassed:!1,requestIncludesCredentials:!1,type:"default",status:200,timingInfo:null,cacheState:"",statusText:"",...e,headersList:e.headersList?new HeadersList$1(e.headersList):new HeadersList$1,urlList:e.urlList?[...e.urlList]:[]}}function makeNetworkError$1(e){return makeResponse$1({type:"error",status:0,error:isErrorLike$1(e)?e:new Error(e?String(e):e),aborted:e&&"AbortError"===e.name})}function makeFilteredResponse(e,t){return t={internalResponse:e,...t},new Proxy(e,{get:(e,r)=>r in t?t[r]:e[r],set:(e,r,n)=>(assert$4(!(r in t)),e[r]=n,!0)})}function filterResponse$1(e,t){return"basic"===t?makeFilteredResponse(e,{type:"basic",headersList:e.headersList}):"cors"===t?makeFilteredResponse(e,{type:"cors",headersList:e.headersList}):"opaque"===t?makeFilteredResponse(e,{type:"opaque",urlList:Object.freeze([]),status:0,statusText:"",body:null}):"opaqueredirect"===t?makeFilteredResponse(e,{type:"opaqueredirect",status:0,statusText:"",headersList:[],body:null}):void assert$4(!1)}function makeAppropriateNetworkError$1(e,t=null){return assert$4(isCancelled$1(e)),isAborted$1(e)?makeNetworkError$1(Object.assign(new DOMException$4("The operation was aborted.","AbortError"),{cause:t})):makeNetworkError$1(Object.assign(new DOMException$4("Request was cancelled."),{cause:t}))}function initializeResponse(e,t,r){if(null!==t.status&&(t.status<200||t.status>599))throw new RangeError('init["status"] must be in the range of 200 to 599, inclusive.');if("statusText"in t&&null!=t.statusText&&!isValidReasonPhrase(String(t.statusText)))throw new TypeError("Invalid statusText");if("status"in t&&null!=t.status&&(e[kState$6].status=t.status),"statusText"in t&&null!=t.statusText&&(e[kState$6].statusText=t.statusText),"headers"in t&&null!=t.headers&&fill(e[kHeaders$3],t.headers),r){if(nullBodyStatus$1.includes(e.status))throw webidl$9.errors.exception({header:"Response constructor",message:"Invalid response status code "+e.status});e[kState$6].body=r.body,null==r.type||e[kState$6].headersList.contains("Content-Type")||e[kState$6].headersList.append("content-type",r.type)}}mixinBody$1(Response$2),Object.defineProperties(Response$2.prototype,{type:kEnumerableProperty$6,url:kEnumerableProperty$6,status:kEnumerableProperty$6,ok:kEnumerableProperty$6,redirected:kEnumerableProperty$6,statusText:kEnumerableProperty$6,headers:kEnumerableProperty$6,clone:kEnumerableProperty$6,body:kEnumerableProperty$6,bodyUsed:kEnumerableProperty$6,[Symbol.toStringTag]:{value:"Response",configurable:!0}}),Object.defineProperties(Response$2,{json:kEnumerableProperty$6,redirect:kEnumerableProperty$6,error:kEnumerableProperty$6}),webidl$9.converters.ReadableStream=webidl$9.interfaceConverter(ReadableStream$1),webidl$9.converters.FormData=webidl$9.interfaceConverter(FormData),webidl$9.converters.URLSearchParams=webidl$9.interfaceConverter(URLSearchParams),webidl$9.converters.XMLHttpRequestBodyInit=function(e){return"string"==typeof e?webidl$9.converters.USVString(e):isBlobLike$2(e)?webidl$9.converters.Blob(e,{strict:!1}):types$2.isAnyArrayBuffer(e)||types$2.isTypedArray(e)||types$2.isDataView(e)?webidl$9.converters.BufferSource(e):util$5.isFormDataLike(e)?webidl$9.converters.FormData(e,{strict:!1}):e instanceof URLSearchParams?webidl$9.converters.URLSearchParams(e):webidl$9.converters.DOMString(e)},webidl$9.converters.BodyInit=function(e){return e instanceof ReadableStream$1?webidl$9.converters.ReadableStream(e):e?.[Symbol.asyncIterator]?e:webidl$9.converters.XMLHttpRequestBodyInit(e)},webidl$9.converters.ResponseInit=webidl$9.dictionaryConverter([{key:"status",converter:webidl$9.converters["unsigned short"],defaultValue:200},{key:"statusText",converter:webidl$9.converters.ByteString,defaultValue:""},{key:"headers",converter:webidl$9.converters.HeadersInit}]);var response={makeNetworkError:makeNetworkError$1,makeResponse:makeResponse$1,makeAppropriateNetworkError:makeAppropriateNetworkError$1,filterResponse:filterResponse$1,Response:Response$2,cloneResponse:cloneResponse$1};const{extractBody:extractBody,mixinBody:mixinBody,cloneBody:cloneBody}=body,{Headers:Headers$2,fill:fillHeaders,HeadersList:HeadersList}=headers,{FinalizationRegistry:FinalizationRegistry}=dispatcherWeakref(),util$4=util$l,{isValidHTTPToken:isValidHTTPToken,sameOrigin:sameOrigin$1,normalizeMethod:normalizeMethod,makePolicyContainer:makePolicyContainer$1}=util$k,{forbiddenMethods:forbiddenMethods,corsSafeListedMethods:corsSafeListedMethods,referrerPolicy:referrerPolicy,requestRedirect:requestRedirect,requestMode:requestMode,requestCredentials:requestCredentials,requestCache:requestCache,requestDuplex:requestDuplex}=constants$3,{kEnumerableProperty:kEnumerableProperty$5}=util$4,{kHeaders:kHeaders$2,kSignal:kSignal,kState:kState$5,kGuard:kGuard$2,kRealm:kRealm$2}=symbols$3,{webidl:webidl$8}=webidl_1,{getGlobalOrigin:getGlobalOrigin$1}=global$2,{URLSerializer:URLSerializer$2}=dataURL,{kHeadersList:kHeadersList$3}=symbols$4,assert$3=require$$0__default.default,{getMaxListeners:getMaxListeners,setMaxListeners:setMaxListeners,getEventListeners:getEventListeners,defaultMaxListeners:defaultMaxListeners}=require$$10__default.default;let TransformStream$1=globalThis.TransformStream;const kInit=Symbol("init"),kAbortController=Symbol("abortController"),requestFinalizer=new FinalizationRegistry((({signal:e,abort:t})=>{e.removeEventListener("abort",t)}));class Request$2{constructor(e,t={}){if(e===kInit)return;webidl$8.argumentLengthCheck(arguments,1,{header:"Request constructor"}),e=webidl$8.converters.RequestInfo(e),t=webidl$8.converters.RequestInit(t),this[kRealm$2]={settingsObject:{baseUrl:getGlobalOrigin$1(),get origin(){return this.baseUrl?.origin},policyContainer:makePolicyContainer$1()}};let r=null,n=null;const o=this[kRealm$2].settingsObject.baseUrl;let i=null;if("string"==typeof e){let t;try{t=new URL(e,o)}catch(t){throw new TypeError("Failed to parse URL from "+e,{cause:t})}if(t.username||t.password)throw new TypeError("Request cannot be constructed from a URL that includes credentials: "+e);r=makeRequest$2({urlList:[t]}),n="cors"}else assert$3(e instanceof Request$2),r=e[kState$5],i=e[kSignal];const s=this[kRealm$2].settingsObject.origin;let A,a="client";if("EnvironmentSettingsObject"===r.window?.constructor?.name&&sameOrigin$1(r.window,s)&&(a=r.window),null!=t.window)throw new TypeError(`'window' option '${a}' must be null`);if("window"in t&&(a="no-window"),r=makeRequest$2({method:r.method,headersList:r.headersList,unsafeRequest:r.unsafeRequest,client:this[kRealm$2].settingsObject,window:a,priority:r.priority,origin:r.origin,referrer:r.referrer,referrerPolicy:r.referrerPolicy,mode:r.mode,credentials:r.credentials,cache:r.cache,redirect:r.redirect,integrity:r.integrity,keepalive:r.keepalive,reloadNavigation:r.reloadNavigation,historyNavigation:r.historyNavigation,urlList:[...r.urlList]}),Object.keys(t).length>0&&("navigate"===r.mode&&(r.mode="same-origin"),r.reloadNavigation=!1,r.historyNavigation=!1,r.origin="client",r.referrer="client",r.referrerPolicy="",r.url=r.urlList[r.urlList.length-1],r.urlList=[r.url]),void 0!==t.referrer){const e=t.referrer;if(""===e)r.referrer="no-referrer";else{let t;try{t=new URL(e,o)}catch(t){throw new TypeError(`Referrer "${e}" is not a valid URL.`,{cause:t})}"about:"===t.protocol&&"client"===t.hostname||s&&!sameOrigin$1(t,this[kRealm$2].settingsObject.baseUrl)?r.referrer="client":r.referrer=t}}if(void 0!==t.referrerPolicy&&(r.referrerPolicy=t.referrerPolicy),A=void 0!==t.mode?t.mode:n,"navigate"===A)throw webidl$8.errors.exception({header:"Request constructor",message:"invalid request mode navigate."});if(null!=A&&(r.mode=A),void 0!==t.credentials&&(r.credentials=t.credentials),void 0!==t.cache&&(r.cache=t.cache),"only-if-cached"===r.cache&&"same-origin"!==r.mode)throw new TypeError("'only-if-cached' can be set only with 'same-origin' mode");if(void 0!==t.redirect&&(r.redirect=t.redirect),void 0!==t.integrity&&null!=t.integrity&&(r.integrity=String(t.integrity)),void 0!==t.keepalive&&(r.keepalive=Boolean(t.keepalive)),void 0!==t.method){let e=t.method;if(!isValidHTTPToken(t.method))throw TypeError(`'${t.method}' is not a valid HTTP method.`);if(-1!==forbiddenMethods.indexOf(e.toUpperCase()))throw TypeError(`'${t.method}' HTTP method is unsupported.`);e=normalizeMethod(t.method),r.method=e}void 0!==t.signal&&(i=t.signal),this[kState$5]=r;const c=new AbortController;if(this[kSignal]=c.signal,this[kSignal][kRealm$2]=this[kRealm$2],null!=i){if(!i||"boolean"!=typeof i.aborted||"function"!=typeof i.addEventListener)throw new TypeError("Failed to construct 'Request': member signal is not of type AbortSignal.");if(i.aborted)c.abort(i.reason);else{this[kAbortController]=c;const e=new WeakRef(c),t=function(){const t=e.deref();void 0!==t&&t.abort(this.reason)};try{("function"==typeof getMaxListeners&&getMaxListeners(i)===defaultMaxListeners||getEventListeners(i,"abort").length>=defaultMaxListeners)&&setMaxListeners(100,i)}catch{}util$4.addAbortListener(i,t),requestFinalizer.register(c,{signal:i,abort:t})}}if(this[kHeaders$2]=new Headers$2,this[kHeaders$2][kHeadersList$3]=r.headersList,this[kHeaders$2][kGuard$2]="request",this[kHeaders$2][kRealm$2]=this[kRealm$2],"no-cors"===A){if(!corsSafeListedMethods.includes(r.method))throw new TypeError(`'${r.method} is unsupported in no-cors mode.`);this[kHeaders$2][kGuard$2]="request-no-cors"}if(0!==Object.keys(t).length){let e=new Headers$2(this[kHeaders$2]);if(void 0!==t.headers&&(e=t.headers),this[kHeaders$2][kHeadersList$3].clear(),"Headers"===e.constructor.name)for(const[t,r]of e)this[kHeaders$2].append(t,r);else fillHeaders(this[kHeaders$2],e)}const u=e instanceof Request$2?e[kState$5].body:null;if(!(null==t.body&&null==u||"GET"!==r.method&&"HEAD"!==r.method))throw new TypeError("Request with GET/HEAD method cannot have body.");let l=null;if(null!=t.body){const[e,n]=extractBody(t.body,r.keepalive);l=e,n&&!this[kHeaders$2][kHeadersList$3].contains("content-type")&&this[kHeaders$2].append("content-type",n)}const d=l??u;if(null!=d&&null==d.source){if(null!=l&&null==t.duplex)throw new TypeError("RequestInit: duplex option is required when sending a body.");if("same-origin"!==r.mode&&"cors"!==r.mode)throw new TypeError('If request is made from ReadableStream, mode should be "same-origin" or "cors"');r.useCORSPreflightFlag=!0}let g=d;if(null==l&&null!=u){if(util$4.isDisturbed(u.stream)||u.stream.locked)throw new TypeError("Cannot construct a Request with a Request object that has already been used.");TransformStream$1||(TransformStream$1=require$$13__default.default.TransformStream);const e=new TransformStream$1;u.stream.pipeThrough(e),g={source:u.source,length:u.length,stream:e.readable}}this[kState$5].body=g}get method(){return webidl$8.brandCheck(this,Request$2),this[kState$5].method}get url(){return webidl$8.brandCheck(this,Request$2),URLSerializer$2(this[kState$5].url)}get headers(){return webidl$8.brandCheck(this,Request$2),this[kHeaders$2]}get destination(){return webidl$8.brandCheck(this,Request$2),this[kState$5].destination}get referrer(){return webidl$8.brandCheck(this,Request$2),"no-referrer"===this[kState$5].referrer?"":"client"===this[kState$5].referrer?"about:client":this[kState$5].referrer.toString()}get referrerPolicy(){return webidl$8.brandCheck(this,Request$2),this[kState$5].referrerPolicy}get mode(){return webidl$8.brandCheck(this,Request$2),this[kState$5].mode}get credentials(){return this[kState$5].credentials}get cache(){return webidl$8.brandCheck(this,Request$2),this[kState$5].cache}get redirect(){return webidl$8.brandCheck(this,Request$2),this[kState$5].redirect}get integrity(){return webidl$8.brandCheck(this,Request$2),this[kState$5].integrity}get keepalive(){return webidl$8.brandCheck(this,Request$2),this[kState$5].keepalive}get isReloadNavigation(){return webidl$8.brandCheck(this,Request$2),this[kState$5].reloadNavigation}get isHistoryNavigation(){return webidl$8.brandCheck(this,Request$2),this[kState$5].historyNavigation}get signal(){return webidl$8.brandCheck(this,Request$2),this[kSignal]}get body(){return webidl$8.brandCheck(this,Request$2),this[kState$5].body?this[kState$5].body.stream:null}get bodyUsed(){return webidl$8.brandCheck(this,Request$2),!!this[kState$5].body&&util$4.isDisturbed(this[kState$5].body.stream)}get duplex(){return webidl$8.brandCheck(this,Request$2),"half"}clone(){if(webidl$8.brandCheck(this,Request$2),this.bodyUsed||this.body?.locked)throw new TypeError("unusable");const e=cloneRequest(this[kState$5]),t=new Request$2(kInit);t[kState$5]=e,t[kRealm$2]=this[kRealm$2],t[kHeaders$2]=new Headers$2,t[kHeaders$2][kHeadersList$3]=e.headersList,t[kHeaders$2][kGuard$2]=this[kHeaders$2][kGuard$2],t[kHeaders$2][kRealm$2]=this[kHeaders$2][kRealm$2];const r=new AbortController;return this.signal.aborted?r.abort(this.signal.reason):util$4.addAbortListener(this.signal,(()=>{r.abort(this.signal.reason)})),t[kSignal]=r.signal,t}}function makeRequest$2(e){const t={method:"GET",localURLsOnly:!1,unsafeRequest:!1,body:null,client:null,reservedClient:null,replacesClientId:"",window:"client",keepalive:!1,serviceWorkers:"all",initiator:"",destination:"",priority:null,origin:"client",policyContainer:"client",referrer:"client",referrerPolicy:"",mode:"no-cors",useCORSPreflightFlag:!1,credentials:"same-origin",useCredentials:!1,cache:"default",redirect:"follow",integrity:"",cryptoGraphicsNonceMetadata:"",parserMetadata:"",reloadNavigation:!1,historyNavigation:!1,userActivation:!1,taintedOrigin:!1,redirectCount:0,responseTainting:"basic",preventNoCacheCacheControlHeaderModification:!1,done:!1,timingAllowFailed:!1,...e,headersList:e.headersList?new HeadersList(e.headersList):new HeadersList};return t.url=t.urlList[0],t}function cloneRequest(e){const t=makeRequest$2({...e,body:null});return null!=e.body&&(t.body=cloneBody(e.body)),t}mixinBody(Request$2),Object.defineProperties(Request$2.prototype,{method:kEnumerableProperty$5,url:kEnumerableProperty$5,headers:kEnumerableProperty$5,redirect:kEnumerableProperty$5,clone:kEnumerableProperty$5,signal:kEnumerableProperty$5,duplex:kEnumerableProperty$5,destination:kEnumerableProperty$5,body:kEnumerableProperty$5,bodyUsed:kEnumerableProperty$5,isHistoryNavigation:kEnumerableProperty$5,isReloadNavigation:kEnumerableProperty$5,keepalive:kEnumerableProperty$5,integrity:kEnumerableProperty$5,cache:kEnumerableProperty$5,credentials:kEnumerableProperty$5,attribute:kEnumerableProperty$5,referrerPolicy:kEnumerableProperty$5,referrer:kEnumerableProperty$5,mode:kEnumerableProperty$5,[Symbol.toStringTag]:{value:"Request",configurable:!0}}),webidl$8.converters.Request=webidl$8.interfaceConverter(Request$2),webidl$8.converters.RequestInfo=function(e){return"string"==typeof e?webidl$8.converters.USVString(e):e instanceof Request$2?webidl$8.converters.Request(e):webidl$8.converters.USVString(e)},webidl$8.converters.AbortSignal=webidl$8.interfaceConverter(AbortSignal),webidl$8.converters.RequestInit=webidl$8.dictionaryConverter([{key:"method",converter:webidl$8.converters.ByteString},{key:"headers",converter:webidl$8.converters.HeadersInit},{key:"body",converter:webidl$8.nullableConverter(webidl$8.converters.BodyInit)},{key:"referrer",converter:webidl$8.converters.USVString},{key:"referrerPolicy",converter:webidl$8.converters.DOMString,allowedValues:referrerPolicy},{key:"mode",converter:webidl$8.converters.DOMString,allowedValues:requestMode},{key:"credentials",converter:webidl$8.converters.DOMString,allowedValues:requestCredentials},{key:"cache",converter:webidl$8.converters.DOMString,allowedValues:requestCache},{key:"redirect",converter:webidl$8.converters.DOMString,allowedValues:requestRedirect},{key:"integrity",converter:webidl$8.converters.DOMString},{key:"keepalive",converter:webidl$8.converters.boolean},{key:"signal",converter:webidl$8.nullableConverter((e=>webidl$8.converters.AbortSignal(e,{strict:!1})))},{key:"window",converter:webidl$8.converters.any},{key:"duplex",converter:webidl$8.converters.DOMString,allowedValues:requestDuplex}]);var request={Request:Request$2,makeRequest:makeRequest$2};const{Response:Response$1,makeNetworkError:makeNetworkError,makeAppropriateNetworkError:makeAppropriateNetworkError,filterResponse:filterResponse,makeResponse:makeResponse}=response,{Headers:Headers$1}=headers,{Request:Request$1,makeRequest:makeRequest$1}=request,zlib=require$$3__default.default,{bytesMatch:bytesMatch,makePolicyContainer:makePolicyContainer,clonePolicyContainer:clonePolicyContainer,requestBadPort:requestBadPort,TAOCheck:TAOCheck,appendRequestOriginHeader:appendRequestOriginHeader,responseLocationURL:responseLocationURL,requestCurrentURL:requestCurrentURL,setRequestReferrerPolicyOnRedirect:setRequestReferrerPolicyOnRedirect,tryUpgradeRequestToAPotentiallyTrustworthyURL:tryUpgradeRequestToAPotentiallyTrustworthyURL,createOpaqueTimingInfo:createOpaqueTimingInfo,appendFetchMetadata:appendFetchMetadata,corsCheck:corsCheck,crossOriginResourcePolicyCheck:crossOriginResourcePolicyCheck,determineRequestsReferrer:determineRequestsReferrer,coarsenedSharedCurrentTime:coarsenedSharedCurrentTime,createDeferredPromise:createDeferredPromise$1,isBlobLike:isBlobLike$1,sameOrigin:sameOrigin,isCancelled:isCancelled,isAborted:isAborted,isErrorLike:isErrorLike,fullyReadBody:fullyReadBody,readableStreamClose:readableStreamClose,isomorphicEncode:isomorphicEncode,urlIsLocal:urlIsLocal,urlIsHttpHttpsScheme:urlIsHttpHttpsScheme$1,urlHasHttpsScheme:urlHasHttpsScheme}=util$k,{kState:kState$4,kHeaders:kHeaders$1,kGuard:kGuard$1,kRealm:kRealm$1}=symbols$3,assert$2=require$$0__default.default,{safelyExtractBody:safelyExtractBody}=body,{redirectStatus:redirectStatus,nullBodyStatus:nullBodyStatus,safeMethods:safeMethods,requestBodyHeader:requestBodyHeader,subresource:subresource,DOMException:DOMException$3}=constants$3,{kHeadersList:kHeadersList$2}=symbols$4,EE=require$$10__default.default,{Readable:Readable,pipeline:pipeline}=require$$0__default$1.default,{addAbortListener:addAbortListener,isErrored:isErrored,isReadable:isReadable,nodeMajor:nodeMajor,nodeMinor:nodeMinor}=util$l,{dataURLProcessor:dataURLProcessor,serializeAMimeType:serializeAMimeType$1}=dataURL,{TransformStream:TransformStream}=require$$13__default.default,{getGlobalDispatcher:getGlobalDispatcher$4}=global$1,{webidl:webidl$7}=webidl_1,{STATUS_CODES:STATUS_CODES}=require$$2__default.default;let resolveObjectURL,ReadableStream=globalThis.ReadableStream;class Fetch extends EE{constructor(e){super(),this.dispatcher=e,this.connection=null,this.dump=!1,this.state="ongoing",this.setMaxListeners(21)}terminate(e){"ongoing"===this.state&&(this.state="terminated",this.connection?.destroy(e),this.emit("terminated",e))}abort(e){"ongoing"===this.state&&(this.state="aborted",e||(e=new DOMException$3("The operation was aborted.","AbortError")),this.serializedAbortReason=e,this.connection?.destroy(e),this.emit("terminated",e))}}async function fetch$1(e,t={}){webidl$7.argumentLengthCheck(arguments,1,{header:"globalThis.fetch"});const r=createDeferredPromise$1();let n;try{n=new Request$1(e,t)}catch(e){return r.reject(e),r.promise}const o=n[kState$4];if(n.signal.aborted)return abortFetch(r,o,null,n.signal.reason),r.promise;const i=o.client.globalObject;"ServiceWorkerGlobalScope"===i?.constructor?.name&&(o.serviceWorkers="none");let s=null;let A=!1,a=null;addAbortListener(n.signal,(()=>{A=!0,assert$2(null!=a),a.abort(n.signal.reason),abortFetch(r,o,s,n.signal.reason)}));return a=fetching$2({request:o,processResponseEndOfBody:e=>finalizeAndReportTiming(e,"fetch"),processResponse:e=>{A||(e.aborted?abortFetch(r,o,s,a.serializedAbortReason):"error"!==e.type?(s=new Response$1,s[kState$4]=e,s[kRealm$1]=null,s[kHeaders$1][kHeadersList$2]=e.headersList,s[kHeaders$1][kGuard$1]="immutable",s[kHeaders$1][kRealm$1]=null,r.resolve(s)):r.reject(Object.assign(new TypeError("fetch failed"),{cause:e.error})))},dispatcher:t.dispatcher??getGlobalDispatcher$4()}),r.promise}function finalizeAndReportTiming(e,t="other"){if("error"===e.type&&e.aborted)return;if(!e.urlList?.length)return;const r=e.urlList[0];let n=e.timingInfo,o=e.cacheState;urlIsHttpHttpsScheme$1(r)&&null!==n&&(n.timingAllowPassed||(n=createOpaqueTimingInfo({startTime:n.startTime}),o=""),n.endTime=coarsenedSharedCurrentTime(),e.timingInfo=n,markResourceTiming(n,r,t,globalThis,o))}function markResourceTiming(e,t,r,n,o){(nodeMajor>18||18===nodeMajor&&nodeMinor>=2)&&performance.markResourceTiming(e,t.href,r,n,o)}function abortFetch(e,t,r,n){if(n||(n=new DOMException$3("The operation was aborted.","AbortError")),e.reject(n),null!=t.body&&isReadable(t.body?.stream)&&t.body.stream.cancel(n).catch((e=>{if("ERR_INVALID_STATE"!==e.code)throw e})),null==r)return;const o=r[kState$4];null!=o.body&&isReadable(o.body?.stream)&&o.body.stream.cancel(n).catch((e=>{if("ERR_INVALID_STATE"!==e.code)throw e}))}function fetching$2({request:e,processRequestBodyChunkLength:t,processRequestEndOfBody:r,processResponse:n,processResponseEndOfBody:o,processResponseConsumeBody:i,useParallelQueue:s=!1,dispatcher:A}){let a=null,c=!1;null!=e.client&&(a=e.client.globalObject,c=e.client.crossOriginIsolatedCapability);const u=coarsenedSharedCurrentTime(c),l=createOpaqueTimingInfo({startTime:u}),d={controller:new Fetch(A),request:e,timingInfo:l,processRequestBodyChunkLength:t,processRequestEndOfBody:r,processResponse:n,processResponseConsumeBody:i,processResponseEndOfBody:o,taskDestination:a,crossOriginIsolatedCapability:c};if(assert$2(!e.body||e.body.stream),"client"===e.window&&(e.window="Window"===e.client?.globalObject?.constructor?.name?e.client:"no-window"),"client"===e.origin&&(e.origin=e.client?.origin),"client"===e.policyContainer&&(null!=e.client?e.policyContainer=clonePolicyContainer(e.client.policyContainer):e.policyContainer=makePolicyContainer()),!e.headersList.contains("accept")){const t="*/*";e.headersList.append("accept",t)}return e.headersList.contains("accept-language")||e.headersList.append("accept-language","*"),e.priority,subresource.includes(e.destination),mainFetch(d).catch((e=>{d.controller.terminate(e)})),d.controller}async function mainFetch(e,t=!1){const r=e.request;let n=null;if(r.localURLsOnly&&!urlIsLocal(requestCurrentURL(r))&&(n=makeNetworkError("local URLs only")),tryUpgradeRequestToAPotentiallyTrustworthyURL(r),"blocked"===requestBadPort(r)&&(n=makeNetworkError("bad port")),""===r.referrerPolicy&&(r.referrerPolicy=r.policyContainer.referrerPolicy),"no-referrer"!==r.referrer&&(r.referrer=determineRequestsReferrer(r)),null===n&&(n=await(async()=>{const t=requestCurrentURL(r);return sameOrigin(t,r.url)&&"basic"===r.responseTainting||"data:"===t.protocol||"navigate"===r.mode||"websocket"===r.mode?(r.responseTainting="basic",await schemeFetch(e)):"same-origin"===r.mode?makeNetworkError('request mode cannot be "same-origin"'):"no-cors"===r.mode?"follow"!==r.redirect?makeNetworkError('redirect mode cannot be "follow" for "no-cors" request'):(r.responseTainting="opaque",await schemeFetch(e)):urlIsHttpHttpsScheme$1(requestCurrentURL(r))?(r.responseTainting="cors",await httpFetch(e)):makeNetworkError("URL scheme must be a HTTP(S) scheme")})()),t)return n;0===n.status||n.internalResponse||(r.responseTainting,"basic"===r.responseTainting?n=filterResponse(n,"basic"):"cors"===r.responseTainting?n=filterResponse(n,"cors"):"opaque"===r.responseTainting?n=filterResponse(n,"opaque"):assert$2(!1));let o=0===n.status?n:n.internalResponse;if(0===o.urlList.length&&o.urlList.push(...r.urlList),r.timingAllowFailed||(n.timingAllowPassed=!0),"opaque"===n.type&&206===o.status&&o.rangeRequested&&!r.headers.contains("range")&&(n=o=makeNetworkError()),0===n.status||"HEAD"!==r.method&&"CONNECT"!==r.method&&!nullBodyStatus.includes(o.status)||(o.body=null,e.controller.dump=!0),r.integrity){const t=t=>fetchFinale(e,makeNetworkError(t));if("opaque"===r.responseTainting||null==n.body)return void t(n.error);const o=o=>{bytesMatch(o,r.integrity)?(n.body=safelyExtractBody(o)[0],fetchFinale(e,n)):t("integrity mismatch")};await fullyReadBody(n.body,o,t)}else fetchFinale(e,n)}async function schemeFetch(e){if(isCancelled(e)&&0===e.request.redirectCount)return makeAppropriateNetworkError(e);const{request:t}=e,{protocol:r}=requestCurrentURL(t);switch(r){case"about:":return makeNetworkError("about scheme is not supported");case"blob:":{resolveObjectURL||(resolveObjectURL=require$$7__default.default.resolveObjectURL);const e=requestCurrentURL(t);if(0!==e.search.length)return makeNetworkError("NetworkError when attempting to fetch resource.");const r=resolveObjectURL(e.toString());if("GET"!==t.method||!isBlobLike$1(r))return makeNetworkError("invalid method");const n=safelyExtractBody(r),o=n[0],i=isomorphicEncode(`${o.length}`),s=n[1]??"",A=makeResponse({statusText:"OK",headersList:[["content-length",{name:"Content-Length",value:i}],["content-type",{name:"Content-Type",value:s}]]});return A.body=o,A}case"data:":{const e=requestCurrentURL(t),r=dataURLProcessor(e);if("failure"===r)return makeNetworkError("failed to fetch the data URL");const n=serializeAMimeType$1(r.mimeType);return makeResponse({statusText:"OK",headersList:[["content-type",{name:"Content-Type",value:n}]],body:safelyExtractBody(r.body)[0]})}case"file:":return makeNetworkError("not implemented... yet...");case"http:":case"https:":return await httpFetch(e).catch((e=>makeNetworkError(e)));default:return makeNetworkError("unknown scheme")}}function finalizeResponse(e,t){e.request.done=!0,null!=e.processResponseDone&&queueMicrotask((()=>e.processResponseDone(t)))}async function fetchFinale(e,t){"error"===t.type&&(t.urlList=[e.request.urlList[0]],t.timingInfo=createOpaqueTimingInfo({startTime:e.timingInfo.startTime}));const r=()=>{e.request.done=!0,null!=e.processResponseEndOfBody&&queueMicrotask((()=>e.processResponseEndOfBody(t)))};if(null!=e.processResponse&&queueMicrotask((()=>e.processResponse(t))),null==t.body)r();else{const e=new TransformStream({start(){},transform:(e,t)=>{t.enqueue(e)},flush:r},{size:()=>1},{size:()=>1});t.body={stream:t.body.stream.pipeThrough(e)}}if(null!=e.processResponseConsumeBody){const r=r=>e.processResponseConsumeBody(t,r),n=r=>e.processResponseConsumeBody(t,r);null==t.body?queueMicrotask((()=>r(null))):await fullyReadBody(t.body,r,n)}}async function httpFetch(e){const t=e.request;let r=null,n=null;const o=e.timingInfo;if(t.serviceWorkers,null===r){if("follow"===t.redirect&&(t.serviceWorkers="none"),n=r=await httpNetworkOrCacheFetch(e),"cors"===t.responseTainting&&"failure"===corsCheck(t,r))return makeNetworkError("cors failure");"failure"===TAOCheck(t,r)&&(t.timingAllowFailed=!0)}return"opaque"!==t.responseTainting&&"opaque"!==r.type||"blocked"!==crossOriginResourcePolicyCheck(t.origin,t.client,t.destination,n)?(redirectStatus.includes(n.status)&&("manual"!==t.redirect&&e.controller.connection.destroy(),"error"===t.redirect?r=makeNetworkError("unexpected redirect"):"manual"===t.redirect?r=n:"follow"===t.redirect?r=await httpRedirectFetch(e,r):assert$2(!1)),r.timingInfo=o,r):makeNetworkError("blocked")}async function httpRedirectFetch(e,t){const r=e.request,n=t.internalResponse?t.internalResponse:t;let o;try{if(o=responseLocationURL(n,requestCurrentURL(r).hash),null==o)return t}catch(e){return makeNetworkError(e)}if(!urlIsHttpHttpsScheme$1(o))return makeNetworkError("URL scheme must be a HTTP(S) scheme");if(20===r.redirectCount)return makeNetworkError("redirect count exceeded");if(r.redirectCount+=1,"cors"===r.mode&&(o.username||o.password)&&!sameOrigin(r,o))return makeNetworkError('cross origin not allowed for request mode "cors"');if("cors"===r.responseTainting&&(o.username||o.password))return makeNetworkError('URL cannot contain credentials for request mode "cors"');if(303!==n.status&&null!=r.body&&null==r.body.source)return makeNetworkError();if([301,302].includes(n.status)&&"POST"===r.method||303===n.status&&!["GET","HEAD"].includes(r.method)){r.method="GET",r.body=null;for(const e of requestBodyHeader)r.headersList.delete(e)}sameOrigin(requestCurrentURL(r),o)||r.headersList.delete("authorization"),null!=r.body&&(assert$2(null!=r.body.source),r.body=safelyExtractBody(r.body.source)[0]);const i=e.timingInfo;return i.redirectEndTime=i.postRedirectStartTime=coarsenedSharedCurrentTime(e.crossOriginIsolatedCapability),0===i.redirectStartTime&&(i.redirectStartTime=i.startTime),r.urlList.push(o),setRequestReferrerPolicyOnRedirect(r,n),mainFetch(e,!0)}async function httpNetworkOrCacheFetch(e,t=!1,r=!1){const n=e.request;let o=null,i=null,s=null;"no-window"===n.window&&"error"===n.redirect?(o=e,i=n):(i=makeRequest$1(n),o={...e},o.request=i);const A="include"===n.credentials||"same-origin"===n.credentials&&"basic"===n.responseTainting,a=i.body?i.body.length:null;let c=null;if(null==i.body&&["POST","PUT"].includes(i.method)&&(c="0"),null!=a&&(c=isomorphicEncode(`${a}`)),null!=c&&i.headersList.append("content-length",c),null!=a&&i.keepalive,i.referrer instanceof URL&&i.headersList.append("referer",isomorphicEncode(i.referrer.href)),appendRequestOriginHeader(i),appendFetchMetadata(i),i.headersList.contains("user-agent")||i.headersList.append("user-agent","undici"),"default"===i.cache&&(i.headersList.contains("if-modified-since")||i.headersList.contains("if-none-match")||i.headersList.contains("if-unmodified-since")||i.headersList.contains("if-match")||i.headersList.contains("if-range"))&&(i.cache="no-store"),"no-cache"!==i.cache||i.preventNoCacheCacheControlHeaderModification||i.headersList.contains("cache-control")||i.headersList.append("cache-control","max-age=0"),"no-store"!==i.cache&&"reload"!==i.cache||(i.headersList.contains("pragma")||i.headersList.append("pragma","no-cache"),i.headersList.contains("cache-control")||i.headersList.append("cache-control","no-cache")),i.headersList.contains("range")&&i.headersList.append("accept-encoding","identity"),i.headersList.contains("accept-encoding")||(urlHasHttpsScheme(requestCurrentURL(i))?i.headersList.append("accept-encoding","br, gzip, deflate"):i.headersList.append("accept-encoding","gzip, deflate")),i.cache="no-store","no-store"!==i.mode&&i.mode,null==s){if("only-if-cached"===i.mode)return makeNetworkError("only if cached");const e=await httpNetworkFetch(o,A,r);!safeMethods.includes(i.method)&&e.status>=200&&e.status,null==s&&(s=e)}if(s.urlList=[...i.urlList],i.headersList.contains("range")&&(s.rangeRequested=!0),s.requestIncludesCredentials=A,407===s.status)return"no-window"===n.window?makeNetworkError():isCancelled(e)?makeAppropriateNetworkError(e):makeNetworkError("proxy authentication required");if(421===s.status&&!r&&(null==n.body||null!=n.body.source)){if(isCancelled(e))return makeAppropriateNetworkError(e);e.controller.connection.destroy(),s=await httpNetworkOrCacheFetch(e,t,!0)}return s}async function httpNetworkFetch(e,t=!1,r=!1){assert$2(!e.controller.connection||e.controller.connection.destroyed),e.controller.connection={abort:null,destroyed:!1,destroy(e){this.destroyed||(this.destroyed=!0,this.abort?.(e??new DOMException$3("The operation was aborted.","AbortError")))}};const n=e.request;let o=null;const i=e.timingInfo;n.cache="no-store",n.mode;let s=null;if(null==n.body&&e.processRequestEndOfBody)queueMicrotask((()=>e.processRequestEndOfBody()));else if(null!=n.body){const t=async function*(t){isCancelled(e)||(yield t,e.processRequestBodyChunkLength?.(t.byteLength))},r=()=>{isCancelled(e)||e.processRequestEndOfBody&&e.processRequestEndOfBody()},o=t=>{isCancelled(e)||("AbortError"===t.name?e.controller.abort():e.controller.terminate(t))};s=async function*(){try{for await(const e of n.body.stream)yield*t(e);r()}catch(e){o(e)}}()}try{const{body:t,status:r,statusText:A,headersList:a,socket:c}=await async function({body:t}){const r=requestCurrentURL(n),o=e.controller.dispatcher;return new Promise(((s,A)=>o.dispatch({path:r.pathname+r.search,origin:r.origin,method:n.method,body:e.controller.dispatcher.isMockActive?n.body&&n.body.source:t,headers:n.headersList.entries,maxRedirections:0,upgrade:"websocket"===n.mode?"websocket":void 0},{body:null,abort:null,onConnect(t){const{connection:r}=e.controller;r.destroyed?t(new DOMException$3("The operation was aborted.","AbortError")):(e.controller.on("terminated",t),this.abort=r.abort=t)},onHeaders(e,t,r,o){if(e<200)return;let i=[],A="";const a=new Headers$1;if(Array.isArray(t))for(let e=0;e<t.length;e+=2){const r=t[e+0].toString("latin1"),n=t[e+1].toString("latin1");"content-encoding"===r.toLowerCase()?i=n.toLowerCase().split(",").map((e=>e.trim())):"location"===r.toLowerCase()&&(A=n),a.append(r,n)}else{const e=Object.keys(t);for(const r of e){const e=t[r];"content-encoding"===r.toLowerCase()?i=e.toLowerCase().split(",").map((e=>e.trim())).reverse():"location"===r.toLowerCase()&&(A=e),a.append(r,e)}}this.body=new Readable({read:r});const c=[],u="follow"===n.redirect&&A&&redirectStatus.includes(e);if("HEAD"!==n.method&&"CONNECT"!==n.method&&!nullBodyStatus.includes(e)&&!u)for(const e of i)if("x-gzip"===e||"gzip"===e)c.push(zlib.createGunzip({flush:zlib.constants.Z_SYNC_FLUSH,finishFlush:zlib.constants.Z_SYNC_FLUSH}));else if("deflate"===e)c.push(zlib.createInflate());else{if("br"!==e){c.length=0;break}c.push(zlib.createBrotliDecompress())}return s({status:e,statusText:o,headersList:a[kHeadersList$2],body:c.length?pipeline(this.body,...c,(()=>{})):this.body.on("error",(()=>{}))}),!0},onData(t){if(e.controller.dump)return;const r=t;return i.encodedBodySize+=r.byteLength,this.body.push(r)},onComplete(){this.abort&&e.controller.off("terminated",this.abort),e.controller.ended=!0,this.body.push(null)},onError(t){this.abort&&e.controller.off("terminated",this.abort),this.body?.destroy(t),e.controller.terminate(t),A(t)},onUpgrade(e,t,r){if(101!==e)return;const n=new Headers$1;for(let e=0;e<t.length;e+=2){const r=t[e+0].toString("latin1"),o=t[e+1].toString("latin1");n.append(r,o)}return s({status:e,statusText:STATUS_CODES[e],headersList:n[kHeadersList$2],socket:r}),!0}})))}({body:s});if(c)o=makeResponse({status:r,statusText:A,headersList:a,socket:c});else{const n=t[Symbol.asyncIterator]();e.controller.next=()=>n.next(),o=makeResponse({status:r,statusText:A,headersList:a})}}catch(t){return"AbortError"===t.name?(e.controller.connection.destroy(),makeAppropriateNetworkError(e,t)):makeNetworkError(t)}ReadableStream||(ReadableStream=require$$13__default.default.ReadableStream);const A=new ReadableStream({async start(t){e.controller.controller=t},async pull(t){await void e.controller.resume()},async cancel(t){await(t=>{e.controller.abort(t)})(t)}},{highWaterMark:0,size:()=>1});return o.body={stream:A},e.controller.on("terminated",(function(t){isAborted(e)?(o.aborted=!0,isReadable(A)&&e.controller.controller.error(e.controller.serializedAbortReason)):isReadable(A)&&e.controller.controller.error(new TypeError("terminated",{cause:isErrorLike(t)?t:void 0}));e.controller.connection.destroy()})),e.controller.resume=async()=>{for(;;){let t,r;try{const{done:r,value:n}=await e.controller.next();if(isAborted(e))break;t=r?void 0:n}catch(n){e.controller.ended&&!i.encodedBodySize?t=void 0:(t=n,r=!0)}if(void 0===t)return readableStreamClose(e.controller.controller),void finalizeResponse(e,o);if(i.decodedBodySize+=t?.byteLength??0,r)return void e.controller.terminate(t);if(e.controller.controller.enqueue(new Uint8Array(t)),isErrored(A))return void e.controller.terminate();if(!e.controller.controller.desiredSize)return}},o}var fetch_1={fetch:fetch$1,Fetch:Fetch,fetching:fetching$2,finalizeAndReportTiming:finalizeAndReportTiming},symbols$2={kState:Symbol("FileReader state"),kResult:Symbol("FileReader result"),kError:Symbol("FileReader error"),kLastProgressEventFired:Symbol("FileReader last progress event fired timestamp"),kEvents:Symbol("FileReader events"),kAborted:Symbol("FileReader aborted")};const{webidl:webidl$6}=webidl_1,kState$3=Symbol("ProgressEvent state");class ProgressEvent$1 extends Event{constructor(e,t={}){super(e=webidl$6.converters.DOMString(e),t=webidl$6.converters.ProgressEventInit(t??{})),this[kState$3]={lengthComputable:t.lengthComputable,loaded:t.loaded,total:t.total}}get lengthComputable(){return webidl$6.brandCheck(this,ProgressEvent$1),this[kState$3].lengthComputable}get loaded(){return webidl$6.brandCheck(this,ProgressEvent$1),this[kState$3].loaded}get total(){return webidl$6.brandCheck(this,ProgressEvent$1),this[kState$3].total}}webidl$6.converters.ProgressEventInit=webidl$6.dictionaryConverter([{key:"lengthComputable",converter:webidl$6.converters.boolean,defaultValue:!1},{key:"loaded",converter:webidl$6.converters["unsigned long long"],defaultValue:0},{key:"total",converter:webidl$6.converters["unsigned long long"],defaultValue:0},{key:"bubbles",converter:webidl$6.converters.boolean,defaultValue:!1},{key:"cancelable",converter:webidl$6.converters.boolean,defaultValue:!1},{key:"composed",converter:webidl$6.converters.boolean,defaultValue:!1}]);var progressevent={ProgressEvent:ProgressEvent$1};function getEncoding$1(e){if(!e)return"failure";switch(e.trim().toLowerCase()){case"unicode-1-1-utf-8":case"unicode11utf8":case"unicode20utf8":case"utf-8":case"utf8":case"x-unicode20utf8":return"UTF-8";case"866":case"cp866":case"csibm866":case"ibm866":return"IBM866";case"csisolatin2":case"iso-8859-2":case"iso-ir-101":case"iso8859-2":case"iso88592":case"iso_8859-2":case"iso_8859-2:1987":case"l2":case"latin2":return"ISO-8859-2";case"csisolatin3":case"iso-8859-3":case"iso-ir-109":case"iso8859-3":case"iso88593":case"iso_8859-3":case"iso_8859-3:1988":case"l3":case"latin3":return"ISO-8859-3";case"csisolatin4":case"iso-8859-4":case"iso-ir-110":case"iso8859-4":case"iso88594":case"iso_8859-4":case"iso_8859-4:1988":case"l4":case"latin4":return"ISO-8859-4";case"csisolatincyrillic":case"cyrillic":case"iso-8859-5":case"iso-ir-144":case"iso8859-5":case"iso88595":case"iso_8859-5":case"iso_8859-5:1988":return"ISO-8859-5";case"arabic":case"asmo-708":case"csiso88596e":case"csiso88596i":case"csisolatinarabic":case"ecma-114":case"iso-8859-6":case"iso-8859-6-e":case"iso-8859-6-i":case"iso-ir-127":case"iso8859-6":case"iso88596":case"iso_8859-6":case"iso_8859-6:1987":return"ISO-8859-6";case"csisolatingreek":case"ecma-118":case"elot_928":case"greek":case"greek8":case"iso-8859-7":case"iso-ir-126":case"iso8859-7":case"iso88597":case"iso_8859-7":case"iso_8859-7:1987":case"sun_eu_greek":return"ISO-8859-7";case"csiso88598e":case"csisolatinhebrew":case"hebrew":case"iso-8859-8":case"iso-8859-8-e":case"iso-ir-138":case"iso8859-8":case"iso88598":case"iso_8859-8":case"iso_8859-8:1988":case"visual":return"ISO-8859-8";case"csiso88598i":case"iso-8859-8-i":case"logical":return"ISO-8859-8-I";case"csisolatin6":case"iso-8859-10":case"iso-ir-157":case"iso8859-10":case"iso885910":case"l6":case"latin6":return"ISO-8859-10";case"iso-8859-13":case"iso8859-13":case"iso885913":return"ISO-8859-13";case"iso-8859-14":case"iso8859-14":case"iso885914":return"ISO-8859-14";case"csisolatin9":case"iso-8859-15":case"iso8859-15":case"iso885915":case"iso_8859-15":case"l9":return"ISO-8859-15";case"iso-8859-16":return"ISO-8859-16";case"cskoi8r":case"koi":case"koi8":case"koi8-r":case"koi8_r":return"KOI8-R";case"koi8-ru":case"koi8-u":return"KOI8-U";case"csmacintosh":case"mac":case"macintosh":case"x-mac-roman":return"macintosh";case"iso-8859-11":case"iso8859-11":case"iso885911":case"tis-620":case"windows-874":return"windows-874";case"cp1250":case"windows-1250":case"x-cp1250":return"windows-1250";case"cp1251":case"windows-1251":case"x-cp1251":return"windows-1251";case"ansi_x3.4-1968":case"ascii":case"cp1252":case"cp819":case"csisolatin1":case"ibm819":case"iso-8859-1":case"iso-ir-100":case"iso8859-1":case"iso88591":case"iso_8859-1":case"iso_8859-1:1987":case"l1":case"latin1":case"us-ascii":case"windows-1252":case"x-cp1252":return"windows-1252";case"cp1253":case"windows-1253":case"x-cp1253":return"windows-1253";case"cp1254":case"csisolatin5":case"iso-8859-9":case"iso-ir-148":case"iso8859-9":case"iso88599":case"iso_8859-9":case"iso_8859-9:1989":case"l5":case"latin5":case"windows-1254":case"x-cp1254":return"windows-1254";case"cp1255":case"windows-1255":case"x-cp1255":return"windows-1255";case"cp1256":case"windows-1256":case"x-cp1256":return"windows-1256";case"cp1257":case"windows-1257":case"x-cp1257":return"windows-1257";case"cp1258":case"windows-1258":case"x-cp1258":return"windows-1258";case"x-mac-cyrillic":case"x-mac-ukrainian":return"x-mac-cyrillic";case"chinese":case"csgb2312":case"csiso58gb231280":case"gb2312":case"gb_2312":case"gb_2312-80":case"gbk":case"iso-ir-58":case"x-gbk":return"GBK";case"gb18030":return"gb18030";case"big5":case"big5-hkscs":case"cn-big5":case"csbig5":case"x-x-big5":return"Big5";case"cseucpkdfmtjapanese":case"euc-jp":case"x-euc-jp":return"EUC-JP";case"csiso2022jp":case"iso-2022-jp":return"ISO-2022-JP";case"csshiftjis":case"ms932":case"ms_kanji":case"shift-jis":case"shift_jis":case"sjis":case"windows-31j":case"x-sjis":return"Shift_JIS";case"cseuckr":case"csksc56011987":case"euc-kr":case"iso-ir-149":case"korean":case"ks_c_5601-1987":case"ks_c_5601-1989":case"ksc5601":case"ksc_5601":case"windows-949":return"EUC-KR";case"csiso2022kr":case"hz-gb-2312":case"iso-2022-cn":case"iso-2022-cn-ext":case"iso-2022-kr":case"replacement":return"replacement";case"unicodefffe":case"utf-16be":return"UTF-16BE";case"csunicode":case"iso-10646-ucs-2":case"ucs-2":case"unicode":case"unicodefeff":case"utf-16":case"utf-16le":return"UTF-16LE";case"x-user-defined":return"x-user-defined";default:return"failure"}}var encoding={getEncoding:getEncoding$1};const{kState:kState$2,kError:kError$1,kResult:kResult$1,kAborted:kAborted$1,kLastProgressEventFired:kLastProgressEventFired}=symbols$2,{ProgressEvent:ProgressEvent}=progressevent,{getEncoding:getEncoding}=encoding,{DOMException:DOMException$2}=constants$3,{serializeAMimeType:serializeAMimeType,parseMIMEType:parseMIMEType}=dataURL,{types:types$1}=require$$0__default$2.default,{StringDecoder:StringDecoder}=require$$6__default.default,{btoa:btoa$1}=require$$7__default.default,staticPropertyDescriptors$3={enumerable:!0,writable:!1,configurable:!1};function readOperation$1(e,t,r,n){if("loading"===e[kState$2])throw new DOMException$2("Invalid state","InvalidStateError");e[kState$2]="loading",e[kResult$1]=null,e[kError$1]=null;const o=t.stream().getReader(),i=[];let s=o.read(),A=!0;(async()=>{for(;!e[kAborted$1];)try{const{done:a,value:c}=await s;if(A&&!e[kAborted$1]&&queueMicrotask((()=>{fireAProgressEvent$1("loadstart",e)})),A=!1,!a&&types$1.isUint8Array(c))i.push(c),(void 0===e[kLastProgressEventFired]||Date.now()-e[kLastProgressEventFired]>=50)&&!e[kAborted$1]&&(e[kLastProgressEventFired]=Date.now(),queueMicrotask((()=>{fireAProgressEvent$1("progress",e)}))),s=o.read();else if(a){queueMicrotask((()=>{e[kState$2]="done";try{const o=packageData(i,r,t.type,n);if(e[kAborted$1])return;e[kResult$1]=o,fireAProgressEvent$1("load",e)}catch(t){e[kError$1]=t,fireAProgressEvent$1("error",e)}"loading"!==e[kState$2]&&fireAProgressEvent$1("loadend",e)}));break}}catch(t){if(e[kAborted$1])return;queueMicrotask((()=>{e[kState$2]="done",e[kError$1]=t,fireAProgressEvent$1("error",e),"loading"!==e[kState$2]&&fireAProgressEvent$1("loadend",e)}));break}})()}function fireAProgressEvent$1(e,t){const r=new ProgressEvent(e,{bubbles:!1,cancelable:!1});t.dispatchEvent(r)}function packageData(e,t,r,n){switch(t){case"DataURL":{let t="data:";const n=parseMIMEType(r||"application/octet-stream");"failure"!==n&&(t+=serializeAMimeType(n)),t+=";base64,";const o=new StringDecoder("latin1");for(const r of e)t+=btoa$1(o.write(r));return t+=btoa$1(o.end()),t}case"Text":{let t="failure";if(n&&(t=getEncoding(n)),"failure"===t&&r){const e=parseMIMEType(r);"failure"!==e&&(t=getEncoding(e.parameters.get("charset")))}return"failure"===t&&(t="UTF-8"),decode(e,t)}case"ArrayBuffer":return combineByteSequences(e).buffer;case"BinaryString":{let t="";const r=new StringDecoder("latin1");for(const n of e)t+=r.write(n);return t+=r.end(),t}}}function decode(e,t){const r=combineByteSequences(e),n=BOMSniffing(r);let o=0;null!==n&&(t=n,o="UTF-8"===n?3:2);const i=r.slice(o);return new TextDecoder(t).decode(i)}function BOMSniffing(e){const[t,r,n]=e;return 239===t&&187===r&&191===n?"UTF-8":254===t&&255===r?"UTF-16BE":255===t&&254===r?"UTF-16LE":null}function combineByteSequences(e){const t=e.reduce(((e,t)=>e+t.byteLength),0);let r=0;return e.reduce(((e,t)=>(e.set(t,r),r+=t.byteLength,e)),new Uint8Array(t))}var util$3={staticPropertyDescriptors:staticPropertyDescriptors$3,readOperation:readOperation$1,fireAProgressEvent:fireAProgressEvent$1};const{staticPropertyDescriptors:staticPropertyDescriptors$2,readOperation:readOperation,fireAProgressEvent:fireAProgressEvent}=util$3,{kState:kState$1,kError:kError,kResult:kResult,kEvents:kEvents,kAborted:kAborted}=symbols$2,{webidl:webidl$5}=webidl_1,{kEnumerableProperty:kEnumerableProperty$4}=util$l;class FileReader extends EventTarget{constructor(){super(),this[kState$1]="empty",this[kResult]=null,this[kError]=null,this[kEvents]={loadend:null,error:null,abort:null,load:null,progress:null,loadstart:null}}readAsArrayBuffer(e){webidl$5.brandCheck(this,FileReader),webidl$5.argumentLengthCheck(arguments,1,{header:"FileReader.readAsArrayBuffer"}),e=webidl$5.converters.Blob(e,{strict:!1}),readOperation(this,e,"ArrayBuffer")}readAsBinaryString(e){webidl$5.brandCheck(this,FileReader),webidl$5.argumentLengthCheck(arguments,1,{header:"FileReader.readAsBinaryString"}),e=webidl$5.converters.Blob(e,{strict:!1}),readOperation(this,e,"BinaryString")}readAsText(e,t=void 0){webidl$5.brandCheck(this,FileReader),webidl$5.argumentLengthCheck(arguments,1,{header:"FileReader.readAsText"}),e=webidl$5.converters.Blob(e,{strict:!1}),void 0!==t&&(t=webidl$5.converters.DOMString(t)),readOperation(this,e,"Text",t)}readAsDataURL(e){webidl$5.brandCheck(this,FileReader),webidl$5.argumentLengthCheck(arguments,1,{header:"FileReader.readAsDataURL"}),e=webidl$5.converters.Blob(e,{strict:!1}),readOperation(this,e,"DataURL")}abort(){"empty"!==this[kState$1]&&"done"!==this[kState$1]?("loading"===this[kState$1]&&(this[kState$1]="done",this[kResult]=null),this[kAborted]=!0,fireAProgressEvent("abort",this),"loading"!==this[kState$1]&&fireAProgressEvent("loadend",this)):this[kResult]=null}get readyState(){switch(webidl$5.brandCheck(this,FileReader),this[kState$1]){case"empty":return this.EMPTY;case"loading":return this.LOADING;case"done":return this.DONE}}get result(){return webidl$5.brandCheck(this,FileReader),this[kResult]}get error(){return webidl$5.brandCheck(this,FileReader),this[kError]}get onloadend(){return webidl$5.brandCheck(this,FileReader),this[kEvents].loadend}set onloadend(e){webidl$5.brandCheck(this,FileReader),this[kEvents].loadend&&this.removeEventListener("loadend",this[kEvents].loadend),"function"==typeof e?(this[kEvents].loadend=e,this.addEventListener("loadend",e)):this[kEvents].loadend=null}get onerror(){return webidl$5.brandCheck(this,FileReader),this[kEvents].error}set onerror(e){webidl$5.brandCheck(this,FileReader),this[kEvents].error&&this.removeEventListener("error",this[kEvents].error),"function"==typeof e?(this[kEvents].error=e,this.addEventListener("error",e)):this[kEvents].error=null}get onloadstart(){return webidl$5.brandCheck(this,FileReader),this[kEvents].loadstart}set onloadstart(e){webidl$5.brandCheck(this,FileReader),this[kEvents].loadstart&&this.removeEventListener("loadstart",this[kEvents].loadstart),"function"==typeof e?(this[kEvents].loadstart=e,this.addEventListener("loadstart",e)):this[kEvents].loadstart=null}get onprogress(){return webidl$5.brandCheck(this,FileReader),this[kEvents].progress}set onprogress(e){webidl$5.brandCheck(this,FileReader),this[kEvents].progress&&this.removeEventListener("progress",this[kEvents].progress),"function"==typeof e?(this[kEvents].progress=e,this.addEventListener("progress",e)):this[kEvents].progress=null}get onload(){return webidl$5.brandCheck(this,FileReader),this[kEvents].load}set onload(e){webidl$5.brandCheck(this,FileReader),this[kEvents].load&&this.removeEventListener("load",this[kEvents].load),"function"==typeof e?(this[kEvents].load=e,this.addEventListener("load",e)):this[kEvents].load=null}get onabort(){return webidl$5.brandCheck(this,FileReader),this[kEvents].abort}set onabort(e){webidl$5.brandCheck(this,FileReader),this[kEvents].abort&&this.removeEventListener("abort",this[kEvents].abort),"function"==typeof e?(this[kEvents].abort=e,this.addEventListener("abort",e)):this[kEvents].abort=null}}FileReader.EMPTY=FileReader.prototype.EMPTY=0,FileReader.LOADING=FileReader.prototype.LOADING=1,FileReader.DONE=FileReader.prototype.DONE=2,Object.defineProperties(FileReader.prototype,{EMPTY:staticPropertyDescriptors$2,LOADING:staticPropertyDescriptors$2,DONE:staticPropertyDescriptors$2,readAsArrayBuffer:kEnumerableProperty$4,readAsBinaryString:kEnumerableProperty$4,readAsText:kEnumerableProperty$4,readAsDataURL:kEnumerableProperty$4,abort:kEnumerableProperty$4,readyState:kEnumerableProperty$4,result:kEnumerableProperty$4,error:kEnumerableProperty$4,onloadstart:kEnumerableProperty$4,onprogress:kEnumerableProperty$4,onload:kEnumerableProperty$4,onabort:kEnumerableProperty$4,onerror:kEnumerableProperty$4,onloadend:kEnumerableProperty$4,[Symbol.toStringTag]:{value:"FileReader",writable:!1,enumerable:!1,configurable:!0}}),Object.defineProperties(FileReader,{EMPTY:staticPropertyDescriptors$2,LOADING:staticPropertyDescriptors$2,DONE:staticPropertyDescriptors$2});var symbols$1={kConstruct:Symbol("constructable")};const assert$1=require$$0__default.default,{URLSerializer:URLSerializer$1}=dataURL,{isValidHeaderName:isValidHeaderName}=util$k;function urlEquals$1(e,t,r=!1){return URLSerializer$1(e,r)===URLSerializer$1(t,r)}function fieldValues(e){assert$1(null!==e);const t=[];for(let r of e.split(","))r=r.trim(),r.length&&isValidHeaderName(r)&&t.push(r);return t}var util$2={urlEquals:urlEquals$1,fieldValues:fieldValues};const{kConstruct:kConstruct$1}=symbols$1,{urlEquals:urlEquals,fieldValues:getFieldValues}=util$2,{kEnumerableProperty:kEnumerableProperty$3,isDisturbed:isDisturbed}=util$l,{kHeadersList:kHeadersList$1}=symbols$4,{webidl:webidl$4}=webidl_1,{Response:Response,cloneResponse:cloneResponse}=response,{Request:Request}=request,{kState:kState,kHeaders:kHeaders,kGuard:kGuard,kRealm:kRealm}=symbols$3,{fetching:fetching$1}=fetch_1,{urlIsHttpHttpsScheme:urlIsHttpHttpsScheme,createDeferredPromise:createDeferredPromise,readAllBytes:readAllBytes}=util$k,assert=require$$0__default.default,{getGlobalDispatcher:getGlobalDispatcher$3}=global$1;class Cache$1{#e;constructor(){arguments[0]!==kConstruct$1&&webidl$4.illegalConstructor(),this.#e=arguments[1]}async match(e,t={}){webidl$4.brandCheck(this,Cache$1),webidl$4.argumentLengthCheck(arguments,1,{header:"Cache.match"}),e=webidl$4.converters.RequestInfo(e),t=webidl$4.converters.CacheQueryOptions(t);const r=await this.matchAll(e,t);if(0!==r.length)return r[0]}async matchAll(e=void 0,t={}){webidl$4.brandCheck(this,Cache$1),void 0!==e&&(e=webidl$4.converters.RequestInfo(e)),t=webidl$4.converters.CacheQueryOptions(t);let r=null;if(void 0!==e)if(e instanceof Request){if(r=e[kState],"GET"!==r.method&&!t.ignoreMethod)return[]}else"string"==typeof e&&(r=new Request(e)[kState]);const n=[];if(void 0===e)for(const e of this.#e)n.push(e[1]);else{const e=this.#t(r,t);for(const t of e)n.push(t[1])}const o=[];for(const e of n){const t=new Response(e.body?.source??null),r=t[kState].body;t[kState]=e,t[kState].body=r,t[kHeaders][kHeadersList$1]=e.headersList,t[kHeaders][kGuard]="immutable",o.push(t)}return Object.freeze(o)}async add(e){webidl$4.brandCheck(this,Cache$1),webidl$4.argumentLengthCheck(arguments,1,{header:"Cache.add"});const t=[e=webidl$4.converters.RequestInfo(e)],r=this.addAll(t);return await r}async addAll(e){webidl$4.brandCheck(this,Cache$1),webidl$4.argumentLengthCheck(arguments,1,{header:"Cache.addAll"}),e=webidl$4.converters["sequence<RequestInfo>"](e);const t=[],r=[];for(const t of e){if("string"==typeof t)continue;const e=t[kState];if(!urlIsHttpHttpsScheme(e.url)||"GET"!==e.method)throw webidl$4.errors.exception({header:"Cache.addAll",message:"Expected http/s scheme when method is not GET."})}const n=[];for(const o of e){const e=new Request(o)[kState];if(!urlIsHttpHttpsScheme(e.url))throw webidl$4.errors.exception({header:"Cache.addAll",message:"Expected http/s scheme."});e.initiator="fetch",e.destination="subresource",r.push(e);const i=createDeferredPromise();n.push(fetching$1({request:e,dispatcher:getGlobalDispatcher$3(),processResponse(e){if("error"===e.type||206===e.status||e.status<200||e.status>299)i.reject(webidl$4.errors.exception({header:"Cache.addAll",message:"Received an invalid status code or the request failed."}));else if(e.headersList.contains("vary")){const t=getFieldValues(e.headersList.get("vary"));for(const e of t)if("*"===e){i.reject(webidl$4.errors.exception({header:"Cache.addAll",message:"invalid vary field value"}));for(const e of n)e.abort();return}}},processResponseEndOfBody(e){e.aborted?i.reject(new DOMException("aborted","AbortError")):i.resolve(e)}})),t.push(i.promise)}const o=Promise.all(t),i=await o,s=[];let A=0;for(const e of i){const t={type:"put",request:r[A],response:e};s.push(t),A++}const a=createDeferredPromise();let c=null;try{this.#r(s)}catch(e){c=e}return queueMicrotask((()=>{null===c?a.resolve(void 0):a.reject(c)})),a.promise}async put(e,t){webidl$4.brandCheck(this,Cache$1),webidl$4.argumentLengthCheck(arguments,2,{header:"Cache.put"}),e=webidl$4.converters.RequestInfo(e),t=webidl$4.converters.Response(t);let r=null;if(r=e instanceof Request?e[kState]:new Request(e)[kState],!urlIsHttpHttpsScheme(r.url)||"GET"!==r.method)throw webidl$4.errors.exception({header:"Cache.put",message:"Expected an http/s scheme when method is not GET"});const n=t[kState];if(206===n.status)throw webidl$4.errors.exception({header:"Cache.put",message:"Got 206 status"});if(n.headersList.contains("vary")){const e=getFieldValues(n.headersList.get("vary"));for(const t of e)if("*"===t)throw webidl$4.errors.exception({header:"Cache.put",message:"Got * vary field value"})}if(n.body&&(isDisturbed(n.body.stream)||n.body.stream.locked))throw webidl$4.errors.exception({header:"Cache.put",message:"Response body is locked or disturbed"});const o=cloneResponse(n),i=createDeferredPromise();if(null!=n.body){const e=n.body.stream.getReader();readAllBytes(e).then(i.resolve,i.reject)}else i.resolve(void 0);const s=[],A={type:"put",request:r,response:o};s.push(A);const a=await i.promise;null!=o.body&&(o.body.source=a);const c=createDeferredPromise();let u=null;try{this.#r(s)}catch(e){u=e}return queueMicrotask((()=>{null===u?c.resolve():c.reject(u)})),c.promise}async delete(e,t={}){webidl$4.brandCheck(this,Cache$1),webidl$4.argumentLengthCheck(arguments,1,{header:"Cache.delete"}),e=webidl$4.converters.RequestInfo(e),t=webidl$4.converters.CacheQueryOptions(t);let r=null;if(e instanceof Request){if(r=e[kState],"GET"!==r.method&&!t.ignoreMethod)return!1}else assert("string"==typeof e),r=new Request(e)[kState];const n=[],o={type:"delete",request:r,options:t};n.push(o);const i=createDeferredPromise();let s,A=null;try{s=this.#r(n)}catch(e){A=e}return queueMicrotask((()=>{null===A?i.resolve(!!s?.length):i.reject(A)})),i.promise}async keys(e=void 0,t={}){webidl$4.brandCheck(this,Cache$1),void 0!==e&&(e=webidl$4.converters.RequestInfo(e)),t=webidl$4.converters.CacheQueryOptions(t);let r=null;if(void 0!==e)if(e instanceof Request){if(r=e[kState],"GET"!==r.method&&!t.ignoreMethod)return[]}else"string"==typeof e&&(r=new Request(e)[kState]);const n=createDeferredPromise(),o=[];if(void 0===e)for(const e of this.#e)o.push(e[0]);else{const e=this.#t(r,t);for(const t of e)o.push(t[0])}return queueMicrotask((()=>{const e=[];for(const t of o){const r=new Request("https://a");r[kState]=t,r[kHeaders][kHeadersList$1]=t.headersList,r[kHeaders][kGuard]="immutable",r[kRealm]=t.client,e.push(r)}n.resolve(Object.freeze(e))})),n.promise}#r(e){const t=this.#e,r=[...t],n=[],o=[];try{for(const r of e){if("delete"!==r.type&&"put"!==r.type)throw webidl$4.errors.exception({header:"Cache.#batchCacheOperations",message:'operation type does not match "delete" or "put"'});if("delete"===r.type&&null!=r.response)throw webidl$4.errors.exception({header:"Cache.#batchCacheOperations",message:"delete operation should not have an associated response"});if(this.#t(r.request,r.options,n).length)throw new DOMException("???","InvalidStateError");let e;if("delete"===r.type){if(e=this.#t(r.request,r.options),0===e.length)return[];for(const r of e){const e=t.indexOf(r);assert(-1!==e),t.splice(e,1)}}else if("put"===r.type){if(null==r.response)throw webidl$4.errors.exception({header:"Cache.#batchCacheOperations",message:"put operation should have an associated response"});const o=r.request;if(!urlIsHttpHttpsScheme(o.url))throw webidl$4.errors.exception({header:"Cache.#batchCacheOperations",message:"expected http or https scheme"});if("GET"!==o.method)throw webidl$4.errors.exception({header:"Cache.#batchCacheOperations",message:"not get method"});if(null!=r.options)throw webidl$4.errors.exception({header:"Cache.#batchCacheOperations",message:"options must not be defined"});e=this.#t(r.request);for(const r of e){const e=t.indexOf(r);assert(-1!==e),t.splice(e,1)}t.push([r.request,r.response]),n.push([r.request,r.response])}o.push([r.request,r.response])}return o}catch(e){throw this.#e.length=0,this.#e=r,e}}#t(e,t,r){const n=[],o=r??this.#e;for(const r of o){const[o,i]=r;this.#n(e,o,i,t)&&n.push(r)}return n}#n(e,t,r=null,n){const o=new URL(e.url),i=new URL(t.url);if(n?.ignoreSearch&&(i.search="",o.search=""),!urlEquals(o,i,!0))return!1;if(null==r||n?.ignoreVary||!r.headersList.contains("vary"))return!0;const s=getFieldValues(r.headersList.get("vary"));for(const r of s){if("*"===r)return!1;if(t.headersList.get(r)!==e.headersList.get(r))return!1}return!0}}Object.defineProperties(Cache$1.prototype,{[Symbol.toStringTag]:{value:"Cache",configurable:!0},match:kEnumerableProperty$3,matchAll:kEnumerableProperty$3,add:kEnumerableProperty$3,addAll:kEnumerableProperty$3,put:kEnumerableProperty$3,delete:kEnumerableProperty$3,keys:kEnumerableProperty$3});const cacheQueryOptionConverters=[{key:"ignoreSearch",converter:webidl$4.converters.boolean,defaultValue:!1},{key:"ignoreMethod",converter:webidl$4.converters.boolean,defaultValue:!1},{key:"ignoreVary",converter:webidl$4.converters.boolean,defaultValue:!1}];webidl$4.converters.CacheQueryOptions=webidl$4.dictionaryConverter(cacheQueryOptionConverters),webidl$4.converters.MultiCacheQueryOptions=webidl$4.dictionaryConverter([...cacheQueryOptionConverters,{key:"cacheName",converter:webidl$4.converters.DOMString}]),webidl$4.converters.Response=webidl$4.interfaceConverter(Response),webidl$4.converters["sequence<RequestInfo>"]=webidl$4.sequenceConverter(webidl$4.converters.RequestInfo);var cache={Cache:Cache$1};const{kConstruct:kConstruct}=symbols$1,{Cache:Cache}=cache,{webidl:webidl$3}=webidl_1,{kEnumerableProperty:kEnumerableProperty$2}=util$l;class CacheStorage{#o=new Map;constructor(){arguments[0]!==kConstruct&&webidl$3.illegalConstructor()}async match(e,t={}){if(webidl$3.brandCheck(this,CacheStorage),webidl$3.argumentLengthCheck(arguments,1,{header:"CacheStorage.match"}),e=webidl$3.converters.RequestInfo(e),null!=(t=webidl$3.converters.MultiCacheQueryOptions(t)).cacheName){if(this.#o.has(t.cacheName)){const r=this.#o.get(t.cacheName),n=new Cache(kConstruct,r);return await n.match(e,t)}}else for(const r of this.#o.values()){const n=new Cache(kConstruct,r),o=await n.match(e,t);if(void 0!==o)return o}}async has(e){return webidl$3.brandCheck(this,CacheStorage),webidl$3.argumentLengthCheck(arguments,1,{header:"CacheStorage.has"}),e=webidl$3.converters.DOMString(e),this.#o.has(e)}async open(e){if(webidl$3.brandCheck(this,CacheStorage),webidl$3.argumentLengthCheck(arguments,1,{header:"CacheStorage.open"}),e=webidl$3.converters.DOMString(e),this.#o.has(e)){const t=this.#o.get(e);return new Cache(kConstruct,t)}const t=[];return this.#o.set(e,t),new Cache(kConstruct,t)}async delete(e){return webidl$3.brandCheck(this,CacheStorage),webidl$3.argumentLengthCheck(arguments,1,{header:"CacheStorage.delete"}),e=webidl$3.converters.DOMString(e),this.#o.delete(e)}async keys(){webidl$3.brandCheck(this,CacheStorage);return[...this.#o.keys()]}}Object.defineProperties(CacheStorage.prototype,{[Symbol.toStringTag]:{value:"CacheStorage",configurable:!0},match:kEnumerableProperty$2,has:kEnumerableProperty$2,open:kEnumerableProperty$2,delete:kEnumerableProperty$2,keys:kEnumerableProperty$2});var cachestorage={CacheStorage:CacheStorage};const{webidl:webidl$2}=webidl_1;webidl$2.converters.DeleteCookieAttributes=webidl$2.dictionaryConverter([{converter:webidl$2.nullableConverter(webidl$2.converters.DOMString),key:"path",defaultValue:null},{converter:webidl$2.nullableConverter(webidl$2.converters.DOMString),key:"domain",defaultValue:null}]),webidl$2.converters.Cookie=webidl$2.dictionaryConverter([{converter:webidl$2.converters.DOMString,key:"name"},{converter:webidl$2.converters.DOMString,key:"value"},{converter:webidl$2.nullableConverter((e=>"number"==typeof e?webidl$2.converters["unsigned long long"](e):new Date(e))),key:"expires",defaultValue:null},{converter:webidl$2.nullableConverter(webidl$2.converters["long long"]),key:"maxAge",defaultValue:null},{converter:webidl$2.nullableConverter(webidl$2.converters.DOMString),key:"domain",defaultValue:null},{converter:webidl$2.nullableConverter(webidl$2.converters.DOMString),key:"path",defaultValue:null},{converter:webidl$2.nullableConverter(webidl$2.converters.boolean),key:"secure",defaultValue:null},{converter:webidl$2.nullableConverter(webidl$2.converters.boolean),key:"httpOnly",defaultValue:null},{converter:webidl$2.converters.USVString,key:"sameSite",allowedValues:["Strict","Lax","None"]},{converter:webidl$2.sequenceConverter(webidl$2.converters.DOMString),key:"unparsed",defaultValue:[]}]);const uid$1="258EAFA5-E914-47DA-95CA-C5AB0DC85B11",staticPropertyDescriptors$1={enumerable:!0,writable:!1,configurable:!1},states$4={CONNECTING:0,OPEN:1,CLOSING:2,CLOSED:3},opcodes$3={CONTINUATION:0,TEXT:1,BINARY:2,CLOSE:8,PING:9,PONG:10},maxUnsigned16Bit$1=65535,parserStates$1={INFO:0,PAYLOADLENGTH_16:2,PAYLOADLENGTH_64:3,READ_DATA:4},emptyBuffer$2=Buffer.allocUnsafe(0);var constants={uid:uid$1,staticPropertyDescriptors:staticPropertyDescriptors$1,states:states$4,opcodes:opcodes$3,maxUnsigned16Bit:65535,parserStates:parserStates$1,emptyBuffer:emptyBuffer$2},symbols={kWebSocketURL:Symbol("url"),kReadyState:Symbol("ready state"),kController:Symbol("controller"),kResponse:Symbol("response"),kBinaryType:Symbol("binary type"),kSentClose:Symbol("sent close"),kReceivedClose:Symbol("received close"),kByteParser:Symbol("byte parser")};const{webidl:webidl$1}=webidl_1,{kEnumerableProperty:kEnumerableProperty$1}=util$l,{MessagePort:MessagePort}=require$$0__default$3.default;class MessageEvent$1 extends Event{#i;constructor(e,t={}){webidl$1.argumentLengthCheck(arguments,1,{header:"MessageEvent constructor"}),super(e=webidl$1.converters.DOMString(e),t=webidl$1.converters.MessageEventInit(t)),this.#i=t}get data(){return webidl$1.brandCheck(this,MessageEvent$1),this.#i.data}get origin(){return webidl$1.brandCheck(this,MessageEvent$1),this.#i.origin}get lastEventId(){return webidl$1.brandCheck(this,MessageEvent$1),this.#i.lastEventId}get source(){return webidl$1.brandCheck(this,MessageEvent$1),this.#i.source}get ports(){return webidl$1.brandCheck(this,MessageEvent$1),Object.isFrozen(this.#i.ports)||Object.freeze(this.#i.ports),this.#i.ports}initMessageEvent(e,t=!1,r=!1,n=null,o="",i="",s=null,A=[]){return webidl$1.brandCheck(this,MessageEvent$1),webidl$1.argumentLengthCheck(arguments,1,{header:"MessageEvent.initMessageEvent"}),new MessageEvent$1(e,{bubbles:t,cancelable:r,data:n,origin:o,lastEventId:i,source:s,ports:A})}}class CloseEvent$1 extends Event{#i;constructor(e,t={}){webidl$1.argumentLengthCheck(arguments,1,{header:"CloseEvent constructor"}),super(e=webidl$1.converters.DOMString(e),t=webidl$1.converters.CloseEventInit(t)),this.#i=t}get wasClean(){return webidl$1.brandCheck(this,CloseEvent$1),this.#i.wasClean}get code(){return webidl$1.brandCheck(this,CloseEvent$1),this.#i.code}get reason(){return webidl$1.brandCheck(this,CloseEvent$1),this.#i.reason}}class ErrorEvent$1 extends Event{#i;constructor(e,t){webidl$1.argumentLengthCheck(arguments,1,{header:"ErrorEvent constructor"}),super(e,t),e=webidl$1.converters.DOMString(e),t=webidl$1.converters.ErrorEventInit(t??{}),this.#i=t}get message(){return webidl$1.brandCheck(this,ErrorEvent$1),this.#i.message}get filename(){return webidl$1.brandCheck(this,ErrorEvent$1),this.#i.filename}get lineno(){return webidl$1.brandCheck(this,ErrorEvent$1),this.#i.lineno}get colno(){return webidl$1.brandCheck(this,ErrorEvent$1),this.#i.colno}get error(){return webidl$1.brandCheck(this,ErrorEvent$1),this.#i.error}}Object.defineProperties(MessageEvent$1.prototype,{[Symbol.toStringTag]:{value:"MessageEvent",configurable:!0},data:kEnumerableProperty$1,origin:kEnumerableProperty$1,lastEventId:kEnumerableProperty$1,source:kEnumerableProperty$1,ports:kEnumerableProperty$1,initMessageEvent:kEnumerableProperty$1}),Object.defineProperties(CloseEvent$1.prototype,{[Symbol.toStringTag]:{value:"CloseEvent",configurable:!0},reason:kEnumerableProperty$1,code:kEnumerableProperty$1,wasClean:kEnumerableProperty$1}),Object.defineProperties(ErrorEvent$1.prototype,{[Symbol.toStringTag]:{value:"ErrorEvent",configurable:!0},message:kEnumerableProperty$1,filename:kEnumerableProperty$1,lineno:kEnumerableProperty$1,colno:kEnumerableProperty$1,error:kEnumerableProperty$1}),webidl$1.converters.MessagePort=webidl$1.interfaceConverter(MessagePort),webidl$1.converters["sequence<MessagePort>"]=webidl$1.sequenceConverter(webidl$1.converters.MessagePort);const eventInit=[{key:"bubbles",converter:webidl$1.converters.boolean,defaultValue:!1},{key:"cancelable",converter:webidl$1.converters.boolean,defaultValue:!1},{key:"composed",converter:webidl$1.converters.boolean,defaultValue:!1}];webidl$1.converters.MessageEventInit=webidl$1.dictionaryConverter([...eventInit,{key:"data",converter:webidl$1.converters.any,defaultValue:null},{key:"origin",converter:webidl$1.converters.USVString,defaultValue:""},{key:"lastEventId",converter:webidl$1.converters.DOMString,defaultValue:""},{key:"source",converter:webidl$1.nullableConverter(webidl$1.converters.MessagePort),defaultValue:null},{key:"ports",converter:webidl$1.converters["sequence<MessagePort>"],get defaultValue(){return[]}}]),webidl$1.converters.CloseEventInit=webidl$1.dictionaryConverter([...eventInit,{key:"wasClean",converter:webidl$1.converters.boolean,defaultValue:!1},{key:"code",converter:webidl$1.converters["unsigned short"],defaultValue:0},{key:"reason",converter:webidl$1.converters.USVString,defaultValue:""}]),webidl$1.converters.ErrorEventInit=webidl$1.dictionaryConverter([...eventInit,{key:"message",converter:webidl$1.converters.DOMString,defaultValue:""},{key:"filename",converter:webidl$1.converters.USVString,defaultValue:""},{key:"lineno",converter:webidl$1.converters["unsigned long"],defaultValue:0},{key:"colno",converter:webidl$1.converters["unsigned long"],defaultValue:0},{key:"error",converter:webidl$1.converters.any}]);var events={MessageEvent:MessageEvent$1,CloseEvent:CloseEvent$1,ErrorEvent:ErrorEvent$1};const{kReadyState:kReadyState$3,kController:kController$1,kResponse:kResponse$2,kBinaryType:kBinaryType$1,kWebSocketURL:kWebSocketURL$1}=symbols,{states:states$3,opcodes:opcodes$2}=constants,{MessageEvent:MessageEvent,ErrorEvent:ErrorEvent}=events;function isEstablished$1(e){return e[kReadyState$3]===states$3.OPEN}function isClosing$1(e){return e[kReadyState$3]===states$3.CLOSING}function isClosed(e){return e[kReadyState$3]===states$3.CLOSED}function fireEvent$2(e,t,r=Event,n){const o=new r(e,n);t.dispatchEvent(o)}function websocketMessageReceived$1(e,t,r){if(e[kReadyState$3]!==states$3.OPEN)return;let n;if(t===opcodes$2.TEXT)try{n=new TextDecoder("utf-8",{fatal:!0}).decode(r)}catch{return void failWebsocketConnection$3(e,"Received invalid UTF-8 in text frame.")}else t===opcodes$2.BINARY&&(n="blob"===e[kBinaryType$1]?new Blob([r]):new Uint8Array(r).buffer);fireEvent$2("message",e,MessageEvent,{origin:e[kWebSocketURL$1].origin,data:n})}function isValidSubprotocol$1(e){if(0===e.length)return!1;for(const t of e){const e=t.charCodeAt(0);if(e<33||e>126||"("===t||")"===t||"<"===t||">"===t||"@"===t||","===t||";"===t||":"===t||"\\"===t||'"'===t||"/"===t||"["===t||"]"===t||"?"===t||"="===t||"{"===t||"}"===t||32===e||9===e)return!1}return!0}function isValidStatusCode$1(e){return e>=1e3&&e<1015?1004!==e&&1005!==e&&1006!==e:e>=3e3&&e<=4999}function failWebsocketConnection$3(e,t){const{[kController$1]:r,[kResponse$2]:n}=e;r.abort(),n?.socket&&!n.socket.destroyed&&n.socket.destroy(),t&&fireEvent$2("error",e,ErrorEvent,{error:new Error(t)})}var util$1={isEstablished:isEstablished$1,isClosing:isClosing$1,isClosed:isClosed,fireEvent:fireEvent$2,isValidSubprotocol:isValidSubprotocol$1,isValidStatusCode:isValidStatusCode$1,failWebsocketConnection:failWebsocketConnection$3,websocketMessageReceived:websocketMessageReceived$1};const{randomBytes:randomBytes$1,createHash:createHash}=require$$0__default$4.default,diagnosticsChannel$1=require$$1__default.default,{uid:uid,states:states$2}=constants,{kReadyState:kReadyState$2,kSentClose:kSentClose$2,kByteParser:kByteParser$1,kReceivedClose:kReceivedClose$1}=symbols,{fireEvent:fireEvent$1,failWebsocketConnection:failWebsocketConnection$2}=util$1,{CloseEvent:CloseEvent}=events,{makeRequest:makeRequest}=request,{fetching:fetching}=fetch_1,{Headers:Headers}=headers,{getGlobalDispatcher:getGlobalDispatcher$2}=global$1,{kHeadersList:kHeadersList}=symbols$4,channels$1={};function establishWebSocketConnection$1(e,t,r,n,o){const i=e;i.protocol="ws:"===e.protocol?"http:":"https:";const s=makeRequest({urlList:[i],serviceWorkers:"none",referrer:"no-referrer",mode:"websocket",credentials:"include",cache:"no-store",redirect:"error"});if(o.headers){const e=new Headers(o.headers)[kHeadersList];s.headersList=e}const A=randomBytes$1(16).toString("base64");s.headersList.append("sec-websocket-key",A),s.headersList.append("sec-websocket-version","13");for(const e of t)s.headersList.append("sec-websocket-protocol",e);const a=fetching({request:s,useParallelQueue:!0,dispatcher:o.dispatcher??getGlobalDispatcher$2(),processResponse(e){if("error"===e.type||101!==e.status)return void failWebsocketConnection$2(r,"Received network error or non-101 status code.");if(0!==t.length&&!e.headersList.get("Sec-WebSocket-Protocol"))return void failWebsocketConnection$2(r,"Server did not respond with sent protocols.");if("websocket"!==e.headersList.get("Upgrade")?.toLowerCase())return void failWebsocketConnection$2(r,'Server did not set Upgrade header to "websocket".');if("upgrade"!==e.headersList.get("Connection")?.toLowerCase())return void failWebsocketConnection$2(r,'Server did not set Connection header to "upgrade".');if(e.headersList.get("Sec-WebSocket-Accept")!==createHash("sha1").update(A+uid).digest("base64"))return void failWebsocketConnection$2(r,"Incorrect hash received in Sec-WebSocket-Accept header.");const o=e.headersList.get("Sec-WebSocket-Extensions");if(null!==o&&""!==o)return void failWebsocketConnection$2(r,"Received different permessage-deflate than the one set.");const i=e.headersList.get("Sec-WebSocket-Protocol");null===i||i===s.headersList.get("Sec-WebSocket-Protocol")?(e.socket.on("data",onSocketData),e.socket.on("close",onSocketClose),e.socket.on("error",onSocketError),channels$1.open.hasSubscribers&&channels$1.open.publish({address:e.socket.address(),protocol:i,extensions:o}),n(e)):failWebsocketConnection$2(r,"Protocol was not set in the opening handshake.")}});return a}function onSocketData(e){this.ws[kByteParser$1].write(e)||this.pause()}function onSocketClose(){const{ws:e}=this,t=e[kSentClose$2]&&e[kReceivedClose$1];let r=1005,n="";const o=e[kByteParser$1].closingInfo;o?(r=o.code??1005,n=o.reason):e[kSentClose$2]||(r=1006),e[kReadyState$2]=states$2.CLOSED,fireEvent$1("close",e,CloseEvent,{wasClean:t,code:r,reason:n}),channels$1.close.hasSubscribers&&channels$1.close.publish({websocket:e,code:r,reason:n})}function onSocketError(e){const{ws:t}=this;t[kReadyState$2]=states$2.CLOSING,channels$1.socketError.hasSubscribers&&channels$1.socketError.publish(e),this.destroy()}channels$1.open=diagnosticsChannel$1.channel("undici:websocket:open"),channels$1.close=diagnosticsChannel$1.channel("undici:websocket:close"),channels$1.socketError=diagnosticsChannel$1.channel("undici:websocket:socket_error");var connection={establishWebSocketConnection:establishWebSocketConnection$1};const{randomBytes:randomBytes}=require$$0__default$4.default,{maxUnsigned16Bit:maxUnsigned16Bit}=constants;class WebsocketFrameSend$2{constructor(e){this.frameData=e,this.maskKey=randomBytes(4)}createFrame(e){const t=this.frameData?.byteLength??0;let r=t,n=6;t>maxUnsigned16Bit?(n+=8,r=127):t>125&&(n+=2,r=126);const o=Buffer.allocUnsafe(t+n);o[0]=o[1]=0,o[0]|=128,o[0]=(240&o[0])+e,
3
+ /*! ws. MIT License. Einar Otto Stangvik <einaros@gmail.com> */
4
+ o[n-4]=this.maskKey[0],o[n-3]=this.maskKey[1],o[n-2]=this.maskKey[2],o[n-1]=this.maskKey[3],o[1]=r,126===r?o.writeUInt16BE(t,2):127===r&&(o[2]=o[3]=0,o.writeUIntBE(t,4,6)),o[1]|=128;for(let e=0;e<t;e++)o[n+e]=this.frameData[e]^this.maskKey[e%4];return o}}var frame={WebsocketFrameSend:WebsocketFrameSend$2};const{Writable:Writable}=require$$0__default$1.default,diagnosticsChannel=require$$1__default.default,{parserStates:parserStates,opcodes:opcodes$1,states:states$1,emptyBuffer:emptyBuffer$1}=constants,{kReadyState:kReadyState$1,kSentClose:kSentClose$1,kResponse:kResponse$1,kReceivedClose:kReceivedClose}=symbols,{isValidStatusCode:isValidStatusCode,failWebsocketConnection:failWebsocketConnection$1,websocketMessageReceived:websocketMessageReceived}=util$1,{WebsocketFrameSend:WebsocketFrameSend$1}=frame,channels={};channels.ping=diagnosticsChannel.channel("undici:websocket:ping"),channels.pong=diagnosticsChannel.channel("undici:websocket:pong");class ByteParser$1 extends Writable{#s=[];#A=0;#a=parserStates.INFO;#c={};#u=[];constructor(e){super(),this.ws=e}_write(e,t,r){this.#s.push(e),this.#A+=e.length,this.run(r)}run(e){for(;;){if(this.#a===parserStates.INFO){if(this.#A<2)return e();const t=this.consume(2);if(this.#c.fin=0!=(128&t[0]),this.#c.opcode=15&t[0],this.#c.originalOpcode??=this.#c.opcode,this.#c.fragmented=!this.#c.fin&&this.#c.opcode!==opcodes$1.CONTINUATION,this.#c.fragmented&&this.#c.opcode!==opcodes$1.BINARY&&this.#c.opcode!==opcodes$1.TEXT)return void failWebsocketConnection$1(this.ws,"Invalid frame type was fragmented.");const r=127&t[1];if(r<=125?(this.#c.payloadLength=r,this.#a=parserStates.READ_DATA):126===r?this.#a=parserStates.PAYLOADLENGTH_16:127===r&&(this.#a=parserStates.PAYLOADLENGTH_64),this.#c.fragmented&&r>125)return void failWebsocketConnection$1(this.ws,"Fragmented frame exceeded 125 bytes.");if((this.#c.opcode===opcodes$1.PING||this.#c.opcode===opcodes$1.PONG||this.#c.opcode===opcodes$1.CLOSE)&&r>125)return void failWebsocketConnection$1(this.ws,"Payload length for control frame exceeded 125 bytes.");if(this.#c.opcode===opcodes$1.CLOSE){if(1===r)return void failWebsocketConnection$1(this.ws,"Received close frame with a 1-byte body.");const e=this.consume(r);if(this.#c.closeInfo=this.parseCloseBody(!1,e),!this.ws[kSentClose$1]){const e=Buffer.allocUnsafe(2);e.writeUInt16BE(this.#c.closeInfo.code,0);const t=new WebsocketFrameSend$1(e);this.ws[kResponse$1].socket.write(t.createFrame(opcodes$1.CLOSE),(e=>{e||(this.ws[kSentClose$1]=!0)}))}return this.ws[kReadyState$1]=states$1.CLOSING,this.ws[kReceivedClose]=!0,void this.end()}if(this.#c.opcode===opcodes$1.PING){const t=this.consume(r);if(!this.ws[kReceivedClose]){const e=new WebsocketFrameSend$1(t);this.ws[kResponse$1].socket.write(e.createFrame(opcodes$1.PONG)),channels.ping.hasSubscribers&&channels.ping.publish({payload:t})}if(this.#a=parserStates.INFO,this.#A>0)continue;return void e()}if(this.#c.opcode===opcodes$1.PONG){const t=this.consume(r);if(channels.pong.hasSubscribers&&channels.pong.publish({payload:t}),this.#A>0)continue;return void e()}}else if(this.#a===parserStates.PAYLOADLENGTH_16){if(this.#A<2)return e();const t=this.consume(2);this.#c.payloadLength=t.readUInt16BE(0),this.#a=parserStates.READ_DATA}else if(this.#a===parserStates.PAYLOADLENGTH_64){if(this.#A<8)return e();const t=this.consume(8),r=t.readUInt32BE(0);if(r>2**31-1)return void failWebsocketConnection$1(this.ws,"Received payload length > 2^31 bytes.");const n=t.readUInt32BE(4);this.#c.payloadLength=(r<<8)+n,this.#a=parserStates.READ_DATA}else if(this.#a===parserStates.READ_DATA){if(this.#A<this.#c.payloadLength)return e();if(this.#A>=this.#c.payloadLength){const e=this.consume(this.#c.payloadLength);if(this.#u.push(e),!this.#c.fragmented||this.#c.fin&&this.#c.opcode===opcodes$1.CONTINUATION){const e=Buffer.concat(this.#u);websocketMessageReceived(this.ws,this.#c.originalOpcode,e),this.#c={},this.#u.length=0}this.#a=parserStates.INFO}}if(!(this.#A>0)){e();break}}}consume(e){if(e>this.#A)return null;if(0===e)return emptyBuffer$1;if(this.#s[0].length===e)return this.#A-=this.#s[0].length,this.#s.shift();const t=Buffer.allocUnsafe(e);let r=0;for(;r!==e;){const n=this.#s[0],{length:o}=n;if(o+r===e){t.set(this.#s.shift(),r);break}if(o+r>e){t.set(n.subarray(0,e-r),r),this.#s[0]=n.subarray(e-r);break}t.set(this.#s.shift(),r),r+=n.length}return this.#A-=e,t}parseCloseBody(e,t){let r;if(t.length>=2&&(r=t.readUInt16BE(0)),e)return isValidStatusCode(r)?{code:r}:null;let n=t.subarray(2);if(239===n[0]&&187===n[1]&&191===n[2]&&(n=n.subarray(3)),void 0!==r&&!isValidStatusCode(r))return null;try{n=new TextDecoder("utf-8",{fatal:!0}).decode(n)}catch{return null}return{code:r,reason:n}}get closingInfo(){return this.#c.closeInfo}}var receiver={ByteParser:ByteParser$1};const{webidl:webidl}=webidl_1,{DOMException:DOMException$1}=constants$3,{URLSerializer:URLSerializer}=dataURL,{getGlobalOrigin:getGlobalOrigin}=global$2,{staticPropertyDescriptors:staticPropertyDescriptors,states:states,opcodes:opcodes,emptyBuffer:emptyBuffer}=constants,{kWebSocketURL:kWebSocketURL,kReadyState:kReadyState,kController:kController,kBinaryType:kBinaryType,kResponse:kResponse,kSentClose:kSentClose,kByteParser:kByteParser}=symbols,{isEstablished:isEstablished,isClosing:isClosing,isValidSubprotocol:isValidSubprotocol,failWebsocketConnection:failWebsocketConnection,fireEvent:fireEvent}=util$1,{establishWebSocketConnection:establishWebSocketConnection}=connection,{WebsocketFrameSend:WebsocketFrameSend}=frame,{ByteParser:ByteParser}=receiver,{kEnumerableProperty:kEnumerableProperty,isBlobLike:isBlobLike}=util$l,{getGlobalDispatcher:getGlobalDispatcher$1}=global$1,{types:types}=require$$0__default$2.default;let experimentalWarned=!1;class WebSocket extends EventTarget{#l={open:null,error:null,close:null,message:null};#d=0;#g="";#h="";constructor(e,t=[]){super(),webidl.argumentLengthCheck(arguments,1,{header:"WebSocket constructor"}),experimentalWarned||(experimentalWarned=!0,process.emitWarning("WebSockets are experimental, expect them to change at any time.",{code:"UNDICI-WS"}));const r=webidl.converters["DOMString or sequence<DOMString> or WebSocketInit"](t);e=webidl.converters.USVString(e),t=r.protocols;const n=getGlobalOrigin();let o;try{o=new URL(e,n)}catch(e){throw new DOMException$1(e,"SyntaxError")}if("http:"===o.protocol?o.protocol="ws:":"https:"===o.protocol&&(o.protocol="wss:"),"ws:"!==o.protocol&&"wss:"!==o.protocol)throw new DOMException$1(`Expected a ws: or wss: protocol, got ${o.protocol}`,"SyntaxError");if(o.hash||o.href.endsWith("#"))throw new DOMException$1("Got fragment","SyntaxError");if("string"==typeof t&&(t=[t]),t.length!==new Set(t.map((e=>e.toLowerCase()))).size)throw new DOMException$1("Invalid Sec-WebSocket-Protocol value","SyntaxError");if(t.length>0&&!t.every((e=>isValidSubprotocol(e))))throw new DOMException$1("Invalid Sec-WebSocket-Protocol value","SyntaxError");this[kWebSocketURL]=new URL(o.href),this[kController]=establishWebSocketConnection(o,t,this,(e=>this.#p(e)),r),this[kReadyState]=WebSocket.CONNECTING,this[kBinaryType]="blob"}close(e=void 0,t=void 0){if(webidl.brandCheck(this,WebSocket),void 0!==e&&(e=webidl.converters["unsigned short"](e,{clamp:!0})),void 0!==t&&(t=webidl.converters.USVString(t)),void 0!==e&&1e3!==e&&(e<3e3||e>4999))throw new DOMException$1("invalid code","InvalidAccessError");let r=0;if(void 0!==t&&(r=Buffer.byteLength(t),r>123))throw new DOMException$1(`Reason must be less than 123 bytes; received ${r}`,"SyntaxError");if(this[kReadyState]===WebSocket.CLOSING||this[kReadyState]===WebSocket.CLOSED);else if(isEstablished(this))if(isClosing(this))this[kReadyState]=WebSocket.CLOSING;else{const n=new WebsocketFrameSend;void 0!==e&&void 0===t?(n.frameData=Buffer.allocUnsafe(2),n.frameData.writeUInt16BE(e,0)):void 0!==e&&void 0!==t?(n.frameData=Buffer.allocUnsafe(2+r),n.frameData.writeUInt16BE(e,0),n.frameData.write(t,2,"utf-8")):n.frameData=emptyBuffer;this[kResponse].socket.write(n.createFrame(opcodes.CLOSE),(e=>{e||(this[kSentClose]=!0)})),this[kReadyState]=states.CLOSING}else failWebsocketConnection(this,"Connection was closed before it was established."),this[kReadyState]=WebSocket.CLOSING}send(e){if(webidl.brandCheck(this,WebSocket),webidl.argumentLengthCheck(arguments,1,{header:"WebSocket.send"}),e=webidl.converters.WebSocketSendData(e),this[kReadyState]===WebSocket.CONNECTING)throw new DOMException$1("Sent before connected.","InvalidStateError");if(!isEstablished(this)||isClosing(this))return;const t=this[kResponse].socket;if("string"==typeof e){const r=Buffer.from(e),n=new WebsocketFrameSend(r).createFrame(opcodes.TEXT);this.#d+=r.byteLength,t.write(n,(()=>{this.#d-=r.byteLength}))}else if(types.isArrayBuffer(e)){const r=Buffer.from(e),n=new WebsocketFrameSend(r).createFrame(opcodes.BINARY);this.#d+=r.byteLength,t.write(n,(()=>{this.#d-=r.byteLength}))}else if(ArrayBuffer.isView(e)){const r=Buffer.from(e,e.byteOffset,e.byteLength),n=new WebsocketFrameSend(r).createFrame(opcodes.BINARY);this.#d+=r.byteLength,t.write(n,(()=>{this.#d-=r.byteLength}))}else if(isBlobLike(e)){const r=new WebsocketFrameSend;e.arrayBuffer().then((e=>{const n=Buffer.from(e);r.frameData=n;const o=r.createFrame(opcodes.BINARY);this.#d+=n.byteLength,t.write(o,(()=>{this.#d-=n.byteLength}))}))}}get readyState(){return webidl.brandCheck(this,WebSocket),this[kReadyState]}get bufferedAmount(){return webidl.brandCheck(this,WebSocket),this.#d}get url(){return webidl.brandCheck(this,WebSocket),URLSerializer(this[kWebSocketURL])}get extensions(){return webidl.brandCheck(this,WebSocket),this.#h}get protocol(){return webidl.brandCheck(this,WebSocket),this.#g}get onopen(){return webidl.brandCheck(this,WebSocket),this.#l.open}set onopen(e){webidl.brandCheck(this,WebSocket),this.#l.open&&this.removeEventListener("open",this.#l.open),"function"==typeof e?(this.#l.open=e,this.addEventListener("open",e)):this.#l.open=null}get onerror(){return webidl.brandCheck(this,WebSocket),this.#l.error}set onerror(e){webidl.brandCheck(this,WebSocket),this.#l.error&&this.removeEventListener("error",this.#l.error),"function"==typeof e?(this.#l.error=e,this.addEventListener("error",e)):this.#l.error=null}get onclose(){return webidl.brandCheck(this,WebSocket),this.#l.close}set onclose(e){webidl.brandCheck(this,WebSocket),this.#l.close&&this.removeEventListener("close",this.#l.close),"function"==typeof e?(this.#l.close=e,this.addEventListener("close",e)):this.#l.close=null}get onmessage(){return webidl.brandCheck(this,WebSocket),this.#l.message}set onmessage(e){webidl.brandCheck(this,WebSocket),this.#l.message&&this.removeEventListener("message",this.#l.message),"function"==typeof e?(this.#l.message=e,this.addEventListener("message",e)):this.#l.message=null}get binaryType(){return webidl.brandCheck(this,WebSocket),this[kBinaryType]}set binaryType(e){webidl.brandCheck(this,WebSocket),this[kBinaryType]="blob"!==e&&"arraybuffer"!==e?"blob":e}#p(e){this[kResponse]=e;const t=new ByteParser(this);t.on("drain",(function(){this.ws[kResponse].socket.resume()})),e.socket.ws=this,this[kByteParser]=t,this[kReadyState]=states.OPEN;const r=e.headersList.get("sec-websocket-extensions");null!==r&&(this.#h=r);const n=e.headersList.get("sec-websocket-protocol");null!==n&&(this.#g=n),fireEvent("open",this)}}WebSocket.CONNECTING=WebSocket.prototype.CONNECTING=states.CONNECTING,WebSocket.OPEN=WebSocket.prototype.OPEN=states.OPEN,WebSocket.CLOSING=WebSocket.prototype.CLOSING=states.CLOSING,WebSocket.CLOSED=WebSocket.prototype.CLOSED=states.CLOSED,Object.defineProperties(WebSocket.prototype,{CONNECTING:staticPropertyDescriptors,OPEN:staticPropertyDescriptors,CLOSING:staticPropertyDescriptors,CLOSED:staticPropertyDescriptors,url:kEnumerableProperty,readyState:kEnumerableProperty,bufferedAmount:kEnumerableProperty,onopen:kEnumerableProperty,onerror:kEnumerableProperty,onclose:kEnumerableProperty,close:kEnumerableProperty,onmessage:kEnumerableProperty,binaryType:kEnumerableProperty,send:kEnumerableProperty,extensions:kEnumerableProperty,protocol:kEnumerableProperty,[Symbol.toStringTag]:{value:"WebSocket",writable:!1,enumerable:!1,configurable:!0}}),Object.defineProperties(WebSocket,{CONNECTING:staticPropertyDescriptors,OPEN:staticPropertyDescriptors,CLOSING:staticPropertyDescriptors,CLOSED:staticPropertyDescriptors}),webidl.converters["sequence<DOMString>"]=webidl.sequenceConverter(webidl.converters.DOMString),webidl.converters["DOMString or sequence<DOMString>"]=function(e){return"Object"===webidl.util.Type(e)&&Symbol.iterator in e?webidl.converters["sequence<DOMString>"](e):webidl.converters.DOMString(e)},webidl.converters.WebSocketInit=webidl.dictionaryConverter([{key:"protocols",converter:webidl.converters["DOMString or sequence<DOMString>"],get defaultValue(){return[]}},{key:"dispatcher",converter:e=>e,get defaultValue(){return getGlobalDispatcher$1()}},{key:"headers",converter:webidl.nullableConverter(webidl.converters.HeadersInit)}]),webidl.converters["DOMString or sequence<DOMString> or WebSocketInit"]=function(e){return"Object"!==webidl.util.Type(e)||Symbol.iterator in e?{protocols:webidl.converters["DOMString or sequence<DOMString>"](e)}:webidl.converters.WebSocketInit(e)},webidl.converters.WebSocketSendData=function(e){if("Object"===webidl.util.Type(e)){if(isBlobLike(e))return webidl.converters.Blob(e,{strict:!1});if(ArrayBuffer.isView(e)||types.isAnyArrayBuffer(e))return webidl.converters.BufferSource(e)}return webidl.converters.USVString(e)};const Dispatcher=dispatcher,errors=errors$1,Agent=agent,util=util$l,{InvalidArgumentError:InvalidArgumentError}=errors,api=api$1,{getGlobalDispatcher:getGlobalDispatcher,setGlobalDispatcher:setGlobalDispatcher}=global$1;let hasCrypto;try{require("crypto"),hasCrypto=!0}catch{hasCrypto=!1}Object.assign(Dispatcher.prototype,api);var Agent_1=Agent;function makeDispatcher(e){return(t,r,n)=>{if("function"==typeof r&&(n=r,r=null),!t||"string"!=typeof t&&"object"!=typeof t&&!(t instanceof URL))throw new InvalidArgumentError("invalid url");if(null!=r&&"object"!=typeof r)throw new InvalidArgumentError("invalid opts");if(r&&null!=r.path){if("string"!=typeof r.path)throw new InvalidArgumentError("invalid opts.path");let e=r.path;r.path.startsWith("/")||(e=`/${e}`),t=new URL(util.parseOrigin(t).origin+e)}else r||(r="object"==typeof t?t:{}),t=util.parseURL(t);const{agent:o,dispatcher:i=getGlobalDispatcher()}=r;if(o)throw new InvalidArgumentError("unsupported opts.agent. Did you mean opts.client?");return e.call(i,{...r,origin:t.origin,path:t.search?`${t.pathname}${t.search}`:t.pathname,method:r.method||(r.body?"PUT":"GET")},n)}}var setGlobalDispatcher_1=setGlobalDispatcher;if(util.nodeMajor>16||16===util.nodeMajor&&util.nodeMinor>=8){const{CacheStorage:e}=cachestorage,{kConstruct:t}=symbols$1;new e(t)}makeDispatcher(api.request),makeDispatcher(api.stream),makeDispatcher(api.pipeline),makeDispatcher(api.connect),makeDispatcher(api.upgrade);var trustwave="\nTrustwave Secure Global Extended Validation CA, Level 1\nSecureTrust Corporation\n00F6F61CE4A3635BB0CA8AACEEFCB2D0F0\n-----BEGIN CERTIFICATE-----\nMIIE+DCCA+CgAwIBAgIRAPb2HOSjY1uwyoqs7vyy0PAwDQYJKoZIhvcNAQELBQAw\nSjELMAkGA1UEBhMCVVMxIDAeBgNVBAoTF1NlY3VyZVRydXN0IENvcnBvcmF0aW9u\nMRkwFwYDVQQDExBTZWN1cmUgR2xvYmFsIENBMB4XDTE1MDgxMjIwMTcyOVoXDTI1\nMDgwOTIwMTcyOVowgbgxCzAJBgNVBAYTAl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3J0MB0GA1UdJQQWMBQGCCsGAQUFBwMCBggr\nBgEFBQcDATAfBgNVHSMEGDAWgBSvRATCQX5Ig9tOOQLs7IR65s7JpDANBgkqhkiG\n9w0BAQsFAAOCAQEAkn/4wKQRLo41fDRkZtfF+3o8JtUmfQXf2zoo9Ll29hhCiz8k\nBOpIek9MrFd/cdNgUw1nckIi+J3udyFrbO5p64JBvtc0K4kAOPFSKpHssFcnRLPx\nFXgGxXq6ohD4Py+xaEApslYFfMy89N6DKs/v/10/+/xD831RFEUMUoQxBimsmmNf\n+cLoMwF5bpoSz9JcWqCmSlK0Nla1dPphaoA/MObLN2iQPpeM3yF5dTUm1tPxe39W\nOlr6nLU1xO+yRDrlGLXrVDP1l1/qGVuwi+xufIAcdFycLLBjSSNX7LOIK3tbva7A\nWctLUs+qhIlUrbPyFERm7YOY4SttWdozeYFNfg==\n-----END CERTIFICATE-----\n\nSecureTrust Domain Validation CA, Level 1\nSecureTrust Corporation\n06F1EC00E80B1BAF9870A7C4B6CBE401A32D68\n-----BEGIN CERTIFICATE-----\nMIIEfzCCA2egAwIBAgITBvHsAOgLG6+YcKfEtsvkAaMtaDANBgkqhkiG9w0BAQsF\nADBIMQswCQYDVQQGEwJVUzEgMB4GA1UEChMXU2VjdXJlVHJ1c3QgQ29ycG9yYXRp\nb24xFzAVBgNVBAMTDlNlY3VyZVRydXN0IENBMB4XDTE5MDEyOTEyNTk1OVoXDTI5\nMDEyOTEyNTk1OVowfDEyMDAGA1UEAxMpU2VjdXJlVHJ1c3QgRG9tYWluIFZhbGlk\nYXRpb24gQ0EsIExldmVsIDExFDASBgNVBAoTC1NlY3VyZVRydXN0MRAwDgYDVQQH\nEwdDaGljYWdvMREwDwYDVQQIEwhJbGxpbm9pczELMAkGA1UEBhMCVVMwggEiMA0G\nCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQCjRHBw8iIivBBrfE6HqexQK0oMt2Y/\nx8jO3fN96KEazZwEoGidwloRBk2Q7VfVvZ0ZD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pWh\n4Nf+GubAynjMsJYwHwYDVR0jBBgwFoAUQjK2FvoE/f5dS3rD/fdMQB1aQ68wQQYD\nVR0gBDowODA2BgRVHSAAMC4wLAYIKwYBBQUHAgEWIGh0dHBzOi8vY2VydHMuc2Vj\ndXJldHJ1c3QuY29tL0NBMDIGA1UdHwQrMCkwJ6AloCOGIWh0dHA6Ly9jcmwudHJ1\nc3R3YXZlLmNvbS9TVENBLmNybDA2BggrBgEFBQcBAQQqMCgwJgYIKwYBBQUHMAGG\nGmh0dHA6Ly9vY3NwLnRydXN0d2F2ZS5jb20vMA0GCSqGSIb3DQEBCwUAA4IBAQB1\nfzAmGGmtbJyIvOfjq2McCpUoYkXAq6JTN51+nb9NDAihhDoTKMde+801bC1/l54h\nxPPm4HImM6GK6LFckDew/FGwbdRbEznUOJ7uVL5ploNBIjte23kTBUZa9fx3+aXK\nhUTAipSyPtNjnOwVVBVXzrMynfMhdsyRRe7gLXNFYCXIxtks3IkIpuYnc86NAuV9\nnBLFlZzgmbAsW+tMc5QsNvQJ9pQ539K8cqZaM+HFCScreDERxmNtHHbMw+hCa2yL\nOj4ntekgWLO8KQbE0lPUNLIM17QK8aktJavj+GezBztKMmJJwhVYQy9nxS388ApX\nxcZsEgIzOCeH0SOWg4FA\n-----END CERTIFICATE-----\n\nSecureTrust Organization Validation CA, Level 1\nSecureTrust Corporation\n06F1EC00E58E9ADD372C871D25843FDAB852D9\n-----BEGIN CERTIFICATE-----\nMIIEkDCCA3igAwIBAgITBvHsAOWOmt03LIcdJYQ/2rhS2TANBgkqhkiG9w0BAQsF\nADBIMQswCQYDVQQGEwJVUzEgMB4GA1UEChMXU2VjdXJlVHJ1c3QgQ29ycG9yYXRp\nb24xFzAVBgNVBAMTDlNlY3VyZVRydXN0IENBMB4XDTE5MDEyOTEyNTk1OVoXDTI5\nMDEyOTEyNTk1OVowgYIxODA2BgNVBAMTL1NlY3VyZVRydXN0IE9yZ2FuaXphdGlv\nbiBWYWxpZGF0aW9uIENBLC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XDEKz6rj/M0G2u1kHw4Y8ZtKSzYEyRtgpeBFm4qU6voCSREpD\nFJXsL+Go2/YLRSE6xkWVSocklxppx4hi5o/RVdMMQept6ooOSFzBpH5XZYUoblKi\n99Yj0FUe8egIa9qSts42TObTpH1YVRMDnH3k2MNX3rcgPf9v/QO9Cf8W6RQ2+X3R\nCaYMPdL5OIKh4RGYjxXe3LpgiTKBWik/ZWTFL5sZSjetrJFl50NONzTc8E+BJtrx\nVCHAI2OcWyloxrYd4zMipw0YjDw=\n-----END CERTIFICATE-----\n\nTrustwave Domain Validation SHA256 CA, Level 1\nSecureTrust Corporation\n00DDEDF6F64298490E694C36EFA422C88F\n-----BEGIN CERTIFICATE-----\nMIIE7jCCA9agAwIBAgIRAN3t9vZCmEkOaUw276QiyI8wDQYJKoZIhvcNAQELBQAw\nSDELMAkGA1UEBhMCVVMxIDAeBgNVBAoTF1NlY3VyZVRydXN0IENvcnBvcmF0aW9u\nMRcwFQYDVQQDEw5TZWN1cmVUcnVzdCBDQTAeFw0xNDEwMDExOTIyMzJaFw0yNDA5\nMjgxOTIyMzJaMIGvMQswCQYDVQQGEwJVUzERMA8GA1UECBMISWxsaW5vaXMxEDAO\nBgNVBAcTB0NoaWNhZ28xITAfBgNVBAoTGFRydXN0d2F2ZSBIb2xkaW5ncywgSW5j\nLjE3MDUGA1UEAxMuVHJ1c3R3YXZlIERvbWFpbiBWYWxpZGF0aW9uIFNIQTI1NiBD\nQSwgTGV2ZWwgMTEfMB0GCSqGSIb3DQEJARYQY2FAdHJ1c3R3YXZlLmNvbTCCASIw\nDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBALNr4Z91k7AKM+Pz5XXWTIuVeMts\nPU2W/pI4WdEHG9Zab1EOWPLbthB6fzUJLLLBBk1wy2OM9yG1HywB/CwfGHcoKS8Z\n/efGV+ZKTzEpIestriUWx7wUnzxKzGML48Xv7sNuY1Crru5Hgce1Ax5uOfP7OB6t\norbMunvKQC10WcSrqFg6LapZ0UhgG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QcwAYYZaHR0cDovL29jc3AudHJ1c3R3YXZlLmNv\nbTA1BggrBgEFBQcwAoYpaHR0cDovL3NzbC50cnVzdHdhdmUuY29tL2lzc3VlcnMv\nU1RDQS5jcnQwHQYDVR0lBBYwFAYIKwYBBQUHAwIGCCsGAQUFBwMBMB8GA1UdIwQY\nMBaAFEIythb6BP3+XUt6w/33TEAdWkOvMA0GCSqGSIb3DQEBCwUAA4IBAQCly1p1\nrvcOlRS+ODBLb2kYHd4q+cXDl65X+IQ7hOlXg9dpa7CzSAGNNpzhyYMbE48mB/RE\nBXxbZkMzEhWPFj+4jdGNsmX0zjEWatJWsnNVxpA7hDR0iZssezu86oDQ/sbVoaXj\n0a5jB2cZsnMS5287CNDk5i+ImruhbMAYV9sadliXoDy3y01Sv+FLMx39C5UhYhWU\ngvoT9igbSCoc/DPOukEDqsnKMmDqTf3JzuFI1CbJcR6M8R1hAda4mZrxIdGcbT8R\nXp8JQ8Vuv/+plPMcAiZ2Bzed0hPVr5A1Mz8K8w9OyORGlRwjWS65jsr26bjMCcfj\npvuAANrc0Alu4nJC\n-----END CERTIFICATE-----\n\nTrustwave Extended Validation SHA256 CA, Level 1\nSecureTrust Corporation\n35962F305C5A0BEC400D4E9877528C65\n-----BEGIN CERTIFICATE-----\nMIIFCzCCA/OgAwIBAgIQNZYvMFxaC+xADU6Yd1KMZTANBgkqhkiG9w0BAQsFADBI\nMQswCQYDVQQGEwJVUzEgMB4GA1UEChMXU2VjdXJlVHJ1c3QgQ29ycG9yYXRpb24x\nFzAVBgNVBAMTDlNlY3VyZVRydXN0IENBMB4XDTE2MDkwMTE0MzUzNFoXDTI0MDky\nOTE0MzUzNFowgbExCzAJBgNVBAYTAlVTMREwDwYDVQQIEwhJbGxpbm9pczEQMA4G\nA1UEBxMHQ2hpY2FnbzEhMB8GA1UEChMYVHJ1c3R3YXZlIEhvbGRpbmdzLCBJbmMu\nMTkwNwYDVQQDEzBUcnVzdHdhdmUgRXh0ZW5kZWQgVmFsaW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uP3lkneC\nwGU6mZ3g17jyU2RJwhRinYctraryG7Jh20DQ9/ppTHoxTIADw2JDsC5ByplabteQ\nnLghrl17K1b6PO+rzWA/NFKVwo6u8Gh7Lz0iUuit7ZBD4eKcRedxRZcPQlnD9KTR\nIs94SRpootsuCv/Y5b+1FMPV1KrYtbco9yEVlaNEWLpmiEsqvLjxiWEmt71rzz+0\nS59OtA/ihnbGP9Xrnhe7wf1ybCNOO5gZQMKr/OszfLZ7oVKACGOPLlcSZRRW98gA\nszE+1ZvlHkdjamfTSs4yMvUorYn9NhXnjAWl28NuD9m3FPiE2O50ezEDnHTiaOQ=\n-----END CERTIFICATE-----\n\nTrustwave Organization Validation SHA256 CA, Level 1\nSecureTrust Corporation\n4B2C6646F434775B67DF34A04DD504E6\n-----BEGIN CERTIFICATE-----\nMIIE/TCCA+WgAwIBAgIQSyxmRvQ0d1tn3zSgTdUE5jANBgkqhkiG9w0BAQsFADBI\nMQswCQYDVQQGEwJVUzEgMB4GA1UEChMXU2VjdXJlVHJ1c3QgQ29ycG9yYXRpb24x\nFzAVBgNVBAMTDlNlY3VyZVRydXN0IENBMB4XDTE0MTAwMTE5MjIzNloXDTI0MDky\nODE5MjIzNlowgbUxCzAJBgNVBAYTAlVTMREwDwYDVQQIEwhJbGxpbm9pczEQMA4G\nA1UEBxMHQ2hpY2FnbzEhMB8GA1UEChMYVHJ1c3R3YXZlIEhvbGRpbmdzLCBJbmMu\nMT0wOwYDVQQDEzRUcnVzdHdhdmUgT3JnYW5pemF0aW9uIFZhbGlkYXRpb24gU0hB\nMjU2IENBLCBMZXZlbCAxMR8wHQYJKoZIhvcNAQkBFhBjYUB0cnVzdHdhdmUuY29t\nMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA49OohlJHBJ/juiQTmibO\nS28pHvCCp1bPOc6elQ62DCYE/A14JXUtI8yaUc9nFjh6dNzR7KjFPEq/qDplQl7f\n1Tvh5ifBNNP2wQ6e820TWlPO4HhR/5g4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G67LThKVnwoUfH3pghA6VkZp5Z\n1Vm6AcDm+eelf5XPvZtNve4evLVPYueA3TmGyxXh1m2d\n-----END CERTIFICATE-----\n\nTrustwave Organization Validation SHA256 CA, Level 1\nSecureTrust Corporation\n0092B8744F71CED0E26C72A3D8D5D925B2\n-----BEGIN CERTIFICATE-----\nMIIFEDCCA/igAwIBAgIRAJK4dE9xztDibHKj2NXZJbIwDQYJKoZIhvcNAQELBQAw\nSDELMAkGA1UEBhMCVVMxIDAeBgNVBAoTF1NlY3VyZVRydXN0IENvcnBvcmF0aW9u\nMRcwFQYDVQQDEw5TZWN1cmVUcnVzdCBDQTAeFw0xNjA5MDExNDM1MzVaFw0yNDA5\nMjkxNDM1MzVaMIG1MQswCQYDVQQGEwJVUzERMA8GA1UECBMISWxsaW5vaXMxEDAO\nBgNVBAcTB0NoaWNhZ28xITAfBgNVBAoTGFRydXN0d2F2ZSBIb2xkaW5ncywgSW5j\nLjE9MDsGA1UEAxM0VHJ1c3R3YXZlIE9yZ2FuaXphdGlvbiBWYWxpZGF0aW9uIFNI\nQTI1NiBDQSwgTGV2ZWwgMTEfMB0GCSqGSIb3DQEJARYQY2FAdHJ1c3R3YXZlLmNv\nbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAOPTqIZSRwSf47okE5om\nzktvKR7wgqdWzznOnpUOtgwmBPwNeCV1LSPMmlHPZxY4enTc0eyoxTxKv6g6ZUJe\n39U74eYnwTTT9sEOnvNtE1pTzuB4Uf+YOPt4hZidTe5Ba8Q6dfz/Ht/vZXCbF3JF\nwrXxZEPbJaICap2grIqYHax+IEIYnBQC+WKh8NgCn3LWS0j6cYSN8SEjFf5SEMGT\n1iNtttb/QC3JKJIeaVunUyvMfMjVFMntc7eZrFs6rp3wY1WFVI+fy17uOoUvfTH8\nbvNAESUch7FyLh2zM8FVxqilT2XygHRwZeXtxJQozcDcvh4ItPb0uz6AFIYwn/8G\nzp0CAwEAAaOCAYUwggGBMBIGA1UdEwEB/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FZnWRJ9q4akPmZF45uw4RZx2ALaYGGGs67\n+r5qS300As9ONg8hxfVkFQSHOc00IiBkgi3OpoCofEKTgDwZwHVqOJyyPjk6H9Sh\nZANmUOT2mGDLwl86Ar5bTu8ipzlsyDYQMFjho7WaVs8I5OXyVdONXDYLIOtpITGT\n1fRcXFzxYHhrNuFwrdj2zBVyvVD4O6xV97/9nv2Eng==\n-----END CERTIFICATE-----\n\nTrustwave Global Domain Validation CA, Level 1\nTrustwave Holdings, Inc.\n06CE82D9AD30465CF22697F246B101EC92953B\n-----BEGIN CERTIFICATE-----\nMIIHCDCCBPCgAwIBAgITBs6C2a0wRlzyJpfyRrEB7JKVOzANBgkqhkiG9w0BAQsF\nADCBiDELMAkGA1UEBhMCVVMxETAPBgNVBAgMCElsbGlub2lzMRAwDgYDVQQHDAdD\naGljYWdvMSEwHwYDVQQKDBhUcnVzdHdhdmUgSG9sZGluZ3MsIEluYy4xMTAvBgNV\nBAMMKFRydXN0d2F2ZSBHbG9iYWwgQ2VydGlmaWNhdGlvbiBBdXRob3JpdHkwHhcN\nMTgwMjA2MTIyMTIxWhcNMjgwMjI0MDUwMTIxWjCBjjE3MDUGA1UEAxMuVHJ1c3R3\nYXZlIEdsb2JhbCBEb21haW4gVmFsaWRhdGlvbiBDQSwgTGV2ZWwgMTEhMB8GA1UE\nChMYVHJ1c3R3YXZlIEhvbGRpbmdzLCBJbmMuMRAwDgYDVQQHEwdDaGljYWdvMREw\nDwYDVQQIEwhJbGxpbm9pczELMAkGA1UEBhMCVVMwggIiMA0GCSqGSIb3DQEBAQUA\nA4ICDwAwggIKAoICAQChh5brvvk/kFUZwhlUhqdsUmsMCBjzYqBBLnTyNrKPr4nd\nS9s2h2JvA+9TY7NnJc/Mq1eN5V6zqvbn/LN3c8W06f76xrVvFEKs5SzCefUS/V3Z\nC18dgwXXFrP+RgfK2kqfTHGIPrWoRSnUiLn3iUNEBtJ06oXjAqAMnAyL5AzD+eHm\nZzRK/yCw/gMPnVp2S7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40BYQg/68xOPH3C6AJ17tqE6IwZMW9s\nlgiO4B7khR3ESA6Sct3zmkA8woR/KJVzzegjscHhtQUifQ+Eb9Gi0ORNnetGV+5g\n5vlrFZMptBRGUxXMo2xa+Z/NTyimpMopfXj7qCW/nQWQbzvkQGchK9IokyqV2wra\ntX68/P3zleG+LLwzoJd5AhHYSXWrIRJpClZHN+LQKkbI3MYW7+upo/1e9HEmFKxu\n5SFV3nuQm5wSOsz/ZtIL1AS8IoZYxcSe1Q/yuV9GjnxtL1jkPbzsBx4eBGxUrcIe\nsBat6SI8G58uHTpIPpqUxRYsg8w0FdjK3kNBB5QWDeXiDxzqIRzA0iE1kHeTXRZ3\n7qgGXUcce7ciW5KqeRApjQbD5BSZG2EKkQ7aaOhvxK0LiuxHZnjPW4/fdEcaCuku\nMT5qMDiF2U85V9BvanEy/xkYn4I2UeK4EdSXe7q6j+CIJz9WnoLQDbIS04GqIWe0\nVRQUlx3idUWYSJU/SG8KrEHhlJLmgSjshCwtT6qo4vHwT5WcWDLIbjMqgL1iQ6JS\n4gxXuOGia3d0I4/wec5x23EWwx9V8BtDJ8N7NDeRNmZ8RXOHSYJsVQYIQuFUEXE1\nv3WMSIxuyQMyR5FYSCG9xnKRFzNmiPngDil5IA==\n-----END CERTIFICATE-----\n\nTrustwave Global Extended Validation CA, Level 1\nTrustwave Holdings, Inc.\n06CE82D99FB3B180C281020314A2D1C7640017\n-----BEGIN CERTIFICATE-----\nMIIHFDCCBPygAwIBAgITBs6C2Z+zsYDCgQIDFKLRx2QAFzANBgkqhkiG9w0BAQsF\nADCBiDELMAkGA1UEBhMCVVMxETAPBgNVBAgMCElsbGlub2lzMRAwDgYDVQQHDAdD\naGljYWdvMSEwHwYDVQQKDBhUcnVzdHdhdmUgSG9sZGluZ3MsIEluYy4xMTAvBgNV\nBAMMKFRydXN0d2F2ZSBHbG9iYWwgQ2VydGlmaWNhdGlvbiBBdXRob3JpdHkwHhcN\nMTgwMjA2MTIyMTIwWhcNMjgwMj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UMXviotV1SfEqs3RU5Ts\nwnU4NHPn5ITRiuh5VMuvB/VnjnPC953u5uqAGtZ8BkC7X9cu5E0rMQ==\n-----END CERTIFICATE-----\n\nTrustwave Global Organization Validation CA, Level 1\nTrustwave Holdings, Inc.\n06CE82D9A69703AEFE5D37D18858C74026B004\n-----BEGIN CERTIFICATE-----\nMIIHGDCCBQCgAwIBAgITBs6C2aaXA67+XTfRiFjHQCawBDANBgkqhkiG9w0BAQsF\nADCBiDELMAkGA1UEBhMCVVMxETAPBgNVBAgMCElsbGlub2lzMRAwDgYDVQQHDAdD\naGljYWdvMSEwHwYDVQQKDBhUcnVzdHdhdmUgSG9sZGluZ3MsIEluYy4xMTAvBgNV\nBAMMKFRydXN0d2F2ZSBHbG9iYWwgQ2VydGlmaWNhdGlvbiBBdXRob3JpdHkwHhcN\nMTgwMjA2MTIyMTIwWhcNMjgwMjI0MDUwMTIwWjCBlDE9MDsGA1UEAxM0VHJ1c3R3\nYXZlIEdsb2JhbCBPcmdhbml6YXRpb24gVmFsaWRhdGlvbiBDQSwgTGV2ZWwgMTEh\nMB8GA1UEChMYVHJ1c3R3YXZlIEhvbGRpbmdzLCBJbmMuMRAwDgYDVQQHEwdDaGlj\nYWdvMREwDwYDVQQIEwhJbGxpbm9pczELMAkGA1UEBhMCVVMwggIiMA0GCSqGSIb3\nDQEBAQUAA4ICDwAwggIKAoICAQC8BzZtA3eWejFOGHc2DLgex6P471dLWIIHSlrF\nY4a2BCtzAd/VlpQ3gslWnTgthOmK2/hCc+WSaOLPVZzZf3lGnxbb0+Y87Kx+nS1m\nIfJ/4OR6o8XLMLoCTAI1jsWxggiB4NBMqsW2xXQ5VAvBb66KEQYbshNlRpTbtBFq\nEed4YIvCdjbnCUOy1zubgVHUVyCFHzN4XPjEQCtT5vZM576Lt10Je9COnqG0CtPU\nQNP2tjnSmOOYdWcVRZ0UqXUl2fMBfmSDHd8902foigjpP04AYYbq6AetqEgqdvQP\nxz5pVbZqzy8UrE/s/raJLFy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ydXN0IFRX\nRyBFQ0RTQSBQLTI1NiBTZWN1cmUgRW1haWwgQ0EsIExldmVsIDIwWTATBgcqhkjO\nPQIBBggqhkjOPQMBBwNCAAT4KazLm94aiykBGkNQVkBrjmK77RlP627D2n3EwK3s\n49ljRkN6wiTWXHx3jPD5BBE/7mWhGWnphzGu1Deb6yzco4IBdTCCAXEwEgYDVR0T\nAQH/BAgwBgEB/wIBADAOBgNVHQ8BAf8EBAMCAYYwEwYDVR0lBAwwCgYIKwYBBQUH\nAwQwHQYDVR0OBBYEFHMQ2nwjQr8tFHfBImxM7ct8lbBYMB8GA1UdIwQYMBaAFKNB\nBqyQbdFK63WlShCZs7Ghi0r3MEEGA1UdIAQ6MDgwNgYEVR0gADAuMCwGCCsGAQUF\nBwIBFiBodHRwczovL2NlcnRzLnNlY3VyZXRydXN0LmNvbS9DQTA5BgNVHR8EMjAw\nMC6gLKAqhihodHRwOi8vY3JsLnNlY3VyZXRydXN0LmNvbS9UV0dQMjU2Q0EuY3Js\nMHgGCCsGAQUFBwEBBGwwajAoBggrBgEFBQcwAYYcaHR0cDovL29jc3Auc2VjdXJl\ndHJ1c3QuY29tLzA+BggrBgEFBQcwAoYyaHR0cDovL2NlcnRzLnNlY3VyZXRydXN0\nLmNvbS9pc3N1ZXJzL1RXR1AyNTZDQS5jcnQwCgYIKoZIzj0EAwIDSQAwRgIhAN8G\nPwKUpMgV3LZjq7fuKS96f15BrwBjmTlKhOwgX83BAiEA9WpWhzRRoKeJGAqqXrMk\nZ8RE9xRtOFBqYdv9H5CeTVk=\n-----END CERTIFICATE-----\n\nTrustwave Global ECDSA P-256 Domain Validation CA, Level 1\nTrustwave Holdings, Inc.\n06CE82D9AF531423847B85FB677932AAF80508\n-----BEGIN CERTIFICATE-----\nMIIDmDCCAz+gAwIBAgITBs6C2a9TFCOEe4X7Z3kyqvgFCDAKBggqhkjOPQQDAjCB\nkTELMAkGA1UEBhMCVVMxETAPBgNVBAgTCElsbGlub2lzMRAwDgYDVQQ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zj0EAwIDRwAwRAIgICvA5ttD\n0oeUcd37iYvoQ7iMIpZINp4e1j5NrlI3UnYCIEZhimm9+1dUWAfx9ZkGmIu0HiHR\nzEZifAHbPM3SJbRu\n-----END CERTIFICATE-----\n\nTrustwave Global ECDSA P-256 Extended Validation CA, Level 1\nTrustwave Holdings, Inc.\n06CE82D9A20A3797CD878EB3DAA41D08680AF7\n-----BEGIN CERTIFICATE-----\nMIIDpjCCA0ugAwIBAgITBs6C2aIKN5fNh46z2qQdCGgK9zAKBggqhkjOPQQDAjCB\nkTELMAkGA1UEBhMCVVMxETAPBgNVBAgTCElsbGlub2lzMRAwDgYDVQQHEwdDaGlj\nYWdvMSEwHwYDVQQKExhUcnVzdHdhdmUgSG9sZGluZ3MsIEluYy4xOjA4BgNVBAMT\nMVRydXN0d2F2ZSBHbG9iYWwgRUNDIFAyNTYgQ2VydGlmaWNhdGlvbiBBdXRob3Jp\ndHkwHhcNMTgwMjA2MTIyMTIwWhcNMjgwMjI0MDUwMTIwWjCBnDFFMEMGA1UEAxM8\nVHJ1c3R3YXZlIEdsb2JhbCBFQ0RTQSBQLTI1NiBFeHRlbmRlZCBWYWxpZGF0aW9u\nIENBLCBMZXZlbCAxMSEwHwYDVQQKExhUcnVzdHdhdmUgSG9sZGluZ3MsIEluYy4x\nEDAOBgNVBAcTB0NoaWNhZ28xETAPBgNVBAgTCElsbGlub2lzMQswCQYDVQQGEwJV\nUzBZMBMGByqGSM49AgEGCCqGSM49AwEHA0IABKXHfFxFDVI6uYWZlWciFFKtYzuJ\n+IBhot3PQGikE3sjU8d9dARkZCkInqmDyP/+XiLzgrYPMy7NS8lZcRsE5p2jggFz\nMIIBbzASBgNVHRMBAf8ECDAGAQH/AgEAMA4GA1UdDwEB/wQEAwIBhjAdBgNVHSUE\nFjAUBggrBgEFBQcDAgYIKwYBBQUHAwEwHQYDVR0OBBYEFAwlVqqzYgakv+7gGxtX\nzC8s9g1QMB8GA1UdIwQYMBaAFKNBBqyQbdFK63Wl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gYDVQQHEwdDaGljYWdvMREwDwYDVQQIEwhJbGxpbm9pczELMAkGA1UE\nBhMCVVMwWTATBgcqhkjOPQIBBggqhkjOPQMBBwNCAAQmHWo0mogvX1J61xysTqsn\n6qV06wxUH68/QJ2aDIka6beTrDoTZv3mIkyPxFTPy+9idjgSAERlBsDirgO2/NiY\no4IBczCCAW8wEgYDVR0TAQH/BAgwBgEB/wIBADAOBgNVHQ8BAf8EBAMCAYYwHQYD\nVR0lBBYwFAYIKwYBBQUHAwIGCCsGAQUFBwMBMB0GA1UdDgQWBBSv+Ju8XTSl3tA+\nFCldDY4lrbClhTAfBgNVHSMEGDAWgBSjQQaskG3RSut1pUoQmbOxoYtK9zA9BgNV\nHSAENjA0MDIGBFUdIAAwKjAoBggrBgEFBQcCARYcaHR0cHM6Ly9zc2wudHJ1c3R3\nYXZlLmNvbS9DQTA3BgNVHR8EMDAuMCygKqAohiZodHRwOi8vY3JsLnRydXN0d2F2\nZS5jb20vVFdHUDI1NkNBLmNybDByBggrBgEFBQcBAQRmMGQwJgYIKwYBBQUHMAGG\nGmh0dHA6Ly9vY3NwLnRydXN0d2F2ZS5jb20vMDoGCCsGAQUFBzAChi5odHRwOi8v\nc3NsLnRydXN0d2F2ZS5jb20vaXNzdWVycy9UV0dQMjU2Q0EuY3J0MAoGCCqGSM49\nBAMCA0cAMEQCIGa3JyBYlXxRN5GIIulLaDxnANNRnY4j1Et166CCC5h+AiAVUlzJ\nIJTfUDBU7jnSTKSw/F+bLIPvaC6frMZv0h+RTA==\n-----END CERTIFICATE-----\n\nSecureTrust TWG ECDSA P-384 Secure Email CA, Level 2\nTrustwave Holdings, Inc.\n072F30E9C58D91DEF98A7F9EB2666CFE7BE1EE\n-----BEGIN CERTIFICATE-----\nMIIDqjCCAy+gAwIBAgITBy8w6cWNkd75in+esmZs/nvh7jAKBggqhkjOPQQDAzCB\nkTELMAkGA1UEBhMCVVMxETAPBgNVBAgTCElsbGlub2lzMRAwDgYDVQQHEwdDaGlj\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cU\n6gOFxyF+ksTCXvWCUP0oFUqsRPMKMYE2mtdQAjEA2diuEHTPUgCQ0ynhLjged8BO\nFyzL3UlFieGGp90v58gUpfjoFq0BReAw7MPYo/Qa\n-----END CERTIFICATE-----\n\nTrustwave Global ECDSA P-384 Domain Validation CA, Level 1\nTrustwave Holdings, Inc.\n06CE82D9B07A17CC5376157813389A2930A44A\n-----BEGIN CERTIFICATE-----\nMIID1TCCA1ygAwIBAgITBs6C2bB6F8xTdhV4EziaKTCkSjAKBggqhkjOPQQDAzCB\nkTELMAkGA1UEBhMCVVMxETAPBgNVBAgTCElsbGlub2lzMRAwDgYDVQQHEwdDaGlj\nYWdvMSEwHwYDVQQKExhUcnVzdHdhdmUgSG9sZGluZ3MsIEluYy4xOjA4BgNVBAMT\nMVRydXN0d2F2ZSBHbG9iYWwgRUNDIFAzODQgQ2VydGlmaWNhdGlvbiBBdXRob3Jp\ndHkwHhcNMTgwMjA2MTIyMTIxWhcNMjgwMjI0MDUwMTIxWjCBmjFDMEEGA1UEAxM6\nVHJ1c3R3YXZlIEdsb2JhbCBFQ0RTQSBQLTM4NCBEb21haW4gVmFsaWRhdGlvbiBD\nQSwgTGV2ZWwgMTEhMB8GA1UEChMYVHJ1c3R3YXZlIEhvbGRpbmdzLCBJbmMuMRAw\nDgYDVQQHEwdDaGljYWdvMREwDwYDVQQIEwhJbGxpbm9pczELMAkGA1UEBhMCVVMw\ndjAQBgcqhkjOPQIBBgUrgQQAIgNiAASxlBEflNumTKsypgdOscM2x6ZRpQGSyB4B\nhJScRQI81UhZvzYSwxPWcxNZwFQoV457HfqR51pviJnHltRS8MJhJ9Q9Rf1sSmy4\nW6SPsM9qnBjwfBRxghByIsEIaTW/PKyjggFpMIIBZTASBgNVHRMBAf8ECDAGAQH/\nAgEAMA4GA1UdDwEB/wQEAwIBhjATBgNVHSUEDDAKBggrBgEFBQcDATAdBgNVHQ4E\nFgQUp6etGGS1u/oGGEfIwJ68Zf9pAWAwHwYDVR0jBBgwFoAUVamEidLBMr0Yy2ym\nB07I552+gpAwPQYDVR0gBDYwNDAyBgRVHSAAMCowKAYIKwYBBQUHAgEWHGh0dHBz\nOi8vc3NsLnRydXN0d2F2ZS5jb20vQ0EwNwYDVR0fBDAwLjAsoCqgKIYmaHR0cDov\nL2NybC50cnVzdHdhdmUuY29tL1RXR1AzODRDQS5jcmwwcgYIKwYBBQUHAQEEZjBk\nMCYGCCsGAQUFBzABhhpodHRwOi8vb2NzcC50cnVzdHdhdmUuY29tLzA6BggrBgEF\nBQcwAoYuaHR0cDovL3NzbC50cnVzdHdhdmUuY29tL2lzc3VlcnMvVFdHUDM4NENB\nLmNydDAKBggqhkjOPQQDAwNnADBkAjA6fS1jRjt+DvnWSI58v4lX+8DCXbdEhDaB\nbBOS/rXwS/ntsFXqTf0B90GPv3AWlFMCMBbz6nXMwX0jKRkaFZOZx9tvwUapdq7M\n6jYpT/NnAzH68x1t3/7ysZ8lPuKIqAwdKQ==\n-----END CERTIFICATE-----\n\nTrustwave Global ECDSA P-384 Extended Validation CA, Level 1\nTrustwave Holdings, Inc.\n06CE82D9A331594530006781829387E40DBCB6\n-----BEGIN CERTIFICATE-----\nMIID4zCCA2igAwIBAgITBs6C2aMxWUUwAGeBgpOH5A28tjAKBggqhkjOPQQDAzCB\nkTELMAkGA1UEBhMCVVMxETAPBgNVBAgTCElsbGlub2lzMRAwDgYDVQQHEwdDaGlj\nYWdvMSEwHwYDVQQKExhUcnVzdHdhdmUgSG9sZGluZ3MsIEluYy4xOjA4BgNVBAMT\nMVRydXN0d2F2ZSBHbG9iYWwgRUNDIFAzODQgQ2VydGlmaWNhdGlvbiBBdXRob3Jp\ndHkwHhcNMTgwMjA2MTIyMTIwWhcNMjgwMjI0MDUwMTIwWjCBnDFFMEMGA1UEAxM8\nVHJ1c3R3YXZlIEdsb2JhbCBFQ0RTQSBQLTM4NCBFeHRlbmRlZCBWYWxpZGF0aW9u\nIENBLCBMZXZlbCAxMSEwHwYDVQQKExhUcnVzdHdhdmUgSG9sZGluZ3MsIEluYy4x\nEDAOBgNVBAcTB0NoaWNhZ28xETAPBgNVBAgTCElsbGlub2lzMQswCQYDVQQGEwJV\nUzB2MBAGByqGSM49AgEGBSuBBAAiA2IABKcVGieqBjW3BuVza9VhkBlpGLHLZqQg\nI0GXaTpt5CogNWz6BmlZ1yAPjRnDUVfVwl57ATRtV7u+5TPFzKZ+RheFVc0iA8vl\nQ2JINGRz8XLDaivvuygQtFKSzCWn4e66cKOCAXMwggFvMBIGA1UdEwEB/wQIMAYB\nAf8CAQAwDgYDVR0PAQH/BAQDAgGGMB0GA1UdJQQWMBQGCCsGAQUFBwMCBggrBgEF\nBQcDATAdBgNVHQ4EFgQUMFfit09gayJACkNfT/oNzXO8JCcwHwYDVR0jBBgwFoAU\nVamEidLBMr0Yy2ymB07I552+gpAwPQYDVR0gBDYwNDAyBgRVHSAAMCowKAYIKwYB\nBQUHAgEWHGh0dHBzOi8vc3NsLnRydXN0d2F2ZS5jb20vQ0EwNwYDVR0fBDAwLjAs\noCqgKIYmaHR0cDovL2NybC50cnVzdHdhdmUuY29tL1RXR1AzODRDQS5jcmwwcgYI\nKwYBBQUHAQEEZjBkMCYGCCsGAQUFBzABhhpodHRwOi8vb2NzcC50cnVzdHdhdmUu\nY29tLzA6BggrBgEFBQcwAoYuaHR0cDovL3NzbC50cnVzdHdhdmUuY29tL2lzc3Vl\ncnMvVFdHUDM4NENBLmNydDAKBggqhkjOPQQDAwNpADBmAjEA6pScrGT+SruK7iON\n7iDJZfhQsjfQIhaq9sHiEXd89B8ibWOb57no/K265dPxeuALAjEA27NTMZM344eT\nX3df9B22dY5ZshsUMIiRcMo1K4B/GBO8SIA0jParkHS5g4WO5K7O\n-----END CERTIFICATE-----\n\nTrustwave Global ECDSA P-384 Organization Validation CA, Level 1\nTrustwave Holdings, Inc.\n06CE82D9A9D8E29837EF90BEAF59DC6551BED6\n-----BEGIN CERTIFICATE-----\nMIID5jCCA2ygAwIBAgITBs6C2anY4pg375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OSOjaXQm7iDh0tG/iKZZegn5AhNdaHE74QEHTjK+teLQlo60QGBk\necyzakgVYZ/Ezalz8nQwhCA=\n-----END CERTIFICATE-----\n\nTrustwave XRamp Global Extended Validation CA, Level 1\nXRamp Security Services Inc\n00D3D519C2B2EB5C7040F64CBC957BBD2C\n-----BEGIN CERTIFICATE-----\nMIIFMDCCBBigAwIBAgIRANPVGcKy61xwQPZMvJV7vSwwDQYJKoZIhvcNAQELBQAw\ngYIxCzAJBgNVBAYTAlVTMR4wHAYDVQQLExV3d3cueHJhbXBzZWN1cml0eS5jb20x\nJDAiBgNVBAoTG1hSYW1wIFNlY3VyaXR5IFNlcnZpY2VzIEluYzEtMCsGA1UEAxMk\nWFJhbXAgR2xvYmFsIENlcnRpZmljYXRpb24gQXV0aG9yaXR5MB4XDTE1MDgxMjIw\nMTczMVoXDTI1MDgwOTIwMTczMVowgbcxCzAJBgNVBAYTAlVTMREwDwYDVQQIEwhJ\nbGxpbm9pczEQMA4GA1UEBxMHQ2hpY2FnbzEhMB8GA1UEChMYVHJ1c3R3YXZlIEhv\nbGRpbmdzLCBJbmMuMT8wPQYDVQQDEzZUcnVzdHdhdmUgWFJhbXAgR2xvYmFsIEV4\ndGVuZGVkIFZhbGlkYXRpb24gQ0EsIExldmVsIDExHzAdBgkqhkiG9w0BCQEWEGNh\nQHRydXN0d2F2ZS5jb20wggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQC9\nAAbj9SknrNJT9pDatGvlR386KRi0SkqIOGr+C5W91+8E8PqydEHwjrnrWt/MTLGO\n+2kfEO3TEJlWxQQqbHy8SdhjCANefLzOT1cfTfjroWBIS9yiHpBIQytAaz/td95Y\n+JKrRBVCnIR/wB5qMMQ982RWwqggD763XLma0c1AIndsZL+dXp1zET4KBreoxn3q\nRYzMIsZIL2mAJoiCOTYuOGrOMVuaQn0HSu3K7bU+CpkdLQ/j+ikcQiI10IL9oOcO\nU9Gnt/hRyUX66Gk91RIpYXhla2tIYr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9xGChACMf1KaA0HZJDmHvUqoai7PF35owgLEQzxPy0Q\nlG/+4jSHg9bP5Rs1bdID4bANqKCqRieCNqcVtgimQlRXtpla4gt5kNdXElE1GYhB\naCXUNxeEFfsBctyV3lImIJgm4nb1J2/6ADtKYdkNy1GTKv0WBpanI5ojSP5RvbbE\nsLFUzt5sQa0WZ37b/TjNuThOssFgy50X31ieemKyJo90lZvkWx3SD92YHJtZuSPT\nMaCm/zjdzyBP6VhWOmfD0faZmZ26NraAL4hHT4a/RDqA5Dccprrql5gR0IRiR2Qe\nqu5AvzSxnI9O4fKSTx+O856X3vOmeWqJcU9LJxdI/uz0UA9PSX3MReO9ekDFQdxh\nVicGaeVyQYHTtgGJoC86cnn+OjC/QezHYj6RS8fZMXZC+fc8Y+wmjHMMfRod6qh8\nh6jCJ3zhM0EPz8/8AKAigJ5Kp28AsEFFtyLKaEjFQqKu3R3y4G5OBVixwJAWKqQ9\nEEC+j2Jjg6mcgn0tAumDMHzLJ8n9HmYAsC7TIS+OMxZsmO0QqAfWzJPP29FpHOTK\nyeC2nOnOcXHebD8WpHk=\n-----END CERTIFICATE-----\n\nTrustwave Global ECC P256 Certification Authority\nTrustwave Holdings, Inc.\n0D6A5F083F285C3E5195DF5D\n-----BEGIN CERTIFICATE-----\nMIICYDCCAgegAwIBAgIMDWpfCD8oXD5Rld9dMAoGCCqGSM49BAMCMIGRMQswCQYD\nVQQGEwJVUzERMA8GA1UECBMISWxsaW5vaXMxEDAOBgNVBAcTB0NoaWNhZ28xITAf\nBgNVBAoTGFRydXN0d2F2ZSBIb2xkaW5ncywgSW5jLjE6MDgGA1UEAxMxVHJ1c3R3\nYXZlIEdsb2JhbCBFQ0MgUDI1NiBDZXJ0aWZpY2F0aW9uIEF1dGhvcml0eTAeFw0x\nNzA4MjMxOTM1MTBaFw00MjA4MjMxOTM1MTBaMIGRMQswCQYDVQQGEwJVUzERMA8G\nA1UECBMISWxsaW5vaXMxEDAOBgNVBAcTB0NoaWNhZ28xITAf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aW9uIEF1dGhvcml0eTB2MBAGByqGSM49AgEGBSuB\nBAAiA2IABGvaDXU1CDFHBa5FmVXxERMuSvgQMSOjfoPTfygIOiYaOs+Xgh+AtycJ\nj9GOMMQKmw6sWASr9zZ9lCOkmwqKi6vr/TklZvFe/oyujUF5nQlgziip04pt89ZF\n1PKYhDhloKNDMEEwDwYDVR0TAQH/BAUwAwEB/zAPBgNVHQ8BAf8EBQMDBwYAMB0G\nA1UdDgQWBBRVqYSJ0sEyvRjLbKYHTsjnnb6CkDAKBggqhkjOPQQDAwNnADBkAjA3\nAZKXRRJ+oPM+rRk6ct30UJMDEr5E0k9BpIycnR+j9sKS50gU/k6bpZFXrsY3crsC\nMGclCrEMXu6pY5Jv5ZAL/mYiykf9ijH3g/56vxC+GCsej/YpHpRZ744hN8tRmKVu\nSw==\n-----END CERTIFICATE-----\n",PKG_NAME="@hpcc-js/comms",PKG_VERSION="2.84.1",BUILD_VERSION="2.104.27",extendStatics=function(e,t){return extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},extendStatics(e,t)};function __extends(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}extendStatics(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}var __assign=function(){return __assign=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},__assign.apply(this,arguments)};function __awaiter(e,t,r,n){return new(r||(r=Promise))((function(o,i){function s(e){try{a(n.next(e))}catch(e){i(e)}}function A(e){try{a(n.throw(e))}catch(e){i(e)}}function a(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(s,A)}a((n=n.apply(e,t||[])).next())}))}function __generator(e,t){var r,n,o,i,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:A(0),throw:A(1),return:A(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function A(A){return function(a){return function(A){if(r)throw new TypeError("Generator is already executing.");for(;i&&(i=0,A[0]&&(s=0)),s;)try{if(r=1,n&&(o=2&A[0]?n.return:A[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,A[1])).done)return o;switch(n=0,o&&(A=[2&A[0],o.value]),A[0]){case 0:case 1:o=A;break;case 4:return s.label++,{value:A[1],done:!1};case 5:s.label++,n=A[1],A=[0];continue;case 7:A=s.ops.pop(),s.trys.pop();continue;default:if(!(o=s.trys,(o=o.length>0&&o[o.length-1])||6!==A[0]&&2!==A[0])){s=0;continue}if(3===A[0]&&(!o||A[1]>o[0]&&A[1]<o[3])){s.label=A[1];break}if(6===A[0]&&s.label<o[1]){s.label=o[1],o=A;break}if(o&&s.label<o[2]){s.label=o[2],s.ops.push(A);break}o[2]&&s.ops.pop(),s.trys.pop();continue}A=t.call(e,s)}catch(e){A=[6,e],n=0}finally{r=o=0}if(5&A[0])throw A[1];return{value:A[0]?A[1]:void 0,done:!0}}([A,a])}}}function __spreadArray(e,t,r){if(r||2===arguments.length)for(var n,o=0,i=t.length;o<i;o++)!n&&o in t||(n||(n=Array.prototype.slice.call(t,0,o)),n[o]=t[o]);return e.concat(n||Array.prototype.slice.call(t))}var logger$5=util$m.scopedLogger("comms/connection.ts");function instanceOfIOptions(e){return"baseUrl"in e}var DefaultOptions={type:"post",baseUrl:"",userID:"",password:"",rejectUnauthorized:!0,timeoutSecs:60};function instanceOfIConnection(e){return"function"==typeof e.opts&&"function"==typeof e.send&&"function"==typeof e.clone}function encode(e,t){return void 0===t||!0===t?encodeURIComponent(e):""+e}function serializeRequest(e,t,r){if(void 0===t&&(t=!0),void 0===r&&(r=""),r&&(r+="."),"object"!=typeof e)return encode(e,t);var n=[],o=function(o){if(e.hasOwnProperty(o))if(e[o]instanceof Array){var i=!1;e[o].forEach((function(e,s){"object"==typeof e?(i=!0,n.push(serializeRequest(e,t,r+encode("".concat(o,".").concat(s),t)))):n.push(r+encode("".concat(o,"_i").concat(s),t)+"="+serializeRequest(e,t))})),i&&n.push(r+encode("".concat(o,".itemcount"),t)+"="+e[o].length)}else"object"==typeof e[o]?e[o]&&e[o].Item instanceof Array?(n.push(serializeRequest(e[o].Item,t,r+encode(o,t))),n.push(r+encode("".concat(o,".itemcount"),t)+"="+e[o].Item.length)):n.push(serializeRequest(e[o],t,r+encode(o,t))):void 0!==e[o]?n.push(r+encode(o,t)+"="+encode(e[o],t)):n.push(r+encode(o,t))};for(var i in e)o(i);return n.join("&")}function deserializeResponse(e){return JSON.parse(e)}function jsonp(e,t,r,n,o){return void 0===r&&(r={}),void 0===n&&(n="json"),o&&console.warn("Header attributes ignored for JSONP connections"),new Promise((function(o,i){var s=1e3*e.timeoutSecs,A="jsonp_callback_"+Math.round(999999*Math.random());window[A]=function(e){s=0,l(),o("json"===n&&"string"==typeof e?deserializeResponse(e):e)};var a=document.createElement("script"),c=util$m.join(e.baseUrl,t);c+=c.indexOf("?")>=0?"&":"?",a.src=c+"jsonp="+A+"&"+serializeRequest(r,e.encodeRequest),document.body.appendChild(a);var u=setInterval((function(){s<=0?clearInterval(u):(s-=5e3)<=0?(clearInterval(u),logger$5.error("Request timeout: "+a.src),l(),i(Error("Request timeout: "+a.src))):logger$5.debug("Request pending ("+s/1e3+" sec): "+a.src)}),5e3);function l(){delete window[A],document.body.removeChild(a)}}))}function authHeader(e){return e.userID?{Authorization:"Basic ".concat(btoa("".concat(e.userID,":").concat(e.password)))}:{}}var _omitMap={};function doFetch(e,t,r,n,o){function i(e){if(e.ok)return"json"===o?e.json():e.text();throw new Error(e.statusText)}return n=__assign(__assign({},authHeader(e)),n),r=__assign(__assign({credentials:_omitMap[e.baseUrl]?"omit":"include"},r),{headers:n}),fetch.__setGlobalDispatcher&&fetch.__setGlobalDispatcher(fetch.__defaultAgent),0===e.baseUrl.indexOf("https:")&&(!1===e.rejectUnauthorized&&fetch.__rejectUnauthorizedAgent?fetch.__setGlobalDispatcher?fetch.__setGlobalDispatcher(fetch.__rejectUnauthorizedAgent):r.agent=fetch.__rejectUnauthorizedAgent:fetch.__trustwaveAgent&&(r.agent=fetch.__trustwaveAgent)),util$m.promiseTimeout(1e3*e.timeoutSecs,fetch(util$m.join(e.baseUrl,t),r).then(i).catch((function(n){return r.credentials=_omitMap[e.baseUrl]?"include":"omit",fetch(util$m.join(e.baseUrl,t),r).then(i).then((function(t){return _omitMap[e.baseUrl]=!_omitMap[e.baseUrl],t}))})))}function post(e,t,r,n,o){var i;return void 0===n&&(n="json"),r.upload_&&(delete r.upload_,t+="?upload_"),r.abortSignal_&&(i=r.abortSignal_,delete r.abortSignal_),doFetch(e,t,{method:"post",body:serializeRequest(r,e.encodeRequest),signal:i},__assign({"Content-Type":"application/x-www-form-urlencoded"},o),n)}function get(e,t,r,n,o){var i;return void 0===n&&(n="json"),r.abortSignal_&&(i=r.abortSignal_,delete r.abortSignal_),doFetch(e,"".concat(t,"?").concat(serializeRequest(r,e.encodeRequest)),{method:"get",signal:i},__assign({},o),n)}function send(e,t,r,n,o){var i;switch(void 0===n&&(n="json"),e.type){case"jsonp":i=jsonp(e,t,r,n,o);break;case"get":i=get(e,t,r,n,o);break;default:i=post(e,t,r,n,o)}return i}var hookedSend=send;function hookSend(e){var t=hookedSend;return e&&(hookedSend=e),t}var Connection=function(){function e(e){this.opts(e)}return Object.defineProperty(e.prototype,"baseUrl",{get:function(){return this._opts.baseUrl},enumerable:!1,configurable:!0}),e.prototype.opts=function(e){return 0===arguments.length?this._opts:(this._opts=__assign(__assign({},DefaultOptions),e),this)},e.prototype.send=function(e,t,r,n){return void 0===r&&(r="json"),this._opts.hookSend?this._opts.hookSend(this._opts,e,t,r,hookedSend,n):hookedSend(this._opts,e,t,r,n)},e.prototype.clone=function(){return new e(this.opts())},e}();function setTransportFactory(e){var t=exports.createConnection;return exports.createConnection=e,t}function isArray(e){return"[object Array]"===Object.prototype.toString.call(e)}exports.createConnection=function(e){return new Connection(e)};var ESPExceptions=function(e){function t(t,r,n){var o=e.call(this,"ESPException: "+n.Source)||this;return o.isESPExceptions=!0,o.action=t,o.request=r,o.Source=n.Source,o.Exception=n.Exception,n.Exception.length?o.message="".concat(n.Exception[0].Code,": ").concat(n.Exception[0].Message):o.message="",o}return __extends(t,e),t}(Error);function isExceptions(e){return e instanceof ESPExceptions||e.isESPExceptions&&Array.isArray(e.Exception)}function isConnection(e){return void 0!==e.send}var ESPConnection=function(){function e(e,t,r){this._connection=isConnection(e)?e:exports.createConnection(e),this._service=t,this._version=r}return Object.defineProperty(e.prototype,"baseUrl",{get:function(){return this._connection.opts().baseUrl},enumerable:!1,configurable:!0}),e.prototype.service=function(e){return void 0===e?this._service:(this._service=e,this)},e.prototype.version=function(e){return void 0===e?this._version:(this._version=e,this)},e.prototype.toESPStringArray=function(e,t){if(isArray(e[t])){for(var r=0;r<e[t].length;++r)e[t+"_i"+r]=e[t][r];delete e[t]}return e},e.prototype.opts=function(e){return void 0===e?this._connection.opts():(this._connection.opts(e),this)},e.prototype.send=function(e,t,r,n,o,i){void 0===t&&(t={}),void 0===r&&(r="json"),void 0===n&&(n=!1);var s,A=__assign(__assign({},t),{ver_:this._version});n&&(A.upload_=!0),o&&(A.abortSignal_=o);var a="json";switch(r){case"text":s=util$m.join(this._service,e),a="text";break;case"xsd":s=util$m.join(this._service,e+".xsd"),a="text";break;case"json2":s=util$m.join(this._service,e+"/json"),r="json";var c=e.split("/");e=c.pop();break;default:s=util$m.join(this._service,e+".json")}return this._connection.send(s,A,a).then((function(t){if("json"===r){var n=void 0;if(t&&t.Exceptions)throw new ESPExceptions(e,A,t.Exceptions);if(t&&(n=t[i||e+"Response"]),!n)throw new ESPExceptions(e,A,{Source:"ESPConnection.send",Exception:[{Code:0,Message:"Missing Response"}]});return n}return t})).catch((function(t){if(t.isESPExceptions)throw t;throw new ESPExceptions(e,A,{Source:"ESPConnection.send",Exception:[{Code:0,Message:t.message}]})}))},e.prototype.clone=function(){return new e(this._connection.clone(),this._service,this._version)},e}(),Service=function(){function e(e,t,r){this._connection=new ESPConnection(e,t,r)}return Object.defineProperty(e.prototype,"baseUrl",{get:function(){return this._connection.opts().baseUrl},enumerable:!1,configurable:!0}),e}();exports.FileSpray=void 0,function(e){var t;(t=e.DFUWUActions||(e.DFUWUActions={})).Delete="Delete",t.Protect="Protect",t.Unprotect="Unprotect",t.Restore="Restore",t.SetToFailed="SetToFailed",t.Archive="Archive"}(exports.FileSpray||(exports.FileSpray={}));var FileSprayServiceBase=function(e){function t(t){return e.call(this,t,"FileSpray","1.25")||this}return __extends(t,e),t.prototype.AbortDFUWorkunit=function(e){return this._connection.send("AbortDFUWorkunit",e,"json",!1,void 0,"AbortDFUWorkunitResponse")},t.prototype.Copy=function(e){return this._connection.send("Copy",e,"json",!1,void 0,"CopyResponse")},t.prototype.CreateDFUPublisherWorkunit=function(e){return this._connection.send("CreateDFUPublisherWorkunit",e,"json",!1,void 0,"CreateDFUPublisherWorkunitResponse")},t.prototype.CreateDFUWorkunit=function(e){return this._connection.send("CreateDFUWorkunit",e,"json",!1,void 0,"CreateDFUWorkunitResponse")},t.prototype.DFUWUFile=function(e){return this._connection.send("DFUWUFile",e,"json",!1,void 0,"DFUWUFileResponse")},t.prototype.DFUWUSearch=function(e){return this._connection.send("DFUWUSearch",e,"json",!1,void 0,"DFUWUSearchResponse")},t.prototype.DFUWorkunitsAction=function(e){return this._connection.send("DFUWorkunitsAction",e,"json",!1,void 0,"DFUWorkunitsActionResponse")},t.prototype.DeleteDFUWorkunit=function(e){return this._connection.send("DeleteDFUWorkunit",e,"json",!1,void 0,"DeleteDFUWorkunitResponse")},t.prototype.DeleteDFUWorkunits=function(e){return this._connection.send("DeleteDFUWorkunits",e,"json",!1,void 0,"DeleteDFUWorkunitsResponse")},t.prototype.DeleteDropZoneFiles=function(e){return this._connection.send("DeleteDropZoneFiles",e,"json",!1,void 0,"DFUWorkunitsActionResponse")},t.prototype.Despray=function(e){return this._connection.send("Despray",e,"json",!1,void 0,"DesprayResponse")},t.prototype.DfuMonitor=function(e){return this._connection.send("DfuMonitor",e,"json",!1,void 0,"DfuMonitorResponse")},t.prototype.DropZoneFileSearch=function(e){return this._connection.send("DropZoneFileSearch",e,"json",!1,void 0,"DropZoneFileSearchResponse")},t.prototype.DropZoneFiles=function(e){return this._connection.send("DropZoneFiles",e,"json",!1,void 0,"DropZoneFilesResponse")},t.prototype.EchoDateTime=function(e){return this._connection.send("EchoDateTime",e,"json",!1,void 0,"EchoDateTimeResponse")},t.prototype.FileList=function(e){return this._connection.send("FileList",e,"json",!1,void 0,"FileListResponse")},t.prototype.GetDFUExceptions=function(e){return this._connection.send("GetDFUExceptions",e,"json",!1,void 0,"GetDFUExceptionsResponse")},t.prototype.GetDFUProgress=function(e){return this._connection.send("GetDFUProgress",e,"json",!1,void 0,"ProgressResponse")},t.prototype.GetDFUServerQueues=function(e){return this._connection.send("GetDFUServerQueues",e,"json",!1,void 0,"GetDFUServerQueuesResponse")},t.prototype.GetDFUWorkunit=function(e){return this._connection.send("GetDFUWorkunit",e,"json",!1,void 0,"GetDFUWorkunitResponse")},t.prototype.GetDFUWorkunits=function(e){return this._connection.send("GetDFUWorkunits",e,"json",!1,void 0,"GetDFUWorkunitsResponse")},t.prototype.GetSprayTargets=function(e){return this._connection.send("GetSprayTargets",e,"json",!1,void 0,"GetSprayTargetsResponse")},t.prototype.OpenSave=function(e){return this._connection.send("OpenSave",e,"json",!1,void 0,"OpenSaveResponse")},t.prototype.Ping=function(e){return this._connection.send("Ping",e,"json",!1,void 0,"FileSprayPingResponse")},t.prototype.Rename=function(e){return this._connection.send("Rename",e,"json",!1,void 0,"RenameResponse")},t.prototype.Replicate=function(e){return this._connection.send("Replicate",e,"json",!1,void 0,"ReplicateResponse")},t.prototype.ShowResult=function(e){return this._connection.send("ShowResult",e,"json",!1,void 0,"ShowResultResponse")},t.prototype.SprayFixed=function(e){return this._connection.send("SprayFixed",e,"json",!1,void 0,"SprayFixedResponse")},t.prototype.SprayVariable=function(e){return this._connection.send("SprayVariable",e,"json",!1,void 0,"SprayResponse")},t.prototype.SubmitDFUWorkunit=function(e){return this._connection.send("SubmitDFUWorkunit",e,"json",!1,void 0,"SubmitDFUWorkunitResponse")},t.prototype.UpdateDFUWorkunit=function(e){return this._connection.send("UpdateDFUWorkunit",e,"json",!1,void 0,"UpdateDFUWorkunitResponse")},t}(Service),FileSprayService=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends(t,e),t.prototype.SprayFixedEx=function(e){return this._connection.send("SprayFixed",e)},t.prototype.SprayVariableEx=function(e){return this._connection.send("SprayVariable",e,"json",!1,null,"SprayResponse")},t.prototype.DesprayEx=function(e){return this._connection.send("Despray",e)},t.prototype.UpdateDFUWorkunitEx=function(e){return this._connection.send("UpdateDFUWorkunit",e,"json",!1,void 0,"UpdateDFUWorkunitResponse")},t}(FileSprayServiceBase);exports.WsAccess=void 0,function(e){var t,r,n,o,i;(t=e.ViewMemberType||(e.ViewMemberType={})).User="User",t.Group="Group",(r=e.UserSortBy||(e.UserSortBy={})).username="username",r.fullname="fullname",r.passwordexpiration="passwordexpiration",r.employeeID="employeeID",r.employeeNumber="employeeNumber",(n=e.GroupSortBy||(e.GroupSortBy={})).Name="Name",n.ManagedBy="ManagedBy",(o=e.AccountTypeReq||(e.AccountTypeReq={})).Any="Any",o.User="User",o.Group="Group",(i=e.ResourcePermissionSortBy||(e.ResourcePermissionSortBy={})).Name="Name",i.Type="Type",(e.ResourceSortBy||(e.ResourceSortBy={})).Name="Name"}(exports.WsAccess||(exports.WsAccess={}));var AccessServiceBase=function(e){function t(t){return e.call(this,t,"ws_access","1.17")||this}return __extends(t,e),t.prototype.AccountPermissions=function(e){return this._connection.send("AccountPermissions",e,"json",!1,void 0,"AccountPermissionsResponse")},t.prototype.AccountPermissionsV2=function(e){return this._connection.send("AccountPermissionsV2",e,"json",!1,void 0,"AccountPermissionsV2Response")},t.prototype.AddUser=function(e){return this._connection.send("AddUser",e,"json",!1,void 0,"AddUserResponse")},t.prototype.AddView=function(e){return this._connection.send("AddView",e,"json",!1,void 0,"AddViewResponse")},t.prototype.AddViewColumn=function(e){return this._connection.send("AddViewColumn",e,"json",!1,void 0,"AddViewColumnResponse")},t.prototype.AddViewMember=function(e){return this._connection.send("AddViewMember",e,"json",!1,void 0,"AddViewMemberResponse")},t.prototype.ClearPermissionsCache=function(e){return this._connection.send("ClearPermissionsCache",e,"json",!1,void 0,"ClearPermissionsCacheResponse")},t.prototype.DeleteView=function(e){return this._connection.send("DeleteView",e,"json",!1,void 0,"DeleteViewResponse")},t.prototype.DeleteViewColumn=function(e){return this._connection.send("DeleteViewColumn",e,"json",!1,void 0,"DeleteViewColumnResponse")},t.prototype.DeleteViewMember=function(e){return this._connection.send("DeleteViewMember",e,"json",!1,void 0,"DeleteViewMemberResponse")},t.prototype.DisableScopeScans=function(e){return this._connection.send("DisableScopeScans",e,"json",!1,void 0,"DisableScopeScansResponse")},t.prototype.EnableScopeScans=function(e){return this._connection.send("EnableScopeScans",e,"json",!1,void 0,"EnableScopeScansResponse")},t.prototype.FilePermission=function(e){return this._connection.send("FilePermission",e,"json",!1,void 0,"FilePermissionResponse")},t.prototype.GroupAction=function(e){return this._connection.send("GroupAction",e,"json",!1,void 0,"GroupActionResponse")},t.prototype.GroupAdd=function(e){return this._connection.send("GroupAdd",e,"json",!1,void 0,"GroupAddResponse")},t.prototype.GroupEdit=function(e){return this._connection.send("GroupEdit",e,"json",!1,void 0,"GroupEditResponse")},t.prototype.GroupMemberEdit=function(e){return this._connection.send("GroupMemberEdit",e,"json",!1,void 0,"GroupMemberEditResponse")},t.prototype.GroupMemberEditInput=function(e){return this._connection.send("GroupMemberEditInput",e,"json",!1,void 0,"GroupMemberEditInputResponse")},t.prototype.GroupMemberQuery=function(e){return this._connection.send("GroupMemberQuery",e,"json",!1,void 0,"GroupMemberQueryResponse")},t.prototype.GroupQuery=function(e){return this._connection.send("GroupQuery",e,"json",!1,void 0,"GroupQueryResponse")},t.prototype.Groups=function(e){return this._connection.send("Groups",e,"json",!1,void 0,"GroupResponse")},t.prototype.PermissionAction=function(e){return this._connection.send("PermissionAction",e,"json",!1,void 0,"PermissionActionResponse")},t.prototype.PermissionAddInput=function(e){return this._connection.send("PermissionAddInput",e,"json",!1,void 0,"PermissionAddResponse")},t.prototype.Permissions=function(e){return this._connection.send("Permissions",e,"json",!1,void 0,"BasednsResponse")},t.prototype.PermissionsReset=function(e){return this._connection.send("PermissionsReset",e,"json",!1,void 0,"PermissionsResetResponse")},t.prototype.PermissionsResetInput=function(e){return this._connection.send("PermissionsResetInput",e,"json",!1,void 0,"PermissionsResetInputResponse")},t.prototype.Ping=function(e){return this._connection.send("Ping",e,"json",!1,void 0,"ws_accessPingResponse")},t.prototype.QueryScopeScansEnabled=function(e){return this._connection.send("QueryScopeScansEnabled",e,"json",!1,void 0,"QueryScopeScansEnabledResponse")},t.prototype.QueryUserViewColumns=function(e){return this._connection.send("QueryUserViewColumns",e,"json",!1,void 0,"QueryUserViewColumnsResponse")},t.prototype.QueryViewColumns=function(e){return this._connection.send("QueryViewColumns",e,"json",!1,void 0,"QueryViewColumnsResponse")},t.prototype.QueryViewMembers=function(e){return this._connection.send("QueryViewMembers",e,"json",!1,void 0,"QueryViewMembersResponse")},t.prototype.QueryViews=function(e){return this._connection.send("QueryViews",e,"json",!1,void 0,"QueryViewsResponse")},t.prototype.ResourceAdd=function(e){return this._connection.send("ResourceAdd",e,"json",!1,void 0,"ResourceAddResponse")},t.prototype.ResourceAddInput=function(e){return this._connection.send("ResourceAddInput",e,"json",!1,void 0,"ResourceAddInputResponse")},t.prototype.ResourceDelete=function(e){return this._connection.send("ResourceDelete",e,"json",!1,void 0,"ResourceDeleteResponse")},t.prototype.ResourcePermissionQuery=function(e){return this._connection.send("ResourcePermissionQuery",e,"json",!1,void 0,"ResourcePermissionQueryResponse")},t.prototype.ResourcePermissions=function(e){return this._connection.send("ResourcePermissions",e,"json",!1,void 0,"ResourcePermissionsResponse")},t.prototype.ResourceQuery=function(e){return this._connection.send("ResourceQuery",e,"json",!1,void 0,"ResourceQueryResponse")},t.prototype.Resources=function(e){return this._connection.send("Resources",e,"json",!1,void 0,"ResourcesResponse")},t.prototype.UserAccountExport=function(e){return this._connection.send("UserAccountExport",e,"json",!1,void 0,"UserAccountExportResponse")},t.prototype.UserAction=function(e){return this._connection.send("UserAction",e,"json",!1,void 0,"UserActionResponse")},t.prototype.UserEdit=function(e){return this._connection.send("UserEdit",e,"json",!1,void 0,"UserEditResponse")},t.prototype.UserGroupEdit=function(e){return this._connection.send("UserGroupEdit",e,"json",!1,void 0,"UserGroupEditResponse")},t.prototype.UserGroupEditInput=function(e){return this._connection.send("UserGroupEditInput",e,"json",!1,void 0,"UserGroupEditInputResponse")},t.prototype.UserInfoEdit=function(e){return this._connection.send("UserInfoEdit",e,"json",!1,void 0,"UserInfoEditResponse")},t.prototype.UserInfoEditInput=function(e){return this._connection.send("UserInfoEditInput",e,"json",!1,void 0,"UserInfoEditInputResponse")},t.prototype.UserPosix=function(e){return this._connection.send("UserPosix",e,"json",!1,void 0,"UserPosixResponse")},t.prototype.UserPosixInput=function(e){return this._connection.send("UserPosixInput",e,"json",!1,void 0,"UserPosixInputResponse")},t.prototype.UserQuery=function(e){return this._connection.send("UserQuery",e,"json",!1,void 0,"UserQueryResponse")},t.prototype.UserResetPass=function(e){return this._connection.send("UserResetPass",e,"json",!1,void 0,"UserResetPassResponse")},t.prototype.UserResetPassInput=function(e){return this._connection.send("UserResetPassInput",e,"json",!1,void 0,"UserResetPassInputResponse")},t.prototype.UserSudoers=function(e){return this._connection.send("UserSudoers",e,"json",!1,void 0,"UserSudoersResponse")},t.prototype.UserSudoersInput=function(e){return this._connection.send("UserSudoersInput",e,"json",!1,void 0,"UserSudoersInputResponse")},t.prototype.Users=function(e){return this._connection.send("Users",e,"json",!1,void 0,"UserResponse")},t}(Service),AccessService=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends(t,e),t}(AccessServiceBase),AccountService=function(){function e(e){this._connection=new ESPConnection(e,"Ws_Account","1.05")}return e.prototype.connectionOptions=function(){return this._connection.opts()},e.prototype.MyAccount=function(e){return this._connection.send("MyAccount",e)},e.prototype.UpdateUser=function(e){return this._connection.send("UpdateUser",e)},e.prototype.UpdateUserInput=function(e){return this._connection.send("UpdateUserInput",e)},e.prototype.VerifyUser=function(e){return this._connection.send("VerifyUser",e).catch((function(e){if(e.isESPExceptions&&e.Exception.some((function(e){return 20043===e.Code})))return{retcode:20043,Exceptions:{Source:"wsAccount",Exception:e.Exception}};throw e}))},e}(),CloudServiceBase=function(e){function t(t){return e.call(this,t,"WsCloud","1")||this}return __extends(t,e),t.prototype.GetPODs=function(e){return this._connection.send("GetPODs",e)},t.prototype.Ping=function(e){return this._connection.send("Ping",e)},t}(Service),CloudService=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends(t,e),t.prototype.getPODs=function(){return e.prototype.GetPODs.call(this,{}).then((function(e){var t;try{var r="string"==typeof e.Result?JSON.parse(e.Result):e.Result;return null!==(t=null==r?void 0:r.items)&&void 0!==t?t:[]}catch(e){return[]}}))},t}(CloudServiceBase),CodesignService=function(){function e(e){this._connection=new ESPConnection(e,"ws_codesign","1.1")}return e.prototype.connectionOptions=function(){return this._connection.opts()},e.prototype.ListUserIDs=function(e){return this._connection.send("ListUserIDs",e).then((function(e){return e.UserIDs.Item})).catch((function(e){return[]}))},e.prototype.Sign=function(e){return this._connection.send("Sign",__assign({SigningMethod:"gpg"},e))},e.prototype.Verify=function(e){return this._connection.send("Verify",e)},e}(),DaliServiceBase=function(e){function t(t){return e.call(this,t,"WSDali","1.04")||this}return __extends(t,e),t.prototype.Add=function(e){return this._connection.send("Add",e,"json",!1,void 0,"ResultResponse")},t.prototype.Count=function(e){return this._connection.send("Count",e,"json",!1,void 0,"CountResponse")},t.prototype.DFSCheck=function(e){return this._connection.send("DFSCheck",e,"json",!1,void 0,"ResultResponse")},t.prototype.DFSExists=function(e){return this._connection.send("DFSExists",e,"json",!1,void 0,"BooleanResponse")},t.prototype.DFSLS=function(e){return this._connection.send("DFSLS",e,"json",!1,void 0,"ResultResponse")},t.prototype.Delete=function(e){return this._connection.send("Delete",e,"json",!1,void 0,"ResultResponse")},t.prototype.GetDFSCSV=function(e){return this._connection.send("GetDFSCSV",e,"json",!1,void 0,"ResultResponse")},t.prototype.GetDFSMap=function(e){return this._connection.send("GetDFSMap",e,"json",!1,void 0,"ResultResponse")},t.prototype.GetDFSParents=function(e){return this._connection.send("GetDFSParents",e,"json",!1,void 0,"ResultResponse")},t.prototype.GetLogicalFile=function(e){return this._connection.send("GetLogicalFile",e,"json",!1,void 0,"ResultResponse")},t.prototype.GetLogicalFilePart=function(e){return this._connection.send("GetLogicalFilePart",e,"json",!1,void 0,"ResultResponse")},t.prototype.GetProtectedList=function(e){return this._connection.send("GetProtectedList",e,"json",!1,void 0,"ResultResponse")},t.prototype.GetValue=function(e){return this._connection.send("GetValue",e,"json",!1,void 0,"ResultResponse")},t.prototype.Import=function(e){return this._connection.send("Import",e,"json",!1,void 0,"ResultResponse")},t.prototype.Ping=function(e){return this._connection.send("Ping",e,"json",!1,void 0,"WSDaliPingResponse")},t.prototype.SetLogicalFilePartAttr=function(e){return this._connection.send("SetLogicalFilePartAttr",e,"json",!1,void 0,"ResultResponse")},t.prototype.SetProtected=function(e){return this._connection.send("SetProtected",e,"json",!1,void 0,"ResultResponse")},t.prototype.SetUnprotected=function(e){return this._connection.send("SetUnprotected",e,"json",!1,void 0,"ResultResponse")},t.prototype.SetValue=function(e){return this._connection.send("SetValue",e,"json",!1,void 0,"ResultResponse")},t}(Service),DaliService=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends(t,e),t}(DaliServiceBase);exports.WsDfu=void 0,function(e){var t,r,n;!function(e){e.Delete="Delete",e.AddToSuperfile="AddToSuperfile",e.ChangeProtection="ChangeProtection",e.ChangeRestriction="ChangeRestriction"}(e.DFUArrayActions||(e.DFUArrayActions={})),function(e){e[e.NoChange=0]="NoChange",e[e.Protect=1]="Protect",e[e.Unprotect=2]="Unprotect",e[e.UnprotectAll=3]="UnprotectAll"}(e.DFUChangeProtection||(e.DFUChangeProtection={})),function(e){e[e.NoChange=0]="NoChange",e[e.Restrict=1]="Restrict",e[e.Unrestricted=2]="Unrestricted"}(e.DFUChangeRestriction||(e.DFUChangeRestriction={})),function(e){e.xml="xml",e.def="def"}(e.DFUDefFileFormat||(e.DFUDefFileFormat={})),(t=e.FileAccessRole||(e.FileAccessRole={})).Token="Token",t.Engine="Engine",t.External="External",(r=e.SecAccessType||(e.SecAccessType={})).None="None",r.Access="Access",r.Read="Read",r.Write="Write",r.Full="Full",(n=e.DFUFileType||(e.DFUFileType={})).Flat="Flat",n.Index="Index",n.Xml="Xml",n.Csv="Csv",n.Json="Json",n.IndexLocal="IndexLocal",n.IndexPartitioned="IndexPartitioned",n.Unset="Unset"}(exports.WsDfu||(exports.WsDfu={}));var DfuServiceBase=function(e){function t(t){return e.call(this,t,"WsDfu","1.65")||this}return __extends(t,e),t.prototype.Add=function(e){return this._connection.send("Add",e,"json",!1,void 0,"AddResponse")},t.prototype.AddRemote=function(e){return this._connection.send("AddRemote",e,"json",!1,void 0,"AddRemoteResponse")},t.prototype.AddtoSuperfile=function(e){return this._connection.send("AddtoSuperfile",e,"json",!1,void 0,"AddtoSuperfileResponse")},t.prototype.DFUArrayAction=function(e){return this._connection.send("DFUArrayAction",e,"json",!1,void 0,"DFUArrayActionResponse")},t.prototype.DFUBrowseData=function(e){return this._connection.send("DFUBrowseData",e,"json",!1,void 0,"DFUBrowseDataResponse")},t.prototype.DFUDefFile=function(e){return this._connection.send("DFUDefFile",e,"json",!1,void 0,"DFUDefFileResponse")},t.prototype.DFUFileAccess=function(e){return this._connection.send("DFUFileAccess",e,"json",!1,void 0,"DFUFileAccessResponse")},t.prototype.DFUFileAccessV2=function(e){return this._connection.send("DFUFileAccessV2",e,"json",!1,void 0,"DFUFileAccessResponse")},t.prototype.DFUFileCreate=function(e){return this._connection.send("DFUFileCreate",e,"json",!1,void 0,"DFUFileCreateResponse")},t.prototype.DFUFileCreateV2=function(e){return this._connection.send("DFUFileCreateV2",e,"json",!1,void 0,"DFUFileCreateResponse")},t.prototype.DFUFilePublish=function(e){return this._connection.send("DFUFilePublish",e,"json",!1,void 0,"DFUFilePublishResponse")},t.prototype.DFUFileView=function(e){return this._connection.send("DFUFileView",e,"json",!1,void 0,"DFUFileViewResponse")},t.prototype.DFUGetDataColumns=function(e){return this._connection.send("DFUGetDataColumns",e,"json",!1,void 0,"DFUGetDataColumnsResponse")},t.prototype.DFUGetFileMetaData=function(e){return this._connection.send("DFUGetFileMetaData",e,"json",!1,void 0,"DFUGetFileMetaDataResponse")},t.prototype.DFUInfo=function(e){return this._connection.send("DFUInfo",e,"json",!1,void 0,"DFUInfoResponse")},t.prototype.DFUQuery=function(e){return this._connection.send("DFUQuery",e,"json",!1,void 0,"DFUQueryResponse")},t.prototype.DFURecordTypeInfo=function(e){return this._connection.send("DFURecordTypeInfo",e,"json",!1,void 0,"DFURecordTypeInfoResponse")},t.prototype.DFUSearch=function(e){return this._connection.send("DFUSearch",e,"json",!1,void 0,"DFUSearchResponse")},t.prototype.DFUSearchData=function(e){return this._connection.send("DFUSearchData",e,"json",!1,void 0,"DFUSearchDataResponse")},t.prototype.DFUSpace=function(e){return this._connection.send("DFUSpace",e,"json",!1,void 0,"DFUSpaceResponse")},t.prototype.EclRecordTypeInfo=function(e){return this._connection.send("EclRecordTypeInfo",e,"json",!1,void 0,"EclRecordTypeInfoResponse")},t.prototype.EraseHistory=function(e){return this._connection.send("EraseHistory",e,"json",!1,void 0,"EraseHistoryResponse")},t.prototype.ListHistory=function(e){return this._connection.send("ListHistory",e,"json",!1,void 0,"ListHistoryResponse")},t.prototype.Ping=function(e){return this._connection.send("Ping",e,"json",!1,void 0,"WsDfuPingResponse")},t.prototype.Savexml=function(e){return this._connection.send("Savexml",e,"json",!1,void 0,"SavexmlResponse")},t.prototype.SuperfileAction=function(e){return this._connection.send("SuperfileAction",e,"json",!1,void 0,"SuperfileActionResponse")},t.prototype.SuperfileList=function(e){return this._connection.send("SuperfileList",e,"json",!1,void 0,"SuperfileListResponse")},t}(Service),DFUArrayActions=exports.WsDfu.DFUArrayActions,DFUDefFileFormat=exports.WsDfu.DFUDefFileFormat,DFUChangeProtection=exports.WsDfu.DFUChangeProtection,DFUChangeRestriction=exports.WsDfu.DFUChangeRestriction,DFUService=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends(t,e),t.prototype.DFUFile=function(e){return this._connection.send("DFUDefFile",e,"text")},t}(DfuServiceBase),DFUXRefService=function(e){function t(t){return e.call(this,t,"WsDFUXRef","1.01")||this}return __extends(t,e),t.prototype.DFUXRefArrayAction=function(e){return this._connection.send("DFUXRefArrayAction",e)},t.prototype.DFUXRefBuild=function(e){return this._connection.send("DFUXRefBuild",e)},t.prototype.DFUXRefBuildCancel=function(e){return this._connection.send("DFUXRefBuildCancel",e)},t.prototype.DFUXRefCleanDirectories=function(e){return this._connection.send("DFUXRefCleanDirectories",e)},t.prototype.DFUXRefDirectories=function(e){return this._connection.send("DFUXRefDirectories",e,void 0,void 0,void 0,"DFUXRefDirectoriesQueryResponse")},t.prototype.DFUXRefFoundFiles=function(e){return this._connection.send("DFUXRefFoundFiles",e,void 0,void 0,void 0,"DFUXRefFoundFilesQueryResponse")},t.prototype.DFUXRefList=function(e){return void 0===e&&(e={}),this._connection.send("DFUXRefList",e)},t.prototype.DFUXRefLostFiles=function(e){return this._connection.send("DFUXRefLostFiles",e,void 0,void 0,void 0,"DFUXRefLostFilesQueryResponse")},t.prototype.DFUXRefMessages=function(e){return this._connection.send("DFUXRefMessages",e,void 0,void 0,void 0,"DFUXRefMessagesQueryResponse")},t.prototype.DFUXRefOrphanFiles=function(e){return this._connection.send("DFUXRefOrphanFiles",e,void 0,void 0,void 0,"DFUXRefOrphanFilesQueryResponse")},t.prototype.DFUXRefUnusedFiles=function(e){return this._connection.send("DFUXRefUnusedFiles",e)},t}(Service);function jsonToIField(e,t){var r=typeof t;switch(r){case"boolean":case"number":case"string":return{id:e,type:r};case"object":if(t.Row instanceof Array&&(t=t.Row),t instanceof Array)return{id:e,type:"dataset",children:jsonToIFieldArr(t[0])};if(t instanceof Object){if(t.Item&&t.Item instanceof Array&&1===t.Item.length){var n=typeof t.Item[0];if("string"===n||"number"===n)return{id:e,type:"set",fieldType:n};throw new Error("Unknown field type")}return{id:e,type:"object",fields:jsonToIFieldObj(t)}}default:throw new Error("Unknown field type")}}function jsonToIFieldArr(e){e.Row&&e.Row instanceof Array&&(e=e.Row[0]);var t=[];for(var r in e)t.push(jsonToIField(r,e[r]));return t}function jsonToIFieldObj(e){var t={};for(var r in e)t[r]=jsonToIField(r,e[r]);return t}var EclService=function(e){function t(t){return e.call(this,t,"WsEcl","0")||this}return __extends(t,e),t.prototype.opts=function(){return this._connection.opts()},t.prototype.requestJson=function(e,t){return this._connection.send("example/request/query/".concat(e,"/").concat(t,"/json"),{},"text").then((function(e){var t=JSON.parse(e);for(var r in t)return t[r];return{}})).then(jsonToIFieldArr)},t.prototype.responseJson=function(e,t){return this._connection.send("example/response/query/".concat(e,"/").concat(t,"/json"),{},"text").then((function(e){var t=JSON.parse(e);for(var r in t)return t[r].Results;return{}})).then((function(e){var t={};for(var r in e)t[r]=jsonToIFieldArr(e[r]);return t}))},t.prototype.submit=function(e,t,r){var n="submit/query/".concat(e,"/").concat(t);return this._connection.send(n,r,"json2").then((function(e){if(e.Results&&e.Results.Exception)throw new ESPExceptions(n,r,{Source:"wsEcl.submit",Exception:e.Results.Exception});return e.Results}))},t}(Service),ElkServiceBase=function(e){function t(t){return e.call(this,t,"ws_elk","1")||this}return __extends(t,e),t.prototype.GetConfigDetails=function(e){return this._connection.send("GetConfigDetails",e)},t.prototype.Ping=function(e){return this._connection.send("Ping",e)},t}(Service),ElkService=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends(t,e),t}(ElkServiceBase);exports.WsLogaccess=void 0,function(e){var t,r,n,o,i,s,A;(t=e.LogColumnType||(e.LogColumnType={})).global="global",t.workunits="workunits",t.components="components",t.audience="audience",t.class="class",t.instance="instance",t.node="node",t.message="message",t.logid="logid",t.processid="processid",t.threadid="threadid",t.timestamp="timestamp",(r=e.LogColumnValueType||(e.LogColumnValueType={})).string="string",r.numeric="numeric",r.datetime="datetime",r.enum="enum",(n=e.LogAccessType||(e.LogAccessType={}))[n.All=0]="All",n[n.ByJobID=1]="ByJobID",n[n.ByComponent=2]="ByComponent",n[n.ByLogType=3]="ByLogType",n[n.ByTargetAudience=4]="ByTargetAudience",n[n.BySourceInstance=5]="BySourceInstance",n[n.BySourceNode=6]="BySourceNode",n[n.ByFieldName=7]="ByFieldName",(o=e.LogAccessFilterOperator||(e.LogAccessFilterOperator={}))[o.NONE=0]="NONE",o[o.AND=1]="AND",o[o.OR=2]="OR",(i=e.LogSelectColumnMode||(e.LogSelectColumnMode={}))[i.MIN=0]="MIN",i[i.DEFAULT=1]="DEFAULT",i[i.ALL=2]="ALL",i[i.CUSTOM=3]="CUSTOM",(s=e.SortColumType||(e.SortColumType={}))[s.ByDate=0]="ByDate",s[s.ByJobID=1]="ByJobID",s[s.ByComponent=2]="ByComponent",s[s.ByLogType=3]="ByLogType",s[s.ByTargetAudience=4]="ByTargetAudience",s[s.BySourceInstance=5]="BySourceInstance",s[s.BySourceNode=6]="BySourceNode",s[s.ByFieldName=7]="ByFieldName",(A=e.SortDirection||(e.SortDirection={}))[A.ASC=0]="ASC",A[A.DSC=1]="DSC"}(exports.WsLogaccess||(exports.WsLogaccess={}));var ElasticKnownColumns,LogaccessServiceBase=function(e){function t(t){return e.call(this,t,"ws_logaccess","1.04")||this}return __extends(t,e),t.prototype.GetLogAccessInfo=function(e){return this._connection.send("GetLogAccessInfo",e,"json",!1,void 0,"GetLogAccessInfoResponse")},t.prototype.GetLogs=function(e){return this._connection.send("GetLogs",e,"json",!1,void 0,"GetLogsResponse")},t.prototype.Ping=function(e){return this._connection.send("Ping",e,"json",!1,void 0,"ws_logaccessPingResponse")},t}(Service),logger$4=util$m.scopedLogger("@hpcc-js/comms/services/wsLogaccess.ts");!function(e){e.audience="hpcc.log.audience",e.class="hpcc.log.class",e.containerName="kubernetes.container.name",e.jobId="hpcc.log.jobid",e.message="hpcc.log.message",e.procId="hpcc.log.procid",e.sequence="hpcc.log.sequence",e.threadId="hpcc.log.threadid",e.timestamp="hpcc.log.timestamp"}(ElasticKnownColumns||(ElasticKnownColumns={}));var RElasticKnownColumns={};for(var key in ElasticKnownColumns)ElasticKnownColumns.hasOwnProperty(key)&&(RElasticKnownColumns[ElasticKnownColumns[key]]=key);var AzureKnownColumns,elasticToLogLine=function(e){var t={};for(var r in RElasticKnownColumns)t[RElasticKnownColumns[r]]=null==e?void 0:e.fields[0][r];return t};!function(e){e.audience="hpcc_log_audience",e.class="hpcc_log_class",e.containerID="ContainerID",e.containerName="ContainerID",e.jobId="hpcc_log_jobid",e.message="hpcc_log_message",e.procId="",e.sequence="hpcc_log_sequence",e.threadId="hpcc_log_threadid",e.timestamp="hpcc_log_timestamp"}(AzureKnownColumns||(AzureKnownColumns={}));var RAzureKnownColumns={};for(var key in AzureKnownColumns)AzureKnownColumns.hasOwnProperty(key)&&(RAzureKnownColumns[AzureKnownColumns[key]]=key);var azureToLogLine=function(e){var t,r={};for(var n in RAzureKnownColumns)r[RAzureKnownColumns[n]]=null!==(t=null==e?void 0:e.fields[0][n])&&void 0!==t?t:"";return r},LogaccessService=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends(t,e),t.prototype.GetLogAccessInfo=function(t){return void 0===t&&(t={}),this._logAccessInfo||(this._logAccessInfo=e.prototype.GetLogAccessInfo.call(this,t)),this._logAccessInfo},t.prototype.GetLogs=function(t){return e.prototype.GetLogs.call(this,t)},t.prototype.GetLogsEx=function(e){var t,r,n,o,i,s,A,a,c,u;return __awaiter(this,void 0,void 0,(function(){var l,d,g,h,p,E;return __generator(this,(function(C){switch(C.label){case 0:return[4,this.GetLogAccessInfo()];case 1:for(p in l=C.sent(),d={Filter:{leftBinaryFilter:{BinaryLogFilter:[{leftFilter:{LogCategory:exports.WsLogaccess.LogAccessType.All}}]}},Range:{StartDate:new Date(0).toISOString()},LogLineStartFrom:null!==(t=e.LogLineStartFrom)&&void 0!==t?t:0,LogLineLimit:null!==(r=e.LogLineLimit)&&void 0!==r?r:100,SelectColumnMode:exports.WsLogaccess.LogSelectColumnMode.DEFAULT,Format:"JSON"},g=[],h=function(t){var r;switch(l.RemoteLogManagerType){case"azureloganalyticscurl":t in AzureKnownColumns&&(r=AzureKnownColumns[t]);break;case"elasticstack":t in ElasticKnownColumns&&(r=ElasticKnownColumns[t])}r&&(Array.isArray(e[t])?e[t].forEach((function(e){g.push({LogCategory:exports.WsLogaccess.LogAccessType.ByFieldName,SearchField:r,SearchByValue:e})})):g.push({LogCategory:exports.WsLogaccess.LogAccessType.ByFieldName,SearchField:r,SearchByValue:e[t]}))},e)h(p);return g.length>2?(E=d.Filter.leftBinaryFilter.BinaryLogFilter[0],g.forEach((function(e,t){var r=exports.WsLogaccess.LogAccessFilterOperator.AND;t>0?(g[t-1].SearchField===e.SearchField&&(r=exports.WsLogaccess.LogAccessFilterOperator.OR),t===g.length-1?(E.Operator=r,E.rightFilter=e):(E.Operator=r,E.rightBinaryFilter={BinaryLogFilter:[{leftFilter:e}]},E=E.rightBinaryFilter.BinaryLogFilter[0])):E.leftFilter=e}))):(delete d.Filter.leftBinaryFilter,d.Filter.leftFilter={LogCategory:exports.WsLogaccess.LogAccessType.All},(null===(n=g[0])||void 0===n?void 0:n.SearchField)&&(d.Filter.leftFilter={LogCategory:null===(o=g[0])||void 0===o?void 0:o.LogCategory,SearchField:null===(i=g[0])||void 0===i?void 0:i.SearchField,SearchByValue:null===(s=g[0])||void 0===s?void 0:s.SearchByValue}),(null===(A=g[1])||void 0===A?void 0:A.SearchField)&&(d.Filter.Operator=exports.WsLogaccess.LogAccessFilterOperator.AND,g[0].SearchField===g[1].SearchField&&(d.Filter.Operator=exports.WsLogaccess.LogAccessFilterOperator.OR),d.Filter.rightFilter={LogCategory:null===(a=g[0])||void 0===a?void 0:a.LogCategory,SearchField:null===(c=g[1])||void 0===c?void 0:c.SearchField,SearchByValue:null===(u=g[1])||void 0===u?void 0:u.SearchByValue})),e.StartDate&&(d.Range.StartDate=e.StartDate.toISOString()),e.EndDate&&(d.Range.EndDate=e.EndDate.toISOString()),[2,this.GetLogs(d).then((function(e){var t,r,n,o,i;try{var s=JSON.parse(e.LogLines),A=[];switch(l.RemoteLogManagerType){case"azureloganalyticscurl":A=null!==(r=null===(t=s.lines)||void 0===t?void 0:t.map(azureToLogLine))&&void 0!==r?r:[];break;case"elasticstack":A=null!==(o=null===(n=s.lines)||void 0===n?void 0:n.map(elasticToLogLine))&&void 0!==o?o:[];break;default:logger$4.warning("Unknown RemoteLogManagerType: ".concat(l.RemoteLogManagerType)),A=[]}return{lines:A,total:null!==(i=e.TotalLogLinesAvailable)&&void 0!==i?i:1e4}}catch(e){logger$4.error(e)}return{lines:[],total:0}}))]}}))}))},t}(LogaccessServiceBase);function ascending(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}function bisector(e){return 1===e.length&&(e=ascendingComparator(e)),{left:function(t,r,n,o){for(null==n&&(n=0),null==o&&(o=t.length);n<o;){var i=n+o>>>1;e(t[i],r)<0?n=i+1:o=i}return n},right:function(t,r,n,o){for(null==n&&(n=0),null==o&&(o=t.length);n<o;){var i=n+o>>>1;e(t[i],r)>0?o=i:n=i+1}return n}}}function ascendingComparator(e){return function(t,r){return ascending(e(t),r)}}function number(e){return null===e?NaN:+e}function d3Max(e,t){var r,n,o=e.length,i=-1;if(null==t){for(;++i<o;)if(null!=(r=e[i])&&r>=r)for(n=r;++i<o;)null!=(r=e[i])&&r>n&&(n=r)}else for(;++i<o;)if(null!=(r=t(e[i],i,e))&&r>=r)for(n=r;++i<o;)null!=(r=t(e[i],i,e))&&r>n&&(n=r);return n}function d3Mean(e,t){var r,n=e.length,o=n,i=-1,s=0;if(null==t)for(;++i<n;)isNaN(r=number(e[i]))?--o:s+=r;else for(;++i<n;)isNaN(r=number(t(e[i],i,e)))?--o:s+=r;if(o)return s/o}bisector(ascending);var MachineServiceBase=function(e){function t(t){return e.call(this,t,"ws_machine","1.17")||this}return __extends(t,e),t.prototype.GetComponentStatus=function(e){return this._connection.send("GetComponentStatus",e)},t.prototype.GetComponentUsage=function(e){return this._connection.send("GetComponentUsage",e)},t.prototype.GetMachineInfo=function(e){return this._connection.send("GetMachineInfo",e)},t.prototype.GetMachineInfoEx=function(e){return this._connection.send("GetMachineInfoEx",e)},t.prototype.GetMetrics=function(e){return this._connection.send("GetMetrics",e)},t.prototype.GetNodeGroupUsage=function(e){return this._connection.send("GetNodeGroupUsage",e)},t.prototype.GetTargetClusterInfo=function(e){return this._connection.send("GetTargetClusterInfo",e)},t.prototype.GetTargetClusterUsage=function(e){return this._connection.send("GetTargetClusterUsage",e)},t.prototype.Ping=function(e){return this._connection.send("Ping",e)},t.prototype.UpdateComponentStatus=function(e){return this._connection.send("UpdateComponentStatus",e)},t}(Service),MachineService=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends(t,e),t.prototype.GetTargetClusterUsageEx=function(e,t){return void 0===t&&(t=!1),this._connection.send("GetTargetClusterUsage",{TargetClusters:e?{Item:e}:{},BypassCachedResult:t}).then((function(e){return util$m.exists("TargetClusterUsages.TargetClusterUsage",e)?e.TargetClusterUsages.TargetClusterUsage:[]})).then((function(e){return e.filter((function(e){return!!e.ComponentUsages})).map((function(e){var t=e.ComponentUsages.ComponentUsage.map((function(e){var t=(e.MachineUsages&&e.MachineUsages.MachineUsage?e.MachineUsages.MachineUsage:[]).map((function(e){var t=e.DiskUsages&&e.DiskUsages.DiskUsage?e.DiskUsages.DiskUsage.map((function(e){return __assign(__assign({},e),{Total:e.InUse+e.Available,PercentUsed:100-e.PercentAvailable})})):[];return{Name:e.Name,NetAddress:e.NetAddress,Description:e.Description,DiskUsages:t,mean:d3Mean(t.filter((function(e){return!isNaN(e.PercentUsed)})),(function(e){return e.PercentUsed})),max:d3Max(t.filter((function(e){return!isNaN(e.PercentUsed)})),(function(e){return e.PercentUsed}))}}));return{Type:e.Type,Name:e.Name,Description:e.Description,MachineUsages:t,MachineUsagesDescription:t.reduce((function(e,t){return e+(t.Description||"")}),""),mean:d3Mean(t.filter((function(e){return!isNaN(e.mean)})),(function(e){return e.mean})),max:d3Max(t.filter((function(e){return!isNaN(e.max)})),(function(e){return e.max}))}}));return{Name:e.Name,Description:e.Description,ComponentUsages:t,ComponentUsagesDescription:t.reduce((function(e,t){return e+(t.MachineUsagesDescription||"")}),""),mean:d3Mean(t.filter((function(e){return!isNaN(e.mean)})),(function(e){return e.mean})),max:d3Max(t.filter((function(e){return!isNaN(e.max)})),(function(e){return e.max}))}}))}))},t}(MachineServiceBase),PackageProcessServiceBase=function(e){function t(t){return e.call(this,t,"WsPackageProcess","1.04")||this}return __extends(t,e),t.prototype.ActivatePackage=function(e){return this._connection.send("ActivatePackage",e)},t.prototype.AddPackage=function(e){return this._connection.send("AddPackage",e)},t.prototype.AddPartToPackageMap=function(e){return this._connection.send("AddPartToPackageMap",e)},t.prototype.CopyPackageMap=function(e){return this._connection.send("CopyPackageMap",e)},t.prototype.DeActivatePackage=function(e){return this._connection.send("DeActivatePackage",e)},t.prototype.DeletePackage=function(e){return this._connection.send("DeletePackage",e)},t.prototype.Echo=function(e){return this._connection.send("Echo",e)},t.prototype.GetPackage=function(e){return this._connection.send("GetPackage",e)},t.prototype.GetPackageMapById=function(e){return this._connection.send("GetPackageMapById",e)},t.prototype.GetPackageMapSelectOptions=function(e){return this._connection.send("GetPackageMapSelectOptions",e)},t.prototype.GetPartFromPackageMap=function(e){return this._connection.send("GetPartFromPackageMap",e)},t.prototype.GetQueryFileMapping=function(e){return this._connection.send("GetQueryFileMapping",e)},t.prototype.ListPackage=function(e){return this._connection.send("ListPackage",e)},t.prototype.ListPackages=function(e){return this._connection.send("ListPackages",e)},t.prototype.Ping=function(e){return this._connection.send("Ping",e)},t.prototype.RemovePartFromPackageMap=function(e){return this._connection.send("RemovePartFromPackageMap",e)},t.prototype.ValidatePackage=function(e){return this._connection.send("ValidatePackage",e)},t}(Service),PackageProcessService=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends(t,e),t}(PackageProcessServiceBase),ResourcesServiceBase=function(e){function t(t){return e.call(this,t,"WsResources","1.01")||this}return __extends(t,e),t.prototype.Ping=function(e){return this._connection.send("Ping",e)},t.prototype.ServiceQuery=function(e){return this._connection.send("ServiceQuery",e)},t.prototype.WebLinksQuery=function(e){return this._connection.send("WebLinksQuery",e)},t}(Service),ResourcesService=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends(t,e),t}(ResourcesServiceBase),SMCService=function(){function e(e){this._connection=new ESPConnection(e,"WsSMC","1.24")}return e.prototype.connectionOptions=function(){return this._connection.opts()},e.prototype.Activity=function(e){return this._connection.send("Activity",e).then((function(e){return __assign({Running:{ActiveWorkunit:[]}},e)}))},e.prototype.BrowseResources=function(e){return this._connection.send("BrowseResources",e)},e.prototype.GetBuildInfo=function(e){return this._connection.send("GetBuildInfo",e)},e.prototype.GetStatusServerInfo=function(e){return this._connection.send("GetStatusServerInfo",e)},e.prototype.GetThorQueueAvailability=function(e){return this._connection.send("GetThorQueueAvailability",e)},e.prototype.LockQuery=function(e){return this._connection.send("LockQuery",e)},e.prototype.NotInCommunityEdition=function(e){return this._connection.send("NotInCommunityEdition",e)},e.prototype.RoxieControlCmd=function(e){return this._connection.send("RoxieControlCmd",e)},e.prototype.SetBanner=function(e){return this._connection.send("SetBanner",e)},e.prototype.SMCJob=function(e){return this._connection.send("SMCJob",e)},e}(),StoreService=function(e){function t(t){return e.call(this,t,"WsStore","1")||this}return __extends(t,e),t.prototype.CreateStore=function(e){return this._connection.send("Fetch",e)},t.prototype.Delete=function(e){return this._connection.send("Delete",e).catch((function(e){if(e.isESPExceptions&&e.Exception.some((function(e){return-1===e.Code})))return{Exceptions:void 0,Success:!0};throw e}))},t.prototype.DeleteNamespace=function(e){return this._connection.send("DeleteNamespace",e)},t.prototype.Fetch=function(e){return this._connection.send("Fetch",e).catch((function(e){if(e.isESPExceptions&&e.Exception.some((function(e){return-1===e.Code})))return{Exceptions:void 0,Value:void 0};throw e}))},t.prototype.FetchAll=function(e){return this._connection.send("FetchAll",e)},t.prototype.FetchKeyMD=function(e){return this._connection.send("FetchKeyMD",e)},t.prototype.ListKeys=function(e){return this._connection.send("ListKeys",e)},t.prototype.ListNamespaces=function(e){return this._connection.send("ListNamespaces",e)},t.prototype.Set=function(e){return this._connection.send("Set",e)},t}(Service);exports.WsTopology=void 0,function(e){var t;(t=e.RoxieQueueFilter||(e.RoxieQueueFilter={})).All="All",t.QueriesOnly="QueriesOnly",t.WorkunitsOnly="WorkunitsOnly"}(exports.WsTopology||(exports.WsTopology={}));var WsWorkunits,TopologyServiceBase=function(e){function t(t){return e.call(this,t,"WsTopology","1.31")||this}return __extends(t,e),t.prototype.Ping=function(e){return this._connection.send("Ping",e,"json",!1,void 0,"WsTopologyPingResponse")},t.prototype.SystemLog=function(e){return this._connection.send("SystemLog",e,"json",!1,void 0,"SystemLogResponse")},t.prototype.TpClusterInfo=function(e){return this._connection.send("TpClusterInfo",e,"json",!1,void 0,"TpClusterInfoResponse")},t.prototype.TpClusterQuery=function(e){return this._connection.send("TpClusterQuery",e,"json",!1,void 0,"TpClusterQueryResponse")},t.prototype.TpDropZoneQuery=function(e){return this._connection.send("TpDropZoneQuery",e,"json",!1,void 0,"TpDropZoneQueryResponse")},t.prototype.TpGetComponentFile=function(e){return this._connection.send("TpGetComponentFile",e,"json",!1,void 0,"TpGetComponentFileResponse")},t.prototype.TpGetServicePlugins=function(e){return this._connection.send("TpGetServicePlugins",e,"json",!1,void 0,"TpGetServicePluginsResponse")},t.prototype.TpGroupQuery=function(e){return this._connection.send("TpGroupQuery",e,"json",!1,void 0,"TpGroupQueryResponse")},t.prototype.TpListTargetClusters=function(e){return this._connection.send("TpListTargetClusters",e,"json",!1,void 0,"TpListTargetClustersResponse")},t.prototype.TpLogFile=function(e){return this._connection.send("TpLogFile",e,"json",!1,void 0,"TpLogFileResponse")},t.prototype.TpLogFileDisplay=function(e){return this._connection.send("TpLogFileDisplay",e,"json",!1,void 0,"TpLogFileResponse")},t.prototype.TpLogicalClusterQuery=function(e){return this._connection.send("TpLogicalClusterQuery",e,"json",!1,void 0,"TpLogicalClusterQueryResponse")},t.prototype.TpMachineInfo=function(e){return this._connection.send("TpMachineInfo",e,"json",!1,void 0,"TpMachineInfoResponse")},t.prototype.TpMachineQuery=function(e){return this._connection.send("TpMachineQuery",e,"json",!1,void 0,"TpMachineQueryResponse")},t.prototype.TpServiceQuery=function(e){return this._connection.send("TpServiceQuery",e,"json",!1,void 0,"TpServiceQueryResponse")},t.prototype.TpSetMachineStatus=function(e){return this._connection.send("TpSetMachineStatus",e,"json",!1,void 0,"TpSetMachineStatusResponse")},t.prototype.TpSwapNode=function(e){return this._connection.send("TpSwapNode",e,"json",!1,void 0,"TpSwapNodeResponse")},t.prototype.TpTargetClusterQuery=function(e){return this._connection.send("TpTargetClusterQuery",e,"json",!1,void 0,"TpTargetClusterQueryResponse")},t.prototype.TpThorStatus=function(e){return this._connection.send("TpThorStatus",e,"json",!1,void 0,"TpThorStatusResponse")},t.prototype.TpXMLFile=function(e){return this._connection.send("TpXMLFile",e,"json",!1,void 0,"TpXMLFileResponse")},t}(Service),TopologyService=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends(t,e),t.prototype.connectionOptions=function(){return this._connection.opts()},t.prototype.protocol=function(){return this._connection.opts().baseUrl.split("//")[0]},t.prototype.ip=function(){return this._connection.opts().baseUrl.split("//")[1].split(":")[0]},t.prototype.DefaultTpLogicalClusterQuery=function(e){return void 0===e&&(e={}),this.TpLogicalClusterQuery(e).then((function(e){return e.default?e.default:(e.TpLogicalClusters.TpLogicalCluster.some((function(e,n){return 0===n&&(r=e),"hthor"===e.Type&&(t=e,!0)})),t||r);var t,r}))},t}(TopologyServiceBase);!function(e){var t,r,n,o,i,s,A,a,c,u,l,d;(t=e.ECLWUActions||(e.ECLWUActions={})).Abort="Abort",t.Delete="Delete",t.Deschedule="Deschedule",t.Reschedule="Reschedule",t.Pause="Pause",t.PauseNow="PauseNow",t.Protect="Protect",t.Unprotect="Unprotect",t.Restore="Restore",t.Resume="Resume",t.SetToFailed="SetToFailed",t.Archive="Archive",(r=e.EclDefinitionActions||(e.EclDefinitionActions={})).SyntaxCheck="SyntaxCheck",r.Deploy="Deploy",r.Publish="Publish",(n=e.ErrorMessageFormat||(e.ErrorMessageFormat={})).xml="xml",n.json="json",n.text="text",(o=e.LogSelectColumnMode||(e.LogSelectColumnMode={}))[o.MIN=0]="MIN",o[o.DEFAULT=1]="DEFAULT",o[o.ALL=2]="ALL",o[o.CUSTOM=3]="CUSTOM",(i=e.LogAccessLogFormat||(e.LogAccessLogFormat={}))[i.XML=0]="XML",i[i.JSON=1]="JSON",i[i.CSV=2]="CSV",(s=e.WUExceptionSeverity||(e.WUExceptionSeverity={})).info="info",s.warning="warning",s.error="error",s.alert="alert",(A=e.WUQueryFilterSuspendedType||(e.WUQueryFilterSuspendedType={})).Allqueries="Allqueries",A.Notsuspended="Notsuspended",A.Suspended="Suspended",A.Suspendedbyuser="Suspendedbyuser",A.Suspendedbyfirstnode="Suspendedbyfirstnode",A.Suspendedbyanynode="Suspendedbyanynode",(a=e.WUQuerySetFilterType||(e.WUQuerySetFilterType={})).All="All",a.Id="Id",a.Name="Name",a.Alias="Alias",a.Status="Status",(c=e.WUProtectFilter||(e.WUProtectFilter={})).All="All",c.Protected="Protected",c.NotProtected="NotProtected",(e.QuerySetAliasActionTypes||(e.QuerySetAliasActionTypes={})).Deactivate="Deactivate",(u=e.QuerysetImportActivation||(e.QuerysetImportActivation={})).None="None",u.ActivateImportedActive="ActivateImportedActive",(l=e.QuerySetQueryActionTypes||(e.QuerySetQueryActionTypes={})).Suspend="Suspend",l.Unsuspend="Unsuspend",l.ToggleSuspend="ToggleSuspend",l.Activate="Activate",l.Delete="Delete",l.DeleteQueriesAndWUs="DeleteQueriesAndWUs",l.RemoveAllAliases="RemoveAllAliases",l.ResetQueryStats="ResetQueryStats",(d=e.WUQueryActivationMode||(e.WUQueryActivationMode={}))[d.DoNotActivateQuery=0]="DoNotActivateQuery",d[d.ActivateQuery=1]="ActivateQuery",d[d.ActivateQuerySuspendPrevious=2]="ActivateQuerySuspendPrevious",d[d.ActivateQueryDeletePrevious=3]="ActivateQueryDeletePrevious"}(WsWorkunits||(WsWorkunits={}));var WorkunitsServiceBase=function(e){function t(t){return e.call(this,t,"WsWorkunits","1.95")||this}return __extends(t,e),t.prototype.GVCAjaxGraph=function(e){return this._connection.send("GVCAjaxGraph",e,"json",!1,void 0,"GVCAjaxGraphResponse")},t.prototype.Ping=function(e){return this._connection.send("Ping",e,"json",!1,void 0,"WsWorkunitsPingResponse")},t.prototype.WUAbort=function(e){return this._connection.send("WUAbort",e,"json",!1,void 0,"WUAbortResponse")},t.prototype.WUAction=function(e){return this._connection.send("WUAction",e,"json",!1,void 0,"WUActionResponse")},t.prototype.WUAddLocalFileToWorkunit=function(e){return this._connection.send("WUAddLocalFileToWorkunit",e,"json",!1,void 0,"WUAddLocalFileToWorkunitResponse")},t.prototype.WUAnalyseHotspot=function(e){return this._connection.send("WUAnalyseHotspot",e,"json",!1,void 0,"WUAnalyseHotspotResponse")},t.prototype.WUCDebug=function(e){return this._connection.send("WUCDebug",e,"json",!1,void 0,"WUDebugResponse")},t.prototype.WUCheckFeatures=function(e){return this._connection.send("WUCheckFeatures",e,"json",!1,void 0,"WUCheckFeaturesResponse")},t.prototype.WUClusterJobQueueLOG=function(e){return this._connection.send("WUClusterJobQueueLOG",e,"json",!1,void 0,"WUClusterJobQueueLOGResponse")},t.prototype.WUClusterJobQueueXLS=function(e){return this._connection.send("WUClusterJobQueueXLS",e,"json",!1,void 0,"WUClusterJobQueueXLSResponse")},t.prototype.WUClusterJobSummaryXLS=function(e){return this._connection.send("WUClusterJobSummaryXLS",e,"json",!1,void 0,"WUClusterJobSummaryXLSResponse")},t.prototype.WUClusterJobXLS=function(e){return this._connection.send("WUClusterJobXLS",e,"json",!1,void 0,"WUClusterJobXLSResponse")},t.prototype.WUCompileECL=function(e){return this._connection.send("WUCompileECL",e,"json",!1,void 0,"WUCompileECLResponse")},t.prototype.WUCopyLogicalFiles=function(e){return this._connection.send("WUCopyLogicalFiles",e,"json",!1,void 0,"WUCopyLogicalFilesResponse")},t.prototype.WUCopyQuerySet=function(e){return this._connection.send("WUCopyQuerySet",e,"json",!1,void 0,"WUCopyQuerySetResponse")},t.prototype.WUCreate=function(e){return this._connection.send("WUCreate",e,"json",!1,void 0,"WUCreateResponse")},t.prototype.WUCreateAndUpdate=function(e){return this._connection.send("WUCreateAndUpdate",e,"json",!1,void 0,"WUUpdateResponse")},t.prototype.WUCreateZAPInfo=function(e){return this._connection.send("WUCreateZAPInfo",e,"json",!1,void 0,"WUCreateZAPInfoResponse")},t.prototype.WUDelete=function(e){return this._connection.send("WUDelete",e,"json",!1,void 0,"WUDeleteResponse")},t.prototype.WUDeployWorkunit=function(e){return this._connection.send("WUDeployWorkunit",e,"json",!1,void 0,"WUDeployWorkunitResponse")},t.prototype.WUDetails=function(e){return this._connection.send("WUDetails",e,"json",!1,void 0,"WUDetailsResponse")},t.prototype.WUDetailsMeta=function(e){return this._connection.send("WUDetailsMeta",e,"json",!1,void 0,"WUDetailsMetaResponse")},t.prototype.WUEclDefinitionAction=function(e){return this._connection.send("WUEclDefinitionAction",e,"json",!1,void 0,"WUEclDefinitionActionResponse")},t.prototype.WUExport=function(e){return this._connection.send("WUExport",e,"json",!1,void 0,"WUExportResponse")},t.prototype.WUFile=function(e){return this._connection.send("WUFile",e,"json",!1,void 0,"WULogFileResponse")},t.prototype.WUFullResult=function(e){return this._connection.send("WUFullResult",e,"json",!1,void 0,"WUFullResultResponse")},t.prototype.WUGVCGraphInfo=function(e){return this._connection.send("WUGVCGraphInfo",e,"json",!1,void 0,"WUGVCGraphInfoResponse")},t.prototype.WUGetArchiveFile=function(e){return this._connection.send("WUGetArchiveFile",e,"json",!1,void 0,"WUGetArchiveFileResponse")},t.prototype.WUGetDependancyTrees=function(e){return this._connection.send("WUGetDependancyTrees",e,"json",!1,void 0,"WUGetDependancyTreesResponse")},t.prototype.WUGetGraph=function(e){return this._connection.send("WUGetGraph",e,"json",!1,void 0,"WUGetGraphResponse")},t.prototype.WUGetGraphNameAndTypes=function(e){return this._connection.send("WUGetGraphNameAndTypes",e,"json",!1,void 0,"WUGetGraphNameAndTypesResponse")},t.prototype.WUGetNumFileToCopy=function(e){return this._connection.send("WUGetNumFileToCopy",e,"json",!1,void 0,"WUGetNumFileToCopyResponse")},t.prototype.WUGetPlugins=function(e){return this._connection.send("WUGetPlugins",e,"json",!1,void 0,"WUGetPluginsResponse")},t.prototype.WUGetStats=function(e){return this._connection.send("WUGetStats",e,"json",!1,void 0,"WUGetStatsResponse")},t.prototype.WUGetThorJobList=function(e){return this._connection.send("WUGetThorJobList",e,"json",!1,void 0,"WUGetThorJobListResponse")},t.prototype.WUGetThorJobQueue=function(e){return this._connection.send("WUGetThorJobQueue",e,"json",!1,void 0,"WUGetThorJobQueueResponse")},t.prototype.WUGetZAPInfo=function(e){return this._connection.send("WUGetZAPInfo",e,"json",!1,void 0,"WUGetZAPInfoResponse")},t.prototype.WUGraphInfo=function(e){return this._connection.send("WUGraphInfo",e,"json",!1,void 0,"WUGraphInfoResponse")},t.prototype.WUGraphTiming=function(e){return this._connection.send("WUGraphTiming",e,"json",!1,void 0,"WUGraphTimingResponse")},t.prototype.WUInfo=function(e){return this._connection.send("WUInfo",e,"json",!1,void 0,"WUInfoResponse")},t.prototype.WUInfoDetails=function(e){return this._connection.send("WUInfoDetails",e,"json",!1,void 0,"WUInfoResponse")},t.prototype.WUJobList=function(e){return this._connection.send("WUJobList",e,"json",!1,void 0,"WUJobListResponse")},t.prototype.WULightWeightQuery=function(e){return this._connection.send("WULightWeightQuery",e,"json",!1,void 0,"WULightWeightQueryResponse")},t.prototype.WUListArchiveFiles=function(e){return this._connection.send("WUListArchiveFiles",e,"json",!1,void 0,"WUListArchiveFilesResponse")},t.prototype.WUListLocalFileRequired=function(e){return this._connection.send("WUListLocalFileRequired",e,"json",!1,void 0,"WUListLocalFileRequiredResponse")},t.prototype.WUListQueries=function(e){return this._connection.send("WUListQueries",e,"json",!1,void 0,"WUListQueriesResponse")},t.prototype.WUListQueriesUsingFile=function(e){return this._connection.send("WUListQueriesUsingFile",e,"json",!1,void 0,"WUListQueriesUsingFileResponse")},t.prototype.WUMultiQuerysetDetails=function(e){return this._connection.send("WUMultiQuerysetDetails",e,"json",!1,void 0,"WUMultiQuerySetDetailsResponse")},t.prototype.WUProcessGraph=function(e){return this._connection.send("WUProcessGraph",e,"json",!1,void 0,"WUProcessGraphResponse")},t.prototype.WUProtect=function(e){return this._connection.send("WUProtect",e,"json",!1,void 0,"WUProtectResponse")},t.prototype.WUPublishWorkunit=function(e){return this._connection.send("WUPublishWorkunit",e,"json",!1,void 0,"WUPublishWorkunitResponse")},t.prototype.WUPushEvent=function(e){return this._connection.send("WUPushEvent",e,"json",!1,void 0,"WUPushEventResponse")},t.prototype.WUQuery=function(e){return this._connection.send("WUQuery",e,"json",!1,void 0,"WUQueryResponse")},t.prototype.WUQueryConfig=function(e){return this._connection.send("WUQueryConfig",e,"json",!1,void 0,"WUQueryConfigResponse")},t.prototype.WUQueryDetails=function(e){return this._connection.send("WUQueryDetails",e,"json",!1,void 0,"WUQueryDetailsResponse")},t.prototype.WUQueryDetailsLightWeight=function(e){return this._connection.send("WUQueryDetailsLightWeight",e,"json",!1,void 0,"WUQueryDetailsResponse")},t.prototype.WUQueryFiles=function(e){return this._connection.send("WUQueryFiles",e,"json",!1,void 0,"WUQueryFilesResponse")},t.prototype.WUQueryGetGraph=function(e){return this._connection.send("WUQueryGetGraph",e,"json",!1,void 0,"WUQueryGetGraphResponse")},t.prototype.WUQueryGetSummaryStats=function(e){return this._connection.send("WUQueryGetSummaryStats",e,"json",!1,void 0,"WUQueryGetSummaryStatsResponse")},t.prototype.WUQuerysetAliasAction=function(e){return this._connection.send("WUQuerysetAliasAction",e,"json",!1,void 0,"WUQuerySetAliasActionResponse")},t.prototype.WUQuerysetCopyQuery=function(e){return this._connection.send("WUQuerysetCopyQuery",e,"json",!1,void 0,"WUQuerySetCopyQueryResponse")},t.prototype.WUQuerysetDetails=function(e){return this._connection.send("WUQuerysetDetails",e,"json",!1,void 0,"WUQuerySetDetailsResponse")},t.prototype.WUQuerysetExport=function(e){return this._connection.send("WUQuerysetExport",e,"json",!1,void 0,"WUQuerysetExportResponse")},t.prototype.WUQuerysetImport=function(e){return this._connection.send("WUQuerysetImport",e,"json",!1,void 0,"WUQuerysetImportResponse")},t.prototype.WUQuerysetQueryAction=function(e){return this._connection.send("WUQuerysetQueryAction",e,"json",!1,void 0,"WUQuerySetQueryActionResponse")},t.prototype.WUQuerysets=function(e){return this._connection.send("WUQuerysets",e,"json",!1,void 0,"WUQuerysetsResponse")},t.prototype.WURecreateQuery=function(e){return this._connection.send("WURecreateQuery",e,"json",!1,void 0,"WURecreateQueryResponse")},t.prototype.WUResubmit=function(e){return this._connection.send("WUResubmit",e,"json",!1,void 0,"WUResubmitResponse")},t.prototype.WUResult=function(e){return this._connection.send("WUResult",e,"json",!1,void 0,"WUResultResponse")},t.prototype.WUResultBin=function(e){return this._connection.send("WUResultBin",e,"json",!1,void 0,"WUResultBinResponse")},t.prototype.WUResultSummary=function(e){return this._connection.send("WUResultSummary",e,"json",!1,void 0,"WUResultSummaryResponse")},t.prototype.WUResultView=function(e){return this._connection.send("WUResultView",e,"json",!1,void 0,"WUResultViewResponse")},t.prototype.WURun=function(e){return this._connection.send("WURun",e,"json",!1,void 0,"WURunResponse")},t.prototype.WUSchedule=function(e){return this._connection.send("WUSchedule",e,"json",!1,void 0,"WUScheduleResponse")},t.prototype.WUShowScheduled=function(e){return this._connection.send("WUShowScheduled",e,"json",!1,void 0,"WUShowScheduledResponse")},t.prototype.WUSubmit=function(e){return this._connection.send("WUSubmit",e,"json",!1,void 0,"WUSubmitResponse")},t.prototype.WUSyntaxCheckECL=function(e){return this._connection.send("WUSyntaxCheckECL",e,"json",!1,void 0,"WUSyntaxCheckResponse")},t.prototype.WUUpdate=function(e){return this._connection.send("WUUpdate",e,"json",!1,void 0,"WUUpdateResponse")},t.prototype.WUUpdateQueryEntry=function(e){return this._connection.send("WUUpdateQueryEntry",e,"json",!1,void 0,"WUUpdateQueryEntryResponse")},t.prototype.WUWaitCompiled=function(e){return this._connection.send("WUWaitCompiled",e,"json",!1,void 0,"WUWaitResponse")},t.prototype.WUWaitComplete=function(e){return this._connection.send("WUWaitComplete",e,"json",!1,void 0,"WUWaitResponse")},t}(Service);function isECLResult(e){return"string"==typeof e.Name}function isWUQueryECLWorkunit(e){return void 0!==e.TotalClusterTime}function isWUInfoWorkunit(e){return void 0!==e.StateEx}exports.WUStateID=void 0,function(e){e[e.Unknown=0]="Unknown",e[e.Compiled=1]="Compiled",e[e.Running=2]="Running",e[e.Completed=3]="Completed",e[e.Failed=4]="Failed",e[e.Archived=5]="Archived",e[e.Aborting=6]="Aborting",e[e.Aborted=7]="Aborted",e[e.Blocked=8]="Blocked",e[e.Submitted=9]="Submitted",e[e.Scheduled=10]="Scheduled",e[e.Compiling=11]="Compiling",e[e.Wait=12]="Wait",e[e.UploadingFiled=13]="UploadingFiled",e[e.DebugPaused=14]="DebugPaused",e[e.DebugRunning=15]="DebugRunning",e[e.Paused=16]="Paused",e[e.LAST=17]="LAST",e[e.NotFound=999]="NotFound"}(exports.WUStateID||(exports.WUStateID={})),exports.WUUpdate=void 0,function(e){var t;(t=e.Action||(e.Action={}))[t.Unknown=0]="Unknown",t[t.Compile=1]="Compile",t[t.Check=2]="Check",t[t.Run=3]="Run",t[t.ExecuteExisting=4]="ExecuteExisting",t[t.Pause=5]="Pause",t[t.PauseNow=6]="PauseNow",t[t.Resume=7]="Resume",t[t.Debug=8]="Debug",t[t.__size=9]="__size"}(exports.WUUpdate||(exports.WUUpdate={}));var WorkunitsService=function(e){function t(t){return e.call(this,t,"WsWorkunits","1.95")||this}return __extends(t,e),t.prototype.opts=function(){return this._connection.opts()},t.prototype.connection=function(){return this._connection.clone()},t.prototype.Ping=function(){return this._connection.send("Ping",{},"json",!1,void 0,"WsWorkunitsPingResponse").then((function(e){return{result:!0}})).catch((function(e){return{result:!1,error:e}}))},t.prototype.WUQuery=function(e){return void 0===e&&(e={}),this._connection.send("WUQuery",e).then((function(e){return util$m.deepMixin({Workunits:{ECLWorkunit:[]}},e)}))},t.prototype.WUInfo=function(e){var t=__assign({Wuid:"",TruncateEclTo64k:!0,IncludeExceptions:!1,IncludeGraphs:!1,IncludeSourceFiles:!1,IncludeResults:!1,IncludeResultsViewNames:!1,IncludeVariables:!1,IncludeTimers:!1,IncludeDebugValues:!1,IncludeApplicationValues:!1,IncludeWorkflows:!1,IncludeXmlSchemas:!1,IncludeResourceURLs:!1,IncludeECL:!1,IncludeHelpers:!1,IncludeAllowedClusters:!1,IncludeTotalClusterTime:!1,IncludeServiceNames:!1,SuppressResultSchemas:!0},e);return this._connection.send("WUInfo",t)},t.prototype.WUCreate=function(){return this._connection.send("WUCreate")},t.prototype.WUUpdate=function(e){return this._connection.send("WUUpdate",e,"json",!0)},t.prototype.WUSubmit=function(e){return this._connection.send("WUSubmit",e)},t.prototype.WUResubmit=function(e){return this._connection.toESPStringArray(e,"Wuids"),this._connection.send("WUResubmit",e)},t.prototype.WUQueryDetails=function(e){return this._connection.send("WUQueryDetails",e)},t.prototype.WUListQueries=function(e){return this._connection.send("WUListQueries",e)},t.prototype.WUPushEvent=function(e){return this._connection.send("WUPushEvent",e)},t.prototype.WUAction=function(e){return e.ActionType=e.WUActionType,this._connection.send("WUAction",e)},t.prototype.WUGetZAPInfo=function(e){return this._connection.send("WUGetZAPInfo",e)},t.prototype.WUShowScheduled=function(e){return this._connection.send("WUShowScheduled",e)},t.prototype.WUQuerySetAliasAction=function(e){return this._connection.send("WUQuerySetAliasAction",e)},t.prototype.WUQuerySetQueryAction=function(e){return this._connection.send("WUQuerySetQueryAction",e)},t.prototype.WUPublishWorkunit=function(e){return this._connection.send("WUPublishWorkunit",e)},t.prototype.WUQueryFiles=function(e){return this._connection.send("WUQueryFiles",e)},t.prototype.WUGetGraph=function(e){return this._connection.send("WUGetGraph",e)},t.prototype.WUResult=function(e,t){return this._connection.send("WUResult",e,"json",!1,t)},t.prototype.WUQueryGetGraph=function(e){return this._connection.send("WUQueryGetGraph",e)},t.prototype.WUFile=function(e){return this._connection.send("WUFile",e,"text")},t.prototype.WUGetStats=function(e){return this._connection.send("WUGetStats",e)},t.prototype.WUQueryGetSummaryStats=function(e){return this._connection.send("WUQueryGetSummaryStats",e)},t.prototype.WUDetailsMeta=function(e){return this._WUDetailsMetaPromise||(this._WUDetailsMetaPromise=this._connection.send("WUDetailsMeta",e)),this._WUDetailsMetaPromise},t.prototype.WUDetails=function(e){return this._connection.send("WUDetails",e)},t.prototype.WUCDebug=function(e){return this._connection.send("WUCDebug",e,void 0,void 0,void 0,"WUDebug").then((function(e){var t=util$m.xml2json(e.Result).children();return t.length?t[0]:null}))},t}(Service),WorkunitsServiceEx=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends(t,e),t}(WorkunitsServiceBase);function formatDecimal(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function formatDecimalParts(e,t){if((r=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null;var r,n=e.slice(0,r);return[n.length>1?n[0]+n.slice(2):n,+e.slice(r+1)]}function exponent(e){return(e=formatDecimalParts(Math.abs(e)))?e[1]:NaN}function formatGroup(e,t){return function(r,n){for(var o=r.length,i=[],s=0,A=e[0],a=0;o>0&&A>0&&(a+A+1>n&&(A=Math.max(1,n-a)),i.push(r.substring(o-=A,o+A)),!((a+=A+1)>n));)A=e[s=(s+1)%e.length];return i.reverse().join(t)}}function formatNumerals(e){return function(t){return t.replace(/[0-9]/g,(function(t){return e[+t]}))}}var prefixExponent,re=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function formatSpecifier(e){if(!(t=re.exec(e)))throw new Error("invalid format: "+e);var t;return new FormatSpecifier({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}function FormatSpecifier(e){this.fill=void 0===e.fill?" ":e.fill+"",this.align=void 0===e.align?">":e.align+"",this.sign=void 0===e.sign?"-":e.sign+"",this.symbol=void 0===e.symbol?"":e.symbol+"",this.zero=!!e.zero,this.width=void 0===e.width?void 0:+e.width,this.comma=!!e.comma,this.precision=void 0===e.precision?void 0:+e.precision,this.trim=!!e.trim,this.type=void 0===e.type?"":e.type+""}function formatTrim(e){e:for(var t,r=e.length,n=1,o=-1;n<r;++n)switch(e[n]){case".":o=t=n;break;case"0":0===o&&(o=n),t=n;break;default:if(!+e[n])break e;o>0&&(o=0)}return o>0?e.slice(0,o)+e.slice(t+1):e}function formatPrefixAuto(e,t){var r=formatDecimalParts(e,t);if(!r)return e+"";var n=r[0],o=r[1],i=o-(prefixExponent=3*Math.max(-8,Math.min(8,Math.floor(o/3))))+1,s=n.length;return i===s?n:i>s?n+new Array(i-s+1).join("0"):i>0?n.slice(0,i)+"."+n.slice(i):"0."+new Array(1-i).join("0")+formatDecimalParts(e,Math.max(0,t+i-1))[0]}function formatRounded(e,t){var r=formatDecimalParts(e,t);if(!r)return e+"";var n=r[0],o=r[1];return o<0?"0."+new Array(-o).join("0")+n:n.length>o+1?n.slice(0,o+1)+"."+n.slice(o+1):n+new Array(o-n.length+2).join("0")}formatSpecifier.prototype=FormatSpecifier.prototype,FormatSpecifier.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(void 0===this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(void 0===this.precision?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type};var formatTypes={"%":function(e,t){return(100*e).toFixed(t)},b:function(e){return Math.round(e).toString(2)},c:function(e){return e+""},d:formatDecimal,e:function(e,t){return e.toExponential(t)},f:function(e,t){return e.toFixed(t)},g:function(e,t){return e.toPrecision(t)},o:function(e){return Math.round(e).toString(8)},p:function(e,t){return formatRounded(100*e,t)},r:formatRounded,s:formatPrefixAuto,X:function(e){return Math.round(e).toString(16).toUpperCase()},x:function(e){return Math.round(e).toString(16)}};function identity(e){return e}var locale$1,format,map=Array.prototype.map,prefixes=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function formatLocale$1(e){var t=void 0===e.grouping||void 0===e.thousands?identity:formatGroup(map.call(e.grouping,Number),e.thousands+""),r=void 0===e.currency?"":e.currency[0]+"",n=void 0===e.currency?"":e.currency[1]+"",o=void 0===e.decimal?".":e.decimal+"",i=void 0===e.numerals?identity:formatNumerals(map.call(e.numerals,String)),s=void 0===e.percent?"%":e.percent+"",A=void 0===e.minus?"-":e.minus+"",a=void 0===e.nan?"NaN":e.nan+"";function c(e){var c=(e=formatSpecifier(e)).fill,u=e.align,l=e.sign,d=e.symbol,g=e.zero,h=e.width,p=e.comma,E=e.precision,C=e.trim,f=e.type;"n"===f?(p=!0,f="g"):formatTypes[f]||(void 0===E&&(E=12),C=!0,f="g"),(g||"0"===c&&"="===u)&&(g=!0,c="0",u="=");var B="$"===d?r:"#"===d&&/[boxX]/.test(f)?"0"+f.toLowerCase():"",Q="$"===d?n:/[%p]/.test(f)?s:"",I=formatTypes[f],y=/[defgprs%]/.test(f);function b(e){var r,n,s,d=B,b=Q;if("c"===f)b=I(e)+b,e="";else{var m=(e=+e)<0||1/e<0;if(e=isNaN(e)?a:I(Math.abs(e),E),C&&(e=formatTrim(e)),m&&0==+e&&"+"!==l&&(m=!1),d=(m?"("===l?l:A:"-"===l||"("===l?"":l)+d,b=("s"===f?prefixes[8+prefixExponent/3]:"")+b+(m&&"("===l?")":""),y)for(r=-1,n=e.length;++r<n;)if(48>(s=e.charCodeAt(r))||s>57){b=(46===s?o+e.slice(r+1):e.slice(r))+b,e=e.slice(0,r);break}}p&&!g&&(e=t(e,1/0));var w=d.length+e.length+b.length,k=w<h?new Array(h-w+1).join(c):"";switch(p&&g&&(e=t(k+e,k.length?h-b.length:1/0),k=""),u){case"<":e=d+e+b+k;break;case"=":e=d+k+e+b;break;case"^":e=k.slice(0,w=k.length>>1)+d+e+b+k.slice(w);break;default:e=k+d+e+b}return i(e)}return E=void 0===E?6:/[gprs]/.test(f)?Math.max(1,Math.min(21,E)):Math.max(0,Math.min(20,E)),b.toString=function(){return e+""},b}return{format:c,formatPrefix:function(e,t){var r=c(((e=formatSpecifier(e)).type="f",e)),n=3*Math.max(-8,Math.min(8,Math.floor(exponent(t)/3))),o=Math.pow(10,-n),i=prefixes[8+n/3];return function(e){return r(o*e)+i}}}}function defaultLocale$1(e){return locale$1=formatLocale$1(e),format=locale$1.format,locale$1.formatPrefix,locale$1}defaultLocale$1({decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"});var t0=new Date,t1=new Date;function newInterval(e,t,r,n){function o(t){return e(t=0===arguments.length?new Date:new Date(+t)),t}return o.floor=function(t){return e(t=new Date(+t)),t},o.ceil=function(r){return e(r=new Date(r-1)),t(r,1),e(r),r},o.round=function(e){var t=o(e),r=o.ceil(e);return e-t<r-e?t:r},o.offset=function(e,r){return t(e=new Date(+e),null==r?1:Math.floor(r)),e},o.range=function(r,n,i){var s,A=[];if(r=o.ceil(r),i=null==i?1:Math.floor(i),!(r<n&&i>0))return A;do{A.push(s=new Date(+r)),t(r,i),e(r)}while(s<r&&r<n);return A},o.filter=function(r){return newInterval((function(t){if(t>=t)for(;e(t),!r(t);)t.setTime(t-1)}),(function(e,n){if(e>=e)if(n<0)for(;++n<=0;)for(;t(e,-1),!r(e););else for(;--n>=0;)for(;t(e,1),!r(e););}))},r&&(o.count=function(t,n){return t0.setTime(+t),t1.setTime(+n),e(t0),e(t1),Math.floor(r(t0,t1))},o.every=function(e){return e=Math.floor(e),isFinite(e)&&e>0?e>1?o.filter(n?function(t){return n(t)%e==0}:function(t){return o.count(0,t)%e==0}):o:null}),o}var durationMinute=6e4,durationDay=864e5,durationWeek=6048e5,day=newInterval((function(e){e.setHours(0,0,0,0)}),(function(e,t){e.setDate(e.getDate()+t)}),(function(e,t){return(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*durationMinute)/durationDay}),(function(e){return e.getDate()-1})),timeDay=day;function weekday(e){return newInterval((function(t){t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)}),(function(e,t){e.setDate(e.getDate()+7*t)}),(function(e,t){return(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*durationMinute)/durationWeek}))}day.range;var sunday=weekday(0),monday=weekday(1),tuesday=weekday(2),wednesday=weekday(3),thursday=weekday(4),friday=weekday(5),saturday=weekday(6);sunday.range,monday.range,tuesday.range,wednesday.range,thursday.range,friday.range,saturday.range;var year=newInterval((function(e){e.setMonth(0,1),e.setHours(0,0,0,0)}),(function(e,t){e.setFullYear(e.getFullYear()+t)}),(function(e,t){return t.getFullYear()-e.getFullYear()}),(function(e){return e.getFullYear()}));year.every=function(e){return isFinite(e=Math.floor(e))&&e>0?newInterval((function(t){t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)}),(function(t,r){t.setFullYear(t.getFullYear()+r*e)})):null};var timeYear=year;year.range;var utcDay=newInterval((function(e){e.setUTCHours(0,0,0,0)}),(function(e,t){e.setUTCDate(e.getUTCDate()+t)}),(function(e,t){return(t-e)/durationDay}),(function(e){return e.getUTCDate()-1})),utcDay$1=utcDay;function utcWeekday(e){return newInterval((function(t){t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)}),(function(e,t){e.setUTCDate(e.getUTCDate()+7*t)}),(function(e,t){return(t-e)/durationWeek}))}utcDay.range;var utcSunday=utcWeekday(0),utcMonday=utcWeekday(1),utcTuesday=utcWeekday(2),utcWednesday=utcWeekday(3),utcThursday=utcWeekday(4),utcFriday=utcWeekday(5),utcSaturday=utcWeekday(6);utcSunday.range,utcMonday.range,utcTuesday.range,utcWednesday.range,utcThursday.range,utcFriday.range,utcSaturday.range;var utcYear=newInterval((function(e){e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)}),(function(e,t){e.setUTCFullYear(e.getUTCFullYear()+t)}),(function(e,t){return t.getUTCFullYear()-e.getUTCFullYear()}),(function(e){return e.getUTCFullYear()}));utcYear.every=function(e){return isFinite(e=Math.floor(e))&&e>0?newInterval((function(t){t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)}),(function(t,r){t.setUTCFullYear(t.getUTCFullYear()+r*e)})):null};var utcYear$1=utcYear;function localDate(e){if(0<=e.y&&e.y<100){var t=new Date(-1,e.m,e.d,e.H,e.M,e.S,e.L);return t.setFullYear(e.y),t}return new Date(e.y,e.m,e.d,e.H,e.M,e.S,e.L)}function utcDate(e){if(0<=e.y&&e.y<100){var t=new Date(Date.UTC(-1,e.m,e.d,e.H,e.M,e.S,e.L));return t.setUTCFullYear(e.y),t}return new Date(Date.UTC(e.y,e.m,e.d,e.H,e.M,e.S,e.L))}function newDate(e,t,r){return{y:e,m:t,d:r,H:0,M:0,S:0,L:0}}function formatLocale(e){var t=e.dateTime,r=e.date,n=e.time,o=e.periods,i=e.days,s=e.shortDays,A=e.months,a=e.shortMonths,c=formatRe(o),u=formatLookup(o),l=formatRe(i),d=formatLookup(i),g=formatRe(s),h=formatLookup(s),p=formatRe(A),E=formatLookup(A),C=formatRe(a),f=formatLookup(a),B={a:function(e){return s[e.getDay()]},A:function(e){return i[e.getDay()]},b:function(e){return a[e.getMonth()]},B:function(e){return A[e.getMonth()]},c:null,d:formatDayOfMonth,e:formatDayOfMonth,f:formatMicroseconds,g:formatYearISO,G:formatFullYearISO,H:formatHour24,I:formatHour12,j:formatDayOfYear,L:formatMilliseconds,m:formatMonthNumber,M:formatMinutes,p:function(e){return o[+(e.getHours()>=12)]},q:function(e){return 1+~~(e.getMonth()/3)},Q:formatUnixTimestamp,s:formatUnixTimestampSeconds,S:formatSeconds,u:formatWeekdayNumberMonday,U:formatWeekNumberSunday,V:formatWeekNumberISO,w:formatWeekdayNumberSunday,W:formatWeekNumberMonday,x:null,X:null,y:formatYear,Y:formatFullYear,Z:formatZone,"%":formatLiteralPercent},Q={a:function(e){return s[e.getUTCDay()]},A:function(e){return i[e.getUTCDay()]},b:function(e){return a[e.getUTCMonth()]},B:function(e){return A[e.getUTCMonth()]},c:null,d:formatUTCDayOfMonth,e:formatUTCDayOfMonth,f:formatUTCMicroseconds,g:formatUTCYearISO,G:formatUTCFullYearISO,H:formatUTCHour24,I:formatUTCHour12,j:formatUTCDayOfYear,L:formatUTCMilliseconds,m:formatUTCMonthNumber,M:formatUTCMinutes,p:function(e){return o[+(e.getUTCHours()>=12)]},q:function(e){return 1+~~(e.getUTCMonth()/3)},Q:formatUnixTimestamp,s:formatUnixTimestampSeconds,S:formatUTCSeconds,u:formatUTCWeekdayNumberMonday,U:formatUTCWeekNumberSunday,V:formatUTCWeekNumberISO,w:formatUTCWeekdayNumberSunday,W:formatUTCWeekNumberMonday,x:null,X:null,y:formatUTCYear,Y:formatUTCFullYear,Z:formatUTCZone,"%":formatLiteralPercent},I={a:function(e,t,r){var n=g.exec(t.slice(r));return n?(e.w=h[n[0].toLowerCase()],r+n[0].length):-1},A:function(e,t,r){var n=l.exec(t.slice(r));return n?(e.w=d[n[0].toLowerCase()],r+n[0].length):-1},b:function(e,t,r){var n=C.exec(t.slice(r));return n?(e.m=f[n[0].toLowerCase()],r+n[0].length):-1},B:function(e,t,r){var n=p.exec(t.slice(r));return n?(e.m=E[n[0].toLowerCase()],r+n[0].length):-1},c:function(e,r,n){return m(e,t,r,n)},d:parseDayOfMonth,e:parseDayOfMonth,f:parseMicroseconds,g:parseYear,G:parseFullYear,H:parseHour24,I:parseHour24,j:parseDayOfYear,L:parseMilliseconds,m:parseMonthNumber,M:parseMinutes,p:function(e,t,r){var n=c.exec(t.slice(r));return n?(e.p=u[n[0].toLowerCase()],r+n[0].length):-1},q:parseQuarter,Q:parseUnixTimestamp,s:parseUnixTimestampSeconds,S:parseSeconds,u:parseWeekdayNumberMonday,U:parseWeekNumberSunday,V:parseWeekNumberISO,w:parseWeekdayNumberSunday,W:parseWeekNumberMonday,x:function(e,t,n){return m(e,r,t,n)},X:function(e,t,r){return m(e,n,t,r)},y:parseYear,Y:parseFullYear,Z:parseZone,"%":parseLiteralPercent};function y(e,t){return function(r){var n,o,i,s=[],A=-1,a=0,c=e.length;for(r instanceof Date||(r=new Date(+r));++A<c;)37===e.charCodeAt(A)&&(s.push(e.slice(a,A)),null!=(o=pads[n=e.charAt(++A)])?n=e.charAt(++A):o="e"===n?" ":"0",(i=t[n])&&(n=i(r,o)),s.push(n),a=A+1);return s.push(e.slice(a,A)),s.join("")}}function b(e,t){return function(r){var n,o,i=newDate(1900,void 0,1);if(m(i,e,r+="",0)!=r.length)return null;if("Q"in i)return new Date(i.Q);if("s"in i)return new Date(1e3*i.s+("L"in i?i.L:0));if(t&&!("Z"in i)&&(i.Z=0),"p"in i&&(i.H=i.H%12+12*i.p),void 0===i.m&&(i.m="q"in i?i.q:0),"V"in i){if(i.V<1||i.V>53)return null;"w"in i||(i.w=1),"Z"in i?(o=(n=utcDate(newDate(i.y,0,1))).getUTCDay(),n=o>4||0===o?utcMonday.ceil(n):utcMonday(n),n=utcDay$1.offset(n,7*(i.V-1)),i.y=n.getUTCFullYear(),i.m=n.getUTCMonth(),i.d=n.getUTCDate()+(i.w+6)%7):(o=(n=localDate(newDate(i.y,0,1))).getDay(),n=o>4||0===o?monday.ceil(n):monday(n),n=timeDay.offset(n,7*(i.V-1)),i.y=n.getFullYear(),i.m=n.getMonth(),i.d=n.getDate()+(i.w+6)%7)}else("W"in i||"U"in i)&&("w"in i||(i.w="u"in i?i.u%7:"W"in i?1:0),o="Z"in i?utcDate(newDate(i.y,0,1)).getUTCDay():localDate(newDate(i.y,0,1)).getDay(),i.m=0,i.d="W"in i?(i.w+6)%7+7*i.W-(o+5)%7:i.w+7*i.U-(o+6)%7);return"Z"in i?(i.H+=i.Z/100|0,i.M+=i.Z%100,utcDate(i)):localDate(i)}}function m(e,t,r,n){for(var o,i,s=0,A=t.length,a=r.length;s<A;){if(n>=a)return-1;if(37===(o=t.charCodeAt(s++))){if(o=t.charAt(s++),!(i=I[o in pads?t.charAt(s++):o])||(n=i(e,r,n))<0)return-1}else if(o!=r.charCodeAt(n++))return-1}return n}return B.x=y(r,B),B.X=y(n,B),B.c=y(t,B),Q.x=y(r,Q),Q.X=y(n,Q),Q.c=y(t,Q),{format:function(e){var t=y(e+="",B);return t.toString=function(){return e},t},parse:function(e){var t=b(e+="",!1);return t.toString=function(){return e},t},utcFormat:function(e){var t=y(e+="",Q);return t.toString=function(){return e},t},utcParse:function(e){var t=b(e+="",!0);return t.toString=function(){return e},t}}}utcYear.range;var locale,utcFormat,utcParse,pads={"-":"",_:" ",0:"0"},numberRe=/^\s*\d+/,percentRe=/^%/,requoteRe=/[\\^$*+?|[\]().{}]/g;function pad(e,t,r){var n=e<0?"-":"",o=(n?-e:e)+"",i=o.length;return n+(i<r?new Array(r-i+1).join(t)+o:o)}function requote(e){return e.replace(requoteRe,"\\$&")}function formatRe(e){return new RegExp("^(?:"+e.map(requote).join("|")+")","i")}function formatLookup(e){for(var t={},r=-1,n=e.length;++r<n;)t[e[r].toLowerCase()]=r;return t}function parseWeekdayNumberSunday(e,t,r){var n=numberRe.exec(t.slice(r,r+1));return n?(e.w=+n[0],r+n[0].length):-1}function parseWeekdayNumberMonday(e,t,r){var n=numberRe.exec(t.slice(r,r+1));return n?(e.u=+n[0],r+n[0].length):-1}function parseWeekNumberSunday(e,t,r){var n=numberRe.exec(t.slice(r,r+2));return n?(e.U=+n[0],r+n[0].length):-1}function parseWeekNumberISO(e,t,r){var n=numberRe.exec(t.slice(r,r+2));return n?(e.V=+n[0],r+n[0].length):-1}function parseWeekNumberMonday(e,t,r){var n=numberRe.exec(t.slice(r,r+2));return n?(e.W=+n[0],r+n[0].length):-1}function parseFullYear(e,t,r){var n=numberRe.exec(t.slice(r,r+4));return n?(e.y=+n[0],r+n[0].length):-1}function parseYear(e,t,r){var n=numberRe.exec(t.slice(r,r+2));return n?(e.y=+n[0]+(+n[0]>68?1900:2e3),r+n[0].length):-1}function parseZone(e,t,r){var n=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(r,r+6));return n?(e.Z=n[1]?0:-(n[2]+(n[3]||"00")),r+n[0].length):-1}function parseQuarter(e,t,r){var n=numberRe.exec(t.slice(r,r+1));return n?(e.q=3*n[0]-3,r+n[0].length):-1}function parseMonthNumber(e,t,r){var n=numberRe.exec(t.slice(r,r+2));return n?(e.m=n[0]-1,r+n[0].length):-1}function parseDayOfMonth(e,t,r){var n=numberRe.exec(t.slice(r,r+2));return n?(e.d=+n[0],r+n[0].length):-1}function parseDayOfYear(e,t,r){var n=numberRe.exec(t.slice(r,r+3));return n?(e.m=0,e.d=+n[0],r+n[0].length):-1}function parseHour24(e,t,r){var n=numberRe.exec(t.slice(r,r+2));return n?(e.H=+n[0],r+n[0].length):-1}function parseMinutes(e,t,r){var n=numberRe.exec(t.slice(r,r+2));return n?(e.M=+n[0],r+n[0].length):-1}function parseSeconds(e,t,r){var n=numberRe.exec(t.slice(r,r+2));return n?(e.S=+n[0],r+n[0].length):-1}function parseMilliseconds(e,t,r){var n=numberRe.exec(t.slice(r,r+3));return n?(e.L=+n[0],r+n[0].length):-1}function parseMicroseconds(e,t,r){var n=numberRe.exec(t.slice(r,r+6));return n?(e.L=Math.floor(n[0]/1e3),r+n[0].length):-1}function parseLiteralPercent(e,t,r){var n=percentRe.exec(t.slice(r,r+1));return n?r+n[0].length:-1}function parseUnixTimestamp(e,t,r){var n=numberRe.exec(t.slice(r));return n?(e.Q=+n[0],r+n[0].length):-1}function parseUnixTimestampSeconds(e,t,r){var n=numberRe.exec(t.slice(r));return n?(e.s=+n[0],r+n[0].length):-1}function formatDayOfMonth(e,t){return pad(e.getDate(),t,2)}function formatHour24(e,t){return pad(e.getHours(),t,2)}function formatHour12(e,t){return pad(e.getHours()%12||12,t,2)}function formatDayOfYear(e,t){return pad(1+timeDay.count(timeYear(e),e),t,3)}function formatMilliseconds(e,t){return pad(e.getMilliseconds(),t,3)}function formatMicroseconds(e,t){return formatMilliseconds(e,t)+"000"}function formatMonthNumber(e,t){return pad(e.getMonth()+1,t,2)}function formatMinutes(e,t){return pad(e.getMinutes(),t,2)}function formatSeconds(e,t){return pad(e.getSeconds(),t,2)}function formatWeekdayNumberMonday(e){var t=e.getDay();return 0===t?7:t}function formatWeekNumberSunday(e,t){return pad(sunday.count(timeYear(e)-1,e),t,2)}function dISO(e){var t=e.getDay();return t>=4||0===t?thursday(e):thursday.ceil(e)}function formatWeekNumberISO(e,t){return e=dISO(e),pad(thursday.count(timeYear(e),e)+(4===timeYear(e).getDay()),t,2)}function formatWeekdayNumberSunday(e){return e.getDay()}function formatWeekNumberMonday(e,t){return pad(monday.count(timeYear(e)-1,e),t,2)}function formatYear(e,t){return pad(e.getFullYear()%100,t,2)}function formatYearISO(e,t){return pad((e=dISO(e)).getFullYear()%100,t,2)}function formatFullYear(e,t){return pad(e.getFullYear()%1e4,t,4)}function formatFullYearISO(e,t){var r=e.getDay();return pad((e=r>=4||0===r?thursday(e):thursday.ceil(e)).getFullYear()%1e4,t,4)}function formatZone(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+pad(t/60|0,"0",2)+pad(t%60,"0",2)}function formatUTCDayOfMonth(e,t){return pad(e.getUTCDate(),t,2)}function formatUTCHour24(e,t){return pad(e.getUTCHours(),t,2)}function formatUTCHour12(e,t){return pad(e.getUTCHours()%12||12,t,2)}function formatUTCDayOfYear(e,t){return pad(1+utcDay$1.count(utcYear$1(e),e),t,3)}function formatUTCMilliseconds(e,t){return pad(e.getUTCMilliseconds(),t,3)}function formatUTCMicroseconds(e,t){return formatUTCMilliseconds(e,t)+"000"}function formatUTCMonthNumber(e,t){return pad(e.getUTCMonth()+1,t,2)}function formatUTCMinutes(e,t){return pad(e.getUTCMinutes(),t,2)}function formatUTCSeconds(e,t){return pad(e.getUTCSeconds(),t,2)}function formatUTCWeekdayNumberMonday(e){var t=e.getUTCDay();return 0===t?7:t}function formatUTCWeekNumberSunday(e,t){return pad(utcSunday.count(utcYear$1(e)-1,e),t,2)}function UTCdISO(e){var t=e.getUTCDay();return t>=4||0===t?utcThursday(e):utcThursday.ceil(e)}function formatUTCWeekNumberISO(e,t){return e=UTCdISO(e),pad(utcThursday.count(utcYear$1(e),e)+(4===utcYear$1(e).getUTCDay()),t,2)}function formatUTCWeekdayNumberSunday(e){return e.getUTCDay()}function formatUTCWeekNumberMonday(e,t){return pad(utcMonday.count(utcYear$1(e)-1,e),t,2)}function formatUTCYear(e,t){return pad(e.getUTCFullYear()%100,t,2)}function formatUTCYearISO(e,t){return pad((e=UTCdISO(e)).getUTCFullYear()%100,t,2)}function formatUTCFullYear(e,t){return pad(e.getUTCFullYear()%1e4,t,4)}function formatUTCFullYearISO(e,t){var r=e.getUTCDay();return pad((e=r>=4||0===r?utcThursday(e):utcThursday.ceil(e)).getUTCFullYear()%1e4,t,4)}function formatUTCZone(){return"+0000"}function formatLiteralPercent(){return"%"}function formatUnixTimestamp(e){return+e}function formatUnixTimestampSeconds(e){return Math.floor(+e/1e3)}function defaultLocale(e){return(locale=formatLocale(e)).format,locale.parse,utcFormat=locale.utcFormat,utcParse=locale.utcParse,locale}defaultLocale({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});var ECLGraph=function(e){function t(t,r,n){var o=e.call(this)||this;o.wu=t;for(var i=0,s=0,A=n;s<A.length;s++){var a=A[s];if(a.GraphName===r.Name&&!a.HasSubGraphId){i=Math.round(1e3*a.Seconds)/1e3;break}}return o.set(__assign({Time:i},r)),o}return __extends(t,e),Object.defineProperty(t.prototype,"properties",{get:function(){return this.get()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Name",{get:function(){return this.get("Name")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Label",{get:function(){return this.get("Label")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Type",{get:function(){return this.get("Type")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Complete",{get:function(){return this.get("Complete")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"WhenStarted",{get:function(){return this.get("WhenStarted")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"WhenFinished",{get:function(){return this.get("WhenFinished")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Time",{get:function(){return this.get("Time")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Running",{get:function(){return this.get("Running")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"RunningId",{get:function(){return this.get("RunningId")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Failed",{get:function(){return this.get("Failed")},enumerable:!1,configurable:!0}),t.prototype.fetchScopeGraph=function(e){return e?this.wu.fetchGraphDetails([e],["subgraph"]).then((function(e){return createGraph(e)})):this.wu.fetchGraphDetails([this.Name],["graph"]).then((function(e){return createGraph(e)}))},t}(util$m.StateObject),GraphCache=function(e){function t(){return e.call(this,(function(e){return util$m.Cache.hash([e.Name])}))||this}return __extends(t,e),t}(util$m.Cache);function walkXmlJson$1(e,t,r){(r=r||[]).push(e),t(e.name,e.$,e.children(),r),e.children().forEach((function(e){walkXmlJson$1(e,t,r)})),r.pop()}function flattenAtt(e){var t={};return e.forEach((function(e){"att"===e.name&&(t[e.$.name]=e.$.value)})),t}var XGMMLGraph=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends(t,e),t}(util$m.Graph),XGMMLSubgraph=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends(t,e),t}(util$m.Subgraph),XGMMLVertex=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends(t,e),t}(util$m.Vertex),XGMMLEdge=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends(t,e),t}(util$m.Edge);function createXGMMLGraph(e,t){var r={},n={},o={},i=new XGMMLGraph((function(e){return e._.id})),s=[i.root];return walkXmlJson$1(t,(function(e,t,i,A){var a=s[s.length-1];switch(e){case"graph":break;case"node":if(i.length&&i[0].children().length&&"graph"===i[0].children()[0].name){var c=a.createSubgraph(flattenAtt(i));s.push(c),r[t.id]=c}var u=a.createVertex(flattenAtt(i));n[t.id]=u;break;case"edge":var l=a.createEdge(n[t.source],n[t.target],flattenAtt(i));o[t.id]=l}})),i}var ScopeGraph=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends(t,e),t}(util$m.Graph),ScopeSubgraph=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends(t,e),t}(util$m.Subgraph),ScopeVertex=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends(t,e),t}(util$m.Vertex),ScopeEdge=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends(t,e),t}(util$m.Edge);function createGraph(e){for(var t,r={},n={},o={},i=0,s=e;i<s.length;i++){switch((d=s[i]).ScopeType){case"graph":t=new ScopeGraph((function(e){return e._.Id}),d),r[d.ScopeName]=t.root;break;case"subgraph":t||(t=new ScopeGraph((function(e){return e._.Id}),d),r[d.ScopeName]=t.root);for(var A=d.parentScope().split(":"),a=r[d.parentScope()];A.length&&!a;)a=r[A.join(":")],A.pop();if(a){var c=a;r[d.ScopeName]=c.createSubgraph(d)}else console.warn("Missing SG:Parent (".concat(d.Id,"): ").concat(d.parentScope()));break;case"activity":var u=r[d.parentScope()];u?o[d.ScopeName]=u.createVertex(d):console.warn("Missing A:Parent (".concat(d.Id,"): ").concat(d.parentScope()));break;case"edge":n[d.ScopeName]=d;break;case"function":(g=o[d.parentScope()])?g._.children().push(d):console.warn("Missing F:Parent (".concat(d.Id,"): ").concat(d.parentScope()))}}for(var l in n){var d,g;if(g=r[(d=n[l]).parentScope()]){var h=g;try{var p=t.vertex(d.attr("IdSource").RawValue),E=t.vertex(d.attr("IdTarget").RawValue);h.createEdge(p,E,d)}catch(e){console.warn("Invalid Edge: ".concat(l))}}else console.warn("Missing E:Parent (".concat(d.Id,"): ").concat(d.parentScope()))}return t}var Resource=function(e){function t(t,r){var n=e.call(this)||this;n.wu=t;var o=r.split("\\").join("/"),i=o.split("/"),s="res/"+n.wu.Wuid+"/",A="",a="";return 0===o.indexOf(s)&&(A=o.substr(s.length),a=i[i.length-1]),n.set({URL:r,DisplayName:a,DisplayPath:A}),n}return __extends(t,e),Object.defineProperty(t.prototype,"properties",{get:function(){return this.get()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"URL",{get:function(){return this.get("URL")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"DisplayName",{get:function(){return this.get("DisplayName")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"DisplayPath",{get:function(){return this.get("DisplayPath")},enumerable:!1,configurable:!0}),t}(util$m.StateObject),XSDNode=function(){function e(e){this.e=e}return e.prototype.fix=function(){delete this.e},e}(),XSDXMLNode=function(e){function t(t){var r=e.call(this,t)||this;return r.isSet=!1,r.attrs={},r._children=[],r}return __extends(t,e),t.prototype.append=function(e){this._children.push(e),this.type||(this.type="hpcc:childDataset")},t.prototype.fix=function(){var e;this.name=this.e.$.name,this.type=this.e.$.type;for(var t=this._children.length-1;t>=0;--t){var r=this._children[t];"Row"===r.name&&void 0===r.type&&((e=this._children).push.apply(e,r._children),this._children.splice(t,1))}var n=this.setOfType();n&&(this.type=n,this.isSet=!0,this._children=[])},t.prototype.children=function(){return this._children},t.prototype.isAll=function(e){return"All"===e.name&&void 0===e.type},t.prototype.setOfType=function(){var e=this.children();if(void 0===this.type&&2===e.length){if(this.isAll(e[0]))return e[1].type;if(this.isAll(e[1]))return e[0].type}},t.prototype.charWidth=function(){var e=-1;switch(this.type){case"xs:boolean":e=5;break;case"xs:integer":case"xs:nonNegativeInteger":case"xs:double":e=8;break;case"xs:string":e=32;break;default:for(var t=this.type.lastIndexOf("_"),r=t>0?t:this.type.length,n=r-1;n>=0&&-1!=="0123456789".indexOf(this.type.charAt(n));--n);n+1<r&&(e=parseInt(this.type.substring(n+1,r),10)),0===this.type.indexOf("data")&&(e*=2)}return e<this.name.length&&(e=this.name.length),e},t}(XSDNode),XSDSimpleType=function(e){function t(t){return e.call(this,t)||this}return __extends(t,e),t.prototype.append=function(e){switch(e.name){case"xs:restriction":this._restricition=e;break;case"xs:maxLength":this._maxLength=e}},t.prototype.fix=function(){this.name=this.e.$.name,this.type=this._restricition.$.base,this.maxLength=this._maxLength?+this._maxLength.$.value:void 0,delete this._restricition,delete this._maxLength,e.prototype.fix.call(this)},t}(XSDNode),XSDSchema=function(){function e(){this.simpleTypes={}}return e.prototype.fields=function(){return this.root.children()},e}(),XSDParser=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.schema=new XSDSchema,t.simpleTypes={},t.xsdStack=new util$m.Stack,t}return __extends(t,e),t.prototype.startXMLNode=function(t){switch(e.prototype.startXMLNode.call(this,t),t.name){case"xs:element":var r=new XSDXMLNode(t);this.schema.root?this.xsdStack.depth()&&this.xsdStack.top().append(r):this.schema.root=r,this.xsdStack.push(r);break;case"xs:simpleType":this.simpleType=new XSDSimpleType(t)}},t.prototype.endXMLNode=function(t){switch(t.name){case"xs:element":this.xsdStack.pop().fix();break;case"xs:simpleType":this.simpleType.fix(),this.simpleTypes[this.simpleType.name]=this.simpleType,delete this.simpleType;break;case"xs:appinfo":var r=this.xsdStack.top();for(var n in t.$)r.attrs[n]=t.$[n];break;default:this.simpleType&&this.simpleType.append(t)}e.prototype.endXMLNode.call(this,t)},t}(util$m.SAXStackParser);function parseXSD(e){var t=new XSDParser;return t.parse(e),t.schema}var XSDParser2=function(e){function t(t){var r=e.call(this)||this;return r.schema=new XSDSchema,r.simpleTypes={},r.xsdStack=new util$m.Stack,r._rootName=t,r}return __extends(t,e),t.prototype.startXMLNode=function(t){switch(e.prototype.startXMLNode.call(this,t),t.name){case"xsd:element":var r=new XSDXMLNode(t);this.schema.root||this._rootName!==t.$.name||(this.schema.root=r),this.xsdStack.depth()&&this.xsdStack.top().append(r),this.xsdStack.push(r);break;case"xsd:simpleType":this.simpleType=new XSDSimpleType(t)}},t.prototype.endXMLNode=function(t){"xsd:element"===t.name&&this.xsdStack.pop().fix();e.prototype.endXMLNode.call(this,t)},t}(XSDParser);function parseXSD2(e,t){var r=new XSDParser2(t);return r.parse(e),r.schema}var GlobalResultCache=function(e){function t(){return e.call(this,(function(e){return"".concat(e.BaseUrl,"-").concat(e.Wuid,"-").concat(e.ResultName)}))||this}return __extends(t,e),t}(util$m.Cache),_results=new GlobalResultCache,Result=function(e){function t(t,r,n,o){var i=e.call(this)||this;return i.connection=t instanceof WorkunitsService?t:new WorkunitsService(t),"boolean"==typeof o&&!0===o?i.set({NodeGroup:r,LogicalFileName:n}):isECLResult(n)&&Array.isArray(o)?i.set(__assign(__assign({},n),{Wuid:r,ResultName:n.Name,ResultViews:o})):void 0===o?"number"==typeof n?i.set({Wuid:r,ResultSequence:n}):"string"==typeof n?i.set({Wuid:r,ResultName:n}):console.warn("Unknown Result.attach (1)"):console.warn("Unknown Result.attach (2)"),i}return __extends(t,e),Object.defineProperty(t.prototype,"BaseUrl",{get:function(){return this.connection.baseUrl},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"properties",{get:function(){return this.get()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Wuid",{get:function(){return this.get("Wuid")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ResultName",{get:function(){return this.get("ResultName")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ResultSequence",{get:function(){return this.get("ResultSequence")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"LogicalFileName",{get:function(){return this.get("LogicalFileName")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Name",{get:function(){return this.get("Name")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Sequence",{get:function(){return this.get("Sequence")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Value",{get:function(){return this.get("Value")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Link",{get:function(){return this.get("Link")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"FileName",{get:function(){return this.get("FileName")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"IsSupplied",{get:function(){return this.get("IsSupplied")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ShowFileContent",{get:function(){return this.get("ShowFileContent")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Total",{get:function(){return this.get("Total")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ECLSchemas",{get:function(){return this.get("ECLSchemas")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"NodeGroup",{get:function(){return this.get("NodeGroup")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ResultViews",{get:function(){return this.get("ResultViews")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"XmlSchema",{get:function(){return this.get("XmlSchema")},enumerable:!1,configurable:!0}),t.attach=function(e,r,n,o){var i;return Array.isArray(o)?(i=_results.get({BaseUrl:e.baseUrl,Wuid:r,ResultName:n.Name},(function(){return new t(e,r,n,o)}))).set(n):void 0===o&&("number"==typeof n?i=_results.get({BaseUrl:e.baseUrl,Wuid:r,ResultName:"Sequence_"+n},(function(){return new t(e,r,n)})):"string"==typeof n&&(i=_results.get({BaseUrl:e.baseUrl,Wuid:r,ResultName:n},(function(){return new t(e,r,n)})))),i},t.attachLogicalFile=function(e,r,n){return _results.get({BaseUrl:e.baseUrl,Wuid:r,ResultName:n},(function(){return new t(e,r,n,!0)}))},t.prototype.isComplete=function(){return-1!==this.Total},t.prototype.fetchXMLSchema=function(e){var t=this;return void 0===e&&(e=!1),this._fetchXMLSchemaPromise&&!e||(this._fetchXMLSchemaPromise=this.WUResult().then((function(e){return util$m.exists("Result.XmlSchema.xml",e)?(t.xsdSchema=parseXSD(e.Result.XmlSchema.xml),t.xsdSchema):null}))),this._fetchXMLSchemaPromise},t.prototype.refresh=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){switch(e.label){case 0:return[4,this.fetchRows(0,1,!0)];case 1:return e.sent(),[2,this]}}))}))},t.prototype.fetchRows=function(e,t,r,n,o){var i=this;return void 0===e&&(e=0),void 0===t&&(t=-1),void 0===r&&(r=!1),void 0===n&&(n={}),this.WUResult(e,t,!r,n,o).then((function(e){var t=e.Result;return delete e.Result,i.set(__assign({},e)),util$m.exists("XmlSchema.xml",t)&&(i.xsdSchema=parseXSD(t.XmlSchema.xml)),util$m.exists("Row",t)?t.Row:i.ResultName&&util$m.exists(i.ResultName,t)?t[i.ResultName].Row:[]}))},t.prototype.rootField=function(){return this.xsdSchema?this.xsdSchema.root:null},t.prototype.fields=function(){return this.xsdSchema?this.xsdSchema.root.children():[]},t.prototype.WUResult=function(e,t,r,n,o){void 0===e&&(e=0),void 0===t&&(t=1),void 0===r&&(r=!1),void 0===n&&(n={});var i={NamedValue:{itemcount:0}};for(var s in n)i.NamedValue[i.NamedValue.itemcount++]={Name:s,Value:n[s]};var A={FilterBy:i};return this.Wuid&&void 0!==this.ResultName?(A.Wuid=this.Wuid,A.ResultName=this.ResultName):this.Wuid&&void 0!==this.ResultSequence?(A.Wuid=this.Wuid,A.Sequence=this.ResultSequence):this.LogicalFileName&&this.NodeGroup?(A.LogicalName=this.LogicalFileName,A.Cluster=this.NodeGroup):this.LogicalFileName&&(A.LogicalName=this.LogicalFileName),A.Start=e,A.Count=t,A.SuppressXmlSchema=r,this.connection.WUResult(A,o).then((function(e){return e}))},t}(util$m.StateObject),ResultCache=function(e){function t(){return e.call(this,(function(e){return util$m.Cache.hash([e.Sequence,e.Name,e.Value,e.FileName])}))||this}return __extends(t,e),t}(util$m.Cache),Attribute=function(e){function t(t,r){var n=e.call(this)||this;return n.scope=t,n.set(r),n}return __extends(t,e),Object.defineProperty(t.prototype,"properties",{get:function(){return this.get()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Name",{get:function(){return this.get("Name")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"RawValue",{get:function(){return this.get("RawValue")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Formatted",{get:function(){return this.get("Formatted")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"FormattedEnd",{get:function(){return this.get("FormattedEnd")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Measure",{get:function(){return this.get("Measure")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Creator",{get:function(){return this.get("Creator")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"CreatorType",{get:function(){return this.get("CreatorType")},enumerable:!1,configurable:!0}),t}(util$m.StateObject),BaseScope=function(e){function t(t){var r=e.call(this)||this;return r._attributeMap={},r._children=[],r.update(t),r}return __extends(t,e),Object.defineProperty(t.prototype,"properties",{get:function(){return this.get()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ScopeName",{get:function(){return this.get("ScopeName")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Id",{get:function(){return this.get("Id")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ScopeType",{get:function(){return this.get("ScopeType")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Properties",{get:function(){return this.get("Properties",{Property:[]})},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Notes",{get:function(){return this.get("Notes",{Note:[]})},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"CAttributes",{get:function(){var e=this,t=[],r={start:null,end:null};return this.Properties.Property.forEach((function(n){"ts"===n.Measure&&n.Name.indexOf("Started")>=0?r.start=n:e.ScopeName&&"ts"===n.Measure&&n.Name.indexOf("Finished")>=0?r.end=n:t.push(new Attribute(e,n))})),r.start&&r.end?(r.start.FormattedEnd=r.end.Formatted,t.push(new Attribute(this,r.start))):r.start?t.push(new Attribute(this,r.start)):r.end&&t.push(new Attribute(this,r.end)),t},enumerable:!1,configurable:!0}),t.prototype.update=function(e){var t=this;for(var r in this.set(e),this.CAttributes.forEach((function(e){t._attributeMap[e.Name]=e})),this.Properties.Property=[],this._attributeMap)this._attributeMap.hasOwnProperty(r)&&this.Properties.Property.push(this._attributeMap[r].properties)},t.prototype.parentScope=function(){var e=this.ScopeName.split(":");return e.pop(),e.join(":")},t.prototype.children=function(e){return arguments.length?(this._children=e,this):this._children},t.prototype.walk=function(e){if(e.start(this))return!0;for(var t=0,r=this.children();t<r.length;t++){if(r[t].walk(e))return!0}return e.end(this)},t.prototype.formattedAttrs=function(){var e={};for(var t in this._attributeMap)e[t]=this._attributeMap[t].Formatted||this._attributeMap[t].RawValue;return e},t.prototype.rawAttrs=function(){var e={};for(var t in this._attributeMap)e[t]=this._attributeMap[t].RawValue;return e},t.prototype.hasAttr=function(e){return void 0!==this._attributeMap[e]},t.prototype.attr=function(e){return this._attributeMap[e]||new Attribute(this,{Creator:"",CreatorType:"",Formatted:"",Measure:"",Name:"",RawValue:""})},t.prototype.attrMeasure=function(e){return this._attributeMap[e].Measure},t.prototype.calcTooltip=function(e){var t="",r=[];t=this.Id,r.push('<tr><td class="key">ID:</td><td class="value">'.concat(this.Id,"</td></tr>")),e&&r.push('<tr><td class="key">Parent ID:</td><td class="value">'.concat(e.Id,"</td></tr>")),r.push('<tr><td class="key">Scope:</td><td class="value">'.concat(this.ScopeName,"</td></tr>"));var n=this.formattedAttrs();for(var o in n)"Label"===o?t=n[o]:r.push('<tr><td class="key">'.concat(o,'</td><td class="value">').concat(n[o],"</td></tr>"));return'<div class="eclwatch_WUGraph_Tooltip" style="max-width:480px">\n <h4 align="center">'.concat(t,"</h4>\n <table>\n ").concat(r.join(""),"\n </table>\n </div>")},t}(util$m.StateObject),Scope=function(e){function t(t,r){var n=e.call(this,r)||this;return n.wu=t,n}return __extends(t,e),t}(BaseScope),SourceFile=function(e){function t(t,r,n){var o=e.call(this)||this;return o.connection=t instanceof WorkunitsService?t:new WorkunitsService(t),o.set(__assign({Wuid:r},n)),o}return __extends(t,e),Object.defineProperty(t.prototype,"properties",{get:function(){return this.get()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Wuid",{get:function(){return this.get("Wuid")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"FileCluster",{get:function(){return this.get("FileCluster")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Name",{get:function(){return this.get("Name")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"IsSuperFile",{get:function(){return this.get("IsSuperFile")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Subs",{get:function(){return this.get("Subs")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Count",{get:function(){return this.get("Count")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ECLSourceFiles",{get:function(){return this.get("ECLSourceFiles")},enumerable:!1,configurable:!0}),t}(util$m.StateObject),Timer=function(e){function t(t,r,n){var o=e.call(this)||this;o.connection=t instanceof WorkunitsService?t:new WorkunitsService(t);var i=util$m.espTime2Seconds(n.Value);return o.set(__assign({Wuid:r,Seconds:Math.round(1e3*i)/1e3,HasSubGraphId:void 0!==n.SubGraphId},n)),o}return __extends(t,e),Object.defineProperty(t.prototype,"properties",{get:function(){return this.get()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Wuid",{get:function(){return this.get("Wuid")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Name",{get:function(){return this.get("Name")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Value",{get:function(){return this.get("Value")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Seconds",{get:function(){return this.get("Seconds")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"GraphName",{get:function(){return this.get("GraphName")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"SubGraphId",{get:function(){return this.get("SubGraphId")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"HasSubGraphId",{get:function(){return this.get("HasSubGraphId")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"count",{get:function(){return this.get("count")},enumerable:!1,configurable:!0}),t}(util$m.StateObject),formatter=utcFormat("%Y-%m-%dT%H:%M:%S.%LZ"),parser=utcParse("%Y-%m-%dT%H:%M:%S.%LZ"),d3FormatNum=format(",");function formatNum(e){return e&&!isNaN(+e)?d3FormatNum(+e):e}var _activity,logger$3=util$m.scopedLogger("workunit.ts"),WUStateID=exports.WUStateID,WorkunitCache=function(e){function t(){return e.call(this,(function(e){return"".concat(e.BaseUrl,"-").concat(e.Wuid)}))||this}return __extends(t,e),t}(util$m.Cache),_workunits$1=new WorkunitCache,Workunit=function(e){function t(t,r){var n=e.call(this)||this;return n._debugMode=!1,n._resultCache=new ResultCache,n._graphCache=new GraphCache,n.connection=new WorkunitsService(t),n.topologyConnection=new TopologyService(t),n.clearState(r),n}return __extends(t,e),Object.defineProperty(t.prototype,"BaseUrl",{get:function(){return this.connection.baseUrl},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"properties",{get:function(){return this.get()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Wuid",{get:function(){return this.get("Wuid")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Owner",{get:function(){return this.get("Owner","")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Cluster",{get:function(){return this.get("Cluster","")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Jobname",{get:function(){return this.get("Jobname","")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Description",{get:function(){return this.get("Description","")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ActionEx",{get:function(){return this.get("ActionEx","")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"StateID",{get:function(){return this.get("StateID",exports.WUStateID.Unknown)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"State",{get:function(){return this.get("State")||exports.WUStateID[this.StateID]},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Protected",{get:function(){return this.get("Protected",!1)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Exceptions",{get:function(){return this.get("Exceptions",{ECLException:[]})},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ResultViews",{get:function(){return this.get("ResultViews",{View:[]})},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ResultCount",{get:function(){return this.get("ResultCount",0)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Results",{get:function(){return this.get("Results",{ECLResult:[]})},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"CResults",{get:function(){var e=this;return this.Results.ECLResult.map((function(t){return e._resultCache.get(t,(function(){return Result.attach(e.connection,e.Wuid,t,e.ResultViews.View)}))}))},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"SequenceResults",{get:function(){var e={};return this.CResults.forEach((function(t){e[t.Sequence]=t})),e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Timers",{get:function(){return this.get("Timers",{ECLTimer:[]})},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"CTimers",{get:function(){var e=this;return this.Timers.ECLTimer.map((function(t){return new Timer(e.connection,e.Wuid,t)}))},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"GraphCount",{get:function(){return this.get("GraphCount",0)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Graphs",{get:function(){return this.get("Graphs",{ECLGraph:[]})},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"CGraphs",{get:function(){var e=this;return this.Graphs.ECLGraph.map((function(t){return e._graphCache.get(t,(function(){return new ECLGraph(e,t,e.CTimers)}))}))},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ThorLogList",{get:function(){return this.get("ThorLogList")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ResourceURLCount",{get:function(){return this.get("ResourceURLCount",0)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ResourceURLs",{get:function(){return this.get("ResourceURLs",{URL:[]})},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"CResourceURLs",{get:function(){var e=this;return this.ResourceURLs.URL.map((function(t){return new Resource(e,t)}))},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"TotalClusterTime",{get:function(){return this.get("TotalClusterTime","")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"DateTimeScheduled",{get:function(){return this.get("DateTimeScheduled")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"IsPausing",{get:function(){return this.get("IsPausing")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ThorLCR",{get:function(){return this.get("ThorLCR")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ApplicationValues",{get:function(){return this.get("ApplicationValues",{ApplicationValue:[]})},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"HasArchiveQuery",{get:function(){return this.get("HasArchiveQuery")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"StateEx",{get:function(){return this.get("StateEx")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"PriorityClass",{get:function(){return this.get("PriorityClass")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"PriorityLevel",{get:function(){return this.get("PriorityLevel")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Snapshot",{get:function(){return this.get("Snapshot")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ResultLimit",{get:function(){return this.get("ResultLimit")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"EventSchedule",{get:function(){return this.get("EventSchedule")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"HaveSubGraphTimings",{get:function(){return this.get("HaveSubGraphTimings")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Query",{get:function(){return this.get("Query")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"HelpersCount",{get:function(){return this.get("HelpersCount",0)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Helpers",{get:function(){return this.get("Helpers",{ECLHelpFile:[]})},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"DebugValues",{get:function(){return this.get("DebugValues")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"AllowedClusters",{get:function(){return this.get("AllowedClusters")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ErrorCount",{get:function(){return this.get("ErrorCount",0)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"WarningCount",{get:function(){return this.get("WarningCount",0)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"InfoCount",{get:function(){return this.get("InfoCount",0)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"AlertCount",{get:function(){return this.get("AlertCount",0)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"SourceFileCount",{get:function(){return this.get("SourceFileCount",0)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"SourceFiles",{get:function(){return this.get("SourceFiles",{ECLSourceFile:[]})},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"CSourceFiles",{get:function(){var e=this;return this.SourceFiles.ECLSourceFile.map((function(t){return new SourceFile(e.connection,e.Wuid,t)}))},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"VariableCount",{get:function(){return this.get("VariableCount",0)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Variables",{get:function(){return this.get("Variables",{ECLResult:[]})},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"TimerCount",{get:function(){return this.get("TimerCount",0)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"HasDebugValue",{get:function(){return this.get("HasDebugValue")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ApplicationValueCount",{get:function(){return this.get("ApplicationValueCount",0)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"XmlParams",{get:function(){return this.get("XmlParams")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"AccessFlag",{get:function(){return this.get("AccessFlag")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ClusterFlag",{get:function(){return this.get("ClusterFlag")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ResultViewCount",{get:function(){return this.get("ResultViewCount",0)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"DebugValueCount",{get:function(){return this.get("DebugValueCount",0)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"WorkflowCount",{get:function(){return this.get("WorkflowCount",0)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Archived",{get:function(){return this.get("Archived")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"RoxieCluster",{get:function(){return this.get("RoxieCluster")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"DebugState",{get:function(){return this.get("DebugState",{})},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Queue",{get:function(){return this.get("Queue")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Active",{get:function(){return this.get("Active")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Action",{get:function(){return this.get("Action")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Scope",{get:function(){return this.get("Scope")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"AbortBy",{get:function(){return this.get("AbortBy")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"AbortTime",{get:function(){return this.get("AbortTime")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Workflows",{get:function(){return this.get("Workflows")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"TimingData",{get:function(){return this.get("TimingData")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"HelpersDesc",{get:function(){return this.get("HelpersDesc")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"GraphsDesc",{get:function(){return this.get("GraphsDesc")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"SourceFilesDesc",{get:function(){return this.get("SourceFilesDesc")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ResultsDesc",{get:function(){return this.get("ResultsDesc")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"VariablesDesc",{get:function(){return this.get("VariablesDesc")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"TimersDesc",{get:function(){return this.get("TimersDesc")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"DebugValuesDesc",{get:function(){return this.get("DebugValuesDesc")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ApplicationValuesDesc",{get:function(){return this.get("ApplicationValuesDesc")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"WorkflowsDesc",{get:function(){return this.get("WorkflowsDesc")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ServiceNames",{get:function(){return this.get("ServiceNames")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"CompileCost",{get:function(){return this.get("CompileCost")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ExecuteCost",{get:function(){return this.get("ExecuteCost")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"FileAccessCost",{get:function(){return this.get("FileAccessCost")},enumerable:!1,configurable:!0}),t.create=function(e){var r=new t(e);return r.connection.WUCreate().then((function(e){return _workunits$1.set(r),r.set(e.Workunit),r}))},t.attach=function(e,r,n){var o=_workunits$1.get({BaseUrl:e.baseUrl,Wuid:r},(function(){return new t(e,r)}));return n&&o.set(n),o},t.existsLocal=function(e,t){return _workunits$1.has({BaseUrl:e,Wuid:t})},t.submit=function(e,r,n,o){return void 0===o&&(o=!1),t.create(e).then((function(e){return e.update({QueryText:n})})).then((function(e){return o?e.submit(r,exports.WUUpdate.Action.Compile):e.submit(r)}))},t.compile=function(e,r,n){return t.submit(e,r,n,!0)},t.query=function(e,r){return new WorkunitsService(e).WUQuery(r).then((function(r){return r.Workunits.ECLWorkunit.map((function(r){return t.attach(e,r.Wuid,r)}))}))},t.prototype.clearState=function(e){this.clear({Wuid:e,StateID:WUStateID.Unknown})},t.prototype.update=function(e){var t=this;return this.connection.WUUpdate(__assign(__assign({},e),{Wuid:this.Wuid,StateOrig:this.State,JobnameOrig:this.Jobname,DescriptionOrig:this.Description,ProtectedOrig:this.Protected,ClusterOrig:this.Cluster})).then((function(e){return t.set(e.Workunit),t}))},t.prototype.submit=function(e,t,r){var n,o=this;return void 0===t&&(t=exports.WUUpdate.Action.Run),n=void 0!==e?Promise.resolve(e):this.topologyConnection.DefaultTpLogicalClusterQuery().then((function(e){return e.Name})),this._debugMode=!1,t===exports.WUUpdate.Action.Debug&&(t=exports.WUUpdate.Action.Run,this._debugMode=!0),n.then((function(e){return o.connection.WUUpdate({Wuid:o.Wuid,Action:t,ResultLimit:r,DebugValues:{DebugValue:[{Name:"Debug",Value:o._debugMode?"1":""}]}}).then((function(r){return o.set(r.Workunit),o._submitAction=t,o.connection.WUSubmit({Wuid:o.Wuid,Cluster:e})}))})).then((function(){return o}))},t.prototype.isComplete=function(){switch(this.StateID){case WUStateID.Compiled:return"compile"===this.ActionEx||this._submitAction===exports.WUUpdate.Action.Compile;case WUStateID.Completed:case WUStateID.Failed:case WUStateID.Aborted:case WUStateID.NotFound:return!0}return!1},t.prototype.isFailed=function(){switch(this.StateID){case WUStateID.Aborted:case WUStateID.Failed:return!0}return!1},t.prototype.isDeleted=function(){return this.StateID===WUStateID.NotFound},t.prototype.isDebugging=function(){switch(this.StateID){case WUStateID.DebugPaused:case WUStateID.DebugRunning:return!0}return this._debugMode},t.prototype.isRunning=function(){switch(this.StateID){case WUStateID.Compiled:case WUStateID.Running:case WUStateID.Aborting:case WUStateID.Blocked:case WUStateID.DebugPaused:case WUStateID.DebugRunning:return!0}return!1},t.prototype.setToFailed=function(){return this.WUAction("SetToFailed")},t.prototype.pause=function(){return this.WUAction("Pause")},t.prototype.pauseNow=function(){return this.WUAction("PauseNow")},t.prototype.resume=function(){return this.WUAction("Resume")},t.prototype.abort=function(){return this.WUAction("Abort")},t.prototype.delete=function(){return this.WUAction("Delete")},t.prototype.restore=function(){return this.WUAction("Restore")},t.prototype.deschedule=function(){return this.WUAction("Deschedule")},t.prototype.reschedule=function(){return this.WUAction("Reschedule")},t.prototype.resubmit=function(){var e=this;return this.WUResubmit({CloneWorkunit:!1,ResetWorkflow:!1}).then((function(){return e.clearState(e.Wuid),e.refresh().then((function(){return e._monitor(),e}))}))},t.prototype.clone=function(){var e=this;return this.WUResubmit({CloneWorkunit:!0,ResetWorkflow:!1}).then((function(r){return t.attach(e.connection.opts(),r.WUs.WU[0].WUID).refresh()}))},t.prototype.refreshState=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){switch(e.label){case 0:return[4,this.WUQuery()];case 1:return e.sent(),[2,this]}}))}))},t.prototype.refreshInfo=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){switch(e.label){case 0:return[4,this.WUInfo()];case 1:return e.sent(),[2,this]}}))}))},t.prototype.refreshDebug=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){switch(e.label){case 0:return[4,this.debugStatus()];case 1:return e.sent(),[2,this]}}))}))},t.prototype.refresh=function(e){return void 0===e&&(e=!1),__awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){switch(t.label){case 0:return e?[4,Promise.all([this.refreshInfo(),this.refreshDebug()])]:[3,2];case 1:return t.sent(),[3,4];case 2:return[4,this.refreshState()];case 3:t.sent(),t.label=4;case 4:return[2,this]}}))}))},t.prototype.eclExceptions=function(){return this.Exceptions.ECLException},t.prototype.fetchArchive=function(){return this.connection.WUFile({Wuid:this.Wuid,Type:"ArchiveQuery"})},t.prototype.fetchECLExceptions=function(){var e=this;return this.WUInfo({IncludeExceptions:!0}).then((function(){return e.eclExceptions()}))},t.prototype.fetchResults=function(){var e=this;return this.WUInfo({IncludeResults:!0}).then((function(){return e.CResults}))},t.prototype.fetchGraphs=function(){var e=this;return this.WUInfo({IncludeGraphs:!0}).then((function(){return e.CGraphs}))},t.prototype.fetchQuery=function(){var e=this;return this.WUInfo({IncludeECL:!0,TruncateEclTo64k:!1}).then((function(){return e.Query}))},t.prototype.fetchHelpers=function(){var e=this;return this.WUInfo({IncludeHelpers:!0}).then((function(){var t;return(null===(t=e.Helpers)||void 0===t?void 0:t.ECLHelpFile)||[]}))},t.prototype.fetchAllowedClusters=function(){var e=this;return this.WUInfo({IncludeAllowedClusters:!0}).then((function(){var t;return(null===(t=e.AllowedClusters)||void 0===t?void 0:t.AllowedCluster)||[]}))},t.prototype.fetchTotalClusterTime=function(){var e=this;return this.WUInfo({IncludeTotalClusterTime:!0}).then((function(){return e.TotalClusterTime}))},t.prototype.fetchServiceNames=function(){var e=this;return this.WUInfo({IncludeServiceNames:!0}).then((function(){var t;return null===(t=e.ServiceNames)||void 0===t?void 0:t.Item}))},t.prototype.fetchDetailsMeta=function(e){return void 0===e&&(e={}),this.WUDetailsMeta(e)},t.prototype.fetchDetailsRaw=function(e){return void 0===e&&(e={}),this.WUDetails(e).then((function(e){return e.Scopes.Scope}))},t.prototype.fetchDetailsNormalized=function(e){return void 0===e&&(e={}),Promise.all([this.fetchDetailsMeta(),this.fetchDetailsRaw(e)]).then((function(e){for(var t,r=e[0],n={id:{Measure:"label"},name:{Measure:"label"},type:{Measure:"label"}},o=[],i=0,s=e[1];i<s.length;i++){var A=s[i],a={},c={};if(A&&A.Id&&A.Properties&&A.Properties.Property)for(var u in A.Properties.Property){var l=A.Properties.Property[u];switch("ns"===l.Measure&&(l.Measure="s"),n[l.Name]=__assign({},l),delete n[l.Name].RawValue,delete n[l.Name].Formatted,l.Measure){case"bool":a[l.Name]=!!+l.RawValue;break;case"sz":case"ns":case"cnt":a[l.Name]=+l.RawValue;break;case"s":a[l.Name]=+l.RawValue/1e9;break;case"ts":a[l.Name]=new Date(+l.RawValue/1e3).toISOString();break;case"cost":a[l.Name]=+l.RawValue/1e6;break;default:a[l.Name]=l.RawValue}c[l.Name]=formatNum(null!==(t=l.Formatted)&&void 0!==t?t:a[l.Name])}o.push(__assign({id:A.Id,name:A.ScopeName,type:A.ScopeType,__formattedProps:c},a))}return{meta:r,columns:n,data:o}}))},t.prototype.fetchInfo=function(e){return void 0===e&&(e={}),this.WUInfo(e)},t.prototype.fetchDetails=function(e){var t=this;return void 0===e&&(e={}),this.WUDetails(e).then((function(e){return e.Scopes.Scope.map((function(e){return new Scope(t,e)}))}))},t.prototype.fetchDetailsHierarchy=function(e){var t=this;return void 0===e&&(e={}),this.WUDetails(e).then((function(e){var r=[],n={};for(var o in e.Scopes.Scope.forEach((function(e){if(n[e.ScopeName])return n[e.ScopeName].update(e),null;var r=new Scope(t,e);return n[r.ScopeName]=r,r})),n)if(n.hasOwnProperty(o)){var i=n[o],s=i.parentScope();s&&n[s]?n[s].children().push(i):r.push(i)}return r}))},t.prototype.fetchGraphDetails=function(e,t){return void 0===e&&(e=[]),this.fetchDetails({ScopeFilter:{MaxDepth:999999,Ids:e,ScopeTypes:t},NestedFilter:{Depth:999999,ScopeTypes:["graph","subgraph","activity","edge","function"]},PropertiesToReturn:{AllStatistics:!0,AllAttributes:!0,AllHints:!0,AllProperties:!0,AllScopes:!0},ScopeOptions:{IncludeId:!0,IncludeScope:!0,IncludeScopeType:!0},PropertyOptions:{IncludeName:!0,IncludeRawValue:!0,IncludeFormatted:!0,IncludeMeasure:!0,IncludeCreator:!1,IncludeCreatorType:!1}})},t.prototype.fetchScopeGraphs=function(e){return void 0===e&&(e=[]),this.fetchGraphDetails(e,["graph"]).then((function(e){return createGraph(e)}))},t.prototype.fetchTimeElapsed=function(){return this.fetchDetails({ScopeFilter:{PropertyFilters:{PropertyFilter:[{Name:"TimeElapsed"}]}}}).then((function(e){var t={};e.forEach((function(e){t[e.ScopeName]=t[e.ScopeName]||{scope:e.ScopeName,start:null,elapsed:null,finish:null},e.CAttributes.forEach((function(r){"TimeElapsed"===r.Name?t[e.ScopeName].elapsed=+r.RawValue:"ts"===r.Measure&&r.Name.indexOf("Started")>=0&&(t[e.ScopeName].start=r.Formatted)}))}));var r=[];for(var n in t){var o=t[n];if(o.start&&o.elapsed){var i=parser(o.start);i.setMilliseconds(i.getMilliseconds()+o.elapsed/1e6),o.finish=formatter(i),r.push(o)}}return r.sort((function(e,t){return e.start<t.start?-1:e.start>t.start?1:0})),r}))},t.prototype._monitor=function(){this.isComplete()?this._monitorTickCount=0:e.prototype._monitor.call(this)},t.prototype._monitorTimeoutDuration=function(){var t=e.prototype._monitorTimeoutDuration.call(this);return this._monitorTickCount<=1?1e3:this._monitorTickCount<=3?3e3:this._monitorTickCount<=5?5e3:this._monitorTickCount<=7?1e4:t},t.prototype.on=function(t,r,n){var o=this;if(this.isCallback(r))switch(t){case"completed":e.prototype.on.call(this,"propChanged","StateID",(function(e){o.isComplete()&&r([e])}));break;case"changed":e.prototype.on.call(this,t,r)}else if("changed"===t)e.prototype.on.call(this,t,r,n);return this._monitor(),this},t.prototype.watchUntilComplete=function(e){var t=this;return new Promise((function(r,n){var o=t.watch((function(n){e&&e(n),t.isComplete()&&(o.release(),r(t))}))}))},t.prototype.watchUntilRunning=function(e){var t=this;return new Promise((function(r,n){var o=t.watch((function(n){e&&e(n),(t.isComplete()||t.isRunning())&&(o.release(),r(t))}))}))},t.prototype.WUQuery=function(e){var t=this;return void 0===e&&(e={}),this.connection.WUQuery(__assign(__assign({},e),{Wuid:this.Wuid})).then((function(e){return t.set(e.Workunits.ECLWorkunit[0]),e})).catch((function(e){if(!e.Exception.some((function(e){return 20081===e.Code&&(t.clearState(t.Wuid),t.set("StateID",WUStateID.NotFound),!0)})))throw logger$3.warning("Unexpected exception: "),e;return{}}))},t.prototype.WUCreate=function(){var e=this;return this.connection.WUCreate().then((function(t){return e.set(t.Workunit),_workunits$1.set(e),t}))},t.prototype.WUInfo=function(e){var t=this;void 0===e&&(e={});var r=e.IncludeResults||e.IncludeResultsViewNames;return this.connection.WUInfo(__assign(__assign({},e),{Wuid:this.Wuid,IncludeResults:r,IncludeResultsViewNames:r,SuppressResultSchemas:!1})).then((function(e){return t.set(e.Workunit),r&&t.set({ResultViews:e.ResultViews}),e})).catch((function(e){if(!e.Exception.some((function(e){return 20080===e.Code&&(t.clearState(t.Wuid),t.set("StateID",WUStateID.NotFound),!0)})))throw logger$3.warning("Unexpected exception: "),e;return{}}))},t.prototype.WUResubmit=function(e){return this.connection.WUResubmit(util$m.deepMixinT({},e,{Wuids:[this.Wuid]}))},t.prototype.WUDetailsMeta=function(e){return this.connection.WUDetailsMeta(e)},t.prototype.WUDetails=function(e){return this.connection.WUDetails(util$m.deepMixinT({ScopeFilter:{MaxDepth:9999},ScopeOptions:{IncludeMatchedScopesInResults:!0,IncludeScope:!0,IncludeId:!1,IncludeScopeType:!1},PropertyOptions:{IncludeName:!0,IncludeRawValue:!1,IncludeFormatted:!0,IncludeMeasure:!0,IncludeCreator:!1,IncludeCreatorType:!1}},e,{WUID:this.Wuid})).then((function(e){return util$m.deepMixinT({Scopes:{Scope:[]}},e)}))},t.prototype.WUAction=function(e){var t=this;return this.connection.WUAction({Wuids:[this.Wuid],WUActionType:e}).then((function(e){return t.refresh().then((function(){return t._monitor(),e}))}))},t.prototype.publish=function(e){return this.connection.WUPublishWorkunit({Wuid:this.Wuid,Cluster:this.Cluster,JobName:e||this.Jobname,AllowForeignFiles:!0,Activate:!0,Wait:5e3})},t.prototype.WUCDebug=function(e,t){void 0===t&&(t={});var r="";for(var n in t)t.hasOwnProperty(n)&&(r+=" ".concat(n,"='").concat(t[n],"'"));return this.connection.WUCDebug({Wuid:this.Wuid,Command:"<debug:".concat(e," uid='").concat(this.Wuid,"'").concat(r,"/>")}).then((function(e){return e}))},t.prototype.debug=function(e,t){return this.isDebugging()?this.WUCDebug(e,t).then((function(t){var r=t.children(e);return r.length?r[0]:new util$m.XMLNode(e)})).catch((function(t){return logger$3.error(t),Promise.resolve(new util$m.XMLNode(e))})):Promise.resolve(new util$m.XMLNode(e))},t.prototype.debugStatus=function(){var e=this;return this.isDebugging()?this.debug("status").then((function(t){var r=__assign(__assign({},e.DebugState),t.$);return e.set({DebugState:r}),t})):Promise.resolve({DebugState:{state:"unknown"}})},t.prototype.debugContinue=function(e){return void 0===e&&(e=""),this.debug("continue",{mode:e})},t.prototype.debugStep=function(e){return this.debug("step",{mode:e})},t.prototype.debugPause=function(){return this.debug("interrupt")},t.prototype.debugQuit=function(){return this.debug("quit")},t.prototype.debugDeleteAllBreakpoints=function(){return this.debug("delete",{idx:0})},t.prototype.debugBreakpointResponseParser=function(e){return e.children().map((function(e){if("break"===e.name)return e.$}))},t.prototype.debugBreakpointAdd=function(e,t,r){var n=this;return this.debug("breakpoint",{id:e,mode:t,action:r}).then((function(e){return n.debugBreakpointResponseParser(e)}))},t.prototype.debugBreakpointList=function(){var e=this;return this.debug("list").then((function(t){return e.debugBreakpointResponseParser(t)}))},t.prototype.debugGraph=function(){var e=this;return this._debugAllGraph&&this.DebugState._prevGraphSequenceNum===this.DebugState.graphSequenceNum?Promise.resolve(this._debugAllGraph):this.debug("graph",{name:"all"}).then((function(t){return e.DebugState._prevGraphSequenceNum=e.DebugState.graphSequenceNum,e._debugAllGraph=createXGMMLGraph(e.Wuid,t),e._debugAllGraph}))},t.prototype.debugBreakpointValid=function(e){return this.debugGraph().then((function(t){return breakpointLocations(t,e)}))},t.prototype.debugPrint=function(e,t,r){return void 0===t&&(t=0),void 0===r&&(r=10),this.debug("print",{edgeID:e,startRow:t,numRows:r}).then((function(e){return e.children().map((function(e){var t={};return e.children().forEach((function(e){t[e.name]=e.content})),t}))}))},t}(util$m.StateObject),ATTR_DEFINITION="definition";function hasECLDefinition(e){return void 0!==e._[ATTR_DEFINITION]}function getECLDefinition(e){var t=/([a-z]:\\(?:[-\w\.\d]+\\)*(?:[-\w\.\d]+)?|(?:\/[\w\.\-]+)+)\((\d*),(\d*)\)/.exec(e._[ATTR_DEFINITION]);if(t){var r=t[1],n=t[2],o=t[3];return r.replace(/\/\.\//g,"/"),{id:e._.id,file:r,line:+n,column:+o}}throw new Error("Bad definition: ".concat(e._[ATTR_DEFINITION]))}function breakpointLocations(e,t){for(var r=[],n=0,o=e.vertices;n<o.length;n++){var i=o[n];if(hasECLDefinition(i)){var s=getECLDefinition(i);(s&&!t||t===s.file)&&r.push(s)}}return r.sort((function(e,t){return e.line-t.line}))}var Activity=function(e){function t(t){var r=e.call(this)||this;return r.lazyRefresh=util$m.debounce((function(){return __awaiter(r,void 0,void 0,(function(){var e;return __generator(this,(function(t){switch(t.label){case 0:return[4,this.connection.Activity({})];case 1:return e=t.sent(),this.set(e),[2,this]}}))}))})),r.connection=t instanceof SMCService?t:new SMCService(t),r.clear({}),r}return __extends(t,e),Object.defineProperty(t.prototype,"properties",{get:function(){return this.get()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Exceptions",{get:function(){return this.get("Exceptions")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Build",{get:function(){return this.get("Build")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ThorClusterList",{get:function(){return this.get("ThorClusterList")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"RoxieClusterList",{get:function(){return this.get("RoxieClusterList")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"HThorClusterList",{get:function(){return this.get("HThorClusterList")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"DFUJobs",{get:function(){return this.get("DFUJobs")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Running",{get:function(){return this.get("Running",{ActiveWorkunit:[]})},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"BannerContent",{get:function(){return this.get("BannerContent")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"BannerColor",{get:function(){return this.get("BannerColor")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"BannerSize",{get:function(){return this.get("BannerSize")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"BannerScroll",{get:function(){return this.get("BannerScroll")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ChatURL",{get:function(){return this.get("ChatURL")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ShowBanner",{get:function(){return this.get("ShowBanner")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ShowChatURL",{get:function(){return this.get("ShowChatURL")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"SortBy",{get:function(){return this.get("SortBy")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Descending",{get:function(){return this.get("Descending")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"SuperUser",{get:function(){return this.get("SuperUser")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"AccessRight",{get:function(){return this.get("AccessRight")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ServerJobQueues",{get:function(){return this.get("ServerJobQueues")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ActivityTime",{get:function(){return this.get("ActivityTime")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"DaliDetached",{get:function(){return this.get("DaliDetached")},enumerable:!1,configurable:!0}),t.attach=function(e,r){return _activity||(_activity=new t(e)),r&&_activity.set(__assign({},r)),_activity},t.prototype.runningWorkunits=function(e){var t=this;return void 0===e&&(e=""),this.Running.ActiveWorkunit.filter((function(t){return""===e||t.ClusterName===e})).map((function(e){return Workunit.attach(t.connection.connectionOptions(),e.Wuid,e)}))},t.prototype.setBanner=function(e){var t=this;return this.connection.SetBanner(__assign({},e)).then((function(e){return t.set(e),t}))},t.prototype.refresh=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){return[2,this.lazyRefresh()]}))}))},t}(util$m.StateObject),LogicalFileCache=function(e){function t(){return e.call(this,(function(e){return"".concat(e.BaseUrl,"-").concat(e.Cluster,"-").concat(e.Name)}))||this}return __extends(t,e),t}(util$m.Cache),_store$1=new LogicalFileCache,LogicalFile=function(e){function t(t,r,n){var o=e.call(this)||this;return o.connection=t instanceof DFUService?t:new DFUService(t),o.clear({Cluster:r,Name:n}),o}return __extends(t,e),Object.defineProperty(t.prototype,"BaseUrl",{get:function(){return this.connection.baseUrl},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Cluster",{get:function(){return this.get("Cluster")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Name",{get:function(){return this.get("Name")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Filename",{get:function(){return this.get("Filename")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Prefix",{get:function(){return this.get("Prefix")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"NodeGroup",{get:function(){return this.get("NodeGroup")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"NumParts",{get:function(){return this.get("NumParts")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Description",{get:function(){return this.get("Description")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Dir",{get:function(){return this.get("Dir")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"PathMask",{get:function(){return this.get("PathMask")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Filesize",{get:function(){return this.get("Filesize")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"FileSizeInt64",{get:function(){return this.get("FileSizeInt64")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"RecordSize",{get:function(){return this.get("RecordSize")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"RecordCount",{get:function(){return this.get("RecordCount")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"RecordSizeInt64",{get:function(){return this.get("RecordSizeInt64")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"RecordCountInt64",{get:function(){return this.get("RecordCountInt64")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Wuid",{get:function(){return this.get("Wuid")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Owner",{get:function(){return this.get("Owner")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"JobName",{get:function(){return this.get("JobName")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Persistent",{get:function(){return this.get("Persistent")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Format",{get:function(){return this.get("Format")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"MaxRecordSize",{get:function(){return this.get("MaxRecordSize")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"CsvSeparate",{get:function(){return this.get("CsvSeparate")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"CsvQuote",{get:function(){return this.get("CsvQuote")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"CsvTerminate",{get:function(){return this.get("CsvTerminate")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"CsvEscape",{get:function(){return this.get("CsvEscape")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Modified",{get:function(){return this.get("Modified")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Ecl",{get:function(){return this.get("Ecl")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Stat",{get:function(){return this.get("Stat")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"DFUFilePartsOnClusters",{get:function(){return this.get("DFUFilePartsOnClusters")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isSuperfile",{get:function(){return this.get("isSuperfile")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ShowFileContent",{get:function(){return this.get("ShowFileContent")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"subfiles",{get:function(){return this.get("subfiles")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Superfiles",{get:function(){return this.get("Superfiles")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ProtectList",{get:function(){return this.get("ProtectList")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"FromRoxieCluster",{get:function(){return this.get("FromRoxieCluster")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Graphs",{get:function(){return this.get("Graphs")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"UserPermission",{get:function(){return this.get("UserPermission")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ContentType",{get:function(){return this.get("ContentType")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"CompressedFileSize",{get:function(){return this.get("CompressedFileSize")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"PercentCompressed",{get:function(){return this.get("PercentCompressed")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"IsCompressed",{get:function(){return this.get("IsCompressed")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"BrowseData",{get:function(){return this.get("BrowseData")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"jsonInfo",{get:function(){return this.get("jsonInfo")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"binInfo",{get:function(){return this.get("binInfo")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"PackageID",{get:function(){return this.get("PackageID")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Partition",{get:function(){return this.get("Partition")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Blooms",{get:function(){return this.get("Blooms")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ExpireDays",{get:function(){return this.get("ExpireDays")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"KeyType",{get:function(){return this.get("KeyType")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"IsRestricted",{get:function(){return this.get("IsRestricted")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"AtRestCost",{get:function(){return this.get("AtRestCost")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"AccessCost",{get:function(){return this.get("AccessCost")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ExpirationDate",{get:function(){return this.get("ExpirationDate")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ExtendedIndexInfo",{get:function(){return this.get("ExtendedIndexInfo")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"properties",{get:function(){return this.get()},enumerable:!1,configurable:!0}),t.attach=function(e,r,n){return _store$1.get({BaseUrl:e.baseUrl,Cluster:r,Name:n},(function(){return new t(e,r,n)}))},t.prototype.filePartsOnCluster=function(){var e;return __spreadArray([],(null===(e=this.DFUFilePartsOnClusters)||void 0===e?void 0:e.DFUFilePartsOnCluster)||[],!0)},t.prototype.fileParts=function(){for(var e,t,r=[],n=0,o=(null===(e=this.DFUFilePartsOnClusters)||void 0===e?void 0:e.DFUFilePartsOnCluster)||[];n<o.length;n++)for(var i=o[n],s=0,A=(null===(t=null==i?void 0:i.DFUFileParts)||void 0===t?void 0:t.DFUPart)||[];s<A.length;s++){var a=A[s],c=__assign(__assign({},i),a);delete c.DFUFileParts,r.push(c)}return r},t.prototype.update=function(e){var t=this;return this.connection.DFUInfo(__assign(__assign({},e),{Cluster:this.Cluster,Name:this.Name})).then((function(e){return t.set(__assign({Cluster:t.Cluster},e.FileDetail)),e}))},t.prototype.fetchInfo=function(){var e=this;return this.connection.DFUInfo({Cluster:this.Cluster,Name:this.Name}).then((function(t){return e.set(__assign({Cluster:e.Cluster},t.FileDetail)),t.FileDetail}))},t.prototype.fetchDefFile=function(e){return this.connection.DFUFile({Name:this.Name,Format:e})},t.prototype.fetchListHistory=function(){return this.connection.ListHistory({Name:this.Name}).then((function(e){var t;return(null===(t=null==e?void 0:e.History)||void 0===t?void 0:t.Origin)||[]}))},t.prototype.eraseHistory=function(){return this.connection.EraseHistory({Name:this.Name}).then((function(e){var t;return(null===(t=null==e?void 0:e.History)||void 0===t?void 0:t.Origin)||[]}))},t}(util$m.StateObject),MachineCache=function(e){function t(){return e.call(this,(function(e){return e.Address}))||this}return __extends(t,e),t}(util$m.Cache),_machines=new MachineCache,Machine=function(e){function t(t){var r=e.call(this)||this;return r.connection=t instanceof MachineService?t:new MachineService(t),r}return __extends(t,e),Object.defineProperty(t.prototype,"Address",{get:function(){return this.get("Address")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ConfigAddress",{get:function(){return this.get("ConfigAddress")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Name",{get:function(){return this.get("Name")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ProcessType",{get:function(){return this.get("ProcessType")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"DisplayType",{get:function(){return this.get("DisplayType")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Description",{get:function(){return this.get("Description")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"AgentVersion",{get:function(){return this.get("AgentVersion")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Contact",{get:function(){return this.get("Contact")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Location",{get:function(){return this.get("Location")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"UpTime",{get:function(){return this.get("UpTime")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ComponentName",{get:function(){return this.get("ComponentName")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ComponentPath",{get:function(){return this.get("ComponentPath")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"RoxieState",{get:function(){return this.get("RoxieState")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"RoxieStateDetails",{get:function(){return this.get("RoxieStateDetails")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"OS",{get:function(){return this.get("OS")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ProcessNumber",{get:function(){return this.get("ProcessNumber")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Channels",{get:function(){return this.get("Channels")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Processors",{get:function(){return this.get("Processors")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Storage",{get:function(){return this.get("Storage")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Running",{get:function(){return this.get("Running")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"PhysicalMemory",{get:function(){return this.get("PhysicalMemory")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"VirtualMemory",{get:function(){return this.get("VirtualMemory")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ComponentInfo",{get:function(){return this.get("ComponentInfo")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Exception",{get:function(){return this.get("Exception")},enumerable:!1,configurable:!0}),t.attach=function(e,r,n){var o=_machines.get({Address:r},(function(){return new t(e)}));return n&&o.set(n),o},t}(util$m.StateObject),TargetClusterCache=function(e){function t(){return e.call(this,(function(e){return"".concat(e.BaseUrl,"-").concat(e.Name)}))||this}return __extends(t,e),t}(util$m.Cache),_targetCluster=new TargetClusterCache,TargetCluster=function(e){function t(t,r){var n=e.call(this)||this;return t instanceof TopologyService?(n.connection=t,n.machineConnection=new MachineService(t.connectionOptions())):(n.connection=new TopologyService(t),n.machineConnection=new MachineService(t)),n.clear({Name:r}),n}return __extends(t,e),Object.defineProperty(t.prototype,"BaseUrl",{get:function(){return this.connection.baseUrl},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Name",{get:function(){return this.get("Name")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Prefix",{get:function(){return this.get("Prefix")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Type",{get:function(){return this.get("Type")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"IsDefault",{get:function(){return this.get("IsDefault")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"TpClusters",{get:function(){return this.get("TpClusters")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"TpEclCCServers",{get:function(){return this.get("TpEclCCServers")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"TpEclServers",{get:function(){return this.get("TpEclServers")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"TpEclAgents",{get:function(){return this.get("TpEclAgents")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"TpEclSchedulers",{get:function(){return this.get("TpEclSchedulers")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"MachineInfoEx",{get:function(){return this.get("MachineInfoEx",[])},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"CMachineInfoEx",{get:function(){var e=this;return this.MachineInfoEx.map((function(t){return Machine.attach(e.machineConnection,t.Address,t)}))},enumerable:!1,configurable:!0}),t.attach=function(e,r,n){var o=_targetCluster.get({BaseUrl:e.baseUrl,Name:r},(function(){return new t(e,r)}));return n&&o.set(__assign({},n)),o},t.prototype.fetchMachines=function(e){var t=this;return void 0===e&&(e={}),this.machineConnection.GetTargetClusterInfo(__assign({TargetClusters:{Item:["".concat(this.Type,":").concat(this.Name)]}},e)).then((function(e){for(var r=[],n=0,o=e.TargetClusterInfoList.TargetClusterInfo;n<o.length;n++)for(var i=0,s=o[n].Processes.MachineInfoEx;i<s.length;i++){var A=s[i];r.push(A)}return t.set("MachineInfoEx",r),t.CMachineInfoEx}))},t.prototype.machineStats=function(){for(var e=0,t=0,r=0,n=0,o=this.CMachineInfoEx;n<o.length;n++)for(var i=0,s=o[n].Storage.StorageInfo;i<s.length;i++){var A=s[i];t+=A.Available,r+=A.Total;var a=1-A.Available/A.Total;a>e&&(e=a)}return{maxDisk:e,meanDisk:1-(r?t/r:1)}},t.prototype.fetchUsage=function(){return this.machineConnection.GetTargetClusterUsageEx([this.Name])},t}(util$m.StateObject);function targetClusters(e){return(e instanceof TopologyService?e:new TopologyService(e)).TpListTargetClusters({}).then((function(t){return t.TargetClusters.TpClusterNameType.map((function(t){return TargetCluster.attach(e,t.Name,t)}))}))}var _defaultTargetCluster={};function defaultTargetCluster(e){if(!_defaultTargetCluster[e.baseUrl]){var t=void 0;t=e instanceof TopologyService?e:new TopologyService(e),_defaultTargetCluster[e.baseUrl]=t.TpListTargetClusters({}).then((function(t){var r,n,o;t.TargetClusters.TpClusterNameType.forEach((function(e){r||(r=e),n||!0!==e.IsDefault||(n=e),o||"hthor"!==e.Type||(o=e)}));var i=n||o||r;return TargetCluster.attach(e,i.Name,i)}))}return _defaultTargetCluster[e.baseUrl]}var States,TopologyCache=function(e){function t(){return e.call(this,(function(e){return e.BaseUrl}))||this}return __extends(t,e),t}(util$m.Cache),_topology=new TopologyCache,Topology=function(e){function t(t){var r=e.call(this)||this;return r.connection=t instanceof TopologyService?t:new TopologyService(t),r}return __extends(t,e),Object.defineProperty(t.prototype,"BaseUrl",{get:function(){return this.connection.baseUrl},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"properties",{get:function(){return this.get()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"TargetClusters",{get:function(){return this.get("TargetClusters")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"CTargetClusters",{get:function(){var e=this;return this.TargetClusters.map((function(t){return TargetCluster.attach(e.connection,t.Name,t)}))},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"LogicalClusters",{get:function(){return this.get("LogicalClusters")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Services",{get:function(){return this.get("Services")},enumerable:!1,configurable:!0}),t.attach=function(e){return _topology.get({BaseUrl:e.baseUrl},(function(){return new t(e)}))},t.prototype.GetESPServiceBaseURL=function(e){var t=this;return void 0===e&&(e=""),this.connection.TpServiceQuery({}).then((function(r){var n=t.connection.protocol(),o=t.connection.ip(),i="https:"===n?"18002":"8002";if(util$m.exists("ServiceList.TpEspServers.TpEspServer",r))for(var s=0,A=r.ServiceList.TpEspServers.TpEspServer;s<A.length;s++){var a=A[s];if(util$m.exists("TpBindings.TpBinding",a))for(var c=0,u=a.TpBindings.TpBinding;c<u.length;c++){var l=u[c];l.Service===e&&l.Protocol+":"===n&&(i=l.Port)}}return"".concat(n,"//").concat(o,":").concat(i,"/")}))},t.prototype.fetchTargetClusters=function(){var e=this;return this.connection.TpTargetClusterQuery({Type:"ROOT"}).then((function(t){var r,n;return e.set({TargetClusters:null!==(n=null===(r=t.TpTargetClusters)||void 0===r?void 0:r.TpTargetCluster)&&void 0!==n?n:[]}),e.CTargetClusters}))},t.prototype.fetchLogicalClusters=function(e){var t=this;return void 0===e&&(e={}),this.connection.TpLogicalClusterQuery(e).then((function(e){return t.set({LogicalClusters:e.TpLogicalClusters.TpLogicalCluster}),t.LogicalClusters}))},t.prototype.fetchServices=function(e){var t=this;return void 0===e&&(e={}),this.connection.TpServiceQuery(e).then((function(e){return t.set({Services:e.ServiceList}),t.Services}))},t.prototype.refresh=function(e){var t=this;return void 0===e&&(e=!1),this._prevRefresh&&!e||(this._prevRefresh=Promise.all([this.fetchTargetClusters(),this.fetchLogicalClusters(),this.fetchServices()]).then((function(){return t}))),this._prevRefresh},t.prototype.on=function(t,r,n){if(this.isCallback(r)){if("changed"===t)e.prototype.on.call(this,t,r)}else if("changed"===t)e.prototype.on.call(this,t,r,n);return this._monitor(),this},t}(util$m.StateObject),logger$2=util$m.scopedLogger("@hpcc-js/comms/ecl/query.ts"),QueryCache=function(e){function t(){return e.call(this,(function(e){return util$m.Cache.hash([e.QueryId,e.QuerySet])}))||this}return __extends(t,e),t}(util$m.Cache),_queries=new QueryCache,Query=function(e){function t(t,r,n,o){var i=e.call(this)||this;return i.wsWorkunitsService=t instanceof WorkunitsService?t:new WorkunitsService(t),i.topology=Topology.attach(i.wsWorkunitsService.opts()),i.set(__assign({QuerySet:r,QueryId:n},o)),i}return __extends(t,e),Object.defineProperty(t.prototype,"BaseUrl",{get:function(){return this.wsWorkunitsService.baseUrl},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"properties",{get:function(){return this.get()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Exceptions",{get:function(){return this.get("Exceptions")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"QueryId",{get:function(){return this.get("QueryId")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"QuerySet",{get:function(){return this.get("QuerySet")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"QueryName",{get:function(){return this.get("QueryName")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Wuid",{get:function(){return this.get("Wuid")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Dll",{get:function(){return this.get("Dll")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Suspended",{get:function(){return this.get("Suspended")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Activated",{get:function(){return this.get("Activated")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"SuspendedBy",{get:function(){return this.get("SuspendedBy")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Clusters",{get:function(){return this.get("Clusters")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"PublishedBy",{get:function(){return this.get("PublishedBy")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Comment",{get:function(){return this.get("Comment")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"LogicalFiles",{get:function(){return this.get("LogicalFiles")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"SuperFiles",{get:function(){return this.get("SuperFiles")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"IsLibrary",{get:function(){return this.get("IsLibrary")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Priority",{get:function(){return this.get("Priority")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"WUSnapShot",{get:function(){return this.get("WUSnapShot")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"CompileTime",{get:function(){return this.get("CompileTime")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"LibrariesUsed",{get:function(){return this.get("LibrariesUsed")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"CountGraphs",{get:function(){return this.get("CountGraphs")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ResourceURLCount",{get:function(){return this.get("ResourceURLCount")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"WsEclAddresses",{get:function(){return this.get("WsEclAddresses")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"WUGraphs",{get:function(){return this.get("WUGraphs")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"WUTimers",{get:function(){return this.get("WUTimers")},enumerable:!1,configurable:!0}),t.attach=function(e,r,n){return _queries.get({BaseUrl:e.baseUrl,QuerySet:r,QueryId:n},(function(){return new t(e,r,n)}))},t.prototype.wsEclService=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){return this._eclService||(this._eclService=this.topology.fetchServices({}).then((function(e){for(var t,r,n,o,i=0,s=null!==(r=null===(t=null==e?void 0:e.TpEspServers)||void 0===t?void 0:t.TpEspServer)&&void 0!==r?r:[];i<s.length;i++)for(var A=s[i],a=0,c=null!==(o=null===(n=null==A?void 0:A.TpBindings)||void 0===n?void 0:n.TpBinding)&&void 0!==o?o:[];a<c.length;a++){var u=c[a];if("ws_ecl"===(null==u?void 0:u.Service)){var l="".concat(u.Protocol,"://").concat(globalThis.location.hostname,":").concat(u.Port);return new EclService({baseUrl:l})}}}))),[2,this._eclService]}))}))},t.prototype.fetchDetails=function(){return __awaiter(this,void 0,void 0,(function(){var e;return __generator(this,(function(t){switch(t.label){case 0:return[4,this.wsWorkunitsService.WUQueryDetails({QuerySet:this.QuerySet,QueryId:this.QueryId,IncludeStateOnClusters:!0,IncludeSuperFiles:!0,IncludeWsEclAddresses:!0,CheckAllNodes:!1})];case 1:return e=t.sent(),this.set(__assign({},e)),[2]}}))}))},t.prototype.fetchRequestSchema=function(){var e;return __awaiter(this,void 0,void 0,(function(){var t,r,n;return __generator(this,(function(o){switch(o.label){case 0:return[4,this.wsEclService()];case 1:t=o.sent(),o.label=2;case 2:return o.trys.push([2,4,,5]),r=this,[4,null==t?void 0:t.requestJson(this.QuerySet,this.QueryId)];case 3:return r._requestSchema=null!==(e=o.sent())&&void 0!==e?e:[],[3,5];case 4:return n=o.sent(),logger$2.debug(n),this._requestSchema=[],[3,5];case 5:return[2]}}))}))},t.prototype.fetchResponseSchema=function(){var e;return __awaiter(this,void 0,void 0,(function(){var t,r,n;return __generator(this,(function(o){switch(o.label){case 0:return[4,this.wsEclService()];case 1:t=o.sent(),o.label=2;case 2:return o.trys.push([2,4,,5]),r=this,[4,null==t?void 0:t.responseJson(this.QuerySet,this.QueryId)];case 3:return r._responseSchema=null!==(e=o.sent())&&void 0!==e?e:{},[3,5];case 4:return n=o.sent(),logger$2.debug(n),this._responseSchema={},[3,5];case 5:return[2]}}))}))},t.prototype.fetchSchema=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){switch(e.label){case 0:return[4,Promise.all([this.fetchRequestSchema(),this.fetchResponseSchema()])];case 1:return e.sent(),[2]}}))}))},t.prototype.fetchSummaryStats=function(){return this.wsWorkunitsService.WUQueryGetSummaryStats({Target:this.QuerySet,QueryId:this.QueryId})},t.prototype.submit=function(e){var t;return __awaiter(this,void 0,void 0,(function(){var r;return __generator(this,(function(n){switch(n.label){case 0:return[4,this.wsEclService()];case 1:r=n.sent();try{return[2,null!==(t=null==r?void 0:r.submit(this.QuerySet,this.QueryId,e).then((function(e){for(var t in e)e[t]=e[t].Row;return e})))&&void 0!==t?t:[]]}catch(e){return logger$2.debug(e),[2,[]]}return[2]}}))}))},t.prototype.refresh=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){switch(e.label){case 0:return[4,Promise.all([this.fetchDetails(),this.fetchSchema()])];case 1:return e.sent(),[2,this]}}))}))},t.prototype.requestFields=function(){return this._requestSchema?this._requestSchema:[]},t.prototype.responseFields=function(){return this._responseSchema?this._responseSchema:{}},t.prototype.resultNames=function(){var e=[];for(var t in this.responseFields())e.push(t);return e},t.prototype.resultFields=function(e){return this._responseSchema[e]?this._responseSchema[e]:[]},t}(util$m.StateObject),StoreCache=function(e){function t(){return e.call(this,(function(e){return"".concat(e.BaseUrl,"-").concat(e.Name,":").concat(e.UserSpecific,"-").concat(e.Namespace)}))||this}return __extends(t,e),t}(util$m.Cache),_store=new StoreCache,ValueChangedMessage=function(e){function t(t,r,n){var o=e.call(this)||this;return o.key=t,o.value=r,o.oldValue=n,o}return __extends(t,e),Object.defineProperty(t.prototype,"canConflate",{get:function(){return!0},enumerable:!1,configurable:!0}),t.prototype.conflate=function(e){return this.key===e.key&&(this.value=e.value,!0)},t.prototype.void=function(){return this.value===this.oldValue},t}(util$m.Message),Store=function(){function e(e,t,r,n){this._dispatch=new util$m.Dispatch,this._knownValues={},this.connection=e instanceof StoreService?e:new StoreService(e),this.Name=t,this.UserSpecific=n,this.Namespace=r}return Object.defineProperty(e.prototype,"BaseUrl",{get:function(){return this.connection.baseUrl},enumerable:!1,configurable:!0}),e.attach=function(t,r,n,o){return void 0===r&&(r="HPCCApps"),void 0===o&&(o=!0),_store.get({BaseUrl:t.baseUrl,Name:r,UserSpecific:o,Namespace:n},(function(){return new e(t,r,n,o)}))},e.prototype.create=function(){this.connection.CreateStore({Name:this.Name,UserSpecific:this.UserSpecific,Type:"",Description:""})},e.prototype.set=function(e,t,r){var n=this;return void 0===r&&(r=!0),this.connection.Set({StoreName:this.Name,UserSpecific:this.UserSpecific,Namespace:this.Namespace,Key:e,Value:t}).then((function(o){var i=n._knownValues[e];n._knownValues[e]=t,r&&n._dispatch.post(new ValueChangedMessage(e,t,i))})).catch((function(r){console.error('Store.set("'.concat(e,'", "').concat(t,'") failed:'),r)}))},e.prototype.get=function(e,t){var r=this;return void 0===t&&(t=!0),this.connection.Fetch({StoreName:this.Name,UserSpecific:this.UserSpecific,Namespace:this.Namespace,Key:e}).then((function(n){var o=r._knownValues[e];return r._knownValues[e]=n.Value,t&&r._dispatch.post(new ValueChangedMessage(e,n.Value,o)),n.Value})).catch((function(t){console.error("Store.get(".concat(e,") failed:"),t)}))},e.prototype.getAll=function(e){var t=this;return void 0===e&&(e=!0),this.connection.FetchAll({StoreName:this.Name,UserSpecific:this.UserSpecific,Namespace:this.Namespace}).then((function(r){var n={},o=t._knownValues;if(t._knownValues={},r.Pairs.Pair.forEach((function(r){var i=t._knownValues[r.Key];t._knownValues[r.Key]=r.Value,delete o[r.Key],n[r.Key]=r.Value,e&&t._dispatch.post(new ValueChangedMessage(r.Key,r.Value,i))})),e)for(var i in o)t._dispatch.post(new ValueChangedMessage(i,void 0,o[i]));return n})).catch((function(e){return console.error("Store.getAll failed:",e),{}}))},e.prototype.delete=function(e,t){var r=this;return void 0===t&&(t=!0),this.connection.Delete({StoreName:this.Name,UserSpecific:this.UserSpecific,Namespace:this.Namespace,Key:e}).then((function(n){var o=r._knownValues[e];delete r._knownValues[e],t&&r._dispatch.post(new ValueChangedMessage(e,void 0,o))})).catch((function(t){console.error("Store.delete(".concat(e,") failed:"),t)}))},e.prototype.monitor=function(e){return this._dispatch.attach(e)},e}(),logger$1=util$m.scopedLogger("@hpcc-js/comms/dfuWorkunit.ts");!function(e){e[e.Unknown=0]="Unknown",e[e.Scheduled=1]="Scheduled",e[e.Queued=2]="Queued",e[e.Started=3]="Started",e[e.Aborted=4]="Aborted",e[e.Failed=5]="Failed",e[e.Finished=6]="Finished",e[e.Monitoring=7]="Monitoring",e[e.Aborting=8]="Aborting",e[e.NotFound=999]="NotFound"}(States||(States={}));var DFUWorkunitCache=function(e){function t(){return e.call(this,(function(e){return"".concat(e.BaseUrl,"-").concat(e.ID)}))||this}return __extends(t,e),t}(util$m.Cache),_workunits=new DFUWorkunitCache,DFUWorkunit=function(e){function t(t,r){var n=e.call(this)||this;return n.connection=new FileSprayService(t),n.topologyConnection=new TopologyService(t),n.clearState(r),n}return __extends(t,e),Object.defineProperty(t.prototype,"BaseUrl",{get:function(){return this.connection.baseUrl},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"properties",{get:function(){return this.get()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ID",{get:function(){return this.get("ID")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"DFUServerName",{get:function(){return this.get("DFUServerName")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ClusterName",{get:function(){return this.get("ClusterName")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"JobName",{get:function(){return this.get("JobName")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Queue",{get:function(){return this.get("Queue")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"User",{get:function(){return this.get("User")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isProtected",{get:function(){return this.get("isProtected")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Command",{get:function(){return this.get("Command")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"CommandMessage",{get:function(){return this.get("CommandMessage")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"PercentDone",{get:function(){return this.get("PercentDone")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"SecsLeft",{get:function(){return this.get("SecsLeft")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ProgressMessage",{get:function(){return this.get("ProgressMessage")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"SummaryMessage",{get:function(){return this.get("SummaryMessage")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"State",{get:function(){return this.get("State",States.Unknown)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"SourceLogicalName",{get:function(){return this.get("SourceLogicalName")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"SourceIP",{get:function(){return this.get("SourceIP")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"SourceFilePath",{get:function(){return this.get("SourceFilePath")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"SourceDali",{get:function(){return this.get("SourceDali")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"SourceRecordSize",{get:function(){return this.get("SourceRecordSize")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"SourceFormat",{get:function(){return this.get("SourceFormat")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"RowTag",{get:function(){return this.get("RowTag")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"SourceNumParts",{get:function(){return this.get("SourceNumParts")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"SourceDirectory",{get:function(){return this.get("SourceDirectory")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"DestLogicalName",{get:function(){return this.get("DestLogicalName")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"DestGroupName",{get:function(){return this.get("DestGroupName")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"DestDirectory",{get:function(){return this.get("DestDirectory")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"DestIP",{get:function(){return this.get("DestIP")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"DestFilePath",{get:function(){return this.get("DestFilePath")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"DestFormat",{get:function(){return this.get("DestFormat")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"DestNumParts",{get:function(){return this.get("DestNumParts")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"DestRecordSize",{get:function(){return this.get("DestRecordSize")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Replicate",{get:function(){return this.get("Replicate")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Overwrite",{get:function(){return this.get("Overwrite")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Compress",{get:function(){return this.get("Compress")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"SourceCsvSeparate",{get:function(){return this.get("SourceCsvSeparate")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"SourceCsvQuote",{get:function(){return this.get("SourceCsvQuote")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"SourceCsvTerminate",{get:function(){return this.get("SourceCsvTerminate")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"SourceCsvEscape",{get:function(){return this.get("SourceCsvEscape")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"TimeStarted",{get:function(){return this.get("TimeStarted")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"TimeStopped",{get:function(){return this.get("TimeStopped")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"StateMessage",{get:function(){return this.get("StateMessage")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"MonitorEventName",{get:function(){return this.get("MonitorEventName")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"MonitorSub",{get:function(){return this.get("MonitorSub")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"MonitorShotLimit",{get:function(){return this.get("MonitorShotLimit")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"SourceDiffKeyName",{get:function(){return this.get("SourceDiffKeyName")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"DestDiffKeyName",{get:function(){return this.get("DestDiffKeyName")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Archived",{get:function(){return this.get("Archived")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"encrypt",{get:function(){return this.get("encrypt")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"decrypt",{get:function(){return this.get("decrypt")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"failIfNoSourceFile",{get:function(){return this.get("failIfNoSourceFile")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"recordStructurePresent",{get:function(){return this.get("recordStructurePresent")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"quotedTerminator",{get:function(){return this.get("quotedTerminator")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"preserveCompression",{get:function(){return this.get("preserveCompression")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"expireDays",{get:function(){return this.get("expireDays")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"PreserveFileParts",{get:function(){return this.get("PreserveFileParts")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"FileAccessCost",{get:function(){return this.get("FileAccessCost")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"KbPerSecAve",{get:function(){return this.get("KbPerSecAve")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"KbPerSec",{get:function(){return this.get("KbPerSec")},enumerable:!1,configurable:!0}),t.create=function(e,r){var n=new t(e);return n.connection.CreateDFUWorkunit({DFUServerQueue:r}).then((function(e){return _workunits.set(n),n.set(e.result),n}))},t.attach=function(e,r,n){var o=_workunits.get({BaseUrl:e.baseUrl,ID:r},(function(){return new t(e,r)}));return n&&o.set(n),o},t.sprayFixed=function(e,r){var n=new FileSprayService(e);return n.SprayFixedEx(__assign({},r)).then((function(r){var o=r.wuid;return n.GetDFUWorkunit({wuid:o}).then((function(r){return t.attach(e,o,r.result)}))}))},t.sprayVariable=function(e,r){var n=new FileSprayService(e);return n.SprayVariableEx(__assign({},r)).then((function(r){var o=r.wuid;return n.GetDFUWorkunit({wuid:o}).then((function(r){return t.attach(e,o,r.result)}))}))},t.despray=function(e,r){var n=new FileSprayService(e);return n.DesprayEx(__assign({},r)).then((function(r){var o=r.wuid;return n.GetDFUWorkunit({wuid:o}).then((function(r){return t.attach(e,o,r.result)}))}))},t.prototype.update=function(e){var t,r,n,o;return this.connection.UpdateDFUWorkunitEx({wu:{JobName:null!==(r=null===(t=null==e?void 0:e.wu)||void 0===t?void 0:t.JobName)&&void 0!==r?r:this.JobName,isProtected:null!==(o=null===(n=null==e?void 0:e.wu)||void 0===n?void 0:n.isProtected)&&void 0!==o?o:this.isProtected,ID:this.ID,State:this.State},ClusterOrig:this.ClusterName,JobNameOrig:this.JobName,isProtectedOrig:this.isProtected,StateOrig:this.State})},t.prototype.isComplete=function(){switch(this.State){case States.Finished:case States.Failed:case States.Aborted:case States.NotFound:return!0}return!1},t.prototype.isFailed=function(){return!(!this.isComplete()||this.State===States.Finished)},t.prototype.isDeleted=function(){return this.State===States.NotFound},t.prototype.isRunning=function(){return!this.isComplete()},t.prototype.abort=function(){return this.connection.AbortDFUWorkunit({wuid:this.ID})},t.prototype.delete=function(){return this.DFUWUAction(exports.FileSpray.DFUWUActions.Delete)},t.prototype.refresh=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){switch(e.label){case 0:return[4,this.GetDFUWorkunit()];case 1:return e.sent(),[2,this]}}))}))},t.prototype.fetchXML=function(e){return this.DFUWUFile()},t.prototype._monitor=function(){this.isComplete()?this._monitorTickCount=0:e.prototype._monitor.call(this)},t.prototype._monitorTimeoutDuration=function(){var t=e.prototype._monitorTimeoutDuration.call(this);return this._monitorTickCount<=1?3e3:this._monitorTickCount<=5?6e3:this._monitorTickCount<=7?12e3:t},t.prototype.DFUWUFile=function(e){return void 0===e&&(e={}),this.connection.DFUWUFile(__assign(__assign({},e),{Wuid:this.ID})).then((function(e){return e})).catch((function(e){return{}}))},t.prototype.DFUWUAction=function(e){var t=this;return this.connection.DFUWorkunitsAction({wuids:{Item:[this.ID]},Type:e}).then((function(r){return e===exports.FileSpray.DFUWUActions.Delete?r:t.refresh().then((function(){return t._monitor(),r}))}))},t.prototype.on=function(t,r,n){var o=this;if(this.isCallback(r))switch(t){case"finished":e.prototype.on.call(this,"propChanged","State",(function(e){o.isComplete()&&r([e])}));break;case"changed":e.prototype.on.call(this,t,r)}else if("changed"===t)e.prototype.on.call(this,t,r,n);return this._monitor(),this},t.prototype.watchUntilComplete=function(e){var t=this;return new Promise((function(r,n){var o=t.watch((function(n){e&&e(n),t.isComplete()&&(o.release(),r(t))}))}))},t.prototype.watchUntilRunning=function(e){var t=this;return new Promise((function(r,n){var o=t.watch((function(n){e&&e(n),(t.isComplete()||t.isRunning())&&(o.release(),r(t))}))}))},t.prototype.clearState=function(e){this.clear({ID:e,State:States.Unknown})},t.prototype.GetDFUWorkunit=function(e){var t=this;return void 0===e&&(e={}),this.connection.GetDFUWorkunit(__assign(__assign({},e),{wuid:this.ID})).then((function(e){return t.set(e.result),e})).catch((function(e){if(!e.Exception.some((function(e){return 20081===e.Code&&(t.clearState(t.ID),t.set("State",States.NotFound),!0)})))throw logger$1.warning("Unexpected exception: "),e;return{}}))},t}(util$m.StateObject);util$m.scopedLogger("clienttools/eclmeta");var Attr=function(e){this.__attrs=e.$,this.name=e.$.name},Field=function(){function e(e,t){this.__attrs=t.$,this.definition=e,this.name=t.$.name,this.type=t.$.type}return Object.defineProperty(e.prototype,"scope",{get:function(){return this.definition},enumerable:!1,configurable:!0}),e}(),ECLScope=function(){function e(e,t,r,n,o,i,s,A){void 0===o&&(o=1),void 0===i&&(i=0),void 0===s&&(s=0),void 0===A&&(A=Number.MAX_VALUE),this.name=e,this.type=t,this.sourcePath=path__namespace.normalize(r),this.line=+o-1,this.start=+i,this.body=+s,this.end=+A,this.definitions=this.parseDefinitions(n)}return Object.defineProperty(e.prototype,"scope",{get:function(){return this},enumerable:!1,configurable:!0}),e.prototype.parseDefinitions=function(e){var t=this;return void 0===e&&(e=[]),e.map((function(e){return new Definition(t.sourcePath,e)}))},e.prototype.contains=function(e){return e>=this.start&&e<=this.end},e.prototype.scopeStackAt=function(e){var t=[];return this.contains(e)&&(t.push(this),this.definitions.forEach((function(r){t=r.scopeStackAt(e).concat(t)}))),t},e.prototype._resolve=function(e,t){void 0===e&&(e=[]);var r=t.split("."),n=r.shift(),o=util$m.find(e,(function(e){return"string"==typeof e.name&&"string"==typeof n&&e.name.toLowerCase()===n.toLowerCase()}));return o&&o.definitions.length&&r.length?this._resolve(o.definitions,r.join(".")):o},e.prototype.resolve=function(e){return this._resolve(this.definitions,e)},e.prototype.suggestions=function(){var e=this;return this.definitions.map((function(t){return{name:t.name,type:e.type}}))},e}(),Definition=function(e){function t(t,r){var n=e.call(this,r.$.name,r.$.type,t,r.children("Definition"),r.$.line,r.$.start,r.$.body,r.$.end)||this;return n.__attrs=r.$,n.exported=!!r.$.exported,n.shared=!!r.$.shared,n.fullname=r.$.fullname,n.inherittype=r.$.inherittype,n.attrs=n.parseAttrs(r.children("Attr")),n.fields=n.parseFields(r.children("Field")),n}return __extends(t,e),t.prototype.parseAttrs=function(e){return void 0===e&&(e=[]),e.map((function(e){return new Attr(e)}))},t.prototype.parseFields=function(e){var t=this;return void 0===e&&(e=[]),e.map((function(e){return new Field(t,e)}))},t.prototype.suggestions=function(){return e.prototype.suggestions.call(this).concat(this.fields.map((function(e){return{name:e.name,type:e.type}})))},t}(ECLScope),Import=function(e){this.__attrs=e.$,this.name=e.$.name,this.ref=e.$.ref,this.start=e.$.start,this.end=e.$.end,this.line=e.$.line},Source=function(e){function t(t){var r=e.call(this,t.$.name,"source",t.$.sourcePath,t.children("Definition"))||this;r.__attrs=t.$;var n=t.$.name.split(".");n.pop();var o=new util$m.XMLNode("");return o.appendAttribute("name","$"),o.appendAttribute("ref",n.join(".")),r.imports=__spreadArray([new Import(o)],r.parseImports(t.children("Import")),!0),r}return __extends(t,e),t.prototype.parseImports=function(e){return void 0===e&&(e=[]),e.map((function(e){return new Import(e)}))},t.prototype.resolve=function(t,r){var n;n||void 0===r||this.scopeStackAt(r).some((function(e){return!!(n=e.resolve(t))}));return n||(n=e.prototype.resolve.call(this,t)),n},t}(ECLScope),isHiddenDirectory=function(e){return 0===path__namespace.basename(e).indexOf(".")},isDirectory=function(e){return fs__namespace.lstatSync(e).isDirectory()&&!isHiddenDirectory(e)},isEcl=function(e){return[".ecl",".ecllib"].indexOf(path__namespace.extname(e).toLowerCase())>=0},modAttrs=function(e){return fs__namespace.readdirSync(e).map((function(t){return path__namespace.join(e,t)})).filter((function(e){return isDirectory(e)||isEcl(e)}))},File=function(e){function t(t,r){return e.call(this,t,"file",r,[])||this}return __extends(t,e),t.prototype.suggestions=function(){return[]},t}(ECLScope),Folder=function(e){function t(t,r){return e.call(this,t,"folder",r,[])||this}return __extends(t,e),t.prototype.suggestions=function(){return modAttrs(this.sourcePath).map((function(e){return{name:path__namespace.basename(e,".ecl"),type:"folder"}}))},t}(ECLScope),Workspace=function(){function e(e,t){this._sourceByID=new util$m.DictionaryNoCase,this._sourceByPath=new util$m.Dictionary,this._test=new util$m.DictionaryNoCase,this._workspacePath=e,this._eclccPath=t}return e.prototype.refresh=function(){this.primeWorkspace(),this.primeClientTools()},e.prototype.primeClientTools=function(){var e=this;return locateClientTools(this._eclccPath,"",this._workspacePath).then((function(t){return e._clientTools=t,t.paths()})).then((function(t){for(var r=0,n=["ECLCC_ECLLIBRARY_PATH","ECLCC_PLUGIN_PATH"];r<n.length;r++){var o=n[r];t[o]&&fs__namespace.existsSync(t[o])&&e.walkChildFolders(t[o],t[o])}return e}))},e.prototype.primeWorkspace=function(){fs__namespace.existsSync(this._workspacePath)&&this.visitFolder(this._workspacePath,this._workspacePath)},e.prototype.walkChildFolders=function(e,t,r){void 0===r&&(r=!1);for(var n=0,o=modAttrs(e);n<o.length;n++){var i=o[n];isDirectory(i)?this.visitFolder(i,t,r):this.visitFile(i,t,r)}},e.prototype.visitFile=function(e,t,r){void 0===r&&(r=!1);var n=path__namespace.parse(e),o=path__namespace.join(n.dir,n.name),i=path__namespace.relative(t,o).split(path__namespace.sep).join(".");!r&&this._test.has(i)||this._test.set(i,new File("",e))},e.prototype.visitFolder=function(e,t,r){void 0===r&&(r=!1);var n=path__namespace.relative(t,e).split(path__namespace.sep).join(".");!r&&this._test.has(n)||(this._test.set(n,new Folder(n,e)),this.walkChildFolders(e,t,r))},e.prototype.buildStack=function(e,t,r){var n=t.split(".");r&&e[e.length-1]===n[0]&&n.shift();var o=__spreadArray(__spreadArray([],e,!0),n,!0),i=o.join(".");return{stack:o,qid:i}},e.prototype.walkECLScope=function(e,t){var r=this.buildStack(e,t.name,!0);this._test.set(r.qid,t);for(var n=0,o=t.definitions;n<o.length;n++){var i=o[n];this.walkDefinition(r.stack,i)}},e.prototype.walkField=function(e,t){var r=this.buildStack(e,t.name,!1);this._test.set(r.qid,t)},e.prototype.walkDefinition=function(e,t){var r=this.buildStack(e,t.name,!0);this.walkECLScope(e,t);for(var n=0,o=t.fields;n<o.length;n++){var i=o[n];this.walkField(r.stack,i)}},e.prototype.walkSource=function(e){this.walkECLScope([],e)},e.prototype.parseSources=function(e){void 0===e&&(e=[]);for(var t=0,r=e;t<r.length;t++){var n=r[t];if(n.$.name){var o=new Source(n);if(this._sourceByID.set(o.name,o),this._sourceByPath.set(o.sourcePath,o),o.name){var i=o.name.split(".").length;if(i>1){for(var s=o.sourcePath;i>1;)s=path__namespace.dirname(s),--i;this.visitFolder(s,path__namespace.dirname(s))}}this.walkSource(o)}}},e.prototype.parseMetaXML=function(e){var t=new MetaParser;return t.parse(e),this.parseSources(t.sources),t.sources.map((function(e){return path__namespace.normalize(e.$.sourcePath)}))},e.prototype.resolveQualifiedID=function(e,t,r){var n;if(!n&&this._test.has(t)&&(n=this._test.get(t).scope),!n&&this._sourceByPath.has(e)){for(var o=this._sourceByPath.get(e),i=t.split("."),s=0,A=o.imports;s<A.length;s++){var a=A[s];if(a.name.toLowerCase()===i[0].toLowerCase()){a.ref?i[0]=a.ref:i.shift();break}}var c=i.join(".");!n&&this._test.has(c)&&(n=this._test.get(c).scope),n||(c=__spreadArray(__spreadArray([],o.name.split("."),!0),i,!0).join("."),this._test.has(c)&&(n=this._test.get(c).scope))}return n},e.prototype.resolvePartialID=function(e,t,r){var n=(t=t.toLowerCase()).split(".");n.pop();var o=1===n.length?n[0]:n.join(".");return this.resolveQualifiedID(e,o,r)},e}(),workspaceCache=new util$m.Dictionary;function attachWorkspace(e,t){var r=path__namespace.normalize(e);if(!workspaceCache.has(r)){var n=new Workspace(r,t);workspaceCache.set(r,n),n.refresh()}return workspaceCache.get(r)}function isQualifiedIDChar(e,t,r){if(t<0)return!1;var n=e.charAt(t);return(r?/[a-zA-Z\d_\.$]/:/[a-zA-Z\d_]/).test(n)}function qualifiedIDBoundary(e,t,r){for(;isQualifiedIDChar(e,t,r);)t+=r?-1:1;return t+(r?1:-1)}var MetaParser=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.sources=[],t}return __extends(t,e),t.prototype.endXMLNode=function(t){if("Source"===t.name)this.sources.push(t);e.prototype.endXMLNode.call(this,t)},t}(util$m.SAXStackParser),logger=util$m.scopedLogger("clienttools/eclcc"),exeExt="Windows_NT"===os__namespace.type()?".exe":"";function tidyCRLF(e){return e.split("\r\n").join("\n").split("\r").join("\n")}var Version=function(){function e(e){this.prefix="",this.major=0,this.minor=0,this.patch=0,this.postfix="";var t=e.split(" ");if(t.length){var r=/(?:(\w+)_)?(\d+)\.(\d+)\.(\d+)(?:-(.*))?/.exec(t[t.length-1]);r&&(this.prefix=r[1]||"",this.major=+r[2]||0,this.minor=+r[3]||0,this.patch=+r[4]||0,this.postfix=r[5]||"")}}return e.prototype.parse=function(e){},e.prototype.exists=function(){return 0!==this.major||0!==this.minor||0!==this.patch||""!==this.postfix},e.prototype.compare=function(e){return this.major>e.major?1:this.major<e.major?-1:this.minor>e.minor?1:this.minor<e.minor?-1:this.patch>e.patch?1:this.patch<e.patch?-1:""===this.postfix&&""!==e.postfix?1:this.postfix.localeCompare(e.postfix)},e.prototype.toString=function(){return"".concat(this.prefix,"_").concat(this.major,".").concat(this.minor,".").concat(this.patch,"-").concat(this.postfix)},e}(),ERROR="error",WARN="warning",Errors=function(){function e(e){this.errWarn=[],this.errOther=[],this._checked=e}return e.prototype.checked=function(){return this._checked},e.prototype.all=function(){return this.errWarn},e.prototype.errors=function(){return this.errWarn.filter((function(e){return e.severity===ERROR}))},e.prototype.hasError=function(){return this.errors().length>0},e.prototype.warnings=function(){return this.errWarn.filter((function(e){return e.severity===WARN}))},e.prototype.hasWarning=function(){return this.warnings().length>0},e.prototype.info=function(){return this.errWarn.filter((function(e){return[ERROR,WARN].indexOf(e.severity)<0}))},e.prototype.hasOther=function(){return this.info().length>0},e.prototype.unknown=function(){return this.errOther},e.prototype.hasUnknown=function(){return this.unknown().length>0},e}(),EclccErrors=function(e){function t(t,r){var n=e.call(this,r)||this;if(t&&t.length)for(var o=0,i=t.split(os__namespace.EOL);o<i.length;o++){var s=i[o],A=/([a-zA-Z]:\\(?:[- \w\.\d]+\\)*(?:[- \w\.\d]+)?|(?:\/[\w\.\-]+)+)\((\d*),(\d*)\) ?: ?(error|warning|info) C(\d*) ?: ?(.*)/.exec(s);if(A){var a=A[1],c=A[2],u=A[3],l=A[4],d=+c,g=+u,h=A[5]+": "+A[6];n.errWarn.push({filePath:a,line:d,col:g,msg:h,severity:l})}else if(A=/(error|warning|info): (.*)/i.exec(s)){l=A[1],h=A[2];n.errWarn.push({filePath:"",line:0,col:0,msg:h,severity:l})}else(A=/\d error(s?), \d warning(s?)/.exec(s))||(logger.warning('parseECLErrors: Unable to parse "'.concat(s,'"')),n.errOther.push(s))}return n._checked=r,n}return __extends(t,e),t}(Errors),EnvchkErrors=function(e){function t(t,r,n){var o=e.call(this,n)||this,i=fs__namespace.readFileSync(t,"utf8");if(i=i.replace(/\r\n/g,"\n"),o._lines=i.split("\n"),r&&r.length)for(var s=0,A=r.split(os__namespace.EOL);s<A.length;s++){var a=A[s],c=/(Warning|Error) : Path\=(\S*?)(\[\S*\])? Message\=(.*)/.exec(a);if(c){var u=c[1],l=c[2],d=c[3],g=c[4],h="".concat(l," ").concat(d||"",": ").concat(g),p=o.locate(l),E=p[0],C=p[1];o.errWarn.push({filePath:t,line:E,col:C,msg:h,severity:u})}else c||(logger.warning('parseECLErrors: Unable to parse "'.concat(a,'"')),o.errOther.push(a))}return o._checked=n,o}return __extends(t,e),t.prototype.locate=function(e){var t=e.split("/");if(t.length&&""===t[0]&&t.shift(),t.length>0)for(var r=0,n=0,o=this._lines;n<o.length;n++){var i=o[n],s="<"+t[0];if((i.indexOf(s+" ")>=0||i.indexOf(s+">")>=0)&&(t.shift(),0===t.length))return[r+1,i.indexOf(s)+1];++r}return[0,0]},t}(Errors);function walkXmlJson(e,t,r){for(var n in(r=r||[]).push(e),e)if(e.hasOwnProperty(n)){var o=e[n];t(n,o,r),o instanceof Array?o.forEach((function(e){walkXmlJson(e,t,r)})):"object"==typeof o&&walkXmlJson(o,t,r)}r.pop()}var allClientToolsCache,LocalWorkunit=function(){function e(e){this.jsonWU=e}return e.prototype.bpGetValidLocations=function(e){var t=[];if(util$m.exists("W_LOCAL.Graphs",this.jsonWU)){var r="";walkXmlJson(this.jsonWU.W_LOCAL.Graphs,(function(n,o,i){if("$"===n&&o.id&&(r=o.id),"$"===n&&"definition"===o.name){var s=/([a-z,A-Z]:\\(?:[-\w\.\d]+\\)*(?:[-\w\.\d]+)?|(?:\/[\w\.\-]+)+)\((\d*),(\d*)\)/.exec(o.value);if(s){var A=s[1],a=+s[2],c=+s[3];e===A&&t.push({file:A,line:a,col:c,id:r})}}}))}return t},e}(),ClientTools=function(){function e(e,t,r,n,o,i){void 0===r&&(r=[]),void 0===n&&(n=!1),void 0===o&&(o=[]),this._paths={},this.eclccPath=e,this.binPath=path__namespace.dirname(this.eclccPath),this.envchkPath=path__namespace.join(this.binPath,"envchk"+exeExt),this.eclBundlePath=path__namespace.join(this.binPath,"ecl-bundle"+exeExt),this.cwd=path__namespace.normalize(t||this.binPath),this.includeFolders=r,this._legacyMode=n,this._args=o,this._version=i}return e.prototype.clone=function(t,r,n,o){return void 0===n&&(n=!1),void 0===o&&(o=[]),new e(this.eclccPath,t,r,n,o,this._version)},e.prototype.exists=function(e){try{return fs__namespace.accessSync(e),!0}catch(e){}return!1},e.prototype.args=function(e){void 0===e&&(e=[]);var t=__spreadArray([],this._args,!0);return this._legacyMode&&t.push("-legacy"),t.concat(this.includeFolders.map((function(e){return"-I"+path__namespace.normalize(e)}))).concat(e)},e.prototype.version=function(){var e=this;return this._version?Promise.resolve(this._version):this.execFile(this.eclccPath,this.binPath,this.args(["--version"]),"eclcc","Cannot find ".concat(this.eclccPath)).then((function(t){return e._version=new Version(t.stdout),e._version}))},e.prototype.versionSync=function(){return this._version},e.prototype.paths=function(){var e=this;return this.execFile(this.eclccPath,this.cwd,this.args(["-showpaths"]),"eclcc","Cannot find ".concat(this.eclccPath)).then((function(t){if(t&&t.stdout&&t.stdout.length)for(var r=0,n=t.stdout.split(/\r?\n/);r<n.length;r++){var o=n[r].split("=");2===o.length&&(e._paths[o[0]]=o[1])}return e._paths}))},e.prototype.loadXMLDoc=function(e,t){return new Promise((function(r,n){var o=fs__namespace.readFileSync(e,"ascii"),i=util$m.xml2json(o);t&&fs__namespace.unlink(e,(function(e){})),r(i)}))},e.prototype.createWU=function(e){var t=this,r=tmp__namespace.tmpNameSync({prefix:"eclcc-wu-tmp",postfix:""}),n=["-o"+r,"-wu"].concat([e]);return this.execFile(this.eclccPath,this.cwd,this.args(n),"eclcc","Cannot find ".concat(this.eclccPath)).then((function(e){var n=path__namespace.normalize(r+".xml");return(t.exists(n)?t.loadXMLDoc(n,!0):Promise.resolve({})).then((function(e){return new LocalWorkunit(e)}))}))},e.prototype.createArchive=function(e){var t=["-E"].concat([e]);return this.execFile(this.eclccPath,this.cwd,this.args(t),"eclcc","Cannot find ".concat(this.eclccPath)).then((function(e){return{content:e.stdout,err:new EclccErrors(e.stderr,[])}}))},e.prototype.attachWorkspace=function(){return attachWorkspace(this.cwd)},e.prototype.fetchMeta=function(e){return Promise.all([attachWorkspace(this.cwd),this.execFile(this.eclccPath,this.cwd,this.args(["-M",e]),"eclcc","Cannot find ".concat(this.eclccPath))]).then((function(e){var t=e[0],r=e[1];return r&&r.stdout&&r.stdout.length&&t.parseMetaXML(r.stdout),t}))},e.prototype.syntaxCheck=function(e,t){return void 0===t&&(t=["-syntax"]),Promise.all([attachWorkspace(this.cwd),this.execFile(this.eclccPath,this.cwd,this.args(__spreadArray(__spreadArray([],t,!0),["-M",e],!1)),"eclcc","Cannot find ".concat(this.eclccPath))]).then((function(e){var t=e[0],r=e[1],n=[];return r&&r.stdout&&r.stdout.length&&(n=t.parseMetaXML(r.stdout)),new EclccErrors(r?r.stderr:"",n)}))},e.prototype.envCheck=function(e,t){return void 0===t&&(t=[]),Promise.all([attachWorkspace(this.cwd),this.execFile(this.envchkPath,this.cwd,this.args(__spreadArray(__spreadArray([],t,!0),[e],!1)),"envchk","Cannot find ".concat(this.envchkPath))]).then((function(t){t[0];var r=t[1];return new EnvchkErrors(e,r?r.stderr:"",[])}))},e.prototype.bundleList=function(){var e=this,t=/\|(.*)\|(.*)\|(.*)\|/g;return Promise.all([fetch("https://raw.githubusercontent.com/hpcc-systems/ecl-bundles/master/README.rst").then((function(e){return e.text()})).then((function(e){for(var r=[],n=t.exec(e);n;)r.push({name:n[1].trim(),description:n[2].trim(),url:n[3].trim()}),n=t.exec(e);return r})),this.execFile(this.eclBundlePath,this.cwd,this.args(["list"]),"ecl-bundle","Cannot find ".concat(this.eclBundlePath)).then((function(e){return tidyCRLF(e.stdout).split("\n")})).then((function(t){var r={};return Promise.all(t.filter((function(e){return!!e})).map((function(t){return e.execFile(e.eclBundlePath,e.cwd,e.args(["info",t]),"ecl-bundle","Cannot find ".concat(e.eclBundlePath)).then((function(e){return tidyCRLF(e.stdout).split("\n")})).then((function(e){var n={};e.forEach((function(e){var t=e.split(":");n[t.shift().trim()]=t.join(":").trim()})),r[t]={name:t,props:n}}))}))).then((function(){return r}))}))]).then((function(e){var t=e[0],r=e[1];for(var n in t.forEach((function(e){r[e.name]&&(e.props=r[e.name].props,delete r[e.name])})),r)t.push({name:n,url:"",description:"",props:r[n].props});return t})).catch((function(e){return[]}))},e.prototype.bundleInstall=function(e){return Promise.all([attachWorkspace(this.cwd),this.execFile(this.eclBundlePath,this.cwd,this.args(["install",e]),"ecl-bundle","Cannot find ".concat(this.eclBundlePath))]).then((function(e){return e[0],e[1]}))},e.prototype.bundleUninstall=function(e){return Promise.all([attachWorkspace(this.cwd),this.execFile(this.eclBundlePath,this.cwd,this.args(["uninstall",e]),"ecl-bundle","Cannot find ".concat(this.eclBundlePath))]).then((function(e){return e[0],e[1]}))},e.prototype.execFile=function(e,t,r,n,o){return new Promise((function(n,o){logger.debug("".concat(e," ").concat(r.join(" ")));var i=cp__namespace.spawn(e,r,{cwd:t}),s="",A="";i.stdout.on("data",(function(e){s+=e.toString()})),i.stderr.on("data",(function(e){A+=e.toString()})),i.on("close",(function(e,t){n({code:e,stdout:s.trim(),stderr:A.trim()})}))}))},e}();function locateClientToolsInFolder(e,t){if(e){var r=path__namespace.join(e,"HPCCSystems");if(fs__namespace.existsSync(r)&&fs__namespace.statSync(r).isDirectory()){if("Windows_NT"!==os__namespace.type()){var n=path__namespace.join(r,"bin","eclcc");fs__namespace.existsSync(n)&&t.push(new ClientTools(n))}fs__namespace.readdirSync(r).forEach((function(e){var n=path__namespace.join(r,e,"clienttools","bin","eclcc"+exeExt);if(fs__namespace.existsSync(n)){var o=path__namespace.basename(e);new Version(o).exists()&&t.push(new ClientTools(n))}}))}}}function clearAllClientToolsCache(){allClientToolsCache=void 0}function locateAllClientTools(){if(allClientToolsCache)return allClientToolsCache;var e=[];switch(os__namespace.type()){case"Windows_NT":var t=process.env["ProgramFiles(x86)"]||"";t&&locateClientToolsInFolder(t,e);var r=process.env.ProgramFiles||"";r&&locateClientToolsInFolder(r,e),t||r||locateClientToolsInFolder("c:\\Program Files (x86)",e);break;case"Linux":case"Darwin":locateClientToolsInFolder("/opt",e)}return allClientToolsCache=Promise.all(e.map((function(e){return e.version()}))).then((function(){return e.sort((function(e,t){return t.versionSync().compare(e.versionSync())})),e}))}var eclccPathMsg="";function logEclccPath(e){var t="Using eclccPath setting: ".concat(e);eclccPathMsg!==t&&(logger.info(t),eclccPathMsg=t)}function locateClientTools(e,t,r,n,o,i){return void 0===e&&(e=""),void 0===t&&(t=""),void 0===r&&(r="."),void 0===n&&(n=[]),void 0===o&&(o=!1),void 0===i&&(i=[]),e&&fs__namespace.existsSync(e)?(logEclccPath(e),Promise.resolve(new ClientTools(e,r,n,o,i))):locateAllClientTools().then((function(e){if(!e.length)throw new Error("Unable to locate ECL Client Tools.");for(var s,A,a=new Version(t),c=0,u=e;c<u.length;c++){var l=u[c],d=l.versionSync();if(d.exists()&&(s||(s=l),A||a.major!==d.major||(A=l),a.major===d.major&&a.minor===d.minor))return l.clone(r,n,o,i)}var g=A||s;return logEclccPath(g.eclccPath),g.clone(r,n,o,i)}))}util$m.root.DOMParser=xmldom.DOMParser,void 0===util$m.root.fetch?(util$m.root.fetch=fetch__default.default,util$m.root.fetch.__rejectUnauthorizedAgent=new https__namespace.Agent({rejectUnauthorized:!1})):(util$m.root.fetch.__defaultAgent=new Agent_1,util$m.root.fetch.__rejectUnauthorizedAgent=new Agent_1({connect:{rejectUnauthorized:!1}}),util$m.root.fetch.__setGlobalDispatcher=setGlobalDispatcher_1),void 0===util$m.root.AbortController&&(util$m.root.AbortController=AbortController__default.default);var globalCA="";void 0!==https__namespace.globalAgent.options.ca&&(Array.isArray(https__namespace.globalAgent.options.ca)&&https__namespace.globalAgent.options.ca.length?"string"==typeof https__namespace.globalAgent.options.ca[0]?globalCA=https__namespace.globalAgent.options.ca.join("\n"):https__namespace.globalAgent.options.ca[0]instanceof safeBuffer.Buffer&&(globalCA=https__namespace.globalAgent.options.ca.map((function(e){return e.toString()})).join("\n")):"string"==typeof https__namespace.globalAgent.options.ca?globalCA=https__namespace.globalAgent.options.ca:https__namespace.globalAgent.options.ca instanceof safeBuffer.Buffer&&(globalCA=https__namespace.globalAgent.options.ca.toString()),globalCA+="\n"),util$m.root.fetch.__trustwaveAgent=new https__namespace.Agent({ca:globalCA+trustwave}),void 0===util$m.root.btoa&&(util$m.root.btoa=function(e){return safeBuffer.Buffer.from(e||"","utf8").toString("base64")}),exports.AccessService=AccessService,exports.AccountService=AccountService,exports.Activity=Activity,exports.Attr=Attr,exports.Attribute=Attribute,exports.BUILD_VERSION=BUILD_VERSION,exports.BaseScope=BaseScope,exports.ClientTools=ClientTools,exports.CloudService=CloudService,exports.CodesignService=CodesignService,exports.Connection=Connection,exports.DFUArrayActions=DFUArrayActions,exports.DFUChangeProtection=DFUChangeProtection,exports.DFUChangeRestriction=DFUChangeRestriction,exports.DFUDefFileFormat=DFUDefFileFormat,exports.DFUService=DFUService,exports.DFUWorkunit=DFUWorkunit,exports.DFUWorkunitCache=DFUWorkunitCache,exports.DFUXRefService=DFUXRefService,exports.DaliService=DaliService,exports.Definition=Definition,exports.ECLGraph=ECLGraph,exports.ECLScope=ECLScope,exports.ESPConnection=ESPConnection,exports.ESPExceptions=ESPExceptions,exports.EclService=EclService,exports.EclccErrors=EclccErrors,exports.ElkService=ElkService,exports.EnvchkErrors=EnvchkErrors,exports.Errors=Errors,exports.Field=Field,exports.File=File,exports.FileSprayService=FileSprayService,exports.Folder=Folder,exports.GlobalResultCache=GlobalResultCache,exports.GraphCache=GraphCache,exports.Import=Import,exports.LocalWorkunit=LocalWorkunit,exports.LogaccessService=LogaccessService,exports.LogicalFile=LogicalFile,exports.LogicalFileCache=LogicalFileCache,exports.Machine=Machine,exports.MachineCache=MachineCache,exports.MachineService=MachineService,exports.PKG_NAME=PKG_NAME,exports.PKG_VERSION=PKG_VERSION,exports.PackageProcessService=PackageProcessService,exports.Query=Query,exports.Resource=Resource,exports.ResourcesService=ResourcesService,exports.Result=Result,exports.ResultCache=ResultCache,exports.SMCService=SMCService,exports.Scope=Scope,exports.ScopeEdge=ScopeEdge,exports.ScopeGraph=ScopeGraph,exports.ScopeSubgraph=ScopeSubgraph,exports.ScopeVertex=ScopeVertex,exports.Service=Service,exports.Source=Source,exports.SourceFile=SourceFile,exports.Store=Store,exports.StoreCache=StoreCache,exports.StoreService=StoreService,exports.TargetCluster=TargetCluster,exports.TargetClusterCache=TargetClusterCache,exports.Timer=Timer,exports.Topology=Topology,exports.TopologyCache=TopologyCache,exports.TopologyService=TopologyService,exports.ValueChangedMessage=ValueChangedMessage,exports.Version=Version,exports.Workspace=Workspace,exports.Workunit=Workunit,exports.WorkunitCache=WorkunitCache,exports.WorkunitsService=WorkunitsService,exports.WorkunitsServiceEx=WorkunitsServiceEx,exports.XGMMLEdge=XGMMLEdge,exports.XGMMLGraph=XGMMLGraph,exports.XGMMLSubgraph=XGMMLSubgraph,exports.XGMMLVertex=XGMMLVertex,exports.XSDNode=XSDNode,exports.XSDSchema=XSDSchema,exports.XSDSimpleType=XSDSimpleType,exports.XSDXMLNode=XSDXMLNode,exports.attachWorkspace=attachWorkspace,exports.clearAllClientToolsCache=clearAllClientToolsCache,exports.createGraph=createGraph,exports.createXGMMLGraph=createXGMMLGraph,exports.defaultTargetCluster=defaultTargetCluster,exports.deserializeResponse=deserializeResponse,exports.get=get,exports.hookSend=hookSend,exports.instanceOfIConnection=instanceOfIConnection,exports.instanceOfIOptions=instanceOfIOptions,exports.isArray=isArray,exports.isECLResult=isECLResult,exports.isExceptions=isExceptions,exports.isWUInfoWorkunit=isWUInfoWorkunit,exports.isWUQueryECLWorkunit=isWUQueryECLWorkunit,exports.jsonp=jsonp,exports.locateAllClientTools=locateAllClientTools,exports.locateClientTools=locateClientTools,exports.parseXSD=parseXSD,exports.parseXSD2=parseXSD2,exports.post=post,exports.qualifiedIDBoundary=qualifiedIDBoundary,exports.send=send,exports.serializeRequest=serializeRequest,exports.setTransportFactory=setTransportFactory,exports.targetClusters=targetClusters,exports.walkXmlJson=walkXmlJson;
2
5
  //# sourceMappingURL=index.node.min.js.map