{"remainingRequest":"/home/cmiss/Jenkins/workspace/mapintegratedvuer/node_modules/thread-loader/dist/cjs.js!/home/cmiss/Jenkins/workspace/mapintegratedvuer/node_modules/babel-loader/lib/index.js!/home/cmiss/Jenkins/workspace/mapintegratedvuer/node_modules/cache-loader/dist/cjs.js??ref--1-0!/home/cmiss/Jenkins/workspace/mapintegratedvuer/node_modules/vue-loader/lib/index.js??vue-loader-options!/home/cmiss/Jenkins/workspace/mapintegratedvuer/node_modules/@abi-software/flatmapvuer/src/components/FlatmapVuer.vue?vue&type=script&lang=js&","dependencies":[{"path":"/home/cmiss/Jenkins/workspace/mapintegratedvuer/node_modules/@abi-software/flatmapvuer/src/components/FlatmapVuer.vue","mtime":499162500000},{"path":"/home/cmiss/Jenkins/workspace/mapintegratedvuer/babel.config.js","mtime":1684261475125},{"path":"/home/cmiss/Jenkins/workspace/mapintegratedvuer/node_modules/cache-loader/dist/cjs.js","mtime":499162500000},{"path":"/home/cmiss/Jenkins/workspace/mapintegratedvuer/node_modules/thread-loader/dist/cjs.js","mtime":499162500000},{"path":"/home/cmiss/Jenkins/workspace/mapintegratedvuer/node_modules/babel-loader/lib/index.js","mtime":456789000000},{"path":"/home/cmiss/Jenkins/workspace/mapintegratedvuer/node_modules/cache-loader/dist/cjs.js","mtime":499162500000},{"path":"/home/cmiss/Jenkins/workspace/mapintegratedvuer/node_modules/vue-loader/lib/index.js","mtime":499162500000}],"contextDependencies":[],"result":[{"type":"Buffer","data":"base64:aW1wb3J0IF9jcmVhdGVGb3JPZkl0ZXJhdG9ySGVscGVyIGZyb20gIi9ob21lL2NtaXNzL0plbmtpbnMvd29ya3NwYWNlL21hcGludGVncmF0ZWR2dWVyL25vZGVfbW9kdWxlcy9AYmFiZWwvcnVudGltZS9oZWxwZXJzL2VzbS9jcmVhdGVGb3JPZkl0ZXJhdG9ySGVscGVyLmpzIjsKaW1wb3J0IF9yZWdlbmVyYXRvclJ1bnRpbWUgZnJvbSAiL2hvbWUvY21pc3MvSmVua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W5jdGlvbiBzZXRPdXRsaW5lcyhmbGFnKSB7CiAgICAgIHRoaXMub3V0bGluZVJhZGlvID0gZmxhZzsKICAgICAgaWYgKHRoaXMubWFwSW1wKSB7CiAgICAgICAgdGhpcy5tYXBJbXAuc2V0Q29sb3VyKHsKICAgICAgICAgIGNvbG91cjogdGhpcy5jb2xvdXJSYWRpbywKICAgICAgICAgIG91dGxpbmU6IGZsYWcKICAgICAgICB9KTsKICAgICAgfQogICAgfSwKICAgIC8qKgogICAgICogRnVuY3Rpb24gdG8gdG9nZ2xlIHBhdGhzIHRvIGRlZmF1bHQuCiAgICAgKiBBbHNvIGNhbGxlZCB3aGVuIHRoZSBhc3NvY2lhdGVkIGJ1dHRvbiBpcyBwcmVzc2VkLgogICAgICovCiAgICByZXNldFZpZXc6IGZ1bmN0aW9uIHJlc2V0VmlldygpIHsKICAgICAgaWYgKHRoaXMubWFwSW1wKSB7CiAgICAgICAgdGhpcy5tYXBJbXAucmVzZXRNYXAoKTsKICAgICAgICBpZiAodGhpcy4kcmVmcy5jZW50cmVsaW5lc1NlbGVjdGlvbikgewogICAgICAgICAgdGhpcy4kcmVmcy5jZW50cmVsaW5lc1NlbGVjdGlvbi5yZXNldCgpOwogICAgICAgIH0KICAgICAgICBpZiAodGhpcy4kcmVmcy5za2NhblNlbGVjdGlvbikgewogICAgICAgICAgdGhpcy4kcmVmcy5za2NhblNlbGVjdGlvbi5yZXNldCgpOwogICAgICAgIH0KICAgICAgICBpZiAodGhpcy4kcmVmcy5sYXllcnNTZWxlY3Rpb24pIHsKICAgICAgICAgIHRoaXMuJHJlZnMubGF5ZXJzU2VsZWN0aW9uLnJlc2V0KCk7CiAgICAgICAgfQogICAgICAgIGlmICh0aGlzLiRyZWZzLnN5c3RlbXNTZWxlY3Rpb24pIHsKICAgICAgICAgIHRoaXMuJHJlZnMucGF0aHdheXNTZWxlY3Rpb24ucmVzZXQoKTsKICAgICAgICB9CiAgICAgICAgaWYgKHRoaXMuJHJlZnMucGF0aHdheXNTZWxlY3Rpb24pIHsKICAgICAgICAgIHRoaXMuJHJlZnMucGF0aHdheXNTZWxlY3Rpb24ucmVzZXQoKTsKICAgICAgICB9CiAgICAgIH0KICAgIH0sCiAgICAvKioKICAgICAqIEZ1bmN0aW9uIHRvIHpvb20gaW4uCiAgICAgKiBBbHNvIGNhbGxlZCB3aGVuIHRoZSBhc3NvY2lhdGVkIGJ1dHRvbiBpcyBwcmVzc2VkLgogICAgICovCiAgICB6b29tSW46IGZ1bmN0aW9uIHpvb21JbigpIHsKICAgICAgaWYgKHRoaXMubWFwSW1wKSB7CiAgICAgICAgdGhpcy5tYXBJbXAuem9vbUluKCk7CiAgICAgIH0KICAgIH0sCiAgICAvKioKICAgICAqIEZ1bmN0aW9uIHRvIHpvb20gb3V0LgogICAgICogQWxzbyBjYWxsZWQgd2hlbiB0aGUgYXNzb2NpYXRlZCBidXR0b24gaXMgcHJlc3NlZC4KICAgICAqLwogICAgem9vbU91dDogZnVuY3Rpb24gem9vbU91dCgpIHsKICAgICAgaWYgKHRoaXMubWFwSW1wKSB7CiAgICAgICAgdGhpcy5tYXBJbXAuem9vbU91dCgpOwogICAgICB9CiAgICB9LAogICAgY2VudHJlTGluZXNTZWxlY3RlZDogZnVuY3Rpb24gY2VudHJlTGluZXNTZWxlY3RlZChwYXlsb2FkKSB7CiAgICAgIGlmICh0aGlzLm1hcEltcCkgewogICAgICAgIHRoaXMubWFwSW1wLmVuYWJsZUNlbnRyZWxpbmVzKHBheWxvYWQudmFsdWUpOwogICAgICB9CiAgICB9LAogICAgc2NrYW5TZWxlY3RlZDogZnVuY3Rpb24gc2NrYW5TZWxlY3RlZChwYXlsb2FkKSB7CiAgICAgIGlmICh0aGlzLm1hcEltcCkgewogICAgICAgIHRoaXMubWFwSW1wLmVuYWJsZVNja2FuUGF0aChwYXlsb2FkLmtleSwgcGF5bG9hZC52YWx1ZSk7CiAgICAgIH0KICAgIH0sCiAgICBjaGVja0FsbFNDS0FOOiBmdW5jdGl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fdGhpczMgPSB0aGlzOwogICAgICBpZiAodGhpcy5tYXBJbXApIHsKICAgICAgICBwYXlsb2FkLmtleXMuZm9yRWFjaChmdW5jdGlvbiAoa2V5KSB7CiAgICAgICAgICByZXR1cm4gX3RoaXMzLm1hcEltcC5lbmFibGVMYXllcihrZXksIHBheWxvYWQudmFsdWUpOwogICAgICAgIH0pOwogICAgICB9CiAgICB9LAogICAgcGF0aHdheXNTZWxlY3RlZDogZnVuY3Rpb24gcGF0aHdheXNTZWxlY3RlZChwYXlsb2FkKSB7CiAgICAgIGlmICh0aGlzLm1hcEltcCkgewogICAgICAgIHRoaXMubWFwSW1wLmVuYWJsZVBhdGgocGF5bG9hZC5rZXksIHBheWxvYWQudmFsdWUpOwogICAgICB9CiAgICB9LAogICAgY2hlY2tBbGxQYXRod2F5czogZnVuY3Rpb24gY2hlY2tBbGxQYXRod2F5cyhwYXlsb2FkKSB7CiAgICAgIHZhciBfdGhpczQgPSB0aGlzOwogICAgICBpZiAodGhpcy5tYXBJbXApIHsKICAgICAgICBwYXlsb2FkLmtleXMuZm9yRWFjaChmdW5jdGlvbiAoa2V5KSB7CiAgICAgICAgICByZXR1cm4gX3RoaXM0Lm1hcEltcC5lbmFibGVQYXRoKGtleSwgcGF5bG9hZC52YWx1ZSk7CiAgICAgICAgfSk7CiAgICAgIH0KICAgIH0sCiAgICBlbmFibGVQYW5ab29tRXZlbnRzOiBmdW5jdGlvbiBlbmFibGVQYW5ab29tRXZlbnRzKGZsYWcpIHsKICAgICAgdGhpcy5tYXBJbXAuZW5hYmxlUGFuWm9vbUV2ZW50cyhmbGFnKTsKICAgIH0sCiAgICBldmVudENhbGxiYWNrOiBmdW5jdGlvbiBldmVudENhbGxiYWNrKCkgewogICAgICB2YXIgX3RoaXM1ID0gdGhpczsKICAgICAgcmV0dXJuIGZ1bmN0aW9uIChldmVudFR5cGUsIGRhdGEpIHsKICAgICAgICBpZiAoZXZlbnRUeXBlICE9PSAicGFuLXpvb20iKSB7CiAgICAgICAgICB2YXIgbGFiZWwgPSBkYXRhLmxhYmVsOwogICAgICAgICAgdmFyIHJlc291cmNlID0gW2RhdGEubW9kZWxzXTsKICAgICAgICAgIHZhciB0YXhvbm9teSA9IF90aGlzNS5lbnRyeTsKICAgICAgICAgIHZhciBiaW9sb2dpY2FsU2V4ID0gX3RoaXM1LmJpb2xvZ2ljYWxTZXg7CiAgICAgICAgICBmb3IgKHZhciBfbGVuID0gYXJndW1lbnRzLmxlbmd0aCwgYXJncyA9IG5ldyBBcnJheShfbGVuID4gMiA/IF9sZW4gLSAyIDogMCksIF9rZXkgPSAyOyBfa2V5IDwgX2xlbjsgX2tleSsrKSB7CiAgICAgICAgICAgIGFyZ3NbX2tleSAtIDJdID0gYXJndW1lbnRzW19rZXldOwogICAgICAgICAgfQogICAgICAgICAgdmFyIHBheWxvYWQgPSB7CiAgICAgICAgICAgIGRhdGFzZXQ6IGRhdGEuZGF0YXNldCwKICAgICAgICAgICAgYmlvbG9naWNhbFNleDogYmlvbG9naWNhbFNleCwKICAgICAgICAgICAgdGF4b25vbXk6IHRheG9ub215LAogICAgICAgICAgICByZXNvdXJjZTogcmVzb3VyY2UsCiAgICAgICAgICAgIGxhYmVsOiBsYWJlbCwKICAgICAgICAgICAgZmVhdHVyZTogZGF0YSwKICAgICAgICAgICAgdXNlckRhdGE6IGFyZ3MsCiAgICAgICAgICAgIGV2ZW50VHlwZTogZXZlbnRUeXBlCiAgICAgICAgICB9OwogICAgICAgICAgaWYgKGRhdGEgJiYgZGF0YS50eXBlICE9PSAibWFya2VyIiAmJiBldmVudFR5cGUgPT09ICJjbGljayIpIHsKICAgICAgICAgICAgX3RoaXM1LmNoZWNrQW5kQ3JlYXRlUG9wdXBzKHBheWxvYWQpOwogICAgICAgICAgfQogICAgICAgICAgX3RoaXM1LiRlbWl0KCJyZXNvdXJjZS1zZWxlY3RlZCIsIHBheWxvYWQpOwogICAgICAgIH0gZWxzZSB7CiAgICAgICAgICBfdGhpczUuJGVtaXQoInBhbi16b29tLWNhbGxiYWNrIiwgZGF0YSk7CiAgICAgICAgfQogICAgICB9OwogICAgfSwKICAgIC8vIGNoZWNrTmV1cm9uQ2xpY2tlZCBzaG93cyBhIG5ldXJvbiBwYXRoIHBvcCB1cCBpZiBhIHBhdGggd2FzIHJlY2VudGx5IGNsaWNrZWQKICAgIGNoZWNrQW5kQ3JlYXRlUG9wdXBzOiBmdW5jdGlvbiAoKSB7CiAgICAgIHZhciBfY2hlY2tBbmRDcmVhdGVQb3B1cHMgPSBfYXN5bmNUb0dlbmVyYXRvciggLyojX19QVVJFX18qL19yZWdlbmVyYXRvclJ1bnRpbWUoKS5tYXJrKGZ1bmN0aW9uIF9jYWxsZWUoZGF0YSkgewogICAgICAgIHZhciByZXN1bHRzOwogICAgICAgIHJldHVybiBfcmVnZW5lcmF0b3JSdW50aW1lKCkud3JhcChmdW5jdGlvbiBfY2FsbGVlJChfY29udGV4dCkgewogICAgICAgICAgd2hpbGUgKDEpIHN3aXRjaCAoX2NvbnRleHQucHJldiA9IF9jb250ZXh0Lm5leHQpIHsKICAgICAgICAgICAgY2FzZSAwOgogICAgICAgICAgICAgIF9jb250ZXh0Lm5leHQgPSAyOwogICAgICAgICAgICAgIHJldHVybiB0aGlzLmZsYXRtYXBRdWVyaWVzLnJldHJpZXZlRmxhdG1hcEtub3dsZWRnZUZvckV2ZW50KGRhdGEpOwogICAgICAgICAgICBjYXNlIDI6CiAgICAgICAgICAgICAgcmVzdWx0cyA9IF9jb250ZXh0LnNlbnQ7CiAgICAgICAgICAgICAgaWYgKCFyZXN1bHRzKSB7CiAgICAgICAgICAgICAgICBpZiAoZGF0YS5mZWF0dXJlLmh5cGVybGlua3MgJiYgZGF0YS5mZWF0dXJlLmh5cGVybGlua3MubGVuZ3RoID4gMCkgewogICAgICAgICAgICAgICAgICB0aGlzLnJlc291cmNlRm9yVG9vbHRpcCA9IGRhdGEucmVzb3VyY2VbMF07CiAgICAgICAgICAgICAgICAgIHRoaXMuY3JlYXR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25zID0gewogICAgICAgICAgICBjbGFzc05hbWU6ICJjdXN0b20tcG9wdXAiLAogICAgICAgICAgICBwb3NpdGlvbkF0TGFzdENsaWNrOiB0cnVlCiAgICAgICAgICB9OwogICAgICAgIH0KICAgICAgICB0aGlzLm1hcEltcC5zaG93UG9wdXAoZmVhdHVyZUlkLCBub2RlLCBteU9wdGlvbnMpOwogICAgICB9CiAgICB9LAogICAgc2hvd01hcmtlclBvcHVwOiBmdW5jdGlvbiBzaG93TWFya2VyUG9wdXAoZmVhdHVyZUlkLCBub2RlLCBvcHRpb25zKSB7CiAgICAgIGlmICh0aGlzLm1hcEltcCkgewogICAgICAgIHRoaXMubWFwSW1wLnNob3dNYXJrZXJQb3B1cChmZWF0dXJlSWQsIG5vZGUsIG9wdGlvbnMpOwogICAgICB9CiAgICB9LAogICAgY2xvc2VNaW5pbWFwOiBmdW5jdGlvbiBjbG9zZU1pbmltYXAoKSB7CiAgICAgIHZhciBtaW5pbWFwRWwgPSB0aGlzLiRyZWZzLmZsYXRtYXBDb250YWluZXIucXVlcnlTZWxlY3RvcignLm1hcGxpYnJlZ2wtY3RybC1taW5pbWFwJyk7IC8vIGZpbmQgbWluaW1hcAogICAgICBpZiAodGhpcy5taW5pbWFwU21hbGwpIHsKICAgICAgICAvL3N3aXRjaCB0aGUgY2xhc3NlcyBvbiB0aGUgbWluaW1hcAogICAgICAgIG1pbmltYXBFbC5jbGFzc0xpc3QuYWRkKCdlbmxhcmdlJyk7CiAgICAgICAgbWluaW1hcEVsLmNsYXNzTGlzdC5yZW1vdmUoJ3NocmluaycpOwogICAgICB9IGVsc2UgewogICAgICAgIG1pbmltYXBFbC5jbGFzc0xpc3QuYWRkKCdzaHJpbmsnKTsKICAgICAgICBtaW5pbWFwRWwuY2xhc3NMaXN0LnJlbW92ZSgnZW5sYXJnZScpOwogICAgICB9CiAgICAgIHRoaXMubWluaW1hcFNtYWxsID0gIXRoaXMubWluaW1hcFNtYWxsOwogICAgfSwKICAgIGFkZFJl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lcygpKSwKICAgICAgICAgIF9zdGVwOwogICAgICAgIHRyeSB7CiAgICAgICAgICBmb3IgKF9pdGVyYXRvci5zKCk7ICEoX3N0ZXAgPSBfaXRlcmF0b3IubigpKS5kb25lOykgewogICAgICAgICAgICB2YXIgdmFsdWUgPSBfc3RlcC52YWx1ZTsKICAgICAgICAgICAgaWYgKHZhbHVlLmxhYmVsKSBsYWJlbHMucHVzaCh2YWx1ZS5sYWJlbCk7CiAgICAgICAgICB9CiAgICAgICAgfSBjYXRjaCAoZXJyKSB7CiAgICAgICAgICBfaXRlcmF0b3IuZShlcnIpOwogICAgICAgIH0gZmluYWxseSB7CiAgICAgICAgICBfaXRlcmF0b3IuZigpOwogICAgICAgIH0KICAgICAgICByZXR1cm4gQXJyYXkuZnJvbShuZXcgU2V0KGxhYmVscykpOwogICAgICB9CiAgICB9LAogICAgZ2V0U3RhdGU6IGZ1bmN0aW9uIGdldFN0YXRlKCkgewogICAgICBpZiAodGhpcy5tYXBJbXApIHsKICAgICAgICB2YXIgc3RhdGUgPSB7CiAgICAgICAgICBlbnRyeTogdGhpcy5lbnRyeSwKICAgICAgICAgIHZpZXdwb3J0OiB0aGlzLm1hcEltcC5nZXRTdGF0ZSgpCiAgICAgICAgfTsKICAgICAgICB2YXIgaWRlbnRpZmllciA9IHRoaXMubWFwSW1wLmdldElkZW50aWZpZXIoKTsKICAgICAgICBpZiAodGhpcy5iaW9sb2dpY2FsU2V4KSBzdGF0ZVsnYmlvbG9naWNhbFNleCddID0gdGhpcy5iaW9sb2dpY2FsU2V4O2Vsc2UgaWYgKGlkZW50aWZpZXIgJiYgaWRlbnRpZmllci5iaW9sb2dpY2FsU2V4KSBzdGF0ZVsnYmlvbG9naWNhbFNleCddID0gaWRlbnRpZmllci5iaW9sb2dpY2FsU2V4OwogICAgICAgIGlmIChpZGVudGlmaWVyICYmIGlkZW50aWZpZXIudXVpZCkgc3RhdGVbJ3V1aWQnXSA9IGlkZW50aWZpZXIudXVpZDsKICAgICAg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gZWxzZSBpZiAoaWRlbnRpZmllci50YXhvbiA9PT0gIk5DQklUYXhvbjo5NjA2IikgewogICAgICAgICAgICAgIC8vRm9yIGJhY2t3YXJkIGNvbXBhdGliaWxpdHkKICAgICAgICAgICAgICBpZGVudGlmaWVyWyJiaW9sb2dpY2FsU2V4Il0gPSAiUEFUTzowMDAwMzg0IjsKICAgICAgICAgICAgfQogICAgICAgICAgfQogICAgICAgIH0gZWxzZSB7CiAgICAgICAgICAvLyBTZXQgdGhlIGJpb2xvaWNhbFNleCBub3cgaWYgbWFwIGlzIG5vdCByZXN1bWVkIGZyb20KICAgICAgICAgIC8vIGEgc2F2ZWQgc3RhdGUKICAgICAgICAgIGlmICh0aGlzLmJpb2xvZ2ljYWxTZXgpIHsKICAgICAgICAgICAgaWRlbnRpZmllclsiYmlvbG9naWNhbFNleCJdID0gdGhpcy5iaW9sb2dpY2FsU2V4OwogICAgICAgICAgfQogICAgICAgIH0KICAgICAgICB2YXIgcHJvbWlzZTEgPSB0aGlzLm1hcE1hbmFnZXIubG9hZE1hcChpZGVudGlmaWVyLCB0aGlzLiRyZWZzLmRpc3BsYXksIHRoaXMuZXZlbnRDYWxsYmFjaygpLCB7CiAgICAgICAgICAvL2Z1bGxzY3JlZW5Db250cm9sOiBmYWxzZSwKICAgICAgICAgIC8vYW5ub3RhdGFibGU6IGZhbHNlLAogICAgICAgICAgLy9kZWJ1ZzogdHJ1ZSwKICAgICAgICAgIGZlYXR1cmVJbmZvOiB0aGlzLmZlYXR1cmVJbmZvLAogICAgICAgICAgIm1pbi16b29tIjogdGhpcy5taW5ab29tLAogICAgICAgICAgbGF5ZXJDb250cm9sOiB0cnVlLAogICAgICAgICAgcGF0aENvbnRyb2xzOiB0cnVlLAogICAgICAgICAgc2VhcmNoYWJsZTogdGhpcy5zZWFyY2hhYmxlLAogICAgICAgICAgdG9vbHRpcHM6IHRoaXMudG9vbHRpcHMsCiAgICAgICAgICBtaW5pbWFwOiBtaW5pbWFwCiAgICAgICA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8KICAgIGZsYXRtYXBBUEk6IHsKICAgICAgdHlwZTogU3RyaW5nLAogICAgICBkZWZhdWx0OiAiaHR0cHM6Ly9tYXBjb3JlLWRlbW8ub3JnL2N1cnJlbnQvZmxhdG1hcC92My8iCiAgICB9LAogICAgc3BhcmNBUEk6IHsKICAgICAgdHlwZTogU3RyaW5nLAogICAgICBkZWZhdWx0OiAiaHR0cHM6Ly9hcGkuc3BhcmMuc2NpZW5jZS8iCiAgICB9CiAgfSwKICBwcm92aWRlOiBmdW5jdGlvbiBwcm92aWRlKCkgewogICAgcmV0dXJuIHsKICAgICAgc3BhcmNBUEk6IHRoaXMuc3BhcmNBUEksCiAgICAgIGZsYXRtYXBBUEk6IHRoaXMuZmxhdG1hcEFQSQogICAgfTsKICB9LAogIGRhdGE6IGZ1bmN0aW9uIGRhdGEoKSB7CiAgICByZXR1cm4gewogICAgICBsYXllcnM6IFtdLAogICAgICBwYXRod2F5czogW10sCiAgICAgIHNja2FuRGlzcGxheTogW3sKICAgICAgICBsYWJlbDogIkRpc3BsYXkgUGF0aCB3aXRoIFNDS0FOIiwKICAgICAgICBrZXk6ICJWQUxJRCIKICAgICAgfV0sCiAgICAgIGNlbnRyZUxpbmVzOiBbewogICAgICAgIGxhYmVsOiAiRGlzcGxheSBOZXJ2ZXMiLAogICAgICAgIGtleTogImNlbnRyZWxpbmVzIiwKICAgICAgICBlbmFibGVkOiBmYWxzZQogICAgICB9XSwKICAgICAgc3lzdGVtczogW10sCiAgICAgIHBhdGh3YXlzTWF4SGVpZ2h0OiAxMDAwLAogICAgICBob3ZlclZpc2liaWxpdGllczogW3sKICAgICAgICB2YWx1ZTogZmFsc2UKICAgICAgfSwgewogICAgICAgIHZhbHVlOiBmYWxzZQogICAgICB9LCB7CiAgICAgICAgdmFsdWU6IGZhbHNlCiAgICAgIH0sIHsKICAgICAgICB2YWx1ZTogZmFsc2UKICAgICAgfSwgewogICAgICAgIHZhbHVlOiBmYWxzZQogICAgICB9LCB7CiAgICAgIC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TdGF0ZShzdGF0ZSk7CiAgICAgICAgfSBlbHNlIHsKICAgICAgICAgIC8vdGhpcyBjb21wb25lbnQgaGFzIG5vdCBiZWVuIG1vdW50ZWQgeWV0CiAgICAgICAgICB0aGlzLnNldFN0YXRlUmVxdWlyZWQgPSB0cnVlOwogICAgICAgIH0KICAgICAgfSwKICAgICAgaW1tZWRpYXRlOiB0cnVlLAogICAgICBkZWVwOiB0cnVlCiAgICB9CiAgfSwKICBtb3VudGVkOiBmdW5jdGlvbiBtb3VudGVkKCkgewogICAgdmFyIGZsYXRtYXAgPSByZXF1aXJlKCJAYWJpLXNvZnR3YXJlL2ZsYXRtYXAtdmlld2VyIik7CiAgICB0aGlzLnRvb2x0aXBXYWl0ID0gW107CiAgICB0aGlzLnRvb2x0aXBXYWl0Lmxlbmd0aCA9IHRoaXMuaG92ZXJWaXNpYmlsaXRpZXMubGVuZ3RoOwogICAgdGhpcy5tYXBNYW5hZ2VyID0gbmV3IGZsYXRtYXAuTWFwTWFuYWdlcih0aGlzLmZsYXRtYXBBUEkpOwogICAgdGhpcy5mbGF0bWFwUXVlcmllcyA9IG5ldyBGbGF0bWFwUXVlcmllcygpOwogICAgdGhpcy5mbGF0bWFwUXVlcmllcy5pbml0aWFsaXNlKHRoaXMuc3BhcmNBUEksIHRoaXMuZmxhdG1hcEFQSSk7CiAgICBpZiAodGhpcy5zdGF0ZSkgewogICAgICAvL1N0YXRlIGlzIHNldCBhbmQgcmVxdWlyZSB0byBzZXQgdGhlIHN0YXRlCiAgICAgIGlmICh0aGlzLnNldFN0YXRlUmVxdWlyZWQpIHsKICAgICAgICB0aGlzLnNldFN0YXRlKHRoaXMuc3RhdGUpOwogICAgICB9CiAgICB9IGVsc2UgaWYgKHRoaXMucmVuZGVyQXRNb3VudGVkKSB7CiAgICAgIHRoaXMuY3JlYXRlRmxhdG1hcCgpOwogICAgfQogIH0KfTs="},{"version":3,"names":["Vue","Tooltip","SelectionsGroup","MapSvgIcon","MapSvgSpriteColor","SvgLegends","lang","locale","flatmapMarker","FlatmapQueries","use","_Col","_Loading","directive","_Radio","_RadioGroup","_Row","ResizeSensor","require","createUnfilledTooltipData","destinations","origins","components","destinationsWithDatasets","originsWithDatasets","componentsWithDatasets","resource","undefined","name","beforeCreate","mapManager","mapImp","setStateRequired","methods","viewLatestMap","biologicalSex","entry","state","viewport","getState","$emit","backgroundChangeCallback","colour","currentBackground","setBackgroundColour","toggleDrawer","drawerOpen","setColour","flag","colourRadio","outline","outlinesRadio","setOutlines","outlineRadio","resetView","resetMap","$refs","centrelinesSelection","reset","skcanSelection","layersSelection","systemsSelection","pathwaysSelection","zoomIn","zoomOut","centreLinesSelected","payload","enableCentrelines","value","sckanSelected","enableSckanPath","key","checkAllSCKAN","_this","keys","forEach","systemSelected","enableSystem","checkAllSystems","_this2","layersSelected","enableLayer","checkAllLayers","_this3","pathwaysSelected","enablePath","checkAllPathways","_this4","enablePanZoomEvents","eventCallback","_this5","eventType","data","label","models","taxonomy","_len","arguments","length","args","Array","_key","dataset","feature","userData","type","checkAndCreatePopups","_checkAndCreatePopups","_asyncToGenerator","_regeneratorRuntime","mark","_callee","results","wrap","_callee$","_context","prev","next","flatmapQueries","retrieveFlatmapKnowledgeForEvent","sent","hyperlinks","resourceForTooltip","createTooltipFromNeuronCuration","stop","_x","apply","popUpCssHacks","ftooltip","document","querySelector","style","display","tooltip","$el","onclick","resourceSelected","action","tooltipEntry","createTooltipData","displayTooltip","showPopup","featureId","node","options","myOptions","className","positionAtLastClick","showMarkerPopup","closeMinimap","minimapEl","flatmapContainer","minimapSmall","classList","add","remove","addResizeButtonToMinimap","minimapResize","parentNode","removeChild","appendChild","minimapResizeShow","setHelpMode","helpMode","inHelp","hoverVisibilities","item","openFlatmapHelpPopup","closeFlatmapHelpPopup","showToolitip","tooltipNumber","_this6","clearTimeout","tooltipWait","setTimeout","hideToolitip","_this7","modelFeatureIds","heartId","featureIdsForModel","elm","anchor","querySelectorAll","click","getLabels","labels","annotations","_iterator","_createForOfIteratorHelper","values","_step","s","n","done","push","err","e","f","from","Set","identifier","getIdentifier","uuid","setState","createFlatmap","restoreMapState","searchTerm","searchAndShowResult","_this8","loading","minimap","displayMinimap","position","taxon","promise1","loadMap","featureInfo","minZoom","layerControl","pathControls","searchable","tooltips","then","returnedObject","onFlatmapReady","_stateToBeSet","computePathControlsMaximumHeight","elem","computed","getComputedStyle","padding","parseInt","paddingTop","paddingBottom","height","clientHeight","pathwaysMaxHeight","mapResize","resize","showMinimap","_minimap","_unused","console","error","sensor","isFC","setBackgroundOpacity","pathways","pathTypes","systems","getSystems","showPathwaysDrawer","term","displayLabel","clearSearchResults","searchResults","search","showSearchResults","text","preserveSelection","searchSuggestions","props","String","default","Boolean","Number","renderAtMounted","displayWarning","isLegacy","displayLatestChanges","latestChangesMessage","Object","flatmapAPI","sparcAPI","provide","layers","sckanDisplay","centreLines","enabled","availableBackground","connectivityTooltipVisible","watch","val","handler","immediate","deep","mounted","flatmap","MapManager","initialise"],"sources":["node_modules/@abi-software/flatmapvuer/src/components/FlatmapVuer.vue"],"sourcesContent":["\n\n\n\n\n\n\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAuTA;AACA,OAAAA,GAAA;AACA,OAAAC,OAAA;AACA,OAAAC,eAAA;AACA,SAAAC,UAAA,EAAAC,iBAAA;AACA,OAAAC,UAAA;AAQA,OAAAC,IAAA;AACA,OAAAC,MAAA;AACA,OAAAC,aAAA;AACA,SAAAC,cAAA;AAEAF,MAAA,CAAAG,GAAA,CAAAJ,IAAA;AACAN,GAAA,CAAAU,GAAA,CAAAC,IAAA;AACAX,GAAA,CAAAU,GAAA,CAAAE,QAAA,CAAAC,SAAA;AACAb,GAAA,CAAAU,GAAA,CAAAI,MAAA;AACAd,GAAA,CAAAU,GAAA,CAAAK,WAAA;AACAf,GAAA,CAAAU,GAAA,CAAAM,IAAA;AACA,IAAAC,YAAA,GAAAC,OAAA;AAEA,IAAAC,yBAAA,YAAAA,0BAAA;EACA;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