graphdb-workbench 2.6.0-TR5 → 2.6.0-TR7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (336) hide show
  1. package/dist/{0.f4fcc968e70c194653cc.bundle.js → 0.57d3540baa17edfe5cb2.bundle.js} +3 -3
  2. package/dist/{1.f6b2c2ec9b9107e1c1cf.bundle.js → 1.e03c90bd5954ca9b5fa7.bundle.js} +1 -1
  3. package/dist/{10.c44204b49d3d0e5f3586.bundle.js → 10.fcb4c283ed0e3ff77b9d.bundle.js} +1 -1
  4. package/dist/{101.792180d52f193af73851.bundle.js → 101.da23dac24536f74b5815.bundle.js} +1 -1
  5. package/dist/{103.003c9437b133d7386cd7.bundle.js → 103.6edf5a9611097aac7b0e.bundle.js} +1 -1
  6. package/dist/{105.428cfae2e35622a09adf.bundle.js → 105.8e0d511b2790a2c7a1f5.bundle.js} +1 -1
  7. package/dist/{107.fa002346dc2cbf38babf.bundle.js → 107.7e47259d1a1e92cc684a.bundle.js} +1 -1
  8. package/dist/11.e99d653419379ecf1b23.bundle.js +1 -0
  9. package/dist/{115.da8f18c87690182f62c5.bundle.js → 115.47fe6316b11ce761e8d3.bundle.js} +1 -1
  10. package/dist/{118.a0d9a38b711fc3cca1d9.bundle.js → 118.ce4cb2610bcae2cec5b4.bundle.js} +1 -1
  11. package/dist/{119.3ce487d3b4dec3a1ebb8.bundle.js → 119.771db56d499dcdf1c953.bundle.js} +1 -1
  12. package/dist/{11.5146ccccd430bce59f6c.bundle.js → 12.30df13cd275e9db26d08.bundle.js} +1 -1
  13. package/dist/{120.6fdb7331e091c5302dee.bundle.js → 120.3be53a400b5e5d0b8bbf.bundle.js} +1 -1
  14. package/dist/{121.6cefbcbe44a75b392d7c.bundle.js → 121.4493eca5616735378bb8.bundle.js} +1 -1
  15. package/dist/{122.686f06c7faf8f8c98687.bundle.js → 122.d5d3e1f5e5c8f632795f.bundle.js} +1 -1
  16. package/dist/{123.090530f002326e31c8da.bundle.js → 123.2610627b06c4276727b1.bundle.js} +1 -1
  17. package/dist/{124.39af3c3807a6213df250.bundle.js → 124.66c3ddc58390694a3a98.bundle.js} +1 -1
  18. package/dist/{125.09a453ee911c61c8e54f.bundle.js → 125.48215e946747137bf6c8.bundle.js} +1 -1
  19. package/dist/{126.3901e90cabc9fb6acd34.bundle.js → 126.119b23fe77d130cd15f2.bundle.js} +1 -1
  20. package/dist/{127.14af0104bc8eae5212a2.bundle.js → 127.8e57d1e19372e120aeba.bundle.js} +1 -1
  21. package/dist/{128.e6ad312fda9b1b008710.bundle.js → 128.96d9076518cacd42230d.bundle.js} +1 -1
  22. package/dist/{129.7be822ff3836c4a96b0f.bundle.js → 129.c8071eddb4e6ac450d14.bundle.js} +1 -1
  23. package/dist/{12.82edcf128bb2f847631a.bundle.js → 13.a8f91fd9198a469d445a.bundle.js} +1 -1
  24. package/dist/{130.b250969d9d357c414621.bundle.js → 130.4ef543acc845d7dfcc8d.bundle.js} +1 -1
  25. package/dist/131.e1a244126c43896cd7fe.bundle.js +1 -1
  26. package/dist/{132.c1194125bd174cd122f5.bundle.js → 132.3666a6511534abe54b6a.bundle.js} +1 -1
  27. package/dist/{133.e61d8e31a67b49babe8b.bundle.js → 133.cb22542677a1fde54231.bundle.js} +1 -1
  28. package/dist/{134.dbea969fb0ca97de78f5.bundle.js → 134.16abd209e3e07d89821b.bundle.js} +1 -1
  29. package/dist/{136.4a6162173a6064187640.bundle.js → 136.81439d8a1b2d7dfed6c7.bundle.js} +1 -1
  30. package/dist/{137.11ff15965cf2defde320.bundle.js → 137.ae6fae38c2b6fd89a566.bundle.js} +1 -1
  31. package/dist/{138.437038b4545aa84b0aea.bundle.js → 138.07fa96b665a491f213fc.bundle.js} +1 -1
  32. package/dist/{139.5108f259eef19522531c.bundle.js → 139.dc143faed80495c85bc3.bundle.js} +1 -1
  33. package/dist/{13.6e2d206f55eeb2c58b2b.bundle.js → 14.f2d6ffd1bd5125113712.bundle.js} +1 -1
  34. package/dist/{140.9da60ef8e6d66eebce65.bundle.js → 140.94d586ec81d9e3063c4f.bundle.js} +1 -1
  35. package/dist/{141.e848b82fc32897030166.bundle.js → 141.46aad99634d1bfe2b58a.bundle.js} +1 -1
  36. package/dist/{142.de1bd90ba51a07cb0770.bundle.js → 142.d2aaa85171c7449f2f85.bundle.js} +1 -1
  37. package/dist/{143.ab39264dcb27d84ba342.bundle.js → 143.802e7b37a5e69e8637a2.bundle.js} +1 -1
  38. package/dist/{144.1af28455b7f88263d094.bundle.js → 144.5f21450a9ba89abcb82f.bundle.js} +1 -1
  39. package/dist/{145.b2532f7224ac73a6f85b.bundle.js → 145.645969658a10c86c9ef2.bundle.js} +1 -1
  40. package/dist/{146.ddf0315d40625e7703c9.bundle.js → 146.da06a567fbb2421d8782.bundle.js} +1 -1
  41. package/dist/{147.f5015fb8107bcedc73e4.bundle.js → 147.31da28c0c793b6d4b3d9.bundle.js} +1 -1
  42. package/dist/{148.1f16c54079a0f3899b42.bundle.js → 148.6d7b7e06222ad071d0b4.bundle.js} +1 -1
  43. package/dist/149.e6ef25aca0b2356c2293.bundle.js +1 -0
  44. package/dist/{14.a0e40b38196775534ffd.bundle.js → 15.b7f9dea17c384ee4f501.bundle.js} +1 -1
  45. package/dist/{151.8c2a103d571efdb20406.bundle.js → 151.6352d1c723f9c08c2285.bundle.js} +1 -1
  46. package/dist/{152.d09e661c6885d0fd4db5.bundle.js → 152.0e861d13004eb057e32e.bundle.js} +1 -1
  47. package/dist/{153.c6c46e9cd2b75b8d2b59.bundle.js → 153.14519f8335c9c7e76492.bundle.js} +1 -1
  48. package/dist/{154.cc18596e631b221ed62e.bundle.js → 154.a4116ecb8a9036e69532.bundle.js} +1 -1
  49. package/dist/{155.d0a886e8e40917de6234.bundle.js → 155.c089ba425702a417c119.bundle.js} +1 -1
  50. package/dist/156.d6f702761bee674310b6.bundle.js +1 -0
  51. package/dist/{157.ee0613dff7135c3f2098.bundle.js → 157.aec7b9612e637437b517.bundle.js} +1 -1
  52. package/dist/{158.611a0eb34ab62473c484.bundle.js → 158.91fa1ebc27afd697c27f.bundle.js} +1 -1
  53. package/dist/{159.4ea4aa35775339504073.bundle.js → 159.035a1e31b7a3335ca885.bundle.js} +1 -1
  54. package/dist/{15.b1dc81c64646f2d3d0e5.bundle.js → 16.a91d31f0b9b876015299.bundle.js} +1 -1
  55. package/dist/{160.ac108cc51d02aac2fc8b.bundle.js → 160.772b960ac85fbfa35ee0.bundle.js} +1 -1
  56. package/dist/{161.57cef4573832d1320755.bundle.js → 161.7f9a2c46e4ceed3c1a1b.bundle.js} +1 -1
  57. package/dist/{164.9558c0ca0de60ee7b9b4.bundle.js → 164.746d5d3920914c734dad.bundle.js} +1 -1
  58. package/dist/{165.aca5b7165c2ed73cae5d.bundle.js → 165.27a6180d0f3d34f041ed.bundle.js} +1 -1
  59. package/dist/168.3e88b975a713f94e7d39.bundle.js +1 -0
  60. package/dist/17.f3951ee36cae3c2e59e2.bundle.js +3 -0
  61. package/dist/{170.12042b2adf9f1405e460.bundle.js → 170.4e527165141131f3fab5.bundle.js} +1 -1
  62. package/dist/{171.e0ac10b7480bb9441700.bundle.js → 171.dddfca13266402e1f383.bundle.js} +1 -1
  63. package/dist/{172.5c6bee523c00fb4daa15.bundle.js → 172.d614a13d7ddf1f24b035.bundle.js} +1 -1
  64. package/dist/{173.a83f9c43ab4bf61f4104.bundle.js → 173.17b872eb64767f4f0546.bundle.js} +1 -1
  65. package/dist/{174.480211e695062ce4252a.bundle.js → 174.bc53719a59976016e31e.bundle.js} +1 -1
  66. package/dist/{175.fff30d778760f6897bd4.bundle.js → 175.3b63253263f318574534.bundle.js} +1 -1
  67. package/dist/{176.ee5e5015df6aca9959a2.bundle.js → 176.3af968314539e2a18e7f.bundle.js} +1 -1
  68. package/dist/{177.cc5029975a445e4bfccc.bundle.js → 177.4b17d0269a1519575339.bundle.js} +1 -1
  69. package/dist/{178.edb53b573f3a6cd33493.bundle.js → 178.64d599a0c6df637717b4.bundle.js} +1 -1
  70. package/dist/18.ae49723fee4c6316d3a0.bundle.js +1 -0
  71. package/dist/180.93416941c0938f77058c.bundle.js +1 -0
  72. package/dist/{182.106ae65b17a3e9754926.bundle.js → 182.041784b0022a77256855.bundle.js} +1 -1
  73. package/dist/{183.01ecc1a7ce7eb7d9b974.bundle.js → 183.f5c5d51fb22c498fa505.bundle.js} +1 -1
  74. package/dist/{184.057f022b4011d7bed020.bundle.js → 184.e3f45487fb25f163475a.bundle.js} +1 -1
  75. package/dist/{185.466c659ef1965f2ef701.bundle.js → 185.4b8b11cf31d7fb573d19.bundle.js} +1 -1
  76. package/dist/{186.c04f46662785291b7e9d.bundle.js → 186.f75fd6491a001c966970.bundle.js} +1 -1
  77. package/dist/188.a2cfced84824c4dfe8a5.bundle.js +1 -0
  78. package/dist/{189.f1e5fc9741169924ff29.bundle.js → 189.8e5e3adedd441defe4c4.bundle.js} +1 -1
  79. package/dist/{18.e722865b04b652f8970e.bundle.js → 19.ecd29d95e3cb58e1be47.bundle.js} +1 -1
  80. package/dist/{190.dfaeddbcad8c0e001254.bundle.js → 190.66e3bdaa04b4decf2ba3.bundle.js} +1 -1
  81. package/dist/{191.f50da30e33eecd26c8b9.bundle.js → 191.9ef6c0f16573bdd9518d.bundle.js} +1 -1
  82. package/dist/{192.84ffbff6ec5459732bb2.bundle.js → 192.9ad3f67bf0b4fb24ddcf.bundle.js} +1 -1
  83. package/dist/193.536e27e756a0f3c43b78.bundle.js +1 -0
  84. package/dist/{196.94943b5752bc4046c421.bundle.js → 196.6d5d8cd75bca1a0b3dc7.bundle.js} +1 -1
  85. package/dist/{197.737429b676dad791bb61.bundle.js → 197.8ca96ca487a40fa840d8.bundle.js} +1 -1
  86. package/dist/{198.273667e3b4848f03aec4.bundle.js → 198.55aaef214f973f2fd765.bundle.js} +1 -1
  87. package/dist/{199.e42b2b8708b639977b6c.bundle.js → 199.78325ea1b608d918bace.bundle.js} +1 -1
  88. package/dist/{2.310db1ae6931f2dd9ca9.bundle.js → 2.3e6f434d5cdba922bb1d.bundle.js} +1 -1
  89. package/dist/{19.5d08deab5184853b6393.bundle.js → 20.5ca7e302158bd768359d.bundle.js} +1 -1
  90. package/dist/{200.5ccd58bcb786a3aa9db2.bundle.js → 200.3dd11bd82a04bd69210c.bundle.js} +1 -1
  91. package/dist/{202.5ddd817463478c082d5c.bundle.js → 202.68366d4b80b30a01bb64.bundle.js} +1 -1
  92. package/dist/{203.a253bb77cfbd200a8fe9.bundle.js → 203.32b1161ee403ee6a7a87.bundle.js} +1 -1
  93. package/dist/{205.a532ef8c828e60d01b4f.bundle.js → 205.32d53c454812ece54ad3.bundle.js} +1 -1
  94. package/dist/{206.831f119ddfcba90a2889.bundle.js → 206.b7693b489aab517013c0.bundle.js} +1 -1
  95. package/dist/{207.ca65da083199b31cc195.bundle.js → 207.90cd07e725f11e2955a9.bundle.js} +1 -1
  96. package/dist/{208.2163acbbc8b0aeb6584c.bundle.js → 208.c859bf3d849bb6a23309.bundle.js} +1 -1
  97. package/dist/{209.c8eecb8324f765952544.bundle.js → 209.71ae9f27360cea1fea35.bundle.js} +1 -1
  98. package/dist/{20.bde731dcca7f342acf68.bundle.js → 21.d5df29d93e8f06b119cd.bundle.js} +1 -1
  99. package/dist/210.ac3c6377ae376bb1af4b.bundle.js +1 -0
  100. package/dist/{210.a8c1addc746d89d73633.bundle.js → 211.0ec643f55b948a8f9f48.bundle.js} +1 -1
  101. package/dist/{211.e0f2b605b6a81a203458.bundle.js → 212.a4b953e7f5eb25d75fe7.bundle.js} +1 -1
  102. package/dist/{212.4da326611e6002c9c2a8.bundle.js → 213.a4bb72951f7027af40e7.bundle.js} +1 -1
  103. package/dist/{213.a8268f1f61b2176b92dd.bundle.js → 214.57cf0895f70c7c940ce5.bundle.js} +1 -1
  104. package/dist/{214.c1c2efc93995762c1ac4.bundle.js → 215.2715de57bc29ae12760a.bundle.js} +1 -1
  105. package/dist/{215.905b128ab98bd4521912.bundle.js → 216.481eecbf6ba93bcaf9cd.bundle.js} +1 -1
  106. package/dist/{216.c41fd749d42b7d65bc25.bundle.js → 217.38ab6d3450c36fe8104f.bundle.js} +1 -1
  107. package/dist/{217.27b22447a7ed0d57ca03.bundle.js → 218.060db62650e72ac409e6.bundle.js} +1 -1
  108. package/dist/{218.21b1a098906ba4f59b5b.bundle.js → 219.da0d3aa938ac7abd5fc4.bundle.js} +1 -1
  109. package/dist/{21.91e6246249804a16215b.bundle.js → 22.558319f1b7a334b4c6f7.bundle.js} +1 -1
  110. package/dist/{219.2fba636ee2c24dd370ab.bundle.js → 220.975a8d3d5bb4c9f98f03.bundle.js} +1 -1
  111. package/dist/{220.3e404fd2c0de6c12bc80.bundle.js → 221.db6ab18cac0e062988f2.bundle.js} +1 -1
  112. package/dist/{221.9a2787a1505b5188c589.bundle.js → 222.5ec7607217a3cb97b293.bundle.js} +1 -1
  113. package/dist/{222.b7946f33a448df025b38.bundle.js → 223.8518540ce17b71ee7d00.bundle.js} +1 -1
  114. package/dist/{223.50d9c9fd933c0ae8344a.bundle.js → 224.acc9afbc9e926356519a.bundle.js} +1 -1
  115. package/dist/{224.3cf5b67228a1bf323e7d.bundle.js → 225.ba9860341f9eba2c1f2d.bundle.js} +1 -1
  116. package/dist/226.0a305eb2e34c9d3fb3ce.bundle.js +1 -0
  117. package/dist/{226.a45e4111fc7719b70b30.bundle.js → 227.357506866df2e0ba1ae1.bundle.js} +1 -1
  118. package/dist/{227.0063ac22b03735d1c484.bundle.js → 228.21cb62126a898299b993.bundle.js} +1 -1
  119. package/dist/{228.34ff792425e1a94ef795.bundle.js → 229.227a956358ad27627e2c.bundle.js} +1 -1
  120. package/dist/{22.79d64e6a0014276afd25.bundle.js → 23.a73e0d554b13e8be6192.bundle.js} +1 -1
  121. package/dist/{229.2aaf7153eca94f924987.bundle.js → 230.215c4242d4a205df5b8e.bundle.js} +1 -1
  122. package/dist/{230.c167a3b5afe258c7eb5e.bundle.js → 231.fd7222ca89363294fe39.bundle.js} +1 -1
  123. package/dist/{231.d3e9131e097aff86d2c9.bundle.js → 232.a82bb60245703594146d.bundle.js} +1 -1
  124. package/dist/{232.1ff1ca7ec8d4e71c1e08.bundle.js → 233.04f3ef286087750260da.bundle.js} +1 -1
  125. package/dist/{233.9f0b45e9146094bf0ab5.bundle.js → 234.de1618094d091408fd6d.bundle.js} +1 -1
  126. package/dist/{234.1b006e1eccfae8deab58.bundle.js → 235.da3fa81ece977040e9ae.bundle.js} +1 -1
  127. package/dist/{235.874f99ec48b6fe3b0f42.bundle.js → 236.ec2ada8b5f2aec3204f5.bundle.js} +1 -1
  128. package/dist/{23.881396b18163b2bace23.bundle.js → 24.fb8fb91e17bebea57530.bundle.js} +1 -1
  129. package/dist/242.b5be51c553871ce3d83a.bundle.js +1 -0
  130. package/dist/{242.a2c83a62b7a9a948f580.bundle.js → 243.c56f69b8c7dd3a2be144.bundle.js} +1 -1
  131. package/dist/{243.ec935aaa1d2063278891.bundle.js → 244.d46b9193359e7de1daa3.bundle.js} +1 -1
  132. package/dist/{244.446031ee20e130f86bdd.bundle.js → 245.1ce3b6cc293a8c72b187.bundle.js} +1 -1
  133. package/dist/{245.7dca16b924adf8ecc6e5.bundle.js → 246.0cb817418790a596b441.bundle.js} +1 -1
  134. package/dist/{246.7238e0b73dbe1767f837.bundle.js → 247.71aeac059bcf9ed9b392.bundle.js} +1 -1
  135. package/dist/{247.f5076eb305cd4b4cf6a7.bundle.js → 248.94d8fea9b5ce15519623.bundle.js} +1 -1
  136. package/dist/{248.07fb03d85bc1cf09b1a4.bundle.js → 249.234cb407b6a647179cf2.bundle.js} +1 -1
  137. package/dist/{24.8822d2f08e25debdbcb9.bundle.js → 25.05618f7474a6e6d47ff2.bundle.js} +1 -1
  138. package/dist/{249.b6fcc2e80214b5180f67.bundle.js → 250.3ed03b7e55905888d992.bundle.js} +1 -1
  139. package/dist/{250.faaa5a64dc5e3e7b00e5.bundle.js → 251.efa949bd1ee44f4290ed.bundle.js} +1 -1
  140. package/dist/{251.87de84f5fdfd44c3d712.bundle.js → 252.5705d631c738e4d8e996.bundle.js} +1 -1
  141. package/dist/{252.c66fa9fc27496d3c2e62.bundle.js → 253.8752156b82db62eb4c92.bundle.js} +1 -1
  142. package/dist/{253.6181fab7ab394e2e743d.bundle.js → 254.986c95170a74cc76c5e5.bundle.js} +1 -1
  143. package/dist/{254.c84a792f00f4f70d6a46.bundle.js → 255.53ff457cdf06dc0de427.bundle.js} +1 -1
  144. package/dist/{255.74a4ae639e810e966f5f.bundle.js → 256.52e7acbbd3e7dde0df9f.bundle.js} +1 -1
  145. package/dist/257.1e51f84ae10ed1a8a23b.bundle.js +1 -0
  146. package/dist/{257.980dfb6a5918c59d6843.bundle.js → 258.db5554df6956ecfc7dec.bundle.js} +1 -1
  147. package/dist/{258.85cde4a85e59a91bc352.bundle.js → 259.2c88332b7f1b47935a47.bundle.js} +1 -1
  148. package/dist/{26.3da9878b094246494c5b.bundle.js → 26.4eeeb7afd51795af82d7.bundle.js} +1 -1
  149. package/dist/{259.104ce74ccc4acedd59e5.bundle.js → 260.d745422c537bdd9647bb.bundle.js} +1 -1
  150. package/dist/{260.64ddace970cd15fdad89.bundle.js → 261.7efff7f93f61f061f5ca.bundle.js} +1 -1
  151. package/dist/{261.4b8826aef8a67147f467.bundle.js → 262.3b9c687ab8c9b9282f5a.bundle.js} +1 -1
  152. package/dist/{262.6846a329ca45635aff03.bundle.js → 263.9c4ce329ffd095c5d1c6.bundle.js} +1 -1
  153. package/dist/{263.aa71db45a937bec12dd1.bundle.js → 264.0504ff98a1b50e9d2486.bundle.js} +1 -1
  154. package/dist/{264.74ff7008b3abc7720137.bundle.js → 265.a0af2676b1495c6231cc.bundle.js} +1 -1
  155. package/dist/{265.d1fcbddde417a81ca759.bundle.js → 266.31dcc9c203106832e08a.bundle.js} +1 -1
  156. package/dist/{266.e32d646f15dd0455c846.bundle.js → 267.3befe4deb9b75cd5d7ba.bundle.js} +1 -1
  157. package/dist/{267.db73af117a111b6283e4.bundle.js → 268.c7dc883261346f81be82.bundle.js} +1 -1
  158. package/dist/{268.852c72475991fcadac76.bundle.js → 269.aec62cb6b5fa398be182.bundle.js} +1 -1
  159. package/dist/{27.e3692a89fec5d18ac0a6.bundle.js → 27.e6c49ef111cabef46fd7.bundle.js} +1 -1
  160. package/dist/{269.601d4fc4300f4553d75c.bundle.js → 270.ac5c5d3247ad275e7009.bundle.js} +1 -1
  161. package/dist/{270.e9d338a5cf954fbc1f4c.bundle.js → 271.9a3928b874295c3742c9.bundle.js} +1 -1
  162. package/dist/{271.a88eeff63bbc87791af0.bundle.js → 272.1a054f1ad3341ea6a8bf.bundle.js} +1 -1
  163. package/dist/{272.ddacc590a66bdb0fa651.bundle.js → 273.a76e42437fb947cf800e.bundle.js} +1 -1
  164. package/dist/{273.d45db281162abbe864ae.bundle.js → 274.5c68c6d7373825aa4e86.bundle.js} +1 -1
  165. package/dist/{274.eca3da80ab4f0b4a3263.bundle.js → 275.e2dcae6396e8a69cfda6.bundle.js} +1 -1
  166. package/dist/{275.509ea766eda3bbcf1562.bundle.js → 276.7f9b39624632a68a5285.bundle.js} +1 -1
  167. package/dist/{276.f816f19aaa4522373a5f.bundle.js → 277.bfe0617252621ed4c42e.bundle.js} +1 -1
  168. package/dist/{277.6c6b5259fa26936adf41.bundle.js → 278.93d21415de115ff1f4ea.bundle.js} +1 -1
  169. package/dist/{278.bfc453e4fdb94806e6fc.bundle.js → 279.eae641def34a167d2281.bundle.js} +1 -1
  170. package/dist/{28.a1c16479ecde2830abc2.bundle.js → 28.9b2e80653eb69e4525ef.bundle.js} +1 -1
  171. package/dist/{279.660894fdbf2f0c17649a.bundle.js → 280.1df4667ec8bdeb6dfaea.bundle.js} +1 -1
  172. package/dist/{280.95394d461866b83c32b7.bundle.js → 281.53c031371f2bb364c04d.bundle.js} +1 -1
  173. package/dist/{281.fcaf9deb44f93c85ef68.bundle.js → 282.fe20f54cb2cbcce66407.bundle.js} +1 -1
  174. package/dist/{282.bede8a18d3e678b7895d.bundle.js → 283.207dc2ee5d4f42eb8843.bundle.js} +1 -1
  175. package/dist/{283.bf3ea5f6f6b8406e5401.bundle.js → 284.3f82d52f39f429a80a3d.bundle.js} +1 -1
  176. package/dist/{284.3f34606cfbcefb0a1a47.bundle.js → 285.001918dbfd9d06b076f5.bundle.js} +1 -1
  177. package/dist/{285.4e95ca9e283ddd26fcbf.bundle.js → 286.a942f86c8f772d2c5a97.bundle.js} +1 -1
  178. package/dist/{286.8c8f50e9844881f0b028.bundle.js → 287.494a03de1929e1d105ab.bundle.js} +1 -1
  179. package/dist/{287.23b580771ee0d5e65d41.bundle.js → 288.b2b166b7f54396a82703.bundle.js} +1 -1
  180. package/dist/{288.6cef162ec3cec3cde603.bundle.js → 289.7afbd014836c2b589df6.bundle.js} +1 -1
  181. package/dist/{29.6ed635488e6d980eb5bd.bundle.js → 29.a3413b59c038000244e5.bundle.js} +1 -1
  182. package/dist/{289.c47fa5cd7d5468dce45f.bundle.js → 290.8f09c520973805dc0b75.bundle.js} +1 -1
  183. package/dist/{290.b9baf8eed99b4447f086.bundle.js → 291.f74df165a765971f45f8.bundle.js} +1 -1
  184. package/dist/{291.1e7bf6b667f7698ac645.bundle.js → 292.c98a310d9505c88dbb03.bundle.js} +1 -1
  185. package/dist/{292.44bcf6642bd3fac703b4.bundle.js → 293.5927b1ccc8652a69f9f6.bundle.js} +1 -1
  186. package/dist/{293.184eb39d3229ef066269.bundle.js → 294.fa4adea2ba4209ed2948.bundle.js} +1 -1
  187. package/dist/{294.338c276decc123976f73.bundle.js → 295.101fa72149ab787e61be.bundle.js} +1 -1
  188. package/dist/{295.72eea8b2cf594acd85e6.bundle.js → 296.f771364da8206ec2bf47.bundle.js} +1 -1
  189. package/dist/{296.8f11a500bce671ed75db.bundle.js → 297.3860f145d5e36bd73827.bundle.js} +1 -1
  190. package/dist/{297.71b96380e1103cd792d9.bundle.js → 298.008ebf3a3821b3d63665.bundle.js} +1 -1
  191. package/dist/{298.39626a266f47903126bf.bundle.js → 299.ed41fda2bf4ed838a124.bundle.js} +1 -1
  192. package/dist/3.5b3776ce9f03e23885e4.bundle.js +1 -0
  193. package/dist/{30.44bca7542972f6b3dfdd.bundle.js → 30.b0601d9b2eb0378f357b.bundle.js} +1 -1
  194. package/dist/300.7182234269fde947567e.bundle.js +1 -0
  195. package/dist/301.2ec6cf72222278c83955.bundle.js +1 -0
  196. package/dist/{301.89817b62d8abddeb9ef6.bundle.js → 302.10346bda237ba9c799b7.bundle.js} +1 -1
  197. package/dist/{302.6e5d856b3a6452aad285.bundle.js → 303.859738ec0caf12df13cf.bundle.js} +1 -1
  198. package/dist/{303.cb8ce83eaeec1d60a91b.bundle.js → 304.cc77ddd04449a3441850.bundle.js} +1 -1
  199. package/dist/{304.44f9d85a298e4d2a96e4.bundle.js → 305.c75df156c0f68e0459c2.bundle.js} +1 -1
  200. package/dist/{31.3504d725fc47ccc4cf6e.bundle.js → 31.00357926a3dd506cfed4.bundle.js} +1 -1
  201. package/dist/{32.6e68fcd12b812d7ef110.bundle.js → 32.2dff690bb00caa029abd.bundle.js} +1 -1
  202. package/dist/{33.cfaee10812c318550e5f.bundle.js → 33.37ed81796994b7ed62c4.bundle.js} +1 -1
  203. package/dist/{35.1f0610f3ef68f5ae748b.bundle.js → 34.abf8789b45b8ea96ff18.bundle.js} +1 -1
  204. package/dist/{36.c95366030f375feebf58.bundle.js → 35.e25cce53f1c1db91b953.bundle.js} +2 -2
  205. package/dist/{37.8a72c5b02d9a8cea525d.bundle.js → 36.2c564976b0b096602ab8.bundle.js} +2 -2
  206. package/dist/{38.5e99f867ad78b753a9e3.bundle.js → 37.675f0007659d6dccbfb7.bundle.js} +1 -1
  207. package/dist/{39.de152b4cdf4a5c1b683e.bundle.js → 38.f34422a7ebc7fbd1a3d9.bundle.js} +1 -1
  208. package/dist/{40.eaffca0cb0ff48bcf1ad.bundle.js → 39.013faadc982d2e0d9336.bundle.js} +1 -1
  209. package/dist/{4.a9b9addabe299682e2db.bundle.js → 4.3ae49ec335f1df4b4021.bundle.js} +1 -1
  210. package/dist/{41.0f70e747c0ce2adeb892.bundle.js → 40.cef0c3d8ef5a88d4a6e8.bundle.js} +1 -1
  211. package/dist/{42.986eb41ddf5b20b3ed65.bundle.js → 41.69bf4dc04f2a78673ece.bundle.js} +1 -1
  212. package/dist/{44.4a453fec8635582957db.bundle.js → 42.cff7a32967655ea47a5d.bundle.js} +1 -1
  213. package/dist/{45.f882f7b2d642822a695b.bundle.js → 43.9d5fccb177630687a006.bundle.js} +1 -1
  214. package/dist/{46.b4c2ced99d40a6a0d7e8.bundle.js → 44.4557be8e879e9d9424d6.bundle.js} +1 -1
  215. package/dist/{47.c819440ce48f81103d6c.bundle.js → 45.ee8f8aae55544a60ac71.bundle.js} +1 -1
  216. package/dist/{48.787a854334d6be613e52.bundle.js → 46.65eadbfe8c59dc269d41.bundle.js} +1 -1
  217. package/dist/{49.b5e30b8eeb90887f40d9.bundle.js → 47.f9a994c85d53f6b9eb98.bundle.js} +1 -1
  218. package/dist/{50.a84c8678d3fb99d367a3.bundle.js → 48.736ef0fb5be450f7f88f.bundle.js} +1 -1
  219. package/dist/{51.9bf2eb5e9aee6e47dce8.bundle.js → 49.f7cdf694fb74c8356472.bundle.js} +1 -1
  220. package/dist/{5.6351f521493c43c63050.bundle.js → 5.dd3cfaf9a2a1592206f5.bundle.js} +1 -1
  221. package/dist/50.6f8fd26290d2e6983c3d.bundle.js +1 -0
  222. package/dist/51.36a5ca508d953a43df6d.bundle.js +1 -0
  223. package/dist/{53.65db41e3f5de23e93470.bundle.js → 52.0c98d51c1112e976cf19.bundle.js} +1 -1
  224. package/dist/{54.190cde911c86f6098c03.bundle.js → 53.4b5fe6ce05e0c783fe29.bundle.js} +1 -1
  225. package/dist/{55.a4e639a3cf8d6394f583.bundle.js → 54.aa3428ee30dd14e05d9f.bundle.js} +1 -1
  226. package/dist/{56.8b8304c9e1677c0609b4.bundle.js → 55.efa5ad31d67af2c744b2.bundle.js} +1 -1
  227. package/dist/{57.46d51e1b205cd2b954db.bundle.js → 56.ac94dd0ea4db2a581c35.bundle.js} +1 -1
  228. package/dist/{58.d93cd0394b7c824b6218.bundle.js → 57.9233b17159cc3c6945ef.bundle.js} +1 -1
  229. package/dist/{59.7d77aa2784e7e022be18.bundle.js → 58.8806cb9a47b2fc28bdfc.bundle.js} +1 -1
  230. package/dist/{60.616e268194e9d3ff78c9.bundle.js → 59.eb1a39fa936028cf3d6d.bundle.js} +1 -1
  231. package/dist/{6.26579c12647d6c6b883d.bundle.js → 6.9557b6506bf958c26a2a.bundle.js} +1 -1
  232. package/dist/{61.281713dbeef828f61ef4.bundle.js → 60.461c92385bbfc8190b68.bundle.js} +1 -1
  233. package/dist/61.f9061b24728ef92e2702.bundle.js +1 -0
  234. package/dist/{63.caedd750b8d925b3884f.bundle.js → 62.41d2c2ef3b10e249cc3d.bundle.js} +1 -1
  235. package/dist/{64.ce5e1880737a9009f455.bundle.js → 63.79ceab2871c4bf87e565.bundle.js} +1 -1
  236. package/dist/{65.f363b96aab81a9afcfeb.bundle.js → 64.e25269fafd7b80074f79.bundle.js} +1 -1
  237. package/dist/{66.886e9c833ac2a4285117.bundle.js → 65.274e72f7a969f86decfd.bundle.js} +1 -1
  238. package/dist/{67.58413e18a18b6c3491ab.bundle.js → 66.67b3d47091fe6530aa39.bundle.js} +1 -1
  239. package/dist/{68.e2c1f170e503742db62d.bundle.js → 67.e0f4b94ebc82fee55aca.bundle.js} +1 -1
  240. package/dist/{69.1cc712a030ba159a8eee.bundle.js → 68.1c621dfd5257b2c18e11.bundle.js} +1 -1
  241. package/dist/{70.fd6ce48c065f6d6ca1be.bundle.js → 69.1276f759153f8028a437.bundle.js} +1 -1
  242. package/dist/{7.c4d894cfc6de46836cf2.bundle.js → 7.215fb90676ad005678a5.bundle.js} +1 -1
  243. package/dist/{71.22d29a2c3b45cdb8db6b.bundle.js → 70.4d4e64191987cf37cdfa.bundle.js} +1 -1
  244. package/dist/{72.f37e9b32bb1b5bc8da00.bundle.js → 71.ba412850727546ca9e65.bundle.js} +1 -1
  245. package/dist/{73.3c5a92fc7f7b65c30f29.bundle.js → 72.38694f9e5cf82efcec93.bundle.js} +1 -1
  246. package/dist/{74.01483a71e6ea9d85d941.bundle.js → 73.6a1697ff88885fd26dc9.bundle.js} +1 -1
  247. package/dist/{75.02da7236184e532734be.bundle.js → 74.6fde68e288d8e4277ed6.bundle.js} +1 -1
  248. package/dist/{76.26c421b64edeff532469.bundle.js → 75.497bd1a7aea851d96296.bundle.js} +1 -1
  249. package/dist/{77.5e450bd5dac17c557330.bundle.js → 76.5e2b21f991515d0d19bf.bundle.js} +1 -1
  250. package/dist/{78.f1ee305cd48796bf2327.bundle.js → 77.90e14a1db3003d600a7f.bundle.js} +1 -1
  251. package/dist/{79.a659bc05ef4f5e52bc74.bundle.js → 78.4bbce98263e92664ab76.bundle.js} +1 -1
  252. package/dist/{80.ba4905a823602418c6e3.bundle.js → 79.57f1baf03c17fa5d4ecf.bundle.js} +1 -1
  253. package/dist/{8.93f30613ef312254f466.bundle.js → 8.31311bef7b4e3d07b172.bundle.js} +2 -2
  254. package/dist/{81.79228ba2adb69c088d21.bundle.js → 80.73b9a4e922936baa0574.bundle.js} +1 -1
  255. package/dist/{82.8fbc894bbfa93a7b6c1c.bundle.js → 81.22b0aca7b4f9137a0882.bundle.js} +1 -1
  256. package/dist/{83.ca9f674cbf261e5f4ce3.bundle.js → 82.4e90f4fa2c1642a82980.bundle.js} +1 -1
  257. package/dist/{84.88096c1b72d7ca7bdc19.bundle.js → 83.3dbe889b4ba264a9d674.bundle.js} +1 -1
  258. package/dist/84.833096ee7ee9d0b926e2.bundle.js +1 -0
  259. package/dist/85.172aa928154b446a004e.bundle.js +1 -0
  260. package/dist/{86.b7b440c2cec1ac557ea5.bundle.js → 86.b6a6584bb48c2eba7793.bundle.js} +1 -1
  261. package/dist/{87.83e65e9bd76636e8fcad.bundle.js → 87.66c82919414d84bf1c91.bundle.js} +1 -1
  262. package/dist/{89.f42b3f3e6f247ac33ff4.bundle.js → 89.08dc723465581d17e18c.bundle.js} +1 -1
  263. package/dist/{9.650b41093cbc97c6006b.bundle.js → 9.bb8dc22bb967a40f67fe.bundle.js} +2 -2
  264. package/dist/{91.6d80239d631b9b2bd70a.bundle.js → 91.743cdf86c0680be894c9.bundle.js} +1 -1
  265. package/dist/{95.ccbed2fd78413d54aeb7.bundle.js → 95.522b5e309c1f6989ec42.bundle.js} +1 -1
  266. package/dist/{96.9023753a94677af0e080.bundle.js → 96.b8ea5582fc702c107cfd.bundle.js} +1 -1
  267. package/dist/{97.2489e66d7b5b0391668a.bundle.js → 97.f221163ec5e99caa0668.bundle.js} +1 -1
  268. package/dist/{99.fd4dc8155c4218dd9bcc.bundle.js → 99.c4df74a95a465a7bc7e6.bundle.js} +1 -1
  269. package/dist/{bundle.30b37ffb9d522622d0bc.bundle.js → bundle.e8a8019cba24aec4c600.bundle.js} +12 -12
  270. package/dist/css/aclmanagement.css +123 -9
  271. package/dist/css/autocomplete-select.css +4 -0
  272. package/dist/css/lib/ontotext-yasgui-web-component.css +30 -15
  273. package/dist/i18n/locale-en.json +14 -4
  274. package/dist/i18n/locale-fr.json +14 -4
  275. package/dist/index.html +3 -3
  276. package/dist/js/angular/core/directives/autocomplete/templates/autocomplete.html +17 -4
  277. package/dist/js/angular/core/directives/operations-statuses-monitor/templates/operations-statuses-monitor.html +1 -1
  278. package/dist/js/angular/core/directives/rdfresourcesearch/templates/rdfResourceSearchTemplate.html +1 -1
  279. package/dist/js/angular/core/directives/yasgui-component/templates/yasgui-component.html +1 -1
  280. package/dist/js/angular/security/templates/user.html +1 -1
  281. package/dist/license-checker.json +4 -4
  282. package/dist/{main.8a31457c9bdc47873cdb.bundle.js → main.d3e9ca1041e746ba3275.bundle.js} +1 -1
  283. package/dist/pages/aclmanagement.html +637 -152
  284. package/dist/pages/autocomplete.html +1 -1
  285. package/dist/pages/choose-repository-type.html +1 -1
  286. package/dist/pages/cluster-management/clusterInfo.html +3 -3
  287. package/dist/pages/create-index.html +1 -1
  288. package/dist/pages/dependencies.html +1 -1
  289. package/dist/pages/domainRangeInfo.html +2 -2
  290. package/dist/pages/edit.html +1 -1
  291. package/dist/pages/explore.html +1 -1
  292. package/dist/pages/export.html +1 -1
  293. package/dist/pages/find.html +1 -1
  294. package/dist/pages/graph-config/saveGraphConfig.html +8 -8
  295. package/dist/pages/graphs-visualizations.html +7 -7
  296. package/dist/pages/guides.html +1 -1
  297. package/dist/pages/import.html +1 -1
  298. package/dist/pages/jdbc-create.html +1 -1
  299. package/dist/pages/monitor/backup-and-restore.html +1 -1
  300. package/dist/pages/monitor/queries.html +1 -1
  301. package/dist/pages/monitor/resources.html +1 -1
  302. package/dist/pages/namespaces.html +2 -2
  303. package/dist/pages/plugins.html +1 -1
  304. package/dist/pages/rdfClassHierarchyInfo.html +7 -7
  305. package/dist/pages/rdfrank.html +2 -2
  306. package/dist/pages/repositories.html +1 -1
  307. package/dist/pages/repository.html +5 -2
  308. package/dist/pages/similarity-indexes.html +1 -1
  309. package/dist/pages/sparql-editor.html +1 -1
  310. package/dist/pages/sparql-template-create.html +1 -1
  311. package/dist/pages/webapi.html +2 -2
  312. package/dist/{polyfills-dom.3d9430ad652b8849d9c8.bundle.js → polyfills-dom.c264909e933fbc136d2e.bundle.js} +1 -1
  313. package/dist/res/swagger/index.html +27 -27
  314. package/dist/{vendor.b99c14aacda51a87af4d.bundle.js → vendor.32f2a17d79d66db88bba.bundle.js} +4 -4
  315. package/dist/{vendors~polyfills-core-js.b69971238bbfb20c3ced.bundle.js → vendors~polyfills-core-js.4c9bf30520de19c215c1.bundle.js} +1 -1
  316. package/package.json +2 -2
  317. package/dist/149.749f040e637533f1c56e.bundle.js +0 -1
  318. package/dist/156.822ac06fd98b7d14e225.bundle.js +0 -1
  319. package/dist/16.69f4c076536929ddfa4d.bundle.js +0 -3
  320. package/dist/168.0bdbe3c5b2a7c91f2ecc.bundle.js +0 -1
  321. package/dist/17.42cec21515e92c5da3a7.bundle.js +0 -1
  322. package/dist/180.211540b35144d1f99967.bundle.js +0 -1
  323. package/dist/188.9a863f8952509f7da785.bundle.js +0 -1
  324. package/dist/193.dff62fca1dd97dcfc260.bundle.js +0 -1
  325. package/dist/225.481f1e3baa059ba308c9.bundle.js +0 -1
  326. package/dist/241.eb2cb8e56ba2e0ee054e.bundle.js +0 -1
  327. package/dist/25.e4d9b6b6aca698dc1ab3.bundle.js +0 -1
  328. package/dist/256.50bc8b11522ae3f34c5f.bundle.js +0 -1
  329. package/dist/299.d3636e77b768f4300e8c.bundle.js +0 -1
  330. package/dist/3.e9d89e89ed8f5a79c176.bundle.js +0 -1
  331. package/dist/300.c9844b95b03ac7295e4f.bundle.js +0 -1
  332. package/dist/34.a049f74a31933696d9b8.bundle.js +0 -1
  333. package/dist/43.c1c0a4a418b5aeb23cfb.bundle.js +0 -1
  334. package/dist/52.830826c2b3751ebc8c42.bundle.js +0 -1
  335. package/dist/62.a8e3e16457644c59557f.bundle.js +0 -1
  336. package/dist/85.20c3ba417d087bfb99ad.bundle.js +0 -1
