mirror of https://github.com/tc39/test262.git
1 line
283 KiB
JSON
1 line
283 KiB
JSON
{"testsCollection":{"name":"Chapter - 15.4.4.18","numTests":"186","tests":[{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoIHsKaWQ6ICIxNS40LjQuMTgtMC0xIiwKCnBhdGg6ICJUZXN0Q2FzZXMvY2hhcHRlcjE1LzE1LjQvMTUuNC40LzE1LjQuNC4xOC8xNS40LjQuMTgtMC0xLmpzIiwKCmRlc2NyaXB0aW9uOiAiQXJyYXkucHJvdG90eXBlLmZvckVhY2ggbXVzdCBleGlzdCBhcyBhIGZ1bmN0aW9uIiwKCnRlc3Q6IGZ1bmN0aW9uIHRlc3RjYXNlKCkgewogIHZhciBmID0gQXJyYXkucHJvdG90eXBlLmZvckVhY2g7CiAgaWYgKHR5cGVvZihmKSA9PT0gImZ1bmN0aW9uIikgewogICAgcmV0dXJuIHRydWU7CiAgfQogfQp9KTsK","id":"15.4.4.18-0-1","path":"TestCases/chapter15/15.4/15.4.4/15.4.4.18/15.4.4.18-0-1.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoIHsKaWQ6ICIxNS40LjQuMTgtMC0yIiwKCnBhdGg6ICJUZXN0Q2FzZXMvY2hhcHRlcjE1LzE1LjQvMTUuNC40LzE1LjQuNC4xOC8xNS40LjQuMTgtMC0yLmpzIiwKCmRlc2NyaXB0aW9uOiAiQXJyYXkucHJvdG90eXBlLmZvckVhY2gubGVuZ3RoIG11c3QgYmUgMSIsCgp0ZXN0OiBmdW5jdGlvbiB0ZXN0Y2FzZSgpIHsKICBpZiAoQXJyYXkucHJvdG90eXBlLmZvckVhY2gubGVuZ3RoID09PSAxKSB7CiAgICByZXR1cm4gdHJ1ZTsKICB9CiB9LAoKcHJlY29uZGl0aW9uOiBmdW5jdGlvbiBwcmVyZXEoKSB7CiAgcmV0dXJuIGZuRXhpc3RzKEFycmF5LnByb3RvdHlwZS5mb3JFYWNoKTsKIH0KfSk7Cg==","id":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AgICAgZnVuY3Rpb24gY2FsbGJhY2tmbih2YWwsIGlkeCwgb2JqKSB7CiAgICAgICAgICAgIHJlc3VsdCA9ICgnW29iamVjdCBNYXRoXScgPT09IE9iamVjdC5wcm90b3R5cGUudG9TdHJpbmcuY2FsbChvYmopKTsKICAgICAgICB9CgogICAgICAgIHRyeSB7CiAgICAgICAgICAgIE1hdGgubGVuZ3RoID0gMTsKICAgICAgICAgICAgTWF0aFswXSA9IDE7CiAgICAgICAgICAgIEFycmF5LnByb3RvdHlwZS5mb3JFYWNoLmNhbGwoTWF0aCwgY2FsbGJhY2tmbik7CiAgICAgICAgICAgIHJldHVybiByZXN1bHQ7CiAgICAgICAgfSBmaW5hbGx5IHsKICAgICAgICAgICAgZGVsZXRlIE1hdGhbMF07CiAgICAgICAgICAgIGRlbGV0ZSBNYXRoLmxlbmd0aDsKICAgICAgICB9CiAgICB9LAoKICAgIHByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogICAgICAgIHJldHVybiBmbkV4aXN0cyhBcnJheS5wcm90b3R5cGUuZm9yRWFjaCk7CiAgICB9Cgp9KTsK","id":"15.4.4.18-1-10","path":"TestCases/chapter15/15.4/15.4.4/15.4.4.18/15.4.4.18-1-10.js"},{"code":"77u/Ly8vIENvcHlyaWdodCAoYykgMjAwOSBNaWNyb3NvZnQgQ29ycG9yYXRpb24gCi8vLyAKLy8vIFJlZGlzdHJpYnV0aW9uIGFuZCB1c2UgaW4gc291cmNlIGFuZCBiaW5hcnkgZm9ybXMsIHdpdGggb3Igd2l0aG91dCBtb2RpZmljYXRpb24sIGFyZSBwZXJtaXR0ZWQgcHJvdmlkZWQKLy8vIHRoYXQgdGhlIGZvbGxvd2luZyBjb25kaXRpb25zIGFyZSBtZXQ6IAovLy8gICAgKiBSZWRpc3RyaWJ1dGlvbnMgb2Ygc291cmNlIGNvZGUgbXVzdCByZXRhaW4gdGhlIGFib3ZlIGNvcHlyaWdodCBub3RpY2UsIHRoaXMgbGl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wgRVZFTiBJRgovLy8gQURWSVNFRCBPRiBUSEUgUE9TU0lCSUxJVFkgT0YgU1VDSCBEQU1BR0UuCgoKCkVTNUhhcm5lc3MucmVnaXN0ZXJUZXN0KHsKCiAgICBpZDogIjE1LjQuNC4xOC0xLTEzIiwKCiAgICBwYXRoOiAiVGVzdENhc2VzL2NoYXB0ZXIxNS8xNS40LzE1LjQuNC8xNS40LjQuMTgvMTUuNC40LjE4LTEtMTMuanMiLAoKICAgIGRlc2NyaXB0aW9uOiAiQXJyYXkucHJvdG90eXBlLmZvckVhY2ggYXBwbGllZCB0byB0aGUgSlNPTiBvYmplY3QiLAoKICAgIHRlc3Q6IGZ1bmN0aW9uIHRlc3RjYXNlKCkgewogICAgICAgIHZhciByZXN1bHQgPSBmYWxzZTsKICAgICAgICBmdW5jdGlvbiBjYWxsYmFja2ZuKHZhbCwgaWR4LCBvYmopIHsKICAgICAgICAgICAgcmVzdWx0ID0gKCdbb2JqZWN0IEpTT05dJyA9PT0gT2JqZWN0LnByb3RvdHlwZS50b1N0cmluZy5jYWxsKG9iaikpOwogICAgICAgIH0KCiAgICAgICAgdHJ5IHsKICAgICAgICAgICAgSlNPTi5sZW5ndGggPSAxOwogICAgICAgICAgICBKU09OWzBdID0gMTsKICAgICAgICAgICAgQXJyYXkucHJvdG90eXBlLmZvckVhY2guY2FsbChKU09OLCBjYWxsYmFja2ZuKTsKICAgICAgICAgICAgcmV0dXJuIHJlc3VsdDsKICAgICAgICB9IGZpbmFsbHkgewogICAgICAgICAgICBkZWxldGUgSlNPTi5sZW5ndGg7CiAgICAgICAgICAgIGRlbGV0ZSBKU09OWzBdOwogICAgICAgIH0KICAgIH0sCgogICAgcHJlY29uZGl0aW9uOiBmdW5jdGlvbiBwcmVyZXEoKSB7CiAgICAgICAgcmV0dXJuIGZuRXhpc3RzKEFycmF5LnByb3RvdHlwZS5mb3JFYWNoKTsKICAgIH0KCn0pOwo=","id":"15.4.4.18-1-13","path":"TestCases/chapter15/15.4/15.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XN0KHsKCiAgICBpZDogIjE1LjQuNC4xOC0xLTE0IiwKCiAgICBwYXRoOiAiVGVzdENhc2VzL2NoYXB0ZXIxNS8xNS40LzE1LjQuNC8xNS40LjQuMTgvMTUuNC40LjE4LTEtMTQuanMiLAoKICAgIGRlc2NyaXB0aW9uOiAiQXJyYXkucHJvdG90eXBlLmZvckVhY2ggYXBwbGllZCB0byBFcnJvciBvYmplY3QiLAoKICAgIHRlc3Q6IGZ1bmN0aW9uIHRlc3RjYXNlKCkgewogICAgICAgIHZhciByZXN1bHQgPSBmYWxzZTsKICAgICAgICBmdW5jdGlvbiBjYWxsYmFja2ZuKHZhbCwgaWR4LCBvYmopIHsKICAgICAgICAgICAgcmVzdWx0ID0gb2JqIGluc3RhbmNlb2YgRXJyb3I7CiAgICAgICAgfQoKICAgICAgICB2YXIgb2JqID0gbmV3IEVycm9yKCk7CiAgICAgICAgb2JqLmxlbmd0aCA9IDE7CiAgICAgICAgb2JqWzBdID0gMTsKCiAgICAgICAgQXJyYXkucHJvdG90eXBlLmZvckVhY2guY2FsbChvYmosIGNhbGxiYWNrZm4pOwogICAgICAgIHJldHVybiByZXN1bHQ7CiAgICB9LAoKICAgIHByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogICAgICAgIHJldHVybiBmbkV4aXN0cyhBcnJheS5wcm90b3R5cGUuZm9yRWFjaCk7CiAgICB9Cgp9KTsK","id":"15.4.4.18-1-14","path":"TestCases/chapter15/15.4/15.4.4/15.4.4.18/15.4.4.18-1-14.js"},{"code":"77u/Ly8vIENvcHlyaWdodCAoYykgMjAwOSBNaWNyb3NvZnQgQ29ycG9yYXRpb24gCi8vLyAKLy8vIFJlZGlzdHJpYnV0aW9uIGFuZCB1c2UgaW4gc291cmNlIGFuZCBiaW5hcnkgZm9ybXMsIHdpdGggb3Igd2l0aG91dCBtb2RpZmljYXRpb24sIGFyZSBwZXJtaXR0ZWQgcHJvdmlkZWQKLy8vIHRoYXQgdGhlIGZvb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hc2UoKSB7CiAgICAgICAgdmFyIHJlc3VsdCA9IGZhbHNlOwogICAgICAgIGZ1bmN0aW9uIGNhbGxiYWNrZm4odmFsLCBpZHgsIG9iaikgewogICAgICAgICAgICByZXN1bHQgPSAoJ1tvYmplY3QgQXJndW1lbnRzXScgPT09IE9iamVjdC5wcm90b3R5cGUudG9TdHJpbmcuY2FsbChvYmopKTsKICAgICAgICB9CgogICAgICAgIHZhciBvYmogPSAoZnVuY3Rpb24gKCkgewogICAgICAgICAgICByZXR1cm4gYXJndW1lbnRzOwogICAgICAgIH0oImEiLCAiYiIpKTsKCiAgICAgICAgQXJyYXkucHJvdG90eXBlLmZvckVhY2guY2FsbChvYmosIGNhbGxiYWNrZm4pOwogICAgICAgIHJldHVybiByZXN1bHQ7CiAgICB9LAoKICAgIHByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogICAgICAgIHJldHVybiBmbkV4aXN0cyhBcnJheS5wcm90b3R5cGUuZm9yRWFjaCk7CiAgICB9Cgp9KTsK","id":"15.4.4.18-1-15","path":"TestCases/chapter15/15.4/15.4.4/15.4.4.18/15.4.4.18-1-15.js"},{"code":"77u/Ly8vIENvcHlyaWdodCAoYykgMjAwOSBNaWNyb3NvZnQgQ29ycG9yYXRpb24gCi8vLyAKLy8vIFJlZGlzdHJpYnV0aW9uIGFuZCB1c2UgaW4gc291cmNlIGFuZCBiaW5hcnkgZm9ybXMsIHdpdGggb3Igd2l0aG91dCBtb2RpZmljYXRpb24sIGFyZSBwZXJtaXR0ZWQgcHJvdmlkZWQKLy8vIHRoYXQgdGhlIGZvbGxvd2luZyBjb25kaXRpb25zIGFyZSBtZXQ6IAovLy8gICAgKiBSZWRpc3RyaWJ1dGlvbnMgb2Ygc291cmNlIGNvZGUgbXVzdCByZXRhaW4gdGhlIGFib3ZlIGNvcHlyaWdodCBub3RpY2UsIHRoaXMgbGlzdCBvZiBjb25kaXRpb25zIGFuZAovLy8gICAgICB0aGUgZm9sbG93aW5n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FRIRSBVU0UgT0YgVEhJUyBTT0ZUV0FSRSwgRVZFTiBJRgovLy8gQURWSVNFRCBPRiBUSEUgUE9TU0lCSUxJVFkgT0YgU1VDSCBEQU1BR0UuCgoKCkVTNUhhcm5lc3MucmVnaXN0ZXJUZXN0KHsKCiAgICBpZDogIjE1LjQuNC4xOC0xLTQiLAoKICAgIHBhdGg6ICJUZXN0Q2FzZXMvY2hhcHRlcjE1LzE1LjQvMTUuNC40LzE1LjQuNC4xOC8xNS40LjQuMTgtMS00LmpzIiwKCiAgICBkZXNjcmlwdGlvbjogIkFycmF5LnByb3RvdHlwZS5mb3JFYWNoIGFwcGxpZWQgdG8gQm9vbGVhbiBvYmplY3QiLAoKICAgIHRlc3Q6IGZ1bmN0aW9uIHRlc3RjYXNlKCkgewogICAgICAgIHZhciByZXN1bHQgPSBmYWxzZTsKICAgICAgICBmdW5jdGlvbiBjYWxsYmFja2ZuKHZhbCwgaWR4LCBvYmopIHsKICAgICAgICAgICAgcmVzdWx0ID0gb2JqIGluc3RhbmNlb2YgQm9vbGVhbjsKICAgICAgICB9CgogICAgICAgIHZhciBvYmogPSBuZXcgQm9vbGVhbih0cnVlKTsKICAgICAgICBvYmoubGVuZ3RoID0gMjsKICAgICAgICBvYmpbMF0gPSAxMTsKICAgICAgICBvYmpbMV0gPSAxMjsKCiAgICAgICAgQXJyYXkucHJvdG90eXBlLmZvckVhY2guY2FsbChvYmosIGNhbGxiYWNrZm4pOwogICAgICAgIHJldHVybiByZXN1bHQ7CiAgICB9LAoKICAgIHByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogICAgICAgIHJldHVybiBmbkV4aXN0cyhBcnJheS5wcm90b3R5cGUuZm9yRWFjaCk7CiAgICB9Cgp9KTsK","id":"15.4.4.18-1-4","path":"TestCases/chapter15/15.4/15.4.4/15.4.4.18/15.4.4.18-1-4.js"},{"code":"77u/Ly8vIENvcHlyaWdodCAoYykgMjAwOSBNaWNyb3NvZnQgQ29ycG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E1LjQvMTUuNC40LzE1LjQuNC4xOC8xNS40LjQuMTgtMS01LmpzIiwKCiAgICBkZXNjcmlwdGlvbjogIkFycmF5LnByb3RvdHlwZS5mb3JFYWNoIGFwcGxpZWQgdG8gbnVtYmVyIHByaW1pdGl2ZSIsCgogICAgdGVzdDogZnVuY3Rpb24gdGVzdGNhc2UoKSB7CiAgICAgICAgdmFyIHJlc3VsdCA9IGZhbHNlOwogICAgICAgIGZ1bmN0aW9uIGNhbGxiYWNrZm4odmFsLCBpZHgsIG9iaikgewogICAgICAgICAgICByZXN1bHQgPSBvYmogaW5zdGFuY2VvZiBOdW1iZXI7CiAgICAgICAgfQoKICAgICAgICB0cnkgewogICAgICAgICAgICBOdW1iZXIucHJvdG90eXBlWzBdID0gMTsKICAgICAgICAgICAgTnVtYmVyLnByb3RvdHlwZS5sZW5ndGggPSAxOwoKICAgICAgICAgICAgQXJyYXkucHJvdG90eXBlLmZvckVhY2guY2FsbCgyLjUsIGNhbGxiYWNrZm4pOwogICAgICAgICAgICByZXR1cm4gcmVzdWx0OwogICAgICAgIH0gZmluYWxseSB7CiAgICAgICAgICAgIGRlbGV0ZSBOdW1iZXIucHJvdG90eXBlWzBdOwogICAgICAgICAgICBkZWxldGUgTnVtYmVyLnByb3RvdHlwZS5sZW5ndGg7CiAgICAgICAgfQogICAgfSwKCiAgICBwcmVjb25kaXRpb246IGZ1bmN0aW9uIHByZXJlcSgpIHsKICAgICAgICByZXR1cm4gZm5FeGlzdHMoQXJyYXkucHJvdG90eXBlLmZvckVhY2gpOwogICAgfQoKfSk7Cg==","id":"15.4.4.18-1-5","path":"TestCases/chapter15/15.4/15.4.4/15.4.4.18/15.4.4.18-1-5.js"},{"code":"77u/Ly8vIENvcHlyaWdodCAoYykgMjAwOSBNaWNyb3NvZnQgQ29ycG9yYXRpb24gCi8vLyAKLy8vIFJlZGlzdHJpYnV0aW9uIGFuZCB1c2UgaW4gc291cmNlIGFuZCBiaW5hcnkgZm9ybXMsIHdpdGggb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b3JFYWNoIGFwcGxpZWQgdG8gTnVtYmVyIG9iamVjdCIsCgogICAgdGVzdDogZnVuY3Rpb24gdGVzdGNhc2UoKSB7CiAgICAgICAgdmFyIHJlc3VsdCA9IGZhbHNlOwogICAgICAgIGZ1bmN0aW9uIGNhbGxiYWNrZm4odmFsLCBpZHgsIG9iaikgewogICAgICAgICAgICByZXN1bHQgPSBvYmogaW5zdGFuY2VvZiBOdW1iZXI7CiAgICAgICAgfQoKICAgICAgICB2YXIgb2JqID0gbmV3IE51bWJlcigtMTI4KTsKICAgICAgICBvYmoubGVuZ3RoID0gMjsKICAgICAgICBvYmpbMF0gPSAxMTsKICAgICAgICBvYmpbMV0gPSAxMjsKCiAgICAgICAgQXJyYXkucHJvdG90eXBlLmZvckVhY2guY2FsbChvYmosIGNhbGxiYWNrZm4pOwoKICAgICAgICByZXR1cm4gcmVzdWx0OwogICAgfSwKCiAgICBwcmVjb25kaXRpb246IGZ1bmN0aW9uIHByZXJlcSgpIHsKICAgICAgICByZXR1cm4gZm5FeGlzdHMoQXJyYXkucHJvdG90eXBlLmZvckVhY2gpOwogICAgfQoKfSk7Cg==","id":"15.4.4.18-1-6","path":"TestCases/chapter15/15.4/15.4.4/15.4.4.18/15.4.4.18-1-6.js"},{"code":"77u/Ly8vIENvcHlyaWdodCAoYykgMjAwOSBNaWNyb3NvZnQgQ29ycG9yYXRpb24gCi8vLyAKLy8vIFJlZGlzdHJpYnV0aW9uIGFuZCB1c2UgaW4gc291cmNlIGFuZCBiaW5hcnkgZm9ybXMsIHdpdGggb3Igd2l0aG91dCBtb2RpZmljYXRpb24sIGFyZSBwZXJtaXR0ZWQgcHJvdmlkZWQKLy8vIHRoYXQgdGhlIGZvbGxvd2luZyBjb25kaXRpb25zIGFyZSBtZXQ6IAovLy8gICAgKiBSZWRpc3RyaWJ1dGlvbnMgb2Ygc291cmNlIGNvZGUgbXVzdCByZXRhaW4gdGhlIGFib3ZlIGNvcHlyaWdodCBub3RpY2UsIHRoaXMg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uNC4xOC0xLTkiLAoKICAgIHBhdGg6ICJUZXN0Q2FzZXMvY2hhcHRlcjE1LzE1LjQvMTUuNC40LzE1LjQuNC4xOC8xNS40LjQuMTgtMS05LmpzIiwKCiAgICBkZXNjcmlwdGlvbjogIkFycmF5LnByb3RvdHlwZS5mb3JFYWNoIGFwcGxpZWQgdG8gRnVuY3Rpb24gb2JqZWN0IiwKCiAgICB0ZXN0OiBmdW5jdGlvbiB0ZXN0Y2FzZSgpIHsKICAgICAgICB2YXIgcmVzdWx0ID0gZmFsc2U7CiAgICAgICAgZnVuY3Rpb24gY2FsbGJhY2tmbih2YWwsIGlkeCwgb2JqKSB7CiAgICAgICAgICAgIHJlc3VsdCA9IG9iaiBpbnN0YW5jZW9mIEZ1bmN0aW9uOwogICAgICAgIH0KCiAgICAgICAgdmFyIG9iaiA9IGZ1bmN0aW9uIChhLCBiKSB7CiAgICAgICAgICAgIHJldHVybiBhICsgYjsKICAgICAgICB9OwogICAgICAgIG9ialswXSA9IDExOwogICAgICAgIG9ialsxXSA9IDk7CgogICAgICAgIEFycmF5LnByb3RvdHlwZS5mb3JFYWNoLmNhbGwob2JqLCBjYWxsYmFja2ZuKTsKICAgICAgICByZXR1cm4gcmVzdWx0OwogICAgfSwKCiAgICBwcmVjb25kaXRpb246IGZ1bmN0aW9uIHByZXJlcSgpIHsKICAgICAgICByZXR1cm4gZm5FeGlzdHMoQXJyYXkucHJvdG90eXBlLmZvckVhY2gpOwogICAgfQoKfSk7Cg==","id":"15.4.4.18-1-9","path":"TestCases/chapter15/15.4/15.4.4/15.4.4.18/15.4.4.18-1-9.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewoKICAgIGlkOiAiMTUuNC40LjE4LTItMSIsCgogICAgcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTUvMTUuNC8xNS40LjQvMTUuNC40LjE4LzE1LjQuNC4xOC0yLTEuanMiLAoKICAgIGRlc2NyaXB0aW9uOiAiQXJyYXkucHJvdG90eXBlLmZvckVhY2ggLSAnbGVuZ3RoJyBpcyBvd24gZGF0YSBwcm9wZXJ0eSBvbiBhbiBBcnJheS1saWtlIG9iamVjdCIsCgogICAgdGVzdDogZnVuY3Rpb24gdGVzdGNhc2UoKSB7CiAgICAgICAgdmFyIHJlc3VsdCA9IGZhbHNlOwogICAgICAgIGZ1bmN0aW9uIGNhbGxiYWNrZm4odmFsLCBpZHgsIG9iaikgewogICAgICAgICAgICByZXN1bHQgPSAob2JqLmxlbmd0aCA9PT0gMik7CiAgICAgICAgfQoKICAgICAgICB2YXIgb2JqID0gewogICAgICAgICAgICAwOiAxMiwKICAgICAgICAgICAgMTogMTEsCiAgICAgICAgICAgIDI6IDksCiAgICAgICAgICAgIGxlbmd0aDogMgogICAgICAgIH07CgogICAgICAgIEFycmF5LnByb3RvdHlwZS5mb3JFYWNoLmNhbGwob2JqLCBjYWxsYmFja2ZuKTsKICAgICAgICByZXR1cm4gcmVzdWx0OwogICAgfSwKCiAgICBwcmVjb25kaXRpb246IGZ1bmN0aW9uIHByZXJlcSgpIHsKICAgICAgICByZXR1cm4gZm5FeGlzdHMoQXJyYXkucHJvdG90eXBlLmZvckVhY2gpOwogICAgfQoKfSk7Cg==","id":"15.4.4.18-2-1","path":"TestCases/chapter15/15.4/15.4.4/15.4.4.18/15.4.4.18-2-1.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewoKICAgIGlkOiAiMTUuNC40LjE4LTItMTAiLAoKICAgIHBhdGg6ICJUZXN0Q2FzZXMvY2hhcHRlcjE1LzE1LjQvMTUuNC40LzE1LjQuNC4xOC8xNS40LjQuMTgtMi0xMC5qcyIsCgogICAgZGVzY3JpcHRpb246ICJBcnJheS5wcm90b3R5cGUuZm9yRWFjaCBhcHBsaWVkIHRvIEFycmF5LWxpa2Ugb2JqZWN0LCAnbGVuZ3RoJyBpcyBhbiBpbmhlcml0ZWQgYWNjZXNzb3IgcHJvcGVydHkiLAoKICAgIHRlc3Q6IGZ1bmN0aW9uIHRlc3RjYXNlKCkgewogICAgICAgIHZhciByZXN1bHQgPSBmYWxzZTsKICAgICAgICBmdW5jdGlvbiBjYWxsYmFja2ZuKHZhbCwgaWR4LCBvYmopIHsKICAgICAgICAgICAgcmVzdWx0ID0gKG9iai5sZW5ndGggPT09IDIpOwogICAgICAgIH0KCiAgICAgICAgdmFyIHByb3RvID0ge307CgogICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0eShwcm90bywgImxlbmd0aCIsIHsKICAgICAgICAgICAgZ2V0OiBmdW5jdGlvbiAoKSB7CiAgICAgICAgICAgICAgICByZXR1cm4gMjsKICAgICAgICAgICAgfSwKICAgICAgICAgICAgY29uZmlndXJhYmxlOiB0cnVlCiAgICAgICAgfSk7CgogICAgICAgIHZhciBDb24gPSBmdW5jdGlvbiAoKSB7IH07CiAgICAgICAgQ29uLnByb3RvdHlwZSA9IHByb3RvOwoKICAgICAgICB2YXIgY2hpbGQgPSBuZXcgQ29uKCk7CiAgICAgICAgY2hpbGRbMF0gPSAxMjsKICAgICAgICBjaGlsZFsxXSA9IDExOwogICAgICAgIGNoaWxkWzJdID0gOTsKCiAgICAgICAgQXJyYXkucHJvdG90eXBlLmZvckVhY2guY2FsbChjaGlsZCwgY2FsbGJhY2tmbik7CiAgICAgICAgcmV0dXJuIHJlc3VsdDsKICAgIH0sCgogICAgcHJlY29uZGl0aW9uOiBmdW5jdGlvbiBwcmVyZXEoKSB7CiAgICAgICAgcmV0dXJuIGZuRXhpc3RzKEFycmF5LnByb3RvdHlwZS5mb3JFYWNoKSAmJiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydHkpOwogICAgfQoKfSk7Cg==","id":"15.4.4.18-2-10","path":"TestCases/chapter15/15.4/15.4.4/15.4.4.18/15.4.4.18-2-10.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewoKICAgIGlkOiAiMTUuNC40LjE4LTItMTEiLAoKICAgIHBhdGg6ICJUZXN0Q2FzZXMvY2hhcHRlcjE1LzE1LjQvMTUuNC40LzE1LjQuNC4xOC8xNS40LjQuMTgtMi0xMS5qcyIsCgogICAgZGVzY3JpcHRpb246ICJBcnJheS5wcm90b3R5cGUuZm9yRWFjaCBhcHBsaWVkIHRvIEFycmF5LWxpa2Ugb2JqZWN0LCAnbGVuZ3RoJyBpcyBhbiBvd24gYWNjZXNzb3IgcHJvcGVydHkgd2l0aG91dCBhIGdldCBmdW5jdGlvbiIsCgogICAgdGVzdDogZnVuY3Rpb24gdGVzdGNhc2UoKSB7CgogICAgICAgIHZhciBhY2Nlc3NlZCA9IGZhbHNlOwogICAgICAgIGZ1bmN0aW9uIGNhbGxiYWNrZm4odmFsLCBpZHgsIG9iaikgewogICAgICAgICAgICBhY2Nlc3NlZCA9IHRydWU7CiAgICAgICAgfQoKICAgICAgICB2YXIgb2JqID0gewogICAgICAgICAgICAwOiAxMSwKICAgICAgICAgICAgMTogMTIKICAgICAgICB9OwogICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0eShvYmosICJsZW5ndGgiLCB7CiAgICAgICAgICAgIHNldDogZnVuY3Rpb24gKCkgeyB9LAogICAgICAgICAgICBjb25maWd1cmFibGU6IHRydWUKICAgICAgICB9KTsKCiAgICAgICAgQXJyYXkucHJvdG90eXBlLmZvckVhY2guY2FsbChvYmosIGNhbGxiYWNrZm4pOwogICAgICAgIHJldHVybiAhYWNjZXNzZWQ7CiAgICB9LAoKICAgIHByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogICAgICAgIHJldHVybiBmbkV4aXN0cyhBcnJheS5wcm90b3R5cGUuZm9yRWFjaCkgJiYgZm5FeGlzdHMoT2JqZWN0LmRlZmluZVByb3BlcnR5KTsKICAgIH0KCn0pOwo=","id":"15.4.4.18-2-11","path":"TestCases/chapter15/15.4/15.4.4/15.4.4.18/15.4.4.18-2-11.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewoKICAgIGlkOi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Gwob2JqLCBjYWxsYmFja2ZuKTsKICAgICAgICAgICAgcmV0dXJuICFhY2Nlc3NlZDsKICAgICAgICB9IGZpbmFsbHkgewogICAgICAgICAgICBkZWxldGUgT2JqZWN0LnByb3RvdHlwZS5sZW5ndGg7CiAgICAgICAgfQoKICAgIH0sCgogICAgcHJlY29uZGl0aW9uOiBmdW5jdGlvbiBwcmVyZXEoKSB7CiAgICAgICAgcmV0dXJuIGZuRXhpc3RzKEFycmF5LnByb3RvdHlwZS5mb3JFYWNoKSAmJiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydHkpOwogICAgfQoKfSk7Cg==","id":"15.4.4.18-2-12","path":"TestCases/chapter15/15.4/15.4.4/15.4.4.18/15.4.4.18-2-12.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewoKICAgIGlkOiAiMTUuNC40LjE4LTItMTMiLAoKICAgIHBhdGg6ICJUZXN0Q2FzZXMvY2hhcHRlcjE1LzE1LjQvMTUuNC40LzE1LjQuNC4xOC8xNS40LjQuMTgtMi0xMy5qcyIsCgogICAgZGVzY3JpcHRpb246ICJBcnJheS5wcm90b3R5cGUuZm9yRWFjaCBhcHBsaWVkIHRvIHRoZSBBcnJheS1saWtlIG9iamVjdCB0aGF0ICdsZW5ndGgnIGlzIGluaGVyaXRlZCBhY2Nlc3NvciBwcm9wZXJ0eSB3aXRob3V0IGEgZ2V0IGZ1bmN0aW9uIiwKCiAgICB0ZXN0OiBmdW5jdGlvbiB0ZXN0Y2FzZSgpIHsKCiAgICAgICAgdmFyIGFjY2Vzc2VkID0gZmFsc2U7CgogICAgICAgIGZ1bmN0aW9uIGNhbGxiYWNrZm4odmFsLCBpZHgsIG9iaikgewogICAgICAgICAgICBhY2Nlc3NlZCA9IHRydWU7CiAgICAgICAgfQoKICAgICAgICB2YXIgcHJvdG8gPSB7fTsKICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydHkocHJvdG8sICJsZW5ndGgiLCB7CiAgICAgICAgICAgIHNldDogZnVuY3Rpb24gKCkgeyB9LAogICAgICAgICAgICBjb25maWd1cmFibGU6IHRydWUKICAgICAgICB9KTsKCiAgICAgICAgdmFyIENvbiA9IGZ1bmN0aW9uICgpIHsgfTsKICAgICAgICBDb24ucHJvdG90eXBlID0gcHJvdG87CgogICAgICAgIHZhciBjaGlsZCA9IG5ldyBDb24oKTsKICAgICAgICBjaGlsZFswXSA9IDExOwogICAgICAgIGNoaWxkWzFdID0gMTI7CgogICAgICAgIEFycmF5LnByb3RvdHlwZS5mb3JFYWNoLmNhbGwoY2hpbGQsIGNhbGxiYWNrZm4pOwogICAgICAgIHJldHVybiAhYWNjZXNzZWQ7CiAgICB9LAoKICAgIHByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogICAgICAgIHJldHVybiBmbkV4aXN0cyhBcnJheS5wcm90b3R5cGUuZm9yRWFjaCkgJiYgZm5FeGlzdHMoT2JqZWN0LmRlZmluZVByb3BlcnR5KTsKICAgIH0KCn0pOwo=","id":"15.4.4.18-2-13","path":"TestCases/chapter15/15.4/15.4.4/15.4.4.18/15.4.4.18-2-13.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewoKICAgIGlkOiAiMTUuNC40LjE4LTItMTQiLAoKICAgIHBhdGg6ICJUZXN0Q2FzZXMvY2hhcHRlcjE1LzE1LjQvMTUuNC40LzE1LjQuNC4xOC8xNS40LjQuMTgtMi0xNC5qcyIsCgogICAgZGVzY3JpcHRpb246ICJBcnJheS5wcm90b3R5cGUuZm9yRWFjaCBhcHBsaWVkIHRvIHRoZSBBcnJheS1saWtlIG9iamVjdCB0aGF0ICdsZW5ndGgnIHByb3BlcnR5IGRvZXNuJ3QgZXhpc3QiLAoKICAgIHRlc3Q6IGZ1bmN0aW9uIHRlc3RjYXNlKCkgewoKICAgICAgICB2YXIgYWNjZXNzZWQgPSBmYWxzZTsKCiAgICAgICAgZnVuY3Rpb24gY2FsbGJhY2tmbih2YWwsIGlkeCwgb2JqKSB7CiAgICAgICAgICAgIGFjY2Vzc2VkID0gdHJ1ZTsKICAgICAgICB9CgogICAgICAgIHZhciBvYmogPSB7IDA6IDExLCAxOiAxMiB9OwoKICAgICAgICBBcnJheS5wcm90b3R5cGUuZm9yRWFjaC5jYWxsKG9iaiwgY2FsbGJhY2tmbik7CiAgICAgICAgcmV0dXJuICFhY2Nlc3NlZDsKCiAgICB9LAoKICAgIHByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogICAgICAgIHJldHVybiBmbkV4aXN0cyhBcnJheS5wcm90b3R5cGUuZm9yRWFjaCk7CiAgICB9Cgp9KTsK","id":"15.4.4.18-2-14","path":"TestCases/chapter15/15.4/15.4.4/15.4.4.18/15.4.4.18-2-14.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewoKICAgIGlkOiAiMTUuNC40LjE4LTItMTUiLAoKICAgIHBhdGg6ICJUZXN0Q2FzZXMvY2hhcHRlcjE1LzE1LjQvMTUuNC40LzE1LjQuNC4xOC8xNS40LjQuMTgtMi0xNS5qcyIsCgogICAgZGVzY3JpcHRpb246ICJBcnJheS5wcm90b3R5cGUuZm9yRWFjaCAtICdsZW5ndGgnIGlzIHByb3BlcnR5IG9mIHRoZSBnbG9iYWwgb2JqZWN0IiwKCiAgICB0ZXN0OiBmdW5jdGlvbiB0ZXN0Y2FzZSgpIHsKICAgICAgICB2YXIgcmVzdWx0ID0gZmFsc2U7CiAgICAgICAgZnVuY3Rpb24gY2FsbGJhY2tmbih2YWwsIGlkeCwgb2JqKSB7CiAgICAgICAgICAgIHJlc3VsdCA9IChvYmoubGVuZ3RoID09PSAyKTsKICAgICAgICB9CgogICAgICAgIHRyeSB7CiAgICAgICAgICAgIHZhciBvbGRMZW4gPSBmbkdsb2JhbE9iamVjdCgpLmxlbmd0aDsKICAgICAgICAgICAgZm5HbG9iYWxPYmplY3QoKVswXSA9IDEyOwogICAgICAgICAgICBmbkdsb2JhbE9iamVjdCgpWzFdID0gMTE7CiAgICAgICAgICAgIGZuR2xvYmFsT2JqZWN0KClbMl0gPSA5OwogICAgICAgICAgICBmbkdsb2JhbE9iamVjdCgpLmxlbmd0aCA9IDI7CiAgICAgICAgICAgIEFycmF5LnByb3RvdHlwZS5mb3JFYWNoLmNhbGwoZm5HbG9iYWxPYmplY3QoKSwgY2FsbGJhY2tmbik7CiAgICAgICAgICAgIHJldHVybiByZXN1bHQ7CiAgICAgICAgfSBmaW5hbGx5IHsKICAgICAgICAgICAgZGVsZXRlIGZuR2xvYmFsT2JqZWN0KClbMF07CiAgICAgICAgICAgIGRlbGV0ZSBmbkdsb2JhbE9iamVjdCgpWzFdOwogICAgICAgICAgICBkZWxldGUgZm5HbG9iYWxPYmplY3QoKVsyXTsKICAgICAgICAgICAgZm5HbG9iYWxPYmplY3QoKS5sZW5ndGggPSBvbGRMZW47CiAgICAgICAgfQogICAgfSwKCiAgICBwcmVjb25kaXRpb246IGZ1bmN0aW9uIHByZXJlcSgpIHsKICAgICAgICByZXR1cm4gZm5FeGlzdHMoQXJyYXkucHJvdG90eXBlLmZvckVhY2gpOwogICAgfQoKfSk7Cg==","id":"15.4.4.18-2-15","path":"TestCases/chapter15/15.4/15.4.4/15.4.4.18/15.4.4.18-2-15.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewoKICAgIGlkOiAiMTUuNC40LjE4LTItMTciLAoKICAgIHBhdGg6ICJUZXN0Q2FzZXMvY2hhcHRlcjE1LzE1LjQvMTUuNC40LzE1LjQuNC4xOC8xNS40LjQuMTgtMi0xNy5qcyIsCgogICAgZGVzY3JpcHRpb246ICJBcnJheS5wcm90b3R5cGUuZm9yRWFjaCBhcHBsaWVkIHRvIHRoZSBBcmd1bWVudHMgb2JqZWN0LCB3aGljaCBpbXBsZW1lbnRzIGl0cyBvd24gcHJvcGVydHkgZ2V0IG1ldGhvZCIsCgogICAgdGVzdDogZnVuY3Rpb24gdGVzdGNhc2UoKSB7CiAgICAgICAgdmFyIHJlc3VsdCA9IGZhbHNlOwogICAgICAgIGZ1bmN0aW9uIGNhbGxiYWNrZm4odmFsLCBpZHgsIG9iaikgewogICAgICAgICAgICByZXN1bHQgPSAob2JqLmxlbmd0aCA9PT0gMik7CiAgICAgICAgfQoKICAgICAgICB2YXIgZnVuYyA9IGZ1bmN0aW9uIChhLCBiKSB7CiAgICAgICAgICAgIGFyZ3VtZW50c1syXSA9IDk7CiAgICAgICAgICAgIEFycmF5LnByb3RvdHlwZS5mb3JFYWNoLmNhbGwoYXJndW1lbnRzLCBjYWxsYmFja2ZuKTsKICAgICAgICAgICAgcmV0dXJuIHJlc3VsdDsKICAgICAgICB9OwoKICAgICAgICByZXR1cm4gZnVuYygxMiwgMTEpOwogICAgfSwKCiAgICBwcmVjb25kaXRpb246IGZ1bmN0aW9uIHByZXJlcSgpIHsKICAgICAgICByZXR1cm4gZm5FeGlzdHMoQXJyYXkucHJvdG90eXBlLmZvckVhY2gpOwogICAgfQoKfSk7Cg==","id":"15.4.4.18-2-17","path":"TestCases/chapter15/15.4/15.4.4/15.4.4.18/15.4.4.18-2-17.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewoKICAgIGlkOiAiMTUuNC40LjE4LTItMTgiLAoKICAgIHBhdGg6ICJUZXN0Q2FzZXMvY2hhcHRlcjE1LzE1LjQvMTUuNC40LzE1LjQuNC4xOC8xNS40LjQuMTgtMi0xOC5qcyIsCgogICAgZGVzY3JpcHRpb246ICJBcnJheS5wcm90b3R5cGUuZm9yRWFjaCBhcHBsaWVkIHRvIFN0cmluZyBvYmplY3QsIHdoaWNoIGltcGxlbWVudHMgaXRzIG93biBwcm9wZXJ0eSBnZXQgbWV0aG9kIiwKCiAgICB0ZXN0OiBmdW5jdGlvbiB0ZXN0Y2FzZSgpIHsKICAgICAgICB2YXIgcmVzdWx0ID0gZmFsc2U7CiAgICAgICAgZnVuY3Rpb24gY2FsbGJhY2tmbih2YWwsIGlkeCwgb2JqKSB7CiAgICAgICAgICAgIHJlc3VsdCA9IChvYmoubGVuZ3RoID09PSAzKTsKICAgICAgICB9CgogICAgICAgIHZhciBzdHIgPSBuZXcgU3RyaW5nKCIwMTIiKTsKCiAgICAgICAgQXJyYXkucHJvdG90eXBlLmZvckVhY2guY2FsbChzdHIsIGNhbGxiYWNrZm4pOwogICAgICAgIHJldHVybiByZXN1bHQ7CiAgICB9LAoKICAgIHByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogICAgICAgIHJldHVybiBmbkV4aXN0cyhBcnJheS5wcm90b3R5cGUuZm9yRWFjaCk7CiAgICB9Cgp9KTsK","id":"15.4.4.18-2-18","path":"TestCases/chapter15/15.4/15.4.4/15.4.4.18/15.4.4.18-2-18.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewoKICAgIGlkOiAiMTUuNC40LjE4LTItMTkiLAoKICAgIHBhdGg6ICJUZXN0Q2FzZXMvY2hhcHRlcjE1LzE1LjQvMTUuNC40LzE1LjQuNC4xOC8xNS40LjQuMTgtMi0xOS5qcyIsCgogICAgZGVzY3JpcHRpb246ICJBcnJheS5wcm90b3R5cGUuZm9yRWFjaCBhcHBsaWVkIHRvIEZ1bmN0aW9uIG9iamVjdCwgd2hpY2ggaW1wbGVtZW50cyBpdHMgb3duIHByb3BlcnR5IGdldCBtZXRob2QiLAoKICAgIHRlc3Q6IGZ1bmN0aW9uIHRlc3RjYXNlKCkgewogICAgICAgIHZhciByZXN1bHQgPSBmYWxzZTsKICAgICAgICBmdW5jdGlvbiBjYWxsYmFja2ZuKHZhbCwgaWR4LCBvYmopIHsKICAgICAgICAgICAgcmVzdWx0ID0gKG9iai5sZW5ndGggPT09IDIpOwogICAgICAgIH0KCiAgICAgICAgdmFyIGZ1biA9IGZ1bmN0aW9uIChhLCBiKSB7CiAgICAgICAgICAgIHJldHVybiBhICsgYjsKICAgICAgICB9OwogICAgICAgIGZ1blswXSA9IDEyOwogICAgICAgIGZ1blsxXSA9IDExOwogICAgICAgIGZ1blsyXSA9IDk7CgogICAgICAgIEFycmF5LnByb3RvdHlwZS5mb3JFYWNoLmNhbGwoZnVuLCBjYWxsYmFja2ZuKTsKICAgICAgICByZXR1cm4gcmVzdWx0OwogICAgfSwKCiAgICBwcmVjb25kaXRpb246IGZ1bmN0aW9uIHByZXJlcSgpIHsKICAgICAgICByZXR1cm4gZm5FeGlzdHMoQXJyYXkucHJvdG90eXBlLmZvckVhY2gpOwogICAgfQoKfSk7Cg==","id":"15.4.4.18-2-19","path":"TestCases/chapter15/15.4/15.4.4/15.4.4.18/15.4.4.18-2-19.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewoKICAgIGlkOiAiMTUuNC40LjE4LTItMiIsCgogICAgcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTUvMTUuNC8xNS40LjQvMTUuNC40LjE4LzE1LjQuNC4xOC0yLTIuanMiLAoKICAgIGRlc2NyaXB0aW9uOiAiQXJyYXkucHJvdG90eXBlLmZvckVhY2ggLSAnbGVuZ3RoJyBpcyBvd24gZGF0YSBwcm9wZXJ0eSBvbiBhbiBBcnJheSIsCgogICAgdGVzdDogZnVuY3Rpb24gdGVzdGNhc2UoKSB7CiAgICAgICAgdmFyIHJlc3VsdCA9IGZhbHNlOwogICAgICAgIGZ1bmN0aW9uIGNhbGxiYWNrZm4odmFsLCBpZHgsIG9iaikgewogICAgICAgICAgICByZXN1bHQgPSAob2JqLmxlbmd0aCA9PT0gMik7CiAgICAgICAgfQoKICAgICAgICBbMTIsIDExXS5mb3JFYWNoKGNhbGxiYWNrZm4pOwogICAgICAgIHJldHVybiByZXN1bHQ7CiAgICB9LAoKICAgIHByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogICAgICAgIHJldHVybiBmbkV4aXN0cyhBcnJheS5wcm90b3R5cGUuZm9yRWFjaCk7CiAgICB9Cgp9KTsK","id":"15.4.4.18-2-2","path":"TestCases/chapter15/15.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3RzKEFycmF5LnByb3RvdHlwZS5mb3JFYWNoKTsKICAgIH0KCn0pOwo=","id":"15.4.4.18-2-3","path":"TestCases/chapter15/15.4/15.4.4/15.4.4.18/15.4.4.18-2-3.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewoKICAgIGlkOiAiMTUuNC40LjE4LTItNCIsCgogICAgcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTUvMTUuNC8xNS40LjQvMTUuNC40LjE4LzE1LjQuNC4xOC0yLTQuanMiLAoKICAgIGRlc2NyaXB0aW9uOiAiQXJyYXkucHJvdG90eXBlLmZvckVhY2ggLSAnbGVuZ3RoJyBpcyBvd24gZGF0YSBwcm9wZXJ0eSB0aGF0IG92ZXJyaWRlcyBhbiBpbmhlcml0ZWQgZGF0YSBwcm9wZXJ0eSBvbiBhbiBBcnJheSIsCgogICAgdGVzdDogZnVuY3Rpb24gdGVzdGNhc2UoKSB7CiAgICAgICAgdmFyIHJlc3VsdCA9IGZhbHNlOwogICAgICAgIHZhciBhcnJQcm90b0xlbjsKICAgICAgICBmdW5jdGlvbiBjYWxsYmFja2ZuKHZhbCwgaWR4LCBvYmopIHsKICAgICAgICAgICAgcmVzdWx0ID0gKG9iai5sZW5ndGggPT09IDIpOwogICAgICAgIH0KCiAgICAgICAgdHJ5IHsKICAgICAgICAgICAgYXJyUHJvdG9MZW4gPSBBcnJheS5wcm90b3R5cGUubGVuZ3RoOwogICAgICAgICAgICBBcnJheS5wcm90b3R5cGUubGVuZ3RoID0gMDsKICAgICAgICAgICAgWzEyLCAxMV0uZm9yRWFjaChjYWxsYmFja2ZuKTsKICAgICAgICAgICAgcmV0dXJuIHJlc3VsdDsKICAgICAgICB9IGZpbmFsbHkgewogICAgICAgICAgICBBcnJheS5wcm90b3R5cGUubGVuZ3RoID0gYXJyUHJvdG9MZW47CiAgICAgICAgfQoKICAgIH0sCgogICAgcHJlY29uZGl0aW9uOiBmdW5jdGlvbiBwcmVyZXEoKSB7CiAgICAgICAgcmV0dXJuIGZuRXhpc3RzKEFycmF5LnByb3RvdHlwZS5mb3JFYWNoKTsKICAgIH0KCn0pOwo=","id":"15.4.4.18-2-4","path":"TestCases/chapter15/15.4/15.4.4/15.4.4.18/15.4.4.18-2-4.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewoKICAgIGlkOiAiMTUuNC40LjE4LTItNSIsCgogICAgcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTUvMTUuNC8xNS40LjQvMTUuNC40LjE4LzE1LjQuNC4xOC0yLTUuanMiLAoKICAgIGRlc2NyaXB0aW9uOiAiQXJyYXkucHJvdG90eXBlLmZvckVhY2ggYXBwbGllZCB0byBBcnJheS1saWtlIG9iamVjdCwgJ2xlbmd0aCcgaXMgYW4gb3duIGRhdGEgcHJvcGVydHkgdGhhdCBvdmVycmlkZXMgYW4gaW5oZXJpdGVkIGFjY2Vzc29yIHByb3BlcnR5IiwKCiAgICB0ZXN0OiBmdW5jdGlvbiB0ZXN0Y2FzZSgpIHsKICAgICAgICB2YXIgcmVzdWx0ID0gZmFsc2U7CiAgICAgICAgZnVuY3Rpb24gY2FsbGJhY2tmbih2YWwsIGlkeCwgb2JqKSB7CiAgICAgICAgICAgIHJlc3VsdCA9IChvYmoubGVuZ3RoID09PSAyKTsKICAgICAgICB9CgogICAgICAgIHZhciBwcm90byA9IHt9OwoKICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydHkocHJvdG8sICJsZW5ndGgiLCB7CiAgICAgICAgICAgIGdldDogZnVuY3Rpb24gKCkgewogICAgICAgICAgICAgICAgcmV0dXJuIDM7CiAgICAgICAgICAgIH0sCiAgICAgICAgICAgIGNvbmZpZ3VyYWJsZTogdHJ1ZQogICAgICAgIH0pOwoKICAgICAgICB2YXIgQ29uID0gZnVuY3Rpb24gKCkgeyB9OwogICAgICAgIENvbi5wcm90b3R5cGUgPSBwcm90bzsKCiAgICAgICAgdmFyIGNoaWxkID0gbmV3IENvbigpOwogICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0eShjaGlsZCwgImxlbmd0aCIsIHsKICAgICAgICAgICAgdmFsdWU6IDIsCiAgICAgICAgICAgIGNvbmZpZ3VyYWJsZTogdHJ1ZQogICAgICAgIH0pOwogICAgICAgIGNoaWxkWzBdID0gMTI7CiAgICAgICAgY2hpbGRbMV0gPSAxMTsKICAgICAgICBjaGlsZFsyXSA9IDk7CgogICAgICAgIEFycmF5LnByb3RvdHlwZS5mb3JFYWNoLmNhbGwoY2hpbGQsIGNhbGxiYWNrZm4pOwogICAgICAgIHJldHVybiByZXN1bHQ7CiAgICB9LAoKICAgIHByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogICAgICAgIHJldHVybiBmbkV4aXN0cyhBcnJheS5wcm90b3R5cGUuZm9yRWFjaCkgJiYgZm5FeGlzdHMoT2JqZWN0LmRlZmluZVByb3BlcnR5KTsKICAgIH0KCn0pOwo=","id":"15.4.4.18-2-5","path":"TestCases/chapter15/15.4/15.4.4/15.4.4.18/15.4.4.18-2-5.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewoKICAgIGlkOiAiMTUuNC40LjE4LTItNiIsCgogICAgcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTUvMTUuNC8xNS40LjQvMTUuNC40LjE4LzE1LjQuNC4xOC0yLTYuanMiLAoKICAgIGRlc2NyaXB0aW9uOiAiQXJyYXkucHJvdG90eXBlLmZvckVhY2ggYXBwbGllZCB0byBBcnJheS1saWtlIG9iamVjdCwgJ2xlbmd0aCcgaXMgYW4gaW5oZXJpdGVkIGRhdGEgcHJvcGVydHkiLAoKICAgIHRlc3Q6IGZ1bmN0aW9uIHRlc3RjYXNlKCkgewogICAgICAgIHZhciByZXN1bHQgPSBmYWxzZTsKICAgICAgICBmdW5jdGlvbiBjYWxsYmFja2ZuKHZhbCwgaWR4LCBvYmopIHsKICAgICAgICAgICAgcmVzdWx0ID0gKG9iai5sZW5ndGggPT09IDIpOwogICAgICAgIH0KCiAgICAgICAgdmFyIHByb3RvID0geyBsZW5ndGg6IDIgfTsKCiAgICAgICAgdmFyIENvbiA9IGZ1bmN0aW9uICgpIHsgfTsKICAgICAgICBDb24ucHJvdG90eXBlID0gcHJvdG87CgogICAgICAgIHZhciBjaGlsZCA9IG5ldyBDb24oKTsKICAgICAgICBjaGlsZFswXSA9IDEyOwogICAgICAgIGNoaWxkWzFdID0gMTE7CiAgICAgICAgY2hpbGRbMl0gPSA5OwoKICAgICAgICBBcnJheS5wcm90b3R5cGUuZm9yRWFjaC5jYWxsKGNoaWxkLCBjYWxsYmFja2ZuKTsKICAgICAgICByZXR1cm4gcmVzdWx0OwogICAgfSwKCiAgICBwcmVjb25kaXRpb246IGZ1bmN0aW9uIHByZXJlcSgpIHsKICAgICAgICByZXR1cm4gZm5FeGlzdHMoQXJyYXkucHJvdG90eXBlLmZvckVhY2gpOwogICAgfQoKfSk7Cg==","id":"15.4.4.18-2-6","path":"TestCases/chapter15/15.4/15.4.4/15.4.4.18/15.4.4.18-2-6.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewoKICAgIGlkOiAiMTUuNC40LjE4LTItNyIsCgogICAgcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTUvMTUuNC8xNS40LjQvMTUuNC40LjE4LzE1LjQuNC4xOC0yLTcuanMiLAoKICAgIGRlc2NyaXB0aW9uOiAiQXJyYXkucHJvdG90eXBlLmZvckVhY2ggYXBwbGllZCB0byBBcnJheS1saWtlIG9iamVjdCwgJ2xlbmd0aCcgaXMgYW4gb3duIGFjY2Vzc29yIHByb3BlcnR5IiwKCiAgICB0ZXN0OiBmdW5jdGlvbiB0ZXN0Y2FzZSgpIHsKICAgICAgICB2YXIgcmVzdWx0ID0gZmFsc2U7CiAgICAgICAgZnVuY3Rpb24gY2FsbGJhY2tmbih2YWwsIGlkeCwgb2JqKSB7CiAgICAgICAgICAgIHJlc3VsdCA9IChvYmoubGVuZ3RoID09PSAyKTsKICAgICAgICB9CgogICAgICAgIHZhciBvYmogPSB7fTsKCiAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnR5KG9iaiwgImxlbmd0aCIsIHsKICAgICAgICAgICAgZ2V0OiBmdW5jdGlvbiAoKSB7CiAgICAgICAgICAgICAgICByZXR1cm4gMjsKICAgICAgICAgICAgfSwKICAgICAgICAgICAgY29uZmlndXJhYmxlOiB0cnVlCiAgICAgICAgfSk7CgogICAgICAgIG9ialswXSA9IDEyOwogICAgICAgIG9ialsxXSA9IDExOwogICAgICAgIG9ialsyXSA9IDk7CgogICAgICAgIEFycmF5LnByb3RvdHlwZS5mb3JFYWNoLmNhbGwob2JqLCBjYWxsYmFja2ZuKTsKICAgICAgICByZXR1cm4gcmVzdWx0OwogICAgfSwKCiAgICBwcmVjb25kaXRpb246IGZ1bmN0aW9uIHByZXJlcSgpIHsKICAgICAgICByZXR1cm4gZm5FeGlzdHMoQXJyYXkucHJvdG90eXBlLmZvckVhY2gpICYmIGZuRXhpc3RzKE9iamVjdC5kZWZpbmVQcm9wZXJ0eSk7CiAgICB9Cgp9KTsK","id":"15.4.4.18-2-7","path":"TestCases/chapter15/15.4/15.4.4/15.4.4.18/15.4.4.18-2-7.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewoKICAgIGlkOiAiMTUuNC40LjE4LTItOCIsCgogICAgcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTUvMTUuNC8xNS40LjQvMTUuNC40LjE4LzE1LjQuNC4xOC0yLTguanMiLAoKICAgIGRlc2NyaXB0aW9uOiAiQXJyYXkucHJvdG90eXBlLmZvckVhY2ggYXBwbGllZCB0byBBcnJheS1saWtlIG9iamVjdCwgJ2xlbmd0aCcgaXMgYW4gb3duIGFjY2Vzc29yIHByb3BlcnR5IHRoYXQgb3ZlcnJpZGVzIGFuIGluaGVyaXRlZCBkYXRhIHByb3BlcnR5IiwKCiAgICB0ZXN0OiBmdW5jdGlvbiB0ZXN0Y2FzZSgpIHsKICAgICAgICB2YXIgcmVzdWx0ID0gZmFsc2U7CiAgICAgICAgZnVuY3Rpb24gY2FsbGJhY2tmbih2YWwsIGlkeCwgb2JqKSB7CiAgICAgICAgICAgIHJlc3VsdCA9IChvYmoubGVuZ3RoID09PSAyKTsKICAgICAgICB9CgogICAgICAgIHZhciBwcm90byA9IHsgbGVuZ3RoOiAzIH07CgogICAgICAgIHZhciBDb24gPSBmdW5jdGlvbiAoKSB7IH07CiAgICAgICAgQ29uLnByb3RvdHlwZSA9IHByb3RvOwoKICAgICAgICB2YXIgY2hpbGQgPSBuZXcgQ29uKCk7CgogICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0eShjaGlsZCwgImxlbmd0aCIsIHsKICAgICAgICAgICAgZ2V0OiBmdW5jdGlvbiAoKSB7CiAgICAgICAgICAgICAgICByZXR1cm4gMjsKICAgICAgICAgICAgfSwKICAgICAgICAgICAgY29uZmlndXJhYmxlOiB0cnVlCiAgICAgICAgfSk7CgogICAgICAgIGNoaWxkWzBdID0gMTI7CiAgICAgICAgY2hpbGRbMV0gPSAxMTsKICAgICAgICBjaGlsZFsyXSA9IDk7CgogICAgICAgIEFycmF5LnByb3RvdHlwZS5mb3JFYWNoLmNhbGwoY2hpbGQsIGNhbGxiYWNrZm4pOwogICAgICAgIHJldHVybiByZXN1bHQ7CiAgICB9LAoKICAgIHByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogICAgICAgIHJldHVybiBmbkV4aXN0cyhBcnJheS5wcm90b3R5cGUuZm9yRWFjaCkgJiYgZm5FeGlzdHMoT2JqZWN0LmRlZmluZVByb3BlcnR5KTsKICAgIH0KCn0pOwo=","id":"15.4.4.18-2-8","path":"TestCases/chapter15/15.4/15.4.4/15.4.4.18/15.4.4.18-2-8.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewoKICAgIGlkOiAiMTUuNC40LjE4LTItOSIsCgogICAgcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTUvMTUuNC8xNS40LjQvMTUuNC40LjE4LzE1LjQuNC4xOC0yLTkuanMiLAoKICAgIGRlc2NyaXB0aW9uOiAiQXJyYXkucHJvdG90eXBlLmZvckVhY2ggYXBwbGllZCB0byBBcnJheS1saWtlIG9iamVjdCwgJ2xlbmd0aCcgaXMgYW4gb3duIGFjY2Vzc29yIHByb3BlcnR5IHRoYXQgb3ZlcnJpZGVzIGFuIGluaGVyaXRlZCBhY2Nlc3NvciBwcm9wZXJ0eSIsCgogICAgdGVzdDogZnVuY3Rpb24gdGVzdGNhc2UoKSB7CiAgICAgICAgdmFyIHJlc3VsdCA9IGZhbHNlOwogICAgICAgIGZ1bmN0aW9uIGNhbGxiYWNrZm4odmFsLCBpZHgsIG9iaikgewogICAgICAgICAgICByZXN1bHQgPSAob2JqLmxlbmd0aCA9PT0gMik7CiAgICAgICAgfQoKICAgICAgICB2YXIgcHJvdG8gPSB7fTsKCiAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnR5KHByb3RvLCAibGVuZ3RoIiwgewogICAgICAgICAgICBnZXQ6IGZ1bmN0aW9uICgpIHsKICAgICAgICAgICAgICAgIHJldHVybiAzOwogICAgICAgICAgICB9LAogICAgICAgICAgICBjb25maWd1cmFibGU6IHRydWUKICAgICAgICB9KTsKCiAgICAgICAgdmFyIENvbiA9IGZ1bmN0aW9uICgpIHsgfTsKICAgICAgICBDb24ucHJvdG90eXBlID0gcHJvdG87CgogICAgICAgIHZhciBjaGlsZCA9IG5ldyBDb24oKTsKCiAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnR5KGNoaWxkLCAibGVuZ3RoIiwgewogICAgICAgICAgICBnZXQ6IGZ1bmN0aW9uICgpIHsKICAgICAgICAgICAgICAgIHJldHVybiAyOwogICAgICAgICAgICB9LAogICAgICAgICAgICBjb25maWd1cmFibGU6IHRydWUKICAgICAgICB9KTsKCiAgICAgICAgY2hpbGRbMF0gPSAxMj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HVybiBmbkV4aXN0cyhBcnJheS5wcm90b3R5cGUuZm9yRWFjaCk7CiAgICB9Cgp9KTsK","id":"15.4.4.18-3-1","path":"TestCases/chapter15/15.4/15.4.4/15.4.4.18/15.4.4.18-3-1.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewoKICAgIGlkOiAiMTUuNC40LjE4LTMtMTAiLAoKICAgIHBhdGg6ICJUZXN0Q2FzZXMvY2hhcHRlcjE1LzE1LjQvMTUuNC40LzE1LjQuNC4xOC8xNS40LjQuMTgtMy0xMC5qcyIsCgogICAgZGVzY3JpcHRpb246ICJBcnJheS5wcm90b3R5cGUuZm9yRWFjaCAtIHZhbHVlIG9mICdsZW5ndGgnIGlzIGEgbnVtYmVyICh2YWx1ZSBpcyBOYU4pIiwKCiAgICB0ZXN0OiBmdW5jdGlvbiB0ZXN0Y2FzZSgpIHsKCiAgICAgICAgdmFyIGFjY2Vzc2VkID0gZmFsc2U7CgogICAgICAgIGZ1bmN0aW9uIGNhbGxiYWNrZm4odmFsLCBpZHgsIG9iaikgewogICAgICAgICAgICBhY2Nlc3NlZCA9IHRydWU7CiAgICAgICAgfQoKICAgICAgICB2YXIgb2JqID0geyAwOiA5LCBsZW5ndGg6IE5hTiB9OwoKICAgICAgICBBcnJheS5wcm90b3R5cGUuZm9yRWFjaC5jYWxsKG9iaiwgY2FsbGJhY2tmbik7CgogICAgICAgIHJldHVybiAhYWNjZXNzZWQ7CiAgICB9LAoKICAgIHByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogICAgICAgIHJldHVybiBmbkV4aXN0cyhBcnJheS5wcm90b3R5cGUuZm9yRWFjaCk7CiAgICB9Cgp9KTsK","id":"15.4.4.18-3-10","path":"TestCases/chapter15/15.4/15.4.4/15.4.4.18/15.4.4.18-3-10.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewoKICAgIGlkOiAiMTUuNC40LjE4LTMtMTEiLAoKICAgIHBhdGg6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AgICAgICAgICB0ZXN0UmVzdWx0ID0gKHZhbCA+IDEwKTsKICAgICAgICB9CiAgICAgICAgdmFyIG9iaiA9IHsgMTogMTEsIDI6IDksIGxlbmd0aDogIjIuNSIgfTsKCiAgICAgICAgQXJyYXkucHJvdG90eXBlLmZvckVhY2guY2FsbChvYmosIGNhbGxiYWNrZm4pOwoKICAgICAgICByZXR1cm4gdGVzdFJlc3VsdDsKICAgIH0sCgogICAgcHJlY29uZGl0aW9uOiBmdW5jdGlvbiBwcmVyZXEoKSB7CiAgICAgICAgcmV0dXJuIGZuRXhpc3RzKEFycmF5LnByb3RvdHlwZS5mb3JFYWNoKTsKICAgIH0KCn0pOwo=","id":"15.4.4.18-3-13","path":"TestCases/chapter15/15.4/15.4.4/15.4.4.18/15.4.4.18-3-13.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewoKICAgIGlkOiAiMTUuNC40LjE4LTMtMTQiLAoKICAgIHBhdGg6ICJUZXN0Q2FzZXMvY2hhcHRlcjE1LzE1LjQvMTUuNC40LzE1LjQuNC4xOC8xNS40LjQuMTgtMy0xNC5qcyIsCgogICAgZGVzY3JpcHRpb246ICJBcnJheS5wcm90b3R5cGUuZm9yRWFjaCAtICdsZW5ndGgnIGlzIGEgc3RyaW5nIGNvbnRhaW5pbmcgKy8tSW5maW5pdHkiLAoKICAgIHRlc3Q6IGZ1bmN0aW9uIHRlc3RjYXNlKCkgewoKICAgICAgICB2YXIgYWNjZXNzZWQxID0gZmFsc2U7CiAgICAgICAgdmFyIGFjY2Vzc2VkMiA9IGZhbHNlOwogICAgICAgIHZhciBhY2Nlc3NlZDMgPSBmYWxzZTsKCiAgICAgICAgZnVuY3Rpb24gY2FsbGJhY2tmbjEodmFsLCBpZHgsIG9iaikgewogICAgICAgICAgICBhY2Nlc3NlZDEgPSB0cnVlOwogICAgICAgIH0KCiAgICAgICAgZnVuY3Rpb24gY2FsbGJhY2tmbjIodmFsLCBpZHgsIG9iaikgewogICAgICAgICAgICBhY2Nlc3NlZDIgPSB0cnVlOwogICAgICAgIH0KCiAgICAgICAgZnVuY3Rpb24gY2FsbGJhY2tmbjModmFsLCBpZHgsIG9iaikgewogICAgICAgICAgICBhY2Nlc3NlZDMgPSB0cnVlOwogICAgICAgIH0KCiAgICAgICAgdmFyIG9iajEgPSB7IDA6IDksIGxlbmd0aDogIkluZmluaXR5IiB9OwogICAgICAgIHZhciBvYmoyID0geyAwOiA5LCBsZW5ndGg6ICItSW5maW5pdHkiIH07CiAgICAgICAgdmFyIG9iajMgPSB7IDA6IDksIGxlbmd0aDogIitJbmZpbml0eSIgfTsKCiAgICAgICAgQXJyYXkucHJvdG90eXBlLmZvckVhY2guY2FsbChvYmoxLCBjYWxsYmFja2ZuMSk7CiAgICAgICAgQXJyYXkucHJvdG90eXBlLmZvckVhY2guY2FsbChvYmoyLCBjYWxsYmFja2ZuMik7CiAgICAgICAgQXJyYXkucHJvdG90eXBlLmZvckVhY2guY2FsbChvYmozLCBjYWxsYmFja2ZuMyk7CgogICAgICAgIHJldHVybiAhYWNjZXNzZWQxICYmICFhY2Nlc3NlZDIgJiYgIWFjY2Vzc2VkMzsKICAgIH0sCgogICAgcHJlY29uZGl0aW9uOiBmdW5jdGlvbiBwcmVyZXEoKSB7CiAgICAgICAgcmV0dXJuIGZuRXhpc3RzKEFycmF5LnByb3RvdHlwZS5mb3JFYWNoKTsKICAgIH0KCn0pOwo=","id":"15.4.4.18-3-14","path":"TestCases/chapter15/15.4/15.4.4/15.4.4.18/15.4.4.18-3-14.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewoKICAgIGlkOiAiMTUuNC40LjE4LTMtMTUiLAoKICAgIHBhdGg6ICJUZXN0Q2FzZXMvY2hhcHRlcjE1LzE1LjQvMTUuNC40LzE1LjQuNC4xOC8xNS40LjQuMTgtMy0xNS5qcyIsCgogICAgZGVzY3JpcHRpb246ICJBcnJheS5wcm90b3R5cGUuZm9yRWFjaCAtICdsZW5ndGgnI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WwsIGlkeCwgb2JqKSB7CiAgICAgICAgICAgIHRlc3RSZXN1bHQgPSAodmFsID4gMTApOwogICAgICAgIH0KCiAgICAgICAgdmFyIG9iaiA9IHsgMTogMTEsIDI6IDksIGxlbmd0aDogIjB4MDAwMiIgfTsKCiAgICAgICAgQXJyYXkucHJvdG90eXBlLmZvckVhY2guY2FsbChvYmosIGNhbGxiYWNrZm4pOwoKICAgICAgICByZXR1cm4gdGVzdFJlc3VsdDsKICAgIH0sCgogICAgcHJlY29uZGl0aW9uOiBmdW5jdGlvbiBwcmVyZXEoKSB7CiAgICAgICAgcmV0dXJuIGZuRXhpc3RzKEFycmF5LnByb3RvdHlwZS5mb3JFYWNoKTsKICAgIH0KCn0pOwo=","id":"15.4.4.18-3-16","path":"TestCases/chapter15/15.4/15.4.4/15.4.4.18/15.4.4.18-3-16.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewoKICAgIGlkOiAiMTUuNC40LjE4LTMtMTciLAoKICAgIHBhdGg6ICJUZXN0Q2FzZXMvY2hhcHRlcjE1LzE1LjQvMTUuNC40LzE1LjQuNC4xOC8xNS40LjQuMTgtMy0xNy5qcyIsCgogICAgZGVzY3JpcHRpb246ICJBcnJheS5wcm90b3R5cGUuZm9yRWFjaCAtICdsZW5ndGgnIGlzIGEgc3RyaW5nIGNvbnRhaW5pbmcgYSBudW1iZXIgd2l0aCBsZWFkaW5nIHplcm9zIiwKCiAgICB0ZXN0OiBmdW5jdGlvbiB0ZXN0Y2FzZSgpIHsKCiAgICAgICAgdmFyIHRlc3RSZXN1bHQgPSBmYWxzZTsKCiAgICAgICAgZnVuY3Rpb24gY2FsbGJhY2tmbih2YWwsIGlkeCwgb2JqKSB7CiAgICAgICAgICAgIHRlc3RSZXN1bHQgPSAodmFsID4gMTApOwogICAgICAgIH0KCiAgICAgICAgdmFyIG9iaiA9IHsgMTogMTEsIDI6IDksIGxlbmd0aDogIjAwMDIuMDAiIH07CgogICAgICAgIEFycmF5LnByb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ter15/15.4/15.4.4/15.4.4.18/15.4.4.18-3-18.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewoKICAgIGlkOiAiMTUuNC40LjE4LTMtMTkiLAoKICAgIHBhdGg6ICJUZXN0Q2FzZXMvY2hhcHRlcjE1LzE1LjQvMTUuNC40LzE1LjQuNC4xOC8xNS40LjQuMTgtMy0xOS5qcyIsCgogICAgZGVzY3JpcHRpb246ICJBcnJheS5wcm90b3R5cGUuZm9yRWFjaCAtIHZhbHVlIG9mICdsZW5ndGgnIGlzIGFuIE9iamVjdCB3aGljaCBoYXMgYW4gb3duIHRvU3RyaW5nIG1ldGhvZC4iLAoKICAgIHRlc3Q6IGZ1bmN0aW9uIHRlc3RjYXNlKCkgewoKICAgICAgICB2YXIgdGVzdFJlc3VsdCA9IGZhbHNlOwoKICAgICAgICBmdW5jdGlvbiBjYWxsYmFja2ZuKHZhbCwgaWR4LCBvYmopIHsKICAgICAgICAgICAgdGVzdFJlc3VsdCA9ICh2YWwgPiAxMCk7CiAgICAgICAgfQoKICAgICAgICB2YXIgb2JqID0gewogICAgICAgICAgICAxOiAxMSwKICAgICAgICAgICAgMjogOSwKICAgICAgICAgICAgbGVuZ3RoOiB7CiAgICAgICAgICAgICAgICB0b1N0cmluZzogZnVuY3Rpb24gKCkgewogICAgICAgICAgICAgICAgICAgIHJldHVybiAnMic7CiAgICAgICAgICAgICAgICB9CiAgICAgICAgICAgIH0KICAgICAgICB9OwoKICAgICAgICBBcnJheS5wcm90b3R5cGUuZm9yRWFjaC5jYWxsKG9iaiwgY2FsbGJhY2tmbik7CgogICAgICAgIHJldHVybiB0ZXN0UmVzdWx0OwogICAgfSwKCiAgICBwcmVjb25kaXRpb246IGZ1bmN0aW9uIHByZXJlcSgpIHsKICAgICAgICByZXR1cm4gZm5FeGlzdHMoQXJyYXkucHJvdG90eXBlLmZvckVhY2gpOwogICAgfQoKfSk7Cg==","id":"15.4.4.18-3-19","path":"TestCases/chapter15/15.4/15.4.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IHZhbHVlIG9mICdsZW5ndGgnIGlzIGFuIE9iamVjdCB3aGljaCBoYXMgYW4gb3duIHZhbHVlT2YgbWV0aG9kLiIsCgogICAgdGVzdDogZnVuY3Rpb24gdGVzdGNhc2UoKSB7CgogICAgICAgIHZhciB0ZXN0UmVzdWx0ID0gZmFsc2U7CgogICAgICAgIGZ1bmN0aW9uIGNhbGxiYWNrZm4odmFsLCBpZHgsIG9iaikgewogICAgICAgICAgICB0ZXN0UmVzdWx0ID0gKHZhbCA+IDEwKTsKICAgICAgICB9CgogICAgICAgIHZhciBvYmogPSB7CiAgICAgICAgICAgIDE6IDExLAogICAgICAgICAgICAyOiA5LAogICAgICAgICAgICBsZW5ndGg6IHsKICAgICAgICAgICAgICAgIHZhbHVlT2Y6IGZ1bmN0aW9uICgpIHsKICAgICAgICAgICAgICAgICAgICByZXR1cm4gMjsKICAgICAgICAgICAgICAgIH0KICAgICAgICAgICAgfQogICAgICAgIH07CgogICAgICAgIEFycmF5LnByb3RvdHlwZS5mb3JFYWNoLmNhbGwob2JqLCBjYWxsYmFja2ZuKTsKCiAgICAgICAgcmV0dXJuIHRlc3RSZXN1bHQ7CiAgICB9LAoKICAgIHByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogICAgICAgIHJldHVybiBmbkV4aXN0cyhBcnJheS5wcm90b3R5cGUuZm9yRWFjaCk7CiAgICB9Cgp9KTsK","id":"15.4.4.18-3-20","path":"TestCases/chapter15/15.4/15.4.4/15.4.4.18/15.4.4.18-3-20.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewoKICAgIGlkOiAiMTUuNC40LjE4LTMtMjEiLAoKICAgIHBhdGg6ICJUZXN0Q2FzZXMvY2hhcHRlcjE1LzE1LjQvMTUuNC40LzE1LjQuNC4xOC8xNS40LjQuMTgtMy0yMS5qcyIsCgogICAgZGVzY3JpcHRpb246ICJBcnJheS5wcm90b3R5cGUuZm9yRWFjaCAtICdsZW5ndGgnIGlzIGFuIG9iamVjdCB0aGF0IGhhcyBhbiBvd24gdmFsdWVPZiBtZXRob2QgdGhhdCByZXR1cm5zIGFuIG9iamVjdCBhbmQgdG9TdHJpbmcgbWV0aG9kIHRoYXQgcmV0dXJucyBhIHN0cmluZyIsCgogICAgdGVzdDogZnVuY3Rpb24gdGVzdGNhc2UoKSB7CgogICAgICAgIHZhciB0ZXN0UmVzdWx0ID0gZmFsc2U7CiAgICAgICAgdmFyIGZpcnN0U3RlcE9jY3VyZWQgPSBmYWxzZTsKICAgICAgICB2YXIgc2Vjb25kU3RlcE9jY3VyZWQgPSBmYWxzZTsKCiAgICAgICAgZnVuY3Rpb24gY2FsbGJhY2tmbih2YWwsIGlkeCwgb2JqKSB7CiAgICAgICAgICAgIHRlc3RSZXN1bHQgPSAodmFsID4gMTApOwogICAgICAgIH0KCiAgICAgICAgdmFyIG9iaiA9IHsKICAgICAgICAgICAgMTogMTEsCiAgICAgICAgICAgIDI6IDksCiAgICAgICAgICAgIGxlbmd0aDogewogICAgICAgICAgICAgICAgdmFsdWVPZjogZnVuY3Rpb24gKCkgewogICAgICAgICAgICAgICAgICAgIGZpcnN0U3RlcE9jY3VyZWQgPSB0cnVlOwogICAgICAgICAgICAgICAgICAgIHJldHVybiB7fTsKICAgICAgICAgICAgICAgIH0sCiAgICAgICAgICAgICAgICB0b1N0cmluZzogZnVuY3Rpb24gKCkgewogICAgICAgICAgICAgICAgICAgIHNlY29uZFN0ZXBPY2N1cmVkID0gdHJ1ZTsKICAgICAgICAgICAgICAgICAgICByZXR1cm4gJzInOwogICAgICAgICAgICAgICAgfQogICAgICAgICAgICB9CiAgICAgICAgfTsKCiAgICAgICAgQXJyYXkucHJvdG90eXBlLmZvckVhY2guY2FsbChvYmosIGNhbGxiYWNrZm4pOwoKICAgICAgICByZXR1cm4gdGVzdFJlc3VsdCAmJiBmaXJzdFN0ZXBPY2N1cmVkICYmIHNlY29uZFN0ZXBPY2N1cmVkOwogICAgfSwKCiAgICBwcmVjb25kaXRpb246IGZ1bmN0aW9uIHByZXJlcSgpIHsKICAgICAgICByZXR1cm4gZm5FeGlzdHMoQXJyYXkucHJvdG90eXBlLmZvckVhY2gpOwogICAgfQoKfSk7Cg==","id":"15.4.4.18-3-21","path":"TestCases/chapter15/15.4/15.4.4/15.4.4.18/15.4.4.18-3-21.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewoKICAgIGlkOiAiMTUuNC40LjE4LTMtMjIiLAoKICAgIHBhdGg6ICJUZXN0Q2FzZXMvY2hhcHRlcjE1LzE1LjQvMTUuNC40LzE1LjQuNC4xOC8xNS40LjQuMTgtMy0yMi5qcyIsCgogICAgZGVzY3JpcHRpb246ICJBcnJheS5wcm90b3R5cGUuZm9yRWFjaCB0aHJvd3MgVHlwZUVycm9yIGV4Y2VwdGlvbiB3aGVuICdsZW5ndGgnIGlzIGFuIG9iamVjdCB3aXRoIHRvU3RyaW5nIGFuZCB2YWx1ZU9mIG1ldGhvZHMgdGhhdCBkb26SdCByZXR1cm4gcHJpbWl0aXZlIHZhbHVlcyIsCgogICAgdGVzdDogZnVuY3Rpb24gdGVzdGNhc2UoKSB7CgogICAgICAgIHZhciBhY2Nlc3NlZCA9IGZhbHNlOwogICAgICAgIHZhciBmaXJzdFN0ZXBPY2N1cmVkID0gZmFsc2U7CiAgICAgICAgdmFyIHNlY29uZFN0ZXBPY2N1cmVkID0gZmFsc2U7CgogICAgICAgIGZ1bmN0aW9uIGNhbGxiYWNrZm4odmFsLCBpZHgsIG9iaikgewogICAgICAgICAgICBhY2Nlc3NlZCA9IHRydWU7CiAgICAgICAgfQoKICAgICAgICB2YXIgb2JqID0gewogICAgICAgICAgICAxOiAxMSwKICAgICAgICAgICAgMjogMTIsCgogICAgICAgICAgICBsZW5ndGg6IHsKICAgICAgICAgICAgICAgIHZhbHVlT2Y6IGZ1bmN0aW9uICgpIHsKICAgICAgICAgICAgICAgICAgICBmaXJzdFN0ZXBPY2N1cmVkID0gdHJ1ZTsKICAgICAgICAgICAgICAgICAgICByZXR1cm4ge307CiAgICAgICAgICAgICAgICB9LAogICAgICAgICAgICAgICAgdG9TdHJpbmc6IGZ1bmN0aW9uICgpIHsKICAgICAgICAgICAgICAgICAgICBzZWNvbmRTdGVwT2NjdXJlZCA9IHRydWU7CiAgICAgICAgICAgICAgICAgICAgcmV0dXJuIHt9OwogICAgICAgICAgICAgICAgfQogICAgICAgICAgICB9CiAgICAgICAgfTsKCiAgICAgICAgdHJ5IHsKICAgICAgICAgICAgQXJyYXkucHJvdG90eXBlLmZvckVhY2guY2FsbChvYmosIGNhbGxiYWNrZm4pOwogICAgICAgICAgICByZXR1cm4gZmFsc2U7CiAgICAgICAgfSBjYXRjaCAoZXgpIHsKICAgICAgICAgICAgcmV0dXJuIGV4IGluc3RhbmNlb2YgVHlwZUVycm9yICYmICFhY2Nlc3NlZDsKICAgICAgICB9CiAgICB9LAoKICAgIHByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogICAgICAgIHJldHVybiBmbkV4aXN0cyhBcnJheS5wcm90b3R5cGUuZm9yRWFjaCk7CiAgICB9Cgp9KTsK","id":"15.4.4.18-3-22","path":"TestCases/chapter15/15.4/15.4.4/15.4.4.18/15.4.4.18-3-22.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewoKICAgIGlkOiAiMTUuNC40LjE4LTMtMjMiLAoKICAgIHBhdGg6ICJUZXN0Q2FzZXMvY2hhcHRlcjE1LzE1LjQvMTUuNC40LzE1LjQuNC4xOC8xNS40LjQuMTgtMy0yMy5qcyIsCgogICAgZGVzY3JpcHRpb246ICJBcnJheS5wcm90b3R5cGUuZm9yRWFjaCB1c2VzIGluaGVyaXRlZCB2YWx1ZU9mIG1ldGhvZCB3aGVuICdsZW5ndGgnIGlzIGFuIG9iamVjdCB3aXRoIGFuIG93biB0b1N0cmluZyBhbmQgaW5oZXJpdGVkIHZhbHVlT2YgbWV0aG9kcyIsCgogICAgdGVzdDogZnVuY3Rpb24gdGVzdGNhc2UoKSB7CgogICAgICAgIHZhciB0ZXN0UmVzdWx0ID0gZmFsc2U7CiAgICAgICAgdmFyIHZhbHVlT2ZBY2Nlc3NlZCA9IGZhbHNlOwogICAgICAgIHZhciB0b1N0cmluZ0FjY2Vzc2VkID0gZmFsc2U7CgogICAgICAgIGZ1bmN0aW9uIGNhbGxiYWNrZm4odmFsLCBpZHgsIG9iaikgewogICAgICAgICAgICB0ZXN0UmVzdWx0ID0gKHZhbCA+IDEwKTsKICAgICAgICB9CgogICAgICAgIHZhciBwcm90byA9IHsKICAgICAgICAgICAgdmFsdWVPZjogZnVuY3Rpb24gKCkgewogICAgICAgICAgICAgICAgdmFsdWVPZkFjY2Vzc2VkID0gdHJ1ZTsKICAgICAgICAgICAgICAgIHJldHVybiAyOwogICAgICAgICAgICB9CiAgICAgICAgfTsKCiAgICAgICAgdmFyIENvbiA9IGZ1bmN0aW9uICgpIHsgfTsKICAgICAgICBDb24ucHJvdG90eXBlID0gcHJvdG87CgogICAgICAgIHZhciBjaGlsZCA9IG5ldyBDb24oKTsKCiAgICAgICAgY2hpbGQudG9TdHJpbmcgPSBmdW5jdGlvbiAoKSB7CiAgICAgICAgICAgIHRvU3RyaW5nQWNjZXNzZWQgPSB0cnVlOwogICAgICAgICAgICByZXR1cm4gJzEnOwogICAgICAgIH07CgogICAgICAgIHZhciBvYmogPSB7CiAgICAgICAgICAgIDE6IDExLAogICAgICAgICAgICAyOiA5LAogICAgICAgICAgICBsZW5ndGg6IGNoaWxkCiAgICAgICAgfTsKCiAgICAgICAgQXJyYXkucHJvdG90eXBlLmZvckVhY2guY2FsbChvYmosIGNhbGxiYWNrZm4pOwoKICAgICAgICByZXR1cm4gdGVzdFJlc3VsdCAmJiB2YWx1ZU9mQWNjZXNzZWQgJiYgIXRvU3RyaW5nQWNjZXNzZWQ7CiAgICB9LAoKICAgIHByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogICAgICAgIHJldHVybiBmbkV4aXN0cyhBcnJheS5wcm90b3R5cGUuZm9yRWFjaCk7CiAgICB9Cgp9KTsK","id":"15.4.4.18-3-23","path":"TestCases/chapter15/15.4/15.4.4/15.4.4.18/15.4.4.18-3-23.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewoKICAgIGlkOiAiMTUuNC40LjE4LTMtMjQiLAoKICAgIHBhdGg6ICJUZXN0Q2FzZXMvY2hhcHRlcjE1LzE1LjQvMTUuNC40LzE1LjQuNC4xOC8xNS40LjQuMTgtMy0yNC5qcyIsCgogICAgZGVzY3JpcHRpb246ICJBcnJheS5wcm90b3R5cGUuZm9yRWFjaCAtIHZhbHVlIG9mICdsZW5ndGgnIGlzIGEgcG9zaXRpdmUgbm9uLWludGVnZXIsIGVuc3VyZSB0cnVuY2F0aW9uIG9jY3VycyBpbiB0aGUgcHJvcGVyIGRpcmVjdGlvbiIsCgogICAgdGVzdDogZnVuY3Rpb24gdGVzdGNhc2UoKSB7CgogICAgICAgIHZhciB0ZXN0UmVzdWx0ID0gZmFsc2U7CgogICAgICAgIGZ1bmN0aW9uIGNhbGxiYWNrZm4odmFsLCBpZHgsIG9iaikgewogICAgICAgICAgICB0ZXN0UmVzdWx0ID0gKHZhbCA+IDEwKTsKICAgICAgICB9CgogICAgICAgIHZhciBvYmogPSB7CiAgICAgICAgICAgIDE6IDExLAogICAgICAgICAgICAyOiA5LAogICAgICAgICAgICBsZW5ndGg6IDIuNjg1CiAgICAgICAgfTsKCiAgICAgICAgQXJyYXkucHJvdG90eXBlLmZvckVhY2guY2FsbChvYmosIGNhbGxiYWNrZm4pOwoKICAgICAgICByZXR1cm4gdGVzdFJlc3VsdDsKICAgIH0sCgogICAgcHJlY29uZGl0aW9uOiBmdW5jdGlvbiBwcmVyZXEoKSB7CiAgICAgICAgcmV0dXJuIGZuRXhpc3RzKEFycmF5LnByb3RvdHlwZS5mb3JFYWNoKTsKICAgIH0KCn0pOwo=","id":"15.4.4.18-3-24","path":"TestCases/chapter15/15.4/15.4.4/15.4.4.18/15.4.4.18-3-24.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewoKICAgIGlkOiAiMTUuNC40LjE4LTMtMjUiLAoKICAgIHBhdGg6ICJUZXN0Q2FzZXMvY2hhcHRlcjE1LzE1LjQvMTUuNC40LzE1LjQuNC4xOC8xNS40LjQuMTgtMy0yNS5qcyIsCgogICAgZGVzY3JpcHRpb246ICJBcnJheS5wcm90b3R5cGUuZm9yRWFjaCAtIHZhbHVlIG9mICdsZW5ndGgnIGlzIGEgbmVnYXRpdmUgbm9uLWludGVnZXIsIGVuc3VyZSB0cnVuY2F0aW9uIG9jY3VycyBpbiB0aGUgcHJvcGVyIGRpcmVjdGlvbiIsCgogICAgdGVzdDogZnVuY3Rpb24gdGVzdGNhc2UoKSB7CgogICAgICAgIHZhciB0ZXN0UmVzdWx0ID0gZmFsc2U7CgogICAgICAgIGZ1bmN0aW9uIGNhbGxiYWNrZm4odmFsLCBpZHgsIG9iaikgewogICAgICAgICAgICB0ZXN0UmVzdWx0ID0gKHZhbCA+IDEwKTsKICAgICAgICB9CgogICAgICAgIHZhciBvYmogPSB7CiAgICAgICAgICAgIDE6IDExLAogICAgICAgICAgICAyOiA5LAogICAgICAgICAgICBsZW5ndGg6IC00Mjk0OTY3Mjk0LjUKICAgICAgICB9OwoKICAgICAgICBBcnJheS5wcm90b3R5cGUuZm9yRWFjaC5jYWxsKG9iaiwgY2FsbGJhY2tmbik7CgogICAgICAgIHJldHVybiB0ZXN0UmVzdWx0OwogICAgfSwKCiAgICBwcmVjb25kaXRpb246IGZ1bmN0aW9uIHByZXJlcSgpIHsKICAgICAgICByZXR1cm4gZm5FeGlzdHMoQXJyYXkucHJvdG90eXBlLmZvckVhY2gpOwogICAgfQoKfSk7Cg==","id":"15.4.4.18-3-25","path":"TestCases/chapter15/15.4/15.4.4/15.4.4.18/15.4.4.18-3-25.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewoKICAgIGlkOiAiMTUuNC40LjE4LTMtMjgiLAoKICAgIHBhdGg6ICJUZXN0Q2FzZXMvY2hhcHRlcjE1LzE1LjQvMTUuNC40LzE1LjQuNC4xOC8xNS40LjQuMTgtMy0yOC5qcyIsCgogICAgZGVzY3JpcHRpb246ICJBcnJheS5wcm90b3R5cGUuZm9yRWFjaCAtIHZhbHVlIG9mICdsZW5ndGgnIGlzIGJvdW5kYXJ5IHZhbHVlICgyXjMyKSIsCgogICAgdGVzdDogZnVuY3Rpb24gdGVzdGNhc2UoKSB7CgogICAgICAgIHZhciBhY2Nlc3NlZCA9IGZhbHNlOwoKICAgICAgICBmdW5jdGlvbiBjYWxsYmFja2ZuKHZhbCwgaWR4LCBvYmopIHsKICAgICAgICAgICAgYWNjZXNzZWQgPSB0cnVlOwogICAgICAgIH0KCiAgICAgICAgdmFyIG9iaiA9IHsKICAgICAgICAgICAgMDogMTIsCiAgICAgICAgICAgIGxlbmd0aDogNDI5NDk2NzI5NgogICAgICAgIH07CgogICAgICAgIEFycmF5LnByb3RvdHlwZS5mb3JFYWNoLmNhbGwob2JqLCBjYWxsYmFja2ZuKTsKCiAgICAgICAgcmV0dXJuICFhY2Nlc3NlZDsKICAgIH0sCgogICAgcHJlY29uZGl0aW9uOiBmdW5jdGlvbiBwcmVyZXEoKSB7CiAgICAgICAgcmV0dXJuIGZuRXhpc3RzKEFycmF5LnByb3RvdHlwZS5mb3JFYWNoKTsKICAgIH0KCn0pOwo=","id":"15.4.4.18-3-28","path":"TestCases/chapter15/15.4/15.4.4/15.4.4.18/15.4.4.18-3-28.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewoKICAgIGlkOiAiMTUuNC40LjE4LTMtMjkiLAoKICAgIHBhdGg6ICJUZXN0Q2FzZXMvY2hhcHRlcjE1LzE1LjQvMTUuNC40LzE1LjQuNC4xOC8xNS40LjQuMTgtMy0yOS5qcyIsCgogICAgZGVzY3JpcHRpb246ICJBcnJheS5wcm90b3R5cGUuZm9yRWFjaCAtIHZhbHVlIG9mICdsZW5ndGgnIGlzIGJvdW5kYXJ5IHZhbHVlICgyXjMyICsgMSkiLAoKICAgIHRlc3Q6IGZ1bmN0aW9uIHRlc3RjYXNlKCkgewoKICAgICAgICB2YXIgdGVzdFJlc3VsdCA9IGZhbHNlOwoKICAgICAgICBmdW5jdGlvbiBjYWxsYmFja2ZuKHZhbCwgaWR4LCBvYmopIHsKICAgICAgICAgICAgdGVzdFJlc3VsdCA9ICh2YWwgPiAxMCk7CiAgICAgICAgfQoKICAgICAgICB2YXIgb2JqID0gewogICAgICAgICAgICAwOiAxMSwKICAgICAgICAgICAgMTogOSwKICAgICAgICAgICAgbGVuZ3RoOiA0Mjk0OTY3Mjk3CiAgICAgICAgfTsKCiAgICAgICAgQXJyYXkucHJvdG90eXBlLmZvckVhY2guY2FsbChvYmosIGNhbGxiYWNrZm4pOwoKICAgICAgICByZXR1cm4gdGVzdFJlc3VsdDsKICAgIH0sCgogICAgcHJlY29uZGl0aW9uOiBmdW5jdGlvbiBwcmVyZXEoKSB7CiAgICAgICAgcmV0dXJuIGZuRXhpc3RzKEFycmF5LnByb3RvdHlwZS5mb3JFYWNoKTsKICAgIH0KCn0pOwo=","id":"15.4.4.18-3-29","path":"TestCases/chapter15/15.4/15.4.4/15.4.4.18/15.4.4.18-3-29.js"},{"code":"77u/Ly8vIENvcHlyaWdodCAoYykgMjAwOSBNaWNyb3NvZnQgQ29ycG9yYXRpb24gCi8vLyAKLy8vIFJlZGlzdHJpYnV0aW9uIGFuZCB1c2UgaW4gc291cmNlIGFuZCBiaW5hcnkgZm9ybXMsIHdpdGggb3Igd2l0aG91dCBtb2RpZmljYXRpb24sIGFyZSBwZXJtaXR0ZWQgcHJvdmlkZWQKLy8vIHRoYXQgdGhlIGZvbGxvd2luZyBjb25kaXRpb25zIGFyZSBtZXQ6IAovLy8gICAgKiBSZWRpc3RyaWJ1dGlvbnMgb2Ygc291cmNlIGNvZGUgbXVzdCByZX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IGNhbGxiYWNrZm4odmFsLCBpZHgsIG9iaikgewogICAgICAgICAgICBhY2Nlc3NlZCA9IHRydWU7CiAgICAgICAgfQoKICAgICAgICB2YXIgb2JqID0geyAwOiAxLCAxOiAxLCBsZW5ndGg6IDAgfTsKCiAgICAgICAgQXJyYXkucHJvdG90eXBlLmZvckVhY2guY2FsbChvYmosIGNhbGxiYWNrZm4pOwoKICAgICAgICByZXR1cm4gIWFjY2Vzc2VkOwogICAgfSwKCiAgICBwcmVjb25kaXRpb246IGZ1bmN0aW9uIHByZXJlcSgpIHsKICAgICAgICByZXR1cm4gZm5FeGlzdHMoQXJyYXkucHJvdG90eXBlLmZvckVhY2gpOwogICAgfQoKfSk7Cg==","id":"15.4.4.18-3-3","path":"TestCases/chapter15/15.4/15.4.4/15.4.4.18/15.4.4.18-3-3.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewoKICAgIGlkOiAiMTUuNC40LjE4LTMtNCIsCgogICAgcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTUvMTUuNC8xNS40LjQvMTUuNC40LjE4LzE1LjQuNC4xOC0zLTQuanMiLAoKICAgIGRlc2NyaXB0aW9uOiAiQXJyYXkucHJvdG90eXBlLmZvckVhY2ggLSB2YWx1ZSBvZiAnbGVuZ3RoJyBpcyBhIG51bWJlciAodmFsdWUgaXMgKzApIiwKCiAgICB0ZXN0OiBmdW5jdGlvbiB0ZXN0Y2FzZSgpIHsKCiAgICAgICAgdmFyIGFjY2Vzc2VkID0gZmFsc2U7CgogICAgICAgIGZ1bmN0aW9uIGNhbGxiYWNrZm4odmFsLCBpZHgsIG9iaikgewogICAgICAgICAgICBhY2Nlc3NlZCA9IHRydWU7CiAgICAgICAgfQoKICAgICAgICB2YXIgb2JqID0geyAwOiAxMSwgbGVuZ3RoOiArMCB9OwoKICAgICAgICBBcnJheS5wcm90b3R5cGUuZm9yRWFjaC5jYWxsKG9iaiwgY2FsbGJhY2tmbik7CgogICAgICAgIHJldHVybiAhYWNjZXNzZWQ7CiAgICB9LAoKICAgIHByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogICAgICAgIHJldHVybiBmbkV4aXN0cyhBcnJheS5wcm90b3R5cGUuZm9yRWFjaCk7CiAgICB9Cgp9KTsK","id":"15.4.4.18-3-4","path":"TestCases/chapter15/15.4/15.4.4/15.4.4.18/15.4.4.18-3-4.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewoKICAgIGlkOiAiMTUuNC40LjE4LTMtNSIsCgogICAgcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTUvMTUuNC8xNS40LjQvMTUuNC40LjE4LzE1LjQuNC4xOC0zLTUuanMiLAoKICAgIGRlc2NyaXB0aW9uOiAiQXJyYXkucHJvdG90eXBlLmZvckVhY2ggLSB2YWx1ZSBvZiAnbGVuZ3RoJyBpcyBhIG51bWJlciAodmFsdWUgaXMgLTApIiwKCiAgICB0ZXN0OiBmdW5jdGlvbiB0ZXN0Y2FzZSgpIHsKCiAgICAgICAgdmFyIGFjY2Vzc2VkID0gZmFsc2U7CgogICAgICAgIGZ1bmN0aW9uIGNhbGxiYWNrZm4odmFsLCBpZHgsIG9iaikgewogICAgICAgICAgICBhY2Nlc3NlZCA9IHRydWU7CiAgICAgICAgfQoKICAgICAgICB2YXIgb2JqID0geyAwOiAxMSwgbGVuZ3RoOiAtMCB9OwoKICAgICAgICBBcnJheS5wcm90b3R5cGUuZm9yRWFjaC5jYWxsKG9iaiwgY2FsbGJhY2tmbik7CgogICAgICAgIHJldHVybiAhYWNjZXNzZWQ7CiAgICB9LAoKICAgIHByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogICAgICAgIHJldHVybiBmbkV4aXN0cyhBcnJheS5wcm90b3R5cGUuZm9yRWFjaCk7CiAgICB9Cgp9KTsK","id":"15.4.4.18-3-5","path":"TestCases/chapter15/15.4/15.4.4/15.4.4.18/15.4.4.18-3-5.js"},{"code":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gaXMgYSBudW1iZXIgKHZhbHVlIGlzIG5lZ2F0aXZlKSIsCgogICAgdGVzdDogZnVuY3Rpb24gdGVzdGNhc2UoKSB7CgogICAgICAgIHZhciB0ZXN0UmVzdWx0MSA9IGZhbHNlOwoKICAgICAgICBmdW5jdGlvbiBjYWxsYmFja2ZuKHZhbCwgaWR4LCBvYmopIHsKICAgICAgICAgICAgdGVzdFJlc3VsdDEgPSAodmFsID4gMTApOwogICAgICAgIH0KCiAgICAgICAgdmFyIG9iaiA9IHsgMTogMTEsIDI6IDksIGxlbmd0aDogLTQyOTQ5NjcyOTQgfTsKCiAgICAgICAgQXJyYXkucHJvdG90eXBlLmZvckVhY2guY2FsbChvYmosIGNhbGxiYWNrZm4pOwoKICAgICAgICByZXR1cm4gdGVzdFJlc3VsdDE7CiAgICB9LAoKICAgIHByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogICAgICAgIHJldHVybiBmbkV4aXN0cyhBcnJheS5wcm90b3R5cGUuZm9yRWFjaCk7CiAgICB9Cgp9KTsK","id":"15.4.4.18-3-7","path":"TestCases/chapter15/15.4/15.4.4/15.4.4.18/15.4.4.18-3-7.js"},{"code":"77u/Ly8vIENvcHlyaWdodCAoYykgMjAwOSBNaWNyb3NvZnQgQ29ycG9yYXRpb24gCi8vLyAKLy8vIFJlZGlzdHJpYnV0aW9uIGFuZCB1c2UgaW4gc291cmNlIGFuZCBiaW5hcnkgZm9ybXMsIHdpdGggb3Igd2l0aG91dCBtb2RpZmljYXRpb24sIGFyZSBwZXJtaXR0ZWQgcHJvdmlkZWQKLy8vIHRoYXQgdGhlIGZvbGxvd2luZyBjb25kaXRpb25zIGFyZSBtZXQ6IAovLy8gICAgKiBSZWRpc3RyaWJ1dGlvbnMgb2Ygc291cmNlIGNvZGUgbXVzdCByZXRhaW4gdGhlIGFib3ZlIGNvcHlyaWdodCBub3RpY2UsIHRoaXMgbGlzdCBvZiBjb25kaXRpb25zIGFuZAovLy8gICAgICB0a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AgICAgdmFyIG9iaiA9IHsgMDogOSwgbGVuZ3RoOiBJbmZpbml0eSB9OwoKICAgICAgICBBcnJheS5wcm90b3R5cGUuZm9yRWFjaC5jYWxsKG9iaiwgY2FsbGJhY2tmbik7CgogICAgICAgIHJldHVybiAhYWNjZXNzZWQ7CiAgICB9LAoKICAgIHByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogICAgICAgIHJldHVybiBmbkV4aXN0cyhBcnJheS5wcm90b3R5cGUuZm9yRWFjaCk7CiAgICB9Cgp9KTsK","id":"15.4.4.18-3-8","path":"TestCases/chapter15/15.4/15.4.4/15.4.4.18/15.4.4.18-3-8.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewoKICAgIGlkOiAiMTUuNC40LjE4LTMtOSIsCgogICAgcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTUvMTUuNC8xNS40LjQvMTUuNC40LjE4LzE1LjQuNC4xOC0zLTkuanMiLAoKICAgIGRlc2NyaXB0aW9uOiAiQXJyYXkucHJvdG90eXBlLmZvckVhY2ggLSB2YWx1ZSBvZiAnbGVuZ3RoJyBpcyBhIG51bWJlciAodmFsdWUgaXMgLUluZmluaXR5KSIsCgogICAgdGVzdDogZnVuY3Rpb24gdGVzdGNhc2UoKSB7CgogICAgICAgIHZhciBhY2Nlc3NlZCA9IGZhbHNlOwoKICAgICAgICBmdW5jdGlvbiBjYWxsYmFja2ZuKHZhbCwgaWR4LCBvYmopIHsKICAgICAgICAgICAgYWNjZXNzZWQgPSB0cnVlOwogICAgICAgIH0KCiAgICAgICAgdmFyIG9iaiA9IHsgMDogOSwgbGVuZ3RoOiAtSW5maW5pdHkgfTsKCiAgICAgICAgQXJyYXkucHJvdG90eXBlLmZvckVhY2guY2FsbChvYmosIGNhbGxiYWNrZm4pOwoKICAgICAgICByZXR1cm4gIWFjY2Vzc2VkOwogICAgfSwKCiAgICBwcmVjb25kaXRpb246IGZ1bmN0aW9uIHByZXJlcSgpIHsKICAgICAgICByZXR1cm4gZm5FeGlzdHMoQXJyYXkucHJvdG90eXBlLmZvckVhY2gpOwogICAgfQoKfSk7Cg==","id":"15.4.4.18-3-9","path":"TestCases/chapter15/15.4/15.4.4/15.4.4.18/15.4.4.18-3-9.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoIHsKaWQ6ICIxNS40LjQuMTgtNC0xIiwKCnBhdGg6ICJUZXN0Q2FzZXMvY2hhcHRlcjE1LzE1LjQvMTUuNC40LzE1LjQuNC4xOC8xNS40LjQuMTgtNC0xLmpzIiwKCmRlc2NyaXB0aW9uOiAiQXJyYXkucHJvdG90eXBlLmZvckVhY2ggdGhyb3dzIFR5cGVFcnJvciBpZiBjYWxsYmFja2ZuIGlzIHVuZGVmaW5lZCIsCgp0ZXN0OiBmdW5jdGlvbiB0ZXN0Y2FzZSgpIHsKCiAgdmFyIGFyciA9IG5ldyBBcnJheSgxMCk7CiAgdHJ5IHsKICAgIGFyci5mb3JFYWNoKCk7ICAgIAogIH0KICBjYXRjaChlKSB7CiAgICBpZihlIGluc3RhbmNlb2YgVHlwZUVycm9yKQogICAgICByZXR1cm4gdHJ1ZTsgIAogIH0KCiB9LAoKcHJlY29uZGl0aW9uOiBmdW5jdGlvbiBwcmVyZXEoKSB7CiAgcmV0dXJuIGZuRXhpc3RzKEFycmF5LnByb3RvdHlwZS5mb3JFYWNoKTsKIH0KfSk7Cg==","id":"15.4.4.18-4-1","path":"TestCases/chapter15/15.4/15.4.4/15.4.4.18/15.4.4.18-4-1.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewoKICAgIGlkOiAiMTUuNC40LjE4LTQtMTAiLAoKICAgIHBhdGg6ICJUZXN0Q2FzZXMvY2hhcHRlcjE1LzE1LjQvMTUuNC40LzE1LjQuNC4xOC8xNS40LjQuMTgtNC0xMC5qcyIsCgogICAgZGVzY3JpcHRpb246ICJBcnJheS5wcm90b3R5cGUuZm9yRWFjaCAtIHRoZSBleGNlcHRpb24gaXMgbm90IHRocm93biBpZiBleGNlcHRpb24gd2FzIHRocm93biBieSBzdGVwIDIiLAoKICAgIHRlc3Q6IGZ1bmN0aW9uIHRlc3RjYXNlKCkgewoKICAgICAgICB2YXIgb2JqID0geyAwOiAxMSwgMTogMTIgfTsKCiAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnR5KG9iaiwgImxlbmd0aCIsIHsKICAgICAgICAgICAgZ2V0OiBmdW5jdGlvbiAoKSB7CiAgICAgICAgICAgICAgICB0aHJvdyBuZXcgU3ludGF4RXJyb3IoKTsKICAgICAgICAgICAgfSwKICAgICAgICAgICAgY29uZmlndXJhYmxlOiB0cnVlCiAgICAgICAgfSk7CgogICAgICAgIHRyeSB7CiAgICAgICAgICAgIEFycmF5LnByb3RvdHlwZS5mb3JFYWNoLmNhbGwob2JqLCB1bmRlZmluZWQpOwogICAgICAgICAgICByZXR1cm4gZmFsc2U7CiAgICAgICAgfSBjYXRjaCAoZXgpIHsKICAgICAgICAgICAgcmV0dXJuICEoZXggaW5zdGFuY2VvZiBUeXBlRXJyb3IpOwogICAgICAgIH0KICAgIH0sCgogICAgcHJlY29uZGl0aW9uOiBmdW5jdGlvbiBwcmVyZXEoKSB7CiAgICAgICAgcmV0dXJuIGZuRXhpc3RzKEFycmF5LnByb3RvdHlwZS5mb3JFYWNoKSAmJiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydHkpOwogICAgfQoKfSk7Cg==","id":"15.4.4.18-4-10","path":"TestCases/chapter15/15.4/15.4.4/15.4.4.18/15.4.4.18-4-10.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewoKICAgIGlkOiAiMTUuNC40LjE4LTQtMTEiLAoKICAgIHBhdGg6ICJUZXN0Q2FzZXMvY2hhcHRlcjE1LzE1LjQvMTUuNC40LzE1LjQuNC4xOC8xNS40LjQuMTgtNC0xMS5qcyIsCgogICAgZGVzY3JpcHRpb246ICJBcnJheS5wcm90b3R5cGUuZm9yRWFjaCAtIHRoZSBleGNlcHRpb24gaXMgbm90IHRocm93biBpZiBleGNlcHRpb24gd2FzIHRocm93biBieSBzdGVwIDMiLAoKICAgIHRlc3Q6IGZ1bmN0aW9uIHRlc3RjYXNlKCkgewoKICAgICAgICB2YXIgb2JqID0geyAwOiAxMSwgMTogMTIgfTsKCiAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnR5KG9iaiwgImxlbmd0aCIsIHsKICAgICAgICAgICAgZ2V0OiBmdW5jdGlvbiAoKSB7CiAgICAgICAgICAgICAgICByZXR1cm4gewogICAgICAgICAgICAgICAgICAgIHRvU3RyaW5nOiBmdW5jdGlvbiAoKSB7CiAgICAgICAgICAgICAgICAgICAgICAgIHRocm93IG5ldyBTeW50YXhFcnJvcigpOwogICAgICAgICAgICAgICAgICAgIH0KICAgICAgICAgICAgICAgIH07CiAgICAgICAgICAgIH0sCiAgICAgICAgICAgIGNvbmZpZ3VyYWJsZTogdHJ1ZQogICAgICAgIH0pOwoKICAgICAgICB0cnkgewogICAgICAgICAgICBBcnJheS5wcm90b3R5cGUuZm9yRWFjaC5jYWxsKG9iaiwgdW5kZWZpbmVkKTsKICAgICAgICAgICAgcmV0dXJuIGZhbHNlOwogICAgICAgIH0gY2F0Y2ggKGV4KSB7CiAgICAgICAgICAgIHJldHVybiAhKGV4IGluc3RhbmNlb2YgVHlwZUVycm9yKTsKICAgICAgICB9CiAgICB9LAoKICAgIHByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogICAgICAgIHJldHVybiBmbkV4aXN0cyhBcnJheS5wcm90b3R5cGUuZm9yRWFjaCkgJiYgZm5FeGlzdHMoT2JqZWN0LmRlZmluZVByb3BlcnR5KTsKICAgIH0KCn0pOwo=","id":"15.4.4.18-4-11","path":"TestCases/chapter15/15.4/15.4.4/15.4.4.18/15.4.4.18-4-11.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewoKICAgIGlkOiAiMTUuN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FzZSgpIHsKCiAgICAgICAgdmFyIG9iaiA9IHsgMTA6IDEwIH07CiAgICAgICAgdmFyIGxlbmd0aEFjY2Vzc2VkID0gZmFsc2U7CiAgICAgICAgdmFyIGxvb3BBY2Nlc3NlZCA9IGZhbHNlOwoKICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydHkob2JqLCAibGVuZ3RoIiwgewogICAgICAgICAgICBnZXQ6IGZ1bmN0aW9uICgpIHsKICAgICAgICAgICAgICAgIGxlbmd0aEFjY2Vzc2VkID0gdHJ1ZTsKICAgICAgICAgICAgICAgIHJldHVybiAyMDsKICAgICAgICAgICAgfSwKICAgICAgICAgICAgY29uZmlndXJhYmxlOiB0cnVlCiAgICAgICAgfSk7CgogICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0eShvYmosICIwIiwgewogICAgICAgICAgICBnZXQ6IGZ1bmN0aW9uICgpIHsKICAgICAgICAgICAgICAgIGxvb3BBY2Nlc3NlZCA9IHRydWU7CiAgICAgICAgICAgICAgICByZXR1cm4gMTA7CiAgICAgICAgICAgIH0sCiAgICAgICAgICAgIGNvbmZpZ3VyYWJsZTogdHJ1ZQogICAgICAgIH0pOwoKICAgICAgICB0cnkgewogICAgICAgICAgICBBcnJheS5wcm90b3R5cGUuZm9yRWFjaC5jYWxsKG9iaik7CiAgICAgICAgICAgIHJldHVybiBmYWxzZTsKICAgICAgICB9IGNhdGNoIChleCkgewogICAgICAgICAgICByZXR1cm4gKGV4IGluc3RhbmNlb2YgVHlwZUVycm9yKSAmJiBsZW5ndGhBY2Nlc3NlZCAmJiAhbG9vcEFjY2Vzc2VkOwogICAgICAgIH0KICAgIH0sCgogICAgcHJlY29uZGl0aW9uOiBmdW5jdGlvbiBwcmVyZXEoKSB7CiAgICAgICAgcmV0dXJuIGZuRXhpc3RzKEFycmF5LnByb3RvdHlwZS5mb3JFYWNoKSAmJiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydHkpICYmIGZuU3VwcG9ydHNBcnJheUluZGV4R2V0dGVyc09uT2JqZWN0cygpOwogICAgfQoKfSk7Cg==","id":"15.4.4.18-4-15","path":"TestCases/chapter15/15.4/15.4.4/15.4.4.18/15.4.4.18-4-15.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoIHsKaWQ6ICIxNS40LjQuMTgtNC0yIiwKCnBhdGg6ICJUZXN0Q2FzZXMvY2hhcHRlcjE1LzE1LjQvMTUuNC40LzE1LjQuNC4xOC8xNS40LjQuMTgtNC0yLmpzIiwKCmRlc2NyaXB0aW9uOiAiQXJyYXkucHJvdG90eXBlLmZvckVhY2ggdGhyb3dzIFJlZmVyZW5jZUVycm9yIGlmIGNhbGxiYWNrZm4gaXMgdW5yZWZlcmVuY2VkIiwKCnRlc3Q6IGZ1bmN0aW9uIHRlc3RjYXNlKCkgewoKICB2YXIgYXJyID0gbmV3IEFycmF5KDEwKTsKICB0cnkgewogICAgYXJyLmZvckVhY2goZm9vKTsgICAgCiAgfQogIGNhdGNoKGUpIHsKICAgIGlmKGUgaW5zdGFuY2VvZiBSZWZlcmVuY2VFcnJvcikKICAgICAgcmV0dXJuIHRydWU7ICAKICB9CgogfSwKCnByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogIHJldHVybiBmbkV4aXN0cyhBcnJheS5wcm90b3R5cGUuZm9yRWFjaCk7CiB9Cn0pOwo=","id":"15.4.4.18-4-2","path":"TestCases/chapter15/15.4/15.4.4/15.4.4.18/15.4.4.18-4-2.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoIHsKaWQ6ICIxNS40LjQuMTgtNC0zIiwKCnBhdGg6ICJUZXN0Q2FzZXMvY2hhcHRlcjE1LzE1LjQvMTUuNC40LzE1LjQuNC4xOC8xNS40LjQuMTgtNC0zLmpzIiwKCmRlc2NyaXB0aW9uOiAiQXJyYXkucHJvdG90eXBlLmZvckVhY2ggdGhyb3dzIFR5cGVFcnJvciBpZiBjYWxsYmFja2ZuIGlzIG51bGwiLAoKdGVzdDogZnVuY3Rpb24gdGVzdGNhc2UoKSB7CgogIHZhciBhcnIgPSBuZXcgQXJyYXkoMTApOwogIHRyeSB7CiAgICBhcnIuZm9yRWFjaChudWxsKTsgICAgCiAgfQogIGNhdGNoKGUpIHsKICAgIGlmKGUgaW5zdGFuY2VvZiBUeXBlRXJyb3IpCiAgICAgIHJldHVybiB0cnVlOyAgCiAgfQoKIH0sCgpwcmVjb25kaXRpb246IGZ1bmN0aW9uIHByZXJlcSgpIHsKICByZXR1cm4gZm5FeGlzdHMoQXJyYXkucHJvdG90eXBlLmZvckVhY2gpOwogfQp9KTsK","id":"15.4.4.18-4-3","path":"TestCases/chapter15/15.4/15.4.4/15.4.4.18/15.4.4.18-4-3.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoIHsKaWQ6ICIxNS40LjQuMTgtNC00IiwKCnBhdGg6ICJUZXN0Q2FzZXMvY2hhcHRlcjE1LzE1LjQvMTUuNC40LzE1LjQuNC4xOC8xNS40LjQuMTgtNC00LmpzIiwKCmRlc2NyaXB0aW9uOiAiQXJyYXkucHJvdG90eXBlLmZvckVhY2ggdGhyb3dzIFR5cGVFcnJvciBpZiBjYWxsYmFja2ZuIGlzIGJvb2xlYW4iLAoKdGVzdDogZnVuY3Rpb24gdGVzdGNhc2UoKSB7CgogIHZhciBhcnIgPSBuZXcgQXJyYXkoMTApOwogIHRyeSB7CiAgICBhcnIuZm9yRWFjaCh0cnVlKTsgICAgCiAgfQogIGNhdGNoKGUpIHsKICAgIGlmKGUgaW5zdGFuY2VvZiBUeXBlRXJyb3IpCiAgICAgIHJldHVybiB0cnVlOyAgCiAgfQoKIH0sCgpwcmVjb25kaXRpb246IGZ1bmN0aW9uIHByZXJlcSgpIHsKICByZXR1cm4gZm5FeGlzdHMoQXJyYXkucHJvdG90eXBlLmZvckVhY2gpOwogfQp9KTsK","id":"15.4.4.18-4-4","path":"TestCases/chapter15/15.4/15.4.4/15.4.4.18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oKCJhYmMiKTsgICAgCiAgfQogIGNhdGNoKGUpIHsKICAgIGlmKGUgaW5zdGFuY2VvZiBUeXBlRXJyb3IpCiAgICAgIHJldHVybiB0cnVlOyAgCiAgfQoKIH0sCgpwcmVjb25kaXRpb246IGZ1bmN0aW9uIHByZXJlcSgpIHsKICByZXR1cm4gZm5FeGlzdHMoQXJyYXkucHJvdG90eXBlLmZvckVhY2gpOwogfQp9KTsK","id":"15.4.4.18-4-6","path":"TestCases/chapter15/15.4/15.4.4/15.4.4.18/15.4.4.18-4-6.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoIHsKaWQ6ICIxNS40LjQuMTgtNC03IiwKCnBhdGg6ICJUZXN0Q2FzZXMvY2hhcHRlcjE1LzE1LjQvMTUuNC40LzE1LjQuNC4xOC8xNS40LjQuMTgtNC03LmpzIiwKCmRlc2NyaXB0aW9uOiAiQXJyYXkucHJvdG90eXBlLmZvckVhY2ggdGhyb3dzIFR5cGVFcnJvciBpZiBjYWxsYmFja2ZuIGlzIE9iamVjdCB3aXRob3V0IENhbGwgaW50ZXJuYWwgbWV0aG9kIiwKCnRlc3Q6IGZ1bmN0aW9uIHRlc3RjYXNlKCkgewoKICB2YXIgYXJyID0gbmV3IEFycmF5KDEwKTsKICB0cnkgewogICAgYXJyLmZvckVhY2gobmV3IE9iamVjdCgpKTsgICAgCiAgfQogIGNhdGNoKGUpIHsKICAgIGlmKGUgaW5zdGFuY2VvZiBUeXBlRXJyb3IpCiAgICAgIHJldHVybiB0cnVlOyAgCiAgfQoKIH0sCgpwcmVjb25kaXRpb246IGZ1bmN0aW9uIHByZXJlcSgpIHsKICByZXR1cm4gZm5FeGlzdHMoQXJyYXkucHJvdG90eXBlLmZvckVhY2gpOwogfQp9KTsK","id":"15.4.4.18-4-7","path":"TestCases/chapter15/15.4/15.4.4/15.4.4.18/15.4.4.18-4-7.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewoKICAgIGlkOiAiMTUuNC40LjE4LTQtOCIsCgogICAgcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTUvMTUuNC8xNS40LjQvMTUuNC40LjE4LzE1LjQuNC4xOC00LTguanMiLAoKICAgIGRlc2NyaXB0aW9uOiAiQXJyYXkucHJvdG90eXBlLmZvckVhY2ggLSBzaWRlIGVmZmVjdHMgcHJvZHVjZWQgYnkgc3RlcCAyIGFyZSB2aXNpYmxlIHdoZW4gYW4gZXhjZXB0aW9uIG9jY3VycyIsCgogICAgdGVzdDogZnVuY3Rpb24gdGVzdGNhc2UoKSB7CgogICAgICAgIHZhciBvYmogPSB7IDA6IDExLCAxOiAxMiB9OwoKICAgICAgICB2YXIgYWNjZXNzZWQgPSBmYWxzZTsKCiAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnR5KG9iaiwgImxlbmd0aCIsIHsKICAgICAgICAgICAgZ2V0OiBmdW5jdGlvbiAoKSB7CiAgICAgICAgICAgICAgICBhY2Nlc3NlZCA9IHRydWU7CiAgICAgICAgICAgICAgICByZXR1cm4gMjsKICAgICAgICAgICAgfSwKICAgICAgICAgICAgY29uZmlndXJhYmxlOiB0cnVlCiAgICAgICAgfSk7CgogICAgICAgIHRyeSB7CiAgICAgICAgICAgIEFycmF5LnByb3RvdHlwZS5mb3JFYWNoLmNhbGwob2JqLCBudWxsKTsKICAgICAgICAgICAgcmV0dXJuIGZhbHNlOwogICAgICAgIH0gY2F0Y2ggKGV4KSB7CiAgICAgICAgICAgIHJldHVybiBleCBpbnN0YW5jZW9mIFR5cGVFcnJvciAmJiBhY2Nlc3NlZDsKICAgICAgICB9CiAgICB9LAoKICAgIHByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogICAgICAgIHJldHVybiBmbkV4aXN0cyhBcnJheS5wcm90b3R5cGUuZm9yRWFjaCkgJiYgZm5FeGlzdHMoT2JqZWN0LmRlZmluZVByb3BlcnR5KTsKICAgIH0KCn0pOwo=","id":"15.4.4.18-4-8","path":"TestCases/chapter15/15.4/15.4.4/15.4.4.18/15.4.4.18-4-8.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewoKICAgIGlkOiAiMTUuNC40LjE4LTQtOSIsCgogICAgcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTUvMTUuNC8xNS40LjQvMTUuNC40LjE4LzE1LjQuNC4xOC00LTkuanMiLAoKICAgIGRlc2NyaXB0aW9uOiAiQXJyYXkucHJvdG90eXBlLmZvckVhY2ggLSBzaWRlIGVmZmVjdHMgcHJvZHVjZWQgYnkgc3RlcCAzIGFyZSB2aXNpYmxlIHdoZW4gYW4gZXhjZXB0aW9uIG9jY3VycyIsCgogICAgdGVzdDogZnVuY3Rpb24gdGVzdGNhc2UoKSB7CgogICAgICAgIHZhciBvYmogPSB7IDA6IDExLCAxOiAxMiB9OwoKICAgICAgICB2YXIgYWNjZXNzZWQgPSBmYWxzZTsKCiAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnR5KG9iaiwgImxlbmd0aCIsIHsKICAgICAgICAgICAgZ2V0OiBmdW5jdGlvbiAoKSB7CiAgICAgICAgICAgICAgICByZXR1cm4gewogICAgICAgICAgICAgICAgICAgIHRvU3RyaW5nOiBmdW5jdGlvbiAoKSB7CiAgICAgICAgICAgICAgICAgICAgICAgIGFjY2Vzc2VkID0gdHJ1ZTsKICAgICAgICAgICAgICAgICAgICAgICAgcmV0dXJuICIyIjsKICAgICAgICAgICAgICAgICAgICB9CiAgICAgICAgICAgICAgICB9OwogICAgICAgICAgICB9LAogICAgICAgICAgICBjb25maWd1cmFibGU6IHRydWUKICAgICAgICB9KTsKCiAgICAgICAgdHJ5IHsKICAgICAgICAgICAgQXJyYXkucHJvdG90eXBlLmZvckVhY2guY2FsbChvYmosIG51bGwpOwogICAgICAgICAgICByZXR1cm4gZmFsc2U7CiAgICAgICAgfSBjYXRjaCAoZXgpIHsKICAgICAgICAgICAgcmV0dXJuIGV4IGluc3RhbmNlb2YgVHlwZUVycm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","path":"TestCases/chapter15/15.4/15.4.4/15.4.4.18/15.4.4.18-5-1-s.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS40LjQuMTgtNS0xIiwKCiAgICBwYXRoOiAiVGVzdENhc2VzL2NoYXB0ZXIxNS8xNS40LzE1LjQuNC8xNS40LjQuMTgvMTUuNC40LjE4LTUtMS5qcyIsCgogICAgZGVzY3JpcHRpb246ICJBcnJheS5wcm90b3R5cGUuZm9yRWFjaCAtIHRoaXNBcmcgaXMgcGFzc2VkIiwKCiAgICB0ZXN0OiBmdW5jdGlvbiB0ZXN0Y2FzZSgpIHsKICAgICAgICB0aGlzLl8xNV80XzRfMThfNV8xID0gZmFsc2U7CiAgICAgICAgdmFyIF8xNV80XzRfMThfNV8xID0gdHJ1ZTsKICAgICAgICB2YXIgcmVzdWx0OwogICAgICAgIGZ1bmN0aW9uIGNhbGxiYWNrZm4odmFsLCBpZHgsIG9iaikgewogICAgICAgICAgICByZXN1bHQgPSB0aGlzLl8xNV80XzRfMThfNV8xOwogICAgICAgIH0KICAgICAgICB2YXIgYXJyID0gWzFdOwogICAgICAgIGFyci5mb3JFYWNoKGNhbGxiYWNrZm4pCiAgICAgICAgcmV0dXJuICFyZXN1bHQ7CiAgICB9LAoKICAgIHByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogICAgICAgIHJldHVybiBmbkV4aXN0cyhBcnJheS5wcm90b3R5cGUuZm9yRWFjaCk7CiAgICB9Cn0pOwo=","id":"15.4.4.18-5-1","path":"TestCases/chapter15/15.4/15.4.4/15.4.4.18/15.4.4.18-5-1.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewoKICAgIGlkOiAiMTUuNC40LjE4LTUtMTAiLAoKICAgIHBhdGg6ICJUZXN0Q2FzZXMvY2hhcHRlcjE1LzE1LjQvMTUuNC40LzE1LjQuNC4xOC8xNS40LjQuMTgtNS0xMC5qcyIsCgogICAgZGVzY3JpcHRpb246ICJBcnJheS5wcm90b3R5cGUuZm9yRWFjaCAtIEFycmF5IE9iamVjdCBjYW4gYmUgdXNlZCBhcyB0aGlzQXJnIiwKCiAgICB0ZXN0OiBmdW5jdGlvbiB0ZXN0Y2FzZSgpIHsKCiAgICAgICAgdmFyIHJlc3VsdCA9IGZhbHNlOwogICAgICAgIHZhciBvYmpBcnJheSA9IFtdOwoKICAgICAgICBmdW5jdGlvbiBjYWxsYmFja2ZuKHZhbCwgaWR4LCBvYmopIHsKICAgICAgICAgICAgcmVzdWx0ID0gKHRoaXMgPT09IG9iakFycmF5KTsKICAgICAgICB9CgogICAgICAgIFsxMV0uZm9yRWFjaChjYWxsYmFja2ZuLCBvYmpBcnJheSk7CiAgICAgICAgcmV0dXJuIHJlc3VsdDsKICAgIH0sCgogICAgcHJlY29uZGl0aW9uOiBmdW5jdGlvbiBwcmVyZXEoKSB7CiAgICAgICAgcmV0dXJuIGZuRXhpc3RzKEFycmF5LnByb3RvdHlwZS5mb3JFYWNoKTsKICAgIH0KCn0pOwo=","id":"15.4.4.18-5-10","path":"TestCases/chapter15/15.4/15.4.4/15.4.4.18/15.4.4.18-5-10.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewoKICAgIGlkOiAiMTUuNC40LjE4LTUtMTEiLAoKICAgIHBhdGg6ICJUZXN0Q2FzZXMvY2hhcHRlcjE1LzE1LjQvMTUuNC40LzE1LjQuNC4xOC8xNS40LjQuMTgtNS0xMS5qcyIsCgogICAgZGVzY3JpcHRpb246ICJBcnJheS5wcm90b3R5cGUuZm9yRWFjaCAtIFN0cmluZyBPYmplY3QgY2FuIGJlIHVzZWQgYXMgdGhpc0FyZyIsCgogICAgdGVzdDogZnVuY3Rpb24gdGVzdGNhc2UoKSB7CgogICAgICAgIHZhciByZXN1bHQgPSBmYWxzZTsKICAgICAgICB2YXIgb2JqU3RyaW5nID0gbmV3IFN0cmluZygpOwoKICAgICAgICBmdW5jdGlvbiBjYWxsYmFja2ZuKHZhbCwgaWR4LCBvYmopIHsKICAgICAgICAgICAgcmVzdWx0ID0gKHRoaXMgPT09IG9ialN0cmluZyk7CiAgICAgICAgfQoKICAgICAgICBbMTFdLmZvckVhY2goY2FsbGJhY2tmbiwgb2JqU3RyaW5nKTsKICAgICAgICByZXR1cm4gcmVzdWx0OwogICAgfSwKCiAgICBwcmVjb25kaXRpb246IGZ1bmN0aW9uIHByZXJlcSgpIHsKICAgICAgICByZXR1cm4gZm5FeGlzdHMoQXJyYXkucHJvdG90eXBlLmZvckVhY2gpOwogICAgfQoKfSk7Cg==","id":"15.4.4.18-5-11","path":"TestCases/chapter15/15.4/15.4.4/15.4.4.18/15.4.4.18-5-11.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewoKICAgIGlkOiAiMTUuNC40LjE4LTUtMTIiLAoKICAgIHBhdGg6ICJUZXN0Q2FzZXMvY2hhcHRlcjE1LzE1LjQvMTUuNC40LzE1LjQuNC4xOC8xNS40LjQuMTgtNS0xMi5qcyIsCgogICAgZGVzY3JpcHRpb246ICJBcnJheS5wcm90b3R5cGUuZm9yRWFjaCAtIEJvb2xlYW4gT2JqZWN0IGNhbiBiZSB1c2VkIGFzIHRoaXNBcmciLAoKICAgIHRlc3Q6IGZ1bmN0aW9uIHRlc3RjYXNlKCkgewoKICAgICAgICB2YXIgcmVzdWx0ID0gZmFsc2U7CiAgICAgICAgdmFyIG9iakJvb2xlYW4gPSBuZXcgQm9vbGVhbigpOwoKICAgICAgICBmdW5jdGlvbiBjYWxsYmFja2ZuKHZhbCwgaWR4LCBvYmopIHsKICAgICAgICAgICAgcmVzdWx0ID0gKHRoaXMgPT09IG9iakJvb2xlYW4pOwogICAgICAgIH0KCiAgICAgICAgWzExXS5mb3JFYWNoKGNhbGxiYWNrZm4sIG9iakJvb2xlYW4pOwogICAgICAgIHJldHVybiByZXN1bHQ7CiAgICB9LAoKICAgIHByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogICAgICAgIHJldHVybiBmbkV4aXN0cyhBcnJheS5wcm90b3R5cGUuZm9yRWFjaCk7CiAgICB9Cgp9KTsK","id":"15.4.4.18-5-12","path":"TestCases/chapter15/15.4/15.4.4/15.4.4.18/15.4.4.18-5-12.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewoKICAgIGlkOiAiMTUuNC40LjE4LTUtMTMiLAoKICAgIHBhdGg6ICJUZXN0Q2FzZXMvY2hhcHRlcjE1LzE1LjQvMTUuNC40LzE1LjQuNC4xOC8xNS40LjQuMTgtNS0xMy5qcyIsCgogICAgZGVzY3JpcHRpb246ICJBcnJheS5wcm90b3R5cGUuZm9yRWFjaCAtIE51bWJlciBPYmplY3QgY2FuIGJlIHVzZWQgYXMgdGhpc0FyZyIsCgogICAgdGVzdDogZnVuY3Rpb24gdGVzdGNhc2UoKSB7CgogICAgICAgIHZhciByZXN1bHQgPSBmYWxzZTsKICAgICAgICB2YXIgb2JqTnVtYmVyID0gbmV3IE51bWJlcigpOwoKICAgICAgICBmdW5jdGlvbiBjYWxsYmFja2ZuKHZhbCwgaWR4LCBvYmopIHsKICAgICAgICAgICAgcmVzdWx0ID0gKHRoaXMgPT09IG9iak51bWJlcik7CiAgICAgICAgfQoKICAgICAgICBbMTFdLmZvckVhY2goY2FsbGJhY2tmbiwgb2JqTnVtYmVyKTsKICAgICAgICByZXR1cm4gcmVzdWx0OwogICAgfSwKCiAgICBwcmVjb25kaXRpb246IGZ1bmN0aW9uIHByZXJlcSgpIHsKICAgICAgICByZXR1cm4gZm5FeGlzdHMoQXJyYXkucHJvdG90eXBlLmZvckVhY2gpOwogICAgfQoKfSk7Cg==","id":"15.4.4.18-5-13","path":"TestCases/chapter15/15.4/15.4.4/15.4.4.18/15.4.4.18-5-13.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewoKICAgIGlkOiAiMTUuNC40LjE4LTUtMTQiLAoKICAgIHBhdGg6ICJUZXN0Q2FzZX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gRGF0ZSgpOwoKICAgICAgICBmdW5jdGlvbiBjYWxsYmFja2ZuKHZhbCwgaWR4LCBvYmopIHsKICAgICAgICAgICAgcmVzdWx0ID0gKHRoaXMgPT09IG9iakRhdGUpOwogICAgICAgIH0KCiAgICAgICAgWzExXS5mb3JFYWNoKGNhbGxiYWNrZm4sIG9iakRhdGUpOwogICAgICAgIHJldHVybiByZXN1bHQ7CiAgICB9LAoKICAgIHByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogICAgICAgIHJldHVybiBmbkV4aXN0cyhBcnJheS5wcm90b3R5cGUuZm9yRWFjaCk7CiAgICB9Cgp9KTsK","id":"15.4.4.18-5-15","path":"TestCases/chapter15/15.4/15.4.4/15.4.4.18/15.4.4.18-5-15.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewoKICAgIGlkOiAiMTUuNC40LjE4LTUtMTYiLAoKICAgIHBhdGg6ICJUZXN0Q2FzZXMvY2hhcHRlcjE1LzE1LjQvMTUuNC40LzE1LjQuNC4xOC8xNS40LjQuMTgtNS0xNi5qcyIsCgogICAgZGVzY3JpcHRpb246ICJBcnJheS5wcm90b3R5cGUuZm9yRWFjaCAtIFJlZ0V4cCBPYmplY3QgY2FuIGJlIHVzZWQgYXMgdGhpc0FyZyIsCgogICAgdGVzdDogZnVuY3Rpb24gdGVzdGNhc2UoKSB7CgogICAgICAgIHZhciByZXN1bHQgPSBmYWxzZTsKICAgICAgICB2YXIgb2JqUmVnRXhwID0gbmV3IFJlZ0V4cCgpOwoKICAgICAgICBmdW5jdGlvbiBjYWxsYmFja2ZuKHZhbCwgaWR4LCBvYmopIHsKICAgICAgICAgICAgcmVzdWx0ID0gKHRoaXMgPT09IG9ialJlZ0V4cCk7CiAgICAgICAgfQoKICAgICAgICBbMTFdLmZvckVhY2goY2FsbGJhY2tmbiwgb2JqUmVnRXhwKTsKICAgICAgICByZXR1cm4gcmVzdWx0OwogICAgfSwKCiAgICBwcmVjb25kaXRpb246IGZ1bmN0aW9uIHByZXJlcSgpIHsKICAgICAgICByZXR1cm4gZm5FeGlzdHMoQXJyYXkucHJvdG90eXBlLmZvckVhY2gpOwogICAgfQoKfSk7Cg==","id":"15.4.4.18-5-16","path":"TestCases/chapter15/15.4/15.4.4/15.4.4.18/15.4.4.18-5-16.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewoKICAgIGlkOiAiMTUuNC40LjE4LTUtMTciLAoKICAgIHBhdGg6ICJUZXN0Q2FzZXMvY2hhcHRlcjE1LzE1LjQvMTUuNC40LzE1LjQuNC4xOC8xNS40LjQuMTgtNS0xNy5qcyIsCgogICAgZGVzY3JpcHRpb246ICJBcnJheS5wcm90b3R5cGUuZm9yRWFjaCAtIHRoZSBKU09OIG9iamVjdCBjYW4gYmUgdXNlZCBhcyB0aGlzQXJnIiwKCiAgICB0ZXN0OiBmdW5jdGlvbiB0ZXN0Y2FzZSgpIHsKCiAgICAgICAgdmFyIHJlc3VsdCA9IGZhbHNlOwogICAgICAgIGZ1bmN0aW9uIGNhbGxiYWNrZm4odmFsLCBpZHgsIG9iaikgewogICAgICAgICAgICByZXN1bHQgPSAodGhpcyA9PT0gSlNPTik7CiAgICAgICAgfQoKICAgICAgICBbMTFdLmZvckVhY2goY2FsbGJhY2tmbiwgSlNPTik7CiAgICAgICAgcmV0dXJuIHJlc3VsdDsKICAgIH0sCgogICAgcHJlY29uZGl0aW9uOiBmdW5jdGlvbiBwcmVyZXEoKSB7CiAgICAgICAgcmV0dXJuIGZuRXhpc3RzKEFycmF5LnByb3RvdHlwZS5mb3JFYWNoKTsKICAgIH0KCn0pOwo=","id":"15.4.4.18-5-17","path":"TestCases/chapter15/15.4/15.4.4/15.4.4.18/15.4.4.18-5-17.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewoKICAgIGlkOiAiMTUuNC40LjE4LTUtMTgiLAoKICAgIHBhdGg6ICJUZXN0Q2FzZXMvY2hhcHRlcjE1LzE1LjQvMTUuNC40LzE1LjQuNC4xOC8xNS40LjQuMTgtNS0xOC5qcyIsCgogICAgZGVzY3JpcHRpb246ICJBcnJheS5wcm90b3R5cGUuZm9yRWFjaCAtIEVycm9yIE9iamVjdCBjYW4gYmUgdXNlZCBhcyB0aGlzQXJnIiwKCiAgICB0ZXN0OiBmdW5jdGlvbiB0ZXN0Y2FzZSgpIHsKCiAgICAgICAgdmFyIHJlc3VsdCA9IGZhbHNlOwogICAgICAgIHZhciBvYmpFcnJvciA9IG5ldyBSYW5nZUVycm9yKCk7CgogICAgICAgIGZ1bmN0aW9uIGNhbGxiYWNrZm4odmFsLCBpZHgsIG9iaikgewogICAgICAgICAgICByZXN1bHQgPSAodGhpcyA9PT0gb2JqRXJyb3IpOwogICAgICAgIH0KCiAgICAgICAgWzExXS5mb3JFYWNoKGNhbGxiYWNrZm4sIG9iakVycm9yKTsKICAgICAgICByZXR1cm4gcmVzdWx0OwogICAgfSwKCiAgICBwcmVjb25kaXRpb246IGZ1bmN0aW9uIHByZXJlcSgpIHsKICAgICAgICByZXR1cm4gZm5FeGlzdHMoQXJyYXkucHJvdG90eXBlLmZvckVhY2gpOwogICAgfQoKfSk7Cg==","id":"15.4.4.18-5-18","path":"TestCases/chapter15/15.4/15.4.4/15.4.4.18/15.4.4.18-5-18.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewoKICAgIGlkOiAiMTUuNC40LjE4LTUtMTkiLAoKICAgIHBhdGg6ICJUZXN0Q2FzZXMvY2hhcHRlcjE1LzE1LjQvMTUuNC40LzE1LjQuNC4xOC8xNS40LjQuMTgtNS0xOS5qcyIsCgogICAgZGVzY3JpcHRpb246ICJBcnJheS5wcm90b3R5cGUuZm9yRWFjaCAtIHRoZSBBcmd1bWVudHMgb2JqZWN0IGNhbiBiZSB1c2VkIGFzIHRoaXNBcmciLAoKICAgIHRlc3Q6IGZ1bmN0aW9uIHRlc3RjYXNlKCkgewoKICAgICAgICB2YXIgcmVzdWx0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oIHJlc3VsdCA9PT0gdHJ1ZSkKICAgIHJldHVybiB0cnVlOyAgICAKCiB9LAoKcHJlY29uZGl0aW9uOiBmdW5jdGlvbiBwcmVyZXEoKSB7CiAgcmV0dXJuIGZuRXhpc3RzKEFycmF5LnByb3RvdHlwZS5mb3JFYWNoKTsKIH0KfSk7Cg==","id":"15.4.4.18-5-2","path":"TestCases/chapter15/15.4/15.4.4/15.4.4.18/15.4.4.18-5-2.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewoKICAgIGlkOiAiMTUuNC40LjE4LTUtMjEiLAoKICAgIHBhdGg6ICJUZXN0Q2FzZXMvY2hhcHRlcjE1LzE1LjQvMTUuNC40LzE1LjQuNC4xOC8xNS40LjQuMTgtNS0yMS5qcyIsCgogICAgZGVzY3JpcHRpb246ICJBcnJheS5wcm90b3R5cGUuZm9yRWFjaCAtIHRoZSBnbG9iYWwgb2JqZWN0IGNhbiBiZSB1c2VkIGFzIHRoaXNBcmciLAoKICAgIHRlc3Q6IGZ1bmN0aW9uIHRlc3RjYXNlKCkgewoKICAgICAgICB2YXIgcmVzdWx0ID0gZmFsc2U7CiAgICAgICAgZnVuY3Rpb24gY2FsbGJhY2tmbih2YWwsIGlkeCwgb2JqKSB7CiAgICAgICAgICAgIHJlc3VsdCA9ICh0aGlzID09PSBmbkdsb2JhbE9iamVjdCgpKTsKICAgICAgICB9CgogICAgICAgIFsxMV0uZm9yRWFjaChjYWxsYmFja2ZuLCBmbkdsb2JhbE9iamVjdCgpKTsKICAgICAgICByZXR1cm4gcmVzdWx0OwogICAgfSwKCiAgICBwcmVjb25kaXRpb246IGZ1bmN0aW9uIHByZXJlcSgpIHsKICAgICAgICByZXR1cm4gZm5FeGlzdHMoQXJyYXkucHJvdG90eXBlLmZvckVhY2gpOwogICAgfQoKfSk7Cg==","id":"15.4.4.18-5-21","path":"TestCases/chapter15/15.4/15.4.4/15.4.4.18/15.4.4.18-5-21.js"},{"code":"RVM1SGFybmVzcy5y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ogZnVuY3Rpb24gdGVzdGNhc2UoKSB7CgogICAgICAgIHZhciByZXN1bHQgPSBmYWxzZTsKICAgICAgICBmdW5jdGlvbiBjYWxsYmFja2ZuKHZhbCwgaWR4LCBvYmopIHsKICAgICAgICAgICAgcmVzdWx0ID0gKHRoaXMudmFsdWVPZigpID09PSAxMDEpOwogICAgICAgIH0KCiAgICAgICAgWzExXS5mb3JFYWNoKGNhbGxiYWNrZm4sIDEwMSk7CiAgICAgICAgcmV0dXJuIHJlc3VsdDsKICAgIH0sCgogICAgcHJlY29uZGl0aW9uOiBmdW5jdGlvbiBwcmVyZXEoKSB7CiAgICAgICAgcmV0dXJuIGZuRXhpc3RzKEFycmF5LnByb3RvdHlwZS5mb3JFYWNoKTsKICAgIH0KCn0pOwo=","id":"15.4.4.18-5-23","path":"TestCases/chapter15/15.4/15.4.4/15.4.4.18/15.4.4.18-5-23.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewoKICAgIGlkOiAiMTUuNC40LjE4LTUtMjQiLAoKICAgIHBhdGg6ICJUZXN0Q2FzZXMvY2hhcHRlcjE1LzE1LjQvMTUuNC40LzE1LjQuNC4xOC8xNS40LjQuMTgtNS0yNC5qcyIsCgogICAgZGVzY3JpcHRpb246ICJBcnJheS5wcm90b3R5cGUuZm9yRWFjaCAtIHN0cmluZyBwcmltaXRpdmUgY2FuIGJlIHVzZWQgYXMgdGhpc0FyZyIsCgogICAgdGVzdDogZnVuY3Rpb24gdGVzdGNhc2UoKSB7CgogICAgICAgIHZhciByZXN1bHQgPSBmYWxzZTsKICAgICAgICBmdW5jdGlvbiBjYWxsYmFja2ZuKHZhbCwgaWR4LCBvYmopIHsKICAgICAgICAgICAgcmVzdWx0ID0gKHRoaXMudmFsdWVPZigpID09PSAiYWJjIik7CiAgICAgICAgfQoKICAgICAgICBbMTFdLmZvckVhY2goY2FsbGJhY2tmbiwgImFiYyIpOwogICAgICAgIHJldHVybiByZXN1bHQ7CiAgICB9LAoKICAgIHByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogICAgICAgIHJldHVybiBmbkV4aXN0cyhBcnJheS5wcm90b3R5cGUuZm9yRWFjaCk7CiAgICB9Cgp9KTsK","id":"15.4.4.18-5-24","path":"TestCases/chapter15/15.4/15.4.4/15.4.4.18/15.4.4.18-5-24.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS40LjQuMTgtNS0yNSIsCgogICAgcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTUvMTUuNC8xNS40LjQvMTUuNC40LjE4LzE1LjQuNC4xOC01LTI1LmpzIiwKCiAgICBkZXNjcmlwdGlvbjogIkFycmF5LnByb3RvdHlwZS5mb3JFYWNoIC0gdGhpc0FyZyBub3QgcGFzc2VkIiwKCiAgICB0ZXN0OiBmdW5jdGlvbiB0ZXN0Y2FzZSgpIHsKICAgICAgICBmdW5jdGlvbiBpbm5lck9iaigpIHsKICAgICAgICAgICAgdGhpcy5fMTVfNF80XzE4XzVfMjUgPSB0cnVlOwogICAgICAgICAgICB2YXIgXzE1XzRfNF8xOF81XzI1ID0gZmFsc2U7CiAgICAgICAgICAgIHZhciByZXN1bHQ7CiAgICAgICAgICAgIGZ1bmN0aW9uIGNhbGxiYWNrZm4odmFsLCBpZHgsIG9iaikgewogICAgICAgICAgICAgICAgcmVzdWx0ID0gdGhpcy5fMTVfNF80XzE4XzVfMjU7CiAgICAgICAgICAgIH0KICAgICAgICAgICAgdmFyIGFyciA9IFsxXTsKICAgICAgICAgICAgYXJyLmZvckVhY2goY2FsbGJhY2tmbikKICAgICAgICAgICAgdGhpcy5yZXRWYWwgPSAhcmVzdWx0OwogICAgICAgIH0KICAgICAgICByZXR1cm4gbmV3IGlubmVyT2JqKCkucmV0VmFsOwogICAgfSwKCiAgICBwcmVjb25kaXRpb246IGZ1bmN0aW9uIHByZXJlcSgpIHsKICAgICAgICByZXR1cm4gZm5FeGlzdHMoQXJyYXkucHJvdG90eXBlLmZvckVhY2gpOwogICAgfQp9KTsK","id":"15.4.4.18-5-25","path":"TestCases/chapter15/15.4/15.4.4/15.4.4.18/15.4.4.18-5-25.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoIHsKaWQ6ICIxNS40LjQuMTgtNS0zIiwKCnBhdGg6ICJUZXN0Q2FzZXMvY2hhcHRlcjE1LzE1LjQvMTUuNC40LzE1LjQuNC4xOC8xNS40LjQuMTgtNS0zLmpzIiwKCmRlc2NyaXB0aW9uOiAiQXJyYXkucHJvdG90eXBlLmZvckVhY2ggLSB0aGlzQXJnIGlzIEFycmF5IiwKCnRlc3Q6IGZ1bmN0aW9uIHRlc3RjYXNlKCkgewogIHZhciByZXMgPSBmYWxzZTsKICB2YXIgYSA9IG5ldyBBcnJheSgpOwogIGEucmVzID0gdHJ1ZTsKICB2YXIgcmVzdWx0OwogIGZ1bmN0aW9uIGNhbGxiYWNrZm4odmFsLCBpZHgsIG9iaikKICB7CiAgICByZXN1bHQgPSB0aGlzLnJlczsKICB9CgogIHZhciBhcnIgPSBbMV07CiAgYXJyLmZvckVhY2goY2FsbGJhY2tmbixhKQogIGlmKCByZXN1bHQgPT09IHRydWUpCiAgICByZXR1cm4gdHJ1ZTsgICAgCgogfSwKCnByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogIHJldHVybiBmbkV4aXN0cyhBcnJheS5wcm90b3R5cGUuZm9yRWFjaCk7CiB9Cn0pOwo=","id":"15.4.4.18-5-3","path":"TestCases/chapter15/15.4/15.4.4/15.4.4.18/15.4.4.18-5-3.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoIHsKaWQ6ICIxNS40LjQuMTgtNS00IiwKCnBhdGg6ICJUZXN0Q2FzZXMvY2hhcHRlcjE1LzE1LjQvMTUuNC40LzE1LjQuNC4xOC8xNS40LjQuMTgtNS00LmpzIiwKCmRlc2NyaXB0aW9uOiAiQXJyYXkucHJvdG90eXBlL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S5wcm90b3R5cGUuZm9yRWFjaCk7CiB9Cn0pOwo=","id":"15.4.4.18-5-6","path":"TestCases/chapter15/15.4/15.4.4/15.4.4.18/15.4.4.18-5-6.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewoKICAgIGlkOiAiMTUuNC40LjE4LTUtNyIsCgogICAgcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTUvMTUuNC8xNS40LjQvMTUuNC40LjE4LzE1LjQuNC4xOC01LTcuanMiLAoKICAgIGRlc2NyaXB0aW9uOiAiQXJyYXkucHJvdG90eXBlLmZvckVhY2ggLSBidWlsdC1pbiBmdW5jdGlvbnMgY2FuIGJlIHVzZWQgYXMgdGhpc0FyZyIsCgogICAgdGVzdDogZnVuY3Rpb24gdGVzdGNhc2UoKSB7CgogICAgICAgIHZhciByZXN1bHQgPSBmYWxzZTsKCiAgICAgICAgZnVuY3Rpb24gY2FsbGJhY2tmbih2YWwsIGlkeCwgb2JqKSB7CiAgICAgICAgICAgIHJlc3VsdCA9ICh0aGlzID09PSBldmFsKTsKICAgICAgICB9CgogICAgICAgIFsxMV0uZm9yRWFjaChjYWxsYmFja2ZuLCBldmFsKTsKICAgICAgICByZXR1cm4gcmVzdWx0OwogICAgfSwKCiAgICBwcmVjb25kaXRpb246IGZ1bmN0aW9uIHByZXJlcSgpIHsKICAgICAgICByZXR1cm4gZm5FeGlzdHMoQXJyYXkucHJvdG90eXBlLmZvckVhY2gpOwogICAgfQoKfSk7Cg==","id":"15.4.4.18-5-7","path":"TestCases/chapter15/15.4/15.4.4/15.4.4.18/15.4.4.18-5-7.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewoKICAgIGlkOiAiMTUuNC40LjE4LTUtOSIsCgogICAgcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTUvMTUuNC8xNS40LjQvMTUuNC40LjE4LzE1LjQuNC4xOC01LTkuanMiLAoKICAgIGRlc2NyaXB0aW9uOiAiQXJyYXkucHJvdG90eXBlLmZvckVhY2ggLSBGdW5jdGlvbiBPYmplY3QgY2FuIGJlIHVzZWQgYXMgdGhpc0FyZyIsCgogICAgdGVzdDogZnVuY3Rpb24gdGVzdGNhc2UoKSB7CgogICAgICAgIHZhciByZXN1bHQgPSBmYWxzZTsKICAgICAgICB2YXIgb2JqU3RyaW5nID0gZnVuY3Rpb24gKCkgeyB9OwoKICAgICAgICBmdW5jdGlvbiBjYWxsYmFja2ZuKHZhbCwgaWR4LCBvYmopIHsKICAgICAgICAgICAgcmVzdWx0ID0gKHRoaXMgPT09IG9ialN0cmluZyk7CiAgICAgICAgfQoKICAgICAgICBbMTFdLmZvckVhY2goY2FsbGJhY2tmbiwgb2JqU3RyaW5nKTsKICAgICAgICByZXR1cm4gcmVzdWx0OwogICAgfSwKCiAgICBwcmVjb25kaXRpb246IGZ1bmN0aW9uIHByZXJlcSgpIHsKICAgICAgICByZXR1cm4gZm5FeGlzdHMoQXJyYXkucHJvdG90eXBlLmZvckVhY2gpOwogICAgfQoKfSk7Cg==","id":"15.4.4.18-5-9","path":"TestCases/chapter15/15.4/15.4.4/15.4.4.18/15.4.4.18-5-9.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoIHsKaWQ6ICIxNS40LjQuMTgtNy0xIiwKCnBhdGg6ICJUZXN0Q2FzZXMvY2hhcHRlcjE1LzE1LjQvMTUuNC40LzE1LjQuNC4xOC8xNS40LjQuMTgtNy0xLmpzIiwKCmRlc2NyaXB0aW9uOiAiQXJyYXkucHJvdG90eXBlLmZvckVhY2ggZG9lc24ndCBjb25zaWRlciBuZXcgZWxlbWVudHMgYWRkZWQgdG8gYXJyYXkgYWZ0ZXIgdGhlIGNhbGwiLAoKdGVzdDogZnVuY3Rpb24gdGVzdGNhc2UoKSB7IAogCiAgdmFyIGNhbGxDbnQgPSAwOwogIGZ1bmN0aW9uIGNhbGxiYWNrZm4odmFsLCBpZHgsIG9iaikKICB7CiAgICBjYWxsQ250Kys7IAogICAg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9Cn0pOwo=","id":"15.4.4.18-7-2","path":"TestCases/chapter15/15.4/15.4.4/15.4.4.18/15.4.4.18-7-2.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoIHsKaWQ6ICIxNS40LjQuMTgtNy0zIiwKCnBhdGg6ICJUZXN0Q2FzZXMvY2hhcHRlcjE1LzE1LjQvMTUuNC40LzE1LjQuNC4xOC8xNS40LjQuMTgtNy0zLmpzIiwKCmRlc2NyaXB0aW9uOiAiQXJyYXkucHJvdG90eXBlLmZvckVhY2ggZG9lc24ndCB2aXNpdCBkZWxldGVkIGVsZW1lbnRzIHdoZW4gQXJyYXkubGVuZ3RoIGlzIGRlY3JlYXNlZCIsCgp0ZXN0OiBmdW5jdGlvbiB0ZXN0Y2FzZSgpIHsgCiAKICB2YXIgY2FsbENudCA9IDA7CiAgZnVuY3Rpb24gY2FsbGJhY2tmbih2YWwsIGlkeCwgb2JqKQogIHsKICAgIGFyci5sZW5ndGg9MzsKICAgIGNhbGxDbnQrKzsKICB9CgogIHZhciBhcnIgPSBbMSwyLDMsNCw1XTsKICBhcnIuZm9yRWFjaChjYWxsYmFja2ZuKTsKICBpZiggY2FsbENudCA9PT0gMykgICAgCiAgICAgIHJldHVybiB0cnVlOyAgCiAgCiB9LAoKcHJlY29uZGl0aW9uOiBmdW5jdGlvbiBwcmVyZXEoKSB7CiAgcmV0dXJuIGZuRXhpc3RzKEFycmF5LnByb3RvdHlwZS5mb3JFYWNoKTsKIH0KfSk7Cg==","id":"15.4.4.18-7-3","path":"TestCases/chapter15/15.4/15.4.4/15.4.4.18/15.4.4.18-7-3.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoIHsKaWQ6ICIxNS40LjQuMTgtNy00IiwKCnBhdGg6ICJUZXN0Q2FzZXMvY2hhcHRlcjE1LzE1LjQvMTUuNC40LzE1LjQuNC4xOC8xNS40LjQuMTgtNy00LmpzIiwKCmRlc2NyaXB0aW9uOiAiQXJyYXkucHJvdG90e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sKICAgIGRlbGV0ZSBhcnJbNF07CiAgICBjYWxsQ250Kys7CiAgfQoKICBBcnJheS5wcm90b3R5cGVbNF0gPSA1OwoKICB2YXIgYXJyID0gWzEsMiwzLDQsNV07CiAgYXJyLmZvckVhY2goY2FsbGJhY2tmbikKICBkZWxldGUgQXJyYXkucHJvdG90eXBlWzRdOwogIGlmKCBjYWxsQ250ID09PSA1KSAgICAKICAgICAgcmV0dXJuIHRydWU7ICAKICAKIH0sCgpwcmVjb25kaXRpb246IGZ1bmN0aW9uIHByZXJlcSgpIHsKICByZXR1cm4gZm5FeGlzdHMoQXJyYXkucHJvdG90eXBlLmZvckVhY2gpOwogfQp9KTsK","id":"15.4.4.18-7-5","path":"TestCases/chapter15/15.4/15.4.4/15.4.4.18/15.4.4.18-7-5.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS40LjQuMTgtNy03IiwKCiAgICBwYXRoOiAiVGVzdENhc2VzL2NoYXB0ZXIxNS8xNS40LzE1LjQuNC8xNS40LjQuMTgvMTUuNC40LjE4LTctNy5qcyIsCgogICAgZGVzY3JpcHRpb246ICJBcnJheS5wcm90b3R5cGUuZm9yRWFjaCAtIGNvbnNpZGVycyBuZXcgdmFsdWUgb2YgZWxlbWVudHMgaW4gYXJyYXkgYWZ0ZXIgdGhlIGNhbGwiLAoKICAgIHRlc3Q6IGZ1bmN0aW9uIHRlc3RjYXNlKCkgewoKICAgICAgICB2YXIgcmVzdWx0ID0gZmFsc2U7CiAgICAgICAgdmFyIGFyciA9IFsxLCAyLCAzLCA0LCA1XTsKCiAgICAgICAgZnVuY3Rpb24gY2FsbGJhY2tmbih2YWwsIElkeCwgb2JqKSB7CiAgICAgICAgICAgIGFycls0XSA9IDY7CiAgICAgICAgICAgIGlmICh2YWwgPj0gNikgewogICAgICAgICAgICAgICAgcmVzdWx0ID0gdHJ1ZTsKICAgICAgICAgICAgfQogICAgICAgIH0KCiAgICAgICAgYXJyLmZvckVhY2goY2FsbGJhY2tmbik7CiAgICAgICAgcmV0dXJuIHJlc3VsdDsKICAgIH0sCgogICAgcHJlY29uZGl0aW9uOiBmdW5jdGlvbiBwcmVyZXEoKSB7CiAgICAgICAgcmV0dXJuIGZuRXhpc3RzKEFycmF5LnByb3RvdHlwZS5mb3JFYWNoKTsKICAgIH0KCn0pOwo=","id":"15.4.4.18-7-7","path":"TestCases/chapter15/15.4/15.4.4/15.4.4.18/15.4.4.18-7-7.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewoKICAgIGlkOiAiMTUuNC40LjE4LTctOCIsCgogICAgcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTUvMTUuNC8xNS40LjQvMTUuNC40LjE4LzE1LjQuNC4xOC03LTguanMiLAoKICAgIGRlc2NyaXB0aW9uOiAiQXJyYXkucHJvdG90eXBlLmZvckVhY2ggLSBubyBvYnNlcnZhYmxlIGVmZmVjdHMgb2NjdXIgaWYgbGVuIGlzIDAiLAoKICAgIHRlc3Q6IGZ1bmN0aW9uIHRlc3RjYXNlKCkgewogICAgICAgIHZhciBhY2Nlc3NlZCA9IGZhbHNlOwoKICAgICAgICBmdW5jdGlvbiBjYWxsYmFja2ZuKHZhbCwgaWR4LCBvYmopIHsKICAgICAgICAgICAgYWNjZXNzZWQgPSB0cnVlOwogICAgICAgIH0KCiAgICAgICAgdmFyIG9iaiA9IHsgMDogMTEsIDE6IDEyLCBsZW5ndGg6IDAgfTsKCiAgICAgICAgQXJyYXkucHJvdG90eXBlLmZvckVhY2guY2FsbChvYmosIGNhbGxiYWNrZm4pOwogICAgICAgIHJldHVybiAhYWNjZXNzZWQ7CiAgICB9LAoKICAgIHByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogICAgICAgIHJldHVybiBmbkV4aXN0cyhBcnJheS5wcm90b3R5cGUuZm9yRWFjaCk7CiAgICB9Cgp9KTsK","id":"15.4.4.18-7-8","path":"TestCases/chapter15/15.4/15.4.4/15.4.4.18/15.4.4.18-7-8.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewoKICAgIGlkOiAiMTUuNC40LjE4LTctOSIsCgogICAgcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTUvMTUuNC8xNS40LjQvMTUuNC40LjE4LzE1LjQuNC4xOC03LTkuanMiLAoKICAgIGRlc2NyaXB0aW9uOiAiQXJyYXkucHJvdG90eXBlLmZvckVhY2ggLSBtb2RpZmljYXRpb25zIHRvIGxlbmd0aCBkb24ndCBjaGFuZ2UgbnVtYmVyIG9mIGl0ZXJhdGlvbnMiLAoKICAgIHRlc3Q6IGZ1bmN0aW9uIHRlc3RjYXNlKCkgewoKICAgICAgICB2YXIgY2FsbGVkID0gMDsKICAgICAgICBmdW5jdGlvbiBjYWxsYmFja2ZuKHZhbCwgaWR4LCBvYmopIHsKICAgICAgICAgICAgY2FsbGVkKys7CiAgICAgICAgfQoKICAgICAgICB2YXIgb2JqID0geyAxOiAxMiwgMjogOSwgbGVuZ3RoOiAyIH07CgogICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0eShvYmosICIwIiwgewogICAgICAgICAgICBnZXQ6IGZ1bmN0aW9uICgpIHsKICAgICAgICAgICAgICAgIG9iai5sZW5ndGggPSAzOwogICAgICAgICAgICAgICAgcmV0dXJuIDExOwogICAgICAgICAgICB9LAogICAgICAgICAgICBjb25maWd1cmFibGU6IHRydWUKICAgICAgICB9KTsKCiAgICAgICAgQXJyYXkucHJvdG90eXBlLmZvckVhY2guY2FsbChvYmosIGNhbGxiYWNrZm4pOwogICAgICAgIHJldHVybiAyID09PSBjYWxsZWQ7CiAgICB9LAoKICAgIHByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogICAgICAgIHJldHVybiBmbkV4aXN0cyhBcnJheS5wcm90b3R5cGUuZm9yRWFjaCkgJiYgZm5FeGlzdHMoT2JqZWN0LmRlZmluZVByb3BlcnR5KSAmJiBmblN1cHBvcnRzQXJyYXlJbmRleEdldHRlcnNPbk9iamVjdHMoKTsKICAgIH0KCn0pOwo=","id":"15.4.4.18-7-9","path":"TestCases/chapter15/15.4/15.4.4/15.4.4.18/15.4.4.18-7-9.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoIHsKaWQ6ICIxNS40LjQuMTgtNy1iLTEiLAoKcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTUvMTUuNC8xNS40LjQvMTUuNC40LjE4LzE1LjQuNC4xOC03LWItMS5qcyIsCgpkZXNjcmlwdGlvbjogIkFycmF5LnByb3RvdHlwZS5mb3JFYWNoIC0gY2FsbGJhY2tmbiBub3QgY2FsbGVkIGZvciBpbmRleGVzIG5ldmVyIGJlZW4gYXNzaWduZWQgdmFsdWVzIiwKCnRlc3Q6IGZ1bmN0aW9uIHRlc3RjYXNlKCkgeyAKIAogIHZhciBjYWxsQ250ID0gMDsKICBmdW5jdGlvbiBjYWxsYmFja2ZuKHZhbCwgaWR4LCBvYmopCiAgewogICAgY2FsbENudCsrOwogIH0KCiAgdmFyIGFyciA9IG5ldyBBcnJheSgxMCk7CiAgYXJyWzFdID0gdW5kZWZpbmVkOwogIGFyci5mb3JFYWNoKGNhbGxiYWNrZm4pOwogIGlmKCBjYWxsQ250ID09PSAxKSAgICAKICAgIHJldHVybiB0cnVlOyAgICAKIH0sCgpwcmVjb25kaXRpb246IGZ1bmN0aW9uIHByZXJlcSgpIHsKICByZXR1cm4gZm5FeGlzdHMoQXJyYXkucHJvdG90eXBlLmZvckVhY2gpOwogfQp9KTsK","id":"15.4.4.18-7-b-1","path":"TestCases/chapter15/15.4/15.4.4/15.4.4.18/15.4.4.18-7-b-1.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewoKICAgIGlkOiAiMTUuNC40LjE4LTctYi0xMCIsCgogICAgcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTUvMTUuNC8xNS40LjQvMTUuNC40LjE4LzE1LjQuNC4xOC03LWItMTAuanMiLAoKICAgIGRlc2NyaXB0aW9uOiAiQXJyYXkucHJvdG90eXBlLmZvckVhY2ggLSBkZWxldGluZyBwcm9wZXJ0eSBvZiBwcm90b3R5cGUgY2F1c2VzIHByb3RvdHlwZSBpbmRleCBwcm9wZXJ0eSBub3QgdG8gYmUgdmlzaXRlZCBvbiBhbiBBcnJheS1saWtlIE9iamVjdCIsCgogICAgdGVzdDogZnVuY3Rpb24gdGVzdGNhc2UoKSB7CgogICAgICAgIHZhciBhY2Nlc3NlZCA9IGZhbHNlOwogICAgICAgIHZhciB0ZXN0UmVzdWx0ID0gdHJ1ZTsKCiAgICAgICAgZnVuY3Rpb24gY2FsbGJhY2tmbih2YWwsIGlkeCwgb2JqKSB7CiAgICAgICAgICAgIGFjY2Vzc2VkID0gdHJ1ZTsKICAgICAgICAgICAgaWYgKGlkeCA9PT0gMykgewogICAgICAgICAgICAgICAgdGVzdFJlc3VsdCA9IGZhbHNlOwogICAgICAgICAgICB9CiAgICAgICAgfQoKICAgICAgICB2YXIgb2JqID0geyAyOiAyLCBsZW5ndGg6IDIwIH07CgogICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0eShvYmosICIwIiwgewogICAgICAgICAgICBnZXQ6IGZ1bmN0aW9uICgpIHsKICAgICAgICAgICAgICAgIGRlbGV0ZSBPYmplY3QucHJvdG90eXBlWzFdOwogICAgICAgICAgICAgICAgcmV0dXJuIDA7CiAgICAgICAgICAgIH0sCiAgICAgICAgICAgIGNvbmZpZ3VyYWJsZTogdHJ1ZQogICAgICAgIH0pOwoKICAgICAgICB0cnkgewogICAgICAgICAgICBPYmplY3QucHJvdG90eXBlWzFdID0gMTsKICAgICAgICAgICAgQXJyYXkucHJvdG90eXBlLmZvckVhY2guY2FsbChvYmosIGNhbGxiYWNrZm4pOwogICAgICAgICAgICByZXR1cm4gdGVzdFJlc3VsdCAmJiBhY2Nlc3NlZDsKICAgICAgICB9IGZpbmFsbHkgewogICAgICAgICAgICBkZWxldGUgT2JqZWN0LnByb3RvdHlwZVsxXTsKICAgICAgICB9CiAgICB9LAoKICAgIHByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogICAgICAgIHJldHVybiBmbkV4aXN0cyhBcnJheS5wcm90b3R5cGUuZm9yRWFjaCkgJiYgZm5FeGlzdHMoT2JqZWN0LmRlZmluZVByb3BlcnR5KSAmJiBmblN1cHBvcnRzQXJyYXlJbmRleEdldHRlcnNPbk9iamVjdHMoKTsKICAgIH0KCn0pOwo=","id":"15.4.4.18-7-b-10","path":"TestCases/chapter15/15.4/15.4.4/15.4.4.18/15.4.4.18-7-b-10.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewoKICAgIGlkOiAiMTUuNC40LjE4LTctYi0xMSIsCgogICAgcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTUvMTUuNC8xNS40LjQvMTUuNC40LjE4LzE1LjQuNC4xOC03LWItMTEuanMiLAoKICAgIGRlc2NyaXB0aW9uOiAiQXJyYXkucHJvdG90eXBlLmZvckVhY2ggLSBkZWxldGluZyBwcm9wZXJ0eSBvZiBwcm90b3R5cGUgY2F1c2VzIHByb3RvdHlwZSBpbmRleCBwcm9wZXJ0eSBub3QgdG8gYmUgdmlzaXRlZCBvbiBhbiBBcnJheSIsCgogICAgdGVzdDogZnVuY3Rpb24gdGVzdGNhc2UoKSB7CgogICAgICAgIHZhciBhY2Nlc3NlZCA9IGZhbHNlOwogICAgICAgIHZhciB0ZXN0UmVzdWx0ID0gdHJ1ZTsKCiAgICAgICAgZnVuY3Rpb24gY2FsbGJhY2tmbih2YWwsIGlkeCwgb2JqKSB7CiAgICAgICAgICAgIGFjY2Vzc2VkID0gdHJ1ZTsKICAgICAgICAgICAgaWYgKGlkeCA9PT0gMSkgewogICAgICAgICAgICAgICAgdGVzdFJlc3VsdCA9IGZhbHNlOwogICAgICAgICAgICB9CiAgICAgICAgfQoKICAgICAgICB2YXIgYXJyID0gWzAsICwgXTsKCiAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnR5KGFyciwgIjAiLCB7CiAgICAgICAgICAgIGdldDogZnVuY3Rpb24gKCkgewogICAgICAgICAgICAgICAgZGVsZXRlIEFycmF5LnByb3RvdHlwZVsxXTsKICAgICAgICAgICAgICAgIHJldHVybiAwOwogICAgICAgICAgICB9LAogICAgICAgICAgICBjb25maWd1cmFibGU6IHRydWUKICAgICAgICB9KTsKCiAgICAgICAgdHJ5IHsKICAgICAgICAgICAgQXJyYXkucHJvdG90eXBlWzFdID0gMTsKICAgICAgICAgICAgYXJyLmZvckVhY2goY2FsbGJhY2tmbik7CiAgICAgICAgICAgIHJldHVybiB0ZXN0UmVzdWx0ICYmIGFjY2Vzc2VkOwogICAgICAgIH0gZmluYWxseSB7CiAgICAgICAgICAgIGRlbGV0ZSBBcnJheS5wcm90b3R5cGVbMV07CiAgICAgICAgfQogICAgfSwKCiAgICBwcmVjb25kaXRpb246IGZ1bmN0aW9uIHByZXJlcSgpIHsKICAgICAgICByZXR1cm4gZm5FeGlzdHMoQXJyYXkucHJvdG90eXBlLmZvckVhY2gpICYmIGZuRXhpc3RzKE9iamVjdC5kZWZpbmVQcm9wZXJ0eSkgJiYgIVssIDFdLmhhc093blByb3BlcnR5KDApICYmIGZuU3VwcG9ydHNBcnJheUluZGV4R2V0dGVyc09uQXJyYXlzKCk7CiAgICB9Cgp9KTsK","id":"15.4.4.18-7-b-11","path":"TestCases/chapter15/15.4/15.4.4/15.4.4.18/15.4.4.18-7-b-11.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewoKICAgIGlkOiAiMTUuNC40LjE4LTctYi0xMiIsCgogICAgcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTUvMTUuNC8xNS40LjQvMTUuNC40LjE4LzE1LjQuNC4xOC03LWItMTIuanMiLAoKICAgIGRlc2NyaXB0aW9uOiAiQXJyYXkucHJvdG90eXBlLmZvckVhY2ggLSBkZWxldGluZyBvd24gcHJvcGVydHkgd2l0aCBwcm90b3R5cGUgcHJvcGVydHkgY2F1c2VzIHByb3RvdHlwZSBpbmRleCBwcm9wZXJ0eSB0byBiZSB2aXNpdGVkIG9uIGFuIEFycmF5LWxpa2Ugb2JqZWN0IiwKCiAgICB0ZXN0OiBmdW5jdGlvbiB0ZXN0Y2FzZSgpIHsKCiAgICAgICAgdmFyIHRlc3RSZXN1bHQgPSBmYWxzZTsKCiAgICAgICAgZnVuY3Rpb24gY2FsbGJhY2tmbih2YWwsIGlkeCwgb2JqKSB7CiAgICAgICAgICAgIGlmIChpZHggPT09IDEgJiYgdmFsID09PSAxKSB7CiAgICAgICAgICAgICAgICB0ZXN0UmVzdWx0ID0gdHJ1ZTsKICAgICAgICAgICAgfQogICAgICAgIH0KCiAgICAgICAgdmFyIG9iaiA9IHsgMDogMCwgMTogMTExLCBsZW5ndGg6IDEwIH07CgogICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0eShvYmosICIwIiwgewogICAgICAgICAgICBnZXQ6IGZ1bmN0aW9uICgpIHsKICAgICAgICAgICAgICAgIGRlbGV0ZSBvYmpbMV07CiAgICAgICAgICAgICAgICByZXR1cm4gMDsKICAgICAgICAgICAgfSwKICAgICAgICAgICAgY29uZmlndXJhYmxlOiB0cnVlCiAgICAgICAgfSk7CgogICAgICAgIHRyeSB7CiAgICAgICAgICAgIE9iamVjdC5wcm90b3R5cGVbMV0gPSAxOwogICAgICAgICAgICBBcnJheS5wcm90b3R5cGUuZm9yRWFjaC5jYWxsKG9iaiwgY2FsbGJhY2tmbik7CiAgICAgICAgICAgIHJldHVybiB0ZXN0UmVzdWx0OwogICAgICAgIH0gZmluYWxseSB7CiAgICAgICAgICAgIGRlbGV0ZSBPYmplY3QucHJvdG90eXBlWzFdOwogICAgICAgIH0KICAgIH0sCgogICAgcHJlY29uZGl0aW9uOiBmdW5jdGlvbiBwcmVyZXEoKSB7CiAgICAgICAgcmV0dXJuIGZuRXhpc3RzKEFycmF5LnByb3RvdHlwZS5mb3JFYWNoKSAmJiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydHkpICYmIGZuU3VwcG9ydHNBcnJheUluZGV4R2V0dGVyc09uT2JqZWN0cygpOwogICAgfQoKfSk7Cg==","id":"15.4.4.18-7-b-12","path":"TestCases/chapter15/15.4/15.4.4/15.4.4.18/15.4.4.18-7-b-12.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewoKICAgIGlkOiAiMTUuNC40LjE4LTctYi0xMyIsCgogICAgcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTUvMTUuNC8xNS40LjQvMTUuNC40LjE4LzE1LjQuNC4xOC03LWItMTMuanMiLAoKICAgIGRlc2NyaXB0aW9uOiAiQXJyYXkucHJvdG90eXBlLmZvckVhY2ggLSBkZWxldGluZyBvd24gcHJvcGVydHkgd2l0aCBwcm90b3R5cGUgcHJvcGVydHkgY2F1c2VzIHByb3RvdHlwZSBpbmRleCBwcm9wZXJ0eSB0byBiZSB2aXNpdGVkIG9uIGFuIEFycmF5IiwKCiAgICB0ZXN0OiBmdW5jdGlvbiB0ZXN0Y2FzZSgpIHsKCiAgICAgICAgdmFyIHRlc3RSZXN1bHQgPSBmYWxzZTsKCiAgICAgICAgZnVuY3Rpb24gY2FsbGJhY2tmbih2YWwsIGlkeCwgb2JqKSB7CiAgICAgICAgICAgIGlmIChpZHggPT09IDEgJiYgdmFsID09PSAxKSB7CiAgICAgICAgICAgICAgICB0ZXN0UmVzdWx0ID0gdHJ1ZTsKICAgICAgICAgICAgfQogICAgICAgIH0KICAgICAgICB2YXIgYXJyID0gWzAsIDExMV07CgogICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0eShhcnIsICIwIiwgewogICAgICAgICAgICBnZXQ6IGZ1bmN0aW9uICgpIHsKICAgICAgICAgICAgICAgIGRlbGV0ZSBhcnJbMV07CiAgICAgICAgICAgICAgICByZXR1cm4gMDsKICAgICAgICAgICAgfSwKICAgICAgICAgICAgY29uZmlndXJhYmxlOiB0cnVlCiAgICAgICAgfSk7CgogICAgICAgIHRyeSB7CiAgICAgICAgICAgIEFycmF5LnByb3RvdHlwZVsxXSA9IDE7CiAgICAgICAgICAgIGFyci5mb3JFYWNoKGNhbGxiYWNrZm4pOwogICAgICAgICAgICByZXR1cm4gdGVzdFJlc3VsdDsKICAgICAgICB9IGZpbmFsbHkgewogICAgICAgICAgICBkZWxldGUgQXJyYXkucHJvdG90eXBlWzFdOwogICAgICAgIH0KICAgIH0sCgogICAgcHJlY29uZGl0aW9uOiBmdW5jdGlvbiBwcmVyZXEoKSB7CiAgICAgICAgcmV0dXJuIGZuRXhpc3RzKEFycmF5LnByb3RvdHlwZS5mb3JFYWNoKSAmJiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydHkpICYmIGZuU3VwcG9ydHNBcnJheUluZGV4R2V0dGVyc09uQXJyYXlzKCk7CiAgICB9Cgp9KTsK","id":"15.4.4.18-7-b-13","path":"TestCases/chapter15/15.4/15.4.4/15.4.4.18/15.4.4.18-7-b-13.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewoKICAgIGlkOiAiMTUuNC40LjE4LTctYi0xNCIsCgogICAgcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTUvMTUuNC8xNS40LjQvMTUuNC40LjE4LzE1LjQuNC4xOC03LWItMTQuanMiLAoKICAgIGRlc2NyaXB0aW9uOiAiQXJyYXkucHJvdG90eXBlLmZvckVhY2ggLSBkZWNyZWFzaW5nIGxlbmd0aCBvZiBhcnJheSBjYXVzZXMgaW5kZXggcHJvcGVydHkgbm90IHRvIGJlIHZpc2l0ZWQiLAoKICAgIHRlc3Q6IGZ1bmN0aW9uIHRlc3RjYXNlKCkgewoKICAgICAgICB2YXIgYWNjZXNzZWQgPSBmYWxzZTsKICAgICAgICB2YXIgdGVzdFJlc3VsdCA9IHRydWU7CgogICAgICAgIGZ1bmN0aW9uIGNhbGxiYWNrZm4odmFsLCBpZHgsIG9iaikgewogICAgICAgICAgICBhY2Nlc3NlZCA9IHRydWU7CiAgICAgICAgICAgIGlmIChpZHggPT09IDMpIHsKICAgICAgICAgICAgICAgIHRlc3RSZXN1bHQgPSBmYWxzZTsKICAgICAgICAgICAgfQogICAgICAgIH0KCiAgICAgICAgdmFyIGFyciA9IFswLCAxLCAyLCAibGFzdCJdOwoKICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydHkoYXJyLCAiMCIsIHsKICAgICAgICAgICAgZ2V0OiBmdW5jdGlvbiAoKSB7CiAgICAgICAgICAgICAgICBhcnIubGVuZ3RoID0gMzsKICAgICAgICAgICAgICAgIHJldHVybiAwOwogICAgICAgICAgICB9LAogICAgICAgICAgICBjb25maWd1cmFibGU6IHRydWUKICAgICAgICB9KTsKCiAgICAgICAgYXJyLmZvckVhY2goY2FsbGJhY2tmbik7CgogICAgICAgIHJldHVybiB0ZXN0UmVzdWx0ICYmIGFjY2Vzc2VkOwogICAgfSwKCiAgICBwcmVjb25kaXRpb246IGZ1bmN0aW9uIHByZXJlcSgpIHsKICAgICAgICByZXR1cm4gZm5FeGlzdHMoQXJyYXkucHJvdG90eXBlLmZvckVhY2gpICYmIGZuRXhpc3RzKE9iamVjdC5kZWZpbmVQcm9wZXJ0eSkgJiYgZm5TdXBwb3J0c0FycmF5SW5kZXhHZXR0ZXJzT25BcnJheXMoKTsKICAgIH0KCn0pOwo=","id":"15.4.4.18-7-b-14","path":"TestCases/chapter15/15.4/15.4.4/15.4.4.18/15.4.4.18-7-b-14.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewoKICAgIGlkOiAiMTUuNC40LjE4LTctYi0xNSIsCgogICAgcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTUvMTUuNC8xNS40LjQvMTUuNC40LjE4LzE1LjQuNC4xOC03LWItMTUuanMiLAoKICAgIGRlc2NyaXB0aW9uOiAiQXJyYXkucHJvdG90eXBlLmZvckVhY2ggLSBkZWNyZWFzaW5nIGxlbmd0aCBvZiBhcnJheSB3aXRoIHByb3RvdHlwZSBwcm9wZXJ0eSBjYXVzZXMgcHJvdG90eXBlIGluZGV4IHByb3BlcnR5IHRvIGJlIHZpc2l0ZWQiLAoKICAgIHRlc3Q6IGZ1bmN0aW9uIHRlc3RjYXNlKCkgewoKICAgICAgICB2YXIgdGVzdFJlc3VsdCA9IGZhbHNlOwoKICAgICAgICBmdW5jdGlvbiBjYWxsYmFja2ZuKHZhbCwgaWR4LCBvYmopIHsKICAgICAgICAgICAgaWYgKGlkeCA9PT0gMiAmJiB2YWwgPT09ICJwcm90b3R5cGUiKSB7CiAgICAgICAgICAgICAgICB0ZXN0UmVzdWx0ID0gdHJ1ZTsKICAgICAgICAgICAgfQogICAgICAgIH0KICAgICAgICB2YXIgYXJyID0gWzAsIDEsIDJdOwoKICAgICAgICB0cnkgewogICAgICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydHkoQXJyYXkucHJvdG90eXBlLCAiMiIsIHsKICAgICAgICAgICAgICAgIGdldDogZnVuY3Rpb24gKCkgewogICAgICAgICAgICAgICAgICAgIHJldHVybiAicHJvdG90eXBlIjsKICAgICAgICAgICAgICAgIH0sCiAgICAgICAgICAgICAgICBjb25maWd1cmFibGU6IHRydWUKICAgICAgICAgICAgfSk7CgogICAgICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydHkoYXJyLCAiMSIsIHsKICAgICAgICAgICAgICAgIGdldDogZnVuY3Rpb24gKCkgewogICAgICAgICAgICAgICAgICAgIGFyci5sZW5ndGggPSAyOwogICAgICAgICAgICAgICAgICAgIHJldHVybiAxOwogICAgICAgICAgICAgICAgfSwKICAgICAgICAgICAgICAgIGNvbmZpZ3VyYWJsZTogdHJ1ZQogICAgICAgICAgICB9KTsKCiAgICAgICAgICAgIGFyci5mb3JFYWNoKGNhbGxiYWNrZm4pOwoKICAgICAgICAgICAgcmV0dXJuIHRlc3RSZXN1bHQ7CiAgICAgICAgfSBmaW5hbGx5IHsKICAgICAgICAgICAgZGVsZXRlIEFycmF5LnByb3RvdHlwZVsyXTsKICAgICAgICB9CiAgICB9LAoKICAgIHByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogICAgICAgIHJldHVybiBmbkV4aXN0cyhBcnJheS5wcm90b3R5cGUuZm9yRWFjaCkgJiYgZm5FeGlzdHMoT2JqZWN0LmRlZmluZVByb3BlcnR5KSAmJiBmblN1cHBvcnRzQXJyYXlJbmRleEdldHRlcnNPbkFycmF5cygpOwogICAgfQoKfSk7Cg==","id":"15.4.4.18-7-b-15","path":"TestCases/chapter15/15.4/15.4.4/15.4.4.18/15.4.4.18-7-b-15.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewoKICAgIGlkOiAiMTUuNC40LjE4LTctYi0xNiIsCgogICAgcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTUvMTUuNC8xNS40LjQvMTUuNC40LjE4LzE1LjQuNC4xOC03LWItMTYuanMiLAoKICAgIGRlc2NyaXB0aW9uOiAiQXJyYXkucHJvdG90eXBlLmZvckVhY2ggLSBkZWNyZWFzaW5nIGxlbmd0aCBvZiBhcnJheSBkb2VzIG5vdCBkZWxldGUgbm9uLWNvbmZpZ3VyYWJsZSBwcm9wZXJ0aWVzIiwKCiAgICB0ZXN0OiBmdW5jdGlvbiB0ZXN0Y2FzZSgpIHsKCiAgICAgICAgdmFyIHRlc3RSZXN1bHQgPSBmYWxzZTsKCiAgICAgICAgZnVuY3Rpb24gY2FsbGJhY2tmbih2YWwsIGlkeCwgb2JqKSB7CiAgICAgICAgICAgIGlmIChpZHggPT09IDIgJiYgdmFsID09PSAidW5jb25maWd1cmFibGUiKSB7CiAgICAgICAgICAgICAgICB0ZXN0UmVzdWx0ID0gdHJ1ZTsKICAgICAgICAgICAgfQogICAgICAgIH0KCiAgICAgICAgdmFyIGFyciA9IFswLCAxLCAyXTsKCiAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnR5KGFyciwgIjIiLCB7CiAgICAgICAgICAgIGdldDogZnVuY3Rpb24gKCkgewogICAgICAgICAgICAgICAgcmV0dXJuICJ1bmNvbmZpZ3VyYWJsZSI7CiAgICAgICAgICAgIH0sCiAgICAgICAgICAgIGNvbmZpZ3VyYWJsZTogZmFsc2UKICAgICAgICB9KTsKCiAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnR5KGFyciwgIjEiLCB7CiAgICAgICAgICAgIGdldDogZnVuY3Rpb24gKCkgewogICAgICAgICAgICAgICAgYXJyLmxlbmd0aCA9IDI7CiAgICAgICAgICAgICAgICByZXR1cm4gMTsKICAgICAgICAgICAgfSwKICAgICAgICAgICAgY29uZmlndXJhYmxlOiB0cnVlCiAgICAgICAgfSk7CgogICAgICAgIGFyci5mb3JFYWNoKGNhbGxiYWNrZm4pOwoKICAgICAgICByZXR1cm4gdGVzdFJlc3VsdDsKICAgIH0sCgogICAgcHJlY29uZGl0aW9uOiBmdW5jdGlvbiBwcmVyZXEoKSB7CiAgICAgICAgcmV0dXJuIGZuRXhpc3RzKEFycmF5LnByb3RvdHlwZS5mb3JFYWNoKSAmJiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydHkpICYmIGZuU3VwcG9ydHNBcnJheUluZGV4R2V0dGVyc09uQXJyYXlzKCk7CiAgICB9Cgp9KTsK","id":"15.4.4.18-7-b-16","path":"TestCases/chapter15/15.4/15.4.4/15.4.4.18/15.4.4.18-7-b-16.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewoKICAgIGlkOiAiMTUuNC40LjE4LTctYi0yIiwKCiAgICBwYXRoOiAiVGVzdENhc2VzL2NoYXB0ZXIxNS8xNS40LzE1LjQuNC8xNS40LjQuMTgvMTUuNC40LjE4LTctYi0yLmpzIiwKCiAgICBkZXNjcmlwdGlvbjogIkFycmF5LnByb3RvdHlwZS5mb3JFYWNoIC0gYWRkZWQgcHJvcGVydGllcyBpbiBzdGVwIDIgYXJlIHZpc2libGUgaGVyZSIsCgogICAgdGVzdDogZnVuY3Rpb24gdGVzdGNhc2UoKSB7CgogICAgICAgIHZhciB0ZXN0UmVzdWx0ID0gZmFsc2U7CgogICAgICAgIGZ1bmN0aW9uIGNhbGxiYWNrZm4odmFsLCBpZHgsIG9iaikgewogICAgICAgICAgICBpZiAoaWR4ID09PSAyICYmIHZhbCA9PT0gImxlbmd0aCIpIHsKICAgICAgICAgICAgICAgIHRlc3RSZXN1bHQgPSB0cnVlOwogICAgICAgICAgICB9CiAgICAgICAgfQoKICAgICAgICB2YXIgb2JqID0ge307CgogICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0eShvYmosICJsZW5ndGgiLCB7CiAgICAgICAgICAgIGdldDogZnVuY3Rpb24gKCkgewogICAgICAgICAgICAgICAgb2JqWzJdID0gImxlbmd0aCI7CiAgICAgICAgICAgICAgICByZXR1cm4gMzsKICAgICAgICAgICAgfSwKICAgICAgICAgICAgY29uZmlndXJhYmxlOiB0cnVlCiAgICAgICAgfSk7CgogICAgICAgIEFycmF5LnByb3RvdHlwZS5mb3JFYWNoLmNhbGwob2JqLCBjYWxsYmFja2ZuKTsKCiAgICAgICAgcmV0dXJuIHRlc3RSZXN1bHQ7CiAgICB9LAoKICAgIHByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogICAgICAgIHJldHVybiBmbkV4aXN0cyhBcnJheS5wcm90b3R5cGUuZm9yRWFjaCkgJiYgZm5FeGlzdHMoT2JqZWN0LmRlZmluZVByb3BlcnR5KTsKICAgIH0KCn0pOwo=","id":"15.4.4.18-7-b-2","path":"TestCases/chapter15/15.4/15.4.4/15.4.4.18/15.4.4.18-7-b-2.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewoKICAgIGlkOiAiMTUuNC40LjE4LTctYi0zIiwKCiAgICBwYXRoOiAiVGVzdENhc2VzL2NoYXB0ZXIxNS8xNS40LzE1LjQuNC8xNS40LjQuMTgvMTUuNC40LjE4LTctYi0zLmpzIiwKCiAgICBkZXNjcmlwdGlvbjogIkFycmF5LnByb3RvdHlwZS5mb3JFYWNoIC0gZGVsZXRlZCBwcm9wZXJ0aWVzIGluIHN0ZXAgMiBhcmUgdmlzaWJsZSBoZXJlIiwKCiAgICB0ZXN0OiBmdW5jdGlvbiB0ZXN0Y2FzZSgpIHsKCiAgICAgICAgdmFyIGFjY2Vzc2VkID0gZmFsc2U7CiAgICAgICAgdmFyIHRlc3RSZXN1bHQgPSB0cnVlOwoKICAgICAgICBmdW5jdGlvbiBjYWxsYmFja2ZuKHZhbCwgaWR4LCBvYmopIHsKICAgICAgICAgICAgYWNjZXNzZWQgPSB0cnVlOwogICAgICAgICAgICBpZiAoaWR4ID09PSA4KSB7CiAgICAgICAgICAgICAgICB0ZXN0UmVzdWx0ID0gZmFsc2U7CiAgICAgICAgICAgIH0KICAgICAgICB9CiAgICAgICAgdmFyIG9iaiA9IHsgMjogNi45OSwgODogMTkgfTsKCiAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnR5KG9iaiwgImxlbmd0aCIsIHsKICAgICAgICAgICAgZ2V0OiBmdW5jdGlvbiAoKSB7CiAgICAgICAgICAgICAgICBkZWxldGUgb2JqWzhdOwogICAgICAgICAgICAgICAgcmV0dXJuIDEwOwogICAgICAgICAgICB9LAogICAgICAgICAgICBjb25maWd1cmFibGU6IHRydWUKICAgICAgICB9KTsKCiAgICAgICAgQXJyYXkucHJvdG90eXBlLmZvckVhY2guY2FsbChvYmosIGNhbGxiYWNrZm4pOwogICAgICAgIHJldHVybiB0ZXN0UmVzdWx0ICYmIGFjY2Vzc2VkOwogICAgfSwKCiAgICBwcmVjb25kaXRpb246IGZ1bmN0aW9uIHByZXJlcSgpIHsKICAgICAgICByZXR1cm4gZm5FeGlzdHMoQXJyYXkucHJvdG90eXBlLmZvckVhY2gpICYmIGZuRXhpc3RzKE9iamVjdC5kZWZpbmVQcm9wZXJ0eSk7CiAgICB9Cgp9KTsK","id":"15.4.4.18-7-b-3","path":"TestCases/chapter15/15.4/15.4.4/15.4.4.18/15.4.4.18-7-b-3.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewoKICAgIGlkOiAiMTUuNC40LjE4LTctYi00IiwKCiAgICBwYXRoOiAiVGVzdENhc2VzL2NoYXB0ZXIxNS8xNS40LzE1LjQuNC8xNS40LjQuMTgvMTUuNC40LjE4LTctYi00LmpzIiwKCiAgICBkZXNjcmlwdGlvbjogIkFycmF5LnByb3RvdHlwZS5mb3JFYWNoIC0gcHJvcGVydGllcyBhZGRlZCBpbnRvIG93biBvYmplY3QgYWZ0ZXIgY3VycmVudCBwb3NpdGlvbiBhcmUgdmlzaXRlZCBvbiBhbiBBcnJheS1saWtlIG9iamVjdCIsCgogICAgdGVzdDogZnVuY3Rpb24gdGVzdGNhc2UoKSB7CgogICAgICAgIHZhciB0ZXN0UmVzdWx0ID0gZmFsc2U7CgogICAgICAgIGZ1bmN0aW9uIGNhbGxiYWNrZm4odmFsLCBpZHgsIG9iaikgewogICAgICAgICAgICBpZiAoaWR4ID09PSAxICYmIHZhbCA9PT0gMSkgewogICAgICAgICAgICAgICAgdGVzdFJlc3VsdCA9IHRydWU7CiAgICAgICAgICAgIH0KICAgICAgICB9CgogICAgICAgIHZhciBvYmogPSB7IGxlbmd0aDogMiB9OwoKICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydHkob2JqLCAiMCIsIHsKICAgICAgICAgICAgZ2V0OiBmdW5jdGlvbiAoKSB7CiAgICAgICAgICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydHkob2JqLCAiMSIsIHsKICAgICAgICAgICAgICAgICAgICBnZXQ6IGZ1bmN0aW9uICgpIHsKICAgICAgICAgICAgICAgICAgICAgICAgcmV0dXJuIDE7CiAgICAgICAgICAgICAgICAgICAgfSwKICAgICAgICAgICAgICAgICAgICBjb25maWd1cmFibGU6IHRydWUKICAgICAgICAgICAgICAgIH0pOwogICAgICAgICAgICAgICAgcmV0dXJuIDA7CiAgICAgICAgICAgIH0sCiAgICAgICAgICAgIGNvbmZpZ3VyYWJsZTogdHJ1ZQogICAgICAgIH0pOwoKICAgICAgICBBcnJheS5wcm90b3R5cGUuZm9yRWFjaC5jYWxsKG9iaiwgY2FsbGJhY2tmbik7CiAgICAgICAgcmV0dXJuIHRlc3RSZXN1bHQ7CiAgICB9LAoKICAgIHByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogICAgICAgIHJldHVybiBmbkV4aXN0cyhBcnJheS5wcm90b3R5cGUuZm9yRWFjaCkgJiYgZm5FeGlzdHMoT2JqZWN0LmRlZmluZVByb3BlcnR5KSAmJiBmblN1cHBvcnRzQXJyYXlJbmRleEdldHRlcnNPbk9iamVjdHMoKTsKICAgIH0KCn0pOwo=","id":"15.4.4.18-7-b-4","path":"TestCases/chapter15/15.4/15.4.4/15.4.4.18/15.4.4.18-7-b-4.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewoKICAgIGlkOiAiMTUuNC40LjE4LTctYi01IiwKCiAgICBwYXRoOiAiVGVzdENhc2VzL2NoYXB0ZXIxNS8xNS40LzE1LjQuNC8xNS40LjQuMTgvMTUuNC40LjE4LTctYi01LmpzIiwKCiAgICBkZXNjcmlwdGlvbjogIkFycmF5LnByb3RvdHlwZS5mb3JFYWNoIC0gcHJvcGVydGllcyBhZGRlZCBpbnRvIG93biBvYmplY3QgYWZ0ZXIgY3VycmVudCBwb3NpdGlvbiBhcmUgdmlzaXRlZCBvbiBhbiBBcnJheSIsCgogICAgdGVzdDogZnVuY3Rpb24gdGVzdGNhc2UoKSB7CgogICAgICAgIHZhciB0ZXN0UmVzdWx0ID0gZmFsc2U7CgogICAgICAgIGZ1bmN0aW9uIGNhbGxiYWNrZm4odmFsLCBpZHgsIG9iaikgewogICAgICAgICAgICBpZiAoaWR4ID09PSAxICYmIHZhbCA9PT0gMSkgewogICAgICAgICAgICAgICAgdGVzdFJlc3VsdCA9IHRydWU7CiAgICAgICAgICAgIH0KICAgICAgICB9CgogICAgICAgIHZhciBhcnIgPSBbMCwgLCAyXTsKCiAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnR5KGFyciwgIjAiLCB7CiAgICAgICAgICAgIGdldDogZnVuY3Rpb24gKCkgewogICAgICAgICAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnR5KGFyciwgIjEiLCB7CiAgICAgICAgICAgICAgICAgICAgZ2V0OiBmdW5jdGlvbiAoKSB7CiAgICAgICAgICAgICAgICAgICAgICAgIHJldHVybiAxOwogICAgICAgICAgICAgICAgICAgIH0sCiAgICAgICAgICAgICAgICAgICAgY29uZmlndXJhYmxlOiB0cnVlCiAgICAgICAgICAgICAgICB9KTsKICAgICAgICAgICAgICAgIHJldHVybiAwOwogICAgICAgICAgICB9LAogICAgICAgICAgICBjb25maWd1cmFibGU6IHRydWUKICAgICAgICB9KTsKCiAgICAgICAgYXJyLmZvckVhY2goY2FsbGJhY2tmbik7CiAgICAgICAgcmV0dXJuIHRlc3RSZXN1bHQ7CiAgICB9LAoKICAgIHByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogICAgICAgIHJldHVybiBmbkV4aXN0cyhBcnJheS5wcm90b3R5cGUuZm9yRWFjaCkgJiYgZm5FeGlzdHMoT2JqZWN0LmRlZmluZVByb3BlcnR5KSAmJiAhWywgMV0uaGFzT3duUHJvcGVydHkoMCkgJiYgZm5TdXBwb3J0c0FycmF5SW5kZXhHZXR0ZXJzT25BcnJheXMoKTsKICAgIH0KCn0pOwo=","id":"15.4.4.18-7-b-5","path":"TestCases/chapter15/15.4/15.4.4/15.4.4.18/15.4.4.18-7-b-5.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewoKICAgIGlkOiAiMTUuNC40LjE4LTctYi02IiwKCiAgICBwYXRoOiAiVGVzdENhc2VzL2NoYXB0ZXIxNS8xNS40LzE1LjQuNC8xNS40LjQuMTgvMTUuNC40LjE4LTctYi02LmpzIiwKCiAgICBkZXNjcmlwdGlvbjogIkFycmF5LnByb3RvdHlwZS5mb3JFYWNoIC0gcHJvcGVydGllcyBjYW4gYmUgYWRkZWQgdG8gcHJvdG90eXBlIGFmdGVyIGN1cnJlbnQgcG9zaXRpb24gYXJlIHZpc2l0ZWQgb24gYW4gQXJyYXktbGlrZSBvYmplY3QiLAoKICAgIHRlc3Q6IGZ1bmN0aW9uIHRlc3RjYXNlKCkgewoKICAgICAgICB2YXIgdGVzdFJlc3VsdCA9IGZhbHNlOwoKICAgICAgICBmdW5jdGlvbiBjYWxsYmFja2ZuKHZhbCwgaWR4LCBvYmopIHsKICAgICAgICAgICAgaWYgKGlkeCA9PT0gMSAmJiB2YWwgPT09IDYuOTkpIHsKICAgICAgICAgICAgICAgIHRlc3RSZXN1bHQgPSB0cnVlOwogICAgICAgICAgICB9CiAgICAgICAgfQoKICAgICAgICB2YXIgb2JqID0geyBsZW5ndGg6IDIgfTsKCiAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnR5KG9iaiwgIjAiLCB7CiAgICAgICAgICAgIGdldDogZnVuY3Rpb24gKCkgewogICAgICAgICAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnR5KE9iamVjdC5wcm90b3R5cGUsICIxIiwgewogICAgICAgICAgICAgICAgICAgIGdldDogZnVuY3Rpb24gKCkgewogICAgICAgICAgICAgICAgICAgICAgICByZXR1cm4gNi45OTsKICAgICAgICAgICAgICAgICAgICB9LAogICAgICAgICAgICAgICAgICAgIGNvbmZpZ3VyYWJsZTogdHJ1ZQogICAgICAgICAgICAgICAgfSk7CiAgICAgICAgICAgICAgICByZXR1cm4gMDsKICAgICAgICAgICAgfSwKICAgICAgICAgICAgY29uZmlndXJhYmxlOiB0cnVlCiAgICAgICAgfSk7CgogICAgICAgIHRyeSB7CiAgICAgICAgICAgIEFycmF5LnByb3RvdHlwZS5mb3JFYWNoLmNhbGwob2JqLCBjYWxsYmFja2ZuKTsKICAgICAgICAgICAgcmV0dXJuIHRlc3RSZXN1bHQ7CiAgICAgICAgfSBmaW5hbGx5IHsKICAgICAgICAgICAgZGVsZXRlIE9iamVjdC5wcm90b3R5cGVbMV07CiAgICAgICAgfQogICAgfSwKCiAgICBwcmVjb25kaXRpb246IGZ1bmN0aW9uIHByZXJlcSgpIHsKICAgICAgICByZXR1cm4gZm5FeGlzdHMoQXJyYXkucHJvdG90eXBlLmZvckVhY2gpICYmIGZuRXhpc3RzKE9iamVjdC5kZWZpbmVQcm9wZXJ0eSkgJiYgZm5TdXBwb3J0c0FycmF5SW5kZXhHZXR0ZXJzT25PYmplY3RzKCk7CiAgICB9Cgp9KTsK","id":"15.4.4.18-7-b-6","path":"TestCases/chapter15/15.4/15.4.4/15.4.4.18/15.4.4.18-7-b-6.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewoKICAgIGlkOiAiMTUuNC40LjE4LTctYi03IiwKCiAgICBwYXRoOiAiVGVzdENhc2VzL2NoYXB0ZXIxNS8xNS40LzE1LjQuNC8xNS40LjQuMTgvMTUuNC40LjE4LTctYi03LmpzIiwKCiAgICBkZXNjcmlwdGlvbjogIkFycmF5LnByb3RvdHlwZS5mb3JFYWNoIC0gcHJvcGVydGllcyBjYW4gYmUgYWRkZWQgdG8gcHJvdG90eXBlIGFmdGVyIGN1cnJlbnQgcG9zaXRpb24gYXJlIHZpc2l0ZWQgb24gYW4gQXJyYXkiLAoKICAgIHRlc3Q6IGZ1bmN0aW9uIHRlc3RjYXNlKCkgewoKICAgICAgICB2YXIgdGVzdFJlc3VsdCA9IGZhbHNlOwoKICAgICAgICBmdW5jdGlvbiBjYWxsYmFja2ZuKHZhbCwgaWR4LCBvYmopIHsKICAgICAgICAgICAgaWYgKGlkeCA9PT0gMSAmJiB2YWwgPT09IDYuOTkpIHsKICAgICAgICAgICAgICAgIHRlc3RSZXN1bHQgPSB0cnVlOwogICAgICAgICAgICB9CiAgICAgICAgfQoKICAgICAgICB2YXIgYXJyID0gWzAsICwgMl07CgogICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0eShhcnIsICIwIiwgewogICAgICAgICAgICBnZXQ6IGZ1bmN0aW9uICgpIHsKICAgICAgICAgICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0eShBcnJheS5wcm90b3R5cGUsICIxIiwgewogICAgICAgICAgICAgICAgICAgIGdldDogZnVuY3Rpb24gKCkgewogICAgICAgICAgICAgICAgICAgICAgICByZXR1cm4gNi45OTsKICAgICAgICAgICAgICAgICAgICB9LAogICAgICAgICAgICAgICAgICAgIGNvbmZpZ3VyYWJsZTogdHJ1ZQogICAgICAgICAgICAgICAgfSk7CiAgICAgICAgICAgICAgICByZXR1cm4gMDsKICAgICAgICAgICAgfSwKICAgICAgICAgICAgY29uZmlndXJhYmxlOiB0cnVlCiAgICAgICAgfSk7CgogICAgICAgIHRyeSB7CiAgICAgICAgICAgIGFyci5mb3JFYWNoKGNhbGxiYWNrZm4pOwogICAgICAgICAgICByZXR1cm4gdGVzdFJlc3VsdDsKICAgICAgICB9IGZpbmFsbHkgewogICAgICAgICAgICBkZWxldGUgQXJyYXkucHJvdG90eXBlWzFdOwogICAgICAgIH0KICAgIH0sCgogICAgcHJlY29uZGl0aW9uOiBmdW5jdGlvbiBwcmVyZXEoKSB7CiAgICAgICAgcmV0dXJuIGZuRXhpc3RzKEFycmF5LnByb3RvdHlwZS5mb3JFYWNoKSAmJiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydHkpICYmICFbLCAxXS5oYXNPd25Qcm9wZXJ0eSgwKSAmJiBmblN1cHBvcnRzQXJyYXlJbmRleEdldHRlcnNPbkFycmF5cygpOwogICAgfQoKfSk7Cg==","id":"15.4.4.18-7-b-7","path":"TestCases/chapter15/15.4/15.4.4/15.4.4.18/15.4.4.18-7-b-7.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewoKICAgIGlkOiAiMTUuNC40LjE4LTctYi04IiwKCiAgIC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0pOwoKICAgICAgICBBcnJheS5wcm90b3R5cGUuZm9yRWFjaC5jYWxsKG9iaiwgY2FsbGJhY2tmbik7CiAgICAgICAgcmV0dXJuIHRlc3RSZXN1bHQgJiYgYWNjZXNzZWQ7CiAgICB9LAoKICAgIHByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogICAgICAgIHJldHVybiBmbkV4aXN0cyhBcnJheS5wcm90b3R5cGUuZm9yRWFjaCkgJiYgZm5FeGlzdHMoT2JqZWN0LmRlZmluZVByb3BlcnR5KSAmJiBmblN1cHBvcnRzQXJyYXlJbmRleEdldHRlcnNPbk9iamVjdHMoKTsKICAgIH0KCn0pOwo=","id":"15.4.4.18-7-b-8","path":"TestCases/chapter15/15.4/15.4.4/15.4.4.18/15.4.4.18-7-b-8.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewoKICAgIGlkOiAiMTUuNC40LjE4LTctYi05IiwKCiAgICBwYXRoOiAiVGVzdENhc2VzL2NoYXB0ZXIxNS8xNS40LzE1LjQuNC8xNS40LjQuMTgvMTUuNC40LjE4LTctYi05LmpzIiwKCiAgICBkZXNjcmlwdGlvbjogIkFycmF5LnByb3RvdHlwZS5mb3JFYWNoIC0gZGVsZXRpbmcgb3duIHByb3BlcnR5IGNhdXNlcyBpbmRleCBwcm9wZXJ0eSBub3QgdG8gYmUgdmlzaXRlZCBvbiBhbiBBcnJheSIsCgogICAgdGVzdDogZnVuY3Rpb24gdGVzdGNhc2UoKSB7CgogICAgICAgIHZhciBhY2Nlc3NlZCA9IGZhbHNlOwogICAgICAgIHZhciB0ZXN0UmVzdWx0ID0gdHJ1ZTsKCiAgICAgICAgZnVuY3Rpb24gY2FsbGJhY2tmbih2YWwsIGlkeCwgb2JqKSB7CiAgICAgICAgICAgIGFjY2Vzc2VkID0gdHJ1ZTsKICAgICAgICAgICAgaWYgKGlkeCA9PT0gMSkgewogICAgICAgICAgICAgICAgdGVzdFJlc3VsdCA9IGZhbHNlOwogICAgICAgICAgICB9CiAgICAgICAgfQoKICAgICAgICB2YXIgYXJyID0gWzEsIDJdOwoKICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydHkoYXJyLCAiMSIsIHsKICAgICAgICAgICAgZ2V0OiBmdW5jdGlvbiAoKSB7CiAgICAgICAgICAgICAgICByZXR1cm4gIjYuOTkiOwogICAgICAgICAgICB9LAogICAgICAgICAgICBjb25maWd1cmFibGU6IHRydWUKICAgICAgICB9KTsKCiAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnR5KGFyciwgIjAiLCB7CiAgICAgICAgICAgIGdldDogZnVuY3Rpb24gKCkgewogICAgICAgICAgICAgICAgZGVsZXRlIGFyclsxXTsKICAgICAgICAgICAgICAgIHJldHVybiAwOwogICAgICAgICAgICB9LAogICAgICAgICAgICBjb25maWd1cmFibGU6IHRydWUKICAgICAgICB9KTsKCiAgICAgICAgYXJyLmZvckVhY2goY2FsbGJhY2tmbik7CiAgICAgICAgcmV0dXJuIHRlc3RSZXN1bHQgJiYgYWNjZXNzZWQ7CiAgICB9LAoKICAgIHByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogICAgICAgIHJldHVybiBmbkV4aXN0cyhBcnJheS5wcm90b3R5cGUuZm9yRWFjaCkgJiYgZm5FeGlzdHMoT2JqZWN0LmRlZmluZVByb3BlcnR5KSAmJiBmblN1cHBvcnRzQXJyYXlJbmRleEdldHRlcnNPbkFycmF5cygpOwogICAgfQoKfSk7Cg==","id":"15.4.4.18-7-b-9","path":"TestCases/chapter15/15.4/15.4.4/15.4.4.18/15.4.4.18-7-b-9.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewoKICAgIGlkOiAiMTUuNC40LjE4LTctYy1pLTEiLAoKICAgIHBhdGg6ICJUZXN0Q2FzZXMvY2hhcHRlcjE1LzE1LjQvMTUuNC40LzE1LjQuNC4xOC8xNS40LjQuMTgtNy1jLWktMS5qcyIsCgogICAgZGVzY3J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SBvbiBhbiBBcnJheSIsCgogICAgdGVzdDogZnVuY3Rpb24gdGVzdGNhc2UoKSB7CgogICAgICAgIHZhciB0ZXN0UmVzdWx0ID0gZmFsc2U7CgogICAgICAgIGZ1bmN0aW9uIGNhbGxiYWNrZm4odmFsLCBpZHgsIG9iaikgewogICAgICAgICAgICBpZiAoaWR4ID09PSAyKSB7CiAgICAgICAgICAgICAgICB0ZXN0UmVzdWx0ID0gKHZhbCA9PT0gMTIpOwogICAgICAgICAgICB9CiAgICAgICAgfQoKICAgICAgICB2YXIgYXJyID0gW107CgogICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0eShhcnIsICIyIiwgewogICAgICAgICAgICBnZXQ6IGZ1bmN0aW9uICgpIHsKICAgICAgICAgICAgICAgIHJldHVybiAxMjsKICAgICAgICAgICAgfSwKICAgICAgICAgICAgY29uZmlndXJhYmxlOiB0cnVlCiAgICAgICAgfSk7CgogICAgICAgIGFyci5mb3JFYWNoKGNhbGxiYWNrZm4pOwoKICAgICAgICByZXR1cm4gdGVzdFJlc3VsdDsKICAgIH0sCgogICAgcHJlY29uZGl0aW9uOiBmdW5jdGlvbiBwcmVyZXEoKSB7CiAgICAgICAgcmV0dXJuIGZuRXhpc3RzKEFycmF5LnByb3RvdHlwZS5mb3JFYWNoKSAmJiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydHkpICYmIGZuU3VwcG9ydHNBcnJheUluZGV4R2V0dGVyc09uQXJyYXlzKCk7CiAgICB9Cgp9KTsK","id":"15.4.4.18-7-c-i-10","path":"TestCases/chapter15/15.4/15.4.4/15.4.4.18/15.4.4.18-7-c-i-10.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewoKICAgIGlkOiAiMTUuNC40LjE4LTctYy1pLTExIiwKCiAgICBwYXRoOiAiVGVzdENhc2VzL2NoYXB0ZXIxNS8xNS40LzE1LjQuNC8xNS40LjQuMTgvMTUuNC40LjE4LTctYy1pLTExLmpzIiwKCiAgICBkZXNjcmlwdGlvbjogIkFycmF5LnByb3RvdHlwZS5mb3JFYWNoIC0gZWxlbWVudCB0byBiZSByZXRyaWV2ZWQgaXMgb3duIGFjY2Vzc29yIHByb3BlcnR5IHRoYXQgb3ZlcnJpZGVzIGFuIGluaGVyaXRlZCBkYXRhIHByb3BlcnR5IG9uIGFuIEFycmF5LWxpa2Ugb2JqZWN0IiwKCiAgICB0ZXN0OiBmdW5jdGlvbiB0ZXN0Y2FzZSgpIHsKCiAgICAgICAgdmFyIHRlc3RSZXN1bHQgPSBmYWxzZTsKCiAgICAgICAgZnVuY3Rpb24gY2FsbGJhY2tmbih2YWwsIGlkeCwgb2JqKSB7CiAgICAgICAgICAgIGlmIChpZHggPT09IDApIHsKICAgICAgICAgICAgICAgIHRlc3RSZXN1bHQgPSAodmFsID09PSAxMSk7CiAgICAgICAgICAgIH0KICAgICAgICB9CgogICAgICAgIHZhciBwcm90byA9IHsgMDogNSB9OwoKICAgICAgICB2YXIgQ29uID0gZnVuY3Rpb24gKCkgeyB9OwogICAgICAgIENvbi5wcm90b3R5cGUgPSBwcm90bzsKCiAgICAgICAgdmFyIGNoaWxkID0gbmV3IENvbigpOwogICAgICAgIGNoaWxkLmxlbmd0aCA9IDEwOwoKICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydHkoY2hpbGQsICIwIiwgewogICAgICAgICAgICBnZXQ6IGZ1bmN0aW9uICgpIHsKICAgICAgICAgICAgICAgIHJldHVybiAxMTsKICAgICAgICAgICAgfSwKICAgICAgICAgICAgY29uZmlndXJhYmxlOiB0cnVlCiAgICAgICAgfSk7CgogICAgICAgIEFycmF5LnByb3RvdHlwZS5mb3JFYWNoLmNhbGwoY2hpbGQsIGNhbGxiYWNrZm4pOwoKICAgICAgICByZXR1cm4gdGVzdFJlc3VsdDsKICAgIH0sCgogICAgcHJlY29uZGl0aW9uOiBmdW5jdGlvbiBwcmVyZXEoKSB7CiAgICAgICAgcmV0dXJuIGZuRXhpc3RzKEFyc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25maWd1cmFibGU6IHRydWUKICAgICAgICAgICAgfSk7CgogICAgICAgICAgICBhcnIuZm9yRWFjaChjYWxsYmFja2ZuKTsKCiAgICAgICAgICAgIHJldHVybiB0ZXN0UmVzdWx0OwogICAgICAgIH0gZmluYWxseSB7CiAgICAgICAgICAgIGRlbGV0ZSBBcnJheS5wcm90b3R5cGVbMF07CiAgICAgICAgfQogICAgfSwKCiAgICBwcmVjb25kaXRpb246IGZ1bmN0aW9uIHByZXJlcSgpIHsKICAgICAgICByZXR1cm4gZm5FeGlzdHMoQXJyYXkucHJvdG90eXBlLmZvckVhY2gpICYmIGZuRXhpc3RzKE9iamVjdC5kZWZpbmVQcm9wZXJ0eSkgJiYgZm5TdXBwb3J0c0FycmF5SW5kZXhHZXR0ZXJzT25BcnJheXMoKTsKICAgIH0KCn0pOwo=","id":"15.4.4.18-7-c-i-12","path":"TestCases/chapter15/15.4/15.4.4/15.4.4.18/15.4.4.18-7-c-i-12.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewoKICAgIGlkOiAiMTUuNC40LjE4LTctYy1pLTEzIiwKCiAgICBwYXRoOiAiVGVzdENhc2VzL2NoYXB0ZXIxNS8xNS40LzE1LjQuNC8xNS40LjQuMTgvMTUuNC40LjE4LTctYy1pLTEzLmpzIiwKCiAgICBkZXNjcmlwdGlvbjogIkFycmF5LnByb3RvdHlwZS5mb3JFYWNoIC0gZWxlbWVudCB0byBiZSByZXRyaWV2ZWQgaXMgb3duIGFjY2Vzc29yIHByb3BlcnR5IHRoYXQgb3ZlcnJpZGVzIGFuIGluaGVyaXRlZCBhY2Nlc3NvciBwcm9wZXJ0eSBvbiBhbiBBcnJheS1saWtlIG9iamVjdCIsCgogICAgdGVzdDogZnVuY3Rpb24gdGVzdGNhc2UoKSB7CgogICAgICAgIHZhciB0ZXN0UmVzdWx0ID0gZmFsc2U7CgogICAgICAgIGZ1bmN0aW9uIGNhbGxiYWNrZm4odmFsLCBpZHgsIG9iaikgewogICAgICAgICAgICBpZiAoaWR4ID09PSAxKSB7CiAgICAgICAgICAgICAgICB0ZXN0UmVzdWx0ID0gKHZhbCA9PT0gMTIpOwogICAgICAgICAgICB9CiAgICAgICAgfQoKICAgICAgICB2YXIgcHJvdG8gPSB7fTsKCiAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnR5KHByb3RvLCAiMSIsIHsKICAgICAgICAgICAgZ2V0OiBmdW5jdGlvbiAoKSB7CiAgICAgICAgICAgICAgICByZXR1cm4gNjsKICAgICAgICAgICAgfSwKICAgICAgICAgICAgY29uZmlndXJhYmxlOiB0cnVlCiAgICAgICAgfSk7CgogICAgICAgIHZhciBDb24gPSBmdW5jdGlvbiAoKSB7IH07CiAgICAgICAgQ29uLnByb3RvdHlwZSA9IHByb3RvOwoKICAgICAgICB2YXIgY2hpbGQgPSBuZXcgQ29uKCk7CiAgICAgICAgY2hpbGQubGVuZ3RoID0gMTA7CgogICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0eShjaGlsZCwgIjEiLCB7CiAgICAgICAgICAgIGdldDogZnVuY3Rpb24gKCkgewogICAgICAgICAgICAgICAgcmV0dXJuIDEyOwogICAgICAgICAgICB9LAogICAgICAgICAgICBjb25maWd1cmFibGU6IHRydWUKICAgICAgICB9KTsKCgogICAgICAgIEFycmF5LnByb3RvdHlwZS5mb3JFYWNoLmNhbGwoY2hpbGQsIGNhbGxiYWNrZm4pOwoKICAgICAgICByZXR1cm4gdGVzdFJlc3VsdDsKICAgIH0sCgogICAgcHJlY29uZGl0aW9uOiBmdW5jdGlvbiBwcmVyZXEoKSB7CiAgICAgICAgcmV0dXJuIGZuRXhpc3RzKEFycmF5LnByb3RvdHlwZS5mb3JFYWNoKSAmJiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydHkpICYmIGZuU3VwcG9ydHNBcnJheUluZGV4R2V0dGVyc09uT2JqZWN0cygpOwogICAgfQoKfSk7Cg==","id":"15.4.4.18-7-c-i-13","path":"TestC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c3MucmVnaXN0ZXJUZXN0KHsKCiAgICBpZDogIjE1LjQuNC4xOC03LWMtaS0xNCIsCgogICAgcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTUvMTUuNC8xNS40LjQvMTUuNC40LjE4LzE1LjQuNC4xOC03LWMtaS0xNC5qcyIsCgogICAgZGVzY3JpcHRpb246ICIgQXJyYXkucHJvdG90eXBlLmZvckVhY2ggLSBlbGVtZW50IHRvIGJlIHJldHJpZXZlZCBpcyBvd24gYWNjZXNzb3IgcHJvcGVydHkgdGhhdCBvdmVycmlkZXMgYW4gaW5oZXJpdGVkIGFjY2Vzc29yIHByb3BlcnR5IG9uIGFuIEFycmF5IiwKCiAgICB0ZXN0OiBmdW5jdGlvbiB0ZXN0Y2FzZSgpIHsKCiAgICAgICAgdmFyIHRlc3RSZXN1bHQgPSBmYWxzZTsKCiAgICAgICAgZnVuY3Rpb24gY2FsbGJhY2tmbih2YWwsIGlkeCwgb2JqKSB7CiAgICAgICAgICAgIGlmIChpZHggPT09IDApIHsKICAgICAgICAgICAgICAgIHRlc3RSZXN1bHQgPSAodmFsID09PSAxMSk7CiAgICAgICAgICAgIH0KICAgICAgICB9CgogICAgICAgIHZhciBhcnIgPSBbXTsKICAgICAgICB0cnkgewogICAgICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydHkoQXJyYXkucHJvdG90eXBlLCAiMCIsIHsKICAgICAgICAgICAgICAgIGdldDogZnVuY3Rpb24gKCkgewogICAgICAgICAgICAgICAgICAgIHJldHVybiA1OwogICAgICAgICAgICAgICAgfSwKICAgICAgICAgICAgICAgIGNvbmZpZ3VyYWJsZTogdHJ1ZQogICAgICAgICAgICB9KTsKCiAgICAgICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0eShhcnIsICIwIiwgewogICAgICAgICAgICAgICAgZ2V0OiBmdW5jdGlvbiAoKSB7CiAgICAgICAgICAgICAgICAgICAgcmV0dXJuIDExOwogICAgICAgICAgICAgICAgfSwKICAgICAgICAgICAgICAgIGNvbmZpZ3VyYWJsZTogdHJ1ZQogICAgICAgICAgICB9KTsKCiAgICAgICAgICAgIGFyci5mb3JFYWNoKGNhbGxiYWNrZm4pOwoKICAgICAgICAgICAgcmV0dXJuIHRlc3RSZXN1bHQ7CiAgICAgICAgfSBmaW5hbGx5IHsKICAgICAgICAgICAgZGVsZXRlIEFycmF5LnByb3RvdHlwZVswXTsKICAgICAgICB9CiAgICB9LAoKICAgIHByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogICAgICAgIHJldHVybiBmbkV4aXN0cyhBcnJheS5wcm90b3R5cGUuZm9yRWFjaCkgJiYgZm5FeGlzdHMoT2JqZWN0LmRlZmluZVByb3BlcnR5KSAmJiBmblN1cHBvcnRzQXJyYXlJbmRleEdldHRlcnNPbkFycmF5cygpOwogICAgfQoKfSk7Cg==","id":"15.4.4.18-7-c-i-14","path":"TestCases/chapter15/15.4/15.4.4/15.4.4.18/15.4.4.18-7-c-i-14.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewoKICAgIGlkOiAiMTUuNC40LjE4LTctYy1pLTE1IiwKCiAgICBwYXRoOiAiVGVzdENhc2VzL2NoYXB0ZXIxNS8xNS40LzE1LjQuNC8xNS40LjQuMTgvMTUuNC40LjE4LTctYy1pLTE1LmpzIiwKCiAgICBkZXNjcmlwdGlvbjogIkFycmF5LnByb3RvdHlwZS5mb3JFYWNoIC0gZWxlbWVudCB0byBiZSByZXRyaWV2ZWQgaXMgaW5oZXJpdGVkIGFjY2Vzc29yIHByb3BlcnR5IG9uIGFuIEFycmF5LWxpa2Ugb2JqZWN0IiwKCiAgICB0ZXN0OiBmdW5jdGlvbiB0ZXN0Y2FzZSgpIHsKCiAgICAgICAgdmFyIHRlc3RSZXN1bHQgPSBmYWxzZTsKCiAgICAgICAgZnVuY3Rpb24gY2FsbGJhY2tmbih2YWwsIGlkeCwgb2JqKSB7CiAgICAgICAgICAgIGlmIChpZHggPT09IDEpIHsKICAgICAgICAgICAgICAgIHRlc3RSZXN1bHQgPSAodmFsID09PSAxMSk7CiAgICAgICAgICAgIH0KICAgICAgICB9CgogICAgICAgIHZhciBwcm90byA9IHt9OwoKICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydHkocHJvdG8sICIxIiwgewogICAgICAgICAgICBnZXQ6IGZ1bmN0aW9uICgpIHsKICAgICAgICAgICAgICAgIHJldHVybiAxMTsKICAgICAgICAgICAgfSwKICAgICAgICAgICAgY29uZmlndXJhYmxlOiB0cnVlCiAgICAgICAgfSk7CgogICAgICAgIHZhciBDb24gPSBmdW5jdGlvbiAoKSB7IH07CiAgICAgICAgQ29uLnByb3RvdHlwZSA9IHByb3RvOwoKICAgICAgICB2YXIgY2hpbGQgPSBuZXcgQ29uKCk7CiAgICAgICAgY2hpbGQubGVuZ3RoID0gMjA7CgogICAgICAgIEFycmF5LnByb3RvdHlwZS5mb3JFYWNoLmNhbGwoY2hpbGQsIGNhbGxiYWNrZm4pOwoKICAgICAgICByZXR1cm4gdGVzdFJlc3VsdDsKICAgIH0sCgogICAgcHJlY29uZGl0aW9uOiBmdW5jdGlvbiBwcmVyZXEoKSB7CiAgICAgICAgcmV0dXJuIGZuRXhpc3RzKEFycmF5LnByb3RvdHlwZS5mb3JFYWNoKSAmJiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydHkpICYmIGZuU3VwcG9ydHNBcnJheUluZGV4R2V0dGVyc09uT2JqZWN0cygpOwogICAgfQoKfSk7Cg==","id":"15.4.4.18-7-c-i-15","path":"TestCases/chapter15/15.4/15.4.4/15.4.4.18/15.4.4.18-7-c-i-15.js"},{"code":"77u/Ly8vIENvcHlyaWdodCAoYykgMjAwOSBNaWNyb3NvZnQgQ29ycG9yYXRpb24gCi8vLyAKLy8vIFJlZGlzdHJpYnV0aW9uIGFuZCB1c2UgaW4gc291cmNlIGFuZCBiaW5hcnkgZm9ybXMsIHdpdGggb3Igd2l0aG91dCBtb2RpZmljYX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WVudCB0byBiZSByZXRyaWV2ZWQgaXMgaW5oZXJpdGVkIGFjY2Vzc29yIHByb3BlcnR5IG9uIGFuIEFycmF5IiwKCiAgICB0ZXN0OiBmdW5jdGlvbiB0ZXN0Y2FzZSgpIHsKCiAgICAgICAgdmFyIHRlc3RSZXN1bHQgPSBmYWxzZTsKCiAgICAgICAgZnVuY3Rpb24gY2FsbGJhY2tmbih2YWwsIGlkeCwgb2JqKSB7CiAgICAgICAgICAgIGlmIChpZHggPT09IDApIHsKICAgICAgICAgICAgICAgIHRlc3RSZXN1bHQgPSAodmFsID09PSAxMSk7CiAgICAgICAgICAgIH0KICAgICAgICB9CgogICAgICAgIHRyeSB7CiAgICAgICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0eShBcnJheS5wcm90b3R5cGUsICIwIiwgewogICAgICAgICAgICAgICAgZ2V0OiBmdW5jdGlvbiAoKSB7CiAgICAgICAgICAgICAgICAgICAgcmV0dXJuIDExOwogICAgICAgICAgICAgICAgfSwKICAgICAgICAgICAgICAgIGNvbmZpZ3VyYWJsZTogdHJ1ZQogICAgICAgICAgICB9KTsKCiAgICAgICAgICAgIFssICwgLCBdLmZvckVhY2goY2FsbGJhY2tmbik7CgogICAgICAgICAgICByZXR1cm4gdGVzdFJlc3VsdDsKICAgICAgICB9IGZpbmFsbHkgewogICAgICAgICAgICBkZWxldGUgQXJyYXkucHJvdG90eXBlWzBdOwogICAgICAgIH0KICAgIH0sCgogICAgcHJlY29uZGl0aW9uOiBmdW5jdGlvbiBwcmVyZXEoKSB7CiAgICAgICAgcmV0dXJuIGZuRXhpc3RzKEFycmF5LnByb3RvdHlwZS5mb3JFYWNoKSAmJiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydHkpICYmICFbLCAxXS5oYXNPd25Qcm9wZXJ0eSgwKSAmJiBmblN1cHBvcnRzQXJyYXlJbmRleEdldHRlcnNPbkFycmF5cygpOwogICAgfQoKfSk7Cg==","id":"15.4.4.18-7-c-i-16","path":"TestCases/chapter15/15.4/15.4.4/15.4.4.18/15.4.4.18-7-c-i-16.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewoKICAgIGlkOiAiMTUuNC40LjE4LTctYy1pLTE3IiwKCiAgICBwYXRoOiAiVGVzdENhc2VzL2NoYXB0ZXIxNS8xNS40LzE1LjQuNC8xNS40LjQuMTgvMTUuNC40LjE4LTctYy1pLTE3LmpzIiwKCiAgICBkZXNjcmlwdGlvbjogIkFycmF5LnByb3RvdHlwZS5mb3JFYWNoIC0gZWxlbWVudCB0byBiZSByZXRyaWV2ZWQgaXMgb3duIGFjY2Vzc29yIHByb3BlcnR5IHdpdGhvdXQgYSBnZXQgZnVuY3Rpb24gb24gYW4gQXJyYXktbGlrZSBvYmplY3QiLAoKICAgIHRlc3Q6IGZ1bmN0aW9uIHRlc3RjYXNlKCkgewoKICAgICAgICB2YXIgdGVzdFJlc3VsdCA9IGZhbHNlOwoKICAgICAgICBmdW5jdGlvbiBjYWxsYmFja2ZuKHZhbCwgaWR4LCBvYmopIHsKICAgICAgICAgICAgaWYgKGlkeCA9PT0gMSkgewogICAgICAgICAgICAgICAgdGVzdFJlc3VsdCA9ICh0eXBlb2YgdmFsID09PSAidW5kZWZpbmVkIik7CiAgICAgICAgICAgIH0KICAgICAgICB9CgogICAgICAgIHZhciBvYmogPSB7IGxlbmd0aDogMiB9OwogICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0eShvYmosICIxIiwgewogICAgICAgICAgICBzZXQ6IGZ1bmN0aW9uICgpIHsgfSwKICAgICAgICAgICAgY29uZmlndXJhYmxlOiB0cnVlCiAgICAgICAgfSk7CgogICAgICAgIEFycmF5LnByb3RvdHlwZS5mb3JFYWNoLmNhbGwob2JqLCBjYWxsYmFja2ZuKTsKCiAgICAgICAgcmV0dXJuIHRlc3RSZXN1bHQ7CiAgICB9LAoKICAgIHByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogICAgICAg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ICIxIiwgewogICAgICAgICAgICBzZXQ6IGZ1bmN0aW9uICgpIHsgfSwKICAgICAgICAgICAgY29uZmlndXJhYmxlOiB0cnVlCiAgICAgICAgfSk7CgogICAgICAgIHRyeSB7CiAgICAgICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0eShPYmplY3QucHJvdG90eXBlLCAiMSIsIHsKICAgICAgICAgICAgICAgIGdldDogZnVuY3Rpb24gKCkgewogICAgICAgICAgICAgICAgICAgIHJldHVybiAxMDsKICAgICAgICAgICAgICAgIH0sCiAgICAgICAgICAgICAgICBjb25maWd1cmFibGU6IHRydWUKICAgICAgICAgICAgfSk7CgogICAgICAgICAgICBBcnJheS5wcm90b3R5cGUuZm9yRWFjaC5jYWxsKG9iaiwgY2FsbGJhY2tmbik7CgogICAgICAgICAgICByZXR1cm4gdGVzdFJlc3VsdDsKICAgICAgICB9IGZpbmFsbHkgewogICAgICAgICAgICBkZWxldGUgT2JqZWN0LnByb3RvdHlwZVsxXTsKICAgICAgICB9CiAgICB9LAoKICAgIHByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogICAgICAgIHJldHVybiBmbkV4aXN0cyhBcnJheS5wcm90b3R5cGUuZm9yRWFjaCkgJiYgZm5FeGlzdHMoT2JqZWN0LmRlZmluZVByb3BlcnR5KSAmJiBmblN1cHBvcnRzQXJyYXlJbmRleEdldHRlcnNPbk9iamVjdHMoKTsKICAgIH0KCn0pOwo=","id":"15.4.4.18-7-c-i-19","path":"TestCases/chapter15/15.4/15.4.4/15.4.4.18/15.4.4.18-7-c-i-19.js"},{"code":"77u/Ly8vIENvcHlyaWdodCAoYykgMjAwOSBNaWNyb3NvZnQgQ29ycG9yYXRpb24gCi8vLyAKLy8vIFJlZGlzdHJpYnV0aW9uIGFuZCB1c2UgaW4gc291cmNlIGFuZCBiaW5hcnkgZm9ybXMsIHdpdGggb3Igd2l0aG91dCBtb2RpZmljYXRpb24sIGFyZSBwZXJtaXR0ZWQgcHJv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vd24gZGF0YSBwcm9wZXJ0eSBvbiBhbiBBcnJheSIsCgogICAgdGVzdDogZnVuY3Rpb24gdGVzdGNhc2UoKSB7CgogICAgICAgIHZhciB0ZXN0UmVzdWx0ID0gZmFsc2U7CgogICAgICAgIGZ1bmN0aW9uIGNhbGxiYWNrZm4odmFsLCBpZHgsIG9iaikgewogICAgICAgICAgICBpZiAoaWR4ID09PSAwKSB7CiAgICAgICAgICAgICAgICB0ZXN0UmVzdWx0ID0gKHZhbCA9PT0gMTEpOwogICAgICAgICAgICB9CiAgICAgICAgfQoKICAgICAgICBbMTFdLmZvckVhY2goY2FsbGJhY2tmbik7CgogICAgICAgIHJldHVybiB0ZXN0UmVzdWx0OwogICAgfSwKCiAgICBwcmVjb25kaXRpb246IGZ1bmN0aW9uIHByZXJlcSgpIHsKICAgICAgICByZXR1cm4gZm5FeGlzdHMoQXJyYXkucHJvdG90eXBlLmZvckVhY2gpOwogICAgfQoKfSk7Cg==","id":"15.4.4.18-7-c-i-2","path":"TestCases/chapter15/15.4/15.4.4/15.4.4.18/15.4.4.18-7-c-i-2.js"},{"code":"77u/Ly8vIENvcHlyaWdodCAoYykgMjAwOSBNaWNyb3NvZnQgQ29ycG9yYXRpb24gCi8vLyAKLy8vIFJlZGlzdHJpYnV0aW9uIGFuZCB1c2UgaW4gc291cmNlIGFuZCBiaW5hcnkgZm9ybXMsIHdpdGggb3Igd2l0aG91dCBtb2RpZmljYXRpb24sIGFyZSBwZXJtaXR0ZWQgcHJvdmlkZWQKLy8vIHRoYXQgdGhlIGZvbGxvd2luZyBjb25kaXRpb25zIGFyZSBtZXQ6IAovLy8gICAgKiBSZWRpc3RyaWJ1dGlvbnMgb2Ygc291cmNlIGNvZGUgbXVzdCByZXRhaW4gdGhlIGFib3ZlIGNvcHlyaWdodCBub3RpY2UsIHRoaXMgbGlzdCBvZiBjb25kaXRpb25zIGFuZAovLy8gICAgICB0aGUgZm9sbG93aW5nIGRpc2NsYWltZXIuIAovLy8gICAgKiB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rZm4odmFsLCBpZHgsIG9iaikgewogICAgICAgICAgICBpZiAoaWR4ID09PSAwKSB7CiAgICAgICAgICAgICAgICB0ZXN0UmVzdWx0ID0gKHR5cGVvZiB2YWwgPT09ICJ1bmRlZmluZWQiKTsKICAgICAgICAgICAgfQogICAgICAgIH0KCiAgICAgICAgdmFyIGFyciA9IFtdOwoKICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydHkoYXJyLCAiMCIsIHsKICAgICAgICAgICAgc2V0OiBmdW5jdGlvbiAoKSB7IH0sCiAgICAgICAgICAgIGNvbmZpZ3VyYWJsZTogdHJ1ZQogICAgICAgIH0pOwoKICAgICAgICB0cnkgewogICAgICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydHkoQXJyYXkucHJvdG90eXBlLCAiMCIsIHsKICAgICAgICAgICAgICAgIGdldDogZnVuY3Rpb24gKCkgewogICAgICAgICAgICAgICAgICAgIHJldHVybiAxMDA7CiAgICAgICAgICAgICAgICB9LAogICAgICAgICAgICAgICAgY29uZmlndXJhYmxlOiB0cnVlCiAgICAgICAgICAgIH0pOwoKICAgICAgICAgICAgYXJyLmZvckVhY2goY2FsbGJhY2tmbik7CgogICAgICAgICAgICByZXR1cm4gdGVzdFJlc3VsdDsKICAgICAgICB9IGZpbmFsbHkgewogICAgICAgICAgICBkZWxldGUgQXJyYXkucHJvdG90eXBlWzBdOwogICAgICAgIH0KICAgIH0sCgogICAgcHJlY29uZGl0aW9uOiBmdW5jdGlvbiBwcmVyZXEoKSB7CiAgICAgICAgcmV0dXJuIGZuRXhpc3RzKEFycmF5LnByb3RvdHlwZS5mb3JFYWNoKSAmJiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydHkpICYmIGZuU3VwcG9ydHNBcnJheUluZGV4R2V0dGVyc09uQXJyYXlzKCk7CiAgICB9Cgp9KTsK","id":"15.4.4.18-7-c-i-20","path":"TestCases/chapter15/15.4/15.4.4/15.4.4.18/15.4.4.18-7-c-i-20.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewoKICAgIGlkOiAiMTUuNC40LjE4LTctYy1pLTIxIiwKCiAgICBwYXRoOiAiVGVzdENhc2VzL2NoYXB0ZXIxNS8xNS40LzE1LjQuNC8xNS40LjQuMTgvMTUuNC40LjE4LTctYy1pLTIxLmpzIiwKCiAgICBkZXNjcmlwdGlvbjogIkFycmF5LnByb3RvdHlwZS5mb3JFYWNoIC0gZWxlbWVudCB0byBiZSByZXRyaWV2ZWQgaXMgaW5oZXJpdGVkIGFjY2Vzc29yIHByb3BlcnR5IHdpdGhvdXQgYSBnZXQgZnVuY3Rpb24gb24gYW4gQXJyYXktbGlrZSBvYmplY3QiLAoKICAgIHRlc3Q6IGZ1bmN0aW9uIHRlc3RjYXNlKCkgewoKICAgICAgICB2YXIgdGVzdFJlc3VsdCA9IGZhbHNlOwoKICAgICAgICBmdW5jdGlvbiBjYWxsYmFja2ZuKHZhbCwgaWR4LCBvYmopIHsKICAgICAgICAgICAgaWYgKGlkeCA9PT0gMSkgewogICAgICAgICAgICAgICAgdGVzdFJlc3VsdCA9ICh0eXBlb2YgdmFsID09PSAidW5kZWZpbmVkIik7CiAgICAgICAgICAgIH0KICAgICAgICB9CgogICAgICAgIHZhciBwcm90byA9IHt9OwogICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0eShwcm90bywgIjEiLCB7CiAgICAgICAgICAgIHNldDogZnVuY3Rpb24gKCkgeyB9LAogICAgICAgICAgICBjb25maWd1cmFibGU6IHRydWUKICAgICAgICB9KTsKCiAgICAgICAgdmFyIENvbiA9IGZ1bmN0aW9uICgpIHsgfTsKICAgICAgICBDb24ucHJvdG90eXBlID0gcHJvdG87CgogICAgICAgIHZhciBjaGlsZCA9IG5ldyBDb24oKTsKICAgICAgICBjaGlsZC5sZW5ndGggPSAyOwoKICAgICAgICBBcnJheS5wcm90b3R5cGUuZm9yRWFjaC5jYWxsKGNoaWxkLCBjYWxsYmFja2ZuKTsKCiAgICAg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gICAgICAgICAgICAgY29uZmlndXJhYmxlOiB0cnVlCiAgICAgICAgICAgIH0pOwoKICAgICAgICAgICAgWywgMV0uZm9yRWFjaChjYWxsYmFja2ZuKTsKCiAgICAgICAgICAgIHJldHVybiB0ZXN0UmVzdWx0OwogICAgICAgIH0gZmluYWxseSB7CiAgICAgICAgICAgIGRlbGV0ZSBBcnJheS5wcm90b3R5cGVbMF07CiAgICAgICAgfQoKICAgIH0sCgogICAgcHJlY29uZGl0aW9uOiBmdW5jdGlvbiBwcmVyZXEoKSB7CiAgICAgICAgcmV0dXJuIGZuRXhpc3RzKEFycmF5LnByb3RvdHlwZS5mb3JFYWNoKSAmJiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydHkpICYmICFbLCAxXS5oYXNPd25Qcm9wZXJ0eSgwKSAmJiBmblN1cHBvcnRzQXJyYXlJbmRleEdldHRlcnNPbkFycmF5cygpOwogICAgfQoKfSk7Cg==","id":"15.4.4.18-7-c-i-22","path":"TestCases/chapter15/15.4/15.4.4/15.4.4.18/15.4.4.18-7-c-i-22.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewoKICAgIGlkOiAiMTUuNC40LjE4LTctYy1pLTIzIiwKCiAgICBwYXRoOiAiVGVzdENhc2VzL2NoYXB0ZXIxNS8xNS40LzE1LjQuNC8xNS40LjQuMTgvMTUuNC40LjE4LTctYy1pLTIzLmpzIiwKCiAgICBkZXNjcmlwdGlvbjogIkFycmF5LnByb3RvdHlwZS5mb3JFYWNoIC0gVGhpcyBvYmplY3QgaXMgYW4gZ2xvYmFsIG9iamVjdCB3aGljaCBjb250YWlucyBpbmRleCBwcm9wZXJ0eSIsCgogICAgdGVzdDogZnVuY3Rpb24gdGVzdGNhc2UoKSB7CgogICAgICAgIHZhciB0ZXN0UmVzdWx0ID0gZmFsc2U7CgogICAgICAgIGZ1bmN0aW9uIGNhbGxiYWNrZm4odmFsLCBpZHgsIG9iaikgewogICAgICAgICAgICBpZiAoaWR4ID09PSAwKSB7CiAgICAgICAgICAgICAgICB0ZXN0UmVzdWx0ID0gKHZhbCA9PT0gMTEpOwogICAgICAgICAgICB9CiAgICAgICAgfQoKICAgICAgICB0cnkgewogICAgICAgICAgICB2YXIgb2xkTGVuID0gZm5HbG9iYWxPYmplY3QoKS5sZW5ndGg7CiAgICAgICAgICAgIGZuR2xvYmFsT2JqZWN0KClbMF0gPSAxMTsKICAgICAgICAgICAgZm5HbG9iYWxPYmplY3QoKS5sZW5ndGggPSAxOwoKICAgICAgICAgICAgQXJyYXkucHJvdG90eXBlLmZvckVhY2guY2FsbChmbkdsb2JhbE9iamVjdCgpLCBjYWxsYmFja2ZuKTsKCiAgICAgICAgICAgIHJldHVybiB0ZXN0UmVzdWx0OwogICAgICAgIH0gZmluYWxseSB7CiAgICAgICAgICAgIGRlbGV0ZSBmbkdsb2JhbE9iamVjdCgpWzBdOwogICAgICAgICAgICBmbkdsb2JhbE9iamVjdCgpLmxlbmd0aCA9IG9sZExlbjsKICAgICAgICB9CiAgICB9LAoKICAgIHByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogICAgICAgIHJldHVybiBmbkV4aXN0cyhBcnJheS5wcm90b3R5cGUuZm9yRWFjaCk7CiAgICB9Cn0pOwo=","id":"15.4.4.18-7-c-i-23","path":"TestCases/chapter15/15.4/15.4.4/15.4.4.18/15.4.4.18-7-c-i-23.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewoKICAgIGlkOiAiMTUuNC40LjE4LTctYy1pLTI1IiwKCiAgICBwYXRoOiAiVGVzdENhc2VzL2NoYXB0ZXIxNS8xNS40LzE1LjQuNC8xNS40LjQuMTgvMTUuNC40LjE4LTctYy1pLTI1LmpzIiwKCiAgICBkZXNjcmlwdGlvbjogIkFycmF5LnByb3RvdHlwZS5mb3JFYWNoIC0gVGhpcyBvYmplY3QgaXMgdGhlIEFyZ3VtZW50cyBvYmplY3Qgd2hpY2ggaW1wbGVtZW50cyBpdHMgb3duIHByb3BlcnR5IGdldCBtZXRob2QgKG51bWJlciBvZiBhcmd1bWVudHMgaXMgbGVzcyB0aGFuIG51bWJlciBvZiBwYXJhbWV0ZXJzKSIsCgogICAgdGVzdDogZnVuY3Rpb24gdGVzdGNhc2UoKSB7CgogICAgICAgIHZhciB0ZXN0UmVzdWx0ID0gZmFsc2U7CgogICAgICAgIGZ1bmN0aW9uIGNhbGxiYWNrZm4odmFsLCBpZHgsIG9iaikgewogICAgICAgICAgICBpZiAoaWR4ID09PSAwKSB7CiAgICAgICAgICAgICAgICB0ZXN0UmVzdWx0ID0gKHZhbCA9PT0gMTEpOwogICAgICAgICAgICB9CiAgICAgICAgfQoKICAgICAgICB2YXIgZnVuYyA9IGZ1bmN0aW9uIChhLCBiKSB7CiAgICAgICAgICAgIHJldHVybiBBcnJheS5wcm90b3R5cGUuZm9yRWFjaC5jYWxsKGFyZ3VtZW50cywgY2FsbGJhY2tmbik7CiAgICAgICAgfTsKCiAgICAgICAgZnVuYygxMSk7CgogICAgICAgIHJldHVybiB0ZXN0UmVzdWx0OwogICAgfSwKCiAgICBwcmVjb25kaXRpb246IGZ1bmN0aW9uIHByZXJlcSgpIHsKICAgICAgICByZXR1cm4gZm5FeGlzdHMoQXJyYXkucHJvdG90eXBlLmZvckVhY2gpOwogICAgfQoKfSk7Cg==","id":"15.4.4.18-7-c-i-25","path":"TestCases/chapter15/15.4/15.4.4/15.4.4.18/15.4.4.18-7-c-i-25.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewoKICAgIGlkOiAiMTUuNC40LjE4LTctYy1pLTI2IiwKCiAgICBwYXRoOiAiVGVzdENhc2VzL2NoYXB0ZXIxNS8xNS40LzE1LjQuNC8xNS40LjQuMTgvMTUuNC40LjE4LTctYy1pLTI2LmpzIiwKCiAgICBkZXNjcmlwdGlvbjogIkFycmF5LnByb3RvdHlwZS5mb3JFYWNoIC0gVGhpcyBvYmplY3QgaXMgdGhlIEFyZ3VtZW50cyBvYmplY3Qgd2hpY2ggaW1wbGVtZW50cyBpdHMgb3duIHByb3BlcnR5IGdldCBtZXRob2QgKG51bWJlciBvZiBhcmd1bWVudHMgZXF1YWxzIG51bWJlciBvZiBwYXJhbWV0ZXJzKSIsCgogICAgdGVzdDogZnVuY3Rpb24gdGVzdGNhc2UoKSB7CgogICAgICAgIHZhciBjYWxsZWQgPSAwOwogICAgICAgIHZhciB0ZXN0UmVzdWx0ID0gZmFsc2U7CgogICAgICAgIGZ1bmN0aW9uIGNhbGxiYWNrZm4odmFsLCBpZHgsIG9iaikgewogICAgICAgICAgICBjYWxsZWQrKzsKICAgICAgICAgICAgaWYgKGNhbGxlZCAhPT0gMSAmJiAhdGVzdFJlc3VsdCkgewogICAgICAgICAgICAgICAgcmV0dXJuOwogICAgICAgICAgICB9CiAgICAgICAgICAgIGlmIChpZHggPT09IDApIHsKICAgICAgICAgICAgICAgIHRlc3RSZXN1bHQgPSAodmFsID09PSAxMSk7CiAgICAgICAgICAgIH0gZWxzZSBpZiAoaWR4ID09PSAxKSB7CiAgICAgICAgICAgICAgICB0ZXN0UmVzdWx0ID0gKHZhbCA9PT0gOSk7CiAgICAgICAgICAgIH0gZWxzZSB7CiAgICAgICAgICAgICAgICB0ZXN0UmVzdWx0ID0gZmFsc2U7CiAgICAgICAgICAgIH0KICAgICAgICB9CgogICAgICAgIHZhciBmdW5jID0gZnVuY3Rpb24gKGEsIGIpIHsKICAgICAgICAgICAgQXJyYXkucHJvdG90eXBlLmZvckVhY2guY2FsbChhcmd1bWVudHMsIGNhbGxiYWNrZm4pOwogICAgICAgIH07CgogICAgICAgIGZ1bmMoMTEsIDkpOwoKICAgICAgICByZXR1cm4gdGVzdFJlc3VsdDsKICAgIH0sCgogICAgcHJlY29uZGl0aW9uOiBmdW5jdGlvbiBwcmVyZXEoKSB7CiAgICAgICAgcmV0dXJuIGZuRXhpc3RzKEFycmF5LnByb3RvdHlwZS5mb3JFYWNoKTsKICAgIH0KCn0pOwo=","id":"15.4.4.18-7-c-i-26","path":"TestCases/chapter15/15.4/15.4.4/15.4.4.18/15.4.4.18-7-c-i-26.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewoKICAgIGlkOiAiMTUuNC40LjE4LTctYy1pLTI3IiwKCiAgICBwYXRoOiAiVGVzdENhc2VzL2NoYXB0ZXIxNS8xNS40LzE1LjQuNC8xNS40LjQuMTgvMTUuNC40LjE4LTctYy1pLTI3LmpzIiwKCiAgICBkZXNjcmlwdGlvbjogIkFycmF5LnByb3RvdHlwZS5mb3JFYWNoIC0gVGhpcyBvYmplY3QgaXMgdGhlIEFyZ3VtZW50cyBvYmplY3Qgd2hpY2ggaW1wbGVtZW50cyBpdHMgb3duIHByb3BlcnR5IGdldCBtZXRob2QgKG51bWJlciBvZiBhcmd1bWVudHMgaXMgZ3JlYXRlciB0aGFuIG51bWJlciBvZiBwYXJhbWV0ZXJzKSIsCgogICAgdGVzdDogZnVuY3Rpb24gdGVzdGNhc2UoKSB7CgogICAgICAgIHZhciBjYWxsZWQgPSAwOwogICAgICAgIHZhciB0ZXN0UmVzdWx0ID0gZmFsc2U7CgogICAgICAgIGZ1bmN0aW9uIGNhbGxiYWNrZm4odmFsLCBpZHgsIG9iaikgewogICAgICAgICAgICBjYWxsZWQrKzsKICAgICAgICAgICAgaWYgKGNhbGxlZCAhPT0gMSAmJiAhdGVzdFJlc3VsdCkgewogICAgICAgICAgICAgICAgcmV0dXJuOwogICAgICAgICAgICB9CiAgICAgICAgICAgIGlmIChpZHggPT09IDApIHsKICAgICAgICAgICAgICAgIHRlc3RSZXN1bHQgPSAodmFsID09PSAxMSk7CiAgICAgICAgICAgIH0gZWxzZSBpZiAoaWR4ID09PSAxKSB7CiAgICAgICAgICAgICAgICB0ZXN0UmVzdWx0ID0gKHZhbCA9PT0gMTIpOwogICAgICAgICAgICB9IGVsc2UgaWYgKGlkeCA9PT0gMikgewogICAgICAgICAgICAgICAgdGVzdFJlc3VsdCA9ICh2YWwgPT09IDkpOwogICAgICAgICAgICB9IGVsc2UgewogICAgICAgICAgICAgICAgdGVzdFJlc3VsdCA9IGZhbHNlOwogICAgICAgICAgICB9CiAgICAgICAgfQoKICAgICAgICB2YXIgZnVuYyA9IGZ1bmN0aW9uIChhLCBiKSB7CiAgICAgICAgICAgIHJldHVybiBBcnJheS5wcm90b3R5cGUuZm9yRWFjaC5jYWxsKGFyZ3VtZW50cywgY2FsbGJhY2tmbik7CiAgICAgICAgfTsKCiAgICAgICAgZnVuYygxMSwgMTIsIDkpOwoKICAgICAgICByZXR1cm4gdGVzdFJlc3VsdDsKICAgIH0sCgogICAgcHJlY29uZGl0aW9uOiBmdW5jdGlvbiBwcmVyZXEoKSB7CiAgICAgICAgcmV0dXJuIGZuRXhpc3RzKEFycmF5LnByb3RvdHlwZS5mb3JFYWNoKTsKICAgIH0KCn0pOwo=","id":"15.4.4.18-7-c-i-27","path":"TestCases/chapter15/15.4/15.4.4/15.4.4.18/15.4.4.18-7-c-i-27.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewoKICAgIGlkOiAiMTUuNC40LjE4LTctYy1pLTI4IiwKCiAgICBwYXRoOiAiVGVzdENhc2VzL2NoYXB0ZXIxNS8xNS40LzE1LjQuNC8xNS40LjQuMTgvMTUuNC40LjE4LTctYy1pLTI4LmpzIiwKCiAgICBkZXNjcmlwdGlvbjogIkFycmF5LnByb3RvdHlwZS5mb3JFYWNoIC0gZWxlbWVudCBjaGFuZ2VkIGJ5IGdldHRlciBvbiBwcmV2aW91cyBpdGVyYXRpb25zIGlzIG9ic2VydmVkIG9uIGFuIEFycmF5IiwKCiAgICB0ZXN0OiBmdW5jdGlvbiB0ZXN0Y2FzZSgpIHsKCiAgICAgICAgdmFyIHByZUl0ZXJWaXNpYmxlID0gZmFsc2U7CiAgICAgICAgdmFyIGFyciA9IFtdOwogICAgICAgIHZhciB0ZXN0UmVzdWx0ID0gZmFsc2U7CgogICAgICAgIGZ1bmN0aW9uIGNhbGxiYWNrZm4odmFsLCBpZHgsIG9iaikgewogICAgICAgICAgICBpZiAoaWR4ID09PSAxKSB7CiAgICAgICAgICAgICAgICB0ZXN0UmVzdWx0ID0gKHZhbCA9PT0gOSk7CiAgICAgICAgICAgIH0KICAgICAgICB9CgogICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0eShhcnIsICIwIiwgewogICAgICAgICAgICBnZXQ6IGZ1bmN0aW9uICgpIHsKICAgICAgICAgICAgICAgIHByZUl0ZXJWaXNpYmxlID0gdHJ1ZTsKICAgICAgICAgICAgICAgIHJldHVybiAxMTsKICAgICAgICAgICAgfSwKICAgICAgICAgICAgY29uZmlndXJhYmxlOiB0cnVlCiAgICAgICAgfSk7CgogICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0eShhcnIsICIxIiwgewogICAgICAgICAgICBnZXQ6IGZ1bmN0aW9uICgpIHsKICAgICAgICAgICAgICAgIGlmIChwcmVJdGVyVmlzaWJsZSkgewogICAgICAgICAgICAgICAgICAgIHJldHVybiA5OwogICAgICAgICAgICAgICAgfSBlbHNlIHsKICAgICAgICAgICAgICAgICAgICByZXR1cm4gMTM7CiAgICAgICAgICAgICAgICB9CiAgICAgICAgICAgIH0sCiAgICAgICAgICAgIGNvbmZpZ3VyYWJsZTogdHJ1ZQogICAgICAgIH0pOwoKICAgICAgICBhcnIuZm9yRWFjaChjYWxsYmFja2ZuKTsKCiAgICAgICAgcmV0dXJuIHRlc3RSZXN1bHQ7CiAgICB9LAoKICAgIHByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogICAgICAgIHJldHVybiBmbkV4aXN0cyhBcnJheS5wcm90b3R5cGUuZm9yRWFjaCkgJiYgZm5FeGlzdHMoT2JqZWN0LmRlZmluZVByb3BlcnR5KSAmJiBmblN1cHBvcnRzQXJyYXlJbmRleEdldHRlcnNPbkFycmF5cygpOwogICAgfQoKfSk7Cg==","id":"15.4.4.18-7-c-i-28","path":"TestCases/chapter15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naXN0ZXJUZXN0KHsKCiAgICBpZDogIjE1LjQuNC4xOC03LWMtaS0yOSIsCgogICAgcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTUvMTUuNC8xNS40LjQvMTUuNC40LjE4LzE1LjQuNC4xOC03LWMtaS0yOS5qcyIsCgogICAgZGVzY3JpcHRpb246ICJBcnJheS5wcm90b3R5cGUuZm9yRWFjaCAtIGVsZW1lbnQgY2hhbmdlZCBieSBnZXR0ZXIgb24gcHJldmlvdXMgaXRlcmF0aW9ucyBpcyBvYnNlcnZlZCBvbiBhbiBBcnJheS1saWtlIG9iamVjdCIsCgogICAgdGVzdDogZnVuY3Rpb24gdGVzdGNhc2UoKSB7CgogICAgICAgIHZhciBwcmVJdGVyVmlzaWJsZSA9IGZhbHNlOwogICAgICAgIHZhciBvYmogPSB7IGxlbmd0aDogMiB9OwogICAgICAgIHZhciB0ZXN0UmVzdWx0ID0gZmFsc2U7CgogICAgICAgIGZ1bmN0aW9uIGNhbGxiYWNrZm4odmFsLCBpZHgsIG9iaikgewogICAgICAgICAgICBpZiAoaWR4ID09PSAxKSB7CiAgICAgICAgICAgICAgICB0ZXN0UmVzdWx0ID0gKHZhbCA9PT0gOSk7CiAgICAgICAgICAgIH0KICAgICAgICB9CgogICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0eShvYmosICIwIiwgewogICAgICAgICAgICBnZXQ6IGZ1bmN0aW9uICgpIHsKICAgICAgICAgICAgICAgIHByZUl0ZXJWaXNpYmxlID0gdHJ1ZTsKICAgICAgICAgICAgICAgIHJldHVybiAxMTsKICAgICAgICAgICAgfSwKICAgICAgICAgICAgY29uZmlndXJhYmxlOiB0cnVlCiAgICAgICAgfSk7CgogICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0eShvYmosICIxIiwgewogICAgICAgICAgICBnZXQ6IGZ1bmN0aW9uICgpIHsKICAgICAgICAgICAgICAgIGlmIChwcmVJdGVyVmlzaWJsZSkgewogICAgICAgICAgICAgICAgICAgIHJldHVybiA5OwogICAgICAgICAgICAgICAgfSBlbHNlIHsKICAgICAgICAgICAgICAgICAgICByZXR1cm4gMTM7CiAgICAgICAgICAgICAgICB9CiAgICAgICAgICAgIH0sCiAgICAgICAgICAgIGNvbmZpZ3VyYWJsZTogdHJ1ZQogICAgICAgIH0pOwoKICAgICAgICBBcnJheS5wcm90b3R5cGUuZm9yRWFjaC5jYWxsKG9iaiwgY2FsbGJhY2tmbik7CgogICAgICAgIHJldHVybiB0ZXN0UmVzdWx0OwogICAgfSwKCiAgICBwcmVjb25kaXRpb246IGZ1bmN0aW9uIHByZXJlcSgpIHsKICAgICAgICByZXR1cm4gZm5FeGlzdHMoQXJyYXkucHJvdG90eXBlLmZvckVhY2gpICYmIGZuRXhpc3RzKE9iamVjdC5kZWZpbmVQcm9wZXJ0eSkgJiYgZm5TdXBwb3J0c0FycmF5SW5kZXhHZXR0ZXJzT25PYmplY3RzKCk7CiAgICB9Cgp9KTsK","id":"15.4.4.18-7-c-i-29","path":"TestCases/chapter15/15.4/15.4.4/15.4.4.18/15.4.4.18-7-c-i-29.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewoKICAgIGlkOiAiMTUuNC40LjE4LTctYy1pLTMiLAoKICAgIHBhdGg6ICJUZXN0Q2FzZXMvY2hhcHRlcjE1LzE1LjQvMTUuNC40LzE1LjQuNC4xOC8xNS40LjQuMTgtNy1jLWktMy5qcyIsCgogICAgZGVzY3JpcHRpb246ICJBcnJheS5wcm90b3R5cGUuZm9yRWFjaCAtIGVsZW1lbnQgdG8gYmUgcmV0cmlldmVkIGlzIG93biBkYXRhIHByb3BlcnR5IHRoYXQgb3ZlcnJpZGVzIGFuIGluaGVyaXRlZCBkYXRhIHByb3BlcnR5IG9uIGFuIEFycmF5IiwKCiAgICB0ZXN0OiBmdW5jdGlvbiB0ZXN0Y2FzZSgpIHsKCiAgICAgICAgdmFyIGtWYWx1ZSA9ICJhYmMiOwogICAgICAgIHZhciB0ZXN0UmVzdWx0ID0gZmFsc2U7CgogICAgICAgIGZ1bmN0aW9uIGNhbGxiYWNrZm4odmFsLCBpZHgsIG9iaikgewogICAgICAgICAgICBpZiAoaWR4ID09PSA1KSB7CiAgICAgICAgICAgICAgICB0ZXN0UmVzdWx0ID0gKHZhbCA9PT0ga1ZhbHVlKTsKICAgICAgICAgICAgfQogICAgICAgIH0KCiAgICAgICAgdmFyIHByb3RvID0geyA1OiAxMDAgfTsKCiAgICAgICAgdmFyIENvbiA9IGZ1bmN0aW9uICgpIHsgfTsKICAgICAgICBDb24ucHJvdG90eXBlID0gcHJvdG87CgogICAgICAgIHZhciBjaGlsZCA9IG5ldyBDb24oKTsKICAgICAgICBjaGlsZFs1XSA9IGtWYWx1ZTsKICAgICAgICBjaGlsZC5sZW5ndGggPSAxMDsKCiAgICAgICAgQXJyYXkucHJvdG90eXBlLmZvckVhY2guY2FsbChjaGlsZCwgY2FsbGJhY2tmbik7CgogICAgICAgIHJldHVybiB0ZXN0UmVzdWx0OwogICAgfSwKCiAgICBwcmVjb25kaXRpb246IGZ1bmN0aW9uIHByZXJlcSgpIHsKICAgICAgICByZXR1cm4gZm5FeGlzdHMoQXJyYXkucHJvdG90eXBlLmZvckVhY2gpOwogICAgfQoKfSk7Cg==","id":"15.4.4.18-7-c-i-3","path":"TestCases/chapter15/15.4/15.4.4/15.4.4.18/15.4.4.18-7-c-i-3.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewoKICAgIGlkOiAiMTUuNC40LjE4LTctYy1pLTMwIiwKCiAgICBwYXRoOiAiVGVzdENhc2VzL2NoYXB0ZXIxNS8xNS40LzE1LjQuNC8xNS40LjQuMTgvMTUuNC40LjE4LTctYy1pLTMwLmpzIiwKCiAgICBkZXNjcmlwdGlvbjogIkFycmF5LnByb3RvdHlwZS5mb3JFYWNoIC0gdW5uaGFuZGxlZCBleGNlcHRpb25zIGhhcHBlbmVkIGluIGdldHRlciB0ZXJtaW5hdGUgaXRlcmF0aW9uIG9uIGFuIEFycmF5LWxpa2Ugb2JqZWN0IiwKCiAgICB0ZXN0OiBmdW5jdGlvbiB0ZXN0Y2FzZSgpIHsKCiAgICAgICAgdmFyIG9iaiA9IHsgMDogMTEsIDU6IDEwLCAxMDogOCwgbGVuZ3RoOiAyMCB9OwogICAgICAgIHZhciBhY2Nlc3NlZCA9IGZhbHNlOwoKICAgICAgICBmdW5jdGlvbiBjYWxsYmFja2ZuKHZhbCwgaWR4LCBvYmopIHsKICAgICAgICAgICAgaWYgKGlkeCA+IDEpIHsKICAgICAgICAgICAgICAgIGFjY2Vzc2VkID0gdHJ1ZTsKICAgICAgICAgICAgfQogICAgICAgIH0KCiAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnR5KG9iaiwgIjEiLCB7CiAgICAgICAgICAgIGdldDogZnVuY3Rpb24gKCkgewogICAgICAgICAgICAgICAgdGhyb3cgbmV3IFJhbmdlRXJyb3IoInVuaGFuZGxlIGV4Y2VwdGlvbiBoYXBwZW5lZCBpbiBnZXR0ZXIiKTsKICAgICAgICAgICAgfSwKICAgICAgICAgICAgY29uZmlndXJhYmxlOiB0cnVlCiAgICAgICAgfSk7CgogICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0eShvYmosICIyIiwgewogICAgICAgICAgICBnZXQ6IGZ1bmN0aW9uICgpIHsKICAgICAgICAgICAgICAgIGFjY2Vzc2VkID0gdHJ1ZTsKICAgICAgICAgICAgICAgIHJldHVybiAxMDA7CiAgICAgICAgICAgIH0sCiAgICAgICAgICAgIGNvbmZpZ3VyYWJsZTogdHJ1ZQogICAgICAgIH0pOwoKICAgICAgICB0cnkgewogICAgICAgICAgICBBcnJheS5wcm90b3R5cGUuZm9yRWFjaC5jYWxsKG9iaiwgY2FsbGJhY2tmbik7CiAgICAgICAgICAgIHJldHVybiBmYWxzZTsKICAgICAgICB9IGNhdGNoIChleCkgewogICAgICAgICAgICByZXR1cm4gKGV4IGluc3RhbmNlb2YgUmFuZ2VF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ICAgICAgICAgICAgIHRocm93IG5ldyBSYW5nZUVycm9yKCJ1bmhhbmRsZSBleGNlcHRpb24gaGFwcGVuZWQgaW4gZ2V0dGVyIik7CiAgICAgICAgICAgIH0sCiAgICAgICAgICAgIGNvbmZpZ3VyYWJsZTogdHJ1ZQogICAgICAgIH0pOwoKICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydHkoYXJyLCAiMiIsIHsKICAgICAgICAgICAgZ2V0OiBmdW5jdGlvbiAoKSB7CiAgICAgICAgICAgICAgICBhY2Nlc3NlZCA9IHRydWU7CiAgICAgICAgICAgICAgICByZXR1cm4gMTAwOwogICAgICAgICAgICB9LAogICAgICAgICAgICBjb25maWd1cmFibGU6IHRydWUKICAgICAgICB9KTsKCiAgICAgICAgdHJ5IHsKICAgICAgICAgICAgYXJyLmZvckVhY2goY2FsbGJhY2tmbik7CiAgICAgICAgICAgIHJldHVybiBmYWxzZTsKICAgICAgICB9IGNhdGNoIChleCkgewogICAgICAgICAgICByZXR1cm4gKGV4IGluc3RhbmNlb2YgUmFuZ2VFcnJvcikgJiYgIWFjY2Vzc2VkOwogICAgICAgIH0KICAgIH0sCgogICAgcHJlY29uZGl0aW9uOiBmdW5jdGlvbiBwcmVyZXEoKSB7CiAgICAgICAgcmV0dXJuIGZuRXhpc3RzKEFycmF5LnByb3RvdHlwZS5mb3JFYWNoKSAmJiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydHkpICYmIGZuU3VwcG9ydHNBcnJheUluZGV4R2V0dGVyc09uQXJyYXlzKCk7CiAgICB9Cgp9KTsK","id":"15.4.4.18-7-c-i-31","path":"TestCases/chapter15/15.4/15.4.4/15.4.4.18/15.4.4.18-7-c-i-31.js"},{"code":"77u/Ly8vIENvcHlyaWdodCAoYykgMjAwOSBNaWNyb3NvZnQgQ29ycG9yYXRpb24gCi8vLyAKLy8vIFJlZGlzdHJpYnV0aW9uIGFuZCB1c2UgaW4gc291cmNlIGFuZCBiaW5hcnkgZm9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JyYXkucHJvdG90eXBlLmZvckVhY2ggLSBlbGVtZW50IHRvIGJlIHJldHJpZXZlZCBpcyBvd24gZGF0YSBwcm9wZXJ0eSB0aGF0IG92ZXJyaWRlcyBhbiBpbmhlcml0ZWQgZGF0YSBwcm9wZXJ0eSBvbiBhbiBBcnJheSIsCgogICAgdGVzdDogZnVuY3Rpb24gdGVzdGNhc2UoKSB7CgogICAgICAgIHZhciB0ZXN0UmVzdWx0ID0gZmFsc2U7CgogICAgICAgIGZ1bmN0aW9uIGNhbGxiYWNrZm4odmFsLCBpZHgsIG9iaikgewogICAgICAgICAgICBpZiAoaWR4ID09PSAwKSB7CiAgICAgICAgICAgICAgICB0ZXN0UmVzdWx0ID0gKHZhbCA9PT0gMTIpOwogICAgICAgICAgICB9CiAgICAgICAgfQoKICAgICAgICB0cnkgewogICAgICAgICAgICBBcnJheS5wcm90b3R5cGVbMF0gPSAxMTsKCiAgICAgICAgICAgIFsxMl0uZm9yRWFjaChjYWxsYmFja2ZuKTsKCiAgICAgICAgICAgIHJldHVybiB0ZXN0UmVzdWx0OwogICAgICAgIH0gZmluYWxseSB7CiAgICAgICAgICAgIGRlbGV0ZSBBcnJheS5wcm90b3R5cGVbMF07CiAgICAgICAgfQogICAgfSwKCiAgICBwcmVjb25kaXRpb246IGZ1bmN0aW9uIHByZXJlcSgpIHsKICAgICAgICByZXR1cm4gZm5FeGlzdHMoQXJyYXkucHJvdG90eXBlLmZvckVhY2gpOwogICAgfQoKfSk7Cg==","id":"15.4.4.18-7-c-i-4","path":"TestCases/chapter15/15.4/15.4.4/15.4.4.18/15.4.4.18-7-c-i-4.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewoKICAgIGlkOiAiMTUuNC40LjE4LTctYy1pLTUiLAoKICAgIHBhdGg6ICJUZXN0Q2FzZXMvY2hhcHRlcjE1LzE1LjQvMTUuNC40LzE1LjQuNC4xOC8xNS40LjQuMTgtNy1jLWktNS5qcyIsCgogICAgZGVzY3JpcHRpb246ICJBcnJheS5wcm90b3R5cGUuZm9yRWFjaCAtIGVsZW1lbnQgdG8gYmUgcmV0cmlldmVkIGlzIG93biBkYXRhIHByb3BlcnR5IHRoYXQgb3ZlcnJpZGVzIGFuIGluaGVyaXRlZCBhY2Nlc3NvciBwcm9wZXJ0eSBvbiBhbiBBcnJheS1saWtlIG9iamVjdCIsCgogICAgdGVzdDogZnVuY3Rpb24gdGVzdGNhc2UoKSB7CgogICAgICAgIHZhciB0ZXN0UmVzdWx0ID0gZmFsc2U7CgogICAgICAgIGZ1bmN0aW9uIGNhbGxiYWNrZm4odmFsLCBpZHgsIG9iaikgewogICAgICAgICAgICBpZiAoaWR4ID09PSAwKSB7CiAgICAgICAgICAgICAgICB0ZXN0UmVzdWx0ID0gKHZhbCA9PT0gMTEpOwogICAgICAgICAgICB9CiAgICAgICAgfQoKICAgICAgICB2YXIgcHJvdG8gPSB7fTsKCiAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnR5KHByb3RvLCAiMCIsIHsKICAgICAgICAgICAgZ2V0OiBmdW5jdGlvbiAoKSB7CiAgICAgICAgICAgICAgICByZXR1cm4gNTsKICAgICAgICAgICAgfSwKICAgICAgICAgICAgY29uZmlndXJhYmxlOiB0cnVlCiAgICAgICAgfSk7CgogICAgICAgIHZhciBDb24gPSBmdW5jdGlvbiAoKSB7IH07CiAgICAgICAgQ29uLnByb3RvdHlwZSA9IHByb3RvOwoKICAgICAgICB2YXIgY2hpbGQgPSBuZXcgQ29uKCk7CiAgICAgICAgY2hpbGQubGVuZ3RoID0gMjsKICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydHkoY2hpbGQsICIwIiwgewogICAgICAgICAgICB2YWx1ZTogMTEsCiAgICAgICAgICAgIGNvbmZpZ3VyYWJsZTogdHJ1ZQogICAgICAgIH0pOwoKICAgICAgICBBcnJheS5wcm90b3R5cGUuZm9yRWFjaC5jYWxsKGNoaWxkLCBjYWxsYmFja2ZuKTsKCiAgICAgICAgcmV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gICByZXR1cm4gOTsKICAgICAgICAgICAgICAgIH0sCiAgICAgICAgICAgICAgICBjb25maWd1cmFibGU6IHRydWUKICAgICAgICAgICAgfSk7CgogICAgICAgICAgICBbMTFdLmZvckVhY2goY2FsbGJhY2tmbik7CgogICAgICAgICAgICByZXR1cm4gdGVzdFJlc3VsdDsKICAgICAgICB9IGZpbmFsbHkgewogICAgICAgICAgICBkZWxldGUgQXJyYXkucHJvdG90eXBlWzBdOwogICAgICAgIH0KICAgIH0sCgogICAgcHJlY29uZGl0aW9uOiBmdW5jdGlvbiBwcmVyZXEoKSB7CiAgICAgICAgcmV0dXJuIGZuRXhpc3RzKEFycmF5LnByb3RvdHlwZS5mb3JFYWNoKSAmJiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydHkpICYmIGZuU3VwcG9ydHNBcnJheUluZGV4R2V0dGVyc09uQXJyYXlzKCk7CiAgICB9Cgp9KTsK","id":"15.4.4.18-7-c-i-6","path":"TestCases/chapter15/15.4/15.4.4/15.4.4.18/15.4.4.18-7-c-i-6.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewoKICAgIGlkOiAiMTUuNC40LjE4LTctYy1pLTciLAoKICAgIHBhdGg6ICJUZXN0Q2FzZXMvY2hhcHRlcjE1LzE1LjQvMTUuNC40LzE1LjQuNC4xOC8xNS40LjQuMTgtNy1jLWktNy5qcyIsCgogICAgZGVzY3JpcHRpb246ICJBcnJheS5wcm90b3R5cGUuZm9yRWFjaCAtIGVsZW1lbnQgdG8gYmUgcmV0cmlldmVkIGlzIGluaGVyaXRlZCBkYXRhIHByb3BlcnR5IG9uIGFuIEFycmF5LWxpa2Ugb2JqZWN0IiwKCiAgICB0ZXN0OiBmdW5jdGlvbiB0ZXN0Y2FzZSgpIHsKCiAgICAgICAgdmFyIGtWYWx1ZSA9ICdhYmMnOwogICAgICAgIHZhciB0ZXN0UmVzdWx0ID0gZmFsc2U7CgogICAgICAgIGZ1bmN0aW9uIGNhbGxiYWNrZm4odmFsLCBpZHgsIG9iaikgewogICAgICAgICAgICBpZiAoaWR4ID09PSA1KSB7CiAgICAgICAgICAgICAgICB0ZXN0UmVzdWx0ID0gKHZhbCA9PT0ga1ZhbHVlKTsKICAgICAgICAgICAgfQogICAgICAgIH0KCiAgICAgICAgdmFyIHByb3RvID0geyA1OiBrVmFsdWUgfTsKCiAgICAgICAgdmFyIENvbiA9IGZ1bmN0aW9uICgpIHsgfTsKICAgICAgICBDb24ucHJvdG90eXBlID0gcHJvdG87CgogICAgICAgIHZhciBjaGlsZCA9IG5ldyBDb24oKTsKICAgICAgICBjaGlsZC5sZW5ndGggPSAxMDsKCiAgICAgICAgQXJyYXkucHJvdG90eXBlLmZvckVhY2guY2FsbChjaGlsZCwgY2FsbGJhY2tmbik7CgogICAgICAgIHJldHVybiB0ZXN0UmVzdWx0OwogICAgfSwKCiAgICBwcmVjb25kaXRpb246IGZ1bmN0aW9uIHByZXJlcSgpIHsKICAgICAgICByZXR1cm4gZm5FeGlzdHMoQXJyYXkucHJvdG90eXBlLmZvckVhY2gpOwogICAgfQoKfSk7Cg==","id":"15.4.4.18-7-c-i-7","path":"TestCases/chapter15/15.4/15.4.4/15.4.4.18/15.4.4.18-7-c-i-7.js"},{"code":"77u/Ly8vIENvcHlyaWdodCAoYykgMjAwOSBNaWNyb3NvZnQgQ29ycG9yYXRpb24gCi8vLyAKLy8vIFJlZGlzdHJpYnV0aW9uIGFuZCB1c2UgaW4gc291cmNlIGFuZCBiaW5hcnkgZm9ybXMsIHdpdGggb3Igd2l0aG91dCBtb2RpZmljYXRpb24sIGFyZSBwZXJtaXR0ZWQgcHJvdmlkZWQKLy8vIHRoYXQgdGhlIGZvbGxvd2luZyBjb25kaXRpb25zIGFyZSBtZXQ6IAovLy8gICAgKiBSZWRpc3RyaWJ1dGlvbnMgb2Ygc291cmNlIGNvZGUgbXVzdCByZXRhaW4gdGhlIGFib3ZlIGNvcHlyaWdodCBub3RpY2UsIHRoaXMgbGlzd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IG9iaikgewogICAgICAgICAgICBpZiAoaWR4ID09PSAxKSB7CiAgICAgICAgICAgICAgICB0ZXN0UmVzdWx0ID0gKHZhbCA9PT0gMTMpOwogICAgICAgICAgICB9CiAgICAgICAgfQoKICAgICAgICB0cnkgewogICAgICAgICAgICBBcnJheS5wcm90b3R5cGVbMV0gPSAxMzsKCiAgICAgICAgICAgIFssICwgLCBdLmZvckVhY2goY2FsbGJhY2tmbik7CgogICAgICAgICAgICByZXR1cm4gdGVzdFJlc3VsdDsKICAgICAgICB9IGZpbmFsbHkgewogICAgICAgICAgICBkZWxldGUgQXJyYXkucHJvdG90eXBlWzFdOwogICAgICAgIH0KICAgIH0sCgogICAgcHJlY29uZGl0aW9uOiBmdW5jdGlvbiBwcmVyZXEoKSB7CiAgICAgICAgcmV0dXJuIGZuRXhpc3RzKEFycmF5LnByb3RvdHlwZS5mb3JFYWNoKSAmJiAhWywgMV0uaGFzT3duUHJvcGVydHkoMCk7CiAgICB9Cgp9KTsK","id":"15.4.4.18-7-c-i-8","path":"TestCases/chapter15/15.4/15.4.4/15.4.4.18/15.4.4.18-7-c-i-8.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewoKICAgIGlkOiAiMTUuNC40LjE4LTctYy1pLTkiLAoKICAgIHBhdGg6ICJUZXN0Q2FzZXMvY2hhcHRlcjE1LzE1LjQvMTUuNC40LzE1LjQuNC4xOC8xNS40LjQuMTgtNy1jLWktOS5qcyIsCgogICAgZGVzY3JpcHRpb246ICJBcnJheS5wcm90b3R5cGUuZm9yRWFjaCAtIGVsZW1lbnQgdG8gYmUgcmV0cmlldmVkIGlzIG93biBhY2Nlc3NvciBwcm9wZXJ0eSBvbiBhbiBBcnJheS1saWtlIG9iamVjdCIsCgogICAgdGVzdDogZnVuY3Rpb24gdGVzdGNhc2UoKSB7CgogICAgICAgIHZhciB0ZXN0UmVzdWx0ID0gZmFsc2U7CgogICAgICAgIGZ1bmN0aW9uIGNhbGxiYWNrZm4odmFsLCBpZHgsIG9iaikgewogICAgICAgICAgICBpZiAoaWR4ID09PSAwKSB7CiAgICAgICAgICAgICAgICB0ZXN0UmVzdWx0ID0gKHZhbCA9PT0gMTEpOwogICAgICAgICAgICB9CiAgICAgICAgfQoKICAgICAgICB2YXIgb2JqID0geyAxMDogMTAsIGxlbmd0aDogMjAgfTsKCiAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnR5KG9iaiwgIjAiLCB7CiAgICAgICAgICAgIGdldDogZnVuY3Rpb24gKCkgewogICAgICAgICAgICAgICAgcmV0dXJuIDExOwogICAgICAgICAgICB9LAogICAgICAgICAgICBjb25maWd1cmFibGU6IHRydWUKICAgICAgICB9KTsKCiAgICAgICAgQXJyYXkucHJvdG90eXBlLmZvckVhY2guY2FsbChvYmosIGNhbGxiYWNrZm4pOwoKICAgICAgICByZXR1cm4gdGVzdFJlc3VsdDsKICAgIH0sCgogICAgcHJlY29uZGl0aW9uOiBmdW5jdGlvbiBwcmVyZXEoKSB7CiAgICAgICAgcmV0dXJuIGZuRXhpc3RzKEFycmF5LnByb3RvdHlwZS5mb3JFYWNoKSAmJiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydHkpICYmIGZuU3VwcG9ydHNBcnJheUluZGV4R2V0dGVyc09uT2JqZWN0cygpOwogICAgfQoKfSk7Cg==","id":"15.4.4.18-7-c-i-9","path":"TestCases/chapter15/15.4/15.4.4/15.4.4.18/15.4.4.18-7-c-i-9.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoIHsKaWQ6ICIxNS40LjQuMTgtNy1jLWlpLTEiLAoKcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTUvMTUuNC8xNS40LjQvMTUuNC40LjE4LzE1LjQuNC4xOC03LWMtaWktMS5qcyIsCgpkZXNjcmlwdGlvbjogIkFycmF5LnByb3RvdHlwZS5mb3JFYWNoIC0gY2FsbGJhY2tmbiBjYWxsZWQgd2l0aCBjb3JyZWN0IHBhcmFtZXRlcnMiLAoKdGVzdDogZnVuY3Rpb24gdGVzdGNhc2UoKSB7IAogCiAgdmFyIGJQYXIgPSB0cnVlOwogIHZhciBiQ2FsbGVkID0gZmFsc2U7CiAgZnVuY3Rpb24gY2FsbGJhY2tmbih2YWwsIGlkeCwgb2JqKQogIHsKICAgIGJDYWxsZWQgPSB0cnVlOwogICAgaWYob2JqW2lkeF0gIT09IHZhbCkKICAgICAgYlBhciA9IGZhbHNlOwogIH0KCiAgdmFyIGFyciA9IFswLDEsdHJ1ZSxudWxsLG5ldyBPYmplY3QoKSwiZml2ZSJdOwogIGFycls5OTk5OTldID0gLTYuNjsKICBhcnIuZm9yRWFjaChjYWxsYmFja2ZuKTsKICBpZihiQ2FsbGVkID09PSB0cnVlICYmIGJQYXIgPT09IHRydWUpCiAgICByZXR1cm4gdHJ1ZTsKIH0sCgpwcmVjb25kaXRpb246IGZ1bmN0aW9uIHByZXJlcSgpIHsKICByZXR1cm4gZm5FeGlzdHMoQXJyYXkucHJvdG90eXBlLmZvckVhY2gpOwogfQp9KTsK","id":"15.4.4.18-7-c-ii-1","path":"TestCases/chapter15/15.4/15.4.4/15.4.4.18/15.4.4.18-7-c-ii-1.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewoKICAgIGlkOiAiMTUuNC40LjE4LTctYy1paS0xMCIsCgogICAgcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTUvMTUuNC8xNS40LjQvMTUuNC40LjE4LzE1LjQuNC4xOC03LWMtaWktMTAuanMiLAoKICAgIGRlc2NyaXB0aW9uOiAiQXJyYXkucHJvdG90eXBlLmZvckVhY2ggLSBjYWxsYmFja2ZuIGlzIGNhbGxlZCB3aXRoIDEgZm9ybWFsIHBhcmFtZXRlciIsCgogICAgdGVzdDogZnVuY3Rpb24gdGVzdGNhc2UoKSB7CgogICAgICAgIHZhciByZXN1bHQgPSBmYWxzZTsKICAgICAgICBmdW5jdGlvbiBjYWxsYmFja2ZuKHZhbCkgewogICAgICAgICAgICByZXN1bHQgPSAodmFsID4gMTApOwogICAgICAgIH0KCiAgICAgICAgWzExXS5mb3JFYWNoKGNhbGxiYWNrZm4pOyAKICAgICAgICByZXR1cm4gcmVzdWx0OwogICAgfSwKCiAgICBwcmVjb25kaXRpb246IGZ1bmN0aW9uIHByZXJlcSgpIHsKICAgICAgICByZXR1cm4gZm5FeGlzdHMoQXJyYXkucHJvdG90eXBlLmZvckVhY2gpOwogICAgfQoKfSk7Cg==","id":"15.4.4.18-7-c-ii-10","path":"TestCases/chapter15/15.4/15.4.4/15.4.4.18/15.4.4.18-7-c-ii-10.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewoKICAgIGlkOiAiMTUuNC40LjE4LTctYy1paS0xMSIsCgogICAgcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTUvMTUuNC8xNS40LjQvMTUuNC40LjE4LzE1LjQuNC4xOC03LWMtaWktMTEuanMiLAoKICAgIGRlc2NyaXB0aW9uOiAiQXJyYXkucHJvdG90eXBlLmZvckVhY2ggLSBjYWxsYmFja2ZuIGlzIGNhbGxlZCB3aXRoIDIgZm9ybWFsIHBhcmFtZXRlciIsCgogICAgdGVzdDogZnVuY3Rpb24gdGVzdGNhc2UoKSB7CgogICAgICAgIHZhciByZXN1bHQgPSBmYWxzZTsKICAgICAgICBmdW5jdGlvbiBjYWxsYmFja2ZuKHZhbCwgaWR4KSB7CiAgICAgICAgICAgIHJlc3VsdCA9ICh2YWwgPiAxMCAmJiBhcmd1bWVudHNbMl1baWR4XSA9PT0gdmFsKTsKICAgICAgICB9CgogICAgICAgIFsxMV0uZm9yRWFjaChjYWxsYmFja2ZuKTsgCiAgICAgICAgcmV0dXJuIHJlc3VsdDsKICAgIH0sCgogICAgcHJlY29uZGl0aW9uOiBmdW5jdGlvbiBwcmVyZXEoKSB7CiAgICAgICAgcmV0dXJuIGZuRXhpc3RzKEFycmF5LnByb3RvdHlwZS5mb3JFYWNoKTsKICAgIH0KCn0pOwo=","id":"15.4.4.18-7-c-ii-11","path":"TestCases/chapter15/15.4/15.4.4/15.4.4.18/15.4.4.18-7-c-ii-11.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewoKICAgIGlkOiAiMTUuNC40LjE4LTctYy1paS0xMiIsCgogICAgcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTUvMTUuNC8xNS40LjQvMTUuNC40LjE4LzE1LjQuNC4xOC03LWMtaWktMTIuanMiLAoKICAgIGRlc2NyaXB0aW9uOiAiQXJyYXkucHJvdG90eXBlLmZvckVhY2ggLSBjYWxsYmFja2ZuIGlzIGNhbGxlZCB3aXRoIDMgZm9ybWFsIHBhcmFtZXRlciIsCgogICAgdGVzdDogZnVuY3Rpb24gdGVzdGNhc2UoKSB7CgogICAgICAgIHZhciByZXN1bHQgPSBmYWxzZTsKICAgICAgICBmdW5jdGlvbiBjYWxsYmFja2ZuKHZhbCwgaWR4LCBvYmopIHsKICAgICAgICAgICAgcmVzdWx0ID0gKHZhbCA+IDEwICYmIG9ialtpZHhdID09PSB2YWwpOwogICAgICAgIH0KCiAgICAgICAgWzExXS5mb3JFYWNoKGNhbGxiYWNrZm4pOwogICAgICAgIHJldHVybiByZXN1bHQ7CiAgICB9LAoKICAgIHByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogICAgICAgIHJldHVybiBmbkV4aXN0cyhBcnJheS5wcm90b3R5cGUuZm9yRWFjaCk7CiAgICB9Cgp9KTsK","id":"15.4.4.18-7-c-ii-12","path":"TestCases/chapter15/15.4/15.4.4/15.4.4.18/15.4.4.18-7-c-ii-12.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewoKICAgIGlkOiAiMTUuNC40LjE4LTctYy1paS0xMyIsCgogICAgcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTUvMTUuNC8xNS40LjQvMTUuNC40LjE4LzE1LjQuNC4xOC03LWMtaWktMTMuanMiLAoKICAgIGRlc2NyaXB0aW9uOiAiQXJyYXkucHJvdG90eXBlLmZvckVhY2ggLSBjYWxsYmFja2ZuIHRoYXQgdXNlcyBhcmd1bWVudHMiLAoKICAgIHRlc3Q6IGZ1bmN0aW9uIHRlc3RjYXNlKCkgewoKICAgICAgICB2YXIgcmVzdWx0ID0gZmFsc2U7CiAgICAgICAgZnVuY3Rpb24gY2FsbGJhY2tmbigpIHsKICAgICAgICAgICAgcmVzdWx0ID0gKGFyZ3VtZW50c1syXVthcmd1bWVudHNbMV1dID09PSBhcmd1bWVudHNbMF0pOwogICAgICAgIH0KCiAgICAgICAgWzExXS5mb3JFYWNoKGNhbGxiYWNrZm4pOwogICAgICAgIHJldHVybiByZXN1bHQ7CiAgICB9LAoKICAgIHByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogICAgICAgIHJldHVybiBmbkV4aXN0cyhBcnJheS5wcm90b3R5cGUuZm9yRWFjaCk7CiAgICB9Cgp9KTsK","id":"15.4.4.18-7-c-ii-13","path":"TestCases/chapter15/15.4/15.4.4/15.4.4.18/15.4.4.18-7-c-ii-13.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewoKICAgIGlkOiAiMTUuNC40LjE4LTctYy1paS0xNiIsCgogICAgcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTUvMTUuNC8xNS40LjQvMTUuNC40LjE4LzE1LjQuNC4xOC03LWMtaWktMTYuanMiLAoKICAgIGRlc2NyaXB0aW9uOiAiQXJyYXkucHJvdG90eXBlLmZvckVhY2ggLSAndGhpcycgb2YgJ2NhbGxiYWNrZm4nIGlzIGEgQm9vbGVhbiBvYmplY3Qgd2hlbiBUIGlzIG5vdCBhbiBvYmplY3QgKFQgaXMgYSBib29sZWFuKSIsCgogICAgdGVzdDogZnVuY3Rpb24gdGVzdGNhc2UoKSB7CgogICAgICAgIHZhciByZXN1bHQgPSBmYWxzZTsKICAgICAgICBmdW5jdGlvbiBjYWxsYmFja2ZuKHZhbCwgaWR4LCBvYmopIHsKICAgICAgICAgICAgcmVzdWx0ID0gKHRoaXMudmFsdWVPZigpICE9PSBmYWxzZSk7CiAgICAgICAgfQoKICAgICAgICB2YXIgb2JqID0geyAwOiAxMSwgbGVuZ3RoOiAyIH07CgogICAgICAgIEFycmF5LnByb3RvdHlwZS5mb3JFYWNoLmNhbGwob2JqLCBjYWxsYmFja2ZuLCBmYWxzZSk7CiAgICAgICAgcmV0dXJuICFyZXN1bHQ7CiAgICB9LAoKICAgIHByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogICAgICAgIHJldHVybiBmbkV4aXN0cyhBcnJheS5wcm90b3R5cGUuZm9yRWFjaCk7CiAgICB9Cgp9KTsK","id":"15.4.4.18-7-c-ii-16","path":"TestCases/chapter15/15.4/15.4.4/15.4.4.18/15.4.4.18-7-c-ii-16.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewoKICAgIGlkOiAiMTUuNC40LjE4LTctYy1paS0xNyIsCgogICAgcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTUvMTUuNC8xNS40LjQvMTUuNC40LjE4LzE1LjQuNC4xOC03LWMtaWktMTcuanMiLAoKICAgIGRlc2NyaXB0aW9uOiAiQXJyYXkucHJvdG90eXBlLmZvckVhY2ggLSAndGhpcycgb2YgJ2NhbGxiYWNrZm4nIGlzIGEgTnVtYmVyIG9iamVjdCB3aGVuIFQgaXMgbm90IGFuIG9iamVjdCAoVCBpcyBhIG51bWJlcikiLAoKICAgIHRlc3Q6IGZ1bmN0aW9uIHRlc3RjYXNlKCkgewoKICAgICAgICB2YXIgcmVzdWx0ID0gZmFsc2U7CiAgICAgICAgZnVuY3Rpb24gY2FsbGJhY2tmbih2YWwsIGlkeCwgbykgewogICAgICAgICAgICByZXN1bHQgPSAoNSA9PT0gdGhpcy52YWx1ZU9mKCkpOwogICAgICAgIH0KCiAgICAgICAgdmFyIG9iaiA9IHsgMDogMTEsIGxlbmd0a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sKICAgIH0sCgogICAgcHJlY29uZGl0aW9uOiBmdW5jdGlvbiBwcmVyZXEoKSB7CiAgICAgICAgcmV0dXJuIGZuRXhpc3RzKEFycmF5LnByb3RvdHlwZS5mb3JFYWNoKTsKICAgIH0KCn0pOwo=","id":"15.4.4.18-7-c-ii-18","path":"TestCases/chapter15/15.4/15.4.4/15.4.4.18/15.4.4.18-7-c-ii-18.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewoKICAgIGlkOiAiMTUuNC40LjE4LTctYy1paS0xOSIsCgogICAgcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTUvMTUuNC8xNS40LjQvMTUuNC40LjE4LzE1LjQuNC4xOC03LWMtaWktMTkuanMiLAoKICAgIGRlc2NyaXB0aW9uOiAiQXJyYXkucHJvdG90eXBlLmZvckVhY2ggLSBub24taW5kZXhlZCBwcm9wZXJ0aWVzIGFyZSBub3QgY2FsbGVkIiwKCiAgICB0ZXN0OiBmdW5jdGlvbiB0ZXN0Y2FzZSgpIHsKCiAgICAgICAgdmFyIGFjY2Vzc2VkID0gZmFsc2U7CiAgICAgICAgdmFyIHJlc3VsdCA9IHRydWU7CiAgICAgICAgZnVuY3Rpb24gY2FsbGJhY2tmbih2YWwsIGlkeCwgb2JqKSB7CiAgICAgICAgICAgIGFjY2Vzc2VkID0gdHJ1ZTsKICAgICAgICAgICAgaWYgKHZhbCA9PT0gOCkgewogICAgICAgICAgICAgICAgcmVzdWx0ID0gZmFsc2U7CiAgICAgICAgICAgIH0KICAgICAgICB9CgogICAgICAgIHZhciBvYmogPSB7IDA6IDExLCAxMDogMTIsIG5vbl9pbmRleF9wcm9wZXJ0eTogOCwgbGVuZ3RoOiAyMCB9OwoKICAgICAgICBBcnJheS5wcm90b3R5cGUuZm9yRWFjaC5jYWxsKG9iaiwgY2FsbGJhY2tmbik7CiAgICAgICAgcmV0dXJuIHJlc3VsdCAmJiBhY2Nlc3NlZDsKICAgIH0sCgogICAgcHJlY29uZG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Ck7CiB9Cn0pOwo=","id":"15.4.4.18-7-c-ii-2","path":"TestCases/chapter15/15.4/15.4.4/15.4.4.18/15.4.4.18-7-c-ii-2.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewoKICAgIGlkOiAiMTUuNC40LjE4LTctYy1paS0yMCIsCgogICAgcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTUvMTUuNC8xNS40LjQvMTUuNC40LjE4LzE1LjQuNC4xOC03LWMtaWktMjAuanMiLAoKICAgIGRlc2NyaXB0aW9uOiAiQXJyYXkucHJvdG90eXBlLmZvckVhY2ggLSBjYWxsYmFja2ZuIGNhbGxlZCB3aXRoIGNvcnJlY3QgcGFyYW1ldGVycyAodGhpc0FyZyBpcyBjb3JyZWN0KSIsCgogICAgdGVzdDogZnVuY3Rpb24gdGVzdGNhc2UoKSB7CgogICAgICAgIHZhciByZXN1bHQgPSBmYWxzZTsKICAgICAgICBmdW5jdGlvbiBjYWxsYmFja2ZuKHZhbCwgaWR4LCBvYmopIHsKICAgICAgICAgICAgcmVzdWx0ID0gKDEwID09PSB0aGlzLnRocmVzaG9sZCk7CiAgICAgICAgfQoKICAgICAgICB2YXIgdGhpc0FyZyA9IHsgdGhyZXNob2xkOiAxMCB9OwoKICAgICAgICB2YXIgb2JqID0geyAwOiAxMSwgbGVuZ3RoOiAxIH07CgogICAgICAgIEFycmF5LnByb3RvdHlwZS5mb3JFYWNoLmNhbGwob2JqLCBjYWxsYmFja2ZuLCB0aGlzQXJnKTsKICAgICAgICByZXR1cm4gcmVzdWx0OwogICAgfSwKCiAgICBwcmVjb25kaXRpb246IGZ1bmN0aW9uIHByZXJlcSgpIHsKICAgICAgICByZXR1cm4gZm5FeGlzdHMoQXJyYXkucHJvdG90eXBlLmZvckVhY2gpOwogICAgfQoKfSk7Cg==","id":"15.4.4.18-7-c-ii-20","path":"TestCases/chapter15/15.4/15.4.4/15.4.4.18/15.4.4.18-7-c-ii-20.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewoKICAgIGlkOiAiMTUuNC40LjE4LTctYy1paS0yMSIsCgogICAgcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTUvMTUuNC8xNS40LjQvMTUuNC40LjE4LzE1LjQuNC4xOC03LWMtaWktMjEuanMiLAoKICAgIGRlc2NyaXB0aW9uOiAiQXJyYXkucHJvdG90eXBlLmZvckVhY2ggLSBjYWxsYmFja2ZuIGNhbGxlZCB3aXRoIGNvcnJlY3QgcGFyYW1ldGVycyAoa1ZhbHVlIGlzIGNvcnJlY3QpIiwKCiAgICB0ZXN0OiBmdW5jdGlvbiB0ZXN0Y2FzZSgpIHsKCiAgICAgICAgdmFyIHJlc3VsdE9uZSA9IGZhbHNlOwogICAgICAgIHZhciByZXN1bHRUd28gPSBmYWxzZTsKCiAgICAgICAgZnVuY3Rpb24gY2FsbGJhY2tmbih2YWwsIGlkeCwgb2JqKSB7CiAgICAgICAgICAgIGlmIChpZHggPT09IDApIHsKICAgICAgICAgICAgICAgIHJlc3VsdE9uZSA9ICh2YWwgPT09IDExKTsKICAgICAgICAgICAgfQoKICAgICAgICAgICAgaWYgKGlkeCA9PT0gMSkgewogICAgICAgICAgICAgICAgcmVzdWx0VHdvID0gKHZhbCA9PT0gMTIpOwogICAgICAgICAgICB9CgogICAgICAgIH0KCiAgICAgICAgdmFyIG9iaiA9IHsgMDogMTEsIDE6IDEyLCBsZW5ndGg6IDIgfTsKCiAgICAgICAgQXJyYXkucHJvdG90eXBlLmZvckVhY2guY2FsbChvYmosIGNhbGxiYWNrZm4pOwogICAgICAgIHJldHVybiByZXN1bHRPbmUgJiYgcmVzdWx0VHdvOwogICAgfSwKCiAgICBwcmVjb25kaXRpb246IGZ1bmN0aW9uIHByZXJlcSgpIHsKICAgICAgICByZXR1cm4gZm5FeGlzdHMoQXJyYXkucHJvdG90eXBlLmZvckVhY2gpOwogICAgfQoKfSk7Cg==","id":"15.4.4.18-7-c-ii-21","path":"TestCases/chapter15/15.4/15.4.4/15.4.4.18/15.4.4.18-7-c-ii-21.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewoKICAgIGlkOiAiMTUuNC40LjE4LTctYy1paS0yMiIsCgogICAgcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTUvMTUuNC8xNS40LjQvMTUuNC40LjE4LzE1LjQuNC4xOC03LWMtaWktMjIuanMiLAoKICAgIGRlc2NyaXB0aW9uOiAiQXJyYXkucHJvdG90eXBlLmZvckVhY2ggLSBjYWxsYmFja2ZuIGNhbGxlZCB3aXRoIGNvcnJlY3QgcGFyYW1ldGVycyAodGhlIGluZGV4IGsgaXMgY29ycmVjdCkiLAoKICAgIHRlc3Q6IGZ1bmN0aW9uIHRlc3RjYXNlKCkgewoKICAgICAgICB2YXIgcmVzdWx0T25lID0gZmFsc2U7CiAgICAgICAgdmFyIHJlc3VsdFR3byA9IGZhbHNlOwoKICAgICAgICBmdW5jdGlvbiBjYWxsYmFja2ZuKHZhbCwgaWR4LCBvYmopIHsKICAgICAgICAgICAgaWYgKHZhbCA9PT0gMTEpIHsKICAgICAgICAgICAgICAgIHJlc3VsdE9uZSA9IChpZHggPT09IDApOwogICAgICAgICAgICB9CgogICAgICAgICAgICBpZiAodmFsID09PSAxMikgewogICAgICAgICAgICAgICAgcmVzdWx0VHdvID0gKGlkeCA9PT0gMSk7CiAgICAgICAgICAgIH0KCiAgICAgICAgfQoKICAgICAgICB2YXIgb2JqID0geyAwOiAxMSwgMTogMTIsIGxlbmd0aDogMiB9OwoKICAgICAgICBBcnJheS5wcm90b3R5cGUuZm9yRWFjaC5jYWxsKG9iaiwgY2FsbGJhY2tmbik7CiAgICAgICAgcmV0dXJuIHJlc3VsdE9uZSAmJiByZXN1bHRUd287CiAgICB9LAoKICAgIHByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogICAgICAgIHJldHVybiBmbkV4aXN0cyhBcnJheS5wcm90b3R5cGUuZm9yRWFjaCk7CiAgICB9Cgp9KTsK","id":"15.4.4.18-7-c-ii-22","path":"TestCases/chapter15/15.4/15.4.4/15.4.4.18/15.4.4.18-7-c-ii-22.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewoKICAgIGlkOiAiMTUuNC40LjE4LTctYy1paS0yMyIsCgogICAgcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTUvMTUuNC8xNS40LjQvMTUuNC40LjE4LzE1LjQuNC4xOC03LWMtaWktMjMuanMiLAoKICAgIGRlc2NyaXB0aW9uOiAiQXJyYXkucHJvdG90eXBlLmZvckVhY2ggLSBjYWxsYmFja2ZuIGNhbGxlZCB3aXRoIGNvcnJlY3QgcGFyYW1ldGVycyAodGhpcyBvYmplY3QgTyBpcyBjb3JyZWN0KSIsCgogICAgdGVzdDogZnVuY3Rpb24gdGVzdGNhc2UoKSB7CgogICAgICAgIHZhciByZXN1bHQgPSBmYWxzZTsKICAgICAgICB2YXIgb2JqID0geyAwOiAxMSwgbGVuZ3RoOiAyIH07CgogICAgICAgIGZ1bmN0aW9uIGNhbGxiYWNrZm4odmFsLCBpZHgsIG8pIHsKICAgICAgICAgICAgcmVzdWx0ID0gKG9iaiA9PT0gbyk7CiAgICAgICAgfQoKICAgICAgICBBcnJheS5wcm90b3R5cGUuZm9yRWFjaC5jYWxsKG9iaiwgY2FsbGJhY2tmbik7CiAgICAgICAgcmV0dXJuIHJlc3VsdDsKICAgIH0sCgogICAgcHJlY29uZGl0aW9uOiBmdW5jdGlvbiBwcmVyZXEoKSB7CiAgICAgICAgcmV0dXJuIGZuRXhpc3RzKEFycmF5LnByb3RvdHlwZS5mb3JFYWNoKTsKICAgIH0KCn0pOwo=","id":"15.4.4.18-7-c-ii-23","path":"TestCases/chapter15/15.4/15.4.4/15.4.4.18/15.4.4.18-7-c-ii-23.js"},{"code":"77u/Ly8vIENvcHlyaWdodCAoYykgMjAwOSBNaWNyb3NvZnQgQ29ycG9yYXRpb24gCi8vLyAKLy8vIFJlZGl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zE1LjQuNC4xOC03LWMtaWktNC5qcyIsCgogICAgZGVzY3JpcHRpb246ICJBcnJheS5wcm90b3R5cGUuZm9yRWFjaCAtIGsgdmFsdWVzIGFyZSBwYXNzZWQgaW4gYXNjZW5kaW5nIG51bWVyaWMgb3JkZXIiLAoKICAgIHRlc3Q6IGZ1bmN0aW9uIHRlc3RjYXNlKCkgewoKICAgICAgICB2YXIgYXJyID0gWzAsIDEsIDIsIDMsIDQsIDVdOwogICAgICAgIHZhciBsYXN0SWR4ID0gMDsKICAgICAgICB2YXIgY2FsbGVkID0gMDsKICAgICAgICB2YXIgcmVzdWx0ID0gdHJ1ZTsKICAgICAgICBmdW5jdGlvbiBjYWxsYmFja2ZuKHZhbCwgaWR4LCBvKSB7CiAgICAgICAgICAgIGNhbGxlZCsrOwogICAgICAgICAgICBpZiAobGFzdElkeCAhPT0gaWR4KSB7CiAgICAgICAgICAgICAgICByZXN1bHQgPSBmYWxzZTsKICAgICAgICAgICAgfSBlbHNlIHsKICAgICAgICAgICAgICAgIGxhc3RJZHgrKzsKICAgICAgICAgICAgfQogICAgICAgIH0KCiAgICAgICAgYXJyLmZvckVhY2goY2FsbGJhY2tmbik7CiAgICAgICAgcmV0dXJuIHJlc3VsdCAmJiBhcnIubGVuZ3RoID09PSBjYWxsZWQ7CiAgICB9LAoKICAgIHByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogICAgICAgIHJldHVybiBmbkV4aXN0cyhBcnJheS5wcm90b3R5cGUuZm9yRWFjaCk7CiAgICB9Cgp9KTsK","id":"15.4.4.18-7-c-ii-4","path":"TestCases/chapter15/15.4/15.4.4/15.4.4.18/15.4.4.18-7-c-ii-4.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewoKICAgIGlkOiAiMTUuNC40LjE4LTctYy1paS01IiwKCiAgICBwYXRoOiAiVGVzdENhc2VzL2NoYXB0ZXIxNS8xNS40LzE1LjQuNC8xNS40LjQuMTgvMTUuNC40L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4W2lkeF0gPSAxOwogICAgICAgICAgICB9IGVsc2UgewogICAgICAgICAgICAgICAgcmVzdWx0ID0gZmFsc2U7CiAgICAgICAgICAgIH0KICAgICAgICB9CgogICAgICAgIFsxMSwgMTIsIDEzLCAxNF0uZm9yRWFjaChjYWxsYmFja2ZuLCB1bmRlZmluZWQpOwoKICAgICAgICByZXR1cm4gcmVzdWx0OwogICAgfSwKCgogICAgcHJlY29uZGl0aW9uOiBmdW5jdGlvbiBwcmVyZXEoKSB7CiAgICAgICAgcmV0dXJuIGZuRXhpc3RzKEFycmF5LnByb3RvdHlwZS5mb3JFYWNoKTsKICAgIH0KCn0pOwo=","id":"15.4.4.18-7-c-ii-5","path":"TestCases/chapter15/15.4/15.4.4/15.4.4.18/15.4.4.18-7-c-ii-5.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewoKICAgIGlkOiAiMTUuNC40LjE4LTctYy1paS02IiwKCiAgICBwYXRoOiAiVGVzdENhc2VzL2NoYXB0ZXIxNS8xNS40LzE1LjQuNC8xNS40LjQuMTgvMTUuNC40LjE4LTctYy1paS02LmpzIiwKCiAgICBkZXNjcmlwdGlvbjogIkFycmF5LnByb3RvdHlwZS5mb3JFYWNoIC0gYXJndW1lbnRzIHRvIGNhbGxiYWNrZm4gYXJlIHNlbGYgY29uc2lzdGVudCIsCgogICAgdGVzdDogZnVuY3Rpb24gdGVzdGNhc2UoKSB7CgogICAgICAgIHZhciByZXN1bHQgPSBmYWxzZTsKICAgICAgICB2YXIgb2JqID0geyAwOiAxMSwgbGVuZ3RoOiAxIH07CiAgICAgICAgdmFyIHRoaXNBcmcgPSB7fTsKCiAgICAgICAgZnVuY3Rpb24gY2FsbGJhY2tmbigpIHsKICAgICAgICAgICAgcmVzdWx0ID0gKHRoaXMgPT09IHRoaXNBcmcgJiYKICAgICAgICAgICAgICAgIGFyZ3VtZW50c1swXSA9PT0gMTEgJiYKICAgICAgICAgICAgICAgIGFyZ3VtZW50c1sxXSA9PT0gMCAmJgogICAgICAgICAgICAgICAgYXJndW1lbnRzWzJdID09PSBvYmopOwogICAgICAgIH0KCiAgICAgICAgQXJyYXkucHJvdG90eXBlLmZvckVhY2guY2FsbChvYmosIGNhbGxiYWNrZm4sIHRoaXNBcmcpOwogICAgICAgIHJldHVybiByZXN1bHQ7CiAgICB9LAoKICAgIHByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogICAgICAgIHJldHVybiBmbkV4aXN0cyhBcnJheS5wcm90b3R5cGUuZm9yRWFjaCk7CiAgICB9Cgp9KTsK","id":"15.4.4.18-7-c-ii-6","path":"TestCases/chapter15/15.4/15.4.4/15.4.4.18/15.4.4.18-7-c-ii-6.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewoKICAgIGlkOiAiMTUuNC40LjE4LTctYy1paS03IiwKCiAgICBwYXRoOiAiVGVzdENhc2VzL2NoYXB0ZXIxNS8xNS40LzE1LjQuNC8xNS40LjQuMTgvMTUuNC40LjE4LTctYy1paS03LmpzIiwKCiAgICBkZXNjcmlwdGlvbjogIkFycmF5LnByb3RvdHlwZS5mb3JFYWNoIC0gdW5oYW5kbGVkIGV4Y2VwdGlvbnMgaGFwcGVuZWQgaW4gY2FsbGJhY2tmbiB0ZXJtaW5hdGUgaXRlcmF0aW9uIiwKCiAgICB0ZXN0OiBmdW5jdGlvbiB0ZXN0Y2FzZSgpIHsKCiAgICAgICAgdmFyIGFjY2Vzc2VkID0gZmFsc2U7CgogICAgICAgIGZ1bmN0aW9uIGNhbGxiYWNrZm4odmFsLCBpZHgsIG9iaikgewogICAgICAgICAgICBpZiAoaWR4ID4gMCkgewogICAgICAgICAgICAgICAgYWNjZXNzZWQgPSB0cnVlOwogICAgICAgICAgICB9CiAgICAgICAgICAgIGlmIChpZHggPT09IDApIHsKICAgICAgICAgICAgICAgIHRocm93IG5ldyBFcnJvcigiRXhjZXB0aW9uIG9jY3VycmVkIGluIGNhbGxiYWNrZm4iKTsKICAgICAgICAgICAgfQogICAgICAgIH0KCiAgICAgICAgdmFyIG9iaiA9IHsgMDogMTEsIDQ6IDEwLCAxMDogOCwgbGVuZ3RoOiAyMCB9OwoKICAgICAgICB0cnkgewogICAgICAgICAgICBBcnJheS5wcm90b3R5cGUuZm9yRWFjaC5jYWxsKG9iaiwgY2FsbGJhY2tmbik7CiAgICAgICAgICAgIHJldHVybiBmYWxzZTsKICAgICAgICB9IGNhdGNoIChleCkgewogICAgICAgICAgICByZXR1cm4gZXggaW5zdGFuY2VvZiBFcnJvciAmJiAhYWNjZXNzZWQ7CiAgICAgICAgfQogICAgfSwKCiAgICBwcmVjb25kaXRpb246IGZ1bmN0aW9uIHByZXJlcSgpIHsKICAgICAgICByZXR1cm4gZm5FeGlzdHMoQXJyYXkucHJvdG90eXBlLmZvckVhY2gpOwogICAgfQoKfSk7Cg==","id":"15.4.4.18-7-c-ii-7","path":"TestCases/chapter15/15.4/15.4.4/15.4.4.18/15.4.4.18-7-c-ii-7.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewoKICAgIGlkOiAiMTUuNC40LjE4LTctYy1paS04IiwKCiAgICBwYXRoOiAiVGVzdENhc2VzL2NoYXB0ZXIxNS8xNS40LzE1LjQuNC8xNS40LjQuMTgvMTUuNC40LjE4LTctYy1paS04LmpzIiwKCiAgICBkZXNjcmlwdGlvbjogIkFycmF5LnByb3RvdHlwZS5mb3JFYWNoIC0gZWxlbWVudCBjaGFuZ2VkIGJ5IGNhbGxiYWNrZm4gb24gcHJldmlvdXMgaXRlcmF0aW9ucyBpcyBvYnNlcnZlZCIsCgogICAgdGVzdDogZnVuY3Rpb24gdGVzdGNhc2UoKSB7CgogICAgICAgIHZhciByZXN1bHQgPSBmYWxzZTsKICAgICAgICB2YXIgb2JqID0geyAwOiAxMSwgMTogMTIsIGxlbmd0aDogMiB9OwoKICAgICAgICBmdW5jdGlvbiBjYWxsYmFja2ZuKHZhbCwgaWR4LCBvKSB7CiAgICAgICAgICAgIGlmIChpZHggPT09IDApIHsKICAgICAgICAgICAgICAgIG9ialtpZHggKyAxXSA9IDg7CiAgICAgICAgICAgIH0KICAgICAgICAgICAgCiAgICAgICAgICAgIGlmIChpZHggPT09IDEpIHsKICAgICAgICAgICAgICAgIHJlc3VsdCA9ICh2YWwgPT09IDgpOwogICAgICAgICAgICB9CiAgICAgICAgfQoKICAgICAgICBBcnJheS5wcm90b3R5cGUuZm9yRWFjaC5jYWxsKG9iaiwgY2FsbGJhY2tmbik7CiAgICAgICAgcmV0dXJuIHJlc3VsdDsKICAgIH0sCgogICAgcHJlY29uZGl0aW9uOiBmdW5jdGlvbiBwcmVyZXEoKSB7CiAgICAgICAgcmV0dXJuIGZuRXhpc3RzKEFycmF5LnByb3RvdHlwZS5mb3JFYWNoKTsKICAgIH0KCn0pOwo=","id":"15.4.4.18-7-c-ii-8","path":"TestCases/chapter15/15.4/15.4.4/15.4.4.18/15.4.4.18-7-c-ii-8.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewoKICAgIGlkOiAiMTUuNC40LjE4LTctYy1paS05IiwKCiAgICBwYXRoOiAiVGVzdENhc2VzL2NoYXB0ZXIxNS8xNS40LzE1LjQuNC8xNS40LjQuMTgvMTUuNC40LjE4LTctYy1paS05LmpzIiwKCiAgICBkZXNjcmlwdGlvbjogIkFycmF5LnByb3RvdHlwZS5mb3JFYWNoIC0gY2FsbGJhY2tmbiBpcyBjYWxsZWQgd2l0aCAwIGZvcm1hbCBwYXJhbWV0ZXIiLAoKICAgIHRlc3Q6IGZ1bmN0aW9uIHRlc3RjYXNlKCkgewoKICAgICAgICB2YXIgY2FsbGVkID0gMDsKICAgICAgICBmdW5jdGlvbiBjYWxsYmFja2ZuKCkgewogICAgICAgICAgICBjYWxsZWQrKzsKICAgICAgICB9CgogICAgICAgIFsxMSwgMTJdLmZvckVhY2goY2FsbGJhY2tmbik7CiAgICAgICAgcmV0dXJuIDIgPT09IGNhbGxlZDsKICAgIH0sCgogICAgcHJlY29uZGl0aW9uOiBmdW5jdGlvbiBwcmVyZXEoKSB7CiAgICAgICAgcmV0dXJuIGZuRXhpc3RzKEFycmF5LnByb3RvdHlwZS5mb3JFYWNoKTsKICAgIH0KCn0pOwo=","id":"15.4.4.18-7-c-ii-9","path":"TestCases/chapter15/15.4/15.4.4/15.4.4.18/15.4.4.18-7-c-ii-9.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoIHsKaWQ6ICIxNS40LjQuMTgtOC0xIiwKCnBhdGg6ICJUZXN0Q2FzZXMvY2hhcHRlcjE1LzE1LjQvMTUuNC40LzE1LjQuNC4xOC8xNS40LjQuMTgtOC0xLmpzIiwKCmRlc2NyaXB0aW9uOiAiQXJyYXkucHJvdG90eXBlLmZvckVhY2ggZG9lc24ndCBjYWxsIGNhbGxiYWNrZm4gaWYgJ2xlbmd0aCcgaXMgMCAoZW1wdHkgYXJyYXkpIiwKCnRlc3Q6IGZ1bmN0aW9uIHRlc3RjYXNlKCkgewogIHZhciBjYWxsQ250ID0gMDsKICBmdW5jdGlvbiBjYigpe2NhbGxDbnQrK30KICB2YXIgaSA9IFtdLmZvckVhY2goY2IpOwogIGlmIChjYWxsQ250ID09PSAwKSB7CiAgICByZXR1cm4gdHJ1ZTsKICB9CiB9LAoKcHJlY29uZGl0aW9uOiBmdW5jdGlvbiBwcmVyZXEoKSB7CiAgcmV0dXJuIGZuRXhpc3RzKEFycmF5LnByb3RvdHlwZS5mb3JFYWNoKTsKIH0KfSk7Cg==","id":"15.4.4.18-8-1","path":"TestCases/chapter15/15.4/15.4.4/15.4.4.18/15.4.4.18-8-1.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoIHsKaWQ6ICIxNS40LjQuMTgtOC0xMCIsCgpwYXRoOiAiVGVzdENhc2VzL2NoYXB0ZXIxNS8xNS40LzE1LjQuNC8xNS40LjQuMTgvMTUuNC40LjE4LTgtMTAuanMiLAoKZGVzY3JpcHRpb246ICJBcnJheS5w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JbMF0gPT09IDEgJiYKICAgICBhcnJbMV0gPT09IDIgJiYKICAgICBhcnJbMl0gPT09IDMgJiYKICAgICBhcnJbM10gPT09IDQgJiYKICAgICBhcnJbNF0gPT09IDUpCiAgewogICAgcmV0dXJuIHRydWU7CiAgfQoKIH0sCgpwcmVjb25kaXRpb246IGZ1bmN0aW9uIHByZXJlcSgpIHsKICByZXR1cm4gZm5FeGlzdHMoQXJyYXkucHJvdG90eXBlLmZvckVhY2gpOwogfQp9KTsK","id":"15.4.4.18-8-11","path":"TestCases/chapter15/15.4/15.4.4/15.4.4.18/15.4.4.18-8-11.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoIHsKaWQ6ICIxNS40LjQuMTgtOC0xMiIsCgpwYXRoOiAiVGVzdENhc2VzL2NoYXB0ZXIxNS8xNS40LzE1LjQuNC8xNS40LjQuMTgvMTUuNC40LjE4LTgtMTIuanMiLAoKZGVzY3JpcHRpb246ICJBcnJheS5wcm90b3R5cGUuZm9yRWFjaCBkb2Vzbid0IHZpc2l0IGV4cGFuZG9zIiwKCnRlc3Q6IGZ1bmN0aW9uIHRlc3RjYXNlKCkgewoKICB2YXIgY2FsbENudCA9IDA7CiAgZnVuY3Rpb24gY2FsbGJhY2tmbih2YWwsIGlkeCwgb2JqKQogIHsKICAgIGNhbGxDbnQrKzsKICB9CiAgdmFyIGFyciA9IFsxLDIsMyw0LDVdOwogIGFyclsiaSJdID0gMTA7CiAgYXJyW3RydWVdID0gMTE7CgogIGFyci5mb3JFYWNoKGNhbGxiYWNrZm4pOwogIGlmKGNhbGxDbnQgPT0gNSkKICB7CiAgICByZXR1cm4gdHJ1ZTsKICB9CgogfSwKCnByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogIHJldHVybiBmbkV4aXN0cyhBcnJheS5wcm90b3R5cGUuZm9yRWFjaCk7CiB9Cn0pOwo=","id":"15.4.4.18-8-12","path":"TestCases/chapter15/15.4/15.4.4/15.4.4.18/15.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