@@ -1 +1 @@
1
- (window.webpackJsonp=window.webpackJsonp||[]).push([[32,49,162,163,182,183,184],{106:function(e,i,t){"use strict";t.r(i),t.d(i,"SimilarityQueryType",(function(){return s}));const s={DATA:"DATA",SEARCH:"SEARCH",ANALOGICAL:"ANALOGICAL"}},183:function(e,i,t){"use strict";t.r(i),t.d(i,"SimilarityIndexInfo",(function(){return y}));var s=t(75),r=t(106),a=t(61);const n=new RegExp("^[a-zA-Z0-9-_]+$");class y{constructor(){this.similarityIndex=new s.SimilarityIndex,this.isNameExist=!1,this.invalidSelectQueryType=!1,this.invalidSelectQuery=!1,this.invalidSearchQueryType=!1,this.invalidSearchQuery=!1,this.invalidAnalogicalQueryType=!1,this.invalidAnalogicalQuery=!1,this.selectedQueryType=r.SimilarityQueryType.DATA,this.selectedYasguiRenderMode=a.RenderingMode.YASQE}setQuery(e,i){const t=i||this.selectedQueryType;r.SimilarityQueryType.DATA!==t?r.SimilarityQueryType.SEARCH!==t?r.SimilarityQueryType.ANALOGICAL===t&&(this.similarityIndex.analogicalQuery=e):this.similarityIndex.searchQuery=e:this.similarityIndex.selectQuery=e}getQuery(e){switch(e||this.selectedQueryType){case r.SimilarityQueryType.DATA:return this.similarityIndex.selectQuery;case r.SimilarityQueryType.SEARCH:return this.similarityIndex.searchQuery;case r.SimilarityQueryType.ANALOGICAL:return this.similarityIndex.analogicalQuery}}markInvalidQuery(e,i=!0){const t=e||this.selectedQueryType;r.SimilarityQueryType.DATA!==t?r.SimilarityQueryType.SEARCH!==t?r.SimilarityQueryType.ANALOGICAL===t&&(this.invalidAnalogicalQuery=i):this.invalidSearchQuery=i:this.invalidSelectQuery=i}markInvalidQueryType(e,i=!0){const t=e||this.selectedQueryType;r.SimilarityQueryType.DATA!==t?r.SimilarityQueryType.SEARCH!==t?r.SimilarityQueryType.ANALOGICAL===t&&(this.invalidAnalogicalQueryType=i):this.invalidSearchQueryType=i:this.invalidSelectQueryType=i}setSelectedQueryType(e){this.selectedQueryType=e}getSelectedQueryType(){return this.selectedQueryType}setSelectedYasguiRenderMode(e){this.selectedYasguiRenderMode=e}getSelectedYasguiRenderMode(){return this.selectedYasguiRenderMode}isDataQueryTypeSelected(){return r.SimilarityQueryType.DATA===this.selectedQueryType}isSearchQueryTypeSelected(){return r.SimilarityQueryType.SEARCH===this.selectedQueryType}isAnalogicalQueryTypeSelected(){return r.SimilarityQueryType.ANALOGICAL===this.selectedQueryType}isTextType(){return this.similarityIndex.isTextType()}isPredicationType(){return this.similarityIndex.isPredicationType()}isTextLiteralType(){return this.similarityIndex.isTextLiteralType()}hasName(){return!!this.similarityIndex.name}isNameValid(){return n.test(this.similarityIndex.name)}hasSelectQuery(){return!!this.similarityIndex.selectQuery}hasSearchQuery(){return!!this.similarityIndex.searchQuery}hasAnalogicalQuery(){return!!this.similarityIndex.analogicalQuery}isYasqeRenderMode(){return a.RenderingMode.YASQE===this.getSelectedYasguiRenderMode()}isYasrRenderMode(){return a.RenderingMode.YASR===this.getSelectedYasguiRenderMode()}getName(){return this.similarityIndex.name}setName(e){this.similarityIndex.name=e}setInputIndex(e){this.similarityIndex.inputIndex=e}getInputIndex(){return this.similarityIndex.inputIndex}setLiteralIndex(e=!1){this.similarityIndex.isLiteralIndex=e}getSimilarityIndex(){return this.similarityIndex}setStopList(e){this.similarityIndex.stopList=e}getStopList(){return this.similarityIndex.stopList}setAnalyzer(e="org.apache.lucene.analysis.en.EnglishAnalyzer"){this.similarityIndex.analyzer=e}getAnalyzer(){return this.similarityIndex.analyzer}setType(e){this.similarityIndex.type=e}getType(){return this.similarityIndex.type}setOptions(e){this.similarityIndex.options=e}getOptions(){return this.similarityIndex.options}getInference(){return this.similarityIndex.infer}getSameAs(){return this.similarityIndex.sameAs}}},61:function(e,i,t){"use strict";t.r(i),t.d(i,"RenderingMode",(function(){return s}));const s={YASGUI:"mode-yasgui",YASQE:"mode-yasqe",YASR:"mode-yasr"}},66:function(e,i,t){"use strict";t.r(i),t.d(i,"SimilarityIndexType",(function(){return s}));const s={TEXT:"text",TEXT_LITERAL:"textLiteral",PREDICATION:"predication",isTextType:e=>s.TEXT===e,isTextLiteralType:e=>s.TEXT_LITERAL===e,isPredicationType:e=>s.PREDICATION===e}},67:function(e,i,t){"use strict";t.r(i),t.d(i,"SimilarityIndexStatus",(function(){return s}));const s={CREATING:"CREATING",BUILDING:"BUILDING",BUILT:"BUILT",REBUILDING:"REBUILDING",OUTDATED:"OUTDATED",INTERRUPTED:"INTERRUPTED",OBSOLETE:"OBSOLETE",FAILED:"FAILED",isCreatingStatus:e=>s.CREATING===e,isBuildingStatus:e=>s.BUILDING===e,isBuiltStatus:e=>s.BUILT===e,isRebuildingStatus:e=>s.REBUILDING===e,isOutdatedStatus:e=>s.OUTDATED===e,isInterruptedStatus:e=>s.INTERRUPTED===e,isObsoleteStatus:e=>s.OBSOLETE===e,isFailedStatus:e=>s.FAILED===e}},75:function(e,i,t){"use strict";t.r(i),t.d(i,"SimilarityIndex",(function(){return a}));var s=t(66),r=t(67);class a{constructor(){this.analyzer="",this.infer=!0,this.options="",this.sameAs=!0,this.searchQuery="",this.selectQuery="",this.stopList=void 0,this.name="",this.type=s.SimilarityIndexType.TEXT,this.status=void 0,this.analogicalQuery=void 0,this.inputIndex=void 0,this.isLiteralIndex=""}isTextType(){return s.SimilarityIndexType.isTextType(this.type)}isTextLiteralType(){return s.SimilarityIndexType.isTextLiteralType(this.type)}isPredicationType(){return s.SimilarityIndexType.isPredicationType(this.type)}isCreatingStatus(){return r.SimilarityIndexStatus.isCreatingStatus(this.status)}isBuildingStatus(){return r.SimilarityIndexStatus.isBuildingStatus(this.status)}isBuiltStatus(){return r.SimilarityIndexStatus.isBuiltStatus(this.status)}isRebuildingStatus(){return r.SimilarityIndexStatus.isRebuildingStatus(this.status)}isOutdatedStatus(){return r.SimilarityIndexStatus.isOutdatedStatus(this.status)}isInterruptedStatus(){return r.SimilarityIndexStatus.isInterruptedStatus(this.status)}isObsoleteStatus(){return r.SimilarityIndexStatus.isObsoleteStatus(this.status)}isFailedStatus(){return r.SimilarityIndexStatus.isFailedStatus(this.status)}}}}]);
1
+ (window.webpackJsonp=window.webpackJsonp||[]).push([[32,47,162,163,182,183,184],{105:function(e,i,t){"use strict";t.r(i),t.d(i,"SimilarityQueryType",(function(){return s}));const s={DATA:"DATA",SEARCH:"SEARCH",ANALOGICAL:"ANALOGICAL"}},183:function(e,i,t){"use strict";t.r(i),t.d(i,"SimilarityIndexInfo",(function(){return y}));var s=t(74),r=t(105),a=t(61);const n=new RegExp("^[a-zA-Z0-9-_]+$");class y{constructor(){this.similarityIndex=new s.SimilarityIndex,this.isNameExist=!1,this.invalidSelectQueryType=!1,this.invalidSelectQuery=!1,this.invalidSearchQueryType=!1,this.invalidSearchQuery=!1,this.invalidAnalogicalQueryType=!1,this.invalidAnalogicalQuery=!1,this.selectedQueryType=r.SimilarityQueryType.DATA,this.selectedYasguiRenderMode=a.RenderingMode.YASQE}setQuery(e,i){const t=i||this.selectedQueryType;r.SimilarityQueryType.DATA!==t?r.SimilarityQueryType.SEARCH!==t?r.SimilarityQueryType.ANALOGICAL===t&&(this.similarityIndex.analogicalQuery=e):this.similarityIndex.searchQuery=e:this.similarityIndex.selectQuery=e}getQuery(e){switch(e||this.selectedQueryType){case r.SimilarityQueryType.DATA:return this.similarityIndex.selectQuery;case r.SimilarityQueryType.SEARCH:return this.similarityIndex.searchQuery;case r.SimilarityQueryType.ANALOGICAL:return this.similarityIndex.analogicalQuery}}markInvalidQuery(e,i=!0){const t=e||this.selectedQueryType;r.SimilarityQueryType.DATA!==t?r.SimilarityQueryType.SEARCH!==t?r.SimilarityQueryType.ANALOGICAL===t&&(this.invalidAnalogicalQuery=i):this.invalidSearchQuery=i:this.invalidSelectQuery=i}markInvalidQueryType(e,i=!0){const t=e||this.selectedQueryType;r.SimilarityQueryType.DATA!==t?r.SimilarityQueryType.SEARCH!==t?r.SimilarityQueryType.ANALOGICAL===t&&(this.invalidAnalogicalQueryType=i):this.invalidSearchQueryType=i:this.invalidSelectQueryType=i}setSelectedQueryType(e){this.selectedQueryType=e}getSelectedQueryType(){return this.selectedQueryType}setSelectedYasguiRenderMode(e){this.selectedYasguiRenderMode=e}getSelectedYasguiRenderMode(){return this.selectedYasguiRenderMode}isDataQueryTypeSelected(){return r.SimilarityQueryType.DATA===this.selectedQueryType}isSearchQueryTypeSelected(){return r.SimilarityQueryType.SEARCH===this.selectedQueryType}isAnalogicalQueryTypeSelected(){return r.SimilarityQueryType.ANALOGICAL===this.selectedQueryType}isTextType(){return this.similarityIndex.isTextType()}isPredicationType(){return this.similarityIndex.isPredicationType()}isTextLiteralType(){return this.similarityIndex.isTextLiteralType()}hasName(){return!!this.similarityIndex.name}isNameValid(){return n.test(this.similarityIndex.name)}hasSelectQuery(){return!!this.similarityIndex.selectQuery}hasSearchQuery(){return!!this.similarityIndex.searchQuery}hasAnalogicalQuery(){return!!this.similarityIndex.analogicalQuery}isYasqeRenderMode(){return a.RenderingMode.YASQE===this.getSelectedYasguiRenderMode()}isYasrRenderMode(){return a.RenderingMode.YASR===this.getSelectedYasguiRenderMode()}getName(){return this.similarityIndex.name}setName(e){this.similarityIndex.name=e}setInputIndex(e){this.similarityIndex.inputIndex=e}getInputIndex(){return this.similarityIndex.inputIndex}setLiteralIndex(e=!1){this.similarityIndex.isLiteralIndex=e}getSimilarityIndex(){return this.similarityIndex}setStopList(e){this.similarityIndex.stopList=e}getStopList(){return this.similarityIndex.stopList}setAnalyzer(e="org.apache.lucene.analysis.en.EnglishAnalyzer"){this.similarityIndex.analyzer=e}getAnalyzer(){return this.similarityIndex.analyzer}setType(e){this.similarityIndex.type=e}getType(){return this.similarityIndex.type}setOptions(e){this.similarityIndex.options=e}getOptions(){return this.similarityIndex.options}getInference(){return this.similarityIndex.infer}getSameAs(){return this.similarityIndex.sameAs}}},61:function(e,i,t){"use strict";t.r(i),t.d(i,"RenderingMode",(function(){return s}));const s={YASGUI:"mode-yasgui",YASQE:"mode-yasqe",YASR:"mode-yasr"}},67:function(e,i,t){"use strict";t.r(i),t.d(i,"SimilarityIndexType",(function(){return s}));const s={TEXT:"text",TEXT_LITERAL:"textLiteral",PREDICATION:"predication",isTextType:e=>s.TEXT===e,isTextLiteralType:e=>s.TEXT_LITERAL===e,isPredicationType:e=>s.PREDICATION===e}},68:function(e,i,t){"use strict";t.r(i),t.d(i,"SimilarityIndexStatus",(function(){return s}));const s={CREATING:"CREATING",BUILDING:"BUILDING",BUILT:"BUILT",REBUILDING:"REBUILDING",OUTDATED:"OUTDATED",INTERRUPTED:"INTERRUPTED",OBSOLETE:"OBSOLETE",FAILED:"FAILED",isCreatingStatus:e=>s.CREATING===e,isBuildingStatus:e=>s.BUILDING===e,isBuiltStatus:e=>s.BUILT===e,isRebuildingStatus:e=>s.REBUILDING===e,isOutdatedStatus:e=>s.OUTDATED===e,isInterruptedStatus:e=>s.INTERRUPTED===e,isObsoleteStatus:e=>s.OBSOLETE===e,isFailedStatus:e=>s.FAILED===e}},74:function(e,i,t){"use strict";t.r(i),t.d(i,"SimilarityIndex",(function(){return a}));var s=t(67),r=t(68);class a{constructor(){this.analyzer="",this.infer=!0,this.options="",this.sameAs=!0,this.searchQuery="",this.selectQuery="",this.stopList=void 0,this.name="",this.type=s.SimilarityIndexType.TEXT,this.status=void 0,this.analogicalQuery=void 0,this.inputIndex=void 0,this.isLiteralIndex=""}isTextType(){return s.SimilarityIndexType.isTextType(this.type)}isTextLiteralType(){return s.SimilarityIndexType.isTextLiteralType(this.type)}isPredicationType(){return s.SimilarityIndexType.isPredicationType(this.type)}isCreatingStatus(){return r.SimilarityIndexStatus.isCreatingStatus(this.status)}isBuildingStatus(){return r.SimilarityIndexStatus.isBuildingStatus(this.status)}isBuiltStatus(){return r.SimilarityIndexStatus.isBuiltStatus(this.status)}isRebuildingStatus(){return r.SimilarityIndexStatus.isRebuildingStatus(this.status)}isOutdatedStatus(){return r.SimilarityIndexStatus.isOutdatedStatus(this.status)}isInterruptedStatus(){return r.SimilarityIndexStatus.isInterruptedStatus(this.status)}isObsoleteStatus(){return r.SimilarityIndexStatus.isObsoleteStatus(this.status)}isFailedStatus(){return r.SimilarityIndexStatus.isFailedStatus(this.status)}}}}]);
@@ -1 +1 @@
1
- (window.webpackJsonp=window.webpackJsonp||[]).push([[33,69,185,186,219],{122:function(e,i,t){"use strict";t.r(i),t.d(i,"SimilarityResultType",(function(){return r}));const r={TERM_RESULT:"termResult",DOCUMENT_RESULT:"documentResult",ENTITY_RESULT:"entityResult"}},123:function(e,i,t){"use strict";t.r(i),t.d(i,"SimilaritySearch",(function(){return a}));var r=t(92);class a{constructor(){this.type=r.SimilaritySearchType.SEARCH_TERM,this.predicate="",this.termOrSubject=""}isSearchAnalogicalType(){return r.SimilaritySearchType.isSearchAnalogicalType(this.type)}isSearchTermType(){return r.SimilaritySearchType.isSearchTermType(this.type)}isSearchEntityType(){return r.SimilaritySearchType.isSearchEntityType(this.type)}isSearchEntityPredicateType(){return r.SimilaritySearchType.isSearchEntityPredicateType(this.type)}isSearchDocumentType(){return r.SimilaritySearchType.isSearchDocumentType(this.type)}}},194:function(e,i){angular.module("graphdb.framework.rest.similarity.service",[]).factory("SimilarityRestService",t),t.$inject=["$http","$repositories"];function t(e){return{getIndexes:function(){return e.get("rest/similarity")},getSearchQueries:function(){return e.get("rest/similarity/config")},rebuildIndex:function(e){return i("PUT",e.name,e.options,e.selectQuery,e.searchQuery,e.analogicalQuery,e.stopList,e.infer,e.sameAs,e.type)},deleteIndex:function(i){return e.delete("rest/similarity?name="+i.name)},createIndex:i,getSamples:function(){return e.get("rest/similarity/samples")},getQuery:function(i){return e.get("rest/similarity/query",{params:{name:i.indexName,options:i.indexOptions,stopList:i.indexStopList,selectQuery:i.query,infer:i.queryInference,sameAs:i.querySameAs,type:i.viewType,analyzer:i.indexAnalyzer}})},saveSearchQuery:function(i){return e({method:"put",url:"rest/similarity/search-query",data:i})}};function i(i,t,r,a,s,c,n,l,o,y,p){return e({method:i,url:"rest/similarity",noCancelOnRouteChange:!0,data:{name:t,options:r,selectQuery:a,stopList:n,infer:l,sameAs:o,type:y,analyzer:p,searchQuery:s,analogicalQuery:c}})}}},196:function(e,i,t){"use strict";t.r(i);var r=t(0),a=t(92),s=t(122),c=t(67),n=t(66),l=t(107),o=t(123),y=t(61);function p(e,i,t,p,u,d,S,m,h,T,g,x,I,R){const E="http://www.ontotext.com/graphdb/similarity/",A="http://www.ontotext.com/graphdb/similarity/psi/",b=A+"any";e.pluginName="similarity",e.pluginIsActive=!0,e.isLoading=!1,e.selectedSimilarityIndex=void 0,e.similarityIndexStatus=c.SimilarityIndexStatus,e.similarityIndexType=n.SimilarityIndexType,e.similaritySearchType=a.SimilaritySearchType,e.searchType=a.SimilaritySearchType.SEARCH_TERM,e.similarityResultType=s.SimilarityResultType,e.resultType=s.SimilarityResultType.TERM_RESULT,e.info=g,e.isGraphDBRepository=void 0,e.canEditRepo=e.canWriteActiveRepo(),e.loadSimilarityIndexesTimer=void 0,e.loadSimilarityIndexes=()=>{e.isGraphDBRepository&&e.pluginIsActive&&h.getIndexes().success(i=>e.similarityIndexes=Object(l.mapIndexesResponseToSimilarityIndex)(i)).error(e=>t.error(getError(e),I.instant("similarity.could.not.get.indexes.error")))},e.reloadSimilarityIndexes=()=>{e.loadSimilarityIndexes(),e.loadSimilarityIndexesTimer||(e.loadSimilarityIndexesTimer=i((function(){e.$broadcast("checkIsActive"),"false"!==$("#indexes-table").attr("aria-expanded")&&e.loadSimilarityIndexes()}),5e3))},e.goToSimilarityIndex=i=>{(i.isBuiltStatus()||i.isOutdatedStatus()||i.isRebuildingStatus())&&(e.empty=!0,e.selectedSimilarityIndex!==i&&(e.lastSearch=void 0,e.selectedSimilarityIndex=i),i.isTextType()?e.searchType=a.SimilaritySearchType.SEARCH_TERM:i.isPredicationType()&&(e.searchType=a.SimilaritySearchType.SEARCH_ENTITY),(i.isTextType()||i.isPredicationType())&&$("#indexes-table").collapse("hide"))},e.performSearch=(i,r,a,s,c)=>{e.isLoading=!0,N(a,r);const n=q(i,r,a,s,c);R.getQueryResult(p.getActiveRepository(),n,"application/x-sparqlstar-results+json, application/sparql-results+json;q=0.9, */*;q=0.8").then(e=>D(e)).catch(e=>t.error(getError(e.data),I.instant("similarity.get.resource.error"))).finally(()=>e.isLoading=!1)},e.viewSearchQuery=()=>{let i;i=e.lastSearch.isSearchAnalogicalType()?e.selectedSimilarityIndex.analogicalQuery?e.selectedSimilarityIndex.analogicalQuery:e.searchQueries.analogical:e.selectedSimilarityIndex.searchQuery?e.selectedSimilarityIndex.searchQuery:e.searchQueries[e.selectedSimilarityIndex.type];let t=[],r="";t=i.match(/[a-zA-Z0-9-]+:<http:\/\/www.ontotext.com\/graphdb\/similarity\/instance\/>/),r=null==t?"similarity-index":t[0].substring(0,t[0].indexOf(":"));const s=i.replace("?index",r+":"+e.selectedSimilarityIndex.name).replace("?query",e.lastSearch.termOrSubject).replace("?searchType",(e.selectedSimilarityIndex.isTextType()?":":"psi:")+(e.lastSearch.isSearchEntityPredicateType()?a.SimilaritySearchType.SEARCH_ENTITY:e.lastSearch.type)).replace("?resultType",e.selectedSimilarityIndex.isTextType()?":"+e.resultType:"psi:entityResult").replace("?parameters",Q(e.searchParameters?e.searchParameters:"")).replace("?psiPredicate",e.lastSearch.predicate?C(e.lastSearch.predicate):C(b)).replace("?givenSubject",C(e.analogicalSubject)).replace("?givenObject",C(e.analogicalObject)).replace("?searchSubject",C(e.searchSubject));m.open({templateUrl:"pages/viewQuery.html",controller:"ViewQueryCtrl",resolve:{query:()=>s}})},e.deleteSimilarityIndex=i=>{S.openSimpleModal({title:I.instant("common.confirm"),message:I.instant("similarity.delete.index.warning",{name:i.name}),warning:!0}).result.then((function(){h.deleteIndex(i).then(()=>e.loadSimilarityIndexes()).catch(e=>t.error(getError(e)))}))},e.viewCreateQuery=e=>{h.getQuery({indexName:e.name,indexOptions:e.options,query:e.selectQuery,indexStopList:e.stopList,queryInference:e.infer,querySameAs:e.sameAs,viewType:e.type,indexAnalyzer:e.analyzer}).success(e=>{m.open({templateUrl:"pages/viewQuery.html",controller:"ViewQueryCtrl",resolve:{query:()=>e}})})},e.rebuildIndex=i=>{i.searchQuery||(i.searchQuery=i.type?e.searchQueries[i.type]:e.searchQueries.text),S.openSimpleModal({title:I.instant("common.confirm"),message:Object(r.decodeHTML)(I.instant("similarity.rebuild.index.warning",{name:i.name})),warning:!0}).result.then(()=>{i.status=c.SimilarityIndexStatus.REBUILDING,h.rebuildIndex(i).catch(e=>t.error(getError(e)))})},e.setPluginIsActive=i=>{e.pluginIsActive=i},e.encodeURIComponent=e=>encodeURIComponent(e),e.copyToClipboardResult=e=>{S.openCopyToClipboardModal(e)},e.trimIRI=e=>_.trim(e,"<>"),e.updateSearchType=i=>{e.searchType=i},e.editSimilarityIndex=e=>{f(e)},e.cloneSimilataryIndex=e=>{f(e,!0)},e.setPsiSubject=i=>{e.psiSubject=i},e.setAnalogicalSubject=i=>{e.analogicalSubject=i},e.setAnalogicalObject=i=>{e.analogicalObject=i};const f=(e,i=!1)=>{const t={selectQuery:e.selectQuery,options:e.options,name:e.name,editSearchQuery:!i,infer:e.infer,sameAs:e.sameAs,stopList:e.stopList,type:e.type,analyzer:e.analyzer,searchQuery:e.searchQuery?e.searchQuery:"",analogicalQuery:e.analogicalQuery?e.analogicalQuery:""};d.path("similarity/index/create").search(t)},w=()=>{const i=e.getActiveRepository();i&&e.activeRepository!==i&&(e.canEditRepo=e.canWriteActiveRepo(),e.activeRepository=i,e.isGraphDBRepository=j(),e.isGraphDBRepository&&(u.isLicenseValid()&&e.reloadSimilarityIndexes(),v()))},v=()=>{h.getSearchQueries().success(i=>e.searchQueries=i).error(e=>t.error(getError(e),I.instant("similarity.could.not.get.search.queries.error")))},Q=e=>'"'+e+'"',C=e=>void 0===e||e.startsWith("<<")&&e.endsWith(">>")?e:"<"+e+">",j=()=>e.getActiveRepository()&&!e.isActiveRepoOntopType()&&!e.isActiveRepoFedXType(),O=[];O.push(e.$on("repositoryIsSet",w));e.$on("$destroy",()=>{L(),e.loadSimilarityIndexesTimer&&i.cancel(e.loadSimilarityIndexesTimer)});const L=()=>{O.forEach(e=>e())};O.push(e.$on("autocompleteStatus",()=>{u.isLicenseValid()&&(e.getAutocompletePromise=T.checkAutocompleteStatus())}));O.push(e.$watch("searchType",()=>{e.empty=!0}));const P=e.$watch(e.getActiveRepositoryObject,e=>{e&&(w(),P())}),q=(i,t,r,c,n)=>{const l={query:H(e.lastSearch.type),$index:C("http://www.ontotext.com/graphdb/similarity/instance/"+i.name),$query:e.lastSearch.termOrSubject,$searchType:C((e.selectedSimilarityIndex.isTextType()?E:A)+(a.SimilaritySearchType.isSearchEntityPredicateType(r)?a.SimilaritySearchType.SEARCH_ENTITY:r)),$resultType:C(e.selectedSimilarityIndex.isTextType()?E+c:A+s.SimilarityResultType.ENTITY_RESULT),$parameters:Q(n)};return a.SimilaritySearchType.isSearchEntityPredicateType(r)&&(l.$psiPredicate=e.lastSearch.predicate?C(e.lastSearch.predicate):C(b)),a.SimilaritySearchType.isSearchAnalogicalType(r)&&(e.searchSubject=t,l.$givenSubject=C(e.analogicalSubject),l.$givenObject=C(e.analogicalObject),l.$searchSubject=C(t)),l},N=(i,t)=>{e.lastSearch=new o.SimilaritySearch,e.lastSearch.type=i,a.SimilaritySearchType.isSearchEntityPredicateType(i)&&(e.lastSearch.predicate=t),e.lastSearch.termOrSubject=M(e.lastSearch.type,t,e.psiSubject)},H=i=>{let t;return t=a.SimilaritySearchType.isSearchAnalogicalType(i)?e.selectedSimilarityIndex.analogicalQuery?e.selectedSimilarityIndex.analogicalQuery:e.searchQueries.analogical:e.selectedSimilarityIndex.searchQuery?e.selectedSimilarityIndex.searchQuery:e.searchQueries[e.selectedSimilarityIndex.type],t},M=(e,i,t)=>{let r=i;return r=a.SimilaritySearchType.isSearchEntityPredicateType(e)?t:a.SimilaritySearchType.isSearchTermType(e)?Q(r):C(r),r},D=i=>{e.yasguiConfig={showEditorTabs:!1,showToolbar:!1,showResultTabs:!1,showQueryButton:!1,downloadAsOn:!1,showResultInfo:!1,componentId:"similarity-list-component",maxPersistentResponseSize:0,render:y.RenderingMode.YASR,sparqlResponse:i.data}}}angular.module("graphdb.framework.similarity.controllers.list",[]).controller("SimilarityCtrl",p),p.$inject=["$scope","$interval","toastr","$repositories","$licenseService","$location","ModalService","$uibModal","SimilarityRestService","AutocompleteRestService","productInfo","RDF4JRepositoriesRestService","$translate","SparqlRestService"]},278:function(e,i,t){"use strict";t.r(i);t(7),t(24),t(30),t(194),t(196),t(203),t(80);angular.module("graphdb.framework.similarity",["graphdb.framework.core.controllers","graphdb.framework.core.directives","graphdb.framework.rest.similarity.service","graphdb.framework.similarity.controllers.create","graphdb.framework.similarity.controllers.list","graphdb.framework.core.directives.yasgui-component"])},92:function(e,i,t){"use strict";t.r(i),t.d(i,"SimilaritySearchType",(function(){return r}));const r={SEARCH_TERM:"searchTerm",SEARCH_ANALOGICAL:"searchAnalogical",SEARCH_ENTITY:"searchEntity",SEARCH_ENTITY_PREDICATE:"searchEntityPredicate",SEARCH_DOCUMENT:"searchDocumentID",isSearchTermType:e=>r.SEARCH_TERM===e,isSearchAnalogicalType:e=>r.SEARCH_ANALOGICAL===e,isSearchEntityType:e=>r.SEARCH_ENTITY===e,isSearchEntityPredicateType:e=>r.SEARCH_ENTITY_PREDICATE===e,isSearchDocumentType:e=>r.SEARCH_DOCUMENT===e}}}]);
1
+ (window.webpackJsonp=window.webpackJsonp||[]).push([[33,68,185,186,220],{120:function(e,i,t){"use strict";t.r(i),t.d(i,"SimilarityResultType",(function(){return r}));const r={TERM_RESULT:"termResult",DOCUMENT_RESULT:"documentResult",ENTITY_RESULT:"entityResult"}},121:function(e,i,t){"use strict";t.r(i),t.d(i,"SimilaritySearch",(function(){return a}));var r=t(90);class a{constructor(){this.type=r.SimilaritySearchType.SEARCH_TERM,this.predicate="",this.termOrSubject=""}isSearchAnalogicalType(){return r.SimilaritySearchType.isSearchAnalogicalType(this.type)}isSearchTermType(){return r.SimilaritySearchType.isSearchTermType(this.type)}isSearchEntityType(){return r.SimilaritySearchType.isSearchEntityType(this.type)}isSearchEntityPredicateType(){return r.SimilaritySearchType.isSearchEntityPredicateType(this.type)}isSearchDocumentType(){return r.SimilaritySearchType.isSearchDocumentType(this.type)}}},194:function(e,i){angular.module("graphdb.framework.rest.similarity.service",[]).factory("SimilarityRestService",t),t.$inject=["$http","$repositories"];function t(e){return{getIndexes:function(){return e.get("rest/similarity")},getSearchQueries:function(){return e.get("rest/similarity/config")},rebuildIndex:function(e){return i("PUT",e.name,e.options,e.selectQuery,e.searchQuery,e.analogicalQuery,e.stopList,e.infer,e.sameAs,e.type)},deleteIndex:function(i){return e.delete("rest/similarity?name="+i.name)},createIndex:i,getSamples:function(){return e.get("rest/similarity/samples")},getQuery:function(i){return e.get("rest/similarity/query",{params:{name:i.indexName,options:i.indexOptions,stopList:i.indexStopList,selectQuery:i.query,infer:i.queryInference,sameAs:i.querySameAs,type:i.viewType,analyzer:i.indexAnalyzer}})},saveSearchQuery:function(i){return e({method:"put",url:"rest/similarity/search-query",data:i})}};function i(i,t,r,a,s,c,n,l,o,y,p){return e({method:i,url:"rest/similarity",noCancelOnRouteChange:!0,data:{name:t,options:r,selectQuery:a,stopList:n,infer:l,sameAs:o,type:y,analyzer:p,searchQuery:s,analogicalQuery:c}})}}},196:function(e,i,t){"use strict";t.r(i);var r=t(0),a=t(90),s=t(120),c=t(68),n=t(67),l=t(106),o=t(121),y=t(61);function p(e,i,t,p,u,d,S,m,h,T,g,x,I,R){const E="http://www.ontotext.com/graphdb/similarity/",A="http://www.ontotext.com/graphdb/similarity/psi/",b=A+"any";e.pluginName="similarity",e.pluginIsActive=!0,e.isLoading=!1,e.selectedSimilarityIndex=void 0,e.similarityIndexStatus=c.SimilarityIndexStatus,e.similarityIndexType=n.SimilarityIndexType,e.similaritySearchType=a.SimilaritySearchType,e.searchType=a.SimilaritySearchType.SEARCH_TERM,e.similarityResultType=s.SimilarityResultType,e.resultType=s.SimilarityResultType.TERM_RESULT,e.info=g,e.isGraphDBRepository=void 0,e.canEditRepo=e.canWriteActiveRepo(),e.loadSimilarityIndexesTimer=void 0,e.loadSimilarityIndexes=()=>{e.isGraphDBRepository&&e.pluginIsActive&&h.getIndexes().success(i=>e.similarityIndexes=Object(l.mapIndexesResponseToSimilarityIndex)(i)).error(e=>t.error(getError(e),I.instant("similarity.could.not.get.indexes.error")))},e.reloadSimilarityIndexes=()=>{e.loadSimilarityIndexes(),e.loadSimilarityIndexesTimer||(e.loadSimilarityIndexesTimer=i((function(){e.$broadcast("checkIsActive"),"false"!==$("#indexes-table").attr("aria-expanded")&&e.loadSimilarityIndexes()}),5e3))},e.goToSimilarityIndex=i=>{(i.isBuiltStatus()||i.isOutdatedStatus()||i.isRebuildingStatus())&&(e.empty=!0,e.selectedSimilarityIndex!==i&&(e.lastSearch=void 0,e.selectedSimilarityIndex=i),i.isTextType()?e.searchType=a.SimilaritySearchType.SEARCH_TERM:i.isPredicationType()&&(e.searchType=a.SimilaritySearchType.SEARCH_ENTITY),(i.isTextType()||i.isPredicationType())&&$("#indexes-table").collapse("hide"))},e.performSearch=(i,r,a,s,c)=>{e.isLoading=!0,N(a,r);const n=q(i,r,a,s,c);R.getQueryResult(p.getActiveRepository(),n,"application/x-sparqlstar-results+json, application/sparql-results+json;q=0.9, */*;q=0.8").then(e=>D(e)).catch(e=>t.error(getError(e.data),I.instant("similarity.get.resource.error"))).finally(()=>e.isLoading=!1)},e.viewSearchQuery=()=>{let i;i=e.lastSearch.isSearchAnalogicalType()?e.selectedSimilarityIndex.analogicalQuery?e.selectedSimilarityIndex.analogicalQuery:e.searchQueries.analogical:e.selectedSimilarityIndex.searchQuery?e.selectedSimilarityIndex.searchQuery:e.searchQueries[e.selectedSimilarityIndex.type];let t=[],r="";t=i.match(/[a-zA-Z0-9-]+:<http:\/\/www.ontotext.com\/graphdb\/similarity\/instance\/>/),r=null==t?"similarity-index":t[0].substring(0,t[0].indexOf(":"));const s=i.replace("?index",r+":"+e.selectedSimilarityIndex.name).replace("?query",e.lastSearch.termOrSubject).replace("?searchType",(e.selectedSimilarityIndex.isTextType()?":":"psi:")+(e.lastSearch.isSearchEntityPredicateType()?a.SimilaritySearchType.SEARCH_ENTITY:e.lastSearch.type)).replace("?resultType",e.selectedSimilarityIndex.isTextType()?":"+e.resultType:"psi:entityResult").replace("?parameters",Q(e.searchParameters?e.searchParameters:"")).replace("?psiPredicate",e.lastSearch.predicate?C(e.lastSearch.predicate):C(b)).replace("?givenSubject",C(e.analogicalSubject)).replace("?givenObject",C(e.analogicalObject)).replace("?searchSubject",C(e.searchSubject));m.open({templateUrl:"pages/viewQuery.html",controller:"ViewQueryCtrl",resolve:{query:()=>s}})},e.deleteSimilarityIndex=i=>{S.openSimpleModal({title:I.instant("common.confirm"),message:I.instant("similarity.delete.index.warning",{name:i.name}),warning:!0}).result.then((function(){h.deleteIndex(i).then(()=>e.loadSimilarityIndexes()).catch(e=>t.error(getError(e)))}))},e.viewCreateQuery=e=>{h.getQuery({indexName:e.name,indexOptions:e.options,query:e.selectQuery,indexStopList:e.stopList,queryInference:e.infer,querySameAs:e.sameAs,viewType:e.type,indexAnalyzer:e.analyzer}).success(e=>{m.open({templateUrl:"pages/viewQuery.html",controller:"ViewQueryCtrl",resolve:{query:()=>e}})})},e.rebuildIndex=i=>{i.searchQuery||(i.searchQuery=i.type?e.searchQueries[i.type]:e.searchQueries.text),S.openSimpleModal({title:I.instant("common.confirm"),message:Object(r.decodeHTML)(I.instant("similarity.rebuild.index.warning",{name:i.name})),warning:!0}).result.then(()=>{i.status=c.SimilarityIndexStatus.REBUILDING,h.rebuildIndex(i).catch(e=>t.error(getError(e)))})},e.setPluginIsActive=i=>{e.pluginIsActive=i},e.encodeURIComponent=e=>encodeURIComponent(e),e.copyToClipboardResult=e=>{S.openCopyToClipboardModal(e)},e.trimIRI=e=>_.trim(e,"<>"),e.updateSearchType=i=>{e.searchType=i},e.editSimilarityIndex=e=>{f(e)},e.cloneSimilataryIndex=e=>{f(e,!0)},e.setPsiSubject=i=>{e.psiSubject=i},e.setAnalogicalSubject=i=>{e.analogicalSubject=i},e.setAnalogicalObject=i=>{e.analogicalObject=i};const f=(e,i=!1)=>{const t={selectQuery:e.selectQuery,options:e.options,name:e.name,editSearchQuery:!i,infer:e.infer,sameAs:e.sameAs,stopList:e.stopList,type:e.type,analyzer:e.analyzer,searchQuery:e.searchQuery?e.searchQuery:"",analogicalQuery:e.analogicalQuery?e.analogicalQuery:""};d.path("similarity/index/create").search(t)},w=()=>{const i=e.getActiveRepository();i&&e.activeRepository!==i&&(e.canEditRepo=e.canWriteActiveRepo(),e.activeRepository=i,e.isGraphDBRepository=j(),e.isGraphDBRepository&&(u.isLicenseValid()&&e.reloadSimilarityIndexes(),v()))},v=()=>{h.getSearchQueries().success(i=>e.searchQueries=i).error(e=>t.error(getError(e),I.instant("similarity.could.not.get.search.queries.error")))},Q=e=>'"'+e+'"',C=e=>void 0===e||e.startsWith("<<")&&e.endsWith(">>")?e:"<"+e+">",j=()=>e.getActiveRepository()&&!e.isActiveRepoOntopType()&&!e.isActiveRepoFedXType(),O=[];O.push(e.$on("repositoryIsSet",w));e.$on("$destroy",()=>{L(),e.loadSimilarityIndexesTimer&&i.cancel(e.loadSimilarityIndexesTimer)});const L=()=>{O.forEach(e=>e())};O.push(e.$on("autocompleteStatus",()=>{u.isLicenseValid()&&(e.getAutocompletePromise=T.checkAutocompleteStatus())}));O.push(e.$watch("searchType",()=>{e.empty=!0}));const P=e.$watch(e.getActiveRepositoryObject,e=>{e&&(w(),P())}),q=(i,t,r,c,n)=>{const l={query:H(e.lastSearch.type),$index:C("http://www.ontotext.com/graphdb/similarity/instance/"+i.name),$query:e.lastSearch.termOrSubject,$searchType:C((e.selectedSimilarityIndex.isTextType()?E:A)+(a.SimilaritySearchType.isSearchEntityPredicateType(r)?a.SimilaritySearchType.SEARCH_ENTITY:r)),$resultType:C(e.selectedSimilarityIndex.isTextType()?E+c:A+s.SimilarityResultType.ENTITY_RESULT),$parameters:Q(n)};return a.SimilaritySearchType.isSearchEntityPredicateType(r)&&(l.$psiPredicate=e.lastSearch.predicate?C(e.lastSearch.predicate):C(b)),a.SimilaritySearchType.isSearchAnalogicalType(r)&&(e.searchSubject=t,l.$givenSubject=C(e.analogicalSubject),l.$givenObject=C(e.analogicalObject),l.$searchSubject=C(t)),l},N=(i,t)=>{e.lastSearch=new o.SimilaritySearch,e.lastSearch.type=i,a.SimilaritySearchType.isSearchEntityPredicateType(i)&&(e.lastSearch.predicate=t),e.lastSearch.termOrSubject=M(e.lastSearch.type,t,e.psiSubject)},H=i=>{let t;return t=a.SimilaritySearchType.isSearchAnalogicalType(i)?e.selectedSimilarityIndex.analogicalQuery?e.selectedSimilarityIndex.analogicalQuery:e.searchQueries.analogical:e.selectedSimilarityIndex.searchQuery?e.selectedSimilarityIndex.searchQuery:e.searchQueries[e.selectedSimilarityIndex.type],t},M=(e,i,t)=>{let r=i;return r=a.SimilaritySearchType.isSearchEntityPredicateType(e)?t:a.SimilaritySearchType.isSearchTermType(e)?Q(r):C(r),r},D=i=>{e.yasguiConfig={showEditorTabs:!1,showToolbar:!1,showResultTabs:!1,showQueryButton:!1,downloadAsOn:!1,showResultInfo:!1,componentId:"similarity-list-component",maxPersistentResponseSize:0,render:y.RenderingMode.YASR,sparqlResponse:i.data}}}angular.module("graphdb.framework.similarity.controllers.list",[]).controller("SimilarityCtrl",p),p.$inject=["$scope","$interval","toastr","$repositories","$licenseService","$location","ModalService","$uibModal","SimilarityRestService","AutocompleteRestService","productInfo","RDF4JRepositoriesRestService","$translate","SparqlRestService"]},279:function(e,i,t){"use strict";t.r(i);t(7),t(24),t(30),t(194),t(196),t(204),t(78);angular.module("graphdb.framework.similarity",["graphdb.framework.core.controllers","graphdb.framework.core.directives","graphdb.framework.rest.similarity.service","graphdb.framework.similarity.controllers.create","graphdb.framework.similarity.controllers.list","graphdb.framework.core.directives.yasgui-component"])},90:function(e,i,t){"use strict";t.r(i),t.d(i,"SimilaritySearchType",(function(){return r}));const r={SEARCH_TERM:"searchTerm",SEARCH_ANALOGICAL:"searchAnalogical",SEARCH_ENTITY:"searchEntity",SEARCH_ENTITY_PREDICATE:"searchEntityPredicate",SEARCH_DOCUMENT:"searchDocumentID",isSearchTermType:e=>r.SEARCH_TERM===e,isSearchAnalogicalType:e=>r.SEARCH_ANALOGICAL===e,isSearchEntityType:e=>r.SEARCH_ENTITY===e,isSearchEntityPredicateType:e=>r.SEARCH_ENTITY_PREDICATE===e,isSearchDocumentType:e=>r.SEARCH_DOCUMENT===e}}}]);
@@ -1,3 +1,3 @@
1
- (window.webpackJsonp=window.webpackJsonp||[]).push([[35,98,102,104],{141:function(e,t){function n(e){return{restrict:"A",scope:{min:"=",max:"="},link:function(t,n,r){const l={debounce:_.debounce,delay:100,loadDelay:10,compressor:1,min:r.fitTextMin||"inherit",max:r.fitTextMax||"inherit",calcSize:10,lines:1},i=n.parent(),o=n[0],a=o.style,u=window.getComputedStyle(n[0],null),c=n.children().length||l.lines,s="inherit"===l.min?u["font-size"]:l.min,d="inherit"===l.max?u["font-size"]:l.max,g=u["line-height"],p=u.display;let h;function f(){const e=l.calcSize*c/o.offsetWidth/c;return Math.max(Math.min(function(e){const t=parseFloat(getComputedStyle(i[0]).paddingLeft),n=parseFloat(getComputedStyle(i[0]).paddingRight);return(i[0].offsetWidth-(t+n))*e*l.compressor}(e),parseFloat(d)),parseFloat(s))}function m(){h&&e.cancel(h),h=e((function(){o.offsetHeight*o.offsetWidth!=0&&(a.fontSize=l.calcSize+"px",a.lineHeight="1",a.display="inline-block",a.fontSize=f()+"px",a.lineHeight=g,a.display=p)}),l.loadDelay)}t.$watch((function(){return[i[0].offsetWidth,n[0].offsetWidth].join("_")}),(function(){m()})),$(window).on("resize",l.debounce((function(){t.$apply(m)}),l.delay)),t.$on("$destroy",(function(){h&&e.cancel(h),$(window).off("resize")}))}}}angular.module("graphdb.framework.core.directives.fittext",[]).directive("fitText",n),n.$inject=["$timeout"]},142:function(e,t){function n(){return{transformToTrig:function(e){let t="";const n={};for(let t=0;t<e.length;t++){const r=e[t];if(void 0===r.context?r.context="":r.context=_.trim(r.context),angular.isUndefined(n[r.context])){const e=[];e.push(r),n[r.context]=e}else n[r.context].push(r)}const r=Object.keys(n);for(let e=0;e<r.length;e++){const l=r[e];t+=""===l?"\n{":"\n<"+l+"> {";const i=n[l];for(let e=0;e<i.length;e++){const n=i[e];t+="\n\t<"+n.subject+"> <"+n.predicate+"> ";let r=n.object.value;"uri"===n.object.type?t+="<"+r+"> .":r.toString().includes('"')?("'"===r[0]&&(r='"'+r.slice(1,r.length)),r[r.length-1]&&(r=r.slice(0,-1)+'"'),t+="'''"+r+"'''"+(n.object.datatype?"^^<"+n.object.datatype+">":n.object.lang?"@"+n.object.lang:"")+" ."):t+='"""'+r+'"""'+(n.object.datatype?"^^<"+n.object.datatype+">":n.object.lang?"@"+n.object.lang:"")+" ."}t+="\n}"}return t},buildStatements:function(e,t){const n=[];if(!_.isEmpty(e.data)){const r=e.data[t],l=Object.keys(r);for(let e=0;e<l.length;e++){const i=l[e],o=r[i];for(let e=0;e<o.length;e++){const r=o[e];for(let e=0;e<r.graphs.length;e++){let l=r.graphs[e];"http://www.ontotext.com/explicit"===l&&(l=""),r.lang&&(r.datatype=""),r.datatype||(r.datatype=""),n.push({subject:t,predicate:i,object:{value:r.value,type:r.type,datatype:r.datatype,lang:r.lang},context:l})}}}}return n},getDatatypeOptions:function(){return[{value:"",label:"string"},{value:"http://www.w3.org/2001/XMLSchema#boolean",label:"boolean"},{value:"http://www.w3.org/2001/XMLSchema#decimal",label:"decimal"},{value:"http://www.w3.org/2001/XMLSchema#integer",label:"integer"},{value:"http://www.w3.org/2001/XMLSchema#double",label:"double"},{value:"http://www.w3.org/2001/XMLSchema#float",label:"float"},{value:"http://www.w3.org/2001/XMLSchema#date",label:"date"},{value:"http://www.w3.org/2001/XMLSchema#time",label:"time"},{value:"http://www.w3.org/2001/XMLSchema#dateTime",label:"date time"},{value:"http://www.w3.org/2001/XMLSchema#byte",label:"byte"},{value:"http://www.w3.org/2001/XMLSchema#short",label:"short"},{value:"http://www.w3.org/2001/XMLSchema#int",label:"int"},{value:"http://www.w3.org/2001/XMLSchema#long",label:"long"},{value:"http://www.w3.org/2001/XMLSchema#unsignedByte",label:"unsigned byte"},{value:"http://www.w3.org/2001/XMLSchema#unsignedShort",label:"unsigned short"},{value:"http://www.w3.org/2001/XMLSchema#unsignedInt",label:"unsigned int"},{value:"http://www.w3.org/2001/XMLSchema#unsignedLong",label:"unsigned long"},{value:"http://www.w3.org/2001/XMLSchema#positoveInteger",label:"positive integer"},{value:"http://www.w3.org/2001/XMLSchema#nonNegativeInteger",label:"non-negative integer"},{value:"http://www.w3.org/2001/XMLSchema#negativeInteger",label:"negative integer"},{value:"http://www.w3.org/2001/XMLSchema#nonPositiveInteger",label:"non-positive integer"},{value:"http://www.w3.org/2001/XMLSchema#gYear",label:"gYear"},{value:"http://www.w3.org/2001/XMLSchema#gMonth",label:"gMonth"},{value:"http://www.w3.org/2001/XMLSchema#gDay",label:"gDay"},{value:"http://www.w3.org/2001/XMLSchema#gYearMonth",label:"gYearMonth"},{value:"http://www.w3.org/2001/XMLSchema#gMonthDay",label:"gMonthDay"},{value:"http://www.w3.org/2001/XMLSchema#duration",label:"duration"},{value:"http://www.w3.org/2001/XMLSchema#hexBinary",label:"hex binary"},{value:"http://www.w3.org/2001/XMLSchema#base64Binary",label:"base64 binary"}]}}}angular.module("graphdb.framework.explore.services",[]).factory("StatementsService",n),n.$inject=[]},146:function(e,t,n){"use strict";n.r(t);n(27);angular.module("graphdb.framework.explore.directives",["graphdb.framework.utils.uriutils"]).directive("uri",["UriUtils",function(e){return{require:"ngModel",link:function(t,n,r,l){l.$parsers.unshift((function(t){if(!angular.isUndefined(t)&&t.length>0){const n=e.validateRdfUri(t);return l.$setValidity("searchStr",n),n?t:void 0}return l.$setValidity("searchStr",!0),t})),l.$formatters.unshift((function(t){return angular.isUndefined(t)||l.$setValidity("searchStr",e.validateRdfUri),t}))}}}])},216:function(e,t,n){"use strict";n.r(t);n(7),n(24),n(142),n(199),n(146),n(482),n(609),n(141),n(80);angular.module("graphdb.framework.explore",["ngRoute","toastr","xeditable","angucomplete-alt-onto","graphdb.framework.explore.services","graphdb.framework.explore.controllers","graphdb.framework.explore.directives","graphdb.framework.core.directives.fittext","graphdb.framework.core.directives.yasgui-component"])},609:function(e,t){
1
+ (window.webpackJsonp=window.webpackJsonp||[]).push([[34,98,102,104],{141:function(e,t){function n(e){return{restrict:"A",scope:{min:"=",max:"="},link:function(t,n,r){const l={debounce:_.debounce,delay:100,loadDelay:10,compressor:1,min:r.fitTextMin||"inherit",max:r.fitTextMax||"inherit",calcSize:10,lines:1},i=n.parent(),o=n[0],a=o.style,u=window.getComputedStyle(n[0],null),c=n.children().length||l.lines,s="inherit"===l.min?u["font-size"]:l.min,d="inherit"===l.max?u["font-size"]:l.max,g=u["line-height"],p=u.display;let h;function f(){const e=l.calcSize*c/o.offsetWidth/c;return Math.max(Math.min(function(e){const t=parseFloat(getComputedStyle(i[0]).paddingLeft),n=parseFloat(getComputedStyle(i[0]).paddingRight);return(i[0].offsetWidth-(t+n))*e*l.compressor}(e),parseFloat(d)),parseFloat(s))}function m(){h&&e.cancel(h),h=e((function(){o.offsetHeight*o.offsetWidth!=0&&(a.fontSize=l.calcSize+"px",a.lineHeight="1",a.display="inline-block",a.fontSize=f()+"px",a.lineHeight=g,a.display=p)}),l.loadDelay)}t.$watch((function(){return[i[0].offsetWidth,n[0].offsetWidth].join("_")}),(function(){m()})),$(window).on("resize",l.debounce((function(){t.$apply(m)}),l.delay)),t.$on("$destroy",(function(){h&&e.cancel(h),$(window).off("resize")}))}}}angular.module("graphdb.framework.core.directives.fittext",[]).directive("fitText",n),n.$inject=["$timeout"]},142:function(e,t){function n(){return{transformToTrig:function(e){let t="";const n={};for(let t=0;t<e.length;t++){const r=e[t];if(void 0===r.context?r.context="":r.context=_.trim(r.context),angular.isUndefined(n[r.context])){const e=[];e.push(r),n[r.context]=e}else n[r.context].push(r)}const r=Object.keys(n);for(let e=0;e<r.length;e++){const l=r[e];t+=""===l?"\n{":"\n<"+l+"> {";const i=n[l];for(let e=0;e<i.length;e++){const n=i[e];t+="\n\t<"+n.subject+"> <"+n.predicate+"> ";let r=n.object.value;"uri"===n.object.type?t+="<"+r+"> .":r.toString().includes('"')?("'"===r[0]&&(r='"'+r.slice(1,r.length)),r[r.length-1]&&(r=r.slice(0,-1)+'"'),t+="'''"+r+"'''"+(n.object.datatype?"^^<"+n.object.datatype+">":n.object.lang?"@"+n.object.lang:"")+" ."):t+='"""'+r+'"""'+(n.object.datatype?"^^<"+n.object.datatype+">":n.object.lang?"@"+n.object.lang:"")+" ."}t+="\n}"}return t},buildStatements:function(e,t){const n=[];if(!_.isEmpty(e.data)){const r=e.data[t],l=Object.keys(r);for(let e=0;e<l.length;e++){const i=l[e],o=r[i];for(let e=0;e<o.length;e++){const r=o[e];for(let e=0;e<r.graphs.length;e++){let l=r.graphs[e];"http://www.ontotext.com/explicit"===l&&(l=""),r.lang&&(r.datatype=""),r.datatype||(r.datatype=""),n.push({subject:t,predicate:i,object:{value:r.value,type:r.type,datatype:r.datatype,lang:r.lang},context:l})}}}}return n},getDatatypeOptions:function(){return[{value:"",label:"string"},{value:"http://www.w3.org/2001/XMLSchema#boolean",label:"boolean"},{value:"http://www.w3.org/2001/XMLSchema#decimal",label:"decimal"},{value:"http://www.w3.org/2001/XMLSchema#integer",label:"integer"},{value:"http://www.w3.org/2001/XMLSchema#double",label:"double"},{value:"http://www.w3.org/2001/XMLSchema#float",label:"float"},{value:"http://www.w3.org/2001/XMLSchema#date",label:"date"},{value:"http://www.w3.org/2001/XMLSchema#time",label:"time"},{value:"http://www.w3.org/2001/XMLSchema#dateTime",label:"date time"},{value:"http://www.w3.org/2001/XMLSchema#byte",label:"byte"},{value:"http://www.w3.org/2001/XMLSchema#short",label:"short"},{value:"http://www.w3.org/2001/XMLSchema#int",label:"int"},{value:"http://www.w3.org/2001/XMLSchema#long",label:"long"},{value:"http://www.w3.org/2001/XMLSchema#unsignedByte",label:"unsigned byte"},{value:"http://www.w3.org/2001/XMLSchema#unsignedShort",label:"unsigned short"},{value:"http://www.w3.org/2001/XMLSchema#unsignedInt",label:"unsigned int"},{value:"http://www.w3.org/2001/XMLSchema#unsignedLong",label:"unsigned long"},{value:"http://www.w3.org/2001/XMLSchema#positoveInteger",label:"positive integer"},{value:"http://www.w3.org/2001/XMLSchema#nonNegativeInteger",label:"non-negative integer"},{value:"http://www.w3.org/2001/XMLSchema#negativeInteger",label:"negative integer"},{value:"http://www.w3.org/2001/XMLSchema#nonPositiveInteger",label:"non-positive integer"},{value:"http://www.w3.org/2001/XMLSchema#gYear",label:"gYear"},{value:"http://www.w3.org/2001/XMLSchema#gMonth",label:"gMonth"},{value:"http://www.w3.org/2001/XMLSchema#gDay",label:"gDay"},{value:"http://www.w3.org/2001/XMLSchema#gYearMonth",label:"gYearMonth"},{value:"http://www.w3.org/2001/XMLSchema#gMonthDay",label:"gMonthDay"},{value:"http://www.w3.org/2001/XMLSchema#duration",label:"duration"},{value:"http://www.w3.org/2001/XMLSchema#hexBinary",label:"hex binary"},{value:"http://www.w3.org/2001/XMLSchema#base64Binary",label:"base64 binary"}]}}}angular.module("graphdb.framework.explore.services",[]).factory("StatementsService",n),n.$inject=[]},146:function(e,t,n){"use strict";n.r(t);n(27);angular.module("graphdb.framework.explore.directives",["graphdb.framework.utils.uriutils"]).directive("uri",["UriUtils",function(e){return{require:"ngModel",link:function(t,n,r,l){l.$parsers.unshift((function(t){if(!angular.isUndefined(t)&&t.length>0){const n=e.validateRdfUri(t);return l.$setValidity("searchStr",n),n?t:void 0}return l.$setValidity("searchStr",!0),t})),l.$formatters.unshift((function(t){return angular.isUndefined(t)||l.$setValidity("searchStr",e.validateRdfUri),t}))}}}])},217:function(e,t,n){"use strict";n.r(t);n(7),n(24),n(142),n(200),n(146),n(483),n(610),n(141),n(78);angular.module("graphdb.framework.explore",["ngRoute","toastr","xeditable","angucomplete-alt-onto","graphdb.framework.explore.services","graphdb.framework.explore.controllers","graphdb.framework.explore.directives","graphdb.framework.core.directives.fittext","graphdb.framework.core.directives.yasgui-component"])},610:function(e,t){
2
2
  /*! Copyright (c) 2014 Hidenari Nozaki and contributors | Licensed under the MIT license */
3
3
  !function(e,t){"use strict";!function(e){e.module("angucomplete-alt-onto",[]).directive("angucompleteAltOnto",["$q","$parse","$http","$sce","$timeout","$templateCache","$interpolate","$rootScope",function(e,t,n,r,l,i,o,a){function u(t,i,o,a){var u,c,s,d,g,p,h=i.find("input"),f=3,m=null,w="autocomplete-required",v=null,b=null,x=i[0].querySelector(".angucomplete-dropdown"),y=!1,S=null;function C(e,n){e&&("object"==typeof e?(t.uri=R(e),M({originalObject:e})):"string"==typeof e&&e.length>0?t.uri=e:console&&console.error&&console.error("Tried to set "+(n?"initial":"")+" value of angucomplete to",e,"which is an invalid value"),j(!0))}function I(e){S=null,t.hideResults(e),document.body.removeEventListener("click",I)}function $(e){return e.which?e.which:e.keyCode}function M(e){"function"==typeof t.selectedObject?t.selectedObject(e):t.selectedObject=e,j(!!e)}function R(e){return t.titleField.split(",").map((function(t){return L(e,t)})).join(" ")}function L(e,t){var n,r;if(t){n=t.split("."),r=e;for(var l=0;l<n.length;l++)r=r[n[l]]}else r=e;return r}function D(e,n){var l,i,o;if(o=new RegExp(n.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),"i"),e)return e.match&&e.replace||(e=e.toString()),l=(i=e.match(o))?e.replace(o,'<span class="'+t.matchClass+'">'+i[0]+"</span>"):e,r.trustAsHtml(l)}function j(e){t.notEmpty=e,v=t.uri,t.fieldRequired&&a&&t.inputName&&a[t.inputName].$setValidity(w,e)}function F(e){!t.overrideSuggestions||t.selectedObject&&t.selectedObject.originalObject===t.uri||(e&&e.preventDefault(),l.cancel(m),H(),M({originalObject:t.uri}),t.clearSelected&&(t.uri=null),z())}function X(){return i[0].querySelectorAll(".angucomplete-row")[t.currentIndex]}function k(e){x.scrollTop=x.scrollTop+e}function U(){var e=t.results[t.currentIndex];if(t.matchClass){var n=R(e.originalObject);n=n.replace(/<b>|<\/b>/g,""),h.val(n)}else h.val(e.title)}function O(e){return function(n,r,l,i){r||l||i||!n.data||(n=n.data),t.searching=!1,B(L(c(n),t.remoteUrlDataField),e)}}function q(e,n,r,l){0!==n&&-1!==n&&(n||r||l||(n=e.status),t.remoteUrlErrorCallback?t.remoteUrlErrorCallback(e,n,r,l):console&&console.error&&console.error("http error"))}function H(){b&&b.resolve()}function T(r){var l={},i=t.remoteUrl+encodeuriComponent(r);t.remoteUrlRequestFormatter&&(l={params:t.remoteUrlRequestFormatter(r)},i=t.remoteUrl),t.remoteUrlRequestWithCredentials&&(l.withCredentials=!0),H(),b=e.defer(),l.timeout=b.promise,n.get(i,l).success(O(r)).error(q)}function N(n){H(),b=e.defer(),t.remoteApiHandler(n,b.promise).then(O(n)).catch(q)}function z(){t.showDropdown=!1,t.results=[],x&&(x.scrollTop=0)}function E(){t.showDropdown=d,t.currentIndex=t.focusFirst?0:-1,t.results=[]}function A(e){!e||e.length<f||(t.localData?t.$apply((function(){var n;n=void 0!==t.localSearch()?t.localSearch()(e):function(e){var n,r,l,i,o=t.searchFields.split(","),a=[];for(void 0!==t.parseInput()&&(e=t.parseInput()(e)),n=0;n<t.localData.length;n++){for(r=!1,l=0;l<o.length;l++)i=L(t.localData[n],o[l])||"",r=r||i.toString().toLowerCase().indexOf(e.toString().toLowerCase())>=0;r&&(a[a.length]=t.localData[n])}return a}(e),t.searching=!1,B(n,e)})):t.remoteApiHandler?N(e):T(e))}function B(e,n){var r,l,i,o,a,u;if(e&&e.length>0)for(t.results=[],r=0;r<e.length;r++)t.titleField&&""!==t.titleField&&(o=a=R(e[r])),l="",t.descriptionField&&(l=u=L(e[r],t.descriptionField)),i="",t.imageField&&(i=L(e[r],t.imageField)),t.matchClass&&(a=D(o,n),u=D(l,n)),t.results[t.results.length]={title:a,description:u,image:i,originalObject:e[r]};else t.results=[];t.autoMatch&&1===t.results.length&&function(e,n,r){if(!r)return!1;for(var l in n)if(n[l].toLowerCase()===r.toLowerCase())return t.selectResult(e),!0;return!1}(t.results[0],{title:o,desc:l||""},t.uri)?t.showDropdown=!1:0!==t.results.length||g?t.showDropdown=!0:t.showDropdown=!1}function V(){t.localData?B(t.localData,""):t.remoteApiHandler?N(""):T("")}i.on("mousedown",(function(e){e.target.id?(S=e.target.id)===t.id+"_dropdown"&&document.body.addEventListener("click",I):S=e.target.className})),t.currentIndex=t.focusFirst?0:null,t.searching=!1,s=t.$watch("initialValue",(function(e){e&&(s(),C(e,!0))})),t.$watch("fieldRequired",(function(e,n){e!==n&&(e?v&&-1!==t.currentIndex?j(!0):j(!1):a[t.inputName].$setValidity(w,!0))})),t.$on("angucomplete-alt:clearInput",(function(e,n){n&&n!==t.id||(t.uri=null,M(),j(!1),z())})),t.$on("angucomplete-alt:changeInput",(function(e,n,r){n&&n===t.id&&C(r)})),t.onFocusHandler=function(){t.focusIn&&t.focusIn(),0!==f||t.uri&&0!==t.uri.length||(t.currentIndex=t.focusFirst?0:t.currentIndex,t.showDropdown=!0,V())},t.hideResults=function(){S&&(S===t.id+"_dropdown"||S.indexOf("angucomplete")>=0)?S=null:(u=l((function(){z(),t.$apply((function(){t.uri&&t.uri.length>0&&h.val(t.uri)}))}),200),H(),t.focusOut&&t.focusOut(),t.overrideSuggestions&&t.uri&&t.uri.length>0&&-1===t.currentIndex&&F())},t.resetHideResults=function(){u&&l.cancel(u)},t.hoverRow=function(e){t.currentIndex=e},t.selectResult=function(e){t.matchClass&&(e.title=R(e.originalObject),"string"==typeof e.title&&(e.title=e.title.replace(/<b>|<\/b>/g,"")),e.description=L(e.originalObject,t.descriptionField)),t.clearSelected?t.uri=null:t.uri=e.title,M(e),z()},t.inputChangeHandler=function(e){return e.length<f?(H(),z()):0===e.length&&0===f&&(t.searching=!1,V()),t.inputChanged&&(e=t.inputChanged(e)),e},t.fieldRequiredClass&&""!==t.fieldRequiredClass&&(w=t.fieldRequiredClass),t.minlength&&""!==t.minlength&&(f=parseInt(t.minlength,10)),t.pause||(t.pause=500),t.clearSelected||(t.clearSelected=!1),t.overrideSuggestions||(t.overrideSuggestions=!1),t.fieldRequired&&a&&(t.initialValue?j(!0):j(!1)),t.inputType=o.type?o.type:"text",t.textSearching=o.textSearching?o.textSearching:"Searching...",t.textNoResults=o.textNoResults?o.textNoResults:"No results found",d="false"!==t.textSearching,g="false"!==t.textNoResults,t.maxlength=o.maxlength?o.maxlength:524288,h.on("keydown",(function(e){var n=$(e),r=null,l=null;13===n&&t.results?(t.currentIndex>=0&&t.currentIndex<t.results.length?(e.preventDefault(),t.selectResult(t.results[t.currentIndex])):(F(e),z()),t.$apply()):40===n&&t.results?(e.preventDefault(),t.currentIndex+1<t.results.length&&t.showDropdown&&(t.$apply((function(){t.currentIndex++,U()})),y&&(r=X(),x.getBoundingClientRect().top+parseInt(getComputedStyle(x).maxHeight,10)<r.getBoundingClientRect().bottom&&k(function(e){var t=getComputedStyle(e);return e.offsetHeight+parseInt(t.marginTop,10)+parseInt(t.marginBottom,10)}(r))))):38===n&&t.results?(e.preventDefault(),t.currentIndex>=1?(t.$apply((function(){t.currentIndex--,U()})),y&&(l=X().getBoundingClientRect().top-(x.getBoundingClientRect().top+parseInt(getComputedStyle(x).paddingTop,10)))<0&&k(l-1)):0===t.currentIndex&&t.$apply((function(){t.currentIndex=-1,h.val(t.uri)}))):9===n?t.results&&t.results.length>0&&t.showDropdown?-1===t.currentIndex&&t.overrideSuggestions?F():(-1===t.currentIndex&&(t.currentIndex=0),t.selectResult(t.results[t.currentIndex]),t.$digest()):t.uri&&t.uri.length>0&&F():27===n&&e.preventDefault()})),h.on("keyup",(function(e){var n=$(e);if(37!==n&&39!==n)if(38===n||13===n)e.preventDefault();else if(40===n)e.preventDefault(),!t.showDropdown&&t.uri&&t.uri.length>=f&&(E(),t.searching=!0,A(t.uri));else if(27===n)z(),t.$apply((function(){h.val(t.uri)}));else{if(0===f&&!t.uri)return;t.uri&&""!==t.uri?t.uri.length>=f&&(E(),m&&l.cancel(m),t.searching=!0,m=l((function(){A(t.uri)}),t.pause)):t.showDropdown=!1,v&&v!==t.uri&&!t.clearSelected&&t.$apply((function(){M()}))}})),p="remoteUrlResponseFormatter",c=function(e){return t[p]?t[p](e):e},l((function(){var e=getComputedStyle(x);y=e.maxHeight&&"auto"===e.overflowY}))}return i.put("/angucomplete-alt/index.html",'<div class="angucomplete-holder" ng-class="{\'angucomplete-dropdown-visible\': showDropdown}"> <input id="{{id}}_value" name="{{inputName}}" tabindex="{{fieldTabindex}}" ng-class="{\'angucomplete-input-not-empty\': notEmpty}" ng-model="uri" ng-disabled="disableInput" type="{{inputType}}" placeholder="{{placeholder}}" maxlength="{{maxlength}}" ng-focus="onFocusHandler()" class="{{inputClass}}" ng-focus="resetHideResults()" ng-blur="hideResults($event)" autocapitalize="off" autocorrect="off" autocomplete="off" ng-change="inputChangeHandler(uri)" style="overflow: hidden; padding-right: .5em;"/> <div id="{{id}}_dropdown" class="angucomplete-dropdown" ng-show="disableSuggestions && showDropdown"> <div class="angucomplete-searching" ng-show="searching" ng-bind="textSearching"></div> <div class="angucomplete-searching" ng-show="!searching && (!results || results.length == 0)" ng-bind="textNoResults"></div> <div class="angucomplete-row" ng-repeat="result in results" ng-click="selectResult(result)" ng-mouseenter="hoverRow($index)" ng-class="{\'angucomplete-selected-row\': $index == currentIndex}"> <div ng-if="imageField" class="angucomplete-image-holder"> <img ng-if="result.image && result.image != \'\'" ng-src="{{result.image}}" class="angucomplete-image"/> <div ng-if="!result.image && result.image != \'\'" class="angucomplete-image-default"></div> </div> <div class="angucomplete-title" ng-if="matchClass" ng-bind-html="result.title"></div> <div class="angucomplete-title" ng-if="!matchClass">{{ result.title }}</div> <div ng-if="matchClass && result.description && result.description != \'\'" class="angucomplete-description" ng-bind-html="result.description"></div> <div ng-if="!matchClass && result.description && result.description != \'\'" class="angucomplete-description">{{result.description}}</div> </div> </div></div>'),{restrict:"EA",require:"^?form",scope:{selectedObject:"=",disableInput:"=",disableSuggestions:"=",initialValue:"=",localData:"=",localSearch:"&",remoteUrlRequestFormatter:"=",remoteUrlRequestWithCredentials:"@",remoteUrlResponseFormatter:"=",remoteUrlErrorCallback:"=",remoteApiHandler:"=",id:"@",type:"@",placeholder:"@",remoteUrl:"@",remoteUrlDataField:"@",titleField:"@",descriptionField:"@",imageField:"@",inputClass:"@",pause:"@",searchFields:"@",minlength:"@",matchClass:"@",clearSelected:"@",overrideSuggestions:"@",fieldRequired:"=",fieldRequiredClass:"@",inputChanged:"=",autoMatch:"@",focusOut:"&",focusIn:"&",fieldTabindex:"@",inputName:"@",focusFirst:"@",parseInput:"&"},templateUrl:function(e,t){return t.templateUrl||"/angucomplete-alt/index.html"},compile:function(e){var t=o.startSymbol(),n=o.endSymbol();if("{{"!==t||"}}"!==n){var r=e.html().replace(/\{\{/g,t).replace(/\}\}/g,n);e.html(r)}return u}}}])}(window.angular)}()}}]);
@@ -1,2 +1,2 @@
1
- (window.webpackJsonp=window.webpackJsonp||[]).push([[36],{418:function(t,e){
2
- /*! ngTagsInput v3.2.0 License: MIT */!function(){"use strict";var t=8,e=9,i=13,n=27,s=32,o=38,r=40,a=37,l=39,h=46,u=188,c=9007199254740991,p=["text","email","url"],d=angular.module("ngTagsInput",[]);d.directive("tagsInput",["$timeout","$document","$window","$q","tagsInputConfig","tiUtil",function(e,n,o,r,d,g){function f(t,e,i,n){var s,o,a,l,h={};return s=function(e){return g.safeToString(e[t.displayProperty])},o=function(e,i){e[t.displayProperty]=i},a=function(e){var n=s(e),o=n&&n.length>=t.minLength&&n.length<=t.maxLength&&t.allowedTagsPattern.test(n)&&!g.findInObjectArray(h.items,e,t.keyProperty||t.displayProperty);return r.when(o&&i({$tag:e})).then(g.promisifyValue)},l=function(t){return r.when(n({$tag:t})).then(g.promisifyValue)},h.items=[],h.addText=function(t){var e={};return o(e,t),h.add(e)},h.add=function(i){var n=s(i);return t.replaceSpacesWithDashes&&(n=g.replaceSpacesWithDashes(n)),o(i,n),a(i).then((function(){h.items.push(i),e.trigger("tag-added",{$tag:i})})).catch((function(){n&&e.trigger("invalid-tag",{$tag:i})}))},h.remove=function(t){var i=h.items[t];return l(i).then((function(){return h.items.splice(t,1),h.clearSelection(),e.trigger("tag-removed",{$tag:i}),i}))},h.select=function(t){0>t?t=h.items.length-1:t>=h.items.length&&(t=0),h.index=t,h.selected=h.items[t]},h.selectPrior=function(){h.select(--h.index)},h.selectNext=function(){h.select(++h.index)},h.removeSelected=function(){return h.remove(h.index)},h.clearSelection=function(){h.selected=null,h.index=-1},h.getItems=function(){return t.useStrings?h.items.map(s):h.items},h.clearSelection(),h}function m(t){return-1!==p.indexOf(t)}return{restrict:"E",require:"ngModel",scope:{tags:"=ngModel",text:"=?",templateScope:"=?",tagClass:"&",onTagAdding:"&",onTagAdded:"&",onInvalidTag:"&",onTagRemoving:"&",onTagRemoved:"&",onTagClicked:"&"},replace:!1,transclude:!0,templateUrl:"ngTagsInput/tags-input.html",controller:["$scope","$attrs","$element",function(t,e,i){t.events=g.simplePubSub(),d.load("tagsInput",t,e,{template:[String,"ngTagsInput/tag-item.html"],type:[String,"text",m],placeholder:[String,"Add a tag"],tabindex:[Number,null],removeTagSymbol:[String,String.fromCharCode(215)],replaceSpacesWithDashes:[Boolean,!0],minLength:[Number,3],maxLength:[Number,c],addOnEnter:[Boolean,!0],addOnSpace:[Boolean,!1],addOnComma:[Boolean,!0],addOnBlur:[Boolean,!0],addOnPaste:[Boolean,!1],pasteSplitPattern:[RegExp,/,/],allowedTagsPattern:[RegExp,/.+/],enableEditingLastTag:[Boolean,!1],minTags:[Number,0],maxTags:[Number,c],displayProperty:[String,"text"],keyProperty:[String,""],allowLeftoverText:[Boolean,!1],addFromAutocompleteOnly:[Boolean,!1],spellcheck:[Boolean,!0],useStrings:[Boolean,!1]}),t.tagList=new f(t.options,t.events,g.handleUndefinedResult(t.onTagAdding,!0),g.handleUndefinedResult(t.onTagRemoving,!0)),this.registerAutocomplete=function(){return i.find("input"),{addTag:function(e){return t.tagList.add(e)},getTags:function(){return t.tagList.items},getCurrentTagText:function(){return t.newTag.text()},getOptions:function(){return t.options},getTemplateScope:function(){return t.templateScope},on:function(e,i){return t.events.on(e,i,!0),this}}},this.registerTagItem=function(){return{getOptions:function(){return t.options},removeTag:function(e){t.disabled||t.tagList.remove(e)}}}}],link:function(r,c,p,d){var f,m,b=[i,u,s,t,h,a,l],v=r.tagList,y=r.events,x=r.options,w=c.find("input"),S=["minTags","maxTags","allowLeftoverText"];f=function(){d.$setValidity("maxTags",v.items.length<=x.maxTags),d.$setValidity("minTags",v.items.length>=x.minTags),d.$setValidity("leftoverText",!(!r.hasFocus&&!x.allowLeftoverText)||!r.newTag.text())},m=function(){e((function(){w[0].focus()}))},d.$isEmpty=function(t){return!t||!t.length},r.newTag={text:function(t){return angular.isDefined(t)?(r.text=t,void y.trigger("input-change",t)):r.text||""},invalid:null},r.track=function(t){return t[x.keyProperty||x.displayProperty]},r.getTagClass=function(t,e){var i=t===v.selected;return[r.tagClass({$tag:t,$index:e,$selected:i}),{selected:i}]},r.$watch("tags",(function(t){if(t){if(v.items=g.makeObjectArray(t,x.displayProperty),x.useStrings)return;r.tags=v.items}else v.items=[]})),r.$watch("tags.length",(function(){f(),d.$validate()})),p.$observe("disabled",(function(t){r.disabled=t})),r.eventHandlers={input:{keydown:function(t){y.trigger("input-keydown",t)},focus:function(){r.hasFocus||(r.hasFocus=!0,y.trigger("input-focus"))},blur:function(){e((function(){var t=n.prop("activeElement"),e=t===w[0],i=c[0].contains(t);(e||!i)&&(r.hasFocus=!1,y.trigger("input-blur"))}))},paste:function(t){t.getTextData=function(){var e=t.clipboardData||t.originalEvent&&t.originalEvent.clipboardData;return e?e.getData("text/plain"):o.clipboardData.getData("Text")},y.trigger("input-paste",t)}},host:{click:function(){r.disabled||m()}},tag:{click:function(t){y.trigger("tag-clicked",{$tag:t})}}},y.on("tag-added",r.onTagAdded).on("invalid-tag",r.onInvalidTag).on("tag-removed",r.onTagRemoved).on("tag-clicked",r.onTagClicked).on("tag-added",(function(){r.newTag.text("")})).on("tag-added tag-removed",(function(){r.tags=v.getItems(),d.$setDirty(),m()})).on("invalid-tag",(function(){r.newTag.invalid=!0})).on("option-change",(function(t){-1!==S.indexOf(t.name)&&f()})).on("input-change",(function(){v.clearSelection(),r.newTag.invalid=null})).on("input-focus",(function(){c.triggerHandler("focus"),d.$setValidity("leftoverText",!0)})).on("input-blur",(function(){x.addOnBlur&&!x.addFromAutocompleteOnly&&v.addText(r.newTag.text()),c.triggerHandler("blur"),f()})).on("input-keydown",(function(e){var n,o,c,p,d=e.keyCode,f={};g.isModifierOn(e)||-1===b.indexOf(d)||(f[i]=x.addOnEnter,f[u]=x.addOnComma,f[s]=x.addOnSpace,n=!x.addFromAutocompleteOnly&&f[d],o=(d===t||d===h)&&v.selected,p=d===t&&0===r.newTag.text().length&&x.enableEditingLastTag,c=(d===t||d===a||d===l)&&0===r.newTag.text().length&&!x.enableEditingLastTag,n?v.addText(r.newTag.text()):p?(v.selectPrior(),v.removeSelected().then((function(t){t&&r.newTag.text(t[x.displayProperty])}))):o?v.removeSelected():c&&(d===a||d===t?v.selectPrior():d===l&&v.selectNext()),(n||c||o||p)&&e.preventDefault())})).on("input-paste",(function(t){if(x.addOnPaste){var e=t.getTextData().split(x.pasteSplitPattern);e.length>1&&(e.forEach((function(t){v.addText(t)})),t.preventDefault())}}))}}}]),d.directive("tiTagItem",["tiUtil",function(t){return{restrict:"E",require:"^tagsInput",template:'<ng-include src="$$template"></ng-include>',scope:{$scope:"=scope",data:"="},link:function(e,i,n,s){var o=s.registerTagItem(),r=o.getOptions();e.$$template=r.template,e.$$removeTagSymbol=r.removeTagSymbol,e.$getDisplayText=function(){return t.safeToString(e.data[r.displayProperty])},e.$removeTag=function(){o.removeTag(e.$index)},e.$watch("$parent.$index",(function(t){e.$index=t}))}}}]),d.directive("autoComplete",["$document","$timeout","$sce","$q","tagsInputConfig","tiUtil",function(t,s,a,l,h,u){function c(t,e,i){var n,s,o,r={};return o=function(){return e.tagsInput.keyProperty||e.tagsInput.displayProperty},n=function(t,i){return t.filter((function(t){return!u.findInObjectArray(i,t,o(),(function(t,i){return e.tagsInput.replaceSpacesWithDashes&&(t=u.replaceSpacesWithDashes(t),i=u.replaceSpacesWithDashes(i)),u.defaultComparer(t,i)}))}))},r.reset=function(){s=null,r.items=[],r.visible=!1,r.index=-1,r.selected=null,r.query=null},r.show=function(){e.selectFirstMatch?r.select(0):r.selected=null,r.visible=!0},r.load=u.debounce((function(i,a){r.query=i;var h=l.when(t({$query:i}));s=h,h.then((function(t){h===s&&(t=u.makeObjectArray(t.data||t,o()),t=n(t,a),r.items=t.slice(0,e.maxResultsToShow),r.items.length>0?r.show():r.reset())}))}),e.debounceDelay),r.selectNext=function(){r.select(++r.index)},r.selectPrior=function(){r.select(--r.index)},r.select=function(t){0>t?t=r.items.length-1:t>=r.items.length&&(t=0),r.index=t,r.selected=r.items[t],i.trigger("suggestion-selected",t)},r.reset(),r}return{restrict:"E",require:"^tagsInput",scope:{source:"&",matchClass:"&"},templateUrl:"ngTagsInput/auto-complete.html",controller:["$scope","$element","$attrs",function(t,e,i){t.events=u.simplePubSub(),h.load("autoComplete",t,i,{template:[String,"ngTagsInput/auto-complete-match.html"],debounceDelay:[Number,100],minLength:[Number,3],highlightMatchedText:[Boolean,!0],maxResultsToShow:[Number,10],loadOnDownArrow:[Boolean,!1],loadOnEmpty:[Boolean,!1],loadOnFocus:[Boolean,!1],selectFirstMatch:[Boolean,!0],displayProperty:[String,""]}),t.suggestionList=new c(t.source,t.options,t.events),this.registerAutocompleteMatch=function(){return{getOptions:function(){return t.options},getQuery:function(){return t.suggestionList.query}}}}],link:function(t,s,a,l){var h,c=[i,e,n,o,r],p=t.suggestionList,d=l.registerAutocomplete(),g=t.options,f=t.events;g.tagsInput=d.getOptions(),h=function(t){return t&&t.length>=g.minLength||!t&&g.loadOnEmpty},t.templateScope=d.getTemplateScope(),t.addSuggestionByIndex=function(e){p.select(e),t.addSuggestion()},t.addSuggestion=function(){var t=!1;return p.selected&&(d.addTag(angular.copy(p.selected)),p.reset(),t=!0),t},t.track=function(t){return t[g.tagsInput.keyProperty||g.tagsInput.displayProperty]},t.getSuggestionClass=function(e,i){var n=e===p.selected;return[t.matchClass({$match:e,$index:i,$selected:n}),{selected:n}]},d.on("tag-added tag-removed invalid-tag input-blur",(function(){p.reset()})).on("input-change",(function(t){h(t)?p.load(t,d.getTags()):p.reset()})).on("input-focus",(function(){var t=d.getCurrentTagText();g.loadOnFocus&&h(t)&&p.load(t,d.getTags())})).on("input-keydown",(function(s){var a=s.keyCode,l=!1;if(!u.isModifierOn(s)&&-1!==c.indexOf(a))return p.visible?a===r?(p.selectNext(),l=!0):a===o?(p.selectPrior(),l=!0):a===n?(p.reset(),l=!0):(a===i||a===e)&&(l=t.addSuggestion()):a===r&&t.options.loadOnDownArrow&&(p.load(d.getCurrentTagText(),d.getTags()),l=!0),l?(s.preventDefault(),s.stopImmediatePropagation(),!1):void 0})),f.on("suggestion-selected",(function(t){!function(t,e){var i=t.find("li").eq(e),n=i.parent(),s=i.prop("offsetTop"),o=i.prop("offsetHeight"),r=n.prop("clientHeight"),a=n.prop("scrollTop");a>s?n.prop("scrollTop",s):s+o>r+a&&n.prop("scrollTop",s+o-r)}(s,t)}))}}}]),d.directive("tiAutocompleteMatch",["$sce","tiUtil",function(t,e){return{restrict:"E",require:"^autoComplete",template:'<ng-include src="$$template"></ng-include>',scope:{$scope:"=scope",data:"="},link:function(i,n,s,o){var r=o.registerAutocompleteMatch(),a=r.getOptions();i.$$template=a.template,i.$index=i.$parent.$index,i.$highlight=function(i){return a.highlightMatchedText&&(i=e.safeHighlight(i,r.getQuery())),t.trustAsHtml(i)},i.$getDisplayText=function(){return e.safeToString(i.data[a.displayProperty||a.tagsInput.displayProperty])}}}}]),d.directive("tiTranscludeAppend",(function(){return function(t,e,i,n,s){s((function(t){e.append(t)}))}})),d.directive("tiAutosize",["tagsInputConfig",function(t){return{restrict:"A",require:"ngModel",link:function(e,i,n,s){var o,r,a=t.getTextAutosizeThreshold();(o=angular.element('<span class="input"></span>')).css("display","none").css("visibility","hidden").css("width","auto").css("white-space","pre"),i.parent().append(o),r=function(t){var e,s=t;return angular.isString(s)&&0===s.length&&(s=n.placeholder),s&&(o.text(s),o.css("display",""),e=o.prop("offsetWidth"),o.css("display","none")),i.css("width",e?e+a+"px":""),t},s.$parsers.unshift(r),s.$formatters.unshift(r),n.$observe("placeholder",(function(t){s.$modelValue||r(t)}))}}}]),d.directive("tiBindAttrs",(function(){return function(t,e,i){t.$watch(i.tiBindAttrs,(function(t){angular.forEach(t,(function(t,e){i.$set(e,t)}))}),!0)}})),d.provider("tagsInputConfig",(function(){var t={},e={},i=3;this.setDefaults=function(e,i){return t[e]=i,this},this.setActiveInterpolation=function(t,i){return e[t]=i,this},this.setTextAutosizeThreshold=function(t){return i=t,this},this.$get=["$interpolate",function(n){var s={};return s[String]=function(t){return t},s[Number]=function(t){return parseInt(t,10)},s[Boolean]=function(t){return"true"===t.toLowerCase()},s[RegExp]=function(t){return new RegExp(t)},{load:function(i,o,r,a){var l=function(){return!0};o.options={},angular.forEach(a,(function(a,h){var u,c,p,d,g,f;u=a[0],c=a[1],p=a[2]||l,d=s[u],g=function(){var e=t[i]&&t[i][h];return angular.isDefined(e)?e:c},f=function(t){o.options[h]=t&&p(t)?d(t):g()},e[i]&&e[i][h]?r.$observe(h,(function(t){f(t),o.events.trigger("option-change",{name:h,newValue:t})})):f(r[h]&&n(r[h])(o.$parent))}))},getTextAutosizeThreshold:function(){return i}}}]})),d.factory("tiUtil",["$timeout","$q",function(t,e){var i={debounce:function(e,i){var n;return function(){var s=arguments;t.cancel(n),n=t((function(){e.apply(null,s)}),i)}},makeObjectArray:function(t,e){if(!angular.isArray(t)||0===t.length||angular.isObject(t[0]))return t;var i=[];return t.forEach((function(t){var n={};n[e]=t,i.push(n)})),i},findInObjectArray:function(t,e,n,s){var o=null;return s=s||i.defaultComparer,t.some((function(t){return s(t[n],e[n])?(o=t,!0):void 0})),o},defaultComparer:function(t,e){return i.safeToString(t).toLowerCase()===i.safeToString(e).toLowerCase()},safeHighlight:function(t,e){if(t=i.encodeHTML(t),!(e=i.encodeHTML(e)))return t;var n=new RegExp("&[^;]+;|"+function(t){return t.replace(/([.?*+^$[\]\\(){}|-])/g,"\\$1")}(e),"gi");return t.replace(n,(function(t){return t.toLowerCase()===e.toLowerCase()?"<em>"+t+"</em>":t}))},safeToString:function(t){return angular.isUndefined(t)||null==t?"":t.toString().trim()},encodeHTML:function(t){return i.safeToString(t).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;")},handleUndefinedResult:function(t,e){return function(){var i=t.apply(null,arguments);return angular.isUndefined(i)?e:i}},replaceSpacesWithDashes:function(t){return i.safeToString(t).replace(/\s/g,"-")},isModifierOn:function(t){return t.shiftKey||t.ctrlKey||t.altKey||t.metaKey},promisifyValue:function(t){return t=!!angular.isUndefined(t)||t,e[t?"when":"reject"]()},simplePubSub:function(){var t={};return{on:function(e,i,n){return e.split(" ").forEach((function(e){t[e]||(t[e]=[]),(n?[].unshift:[].push).call(t[e],i)})),this},trigger:function(e,n){return(t[e]||[]).every((function(t){return i.handleUndefinedResult(t,!0)(n)})),this}}}};return i}]),d.run(["$templateCache",function(t){t.put("ngTagsInput/tags-input.html",'<div class="host" tabindex="-1" ng-click="eventHandlers.host.click()" ti-transclude-append><div class="tags" ng-class="{focused: hasFocus}"><ul class="tag-list"><li class="tag-item" ng-repeat="tag in tagList.items track by track(tag)" ng-class="getTagClass(tag, $index)" ng-click="eventHandlers.tag.click(tag)"><ti-tag-item scope="templateScope" data="::tag"></ti-tag-item></li></ul><input class="input" autocomplete="off" ng-model="newTag.text" ng-model-options="{getterSetter: true}" ng-keydown="eventHandlers.input.keydown($event)" ng-focus="eventHandlers.input.focus($event)" ng-blur="eventHandlers.input.blur($event)" ng-paste="eventHandlers.input.paste($event)" ng-trim="false" ng-class="{\'invalid-tag\': newTag.invalid}" ng-disabled="disabled" ti-bind-attrs="{type: options.type, placeholder: options.placeholder, tabindex: options.tabindex, spellcheck: options.spellcheck}" ti-autosize></div></div>'),t.put("ngTagsInput/tag-item.html",'<span ng-bind="$getDisplayText()"></span> <a class="remove-button" ng-click="$removeTag()" ng-bind="::$$removeTagSymbol"></a>'),t.put("ngTagsInput/auto-complete.html",'<div class="autocomplete" ng-if="suggestionList.visible"><ul class="suggestion-list"><li class="suggestion-item" ng-repeat="item in suggestionList.items track by track(item)" ng-class="getSuggestionClass(item, $index)" ng-click="addSuggestionByIndex($index)" ng-mouseenter="suggestionList.select($index)"><ti-autocomplete-match scope="templateScope" data="::item"></ti-autocomplete-match></li></ul></div>'),t.put("ngTagsInput/auto-complete-match.html",'<span ng-bind-html="$highlight($getDisplayText())"></span>')}])}()},610:function(t,e){!function(){"use strict";function t(e){return(t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(e)}function e(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var i=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=i){var n,s,o,r,a=[],l=!0,h=!1;try{if(o=(i=i.call(t)).next,0===e){if(Object(i)!==i)return;l=!1}else for(;!(l=(n=o.call(i)).done)&&(a.push(n.value),a.length!==e);l=!0);}catch(t){h=!0,s=t}finally{try{if(!l&&null!=i.return&&(r=i.return(),Object(r)!==r))return}finally{if(h)throw s}}return a}}(t,e)||function(t,e){if(t){if("string"==typeof t)return i(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?i(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function i(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,n=new Array(e);i<e;i++)n[i]=t[i];return n}function n(e,i){for(var n=0;n<i.length;n++){var s=i[n];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(e,(void 0,o=function(e,i){if("object"!==t(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var s=n.call(e,i);if("object"!==t(s))return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(s.key,"string"),"symbol"===t(o)?o:String(o)),s)}var o}var s=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t)}var i,s;return i=t,(s=[{key:"registerFor",value:function(t){var i,n,s,o;function r(t,i,n){var s=t[0],r=e({top:["scrollTop","pageYOffset","scrollLeft"],left:["scrollLeft","pageXOffset","scrollTop"]}[i],3),a=r[0],l=r[1],h=r[2],u=void 0!==n;return o(s)?u?s.scrollTo(t[h].call(t),n):l in s?s[l]:s.document.documentElement[a]:(u&&(s[a]=n),s[a])}function a(t,n,r){var a,l=function(t,n){var r,a,l,h,u,c,p,d,g,f;if(o(t))return{base:r=document.documentElement[{height:"clientHeight",width:"clientWidth"}[n]],padding:0,border:0,margin:0};var m=e({width:[t.offsetWidth,"Left","Right"],height:[t.offsetHeight,"Top","Bottom"]}[n],3);return r=m[0],p=m[1],d=m[2],c=s(t),g=i(t,c["padding"+p])||0,f=i(t,c["padding"+d])||0,a=i(t,c["border"+p+"Width"])||0,l=i(t,c["border"+d+"Width"])||0,h=c["margin"+p],u=c["margin"+d],{base:r,padding:g+f,border:a+l,margin:(i(t,h)||0)+(i(t,u)||0)}}(t,n);return l.base>0?{base:l.base-l.padding-l.border,outer:l.base,outerfull:l.base+l.margin}[r]:(((a=s(t)[n])<0||null===a)&&(a=t.style[n]||0),{base:(a=parseFloat(a)||0)-l.padding-l.border,outer:a,outerfull:a+l.padding+l.border+l.margin}[r])}return n=angular.element.prototype.css,t.prototype.css=function(t,e){var i=this[0];if(i&&3!==i.nodeType&&8!==i.nodeType&&i.style)return n.call(this,t,e)},o=function(t){return t&&t.document&&t.location&&t.alert&&t.setInterval},window.getComputedStyle?(s=function(t){return window.getComputedStyle(t,null)},i=function(t,e){return parseFloat(e)}):(s=function(t){return t.currentStyle},i=function(t,e){var i,n,s,o,r;return new RegExp("^("+/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source+")(?!px)[a-z%]+$","i").test(e)?(i=(r=t.style).left,o=(s=t.runtimeStyle)&&s.left,s&&(s.left=r.left),r.left=e,n=r.pixelLeft,r.left=i,o&&(s.left=o),n):parseFloat(e)}),angular.forEach({before:function(t){var e,i,n,s,o,r;if(i=this[0],(e=(o=this.parent()).contents())[0]===i)return o.prepend(t);for(n=s=1,r=e.length-1;1<=r?s<=r:s>=r;n=1<=r?++s:--s)if(e[n]===i)return void angular.element(e[n-1]).after(t);throw new Error("invalid DOM structure "+i.outerHTML)},height:function(t){return void 0!==t?(angular.isNumber(t)&&(t+="px"),n.call(this,"height",t)):a(this[0],"height","base")},outerHeight:function(t){return a(this[0],"height",t?"outerfull":"outer")},outerWidth:function(t){return a(this[0],"width",t?"outerfull":"outer")},offset:function(t){var e,i,n={top:0,left:0},s=this[0],o=s&&s.ownerDocument;if(arguments.length){if(void 0===t)return this;throw new Error("offset setter method is not implemented")}if(o)return e=o.documentElement,null!=s.getBoundingClientRect&&(n=s.getBoundingClientRect()),i=o.defaultView||o.parentWindow,{top:n.top+(i.pageYOffset||e.scrollTop)-(e.clientTop||0),left:n.left+(i.pageXOffset||e.scrollLeft)-(e.clientLeft||0)}},scrollTop:function(t){return r(this,"top",t)},scrollLeft:function(t){return r(this,"left",t)}},(function(e,i){if(!t.prototype[i])return t.prototype[i]=e}))}}])&&n(i.prototype,s),Object.defineProperty(i,"prototype",{writable:!1}),t}();function o(t){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function r(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,(void 0,s=function(t,e){if("object"!==o(t)||null===t)return t;var i=t[Symbol.toPrimitive];if(void 0!==i){var n=i.call(t,e);if("object"!==o(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(n.key,"string"),"symbol"===o(s)?s:String(s)),n)}var s}var a="ng-ui-scroll-hide",l=function(){function t(e,i){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.$animate=e.has&&e.has("$animate")?e.get("$animate"):null,this.isAngularVersionLessThen1_3=1===angular.version.major&&angular.version.minor<3,this.$q=i}var e,i,n;return e=t,n=[{key:"addCSSRules",value:function(){var t,e="."+a,i="display: none",n=document.styleSheets[0];try{t=n.cssRules.length}catch(e){t=0}"insertRule"in n?n.insertRule(e+"{"+i+"}",t):"addRule"in n&&n.addRule(e,i,t)}}],(i=[{key:"hideElement",value:function(t){t.element.addClass(a)}},{key:"showElement",value:function(t){t.element.removeClass(a)}},{key:"insertElement",value:function(t,e){return e.after(t),[]}},{key:"removeElement",value:function(t){return t.element.remove(),t.scope.$destroy(),[]}},{key:"insertElementAnimated",value:function(t,e){if(!this.$animate)return this.insertElement(t,e);if(this.isAngularVersionLessThen1_3){var i=this.$q.defer();return this.$animate.enter(t,null,e,(function(){return i.resolve()})),[i.promise]}return[this.$animate.enter(t,null,e)]}},{key:"removeElementAnimated",value:function(t){if(!this.$animate)return this.removeElement(t);if(this.isAngularVersionLessThen1_3){var e=this.$q.defer();return this.$animate.leave(t.element,(function(){return t.scope.$destroy(),e.resolve()})),[e.promise]}return[this.$animate.leave(t.element).then((function(){return t.scope.$destroy()}))]}}])&&r(e.prototype,i),n&&r(e,n),Object.defineProperty(e,"prototype",{writable:!1}),t}(),h="prepend",u="append",c="insert",p="remove",d="none";function g(t,e,i){var n=Object.create(Array.prototype);return angular.extend(n,{size:e,reset:function(t){n.remove(0,n.length),n.eof=!1,n.bof=!1,n.first=t,n.next=t,n.minIndex=t,n.maxIndex=t,n.minIndexUser=null,n.maxIndexUser=null},append:function(t){t.forEach((function(t){++n.next,n.insert(u,t)})),n.maxIndex=n.eof?n.next-1:Math.max(n.next-1,n.maxIndex)},prepend:function(t,e){t.reverse().forEach((function(t){e?++n.next:--n.first,n.insert(h,t)})),n.minIndex=n.bof?n.minIndex=n.first:Math.min(n.first,n.minIndex)},insert:function(t,e,i){var s={item:e};if(t%1==0)s.op=c,n.splice(t,0,s),i?n.first--:n.next++;else switch(s.op=t,t){case u:n.push(s);break;case h:n.unshift(s)}},remove:function(e,i){if(angular.isNumber(e)){for(var s=e;s<i;s++)t.removeElement(n[s]);return n.splice(e,i-e)}return n.splice(n.indexOf(e),1),e.shiftTop&&n.first===this.getAbsMinIndex()?this.incrementMinIndex():this.decrementMaxIndex(),e.shiftTop?n.first++:n.next--,n.length||(n.minIndex=Math.min(n.maxIndex,n.minIndex)),t.removeElementAnimated(e)},incrementMinIndex:function(){if(null!==n.minIndexUser){if(n.minIndex>n.minIndexUser)return void n.minIndexUser++;n.minIndex===n.minIndexUser&&n.minIndexUser++}n.minIndex++},decrementMaxIndex:function(){null!==n.maxIndexUser&&n.maxIndex<=n.maxIndexUser&&n.maxIndexUser--,n.maxIndex--},getAbsMinIndex:function(){return null!==n.minIndexUser?Math.min(n.minIndexUser,n.minIndex):n.minIndex},getAbsMaxIndex:function(){return null!==n.maxIndexUser?Math.max(n.maxIndexUser,n.maxIndex):n.maxIndex},effectiveHeight:function(t){if(!t.length)return 0;var e=Number.MAX_VALUE,i=Number.NEGATIVE_INFINITY;return t.forEach((function(t){t.element[0].offsetParent&&(e=Math.min(e,t.element.offset().top),i=Math.max(i,t.element.offset().top+t.element.outerHeight(!0)))})),Math.max(0,i-e)},getItems:function(){return n.filter((function(t){return t.op===d}))},getFirstItem:function(){var t=n.getItems();return t.length?t[0].item:null},getLastItem:function(){var t=n.getItems();return t.length?t[t.length-1].item:null}}),n.reset(i),n}function f(t){return(f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function m(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function b(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,(void 0,s=function(t,e){if("object"!==f(t)||null===t)return t;var i=t[Symbol.toPrimitive];if(void 0!==i){var n=i.call(t,e);if("object"!==f(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(n.key,"string"),"symbol"===f(s)?s:String(s)),n)}var s}function v(t,e,i){return e&&b(t.prototype,e),i&&b(t,i),Object.defineProperty(t,"prototype",{writable:!1}),t}var y=function(){function t(){m(this,t)}return v(t,[{key:"add",value:function(t){for(var e=this.length-1;e>=0;e--)if(this[e].index===t.scope.$index)return void(this[e].height=t.element.outerHeight());this.push({index:t.scope.$index,height:t.element.outerHeight()}),this.sort((function(t,e){return t.index<e.index?-1:t.index>e.index?1:0}))}},{key:"remove",value:function(t,e){for(var i=t%1==0?t:t.scope.$index,n=t%1==0?e:t.shiftTop,s=this.length-1;s>=0;s--)if(this[s].index===i){this.splice(s,1);break}if(!n)for(var o=this.length-1;o>=0;o--)this[o].index>i&&this[o].index--}},{key:"clear",value:function(){this.length=0}}]),t}();function x(){var t=[];return t.push.apply(t,arguments),Object.setPrototypeOf(t,x.prototype),t}x.prototype=Object.create(Array.prototype),Object.getOwnPropertyNames(y.prototype).forEach((function(t){return x.prototype[t]=y.prototype[t]}));var w=function(){function t(e){m(this,t),this.element=function(t){if(t.nodeType!==Node.ELEMENT_NODE)throw new Error("ui-scroll directive requires an Element node for templating the view");var e;switch(t.tagName.toLowerCase()){case"dl":throw new Error("ui-scroll directive does not support <".concat(t.tagName,"> as a repeating tag: ").concat(t.outerHTML));case"tr":e=angular.element("<table><tr><td><div></div></td></tr></table>").find("tr");break;case"li":e=angular.element("<li></li>");break;default:e=angular.element("<div></div>")}return e}(e),this.cache=new x}return v(t,[{key:"height",value:function(){return this.element.height.apply(this.element,arguments)}}]),t}();function S(t,e,i,n,s,o){var r=null,a=null,l=n&&n.viewport?n.viewport:angular.element(window),h=n&&n.container?n.container:void 0,u=n&&n.scope?n.scope:s;function c(){return l.outerHeight()*o}return l.css({"overflow-anchor":"none","overflow-y":"auto",display:"block"}),angular.extend(l,{getScope:function(){return u},createPaddingElements:function(t){r=new w(t),a=new w(t),i.before(r.element),i.after(a.element),r.height(0),a.height(0)},applyContainerStyle:function(){return!h||(h!==l&&l.css("height",window.getComputedStyle(h[0]).height),l.height()>0)},bottomDataPos:function(){var t=l[0].scrollHeight;return(t=null!=t?t:l[0].document.documentElement.scrollHeight)-a.height()},topDataPos:function(){return r.height()},bottomVisiblePos:function(){return l.scrollTop()+l.outerHeight()},topVisiblePos:function(){return l.scrollTop()},insertElement:function(e,i){return t.insertElement(e,i||r.element)},insertElementAnimated:function(e,i){return t.insertElementAnimated(e,i||r.element)},shouldLoadBottom:function(){return!e.eof&&l.bottomDataPos()<l.bottomVisiblePos()+c()},clipBottom:function(){for(var t=0,i=0,n=0,s=l.bottomDataPos()-l.bottomVisiblePos()-c(),o=e.length-1;o>=0&&!(i+(n=e[o].element.outerHeight(!0))>s);o--)a.cache.add(e[o]),i+=n,t++;t>0&&(e.eof=!1,e.remove(e.length-t,e.length),e.next-=t,l.adjustPaddings())},shouldLoadTop:function(){return!e.bof&&l.topDataPos()>l.topVisiblePos()-c()},clipTop:function(){for(var t=0,i=0,n=0,s=l.topVisiblePos()-l.topDataPos()-c(),o=0;o<e.length&&!(i+(n=e[o].element.outerHeight(!0))>s);o++)r.cache.add(e[o]),i+=n,t++;t>0&&(r.height(r.height()+i),e.bof=!1,e.remove(0,t),e.first+=t)},adjustPaddings:function(){if(e.length){var t=e.reduce((function(t,e){return t+e.element.outerHeight(!0)}),0),i=0,n=0;r.cache.forEach((function(t){t.index<e.first&&(i+=t.height,n++)}));var s=0,o=0;a.cache.forEach((function(t){t.index>=e.next&&(s+=t.height,o++)}));var l=(t+i+s)/(n+o+e.length),h=null!==e.minIndexUser&&e.minIndex>e.minIndexUser,u=null!==e.maxIndexUser&&e.maxIndex<e.maxIndexUser,c=h?(e.minIndex-e.minIndexUser)*l:0,p=u?(e.maxIndexUser-e.maxIndex)*l:0;r.height(i+c),a.height(s+p)}},onAfterMinIndexSet:function(t){if(null!==e.minIndexUser&&e.minIndex>e.minIndexUser){var i=r.height()-t;for(l.scrollTop(l.scrollTop()+i);(i-=l.scrollTop())>0;)a.height(a.height()+i),l.scrollTop(l.scrollTop()+i)}},onAfterPrepend:function(t){if(t.prepended.length){var i=e.effectiveHeight(t.prepended),n=r.height()-i;if(n>=0)r.height(n);else{var s=l.scrollTop(),o=s-n;l.synthetic={previous:s,next:o},r.height(0),l.scrollTop(o)}}},resetTopPadding:function(){r.height(0),r.cache.clear()},resetBottomPadding:function(){a.height(0),a.cache.clear()},removeCacheItem:function(t,e){r.cache.remove(t,e),a.cache.remove(t,e)},removeItem:function(t){return this.removeCacheItem(t),e.remove(t)}}),l}function T(t){return(T="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function L(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,(void 0,s=function(t,e){if("object"!==T(t)||null===t)return t;var i=t[Symbol.toPrimitive];if(void 0!==i){var n=i.call(t,e);if("object"!==T(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(n.key,"string"),"symbol"===T(s)?s:String(s)),n)}var s}var V=function(){function t(e,i,n,s,o,r,a){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.$parse=i,this.$attr=n,this.viewport=s,this.buffer=o,this.doAdjust=r,this.reload=a,this.isLoading=!1,this.disabled=!1;var l=s.getScope();this.startScope=l.$parent?l:e,this.publicContext={},this.assignAdapter(n.adapter),this.generatePublicContext()}var e,i;return e=t,(i=[{key:"assignAdapter",value:function(t){if(t&&(t=t.replace(/^\s+|\s+$/gm,""))){var e;try{this.$parse(t).assign(this.startScope,{}),e=this.$parse(t)(this.startScope)}catch(e){throw e.message="Angular ui-scroll Adapter assignment exception.\n"+"Can't parse \"".concat(t,'" expression.\n')+e.message,e}angular.extend(e,this.publicContext),this.publicContext=e}}},{key:"generatePublicContext",value:function(){for(var t=this,e=["reload","applyUpdates","append","prepend","isBOF","isEOF","isEmpty"],i=e.length-1;i>=0;i--)this.publicContext[e[i]]=this[e[i]].bind(this);for(var n=["isLoading","topVisible","topVisibleElement","topVisibleScope","bottomVisible","bottomVisibleElement","bottomVisibleScope"],s=function(e){var i,s=t.$attr[n[e]];Object.defineProperty(t,n[e],{get:function(){return i},set:function(o){i=o,t.publicContext[n[e]]=o,s&&t.$parse(s).assign(t.startScope,o)}})},o=n.length-1;o>=0;o--)s(o);for(var r=["bufferFirst","bufferLast","bufferLength"],a=function(e){Object.defineProperty(t.publicContext,r[e],{get:function(){return t[r[e]]}})},l=r.length-1;l>=0;l--)a(l);Object.defineProperty(this.publicContext,"disabled",{get:function(){return t.disabled},set:function(e){return(t.disabled=e)?null:t.doAdjust()}})}},{key:"loading",value:function(t){this.isLoading=t}},{key:"isBOF",value:function(){return this.buffer.bof}},{key:"isEOF",value:function(){return this.buffer.eof}},{key:"isEmpty",value:function(){return!this.buffer.length}},{key:"bufferLength",get:function(){return this.buffer.getItems().length}},{key:"bufferFirst",get:function(){return this.buffer.getFirstItem()}},{key:"bufferLast",get:function(){return this.buffer.getLastItem()}},{key:"append",value:function(t){this.buffer.append(t),this.doAdjust(),this.viewport.clipTop(),this.viewport.clipBottom()}},{key:"prepend",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.buffer.prepend(t,e.immutableTop),this.doAdjust(),this.viewport.clipTop(),this.viewport.clipBottom()}},{key:"applyUpdates",value:function(t,e,i){"function"==typeof t?this.applyUpdatesFunc(t,e):this.applyUpdatesIndex(t,e,i),this.doAdjust()}},{key:"applyUpdatesFunc",value:function(t){var e=this,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.buffer.slice(0).forEach((function(n){e.applyUpdate(n,t(n.item,n.scope,n.element),i)}))}},{key:"applyUpdatesIndex",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(t%1!=0)throw new Error("applyUpdates - "+t+" is not a valid index (should be an integer)");var n=t-this.buffer.first;n>=0&&n<this.buffer.length?this.applyUpdate(this.buffer[n],e,i):t>=this.buffer.getAbsMinIndex()&&t<=this.buffer.getAbsMaxIndex()&&angular.isArray(e)&&!e.length&&(this.viewport.removeCacheItem(t,!i.immutableTop&&t===this.buffer.minIndex),i.immutableTop||t!==this.buffer.getAbsMinIndex()?this.buffer.decrementMaxIndex():this.buffer.incrementMinIndex())}},{key:"applyUpdate",value:function(t,e){var i=this,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(angular.isArray(e)){var s=this.buffer.indexOf(t);e.reverse().some((function(e){return e===t.item}))||(t.op=p,n.immutableTop||e.length||(0===s&&this.buffer.bof||0!==s&&this.buffer[s-1].shiftTop)&&(t.shiftTop=!0)),e.forEach((function(e){e===t.item?s--:i.buffer.insert(s+1,e,!n.immutableTop&&-1===s)}))}}},{key:"calculateProperties",value:function(){for(var t=null,e=0,i=!1,n=!1,s=this.buffer.length,o=0;o<s;o++){var r=this.buffer[o],a=r.element.offset().top;if(t!==a){var l=r.element.outerHeight(!0),h=this.viewport.topDataPos()+e+l;!i&&h>this.viewport.topVisiblePos()&&(i=!0,this.topVisible=r.item,this.topVisibleElement=r.element,this.topVisibleScope=r.scope),!n&&(h>=this.viewport.bottomVisiblePos()||o===s-1&&this.isEOF())&&(n=!0,this.bottomVisible=r.item,this.bottomVisibleElement=r.element,this.bottomVisibleScope=r.scope),e+=l}if(t=a,i&&n)break}}}])&&L(e.prototype,i),Object.defineProperty(e,"prototype",{writable:!1}),t}();angular.module("ui.scroll",[]).constant("JQLiteExtras",s).run(["JQLiteExtras",function(t){var e=angular.element;!(window.jQuery&&e.fn&&e.fn.jquery)&&(new t).registerFor(e),l.addCSSRules()}]).directive("uiScrollViewport",(function(){return{restrict:"A",controller:["$scope","$element",function(t,e){var i=this;return this.container=e,this.viewport=e,this.scope=t,angular.forEach(e.children(),(function(t){"tbody"===t.tagName.toLowerCase()&&(i.viewport=angular.element(t))})),this}]}})).directive("uiScroll",["$log","$injector","$rootScope","$timeout","$interval","$q","$parse",function(t,e,i,n,s,o,r){return{require:["?^uiScrollViewport"],restrict:"A",transclude:"element",priority:1e3,terminal:!0,link:function(t,a,f,m,b){var v=f.uiScroll.match(/^\s*(\w+)\s+in\s+([(\w|\$)\.]+)\s*$/);if(!v)throw new Error("Expected uiScroll in form of '_item_ in _datasource_' but got '"+f.uiScroll+"'");function y(t,e,i){return i||(t=null===t?e:Math.floor(t)),isNaN(t)?e:t}function x(e,i,n){return y(r(e)(t),i,n)}var w,T,L=null,H=v[1],k=v[2],E=m[0],P=Math.max(3,x(f.bufferSize,10)),z=Math.max(.3,x(f.padding,.5,!0)),A=(w=f.handleInertia,!0,"boolean"!=typeof(T=r(w)(t))||T),$=x(f.startIndex,1),B=0,I=[],C=new l(e,o),O=new g(C,P,$),R=new S(C,O,a,E,i,z),M=new V(t,r,f,R,O,Z,(function(){K(),R.resetTopPadding(),R.resetBottomPadding(),arguments.length&&($=y(arguments[0],1,!1)),O.reset($),j(L,"minIndex"),j(L,"maxIndex"),Z()}));E&&(E.adapter=M);var D=function(){return"[object Object]"===Object.prototype.toString.call(L)&&"function"==typeof L.get};if(L=r(k)(t),!D()&&(L=e.get(k),!D()))throw new Error(k+" is not a valid datasource");var F=[];function j(t,e){var i;angular.isNumber(t[e])&&(i=t[e],angular.isNumber(i)&&(F=F.filter((function(t){return t.id!==e}))).push({id:e,run:function(){return t[e]=i}}))}function U(t,e,i){var n,s=Object.getOwnPropertyDescriptor(t,e);s&&(s.set||s.get)||(j(t,e),Object.defineProperty(t,e,{set:function(s){if(n=s,!I.length||O.length){O[i]=s;var o=R.topDataPos();R.adjustPaddings(),"minIndex"===e&&R.onAfterMinIndexSet(o)}else j(t,e)},get:function(){return n}}))}U(L,"minIndex","minIndexUser"),U(L,"maxIndex","maxIndexUser");var N=2!==L.get.length?function(t){return L.get(O.next,P,t)}:function(t){L.get({index:O.next,append:O.length?O[O.length-1].item:void 0,count:P},t)},W=2!==L.get.length?function(t){return L.get(O.first-P,P,t)}:function(t){L.get({index:O.first-P,prepend:O.length?O[0].item:void 0,count:P},t)};function q(e){return e&&e!==B||t.$$destroyed}function K(){R.off("resize",it),R.off("scroll",it)}function G(t){return t.element.height()&&t.element[0].offsetParent}function _(t,e){X(t,e,R.insertElement),G(t)||(t.unregisterVisibilityWatcher=t.scope.$watch((function(){return function(t){G(t)&&(O.forEach((function(t){"function"==typeof t.unregisterVisibilityWatcher&&(t.unregisterVisibilityWatcher(),delete t.unregisterVisibilityWatcher)})),I.length||n((function(){return Z()})))}(t)}))),C.hideElement(t)}function X(t,e,i){var n=null,s=e>0?O[e-1].element:void 0;if(b((function(e,o){n=i(e,s),t.element=e,t.scope=o,o[H]=t.item})),M.transform){var o=t.scope.uiScrollTdInitializer;o&&o.linking?M.transform(t.scope,t.element):t.scope.uiScrollTdInitializer={onLink:function(){return M.transform(t.scope,t.element)},scope:t.scope}}return n}function Y(t,e){e.animated.length?o.all(e.animated).then((function(){R.adjustPaddings(),Z(t)})):R.adjustPaddings()}function Q(t,e){R.shouldLoadBottom()?(!e||O.effectiveHeight(e.inserted)>0)&&1===I.push(!0)&&(M.loading(!0),et(t)):R.shouldLoadTop()&&(!e||O.effectiveHeight(e.prepended)>0||I[0])&&1===I.push(!1)&&(M.loading(!0),et(t))}function J(){var e,n,s,o,r=(e=[],n=[],s=[],o=[],O.forEach((function(t,i){switch(t.op){case h:n.unshift(t);break;case u:_(t,i),t.op=d,o.push(t);break;case c:e=e.concat(X(t,i,R.insertElementAnimated)),t.op=d,o.push(t);break;case p:s.push(t)}})),s.forEach((function(t){return e=e.concat(R.removeItem(t))})),n.length&&n.forEach((function(t){_(t),t.op=d})),O.forEach((function(t,e){return t.scope.$index=O.first+e})),{prepended:n,removed:s,inserted:o,animated:e});return!t.$$phase&&!i.$$phase&&t.$digest(),r.inserted.forEach((function(t){return C.showElement(t)})),r.prepended.forEach((function(t){return C.showElement(t)})),r}function Z(t){t||(I=[],t=++B);var e=J();q(t)||(Y(t,e),Q(t),I.length||M.calculateProperties())}function tt(t){var e=J();R.onAfterPrepend(e),q(t)||(Y(t,e),F.forEach((function(t){return t.run()})),F=[],Q(t,e),I.shift(),I.length?et(t):(M.loading(!1),R.on("resize",it),R.on("scroll",it),M.calculateProperties()))}function et(t){I[0]?O.length&&!R.shouldLoadBottom()?tt(t):N((function(e){q(t)||(e.length<P&&(O.eof=!0),e.length>0&&(R.clipTop(),O.append(e)),tt(t))})):O.length&&!R.shouldLoadTop()?tt(t):W((function(e){q(t)||(e.length<P&&(O.bof=!0),e.length>0&&(O.length&&R.clipBottom(),O.prepend(e)),tt(t))}))}function it(){A&&function(){if(R.synthetic){var t=R.synthetic.previous,e=R.synthetic.next;if(R.scrollTop()!==e)return requestAnimationFrame((function(){var i=R.scrollTop(),n=t-i;n>0?R.scrollTop(e-n):R.scrollTop(e),R.synthetic=null})),!0;R.synthetic=null}}()||i.$$phase||M.isLoading||M.disabled||(Q(B),I.length?K():(M.calculateProperties(),!t.$$phase&&t.$digest()))}function nt(t){if(!M.disabled){var e=R[0].scrollTop,i=R[0].scrollHeight-R[0].clientHeight;(0===e&&!O.bof||e===i&&!O.eof)&&t.preventDefault()}}b((function(t,e){R.createPaddingElements(t[0]),e.$destroy(),t.remove()})),t.$on("$destroy",(function(){K(),R.off("mousewheel",nt)})),R.on("mousewheel",nt),function(){var t=0;if(R.applyContainerStyle())Z();else var e=s((function(){if(t++,R.applyContainerStyle()&&(s.cancel(e),Z()),50*t>=500)throw s.cancel(e),Error("ui-scroll directive requires a viewport with non-zero height in ".concat(500,"ms"))}),50)}()}}}])}()},611:function(t,e){!function(){"use strict";angular.module("ui.scroll.jqlite",[])}()},612:function(t,e,i){var n,s,o;/*! angularjs-slider - v7.1.0 - (c) Rafal Zajac <rzajac@gmail.com>, Valentin Hervieu <valentin@hervi.eu>, Jussi Saarivirta <jusasi@gmail.com>, Angelin Sirbu <angelin.sirbu@gmail.com> - https://github.com/angular-slider/angularjs-slider - 2022-05-26 */!function(r,a){"use strict";s=[i(450)],void 0===(o="function"==typeof(n=function(t){var e=t.module("rzSlider",[]).factory("RzSliderOptions",(function(){var e={floor:0,ceil:null,step:1,precision:0,minRange:null,maxRange:null,restrictedRange:null,skipRestrictedRangesWithArrowKeys:null,pushRange:!1,minLimit:null,maxLimit:null,id:null,translate:null,getLegend:null,stepsArray:null,bindIndexForStepsArray:!1,draggableRange:!1,draggableRangeOnly:!1,showSelectionBar:!1,showSelectionBarEnd:!1,showSelectionBarFromValue:null,showOuterSelectionBars:!1,hidePointerLabels:!1,hideLimitLabels:!1,autoHideLimitLabels:!0,readOnly:!1,disabled:!1,interval:350,showTicks:!1,showTicksValues:!1,ticksArray:null,ticksTooltip:null,ticksValuesTooltip:null,vertical:!1,getSelectionBarColor:null,getTickColor:null,getPointerColor:null,keyboardSupport:!0,scale:1,enforceStep:!0,enforceRange:!1,noSwitching:!1,onlyBindHandles:!1,disableAnimation:!1,onStart:null,onChange:null,onEnd:null,rightToLeft:!1,reversedControls:!1,boundPointerLabels:!0,mergeRangeLabelsIfSame:!1,labelOverlapSeparator:" - ",customTemplateScope:null,logScale:!1,customValueToPosition:null,customPositionToValue:null,selectionBarGradient:null,ariaLabel:null,ariaLabelledBy:null,ariaLabelHigh:null,ariaLabelledByHigh:null},i={},n={options:function(e){t.extend(i,e)},getOptions:function(n){return t.extend({},e,i,n)}};return n})).factory("rzThrottle",["$timeout",function(t){return function(e,i,n){var s,o,r,a=Date.now||function(){return(new Date).getTime()},l=null,h=0;n=n||{};var u=function(){h=a(),l=null,r=e.apply(s,o),s=o=null};return function(){var c=a(),p=i-(c-h);return s=this,o=arguments,0>=p?(t.cancel(l),l=null,h=c,r=e.apply(s,o),s=o=null):l||!1===n.trailing||(l=t(u,p)),r}}}]).factory("RzSlider",["$timeout","$document","$window","$compile","RzSliderOptions","rzThrottle",function(e,i,n,s,o,r){var a=function(t,e){this.scope=t,this.lowValue=0,this.highValue=0,this.sliderElem=e,this.range=void 0!==this.scope.rzSliderModel&&void 0!==this.scope.rzSliderHigh,this.dragging={active:!1,value:0,difference:0,position:0,lowLimit:0,highLimit:0},this.positionProperty="left",this.dimensionProperty="width",this.handleHalfDim=0,this.maxPos=0,this.precision=0,this.step=1,this.tracking="",this.minValue=0,this.maxValue=0,this.valueRange=0,this.intermediateTicks=!1,this.initHasRun=!1,this.firstKeyDown=!1,this.internalChange=!1,this.cmbLabelShown=!1,this.currentFocusElement=null,this.moving=!1,this.fullBar=null,this.selBar=null,this.minH=null,this.maxH=null,this.flrLab=null,this.ceilLab=null,this.minLab=null,this.maxLab=null,this.cmbLab=null,this.ticks=null,this.init()};return a.prototype={init:function(){var e,i,s=this,o=function(){s.calcViewDimensions()};this.applyOptions(),this.syncLowValue(),this.range&&this.syncHighValue(),this.initElemHandles(),this.manageElementsStyle(),this.setDisabledState(),this.calcViewDimensions(),this.setMinAndMax(),this.updateRestrictionBar(),this.addAccessibility(),this.updateCeilLab(),this.updateFloorLab(),this.initHandles(),this.manageEventsBindings(),this.scope.$on("reCalcViewDimensions",o),t.element(n).on("resize",o),this.initHasRun=!0,this.options.disableAnimation&&this.sliderElem.addClass("noanimate"),e=r((function(){s.onLowHandleChange()}),s.options.interval),i=r((function(){s.onHighHandleChange()}),s.options.interval),this.scope.$on("rzSliderForceRender",(function(){s.resetLabelsValue(),e(),s.range&&i(),s.resetSlider()})),this.scope.$watchCollection("rzSliderOptions()",(function(t,e){t!==e&&(s.applyOptions(),s.syncLowValue(),s.range&&s.syncHighValue(),s.resetSlider())})),this.scope.$watch("rzSliderModel",(function(t,i){s.internalChange||t!==i&&e()})),this.scope.$watch("rzSliderHigh",(function(t,e){s.internalChange||t!==e&&(null!=t&&i(),(s.range&&null==t||!s.range&&null!=t)&&(s.applyOptions(),s.resetSlider()))})),this.scope.$on("$destroy",(function(){s.unbindEvents(),t.element(n).off("resize",o),s.currentFocusElement=null}))},findStepIndex:function(e){for(var i=0,n=0;n<this.options.stepsArray.length;n++){var s=this.options.stepsArray[n];if(s===e){i=n;break}if(t.isDate(s)){if(s.getTime()===e.getTime()){i=n;break}}else if(t.isObject(s)&&(t.isDate(s.value)&&s.value.getTime()===e.getTime()||s.value===e)){i=n;break}}return i},syncLowValue:function(){this.options.stepsArray?this.options.bindIndexForStepsArray?this.lowValue=this.scope.rzSliderModel:this.lowValue=this.findStepIndex(this.scope.rzSliderModel):this.lowValue=this.scope.rzSliderModel},syncHighValue:function(){this.options.stepsArray?this.options.bindIndexForStepsArray?this.highValue=this.scope.rzSliderHigh:this.highValue=this.findStepIndex(this.scope.rzSliderHigh):this.highValue=this.scope.rzSliderHigh},getStepValue:function(e){var i=this.options.stepsArray[e];return t.isDate(i)?i:t.isObject(i)?i.value:i},applyLowValue:function(){this.options.stepsArray?this.options.bindIndexForStepsArray?this.scope.rzSliderModel=this.lowValue:this.scope.rzSliderModel=this.getStepValue(this.lowValue):this.scope.rzSliderModel=this.lowValue},applyHighValue:function(){this.options.stepsArray?this.options.bindIndexForStepsArray?this.scope.rzSliderHigh=this.highValue:this.scope.rzSliderHigh=this.getStepValue(this.highValue):this.scope.rzSliderHigh=this.highValue},onLowHandleChange:function(){this.syncLowValue(),this.range&&this.syncHighValue(),this.setMinAndMax(),this.updateLowHandle(this.valueToPosition(this.lowValue)),this.updateSelectionBar(),this.updateTicksScale(),this.updateAriaAttributes(),this.range&&this.updateCmbLabel()},onHighHandleChange:function(){this.syncLowValue(),this.syncHighValue(),this.setMinAndMax(),this.updateHighHandle(this.valueToPosition(this.highValue)),this.updateSelectionBar(),this.updateTicksScale(),this.updateCmbLabel(),this.updateAriaAttributes()},applyOptions:function(){var e;e=this.scope.rzSliderOptions?this.scope.rzSliderOptions():{},this.options=o.getOptions(e),this.options.step<=0&&(this.options.step=1),this.range=void 0!==this.scope.rzSliderModel&&void 0!==this.scope.rzSliderHigh,this.options.draggableRange=this.range&&this.options.draggableRange,this.options.draggableRangeOnly=this.range&&this.options.draggableRangeOnly,this.options.draggableRangeOnly&&(this.options.draggableRange=!0),this.options.showTicks=this.options.showTicks||this.options.showTicksValues||!!this.options.ticksArray,this.scope.showTicks=this.options.showTicks,(t.isNumber(this.options.showTicks)||this.options.ticksArray)&&(this.intermediateTicks=!0),this.options.showSelectionBar=this.options.showSelectionBar||this.options.showSelectionBarEnd||null!==this.options.showSelectionBarFromValue,this.options.stepsArray?this.parseStepsArray():(this.options.translate?this.customTrFn=this.options.translate:this.customTrFn=function(t){return String(t)},this.getLegend=this.options.getLegend),this.options.vertical?(this.positionProperty="bottom",this.dimensionProperty="height"):(this.positionProperty="left",this.dimensionProperty="width"),this.options.customTemplateScope&&(this.scope.custom=this.options.customTemplateScope)},parseStepsArray:function(){this.options.floor=0,this.options.ceil=this.options.stepsArray.length-1,this.options.step=1,this.options.translate?this.customTrFn=this.options.translate:this.customTrFn=function(t){return this.options.bindIndexForStepsArray?this.getStepValue(t):t},this.getLegend=function(e){var i=this.options.stepsArray[e];return t.isObject(i)?i.legend:null}},resetSlider:function(){this.resetLabelsValue(),this.manageElementsStyle(),this.addAccessibility(),this.setMinAndMax(),this.updateCeilLab(),this.updateFloorLab(),this.unbindEvents(),this.manageEventsBindings(),this.setDisabledState(),this.calcViewDimensions(),this.updateRestrictionBar(),this.refocusPointerIfNeeded()},refocusPointerIfNeeded:function(){this.currentFocusElement&&(this.onPointerFocus(this.currentFocusElement.pointer,this.currentFocusElement.ref),this.focusElement(this.currentFocusElement.pointer))},ensureRestrictedBarIsArray:function(e){var i=t.element(e);if(this.restrictedBar=[],this.options.restrictedRange){this.options.restrictedRange=Array.isArray(this.options.restrictedRange)?this.options.restrictedRange:[this.options.restrictedRange],this.restrictedBar[0]=i;for(var n=e.parentElement,s=1;s<this.options.restrictedRange.length;s++){var o=document.createElement("span");o.setAttribute("class","rz-bar-wrapper"),o.innerHTML='<span class="rz-bar rz-restricted" ng-style="restrictionStyle"></span>',n.appendChild(o),this.restrictedBar[s]=t.element(o)}}else e.style.visibility="hidden",this.restrictedBar=null},initElemHandles:function(){t.forEach(this.sliderElem.children(),(function(e,i){var n=t.element(e);switch(i){case 0:this.leftOutSelBar=n;break;case 1:this.rightOutSelBar=n;break;case 2:this.fullBar=n;break;case 3:this.selBar=n;break;case 4:this.ensureRestrictedBarIsArray(e);break;case 5:this.minH=n;break;case 6:this.maxH=n;break;case 7:this.flrLab=n;break;case 8:this.ceilLab=n;break;case 9:this.minLab=n;break;case 10:this.maxLab=n;break;case 11:this.cmbLab=n;break;case 12:this.ticks=n}}),this),this.selBar.rzsp=0,this.minH.rzsp=0,this.maxH.rzsp=0,this.flrLab.rzsp=0,this.ceilLab.rzsp=0,this.minLab.rzsp=0,this.maxLab.rzsp=0,this.cmbLab.rzsp=0},manageElementsStyle:function(){this.range?this.maxH.css("display",""):this.maxH.css("display","none"),this.alwaysHide(this.flrLab,this.options.showTicksValues||this.options.hideLimitLabels),this.alwaysHide(this.ceilLab,this.options.showTicksValues||this.options.hideLimitLabels);var t=this.options.showTicksValues&&!this.intermediateTicks;for(var e in this.alwaysHide(this.minLab,t||this.options.hidePointerLabels),this.alwaysHide(this.maxLab,t||!this.range||this.options.hidePointerLabels),this.alwaysHide(this.cmbLab,t||!this.range||this.options.hidePointerLabels),this.alwaysHide(this.selBar,!this.range&&!this.options.showSelectionBar),this.alwaysHide(this.leftOutSelBar,!this.range||!this.options.showOuterSelectionBars),this.restrictedBar)this.restrictedBar[e]&&this.alwaysHide(this.restrictedBar[e],!this.options.restrictedRange[e]);this.alwaysHide(this.rightOutSelBar,!this.range||!this.options.showOuterSelectionBars),this.range&&this.options.showOuterSelectionBars&&this.fullBar.addClass("rz-transparent"),this.options.vertical?this.sliderElem.addClass("rz-vertical"):this.sliderElem.removeClass("rz-vertical"),this.options.draggableRange?this.selBar.addClass("rz-draggable"):this.selBar.removeClass("rz-draggable"),this.intermediateTicks&&this.options.showTicksValues&&this.ticks.addClass("rz-ticks-values-under")},alwaysHide:function(t,e){t.rzAlwaysHide=e,e?this.hideEl(t):this.showEl(t)},manageEventsBindings:function(){this.options.disabled||this.options.readOnly?this.unbindEvents():this.bindEvents()},setDisabledState:function(){this.options.disabled?this.sliderElem.attr("disabled","disabled"):this.sliderElem.attr("disabled",null)},resetLabelsValue:function(){this.minLab.rzsv=void 0,this.maxLab.rzsv=void 0,this.flrLab.rzsv=void 0,this.ceilLab.rzsv=void 0,this.cmbLab.rzsv=void 0,this.resetPosition(this.flrLab),this.resetPosition(this.ceilLab),this.resetPosition(this.cmbLab),this.resetPosition(this.minLab),this.resetPosition(this.maxLab)},initHandles:function(){this.updateLowHandle(this.valueToPosition(this.lowValue)),this.range&&this.updateHighHandle(this.valueToPosition(this.highValue)),this.updateSelectionBar(),this.range&&this.updateCmbLabel(),this.updateTicksScale()},translateFn:function(t,e,i,n){n=void 0===n||n;var s="",o=!1,r=e.hasClass("no-label-injection");n?(this.options.stepsArray&&!this.options.bindIndexForStepsArray&&(t=this.getStepValue(t)),s=String(this.customTrFn(t,this.options.id,i))):s=String(t),(void 0===e.rzsv||e.rzsv.length!==s.length||e.rzsv.length>0&&0===e.rzsd)&&(o=!0,e.rzsv=s),r||e.html(s),this.scope[i+"Label"]=s,o&&this.getDimension(e)},setMinAndMax:function(){if(this.step=+this.options.step,this.precision=+this.options.precision,this.minValue=this.options.floor,this.options.logScale&&0===this.minValue)throw Error("Can't use floor=0 with logarithmic scale");this.options.enforceStep&&(this.lowValue=this.roundStep(this.lowValue),this.range&&(this.highValue=this.roundStep(this.highValue))),null!=this.options.ceil?this.maxValue=this.options.ceil:this.maxValue=this.options.ceil=this.range?this.highValue:this.lowValue,this.options.enforceRange&&(this.lowValue=this.sanitizeValue(this.lowValue),this.range&&(this.highValue=this.sanitizeValue(this.highValue))),this.applyLowValue(),this.range&&this.applyHighValue(),this.valueRange=this.maxValue-this.minValue},addAccessibility:function(){this.minH.attr("role","slider"),this.updateAriaAttributes(),!this.options.keyboardSupport||this.options.readOnly||this.options.disabled?this.minH.attr("tabindex",""):this.minH.attr("tabindex","0"),this.options.vertical?this.minH.attr("aria-orientation","vertical"):this.minH.attr("aria-orientation","horizontal"),this.options.ariaLabel?this.minH.attr("aria-label",this.options.ariaLabel):this.options.ariaLabelledBy&&this.minH.attr("aria-labelledby",this.options.ariaLabelledBy),this.range&&(this.maxH.attr("role","slider"),!this.options.keyboardSupport||this.options.readOnly||this.options.disabled?this.maxH.attr("tabindex",""):this.maxH.attr("tabindex","0"),this.options.vertical?this.maxH.attr("aria-orientation","vertical"):this.maxH.attr("aria-orientation","horizontal"),this.options.ariaLabelHigh?this.maxH.attr("aria-label",this.options.ariaLabelHigh):this.options.ariaLabelledByHigh&&this.maxH.attr("aria-labelledby",this.options.ariaLabelledByHigh))},updateAriaAttributes:function(){this.minH.attr({"aria-valuenow":this.scope.rzSliderModel,"aria-valuetext":this.customTrFn(this.scope.rzSliderModel,this.options.id,"model"),"aria-valuemin":this.minValue,"aria-valuemax":this.maxValue}),this.range&&this.maxH.attr({"aria-valuenow":this.scope.rzSliderHigh,"aria-valuetext":this.customTrFn(this.scope.rzSliderHigh,this.options.id,"high"),"aria-valuemin":this.minValue,"aria-valuemax":this.maxValue})},calcViewDimensions:function(){var t=this.getDimension(this.minH);if(this.handleHalfDim=t/2,this.barDimension=this.getDimension(this.fullBar),this.maxPos=this.barDimension-t,this.getDimension(this.sliderElem),this.sliderElem.rzsp=this.sliderElem[0].getBoundingClientRect()[this.positionProperty],this.initHasRun){this.updateFloorLab(),this.updateCeilLab(),this.initHandles();var i=this;e((function(){i.updateTicksScale()}))}},updateTicksScale:function(){if(this.options.showTicks){var e=this.options.ticksArray||this.getTicksArray(),i=this.options.vertical?"translateY":"translateX",n=this;this.options.rightToLeft&&e.reverse(),this.scope.ticks=e.map((function(e){var s=null;t.isObject(e)&&(s=e.legend,e=e.value);var o=n.valueToPosition(e);n.options.vertical&&(o=n.maxPos-o);var r=i+"("+Math.round(o)+"px)",a={legend:s,selected:n.isTickSelected(e),style:{"-webkit-transform":r,"-moz-transform":r,"-o-transform":r,"-ms-transform":r,transform:r}};return a.selected&&n.options.getSelectionBarColor&&(a.style["background-color"]=n.getSelectionBarColor()),!a.selected&&n.options.getTickColor&&(a.style["background-color"]=n.getTickColor(e)),n.options.ticksTooltip&&(a.tooltip=n.options.ticksTooltip(e),a.tooltipPlacement=n.options.vertical?"right":"top"),(!0===n.options.showTicksValues||e%n.options.showTicksValues==0)&&(a.value=n.getDisplayValue(e,"tick-value"),n.options.ticksValuesTooltip&&(a.valueTooltip=n.options.ticksValuesTooltip(e),a.valueTooltipPlacement=n.options.vertical?"right":"top")),n.getLegend&&((s=n.getLegend(e,n.options.id))&&(a.legend=s)),a}))}},getTicksArray:function(){var t=this.step,e=[];this.intermediateTicks&&(t=this.options.showTicks);for(var i=this.minValue;i<=this.maxValue;i+=t)e.push(i);return e},isTickSelected:function(t){if(!this.range)if(null!==this.options.showSelectionBarFromValue){var e=this.options.showSelectionBarFromValue;if(this.lowValue>e&&t>=e&&t<=this.lowValue)return!0;if(this.lowValue<e&&e>=t&&t>=this.lowValue)return!0}else if(this.options.showSelectionBarEnd){if(t>=this.lowValue)return!0}else if(this.options.showSelectionBar&&t<=this.lowValue)return!0;return!!(this.range&&t>=this.lowValue&&t<=this.highValue)},updateFloorLab:function(){this.translateFn(this.minValue,this.flrLab,"floor"),this.getDimension(this.flrLab);var t=this.options.rightToLeft?this.barDimension-this.flrLab.rzsd:0;this.setPosition(this.flrLab,t)},updateCeilLab:function(){this.translateFn(this.maxValue,this.ceilLab,"ceil"),this.getDimension(this.ceilLab);var t=this.options.rightToLeft?0:this.barDimension-this.ceilLab.rzsd;this.setPosition(this.ceilLab,t)},updateHandles:function(t,e){"lowValue"===t?this.updateLowHandle(e):this.updateHighHandle(e),this.updateSelectionBar(),this.updateTicksScale(),this.range&&this.updateCmbLabel()},getHandleLabelPos:function(t,e){var i=this[t].rzsd,n=e-i/2+this.handleHalfDim,s=this.barDimension-i;return this.options.boundPointerLabels?this.options.rightToLeft&&"minLab"===t||!this.options.rightToLeft&&"maxLab"===t?Math.min(n,s):Math.min(Math.max(n,0),s):n},updateLowHandle:function(t){if(this.setPosition(this.minH,t),this.translateFn(this.lowValue,this.minLab,"model"),this.setPosition(this.minLab,this.getHandleLabelPos("minLab",t)),this.options.getPointerColor){var e=this.getPointerColor("min");this.scope.minPointerStyle={backgroundColor:e}}this.options.autoHideLimitLabels&&this.shFloorCeil()},updateHighHandle:function(t){if(this.setPosition(this.maxH,t),this.translateFn(this.highValue,this.maxLab,"high"),this.setPosition(this.maxLab,this.getHandleLabelPos("maxLab",t)),this.options.getPointerColor){var e=this.getPointerColor("max");this.scope.maxPointerStyle={backgroundColor:e}}this.options.autoHideLimitLabels&&this.shFloorCeil()},shFloorCeil:function(){if(!this.options.hidePointerLabels){var t=!1,e=!1,i=this.isLabelBelowFloorLab(this.minLab),n=this.isLabelAboveCeilLab(this.minLab),s=this.isLabelAboveCeilLab(this.maxLab),o=this.isLabelBelowFloorLab(this.cmbLab),r=this.isLabelAboveCeilLab(this.cmbLab);if(i?(t=!0,this.hideEl(this.flrLab)):(t=!1,this.showEl(this.flrLab)),n?(e=!0,this.hideEl(this.ceilLab)):(e=!1,this.showEl(this.ceilLab)),this.range){var a=this.cmbLabelShown?r:s,l=this.cmbLabelShown?o:i;a?this.hideEl(this.ceilLab):e||this.showEl(this.ceilLab),l?this.hideEl(this.flrLab):t||this.showEl(this.flrLab)}}},isLabelBelowFloorLab:function(t){var e=this.options.rightToLeft,i=t.rzsp,n=t.rzsd,s=this.flrLab.rzsp,o=this.flrLab.rzsd;return e?i+n>=s-2:s+o+2>=i},isLabelAboveCeilLab:function(t){var e=this.options.rightToLeft,i=t.rzsp,n=t.rzsd,s=this.ceilLab.rzsp,o=this.ceilLab.rzsd;return e?s+o+2>=i:i+n>=s-2},updateRestrictionBar:function(){var t=0,e=0;if(this.options.restrictedRange)for(var i in this.options.restrictedRange=Array.isArray(this.options.restrictedRange)?this.options.restrictedRange:[this.options.restrictedRange],this.options.restrictedRange){var n=this.valueToPosition(this.options.restrictedRange[i].from),s=this.valueToPosition(this.options.restrictedRange[i].to);e=Math.abs(s-n),t=this.options.rightToLeft?s+this.handleHalfDim:n+this.handleHalfDim,this.setDimension(this.restrictedBar[i],e),this.setPosition(this.restrictedBar[i],t)}},updateSelectionBar:function(){var t=0,e=0,i=this.options.rightToLeft?!this.options.showSelectionBarEnd:this.options.showSelectionBarEnd,n=this.options.rightToLeft?this.maxH.rzsp+this.handleHalfDim:this.minH.rzsp+this.handleHalfDim;if(this.range)e=Math.abs(this.maxH.rzsp-this.minH.rzsp),t=n;else if(null!==this.options.showSelectionBarFromValue){var s=this.options.showSelectionBarFromValue,o=this.valueToPosition(s);(this.options.rightToLeft?this.lowValue<=s:this.lowValue>s)?(e=this.minH.rzsp-o,t=o+this.handleHalfDim):(e=o-this.minH.rzsp,t=this.minH.rzsp+this.handleHalfDim)}else i?(e=Math.abs(this.maxPos-this.minH.rzsp)+this.handleHalfDim,t=this.minH.rzsp+this.handleHalfDim):(e=this.minH.rzsp+this.handleHalfDim,t=0);if(this.setDimension(this.selBar,e),this.setPosition(this.selBar,t),this.range&&this.options.showOuterSelectionBars&&(this.options.rightToLeft?(this.setDimension(this.rightOutSelBar,t),this.setPosition(this.rightOutSelBar,0),this.setDimension(this.leftOutSelBar,this.getDimension(this.fullBar)-(t+e)),this.setPosition(this.leftOutSelBar,t+e)):(this.setDimension(this.leftOutSelBar,t),this.setPosition(this.leftOutSelBar,0),this.setDimension(this.rightOutSelBar,this.getDimension(this.fullBar)-(t+e)),this.setPosition(this.rightOutSelBar,t+e))),this.options.getSelectionBarColor){var r=this.getSelectionBarColor();this.scope.barStyle={backgroundColor:r}}else if(this.options.selectionBarGradient){var a=null!==this.options.showSelectionBarFromValue?this.valueToPosition(this.options.showSelectionBarFromValue):0,l=a-t>0^i,h=this.options.vertical?l?"bottom":"top":l?"left":"right";this.scope.barStyle={backgroundImage:"linear-gradient(to "+h+", "+this.options.selectionBarGradient.from+" 0%,"+this.options.selectionBarGradient.to+" 100%)"},this.options.vertical?(this.scope.barStyle.backgroundPosition="center "+(a+e+t+(l?-this.handleHalfDim:0))+"px",this.scope.barStyle.backgroundSize="100% "+(this.barDimension-this.handleHalfDim)+"px"):(this.scope.barStyle.backgroundPosition=a-t+(l?this.handleHalfDim:0)+"px center",this.scope.barStyle.backgroundSize=this.barDimension-this.handleHalfDim+"px 100%")}},getSelectionBarColor:function(){return this.range?this.options.getSelectionBarColor(this.scope.rzSliderModel,this.scope.rzSliderHigh):this.options.getSelectionBarColor(this.scope.rzSliderModel)},getPointerColor:function(t){return"max"===t?this.options.getPointerColor(this.scope.rzSliderHigh,t):this.options.getPointerColor(this.scope.rzSliderModel,t)},getTickColor:function(t){return this.options.getTickColor(t)},updateCmbLabel:function(){if(this.options.rightToLeft?this.minLab.rzsp-this.minLab.rzsd-10<=this.maxLab.rzsp:this.minLab.rzsp+this.minLab.rzsd+10>=this.maxLab.rzsp){var t,e=this.getDisplayValue(this.lowValue,"model"),i=this.getDisplayValue(this.highValue,"high");t=this.options.mergeRangeLabelsIfSame&&e===i?e:this.options.rightToLeft?i+this.options.labelOverlapSeparator+e:e+this.options.labelOverlapSeparator+i,this.translateFn(t,this.cmbLab,"cmb",!1);var n=this.options.boundPointerLabels?Math.min(Math.max(this.selBar.rzsp+this.selBar.rzsd/2-this.cmbLab.rzsd/2,0),this.barDimension-this.cmbLab.rzsd):this.selBar.rzsp+this.selBar.rzsd/2-this.cmbLab.rzsd/2;this.setPosition(this.cmbLab,n),this.cmbLabelShown=!0,this.hideEl(this.minLab),this.hideEl(this.maxLab),this.showEl(this.cmbLab)}else this.cmbLabelShown=!1,this.updateHighHandle(this.valueToPosition(this.highValue)),this.updateLowHandle(this.valueToPosition(this.lowValue)),this.showEl(this.maxLab),this.showEl(this.minLab),this.hideEl(this.cmbLab);this.options.autoHideLimitLabels&&this.shFloorCeil()},getDisplayValue:function(t,e){return this.options.stepsArray&&!this.options.bindIndexForStepsArray&&(t=this.getStepValue(t)),this.customTrFn(t,this.options.id,e)},roundStep:function(t,e){var i=e||this.step,n=parseFloat((t-this.minValue)/i).toPrecision(12);return n=Math.round(+n)*i,+(this.minValue+n).toFixed(this.precision)},hideEl:function(t){return t.css({visibility:"hidden"})},showEl:function(t){return t.rzAlwaysHide?t:t.css({visibility:"visible"})},setPosition:function(t,e){t.rzsp=e;var i={};return i[this.positionProperty]=Math.round(e)+"px",t.css(i),e},resetPosition:function(t){t.css({left:null,bottom:null})},getDimension:function(t){var e=t[0].getBoundingClientRect();return this.options.vertical?t.rzsd=(e.bottom-e.top)*this.options.scale:t.rzsd=(e.right-e.left)*this.options.scale,t.rzsd},setDimension:function(t,e){t.rzsd=e;var i={};return i[this.dimensionProperty]=Math.round(e)+"px",t.css(i),e},sanitizeValue:function(t){return Math.min(Math.max(t,this.minValue),this.maxValue)},valueToPosition:function(t){var e=this.linearValueToPosition;this.options.customValueToPosition?e=this.options.customValueToPosition:this.options.logScale&&(e=this.logValueToPosition);var i=e(t=this.sanitizeValue(t),this.minValue,this.maxValue)||0;return this.options.rightToLeft&&(i=1-i),i*this.maxPos},linearValueToPosition:function(t,e,i){return(t-e)/(i-e)},logValueToPosition:function(t,e,i){return((t=Math.log(t))-(e=Math.log(e)))/((i=Math.log(i))-e)},positionToValue:function(t){var e=t/this.maxPos;this.options.rightToLeft&&(e=1-e);var i=this.linearPositionToValue;return this.options.customPositionToValue?i=this.options.customPositionToValue:this.options.logScale&&(i=this.logPositionToValue),i(e,this.minValue,this.maxValue)||0},linearPositionToValue:function(t,e,i){return t*(i-e)+e},logPositionToValue:function(t,e,i){e=Math.log(e);var n=t*((i=Math.log(i))-e)+e;return Math.exp(n)},getEventAttr:function(t,e){return void 0===t.originalEvent?t[e]:t.originalEvent[e]},getEventXY:function(t,e){var i=this.options.vertical?"clientY":"clientX";if(void 0!==t[i])return t[i];var n=this.getEventAttr(t,"touches");if(void 0!==e)for(var s=0;s<n.length;s++)if(n[s].identifier===e)return n[s][i];return n[0][i]},getEventPosition:function(t,e){var i=this.sliderElem.rzsp;return(this.options.vertical?-this.getEventXY(t,e)+i:this.getEventXY(t,e)-i)*this.options.scale-this.handleHalfDim},getEventNames:function(t){var e={moveEvent:"",endEvent:""};return this.getEventAttr(t,"touches")?(e.moveEvent="touchmove",e.endEvent="touchend"):(e.moveEvent="mousemove",e.endEvent="mouseup"),e},getNearestHandle:function(t){if(!this.range)return this.minH;var e=this.getEventPosition(t),i=Math.abs(e-this.minH.rzsp),n=Math.abs(e-this.maxH.rzsp);return n>i?this.minH:i>n?this.maxH:this.options.rightToLeft?e>this.minH.rzsp?this.minH:this.maxH:e<this.minH.rzsp?this.minH:this.maxH},focusElement:function(t){t[0].focus()},bindEvents:function(){var e,i,n;this.options.draggableRange?(e="rzSliderDrag",i=this.onDragStart,n=this.onDragMove):(e="lowValue",i=this.onStart,n=this.onMove),this.options.onlyBindHandles||(this.selBar.on("mousedown",t.bind(this,i,null,e)),this.selBar.on("mousedown",t.bind(this,n,this.selBar))),this.options.draggableRangeOnly?(this.minH.on("mousedown",t.bind(this,i,null,e)),this.maxH.on("mousedown",t.bind(this,i,null,e))):(this.minH.on("mousedown",t.bind(this,this.onStart,this.minH,"lowValue")),this.range&&this.maxH.on("mousedown",t.bind(this,this.onStart,this.maxH,"highValue")),this.options.onlyBindHandles||(this.fullBar.on("mousedown",t.bind(this,this.onStart,null,null)),this.fullBar.on("mousedown",t.bind(this,this.onMove,this.fullBar)),this.ticks.on("mousedown",t.bind(this,this.onStart,null,null)),this.ticks.on("mousedown",t.bind(this,this.onTickClick,this.ticks)))),this.options.onlyBindHandles||(this.selBar.on("touchstart",t.bind(this,i,null,e)),this.selBar.on("touchstart",t.bind(this,n,this.selBar))),this.options.draggableRangeOnly?(this.minH.on("touchstart",t.bind(this,i,null,e)),this.maxH.on("touchstart",t.bind(this,i,null,e))):(this.minH.on("touchstart",t.bind(this,this.onStart,this.minH,"lowValue")),this.range&&this.maxH.on("touchstart",t.bind(this,this.onStart,this.maxH,"highValue")),this.options.onlyBindHandles||(this.fullBar.on("touchstart",t.bind(this,this.onStart,null,null)),this.fullBar.on("touchstart",t.bind(this,this.onMove,this.fullBar)),this.ticks.on("touchstart",t.bind(this,this.onStart,null,null)),this.ticks.on("touchstart",t.bind(this,this.onTickClick,this.ticks)))),this.options.keyboardSupport&&(this.minH.on("focus",t.bind(this,this.onPointerFocus,this.minH,"lowValue")),this.range&&this.maxH.on("focus",t.bind(this,this.onPointerFocus,this.maxH,"highValue")))},unbindEvents:function(){this.minH.off(),this.maxH.off(),this.fullBar.off(),this.selBar.off(),this.ticks.off()},onStart:function(e,n,s){var o,r,a=this.getEventNames(s);s.stopPropagation(),s.preventDefault(),this.calcViewDimensions(),e?this.tracking=n:(e=this.getNearestHandle(s),this.tracking=e===this.minH?"lowValue":"highValue"),e.addClass("rz-active"),this.options.keyboardSupport&&this.focusElement(e),o=t.bind(this,this.dragging.active?this.onDragMove:this.onMove,e),r=t.bind(this,this.onEnd,o),i.on(a.moveEvent,o),i.on(a.endEvent,r),this.endHandlerToBeRemovedOnEnd=r,this.callOnStart();var l=this.getEventAttr(s,"changedTouches");l&&(this.touchId||(this.isDragging=!0,this.touchId=l[0].identifier))},onMove:function(e,i,n){this.options.disableAnimation||this.moving&&this.sliderElem.addClass("noanimate"),this.moving=!0;var s,o=this.getEventAttr(i,"changedTouches");if(o)for(var r=0;r<o.length;r++)if(o[r].identifier===this.touchId){s=o[r];break}if(!o||s){var a,l=this.getEventPosition(i,s?s.identifier:void 0),h=this.options.rightToLeft?this.minValue:this.maxValue,u=this.options.rightToLeft?this.maxValue:this.minValue;0>=l?a=u:l>=this.maxPos?a=h:(a=this.positionToValue(l),a=n&&t.isNumber(this.options.showTicks)?this.roundStep(a,this.options.showTicks):this.roundStep(a)),this.positionTrackingHandle(a)}},onEnd:function(t,e){this.moving=!1,this.options.disableAnimation||this.sliderElem.removeClass("noanimate");var n=this.getEventAttr(e,"changedTouches");if(!n||n[0].identifier===this.touchId){this.isDragging=!1,this.touchId=null,this.options.keyboardSupport||(this.minH.removeClass("rz-active"),this.maxH.removeClass("rz-active"),this.tracking=""),this.dragging.active=!1;var s=this.getEventNames(e);i.off(s.moveEvent,t),i.off(s.endEvent,this.endHandlerToBeRemovedOnEnd),this.endHandlerToBeRemovedOnEnd=null,this.callOnEnd()}},onTickClick:function(t,e){this.onMove(t,e,!0)},onPointerFocus:function(e,i){this.tracking=i,e.one("blur",t.bind(this,this.onPointerBlur,e)),e.on("keydown",t.bind(this,this.onKeyboardEvent)),e.on("keyup",t.bind(this,this.onKeyUp)),this.firstKeyDown=!0,e.addClass("rz-active"),this.currentFocusElement={pointer:e,ref:i}},onKeyUp:function(){this.firstKeyDown=!0,this.callOnEnd()},onPointerBlur:function(t){t.off("keydown"),t.off("keyup"),t.removeClass("rz-active"),this.isDragging||(this.tracking="",this.currentFocusElement=null)},skipRestrictedRanges:function(t,e){if(this.options.restrictedRange&&Array.isArray(this.options.restrictedRange))for(var i in this.options.restrictedRange){var n=this.options.restrictedRange[i];if(0===n.from&&0===e&&[37,40].includes(t)||n.to>=this.options.restrictedRange[this.options.restrictedRange.length-1].to&&e>=this.options.restrictedRange[this.options.restrictedRange.length-1].to&&[38,39].includes(t))return e;n.to>e&&e>n.from&&(e=Math.abs(n.to-e)>Math.abs(n.from-e)?n.to:n.from)}return e},getKeyActions:function(t){var e=t+this.step,i=t-this.step,n=t+this.valueRange/10,s=t-this.valueRange/10;this.options.reversedControls&&(e=t-this.step,i=t+this.step,n=t-this.valueRange/10,s=t+this.valueRange/10);var o={UP:e,DOWN:i,LEFT:i,RIGHT:e,PAGEUP:n,PAGEDOWN:s,HOME:this.options.reversedControls?this.maxValue:this.minValue,END:this.options.reversedControls?this.minValue:this.maxValue};return this.options.rightToLeft&&(o.LEFT=e,o.RIGHT=i,this.options.vertical&&(o.UP=i,o.DOWN=e)),o},onKeyboardEvent:function(t){var i=t.keyCode||t.which,n=this[this.tracking],s=this.getKeyActions(n)[{38:"UP",40:"DOWN",37:"LEFT",39:"RIGHT",33:"PAGEUP",34:"PAGEDOWN",36:"HOME",35:"END"}[i]];if(null!=s&&""!==this.tracking){t.preventDefault(),this.firstKeyDown&&(this.firstKeyDown=!1,this.callOnStart());var o=this;e((function(){var t=o.roundStep(o.sanitizeValue(s));if(t=o.options.skipRestrictedRangesWithArrowKeys?o.skipRestrictedRanges(i,t):t,o.options.draggableRangeOnly){var e,n,r=o.highValue-o.lowValue;"lowValue"===o.tracking?(e=t,(n=t+r)>o.maxValue&&(e=(n=o.maxValue)-r)):(n=t,(e=t-r)<o.minValue&&(n=(e=o.minValue)+r)),o.positionTrackingBar(e,n)}else o.positionTrackingHandle(t)}))}},onDragStart:function(t,e,i){var n=this.getEventPosition(i);this.dragging={active:!0,value:this.positionToValue(n),difference:this.highValue-this.lowValue,lowLimit:this.options.rightToLeft?this.minH.rzsp-n:n-this.minH.rzsp,highLimit:this.options.rightToLeft?n-this.maxH.rzsp:this.maxH.rzsp-n},this.onStart(t,e,i)},getValue:function(t,e,i,n){var s,o=this.options.rightToLeft;return s="min"===t?i?n?o?this.minValue:this.maxValue-this.dragging.difference:o?this.maxValue-this.dragging.difference:this.minValue:o?this.positionToValue(e+this.dragging.lowLimit):this.positionToValue(e-this.dragging.lowLimit):i?n?o?this.minValue+this.dragging.difference:this.maxValue:o?this.maxValue:this.minValue+this.dragging.difference:o?this.positionToValue(e+this.dragging.lowLimit)+this.dragging.difference:this.positionToValue(e-this.dragging.lowLimit)+this.dragging.difference,this.roundStep(s)},onDragMove:function(t,e){this.options.disableAnimation||this.moving&&this.sliderElem.addClass("noanimate"),this.moving=!0;var i,n,s,o,r,a,l,h,u=this.getEventPosition(e);if(this.options.rightToLeft?(s=this.dragging.lowLimit,o=this.dragging.highLimit,l=this.maxH,h=this.minH):(s=this.dragging.highLimit,o=this.dragging.lowLimit,l=this.minH,h=this.maxH),r=o>=u,a=u>=this.maxPos-s,r){if(0===l.rzsp)return;i=this.getValue("min",u,!0,!1),n=this.getValue("max",u,!0,!1)}else if(a){if(h.rzsp===this.maxPos)return;n=this.getValue("max",u,!0,!0),i=this.getValue("min",u,!0,!0)}else i=this.getValue("min",u,!1),n=this.getValue("max",u,!1);this.positionTrackingBar(i,n)},positionTrackingBar:function(t,e){null!=this.options.minLimit&&t<this.options.minLimit&&(e=(t=this.options.minLimit)+this.dragging.difference),null!=this.options.maxLimit&&e>this.options.maxLimit&&(t=(e=this.options.maxLimit)-this.dragging.difference),this.lowValue=t,this.highValue=e,this.applyLowValue(),this.range&&this.applyHighValue(),this.applyModel(!0),this.updateHandles("lowValue",this.valueToPosition(t)),this.updateHandles("highValue",this.valueToPosition(e))},positionTrackingHandle:function(t){var e=!1;t=this.applyMinMaxLimit(t),t=this.applyRestrictedRange(t),this.range&&(this.options.pushRange?(t=this.applyPushRange(t),e=!0):(this.options.noSwitching&&("lowValue"===this.tracking&&t>this.highValue?t=this.applyMinMaxRange(this.highValue):"highValue"===this.tracking&&t<this.lowValue&&(t=this.applyMinMaxRange(this.lowValue))),t=this.applyMinMaxRange(t),"lowValue"===this.tracking&&t>this.highValue?(this.lowValue=this.highValue,this.applyLowValue(),this.applyModel(),this.updateHandles(this.tracking,this.maxH.rzsp),this.updateAriaAttributes(),this.tracking="highValue",this.minH.removeClass("rz-active"),this.maxH.addClass("rz-active"),this.options.keyboardSupport&&this.focusElement(this.maxH),e=!0):"highValue"===this.tracking&&t<this.lowValue&&(this.highValue=this.lowValue,this.applyHighValue(),this.applyModel(),this.updateHandles(this.tracking,this.minH.rzsp),this.updateAriaAttributes(),this.tracking="lowValue",this.maxH.removeClass("rz-active"),this.minH.addClass("rz-active"),this.options.keyboardSupport&&this.focusElement(this.minH),e=!0))),this[this.tracking]!==t&&(this[this.tracking]=t,"lowValue"===this.tracking?this.applyLowValue():this.applyHighValue(),this.applyModel(),this.updateHandles(this.tracking,this.valueToPosition(t)),this.updateAriaAttributes(),e=!0),e&&this.applyModel(!0)},applyMinMaxLimit:function(t){return null!=this.options.minLimit&&t<this.options.minLimit?this.options.minLimit:null!=this.options.maxLimit&&t>this.options.maxLimit?this.options.maxLimit:t},applyMinMaxRange:function(t){var e="lowValue"===this.tracking?this.highValue:this.lowValue,i=Math.abs(t-e);return null!=this.options.minRange&&i<this.options.minRange?"lowValue"===this.tracking?this.highValue-this.options.minRange:this.lowValue+this.options.minRange:null!=this.options.maxRange&&i>this.options.maxRange?"lowValue"===this.tracking?this.highValue-this.options.maxRange:this.lowValue+this.options.maxRange:t},applyRestrictedRange:function(t){for(var e in this.options.restrictedRange)if(null!=this.options.restrictedRange[e]&&t>this.options.restrictedRange[e].from&&t<this.options.restrictedRange[e].to){var i=(this.options.restrictedRange[e].to-this.options.restrictedRange[e].from)/2;if("lowValue"===this.tracking)return t>this.options.restrictedRange[e].from+i?this.options.restrictedRange[e].to:this.options.restrictedRange[e].from;if("highValue"===this.tracking)return t<this.options.restrictedRange[e].to-i?this.options.restrictedRange[e].from:this.options.restrictedRange[e].to}return t},applyPushRange:function(t){var e="lowValue"===this.tracking?this.highValue-t:t-this.lowValue,i=null!==this.options.minRange?this.options.minRange:this.options.step,n=this.options.maxRange;return i>e?("lowValue"===this.tracking?(this.highValue=Math.min(t+i,this.maxValue),t=this.highValue-i,this.applyHighValue(),this.updateHandles("highValue",this.valueToPosition(this.highValue))):(this.lowValue=Math.max(t-i,this.minValue),t=this.lowValue+i,this.applyLowValue(),this.updateHandles("lowValue",this.valueToPosition(this.lowValue))),this.updateAriaAttributes()):null!==n&&e>n&&("lowValue"===this.tracking?(this.highValue=t+n,this.applyHighValue(),this.updateHandles("highValue",this.valueToPosition(this.highValue))):(this.lowValue=t-n,this.applyLowValue(),this.updateHandles("lowValue",this.valueToPosition(this.lowValue))),this.updateAriaAttributes()),t},applyModel:function(t){this.internalChange=!0,this.scope.$apply(),t&&this.callOnChange(),this.internalChange=!1},callOnStart:function(){if(this.options.onStart){var t=this,e="lowValue"===this.tracking?"min":"max";this.scope.$evalAsync((function(){t.options.onStart(t.options.id,t.scope.rzSliderModel,t.scope.rzSliderHigh,e)}))}},callOnChange:function(){if(this.options.onChange){var t=this,e="lowValue"===this.tracking?"min":"max";this.scope.$evalAsync((function(){t.options.onChange(t.options.id,t.scope.rzSliderModel,t.scope.rzSliderHigh,e)}))}},callOnEnd:function(){if(this.options.onEnd){var t=this,e="lowValue"===this.tracking?"min":"max";this.scope.$evalAsync((function(){t.options.onEnd(t.options.id,t.scope.rzSliderModel,t.scope.rzSliderHigh,e)}))}this.scope.$emit("slideEnded")}},a}]).directive("rzslider",["RzSlider",function(t){return{restrict:"AE",replace:!0,scope:{rzSliderModel:"=?",rzSliderHigh:"=?",rzSliderOptions:"&?",rzSliderTplUrl:"@"},templateUrl:function(t,e){return e.rzSliderTplUrl||"rzSliderTpl.html"},link:function(e,i){e.slider=new t(e,i)}}}]);return e.run(["$templateCache",function(t){t.put("rzSliderTpl.html",'<div class=rzslider><span class="rz-bar-wrapper rz-left-out-selection"><span class=rz-bar></span></span> <span class="rz-bar-wrapper rz-right-out-selection"><span class=rz-bar></span></span> <span class=rz-bar-wrapper><span class=rz-bar></span></span> <span class=rz-bar-wrapper><span class="rz-bar rz-selection" ng-style=barStyle></span></span> <span class=rz-bar-wrapper><span class="rz-bar rz-restricted" ng-style=restrictionStyle></span></span> <span class="rz-pointer rz-pointer-min" ng-style=minPointerStyle></span> <span class="rz-pointer rz-pointer-max" ng-style=maxPointerStyle></span> <span class="rz-bubble rz-limit rz-floor"></span> <span class="rz-bubble rz-limit rz-ceil"></span> <span class="rz-bubble rz-model-value"></span> <span class="rz-bubble rz-model-high"></span> <span class=rz-bubble></span><ul ng-show=showTicks class=rz-ticks><li ng-repeat="t in ticks track by $index" class=rz-tick ng-class="{\'rz-selected\': t.selected}" ng-style=t.style ng-attr-uib-tooltip="{{ t.tooltip }}" ng-attr-tooltip-placement={{t.tooltipPlacement}} ng-attr-tooltip-append-to-body="{{ t.tooltip ? true : undefined}}"><span ng-if="t.value != null" class=rz-tick-value ng-attr-uib-tooltip="{{ t.valueTooltip }}" ng-attr-tooltip-placement={{t.valueTooltipPlacement}}>{{ t.value }}</span> <span ng-if="t.legend != null" class=rz-tick-legend>{{ t.legend }}</span></li></ul></div>')}]),e.name})?n.apply(e,s):n)||(t.exports=o)}()}}]);
1
+ (window.webpackJsonp=window.webpackJsonp||[]).push([[35],{419:function(t,e){
2
+ /*! ngTagsInput v3.2.0 License: MIT */!function(){"use strict";var t=8,e=9,i=13,n=27,s=32,o=38,r=40,a=37,l=39,h=46,u=188,c=9007199254740991,p=["text","email","url"],d=angular.module("ngTagsInput",[]);d.directive("tagsInput",["$timeout","$document","$window","$q","tagsInputConfig","tiUtil",function(e,n,o,r,d,g){function f(t,e,i,n){var s,o,a,l,h={};return s=function(e){return g.safeToString(e[t.displayProperty])},o=function(e,i){e[t.displayProperty]=i},a=function(e){var n=s(e),o=n&&n.length>=t.minLength&&n.length<=t.maxLength&&t.allowedTagsPattern.test(n)&&!g.findInObjectArray(h.items,e,t.keyProperty||t.displayProperty);return r.when(o&&i({$tag:e})).then(g.promisifyValue)},l=function(t){return r.when(n({$tag:t})).then(g.promisifyValue)},h.items=[],h.addText=function(t){var e={};return o(e,t),h.add(e)},h.add=function(i){var n=s(i);return t.replaceSpacesWithDashes&&(n=g.replaceSpacesWithDashes(n)),o(i,n),a(i).then((function(){h.items.push(i),e.trigger("tag-added",{$tag:i})})).catch((function(){n&&e.trigger("invalid-tag",{$tag:i})}))},h.remove=function(t){var i=h.items[t];return l(i).then((function(){return h.items.splice(t,1),h.clearSelection(),e.trigger("tag-removed",{$tag:i}),i}))},h.select=function(t){0>t?t=h.items.length-1:t>=h.items.length&&(t=0),h.index=t,h.selected=h.items[t]},h.selectPrior=function(){h.select(--h.index)},h.selectNext=function(){h.select(++h.index)},h.removeSelected=function(){return h.remove(h.index)},h.clearSelection=function(){h.selected=null,h.index=-1},h.getItems=function(){return t.useStrings?h.items.map(s):h.items},h.clearSelection(),h}function m(t){return-1!==p.indexOf(t)}return{restrict:"E",require:"ngModel",scope:{tags:"=ngModel",text:"=?",templateScope:"=?",tagClass:"&",onTagAdding:"&",onTagAdded:"&",onInvalidTag:"&",onTagRemoving:"&",onTagRemoved:"&",onTagClicked:"&"},replace:!1,transclude:!0,templateUrl:"ngTagsInput/tags-input.html",controller:["$scope","$attrs","$element",function(t,e,i){t.events=g.simplePubSub(),d.load("tagsInput",t,e,{template:[String,"ngTagsInput/tag-item.html"],type:[String,"text",m],placeholder:[String,"Add a tag"],tabindex:[Number,null],removeTagSymbol:[String,String.fromCharCode(215)],replaceSpacesWithDashes:[Boolean,!0],minLength:[Number,3],maxLength:[Number,c],addOnEnter:[Boolean,!0],addOnSpace:[Boolean,!1],addOnComma:[Boolean,!0],addOnBlur:[Boolean,!0],addOnPaste:[Boolean,!1],pasteSplitPattern:[RegExp,/,/],allowedTagsPattern:[RegExp,/.+/],enableEditingLastTag:[Boolean,!1],minTags:[Number,0],maxTags:[Number,c],displayProperty:[String,"text"],keyProperty:[String,""],allowLeftoverText:[Boolean,!1],addFromAutocompleteOnly:[Boolean,!1],spellcheck:[Boolean,!0],useStrings:[Boolean,!1]}),t.tagList=new f(t.options,t.events,g.handleUndefinedResult(t.onTagAdding,!0),g.handleUndefinedResult(t.onTagRemoving,!0)),this.registerAutocomplete=function(){return i.find("input"),{addTag:function(e){return t.tagList.add(e)},getTags:function(){return t.tagList.items},getCurrentTagText:function(){return t.newTag.text()},getOptions:function(){return t.options},getTemplateScope:function(){return t.templateScope},on:function(e,i){return t.events.on(e,i,!0),this}}},this.registerTagItem=function(){return{getOptions:function(){return t.options},removeTag:function(e){t.disabled||t.tagList.remove(e)}}}}],link:function(r,c,p,d){var f,m,b=[i,u,s,t,h,a,l],v=r.tagList,y=r.events,x=r.options,w=c.find("input"),S=["minTags","maxTags","allowLeftoverText"];f=function(){d.$setValidity("maxTags",v.items.length<=x.maxTags),d.$setValidity("minTags",v.items.length>=x.minTags),d.$setValidity("leftoverText",!(!r.hasFocus&&!x.allowLeftoverText)||!r.newTag.text())},m=function(){e((function(){w[0].focus()}))},d.$isEmpty=function(t){return!t||!t.length},r.newTag={text:function(t){return angular.isDefined(t)?(r.text=t,void y.trigger("input-change",t)):r.text||""},invalid:null},r.track=function(t){return t[x.keyProperty||x.displayProperty]},r.getTagClass=function(t,e){var i=t===v.selected;return[r.tagClass({$tag:t,$index:e,$selected:i}),{selected:i}]},r.$watch("tags",(function(t){if(t){if(v.items=g.makeObjectArray(t,x.displayProperty),x.useStrings)return;r.tags=v.items}else v.items=[]})),r.$watch("tags.length",(function(){f(),d.$validate()})),p.$observe("disabled",(function(t){r.disabled=t})),r.eventHandlers={input:{keydown:function(t){y.trigger("input-keydown",t)},focus:function(){r.hasFocus||(r.hasFocus=!0,y.trigger("input-focus"))},blur:function(){e((function(){var t=n.prop("activeElement"),e=t===w[0],i=c[0].contains(t);(e||!i)&&(r.hasFocus=!1,y.trigger("input-blur"))}))},paste:function(t){t.getTextData=function(){var e=t.clipboardData||t.originalEvent&&t.originalEvent.clipboardData;return e?e.getData("text/plain"):o.clipboardData.getData("Text")},y.trigger("input-paste",t)}},host:{click:function(){r.disabled||m()}},tag:{click:function(t){y.trigger("tag-clicked",{$tag:t})}}},y.on("tag-added",r.onTagAdded).on("invalid-tag",r.onInvalidTag).on("tag-removed",r.onTagRemoved).on("tag-clicked",r.onTagClicked).on("tag-added",(function(){r.newTag.text("")})).on("tag-added tag-removed",(function(){r.tags=v.getItems(),d.$setDirty(),m()})).on("invalid-tag",(function(){r.newTag.invalid=!0})).on("option-change",(function(t){-1!==S.indexOf(t.name)&&f()})).on("input-change",(function(){v.clearSelection(),r.newTag.invalid=null})).on("input-focus",(function(){c.triggerHandler("focus"),d.$setValidity("leftoverText",!0)})).on("input-blur",(function(){x.addOnBlur&&!x.addFromAutocompleteOnly&&v.addText(r.newTag.text()),c.triggerHandler("blur"),f()})).on("input-keydown",(function(e){var n,o,c,p,d=e.keyCode,f={};g.isModifierOn(e)||-1===b.indexOf(d)||(f[i]=x.addOnEnter,f[u]=x.addOnComma,f[s]=x.addOnSpace,n=!x.addFromAutocompleteOnly&&f[d],o=(d===t||d===h)&&v.selected,p=d===t&&0===r.newTag.text().length&&x.enableEditingLastTag,c=(d===t||d===a||d===l)&&0===r.newTag.text().length&&!x.enableEditingLastTag,n?v.addText(r.newTag.text()):p?(v.selectPrior(),v.removeSelected().then((function(t){t&&r.newTag.text(t[x.displayProperty])}))):o?v.removeSelected():c&&(d===a||d===t?v.selectPrior():d===l&&v.selectNext()),(n||c||o||p)&&e.preventDefault())})).on("input-paste",(function(t){if(x.addOnPaste){var e=t.getTextData().split(x.pasteSplitPattern);e.length>1&&(e.forEach((function(t){v.addText(t)})),t.preventDefault())}}))}}}]),d.directive("tiTagItem",["tiUtil",function(t){return{restrict:"E",require:"^tagsInput",template:'<ng-include src="$$template"></ng-include>',scope:{$scope:"=scope",data:"="},link:function(e,i,n,s){var o=s.registerTagItem(),r=o.getOptions();e.$$template=r.template,e.$$removeTagSymbol=r.removeTagSymbol,e.$getDisplayText=function(){return t.safeToString(e.data[r.displayProperty])},e.$removeTag=function(){o.removeTag(e.$index)},e.$watch("$parent.$index",(function(t){e.$index=t}))}}}]),d.directive("autoComplete",["$document","$timeout","$sce","$q","tagsInputConfig","tiUtil",function(t,s,a,l,h,u){function c(t,e,i){var n,s,o,r={};return o=function(){return e.tagsInput.keyProperty||e.tagsInput.displayProperty},n=function(t,i){return t.filter((function(t){return!u.findInObjectArray(i,t,o(),(function(t,i){return e.tagsInput.replaceSpacesWithDashes&&(t=u.replaceSpacesWithDashes(t),i=u.replaceSpacesWithDashes(i)),u.defaultComparer(t,i)}))}))},r.reset=function(){s=null,r.items=[],r.visible=!1,r.index=-1,r.selected=null,r.query=null},r.show=function(){e.selectFirstMatch?r.select(0):r.selected=null,r.visible=!0},r.load=u.debounce((function(i,a){r.query=i;var h=l.when(t({$query:i}));s=h,h.then((function(t){h===s&&(t=u.makeObjectArray(t.data||t,o()),t=n(t,a),r.items=t.slice(0,e.maxResultsToShow),r.items.length>0?r.show():r.reset())}))}),e.debounceDelay),r.selectNext=function(){r.select(++r.index)},r.selectPrior=function(){r.select(--r.index)},r.select=function(t){0>t?t=r.items.length-1:t>=r.items.length&&(t=0),r.index=t,r.selected=r.items[t],i.trigger("suggestion-selected",t)},r.reset(),r}return{restrict:"E",require:"^tagsInput",scope:{source:"&",matchClass:"&"},templateUrl:"ngTagsInput/auto-complete.html",controller:["$scope","$element","$attrs",function(t,e,i){t.events=u.simplePubSub(),h.load("autoComplete",t,i,{template:[String,"ngTagsInput/auto-complete-match.html"],debounceDelay:[Number,100],minLength:[Number,3],highlightMatchedText:[Boolean,!0],maxResultsToShow:[Number,10],loadOnDownArrow:[Boolean,!1],loadOnEmpty:[Boolean,!1],loadOnFocus:[Boolean,!1],selectFirstMatch:[Boolean,!0],displayProperty:[String,""]}),t.suggestionList=new c(t.source,t.options,t.events),this.registerAutocompleteMatch=function(){return{getOptions:function(){return t.options},getQuery:function(){return t.suggestionList.query}}}}],link:function(t,s,a,l){var h,c=[i,e,n,o,r],p=t.suggestionList,d=l.registerAutocomplete(),g=t.options,f=t.events;g.tagsInput=d.getOptions(),h=function(t){return t&&t.length>=g.minLength||!t&&g.loadOnEmpty},t.templateScope=d.getTemplateScope(),t.addSuggestionByIndex=function(e){p.select(e),t.addSuggestion()},t.addSuggestion=function(){var t=!1;return p.selected&&(d.addTag(angular.copy(p.selected)),p.reset(),t=!0),t},t.track=function(t){return t[g.tagsInput.keyProperty||g.tagsInput.displayProperty]},t.getSuggestionClass=function(e,i){var n=e===p.selected;return[t.matchClass({$match:e,$index:i,$selected:n}),{selected:n}]},d.on("tag-added tag-removed invalid-tag input-blur",(function(){p.reset()})).on("input-change",(function(t){h(t)?p.load(t,d.getTags()):p.reset()})).on("input-focus",(function(){var t=d.getCurrentTagText();g.loadOnFocus&&h(t)&&p.load(t,d.getTags())})).on("input-keydown",(function(s){var a=s.keyCode,l=!1;if(!u.isModifierOn(s)&&-1!==c.indexOf(a))return p.visible?a===r?(p.selectNext(),l=!0):a===o?(p.selectPrior(),l=!0):a===n?(p.reset(),l=!0):(a===i||a===e)&&(l=t.addSuggestion()):a===r&&t.options.loadOnDownArrow&&(p.load(d.getCurrentTagText(),d.getTags()),l=!0),l?(s.preventDefault(),s.stopImmediatePropagation(),!1):void 0})),f.on("suggestion-selected",(function(t){!function(t,e){var i=t.find("li").eq(e),n=i.parent(),s=i.prop("offsetTop"),o=i.prop("offsetHeight"),r=n.prop("clientHeight"),a=n.prop("scrollTop");a>s?n.prop("scrollTop",s):s+o>r+a&&n.prop("scrollTop",s+o-r)}(s,t)}))}}}]),d.directive("tiAutocompleteMatch",["$sce","tiUtil",function(t,e){return{restrict:"E",require:"^autoComplete",template:'<ng-include src="$$template"></ng-include>',scope:{$scope:"=scope",data:"="},link:function(i,n,s,o){var r=o.registerAutocompleteMatch(),a=r.getOptions();i.$$template=a.template,i.$index=i.$parent.$index,i.$highlight=function(i){return a.highlightMatchedText&&(i=e.safeHighlight(i,r.getQuery())),t.trustAsHtml(i)},i.$getDisplayText=function(){return e.safeToString(i.data[a.displayProperty||a.tagsInput.displayProperty])}}}}]),d.directive("tiTranscludeAppend",(function(){return function(t,e,i,n,s){s((function(t){e.append(t)}))}})),d.directive("tiAutosize",["tagsInputConfig",function(t){return{restrict:"A",require:"ngModel",link:function(e,i,n,s){var o,r,a=t.getTextAutosizeThreshold();(o=angular.element('<span class="input"></span>')).css("display","none").css("visibility","hidden").css("width","auto").css("white-space","pre"),i.parent().append(o),r=function(t){var e,s=t;return angular.isString(s)&&0===s.length&&(s=n.placeholder),s&&(o.text(s),o.css("display",""),e=o.prop("offsetWidth"),o.css("display","none")),i.css("width",e?e+a+"px":""),t},s.$parsers.unshift(r),s.$formatters.unshift(r),n.$observe("placeholder",(function(t){s.$modelValue||r(t)}))}}}]),d.directive("tiBindAttrs",(function(){return function(t,e,i){t.$watch(i.tiBindAttrs,(function(t){angular.forEach(t,(function(t,e){i.$set(e,t)}))}),!0)}})),d.provider("tagsInputConfig",(function(){var t={},e={},i=3;this.setDefaults=function(e,i){return t[e]=i,this},this.setActiveInterpolation=function(t,i){return e[t]=i,this},this.setTextAutosizeThreshold=function(t){return i=t,this},this.$get=["$interpolate",function(n){var s={};return s[String]=function(t){return t},s[Number]=function(t){return parseInt(t,10)},s[Boolean]=function(t){return"true"===t.toLowerCase()},s[RegExp]=function(t){return new RegExp(t)},{load:function(i,o,r,a){var l=function(){return!0};o.options={},angular.forEach(a,(function(a,h){var u,c,p,d,g,f;u=a[0],c=a[1],p=a[2]||l,d=s[u],g=function(){var e=t[i]&&t[i][h];return angular.isDefined(e)?e:c},f=function(t){o.options[h]=t&&p(t)?d(t):g()},e[i]&&e[i][h]?r.$observe(h,(function(t){f(t),o.events.trigger("option-change",{name:h,newValue:t})})):f(r[h]&&n(r[h])(o.$parent))}))},getTextAutosizeThreshold:function(){return i}}}]})),d.factory("tiUtil",["$timeout","$q",function(t,e){var i={debounce:function(e,i){var n;return function(){var s=arguments;t.cancel(n),n=t((function(){e.apply(null,s)}),i)}},makeObjectArray:function(t,e){if(!angular.isArray(t)||0===t.length||angular.isObject(t[0]))return t;var i=[];return t.forEach((function(t){var n={};n[e]=t,i.push(n)})),i},findInObjectArray:function(t,e,n,s){var o=null;return s=s||i.defaultComparer,t.some((function(t){return s(t[n],e[n])?(o=t,!0):void 0})),o},defaultComparer:function(t,e){return i.safeToString(t).toLowerCase()===i.safeToString(e).toLowerCase()},safeHighlight:function(t,e){if(t=i.encodeHTML(t),!(e=i.encodeHTML(e)))return t;var n=new RegExp("&[^;]+;|"+function(t){return t.replace(/([.?*+^$[\]\\(){}|-])/g,"\\$1")}(e),"gi");return t.replace(n,(function(t){return t.toLowerCase()===e.toLowerCase()?"<em>"+t+"</em>":t}))},safeToString:function(t){return angular.isUndefined(t)||null==t?"":t.toString().trim()},encodeHTML:function(t){return i.safeToString(t).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;")},handleUndefinedResult:function(t,e){return function(){var i=t.apply(null,arguments);return angular.isUndefined(i)?e:i}},replaceSpacesWithDashes:function(t){return i.safeToString(t).replace(/\s/g,"-")},isModifierOn:function(t){return t.shiftKey||t.ctrlKey||t.altKey||t.metaKey},promisifyValue:function(t){return t=!!angular.isUndefined(t)||t,e[t?"when":"reject"]()},simplePubSub:function(){var t={};return{on:function(e,i,n){return e.split(" ").forEach((function(e){t[e]||(t[e]=[]),(n?[].unshift:[].push).call(t[e],i)})),this},trigger:function(e,n){return(t[e]||[]).every((function(t){return i.handleUndefinedResult(t,!0)(n)})),this}}}};return i}]),d.run(["$templateCache",function(t){t.put("ngTagsInput/tags-input.html",'<div class="host" tabindex="-1" ng-click="eventHandlers.host.click()" ti-transclude-append><div class="tags" ng-class="{focused: hasFocus}"><ul class="tag-list"><li class="tag-item" ng-repeat="tag in tagList.items track by track(tag)" ng-class="getTagClass(tag, $index)" ng-click="eventHandlers.tag.click(tag)"><ti-tag-item scope="templateScope" data="::tag"></ti-tag-item></li></ul><input class="input" autocomplete="off" ng-model="newTag.text" ng-model-options="{getterSetter: true}" ng-keydown="eventHandlers.input.keydown($event)" ng-focus="eventHandlers.input.focus($event)" ng-blur="eventHandlers.input.blur($event)" ng-paste="eventHandlers.input.paste($event)" ng-trim="false" ng-class="{\'invalid-tag\': newTag.invalid}" ng-disabled="disabled" ti-bind-attrs="{type: options.type, placeholder: options.placeholder, tabindex: options.tabindex, spellcheck: options.spellcheck}" ti-autosize></div></div>'),t.put("ngTagsInput/tag-item.html",'<span ng-bind="$getDisplayText()"></span> <a class="remove-button" ng-click="$removeTag()" ng-bind="::$$removeTagSymbol"></a>'),t.put("ngTagsInput/auto-complete.html",'<div class="autocomplete" ng-if="suggestionList.visible"><ul class="suggestion-list"><li class="suggestion-item" ng-repeat="item in suggestionList.items track by track(item)" ng-class="getSuggestionClass(item, $index)" ng-click="addSuggestionByIndex($index)" ng-mouseenter="suggestionList.select($index)"><ti-autocomplete-match scope="templateScope" data="::item"></ti-autocomplete-match></li></ul></div>'),t.put("ngTagsInput/auto-complete-match.html",'<span ng-bind-html="$highlight($getDisplayText())"></span>')}])}()},611:function(t,e){!function(){"use strict";function t(e){return(t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(e)}function e(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var i=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=i){var n,s,o,r,a=[],l=!0,h=!1;try{if(o=(i=i.call(t)).next,0===e){if(Object(i)!==i)return;l=!1}else for(;!(l=(n=o.call(i)).done)&&(a.push(n.value),a.length!==e);l=!0);}catch(t){h=!0,s=t}finally{try{if(!l&&null!=i.return&&(r=i.return(),Object(r)!==r))return}finally{if(h)throw s}}return a}}(t,e)||function(t,e){if(t){if("string"==typeof t)return i(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?i(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function i(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,n=new Array(e);i<e;i++)n[i]=t[i];return n}function n(e,i){for(var n=0;n<i.length;n++){var s=i[n];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(e,(void 0,o=function(e,i){if("object"!==t(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var s=n.call(e,i);if("object"!==t(s))return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(s.key,"string"),"symbol"===t(o)?o:String(o)),s)}var o}var s=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t)}var i,s;return i=t,(s=[{key:"registerFor",value:function(t){var i,n,s,o;function r(t,i,n){var s=t[0],r=e({top:["scrollTop","pageYOffset","scrollLeft"],left:["scrollLeft","pageXOffset","scrollTop"]}[i],3),a=r[0],l=r[1],h=r[2],u=void 0!==n;return o(s)?u?s.scrollTo(t[h].call(t),n):l in s?s[l]:s.document.documentElement[a]:(u&&(s[a]=n),s[a])}function a(t,n,r){var a,l=function(t,n){var r,a,l,h,u,c,p,d,g,f;if(o(t))return{base:r=document.documentElement[{height:"clientHeight",width:"clientWidth"}[n]],padding:0,border:0,margin:0};var m=e({width:[t.offsetWidth,"Left","Right"],height:[t.offsetHeight,"Top","Bottom"]}[n],3);return r=m[0],p=m[1],d=m[2],c=s(t),g=i(t,c["padding"+p])||0,f=i(t,c["padding"+d])||0,a=i(t,c["border"+p+"Width"])||0,l=i(t,c["border"+d+"Width"])||0,h=c["margin"+p],u=c["margin"+d],{base:r,padding:g+f,border:a+l,margin:(i(t,h)||0)+(i(t,u)||0)}}(t,n);return l.base>0?{base:l.base-l.padding-l.border,outer:l.base,outerfull:l.base+l.margin}[r]:(((a=s(t)[n])<0||null===a)&&(a=t.style[n]||0),{base:(a=parseFloat(a)||0)-l.padding-l.border,outer:a,outerfull:a+l.padding+l.border+l.margin}[r])}return n=angular.element.prototype.css,t.prototype.css=function(t,e){var i=this[0];if(i&&3!==i.nodeType&&8!==i.nodeType&&i.style)return n.call(this,t,e)},o=function(t){return t&&t.document&&t.location&&t.alert&&t.setInterval},window.getComputedStyle?(s=function(t){return window.getComputedStyle(t,null)},i=function(t,e){return parseFloat(e)}):(s=function(t){return t.currentStyle},i=function(t,e){var i,n,s,o,r;return new RegExp("^("+/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source+")(?!px)[a-z%]+$","i").test(e)?(i=(r=t.style).left,o=(s=t.runtimeStyle)&&s.left,s&&(s.left=r.left),r.left=e,n=r.pixelLeft,r.left=i,o&&(s.left=o),n):parseFloat(e)}),angular.forEach({before:function(t){var e,i,n,s,o,r;if(i=this[0],(e=(o=this.parent()).contents())[0]===i)return o.prepend(t);for(n=s=1,r=e.length-1;1<=r?s<=r:s>=r;n=1<=r?++s:--s)if(e[n]===i)return void angular.element(e[n-1]).after(t);throw new Error("invalid DOM structure "+i.outerHTML)},height:function(t){return void 0!==t?(angular.isNumber(t)&&(t+="px"),n.call(this,"height",t)):a(this[0],"height","base")},outerHeight:function(t){return a(this[0],"height",t?"outerfull":"outer")},outerWidth:function(t){return a(this[0],"width",t?"outerfull":"outer")},offset:function(t){var e,i,n={top:0,left:0},s=this[0],o=s&&s.ownerDocument;if(arguments.length){if(void 0===t)return this;throw new Error("offset setter method is not implemented")}if(o)return e=o.documentElement,null!=s.getBoundingClientRect&&(n=s.getBoundingClientRect()),i=o.defaultView||o.parentWindow,{top:n.top+(i.pageYOffset||e.scrollTop)-(e.clientTop||0),left:n.left+(i.pageXOffset||e.scrollLeft)-(e.clientLeft||0)}},scrollTop:function(t){return r(this,"top",t)},scrollLeft:function(t){return r(this,"left",t)}},(function(e,i){if(!t.prototype[i])return t.prototype[i]=e}))}}])&&n(i.prototype,s),Object.defineProperty(i,"prototype",{writable:!1}),t}();function o(t){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function r(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,(void 0,s=function(t,e){if("object"!==o(t)||null===t)return t;var i=t[Symbol.toPrimitive];if(void 0!==i){var n=i.call(t,e);if("object"!==o(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(n.key,"string"),"symbol"===o(s)?s:String(s)),n)}var s}var a="ng-ui-scroll-hide",l=function(){function t(e,i){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.$animate=e.has&&e.has("$animate")?e.get("$animate"):null,this.isAngularVersionLessThen1_3=1===angular.version.major&&angular.version.minor<3,this.$q=i}var e,i,n;return e=t,n=[{key:"addCSSRules",value:function(){var t,e="."+a,i="display: none",n=document.styleSheets[0];try{t=n.cssRules.length}catch(e){t=0}"insertRule"in n?n.insertRule(e+"{"+i+"}",t):"addRule"in n&&n.addRule(e,i,t)}}],(i=[{key:"hideElement",value:function(t){t.element.addClass(a)}},{key:"showElement",value:function(t){t.element.removeClass(a)}},{key:"insertElement",value:function(t,e){return e.after(t),[]}},{key:"removeElement",value:function(t){return t.element.remove(),t.scope.$destroy(),[]}},{key:"insertElementAnimated",value:function(t,e){if(!this.$animate)return this.insertElement(t,e);if(this.isAngularVersionLessThen1_3){var i=this.$q.defer();return this.$animate.enter(t,null,e,(function(){return i.resolve()})),[i.promise]}return[this.$animate.enter(t,null,e)]}},{key:"removeElementAnimated",value:function(t){if(!this.$animate)return this.removeElement(t);if(this.isAngularVersionLessThen1_3){var e=this.$q.defer();return this.$animate.leave(t.element,(function(){return t.scope.$destroy(),e.resolve()})),[e.promise]}return[this.$animate.leave(t.element).then((function(){return t.scope.$destroy()}))]}}])&&r(e.prototype,i),n&&r(e,n),Object.defineProperty(e,"prototype",{writable:!1}),t}(),h="prepend",u="append",c="insert",p="remove",d="none";function g(t,e,i){var n=Object.create(Array.prototype);return angular.extend(n,{size:e,reset:function(t){n.remove(0,n.length),n.eof=!1,n.bof=!1,n.first=t,n.next=t,n.minIndex=t,n.maxIndex=t,n.minIndexUser=null,n.maxIndexUser=null},append:function(t){t.forEach((function(t){++n.next,n.insert(u,t)})),n.maxIndex=n.eof?n.next-1:Math.max(n.next-1,n.maxIndex)},prepend:function(t,e){t.reverse().forEach((function(t){e?++n.next:--n.first,n.insert(h,t)})),n.minIndex=n.bof?n.minIndex=n.first:Math.min(n.first,n.minIndex)},insert:function(t,e,i){var s={item:e};if(t%1==0)s.op=c,n.splice(t,0,s),i?n.first--:n.next++;else switch(s.op=t,t){case u:n.push(s);break;case h:n.unshift(s)}},remove:function(e,i){if(angular.isNumber(e)){for(var s=e;s<i;s++)t.removeElement(n[s]);return n.splice(e,i-e)}return n.splice(n.indexOf(e),1),e.shiftTop&&n.first===this.getAbsMinIndex()?this.incrementMinIndex():this.decrementMaxIndex(),e.shiftTop?n.first++:n.next--,n.length||(n.minIndex=Math.min(n.maxIndex,n.minIndex)),t.removeElementAnimated(e)},incrementMinIndex:function(){if(null!==n.minIndexUser){if(n.minIndex>n.minIndexUser)return void n.minIndexUser++;n.minIndex===n.minIndexUser&&n.minIndexUser++}n.minIndex++},decrementMaxIndex:function(){null!==n.maxIndexUser&&n.maxIndex<=n.maxIndexUser&&n.maxIndexUser--,n.maxIndex--},getAbsMinIndex:function(){return null!==n.minIndexUser?Math.min(n.minIndexUser,n.minIndex):n.minIndex},getAbsMaxIndex:function(){return null!==n.maxIndexUser?Math.max(n.maxIndexUser,n.maxIndex):n.maxIndex},effectiveHeight:function(t){if(!t.length)return 0;var e=Number.MAX_VALUE,i=Number.NEGATIVE_INFINITY;return t.forEach((function(t){t.element[0].offsetParent&&(e=Math.min(e,t.element.offset().top),i=Math.max(i,t.element.offset().top+t.element.outerHeight(!0)))})),Math.max(0,i-e)},getItems:function(){return n.filter((function(t){return t.op===d}))},getFirstItem:function(){var t=n.getItems();return t.length?t[0].item:null},getLastItem:function(){var t=n.getItems();return t.length?t[t.length-1].item:null}}),n.reset(i),n}function f(t){return(f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function m(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function b(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,(void 0,s=function(t,e){if("object"!==f(t)||null===t)return t;var i=t[Symbol.toPrimitive];if(void 0!==i){var n=i.call(t,e);if("object"!==f(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(n.key,"string"),"symbol"===f(s)?s:String(s)),n)}var s}function v(t,e,i){return e&&b(t.prototype,e),i&&b(t,i),Object.defineProperty(t,"prototype",{writable:!1}),t}var y=function(){function t(){m(this,t)}return v(t,[{key:"add",value:function(t){for(var e=this.length-1;e>=0;e--)if(this[e].index===t.scope.$index)return void(this[e].height=t.element.outerHeight());this.push({index:t.scope.$index,height:t.element.outerHeight()}),this.sort((function(t,e){return t.index<e.index?-1:t.index>e.index?1:0}))}},{key:"remove",value:function(t,e){for(var i=t%1==0?t:t.scope.$index,n=t%1==0?e:t.shiftTop,s=this.length-1;s>=0;s--)if(this[s].index===i){this.splice(s,1);break}if(!n)for(var o=this.length-1;o>=0;o--)this[o].index>i&&this[o].index--}},{key:"clear",value:function(){this.length=0}}]),t}();function x(){var t=[];return t.push.apply(t,arguments),Object.setPrototypeOf(t,x.prototype),t}x.prototype=Object.create(Array.prototype),Object.getOwnPropertyNames(y.prototype).forEach((function(t){return x.prototype[t]=y.prototype[t]}));var w=function(){function t(e){m(this,t),this.element=function(t){if(t.nodeType!==Node.ELEMENT_NODE)throw new Error("ui-scroll directive requires an Element node for templating the view");var e;switch(t.tagName.toLowerCase()){case"dl":throw new Error("ui-scroll directive does not support <".concat(t.tagName,"> as a repeating tag: ").concat(t.outerHTML));case"tr":e=angular.element("<table><tr><td><div></div></td></tr></table>").find("tr");break;case"li":e=angular.element("<li></li>");break;default:e=angular.element("<div></div>")}return e}(e),this.cache=new x}return v(t,[{key:"height",value:function(){return this.element.height.apply(this.element,arguments)}}]),t}();function S(t,e,i,n,s,o){var r=null,a=null,l=n&&n.viewport?n.viewport:angular.element(window),h=n&&n.container?n.container:void 0,u=n&&n.scope?n.scope:s;function c(){return l.outerHeight()*o}return l.css({"overflow-anchor":"none","overflow-y":"auto",display:"block"}),angular.extend(l,{getScope:function(){return u},createPaddingElements:function(t){r=new w(t),a=new w(t),i.before(r.element),i.after(a.element),r.height(0),a.height(0)},applyContainerStyle:function(){return!h||(h!==l&&l.css("height",window.getComputedStyle(h[0]).height),l.height()>0)},bottomDataPos:function(){var t=l[0].scrollHeight;return(t=null!=t?t:l[0].document.documentElement.scrollHeight)-a.height()},topDataPos:function(){return r.height()},bottomVisiblePos:function(){return l.scrollTop()+l.outerHeight()},topVisiblePos:function(){return l.scrollTop()},insertElement:function(e,i){return t.insertElement(e,i||r.element)},insertElementAnimated:function(e,i){return t.insertElementAnimated(e,i||r.element)},shouldLoadBottom:function(){return!e.eof&&l.bottomDataPos()<l.bottomVisiblePos()+c()},clipBottom:function(){for(var t=0,i=0,n=0,s=l.bottomDataPos()-l.bottomVisiblePos()-c(),o=e.length-1;o>=0&&!(i+(n=e[o].element.outerHeight(!0))>s);o--)a.cache.add(e[o]),i+=n,t++;t>0&&(e.eof=!1,e.remove(e.length-t,e.length),e.next-=t,l.adjustPaddings())},shouldLoadTop:function(){return!e.bof&&l.topDataPos()>l.topVisiblePos()-c()},clipTop:function(){for(var t=0,i=0,n=0,s=l.topVisiblePos()-l.topDataPos()-c(),o=0;o<e.length&&!(i+(n=e[o].element.outerHeight(!0))>s);o++)r.cache.add(e[o]),i+=n,t++;t>0&&(r.height(r.height()+i),e.bof=!1,e.remove(0,t),e.first+=t)},adjustPaddings:function(){if(e.length){var t=e.reduce((function(t,e){return t+e.element.outerHeight(!0)}),0),i=0,n=0;r.cache.forEach((function(t){t.index<e.first&&(i+=t.height,n++)}));var s=0,o=0;a.cache.forEach((function(t){t.index>=e.next&&(s+=t.height,o++)}));var l=(t+i+s)/(n+o+e.length),h=null!==e.minIndexUser&&e.minIndex>e.minIndexUser,u=null!==e.maxIndexUser&&e.maxIndex<e.maxIndexUser,c=h?(e.minIndex-e.minIndexUser)*l:0,p=u?(e.maxIndexUser-e.maxIndex)*l:0;r.height(i+c),a.height(s+p)}},onAfterMinIndexSet:function(t){if(null!==e.minIndexUser&&e.minIndex>e.minIndexUser){var i=r.height()-t;for(l.scrollTop(l.scrollTop()+i);(i-=l.scrollTop())>0;)a.height(a.height()+i),l.scrollTop(l.scrollTop()+i)}},onAfterPrepend:function(t){if(t.prepended.length){var i=e.effectiveHeight(t.prepended),n=r.height()-i;if(n>=0)r.height(n);else{var s=l.scrollTop(),o=s-n;l.synthetic={previous:s,next:o},r.height(0),l.scrollTop(o)}}},resetTopPadding:function(){r.height(0),r.cache.clear()},resetBottomPadding:function(){a.height(0),a.cache.clear()},removeCacheItem:function(t,e){r.cache.remove(t,e),a.cache.remove(t,e)},removeItem:function(t){return this.removeCacheItem(t),e.remove(t)}}),l}function T(t){return(T="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function L(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,(void 0,s=function(t,e){if("object"!==T(t)||null===t)return t;var i=t[Symbol.toPrimitive];if(void 0!==i){var n=i.call(t,e);if("object"!==T(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(n.key,"string"),"symbol"===T(s)?s:String(s)),n)}var s}var V=function(){function t(e,i,n,s,o,r,a){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.$parse=i,this.$attr=n,this.viewport=s,this.buffer=o,this.doAdjust=r,this.reload=a,this.isLoading=!1,this.disabled=!1;var l=s.getScope();this.startScope=l.$parent?l:e,this.publicContext={},this.assignAdapter(n.adapter),this.generatePublicContext()}var e,i;return e=t,(i=[{key:"assignAdapter",value:function(t){if(t&&(t=t.replace(/^\s+|\s+$/gm,""))){var e;try{this.$parse(t).assign(this.startScope,{}),e=this.$parse(t)(this.startScope)}catch(e){throw e.message="Angular ui-scroll Adapter assignment exception.\n"+"Can't parse \"".concat(t,'" expression.\n')+e.message,e}angular.extend(e,this.publicContext),this.publicContext=e}}},{key:"generatePublicContext",value:function(){for(var t=this,e=["reload","applyUpdates","append","prepend","isBOF","isEOF","isEmpty"],i=e.length-1;i>=0;i--)this.publicContext[e[i]]=this[e[i]].bind(this);for(var n=["isLoading","topVisible","topVisibleElement","topVisibleScope","bottomVisible","bottomVisibleElement","bottomVisibleScope"],s=function(e){var i,s=t.$attr[n[e]];Object.defineProperty(t,n[e],{get:function(){return i},set:function(o){i=o,t.publicContext[n[e]]=o,s&&t.$parse(s).assign(t.startScope,o)}})},o=n.length-1;o>=0;o--)s(o);for(var r=["bufferFirst","bufferLast","bufferLength"],a=function(e){Object.defineProperty(t.publicContext,r[e],{get:function(){return t[r[e]]}})},l=r.length-1;l>=0;l--)a(l);Object.defineProperty(this.publicContext,"disabled",{get:function(){return t.disabled},set:function(e){return(t.disabled=e)?null:t.doAdjust()}})}},{key:"loading",value:function(t){this.isLoading=t}},{key:"isBOF",value:function(){return this.buffer.bof}},{key:"isEOF",value:function(){return this.buffer.eof}},{key:"isEmpty",value:function(){return!this.buffer.length}},{key:"bufferLength",get:function(){return this.buffer.getItems().length}},{key:"bufferFirst",get:function(){return this.buffer.getFirstItem()}},{key:"bufferLast",get:function(){return this.buffer.getLastItem()}},{key:"append",value:function(t){this.buffer.append(t),this.doAdjust(),this.viewport.clipTop(),this.viewport.clipBottom()}},{key:"prepend",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.buffer.prepend(t,e.immutableTop),this.doAdjust(),this.viewport.clipTop(),this.viewport.clipBottom()}},{key:"applyUpdates",value:function(t,e,i){"function"==typeof t?this.applyUpdatesFunc(t,e):this.applyUpdatesIndex(t,e,i),this.doAdjust()}},{key:"applyUpdatesFunc",value:function(t){var e=this,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.buffer.slice(0).forEach((function(n){e.applyUpdate(n,t(n.item,n.scope,n.element),i)}))}},{key:"applyUpdatesIndex",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(t%1!=0)throw new Error("applyUpdates - "+t+" is not a valid index (should be an integer)");var n=t-this.buffer.first;n>=0&&n<this.buffer.length?this.applyUpdate(this.buffer[n],e,i):t>=this.buffer.getAbsMinIndex()&&t<=this.buffer.getAbsMaxIndex()&&angular.isArray(e)&&!e.length&&(this.viewport.removeCacheItem(t,!i.immutableTop&&t===this.buffer.minIndex),i.immutableTop||t!==this.buffer.getAbsMinIndex()?this.buffer.decrementMaxIndex():this.buffer.incrementMinIndex())}},{key:"applyUpdate",value:function(t,e){var i=this,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(angular.isArray(e)){var s=this.buffer.indexOf(t);e.reverse().some((function(e){return e===t.item}))||(t.op=p,n.immutableTop||e.length||(0===s&&this.buffer.bof||0!==s&&this.buffer[s-1].shiftTop)&&(t.shiftTop=!0)),e.forEach((function(e){e===t.item?s--:i.buffer.insert(s+1,e,!n.immutableTop&&-1===s)}))}}},{key:"calculateProperties",value:function(){for(var t=null,e=0,i=!1,n=!1,s=this.buffer.length,o=0;o<s;o++){var r=this.buffer[o],a=r.element.offset().top;if(t!==a){var l=r.element.outerHeight(!0),h=this.viewport.topDataPos()+e+l;!i&&h>this.viewport.topVisiblePos()&&(i=!0,this.topVisible=r.item,this.topVisibleElement=r.element,this.topVisibleScope=r.scope),!n&&(h>=this.viewport.bottomVisiblePos()||o===s-1&&this.isEOF())&&(n=!0,this.bottomVisible=r.item,this.bottomVisibleElement=r.element,this.bottomVisibleScope=r.scope),e+=l}if(t=a,i&&n)break}}}])&&L(e.prototype,i),Object.defineProperty(e,"prototype",{writable:!1}),t}();angular.module("ui.scroll",[]).constant("JQLiteExtras",s).run(["JQLiteExtras",function(t){var e=angular.element;!(window.jQuery&&e.fn&&e.fn.jquery)&&(new t).registerFor(e),l.addCSSRules()}]).directive("uiScrollViewport",(function(){return{restrict:"A",controller:["$scope","$element",function(t,e){var i=this;return this.container=e,this.viewport=e,this.scope=t,angular.forEach(e.children(),(function(t){"tbody"===t.tagName.toLowerCase()&&(i.viewport=angular.element(t))})),this}]}})).directive("uiScroll",["$log","$injector","$rootScope","$timeout","$interval","$q","$parse",function(t,e,i,n,s,o,r){return{require:["?^uiScrollViewport"],restrict:"A",transclude:"element",priority:1e3,terminal:!0,link:function(t,a,f,m,b){var v=f.uiScroll.match(/^\s*(\w+)\s+in\s+([(\w|\$)\.]+)\s*$/);if(!v)throw new Error("Expected uiScroll in form of '_item_ in _datasource_' but got '"+f.uiScroll+"'");function y(t,e,i){return i||(t=null===t?e:Math.floor(t)),isNaN(t)?e:t}function x(e,i,n){return y(r(e)(t),i,n)}var w,T,L=null,H=v[1],k=v[2],E=m[0],P=Math.max(3,x(f.bufferSize,10)),z=Math.max(.3,x(f.padding,.5,!0)),A=(w=f.handleInertia,!0,"boolean"!=typeof(T=r(w)(t))||T),$=x(f.startIndex,1),B=0,I=[],C=new l(e,o),O=new g(C,P,$),R=new S(C,O,a,E,i,z),M=new V(t,r,f,R,O,Z,(function(){K(),R.resetTopPadding(),R.resetBottomPadding(),arguments.length&&($=y(arguments[0],1,!1)),O.reset($),j(L,"minIndex"),j(L,"maxIndex"),Z()}));E&&(E.adapter=M);var D=function(){return"[object Object]"===Object.prototype.toString.call(L)&&"function"==typeof L.get};if(L=r(k)(t),!D()&&(L=e.get(k),!D()))throw new Error(k+" is not a valid datasource");var F=[];function j(t,e){var i;angular.isNumber(t[e])&&(i=t[e],angular.isNumber(i)&&(F=F.filter((function(t){return t.id!==e}))).push({id:e,run:function(){return t[e]=i}}))}function U(t,e,i){var n,s=Object.getOwnPropertyDescriptor(t,e);s&&(s.set||s.get)||(j(t,e),Object.defineProperty(t,e,{set:function(s){if(n=s,!I.length||O.length){O[i]=s;var o=R.topDataPos();R.adjustPaddings(),"minIndex"===e&&R.onAfterMinIndexSet(o)}else j(t,e)},get:function(){return n}}))}U(L,"minIndex","minIndexUser"),U(L,"maxIndex","maxIndexUser");var N=2!==L.get.length?function(t){return L.get(O.next,P,t)}:function(t){L.get({index:O.next,append:O.length?O[O.length-1].item:void 0,count:P},t)},W=2!==L.get.length?function(t){return L.get(O.first-P,P,t)}:function(t){L.get({index:O.first-P,prepend:O.length?O[0].item:void 0,count:P},t)};function q(e){return e&&e!==B||t.$$destroyed}function K(){R.off("resize",it),R.off("scroll",it)}function G(t){return t.element.height()&&t.element[0].offsetParent}function _(t,e){X(t,e,R.insertElement),G(t)||(t.unregisterVisibilityWatcher=t.scope.$watch((function(){return function(t){G(t)&&(O.forEach((function(t){"function"==typeof t.unregisterVisibilityWatcher&&(t.unregisterVisibilityWatcher(),delete t.unregisterVisibilityWatcher)})),I.length||n((function(){return Z()})))}(t)}))),C.hideElement(t)}function X(t,e,i){var n=null,s=e>0?O[e-1].element:void 0;if(b((function(e,o){n=i(e,s),t.element=e,t.scope=o,o[H]=t.item})),M.transform){var o=t.scope.uiScrollTdInitializer;o&&o.linking?M.transform(t.scope,t.element):t.scope.uiScrollTdInitializer={onLink:function(){return M.transform(t.scope,t.element)},scope:t.scope}}return n}function Y(t,e){e.animated.length?o.all(e.animated).then((function(){R.adjustPaddings(),Z(t)})):R.adjustPaddings()}function Q(t,e){R.shouldLoadBottom()?(!e||O.effectiveHeight(e.inserted)>0)&&1===I.push(!0)&&(M.loading(!0),et(t)):R.shouldLoadTop()&&(!e||O.effectiveHeight(e.prepended)>0||I[0])&&1===I.push(!1)&&(M.loading(!0),et(t))}function J(){var e,n,s,o,r=(e=[],n=[],s=[],o=[],O.forEach((function(t,i){switch(t.op){case h:n.unshift(t);break;case u:_(t,i),t.op=d,o.push(t);break;case c:e=e.concat(X(t,i,R.insertElementAnimated)),t.op=d,o.push(t);break;case p:s.push(t)}})),s.forEach((function(t){return e=e.concat(R.removeItem(t))})),n.length&&n.forEach((function(t){_(t),t.op=d})),O.forEach((function(t,e){return t.scope.$index=O.first+e})),{prepended:n,removed:s,inserted:o,animated:e});return!t.$$phase&&!i.$$phase&&t.$digest(),r.inserted.forEach((function(t){return C.showElement(t)})),r.prepended.forEach((function(t){return C.showElement(t)})),r}function Z(t){t||(I=[],t=++B);var e=J();q(t)||(Y(t,e),Q(t),I.length||M.calculateProperties())}function tt(t){var e=J();R.onAfterPrepend(e),q(t)||(Y(t,e),F.forEach((function(t){return t.run()})),F=[],Q(t,e),I.shift(),I.length?et(t):(M.loading(!1),R.on("resize",it),R.on("scroll",it),M.calculateProperties()))}function et(t){I[0]?O.length&&!R.shouldLoadBottom()?tt(t):N((function(e){q(t)||(e.length<P&&(O.eof=!0),e.length>0&&(R.clipTop(),O.append(e)),tt(t))})):O.length&&!R.shouldLoadTop()?tt(t):W((function(e){q(t)||(e.length<P&&(O.bof=!0),e.length>0&&(O.length&&R.clipBottom(),O.prepend(e)),tt(t))}))}function it(){A&&function(){if(R.synthetic){var t=R.synthetic.previous,e=R.synthetic.next;if(R.scrollTop()!==e)return requestAnimationFrame((function(){var i=R.scrollTop(),n=t-i;n>0?R.scrollTop(e-n):R.scrollTop(e),R.synthetic=null})),!0;R.synthetic=null}}()||i.$$phase||M.isLoading||M.disabled||(Q(B),I.length?K():(M.calculateProperties(),!t.$$phase&&t.$digest()))}function nt(t){if(!M.disabled){var e=R[0].scrollTop,i=R[0].scrollHeight-R[0].clientHeight;(0===e&&!O.bof||e===i&&!O.eof)&&t.preventDefault()}}b((function(t,e){R.createPaddingElements(t[0]),e.$destroy(),t.remove()})),t.$on("$destroy",(function(){K(),R.off("mousewheel",nt)})),R.on("mousewheel",nt),function(){var t=0;if(R.applyContainerStyle())Z();else var e=s((function(){if(t++,R.applyContainerStyle()&&(s.cancel(e),Z()),50*t>=500)throw s.cancel(e),Error("ui-scroll directive requires a viewport with non-zero height in ".concat(500,"ms"))}),50)}()}}}])}()},612:function(t,e){!function(){"use strict";angular.module("ui.scroll.jqlite",[])}()},613:function(t,e,i){var n,s,o;/*! angularjs-slider - v7.1.0 - (c) Rafal Zajac <rzajac@gmail.com>, Valentin Hervieu <valentin@hervi.eu>, Jussi Saarivirta <jusasi@gmail.com>, Angelin Sirbu <angelin.sirbu@gmail.com> - https://github.com/angular-slider/angularjs-slider - 2022-05-26 */!function(r,a){"use strict";s=[i(451)],void 0===(o="function"==typeof(n=function(t){var e=t.module("rzSlider",[]).factory("RzSliderOptions",(function(){var e={floor:0,ceil:null,step:1,precision:0,minRange:null,maxRange:null,restrictedRange:null,skipRestrictedRangesWithArrowKeys:null,pushRange:!1,minLimit:null,maxLimit:null,id:null,translate:null,getLegend:null,stepsArray:null,bindIndexForStepsArray:!1,draggableRange:!1,draggableRangeOnly:!1,showSelectionBar:!1,showSelectionBarEnd:!1,showSelectionBarFromValue:null,showOuterSelectionBars:!1,hidePointerLabels:!1,hideLimitLabels:!1,autoHideLimitLabels:!0,readOnly:!1,disabled:!1,interval:350,showTicks:!1,showTicksValues:!1,ticksArray:null,ticksTooltip:null,ticksValuesTooltip:null,vertical:!1,getSelectionBarColor:null,getTickColor:null,getPointerColor:null,keyboardSupport:!0,scale:1,enforceStep:!0,enforceRange:!1,noSwitching:!1,onlyBindHandles:!1,disableAnimation:!1,onStart:null,onChange:null,onEnd:null,rightToLeft:!1,reversedControls:!1,boundPointerLabels:!0,mergeRangeLabelsIfSame:!1,labelOverlapSeparator:" - ",customTemplateScope:null,logScale:!1,customValueToPosition:null,customPositionToValue:null,selectionBarGradient:null,ariaLabel:null,ariaLabelledBy:null,ariaLabelHigh:null,ariaLabelledByHigh:null},i={},n={options:function(e){t.extend(i,e)},getOptions:function(n){return t.extend({},e,i,n)}};return n})).factory("rzThrottle",["$timeout",function(t){return function(e,i,n){var s,o,r,a=Date.now||function(){return(new Date).getTime()},l=null,h=0;n=n||{};var u=function(){h=a(),l=null,r=e.apply(s,o),s=o=null};return function(){var c=a(),p=i-(c-h);return s=this,o=arguments,0>=p?(t.cancel(l),l=null,h=c,r=e.apply(s,o),s=o=null):l||!1===n.trailing||(l=t(u,p)),r}}}]).factory("RzSlider",["$timeout","$document","$window","$compile","RzSliderOptions","rzThrottle",function(e,i,n,s,o,r){var a=function(t,e){this.scope=t,this.lowValue=0,this.highValue=0,this.sliderElem=e,this.range=void 0!==this.scope.rzSliderModel&&void 0!==this.scope.rzSliderHigh,this.dragging={active:!1,value:0,difference:0,position:0,lowLimit:0,highLimit:0},this.positionProperty="left",this.dimensionProperty="width",this.handleHalfDim=0,this.maxPos=0,this.precision=0,this.step=1,this.tracking="",this.minValue=0,this.maxValue=0,this.valueRange=0,this.intermediateTicks=!1,this.initHasRun=!1,this.firstKeyDown=!1,this.internalChange=!1,this.cmbLabelShown=!1,this.currentFocusElement=null,this.moving=!1,this.fullBar=null,this.selBar=null,this.minH=null,this.maxH=null,this.flrLab=null,this.ceilLab=null,this.minLab=null,this.maxLab=null,this.cmbLab=null,this.ticks=null,this.init()};return a.prototype={init:function(){var e,i,s=this,o=function(){s.calcViewDimensions()};this.applyOptions(),this.syncLowValue(),this.range&&this.syncHighValue(),this.initElemHandles(),this.manageElementsStyle(),this.setDisabledState(),this.calcViewDimensions(),this.setMinAndMax(),this.updateRestrictionBar(),this.addAccessibility(),this.updateCeilLab(),this.updateFloorLab(),this.initHandles(),this.manageEventsBindings(),this.scope.$on("reCalcViewDimensions",o),t.element(n).on("resize",o),this.initHasRun=!0,this.options.disableAnimation&&this.sliderElem.addClass("noanimate"),e=r((function(){s.onLowHandleChange()}),s.options.interval),i=r((function(){s.onHighHandleChange()}),s.options.interval),this.scope.$on("rzSliderForceRender",(function(){s.resetLabelsValue(),e(),s.range&&i(),s.resetSlider()})),this.scope.$watchCollection("rzSliderOptions()",(function(t,e){t!==e&&(s.applyOptions(),s.syncLowValue(),s.range&&s.syncHighValue(),s.resetSlider())})),this.scope.$watch("rzSliderModel",(function(t,i){s.internalChange||t!==i&&e()})),this.scope.$watch("rzSliderHigh",(function(t,e){s.internalChange||t!==e&&(null!=t&&i(),(s.range&&null==t||!s.range&&null!=t)&&(s.applyOptions(),s.resetSlider()))})),this.scope.$on("$destroy",(function(){s.unbindEvents(),t.element(n).off("resize",o),s.currentFocusElement=null}))},findStepIndex:function(e){for(var i=0,n=0;n<this.options.stepsArray.length;n++){var s=this.options.stepsArray[n];if(s===e){i=n;break}if(t.isDate(s)){if(s.getTime()===e.getTime()){i=n;break}}else if(t.isObject(s)&&(t.isDate(s.value)&&s.value.getTime()===e.getTime()||s.value===e)){i=n;break}}return i},syncLowValue:function(){this.options.stepsArray?this.options.bindIndexForStepsArray?this.lowValue=this.scope.rzSliderModel:this.lowValue=this.findStepIndex(this.scope.rzSliderModel):this.lowValue=this.scope.rzSliderModel},syncHighValue:function(){this.options.stepsArray?this.options.bindIndexForStepsArray?this.highValue=this.scope.rzSliderHigh:this.highValue=this.findStepIndex(this.scope.rzSliderHigh):this.highValue=this.scope.rzSliderHigh},getStepValue:function(e){var i=this.options.stepsArray[e];return t.isDate(i)?i:t.isObject(i)?i.value:i},applyLowValue:function(){this.options.stepsArray?this.options.bindIndexForStepsArray?this.scope.rzSliderModel=this.lowValue:this.scope.rzSliderModel=this.getStepValue(this.lowValue):this.scope.rzSliderModel=this.lowValue},applyHighValue:function(){this.options.stepsArray?this.options.bindIndexForStepsArray?this.scope.rzSliderHigh=this.highValue:this.scope.rzSliderHigh=this.getStepValue(this.highValue):this.scope.rzSliderHigh=this.highValue},onLowHandleChange:function(){this.syncLowValue(),this.range&&this.syncHighValue(),this.setMinAndMax(),this.updateLowHandle(this.valueToPosition(this.lowValue)),this.updateSelectionBar(),this.updateTicksScale(),this.updateAriaAttributes(),this.range&&this.updateCmbLabel()},onHighHandleChange:function(){this.syncLowValue(),this.syncHighValue(),this.setMinAndMax(),this.updateHighHandle(this.valueToPosition(this.highValue)),this.updateSelectionBar(),this.updateTicksScale(),this.updateCmbLabel(),this.updateAriaAttributes()},applyOptions:function(){var e;e=this.scope.rzSliderOptions?this.scope.rzSliderOptions():{},this.options=o.getOptions(e),this.options.step<=0&&(this.options.step=1),this.range=void 0!==this.scope.rzSliderModel&&void 0!==this.scope.rzSliderHigh,this.options.draggableRange=this.range&&this.options.draggableRange,this.options.draggableRangeOnly=this.range&&this.options.draggableRangeOnly,this.options.draggableRangeOnly&&(this.options.draggableRange=!0),this.options.showTicks=this.options.showTicks||this.options.showTicksValues||!!this.options.ticksArray,this.scope.showTicks=this.options.showTicks,(t.isNumber(this.options.showTicks)||this.options.ticksArray)&&(this.intermediateTicks=!0),this.options.showSelectionBar=this.options.showSelectionBar||this.options.showSelectionBarEnd||null!==this.options.showSelectionBarFromValue,this.options.stepsArray?this.parseStepsArray():(this.options.translate?this.customTrFn=this.options.translate:this.customTrFn=function(t){return String(t)},this.getLegend=this.options.getLegend),this.options.vertical?(this.positionProperty="bottom",this.dimensionProperty="height"):(this.positionProperty="left",this.dimensionProperty="width"),this.options.customTemplateScope&&(this.scope.custom=this.options.customTemplateScope)},parseStepsArray:function(){this.options.floor=0,this.options.ceil=this.options.stepsArray.length-1,this.options.step=1,this.options.translate?this.customTrFn=this.options.translate:this.customTrFn=function(t){return this.options.bindIndexForStepsArray?this.getStepValue(t):t},this.getLegend=function(e){var i=this.options.stepsArray[e];return t.isObject(i)?i.legend:null}},resetSlider:function(){this.resetLabelsValue(),this.manageElementsStyle(),this.addAccessibility(),this.setMinAndMax(),this.updateCeilLab(),this.updateFloorLab(),this.unbindEvents(),this.manageEventsBindings(),this.setDisabledState(),this.calcViewDimensions(),this.updateRestrictionBar(),this.refocusPointerIfNeeded()},refocusPointerIfNeeded:function(){this.currentFocusElement&&(this.onPointerFocus(this.currentFocusElement.pointer,this.currentFocusElement.ref),this.focusElement(this.currentFocusElement.pointer))},ensureRestrictedBarIsArray:function(e){var i=t.element(e);if(this.restrictedBar=[],this.options.restrictedRange){this.options.restrictedRange=Array.isArray(this.options.restrictedRange)?this.options.restrictedRange:[this.options.restrictedRange],this.restrictedBar[0]=i;for(var n=e.parentElement,s=1;s<this.options.restrictedRange.length;s++){var o=document.createElement("span");o.setAttribute("class","rz-bar-wrapper"),o.innerHTML='<span class="rz-bar rz-restricted" ng-style="restrictionStyle"></span>',n.appendChild(o),this.restrictedBar[s]=t.element(o)}}else e.style.visibility="hidden",this.restrictedBar=null},initElemHandles:function(){t.forEach(this.sliderElem.children(),(function(e,i){var n=t.element(e);switch(i){case 0:this.leftOutSelBar=n;break;case 1:this.rightOutSelBar=n;break;case 2:this.fullBar=n;break;case 3:this.selBar=n;break;case 4:this.ensureRestrictedBarIsArray(e);break;case 5:this.minH=n;break;case 6:this.maxH=n;break;case 7:this.flrLab=n;break;case 8:this.ceilLab=n;break;case 9:this.minLab=n;break;case 10:this.maxLab=n;break;case 11:this.cmbLab=n;break;case 12:this.ticks=n}}),this),this.selBar.rzsp=0,this.minH.rzsp=0,this.maxH.rzsp=0,this.flrLab.rzsp=0,this.ceilLab.rzsp=0,this.minLab.rzsp=0,this.maxLab.rzsp=0,this.cmbLab.rzsp=0},manageElementsStyle:function(){this.range?this.maxH.css("display",""):this.maxH.css("display","none"),this.alwaysHide(this.flrLab,this.options.showTicksValues||this.options.hideLimitLabels),this.alwaysHide(this.ceilLab,this.options.showTicksValues||this.options.hideLimitLabels);var t=this.options.showTicksValues&&!this.intermediateTicks;for(var e in this.alwaysHide(this.minLab,t||this.options.hidePointerLabels),this.alwaysHide(this.maxLab,t||!this.range||this.options.hidePointerLabels),this.alwaysHide(this.cmbLab,t||!this.range||this.options.hidePointerLabels),this.alwaysHide(this.selBar,!this.range&&!this.options.showSelectionBar),this.alwaysHide(this.leftOutSelBar,!this.range||!this.options.showOuterSelectionBars),this.restrictedBar)this.restrictedBar[e]&&this.alwaysHide(this.restrictedBar[e],!this.options.restrictedRange[e]);this.alwaysHide(this.rightOutSelBar,!this.range||!this.options.showOuterSelectionBars),this.range&&this.options.showOuterSelectionBars&&this.fullBar.addClass("rz-transparent"),this.options.vertical?this.sliderElem.addClass("rz-vertical"):this.sliderElem.removeClass("rz-vertical"),this.options.draggableRange?this.selBar.addClass("rz-draggable"):this.selBar.removeClass("rz-draggable"),this.intermediateTicks&&this.options.showTicksValues&&this.ticks.addClass("rz-ticks-values-under")},alwaysHide:function(t,e){t.rzAlwaysHide=e,e?this.hideEl(t):this.showEl(t)},manageEventsBindings:function(){this.options.disabled||this.options.readOnly?this.unbindEvents():this.bindEvents()},setDisabledState:function(){this.options.disabled?this.sliderElem.attr("disabled","disabled"):this.sliderElem.attr("disabled",null)},resetLabelsValue:function(){this.minLab.rzsv=void 0,this.maxLab.rzsv=void 0,this.flrLab.rzsv=void 0,this.ceilLab.rzsv=void 0,this.cmbLab.rzsv=void 0,this.resetPosition(this.flrLab),this.resetPosition(this.ceilLab),this.resetPosition(this.cmbLab),this.resetPosition(this.minLab),this.resetPosition(this.maxLab)},initHandles:function(){this.updateLowHandle(this.valueToPosition(this.lowValue)),this.range&&this.updateHighHandle(this.valueToPosition(this.highValue)),this.updateSelectionBar(),this.range&&this.updateCmbLabel(),this.updateTicksScale()},translateFn:function(t,e,i,n){n=void 0===n||n;var s="",o=!1,r=e.hasClass("no-label-injection");n?(this.options.stepsArray&&!this.options.bindIndexForStepsArray&&(t=this.getStepValue(t)),s=String(this.customTrFn(t,this.options.id,i))):s=String(t),(void 0===e.rzsv||e.rzsv.length!==s.length||e.rzsv.length>0&&0===e.rzsd)&&(o=!0,e.rzsv=s),r||e.html(s),this.scope[i+"Label"]=s,o&&this.getDimension(e)},setMinAndMax:function(){if(this.step=+this.options.step,this.precision=+this.options.precision,this.minValue=this.options.floor,this.options.logScale&&0===this.minValue)throw Error("Can't use floor=0 with logarithmic scale");this.options.enforceStep&&(this.lowValue=this.roundStep(this.lowValue),this.range&&(this.highValue=this.roundStep(this.highValue))),null!=this.options.ceil?this.maxValue=this.options.ceil:this.maxValue=this.options.ceil=this.range?this.highValue:this.lowValue,this.options.enforceRange&&(this.lowValue=this.sanitizeValue(this.lowValue),this.range&&(this.highValue=this.sanitizeValue(this.highValue))),this.applyLowValue(),this.range&&this.applyHighValue(),this.valueRange=this.maxValue-this.minValue},addAccessibility:function(){this.minH.attr("role","slider"),this.updateAriaAttributes(),!this.options.keyboardSupport||this.options.readOnly||this.options.disabled?this.minH.attr("tabindex",""):this.minH.attr("tabindex","0"),this.options.vertical?this.minH.attr("aria-orientation","vertical"):this.minH.attr("aria-orientation","horizontal"),this.options.ariaLabel?this.minH.attr("aria-label",this.options.ariaLabel):this.options.ariaLabelledBy&&this.minH.attr("aria-labelledby",this.options.ariaLabelledBy),this.range&&(this.maxH.attr("role","slider"),!this.options.keyboardSupport||this.options.readOnly||this.options.disabled?this.maxH.attr("tabindex",""):this.maxH.attr("tabindex","0"),this.options.vertical?this.maxH.attr("aria-orientation","vertical"):this.maxH.attr("aria-orientation","horizontal"),this.options.ariaLabelHigh?this.maxH.attr("aria-label",this.options.ariaLabelHigh):this.options.ariaLabelledByHigh&&this.maxH.attr("aria-labelledby",this.options.ariaLabelledByHigh))},updateAriaAttributes:function(){this.minH.attr({"aria-valuenow":this.scope.rzSliderModel,"aria-valuetext":this.customTrFn(this.scope.rzSliderModel,this.options.id,"model"),"aria-valuemin":this.minValue,"aria-valuemax":this.maxValue}),this.range&&this.maxH.attr({"aria-valuenow":this.scope.rzSliderHigh,"aria-valuetext":this.customTrFn(this.scope.rzSliderHigh,this.options.id,"high"),"aria-valuemin":this.minValue,"aria-valuemax":this.maxValue})},calcViewDimensions:function(){var t=this.getDimension(this.minH);if(this.handleHalfDim=t/2,this.barDimension=this.getDimension(this.fullBar),this.maxPos=this.barDimension-t,this.getDimension(this.sliderElem),this.sliderElem.rzsp=this.sliderElem[0].getBoundingClientRect()[this.positionProperty],this.initHasRun){this.updateFloorLab(),this.updateCeilLab(),this.initHandles();var i=this;e((function(){i.updateTicksScale()}))}},updateTicksScale:function(){if(this.options.showTicks){var e=this.options.ticksArray||this.getTicksArray(),i=this.options.vertical?"translateY":"translateX",n=this;this.options.rightToLeft&&e.reverse(),this.scope.ticks=e.map((function(e){var s=null;t.isObject(e)&&(s=e.legend,e=e.value);var o=n.valueToPosition(e);n.options.vertical&&(o=n.maxPos-o);var r=i+"("+Math.round(o)+"px)",a={legend:s,selected:n.isTickSelected(e),style:{"-webkit-transform":r,"-moz-transform":r,"-o-transform":r,"-ms-transform":r,transform:r}};return a.selected&&n.options.getSelectionBarColor&&(a.style["background-color"]=n.getSelectionBarColor()),!a.selected&&n.options.getTickColor&&(a.style["background-color"]=n.getTickColor(e)),n.options.ticksTooltip&&(a.tooltip=n.options.ticksTooltip(e),a.tooltipPlacement=n.options.vertical?"right":"top"),(!0===n.options.showTicksValues||e%n.options.showTicksValues==0)&&(a.value=n.getDisplayValue(e,"tick-value"),n.options.ticksValuesTooltip&&(a.valueTooltip=n.options.ticksValuesTooltip(e),a.valueTooltipPlacement=n.options.vertical?"right":"top")),n.getLegend&&((s=n.getLegend(e,n.options.id))&&(a.legend=s)),a}))}},getTicksArray:function(){var t=this.step,e=[];this.intermediateTicks&&(t=this.options.showTicks);for(var i=this.minValue;i<=this.maxValue;i+=t)e.push(i);return e},isTickSelected:function(t){if(!this.range)if(null!==this.options.showSelectionBarFromValue){var e=this.options.showSelectionBarFromValue;if(this.lowValue>e&&t>=e&&t<=this.lowValue)return!0;if(this.lowValue<e&&e>=t&&t>=this.lowValue)return!0}else if(this.options.showSelectionBarEnd){if(t>=this.lowValue)return!0}else if(this.options.showSelectionBar&&t<=this.lowValue)return!0;return!!(this.range&&t>=this.lowValue&&t<=this.highValue)},updateFloorLab:function(){this.translateFn(this.minValue,this.flrLab,"floor"),this.getDimension(this.flrLab);var t=this.options.rightToLeft?this.barDimension-this.flrLab.rzsd:0;this.setPosition(this.flrLab,t)},updateCeilLab:function(){this.translateFn(this.maxValue,this.ceilLab,"ceil"),this.getDimension(this.ceilLab);var t=this.options.rightToLeft?0:this.barDimension-this.ceilLab.rzsd;this.setPosition(this.ceilLab,t)},updateHandles:function(t,e){"lowValue"===t?this.updateLowHandle(e):this.updateHighHandle(e),this.updateSelectionBar(),this.updateTicksScale(),this.range&&this.updateCmbLabel()},getHandleLabelPos:function(t,e){var i=this[t].rzsd,n=e-i/2+this.handleHalfDim,s=this.barDimension-i;return this.options.boundPointerLabels?this.options.rightToLeft&&"minLab"===t||!this.options.rightToLeft&&"maxLab"===t?Math.min(n,s):Math.min(Math.max(n,0),s):n},updateLowHandle:function(t){if(this.setPosition(this.minH,t),this.translateFn(this.lowValue,this.minLab,"model"),this.setPosition(this.minLab,this.getHandleLabelPos("minLab",t)),this.options.getPointerColor){var e=this.getPointerColor("min");this.scope.minPointerStyle={backgroundColor:e}}this.options.autoHideLimitLabels&&this.shFloorCeil()},updateHighHandle:function(t){if(this.setPosition(this.maxH,t),this.translateFn(this.highValue,this.maxLab,"high"),this.setPosition(this.maxLab,this.getHandleLabelPos("maxLab",t)),this.options.getPointerColor){var e=this.getPointerColor("max");this.scope.maxPointerStyle={backgroundColor:e}}this.options.autoHideLimitLabels&&this.shFloorCeil()},shFloorCeil:function(){if(!this.options.hidePointerLabels){var t=!1,e=!1,i=this.isLabelBelowFloorLab(this.minLab),n=this.isLabelAboveCeilLab(this.minLab),s=this.isLabelAboveCeilLab(this.maxLab),o=this.isLabelBelowFloorLab(this.cmbLab),r=this.isLabelAboveCeilLab(this.cmbLab);if(i?(t=!0,this.hideEl(this.flrLab)):(t=!1,this.showEl(this.flrLab)),n?(e=!0,this.hideEl(this.ceilLab)):(e=!1,this.showEl(this.ceilLab)),this.range){var a=this.cmbLabelShown?r:s,l=this.cmbLabelShown?o:i;a?this.hideEl(this.ceilLab):e||this.showEl(this.ceilLab),l?this.hideEl(this.flrLab):t||this.showEl(this.flrLab)}}},isLabelBelowFloorLab:function(t){var e=this.options.rightToLeft,i=t.rzsp,n=t.rzsd,s=this.flrLab.rzsp,o=this.flrLab.rzsd;return e?i+n>=s-2:s+o+2>=i},isLabelAboveCeilLab:function(t){var e=this.options.rightToLeft,i=t.rzsp,n=t.rzsd,s=this.ceilLab.rzsp,o=this.ceilLab.rzsd;return e?s+o+2>=i:i+n>=s-2},updateRestrictionBar:function(){var t=0,e=0;if(this.options.restrictedRange)for(var i in this.options.restrictedRange=Array.isArray(this.options.restrictedRange)?this.options.restrictedRange:[this.options.restrictedRange],this.options.restrictedRange){var n=this.valueToPosition(this.options.restrictedRange[i].from),s=this.valueToPosition(this.options.restrictedRange[i].to);e=Math.abs(s-n),t=this.options.rightToLeft?s+this.handleHalfDim:n+this.handleHalfDim,this.setDimension(this.restrictedBar[i],e),this.setPosition(this.restrictedBar[i],t)}},updateSelectionBar:function(){var t=0,e=0,i=this.options.rightToLeft?!this.options.showSelectionBarEnd:this.options.showSelectionBarEnd,n=this.options.rightToLeft?this.maxH.rzsp+this.handleHalfDim:this.minH.rzsp+this.handleHalfDim;if(this.range)e=Math.abs(this.maxH.rzsp-this.minH.rzsp),t=n;else if(null!==this.options.showSelectionBarFromValue){var s=this.options.showSelectionBarFromValue,o=this.valueToPosition(s);(this.options.rightToLeft?this.lowValue<=s:this.lowValue>s)?(e=this.minH.rzsp-o,t=o+this.handleHalfDim):(e=o-this.minH.rzsp,t=this.minH.rzsp+this.handleHalfDim)}else i?(e=Math.abs(this.maxPos-this.minH.rzsp)+this.handleHalfDim,t=this.minH.rzsp+this.handleHalfDim):(e=this.minH.rzsp+this.handleHalfDim,t=0);if(this.setDimension(this.selBar,e),this.setPosition(this.selBar,t),this.range&&this.options.showOuterSelectionBars&&(this.options.rightToLeft?(this.setDimension(this.rightOutSelBar,t),this.setPosition(this.rightOutSelBar,0),this.setDimension(this.leftOutSelBar,this.getDimension(this.fullBar)-(t+e)),this.setPosition(this.leftOutSelBar,t+e)):(this.setDimension(this.leftOutSelBar,t),this.setPosition(this.leftOutSelBar,0),this.setDimension(this.rightOutSelBar,this.getDimension(this.fullBar)-(t+e)),this.setPosition(this.rightOutSelBar,t+e))),this.options.getSelectionBarColor){var r=this.getSelectionBarColor();this.scope.barStyle={backgroundColor:r}}else if(this.options.selectionBarGradient){var a=null!==this.options.showSelectionBarFromValue?this.valueToPosition(this.options.showSelectionBarFromValue):0,l=a-t>0^i,h=this.options.vertical?l?"bottom":"top":l?"left":"right";this.scope.barStyle={backgroundImage:"linear-gradient(to "+h+", "+this.options.selectionBarGradient.from+" 0%,"+this.options.selectionBarGradient.to+" 100%)"},this.options.vertical?(this.scope.barStyle.backgroundPosition="center "+(a+e+t+(l?-this.handleHalfDim:0))+"px",this.scope.barStyle.backgroundSize="100% "+(this.barDimension-this.handleHalfDim)+"px"):(this.scope.barStyle.backgroundPosition=a-t+(l?this.handleHalfDim:0)+"px center",this.scope.barStyle.backgroundSize=this.barDimension-this.handleHalfDim+"px 100%")}},getSelectionBarColor:function(){return this.range?this.options.getSelectionBarColor(this.scope.rzSliderModel,this.scope.rzSliderHigh):this.options.getSelectionBarColor(this.scope.rzSliderModel)},getPointerColor:function(t){return"max"===t?this.options.getPointerColor(this.scope.rzSliderHigh,t):this.options.getPointerColor(this.scope.rzSliderModel,t)},getTickColor:function(t){return this.options.getTickColor(t)},updateCmbLabel:function(){if(this.options.rightToLeft?this.minLab.rzsp-this.minLab.rzsd-10<=this.maxLab.rzsp:this.minLab.rzsp+this.minLab.rzsd+10>=this.maxLab.rzsp){var t,e=this.getDisplayValue(this.lowValue,"model"),i=this.getDisplayValue(this.highValue,"high");t=this.options.mergeRangeLabelsIfSame&&e===i?e:this.options.rightToLeft?i+this.options.labelOverlapSeparator+e:e+this.options.labelOverlapSeparator+i,this.translateFn(t,this.cmbLab,"cmb",!1);var n=this.options.boundPointerLabels?Math.min(Math.max(this.selBar.rzsp+this.selBar.rzsd/2-this.cmbLab.rzsd/2,0),this.barDimension-this.cmbLab.rzsd):this.selBar.rzsp+this.selBar.rzsd/2-this.cmbLab.rzsd/2;this.setPosition(this.cmbLab,n),this.cmbLabelShown=!0,this.hideEl(this.minLab),this.hideEl(this.maxLab),this.showEl(this.cmbLab)}else this.cmbLabelShown=!1,this.updateHighHandle(this.valueToPosition(this.highValue)),this.updateLowHandle(this.valueToPosition(this.lowValue)),this.showEl(this.maxLab),this.showEl(this.minLab),this.hideEl(this.cmbLab);this.options.autoHideLimitLabels&&this.shFloorCeil()},getDisplayValue:function(t,e){return this.options.stepsArray&&!this.options.bindIndexForStepsArray&&(t=this.getStepValue(t)),this.customTrFn(t,this.options.id,e)},roundStep:function(t,e){var i=e||this.step,n=parseFloat((t-this.minValue)/i).toPrecision(12);return n=Math.round(+n)*i,+(this.minValue+n).toFixed(this.precision)},hideEl:function(t){return t.css({visibility:"hidden"})},showEl:function(t){return t.rzAlwaysHide?t:t.css({visibility:"visible"})},setPosition:function(t,e){t.rzsp=e;var i={};return i[this.positionProperty]=Math.round(e)+"px",t.css(i),e},resetPosition:function(t){t.css({left:null,bottom:null})},getDimension:function(t){var e=t[0].getBoundingClientRect();return this.options.vertical?t.rzsd=(e.bottom-e.top)*this.options.scale:t.rzsd=(e.right-e.left)*this.options.scale,t.rzsd},setDimension:function(t,e){t.rzsd=e;var i={};return i[this.dimensionProperty]=Math.round(e)+"px",t.css(i),e},sanitizeValue:function(t){return Math.min(Math.max(t,this.minValue),this.maxValue)},valueToPosition:function(t){var e=this.linearValueToPosition;this.options.customValueToPosition?e=this.options.customValueToPosition:this.options.logScale&&(e=this.logValueToPosition);var i=e(t=this.sanitizeValue(t),this.minValue,this.maxValue)||0;return this.options.rightToLeft&&(i=1-i),i*this.maxPos},linearValueToPosition:function(t,e,i){return(t-e)/(i-e)},logValueToPosition:function(t,e,i){return((t=Math.log(t))-(e=Math.log(e)))/((i=Math.log(i))-e)},positionToValue:function(t){var e=t/this.maxPos;this.options.rightToLeft&&(e=1-e);var i=this.linearPositionToValue;return this.options.customPositionToValue?i=this.options.customPositionToValue:this.options.logScale&&(i=this.logPositionToValue),i(e,this.minValue,this.maxValue)||0},linearPositionToValue:function(t,e,i){return t*(i-e)+e},logPositionToValue:function(t,e,i){e=Math.log(e);var n=t*((i=Math.log(i))-e)+e;return Math.exp(n)},getEventAttr:function(t,e){return void 0===t.originalEvent?t[e]:t.originalEvent[e]},getEventXY:function(t,e){var i=this.options.vertical?"clientY":"clientX";if(void 0!==t[i])return t[i];var n=this.getEventAttr(t,"touches");if(void 0!==e)for(var s=0;s<n.length;s++)if(n[s].identifier===e)return n[s][i];return n[0][i]},getEventPosition:function(t,e){var i=this.sliderElem.rzsp;return(this.options.vertical?-this.getEventXY(t,e)+i:this.getEventXY(t,e)-i)*this.options.scale-this.handleHalfDim},getEventNames:function(t){var e={moveEvent:"",endEvent:""};return this.getEventAttr(t,"touches")?(e.moveEvent="touchmove",e.endEvent="touchend"):(e.moveEvent="mousemove",e.endEvent="mouseup"),e},getNearestHandle:function(t){if(!this.range)return this.minH;var e=this.getEventPosition(t),i=Math.abs(e-this.minH.rzsp),n=Math.abs(e-this.maxH.rzsp);return n>i?this.minH:i>n?this.maxH:this.options.rightToLeft?e>this.minH.rzsp?this.minH:this.maxH:e<this.minH.rzsp?this.minH:this.maxH},focusElement:function(t){t[0].focus()},bindEvents:function(){var e,i,n;this.options.draggableRange?(e="rzSliderDrag",i=this.onDragStart,n=this.onDragMove):(e="lowValue",i=this.onStart,n=this.onMove),this.options.onlyBindHandles||(this.selBar.on("mousedown",t.bind(this,i,null,e)),this.selBar.on("mousedown",t.bind(this,n,this.selBar))),this.options.draggableRangeOnly?(this.minH.on("mousedown",t.bind(this,i,null,e)),this.maxH.on("mousedown",t.bind(this,i,null,e))):(this.minH.on("mousedown",t.bind(this,this.onStart,this.minH,"lowValue")),this.range&&this.maxH.on("mousedown",t.bind(this,this.onStart,this.maxH,"highValue")),this.options.onlyBindHandles||(this.fullBar.on("mousedown",t.bind(this,this.onStart,null,null)),this.fullBar.on("mousedown",t.bind(this,this.onMove,this.fullBar)),this.ticks.on("mousedown",t.bind(this,this.onStart,null,null)),this.ticks.on("mousedown",t.bind(this,this.onTickClick,this.ticks)))),this.options.onlyBindHandles||(this.selBar.on("touchstart",t.bind(this,i,null,e)),this.selBar.on("touchstart",t.bind(this,n,this.selBar))),this.options.draggableRangeOnly?(this.minH.on("touchstart",t.bind(this,i,null,e)),this.maxH.on("touchstart",t.bind(this,i,null,e))):(this.minH.on("touchstart",t.bind(this,this.onStart,this.minH,"lowValue")),this.range&&this.maxH.on("touchstart",t.bind(this,this.onStart,this.maxH,"highValue")),this.options.onlyBindHandles||(this.fullBar.on("touchstart",t.bind(this,this.onStart,null,null)),this.fullBar.on("touchstart",t.bind(this,this.onMove,this.fullBar)),this.ticks.on("touchstart",t.bind(this,this.onStart,null,null)),this.ticks.on("touchstart",t.bind(this,this.onTickClick,this.ticks)))),this.options.keyboardSupport&&(this.minH.on("focus",t.bind(this,this.onPointerFocus,this.minH,"lowValue")),this.range&&this.maxH.on("focus",t.bind(this,this.onPointerFocus,this.maxH,"highValue")))},unbindEvents:function(){this.minH.off(),this.maxH.off(),this.fullBar.off(),this.selBar.off(),this.ticks.off()},onStart:function(e,n,s){var o,r,a=this.getEventNames(s);s.stopPropagation(),s.preventDefault(),this.calcViewDimensions(),e?this.tracking=n:(e=this.getNearestHandle(s),this.tracking=e===this.minH?"lowValue":"highValue"),e.addClass("rz-active"),this.options.keyboardSupport&&this.focusElement(e),o=t.bind(this,this.dragging.active?this.onDragMove:this.onMove,e),r=t.bind(this,this.onEnd,o),i.on(a.moveEvent,o),i.on(a.endEvent,r),this.endHandlerToBeRemovedOnEnd=r,this.callOnStart();var l=this.getEventAttr(s,"changedTouches");l&&(this.touchId||(this.isDragging=!0,this.touchId=l[0].identifier))},onMove:function(e,i,n){this.options.disableAnimation||this.moving&&this.sliderElem.addClass("noanimate"),this.moving=!0;var s,o=this.getEventAttr(i,"changedTouches");if(o)for(var r=0;r<o.length;r++)if(o[r].identifier===this.touchId){s=o[r];break}if(!o||s){var a,l=this.getEventPosition(i,s?s.identifier:void 0),h=this.options.rightToLeft?this.minValue:this.maxValue,u=this.options.rightToLeft?this.maxValue:this.minValue;0>=l?a=u:l>=this.maxPos?a=h:(a=this.positionToValue(l),a=n&&t.isNumber(this.options.showTicks)?this.roundStep(a,this.options.showTicks):this.roundStep(a)),this.positionTrackingHandle(a)}},onEnd:function(t,e){this.moving=!1,this.options.disableAnimation||this.sliderElem.removeClass("noanimate");var n=this.getEventAttr(e,"changedTouches");if(!n||n[0].identifier===this.touchId){this.isDragging=!1,this.touchId=null,this.options.keyboardSupport||(this.minH.removeClass("rz-active"),this.maxH.removeClass("rz-active"),this.tracking=""),this.dragging.active=!1;var s=this.getEventNames(e);i.off(s.moveEvent,t),i.off(s.endEvent,this.endHandlerToBeRemovedOnEnd),this.endHandlerToBeRemovedOnEnd=null,this.callOnEnd()}},onTickClick:function(t,e){this.onMove(t,e,!0)},onPointerFocus:function(e,i){this.tracking=i,e.one("blur",t.bind(this,this.onPointerBlur,e)),e.on("keydown",t.bind(this,this.onKeyboardEvent)),e.on("keyup",t.bind(this,this.onKeyUp)),this.firstKeyDown=!0,e.addClass("rz-active"),this.currentFocusElement={pointer:e,ref:i}},onKeyUp:function(){this.firstKeyDown=!0,this.callOnEnd()},onPointerBlur:function(t){t.off("keydown"),t.off("keyup"),t.removeClass("rz-active"),this.isDragging||(this.tracking="",this.currentFocusElement=null)},skipRestrictedRanges:function(t,e){if(this.options.restrictedRange&&Array.isArray(this.options.restrictedRange))for(var i in this.options.restrictedRange){var n=this.options.restrictedRange[i];if(0===n.from&&0===e&&[37,40].includes(t)||n.to>=this.options.restrictedRange[this.options.restrictedRange.length-1].to&&e>=this.options.restrictedRange[this.options.restrictedRange.length-1].to&&[38,39].includes(t))return e;n.to>e&&e>n.from&&(e=Math.abs(n.to-e)>Math.abs(n.from-e)?n.to:n.from)}return e},getKeyActions:function(t){var e=t+this.step,i=t-this.step,n=t+this.valueRange/10,s=t-this.valueRange/10;this.options.reversedControls&&(e=t-this.step,i=t+this.step,n=t-this.valueRange/10,s=t+this.valueRange/10);var o={UP:e,DOWN:i,LEFT:i,RIGHT:e,PAGEUP:n,PAGEDOWN:s,HOME:this.options.reversedControls?this.maxValue:this.minValue,END:this.options.reversedControls?this.minValue:this.maxValue};return this.options.rightToLeft&&(o.LEFT=e,o.RIGHT=i,this.options.vertical&&(o.UP=i,o.DOWN=e)),o},onKeyboardEvent:function(t){var i=t.keyCode||t.which,n=this[this.tracking],s=this.getKeyActions(n)[{38:"UP",40:"DOWN",37:"LEFT",39:"RIGHT",33:"PAGEUP",34:"PAGEDOWN",36:"HOME",35:"END"}[i]];if(null!=s&&""!==this.tracking){t.preventDefault(),this.firstKeyDown&&(this.firstKeyDown=!1,this.callOnStart());var o=this;e((function(){var t=o.roundStep(o.sanitizeValue(s));if(t=o.options.skipRestrictedRangesWithArrowKeys?o.skipRestrictedRanges(i,t):t,o.options.draggableRangeOnly){var e,n,r=o.highValue-o.lowValue;"lowValue"===o.tracking?(e=t,(n=t+r)>o.maxValue&&(e=(n=o.maxValue)-r)):(n=t,(e=t-r)<o.minValue&&(n=(e=o.minValue)+r)),o.positionTrackingBar(e,n)}else o.positionTrackingHandle(t)}))}},onDragStart:function(t,e,i){var n=this.getEventPosition(i);this.dragging={active:!0,value:this.positionToValue(n),difference:this.highValue-this.lowValue,lowLimit:this.options.rightToLeft?this.minH.rzsp-n:n-this.minH.rzsp,highLimit:this.options.rightToLeft?n-this.maxH.rzsp:this.maxH.rzsp-n},this.onStart(t,e,i)},getValue:function(t,e,i,n){var s,o=this.options.rightToLeft;return s="min"===t?i?n?o?this.minValue:this.maxValue-this.dragging.difference:o?this.maxValue-this.dragging.difference:this.minValue:o?this.positionToValue(e+this.dragging.lowLimit):this.positionToValue(e-this.dragging.lowLimit):i?n?o?this.minValue+this.dragging.difference:this.maxValue:o?this.maxValue:this.minValue+this.dragging.difference:o?this.positionToValue(e+this.dragging.lowLimit)+this.dragging.difference:this.positionToValue(e-this.dragging.lowLimit)+this.dragging.difference,this.roundStep(s)},onDragMove:function(t,e){this.options.disableAnimation||this.moving&&this.sliderElem.addClass("noanimate"),this.moving=!0;var i,n,s,o,r,a,l,h,u=this.getEventPosition(e);if(this.options.rightToLeft?(s=this.dragging.lowLimit,o=this.dragging.highLimit,l=this.maxH,h=this.minH):(s=this.dragging.highLimit,o=this.dragging.lowLimit,l=this.minH,h=this.maxH),r=o>=u,a=u>=this.maxPos-s,r){if(0===l.rzsp)return;i=this.getValue("min",u,!0,!1),n=this.getValue("max",u,!0,!1)}else if(a){if(h.rzsp===this.maxPos)return;n=this.getValue("max",u,!0,!0),i=this.getValue("min",u,!0,!0)}else i=this.getValue("min",u,!1),n=this.getValue("max",u,!1);this.positionTrackingBar(i,n)},positionTrackingBar:function(t,e){null!=this.options.minLimit&&t<this.options.minLimit&&(e=(t=this.options.minLimit)+this.dragging.difference),null!=this.options.maxLimit&&e>this.options.maxLimit&&(t=(e=this.options.maxLimit)-this.dragging.difference),this.lowValue=t,this.highValue=e,this.applyLowValue(),this.range&&this.applyHighValue(),this.applyModel(!0),this.updateHandles("lowValue",this.valueToPosition(t)),this.updateHandles("highValue",this.valueToPosition(e))},positionTrackingHandle:function(t){var e=!1;t=this.applyMinMaxLimit(t),t=this.applyRestrictedRange(t),this.range&&(this.options.pushRange?(t=this.applyPushRange(t),e=!0):(this.options.noSwitching&&("lowValue"===this.tracking&&t>this.highValue?t=this.applyMinMaxRange(this.highValue):"highValue"===this.tracking&&t<this.lowValue&&(t=this.applyMinMaxRange(this.lowValue))),t=this.applyMinMaxRange(t),"lowValue"===this.tracking&&t>this.highValue?(this.lowValue=this.highValue,this.applyLowValue(),this.applyModel(),this.updateHandles(this.tracking,this.maxH.rzsp),this.updateAriaAttributes(),this.tracking="highValue",this.minH.removeClass("rz-active"),this.maxH.addClass("rz-active"),this.options.keyboardSupport&&this.focusElement(this.maxH),e=!0):"highValue"===this.tracking&&t<this.lowValue&&(this.highValue=this.lowValue,this.applyHighValue(),this.applyModel(),this.updateHandles(this.tracking,this.minH.rzsp),this.updateAriaAttributes(),this.tracking="lowValue",this.maxH.removeClass("rz-active"),this.minH.addClass("rz-active"),this.options.keyboardSupport&&this.focusElement(this.minH),e=!0))),this[this.tracking]!==t&&(this[this.tracking]=t,"lowValue"===this.tracking?this.applyLowValue():this.applyHighValue(),this.applyModel(),this.updateHandles(this.tracking,this.valueToPosition(t)),this.updateAriaAttributes(),e=!0),e&&this.applyModel(!0)},applyMinMaxLimit:function(t){return null!=this.options.minLimit&&t<this.options.minLimit?this.options.minLimit:null!=this.options.maxLimit&&t>this.options.maxLimit?this.options.maxLimit:t},applyMinMaxRange:function(t){var e="lowValue"===this.tracking?this.highValue:this.lowValue,i=Math.abs(t-e);return null!=this.options.minRange&&i<this.options.minRange?"lowValue"===this.tracking?this.highValue-this.options.minRange:this.lowValue+this.options.minRange:null!=this.options.maxRange&&i>this.options.maxRange?"lowValue"===this.tracking?this.highValue-this.options.maxRange:this.lowValue+this.options.maxRange:t},applyRestrictedRange:function(t){for(var e in this.options.restrictedRange)if(null!=this.options.restrictedRange[e]&&t>this.options.restrictedRange[e].from&&t<this.options.restrictedRange[e].to){var i=(this.options.restrictedRange[e].to-this.options.restrictedRange[e].from)/2;if("lowValue"===this.tracking)return t>this.options.restrictedRange[e].from+i?this.options.restrictedRange[e].to:this.options.restrictedRange[e].from;if("highValue"===this.tracking)return t<this.options.restrictedRange[e].to-i?this.options.restrictedRange[e].from:this.options.restrictedRange[e].to}return t},applyPushRange:function(t){var e="lowValue"===this.tracking?this.highValue-t:t-this.lowValue,i=null!==this.options.minRange?this.options.minRange:this.options.step,n=this.options.maxRange;return i>e?("lowValue"===this.tracking?(this.highValue=Math.min(t+i,this.maxValue),t=this.highValue-i,this.applyHighValue(),this.updateHandles("highValue",this.valueToPosition(this.highValue))):(this.lowValue=Math.max(t-i,this.minValue),t=this.lowValue+i,this.applyLowValue(),this.updateHandles("lowValue",this.valueToPosition(this.lowValue))),this.updateAriaAttributes()):null!==n&&e>n&&("lowValue"===this.tracking?(this.highValue=t+n,this.applyHighValue(),this.updateHandles("highValue",this.valueToPosition(this.highValue))):(this.lowValue=t-n,this.applyLowValue(),this.updateHandles("lowValue",this.valueToPosition(this.lowValue))),this.updateAriaAttributes()),t},applyModel:function(t){this.internalChange=!0,this.scope.$apply(),t&&this.callOnChange(),this.internalChange=!1},callOnStart:function(){if(this.options.onStart){var t=this,e="lowValue"===this.tracking?"min":"max";this.scope.$evalAsync((function(){t.options.onStart(t.options.id,t.scope.rzSliderModel,t.scope.rzSliderHigh,e)}))}},callOnChange:function(){if(this.options.onChange){var t=this,e="lowValue"===this.tracking?"min":"max";this.scope.$evalAsync((function(){t.options.onChange(t.options.id,t.scope.rzSliderModel,t.scope.rzSliderHigh,e)}))}},callOnEnd:function(){if(this.options.onEnd){var t=this,e="lowValue"===this.tracking?"min":"max";this.scope.$evalAsync((function(){t.options.onEnd(t.options.id,t.scope.rzSliderModel,t.scope.rzSliderHigh,e)}))}this.scope.$emit("slideEnded")}},a}]).directive("rzslider",["RzSlider",function(t){return{restrict:"AE",replace:!0,scope:{rzSliderModel:"=?",rzSliderHigh:"=?",rzSliderOptions:"&?",rzSliderTplUrl:"@"},templateUrl:function(t,e){return e.rzSliderTplUrl||"rzSliderTpl.html"},link:function(e,i){e.slider=new t(e,i)}}}]);return e.run(["$templateCache",function(t){t.put("rzSliderTpl.html",'<div class=rzslider><span class="rz-bar-wrapper rz-left-out-selection"><span class=rz-bar></span></span> <span class="rz-bar-wrapper rz-right-out-selection"><span class=rz-bar></span></span> <span class=rz-bar-wrapper><span class=rz-bar></span></span> <span class=rz-bar-wrapper><span class="rz-bar rz-selection" ng-style=barStyle></span></span> <span class=rz-bar-wrapper><span class="rz-bar rz-restricted" ng-style=restrictionStyle></span></span> <span class="rz-pointer rz-pointer-min" ng-style=minPointerStyle></span> <span class="rz-pointer rz-pointer-max" ng-style=maxPointerStyle></span> <span class="rz-bubble rz-limit rz-floor"></span> <span class="rz-bubble rz-limit rz-ceil"></span> <span class="rz-bubble rz-model-value"></span> <span class="rz-bubble rz-model-high"></span> <span class=rz-bubble></span><ul ng-show=showTicks class=rz-ticks><li ng-repeat="t in ticks track by $index" class=rz-tick ng-class="{\'rz-selected\': t.selected}" ng-style=t.style ng-attr-uib-tooltip="{{ t.tooltip }}" ng-attr-tooltip-placement={{t.tooltipPlacement}} ng-attr-tooltip-append-to-body="{{ t.tooltip ? true : undefined}}"><span ng-if="t.value != null" class=rz-tick-value ng-attr-uib-tooltip="{{ t.valueTooltip }}" ng-attr-tooltip-placement={{t.valueTooltipPlacement}}>{{ t.value }}</span> <span ng-if="t.legend != null" class=rz-tick-legend>{{ t.legend }}</span></li></ul></div>')}]),e.name})?n.apply(e,s):n)||(t.exports=o)}()}}]);