graphdb-workbench 3.0.0 → 3.0.1-RC2

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 (1056) hide show
  1. package/dist/0.2bd3c5db52ab2483ff5a.bundle.js +25 -0
  2. package/dist/1.4557dfdb926ba6471bb3.bundle.js +1 -0
  3. package/dist/10.8a76ef708b5c69241c68.bundle.js +1 -0
  4. package/dist/100.c4aaa3d10f570dba12a9.bundle.js +1 -0
  5. package/dist/101.8f0b38c2e58132599194.bundle.js +1 -0
  6. package/dist/102.2b1c8399187ccefe5a4f.bundle.js +1 -0
  7. package/dist/103.96f2287dde7e4fc25c9d.bundle.js +1 -0
  8. package/dist/104.ddeb2cb5758d1ed52b33.bundle.js +1 -0
  9. package/dist/105.e8302c421c3d7b516b4c.bundle.js +1 -0
  10. package/dist/106.00a983e1594a051a5fe7.bundle.js +1 -0
  11. package/dist/107.7b548755171f42f06352.bundle.js +1 -0
  12. package/dist/108.160515780d319edefb5c.bundle.js +1 -0
  13. package/dist/109.1da75239f8e2a5d63b23.bundle.js +1 -0
  14. package/dist/11.7343b4e08a786f0a1eab.bundle.js +1 -0
  15. package/dist/110.780a31b32e116f49a75f.bundle.js +1 -0
  16. package/dist/111.7e3057275034cb5dc5a6.bundle.js +1 -0
  17. package/dist/112.22145690dd697aa9275d.bundle.js +1 -0
  18. package/dist/113.c135232a9177d596406c.bundle.js +1 -0
  19. package/dist/114.b2c0df64a560a8dd5ae0.bundle.js +1 -0
  20. package/dist/115.543de06ecb5553155522.bundle.js +1 -0
  21. package/dist/116.79b9b3abc0b03e8b7924.bundle.js +1 -0
  22. package/dist/117.ae87c77380fb7660d9ec.bundle.js +1 -0
  23. package/dist/118.6756956bb51b3350690d.bundle.js +1 -0
  24. package/dist/119.c8e77171125b6497990a.bundle.js +1 -0
  25. package/dist/12.3669f82ad6489ffeb12b.bundle.js +1 -0
  26. package/dist/120.1484bac063921edb7a2c.bundle.js +1 -0
  27. package/dist/121.6a0ffc9dfc3ea14fd0d3.bundle.js +1 -0
  28. package/dist/122.13363b4c4f89776fa1b5.bundle.js +1 -0
  29. package/dist/123.616625d0908d7e6eab3d.bundle.js +1 -0
  30. package/dist/124.924dce24aad641d1dd23.bundle.js +1 -0
  31. package/dist/125.d86cff2a5cc679dc20d9.bundle.js +1 -0
  32. package/dist/126.ff5a04a468a8a8d1a99a.bundle.js +1 -0
  33. package/dist/127.954cf8032872deba10e6.bundle.js +1 -0
  34. package/dist/128.639a495883f611c4691e.bundle.js +1 -0
  35. package/dist/129.5d11264c418527e53342.bundle.js +1 -0
  36. package/dist/13.c904bbb863125c4ff6cc.bundle.js +1 -0
  37. package/dist/130.82fe31a14b953086bb45.bundle.js +1 -0
  38. package/dist/131.e4be75b25c9eb85db5a8.bundle.js +1 -0
  39. package/dist/132.364bb39217e31f46480f.bundle.js +1 -0
  40. package/dist/133.df86fdb8d83ca7237793.bundle.js +1 -0
  41. package/dist/134.33804d658ebadcbc3b55.bundle.js +1 -0
  42. package/dist/135.797fc168b7a948df2ccb.bundle.js +1 -0
  43. package/dist/136.5ca50393ed4761535bfe.bundle.js +1 -0
  44. package/dist/137.d8b48c06ecd279c12ca7.bundle.js +1 -0
  45. package/dist/138.3bb6b7be471eb2d04c6e.bundle.js +1 -0
  46. package/dist/139.ea151aec614a76870451.bundle.js +1 -0
  47. package/dist/14.d0ab3c83926b616e7354.bundle.js +1 -0
  48. package/dist/140.6583cf41ab8e891ebbb6.bundle.js +1 -0
  49. package/dist/141.af39fc3a6dc1dafdb5ab.bundle.js +1 -0
  50. package/dist/142.c2392a48e4d3a2a16866.bundle.js +1 -0
  51. package/dist/143.e4511e1698aca68814e3.bundle.js +1 -0
  52. package/dist/144.f58114954e257cb77bde.bundle.js +1 -0
  53. package/dist/145.d558ac05737ca5ef00a4.bundle.js +1 -0
  54. package/dist/146.de12b58d856c54decc0b.bundle.js +1 -0
  55. package/dist/147.6faf4e13462207010d38.bundle.js +1 -0
  56. package/dist/148.25167c5ae125b23811c9.bundle.js +1 -0
  57. package/dist/149.9629d0dfe4f62aa15bba.bundle.js +1 -0
  58. package/dist/15.8ab8b6f8c611ec1dfddc.bundle.js +1 -0
  59. package/dist/150.c8bf724fbe76d0e0696d.bundle.js +1 -0
  60. package/dist/151.4970e08b91e9849ae5e3.bundle.js +1 -0
  61. package/dist/152.8a1ea0a8d04e0873f67b.bundle.js +1 -0
  62. package/dist/153.64e4e15ca8abeb5268e3.bundle.js +1 -0
  63. package/dist/154.89f16e758f1caaae814c.bundle.js +1 -0
  64. package/dist/155.000faec57d99d9bf474d.bundle.js +1 -0
  65. package/dist/156.3c416d051a00426a3f8b.bundle.js +1 -0
  66. package/dist/157.0ba85cb192ee6aedd266.bundle.js +1 -0
  67. package/dist/158.703ab824eac1d402aa3e.bundle.js +1 -0
  68. package/dist/159.ecb67dffd5c364d1c34f.bundle.js +1 -0
  69. package/dist/16.d90832fa4dbc05e4141e.bundle.js +73 -0
  70. package/dist/160.90a42dd6a992307c602d.bundle.js +1 -0
  71. package/dist/161.228b61b39d936f8fca31.bundle.js +1 -0
  72. package/dist/162.d3c88ab3fff66431b4ee.bundle.js +1 -0
  73. package/dist/163.716d49313f3e196497dd.bundle.js +1 -0
  74. package/dist/164.f108ae176ec1462622a1.bundle.js +1 -0
  75. package/dist/165.1b07eebc822bd1397bcb.bundle.js +1 -0
  76. package/dist/166.31241e54608319e510e2.bundle.js +1 -0
  77. package/dist/167.fb0a08ef1500d40683f4.bundle.js +1 -0
  78. package/dist/168.93ec88ed31e7f11a282c.bundle.js +1 -0
  79. package/dist/169.6a3b91199ab7b7824519.bundle.js +1 -0
  80. package/dist/17.019de109eebe6b7563fe.bundle.js +2 -0
  81. package/dist/170.50b83ca5eca844a4e73e.bundle.js +1 -0
  82. package/dist/171.dd27cf34621cc515a302.bundle.js +1 -0
  83. package/dist/172.a87e893b16c99a52f4e0.bundle.js +1 -0
  84. package/dist/173.425381e5433b54da911c.bundle.js +1 -0
  85. package/dist/174.c076695669d924d93331.bundle.js +1 -0
  86. package/dist/175.b94e42f1b1b7479f46ad.bundle.js +1 -0
  87. package/dist/176.fb6bf711be5027eb41d9.bundle.js +1 -0
  88. package/dist/177.dfbb4e6f96af71b34d1e.bundle.js +1 -0
  89. package/dist/178.e2fc84729dc36962bbb3.bundle.js +1 -0
  90. package/dist/179.63500ae70b7715467e79.bundle.js +1 -0
  91. package/dist/18.6722328814b9fcee2f6e.bundle.js +1 -0
  92. package/dist/180.a91ac4fc484a71bd5ed8.bundle.js +1 -0
  93. package/dist/181.21aa54b727e44eac383c.bundle.js +1 -0
  94. package/dist/182.9d01760adff023e0948a.bundle.js +1 -0
  95. package/dist/183.c6a1307c8d78c5c9ae00.bundle.js +1 -0
  96. package/dist/184.62c07d24e133293655ae.bundle.js +1 -0
  97. package/dist/185.5c3dba7cbd52a569bb05.bundle.js +1 -0
  98. package/dist/186.a970d267f4dee4831981.bundle.js +1 -0
  99. package/dist/187.4b77f6c4d48833859448.bundle.js +1 -0
  100. package/dist/188.b7e99c584def1ef29e80.bundle.js +1 -0
  101. package/dist/189.8da0b0461b98d72c241a.bundle.js +1 -0
  102. package/dist/19.a0af0ec7c0e4eb7ab20c.bundle.js +1 -0
  103. package/dist/190.431c135250df34322375.bundle.js +1 -0
  104. package/dist/191.8e086a7e20b722162868.bundle.js +1 -0
  105. package/dist/192.91d48d3e1a2cb8f0c7b5.bundle.js +1 -0
  106. package/dist/193.b4da2736622644c5e1b8.bundle.js +1 -0
  107. package/dist/194.dcec7e93f0c0a4051cf7.bundle.js +1 -0
  108. package/dist/195.16aaf44be77e2f6ad673.bundle.js +1 -0
  109. package/dist/196.60d4f4beef8337a6dd6b.bundle.js +1 -0
  110. package/dist/197.1b329b4688c6481d4eef.bundle.js +1 -0
  111. package/dist/198.10e4b7ce7021e8c3cb23.bundle.js +1 -0
  112. package/dist/199.faa702aefcba93dc4962.bundle.js +1 -0
  113. package/dist/2.354e410d4fb45ab44420.bundle.js +1 -0
  114. package/dist/20.b2e6e5248ede44286621.bundle.js +1 -0
  115. package/dist/200.fdc91e3c9fb94e006c7c.bundle.js +1 -0
  116. package/dist/201.870a2efdef2350e37e70.bundle.js +1 -0
  117. package/dist/202.55f46abde3ae7061cca9.bundle.js +1 -0
  118. package/dist/203.bf9e6cb693a152422ab0.bundle.js +1 -0
  119. package/dist/204.9c7781193e68533eebc4.bundle.js +1 -0
  120. package/dist/205.0e3e756ef2c29ec00fe6.bundle.js +1 -0
  121. package/dist/206.dce1fab3fc6bf7c804d3.bundle.js +1 -0
  122. package/dist/207.c84b10f40c12385646db.bundle.js +1 -0
  123. package/dist/208.3d503b639471b051cdab.bundle.js +1 -0
  124. package/dist/209.323590fc21efb7de4956.bundle.js +1 -0
  125. package/dist/21.6de69abd52835f511f89.bundle.js +2 -0
  126. package/dist/210.476ccc2995ed966be034.bundle.js +1 -0
  127. package/dist/211.8718378f154cb64364d3.bundle.js +1 -0
  128. package/dist/212.c79ba1497c824dee645a.bundle.js +1 -0
  129. package/dist/213.ef418c82b67c0ddc45ea.bundle.js +1 -0
  130. package/dist/214.b548b397bac1697d31f1.bundle.js +1 -0
  131. package/dist/215.253c1c292f8a7064de95.bundle.js +1 -0
  132. package/dist/216.e966845b5bcd6c0b3adc.bundle.js +1 -0
  133. package/dist/217.739936a84de121176e47.bundle.js +1 -0
  134. package/dist/218.6867bbb0376079ba1e44.bundle.js +1 -0
  135. package/dist/219.bbf0ab126f91f250d887.bundle.js +1 -0
  136. package/dist/22.035be7329fd099903c2b.bundle.js +1 -0
  137. package/dist/220.59a74cd0facf8db11b4d.bundle.js +1 -0
  138. package/dist/221.f0aadc6f0376c50ad799.bundle.js +1 -0
  139. package/dist/222.a2cd53e123c2aebf3598.bundle.js +1 -0
  140. package/dist/223.748f4d705b4a8b2b8601.bundle.js +1 -0
  141. package/dist/224.487195773a3647b3c44a.bundle.js +1 -0
  142. package/dist/225.d90ebf8ddd7d4cf57525.bundle.js +1 -0
  143. package/dist/226.e750b6a636a10193d502.bundle.js +1 -0
  144. package/dist/227.de90d95fd31bf57c52fd.bundle.js +1 -0
  145. package/dist/228.b81d8d7266101ecf7f02.bundle.js +1 -0
  146. package/dist/229.19ce650e0aa9118cdd8c.bundle.js +1 -0
  147. package/dist/23.f499db643c1d187eefe1.bundle.js +1 -0
  148. package/dist/230.0e37724a4e1f810026e9.bundle.js +1 -0
  149. package/dist/231.909faa919088245e9988.bundle.js +1 -0
  150. package/dist/232.98aad6a0d47f9be96d77.bundle.js +1 -0
  151. package/dist/233.963f438276d23bad3b09.bundle.js +1 -0
  152. package/dist/234.13f0392fbb35ff987c31.bundle.js +1 -0
  153. package/dist/235.e5c7573dbd2e449bba7e.bundle.js +1 -0
  154. package/dist/236.cecc69dd5086b1982b26.bundle.js +1 -0
  155. package/dist/237.a2aac3c56d4ce1ade323.bundle.js +1 -0
  156. package/dist/238.41257cec89fb5e00b9be.bundle.js +1 -0
  157. package/dist/239.820a17ea4c8dda8e14ae.bundle.js +1 -0
  158. package/dist/24.057be6f617f4e3f35691.bundle.js +1 -0
  159. package/dist/240.b52c847eca1595dd6304.bundle.js +1 -0
  160. package/dist/241.7cda072298804c381056.bundle.js +1 -0
  161. package/dist/242.c2143bfd879222a393dc.bundle.js +1 -0
  162. package/dist/243.ed8bd30b9501bcb22fd3.bundle.js +1 -0
  163. package/dist/244.1faab67e03a2dd56e7bd.bundle.js +1 -0
  164. package/dist/245.303b830bba80fc996aef.bundle.js +1 -0
  165. package/dist/246.08ceb636f5f8e4317ca5.bundle.js +1 -0
  166. package/dist/247.7c03700f1dbc6eac981b.bundle.js +1 -0
  167. package/dist/248.35714eeadd519aa9dfcf.bundle.js +1 -0
  168. package/dist/249.4f05392ce00a66f308d3.bundle.js +1 -0
  169. package/dist/25.25d1fdcb1cbeafd51681.bundle.js +1 -0
  170. package/dist/250.48f84130182327722cd4.bundle.js +1 -0
  171. package/dist/251.0a1b0fa923b789cd5864.bundle.js +1 -0
  172. package/dist/252.ee5468c4bce94fbd4340.bundle.js +1 -0
  173. package/dist/253.a04576b85494574beace.bundle.js +1 -0
  174. package/dist/254.38d3c295868cd8b424f3.bundle.js +1 -0
  175. package/dist/255.7ef582a1a9d7c6bc9ce4.bundle.js +1 -0
  176. package/dist/256.fb497f2bc426e9e9234e.bundle.js +1 -0
  177. package/dist/257.451d6ff1cbcd1e82e28b.bundle.js +1 -0
  178. package/dist/258.af0b3d78c0f9b4c4b483.bundle.js +1 -0
  179. package/dist/259.9537fd79785cf7619d46.bundle.js +1 -0
  180. package/dist/26.3aa8a6a7f10039840838.bundle.js +1 -0
  181. package/dist/260.8fee4d335e86b67b41d5.bundle.js +1 -0
  182. package/dist/261.c8f67d68093e28809fa1.bundle.js +1 -0
  183. package/dist/262.1b4efca5671fa8739f99.bundle.js +1 -0
  184. package/dist/263.3c39d4d7aec5edcb16c5.bundle.js +1 -0
  185. package/dist/264.c6d038d027b8f5579b62.bundle.js +1 -0
  186. package/dist/265.617cecb15408c41029c6.bundle.js +1 -0
  187. package/dist/266.4bfa2a1fe523d6216f7e.bundle.js +1 -0
  188. package/dist/267.01ab39b0545a7c344159.bundle.js +1 -0
  189. package/dist/268.39c53e7626a3fa726375.bundle.js +1 -0
  190. package/dist/269.fd7e2132b777bc9d1ff9.bundle.js +1 -0
  191. package/dist/27.d57273bcf6b077d47881.bundle.js +1 -0
  192. package/dist/270.0f6fb5c7df457d82e84e.bundle.js +1 -0
  193. package/dist/271.373aee82d15c6d2f8f7a.bundle.js +1 -0
  194. package/dist/272.9dbea2e7ad62227486ce.bundle.js +1 -0
  195. package/dist/273.dc17327abc54482526b8.bundle.js +1 -0
  196. package/dist/274.2833123a8bd15317d600.bundle.js +1 -0
  197. package/dist/275.5a98040d9ca70b048ed7.bundle.js +1 -0
  198. package/dist/276.bef705bc5ef0f9163513.bundle.js +1 -0
  199. package/dist/277.91fc4bd7181f9ec9543b.bundle.js +1 -0
  200. package/dist/278.8da2ca78f3f18de844b0.bundle.js +1 -0
  201. package/dist/279.0ba25336a8c62c398f22.bundle.js +1 -0
  202. package/dist/28.f55e82c586a0aa6d8aa1.bundle.js +7 -0
  203. package/dist/280.91c05c58f6946ac5e775.bundle.js +1 -0
  204. package/dist/281.d5033b6b48a23740404c.bundle.js +1 -0
  205. package/dist/282.3f3ecb09ebb4cdb9799b.bundle.js +1 -0
  206. package/dist/283.3d85c0c11a24ba94bc9e.bundle.js +1 -0
  207. package/dist/284.77b125cefcaf99bac4c1.bundle.js +1 -0
  208. package/dist/285.9f26229687aa739765ab.bundle.js +1 -0
  209. package/dist/286.ab1b9830cc8d2fc48602.bundle.js +1 -0
  210. package/dist/287.4f8a30c6c6c72ebafedb.bundle.js +1 -0
  211. package/dist/288.6ea79119bafec1668b08.bundle.js +1 -0
  212. package/dist/289.d9e2d930e8c5def4e60e.bundle.js +1 -0
  213. package/dist/29.33b92413c2f0a708b821.bundle.js +3 -0
  214. package/dist/290.df1e4f87e577891f23e2.bundle.js +1 -0
  215. package/dist/291.2248803748e6ddd82362.bundle.js +1 -0
  216. package/dist/292.26b7cf5b4ba505bf736a.bundle.js +1 -0
  217. package/dist/293.24ac4cb0566c996f1abc.bundle.js +1 -0
  218. package/dist/294.c5cb64c5f3509e99984c.bundle.js +1 -0
  219. package/dist/295.1413ebedfbf2005fb24a.bundle.js +1 -0
  220. package/dist/296.7e001d5724cb7978901d.bundle.js +1 -0
  221. package/dist/297.27a6b1a1f40705c08693.bundle.js +1 -0
  222. package/dist/298.189959715d58a4f1445c.bundle.js +1 -0
  223. package/dist/299.c473a1eb34ed5a780d05.bundle.js +1 -0
  224. package/dist/30.f818533689767fa3e2ca.bundle.js +2 -0
  225. package/dist/300.602c871c4566ae3c80ab.bundle.js +1 -0
  226. package/dist/301.4d6018bd9a2d72c32ca3.bundle.js +1 -0
  227. package/dist/302.5f7224625c2e70ee4791.bundle.js +1 -0
  228. package/dist/303.086b0940cc7d863fbbc8.bundle.js +1 -0
  229. package/dist/304.6e39490d6e1d3bc4b6c2.bundle.js +1 -0
  230. package/dist/305.7c00c74628da866259be.bundle.js +1 -0
  231. package/dist/306.db0e8bc5f35abf640e42.bundle.js +1 -0
  232. package/dist/307.0e1f01f21e9f5dc70a8f.bundle.js +1 -0
  233. package/dist/308.1642376b04184fb272eb.bundle.js +1 -0
  234. package/dist/309.e111bee7394b0de41c56.bundle.js +1 -0
  235. package/dist/31.721783158dcfdee0b882.bundle.js +2 -0
  236. package/dist/310.ef413cd864181beb9556.bundle.js +1 -0
  237. package/dist/311.7518b4c6e5d2ea343f20.bundle.js +1 -0
  238. package/dist/312.0e853d11527c8a2fc070.bundle.js +1 -0
  239. package/dist/313.c089d8e62c1841a5f49b.bundle.js +1 -0
  240. package/dist/314.e6c636f3d4b56aca7378.bundle.js +1 -0
  241. package/dist/315.dda15f18edf369be8d8a.bundle.js +1 -0
  242. package/dist/316.c90d378bfd6d7f804915.bundle.js +1 -0
  243. package/dist/317.6fb468784f5c141df583.bundle.js +1 -0
  244. package/dist/318.0d16023c3f5016d3faf7.bundle.js +1 -0
  245. package/dist/319.ad1eff1ab789c146b4bb.bundle.js +1 -0
  246. package/dist/32.e14fc108d80a26925f88.bundle.js +2 -0
  247. package/dist/320.dc827f5a9896e1a65a5f.bundle.js +1 -0
  248. package/dist/321.bbfec75d2729ebbfdea6.bundle.js +1 -0
  249. package/dist/322.6524ee61a5bbcdc82bad.bundle.js +1 -0
  250. package/dist/323.802088a2b8e1adcd6d71.bundle.js +1 -0
  251. package/dist/324.cacea29e07979bb1cc29.bundle.js +1 -0
  252. package/dist/325.234c63ff26db404cd5f8.bundle.js +1 -0
  253. package/dist/326.ac9be90169800a0ee3f2.bundle.js +1 -0
  254. package/dist/327.165bec614f967b62acbb.bundle.js +1 -0
  255. package/dist/328.15a0db6212a0b8d5bd8e.bundle.js +1 -0
  256. package/dist/329.97297be4a59b26859355.bundle.js +1 -0
  257. package/dist/33.fec387c3be8b00368957.bundle.js +1 -0
  258. package/dist/330.83871dcf443acc1eb0fc.bundle.js +1 -0
  259. package/dist/331.b3b17b2c59f9269019e6.bundle.js +1 -0
  260. package/dist/332.2db32da5af5ac8856a0c.bundle.js +1 -0
  261. package/dist/333.73a42ded25c62e9eb9cb.bundle.js +1 -0
  262. package/dist/334.2970372fd546db2cd792.bundle.js +1 -0
  263. package/dist/335.b445bf889c4bfaa20ded.bundle.js +1 -0
  264. package/dist/336.dca8c996b0759024a80c.bundle.js +1 -0
  265. package/dist/337.cf2037f0cf8127d33cf0.bundle.js +1 -0
  266. package/dist/338.8ae1da6f0aa6bcbc630d.bundle.js +1 -0
  267. package/dist/339.4b1c4a707434cd5951f2.bundle.js +1 -0
  268. package/dist/34.61223a86d6cb125fc2c8.bundle.js +2 -0
  269. package/dist/340.597c4a6eed22a4136ae3.bundle.js +1 -0
  270. package/dist/341.d614e61e6be841fc0983.bundle.js +1 -0
  271. package/dist/342.ad1d6a86503c70875346.bundle.js +1 -0
  272. package/dist/343.ea1819f2b7f140a9ee4c.bundle.js +1 -0
  273. package/dist/344.568e49febdb4090e839d.bundle.js +1 -0
  274. package/dist/345.3722e34098d46ed05812.bundle.js +1 -0
  275. package/dist/346.c5059954393a764ff335.bundle.js +1 -0
  276. package/dist/347.593171161a367bc5a364.bundle.js +1 -0
  277. package/dist/348.a113e5a47d253a04ee81.bundle.js +1 -0
  278. package/dist/349.f44caf970b26edc1cfb5.bundle.js +1 -0
  279. package/dist/35.1b457bfdeea08b897d25.bundle.js +1 -0
  280. package/dist/350.c897069f05d3321859db.bundle.js +1 -0
  281. package/dist/351.20c27eef90c10ba375ac.bundle.js +1 -0
  282. package/dist/352.d1b1b0d83832f01af001.bundle.js +1 -0
  283. package/dist/353.8dbc0f6a10d578ed65d8.bundle.js +1 -0
  284. package/dist/354.37f97145df25c4f06325.bundle.js +1 -0
  285. package/dist/355.0a20b274d332dfc1de8f.bundle.js +1 -0
  286. package/dist/356.95c716c47f819558c300.bundle.js +1 -0
  287. package/dist/357.a2209f579e8c7d7aaf15.bundle.js +1 -0
  288. package/dist/358.8146d57c402ea5a46aa9.bundle.js +1 -0
  289. package/dist/359.505a7998aff523d2680c.bundle.js +1 -0
  290. package/dist/36.54cce0e26c592b832258.bundle.js +1 -0
  291. package/dist/360.91e7d4c09df93dde8884.bundle.js +1 -0
  292. package/dist/361.953133e649cf55b9aa14.bundle.js +1 -0
  293. package/dist/362.c1fbced15151f2ebae7b.bundle.js +1 -0
  294. package/dist/363.7a3d9b6e636d736c57b1.bundle.js +1 -0
  295. package/dist/364.d947f280b580cfeb79eb.bundle.js +1 -0
  296. package/dist/365.11faeabe12908aa64aef.bundle.js +1 -0
  297. package/dist/366.ab802a35cb45c4ecdf17.bundle.js +1 -0
  298. package/dist/367.e1ee15412bacb5b85419.bundle.js +1 -0
  299. package/dist/368.d6f579c0f7fba1553dff.bundle.js +1 -0
  300. package/dist/369.963f79259b7f6145a2c2.bundle.js +1 -0
  301. package/dist/37.be47535106d4b3dbc077.bundle.js +1 -0
  302. package/dist/370.a5352be153c412f455ce.bundle.js +1 -0
  303. package/dist/371.f0231bec1961ba9e4c6e.bundle.js +1 -0
  304. package/dist/372.382a16592fda603ec67f.bundle.js +1 -0
  305. package/dist/373.9cddef78290755aa8d58.bundle.js +1 -0
  306. package/dist/374.4d1c90a31ec1ed24b831.bundle.js +1 -0
  307. package/dist/375.7f71ef7df9411656fb87.bundle.js +1 -0
  308. package/dist/376.48e276a20cff85625679.bundle.js +1 -0
  309. package/dist/377.17463d001e2775885992.bundle.js +1 -0
  310. package/dist/378.7308f5a83c5825b2307e.bundle.js +1 -0
  311. package/dist/379.8b6d5783d68c7dfaccc7.bundle.js +1 -0
  312. package/dist/38.79bf8cac11760d2e69be.bundle.js +1 -0
  313. package/dist/380.1e6fc3ffd068b97bec16.bundle.js +1 -0
  314. package/dist/381.aea7ee474ca60accc01b.bundle.js +1 -0
  315. package/dist/382.c69f3647cc33ace74db4.bundle.js +1 -0
  316. package/dist/383.c5fa700aa0abe2bad3b6.bundle.js +1 -0
  317. package/dist/384.b8cfd65a4cbb0bc5de35.bundle.js +1 -0
  318. package/dist/385.559499835625e3e755d3.bundle.js +1 -0
  319. package/dist/386.68267d7e2126f6a22477.bundle.js +1 -0
  320. package/dist/387.f75d2415e0bcabeced11.bundle.js +1 -0
  321. package/dist/388.5d6d70b2803e1f217000.bundle.js +1 -0
  322. package/dist/389.4d630e2829a08e9f4631.bundle.js +1 -0
  323. package/dist/39.051d67965709d49db0ab.bundle.js +1 -0
  324. package/dist/390.4384ec2c9013dfececfb.bundle.js +1 -0
  325. package/dist/391.a2d8e07d43e02c7fd62d.bundle.js +1 -0
  326. package/dist/392.96254712f6158ac44044.bundle.js +1 -0
  327. package/dist/393.0cf32ecac62e6defa254.bundle.js +1 -0
  328. package/dist/399.b13be7ef0c258335c762.bundle.js +1 -0
  329. package/dist/4.c0e71650be0c1eb6da4e.bundle.js +1 -0
  330. package/dist/40.9208517ef50b6f8024c6.bundle.js +1 -0
  331. package/dist/400.b0a11aef28fbd269a48e.bundle.js +1 -0
  332. package/dist/401.3ff70723721f97c3ec1c.bundle.js +1 -0
  333. package/dist/402.132c176c1b3ee766df3d.bundle.js +1 -0
  334. package/dist/403.a75e98eb4066278a2a83.bundle.js +1 -0
  335. package/dist/404.00ef41fe988cd9161359.bundle.js +1 -0
  336. package/dist/405.f89db5c1c8e3eef8aa7c.bundle.js +1 -0
  337. package/dist/406.8ca4c77a69ec2e625dba.bundle.js +1 -0
  338. package/dist/407.9b3bb55be0152092ea80.bundle.js +1 -0
  339. package/dist/408.afc8612e7f163b101632.bundle.js +1 -0
  340. package/dist/409.858aacc2215bc483c074.bundle.js +1 -0
  341. package/dist/41.0d8779a7af2eb26cf157.bundle.js +1 -0
  342. package/dist/410.a86d6bdafde1b951e239.bundle.js +1 -0
  343. package/dist/411.c70baccd0c3d6a38c545.bundle.js +1 -0
  344. package/dist/412.423d89f4ff3da8d26719.bundle.js +1 -0
  345. package/dist/413.45cfbf55cf4fb7ca14b3.bundle.js +1 -0
  346. package/dist/414.b9fc9f6299ad8a23d39e.bundle.js +1 -0
  347. package/dist/415.ee3e534d5e771acc75b1.bundle.js +1 -0
  348. package/dist/416.68f6286f80654cdbe4e4.bundle.js +1 -0
  349. package/dist/417.70adf0a6f0571c394764.bundle.js +1 -0
  350. package/dist/418.e150e60cd47ccebe9a3b.bundle.js +1 -0
  351. package/dist/419.90848ff3d4f7a18fdbba.bundle.js +1 -0
  352. package/dist/42.0147219d61d3814c266c.bundle.js +1 -0
  353. package/dist/420.f53fda6c83cb3bf5c3cb.bundle.js +1 -0
  354. package/dist/421.4ab038cd0a75d6bb1439.bundle.js +1 -0
  355. package/dist/422.3c028ca173636de51c84.bundle.js +1 -0
  356. package/dist/423.6edb13ec0cf08388c947.bundle.js +1 -0
  357. package/dist/424.725b821051516e73783a.bundle.js +1 -0
  358. package/dist/425.03fcf969da1a4e92fec3.bundle.js +1 -0
  359. package/dist/426.aa6924f6f1192d037009.bundle.js +1 -0
  360. package/dist/427.5c7b72141707b841e8a3.bundle.js +1 -0
  361. package/dist/428.0d471ce7c68654947c04.bundle.js +1 -0
  362. package/dist/429.6f7df5bde002cd265d62.bundle.js +1 -0
  363. package/dist/43.96e8540045f061114280.bundle.js +1 -0
  364. package/dist/430.3c43456893f64472b27a.bundle.js +1 -0
  365. package/dist/431.119741766f60e10bf407.bundle.js +1 -0
  366. package/dist/432.0bc9e4074a81eb2c0f9a.bundle.js +1 -0
  367. package/dist/433.0aa7472cddb1bdd51224.bundle.js +1 -0
  368. package/dist/434.cdc3419c4a293c1e6910.bundle.js +1 -0
  369. package/dist/435.ea1c4300d0f0631904c9.bundle.js +1 -0
  370. package/dist/436.63295c82171f9e86ce96.bundle.js +1 -0
  371. package/dist/437.b63c56a0d911126d147e.bundle.js +1 -0
  372. package/dist/438.acca420d75de5b586cae.bundle.js +1 -0
  373. package/dist/439.8b9747c2da3cd15aa182.bundle.js +1 -0
  374. package/dist/44.45a26f697588279fbc60.bundle.js +1 -0
  375. package/dist/440.5ad6f0752db9d5ed4303.bundle.js +1 -0
  376. package/dist/441.2dd50bb7e013b0058f07.bundle.js +1 -0
  377. package/dist/442.f2081e9af649d708ab74.bundle.js +1 -0
  378. package/dist/443.969280af4067a22d1a8b.bundle.js +1 -0
  379. package/dist/444.a5971579184b091ed392.bundle.js +1 -0
  380. package/dist/445.2b20cb9e68a11879f6c4.bundle.js +1 -0
  381. package/dist/446.fe3cf3d6e288c8c4444b.bundle.js +1 -0
  382. package/dist/447.d1d078921f6f28e2fa38.bundle.js +1 -0
  383. package/dist/448.d6c9bed6d99b8b23619f.bundle.js +1 -0
  384. package/dist/449.6196ad4d94c872ed4aa0.bundle.js +1 -0
  385. package/dist/45.8c13732f2859713c90c4.bundle.js +1 -0
  386. package/dist/450.4294e4f6e3bd7d3e4535.bundle.js +1 -0
  387. package/dist/451.0be4c840989512cf7e60.bundle.js +1 -0
  388. package/dist/452.9eaf4a5d4ff986faca19.bundle.js +1 -0
  389. package/dist/453.7c3a6bc7142f01f4a7c5.bundle.js +1 -0
  390. package/dist/454.639b34ebe37fc35fd8bf.bundle.js +1 -0
  391. package/dist/455.2c0860e1ca3cbbe7dbd3.bundle.js +1 -0
  392. package/dist/456.b6f845c7ae1cae411705.bundle.js +1 -0
  393. package/dist/457.0b2483db2b4005ef4ff5.bundle.js +1 -0
  394. package/dist/458.4f768c208ce6d5e617e0.bundle.js +1 -0
  395. package/dist/459.27eb9aca1cac5dc1a392.bundle.js +1 -0
  396. package/dist/46.f04ca39b752caadd9714.bundle.js +1 -0
  397. package/dist/460.dc1982f41987a5f63d20.bundle.js +1 -0
  398. package/dist/461.303028e54e54b1b9cf3d.bundle.js +1 -0
  399. package/dist/462.03fde6fed7101131c05d.bundle.js +1 -0
  400. package/dist/463.4881afc64d0d1c326eaf.bundle.js +1 -0
  401. package/dist/464.e5c5a8704b36b2b9a978.bundle.js +1 -0
  402. package/dist/465.b7b810c242939421dd83.bundle.js +1 -0
  403. package/dist/466.8446d58b7ae6620d0523.bundle.js +1 -0
  404. package/dist/467.53c59ecd1abd37f24946.bundle.js +1 -0
  405. package/dist/468.8e259940c62a68ef3055.bundle.js +1 -0
  406. package/dist/469.d8adb3a149af1e93c82a.bundle.js +1 -0
  407. package/dist/47.5773e1581c385ba39851.bundle.js +1 -0
  408. package/dist/470.e43c32fa77fab7f8c785.bundle.js +1 -0
  409. package/dist/471.922fb61cefb4acccdf18.bundle.js +1 -0
  410. package/dist/472.bb8f9d0ad207a4769525.bundle.js +1 -0
  411. package/dist/473.0c35a661a30c2983491a.bundle.js +1 -0
  412. package/dist/474.a163e2ae5a13751eff5a.bundle.js +1 -0
  413. package/dist/475.0ec11b970798f86c2e63.bundle.js +1 -0
  414. package/dist/476.b3ac53061f155e7b4444.bundle.js +1 -0
  415. package/dist/477.080871dfe7f7412935f6.bundle.js +1 -0
  416. package/dist/478.ef0b0fb774e6128bd7e7.bundle.js +1 -0
  417. package/dist/479.0d37b661deba6691e10a.bundle.js +1 -0
  418. package/dist/48.06454bbe08df5938e67a.bundle.js +1 -0
  419. package/dist/480.379bf3b338e0a3224a1f.bundle.js +1 -0
  420. package/dist/481.0387239b174f787e70ea.bundle.js +1 -0
  421. package/dist/482.21e3d45adf9acaf41ae9.bundle.js +1 -0
  422. package/dist/483.c81275cb05dd78ce389f.bundle.js +1 -0
  423. package/dist/484.25a82c267c3a705d2a65.bundle.js +1 -0
  424. package/dist/485.91cbfbfd37eccde375c9.bundle.js +1 -0
  425. package/dist/486.d0ff4aa577b5d7776b49.bundle.js +1 -0
  426. package/dist/487.86020b5b3b47741e2234.bundle.js +1 -0
  427. package/dist/488.a69dcce23066c0dafdf7.bundle.js +1 -0
  428. package/dist/489.a976085b601cccf438d4.bundle.js +1 -0
  429. package/dist/49.6b885bb67696745b1634.bundle.js +1 -0
  430. package/dist/490.d3e0f3e499b5a24f6808.bundle.js +1 -0
  431. package/dist/491.62c185868f9d99dd5713.bundle.js +1 -0
  432. package/dist/492.cf04731b6515481ccbf9.bundle.js +1 -0
  433. package/dist/493.2194222ca7084b4afe66.bundle.js +1 -0
  434. package/dist/494.c991867618fce5280fb2.bundle.js +1 -0
  435. package/dist/495.37739795bef1bc23a062.bundle.js +1 -0
  436. package/dist/496.d6045f2aaaf0574db90d.bundle.js +1 -0
  437. package/dist/497.a667913188e900fbc154.bundle.js +1 -0
  438. package/dist/498.99382ff25292c4043f5c.bundle.js +1 -0
  439. package/dist/5.045fbb4da4ea6659e905.bundle.js +2 -0
  440. package/dist/50.ee3ed147b2bc2382a0a2.bundle.js +1 -0
  441. package/dist/51.676e3d8a0e328ad836ed.bundle.js +1 -0
  442. package/dist/52.cfdfa7095a554e758861.bundle.js +1 -0
  443. package/dist/53.b45e7bdd9f0df49e89cb.bundle.js +1 -0
  444. package/dist/54.c54ba6791e3926ebb553.bundle.js +1 -0
  445. package/dist/55.fb160be660f713a3d6a1.bundle.js +1 -0
  446. package/dist/56.a97521bde50d8e02ab1d.bundle.js +1 -0
  447. package/dist/57.ec17cacc850ae1904aeb.bundle.js +1 -0
  448. package/dist/58.0c8ce6607800bf7ff0ac.bundle.js +1 -0
  449. package/dist/59.47183b72936629232e7f.bundle.js +1 -0
  450. package/dist/6.33f8c6c7e324640238de.bundle.js +1 -0
  451. package/dist/60.046829a1be3f196bef1c.bundle.js +1 -0
  452. package/dist/61.f625328fcc0d35aa07a4.bundle.js +1 -0
  453. package/dist/62.842d67b8758eed682f2c.bundle.js +1 -0
  454. package/dist/63.c3630cbfa8f6884a417d.bundle.js +1 -0
  455. package/dist/64.91ba76d42905a3d9afbe.bundle.js +1 -0
  456. package/dist/65.198a4d69873309746593.bundle.js +1 -0
  457. package/dist/66.b7385a74d4f3287237ba.bundle.js +1 -0
  458. package/dist/67.3488f2543baf36d3c494.bundle.js +1 -0
  459. package/dist/68.4e51b896e74fbd145701.bundle.js +1 -0
  460. package/dist/69.a2244fec1e7110f5aeec.bundle.js +1 -0
  461. package/dist/7.013e87de2a444c6f7731.bundle.js +1 -0
  462. package/dist/70.0b30be583854923aadc1.bundle.js +1 -0
  463. package/dist/71.24d20933fd9614cf27af.bundle.js +1 -0
  464. package/dist/72.5d2f018d17e995bc6455.bundle.js +1 -0
  465. package/dist/73.3f407c010a17e4a109b9.bundle.js +1 -0
  466. package/dist/74.1d496e6a8dc0abfcbe04.bundle.js +1 -0
  467. package/dist/75.0e43af19262a978d6aab.bundle.js +1 -0
  468. package/dist/76.9ca923a9265537ac7be4.bundle.js +1 -0
  469. package/dist/77.f53fbf119a8b73148a25.bundle.js +1 -0
  470. package/dist/78.933cb90bda144ed95290.bundle.js +1 -0
  471. package/dist/79.6e0224e241895965a9d3.bundle.js +1 -0
  472. package/dist/8.3cf83e59a56858648ad9.bundle.js +1 -0
  473. package/dist/80.f7d6d3108e6d18b96cd7.bundle.js +1 -0
  474. package/dist/81.b79dd505cb205eb7eff0.bundle.js +1 -0
  475. package/dist/82.cd869e55416407b078e0.bundle.js +1 -0
  476. package/dist/83.b085735389d935aa6f42.bundle.js +1 -0
  477. package/dist/84.7f9377fc605aff3f0d48.bundle.js +2 -0
  478. package/dist/85.8a74811c261c635235f7.bundle.js +1 -0
  479. package/dist/86.c491436398aef8142dc3.bundle.js +1 -0
  480. package/dist/87.cf9f719c3dd04bc64102.bundle.js +1 -0
  481. package/dist/88.7d844f12b9d68b0be1d7.bundle.js +1 -0
  482. package/dist/89.2c1bcd6a70ba8769b6b9.bundle.js +1 -0
  483. package/dist/9.81e5af1ded829772e6fa.bundle.js +1 -0
  484. package/dist/90.b93a0ecac4f5bcfeed0f.bundle.js +1 -0
  485. package/dist/91.44e1598ed46ac2197521.bundle.js +1 -0
  486. package/dist/92.e81e734ef32fe8b56d78.bundle.js +1 -0
  487. package/dist/93.6486890affff9e0f6ca8.bundle.js +1 -0
  488. package/dist/94.13212f8f2d50c66cb482.bundle.js +1 -0
  489. package/dist/95.6fe91e68bef2c41f2645.bundle.js +1 -0
  490. package/dist/96.4bd66eace72867bf76e1.bundle.js +1 -0
  491. package/dist/97.4cfafc4c6cedd50e973e.bundle.js +2 -0
  492. package/dist/98.6586c3413d178a0cab8c.bundle.js +1 -0
  493. package/dist/99.a745a27e01490b0d843d.bundle.js +2 -0
  494. package/dist/bundle.e7ff3a088b4fc9e2ec9e.bundle.js +96 -0
  495. package/dist/css/dynamic-form.css +1 -0
  496. package/dist/css/graphql/graphql-playground.css +97 -1
  497. package/dist/i18n/locale-en.json +2 -2
  498. package/dist/i18n/locale-fr.json +1 -1
  499. package/dist/index.html +3 -3
  500. package/dist/js/angular/clustermanagement/templates/cluster-nodes-configuration.html +1 -1
  501. package/dist/js/angular/core/directives/autocomplete/templates/autocomplete.html +1 -1
  502. package/dist/js/angular/core/directives/dynamic-form/templates/dynamic-form.html +1 -1
  503. package/dist/js/angular/core/directives/operations-statuses-monitor/templates/operations-statuses-monitor.html +1 -1
  504. package/dist/js/angular/core/directives/rdfresourcesearch/templates/rdfResourceSearchTemplate.html +1 -1
  505. package/dist/js/angular/core/directives/shuttle-multiselect/templates/shuttle-multiselect.html +1 -1
  506. package/dist/js/angular/core/directives/yasgui-component/templates/yasgui-component.html +1 -1
  507. package/dist/js/angular/core/templates/cookie-policy/cookie-consent.html +1 -1
  508. package/dist/js/angular/core/templates/cookie-policy/cookie-policy.html +1 -1
  509. package/dist/js/angular/graphql/templates/create-graphql-endpoint.html +2 -2
  510. package/dist/js/angular/graphql/templates/graphql-endpoint-management.html +1 -1
  511. package/dist/js/angular/graphql/templates/graphql-playground.html +1 -1
  512. package/dist/js/angular/graphql/templates/modal/endpoint-configuration-modal.html +1 -1
  513. package/dist/js/angular/graphql/templates/modal/endpoint-generation-failure-result-modal.html +1 -1
  514. package/dist/js/angular/graphql/templates/modal/import-endpoint-definition-modal.html +1 -1
  515. package/dist/js/angular/security/templates/user.html +2 -2
  516. package/dist/js/angular/ttyg/templates/agent-list.html +1 -1
  517. package/dist/js/angular/ttyg/templates/agent-select-menu.html +1 -1
  518. package/dist/js/angular/ttyg/templates/chat-item-detail.html +1 -1
  519. package/dist/js/angular/ttyg/templates/chat-list.html +1 -1
  520. package/dist/js/angular/ttyg/templates/chat-panel.html +1 -1
  521. package/dist/js/angular/ttyg/templates/modal/agent-instructions-explain-modal.html +1 -1
  522. package/dist/js/angular/ttyg/templates/modal/agent-settings-modal.html +2 -2
  523. package/dist/js/angular/ttyg/templates/no-agents-view.html +1 -1
  524. package/dist/js/angular/ttyg/templates/ttyg.html +1 -1
  525. package/dist/license-checker.json +2 -2
  526. package/dist/main.86a58db967fc4d7f02be.bundle.js +1 -0
  527. package/dist/pages/aclmanagement.html +2 -2
  528. package/dist/pages/autocomplete.html +1 -1
  529. package/dist/pages/choose-repository-type.html +1 -1
  530. package/dist/pages/cluster-management/clusterInfo.html +3 -3
  531. package/dist/pages/create-index.html +1 -1
  532. package/dist/pages/dependencies.html +1 -1
  533. package/dist/pages/domainRangeInfo.html +2 -2
  534. package/dist/pages/edit.html +1 -1
  535. package/dist/pages/explore.html +1 -1
  536. package/dist/pages/export.html +1 -1
  537. package/dist/pages/find.html +1 -1
  538. package/dist/pages/graph-config/saveGraphConfig.html +8 -8
  539. package/dist/pages/graphs-visualizations.html +7 -7
  540. package/dist/pages/guides.html +1 -1
  541. package/dist/pages/import.html +2 -2
  542. package/dist/pages/jdbc-create.html +1 -1
  543. package/dist/pages/monitor/backup-and-restore.html +1 -1
  544. package/dist/pages/monitor/queries.html +2 -2
  545. package/dist/pages/monitor/resources.html +1 -1
  546. package/dist/pages/namespaces.html +2 -2
  547. package/dist/pages/plugins.html +1 -1
  548. package/dist/pages/rdfClassHierarchyInfo.html +7 -7
  549. package/dist/pages/rdfrank.html +2 -2
  550. package/dist/pages/repositories.html +1 -1
  551. package/dist/pages/repository.html +1 -1
  552. package/dist/pages/similarity-indexes.html +1 -1
  553. package/dist/pages/sparql-editor.html +1 -1
  554. package/dist/pages/sparql-template-create.html +1 -1
  555. package/dist/pages/ux-test1.html +2 -2
  556. package/dist/pages/webapi.html +2 -2
  557. package/dist/polyfills-dom.9dbffb0410ad0baef47d.bundle.js +19 -0
  558. package/dist/res/swagger5/index.html +12 -12
  559. package/dist/vendor.108f4f0d292959f7fe7a.bundle.js +25 -0
  560. package/dist/vendors~polyfills-core-js.3de8cdf9f34b728c0382.bundle.js +1 -0
  561. package/package.json +1 -1
  562. package/dist/0.4d8b30bc60c2789c5792.bundle.js +0 -25
  563. package/dist/1.176afbe571cd82cc442d.bundle.js +0 -1
  564. package/dist/10.fda6383bf383617d1c02.bundle.js +0 -1
  565. package/dist/100.e5ea39eb13f09a5a01c1.bundle.js +0 -1
  566. package/dist/101.f217141d64b704e63e6f.bundle.js +0 -1
  567. package/dist/102.6b3ed2c50330080831a8.bundle.js +0 -1
  568. package/dist/103.c9dc2157d403a499844e.bundle.js +0 -1
  569. package/dist/104.12c01e6153d2cebe9a1d.bundle.js +0 -1
  570. package/dist/105.5d167cb9daa668433b53.bundle.js +0 -1
  571. package/dist/106.4da9b11f667cdf32a203.bundle.js +0 -1
  572. package/dist/107.4608eb3d12304564f642.bundle.js +0 -1
  573. package/dist/108.8493b5bc1260a5b6c2da.bundle.js +0 -1
  574. package/dist/109.9d1d20a6dda355596a51.bundle.js +0 -1
  575. package/dist/11.336e7bb10c0c0497ab39.bundle.js +0 -1
  576. package/dist/110.a0888cc7fdd4531b8119.bundle.js +0 -1
  577. package/dist/111.50ff89deca44161aa6c7.bundle.js +0 -1
  578. package/dist/112.a02fd12fd65e8d8e4025.bundle.js +0 -1
  579. package/dist/113.c8ee3df8c77e5fa0a8b4.bundle.js +0 -1
  580. package/dist/114.1fc4284bbbb4d6d591aa.bundle.js +0 -1
  581. package/dist/115.6fb35bb972b61f01c0e2.bundle.js +0 -1
  582. package/dist/116.cebabb5d09f34b852aab.bundle.js +0 -1
  583. package/dist/117.cebb6f6f3a041370159b.bundle.js +0 -1
  584. package/dist/118.bf5830e84b7f6db148f4.bundle.js +0 -1
  585. package/dist/119.61534c05f923e8a7093d.bundle.js +0 -1
  586. package/dist/12.3cd5d3607c3fc2914a20.bundle.js +0 -1
  587. package/dist/120.2960f1bb4aa1e3ecb210.bundle.js +0 -1
  588. package/dist/121.8eeab5d59d08127231e8.bundle.js +0 -1
  589. package/dist/122.0925c69b0b423da8b669.bundle.js +0 -1
  590. package/dist/123.aa1fdb444b305ebffec8.bundle.js +0 -1
  591. package/dist/124.360624a9cd584ad6cf68.bundle.js +0 -1
  592. package/dist/125.e7af318fb09ac98c7604.bundle.js +0 -1
  593. package/dist/126.5f70029a982a633ead46.bundle.js +0 -1
  594. package/dist/127.60dfe78ca2da039a0fb2.bundle.js +0 -1
  595. package/dist/128.9b3827702ac59aca0531.bundle.js +0 -1
  596. package/dist/129.54865e5a53b695753a23.bundle.js +0 -1
  597. package/dist/13.2e6845d4194a68ccd94d.bundle.js +0 -1
  598. package/dist/130.ccf85790ad86286362a3.bundle.js +0 -1
  599. package/dist/131.d6b2d90dc2efecbc5ded.bundle.js +0 -1
  600. package/dist/132.c9e8e3f7463ce47f3140.bundle.js +0 -1
  601. package/dist/133.e1b8678c29dd7404fb00.bundle.js +0 -1
  602. package/dist/134.b78d3c801ff0d756c6be.bundle.js +0 -1
  603. package/dist/135.e59760d3002e4f3f6b8d.bundle.js +0 -1
  604. package/dist/136.d8fcddf003a4c2ce81c0.bundle.js +0 -1
  605. package/dist/137.cdf568b3a7b987bf9520.bundle.js +0 -1
  606. package/dist/138.b6ccd0e5cfcbab61412c.bundle.js +0 -1
  607. package/dist/139.ae979df7cee2d76775a4.bundle.js +0 -1
  608. package/dist/14.887d949a00a598816aca.bundle.js +0 -1
  609. package/dist/140.f8719dbeaa7d23061ad4.bundle.js +0 -1
  610. package/dist/141.5835da03e8a4cffdc451.bundle.js +0 -1
  611. package/dist/142.24d79d32c5e653169bfa.bundle.js +0 -1
  612. package/dist/143.5cecf0b5661b5dbdf70f.bundle.js +0 -1
  613. package/dist/144.b857c36a76d8015944d0.bundle.js +0 -1
  614. package/dist/145.0b3647f86ef3b8ef2efa.bundle.js +0 -1
  615. package/dist/146.8e61829deeb11a4dcc68.bundle.js +0 -1
  616. package/dist/147.7bddecdbffd577e57988.bundle.js +0 -1
  617. package/dist/148.0702aa98d0cf8ed3852a.bundle.js +0 -1
  618. package/dist/149.7a7c4ab5f36aceed9152.bundle.js +0 -1
  619. package/dist/15.0fa8fdfe0969ec7d2595.bundle.js +0 -1
  620. package/dist/150.45d401551987255232a3.bundle.js +0 -1
  621. package/dist/151.fe91911112908bf788c6.bundle.js +0 -1
  622. package/dist/152.0f857b57234688472019.bundle.js +0 -1
  623. package/dist/153.3ea326c68b953d7c5e31.bundle.js +0 -1
  624. package/dist/154.04b8c129396563e845da.bundle.js +0 -1
  625. package/dist/155.2bf2a5c7f12b732817c9.bundle.js +0 -1
  626. package/dist/156.6d8363e9312022642a44.bundle.js +0 -1
  627. package/dist/157.80b5ecb700af3c2a356d.bundle.js +0 -1
  628. package/dist/158.a0880fcdcdb9fd2fa29c.bundle.js +0 -1
  629. package/dist/159.764c8e384939fed28308.bundle.js +0 -1
  630. package/dist/16.b10da58ece5958dabf8c.bundle.js +0 -73
  631. package/dist/160.876e93bbc9dfe1685ed7.bundle.js +0 -1
  632. package/dist/161.4d18f74aa8a6a94056c3.bundle.js +0 -1
  633. package/dist/162.572c51ec5e3623d43785.bundle.js +0 -1
  634. package/dist/163.b05412acee3f9cf84436.bundle.js +0 -1
  635. package/dist/164.2845f4dec5c00bf79ddf.bundle.js +0 -1
  636. package/dist/165.06f69626af75e5b67d28.bundle.js +0 -1
  637. package/dist/166.0ab434ac5014bc99d726.bundle.js +0 -1
  638. package/dist/167.fd986a816f3e320b1658.bundle.js +0 -1
  639. package/dist/168.a9dced2e889282de21f3.bundle.js +0 -1
  640. package/dist/169.2e21c80e373bdc8deaa1.bundle.js +0 -1
  641. package/dist/17.df5f3297138aa3a4802f.bundle.js +0 -2
  642. package/dist/170.346c5dacb5d14249af76.bundle.js +0 -1
  643. package/dist/171.f003923b0f60c322d247.bundle.js +0 -1
  644. package/dist/172.e08202f417f8ff2c3913.bundle.js +0 -1
  645. package/dist/173.436237541a1ea1cf8c51.bundle.js +0 -1
  646. package/dist/174.f5b1d5974a5b60cf006c.bundle.js +0 -1
  647. package/dist/175.cf814dfad61c6bda9e97.bundle.js +0 -1
  648. package/dist/176.d27477f9e230af912f43.bundle.js +0 -1
  649. package/dist/177.f678b8dcaabb2215e164.bundle.js +0 -1
  650. package/dist/178.f4ecc13336e9ee0b501e.bundle.js +0 -1
  651. package/dist/179.0e4d8a48d7dcec926c07.bundle.js +0 -1
  652. package/dist/18.17d8897dae01ad5cc9c5.bundle.js +0 -1
  653. package/dist/180.f98ee0043531240e4360.bundle.js +0 -1
  654. package/dist/181.1e3ee14ba64bc894a103.bundle.js +0 -1
  655. package/dist/182.7fd98e5c58975868e76e.bundle.js +0 -1
  656. package/dist/183.b921ec2897f41d241e2f.bundle.js +0 -1
  657. package/dist/184.b5c60bd831a04e13b1f1.bundle.js +0 -1
  658. package/dist/185.a1ac408bef87cd4ec96e.bundle.js +0 -1
  659. package/dist/186.adbcc81f1461e8e1901d.bundle.js +0 -1
  660. package/dist/187.c912d57bf6d320ad4b04.bundle.js +0 -1
  661. package/dist/188.d207e4ff9a187fb95d4a.bundle.js +0 -1
  662. package/dist/189.ced1f72dc96a3ae830c5.bundle.js +0 -1
  663. package/dist/19.84436353b4564fa2d05b.bundle.js +0 -1
  664. package/dist/190.97502c27c8ceb167f905.bundle.js +0 -1
  665. package/dist/191.f2b4f07dc4bbde57fc8a.bundle.js +0 -1
  666. package/dist/192.cdfb6846ad23c3310e71.bundle.js +0 -1
  667. package/dist/193.b0da8bb3c578cd0503f1.bundle.js +0 -1
  668. package/dist/194.bf6ac6a91ad496853625.bundle.js +0 -1
  669. package/dist/195.4ea1db09d3d07d372295.bundle.js +0 -1
  670. package/dist/196.cd6374a530ad71a90e9c.bundle.js +0 -1
  671. package/dist/197.1f7ccdf31809168a32a9.bundle.js +0 -1
  672. package/dist/198.d8e341a7f78be7f39f7a.bundle.js +0 -1
  673. package/dist/199.6258b583622e9788e728.bundle.js +0 -1
  674. package/dist/2.9f22862e0285d2ec1c5e.bundle.js +0 -1
  675. package/dist/20.a2e5b17ad5da9cc3ef5d.bundle.js +0 -1
  676. package/dist/200.7c6a6052dba807f09a6f.bundle.js +0 -1
  677. package/dist/201.6c2e381b9390851c9048.bundle.js +0 -1
  678. package/dist/202.34cbd40da4e123201c38.bundle.js +0 -1
  679. package/dist/203.a3fea904a86f19a7cc5c.bundle.js +0 -1
  680. package/dist/204.46c252a01b232912dc66.bundle.js +0 -1
  681. package/dist/205.1a5af6ca0dc13969dcfd.bundle.js +0 -1
  682. package/dist/206.57fc8b01196027c791ca.bundle.js +0 -1
  683. package/dist/207.960174d6780c3a5af8fe.bundle.js +0 -1
  684. package/dist/208.d5e64f97245c132729d6.bundle.js +0 -1
  685. package/dist/209.99b5f4ec24d2d151f78a.bundle.js +0 -1
  686. package/dist/21.5d95bb88ab5b7926f99c.bundle.js +0 -2
  687. package/dist/210.d62ec1e8bd53749af752.bundle.js +0 -1
  688. package/dist/211.fc50231a307fd0ebca55.bundle.js +0 -1
  689. package/dist/212.0b9939e3ab0274a7071c.bundle.js +0 -1
  690. package/dist/213.420d3795c6f47b047bfa.bundle.js +0 -1
  691. package/dist/214.b60a85209d411147789d.bundle.js +0 -1
  692. package/dist/215.016b119c36ebd8de88e5.bundle.js +0 -1
  693. package/dist/216.671dd89ebcbdc158507c.bundle.js +0 -1
  694. package/dist/217.d8bb168b3929a78ef968.bundle.js +0 -1
  695. package/dist/218.26445ed019ce5e97d033.bundle.js +0 -1
  696. package/dist/219.865e5fbcdde61aa10673.bundle.js +0 -1
  697. package/dist/22.a2d30617a1b791913bbe.bundle.js +0 -1
  698. package/dist/220.9b7284608779740f9bee.bundle.js +0 -1
  699. package/dist/221.6695a9b20f8ce8827b27.bundle.js +0 -1
  700. package/dist/222.e62c889b12a87413bf57.bundle.js +0 -1
  701. package/dist/223.3bf8635f2af8dea44f79.bundle.js +0 -1
  702. package/dist/224.bceaab079ef5be73ca76.bundle.js +0 -1
  703. package/dist/225.2028c27d0d8a2a54079f.bundle.js +0 -1
  704. package/dist/226.d667cf34eefec7370e8a.bundle.js +0 -1
  705. package/dist/227.f4289cadf992a2d14630.bundle.js +0 -1
  706. package/dist/228.ada421e8ae884c0c5ad1.bundle.js +0 -1
  707. package/dist/229.110d238a7f756aa3421a.bundle.js +0 -1
  708. package/dist/23.d8f52673a7f13c672d4d.bundle.js +0 -1
  709. package/dist/230.3e6d1a0606d967cfcc8d.bundle.js +0 -1
  710. package/dist/231.ae91d3d10c9401d04b55.bundle.js +0 -1
  711. package/dist/232.4b02a13ef638dfb392f8.bundle.js +0 -1
  712. package/dist/233.9db9828e8b01c6621483.bundle.js +0 -1
  713. package/dist/234.ea28ffbf93191afd1354.bundle.js +0 -1
  714. package/dist/235.360b4d4c082d3b864df7.bundle.js +0 -1
  715. package/dist/236.e66c385c5338bb7ef01f.bundle.js +0 -1
  716. package/dist/237.7cf7c651736ace723d86.bundle.js +0 -1
  717. package/dist/238.cd5e658785d348cff803.bundle.js +0 -1
  718. package/dist/239.b69e3a9efdb35ee2180f.bundle.js +0 -1
  719. package/dist/24.2c3a87886f22b1c8096c.bundle.js +0 -1
  720. package/dist/240.c424e6d447c8cb30392a.bundle.js +0 -1
  721. package/dist/241.18b686b095100aa0dc2b.bundle.js +0 -1
  722. package/dist/242.afb8e12260f331dabba6.bundle.js +0 -1
  723. package/dist/243.79252639ef1e5fab2bf5.bundle.js +0 -1
  724. package/dist/244.8b76c5ed853f48ac0d64.bundle.js +0 -1
  725. package/dist/245.99c7d183c21592fc61c3.bundle.js +0 -1
  726. package/dist/246.838541579124f3cd9c12.bundle.js +0 -1
  727. package/dist/247.5985580008afe693cb82.bundle.js +0 -1
  728. package/dist/248.75ecf369d89622e45a00.bundle.js +0 -1
  729. package/dist/249.2792e9a521c63cc5f165.bundle.js +0 -1
  730. package/dist/25.f4ae1cf8a4eea0b087a2.bundle.js +0 -1
  731. package/dist/250.6d183fb873b1745231e6.bundle.js +0 -1
  732. package/dist/251.cf04e7500bc11f591ded.bundle.js +0 -1
  733. package/dist/252.c36dfc14916fe149ffe3.bundle.js +0 -1
  734. package/dist/253.0bafee4db3b4bc85fd96.bundle.js +0 -1
  735. package/dist/254.f089092f4ae931f779c7.bundle.js +0 -1
  736. package/dist/255.6b669106840a0181ce82.bundle.js +0 -1
  737. package/dist/256.8e9d9e5d4d2b467cc223.bundle.js +0 -1
  738. package/dist/257.7b2829b7d5bb9e896e80.bundle.js +0 -1
  739. package/dist/258.c06083f3e98b7bf252ac.bundle.js +0 -1
  740. package/dist/259.1d700d11248743f92d8c.bundle.js +0 -1
  741. package/dist/26.17741901a1350e8ddc1c.bundle.js +0 -1
  742. package/dist/260.426ff9a482f7ce0b5372.bundle.js +0 -1
  743. package/dist/261.76a71d006787b4907e1a.bundle.js +0 -1
  744. package/dist/262.2b70e35bbc32545b9a46.bundle.js +0 -1
  745. package/dist/263.3f713a791d4ca8a4f934.bundle.js +0 -1
  746. package/dist/264.d94c345a466785a85471.bundle.js +0 -1
  747. package/dist/265.efd3a88673571fc2c018.bundle.js +0 -1
  748. package/dist/266.37007335a419155e68c2.bundle.js +0 -1
  749. package/dist/267.bc5a9f2a6aeb52faa425.bundle.js +0 -1
  750. package/dist/268.a626c140375589a07c7c.bundle.js +0 -1
  751. package/dist/269.2e0aa95154e40d0b9ee6.bundle.js +0 -1
  752. package/dist/27.a1ca927b26aa730e45ba.bundle.js +0 -1
  753. package/dist/270.30ff83debc37a2b170a4.bundle.js +0 -1
  754. package/dist/271.b02c476e7a6e76c10004.bundle.js +0 -1
  755. package/dist/272.1d969b1bbab5d20187b9.bundle.js +0 -1
  756. package/dist/273.b2e882f8b601f95cd0e7.bundle.js +0 -1
  757. package/dist/274.97b5de05109c078a3913.bundle.js +0 -1
  758. package/dist/275.5fa212e85cbb950c7150.bundle.js +0 -1
  759. package/dist/276.9997348e6ec53f4a50e2.bundle.js +0 -1
  760. package/dist/277.5639618ffcdace54e415.bundle.js +0 -1
  761. package/dist/278.47b2fa17f2078f713826.bundle.js +0 -1
  762. package/dist/279.c4005db506f33722dac8.bundle.js +0 -1
  763. package/dist/28.2f6422cf8701edaf1f2b.bundle.js +0 -7
  764. package/dist/280.e441bcbc4550968f44cd.bundle.js +0 -1
  765. package/dist/281.9629529a83ef2ae2bed1.bundle.js +0 -1
  766. package/dist/282.fd8c0719503dfb27db8b.bundle.js +0 -1
  767. package/dist/283.2903e9b01587885310c7.bundle.js +0 -1
  768. package/dist/284.30a9bae93633b804be3c.bundle.js +0 -1
  769. package/dist/285.b2d25fb1f70b47c01de8.bundle.js +0 -1
  770. package/dist/286.a94a15a2abde65f543c6.bundle.js +0 -1
  771. package/dist/287.7df99af65eb6782613ab.bundle.js +0 -1
  772. package/dist/288.6d94edbee8736938f61c.bundle.js +0 -1
  773. package/dist/289.b813c93a9e0872bf42f9.bundle.js +0 -1
  774. package/dist/29.aa48cf88c9ae5cfb6a0a.bundle.js +0 -3
  775. package/dist/290.425c497f2fce29333544.bundle.js +0 -1
  776. package/dist/291.06295a88753d363ba222.bundle.js +0 -1
  777. package/dist/292.882a25bb0ec3e9340d1a.bundle.js +0 -1
  778. package/dist/293.8226d7abcdf2904aa3a9.bundle.js +0 -1
  779. package/dist/294.cd111b8a0713033ebad3.bundle.js +0 -1
  780. package/dist/295.10c04c6ef8934d13602e.bundle.js +0 -1
  781. package/dist/296.dffacb8660159d8f7bb9.bundle.js +0 -1
  782. package/dist/297.7b5c81a7b4ca28c5b4f5.bundle.js +0 -1
  783. package/dist/298.84dc21d8e3fa6e066ffd.bundle.js +0 -1
  784. package/dist/299.523f1ab3e517b9ebbea9.bundle.js +0 -1
  785. package/dist/30.fc97ac2cd50e273f8bac.bundle.js +0 -2
  786. package/dist/300.2d116943679b7e2e63d5.bundle.js +0 -1
  787. package/dist/301.5260a2014d67ecd23bde.bundle.js +0 -1
  788. package/dist/302.00048adbfb8d65bb773d.bundle.js +0 -1
  789. package/dist/303.b1e5f88be8355056c6a0.bundle.js +0 -1
  790. package/dist/304.3632ef727332353e8fc1.bundle.js +0 -1
  791. package/dist/305.0139c092af8215d2240e.bundle.js +0 -1
  792. package/dist/306.86648c385b360939f283.bundle.js +0 -1
  793. package/dist/307.13701ea66ed5d965a7fc.bundle.js +0 -1
  794. package/dist/308.d8e48bcf8ee1c0b75b2a.bundle.js +0 -1
  795. package/dist/309.a51cd9296a09121685c5.bundle.js +0 -1
  796. package/dist/31.756f6db034a221e6bd94.bundle.js +0 -2
  797. package/dist/310.afc197b066a5fc0b47bc.bundle.js +0 -1
  798. package/dist/311.4c60b9fb1b9f33b58a2f.bundle.js +0 -1
  799. package/dist/312.c8de09aac3c3c977d206.bundle.js +0 -1
  800. package/dist/313.9b5f5dc5d234fff66f45.bundle.js +0 -1
  801. package/dist/314.0402c786341ca6d733fc.bundle.js +0 -1
  802. package/dist/315.a14fee4305d4a877593d.bundle.js +0 -1
  803. package/dist/316.100cd5b4a01b56d5a355.bundle.js +0 -1
  804. package/dist/317.4361027304babe6721b5.bundle.js +0 -1
  805. package/dist/318.3b767d793c20f9502c83.bundle.js +0 -1
  806. package/dist/319.84332d2d41b9d61df727.bundle.js +0 -1
  807. package/dist/32.1253561074438ff09aec.bundle.js +0 -2
  808. package/dist/320.0beac199f7dfc4a25f1f.bundle.js +0 -1
  809. package/dist/321.19597ec9ff0d68743883.bundle.js +0 -1
  810. package/dist/322.71f60534b2183018b08f.bundle.js +0 -1
  811. package/dist/323.252918cac995d3b89886.bundle.js +0 -1
  812. package/dist/324.266395e0ebb1afd2d2f6.bundle.js +0 -1
  813. package/dist/325.7e221d9ada783f43538e.bundle.js +0 -1
  814. package/dist/326.8a327c243c1821cf1fd2.bundle.js +0 -1
  815. package/dist/327.f863aaddf2da74ec4330.bundle.js +0 -1
  816. package/dist/328.87ddd6b8da6b1c4e82a4.bundle.js +0 -1
  817. package/dist/329.645e930fbb86da780307.bundle.js +0 -1
  818. package/dist/33.5860e454065777cb7dd6.bundle.js +0 -1
  819. package/dist/330.165a97361c1269d9c5de.bundle.js +0 -1
  820. package/dist/331.5fc0a10ae9528c03c033.bundle.js +0 -1
  821. package/dist/332.4fcd028f3a075772096c.bundle.js +0 -1
  822. package/dist/333.a5b5256e0db373e027e2.bundle.js +0 -1
  823. package/dist/334.27aa8f529d3c6e224417.bundle.js +0 -1
  824. package/dist/335.512b0ea25f4273734085.bundle.js +0 -1
  825. package/dist/336.9e75f2adc28c72bdf351.bundle.js +0 -1
  826. package/dist/337.29b62f2dbc0fae12961e.bundle.js +0 -1
  827. package/dist/338.a3f7495f6c40aa90620e.bundle.js +0 -1
  828. package/dist/339.ba9083f6fb3c216b74b9.bundle.js +0 -1
  829. package/dist/34.b3a0a75c0df606f38de4.bundle.js +0 -2
  830. package/dist/340.f71150bb8fe09ad26a8d.bundle.js +0 -1
  831. package/dist/341.118bf27dd431c621e635.bundle.js +0 -1
  832. package/dist/342.cda9b9b14eec66f0925f.bundle.js +0 -1
  833. package/dist/343.2a07a19ac07d4ec37a17.bundle.js +0 -1
  834. package/dist/344.1ee715c465dfb9135ec3.bundle.js +0 -1
  835. package/dist/345.c637de27cab185bb333e.bundle.js +0 -1
  836. package/dist/346.143c6c869a65550e3035.bundle.js +0 -1
  837. package/dist/347.da872f6aaa5da0841488.bundle.js +0 -1
  838. package/dist/348.6e8d4ef2809be23c3c83.bundle.js +0 -1
  839. package/dist/349.54e0ceb86bd0ebe230b1.bundle.js +0 -1
  840. package/dist/35.a7fcb233204c12f358c1.bundle.js +0 -1
  841. package/dist/350.7de2ccf5cac153b8453f.bundle.js +0 -1
  842. package/dist/351.2ac0fd2083c0d23bfa03.bundle.js +0 -1
  843. package/dist/352.dfa6970a92ec86c2f087.bundle.js +0 -1
  844. package/dist/353.55d49f71b022fdbf9a08.bundle.js +0 -1
  845. package/dist/354.cba267e0b07efe6b9b3c.bundle.js +0 -1
  846. package/dist/355.7cb8ea1b33bff083d286.bundle.js +0 -1
  847. package/dist/356.e8d0fa12548f8da17013.bundle.js +0 -1
  848. package/dist/357.88a9f9202153f9f9648e.bundle.js +0 -1
  849. package/dist/358.08d42b947dd7034aa207.bundle.js +0 -1
  850. package/dist/359.d9f4eae2e030aab248a9.bundle.js +0 -1
  851. package/dist/36.cabf7d435fe0a244b9e6.bundle.js +0 -1
  852. package/dist/360.8d3bd30722ebd558350f.bundle.js +0 -1
  853. package/dist/361.81e7d7c7c268432911d4.bundle.js +0 -1
  854. package/dist/362.56db96b48a2208643629.bundle.js +0 -1
  855. package/dist/363.2b23add5ce4ce8323d6f.bundle.js +0 -1
  856. package/dist/364.f84372a55402d7db1b7e.bundle.js +0 -1
  857. package/dist/365.1aa3b6f23baef79c41b4.bundle.js +0 -1
  858. package/dist/366.10569a2bd57446ba5afd.bundle.js +0 -1
  859. package/dist/367.901dcba59f1c9c68b66d.bundle.js +0 -1
  860. package/dist/368.a212c51a4743ddfc600f.bundle.js +0 -1
  861. package/dist/369.e953aa4fd4ca81122e46.bundle.js +0 -1
  862. package/dist/37.bf64be7a7963c5eb6969.bundle.js +0 -1
  863. package/dist/370.6496b60ee8de5358397e.bundle.js +0 -1
  864. package/dist/371.5fb53be8801c816c2900.bundle.js +0 -1
  865. package/dist/372.9e810504aa7dc1ab4dfb.bundle.js +0 -1
  866. package/dist/373.8459a7a819a4aba5a395.bundle.js +0 -1
  867. package/dist/374.7769cf75a32ef7823a74.bundle.js +0 -1
  868. package/dist/375.65f266a4f337150dcf35.bundle.js +0 -1
  869. package/dist/376.782cf3bec8003f1bdf6f.bundle.js +0 -1
  870. package/dist/377.f840edeb3da4ce9a17c7.bundle.js +0 -1
  871. package/dist/378.8e5eda3b873e7bea7ff1.bundle.js +0 -1
  872. package/dist/379.297a395a1692aa65ef9d.bundle.js +0 -1
  873. package/dist/38.4953e07e10d37b9c97ac.bundle.js +0 -1
  874. package/dist/380.8803858ce3f3ad41a1e4.bundle.js +0 -1
  875. package/dist/381.190299d9242347c9b7cf.bundle.js +0 -1
  876. package/dist/382.c51596a68be3dc4957cd.bundle.js +0 -1
  877. package/dist/383.c287612ef2532a139bb0.bundle.js +0 -1
  878. package/dist/384.7c63109ac0c5bb2145da.bundle.js +0 -1
  879. package/dist/385.a7d162d450123dbc1ece.bundle.js +0 -1
  880. package/dist/386.a8e5de361e37d888bf06.bundle.js +0 -1
  881. package/dist/387.1f16ace029e2df77f1e2.bundle.js +0 -1
  882. package/dist/388.2ef52020d6b0a1de6ab1.bundle.js +0 -1
  883. package/dist/389.5cfc00d3fd08f1213424.bundle.js +0 -1
  884. package/dist/39.86ac96653b7b89235cd7.bundle.js +0 -1
  885. package/dist/390.da868d78835202ec2f5e.bundle.js +0 -1
  886. package/dist/396.7cf27406a1fbb04ee9fc.bundle.js +0 -1
  887. package/dist/397.f94fa6c881246149b87d.bundle.js +0 -1
  888. package/dist/398.38d917df477240b9fbf2.bundle.js +0 -1
  889. package/dist/399.054eb54211d1cf31d76f.bundle.js +0 -1
  890. package/dist/4.7ec12409735d6fe4d71c.bundle.js +0 -1
  891. package/dist/40.8d54e16dd891a94f3cae.bundle.js +0 -1
  892. package/dist/400.9f505d95870ed6bbfe9d.bundle.js +0 -1
  893. package/dist/401.c1b7254bbb72a8186191.bundle.js +0 -1
  894. package/dist/402.69ac6ca4f7f1d9c88edf.bundle.js +0 -1
  895. package/dist/403.6306de5f1fae6f6cf287.bundle.js +0 -1
  896. package/dist/404.f0251f3ad4200e6b46f2.bundle.js +0 -1
  897. package/dist/405.dbfb62c91c799fe79663.bundle.js +0 -1
  898. package/dist/406.00185c3785f6ee39301c.bundle.js +0 -1
  899. package/dist/407.8cc73dc5f20d4e41214a.bundle.js +0 -1
  900. package/dist/408.3746cc39f74e25589adc.bundle.js +0 -1
  901. package/dist/409.1d1f73597baecd18eced.bundle.js +0 -1
  902. package/dist/41.caf7ecf4126eca28af80.bundle.js +0 -1
  903. package/dist/410.bf8e3f7dbcbb22b417c2.bundle.js +0 -1
  904. package/dist/411.185c57a74280c8c574af.bundle.js +0 -1
  905. package/dist/412.13a58673b6255910aa31.bundle.js +0 -1
  906. package/dist/413.399c0de9a7eed2876f19.bundle.js +0 -1
  907. package/dist/414.564363a4c2904c835bf2.bundle.js +0 -1
  908. package/dist/415.277a4befc3ac4c1a3e9f.bundle.js +0 -1
  909. package/dist/416.2da120e99bde78b60d74.bundle.js +0 -1
  910. package/dist/417.ffe8ff4126a714dceda9.bundle.js +0 -1
  911. package/dist/418.c4bd81503327489292cb.bundle.js +0 -1
  912. package/dist/419.ac20b28260c51d759723.bundle.js +0 -1
  913. package/dist/42.198c823c68d7ab997ed8.bundle.js +0 -1
  914. package/dist/420.86d39a34e0cfe7c5922d.bundle.js +0 -1
  915. package/dist/421.496b38108447fe3706fd.bundle.js +0 -1
  916. package/dist/422.9476615eea039ed0a3ca.bundle.js +0 -1
  917. package/dist/423.8f8b9beeefb8e456e740.bundle.js +0 -1
  918. package/dist/424.b1f341c2214d28ae62c2.bundle.js +0 -1
  919. package/dist/425.efd0aac0d1ce59d5193d.bundle.js +0 -1
  920. package/dist/426.0ace7eb4fbc2b816ff3c.bundle.js +0 -1
  921. package/dist/427.032b0791a47cc889a962.bundle.js +0 -1
  922. package/dist/428.c5360d25b2de1adeffad.bundle.js +0 -1
  923. package/dist/429.95b73b49a4858e66db52.bundle.js +0 -1
  924. package/dist/43.ed5f781a5b4991e134f4.bundle.js +0 -1
  925. package/dist/430.e1ac4a7379ae28494c8a.bundle.js +0 -1
  926. package/dist/431.34c6e5f6192c7a8b9955.bundle.js +0 -1
  927. package/dist/432.859f342f885c92bd9195.bundle.js +0 -1
  928. package/dist/433.fdcbb26702adb169a3cb.bundle.js +0 -1
  929. package/dist/434.0c4f61d51423e0e065cf.bundle.js +0 -1
  930. package/dist/435.93e4bdebd143900ab957.bundle.js +0 -1
  931. package/dist/436.bf868968fb7ad8f50d7f.bundle.js +0 -1
  932. package/dist/437.643d370229b0ecc558a3.bundle.js +0 -1
  933. package/dist/438.2057167bf76302fcc1ec.bundle.js +0 -1
  934. package/dist/439.21e06c1be881356f78d6.bundle.js +0 -1
  935. package/dist/44.842377189f281076a5fa.bundle.js +0 -1
  936. package/dist/440.65f4842c6b26f7a8fb04.bundle.js +0 -1
  937. package/dist/441.c33323aeb6fe095d0b07.bundle.js +0 -1
  938. package/dist/442.82dc82ea81a83cca825a.bundle.js +0 -1
  939. package/dist/443.4abf2d489c2afafef5a7.bundle.js +0 -1
  940. package/dist/444.d0b80c745f68ce002d1c.bundle.js +0 -1
  941. package/dist/445.10ba12283f340ef90cfa.bundle.js +0 -1
  942. package/dist/446.f47a75035d90a7d2e52c.bundle.js +0 -1
  943. package/dist/447.b2ede87fdea2fc9cc93a.bundle.js +0 -1
  944. package/dist/448.45c26d753255f78d946a.bundle.js +0 -1
  945. package/dist/449.20e2c40aabab717a8639.bundle.js +0 -1
  946. package/dist/45.5912f58b9492aec75c39.bundle.js +0 -1
  947. package/dist/450.081885a3e68f55f02608.bundle.js +0 -1
  948. package/dist/451.b922d6a64849b5d6e1a2.bundle.js +0 -1
  949. package/dist/452.e31c9c34d8cd160d9cda.bundle.js +0 -1
  950. package/dist/453.52a9eb79ed94bf842c6c.bundle.js +0 -1
  951. package/dist/454.ca9ac0ce560b7c177bd9.bundle.js +0 -1
  952. package/dist/455.506d7b20cfb2e192ff04.bundle.js +0 -1
  953. package/dist/456.626be1c57d2e567cb5fd.bundle.js +0 -1
  954. package/dist/457.a69ccfccc9f3174a15b5.bundle.js +0 -1
  955. package/dist/458.4dd7d87ee0af635679ea.bundle.js +0 -1
  956. package/dist/459.c780f0309c475b17946c.bundle.js +0 -1
  957. package/dist/46.b619df199dec5ce8b3f2.bundle.js +0 -1
  958. package/dist/460.f9be70a32fb5f317f612.bundle.js +0 -1
  959. package/dist/461.6447d1691176fd0e218d.bundle.js +0 -1
  960. package/dist/462.1eab1e50bd28e5ecfa2a.bundle.js +0 -1
  961. package/dist/463.8911d864208272cd25b6.bundle.js +0 -1
  962. package/dist/464.1d92bb629d359eff7645.bundle.js +0 -1
  963. package/dist/465.5fea1718e3d223ce572b.bundle.js +0 -1
  964. package/dist/466.dde44fad9fa890f09849.bundle.js +0 -1
  965. package/dist/467.2bd1297cf82ab6e783b9.bundle.js +0 -1
  966. package/dist/468.50ec07a962dc1780df36.bundle.js +0 -1
  967. package/dist/469.a48bd78df528a5551fa5.bundle.js +0 -1
  968. package/dist/47.266ca77bea523c2affc1.bundle.js +0 -1
  969. package/dist/470.c433f6734a61b4e96cda.bundle.js +0 -1
  970. package/dist/471.7b75ad1fc1242ae6ee59.bundle.js +0 -1
  971. package/dist/472.758b146fbaab33408b95.bundle.js +0 -1
  972. package/dist/473.f8f6990536587bffe595.bundle.js +0 -1
  973. package/dist/474.580aa6d0a8821f98be78.bundle.js +0 -1
  974. package/dist/475.bbf5f0d42882881e7d33.bundle.js +0 -1
  975. package/dist/476.a1df464000a3d94a4874.bundle.js +0 -1
  976. package/dist/477.ebfc2f101ba75769e928.bundle.js +0 -1
  977. package/dist/478.a8046c01285d7a20ab0a.bundle.js +0 -1
  978. package/dist/479.4e2bd673726d62bf0524.bundle.js +0 -1
  979. package/dist/48.88ba644fce9d562de85d.bundle.js +0 -1
  980. package/dist/480.da864736cf389e4277d1.bundle.js +0 -1
  981. package/dist/481.9f8d8f6d85ab4e0c4644.bundle.js +0 -1
  982. package/dist/482.3b98ed70bb5211093378.bundle.js +0 -1
  983. package/dist/483.900689a79413852893d5.bundle.js +0 -1
  984. package/dist/484.0c4fbd888f909db2e1cb.bundle.js +0 -1
  985. package/dist/485.0c77d57a5e84b6baae8f.bundle.js +0 -1
  986. package/dist/486.ea7bdffc43fbaf04908c.bundle.js +0 -1
  987. package/dist/487.709c4b0e218b914e4f4e.bundle.js +0 -1
  988. package/dist/488.fc918ea5c55681561ed6.bundle.js +0 -1
  989. package/dist/489.f4e467238e25e7a910d6.bundle.js +0 -1
  990. package/dist/49.eb484abfcc9a42c7c423.bundle.js +0 -1
  991. package/dist/490.af17685cf0d414c3e77a.bundle.js +0 -1
  992. package/dist/491.323cecfb8d3e66cb3ed1.bundle.js +0 -1
  993. package/dist/492.bb050e402f7ad6374739.bundle.js +0 -1
  994. package/dist/493.b5248ac33ad933d029e3.bundle.js +0 -1
  995. package/dist/494.c074bd6ec536eb72ae56.bundle.js +0 -1
  996. package/dist/495.e909a0accf51b33b2ab7.bundle.js +0 -1
  997. package/dist/5.ffef0be05dc89ec361e1.bundle.js +0 -2
  998. package/dist/50.5a6b73cf0ec26182e5d0.bundle.js +0 -1
  999. package/dist/51.047b6159ecd62af1c500.bundle.js +0 -1
  1000. package/dist/52.97a053a7604ac97dcc61.bundle.js +0 -1
  1001. package/dist/53.ef1aa3bb1ac64edce212.bundle.js +0 -1
  1002. package/dist/54.c858a3c4e304c1bda281.bundle.js +0 -1
  1003. package/dist/55.6feebdda2a73713ac8ab.bundle.js +0 -1
  1004. package/dist/56.c8509b7b4c9c1e63b9aa.bundle.js +0 -1
  1005. package/dist/57.8c3d8069aa2bc1012fbe.bundle.js +0 -1
  1006. package/dist/58.19af0cd121a1b5c0169e.bundle.js +0 -1
  1007. package/dist/59.205a9eaeeba145a96504.bundle.js +0 -1
  1008. package/dist/6.839658826db864b81500.bundle.js +0 -1
  1009. package/dist/60.2dac45d94c3e8c55d2b6.bundle.js +0 -1
  1010. package/dist/61.2bd01115a6076de642e8.bundle.js +0 -1
  1011. package/dist/62.cf95d4bbde813d5a2903.bundle.js +0 -1
  1012. package/dist/63.9b4c08ad4b1696232e53.bundle.js +0 -1
  1013. package/dist/64.c9b3968b409bb73db224.bundle.js +0 -1
  1014. package/dist/65.311f57bad4b19b5fd6c0.bundle.js +0 -1
  1015. package/dist/66.45ee10f2d86ea9cae1f3.bundle.js +0 -1
  1016. package/dist/67.4031a70094ae17bb86de.bundle.js +0 -1
  1017. package/dist/68.38787c96294d7bf4b8dc.bundle.js +0 -1
  1018. package/dist/69.72c97255086f66dcf27c.bundle.js +0 -1
  1019. package/dist/7.52778c79751d2e7f7d1e.bundle.js +0 -1
  1020. package/dist/70.56b3e32fc1adcb587558.bundle.js +0 -1
  1021. package/dist/71.1c64e009a271dc3e9e4d.bundle.js +0 -1
  1022. package/dist/72.270dc19e81e251445233.bundle.js +0 -1
  1023. package/dist/73.e54a51920492d2a90e3d.bundle.js +0 -1
  1024. package/dist/74.fa99fb35dd6334473e19.bundle.js +0 -1
  1025. package/dist/75.96247f0a98d70d96e6c2.bundle.js +0 -1
  1026. package/dist/76.afe38bf0db5106970e03.bundle.js +0 -1
  1027. package/dist/77.c29386dd1ba0b98767b0.bundle.js +0 -1
  1028. package/dist/78.3e1d763f5072edc18127.bundle.js +0 -1
  1029. package/dist/79.8ac487e477a37d6c1555.bundle.js +0 -1
  1030. package/dist/8.4b562821ef3c50de1e1f.bundle.js +0 -1
  1031. package/dist/80.5f5b7ddbe5bfa726e56a.bundle.js +0 -1
  1032. package/dist/81.e3906e015aa696bb7fdc.bundle.js +0 -1
  1033. package/dist/82.10fe87e551be7f3872df.bundle.js +0 -1
  1034. package/dist/83.46be0c644970544d9228.bundle.js +0 -2
  1035. package/dist/84.a32b2efb30ebabffbbfd.bundle.js +0 -1
  1036. package/dist/85.50752f7158bf2772bdf4.bundle.js +0 -1
  1037. package/dist/86.2962d5690255979257d1.bundle.js +0 -1
  1038. package/dist/87.0df053e7a22ea5bb560a.bundle.js +0 -1
  1039. package/dist/88.8d5ba1b07b63d8214423.bundle.js +0 -1
  1040. package/dist/89.a57fde8b88323d28a5fa.bundle.js +0 -1
  1041. package/dist/9.fcb56cd4dcac9ec97ece.bundle.js +0 -1
  1042. package/dist/90.1f08a21d881902ef8c4f.bundle.js +0 -1
  1043. package/dist/91.5dcedbcdf915708119d0.bundle.js +0 -1
  1044. package/dist/92.14b9281010be75388248.bundle.js +0 -1
  1045. package/dist/93.f88dee3ec6ee9d3eca09.bundle.js +0 -1
  1046. package/dist/94.1049a1e312db74424b02.bundle.js +0 -1
  1047. package/dist/95.a25984e864e75ab54e60.bundle.js +0 -2
  1048. package/dist/96.eaca338bdd81edbd3a4d.bundle.js +0 -1
  1049. package/dist/97.586d15b8b51694ca6829.bundle.js +0 -2
  1050. package/dist/98.d03632992a9ffba946ad.bundle.js +0 -1
  1051. package/dist/99.dae3aae0087526723cf5.bundle.js +0 -1
  1052. package/dist/bundle.2a78ee86f58a4cf6f5d3.bundle.js +0 -96
  1053. package/dist/main.85305882dbea4d332323.bundle.js +0 -1
  1054. package/dist/polyfills-dom.092fec337f6ae2c9ef06.bundle.js +0 -19
  1055. package/dist/vendor.bcc7ef4ba5602fe23602.bundle.js +0 -25
  1056. package/dist/vendors~polyfills-core-js.ccd53196edbbf6d4ee40.bundle.js +0 -1
@@ -0,0 +1,96 @@
1
+ !function(e){function t(t){for(var n,i,o=t[0],a=t[1],s=0,l=[];s<o.length;s++)i=o[s],Object.prototype.hasOwnProperty.call(r,i)&&r[i]&&l.push(r[i][0]),r[i]=0;for(n in a)Object.prototype.hasOwnProperty.call(a,n)&&(e[n]=a[n]);for(u&&u(t);l.length;)l.shift()()}var n={},r={394:0};function i(t){if(n[t])return n[t].exports;var r=n[t]={i:t,l:!1,exports:{}};return e[t].call(r.exports,r,r.exports,i),r.l=!0,r.exports}i.e=function(e){var t=[],n=r[e];if(0!==n)if(n)t.push(n[2]);else{var o=new Promise((function(t,i){n=r[e]=[t,i]}));t.push(n[2]=o);var a,s=document.createElement("script");s.charset="utf-8",s.timeout=120,i.nc&&s.setAttribute("nonce",i.nc),s.src=function(e){return i.p+""+({396:"polyfills-dom",398:"vendors~polyfills-core-js"}[e]||e)+"."+{0:"2bd3c5db52ab2483ff5a",1:"4557dfdb926ba6471bb3",2:"354e410d4fb45ab44420",3:"77b848d2eb7fdb2523b0",4:"c0e71650be0c1eb6da4e",5:"045fbb4da4ea6659e905",6:"33f8c6c7e324640238de",7:"013e87de2a444c6f7731",8:"3cf83e59a56858648ad9",9:"81e5af1ded829772e6fa",10:"8a76ef708b5c69241c68",11:"7343b4e08a786f0a1eab",12:"3669f82ad6489ffeb12b",13:"c904bbb863125c4ff6cc",14:"d0ab3c83926b616e7354",15:"8ab8b6f8c611ec1dfddc",16:"d90832fa4dbc05e4141e",17:"019de109eebe6b7563fe",18:"6722328814b9fcee2f6e",19:"a0af0ec7c0e4eb7ab20c",20:"b2e6e5248ede44286621",21:"6de69abd52835f511f89",22:"035be7329fd099903c2b",23:"f499db643c1d187eefe1",24:"057be6f617f4e3f35691",25:"25d1fdcb1cbeafd51681",26:"3aa8a6a7f10039840838",27:"d57273bcf6b077d47881",28:"f55e82c586a0aa6d8aa1",29:"33b92413c2f0a708b821",30:"f818533689767fa3e2ca",31:"721783158dcfdee0b882",32:"e14fc108d80a26925f88",33:"fec387c3be8b00368957",34:"61223a86d6cb125fc2c8",35:"1b457bfdeea08b897d25",36:"54cce0e26c592b832258",37:"be47535106d4b3dbc077",38:"79bf8cac11760d2e69be",39:"051d67965709d49db0ab",40:"9208517ef50b6f8024c6",41:"0d8779a7af2eb26cf157",42:"0147219d61d3814c266c",43:"96e8540045f061114280",44:"45a26f697588279fbc60",45:"8c13732f2859713c90c4",46:"f04ca39b752caadd9714",47:"5773e1581c385ba39851",48:"06454bbe08df5938e67a",49:"6b885bb67696745b1634",50:"ee3ed147b2bc2382a0a2",51:"676e3d8a0e328ad836ed",52:"cfdfa7095a554e758861",53:"b45e7bdd9f0df49e89cb",54:"c54ba6791e3926ebb553",55:"fb160be660f713a3d6a1",56:"a97521bde50d8e02ab1d",57:"ec17cacc850ae1904aeb",58:"0c8ce6607800bf7ff0ac",59:"47183b72936629232e7f",60:"046829a1be3f196bef1c",61:"f625328fcc0d35aa07a4",62:"842d67b8758eed682f2c",63:"c3630cbfa8f6884a417d",64:"91ba76d42905a3d9afbe",65:"198a4d69873309746593",66:"b7385a74d4f3287237ba",67:"3488f2543baf36d3c494",68:"4e51b896e74fbd145701",69:"a2244fec1e7110f5aeec",70:"0b30be583854923aadc1",71:"24d20933fd9614cf27af",72:"5d2f018d17e995bc6455",73:"3f407c010a17e4a109b9",74:"1d496e6a8dc0abfcbe04",75:"0e43af19262a978d6aab",76:"9ca923a9265537ac7be4",77:"f53fbf119a8b73148a25",78:"933cb90bda144ed95290",79:"6e0224e241895965a9d3",80:"f7d6d3108e6d18b96cd7",81:"b79dd505cb205eb7eff0",82:"cd869e55416407b078e0",83:"b085735389d935aa6f42",84:"7f9377fc605aff3f0d48",85:"8a74811c261c635235f7",86:"c491436398aef8142dc3",87:"cf9f719c3dd04bc64102",88:"7d844f12b9d68b0be1d7",89:"2c1bcd6a70ba8769b6b9",90:"b93a0ecac4f5bcfeed0f",91:"44e1598ed46ac2197521",92:"e81e734ef32fe8b56d78",93:"6486890affff9e0f6ca8",94:"13212f8f2d50c66cb482",95:"6fe91e68bef2c41f2645",96:"4bd66eace72867bf76e1",97:"4cfafc4c6cedd50e973e",98:"6586c3413d178a0cab8c",99:"a745a27e01490b0d843d",100:"c4aaa3d10f570dba12a9",101:"8f0b38c2e58132599194",102:"2b1c8399187ccefe5a4f",103:"96f2287dde7e4fc25c9d",104:"ddeb2cb5758d1ed52b33",105:"e8302c421c3d7b516b4c",106:"00a983e1594a051a5fe7",107:"7b548755171f42f06352",108:"160515780d319edefb5c",109:"1da75239f8e2a5d63b23",110:"780a31b32e116f49a75f",111:"7e3057275034cb5dc5a6",112:"22145690dd697aa9275d",113:"c135232a9177d596406c",114:"b2c0df64a560a8dd5ae0",115:"543de06ecb5553155522",116:"79b9b3abc0b03e8b7924",117:"ae87c77380fb7660d9ec",118:"6756956bb51b3350690d",119:"c8e77171125b6497990a",120:"1484bac063921edb7a2c",121:"6a0ffc9dfc3ea14fd0d3",122:"13363b4c4f89776fa1b5",123:"616625d0908d7e6eab3d",124:"924dce24aad641d1dd23",125:"d86cff2a5cc679dc20d9",126:"ff5a04a468a8a8d1a99a",127:"954cf8032872deba10e6",128:"639a495883f611c4691e",129:"5d11264c418527e53342",130:"82fe31a14b953086bb45",131:"e4be75b25c9eb85db5a8",132:"364bb39217e31f46480f",133:"df86fdb8d83ca7237793",134:"33804d658ebadcbc3b55",135:"797fc168b7a948df2ccb",136:"5ca50393ed4761535bfe",137:"d8b48c06ecd279c12ca7",138:"3bb6b7be471eb2d04c6e",139:"ea151aec614a76870451",140:"6583cf41ab8e891ebbb6",141:"af39fc3a6dc1dafdb5ab",142:"c2392a48e4d3a2a16866",143:"e4511e1698aca68814e3",144:"f58114954e257cb77bde",145:"d558ac05737ca5ef00a4",146:"de12b58d856c54decc0b",147:"6faf4e13462207010d38",148:"25167c5ae125b23811c9",149:"9629d0dfe4f62aa15bba",150:"c8bf724fbe76d0e0696d",151:"4970e08b91e9849ae5e3",152:"8a1ea0a8d04e0873f67b",153:"64e4e15ca8abeb5268e3",154:"89f16e758f1caaae814c",155:"000faec57d99d9bf474d",156:"3c416d051a00426a3f8b",157:"0ba85cb192ee6aedd266",158:"703ab824eac1d402aa3e",159:"ecb67dffd5c364d1c34f",160:"90a42dd6a992307c602d",161:"228b61b39d936f8fca31",162:"d3c88ab3fff66431b4ee",163:"716d49313f3e196497dd",164:"f108ae176ec1462622a1",165:"1b07eebc822bd1397bcb",166:"31241e54608319e510e2",167:"fb0a08ef1500d40683f4",168:"93ec88ed31e7f11a282c",169:"6a3b91199ab7b7824519",170:"50b83ca5eca844a4e73e",171:"dd27cf34621cc515a302",172:"a87e893b16c99a52f4e0",173:"425381e5433b54da911c",174:"c076695669d924d93331",175:"b94e42f1b1b7479f46ad",176:"fb6bf711be5027eb41d9",177:"dfbb4e6f96af71b34d1e",178:"e2fc84729dc36962bbb3",179:"63500ae70b7715467e79",180:"a91ac4fc484a71bd5ed8",181:"21aa54b727e44eac383c",182:"9d01760adff023e0948a",183:"c6a1307c8d78c5c9ae00",184:"62c07d24e133293655ae",185:"5c3dba7cbd52a569bb05",186:"a970d267f4dee4831981",187:"4b77f6c4d48833859448",188:"b7e99c584def1ef29e80",189:"8da0b0461b98d72c241a",190:"431c135250df34322375",191:"8e086a7e20b722162868",192:"91d48d3e1a2cb8f0c7b5",193:"b4da2736622644c5e1b8",194:"dcec7e93f0c0a4051cf7",195:"16aaf44be77e2f6ad673",196:"60d4f4beef8337a6dd6b",197:"1b329b4688c6481d4eef",198:"10e4b7ce7021e8c3cb23",199:"faa702aefcba93dc4962",200:"fdc91e3c9fb94e006c7c",201:"870a2efdef2350e37e70",202:"55f46abde3ae7061cca9",203:"bf9e6cb693a152422ab0",204:"9c7781193e68533eebc4",205:"0e3e756ef2c29ec00fe6",206:"dce1fab3fc6bf7c804d3",207:"c84b10f40c12385646db",208:"3d503b639471b051cdab",209:"323590fc21efb7de4956",210:"476ccc2995ed966be034",211:"8718378f154cb64364d3",212:"c79ba1497c824dee645a",213:"ef418c82b67c0ddc45ea",214:"b548b397bac1697d31f1",215:"253c1c292f8a7064de95",216:"e966845b5bcd6c0b3adc",217:"739936a84de121176e47",218:"6867bbb0376079ba1e44",219:"bbf0ab126f91f250d887",220:"59a74cd0facf8db11b4d",221:"f0aadc6f0376c50ad799",222:"a2cd53e123c2aebf3598",223:"748f4d705b4a8b2b8601",224:"487195773a3647b3c44a",225:"d90ebf8ddd7d4cf57525",226:"e750b6a636a10193d502",227:"de90d95fd31bf57c52fd",228:"b81d8d7266101ecf7f02",229:"19ce650e0aa9118cdd8c",230:"0e37724a4e1f810026e9",231:"909faa919088245e9988",232:"98aad6a0d47f9be96d77",233:"963f438276d23bad3b09",234:"13f0392fbb35ff987c31",235:"e5c7573dbd2e449bba7e",236:"cecc69dd5086b1982b26",237:"a2aac3c56d4ce1ade323",238:"41257cec89fb5e00b9be",239:"820a17ea4c8dda8e14ae",240:"b52c847eca1595dd6304",241:"7cda072298804c381056",242:"c2143bfd879222a393dc",243:"ed8bd30b9501bcb22fd3",244:"1faab67e03a2dd56e7bd",245:"303b830bba80fc996aef",246:"08ceb636f5f8e4317ca5",247:"7c03700f1dbc6eac981b",248:"35714eeadd519aa9dfcf",249:"4f05392ce00a66f308d3",250:"48f84130182327722cd4",251:"0a1b0fa923b789cd5864",252:"ee5468c4bce94fbd4340",253:"a04576b85494574beace",254:"38d3c295868cd8b424f3",255:"7ef582a1a9d7c6bc9ce4",256:"fb497f2bc426e9e9234e",257:"451d6ff1cbcd1e82e28b",258:"af0b3d78c0f9b4c4b483",259:"9537fd79785cf7619d46",260:"8fee4d335e86b67b41d5",261:"c8f67d68093e28809fa1",262:"1b4efca5671fa8739f99",263:"3c39d4d7aec5edcb16c5",264:"c6d038d027b8f5579b62",265:"617cecb15408c41029c6",266:"4bfa2a1fe523d6216f7e",267:"01ab39b0545a7c344159",268:"39c53e7626a3fa726375",269:"fd7e2132b777bc9d1ff9",270:"0f6fb5c7df457d82e84e",271:"373aee82d15c6d2f8f7a",272:"9dbea2e7ad62227486ce",273:"dc17327abc54482526b8",274:"2833123a8bd15317d600",275:"5a98040d9ca70b048ed7",276:"bef705bc5ef0f9163513",277:"91fc4bd7181f9ec9543b",278:"8da2ca78f3f18de844b0",279:"0ba25336a8c62c398f22",280:"91c05c58f6946ac5e775",281:"d5033b6b48a23740404c",282:"3f3ecb09ebb4cdb9799b",283:"3d85c0c11a24ba94bc9e",284:"77b125cefcaf99bac4c1",285:"9f26229687aa739765ab",286:"ab1b9830cc8d2fc48602",287:"4f8a30c6c6c72ebafedb",288:"6ea79119bafec1668b08",289:"d9e2d930e8c5def4e60e",290:"df1e4f87e577891f23e2",291:"2248803748e6ddd82362",292:"26b7cf5b4ba505bf736a",293:"24ac4cb0566c996f1abc",294:"c5cb64c5f3509e99984c",295:"1413ebedfbf2005fb24a",296:"7e001d5724cb7978901d",297:"27a6b1a1f40705c08693",298:"189959715d58a4f1445c",299:"c473a1eb34ed5a780d05",300:"602c871c4566ae3c80ab",301:"4d6018bd9a2d72c32ca3",302:"5f7224625c2e70ee4791",303:"086b0940cc7d863fbbc8",304:"6e39490d6e1d3bc4b6c2",305:"7c00c74628da866259be",306:"db0e8bc5f35abf640e42",307:"0e1f01f21e9f5dc70a8f",308:"1642376b04184fb272eb",309:"e111bee7394b0de41c56",310:"ef413cd864181beb9556",311:"7518b4c6e5d2ea343f20",312:"0e853d11527c8a2fc070",313:"c089d8e62c1841a5f49b",314:"e6c636f3d4b56aca7378",315:"dda15f18edf369be8d8a",316:"c90d378bfd6d7f804915",317:"6fb468784f5c141df583",318:"0d16023c3f5016d3faf7",319:"ad1eff1ab789c146b4bb",320:"dc827f5a9896e1a65a5f",321:"bbfec75d2729ebbfdea6",322:"6524ee61a5bbcdc82bad",323:"802088a2b8e1adcd6d71",324:"cacea29e07979bb1cc29",325:"234c63ff26db404cd5f8",326:"ac9be90169800a0ee3f2",327:"165bec614f967b62acbb",328:"15a0db6212a0b8d5bd8e",329:"97297be4a59b26859355",330:"83871dcf443acc1eb0fc",331:"b3b17b2c59f9269019e6",332:"2db32da5af5ac8856a0c",333:"73a42ded25c62e9eb9cb",334:"2970372fd546db2cd792",335:"b445bf889c4bfaa20ded",336:"dca8c996b0759024a80c",337:"cf2037f0cf8127d33cf0",338:"8ae1da6f0aa6bcbc630d",339:"4b1c4a707434cd5951f2",340:"597c4a6eed22a4136ae3",341:"d614e61e6be841fc0983",342:"ad1d6a86503c70875346",343:"ea1819f2b7f140a9ee4c",344:"568e49febdb4090e839d",345:"3722e34098d46ed05812",346:"c5059954393a764ff335",347:"593171161a367bc5a364",348:"a113e5a47d253a04ee81",349:"f44caf970b26edc1cfb5",350:"c897069f05d3321859db",351:"20c27eef90c10ba375ac",352:"d1b1b0d83832f01af001",353:"8dbc0f6a10d578ed65d8",354:"37f97145df25c4f06325",355:"0a20b274d332dfc1de8f",356:"95c716c47f819558c300",357:"a2209f579e8c7d7aaf15",358:"8146d57c402ea5a46aa9",359:"505a7998aff523d2680c",360:"91e7d4c09df93dde8884",361:"953133e649cf55b9aa14",362:"c1fbced15151f2ebae7b",363:"7a3d9b6e636d736c57b1",364:"d947f280b580cfeb79eb",365:"11faeabe12908aa64aef",366:"ab802a35cb45c4ecdf17",367:"e1ee15412bacb5b85419",368:"d6f579c0f7fba1553dff",369:"963f79259b7f6145a2c2",370:"a5352be153c412f455ce",371:"f0231bec1961ba9e4c6e",372:"382a16592fda603ec67f",373:"9cddef78290755aa8d58",374:"4d1c90a31ec1ed24b831",375:"7f71ef7df9411656fb87",376:"48e276a20cff85625679",377:"17463d001e2775885992",378:"7308f5a83c5825b2307e",379:"8b6d5783d68c7dfaccc7",380:"1e6fc3ffd068b97bec16",381:"aea7ee474ca60accc01b",382:"c69f3647cc33ace74db4",383:"c5fa700aa0abe2bad3b6",384:"b8cfd65a4cbb0bc5de35",385:"559499835625e3e755d3",386:"68267d7e2126f6a22477",387:"f75d2415e0bcabeced11",388:"5d6d70b2803e1f217000",389:"4d630e2829a08e9f4631",390:"4384ec2c9013dfececfb",391:"a2d8e07d43e02c7fd62d",392:"96254712f6158ac44044",393:"0cf32ecac62e6defa254",396:"9dbffb0410ad0baef47d",398:"3de8cdf9f34b728c0382",399:"b13be7ef0c258335c762",400:"b0a11aef28fbd269a48e",401:"3ff70723721f97c3ec1c",402:"132c176c1b3ee766df3d",403:"a75e98eb4066278a2a83",404:"00ef41fe988cd9161359",405:"f89db5c1c8e3eef8aa7c",406:"8ca4c77a69ec2e625dba",407:"9b3bb55be0152092ea80",408:"afc8612e7f163b101632",409:"858aacc2215bc483c074",410:"a86d6bdafde1b951e239",411:"c70baccd0c3d6a38c545",412:"423d89f4ff3da8d26719",413:"45cfbf55cf4fb7ca14b3",414:"b9fc9f6299ad8a23d39e",415:"ee3e534d5e771acc75b1",416:"68f6286f80654cdbe4e4",417:"70adf0a6f0571c394764",418:"e150e60cd47ccebe9a3b",419:"90848ff3d4f7a18fdbba",420:"f53fda6c83cb3bf5c3cb",421:"4ab038cd0a75d6bb1439",422:"3c028ca173636de51c84",423:"6edb13ec0cf08388c947",424:"725b821051516e73783a",425:"03fcf969da1a4e92fec3",426:"aa6924f6f1192d037009",427:"5c7b72141707b841e8a3",428:"0d471ce7c68654947c04",429:"6f7df5bde002cd265d62",430:"3c43456893f64472b27a",431:"119741766f60e10bf407",432:"0bc9e4074a81eb2c0f9a",433:"0aa7472cddb1bdd51224",434:"cdc3419c4a293c1e6910",435:"ea1c4300d0f0631904c9",436:"63295c82171f9e86ce96",437:"b63c56a0d911126d147e",438:"acca420d75de5b586cae",439:"8b9747c2da3cd15aa182",440:"5ad6f0752db9d5ed4303",441:"2dd50bb7e013b0058f07",442:"f2081e9af649d708ab74",443:"969280af4067a22d1a8b",444:"a5971579184b091ed392",445:"2b20cb9e68a11879f6c4",446:"fe3cf3d6e288c8c4444b",447:"d1d078921f6f28e2fa38",448:"d6c9bed6d99b8b23619f",449:"6196ad4d94c872ed4aa0",450:"4294e4f6e3bd7d3e4535",451:"0be4c840989512cf7e60",452:"9eaf4a5d4ff986faca19",453:"7c3a6bc7142f01f4a7c5",454:"639b34ebe37fc35fd8bf",455:"2c0860e1ca3cbbe7dbd3",456:"b6f845c7ae1cae411705",457:"0b2483db2b4005ef4ff5",458:"4f768c208ce6d5e617e0",459:"27eb9aca1cac5dc1a392",460:"dc1982f41987a5f63d20",461:"303028e54e54b1b9cf3d",462:"03fde6fed7101131c05d",463:"4881afc64d0d1c326eaf",464:"e5c5a8704b36b2b9a978",465:"b7b810c242939421dd83",466:"8446d58b7ae6620d0523",467:"53c59ecd1abd37f24946",468:"8e259940c62a68ef3055",469:"d8adb3a149af1e93c82a",470:"e43c32fa77fab7f8c785",471:"922fb61cefb4acccdf18",472:"bb8f9d0ad207a4769525",473:"0c35a661a30c2983491a",474:"a163e2ae5a13751eff5a",475:"0ec11b970798f86c2e63",476:"b3ac53061f155e7b4444",477:"080871dfe7f7412935f6",478:"ef0b0fb774e6128bd7e7",479:"0d37b661deba6691e10a",480:"379bf3b338e0a3224a1f",481:"0387239b174f787e70ea",482:"21e3d45adf9acaf41ae9",483:"c81275cb05dd78ce389f",484:"25a82c267c3a705d2a65",485:"91cbfbfd37eccde375c9",486:"d0ff4aa577b5d7776b49",487:"86020b5b3b47741e2234",488:"a69dcce23066c0dafdf7",489:"a976085b601cccf438d4",490:"d3e0f3e499b5a24f6808",491:"62c185868f9d99dd5713",492:"cf04731b6515481ccbf9",493:"2194222ca7084b4afe66",494:"c991867618fce5280fb2",495:"37739795bef1bc23a062",496:"d6045f2aaaf0574db90d",497:"a667913188e900fbc154",498:"99382ff25292c4043f5c"}[e]+".bundle.js"}(e);var u=new Error;a=function(t){s.onerror=s.onload=null,clearTimeout(l);var n=r[e];if(0!==n){if(n){var i=t&&("load"===t.type?"missing":t.type),o=t&&t.target&&t.target.src;u.message="Loading chunk "+e+" failed.\n("+i+": "+o+")",u.name="ChunkLoadError",u.type=i,u.request=o,n[1](u)}r[e]=void 0}};var l=setTimeout((function(){a({type:"timeout",target:s})}),12e4);s.onerror=s.onload=a,document.head.appendChild(s)}return Promise.all(t)},i.m=e,i.c=n,i.d=function(e,t,n){i.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},i.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.t=function(e,t){if(1&t&&(e=i(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(i.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)i.d(n,r,function(t){return e[t]}.bind(null,r));return n},i.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return i.d(t,"a",t),t},i.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},i.p="",i.oe=function(e){throw console.error(e),e};var o=window.webpackJsonp=window.webpackJsonp||[],a=o.push.bind(o);o.push=t,o=o.slice();for(var s=0;s<o.length;s++)t(o[s]);var u=a;i(i.s=1)}({0:function(e,t,n){"use strict";n.r(t),n.d(t,"SYSTEM_REPO",(function(){return r})),n.d(t,"READ_REPO",(function(){return i})),n.d(t,"READ_REPO_PREFIX",(function(){return o})),n.d(t,"WRITE_REPO",(function(){return a})),n.d(t,"GRAPHQL",(function(){return s})),n.d(t,"WRITE_REPO_PREFIX",(function(){return u})),n.d(t,"GRAPHQL_PREFIX",(function(){return l})),n.d(t,"GRAPHQL_SUFFIX",(function(){return c})),n.d(t,"SUFFIX_DELIMITER",(function(){return h})),n.d(t,"GRAPHQL_SUFFIX_WITH_DELIMITER",(function(){return p})),n.d(t,"CUSTOM_PREFIX",(function(){return f}));var r="SYSTEM",i="READ_REPO",o="READ_REPO_",a="WRITE_REPO",s="GRAPHQL",u="WRITE_REPO_",l="GRAPHQL_",c="GRAPHQL",h=":",p=h+c,f="CUSTOM_"},1:function(e,t,n){"use strict";n.r(t),n.d(t,"decodeHTML",(function(){return p}));n(10),n(70),n(85),n(525),n(100),n(526),n(65),n(66),n(86),n(87),n(88),n(89),n(90),n(91),n(92),n(93),n(94),n(95),n(96),n(97);var r=n(57);const i=(e,t)=>"undefined"==typeof window?Promise.resolve():Object(r.f)().then(()=>Object(r.b)([["ontotext-download-as",[[0,"ontotext-download-as",{translationService:[16],nameLabelKey:[1,"name-label-key"],tooltipLabelKey:[1,"tooltip-label-key"],items:[16],pluginName:[1,"plugin-name"],query:[1],infer:[4],sameAs:[4,"same-as"]}]]],["keyboard-shortcuts-dialog",[[0,"keyboard-shortcuts-dialog",{items:[16],translationService:[16],open:[32]},[[8,"keydown","keydownListener"]]]]],["alert-box",[[0,"alert-box",{type:[1],message:[1],noIcon:[4,"no-icon"],noButton:[4,"no-button"],isVisible:[32]}]]],["copy-resource-link-button",[[0,"copy-resource-link-button",{uri:[1],classes:[1]}]]],["loader-component",[[1,"loader-component",{timeFormattingService:[16],showQueryProgress:[4,"show-query-progress"],message:[1],additionalMessage:[1,"additional-message"],size:[1],hidden:[4],queryProgress:[32]}]]],["ontotext-editable-text-field",[[0,"ontotext-editable-text-field",{value:[1025],edit:[1028],translationService:[16]},[[8,"click","handleClickOutside"],[4,"keydown","keydownListener"]]]]],["ontotext-pagination",[[0,"ontotext-pagination",{pageNumber:[2,"page-number"],pageSize:[2,"page-size"],totalElements:[2,"total-elements"],pageElements:[2,"page-elements"],hasMorePages:[4,"has-more-pages"]}]]],["confirmation-dialog_9",[[0,"ontotext-yasgui",{config:[16],language:[1],savedQueryConfig:[16],saveQueryData:[32],savedQueryData:[32],deleteQueryData:[32],isVerticalOrientation:[32],renderingMode:[32],showSaveQueryDialog:[32],showSavedQueriesPopup:[32],showSavedQueriesPopupTarget:[32],showConfirmationDialog:[32],showShareQueryDialog:[32],showCopyResourceLinkDialog:[32],copiedResourceLink:[32],loaderMessage:[32],additionalLoaderMessage:[32],yasqeBtnLabel:[32],yasguiBtnLabel:[32],yasrBtnLabel:[32],changeRenderMode:[64],setQuery:[64],query:[64],getQuery:[64],isQueryValid:[64],openTab:[64],getQueryMode:[64],getQueryType:[64],getEmbeddedResultAsJson:[64],getEmbeddedResultAsCSV:[64],hideYasqeActionButton:[64],showYasqeActionButton:[64],getOngoingRequestsInfo:[64],abortQuery:[64],abortAllRequests:[64],reInitYasgui:[64],isQueryDirty:[64]},[[9,"resize","onResize"],[8,"beforeunload","onBeforeunloadHandler"],[0,"internalCreateSavedQueryEvent","saveQueryHandler"],[0,"internalSaveQueryEvent","createSavedQueryHandler"],[0,"internalUpdateQueryEvent","updateSavedQueryHandler"],[0,"internalSaveQueryDialogClosedEvent","closeSaveDialogHandler"],[0,"internalShowSavedQueriesEvent","showSavedQueriesHandler"],[0,"internalSaveQuerySelectedEvent","savedQuerySelectedHandler"],[0,"internalEditSavedQueryEvent","editSavedQueryHandler"],[0,"internalSavedQuerySelectedForDeleteEvent","savedQuerySelectedForEditHandler"],[0,"internalConfirmationApprovedEvent","deleteSavedQueryHandler"],[0,"internalConfirmationRejectedEvent","closeSavedQueryDeleteConfirmationHandler"],[0,"internalCloseSavedQueriesPopupEvent","closeSavedQueriesPopupHandler"],[0,"internalSavedQuerySelectedForShareEvent","savedQuerySelectedForShareHandler"],[0,"internalShareQueryEvent","shareQueryHandler"],[0,"internalQueryShareLinkCopiedEvent","savedQueryShareLinkCopiedHandler"],[0,"internalShareQueryDialogClosedEvent","closeShareQueryDialogHandler"],[0,"internalResourceLinkDialogClosedEvent","resourceLinkDialogClosedHandler"],[0,"internalResourceLinkCopiedEvent","resourceLinkCopiedHandler"],[0,"internalShowResourceCopyLinkDialogEvent","showResourceCopyLinkDialogHandler"],[0,"internalDownloadAsEvent","onDownloadAsEventHandler"],[0,"internalNotificationMessageEvent","notificationMessageHandler"],[0,"internalQueryEvent","onQuery"],[0,"internalQueryExecuted","onInternalQueryExecuted"],[0,"internalCountQueryEvent","onCountQuery"],[0,"internalCountQueryResponseEvent","onCountQueryResponse"],[0,"internalRequestAbortedEvent","onQueryAborted"]]],[0,"copy-resource-link-dialog",{serviceFactory:[16],resourceLink:[1,"resource-link"]}],[0,"share-query-dialog",{config:[16],serviceFactory:[16]}],[0,"save-query-dialog",{serviceFactory:[16],data:[16],queryName:[32],query:[32],isPublic:[32],isNew:[32],isSaveAllowed:[32]},[[8,"keydown","keydownListener"]]],[0,"confirmation-dialog",{translationService:[16],config:[16]},[[8,"keydown","keydownListener"]]],[0,"saved-queries-popup",{config:[16],serviceFactory:[16]},[[8,"click","onWindowResize"],[8,"keydown","keydownListener"]]],[0,"copy-link-dialog",{config:[16],serviceFactory:[16],copyLinkEventsObserver:[16],classes:[1]}],[4,"yasgui-tooltip",{dataTooltip:[1,"data-tooltip"],placement:[1],showOnClick:[4,"show-on-click"]}],[4,"ontotext-dialog-web-component",{config:[16]},[[4,"keydown","keydownListener"]]]]],["ontotext-dropdown",[[0,"ontotext-dropdown",{translationService:[16],nameLabelKey:[1,"name-label-key"],tooltipLabelKey:[1,"tooltip-label-key"],items:[16],iconClass:[1,"icon-class"],open:[32],showTooltip:[32]},[[8,"keydown","keydownListener"],[8,"click","mouseClickListener"]]]]]],t));!function(){if("undefined"!=typeof window&&void 0!==window.Reflect&&void 0!==window.customElements){var e=HTMLElement;window.HTMLElement=function(){return Reflect.construct(e,[],this.constructor)},HTMLElement.prototype=e.prototype,HTMLElement.prototype.constructor=HTMLElement,Object.setPrototypeOf(HTMLElement,e)}}();var o=n(43);!function(){if("undefined"!=typeof window&&void 0!==window.Reflect&&void 0!==window.customElements){var e=HTMLElement;window.HTMLElement=function(){return Reflect.construct(e,[],this.constructor)},HTMLElement.prototype=e.prototype,HTMLElement.prototype.constructor=HTMLElement,Object.setPrototypeOf(HTMLElement,e)}}();var a,s,u=n(41),l=n(17),c=n(33),h=n(42),p=function(e){var t=document.createElement("textarea");return t.innerHTML=e,t.value},f=["ngRoute","graphdb.workbench.se.controllers","graphdb.framework.core","angularCancelOnNavigateModule","oc.lazyLoad","pascalprecht.translate","graphdb.framework.core.interceptors.unauthorized","graphdb.framework.core.interceptors.authentication","graphdb.framework.core.directives.rdfresourcesearch.rdfresourcesearch","graphdb.framework.core.directives.languageselector.languageselector","graphdb.framework.core.directives.copytoclipboard.copytoclipboard","graphdb.framework.core.directives.angular-tooltips","graphdb.framework.core.directives.uppercased","graphdb.framework.core.directives.prop-indeterminate","graphdb.framework.core.directives.page-info-tooltip","graphdb.framework.guides.services","graphdb.framework.core.directives.operationsstatusesmonitor","graphdb.framework.core.directives.autocomplete","ngCustomElement","graphdb.framework.core.services.language-service","graphdb.framework.core.filters.searchFilter","graphdb.framework.core.filters.bytes"],d=["$routeProvider","$locationProvider","$menuItemsProvider","toastrConfig","localStorageServiceProvider","$uibTooltipProvider","$httpProvider","$templateRequestProvider","$translateProvider","$languageServiceProvider"],g=function(e,t){i(),(async(e,t)=>{if("undefined"!=typeof window)await void 0,Object(o.b)([["graphql-playground-component",[[0,"graphql-playground-component",{configuration:[16],setLanguage:[64]},null,{configuration:["configurationChanged"]}]]]],t)})();var r=angular.module("graphdb.workbench",f);r.config([].concat(d,[function(r,i,o,a,s,u,l,c,h,p){t&&Object.keys(t).length>0?Object.keys(t).forEach((function(e){h.translations(e,t[e])})):(h.useStaticFilesLoader({prefix:"i18n/locale-",suffix:".json?v=3.0.1-RC2"}),h.preferredLanguage(p.getDefaultLanguage())),h.useSanitizeValueStrategy("escape"),angular.extend(a,{timeOut:5e3,positionClass:"toast-bottom-right",tapToDismiss:!1,extendedTimeOut:5e3}),s.setStorageType("localStorage").setNotify(!0,!0);var f=r.$get[r.$get.length-1]({$on:function(){}});r.when("_openid_implicit_",{controller:function(){},template:"<div></div>"}),f.routes._openid_implicit_.regexp=/[&/](?:id_token=.*&access_token=|access_token=.*&id_token=)/;var d=PluginRegistry.get("route");angular.forEach(d,(function(e){r.when(e.url,{controller:e.controller,templateUrl:e.templateUrl,title:e.title,helpInfo:e.helpInfo,documentationUrl:e.documentationUrl,allowAuthorities:e.allowAuthorities,reloadOnSearch:void 0===e.reloadOnSearch||e.reloadOnSearch,resolve:{preload:["$ocLazyLoad","$q",function(t,r){return e.path?n(529)("./".concat(e.path)).then((function(n){t.inject(e.module)})):r.defer().resolve()}]}})})),r.otherwise({templateUrl:"pages/not_found.html"}),i.html5Mode(!0),u.setTriggers({show:"hide"}),u.options({appendToBody:!0}),o.setProductInfo(e),PluginRegistry.get("main.menu").forEach((function(e){e.items.forEach((function(e){o.addItem(e)}))})),l.interceptors.push("$unauthorizedInterceptor"),l.interceptors.push("$authenticationInterceptor");var g=c.$get[3];"function"==typeof g&&(c.$get[3]=function(e,t,n){var r=g(e,t,n);return function(t,n){return e.get(t)||(t+="?v=3.0.1-RC2"),r(t,n)}})}])),r.constant("productInfo",e),r.run(["$rootScope","$route","toastr","$sce","$translate","ThemeService","WorkbenchSettingsStorageService","LSKeys","GuidesService",function(t,n,r,i,o,a,s,u,c){function h(){n.current.title?document.title=p(o.instant(n.current.title))+" | GraphDB Workbench":document.title="GraphDB Workbench",t.helpInfo=n.current.helpInfo&&i.trustAsHtml(p(o.instant(n.current.helpInfo))),t.title=p(o.instant(n.current.title)),t.documentationUrl=l.DocumentationUrlResolver.getDocumentationUrl(e.productShortVersion,n.current.documentationUrl)}t.$on("$routeChangeSuccess",(function(){h(),r.clear()})),t.$on("$translateChangeSuccess",(function(){h()}));var f=s.getThemeName();a.applyTheme(f),a.applyDarkThemeMode(),c.init()}]),r.filter("titlecase",(function(){return function(e){var t=""+e;return t.charAt(0).toUpperCase()+t.slice(1)}})),r.filter("prettyJSON",(function(){return function(e){return angular.toJson(e,!0)}})),r.filter("humanReadableSize",(function(){return function(e){return Object(u.convertToHumanReadable)(e)}})),r.filter("trustAsHtml",["$translate","$sce",function(e,t){return function(e){return t.trustAsHtml(p(e))}}]),r.filter("formatNumberToLocaleString",["$translate",function(e){return function(t){return c.NumberUtils.formatNumberToLocaleString(t,e.use())}}]),r.filter("htmlAsText",(function(){return function(e){return h.HtmlUtil.getText(e)}})),angular.bootstrap(document,["graphdb.workbench"])};function m(e){return $.getJSON("i18n/locale-".concat(e,".json?v=3.0.1-RC2")).then((function(t){return{language:e,data:t}})).fail((function(){return console.error("Failed to load translation file for: ".concat(e)),null}))}function v(e){$.get("rest/info/version?local=1",(function(t){var n=t.productVersion.match(/^(\d+\.\d+)/);n.length?t.productShortVersion=n[1]:t.productShortVersion=t.productVersion;var r=t.productVersion.match(/(-.*?)(-|$)/);r&&r.length&&(t.productShortVersion=t.productShortVersion+r[1]),g(t,e)}))}a=[{key:"en",name:"English"},{key:"fr",name:"Français"}].map((function(e){return e.key})).map(m),s={},Promise.all(a).then((function(e){e.forEach((function(e){e&&(s[e.language]=e.data)})),v(s)})).catch((function(){console.error("Failed to load one or more translation files."),v(s)}))},10:function(e,t,n){"use strict";n.r(t);n(511),n(512),n(513),n(514),n(515),n(516),n(24),n(518),n(519),n(69),n(520),n(52),n(58),n(100);var r={title:"",message:"",confirmButtonKey:"common.yes.btn",backdrop:!0};function i(e,t,n){return{openSimpleModal:o,openConfirmationModal:i,openModalAlert:function(t){var n="modal-alert "+t.dialogClass;return e.open({templateUrl:"js/angular/core/templates/modal/modal-simple.html",controller:"SimpleModalCtrl",size:t.size,windowClass:n,resolve:{config:function(){return _.merge({},r,t)}}})},openCopyToClipboardModal:function(t){return e.open({templateUrl:"js/angular/core/templates/modal/copy-to-clipboard-modal.html",controller:"CopyToClipboardModalCtrl",resolve:{uri:function(){return t}}})},openConfirmation:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(){},r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:function(){};i({title:e,message:t,dialogClass:"confirm-dialog"},n,r)},openCustomModal:function(t){return e.open({templateUrl:t.templateUrl,controller:t.controller,size:t.size,windowClass:t.dialogClass,backdrop:t.backdrop,resolve:{config:function(){return _.merge({},r,t)}}})}};function i(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(){},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(){},r=_.merge({warning:!0},e);o(r).result.then(t,n)}function o(t){return e.open({templateUrl:t.warning?"js/angular/core/templates/modal/modal-warning.html":"js/angular/core/templates/modal/modal-simple.html",controller:"SimpleModalCtrl",size:t.size,windowClass:t.dialogClass,backdrop:t.backdrop,resolve:{config:function(){return _.merge({},r,t)}}})}}function o(e){return{getDetails:function(t){return e.get("rest/explore/details",{params:{uri:t},headers:{Accept:"application/json"}})},getGraph:function(t){var n=encodeURIComponent(t);return e.get("rest/explore/graph?uri="+n+"&role=subject",{headers:{Accept:"application/rdf+json"}})},getNamespaceUriForPrefix:function(e,t){for(var n="",r=0;r<e.length;r++)if(e[r].prefix===t){n=e[r].uri;break}return n},getNamespacePrefixForUri:function(e,t){for(var n="",r=0;r<e.length;r++)if(e[r].uri===t){n=e[r].prefix;break}return n},getLocalName:function(e){if(angular.isUndefined(e))return e;var t,n=e.length-1,r=e.toString().lastIndexOf("/");r===n&&(t=e.substr(0,n),r=t.lastIndexOf("/"));var i=e.toString().lastIndexOf("#");return i===n&&(t=e.substr(0,n),i=t.lastIndexOf("/")),e.toString().substring(Math.max(i,r)+1)}}}angular.module("graphdb.framework.core",["ui.bootstrap","jlareau.bowser","LocalStorageModule","graphdb.framework.core.controllers","pascalprecht.translate"]).provider("$menuItems",(function(){var e,t=function(e,n){for(var r=0;r<e.length;r++){var i=e[r];if(i.label===n)return i;var o=t(i.children,n);if(!angular.isUndefined(o))return o}},n=function(e,t){for(var n=0;n<e.length;n++){if(e[n].label===t)return!0}return!1},r=function(e,t){return e.order<t.order?-1:e.order>t.order?1:0},i=function(e,t){return{label:e.label,labelKey:e.labelKey,href:e.href,hrefFun:e.hrefFun,order:e.order,role:e.role,editions:e.editions,icon:e.icon,guideSelector:e.guideSelector,children:t}},o=[],a=[];this.addItem=function(e){angular.isUndefined(e.parent)?n(o,e.label)||(o.push(i(e,[])),this.updateItemsWithMissedParent()):this.addItemToParent(e)||a.push(e)},this.addItemToParent=function(e){var r=t(o,e.parent);return!angular.isUndefined(r)&&!n(r.children,e.label)&&(r.children.push(i(e,e.children?e.children:[])),!0)},this.updateItemsWithMissedParent=function(){if(a.length>0){var e=[],t=this;a.forEach((function(n){t.addItemToParent(n)||e.push(n)})),a=e}},this.$get=function(){o.sort(r);for(var e=0;e<o.length;e++){o[e].children.sort(r)}return o},this.setProductInfo=function(t){e=t},this.getProductInfo=function(){return e}})).factory("ModalService",i).factory("ClassInstanceDetailsService",o).factory("AuthTokenService",(function(){var e="com.ontotext.graphdb.auth";return{AUTH_STORAGE_NAME:e,getAuthToken:function(){return localStorage.getItem(e)},setAuthToken:function(t){localStorage.setItem(e,t)},clearAuthToken:function(){localStorage.removeItem(e)},OPENID_CONFIG:{}}})),i.$inject=["$uibModal","$timeout","$sce"],o.$inject=["$http"]},100:function(e,t,n){var r;
2
+ /*!
3
+ * angular-translate - v2.19.1 - 2024-01-21
4
+ *
5
+ * Copyright (c) 2024 The angular-translate team, Pascal Precht; Licensed MIT
6
+ */void 0===(r=function(){return function(){function e(e){"use strict";var t=e.storageKey(),n=e.storage(),r=function(){var r=e.preferredLanguage();angular.isString(r)?e.use(r):n.put(t,e.use())};r.displayName="fallbackFromIncorrectStorageValue",n?n.get(t)?e.use(n.get(t)).catch(r):r():angular.isString(e.preferredLanguage())&&e.use(e.preferredLanguage())}function t(e,t,n,r){"use strict";var i,o,a,s,u,l,c,h,p,f,d,g,m,v,y,b,$={},w=[],x=e,S=[],E="translate-cloak",A=!1,C=!1,T=!0,F=".",k=!1,R=!1,P=0,D=!0,O="default",I={default:function(e){return(e||"").split("-").join("_")},java:function(e){var t=(e||"").split("-").join("_"),n=t.split("_");return n.length>1?n[0].toLowerCase()+"_"+n[1].toUpperCase():t},bcp47:function(e){var t=(e||"").split("_").join("-"),n=t.split("-");switch(n.length){case 1:n[0]=n[0].toLowerCase();break;case 2:n[0]=n[0].toLowerCase(),4===n[1].length?n[1]=n[1].charAt(0).toUpperCase()+n[1].slice(1).toLowerCase():n[1]=n[1].toUpperCase();break;case 3:n[0]=n[0].toLowerCase(),n[1]=n[1].charAt(0).toUpperCase()+n[1].slice(1).toLowerCase(),n[2]=n[2].toUpperCase();break;default:return t}return n.join("-")},"iso639-1":function(e){return(e||"").split("_").join("-").split("-")[0].toLowerCase()}},_=function(){if(angular.isFunction(r.getLocale))return r.getLocale();var e,n,i=t.$get().navigator,o=["language","browserLanguage","systemLanguage","userLanguage"];if(angular.isArray(i.languages))for(e=0;e<i.languages.length;e++)if((n=i.languages[e])&&n.length)return n;for(e=0;e<o.length;e++)if((n=i[o[e]])&&n.length)return n;return null};_.displayName="angular-translate/service: getFirstBrowserLanguage";var j=function(){var e=_()||"";return I[O]&&(e=I[O](e)),e};j.displayName="angular-translate/service: getLocale";var L=function(e,t){for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1},N=function(){return this.toString().replace(/^\s+|\s+$/g,"")},M=function(e){return angular.isString(e)?e.toLowerCase():e},B=function(e){if(e){for(var t,n=[],r=M(e),i=0,a=w.length;i<a;i++)n.push(M(w[i]));if((i=L(n,r))>-1)return w[i];if(o)for(var s in o)if(o.hasOwnProperty(s)){var u=!1,l=Object.prototype.hasOwnProperty.call(o,s)&&M(s)===M(e);if("*"===s.slice(-1)&&(u=M(s.slice(0,-1))===M(e.slice(0,s.length-1))),(l||u)&&(t=o[s],L(n,M(t))>-1))return t}var c=e.split("_");return c.length>1&&L(n,M(c[0]))>-1?c[0]:void 0}},U=function(e,t){if(!e&&!t)return $;if(e&&!t){if(angular.isString(e))return $[e]}else angular.isObject($[e])||($[e]={}),angular.extend($[e],H(t));return this};this.translations=U,this.cloakClassName=function(e){return e?(E=e,this):E},this.allowNamespaces=function(e){return void 0===e?T:(T=e,this)},this.nestedObjectDelimeter=function(e){return e?(F=e,this):F};var H=function(e,t,n,r){var i,o,a;if(t||(t=[]),n||(n={}),!T)return e;for(i in e)Object.prototype.hasOwnProperty.call(e,i)&&(a=e[i],angular.isObject(a)?H(a,t.concat(i),n,i):(o=t.length?""+t.join(F)+F+i:i,t.length&&i===r&&(n[""+t.join(F)]="@:"+o),n[o]=a));return n};H.displayName="flatObject",this.addInterpolation=function(e){return S.push(e),this},this.useMessageFormatInterpolation=function(){return this.useInterpolation("$translateMessageFormatInterpolation")},this.useInterpolation=function(e){return f=e,this},this.useSanitizeValueStrategy=function(e){return n.useStrategy(e),this},this.preferredLanguage=function(e){return e?(V(e),this):i};var V=function(e){return e&&(i=e),i};this.translationNotFoundIndicator=function(e){return this.translationNotFoundIndicatorLeft(e),this.translationNotFoundIndicatorRight(e),this},this.translationNotFoundIndicatorLeft=function(e){return e?(m=e,this):m},this.translationNotFoundIndicatorRight=function(e){return e?(v=e,this):v},this.fallbackLanguage=function(e){return q(e),this};var q=function(e){return e?(angular.isString(e)?(s=!0,a=[e]):angular.isArray(e)&&(s=!1,a=e),angular.isString(i)&&L(a,i)<0&&a.push(i),this):s?a[0]:a};this.use=function(e){if(e){if(!$[e]&&!d)throw new Error("$translateProvider couldn't find translationTable for langKey: '"+e+"'");return u=e,this}return u},this.resolveClientLocale=function(){return j()};var z=function(e){return e?(x=e,this):h?h+x:x};this.storageKey=z,this.useUrlLoader=function(e,t){return this.useLoader("$translateUrlLoader",angular.extend({url:e},t))},this.useStaticFilesLoader=function(e){return this.useLoader("$translateStaticFilesLoader",e)},this.useLoader=function(e,t){return d=e,g=t||{},this},this.useLocalStorage=function(){return this.useStorage("$translateLocalStorage")},this.useCookieStorage=function(){return this.useStorage("$translateCookieStorage")},this.useStorage=function(e){return c=e,this},this.storagePrefix=function(e){return e?(h=e,this):e},this.useMissingTranslationHandlerLog=function(){return this.useMissingTranslationHandler("$translateMissingTranslationHandlerLog")},this.useMissingTranslationHandler=function(e){return p=e,this},this.usePostCompiling=function(e){return A=!!e,this},this.forceAsyncReload=function(e){return C=!!e,this},this.uniformLanguageTag=function(e){return e?angular.isString(e)&&(e={standard:e}):e={},O=e.standard,this},this.determinePreferredLanguage=function(e){var t=e&&angular.isFunction(e)?e():j();return i=w.length&&B(t)||t,this},this.registerAvailableLanguageKeys=function(e,t){return e?(w=e,t&&(o=t),this):w},this.useLoaderCache=function(e){return!1===e?y=void 0:!0===e?y=!0:void 0===e?y="$translationCache":e&&(y=e),this},this.directivePriority=function(e){return void 0===e?P:(P=e,this)},this.statefulFilter=function(e){return void 0===e?D:(D=e,this)},this.postProcess=function(e){return b=e||void 0,this},this.keepContent=function(e){return R=!!e,this},this.$get=["$log","$injector","$rootScope","$q",function(e,t,n,r){var o,h,O,I=t.get(f||"$translateDefaultInterpolation"),_=!1,M={},K={},G=function(e,t,n,s,l,p){!u&&i&&(u=i);var f=l&&l!==u?B(l)||l:u;if(l&&ae(l),angular.isArray(e))return function(e){for(var i={},o=[],a=function(e){var o=r.defer(),a=function(t){i[e]=t,o.resolve([e,t])};return G(e,t,n,s,l,p).then(a,a),o.promise},u=0,c=e.length;u<c;u++)o.push(a(e[u]));return r.all(o).then((function(){return i}))}(e);var d=r.defer();if(!e)throw new TypeError("translationId must be a not empty string");e=N.apply(e);var g=function(){var e=K[f]||K[i];if(h=0,c&&!e){var t=o.get(x);if(e=K[t],a&&a.length){var n=L(a,t);h=0===n?1:0,L(a,i)<0&&a.push(i)}}return e}();if(g){var m=function(){l||(f=u),re(e,t,n,s,f,p).then(d.resolve,d.reject)};m.displayName="promiseResolved",g.finally(m).catch(angular.noop)}else re(e,t,n,s,f,p).then(d.resolve,d.reject);return d.promise},W=function(e){return m&&(e=[m,e].join(" ")),v&&(e=[e,v].join(" ")),e},Y=function(e){u=e,c&&o.put(G.storageKey(),u),n.$emit("$translateChangeSuccess",{language:e}),I.setLocale(u);var t=function(e,t){M[t].setLocale(u)};t.displayName="eachInterpolatorLocaleSetter",angular.forEach(M,t),n.$emit("$translateChangeEnd",{language:e})},X=function(e){if(!e)throw"No language key specified for loading.";var i=r.defer();n.$emit("$translateLoadingStart",{language:e}),_=!0;var o=y;"string"==typeof o&&(o=t.get(o));var a=angular.extend({},g,{key:e,$http:angular.extend({},{cache:o},g.$http)}),s=function(t){var r={};n.$emit("$translateLoadingSuccess",{language:e}),angular.isArray(t)?angular.forEach(t,(function(e){angular.extend(r,H(e))})):angular.extend(r,H(t)),_=!1,i.resolve({key:e,table:r}),n.$emit("$translateLoadingEnd",{language:e})};s.displayName="onLoaderSuccess";var u=function(e){n.$emit("$translateLoadingError",{language:e}),i.reject(e),n.$emit("$translateLoadingEnd",{language:e})};return u.displayName="onLoaderError",t.get(d)(a).then(s,u),i.promise};if(c&&(!(o=t.get(c)).get||!o.put))throw new Error("Couldn't use storage '"+c+"', missing get() or put() method!");if(S.length){var Q=function(e){var n=t.get(e);n.setLocale(i||u),M[n.getInterpolationIdentifier()]=n};Q.displayName="interpolationFactoryAdder",angular.forEach(S,Q)}var J=function(e,t,n,i,o){var a=r.defer(),s=function(r){if(Object.prototype.hasOwnProperty.call(r,t)&&null!==r[t]){i.setLocale(e);var s=r[t];if("@:"===s.substr(0,2))J(e,s.substr(2),n,i,o).then(a.resolve,a.reject);else{var l=i.interpolate(r[t],n,"service",o,t);l=oe(t,r[t],l,n,e),a.resolve(l)}i.setLocale(u)}else a.reject()};return s.displayName="fallbackTranslationResolver",function(e){var t=r.defer();if(Object.prototype.hasOwnProperty.call($,e))t.resolve($[e]);else if(K[e]){var n=function(e){U(e.key,e.table),t.resolve(e.table)};n.displayName="translationTableResolver",K[e].then(n,t.reject)}else t.reject();return t.promise}(e).then(s,a.reject),a.promise},Z=function(e,t,n,r,i){var o,a=$[e];if(a&&Object.prototype.hasOwnProperty.call(a,t)&&null!==a[t]){if(r.setLocale(e),o=r.interpolate(a[t],n,"filter",i,t),o=oe(t,a[t],o,n,e,i),!angular.isString(o)&&angular.isFunction(o.$$unwrapTrustedValue)){var s=o.$$unwrapTrustedValue();if("@:"===s.substr(0,2))return Z(e,s.substr(2),n,r,i)}else if("@:"===o.substr(0,2))return Z(e,o.substr(2),n,r,i);r.setLocale(u)}return o},ee=function(e,n,r,i){return p?t.get(p)(e,u,n,r,i):e},te=function(e,t,n,i,o,s){var u=r.defer();if(e<a.length){var l=a[e];J(l,t,n,i,s).then((function(e){u.resolve(e)}),(function(){return te(e+1,t,n,i,o,s).then(u.resolve,u.reject)}))}else if(o)u.resolve(o);else{var c=ee(t,n,o);p&&c?u.resolve(c):u.reject(W(t))}return u.promise},ne=function(e,t,n,r,i){var o;if(e<a.length){var s=a[e];(o=Z(s,t,n,r,i))||""===o||(o=ne(e+1,t,n,r))}return o},re=function(e,t,n,i,o,s){var u=r.defer(),l=o?$[o]:$,c=n?M[n]:I;if(l&&Object.prototype.hasOwnProperty.call(l,e)&&null!==l[e]){var f=l[e];if("@:"===f.substr(0,2))G(f.substr(2),t,n,i,o,s).then(u.resolve,u.reject);else{var d=c.interpolate(f,t,"service",s,e);d=oe(e,f,d,t,o),u.resolve(d)}}else{var g;p&&!_&&(g=ee(e,t,i)),o&&a&&a.length?function(e,t,n,r,i){return te(O>0?O:h,e,t,n,r,i)}(e,t,c,i,s).then((function(e){u.resolve(e)}),(function(e){u.reject(W(e))})):p&&!_&&g?i?u.resolve(i):u.resolve(g):i?u.resolve(i):u.reject(W(e))}return u.promise},ie=function(e,t,n,r,i){var o,s=r?$[r]:$,u=I;if(M&&Object.prototype.hasOwnProperty.call(M,n)&&(u=M[n]),s&&Object.prototype.hasOwnProperty.call(s,e)&&null!==s[e]){var l=s[e];"@:"===l.substr(0,2)?o=ie(l.substr(2),t,n,r,i):(o=u.interpolate(l,t,"filter",i,e),o=oe(e,l,o,t,r,i))}else{var c;p&&!_&&(c=ee(e,t,i)),r&&a&&a.length?(h=0,o=function(e,t,n,r){return ne(O>0?O:h,e,t,n,r)}(e,t,u,i)):o=p&&!_&&c?c:W(e)}return o},oe=function(e,n,r,i,o,a){var s=b;return s&&("string"==typeof s&&(s=t.get(s)),s)?s(e,n,r,i,o,a):r},ae=function(e){$[e]||!d||K[e]||(K[e]=X(e).then((function(e){return U(e.key,e.table),e})))};G.preferredLanguage=function(e){return e&&V(e),i},G.cloakClassName=function(){return E},G.allowNamespaces=function(){return T},G.nestedObjectDelimeter=function(){return F},G.fallbackLanguage=function(e){if(null!=e){if(q(e),d&&a&&a.length)for(var t=0,n=a.length;t<n;t++)K[a[t]]||(K[a[t]]=X(a[t]));G.use(G.use())}return s?a[0]:a},G.useFallbackLanguage=function(e){if(null!=e)if(e){var t=L(a,e);t>-1&&(O=t)}else O=0},G.proposedLanguage=function(){return l},G.storage=function(){return o},G.negotiateLocale=B,G.use=function(e){if(!e)return u;var t=r.defer();t.promise.then(null,angular.noop),n.$emit("$translateChangeStart",{language:e});var i=B(e);return w.length>0&&!i?r.reject(e):(i&&(e=i),l=e,!C&&$[e]||!d||K[e]?K[e]?K[e].then((function(e){return l===e.key&&Y(e.key),t.resolve(e.key),e}),(function(e){return!u&&a&&a.length>0&&a[0]!==e?G.use(a[0]).then(t.resolve,t.reject):t.reject(e)})):(t.resolve(e),Y(e)):(K[e]=X(e).then((function(n){return U(n.key,n.table),t.resolve(n.key),l===e&&Y(n.key),n}),(function(e){return n.$emit("$translateChangeError",{language:e}),t.reject(e),n.$emit("$translateChangeEnd",{language:e}),r.reject(e)})),K[e].finally((function(){!function(e){l===e&&(l=void 0),K[e]=void 0}(e)})).catch(angular.noop)),t.promise)},G.resolveClientLocale=function(){return j()},G.storageKey=function(){return z()},G.isPostCompilingEnabled=function(){return A},G.isForceAsyncReloadEnabled=function(){return C},G.isKeepContent=function(){return R},G.refresh=function(e){if(!d)throw new Error("Couldn't refresh translation table, no loader registered!");n.$emit("$translateRefreshStart",{language:e});var t=r.defer(),i={};function o(e){var t=X(e);return K[e]=t,t.then((function(t){$[e]={},U(e,t.table),i[e]=!0}),angular.noop),t}if(t.promise.then((function(){for(var e in $)$.hasOwnProperty(e)&&(e in i||delete $[e]);u&&Y(u)}),angular.noop).finally((function(){n.$emit("$translateRefreshEnd",{language:e})})),e)$[e]?o(e).then(t.resolve,t.reject):t.reject();else{var s=a&&a.slice()||[];u&&-1===s.indexOf(u)&&s.push(u),r.all(s.map(o)).then(t.resolve,t.reject)}return t.promise},G.instant=function(e,t,n,r,o){var s=r&&r!==u?B(r)||r:u;if(null===e||angular.isUndefined(e))return e;if(r&&ae(r),angular.isArray(e)){for(var l={},c=0,h=e.length;c<h;c++)l[e[c]]=G.instant(e[c],t,n,r,o);return l}if(angular.isString(e)&&e.length<1)return e;e&&(e=N.apply(e));var f,d,g=[];i&&g.push(i),s&&g.push(s),a&&a.length&&(g=g.concat(a));for(var y=0,b=g.length;y<b;y++){var w=g[y];if($[w]&&void 0!==$[w][e]&&(f=ie(e,t,n,s,o)),void 0!==f)break}return f||""===f||(m||v?f=W(e):(f=I.interpolate(e,t,"filter",o),p&&!_&&(d=ee(e,t,o)),p&&!_&&d&&(f=d))),f},G.versionInfo=function(){return"2.19.1"},G.loaderCache=function(){return y},G.directivePriority=function(){return P},G.statefulFilter=function(){return D},G.isReady=function(){return k};var se=r.defer();se.promise.then((function(){k=!0})),G.onReady=function(e){var t=r.defer();return angular.isFunction(e)&&t.promise.then(e),k?t.resolve():se.promise.then(t.resolve),t.promise},G.getAvailableLanguageKeys=function(){return w.length>0?w:null},G.getTranslationTable=function(e){return(e=e||G.use())&&$[e]?angular.copy($[e]):null};var ue=n.$on("$translateReady",(function(){se.resolve(),ue(),ue=null})),le=n.$on("$translateChangeEnd",(function(){se.resolve(),le(),le=null}));if(d){if(angular.equals($,{})&&G.use()&&G.use(G.use()),a&&a.length)for(var ce=function(e){return U(e.key,e.table),n.$emit("$translateChangeEnd",{language:e.key}),e},he=0,pe=a.length;he<pe;he++){var fe=a[he];!C&&$[fe]||(K[fe]=X(fe).then(ce))}}else n.$emit("$translateReady",{language:G.use()});return G}]}function n(e,t){"use strict";var n={setLocale:function(e){},getInterpolationIdentifier:function(){return"default"},useSanitizeValueStrategy:function(e){return t.useStrategy(e),this},interpolate:function(n,r,i,o,a){var s;return r=r||{},r=t.sanitize(r,"params",o,i),angular.isNumber(n)?s=""+n:angular.isString(n)?(s=e(n)(r),s=t.sanitize(s,"text",o,i)):s="",s}};return n}function r(e,t,n,r,i){"use strict";var o=function(){return this.toString().replace(/^\s+|\s+$/g,"")},a=function(e){return angular.isString(e)?e.toLowerCase():e};return{restrict:"AE",scope:!0,priority:e.directivePriority(),compile:function(s,u){var l=u.translateValues?u.translateValues:void 0,c=u.translateInterpolation?u.translateInterpolation:void 0,h=u.translateSanitizeStrategy?u.translateSanitizeStrategy:void 0,p=s[0].outerHTML.match(/translate-value-+/i),f="^(.*)("+t.startSymbol()+".*"+t.endSymbol()+")(.*)",d="^(.*)"+t.startSymbol()+"(.*)"+t.endSymbol()+"(.*)";return function(s,g,m){s.interpolateParams={},s.preText="",s.postText="",s.translateNamespace=function e(t){return t.translateNamespace?t.translateNamespace:t.$parent?e(t.$parent):void 0}(s);var v={},y=function(e){if(angular.isFunction(y._unwatchOld)&&(y._unwatchOld(),y._unwatchOld=void 0),angular.equals(e,"")||!angular.isDefined(e)){var n=o.apply(g.text()).replace(/\n/g," "),r=n.match(f);if(angular.isArray(r)){s.preText=r[1],s.postText=r[3],v.translate=t(r[2])(s.$parent);var i=n.match(d);angular.isArray(i)&&i[2]&&i[2].length&&(y._unwatchOld=s.$watch(i[2],(function(e){v.translate=e,E()})))}else v.translate=n||void 0}else v.translate=e;E()},b=function(e){m.$observe(e,(function(t){v[e]=t,E()}))};!function(e,t,n){if(t.translateValues&&angular.extend(e,r(t.translateValues)(s.$parent)),p)for(var i in n)Object.prototype.hasOwnProperty.call(t,i)&&"translateValue"===i.substr(0,14)&&"translateValues"!==i&&(e[a(i.substr(14,1))+i.substr(15)]=n[i])}(s.interpolateParams,m,u);var $=!0;for(var w in m.$observe("translate",(function(e){void 0===e?y(""):""===e&&$||(v.translate=e,E()),$=!1})),m)m.hasOwnProperty(w)&&"translateAttr"===w.substr(0,13)&&w.length>13&&b(w);if(m.$observe("translateDefault",(function(e){s.defaultText=e,E()})),h&&m.$observe("translateSanitizeStrategy",(function(e){s.sanitizeStrategy=r(e)(s.$parent),E()})),l&&m.$observe("translateValues",(function(e){e&&s.$parent.$watch((function(){angular.extend(s.interpolateParams,r(e)(s.$parent))}))})),p){var x=function(e){m.$observe(e,(function(t){var n=a(e.substr(14,1))+e.substr(15);s.interpolateParams[n]=t}))};for(var S in m)Object.prototype.hasOwnProperty.call(m,S)&&"translateValue"===S.substr(0,14)&&"translateValues"!==S&&x(S)}var E=function(){for(var e in v)v.hasOwnProperty(e)&&void 0!==v[e]&&A(e,v[e],s,s.interpolateParams,s.defaultText,s.translateNamespace)},A=function(t,n,r,i,o,a){n?(a&&"."===n.charAt(0)&&(n=a+n),e(n,i,c,o,r.translateLanguage,r.sanitizeStrategy).then((function(e){C(e,r,!0,t)}),(function(e){C(e,r,!1,t)}))):C(n,r,!1,t)},C=function(t,r,i,o){if(i||void 0!==r.defaultText&&(t=r.defaultText),"translate"===o){(i||!i&&!e.isKeepContent()&&void 0===m.translateKeepContent)&&g.empty().append(r.preText+t+r.postText);var a=e.isPostCompilingEnabled(),s=void 0!==u.translateCompile,l=s&&"false"!==u.translateCompile;(a&&!s||l)&&n(g.contents())(r)}else{var c=m.$attr[o];"data-"===c.substr(0,5)&&(c=c.substr(5)),c=c.substr(15),g.attr(c,t)}};(l||p||m.translateDefault)&&s.$watch("interpolateParams",E,!0),s.$on("translateLanguageChanged",E);var T=i.$on("$translateChangeSuccess",E);g.text().length?m.translate?y(m.translate):y(""):m.translate&&y(m.translate),E(),s.$on("$destroy",T)}}}}function i(e,t){"use strict";return{restrict:"A",priority:e.directivePriority(),link:function(n,r,i){var a,s,u,l={},c=function(){angular.forEach(a,(function(t,o){t&&(l[o]=!0,n.translateNamespace&&"."===t.charAt(0)&&(t=n.translateNamespace+t),e(t,s,i.translateInterpolation,void 0,n.translateLanguage,u).then((function(e){r.attr(o,e)}),(function(e){r.attr(o,e)})))})),angular.forEach(l,(function(e,t){a[t]||(r.removeAttr(t),delete l[t])}))};o(n,i.translateAttr,(function(e){a=e}),c),o(n,i.translateValues,(function(e){s=e}),c),o(n,i.translateSanitizeStrategy,(function(e){u=e}),c),i.translateValues&&n.$watch(i.translateValues,c,!0),n.$on("translateLanguageChanged",c);var h=t.$on("$translateChangeSuccess",c);c(),n.$on("$destroy",h)}}}function o(e,t,n,r){"use strict";t&&("::"===t.substr(0,2)?t=t.substr(2):e.$watch(t,(function(e){n(e),r()}),!0),n(e.$eval(t)))}function a(e,t){"use strict";return{compile:function(n){var r=function(t){t.addClass(e.cloakClassName())},i=function(t){t.removeClass(e.cloakClassName())};return r(n),function(n,o,a){var s=i.bind(this,o),u=r.bind(this,o);a.translateCloak&&a.translateCloak.length?(a.$observe("translateCloak",(function(t){e(t).then(s,u)})),t.$on("$translateChangeSuccess",(function(){e(a.translateCloak).then(s,u)}))):e.onReady(s)}}}}function s(){"use strict";return{restrict:"A",scope:!0,compile:function(){return{pre:function(e,t,n){e.translateNamespace=function e(t){return t.translateNamespace?t.translateNamespace:t.$parent?e(t.$parent):void 0}(e),e.translateNamespace&&"."===n.translateNamespace.charAt(0)?e.translateNamespace+=n.translateNamespace:e.translateNamespace=n.translateNamespace}}}}}function u(){"use strict";return{restrict:"A",scope:!0,compile:function(){return function(e,t,n){n.$observe("translateLanguage",(function(t){e.translateLanguage=t})),e.$watch("translateLanguage",(function(){e.$broadcast("translateLanguageChanged")}))}}}}function l(e,t){"use strict";var n=function(n,r,i,o){if(!angular.isObject(r)){var a=this||{__SCOPE_IS_NOT_AVAILABLE:"More info at https://github.com/angular/angular.js/commit/8863b9d04c722b278fa93c5d66ad1e578ad6eb1f"};r=e(r)(a)}return t.instant(n,r,i,o)};return t.statefulFilter()&&(n.$stateful=!0),n}function c(e){"use strict";return e("translations")}return e.$inject=["$translate"],t.$inject=["$STORAGE_KEY","$windowProvider","$translateSanitizationProvider","pascalprechtTranslateOverrider"],n.$inject=["$interpolate","$translateSanitization"],r.$inject=["$translate","$interpolate","$compile","$parse","$rootScope"],i.$inject=["$translate","$rootScope"],a.$inject=["$translate","$rootScope"],l.$inject=["$parse","$translate"],c.$inject=["$cacheFactory"],angular.module("pascalprecht.translate",["ng"]).run(e),e.displayName="runTranslate",angular.module("pascalprecht.translate").provider("$translateSanitization",(function(){"use strict";var e,t,n,r=null,i=!1,o=!1;(n={sanitize:function(e,t){return"text"===t&&(e=s(e)),e},escape:function(e,t){return"text"===t&&(e=a(e)),e},sanitizeParameters:function(e,t){return"params"===t&&(e=l(e,s)),e},escapeParameters:function(e,t){return"params"===t&&(e=l(e,a)),e},sce:function(e,t,n){return"text"===t?e=u(e):"params"===t&&"filter"!==n&&(e=l(e,a)),e},sceParameters:function(e,t){return"params"===t&&(e=l(e,u)),e}}).escaped=n.escapeParameters,this.addStrategy=function(e,t){return n[e]=t,this},this.removeStrategy=function(e){return delete n[e],this},this.useStrategy=function(e){return i=!0,r=e,this},this.$get=["$injector","$log",function(a,s){var u={};return a.has("$sanitize")&&(e=a.get("$sanitize")),a.has("$sce")&&(t=a.get("$sce")),{useStrategy:function(e){return function(t){e.useStrategy(t)}}(this),sanitize:function(e,t,l,c){return r||i||o||(s.warn("pascalprecht.translate.$translateSanitization: No sanitization strategy has been configured. This can have serious security implications. See http://angular-translate.github.io/docs/#/guide/19_security for details."),o=!0),l||null===l||(l=r),l?(c||(c="service"),function(e,t,r,i){return angular.forEach(i,(function(i){if(angular.isFunction(i))e=i(e,t,r);else if(angular.isFunction(n[i]))e=n[i](e,t,r);else{if(!angular.isString(n[i]))throw new Error("pascalprecht.translate.$translateSanitization: Unknown sanitization strategy: '"+i+"'");if(!u[n[i]])try{u[n[i]]=a.get(n[i])}catch(e){throw u[n[i]]=function(){},new Error("pascalprecht.translate.$translateSanitization: Unknown sanitization strategy: '"+i+"'")}e=u[n[i]](e,t,r)}})),e}(e,t,c,angular.isArray(l)?l:[l])):e}}}];var a=function(e){var t=angular.element("<div></div>");return t.text(e),t.html()},s=function(t){if(!e)throw new Error("pascalprecht.translate.$translateSanitization: Error cannot find $sanitize service. Either include the ngSanitize module (https://docs.angularjs.org/api/ngSanitize) or use a sanitization strategy which does not depend on $sanitize, such as 'escape'.");return e(t)},u=function(e){if(!t)throw new Error("pascalprecht.translate.$translateSanitization: Error cannot find $sce service.");return t.trustAsHtml(e)},l=function(e,t,n){if(angular.isDate(e))return e;if(angular.isObject(e)){var r=angular.isArray(e)?[]:{};if(n){if(n.indexOf(e)>-1)throw new Error("pascalprecht.translate.$translateSanitization: Error cannot interpolate parameter due recursive object")}else n=[];return n.push(e),angular.forEach(e,(function(e,i){angular.isFunction(e)||(r[i]=l(e,t,n))})),n.splice(-1,1),r}return angular.isNumber(e)||!0===e||!1===e||angular.isUndefined(e)||null===e?e:t(e)}})),angular.module("pascalprecht.translate").constant("pascalprechtTranslateOverrider",{}).provider("$translate",t),t.displayName="displayName",angular.module("pascalprecht.translate").factory("$translateDefaultInterpolation",n),n.displayName="$translateDefaultInterpolation",angular.module("pascalprecht.translate").constant("$STORAGE_KEY","NG_TRANSLATE_LANG_KEY"),angular.module("pascalprecht.translate").directive("translate",r),r.displayName="translateDirective",angular.module("pascalprecht.translate").directive("translateAttr",i),i.displayName="translateAttrDirective",angular.module("pascalprecht.translate").directive("translateCloak",a),a.displayName="translateCloakDirective",angular.module("pascalprecht.translate").directive("translateNamespace",s),s.displayName="translateNamespaceDirective",angular.module("pascalprecht.translate").directive("translateLanguage",u),u.displayName="translateLanguageDirective",angular.module("pascalprecht.translate").filter("translate",l),l.displayName="translateFilterFactory",angular.module("pascalprecht.translate").factory("$translationCache",c),c.displayName="$translationCache","pascalprecht.translate"}()}.apply(t,[]))||(e.exports=r)},101:function(e,t,n){n(524),e.exports=angular},11:function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,a(r.key),r)}}function a(e){var t=function(e,t){if("object"!=r(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=r(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==r(t)?t:t+""}n.r(t),n.d(t,"NamespacesListModel",(function(){return s}));var s=function(){return e=function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];i(this,e),this._namespaces=t,this.sort()},(t=[{key:"namespaces",get:function(){return this._namespaces}},{key:"sort",value:function(){this._namespaces.sort((function(e,t){var n=e.prefix.toUpperCase(),r=t.prefix.toUpperCase();return n<r?-1:n>r?1:0}))}}])&&o(e.prototype,t),n&&o(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,n}()},12:function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,s(r.key),r)}}function a(e,t,n){return t&&o(e.prototype,t),n&&o(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function s(e){var t=function(e,t){if("object"!=r(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=r(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==r(t)?t:t+""}n.r(t),n.d(t,"RepositoryInfoModel",(function(){return u})),n.d(t,"RepositoryConfigModel",(function(){return l})),n.d(t,"RepositoryParams",(function(){return c})),n.d(t,"RepositoryParam",(function(){return h})),n.d(t,"REPOSITORY_PARAMS",(function(){return p}));var u=function(){return a((function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};i(this,e),this._id=t.id,this._title=t.title,this._type=t.type,this._sesameType=t.sesameType,this._uri=t.uri,this._externalUrl=t.externalUrl,this._location=t.location,this._state=t.state,this._local=t.local,this._readable=t.readable,this._writable=t.writable,this._unsupported=t.unsupported}),[{key:"id",get:function(){return this._id},set:function(e){this._id=e}},{key:"title",get:function(){return this._title},set:function(e){this._title=e}},{key:"type",get:function(){return this._type},set:function(e){this._type=e}},{key:"sesameType",get:function(){return this._sesameType},set:function(e){this._sesameType=e}},{key:"uri",get:function(){return this._uri},set:function(e){this._uri=e}},{key:"externalUrl",get:function(){return this._externalUrl},set:function(e){this._externalUrl=e}},{key:"location",get:function(){return this._location},set:function(e){this._location=e}},{key:"state",get:function(){return this._state},set:function(e){this._state=e}},{key:"local",get:function(){return this._local},set:function(e){this._local=e}},{key:"readable",get:function(){return this._readable},set:function(e){this._readable=e}},{key:"writable",get:function(){return this._writable},set:function(e){this._writable=e}},{key:"unsupported",get:function(){return this._unsupported},set:function(e){this._unsupported=e}}])}(),l=function(){return a((function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};i(this,e),this._id=t.id,this._title=t.title,this._type=t.type,this._sesameType=t.sesameType,this._location=t.location,this._params=t.params}),[{key:"getParam",value:function(e){return this._params.getParam(e)}},{key:"getParamValue",value:function(e){return this._params.getParamValue(e)}},{key:"id",get:function(){return this._id},set:function(e){this._id=e}},{key:"title",get:function(){return this._title},set:function(e){this._title=e}},{key:"type",get:function(){return this._type},set:function(e){this._type=e}},{key:"sesameType",get:function(){return this._sesameType},set:function(e){this._sesameType=e}},{key:"location",get:function(){return this._location},set:function(e){this._location=e}},{key:"params",get:function(){return this._params},set:function(e){this._params=e}}])}(),c=function(){return a((function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};i(this,e),this._params=t}),[{key:"params",get:function(){return this._params},set:function(e){this._params=e}},{key:"addParam",value:function(e){this._params[e.name]=e}},{key:"getParam",value:function(e){return this._params[e]}},{key:"getParamValue",value:function(e){if(this._params[e])return this._params[e].getValue()}}])}(),h=function(){return a((function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};i(this,e),this._name=t.name,this._label=t.label,this._value=t.value}),[{key:"getValue",value:function(){return"true"===this._value||"false"!==this._value&&(isNaN(this._value)?this._value:Number(this._value))}},{key:"name",get:function(){return this._name},set:function(e){this._name=e}},{key:"label",get:function(){return this._label},set:function(e){this._label=e}},{key:"value",get:function(){return this._value},set:function(e){this._value=e}}])}(),p={queryTimeout:"queryTimeout",cacheSelectNodes:"cacheSelectNodes",rdfsSubClassReasoning:"rdfsSubClassReasoning",validationEnabled:"validationEnabled",ftsStringLiteralsIndex:"ftsStringLiteralsIndex",shapesGraph:"shapesGraph",parallelValidation:"parallelValidation",checkForInconsistencies:"checkForInconsistencies",performanceLogging:"performanceLogging",disableSameAs:"disableSameAs",ftsIrisIndex:"ftsIrisIndex",entityIndexSize:"entityIndexSize",dashDataShapes:"dashDataShapes",queryLimitResults:"queryLimitResults",throwQueryEvaluationExceptionOnTimeout:"throwQueryEvaluationExceptionOnTimeout",member:"member",storageFolder:"storageFolder",validationResultsLimitPerConstraint:"validationResultsLimitPerConstraint",enablePredicateList:"enablePredicateList",transactionalValidationLimit:"transactionalValidationLimit",ftsIndexes:"ftsIndexes",logValidationPlans:"logValidationPlans",imports:"imports",isShacl:"isShacl",inMemoryLiteralProperties:"inMemoryLiteralProperties",ruleset:"ruleset",readOnly:"readOnly",enableLiteralIndex:"enableLiteralIndex",enableFtsIndex:"enableFtsIndex",defaultNS:"defaultNS",enableContextIndex:"enableContextIndex",baseURL:"baseURL",logValidationViolations:"logValidationViolations",globalLogValidationExecution:"globalLogValidationExecution",entityIdSize:"entityIdSize",repositoryType:"repositoryType",eclipseRdf4jShaclExtensions:"eclipseRdf4jShaclExtensions",validationResultsLimitTotal:"validationResultsLimitTotal"}},13:function(e,t,n){"use strict";n.r(t),n.d(t,"ActiveOperationModel",(function(){return u}));var r=n(7);function i(e){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function o(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,s(r.key),r)}}function a(e,t,n){return t&&o(e.prototype,t),n&&o(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function s(e){var t=function(e,t){if("object"!=i(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=i(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==i(t)?t:t+""}var u=a((function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.operationGroup=void 0,this.runningOperationCount=0,this.status=r.OPERATION_STATUS.INFORMATION,this.type=void 0,this.titleLabelKey="",this.monitoringViewUrl=""}))},14:function(e,t,n){"use strict";n.r(t),n.d(t,"OPERATION_MONITORING_CONSTANTS",(function(){return r}));var r={IMPORT_MONITORING_URL:"import",QUERIES_MONITORING_URL:"monitor/queries",BACKUP_AND_RESTORE_MONITORING_URL:"monitor/backup-and-restore",CLUSTER_MONITORING_URL:"cluster"}},15:function(e,t){function n(e,t){return{get:function(t){return e.get(t)},set:function(t,n){e.set(t,n)},keys:n,remove:r,clearAll:function(){e.clearAll()},clearClassHieararchyState:function(){n().forEach((function(e){0!==e.indexOf("classHierarchy-")||e===t.CLASS_HIERARCHY_HIDE_PREFIXES||e.startsWith("classHierarchy-selectedGraph-")||r(e)}))}};function n(){return e.keys()}function r(t){e.remove(t)}}angular.module("graphdb.framework.utils.localstorageadapter",[]).factory("LocalStorageAdapter",n).value("LSKeys",{TABS_STATE:"tabs-state",TABS_STATE_CURRENT_ID:"tabs-state-currentid",TABS_STATE_MAXID:"tabs-state-maxid",VIEW_MODE:"viewMode",CLASS_HIERARCHY_HIDE_PREFIXES:"classHierarchy-hidePrefixes",CLASS_HIERARCHY_CURRENT_SLIDER_VALUE:"classHierarchy-currentSliderValue",CLASS_HIERARCHY_SWITCH_PREFIXES:"classHierarchy-switchPrefixes",CLASS_HIERARCHY_LAST_SELECTED_CLASS:"classHierarchy-lastSelectedClass",DOMAIN_RANGE_WENT_BACK:"domainRange-wentBack",DOMAIN_RANGE_COLLAPSE_EDGES:"domainRange-collapseEdges",HIDE_SIMILARITY_HELP:"hide-similarity-help",TUTORIAL_STATE:"tutorial-state",MENU_STATE:"menu-state",HIDE_GRAPH_CONFIG_HELP:"hide-graph-config-help",GRAPHS_VIZ:"graphs-viz",AUTOCOMPLETE_ENABLED:"autocomplete.enabled",RDF_SEARCH_TYPE:"rdf-search.search-type",RDF_SEARCH_INPUT:"rdf-search.search-input",RDF_SEARCH_EXPANDED_URI:"rdf-search.search-expanded-uri",RDF_RESOURCE_DESCRIPTION:"rdf-search.resource-description",PREFERRED_LANG:"preferred-language",WORKBENCH_SETTINGS:"workbench-settings",REPOSITORY_ID:"repository-id",REPOSITORY_LOCATION:"repository-location",JSONLD_EXPORT_SETTINGS:"jsonld-export-settings",IMPORT_VIEW:"import-view",SPARQL_LAST_REPO:"sparql-last-repo",TTYG:"ttyg",COOKIE_CONSENT:"cookie-consent",GUIDES_AUTOSTART:"guides-autostart"}),n.$inject=["localStorageService","LSKeys"]},16:function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,u(r.key),r)}}function a(e,t,n){return t&&o(e.prototype,t),n&&o(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function s(e,t,n){return(t=u(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function u(e){var t=function(e,t){if("object"!=r(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=r(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==r(t)?t:t+""}n.r(t),n.d(t,"GraphListOptions",(function(){return l})),n.d(t,"GraphOption",(function(){return c}));var l=function(){return a((function e(t){i(this,e),s(this,"_graphList",void 0),s(this,"_isEmpty",void 0),s(this,"_size",void 0),this._graphList=t||[],this._isEmpty=0===this.graphList.length,this._size=this.graphList.length}),[{key:"getGraphIds",value:function(){return this.graphList.map((function(e){return e.uri}))}},{key:"processGraphList",value:function(e){return this.graphList.map(e)}},{key:"size",get:function(){return this._size}},{key:"isEmpty",get:function(){return this._isEmpty}},{key:"graphList",get:function(){return this._graphList},set:function(e){this._graphList=e,this._isEmpty=0===this.graphList.length,this._size=this.graphList.length}},{key:"toJSON",value:function(){return this.graphList.map((function(e){return e.uri}))}}])}(),c=function(){return a((function e(t){i(this,e),s(this,"_uri",""),s(this,"_id",""),s(this,"_label",""),this._uri=t.uri||"",this._id=t.id||"",this._label=t.label||""}),[{key:"uri",get:function(){return this._uri},set:function(e){this._uri=e}},{key:"id",get:function(){return this._id},set:function(e){this._id=e}},{key:"label",get:function(){return this._label},set:function(e){this._label=e}}])}()},17:function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,o(r.key),r)}}function o(e){var t=function(e,t){if("object"!=r(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=r(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==r(t)?t:t+""}n.r(t),n.d(t,"DocumentationUrlResolver",(function(){return a}));var a=function(){return e=function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)},n=[{key:"getDocumentationUrl",value:function(e,t){if(t){var n=e.includes("-"),r=window.wbDevMode||n?"master":e;return"".concat("https://graphdb.ontotext.com/documentation/").concat(r,"/").concat(t)}}}],(t=null)&&i(e.prototype,t),n&&i(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,n}()},18:function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(e){"object"==typeof window&&(n=window)}e.exports=n},19:function(e,t,n){"use strict";n.r(t),n.d(t,"parseAuthorities",(function(){return s})),n.d(t,"createUniqueKey",(function(){return u})),n.d(t,"getRepoFromAuthority",(function(){return l}));var r=n(2),i=n(0);function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function a(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=o(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=o(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==o(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var s=function(e){for(var t=r.UserType.USER,n=a(a(a({},i.READ_REPO,{}),i.WRITE_REPO,{}),i.GRAPHQL,{}),o={},s=[],u=0;u<e.length;u++){var c=e[u];if(c===r.UserRole.ROLE_ADMIN)t=r.UserType.ADMIN;else if(c===r.UserRole.ROLE_REPO_MANAGER)t!==r.UserType.ADMIN&&(t=r.UserType.REPO_MANAGER);else if(c===r.UserRole.ROLE_USER)t=r.UserType.USER;else if(0===c.indexOf(i.READ_REPO_PREFIX)||0===c.indexOf(i.WRITE_REPO_PREFIX)||0===c.indexOf(i.GRAPHQL_PREFIX)){var h=l(c);if(h){var p=h.prefix,f=h.repo;o[f]=o[f]||{},p===i.READ_REPO_PREFIX?(n[i.READ_REPO][f]=!0,o[f].read=!0):p===i.WRITE_REPO_PREFIX?(n[i.WRITE_REPO][f]=!0,o[f].write=!0):p===i.GRAPHQL_PREFIX&&(n[i.GRAPHQL][f]=!0,o[f].graphql=!0)}}else 0===c.indexOf(i.CUSTOM_PREFIX)&&s.push(c.substring(i.CUSTOM_PREFIX.length))}return{userType:t,userTypeDescription:r.UserUtils.getUserRoleName(t),grantedAuthorities:n,repositories:o,customRoles:s}},u=function(e){return e.location?"".concat(e.id,"@").concat(e.location):e.id},l=function(e){return e.startsWith(i.READ_REPO_PREFIX)?{prefix:i.READ_REPO_PREFIX,repo:e.substring(i.READ_REPO_PREFIX.length)}:e.startsWith(i.WRITE_REPO_PREFIX)?{prefix:i.WRITE_REPO_PREFIX,repo:e.substring(i.WRITE_REPO_PREFIX.length)}:e.startsWith(i.GRAPHQL_PREFIX)?{prefix:i.GRAPHQL_PREFIX,repo:e.substring(i.GRAPHQL_PREFIX.length)}:null}},2:function(e,t,n){"use strict";n.r(t),n.d(t,"UserType",(function(){return i})),n.d(t,"UserRole",(function(){return r})),n.d(t,"UserUtils",(function(){return o}));var r=Object.freeze({ROLE_ADMIN:"ROLE_ADMIN",ROLE_USER:"ROLE_USER",ROLE_REPO_MANAGER:"ROLE_REPO_MANAGER",ROLE_MONITORING:"ROLE_MONITORING"}),i=Object.freeze({ADMIN:"admin",USER:"user",REPO_MANAGER:"repoManager"}),o={getUserRoleName:function(e){switch(e){case i.USER:return"User";case i.REPO_MANAGER:return"Repository manager";case i.ADMIN:return"Administrator";default:return"Unknown"}}}},20:function(e,t,n){"use strict";n.r(t),n.d(t,"QueryMode",(function(){return r}));var r={UPDATE:"update",QUERY:"query"}},21:function(e,t,n){"use strict";n.r(t),n.d(t,"GUIDE_ID",(function(){return cn})),n.d(t,"GUIDE_CURRENT_STEP_ID",(function(){return hn})),n.d(t,"GUIDE_STEP_HISTORY",(function(){return pn})),n.d(t,"GUIDE_PAUSE",(function(){return fn}));var r=n(4),i=function(e){return function(e){return!!e&&"object"==typeof e}(e)&&!function(e){var t=Object.prototype.toString.call(e);return"[object RegExp]"===t||"[object Date]"===t||function(e){return e.$$typeof===o}(e)}(e)};
7
+ /*! shepherd.js 11.2.0 */var o="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function a(e,t){return!1!==t.clone&&t.isMergeableObject(e)?h((n=e,Array.isArray(n)?[]:{}),e,t):e;var n}function s(e,t,n){return e.concat(t).map((function(e){return a(e,n)}))}function u(e){return Object.keys(e).concat(function(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter((function(t){return Object.propertyIsEnumerable.call(e,t)})):[]}(e))}function l(e,t){try{return t in e}catch(e){return!1}}function c(e,t,n){var r={};return n.isMergeableObject(e)&&u(e).forEach((function(t){r[t]=a(e[t],n)})),u(t).forEach((function(i){(function(e,t){return l(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))})(e,i)||(l(e,i)&&n.isMergeableObject(t[i])?r[i]=function(e,t){if(!t.customMerge)return h;var n=t.customMerge(e);return"function"==typeof n?n:h}(i,n)(e[i],t[i],n):r[i]=a(t[i],n))})),r}function h(e,t,n){(n=n||{}).arrayMerge=n.arrayMerge||s,n.isMergeableObject=n.isMergeableObject||i,n.cloneUnlessOtherwiseSpecified=a;var r=Array.isArray(t);return r===Array.isArray(e)?r?n.arrayMerge(e,t,n):c(e,t,n):a(t,n)}h.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce((function(e,n){return h(e,n,t)}),{})};var p=h;function f(e){return e instanceof HTMLElement}function d(e){return"function"==typeof e}function g(e){return"string"==typeof e}function m(e){return void 0===e}class v{on(e,t,n,r=!1){return m(this.bindings)&&(this.bindings={}),m(this.bindings[e])&&(this.bindings[e]=[]),this.bindings[e].push({handler:t,ctx:n,once:r}),this}once(e,t,n){return this.on(e,t,n,!0)}off(e,t){return m(this.bindings)||m(this.bindings[e])||(m(t)?delete this.bindings[e]:this.bindings[e].forEach((n,r)=>{n.handler===t&&this.bindings[e].splice(r,1)})),this}trigger(e,...t){return!m(this.bindings)&&this.bindings[e]&&this.bindings[e].forEach((n,r)=>{const{ctx:i,handler:o,once:a}=n,s=i||this;o.apply(s,t),a&&this.bindings[e].splice(r,1)}),this}}function y(e){const t=Object.getOwnPropertyNames(e.constructor.prototype);for(let n=0;n<t.length;n++){const r=t[n],i=e[r];"constructor"!==r&&"function"==typeof i&&(e[r]=i.bind(e))}return e}function b(e){const{event:t,selector:n}=e.options.advanceOn||{};if(!t)return console.error("advanceOn was defined, but no event name was passed.");{const r=function(e,t){return n=>{if(t.isOpen()){const r=t.el&&n.currentTarget===t.el;(!m(e)&&n.currentTarget.matches(e)||r)&&t.tour.next()}}}(n,e);let i;try{i=document.querySelector(n)}catch(e){}if(!m(n)&&!i)return console.error("No element was found for the selector supplied to advanceOn: "+n);i?(i.addEventListener(t,r),e.on("destroy",()=>i.removeEventListener(t,r))):(document.body.addEventListener(t,r,!0),e.on("destroy",()=>document.body.removeEventListener(t,r,!0)))}}function $(e){return g(e)&&""!==e?"-"!==e.charAt(e.length-1)?e+"-":e:""}function w(e){return null==e||(!e.element||!e.on)}function x(){let e=Date.now();return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,t=>{const n=(e+16*Math.random())%16|0;return e=Math.floor(e/16),("x"==t?n:3&n|8).toString(16)})}function S(){return(S=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function E(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}const A=Math.min,C=Math.max,T=Math.round,F=Math.floor,k=e=>({x:e,y:e}),R={left:"right",right:"left",bottom:"top",top:"bottom"},P={start:"end",end:"start"};function D(e,t,n){return C(e,A(t,n))}function O(e,t){return"function"==typeof e?e(t):e}function I(e){return e.split("-")[0]}function _(e){return e.split("-")[1]}function j(e){return"x"===e?"y":"x"}function L(e){return"y"===e?"height":"width"}function N(e){return["top","bottom"].includes(I(e))?"y":"x"}function M(e){return j(N(e))}function B(e){return e.replace(/start|end/g,e=>P[e])}function U(e){return e.replace(/left|right|bottom|top/g,e=>R[e])}function H(e){return"number"!=typeof e?function(e){return S({top:0,right:0,bottom:0,left:0},e)}(e):{top:e,right:e,bottom:e,left:e}}function V(e){return S({},e,{top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height})}const q=["mainAxis","crossAxis","fallbackPlacements","fallbackStrategy","fallbackAxisSideDirection","flipAlignment"],z=["mainAxis","crossAxis","limiter"];function K(e,t,n){let{reference:r,floating:i}=e;const o=N(t),a=M(t),s=L(a),u=I(t),l="y"===o,c=r.x+r.width/2-i.width/2,h=r.y+r.height/2-i.height/2,p=r[s]/2-i[s]/2;let f;switch(u){case"top":f={x:c,y:r.y-i.height};break;case"bottom":f={x:c,y:r.y+r.height};break;case"right":f={x:r.x+r.width,y:h};break;case"left":f={x:r.x-i.width,y:h};break;default:f={x:r.x,y:r.y}}switch(_(t)){case"start":f[a]-=p*(n&&l?-1:1);break;case"end":f[a]+=p*(n&&l?-1:1)}return f}async function G(e,t){var n;void 0===t&&(t={});const{x:r,y:i,platform:o,rects:a,elements:s,strategy:u}=e,{boundary:l="clippingAncestors",rootBoundary:c="viewport",elementContext:h="floating",altBoundary:p=!1,padding:f=0}=O(t,e),d=H(f),g=s[p?"floating"===h?"reference":"floating":h],m=V(await o.getClippingRect({element:null==(n=await(null==o.isElement?void 0:o.isElement(g)))||n?g:g.contextElement||await(null==o.getDocumentElement?void 0:o.getDocumentElement(s.floating)),boundary:l,rootBoundary:c,strategy:u})),v="floating"===h?S({},a.floating,{x:r,y:i}):a.reference,y=await(null==o.getOffsetParent?void 0:o.getOffsetParent(s.floating)),b=await(null==o.isElement?void 0:o.isElement(y))&&await(null==o.getScale?void 0:o.getScale(y))||{x:1,y:1},$=V(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({rect:v,offsetParent:y,strategy:u}):v);return{top:(m.top-$.top+d.top)/b.y,bottom:($.bottom-m.bottom+d.bottom)/b.y,left:(m.left-$.left+d.left)/b.x,right:($.right-m.right+d.right)/b.x}}const W=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var n;const{placement:r,middlewareData:i,rects:o,initialPlacement:a,platform:s,elements:u}=t,l=O(e,t),{mainAxis:c=!0,crossAxis:h=!0,fallbackPlacements:p,fallbackStrategy:f="bestFit",fallbackAxisSideDirection:d="none",flipAlignment:g=!0}=l,m=E(l,q),v=I(r),y=I(a)===a,b=await(null==s.isRTL?void 0:s.isRTL(u.floating)),$=p||(y||!g?[U(a)]:function(e){const t=U(e);return[B(e),t,B(t)]}(a));p||"none"===d||$.push(...function(e,t,n,r){const i=_(e);let o=function(e,t,n){const r=["left","right"],i=["right","left"],o=["top","bottom"],a=["bottom","top"];switch(e){case"top":case"bottom":return n?t?i:r:t?r:i;case"left":case"right":return t?o:a;default:return[]}}(I(e),"start"===n,r);return i&&(o=o.map(e=>e+"-"+i),t&&(o=o.concat(o.map(B)))),o}(a,g,d,b));const w=[a,...$],x=await G(t,m),S=[];let A=(null==(n=i.flip)?void 0:n.overflows)||[];if(c&&S.push(x[v]),h){const e=function(e,t,n){void 0===n&&(n=!1);const r=_(e),i=M(e),o=L(i);let a="x"===i?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[o]>t.floating[o]&&(a=U(a)),[a,U(a)]}(r,o,b);S.push(x[e[0]],x[e[1]])}if(A=[...A,{placement:r,overflows:S}],!S.every(e=>e<=0)){var C,T;const e=((null==(C=i.flip)?void 0:C.index)||0)+1,t=w[e];if(t)return{data:{index:e,overflows:A},reset:{placement:t}};let n=null==(T=A.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0])?void 0:T.placement;if(!n)switch(f){case"bestFit":{var F;const e=null==(F=A.map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0])?void 0:F[0];e&&(n=e);break}case"initialPlacement":n=a}if(r!==n)return{reset:{placement:n}}}return{}}}},Y=function(e){return void 0===e&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:i,rects:o,middlewareData:a}=t,{offset:s=0,mainAxis:u=!0,crossAxis:l=!0}=O(e,t),c={x:n,y:r},h=N(i),p=j(h);let f=c[p],d=c[h];const g=O(s,t),m="number"==typeof g?{mainAxis:g,crossAxis:0}:S({mainAxis:0,crossAxis:0},g);if(u){const e="y"===p?"height":"width",t=o.reference[p]-o.floating[e]+m.mainAxis,n=o.reference[p]+o.reference[e]-m.mainAxis;f<t?f=t:f>n&&(f=n)}if(l){var v,y;const e="y"===p?"width":"height",t=["top","left"].includes(I(i)),n=o.reference[h]-o.floating[e]+(t&&(null==(v=a.offset)?void 0:v[h])||0)+(t?0:m.crossAxis),r=o.reference[h]+o.reference[e]+(t?0:(null==(y=a.offset)?void 0:y[h])||0)-(t?m.crossAxis:0);d<n?d=n:d>r&&(d=r)}return{[p]:f,[h]:d}}}};function X(e){return Z(e)?(e.nodeName||"").toLowerCase():"#document"}function Q(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function J(e){var t;return null==(t=(Z(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function Z(e){return e instanceof Node||e instanceof Q(e).Node}function ee(e){return e instanceof Element||e instanceof Q(e).Element}function te(e){return e instanceof HTMLElement||e instanceof Q(e).HTMLElement}function ne(e){return"undefined"!=typeof ShadowRoot&&(e instanceof ShadowRoot||e instanceof Q(e).ShadowRoot)}function re(e){const{overflow:t,overflowX:n,overflowY:r,display:i}=ue(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(i)}function ie(e){return["table","td","th"].includes(X(e))}function oe(e){const t=ae(),n=ue(e);return"none"!==n.transform||"none"!==n.perspective||!!n.containerType&&"normal"!==n.containerType||!t&&!!n.backdropFilter&&"none"!==n.backdropFilter||!t&&!!n.filter&&"none"!==n.filter||["transform","perspective","filter"].some(e=>(n.willChange||"").includes(e))||["paint","layout","strict","content"].some(e=>(n.contain||"").includes(e))}function ae(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function se(e){return["html","body","#document"].includes(X(e))}function ue(e){return Q(e).getComputedStyle(e)}function le(e){return ee(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function ce(e){if("html"===X(e))return e;const t=e.assignedSlot||e.parentNode||ne(e)&&e.host||J(e);return ne(t)?t.host:t}function he(e,t){var n;void 0===t&&(t=[]);const r=function e(t){const n=ce(t);return se(n)?t.ownerDocument?t.ownerDocument.body:t.body:te(n)&&re(n)?n:e(n)}(e),i=r===(null==(n=e.ownerDocument)?void 0:n.body),o=Q(r);return i?t.concat(o,o.visualViewport||[],re(r)?r:[]):t.concat(r,he(r))}function pe(e){const t=ue(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const i=te(e),o=i?e.offsetWidth:n,a=i?e.offsetHeight:r,s=T(n)!==o||T(r)!==a;return s&&(n=o,r=a),{width:n,height:r,$:s}}function fe(e){return ee(e)?e:e.contextElement}function de(e){const t=fe(e);if(!te(t))return k(1);const n=t.getBoundingClientRect(),{width:r,height:i,$:o}=pe(t);let a=(o?T(n.width):n.width)/r,s=(o?T(n.height):n.height)/i;return a&&Number.isFinite(a)||(a=1),s&&Number.isFinite(s)||(s=1),{x:a,y:s}}const ge=k(0);function me(e){const t=Q(e);return ae()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:ge}function ve(e,t,n,r){void 0===t&&(t=!1),void 0===n&&(n=!1);const i=e.getBoundingClientRect(),o=fe(e);let a=k(1);t&&(r?ee(r)&&(a=de(r)):a=de(e));const s=function(e,t,n){return void 0===t&&(t=!1),!(!n||t&&n!==Q(e))&&t}(o,n,r)?me(o):k(0);let u=(i.left+s.x)/a.x,l=(i.top+s.y)/a.y,c=i.width/a.x,h=i.height/a.y;if(o){const e=Q(o),t=r&&ee(r)?Q(r):r;let n=e.frameElement;for(;n&&r&&t!==e;){const e=de(n),t=n.getBoundingClientRect(),r=ue(n),i=t.left+(n.clientLeft+parseFloat(r.paddingLeft))*e.x,o=t.top+(n.clientTop+parseFloat(r.paddingTop))*e.y;u*=e.x,l*=e.y,c*=e.x,h*=e.y,u+=i,l+=o,n=Q(n).frameElement}}return V({width:c,height:h,x:u,y:l})}function ye(e){return ve(J(e)).left+le(e).scrollLeft}function be(e,t,n){let r;if("viewport"===t)r=function(e,t){const n=Q(e),r=J(e),i=n.visualViewport;let o=r.clientWidth,a=r.clientHeight,s=0,u=0;if(i){o=i.width,a=i.height;const e=ae();(!e||e&&"fixed"===t)&&(s=i.offsetLeft,u=i.offsetTop)}return{width:o,height:a,x:s,y:u}}(e,n);else if("document"===t)r=function(e){const t=J(e),n=le(e),r=e.ownerDocument.body,i=C(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),o=C(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let a=-n.scrollLeft+ye(e);const s=-n.scrollTop;return"rtl"===ue(r).direction&&(a+=C(t.clientWidth,r.clientWidth)-i),{width:i,height:o,x:a,y:s}}(J(e));else if(ee(t))r=function(e,t){const n=ve(e,!0,"fixed"===t),r=n.top+e.clientTop,i=n.left+e.clientLeft,o=te(e)?de(e):k(1);return{width:e.clientWidth*o.x,height:e.clientHeight*o.y,x:i*o.x,y:r*o.y}}(t,n);else{const n=me(e);r=S({},t,{x:t.x-n.x,y:t.y-n.y})}return V(r)}function $e(e,t){const n=ce(e);return!(n===t||!ee(n)||se(n))&&("fixed"===ue(n).position||$e(n,t))}function we(e,t,n){const r=te(t),i=J(t),o="fixed"===n,a=ve(e,!0,o,t);let s={scrollLeft:0,scrollTop:0};const u=k(0);if(r||!r&&!o)if(("body"!==X(t)||re(i))&&(s=le(t)),r){const e=ve(t,!0,o,t);u.x=e.x+t.clientLeft,u.y=e.y+t.clientTop}else i&&(u.x=ye(i));return{x:a.left+s.scrollLeft-u.x,y:a.top+s.scrollTop-u.y,width:a.width,height:a.height}}function xe(e,t){return te(e)&&"fixed"!==ue(e).position?t?t(e):e.offsetParent:null}function Se(e,t){const n=Q(e);if(!te(e))return n;let r=xe(e,t);for(;r&&ie(r)&&"static"===ue(r).position;)r=xe(r,t);return r&&("html"===X(r)||"body"===X(r)&&"static"===ue(r).position&&!oe(r))?n:r||function(e){let t=ce(e);for(;te(t)&&!se(t);){if(oe(t))return t;t=ce(t)}return null}(e)||n}const Ee={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{rect:t,offsetParent:n,strategy:r}=e;const i=te(n),o=J(n);if(n===o)return t;let a={scrollLeft:0,scrollTop:0},s=k(1);const u=k(0);if((i||!i&&"fixed"!==r)&&(("body"!==X(n)||re(o))&&(a=le(n)),te(n))){const e=ve(n);s=de(n),u.x=e.x+n.clientLeft,u.y=e.y+n.clientTop}return{width:t.width*s.x,height:t.height*s.y,x:t.x*s.x-a.scrollLeft*s.x+u.x,y:t.y*s.y-a.scrollTop*s.y+u.y}},getDocumentElement:J,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e;const o=[..."clippingAncestors"===n?function(e,t){const n=t.get(e);if(n)return n;let r=he(e).filter(e=>ee(e)&&"body"!==X(e)),i=null;const o="fixed"===ue(e).position;let a=o?ce(e):e;for(;ee(a)&&!se(a);){const t=ue(a),n=oe(a);n||"fixed"!==t.position||(i=null);(o?!n&&!i:!n&&"static"===t.position&&!!i&&["absolute","fixed"].includes(i.position)||re(a)&&!n&&$e(e,a))?r=r.filter(e=>e!==a):i=t,a=ce(a)}return t.set(e,r),r}(t,this._c):[].concat(n),r],a=o[0],s=o.reduce((e,n)=>{const r=be(t,n,i);return e.top=C(r.top,e.top),e.right=A(r.right,e.right),e.bottom=A(r.bottom,e.bottom),e.left=C(r.left,e.left),e},be(t,a,i));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}},getOffsetParent:Se,getElementRects:async function(e){let{reference:t,floating:n,strategy:r}=e;const i=this.getOffsetParent||Se,o=this.getDimensions;return{reference:we(t,await i(n),r),floating:S({x:0,y:0},await o(n))}},getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){return pe(e)},getScale:de,isElement:ee,isRTL:function(e){return"rtl"===ue(e).direction}};function Ae(e,t,n,r){void 0===r&&(r={});const{ancestorScroll:i=!0,ancestorResize:o=!0,elementResize:a="function"==typeof ResizeObserver,layoutShift:s="function"==typeof IntersectionObserver,animationFrame:u=!1}=r,l=fe(e),c=i||o?[...l?he(l):[],...he(t)]:[];c.forEach(e=>{i&&e.addEventListener("scroll",n,{passive:!0}),o&&e.addEventListener("resize",n)});const h=l&&s?function(e,t){let n,r=null;const i=J(e);function o(){clearTimeout(n),r&&r.disconnect(),r=null}return function a(s,u){void 0===s&&(s=!1),void 0===u&&(u=1),o();const{left:l,top:c,width:h,height:p}=e.getBoundingClientRect();if(s||t(),!h||!p)return;const f={rootMargin:-F(c)+"px "+-F(i.clientWidth-(l+h))+"px "+-F(i.clientHeight-(c+p))+"px "+-F(l)+"px",threshold:C(0,A(1,u))||1};let d=!0;function g(e){const t=e[0].intersectionRatio;if(t!==u){if(!d)return a();t?a(!1,t):n=setTimeout(()=>{a(!1,1e-7)},100)}d=!1}try{r=new IntersectionObserver(g,S({},f,{root:i.ownerDocument}))}catch(e){r=new IntersectionObserver(g,f)}r.observe(e)}(!0),o}(l,n):null;let p,f=-1,d=null;a&&(d=new ResizeObserver(e=>{let[r]=e;r&&r.target===l&&d&&(d.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{d&&d.observe(t)})),n()}),l&&!u&&d.observe(l),d.observe(t));let g=u?ve(e):null;return u&&function t(){const r=ve(e);!g||r.x===g.x&&r.y===g.y&&r.width===g.width&&r.height===g.height||n();g=r,p=requestAnimationFrame(t)}(),n(),()=>{c.forEach(e=>{i&&e.removeEventListener("scroll",n),o&&e.removeEventListener("resize",n)}),h&&h(),d&&d.disconnect(),d=null,u&&cancelAnimationFrame(p)}}const Ce=(e,t,n)=>{const r=new Map,i=S({platform:Ee},n),o=S({},i.platform,{_c:r});return(async(e,t,n)=>{const{placement:r="bottom",strategy:i="absolute",middleware:o=[],platform:a}=n,s=o.filter(Boolean),u=await(null==a.isRTL?void 0:a.isRTL(t));let l=await a.getElementRects({reference:e,floating:t,strategy:i}),{x:c,y:h}=K(l,r,u),p=r,f={},d=0;for(let n=0;n<s.length;n++){const{name:o,fn:g}=s[n],{x:m,y:v,data:y,reset:b}=await g({x:c,y:h,initialPlacement:r,placement:p,strategy:i,middlewareData:f,rects:l,platform:a,elements:{reference:e,floating:t}});c=null!=m?m:c,h=null!=v?v:h,f=S({},f,{[o]:S({},f[o],y)}),b&&d<=50&&(d++,"object"==typeof b&&(b.placement&&(p=b.placement),b.rects&&(l=!0===b.rects?await a.getElementRects({reference:e,floating:t,strategy:i}):b.rects),({x:c,y:h}=K(l,p,u))),n=-1)}return{x:c,y:h,placement:p,strategy:i,middlewareData:f}})(e,t,S({},i,{platform:o}))};function Te(e){e.cleanup&&e.cleanup();const t=e._getResolvedAttachToOptions();let n=t.element;const r=function(e,t){const n={strategy:"absolute",middleware:[]},r=function(e){if(e.options.arrow&&e.el)return e.el.querySelector(".shepherd-arrow");return!1}(t);w(e)||(n.middleware.push(W(),function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:i}=t,o=O(e,t),{mainAxis:a=!0,crossAxis:s=!1,limiter:u={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}}}=o,l=E(o,z),c={x:n,y:r},h=await G(t,l),p=N(I(i)),f=j(p);let d=c[f],g=c[p];if(a){const e="y"===f?"bottom":"right";d=D(d+h["y"===f?"top":"left"],d,d-h[e])}if(s){const e="y"===p?"bottom":"right";g=D(g+h["y"===p?"top":"left"],g,g-h[e])}const m=u.fn(S({},t,{[f]:d,[p]:g}));return S({},m,{data:{x:m.x-n,y:m.y-r}})}}}({limiter:Y(),crossAxis:!0})),r&&n.middleware.push((e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:i,rects:o,platform:a,elements:s}=t,{element:u,padding:l=0}=O(e,t)||{};if(null==u)return{};const c=H(l),h={x:n,y:r},p=M(i),f=L(p),d=await a.getDimensions(u),g="y"===p,m=g?"top":"left",v=g?"bottom":"right",y=g?"clientHeight":"clientWidth",b=o.reference[f]+o.reference[p]-h[p]-o.floating[f],$=h[p]-o.reference[p],w=await(null==a.getOffsetParent?void 0:a.getOffsetParent(u));let x=w?w[y]:0;x&&await(null==a.isElement?void 0:a.isElement(w))||(x=s.floating[y]||o.floating[f]);const S=b/2-$/2,E=x/2-d[f]/2-1,C=A(c[m],E),T=A(c[v],E),F=C,k=x-d[f]-T,R=x/2-d[f]/2+S,P=D(F,R,k),I=null!=_(i)&&R!=P&&o.reference[f]/2-(R<F?C:T)-d[f]/2<0?R<F?F-R:k-R:0;return{[p]:h[p]-I,data:{[p]:P,centerOffset:R-P+I}}}}))({element:r})),n.placement=e.on);return p(t.options.floatingUIOptions||{},n)}(t,e),i=w(t);if(i){n=document.body;e.shepherdElementComponent.getElement().classList.add("shepherd-centered")}return e.cleanup=Ae(n,e.el,()=>{e.el?function(e,t,n,r){Ce(e,t.el,n).then(function(e,t){return({x:n,y:r,placement:i,middlewareData:o})=>e.el?(t?Object.assign(e.el.style,{position:"fixed",left:"50%",top:"50%",transform:"translate(-50%, -50%)"}):Object.assign(e.el.style,{position:"absolute",left:n+"px",top:r+"px"}),e.el.dataset.popperPlacement=i,function(e,t){const n=e.querySelector(".shepherd-arrow");if(n&&t.arrow){const{x:e,y:r}=t.arrow;Object.assign(n.style,{left:null!=e?e+"px":"",top:null!=r?r+"px":""})}}(e.el,o),e):e}(t,r)).then(e=>new Promise(t=>{setTimeout(()=>t(e),300)})).then(e=>{e&&e.el&&e.el.focus({preventScroll:!0})})}(n,e,r,i):e.cleanup()}),e.target=t.element,r}function Fe(){}function ke(e,t){for(const n in t)e[n]=t[n];return e}function Re(e){return e()}function Pe(){return Object.create(null)}function De(e){e.forEach(Re)}function Oe(e){return"function"==typeof e}function Ie(e,t){return e!=e?t==t:e!==t||e&&"object"==typeof e||"function"==typeof e}function _e(e,t){e.appendChild(t)}function je(e,t,n){e.insertBefore(t,n||null)}function Le(e){e.parentNode&&e.parentNode.removeChild(e)}function Ne(e){return document.createElement(e)}function Me(e){return document.createElementNS("http://www.w3.org/2000/svg",e)}function Be(e){return document.createTextNode(e)}function Ue(){return Be(" ")}function He(e,t,n,r){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n,r)}function Ve(e,t,n){null==n?e.removeAttribute(t):e.getAttribute(t)!==n&&e.setAttribute(t,n)}const qe=["width","height"];function ze(e,t){const n=Object.getOwnPropertyDescriptors(e.__proto__);for(const r in t)null==t[r]?e.removeAttribute(r):"style"===r?e.style.cssText=t[r]:"__value"===r?e.value=e[r]=t[r]:n[r]&&n[r].set&&-1===qe.indexOf(r)?e[r]=t[r]:Ve(e,r,t[r])}function Ke(e,t,n){e.classList[n?"add":"remove"](t)}let Ge;function We(e){Ge=e}function Ye(){if(!Ge)throw new Error("Function called outside component initialization");return Ge}function Xe(e){Ye().$$.after_update.push(e)}const Qe=[],Je=[];let Ze=[];const et=[],tt=Promise.resolve();let nt=!1;function rt(e){Ze.push(e)}const it=new Set;let ot=0;function at(){if(0!==ot)return;const e=Ge;do{try{for(;ot<Qe.length;){const e=Qe[ot];ot++,We(e),st(e.$$)}}catch(e){throw Qe.length=0,ot=0,e}for(We(null),Qe.length=0,ot=0;Je.length;)Je.pop()();for(let e=0;e<Ze.length;e+=1){const t=Ze[e];it.has(t)||(it.add(t),t())}Ze.length=0}while(Qe.length);for(;et.length;)et.pop()();nt=!1,it.clear(),We(e)}function st(e){if(null!==e.fragment){e.update(),De(e.before_update);const t=e.dirty;e.dirty=[-1],e.fragment&&e.fragment.p(e.ctx,t),e.after_update.forEach(rt)}}const ut=new Set;let lt;function ct(){lt={r:0,c:[],p:lt}}function ht(){lt.r||De(lt.c),lt=lt.p}function pt(e,t){e&&e.i&&(ut.delete(e),e.i(t))}function ft(e,t,n,r){if(e&&e.o){if(ut.has(e))return;ut.add(e),lt.c.push(()=>{ut.delete(e),r&&(n&&e.d(1),r())}),e.o(t)}else r&&r()}function dt(e){e&&e.c()}function gt(e,t,n,r){const{fragment:i,after_update:o}=e.$$;i&&i.m(t,n),r||rt(()=>{const t=e.$$.on_mount.map(Re).filter(Oe);e.$$.on_destroy?e.$$.on_destroy.push(...t):De(t),e.$$.on_mount=[]}),o.forEach(rt)}function mt(e,t){const n=e.$$;null!==n.fragment&&(!function(e){const t=[],n=[];Ze.forEach(r=>-1===e.indexOf(r)?t.push(r):n.push(r)),n.forEach(e=>e()),Ze=t}(n.after_update),De(n.on_destroy),n.fragment&&n.fragment.d(t),n.on_destroy=n.fragment=null,n.ctx=[])}function vt(e,t){-1===e.$$.dirty[0]&&(Qe.push(e),nt||(nt=!0,tt.then(at)),e.$$.dirty.fill(0)),e.$$.dirty[t/31|0]|=1<<t%31}function yt(e,t,n,r,i,o,a,s=[-1]){const u=Ge;We(e);const l=e.$$={fragment:null,ctx:[],props:o,update:Fe,not_equal:i,bound:Pe(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(t.context||(u?u.$$.context:[])),callbacks:Pe(),dirty:s,skip_bound:!1,root:t.target||u.$$.root};a&&a(l.root);let c=!1;if(l.ctx=n?n(e,t.props||{},(t,n,...r)=>{const o=r.length?r[0]:n;return l.ctx&&i(l.ctx[t],l.ctx[t]=o)&&(!l.skip_bound&&l.bound[t]&&l.bound[t](o),c&&vt(e,t)),n}):[],l.update(),c=!0,De(l.before_update),l.fragment=!!r&&r(l.ctx),t.target){if(t.hydrate){const e=(h=t.target,Array.from(h.childNodes));l.fragment&&l.fragment.l(e),e.forEach(Le)}else l.fragment&&l.fragment.c();t.intro&&pt(e.$$.fragment),gt(e,t.target,t.anchor,t.customElement),at()}var h;We(u)}class bt{$destroy(){mt(this,1),this.$destroy=Fe}$on(e,t){if(!Oe(t))return Fe;const n=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return n.push(t),()=>{const e=n.indexOf(t);-1!==e&&n.splice(e,1)}}$set(e){var t;this.$$set&&(t=e,0!==Object.keys(t).length)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}}function $t(e){let t,n,r,i,o;return{c(){t=Ne("button"),Ve(t,"aria-label",n=e[3]?e[3]:null),Ve(t,"class",r=`${e[1]||""} shepherd-button ${e[4]?"shepherd-button-secondary":""}`),t.disabled=e[2],Ve(t,"tabindex","0")},m(n,r){je(n,t,r),t.innerHTML=e[5],i||(o=He(t,"click",(function(){Oe(e[0])&&e[0].apply(this,arguments)})),i=!0)},p(i,[o]){e=i,32&o&&(t.innerHTML=e[5]),8&o&&n!==(n=e[3]?e[3]:null)&&Ve(t,"aria-label",n),18&o&&r!==(r=`${e[1]||""} shepherd-button ${e[4]?"shepherd-button-secondary":""}`)&&Ve(t,"class",r),4&o&&(t.disabled=e[2])},i:Fe,o:Fe,d(e){e&&Le(t),i=!1,o()}}}function wt(e,t,n){let r,i,o,a,s,u,{config:l,step:c}=t;function h(e){return d(e)?e.call(c):e}return e.$$set=e=>{"config"in e&&n(6,l=e.config),"step"in e&&n(7,c=e.step)},e.$$.update=()=>{192&e.$$.dirty&&(n(0,r=l.action?l.action.bind(c.tour):null),n(1,i=l.classes),n(2,o=!!l.disabled&&h(l.disabled)),n(3,a=l.label?h(l.label):null),n(4,s=l.secondary),n(5,u=l.text?h(l.text):null))},[r,i,o,a,s,u,l,c]}class xt extends bt{constructor(e){super(),yt(this,e,wt,$t,Ie,{config:6,step:7})}}function St(e,t,n){const r=e.slice();return r[2]=t[n],r}function Et(e){let t,n,r=e[1],i=[];for(let t=0;t<r.length;t+=1)i[t]=At(St(e,r,t));const o=e=>ft(i[e],1,1,()=>{i[e]=null});return{c(){for(let e=0;e<i.length;e+=1)i[e].c();t=Be("")},m(e,r){for(let t=0;t<i.length;t+=1)i[t]&&i[t].m(e,r);je(e,t,r),n=!0},p(e,n){if(3&n){let a;for(r=e[1],a=0;a<r.length;a+=1){const o=St(e,r,a);i[a]?(i[a].p(o,n),pt(i[a],1)):(i[a]=At(o),i[a].c(),pt(i[a],1),i[a].m(t.parentNode,t))}for(ct(),a=r.length;a<i.length;a+=1)o(a);ht()}},i(e){if(!n){for(let e=0;e<r.length;e+=1)pt(i[e]);n=!0}},o(e){i=i.filter(Boolean);for(let e=0;e<i.length;e+=1)ft(i[e]);n=!1},d(e){!function(e,t){for(let n=0;n<e.length;n+=1)e[n]&&e[n].d(t)}(i,e),e&&Le(t)}}}function At(e){let t,n;return t=new xt({props:{config:e[2],step:e[0]}}),{c(){dt(t.$$.fragment)},m(e,r){gt(t,e,r),n=!0},p(e,n){const r={};2&n&&(r.config=e[2]),1&n&&(r.step=e[0]),t.$set(r)},i(e){n||(pt(t.$$.fragment,e),n=!0)},o(e){ft(t.$$.fragment,e),n=!1},d(e){mt(t,e)}}}function Ct(e){let t,n,r=e[1]&&Et(e);return{c(){t=Ne("footer"),r&&r.c(),Ve(t,"class","shepherd-footer")},m(e,i){je(e,t,i),r&&r.m(t,null),n=!0},p(e,[n]){e[1]?r?(r.p(e,n),2&n&&pt(r,1)):(r=Et(e),r.c(),pt(r,1),r.m(t,null)):r&&(ct(),ft(r,1,1,()=>{r=null}),ht())},i(e){n||(pt(r),n=!0)},o(e){ft(r),n=!1},d(e){e&&Le(t),r&&r.d()}}}function Tt(e,t,n){let r,{step:i}=t;return e.$$set=e=>{"step"in e&&n(0,i=e.step)},e.$$.update=()=>{1&e.$$.dirty&&n(1,r=i.options.buttons)},[i,r]}class Ft extends bt{constructor(e){super(),yt(this,e,Tt,Ct,Ie,{step:0})}}function kt(e){let t,n,r,i,o;return{c(){t=Ne("button"),n=Ne("span"),n.textContent="×",Ve(n,"aria-hidden","true"),Ve(t,"aria-label",r=e[0].label?e[0].label:"Close Tour"),Ve(t,"class","shepherd-cancel-icon"),Ve(t,"type","button")},m(r,a){je(r,t,a),_e(t,n),i||(o=He(t,"click",e[1]),i=!0)},p(e,[n]){1&n&&r!==(r=e[0].label?e[0].label:"Close Tour")&&Ve(t,"aria-label",r)},i:Fe,o:Fe,d(e){e&&Le(t),i=!1,o()}}}function Rt(e,t,n){let{cancelIcon:r,step:i}=t;return e.$$set=e=>{"cancelIcon"in e&&n(0,r=e.cancelIcon),"step"in e&&n(2,i=e.step)},[r,e=>{e.preventDefault(),i.cancel()},i]}class Pt extends bt{constructor(e){super(),yt(this,e,Rt,kt,Ie,{cancelIcon:0,step:2})}}function Dt(e){let t;return{c(){t=Ne("h3"),Ve(t,"id",e[1]),Ve(t,"class","shepherd-title")},m(n,r){je(n,t,r),e[3](t)},p(e,[n]){2&n&&Ve(t,"id",e[1])},i:Fe,o:Fe,d(n){n&&Le(t),e[3](null)}}}function Ot(e,t,n){let{labelId:r,element:i,title:o}=t;return Xe(()=>{d(o)&&n(2,o=o()),n(0,i.innerHTML=o,i)}),e.$$set=e=>{"labelId"in e&&n(1,r=e.labelId),"element"in e&&n(0,i=e.element),"title"in e&&n(2,o=e.title)},[i,r,o,function(e){Je[e?"unshift":"push"](()=>{i=e,n(0,i)})}]}class It extends bt{constructor(e){super(),yt(this,e,Ot,Dt,Ie,{labelId:1,element:0,title:2})}}function _t(e){let t,n;return t=new It({props:{labelId:e[0],title:e[2]}}),{c(){dt(t.$$.fragment)},m(e,r){gt(t,e,r),n=!0},p(e,n){const r={};1&n&&(r.labelId=e[0]),4&n&&(r.title=e[2]),t.$set(r)},i(e){n||(pt(t.$$.fragment,e),n=!0)},o(e){ft(t.$$.fragment,e),n=!1},d(e){mt(t,e)}}}function jt(e){let t,n;return t=new Pt({props:{cancelIcon:e[3],step:e[1]}}),{c(){dt(t.$$.fragment)},m(e,r){gt(t,e,r),n=!0},p(e,n){const r={};8&n&&(r.cancelIcon=e[3]),2&n&&(r.step=e[1]),t.$set(r)},i(e){n||(pt(t.$$.fragment,e),n=!0)},o(e){ft(t.$$.fragment,e),n=!1},d(e){mt(t,e)}}}function Lt(e){let t,n,r,i=e[2]&&_t(e),o=e[3]&&e[3].enabled&&jt(e);return{c(){t=Ne("header"),i&&i.c(),n=Ue(),o&&o.c(),Ve(t,"class","shepherd-header")},m(e,a){je(e,t,a),i&&i.m(t,null),_e(t,n),o&&o.m(t,null),r=!0},p(e,[r]){e[2]?i?(i.p(e,r),4&r&&pt(i,1)):(i=_t(e),i.c(),pt(i,1),i.m(t,n)):i&&(ct(),ft(i,1,1,()=>{i=null}),ht()),e[3]&&e[3].enabled?o?(o.p(e,r),8&r&&pt(o,1)):(o=jt(e),o.c(),pt(o,1),o.m(t,null)):o&&(ct(),ft(o,1,1,()=>{o=null}),ht())},i(e){r||(pt(i),pt(o),r=!0)},o(e){ft(i),ft(o),r=!1},d(e){e&&Le(t),i&&i.d(),o&&o.d()}}}function Nt(e,t,n){let r,i,{labelId:o,step:a}=t;return e.$$set=e=>{"labelId"in e&&n(0,o=e.labelId),"step"in e&&n(1,a=e.step)},e.$$.update=()=>{2&e.$$.dirty&&(n(2,r=a.options.title),n(3,i=a.options.cancelIcon))},[o,a,r,i]}class Mt extends bt{constructor(e){super(),yt(this,e,Nt,Lt,Ie,{labelId:0,step:1})}}function Bt(e){let t;return{c(){t=Ne("div"),Ve(t,"class","shepherd-text"),Ve(t,"id",e[1])},m(n,r){je(n,t,r),e[3](t)},p(e,[n]){2&n&&Ve(t,"id",e[1])},i:Fe,o:Fe,d(n){n&&Le(t),e[3](null)}}}function Ut(e,t,n){let{descriptionId:r,element:i,step:o}=t;return Xe(()=>{let{text:e}=o.options;d(e)&&(e=e.call(o)),f(e)?i.appendChild(e):n(0,i.innerHTML=e,i)}),e.$$set=e=>{"descriptionId"in e&&n(1,r=e.descriptionId),"element"in e&&n(0,i=e.element),"step"in e&&n(2,o=e.step)},[i,r,o,function(e){Je[e?"unshift":"push"](()=>{i=e,n(0,i)})}]}class Ht extends bt{constructor(e){super(),yt(this,e,Ut,Bt,Ie,{descriptionId:1,element:0,step:2})}}function Vt(e){let t,n;return t=new Mt({props:{labelId:e[1],step:e[2]}}),{c(){dt(t.$$.fragment)},m(e,r){gt(t,e,r),n=!0},p(e,n){const r={};2&n&&(r.labelId=e[1]),4&n&&(r.step=e[2]),t.$set(r)},i(e){n||(pt(t.$$.fragment,e),n=!0)},o(e){ft(t.$$.fragment,e),n=!1},d(e){mt(t,e)}}}function qt(e){let t,n;return t=new Ht({props:{descriptionId:e[0],step:e[2]}}),{c(){dt(t.$$.fragment)},m(e,r){gt(t,e,r),n=!0},p(e,n){const r={};1&n&&(r.descriptionId=e[0]),4&n&&(r.step=e[2]),t.$set(r)},i(e){n||(pt(t.$$.fragment,e),n=!0)},o(e){ft(t.$$.fragment,e),n=!1},d(e){mt(t,e)}}}function zt(e){let t,n;return t=new Ft({props:{step:e[2]}}),{c(){dt(t.$$.fragment)},m(e,r){gt(t,e,r),n=!0},p(e,n){const r={};4&n&&(r.step=e[2]),t.$set(r)},i(e){n||(pt(t.$$.fragment,e),n=!0)},o(e){ft(t.$$.fragment,e),n=!1},d(e){mt(t,e)}}}function Kt(e){let t,n,r,i,o=!m(e[2].options.title)||e[2].options.cancelIcon&&e[2].options.cancelIcon.enabled,a=!m(e[2].options.text),s=Array.isArray(e[2].options.buttons)&&e[2].options.buttons.length,u=o&&Vt(e),l=a&&qt(e),c=s&&zt(e);return{c(){t=Ne("div"),u&&u.c(),n=Ue(),l&&l.c(),r=Ue(),c&&c.c(),Ve(t,"class","shepherd-content")},m(e,o){je(e,t,o),u&&u.m(t,null),_e(t,n),l&&l.m(t,null),_e(t,r),c&&c.m(t,null),i=!0},p(e,[i]){4&i&&(o=!m(e[2].options.title)||e[2].options.cancelIcon&&e[2].options.cancelIcon.enabled),o?u?(u.p(e,i),4&i&&pt(u,1)):(u=Vt(e),u.c(),pt(u,1),u.m(t,n)):u&&(ct(),ft(u,1,1,()=>{u=null}),ht()),4&i&&(a=!m(e[2].options.text)),a?l?(l.p(e,i),4&i&&pt(l,1)):(l=qt(e),l.c(),pt(l,1),l.m(t,r)):l&&(ct(),ft(l,1,1,()=>{l=null}),ht()),4&i&&(s=Array.isArray(e[2].options.buttons)&&e[2].options.buttons.length),s?c?(c.p(e,i),4&i&&pt(c,1)):(c=zt(e),c.c(),pt(c,1),c.m(t,null)):c&&(ct(),ft(c,1,1,()=>{c=null}),ht())},i(e){i||(pt(u),pt(l),pt(c),i=!0)},o(e){ft(u),ft(l),ft(c),i=!1},d(e){e&&Le(t),u&&u.d(),l&&l.d(),c&&c.d()}}}function Gt(e,t,n){let{descriptionId:r,labelId:i,step:o}=t;return e.$$set=e=>{"descriptionId"in e&&n(0,r=e.descriptionId),"labelId"in e&&n(1,i=e.labelId),"step"in e&&n(2,o=e.step)},[r,i,o]}class Wt extends bt{constructor(e){super(),yt(this,e,Gt,Kt,Ie,{descriptionId:0,labelId:1,step:2})}}function Yt(e){let t;return{c(){t=Ne("div"),Ve(t,"class","shepherd-arrow"),Ve(t,"data-popper-arrow","")},m(e,n){je(e,t,n)},d(e){e&&Le(t)}}}function Xt(e){let t,n,r,i,o,a,s,u,l=e[4].options.arrow&&e[4].options.attachTo&&e[4].options.attachTo.element&&e[4].options.attachTo.on&&Yt();r=new Wt({props:{descriptionId:e[2],labelId:e[3],step:e[4]}});let c=[{"aria-describedby":i=m(e[4].options.text)?null:e[2]},{"aria-labelledby":o=e[4].options.title?e[3]:null},e[1],{role:"dialog"},{tabindex:"0"}],h={};for(let e=0;e<c.length;e+=1)h=ke(h,c[e]);return{c(){t=Ne("div"),l&&l.c(),n=Ue(),dt(r.$$.fragment),ze(t,h),Ke(t,"shepherd-has-cancel-icon",e[5]),Ke(t,"shepherd-has-title",e[6]),Ke(t,"shepherd-element",!0)},m(i,o){je(i,t,o),l&&l.m(t,null),_e(t,n),gt(r,t,null),e[13](t),a=!0,s||(u=He(t,"keydown",e[7]),s=!0)},p(e,[s]){e[4].options.arrow&&e[4].options.attachTo&&e[4].options.attachTo.element&&e[4].options.attachTo.on?l||(l=Yt(),l.c(),l.m(t,n)):l&&(l.d(1),l=null);const u={};4&s&&(u.descriptionId=e[2]),8&s&&(u.labelId=e[3]),16&s&&(u.step=e[4]),r.$set(u),ze(t,h=function(e,t){const n={},r={},i={$$scope:1};let o=e.length;for(;o--;){const a=e[o],s=t[o];if(s){for(const e in a)e in s||(r[e]=1);for(const e in s)i[e]||(n[e]=s[e],i[e]=1);e[o]=s}else for(const e in a)i[e]=1}for(const e in r)e in n||(n[e]=void 0);return n}(c,[(!a||20&s&&i!==(i=m(e[4].options.text)?null:e[2]))&&{"aria-describedby":i},(!a||24&s&&o!==(o=e[4].options.title?e[3]:null))&&{"aria-labelledby":o},2&s&&e[1],{role:"dialog"},{tabindex:"0"}])),Ke(t,"shepherd-has-cancel-icon",e[5]),Ke(t,"shepherd-has-title",e[6]),Ke(t,"shepherd-element",!0)},i(e){a||(pt(r.$$.fragment,e),a=!0)},o(e){ft(r.$$.fragment,e),a=!1},d(n){n&&Le(t),l&&l.d(),mt(r),e[13](null),s=!1,u()}}}function Qt(e){return e.split(" ").filter(e=>!!e.length)}function Jt(e,t,n){let r,i,o,{classPrefix:a,element:s,descriptionId:u,firstFocusableElement:l,focusableElements:c,labelId:h,lastFocusableElement:p,step:f,dataStepId:d}=t;var m;m=()=>{n(1,d={[`data-${a}shepherd-step-id`]:f.id}),n(9,c=s.querySelectorAll('a[href], area[href], input:not([disabled]), select:not([disabled]), textarea:not([disabled]), button:not([disabled]), [tabindex="0"]')),n(8,l=c[0]),n(10,p=c[c.length-1])},Ye().$$.on_mount.push(m),Xe(()=>{o!==f.options.classes&&(function(e){if(g(e)){const t=Qt(e);t.length&&s.classList.remove(...t)}}(o),o=f.options.classes,function(e){if(g(e)){const t=Qt(e);t.length&&s.classList.add(...t)}}(o))});return e.$$set=e=>{"classPrefix"in e&&n(11,a=e.classPrefix),"element"in e&&n(0,s=e.element),"descriptionId"in e&&n(2,u=e.descriptionId),"firstFocusableElement"in e&&n(8,l=e.firstFocusableElement),"focusableElements"in e&&n(9,c=e.focusableElements),"labelId"in e&&n(3,h=e.labelId),"lastFocusableElement"in e&&n(10,p=e.lastFocusableElement),"step"in e&&n(4,f=e.step),"dataStepId"in e&&n(1,d=e.dataStepId)},e.$$.update=()=>{16&e.$$.dirty&&(n(5,r=f.options&&f.options.cancelIcon&&f.options.cancelIcon.enabled),n(6,i=f.options&&f.options.title))},[s,d,u,h,f,r,i,e=>{const{tour:t}=f;switch(e.keyCode){case 9:if(0===c.length){e.preventDefault();break}e.shiftKey?(document.activeElement===l||document.activeElement.classList.contains("shepherd-element"))&&(e.preventDefault(),p.focus()):document.activeElement===p&&(e.preventDefault(),l.focus());break;case 27:t.options.exitOnEsc&&(e.stopPropagation(),f.cancel());break;case 37:t.options.keyboardNavigation&&(e.stopPropagation(),t.back());break;case 39:t.options.keyboardNavigation&&(e.stopPropagation(),t.next())}},l,c,p,a,()=>s,function(e){Je[e?"unshift":"push"](()=>{s=e,n(0,s)})}]}class Zt extends bt{constructor(e){super(),yt(this,e,Jt,Xt,Ie,{classPrefix:11,element:0,descriptionId:2,firstFocusableElement:8,focusableElements:9,labelId:3,lastFocusableElement:10,step:4,dataStepId:1,getElement:12})}get getElement(){return this.$$.ctx[12]}}class en extends v{constructor(e,t={}){return super(e,t),this.tour=e,this.classPrefix=this.tour.options?$(this.tour.options.classPrefix):"",this.styles=e.styles,this._resolvedAttachTo=null,y(this),this._setOptions(t),this}cancel(){this.tour.cancel(),this.trigger("cancel")}complete(){this.tour.complete(),this.trigger("complete")}destroy(){var e;(e=this).cleanup&&e.cleanup(),e.cleanup=null,f(this.el)&&(this.el.remove(),this.el=null),this._updateStepTargetOnHide(),this.trigger("destroy")}getTour(){return this.tour}hide(){this.tour.modal.hide(),this.trigger("before-hide"),this.el&&(this.el.hidden=!0),this._updateStepTargetOnHide(),this.trigger("hide")}_resolveAttachToOptions(){return this._resolvedAttachTo=function(e){const t=e.options.attachTo||{},n=Object.assign({},t);if(d(n.element)&&(n.element=n.element.call(e)),g(n.element)){try{n.element=document.querySelector(n.element)}catch(e){}n.element||console.error("The element for this Shepherd step was not found "+t.element)}return n}(this),this._resolvedAttachTo}_getResolvedAttachToOptions(){return null===this._resolvedAttachTo?this._resolveAttachToOptions():this._resolvedAttachTo}isOpen(){return Boolean(this.el&&!this.el.hidden)}show(){return d(this.options.beforeShowPromise)?Promise.resolve(this.options.beforeShowPromise()).then(()=>this._show()):Promise.resolve(this._show())}updateStepOptions(e){Object.assign(this.options,e),this.shepherdElementComponent&&this.shepherdElementComponent.$set({step:this})}getElement(){return this.el}getTarget(){return this.target}_createTooltipContent(){const e=this.id+"-description",t=this.id+"-label";return this.shepherdElementComponent=new Zt({target:this.tour.options.stepsContainer||document.body,props:{classPrefix:this.classPrefix,descriptionId:e,labelId:t,step:this,styles:this.styles}}),this.shepherdElementComponent.getElement()}_scrollTo(e){const{element:t}=this._getResolvedAttachToOptions();d(this.options.scrollToHandler)?this.options.scrollToHandler(t):t instanceof Element&&"function"==typeof t.scrollIntoView&&t.scrollIntoView(e)}_getClassOptions(e){const t=this.tour&&this.tour.options&&this.tour.options.defaultStepOptions,n=e.classes?e.classes:"",r=t&&t.classes?t.classes:"",i=[...n.split(" "),...r.split(" ")],o=new Set(i);return Array.from(o).join(" ").trim()}_setOptions(e={}){let t=this.tour&&this.tour.options&&this.tour.options.defaultStepOptions;t=p({},t||{}),this.options=Object.assign({arrow:!0},t,e,function(e,t){return{floatingUIOptions:p(e.floatingUIOptions||{},t.floatingUIOptions||{})}}(t,e));const{when:n}=this.options;this.options.classes=this._getClassOptions(e),this.destroy(),this.id=this.options.id||"step-"+x(),n&&Object.keys(n).forEach(e=>{this.on(e,n[e],this)})}_setupElements(){m(this.el)||this.destroy(),this.el=this._createTooltipContent(),this.options.advanceOn&&b(this),Te(this)}_show(){this.trigger("before-show"),this._resolveAttachToOptions(),this._setupElements(),this.tour.modal||this.tour._setupModal(),this.tour.modal.setupForStep(this),this._styleTargetElementForStep(this),this.el.hidden=!1,this.options.scrollTo&&setTimeout(()=>{this._scrollTo(this.options.scrollTo)}),this.el.hidden=!1;const e=this.shepherdElementComponent.getElement(),t=this.target||document.body;t.classList.add(this.classPrefix+"shepherd-enabled"),t.classList.add(this.classPrefix+"shepherd-target"),e.classList.add("shepherd-enabled"),this.trigger("show")}_styleTargetElementForStep(e){const t=e.target;t&&(e.options.highlightClass&&t.classList.add(e.options.highlightClass),t.classList.remove("shepherd-target-click-disabled"),!1===e.options.canClickTarget&&t.classList.add("shepherd-target-click-disabled"))}_updateStepTargetOnHide(){const e=this.target||document.body;this.options.highlightClass&&e.classList.remove(this.options.highlightClass),e.classList.remove("shepherd-target-click-disabled",this.classPrefix+"shepherd-enabled",this.classPrefix+"shepherd-target")}}function tn(e){let t,n,r,i,o;return{c(){t=Me("svg"),n=Me("path"),Ve(n,"d",e[2]),Ve(t,"class",r=(e[1]?"shepherd-modal-is-visible":"")+" shepherd-modal-overlay-container")},m(r,a){je(r,t,a),_e(t,n),e[11](t),i||(o=He(t,"touchmove",e[3]),i=!0)},p(e,[i]){4&i&&Ve(n,"d",e[2]),2&i&&r!==(r=(e[1]?"shepherd-modal-is-visible":"")+" shepherd-modal-overlay-container")&&Ve(t,"class",r)},i:Fe,o:Fe,d(n){n&&Le(t),e[11](null),i=!1,o()}}}function nn(e,t,n){let{element:r,openingProperties:i}=t;x();let o,a=!1,s=void 0;u();function u(){n(4,i={width:0,height:0,x:0,y:0,r:0})}function l(){n(1,a=!1),f()}function c(e=0,t=0,r,o){if(o){const{y:a,height:s}=function(e,t){const n=e.getBoundingClientRect();let r=n.y||n.top,i=n.bottom||r+n.height;if(t){const e=t.getBoundingClientRect(),n=e.y||e.top,o=e.bottom||n+e.height;r=Math.max(r,n),i=Math.min(i,o)}return{y:r,height:Math.max(i-r,0)}}(o,r),{x:u,width:l,left:c}=o.getBoundingClientRect();n(4,i={width:l+2*e,height:s+2*e,x:(u||c)-e,y:a-e,r:t})}else u()}function h(){n(1,a=!0)}const p=e=>{e.preventDefault()};function f(){s&&(cancelAnimationFrame(s),s=void 0),window.removeEventListener("touchmove",p,{passive:!1})}return e.$$set=e=>{"element"in e&&n(0,r=e.element),"openingProperties"in e&&n(4,i=e.openingProperties)},e.$$.update=()=>{16&e.$$.dirty&&n(2,o=function({width:e,height:t,x:n=0,y:r=0,r:i=0}){const{innerWidth:o,innerHeight:a}=window,{topLeft:s=0,topRight:u=0,bottomRight:l=0,bottomLeft:c=0}="number"==typeof i?{topLeft:i,topRight:i,bottomRight:i,bottomLeft:i}:i;return`M${o},${a}H0V0H${o}V${a}ZM${n+s},${r}a${s},${s},0,0,0-${s},${s}V${t+r-c}a${c},${c},0,0,0,${c},${c}H${e+n-l}a${l},${l},0,0,0,${l}-${l}V${r+u}a${u},${u},0,0,0-${u}-${u}Z`}(i))},[r,a,o,e=>{e.stopPropagation()},i,()=>r,u,l,c,function(e){f(),e.tour.options.useModalOverlay?(!function(e){const{modalOverlayOpeningPadding:t,modalOverlayOpeningRadius:n}=e.options,r=function e(t){if(!t)return null;const n=t instanceof HTMLElement&&window.getComputedStyle(t).overflowY;return"hidden"!==n&&"visible"!==n&&t.scrollHeight>=t.clientHeight?t:e(t.parentElement)}(e.target),i=()=>{s=void 0,c(t,n,r,e.target),s=requestAnimationFrame(i)};i(),window.addEventListener("touchmove",p,{passive:!1})}(e),h()):l()},h,function(e){Je[e?"unshift":"push"](()=>{r=e,n(0,r)})}]}class rn extends bt{constructor(e){super(),yt(this,e,nn,tn,Ie,{element:0,openingProperties:4,getElement:5,closeModalOpening:6,hide:7,positionModal:8,setupForStep:9,show:10})}get getElement(){return this.$$.ctx[5]}get closeModalOpening(){return this.$$.ctx[6]}get hide(){return this.$$.ctx[7]}get positionModal(){return this.$$.ctx[8]}get setupForStep(){return this.$$.ctx[9]}get show(){return this.$$.ctx[10]}}const on=new v;class an extends v{constructor(e={}){super(e),y(this);this.options=Object.assign({},{exitOnEsc:!0,keyboardNavigation:!0},e),this.classPrefix=$(this.options.classPrefix),this.steps=[],this.addSteps(this.options.steps);return["active","cancel","complete","inactive","show","start"].map(e=>{(e=>{this.on(e,t=>{(t=t||{}).tour=this,on.trigger(e,t)})})(e)}),this._setTourID(),this}addStep(e,t){let n=e;return n instanceof en?n.tour=this:n=new en(this,n),m(t)?this.steps.push(n):this.steps.splice(t,0,n),n}addSteps(e){return Array.isArray(e)&&e.forEach(e=>{this.addStep(e)}),this}back(){const e=this.steps.indexOf(this.currentStep);this.show(e-1,!1)}async cancel(){if(this.options.confirmCancel){const e="function"==typeof this.options.confirmCancel,t=this.options.confirmCancelMessage||"Are you sure you want to stop the tour?";(e?await this.options.confirmCancel():window.confirm(t))&&this._done("cancel")}else this._done("cancel")}complete(){this._done("complete")}getById(e){return this.steps.find(t=>t.id===e)}getCurrentStep(){return this.currentStep}hide(){const e=this.getCurrentStep();if(e)return e.hide()}isActive(){return on.activeTour===this}next(){const e=this.steps.indexOf(this.currentStep);e===this.steps.length-1?this.complete():this.show(e+1,!0)}removeStep(e){const t=this.getCurrentStep();this.steps.some((t,n)=>{if(t.id===e)return t.isOpen()&&t.hide(),t.destroy(),this.steps.splice(n,1),!0}),t&&t.id===e&&(this.currentStep=void 0,this.steps.length?this.show(0):this.cancel())}show(e=0,t=!0){const n=g(e)?this.getById(e):this.steps[e];if(n){this._updateStateBeforeShow();d(n.options.showOn)&&!n.options.showOn()?this._skipStep(n,t):(this.trigger("show",{step:n,previous:this.currentStep}),this.currentStep=n,n.show())}}start(){this.trigger("start"),this.focusedElBeforeOpen=document.activeElement,this.currentStep=null,this._setupModal(),this._setupActiveTour(),this.next()}_done(e){const t=this.steps.indexOf(this.currentStep);if(Array.isArray(this.steps)&&this.steps.forEach(e=>e.destroy()),function(e){if(e){const{steps:t}=e;t.forEach(e=>{e.options&&!1===e.options.canClickTarget&&e.options.attachTo&&e.target instanceof HTMLElement&&e.target.classList.remove("shepherd-target-click-disabled")})}}(this),this.trigger(e,{index:t}),on.activeTour=null,this.trigger("inactive",{tour:this}),this.modal&&this.modal.hide(),("cancel"===e||"complete"===e)&&this.modal){const e=document.querySelector(".shepherd-modal-overlay-container");e&&e.remove()}f(this.focusedElBeforeOpen)&&this.focusedElBeforeOpen.focus()}_setupActiveTour(){this.trigger("active",{tour:this}),on.activeTour=this}_setupModal(){this.modal=new rn({target:this.options.modalContainer||document.body,props:{classPrefix:this.classPrefix,styles:this.styles}})}_skipStep(e,t){const n=this.steps.indexOf(e);if(n===this.steps.length-1)this.complete();else{const e=t?n+1:n-1;this.show(e,t)}}_updateStateBeforeShow(){this.currentStep&&this.currentStep.hide(),this.isActive()||this._setupActiveTour()}_setTourID(){const e=this.options.tourName||"tour";this.id=`${e}--${x()}`}}const sn="undefined"==typeof window;class un{constructor(){}}sn?Object.assign(on,{Tour:un,Step:un}):Object.assign(on,{Tour:an,Step:en});var ln=n(1),cn="shepherd.guide_id",hn="shepherd.guide.current.step.id",pn="shepherd.guide.step.history",fn="shepherd.guide.pause";function dn(e,t,n,i,o,a,s,u,l){var c=this;this.guideCancelSubscription=void 0,this.guideCompleteSubscription=void 0,this.guideAutostarted=null,this.onPause=function(){},this.onCancel=function(){},this.startGuide=function(e,t,r){var i=arguments.length>3&&void 0!==arguments[3]&&arguments[3],o=!(arguments.length>4&&void 0!==arguments[4])||arguments[4];if((!i||!c._isAutostartDisabledForGuide(e))&&(c.guideAutostarted=i,o&&n.remove(pn),t)){var a=c._createGuide(e);c._addGuideSteps(a,t),c._startGuide(a,r)}},this.resumeGuide=function(e,t,r){n.set(fn,!1),c.startGuide(e,t,r,!1)},this.isActive=function(){return on.activeTour&&!c.isPaused()},this.isPaused=function(){return"true"===n.get(fn)},this.getGuideId=function(){return n.get(cn)},this.getCurrentStepId=function(){return n.get(hn)},this.subscribeToGuideCancel=function(e){angular.isFunction(e)&&(c.onCancel=e)},this.subscribeToGuidePause=function(e){angular.isFunction(e)&&(c.onPause=e)},this._isAutostartDisabledForGuide=function(e){var t;return null===(t=(n.get(i.GUIDES_AUTOSTART)||{})[e])||void 0===t?void 0:t.disabled},this._disableAutostartForGuide=function(e){var t=n.get(i.GUIDES_AUTOSTART)||{};t[e]={disabled:!0},n.set(i.GUIDES_AUTOSTART,JSON.stringify(t))},this._createGuide=function(e){return c._subscribeToGuideCanceled(),new on.Tour({name:e,useModalOverlay:!0,confirmCancel:c._confirmGuideCancel,defaultStepOptions:{classes:"shadow-md bg-purple-dark",scrollTo:!0}})},this._confirmGuideCancel=function(){var e=on.activeTour,n=e.getCurrentStep();if(!n.options.isLastStep)return e.hide(),l.openCustomModal({templateUrl:"js/angular/guides/templates/modal-confirm-exit.html",title:Object(ln.decodeHTML)(t.instant("guides.confirm-cancel-modal.title")),message:Object(ln.decodeHTML)(t.instant("guides.confirm-cancel-modal.content")),warning:!0,controller:["$scope","$uibModalInstance","$sce","config",function(e,t,n,r){e.cancelButtonKey=r.cancelButtonKey,e.hasDontShowAgain=r.hasDontShowAgain,e.title=r.title,e.message=n.trustAsHtml(r.message),e.exit=function(){t.close(!1)},e.dontShowAgain=function(){t.close(!0)},e.cancel=function(){t.dismiss()}}],hasDontShowAgain:c.guideAutostarted}).result.then((function(t){return t&&c._disableAutostartForGuide(e.options.name),!0})).catch((function(){e.show(n.id)}));c._completeGuide(e)},this._addGuideSteps=function(e,t){if(t.length>0&&e.addStep(c._getFirstStep(e,t)),t.length>2)for(var n=1;n<t.length-1;n++)e.addStep(c._getMiddleStep(e,t,n));t.length>1&&e.addStep(c._getLastStep(e,t[t.length-1]))},this._startGuide=function(i,a){n.remove(fn);var u=i.steps.findIndex((function(e){return e.options.id===a}));u<0&&(u=0);var l=i.steps[u],c=l.options.url;c&&c!==e.path()&&(e.url(c),o.reload()),l.options.attachTo?r.GuideUtils.getOrWaitFor(l.options.attachTo.element,l.options.maxWaitTime).then((function(){return i.show(u)})).catch((function(e){console.log(e),s.error(t.instant("guide.start.unexpected.error.message"))})):i.show(u)},this._subscribeToGuideCanceled=function(){var e=function(e){var t=e.tour;c._clearLocalStorage();var n=t.getCurrentStep();n&&angular.isFunction(n.hide)&&n.hide(),c.guideAutostarted=null,c.onCancel&&c.onCancel()};c.guideCancelSubscription||(c.guideCancelSubscription=on.on("cancel",e)),c.guideCompleteSubscription||(c.guideCompleteSubscription=on.on("complete",e))},this._getFirstStep=function(e,t){var n=t.length>1?t[1]:void 0;return this._toGuideStep(e,void 0,t[0],n)},this._getMiddleStep=function(e,t,n){var r=t[n];return r.lastStep?c._getLastStep(e,r):c._toGuideStep(e,t[n-1],r,t[n+1])},this._getLastStep=function(e,t){var n=c._toGuideStep(e,null,t);return n.buttons.push(c._getBackToGuidesButton(e)),n.buttons.push(c._getCancelButton(e)),n},this._getBackToGuidesButton=function(e){return c._getButton(t.instant("back.to.guides.btn"),(function(){return c._backToGuidesButton(e)}),!0)},this._getCancelButton=function(e){return c._getButton(t.instant("common.close"),(function(){return c._completeGuide(e)}),!0)},this._backToGuidesButton=function(t){e.path("guides"),c._completeGuide(t)},this._completeGuide=function(e){c.guideAutostarted&&c._disableAutostartForGuide(e.options.name),e.complete()},this._abortGuide=function(e){s.error(t.instant("guide.unexpected.error.message")),e.options.confirmCancel=!1,e.cancel()},this._toGuideStep=function(e,n,r,i){var o=c._toBaseGuideStep(e,t,r,(function(){return c._updateLocalStorage()})),a=[];return r.skipPoint&&a.push(c._getSkipButton(e)),!c._isDisablePreviousFlow(r)&&n&&a.push(c._getPreviousButton(e)),!c._isDisableNextFlow(r)&&i&&a.push(c._getNextButton(e,r,i)),o.buttons=a,o},this._getPauseButton=function(e){return c._getButton(t.instant("pause.btn"),(function(){return c._pauseGuide(e)}),!0)},this._getSkipButton=function(e){return c._getButton(t.instant("skip.btn"),(function(){return c._skipSteps(e)}),!0)},this._skipSteps=function(e){var t=e.getCurrentStep(),n=e.steps.findIndex((function(e){return t.id===e.id}));c._startGuide(e,c._getNextSkipPointId(e.steps,n))},this._getNextSkipPointId=function(e,t){for(var n=t+1;n<e.length;n++){var r=e.at(n);if(r.options.skipPoint)return r.id}return e.at(e.length-1).id},this._isDisablePreviousFlow=function(e){return!!angular.isDefined(e.disablePreviousFlow)&&e.disablePreviousFlow},this._isDisableNextFlow=function(e){return!!angular.isDefined(e.disableNextFlow)&&e.disableNextFlow},this._pauseGuide=function(e){e.hide();var t=c._getStepWhichCanBePaused(e.steps,e.getCurrentStep().id);c._saveStep(t),n.set(fn,!0);for(var r=!1;!r;){var i=c._getHistory();i&&i.length>0&&i.at(i.length-1)!==t.options.id?c._removeLastStepFromHistory():r=!0}c.onPause()&&c.onPause()},this._getStepWhichCanBePaused=function(e,t){var n=e.findIndex((function(e){return e.id===t})),r=e[n];return r.options.canBePaused?r:n>0?c._getStepWhichCanBePaused(e,e[n-1].id):void 0},this._getPreviousButton=function(e){var n=t.instant("previous.btn"),r=c._getPreviousButtonAction(e);return c._getButton(n,r)},this._getPreviousButtonAction=function(t){return function(){var n,i=c._getPreviousStepIdFromHistory();n=-1===i?t.steps.at(0):t.steps.find((function(e){return e.options.id===i}));var o=t.getCurrentStep();o.hide(),o.options.initPreviousStep({GuideUtils:r.GuideUtils,ShepherdService:c},o.options.id).then((function(){angular.isFunction(o.options.onPreviousClick)?o.options.onPreviousClick(t).then((function(e){!angular.isUndefined(e)&&null!==e&&e||(o.hide(),t.show(n.id))})).catch((function(e){console.log(e),c._abortGuide(t)})):((n.options.forceReload||n.options.url&&n.options.url!==o.options.url)&&e.path(n.options.url),o.hide(),t.show(n.id))})).catch((function(e){console.log(e),c._abortGuide(t)}))}},this._getNextButton=function(e,n,r){var i=t.instant("next.btn"),o=h(e,n,r);return c._getButton(i,o)};var h=function(t,n,r){return function(){n.onNextValidate(n).then((function(i){if(i)if(angular.isFunction(n.onNextClick)){var o=n.onNextClick(t,n);o instanceof Promise&&o.catch((function(){return c._abortGuide(t)}))}else(r.forceReload||r.url&&r.url!==n.url)&&e.path(r.url),t.next()}))}};this._updateLocalStorage=function(){var e=on.activeTour;if(e){var t=e.getCurrentStep();if(t.options.skipFromHistory)console.log("Current step: ",t.options.skipFromHistory);else{var n=e.steps.findIndex((function(e){return e.id===t.id})),r=c.getCurrentStepId(),i=e.steps.findIndex((function(e){return e.id===r}));n>i?c._addStepToHistory(t):i>n&&c._removeLastStepFromHistory(),c._saveStep(t)}}},this._saveStep=function(e){e&&(n.set(cn,e.tour.options.name),n.set(hn,e.options.id))},this._addStepToHistory=function(e){var t=c._getHistory();t.push(e.options.id),n.set(pn,t)},this._getHistory=function(){var e=n.get(pn);return e||[]},this._removeLastStepFromHistory=function(){var e=c._getHistory();e.splice(e.length-1,1),n.set(pn,e)},this._getPreviousStepIdFromHistory=function(e){var t=c._getHistory()||[];if(e){var n=t.findIndex((function(t){return t===e}));if(n>0)return t.at(n-1)}else if(t.length>1)return t.at(t.length-2);return-1},this.getPreviousStepFromHistory=function(e){var t=c._getPreviousStepIdFromHistory(e);return on.activeTour.steps.find((function(e){return e.id===t}))},this._clearLocalStorage=function(){n.remove(cn),n.remove(fn),n.remove(hn),n.remove(pn)},this._toBaseGuideStep=function(e,t,n,i){var o;n.elementSelector&&(o={element:n.elementSelector,on:n.placement});var s=r.GuideUtils.unescapeHtml(r.GuideUtils.translateLocalMessage(t,a,n.title,n)),u="";if(n.stepsTotalN>1){var l=document.createElement("span");l.setAttribute("gdb-tooltip",t.instant("guide.block.progress.tooltip",{action:s})),l.setAttribute("tooltip-placement","bottom"),l.innerText=t.instant("guide.block.progress",{n:n.stepN+1,nn:n.stepsTotalN}),u="&nbsp;&mdash;&nbsp;"+l.outerHTML}var h="readonly"!==n.type,p=n.extraPadding?n.extraPadding:0,f={id:n.id,title:s+u,text:function(){var e=c._toParagraph(r.GuideUtils.translateLocalMessage(t,a,n.content,n)),i="";return n.extraContent&&(i=r.GuideUtils.translateLocalMessage(t,a,n.extraContent,n),i=c._toParagraph(i,n.extraContentClass)),e+i},url:n.url,maxWaitTime:n.maxWaitTime,cancelIcon:{enabled:!0},attachTo:o,modalOverlayOpeningPadding:p,modalOverlayOpeningRadius:0,canBePaused:n.canBePaused,advanceOn:n.advanceOn,showOn:n.showOn,scrollToHandler:n.scrollToHandler,classes:"guide-dialog "+n.class,beforeShowPromise:c._getBeforeShowPromise(e,n),canClickTarget:h,keyboardNavigation:!1,skipPoint:n.skipPoint,skipFromHistory:n.skipFromHistory,onPreviousClick:n.onPreviousClick,initPreviousStep:n.initPreviousStep,forceReload:n.forceReload,isLastStep:!!n.lastStep,when:{show:c._getShowFunction(e,n,i)}};return angular.isFunction(n.hide)&&(f.when.hide=n.hide(e,n)),f},this._getBeforeShowPromise=function(e,t){if(angular.isFunction(t.beforeShowPromise))return function(){return t.beforeShowPromise(e,t)}},this._getShowFunction=function(e,t,n){return angular.isFunction(t.show)?function(){t.show(e,t)(),n(),c._whenStepShow(t)}:function(){n(),c._whenStepShow(t)}},this._whenStepShow=function(e){var t=on.activeTour.getCurrentStep(),n=t.getElement();c._addTotalProgress(t,n),c._addTypeIcon(n,e);var r=angular.element(n).scope();angular.isFunction(e.onScope)&&e.onScope(r),setTimeout((function(){return r.$apply((function(){return u(n)(r)}))}))},this._toParagraph=function(e,t){if(e){var n=document.createElement("p");return t&&(n.className=t),n.innerHTML=e,n.outerHTML}return""},this._addTotalProgress=function(e,n){var r=on.activeTour.steps,i=n.querySelector(".shepherd-content"),o=document.createElement("div");o.className="shepherd-progress";var a=document.createElement("span");a.className="text-muted",a.innerText=t.instant("guide.total.progress",{n:r.indexOf(e)+1,nn:r.length}),a.setAttribute("gdb-tooltip",t.instant("guide.total.progress.tooltip")),a.setAttribute("tooltip-placement","left"),o.appendChild(a),i.appendChild(o)},this._addTypeIcon=function(e,n){var r,i;switch(n.type){case"clickable":r="focus",i="mouse";break;case"input":r="edit",i="input";break;default:r="info",i="info"}var o=document.createElement("span");o.className="shepherd-step-type icon-"+r+" icon-1-25x",o.setAttribute("gdb-tooltip",t.instant("guide.step-type."+i)),o.setAttribute("tooltip-placement","bottom-right"),angular.element(e.querySelector(".shepherd-header")).prepend(o)},this._getButton=function(e,t,n){var r={text:e,classes:n?"btn btn-secondary":"btn btn-primary",action:function(e){e.stopPropagation(),t()}};return r}}angular.module("graphdb.framework.guides.shepherd.services",["graphdb.framework.utils.localstorageadapter"]).service("ShepherdService",dn),dn.$inject=["$location","$translate","LocalStorageAdapter","LSKeys","$route","$interpolate","toastr","$compile","ModalService"]},22:function(e,t,n){"use strict";n.r(t),n.d(t,"mapObject",(function(){return r}));var r=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.removeOldKey,i=void 0!==r&&r;return Object.keys(e).reduce((function(n,r){var o=t[r];if(!o)return n[r]=e[r],n;if("function"==typeof o)return n[r]=o(e[r]),n;if("function"==typeof o.transform){var a=o.transform(e[r]),s=o.newKey||r;n[s]=a,i&&s!==r?delete n[r]:s!==r&&(n[r]=e[r])}return n}),{})}},23:function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,o(r.key),r)}}function o(e){var t=function(e,t){if("object"!=r(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=r(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==r(t)?t:t+""}n.r(t),n.d(t,"HttpUtils",(function(){return a}));var a=function(){return e=function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)},n=[{key:"extractFileFromResponse",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"download",n=e.data,r=e.headers(),i=r["content-disposition"];return i&&i.includes("filename=")&&(t=i.split("filename=")[1].replace(/['"]/g,"")),{data:n,filename:t}}}],(t=null)&&i(e.prototype,t),n&&i(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,n}()},24:function(e,t,n){(function(e,r){var i;
8
+ /**
9
+ * @license
10
+ * Lodash <https://lodash.com/>
11
+ * Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
12
+ * Released under MIT license <https://lodash.com/license>
13
+ * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
14
+ * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
15
+ */(function(){var o="Expected a function",a="__lodash_placeholder__",s=[["ary",128],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",32],["partialRight",64],["rearg",256]],u="[object Arguments]",l="[object Array]",c="[object Boolean]",h="[object Date]",p="[object Error]",f="[object Function]",d="[object GeneratorFunction]",g="[object Map]",m="[object Number]",v="[object Object]",y="[object RegExp]",b="[object Set]",$="[object String]",w="[object Symbol]",x="[object WeakMap]",S="[object ArrayBuffer]",E="[object DataView]",A="[object Float32Array]",C="[object Float64Array]",T="[object Int8Array]",F="[object Int16Array]",k="[object Int32Array]",R="[object Uint8Array]",P="[object Uint16Array]",D="[object Uint32Array]",O=/\b__p \+= '';/g,I=/\b(__p \+=) '' \+/g,_=/(__e\(.*?\)|\b__t\)) \+\n'';/g,j=/&(?:amp|lt|gt|quot|#39);/g,L=/[&<>"']/g,N=RegExp(j.source),M=RegExp(L.source),B=/<%-([\s\S]+?)%>/g,U=/<%([\s\S]+?)%>/g,H=/<%=([\s\S]+?)%>/g,V=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,q=/^\w*$/,z=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,K=/[\\^$.*+?()[\]{}|]/g,G=RegExp(K.source),W=/^\s+/,Y=/\s/,X=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Q=/\{\n\/\* \[wrapped with (.+)\] \*/,J=/,? & /,Z=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,ee=/[()=,{}\[\]\/\s]/,te=/\\(\\)?/g,ne=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,re=/\w*$/,ie=/^[-+]0x[0-9a-f]+$/i,oe=/^0b[01]+$/i,ae=/^\[object .+?Constructor\]$/,se=/^0o[0-7]+$/i,ue=/^(?:0|[1-9]\d*)$/,le=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,ce=/($^)/,he=/['\n\r\u2028\u2029\\]/g,pe="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",fe="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",de="[\\ud800-\\udfff]",ge="["+fe+"]",me="["+pe+"]",ve="\\d+",ye="[\\u2700-\\u27bf]",be="[a-z\\xdf-\\xf6\\xf8-\\xff]",$e="[^\\ud800-\\udfff"+fe+ve+"\\u2700-\\u27bfa-z\\xdf-\\xf6\\xf8-\\xffA-Z\\xc0-\\xd6\\xd8-\\xde]",we="\\ud83c[\\udffb-\\udfff]",xe="[^\\ud800-\\udfff]",Se="(?:\\ud83c[\\udde6-\\uddff]){2}",Ee="[\\ud800-\\udbff][\\udc00-\\udfff]",Ae="[A-Z\\xc0-\\xd6\\xd8-\\xde]",Ce="(?:"+be+"|"+$e+")",Te="(?:"+Ae+"|"+$e+")",Fe="(?:"+me+"|"+we+")"+"?",ke="[\\ufe0e\\ufe0f]?"+Fe+("(?:\\u200d(?:"+[xe,Se,Ee].join("|")+")[\\ufe0e\\ufe0f]?"+Fe+")*"),Re="(?:"+[ye,Se,Ee].join("|")+")"+ke,Pe="(?:"+[xe+me+"?",me,Se,Ee,de].join("|")+")",De=RegExp("['’]","g"),Oe=RegExp(me,"g"),Ie=RegExp(we+"(?="+we+")|"+Pe+ke,"g"),_e=RegExp([Ae+"?"+be+"+(?:['’](?:d|ll|m|re|s|t|ve))?(?="+[ge,Ae,"$"].join("|")+")",Te+"+(?:['’](?:D|LL|M|RE|S|T|VE))?(?="+[ge,Ae+Ce,"$"].join("|")+")",Ae+"?"+Ce+"+(?:['’](?:d|ll|m|re|s|t|ve))?",Ae+"+(?:['’](?:D|LL|M|RE|S|T|VE))?","\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",ve,Re].join("|"),"g"),je=RegExp("[\\u200d\\ud800-\\udfff"+pe+"\\ufe0e\\ufe0f]"),Le=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Ne=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],Me=-1,Be={};Be[A]=Be[C]=Be[T]=Be[F]=Be[k]=Be[R]=Be["[object Uint8ClampedArray]"]=Be[P]=Be[D]=!0,Be[u]=Be[l]=Be[S]=Be[c]=Be[E]=Be[h]=Be[p]=Be[f]=Be[g]=Be[m]=Be[v]=Be[y]=Be[b]=Be[$]=Be[x]=!1;var Ue={};Ue[u]=Ue[l]=Ue[S]=Ue[E]=Ue[c]=Ue[h]=Ue[A]=Ue[C]=Ue[T]=Ue[F]=Ue[k]=Ue[g]=Ue[m]=Ue[v]=Ue[y]=Ue[b]=Ue[$]=Ue[w]=Ue[R]=Ue["[object Uint8ClampedArray]"]=Ue[P]=Ue[D]=!0,Ue[p]=Ue[f]=Ue[x]=!1;var He={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Ve=parseFloat,qe=parseInt,ze="object"==typeof e&&e&&e.Object===Object&&e,Ke="object"==typeof self&&self&&self.Object===Object&&self,Ge=ze||Ke||Function("return this")(),We=t&&!t.nodeType&&t,Ye=We&&"object"==typeof r&&r&&!r.nodeType&&r,Xe=Ye&&Ye.exports===We,Qe=Xe&&ze.process,Je=function(){try{var e=Ye&&Ye.require&&Ye.require("util").types;return e||Qe&&Qe.binding&&Qe.binding("util")}catch(e){}}(),Ze=Je&&Je.isArrayBuffer,et=Je&&Je.isDate,tt=Je&&Je.isMap,nt=Je&&Je.isRegExp,rt=Je&&Je.isSet,it=Je&&Je.isTypedArray;function ot(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function at(e,t,n,r){for(var i=-1,o=null==e?0:e.length;++i<o;){var a=e[i];t(r,a,n(a),e)}return r}function st(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););return e}function ut(e,t){for(var n=null==e?0:e.length;n--&&!1!==t(e[n],n,e););return e}function lt(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(!t(e[n],n,e))return!1;return!0}function ct(e,t){for(var n=-1,r=null==e?0:e.length,i=0,o=[];++n<r;){var a=e[n];t(a,n,e)&&(o[i++]=a)}return o}function ht(e,t){return!!(null==e?0:e.length)&&wt(e,t,0)>-1}function pt(e,t,n){for(var r=-1,i=null==e?0:e.length;++r<i;)if(n(t,e[r]))return!0;return!1}function ft(e,t){for(var n=-1,r=null==e?0:e.length,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i}function dt(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}function gt(e,t,n,r){var i=-1,o=null==e?0:e.length;for(r&&o&&(n=e[++i]);++i<o;)n=t(n,e[i],i,e);return n}function mt(e,t,n,r){var i=null==e?0:e.length;for(r&&i&&(n=e[--i]);i--;)n=t(n,e[i],i,e);return n}function vt(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}var yt=At("length");function bt(e,t,n){var r;return n(e,(function(e,n,i){if(t(e,n,i))return r=n,!1})),r}function $t(e,t,n,r){for(var i=e.length,o=n+(r?1:-1);r?o--:++o<i;)if(t(e[o],o,e))return o;return-1}function wt(e,t,n){return t==t?function(e,t,n){var r=n-1,i=e.length;for(;++r<i;)if(e[r]===t)return r;return-1}(e,t,n):$t(e,St,n)}function xt(e,t,n,r){for(var i=n-1,o=e.length;++i<o;)if(r(e[i],t))return i;return-1}function St(e){return e!=e}function Et(e,t){var n=null==e?0:e.length;return n?Ft(e,t)/n:NaN}function At(e){return function(t){return null==t?void 0:t[e]}}function Ct(e){return function(t){return null==e?void 0:e[t]}}function Tt(e,t,n,r,i){return i(e,(function(e,i,o){n=r?(r=!1,e):t(n,e,i,o)})),n}function Ft(e,t){for(var n,r=-1,i=e.length;++r<i;){var o=t(e[r]);void 0!==o&&(n=void 0===n?o:n+o)}return n}function kt(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}function Rt(e){return e?e.slice(0,Wt(e)+1).replace(W,""):e}function Pt(e){return function(t){return e(t)}}function Dt(e,t){return ft(t,(function(t){return e[t]}))}function Ot(e,t){return e.has(t)}function It(e,t){for(var n=-1,r=e.length;++n<r&&wt(t,e[n],0)>-1;);return n}function _t(e,t){for(var n=e.length;n--&&wt(t,e[n],0)>-1;);return n}function jt(e,t){for(var n=e.length,r=0;n--;)e[n]===t&&++r;return r}var Lt=Ct({"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","IJ":"IJ","ij":"ij","Œ":"Oe","œ":"oe","ʼn":"'n","ſ":"s"}),Nt=Ct({"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"});function Mt(e){return"\\"+He[e]}function Bt(e){return je.test(e)}function Ut(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}function Ht(e,t){return function(n){return e(t(n))}}function Vt(e,t){for(var n=-1,r=e.length,i=0,o=[];++n<r;){var s=e[n];s!==t&&s!==a||(e[n]=a,o[i++]=n)}return o}function qt(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}function zt(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=[e,e]})),n}function Kt(e){return Bt(e)?function(e){var t=Ie.lastIndex=0;for(;Ie.test(e);)++t;return t}(e):yt(e)}function Gt(e){return Bt(e)?function(e){return e.match(Ie)||[]}(e):function(e){return e.split("")}(e)}function Wt(e){for(var t=e.length;t--&&Y.test(e.charAt(t)););return t}var Yt=Ct({"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"});var Xt=function e(t){var n,r=(t=null==t?Ge:Xt.defaults(Ge.Object(),t,Xt.pick(Ge,Ne))).Array,i=t.Date,Y=t.Error,pe=t.Function,fe=t.Math,de=t.Object,ge=t.RegExp,me=t.String,ve=t.TypeError,ye=r.prototype,be=pe.prototype,$e=de.prototype,we=t["__core-js_shared__"],xe=be.toString,Se=$e.hasOwnProperty,Ee=0,Ae=(n=/[^.]+$/.exec(we&&we.keys&&we.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"",Ce=$e.toString,Te=xe.call(de),Fe=Ge._,ke=ge("^"+xe.call(Se).replace(K,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Re=Xe?t.Buffer:void 0,Pe=t.Symbol,Ie=t.Uint8Array,je=Re?Re.allocUnsafe:void 0,He=Ht(de.getPrototypeOf,de),ze=de.create,Ke=$e.propertyIsEnumerable,We=ye.splice,Ye=Pe?Pe.isConcatSpreadable:void 0,Qe=Pe?Pe.iterator:void 0,Je=Pe?Pe.toStringTag:void 0,yt=function(){try{var e=eo(de,"defineProperty");return e({},"",{}),e}catch(e){}}(),Ct=t.clearTimeout!==Ge.clearTimeout&&t.clearTimeout,Qt=i&&i.now!==Ge.Date.now&&i.now,Jt=t.setTimeout!==Ge.setTimeout&&t.setTimeout,Zt=fe.ceil,en=fe.floor,tn=de.getOwnPropertySymbols,nn=Re?Re.isBuffer:void 0,rn=t.isFinite,on=ye.join,an=Ht(de.keys,de),sn=fe.max,un=fe.min,ln=i.now,cn=t.parseInt,hn=fe.random,pn=ye.reverse,fn=eo(t,"DataView"),dn=eo(t,"Map"),gn=eo(t,"Promise"),mn=eo(t,"Set"),vn=eo(t,"WeakMap"),yn=eo(de,"create"),bn=vn&&new vn,$n={},wn=Fo(fn),xn=Fo(dn),Sn=Fo(gn),En=Fo(mn),An=Fo(vn),Cn=Pe?Pe.prototype:void 0,Tn=Cn?Cn.valueOf:void 0,Fn=Cn?Cn.toString:void 0;function kn(e){if(za(e)&&!Ia(e)&&!(e instanceof On)){if(e instanceof Dn)return e;if(Se.call(e,"__wrapped__"))return ko(e)}return new Dn(e)}var Rn=function(){function e(){}return function(t){if(!qa(t))return{};if(ze)return ze(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();function Pn(){}function Dn(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=void 0}function On(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=4294967295,this.__views__=[]}function In(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function _n(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function jn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Ln(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new jn;++t<n;)this.add(e[t])}function Nn(e){var t=this.__data__=new _n(e);this.size=t.size}function Mn(e,t){var n=Ia(e),r=!n&&Oa(e),i=!n&&!r&&Na(e),o=!n&&!r&&!i&&Za(e),a=n||r||i||o,s=a?kt(e.length,me):[],u=s.length;for(var l in e)!t&&!Se.call(e,l)||a&&("length"==l||i&&("offset"==l||"parent"==l)||o&&("buffer"==l||"byteLength"==l||"byteOffset"==l)||so(l,u))||s.push(l);return s}function Bn(e){var t=e.length;return t?e[Lr(0,t-1)]:void 0}function Un(e,t){return Ao(yi(e),Xn(t,0,e.length))}function Hn(e){return Ao(yi(e))}function Vn(e,t,n){(void 0!==n&&!Ra(e[t],n)||void 0===n&&!(t in e))&&Wn(e,t,n)}function qn(e,t,n){var r=e[t];Se.call(e,t)&&Ra(r,n)&&(void 0!==n||t in e)||Wn(e,t,n)}function zn(e,t){for(var n=e.length;n--;)if(Ra(e[n][0],t))return n;return-1}function Kn(e,t,n,r){return tr(e,(function(e,i,o){t(r,e,n(e),o)})),r}function Gn(e,t){return e&&bi(t,ws(t),e)}function Wn(e,t,n){"__proto__"==t&&yt?yt(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function Yn(e,t){for(var n=-1,i=t.length,o=r(i),a=null==e;++n<i;)o[n]=a?void 0:ms(e,t[n]);return o}function Xn(e,t,n){return e==e&&(void 0!==n&&(e=e<=n?e:n),void 0!==t&&(e=e>=t?e:t)),e}function Qn(e,t,n,r,i,o){var a,s=1&t,l=2&t,p=4&t;if(n&&(a=i?n(e,r,i,o):n(e)),void 0!==a)return a;if(!qa(e))return e;var x=Ia(e);if(x){if(a=function(e){var t=e.length,n=new e.constructor(t);t&&"string"==typeof e[0]&&Se.call(e,"index")&&(n.index=e.index,n.input=e.input);return n}(e),!s)return yi(e,a)}else{var O=ro(e),I=O==f||O==d;if(Na(e))return pi(e,s);if(O==v||O==u||I&&!i){if(a=l||I?{}:oo(e),!s)return l?function(e,t){return bi(e,no(e),t)}(e,function(e,t){return e&&bi(t,xs(t),e)}(a,e)):function(e,t){return bi(e,to(e),t)}(e,Gn(a,e))}else{if(!Ue[O])return i?e:{};a=function(e,t,n){var r=e.constructor;switch(t){case S:return fi(e);case c:case h:return new r(+e);case E:return function(e,t){var n=t?fi(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}(e,n);case A:case C:case T:case F:case k:case R:case"[object Uint8ClampedArray]":case P:case D:return di(e,n);case g:return new r;case m:case $:return new r(e);case y:return function(e){var t=new e.constructor(e.source,re.exec(e));return t.lastIndex=e.lastIndex,t}(e);case b:return new r;case w:return i=e,Tn?de(Tn.call(i)):{}}var i}(e,O,s)}}o||(o=new Nn);var _=o.get(e);if(_)return _;o.set(e,a),Xa(e)?e.forEach((function(r){a.add(Qn(r,t,n,r,e,o))})):Ka(e)&&e.forEach((function(r,i){a.set(i,Qn(r,t,n,i,e,o))}));var j=x?void 0:(p?l?Gi:Ki:l?xs:ws)(e);return st(j||e,(function(r,i){j&&(r=e[i=r]),qn(a,i,Qn(r,t,n,i,e,o))})),a}function Jn(e,t,n){var r=n.length;if(null==e)return!r;for(e=de(e);r--;){var i=n[r],o=t[i],a=e[i];if(void 0===a&&!(i in e)||!o(a))return!1}return!0}function Zn(e,t,n){if("function"!=typeof e)throw new ve(o);return wo((function(){e.apply(void 0,n)}),t)}function er(e,t,n,r){var i=-1,o=ht,a=!0,s=e.length,u=[],l=t.length;if(!s)return u;n&&(t=ft(t,Pt(n))),r?(o=pt,a=!1):t.length>=200&&(o=Ot,a=!1,t=new Ln(t));e:for(;++i<s;){var c=e[i],h=null==n?c:n(c);if(c=r||0!==c?c:0,a&&h==h){for(var p=l;p--;)if(t[p]===h)continue e;u.push(c)}else o(t,h,r)||u.push(c)}return u}kn.templateSettings={escape:B,evaluate:U,interpolate:H,variable:"",imports:{_:kn}},kn.prototype=Pn.prototype,kn.prototype.constructor=kn,Dn.prototype=Rn(Pn.prototype),Dn.prototype.constructor=Dn,On.prototype=Rn(Pn.prototype),On.prototype.constructor=On,In.prototype.clear=function(){this.__data__=yn?yn(null):{},this.size=0},In.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},In.prototype.get=function(e){var t=this.__data__;if(yn){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return Se.call(t,e)?t[e]:void 0},In.prototype.has=function(e){var t=this.__data__;return yn?void 0!==t[e]:Se.call(t,e)},In.prototype.set=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=yn&&void 0===t?"__lodash_hash_undefined__":t,this},_n.prototype.clear=function(){this.__data__=[],this.size=0},_n.prototype.delete=function(e){var t=this.__data__,n=zn(t,e);return!(n<0)&&(n==t.length-1?t.pop():We.call(t,n,1),--this.size,!0)},_n.prototype.get=function(e){var t=this.__data__,n=zn(t,e);return n<0?void 0:t[n][1]},_n.prototype.has=function(e){return zn(this.__data__,e)>-1},_n.prototype.set=function(e,t){var n=this.__data__,r=zn(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},jn.prototype.clear=function(){this.size=0,this.__data__={hash:new In,map:new(dn||_n),string:new In}},jn.prototype.delete=function(e){var t=Ji(this,e).delete(e);return this.size-=t?1:0,t},jn.prototype.get=function(e){return Ji(this,e).get(e)},jn.prototype.has=function(e){return Ji(this,e).has(e)},jn.prototype.set=function(e,t){var n=Ji(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},Ln.prototype.add=Ln.prototype.push=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this},Ln.prototype.has=function(e){return this.__data__.has(e)},Nn.prototype.clear=function(){this.__data__=new _n,this.size=0},Nn.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},Nn.prototype.get=function(e){return this.__data__.get(e)},Nn.prototype.has=function(e){return this.__data__.has(e)},Nn.prototype.set=function(e,t){var n=this.__data__;if(n instanceof _n){var r=n.__data__;if(!dn||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new jn(r)}return n.set(e,t),this.size=n.size,this};var tr=xi(lr),nr=xi(cr,!0);function rr(e,t){var n=!0;return tr(e,(function(e,r,i){return n=!!t(e,r,i)})),n}function ir(e,t,n){for(var r=-1,i=e.length;++r<i;){var o=e[r],a=t(o);if(null!=a&&(void 0===s?a==a&&!Ja(a):n(a,s)))var s=a,u=o}return u}function or(e,t){var n=[];return tr(e,(function(e,r,i){t(e,r,i)&&n.push(e)})),n}function ar(e,t,n,r,i){var o=-1,a=e.length;for(n||(n=ao),i||(i=[]);++o<a;){var s=e[o];t>0&&n(s)?t>1?ar(s,t-1,n,r,i):dt(i,s):r||(i[i.length]=s)}return i}var sr=Si(),ur=Si(!0);function lr(e,t){return e&&sr(e,t,ws)}function cr(e,t){return e&&ur(e,t,ws)}function hr(e,t){return ct(t,(function(t){return Ua(e[t])}))}function pr(e,t){for(var n=0,r=(t=ui(t,e)).length;null!=e&&n<r;)e=e[To(t[n++])];return n&&n==r?e:void 0}function fr(e,t,n){var r=t(e);return Ia(e)?r:dt(r,n(e))}function dr(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":Je&&Je in de(e)?function(e){var t=Se.call(e,Je),n=e[Je];try{e[Je]=void 0;var r=!0}catch(e){}var i=Ce.call(e);r&&(t?e[Je]=n:delete e[Je]);return i}(e):function(e){return Ce.call(e)}(e)}function gr(e,t){return e>t}function mr(e,t){return null!=e&&Se.call(e,t)}function vr(e,t){return null!=e&&t in de(e)}function yr(e,t,n){for(var i=n?pt:ht,o=e[0].length,a=e.length,s=a,u=r(a),l=1/0,c=[];s--;){var h=e[s];s&&t&&(h=ft(h,Pt(t))),l=un(h.length,l),u[s]=!n&&(t||o>=120&&h.length>=120)?new Ln(s&&h):void 0}h=e[0];var p=-1,f=u[0];e:for(;++p<o&&c.length<l;){var d=h[p],g=t?t(d):d;if(d=n||0!==d?d:0,!(f?Ot(f,g):i(c,g,n))){for(s=a;--s;){var m=u[s];if(!(m?Ot(m,g):i(e[s],g,n)))continue e}f&&f.push(g),c.push(d)}}return c}function br(e,t,n){var r=null==(e=vo(e,t=ui(t,e)))?e:e[To(Bo(t))];return null==r?void 0:ot(r,e,n)}function $r(e){return za(e)&&dr(e)==u}function wr(e,t,n,r,i){return e===t||(null==e||null==t||!za(e)&&!za(t)?e!=e&&t!=t:function(e,t,n,r,i,o){var a=Ia(e),s=Ia(t),f=a?l:ro(e),d=s?l:ro(t),x=(f=f==u?v:f)==v,A=(d=d==u?v:d)==v,C=f==d;if(C&&Na(e)){if(!Na(t))return!1;a=!0,x=!1}if(C&&!x)return o||(o=new Nn),a||Za(e)?qi(e,t,n,r,i,o):function(e,t,n,r,i,o,a){switch(n){case E:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case S:return!(e.byteLength!=t.byteLength||!o(new Ie(e),new Ie(t)));case c:case h:case m:return Ra(+e,+t);case p:return e.name==t.name&&e.message==t.message;case y:case $:return e==t+"";case g:var s=Ut;case b:var u=1&r;if(s||(s=qt),e.size!=t.size&&!u)return!1;var l=a.get(e);if(l)return l==t;r|=2,a.set(e,t);var f=qi(s(e),s(t),r,i,o,a);return a.delete(e),f;case w:if(Tn)return Tn.call(e)==Tn.call(t)}return!1}(e,t,f,n,r,i,o);if(!(1&n)){var T=x&&Se.call(e,"__wrapped__"),F=A&&Se.call(t,"__wrapped__");if(T||F){var k=T?e.value():e,R=F?t.value():t;return o||(o=new Nn),i(k,R,n,r,o)}}if(!C)return!1;return o||(o=new Nn),function(e,t,n,r,i,o){var a=1&n,s=Ki(e),u=s.length,l=Ki(t).length;if(u!=l&&!a)return!1;var c=u;for(;c--;){var h=s[c];if(!(a?h in t:Se.call(t,h)))return!1}var p=o.get(e),f=o.get(t);if(p&&f)return p==t&&f==e;var d=!0;o.set(e,t),o.set(t,e);var g=a;for(;++c<u;){h=s[c];var m=e[h],v=t[h];if(r)var y=a?r(v,m,h,t,e,o):r(m,v,h,e,t,o);if(!(void 0===y?m===v||i(m,v,n,r,o):y)){d=!1;break}g||(g="constructor"==h)}if(d&&!g){var b=e.constructor,$=t.constructor;b==$||!("constructor"in e)||!("constructor"in t)||"function"==typeof b&&b instanceof b&&"function"==typeof $&&$ instanceof $||(d=!1)}return o.delete(e),o.delete(t),d}(e,t,n,r,i,o)}(e,t,n,r,wr,i))}function xr(e,t,n,r){var i=n.length,o=i,a=!r;if(null==e)return!o;for(e=de(e);i--;){var s=n[i];if(a&&s[2]?s[1]!==e[s[0]]:!(s[0]in e))return!1}for(;++i<o;){var u=(s=n[i])[0],l=e[u],c=s[1];if(a&&s[2]){if(void 0===l&&!(u in e))return!1}else{var h=new Nn;if(r)var p=r(l,c,u,e,t,h);if(!(void 0===p?wr(c,l,3,r,h):p))return!1}}return!0}function Sr(e){return!(!qa(e)||(t=e,Ae&&Ae in t))&&(Ua(e)?ke:ae).test(Fo(e));var t}function Er(e){return"function"==typeof e?e:null==e?Gs:"object"==typeof e?Ia(e)?Rr(e[0],e[1]):kr(e):nu(e)}function Ar(e){if(!po(e))return an(e);var t=[];for(var n in de(e))Se.call(e,n)&&"constructor"!=n&&t.push(n);return t}function Cr(e){if(!qa(e))return function(e){var t=[];if(null!=e)for(var n in de(e))t.push(n);return t}(e);var t=po(e),n=[];for(var r in e)("constructor"!=r||!t&&Se.call(e,r))&&n.push(r);return n}function Tr(e,t){return e<t}function Fr(e,t){var n=-1,i=ja(e)?r(e.length):[];return tr(e,(function(e,r,o){i[++n]=t(e,r,o)})),i}function kr(e){var t=Zi(e);return 1==t.length&&t[0][2]?go(t[0][0],t[0][1]):function(n){return n===e||xr(n,e,t)}}function Rr(e,t){return lo(e)&&fo(t)?go(To(e),t):function(n){var r=ms(n,e);return void 0===r&&r===t?vs(n,e):wr(t,r,3)}}function Pr(e,t,n,r,i){e!==t&&sr(t,(function(o,a){if(i||(i=new Nn),qa(o))!function(e,t,n,r,i,o,a){var s=bo(e,n),u=bo(t,n),l=a.get(u);if(l)return void Vn(e,n,l);var c=o?o(s,u,n+"",e,t,a):void 0,h=void 0===c;if(h){var p=Ia(u),f=!p&&Na(u),d=!p&&!f&&Za(u);c=u,p||f||d?Ia(s)?c=s:La(s)?c=yi(s):f?(h=!1,c=pi(u,!0)):d?(h=!1,c=di(u,!0)):c=[]:Wa(u)||Oa(u)?(c=s,Oa(s)?c=ss(s):qa(s)&&!Ua(s)||(c=oo(u))):h=!1}h&&(a.set(u,c),i(c,u,r,o,a),a.delete(u));Vn(e,n,c)}(e,t,a,n,Pr,r,i);else{var s=r?r(bo(e,a),o,a+"",e,t,i):void 0;void 0===s&&(s=o),Vn(e,a,s)}}),xs)}function Dr(e,t){var n=e.length;if(n)return so(t+=t<0?n:0,n)?e[t]:void 0}function Or(e,t,n){t=t.length?ft(t,(function(e){return Ia(e)?function(t){return pr(t,1===e.length?e[0]:e)}:e})):[Gs];var r=-1;return t=ft(t,Pt(Qi())),function(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}(Fr(e,(function(e,n,i){return{criteria:ft(t,(function(t){return t(e)})),index:++r,value:e}})),(function(e,t){return function(e,t,n){var r=-1,i=e.criteria,o=t.criteria,a=i.length,s=n.length;for(;++r<a;){var u=gi(i[r],o[r]);if(u){if(r>=s)return u;var l=n[r];return u*("desc"==l?-1:1)}}return e.index-t.index}(e,t,n)}))}function Ir(e,t,n){for(var r=-1,i=t.length,o={};++r<i;){var a=t[r],s=pr(e,a);n(s,a)&&Hr(o,ui(a,e),s)}return o}function _r(e,t,n,r){var i=r?xt:wt,o=-1,a=t.length,s=e;for(e===t&&(t=yi(t)),n&&(s=ft(e,Pt(n)));++o<a;)for(var u=0,l=t[o],c=n?n(l):l;(u=i(s,c,u,r))>-1;)s!==e&&We.call(s,u,1),We.call(e,u,1);return e}function jr(e,t){for(var n=e?t.length:0,r=n-1;n--;){var i=t[n];if(n==r||i!==o){var o=i;so(i)?We.call(e,i,1):ei(e,i)}}return e}function Lr(e,t){return e+en(hn()*(t-e+1))}function Nr(e,t){var n="";if(!e||t<1||t>9007199254740991)return n;do{t%2&&(n+=e),(t=en(t/2))&&(e+=e)}while(t);return n}function Mr(e,t){return xo(mo(e,t,Gs),e+"")}function Br(e){return Bn(Rs(e))}function Ur(e,t){var n=Rs(e);return Ao(n,Xn(t,0,n.length))}function Hr(e,t,n,r){if(!qa(e))return e;for(var i=-1,o=(t=ui(t,e)).length,a=o-1,s=e;null!=s&&++i<o;){var u=To(t[i]),l=n;if("__proto__"===u||"constructor"===u||"prototype"===u)return e;if(i!=a){var c=s[u];void 0===(l=r?r(c,u,s):void 0)&&(l=qa(c)?c:so(t[i+1])?[]:{})}qn(s,u,l),s=s[u]}return e}var Vr=bn?function(e,t){return bn.set(e,t),e}:Gs,qr=yt?function(e,t){return yt(e,"toString",{configurable:!0,enumerable:!1,value:qs(t),writable:!0})}:Gs;function zr(e){return Ao(Rs(e))}function Kr(e,t,n){var i=-1,o=e.length;t<0&&(t=-t>o?0:o+t),(n=n>o?o:n)<0&&(n+=o),o=t>n?0:n-t>>>0,t>>>=0;for(var a=r(o);++i<o;)a[i]=e[i+t];return a}function Gr(e,t){var n;return tr(e,(function(e,r,i){return!(n=t(e,r,i))})),!!n}function Wr(e,t,n){var r=0,i=null==e?r:e.length;if("number"==typeof t&&t==t&&i<=2147483647){for(;r<i;){var o=r+i>>>1,a=e[o];null!==a&&!Ja(a)&&(n?a<=t:a<t)?r=o+1:i=o}return i}return Yr(e,t,Gs,n)}function Yr(e,t,n,r){var i=0,o=null==e?0:e.length;if(0===o)return 0;for(var a=(t=n(t))!=t,s=null===t,u=Ja(t),l=void 0===t;i<o;){var c=en((i+o)/2),h=n(e[c]),p=void 0!==h,f=null===h,d=h==h,g=Ja(h);if(a)var m=r||d;else m=l?d&&(r||p):s?d&&p&&(r||!f):u?d&&p&&!f&&(r||!g):!f&&!g&&(r?h<=t:h<t);m?i=c+1:o=c}return un(o,4294967294)}function Xr(e,t){for(var n=-1,r=e.length,i=0,o=[];++n<r;){var a=e[n],s=t?t(a):a;if(!n||!Ra(s,u)){var u=s;o[i++]=0===a?0:a}}return o}function Qr(e){return"number"==typeof e?e:Ja(e)?NaN:+e}function Jr(e){if("string"==typeof e)return e;if(Ia(e))return ft(e,Jr)+"";if(Ja(e))return Fn?Fn.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function Zr(e,t,n){var r=-1,i=ht,o=e.length,a=!0,s=[],u=s;if(n)a=!1,i=pt;else if(o>=200){var l=t?null:Ni(e);if(l)return qt(l);a=!1,i=Ot,u=new Ln}else u=t?[]:s;e:for(;++r<o;){var c=e[r],h=t?t(c):c;if(c=n||0!==c?c:0,a&&h==h){for(var p=u.length;p--;)if(u[p]===h)continue e;t&&u.push(h),s.push(c)}else i(u,h,n)||(u!==s&&u.push(h),s.push(c))}return s}function ei(e,t){return null==(e=vo(e,t=ui(t,e)))||delete e[To(Bo(t))]}function ti(e,t,n,r){return Hr(e,t,n(pr(e,t)),r)}function ni(e,t,n,r){for(var i=e.length,o=r?i:-1;(r?o--:++o<i)&&t(e[o],o,e););return n?Kr(e,r?0:o,r?o+1:i):Kr(e,r?o+1:0,r?i:o)}function ri(e,t){var n=e;return n instanceof On&&(n=n.value()),gt(t,(function(e,t){return t.func.apply(t.thisArg,dt([e],t.args))}),n)}function ii(e,t,n){var i=e.length;if(i<2)return i?Zr(e[0]):[];for(var o=-1,a=r(i);++o<i;)for(var s=e[o],u=-1;++u<i;)u!=o&&(a[o]=er(a[o]||s,e[u],t,n));return Zr(ar(a,1),t,n)}function oi(e,t,n){for(var r=-1,i=e.length,o=t.length,a={};++r<i;){var s=r<o?t[r]:void 0;n(a,e[r],s)}return a}function ai(e){return La(e)?e:[]}function si(e){return"function"==typeof e?e:Gs}function ui(e,t){return Ia(e)?e:lo(e,t)?[e]:Co(us(e))}var li=Mr;function ci(e,t,n){var r=e.length;return n=void 0===n?r:n,!t&&n>=r?e:Kr(e,t,n)}var hi=Ct||function(e){return Ge.clearTimeout(e)};function pi(e,t){if(t)return e.slice();var n=e.length,r=je?je(n):new e.constructor(n);return e.copy(r),r}function fi(e){var t=new e.constructor(e.byteLength);return new Ie(t).set(new Ie(e)),t}function di(e,t){var n=t?fi(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function gi(e,t){if(e!==t){var n=void 0!==e,r=null===e,i=e==e,o=Ja(e),a=void 0!==t,s=null===t,u=t==t,l=Ja(t);if(!s&&!l&&!o&&e>t||o&&a&&u&&!s&&!l||r&&a&&u||!n&&u||!i)return 1;if(!r&&!o&&!l&&e<t||l&&n&&i&&!r&&!o||s&&n&&i||!a&&i||!u)return-1}return 0}function mi(e,t,n,i){for(var o=-1,a=e.length,s=n.length,u=-1,l=t.length,c=sn(a-s,0),h=r(l+c),p=!i;++u<l;)h[u]=t[u];for(;++o<s;)(p||o<a)&&(h[n[o]]=e[o]);for(;c--;)h[u++]=e[o++];return h}function vi(e,t,n,i){for(var o=-1,a=e.length,s=-1,u=n.length,l=-1,c=t.length,h=sn(a-u,0),p=r(h+c),f=!i;++o<h;)p[o]=e[o];for(var d=o;++l<c;)p[d+l]=t[l];for(;++s<u;)(f||o<a)&&(p[d+n[s]]=e[o++]);return p}function yi(e,t){var n=-1,i=e.length;for(t||(t=r(i));++n<i;)t[n]=e[n];return t}function bi(e,t,n,r){var i=!n;n||(n={});for(var o=-1,a=t.length;++o<a;){var s=t[o],u=r?r(n[s],e[s],s,n,e):void 0;void 0===u&&(u=e[s]),i?Wn(n,s,u):qn(n,s,u)}return n}function $i(e,t){return function(n,r){var i=Ia(n)?at:Kn,o=t?t():{};return i(n,e,Qi(r,2),o)}}function wi(e){return Mr((function(t,n){var r=-1,i=n.length,o=i>1?n[i-1]:void 0,a=i>2?n[2]:void 0;for(o=e.length>3&&"function"==typeof o?(i--,o):void 0,a&&uo(n[0],n[1],a)&&(o=i<3?void 0:o,i=1),t=de(t);++r<i;){var s=n[r];s&&e(t,s,r,o)}return t}))}function xi(e,t){return function(n,r){if(null==n)return n;if(!ja(n))return e(n,r);for(var i=n.length,o=t?i:-1,a=de(n);(t?o--:++o<i)&&!1!==r(a[o],o,a););return n}}function Si(e){return function(t,n,r){for(var i=-1,o=de(t),a=r(t),s=a.length;s--;){var u=a[e?s:++i];if(!1===n(o[u],u,o))break}return t}}function Ei(e){return function(t){var n=Bt(t=us(t))?Gt(t):void 0,r=n?n[0]:t.charAt(0),i=n?ci(n,1).join(""):t.slice(1);return r[e]()+i}}function Ai(e){return function(t){return gt(Us(Os(t).replace(De,"")),e,"")}}function Ci(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var n=Rn(e.prototype),r=e.apply(n,t);return qa(r)?r:n}}function Ti(e){return function(t,n,r){var i=de(t);if(!ja(t)){var o=Qi(n,3);t=ws(t),n=function(e){return o(i[e],e,i)}}var a=e(t,n,r);return a>-1?i[o?t[a]:a]:void 0}}function Fi(e){return zi((function(t){var n=t.length,r=n,i=Dn.prototype.thru;for(e&&t.reverse();r--;){var a=t[r];if("function"!=typeof a)throw new ve(o);if(i&&!s&&"wrapper"==Yi(a))var s=new Dn([],!0)}for(r=s?r:n;++r<n;){var u=Yi(a=t[r]),l="wrapper"==u?Wi(a):void 0;s=l&&co(l[0])&&424==l[1]&&!l[4].length&&1==l[9]?s[Yi(l[0])].apply(s,l[3]):1==a.length&&co(a)?s[u]():s.thru(a)}return function(){var e=arguments,r=e[0];if(s&&1==e.length&&Ia(r))return s.plant(r).value();for(var i=0,o=n?t[i].apply(this,e):r;++i<n;)o=t[i].call(this,o);return o}}))}function ki(e,t,n,i,o,a,s,u,l,c){var h=128&t,p=1&t,f=2&t,d=24&t,g=512&t,m=f?void 0:Ci(e);return function v(){for(var y=arguments.length,b=r(y),$=y;$--;)b[$]=arguments[$];if(d)var w=Xi(v),x=jt(b,w);if(i&&(b=mi(b,i,o,d)),a&&(b=vi(b,a,s,d)),y-=x,d&&y<c){var S=Vt(b,w);return ji(e,t,ki,v.placeholder,n,b,S,u,l,c-y)}var E=p?n:this,A=f?E[e]:e;return y=b.length,u?b=yo(b,u):g&&y>1&&b.reverse(),h&&l<y&&(b.length=l),this&&this!==Ge&&this instanceof v&&(A=m||Ci(A)),A.apply(E,b)}}function Ri(e,t){return function(n,r){return function(e,t,n,r){return lr(e,(function(e,i,o){t(r,n(e),i,o)})),r}(n,e,t(r),{})}}function Pi(e,t){return function(n,r){var i;if(void 0===n&&void 0===r)return t;if(void 0!==n&&(i=n),void 0!==r){if(void 0===i)return r;"string"==typeof n||"string"==typeof r?(n=Jr(n),r=Jr(r)):(n=Qr(n),r=Qr(r)),i=e(n,r)}return i}}function Di(e){return zi((function(t){return t=ft(t,Pt(Qi())),Mr((function(n){var r=this;return e(t,(function(e){return ot(e,r,n)}))}))}))}function Oi(e,t){var n=(t=void 0===t?" ":Jr(t)).length;if(n<2)return n?Nr(t,e):t;var r=Nr(t,Zt(e/Kt(t)));return Bt(t)?ci(Gt(r),0,e).join(""):r.slice(0,e)}function Ii(e){return function(t,n,i){return i&&"number"!=typeof i&&uo(t,n,i)&&(n=i=void 0),t=rs(t),void 0===n?(n=t,t=0):n=rs(n),function(e,t,n,i){for(var o=-1,a=sn(Zt((t-e)/(n||1)),0),s=r(a);a--;)s[i?a:++o]=e,e+=n;return s}(t,n,i=void 0===i?t<n?1:-1:rs(i),e)}}function _i(e){return function(t,n){return"string"==typeof t&&"string"==typeof n||(t=as(t),n=as(n)),e(t,n)}}function ji(e,t,n,r,i,o,a,s,u,l){var c=8&t;t|=c?32:64,4&(t&=~(c?64:32))||(t&=-4);var h=[e,t,i,c?o:void 0,c?a:void 0,c?void 0:o,c?void 0:a,s,u,l],p=n.apply(void 0,h);return co(e)&&$o(p,h),p.placeholder=r,So(p,e,t)}function Li(e){var t=fe[e];return function(e,n){if(e=as(e),(n=null==n?0:un(is(n),292))&&rn(e)){var r=(us(e)+"e").split("e");return+((r=(us(t(r[0]+"e"+(+r[1]+n)))+"e").split("e"))[0]+"e"+(+r[1]-n))}return t(e)}}var Ni=mn&&1/qt(new mn([,-0]))[1]==1/0?function(e){return new mn(e)}:Js;function Mi(e){return function(t){var n=ro(t);return n==g?Ut(t):n==b?zt(t):function(e,t){return ft(t,(function(t){return[t,e[t]]}))}(t,e(t))}}function Bi(e,t,n,i,s,u,l,c){var h=2&t;if(!h&&"function"!=typeof e)throw new ve(o);var p=i?i.length:0;if(p||(t&=-97,i=s=void 0),l=void 0===l?l:sn(is(l),0),c=void 0===c?c:is(c),p-=s?s.length:0,64&t){var f=i,d=s;i=s=void 0}var g=h?void 0:Wi(e),m=[e,t,n,i,s,f,d,u,l,c];if(g&&function(e,t){var n=e[1],r=t[1],i=n|r,o=i<131,s=128==r&&8==n||128==r&&256==n&&e[7].length<=t[8]||384==r&&t[7].length<=t[8]&&8==n;if(!o&&!s)return e;1&r&&(e[2]=t[2],i|=1&n?0:4);var u=t[3];if(u){var l=e[3];e[3]=l?mi(l,u,t[4]):u,e[4]=l?Vt(e[3],a):t[4]}(u=t[5])&&(l=e[5],e[5]=l?vi(l,u,t[6]):u,e[6]=l?Vt(e[5],a):t[6]);(u=t[7])&&(e[7]=u);128&r&&(e[8]=null==e[8]?t[8]:un(e[8],t[8]));null==e[9]&&(e[9]=t[9]);e[0]=t[0],e[1]=i}(m,g),e=m[0],t=m[1],n=m[2],i=m[3],s=m[4],!(c=m[9]=void 0===m[9]?h?0:e.length:sn(m[9]-p,0))&&24&t&&(t&=-25),t&&1!=t)v=8==t||16==t?function(e,t,n){var i=Ci(e);return function o(){for(var a=arguments.length,s=r(a),u=a,l=Xi(o);u--;)s[u]=arguments[u];var c=a<3&&s[0]!==l&&s[a-1]!==l?[]:Vt(s,l);if((a-=c.length)<n)return ji(e,t,ki,o.placeholder,void 0,s,c,void 0,void 0,n-a);var h=this&&this!==Ge&&this instanceof o?i:e;return ot(h,this,s)}}(e,t,c):32!=t&&33!=t||s.length?ki.apply(void 0,m):function(e,t,n,i){var o=1&t,a=Ci(e);return function t(){for(var s=-1,u=arguments.length,l=-1,c=i.length,h=r(c+u),p=this&&this!==Ge&&this instanceof t?a:e;++l<c;)h[l]=i[l];for(;u--;)h[l++]=arguments[++s];return ot(p,o?n:this,h)}}(e,t,n,i);else var v=function(e,t,n){var r=1&t,i=Ci(e);return function t(){var o=this&&this!==Ge&&this instanceof t?i:e;return o.apply(r?n:this,arguments)}}(e,t,n);return So((g?Vr:$o)(v,m),e,t)}function Ui(e,t,n,r){return void 0===e||Ra(e,$e[n])&&!Se.call(r,n)?t:e}function Hi(e,t,n,r,i,o){return qa(e)&&qa(t)&&(o.set(t,e),Pr(e,t,void 0,Hi,o),o.delete(t)),e}function Vi(e){return Wa(e)?void 0:e}function qi(e,t,n,r,i,o){var a=1&n,s=e.length,u=t.length;if(s!=u&&!(a&&u>s))return!1;var l=o.get(e),c=o.get(t);if(l&&c)return l==t&&c==e;var h=-1,p=!0,f=2&n?new Ln:void 0;for(o.set(e,t),o.set(t,e);++h<s;){var d=e[h],g=t[h];if(r)var m=a?r(g,d,h,t,e,o):r(d,g,h,e,t,o);if(void 0!==m){if(m)continue;p=!1;break}if(f){if(!vt(t,(function(e,t){if(!Ot(f,t)&&(d===e||i(d,e,n,r,o)))return f.push(t)}))){p=!1;break}}else if(d!==g&&!i(d,g,n,r,o)){p=!1;break}}return o.delete(e),o.delete(t),p}function zi(e){return xo(mo(e,void 0,_o),e+"")}function Ki(e){return fr(e,ws,to)}function Gi(e){return fr(e,xs,no)}var Wi=bn?function(e){return bn.get(e)}:Js;function Yi(e){for(var t=e.name+"",n=$n[t],r=Se.call($n,t)?n.length:0;r--;){var i=n[r],o=i.func;if(null==o||o==e)return i.name}return t}function Xi(e){return(Se.call(kn,"placeholder")?kn:e).placeholder}function Qi(){var e=kn.iteratee||Ws;return e=e===Ws?Er:e,arguments.length?e(arguments[0],arguments[1]):e}function Ji(e,t){var n,r,i=e.__data__;return("string"==(r=typeof(n=t))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?i["string"==typeof t?"string":"hash"]:i.map}function Zi(e){for(var t=ws(e),n=t.length;n--;){var r=t[n],i=e[r];t[n]=[r,i,fo(i)]}return t}function eo(e,t){var n=function(e,t){return null==e?void 0:e[t]}(e,t);return Sr(n)?n:void 0}var to=tn?function(e){return null==e?[]:(e=de(e),ct(tn(e),(function(t){return Ke.call(e,t)})))}:ou,no=tn?function(e){for(var t=[];e;)dt(t,to(e)),e=He(e);return t}:ou,ro=dr;function io(e,t,n){for(var r=-1,i=(t=ui(t,e)).length,o=!1;++r<i;){var a=To(t[r]);if(!(o=null!=e&&n(e,a)))break;e=e[a]}return o||++r!=i?o:!!(i=null==e?0:e.length)&&Va(i)&&so(a,i)&&(Ia(e)||Oa(e))}function oo(e){return"function"!=typeof e.constructor||po(e)?{}:Rn(He(e))}function ao(e){return Ia(e)||Oa(e)||!!(Ye&&e&&e[Ye])}function so(e,t){var n=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==n||"symbol"!=n&&ue.test(e))&&e>-1&&e%1==0&&e<t}function uo(e,t,n){if(!qa(n))return!1;var r=typeof t;return!!("number"==r?ja(n)&&so(t,n.length):"string"==r&&t in n)&&Ra(n[t],e)}function lo(e,t){if(Ia(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!Ja(e))||(q.test(e)||!V.test(e)||null!=t&&e in de(t))}function co(e){var t=Yi(e),n=kn[t];if("function"!=typeof n||!(t in On.prototype))return!1;if(e===n)return!0;var r=Wi(n);return!!r&&e===r[0]}(fn&&ro(new fn(new ArrayBuffer(1)))!=E||dn&&ro(new dn)!=g||gn&&"[object Promise]"!=ro(gn.resolve())||mn&&ro(new mn)!=b||vn&&ro(new vn)!=x)&&(ro=function(e){var t=dr(e),n=t==v?e.constructor:void 0,r=n?Fo(n):"";if(r)switch(r){case wn:return E;case xn:return g;case Sn:return"[object Promise]";case En:return b;case An:return x}return t});var ho=we?Ua:au;function po(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||$e)}function fo(e){return e==e&&!qa(e)}function go(e,t){return function(n){return null!=n&&(n[e]===t&&(void 0!==t||e in de(n)))}}function mo(e,t,n){return t=sn(void 0===t?e.length-1:t,0),function(){for(var i=arguments,o=-1,a=sn(i.length-t,0),s=r(a);++o<a;)s[o]=i[t+o];o=-1;for(var u=r(t+1);++o<t;)u[o]=i[o];return u[t]=n(s),ot(e,this,u)}}function vo(e,t){return t.length<2?e:pr(e,Kr(t,0,-1))}function yo(e,t){for(var n=e.length,r=un(t.length,n),i=yi(e);r--;){var o=t[r];e[r]=so(o,n)?i[o]:void 0}return e}function bo(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}var $o=Eo(Vr),wo=Jt||function(e,t){return Ge.setTimeout(e,t)},xo=Eo(qr);function So(e,t,n){var r=t+"";return xo(e,function(e,t){var n=t.length;if(!n)return e;var r=n-1;return t[r]=(n>1?"& ":"")+t[r],t=t.join(n>2?", ":" "),e.replace(X,"{\n/* [wrapped with "+t+"] */\n")}(r,function(e,t){return st(s,(function(n){var r="_."+n[0];t&n[1]&&!ht(e,r)&&e.push(r)})),e.sort()}(function(e){var t=e.match(Q);return t?t[1].split(J):[]}(r),n)))}function Eo(e){var t=0,n=0;return function(){var r=ln(),i=16-(r-n);if(n=r,i>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}function Ao(e,t){var n=-1,r=e.length,i=r-1;for(t=void 0===t?r:t;++n<t;){var o=Lr(n,i),a=e[o];e[o]=e[n],e[n]=a}return e.length=t,e}var Co=function(e){var t=Ea(e,(function(e){return 500===n.size&&n.clear(),e})),n=t.cache;return t}((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(z,(function(e,n,r,i){t.push(r?i.replace(te,"$1"):n||e)})),t}));function To(e){if("string"==typeof e||Ja(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function Fo(e){if(null!=e){try{return xe.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function ko(e){if(e instanceof On)return e.clone();var t=new Dn(e.__wrapped__,e.__chain__);return t.__actions__=yi(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}var Ro=Mr((function(e,t){return La(e)?er(e,ar(t,1,La,!0)):[]})),Po=Mr((function(e,t){var n=Bo(t);return La(n)&&(n=void 0),La(e)?er(e,ar(t,1,La,!0),Qi(n,2)):[]})),Do=Mr((function(e,t){var n=Bo(t);return La(n)&&(n=void 0),La(e)?er(e,ar(t,1,La,!0),void 0,n):[]}));function Oo(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=null==n?0:is(n);return i<0&&(i=sn(r+i,0)),$t(e,Qi(t,3),i)}function Io(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=r-1;return void 0!==n&&(i=is(n),i=n<0?sn(r+i,0):un(i,r-1)),$t(e,Qi(t,3),i,!0)}function _o(e){return(null==e?0:e.length)?ar(e,1):[]}function jo(e){return e&&e.length?e[0]:void 0}var Lo=Mr((function(e){var t=ft(e,ai);return t.length&&t[0]===e[0]?yr(t):[]})),No=Mr((function(e){var t=Bo(e),n=ft(e,ai);return t===Bo(n)?t=void 0:n.pop(),n.length&&n[0]===e[0]?yr(n,Qi(t,2)):[]})),Mo=Mr((function(e){var t=Bo(e),n=ft(e,ai);return(t="function"==typeof t?t:void 0)&&n.pop(),n.length&&n[0]===e[0]?yr(n,void 0,t):[]}));function Bo(e){var t=null==e?0:e.length;return t?e[t-1]:void 0}var Uo=Mr(Ho);function Ho(e,t){return e&&e.length&&t&&t.length?_r(e,t):e}var Vo=zi((function(e,t){var n=null==e?0:e.length,r=Yn(e,t);return jr(e,ft(t,(function(e){return so(e,n)?+e:e})).sort(gi)),r}));function qo(e){return null==e?e:pn.call(e)}var zo=Mr((function(e){return Zr(ar(e,1,La,!0))})),Ko=Mr((function(e){var t=Bo(e);return La(t)&&(t=void 0),Zr(ar(e,1,La,!0),Qi(t,2))})),Go=Mr((function(e){var t=Bo(e);return t="function"==typeof t?t:void 0,Zr(ar(e,1,La,!0),void 0,t)}));function Wo(e){if(!e||!e.length)return[];var t=0;return e=ct(e,(function(e){if(La(e))return t=sn(e.length,t),!0})),kt(t,(function(t){return ft(e,At(t))}))}function Yo(e,t){if(!e||!e.length)return[];var n=Wo(e);return null==t?n:ft(n,(function(e){return ot(t,void 0,e)}))}var Xo=Mr((function(e,t){return La(e)?er(e,t):[]})),Qo=Mr((function(e){return ii(ct(e,La))})),Jo=Mr((function(e){var t=Bo(e);return La(t)&&(t=void 0),ii(ct(e,La),Qi(t,2))})),Zo=Mr((function(e){var t=Bo(e);return t="function"==typeof t?t:void 0,ii(ct(e,La),void 0,t)})),ea=Mr(Wo);var ta=Mr((function(e){var t=e.length,n=t>1?e[t-1]:void 0;return n="function"==typeof n?(e.pop(),n):void 0,Yo(e,n)}));function na(e){var t=kn(e);return t.__chain__=!0,t}function ra(e,t){return t(e)}var ia=zi((function(e){var t=e.length,n=t?e[0]:0,r=this.__wrapped__,i=function(t){return Yn(t,e)};return!(t>1||this.__actions__.length)&&r instanceof On&&so(n)?((r=r.slice(n,+n+(t?1:0))).__actions__.push({func:ra,args:[i],thisArg:void 0}),new Dn(r,this.__chain__).thru((function(e){return t&&!e.length&&e.push(void 0),e}))):this.thru(i)}));var oa=$i((function(e,t,n){Se.call(e,n)?++e[n]:Wn(e,n,1)}));var aa=Ti(Oo),sa=Ti(Io);function ua(e,t){return(Ia(e)?st:tr)(e,Qi(t,3))}function la(e,t){return(Ia(e)?ut:nr)(e,Qi(t,3))}var ca=$i((function(e,t,n){Se.call(e,n)?e[n].push(t):Wn(e,n,[t])}));var ha=Mr((function(e,t,n){var i=-1,o="function"==typeof t,a=ja(e)?r(e.length):[];return tr(e,(function(e){a[++i]=o?ot(t,e,n):br(e,t,n)})),a})),pa=$i((function(e,t,n){Wn(e,n,t)}));function fa(e,t){return(Ia(e)?ft:Fr)(e,Qi(t,3))}var da=$i((function(e,t,n){e[n?0:1].push(t)}),(function(){return[[],[]]}));var ga=Mr((function(e,t){if(null==e)return[];var n=t.length;return n>1&&uo(e,t[0],t[1])?t=[]:n>2&&uo(t[0],t[1],t[2])&&(t=[t[0]]),Or(e,ar(t,1),[])})),ma=Qt||function(){return Ge.Date.now()};function va(e,t,n){return t=n?void 0:t,Bi(e,128,void 0,void 0,void 0,void 0,t=e&&null==t?e.length:t)}function ya(e,t){var n;if("function"!=typeof t)throw new ve(o);return e=is(e),function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=void 0),n}}var ba=Mr((function(e,t,n){var r=1;if(n.length){var i=Vt(n,Xi(ba));r|=32}return Bi(e,r,t,n,i)})),$a=Mr((function(e,t,n){var r=3;if(n.length){var i=Vt(n,Xi($a));r|=32}return Bi(t,r,e,n,i)}));function wa(e,t,n){var r,i,a,s,u,l,c=0,h=!1,p=!1,f=!0;if("function"!=typeof e)throw new ve(o);function d(t){var n=r,o=i;return r=i=void 0,c=t,s=e.apply(o,n)}function g(e){return c=e,u=wo(v,t),h?d(e):s}function m(e){var n=e-l;return void 0===l||n>=t||n<0||p&&e-c>=a}function v(){var e=ma();if(m(e))return y(e);u=wo(v,function(e){var n=t-(e-l);return p?un(n,a-(e-c)):n}(e))}function y(e){return u=void 0,f&&r?d(e):(r=i=void 0,s)}function b(){var e=ma(),n=m(e);if(r=arguments,i=this,l=e,n){if(void 0===u)return g(l);if(p)return hi(u),u=wo(v,t),d(l)}return void 0===u&&(u=wo(v,t)),s}return t=as(t)||0,qa(n)&&(h=!!n.leading,a=(p="maxWait"in n)?sn(as(n.maxWait)||0,t):a,f="trailing"in n?!!n.trailing:f),b.cancel=function(){void 0!==u&&hi(u),c=0,r=l=i=u=void 0},b.flush=function(){return void 0===u?s:y(ma())},b}var xa=Mr((function(e,t){return Zn(e,1,t)})),Sa=Mr((function(e,t,n){return Zn(e,as(t)||0,n)}));function Ea(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new ve(o);var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var a=e.apply(this,r);return n.cache=o.set(i,a)||o,a};return n.cache=new(Ea.Cache||jn),n}function Aa(e){if("function"!=typeof e)throw new ve(o);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}Ea.Cache=jn;var Ca=li((function(e,t){var n=(t=1==t.length&&Ia(t[0])?ft(t[0],Pt(Qi())):ft(ar(t,1),Pt(Qi()))).length;return Mr((function(r){for(var i=-1,o=un(r.length,n);++i<o;)r[i]=t[i].call(this,r[i]);return ot(e,this,r)}))})),Ta=Mr((function(e,t){return Bi(e,32,void 0,t,Vt(t,Xi(Ta)))})),Fa=Mr((function(e,t){return Bi(e,64,void 0,t,Vt(t,Xi(Fa)))})),ka=zi((function(e,t){return Bi(e,256,void 0,void 0,void 0,t)}));function Ra(e,t){return e===t||e!=e&&t!=t}var Pa=_i(gr),Da=_i((function(e,t){return e>=t})),Oa=$r(function(){return arguments}())?$r:function(e){return za(e)&&Se.call(e,"callee")&&!Ke.call(e,"callee")},Ia=r.isArray,_a=Ze?Pt(Ze):function(e){return za(e)&&dr(e)==S};function ja(e){return null!=e&&Va(e.length)&&!Ua(e)}function La(e){return za(e)&&ja(e)}var Na=nn||au,Ma=et?Pt(et):function(e){return za(e)&&dr(e)==h};function Ba(e){if(!za(e))return!1;var t=dr(e);return t==p||"[object DOMException]"==t||"string"==typeof e.message&&"string"==typeof e.name&&!Wa(e)}function Ua(e){if(!qa(e))return!1;var t=dr(e);return t==f||t==d||"[object AsyncFunction]"==t||"[object Proxy]"==t}function Ha(e){return"number"==typeof e&&e==is(e)}function Va(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}function qa(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function za(e){return null!=e&&"object"==typeof e}var Ka=tt?Pt(tt):function(e){return za(e)&&ro(e)==g};function Ga(e){return"number"==typeof e||za(e)&&dr(e)==m}function Wa(e){if(!za(e)||dr(e)!=v)return!1;var t=He(e);if(null===t)return!0;var n=Se.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&xe.call(n)==Te}var Ya=nt?Pt(nt):function(e){return za(e)&&dr(e)==y};var Xa=rt?Pt(rt):function(e){return za(e)&&ro(e)==b};function Qa(e){return"string"==typeof e||!Ia(e)&&za(e)&&dr(e)==$}function Ja(e){return"symbol"==typeof e||za(e)&&dr(e)==w}var Za=it?Pt(it):function(e){return za(e)&&Va(e.length)&&!!Be[dr(e)]};var es=_i(Tr),ts=_i((function(e,t){return e<=t}));function ns(e){if(!e)return[];if(ja(e))return Qa(e)?Gt(e):yi(e);if(Qe&&e[Qe])return function(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}(e[Qe]());var t=ro(e);return(t==g?Ut:t==b?qt:Rs)(e)}function rs(e){return e?(e=as(e))===1/0||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}function is(e){var t=rs(e),n=t%1;return t==t?n?t-n:t:0}function os(e){return e?Xn(is(e),0,4294967295):0}function as(e){if("number"==typeof e)return e;if(Ja(e))return NaN;if(qa(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=qa(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=Rt(e);var n=oe.test(e);return n||se.test(e)?qe(e.slice(2),n?2:8):ie.test(e)?NaN:+e}function ss(e){return bi(e,xs(e))}function us(e){return null==e?"":Jr(e)}var ls=wi((function(e,t){if(po(t)||ja(t))bi(t,ws(t),e);else for(var n in t)Se.call(t,n)&&qn(e,n,t[n])})),cs=wi((function(e,t){bi(t,xs(t),e)})),hs=wi((function(e,t,n,r){bi(t,xs(t),e,r)})),ps=wi((function(e,t,n,r){bi(t,ws(t),e,r)})),fs=zi(Yn);var ds=Mr((function(e,t){e=de(e);var n=-1,r=t.length,i=r>2?t[2]:void 0;for(i&&uo(t[0],t[1],i)&&(r=1);++n<r;)for(var o=t[n],a=xs(o),s=-1,u=a.length;++s<u;){var l=a[s],c=e[l];(void 0===c||Ra(c,$e[l])&&!Se.call(e,l))&&(e[l]=o[l])}return e})),gs=Mr((function(e){return e.push(void 0,Hi),ot(Es,void 0,e)}));function ms(e,t,n){var r=null==e?void 0:pr(e,t);return void 0===r?n:r}function vs(e,t){return null!=e&&io(e,t,vr)}var ys=Ri((function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=Ce.call(t)),e[t]=n}),qs(Gs)),bs=Ri((function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=Ce.call(t)),Se.call(e,t)?e[t].push(n):e[t]=[n]}),Qi),$s=Mr(br);function ws(e){return ja(e)?Mn(e):Ar(e)}function xs(e){return ja(e)?Mn(e,!0):Cr(e)}var Ss=wi((function(e,t,n){Pr(e,t,n)})),Es=wi((function(e,t,n,r){Pr(e,t,n,r)})),As=zi((function(e,t){var n={};if(null==e)return n;var r=!1;t=ft(t,(function(t){return t=ui(t,e),r||(r=t.length>1),t})),bi(e,Gi(e),n),r&&(n=Qn(n,7,Vi));for(var i=t.length;i--;)ei(n,t[i]);return n}));var Cs=zi((function(e,t){return null==e?{}:function(e,t){return Ir(e,t,(function(t,n){return vs(e,n)}))}(e,t)}));function Ts(e,t){if(null==e)return{};var n=ft(Gi(e),(function(e){return[e]}));return t=Qi(t),Ir(e,n,(function(e,n){return t(e,n[0])}))}var Fs=Mi(ws),ks=Mi(xs);function Rs(e){return null==e?[]:Dt(e,ws(e))}var Ps=Ai((function(e,t,n){return t=t.toLowerCase(),e+(n?Ds(t):t)}));function Ds(e){return Bs(us(e).toLowerCase())}function Os(e){return(e=us(e))&&e.replace(le,Lt).replace(Oe,"")}var Is=Ai((function(e,t,n){return e+(n?"-":"")+t.toLowerCase()})),_s=Ai((function(e,t,n){return e+(n?" ":"")+t.toLowerCase()})),js=Ei("toLowerCase");var Ls=Ai((function(e,t,n){return e+(n?"_":"")+t.toLowerCase()}));var Ns=Ai((function(e,t,n){return e+(n?" ":"")+Bs(t)}));var Ms=Ai((function(e,t,n){return e+(n?" ":"")+t.toUpperCase()})),Bs=Ei("toUpperCase");function Us(e,t,n){return e=us(e),void 0===(t=n?void 0:t)?function(e){return Le.test(e)}(e)?function(e){return e.match(_e)||[]}(e):function(e){return e.match(Z)||[]}(e):e.match(t)||[]}var Hs=Mr((function(e,t){try{return ot(e,void 0,t)}catch(e){return Ba(e)?e:new Y(e)}})),Vs=zi((function(e,t){return st(t,(function(t){t=To(t),Wn(e,t,ba(e[t],e))})),e}));function qs(e){return function(){return e}}var zs=Fi(),Ks=Fi(!0);function Gs(e){return e}function Ws(e){return Er("function"==typeof e?e:Qn(e,1))}var Ys=Mr((function(e,t){return function(n){return br(n,e,t)}})),Xs=Mr((function(e,t){return function(n){return br(e,n,t)}}));function Qs(e,t,n){var r=ws(t),i=hr(t,r);null!=n||qa(t)&&(i.length||!r.length)||(n=t,t=e,e=this,i=hr(t,ws(t)));var o=!(qa(n)&&"chain"in n&&!n.chain),a=Ua(e);return st(i,(function(n){var r=t[n];e[n]=r,a&&(e.prototype[n]=function(){var t=this.__chain__;if(o||t){var n=e(this.__wrapped__),i=n.__actions__=yi(this.__actions__);return i.push({func:r,args:arguments,thisArg:e}),n.__chain__=t,n}return r.apply(e,dt([this.value()],arguments))})})),e}function Js(){}var Zs=Di(ft),eu=Di(lt),tu=Di(vt);function nu(e){return lo(e)?At(To(e)):function(e){return function(t){return pr(t,e)}}(e)}var ru=Ii(),iu=Ii(!0);function ou(){return[]}function au(){return!1}var su=Pi((function(e,t){return e+t}),0),uu=Li("ceil"),lu=Pi((function(e,t){return e/t}),1),cu=Li("floor");var hu,pu=Pi((function(e,t){return e*t}),1),fu=Li("round"),du=Pi((function(e,t){return e-t}),0);return kn.after=function(e,t){if("function"!=typeof t)throw new ve(o);return e=is(e),function(){if(--e<1)return t.apply(this,arguments)}},kn.ary=va,kn.assign=ls,kn.assignIn=cs,kn.assignInWith=hs,kn.assignWith=ps,kn.at=fs,kn.before=ya,kn.bind=ba,kn.bindAll=Vs,kn.bindKey=$a,kn.castArray=function(){if(!arguments.length)return[];var e=arguments[0];return Ia(e)?e:[e]},kn.chain=na,kn.chunk=function(e,t,n){t=(n?uo(e,t,n):void 0===t)?1:sn(is(t),0);var i=null==e?0:e.length;if(!i||t<1)return[];for(var o=0,a=0,s=r(Zt(i/t));o<i;)s[a++]=Kr(e,o,o+=t);return s},kn.compact=function(e){for(var t=-1,n=null==e?0:e.length,r=0,i=[];++t<n;){var o=e[t];o&&(i[r++]=o)}return i},kn.concat=function(){var e=arguments.length;if(!e)return[];for(var t=r(e-1),n=arguments[0],i=e;i--;)t[i-1]=arguments[i];return dt(Ia(n)?yi(n):[n],ar(t,1))},kn.cond=function(e){var t=null==e?0:e.length,n=Qi();return e=t?ft(e,(function(e){if("function"!=typeof e[1])throw new ve(o);return[n(e[0]),e[1]]})):[],Mr((function(n){for(var r=-1;++r<t;){var i=e[r];if(ot(i[0],this,n))return ot(i[1],this,n)}}))},kn.conforms=function(e){return function(e){var t=ws(e);return function(n){return Jn(n,e,t)}}(Qn(e,1))},kn.constant=qs,kn.countBy=oa,kn.create=function(e,t){var n=Rn(e);return null==t?n:Gn(n,t)},kn.curry=function e(t,n,r){var i=Bi(t,8,void 0,void 0,void 0,void 0,void 0,n=r?void 0:n);return i.placeholder=e.placeholder,i},kn.curryRight=function e(t,n,r){var i=Bi(t,16,void 0,void 0,void 0,void 0,void 0,n=r?void 0:n);return i.placeholder=e.placeholder,i},kn.debounce=wa,kn.defaults=ds,kn.defaultsDeep=gs,kn.defer=xa,kn.delay=Sa,kn.difference=Ro,kn.differenceBy=Po,kn.differenceWith=Do,kn.drop=function(e,t,n){var r=null==e?0:e.length;return r?Kr(e,(t=n||void 0===t?1:is(t))<0?0:t,r):[]},kn.dropRight=function(e,t,n){var r=null==e?0:e.length;return r?Kr(e,0,(t=r-(t=n||void 0===t?1:is(t)))<0?0:t):[]},kn.dropRightWhile=function(e,t){return e&&e.length?ni(e,Qi(t,3),!0,!0):[]},kn.dropWhile=function(e,t){return e&&e.length?ni(e,Qi(t,3),!0):[]},kn.fill=function(e,t,n,r){var i=null==e?0:e.length;return i?(n&&"number"!=typeof n&&uo(e,t,n)&&(n=0,r=i),function(e,t,n,r){var i=e.length;for((n=is(n))<0&&(n=-n>i?0:i+n),(r=void 0===r||r>i?i:is(r))<0&&(r+=i),r=n>r?0:os(r);n<r;)e[n++]=t;return e}(e,t,n,r)):[]},kn.filter=function(e,t){return(Ia(e)?ct:or)(e,Qi(t,3))},kn.flatMap=function(e,t){return ar(fa(e,t),1)},kn.flatMapDeep=function(e,t){return ar(fa(e,t),1/0)},kn.flatMapDepth=function(e,t,n){return n=void 0===n?1:is(n),ar(fa(e,t),n)},kn.flatten=_o,kn.flattenDeep=function(e){return(null==e?0:e.length)?ar(e,1/0):[]},kn.flattenDepth=function(e,t){return(null==e?0:e.length)?ar(e,t=void 0===t?1:is(t)):[]},kn.flip=function(e){return Bi(e,512)},kn.flow=zs,kn.flowRight=Ks,kn.fromPairs=function(e){for(var t=-1,n=null==e?0:e.length,r={};++t<n;){var i=e[t];r[i[0]]=i[1]}return r},kn.functions=function(e){return null==e?[]:hr(e,ws(e))},kn.functionsIn=function(e){return null==e?[]:hr(e,xs(e))},kn.groupBy=ca,kn.initial=function(e){return(null==e?0:e.length)?Kr(e,0,-1):[]},kn.intersection=Lo,kn.intersectionBy=No,kn.intersectionWith=Mo,kn.invert=ys,kn.invertBy=bs,kn.invokeMap=ha,kn.iteratee=Ws,kn.keyBy=pa,kn.keys=ws,kn.keysIn=xs,kn.map=fa,kn.mapKeys=function(e,t){var n={};return t=Qi(t,3),lr(e,(function(e,r,i){Wn(n,t(e,r,i),e)})),n},kn.mapValues=function(e,t){var n={};return t=Qi(t,3),lr(e,(function(e,r,i){Wn(n,r,t(e,r,i))})),n},kn.matches=function(e){return kr(Qn(e,1))},kn.matchesProperty=function(e,t){return Rr(e,Qn(t,1))},kn.memoize=Ea,kn.merge=Ss,kn.mergeWith=Es,kn.method=Ys,kn.methodOf=Xs,kn.mixin=Qs,kn.negate=Aa,kn.nthArg=function(e){return e=is(e),Mr((function(t){return Dr(t,e)}))},kn.omit=As,kn.omitBy=function(e,t){return Ts(e,Aa(Qi(t)))},kn.once=function(e){return ya(2,e)},kn.orderBy=function(e,t,n,r){return null==e?[]:(Ia(t)||(t=null==t?[]:[t]),Ia(n=r?void 0:n)||(n=null==n?[]:[n]),Or(e,t,n))},kn.over=Zs,kn.overArgs=Ca,kn.overEvery=eu,kn.overSome=tu,kn.partial=Ta,kn.partialRight=Fa,kn.partition=da,kn.pick=Cs,kn.pickBy=Ts,kn.property=nu,kn.propertyOf=function(e){return function(t){return null==e?void 0:pr(e,t)}},kn.pull=Uo,kn.pullAll=Ho,kn.pullAllBy=function(e,t,n){return e&&e.length&&t&&t.length?_r(e,t,Qi(n,2)):e},kn.pullAllWith=function(e,t,n){return e&&e.length&&t&&t.length?_r(e,t,void 0,n):e},kn.pullAt=Vo,kn.range=ru,kn.rangeRight=iu,kn.rearg=ka,kn.reject=function(e,t){return(Ia(e)?ct:or)(e,Aa(Qi(t,3)))},kn.remove=function(e,t){var n=[];if(!e||!e.length)return n;var r=-1,i=[],o=e.length;for(t=Qi(t,3);++r<o;){var a=e[r];t(a,r,e)&&(n.push(a),i.push(r))}return jr(e,i),n},kn.rest=function(e,t){if("function"!=typeof e)throw new ve(o);return Mr(e,t=void 0===t?t:is(t))},kn.reverse=qo,kn.sampleSize=function(e,t,n){return t=(n?uo(e,t,n):void 0===t)?1:is(t),(Ia(e)?Un:Ur)(e,t)},kn.set=function(e,t,n){return null==e?e:Hr(e,t,n)},kn.setWith=function(e,t,n,r){return r="function"==typeof r?r:void 0,null==e?e:Hr(e,t,n,r)},kn.shuffle=function(e){return(Ia(e)?Hn:zr)(e)},kn.slice=function(e,t,n){var r=null==e?0:e.length;return r?(n&&"number"!=typeof n&&uo(e,t,n)?(t=0,n=r):(t=null==t?0:is(t),n=void 0===n?r:is(n)),Kr(e,t,n)):[]},kn.sortBy=ga,kn.sortedUniq=function(e){return e&&e.length?Xr(e):[]},kn.sortedUniqBy=function(e,t){return e&&e.length?Xr(e,Qi(t,2)):[]},kn.split=function(e,t,n){return n&&"number"!=typeof n&&uo(e,t,n)&&(t=n=void 0),(n=void 0===n?4294967295:n>>>0)?(e=us(e))&&("string"==typeof t||null!=t&&!Ya(t))&&!(t=Jr(t))&&Bt(e)?ci(Gt(e),0,n):e.split(t,n):[]},kn.spread=function(e,t){if("function"!=typeof e)throw new ve(o);return t=null==t?0:sn(is(t),0),Mr((function(n){var r=n[t],i=ci(n,0,t);return r&&dt(i,r),ot(e,this,i)}))},kn.tail=function(e){var t=null==e?0:e.length;return t?Kr(e,1,t):[]},kn.take=function(e,t,n){return e&&e.length?Kr(e,0,(t=n||void 0===t?1:is(t))<0?0:t):[]},kn.takeRight=function(e,t,n){var r=null==e?0:e.length;return r?Kr(e,(t=r-(t=n||void 0===t?1:is(t)))<0?0:t,r):[]},kn.takeRightWhile=function(e,t){return e&&e.length?ni(e,Qi(t,3),!1,!0):[]},kn.takeWhile=function(e,t){return e&&e.length?ni(e,Qi(t,3)):[]},kn.tap=function(e,t){return t(e),e},kn.throttle=function(e,t,n){var r=!0,i=!0;if("function"!=typeof e)throw new ve(o);return qa(n)&&(r="leading"in n?!!n.leading:r,i="trailing"in n?!!n.trailing:i),wa(e,t,{leading:r,maxWait:t,trailing:i})},kn.thru=ra,kn.toArray=ns,kn.toPairs=Fs,kn.toPairsIn=ks,kn.toPath=function(e){return Ia(e)?ft(e,To):Ja(e)?[e]:yi(Co(us(e)))},kn.toPlainObject=ss,kn.transform=function(e,t,n){var r=Ia(e),i=r||Na(e)||Za(e);if(t=Qi(t,4),null==n){var o=e&&e.constructor;n=i?r?new o:[]:qa(e)&&Ua(o)?Rn(He(e)):{}}return(i?st:lr)(e,(function(e,r,i){return t(n,e,r,i)})),n},kn.unary=function(e){return va(e,1)},kn.union=zo,kn.unionBy=Ko,kn.unionWith=Go,kn.uniq=function(e){return e&&e.length?Zr(e):[]},kn.uniqBy=function(e,t){return e&&e.length?Zr(e,Qi(t,2)):[]},kn.uniqWith=function(e,t){return t="function"==typeof t?t:void 0,e&&e.length?Zr(e,void 0,t):[]},kn.unset=function(e,t){return null==e||ei(e,t)},kn.unzip=Wo,kn.unzipWith=Yo,kn.update=function(e,t,n){return null==e?e:ti(e,t,si(n))},kn.updateWith=function(e,t,n,r){return r="function"==typeof r?r:void 0,null==e?e:ti(e,t,si(n),r)},kn.values=Rs,kn.valuesIn=function(e){return null==e?[]:Dt(e,xs(e))},kn.without=Xo,kn.words=Us,kn.wrap=function(e,t){return Ta(si(t),e)},kn.xor=Qo,kn.xorBy=Jo,kn.xorWith=Zo,kn.zip=ea,kn.zipObject=function(e,t){return oi(e||[],t||[],qn)},kn.zipObjectDeep=function(e,t){return oi(e||[],t||[],Hr)},kn.zipWith=ta,kn.entries=Fs,kn.entriesIn=ks,kn.extend=cs,kn.extendWith=hs,Qs(kn,kn),kn.add=su,kn.attempt=Hs,kn.camelCase=Ps,kn.capitalize=Ds,kn.ceil=uu,kn.clamp=function(e,t,n){return void 0===n&&(n=t,t=void 0),void 0!==n&&(n=(n=as(n))==n?n:0),void 0!==t&&(t=(t=as(t))==t?t:0),Xn(as(e),t,n)},kn.clone=function(e){return Qn(e,4)},kn.cloneDeep=function(e){return Qn(e,5)},kn.cloneDeepWith=function(e,t){return Qn(e,5,t="function"==typeof t?t:void 0)},kn.cloneWith=function(e,t){return Qn(e,4,t="function"==typeof t?t:void 0)},kn.conformsTo=function(e,t){return null==t||Jn(e,t,ws(t))},kn.deburr=Os,kn.defaultTo=function(e,t){return null==e||e!=e?t:e},kn.divide=lu,kn.endsWith=function(e,t,n){e=us(e),t=Jr(t);var r=e.length,i=n=void 0===n?r:Xn(is(n),0,r);return(n-=t.length)>=0&&e.slice(n,i)==t},kn.eq=Ra,kn.escape=function(e){return(e=us(e))&&M.test(e)?e.replace(L,Nt):e},kn.escapeRegExp=function(e){return(e=us(e))&&G.test(e)?e.replace(K,"\\$&"):e},kn.every=function(e,t,n){var r=Ia(e)?lt:rr;return n&&uo(e,t,n)&&(t=void 0),r(e,Qi(t,3))},kn.find=aa,kn.findIndex=Oo,kn.findKey=function(e,t){return bt(e,Qi(t,3),lr)},kn.findLast=sa,kn.findLastIndex=Io,kn.findLastKey=function(e,t){return bt(e,Qi(t,3),cr)},kn.floor=cu,kn.forEach=ua,kn.forEachRight=la,kn.forIn=function(e,t){return null==e?e:sr(e,Qi(t,3),xs)},kn.forInRight=function(e,t){return null==e?e:ur(e,Qi(t,3),xs)},kn.forOwn=function(e,t){return e&&lr(e,Qi(t,3))},kn.forOwnRight=function(e,t){return e&&cr(e,Qi(t,3))},kn.get=ms,kn.gt=Pa,kn.gte=Da,kn.has=function(e,t){return null!=e&&io(e,t,mr)},kn.hasIn=vs,kn.head=jo,kn.identity=Gs,kn.includes=function(e,t,n,r){e=ja(e)?e:Rs(e),n=n&&!r?is(n):0;var i=e.length;return n<0&&(n=sn(i+n,0)),Qa(e)?n<=i&&e.indexOf(t,n)>-1:!!i&&wt(e,t,n)>-1},kn.indexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=null==n?0:is(n);return i<0&&(i=sn(r+i,0)),wt(e,t,i)},kn.inRange=function(e,t,n){return t=rs(t),void 0===n?(n=t,t=0):n=rs(n),function(e,t,n){return e>=un(t,n)&&e<sn(t,n)}(e=as(e),t,n)},kn.invoke=$s,kn.isArguments=Oa,kn.isArray=Ia,kn.isArrayBuffer=_a,kn.isArrayLike=ja,kn.isArrayLikeObject=La,kn.isBoolean=function(e){return!0===e||!1===e||za(e)&&dr(e)==c},kn.isBuffer=Na,kn.isDate=Ma,kn.isElement=function(e){return za(e)&&1===e.nodeType&&!Wa(e)},kn.isEmpty=function(e){if(null==e)return!0;if(ja(e)&&(Ia(e)||"string"==typeof e||"function"==typeof e.splice||Na(e)||Za(e)||Oa(e)))return!e.length;var t=ro(e);if(t==g||t==b)return!e.size;if(po(e))return!Ar(e).length;for(var n in e)if(Se.call(e,n))return!1;return!0},kn.isEqual=function(e,t){return wr(e,t)},kn.isEqualWith=function(e,t,n){var r=(n="function"==typeof n?n:void 0)?n(e,t):void 0;return void 0===r?wr(e,t,void 0,n):!!r},kn.isError=Ba,kn.isFinite=function(e){return"number"==typeof e&&rn(e)},kn.isFunction=Ua,kn.isInteger=Ha,kn.isLength=Va,kn.isMap=Ka,kn.isMatch=function(e,t){return e===t||xr(e,t,Zi(t))},kn.isMatchWith=function(e,t,n){return n="function"==typeof n?n:void 0,xr(e,t,Zi(t),n)},kn.isNaN=function(e){return Ga(e)&&e!=+e},kn.isNative=function(e){if(ho(e))throw new Y("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return Sr(e)},kn.isNil=function(e){return null==e},kn.isNull=function(e){return null===e},kn.isNumber=Ga,kn.isObject=qa,kn.isObjectLike=za,kn.isPlainObject=Wa,kn.isRegExp=Ya,kn.isSafeInteger=function(e){return Ha(e)&&e>=-9007199254740991&&e<=9007199254740991},kn.isSet=Xa,kn.isString=Qa,kn.isSymbol=Ja,kn.isTypedArray=Za,kn.isUndefined=function(e){return void 0===e},kn.isWeakMap=function(e){return za(e)&&ro(e)==x},kn.isWeakSet=function(e){return za(e)&&"[object WeakSet]"==dr(e)},kn.join=function(e,t){return null==e?"":on.call(e,t)},kn.kebabCase=Is,kn.last=Bo,kn.lastIndexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=r;return void 0!==n&&(i=(i=is(n))<0?sn(r+i,0):un(i,r-1)),t==t?function(e,t,n){for(var r=n+1;r--;)if(e[r]===t)return r;return r}(e,t,i):$t(e,St,i,!0)},kn.lowerCase=_s,kn.lowerFirst=js,kn.lt=es,kn.lte=ts,kn.max=function(e){return e&&e.length?ir(e,Gs,gr):void 0},kn.maxBy=function(e,t){return e&&e.length?ir(e,Qi(t,2),gr):void 0},kn.mean=function(e){return Et(e,Gs)},kn.meanBy=function(e,t){return Et(e,Qi(t,2))},kn.min=function(e){return e&&e.length?ir(e,Gs,Tr):void 0},kn.minBy=function(e,t){return e&&e.length?ir(e,Qi(t,2),Tr):void 0},kn.stubArray=ou,kn.stubFalse=au,kn.stubObject=function(){return{}},kn.stubString=function(){return""},kn.stubTrue=function(){return!0},kn.multiply=pu,kn.nth=function(e,t){return e&&e.length?Dr(e,is(t)):void 0},kn.noConflict=function(){return Ge._===this&&(Ge._=Fe),this},kn.noop=Js,kn.now=ma,kn.pad=function(e,t,n){e=us(e);var r=(t=is(t))?Kt(e):0;if(!t||r>=t)return e;var i=(t-r)/2;return Oi(en(i),n)+e+Oi(Zt(i),n)},kn.padEnd=function(e,t,n){e=us(e);var r=(t=is(t))?Kt(e):0;return t&&r<t?e+Oi(t-r,n):e},kn.padStart=function(e,t,n){e=us(e);var r=(t=is(t))?Kt(e):0;return t&&r<t?Oi(t-r,n)+e:e},kn.parseInt=function(e,t,n){return n||null==t?t=0:t&&(t=+t),cn(us(e).replace(W,""),t||0)},kn.random=function(e,t,n){if(n&&"boolean"!=typeof n&&uo(e,t,n)&&(t=n=void 0),void 0===n&&("boolean"==typeof t?(n=t,t=void 0):"boolean"==typeof e&&(n=e,e=void 0)),void 0===e&&void 0===t?(e=0,t=1):(e=rs(e),void 0===t?(t=e,e=0):t=rs(t)),e>t){var r=e;e=t,t=r}if(n||e%1||t%1){var i=hn();return un(e+i*(t-e+Ve("1e-"+((i+"").length-1))),t)}return Lr(e,t)},kn.reduce=function(e,t,n){var r=Ia(e)?gt:Tt,i=arguments.length<3;return r(e,Qi(t,4),n,i,tr)},kn.reduceRight=function(e,t,n){var r=Ia(e)?mt:Tt,i=arguments.length<3;return r(e,Qi(t,4),n,i,nr)},kn.repeat=function(e,t,n){return t=(n?uo(e,t,n):void 0===t)?1:is(t),Nr(us(e),t)},kn.replace=function(){var e=arguments,t=us(e[0]);return e.length<3?t:t.replace(e[1],e[2])},kn.result=function(e,t,n){var r=-1,i=(t=ui(t,e)).length;for(i||(i=1,e=void 0);++r<i;){var o=null==e?void 0:e[To(t[r])];void 0===o&&(r=i,o=n),e=Ua(o)?o.call(e):o}return e},kn.round=fu,kn.runInContext=e,kn.sample=function(e){return(Ia(e)?Bn:Br)(e)},kn.size=function(e){if(null==e)return 0;if(ja(e))return Qa(e)?Kt(e):e.length;var t=ro(e);return t==g||t==b?e.size:Ar(e).length},kn.snakeCase=Ls,kn.some=function(e,t,n){var r=Ia(e)?vt:Gr;return n&&uo(e,t,n)&&(t=void 0),r(e,Qi(t,3))},kn.sortedIndex=function(e,t){return Wr(e,t)},kn.sortedIndexBy=function(e,t,n){return Yr(e,t,Qi(n,2))},kn.sortedIndexOf=function(e,t){var n=null==e?0:e.length;if(n){var r=Wr(e,t);if(r<n&&Ra(e[r],t))return r}return-1},kn.sortedLastIndex=function(e,t){return Wr(e,t,!0)},kn.sortedLastIndexBy=function(e,t,n){return Yr(e,t,Qi(n,2),!0)},kn.sortedLastIndexOf=function(e,t){if(null==e?0:e.length){var n=Wr(e,t,!0)-1;if(Ra(e[n],t))return n}return-1},kn.startCase=Ns,kn.startsWith=function(e,t,n){return e=us(e),n=null==n?0:Xn(is(n),0,e.length),t=Jr(t),e.slice(n,n+t.length)==t},kn.subtract=du,kn.sum=function(e){return e&&e.length?Ft(e,Gs):0},kn.sumBy=function(e,t){return e&&e.length?Ft(e,Qi(t,2)):0},kn.template=function(e,t,n){var r=kn.templateSettings;n&&uo(e,t,n)&&(t=void 0),e=us(e),t=hs({},t,r,Ui);var i,o,a=hs({},t.imports,r.imports,Ui),s=ws(a),u=Dt(a,s),l=0,c=t.interpolate||ce,h="__p += '",p=ge((t.escape||ce).source+"|"+c.source+"|"+(c===H?ne:ce).source+"|"+(t.evaluate||ce).source+"|$","g"),f="//# sourceURL="+(Se.call(t,"sourceURL")?(t.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++Me+"]")+"\n";e.replace(p,(function(t,n,r,a,s,u){return r||(r=a),h+=e.slice(l,u).replace(he,Mt),n&&(i=!0,h+="' +\n__e("+n+") +\n'"),s&&(o=!0,h+="';\n"+s+";\n__p += '"),r&&(h+="' +\n((__t = ("+r+")) == null ? '' : __t) +\n'"),l=u+t.length,t})),h+="';\n";var d=Se.call(t,"variable")&&t.variable;if(d){if(ee.test(d))throw new Y("Invalid `variable` option passed into `_.template`")}else h="with (obj) {\n"+h+"\n}\n";h=(o?h.replace(O,""):h).replace(I,"$1").replace(_,"$1;"),h="function("+(d||"obj")+") {\n"+(d?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(i?", __e = _.escape":"")+(o?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+h+"return __p\n}";var g=Hs((function(){return pe(s,f+"return "+h).apply(void 0,u)}));if(g.source=h,Ba(g))throw g;return g},kn.times=function(e,t){if((e=is(e))<1||e>9007199254740991)return[];var n=4294967295,r=un(e,4294967295);e-=4294967295;for(var i=kt(r,t=Qi(t));++n<e;)t(n);return i},kn.toFinite=rs,kn.toInteger=is,kn.toLength=os,kn.toLower=function(e){return us(e).toLowerCase()},kn.toNumber=as,kn.toSafeInteger=function(e){return e?Xn(is(e),-9007199254740991,9007199254740991):0===e?e:0},kn.toString=us,kn.toUpper=function(e){return us(e).toUpperCase()},kn.trim=function(e,t,n){if((e=us(e))&&(n||void 0===t))return Rt(e);if(!e||!(t=Jr(t)))return e;var r=Gt(e),i=Gt(t);return ci(r,It(r,i),_t(r,i)+1).join("")},kn.trimEnd=function(e,t,n){if((e=us(e))&&(n||void 0===t))return e.slice(0,Wt(e)+1);if(!e||!(t=Jr(t)))return e;var r=Gt(e);return ci(r,0,_t(r,Gt(t))+1).join("")},kn.trimStart=function(e,t,n){if((e=us(e))&&(n||void 0===t))return e.replace(W,"");if(!e||!(t=Jr(t)))return e;var r=Gt(e);return ci(r,It(r,Gt(t))).join("")},kn.truncate=function(e,t){var n=30,r="...";if(qa(t)){var i="separator"in t?t.separator:i;n="length"in t?is(t.length):n,r="omission"in t?Jr(t.omission):r}var o=(e=us(e)).length;if(Bt(e)){var a=Gt(e);o=a.length}if(n>=o)return e;var s=n-Kt(r);if(s<1)return r;var u=a?ci(a,0,s).join(""):e.slice(0,s);if(void 0===i)return u+r;if(a&&(s+=u.length-s),Ya(i)){if(e.slice(s).search(i)){var l,c=u;for(i.global||(i=ge(i.source,us(re.exec(i))+"g")),i.lastIndex=0;l=i.exec(c);)var h=l.index;u=u.slice(0,void 0===h?s:h)}}else if(e.indexOf(Jr(i),s)!=s){var p=u.lastIndexOf(i);p>-1&&(u=u.slice(0,p))}return u+r},kn.unescape=function(e){return(e=us(e))&&N.test(e)?e.replace(j,Yt):e},kn.uniqueId=function(e){var t=++Ee;return us(e)+t},kn.upperCase=Ms,kn.upperFirst=Bs,kn.each=ua,kn.eachRight=la,kn.first=jo,Qs(kn,(hu={},lr(kn,(function(e,t){Se.call(kn.prototype,t)||(hu[t]=e)})),hu),{chain:!1}),kn.VERSION="4.17.21",st(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(e){kn[e].placeholder=kn})),st(["drop","take"],(function(e,t){On.prototype[e]=function(n){n=void 0===n?1:sn(is(n),0);var r=this.__filtered__&&!t?new On(this):this.clone();return r.__filtered__?r.__takeCount__=un(n,r.__takeCount__):r.__views__.push({size:un(n,4294967295),type:e+(r.__dir__<0?"Right":"")}),r},On.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}})),st(["filter","map","takeWhile"],(function(e,t){var n=t+1,r=1==n||3==n;On.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:Qi(e,3),type:n}),t.__filtered__=t.__filtered__||r,t}})),st(["head","last"],(function(e,t){var n="take"+(t?"Right":"");On.prototype[e]=function(){return this[n](1).value()[0]}})),st(["initial","tail"],(function(e,t){var n="drop"+(t?"":"Right");On.prototype[e]=function(){return this.__filtered__?new On(this):this[n](1)}})),On.prototype.compact=function(){return this.filter(Gs)},On.prototype.find=function(e){return this.filter(e).head()},On.prototype.findLast=function(e){return this.reverse().find(e)},On.prototype.invokeMap=Mr((function(e,t){return"function"==typeof e?new On(this):this.map((function(n){return br(n,e,t)}))})),On.prototype.reject=function(e){return this.filter(Aa(Qi(e)))},On.prototype.slice=function(e,t){e=is(e);var n=this;return n.__filtered__&&(e>0||t<0)?new On(n):(e<0?n=n.takeRight(-e):e&&(n=n.drop(e)),void 0!==t&&(n=(t=is(t))<0?n.dropRight(-t):n.take(t-e)),n)},On.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},On.prototype.toArray=function(){return this.take(4294967295)},lr(On.prototype,(function(e,t){var n=/^(?:filter|find|map|reject)|While$/.test(t),r=/^(?:head|last)$/.test(t),i=kn[r?"take"+("last"==t?"Right":""):t],o=r||/^find/.test(t);i&&(kn.prototype[t]=function(){var t=this.__wrapped__,a=r?[1]:arguments,s=t instanceof On,u=a[0],l=s||Ia(t),c=function(e){var t=i.apply(kn,dt([e],a));return r&&h?t[0]:t};l&&n&&"function"==typeof u&&1!=u.length&&(s=l=!1);var h=this.__chain__,p=!!this.__actions__.length,f=o&&!h,d=s&&!p;if(!o&&l){t=d?t:new On(this);var g=e.apply(t,a);return g.__actions__.push({func:ra,args:[c],thisArg:void 0}),new Dn(g,h)}return f&&d?e.apply(this,a):(g=this.thru(c),f?r?g.value()[0]:g.value():g)})})),st(["pop","push","shift","sort","splice","unshift"],(function(e){var t=ye[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",r=/^(?:pop|shift)$/.test(e);kn.prototype[e]=function(){var e=arguments;if(r&&!this.__chain__){var i=this.value();return t.apply(Ia(i)?i:[],e)}return this[n]((function(n){return t.apply(Ia(n)?n:[],e)}))}})),lr(On.prototype,(function(e,t){var n=kn[t];if(n){var r=n.name+"";Se.call($n,r)||($n[r]=[]),$n[r].push({name:t,func:n})}})),$n[ki(void 0,2).name]=[{name:"wrapper",func:void 0}],On.prototype.clone=function(){var e=new On(this.__wrapped__);return e.__actions__=yi(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=yi(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=yi(this.__views__),e},On.prototype.reverse=function(){if(this.__filtered__){var e=new On(this);e.__dir__=-1,e.__filtered__=!0}else(e=this.clone()).__dir__*=-1;return e},On.prototype.value=function(){var e=this.__wrapped__.value(),t=this.__dir__,n=Ia(e),r=t<0,i=n?e.length:0,o=function(e,t,n){var r=-1,i=n.length;for(;++r<i;){var o=n[r],a=o.size;switch(o.type){case"drop":e+=a;break;case"dropRight":t-=a;break;case"take":t=un(t,e+a);break;case"takeRight":e=sn(e,t-a)}}return{start:e,end:t}}(0,i,this.__views__),a=o.start,s=o.end,u=s-a,l=r?s:a-1,c=this.__iteratees__,h=c.length,p=0,f=un(u,this.__takeCount__);if(!n||!r&&i==u&&f==u)return ri(e,this.__actions__);var d=[];e:for(;u--&&p<f;){for(var g=-1,m=e[l+=t];++g<h;){var v=c[g],y=v.iteratee,b=v.type,$=y(m);if(2==b)m=$;else if(!$){if(1==b)continue e;break e}}d[p++]=m}return d},kn.prototype.at=ia,kn.prototype.chain=function(){return na(this)},kn.prototype.commit=function(){return new Dn(this.value(),this.__chain__)},kn.prototype.next=function(){void 0===this.__values__&&(this.__values__=ns(this.value()));var e=this.__index__>=this.__values__.length;return{done:e,value:e?void 0:this.__values__[this.__index__++]}},kn.prototype.plant=function(e){for(var t,n=this;n instanceof Pn;){var r=ko(n);r.__index__=0,r.__values__=void 0,t?i.__wrapped__=r:t=r;var i=r;n=n.__wrapped__}return i.__wrapped__=e,t},kn.prototype.reverse=function(){var e=this.__wrapped__;if(e instanceof On){var t=e;return this.__actions__.length&&(t=new On(this)),(t=t.reverse()).__actions__.push({func:ra,args:[qo],thisArg:void 0}),new Dn(t,this.__chain__)}return this.thru(qo)},kn.prototype.toJSON=kn.prototype.valueOf=kn.prototype.value=function(){return ri(this.__wrapped__,this.__actions__)},kn.prototype.first=kn.prototype.head,Qe&&(kn.prototype[Qe]=function(){return this}),kn}();Ge._=Xt,void 0===(i=function(){return Xt}.call(t,n,t,r))||(r.exports=i)}).call(this)}).call(this,n(18),n(251)(e))},25:function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,s(r.key),r)}}function a(e,t,n){return t&&o(e.prototype,t),n&&o(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function s(e){var t=function(e,t){if("object"!=r(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=r(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==r(t)?t:t+""}n.r(t),n.d(t,"SelectMenuOptionsModel",(function(){return u})),n.d(t,"TextFieldModel",(function(){return l})),n.d(t,"NumericRangeModel",(function(){return c}));var u=function(){return a((function e(t){var n=t.label,r=t.value,o=t.selected,a=void 0!==o&&o,s=t.data,u=void 0===s?{}:s;i(this,e),this._label=n,this._value=r,this._selected=a,this._data=u}),[{key:"label",get:function(){return this._label},set:function(e){this._label=e}},{key:"value",get:function(){return this._value},set:function(e){this._value=e}},{key:"selected",get:function(){return this._selected},set:function(e){this._selected=e}},{key:"data",get:function(){return this._data},set:function(e){this._data=e}}])}(),l=function(){return a((function e(t){i(this,e),this._value=t.value,this._minLength=t.minLength,this._maxLength=t.maxLength}),[{key:"value",get:function(){return this._value},set:function(e){this._value=e}},{key:"maxLength",get:function(){return this._maxLength},set:function(e){this._maxLength=e}},{key:"minLength",get:function(){return this._minLength},set:function(e){this._minLength=e}}])}(),c=function(){return a((function e(t){i(this,e),this._value=t.value,this._minValue=t.minValue,this._maxValue=t.maxValue,this._step=t.step}),[{key:"value",get:function(){return this._value},set:function(e){this._value=e}},{key:"minValue",get:function(){return this._minValue},set:function(e){this._minValue=e}},{key:"maxValue",get:function(){return this._maxValue},set:function(e){this._maxValue=e}},{key:"step",get:function(){return this._step},set:function(e){this._step=e}}])}()},251:function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},26:function(e,t,n){"use strict";n.r(t),n.d(t,"REPOSITORIES_ENDPOINT",(function(){return i}));var r=n(38);angular.module("graphdb.framework.rest.repositories.service",[]).factory("RepositoriesRestService",o),o.$inject=["$http"];var i="rest/repositories";function o(e){return{getRepositories:function(t){return e.get("".concat(i,"/all"),{params:{location:t}})},getRepository:function(t){return e.get("".concat(i,"/").concat(t.id),{params:{location:t.location}})},getRepositoryModel:function(t){return e.get("".concat(i,"/").concat(t.id),{params:{location:t.location}}).then((function(e){return Object(r.repositoryConfigMapper)(e.data)}))},deleteRepository:function(t){return e.delete("".concat(i,"/").concat(t.id),{params:{location:t.location}})},createRepository:function(t){return e.post(i,t)},editRepository:function(t,n){return e.put("".concat(i,"/").concat(t),n)},getRepositoryConfiguration:function(t){return e.get("".concat(i,"/default-config/").concat(t))},getSize:function(t){return e.get("".concat(i,"/").concat(t.id,"/size"),{params:{location:t.location}})},getPrefix:function(t,n){return e.post("".concat(i,"/").concat(t,"/prefix"),null,{params:n})},getCluster:function(){return e.get("".concat(i,"/cluster"))},getRepositoryFileContent:function(t){return e.get("".concat(i,"/file"),{params:{fileLocation:t}})},updateRepositoryFileContent:function(t,n,r){return e.post("".concat(i,"/file/update"),JSON.stringify(n),{params:{fileLocation:t,location:r}})},validateOntopPropertiesConnection:function(t){return e.post("".concat(i,"/ontop/test-connection"),t.params.propertiesFile,{params:{location:t.location}})},restartRepository:function(t){return e.post("".concat(i,"/").concat(t.id,"/restart"),null,{params:{location:t.location}})},getSupportedDriversData:function(t){return e.get("".concat(i,"/ontop/drivers"),{params:{location:t.location}})},updatePropertiesFile:function(t,n,r,o){return e.post("".concat(i,"/ontop/jdbc-properties"),JSON.stringify(n),{params:{fileLocation:t,location:r,driverType:o}})},loadPropertiesFile:function(t,n,r){return e.get("".concat(i,"/ontop/jdbc-properties"),{params:{fileLocation:t,location:n,driverType:r}})},getRepositoriesFromKnownLocation:function(t){return e.get("".concat(i,"?location=").concat(t))},getRepositoryTurtleConfig:function(t){return e.get("rest/repositories/"+t.id,{headers:{Accept:"text/turtle"}})}}}},27:function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,o(r.key),r)}}function o(e){var t=function(e,t){if("object"!=r(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=r(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==r(t)?t:t+""}n.r(t),n.d(t,"YasguiComponentDirectiveUtil",(function(){return h})),n.d(t,"YasqeButtonsBuilder",(function(){return p})),n.d(t,"YasqeButtonName",(function(){return f})),n.d(t,"DISABLE_YASQE_BUTTONS_CONFIGURATION",(function(){return d})),n.d(t,"INFERRED_AND_SAME_AS_BUTTONS_CONFIGURATION",(function(){return g}));var a,s,u,l,c=["var(--primary-color)","","var(--primary-color)"],h=(s=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return new Promise((function(n,r){var i=a(e);i&&n(i.getOntotextYasguiElement());var o=1e3*t|1e3,s=setInterval((function(){(i=a(e))?(clearInterval(s),n(i.getOntotextYasguiElement())):(o-=100)<0&&(clearInterval(s),console.log("YASGUI component is not found",e),r(new Error("Element is not found: "+e)))}),100)}))},u=function(e,t){var n=void 0;return s(e).then((function(e){return n=e,e})).then((function(){return n.setQuery(t)})).then((function(){return n}))},l=function(e){if(e&&e.yasgui&&e.yasgui.tabElements){var t=e.yasgui.tabElements.get(e.getId());return t?t.tabEl:void 0}},{getOntotextYasguiElementController:a=function(e){var t=angular.element(document.querySelector(e));return angular.element(t).isolateScope()},getOntotextYasguiElement:function(e){var t=h.getOntotextYasguiElementController(e);if(t)return t.getOntotextYasguiElement()},getOntotextYasguiElementAsync:s,executeSparqlQuery:function(e,t){var n=void 0;return u(e,t).then((function(e){return n=e,e})).then((function(){return n.query()})).then((function(){return n}))},setQuery:u,highlightTabName:function(e){var t=l(e);if(t){var n=0,r=void 0,i=function(){t.style.color=c[n++],n>c.length&&(t.style.color="",clearInterval(r))};r=setInterval(i,400),i()}}}),p=function(){return e=function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.createSavedQueryVisibility=!1,this.showSavedQueriesVisibility=!1,this.shareQueryVisibility=!1,this.includeInferredStatementsVisibility=!1},(t=[{key:"addCreateSavedQuery",value:function(){return this.createSavedQueryVisibility=!0,this}},{key:"addShowSavedQueries",value:function(){return this.showSavedQueriesVisibility=!0,this}},{key:"addShareQuery",value:function(){return this.shareQueryVisibility=!0,this}},{key:"addIncludeInferredStatements",value:function(){return this.includeInferredStatementsVisibility=!0,this}},{key:"build",value:function(){return[{name:f.CREATE_SAVED_QUERY,visible:this.createSavedQueryVisibility},{name:f.SHOW_SAVED_QUERIES,visible:this.showSavedQueriesVisibility},{name:f.SHARE_QUERY,visible:this.shareQueryVisibility},{name:f.INCLUDE_INFERRED_STATEMENTS,visible:this.includeInferredStatementsVisibility}]}}])&&i(e.prototype,t),n&&i(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,n}(),f={CREATE_SAVED_QUERY:"createSavedQuery",SHOW_SAVED_QUERIES:"showSavedQueries",SHARE_QUERY:"shareQuery",EXPANDS_RESULTS:"expandResults",INFER_STATEMENTS:"inferStatements",INCLUDE_INFERRED_STATEMENTS:"includeInferredStatements"},d=(new p).build(),g=(new p).addIncludeInferredStatements().build()},28:function(e,t,n){"use strict";n.r(t),n.d(t,"md5HashGenerator",(function(){return i}));var r=n(9),i=function(){var e=new r.KJUR.crypto.MessageDigest({alg:"md5",prov:"cryptojs"});return function(t){return e.digestString(t)}}},29:function(e,t,n){"use strict";n.r(t),n.d(t,"WorkbenchEventName",(function(){return i}));n(24),n(11);function r(e){var t=void 0,n=!1,r=function(){return t},o=function(){return n};return{setAutocompleteEnabled:function(t){n!==t&&(n=t,e.emitSync(i.AUTOCOMPLETE_ENABLED_UPDATED,o()))},getAutocompleteEnabled:o,onAutocompleteEnabledUpdated:function(t){return angular.isFunction(t)&&t(o()),e.subscribeSync(i.AUTOCOMPLETE_ENABLED_UPDATED,(function(e){return t(e)}))},setSelectedRepositoryId:function(n){t!==n&&(t=n,e.emitSync(i.SELECTED_REPOSITORY_ID_UPDATED,r()))},getSelectedRepositoryId:r,onSelectedRepositoryIdUpdated:function(t){return angular.isFunction(t)&&t(r()),e.subscribeSync(i.SELECTED_REPOSITORY_ID_UPDATED,(function(e){return t(e)}))},resetContext:function(){n=!1,t=void 0}}}angular.module("graphdb.core.services.workbench-context",[]).factory("WorkbenchContextService",r),r.$inject=["EventEmitterService"];var i={SELECTED_REPOSITORY_ID_UPDATED:"selectedRepositoryIdUpdated",AUTOCOMPLETE_ENABLED_UPDATED:"autocompleteEnabledUpdated",SELECTED_REPOSITORY_NAMESPACES_UPDATED:"selectedRepositoryNamespacesUpdated"}},3:function(e,t,n){"use strict";n.r(t),n.d(t,"OPERATION_GROUP_TYPE",(function(){return r}));var r={IMPORT_OPERATION:"IMPORT_OPERATION",QUERIES_OPERATION:"QUERIES_OPERATION",BACKUP_AND_RESTORE_OPERATION:"BACKUP_AND_RESTORE_OPERATION",CLUSTER_OPERATION:"CLUSTER_OPERATION"}},30:function(e,t){angular.module("graphdb.framework.utils.event-emitter-service",[]).factory("EventEmitterService",(function(){var e={},t={};return{subscribe:function(t,n){return e[t]||(e[t]=[]),e[t].push(n),function(){var r=e[t].indexOf(n);-1!==r&&e[t].splice(r,1)}},emit:function(t,n,r){(e[t]||[]).reduce((function(e,t){return e.then((function(e){return t(e)}))}),Promise.resolve(n)).then((function(){angular.isFunction(r)&&r(n)}))},subscribeSync:function(e,n){return t[e]||(t[e]=[]),t[e].push(n),function(){var r=t[e].indexOf(n);-1!==r&&t[e].splice(r,1)}},emitSync:function(e,n){(t[e]||[]).forEach((function(t){angular.isFunction(t)?t(n):console.error('Callback of "'.concat(e,'" is not function:'),t)}))}}}))},31:function(e,t,n){"use strict";n.r(t),n.d(t,"mapNamespacesResponse",(function(){return o})),n.d(t,"namespaceModelMapper",(function(){return a})),n.d(t,"namespaceListModelMapper",(function(){return s}));var r=n(49),i=n(11),o=function(e){return e&&e.data?e.data.results.bindings.map((function(e){return{prefix:e.prefix.value,uri:e.namespace.value}})):[]},a=function(e){return new r.NamespaceModel(e.prefix.value,e.namespace.value)},s=function(e){var t=e?e.map(a):[];return new i.NamespacesListModel(t)}},32:function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,o(r.key),r)}}function o(e){var t=function(e,t){if("object"!=r(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=r(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==r(t)?t:t+""}n.r(t),n.d(t,"FileUtils",(function(){return a}));var a=function(){return e=function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)},n=[{key:"getFilenameAndExtension",value:function(e){var t=e.lastIndexOf(".");return{filename:e.substring(0,t),extension:e.substring(t+1)}}},{key:"downloadAsFile",value:function(e,t,n){var r=document.createElement("a"),i=t.includes(";charset=")?"data:".concat(t):"data:".concat(t,";charset=utf-8");r.setAttribute("href","".concat(i,",").concat(encodeURIComponent(n))),r.setAttribute("download",e),r.style.display="none",document.body.appendChild(r),r.click(),document.body.removeChild(r)}}],(t=null)&&i(e.prototype,t),n&&i(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,n}()},33:function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,o(r.key),r)}}function o(e){var t=function(e,t){if("object"!=r(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=r(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==r(t)?t:t+""}n.r(t),n.d(t,"NumberUtils",(function(){return a}));var a=function(){return e=function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)},n=[{key:"formatNumberToLocaleString",value:function(e,t){return e?e.toLocaleString(t):""}}],(t=null)&&i(e.prototype,t),n&&i(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,n}()},34:function(e,t){angular.module("graphdb.framework.rest.autocomplete.service",[]).factory("AutocompleteRestService",o);var n="".concat("rest/autocomplete","/labels"),r="".concat("rest/autocomplete","/enabled"),i="".concat("rest/autocomplete","/iris");function o(e){return{checkAutocompleteStatus:function(){return e.get(r)},refreshIndexStatus:function(){return e.get("".concat("rest/autocomplete","/status"))},refreshLabelConfig:function(){return e.get(n)},addLabelConfig:function(t){return e.put(n,t)},removeLabelConfig:function(t){return e.delete(n,{data:t,headers:{"Content-Type":"application/json;charset=utf-8"}})},toggleAutocomplete:function(t){return e.post("".concat(r,"?enabled=").concat(t))},refreshIndexIRIs:function(){return e.get(i)},toggleIndexIRIs:function(t){return e.post("".concat(i,"?enabled=").concat(t))},buildIndex:function(){return e.post("".concat("rest/autocomplete","/reindex"))},interruptIndexing:function(){return e.post("".concat("rest/autocomplete","/interrupt"))},checkForPlugin:function(){return e.get("".concat("rest/autocomplete","/plugin-found"))},getAutocompleteSuggestions:function(t,n){return e.get("".concat("rest/autocomplete","/query"),{params:{q:t},timeout:n})}}}o.$inject=["$http"]},35:function(e,t){angular.module("graphdb.framework.rest.license.service",["ngFileUpload"]).factory("LicenseRestService",r),r.$inject=["$http","Upload"];var n="rest/graphdb-settings/license";function r(e,t){return{getLicenseInfo:function(){return e.get(n)},getHardcodedLicense:function(){return e.get("".concat(n,"/hardcoded"))},sendLicenseToValidate:function(t){return e.post("".concat("rest/info/license/","validate"),t,{headers:{Accept:"application/json","Content-Type":"text/plain"}})},extractFromLicenseFile:function(e){return t.upload({url:"".concat("rest/info/license/","to-base-64"),file:e,headers:{Accept:"text/plain"}})},checkLicenseHardcoded:function(){return e.get("".concat(n,"/hardcoded"))},registerLicense:function(t){for(var r=new Uint8Array(t.length),i=0;i<r.length;i++)r[i]=t.charCodeAt(i);return e({method:"POST",url:n,headers:{"Content-Type":"application/octet-stream"},data:r,transformRequest:[]})},unregisterLicense:function(){return e({method:"DELETE",url:"rest/graphdb-settings/license"})},getInfo:function(){return e.get("rest/info/properties")},getVersion:function(t){return e.get("rest/info/version",{headers:{"X-GraphDB-Repository-Location":t}})},getStatistics:function(){return e.get("rest/graphdb-settings/statistics")},toggleStatistics:function(t){return e({method:"POST",url:"rest/graphdb-settings/statistics",headers:{"Content-Type":"application/x-www-form-urlencoded"},data:"enabled=".concat(t)})}}}},36:function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,a(r.key),r)}}function a(e){var t=function(e,t){if("object"!=r(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=r(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==r(t)?t:t+""}n.r(t),n.d(t,"RemoteLocationModel",(function(){return s})),n.d(t,"RemoteLocationType",(function(){return u})),n.d(t,"RemoteLocationAuthType",(function(){return l}));var s=function(){return e=function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};i(this,e),this.uri=t.uri,this.label=t.label||"",this.username=t.username,this.password=t.password,this.authType=t.authType||"none",this.active=t.active,this.local=t.local,this.system=t.system,this.errorMsg=t.errorMsg,this.defaultRepository=t.defaultRepository,this.locationType=t.locationType||u.GRAPH_DB},(t=[{key:"isGraphDBLocation",value:function(){return u.GRAPH_DB===this.locationType}},{key:"isOntopicLocation",value:function(){return u.ONTOPIC===this.locationType}},{key:"isSparqlLocation",value:function(){return u.SPARQL===this.locationType}},{key:"isBasicAuthType",value:function(){return l.BASIC===this.authType}},{key:"isSignatureAuthType",value:function(){return l.SIGNATURE===this.authType}},{key:"isNoneAuthType",value:function(){return l.NONE===this.authType}}])&&o(e.prototype,t),n&&o(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,n}(),u={GRAPH_DB:"GDB",ONTOPIC:"ONTOPIC",SPARQL:"SPARQL"},l={NONE:"none",BASIC:"basic",SIGNATURE:"signature"}},37:function(e,t,n){"use strict";n.r(t),n.d(t,"mapUriAsNtripleAutocompleteResponse",(function(){return r}));var r=function(e){return e&&e.data&&e.data.suggestions?e.data.suggestions.map((function(e){return{type:e.type,value:e.value,description:e.description}})):[]}},372:function(e,t,n){var r,i,o;i=[n(101)],void 0===(o="function"==typeof(r=function(e){e.module("pageslide-directive",[]).directive("pageslide",["$document","$timeout",function(t,n){return{restrict:"EA",transclude:!1,scope:{psOpen:"=?",psAutoClose:"@",psSide:"@",psSpeed:"@",psClass:"@",psSize:"@",psZindex:"@",psPush:"@",psContainer:"@",psKeyListener:"@",psBodyClass:"@",psClickOutside:"@",onopen:"&?",onclose:"&?"},link:function(r,i,o){var a={};a.side=r.psSide||"right",a.speed=r.psSpeed||"0.5",a.size=r.psSize||"300px",a.zindex=r.psZindex||1e3,a.className=r.psClass||"ng-pageslide",a.push="true"===r.psPush,a.container=r.psContainer||!1,a.keyListener="true"===r.psKeyListener,a.bodyClass=r.psBodyClass||!1,a.clickOutside="false"!==r.psClickOutside,a.autoClose=r.psAutoClose||!1,a.push=a.push&&!a.container,i.addClass(a.className);var s,u,l=!1;function c(e){var t=e.touches&&e.touches[0]||e.target;l&&u.contains(t)&&!s.contains(t)&&(l=!1,r.psOpen=!1,r.$apply()),r.psOpen&&(l=!0)}function h(e){if(a.bodyClass){var t=a.className+"-body",n=new RegExp(t+"-closed|"+t+"-open");u.className=u.className.replace(n,"");var r=t+"-"+e;" "!==u.className[u.className.length-1]?u.className+=" "+r:u.className+=r}}if(u=a.container?document.getElementById(a.container):document.body,"div"!==(s=i[0]).tagName.toLowerCase()&&"pageslide"!==s.tagName.toLowerCase())throw new Error("Pageslide can only be applied to <div> or <pageslide> elements");if(0===s.children.length)throw new Error("You need to have content inside the <pageslide>");function p(){r.psOpen?"function"==typeof r.onopen&&r.onopen()():"function"==typeof r.onclose&&r.onclose()()}function f(e,t){switch(t.side){case"right":case"left":e.style.width=t.size,e.style.height="100%",e.style.top="0px",e.style.bottom="0px";break;case"top":case"bottom":e.style.height=t.size,e.style.width="100%",e.style.left="0px",e.style.right="0px"}r.psOpen?g(e,t):d(e,t)}function d(e,n){switch(n.side){case"right":e.style.right="-"+n.size,n.push&&(u.style.right="0px",u.style.left="0px");break;case"left":e.style.left="-"+n.size,n.push&&(u.style.left="0px",u.style.right="0px");break;case"top":e.style.top="-"+n.size,n.push&&(u.style.top="0px",u.style.bottom="0px");break;case"bottom":e.style.bottom="-"+n.size,n.push&&(u.style.bottom="0px",u.style.top="0px")}n.keyListener&&t.off("keydown",m),n.clickOutside&&t.off("touchend click",c),l=!1,h("closed"),r.psOpen=!1}function g(e,n){switch(n.side){case"right":e.style.right="0px",n.push&&(u.style.right=n.size,u.style.left="-"+n.size);break;case"left":e.style.left="0px",n.push&&(u.style.left=n.size,u.style.right="-"+n.size);break;case"top":e.style.top="0px",n.push&&(u.style.top=n.size,u.style.bottom="-"+n.size);break;case"bottom":e.style.bottom="0px",n.push&&(u.style.bottom=n.size,u.style.top="-"+n.size)}r.psOpen=!0,n.keyListener&&t.on("keydown",m),n.clickOutside&&t.on("touchend click",c),h("open")}function m(e){27===(e.keyCode||e.which)&&(d(s,a),n((function(){r.$apply()})))}e.element(s.children),u.appendChild(s),s.style.zIndex=a.zindex,s.style.position="fixed",s.style.transitionDuration=a.speed+"s",s.style.webkitTransitionDuration=a.speed+"s",s.style.height=a.size,s.style.transitionProperty="top, bottom, left, right",a.push&&(u.style.position="absolute",u.style.transitionDuration=a.speed+"s",u.style.webkitTransitionDuration=a.speed+"s",u.style.transitionProperty="top, bottom, left, right"),a.container&&(s.style.position="absolute",u.style.position="relative",u.style.overflow="hidden"),s.addEventListener("transitionend",p),f(s,a),r.$watch("psOpen",(function(e){e?g(s,a):d(s,a)})),r.$watch("psSize",(function(e,t){t!==e&&(a.size=e,f(s,a))})),r.$on("$destroy",(function(){s.parentNode===u&&(a.clickOutside&&t.off("touchend click",c),u.removeChild(s)),s.removeEventListener("transitionend",p)})),a.autoClose&&(r.$on("$locationChangeStart",(function(){d(s,a)})),r.$on("$stateChangeStart",(function(){d(s,a)})))}}}])})?r.apply(t,i):r)||(e.exports=o)},38:function(e,t,n){"use strict";n.r(t),n.d(t,"repositoryConfigMapper",(function(){return i})),n.d(t,"repositoryInfoMapper",(function(){return a}));var r=n(12),i=function(e){return new r.RepositoryConfigModel({id:e.id,title:e.title,type:e.type,sesameType:e.sesameType,location:e.location,params:o(e.params)})};function o(e){var t=new r.RepositoryParams;return Object.keys(e).forEach((function(n){t.addParam(new r.RepositoryParam(e[n]))})),t}var a=function(e){return e?new r.RepositoryInfoModel({id:e.id,title:e.title,type:e.type,sesameType:e.sesameType,uri:e.uri,externalUrl:e.externalUrl,location:e.location,state:e.state,local:e.local,readable:e.readable,writable:e.writable,unsupported:e.unsupported}):null}},383:function(e,t,n){"use strict";(function(e){
16
+ /*!
17
+ * The buffer module from node.js, for the browser.
18
+ *
19
+ * @author Feross Aboukhadijeh <http://feross.org>
20
+ * @license MIT
21
+ */
22
+ var r=n(521),i=n(522),o=n(523);function a(){return u.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function s(e,t){if(a()<t)throw new RangeError("Invalid typed array length");return u.TYPED_ARRAY_SUPPORT?(e=new Uint8Array(t)).__proto__=u.prototype:(null===e&&(e=new u(t)),e.length=t),e}function u(e,t,n){if(!(u.TYPED_ARRAY_SUPPORT||this instanceof u))return new u(e,t,n);if("number"==typeof e){if("string"==typeof t)throw new Error("If encoding is specified then the first argument must be a string");return h(this,e)}return l(this,e,t,n)}function l(e,t,n,r){if("number"==typeof t)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer?function(e,t,n,r){if(t.byteLength,n<0||t.byteLength<n)throw new RangeError("'offset' is out of bounds");if(t.byteLength<n+(r||0))throw new RangeError("'length' is out of bounds");t=void 0===n&&void 0===r?new Uint8Array(t):void 0===r?new Uint8Array(t,n):new Uint8Array(t,n,r);u.TYPED_ARRAY_SUPPORT?(e=t).__proto__=u.prototype:e=p(e,t);return e}(e,t,n,r):"string"==typeof t?function(e,t,n){"string"==typeof n&&""!==n||(n="utf8");if(!u.isEncoding(n))throw new TypeError('"encoding" must be a valid string encoding');var r=0|d(t,n),i=(e=s(e,r)).write(t,n);i!==r&&(e=e.slice(0,i));return e}(e,t,n):function(e,t){if(u.isBuffer(t)){var n=0|f(t.length);return 0===(e=s(e,n)).length||t.copy(e,0,0,n),e}if(t){if("undefined"!=typeof ArrayBuffer&&t.buffer instanceof ArrayBuffer||"length"in t)return"number"!=typeof t.length||(r=t.length)!=r?s(e,0):p(e,t);if("Buffer"===t.type&&o(t.data))return p(e,t.data)}var r;throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(e,t)}function c(e){if("number"!=typeof e)throw new TypeError('"size" argument must be a number');if(e<0)throw new RangeError('"size" argument must not be negative')}function h(e,t){if(c(t),e=s(e,t<0?0:0|f(t)),!u.TYPED_ARRAY_SUPPORT)for(var n=0;n<t;++n)e[n]=0;return e}function p(e,t){var n=t.length<0?0:0|f(t.length);e=s(e,n);for(var r=0;r<n;r+=1)e[r]=255&t[r];return e}function f(e){if(e>=a())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a().toString(16)+" bytes");return 0|e}function d(e,t){if(u.isBuffer(e))return e.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!=typeof e&&(e=""+e);var n=e.length;if(0===n)return 0;for(var r=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return B(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return U(e).length;default:if(r)return B(e).length;t=(""+t).toLowerCase(),r=!0}}function g(e,t,n){var r=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return k(this,t,n);case"utf8":case"utf-8":return C(this,t,n);case"ascii":return T(this,t,n);case"latin1":case"binary":return F(this,t,n);case"base64":return A(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return R(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}function m(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function v(e,t,n,r,i){if(0===e.length)return-1;if("string"==typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=i?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(i)return-1;n=e.length-1}else if(n<0){if(!i)return-1;n=0}if("string"==typeof t&&(t=u.from(t,r)),u.isBuffer(t))return 0===t.length?-1:y(e,t,n,r,i);if("number"==typeof t)return t&=255,u.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):y(e,[t],n,r,i);throw new TypeError("val must be string, number or Buffer")}function y(e,t,n,r,i){var o,a=1,s=e.length,u=t.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return-1;a=2,s/=2,u/=2,n/=2}function l(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(i){var c=-1;for(o=n;o<s;o++)if(l(e,o)===l(t,-1===c?0:o-c)){if(-1===c&&(c=o),o-c+1===u)return c*a}else-1!==c&&(o-=o-c),c=-1}else for(n+u>s&&(n=s-u),o=n;o>=0;o--){for(var h=!0,p=0;p<u;p++)if(l(e,o+p)!==l(t,p)){h=!1;break}if(h)return o}return-1}function b(e,t,n,r){n=Number(n)||0;var i=e.length-n;r?(r=Number(r))>i&&(r=i):r=i;var o=t.length;if(o%2!=0)throw new TypeError("Invalid hex string");r>o/2&&(r=o/2);for(var a=0;a<r;++a){var s=parseInt(t.substr(2*a,2),16);if(isNaN(s))return a;e[n+a]=s}return a}function $(e,t,n,r){return H(B(t,e.length-n),e,n,r)}function w(e,t,n,r){return H(function(e){for(var t=[],n=0;n<e.length;++n)t.push(255&e.charCodeAt(n));return t}(t),e,n,r)}function x(e,t,n,r){return w(e,t,n,r)}function S(e,t,n,r){return H(U(t),e,n,r)}function E(e,t,n,r){return H(function(e,t){for(var n,r,i,o=[],a=0;a<e.length&&!((t-=2)<0);++a)n=e.charCodeAt(a),r=n>>8,i=n%256,o.push(i),o.push(r);return o}(t,e.length-n),e,n,r)}function A(e,t,n){return 0===t&&n===e.length?r.fromByteArray(e):r.fromByteArray(e.slice(t,n))}function C(e,t,n){n=Math.min(e.length,n);for(var r=[],i=t;i<n;){var o,a,s,u,l=e[i],c=null,h=l>239?4:l>223?3:l>191?2:1;if(i+h<=n)switch(h){case 1:l<128&&(c=l);break;case 2:128==(192&(o=e[i+1]))&&(u=(31&l)<<6|63&o)>127&&(c=u);break;case 3:o=e[i+1],a=e[i+2],128==(192&o)&&128==(192&a)&&(u=(15&l)<<12|(63&o)<<6|63&a)>2047&&(u<55296||u>57343)&&(c=u);break;case 4:o=e[i+1],a=e[i+2],s=e[i+3],128==(192&o)&&128==(192&a)&&128==(192&s)&&(u=(15&l)<<18|(63&o)<<12|(63&a)<<6|63&s)>65535&&u<1114112&&(c=u)}null===c?(c=65533,h=1):c>65535&&(c-=65536,r.push(c>>>10&1023|55296),c=56320|1023&c),r.push(c),i+=h}return function(e){var t=e.length;if(t<=4096)return String.fromCharCode.apply(String,e);var n="",r=0;for(;r<t;)n+=String.fromCharCode.apply(String,e.slice(r,r+=4096));return n}(r)}t.Buffer=u,t.SlowBuffer=function(e){+e!=e&&(e=0);return u.alloc(+e)},t.INSPECT_MAX_BYTES=50,u.TYPED_ARRAY_SUPPORT=void 0!==e.TYPED_ARRAY_SUPPORT?e.TYPED_ARRAY_SUPPORT:function(){try{var e=new Uint8Array(1);return e.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===e.foo()&&"function"==typeof e.subarray&&0===e.subarray(1,1).byteLength}catch(e){return!1}}(),t.kMaxLength=a(),u.poolSize=8192,u._augment=function(e){return e.__proto__=u.prototype,e},u.from=function(e,t,n){return l(null,e,t,n)},u.TYPED_ARRAY_SUPPORT&&(u.prototype.__proto__=Uint8Array.prototype,u.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&u[Symbol.species]===u&&Object.defineProperty(u,Symbol.species,{value:null,configurable:!0})),u.alloc=function(e,t,n){return function(e,t,n,r){return c(t),t<=0?s(e,t):void 0!==n?"string"==typeof r?s(e,t).fill(n,r):s(e,t).fill(n):s(e,t)}(null,e,t,n)},u.allocUnsafe=function(e){return h(null,e)},u.allocUnsafeSlow=function(e){return h(null,e)},u.isBuffer=function(e){return!(null==e||!e._isBuffer)},u.compare=function(e,t){if(!u.isBuffer(e)||!u.isBuffer(t))throw new TypeError("Arguments must be Buffers");if(e===t)return 0;for(var n=e.length,r=t.length,i=0,o=Math.min(n,r);i<o;++i)if(e[i]!==t[i]){n=e[i],r=t[i];break}return n<r?-1:r<n?1:0},u.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},u.concat=function(e,t){if(!o(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return u.alloc(0);var n;if(void 0===t)for(t=0,n=0;n<e.length;++n)t+=e[n].length;var r=u.allocUnsafe(t),i=0;for(n=0;n<e.length;++n){var a=e[n];if(!u.isBuffer(a))throw new TypeError('"list" argument must be an Array of Buffers');a.copy(r,i),i+=a.length}return r},u.byteLength=d,u.prototype._isBuffer=!0,u.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)m(this,t,t+1);return this},u.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)m(this,t,t+3),m(this,t+1,t+2);return this},u.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<e;t+=8)m(this,t,t+7),m(this,t+1,t+6),m(this,t+2,t+5),m(this,t+3,t+4);return this},u.prototype.toString=function(){var e=0|this.length;return 0===e?"":0===arguments.length?C(this,0,e):g.apply(this,arguments)},u.prototype.equals=function(e){if(!u.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===u.compare(this,e)},u.prototype.inspect=function(){var e="",n=t.INSPECT_MAX_BYTES;return this.length>0&&(e=this.toString("hex",0,n).match(/.{2}/g).join(" "),this.length>n&&(e+=" ... ")),"<Buffer "+e+">"},u.prototype.compare=function(e,t,n,r,i){if(!u.isBuffer(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===r&&(r=0),void 0===i&&(i=this.length),t<0||n>e.length||r<0||i>this.length)throw new RangeError("out of range index");if(r>=i&&t>=n)return 0;if(r>=i)return-1;if(t>=n)return 1;if(this===e)return 0;for(var o=(i>>>=0)-(r>>>=0),a=(n>>>=0)-(t>>>=0),s=Math.min(o,a),l=this.slice(r,i),c=e.slice(t,n),h=0;h<s;++h)if(l[h]!==c[h]){o=l[h],a=c[h];break}return o<a?-1:a<o?1:0},u.prototype.includes=function(e,t,n){return-1!==this.indexOf(e,t,n)},u.prototype.indexOf=function(e,t,n){return v(this,e,t,n,!0)},u.prototype.lastIndexOf=function(e,t,n){return v(this,e,t,n,!1)},u.prototype.write=function(e,t,n,r){if(void 0===t)r="utf8",n=this.length,t=0;else if(void 0===n&&"string"==typeof t)r=t,n=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t|=0,isFinite(n)?(n|=0,void 0===r&&(r="utf8")):(r=n,n=void 0)}var i=this.length-t;if((void 0===n||n>i)&&(n=i),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var o=!1;;)switch(r){case"hex":return b(this,e,t,n);case"utf8":case"utf-8":return $(this,e,t,n);case"ascii":return w(this,e,t,n);case"latin1":case"binary":return x(this,e,t,n);case"base64":return S(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return E(this,e,t,n);default:if(o)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),o=!0}},u.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function T(e,t,n){var r="";n=Math.min(e.length,n);for(var i=t;i<n;++i)r+=String.fromCharCode(127&e[i]);return r}function F(e,t,n){var r="";n=Math.min(e.length,n);for(var i=t;i<n;++i)r+=String.fromCharCode(e[i]);return r}function k(e,t,n){var r=e.length;(!t||t<0)&&(t=0),(!n||n<0||n>r)&&(n=r);for(var i="",o=t;o<n;++o)i+=M(e[o]);return i}function R(e,t,n){for(var r=e.slice(t,n),i="",o=0;o<r.length;o+=2)i+=String.fromCharCode(r[o]+256*r[o+1]);return i}function P(e,t,n){if(e%1!=0||e<0)throw new RangeError("offset is not uint");if(e+t>n)throw new RangeError("Trying to access beyond buffer length")}function D(e,t,n,r,i,o){if(!u.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||t<o)throw new RangeError('"value" argument is out of bounds');if(n+r>e.length)throw new RangeError("Index out of range")}function O(e,t,n,r){t<0&&(t=65535+t+1);for(var i=0,o=Math.min(e.length-n,2);i<o;++i)e[n+i]=(t&255<<8*(r?i:1-i))>>>8*(r?i:1-i)}function I(e,t,n,r){t<0&&(t=4294967295+t+1);for(var i=0,o=Math.min(e.length-n,4);i<o;++i)e[n+i]=t>>>8*(r?i:3-i)&255}function _(e,t,n,r,i,o){if(n+r>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function j(e,t,n,r,o){return o||_(e,0,n,4),i.write(e,t,n,r,23,4),n+4}function L(e,t,n,r,o){return o||_(e,0,n,8),i.write(e,t,n,r,52,8),n+8}u.prototype.slice=function(e,t){var n,r=this.length;if((e=~~e)<0?(e+=r)<0&&(e=0):e>r&&(e=r),(t=void 0===t?r:~~t)<0?(t+=r)<0&&(t=0):t>r&&(t=r),t<e&&(t=e),u.TYPED_ARRAY_SUPPORT)(n=this.subarray(e,t)).__proto__=u.prototype;else{var i=t-e;n=new u(i,void 0);for(var o=0;o<i;++o)n[o]=this[o+e]}return n},u.prototype.readUIntLE=function(e,t,n){e|=0,t|=0,n||P(e,t,this.length);for(var r=this[e],i=1,o=0;++o<t&&(i*=256);)r+=this[e+o]*i;return r},u.prototype.readUIntBE=function(e,t,n){e|=0,t|=0,n||P(e,t,this.length);for(var r=this[e+--t],i=1;t>0&&(i*=256);)r+=this[e+--t]*i;return r},u.prototype.readUInt8=function(e,t){return t||P(e,1,this.length),this[e]},u.prototype.readUInt16LE=function(e,t){return t||P(e,2,this.length),this[e]|this[e+1]<<8},u.prototype.readUInt16BE=function(e,t){return t||P(e,2,this.length),this[e]<<8|this[e+1]},u.prototype.readUInt32LE=function(e,t){return t||P(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},u.prototype.readUInt32BE=function(e,t){return t||P(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},u.prototype.readIntLE=function(e,t,n){e|=0,t|=0,n||P(e,t,this.length);for(var r=this[e],i=1,o=0;++o<t&&(i*=256);)r+=this[e+o]*i;return r>=(i*=128)&&(r-=Math.pow(2,8*t)),r},u.prototype.readIntBE=function(e,t,n){e|=0,t|=0,n||P(e,t,this.length);for(var r=t,i=1,o=this[e+--r];r>0&&(i*=256);)o+=this[e+--r]*i;return o>=(i*=128)&&(o-=Math.pow(2,8*t)),o},u.prototype.readInt8=function(e,t){return t||P(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},u.prototype.readInt16LE=function(e,t){t||P(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},u.prototype.readInt16BE=function(e,t){t||P(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},u.prototype.readInt32LE=function(e,t){return t||P(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},u.prototype.readInt32BE=function(e,t){return t||P(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},u.prototype.readFloatLE=function(e,t){return t||P(e,4,this.length),i.read(this,e,!0,23,4)},u.prototype.readFloatBE=function(e,t){return t||P(e,4,this.length),i.read(this,e,!1,23,4)},u.prototype.readDoubleLE=function(e,t){return t||P(e,8,this.length),i.read(this,e,!0,52,8)},u.prototype.readDoubleBE=function(e,t){return t||P(e,8,this.length),i.read(this,e,!1,52,8)},u.prototype.writeUIntLE=function(e,t,n,r){(e=+e,t|=0,n|=0,r)||D(this,e,t,n,Math.pow(2,8*n)-1,0);var i=1,o=0;for(this[t]=255&e;++o<n&&(i*=256);)this[t+o]=e/i&255;return t+n},u.prototype.writeUIntBE=function(e,t,n,r){(e=+e,t|=0,n|=0,r)||D(this,e,t,n,Math.pow(2,8*n)-1,0);var i=n-1,o=1;for(this[t+i]=255&e;--i>=0&&(o*=256);)this[t+i]=e/o&255;return t+n},u.prototype.writeUInt8=function(e,t,n){return e=+e,t|=0,n||D(this,e,t,1,255,0),u.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},u.prototype.writeUInt16LE=function(e,t,n){return e=+e,t|=0,n||D(this,e,t,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):O(this,e,t,!0),t+2},u.prototype.writeUInt16BE=function(e,t,n){return e=+e,t|=0,n||D(this,e,t,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):O(this,e,t,!1),t+2},u.prototype.writeUInt32LE=function(e,t,n){return e=+e,t|=0,n||D(this,e,t,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):I(this,e,t,!0),t+4},u.prototype.writeUInt32BE=function(e,t,n){return e=+e,t|=0,n||D(this,e,t,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):I(this,e,t,!1),t+4},u.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t|=0,!r){var i=Math.pow(2,8*n-1);D(this,e,t,n,i-1,-i)}var o=0,a=1,s=0;for(this[t]=255&e;++o<n&&(a*=256);)e<0&&0===s&&0!==this[t+o-1]&&(s=1),this[t+o]=(e/a>>0)-s&255;return t+n},u.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t|=0,!r){var i=Math.pow(2,8*n-1);D(this,e,t,n,i-1,-i)}var o=n-1,a=1,s=0;for(this[t+o]=255&e;--o>=0&&(a*=256);)e<0&&0===s&&0!==this[t+o+1]&&(s=1),this[t+o]=(e/a>>0)-s&255;return t+n},u.prototype.writeInt8=function(e,t,n){return e=+e,t|=0,n||D(this,e,t,1,127,-128),u.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},u.prototype.writeInt16LE=function(e,t,n){return e=+e,t|=0,n||D(this,e,t,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):O(this,e,t,!0),t+2},u.prototype.writeInt16BE=function(e,t,n){return e=+e,t|=0,n||D(this,e,t,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):O(this,e,t,!1),t+2},u.prototype.writeInt32LE=function(e,t,n){return e=+e,t|=0,n||D(this,e,t,4,2147483647,-2147483648),u.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):I(this,e,t,!0),t+4},u.prototype.writeInt32BE=function(e,t,n){return e=+e,t|=0,n||D(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):I(this,e,t,!1),t+4},u.prototype.writeFloatLE=function(e,t,n){return j(this,e,t,!0,n)},u.prototype.writeFloatBE=function(e,t,n){return j(this,e,t,!1,n)},u.prototype.writeDoubleLE=function(e,t,n){return L(this,e,t,!0,n)},u.prototype.writeDoubleBE=function(e,t,n){return L(this,e,t,!1,n)},u.prototype.copy=function(e,t,n,r){if(n||(n=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r<n&&(r=n),r===n)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("sourceStart out of bounds");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t<r-n&&(r=e.length-t+n);var i,o=r-n;if(this===e&&n<t&&t<r)for(i=o-1;i>=0;--i)e[i+t]=this[i+n];else if(o<1e3||!u.TYPED_ARRAY_SUPPORT)for(i=0;i<o;++i)e[i+t]=this[i+n];else Uint8Array.prototype.set.call(e,this.subarray(n,n+o),t);return o},u.prototype.fill=function(e,t,n,r){if("string"==typeof e){if("string"==typeof t?(r=t,t=0,n=this.length):"string"==typeof n&&(r=n,n=this.length),1===e.length){var i=e.charCodeAt(0);i<256&&(e=i)}if(void 0!==r&&"string"!=typeof r)throw new TypeError("encoding must be a string");if("string"==typeof r&&!u.isEncoding(r))throw new TypeError("Unknown encoding: "+r)}else"number"==typeof e&&(e&=255);if(t<0||this.length<t||this.length<n)throw new RangeError("Out of range index");if(n<=t)return this;var o;if(t>>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"==typeof e)for(o=t;o<n;++o)this[o]=e;else{var a=u.isBuffer(e)?e:B(new u(e,r).toString()),s=a.length;for(o=0;o<n-t;++o)this[o+t]=a[o%s]}return this};var N=/[^+\/0-9A-Za-z-_]/g;function M(e){return e<16?"0"+e.toString(16):e.toString(16)}function B(e,t){var n;t=t||1/0;for(var r=e.length,i=null,o=[],a=0;a<r;++a){if((n=e.charCodeAt(a))>55295&&n<57344){if(!i){if(n>56319){(t-=3)>-1&&o.push(239,191,189);continue}if(a+1===r){(t-=3)>-1&&o.push(239,191,189);continue}i=n;continue}if(n<56320){(t-=3)>-1&&o.push(239,191,189),i=n;continue}n=65536+(i-55296<<10|n-56320)}else i&&(t-=3)>-1&&o.push(239,191,189);if(i=null,n<128){if((t-=1)<0)break;o.push(n)}else if(n<2048){if((t-=2)<0)break;o.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;o.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;o.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return o}function U(e){return r.toByteArray(function(e){if((e=function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}(e).replace(N,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function H(e,t,n,r){for(var i=0;i<r&&!(i+n>=t.length||i>=e.length);++i)t[i+n]=e[i];return i}}).call(this,n(18))},384:function(e,t,n){var r,i,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(a,s){"use strict";i=[n(101)],void 0===(o="function"==typeof(r=function(e){var t=e.module("rzSlider",[]).factory("RzSliderOptions",(function(){var t={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},n={},r={options:function(t){e.extend(n,t)},getOptions:function(r){return e.extend({},t,n,r)}};return r})).factory("rzThrottle",["$timeout",function(e){return function(t,n,r){var i,o,a,s=Date.now||function(){return(new Date).getTime()},u=null,l=0;r=r||{};var c=function(){l=s(),u=null,a=t.apply(i,o),i=o=null};return function(){var h=s(),p=n-(h-l);return i=this,o=arguments,0>=p?(e.cancel(u),u=null,l=h,a=t.apply(i,o),i=o=null):u||!1===r.trailing||(u=e(c,p)),a}}}]).factory("RzSlider",["$timeout","$document","$window","$compile","RzSliderOptions","rzThrottle",function(t,n,r,i,o,a){var s=function(e,t){this.scope=e,this.lowValue=0,this.highValue=0,this.sliderElem=t,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 s.prototype={init:function(){var t,n,i=this,o=function(){i.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),e.element(r).on("resize",o),this.initHasRun=!0,this.options.disableAnimation&&this.sliderElem.addClass("noanimate"),t=a((function(){i.onLowHandleChange()}),i.options.interval),n=a((function(){i.onHighHandleChange()}),i.options.interval),this.scope.$on("rzSliderForceRender",(function(){i.resetLabelsValue(),t(),i.range&&n(),i.resetSlider()})),this.scope.$watchCollection("rzSliderOptions()",(function(e,t){e!==t&&(i.applyOptions(),i.syncLowValue(),i.range&&i.syncHighValue(),i.resetSlider())})),this.scope.$watch("rzSliderModel",(function(e,n){i.internalChange||e!==n&&t()})),this.scope.$watch("rzSliderHigh",(function(e,t){i.internalChange||e!==t&&(null!=e&&n(),(i.range&&null==e||!i.range&&null!=e)&&(i.applyOptions(),i.resetSlider()))})),this.scope.$on("$destroy",(function(){i.unbindEvents(),e.element(r).off("resize",o),i.currentFocusElement=null}))},findStepIndex:function(t){for(var n=0,r=0;r<this.options.stepsArray.length;r++){var i=this.options.stepsArray[r];if(i===t){n=r;break}if(e.isDate(i)){if(i.getTime()===t.getTime()){n=r;break}}else if(e.isObject(i)&&(e.isDate(i.value)&&i.value.getTime()===t.getTime()||i.value===t)){n=r;break}}return n},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(t){var n=this.options.stepsArray[t];return e.isDate(n)?n:e.isObject(n)?n.value:n},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 t;t=this.scope.rzSliderOptions?this.scope.rzSliderOptions():{},this.options=o.getOptions(t),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,(e.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(e){return String(e)},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(e){return this.options.bindIndexForStepsArray?this.getStepValue(e):e},this.getLegend=function(t){var n=this.options.stepsArray[t];return e.isObject(n)?n.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(t){var n=e.element(t);if(this.restrictedBar=[],this.options.restrictedRange){this.options.restrictedRange=Array.isArray(this.options.restrictedRange)?this.options.restrictedRange:[this.options.restrictedRange],this.restrictedBar[0]=n;for(var r=t.parentElement,i=1;i<this.options.restrictedRange.length;i++){var o=document.createElement("span");o.setAttribute("class","rz-bar-wrapper"),o.innerHTML='<span class="rz-bar rz-restricted" ng-style="restrictionStyle"></span>',r.appendChild(o),this.restrictedBar[i]=e.element(o)}}else t.style.visibility="hidden",this.restrictedBar=null},initElemHandles:function(){e.forEach(this.sliderElem.children(),(function(t,n){var r=e.element(t);switch(n){case 0:this.leftOutSelBar=r;break;case 1:this.rightOutSelBar=r;break;case 2:this.fullBar=r;break;case 3:this.selBar=r;break;case 4:this.ensureRestrictedBarIsArray(t);break;case 5:this.minH=r;break;case 6:this.maxH=r;break;case 7:this.flrLab=r;break;case 8:this.ceilLab=r;break;case 9:this.minLab=r;break;case 10:this.maxLab=r;break;case 11:this.cmbLab=r;break;case 12:this.ticks=r}}),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 e=this.options.showTicksValues&&!this.intermediateTicks;for(var t in this.alwaysHide(this.minLab,e||this.options.hidePointerLabels),this.alwaysHide(this.maxLab,e||!this.range||this.options.hidePointerLabels),this.alwaysHide(this.cmbLab,e||!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[t]&&this.alwaysHide(this.restrictedBar[t],!this.options.restrictedRange[t]);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(e,t){e.rzAlwaysHide=t,t?this.hideEl(e):this.showEl(e)},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(e,t,n,r){r=void 0===r||r;var i="",o=!1,a=t.hasClass("no-label-injection");r?(this.options.stepsArray&&!this.options.bindIndexForStepsArray&&(e=this.getStepValue(e)),i=String(this.customTrFn(e,this.options.id,n))):i=String(e),(void 0===t.rzsv||t.rzsv.length!==i.length||t.rzsv.length>0&&0===t.rzsd)&&(o=!0,t.rzsv=i),a||t.html(i),this.scope[n+"Label"]=i,o&&this.getDimension(t)},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 e=this.getDimension(this.minH);if(this.handleHalfDim=e/2,this.barDimension=this.getDimension(this.fullBar),this.maxPos=this.barDimension-e,this.getDimension(this.sliderElem),this.sliderElem.rzsp=this.sliderElem[0].getBoundingClientRect()[this.positionProperty],this.initHasRun){this.updateFloorLab(),this.updateCeilLab(),this.initHandles();var n=this;t((function(){n.updateTicksScale()}))}},updateTicksScale:function(){if(this.options.showTicks){var t=this.options.ticksArray||this.getTicksArray(),n=this.options.vertical?"translateY":"translateX",r=this;this.options.rightToLeft&&t.reverse(),this.scope.ticks=t.map((function(t){var i=null;e.isObject(t)&&(i=t.legend,t=t.value);var o=r.valueToPosition(t);r.options.vertical&&(o=r.maxPos-o);var a=n+"("+Math.round(o)+"px)",s={legend:i,selected:r.isTickSelected(t),style:{"-webkit-transform":a,"-moz-transform":a,"-o-transform":a,"-ms-transform":a,transform:a}};return s.selected&&r.options.getSelectionBarColor&&(s.style["background-color"]=r.getSelectionBarColor()),!s.selected&&r.options.getTickColor&&(s.style["background-color"]=r.getTickColor(t)),r.options.ticksTooltip&&(s.tooltip=r.options.ticksTooltip(t),s.tooltipPlacement=r.options.vertical?"right":"top"),(!0===r.options.showTicksValues||t%r.options.showTicksValues==0)&&(s.value=r.getDisplayValue(t,"tick-value"),r.options.ticksValuesTooltip&&(s.valueTooltip=r.options.ticksValuesTooltip(t),s.valueTooltipPlacement=r.options.vertical?"right":"top")),r.getLegend&&((i=r.getLegend(t,r.options.id))&&(s.legend=i)),s}))}},getTicksArray:function(){var e=this.step,t=[];this.intermediateTicks&&(e=this.options.showTicks);for(var n=this.minValue;n<=this.maxValue;n+=e)t.push(n);return t},isTickSelected:function(e){if(!this.range)if(null!==this.options.showSelectionBarFromValue){var t=this.options.showSelectionBarFromValue;if(this.lowValue>t&&e>=t&&e<=this.lowValue)return!0;if(this.lowValue<t&&t>=e&&e>=this.lowValue)return!0}else if(this.options.showSelectionBarEnd){if(e>=this.lowValue)return!0}else if(this.options.showSelectionBar&&e<=this.lowValue)return!0;return!!(this.range&&e>=this.lowValue&&e<=this.highValue)},updateFloorLab:function(){this.translateFn(this.minValue,this.flrLab,"floor"),this.getDimension(this.flrLab);var e=this.options.rightToLeft?this.barDimension-this.flrLab.rzsd:0;this.setPosition(this.flrLab,e)},updateCeilLab:function(){this.translateFn(this.maxValue,this.ceilLab,"ceil"),this.getDimension(this.ceilLab);var e=this.options.rightToLeft?0:this.barDimension-this.ceilLab.rzsd;this.setPosition(this.ceilLab,e)},updateHandles:function(e,t){"lowValue"===e?this.updateLowHandle(t):this.updateHighHandle(t),this.updateSelectionBar(),this.updateTicksScale(),this.range&&this.updateCmbLabel()},getHandleLabelPos:function(e,t){var n=this[e].rzsd,r=t-n/2+this.handleHalfDim,i=this.barDimension-n;return this.options.boundPointerLabels?this.options.rightToLeft&&"minLab"===e||!this.options.rightToLeft&&"maxLab"===e?Math.min(r,i):Math.min(Math.max(r,0),i):r},updateLowHandle:function(e){if(this.setPosition(this.minH,e),this.translateFn(this.lowValue,this.minLab,"model"),this.setPosition(this.minLab,this.getHandleLabelPos("minLab",e)),this.options.getPointerColor){var t=this.getPointerColor("min");this.scope.minPointerStyle={backgroundColor:t}}this.options.autoHideLimitLabels&&this.shFloorCeil()},updateHighHandle:function(e){if(this.setPosition(this.maxH,e),this.translateFn(this.highValue,this.maxLab,"high"),this.setPosition(this.maxLab,this.getHandleLabelPos("maxLab",e)),this.options.getPointerColor){var t=this.getPointerColor("max");this.scope.maxPointerStyle={backgroundColor:t}}this.options.autoHideLimitLabels&&this.shFloorCeil()},shFloorCeil:function(){if(!this.options.hidePointerLabels){var e=!1,t=!1,n=this.isLabelBelowFloorLab(this.minLab),r=this.isLabelAboveCeilLab(this.minLab),i=this.isLabelAboveCeilLab(this.maxLab),o=this.isLabelBelowFloorLab(this.cmbLab),a=this.isLabelAboveCeilLab(this.cmbLab);if(n?(e=!0,this.hideEl(this.flrLab)):(e=!1,this.showEl(this.flrLab)),r?(t=!0,this.hideEl(this.ceilLab)):(t=!1,this.showEl(this.ceilLab)),this.range){var s=this.cmbLabelShown?a:i,u=this.cmbLabelShown?o:n;s?this.hideEl(this.ceilLab):t||this.showEl(this.ceilLab),u?this.hideEl(this.flrLab):e||this.showEl(this.flrLab)}}},isLabelBelowFloorLab:function(e){var t=this.options.rightToLeft,n=e.rzsp,r=e.rzsd,i=this.flrLab.rzsp,o=this.flrLab.rzsd;return t?n+r>=i-2:i+o+2>=n},isLabelAboveCeilLab:function(e){var t=this.options.rightToLeft,n=e.rzsp,r=e.rzsd,i=this.ceilLab.rzsp,o=this.ceilLab.rzsd;return t?i+o+2>=n:n+r>=i-2},updateRestrictionBar:function(){var e=0,t=0;if(this.options.restrictedRange)for(var n in this.options.restrictedRange=Array.isArray(this.options.restrictedRange)?this.options.restrictedRange:[this.options.restrictedRange],this.options.restrictedRange){var r=this.valueToPosition(this.options.restrictedRange[n].from),i=this.valueToPosition(this.options.restrictedRange[n].to);t=Math.abs(i-r),e=this.options.rightToLeft?i+this.handleHalfDim:r+this.handleHalfDim,this.setDimension(this.restrictedBar[n],t),this.setPosition(this.restrictedBar[n],e)}},updateSelectionBar:function(){var e=0,t=0,n=this.options.rightToLeft?!this.options.showSelectionBarEnd:this.options.showSelectionBarEnd,r=this.options.rightToLeft?this.maxH.rzsp+this.handleHalfDim:this.minH.rzsp+this.handleHalfDim;if(this.range)t=Math.abs(this.maxH.rzsp-this.minH.rzsp),e=r;else if(null!==this.options.showSelectionBarFromValue){var i=this.options.showSelectionBarFromValue,o=this.valueToPosition(i);(this.options.rightToLeft?this.lowValue<=i:this.lowValue>i)?(t=this.minH.rzsp-o,e=o+this.handleHalfDim):(t=o-this.minH.rzsp,e=this.minH.rzsp+this.handleHalfDim)}else n?(t=Math.abs(this.maxPos-this.minH.rzsp)+this.handleHalfDim,e=this.minH.rzsp+this.handleHalfDim):(t=this.minH.rzsp+this.handleHalfDim,e=0);if(this.setDimension(this.selBar,t),this.setPosition(this.selBar,e),this.range&&this.options.showOuterSelectionBars&&(this.options.rightToLeft?(this.setDimension(this.rightOutSelBar,e),this.setPosition(this.rightOutSelBar,0),this.setDimension(this.leftOutSelBar,this.getDimension(this.fullBar)-(e+t)),this.setPosition(this.leftOutSelBar,e+t)):(this.setDimension(this.leftOutSelBar,e),this.setPosition(this.leftOutSelBar,0),this.setDimension(this.rightOutSelBar,this.getDimension(this.fullBar)-(e+t)),this.setPosition(this.rightOutSelBar,e+t))),this.options.getSelectionBarColor){var a=this.getSelectionBarColor();this.scope.barStyle={backgroundColor:a}}else if(this.options.selectionBarGradient){var s=null!==this.options.showSelectionBarFromValue?this.valueToPosition(this.options.showSelectionBarFromValue):0,u=s-e>0^n,l=this.options.vertical?u?"bottom":"top":u?"left":"right";this.scope.barStyle={backgroundImage:"linear-gradient(to "+l+", "+this.options.selectionBarGradient.from+" 0%,"+this.options.selectionBarGradient.to+" 100%)"},this.options.vertical?(this.scope.barStyle.backgroundPosition="center "+(s+t+e+(u?-this.handleHalfDim:0))+"px",this.scope.barStyle.backgroundSize="100% "+(this.barDimension-this.handleHalfDim)+"px"):(this.scope.barStyle.backgroundPosition=s-e+(u?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(e){return"max"===e?this.options.getPointerColor(this.scope.rzSliderHigh,e):this.options.getPointerColor(this.scope.rzSliderModel,e)},getTickColor:function(e){return this.options.getTickColor(e)},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 e,t=this.getDisplayValue(this.lowValue,"model"),n=this.getDisplayValue(this.highValue,"high");e=this.options.mergeRangeLabelsIfSame&&t===n?t:this.options.rightToLeft?n+this.options.labelOverlapSeparator+t:t+this.options.labelOverlapSeparator+n,this.translateFn(e,this.cmbLab,"cmb",!1);var r=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,r),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(e,t){return this.options.stepsArray&&!this.options.bindIndexForStepsArray&&(e=this.getStepValue(e)),this.customTrFn(e,this.options.id,t)},roundStep:function(e,t){var n=t||this.step,r=parseFloat((e-this.minValue)/n).toPrecision(12);return r=Math.round(+r)*n,+(this.minValue+r).toFixed(this.precision)},hideEl:function(e){return e.css({visibility:"hidden"})},showEl:function(e){return e.rzAlwaysHide?e:e.css({visibility:"visible"})},setPosition:function(e,t){e.rzsp=t;var n={};return n[this.positionProperty]=Math.round(t)+"px",e.css(n),t},resetPosition:function(e){e.css({left:null,bottom:null})},getDimension:function(e){var t=e[0].getBoundingClientRect();return this.options.vertical?e.rzsd=(t.bottom-t.top)*this.options.scale:e.rzsd=(t.right-t.left)*this.options.scale,e.rzsd},setDimension:function(e,t){e.rzsd=t;var n={};return n[this.dimensionProperty]=Math.round(t)+"px",e.css(n),t},sanitizeValue:function(e){return Math.min(Math.max(e,this.minValue),this.maxValue)},valueToPosition:function(e){var t=this.linearValueToPosition;this.options.customValueToPosition?t=this.options.customValueToPosition:this.options.logScale&&(t=this.logValueToPosition);var n=t(e=this.sanitizeValue(e),this.minValue,this.maxValue)||0;return this.options.rightToLeft&&(n=1-n),n*this.maxPos},linearValueToPosition:function(e,t,n){return(e-t)/(n-t)},logValueToPosition:function(e,t,n){return((e=Math.log(e))-(t=Math.log(t)))/((n=Math.log(n))-t)},positionToValue:function(e){var t=e/this.maxPos;this.options.rightToLeft&&(t=1-t);var n=this.linearPositionToValue;return this.options.customPositionToValue?n=this.options.customPositionToValue:this.options.logScale&&(n=this.logPositionToValue),n(t,this.minValue,this.maxValue)||0},linearPositionToValue:function(e,t,n){return e*(n-t)+t},logPositionToValue:function(e,t,n){t=Math.log(t);var r=e*((n=Math.log(n))-t)+t;return Math.exp(r)},getEventAttr:function(e,t){return void 0===e.originalEvent?e[t]:e.originalEvent[t]},getEventXY:function(e,t){var n=this.options.vertical?"clientY":"clientX";if(void 0!==e[n])return e[n];var r=this.getEventAttr(e,"touches");if(void 0!==t)for(var i=0;i<r.length;i++)if(r[i].identifier===t)return r[i][n];return r[0][n]},getEventPosition:function(e,t){var n=this.sliderElem.rzsp;return(this.options.vertical?-this.getEventXY(e,t)+n:this.getEventXY(e,t)-n)*this.options.scale-this.handleHalfDim},getEventNames:function(e){var t={moveEvent:"",endEvent:""};return this.getEventAttr(e,"touches")?(t.moveEvent="touchmove",t.endEvent="touchend"):(t.moveEvent="mousemove",t.endEvent="mouseup"),t},getNearestHandle:function(e){if(!this.range)return this.minH;var t=this.getEventPosition(e),n=Math.abs(t-this.minH.rzsp),r=Math.abs(t-this.maxH.rzsp);return r>n?this.minH:n>r?this.maxH:this.options.rightToLeft?t>this.minH.rzsp?this.minH:this.maxH:t<this.minH.rzsp?this.minH:this.maxH},focusElement:function(e){e[0].focus()},bindEvents:function(){var t,n,r;this.options.draggableRange?(t="rzSliderDrag",n=this.onDragStart,r=this.onDragMove):(t="lowValue",n=this.onStart,r=this.onMove),this.options.onlyBindHandles||(this.selBar.on("mousedown",e.bind(this,n,null,t)),this.selBar.on("mousedown",e.bind(this,r,this.selBar))),this.options.draggableRangeOnly?(this.minH.on("mousedown",e.bind(this,n,null,t)),this.maxH.on("mousedown",e.bind(this,n,null,t))):(this.minH.on("mousedown",e.bind(this,this.onStart,this.minH,"lowValue")),this.range&&this.maxH.on("mousedown",e.bind(this,this.onStart,this.maxH,"highValue")),this.options.onlyBindHandles||(this.fullBar.on("mousedown",e.bind(this,this.onStart,null,null)),this.fullBar.on("mousedown",e.bind(this,this.onMove,this.fullBar)),this.ticks.on("mousedown",e.bind(this,this.onStart,null,null)),this.ticks.on("mousedown",e.bind(this,this.onTickClick,this.ticks)))),this.options.onlyBindHandles||(this.selBar.on("touchstart",e.bind(this,n,null,t)),this.selBar.on("touchstart",e.bind(this,r,this.selBar))),this.options.draggableRangeOnly?(this.minH.on("touchstart",e.bind(this,n,null,t)),this.maxH.on("touchstart",e.bind(this,n,null,t))):(this.minH.on("touchstart",e.bind(this,this.onStart,this.minH,"lowValue")),this.range&&this.maxH.on("touchstart",e.bind(this,this.onStart,this.maxH,"highValue")),this.options.onlyBindHandles||(this.fullBar.on("touchstart",e.bind(this,this.onStart,null,null)),this.fullBar.on("touchstart",e.bind(this,this.onMove,this.fullBar)),this.ticks.on("touchstart",e.bind(this,this.onStart,null,null)),this.ticks.on("touchstart",e.bind(this,this.onTickClick,this.ticks)))),this.options.keyboardSupport&&(this.minH.on("focus",e.bind(this,this.onPointerFocus,this.minH,"lowValue")),this.range&&this.maxH.on("focus",e.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(t,r,i){var o,a,s=this.getEventNames(i);i.stopPropagation(),i.preventDefault(),this.calcViewDimensions(),t?this.tracking=r:(t=this.getNearestHandle(i),this.tracking=t===this.minH?"lowValue":"highValue"),t.addClass("rz-active"),this.options.keyboardSupport&&this.focusElement(t),o=e.bind(this,this.dragging.active?this.onDragMove:this.onMove,t),a=e.bind(this,this.onEnd,o),n.on(s.moveEvent,o),n.on(s.endEvent,a),this.endHandlerToBeRemovedOnEnd=a,this.callOnStart();var u=this.getEventAttr(i,"changedTouches");u&&(this.touchId||(this.isDragging=!0,this.touchId=u[0].identifier))},onMove:function(t,n,r){this.options.disableAnimation||this.moving&&this.sliderElem.addClass("noanimate"),this.moving=!0;var i,o=this.getEventAttr(n,"changedTouches");if(o)for(var a=0;a<o.length;a++)if(o[a].identifier===this.touchId){i=o[a];break}if(!o||i){var s,u=this.getEventPosition(n,i?i.identifier:void 0),l=this.options.rightToLeft?this.minValue:this.maxValue,c=this.options.rightToLeft?this.maxValue:this.minValue;0>=u?s=c:u>=this.maxPos?s=l:(s=this.positionToValue(u),s=r&&e.isNumber(this.options.showTicks)?this.roundStep(s,this.options.showTicks):this.roundStep(s)),this.positionTrackingHandle(s)}},onEnd:function(e,t){this.moving=!1,this.options.disableAnimation||this.sliderElem.removeClass("noanimate");var r=this.getEventAttr(t,"changedTouches");if(!r||r[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 i=this.getEventNames(t);n.off(i.moveEvent,e),n.off(i.endEvent,this.endHandlerToBeRemovedOnEnd),this.endHandlerToBeRemovedOnEnd=null,this.callOnEnd()}},onTickClick:function(e,t){this.onMove(e,t,!0)},onPointerFocus:function(t,n){this.tracking=n,t.one("blur",e.bind(this,this.onPointerBlur,t)),t.on("keydown",e.bind(this,this.onKeyboardEvent)),t.on("keyup",e.bind(this,this.onKeyUp)),this.firstKeyDown=!0,t.addClass("rz-active"),this.currentFocusElement={pointer:t,ref:n}},onKeyUp:function(){this.firstKeyDown=!0,this.callOnEnd()},onPointerBlur:function(e){e.off("keydown"),e.off("keyup"),e.removeClass("rz-active"),this.isDragging||(this.tracking="",this.currentFocusElement=null)},skipRestrictedRanges:function(e,t){if(this.options.restrictedRange&&Array.isArray(this.options.restrictedRange))for(var n in this.options.restrictedRange){var r=this.options.restrictedRange[n];if(0===r.from&&0===t&&[37,40].includes(e)||r.to>=this.options.restrictedRange[this.options.restrictedRange.length-1].to&&t>=this.options.restrictedRange[this.options.restrictedRange.length-1].to&&[38,39].includes(e))return t;r.to>t&&t>r.from&&(t=Math.abs(r.to-t)>Math.abs(r.from-t)?r.to:r.from)}return t},getKeyActions:function(e){var t=e+this.step,n=e-this.step,r=e+this.valueRange/10,i=e-this.valueRange/10;this.options.reversedControls&&(t=e-this.step,n=e+this.step,r=e-this.valueRange/10,i=e+this.valueRange/10);var o={UP:t,DOWN:n,LEFT:n,RIGHT:t,PAGEUP:r,PAGEDOWN:i,HOME:this.options.reversedControls?this.maxValue:this.minValue,END:this.options.reversedControls?this.minValue:this.maxValue};return this.options.rightToLeft&&(o.LEFT=t,o.RIGHT=n,this.options.vertical&&(o.UP=n,o.DOWN=t)),o},onKeyboardEvent:function(e){var n=e.keyCode||e.which,r=this[this.tracking],i=this.getKeyActions(r)[{38:"UP",40:"DOWN",37:"LEFT",39:"RIGHT",33:"PAGEUP",34:"PAGEDOWN",36:"HOME",35:"END"}[n]];if(null!=i&&""!==this.tracking){e.preventDefault(),this.firstKeyDown&&(this.firstKeyDown=!1,this.callOnStart());var o=this;t((function(){var e=o.roundStep(o.sanitizeValue(i));if(e=o.options.skipRestrictedRangesWithArrowKeys?o.skipRestrictedRanges(n,e):e,o.options.draggableRangeOnly){var t,r,a=o.highValue-o.lowValue;"lowValue"===o.tracking?(t=e,(r=e+a)>o.maxValue&&(t=(r=o.maxValue)-a)):(r=e,(t=e-a)<o.minValue&&(r=(t=o.minValue)+a)),o.positionTrackingBar(t,r)}else o.positionTrackingHandle(e)}))}},onDragStart:function(e,t,n){var r=this.getEventPosition(n);this.dragging={active:!0,value:this.positionToValue(r),difference:this.highValue-this.lowValue,lowLimit:this.options.rightToLeft?this.minH.rzsp-r:r-this.minH.rzsp,highLimit:this.options.rightToLeft?r-this.maxH.rzsp:this.maxH.rzsp-r},this.onStart(e,t,n)},getValue:function(e,t,n,r){var i,o=this.options.rightToLeft;return i="min"===e?n?r?o?this.minValue:this.maxValue-this.dragging.difference:o?this.maxValue-this.dragging.difference:this.minValue:o?this.positionToValue(t+this.dragging.lowLimit):this.positionToValue(t-this.dragging.lowLimit):n?r?o?this.minValue+this.dragging.difference:this.maxValue:o?this.maxValue:this.minValue+this.dragging.difference:o?this.positionToValue(t+this.dragging.lowLimit)+this.dragging.difference:this.positionToValue(t-this.dragging.lowLimit)+this.dragging.difference,this.roundStep(i)},onDragMove:function(e,t){this.options.disableAnimation||this.moving&&this.sliderElem.addClass("noanimate"),this.moving=!0;var n,r,i,o,a,s,u,l,c=this.getEventPosition(t);if(this.options.rightToLeft?(i=this.dragging.lowLimit,o=this.dragging.highLimit,u=this.maxH,l=this.minH):(i=this.dragging.highLimit,o=this.dragging.lowLimit,u=this.minH,l=this.maxH),a=o>=c,s=c>=this.maxPos-i,a){if(0===u.rzsp)return;n=this.getValue("min",c,!0,!1),r=this.getValue("max",c,!0,!1)}else if(s){if(l.rzsp===this.maxPos)return;r=this.getValue("max",c,!0,!0),n=this.getValue("min",c,!0,!0)}else n=this.getValue("min",c,!1),r=this.getValue("max",c,!1);this.positionTrackingBar(n,r)},positionTrackingBar:function(e,t){null!=this.options.minLimit&&e<this.options.minLimit&&(t=(e=this.options.minLimit)+this.dragging.difference),null!=this.options.maxLimit&&t>this.options.maxLimit&&(e=(t=this.options.maxLimit)-this.dragging.difference),this.lowValue=e,this.highValue=t,this.applyLowValue(),this.range&&this.applyHighValue(),this.applyModel(!0),this.updateHandles("lowValue",this.valueToPosition(e)),this.updateHandles("highValue",this.valueToPosition(t))},positionTrackingHandle:function(e){var t=!1;e=this.applyMinMaxLimit(e),e=this.applyRestrictedRange(e),this.range&&(this.options.pushRange?(e=this.applyPushRange(e),t=!0):(this.options.noSwitching&&("lowValue"===this.tracking&&e>this.highValue?e=this.applyMinMaxRange(this.highValue):"highValue"===this.tracking&&e<this.lowValue&&(e=this.applyMinMaxRange(this.lowValue))),e=this.applyMinMaxRange(e),"lowValue"===this.tracking&&e>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),t=!0):"highValue"===this.tracking&&e<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),t=!0))),this[this.tracking]!==e&&(this[this.tracking]=e,"lowValue"===this.tracking?this.applyLowValue():this.applyHighValue(),this.applyModel(),this.updateHandles(this.tracking,this.valueToPosition(e)),this.updateAriaAttributes(),t=!0),t&&this.applyModel(!0)},applyMinMaxLimit:function(e){return null!=this.options.minLimit&&e<this.options.minLimit?this.options.minLimit:null!=this.options.maxLimit&&e>this.options.maxLimit?this.options.maxLimit:e},applyMinMaxRange:function(e){var t="lowValue"===this.tracking?this.highValue:this.lowValue,n=Math.abs(e-t);return null!=this.options.minRange&&n<this.options.minRange?"lowValue"===this.tracking?this.highValue-this.options.minRange:this.lowValue+this.options.minRange:null!=this.options.maxRange&&n>this.options.maxRange?"lowValue"===this.tracking?this.highValue-this.options.maxRange:this.lowValue+this.options.maxRange:e},applyRestrictedRange:function(e){for(var t in this.options.restrictedRange)if(null!=this.options.restrictedRange[t]&&e>this.options.restrictedRange[t].from&&e<this.options.restrictedRange[t].to){var n=(this.options.restrictedRange[t].to-this.options.restrictedRange[t].from)/2;if("lowValue"===this.tracking)return e>this.options.restrictedRange[t].from+n?this.options.restrictedRange[t].to:this.options.restrictedRange[t].from;if("highValue"===this.tracking)return e<this.options.restrictedRange[t].to-n?this.options.restrictedRange[t].from:this.options.restrictedRange[t].to}return e},applyPushRange:function(e){var t="lowValue"===this.tracking?this.highValue-e:e-this.lowValue,n=null!==this.options.minRange?this.options.minRange:this.options.step,r=this.options.maxRange;return n>t?("lowValue"===this.tracking?(this.highValue=Math.min(e+n,this.maxValue),e=this.highValue-n,this.applyHighValue(),this.updateHandles("highValue",this.valueToPosition(this.highValue))):(this.lowValue=Math.max(e-n,this.minValue),e=this.lowValue+n,this.applyLowValue(),this.updateHandles("lowValue",this.valueToPosition(this.lowValue))),this.updateAriaAttributes()):null!==r&&t>r&&("lowValue"===this.tracking?(this.highValue=e+r,this.applyHighValue(),this.updateHandles("highValue",this.valueToPosition(this.highValue))):(this.lowValue=e-r,this.applyLowValue(),this.updateHandles("lowValue",this.valueToPosition(this.lowValue))),this.updateAriaAttributes()),e},applyModel:function(e){this.internalChange=!0,this.scope.$apply(),e&&this.callOnChange(),this.internalChange=!1},callOnStart:function(){if(this.options.onStart){var e=this,t="lowValue"===this.tracking?"min":"max";this.scope.$evalAsync((function(){e.options.onStart(e.options.id,e.scope.rzSliderModel,e.scope.rzSliderHigh,t)}))}},callOnChange:function(){if(this.options.onChange){var e=this,t="lowValue"===this.tracking?"min":"max";this.scope.$evalAsync((function(){e.options.onChange(e.options.id,e.scope.rzSliderModel,e.scope.rzSliderHigh,t)}))}},callOnEnd:function(){if(this.options.onEnd){var e=this,t="lowValue"===this.tracking?"min":"max";this.scope.$evalAsync((function(){e.options.onEnd(e.options.id,e.scope.rzSliderModel,e.scope.rzSliderHigh,t)}))}this.scope.$emit("slideEnded")}},s}]).directive("rzslider",["RzSlider",function(e){return{restrict:"AE",replace:!0,scope:{rzSliderModel:"=?",rzSliderHigh:"=?",rzSliderOptions:"&?",rzSliderTplUrl:"@"},templateUrl:function(e,t){return t.rzSliderTplUrl||"rzSliderTpl.html"},link:function(t,n){t.slider=new e(t,n)}}}]);return t.run(["$templateCache",function(e){e.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>')}]),t.name})?r.apply(t,i):r)||(e.exports=o)}()},39:function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,s(r.key),r)}}function a(e,t,n){return t&&o(e.prototype,t),n&&o(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function s(e){var t=function(e,t){if("object"!=r(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=r(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==r(t)?t:t+""}n.r(t),n.d(t,"UpdateUserPayload",(function(){return u})),n.d(t,"UserModel",(function(){return l}));var u=function(){return a((function e(t){i(this,e),this._username=t.username,this._password=t.password,this._appSettings=t.appSettings}),[{key:"username",get:function(){return this._username},set:function(e){this._username=e}},{key:"password",get:function(){return this._password},set:function(e){this._password=e}},{key:"appSettings",get:function(){return this._appSettings},set:function(e){this._appSettings=e}}])}(),l=function(){return a((function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};i(this,e),this._username=t.username,this._password=t.password,this._appSettings=t.appSettings,this._external=t.external,this._authorities=t.authorities,this._grantedAuthorities=t.grantedAuthorities,this._grantedAuthoritiesUiModel=t.grantedAuthoritiesUiModel,this._dateCreated=t.dateCreated,this._gptThreads=t.gptThreads,this._repositories=t.repositories,this._confirmpassword=t.confirmpassword}),[{key:"username",get:function(){return this._username},set:function(e){this._username=e}},{key:"password",get:function(){return this._password},set:function(e){this._password=e}},{key:"appSettings",get:function(){return this._appSettings},set:function(e){this._appSettings=e}},{key:"external",get:function(){return this._external},set:function(e){this._external=e}},{key:"authorities",get:function(){return this._authorities},set:function(e){this._authorities=e}},{key:"grantedAuthorities",get:function(){return this._grantedAuthorities},set:function(e){this._grantedAuthorities=e}},{key:"grantedAuthoritiesUiModel",get:function(){return this._grantedAuthoritiesUiModel},set:function(e){this._grantedAuthoritiesUiModel=e}},{key:"dateCreated",get:function(){return this._dateCreated},set:function(e){this._dateCreated=e}},{key:"gptThreads",get:function(){return this._gptThreads},set:function(e){this._gptThreads=e}},{key:"repositories",get:function(){return this._repositories},set:function(e){this._repositories=e}},{key:"confirmpassword",get:function(){return this._confirmpassword},set:function(e){this._confirmpassword=e}}])}()},4:function(e,t,n){"use strict";n.r(t),n.d(t,"GuideUtils",(function(){return c}));var r,i,o,a,s,u,l,c={waitFor:r=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],r=l(e);return new Promise((function(e,i){var o=1e3*t,a=setInterval((function(){try{var t=document.querySelector(r);null!=t?!n||angular.element(t).is(":visible")?(clearInterval(a),setTimeout((function(){e(angular.element(t))}),0)):(o-=100)<0&&(clearInterval(a),console.debug("Element is not visible: "+r),i(new Error("Element is not visible: "+r))):(o-=100)<0&&(clearInterval(a),console.debug("Element is not found: "+r),i(new Error("Element is not found: "+r)))}catch(e){clearInterval(a),console.debug("Error when processing selector: "+r),console.debug(e),i(e)}}),100)}))},waitUntilHidden:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=l(e);return new Promise((function(e,r){var i=1e3*t,o=setInterval((function(){try{var t=document.querySelector(n);t&&angular.element(t).is(":visible")?(i-=100)<0&&(clearInterval(o),console.debug("Element is still visible: "+n),r(new Error("Element is still visible: "+n))):(clearInterval(o),setTimeout((function(){e()}),0))}catch(e){clearInterval(o),console.debug("Error when processing selector: "+n),console.debug(e),r(e)}}),100)}))},getOrWaitFor:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],i=l(e),o=document.querySelector(i);return null==o||n&&!angular.element(o).is(":visible")?r(e,t,n):Promise.resolve(o)},clickOnElement:function(e){return function(){return r(e).then((function(e){e.click()}))}},clickOnGuideElement:function(e,t){return c.clickOnElement(c.getGuideElementSelector(e,t))},getGuideElementSelector:o=function(e,t){return'[guide-selector="'.concat(e,'"] ').concat(t||"")},getLastGuideElementSelector:function(e,t){return'[guide-selector="'.concat(e,'"]:last-of-type ').concat(t||"")},isVisible:i=function(e){var t=document.querySelector(e);return t&&angular.element(t).is(":visible")},isGuideElementVisible:function(e){return i(o(e))},awaitAlphaDropD3:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:2,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:.1;return function(){return new Promise((function(o){i(e)?o():setTimeout((function(){var e=1e3*n,i=setInterval((function(){(t.d3alpha<r||(e-=100)<0)&&(clearInterval(i),o())}),100)}),150)}))}},graphVizExpandNode:function(e){var t=d3.select(e),n=new CustomEvent("gdb-expand-node",{detail:t.datum()});t.node().dispatchEvent(n)},graphVizShowNodeInfo:function(e){var t=d3.select(e),n=new CustomEvent("gdb-show-node-info",{detail:t.datum()});t.node().dispatchEvent(n)},classHierarchyFocus:function(e){var t=d3.select(e),n=new CustomEvent("gdb-focus",{detail:t.datum()});t.node().dispatchEvent(n)},classHierarchyZoom:function(e){var t=d3.select(e),n=new CustomEvent("gdb-zoom",{detail:t.datum()});t.node().dispatchEvent(n)},validateTextInput:function(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],r=$(e).val();return""===r&&n?($(e).val(t),$(e).trigger("change"),!0):r===t},validateTextInputNotEmpty:function(e){return""!==$(e).val()},translateLocalMessage:a=function(e,t,n,r){var i,o=e.use();return angular.isObject(n)?((i=n[o])||(i=n.en),i=t(i)(r)):i=s(e.instant(n,r)),i},unescapeHtml:s=function(e){var t=document.createElement("div");return t.innerHTML=e,t.innerText},noNextErrorToast:function(e,t,n,r,i){e.error(s(a(t,n,r,i)),s(a(t,n,"guide.validate.no-next",i)),{allowHtml:!0})},deferredShow:function(e){return function(){return new Promise((function(t){setTimeout((function(){t()}),e)}))}},scrollToTop:function(){window.scrollTo(0,0)},removeWhiteSpaces:function(e){return e.replace(/\s+/g,"")},getSparqlResultsSelectorForIri:function(e){return"".concat(c.CSS_SELECTORS.SPARQL_RESULTS_SELECTOR," a[title='").concat(e,"']")},getSparqlResultsSelectorForRow:function(e){return"".concat(c.CSS_SELECTORS.SPARQL_RESULTS_SELECTOR," tbody tr:nth-child(").concat(e,")")},isChecked:u=function(e){return angular.element(e).is(":checked")},isGuideElementChecked:function(e,t){return u(c.getGuideElementSelector("autocompleteCheckbox",t))},defaultInitPreviousStep:function(e,t){return new Promise((function(n,r){var i=e.ShepherdService.getPreviousStepFromHistory(t);i?i.options.initPreviousStep(e,i.options.id).then((function(){return n()})).catch((function(e){return r(e)})):n()}))},getElementSelector:l=function(e){return angular.isFunction(e)?e():e},CSS_SELECTORS:{SPARQL_EDITOR_SELECTOR:".tabPanel.active .yasqe .CodeMirror-code",SPARQL_RESULTS_SELECTOR:".tabPanel.active .yasr_results",SPARQL_RESULTS_ROWS_SELECTOR:".tabPanel.active .yasr_results tbody",SPARQL_RUN_BUTTON_SELECTOR:".tabPanel.active .yasqe .yasqe_queryButton"}}},40:function(e,t,n){"use strict";n.r(t),n.d(t,"CookiePolicyModalController",(function(){return i}));var r=n(8);function i(e,t,n,i,o){var a=0;e.cookieConsent=o.cookieConsent,e.ConsentTypes=r.ConsentTypes,e.toggleConsent=function(t){t===r.ConsentTypes.STATISTIC?e.cookieConsent.setStatisticConsent(!e.cookieConsent.getStatisticConsent()):t===r.ConsentTypes.THIRD_PARTY&&(a++,e.cookieConsent.setThirdPartyConsent(!e.cookieConsent.getThirdPartyConsent())),e.saveConsent()},e.saveConsent=function(){i.updateCookieConsent(e.cookieConsent)},e.close=function(){var t=a>1,n=e.cookieConsent.getThirdPartyConsent(),r=e.cookieConsent.getPolicyAccepted();e.$close(t&&n&&r)}}i.$inject=["$scope","$translate","toastr","TrackingService","data"]},41:function(e,t,n){"use strict";function r(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return i(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?i(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,s=!0,u=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return s=e.done,e},e:function(e){u=!0,a=e},f:function(){try{s||null==n.return||n.return()}finally{if(u)throw a}}}}function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}n.r(t),n.d(t,"convertToBytes",(function(){return u})),n.d(t,"convertToHumanReadable",(function(){return l}));var o={BYTES:1,KB:1024,MB:Math.pow(1024,2),GB:Math.pow(1024,3),TB:Math.pow(1024,4),PB:Math.pow(1024,5)},a=/^(\d+(?:\.\d+)?)\s*(bytes|KB|MB|GB|TB|PB)$/i,s=/^\d+$/,u=function(e){if(null==e)return 0;if("number"==typeof e)return e;if(e=e.trim(),s.test(e))return parseInt(e,10);var t=e.match(a);if(!t)return 0;var n=parseFloat(t[1]),r=t[2];return n*o[r.toUpperCase()]},l=function(e){if(!angular.isDefined(e))return"0 bytes";if(a.test(e))return e;if("string"==typeof e&&(e=parseFloat(e)),isNaN(e)||e<=0)return"0 bytes";var t,n=r(Object.keys(o).reverse());try{for(n.s();!(t=n.n()).done;){var i=t.value,s=o[i];if(e>=s){var u=e/s,l=Number.isInteger(u)?u:u.toFixed(2);return"".concat(l," ").concat(i.toLowerCase())}}}catch(e){n.e(e)}finally{n.f()}return"0 bytes"}},42:function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,o(r.key),r)}}function o(e){var t=function(e,t){if("object"!=r(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=r(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==r(t)?t:t+""}n.r(t),n.d(t,"HtmlUtil",(function(){return a}));var a=function(){return e=function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)},n=[{key:"getText",value:function(e){if(!e)return e;var t=document.createElement("div");return t.innerHTML=e,t.innerText}}],(t=null)&&i(e.prototype,t),n&&i(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,n}()},43:function(e,t,n){"use strict";n.d(t,"a",(function(){return U})),n.d(t,"b",(function(){return $e})),n.d(t,"c",(function(){return ee})),n.d(t,"d",(function(){return k})),n.d(t,"e",(function(){return M})),n.d(t,"f",(function(){return h}));const r="hydrated",i=!1,o=!1,a=!1,s=!0;var u=Object.defineProperty,l=new WeakMap,c=e=>l.get(e),h=(e,t)=>l.set(t.$lazyInstance$=e,t),p=(e,t)=>(0,console.error)(e,t),f=new Map,d=new Map,g="slot-fb{display:contents}slot-fb[hidden]{display:none}",m="undefined"!=typeof window?window:{},v=m.document||{head:{}},y={$flags$:0,$resourcesUrl$:"",jmp:e=>e(),raf:e=>requestAnimationFrame(e),ael:(e,t,n,r)=>e.addEventListener(t,n,r),rel:(e,t,n,r)=>e.removeEventListener(t,n,r),ce:(e,t)=>new CustomEvent(e,t)},b=o,$=(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync}catch(e){}return!1})(),w=!1,x=[],S=[],E=(e,t)=>n=>{e.push(n),w||(w=!0,t&&4&y.$flags$?T(C):y.raf(C))},A=e=>{for(let t=0;t<e.length;t++)try{e[t](performance.now())}catch(e){p(e)}e.length=0},C=()=>{A(x),A(S),(w=x.length>0)&&y.raf(C)},T=e=>{return Promise.resolve(t).then(e);var t},F=E(S,!0),k=e=>{const t=new URL(e,y.$resourcesUrl$);return t.origin!==m.location.origin?t.href:t.pathname},R={},P=e=>"object"===(e=typeof e)||"function"===e;function D(e){var t,n,r;return null!=(r=null==(n=null==(t=e.head)?void 0:t.querySelector('meta[name="csp-nonce"]'))?void 0:n.getAttribute("content"))?r:void 0}((e,t)=>{for(var n in t)u(e,n,{get:t[n],enumerable:!0})})({},{err:()=>I,map:()=>_,ok:()=>O,unwrap:()=>L,unwrapErr:()=>N});var O=e=>({isOk:!0,isErr:!1,value:e}),I=e=>({isOk:!1,isErr:!0,value:e});function _(e,t){if(e.isOk){const n=t(e.value);return n instanceof Promise?n.then(e=>O(e)):O(n)}if(e.isErr){const t=e.value;return I(t)}throw"should never get here"}var j,L=e=>{if(e.isOk)return e.value;throw e.value},N=e=>{if(e.isErr)return e.value;throw e.value},M=(e,t,...n)=>{let r=null,i=null,o=!1,a=!1;const s=[],u=t=>{for(let n=0;n<t.length;n++)r=t[n],Array.isArray(r)?u(r):null!=r&&"boolean"!=typeof r&&((o="function"!=typeof e&&!P(r))&&(r=String(r)),o&&a?s[s.length-1].$text$+=r:s.push(o?B(null,r):r),a=o)};u(n),t&&t.key&&(i=t.key);const l=B(e,null);return l.$attrs$=t,s.length>0&&(l.$children$=s),l.$key$=i,l},B=(e,t)=>{const n={$flags$:0,$tag$:e,$text$:t,$elm$:null,$children$:null,$attrs$:null,$key$:null};return n},U={},H=(e,t,n,r,i,o)=>{if(n!==r){let a=((e,t)=>t in e)(e,t);if(t.toLowerCase(),"key"===t);else{const s=P(r);if((a||s&&null!==r)&&!i)try{if(e.tagName.includes("-"))e[t]=r;else{const i=null==r?"":r;"list"===t?a=!1:null!=n&&e[t]==i||("function"==typeof e.__lookupSetter__(t)?e[t]=i:e.setAttribute(t,i))}}catch(e){}null==r||!1===r?!1===r&&""!==e.getAttribute(t)||e.removeAttribute(t):(!a||4&o||i)&&!s&&(r=!0===r?"":r,e.setAttribute(t,r))}}},V=(e,t,n)=>{const r=11===t.$elm$.nodeType&&t.$elm$.host?t.$elm$.host:t.$elm$,i=e&&e.$attrs$||R,o=t.$attrs$||R;for(const e of q(Object.keys(i)))e in o||H(r,e,i[e],void 0,n,t.$flags$);for(const e of q(Object.keys(o)))H(r,e,i[e],o[e],n,t.$flags$)};function q(e){return e.includes("ref")?[...e.filter(e=>"ref"!==e),"ref"]:e}var z=!1,K=(e,t,n,r)=>{const o=t.$children$[n];let s,u,l=0;if(null!==o.$text$)s=o.$elm$=v.createTextNode(o.$text$);else{s=o.$elm$=v.createElement(!z&&a&&2&o.$flags$?"slot-fb":o.$tag$),V(null,o,!1);if(!!s.getRootNode().querySelector("body")&&i&&null!=void 0&&void 0!==s["s-si"]&&s.classList.add(s["s-si"]=void 0),o.$children$)for(l=0;l<o.$children$.length;++l)u=K(e,o,l),u&&s.appendChild(u)}return s["s-hn"]=j,s},G=(e,t,n,r,i,o)=>{let a,s=e;for(;i<=o;++i)r[i]&&(a=K(null,n,i),a&&(r[i].$elm$=a,Q(s,a,t)))},W=(e,t,n)=>{for(let r=t;r<=n;++r){const t=e[r];if(t){const e=t.$elm$;e&&e.remove()}}},Y=(e,t,n=!1)=>e.$tag$===t.$tag$&&(!!n||e.$key$===t.$key$),X=(e,t,n=!1)=>{const r=t.$elm$=e.$elm$,i=e.$children$,o=t.$children$,a=t.$text$;null===a?(V(e,t,!1),null!==i&&null!==o?((e,t,n,r,i=!1)=>{let o,a,s=0,u=0,l=0,c=0,h=t.length-1,p=t[0],f=t[h],d=r.length-1,g=r[0],m=r[d];for(;s<=h&&u<=d;)if(null==p)p=t[++s];else if(null==f)f=t[--h];else if(null==g)g=r[++u];else if(null==m)m=r[--d];else if(Y(p,g,i))X(p,g,i),p=t[++s],g=r[++u];else if(Y(f,m,i))X(f,m,i),f=t[--h],m=r[--d];else if(Y(p,m,i))X(p,m,i),Q(e,p.$elm$,f.$elm$.nextSibling),p=t[++s],m=r[--d];else if(Y(f,g,i))X(f,g,i),Q(e,f.$elm$,p.$elm$),f=t[--h],g=r[++u];else{for(l=-1,c=s;c<=h;++c)if(t[c]&&null!==t[c].$key$&&t[c].$key$===g.$key$){l=c;break}l>=0?(a=t[l],a.$tag$!==g.$tag$?o=K(t&&t[u],n,l):(X(a,g,i),t[l]=void 0,o=a.$elm$),g=r[++u]):(o=K(t&&t[u],n,u),g=r[++u]),o&&Q(p.$elm$.parentNode,o,p.$elm$)}s>h?G(e,null==r[d+1]?null:r[d+1].$elm$,n,r,u,d):u>d&&W(t,s,h)})(r,i,t,o,n):null!==o?(null!==e.$text$&&(r.textContent=""),G(r,null,t,o,0,o.length-1)):!n&&s&&null!==i&&W(i,0,i.length-1)):e.$text$!==a&&(r.data=a)},Q=(e,t,n)=>null==e?void 0:e.insertBefore(t,n),J=(e,t,n=!1)=>{const r=e.$hostElement$,i=e.$vnode$||B(null,null),o=(a=t)&&a.$tag$===U?t:M(null,null,t);var a;if(j=r.tagName,n&&o.$attrs$)for(const e of Object.keys(o.$attrs$))r.hasAttribute(e)&&!["key","ref","style","class"].includes(e)&&(o.$attrs$[e]=r[e]);o.$tag$=null,o.$flags$|=4,e.$vnode$=o,o.$elm$=i.$elm$=r,z=b,X(i,o,n)},Z=(e,t)=>(null==e||P(e),e),ee=(e,t,n)=>{const r=(e=>c(e).$hostElement$)(e);return{emit:e=>te(r,t,{bubbles:!!(4&n),composed:!!(2&n),cancelable:!!(1&n),detail:e})}},te=(e,t,n)=>{const r=y.ce(t,n);return e.dispatchEvent(r),r},ne=new WeakMap,re=e=>{const t=e.$cmpMeta$,n=e.$hostElement$,r=(t.$tagName$,()=>{});((e,t,n)=>{var r;const i=ie(t),o=d.get(i);if(e=11===e.nodeType?e:v,o)if("string"==typeof o){e=e.head||e;let n,a=ne.get(e);if(a||ne.set(e,a=new Set),!a.has(i)){{n=v.createElement("style"),n.innerHTML=o;const i=null!=(r=y.$nonce$)?r:D(v);if(null!=i&&n.setAttribute("nonce",i),!(1&t.$flags$))if("HEAD"===e.nodeName){const t=e.querySelectorAll("link[rel=preconnect]"),r=t.length>0?t[t.length-1].nextSibling:e.querySelector("style");e.insertBefore(n,r)}else if("host"in e)if($){const t=new CSSStyleSheet;t.replaceSync(o),e.adoptedStyleSheets=[t,...e.adoptedStyleSheets]}else{const t=e.querySelector("style");t?t.innerHTML=o+t.innerHTML:e.prepend(n)}else e.append(n);1&t.$flags$&&"HEAD"!==e.nodeName&&e.insertBefore(n,null)}4&t.$flags$&&(n.innerHTML+=g),a&&a.add(i)}}else e.adoptedStyleSheets.includes(o)||(e.adoptedStyleSheets=[...e.adoptedStyleSheets,o])})(n.getRootNode(),t),r()},ie=(e,t)=>"sc-"+e.$tagName$,oe=(e,t)=>{t&&!e.$onRenderResolve$&&t["s-p"]&&t["s-p"].push(new Promise(t=>e.$onRenderResolve$=t))},ae=(e,t)=>{if(e.$flags$|=16,4&e.$flags$)return void(e.$flags$|=512);oe(e,e.$ancestorComponent$);return F(()=>se(e,t))},se=(e,t)=>{const n=e.$hostElement$,r=(e.$cmpMeta$.$tagName$,()=>{}),i=e.$lazyInstance$;if(!i)throw new Error(`Can't render component <${n.tagName.toLowerCase()} /> with invalid Stencil runtime! Make sure this imported component is compiled with a \`externalRuntime: true\` flag. For more information, please refer to https://stenciljs.com/docs/custom-elements#externalruntime`);let o;return t&&(o=de(i,"componentWillLoad")),r(),ue(o,()=>ce(e,i,t))},ue=(e,t)=>le(e)?e.then(t).catch(e=>{console.error(e),t()}):t(),le=e=>e instanceof Promise||e&&e.then&&"function"==typeof e.then,ce=async(e,t,n)=>{var r;const i=e.$hostElement$,o=(e.$cmpMeta$.$tagName$,()=>{}),a=i["s-rc"];n&&re(e);const s=(e.$cmpMeta$.$tagName$,()=>{});he(e,t,i,n),a&&(a.map(e=>e()),i["s-rc"]=void 0),s(),o();{const t=null!=(r=i["s-p"])?r:[],n=()=>pe(e);0===t.length?n():(Promise.all(t).then(n),e.$flags$|=4,t.length=0)}},he=(e,t,n,r)=>{try{t=t.render(),e.$flags$&=-17,e.$flags$|=2,J(e,t,r)}catch(t){p(t,e.$hostElement$)}return null},pe=e=>{e.$cmpMeta$.$tagName$;const t=e.$hostElement$,n=()=>{},r=e.$lazyInstance$,i=e.$ancestorComponent$;64&e.$flags$?n():(e.$flags$|=64,ge(t),de(r,"componentDidLoad"),n(),e.$onReadyResolve$(t),i||fe()),e.$onInstanceResolve$(t),e.$onRenderResolve$&&(e.$onRenderResolve$(),e.$onRenderResolve$=void 0),512&e.$flags$&&T(()=>ae(e,!1)),e.$flags$&=-517},fe=e=>{ge(v.documentElement),T(()=>te(m,"appload",{detail:{namespace:"ontotext-graphql-playground-component"}}))},de=(e,t,n)=>{if(e&&e[t])try{return e[t](n)}catch(e){p(e)}},ge=e=>{var t;return e.classList.add(null!=(t=r)?t:"hydrated")},me=(e,t,n,r)=>{const i=c(e);if(!i)throw new Error(`Couldn't find host element for "${r.$tagName$}" as it is unknown to this Stencil runtime. This usually happens when integrating a 3rd party Stencil component with another Stencil component or application. Please reach out to the maintainers of the 3rd party Stencil component or report this on the Stencil Discord server (https://chat.stenciljs.com) or comment on this similar [GitHub issue](https://github.com/ionic-team/stencil/issues/5457).`);const o=i.$hostElement$,a=i.$instanceValues$.get(t),s=i.$flags$,u=i.$lazyInstance$;n=Z(n);const l=Number.isNaN(a)&&Number.isNaN(n);if((!(8&s)||void 0===a)&&(n!==a&&!l)&&(i.$instanceValues$.set(t,n),u)){if(r.$watchers$&&128&s){const e=r.$watchers$[t];e&&e.map(e=>{try{u[e](n,a,t)}catch(e){p(e,o)}})}2==(18&s)&&ae(i,!1)}},ve=(e,t,n)=>{var r,i;const o=e.prototype;if(t.$members$||t.$watchers$||e.watchers){e.watchers&&!t.$watchers$&&(t.$watchers$=e.watchers);const a=Object.entries(null!=(r=t.$members$)?r:{});if(a.map(([e,[r]])=>{if(31&r||2&n&&32&r){if(0==(2048&r))Object.defineProperty(o,e,{get(){return t=e,c(this).$instanceValues$.get(t);var t},set(n){me(this,e,n,t)},configurable:!0,enumerable:!0});else if(1&n&&2048&r&&(Object.defineProperty(o,e,{get(){const t=c(this),n=t?t.$lazyInstance$:o;if(n)return n[e]},configurable:!0,enumerable:!0}),4096&r)){const n=Object.getOwnPropertyDescriptor(o,e).set;Object.defineProperty(o,e,{set(r){const i=c(this);if(n){const o=i.$hostElement$[e];return!i.$instanceValues$.get(e)&&o&&i.$instanceValues$.set(e,o),n.apply(this,[Z(r)]),void me(this,e,i.$hostElement$[e],t)}if(!i)return;const o=()=>{const n=i.$lazyInstance$[e];!i.$instanceValues$.get(e)&&n&&i.$instanceValues$.set(e,n),i.$lazyInstance$[e]=Z(r),me(this,e,i.$lazyInstance$[e],t)};i.$lazyInstance$?o():i.$onReadyPromise$.then(()=>o())}})}}else 1&n&&64&r&&Object.defineProperty(o,e,{value(...t){var n;const r=c(this);return null==(n=null==r?void 0:r.$onInstancePromise$)?void 0:n.then(()=>{var n;return null==(n=r.$lazyInstance$)?void 0:n[e](...t)})}})}),1&n){const n=new Map;o.attributeChangedCallback=function(e,r,i){y.jmp(()=>{var a;const s=n.get(e);if(this.hasOwnProperty(s))i=this[s],delete this[s];else{if(o.hasOwnProperty(s)&&"number"==typeof this[s]&&this[s]==i)return;if(null==s){const n=c(this),o=null==n?void 0:n.$flags$;if(o&&!(8&o)&&128&o&&i!==r){const o=n.$lazyInstance$,s=null==(a=t.$watchers$)?void 0:a[e];null==s||s.forEach(t=>{null!=o[t]&&o[t].call(o,i,r,e)})}return}}const u=Object.getOwnPropertyDescriptor(o,s);u.get&&!u.set||(this[s]=(null!==i||"boolean"!=typeof this[s])&&i)})},e.observedAttributes=Array.from(new Set([...Object.keys(null!=(i=t.$watchers$)?i:{}),...a.filter(([e,t])=>15&t[0]).map(([e,t])=>{const r=t[1]||e;return n.set(r,e),r})]))}}return e},ye=async(e,t,r,i)=>{let o;if(0==(32&t.$flags$)){t.$flags$|=32;if(r.$lazyBundleId$){const e=((e,t,r)=>{const i=e.$tagName$.replace(/-/g,"_"),o=e.$lazyBundleId$;if(!o)return;const a=f.get(o);return a?a[i]:n(528)(`./${o}.entry.js`).then(e=>(f.set(o,e),e[i]),p)
23
+ /*!__STENCIL_STATIC_IMPORT_SWITCH__*/})(r);if(e&&"then"in e){const t=()=>{};o=await e,t()}else o=e;if(!o)throw new Error(`Constructor for "${r.$tagName$}#${t.$modeName$}" was not found`);o.isProxied||(r.$watchers$=o.watchers,ve(o,r,2),o.isProxied=!0);const i=(r.$tagName$,()=>{});t.$flags$|=8;try{new o(t)}catch(e){p(e)}t.$flags$&=-9,t.$flags$|=128,i()}else{o=e.constructor;const n=e.localName;customElements.whenDefined(n).then(()=>t.$flags$|=128)}if(o&&o.style){let e;"string"==typeof o.style&&(e=o.style);const t=ie(r);if(!d.has(t)){const n=(r.$tagName$,()=>{});((e,t,n)=>{let r=d.get(e);$&&n?(r=r||new CSSStyleSheet,"string"==typeof r?r=t:r.replaceSync(t)):r=t,d.set(e,r)})(t,e,!!(1&r.$flags$)),n()}}}const a=t.$ancestorComponent$,s=()=>ae(t,!0);a&&a["s-rc"]?a["s-rc"].push(s):s()},be=e=>{de(e,"disconnectedCallback")},$e=(e,t={})=>{var n;const r=()=>{},i=[],o=t.exclude||[],a=m.customElements,s=v.head,u=s.querySelector("meta[charset]"),h=v.createElement("style"),p=[];let f,d=!0;Object.assign(y,t),y.$resourcesUrl$=new URL(t.resourcesUrl||"./",v.baseURI).href;let b=!1;if(e.map(e=>{e[1].map(t=>{var n;const r={$flags$:t[0],$tagName$:t[1],$members$:t[2],$listeners$:t[3]};4&r.$flags$&&(b=!0),r.$members$=t[2],r.$watchers$=null!=(n=t[4])?n:{};const s=r.$tagName$,u=class extends HTMLElement{constructor(e){super(e),this.hasRegisteredEventListeners=!1,((e,t)=>{const n={$flags$:0,$hostElement$:e,$cmpMeta$:t,$instanceValues$:new Map};n.$onInstancePromise$=new Promise(e=>n.$onInstanceResolve$=e),n.$onReadyPromise$=new Promise(e=>n.$onReadyResolve$=e),e["s-p"]=[],e["s-rc"]=[],l.set(e,n)})(e=this,r)}connectedCallback(){c(this),this.hasRegisteredEventListeners||(this.hasRegisteredEventListeners=!0),f&&(clearTimeout(f),f=null),d?p.push(this):y.jmp(()=>(e=>{if(0==(1&y.$flags$)){const t=c(e),n=t.$cmpMeta$,r=(n.$tagName$,()=>{});if(1&t.$flags$)(null==t?void 0:t.$lazyInstance$)||(null==t?void 0:t.$onReadyPromise$)&&t.$onReadyPromise$.then(()=>{});else{t.$flags$|=1;{let n=e;for(;n=n.parentNode||n.host;)if(n["s-p"]){oe(t,t.$ancestorComponent$=n);break}}n.$members$&&Object.entries(n.$members$).map(([t,[n]])=>{if(31&n&&e.hasOwnProperty(t)){const n=e[t];delete e[t],e[t]=n}}),ye(e,t,n)}r()}})(this))}disconnectedCallback(){y.jmp(()=>(async e=>{if(0==(1&y.$flags$)){const t=c(e);(null==t?void 0:t.$lazyInstance$)?be(t.$lazyInstance$):(null==t?void 0:t.$onReadyPromise$)&&t.$onReadyPromise$.then(()=>be(t.$lazyInstance$))}})(this))}componentOnReady(){return c(this).$onReadyPromise$}};r.$lazyBundleId$=e[0],o.includes(s)||a.get(s)||(i.push(s),a.define(s,ve(u,r,1)))})}),i.length>0&&(b&&(h.textContent+=g),h.textContent+=i.sort()+"{visibility:hidden}.hydrated{visibility:inherit}",h.innerHTML.length)){h.setAttribute("data-styles","");const e=null!=(n=y.$nonce$)?n:D(v);null!=e&&h.setAttribute("nonce",e),s.insertBefore(h,u?u.nextSibling:s.firstChild)}d=!1,p.length?p.map(e=>e.connectedCallback()):y.jmp(()=>f=setTimeout(fe,30)),r()}},44:function(e,t,n){"use strict";n.r(t),n.d(t,"mapBackupAndRestoreResponseToModel",(function(){return o})),n.d(t,"mapSnapshotOptionsResponseToModel",(function(){return a}));var r=n(45),i=n(46),o=function(e){var t=[],n=new r.BackupAndRestoreInfo;return 0===Object.keys(e).length||(n.id=e.id,n.username=e.username,n.operation=e.operation,n.affectedRepositories=e.affectedRepositories,n.secondsSinceCreated=e.msSinceCreated/1e3,n.snapshotOptions=a(e.snapshotOptions),n.nodePerformingClusterBackup=e.nodePerformingClusterBackup,t.push(n)),t},a=function(e){var t=new i.SnapshotOptionInfo;return t.withRepositoryData=e.withRepositoryData,t.withSystemData=e.withSystemData,t.withClusterData=e.withClusterData,t.cleanDataDir=e.cleanDataDir,t.removeCluster=e.removeCluster,t.repositories=e.repositories,t.replicationTimeoutMs=e.replicationTimeoutMs,t}},45:function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,a(r.key),r)}}function o(e,t,n){return t&&i(e.prototype,t),n&&i(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function a(e){var t=function(e,t){if("object"!=r(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=r(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==r(t)?t:t+""}n.r(t),n.d(t,"BackupAndRestoreInfo",(function(){return s}));var s=o((function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.id=void 0,this.username="",this.operation="",this.affectedRepositories=[],this.secondsSinceCreated=0,this.snapshotOptions=[],this.nodePerformingClusterBackup=""}))},46:function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,a(r.key),r)}}function o(e,t,n){return t&&i(e.prototype,t),n&&i(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function a(e){var t=function(e,t){if("object"!=r(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=r(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==r(t)?t:t+""}n.r(t),n.d(t,"SnapshotOptionInfo",(function(){return s}));var s=o((function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.withRepositoryData=!1,this.withSystemData=!1,this.withClusterData=!1,this.cleanDataDir=!1,this.removeCluster=!1,this.repositories=[],this.replicationTimeoutMs=0}))},47:function(e,t,n){"use strict";n.r(t),n.d(t,"mapActiveOperationResponseToModel",(function(){return u})),n.d(t,"mapActiveOperationToActiveOperationInfoModel",(function(){return c})),n.d(t,"mapImportActiveOperationToActiveOperationInfoModel",(function(){return h})),n.d(t,"mapQueriesActiveOperationToActiveOperationInfoModel",(function(){return p})),n.d(t,"mapBackupAndRestoreActiveOperationToActiveOperationInfoModel",(function(){return f})),n.d(t,"mapClusterActiveOperationToActiveOperationInfoModel",(function(){return d}));var r=n(5),i=n(13),o=n(3),a=n(48),s=n(14),u=function(e){var t=new a.ActiveOperationsModel;return t.status=e.status,t.operations=l(e.allRunningOperations),t},l=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=[];return e.forEach((function(e){return t.push(c(e))})),t},c=function(e){switch(e.type){case r.OPERATION_TYPE.IMPORTS:return h(e);case r.OPERATION_TYPE.QUERIES:case r.OPERATION_TYPE.UPDATES:return p(e);case r.OPERATION_TYPE.BACKUP_RESTORE:return f(e);case r.OPERATION_TYPE.CLUSTER_STATUS:return d(e)}},h=function(e){var t=new i.ActiveOperationModel;return t.operationGroup=o.OPERATION_GROUP_TYPE.IMPORT_OPERATION,t.runningOperationCount=parseInt(e.value,10),t.status=e.status,t.type=e.type,t.titleLabelKey=e.type,t.monitoringViewUrl=s.OPERATION_MONITORING_CONSTANTS.IMPORT_MONITORING_URL,t},p=function(e){var t=new i.ActiveOperationModel;return t.operationGroup=o.OPERATION_GROUP_TYPE.QUERIES_OPERATION,t.runningOperationCount=parseInt(e.value,10),t.status=e.status,t.type=e.type,t.titleLabelKey=e.type,t.monitoringViewUrl=s.OPERATION_MONITORING_CONSTANTS.QUERIES_MONITORING_URL,t},f=function(e){var t=new i.ActiveOperationModel;return t.operationGroup=o.OPERATION_GROUP_TYPE.BACKUP_AND_RESTORE_OPERATION,t.status=e.status,t.type=e.type,t.titleLabelKey=e.value,t.monitoringViewUrl=s.OPERATION_MONITORING_CONSTANTS.BACKUP_AND_RESTORE_MONITORING_URL,t},d=function(e){var t=new i.ActiveOperationModel;return t.operationGroup=o.OPERATION_GROUP_TYPE.CLUSTER_OPERATION,t.status=e.status,t.type=e.type,t.titleLabelKey=e.value,t.monitoringViewUrl=s.OPERATION_MONITORING_CONSTANTS.CLUSTER_MONITORING_URL,t}},48:function(e,t,n){"use strict";n.r(t),n.d(t,"ActiveOperationsModel",(function(){return u}));var r=n(7),i=n(3);function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function a(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,s(r.key),r)}}function s(e){var t=function(e,t){if("object"!=o(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=o(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==o(t)?t:t+""}var u=function(){return e=function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.operations=[],this.status=r.OPERATION_STATUS.INFORMATION},(t=[{key:"hasClusterOperation",value:function(){return!!this.operations&&this.operations.some((function(e){return i.OPERATION_GROUP_TYPE.CLUSTER_OPERATION===e.operationGroup}))}}])&&a(e.prototype,t),n&&a(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,n}()},49:function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,o(r.key),r)}}function o(e){var t=function(e,t){if("object"!=r(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=r(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==r(t)?t:t+""}n.r(t),n.d(t,"NamespaceModel",(function(){return a}));var a=function(){return e=function e(t,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._prefix=t,this._uri=n},(t=[{key:"prefix",get:function(){return this._prefix},set:function(e){this._prefix=e}},{key:"uri",get:function(){return this._uri},set:function(e){this._uri=e}}])&&i(e.prototype,t),n&&i(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,n}()},5:function(e,t,n){"use strict";n.r(t),n.d(t,"OPERATION_TYPE",(function(){return r})),n.d(t,"OPERATION_TYPE_SORT_ORDER",(function(){return i}));var r={CLUSTER_STATUS:"clusterHealth",BACKUP_RESTORE:"backupAndRestore",QUERIES:"queries",UPDATES:"updates",IMPORTS:"imports"},i={clusterHealth:0,backupAndRestore:1,queries:3,updates:4,imports:2}},50:function(e,t,n){"use strict";n.r(t),n.d(t,"graphListOptionsMapper",(function(){return i}));var r=n(16),i=function(e){if(!e.results)return new r.GraphListOptions;var t=e.head.vars[0];return new r.GraphListOptions(e.results.bindings.map((function(e){return new r.GraphOption({uri:e[t].value,label:e[t].value,id:e[t].value})})))}},51:function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,o(r.key),r)}}function o(e){var t=function(e,t){if("object"!=r(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=r(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==r(t)?t:t+""}n.r(t),n.d(t,"SequenceGeneratorUtil",(function(){return a}));var a=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}return t=e,r=[{key:"getFibonacciSequenceGenerator",value:function(){return e.fibonacciSequenceGenerator()}},{key:"fibonacciSequenceGenerator",value:function(){var e=0,t=1;return{next:function(){var n=t;return t=e+t,e=n,n},reset:function(){e=0,t=1}}}}],(n=null)&&i(t.prototype,n),r&&i(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}()},511:function(e,t){!function(e,t,n){"use strict";t.module("ngAnimate",["ng"]).directive("ngAnimateChildren",(function(){return function(e,n,r){r=r.ngAnimateChildren,t.isString(r)&&0===r.length?n.data("$$ngAnimateChildren",!0):e.$watch(r,(function(e){n.data("$$ngAnimateChildren",!!e)}))}})).factory("$$animateReflow",["$$rAF","$document",function(e,t){return function(t){return e((function(){t()}))}}]).config(["$provide","$animateProvider",function(r,i){function o(e){for(var t=0;t<e.length;t++){var n=e[t];if(1==n.nodeType)return n}}function a(e,t){return o(e)==o(t)}var s,u=t.noop,l=t.forEach,c=i.$$selectors,h=t.isArray,p=t.isString,f=t.isObject,d={running:!0};r.decorator("$animate",["$delegate","$$q","$injector","$sniffer","$rootElement","$$asyncCallback","$rootScope","$document","$templateRequest","$$jqLite",function(e,n,r,g,m,v,y,b,$,w){function x(e,t){var n=e.data("$$ngAnimateState")||{};return t&&(n.running=!0,n.structural=!0,e.data("$$ngAnimateState",n)),n.disabled||n.running&&n.structural}function S(e){var t,r=n.defer();return r.promise.$$cancelFn=function(){t&&t()},y.$$postDigest((function(){t=e((function(){r.resolve()}))})),r.promise}function E(e){if(f(e))return e.tempClasses&&p(e.tempClasses)&&(e.tempClasses=e.tempClasses.split(/\s+/)),e}function A(e,n,i,o){function a(e,t){var n=e[t],r=e["before"+t.charAt(0).toUpperCase()+t.substr(1)];if(n||r)return"leave"==t&&(r=n,n=null),E.push({event:t,fn:n}),w.push({event:t,fn:r}),!0}function s(t,n,r){var a=[];l(t,(function(e){e.fn&&a.push(e)}));var s=0;l(a,(function(t,l){var c=function(){e:{if(n){if((n[l]||u)(),++s<a.length)break e;n=null}r()}};switch(t.event){case"setClass":n.push(t.fn(e,f,d,c,o));break;case"animate":n.push(t.fn(e,i,o.from,o.to,c));break;case"addClass":n.push(t.fn(e,f||i,c,o));break;case"removeClass":n.push(t.fn(e,d||i,c,o));break;default:n.push(t.fn(e,c,o))}})),n&&0===n.length&&r()}var p=e[0];if(p){var f,d;o&&(o.to=o.to||{},o.from=o.from||{}),h(i)&&(f=i[0],d=i[1],f?d?i=f+" "+d:(i=f,n="addClass"):(i=d,n="removeClass"));var m="setClass"==n,v=m||"addClass"==n||"removeClass"==n||"animate"==n,y=e.attr("class")+" "+i;if(D(y)){var b=u,$=[],w=[],x=u,S=[],E=[];y=(" "+y).replace(/\s+/g,".");return l(function(e){if(e){var t=[],n={};e=e.substr(1).split("."),(g.transitions||g.animations)&&t.push(r.get(c[""]));for(var i=0;i<e.length;i++){var o=e[i],a=c[o];a&&!n[o]&&(t.push(r.get(a)),n[o]=!0)}return t}}(y),(function(e){!a(e,n)&&m&&(a(e,"addClass"),a(e,"removeClass"))})),{node:p,event:n,className:i,isClassBased:v,isSetClassOperation:m,applyStyles:function(){o&&e.css(t.extend(o.from||{},o.to||{}))},before:function(e){b=e,s(w,$,(function(){b=u,e()}))},after:function(e){x=e,s(E,S,(function(){x=u,e()}))},cancel:function(){$&&(l($,(function(e){(e||u)(!0)})),b(!0)),S&&(l(S,(function(e){(e||u)(!0)})),x(!0))}}}}}function C(e,n,r,i,o,c,h,p){function f(t){var i="$animate:"+t;x&&x[i]&&0<x[i].length&&v((function(){r.triggerHandler(i,{event:e,className:n})}))}function g(){f("before")}function y(){f("after")}function b(){b.hasBeenRun||(b.hasBeenRun=!0,c())}function $(){if(!$.hasBeenRun){w&&w.applyStyles(),$.hasBeenRun=!0,h&&h.tempClasses&&l(h.tempClasses,(function(e){s.removeClass(r,e)}));var e=r.data("$$ngAnimateState");e&&(w&&w.isClassBased?F(r,n):(v((function(){var e=r.data("$$ngAnimateState")||{};k==e.index&&F(r,n)})),r.data("$$ngAnimateState",e))),f("close"),p()}}var w=A(r,e,n,h);if(!w)return b(),g(),y(),$(),u;e=w.event,n=w.className;var x=(x=t.element._data(w.node))&&x.events;if(i||(i=o?o.parent():r.parent()),function(e,n){if(d.disabled)return!0;if(a(e,m))return d.running;var r,i,o;do{if(0===n.length)break;var s=a(n,m),u=s?d:n.data("$$ngAnimateState")||{};if(u.disabled)return!0;s&&(o=!0),!1!==r&&(s=n.data("$$ngAnimateChildren"),t.isDefined(s)&&(r=s)),i=i||u.running||u.last&&!u.last.isClassBased}while(n=n.parent());return!o||!r&&i}(r,i))return b(),g(),y(),$(),u;var S=(i=r.data("$$ngAnimateState")||{}).active||{},E=i.totalActive||0,C=i.last;if(o=!1,0<E){if(E=[],w.isClassBased)"setClass"==C.event?(E.push(C),F(r,n)):S[n]&&((T=S[n]).event==e?o=!0:(E.push(T),F(r,n)));else if("leave"==e&&S["ng-leave"])o=!0;else{for(var T in S)E.push(S[T]);i={},F(r,!0)}0<E.length&&l(E,(function(e){e.cancel()}))}if(!w.isClassBased||w.isSetClassOperation||"animate"==e||o||(o="addClass"==e==r.hasClass(n)),o)return b(),g(),y(),f("close"),p(),u;S=i.active||{},E=i.totalActive||0,"leave"==e&&r.one("$destroy",(function(e){var n=(e=t.element(this)).data("$$ngAnimateState");n&&(n=n.active["ng-leave"])&&(n.cancel(),F(e,"ng-leave"))})),s.addClass(r,"ng-animate"),h&&h.tempClasses&&l(h.tempClasses,(function(e){s.addClass(r,e)}));var k=R++;return E++,S[n]=w,r.data("$$ngAnimateState",{last:w,active:S,index:k,totalActive:E}),g(),w.before((function(t){var i=r.data("$$ngAnimateState");t=t||!i||!i.active[n]||w.isClassBased&&i.active[n].event!=e,b(),!0===t?$():(y(),w.after($))})),w.cancel}function T(e){(e=o(e))&&(e=t.isFunction(e.getElementsByClassName)?e.getElementsByClassName("ng-animate"):e.querySelectorAll(".ng-animate"),l(e,(function(e){(e=(e=t.element(e)).data("$$ngAnimateState"))&&e.active&&l(e.active,(function(e){e.cancel()}))})))}function F(e,t){if(a(e,m))d.disabled||(d.running=!1,d.structural=!1);else if(t){var n=e.data("$$ngAnimateState")||{},r=!0===t;!r&&n.active&&n.active[t]&&(n.totalActive--,delete n.active[t]),!r&&n.totalActive||(s.removeClass(e,"ng-animate"),e.removeData("$$ngAnimateState"))}}s=w,m.data("$$ngAnimateState",d);var k=y.$watch((function(){return $.totalPendingRequests}),(function(e,t){0===e&&(k(),y.$$postDigest((function(){y.$$postDigest((function(){d.running=!1}))})))})),R=0,P=i.classNameFilter(),D=P?function(e){return P.test(e)}:function(){return!0};return{animate:function(e,n,r,i,a){return i=i||"ng-inline-animate",(a=E(a)||{}).from=r?n:null,a.to=r||n,S((function(n){return C("animate",i,t.element(o(e)),null,null,u,a,n)}))},enter:function(n,r,i,a){return a=E(a),n=t.element(n),r=r&&t.element(r),i=i&&t.element(i),x(n,!0),e.enter(n,r,i),S((function(e){return C("enter","ng-enter",t.element(o(n)),r,i,u,a,e)}))},leave:function(n,r){return r=E(r),T(n=t.element(n)),x(n,!0),S((function(i){return C("leave","ng-leave",t.element(o(n)),null,null,(function(){e.leave(n)}),r,i)}))},move:function(n,r,i,a){return a=E(a),n=t.element(n),r=r&&t.element(r),i=i&&t.element(i),T(n),x(n,!0),e.move(n,r,i),S((function(e){return C("move","ng-move",t.element(o(n)),r,i,u,a,e)}))},addClass:function(e,t,n){return this.setClass(e,t,[],n)},removeClass:function(e,t,n){return this.setClass(e,[],t,n)},setClass:function(n,r,i,a){if(a=E(a),n=t.element(n),x(n=t.element(o(n))))return e.$$setClassImmediately(n,r,i,a);var s,u=n.data("$$animateClasses"),c=!!u;return u||(u={classes:{}}),s=u.classes,r=h(r)?r:r.split(" "),l(r,(function(e){e&&e.length&&(s[e]=!0)})),i=h(i)?i:i.split(" "),l(i,(function(e){e&&e.length&&(s[e]=!1)})),c?(a&&u.options&&(u.options=t.extend(u.options||{},a)),u.promise):(n.data("$$animateClasses",u={classes:s,options:a}),u.promise=S((function(t){var r=n.parent(),i=o(n);if((a=i.parentNode)&&!a.$$NG_REMOVED&&!i.$$NG_REMOVED){i=n.data("$$animateClasses"),n.removeData("$$animateClasses");var a=n.data("$$ngAnimateState")||{},s=function(e,t,n){var r={};l(n=n||{},(function(e,t){l(t.split(" "),(function(t){r[t]=e}))}));var i=Object.create(null);l((e.attr("class")||"").split(/\s+/),(function(e){i[e]=!0}));var o=[],a=[];return l(t&&t.classes||[],(function(e,t){var n=i[t],s=r[t]||{};!1===e?(n||"addClass"==s.event)&&a.push(t):!0===e&&(n&&"removeClass"!=s.event||o.push(t))})),0<o.length+a.length&&[o.join(" "),a.join(" ")]}(n,i,a.active);return s?C("setClass",s,n,r,null,(function(){s[0]&&e.$$addClassImmediately(n,s[0]),s[1]&&e.$$removeClassImmediately(n,s[1])}),i.options,t):t()}t()})))},cancel:function(e){e.$$cancelFn()},enabled:function(e,t){switch(arguments.length){case 2:if(e)F(t);else{var n=t.data("$$ngAnimateState")||{};n.disabled=!0,t.data("$$ngAnimateState",n)}break;case 1:d.disabled=!e;break;default:e=!d.disabled}return!!e}}}]),i.register("",["$window","$sniffer","$timeout","$$animateReflow",function(r,i,a,c){function f(){R||(R=c((function(){O=[],R=null,P={}})))}function d(e,t){R&&R(),O.push(t),R=c((function(){l(O,(function(e){e()})),O=[],R=null,P={}}))}function g(e,n){var r=o(e);e=t.element(r),j.push(e),(r=Date.now()+n)<=_||(a.cancel(I),_=r,I=a((function(){!function(e){l(e,(function(e){(e=e.data("$$ngAnimateCSS3Data"))&&l(e.closeAnimationFns,(function(e){e()}))}))}(j),j=[]}),n,!1))}function m(e,t){var n=t?P[t]:null;if(!n){var i=0,o=0,a=0,s=0;l(e,(function(e){if(1==e.nodeType){e=r.getComputedStyle(e)||{},i=Math.max(v(e[A+"Duration"]),i),o=Math.max(v(e[A+"Delay"]),o),s=Math.max(v(e[T+"Delay"]),s);var t=v(e[T+"Duration"]);0<t&&(t*=parseInt(e[T+"IterationCount"],10)||1),a=Math.max(t,a)}})),n={total:0,transitionDelay:o,transitionDuration:i,animationDelay:s,animationDuration:a},t&&(P[t]=n)}return n}function v(e){var t=0;return e=p(e)?e.split(/\s*,\s*/):[],l(e,(function(e){t=Math.max(parseFloat(e)||0,t)})),t}function y(e,t,n,r){var i;e=0<=["ng-enter","ng-leave","ng-move"].indexOf(n),(u=(a=t.parent()).data("$$ngAnimateKey"))||(a.data("$$ngAnimateKey",++D),u=D),i=u+"-"+o(t).getAttribute("class");var a,u,l={};0<(u=P[a=i+" "+n]?++P[a].total:0)&&((i=!P[l=i+" "+(c=n+"-stagger")])&&s.addClass(t,c),l=m(t,l),i&&s.removeClass(t,c));s.addClass(t,n);var c=t.data("$$ngAnimateCSS3Data")||{},h=m(t,a);return i=h.transitionDuration,h=h.animationDuration,e&&0===i&&0===h?(s.removeClass(t,n),!1):(n=r||e&&0<i,e=0<h&&0<l.animationDelay&&0===l.animationDuration,t.data("$$ngAnimateCSS3Data",{stagger:l,cacheKey:a,running:c.running||0,itemIndex:u,blockTransition:n,closeAnimationFns:c.closeAnimationFns||[]}),a=o(t),n&&(b(a,!0),r&&t.css(r)),e&&(a.style[T+"PlayState"]="paused"),!0)}function b(e,t){e.style[A+"Property"]=t?"none":""}function $(e,t,n,r){if(y(e,t,n,r))return function(e){e&&S(t,n)}}function w(e,t,n,r,i){if(t.data("$$ngAnimateCSS3Data"))return function(e,t,n,r,i){function u(){t.off(D,c),s.removeClass(t,p),s.removeClass(t,f),R&&a.cancel(R),S(t,n);var e,r=o(t);for(e in d)r.style.removeProperty(d[e])}function c(e){e.stopPropagation();var t=e.originalEvent||e;e=t.$manualTimeStamp||t.timeStamp||Date.now(),t=parseFloat(t.elapsedTime.toFixed(3)),Math.max(e-P,0)>=A&&t>=E&&r()}var h=o(t);if(e=t.data("$$ngAnimateCSS3Data"),-1!=h.getAttribute("class").indexOf(n)&&e){var p="",f="";l(n.split(" "),(function(e,t){var n=(0<t?" ":"")+e;p+=n+"-active",f+=n+"-pending"}));var d=[],v=e.itemIndex,y=e.stagger,$=0;if(0<v){$=0,0<y.transitionDelay&&0===y.transitionDuration&&($=y.transitionDelay*v);var w=0;0<y.animationDelay&&0===y.animationDuration&&(w=y.animationDelay*v,d.push(k+"animation-play-state")),$=Math.round(100*Math.max($,w))/100}$||(s.addClass(t,p),e.blockTransition&&b(h,!1));var x=m(t,e.cacheKey+" "+p),E=Math.max(x.transitionDuration,x.animationDuration);if(0!==E){!$&&i&&(x.transitionDuration||(t.css("transition",x.animationDuration+"s linear all"),d.push("transition")),t.css(i));var A=1e3*(v=Math.max(x.transitionDelay,x.animationDelay));0<d.length&&(";"!==(y=h.getAttribute("style")||"").charAt(y.length-1)&&(y+=";"),h.setAttribute("style",y+" "));var R,P=Date.now(),D=F+" "+C;v=1e3*($+1.5*(v+E));return 0<$&&(s.addClass(t,f),R=a((function(){R=null,0<x.transitionDuration&&b(h,!1),0<x.animationDuration&&(h.style[T+"PlayState"]=""),s.addClass(t,p),s.removeClass(t,f),i&&(0===x.transitionDuration&&t.css("transition",x.animationDuration+"s linear all"),t.css(i),d.push("transition"))}),1e3*$,!1)),t.on(D,c),e.closeAnimationFns.push((function(){u(),r()})),e.running++,g(t,v),u}s.removeClass(t,p),S(t,n),r()}else r()}(e,t,n,r,i);S(t,n),r()}function x(e,t,n,r,i){var o=$(e,t,n,i.from);if(o){var a=o;return d(0,(function(){a=w(e,t,n,r,i.to)})),function(e){(a||u)(e)}}f(),r()}function S(e,t){s.removeClass(e,t);var n=e.data("$$ngAnimateCSS3Data");n&&(n.running&&n.running--,n.running&&0!==n.running||e.removeData("$$ngAnimateCSS3Data"))}function E(e,t){var n="";return e=h(e)?e:e.split(/\s+/),l(e,(function(e,r){e&&0<e.length&&(n+=(0<r?" ":"")+e+t)})),n}var A,C,T,F,k="";e.ontransitionend===n&&e.onwebkittransitionend!==n?(k="-webkit-",A="WebkitTransition",C="webkitTransitionEnd transitionend"):(A="transition",C="transitionend"),e.onanimationend===n&&e.onwebkitanimationend!==n?(k="-webkit-",T="WebkitAnimation",F="webkitAnimationEnd animationend"):(T="animation",F="animationend");var R,P={},D=0,O=[],I=null,_=0,j=[];return{animate:function(e,t,n,r,i,o){return(o=o||{}).from=n,o.to=r,x("animate",e,t,i,o)},enter:function(e,t,n){return x("enter",e,"ng-enter",t,n=n||{})},leave:function(e,t,n){return x("leave",e,"ng-leave",t,n=n||{})},move:function(e,t,n){return x("move",e,"ng-move",t,n=n||{})},beforeSetClass:function(e,t,n,r,i){if(i=i||{},i=$("setClass",e,t=E(n,"-remove")+" "+E(t,"-add"),i.from))return d(0,r),i;f(),r()},beforeAddClass:function(e,t,n,r){if(r=r||{},t=$("addClass",e,E(t,"-add"),r.from))return d(0,n),t;f(),n()},beforeRemoveClass:function(e,t,n,r){if(r=r||{},t=$("removeClass",e,E(t,"-remove"),r.from))return d(0,n),t;f(),n()},setClass:function(e,t,n,r,i){return i=i||{},w("setClass",e,(n=E(n,"-remove"))+" "+(t=E(t,"-add")),r,i.to)},addClass:function(e,t,n,r){return r=r||{},w("addClass",e,E(t,"-add"),n,r.to)},removeClass:function(e,t,n,r){return r=r||{},w("removeClass",e,E(t,"-remove"),n,r.to)}}}])}])}(window,window.angular)},512:function(e,t){!function(e,t,n){"use strict";t.module("ngCookies",["ng"]).factory("$cookies",["$rootScope","$browser",function(e,n){var r,i={},o={},a=!1,s=t.copy,u=t.isUndefined;return n.addPollFn((function(){var t=n.cookies();r!=t&&(r=t,s(t,o),s(t,i),a&&e.$apply())}))(),a=!0,e.$watch((function(){var e,r,a;for(e in o)u(i[e])&&n.cookies(e,void 0);for(e in i)r=i[e],t.isString(r)||(r=""+r,i[e]=r),r!==o[e]&&(n.cookies(e,r),a=!0);if(a)for(e in r=n.cookies(),i)i[e]!==r[e]&&(u(r[e])?delete i[e]:i[e]=r[e])})),i}]).factory("$cookieStore",["$cookies",function(e){return{get:function(n){return(n=e[n])?t.fromJson(n):n},put:function(n,r){e[n]=t.toJson(r)},remove:function(t){delete e[t]}}}])}(window,window.angular)},513:function(e,t){!function(e,t,n){"use strict";function r(e,n,r){return{restrict:"ECA",terminal:!0,priority:400,transclude:"element",link:function(i,o,a,s,u){function l(){f&&(r.cancel(f),f=null),h&&(h.$destroy(),h=null),p&&((f=r.leave(p)).then((function(){f=null})),p=null)}function c(){var a=e.current&&e.current.locals;if(t.isDefined(a&&a.$template)){a=i.$new();var s=e.current;p=u(a,(function(e){r.enter(e,null,p||o).then((function(){!t.isDefined(d)||d&&!i.$eval(d)||n()})),l()})),(h=s.scope=a).$emit("$viewContentLoaded"),h.$eval(g)}else l()}var h,p,f,d=a.autoscroll,g=a.onload||"";i.$on("$routeChangeSuccess",c),c()}}}function i(e,t,n){return{restrict:"ECA",priority:-400,link:function(r,i){var o=n.current,a=o.locals;i.html(a.$template);var s=e(i.contents());o.controller&&(a.$scope=r,a=t(o.controller,a),o.controllerAs&&(r[o.controllerAs]=a),i.data("$ngControllerController",a),i.children().data("$ngControllerController",a)),s(r)}}}e=t.module("ngRoute",["ng"]).provider("$route",(function(){function e(e,n){return t.extend(Object.create(e),n)}function n(e,t){var n=t.caseInsensitiveMatch,r={originalPath:e,regexp:e},i=r.keys=[];return e=e.replace(/([().])/g,"\\$1").replace(/(\/)?:(\w+)([\?\*])?/g,(function(e,t,n,r){return e="?"===r?r:null,r="*"===r?r:null,i.push({name:n,optional:!!e}),t=t||"",(e?"":t)+"(?:"+(e?t:"")+(r?"(.+?)":"([^/]+)")+(e||"")+")"+(e||"")})).replace(/([\/$\*])/g,"\\$1"),r.regexp=new RegExp("^"+e+"$",n?"i":""),r}var r={};this.when=function(e,i){var o=t.copy(i);if(t.isUndefined(o.reloadOnSearch)&&(o.reloadOnSearch=!0),t.isUndefined(o.caseInsensitiveMatch)&&(o.caseInsensitiveMatch=this.caseInsensitiveMatch),r[e]=t.extend(o,e&&n(e,o)),e){var a="/"==e[e.length-1]?e.substr(0,e.length-1):e+"/";r[a]=t.extend({redirectTo:e},n(a,o))}return this},this.caseInsensitiveMatch=!1,this.otherwise=function(e){return"string"==typeof e&&(e={redirectTo:e}),this.when(null,e),this},this.$get=["$rootScope","$location","$routeParams","$q","$injector","$templateRequest","$sce",function(n,i,a,s,u,l,c){function h(o){var a=v.current;(g=(d=function(){var n,o;return t.forEach(r,(function(r,a){var s;if(s=!o){var u=i.path();s=r.keys;var l={};if(r.regexp)if(u=r.regexp.exec(u)){for(var c=1,h=u.length;c<h;++c){var p=s[c-1],f=u[c];p&&f&&(l[p.name]=f)}s=l}else s=null;else s=null;s=n=s}s&&((o=e(r,{params:t.extend({},i.search(),n),pathParams:n})).$$route=r)})),o||r.null&&e(r.null,{params:{},pathParams:{}})}())&&a&&d.$$route===a.$$route&&t.equals(d.pathParams,a.pathParams)&&!d.reloadOnSearch&&!m)||!a&&!d||n.$broadcast("$routeChangeStart",d,a).defaultPrevented&&o&&o.preventDefault()}function p(){var e=v.current,r=d;g?(e.params=r.params,t.copy(e.params,a),n.$broadcast("$routeUpdate",e)):(r||e)&&(m=!1,(v.current=r)&&r.redirectTo&&(t.isString(r.redirectTo)?i.path(f(r.redirectTo,r.params)).search(r.params).replace():i.url(r.redirectTo(r.pathParams,i.path(),i.search())).replace()),s.when(r).then((function(){if(r){var e,n,i=t.extend({},r.resolve);return t.forEach(i,(function(e,n){i[n]=t.isString(e)?u.get(e):u.invoke(e,null,null,n)})),t.isDefined(e=r.template)?t.isFunction(e)&&(e=e(r.params)):t.isDefined(n=r.templateUrl)&&(t.isFunction(n)&&(n=n(r.params)),n=c.getTrustedResourceUrl(n),t.isDefined(n)&&(r.loadedTemplateUrl=n,e=l(n))),t.isDefined(e)&&(i.$template=e),s.all(i)}})).then((function(i){r==v.current&&(r&&(r.locals=i,t.copy(r.params,a)),n.$broadcast("$routeChangeSuccess",r,e))}),(function(t){r==v.current&&n.$broadcast("$routeChangeError",r,e,t)})))}function f(e,n){var r=[];return t.forEach((e||"").split(":"),(function(e,t){if(0===t)r.push(e);else{var i=e.match(/(\w+)(?:[?*])?(.*)/),o=i[1];r.push(n[o]),r.push(i[2]||""),delete n[o]}})),r.join("")}var d,g,m=!1,v={routes:r,reload:function(){m=!0,n.$evalAsync((function(){h(),p()}))},updateParams:function(e){if(!this.current||!this.current.$$route)throw o("norout");var n={},r=this;t.forEach(Object.keys(e),(function(t){r.current.pathParams[t]||(n[t]=e[t])})),e=t.extend({},this.current.params,e),i.path(f(this.current.$$route.originalPath,e)),i.search(t.extend({},i.search(),n))}};return n.$on("$locationChangeStart",h),n.$on("$locationChangeSuccess",p),v}]}));var o=t.$$minErr("ngRoute");e.provider("$routeParams",(function(){this.$get=function(){return{}}})),e.directive("ngView",r),e.directive("ngView",i),r.$inject=["$route","$anchorScroll","$animate"],i.$inject=["$compile","$controller","$route"]}(window,window.angular)},514:function(e,t){
24
+ /**
25
+ * An Angular module that gives you access to the browsers local storage
26
+ * @version v0.1.5 - 2014-11-04
27
+ * @link https://github.com/grevory/angular-local-storage
28
+ * @author grevory <greg@gregpike.ca>
29
+ * @license MIT License, http://www.opensource.org/licenses/MIT
30
+ */
31
+ !function(e,t){"use strict";var n=t.isDefined,r=t.isUndefined,i=t.isNumber,o=t.isObject,a=t.isArray,s=t.extend,u=t.toJson,l=t.fromJson;t.module("LocalStorageModule",[]).provider("localStorageService",(function(){this.prefix="ls",this.storageType="localStorage",this.cookie={expiry:30,path:"/"},this.notify={setItem:!0,removeItem:!1},this.setPrefix=function(e){return this.prefix=e,this},this.setStorageType=function(e){return this.storageType=e,this},this.setStorageCookie=function(e,t){return this.cookie={expiry:e,path:t},this},this.setStorageCookieDomain=function(e){return this.cookie.domain=e,this},this.setNotify=function(e,t){return this.notify={setItem:e,removeItem:t},this},this.$get=["$rootScope","$window","$document","$parse",function(e,t,c,h){var p,f=this,d=f.prefix,g=f.cookie,m=f.notify,v=f.storageType;c?c[0]&&(c=c[0]):c=document,"."!==d.substr(-1)&&(d=d?d+".":"");var y=function(e){return d+e},b=function(){try{var n=v in t&&null!==t[v],r=y("__"+Math.round(1e7*Math.random()));return n&&((p=t[v]).setItem(r,""),p.removeItem(r)),n}catch(t){return v="cookie",e.$broadcast("LocalStorageModule.notification.error",t.message),!1}}(),$=function(t,n){if(r(n)?n=null:(o(n)||a(n)||i(+n||n))&&(n=u(n)),!b||"cookie"===f.storageType)return b||e.$broadcast("LocalStorageModule.notification.warning","LOCAL_STORAGE_NOT_SUPPORTED"),m.setItem&&e.$broadcast("LocalStorageModule.notification.setitem",{key:t,newvalue:n,storageType:"cookie"}),E(t,n);try{(o(n)||a(n))&&(n=u(n)),p&&p.setItem(y(t),n),m.setItem&&e.$broadcast("LocalStorageModule.notification.setitem",{key:t,newvalue:n,storageType:f.storageType})}catch(r){return e.$broadcast("LocalStorageModule.notification.error",r.message),E(t,n)}return!0},w=function(t){if(!b||"cookie"===f.storageType)return b||e.$broadcast("LocalStorageModule.notification.warning","LOCAL_STORAGE_NOT_SUPPORTED"),A(t);var n=p?p.getItem(y(t)):null;return n&&"null"!==n?"{"===n.charAt(0)||"["===n.charAt(0)||function(e){return/^-?\d+\.?\d*$/.test(e.replace(/["']/g,""))}(n)?l(n):n:null},x=function(t){if(!b||"cookie"===f.storageType)return b||e.$broadcast("LocalStorageModule.notification.warning","LOCAL_STORAGE_NOT_SUPPORTED"),m.removeItem&&e.$broadcast("LocalStorageModule.notification.removeitem",{key:t,storageType:"cookie"}),C(t);try{p.removeItem(y(t)),m.removeItem&&e.$broadcast("LocalStorageModule.notification.removeitem",{key:t,storageType:f.storageType})}catch(n){return e.$broadcast("LocalStorageModule.notification.error",n.message),C(t)}return!0},S=function(){try{return t.navigator.cookieEnabled||"cookie"in c&&(c.cookie.length>0||(c.cookie="test").indexOf.call(c.cookie,"test")>-1)}catch(t){return e.$broadcast("LocalStorageModule.notification.error",t.message),!1}}(),E=function(t,n){if(r(n))return!1;if((a(n)||o(n))&&(n=u(n)),!S)return e.$broadcast("LocalStorageModule.notification.error","COOKIES_NOT_SUPPORTED"),!1;try{var i="",s=new Date,l="";if(null===n?(s.setTime(s.getTime()+-864e5),i="; expires="+s.toGMTString(),n=""):0!==g.expiry&&(s.setTime(s.getTime()+24*g.expiry*60*60*1e3),i="; expires="+s.toGMTString()),t){var h="; path="+g.path;g.domain&&(l="; domain="+g.domain),c.cookie=y(t)+"="+encodeURIComponent(n)+i+h+l}}catch(t){return e.$broadcast("LocalStorageModule.notification.error",t.message),!1}return!0},A=function(t){if(!S)return e.$broadcast("LocalStorageModule.notification.error","COOKIES_NOT_SUPPORTED"),!1;for(var n=c.cookie&&c.cookie.split(";")||[],r=0;r<n.length;r++){for(var i=n[r];" "===i.charAt(0);)i=i.substring(1,i.length);if(0===i.indexOf(y(t)+"=")){var o=decodeURIComponent(i.substring(d.length+t.length+1,i.length));try{var a=JSON.parse(o);return l(a)}catch(e){return o}}}return null},C=function(e){E(e,null)},T=function(){for(var e=null,t=d.length,n=c.cookie.split(";"),r=0;r<n.length;r++){for(e=n[r];" "===e.charAt(0);)e=e.substring(1,e.length);var i=e.substring(t,e.indexOf("="));C(i)}};return{isSupported:b,getStorageType:function(){return v},set:$,add:$,get:w,keys:function(){if(!b)return e.$broadcast("LocalStorageModule.notification.warning","LOCAL_STORAGE_NOT_SUPPORTED"),!1;var t=d.length,n=[];for(var r in p)if(r.substr(0,t)===d)try{n.push(r.substr(t))}catch(t){return e.$broadcast("LocalStorageModule.notification.error",t.Description),[]}return n},remove:x,clearAll:function(t){t=t||"";var n=d.slice(0,-1),r=new RegExp(n+"."+t);if(!b||"cookie"===f.storageType)return b||e.$broadcast("LocalStorageModule.notification.warning","LOCAL_STORAGE_NOT_SUPPORTED"),T();var i=d.length;for(var o in p)if(r.test(o))try{x(o.substr(i))}catch(t){return e.$broadcast("LocalStorageModule.notification.error",t.message),T()}return!0},bind:function(e,t,r,i){var a=w(i=i||t);return null===a&&n(r)?a=r:o(a)&&o(r)&&(a=s(r,a)),h(t).assign(e,a),e.$watch(t,(function(e){$(i,e)}),o(e[t]))},deriveKey:y,length:function(){for(var e=0,n=t[v],r=0;r<n.length;r++)0===n.key(r).indexOf(d)&&e++;return e},cookie:{isSupported:S,set:E,add:E,get:A,remove:C,clearAll:T}}}]}))}(window,window.angular)},515:function(e,t){!function(e,t,n){"use strict";function r(e){var t,n={};for(e=e.split(","),t=0;t<e.length;t++)n[e[t]]=!0;return n}function i(e){if(!e)return"";var t=T.exec(e);e=t[1];var n=t[3];return(t=t[2])&&(C.innerHTML=t.replace(/</g,"&lt;"),t="textContent"in C?C.textContent:C.innerText),e+t+n}function o(e){return e.replace(/&/g,"&amp;").replace(m,(function(e){return"&#"+(1024*(e.charCodeAt(0)-55296)+((e=e.charCodeAt(1))-56320)+65536)+";"})).replace(v,(function(e){return"&#"+e.charCodeAt(0)+";"})).replace(/</g,"&lt;").replace(/>/g,"&gt;")}function a(e,n){var r=!1,i=t.bind(e,e.push);return{start:function(e,a,s){e=t.lowercase(e),!r&&x[e]&&(r=e),r||!0!==S[e]||(i("<"),i(e),t.forEach(a,(function(r,a){var s=t.lowercase(a),u="img"===e&&"src"===s||"background"===s;!0!==A[s]||!0===E[s]&&!n(r,u)||(i(" "),i(a),i('="'),i(o(r)),i('"'))})),i(s?"/>":">"))},end:function(e){e=t.lowercase(e),r||!0!==S[e]||(i("</"),i(e),i(">")),e==r&&(r=!1)},chars:function(e){r||i(o(e))}}}var s=t.$$minErr("$sanitize"),u=/^<((?:[a-zA-Z])[\w:-]*)((?:\s+[\w:-]+(?:\s*=\s*(?:(?:"[^"]*")|(?:'[^']*')|[^>\s]+))?)*)\s*(\/?)\s*(>?)/,l=/^<\/\s*([\w:-]+)[^>]*>/,c=/([\w:-]+)(?:\s*=\s*(?:(?:"((?:[^"])*)")|(?:'((?:[^'])*)')|([^>\s]+)))?/g,h=/^</,p=/^<\//,f=/\x3c!--(.*?)--\x3e/g,d=/<!DOCTYPE([^>]*?)>/i,g=/<!\[CDATA\[(.*?)]]\x3e/g,m=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,v=/([^\#-~| |!])/g,y=r("area,br,col,hr,img,wbr");e=r("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),n=r("rp,rt");var b=t.extend({},n,e),$=t.extend({},e,r("address,article,aside,blockquote,caption,center,del,dir,div,dl,figure,figcaption,footer,h1,h2,h3,h4,h5,h6,header,hgroup,hr,ins,map,menu,nav,ol,pre,script,section,table,ul")),w=t.extend({},n,r("a,abbr,acronym,b,bdi,bdo,big,br,cite,code,del,dfn,em,font,i,img,ins,kbd,label,map,mark,q,ruby,rp,rt,s,samp,small,span,strike,strong,sub,sup,time,tt,u,var"));e=r("animate,animateColor,animateMotion,animateTransform,circle,defs,desc,ellipse,font-face,font-face-name,font-face-src,g,glyph,hkern,image,linearGradient,line,marker,metadata,missing-glyph,mpath,path,polygon,polyline,radialGradient,rect,set,stop,svg,switch,text,title,tspan,use");var x=r("script,style"),S=t.extend({},y,$,w,b,e),E=r("background,cite,href,longdesc,src,usemap,xlink:href");e=r("abbr,align,alt,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,coords,dir,face,headers,height,hreflang,hspace,ismap,lang,language,nohref,nowrap,rel,rev,rows,rowspan,rules,scope,scrolling,shape,size,span,start,summary,target,title,type,valign,value,vspace,width"),n=r("accent-height,accumulate,additive,alphabetic,arabic-form,ascent,attributeName,attributeType,baseProfile,bbox,begin,by,calcMode,cap-height,class,color,color-rendering,content,cx,cy,d,dx,dy,descent,display,dur,end,fill,fill-rule,font-family,font-size,font-stretch,font-style,font-variant,font-weight,from,fx,fy,g1,g2,glyph-name,gradientUnits,hanging,height,horiz-adv-x,horiz-origin-x,ideographic,k,keyPoints,keySplines,keyTimes,lang,marker-end,marker-mid,marker-start,markerHeight,markerUnits,markerWidth,mathematical,max,min,offset,opacity,orient,origin,overline-position,overline-thickness,panose-1,path,pathLength,points,preserveAspectRatio,r,refX,refY,repeatCount,repeatDur,requiredExtensions,requiredFeatures,restart,rotate,rx,ry,slope,stemh,stemv,stop-color,stop-opacity,strikethrough-position,strikethrough-thickness,stroke,stroke-dasharray,stroke-dashoffset,stroke-linecap,stroke-linejoin,stroke-miterlimit,stroke-opacity,stroke-width,systemLanguage,target,text-anchor,to,transform,type,u1,u2,underline-position,underline-thickness,unicode,unicode-range,units-per-em,values,version,viewBox,visibility,width,widths,x,x-height,x1,x2,xlink:actuate,xlink:arcrole,xlink:role,xlink:show,xlink:title,xlink:type,xml:base,xml:lang,xml:space,xmlns,xmlns:xlink,y,y1,y2,zoomAndPan");var A=t.extend({},E,n,e),C=document.createElement("pre"),T=/^(\s*)([\s\S]*?)(\s*)$/;t.module("ngSanitize",[]).provider("$sanitize",(function(){this.$get=["$$sanitizeUri",function(e){return function(n){var r=[];return function(e,n){function r(e,r,a,s){if(r=t.lowercase(r),$[r])for(;S.last()&&w[S.last()];)o("",S.last());b[r]&&S.last()==r&&o("",r),(s=y[r]||!!s)||S.push(r);var u={};a.replace(c,(function(e,t,n,r,o){u[t]=i(n||r||o||"")})),n.start&&n.start(r,u,s)}function o(e,r){var i,o=0;if(r=t.lowercase(r))for(o=S.length-1;0<=o&&S[o]!=r;o--);if(0<=o){for(i=S.length-1;i>=o;i--)n.end&&n.end(S[i]);S.length=o}}"string"!=typeof e&&(e=null==e?"":""+e);var a,m,v,S=[],E=e;for(S.last=function(){return S[S.length-1]};e;){if(v="",m=!0,S.last()&&x[S.last()]?(e=e.replace(new RegExp("(.*)<\\s*\\/\\s*"+S.last()+"[^>]*>","i"),(function(e,t){return t=t.replace(f,"$1").replace(g,"$1"),n.chars&&n.chars(i(t)),""})),o(0,S.last())):(0===e.indexOf("\x3c!--")?0<=(a=e.indexOf("--",4))&&e.lastIndexOf("--\x3e",a)===a&&(n.comment&&n.comment(e.substring(4,a)),e=e.substring(a+3),m=!1):d.test(e)?(a=e.match(d))&&(e=e.replace(a[0],""),m=!1):p.test(e)?(a=e.match(l))&&(e=e.substring(a[0].length),a[0].replace(l,o),m=!1):h.test(e)&&((a=e.match(u))?(a[4]&&(e=e.substring(a[0].length),a[0].replace(u,r)),m=!1):(v+="<",e=e.substring(1))),m&&(v+=0>(a=e.indexOf("<"))?e:e.substring(0,a),e=0>a?"":e.substring(a),n.chars&&n.chars(i(v)))),e==E)throw s("badparse",e);E=e}o()}(n,a(r,(function(t,n){return!/^unsafe/.test(e(t,n))}))),r.join("")}}]})),t.module("ngSanitize").filter("linky",["$sanitize",function(e){var n=/((ftp|https?):\/\/|(www\.)|(mailto:)?[A-Za-z0-9._%+-]+@)\S*[^\s.;,(){}<>"\u201d\u2019]/,r=/^mailto:/;return function(i,o){function s(e){e&&f.push(function(e){var n=[];return a(n,t.noop).chars(e),n.join("")}(e))}function u(e,n){f.push("<a "),t.isDefined(o)&&f.push('target="',o,'" '),f.push('href="',e.replace(/"/g,"&quot;"),'">'),s(n),f.push("</a>")}if(!i)return i;for(var l,c,h,p=i,f=[];l=p.match(n);)c=l[0],l[2]||l[4]||(c=(l[3]?"http://":"mailto:")+c),h=l.index,s(p.substr(0,h)),u(c,l[0].replace(r,"")),p=p.substring(h+l[0].length);return s(p),e(f.join(""))}}])}(window,window.angular)},516:function(e,t,n){n(517),e.exports="toastr"},517:function(e,t){!function(){"use strict";function e(e,t,n,r,i,o,a){var s,u=0,l=[],c="",h={},p=a.defer();return{active:function(){return l.length},clear:function(e){if(1===arguments.length&&!e)return;if(e)f(e.toastId);else for(var t=0;t<l.length;t++)f(l[t].toastId)},error:function(e,t,n){return d(g().iconClasses.error,e,t,n)},info:function(e,t,n){return d(g().iconClasses.info,e,t,n)},remove:f,success:function(e,t,n){return d(g().iconClasses.success,e,t,n)},warning:function(e,t,n){return d(g().iconClasses.warning,e,t,n)},refreshTimer:function(e,t){e&&e.isOpened&&l.indexOf(e)>=0&&e.scope.refreshTimer(t)}};function f(t,n){var r=function(e){for(var t=0;t<l.length;t++)if(l[t].toastId===e)return l[t]}(t);r&&!r.deleting&&(r.deleting=!0,r.isOpened=!1,e.leave(r.el).then((function(){r.scope.options.onHidden&&r.scope.options.onHidden(!!n,r),r.scope.$destroy();var e=l.indexOf(r);delete h[r.scope.message],l.splice(e,1);var t=o.maxOpened;t&&l.length>=t&&l[t-1].open.resolve(),l.length||(s.remove(),s=null,p=a.defer())})))}function d(n,o,d,m){return angular.isObject(d)&&(m=d,d=null),function(n){var o=g();if(function(){var e=o.preventDuplicates&&n.message===c,t=o.preventOpenDuplicates&&h[n.message];if(e||t)return!0;return c=n.message,h[n.message]=!0,!1}())return;var d=function(){var e={toastId:u++,isOpened:!1,scope:r.$new(),open:a.defer()};e.iconClass=n.iconClass,n.optionsOverride&&(angular.extend(o,function(e){for(var t=["containerId","iconClasses","maxOpened","newestOnTop","positionClass","preventDuplicates","preventOpenDuplicates","templates"],n=0,r=t.length;n<r;n++)delete e[t[n]];return e}(n.optionsOverride)),e.iconClass=n.optionsOverride.iconClass||e.iconClass);return function(e,t,n){n.allowHtml?(e.scope.allowHtml=!0,e.scope.title=i.trustAsHtml(t.title),e.scope.message=i.trustAsHtml(t.message)):(e.scope.title=t.title,e.scope.message=t.message);e.scope.toastType=e.iconClass,e.scope.toastId=e.toastId,e.scope.extraData=n.extraData,e.scope.options={extendedTimeOut:n.extendedTimeOut,messageClass:n.messageClass,onHidden:n.onHidden,onShown:r("onShown"),onTap:r("onTap"),progressBar:n.progressBar,tapToDismiss:n.tapToDismiss,timeOut:n.timeOut,titleClass:n.titleClass,toastClass:n.toastClass},n.closeButton&&(e.scope.options.closeHtml=n.closeHtml);function r(t){if(n[t])return function(){n[t](e)}}}(e,n,o),e.el=function(e){var n=angular.element("<div toast></div>");return t.get("$compile")(n)(e)}(e.scope),e}();if(l.push(d),function(){return o.autoDismiss&&o.maxOpened&&l.length>o.maxOpened}())for(var m=l.slice(0,l.length-o.maxOpened),v=0,y=m.length;v<y;v++)f(m[v].toastId);(o.maxOpened&&l.length<=o.maxOpened||!o.maxOpened)&&d.open.resolve();return d.open.promise.then((function(){(function(t){if(s)return p.promise;(s=angular.element("<div></div>")).attr("id",t.containerId),s.addClass(t.positionClass),s.css({"pointer-events":"auto"});var n=angular.element(document.querySelector(t.target));if(!n||!n.length)throw"Target for toasts doesn't exist";return e.enter(s,n).then((function(){p.resolve()})),p.promise})(o).then((function(){if(d.isOpened=!0,o.newestOnTop)e.enter(d.el,s).then((function(){d.scope.init()}));else{var t=s[0].lastChild?angular.element(s[0].lastChild):null;e.enter(d.el,s,t).then((function(){d.scope.init()}))}}))})),d}({iconClass:n,message:o,optionsOverride:m,title:d})}function g(){return angular.extend({},o)}}angular.module("toastr",[]).factory("toastr",e),e.$inject=["$animate","$injector","$document","$rootScope","$sce","toastrConfig","$q"]}(),function(){"use strict";angular.module("toastr").constant("toastrConfig",{allowHtml:!1,autoDismiss:!1,closeButton:!1,closeHtml:"<button>&times;</button>",containerId:"toast-container",extendedTimeOut:1e3,iconClasses:{error:"toast-error",info:"toast-info",success:"toast-success",warning:"toast-warning"},maxOpened:0,messageClass:"toast-message",newestOnTop:!0,onHidden:null,onShown:null,onTap:null,positionClass:"toast-top-right",preventDuplicates:!1,preventOpenDuplicates:!1,progressBar:!1,tapToDismiss:!0,target:"body",templates:{toast:"directives/toast/toast.html",progressbar:"directives/progressbar/progressbar.html"},timeOut:5e3,titleClass:"toast-title",toastClass:"toast"})}(),function(){"use strict";function e(e){return{require:"^toast",templateUrl:function(){return e.templates.progressbar},link:function(e,t,n,r){var i,o,a;function s(){var e=(a-(new Date).getTime())/o*100;t.css("width",e+"%")}r.progressBar=e,e.start=function(e){i&&clearInterval(i),o=parseFloat(e),a=(new Date).getTime()+o,i=setInterval(s,10)},e.stop=function(){i&&clearInterval(i)},e.$on("$destroy",(function(){clearInterval(i)}))}}}angular.module("toastr").directive("progressBar",e),e.$inject=["toastrConfig"]}(),function(){"use strict";angular.module("toastr").controller("ToastController",(function(){this.progressBar=null,this.startProgressBar=function(e){this.progressBar&&this.progressBar.start(e)},this.stopProgressBar=function(){this.progressBar&&this.progressBar.stop()}}))}(),function(){"use strict";function e(e,t,n,r){return{templateUrl:function(){return n.templates.toast},controller:"ToastController",link:function(n,i,o,a){var s;if(n.toastClass=n.options.toastClass,n.titleClass=n.options.titleClass,n.messageClass=n.options.messageClass,n.progressBar=n.options.progressBar,function(){return n.options.closeHtml}()){var u=angular.element(n.options.closeHtml),l=e.get("$compile");u.addClass("toast-close-button"),u.attr("ng-click","close(true, $event)"),l(u)(n),i.children().prepend(u)}function c(e){return a.startProgressBar(e),t((function(){a.stopProgressBar(),r.remove(n.toastId)}),e,1)}n.init=function(){n.options.timeOut&&(s=c(n.options.timeOut)),n.options.onShown&&n.options.onShown()},i.on("mouseenter",(function(){n.progressBar=!1,a.stopProgressBar(),s&&t.cancel(s)})),n.tapToast=function(){angular.isFunction(n.options.onTap)&&n.options.onTap(),n.options.tapToDismiss&&n.close(!0)},n.close=function(e,t){t&&angular.isFunction(t.stopPropagation)&&t.stopPropagation(),r.remove(n.toastId,e)},n.refreshTimer=function(e){s&&(t.cancel(s),s=c(e||n.options.timeOut))},i.on("mouseleave",(function(){0===n.options.timeOut&&0===n.options.extendedTimeOut||(n.$apply((function(){n.progressBar=n.options.progressBar})),s=c(n.options.extendedTimeOut))}))}}}angular.module("toastr").directive("toast",e),e.$inject=["$injector","$interval","toastrConfig","toastr"]}(),angular.module("toastr").run(["$templateCache",function(e){e.put("directives/progressbar/progressbar.html",'<div class="toast-progress"></div>\n'),e.put("directives/toast/toast.html",'<div class="{{toastClass}} {{toastType}}" ng-click="tapToast()">\n <div ng-switch on="allowHtml">\n <div ng-switch-default ng-if="title" class="{{titleClass}}" aria-label="{{title}}">{{title}}</div>\n <div ng-switch-default class="{{messageClass}}" aria-label="{{message}}">{{message}}</div>\n <div ng-switch-when="true" ng-if="title" class="{{titleClass}}" ng-bind-html="title"></div>\n <div ng-switch-when="true" class="{{messageClass}}" ng-bind-html="message"></div>\n </div>\n <progress-bar ng-if="progressBar"></progress-bar>\n</div>\n')}])},518:function(e,t){angular.module("ui.bootstrap",["ui.bootstrap.tpls","ui.bootstrap.collapse","ui.bootstrap.accordion","ui.bootstrap.alert","ui.bootstrap.buttons","ui.bootstrap.carousel","ui.bootstrap.dateparser","ui.bootstrap.position","ui.bootstrap.datepicker","ui.bootstrap.dropdown","ui.bootstrap.stackedMap","ui.bootstrap.modal","ui.bootstrap.pagination","ui.bootstrap.tooltip","ui.bootstrap.popover","ui.bootstrap.progressbar","ui.bootstrap.rating","ui.bootstrap.tabs","ui.bootstrap.timepicker","ui.bootstrap.typeahead"]),angular.module("ui.bootstrap.tpls",["template/accordion/accordion-group.html","template/accordion/accordion.html","template/alert/alert.html","template/carousel/carousel.html","template/carousel/slide.html","template/datepicker/datepicker.html","template/datepicker/day.html","template/datepicker/month.html","template/datepicker/popup.html","template/datepicker/year.html","template/modal/backdrop.html","template/modal/window.html","template/pagination/pager.html","template/pagination/pagination.html","template/tooltip/tooltip-html-popup.html","template/tooltip/tooltip-popup.html","template/tooltip/tooltip-template-popup.html","template/popover/popover-html.html","template/popover/popover-template.html","template/popover/popover.html","template/progressbar/bar.html","template/progressbar/progress.html","template/progressbar/progressbar.html","template/rating/rating.html","template/tabs/tab.html","template/tabs/tabset.html","template/timepicker/timepicker.html","template/typeahead/typeahead-match.html","template/typeahead/typeahead-popup.html"]),angular.module("ui.bootstrap.collapse",[]).directive("uibCollapse",["$animate","$injector",function(e,t){var n=t.has("$animateCss")?t.get("$animateCss"):null;return{link:function(t,r,i){function o(){r.removeClass("collapse").addClass("collapsing").attr("aria-expanded",!0).attr("aria-hidden",!1),n?n(r,{addClass:"in",easing:"ease",to:{height:r[0].scrollHeight+"px"}}).start().finally(a):e.addClass(r,"in",{to:{height:r[0].scrollHeight+"px"}}).then(a)}function a(){r.removeClass("collapsing").addClass("collapse").css({height:"auto"})}function s(){return r.hasClass("collapse")||r.hasClass("in")?(r.css({height:r[0].scrollHeight+"px"}).removeClass("collapse").addClass("collapsing").attr("aria-expanded",!1).attr("aria-hidden",!0),void(n?n(r,{removeClass:"in",to:{height:"0"}}).start().finally(u):e.removeClass(r,"in",{to:{height:"0"}}).then(u))):u()}function u(){r.css({height:"0"}),r.removeClass("collapsing").addClass("collapse")}t.$watch(i.uibCollapse,(function(e){e?s():o()}))}}}]),angular.module("ui.bootstrap.collapse").value("$collapseSuppressWarning",!1).directive("collapse",["$animate","$injector","$log","$collapseSuppressWarning",function(e,t,n,r){var i=t.has("$animateCss")?t.get("$animateCss"):null;return{link:function(t,o,a){function s(){o.removeClass("collapse").addClass("collapsing").attr("aria-expanded",!0).attr("aria-hidden",!1),i?i(o,{easing:"ease",to:{height:o[0].scrollHeight+"px"}}).start().done(u):e.animate(o,{},{height:o[0].scrollHeight+"px"}).then(u)}function u(){o.removeClass("collapsing").addClass("collapse in").css({height:"auto"})}function l(){return o.hasClass("collapse")||o.hasClass("in")?(o.css({height:o[0].scrollHeight+"px"}).removeClass("collapse in").addClass("collapsing").attr("aria-expanded",!1).attr("aria-hidden",!0),void(i?i(o,{to:{height:"0"}}).start().done(c):e.animate(o,{},{height:"0"}).then(c))):c()}function c(){o.css({height:"0"}),o.removeClass("collapsing").addClass("collapse")}r||n.warn("collapse is now deprecated. Use uib-collapse instead."),t.$watch(a.collapse,(function(e){e?l():s()}))}}}]),angular.module("ui.bootstrap.accordion",["ui.bootstrap.collapse"]).constant("uibAccordionConfig",{closeOthers:!0}).controller("UibAccordionController",["$scope","$attrs","uibAccordionConfig",function(e,t,n){this.groups=[],this.closeOthers=function(r){(angular.isDefined(t.closeOthers)?e.$eval(t.closeOthers):n.closeOthers)&&angular.forEach(this.groups,(function(e){e!==r&&(e.isOpen=!1)}))},this.addGroup=function(e){var t=this;this.groups.push(e),e.$on("$destroy",(function(n){t.removeGroup(e)}))},this.removeGroup=function(e){var t=this.groups.indexOf(e);-1!==t&&this.groups.splice(t,1)}}]).directive("uibAccordion",(function(){return{controller:"UibAccordionController",controllerAs:"accordion",transclude:!0,templateUrl:function(e,t){return t.templateUrl||"template/accordion/accordion.html"}}})).directive("uibAccordionGroup",(function(){return{require:"^uibAccordion",transclude:!0,replace:!0,templateUrl:function(e,t){return t.templateUrl||"template/accordion/accordion-group.html"},scope:{heading:"@",isOpen:"=?",isDisabled:"=?"},controller:function(){this.setHeading=function(e){this.heading=e}},link:function(e,t,n,r){r.addGroup(e),e.openClass=n.openClass||"panel-open",e.panelClass=n.panelClass,e.$watch("isOpen",(function(n){t.toggleClass(e.openClass,!!n),n&&r.closeOthers(e)})),e.toggleOpen=function(t){e.isDisabled||t&&32!==t.which||(e.isOpen=!e.isOpen)}}}})).directive("uibAccordionHeading",(function(){return{transclude:!0,template:"",replace:!0,require:"^uibAccordionGroup",link:function(e,t,n,r,i){r.setHeading(i(e,angular.noop))}}})).directive("uibAccordionTransclude",(function(){return{require:["?^uibAccordionGroup","?^accordionGroup"],link:function(e,t,n,r){r=r[0]?r[0]:r[1],e.$watch((function(){return r[n.uibAccordionTransclude]}),(function(e){e&&(t.find("span").html(""),t.find("span").append(e))}))}}})),angular.module("ui.bootstrap.accordion").value("$accordionSuppressWarning",!1).controller("AccordionController",["$scope","$attrs","$controller","$log","$accordionSuppressWarning",function(e,t,n,r,i){i||r.warn("AccordionController is now deprecated. Use UibAccordionController instead."),angular.extend(this,n("UibAccordionController",{$scope:e,$attrs:t}))}]).directive("accordion",["$log","$accordionSuppressWarning",function(e,t){return{restrict:"EA",controller:"AccordionController",controllerAs:"accordion",transclude:!0,replace:!1,templateUrl:function(e,t){return t.templateUrl||"template/accordion/accordion.html"},link:function(){t||e.warn("accordion is now deprecated. Use uib-accordion instead.")}}}]).directive("accordionGroup",["$log","$accordionSuppressWarning",function(e,t){return{require:"^accordion",restrict:"EA",transclude:!0,replace:!0,templateUrl:function(e,t){return t.templateUrl||"template/accordion/accordion-group.html"},scope:{heading:"@",isOpen:"=?",isDisabled:"=?"},controller:function(){this.setHeading=function(e){this.heading=e}},link:function(n,r,i,o){t||e.warn("accordion-group is now deprecated. Use uib-accordion-group instead."),o.addGroup(n),n.openClass=i.openClass||"panel-open",n.panelClass=i.panelClass,n.$watch("isOpen",(function(e){r.toggleClass(n.openClass,!!e),e&&o.closeOthers(n)})),n.toggleOpen=function(e){n.isDisabled||e&&32!==e.which||(n.isOpen=!n.isOpen)}}}}]).directive("accordionHeading",["$log","$accordionSuppressWarning",function(e,t){return{restrict:"EA",transclude:!0,template:"",replace:!0,require:"^accordionGroup",link:function(n,r,i,o,a){t||e.warn("accordion-heading is now deprecated. Use uib-accordion-heading instead."),o.setHeading(a(n,angular.noop))}}}]).directive("accordionTransclude",["$log","$accordionSuppressWarning",function(e,t){return{require:"^accordionGroup",link:function(n,r,i,o){t||e.warn("accordion-transclude is now deprecated. Use uib-accordion-transclude instead."),n.$watch((function(){return o[i.accordionTransclude]}),(function(e){e&&(r.find("span").html(""),r.find("span").append(e))}))}}}]),angular.module("ui.bootstrap.alert",[]).controller("UibAlertController",["$scope","$attrs","$interpolate","$timeout",function(e,t,n,r){e.closeable=!!t.close;var i=angular.isDefined(t.dismissOnTimeout)?n(t.dismissOnTimeout)(e.$parent):null;i&&r((function(){e.close()}),parseInt(i,10))}]).directive("uibAlert",(function(){return{controller:"UibAlertController",controllerAs:"alert",templateUrl:function(e,t){return t.templateUrl||"template/alert/alert.html"},transclude:!0,replace:!0,scope:{type:"@",close:"&"}}})),angular.module("ui.bootstrap.alert").value("$alertSuppressWarning",!1).controller("AlertController",["$scope","$attrs","$controller","$log","$alertSuppressWarning",function(e,t,n,r,i){i||r.warn("AlertController is now deprecated. Use UibAlertController instead."),angular.extend(this,n("UibAlertController",{$scope:e,$attrs:t}))}]).directive("alert",["$log","$alertSuppressWarning",function(e,t){return{controller:"AlertController",controllerAs:"alert",templateUrl:function(e,t){return t.templateUrl||"template/alert/alert.html"},transclude:!0,replace:!0,scope:{type:"@",close:"&"},link:function(){t||e.warn("alert is now deprecated. Use uib-alert instead.")}}}]),angular.module("ui.bootstrap.buttons",[]).constant("uibButtonConfig",{activeClass:"active",toggleEvent:"click"}).controller("UibButtonsController",["uibButtonConfig",function(e){this.activeClass=e.activeClass||"active",this.toggleEvent=e.toggleEvent||"click"}]).directive("uibBtnRadio",(function(){return{require:["uibBtnRadio","ngModel"],controller:"UibButtonsController",controllerAs:"buttons",link:function(e,t,n,r){var i=r[0],o=r[1];t.find("input").css({display:"none"}),o.$render=function(){t.toggleClass(i.activeClass,angular.equals(o.$modelValue,e.$eval(n.uibBtnRadio)))},t.on(i.toggleEvent,(function(){if(!n.disabled){var r=t.hasClass(i.activeClass);(!r||angular.isDefined(n.uncheckable))&&e.$apply((function(){o.$setViewValue(r?null:e.$eval(n.uibBtnRadio)),o.$render()}))}}))}}})).directive("uibBtnCheckbox",(function(){return{require:["uibBtnCheckbox","ngModel"],controller:"UibButtonsController",controllerAs:"button",link:function(e,t,n,r){function i(){return o(n.btnCheckboxTrue,!0)}function o(t,n){return angular.isDefined(t)?e.$eval(t):n}var a=r[0],s=r[1];t.find("input").css({display:"none"}),s.$render=function(){t.toggleClass(a.activeClass,angular.equals(s.$modelValue,i()))},t.on(a.toggleEvent,(function(){n.disabled||e.$apply((function(){s.$setViewValue(t.hasClass(a.activeClass)?o(n.btnCheckboxFalse,!1):i()),s.$render()}))}))}}})),angular.module("ui.bootstrap.buttons").value("$buttonsSuppressWarning",!1).controller("ButtonsController",["$controller","$log","$buttonsSuppressWarning",function(e,t,n){n||t.warn("ButtonsController is now deprecated. Use UibButtonsController instead."),angular.extend(this,e("UibButtonsController"))}]).directive("btnRadio",["$log","$buttonsSuppressWarning",function(e,t){return{require:["btnRadio","ngModel"],controller:"ButtonsController",controllerAs:"buttons",link:function(n,r,i,o){t||e.warn("btn-radio is now deprecated. Use uib-btn-radio instead.");var a=o[0],s=o[1];r.find("input").css({display:"none"}),s.$render=function(){r.toggleClass(a.activeClass,angular.equals(s.$modelValue,n.$eval(i.btnRadio)))},r.bind(a.toggleEvent,(function(){if(!i.disabled){var e=r.hasClass(a.activeClass);(!e||angular.isDefined(i.uncheckable))&&n.$apply((function(){s.$setViewValue(e?null:n.$eval(i.btnRadio)),s.$render()}))}}))}}}]).directive("btnCheckbox",["$document","$log","$buttonsSuppressWarning",function(e,t,n){return{require:["btnCheckbox","ngModel"],controller:"ButtonsController",controllerAs:"button",link:function(r,i,o,a){function s(){return l(o.btnCheckboxTrue,!0)}function u(){return l(o.btnCheckboxFalse,!1)}function l(e,t){var n=r.$eval(e);return angular.isDefined(n)?n:t}n||t.warn("btn-checkbox is now deprecated. Use uib-btn-checkbox instead.");var c=a[0],h=a[1];i.find("input").css({display:"none"}),h.$render=function(){i.toggleClass(c.activeClass,angular.equals(h.$modelValue,s()))},i.bind(c.toggleEvent,(function(){o.disabled||r.$apply((function(){h.$setViewValue(i.hasClass(c.activeClass)?u():s()),h.$render()}))})),i.on("keypress",(function(t){o.disabled||32!==t.which||e[0].activeElement!==i[0]||r.$apply((function(){h.$setViewValue(i.hasClass(c.activeClass)?u():s()),h.$render()}))}))}}}]),angular.module("ui.bootstrap.carousel",[]).controller("UibCarouselController",["$scope","$element","$interval","$animate",function(e,t,n,r){function i(t,n,i){m||(angular.extend(t,{direction:i,active:!0}),angular.extend(h.currentSlide||{},{direction:i,active:!1}),r.enabled()&&!e.noTransition&&!e.$currentTransition&&t.$element&&h.slides.length>1&&(t.$element.data(d,t.direction),h.currentSlide&&h.currentSlide.$element&&h.currentSlide.$element.data(d,t.direction),e.$currentTransition=!0,f?r.on("addClass",t.$element,(function(t,n){"close"===n&&(e.$currentTransition=null,r.off("addClass",t))})):t.$element.one("$animate:close",(function(){e.$currentTransition=null}))),h.currentSlide=t,g=n,a())}function o(e){if(angular.isUndefined(p[e].index))return p[e];var t;for(p.length,t=0;t<p.length;++t)if(p[t].index==e)return p[t]}function a(){s();var t=+e.interval;!isNaN(t)&&t>0&&(l=n(u,t))}function s(){l&&(n.cancel(l),l=null)}function u(){var t=+e.interval;c&&!isNaN(t)&&t>0&&p.length?e.next():e.pause()}var l,c,h=this,p=h.slides=e.slides=[],f=angular.version.minor>=4,d="uib-slideDirection",g=-1;h.currentSlide=null;var m=!1;h.select=e.select=function(t,n){var r=e.indexOfSlide(t);void 0===n&&(n=r>h.getCurrentIndex()?"next":"prev"),t&&t!==h.currentSlide&&!e.$currentTransition&&i(t,r,n)},e.$on("$destroy",(function(){m=!0})),h.getCurrentIndex=function(){return h.currentSlide&&angular.isDefined(h.currentSlide.index)?+h.currentSlide.index:g},e.indexOfSlide=function(e){return angular.isDefined(e.index)?+e.index:p.indexOf(e)},e.next=function(){var t=(h.getCurrentIndex()+1)%p.length;return 0===t&&e.noWrap()?void e.pause():h.select(o(t),"next")},e.prev=function(){var t=h.getCurrentIndex()-1<0?p.length-1:h.getCurrentIndex()-1;return e.noWrap()&&t===p.length-1?void e.pause():h.select(o(t),"prev")},e.isActive=function(e){return h.currentSlide===e},e.$watch("interval",a),e.$watchCollection("slides",(function(t){t.length||(e.$currentTransition=null)})),e.$on("$destroy",s),e.play=function(){c||(c=!0,a())},e.pause=function(){e.noPause||(c=!1,s())},h.addSlide=function(t,n){t.$element=n,p.push(t),1===p.length||t.active?(h.select(p[p.length-1]),1===p.length&&e.play()):t.active=!1},h.removeSlide=function(e){angular.isDefined(e.index)&&p.sort((function(e,t){return+e.index>+t.index}));var t=p.indexOf(e);p.splice(t,1),p.length>0&&e.active?t>=p.length?h.select(p[t-1]):h.select(p[t]):g>t&&g--,0===p.length&&(h.currentSlide=null)},e.$watch("noTransition",(function(e){t.data("uib-noTransition",e)}))}]).directive("uibCarousel",[function(){return{transclude:!0,replace:!0,controller:"UibCarouselController",controllerAs:"carousel",require:"carousel",templateUrl:function(e,t){return t.templateUrl||"template/carousel/carousel.html"},scope:{interval:"=",noTransition:"=",noPause:"=",noWrap:"&"}}}]).directive("uibSlide",(function(){return{require:"^uibCarousel",restrict:"EA",transclude:!0,replace:!0,templateUrl:function(e,t){return t.templateUrl||"template/carousel/slide.html"},scope:{active:"=?",actual:"=?",index:"=?"},link:function(e,t,n,r){r.addSlide(e,t),e.$on("$destroy",(function(){r.removeSlide(e)})),e.$watch("active",(function(t){t&&r.select(e)}))}}})).animation(".item",["$injector","$animate",function(e,t){function n(e,t,n){e.removeClass(t),n&&n()}var r="uib-noTransition",i="uib-slideDirection",o=null;return e.has("$animateCss")&&(o=e.get("$animateCss")),{beforeAddClass:function(e,a,s){if("active"==a&&e.parent()&&e.parent().parent()&&!e.parent().parent().data(r)){var u=!1,l=e.data(i),c="next"==l?"left":"right",h=n.bind(this,e,c+" "+l,s);return e.addClass(l),o?o(e,{addClass:c}).start().done(h):t.addClass(e,c).then((function(){u||h(),s()})),function(){u=!0}}s()},beforeRemoveClass:function(e,a,s){if("active"===a&&e.parent()&&e.parent().parent()&&!e.parent().parent().data(r)){var u=!1,l="next"==e.data(i)?"left":"right",c=n.bind(this,e,l,s);return o?o(e,{addClass:l}).start().done(c):t.addClass(e,l).then((function(){u||c(),s()})),function(){u=!0}}s()}}}]),angular.module("ui.bootstrap.carousel").value("$carouselSuppressWarning",!1).controller("CarouselController",["$scope","$element","$controller","$log","$carouselSuppressWarning",function(e,t,n,r,i){i||r.warn("CarouselController is now deprecated. Use UibCarouselController instead."),angular.extend(this,n("UibCarouselController",{$scope:e,$element:t}))}]).directive("carousel",["$log","$carouselSuppressWarning",function(e,t){return{transclude:!0,replace:!0,controller:"CarouselController",controllerAs:"carousel",require:"carousel",templateUrl:function(e,t){return t.templateUrl||"template/carousel/carousel.html"},scope:{interval:"=",noTransition:"=",noPause:"=",noWrap:"&"},link:function(){t||e.warn("carousel is now deprecated. Use uib-carousel instead.")}}}]).directive("slide",["$log","$carouselSuppressWarning",function(e,t){return{require:"^carousel",transclude:!0,replace:!0,templateUrl:function(e,t){return t.templateUrl||"template/carousel/slide.html"},scope:{active:"=?",actual:"=?",index:"=?"},link:function(n,r,i,o){t||e.warn("slide is now deprecated. Use uib-slide instead."),o.addSlide(n,r),n.$on("$destroy",(function(){o.removeSlide(n)})),n.$watch("active",(function(e){e&&o.select(n)}))}}}]),angular.module("ui.bootstrap.dateparser",[]).service("uibDateParser",["$log","$locale","orderByFilter",function(e,t,n){function r(e){var t=[],r=e.split("");return angular.forEach(o,(function(n,i){var o=e.indexOf(i);if(o>-1){e=e.split(""),r[o]="("+n.regex+")",e[o]="$";for(var a=o+1,s=o+i.length;s>a;a++)r[a]="",e[a]="$";e=e.join(""),t.push({index:o,apply:n.apply})}})),{regex:new RegExp("^"+r.join("")+"$"),map:n(t,"index")}}var i,o,a=/[\\\^\$\*\+\?\|\[\]\(\)\.\{\}]/g;this.init=function(){i=t.id,this.parsers={},o={yyyy:{regex:"\\d{4}",apply:function(e){this.year=+e}},yy:{regex:"\\d{2}",apply:function(e){this.year=+e+2e3}},y:{regex:"\\d{1,4}",apply:function(e){this.year=+e}},MMMM:{regex:t.DATETIME_FORMATS.MONTH.join("|"),apply:function(e){this.month=t.DATETIME_FORMATS.MONTH.indexOf(e)}},MMM:{regex:t.DATETIME_FORMATS.SHORTMONTH.join("|"),apply:function(e){this.month=t.DATETIME_FORMATS.SHORTMONTH.indexOf(e)}},MM:{regex:"0[1-9]|1[0-2]",apply:function(e){this.month=e-1}},M:{regex:"[1-9]|1[0-2]",apply:function(e){this.month=e-1}},dd:{regex:"[0-2][0-9]{1}|3[0-1]{1}",apply:function(e){this.date=+e}},d:{regex:"[1-2]?[0-9]{1}|3[0-1]{1}",apply:function(e){this.date=+e}},EEEE:{regex:t.DATETIME_FORMATS.DAY.join("|")},EEE:{regex:t.DATETIME_FORMATS.SHORTDAY.join("|")},HH:{regex:"(?:0|1)[0-9]|2[0-3]",apply:function(e){this.hours=+e}},hh:{regex:"0[0-9]|1[0-2]",apply:function(e){this.hours=+e}},H:{regex:"1?[0-9]|2[0-3]",apply:function(e){this.hours=+e}},h:{regex:"[0-9]|1[0-2]",apply:function(e){this.hours=+e}},mm:{regex:"[0-5][0-9]",apply:function(e){this.minutes=+e}},m:{regex:"[0-9]|[1-5][0-9]",apply:function(e){this.minutes=+e}},sss:{regex:"[0-9][0-9][0-9]",apply:function(e){this.milliseconds=+e}},ss:{regex:"[0-5][0-9]",apply:function(e){this.seconds=+e}},s:{regex:"[0-9]|[1-5][0-9]",apply:function(e){this.seconds=+e}},a:{regex:t.DATETIME_FORMATS.AMPMS.join("|"),apply:function(e){12===this.hours&&(this.hours=0),"PM"===e&&(this.hours+=12)}}}},this.init(),this.parse=function(n,o,s){if(!angular.isString(n)||!o)return n;o=(o=t.DATETIME_FORMATS[o]||o).replace(a,"\\$&"),t.id!==i&&this.init(),this.parsers[o]||(this.parsers[o]=r(o));var u=this.parsers[o],l=u.regex,c=u.map,h=n.match(l);if(h&&h.length){var p,f;angular.isDate(s)&&!isNaN(s.getTime())?p={year:s.getFullYear(),month:s.getMonth(),date:s.getDate(),hours:s.getHours(),minutes:s.getMinutes(),seconds:s.getSeconds(),milliseconds:s.getMilliseconds()}:(s&&e.warn("dateparser:","baseDate is not a valid date"),p={year:1900,month:0,date:1,hours:0,minutes:0,seconds:0,milliseconds:0});for(var d=1,g=h.length;g>d;d++){var m=c[d-1];m.apply&&m.apply.call(p,h[d])}return function(e,t,n){return!(1>n)&&(1===t&&n>28?29===n&&(e%4==0&&e%100!=0||e%400==0):3!==t&&5!==t&&8!==t&&10!==t||31>n)}(p.year,p.month,p.date)&&(angular.isDate(s)&&!isNaN(s.getTime())?(f=new Date(s)).setFullYear(p.year,p.month,p.date,p.hours,p.minutes,p.seconds,p.milliseconds||0):f=new Date(p.year,p.month,p.date,p.hours,p.minutes,p.seconds,p.milliseconds||0)),f}}}]),angular.module("ui.bootstrap.dateparser").value("$dateParserSuppressWarning",!1).service("dateParser",["$log","$dateParserSuppressWarning","uibDateParser",function(e,t,n){t||e.warn("dateParser is now deprecated. Use uibDateParser instead."),angular.extend(this,n)}]),angular.module("ui.bootstrap.position",[]).factory("$uibPosition",["$document","$window",function(e,t){function n(e){return"static"===(function(e,n){return e.currentStyle?e.currentStyle[n]:t.getComputedStyle?t.getComputedStyle(e)[n]:e.style[n]}(e,"position")||"static")}var r=function(t){for(var r=e[0],i=t.offsetParent||r;i&&i!==r&&n(i);)i=i.offsetParent;return i||r};return{position:function(t){var n=this.offset(t),i={top:0,left:0},o=r(t[0]);o!=e[0]&&((i=this.offset(angular.element(o))).top+=o.clientTop-o.scrollTop,i.left+=o.clientLeft-o.scrollLeft);var a=t[0].getBoundingClientRect();return{width:a.width||t.prop("offsetWidth"),height:a.height||t.prop("offsetHeight"),top:n.top-i.top,left:n.left-i.left}},offset:function(n){var r=n[0].getBoundingClientRect();return{width:r.width||n.prop("offsetWidth"),height:r.height||n.prop("offsetHeight"),top:r.top+(t.pageYOffset||e[0].documentElement.scrollTop),left:r.left+(t.pageXOffset||e[0].documentElement.scrollLeft)}},positionElements:function(e,t,n,r){var i,o,a,s,u=n.split("-"),l=u[0],c=u[1]||"center";i=r?this.offset(e):this.position(e),o=t.prop("offsetWidth"),a=t.prop("offsetHeight");var h={center:function(){return i.left+i.width/2-o/2},left:function(){return i.left},right:function(){return i.left+i.width}},p={center:function(){return i.top+i.height/2-a/2},top:function(){return i.top},bottom:function(){return i.top+i.height}};switch(l){case"right":s={top:p[c](),left:h[l]()};break;case"left":s={top:p[c](),left:i.left-o};break;case"bottom":s={top:p[l](),left:h[c]()};break;default:s={top:i.top-a,left:h[c]()}}return s}}}]),angular.module("ui.bootstrap.position").value("$positionSuppressWarning",!1).service("$position",["$log","$positionSuppressWarning","$uibPosition",function(e,t,n){t||e.warn("$position is now deprecated. Use $uibPosition instead."),angular.extend(this,n)}]),angular.module("ui.bootstrap.datepicker",["ui.bootstrap.dateparser","ui.bootstrap.position"]).value("$datepickerSuppressError",!1).constant("uibDatepickerConfig",{formatDay:"dd",formatMonth:"MMMM",formatYear:"yyyy",formatDayHeader:"EEE",formatDayTitle:"MMMM yyyy",formatMonthTitle:"yyyy",datepickerMode:"day",minMode:"day",maxMode:"year",showWeeks:!0,startingDay:0,yearRange:20,minDate:null,maxDate:null,shortcutPropagation:!1}).controller("UibDatepickerController",["$scope","$attrs","$parse","$interpolate","$log","dateFilter","uibDatepickerConfig","$datepickerSuppressError",function(e,t,n,r,i,o,a,s){var u=this,l={$setViewValue:angular.noop};this.modes=["day","month","year"],angular.forEach(["formatDay","formatMonth","formatYear","formatDayHeader","formatDayTitle","formatMonthTitle","showWeeks","startingDay","yearRange","shortcutPropagation"],(function(n,i){u[n]=angular.isDefined(t[n])?6>i?r(t[n])(e.$parent):e.$parent.$eval(t[n]):a[n]})),angular.forEach(["minDate","maxDate"],(function(r){t[r]?e.$parent.$watch(n(t[r]),(function(e){u[r]=e?new Date(e):null,u.refreshView()})):u[r]=a[r]?new Date(a[r]):null})),angular.forEach(["minMode","maxMode"],(function(r){t[r]?e.$parent.$watch(n(t[r]),(function(n){u[r]=angular.isDefined(n)?n:t[r],e[r]=u[r],("minMode"==r&&u.modes.indexOf(e.datepickerMode)<u.modes.indexOf(u[r])||"maxMode"==r&&u.modes.indexOf(e.datepickerMode)>u.modes.indexOf(u[r]))&&(e.datepickerMode=u[r])})):(u[r]=a[r]||null,e[r]=u[r])})),e.datepickerMode=e.datepickerMode||a.datepickerMode,e.uniqueId="datepicker-"+e.$id+"-"+Math.floor(1e4*Math.random()),angular.isDefined(t.initDate)?(this.activeDate=e.$parent.$eval(t.initDate)||new Date,e.$parent.$watch(t.initDate,(function(e){e&&(l.$isEmpty(l.$modelValue)||l.$invalid)&&(u.activeDate=e,u.refreshView())}))):this.activeDate=new Date,e.isActive=function(t){return 0===u.compare(t.date,u.activeDate)&&(e.activeDateId=t.uid,!0)},this.init=function(e){(l=e).$render=function(){u.render()}},this.render=function(){if(l.$viewValue){var e=new Date(l.$viewValue);!isNaN(e)?this.activeDate=e:s||i.error('Datepicker directive: "ng-model" value must be a Date object, a number of milliseconds since 01.01.1970 or a string representing an RFC2822 or ISO 8601 date.')}this.refreshView()},this.refreshView=function(){if(this.element){this._refreshView();var e=l.$viewValue?new Date(l.$viewValue):null;l.$setValidity("dateDisabled",!e||this.element&&!this.isDisabled(e))}},this.createDateObject=function(e,t){var n=l.$viewValue?new Date(l.$viewValue):null;return{date:e,label:o(e,t),selected:n&&0===this.compare(e,n),disabled:this.isDisabled(e),current:0===this.compare(e,new Date),customClass:this.customClass(e)}},this.isDisabled=function(n){return this.minDate&&this.compare(n,this.minDate)<0||this.maxDate&&this.compare(n,this.maxDate)>0||t.dateDisabled&&e.dateDisabled({date:n,mode:e.datepickerMode})},this.customClass=function(t){return e.customClass({date:t,mode:e.datepickerMode})},this.split=function(e,t){for(var n=[];e.length>0;)n.push(e.splice(0,t));return n},e.select=function(t){if(e.datepickerMode===u.minMode){var n=l.$viewValue?new Date(l.$viewValue):new Date(0,0,0,0,0,0,0);n.setFullYear(t.getFullYear(),t.getMonth(),t.getDate()),l.$setViewValue(n),l.$render()}else u.activeDate=t,e.datepickerMode=u.modes[u.modes.indexOf(e.datepickerMode)-1]},e.move=function(e){var t=u.activeDate.getFullYear()+e*(u.step.years||0),n=u.activeDate.getMonth()+e*(u.step.months||0);u.activeDate.setFullYear(t,n,1),u.refreshView()},e.toggleMode=function(t){t=t||1,e.datepickerMode===u.maxMode&&1===t||e.datepickerMode===u.minMode&&-1===t||(e.datepickerMode=u.modes[u.modes.indexOf(e.datepickerMode)+t])},e.keys={13:"enter",32:"space",33:"pageup",34:"pagedown",35:"end",36:"home",37:"left",38:"up",39:"right",40:"down"};e.$on("uib:datepicker.focus",(function(){u.element[0].focus()})),e.keydown=function(t){var n=e.keys[t.which];if(n&&!t.shiftKey&&!t.altKey)if(t.preventDefault(),u.shortcutPropagation||t.stopPropagation(),"enter"===n||"space"===n){if(u.isDisabled(u.activeDate))return;e.select(u.activeDate)}else!t.ctrlKey||"up"!==n&&"down"!==n?(u.handleKeyDown(n,t),u.refreshView()):e.toggleMode("up"===n?1:-1)}}]).controller("UibDaypickerController",["$scope","$element","dateFilter",function(e,t,n){function r(e,t){return 1!==t||e%4!=0||e%100==0&&e%400!=0?o[t]:29}function i(e){var t=new Date(e);t.setDate(t.getDate()+4-(t.getDay()||7));var n=t.getTime();return t.setMonth(0),t.setDate(1),Math.floor(Math.round((n-t)/864e5)/7)+1}var o=[31,28,31,30,31,30,31,31,30,31,30,31];this.step={months:1},this.element=t,this.init=function(t){angular.extend(t,this),e.showWeeks=t.showWeeks,t.refreshView()},this.getDates=function(e,t){for(var n,r=new Array(t),i=new Date(e),o=0;t>o;)n=new Date(i),r[o++]=n,i.setDate(i.getDate()+1);return r},this._refreshView=function(){var t=this.activeDate.getFullYear(),r=this.activeDate.getMonth(),o=new Date(this.activeDate);o.setFullYear(t,r,1);var a=this.startingDay-o.getDay(),s=a>0?7-a:-a,u=new Date(o);s>0&&u.setDate(1-s);for(var l=this.getDates(u,42),c=0;42>c;c++)l[c]=angular.extend(this.createDateObject(l[c],this.formatDay),{secondary:l[c].getMonth()!==r,uid:e.uniqueId+"-"+c});e.labels=new Array(7);for(var h=0;7>h;h++)e.labels[h]={abbr:n(l[h].date,this.formatDayHeader),full:n(l[h].date,"EEEE")};if(e.title=n(this.activeDate,this.formatDayTitle),e.rows=this.split(l,7),e.showWeeks){e.weekNumbers=[];for(var p=(11-this.startingDay)%7,f=e.rows.length,d=0;f>d;d++)e.weekNumbers.push(i(e.rows[d][p].date))}},this.compare=function(e,t){return new Date(e.getFullYear(),e.getMonth(),e.getDate())-new Date(t.getFullYear(),t.getMonth(),t.getDate())},this.handleKeyDown=function(e,t){var n=this.activeDate.getDate();if("left"===e)n-=1;else if("up"===e)n-=7;else if("right"===e)n+=1;else if("down"===e)n+=7;else if("pageup"===e||"pagedown"===e){var i=this.activeDate.getMonth()+("pageup"===e?-1:1);this.activeDate.setMonth(i,1),n=Math.min(r(this.activeDate.getFullYear(),this.activeDate.getMonth()),n)}else"home"===e?n=1:"end"===e&&(n=r(this.activeDate.getFullYear(),this.activeDate.getMonth()));this.activeDate.setDate(n)}}]).controller("UibMonthpickerController",["$scope","$element","dateFilter",function(e,t,n){this.step={years:1},this.element=t,this.init=function(e){angular.extend(e,this),e.refreshView()},this._refreshView=function(){for(var t,r=new Array(12),i=this.activeDate.getFullYear(),o=0;12>o;o++)(t=new Date(this.activeDate)).setFullYear(i,o,1),r[o]=angular.extend(this.createDateObject(t,this.formatMonth),{uid:e.uniqueId+"-"+o});e.title=n(this.activeDate,this.formatMonthTitle),e.rows=this.split(r,3)},this.compare=function(e,t){return new Date(e.getFullYear(),e.getMonth())-new Date(t.getFullYear(),t.getMonth())},this.handleKeyDown=function(e,t){var n=this.activeDate.getMonth();if("left"===e)n-=1;else if("up"===e)n-=3;else if("right"===e)n+=1;else if("down"===e)n+=3;else if("pageup"===e||"pagedown"===e){var r=this.activeDate.getFullYear()+("pageup"===e?-1:1);this.activeDate.setFullYear(r)}else"home"===e?n=0:"end"===e&&(n=11);this.activeDate.setMonth(n)}}]).controller("UibYearpickerController",["$scope","$element","dateFilter",function(e,t,n){function r(e){return parseInt((e-1)/i,10)*i+1}var i;this.element=t,this.yearpickerInit=function(){i=this.yearRange,this.step={years:i}},this._refreshView=function(){for(var t,n=new Array(i),o=0,a=r(this.activeDate.getFullYear());i>o;o++)(t=new Date(this.activeDate)).setFullYear(a+o,0,1),n[o]=angular.extend(this.createDateObject(t,this.formatYear),{uid:e.uniqueId+"-"+o});e.title=[n[0].label,n[i-1].label].join(" - "),e.rows=this.split(n,5)},this.compare=function(e,t){return e.getFullYear()-t.getFullYear()},this.handleKeyDown=function(e,t){var n=this.activeDate.getFullYear();"left"===e?n-=1:"up"===e?n-=5:"right"===e?n+=1:"down"===e?n+=5:"pageup"===e||"pagedown"===e?n+=("pageup"===e?-1:1)*this.step.years:"home"===e?n=r(this.activeDate.getFullYear()):"end"===e&&(n=r(this.activeDate.getFullYear())+i-1),this.activeDate.setFullYear(n)}}]).directive("uibDatepicker",(function(){return{replace:!0,templateUrl:function(e,t){return t.templateUrl||"template/datepicker/datepicker.html"},scope:{datepickerMode:"=?",dateDisabled:"&",customClass:"&",shortcutPropagation:"&?"},require:["uibDatepicker","^ngModel"],controller:"UibDatepickerController",controllerAs:"datepicker",link:function(e,t,n,r){var i=r[0],o=r[1];i.init(o)}}})).directive("uibDaypicker",(function(){return{replace:!0,templateUrl:function(e,t){return t.templateUrl||"template/datepicker/day.html"},require:["^?uibDatepicker","uibDaypicker","^?datepicker"],controller:"UibDaypickerController",link:function(e,t,n,r){var i=r[0]||r[2];r[1].init(i)}}})).directive("uibMonthpicker",(function(){return{replace:!0,templateUrl:function(e,t){return t.templateUrl||"template/datepicker/month.html"},require:["^?uibDatepicker","uibMonthpicker","^?datepicker"],controller:"UibMonthpickerController",link:function(e,t,n,r){var i=r[0]||r[2];r[1].init(i)}}})).directive("uibYearpicker",(function(){return{replace:!0,templateUrl:function(e,t){return t.templateUrl||"template/datepicker/year.html"},require:["^?uibDatepicker","uibYearpicker","^?datepicker"],controller:"UibYearpickerController",link:function(e,t,n,r){var i=r[0]||r[2];angular.extend(i,r[1]),i.yearpickerInit(),i.refreshView()}}})).constant("uibDatepickerPopupConfig",{datepickerPopup:"yyyy-MM-dd",datepickerPopupTemplateUrl:"template/datepicker/popup.html",datepickerTemplateUrl:"template/datepicker/datepicker.html",html5Types:{date:"yyyy-MM-dd","datetime-local":"yyyy-MM-ddTHH:mm:ss.sss",month:"yyyy-MM"},currentText:"Today",clearText:"Clear",closeText:"Done",closeOnDateSelection:!0,appendToBody:!1,showButtonBar:!0,onOpenFocus:!0}).controller("UibDatepickerPopupController",["$scope","$element","$attrs","$compile","$parse","$document","$rootScope","$uibPosition","dateFilter","uibDateParser","uibDatepickerPopupConfig","$timeout",function(e,t,n,r,i,o,a,s,u,l,c,h){function p(e){return e.replace(/([A-Z])/g,(function(e){return"-"+e.toLowerCase()}))}function f(t){if(angular.isNumber(t)&&(t=new Date(t)),!t)return null;if(angular.isDate(t)&&!isNaN(t))return t;if(angular.isString(t)){var n=l.parse(t,v,e.date);return isNaN(n)?void 0:n}}function d(e,t){var r=e||t;if(!n.ngRequired&&!r)return!0;if(angular.isNumber(r)&&(r=new Date(r)),r){if(angular.isDate(r)&&!isNaN(r))return!0;if(angular.isString(r)){var i=l.parse(r,v);return!isNaN(i)}return!1}return!0}function g(n){var r=C[0],i=t[0].contains(n.target),o=void 0!==r.contains&&r.contains(n.target);!e.isOpen||i||o||e.$apply((function(){e.isOpen=!1}))}function m(n){27===n.which&&e.isOpen?(n.preventDefault(),n.stopPropagation(),e.$apply((function(){e.isOpen=!1})),t[0].focus()):40!==n.which||e.isOpen||(n.preventDefault(),n.stopPropagation(),e.$apply((function(){e.isOpen=!0})))}var v,y,b,$,w,x,S,E,A,C,T={},F=!1;e.watchData={},this.init=function(s){if(A=s,y=angular.isDefined(n.closeOnDateSelection)?e.$parent.$eval(n.closeOnDateSelection):c.closeOnDateSelection,b=angular.isDefined(n.datepickerAppendToBody)?e.$parent.$eval(n.datepickerAppendToBody):c.appendToBody,$=angular.isDefined(n.onOpenFocus)?e.$parent.$eval(n.onOpenFocus):c.onOpenFocus,w=angular.isDefined(n.datepickerPopupTemplateUrl)?n.datepickerPopupTemplateUrl:c.datepickerPopupTemplateUrl,x=angular.isDefined(n.datepickerTemplateUrl)?n.datepickerTemplateUrl:c.datepickerTemplateUrl,e.showButtonBar=angular.isDefined(n.showButtonBar)?e.$parent.$eval(n.showButtonBar):c.showButtonBar,c.html5Types[n.type]?(v=c.html5Types[n.type],F=!0):(v=n.datepickerPopup||n.uibDatepickerPopup||c.datepickerPopup,n.$observe("uibDatepickerPopup",(function(e,t){var n=e||c.datepickerPopup;if(n!==v&&(v=n,A.$modelValue=null,!v))throw new Error("uibDatepickerPopup must have a date format specified.")}))),!v)throw new Error("uibDatepickerPopup must have a date format specified.");if(F&&n.datepickerPopup)throw new Error("HTML5 date input types do not support custom formats.");if((S=angular.element("<div uib-datepicker-popup-wrap><div uib-datepicker></div></div>")).attr({"ng-model":"date","ng-change":"dateSelection(date)","template-url":w}),(E=angular.element(S.children()[0])).attr("template-url",x),F&&"month"===n.type&&(E.attr("datepicker-mode",'"month"'),E.attr("min-mode","month")),n.datepickerOptions){var h=e.$parent.$eval(n.datepickerOptions);h&&h.initDate&&(e.initDate=h.initDate,E.attr("init-date","initDate"),delete h.initDate),angular.forEach(h,(function(e,t){E.attr(p(t),e)}))}angular.forEach(["minMode","maxMode","minDate","maxDate","datepickerMode","initDate","shortcutPropagation"],(function(t){if(n[t]){var r=i(n[t]);if(e.$parent.$watch(r,(function(n){e.watchData[t]=n,("minDate"===t||"maxDate"===t)&&(T[t]=new Date(n))})),E.attr(p(t),"watchData."+t),"datepickerMode"===t){var o=r.assign;e.$watch("watchData."+t,(function(t,n){angular.isFunction(o)&&t!==n&&o(e.$parent,t)}))}}})),n.dateDisabled&&E.attr("date-disabled","dateDisabled({ date: date, mode: mode })"),n.showWeeks&&E.attr("show-weeks",n.showWeeks),n.customClass&&E.attr("custom-class","customClass({ date: date, mode: mode })"),F?A.$formatters.push((function(t){return e.date=t,t})):(A.$$parserName="date",A.$validators.date=d,A.$parsers.unshift(f),A.$formatters.push((function(t){return e.date=t,A.$isEmpty(t)?t:u(t,v)}))),A.$viewChangeListeners.push((function(){e.date=l.parse(A.$viewValue,v,e.date)})),t.bind("keydown",m),C=r(S)(e),S.remove(),b?o.find("body").append(C):t.after(C),e.$on("$destroy",(function(){!0===e.isOpen&&(a.$$phase||e.$apply((function(){e.isOpen=!1}))),C.remove(),t.unbind("keydown",m),o.unbind("click",g)}))},e.getText=function(t){return e[t+"Text"]||c[t+"Text"]},e.isDisabled=function(t){return"today"===t&&(t=new Date),e.watchData.minDate&&e.compare(t,T.minDate)<0||e.watchData.maxDate&&e.compare(t,T.maxDate)>0},e.compare=function(e,t){return new Date(e.getFullYear(),e.getMonth(),e.getDate())-new Date(t.getFullYear(),t.getMonth(),t.getDate())},e.dateSelection=function(n){angular.isDefined(n)&&(e.date=n);var r=e.date?u(e.date,v):null;t.val(r),A.$setViewValue(r),y&&(e.isOpen=!1,t[0].focus())},e.keydown=function(n){27===n.which&&(e.isOpen=!1,t[0].focus())},e.select=function(t){if("today"===t){var n=new Date;angular.isDate(e.date)?(t=new Date(e.date)).setFullYear(n.getFullYear(),n.getMonth(),n.getDate()):t=new Date(n.setHours(0,0,0,0))}e.dateSelection(t)},e.close=function(){e.isOpen=!1,t[0].focus()},e.$watch("isOpen",(function(n){n?(e.position=b?s.offset(t):s.position(t),e.position.top=e.position.top+t.prop("offsetHeight"),h((function(){$&&e.$broadcast("uib:datepicker.focus"),o.bind("click",g)}),0,!1)):o.unbind("click",g)}))}]).directive("uibDatepickerPopup",(function(){return{require:["ngModel","uibDatepickerPopup"],controller:"UibDatepickerPopupController",scope:{isOpen:"=?",currentText:"@",clearText:"@",closeText:"@",dateDisabled:"&",customClass:"&"},link:function(e,t,n,r){var i=r[0];r[1].init(i)}}})).directive("uibDatepickerPopupWrap",(function(){return{replace:!0,transclude:!0,templateUrl:function(e,t){return t.templateUrl||"template/datepicker/popup.html"}}})),angular.module("ui.bootstrap.datepicker").value("$datepickerSuppressWarning",!1).controller("DatepickerController",["$scope","$attrs","$parse","$interpolate","$log","dateFilter","uibDatepickerConfig","$datepickerSuppressError","$datepickerSuppressWarning",function(e,t,n,r,i,o,a,s,u){u||i.warn("DatepickerController is now deprecated. Use UibDatepickerController instead.");var l=this,c={$setViewValue:angular.noop};this.modes=["day","month","year"],angular.forEach(["formatDay","formatMonth","formatYear","formatDayHeader","formatDayTitle","formatMonthTitle","showWeeks","startingDay","yearRange","shortcutPropagation"],(function(n,i){l[n]=angular.isDefined(t[n])?6>i?r(t[n])(e.$parent):e.$parent.$eval(t[n]):a[n]})),angular.forEach(["minDate","maxDate"],(function(r){t[r]?e.$parent.$watch(n(t[r]),(function(e){l[r]=e?new Date(e):null,l.refreshView()})):l[r]=a[r]?new Date(a[r]):null})),angular.forEach(["minMode","maxMode"],(function(r){t[r]?e.$parent.$watch(n(t[r]),(function(n){l[r]=angular.isDefined(n)?n:t[r],e[r]=l[r],("minMode"==r&&l.modes.indexOf(e.datepickerMode)<l.modes.indexOf(l[r])||"maxMode"==r&&l.modes.indexOf(e.datepickerMode)>l.modes.indexOf(l[r]))&&(e.datepickerMode=l[r])})):(l[r]=a[r]||null,e[r]=l[r])})),e.datepickerMode=e.datepickerMode||a.datepickerMode,e.uniqueId="datepicker-"+e.$id+"-"+Math.floor(1e4*Math.random()),angular.isDefined(t.initDate)?(this.activeDate=e.$parent.$eval(t.initDate)||new Date,e.$parent.$watch(t.initDate,(function(e){e&&(c.$isEmpty(c.$modelValue)||c.$invalid)&&(l.activeDate=e,l.refreshView())}))):this.activeDate=new Date,e.isActive=function(t){return 0===l.compare(t.date,l.activeDate)&&(e.activeDateId=t.uid,!0)},this.init=function(e){(c=e).$render=function(){l.render()}},this.render=function(){if(c.$viewValue){var e=new Date(c.$viewValue);!isNaN(e)?this.activeDate=e:s||i.error('Datepicker directive: "ng-model" value must be a Date object, a number of milliseconds since 01.01.1970 or a string representing an RFC2822 or ISO 8601 date.')}this.refreshView()},this.refreshView=function(){if(this.element){this._refreshView();var e=c.$viewValue?new Date(c.$viewValue):null;c.$setValidity("dateDisabled",!e||this.element&&!this.isDisabled(e))}},this.createDateObject=function(e,t){var n=c.$viewValue?new Date(c.$viewValue):null;return{date:e,label:o(e,t),selected:n&&0===this.compare(e,n),disabled:this.isDisabled(e),current:0===this.compare(e,new Date),customClass:this.customClass(e)}},this.isDisabled=function(n){return this.minDate&&this.compare(n,this.minDate)<0||this.maxDate&&this.compare(n,this.maxDate)>0||t.dateDisabled&&e.dateDisabled({date:n,mode:e.datepickerMode})},this.customClass=function(t){return e.customClass({date:t,mode:e.datepickerMode})},this.split=function(e,t){for(var n=[];e.length>0;)n.push(e.splice(0,t));return n},this.fixTimeZone=function(e){var t=e.getHours();e.setHours(23===t?t+2:0)},e.select=function(t){if(e.datepickerMode===l.minMode){var n=c.$viewValue?new Date(c.$viewValue):new Date(0,0,0,0,0,0,0);n.setFullYear(t.getFullYear(),t.getMonth(),t.getDate()),c.$setViewValue(n),c.$render()}else l.activeDate=t,e.datepickerMode=l.modes[l.modes.indexOf(e.datepickerMode)-1]},e.move=function(e){var t=l.activeDate.getFullYear()+e*(l.step.years||0),n=l.activeDate.getMonth()+e*(l.step.months||0);l.activeDate.setFullYear(t,n,1),l.refreshView()},e.toggleMode=function(t){t=t||1,e.datepickerMode===l.maxMode&&1===t||e.datepickerMode===l.minMode&&-1===t||(e.datepickerMode=l.modes[l.modes.indexOf(e.datepickerMode)+t])},e.keys={13:"enter",32:"space",33:"pageup",34:"pagedown",35:"end",36:"home",37:"left",38:"up",39:"right",40:"down"};e.$on("uib:datepicker.focus",(function(){l.element[0].focus()})),e.keydown=function(t){var n=e.keys[t.which];if(n&&!t.shiftKey&&!t.altKey)if(t.preventDefault(),l.shortcutPropagation||t.stopPropagation(),"enter"===n||"space"===n){if(l.isDisabled(l.activeDate))return;e.select(l.activeDate)}else!t.ctrlKey||"up"!==n&&"down"!==n?(l.handleKeyDown(n,t),l.refreshView()):e.toggleMode("up"===n?1:-1)}}]).directive("datepicker",["$log","$datepickerSuppressWarning",function(e,t){return{replace:!0,templateUrl:function(e,t){return t.templateUrl||"template/datepicker/datepicker.html"},scope:{datepickerMode:"=?",dateDisabled:"&",customClass:"&",shortcutPropagation:"&?"},require:["datepicker","^ngModel"],controller:"DatepickerController",controllerAs:"datepicker",link:function(n,r,i,o){t||e.warn("datepicker is now deprecated. Use uib-datepicker instead.");var a=o[0],s=o[1];a.init(s)}}}]).directive("daypicker",["$log","$datepickerSuppressWarning",function(e,t){return{replace:!0,templateUrl:"template/datepicker/day.html",require:["^datepicker","daypicker"],controller:"UibDaypickerController",link:function(n,r,i,o){t||e.warn("daypicker is now deprecated. Use uib-daypicker instead.");var a=o[0];o[1].init(a)}}}]).directive("monthpicker",["$log","$datepickerSuppressWarning",function(e,t){return{replace:!0,templateUrl:"template/datepicker/month.html",require:["^datepicker","monthpicker"],controller:"UibMonthpickerController",link:function(n,r,i,o){t||e.warn("monthpicker is now deprecated. Use uib-monthpicker instead.");var a=o[0];o[1].init(a)}}}]).directive("yearpicker",["$log","$datepickerSuppressWarning",function(e,t){return{replace:!0,templateUrl:"template/datepicker/year.html",require:["^datepicker","yearpicker"],controller:"UibYearpickerController",link:function(n,r,i,o){t||e.warn("yearpicker is now deprecated. Use uib-yearpicker instead.");var a=o[0];angular.extend(a,o[1]),a.yearpickerInit(),a.refreshView()}}}]).directive("datepickerPopup",["$log","$datepickerSuppressWarning",function(e,t){return{require:["ngModel","datepickerPopup"],controller:"UibDatepickerPopupController",scope:{isOpen:"=?",currentText:"@",clearText:"@",closeText:"@",dateDisabled:"&",customClass:"&"},link:function(n,r,i,o){t||e.warn("datepicker-popup is now deprecated. Use uib-datepicker-popup instead.");var a=o[0];o[1].init(a)}}}]).directive("datepickerPopupWrap",["$log","$datepickerSuppressWarning",function(e,t){return{replace:!0,transclude:!0,templateUrl:function(e,t){return t.templateUrl||"template/datepicker/popup.html"},link:function(){t||e.warn("datepicker-popup-wrap is now deprecated. Use uib-datepicker-popup-wrap instead.")}}}]),angular.module("ui.bootstrap.dropdown",["ui.bootstrap.position"]).constant("uibDropdownConfig",{openClass:"open"}).service("uibDropdownService",["$document","$rootScope",function(e,t){var n=null;this.open=function(t){n||(e.bind("click",r),e.bind("keydown",i)),n&&n!==t&&(n.isOpen=!1),n=t},this.close=function(t){n===t&&(n=null,e.unbind("click",r),e.unbind("keydown",i))};var r=function(e){if(n&&(!e||"disabled"!==n.getAutoClose())){var r=n.getToggleElement();if(!(e&&r&&r[0].contains(e.target))){var i=n.getDropdownElement();e&&"outsideClick"===n.getAutoClose()&&i&&i[0].contains(e.target)||(n.isOpen=!1,t.$$phase||n.$apply())}}},i=function(e){27===e.which?(n.focusToggleElement(),r()):n.isKeynavEnabled()&&/(38|40)/.test(e.which)&&n.isOpen&&(e.preventDefault(),e.stopPropagation(),n.focusDropdownEntry(e.which))}}]).controller("UibDropdownController",["$scope","$element","$attrs","$parse","uibDropdownConfig","uibDropdownService","$animate","$uibPosition","$document","$compile","$templateRequest",function(e,t,n,r,i,o,a,s,u,l,c){var h,p,f=this,d=e.$new(),g=i.openClass,m=angular.noop,v=n.onToggle?r(n.onToggle):angular.noop,y=!1,b=!1;t.addClass("dropdown"),this.init=function(){n.isOpen&&(p=r(n.isOpen),m=p.assign,e.$watch(p,(function(e){d.isOpen=!!e}))),y=angular.isDefined(n.dropdownAppendToBody),b=angular.isDefined(n.uibKeyboardNav),y&&f.dropdownMenu&&(u.find("body").append(f.dropdownMenu),t.on("$destroy",(function(){f.dropdownMenu.remove()})))},this.toggle=function(e){return d.isOpen=arguments.length?!!e:!d.isOpen},this.isOpen=function(){return d.isOpen},d.getToggleElement=function(){return f.toggleElement},d.getAutoClose=function(){return n.autoClose||"always"},d.getElement=function(){return t},d.isKeynavEnabled=function(){return b},d.focusDropdownEntry=function(e){var n=f.dropdownMenu?angular.element(f.dropdownMenu).find("a"):angular.element(t).find("ul").eq(0).find("a");switch(e){case 40:angular.isNumber(f.selectedOption)?f.selectedOption=f.selectedOption===n.length-1?f.selectedOption:f.selectedOption+1:f.selectedOption=0;break;case 38:angular.isNumber(f.selectedOption)?f.selectedOption=0===f.selectedOption?0:f.selectedOption-1:f.selectedOption=n.length-1}n[f.selectedOption].focus()},d.getDropdownElement=function(){return f.dropdownMenu},d.focusToggleElement=function(){f.toggleElement&&f.toggleElement[0].focus()},d.$watch("isOpen",(function(n,r){if(y&&f.dropdownMenu){var i=s.positionElements(t,f.dropdownMenu,"bottom-left",!0),u={top:i.top+"px",display:n?"block":"none"};f.dropdownMenu.hasClass("dropdown-menu-right")?(u.left="auto",u.right=window.innerWidth-(i.left+t.prop("offsetWidth"))+"px"):(u.left=i.left+"px",u.right="auto"),f.dropdownMenu.css(u)}if(a[n?"addClass":"removeClass"](t,g).then((function(){angular.isDefined(n)&&n!==r&&v(e,{open:!!n})})),n)f.dropdownMenuTemplateUrl&&c(f.dropdownMenuTemplateUrl).then((function(e){h=d.$new(),l(e.trim())(h,(function(e){var t=e;f.dropdownMenu.replaceWith(t),f.dropdownMenu=t}))})),d.focusToggleElement(),o.open(d);else{if(f.dropdownMenuTemplateUrl){h&&h.$destroy();var p=angular.element('<ul class="dropdown-menu"></ul>');f.dropdownMenu.replaceWith(p),f.dropdownMenu=p}o.close(d),f.selectedOption=null}angular.isFunction(m)&&m(e,n)})),e.$on("$locationChangeSuccess",(function(){"disabled"!==d.getAutoClose()&&(d.isOpen=!1)}));var $=e.$on("$destroy",(function(){d.$destroy()}));d.$on("$destroy",$)}]).directive("uibDropdown",(function(){return{controller:"UibDropdownController",link:function(e,t,n,r){r.init()}}})).directive("uibDropdownMenu",(function(){return{restrict:"AC",require:"?^uibDropdown",link:function(e,t,n,r){if(r&&!angular.isDefined(n.dropdownNested)){t.addClass("dropdown-menu");var i=n.templateUrl;i&&(r.dropdownMenuTemplateUrl=i),r.dropdownMenu||(r.dropdownMenu=t)}}}})).directive("uibKeyboardNav",(function(){return{restrict:"A",require:"?^uibDropdown",link:function(e,t,n,r){t.bind("keydown",(function(e){if(-1!==[38,40].indexOf(e.which)){e.preventDefault(),e.stopPropagation();var t=r.dropdownMenu.find("a");switch(e.which){case 40:angular.isNumber(r.selectedOption)?r.selectedOption=r.selectedOption===t.length-1?r.selectedOption:r.selectedOption+1:r.selectedOption=0;break;case 38:angular.isNumber(r.selectedOption)?r.selectedOption=0===r.selectedOption?0:r.selectedOption-1:r.selectedOption=t.length-1}t[r.selectedOption].focus()}}))}}})).directive("uibDropdownToggle",(function(){return{require:"?^uibDropdown",link:function(e,t,n,r){if(r){t.addClass("dropdown-toggle"),r.toggleElement=t;var i=function(i){i.preventDefault(),t.hasClass("disabled")||n.disabled||e.$apply((function(){r.toggle()}))};t.bind("click",i),t.attr({"aria-haspopup":!0,"aria-expanded":!1}),e.$watch(r.isOpen,(function(e){t.attr("aria-expanded",!!e)})),e.$on("$destroy",(function(){t.unbind("click",i)}))}}}})),angular.module("ui.bootstrap.dropdown").value("$dropdownSuppressWarning",!1).service("dropdownService",["$log","$dropdownSuppressWarning","uibDropdownService",function(e,t,n){t||e.warn("dropdownService is now deprecated. Use uibDropdownService instead."),angular.extend(this,n)}]).controller("DropdownController",["$scope","$element","$attrs","$parse","uibDropdownConfig","uibDropdownService","$animate","$uibPosition","$document","$compile","$templateRequest","$log","$dropdownSuppressWarning",function(e,t,n,r,i,o,a,s,u,l,c,h,p){p||h.warn("DropdownController is now deprecated. Use UibDropdownController instead.");var f,d,g=this,m=e.$new(),v=i.openClass,y=angular.noop,b=n.onToggle?r(n.onToggle):angular.noop,$=!1,w=!1;t.addClass("dropdown"),this.init=function(){n.isOpen&&(d=r(n.isOpen),y=d.assign,e.$watch(d,(function(e){m.isOpen=!!e}))),$=angular.isDefined(n.dropdownAppendToBody),w=angular.isDefined(n.uibKeyboardNav),$&&g.dropdownMenu&&(u.find("body").append(g.dropdownMenu),t.on("$destroy",(function(){g.dropdownMenu.remove()})))},this.toggle=function(e){return m.isOpen=arguments.length?!!e:!m.isOpen},this.isOpen=function(){return m.isOpen},m.getToggleElement=function(){return g.toggleElement},m.getAutoClose=function(){return n.autoClose||"always"},m.getElement=function(){return t},m.isKeynavEnabled=function(){return w},m.focusDropdownEntry=function(e){var n=g.dropdownMenu?angular.element(g.dropdownMenu).find("a"):angular.element(t).find("ul").eq(0).find("a");switch(e){case 40:angular.isNumber(g.selectedOption)?g.selectedOption=g.selectedOption===n.length-1?g.selectedOption:g.selectedOption+1:g.selectedOption=0;break;case 38:angular.isNumber(g.selectedOption)?g.selectedOption=0===g.selectedOption?0:g.selectedOption-1:g.selectedOption=n.length-1}n[g.selectedOption].focus()},m.getDropdownElement=function(){return g.dropdownMenu},m.focusToggleElement=function(){g.toggleElement&&g.toggleElement[0].focus()},m.$watch("isOpen",(function(n,r){if($&&g.dropdownMenu){var i=s.positionElements(t,g.dropdownMenu,"bottom-left",!0),u={top:i.top+"px",display:n?"block":"none"};g.dropdownMenu.hasClass("dropdown-menu-right")?(u.left="auto",u.right=window.innerWidth-(i.left+t.prop("offsetWidth"))+"px"):(u.left=i.left+"px",u.right="auto"),g.dropdownMenu.css(u)}if(a[n?"addClass":"removeClass"](t,v).then((function(){angular.isDefined(n)&&n!==r&&b(e,{open:!!n})})),n)g.dropdownMenuTemplateUrl&&c(g.dropdownMenuTemplateUrl).then((function(e){f=m.$new(),l(e.trim())(f,(function(e){var t=e;g.dropdownMenu.replaceWith(t),g.dropdownMenu=t}))})),m.focusToggleElement(),o.open(m);else{if(g.dropdownMenuTemplateUrl){f&&f.$destroy();var h=angular.element('<ul class="dropdown-menu"></ul>');g.dropdownMenu.replaceWith(h),g.dropdownMenu=h}o.close(m),g.selectedOption=null}angular.isFunction(y)&&y(e,n)})),e.$on("$locationChangeSuccess",(function(){"disabled"!==m.getAutoClose()&&(m.isOpen=!1)}));var x=e.$on("$destroy",(function(){m.$destroy()}));m.$on("$destroy",x)}]).directive("dropdown",["$log","$dropdownSuppressWarning",function(e,t){return{controller:"DropdownController",link:function(n,r,i,o){t||e.warn("dropdown is now deprecated. Use uib-dropdown instead."),o.init()}}}]).directive("dropdownMenu",["$log","$dropdownSuppressWarning",function(e,t){return{restrict:"AC",require:"?^dropdown",link:function(n,r,i,o){if(o&&!angular.isDefined(i.dropdownNested)){t||e.warn("dropdown-menu is now deprecated. Use uib-dropdown-menu instead."),r.addClass("dropdown-menu");var a=i.templateUrl;a&&(o.dropdownMenuTemplateUrl=a),o.dropdownMenu||(o.dropdownMenu=r)}}}}]).directive("keyboardNav",["$log","$dropdownSuppressWarning",function(e,t){return{restrict:"A",require:"?^dropdown",link:function(n,r,i,o){t||e.warn("keyboard-nav is now deprecated. Use uib-keyboard-nav instead."),r.bind("keydown",(function(e){if(-1!==[38,40].indexOf(e.which)){e.preventDefault(),e.stopPropagation();var t=o.dropdownMenu.find("a");switch(e.which){case 40:angular.isNumber(o.selectedOption)?o.selectedOption=o.selectedOption===t.length-1?o.selectedOption:o.selectedOption+1:o.selectedOption=0;break;case 38:angular.isNumber(o.selectedOption)?o.selectedOption=0===o.selectedOption?0:o.selectedOption-1:o.selectedOption=t.length-1}t[o.selectedOption].focus()}}))}}}]).directive("dropdownToggle",["$log","$dropdownSuppressWarning",function(e,t){return{require:"?^dropdown",link:function(n,r,i,o){if(t||e.warn("dropdown-toggle is now deprecated. Use uib-dropdown-toggle instead."),o){r.addClass("dropdown-toggle"),o.toggleElement=r;var a=function(e){e.preventDefault(),r.hasClass("disabled")||i.disabled||n.$apply((function(){o.toggle()}))};r.bind("click",a),r.attr({"aria-haspopup":!0,"aria-expanded":!1}),n.$watch(o.isOpen,(function(e){r.attr("aria-expanded",!!e)})),n.$on("$destroy",(function(){r.unbind("click",a)}))}}}}]),angular.module("ui.bootstrap.stackedMap",[]).factory("$$stackedMap",(function(){return{createNew:function(){var e=[];return{add:function(t,n){e.push({key:t,value:n})},get:function(t){for(var n=0;n<e.length;n++)if(t==e[n].key)return e[n]},keys:function(){for(var t=[],n=0;n<e.length;n++)t.push(e[n].key);return t},top:function(){return e[e.length-1]},remove:function(t){for(var n=-1,r=0;r<e.length;r++)if(t==e[r].key){n=r;break}return e.splice(n,1)[0]},removeTop:function(){return e.splice(e.length-1,1)[0]},length:function(){return e.length}}}}})),angular.module("ui.bootstrap.modal",["ui.bootstrap.stackedMap"]).factory("$$multiMap",(function(){return{createNew:function(){var e={};return{entries:function(){return Object.keys(e).map((function(t){return{key:t,value:e[t]}}))},get:function(t){return e[t]},hasKey:function(t){return!!e[t]},keys:function(){return Object.keys(e)},put:function(t,n){e[t]||(e[t]=[]),e[t].push(n)},remove:function(t,n){var r=e[t];if(r){var i=r.indexOf(n);-1!==i&&r.splice(i,1),r.length||delete e[t]}}}}}})).directive("uibModalBackdrop",["$animate","$injector","$uibModalStack",function(e,t,n){function r(t,r,o){r.addClass("modal-backdrop"),o.modalInClass&&(i?i(r,{addClass:o.modalInClass}).start():e.addClass(r,o.modalInClass),t.$on(n.NOW_CLOSING_EVENT,(function(t,n){var a=n();i?i(r,{removeClass:o.modalInClass}).start().then(a):e.removeClass(r,o.modalInClass).then(a)})))}var i=null;return t.has("$animateCss")&&(i=t.get("$animateCss")),{replace:!0,templateUrl:"template/modal/backdrop.html",compile:function(e,t){return e.addClass(t.backdropClass),r}}}]).directive("uibModalWindow",["$uibModalStack","$q","$animate","$injector",function(e,t,n,r){var i=null;return r.has("$animateCss")&&(i=r.get("$animateCss")),{scope:{index:"@"},replace:!0,transclude:!0,templateUrl:function(e,t){return t.templateUrl||"template/modal/window.html"},link:function(r,o,a){o.addClass(a.windowClass||""),o.addClass(a.windowTopClass||""),r.size=a.size,r.close=function(t){var n=e.getTop();n&&n.value.backdrop&&"static"!==n.value.backdrop&&t.target===t.currentTarget&&(t.preventDefault(),t.stopPropagation(),e.dismiss(n.key,"backdrop click"))},o.on("click",r.close),r.$isRendered=!0;var s=t.defer();a.$observe("modalRender",(function(e){"true"==e&&s.resolve()})),s.promise.then((function(){var s=null;a.modalInClass&&(s=i?i(o,{addClass:a.modalInClass}).start():n.addClass(o,a.modalInClass),r.$on(e.NOW_CLOSING_EVENT,(function(e,t){var r=t();i?i(o,{removeClass:a.modalInClass}).start().then(r):n.removeClass(o,a.modalInClass).then(r)}))),t.when(s).then((function(){var e=o[0].querySelector("[autofocus]");e?e.focus():o[0].focus()}));var u=e.getTop();u&&e.modalRendered(u.key)}))}}}]).directive("uibModalAnimationClass",(function(){return{compile:function(e,t){t.modalAnimation&&e.addClass(t.uibModalAnimationClass)}}})).directive("uibModalTransclude",(function(){return{link:function(e,t,n,r,i){i(e.$parent,(function(e){t.empty(),t.append(e)}))}}})).factory("$uibModalStack",["$animate","$timeout","$document","$compile","$rootScope","$q","$injector","$$multiMap","$$stackedMap",function(e,t,n,r,i,o,a,s,u){function l(){for(var e=-1,t=b.keys(),n=0;n<t.length;n++)b.get(t[n]).value.backdrop&&(e=n);return e}function c(e,t){var r=n.find("body").eq(0),i=b.get(e).value;b.remove(e),p(i.modalDomEl,i.modalScope,(function(){var t=i.openedClass||y;$.remove(t,e),r.toggleClass(t,$.hasKey(t)),h(!0)})),function(){if(g&&-1==l()){p(g,m,(function(){null})),g=void 0,m=void 0}}(),t&&t.focus?t.focus():r.focus()}function h(e){var t;b.length()>0&&(t=b.top().value).modalDomEl.toggleClass(t.windowTopClass||"",e)}function p(t,n,r){var i,a=null;return n.$broadcast(w.NOW_CLOSING_EVENT,(function(){return i||(i=o.defer(),a=i.promise),function(){i.resolve()}})),o.when(a).then((function i(){i.done||(i.done=!0,d?d(t,{event:"leave"}).start().then((function(){t.remove()})):e.leave(t),n.$destroy(),r&&r())}))}function f(e,t,n){return!e.value.modalScope.$broadcast("modal.closing",t,n).defaultPrevented}var d=null;a.has("$animateCss")&&(d=a.get("$animateCss"));var g,m,v,y="modal-open",b=u.createNew(),$=s.createNew(),w={NOW_CLOSING_EVENT:"modal.stack.now-closing"};return i.$watch(l,(function(e){m&&(m.index=e)})),n.bind("keydown",(function(e){if(e.isDefaultPrevented())return e;var t=b.top();if(t&&t.value.keyboard)switch(e.which){case 27:e.preventDefault(),i.$apply((function(){w.dismiss(t.key,"escape key press")}));break;case 9:w.loadFocusElementList(t);var n=!1;e.shiftKey?w.isFocusInFirstItem(e)&&(n=w.focusLastFocusableElement()):w.isFocusInLastItem(e)&&(n=w.focusFirstFocusableElement()),n&&(e.preventDefault(),e.stopPropagation())}})),w.open=function(e,t){var o=n[0].activeElement,a=t.openedClass||y;h(!1),b.add(e,{deferred:t.deferred,renderDeferred:t.renderDeferred,modalScope:t.scope,backdrop:t.backdrop,keyboard:t.keyboard,openedClass:t.openedClass,windowTopClass:t.windowTopClass}),$.put(a,e);var s=n.find("body").eq(0),u=l();if(u>=0&&!g){(m=i.$new(!0)).index=u;var c=angular.element('<div uib-modal-backdrop="modal-backdrop"></div>');c.attr("backdrop-class",t.backdropClass),t.animation&&c.attr("modal-animation","true"),g=r(c)(m),s.append(g)}var p=angular.element('<div uib-modal-window="modal-window"></div>');p.attr({"template-url":t.windowTemplateUrl,"window-class":t.windowClass,"window-top-class":t.windowTopClass,size:t.size,index:b.length()-1,animate:"animate"}).html(t.content),t.animation&&p.attr("modal-animation","true");var f=r(p)(t.scope);b.top().value.modalDomEl=f,b.top().value.modalOpener=o,s.append(f),s.addClass(a),w.clearFocusListCache()},w.close=function(e,t){var n=b.get(e);return n&&f(n,t,!0)?(n.value.modalScope.$$uibDestructionScheduled=!0,n.value.deferred.resolve(t),c(e,n.value.modalOpener),!0):!n},w.dismiss=function(e,t){var n=b.get(e);return n&&f(n,t,!1)?(n.value.modalScope.$$uibDestructionScheduled=!0,n.value.deferred.reject(t),c(e,n.value.modalOpener),!0):!n},w.dismissAll=function(e){for(var t=this.getTop();t&&this.dismiss(t.key,e);)t=this.getTop()},w.getTop=function(){return b.top()},w.modalRendered=function(e){var t=b.get(e);t&&t.value.renderDeferred.resolve()},w.focusFirstFocusableElement=function(){return v.length>0&&(v[0].focus(),!0)},w.focusLastFocusableElement=function(){return v.length>0&&(v[v.length-1].focus(),!0)},w.isFocusInFirstItem=function(e){return v.length>0&&(e.target||e.srcElement)==v[0]},w.isFocusInLastItem=function(e){return v.length>0&&(e.target||e.srcElement)==v[v.length-1]},w.clearFocusListCache=function(){v=[],0},w.loadFocusElementList=function(e){if((void 0===v||!v.length)&&e){var t=e.value.modalDomEl;t&&t.length&&(v=t[0].querySelectorAll("a[href], area[href], input:not([disabled]), button:not([disabled]),select:not([disabled]), textarea:not([disabled]), iframe, object, embed, *[tabindex], *[contenteditable=true]"))}},w}]).provider("$uibModal",(function(){var e={options:{animation:!0,backdrop:!0,keyboard:!0},$get:["$injector","$rootScope","$q","$templateRequest","$controller","$uibModalStack","$modalSuppressWarning","$log",function(t,n,r,i,o,a,s,u){function l(e){return e.template?r.when(e.template):i(angular.isFunction(e.templateUrl)?e.templateUrl():e.templateUrl)}function c(e){var n=[];return angular.forEach(e,(function(e){angular.isFunction(e)||angular.isArray(e)?n.push(r.when(t.invoke(e))):angular.isString(e)?n.push(r.when(t.get(e))):n.push(r.when(e))})),n}var h={},p=null;return h.getPromiseChain=function(){return p},h.open=function(t){function i(){return v}var h=r.defer(),f=r.defer(),d=r.defer(),g={result:h.promise,opened:f.promise,rendered:d.promise,close:function(e){return a.close(g,e)},dismiss:function(e){return a.dismiss(g,e)}};if((t=angular.extend({},e.options,t)).resolve=t.resolve||{},!t.template&&!t.templateUrl)throw new Error("One of template or templateUrl options is required.");var m,v=r.all([l(t)].concat(c(t.resolve)));return m=p=r.all([p]).then(i,i).then((function(e){var r=(t.scope||n).$new();r.$close=g.close,r.$dismiss=g.dismiss,r.$on("$destroy",(function(){r.$$uibDestructionScheduled||r.$dismiss("$uibUnscheduledDestruction")}));var i,l={},c=1;t.controller&&(l.$scope=r,l.$uibModalInstance=g,Object.defineProperty(l,"$modalInstance",{get:function(){return s||u.warn("$modalInstance is now deprecated. Use $uibModalInstance instead."),g}}),angular.forEach(t.resolve,(function(t,n){l[n]=e[c++]})),i=o(t.controller,l),t.controllerAs&&(t.bindToController&&angular.extend(i,r),r[t.controllerAs]=i)),a.open(g,{scope:r,deferred:h,renderDeferred:d,content:e[0],animation:t.animation,backdrop:t.backdrop,keyboard:t.keyboard,backdropClass:t.backdropClass,windowTopClass:t.windowTopClass,windowClass:t.windowClass,windowTemplateUrl:t.windowTemplateUrl,size:t.size,openedClass:t.openedClass}),f.resolve(!0)}),(function(e){f.reject(e),h.reject(e)})).finally((function(){p===m&&(p=null)})),g},h}]};return e})),angular.module("ui.bootstrap.modal").value("$modalSuppressWarning",!1).directive("modalBackdrop",["$animate","$injector","$modalStack","$log","$modalSuppressWarning",function(e,t,n,r,i){function o(t,o,s){i||r.warn("modal-backdrop is now deprecated. Use uib-modal-backdrop instead."),o.addClass("modal-backdrop"),s.modalInClass&&(a?a(o,{addClass:s.modalInClass}).start():e.addClass(o,s.modalInClass),t.$on(n.NOW_CLOSING_EVENT,(function(t,n){var r=n();a?a(o,{removeClass:s.modalInClass}).start().then(r):e.removeClass(o,s.modalInClass).then(r)})))}var a=null;return t.has("$animateCss")&&(a=t.get("$animateCss")),{replace:!0,templateUrl:"template/modal/backdrop.html",compile:function(e,t){return e.addClass(t.backdropClass),o}}}]).directive("modalWindow",["$modalStack","$q","$animate","$injector","$log","$modalSuppressWarning",function(e,t,n,r,i,o){var a=null;return r.has("$animateCss")&&(a=r.get("$animateCss")),{scope:{index:"@"},replace:!0,transclude:!0,templateUrl:function(e,t){return t.templateUrl||"template/modal/window.html"},link:function(r,s,u){o||i.warn("modal-window is now deprecated. Use uib-modal-window instead."),s.addClass(u.windowClass||""),s.addClass(u.windowTopClass||""),r.size=u.size,r.close=function(t){var n=e.getTop();n&&n.value.backdrop&&"static"!==n.value.backdrop&&t.target===t.currentTarget&&(t.preventDefault(),t.stopPropagation(),e.dismiss(n.key,"backdrop click"))},s.on("click",r.close),r.$isRendered=!0;var l=t.defer();u.$observe("modalRender",(function(e){"true"==e&&l.resolve()})),l.promise.then((function(){var i=null;u.modalInClass&&(i=a?a(s,{addClass:u.modalInClass}).start():n.addClass(s,u.modalInClass),r.$on(e.NOW_CLOSING_EVENT,(function(e,t){var r=t();a?a(s,{removeClass:u.modalInClass}).start().then(r):n.removeClass(s,u.modalInClass).then(r)}))),t.when(i).then((function(){var e=s[0].querySelector("[autofocus]");e?e.focus():s[0].focus()}));var o=e.getTop();o&&e.modalRendered(o.key)}))}}}]).directive("modalAnimationClass",["$log","$modalSuppressWarning",function(e,t){return{compile:function(n,r){t||e.warn("modal-animation-class is now deprecated. Use uib-modal-animation-class instead."),r.modalAnimation&&n.addClass(r.modalAnimationClass)}}}]).directive("modalTransclude",["$log","$modalSuppressWarning",function(e,t){return{link:function(n,r,i,o,a){t||e.warn("modal-transclude is now deprecated. Use uib-modal-transclude instead."),a(n.$parent,(function(e){r.empty(),r.append(e)}))}}}]).service("$modalStack",["$animate","$timeout","$document","$compile","$rootScope","$q","$injector","$$multiMap","$$stackedMap","$uibModalStack","$log","$modalSuppressWarning",function(e,t,n,r,i,o,a,s,u,l,c,h){h||c.warn("$modalStack is now deprecated. Use $uibModalStack instead."),angular.extend(this,l)}]).provider("$modal",["$uibModalProvider",function(e){angular.extend(this,e),this.$get=["$injector","$log","$modalSuppressWarning",function(t,n,r){return r||n.warn("$modal is now deprecated. Use $uibModal instead."),t.invoke(e.$get)}]}]),angular.module("ui.bootstrap.pagination",[]).controller("UibPaginationController",["$scope","$attrs","$parse",function(e,t,n){var r=this,i={$setViewValue:angular.noop},o=t.numPages?n(t.numPages).assign:angular.noop;this.init=function(a,s){i=a,this.config=s,i.$render=function(){r.render()},t.itemsPerPage?e.$parent.$watch(n(t.itemsPerPage),(function(t){r.itemsPerPage=parseInt(t,10),e.totalPages=r.calculateTotalPages()})):this.itemsPerPage=s.itemsPerPage,e.$watch("totalItems",(function(){e.totalPages=r.calculateTotalPages()})),e.$watch("totalPages",(function(t){o(e.$parent,t),e.page>t?e.selectPage(t):i.$render()}))},this.calculateTotalPages=function(){var t=this.itemsPerPage<1?1:Math.ceil(e.totalItems/this.itemsPerPage);return Math.max(t||0,1)},this.render=function(){e.page=parseInt(i.$viewValue,10)||1},e.selectPage=function(t,n){n&&n.preventDefault(),(!e.ngDisabled||!n)&&e.page!==t&&t>0&&t<=e.totalPages&&(n&&n.target&&n.target.blur(),i.$setViewValue(t),i.$render())},e.getText=function(t){return e[t+"Text"]||r.config[t+"Text"]},e.noPrevious=function(){return 1===e.page},e.noNext=function(){return e.page===e.totalPages}}]).constant("uibPaginationConfig",{itemsPerPage:10,boundaryLinks:!1,directionLinks:!0,firstText:"First",previousText:"Previous",nextText:"Next",lastText:"Last",rotate:!0}).directive("uibPagination",["$parse","uibPaginationConfig",function(e,t){return{restrict:"EA",scope:{totalItems:"=",firstText:"@",previousText:"@",nextText:"@",lastText:"@",ngDisabled:"="},require:["uibPagination","?ngModel"],controller:"UibPaginationController",controllerAs:"pagination",templateUrl:function(e,t){return t.templateUrl||"template/pagination/pagination.html"},replace:!0,link:function(n,r,i,o){function a(e,t,n){return{number:e,text:t,active:n}}var s=o[0],u=o[1];if(u){var l=angular.isDefined(i.maxSize)?n.$parent.$eval(i.maxSize):t.maxSize,c=angular.isDefined(i.rotate)?n.$parent.$eval(i.rotate):t.rotate;n.boundaryLinks=angular.isDefined(i.boundaryLinks)?n.$parent.$eval(i.boundaryLinks):t.boundaryLinks,n.directionLinks=angular.isDefined(i.directionLinks)?n.$parent.$eval(i.directionLinks):t.directionLinks,s.init(u,t),i.maxSize&&n.$parent.$watch(e(i.maxSize),(function(e){l=parseInt(e,10),s.render()}));var h=s.render;s.render=function(){h(),n.page>0&&n.page<=n.totalPages&&(n.pages=function(e,t){var n=[],r=1,i=t,o=angular.isDefined(l)&&t>l;o&&(c?(i=(r=Math.max(e-Math.floor(l/2),1))+l-1)>t&&(r=(i=t)-l+1):(r=(Math.ceil(e/l)-1)*l+1,i=Math.min(r+l-1,t)));for(var s=r;i>=s;s++){var u=a(s,s,s===e);n.push(u)}if(o&&!c){if(r>1){var h=a(r-1,"...",!1);n.unshift(h)}if(t>i){var p=a(i+1,"...",!1);n.push(p)}}return n}(n.page,n.totalPages))}}}}}]).constant("uibPagerConfig",{itemsPerPage:10,previousText:"« Previous",nextText:"Next »",align:!0}).directive("uibPager",["uibPagerConfig",function(e){return{restrict:"EA",scope:{totalItems:"=",previousText:"@",nextText:"@",ngDisabled:"="},require:["uibPager","?ngModel"],controller:"UibPaginationController",controllerAs:"pagination",templateUrl:function(e,t){return t.templateUrl||"template/pagination/pager.html"},replace:!0,link:function(t,n,r,i){var o=i[0],a=i[1];a&&(t.align=angular.isDefined(r.align)?t.$parent.$eval(r.align):e.align,o.init(a,e))}}}]),angular.module("ui.bootstrap.pagination").value("$paginationSuppressWarning",!1).controller("PaginationController",["$scope","$attrs","$parse","$log","$paginationSuppressWarning",function(e,t,n,r,i){i||r.warn("PaginationController is now deprecated. Use UibPaginationController instead.");var o=this,a={$setViewValue:angular.noop},s=t.numPages?n(t.numPages).assign:angular.noop;this.init=function(r,i){a=r,this.config=i,a.$render=function(){o.render()},t.itemsPerPage?e.$parent.$watch(n(t.itemsPerPage),(function(t){o.itemsPerPage=parseInt(t,10),e.totalPages=o.calculateTotalPages()})):this.itemsPerPage=i.itemsPerPage,e.$watch("totalItems",(function(){e.totalPages=o.calculateTotalPages()})),e.$watch("totalPages",(function(t){s(e.$parent,t),e.page>t?e.selectPage(t):a.$render()}))},this.calculateTotalPages=function(){var t=this.itemsPerPage<1?1:Math.ceil(e.totalItems/this.itemsPerPage);return Math.max(t||0,1)},this.render=function(){e.page=parseInt(a.$viewValue,10)||1},e.selectPage=function(t,n){n&&n.preventDefault(),(!e.ngDisabled||!n)&&e.page!==t&&t>0&&t<=e.totalPages&&(n&&n.target&&n.target.blur(),a.$setViewValue(t),a.$render())},e.getText=function(t){return e[t+"Text"]||o.config[t+"Text"]},e.noPrevious=function(){return 1===e.page},e.noNext=function(){return e.page===e.totalPages}}]).directive("pagination",["$parse","uibPaginationConfig","$log","$paginationSuppressWarning",function(e,t,n,r){return{restrict:"EA",scope:{totalItems:"=",firstText:"@",previousText:"@",nextText:"@",lastText:"@",ngDisabled:"="},require:["pagination","?ngModel"],controller:"PaginationController",controllerAs:"pagination",templateUrl:function(e,t){return t.templateUrl||"template/pagination/pagination.html"},replace:!0,link:function(i,o,a,s){function u(e,t,n){return{number:e,text:t,active:n}}r||n.warn("pagination is now deprecated. Use uib-pagination instead.");var l=s[0],c=s[1];if(c){var h=angular.isDefined(a.maxSize)?i.$parent.$eval(a.maxSize):t.maxSize,p=angular.isDefined(a.rotate)?i.$parent.$eval(a.rotate):t.rotate;i.boundaryLinks=angular.isDefined(a.boundaryLinks)?i.$parent.$eval(a.boundaryLinks):t.boundaryLinks,i.directionLinks=angular.isDefined(a.directionLinks)?i.$parent.$eval(a.directionLinks):t.directionLinks,l.init(c,t),a.maxSize&&i.$parent.$watch(e(a.maxSize),(function(e){h=parseInt(e,10),l.render()}));var f=l.render;l.render=function(){f(),i.page>0&&i.page<=i.totalPages&&(i.pages=function(e,t){var n=[],r=1,i=t,o=angular.isDefined(h)&&t>h;o&&(p?(i=(r=Math.max(e-Math.floor(h/2),1))+h-1)>t&&(r=(i=t)-h+1):(r=(Math.ceil(e/h)-1)*h+1,i=Math.min(r+h-1,t)));for(var a=r;i>=a;a++){var s=u(a,a,a===e);n.push(s)}if(o&&!p){if(r>1){var l=u(r-1,"...",!1);n.unshift(l)}if(t>i){var c=u(i+1,"...",!1);n.push(c)}}return n}(i.page,i.totalPages))}}}}}]).directive("pager",["uibPagerConfig","$log","$paginationSuppressWarning",function(e,t,n){return{restrict:"EA",scope:{totalItems:"=",previousText:"@",nextText:"@",ngDisabled:"="},require:["pager","?ngModel"],controller:"PaginationController",controllerAs:"pagination",templateUrl:function(e,t){return t.templateUrl||"template/pagination/pager.html"},replace:!0,link:function(r,i,o,a){n||t.warn("pager is now deprecated. Use uib-pager instead.");var s=a[0],u=a[1];u&&(r.align=angular.isDefined(o.align)?r.$parent.$eval(o.align):e.align,s.init(u,e))}}}]),angular.module("ui.bootstrap.tooltip",["ui.bootstrap.position","ui.bootstrap.stackedMap"]).provider("$uibTooltip",(function(){var e={placement:"top",animation:!0,popupDelay:0,popupCloseDelay:0,useContentExp:!1},t={mouseenter:"mouseleave",click:"click",focus:"blur",none:""},n={};this.options=function(e){angular.extend(n,e)},this.setTriggers=function(e){angular.extend(t,e)},this.$get=["$window","$compile","$timeout","$document","$uibPosition","$interpolate","$rootScope","$parse","$$stackedMap",function(r,i,o,a,s,u,l,c,h){var p=h.createNew();return a.on("keypress",(function(e){if(27===e.which){var t=p.top();t&&(t.value.close(),p.removeTop(),t=null)}})),function(r,l,h,f){function d(e){var n=(e||f.trigger||h).split(" "),r=n.map((function(e){return t[e]||e}));return{show:n,hide:r}}f=angular.extend({},e,n,f);var g=function(e){return e.replace(/[A-Z]/g,(function(e,t){return(t?"-":"")+e.toLowerCase()}))}(r),m=u.startSymbol(),v=u.endSymbol(),y="<div "+g+'-popup title="'+m+"title"+v+'" '+(f.useContentExp?'content-exp="contentExp()" ':'content="'+m+"content"+v+'" ')+'placement="'+m+"placement"+v+'" popup-class="'+m+"popupClass"+v+'" animation="animation" is-open="isOpen"origin-scope="origScope" style="visibility: hidden; display: block; top: -9999px; left: -9999px;"></div>';return{compile:function(e,t){var n=i(y);return function(e,t,i,u){function h(){D.isOpen?m():g()}function g(){(!P||e.$eval(i[l+"Enable"]))&&($(),function(){D.title=i[l+"Title"],D.content=_?_(e):i[r],D.popupClass=i[l+"Class"],D.placement=angular.isDefined(i[l+"Placement"])?i[l+"Placement"]:f.placement;var t=parseInt(i[l+"PopupDelay"],10),n=parseInt(i[l+"PopupCloseDelay"],10);D.popupDelay=isNaN(t)?f.popupDelay:t,D.popupCloseDelay=isNaN(n)?f.popupCloseDelay:n}(),D.popupDelay?C||(C=o(v,D.popupDelay,!1)):v())}function m(){y(),D.popupCloseDelay?T||(T=o(b,D.popupCloseDelay,!1)):b()}function v(){return y(),$(),D.content?(S||(E=D.$new(),S=n(E,(function(e){k?a.find("body").append(e):t.after(e)})),j.length=0,_?(j.push(e.$watch(_,(function(e){D.content=e,!e&&D.isOpen&&b()}))),j.push(E.$watch((function(){O||(O=!0,E.$$postDigest((function(){O=!1,D&&D.isOpen&&L()})))})))):j.push(i.$observe(r,(function(e){D.content=e,!e&&D.isOpen?b():L()}))),j.push(i.$observe(l+"Title",(function(e){D.title=e,D.isOpen&&L()}))),j.push(i.$observe(l+"Placement",(function(e){D.placement=e||f.placement,D.isOpen&&L()})))),void D.$evalAsync((function(){D.isOpen=!0,x(!0),L()}))):angular.noop}function y(){C&&(o.cancel(C),C=null),F&&(o.cancel(F),F=null)}function b(){y(),$(),D&&D.$evalAsync((function(){D.isOpen=!1,x(!1),D.animation?A||(A=o(w,150,!1)):w()}))}function $(){T&&(o.cancel(T),T=null),A&&(o.cancel(A),A=null)}function w(){j.length&&(angular.forEach(j,(function(e){e()})),j.length=0),A=null,S&&(S.remove(),S=null),E&&(E.$destroy(),E=null)}function x(t){I&&angular.isFunction(I.assign)&&I.assign(e,t)}var S,E,A,C,T,F,k=!!angular.isDefined(f.appendToBody)&&f.appendToBody,R=d(void 0),P=angular.isDefined(i[l+"Enable"]),D=e.$new(!0),O=!1,I=!!angular.isDefined(i[l+"IsOpen"])&&c(i[l+"IsOpen"]),_=!!f.useContentExp&&c(i[r]),j=[],L=function(){S&&S.html()&&(F||(F=o((function(){S.css({top:0,left:0});var e=s.positionElements(t,S,D.placement,k);e.top+="px",e.left+="px",e.visibility="visible",S.css(e),F=null}),0,!1)))};D.origScope=e,D.isOpen=!1,p.add(D,{close:b}),D.contentExp=function(){return D.content},i.$observe("disabled",(function(e){e&&y(),e&&D.isOpen&&b()})),I&&e.$watch(I,(function(e){D&&!e===D.isOpen&&h()}));var N=function(){R.show.forEach((function(e){t.unbind(e,g)})),R.hide.forEach((function(e){e.split(" ").forEach((function(e){t[0].removeEventListener(e,m)}))}))};!function(){var e=i[l+"Trigger"];N(),"none"!==(R=d(e)).show&&R.show.forEach((function(e,n){e===R.hide[n]?t[0].addEventListener(e,h):e&&(t[0].addEventListener(e,g),R.hide[n].split(" ").forEach((function(e){t[0].addEventListener(e,m)}))),t.on("keypress",(function(e){27===e.which&&m()}))}))}();var M=e.$eval(i[l+"Animation"]);D.animation=angular.isDefined(M)?!!M:f.animation;var B=e.$eval(i[l+"AppendToBody"]);(k=angular.isDefined(B)?B:k)&&e.$on("$locationChangeSuccess",(function(){D.isOpen&&b()})),e.$on("$destroy",(function(){y(),$(),N(),w(),p.remove(D),D=null}))}}}}}]})).directive("uibTooltipTemplateTransclude",["$animate","$sce","$compile","$templateRequest",function(e,t,n,r){return{link:function(i,o,a){var s,u,l,c=i.$eval(a.tooltipTemplateTranscludeScope),h=0,p=function(){u&&(u.remove(),u=null),s&&(s.$destroy(),s=null),l&&(e.leave(l).then((function(){u=null})),u=l,l=null)};i.$watch(t.parseAsResourceUrl(a.uibTooltipTemplateTransclude),(function(t){var a=++h;t?(r(t,!0).then((function(r){if(a===h){var i=c.$new(),u=n(r)(i,(function(t){p(),e.enter(t,o)}));l=u,(s=i).$emit("$includeContentLoaded",t)}}),(function(){a===h&&(p(),i.$emit("$includeContentError",t))})),i.$emit("$includeContentRequested",t)):p()})),i.$on("$destroy",p)}}}]).directive("uibTooltipClasses",(function(){return{restrict:"A",link:function(e,t,n){e.placement&&t.addClass(e.placement),e.popupClass&&t.addClass(e.popupClass),e.animation()&&t.addClass(n.tooltipAnimationClass)}}})).directive("uibTooltipPopup",(function(){return{replace:!0,scope:{content:"@",placement:"@",popupClass:"@",animation:"&",isOpen:"&"},templateUrl:"template/tooltip/tooltip-popup.html",link:function(e,t){t.addClass("tooltip")}}})).directive("uibTooltip",["$uibTooltip",function(e){return e("uibTooltip","tooltip","mouseenter")}]).directive("uibTooltipTemplatePopup",(function(){return{replace:!0,scope:{contentExp:"&",placement:"@",popupClass:"@",animation:"&",isOpen:"&",originScope:"&"},templateUrl:"template/tooltip/tooltip-template-popup.html",link:function(e,t){t.addClass("tooltip")}}})).directive("uibTooltipTemplate",["$uibTooltip",function(e){return e("uibTooltipTemplate","tooltip","mouseenter",{useContentExp:!0})}]).directive("uibTooltipHtmlPopup",(function(){return{replace:!0,scope:{contentExp:"&",placement:"@",popupClass:"@",animation:"&",isOpen:"&"},templateUrl:"template/tooltip/tooltip-html-popup.html",link:function(e,t){t.addClass("tooltip")}}})).directive("uibTooltipHtml",["$uibTooltip",function(e){return e("uibTooltipHtml","tooltip","mouseenter",{useContentExp:!0})}]),angular.module("ui.bootstrap.tooltip").value("$tooltipSuppressWarning",!1).provider("$tooltip",["$uibTooltipProvider",function(e){angular.extend(this,e),this.$get=["$log","$tooltipSuppressWarning","$injector",function(t,n,r){return n||t.warn("$tooltip is now deprecated. Use $uibTooltip instead."),r.invoke(e.$get)}]}]).directive("tooltipTemplateTransclude",["$animate","$sce","$compile","$templateRequest","$log","$tooltipSuppressWarning",function(e,t,n,r,i,o){return{link:function(a,s,u){o||i.warn("tooltip-template-transclude is now deprecated. Use uib-tooltip-template-transclude instead.");var l,c,h,p=a.$eval(u.tooltipTemplateTranscludeScope),f=0,d=function(){c&&(c.remove(),c=null),l&&(l.$destroy(),l=null),h&&(e.leave(h).then((function(){c=null})),c=h,h=null)};a.$watch(t.parseAsResourceUrl(u.tooltipTemplateTransclude),(function(t){var i=++f;t?(r(t,!0).then((function(r){if(i===f){var o=p.$new(),a=n(r)(o,(function(t){d(),e.enter(t,s)}));h=a,(l=o).$emit("$includeContentLoaded",t)}}),(function(){i===f&&(d(),a.$emit("$includeContentError",t))})),a.$emit("$includeContentRequested",t)):d()})),a.$on("$destroy",d)}}}]).directive("tooltipClasses",["$log","$tooltipSuppressWarning",function(e,t){return{restrict:"A",link:function(n,r,i){t||e.warn("tooltip-classes is now deprecated. Use uib-tooltip-classes instead."),n.placement&&r.addClass(n.placement),n.popupClass&&r.addClass(n.popupClass),n.animation()&&r.addClass(i.tooltipAnimationClass)}}}]).directive("tooltipPopup",["$log","$tooltipSuppressWarning",function(e,t){return{replace:!0,scope:{content:"@",placement:"@",popupClass:"@",animation:"&",isOpen:"&"},templateUrl:"template/tooltip/tooltip-popup.html",link:function(n,r){t||e.warn("tooltip-popup is now deprecated. Use uib-tooltip-popup instead."),r.addClass("tooltip")}}}]).directive("tooltip",["$tooltip",function(e){return e("tooltip","tooltip","mouseenter")}]).directive("tooltipTemplatePopup",["$log","$tooltipSuppressWarning",function(e,t){return{replace:!0,scope:{contentExp:"&",placement:"@",popupClass:"@",animation:"&",isOpen:"&",originScope:"&"},templateUrl:"template/tooltip/tooltip-template-popup.html",link:function(n,r){t||e.warn("tooltip-template-popup is now deprecated. Use uib-tooltip-template-popup instead."),r.addClass("tooltip")}}}]).directive("tooltipTemplate",["$tooltip",function(e){return e("tooltipTemplate","tooltip","mouseenter",{useContentExp:!0})}]).directive("tooltipHtmlPopup",["$log","$tooltipSuppressWarning",function(e,t){return{replace:!0,scope:{contentExp:"&",placement:"@",popupClass:"@",animation:"&",isOpen:"&"},templateUrl:"template/tooltip/tooltip-html-popup.html",link:function(n,r){t||e.warn("tooltip-html-popup is now deprecated. Use uib-tooltip-html-popup instead."),r.addClass("tooltip")}}}]).directive("tooltipHtml",["$tooltip",function(e){return e("tooltipHtml","tooltip","mouseenter",{useContentExp:!0})}]),angular.module("ui.bootstrap.popover",["ui.bootstrap.tooltip"]).directive("uibPopoverTemplatePopup",(function(){return{replace:!0,scope:{title:"@",contentExp:"&",placement:"@",popupClass:"@",animation:"&",isOpen:"&",originScope:"&"},templateUrl:"template/popover/popover-template.html",link:function(e,t){t.addClass("popover")}}})).directive("uibPopoverTemplate",["$uibTooltip",function(e){return e("uibPopoverTemplate","popover","click",{useContentExp:!0})}]).directive("uibPopoverHtmlPopup",(function(){return{replace:!0,scope:{contentExp:"&",title:"@",placement:"@",popupClass:"@",animation:"&",isOpen:"&"},templateUrl:"template/popover/popover-html.html",link:function(e,t){t.addClass("popover")}}})).directive("uibPopoverHtml",["$uibTooltip",function(e){return e("uibPopoverHtml","popover","click",{useContentExp:!0})}]).directive("uibPopoverPopup",(function(){return{replace:!0,scope:{title:"@",content:"@",placement:"@",popupClass:"@",animation:"&",isOpen:"&"},templateUrl:"template/popover/popover.html",link:function(e,t){t.addClass("popover")}}})).directive("uibPopover",["$uibTooltip",function(e){return e("uibPopover","popover","click")}]),angular.module("ui.bootstrap.popover").value("$popoverSuppressWarning",!1).directive("popoverTemplatePopup",["$log","$popoverSuppressWarning",function(e,t){return{replace:!0,scope:{title:"@",contentExp:"&",placement:"@",popupClass:"@",animation:"&",isOpen:"&",originScope:"&"},templateUrl:"template/popover/popover-template.html",link:function(n,r){t||e.warn("popover-template-popup is now deprecated. Use uib-popover-template-popup instead."),r.addClass("popover")}}}]).directive("popoverTemplate",["$tooltip",function(e){return e("popoverTemplate","popover","click",{useContentExp:!0})}]).directive("popoverHtmlPopup",["$log","$popoverSuppressWarning",function(e,t){return{replace:!0,scope:{contentExp:"&",title:"@",placement:"@",popupClass:"@",animation:"&",isOpen:"&"},templateUrl:"template/popover/popover-html.html",link:function(n,r){t||e.warn("popover-html-popup is now deprecated. Use uib-popover-html-popup instead."),r.addClass("popover")}}}]).directive("popoverHtml",["$tooltip",function(e){return e("popoverHtml","popover","click",{useContentExp:!0})}]).directive("popoverPopup",["$log","$popoverSuppressWarning",function(e,t){return{replace:!0,scope:{title:"@",content:"@",placement:"@",popupClass:"@",animation:"&",isOpen:"&"},templateUrl:"template/popover/popover.html",link:function(n,r){t||e.warn("popover-popup is now deprecated. Use uib-popover-popup instead."),r.addClass("popover")}}}]).directive("popover",["$tooltip",function(e){return e("popover","popover","click")}]),angular.module("ui.bootstrap.progressbar",[]).constant("uibProgressConfig",{animate:!0,max:100}).controller("UibProgressController",["$scope","$attrs","uibProgressConfig",function(e,t,n){var r=this,i=angular.isDefined(t.animate)?e.$parent.$eval(t.animate):n.animate;this.bars=[],e.max=angular.isDefined(e.max)?e.max:n.max,this.addBar=function(t,n,o){i||n.css({transition:"none"}),this.bars.push(t),t.max=e.max,t.title=o&&angular.isDefined(o.title)?o.title:"progressbar",t.$watch("value",(function(e){t.recalculatePercentage()})),t.recalculatePercentage=function(){var e=r.bars.reduce((function(e,t){return t.percent=+(100*t.value/t.max).toFixed(2),e+t.percent}),0);e>100&&(t.percent-=e-100)},t.$on("$destroy",(function(){n=null,r.removeBar(t)}))},this.removeBar=function(e){this.bars.splice(this.bars.indexOf(e),1),this.bars.forEach((function(e){e.recalculatePercentage()}))},e.$watch("max",(function(t){r.bars.forEach((function(t){t.max=e.max,t.recalculatePercentage()}))}))}]).directive("uibProgress",(function(){return{replace:!0,transclude:!0,controller:"UibProgressController",require:"uibProgress",scope:{max:"=?"},templateUrl:"template/progressbar/progress.html"}})).directive("uibBar",(function(){return{replace:!0,transclude:!0,require:"^uibProgress",scope:{value:"=",type:"@"},templateUrl:"template/progressbar/bar.html",link:function(e,t,n,r){r.addBar(e,t,n)}}})).directive("uibProgressbar",(function(){return{replace:!0,transclude:!0,controller:"UibProgressController",scope:{value:"=",max:"=?",type:"@"},templateUrl:"template/progressbar/progressbar.html",link:function(e,t,n,r){r.addBar(e,angular.element(t.children()[0]),{title:n.title})}}})),angular.module("ui.bootstrap.progressbar").value("$progressSuppressWarning",!1).controller("ProgressController",["$scope","$attrs","uibProgressConfig","$log","$progressSuppressWarning",function(e,t,n,r,i){i||r.warn("ProgressController is now deprecated. Use UibProgressController instead.");var o=this,a=angular.isDefined(t.animate)?e.$parent.$eval(t.animate):n.animate;this.bars=[],e.max=angular.isDefined(e.max)?e.max:n.max,this.addBar=function(t,n,r){a||n.css({transition:"none"}),this.bars.push(t),t.max=e.max,t.title=r&&angular.isDefined(r.title)?r.title:"progressbar",t.$watch("value",(function(e){t.recalculatePercentage()})),t.recalculatePercentage=function(){t.percent=+(100*t.value/t.max).toFixed(2);var e=o.bars.reduce((function(e,t){return e+t.percent}),0);e>100&&(t.percent-=e-100)},t.$on("$destroy",(function(){n=null,o.removeBar(t)}))},this.removeBar=function(e){this.bars.splice(this.bars.indexOf(e),1)},e.$watch("max",(function(t){o.bars.forEach((function(t){t.max=e.max,t.recalculatePercentage()}))}))}]).directive("progress",["$log","$progressSuppressWarning",function(e,t){return{replace:!0,transclude:!0,controller:"ProgressController",require:"progress",scope:{max:"=?",title:"@?"},templateUrl:"template/progressbar/progress.html",link:function(){t||e.warn("progress is now deprecated. Use uib-progress instead.")}}}]).directive("bar",["$log","$progressSuppressWarning",function(e,t){return{replace:!0,transclude:!0,require:"^progress",scope:{value:"=",type:"@"},templateUrl:"template/progressbar/bar.html",link:function(n,r,i,o){t||e.warn("bar is now deprecated. Use uib-bar instead."),o.addBar(n,r)}}}]).directive("progressbar",["$log","$progressSuppressWarning",function(e,t){return{replace:!0,transclude:!0,controller:"ProgressController",scope:{value:"=",max:"=?",type:"@"},templateUrl:"template/progressbar/progressbar.html",link:function(n,r,i,o){t||e.warn("progressbar is now deprecated. Use uib-progressbar instead."),o.addBar(n,angular.element(r.children()[0]),{title:i.title})}}}]),angular.module("ui.bootstrap.rating",[]).constant("uibRatingConfig",{max:5,stateOn:null,stateOff:null,titles:["one","two","three","four","five"]}).controller("UibRatingController",["$scope","$attrs","uibRatingConfig",function(e,t,n){var r={$setViewValue:angular.noop};this.init=function(i){(r=i).$render=this.render,r.$formatters.push((function(e){return angular.isNumber(e)&&e<<0!==e&&(e=Math.round(e)),e})),this.stateOn=angular.isDefined(t.stateOn)?e.$parent.$eval(t.stateOn):n.stateOn,this.stateOff=angular.isDefined(t.stateOff)?e.$parent.$eval(t.stateOff):n.stateOff;var o=angular.isDefined(t.titles)?e.$parent.$eval(t.titles):n.titles;this.titles=angular.isArray(o)&&o.length>0?o:n.titles;var a=angular.isDefined(t.ratingStates)?e.$parent.$eval(t.ratingStates):new Array(angular.isDefined(t.max)?e.$parent.$eval(t.max):n.max);e.range=this.buildTemplateObjects(a)},this.buildTemplateObjects=function(e){for(var t=0,n=e.length;n>t;t++)e[t]=angular.extend({index:t},{stateOn:this.stateOn,stateOff:this.stateOff,title:this.getTitle(t)},e[t]);return e},this.getTitle=function(e){return e>=this.titles.length?e+1:this.titles[e]},e.rate=function(t){!e.readonly&&t>=0&&t<=e.range.length&&(r.$setViewValue(r.$viewValue===t?0:t),r.$render())},e.enter=function(t){e.readonly||(e.value=t),e.onHover({value:t})},e.reset=function(){e.value=r.$viewValue,e.onLeave()},e.onKeydown=function(t){/(37|38|39|40)/.test(t.which)&&(t.preventDefault(),t.stopPropagation(),e.rate(e.value+(38===t.which||39===t.which?1:-1)))},this.render=function(){e.value=r.$viewValue}}]).directive("uibRating",(function(){return{require:["uibRating","ngModel"],scope:{readonly:"=?",onHover:"&",onLeave:"&"},controller:"UibRatingController",templateUrl:"template/rating/rating.html",replace:!0,link:function(e,t,n,r){var i=r[0],o=r[1];i.init(o)}}})),angular.module("ui.bootstrap.rating").value("$ratingSuppressWarning",!1).controller("RatingController",["$scope","$attrs","$controller","$log","$ratingSuppressWarning",function(e,t,n,r,i){i||r.warn("RatingController is now deprecated. Use UibRatingController instead."),angular.extend(this,n("UibRatingController",{$scope:e,$attrs:t}))}]).directive("rating",["$log","$ratingSuppressWarning",function(e,t){return{require:["rating","ngModel"],scope:{readonly:"=?",onHover:"&",onLeave:"&"},controller:"RatingController",templateUrl:"template/rating/rating.html",replace:!0,link:function(n,r,i,o){t||e.warn("rating is now deprecated. Use uib-rating instead.");var a=o[0],s=o[1];a.init(s)}}}]),angular.module("ui.bootstrap.tabs",[]).controller("UibTabsetController",["$scope",function(e){var t,n=this,r=n.tabs=e.tabs=[];n.select=function(e){angular.forEach(r,(function(t){t.active&&t!==e&&(t.active=!1,t.onDeselect(),e.selectCalled=!1)})),e.active=!0,e.selectCalled||(e.onSelect(),e.selectCalled=!0)},n.addTab=function(e){r.push(e),1===r.length&&!1!==e.active?e.active=!0:e.active?n.select(e):e.active=!1},n.removeTab=function(e){var i=r.indexOf(e);if(e.active&&r.length>1&&!t){var o=i==r.length-1?i-1:i+1;n.select(r[o])}r.splice(i,1)},e.$on("$destroy",(function(){t=!0}))}]).directive("uibTabset",(function(){return{restrict:"EA",transclude:!0,replace:!0,scope:{type:"@"},controller:"UibTabsetController",templateUrl:"template/tabs/tabset.html",link:function(e,t,n){e.vertical=!!angular.isDefined(n.vertical)&&e.$parent.$eval(n.vertical),e.justified=!!angular.isDefined(n.justified)&&e.$parent.$eval(n.justified)}}})).directive("uibTab",["$parse",function(e){return{require:"^uibTabset",restrict:"EA",replace:!0,templateUrl:"template/tabs/tab.html",transclude:!0,scope:{active:"=?",heading:"@",onSelect:"&select",onDeselect:"&deselect"},controller:function(){},link:function(t,n,r,i,o){t.$watch("active",(function(e){e&&i.select(t)})),t.disabled=!1,r.disable&&t.$parent.$watch(e(r.disable),(function(e){t.disabled=!!e})),t.select=function(){t.disabled||(t.active=!0)},i.addTab(t),t.$on("$destroy",(function(){i.removeTab(t)})),t.$transcludeFn=o}}}]).directive("uibTabHeadingTransclude",(function(){return{restrict:"A",require:["?^uibTab","?^tab"],link:function(e,t){e.$watch("headingElement",(function(e){e&&(t.html(""),t.append(e))}))}}})).directive("uibTabContentTransclude",(function(){return{restrict:"A",require:["?^uibTabset","?^tabset"],link:function(e,t,n){var r=e.$eval(n.uibTabContentTransclude);r.$transcludeFn(r.$parent,(function(e){angular.forEach(e,(function(e){!function(e){return e.tagName&&(e.hasAttribute("tab-heading")||e.hasAttribute("data-tab-heading")||e.hasAttribute("x-tab-heading")||e.hasAttribute("uib-tab-heading")||e.hasAttribute("data-uib-tab-heading")||e.hasAttribute("x-uib-tab-heading")||"tab-heading"===e.tagName.toLowerCase()||"data-tab-heading"===e.tagName.toLowerCase()||"x-tab-heading"===e.tagName.toLowerCase()||"uib-tab-heading"===e.tagName.toLowerCase()||"data-uib-tab-heading"===e.tagName.toLowerCase()||"x-uib-tab-heading"===e.tagName.toLowerCase())}(e)?t.append(e):r.headingElement=e}))}))}}})),angular.module("ui.bootstrap.tabs").value("$tabsSuppressWarning",!1).controller("TabsetController",["$scope","$controller","$log","$tabsSuppressWarning",function(e,t,n,r){r||n.warn("TabsetController is now deprecated. Use UibTabsetController instead."),angular.extend(this,t("UibTabsetController",{$scope:e}))}]).directive("tabset",["$log","$tabsSuppressWarning",function(e,t){return{restrict:"EA",transclude:!0,replace:!0,scope:{type:"@"},controller:"TabsetController",templateUrl:"template/tabs/tabset.html",link:function(n,r,i){t||e.warn("tabset is now deprecated. Use uib-tabset instead."),n.vertical=!!angular.isDefined(i.vertical)&&n.$parent.$eval(i.vertical),n.justified=!!angular.isDefined(i.justified)&&n.$parent.$eval(i.justified)}}}]).directive("tab",["$parse","$log","$tabsSuppressWarning",function(e,t,n){return{require:"^tabset",restrict:"EA",replace:!0,templateUrl:"template/tabs/tab.html",transclude:!0,scope:{active:"=?",heading:"@",onSelect:"&select",onDeselect:"&deselect"},controller:function(){},link:function(r,i,o,a,s){n||t.warn("tab is now deprecated. Use uib-tab instead."),r.$watch("active",(function(e){e&&a.select(r)})),r.disabled=!1,o.disable&&r.$parent.$watch(e(o.disable),(function(e){r.disabled=!!e})),r.select=function(){r.disabled||(r.active=!0)},a.addTab(r),r.$on("$destroy",(function(){a.removeTab(r)})),r.$transcludeFn=s}}}]).directive("tabHeadingTransclude",["$log","$tabsSuppressWarning",function(e,t){return{restrict:"A",require:"^tab",link:function(n,r){t||e.warn("tab-heading-transclude is now deprecated. Use uib-tab-heading-transclude instead."),n.$watch("headingElement",(function(e){e&&(r.html(""),r.append(e))}))}}}]).directive("tabContentTransclude",["$log","$tabsSuppressWarning",function(e,t){return{restrict:"A",require:"^tabset",link:function(n,r,i){t||e.warn("tab-content-transclude is now deprecated. Use uib-tab-content-transclude instead.");var o=n.$eval(i.tabContentTransclude);o.$transcludeFn(o.$parent,(function(e){angular.forEach(e,(function(e){!function(e){return e.tagName&&(e.hasAttribute("tab-heading")||e.hasAttribute("data-tab-heading")||e.hasAttribute("x-tab-heading")||"tab-heading"===e.tagName.toLowerCase()||"data-tab-heading"===e.tagName.toLowerCase()||"x-tab-heading"===e.tagName.toLowerCase())}(e)?r.append(e):o.headingElement=e}))}))}}}]),angular.module("ui.bootstrap.timepicker",[]).constant("uibTimepickerConfig",{hourStep:1,minuteStep:1,showMeridian:!0,meridians:null,readonlyInput:!1,mousewheel:!0,arrowkeys:!0,showSpinners:!0}).controller("UibTimepickerController",["$scope","$element","$attrs","$parse","$log","$locale","uibTimepickerConfig",function(e,t,n,r,i,o,a){function s(){var t=parseInt(e.hours,10);return(e.showMeridian?t>0&&13>t:t>=0&&24>t)?(e.showMeridian&&(12===t&&(t=0),e.meridian===v[1]&&(t+=12)),t):void 0}function u(){var t=parseInt(e.minutes,10);return t>=0&&60>t?t:void 0}function l(e){return angular.isDefined(e)&&e.toString().length<2?"0"+e:e.toString()}function c(e){h(),m.$setViewValue(new Date(g)),p(e)}function h(){m.$setValidity("time",!0),e.invalidHours=!1,e.invalidMinutes=!1}function p(t){var n=g.getHours(),r=g.getMinutes();e.showMeridian&&(n=0===n||12===n?12:n%12),e.hours="h"===t?n:l(n),"m"!==t&&(e.minutes=l(r)),e.meridian=g.getHours()<12?v[0]:v[1]}function f(e,t){var n=new Date(e.getTime()+6e4*t),r=new Date(e);return r.setHours(n.getHours(),n.getMinutes()),r}function d(e){g=f(g,e),c()}var g=new Date,m={$setViewValue:angular.noop},v=angular.isDefined(n.meridians)?e.$parent.$eval(n.meridians):a.meridians||o.DATETIME_FORMATS.AMPMS;e.tabindex=angular.isDefined(n.tabindex)?n.tabindex:0,t.removeAttr("tabindex"),this.init=function(t,r){(m=t).$render=this.render,m.$formatters.unshift((function(e){return e?new Date(e):null}));var i=r.eq(0),o=r.eq(1);(angular.isDefined(n.mousewheel)?e.$parent.$eval(n.mousewheel):a.mousewheel)&&this.setupMousewheelEvents(i,o),(angular.isDefined(n.arrowkeys)?e.$parent.$eval(n.arrowkeys):a.arrowkeys)&&this.setupArrowkeyEvents(i,o),e.readonlyInput=angular.isDefined(n.readonlyInput)?e.$parent.$eval(n.readonlyInput):a.readonlyInput,this.setupInputEvents(i,o)};var y=a.hourStep;n.hourStep&&e.$parent.$watch(r(n.hourStep),(function(e){y=parseInt(e,10)}));var b,$,w=a.minuteStep;n.minuteStep&&e.$parent.$watch(r(n.minuteStep),(function(e){w=parseInt(e,10)})),e.$parent.$watch(r(n.min),(function(e){var t=new Date(e);b=isNaN(t)?void 0:t})),e.$parent.$watch(r(n.max),(function(e){var t=new Date(e);$=isNaN(t)?void 0:t})),e.noIncrementHours=function(){var e=f(g,60*y);return e>$||g>e&&b>e},e.noDecrementHours=function(){var e=f(g,60*-y);return b>e||e>g&&e>$},e.noIncrementMinutes=function(){var e=f(g,w);return e>$||g>e&&b>e},e.noDecrementMinutes=function(){var e=f(g,-w);return b>e||e>g&&e>$},e.noToggleMeridian=function(){return g.getHours()<13?f(g,720)>$:f(g,-720)<b},e.showMeridian=a.showMeridian,n.showMeridian&&e.$parent.$watch(r(n.showMeridian),(function(t){if(e.showMeridian=!!t,m.$error.time){var n=s(),r=u();angular.isDefined(n)&&angular.isDefined(r)&&(g.setHours(n),c())}else p()})),this.setupMousewheelEvents=function(t,n){var r=function(e){e.originalEvent&&(e=e.originalEvent);var t=e.wheelDelta?e.wheelDelta:-e.deltaY;return e.detail||t>0};t.bind("mousewheel wheel",(function(t){e.$apply(r(t)?e.incrementHours():e.decrementHours()),t.preventDefault()})),n.bind("mousewheel wheel",(function(t){e.$apply(r(t)?e.incrementMinutes():e.decrementMinutes()),t.preventDefault()}))},this.setupArrowkeyEvents=function(t,n){t.bind("keydown",(function(t){38===t.which?(t.preventDefault(),e.incrementHours(),e.$apply()):40===t.which&&(t.preventDefault(),e.decrementHours(),e.$apply())})),n.bind("keydown",(function(t){38===t.which?(t.preventDefault(),e.incrementMinutes(),e.$apply()):40===t.which&&(t.preventDefault(),e.decrementMinutes(),e.$apply())}))},this.setupInputEvents=function(t,n){if(e.readonlyInput)return e.updateHours=angular.noop,void(e.updateMinutes=angular.noop);var r=function(t,n){m.$setViewValue(null),m.$setValidity("time",!1),angular.isDefined(t)&&(e.invalidHours=t),angular.isDefined(n)&&(e.invalidMinutes=n)};e.updateHours=function(){var e=s(),t=u();angular.isDefined(e)&&angular.isDefined(t)?(g.setHours(e),b>g||g>$?r(!0):c("h")):r(!0)},t.bind("blur",(function(t){!e.invalidHours&&e.hours<10&&e.$apply((function(){e.hours=l(e.hours)}))})),e.updateMinutes=function(){var e=u(),t=s();angular.isDefined(e)&&angular.isDefined(t)?(g.setMinutes(e),b>g||g>$?r(void 0,!0):c("m")):r(void 0,!0)},n.bind("blur",(function(t){!e.invalidMinutes&&e.minutes<10&&e.$apply((function(){e.minutes=l(e.minutes)}))}))},this.render=function(){var t=m.$viewValue;isNaN(t)?(m.$setValidity("time",!1),i.error('Timepicker directive: "ng-model" value must be a Date object, a number of milliseconds since 01.01.1970 or a string representing an RFC2822 or ISO 8601 date.')):(t&&(g=t),b>g||g>$?(m.$setValidity("time",!1),e.invalidHours=!0,e.invalidMinutes=!0):h(),p())},e.showSpinners=angular.isDefined(n.showSpinners)?e.$parent.$eval(n.showSpinners):a.showSpinners,e.incrementHours=function(){e.noIncrementHours()||d(60*y)},e.decrementHours=function(){e.noDecrementHours()||d(60*-y)},e.incrementMinutes=function(){e.noIncrementMinutes()||d(w)},e.decrementMinutes=function(){e.noDecrementMinutes()||d(-w)},e.toggleMeridian=function(){e.noToggleMeridian()||d(720*(g.getHours()<12?1:-1))}}]).directive("uibTimepicker",(function(){return{restrict:"EA",require:["uibTimepicker","?^ngModel"],controller:"UibTimepickerController",controllerAs:"timepicker",replace:!0,scope:{},templateUrl:function(e,t){return t.templateUrl||"template/timepicker/timepicker.html"},link:function(e,t,n,r){var i=r[0],o=r[1];o&&i.init(o,t.find("input"))}}})),angular.module("ui.bootstrap.timepicker").value("$timepickerSuppressWarning",!1).controller("TimepickerController",["$scope","$element","$attrs","$controller","$log","$timepickerSuppressWarning",function(e,t,n,r,i,o){o||i.warn("TimepickerController is now deprecated. Use UibTimepickerController instead."),angular.extend(this,r("UibTimepickerController",{$scope:e,$element:t,$attrs:n}))}]).directive("timepicker",["$log","$timepickerSuppressWarning",function(e,t){return{restrict:"EA",require:["timepicker","?^ngModel"],controller:"TimepickerController",controllerAs:"timepicker",replace:!0,scope:{},templateUrl:function(e,t){return t.templateUrl||"template/timepicker/timepicker.html"},link:function(n,r,i,o){t||e.warn("timepicker is now deprecated. Use uib-timepicker instead.");var a=o[0],s=o[1];s&&a.init(s,r.find("input"))}}}]),angular.module("ui.bootstrap.typeahead",["ui.bootstrap.position"]).factory("uibTypeaheadParser",["$parse",function(e){var t=/^\s*([\s\S]+?)(?:\s+as\s+([\s\S]+?))?\s+for\s+(?:([\$\w][\$\w\d]*))\s+in\s+([\s\S]+?)$/;return{parse:function(n){var r=n.match(t);if(!r)throw new Error('Expected typeahead specification in form of "_modelValue_ (as _label_)? for _item_ in _collection_" but got "'+n+'".');return{itemName:r[3],source:e(r[4]),viewMapper:e(r[2]||r[1]),modelMapper:e(r[1])}}}}]).controller("UibTypeaheadController",["$scope","$element","$attrs","$compile","$parse","$q","$timeout","$document","$window","$rootScope","$uibPosition","uibTypeaheadParser",function(e,t,n,r,i,o,a,s,u,l,c,h){function p(){_.moveInProgress||(_.moveInProgress=!0,_.$digest()),U&&a.cancel(U),U=a((function(){_.matches.length&&f(),_.moveInProgress=!1}),v)}function f(){_.position=F?c.offset(t):c.position(t),_.position.top+=t.prop("offsetHeight")}var d,g,m=[9,13,27,38,40],v=200,y=e.$eval(n.typeaheadMinLength);y||0===y||(y=1);var b,$,w=e.$eval(n.typeaheadWaitMs)||0,x=!1!==e.$eval(n.typeaheadEditable),S=i(n.typeaheadLoading).assign||angular.noop,E=i(n.typeaheadOnSelect),A=!!angular.isDefined(n.typeaheadSelectOnBlur)&&e.$eval(n.typeaheadSelectOnBlur),C=i(n.typeaheadNoResults).assign||angular.noop,T=n.typeaheadInputFormatter?i(n.typeaheadInputFormatter):void 0,F=!!n.typeaheadAppendToBody&&e.$eval(n.typeaheadAppendToBody),k=n.typeaheadAppendToElementId||!1,R=!1!==e.$eval(n.typeaheadFocusFirst),P=!!n.typeaheadSelectOnExact&&e.$eval(n.typeaheadSelectOnExact),D=i(n.ngModel),O=i(n.ngModel+"($$$p)"),I=h.parse(n.uibTypeahead),_=e.$new(),j=e.$on("$destroy",(function(){_.$destroy()}));_.$on("$destroy",j);var L="typeahead-"+_.$id+"-"+Math.floor(1e4*Math.random());t.attr({"aria-autocomplete":"list","aria-expanded":!1,"aria-owns":L});var N=angular.element("<div uib-typeahead-popup></div>");N.attr({id:L,matches:"matches",active:"activeIdx",select:"select(activeIdx)","move-in-progress":"moveInProgress",query:"query",position:"position"}),angular.isDefined(n.typeaheadTemplateUrl)&&N.attr("template-url",n.typeaheadTemplateUrl),angular.isDefined(n.typeaheadPopupTemplateUrl)&&N.attr("popup-template-url",n.typeaheadPopupTemplateUrl);var M=function(){_.matches=[],_.activeIdx=-1,t.attr("aria-expanded",!1)},B=function(e){return L+"-option-"+e};_.$watch("activeIdx",(function(e){0>e?t.removeAttr("aria-activedescendant"):t.attr("aria-activedescendant",B(e))}));var U,H=function(n){var r={$viewValue:n};S(e,!0),C(e,!1),o.when(I.source(e,r)).then((function(i){var o=n===d.$viewValue;if(o&&b)if(i&&i.length>0){_.activeIdx=R?0:-1,C(e,!1),_.matches.length=0;for(var a=0;a<i.length;a++)r[I.itemName]=i[a],_.matches.push({id:B(a),label:I.viewMapper(_,r),model:i[a]});_.query=n,f(),t.attr("aria-expanded",!0),P&&1===_.matches.length&&function(e,t){return!!(_.matches.length>t&&e)&&e.toUpperCase()===_.matches[t].label.toUpperCase()}(n,0)&&_.select(0)}else M(),C(e,!0);o&&S(e,!1)}),(function(){M(),S(e,!1),C(e,!0)}))};F&&(angular.element(u).bind("resize",p),s.find("body").bind("scroll",p)),_.moveInProgress=!1,_.query=void 0;var V,q=function(){V&&a.cancel(V)};M(),_.select=function(r){var i,o,s={};$=!0,s[I.itemName]=o=_.matches[r].model,i=I.modelMapper(e,s),function(t,n){angular.isFunction(D(e))&&g&&g.$options&&g.$options.getterSetter?O(t,{$$$p:n}):D.assign(t,n)}(e,i),d.$setValidity("editable",!0),d.$setValidity("parse",!0),E(e,{$item:o,$model:i,$label:I.viewMapper(e,s)}),M(),!1!==_.$eval(n.typeaheadFocusOnSelect)&&a((function(){t[0].focus()}),0,!1)},t.bind("keydown",(function(e){if(0!==_.matches.length&&-1!==m.indexOf(e.which)){if(-1===_.activeIdx&&(9===e.which||13===e.which))return M(),void _.$digest();e.preventDefault(),40===e.which?(_.activeIdx=(_.activeIdx+1)%_.matches.length,_.$digest()):38===e.which?(_.activeIdx=(_.activeIdx>0?_.activeIdx:_.matches.length)-1,_.$digest()):13===e.which||9===e.which?_.$apply((function(){_.select(_.activeIdx)})):27===e.which&&(e.stopPropagation(),M(),_.$digest())}})),t.bind("blur",(function(){A&&_.matches.length&&-1!==_.activeIdx&&!$&&($=!0,_.$apply((function(){_.select(_.activeIdx)}))),b=!1,$=!1}));var z=function(e){t[0]!==e.target&&3!==e.which&&0!==_.matches.length&&(M(),l.$$phase||_.$digest())};s.bind("click",z),e.$on("$destroy",(function(){s.unbind("click",z),(F||k)&&K.remove(),F&&(angular.element(u).unbind("resize",p),s.find("body").unbind("scroll",p)),N.remove()}));var K=r(N)(_);F?s.find("body").append(K):!1!==k?angular.element(s[0].getElementById(k)).append(K):t.after(K),this.init=function(t,n){g=n,(d=t).$parsers.unshift((function(t){return b=!0,0===y||t&&t.length>=y?w>0?(q(),function(e){V=a((function(){H(e)}),w)}(t)):H(t):(S(e,!1),q(),M()),x?t:t?void d.$setValidity("editable",!1):(d.$setValidity("editable",!0),null)})),d.$formatters.push((function(t){var n,r={};return x||d.$setValidity("editable",!0),T?(r.$model=t,T(e,r)):(r[I.itemName]=t,n=I.viewMapper(e,r),r[I.itemName]=void 0,n!==I.viewMapper(e,r)?n:t)}))}}]).directive("uibTypeahead",(function(){return{controller:"UibTypeaheadController",require:["ngModel","^?ngModelOptions","uibTypeahead"],link:function(e,t,n,r){r[2].init(r[0],r[1])}}})).directive("uibTypeaheadPopup",(function(){return{scope:{matches:"=",query:"=",active:"=",position:"&",moveInProgress:"=",select:"&"},replace:!0,templateUrl:function(e,t){return t.popupTemplateUrl||"template/typeahead/typeahead-popup.html"},link:function(e,t,n){e.templateUrl=n.templateUrl,e.isOpen=function(){return e.matches.length>0},e.isActive=function(t){return e.active==t},e.selectActive=function(t){e.active=t},e.selectMatch=function(t){e.select({activeIdx:t})}}}})).directive("uibTypeaheadMatch",["$templateRequest","$compile","$parse",function(e,t,n){return{scope:{index:"=",match:"=",query:"="},link:function(r,i,o){var a=n(o.templateUrl)(r.$parent)||"template/typeahead/typeahead-match.html";e(a).then((function(e){t(e.trim())(r,(function(e){i.replaceWith(e)}))}))}}}]).filter("uibTypeaheadHighlight",["$sce","$injector","$log",function(e,t,n){var r;return r=t.has("$sanitize"),function(t,i){return!r&&function(e){return/<.*>/g.test(e)}(t)&&n.warn("Unsafe use of typeahead please use ngSanitize"),t=i?(""+t).replace(new RegExp(function(e){return e.replace(/([.?*+^$[\]\\(){}|-])/g,"\\$1")}(i),"gi"),"<strong>$&</strong>"):t,r||(t=e.trustAsHtml(t)),t}}]),angular.module("ui.bootstrap.typeahead").value("$typeaheadSuppressWarning",!1).service("typeaheadParser",["$parse","uibTypeaheadParser","$log","$typeaheadSuppressWarning",function(e,t,n,r){return r||n.warn("typeaheadParser is now deprecated. Use uibTypeaheadParser instead."),t}]).directive("typeahead",["$compile","$parse","$q","$timeout","$document","$window","$rootScope","$uibPosition","typeaheadParser","$log","$typeaheadSuppressWarning",function(e,t,n,r,i,o,a,s,u,l,c){var h=[9,13,27,38,40];return{require:["ngModel","^?ngModelOptions"],link:function(p,f,d,g){function m(){L.moveInProgress||(L.moveInProgress=!0,L.$digest()),V&&r.cancel(V),V=r((function(){L.matches.length&&v(),L.moveInProgress=!1}),200)}function v(){L.position=R?s.offset(f):s.position(f),L.position.top+=f.prop("offsetHeight")}c||l.warn("typeahead is now deprecated. Use uib-typeahead instead.");var y=g[0],b=g[1],$=p.$eval(d.typeaheadMinLength);$||0===$||($=1);var w,x,S=p.$eval(d.typeaheadWaitMs)||0,E=!1!==p.$eval(d.typeaheadEditable),A=t(d.typeaheadLoading).assign||angular.noop,C=t(d.typeaheadOnSelect),T=!!angular.isDefined(d.typeaheadSelectOnBlur)&&p.$eval(d.typeaheadSelectOnBlur),F=t(d.typeaheadNoResults).assign||angular.noop,k=d.typeaheadInputFormatter?t(d.typeaheadInputFormatter):void 0,R=!!d.typeaheadAppendToBody&&p.$eval(d.typeaheadAppendToBody),P=d.typeaheadAppendToElementId||!1,D=!1!==p.$eval(d.typeaheadFocusFirst),O=!!d.typeaheadSelectOnExact&&p.$eval(d.typeaheadSelectOnExact),I=t(d.ngModel),_=t(d.ngModel+"($$$p)"),j=u.parse(d.typeahead),L=p.$new(),N=p.$on("$destroy",(function(){L.$destroy()}));L.$on("$destroy",N);var M="typeahead-"+L.$id+"-"+Math.floor(1e4*Math.random());f.attr({"aria-autocomplete":"list","aria-expanded":!1,"aria-owns":M});var B=angular.element("<div typeahead-popup></div>");B.attr({id:M,matches:"matches",active:"activeIdx",select:"select(activeIdx)","move-in-progress":"moveInProgress",query:"query",position:"position"}),angular.isDefined(d.typeaheadTemplateUrl)&&B.attr("template-url",d.typeaheadTemplateUrl),angular.isDefined(d.typeaheadPopupTemplateUrl)&&B.attr("popup-template-url",d.typeaheadPopupTemplateUrl);var U=function(){L.matches=[],L.activeIdx=-1,f.attr("aria-expanded",!1)},H=function(e){return M+"-option-"+e};L.$watch("activeIdx",(function(e){0>e?f.removeAttr("aria-activedescendant"):f.attr("aria-activedescendant",H(e))}));var V,q=function(e){var t={$viewValue:e};A(p,!0),F(p,!1),n.when(j.source(p,t)).then((function(n){var r=e===y.$viewValue;if(r&&w)if(n&&n.length>0){L.activeIdx=D?0:-1,F(p,!1),L.matches.length=0;for(var i=0;i<n.length;i++)t[j.itemName]=n[i],L.matches.push({id:H(i),label:j.viewMapper(L,t),model:n[i]});L.query=e,v(),f.attr("aria-expanded",!0),O&&1===L.matches.length&&function(e,t){return!!(L.matches.length>t&&e)&&e.toUpperCase()===L.matches[t].label.toUpperCase()}(e,0)&&L.select(0)}else U(),F(p,!0);r&&A(p,!1)}),(function(){U(),A(p,!1),F(p,!0)}))};R&&(angular.element(o).bind("resize",m),i.find("body").bind("scroll",m)),L.moveInProgress=!1,U(),L.query=void 0;var z,K=function(){z&&r.cancel(z)};y.$parsers.unshift((function(e){return w=!0,0===$||e&&e.length>=$?S>0?(K(),function(e){z=r((function(){q(e)}),S)}(e)):q(e):(A(p,!1),K(),U()),E?e:e?void y.$setValidity("editable",!1):(y.$setValidity("editable",!0),null)})),y.$formatters.push((function(e){var t,n={};return E||y.$setValidity("editable",!0),k?(n.$model=e,k(p,n)):(n[j.itemName]=e,t=j.viewMapper(p,n),n[j.itemName]=void 0,t!==j.viewMapper(p,n)?t:e)})),L.select=function(e){var t,n,i={};x=!0,i[j.itemName]=n=L.matches[e].model,t=j.modelMapper(p,i),function(e,t){angular.isFunction(I(p))&&b&&b.$options&&b.$options.getterSetter?_(e,{$$$p:t}):I.assign(e,t)}(p,t),y.$setValidity("editable",!0),y.$setValidity("parse",!0),C(p,{$item:n,$model:t,$label:j.viewMapper(p,i)}),U(),!1!==L.$eval(d.typeaheadFocusOnSelect)&&r((function(){f[0].focus()}),0,!1)},f.bind("keydown",(function(e){if(0!==L.matches.length&&-1!==h.indexOf(e.which)){if(-1===L.activeIdx&&(9===e.which||13===e.which))return U(),void L.$digest();e.preventDefault(),40===e.which?(L.activeIdx=(L.activeIdx+1)%L.matches.length,L.$digest()):38===e.which?(L.activeIdx=(L.activeIdx>0?L.activeIdx:L.matches.length)-1,L.$digest()):13===e.which||9===e.which?L.$apply((function(){L.select(L.activeIdx)})):27===e.which&&(e.stopPropagation(),U(),L.$digest())}})),f.bind("blur",(function(){T&&L.matches.length&&-1!==L.activeIdx&&!x&&(x=!0,L.$apply((function(){L.select(L.activeIdx)}))),w=!1,x=!1}));var G=function(e){f[0]!==e.target&&3!==e.which&&0!==L.matches.length&&(U(),a.$$phase||L.$digest())};i.bind("click",G),p.$on("$destroy",(function(){i.unbind("click",G),(R||P)&&W.remove(),R&&(angular.element(o).unbind("resize",m),i.find("body").unbind("scroll",m)),B.remove()}));var W=e(B)(L);R?i.find("body").append(W):!1!==P?angular.element(i[0].getElementById(P)).append(W):f.after(W)}}}]).directive("typeaheadPopup",["$typeaheadSuppressWarning","$log",function(e,t){return{scope:{matches:"=",query:"=",active:"=",position:"&",moveInProgress:"=",select:"&"},replace:!0,templateUrl:function(e,t){return t.popupTemplateUrl||"template/typeahead/typeahead-popup.html"},link:function(n,r,i){e||t.warn("typeahead-popup is now deprecated. Use uib-typeahead-popup instead."),n.templateUrl=i.templateUrl,n.isOpen=function(){return n.matches.length>0},n.isActive=function(e){return n.active==e},n.selectActive=function(e){n.active=e},n.selectMatch=function(e){n.select({activeIdx:e})}}}}]).directive("typeaheadMatch",["$templateRequest","$compile","$parse","$typeaheadSuppressWarning","$log",function(e,t,n,r,i){return{restrict:"EA",scope:{index:"=",match:"=",query:"="},link:function(o,a,s){r||i.warn("typeahead-match is now deprecated. Use uib-typeahead-match instead.");var u=n(s.templateUrl)(o.$parent)||"template/typeahead/typeahead-match.html";e(u).then((function(e){t(e.trim())(o,(function(e){a.replaceWith(e)}))}))}}}]).filter("typeaheadHighlight",["$sce","$injector","$log","$typeaheadSuppressWarning",function(e,t,n,r){var i;return i=t.has("$sanitize"),function(t,o){return r||n.warn("typeaheadHighlight is now deprecated. Use uibTypeaheadHighlight instead."),!i&&function(e){return/<.*>/g.test(e)}(t)&&n.warn("Unsafe use of typeahead please use ngSanitize"),t=o?(""+t).replace(new RegExp(function(e){return e.replace(/([.?*+^$[\]\\(){}|-])/g,"\\$1")}(o),"gi"),"<strong>$&</strong>"):t,i||(t=e.trustAsHtml(t)),t}}]),angular.module("template/accordion/accordion-group.html",[]).run(["$templateCache",function(e){e.put("template/accordion/accordion-group.html",'<div class="panel {{panelClass || \'panel-default\'}}">\n <div class="panel-heading" ng-keypress="toggleOpen($event)">\n <h4 class="panel-title">\n <a href tabindex="0" class="accordion-toggle" ng-click="toggleOpen()" uib-accordion-transclude="heading"><span ng-class="{\'text-muted\': isDisabled}">{{heading}}</span></a>\n </h4>\n </div>\n <div class="panel-collapse collapse" uib-collapse="!isOpen">\n\t <div class="panel-body" ng-transclude></div>\n </div>\n</div>\n')}]),angular.module("template/accordion/accordion.html",[]).run(["$templateCache",function(e){e.put("template/accordion/accordion.html",'<div class="panel-group" ng-transclude></div>')}]),angular.module("template/alert/alert.html",[]).run(["$templateCache",function(e){e.put("template/alert/alert.html",'<div class="alert" ng-class="[\'alert-\' + (type || \'warning\'), closeable ? \'alert-dismissible\' : null]" role="alert">\n <button ng-show="closeable" type="button" class="close" ng-click="close({$event: $event})">\n <span aria-hidden="true">&times;</span>\n <span class="sr-only">Close</span>\n </button>\n <div ng-transclude></div>\n</div>\n')}]),angular.module("template/carousel/carousel.html",[]).run(["$templateCache",function(e){e.put("template/carousel/carousel.html",'<div ng-mouseenter="pause()" ng-mouseleave="play()" class="carousel" ng-swipe-right="prev()" ng-swipe-left="next()">\n <div class="carousel-inner" ng-transclude></div>\n <a role="button" href class="left carousel-control" ng-click="prev()" ng-show="slides.length > 1">\n <span aria-hidden="true" class="glyphicon glyphicon-chevron-left"></span>\n <span class="sr-only">previous</span>\n </a>\n <a role="button" href class="right carousel-control" ng-click="next()" ng-show="slides.length > 1">\n <span aria-hidden="true" class="glyphicon glyphicon-chevron-right"></span>\n <span class="sr-only">next</span>\n </a>\n <ol class="carousel-indicators" ng-show="slides.length > 1">\n <li ng-repeat="slide in slides | orderBy:indexOfSlide track by $index" ng-class="{ active: isActive(slide) }" ng-click="select(slide)">\n <span class="sr-only">slide {{ $index + 1 }} of {{ slides.length }}<span ng-if="isActive(slide)">, currently active</span></span>\n </li>\n </ol>\n</div>')}]),angular.module("template/carousel/slide.html",[]).run(["$templateCache",function(e){e.put("template/carousel/slide.html",'<div ng-class="{\n \'active\': active\n }" class="item text-center" ng-transclude></div>\n')}]),angular.module("template/datepicker/datepicker.html",[]).run(["$templateCache",function(e){e.put("template/datepicker/datepicker.html",'<div ng-switch="datepickerMode" role="application" ng-keydown="keydown($event)">\n <uib-daypicker ng-switch-when="day" tabindex="0"></uib-daypicker>\n <uib-monthpicker ng-switch-when="month" tabindex="0"></uib-monthpicker>\n <uib-yearpicker ng-switch-when="year" tabindex="0"></uib-yearpicker>\n</div>')}]),angular.module("template/datepicker/day.html",[]).run(["$templateCache",function(e){e.put("template/datepicker/day.html",'<table role="grid" aria-labelledby="{{::uniqueId}}-title" aria-activedescendant="{{activeDateId}}">\n <thead>\n <tr>\n <th><button type="button" class="btn btn-default btn-sm pull-left" ng-click="move(-1)" tabindex="-1"><i class="glyphicon glyphicon-chevron-left"></i></button></th>\n <th colspan="{{::5 + showWeeks}}"><button id="{{::uniqueId}}-title" role="heading" aria-live="assertive" aria-atomic="true" type="button" class="btn btn-default btn-sm" ng-click="toggleMode()" ng-disabled="datepickerMode === maxMode" tabindex="-1" style="width:100%;"><strong>{{title}}</strong></button></th>\n <th><button type="button" class="btn btn-default btn-sm pull-right" ng-click="move(1)" tabindex="-1"><i class="glyphicon glyphicon-chevron-right"></i></button></th>\n </tr>\n <tr>\n <th ng-if="showWeeks" class="text-center"></th>\n <th ng-repeat="label in ::labels track by $index" class="text-center"><small aria-label="{{::label.full}}">{{::label.abbr}}</small></th>\n </tr>\n </thead>\n <tbody>\n <tr ng-repeat="row in rows track by $index">\n <td ng-if="showWeeks" class="text-center h6"><em>{{ weekNumbers[$index] }}</em></td>\n <td ng-repeat="dt in row track by dt.date" class="text-center" role="gridcell" id="{{::dt.uid}}" ng-class="::dt.customClass">\n <button type="button" style="min-width:100%;" class="btn btn-default btn-sm" ng-class="{\'btn-info\': dt.selected, active: isActive(dt)}" ng-click="select(dt.date)" ng-disabled="dt.disabled" tabindex="-1"><span ng-class="::{\'text-muted\': dt.secondary, \'text-info\': dt.current}">{{::dt.label}}</span></button>\n </td>\n </tr>\n </tbody>\n</table>\n')}]),angular.module("template/datepicker/month.html",[]).run(["$templateCache",function(e){e.put("template/datepicker/month.html",'<table role="grid" aria-labelledby="{{::uniqueId}}-title" aria-activedescendant="{{activeDateId}}">\n <thead>\n <tr>\n <th><button type="button" class="btn btn-default btn-sm pull-left" ng-click="move(-1)" tabindex="-1"><i class="glyphicon glyphicon-chevron-left"></i></button></th>\n <th><button id="{{::uniqueId}}-title" role="heading" aria-live="assertive" aria-atomic="true" type="button" class="btn btn-default btn-sm" ng-click="toggleMode()" ng-disabled="datepickerMode === maxMode" tabindex="-1" style="width:100%;"><strong>{{title}}</strong></button></th>\n <th><button type="button" class="btn btn-default btn-sm pull-right" ng-click="move(1)" tabindex="-1"><i class="glyphicon glyphicon-chevron-right"></i></button></th>\n </tr>\n </thead>\n <tbody>\n <tr ng-repeat="row in rows track by $index">\n <td ng-repeat="dt in row track by dt.date" class="text-center" role="gridcell" id="{{::dt.uid}}" ng-class="::dt.customClass">\n <button type="button" style="min-width:100%;" class="btn btn-default" ng-class="{\'btn-info\': dt.selected, active: isActive(dt)}" ng-click="select(dt.date)" ng-disabled="dt.disabled" tabindex="-1"><span ng-class="::{\'text-info\': dt.current}">{{::dt.label}}</span></button>\n </td>\n </tr>\n </tbody>\n</table>\n')}]),angular.module("template/datepicker/popup.html",[]).run(["$templateCache",function(e){e.put("template/datepicker/popup.html",'<ul class="dropdown-menu" dropdown-nested ng-if="isOpen" style="display: block" ng-style="{top: position.top+\'px\', left: position.left+\'px\'}" ng-keydown="keydown($event)" ng-click="$event.stopPropagation()">\n\t<li ng-transclude></li>\n\t<li ng-if="showButtonBar" style="padding:10px 9px 2px">\n\t\t<span class="btn-group pull-left">\n\t\t\t<button type="button" class="btn btn-sm btn-info" ng-click="select(\'today\')" ng-disabled="isDisabled(\'today\')">{{ getText(\'current\') }}</button>\n\t\t\t<button type="button" class="btn btn-sm btn-danger" ng-click="select(null)">{{ getText(\'clear\') }}</button>\n\t\t</span>\n\t\t<button type="button" class="btn btn-sm btn-success pull-right" ng-click="close()">{{ getText(\'close\') }}</button>\n\t</li>\n</ul>\n')}]),angular.module("template/datepicker/year.html",[]).run(["$templateCache",function(e){e.put("template/datepicker/year.html",'<table role="grid" aria-labelledby="{{::uniqueId}}-title" aria-activedescendant="{{activeDateId}}">\n <thead>\n <tr>\n <th><button type="button" class="btn btn-default btn-sm pull-left" ng-click="move(-1)" tabindex="-1"><i class="glyphicon glyphicon-chevron-left"></i></button></th>\n <th colspan="3"><button id="{{::uniqueId}}-title" role="heading" aria-live="assertive" aria-atomic="true" type="button" class="btn btn-default btn-sm" ng-click="toggleMode()" ng-disabled="datepickerMode === maxMode" tabindex="-1" style="width:100%;"><strong>{{title}}</strong></button></th>\n <th><button type="button" class="btn btn-default btn-sm pull-right" ng-click="move(1)" tabindex="-1"><i class="glyphicon glyphicon-chevron-right"></i></button></th>\n </tr>\n </thead>\n <tbody>\n <tr ng-repeat="row in rows track by $index">\n <td ng-repeat="dt in row track by dt.date" class="text-center" role="gridcell" id="{{::dt.uid}}" ng-class="::dt.customClass">\n <button type="button" style="min-width:100%;" class="btn btn-default" ng-class="{\'btn-info\': dt.selected, active: isActive(dt)}" ng-click="select(dt.date)" ng-disabled="dt.disabled" tabindex="-1"><span ng-class="::{\'text-info\': dt.current}">{{::dt.label}}</span></button>\n </td>\n </tr>\n </tbody>\n</table>\n')}]),angular.module("template/modal/backdrop.html",[]).run(["$templateCache",function(e){e.put("template/modal/backdrop.html",'<div uib-modal-animation-class="fade"\n modal-in-class="in"\n ng-style="{\'z-index\': 1040 + (index && 1 || 0) + index*10}"\n></div>\n')}]),angular.module("template/modal/window.html",[]).run(["$templateCache",function(e){e.put("template/modal/window.html",'<div modal-render="{{$isRendered}}" tabindex="-1" role="dialog" class="modal"\n uib-modal-animation-class="fade"\n modal-in-class="in"\n ng-style="{\'z-index\': 1050 + index*10, display: \'block\'}">\n <div class="modal-dialog" ng-class="size ? \'modal-\' + size : \'\'"><div class="modal-content" uib-modal-transclude></div></div>\n</div>\n')}]),angular.module("template/pagination/pager.html",[]).run(["$templateCache",function(e){e.put("template/pagination/pager.html",'<ul class="pager">\n <li ng-class="{disabled: noPrevious()||ngDisabled, previous: align}"><a href ng-click="selectPage(page - 1, $event)">{{::getText(\'previous\')}}</a></li>\n <li ng-class="{disabled: noNext()||ngDisabled, next: align}"><a href ng-click="selectPage(page + 1, $event)">{{::getText(\'next\')}}</a></li>\n</ul>\n')}]),angular.module("template/pagination/pagination.html",[]).run(["$templateCache",function(e){e.put("template/pagination/pagination.html",'<ul class="pagination">\n <li ng-if="::boundaryLinks" ng-class="{disabled: noPrevious()||ngDisabled}" class="pagination-first"><a href ng-click="selectPage(1, $event)">{{::getText(\'first\')}}</a></li>\n <li ng-if="::directionLinks" ng-class="{disabled: noPrevious()||ngDisabled}" class="pagination-prev"><a href ng-click="selectPage(page - 1, $event)">{{::getText(\'previous\')}}</a></li>\n <li ng-repeat="page in pages track by $index" ng-class="{active: page.active,disabled: ngDisabled&&!page.active}" class="pagination-page"><a href ng-click="selectPage(page.number, $event)">{{page.text}}</a></li>\n <li ng-if="::directionLinks" ng-class="{disabled: noNext()||ngDisabled}" class="pagination-next"><a href ng-click="selectPage(page + 1, $event)">{{::getText(\'next\')}}</a></li>\n <li ng-if="::boundaryLinks" ng-class="{disabled: noNext()||ngDisabled}" class="pagination-last"><a href ng-click="selectPage(totalPages, $event)">{{::getText(\'last\')}}</a></li>\n</ul>\n')}]),angular.module("template/tooltip/tooltip-html-popup.html",[]).run(["$templateCache",function(e){e.put("template/tooltip/tooltip-html-popup.html",'<div\n tooltip-animation-class="fade"\n uib-tooltip-classes\n ng-class="{ in: isOpen() }">\n <div class="tooltip-arrow"></div>\n <div class="tooltip-inner" ng-bind-html="contentExp()"></div>\n</div>\n')}]),angular.module("template/tooltip/tooltip-popup.html",[]).run(["$templateCache",function(e){e.put("template/tooltip/tooltip-popup.html",'<div\n tooltip-animation-class="fade"\n uib-tooltip-classes\n ng-class="{ in: isOpen() }">\n <div class="tooltip-arrow"></div>\n <div class="tooltip-inner" ng-bind="content"></div>\n</div>\n')}]),angular.module("template/tooltip/tooltip-template-popup.html",[]).run(["$templateCache",function(e){e.put("template/tooltip/tooltip-template-popup.html",'<div\n tooltip-animation-class="fade"\n uib-tooltip-classes\n ng-class="{ in: isOpen() }">\n <div class="tooltip-arrow"></div>\n <div class="tooltip-inner"\n uib-tooltip-template-transclude="contentExp()"\n tooltip-template-transclude-scope="originScope()"></div>\n</div>\n')}]),angular.module("template/popover/popover-html.html",[]).run(["$templateCache",function(e){e.put("template/popover/popover-html.html",'<div tooltip-animation-class="fade"\n uib-tooltip-classes\n ng-class="{ in: isOpen() }">\n <div class="arrow"></div>\n\n <div class="popover-inner">\n <h3 class="popover-title" ng-bind="title" ng-if="title"></h3>\n <div class="popover-content" ng-bind-html="contentExp()"></div>\n </div>\n</div>\n')}]),angular.module("template/popover/popover-template.html",[]).run(["$templateCache",function(e){e.put("template/popover/popover-template.html",'<div tooltip-animation-class="fade"\n uib-tooltip-classes\n ng-class="{ in: isOpen() }">\n <div class="arrow"></div>\n\n <div class="popover-inner">\n <h3 class="popover-title" ng-bind="title" ng-if="title"></h3>\n <div class="popover-content"\n uib-tooltip-template-transclude="contentExp()"\n tooltip-template-transclude-scope="originScope()"></div>\n </div>\n</div>\n')}]),angular.module("template/popover/popover.html",[]).run(["$templateCache",function(e){e.put("template/popover/popover.html",'<div tooltip-animation-class="fade"\n uib-tooltip-classes\n ng-class="{ in: isOpen() }">\n <div class="arrow"></div>\n\n <div class="popover-inner">\n <h3 class="popover-title" ng-bind="title" ng-if="title"></h3>\n <div class="popover-content" ng-bind="content"></div>\n </div>\n</div>\n')}]),angular.module("template/progressbar/bar.html",[]).run(["$templateCache",function(e){e.put("template/progressbar/bar.html",'<div class="progress-bar" ng-class="type && \'progress-bar-\' + type" role="progressbar" aria-valuenow="{{value}}" aria-valuemin="0" aria-valuemax="{{max}}" ng-style="{width: (percent < 100 ? percent : 100) + \'%\'}" aria-valuetext="{{percent | number:0}}%" aria-labelledby="{{::title}}" style="min-width: 0;" ng-transclude></div>\n')}]),angular.module("template/progressbar/progress.html",[]).run(["$templateCache",function(e){e.put("template/progressbar/progress.html",'<div class="progress" ng-transclude aria-labelledby="{{::title}}"></div>')}]),angular.module("template/progressbar/progressbar.html",[]).run(["$templateCache",function(e){e.put("template/progressbar/progressbar.html",'<div class="progress">\n <div class="progress-bar" ng-class="type && \'progress-bar-\' + type" role="progressbar" aria-valuenow="{{value}}" aria-valuemin="0" aria-valuemax="{{max}}" ng-style="{width: (percent < 100 ? percent : 100) + \'%\'}" aria-valuetext="{{percent | number:0}}%" aria-labelledby="{{::title}}" style="min-width: 0;" ng-transclude></div>\n</div>\n')}]),angular.module("template/rating/rating.html",[]).run(["$templateCache",function(e){e.put("template/rating/rating.html",'<span ng-mouseleave="reset()" ng-keydown="onKeydown($event)" tabindex="0" role="slider" aria-valuemin="0" aria-valuemax="{{range.length}}" aria-valuenow="{{value}}">\n <span ng-repeat-start="r in range track by $index" class="sr-only">({{ $index < value ? \'*\' : \' \' }})</span>\n <i ng-repeat-end ng-mouseenter="enter($index + 1)" ng-click="rate($index + 1)" class="glyphicon" ng-class="$index < value && (r.stateOn || \'glyphicon-star\') || (r.stateOff || \'glyphicon-star-empty\')" ng-attr-title="{{r.title}}" aria-valuetext="{{r.title}}"></i>\n</span>\n')}]),angular.module("template/tabs/tab.html",[]).run(["$templateCache",function(e){e.put("template/tabs/tab.html",'<li ng-class="{active: active, disabled: disabled}">\n <a href ng-click="select()" uib-tab-heading-transclude>{{heading}}</a>\n</li>\n')}]),angular.module("template/tabs/tabset.html",[]).run(["$templateCache",function(e){e.put("template/tabs/tabset.html",'<div>\n <ul class="nav nav-{{type || \'tabs\'}}" ng-class="{\'nav-stacked\': vertical, \'nav-justified\': justified}" ng-transclude></ul>\n <div class="tab-content">\n <div class="tab-pane" \n ng-repeat="tab in tabs" \n ng-class="{active: tab.active}"\n uib-tab-content-transclude="tab">\n </div>\n </div>\n</div>\n')}]),angular.module("template/timepicker/timepicker.html",[]).run(["$templateCache",function(e){e.put("template/timepicker/timepicker.html",'<table>\n <tbody>\n <tr class="text-center" ng-show="::showSpinners">\n <td><a ng-click="incrementHours()" ng-class="{disabled: noIncrementHours()}" class="btn btn-link" ng-disabled="noIncrementHours()" tabindex="{{::tabindex}}"><span class="glyphicon glyphicon-chevron-up"></span></a></td>\n <td>&nbsp;</td>\n <td><a ng-click="incrementMinutes()" ng-class="{disabled: noIncrementMinutes()}" class="btn btn-link" ng-disabled="noIncrementMinutes()" tabindex="{{::tabindex}}"><span class="glyphicon glyphicon-chevron-up"></span></a></td>\n <td ng-show="showMeridian"></td>\n </tr>\n <tr>\n <td class="form-group" ng-class="{\'has-error\': invalidHours}">\n <input style="width:50px;" type="text" ng-model="hours" ng-change="updateHours()" class="form-control text-center" ng-readonly="::readonlyInput" maxlength="2" tabindex="{{::tabindex}}">\n </td>\n <td>:</td>\n <td class="form-group" ng-class="{\'has-error\': invalidMinutes}">\n <input style="width:50px;" type="text" ng-model="minutes" ng-change="updateMinutes()" class="form-control text-center" ng-readonly="::readonlyInput" maxlength="2" tabindex="{{::tabindex}}">\n </td>\n <td ng-show="showMeridian"><button type="button" ng-class="{disabled: noToggleMeridian()}" class="btn btn-default text-center" ng-click="toggleMeridian()" ng-disabled="noToggleMeridian()" tabindex="{{::tabindex}}">{{meridian}}</button></td>\n </tr>\n <tr class="text-center" ng-show="::showSpinners">\n <td><a ng-click="decrementHours()" ng-class="{disabled: noDecrementHours()}" class="btn btn-link" ng-disabled="noDecrementHours()" tabindex="{{::tabindex}}"><span class="glyphicon glyphicon-chevron-down"></span></a></td>\n <td>&nbsp;</td>\n <td><a ng-click="decrementMinutes()" ng-class="{disabled: noDecrementMinutes()}" class="btn btn-link" ng-disabled="noDecrementMinutes()" tabindex="{{::tabindex}}"><span class="glyphicon glyphicon-chevron-down"></span></a></td>\n <td ng-show="showMeridian"></td>\n </tr>\n </tbody>\n</table>\n')}]),angular.module("template/typeahead/typeahead-match.html",[]).run(["$templateCache",function(e){e.put("template/typeahead/typeahead-match.html",'<a href tabindex="-1" ng-bind-html="match.label | uibTypeaheadHighlight:query"></a>\n')}]),angular.module("template/typeahead/typeahead-popup.html",[]).run(["$templateCache",function(e){e.put("template/typeahead/typeahead-popup.html",'<ul class="dropdown-menu" ng-show="isOpen() && !moveInProgress" ng-style="{top: position().top+\'px\', left: position().left+\'px\'}" style="display: block;" role="listbox" aria-hidden="{{!isOpen()}}">\n <li ng-repeat="match in matches track by $index" ng-class="{active: isActive($index) }" ng-mouseenter="selectActive($index)" ng-click="selectMatch($index)" role="option" id="{{::match.id}}">\n <div uib-typeahead-match index="$index" match="match" query="query" template-url="templateUrl"></div>\n </li>\n</ul>\n')}]),!angular.$$csp()&&angular.element(document).find("head").prepend('<style type="text/css">.ng-animate.item:not(.left):not(.right){-webkit-transition:0s ease-in-out left;transition:0s ease-in-out left}</style>')},519:function(e,t,n){var r,i,o;o=function(){angular.module("jlareau.bowser",[]).factory("bowser",(function(){
32
+ /*!
33
+ * Bowser - a browser detector
34
+ * https://github.com/ded/bowser
35
+ * MIT License | (c) Dustin Diaz 2015
36
+ */
37
+ var e=!0;function t(t){function n(e){var n=t.match(e);return n&&n.length>1&&n[1]||""}var r,i,o,a=n(/(ipod|iphone|ipad)/i).toLowerCase(),s=!/like android/i.test(t)&&/android/i.test(t),u=/nexus\s*[0-6]\s*/i.test(t),l=!u&&/nexus\s*[0-9]+/i.test(t),c=/CrOS/.test(t),h=/silk/i.test(t),p=/sailfish/i.test(t),f=/tizen/i.test(t),d=/(web|hpw)os/i.test(t),g=/windows phone/i.test(t),m=!g&&/windows/i.test(t),v=!a&&!h&&/macintosh/i.test(t),y=!s&&!p&&!f&&!d&&/linux/i.test(t),b=n(/edge\/(\d+(\.\d+)?)/i),$=n(/version\/(\d+(\.\d+)?)/i),w=/tablet/i.test(t),x=!w&&/[^-]mobi/i.test(t),S=/xbox/i.test(t);/opera|opr|opios/i.test(t)?r={name:"Opera",opera:e,version:$||n(/(?:opera|opr|opios)[\s\/](\d+(\.\d+)?)/i)}:/coast/i.test(t)?r={name:"Opera Coast",coast:e,version:$||n(/(?:coast)[\s\/](\d+(\.\d+)?)/i)}:/yabrowser/i.test(t)?r={name:"Yandex Browser",yandexbrowser:e,version:$||n(/(?:yabrowser)[\s\/](\d+(\.\d+)?)/i)}:/ucbrowser/i.test(t)?r={name:"UC Browser",ucbrowser:e,version:n(/(?:ucbrowser)[\s\/](\d+(?:\.\d+)+)/i)}:/mxios/i.test(t)?r={name:"Maxthon",maxthon:e,version:n(/(?:mxios)[\s\/](\d+(?:\.\d+)+)/i)}:/epiphany/i.test(t)?r={name:"Epiphany",epiphany:e,version:n(/(?:epiphany)[\s\/](\d+(?:\.\d+)+)/i)}:/puffin/i.test(t)?r={name:"Puffin",puffin:e,version:n(/(?:puffin)[\s\/](\d+(?:\.\d+)?)/i)}:/sleipnir/i.test(t)?r={name:"Sleipnir",sleipnir:e,version:n(/(?:sleipnir)[\s\/](\d+(?:\.\d+)+)/i)}:/k-meleon/i.test(t)?r={name:"K-Meleon",kMeleon:e,version:n(/(?:k-meleon)[\s\/](\d+(?:\.\d+)+)/i)}:g?(r={name:"Windows Phone",windowsphone:e},b?(r.msedge=e,r.version=b):(r.msie=e,r.version=n(/iemobile\/(\d+(\.\d+)?)/i))):/msie|trident/i.test(t)?r={name:"Internet Explorer",msie:e,version:n(/(?:msie |rv:)(\d+(\.\d+)?)/i)}:c?r={name:"Chrome",chromeos:e,chromeBook:e,chrome:e,version:n(/(?:chrome|crios|crmo)\/(\d+(\.\d+)?)/i)}:/chrome.+? edge/i.test(t)?r={name:"Microsoft Edge",msedge:e,version:b}:/vivaldi/i.test(t)?r={name:"Vivaldi",vivaldi:e,version:n(/vivaldi\/(\d+(\.\d+)?)/i)||$}:p?r={name:"Sailfish",sailfish:e,version:n(/sailfish\s?browser\/(\d+(\.\d+)?)/i)}:/seamonkey\//i.test(t)?r={name:"SeaMonkey",seamonkey:e,version:n(/seamonkey\/(\d+(\.\d+)?)/i)}:/firefox|iceweasel|fxios/i.test(t)?(r={name:"Firefox",firefox:e,version:n(/(?:firefox|iceweasel|fxios)[ \/](\d+(\.\d+)?)/i)},/\((mobile|tablet);[^\)]*rv:[\d\.]+\)/i.test(t)&&(r.firefoxos=e)):h?r={name:"Amazon Silk",silk:e,version:n(/silk\/(\d+(\.\d+)?)/i)}:/phantom/i.test(t)?r={name:"PhantomJS",phantom:e,version:n(/phantomjs\/(\d+(\.\d+)?)/i)}:/slimerjs/i.test(t)?r={name:"SlimerJS",slimer:e,version:n(/slimerjs\/(\d+(\.\d+)?)/i)}:/blackberry|\bbb\d+/i.test(t)||/rim\stablet/i.test(t)?r={name:"BlackBerry",blackberry:e,version:$||n(/blackberry[\d]+\/(\d+(\.\d+)?)/i)}:d?(r={name:"WebOS",webos:e,version:$||n(/w(?:eb)?osbrowser\/(\d+(\.\d+)?)/i)},/touchpad\//i.test(t)&&(r.touchpad=e)):/bada/i.test(t)?r={name:"Bada",bada:e,version:n(/dolfin\/(\d+(\.\d+)?)/i)}:f?r={name:"Tizen",tizen:e,version:n(/(?:tizen\s?)?browser\/(\d+(\.\d+)?)/i)||$}:/qupzilla/i.test(t)?r={name:"QupZilla",qupzilla:e,version:n(/(?:qupzilla)[\s\/](\d+(?:\.\d+)+)/i)||$}:/chromium/i.test(t)?r={name:"Chromium",chromium:e,version:n(/(?:chromium)[\s\/](\d+(?:\.\d+)?)/i)||$}:/chrome|crios|crmo/i.test(t)?r={name:"Chrome",chrome:e,version:n(/(?:chrome|crios|crmo)\/(\d+(\.\d+)?)/i)}:s?r={name:"Android",version:$}:/safari|applewebkit/i.test(t)?(r={name:"Safari",safari:e},$&&(r.version=$)):a?(r={name:"iphone"==a?"iPhone":"ipad"==a?"iPad":"iPod"},$&&(r.version=$)):r=/googlebot/i.test(t)?{name:"Googlebot",googlebot:e,version:n(/googlebot\/(\d+(\.\d+))/i)||$}:{name:n(/^(.*)\/(.*) /),version:(i=/^(.*)\/(.*) /,o=t.match(i),o&&o.length>1&&o[2]||"")},!r.msedge&&/(apple)?webkit/i.test(t)?(/(apple)?webkit\/537\.36/i.test(t)?(r.name=r.name||"Blink",r.blink=e):(r.name=r.name||"Webkit",r.webkit=e),!r.version&&$&&(r.version=$)):!r.opera&&/gecko\//i.test(t)&&(r.name=r.name||"Gecko",r.gecko=e,r.version=r.version||n(/gecko\/(\d+(\.\d+)?)/i)),r.msedge||!s&&!r.silk?a?(r[a]=e,r.ios=e):v?r.mac=e:S?r.xbox=e:m?r.windows=e:y&&(r.linux=e):r.android=e;var E="";r.windowsphone?E=n(/windows phone (?:os)?\s?(\d+(\.\d+)*)/i):a?E=(E=n(/os (\d+([_\s]\d+)*) like mac os x/i)).replace(/[_\s]/g,"."):s?E=n(/android[ \/-](\d+(\.\d+)*)/i):r.webos?E=n(/(?:web|hpw)os\/(\d+(\.\d+)*)/i):r.blackberry?E=n(/rim\stablet\sos\s(\d+(\.\d+)*)/i):r.bada?E=n(/bada\/(\d+(\.\d+)*)/i):r.tizen&&(E=n(/tizen[\/\s](\d+(\.\d+)*)/i)),E&&(r.osversion=E);var A=E.split(".")[0];return w||l||"ipad"==a||s&&(3==A||A>=4&&!x)||r.silk?r.tablet=e:(x||"iphone"==a||"ipod"==a||s||u||r.blackberry||r.webos||r.bada)&&(r.mobile=e),r.msedge||r.msie&&r.version>=10||r.yandexbrowser&&r.version>=15||r.vivaldi&&r.version>=1||r.chrome&&r.version>=20||r.firefox&&r.version>=20||r.safari&&r.version>=6||r.opera&&r.version>=10||r.ios&&r.osversion&&r.osversion.split(".")[0]>=6||r.blackberry&&r.version>=10.1?r.a=e:r.msie&&r.version<10||r.chrome&&r.version<20||r.firefox&&r.version<20||r.safari&&r.version<6||r.opera&&r.version<10||r.ios&&r.osversion&&r.osversion.split(".")[0]<6?r.c=e:r.x=e,r}var n=t("undefined"!=typeof navigator?navigator.userAgent:"");return n.test=function(e){for(var t=0;t<e.length;++t){var r=e[t];if("string"==typeof r&&r in n)return!0}return!1},n._detect=t,n}))},e.exports?e.exports=o():void 0===(i="function"==typeof(r=o)?r.call(t,n,t,e):r)||(e.exports=i)},52:function(e,t,n){"use strict";n.r(t);n(15);var r=n(1);function i(e){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function o(){return{template:function(e,t){return'<object width="'+t.size+'" height="'+t.size+'" data="js/angular/templates/loader/ot-loader.svg?v=3.0.1-RC2">{{\'common.loading\' | translate}}</object>'}}}function a(){return{template:function(e,t){var n="";return n=t.hideMessage?"":t.message?"<div>".concat(t.message,"</div>"):"<div>{{'common.loading' | translate}}<div>",'\n <object width="'.concat(t.size,'" height="').concat(t.size,'" data="js/angular/templates/loader/ot-loader.svg?v=3.0.1-RC2"></object>\n ').concat(n,"\n ")}}}function s(e){var t=function(e,n){n.timer=void 0,n.currentMessage=n.getMessage();var r=n.timeout[n.index%n.timeout.length];r&&(n.timer=e((function(){(n.index+1<n.message.length||0===n.message.length)&&(n.index++,t(e,n))}),1e3*r))};return{restrict:"EA",scope:{size:"@",trigger:"@",messageAttr:"=*message",timeoutAttr:"=*timeout",ngShow:"=",ngHide:"="},link:function(n){n.message=n.messageAttr,n.getMessage=function(){return n.message[n.index]},void 0===n.message?n.message=[""]:"function"==typeof n.message?(n.getMessage=n.message,n.message=[]):"object"!==i(n.message)&&(n.message=[n.message]),n.timeout=n.timeoutAttr,void 0===n.timeout?n.timeout=[0]:"object"!==i(n.timeout)&&(n.timeout=[n.timeout]),n.index=0,t(e,n);var r=function(r){n.timer&&e.cancel(n.timer),r&&(n.index=0,t(e,n))};n.$watch("ngShow",(function(e){r(e)})),n.$watch("ngHide",(function(e){r(!e)})),n.$on("$destroy",(function(){n.timer&&e.cancel(n.timer)}))},template:'<div class="ot-loader-new-content" guide-selector="loader-spinner"><img width="{{size}}" height="{{size}}" src="js/angular/templates/loader/ot-loader.svg?v=3.0.1-RC2"/><div style="font-size: {{size/4}}px">{{currentMessage}}<div></div>'}}function u(e){return{restrict:"EA",transclude:!0,templateUrl:"js/angular/core/templates/core-errors.html",link:function(t,n,r){var i;t.$watch("getActiveRepository()",(function(e){e&&!t.isRestricted?n.hide():n.show()})),t.setAttrs(r),t.setRestricted(),t.showRemoteLocations=!1,t.toggleShowRemoteLocations=function(){t.showRemoteLocations=!t.showRemoteLocations},t.getAccessibleRepositories=function(){var e=function(e){return!0};return t.showRemoteLocations||(e=function(e){return e.local}),t.isRestricted?t.getWritableRepositories().filter(e):t.getReadableRepositories().filter(e)},t.showPopoverForRepo=function(n,r){t.hidePopoverForRepo(),t.setPopoverRepo(r),e((function(){var e=$(n.toElement).find(".popover-anchor")[0];i=e,e&&!t.getActiveRepository()&&e.dispatchEvent(new Event("show"))})),n.stopPropagation()},t.hidePopoverForRepo=function(t){if(t)for(var n=t.relatedTarget;n;){if(0===n.className.indexOf("popover"))return;n=n.parentElement}i&&e((function(){i&&(i.dispatchEvent(new Event("hide")),i=null)})),t&&t.stopPropagation()}}}}function l(){return function(e,t){$(t).click((function(e){e.preventDefault(),e.stopPropagation()}))}}function c(){return{restrict:"A",require:"ngModel",link:function(e,t,n,r){e.multiRequired||(e.multiRequired=[]);var i=n.multiRequireElement,o=function(t){i&&i%1==0&&(e.multiRequired[i-1]=t)},a=function(){for(var t=!1,n=!1,i=0;i<e.multiRequired.length;i++)e.multiRequired[i]?t=!0:n=!0;r.$setValidity("multiRequire",!(t&&n))};r.$parsers.unshift((function(e){return o(e),a(),e})),r.$formatters.unshift((function(e){return o(e),a(),e})),$("[multi-required]").on("blur keyup change focusout",(function(){a()}))}}}angular.module("graphdb.framework.core.directives",["graphdb.framework.core.services.repositories","graphdb.framework.utils.localstorageadapter"]).directive("ontoLoader",o).directive("ontoLoaderFancy",a).directive("ontoLoaderNew",s).directive("coreErrors",u).directive("eatClick",l).directive("multiRequired",c).directive("searchResourceInput",p).directive("keyboardShortcuts",f).directive("inactivePluginDirective",d).directive("autoGrow",(function(){return{restrict:"A",require:"ngModel",link:function(e,t,n,r){var i=function(){var e=r.$viewValue;e&&""!==e.trim()?(t[0].style.height="0px",t[0].style.height=t[0].scrollHeight+"px"):t[0].style.height="26px",t[0].style.overflow="hidden"};e.$watch((function(){return r.$viewValue}),(function(){i()})),t.bind("input change",(function(){i()}))}}})).directive("captureHeight",(function(){return{restrict:"A",scope:{rowIndex:"=captureHeight"},link:function(e,t,n){e.$watch((function(){return t[0].offsetHeight}),(function(t){e.$parent.rowHeights[e.rowIndex]=t+"px!important"}))}}})),o.$inject=[],a.$inject=[],s.$inject=["$timeout"],u.$inject=["$timeout"],l.$inject=[],c.$inject=[];var h={table:"table",visual:"visual"};function p(e,t,n,o,a,s,u,l,c,p,f,d){return{restrict:"EA",scope:{repositoryNamespaces:"=",isAutocompleteEnabled:"=",textButton:"@",visualButton:"@",textCallback:"&",visualCallback:"&",placeholder:"@",uriValidation:"@",preserveInput:"@",empty:"=",clear:"=?clear",openInNewTab:"@",preserveSearch:"@",radioButtons:"@",clearInputIcon:"@"},templateUrl:"js/angular/core/templates/search-resource-input.html",link:function(p,g,m){g.autoCompleteStatus=void 0,g.autoCompleteWarning=!1,p.empty=!1,p.clear=!1,p.searchDisplayType=h;var v,y,b="true"===p.preserveSearch,w=g.find(".view-res-input");p.textButtonLabel=p.textButton||"query.editor.table.btn",p.visualButtonLabel=p.visualButton||"query.editor.visual.btn",p.showClearInputIcon=!1,p.searchType=l.get(c.RDF_SEARCH_TYPE)||h.table,p.searchInput="",p.changeSearchType=function(e){p.searchType=e,l.set(c.RDF_SEARCH_TYPE,p.searchType)},p.$on("addStartFixedNodeAutomatically",(function(e,t){p.searchInput||!t.startIRI?p.checkIfValidAndSearchText():p.visualCallback({uri:t.startIRI,label:""})})),p.clearInput=function(){p.searchInput="",p.selectedElementIndex=-1,p.autoCompleteUriResults=[],p.showClearInputIcon=!1,l.remove(c.RDF_SEARCH_INPUT),l.remove(c.RDF_SEARCH_EXPANDED_URI),l.remove(c.RDF_RESOURCE_DESCRIPTION)},p.$watch("repositoryNamespaces",(function(){g.namespaces=p.repositoryNamespaces?p.repositoryNamespaces.namespaces:[]})),p.$watch("isAutocompleteEnabled",(function(){g.autoCompleteStatus=!!p.isAutocompleteEnabled,""!==p.searchInput&&p.onChange()})),p.$watch("empty",(function(){b||(p.searchInput="",p.empty=!1)})),p.$watch("clear",(function(){p.clear&&(p.clearInput(),p.clear=!1)})),a.$on("$translateChangeSuccess",(function(){m.$attr.placeholder?p.placeholder=m.$attr.placeholder:p.placeholder="".concat(f.instant("search.resources.msg"),"...")}));var x=function(e,t){var n=e?"graphs-visualizations":"resource";window.open("".concat(n,"?uri=").concat(encodeURIComponent(t.uri)))};angular.isUndefined(m.$attr.textCallback)&&(p.textCallback=function(t){var n=t.type||"uri";"true"===p.openInNewTab?x(!1,t):e.path("resource").search(n,t.uri)}),angular.isUndefined(m.$attr.visualCallback)&&(p.visualCallback=function(t){var n=t.type||"uri";"true"===p.openInNewTab?x(!0,t):e.path("graphs-visualizations").search(n,t.uri)}),m.$attr.textButton&&!p.textButton?p.textCallback=p.visualCallback:m.$attr.visualButton&&!p.visualButton&&(p.visualCallback=p.textCallback),m.$attr.placeholder?p.placeholder=m.$attr.placeholder:p.placeholder="".concat(f.instant("search.resources.msg"),"..."),angular.isDefined(m.$attr.uriValidation)?p.uriValidation=m.$attr.uriValidation:p.uriValidation="true",angular.isDefined(m.$attr.preserveInput)&&(p.preserveInput=m.$attr.preserveInput),p.getResultItemHtml=function(e){return u.trustAsHtml(e.description)},p.searchRdfResource=function(e,t){if("prefix"===e.type)p.searchInput=C(e.value+":"),w.focus(),p.onChange();else{var n;n=angular.isUndefined(e)?p.searchInput:"object"===i(e)?e.value:e;var r="";if(e.description){var o=e.description.indexOf("&lt;"+n+"&gt;");o>0&&(r=e.description.substring(0,o).replace(/<\/?b>/g,""))}t({uri:n,description:e.description,label:r,type:e.type}),b?(p.selectedElementIndex=p.activeSearchElm,l.set(c.RDF_SEARCH_EXPANDED_URI,v),l.set(c.RDF_SEARCH_INPUT,p.searchInput),l.set(c.RDF_RESOURCE_DESCRIPTION,e.description)):"true"===p.preserveInput?(p.searchInput=n,p.autoCompleteUriResults=[]):(p.searchInput="",p.autoCompleteUriResults=[])}},p.searchRdfResourceByEvent=function(e,t){p.searchType===h.visual||t.ctrlKey||t.metaKey?p.searchRdfResource(e,p.visualCallback):p.searchRdfResource(e,p.textCallback)};var S=function(e){var n=p.searchInput;""!==n?"false"!==p.uriValidation?g.autoCompleteStatus&&p.autoCompleteUriResults&&p.autoCompleteUriResults.length>0?"prefix"===p.autoCompleteUriResults[p.activeSearchElm].type?(p.searchInput=C(p.autoCompleteUriResults[p.activeSearchElm].value+":"),p.autoCompleteUriResults=[]):p.searchRdfResource(p.autoCompleteUriResults[p.activeSearchElm],e):A(n)?p.searchRdfResource(n,e):t.error(f.instant("invalid.uri.msg")):p.searchRdfResource(n,e):t.error(f.instant("fill.input.field.msg"))};function E(){var e=-1,n=l.get(c.RDF_RESOURCE_DESCRIPTION);n&&p.autoCompleteUriResults&&(e=p.autoCompleteUriResults.findIndex((function(e){return e.description===n})),p.selectedElementIndex=e,new Promise((function(e){var t=document.getElementById("auto-complete-results-wrapper").getBoundingClientRect();setTimeout((function(){e(t.top>=0&&t.left>=0&&t.bottom<=(window.innerHeight||document.documentElement.clientHeight)&&t.right<=(window.innerWidth||document.documentElement.clientWidth))}))})).then((function(){var e,t;e=$("#auto-complete-results-wrapper"),t=$("#auto_"+p.selectedElementIndex),e.animate({scrollTop:t.offset().top-e.offset().top+e.scrollTop()})})).catch((function(e){t.error(getError(e),f.instant("no.prev.search.element"))}))),p.activeSearchElm=-1===e?0:e}function A(e){var t=e.indexOf("<")>=0&&e.indexOf(">")>=0,n=-1===e.indexOf("<")&&-1===e.lastIndexOf(">"),r=/^<?(http|urn).*>?/.test(e)&&(t||n),i=!1;if(r)if(e.indexOf("http")>=0){var o=e.indexOf("//");i=o>4&&e.substring(o+2).length>0}else e.indexOf("urn")>=0&&(i=e.substring(4).length>0);return r&&i}function C(e){if(!/^<?(http|urn).*>?/.test(e)){var t=e.split(":"),r=t[0],i=t[1];if(!angular.isUndefined(i)){var o=n.getNamespaceUriForPrefix(g.namespaces,r);if(v=o!==v?o:v)return w.val(v),v+i}}return e}p.checkIfValidAndSearchText=function(){S(p.textCallback)},p.checkIfValidAndSearchVisual=function(){S(p.visualCallback)},p.checkIfValidAndSearchEvent=function(e){p.searchType===h.visual||e.ctrlKey||e.metaKey?S(p.visualCallback):S(p.textCallback)},p.onChange=function(){return p.showClearInputIcon=p.clearInputIcon,b&&l.set(c.RDF_SEARCH_INPUT,p.searchInput),"false"!==p.uriValidation&&(p.searchInput=C(p.searchInput),g.autoCompleteStatus)?function(e){var t=e.replace(v,v+";");if(g.autoCompleteStatus)return";"===t.charAt(0)&&(t=t.slice(1)),t=function(e){var t=e;if(-1===t.indexOf(";")&&A(t)){t=t.replace(/<|>/g,"");var n=/[^/^#]*$/.exec(t)[0];return t.split(n)[0]+";"+n}return t}(t),y&&y.resolve(),y=s.defer(),o.getAutocompleteSuggestions(t,y.promise).then((function(e){y=null,p.autoCompleteUriResults=e.data.suggestions,p.activeSearchElm=0}));return Promise.resolve()}(p.searchInput):Promise.resolve()},p.onKeyDown=function(e){if(13===e.keyCode){if(e.preventDefault(),d.isActive())return;"false"!==p.uriValidation?g.autoCompleteStatus?p.checkIfValidAndSearchEvent(e):A(e.target.value)?p.searchRdfResourceByEvent(e.target.value,e):t.error(f.instant("invalid.uri.msg")):p.searchRdfResourceByEvent(e.target.value,e)}else if(p.searchInput.length>0&&!g.autoCompleteWarning&&!g.autoCompleteStatus){g.autoCompleteWarning=!0;var n=Object(r.decodeHTML)(f.instant("explore.autocomplete.warning.msg"));t.warning("",'<div class="autocomplete-toast"><a href="autocomplete">'.concat(n,"</a></div>"),{allowHtml:!0})}if(g.autoCompleteStatus&&!angular.isUndefined(p.autoCompleteUriResults)){var i,o,a;if(40===e.keyCode&&p.activeSearchElm<p.autoCompleteUriResults.length-1&&(p.activeSearchElm++,p.searchInput=p.autoCompleteUriResults[p.activeSearchElm].value,i=$("#auto-complete-results-wrapper"),o=i.children("div"),void 0!==(a=i.children("div.active"))[0]&&a[0].offsetTop-o.height()-6-i.scrollTop()>170&&i.scrollTop(a[0].offsetTop-o.height()-6-170)),38===e.keyCode&&p.activeSearchElm>0&&(e.preventDefault(),p.activeSearchElm--,p.searchInput=p.autoCompleteUriResults[p.activeSearchElm].value,function(){var e=$("#auto-complete-results-wrapper"),t=e.children("div"),n=e.children("div.active");void 0!==n[0]&&n[0].offsetTop-t.height()-40<=e.scrollTop()&&e.scrollTop(e.scrollTop()-34)}()),27===e.keyCode){if(b)return;p.searchInput="",p.autoCompleteUriResults=[]}p.searchInput||p.clearInput()}},p.$on("rdfResourceSearchExpanded",(function(){(b?(p.preserveInput="true",p.searchInput=l.get(c.RDF_SEARCH_INPUT)||"",v=l.get(c.RDF_SEARCH_EXPANDED_URI),p.onChange()):Promise.resolve()).then((function(){E()}))})),p.setActiveClassOnMouseMove=function(e){g.autoCompleteStatus&&(p.activeSearchElm=e)}}}}function f(e){return{restrict:"AE",link:function(t,n,r){function i(e){27===e.keyCode&&(t.toggleCheatSheet(),t.$apply())}t.getTemplateUrl=function(){return r.templateUrl},t.shortcutsVisible=!1,t.toggleCheatSheet=function(){t.shortcutsVisible=!t.shortcutsVisible,t.shortcutsVisible?e.on("keydown",i):e.off("keydown",i)}},template:'<ng-include src="getTemplateUrl()" />'}}function d(e,t,n,i,o,a){return{restrict:"E",transclude:!0,scope:{loadSaved:"&",setPluginActive:"&",pluginName:"@",humanReadablePluginName:"@"},templateUrl:"js/angular/core/templates/inactive-plugin-warning-page.html",link:function(s){function u(){if(o.isLicenseValid()&&i.getActiveRepository()&&!i.isActiveRepoOntopType()&&!i.isActiveRepoFedXType())return t.checkPluginIsActive(s.pluginName,i.getActiveRepository()).then((function(e){var t=e.data;s.pluginIsActive=t.indexOf("true")>0,s.setPluginActive({isPluginActive:s.pluginIsActive})})).catch((function(t){e.error(getError(t),a.instant("check.active.plugin.failure"))}))}s.pluginIsActive=!0,s.activatePlugin=function(){var o=Object(r.decodeHTML)(a.instant("activate.plugin.warning.msg",{humanReadablePluginName:s.humanReadablePluginName}));n.openSimpleModal({title:a.instant("activate.plugin.confirmation"),message:"<p>".concat(o,"</p>"),warning:!0}).result.then((function(){t.activatePlugin(s.pluginName,i.getActiveRepository()).then((function(){s.pluginIsActive=!0,s.setPluginActive({isPluginActive:s.pluginIsActive}),s.loadSaved()})).catch((function(t){e.error(getError(t),a.instant("activate.plugin.failure"))}))}))};var l=s.$on("repositoryIsSet",(function(){u()}));window.addEventListener("beforeunload",(function e(){l(),window.removeEventListener("beforeunload",e)})),s.$on("checkIsActive",u),u()}}}p.$inject=["$location","toastr","ClassInstanceDetailsService","AutocompleteRestService","$rootScope","$q","$sce","LocalStorageAdapter","LSKeys","$repositories","$translate","GuidesService"],f.$inject=["$document"],d.$inject=["toastr","RDF4JRepositoriesRestService","ModalService","$repositories","$licenseService","$translate"]},520:function(e,t){!function(e){var t,n,r,i=e.jQuery||e.angular.element,o=e.document.documentElement,a=i(o);return l("change",u),t=u,n=(e.jQuery||e.angular.element).prototype,r=n.val,n.val=function(e){var n=r.apply(this,arguments);return arguments.length>0&&c(this,(function(n){t(n,e)})),n},i.prototype.checkAndTriggerAutoFillEvent=function(){var e,t;for(e=0;e<this.length;e++)s(t=this[e])||(u(t),h(t))},l("blur",(function(t){e.setTimeout((function(){(function(e){for(;e;){if("FORM"===e.nodeName)return i(e);e=e.parentNode}return i()})(t).find("input").checkAndTriggerAutoFillEvent()}),20)})),void e.document.addEventListener("DOMContentLoaded",(function(){c(document.getElementsByTagName("input"),u),e.setTimeout((function(){a.find("input").checkAndTriggerAutoFillEvent()}),200)}),!1);function s(e){"$$currentValue"in e||(e.$$currentValue=e.getAttribute("value"));var t=e.value,n=e.$$currentValue;return!t&&!n||t===n}function u(e){e.$$currentValue=e.value}function l(e,t){o.addEventListener(e,(function(e){var n=e.target;t(n)}),!0)}function c(e,t){if(e.forEach)return e.forEach(t);var n;for(n=0;n<e.length;n++)t(e[n])}function h(t){var n=e.document.createEvent("HTMLEvents");n.initEvent("change",!0,!0),t.dispatchEvent(n)}}(window)},521:function(e,t,n){"use strict";t.byteLength=function(e){var t=l(e),n=t[0],r=t[1];return 3*(n+r)/4-r},t.toByteArray=function(e){var t,n,r=l(e),a=r[0],s=r[1],u=new o(function(e,t,n){return 3*(t+n)/4-n}(0,a,s)),c=0,h=s>0?a-4:a;for(n=0;n<h;n+=4)t=i[e.charCodeAt(n)]<<18|i[e.charCodeAt(n+1)]<<12|i[e.charCodeAt(n+2)]<<6|i[e.charCodeAt(n+3)],u[c++]=t>>16&255,u[c++]=t>>8&255,u[c++]=255&t;2===s&&(t=i[e.charCodeAt(n)]<<2|i[e.charCodeAt(n+1)]>>4,u[c++]=255&t);1===s&&(t=i[e.charCodeAt(n)]<<10|i[e.charCodeAt(n+1)]<<4|i[e.charCodeAt(n+2)]>>2,u[c++]=t>>8&255,u[c++]=255&t);return u},t.fromByteArray=function(e){for(var t,n=e.length,i=n%3,o=[],a=0,s=n-i;a<s;a+=16383)o.push(c(e,a,a+16383>s?s:a+16383));1===i?(t=e[n-1],o.push(r[t>>2]+r[t<<4&63]+"==")):2===i&&(t=(e[n-2]<<8)+e[n-1],o.push(r[t>>10]+r[t>>4&63]+r[t<<2&63]+"="));return o.join("")};for(var r=[],i=[],o="undefined"!=typeof Uint8Array?Uint8Array:Array,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=0,u=a.length;s<u;++s)r[s]=a[s],i[a.charCodeAt(s)]=s;function l(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");return-1===n&&(n=t),[n,n===t?0:4-n%4]}function c(e,t,n){for(var i,o,a=[],s=t;s<n;s+=3)i=(e[s]<<16&16711680)+(e[s+1]<<8&65280)+(255&e[s+2]),a.push(r[(o=i)>>18&63]+r[o>>12&63]+r[o>>6&63]+r[63&o]);return a.join("")}i["-".charCodeAt(0)]=62,i["_".charCodeAt(0)]=63},522:function(e,t){
38
+ /*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */
39
+ t.read=function(e,t,n,r,i){var o,a,s=8*i-r-1,u=(1<<s)-1,l=u>>1,c=-7,h=n?i-1:0,p=n?-1:1,f=e[t+h];for(h+=p,o=f&(1<<-c)-1,f>>=-c,c+=s;c>0;o=256*o+e[t+h],h+=p,c-=8);for(a=o&(1<<-c)-1,o>>=-c,c+=r;c>0;a=256*a+e[t+h],h+=p,c-=8);if(0===o)o=1-l;else{if(o===u)return a?NaN:1/0*(f?-1:1);a+=Math.pow(2,r),o-=l}return(f?-1:1)*a*Math.pow(2,o-r)},t.write=function(e,t,n,r,i,o){var a,s,u,l=8*o-i-1,c=(1<<l)-1,h=c>>1,p=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,f=r?0:o-1,d=r?1:-1,g=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,a=c):(a=Math.floor(Math.log(t)/Math.LN2),t*(u=Math.pow(2,-a))<1&&(a--,u*=2),(t+=a+h>=1?p/u:p*Math.pow(2,1-h))*u>=2&&(a++,u/=2),a+h>=c?(s=0,a=c):a+h>=1?(s=(t*u-1)*Math.pow(2,i),a+=h):(s=t*Math.pow(2,h-1)*Math.pow(2,i),a=0));i>=8;e[n+f]=255&s,f+=d,s/=256,i-=8);for(a=a<<i|s,l+=i;l>0;e[n+f]=255&a,f+=d,a/=256,l-=8);e[n+f-d]|=128*g}},523:function(e,t){var n={}.toString;e.exports=Array.isArray||function(e){return"[object Array]"==n.call(e)}},524:function(e,t){
40
+ /**
41
+ * @license AngularJS v1.8.3
42
+ * (c) 2010-2020 Google LLC. http://angularjs.org
43
+ * License: MIT
44
+ */
45
+ !function(e){"use strict";var t={objectMaxDepth:5,urlErrorParamsEnabled:!0};function n(e){if(!M(e))return t;N(e.objectMaxDepth)&&(t.objectMaxDepth=r(e.objectMaxDepth)?e.objectMaxDepth:NaN),N(e.urlErrorParamsEnabled)&&X(e.urlErrorParamsEnabled)&&(t.urlErrorParamsEnabled=e.urlErrorParamsEnabled)}function r(e){return H(e)&&e>0}function i(e,n){n=n||Error;var r="https://errors.angularjs.org/1.8.3/",i=r.replace(".","\\.")+"[\\s\\S]*",o=new RegExp(i,"g");return function(){var i,a,s=arguments[0],u=arguments[1],l="["+(e?e+":":"")+s+"] ",c=he(arguments,2).map((function(e){return Ve(e,t.objectMaxDepth)}));if(l+=u.replace(/\{\d+\}/g,(function(e){var t=+e.slice(1,-1);return t<c.length?c[t].replace(o,""):e})),l+="\n"+r+(e?e+"/":"")+s,t.urlErrorParamsEnabled)for(a=0,i="?";a<c.length;a++,i="&")l+=i+"p"+a+"="+encodeURIComponent(c[a]);return new n(l)}}var o,a,s,u,l=/^\/(.+)\/([a-z]*)$/,c=Object.prototype.hasOwnProperty,h=function(e){return U(e)?e.toLowerCase():e},p=function(e){return U(e)?e.toUpperCase():e},f=[].slice,d=[].splice,g=[].push,m=Object.prototype.toString,v=Object.getPrototypeOf,y=i("ng"),b=e.angular||(e.angular={}),$=0;function w(e){if(null==e||W(e))return!1;if(q(e)||U(e)||a&&e instanceof a)return!0;var t="length"in Object(e)&&e.length;return H(t)&&(t>=0&&t-1 in e||"function"==typeof e.item)}function x(e,t,n){var r,i;if(e)if(K(e))for(r in e)"prototype"!==r&&"length"!==r&&"name"!==r&&e.hasOwnProperty(r)&&t.call(n,e[r],r,e);else if(q(e)||w(e)){var o="object"!=typeof e;for(r=0,i=e.length;r<i;r++)(o||r in e)&&t.call(n,e[r],r,e)}else if(e.forEach&&e.forEach!==x)e.forEach(t,n,e);else if(B(e))for(r in e)t.call(n,e[r],r,e);else if("function"==typeof e.hasOwnProperty)for(r in e)e.hasOwnProperty(r)&&t.call(n,e[r],r,e);else for(r in e)c.call(e,r)&&t.call(n,e[r],r,e);return e}function S(e,t,n){for(var r=Object.keys(e).sort(),i=0;i<r.length;i++)t.call(n,e[r[i]],r[i]);return r}function E(e){return function(t,n){e(n,t)}}function A(){return++$}function C(e,t){t?e.$$hashKey=t:delete e.$$hashKey}function T(e,t,n){for(var r=e.$$hashKey,i=0,o=t.length;i<o;++i){var a=t[i];if(M(a)||K(a))for(var s=Object.keys(a),u=0,l=s.length;u<l;u++){var c=s[u],h=a[c];n&&M(h)?V(h)?e[c]=new Date(h.valueOf()):G(h)?e[c]=new RegExp(h):h.nodeName?e[c]=h.cloneNode(!0):te(h)?e[c]=h.clone():"__proto__"!==c&&(M(e[c])||(e[c]=q(h)?[]:{}),T(e[c],[h],!0)):e[c]=h}}return C(e,r),e}function F(e){return T(e,f.call(arguments,1),!1)}function k(e){return T(e,f.call(arguments,1),!0)}function R(e){return parseInt(e,10)}o=e.document.documentMode;var P=Number.isNaN||function(e){return e!=e};function D(e,t){return F(Object.create(e),t)}function O(){}function I(e){return e}function _(e){return function(){return e}}function j(e){return K(e.toString)&&e.toString!==m}function L(e){return void 0===e}function N(e){return void 0!==e}function M(e){return null!==e&&"object"==typeof e}function B(e){return null!==e&&"object"==typeof e&&!v(e)}function U(e){return"string"==typeof e}function H(e){return"number"==typeof e}function V(e){return"[object Date]"===m.call(e)}function q(e){return Array.isArray(e)||e instanceof Array}function z(e){switch(m.call(e)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return e instanceof Error}}function K(e){return"function"==typeof e}function G(e){return"[object RegExp]"===m.call(e)}function W(e){return e&&e.window===e}function Y(e){return e&&e.$evalAsync&&e.$watch}function X(e){return"boolean"==typeof e}function Q(e){return e&&K(e.then)}O.$inject=[],I.$inject=[];var J=/^\[object (?:Uint8|Uint8Clamped|Uint16|Uint32|Int8|Int16|Int32|Float32|Float64)Array]$/;var Z=function(e){return U(e)?e.trim():e},ee=function(e){return e.replace(/([-()[\]{}+?*.$^|,:#<!\\])/g,"\\$1").replace(/\x08/g,"\\x08")};function te(e){return!(!e||!(e.nodeName||e.prop&&e.attr&&e.find))}function ne(e){return h(e.nodeName||e[0]&&e[0].nodeName)}function re(e,t){return-1!==Array.prototype.indexOf.call(e,t)}function ie(e,t){var n=e.indexOf(t);return n>=0&&e.splice(n,1),n}function oe(e,t,n){var i,o,a=[],s=[];if(n=r(n)?n:NaN,t){if((o=t)&&H(o.length)&&J.test(m.call(o))||(i=t,"[object ArrayBuffer]"===m.call(i)))throw y("cpta","Can't copy! TypedArray destination cannot be mutated.");if(e===t)throw y("cpi","Can't copy! Source and destination are identical.");return q(t)?t.length=0:x(t,(function(e,n){"$$hashKey"!==n&&delete t[n]})),a.push(e),s.push(t),u(e,t,n)}return l(e,n);function u(e,t,n){if(--n<0)return"...";var r,i=t.$$hashKey;if(q(e))for(var o=0,a=e.length;o<a;o++)t.push(l(e[o],n));else if(B(e))for(r in e)t[r]=l(e[r],n);else if(e&&"function"==typeof e.hasOwnProperty)for(r in e)e.hasOwnProperty(r)&&(t[r]=l(e[r],n));else for(r in e)c.call(e,r)&&(t[r]=l(e[r],n));return C(t,i),t}function l(e,t){if(!M(e))return e;var n=a.indexOf(e);if(-1!==n)return s[n];if(W(e)||Y(e))throw y("cpws","Can't copy! Making copies of Window or Scope instances is not supported.");var r=!1,i=function(e){switch(m.call(e)){case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Float32Array]":case"[object Float64Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return new e.constructor(l(e.buffer),e.byteOffset,e.length);case"[object ArrayBuffer]":if(!e.slice){var t=new ArrayBuffer(e.byteLength);return new Uint8Array(t).set(new Uint8Array(e)),t}return e.slice(0);case"[object Boolean]":case"[object Number]":case"[object String]":case"[object Date]":return new e.constructor(e.valueOf());case"[object RegExp]":var n=new RegExp(e.source,e.toString().match(/[^/]*$/)[0]);return n.lastIndex=e.lastIndex,n;case"[object Blob]":return new e.constructor([e],{type:e.type})}if(K(e.cloneNode))return e.cloneNode(!0)}(e);return void 0===i&&(i=q(e)?[]:Object.create(v(e)),r=!0),a.push(e),s.push(i),r?u(e,i,t):i}}function ae(e,t){return e===t||e!=e&&t!=t}function se(e,t){if(e===t)return!0;if(null===e||null===t)return!1;if(e!=e&&t!=t)return!0;var n,r,i,o=typeof e;if(o===typeof t&&"object"===o){if(!q(e)){if(V(e))return!!V(t)&&ae(e.getTime(),t.getTime());if(G(e))return!!G(t)&&e.toString()===t.toString();if(Y(e)||Y(t)||W(e)||W(t)||q(t)||V(t)||G(t))return!1;for(r in i=Me(),e)if("$"!==r.charAt(0)&&!K(e[r])){if(!se(e[r],t[r]))return!1;i[r]=!0}for(r in t)if(!(r in i)&&"$"!==r.charAt(0)&&N(t[r])&&!K(t[r]))return!1;return!0}if(!q(t))return!1;if((n=e.length)===t.length){for(r=0;r<n;r++)if(!se(e[r],t[r]))return!1;return!0}}return!1}var ue=function(){if(!N(ue.rules)){var t=e.document.querySelector("[ng-csp]")||e.document.querySelector("[data-ng-csp]");if(t){var n=t.getAttribute("ng-csp")||t.getAttribute("data-ng-csp");ue.rules={noUnsafeEval:!n||-1!==n.indexOf("no-unsafe-eval"),noInlineStyle:!n||-1!==n.indexOf("no-inline-style")}}else ue.rules={noUnsafeEval:function(){try{return new Function(""),!1}catch(e){return!0}}(),noInlineStyle:!1}}return ue.rules},le=function(){if(N(le.name_))return le.name_;var t,n,r,i,o=Ae.length;for(n=0;n<o;++n)if(r=Ae[n],t=e.document.querySelector("["+r.replace(":","\\:")+"jq]")){i=t.getAttribute(r+"jq");break}return le.name_=i};function ce(e,t,n){return e.concat(f.call(t,n))}function he(e,t){return f.call(e,t||0)}function pe(e,t){var n=arguments.length>2?he(arguments,2):[];return!K(t)||t instanceof RegExp?t:n.length?function(){return arguments.length?t.apply(e,ce(n,arguments,0)):t.apply(e,n)}:function(){return arguments.length?t.apply(e,arguments):t.call(e)}}function fe(t,n){var r=n;return"string"==typeof t&&"$"===t.charAt(0)&&"$"===t.charAt(1)?r=void 0:W(n)?r="$WINDOW":n&&e.document===n?r="$DOCUMENT":Y(n)&&(r="$SCOPE"),r}function de(e,t){if(!L(e))return H(t)||(t=t?2:null),JSON.stringify(e,fe,t)}function ge(e){return U(e)?JSON.parse(e):e}var me=/:/g;function ve(e,t){e=e.replace(me,"");var n=Date.parse("Jan 01, 1970 00:00:00 "+e)/6e4;return P(n)?t:n}function ye(e,t){return(e=new Date(e.getTime())).setMinutes(e.getMinutes()+t),e}function be(e,t,n){n=n?-1:1;var r=e.getTimezoneOffset();return ye(e,n*(ve(t,r)-r))}function $e(e){e=a(e).clone().empty();var t=a("<div></div>").append(e).html();try{return e[0].nodeType===Ue?h(t):t.match(/^(<[^>]+>)/)[1].replace(/^<([\w-]+)/,(function(e,t){return"<"+h(t)}))}catch(e){return h(t)}}function we(e){try{return decodeURIComponent(e)}catch(e){}}function xe(e){var t={};return x((e||"").split("&"),(function(e){var n,r,i;e&&(r=e=e.replace(/\+/g,"%20"),-1!==(n=e.indexOf("="))&&(r=e.substring(0,n),i=e.substring(n+1)),N(r=we(r))&&(i=!N(i)||we(i),c.call(t,r)?q(t[r])?t[r].push(i):t[r]=[t[r],i]:t[r]=i))})),t}function Se(e){return Ee(e,!0).replace(/%26/gi,"&").replace(/%3D/gi,"=").replace(/%2B/gi,"+")}function Ee(e,t){return encodeURIComponent(e).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%3B/gi,";").replace(/%20/g,t?"%20":"+")}var Ae=["ng-","data-ng-","ng:","x-ng-"];var Ce=function(t){var n=t.currentScript;if(!n)return!0;if(!(n instanceof e.HTMLScriptElement||n instanceof e.SVGScriptElement))return!1;var r=n.attributes;return[r.getNamedItem("src"),r.getNamedItem("href"),r.getNamedItem("xlink:href")].every((function(e){if(!e)return!0;if(!e.value)return!1;var n=t.createElement("a");if(n.href=e.value,t.location.origin===n.origin)return!0;switch(n.protocol){case"http:":case"https:":case"ftp:":case"blob:":case"file:":case"data:":return!0;default:return!1}}))}(e.document);function Te(t,n){var r,i,o={};if(x(Ae,(function(e){var n=e+"app";!r&&t.hasAttribute&&t.hasAttribute(n)&&(r=t,i=t.getAttribute(n))})),x(Ae,(function(e){var n,o=e+"app";!r&&(n=t.querySelector("["+o.replace(":","\\:")+"]"))&&(r=n,i=n.getAttribute(o))})),r){if(!Ce)return void e.console.error("AngularJS: disabling automatic bootstrap. <script> protocol indicates an extension, document.location.href does not match.");o.strictDi=null!==function(e,t){var n,r,i=Ae.length;for(r=0;r<i;++r)if(n=Ae[r]+t,U(n=e.getAttribute(n)))return n;return null}(r,"strict-di"),n(r,i?[i]:[],o)}}function Fe(t,n,r){M(r)||(r={});r=F({strictDi:!1},r);var i=function(){if((t=a(t)).injector()){var i=t[0]===e.document?"document":$e(t);throw y("btstrpd","App already bootstrapped with this element '{0}'",i.replace(/</,"&lt;").replace(/>/,"&gt;"))}(n=n||[]).unshift(["$provide",function(e){e.value("$rootElement",t)}]),r.debugInfoEnabled&&n.push(["$compileProvider",function(e){e.debugInfoEnabled(!0)}]),n.unshift("ng");var o=Qt(n,r.strictDi);return o.invoke(["$rootScope","$rootElement","$compile","$injector",function(e,t,n,r){e.$apply((function(){t.data("$injector",r),n(t)(e)}))}]),o},o=/^NG_ENABLE_DEBUG_INFO!/,s=/^NG_DEFER_BOOTSTRAP!/;if(e&&o.test(e.name)&&(r.debugInfoEnabled=!0,e.name=e.name.replace(o,"")),e&&!s.test(e.name))return i();e.name=e.name.replace(s,""),b.resumeBootstrap=function(e){return x(e,(function(e){n.push(e)})),i()},K(b.resumeDeferredBootstrap)&&b.resumeDeferredBootstrap()}function ke(){e.name="NG_ENABLE_DEBUG_INFO!"+e.name,e.location.reload()}function Re(e){var t=b.element(e).injector();if(!t)throw y("test","no injector found for element argument to getTestability");return t.get("$$testability")}var Pe=/[A-Z]/g;function De(e,t){return t=t||"_",e.replace(Pe,(function(e,n){return(n?t:"")+e.toLowerCase()}))}var Oe=!1;function Ie(){pt.legacyXHTMLReplacement=!0}function _e(e,t,n){if(!e)throw y("areq","Argument '{0}' is {1}",t||"?",n||"required");return e}function je(e,t,n){return n&&q(e)&&(e=e[e.length-1]),_e(K(e),t,"not a function, got "+(e&&"object"==typeof e?e.constructor.name||"Object":typeof e)),e}function Le(e,t){if("hasOwnProperty"===e)throw y("badname","hasOwnProperty is not a valid {0} name",t)}function Ne(e){for(var t,n=e[0],r=e[e.length-1],i=1;n!==r&&(n=n.nextSibling);i++)(t||e[i]!==n)&&(t||(t=a(f.call(e,0,i))),t.push(n));return t||e}function Me(){return Object.create(null)}function Be(e){if(null==e)return"";switch(typeof e){case"string":break;case"number":e=""+e;break;default:e=!j(e)||q(e)||V(e)?de(e):e.toString()}return e}var Ue=3;function He(e,t){if(q(e)){t=t||[];for(var n=0,r=e.length;n<r;n++)t[n]=e[n]}else if(M(e))for(var i in t=t||{},e)"$"===i.charAt(0)&&"$"===i.charAt(1)||(t[i]=e[i]);return t||e}function Ve(e,t){return"function"==typeof e?e.toString().replace(/ \{[\s\S]*$/,""):L(e)?"undefined":"string"!=typeof e?function(e,t){var n=[];return r(t)&&(e=b.copy(e,null,t)),JSON.stringify(e,(function(e,t){if(M(t=fe(e,t))){if(n.indexOf(t)>=0)return"...";n.push(t)}return t}))}(e,t):e}var qe={full:"1.8.3",major:1,minor:8,dot:3,codeName:"ultimate-farewell"};pt.expando="ng339";var ze=pt.cache={},Ke=1;pt._data=function(e){return this.cache[e[this.expando]]||{}};var Ge=/-([a-z])/g,We=/^-ms-/,Ye={mouseleave:"mouseout",mouseenter:"mouseover"},Xe=i("jqLite");function Qe(e,t){return t.toUpperCase()}function Je(e){return e.replace(Ge,Qe)}var Ze=/^<([\w-]+)\s*\/?>(?:<\/\1>|)$/,et=/<|&#?\w+;/,tt=/<([\w:-]+)/,nt=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:-]+)[^>]*)\/>/gi,rt={thead:["table"],col:["colgroup","table"],tr:["tbody","table"],td:["tr","tbody","table"]};rt.tbody=rt.tfoot=rt.colgroup=rt.caption=rt.thead,rt.th=rt.td;var it={option:[1,'<select multiple="multiple">',"</select>"],_default:[0,"",""]};for(var ot in rt){var at=rt[ot],st=at.slice().reverse();it[ot]=[st.length,"<"+st.join("><")+">","</"+at.join("></")+">"]}function ut(e){return!et.test(e)}function lt(e){var t=e.nodeType;return 1===t||!t||9===t}function ct(t,n){var r,i,a,s,u,l=n.createDocumentFragment(),c=[];if(ut(t))c.push(n.createTextNode(t));else{if(r=l.appendChild(n.createElement("div")),i=(tt.exec(t)||["",""])[1].toLowerCase(),s=pt.legacyXHTMLReplacement?t.replace(nt,"<$1></$2>"):t,o<10)for(a=it[i]||it._default,r.innerHTML=a[1]+s+a[2],u=a[0];u--;)r=r.firstChild;else{for(u=(a=rt[i]||[]).length;--u>-1;)r.appendChild(e.document.createElement(a[u])),r=r.firstChild;r.innerHTML=s}c=ce(c,r.childNodes),(r=l.firstChild).textContent=""}return l.textContent="",l.innerHTML="",x(c,(function(e){l.appendChild(e)})),l}it.optgroup=it.option;var ht=e.Node.prototype.contains||function(e){return!!(16&this.compareDocumentPosition(e))};function pt(t){if(t instanceof pt)return t;var n,r,i,o;if(U(t)&&(t=Z(t),n=!0),!(this instanceof pt)){if(n&&"<"!==t.charAt(0))throw Xe("nosel","Looking up elements via selectors is not supported by jqLite! See: http://docs.angularjs.org/api/angular.element");return new pt(t)}n?Et(this,(r=t,i=i||e.document,(o=Ze.exec(r))?[i.createElement(o[1])]:(o=ct(r,i))?o.childNodes:[])):K(t)?kt(t):Et(this,t)}function ft(e){return e.cloneNode(!0)}function dt(e,t){!t&&lt(e)&&a.cleanData([e]),e.querySelectorAll&&a.cleanData(e.querySelectorAll("*"))}function gt(e){var t;for(t in e)return!1;return!0}function mt(e){var t=e.ng339,n=t&&ze[t],r=n&&n.events,i=n&&n.data;i&&!gt(i)||r&&!gt(r)||(delete ze[t],e.ng339=void 0)}function vt(e,t,n,r){if(N(r))throw Xe("offargs","jqLite#off() does not support the `selector` argument");var i=bt(e),o=i&&i.events,a=i&&i.handle;if(a){if(t){var s=function(t){var r=o[t];N(n)&&ie(r||[],n),N(n)&&r&&r.length>0||(e.removeEventListener(t,a),delete o[t])};x(t.split(" "),(function(e){s(e),Ye[e]&&s(Ye[e])}))}else for(t in o)"$destroy"!==t&&e.removeEventListener(t,a),delete o[t];mt(e)}}function yt(e,t){var n=e.ng339,r=n&&ze[n];r&&(t?delete r.data[t]:r.data={},mt(e))}function bt(e,t){var n=e.ng339,r=n&&ze[n];return t&&!r&&(e.ng339=n=++Ke,r=ze[n]={events:{},data:{},handle:void 0}),r}function $t(e,t,n){if(lt(e)){var r,i=N(n),o=!i&&t&&!M(t),a=!t,s=bt(e,!o),u=s&&s.data;if(i)u[Je(t)]=n;else{if(a)return u;if(o)return u&&u[Je(t)];for(r in t)u[Je(r)]=t[r]}}}function wt(e,t){return!!e.getAttribute&&(" "+(e.getAttribute("class")||"")+" ").replace(/[\n\t]/g," ").indexOf(" "+t+" ")>-1}function xt(e,t){if(t&&e.setAttribute){var n=(" "+(e.getAttribute("class")||"")+" ").replace(/[\n\t]/g," "),r=n;x(t.split(" "),(function(e){e=Z(e),r=r.replace(" "+e+" "," ")})),r!==n&&e.setAttribute("class",Z(r))}}function St(e,t){if(t&&e.setAttribute){var n=(" "+(e.getAttribute("class")||"")+" ").replace(/[\n\t]/g," "),r=n;x(t.split(" "),(function(e){e=Z(e),-1===r.indexOf(" "+e+" ")&&(r+=e+" ")})),r!==n&&e.setAttribute("class",Z(r))}}function Et(e,t){if(t)if(t.nodeType)e[e.length++]=t;else{var n=t.length;if("number"==typeof n&&t.window!==t){if(n)for(var r=0;r<n;r++)e[e.length++]=t[r]}else e[e.length++]=t}}function At(e,t){return Ct(e,"$"+(t||"ngController")+"Controller")}function Ct(e,t,n){9===e.nodeType&&(e=e.documentElement);for(var r=q(t)?t:[t];e;){for(var i=0,o=r.length;i<o;i++)if(N(n=a.data(e,r[i])))return n;e=e.parentNode||11===e.nodeType&&e.host}}function Tt(e){for(dt(e,!0);e.firstChild;)e.removeChild(e.firstChild)}function Ft(e,t){t||dt(e);var n=e.parentNode;n&&n.removeChild(e)}function kt(t){function n(){e.document.removeEventListener("DOMContentLoaded",n),e.removeEventListener("load",n),t()}"complete"===e.document.readyState?e.setTimeout(t):(e.document.addEventListener("DOMContentLoaded",n),e.addEventListener("load",n))}var Rt=pt.prototype={ready:kt,toString:function(){var e=[];return x(this,(function(t){e.push(""+t)})),"["+e.join(", ")+"]"},eq:function(e){return a(e>=0?this[e]:this[this.length+e])},length:0,push:g,sort:[].sort,splice:[].splice},Pt={};x("multiple,selected,checked,disabled,readOnly,required,open".split(","),(function(e){Pt[h(e)]=e}));var Dt={};x("input,select,option,textarea,button,form,details".split(","),(function(e){Dt[e]=!0}));var Ot={ngMinlength:"minlength",ngMaxlength:"maxlength",ngMin:"min",ngMax:"max",ngPattern:"pattern",ngStep:"step"};function It(e,t){var n=Pt[t.toLowerCase()];return n&&Dt[ne(e)]&&n}function _t(e,t,n){n.call(e,t)}function jt(e,t,n){var r=t.relatedTarget;r&&(r===e||ht.call(e,r))||n.call(e,t)}function Lt(){this.$get=function(){return F(pt,{hasClass:function(e,t){return e.attr&&(e=e[0]),wt(e,t)},addClass:function(e,t){return e.attr&&(e=e[0]),St(e,t)},removeClass:function(e,t){return e.attr&&(e=e[0]),xt(e,t)}})}}function Nt(e,t){var n=e&&e.$$hashKey;if(n)return"function"==typeof n&&(n=e.$$hashKey()),n;var r=typeof e;return n="function"===r||"object"===r&&null!==e?e.$$hashKey=r+":"+(t||A)():r+":"+e}x({data:$t,removeData:yt,hasData:function(e){for(var t in ze[e.ng339])return!0;return!1},cleanData:function(e){for(var t=0,n=e.length;t<n;t++)yt(e[t]),vt(e[t])}},(function(e,t){pt[t]=e})),x({data:$t,inheritedData:Ct,scope:function(e){return a.data(e,"$scope")||Ct(e.parentNode||e,["$isolateScope","$scope"])},isolateScope:function(e){return a.data(e,"$isolateScope")||a.data(e,"$isolateScopeNoTemplate")},controller:At,injector:function(e){return Ct(e,"$injector")},removeAttr:function(e,t){e.removeAttribute(t)},hasClass:wt,css:function(e,t,n){if(t=function(e){return Je(e.replace(We,"ms-"))}(t),!N(n))return e.style[t];e.style[t]=n},attr:function(e,t,n){var r,i=e.nodeType;if(i!==Ue&&2!==i&&8!==i&&e.getAttribute){var o=h(t),a=Pt[o];if(!N(n))return r=e.getAttribute(t),a&&null!==r&&(r=o),null===r?void 0:r;null===n||!1===n&&a?e.removeAttribute(t):e.setAttribute(t,a?o:n)}},prop:function(e,t,n){if(!N(n))return e[t];e[t]=n},text:function(){return e.$dv="",e;function e(e,t){if(L(t)){var n=e.nodeType;return 1===n||n===Ue?e.textContent:""}e.textContent=t}}(),val:function(e,t){if(L(t)){if(e.multiple&&"select"===ne(e)){var n=[];return x(e.options,(function(e){e.selected&&n.push(e.value||e.text)})),n}return e.value}e.value=t},html:function(e,t){if(L(t))return e.innerHTML;dt(e,!0),e.innerHTML=t},empty:Tt},(function(e,t){pt.prototype[t]=function(t,n){var r,i,o=this.length;if(e!==Tt&&L(2===e.length&&e!==wt&&e!==At?t:n)){if(M(t)){for(r=0;r<o;r++)if(e===$t)e(this[r],t);else for(i in t)e(this[r],i,t[i]);return this}for(var a=e.$dv,s=L(a)?Math.min(o,1):o,u=0;u<s;u++){var l=e(this[u],t,n);a=a?a+l:l}return a}for(r=0;r<o;r++)e(this[r],t,n);return this}})),x({removeData:yt,on:function(e,t,n,r){if(N(r))throw Xe("onargs","jqLite#on() does not support the `selector` or `eventData` parameters");if(lt(e)){var i=bt(e,!0),o=i.events,a=i.handle;a||(a=i.handle=function(e,t){var n=function(n,r){n.isDefaultPrevented=function(){return n.defaultPrevented};var i=t[r||n.type],o=i?i.length:0;if(o){if(L(n.immediatePropagationStopped)){var a=n.stopImmediatePropagation;n.stopImmediatePropagation=function(){n.immediatePropagationStopped=!0,n.stopPropagation&&n.stopPropagation(),a&&a.call(n)}}n.isImmediatePropagationStopped=function(){return!0===n.immediatePropagationStopped};var s=i.specialHandlerWrapper||_t;o>1&&(i=He(i));for(var u=0;u<o;u++)n.isImmediatePropagationStopped()||s(e,n,i[u])}};return n.elem=e,n}(e,o));for(var s=t.indexOf(" ")>=0?t.split(" "):[t],u=s.length,l=function(t,r,i){var s=o[t];s||((s=o[t]=[]).specialHandlerWrapper=r,"$destroy"===t||i||e.addEventListener(t,a)),s.push(n)};u--;)t=s[u],Ye[t]?(l(Ye[t],jt),l(t,void 0,!0)):l(t)}},off:vt,one:function(e,t,n){(e=a(e)).on(t,(function r(){e.off(t,n),e.off(t,r)})),e.on(t,n)},replaceWith:function(e,t){var n,r=e.parentNode;dt(e),x(new pt(t),(function(t){n?r.insertBefore(t,n.nextSibling):r.replaceChild(t,e),n=t}))},children:function(e){var t=[];return x(e.childNodes,(function(e){1===e.nodeType&&t.push(e)})),t},contents:function(e){return e.contentDocument||e.childNodes||[]},append:function(e,t){var n=e.nodeType;if(1===n||11===n)for(var r=0,i=(t=new pt(t)).length;r<i;r++){var o=t[r];e.appendChild(o)}},prepend:function(e,t){if(1===e.nodeType){var n=e.firstChild;x(new pt(t),(function(t){e.insertBefore(t,n)}))}},wrap:function(e,t){var n,r,i;n=e,r=a(t).eq(0).clone()[0],(i=n.parentNode)&&i.replaceChild(r,n),r.appendChild(n)},remove:Ft,detach:function(e){Ft(e,!0)},after:function(e,t){var n=e,r=e.parentNode;if(r)for(var i=0,o=(t=new pt(t)).length;i<o;i++){var a=t[i];r.insertBefore(a,n.nextSibling),n=a}},addClass:St,removeClass:xt,toggleClass:function(e,t,n){t&&x(t.split(" "),(function(t){var r=n;L(r)&&(r=!wt(e,t)),(r?St:xt)(e,t)}))},parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},next:function(e){return e.nextElementSibling},find:function(e,t){return e.getElementsByTagName?e.getElementsByTagName(t):[]},clone:ft,triggerHandler:function(e,t,n){var r,i,o,a=t.type||t,s=bt(e),u=s&&s.events,l=u&&u[a];l&&(r={preventDefault:function(){this.defaultPrevented=!0},isDefaultPrevented:function(){return!0===this.defaultPrevented},stopImmediatePropagation:function(){this.immediatePropagationStopped=!0},isImmediatePropagationStopped:function(){return!0===this.immediatePropagationStopped},stopPropagation:O,type:a,target:e},t.type&&(r=F(r,t)),i=He(l),o=n?[r].concat(n):[r],x(i,(function(t){r.isImmediatePropagationStopped()||t.apply(e,o)})))}},(function(e,t){pt.prototype[t]=function(t,n,r){for(var i,o=0,s=this.length;o<s;o++)L(i)?N(i=e(this[o],t,n,r))&&(i=a(i)):Et(i,e(this[o],t,n,r));return N(i)?i:this}})),pt.prototype.bind=pt.prototype.on,pt.prototype.unbind=pt.prototype.off;var Mt=Object.create(null);function Bt(){this._keys=[],this._values=[],this._lastKey=NaN,this._lastIndex=-1}Bt.prototype={_idx:function(e){return e!==this._lastKey&&(this._lastKey=e,this._lastIndex=this._keys.indexOf(e)),this._lastIndex},_transformKey:function(e){return P(e)?Mt:e},get:function(e){e=this._transformKey(e);var t=this._idx(e);if(-1!==t)return this._values[t]},has:function(e){return e=this._transformKey(e),-1!==this._idx(e)},set:function(e,t){e=this._transformKey(e);var n=this._idx(e);-1===n&&(n=this._lastIndex=this._keys.length),this._keys[n]=e,this._values[n]=t},delete:function(e){e=this._transformKey(e);var t=this._idx(e);return-1!==t&&(this._keys.splice(t,1),this._values.splice(t,1),this._lastKey=NaN,this._lastIndex=-1,!0)}};var Ut=Bt,Ht=[function(){this.$get=[function(){return Ut}]}],Vt=/^([^(]+?)=>/,qt=/^[^(]*\(\s*([^)]*)\)/m,zt=/,/,Kt=/^\s*(_?)(\S+?)\1\s*$/,Gt=/((\/\/.*$)|(\/\*[\s\S]*?\*\/))/gm,Wt=i("$injector");function Yt(e){return Function.prototype.toString.call(e)}function Xt(e){var t=Yt(e).replace(Gt,"");return t.match(Vt)||t.match(qt)}function Qt(e,t){t=!0===t;var n={},r=[],i=new Ut,a={$provide:{provider:f(d),factory:f(m),service:f((function(e,t){return m(e,["$injector",function(e){return e.instantiate(t)}])})),value:f((function(e,t){return m(e,_(t),!1)})),constant:f((function(e,t){Le(e,"constant"),a[e]=t,l[e]=t})),decorator:function(e,t){var n=s.get(e+"Provider"),r=n.$get;n.$get=function(){var e=h.invoke(r,n);return h.invoke(t,null,{$delegate:e})}}}},s=a.$injector=y(a,(function(e,t){throw b.isString(t)&&r.push(t),Wt("unpr","Unknown provider: {0}",r.join(" <- "))})),l={},c=y(l,(function(e,t){var n=s.get(e+"Provider",t);return h.invoke(n.$get,n,void 0,e)})),h=c;a.$injectorProvider={$get:_(c)},h.modules=s.modules=Me();var p=v(e);return(h=c.get("$injector")).strictDi=t,x(p,(function(e){e&&h.invoke(e)})),h.loadNewModules=function(e){x(v(e),(function(e){e&&h.invoke(e)}))},h;function f(e){return function(t,n){if(!M(t))return e(t,n);x(t,E(e))}}function d(e,t){if(Le(e,"service"),(K(t)||q(t))&&(t=s.instantiate(t)),!t.$get)throw Wt("pget","Provider '{0}' must define $get factory method.",e);return a[e+"Provider"]=t}function g(e,t){return function(){var n=h.invoke(t,this);if(L(n))throw Wt("undef","Provider '{0}' must return a value from $get factory method.",e);return n}}function m(e,t,n){return d(e,{$get:!1!==n?g(e,t):t})}function v(e){_e(L(e)||q(e),"modulesToLoad","not an array");var t,n=[];return x(e,(function(e){if(!i.get(e)){i.set(e,!0);try{U(e)?(t=u(e),h.modules[e]=t,n=n.concat(v(t.requires)).concat(t._runBlocks),r(t._invokeQueue),r(t._configBlocks)):K(e)||q(e)?n.push(s.invoke(e)):je(e,"module")}catch(t){throw q(e)&&(e=e[e.length-1]),t.message&&t.stack&&-1===t.stack.indexOf(t.message)&&(t=t.message+"\n"+t.stack),Wt("modulerr","Failed to instantiate module {0} due to:\n{1}",e,t.stack||t.message||t)}}function r(e){var t,n;for(t=0,n=e.length;t<n;t++){var r=e[t],i=s.get(r[0]);i[r[1]].apply(i,r[2])}}})),n}function y(e,i){function s(t,o){if(e.hasOwnProperty(t)){if(e[t]===n)throw Wt("cdep","Circular dependency found: {0}",t+" <- "+r.join(" <- "));return e[t]}try{return r.unshift(t),e[t]=n,e[t]=i(t,o),e[t]}catch(r){throw e[t]===n&&delete e[t],r}finally{r.shift()}}function u(e,n,r){for(var i=[],o=Qt.$$annotate(e,t,r),a=0,u=o.length;a<u;a++){var l=o[a];if("string"!=typeof l)throw Wt("itkn","Incorrect injection token! Expected service name as string, got {0}",l);i.push(n&&n.hasOwnProperty(l)?n[l]:s(l,r))}return i}return{invoke:function(e,t,n,r){"string"==typeof n&&(r=n,n=null);var i=u(e,n,r);return q(e)&&(e=e[e.length-1]),function(e){if(o||"function"!=typeof e)return!1;var t=e.$$ngIsClass;return X(t)||(t=e.$$ngIsClass=/^class\b/.test(Yt(e))),t}(e)?(i.unshift(null),new(Function.prototype.bind.apply(e,i))):e.apply(t,i)},instantiate:function(e,t,n){var r=q(e)?e[e.length-1]:e,i=u(e,t,n);return i.unshift(null),new(Function.prototype.bind.apply(r,i))},get:s,annotate:Qt.$$annotate,has:function(t){return a.hasOwnProperty(t+"Provider")||e.hasOwnProperty(t)}}}}function Jt(){var t=!0;this.disableAutoScrolling=function(){t=!1},this.$get=["$window","$location","$rootScope",function(n,r,i){var o=n.document;function s(e){if(e){e.scrollIntoView();var t=function(){var e=u.yOffset;if(K(e))e=e();else if(te(e)){var t=e[0];e="fixed"!==n.getComputedStyle(t).position?0:t.getBoundingClientRect().bottom}else H(e)||(e=0);return e}();if(t){var r=e.getBoundingClientRect().top;n.scrollBy(0,r-t)}}else n.scrollTo(0,0)}function u(e){var t;(e=U(e)?e:H(e)?e.toString():r.hash())?(t=o.getElementById(e))||(t=function(e){var t=null;return Array.prototype.some.call(e,(function(e){if("a"===ne(e))return t=e,!0})),t}(o.getElementsByName(e)))?s(t):"top"===e&&s(null):s(null)}return t&&i.$watch((function(){return r.hash()}),(function(t,n){var r,o;t===n&&""===t||(r=function(){i.$evalAsync(u)},"complete"===(o=o||e).document.readyState?o.setTimeout(r):a(o).on("load",r))})),u}]}Qt.$$annotate=function(e,t,n){var r,i;if("function"==typeof e){if(!(r=e.$inject)){if(r=[],e.length){if(t)throw U(n)&&n||(n=e.name||function(e){var t=Xt(e);return t?"function("+(t[1]||"").replace(/[\s\r\n]+/," ")+")":"fn"}(e)),Wt("strictdi","{0} is not using explicit annotation and cannot be invoked in strict mode",n);x(Xt(e)[1].split(zt),(function(e){e.replace(Kt,(function(e,t,n){r.push(n)}))}))}e.$inject=r}}else q(e)?(je(e[i=e.length-1],"fn"),r=e.slice(0,i)):je(e,"fn",!0);return r};var Zt=i("$animate");function en(e,t){return e||t?e?t?(q(e)&&(e=e.join(" ")),q(t)&&(t=t.join(" ")),e+" "+t):e:t:""}function tn(e){return M(e)?e:{}}var nn=function(){this.$get=O},rn=function(){var e=new Ut,t=[];this.$get=["$$AnimateRunner","$rootScope",function(n,r){return{enabled:O,on:O,off:O,pin:O,push:function(a,s,u,l){l&&l(),(u=u||{}).from&&a.css(u.from),u.to&&a.css(u.to),(u.addClass||u.removeClass)&&function(n,a,s){var u=e.get(n)||{},l=i(u,a,!0),c=i(u,s,!1);(l||c)&&(e.set(n,u),t.push(n),1===t.length&&r.$$postDigest(o))}(a,u.addClass,u.removeClass);var c=new n;return c.complete(),c}};function i(e,t,n){var r=!1;return t&&x(t=U(t)?t.split(" "):q(t)?t:[],(function(t){t&&(r=!0,e[t]=n)})),r}function o(){x(t,(function(t){var n=e.get(t);if(n){var r=function(e){U(e)&&(e=e.split(" "));var t=Me();return x(e,(function(e){e.length&&(t[e]=!0)})),t}(t.attr("class")),i="",o="";x(n,(function(e,t){e!==!!r[t]&&(e?i+=(i.length?" ":"")+t:o+=(o.length?" ":"")+t)})),x(t,(function(e){i&&St(e,i),o&&xt(e,o)})),e.delete(t)}})),t.length=0}}]},on=["$provide",function(e){var t=this,n=null,r=null;this.$$registeredAnimations=Object.create(null),this.register=function(n,r){if(n&&"."!==n.charAt(0))throw Zt("notcsel","Expecting class selector starting with '.' got '{0}'.",n);var i=n+"-animation";t.$$registeredAnimations[n.substr(1)]=i,e.factory(i,r)},this.customFilter=function(e){return 1===arguments.length&&(r=K(e)?e:null),r},this.classNameFilter=function(e){if(1===arguments.length&&(n=e instanceof RegExp?e:null)){var t=new RegExp("[(\\s|\\/)]ng-animate[(\\s|\\/)]");if(t.test(n.toString()))throw n=null,Zt("nongcls",'$animateProvider.classNameFilter(regex) prohibits accepting a regex value which matches/contains the "{0}" CSS class.',"ng-animate")}return n},this.$get=["$$animateQueue",function(e){function t(e,t,n){if(n){var r=function(e){for(var t=0;t<e.length;t++){var n=e[t];if(1===n.nodeType)return n}}(n);!r||r.parentNode||r.previousElementSibling||(n=null)}n?n.after(e):t.prepend(e)}return{on:e.on,off:e.off,pin:e.pin,enabled:e.enabled,cancel:function(e){e.cancel&&e.cancel()},enter:function(n,r,i,o){return r=r&&a(r),i=i&&a(i),t(n,r=r||i.parent(),i),e.push(n,"enter",tn(o))},move:function(n,r,i,o){return r=r&&a(r),i=i&&a(i),t(n,r=r||i.parent(),i),e.push(n,"move",tn(o))},leave:function(t,n){return e.push(t,"leave",tn(n),(function(){t.remove()}))},addClass:function(t,n,r){return(r=tn(r)).addClass=en(r.addclass,n),e.push(t,"addClass",r)},removeClass:function(t,n,r){return(r=tn(r)).removeClass=en(r.removeClass,n),e.push(t,"removeClass",r)},setClass:function(t,n,r,i){return(i=tn(i)).addClass=en(i.addClass,n),i.removeClass=en(i.removeClass,r),e.push(t,"setClass",i)},animate:function(t,n,r,i,o){return(o=tn(o)).from=o.from?F(o.from,n):n,o.to=o.to?F(o.to,r):r,i=i||"ng-inline-animate",o.tempClasses=en(o.tempClasses,i),e.push(t,"animate",o)}}}]}],an=function(){this.$get=["$$rAF",function(e){var t=[];function n(n){t.push(n),t.length>1||e((function(){for(var e=0;e<t.length;e++)t[e]();t=[]}))}return function(){var e=!1;return n((function(){e=!0})),function(t){e?t():n(t)}}}]},sn=function(){this.$get=["$q","$sniffer","$$animateAsyncRun","$$isDocumentHidden","$timeout",function(e,t,n,r,i){function o(e){this.setHost(e);var t=n();this._doneCallbacks=[],this._tick=function(e){r()?function(e){i(e,0,!1)}(e):t(e)},this._state=0}return o.chain=function(e,t){var n=0;!function r(){if(n===e.length)return void t(!0);e[n]((function(e){!1!==e?(n++,r()):t(!1)}))}()},o.all=function(e,t){var n=0,r=!0;function i(i){r=r&&i,++n===e.length&&t(r)}x(e,(function(e){e.done(i)}))},o.prototype={setHost:function(e){this.host=e||{}},done:function(e){2===this._state?e():this._doneCallbacks.push(e)},progress:O,getPromise:function(){if(!this.promise){var t=this;this.promise=e((function(e,n){t.done((function(t){!1===t?n():e()}))}))}return this.promise},then:function(e,t){return this.getPromise().then(e,t)},catch:function(e){return this.getPromise().catch(e)},finally:function(e){return this.getPromise().finally(e)},pause:function(){this.host.pause&&this.host.pause()},resume:function(){this.host.resume&&this.host.resume()},end:function(){this.host.end&&this.host.end(),this._resolve(!0)},cancel:function(){this.host.cancel&&this.host.cancel(),this._resolve(!1)},complete:function(e){var t=this;0===t._state&&(t._state=1,t._tick((function(){t._resolve(e)})))},_resolve:function(e){2!==this._state&&(x(this._doneCallbacks,(function(t){t(e)})),this._doneCallbacks.length=0,this._state=2)}},o}]},un=function(){this.$get=["$$rAF","$q","$$AnimateRunner",function(e,t,n){return function(t,r){var i=r||{};i.$$prepared||(i=oe(i)),i.cleanupStyles&&(i.from=i.to=null),i.from&&(t.css(i.from),i.from=null);var o,a=new n;return{start:s,end:s};function s(){return e((function(){!function(){i.addClass&&(t.addClass(i.addClass),i.addClass=null);i.removeClass&&(t.removeClass(i.removeClass),i.removeClass=null);i.to&&(t.css(i.to),i.to=null)}(),o||a.complete(),o=!0})),a}}}]};function ln(e,t,n,r,i){var o=this,s=e.location,u=e.history,l=e.setTimeout,c=e.clearTimeout,h={},p=i(n);o.isMock=!1,o.$$completeOutstandingRequest=p.completeTask,o.$$incOutstandingRequestCount=p.incTaskCount,o.notifyWhenNoOutstandingRequests=p.notifyWhenNoPendingTasks;var f,d,g=s.href,m=t.find("base"),v=null,y=r.history?function(){try{return u.state}catch(e){}}:O;E(),o.url=function(t,n,i){if(L(i)&&(i=null),s!==e.location&&(s=e.location),u!==e.history&&(u=e.history),t){var a=d===i;if(t=ui(t).href,g===t&&(!r.history||a))return o;var l=g&&sr(g)===sr(t);return g=t,d=i,!r.history||l&&a?(l||(v=t),n?s.replace(t):l?s.hash=function(e){var t=e.indexOf("#");return-1===t?"":e.substr(t)}(t):s.href=t,s.href!==t&&(v=t)):(u[n?"replaceState":"pushState"](i,"",t),E()),v&&(v=t),o}return function(e){return e.replace(/#$/,"")}(v||s.href)},o.state=function(){return f};var b=[],$=!1;function w(){v=null,A()}var S=null;function E(){se(f=L(f=y())?null:f,S)&&(f=S),S=f,d=f}function A(){var e=d;E(),g===o.url()&&e===f||(g=o.url(),d=f,x(b,(function(e){e(o.url(),f)})))}o.onUrlChange=function(t){return $||(r.history&&a(e).on("popstate",w),a(e).on("hashchange",w),$=!0),b.push(t),t},o.$$applicationDestroyed=function(){a(e).off("hashchange popstate",w)},o.$$checkUrlChange=A,o.baseHref=function(){var e=m.attr("href");return e?e.replace(/^(https?:)?\/\/[^/]*/,""):""},o.defer=function(e,t,n){var r;return t=t||0,n=n||p.DEFAULT_TASK_TYPE,p.incTaskCount(n),r=l((function(){delete h[r],p.completeTask(e,n)}),t),h[r]=n,r},o.defer.cancel=function(e){if(h.hasOwnProperty(e)){var t=h[e];return delete h[e],c(e),p.completeTask(O,t),!0}return!1}}function cn(){this.$get=["$window","$log","$sniffer","$document","$$taskTrackerFactory",function(e,t,n,r,i){return new ln(e,r,t,n,i)}]}function hn(){this.$get=function(){var e={};function t(t,n){if(t in e)throw i("$cacheFactory")("iid","CacheId '{0}' is already taken!",t);var r=0,o=F({},n,{id:t}),a=Me(),s=n&&n.capacity||Number.MAX_VALUE,u=Me(),l=null,c=null;return e[t]={put:function(e,t){if(!L(t)){if(s<Number.MAX_VALUE)h(u[e]||(u[e]={key:e}));return e in a||r++,a[e]=t,r>s&&this.remove(c.key),t}},get:function(e){if(s<Number.MAX_VALUE){var t=u[e];if(!t)return;h(t)}return a[e]},remove:function(e){if(s<Number.MAX_VALUE){var t=u[e];if(!t)return;t===l&&(l=t.p),t===c&&(c=t.n),p(t.n,t.p),delete u[e]}e in a&&(delete a[e],r--)},removeAll:function(){a=Me(),r=0,u=Me(),l=c=null},destroy:function(){a=null,o=null,u=null,delete e[t]},info:function(){return F({},o,{size:r})}};function h(e){e!==l&&(c?c===e&&(c=e.n):c=e,p(e.n,e.p),p(e,l),(l=e).n=null)}function p(e,t){e!==t&&(e&&(e.p=t),t&&(t.n=e))}}return t.info=function(){var t={};return x(e,(function(e,n){t[n]=e.info()})),t},t.get=function(t){return e[t]},t}}function pn(){this.$get=["$cacheFactory",function(e){return e("templates")}]}var fn=i("$compile");var dn=new function(){};function gn(t,n){var r={},i=/^\s*directive:\s*([\w-]+)\s+(.*)$/,s=/(([\w-]+)(?::([^;]+))?;?)/,u=function(e){var t,n={},r=e.split(",");for(t=0;t<r.length;t++)n[r[t]]=!0;return n}("ngSrc,ngSrcset,src,srcset"),l=/^(?:(\^\^?)?(\?)?(\^\^?)?)?/,p=/^(on[a-z]+|formaction)$/,f=Me();function d(e,t,n){var r=/^([@&]|[=<](\*?))(\??)\s*([\w$]*)$/,i=Me();return x(e,(function(e,o){if((e=e.trim())in f)i[o]=f[e];else{var a=e.match(r);if(!a)throw fn("iscp","Invalid {3} for directive '{0}'. Definition: {... {1}: '{2}' ...}",t,o,e,n?"controller bindings definition":"isolate scope definition");i[o]={mode:a[1][0],collection:"*"===a[2],optional:"?"===a[3],attrName:a[4]||o},a[4]&&(f[e]=i[o])}})),i}function g(e,t){var n={isolateScope:null,bindToController:null};if(M(e.scope)&&(!0===e.bindToController?(n.bindToController=d(e.scope,t,!0),n.isolateScope={}):n.isolateScope=d(e.scope,t,!1)),M(e.bindToController)&&(n.bindToController=d(e.bindToController,t,!0)),n.bindToController&&!e.controller)throw fn("noctrl","Cannot bind to controller without directive '{0}'s controller.",t);return n}this.directive=function e(n,i){return _e(n,"name"),Le(n,"directive"),U(n)?(!function(e){var t=e.charAt(0);if(!t||t!==h(t))throw fn("baddir","Directive/Component name '{0}' is invalid. The first character must be a lowercase letter",e);if(e!==e.trim())throw fn("baddir","Directive/Component name '{0}' is invalid. The name should not contain leading or trailing whitespaces",e)}(n),_e(i,"directiveFactory"),r.hasOwnProperty(n)||(r[n]=[],t.factory(n+"Directive",["$injector","$exceptionHandler",function(e,t){var i=[];return x(r[n],(function(r,o){try{var a=e.invoke(r);K(a)?a={compile:_(a)}:!a.compile&&a.link&&(a.compile=_(a.link)),a.priority=a.priority||0,a.index=o,a.name=a.name||n,a.require=function(e){var t=e.require||e.controller&&e.name;return!q(t)&&M(t)&&x(t,(function(e,n){var r=e.match(l);e.substring(r[0].length)||(t[n]=r[0]+n)})),t}(a),a.restrict=function(e,t){if(e&&(!U(e)||!/[EACM]/.test(e)))throw fn("badrestrict","Restrict property '{0}' of directive '{1}' is invalid",e,t);return e||"EA"}(a.restrict,n),a.$$moduleName=r.$$moduleName,i.push(a)}catch(e){t(e)}})),i}])),r[n].push(i)):x(n,E(e)),this},this.component=function e(t,n){if(!U(t))return x(t,E(pe(this,e))),this;var r=n.controller||function(){};function i(e){function t(t){return K(t)||q(t)?function(n,r){return e.invoke(t,this,{$element:n,$attrs:r})}:t}var i=n.template||n.templateUrl?n.template:"",o={controller:r,controllerAs:En(n.controller)||n.controllerAs||"$ctrl",template:t(i),templateUrl:t(n.templateUrl),transclude:n.transclude,scope:{},bindToController:n.bindings||{},restrict:"E",require:n.require};return x(n,(function(e,t){"$"===t.charAt(0)&&(o[t]=e)})),o}return x(n,(function(e,t){"$"===t.charAt(0)&&(i[t]=e,K(r)&&(r[t]=e))})),i.$inject=["$injector"],this.directive(t,i)},this.aHrefSanitizationTrustedUrlList=function(e){return N(e)?(n.aHrefSanitizationTrustedUrlList(e),this):n.aHrefSanitizationTrustedUrlList()},Object.defineProperty(this,"aHrefSanitizationWhitelist",{get:function(){return this.aHrefSanitizationTrustedUrlList},set:function(e){this.aHrefSanitizationTrustedUrlList=e}}),this.imgSrcSanitizationTrustedUrlList=function(e){return N(e)?(n.imgSrcSanitizationTrustedUrlList(e),this):n.imgSrcSanitizationTrustedUrlList()},Object.defineProperty(this,"imgSrcSanitizationWhitelist",{get:function(){return this.imgSrcSanitizationTrustedUrlList},set:function(e){this.imgSrcSanitizationTrustedUrlList=e}});var v=!0;this.debugInfoEnabled=function(e){return N(e)?(v=e,this):v};var y=!1;this.strictComponentBindingsEnabled=function(e){return N(e)?(y=e,this):y};var b=10;this.onChangesTtl=function(e){return arguments.length?(b=e,this):b};var $=!0;this.commentDirectivesEnabled=function(e){return arguments.length?($=e,this):$};var w=!0;this.cssClassDirectivesEnabled=function(e){return arguments.length?(w=e,this):w};var S=Me();this.addPropertySecurityContext=function(e,t,n){var r=e.toLowerCase()+"|"+t.toLowerCase();if(r in S&&S[r]!==n)throw fn("ctxoverride","Property context '{0}.{1}' already set to '{2}', cannot override to '{3}'.",e,t,S[r],n);return S[r]=n,this},function(){function e(e,t){x(t,(function(t){S[t.toLowerCase()]=e}))}e(qr.HTML,["iframe|srcdoc","*|innerHTML","*|outerHTML"]),e(qr.CSS,["*|style"]),e(qr.URL,["area|href","area|ping","a|href","a|ping","blockquote|cite","body|background","del|cite","input|src","ins|cite","q|cite"]),e(qr.MEDIA_URL,["audio|src","img|src","img|srcset","source|src","source|srcset","track|src","video|src","video|poster"]),e(qr.RESOURCE_URL,["*|formAction","applet|code","applet|codebase","base|href","embed|src","frame|src","form|action","head|profile","html|manifest","iframe|src","link|href","media|src","object|codebase","object|data","script|src"])}(),this.$get=["$injector","$interpolate","$exceptionHandler","$templateRequest","$parse","$controller","$rootScope","$sce","$animate",function(t,n,f,d,E,A,C,T,k){var R,P=/^\w/,_=e.document.createElement("div"),j=$,N=w,B=b;function H(){try{if(!--B)throw R=void 0,fn("infchng","{0} $onChanges() iterations reached. Aborting!\n",b);C.$apply((function(){for(var e=0,t=R.length;e<t;++e)try{R[e]()}catch(e){f(e)}R=void 0}))}finally{B++}}function V(e,t){if(!e)return e;if(!U(e))throw fn("srcset",'Can\'t pass trusted values to `{0}`: "{1}"',t,e.toString());for(var n="",r=Z(e),i=/\s/.test(r)?/(\s+\d+x\s*,|\s+\d+w\s*,|\s+,|,\s+)/:/(,)/,o=r.split(i),a=Math.floor(o.length/2),s=0;s<a;s++){var u=2*s;n+=T.getTrustedMediaUrl(Z(o[u])),n+=" "+Z(o[u+1])}var l=Z(o[2*s]).split(/\s/);return n+=T.getTrustedMediaUrl(Z(l[0])),2===l.length&&(n+=" "+Z(l[1])),n}function G(e,t){if(t){var n,r,i,o=Object.keys(t);for(n=0,r=o.length;n<r;n++)this[i=o[n]]=t[i]}else this.$attr={};this.$$element=e}function W(e,t){try{e.addClass(t)}catch(e){}}G.prototype={$normalize:bn,$addClass:function(e){e&&e.length>0&&k.addClass(this.$$element,e)},$removeClass:function(e){e&&e.length>0&&k.removeClass(this.$$element,e)},$updateClass:function(e,t){var n=$n(e,t);n&&n.length&&k.addClass(this.$$element,n);var r=$n(t,e);r&&r.length&&k.removeClass(this.$$element,r)},$set:function(e,t,n,r){var i=It(this.$$element[0],e),o=Ot[e],a=e;i?(this.$$element.prop(e,t),r=i):o&&(this[o]=t,a=o),this[e]=t,r?this.$attr[e]=r:(r=this.$attr[e])||(this.$attr[e]=r=De(e,"-")),"img"===ne(this.$$element)&&"srcset"===e&&(this[e]=t=V(t,"$set('srcset', value)")),!1!==n&&(null===t||L(t)?this.$$element.removeAttr(r):P.test(r)?i&&!1===t?this.$$element.removeAttr(r):this.$$element.attr(r,t):function(e,t,n){_.innerHTML="<span "+t+">";var r=_.firstChild.attributes,i=r[0];r.removeNamedItem(i.name),i.value=n,e.attributes.setNamedItem(i)}(this.$$element[0],r,t));var s=this.$$observers;s&&x(s[a],(function(e){try{e(t)}catch(e){f(e)}}))},$observe:function(e,t){var n=this,r=n.$$observers||(n.$$observers=Me()),i=r[e]||(r[e]=[]);return i.push(t),C.$evalAsync((function(){i.$$inter||!n.hasOwnProperty(e)||L(n[e])||t(n[e])})),function(){ie(i,t)}}};var Q=n.startSymbol(),J=n.endSymbol(),ee="{{"===Q&&"}}"===J?I:function(e){return e.replace(/\{\{/g,Q).replace(/}}/g,J)},te=/^ng(Attr|Prop|On)([A-Z].*)$/,re=/^(.+)Start$/;return oe.$$addBindingInfo=v?function(e,t){var n=e.data("$binding")||[];q(t)?n=n.concat(t):n.push(t),e.data("$binding",n)}:O,oe.$$addBindingClass=v?function(e){W(e,"ng-binding")}:O,oe.$$addScopeInfo=v?function(e,t,n,r){var i=n?r?"$isolateScopeNoTemplate":"$isolateScope":"$scope";e.data(i,t)}:O,oe.$$addScopeClass=v?function(e,t){W(e,t?"ng-isolate-scope":"ng-scope")}:O,oe.$$createComment=function(t,n){var r="";return v&&(r=" "+(t||"")+": ",n&&(r+=n+" ")),e.document.createComment(r)},oe;function oe(e,t,n,r,i){e instanceof a||(e=a(e));var o=ue(e,t,e,n,r,i);oe.$$addScopeClass(e);var s=null;return function(t,n,r){if(!e)throw fn("multilink","This element has already been linked.");_e(t,"scope"),i&&i.needsNewScope&&(t=t.$parent.$new());var u,l,c,h=(r=r||{}).parentBoundTranscludeFn,p=r.transcludeControllers,f=r.futureParentElement;if(h&&h.$$boundTransclude&&(h=h.$$boundTransclude),s||(l=(u=f)&&u[0],s=l&&"foreignobject"!==ne(l)&&m.call(l).match(/SVG/)?"svg":"html"),c="html"!==s?a(Te(s,a("<div></div>").append(e).html())):n?Rt.clone.call(e):e,p)for(var d in p)c.data("$"+d+"Controller",p[d].instance);return oe.$$addScopeInfo(c,t),n&&n(c,t),o&&o(t,c,c,h),n||(e=o=null),c}}function ue(e,t,n,r,i,s){for(var u,l,c,h,p,f,d,g=[],m=q(e)||e instanceof a,v=0;v<e.length;v++)u=new G,11===o&&le(e,v,m),(c=(l=fe(e[v],[],u,0===v?r:void 0,i)).length?ve(l,e[v],u,t,n,null,[],[],s):null)&&c.scope&&oe.$$addScopeClass(u.$$element),p=c&&c.terminal||!(h=e[v].childNodes)||!h.length?null:ue(h,c?(c.transcludeOnThisElement||!c.templateOnThisElement)&&c.transclude:t),(c||p)&&(g.push(v,c,p),f=!0,d=d||c),s=null;return f?function(e,n,r,i){var o,s,u,l,c,h,p,f,m;if(d){var v=n.length;for(m=new Array(v),c=0;c<g.length;c+=3)p=g[c],m[p]=n[p]}else m=n;for(c=0,h=g.length;c<h;)u=m[g[c++]],o=g[c++],s=g[c++],o?(o.scope?(l=e.$new(),oe.$$addScopeInfo(a(u),l)):l=e,f=o.transcludeOnThisElement?ce(e,o.transclude,i):!o.templateOnThisElement&&i?i:!i&&t?ce(e,t):null,o(s,l,u,r,f)):s&&s(e,u.childNodes,void 0,i)}:null}function le(e,t,n){var r,i=e[t],o=i.parentNode;if(i.nodeType===Ue)for(;(r=o?i.nextSibling:e[t+1])&&r.nodeType===Ue;)i.nodeValue=i.nodeValue+r.nodeValue,r.parentNode&&r.parentNode.removeChild(r),n&&r===e[t+1]&&e.splice(t+1,1)}function ce(e,t,n){function r(r,i,o,a,s){return r||((r=e.$new(!1,s)).$$transcluded=!0),t(r,i,{parentBoundTranscludeFn:n,transcludeControllers:o,futureParentElement:a})}var i=r.$$slots=Me();for(var o in t.$$slots)t.$$slots[o]?i[o]=ce(e,t.$$slots[o],n):i[o]=null;return r}function fe(e,t,r,o,a){var u,l,c,h=e.nodeType,p=r.$attr;switch(h){case 1:we(t,bn(l=ne(e)),"E",o,a);for(var f,d,g,m,v,y=e.attributes,b=0,$=y&&y.length;b<$;b++){var w,x=!1,S=!1,E=!1,A=!1,C=!1;d=(f=y[b]).name,m=f.value,(v=(g=bn(d.toLowerCase())).match(te))?(E="Attr"===v[1],A="Prop"===v[1],C="On"===v[1],d=d.replace(vn,"").toLowerCase().substr(4+v[1].length).replace(/_(.)/g,(function(e,t){return t.toUpperCase()}))):(w=g.match(re))&&xe(w[1])&&(x=d,S=d.substr(0,d.length-5)+"end",d=d.substr(0,d.length-6)),A||C?(r[g]=m,p[g]=f.name,A?ke(e,t,g,d):Re(t,g,d)):(p[g=bn(d.toLowerCase())]=d,!E&&r.hasOwnProperty(g)||(r[g]=m,It(e,g)&&(r[g]=!0)),Pe(e,t,m,g,E),we(t,g,"A",o,a,x,S))}if("input"===l&&"hidden"===e.getAttribute("type")&&e.setAttribute("autocomplete","off"),!N)break;if(M(c=e.className)&&(c=c.animVal),U(c)&&""!==c)for(;u=s.exec(c);)we(t,g=bn(u[2]),"C",o,a)&&(r[g]=Z(u[3])),c=c.substr(u.index+u[0].length);break;case Ue:!function(e,t){var r=n(t,!0);r&&e.push({priority:0,compile:function(e){var t=e.parent(),n=!!t.length;return n&&oe.$$addBindingClass(t),function(e,t){var i=t.parent();n||oe.$$addBindingClass(i),oe.$$addBindingInfo(i,r.expressions),e.$watch(r,(function(e){t[0].nodeValue=e}))}}})}(t,e.nodeValue);break;case 8:if(!j)break;!function(e,t,n,r,o){try{var a=i.exec(e.nodeValue);if(a){var s=bn(a[1]);we(t,s,"M",r,o)&&(n[s]=Z(a[2]))}}catch(e){}}(e,t,r,o,a)}return t.sort(Ae),t}function de(e,t,n){var r=[],i=0;if(t&&e.hasAttribute&&e.hasAttribute(t))do{if(!e)throw fn("uterdir","Unterminated attribute, found '{0}' but no matching '{1}' found.",t,n);1===e.nodeType&&(e.hasAttribute(t)&&i++,e.hasAttribute(n)&&i--),r.push(e),e=e.nextSibling}while(i>0);else r.push(e);return a(r)}function ge(e,t,n){return function(r,i,o,a,s){return i=de(i[0],t,n),e(r,i,o,a,s)}}function me(e,t,n,r,i,o){var a;return e?oe(t,n,r,i,o):function(){return a||(a=oe(t,n,r,i,o),t=n=o=null),a.apply(this,arguments)}}function ve(t,n,r,i,o,s,u,l,c){c=c||{};for(var h,p,d,g,m,v=-Number.MAX_VALUE,y=c.newScopeDirective,b=c.controllerDirectives,$=c.newIsolateScopeDirective,w=c.templateDirective,S=c.nonTlbTranscludeDirective,E=!1,C=!1,T=c.hasElementTranscludeDirective,k=r.$$element=a(n),R=s,P=i,D=!1,O=!1,I=0,_=t.length;I<_;I++){var j=(h=t[I]).$$start,N=h.$$end;if(j&&(k=de(n,j,N)),d=void 0,v>h.priority)break;if((m=h.scope)&&(h.templateUrl||(M(m)?(Ce("new/isolated scope",$||y,h,k),$=h):Ce("new/isolated scope",$,h,k)),y=y||h),p=h.name,!D&&(h.replace&&(h.templateUrl||h.template)||h.transclude&&!h.$$tlb)){for(var B,U=I+1;B=t[U++];)if(B.transclude&&!B.$$tlb||B.replace&&(B.templateUrl||B.template)){O=!0;break}D=!0}if(!h.templateUrl&&h.controller&&(b=b||Me(),Ce("'"+p+"' controller",b[p],h,k),b[p]=h),m=h.transclude)if(E=!0,h.$$tlb||(Ce("transclusion",S,h,k),S=h),"element"===m)T=!0,v=h.priority,d=k,k=r.$$element=a(oe.$$createComment(p,r[p])),n=k[0],Oe(o,he(d),n),P=me(O,d,i,v,R&&R.name,{nonTlbTranscludeDirective:S});else{var H=Me();if(M(m)){d=e.document.createDocumentFragment();var V=Me(),z=Me();for(var W in x(m,(function(e,t){var n="?"===e.charAt(0);e=n?e.substring(1):e,V[e]=t,H[t]=null,z[t]=n})),x(k.contents(),(function(t){var n=V[bn(ne(t))];n?(z[n]=!0,H[n]=H[n]||e.document.createDocumentFragment(),H[n].appendChild(t)):d.appendChild(t)})),x(z,(function(e,t){if(!e)throw fn("reqslot","Required transclusion slot `{0}` was not filled.",t)})),H)if(H[W]){var X=a(H[W].childNodes);H[W]=me(O,X,i)}d=a(d.childNodes)}else d=a(ft(n)).contents();k.empty(),(P=me(O,d,i,void 0,void 0,{needsNewScope:h.$$isolateScope||h.$$newScope})).$$slots=H}if(h.template)if(C=!0,Ce("template",w,h,k),w=h,m=K(h.template)?h.template(k,r):h.template,m=ee(m),h.replace){if(R=h,d=ut(m)?[]:wn(Te(h.templateNamespace,Z(m))),n=d[0],1!==d.length||1!==n.nodeType)throw fn("tplrt","Template for directive '{0}' must have exactly one root element. {1}",p,"");Oe(o,k,n);var Q={$attr:{}},J=fe(n,[],Q),te=t.splice(I+1,t.length-(I+1));($||y)&&be(J,$,y),t=t.concat(J).concat(te),Se(r,Q),_=t.length}else k.html(m);if(h.templateUrl)C=!0,Ce("template",w,h,k),w=h,h.replace&&(R=h),ae=Ee(t.splice(I,t.length-I),k,r,o,E&&P,u,l,{controllerDirectives:b,newScopeDirective:y!==h&&y,newIsolateScopeDirective:$,templateDirective:w,nonTlbTranscludeDirective:S}),_=t.length;else if(h.compile)try{g=h.compile(k,r,P);var re=h.$$originalDirective||h;K(g)?ie(null,pe(re,g),j,N):g&&ie(pe(re,g.pre),pe(re,g.post),j,N)}catch(e){f(e,$e(k))}h.terminal&&(ae.terminal=!0,v=Math.max(v,h.priority))}return ae.scope=y&&!0===y.scope,ae.transcludeOnThisElement=E,ae.templateOnThisElement=C,ae.transclude=P,c.hasElementTranscludeDirective=T,ae;function ie(e,t,n,r){e&&(n&&(e=ge(e,n,r)),e.require=h.require,e.directiveName=p,($===h||h.$$isolateScope)&&(e=Ie(e,{isolateScope:!0})),u.push(e)),t&&(n&&(t=ge(t,n,r)),t.require=h.require,t.directiveName=p,($===h||h.$$isolateScope)&&(t=Ie(t,{isolateScope:!0})),l.push(t))}function ae(e,t,i,o,s){var c,h,p,d,g,m,v,S,E,C;for(var k in n===i?(E=r,S=r.$$element):E=new G(S=a(i),r),g=t,$?d=t.$new(!0):y&&(g=t.$parent),s&&((v=function(e,t,n,r){var i;Y(e)||(r=n,n=t,t=e,e=void 0);T&&(i=m);n||(n=T?S.parent():S);if(!r)return s(e,t,i,n,O);var o=s.$$slots[r];if(o)return o(e,t,i,n,O);if(L(o))throw fn("noslot",'No parent directive that requires a transclusion with slot name "{0}". Element: {1}',r,$e(S))}).$$boundTransclude=s,v.isSlotFilled=function(e){return!!s.$$slots[e]}),b&&(m=function(e,t,n,r,i,o,a){var s=Me();for(var u in r){var l=r[u],c={$scope:l===a||l.$$isolateScope?i:o,$element:e,$attrs:t,$transclude:n},h=l.controller;"@"===h&&(h=t[l.name]);var p=A(h,c,!0,l.controllerAs);s[l.name]=p,e.data("$"+l.name+"Controller",p.instance)}return s}(S,E,v,b,d,t,$)),$&&(oe.$$addScopeInfo(S,d,!0,!(w&&(w===$||w===$.$$originalDirective))),oe.$$addScopeClass(S,!0),d.$$isolateBindings=$.$$isolateBindings,(C=Ne(t,E,d,d.$$isolateBindings,$)).removeWatches&&d.$on("$destroy",C.removeWatches)),m){var R=b[k],P=m[k],D=R.$$bindings.bindToController;P.instance=P(),S.data("$"+R.name+"Controller",P.instance),P.bindingInfo=Ne(g,E,P.instance,D,R)}for(x(b,(function(e,t){var n=e.require;e.bindToController&&!q(n)&&M(n)&&F(m[t].instance,ye(t,n,S,m))})),x(m,(function(e){var t=e.instance;if(K(t.$onChanges))try{t.$onChanges(e.bindingInfo.initialChanges)}catch(e){f(e)}if(K(t.$onInit))try{t.$onInit()}catch(e){f(e)}K(t.$doCheck)&&(g.$watch((function(){t.$doCheck()})),t.$doCheck()),K(t.$onDestroy)&&g.$on("$destroy",(function(){t.$onDestroy()}))})),c=0,h=u.length;c<h;c++)je(p=u[c],p.isolateScope?d:t,S,E,p.require&&ye(p.directiveName,p.require,S,m),v);var O=t;for($&&($.template||null===$.templateUrl)&&(O=d),e&&e(O,i.childNodes,void 0,s),c=l.length-1;c>=0;c--)je(p=l[c],p.isolateScope?d:t,S,E,p.require&&ye(p.directiveName,p.require,S,m),v);x(m,(function(e){var t=e.instance;K(t.$postLink)&&t.$postLink()}))}}function ye(e,t,n,r){var i;if(U(t)){var o=t.match(l),a=t.substring(o[0].length),s=o[1]||o[3],u="?"===o[2];if("^^"===s?n=n.parent():i=(i=r&&r[a])&&i.instance,!i){var c="$"+a+"Controller";i="^^"===s&&n[0]&&9===n[0].nodeType?null:s?n.inheritedData(c):n.data(c)}if(!i&&!u)throw fn("ctreq","Controller '{0}', required by directive '{1}', can't be found!",a,e)}else if(q(t)){i=[];for(var h=0,p=t.length;h<p;h++)i[h]=ye(e,t[h],n,r)}else M(t)&&(i={},x(t,(function(t,o){i[o]=ye(e,t,n,r)})));return i||null}function be(e,t,n){for(var r=0,i=e.length;r<i;r++)e[r]=D(e[r],{$$isolateScope:t,$$newScope:n})}function we(e,n,i,o,a,s,u){if(n===a)return null;var l=null;if(r.hasOwnProperty(n))for(var c,h=t.get(n+"Directive"),p=0,f=h.length;p<f;p++)if(c=h[p],(L(o)||o>c.priority)&&-1!==c.restrict.indexOf(i)){if(s&&(c=D(c,{$$start:s,$$end:u})),!c.$$bindings){var d=c.$$bindings=g(c,c.name);M(d.isolateScope)&&(c.$$isolateBindings=d.isolateScope)}e.push(c),l=c}return l}function xe(e){if(r.hasOwnProperty(e))for(var n=t.get(e+"Directive"),i=0,o=n.length;i<o;i++)if(n[i].multiElement)return!0;return!1}function Se(e,t){var n=t.$attr,r=e.$attr;x(e,(function(r,i){"$"!==i.charAt(0)&&(t[i]&&t[i]!==r&&(r.length?r+=("style"===i?";":" ")+t[i]:r=t[i]),e.$set(i,r,!0,n[i]))})),x(t,(function(t,i){e.hasOwnProperty(i)||"$"===i.charAt(0)||(e[i]=t,"class"!==i&&"style"!==i&&(r[i]=n[i]))}))}function Ee(e,t,n,r,i,o,s,u){var l,c,h=[],p=t[0],g=e.shift(),m=D(g,{templateUrl:null,transclude:null,replace:null,$$originalDirective:g}),v=K(g.templateUrl)?g.templateUrl(t,n):g.templateUrl,y=g.templateNamespace;return t.empty(),d(v).then((function(f){var d,b,$,w;if(f=ee(f),g.replace){if($=ut(f)?[]:wn(Te(y,Z(f))),d=$[0],1!==$.length||1!==d.nodeType)throw fn("tplrt","Template for directive '{0}' must have exactly one root element. {1}",g.name,v);b={$attr:{}},Oe(r,t,d);var S=fe(d,[],b);M(g.scope)&&be(S,!0),e=S.concat(e),Se(n,b)}else d=p,t.html(f);for(e.unshift(m),l=ve(e,d,n,i,t,g,o,s,u),x(r,(function(e,n){e===d&&(r[n]=t[0])})),c=ue(t[0].childNodes,i);h.length;){var E=h.shift(),A=h.shift(),C=h.shift(),T=h.shift(),F=t[0];if(!E.$$destroyed){if(A!==p){var k=A.className;u.hasElementTranscludeDirective&&g.replace||(F=ft(d)),Oe(C,a(A),F),W(a(F),k)}w=l.transcludeOnThisElement?ce(E,l.transclude,T):T,l(c,E,F,r,w)}}h=null})).catch((function(e){z(e)&&f(e)})),function(e,t,n,r,i){var o=i;t.$$destroyed||(h?h.push(t,n,r,o):(l.transcludeOnThisElement&&(o=ce(t,l.transclude,i)),l(c,t,n,r,o)))}}function Ae(e,t){var n=t.priority-e.priority;return 0!==n?n:e.name!==t.name?e.name<t.name?-1:1:e.index-t.index}function Ce(e,t,n,r){function i(e){return e?" (module: "+e+")":""}if(t)throw fn("multidir","Multiple directives [{0}{1}, {2}{3}] asking for {4} on: {5}",t.name,i(t.$$moduleName),n.name,i(n.$$moduleName),e,$e(r))}function Te(t,n){switch(t=h(t||"html")){case"svg":case"math":var r=e.document.createElement("div");return r.innerHTML="<"+t+">"+n+"</"+t+">",r.childNodes[0].childNodes;default:return n}}function Fe(e){return V(T.valueOf(e),"ng-prop-srcset")}function ke(e,t,n,r){if(p.test(r))throw fn("nodomevents","Property bindings for HTML DOM event properties are disallowed");var i=ne(e),o=function(e,t){var n=t.toLowerCase();return S[e+"|"+n]||S["*|"+n]}(i,r),a=I;"srcset"!==r||"img"!==i&&"source"!==i?o&&(a=T.getTrusted.bind(T,o)):a=Fe,t.push({priority:100,compile:function(e,t){var i=E(t[n]),o=E(t[n],(function(e){return T.valueOf(e)}));return{pre:function(e,t){function n(){var n=i(e);t[0][r]=a(n)}n(),e.$watch(o,n)}}}})}function Re(e,t,n){e.push(Do(E,C,f,t,n,!1))}function Pe(e,t,r,i,o){var a=ne(e),s=function(e,t){return"srcdoc"===t?T.HTML:"src"===t||"ngSrc"===t?-1===["img","video","audio","source","track"].indexOf(e)?T.RESOURCE_URL:T.MEDIA_URL:"xlinkHref"===t?"image"===e?T.MEDIA_URL:"a"===e?T.URL:T.RESOURCE_URL:"form"===e&&"action"===t||"base"===e&&"href"===t||"link"===e&&"href"===t?T.RESOURCE_URL:"a"!==e||"href"!==t&&"ngHref"!==t?void 0:T.URL}(a,i),l=!o,c=u[i]||o,h=n(r,l,s,c);if(h){if("multiple"===i&&"select"===a)throw fn("selmulti","Binding to the 'multiple' attribute is not supported. Element: {0}",$e(e));if(p.test(i))throw fn("nodomevents","Interpolations for HTML DOM event attributes are disallowed");t.push({priority:100,compile:function(){return{pre:function(e,t,o){var a=o.$$observers||(o.$$observers=Me()),u=o[i];u!==r&&(h=u&&n(u,!0,s,c),r=u),h&&(o[i]=h(e),(a[i]||(a[i]=[])).$$inter=!0,(o.$$observers&&o.$$observers[i].$$scope||e).$watch(h,(function(e,t){"class"===i&&e!==t?o.$updateClass(e,t):o.$set(i,e)})))}}}})}}function Oe(t,n,r){var i,o,s=n[0],u=n.length,l=s.parentNode;if(t)for(i=0,o=t.length;i<o;i++)if(t[i]===s){t[i++]=r;for(var c=i,h=c+u-1,p=t.length;c<p;c++,h++)h<p?t[c]=t[h]:delete t[c];t.length-=u-1,t.context===s&&(t.context=r);break}l&&l.replaceChild(r,s);var f=e.document.createDocumentFragment();for(i=0;i<u;i++)f.appendChild(n[i]);for(a.hasData(s)&&(a.data(r,a.data(s)),a(s).off("$destroy")),a.cleanData(f.querySelectorAll("*")),i=1;i<u;i++)delete n[i];n[0]=r,n.length=1}function Ie(e,t){return F((function(){return e.apply(null,arguments)}),e,t)}function je(e,t,n,r,i,o){try{e(t,n,r,i,o)}catch(e){f(e,$e(n))}}function Le(e,t){if(y)throw fn("missingattr","Attribute '{0}' of '{1}' is non-optional and must be set!",e,t)}function Ne(e,t,r,i,o){var a,s=[],u={};function l(t,n,i){K(r.$onChanges)&&!ae(n,i)&&(R||(e.$$postDigest(H),R=[]),a||(a={},R.push(h)),a[t]&&(i=a[t].previousValue),a[t]=new mn(i,n))}function h(){r.$onChanges(a),a=void 0}return x(i,(function(i,a){var h,p,f,d,g,m=i.attrName,v=i.optional;switch(i.mode){case"@":v||c.call(t,m)||(Le(m,o.name),r[a]=t[m]=void 0),g=t.$observe(m,(function(e){if(U(e)||X(e)){var t=r[a];l(a,e,t),r[a]=e}})),t.$$observers[m].$$scope=e,U(h=t[m])?r[a]=n(h)(e):X(h)&&(r[a]=h),u[a]=new mn(dn,r[a]),s.push(g);break;case"=":if(!c.call(t,m)){if(v)break;Le(m,o.name),t[m]=void 0}if(v&&!t[m])break;p=E(t[m]),d=p.literal?se:ae,f=p.assign||function(){throw h=r[a]=p(e),fn("nonassign","Expression '{0}' in attribute '{1}' used with directive '{2}' is non-assignable!",t[m],m,o.name)},h=r[a]=p(e);var y=function(t){return d(t,r[a])||(d(t,h)?f(e,t=r[a]):r[a]=t),h=t};y.$stateful=!0,g=i.collection?e.$watchCollection(t[m],y):e.$watch(E(t[m],y),null,p.literal),s.push(g);break;case"<":if(!c.call(t,m)){if(v)break;Le(m,o.name),t[m]=void 0}if(v&&!t[m])break;var b=(p=E(t[m])).literal,$=r[a]=p(e);u[a]=new mn(dn,r[a]),g=e[i.collection?"$watchCollection":"$watch"](p,(function(e,t){if(t===e){if(t===$||b&&se(t,$))return;t=$}l(a,e,t),r[a]=e})),s.push(g);break;case"&":if(v||c.call(t,m)||Le(m,o.name),(p=t.hasOwnProperty(m)?E(t[m]):O)===O&&v)break;r[a]=function(t){return p(e,t)}}})),{initialChanges:u,removeWatches:s.length&&function(){for(var e=0,t=s.length;e<t;++e)s[e]()}}}}]}function mn(e,t){this.previousValue=e,this.currentValue=t}gn.$inject=["$provide","$$sanitizeUriProvider"],mn.prototype.isFirstChange=function(){return this.previousValue===dn};var vn=/^((?:x|data)[:\-_])/i,yn=/[:\-_]+(.)/g;function bn(e){return e.replace(vn,"").replace(yn,(function(e,t,n){return n?t.toUpperCase():t}))}function $n(e,t){var n="",r=e.split(/\s+/),i=t.split(/\s+/);e:for(var o=0;o<r.length;o++){for(var a=r[o],s=0;s<i.length;s++)if(a===i[s])continue e;n+=(n.length>0?" ":"")+a}return n}function wn(e){var t=(e=a(e)).length;if(t<=1)return e;for(;t--;){var n=e[t];(8===n.nodeType||n.nodeType===Ue&&""===n.nodeValue.trim())&&d.call(e,t,1)}return e}var xn=i("$controller"),Sn=/^(\S+)(\s+as\s+([\w$]+))?$/;function En(e,t){if(t&&U(t))return t;if(U(e)){var n=Sn.exec(e);if(n)return n[3]}}function An(){var e={};this.has=function(t){return e.hasOwnProperty(t)},this.register=function(t,n){Le(t,"controller"),M(t)?F(e,t):e[t]=n},this.$get=["$injector",function(t){return function(r,i,o,a){var s,u,l,c;if(o=!0===o,a&&U(a)&&(c=a),U(r)){if(!(u=r.match(Sn)))throw xn("ctrlfmt","Badly formed controller string '{0}'. Must match `__name__ as __id__` or `__name__`.",r);if(l=u[1],c=c||u[3],!(r=e.hasOwnProperty(l)?e[l]:function(e,t,n){if(!t)return e;for(var r,i=t.split("."),o=e,a=i.length,s=0;s<a;s++)r=i[s],e&&(e=(o=e)[r]);return!n&&K(e)?pe(o,e):e}(i.$scope,l,!0)))throw xn("ctrlreg","The controller with the name '{0}' is not registered.",l);je(r,l,!0)}if(o){var h=(q(r)?r[r.length-1]:r).prototype;return s=Object.create(h||null),c&&n(i,c,s,l||r.name),F((function(){var e=t.invoke(r,s,i,l);return e!==s&&(M(e)||K(e))&&(s=e,c&&n(i,c,s,l||r.name)),s}),{instance:s,identifier:c})}return s=t.instantiate(r,i,l),c&&n(i,c,s,l||r.name),s};function n(e,t,n,r){if(!e||!M(e.$scope))throw i("$controller")("noscp","Cannot export controller '{0}' as '{1}'! No $scope object provided via `locals`.",r,t);e.$scope[t]=n}}]}function Cn(){this.$get=["$window",function(e){return a(e.document)}]}function Tn(){this.$get=["$document","$rootScope",function(e,t){var n=e[0],r=n&&n.hidden;function i(){r=n.hidden}return e.on("visibilitychange",i),t.$on("$destroy",(function(){e.off("visibilitychange",i)})),function(){return r}}]}function Fn(){this.$get=["$log",function(e){return function(t,n){e.error.apply(e,arguments)}}]}var kn=function(){this.$get=["$document",function(e){return function(t){return t?!t.nodeType&&t instanceof a&&(t=t[0]):t=e[0].body,t.offsetWidth+1}}]},Rn={"Content-Type":"application/json;charset=utf-8"},Pn=/^\[|^\{(?!\{)/,Dn={"[":/]$/,"{":/}$/},On=/^\)]\}',?\n/,In=i("$http");function _n(e){return M(e)?V(e)?e.toISOString():de(e):e}function jn(){this.$get=function(){return function(e){if(!e)return"";var t=[];return S(e,(function(e,n){null===e||L(e)||K(e)||(q(e)?x(e,(function(e){t.push(Ee(n)+"="+Ee(_n(e)))})):t.push(Ee(n)+"="+Ee(_n(e))))})),t.join("&")}}}function Ln(){this.$get=function(){return function(e){if(!e)return"";var t=[];return function e(n,r,i){q(n)?x(n,(function(t,n){e(t,r+"["+(M(t)?n:"")+"]")})):M(n)&&!V(n)?S(n,(function(t,n){e(t,r+(i?"":"[")+n+(i?"":"]"))})):(K(n)&&(n=n()),t.push(Ee(r)+"="+(null==n?"":Ee(_n(n)))))}(e,"",!0),t.join("&")}}}function Nn(e,t){if(U(e)){var n=e.replace(On,"").trim();if(n){var r=t("Content-Type"),i=r&&0===r.indexOf("application/json");if(i||(a=(o=n).match(Pn))&&Dn[a[0]].test(o))try{e=ge(n)}catch(t){if(!i)return e;throw In("baddata",'Data must be a valid JSON object. Received: "{0}". Parse error: "{1}"',e,t)}}}var o,a;return e}function Mn(e){var t,n=Me();function r(e,t){e&&(n[e]=n[e]?n[e]+", "+t:t)}return U(e)?x(e.split("\n"),(function(e){t=e.indexOf(":"),r(h(Z(e.substr(0,t))),Z(e.substr(t+1)))})):M(e)&&x(e,(function(e,t){r(h(t),Z(e))})),n}function Bn(e){var t;return function(n){if(t||(t=Mn(e)),n){var r=t[h(n)];return void 0===r&&(r=null),r}return t}}function Un(e,t,n,r){return K(r)?r(e,t,n):(x(r,(function(r){e=r(e,t,n)})),e)}function Hn(e){return 200<=e&&e<300}function Vn(){var e=this.defaults={transformResponse:[Nn],transformRequest:[function(e){return!M(e)||(t=e,"[object File]"===m.call(t))||function(e){return"[object Blob]"===m.call(e)}(e)||function(e){return"[object FormData]"===m.call(e)}(e)?e:de(e);var t}],headers:{common:{Accept:"application/json, text/plain, */*"},post:He(Rn),put:He(Rn),patch:He(Rn)},xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",paramSerializer:"$httpParamSerializer",jsonpCallbackParam:"callback"},t=!1;this.useApplyAsync=function(e){return N(e)?(t=!!e,this):t};var n=this.interceptors=[],r=this.xsrfTrustedOrigins=[];Object.defineProperty(this,"xsrfWhitelistedOrigins",{get:function(){return this.xsrfTrustedOrigins},set:function(e){this.xsrfTrustedOrigins=e}}),this.$get=["$browser","$httpBackend","$$cookieReader","$cacheFactory","$rootScope","$q","$injector","$sce",function(o,a,s,u,l,c,f,d){var g=u("$http");e.paramSerializer=U(e.paramSerializer)?f.get(e.paramSerializer):e.paramSerializer;var m=[];x(n,(function(e){m.unshift(U(e)?f.get(e):f.invoke(e))}));var v,y=(v=[ai].concat(r.map(ui)),function(e){var t=ui(e);return v.some(li.bind(null,t))});function b(n){if(!M(n))throw i("$http")("badreq","Http request configuration must be an object. Received: {0}",n);if(!U(d.valueOf(n.url)))throw i("$http")("badreq","Http request configuration url must be a string or a $sce trusted object. Received: {0}",n.url);var r=F({method:"get",transformRequest:e.transformRequest,transformResponse:e.transformResponse,paramSerializer:e.paramSerializer,jsonpCallbackParam:e.jsonpCallbackParam},n);r.headers=function(t){var n,r,i,o=e.headers,a=F({},t.headers);o=F({},o.common,o[h(t.method)]);e:for(n in o){for(i in r=h(n),a)if(h(i)===r)continue e;a[n]=o[n]}return function(e,t){var n,r={};return x(e,(function(e,i){K(e)?null!=(n=e(t))&&(r[i]=n):r[i]=e})),r}(a,He(t))}(n),r.method=p(r.method),r.paramSerializer=U(r.paramSerializer)?f.get(r.paramSerializer):r.paramSerializer,o.$$incOutstandingRequestCount("$http");var u=[],v=[],$=c.resolve(r);return x(m,(function(e){(e.request||e.requestError)&&u.unshift(e.request,e.requestError),(e.response||e.responseError)&&v.push(e.response,e.responseError)})),$=w($,u),$=($=w($=$.then((function(n){var r=n.headers,i=Un(n.data,Bn(r),void 0,n.transformRequest);L(i)&&x(r,(function(e,t){"content-type"===h(t)&&delete r[t]}));L(n.withCredentials)&&!L(e.withCredentials)&&(n.withCredentials=e.withCredentials);return function(n,r){var i,o,u=c.defer(),p=u.promise,f=n.headers,m="jsonp"===h(n.method),v=n.url;m?v=d.getTrustedResourceUrl(v):U(v)||(v=d.valueOf(v));v=function(e,t){t.length>0&&(e+=(-1===e.indexOf("?")?"?":"&")+t);return e}(v,n.paramSerializer(n.params)),m&&(v=function(e,t){var n=e.split("?");if(n.length>2)throw In("badjsonp",'Illegal use more than one "?", in url, "{1}"',e);return x(xe(n[1]),(function(n,r){if("JSON_CALLBACK"===n)throw In("badjsonp",'Illegal use of JSON_CALLBACK in url, "{0}"',e);if(r===t)throw In("badjsonp",'Illegal use of callback param, "{0}", in url, "{1}"',t,e)})),e+=(-1===e.indexOf("?")?"?":"&")+t+"=JSON_CALLBACK"}(v,n.jsonpCallbackParam));b.pendingRequests.push(n),p.then(A,A),!n.cache&&!e.cache||!1===n.cache||"GET"!==n.method&&"JSONP"!==n.method||(i=M(n.cache)?n.cache:M(e.cache)?e.cache:g);i&&(N(o=i.get(v))?Q(o)?o.then(E,E):q(o)?S(o[1],o[0],He(o[2]),o[3],o[4]):S(o,200,{},"OK","complete"):i.put(v,p));if(L(o)){var $=y(n.url)?s()[n.xsrfCookieName||e.xsrfCookieName]:void 0;$&&(f[n.xsrfHeaderName||e.xsrfHeaderName]=$),a(n.method,v,r,(function(e,n,r,o,a){i&&(Hn(e)?i.put(v,[e,n,Mn(r),o,a]):i.remove(v));function s(){S(n,e,r,o,a)}t?l.$applyAsync(s):(s(),l.$$phase||l.$apply())}),f,n.timeout,n.withCredentials,n.responseType,w(n.eventHandlers),w(n.uploadEventHandlers))}return p;function w(e){if(e){var n={};return x(e,(function(e,r){n[r]=function(n){function r(){e(n)}t?l.$applyAsync(r):l.$$phase?r():l.$apply(r)}})),n}}function S(e,t,r,i,o){(Hn(t=t>=-1?t:0)?u.resolve:u.reject)({data:e,status:t,headers:Bn(r),config:n,statusText:i,xhrStatus:o})}function E(e){S(e.data,e.status,He(e.headers()),e.statusText,e.xhrStatus)}function A(){var e=b.pendingRequests.indexOf(n);-1!==e&&b.pendingRequests.splice(e,1)}}(n,i).then(S,S)})),v)).finally((function(){o.$$completeOutstandingRequest(O,"$http")}));function w(e,t){for(var n=0,r=t.length;n<r;){var i=t[n++],o=t[n++];e=e.then(i,o)}return t.length=0,e}function S(e){var t=F({},e);return t.data=Un(e.data,e.headers,e.status,r.transformResponse),Hn(e.status)?t:c.reject(t)}}return b.pendingRequests=[],function(e){x(arguments,(function(e){b[e]=function(t,n){return b(F({},n||{},{method:e,url:t}))}}))}("get","delete","head","jsonp"),function(e){x(arguments,(function(e){b[e]=function(t,n,r){return b(F({},r||{},{method:e,url:t,data:n}))}}))}("post","put","patch"),b.defaults=e,b}]}function qn(){this.$get=function(){return function(){return new e.XMLHttpRequest}}}function zn(){this.$get=["$browser","$jsonpCallbacks","$document","$xhrFactory",function(e,t,n,r){return function(e,t,n,r,i){return function(o,a,s,u,l,c,p,f,d,g){if(a=a||e.url(),"jsonp"===h(o))var m=r.createCallback(a),v=function(e,t,n){e=e.replace("JSON_CALLBACK",t);var o=i.createElement("script"),a=null;return o.type="text/javascript",o.src=e,o.async=!0,a=function(e){o.removeEventListener("load",a),o.removeEventListener("error",a),i.body.removeChild(o),o=null;var s=-1,u="unknown";e&&("load"!==e.type||r.wasCalled(t)||(e={type:"error"}),u=e.type,s="error"===e.type?404:200),n&&n(s,u)},o.addEventListener("load",a),o.addEventListener("error",a),i.body.appendChild(o),a}(a,m,(function(e,t){var n=200===e&&r.getResponse(m);S(u,e,n,"",t,"complete"),r.removeCallback(m)}));else{var y=t(o,a),b=!1;y.open(o,a,!0),x(l,(function(e,t){N(e)&&y.setRequestHeader(t,e)})),y.onload=function(){var e=y.statusText||"",t="response"in y?y.response:y.responseText,n=1223===y.status?204:y.status;0===n&&(n=t?200:"file"===ui(a).protocol?404:0),S(u,n,t,y.getAllResponseHeaders(),e,"complete")};if(y.onerror=function(){S(u,-1,null,null,"","error")},y.ontimeout=function(){S(u,-1,null,null,"","timeout")},y.onabort=function(){S(u,-1,null,null,"",b?"timeout":"abort")},x(d,(function(e,t){y.addEventListener(t,e)})),x(g,(function(e,t){y.upload.addEventListener(t,e)})),p&&(y.withCredentials=!0),f)try{y.responseType=f}catch(e){if("json"!==f)throw e}y.send(L(s)?null:s)}if(c>0)var $=n((function(){w("timeout")}),c);else Q(c)&&c.then((function(){w(N(c.$$timeoutId)?"timeout":"abort")}));function w(e){b="timeout"===e,v&&v(),y&&y.abort()}function S(e,t,r,i,o,a){N($)&&n.cancel($),v=y=null,e(t,r,i,o,a)}}}(e,r,e.defer,t,n[0])}]}var Kn=b.$interpolateMinErr=i("$interpolate");function Gn(){var e="{{",t="}}";this.startSymbol=function(t){return t?(e=t,this):e},this.endSymbol=function(e){return e?(t=e,this):t},this.$get=["$parse","$exceptionHandler","$sce",function(n,r,i){var o=e.length,a=t.length,s=new RegExp(e.replace(/./g,l),"g"),u=new RegExp(t.replace(/./g,l),"g");function l(e){return"\\\\\\"+e}function c(n){return n.replace(s,e).replace(u,t)}function h(e,t,n,r){var i=e.$watch((function(e){return i(),r(e)}),t,n);return i}function p(s,u,l,p){var f=l===i.URL||l===i.MEDIA_URL;if(!s.length||-1===s.indexOf(e)){if(u)return;var d=c(s);f&&(d=i.getTrusted(l,d));var g=_(d);return g.exp=s,g.expressions=[],g.$$watchDelegate=h,g}p=!!p;for(var m,v,y,b,$,w=0,x=[],S=s.length,E=[],A=[];w<S;){if(-1===(m=s.indexOf(e,w))||-1===(v=s.indexOf(t,m+o))){w!==S&&E.push(c(s.substring(w)));break}w!==m&&E.push(c(s.substring(w,m))),b=s.substring(m+o,v),x.push(b),w=v+a,A.push(E.length),E.push("")}$=1===E.length&&1===A.length;var C=f&&$?void 0:function(e){try{return e=l&&!f?i.getTrusted(l,e):i.valueOf(e),p&&!N(e)?e:Be(e)}catch(e){r(Kn.interr(s,e))}};if(y=x.map((function(e){return n(e,C)})),!u||x.length){var T=function(e){for(var t=0,n=x.length;t<n;t++){if(p&&L(e[t]))return;E[A[t]]=e[t]}return f?i.getTrusted(l,$?E[0]:E.join("")):(l&&E.length>1&&Kn.throwNoconcat(s),E.join(""))};return F((function(e){var t=0,n=x.length,i=new Array(n);try{for(;t<n;t++)i[t]=y[t](e);return T(i)}catch(e){r(Kn.interr(s,e))}}),{exp:s,expressions:x,$$watchDelegate:function(e,t){var n;return e.$watchGroup(y,(function(r,i){var o=T(r);t.call(this,o,r!==i?n:o,e),n=o}))}})}}return p.startSymbol=function(){return e},p.endSymbol=function(){return t},p}]}Kn.throwNoconcat=function(e){throw Kn("noconcat","Error while interpolating: {0}\nStrict Contextual Escaping disallows interpolations that concatenate multiple expressions when a trusted value is required. See http://docs.angularjs.org/api/ng.$sce",e)},Kn.interr=function(e,t){return Kn("interr","Can't interpolate: {0}\n{1}",e,t.toString())};var Wn=i("$interval");function Yn(){this.$get=["$$intervalFactory","$window",function(e,t){var n={},r=function(e){t.clearInterval(e),delete n[e]},i=e((function(e,r,i){var o=t.setInterval(e,r);return n[o]=i,o}),r);return i.cancel=function(e){if(!e)return!1;if(!e.hasOwnProperty("$$intervalId"))throw Wn("badprom","`$interval.cancel()` called with a promise that was not generated by `$interval()`.");if(!n.hasOwnProperty(e.$$intervalId))return!1;var t=e.$$intervalId,i=n[t];return Mr(i.promise),i.reject("canceled"),r(t),!0},i}]}function Xn(){this.$get=["$browser","$q","$$q","$rootScope",function(e,t,n,r){return function(i,o){return function(a,s,u,l){var c=arguments.length>4,h=c?he(arguments,4):[],p=0,f=N(l)&&!l,d=(f?n:t).defer(),g=d.promise;function m(){c?a.apply(null,h):a(p)}function v(){f?e.defer(m):r.$evalAsync(m),d.notify(p++),u>0&&p>=u&&(d.resolve(p),o(g.$$intervalId)),f||r.$apply()}return u=N(u)?u:0,g.$$intervalId=i(v,s,d,f),g}}}]}var Qn=function(){this.$get=function(){var e=b.callbacks,t={};return{createCallback:function(n){var r="_"+(e.$$counter++).toString(36),i="angular.callbacks."+r,o=function(e){var t=function(e){t.data=e,t.called=!0};return t.id=e,t}(r);return t[i]=e[r]=o,i},wasCalled:function(e){return t[e].called},getResponse:function(e){return t[e].data},removeCallback:function(n){var r=t[n];delete e[r.id],delete t[n]}}}},Jn=/^([^?#]*)(\?([^#]*))?(#(.*))?$/,Zn={http:80,https:443,ftp:21},er=i("$location");function tr(e,t,n){var r,i=(r=[],x(t,(function(e,t){q(e)?x(e,(function(e){r.push(Ee(t,!0)+(!0===e?"":"="+Ee(e,!0)))})):r.push(Ee(t,!0)+(!0===e?"":"="+Ee(e,!0)))})),r.length?r.join("&"):""),o=n?"#"+Se(n):"";return function(e){for(var t=e.split("/"),n=t.length;n--;)t[n]=Se(t[n].replace(/%2F/g,"/"));return t.join("/")}(e)+(i?"?"+i:"")+o}function nr(e,t){var n=ui(e);t.$$protocol=n.protocol,t.$$host=n.hostname,t.$$port=R(n.port)||Zn[n.protocol]||null}var rr=/^\s*[\\/]{2,}/;function ir(e,t,n){if(rr.test(e))throw er("badpath",'Invalid url "{0}".',e);var r="/"!==e.charAt(0);r&&(e="/"+e);var i=ui(e),o=r&&"/"===i.pathname.charAt(0)?i.pathname.substring(1):i.pathname;t.$$path=function(e,t){for(var n=e.split("/"),r=n.length;r--;)n[r]=decodeURIComponent(n[r]),t&&(n[r]=n[r].replace(/\//g,"%2F"));return n.join("/")}(o,n),t.$$search=xe(i.search),t.$$hash=decodeURIComponent(i.hash),t.$$path&&"/"!==t.$$path.charAt(0)&&(t.$$path="/"+t.$$path)}function or(e,t){return e.slice(0,t.length)===t}function ar(e,t){if(or(t,e))return t.substr(e.length)}function sr(e){var t=e.indexOf("#");return-1===t?e:e.substr(0,t)}function ur(e,t,n){this.$$html5=!0,n=n||"",nr(e,this),this.$$parse=function(e){var n=ar(t,e);if(!U(n))throw er("ipthprfx",'Invalid url "{0}", missing path prefix "{1}".',e,t);ir(n,this,!0),this.$$path||(this.$$path="/"),this.$$compose()},this.$$normalizeUrl=function(e){return t+e.substr(1)},this.$$parseLinkUrl=function(r,i){return i&&"#"===i[0]?(this.hash(i.slice(1)),!0):(N(o=ar(e,r))?(a=o,s=n&&N(o=ar(n,o))?t+(ar("/",o)||o):e+a):N(o=ar(t,r))?s=t+o:t===r+"/"&&(s=t),s&&this.$$parse(s),!!s);var o,a,s}}function lr(e,t,n){nr(e,this),this.$$parse=function(r){var i,o=ar(e,r)||ar(t,r);L(o)||"#"!==o.charAt(0)?this.$$html5?i=o:(i="",L(o)&&(e=r,this.replace())):L(i=ar(n,o))&&(i=o),ir(i,this,!1),this.$$path=function(e,t,n){var r,i=/^\/[A-Z]:(\/.*)/;or(t,n)&&(t=t.replace(n,""));if(i.exec(t))return e;return(r=i.exec(e))?r[1]:e}(this.$$path,i,e),this.$$compose()},this.$$normalizeUrl=function(t){return e+(t?n+t:"")},this.$$parseLinkUrl=function(t,n){return sr(e)===sr(t)&&(this.$$parse(t),!0)}}function cr(e,t,n){this.$$html5=!0,lr.apply(this,arguments),this.$$parseLinkUrl=function(r,i){return i&&"#"===i[0]?(this.hash(i.slice(1)),!0):(e===sr(r)?o=r:(a=ar(t,r))?o=e+n+a:t===r+"/"&&(o=t),o&&this.$$parse(o),!!o);var o,a},this.$$normalizeUrl=function(t){return e+n+t}}var hr={$$absUrl:"",$$html5:!1,$$replace:!1,$$compose:function(){this.$$url=tr(this.$$path,this.$$search,this.$$hash),this.$$absUrl=this.$$normalizeUrl(this.$$url),this.$$urlUpdatedByLocation=!0},absUrl:pr("$$absUrl"),url:function(e){if(L(e))return this.$$url;var t=Jn.exec(e);return(t[1]||""===e)&&this.path(decodeURIComponent(t[1])),(t[2]||t[1]||""===e)&&this.search(t[3]||""),this.hash(t[5]||""),this},protocol:pr("$$protocol"),host:pr("$$host"),port:pr("$$port"),path:fr("$$path",(function(e){return"/"===(e=null!==e?e.toString():"").charAt(0)?e:"/"+e})),search:function(e,t){switch(arguments.length){case 0:return this.$$search;case 1:if(U(e)||H(e))e=e.toString(),this.$$search=xe(e);else{if(!M(e))throw er("isrcharg","The first argument of the `$location#search()` call must be a string or an object.");x(e=oe(e,{}),(function(t,n){null==t&&delete e[n]})),this.$$search=e}break;default:L(t)||null===t?delete this.$$search[e]:this.$$search[e]=t}return this.$$compose(),this},hash:fr("$$hash",(function(e){return null!==e?e.toString():""})),replace:function(){return this.$$replace=!0,this}};function pr(e){return function(){return this[e]}}function fr(e,t){return function(n){return L(n)?this[e]:(this[e]=t(n),this.$$compose(),this)}}function dr(){var e="!",t={enabled:!1,requireBase:!0,rewriteLinks:!0};this.hashPrefix=function(t){return N(t)?(e=t,this):e},this.html5Mode=function(e){return X(e)?(t.enabled=e,this):M(e)?(X(e.enabled)&&(t.enabled=e.enabled),X(e.requireBase)&&(t.requireBase=e.requireBase),(X(e.rewriteLinks)||U(e.rewriteLinks))&&(t.rewriteLinks=e.rewriteLinks),this):t},this.$get=["$rootScope","$browser","$sniffer","$rootElement","$window",function(n,r,i,o,s){var u,l,c,h,p=r.baseHref(),f=r.url();if(t.enabled){if(!p&&t.requireBase)throw er("nobase","$location in HTML5 mode requires a <base> tag to be present!");c=(h=f).substring(0,h.indexOf("/",h.indexOf("//")+2))+(p||"/"),l=i.history?ur:cr}else c=sr(f),l=lr;var d=function(e){return e.substr(0,sr(e).lastIndexOf("/")+1)}(c);(u=new l(c,d,"#"+e)).$$parseLinkUrl(f,f),u.$$state=r.state();var g=/^\s*(javascript|mailto):/i;function m(e,t,n){var i=u.url(),o=u.$$state;try{r.url(e,t,n),u.$$state=r.state()}catch(e){throw u.url(i),u.$$state=o,e}}o.on("click",(function(e){var i=t.rewriteLinks;if(i&&!e.ctrlKey&&!e.metaKey&&!e.shiftKey&&2!==e.which&&2!==e.button){for(var s=a(e.target);"a"!==ne(s[0]);)if(s[0]===o[0]||!(s=s.parent())[0])return;if(!U(i)||!L(s.attr(i))){var l=s.prop("href"),c=s.attr("href")||s.attr("xlink:href");M(l)&&"[object SVGAnimatedString]"===l.toString()&&(l=ui(l.animVal).href),g.test(l)||!l||s.attr("target")||e.isDefaultPrevented()||u.$$parseLinkUrl(l,c)&&(e.preventDefault(),u.absUrl()!==r.url()&&n.$apply())}}})),u.absUrl()!==f&&r.url(u.absUrl(),!0);var v=!0;return r.onUrlChange((function(e,t){or(e,d)?(n.$evalAsync((function(){var r,i=u.absUrl(),o=u.$$state;u.$$parse(e),u.$$state=t,r=n.$broadcast("$locationChangeStart",e,i,t,o).defaultPrevented,u.absUrl()===e&&(r?(u.$$parse(i),u.$$state=o,m(i,!1,o)):(v=!1,y(i,o)))})),n.$$phase||n.$digest()):s.location.href=e})),n.$watch((function(){if(v||u.$$urlUpdatedByLocation){u.$$urlUpdatedByLocation=!1;var e=r.url(),t=u.absUrl(),o=r.state(),a=u.$$replace,s=!((l=e)===(c=t)||ui(l).href===ui(c).href)||u.$$html5&&i.history&&o!==u.$$state;(v||s)&&(v=!1,n.$evalAsync((function(){var t=u.absUrl(),r=n.$broadcast("$locationChangeStart",t,e,u.$$state,o).defaultPrevented;u.absUrl()===t&&(r?(u.$$parse(e),u.$$state=o):(s&&m(t,a,o===u.$$state?null:u.$$state),y(e,o)))})))}var l,c;u.$$replace=!1})),u;function y(e,t){n.$broadcast("$locationChangeSuccess",u.absUrl(),e,u.$$state,t)}}]}function gr(){var e=!0,t=this;this.debugEnabled=function(t){return N(t)?(e=t,this):e},this.$get=["$window",function(n){var r,i=o||/\bEdge\//.test(n.navigator&&n.navigator.userAgent);return{log:s("log"),info:s("info"),warn:s("warn"),error:s("error"),debug:(r=s("debug"),function(){e&&r.apply(t,arguments)})};function a(e){return z(e)&&(e.stack&&i?e=e.message&&-1===e.stack.indexOf(e.message)?"Error: "+e.message+"\n"+e.stack:e.stack:e.sourceURL&&(e=e.message+"\n"+e.sourceURL+":"+e.line)),e}function s(e){var t=n.console||{},r=t[e]||t.log||O;return function(){var e=[];return x(arguments,(function(t){e.push(a(t))})),Function.prototype.apply.call(r,t,e)}}}]}x([cr,lr,ur],(function(e){e.prototype=Object.create(hr),e.prototype.state=function(t){if(!arguments.length)return this.$$state;if(e!==ur||!this.$$html5)throw er("nostate","History API state support is available only in HTML5 mode and only in browsers supporting HTML5 History API");return this.$$state=L(t)?null:t,this.$$urlUpdatedByLocation=!0,this}}));var mr=i("$parse"),vr={}.constructor.prototype.valueOf;function yr(e){return e+""}var br=Me();x("+ - * / % === !== == != < > <= >= && || ! = |".split(" "),(function(e){br[e]=!0}));var $r={n:"\n",f:"\f",r:"\r",t:"\t",v:"\v","'":"'",'"':'"'},wr=function(e){this.options=e};wr.prototype={constructor:wr,lex:function(e){for(this.text=e,this.index=0,this.tokens=[];this.index<this.text.length;){var t=this.text.charAt(this.index);if('"'===t||"'"===t)this.readString(t);else if(this.isNumber(t)||"."===t&&this.isNumber(this.peek()))this.readNumber();else if(this.isIdentifierStart(this.peekMultichar()))this.readIdent();else if(this.is(t,"(){}[].,;:?"))this.tokens.push({index:this.index,text:t}),this.index++;else if(this.isWhitespace(t))this.index++;else{var n=t+this.peek(),r=n+this.peek(2),i=br[t],o=br[n],a=br[r];if(i||o||a){var s=a?r:o?n:t;this.tokens.push({index:this.index,text:s,operator:!0}),this.index+=s.length}else this.throwError("Unexpected next character ",this.index,this.index+1)}}return this.tokens},is:function(e,t){return-1!==t.indexOf(e)},peek:function(e){var t=e||1;return this.index+t<this.text.length&&this.text.charAt(this.index+t)},isNumber:function(e){return"0"<=e&&e<="9"&&"string"==typeof e},isWhitespace:function(e){return" "===e||"\r"===e||"\t"===e||"\n"===e||"\v"===e||" "===e},isIdentifierStart:function(e){return this.options.isIdentifierStart?this.options.isIdentifierStart(e,this.codePointAt(e)):this.isValidIdentifierStart(e)},isValidIdentifierStart:function(e){return"a"<=e&&e<="z"||"A"<=e&&e<="Z"||"_"===e||"$"===e},isIdentifierContinue:function(e){return this.options.isIdentifierContinue?this.options.isIdentifierContinue(e,this.codePointAt(e)):this.isValidIdentifierContinue(e)},isValidIdentifierContinue:function(e,t){return this.isValidIdentifierStart(e,t)||this.isNumber(e)},codePointAt:function(e){return 1===e.length?e.charCodeAt(0):(e.charCodeAt(0)<<10)+e.charCodeAt(1)-56613888},peekMultichar:function(){var e=this.text.charAt(this.index),t=this.peek();if(!t)return e;var n=e.charCodeAt(0),r=t.charCodeAt(0);return n>=55296&&n<=56319&&r>=56320&&r<=57343?e+t:e},isExpOperator:function(e){return"-"===e||"+"===e||this.isNumber(e)},throwError:function(e,t,n){n=n||this.index;var r=N(t)?"s "+t+"-"+this.index+" ["+this.text.substring(t,n)+"]":" "+n;throw mr("lexerr","Lexer Error: {0} at column{1} in expression [{2}].",e,r,this.text)},readNumber:function(){for(var e="",t=this.index;this.index<this.text.length;){var n=h(this.text.charAt(this.index));if("."===n||this.isNumber(n))e+=n;else{var r=this.peek();if("e"===n&&this.isExpOperator(r))e+=n;else if(this.isExpOperator(n)&&r&&this.isNumber(r)&&"e"===e.charAt(e.length-1))e+=n;else{if(!this.isExpOperator(n)||r&&this.isNumber(r)||"e"!==e.charAt(e.length-1))break;this.throwError("Invalid exponent")}}this.index++}this.tokens.push({index:t,text:e,constant:!0,value:Number(e)})},readIdent:function(){var e=this.index;for(this.index+=this.peekMultichar().length;this.index<this.text.length;){var t=this.peekMultichar();if(!this.isIdentifierContinue(t))break;this.index+=t.length}this.tokens.push({index:e,text:this.text.slice(e,this.index),identifier:!0})},readString:function(e){var t=this.index;this.index++;for(var n="",r=e,i=!1;this.index<this.text.length;){var o=this.text.charAt(this.index);if(r+=o,i){if("u"===o){var a=this.text.substring(this.index+1,this.index+5);a.match(/[\da-f]{4}/i)||this.throwError("Invalid unicode escape [\\u"+a+"]"),this.index+=4,n+=String.fromCharCode(parseInt(a,16))}else{n+=$r[o]||o}i=!1}else if("\\"===o)i=!0;else{if(o===e)return this.index++,void this.tokens.push({index:t,text:r,constant:!0,value:n});n+=o}this.index++}this.throwError("Unterminated quote",t)}};var xr=function(e,t){this.lexer=e,this.options=t};function Sr(e,t){return void 0!==e?e:t}function Er(e,t){return void 0===e?t:void 0===t?e:e+t}xr.Program="Program",xr.ExpressionStatement="ExpressionStatement",xr.AssignmentExpression="AssignmentExpression",xr.ConditionalExpression="ConditionalExpression",xr.LogicalExpression="LogicalExpression",xr.BinaryExpression="BinaryExpression",xr.UnaryExpression="UnaryExpression",xr.CallExpression="CallExpression",xr.MemberExpression="MemberExpression",xr.Identifier="Identifier",xr.Literal="Literal",xr.ArrayExpression="ArrayExpression",xr.Property="Property",xr.ObjectExpression="ObjectExpression",xr.ThisExpression="ThisExpression",xr.LocalsExpression="LocalsExpression",xr.NGValueParameter="NGValueParameter",xr.prototype={ast:function(e){this.text=e,this.tokens=this.lexer.lex(e);var t=this.program();return 0!==this.tokens.length&&this.throwError("is an unexpected token",this.tokens[0]),t},program:function(){for(var e=[];;)if(this.tokens.length>0&&!this.peek("}",")",";","]")&&e.push(this.expressionStatement()),!this.expect(";"))return{type:xr.Program,body:e}},expressionStatement:function(){return{type:xr.ExpressionStatement,expression:this.filterChain()}},filterChain:function(){for(var e=this.expression();this.expect("|");)e=this.filter(e);return e},expression:function(){return this.assignment()},assignment:function(){var e=this.ternary();if(this.expect("=")){if(!Tr(e))throw mr("lval","Trying to assign a value to a non l-value");e={type:xr.AssignmentExpression,left:e,right:this.assignment(),operator:"="}}return e},ternary:function(){var e,t,n=this.logicalOR();return this.expect("?")&&(e=this.expression(),this.consume(":"))?(t=this.expression(),{type:xr.ConditionalExpression,test:n,alternate:e,consequent:t}):n},logicalOR:function(){for(var e=this.logicalAND();this.expect("||");)e={type:xr.LogicalExpression,operator:"||",left:e,right:this.logicalAND()};return e},logicalAND:function(){for(var e=this.equality();this.expect("&&");)e={type:xr.LogicalExpression,operator:"&&",left:e,right:this.equality()};return e},equality:function(){for(var e,t=this.relational();e=this.expect("==","!=","===","!==");)t={type:xr.BinaryExpression,operator:e.text,left:t,right:this.relational()};return t},relational:function(){for(var e,t=this.additive();e=this.expect("<",">","<=",">=");)t={type:xr.BinaryExpression,operator:e.text,left:t,right:this.additive()};return t},additive:function(){for(var e,t=this.multiplicative();e=this.expect("+","-");)t={type:xr.BinaryExpression,operator:e.text,left:t,right:this.multiplicative()};return t},multiplicative:function(){for(var e,t=this.unary();e=this.expect("*","/","%");)t={type:xr.BinaryExpression,operator:e.text,left:t,right:this.unary()};return t},unary:function(){var e;return(e=this.expect("+","-","!"))?{type:xr.UnaryExpression,operator:e.text,prefix:!0,argument:this.unary()}:this.primary()},primary:function(){var e,t;for(this.expect("(")?(e=this.filterChain(),this.consume(")")):this.expect("[")?e=this.arrayDeclaration():this.expect("{")?e=this.object():this.selfReferential.hasOwnProperty(this.peek().text)?e=oe(this.selfReferential[this.consume().text]):this.options.literals.hasOwnProperty(this.peek().text)?e={type:xr.Literal,value:this.options.literals[this.consume().text]}:this.peek().identifier?e=this.identifier():this.peek().constant?e=this.constant():this.throwError("not a primary expression",this.peek());t=this.expect("(","[",".");)"("===t.text?(e={type:xr.CallExpression,callee:e,arguments:this.parseArguments()},this.consume(")")):"["===t.text?(e={type:xr.MemberExpression,object:e,property:this.expression(),computed:!0},this.consume("]")):"."===t.text?e={type:xr.MemberExpression,object:e,property:this.identifier(),computed:!1}:this.throwError("IMPOSSIBLE");return e},filter:function(e){for(var t=[e],n={type:xr.CallExpression,callee:this.identifier(),arguments:t,filter:!0};this.expect(":");)t.push(this.expression());return n},parseArguments:function(){var e=[];if(")"!==this.peekToken().text)do{e.push(this.filterChain())}while(this.expect(","));return e},identifier:function(){var e=this.consume();return e.identifier||this.throwError("is not a valid identifier",e),{type:xr.Identifier,name:e.text}},constant:function(){return{type:xr.Literal,value:this.consume().value}},arrayDeclaration:function(){var e=[];if("]"!==this.peekToken().text)do{if(this.peek("]"))break;e.push(this.expression())}while(this.expect(","));return this.consume("]"),{type:xr.ArrayExpression,elements:e}},object:function(){var e,t=[];if("}"!==this.peekToken().text)do{if(this.peek("}"))break;e={type:xr.Property,kind:"init"},this.peek().constant?(e.key=this.constant(),e.computed=!1,this.consume(":"),e.value=this.expression()):this.peek().identifier?(e.key=this.identifier(),e.computed=!1,this.peek(":")?(this.consume(":"),e.value=this.expression()):e.value=e.key):this.peek("[")?(this.consume("["),e.key=this.expression(),this.consume("]"),e.computed=!0,this.consume(":"),e.value=this.expression()):this.throwError("invalid key",this.peek()),t.push(e)}while(this.expect(","));return this.consume("}"),{type:xr.ObjectExpression,properties:t}},throwError:function(e,t){throw mr("syntax","Syntax Error: Token '{0}' {1} at column {2} of the expression [{3}] starting at [{4}].",t.text,e,t.index+1,this.text,this.text.substring(t.index))},consume:function(e){if(0===this.tokens.length)throw mr("ueoe","Unexpected end of expression: {0}",this.text);var t=this.expect(e);return t||this.throwError("is unexpected, expecting ["+e+"]",this.peek()),t},peekToken:function(){if(0===this.tokens.length)throw mr("ueoe","Unexpected end of expression: {0}",this.text);return this.tokens[0]},peek:function(e,t,n,r){return this.peekAhead(0,e,t,n,r)},peekAhead:function(e,t,n,r,i){if(this.tokens.length>e){var o=this.tokens[e],a=o.text;if(a===t||a===n||a===r||a===i||!t&&!n&&!r&&!i)return o}return!1},expect:function(e,t,n,r){var i=this.peek(e,t,n,r);return!!i&&(this.tokens.shift(),i)},selfReferential:{this:{type:xr.ThisExpression},$locals:{type:xr.LocalsExpression}}};function Ar(e,t,n){var r,i,o,a=e.isPure=function(e,t){switch(e.type){case xr.MemberExpression:if(e.computed)return!1;break;case xr.UnaryExpression:return 1;case xr.BinaryExpression:return"+"!==e.operator&&1;case xr.CallExpression:return!1}return void 0===t?2:t}(e,n);switch(e.type){case xr.Program:r=!0,x(e.body,(function(e){Ar(e.expression,t,a),r=r&&e.expression.constant})),e.constant=r;break;case xr.Literal:e.constant=!0,e.toWatch=[];break;case xr.UnaryExpression:Ar(e.argument,t,a),e.constant=e.argument.constant,e.toWatch=e.argument.toWatch;break;case xr.BinaryExpression:Ar(e.left,t,a),Ar(e.right,t,a),e.constant=e.left.constant&&e.right.constant,e.toWatch=e.left.toWatch.concat(e.right.toWatch);break;case xr.LogicalExpression:Ar(e.left,t,a),Ar(e.right,t,a),e.constant=e.left.constant&&e.right.constant,e.toWatch=e.constant?[]:[e];break;case xr.ConditionalExpression:Ar(e.test,t,a),Ar(e.alternate,t,a),Ar(e.consequent,t,a),e.constant=e.test.constant&&e.alternate.constant&&e.consequent.constant,e.toWatch=e.constant?[]:[e];break;case xr.Identifier:e.constant=!1,e.toWatch=[e];break;case xr.MemberExpression:Ar(e.object,t,a),e.computed&&Ar(e.property,t,a),e.constant=e.object.constant&&(!e.computed||e.property.constant),e.toWatch=e.constant?[]:[e];break;case xr.CallExpression:o=!!e.filter&&function(e,t){return!e(t).$stateful}(t,e.callee.name),r=o,i=[],x(e.arguments,(function(e){Ar(e,t,a),r=r&&e.constant,i.push.apply(i,e.toWatch)})),e.constant=r,e.toWatch=o?i:[e];break;case xr.AssignmentExpression:Ar(e.left,t,a),Ar(e.right,t,a),e.constant=e.left.constant&&e.right.constant,e.toWatch=[e];break;case xr.ArrayExpression:r=!0,i=[],x(e.elements,(function(e){Ar(e,t,a),r=r&&e.constant,i.push.apply(i,e.toWatch)})),e.constant=r,e.toWatch=i;break;case xr.ObjectExpression:r=!0,i=[],x(e.properties,(function(e){Ar(e.value,t,a),r=r&&e.value.constant,i.push.apply(i,e.value.toWatch),e.computed&&(Ar(e.key,t,!1),r=r&&e.key.constant,i.push.apply(i,e.key.toWatch))})),e.constant=r,e.toWatch=i;break;case xr.ThisExpression:case xr.LocalsExpression:e.constant=!1,e.toWatch=[]}}function Cr(e){if(1===e.length){var t=e[0].expression,n=t.toWatch;return 1!==n.length||n[0]!==t?n:void 0}}function Tr(e){return e.type===xr.Identifier||e.type===xr.MemberExpression}function Fr(e){if(1===e.body.length&&Tr(e.body[0].expression))return{type:xr.AssignmentExpression,left:e.body[0].expression,right:{type:xr.NGValueParameter},operator:"="}}function kr(e){this.$filter=e}function Rr(e){this.$filter=e}function Pr(e,t,n){this.ast=new xr(e,n),this.astCompiler=n.csp?new Rr(t):new kr(t)}function Dr(e){return K(e.valueOf)?e.valueOf():vr.call(e)}function Or(){var e,t,n=Me(),r={true:!0,false:!1,null:null,undefined:void 0};this.addLiteral=function(e,t){r[e]=t},this.setIdentifierFns=function(n,r){return e=n,t=r,this},this.$get=["$filter",function(i){var o={csp:ue().noUnsafeEval,literals:oe(r),isIdentifierStart:K(e)&&e,isIdentifierContinue:K(t)&&t};return a.$$getAst=function(e){return new Pr(new wr(o),i,o).getAst(e).ast},a;function a(e,t){var r,a;switch(typeof e){case"string":if(e=e.trim(),!(r=n[a=e]))r=new Pr(new wr(o),i,o).parse(e),n[a]=p(r);return f(r,t);case"function":return f(e,t);default:return f(O,t)}}function s(e,t,n){return null==e||null==t?e===t:!("object"==typeof e&&"object"==typeof(e=Dr(e))&&!n)&&(e===t||e!=e&&t!=t)}function u(e,t,n,r,i){var o,a=r.inputs;if(1===a.length){var u=s;return a=a[0],e.$watch((function(e){var t=a(e);return s(t,u,a.isPure)||(o=r(e,void 0,void 0,[t]),u=t&&Dr(t)),o}),t,n,i)}for(var l=[],c=[],h=0,p=a.length;h<p;h++)l[h]=s,c[h]=null;return e.$watch((function(e){for(var t=!1,n=0,i=a.length;n<i;n++){var u=a[n](e);(t||(t=!s(u,l[n],a[n].isPure)))&&(c[n]=u,l[n]=u&&Dr(u))}return t&&(o=r(e,void 0,void 0,c)),o}),t,n,i)}function l(e,t,n,r,i){var o,a,s=r.literal?c:N,u=r.$$intercepted||r,l=r.$$interceptor||I,h=r.inputs&&!u.inputs;return d.literal=r.literal,d.constant=r.constant,d.inputs=r.inputs,p(d),o=e.$watch(d,t,n,i);function f(){s(a)&&o()}function d(e,t,n,r){return a=h&&r?r[0]:u(e,t,n,r),s(a)&&e.$$postDigest(f),l(a)}}function c(e){var t=!0;return x(e,(function(e){N(e)||(t=!1)})),t}function h(e,t,n,r){var i=e.$watch((function(e){return i(),r(e)}),t,n);return i}function p(e){return e.constant?e.$$watchDelegate=h:e.oneTime?e.$$watchDelegate=l:e.inputs&&(e.$$watchDelegate=u),e}function f(e,t){if(!t)return e;e.$$interceptor&&(t=function(e,t){function n(n){return t(e(n))}return n.$stateful=e.$stateful||t.$stateful,n.$$pure=e.$$pure&&t.$$pure,n}(e.$$interceptor,t),e=e.$$intercepted);var n=!1,r=function(r,i,o,a){var s=n&&a?a[0]:e(r,i,o,a);return t(s)};return r.$$intercepted=e,r.$$interceptor=t,r.literal=e.literal,r.oneTime=e.oneTime,r.constant=e.constant,t.$stateful||(n=!e.inputs,r.inputs=e.inputs?e.inputs:[e],t.$$pure||(r.inputs=r.inputs.map((function(e){return 2===e.isPure?function(t){return e(t)}:e})))),p(r)}}]}function Ir(){var e=!0;this.$get=["$rootScope","$exceptionHandler",function(t,n){return jr((function(e){t.$evalAsync(e)}),n,e)}],this.errorOnUnhandledRejections=function(t){return N(t)?(e=t,this):e}}function _r(){var e=!0;this.$get=["$browser","$exceptionHandler",function(t,n){return jr((function(e){t.defer(e)}),n,e)}],this.errorOnUnhandledRejections=function(t){return N(t)?(e=t,this):e}}function jr(e,t,n){var r=i("$q",TypeError),o=0,a=[];function s(){return new u}function u(){var e=this.promise=new l;this.resolve=function(t){p(e,t)},this.reject=function(t){f(e,t)},this.notify=function(t){g(e,t)}}function l(){this.$$state={status:0}}function c(){for(;!o&&a.length;){var e=a.shift();if(!Lr(e)){Nr(e);var n="Possibly unhandled rejection: "+Ve(e.value);z(e.value)?t(e.value,n):t(n)}}}function h(r){!n||r.pending||2!==r.status||Lr(r)||(0===o&&0===a.length&&e(c),a.push(r)),!r.processScheduled&&r.pending&&(r.processScheduled=!0,++o,e((function(){!function(r){var i,a,s;s=r.pending,r.processScheduled=!1,r.pending=void 0;try{for(var u=0,l=s.length;u<l;++u){Nr(r),a=s[u][0],i=s[u][r.status];try{K(i)?p(a,i(r.value)):1===r.status?p(a,r.value):f(a,r.value)}catch(e){f(a,e),e&&!0===e.$$passToExceptionHandler&&t(e)}}}finally{--o,n&&0===o&&e(c)}}(r)})))}function p(e,t){e.$$state.status||(t===e?d(e,r("qcycle","Expected promise to be resolved with value other than itself '{0}'",t)):function e(t,n){var r,i=!1;try{(M(n)||K(n))&&(r=n.then),K(r)?(t.$$state.status=-1,r.call(n,o,a,(function(e){g(t,e)}))):(t.$$state.value=n,t.$$state.status=1,h(t.$$state))}catch(e){a(e)}function o(n){i||(i=!0,e(t,n))}function a(e){i||(i=!0,d(t,e))}}(e,t))}function f(e,t){e.$$state.status||d(e,t)}function d(e,t){e.$$state.value=t,e.$$state.status=2,h(e.$$state)}function g(n,r){var i=n.$$state.pending;n.$$state.status<=0&&i&&i.length&&e((function(){for(var e,n,o=0,a=i.length;o<a;o++){n=i[o][0],e=i[o][3];try{g(n,K(e)?e(r):r)}catch(e){t(e)}}}))}function m(e){var t=new l;return f(t,e),t}function v(e,t,n){var r=null;try{K(n)&&(r=n())}catch(e){return m(e)}return Q(r)?r.then((function(){return t(e)}),m):t(e)}function y(e,t,n,r){var i=new l;return p(i,e),i.then(t,n,r)}F(l.prototype,{then:function(e,t,n){if(L(e)&&L(t)&&L(n))return this;var r=new l;return this.$$state.pending=this.$$state.pending||[],this.$$state.pending.push([r,e,t,n]),this.$$state.status>0&&h(this.$$state),r},catch:function(e){return this.then(null,e)},finally:function(e,t){return this.then((function(t){return v(t,b,e)}),(function(t){return v(t,m,e)}),t)}});var b=y;function $(e){if(!K(e))throw r("norslvr","Expected resolverFn, got '{0}'",e);var t=new l;return e((function(e){p(t,e)}),(function(e){f(t,e)})),t}return $.prototype=l.prototype,$.defer=s,$.reject=m,$.when=y,$.resolve=b,$.all=function(e){var t=new l,n=0,r=q(e)?[]:{};return x(e,(function(e,i){n++,y(e).then((function(e){r[i]=e,--n||p(t,r)}),(function(e){f(t,e)}))})),0===n&&p(t,r),t},$.race=function(e){var t=s();return x(e,(function(e){y(e).then(t.resolve,t.reject)})),t.promise},$}function Lr(e){return!!e.pur}function Nr(e){e.pur=!0}function Mr(e){e.$$state&&Nr(e.$$state)}function Br(){this.$get=["$window","$timeout",function(e,t){var n=e.requestAnimationFrame||e.webkitRequestAnimationFrame,r=e.cancelAnimationFrame||e.webkitCancelAnimationFrame||e.webkitCancelRequestAnimationFrame,i=!!n,o=i?function(e){var t=n(e);return function(){r(t)}}:function(e){var n=t(e,16.66,!1);return function(){t.cancel(n)}};return o.supported=i,o}]}function Ur(){var e=10,t=i("$rootScope"),n=null,r=null;this.digestTtl=function(t){return arguments.length&&(e=t),e},this.$get=["$exceptionHandler","$parse","$browser",function(i,a,s){function u(e){e.currentScope.$$destroyed=!0}function l(){this.$id=A(),this.$$phase=this.$parent=this.$$watchers=this.$$nextSibling=this.$$prevSibling=this.$$childHead=this.$$childTail=null,this.$root=this,this.$$destroyed=!1,this.$$suspended=!1,this.$$listeners={},this.$$listenerCount={},this.$$watchersCount=0,this.$$isolateBindings=null}l.prototype={constructor:l,$new:function(e,t){var n;return t=t||this,e?(n=new l).$root=this.$root:(this.$$ChildScope||(this.$$ChildScope=function(e){function t(){this.$$watchers=this.$$nextSibling=this.$$childHead=this.$$childTail=null,this.$$listeners={},this.$$listenerCount={},this.$$watchersCount=0,this.$id=A(),this.$$ChildScope=null,this.$$suspended=!1}return t.prototype=e,t}(this)),n=new this.$$ChildScope),n.$parent=t,n.$$prevSibling=t.$$childTail,t.$$childHead?(t.$$childTail.$$nextSibling=n,t.$$childTail=n):t.$$childHead=t.$$childTail=n,(e||t!==this)&&n.$on("$destroy",u),n},$watch:function(e,t,r,i){var o=a(e),s=K(t)?t:O;if(o.$$watchDelegate)return o.$$watchDelegate(this,s,r,o,e);var u=this,l=u.$$watchers,c={fn:s,last:$,get:o,exp:i||e,eq:!!r};return n=null,l||((l=u.$$watchers=[]).$$digestWatchIndex=-1),l.unshift(c),l.$$digestWatchIndex++,y(this,1),function(){var e=ie(l,c);e>=0&&(y(u,-1),e<l.$$digestWatchIndex&&l.$$digestWatchIndex--),n=null}},$watchGroup:function(e,t){var n=new Array(e.length),r=new Array(e.length),i=[],o=this,a=!1,s=!0;if(!e.length){var u=!0;return o.$evalAsync((function(){u&&t(r,r,o)})),function(){u=!1}}if(1===e.length)return this.$watch(e[0],(function(e,i,o){r[0]=e,n[0]=i,t(r,e===i?r:n,o)}));function l(){a=!1;try{s?(s=!1,t(r,r,o)):t(r,n,o)}finally{for(var i=0;i<e.length;i++)n[i]=r[i]}}return x(e,(function(e,t){var n=o.$watch(e,(function(e){r[t]=e,a||(a=!0,o.$evalAsync(l))}));i.push(n)})),function(){for(;i.length;)i.shift()()}},$watchCollection:function(e,t){g.$$pure=a(e).literal,g.$stateful=!g.$$pure;var n,r,i,o=this,s=t.length>1,u=0,l=a(e,g),h=[],p={},f=!0,d=0;function g(e){var t,i,o,a;if(!L(n=e)){if(M(n))if(w(n)){r!==h&&(d=(r=h).length=0,u++),t=n.length,d!==t&&(u++,r.length=d=t);for(var s=0;s<t;s++)a=r[s],o=n[s],a!=a&&o!=o||a===o||(u++,r[s]=o)}else{for(i in r!==p&&(r=p={},d=0,u++),t=0,n)c.call(n,i)&&(t++,o=n[i],a=r[i],i in r?a!=a&&o!=o||a===o||(u++,r[i]=o):(d++,r[i]=o,u++));if(d>t)for(i in u++,r)c.call(n,i)||(d--,delete r[i])}else r!==n&&(r=n,u++);return u}}return this.$watch(l,(function(){if(f?(f=!1,t(n,n,o)):t(n,i,o),s)if(M(n))if(w(n)){i=new Array(n.length);for(var e=0;e<n.length;e++)i[e]=n[e]}else for(var r in i={},n)c.call(n,r)&&(i[r]=n[r]);else i=n}))},$digest:function(){var o,a,u,l,c,d,y,b,w,x=e,E=p.length?h:this,A=[];m("$digest"),s.$$checkUrlChange(),this===h&&null!==r&&(s.defer.cancel(r),S()),n=null;do{c=!1,y=E;for(var C=0;C<p.length;C++){try{(0,(w=p[C]).fn)(w.scope,w.locals)}catch(e){i(e)}n=null}p.length=0;e:do{if(l=!y.$$suspended&&y.$$watchers)for(l.$$digestWatchIndex=l.length;l.$$digestWatchIndex--;)try{if(o=l[l.$$digestWatchIndex])if((a=(0,o.get)(y))===(u=o.last)||(o.eq?se(a,u):P(a)&&P(u))){if(o===n){c=!1;break e}}else c=!0,n=o,o.last=o.eq?oe(a,null):a,(0,o.fn)(a,u===$?a:u,y),x<5&&(A[b=4-x]||(A[b]=[]),A[b].push({msg:K(o.exp)?"fn: "+(o.exp.name||o.exp.toString()):o.exp,newVal:a,oldVal:u}))}catch(e){i(e)}if(!(d=!y.$$suspended&&y.$$watchersCount&&y.$$childHead||y!==E&&y.$$nextSibling))for(;y!==E&&!(d=y.$$nextSibling);)y=y.$parent}while(y=d);if((c||p.length)&&!x--)throw v(),t("infdig","{0} $digest() iterations reached. Aborting!\nWatchers fired in the last 5 iterations: {1}",e,A)}while(c||p.length);for(v();g<f.length;)try{f[g++]()}catch(e){i(e)}f.length=g=0,s.$$checkUrlChange()},$suspend:function(){this.$$suspended=!0},$isSuspended:function(){return this.$$suspended},$resume:function(){this.$$suspended=!1},$destroy:function(){if(!this.$$destroyed){var e=this.$parent;for(var t in this.$broadcast("$destroy"),this.$$destroyed=!0,this===h&&s.$$applicationDestroyed(),y(this,-this.$$watchersCount),this.$$listenerCount)b(this,this.$$listenerCount[t],t);e&&e.$$childHead===this&&(e.$$childHead=this.$$nextSibling),e&&e.$$childTail===this&&(e.$$childTail=this.$$prevSibling),this.$$prevSibling&&(this.$$prevSibling.$$nextSibling=this.$$nextSibling),this.$$nextSibling&&(this.$$nextSibling.$$prevSibling=this.$$prevSibling),this.$destroy=this.$digest=this.$apply=this.$evalAsync=this.$applyAsync=O,this.$on=this.$watch=this.$watchGroup=function(){return O},this.$$listeners={},this.$$nextSibling=null,function e(t){9===o&&(t.$$childHead&&e(t.$$childHead),t.$$nextSibling&&e(t.$$nextSibling)),t.$parent=t.$$nextSibling=t.$$prevSibling=t.$$childHead=t.$$childTail=t.$root=t.$$watchers=null}(this)}},$eval:function(e,t){return a(e)(this,t)},$evalAsync:function(e,t){h.$$phase||p.length||s.defer((function(){p.length&&h.$digest()}),null,"$evalAsync"),p.push({scope:this,fn:a(e),locals:t})},$$postDigest:function(e){f.push(e)},$apply:function(e){try{m("$apply");try{return this.$eval(e)}finally{v()}}catch(e){i(e)}finally{try{h.$digest()}catch(e){throw i(e),e}}},$applyAsync:function(e){var t=this;e&&d.push((function(){t.$eval(e)})),e=a(e),null===r&&(r=s.defer((function(){h.$apply(S)}),null,"$applyAsync"))},$on:function(e,t){var n=this.$$listeners[e];n||(this.$$listeners[e]=n=[]),n.push(t);var r=this;do{r.$$listenerCount[e]||(r.$$listenerCount[e]=0),r.$$listenerCount[e]++}while(r=r.$parent);var i=this;return function(){var r=n.indexOf(t);-1!==r&&(delete n[r],b(i,1,e))}},$emit:function(e,t){var n,r,o,a=[],s=this,u=!1,l={name:e,targetScope:s,stopPropagation:function(){u=!0},preventDefault:function(){l.defaultPrevented=!0},defaultPrevented:!1},c=ce([l],arguments,1);do{for(n=s.$$listeners[e]||a,l.currentScope=s,r=0,o=n.length;r<o;r++)if(n[r])try{n[r].apply(null,c)}catch(e){i(e)}else n.splice(r,1),r--,o--;if(u)break;s=s.$parent}while(s);return l.currentScope=null,l},$broadcast:function(e,t){var n=this,r=n,o=n,a={name:e,targetScope:n,preventDefault:function(){a.defaultPrevented=!0},defaultPrevented:!1};if(!n.$$listenerCount[e])return a;for(var s,u,l,c=ce([a],arguments,1);r=o;){for(a.currentScope=r,u=0,l=(s=r.$$listeners[e]||[]).length;u<l;u++)if(s[u])try{s[u].apply(null,c)}catch(e){i(e)}else s.splice(u,1),u--,l--;if(!(o=r.$$listenerCount[e]&&r.$$childHead||r!==n&&r.$$nextSibling))for(;r!==n&&!(o=r.$$nextSibling);)r=r.$parent}return a.currentScope=null,a}};var h=new l,p=h.$$asyncQueue=[],f=h.$$postDigestQueue=[],d=h.$$applyAsyncQueue=[],g=0;return h;function m(e){if(h.$$phase)throw t("inprog","{0} already in progress",h.$$phase);h.$$phase=e}function v(){h.$$phase=null}function y(e,t){do{e.$$watchersCount+=t}while(e=e.$parent)}function b(e,t,n){do{e.$$listenerCount[n]-=t,0===e.$$listenerCount[n]&&delete e.$$listenerCount[n]}while(e=e.$parent)}function $(){}function S(){for(;d.length;)try{d.shift()()}catch(e){i(e)}r=null}}]}function Hr(){var e=/^\s*(https?|s?ftp|mailto|tel|file):/,t=/^\s*((https?|ftp|file|blob):|data:image\/)/;this.aHrefSanitizationTrustedUrlList=function(t){return N(t)?(e=t,this):e},this.imgSrcSanitizationTrustedUrlList=function(e){return N(e)?(t=e,this):t},this.$get=function(){return function(n,r){var i=r?t:e,o=ui(n&&n.trim()).href;return""===o||o.match(i)?n:"unsafe:"+o}}}kr.prototype={compile:function(e){var t=this;this.state={nextId:0,filters:{},fn:{vars:[],body:[],own:{}},assign:{vars:[],body:[],own:{}},inputs:[]},Ar(e,t.$filter);var n,r="";if(this.stage="assign",n=Fr(e)){this.state.computing="assign";var i=this.nextId();this.recurse(n,i),this.return_(i),r="fn.assign="+this.generateFunction("assign","s,v,l")}var o=Cr(e.body);t.stage="inputs",x(o,(function(e,n){var r="fn"+n;t.state[r]={vars:[],body:[],own:{}},t.state.computing=r;var i=t.nextId();t.recurse(e,i),t.return_(i),t.state.inputs.push({name:r,isPure:e.isPure}),e.watchId=n})),this.state.computing="fn",this.stage="main",this.recurse(e);var a='"'+this.USE+" "+this.STRICT+'";\n'+this.filterPrefix()+"var fn="+this.generateFunction("fn","s,l,a,i")+r+this.watchFns()+"return fn;",s=new Function("$filter","getStringValue","ifDefined","plus",a)(this.$filter,yr,Sr,Er);return this.state=this.stage=void 0,s},USE:"use",STRICT:"strict",watchFns:function(){var e=[],t=this.state.inputs,n=this;return x(t,(function(t){e.push("var "+t.name+"="+n.generateFunction(t.name,"s")),t.isPure&&e.push(t.name,".isPure="+JSON.stringify(t.isPure)+";")})),t.length&&e.push("fn.inputs=["+t.map((function(e){return e.name})).join(",")+"];"),e.join("")},generateFunction:function(e,t){return"function("+t+"){"+this.varsPrefix(e)+this.body(e)+"};"},filterPrefix:function(){var e=[],t=this;return x(this.state.filters,(function(n,r){e.push(n+"=$filter("+t.escape(r)+")")})),e.length?"var "+e.join(",")+";":""},varsPrefix:function(e){return this.state[e].vars.length?"var "+this.state[e].vars.join(",")+";":""},body:function(e){return this.state[e].body.join("")},recurse:function(e,t,n,r,i,o){var a,s,u,l,c,h=this;if(r=r||O,!o&&N(e.watchId))return t=t||this.nextId(),void this.if_("i",this.lazyAssign(t,this.computedMember("i",e.watchId)),this.lazyRecurse(e,t,n,r,i,!0));switch(e.type){case xr.Program:x(e.body,(function(t,n){h.recurse(t.expression,void 0,void 0,(function(e){s=e})),n!==e.body.length-1?h.current().body.push(s,";"):h.return_(s)}));break;case xr.Literal:l=this.escape(e.value),this.assign(t,l),r(t||l);break;case xr.UnaryExpression:this.recurse(e.argument,void 0,void 0,(function(e){s=e})),l=e.operator+"("+this.ifDefined(s,0)+")",this.assign(t,l),r(l);break;case xr.BinaryExpression:this.recurse(e.left,void 0,void 0,(function(e){a=e})),this.recurse(e.right,void 0,void 0,(function(e){s=e})),l="+"===e.operator?this.plus(a,s):"-"===e.operator?this.ifDefined(a,0)+e.operator+this.ifDefined(s,0):"("+a+")"+e.operator+"("+s+")",this.assign(t,l),r(l);break;case xr.LogicalExpression:t=t||this.nextId(),h.recurse(e.left,t),h.if_("&&"===e.operator?t:h.not(t),h.lazyRecurse(e.right,t)),r(t);break;case xr.ConditionalExpression:t=t||this.nextId(),h.recurse(e.test,t),h.if_(t,h.lazyRecurse(e.alternate,t),h.lazyRecurse(e.consequent,t)),r(t);break;case xr.Identifier:t=t||this.nextId(),n&&(n.context="inputs"===h.stage?"s":this.assign(this.nextId(),this.getHasOwnProperty("l",e.name)+"?l:s"),n.computed=!1,n.name=e.name),h.if_("inputs"===h.stage||h.not(h.getHasOwnProperty("l",e.name)),(function(){h.if_("inputs"===h.stage||"s",(function(){i&&1!==i&&h.if_(h.isNull(h.nonComputedMember("s",e.name)),h.lazyAssign(h.nonComputedMember("s",e.name),"{}")),h.assign(t,h.nonComputedMember("s",e.name))}))}),t&&h.lazyAssign(t,h.nonComputedMember("l",e.name))),r(t);break;case xr.MemberExpression:a=n&&(n.context=this.nextId())||this.nextId(),t=t||this.nextId(),h.recurse(e.object,a,void 0,(function(){h.if_(h.notNull(a),(function(){e.computed?(s=h.nextId(),h.recurse(e.property,s),h.getStringValue(s),i&&1!==i&&h.if_(h.not(h.computedMember(a,s)),h.lazyAssign(h.computedMember(a,s),"{}")),l=h.computedMember(a,s),h.assign(t,l),n&&(n.computed=!0,n.name=s)):(i&&1!==i&&h.if_(h.isNull(h.nonComputedMember(a,e.property.name)),h.lazyAssign(h.nonComputedMember(a,e.property.name),"{}")),l=h.nonComputedMember(a,e.property.name),h.assign(t,l),n&&(n.computed=!1,n.name=e.property.name))}),(function(){h.assign(t,"undefined")})),r(t)}),!!i);break;case xr.CallExpression:t=t||this.nextId(),e.filter?(s=h.filter(e.callee.name),u=[],x(e.arguments,(function(e){var t=h.nextId();h.recurse(e,t),u.push(t)})),l=s+"("+u.join(",")+")",h.assign(t,l),r(t)):(s=h.nextId(),a={},u=[],h.recurse(e.callee,s,a,(function(){h.if_(h.notNull(s),(function(){x(e.arguments,(function(t){h.recurse(t,e.constant?void 0:h.nextId(),void 0,(function(e){u.push(e)}))})),l=a.name?h.member(a.context,a.name,a.computed)+"("+u.join(",")+")":s+"("+u.join(",")+")",h.assign(t,l)}),(function(){h.assign(t,"undefined")})),r(t)})));break;case xr.AssignmentExpression:s=this.nextId(),a={},this.recurse(e.left,void 0,a,(function(){h.if_(h.notNull(a.context),(function(){h.recurse(e.right,s),l=h.member(a.context,a.name,a.computed)+e.operator+s,h.assign(t,l),r(t||l)}))}),1);break;case xr.ArrayExpression:u=[],x(e.elements,(function(t){h.recurse(t,e.constant?void 0:h.nextId(),void 0,(function(e){u.push(e)}))})),l="["+u.join(",")+"]",this.assign(t,l),r(t||l);break;case xr.ObjectExpression:u=[],c=!1,x(e.properties,(function(e){e.computed&&(c=!0)})),c?(t=t||this.nextId(),this.assign(t,"{}"),x(e.properties,(function(e){e.computed?(a=h.nextId(),h.recurse(e.key,a)):a=e.key.type===xr.Identifier?e.key.name:""+e.key.value,s=h.nextId(),h.recurse(e.value,s),h.assign(h.member(t,a,e.computed),s)}))):(x(e.properties,(function(t){h.recurse(t.value,e.constant?void 0:h.nextId(),void 0,(function(e){u.push(h.escape(t.key.type===xr.Identifier?t.key.name:""+t.key.value)+":"+e)}))})),l="{"+u.join(",")+"}",this.assign(t,l)),r(t||l);break;case xr.ThisExpression:this.assign(t,"s"),r(t||"s");break;case xr.LocalsExpression:this.assign(t,"l"),r(t||"l");break;case xr.NGValueParameter:this.assign(t,"v"),r(t||"v")}},getHasOwnProperty:function(e,t){var n=e+"."+t,r=this.current().own;return r.hasOwnProperty(n)||(r[n]=this.nextId(!1,e+"&&("+this.escape(t)+" in "+e+")")),r[n]},assign:function(e,t){if(e)return this.current().body.push(e,"=",t,";"),e},filter:function(e){return this.state.filters.hasOwnProperty(e)||(this.state.filters[e]=this.nextId(!0)),this.state.filters[e]},ifDefined:function(e,t){return"ifDefined("+e+","+this.escape(t)+")"},plus:function(e,t){return"plus("+e+","+t+")"},return_:function(e){this.current().body.push("return ",e,";")},if_:function(e,t,n){if(!0===e)t();else{var r=this.current().body;r.push("if(",e,"){"),t(),r.push("}"),n&&(r.push("else{"),n(),r.push("}"))}},not:function(e){return"!("+e+")"},isNull:function(e){return e+"==null"},notNull:function(e){return e+"!=null"},nonComputedMember:function(e,t){return/^[$_a-zA-Z][$_a-zA-Z0-9]*$/.test(t)?e+"."+t:e+'["'+t.replace(/[^$_a-zA-Z0-9]/g,this.stringEscapeFn)+'"]'},computedMember:function(e,t){return e+"["+t+"]"},member:function(e,t,n){return n?this.computedMember(e,t):this.nonComputedMember(e,t)},getStringValue:function(e){this.assign(e,"getStringValue("+e+")")},lazyRecurse:function(e,t,n,r,i,o){var a=this;return function(){a.recurse(e,t,n,r,i,o)}},lazyAssign:function(e,t){var n=this;return function(){n.assign(e,t)}},stringEscapeRegex:/[^ a-zA-Z0-9]/g,stringEscapeFn:function(e){return"\\u"+("0000"+e.charCodeAt(0).toString(16)).slice(-4)},escape:function(e){if(U(e))return"'"+e.replace(this.stringEscapeRegex,this.stringEscapeFn)+"'";if(H(e))return e.toString();if(!0===e)return"true";if(!1===e)return"false";if(null===e)return"null";if(void 0===e)return"undefined";throw mr("esc","IMPOSSIBLE")},nextId:function(e,t){var n="v"+this.state.nextId++;return e||this.current().vars.push(n+(t?"="+t:"")),n},current:function(){return this.state[this.state.computing]}},Rr.prototype={compile:function(e){var t,n,r=this;Ar(e,r.$filter),(t=Fr(e))&&(n=this.recurse(t));var i,o=Cr(e.body);o&&(i=[],x(o,(function(e,t){var n=r.recurse(e);n.isPure=e.isPure,e.input=n,i.push(n),e.watchId=t})));var a=[];x(e.body,(function(e){a.push(r.recurse(e.expression))}));var s=0===e.body.length?O:1===e.body.length?a[0]:function(e,t){var n;return x(a,(function(r){n=r(e,t)})),n};return n&&(s.assign=function(e,t,r){return n(e,r,t)}),i&&(s.inputs=i),s},recurse:function(e,t,n){var r,i,o,a=this;if(e.input)return this.inputs(e.input,e.watchId);switch(e.type){case xr.Literal:return this.value(e.value,t);case xr.UnaryExpression:return i=this.recurse(e.argument),this["unary"+e.operator](i,t);case xr.BinaryExpression:case xr.LogicalExpression:return r=this.recurse(e.left),i=this.recurse(e.right),this["binary"+e.operator](r,i,t);case xr.ConditionalExpression:return this["ternary?:"](this.recurse(e.test),this.recurse(e.alternate),this.recurse(e.consequent),t);case xr.Identifier:return a.identifier(e.name,t,n);case xr.MemberExpression:return r=this.recurse(e.object,!1,!!n),e.computed||(i=e.property.name),e.computed&&(i=this.recurse(e.property)),e.computed?this.computedMember(r,i,t,n):this.nonComputedMember(r,i,t,n);case xr.CallExpression:return o=[],x(e.arguments,(function(e){o.push(a.recurse(e))})),e.filter&&(i=this.$filter(e.callee.name)),e.filter||(i=this.recurse(e.callee,!0)),e.filter?function(e,n,r,a){for(var s=[],u=0;u<o.length;++u)s.push(o[u](e,n,r,a));var l=i.apply(void 0,s,a);return t?{context:void 0,name:void 0,value:l}:l}:function(e,n,r,a){var s,u=i(e,n,r,a);if(null!=u.value){for(var l=[],c=0;c<o.length;++c)l.push(o[c](e,n,r,a));s=u.value.apply(u.context,l)}return t?{value:s}:s};case xr.AssignmentExpression:return r=this.recurse(e.left,!0,1),i=this.recurse(e.right),function(e,n,o,a){var s=r(e,n,o,a),u=i(e,n,o,a);return s.context[s.name]=u,t?{value:u}:u};case xr.ArrayExpression:return o=[],x(e.elements,(function(e){o.push(a.recurse(e))})),function(e,n,r,i){for(var a=[],s=0;s<o.length;++s)a.push(o[s](e,n,r,i));return t?{value:a}:a};case xr.ObjectExpression:return o=[],x(e.properties,(function(e){e.computed?o.push({key:a.recurse(e.key),computed:!0,value:a.recurse(e.value)}):o.push({key:e.key.type===xr.Identifier?e.key.name:""+e.key.value,computed:!1,value:a.recurse(e.value)})})),function(e,n,r,i){for(var a={},s=0;s<o.length;++s)o[s].computed?a[o[s].key(e,n,r,i)]=o[s].value(e,n,r,i):a[o[s].key]=o[s].value(e,n,r,i);return t?{value:a}:a};case xr.ThisExpression:return function(e){return t?{value:e}:e};case xr.LocalsExpression:return function(e,n){return t?{value:n}:n};case xr.NGValueParameter:return function(e,n,r){return t?{value:r}:r}}},"unary+":function(e,t){return function(n,r,i,o){var a=e(n,r,i,o);return a=N(a)?+a:0,t?{value:a}:a}},"unary-":function(e,t){return function(n,r,i,o){var a=e(n,r,i,o);return a=N(a)?-a:-0,t?{value:a}:a}},"unary!":function(e,t){return function(n,r,i,o){var a=!e(n,r,i,o);return t?{value:a}:a}},"binary+":function(e,t,n){return function(r,i,o,a){var s=Er(e(r,i,o,a),t(r,i,o,a));return n?{value:s}:s}},"binary-":function(e,t,n){return function(r,i,o,a){var s=e(r,i,o,a),u=t(r,i,o,a),l=(N(s)?s:0)-(N(u)?u:0);return n?{value:l}:l}},"binary*":function(e,t,n){return function(r,i,o,a){var s=e(r,i,o,a)*t(r,i,o,a);return n?{value:s}:s}},"binary/":function(e,t,n){return function(r,i,o,a){var s=e(r,i,o,a)/t(r,i,o,a);return n?{value:s}:s}},"binary%":function(e,t,n){return function(r,i,o,a){var s=e(r,i,o,a)%t(r,i,o,a);return n?{value:s}:s}},"binary===":function(e,t,n){return function(r,i,o,a){var s=e(r,i,o,a)===t(r,i,o,a);return n?{value:s}:s}},"binary!==":function(e,t,n){return function(r,i,o,a){var s=e(r,i,o,a)!==t(r,i,o,a);return n?{value:s}:s}},"binary==":function(e,t,n){return function(r,i,o,a){var s=e(r,i,o,a)==t(r,i,o,a);return n?{value:s}:s}},"binary!=":function(e,t,n){return function(r,i,o,a){var s=e(r,i,o,a)!=t(r,i,o,a);return n?{value:s}:s}},"binary<":function(e,t,n){return function(r,i,o,a){var s=e(r,i,o,a)<t(r,i,o,a);return n?{value:s}:s}},"binary>":function(e,t,n){return function(r,i,o,a){var s=e(r,i,o,a)>t(r,i,o,a);return n?{value:s}:s}},"binary<=":function(e,t,n){return function(r,i,o,a){var s=e(r,i,o,a)<=t(r,i,o,a);return n?{value:s}:s}},"binary>=":function(e,t,n){return function(r,i,o,a){var s=e(r,i,o,a)>=t(r,i,o,a);return n?{value:s}:s}},"binary&&":function(e,t,n){return function(r,i,o,a){var s=e(r,i,o,a)&&t(r,i,o,a);return n?{value:s}:s}},"binary||":function(e,t,n){return function(r,i,o,a){var s=e(r,i,o,a)||t(r,i,o,a);return n?{value:s}:s}},"ternary?:":function(e,t,n,r){return function(i,o,a,s){var u=e(i,o,a,s)?t(i,o,a,s):n(i,o,a,s);return r?{value:u}:u}},value:function(e,t){return function(){return t?{context:void 0,name:void 0,value:e}:e}},identifier:function(e,t,n){return function(r,i,o,a){var s=i&&e in i?i:r;n&&1!==n&&s&&null==s[e]&&(s[e]={});var u=s?s[e]:void 0;return t?{context:s,name:e,value:u}:u}},computedMember:function(e,t,n,r){return function(i,o,a,s){var u,l,c=e(i,o,a,s);return null!=c&&(u=yr(u=t(i,o,a,s)),r&&1!==r&&c&&!c[u]&&(c[u]={}),l=c[u]),n?{context:c,name:u,value:l}:l}},nonComputedMember:function(e,t,n,r){return function(i,o,a,s){var u=e(i,o,a,s);r&&1!==r&&u&&null==u[t]&&(u[t]={});var l=null!=u?u[t]:void 0;return n?{context:u,name:t,value:l}:l}},inputs:function(e,t){return function(n,r,i,o){return o?o[t]:e(n,r,i)}}},Pr.prototype={constructor:Pr,parse:function(e){var t=this.getAst(e),n=this.astCompiler.compile(t.ast);return n.literal=function(e){return 0===e.body.length||1===e.body.length&&(e.body[0].expression.type===xr.Literal||e.body[0].expression.type===xr.ArrayExpression||e.body[0].expression.type===xr.ObjectExpression)}(t.ast),n.constant=function(e){return e.constant}(t.ast),n.oneTime=t.oneTime,n},getAst:function(e){var t=!1;return":"===(e=e.trim()).charAt(0)&&":"===e.charAt(1)&&(t=!0,e=e.substring(2)),{ast:this.ast.ast(e),oneTime:t}}};var Vr=i("$sce"),qr={HTML:"html",CSS:"css",MEDIA_URL:"mediaUrl",URL:"url",RESOURCE_URL:"resourceUrl",JS:"js"},zr=/_([a-z])/g;function Kr(e){return e.replace(zr,Qe)}function Gr(e){var t=[];return N(e)&&x(e,(function(e){t.push(function(e){if("self"===e)return e;if(U(e)){if(e.indexOf("***")>-1)throw Vr("iwcard","Illegal sequence *** in string matcher. String: {0}",e);return e=ee(e).replace(/\\\*\\\*/g,".*").replace(/\\\*/g,"[^:/.?&;]*"),new RegExp("^"+e+"$")}if(G(e))return new RegExp("^"+e.source+"$");throw Vr("imatcher",'Matchers may only be "self", string patterns or RegExp objects')}(e))})),t}function Wr(){this.SCE_CONTEXTS=qr;var t=["self"],n=[];this.trustedResourceUrlList=function(e){return arguments.length&&(t=Gr(e)),t},Object.defineProperty(this,"resourceUrlWhitelist",{get:function(){return this.trustedResourceUrlList},set:function(e){this.trustedResourceUrlList=e}}),this.bannedResourceUrlList=function(e){return arguments.length&&(n=Gr(e)),n},Object.defineProperty(this,"resourceUrlBlacklist",{get:function(){return this.bannedResourceUrlList},set:function(e){this.bannedResourceUrlList=e}}),this.$get=["$injector","$$sanitizeUri",function(r,i){var o=function(e){throw Vr("unsafe","Attempting to use an unsafe value in a safe context.")};function a(t,n){return"self"===t?li(n,ai)||function(t){return li(t,function(){if(e.document.baseURI)return e.document.baseURI;ii||((ii=e.document.createElement("a")).href=".",ii=ii.cloneNode(!1));return ii.href}())}(n):!!t.exec(n.href)}function s(e){var t=function(e){this.$$unwrapTrustedValue=function(){return e}};return e&&(t.prototype=new e),t.prototype.valueOf=function(){return this.$$unwrapTrustedValue()},t.prototype.toString=function(){return this.$$unwrapTrustedValue().toString()},t}r.has("$sanitize")&&(o=r.get("$sanitize"));var u=s(),l={};return l[qr.HTML]=s(u),l[qr.CSS]=s(u),l[qr.MEDIA_URL]=s(u),l[qr.URL]=s(l[qr.MEDIA_URL]),l[qr.JS]=s(u),l[qr.RESOURCE_URL]=s(l[qr.URL]),{trustAs:function(e,t){var n=l.hasOwnProperty(e)?l[e]:null;if(!n)throw Vr("icontext","Attempted to trust a value in invalid context. Context: {0}; Value: {1}",e,t);if(null===t||L(t)||""===t)return t;if("string"!=typeof t)throw Vr("itype","Attempted to trust a non-string value in a content requiring a string: Context: {0}",e);return new n(t)},getTrusted:function(e,r){if(null===r||L(r)||""===r)return r;var s=l.hasOwnProperty(e)?l[e]:null;if(s&&r instanceof s)return r.$$unwrapTrustedValue();if(K(r.$$unwrapTrustedValue)&&(r=r.$$unwrapTrustedValue()),e===qr.MEDIA_URL||e===qr.URL)return i(r.toString(),e===qr.MEDIA_URL);if(e===qr.RESOURCE_URL){if(function(e){var r,i,o=ui(e.toString()),s=!1;for(r=0,i=t.length;r<i;r++)if(a(t[r],o)){s=!0;break}if(s)for(r=0,i=n.length;r<i;r++)if(a(n[r],o)){s=!1;break}return s}(r))return r;throw Vr("insecurl","Blocked loading resource from url not allowed by $sceDelegate policy. URL: {0}",r.toString())}if(e===qr.HTML)return o(r);throw Vr("unsafe","Attempting to use an unsafe value in a safe context.")},valueOf:function(e){return e instanceof u?e.$$unwrapTrustedValue():e}}}]}function Yr(){var e=!0;this.enabled=function(t){return arguments.length&&(e=!!t),e},this.$get=["$parse","$sceDelegate",function(t,n){if(e&&o<8)throw Vr("iequirks","Strict Contextual Escaping does not support Internet Explorer version < 11 in quirks mode. You can fix this by adding the text <!doctype html> to the top of your HTML document. See http://docs.angularjs.org/api/ng.$sce for more information.");var r=He(qr);r.isEnabled=function(){return e},r.trustAs=n.trustAs,r.getTrusted=n.getTrusted,r.valueOf=n.valueOf,e||(r.trustAs=r.getTrusted=function(e,t){return t},r.valueOf=I),r.parseAs=function(e,n){var i=t(n);return i.literal&&i.constant?i:t(n,(function(t){return r.getTrusted(e,t)}))};var i=r.parseAs,a=r.getTrusted,s=r.trustAs;return x(qr,(function(e,t){var n=h(t);r[Kr("parse_as_"+n)]=function(t){return i(e,t)},r[Kr("get_trusted_"+n)]=function(t){return a(e,t)},r[Kr("trust_as_"+n)]=function(t){return s(e,t)}})),r}]}function Xr(){this.$get=["$window","$document",function(e,t){var n={},r=!(!(e.nw&&e.nw.process)&&e.chrome&&(e.chrome.app&&e.chrome.app.runtime||!e.chrome.app&&e.chrome.runtime&&e.chrome.runtime.id))&&e.history&&e.history.pushState,i=R((/android (\d+)/.exec(h((e.navigator||{}).userAgent))||[])[1]),a=/Boxee/i.test((e.navigator||{}).userAgent),s=t[0]||{},u=s.body&&s.body.style,l=!1,c=!1;return u&&(l=!(!("transition"in u)&&!("webkitTransition"in u)),c=!(!("animation"in u)&&!("webkitAnimation"in u))),{history:!(!r||i<4||a),hasEvent:function(e){if("input"===e&&o)return!1;if(L(n[e])){var t=s.createElement("div");n[e]="on"+e in t}return n[e]},csp:ue(),transitions:l,animations:c,android:i}}]}function Qr(){this.$get=_((function(e){return new Jr(e)}))}function Jr(e){var t={},n=[],r=this.ALL_TASKS_TYPE="$$all$$",i=this.DEFAULT_TASK_TYPE="$$default$$";function o(){var e=n.pop();return e&&e.cb}function a(e){for(var t=n.length-1;t>=0;--t){var r=n[t];if(r.type===e)return n.splice(t,1),r.cb}}this.completeTask=function(n,s){s=s||i;try{n()}finally{!function(e){t[e=e||i]&&(t[e]--,t[r]--)}(s);var u=t[s],l=t[r];if(!l||!u)for(var c,h=l?a:o;c=h(s);)try{c()}catch(t){e.error(t)}}},this.incTaskCount=function(e){t[e=e||i]=(t[e]||0)+1,t[r]=(t[r]||0)+1},this.notifyWhenNoPendingTasks=function(e,i){t[i=i||r]?n.push({type:i,cb:e}):e()}}var Zr=i("$templateRequest");function ei(){var e;this.httpOptions=function(t){return t?(e=t,this):e},this.$get=["$exceptionHandler","$templateCache","$http","$q","$sce",function(t,n,r,i,o){function a(s,u){a.totalPendingRequests++,U(s)&&!L(n.get(s))||(s=o.getTrustedResourceUrl(s));var l=r.defaults&&r.defaults.transformResponse;return q(l)?l=l.filter((function(e){return e!==Nn})):l===Nn&&(l=null),r.get(s,F({cache:n,transformResponse:l},e)).finally((function(){a.totalPendingRequests--})).then((function(e){return n.put(s,e.data)}),(function(e){u||(e=Zr("tpload","Failed to load template: {0} (HTTP status: {1} {2})",s,e.status,e.statusText),t(e));return i.reject(e)}))}return a.totalPendingRequests=0,a}]}function ti(){this.$get=["$rootScope","$browser","$location",function(e,t,n){var r={findBindings:function(e,t,n){var r=e.getElementsByClassName("ng-binding"),i=[];return x(r,(function(e){var r=b.element(e).data("$binding");r&&x(r,(function(r){n?new RegExp("(^|\\s)"+ee(t)+"(\\s|\\||$)").test(r)&&i.push(e):-1!==r.indexOf(t)&&i.push(e)}))})),i},findModels:function(e,t,n){for(var r=["ng-","data-ng-","ng\\:"],i=0;i<r.length;++i){var o="["+r[i]+"model"+(n?"=":"*=")+'"'+t+'"]',a=e.querySelectorAll(o);if(a.length)return a}},getLocation:function(){return n.url()},setLocation:function(t){t!==n.url()&&(n.url(t),e.$digest())},whenStable:function(e){t.notifyWhenNoOutstandingRequests(e)}};return r}]}var ni=i("$timeout");function ri(){this.$get=["$rootScope","$browser","$q","$$q","$exceptionHandler",function(e,t,n,r,i){var o={};function a(a,s,u){K(a)||(u=s,s=a,a=O);var l,c=he(arguments,3),h=N(u)&&!u,p=(h?r:n).defer(),f=p.promise;return l=t.defer((function(){try{p.resolve(a.apply(null,c))}catch(e){p.reject(e),i(e)}finally{delete o[f.$$timeoutId]}h||e.$apply()}),s,"$timeout"),f.$$timeoutId=l,o[l]=p,f}return a.cancel=function(e){if(!e)return!1;if(!e.hasOwnProperty("$$timeoutId"))throw ni("badprom","`$timeout.cancel()` called with a promise that was not generated by `$timeout()`.");if(!o.hasOwnProperty(e.$$timeoutId))return!1;var n=e.$$timeoutId,r=o[n];return Mr(r.promise),r.reject("canceled"),delete o[n],t.defer.cancel(n)},a}]}var ii,oi=e.document.createElement("a"),ai=ui(e.location.href);oi.href="http://[::1]";var si="[::1]"===oi.hostname;function ui(e){if(!U(e))return e;var t=e;o&&(oi.setAttribute("href",t),t=oi.href),oi.setAttribute("href",t);var n=oi.hostname;return!si&&n.indexOf(":")>-1&&(n="["+n+"]"),{href:oi.href,protocol:oi.protocol?oi.protocol.replace(/:$/,""):"",host:oi.host,search:oi.search?oi.search.replace(/^\?/,""):"",hash:oi.hash?oi.hash.replace(/^#/,""):"",hostname:n,port:oi.port,pathname:"/"===oi.pathname.charAt(0)?oi.pathname:"/"+oi.pathname}}function li(e,t){return e=ui(e),t=ui(t),e.protocol===t.protocol&&e.host===t.host}function ci(){this.$get=_(e)}function hi(e){var t=e[0]||{},n={},r="";function i(e){try{return decodeURIComponent(e)}catch(t){return e}}return function(){var e,o,a,s,u,l=function(e){try{return e.cookie||""}catch(e){return""}}(t);if(l!==r)for(e=(r=l).split("; "),n={},a=0;a<e.length;a++)(s=(o=e[a]).indexOf("="))>0&&(u=i(o.substring(0,s)),L(n[u])&&(n[u]=i(o.substring(s+1))));return n}}function pi(){this.$get=hi}function fi(e){function t(n,r){if(M(n)){var i={};return x(n,(function(e,n){i[n]=t(n,e)})),i}return e.factory(n+"Filter",r)}this.register=t,this.$get=["$injector",function(e){return function(t){return e.get(t+"Filter")}}],t("currency",vi),t("date",ki),t("filter",di),t("json",Ri),t("limitTo",Oi),t("lowercase",Pi),t("number",yi),t("orderBy",_i),t("uppercase",Di)}function di(){return function(e,t,n,r){if(!w(e)){if(null==e)return e;throw i("filter")("notarray","Expected array but received: {0}",e)}var o,a;switch(r=r||"$",mi(t)){case"function":o=t;break;case"boolean":case"null":case"number":case"string":a=!0;case"object":o=function(e,t,n,r){var i=M(e)&&n in e;!0===t?t=se:K(t)||(t=function(e,t){return!L(e)&&(null===e||null===t?e===t:!(M(t)||M(e)&&!j(e))&&(e=h(""+e),t=h(""+t),-1!==e.indexOf(t)))});return function(o){return i&&!M(o)?gi(o,e[n],t,n,!1):gi(o,e,t,n,r)}}(t,n,r,a);break;default:return e}return Array.prototype.filter.call(e,o)}}function gi(e,t,n,r,i,o){var a=mi(e),s=mi(t);if("string"===s&&"!"===t.charAt(0))return!gi(e,t.substring(1),n,r,i);if(q(e))return e.some((function(e){return gi(e,t,n,r,i)}));switch(a){case"object":var u;if(i){for(u in e)if(u.charAt&&"$"!==u.charAt(0)&&gi(e[u],t,n,r,!0))return!0;return!o&&gi(e,t,n,r,!1)}if("object"===s){for(u in t){var l=t[u];if(!K(l)&&!L(l)){var c=u===r;if(!gi(c?e:e[u],l,n,r,c,c))return!1}}return!0}return n(e,t);case"function":return!1;default:return n(e,t)}}function mi(e){return null===e?"null":typeof e}hi.$inject=["$document"],fi.$inject=["$provide"];function vi(e){var t=e.NUMBER_FORMATS;return function(e,n,r){L(n)&&(n=t.CURRENCY_SYM),L(r)&&(r=t.PATTERNS[1].maxFrac);var i=n?/\u00A4/g:/\s*\u00A4\s*/g;return null==e?e:bi(e,t.PATTERNS[1],t.GROUP_SEP,t.DECIMAL_SEP,r).replace(i,n)}}function yi(e){var t=e.NUMBER_FORMATS;return function(e,n){return null==e?e:bi(e,t.PATTERNS[0],t.GROUP_SEP,t.DECIMAL_SEP,n)}}function bi(e,t,n,r,i){if(!U(e)&&!H(e)||isNaN(e))return"";var o,a=!isFinite(e),s=!1,u=Math.abs(e)+"",l="";if(a)l="∞";else{(function(e,t,n,r){var i=e.d,o=i.length-e.i,a=(t=L(t)?Math.min(Math.max(n,o),r):+t)+e.i,s=i[a];if(a>0){i.splice(Math.max(e.i,a));for(var u=a;u<i.length;u++)i[u]=0}else{o=Math.max(0,o),e.i=1,i.length=Math.max(1,a=t+1),i[0]=0;for(var l=1;l<a;l++)i[l]=0}if(s>=5)if(a-1<0){for(var c=0;c>a;c--)i.unshift(0),e.i++;i.unshift(1),e.i++}else i[a-1]++;for(;o<Math.max(0,t);o++)i.push(0);var h=i.reduceRight((function(e,t,n,r){return t+=e,r[n]=t%10,Math.floor(t/10)}),0);h&&(i.unshift(h),e.i++)})(o=function(e){var t,n,r,i,o,a=0;for((n=e.indexOf("."))>-1&&(e=e.replace(".","")),(r=e.search(/e/i))>0?(n<0&&(n=r),n+=+e.slice(r+1),e=e.substring(0,r)):n<0&&(n=e.length),r=0;"0"===e.charAt(r);r++);if(r===(o=e.length))t=[0],n=1;else{for(o--;"0"===e.charAt(o);)o--;for(n-=r,t=[],i=0;r<=o;r++,i++)t[i]=+e.charAt(r)}return n>22&&(t=t.splice(0,21),a=n-1,n=1),{d:t,e:a,i:n}}(u),i,t.minFrac,t.maxFrac);var c=o.d,h=o.i,p=o.e,f=[];for(s=c.reduce((function(e,t){return e&&!t}),!0);h<0;)c.unshift(0),h++;h>0?f=c.splice(h,c.length):(f=c,c=[0]);var d=[];for(c.length>=t.lgSize&&d.unshift(c.splice(-t.lgSize,c.length).join(""));c.length>t.gSize;)d.unshift(c.splice(-t.gSize,c.length).join(""));c.length&&d.unshift(c.join("")),l=d.join(n),f.length&&(l+=r+f.join("")),p&&(l+="e+"+p)}return e<0&&!s?t.negPre+l+t.negSuf:t.posPre+l+t.posSuf}function $i(e,t,n,r){var i="";for((e<0||r&&e<=0)&&(r?e=1-e:(e=-e,i="-")),e=""+e;e.length<t;)e="0"+e;return n&&(e=e.substr(e.length-t)),i+e}function wi(e,t,n,r,i){return n=n||0,function(o){var a=o["get"+e]();return(n>0||a>-n)&&(a+=n),0===a&&-12===n&&(a=12),$i(a,t,r,i)}}function xi(e,t,n){return function(r,i){var o=r["get"+e]();return i[p((n?"STANDALONE":"")+(t?"SHORT":"")+e)][o]}}function Si(e){var t=new Date(e,0,1).getDay();return new Date(e,0,(t<=4?5:12)-t)}function Ei(e){return function(t){var n,r=Si(t.getFullYear()),i=+(n=t,new Date(n.getFullYear(),n.getMonth(),n.getDate()+(4-n.getDay())))-+r;return $i(1+Math.round(i/6048e5),e)}}function Ai(e,t){return e.getFullYear()<=0?t.ERAS[0]:t.ERAS[1]}vi.$inject=["$locale"],yi.$inject=["$locale"];var Ci={yyyy:wi("FullYear",4,0,!1,!0),yy:wi("FullYear",2,0,!0,!0),y:wi("FullYear",1,0,!1,!0),MMMM:xi("Month"),MMM:xi("Month",!0),MM:wi("Month",2,1),M:wi("Month",1,1),LLLL:xi("Month",!1,!0),dd:wi("Date",2),d:wi("Date",1),HH:wi("Hours",2),H:wi("Hours",1),hh:wi("Hours",2,-12),h:wi("Hours",1,-12),mm:wi("Minutes",2),m:wi("Minutes",1),ss:wi("Seconds",2),s:wi("Seconds",1),sss:wi("Milliseconds",3),EEEE:xi("Day"),EEE:xi("Day",!0),a:function(e,t){return e.getHours()<12?t.AMPMS[0]:t.AMPMS[1]},Z:function(e,t,n){var r=-1*n,i=r>=0?"+":"";return i+=$i(Math[r>0?"floor":"ceil"](r/60),2)+$i(Math.abs(r%60),2)},ww:Ei(2),w:Ei(1),G:Ai,GG:Ai,GGG:Ai,GGGG:function(e,t){return e.getFullYear()<=0?t.ERANAMES[0]:t.ERANAMES[1]}},Ti=/((?:[^yMLdHhmsaZEwG']+)|(?:'(?:[^']|'')*')|(?:E+|y+|M+|L+|d+|H+|h+|m+|s+|a|Z|G+|w+))([\s\S]*)/,Fi=/^-?\d+$/;function ki(e){var t=/^(\d{4})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/;return function(n,r,i){var o,a,s="",u=[];if(r=r||"mediumDate",r=e.DATETIME_FORMATS[r]||r,U(n)&&(n=Fi.test(n)?R(n):function(e){var n;if(n=e.match(t)){var r=new Date(0),i=0,o=0,a=n[8]?r.setUTCFullYear:r.setFullYear,s=n[8]?r.setUTCHours:r.setHours;n[9]&&(i=R(n[9]+n[10]),o=R(n[9]+n[11])),a.call(r,R(n[1]),R(n[2])-1,R(n[3]));var u=R(n[4]||0)-i,l=R(n[5]||0)-o,c=R(n[6]||0),h=Math.round(1e3*parseFloat("0."+(n[7]||0)));return s.call(r,u,l,c,h),r}return e}(n)),H(n)&&(n=new Date(n)),!V(n)||!isFinite(n.getTime()))return n;for(;r;)(a=Ti.exec(r))?r=(u=ce(u,a,1)).pop():(u.push(r),r=null);var l=n.getTimezoneOffset();return i&&(l=ve(i,l),n=be(n,i,!0)),x(u,(function(t){s+=(o=Ci[t])?o(n,e.DATETIME_FORMATS,l):"''"===t?"'":t.replace(/(^'|'$)/g,"").replace(/''/g,"'")})),s}}function Ri(){return function(e,t){return L(t)&&(t=2),de(e,t)}}ki.$inject=["$locale"];var Pi=_(h),Di=_(p);function Oi(){return function(e,t,n){return t=Math.abs(Number(t))===1/0?Number(t):R(t),P(t)?e:(H(e)&&(e=e.toString()),w(e)?(n=(n=!n||isNaN(n)?0:R(n))<0?Math.max(0,e.length+n):n,t>=0?Ii(e,n,n+t):0===n?Ii(e,t,e.length):Ii(e,Math.max(0,n+t),n)):e)}}function Ii(e,t,n){return U(e)?e.slice(t,n):f.call(e,t,n)}function _i(e){return function(r,o,a,s){if(null==r)return r;if(!w(r))throw i("orderBy")("notarray","Expected array but received: {0}",r);q(o)||(o=[o]),0===o.length&&(o=["+"]);var u=o.map((function(t){var n=1,r=I;if(K(t))r=t;else if(U(t)&&("+"!==t.charAt(0)&&"-"!==t.charAt(0)||(n="-"===t.charAt(0)?-1:1,t=t.substring(1)),""!==t&&(r=e(t)).constant)){var i=r();r=function(e){return e[i]}}return{get:r,descending:n}})),l=a?-1:1,c=K(s)?s:n,h=Array.prototype.map.call(r,(function(e,n){return{value:e,tieBreaker:{value:n,type:"number",index:n},predicateValues:u.map((function(r){return function(e,n){var r=typeof e;null===e?r="null":"object"===r&&(e=function(e){if(K(e.valueOf)&&t(e=e.valueOf()))return e;if(j(e)&&t(e=e.toString()))return e;return e}(e));return{value:e,type:r,index:n}}(r.get(e),n)}))}}));return h.sort((function(e,t){for(var r=0,i=u.length;r<i;r++){var o=c(e.predicateValues[r],t.predicateValues[r]);if(o)return o*u[r].descending*l}return(c(e.tieBreaker,t.tieBreaker)||n(e.tieBreaker,t.tieBreaker))*l})),r=h.map((function(e){return e.value}))};function t(e){switch(typeof e){case"number":case"boolean":case"string":return!0;default:return!1}}function n(e,t){var n=0,r=e.type,i=t.type;if(r===i){var o=e.value,a=t.value;"string"===r?(o=o.toLowerCase(),a=a.toLowerCase()):"object"===r&&(M(o)&&(o=e.index),M(a)&&(a=t.index)),o!==a&&(n=o<a?-1:1)}else n="undefined"===r?1:"undefined"===i?-1:"null"===r?1:"null"===i||r<i?-1:1;return n}}function ji(e){return K(e)&&(e={link:e}),e.restrict=e.restrict||"AC",_(e)}_i.$inject=["$parse"];var Li=_({restrict:"E",compile:function(e,t){if(!t.href&&!t.xlinkHref)return function(e,t){if("a"===t[0].nodeName.toLowerCase()){var n="[object SVGAnimatedString]"===m.call(t.prop("href"))?"xlink:href":"href";t.on("click",(function(e){t.attr(n)||e.preventDefault()}))}}}}),Ni={};x(Pt,(function(e,t){if("multiple"!==e){var n=bn("ng-"+t),r=i;"checked"===e&&(r=function(e,t,r){r.ngModel!==r[n]&&i(e,0,r)}),Ni[n]=function(){return{restrict:"A",priority:100,link:r}}}function i(e,r,i){e.$watch(i[n],(function(e){i.$set(t,!!e)}))}})),x(Ot,(function(e,t){Ni[t]=function(){return{priority:100,link:function(e,n,r){if("ngPattern"===t&&"/"===r.ngPattern.charAt(0)){var i=r.ngPattern.match(l);if(i)return void r.$set("ngPattern",new RegExp(i[1],i[2]))}e.$watch(r[t],(function(e){r.$set(t,e)}))}}}})),x(["src","srcset","href"],(function(e){var t=bn("ng-"+e);Ni[t]=["$sce",function(n){return{priority:99,link:function(r,i,a){var s=e,u=e;"href"===e&&"[object SVGAnimatedString]"===m.call(i.prop("href"))&&(u="xlinkHref",a.$attr[u]="xlink:href",s=null),a.$set(t,n.getTrustedMediaUrl(a[t])),a.$observe(t,(function(t){t?(a.$set(u,t),o&&s&&i.prop(s,a[u])):"href"===e&&a.$set(u,null)}))}}}]}));var Mi={$addControl:O,$getControls:_([]),$$renameControl:function(e,t){e.$name=t},$removeControl:O,$setValidity:O,$setDirty:O,$setPristine:O,$setSubmitted:O,$$setSubmitted:O};function Bi(e,t,n,r,i){this.$$controls=[],this.$error={},this.$$success={},this.$pending=void 0,this.$name=i(t.name||t.ngForm||"")(n),this.$dirty=!1,this.$pristine=!0,this.$valid=!0,this.$invalid=!1,this.$submitted=!1,this.$$parentForm=Mi,this.$$element=e,this.$$animate=r,qi(this)}Bi.$inject=["$element","$attrs","$scope","$animate","$interpolate"],Bi.prototype={$rollbackViewValue:function(){x(this.$$controls,(function(e){e.$rollbackViewValue()}))},$commitViewValue:function(){x(this.$$controls,(function(e){e.$commitViewValue()}))},$addControl:function(e){Le(e.$name,"input"),this.$$controls.push(e),e.$name&&(this[e.$name]=e),e.$$parentForm=this},$getControls:function(){return He(this.$$controls)},$$renameControl:function(e,t){var n=e.$name;this[n]===e&&delete this[n],this[t]=e,e.$name=t},$removeControl:function(e){e.$name&&this[e.$name]===e&&delete this[e.$name],x(this.$pending,(function(t,n){this.$setValidity(n,null,e)}),this),x(this.$error,(function(t,n){this.$setValidity(n,null,e)}),this),x(this.$$success,(function(t,n){this.$setValidity(n,null,e)}),this),ie(this.$$controls,e),e.$$parentForm=Mi},$setDirty:function(){this.$$animate.removeClass(this.$$element,Bo),this.$$animate.addClass(this.$$element,Uo),this.$dirty=!0,this.$pristine=!1,this.$$parentForm.$setDirty()},$setPristine:function(){this.$$animate.setClass(this.$$element,Bo,Uo+" ng-submitted"),this.$dirty=!1,this.$pristine=!0,this.$submitted=!1,x(this.$$controls,(function(e){e.$setPristine()}))},$setUntouched:function(){x(this.$$controls,(function(e){e.$setUntouched()}))},$setSubmitted:function(){for(var e=this;e.$$parentForm&&e.$$parentForm!==Mi;)e=e.$$parentForm;e.$$setSubmitted()},$$setSubmitted:function(){this.$$animate.addClass(this.$$element,"ng-submitted"),this.$submitted=!0,x(this.$$controls,(function(e){e.$$setSubmitted&&e.$$setSubmitted()}))}},zi({clazz:Bi,set:function(e,t,n){var r=e[t];r?-1===r.indexOf(n)&&r.push(n):e[t]=[n]},unset:function(e,t,n){var r=e[t];r&&(ie(r,n),0===r.length&&delete e[t])}});var Ui=function(e){return["$timeout","$parse",function(t,n){return{name:"form",restrict:e?"EAC":"E",require:["form","^^?form"],controller:Bi,compile:function(n,i){n.addClass(Bo).addClass(No);var o=i.name?"name":!(!e||!i.ngForm)&&"ngForm";return{pre:function(e,n,i,a){var s=a[0];if(!("action"in i)){var u=function(t){e.$apply((function(){s.$commitViewValue(),s.$setSubmitted()})),t.preventDefault()};n[0].addEventListener("submit",u),n.on("$destroy",(function(){t((function(){n[0].removeEventListener("submit",u)}),0,!1)}))}(a[1]||s.$$parentForm).$addControl(s);var l=o?r(s.$name):O;o&&(l(e,s),i.$observe(o,(function(t){s.$name!==t&&(l(e,void 0),s.$$parentForm.$$renameControl(s,t),(l=r(s.$name))(e,s))}))),n.on("$destroy",(function(){s.$$parentForm.$removeControl(s),l(e,void 0),F(s,Mi)}))}}}};function r(e){return""===e?n('this[""]').assign:n(e).assign||O}}]},Hi=Ui(),Vi=Ui(!0);function qi(e){e.$$classCache={},e.$$classCache[Mo]=!(e.$$classCache[No]=e.$$element.hasClass(No))}function zi(e){var t=e.clazz,n=e.set,r=e.unset;function i(e,t,n){n&&!e.$$classCache[t]?(e.$$animate.addClass(e.$$element,t),e.$$classCache[t]=!0):!n&&e.$$classCache[t]&&(e.$$animate.removeClass(e.$$element,t),e.$$classCache[t]=!1)}function o(e,t,n){t=t?"-"+De(t,"-"):"",i(e,No+t,!0===n),i(e,Mo+t,!1===n)}t.prototype.$setValidity=function(e,t,a){var s;L(t)?function(e,t,r,i){e[t]||(e[t]={});n(e[t],r,i)}(this,"$pending",e,a):function(e,t,n,i){e[t]&&r(e[t],n,i);Ki(e[t])&&(e[t]=void 0)}(this,"$pending",e,a),X(t)?t?(r(this.$error,e,a),n(this.$$success,e,a)):(n(this.$error,e,a),r(this.$$success,e,a)):(r(this.$error,e,a),r(this.$$success,e,a)),this.$pending?(i(this,"ng-pending",!0),this.$valid=this.$invalid=void 0,o(this,"",null)):(i(this,"ng-pending",!1),this.$valid=Ki(this.$error),this.$invalid=!this.$valid,o(this,"",this.$valid)),o(this,e,s=this.$pending&&this.$pending[e]?void 0:!this.$error[e]&&(!!this.$$success[e]||null)),this.$$parentForm.$setValidity(e,s,this)}}function Ki(e){if(e)for(var t in e)if(e.hasOwnProperty(t))return!1;return!0}var Gi=/^\d{4,}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d\.\d+(?:[+-][0-2]\d:[0-5]\d|Z)$/,Wi=/^[a-z][a-z\d.+-]*:\/*(?:[^:@]+(?::[^@]+)?@)?(?:[^\s:/?#]+|\[[a-f\d:]+])(?::\d+)?(?:\/[^?#]*)?(?:\?[^#]*)?(?:#.*)?$/i,Yi=/^(?=.{1,254}$)(?=.{1,64}@)[-!#$%&'*+/0-9=?A-Z^_`a-z{|}~]+(\.[-!#$%&'*+/0-9=?A-Z^_`a-z{|}~]+)*@[A-Za-z0-9]([A-Za-z0-9-]{0,61}[A-Za-z0-9])?(\.[A-Za-z0-9]([A-Za-z0-9-]{0,61}[A-Za-z0-9])?)*$/,Xi=/^\s*(-|\+)?(\d+|(\d*(\.\d*)))([eE][+-]?\d+)?\s*$/,Qi=/^(\d{4,})-(\d{2})-(\d{2})$/,Ji=/^(\d{4,})-(\d\d)-(\d\d)T(\d\d):(\d\d)(?::(\d\d)(\.\d{1,3})?)?$/,Zi=/^(\d{4,})-W(\d\d)$/,eo=/^(\d{4,})-(\d\d)$/,to=/^(\d\d):(\d\d)(?::(\d\d)(\.\d{1,3})?)?$/,no=Me();x("date,datetime-local,month,time,week".split(","),(function(e){no[e]=!0}));var ro={text:function(e,t,n,r,i,o){oo(e,t,n,r,i,o),io(r)},date:so("date",Qi,ao(Qi,["yyyy","MM","dd"]),"yyyy-MM-dd"),"datetime-local":so("datetimelocal",Ji,ao(Ji,["yyyy","MM","dd","HH","mm","ss","sss"]),"yyyy-MM-ddTHH:mm:ss.sss"),time:so("time",to,ao(to,["HH","mm","ss","sss"]),"HH:mm:ss.sss"),week:so("week",Zi,(function(e,t){if(V(e))return e;if(U(e)){Zi.lastIndex=0;var n=Zi.exec(e);if(n){var r=+n[1],i=+n[2],o=0,a=0,s=0,u=0,l=Si(r),c=7*(i-1);return t&&(o=t.getHours(),a=t.getMinutes(),s=t.getSeconds(),u=t.getMilliseconds()),new Date(r,0,l.getDate()+c,o,a,s,u)}}return NaN}),"yyyy-Www"),month:so("month",eo,ao(eo,["yyyy","MM"]),"yyyy-MM"),number:function(e,t,n,r,i,o,a,s){var u;if(uo(e,t,n,r,"number"),lo(r),oo(e,t,n,r,i,o),N(n.min)||n.ngMin){var l=n.min||s(n.ngMin)(e);u=co(l),r.$validators.min=function(e,t){return r.$isEmpty(t)||L(u)||t>=u},n.$observe("min",(function(e){e!==l&&(u=co(e),l=e,r.$validate())}))}if(N(n.max)||n.ngMax){var c=n.max||s(n.ngMax)(e),h=co(c);r.$validators.max=function(e,t){return r.$isEmpty(t)||L(h)||t<=h},n.$observe("max",(function(e){e!==c&&(h=co(e),c=e,r.$validate())}))}if(N(n.step)||n.ngStep){var p=n.step||s(n.ngStep)(e),f=co(p);r.$validators.step=function(e,t){return r.$isEmpty(t)||L(f)||fo(t,u||0,f)},n.$observe("step",(function(e){e!==p&&(f=co(e),p=e,r.$validate())}))}},url:function(e,t,n,r,i,o){oo(e,t,n,r,i,o),io(r),r.$validators.url=function(e,t){var n=e||t;return r.$isEmpty(n)||Wi.test(n)}},email:function(e,t,n,r,i,o){oo(e,t,n,r,i,o),io(r),r.$validators.email=function(e,t){var n=e||t;return r.$isEmpty(n)||Yi.test(n)}},radio:function(e,t,n,r){var i=!n.ngTrim||"false"!==Z(n.ngTrim);L(n.name)&&t.attr("name",A());t.on("change",(function(e){var o;t[0].checked&&(o=n.value,i&&(o=Z(o)),r.$setViewValue(o,e&&e.type))})),r.$render=function(){var e=n.value;i&&(e=Z(e)),t[0].checked=e===r.$viewValue},n.$observe("value",r.$render)},range:function(e,t,n,r,i,o){uo(e,t,n,r,"range"),lo(r),oo(e,t,n,r,i,o);var a=r.$$hasNativeValidators&&"range"===t[0].type,s=a?0:void 0,u=a?100:void 0,l=a?1:void 0,c=t[0].validity,h=N(n.min),p=N(n.max),f=N(n.step),d=r.$render;r.$render=a&&N(c.rangeUnderflow)&&N(c.rangeOverflow)?function(){d(),r.$setViewValue(t.val())}:d,h&&(s=co(n.min),r.$validators.min=a?function(){return!0}:function(e,t){return r.$isEmpty(t)||L(s)||t>=s},g("min",(function(e){if(s=co(e),P(r.$modelValue))return;if(a){var n=t.val();s>n&&(n=s,t.val(n)),r.$setViewValue(n)}else r.$validate()})));p&&(u=co(n.max),r.$validators.max=a?function(){return!0}:function(e,t){return r.$isEmpty(t)||L(u)||t<=u},g("max",(function(e){if(u=co(e),P(r.$modelValue))return;if(a){var n=t.val();u<n&&(t.val(u),n=u<s?s:u),r.$setViewValue(n)}else r.$validate()})));f&&(l=co(n.step),r.$validators.step=a?function(){return!c.stepMismatch}:function(e,t){return r.$isEmpty(t)||L(l)||fo(t,s||0,l)},g("step",(function(e){if(l=co(e),P(r.$modelValue))return;a?r.$viewValue!==t.val()&&r.$setViewValue(t.val()):r.$validate()})));function g(e,r){t.attr(e,n[e]);var i=n[e];n.$observe(e,(function(e){e!==i&&(i=e,r(e))}))}},checkbox:function(e,t,n,r,i,o,a,s){var u=go(s,e,"ngTrueValue",n.ngTrueValue,!0),l=go(s,e,"ngFalseValue",n.ngFalseValue,!1);t.on("change",(function(e){r.$setViewValue(t[0].checked,e&&e.type)})),r.$render=function(){t[0].checked=r.$viewValue},r.$isEmpty=function(e){return!1===e},r.$formatters.push((function(e){return se(e,u)})),r.$parsers.push((function(e){return e?u:l}))},hidden:O,button:O,submit:O,reset:O,file:O};function io(e){e.$formatters.push((function(t){return e.$isEmpty(t)?t:t.toString()}))}function oo(e,t,n,r,i,o){var a,s=h(t[0].type);if(!i.android){var u=!1;t.on("compositionstart",(function(){u=!0})),t.on("compositionupdate",(function(e){(L(e.data)||""===e.data)&&(u=!1)})),t.on("compositionend",(function(){u=!1,l()}))}var l=function(e){if(a&&(o.defer.cancel(a),a=null),!u){var i=t.val(),l=e&&e.type;"password"===s||n.ngTrim&&"false"===n.ngTrim||(i=Z(i)),(r.$viewValue!==i||""===i&&r.$$hasNativeValidators)&&r.$setViewValue(i,l)}};if(i.hasEvent("input"))t.on("input",l);else{var c=function(e,t,n){a||(a=o.defer((function(){a=null,t&&t.value===n||l(e)})))};t.on("keydown",(function(e){var t=e.keyCode;91===t||15<t&&t<19||37<=t&&t<=40||c(e,this,this.value)})),i.hasEvent("paste")&&t.on("paste cut drop",c)}t.on("change",l),no[s]&&r.$$hasNativeValidators&&s===n.type&&t.on("keydown wheel mousedown",(function(e){if(!a){var t=this.validity,n=t.badInput,r=t.typeMismatch;a=o.defer((function(){a=null,t.badInput===n&&t.typeMismatch===r||l(e)}))}})),r.$render=function(){var e=r.$isEmpty(r.$viewValue)?"":r.$viewValue;t.val()!==e&&t.val(e)}}function ao(e,t){return function(n,r){var i,o;if(V(n))return n;if(U(n)){if('"'===n.charAt(0)&&'"'===n.charAt(n.length-1)&&(n=n.substring(1,n.length-1)),Gi.test(n))return new Date(n);if(e.lastIndex=0,i=e.exec(n)){i.shift(),o=r?{yyyy:r.getFullYear(),MM:r.getMonth()+1,dd:r.getDate(),HH:r.getHours(),mm:r.getMinutes(),ss:r.getSeconds(),sss:r.getMilliseconds()/1e3}:{yyyy:1970,MM:1,dd:1,HH:0,mm:0,ss:0,sss:0},x(i,(function(e,n){n<t.length&&(o[t[n]]=+e)}));var a=new Date(o.yyyy,o.MM-1,o.dd,o.HH,o.mm,o.ss||0,1e3*o.sss||0);return o.yyyy<100&&a.setFullYear(o.yyyy),a}}return NaN}}function so(e,t,n,r){return function(i,o,a,s,u,l,c,h){uo(i,o,a,s,e),oo(0,o,a,s,u,l);var p,f,d="time"===e||"datetimelocal"===e;if(s.$parsers.push((function(n){return s.$isEmpty(n)?null:t.test(n)?w(n,p):void(s.$$parserName=e)})),s.$formatters.push((function(e){if(e&&!V(e))throw Ho("datefmt","Expected `{0}` to be a date",e);if(b(e)){p=e;var t=s.$options.getOption("timezone");return t&&(f=t,p=be(p,t,!0)),function(e,t){var n=r;d&&U(s.$options.getOption("timeSecondsFormat"))&&(n=r.replace("ss.sss",s.$options.getOption("timeSecondsFormat")).replace(/:$/,""));var i=c("date")(e,n,t);d&&s.$options.getOption("timeStripZeroSeconds")&&(i=i.replace(/(?::00)?(?:\.000)?$/,""));return i}(e,t)}return p=null,f=null,""})),N(a.min)||a.ngMin){var g=a.min||h(a.ngMin)(i),m=$(g);s.$validators.min=function(e){return!b(e)||L(m)||n(e)>=m},a.$observe("min",(function(e){e!==g&&(m=$(e),g=e,s.$validate())}))}if(N(a.max)||a.ngMax){var v=a.max||h(a.ngMax)(i),y=$(v);s.$validators.max=function(e){return!b(e)||L(y)||n(e)<=y},a.$observe("max",(function(e){e!==v&&(y=$(e),v=e,s.$validate())}))}function b(e){return e&&!(e.getTime&&e.getTime()!=e.getTime())}function $(e){return N(e)&&!V(e)?w(e)||void 0:e}function w(e,t){var r=s.$options.getOption("timezone");f&&f!==r&&(t=ye(t,ve(f)));var i=n(e,t);return!isNaN(i)&&r&&(i=be(i,r)),i}}}function uo(e,t,n,r,i){var o=t[0];(r.$$hasNativeValidators=M(o.validity))&&r.$parsers.push((function(e){var n=t.prop("validity")||{};if(!n.badInput&&!n.typeMismatch)return e;r.$$parserName=i}))}function lo(e){e.$parsers.push((function(t){return e.$isEmpty(t)?null:Xi.test(t)?parseFloat(t):void(e.$$parserName="number")})),e.$formatters.push((function(t){if(!e.$isEmpty(t)){if(!H(t))throw Ho("numfmt","Expected `{0}` to be a number",t);t=t.toString()}return t}))}function co(e){return N(e)&&!H(e)&&(e=parseFloat(e)),P(e)?void 0:e}function ho(e){return(0|e)===e}function po(e){var t=e.toString(),n=t.indexOf(".");if(-1===n){if(-1<e&&e<1){var r=/e-(\d+)$/.exec(t);if(r)return Number(r[1])}return 0}return t.length-n-1}function fo(e,t,n){var r=Number(e),i=!ho(r),o=!ho(t),a=!ho(n);if(i||o||a){var s=i?po(r):0,u=o?po(t):0,l=a?po(n):0,c=Math.max(s,u,l),h=Math.pow(10,c);r*=h,t*=h,n*=h,i&&(r=Math.round(r)),o&&(t=Math.round(t)),a&&(n=Math.round(n))}return(r-t)%n==0}function go(e,t,n,r,i){var o;if(N(r)){if(!(o=e(r)).constant)throw Ho("constexpr","Expected constant expression for `{0}`, but saw `{1}`.",n,r);return o(t)}return i}var mo=["$browser","$sniffer","$filter","$parse",function(e,t,n,r){return{restrict:"E",require:["?ngModel"],link:{pre:function(i,o,a,s){s[0]&&(ro[h(a.type)]||ro.text)(i,o,a,s[0],t,e,n,r)}}}}],vo=function(){var e={configurable:!0,enumerable:!1,get:function(){return this.getAttribute("value")||""},set:function(e){this.setAttribute("value",e)}};return{restrict:"E",priority:200,compile:function(t,n){if("hidden"===h(n.type))return{pre:function(t,n,r,i){var o=n[0];o.parentNode&&o.parentNode.insertBefore(o,o.nextSibling),Object.defineProperty&&Object.defineProperty(o,"value",e)}}}}},yo=/^(true|false|\d+)$/,bo=function(){function e(e,t,n){var r=N(n)?n:9===o?"":null;e.prop("value",r),t.$set("value",n)}return{restrict:"A",priority:100,compile:function(t,n){return yo.test(n.ngValue)?function(t,n,r){e(n,r,t.$eval(r.ngValue))}:function(t,n,r){t.$watch(r.ngValue,(function(t){e(n,r,t)}))}}}},$o=["$compile",function(e){return{restrict:"AC",compile:function(t){return e.$$addBindingClass(t),function(t,n,r){e.$$addBindingInfo(n,r.ngBind),n=n[0],t.$watch(r.ngBind,(function(e){n.textContent=Be(e)}))}}}}],wo=["$interpolate","$compile",function(e,t){return{compile:function(n){return t.$$addBindingClass(n),function(n,r,i){var o=e(r.attr(i.$attr.ngBindTemplate));t.$$addBindingInfo(r,o.expressions),r=r[0],i.$observe("ngBindTemplate",(function(e){r.textContent=L(e)?"":e}))}}}}],xo=["$sce","$parse","$compile",function(e,t,n){return{restrict:"A",compile:function(r,i){var o=t(i.ngBindHtml),a=t(i.ngBindHtml,(function(t){return e.valueOf(t)}));return n.$$addBindingClass(r),function(t,r,i){n.$$addBindingInfo(r,i.ngBindHtml),t.$watch(a,(function(){var n=o(t);r.html(e.getTrustedHtml(n)||"")}))}}}}],So=_({restrict:"A",require:"ngModel",link:function(e,t,n,r){r.$viewChangeListeners.push((function(){e.$eval(n.ngChange)}))}});function Eo(e,t){var n;return e="ngClass"+e,["$parse",function(a){return{restrict:"AC",link:function(s,u,l){var c,h=u.data("$classCounts"),p=!0;function f(e,t){var n=[];return x(e,(function(e){(t>0||h[e])&&(h[e]=(h[e]||0)+t,h[e]===+(t>0)&&n.push(e))})),n.join(" ")}h||(h=Me(),u.data("$classCounts",h)),"ngClass"!==e&&(n||(n=a("$index",(function(e){return 1&e}))),s.$watch(n,(function(e){e===t?(n=f(i(n=c),1),l.$addClass(n)):function(e){e=f(i(e),-1),l.$removeClass(e)}(c);var n;p=e}))),s.$watch(a(l[e],o),(function(e){p===t&&function(e,t){var n=i(e),o=i(t),a=r(n,o),s=r(o,n),u=f(a,-1),c=f(s,1);l.$addClass(c),l.$removeClass(u)}(c,e);c=e}))}}}];function r(e,t){if(!e||!e.length)return[];if(!t||!t.length)return e;var n=[];e:for(var r=0;r<e.length;r++){for(var i=e[r],o=0;o<t.length;o++)if(i===t[o])continue e;n.push(i)}return n}function i(e){return e&&e.split(" ")}function o(e){if(!e)return e;var t=e;return q(e)?t=e.map(o).join(" "):M(e)?t=Object.keys(e).filter((function(t){return e[t]})).join(" "):U(e)||(t=e+""),t}}var Ao=Eo("",!0),Co=Eo("Odd",0),To=Eo("Even",1),Fo=ji({compile:function(e,t){t.$set("ngCloak",void 0),e.removeClass("ng-cloak")}}),ko=[function(){return{restrict:"A",scope:!0,controller:"@",priority:500}}],Ro={},Po={blur:!0,focus:!0};function Do(e,t,n,r,i,o){return{restrict:"A",compile:function(a,s){var u=e(s[r]);return function(e,r){r.on(i,(function(r){var i=function(){u(e,{$event:r})};if(t.$$phase)if(o)e.$evalAsync(i);else try{i()}catch(e){n(e)}else e.$apply(i)}))}}}}x("click dblclick mousedown mouseup mouseover mouseout mousemove mouseenter mouseleave keydown keyup keypress submit focus blur copy cut paste".split(" "),(function(e){var t=bn("ng-"+e);Ro[t]=["$parse","$rootScope","$exceptionHandler",function(n,r,i){return Do(n,r,i,t,e,Po[e])}]}));var Oo=["$animate","$compile",function(e,t){return{multiElement:!0,transclude:"element",priority:600,terminal:!0,restrict:"A",$$tlb:!0,link:function(n,r,i,o,a){var s,u,l;n.$watch(i.ngIf,(function(n){n?u||a((function(n,o){u=o,n[n.length++]=t.$$createComment("end ngIf",i.ngIf),s={clone:n},e.enter(n,r.parent(),r)})):(l&&(l.remove(),l=null),u&&(u.$destroy(),u=null),s&&(l=Ne(s.clone),e.leave(l).done((function(e){!1!==e&&(l=null)})),s=null))}))}}}],Io=["$templateRequest","$anchorScroll","$animate",function(e,t,n){return{restrict:"ECA",priority:400,terminal:!0,transclude:"element",controller:b.noop,compile:function(r,i){var o=i.ngInclude||i.src,a=i.onload||"",s=i.autoscroll;return function(r,i,u,l,c){var h,p,f,d=0,g=function(){p&&(p.remove(),p=null),h&&(h.$destroy(),h=null),f&&(n.leave(f).done((function(e){!1!==e&&(p=null)})),p=f,f=null)};r.$watch(o,(function(o){var u=function(e){!1===e||!N(s)||s&&!r.$eval(s)||t()},p=++d;o?(e(o,!0).then((function(e){if(!r.$$destroyed&&p===d){var t=r.$new();l.template=e;var s=c(t,(function(e){g(),n.enter(e,null,i).done(u)}));f=s,(h=t).$emit("$includeContentLoaded",o),r.$eval(a)}}),(function(){r.$$destroyed||p===d&&(g(),r.$emit("$includeContentError",o))})),r.$emit("$includeContentRequested",o)):(g(),l.template=null)}))}}}}],_o=["$compile",function(t){return{restrict:"ECA",priority:-400,require:"ngInclude",link:function(n,r,i,o){if(m.call(r[0]).match(/SVG/))return r.empty(),void t(ct(o.template,e.document).childNodes)(n,(function(e){r.append(e)}),{futureParentElement:r});r.html(o.template),t(r.contents())(n)}}}],jo=ji({priority:450,compile:function(){return{pre:function(e,t,n){e.$eval(n.ngInit)}}}}),Lo=function(){return{restrict:"A",priority:100,require:"ngModel",link:function(e,t,n,r){var i=n.ngList||", ",o="false"!==n.ngTrim,a=o?Z(i):i;r.$parsers.push((function(e){if(!L(e)){var t=[];return e&&x(e.split(a),(function(e){e&&t.push(o?Z(e):e)})),t}})),r.$formatters.push((function(e){if(q(e))return e.join(i)})),r.$isEmpty=function(e){return!e||!e.length}}}},No="ng-valid",Mo="ng-invalid",Bo="ng-pristine",Uo="ng-dirty",Ho=i("ngModel");function Vo(e,t,n,r,i,o,a,s,u){var l;this.$viewValue=Number.NaN,this.$modelValue=Number.NaN,this.$$rawModelValue=void 0,this.$validators={},this.$asyncValidators={},this.$parsers=[],this.$formatters=[],this.$viewChangeListeners=[],this.$untouched=!0,this.$touched=!1,this.$pristine=!0,this.$dirty=!1,this.$valid=!0,this.$invalid=!1,this.$error={},this.$$success={},this.$pending=void 0,this.$name=u(n.name||"",!1)(e),this.$$parentForm=Mi,this.$options=qo,this.$$updateEvents="",this.$$updateEventHandler=this.$$updateEventHandler.bind(this),this.$$parsedNgModel=i(n.ngModel),this.$$parsedNgModelAssign=this.$$parsedNgModel.assign,this.$$ngModelGet=this.$$parsedNgModel,this.$$ngModelSet=this.$$parsedNgModelAssign,this.$$pendingDebounce=null,this.$$parserValid=void 0,this.$$parserName="parse",this.$$currentValidationRunId=0,this.$$scope=e,this.$$rootScope=e.$root,this.$$attr=n,this.$$element=r,this.$$animate=o,this.$$timeout=a,this.$$parse=i,this.$$q=s,this.$$exceptionHandler=t,qi(this),(l=this).$$scope.$watch((function(e){var t=l.$$ngModelGet(e);return t===l.$modelValue||l.$modelValue!=l.$modelValue&&t!=t||l.$$setModelValue(t),t}))}Vo.$inject=["$scope","$exceptionHandler","$attrs","$element","$parse","$animate","$timeout","$q","$interpolate"],Vo.prototype={$$initGetterSetters:function(){if(this.$options.getOption("getterSetter")){var e=this.$$parse(this.$$attr.ngModel+"()"),t=this.$$parse(this.$$attr.ngModel+"($$$p)");this.$$ngModelGet=function(t){var n=this.$$parsedNgModel(t);return K(n)&&(n=e(t)),n},this.$$ngModelSet=function(e,n){K(this.$$parsedNgModel(e))?t(e,{$$$p:n}):this.$$parsedNgModelAssign(e,n)}}else if(!this.$$parsedNgModel.assign)throw Ho("nonassign","Expression '{0}' is non-assignable. Element: {1}",this.$$attr.ngModel,$e(this.$$element))},$render:O,$isEmpty:function(e){return L(e)||""===e||null===e||e!=e},$$updateEmptyClasses:function(e){this.$isEmpty(e)?(this.$$animate.removeClass(this.$$element,"ng-not-empty"),this.$$animate.addClass(this.$$element,"ng-empty")):(this.$$animate.removeClass(this.$$element,"ng-empty"),this.$$animate.addClass(this.$$element,"ng-not-empty"))},$setPristine:function(){this.$dirty=!1,this.$pristine=!0,this.$$animate.removeClass(this.$$element,Uo),this.$$animate.addClass(this.$$element,Bo)},$setDirty:function(){this.$dirty=!0,this.$pristine=!1,this.$$animate.removeClass(this.$$element,Bo),this.$$animate.addClass(this.$$element,Uo),this.$$parentForm.$setDirty()},$setUntouched:function(){this.$touched=!1,this.$untouched=!0,this.$$animate.setClass(this.$$element,"ng-untouched","ng-touched")},$setTouched:function(){this.$touched=!0,this.$untouched=!1,this.$$animate.setClass(this.$$element,"ng-touched","ng-untouched")},$rollbackViewValue:function(){this.$$timeout.cancel(this.$$pendingDebounce),this.$viewValue=this.$$lastCommittedViewValue,this.$render()},$validate:function(){if(!P(this.$modelValue)){var e=this.$$lastCommittedViewValue,t=this.$$rawModelValue,n=this.$valid,r=this.$modelValue,i=this.$options.getOption("allowInvalid"),o=this;this.$$runValidators(t,e,(function(e){i||n===e||(o.$modelValue=e?t:void 0,o.$modelValue!==r&&o.$$writeModelToScope())}))}},$$runValidators:function(e,t,n){this.$$currentValidationRunId++;var r,i,o=this.$$currentValidationRunId,a=this;(function(){var e=a.$$parserName;if(!L(a.$$parserValid))return a.$$parserValid||(x(a.$validators,(function(e,t){s(t,null)})),x(a.$asyncValidators,(function(e,t){s(t,null)}))),s(e,a.$$parserValid),a.$$parserValid;s(e,null);return!0})()?!function(){var n=!0;if(x(a.$validators,(function(r,i){var o=Boolean(r(e,t));n=n&&o,s(i,o)})),!n)return x(a.$asyncValidators,(function(e,t){s(t,null)})),!1;return!0}()?u(!1):(r=[],i=!0,x(a.$asyncValidators,(function(n,o){var a=n(e,t);if(!Q(a))throw Ho("nopromise","Expected asynchronous validator to return a promise but got '{0}' instead.",a);s(o,void 0),r.push(a.then((function(){s(o,!0)}),(function(){i=!1,s(o,!1)})))})),r.length?a.$$q.all(r).then((function(){u(i)}),O):u(!0)):u(!1);function s(e,t){o===a.$$currentValidationRunId&&a.$setValidity(e,t)}function u(e){o===a.$$currentValidationRunId&&n(e)}},$commitViewValue:function(){var e=this.$viewValue;this.$$timeout.cancel(this.$$pendingDebounce),(this.$$lastCommittedViewValue!==e||""===e&&this.$$hasNativeValidators)&&(this.$$updateEmptyClasses(e),this.$$lastCommittedViewValue=e,this.$pristine&&this.$setDirty(),this.$$parseAndValidate())},$$parseAndValidate:function(){var e=this.$$lastCommittedViewValue,t=this;if(this.$$parserValid=!L(e)||void 0,this.$setValidity(this.$$parserName,null),this.$$parserName="parse",this.$$parserValid)for(var n=0;n<this.$parsers.length;n++)if(L(e=this.$parsers[n](e))){this.$$parserValid=!1;break}P(this.$modelValue)&&(this.$modelValue=this.$$ngModelGet(this.$$scope));var r=this.$modelValue,i=this.$options.getOption("allowInvalid");function o(){t.$modelValue!==r&&t.$$writeModelToScope()}this.$$rawModelValue=e,i&&(this.$modelValue=e,o()),this.$$runValidators(e,this.$$lastCommittedViewValue,(function(n){i||(t.$modelValue=n?e:void 0,o())}))},$$writeModelToScope:function(){this.$$ngModelSet(this.$$scope,this.$modelValue),x(this.$viewChangeListeners,(function(e){try{e()}catch(e){this.$$exceptionHandler(e)}}),this)},$setViewValue:function(e,t){this.$viewValue=e,this.$options.getOption("updateOnDefault")&&this.$$debounceViewValueCommit(t)},$$debounceViewValueCommit:function(e){var t=this.$options.getOption("debounce");H(t[e])?t=t[e]:H(t.default)&&-1===this.$options.getOption("updateOn").indexOf(e)?t=t.default:H(t["*"])&&(t=t["*"]),this.$$timeout.cancel(this.$$pendingDebounce);var n=this;t>0?this.$$pendingDebounce=this.$$timeout((function(){n.$commitViewValue()}),t):this.$$rootScope.$$phase?this.$commitViewValue():this.$$scope.$apply((function(){n.$commitViewValue()}))},$overrideModelOptions:function(e){this.$options=this.$options.createChild(e),this.$$setUpdateOnEvents()},$processModelValue:function(){var e=this.$$format();this.$viewValue!==e&&(this.$$updateEmptyClasses(e),this.$viewValue=this.$$lastCommittedViewValue=e,this.$render(),this.$$runValidators(this.$modelValue,this.$viewValue,O))},$$format:function(){for(var e=this.$formatters,t=e.length,n=this.$modelValue;t--;)n=e[t](n);return n},$$setModelValue:function(e){this.$modelValue=this.$$rawModelValue=e,this.$$parserValid=void 0,this.$processModelValue()},$$setUpdateOnEvents:function(){this.$$updateEvents&&this.$$element.off(this.$$updateEvents,this.$$updateEventHandler),this.$$updateEvents=this.$options.getOption("updateOn"),this.$$updateEvents&&this.$$element.on(this.$$updateEvents,this.$$updateEventHandler)},$$updateEventHandler:function(e){this.$$debounceViewValueCommit(e&&e.type)}},zi({clazz:Vo,set:function(e,t){e[t]=!0},unset:function(e,t){delete e[t]}});var qo,zo=["$rootScope",function(e){return{restrict:"A",require:["ngModel","^?form","^?ngModelOptions"],controller:Vo,priority:1,compile:function(t){return t.addClass(Bo).addClass("ng-untouched").addClass(No),{pre:function(e,t,n,r){var i=r[0],o=r[1]||i.$$parentForm,a=r[2];a&&(i.$options=a.$options),i.$$initGetterSetters(),o.$addControl(i),n.$observe("name",(function(e){i.$name!==e&&i.$$parentForm.$$renameControl(i,e)})),e.$on("$destroy",(function(){i.$$parentForm.$removeControl(i)}))},post:function(t,n,r,i){var o=i[0];function a(){o.$setTouched()}o.$$setUpdateOnEvents(),n.on("blur",(function(){o.$touched||(e.$$phase?t.$evalAsync(a):t.$apply(a))}))}}}}}],Ko=/(\s+|^)default(\s+|$)/;function Go(e){this.$$options=e}Go.prototype={getOption:function(e){return this.$$options[e]},createChild:function(e){var t=!1;return x(e=F({},e),(function(n,r){"$inherit"===n?"*"===r?t=!0:(e[r]=this.$$options[r],"updateOn"===r&&(e.updateOnDefault=this.$$options.updateOnDefault)):"updateOn"===r&&(e.updateOnDefault=!1,e[r]=Z(n.replace(Ko,(function(){return e.updateOnDefault=!0," "}))))}),this),t&&(delete e["*"],Yo(e,this.$$options)),Yo(e,qo.$$options),new Go(e)}},qo=new Go({updateOn:"",updateOnDefault:!0,debounce:0,getterSetter:!1,allowInvalid:!1,timezone:null});var Wo=function(){function e(e,t){this.$$attrs=e,this.$$scope=t}return e.$inject=["$attrs","$scope"],e.prototype={$onInit:function(){var e=this.parentCtrl?this.parentCtrl.$options:qo,t=this.$$scope.$eval(this.$$attrs.ngModelOptions);this.$options=e.createChild(t)}},{restrict:"A",priority:10,require:{parentCtrl:"?^^ngModelOptions"},bindToController:!0,controller:e}};function Yo(e,t){x(t,(function(t,n){N(e[n])||(e[n]=t)}))}var Xo=ji({terminal:!0,priority:1e3}),Qo=i("ngOptions"),Jo=/^\s*([\s\S]+?)(?:\s+as\s+([\s\S]+?))?(?:\s+group\s+by\s+([\s\S]+?))?(?:\s+disable\s+when\s+([\s\S]+?))?\s+for\s+(?:([$\w][$\w]*)|(?:\(\s*([$\w][$\w]*)\s*,\s*([$\w][$\w]*)\s*\)))\s+in\s+([\s\S]+?)(?:\s+track\s+by\s+([\s\S]+?))?$/,Zo=["$compile","$document","$parse",function(t,n,r){var i=e.document.createElement("option"),o=e.document.createElement("optgroup");return{restrict:"A",terminal:!0,require:["select","ngModel"],link:{pre:function(e,t,n,r){r[0].registerOption=O},post:function(e,s,u,l){for(var c=l[0],h=l[1],p=u.multiple,f=0,d=s.children(),g=d.length;f<g;f++)if(""===d[f].value){c.hasEmptyOption=!0,c.emptyOption=d.eq(f);break}s.empty();var m,v=!!c.emptyOption;a(i.cloneNode(!1)).val("?");var y=function(e,t,n){var i=e.match(Jo);if(!i)throw Qo("iexp","Expected expression in form of '_select_ (as _label_)? for (_key_,)?_value_ in _collection_' but got '{0}'. Element: {1}",e,$e(t));var o=i[5]||i[7],a=i[6],s=/ as /.test(i[0])&&i[1],u=i[9],l=r(i[2]?i[1]:o),c=s&&r(s)||l,h=u&&r(u),p=u?function(e,t){return h(n,t)}:function(e){return Nt(e)},f=function(e,t){return p(e,b(e,t))},d=r(i[2]||i[1]),g=r(i[3]||""),m=r(i[4]||""),v=r(i[8]),y={},b=a?function(e,t){return y[a]=t,y[o]=e,y}:function(e){return y[o]=e,y};function $(e,t,n,r,i){this.selectValue=e,this.viewValue=t,this.label=n,this.group=r,this.disabled=i}function x(e){var t;if(!a&&w(e))t=e;else for(var n in t=[],e)e.hasOwnProperty(n)&&"$"!==n.charAt(0)&&t.push(n);return t}return{trackBy:u,getTrackByValue:f,getWatchables:r(v,(function(e){for(var t=[],r=x(e=e||[]),o=r.length,a=0;a<o;a++){var s=e===r?a:r[a],u=e[s],l=b(u,s),c=p(u,l);if(t.push(c),i[2]||i[1]){var h=d(n,l);t.push(h)}if(i[4]){var f=m(n,l);t.push(f)}}return t})),getOptions:function(){for(var e=[],t={},r=v(n)||[],i=x(r),o=i.length,a=0;a<o;a++){var s=r===i?a:i[a],l=r[s],h=b(l,s),y=c(n,h),w=p(y,h),S=new $(w,y,d(n,h),g(n,h),m(n,h));e.push(S),t[w]=S}return{items:e,selectValueMap:t,getOptionFromViewValue:function(e){return t[f(e)]},getViewValueFromOption:function(e){return u?oe(e.viewValue):e.viewValue}}}}}(u.ngOptions,s,e),b=n[0].createDocumentFragment();function $(e,t){var n=i.cloneNode(!1);t.appendChild(n),function(e,t){e.element=t,t.disabled=e.disabled,e.label!==t.label&&(t.label=e.label,t.textContent=e.label);t.value=e.selectValue}(e,n)}function S(e){var t=m.getOptionFromViewValue(e),n=t&&t.element;return n&&!n.selected&&(n.selected=!0),t}c.generateUnknownOptionValue=function(e){return"?"},p?(c.writeValue=function(e){if(m){var t=e&&e.map(S)||[];m.items.forEach((function(e){e.element.selected&&!re(t,e)&&(e.element.selected=!1)}))}},c.readValue=function(){var e=s.val()||[],t=[];return x(e,(function(e){var n=m.selectValueMap[e];n&&!n.disabled&&t.push(m.getViewValueFromOption(n))})),t},y.trackBy&&e.$watchCollection((function(){if(q(h.$viewValue))return h.$viewValue.map((function(e){return y.getTrackByValue(e)}))}),(function(){h.$render()}))):(c.writeValue=function(e){if(m){var t=s[0].options[s[0].selectedIndex],n=m.getOptionFromViewValue(e);t&&t.removeAttribute("selected"),n?(s[0].value!==n.selectValue&&(c.removeUnknownOption(),s[0].value=n.selectValue,n.element.selected=!0),n.element.setAttribute("selected","selected")):c.selectUnknownOrEmptyOption(e)}},c.readValue=function(){var e=m.selectValueMap[s.val()];return e&&!e.disabled?(c.unselectEmptyOption(),c.removeUnknownOption(),m.getViewValueFromOption(e)):null},y.trackBy&&e.$watch((function(){return y.getTrackByValue(h.$viewValue)}),(function(){h.$render()}))),v&&(t(c.emptyOption)(e),s.prepend(c.emptyOption),8===c.emptyOption[0].nodeType?(c.hasEmptyOption=!1,c.registerOption=function(e,t){""===t.val()&&(c.hasEmptyOption=!0,c.emptyOption=t,c.emptyOption.removeClass("ng-scope"),h.$render(),t.on("$destroy",(function(){var e=c.$isEmptyOptionSelected();c.hasEmptyOption=!1,c.emptyOption=void 0,e&&h.$render()})))}):c.emptyOption.removeClass("ng-scope")),e.$watchCollection(y.getWatchables,(function(){var e=m&&c.readValue();if(m)for(var t=m.items.length-1;t>=0;t--){var n=m.items[t];N(n.group)?Ft(n.element.parentNode):Ft(n.element)}m=y.getOptions();var r={};if(m.items.forEach((function(e){var t;N(e.group)?((t=r[e.group])||(t=o.cloneNode(!1),b.appendChild(t),t.label=null===e.group?"null":e.group,r[e.group]=t),$(e,t)):$(e,b)})),s[0].appendChild(b),h.$render(),!h.$isEmpty(e)){var i=c.readValue();(y.trackBy||p?se(e,i):e===i)||(h.$setViewValue(i),h.$render())}}))}}}}],ea=["$locale","$interpolate","$log",function(e,t,n){var r=/{}/g,i=/^when(Minus)?(.+)$/;return{link:function(o,a,s){var u,l=s.count,c=s.$attr.when&&a.attr(s.$attr.when),p=s.offset||0,f=o.$eval(c)||{},d={},g=t.startSymbol(),m=t.endSymbol(),v=g+l+"-"+p+m,y=b.noop;function $(e){a.text(e||"")}x(s,(function(e,t){var n=i.exec(t);if(n){var r=(n[1]?"-":"")+h(n[2]);f[r]=a.attr(s.$attr[t])}})),x(f,(function(e,n){d[n]=t(e.replace(r,v))})),o.$watch(l,(function(t){var r=parseFloat(t),i=P(r);if(i||r in f||(r=e.pluralCat(r-p)),!(r===u||i&&P(u))){y();var a=d[r];L(a)?(null!=t&&n.debug("ngPluralize: no rule defined for '"+r+"' in "+c),y=O,$()):y=o.$watch(a,$),u=r}}))}}}],ta=i("ngRef"),na=["$parse",function(e){return{priority:-1,restrict:"A",compile:function(t,n){var r=bn(ne(t)),i=e(n.ngRef),o=i.assign||function(){throw ta("nonassign",'Expression in ngRef="{0}" is non-assignable!',n.ngRef)};return function(e,t,a){var s;if(a.hasOwnProperty("ngRefRead")){if("$element"===a.ngRefRead)s=t;else if(!(s=t.data("$"+a.ngRefRead+"Controller")))throw ta("noctrl",'The controller for ngRefRead="{0}" could not be found on ngRef="{1}"',a.ngRefRead,n.ngRef)}else s=t.data("$"+r+"Controller");o(e,s=s||t),t.on("$destroy",(function(){i(e)===s&&o(e,null)}))}}}}],ra=["$parse","$animate","$compile",function(e,t,n){var r=i("ngRepeat"),o=function(e,t,n,r,i,o,a){e[n]=r,i&&(e[i]=o),e.$index=t,e.$first=0===t,e.$last=t===a-1,e.$middle=!(e.$first||e.$last),e.$odd=!(e.$even=0==(1&t))},a=function(e){return e.clone[0]},s=function(e){return e.clone[e.clone.length-1]},u=function(e,t,n){return Nt(n)},l=function(e,t){return t};return{restrict:"A",multiElement:!0,transclude:"element",priority:1e3,terminal:!0,$$tlb:!0,compile:function(i,h){var p=h.ngRepeat,f=n.$$createComment("end ngRepeat",p),d=p.match(/^\s*([\s\S]+?)\s+in\s+([\s\S]+?)(?:\s+as\s+([\s\S]+?))?(?:\s+track\s+by\s+([\s\S]+?))?\s*$/);if(!d)throw r("iexp","Expected expression in form of '_item_ in _collection_[ track by _id_]' but got '{0}'.",p);var g=d[1],m=d[2],v=d[3],y=d[4];if(!(d=g.match(/^(?:(\s*[$\w]+)|\(\s*([$\w]+)\s*,\s*([$\w]+)\s*\))$/)))throw r("iidexp","'_item_' in '_item_ in _collection_' should be an identifier or '(_key_, _value_)' expression, but got '{0}'.",g);var b,$=d[3]||d[1],S=d[2];if(v&&(!/^[$a-zA-Z_][$a-zA-Z0-9_]*$/.test(v)||/^(null|undefined|this|\$index|\$first|\$middle|\$last|\$even|\$odd|\$parent|\$root|\$id)$/.test(v)))throw r("badident","alias '{0}' is invalid --- must be a valid JS identifier which is not a reserved name.",v);if(y){var E={$id:Nt},A=e(y);b=function(e,t,n,r){return S&&(E[S]=t),E[$]=n,E.$index=r,A(e,E)}}return function(e,n,i,h,d){var g=Me();e.$watchCollection(m,(function(i){var h,m,y,A,C,T,F,k,R,P,D,O,I=n[0],_=Me();if(v&&(e[v]=i),w(i))R=i,k=b||u;else for(var j in k=b||l,R=[],i)c.call(i,j)&&"$"!==j.charAt(0)&&R.push(j);for(A=R.length,D=new Array(A),h=0;h<A;h++)if(C=i===R?h:R[h],T=i[C],F=k(e,C,T,h),g[F])P=g[F],delete g[F],_[F]=P,D[h]=P;else{if(_[F])throw x(D,(function(e){e&&e.scope&&(g[e.id]=e)})),r("dupes","Duplicates in a repeater are not allowed. Use 'track by' expression to specify unique keys. Repeater: {0}, Duplicate key: {1}, Duplicate value: {2}",p,F,T);D[h]={id:F,scope:void 0,clone:void 0},_[F]=!0}for(var L in E&&(E[$]=void 0),g){if(O=Ne((P=g[L]).clone),t.leave(O),O[0].parentNode)for(h=0,m=O.length;h<m;h++)O[h].$$NG_REMOVED=!0;P.scope.$destroy()}for(h=0;h<A;h++)if(C=i===R?h:R[h],T=i[C],(P=D[h]).scope){y=I;do{y=y.nextSibling}while(y&&y.$$NG_REMOVED);a(P)!==y&&t.move(Ne(P.clone),null,I),I=s(P),o(P.scope,h,$,T,S,C,A)}else d((function(e,n){P.scope=n;var r=f.cloneNode(!1);e[e.length++]=r,t.enter(e,null,I),I=r,P.clone=e,_[P.id]=P,o(P.scope,h,$,T,S,C,A)}));g=_}))}}}}],ia=["$animate",function(e){return{restrict:"A",multiElement:!0,link:function(t,n,r){t.$watch(r.ngShow,(function(t){e[t?"removeClass":"addClass"](n,"ng-hide",{tempClasses:"ng-hide-animate"})}))}}}],oa=["$animate",function(e){return{restrict:"A",multiElement:!0,link:function(t,n,r){t.$watch(r.ngHide,(function(t){e[t?"addClass":"removeClass"](n,"ng-hide",{tempClasses:"ng-hide-animate"})}))}}}],aa=ji((function(e,t,n){e.$watchCollection(n.ngStyle,(function(e,n){n&&e!==n&&x(n,(function(e,n){t.css(n,"")})),e&&t.css(e)}))})),sa=["$animate","$compile",function(e,t){return{require:"ngSwitch",controller:["$scope",function(){this.cases={}}],link:function(n,r,i,o){var a=i.ngSwitch||i.on,s=[],u=[],l=[],c=[],h=function(e,t){return function(n){!1!==n&&e.splice(t,1)}};n.$watch(a,(function(n){for(var r,i;l.length;)e.cancel(l.pop());for(r=0,i=c.length;r<i;++r){var a=Ne(u[r].clone);c[r].$destroy(),(l[r]=e.leave(a)).done(h(l,r))}u.length=0,c.length=0,(s=o.cases["!"+n]||o.cases["?"])&&x(s,(function(n){n.transclude((function(r,i){c.push(i);var o=n.element;r[r.length++]=t.$$createComment("end ngSwitchWhen");var a={clone:r};u.push(a),e.enter(r,o.parent(),o)}))}))}))}}}],ua=ji({transclude:"element",priority:1200,require:"^ngSwitch",multiElement:!0,link:function(e,t,n,r,i){x(n.ngSwitchWhen.split(n.ngSwitchWhenSeparator).sort().filter((function(e,t,n){return n[t-1]!==e})),(function(e){r.cases["!"+e]=r.cases["!"+e]||[],r.cases["!"+e].push({transclude:i,element:t})}))}}),la=ji({transclude:"element",priority:1200,require:"^ngSwitch",multiElement:!0,link:function(e,t,n,r,i){r.cases["?"]=r.cases["?"]||[],r.cases["?"].push({transclude:i,element:t})}}),ca=i("ngTransclude"),ha=["$compile",function(e){return{restrict:"EAC",compile:function(t){var n=e(t.contents());return t.empty(),function(e,t,r,i,o){if(!o)throw ca("orphan","Illegal use of ngTransclude directive in the template! No parent directive that requires a transclusion found. Element: {0}",$e(t));r.ngTransclude===r.$attr.ngTransclude&&(r.ngTransclude="");var a=r.ngTransclude||r.ngTranscludeSlot;function s(){n(e,(function(e){t.append(e)}))}o((function(e,n){e.length&&function(e){for(var t=0,n=e.length;t<n;t++){var r=e[t];if(r.nodeType!==Ue||r.nodeValue.trim())return!0}}(e)?t.append(e):(s(),n.$destroy())}),null,a),a&&!o.isSlotFilled(a)&&s()}}}}],pa=["$templateCache",function(e){return{restrict:"E",terminal:!0,compile:function(t,n){if("text/ng-template"===n.type){var r=n.id,i=t[0].text;e.put(r,i)}}}}],fa={$setViewValue:O,$render:O};function da(e,t){e.prop("selected",t),e.attr("selected",t)}var ga=["$element","$scope",function(t,n){var r=this,i=new Ut;r.selectValueMap={},r.ngModelCtrl=fa,r.multiple=!1,r.unknownOption=a(e.document.createElement("option")),r.hasEmptyOption=!1,r.emptyOption=void 0,r.renderUnknownOption=function(e){var n=r.generateUnknownOptionValue(e);r.unknownOption.val(n),t.prepend(r.unknownOption),da(r.unknownOption,!0),t.val(n)},r.updateUnknownOption=function(e){var n=r.generateUnknownOptionValue(e);r.unknownOption.val(n),da(r.unknownOption,!0),t.val(n)},r.generateUnknownOptionValue=function(e){return"? "+Nt(e)+" ?"},r.removeUnknownOption=function(){r.unknownOption.parent()&&r.unknownOption.remove()},r.selectEmptyOption=function(){r.emptyOption&&(t.val(""),da(r.emptyOption,!0))},r.unselectEmptyOption=function(){r.hasEmptyOption&&da(r.emptyOption,!1)},n.$on("$destroy",(function(){r.renderUnknownOption=O})),r.readValue=function(){var e=t.val(),n=e in r.selectValueMap?r.selectValueMap[e]:e;return r.hasOption(n)?n:null},r.writeValue=function(e){var n=t[0].options[t[0].selectedIndex];if(n&&da(a(n),!1),r.hasOption(e)){r.removeUnknownOption();var i=Nt(e);t.val(i in r.selectValueMap?i:e);var o=t[0].options[t[0].selectedIndex];da(a(o),!0)}else r.selectUnknownOrEmptyOption(e)},r.addOption=function(e,t){if(8!==t[0].nodeType){Le(e,'"option value"'),""===e&&(r.hasEmptyOption=!0,r.emptyOption=t);var n=i.get(e)||0;i.set(e,n+1),s()}},r.removeOption=function(e){var t=i.get(e);t&&(1===t?(i.delete(e),""===e&&(r.hasEmptyOption=!1,r.emptyOption=void 0)):i.set(e,t-1))},r.hasOption=function(e){return!!i.get(e)},r.$hasEmptyOption=function(){return r.hasEmptyOption},r.$isUnknownOptionSelected=function(){return t[0].options[0]===r.unknownOption[0]},r.$isEmptyOptionSelected=function(){return r.hasEmptyOption&&t[0].options[t[0].selectedIndex]===r.emptyOption[0]},r.selectUnknownOrEmptyOption=function(e){null==e&&r.emptyOption?(r.removeUnknownOption(),r.selectEmptyOption()):r.unknownOption.parent().length?r.updateUnknownOption(e):r.renderUnknownOption(e)};var o=!1;function s(){o||(o=!0,n.$$postDigest((function(){o=!1,r.ngModelCtrl.$render()})))}var u=!1;function l(e){u||(u=!0,n.$$postDigest((function(){n.$$destroyed||(u=!1,r.ngModelCtrl.$setViewValue(r.readValue()),e&&r.ngModelCtrl.$render())})))}r.registerOption=function(e,t,n,i,o){var a,u;n.$attr.ngValue?n.$observe("value",(function(e){var n,i=t.prop("selected");N(u)&&(r.removeOption(a),delete r.selectValueMap[u],n=!0),u=Nt(e),a=e,r.selectValueMap[u]=e,r.addOption(e,t),t.attr("value",u),n&&i&&l()})):i?n.$observe("value",(function(e){var n;r.readValue();var i=t.prop("selected");N(a)&&(r.removeOption(a),n=!0),a=e,r.addOption(e,t),n&&i&&l()})):o?e.$watch(o,(function(e,i){n.$set("value",e);var o=t.prop("selected");i!==e&&r.removeOption(i),r.addOption(e,t),i&&o&&l()})):r.addOption(n.value,t);n.$observe("disabled",(function(e){("true"===e||e&&t.prop("selected"))&&(r.multiple?l(!0):(r.ngModelCtrl.$setViewValue(null),r.ngModelCtrl.$render()))})),t.on("$destroy",(function(){var e=r.readValue(),t=n.value;r.removeOption(t),s(),(r.multiple&&e&&-1!==e.indexOf(t)||e===t)&&l(!0)}))}}],ma=function(){return{restrict:"E",require:["select","?ngModel"],controller:ga,priority:1,link:{pre:function(e,t,n,r){var i=r[0],o=r[1];if(!o)return void(i.registerOption=O);if(i.ngModelCtrl=o,t.on("change",(function(){i.removeUnknownOption(),e.$apply((function(){o.$setViewValue(i.readValue())}))})),n.multiple){i.multiple=!0,i.readValue=function(){var e=[];return x(t.find("option"),(function(t){if(t.selected&&!t.disabled){var n=t.value;e.push(n in i.selectValueMap?i.selectValueMap[n]:n)}})),e},i.writeValue=function(e){x(t.find("option"),(function(t){var n=!!e&&(re(e,t.value)||re(e,i.selectValueMap[t.value]));n!==t.selected&&da(a(t),n)}))};var s,u=NaN;e.$watch((function(){u!==o.$viewValue||se(s,o.$viewValue)||(s=He(o.$viewValue),o.$render()),u=o.$viewValue})),o.$isEmpty=function(e){return!e||0===e.length}}},post:function(e,t,n,r){var i=r[1];if(!i)return;var o=r[0];i.$render=function(){o.writeValue(i.$viewValue)}}}}},va=["$interpolate",function(e){return{restrict:"E",priority:100,compile:function(t,n){var r,i;return N(n.ngValue)||(N(n.value)?r=e(n.value,!0):(i=e(t.text(),!0))||n.$set("value",t.text())),function(e,t,n){var o=t.parent(),a=o.data("$selectController")||o.parent().data("$selectController");a&&a.registerOption(e,t,n,r,i)}}}}],ya=["$parse",function(e){return{restrict:"A",require:"?ngModel",link:function(t,n,r,i){if(i){var o=r.hasOwnProperty("required")||e(r.ngRequired)(t);r.ngRequired||(r.required=!0),i.$validators.required=function(e,t){return!o||!i.$isEmpty(t)},r.$observe("required",(function(e){o!==e&&(o=e,i.$validate())}))}}}}],ba=["$parse",function(e){return{restrict:"A",require:"?ngModel",compile:function(t,n){var r,i;return n.ngPattern&&(r=n.ngPattern,i="/"===n.ngPattern.charAt(0)&&l.test(n.ngPattern)?function(){return n.ngPattern}:e(n.ngPattern)),function(e,t,n,o){if(o){var a=n.pattern;n.ngPattern?a=i(e):r=n.pattern;var s=xa(a,r,t);n.$observe("pattern",(function(e){var n=s;s=xa(e,r,t),(n&&n.toString())!==(s&&s.toString())&&o.$validate()})),o.$validators.pattern=function(e,t){return o.$isEmpty(t)||L(s)||s.test(t)}}}}}}],$a=["$parse",function(e){return{restrict:"A",require:"?ngModel",link:function(t,n,r,i){if(i){var o=r.maxlength||e(r.ngMaxlength)(t),a=Sa(o);r.$observe("maxlength",(function(e){o!==e&&(a=Sa(e),o=e,i.$validate())})),i.$validators.maxlength=function(e,t){return a<0||i.$isEmpty(t)||t.length<=a}}}}}],wa=["$parse",function(e){return{restrict:"A",require:"?ngModel",link:function(t,n,r,i){if(i){var o=r.minlength||e(r.ngMinlength)(t),a=Sa(o)||-1;r.$observe("minlength",(function(e){o!==e&&(a=Sa(e)||-1,o=e,i.$validate())})),i.$validators.minlength=function(e,t){return i.$isEmpty(t)||t.length>=a}}}}}];function xa(e,t,n){if(e){if(U(e)&&(e=new RegExp("^"+e+"$")),!e.test)throw i("ngPattern")("noregexp","Expected {0} to be a RegExp but was {1}. Element: {2}",t,e,$e(n));return e}}function Sa(e){var t=R(e);return P(t)?-1:t}e.angular.bootstrap?e.console&&console.log("WARNING: Tried to load AngularJS more than once."):(!function(){var t;if(!Oe){var n=le();(s=L(n)?e.jQuery:n?e[n]:void 0)&&s.fn.on?(a=s,F(s.fn,{scope:Rt.scope,isolateScope:Rt.isolateScope,controller:Rt.controller,injector:Rt.injector,inheritedData:Rt.inheritedData})):a=pt,t=a.cleanData,a.cleanData=function(e){for(var n,r,i=0;null!=(r=e[i]);i++)(n=(a._data(r)||{}).events)&&n.$destroy&&a(r).triggerHandler("$destroy");t(e)},b.element=a,Oe=!0}}(),function(t){F(t,{errorHandlingConfig:n,bootstrap:Fe,copy:oe,extend:F,merge:k,equals:se,element:a,forEach:x,injector:Qt,noop:O,bind:pe,toJson:de,fromJson:ge,identity:I,isUndefined:L,isDefined:N,isString:U,isFunction:K,isObject:M,isNumber:H,isElement:te,isArray:q,version:qe,isDate:V,callbacks:{$$counter:0},getTestability:Re,reloadWithDebugInfo:ke,UNSAFE_restoreLegacyJqLiteXHTMLReplacement:Ie,$$minErr:i,$$csp:ue,$$encodeUriSegment:Se,$$encodeUriQuery:Ee,$$lowercase:h,$$stringify:Be,$$uppercase:p}),(u=function(e){var t=i("$injector"),n=i("ng");function r(e,t,n){return e[t]||(e[t]=n())}var o=r(e,"angular",Object);return o.$$minErr=o.$$minErr||i,r(o,"module",(function(){var e={};return function(i,o,a){var s={};return function(e,t){if("hasOwnProperty"===e)throw n("badname","hasOwnProperty is not a valid {0} name",t)}(i,"module"),o&&e.hasOwnProperty(i)&&(e[i]=null),r(e,i,(function(){if(!o)throw t("nomod","Module '{0}' is not available! You either misspelled the module name or forgot to load it. If registering a module ensure that you specify the dependencies as the second argument.",i);var e=[],r=[],u=[],l=h("$injector","invoke","push",r),c={_invokeQueue:e,_configBlocks:r,_runBlocks:u,info:function(e){if(N(e)){if(!M(e))throw n("aobj","Argument '{0}' must be an object","value");return s=e,this}return s},requires:o,name:i,provider:p("$provide","provider"),factory:p("$provide","factory"),service:p("$provide","service"),value:h("$provide","value"),constant:h("$provide","constant","unshift"),decorator:p("$provide","decorator",r),animation:p("$animateProvider","register"),filter:p("$filterProvider","register"),controller:p("$controllerProvider","register"),directive:p("$compileProvider","directive"),component:p("$compileProvider","component"),config:l,run:function(e){return u.push(e),this}};return a&&l(a),c;function h(t,n,r,i){return i||(i=e),function(){return i[r||"push"]([t,n,arguments]),c}}function p(t,n,r){return r||(r=e),function(e,o){return o&&K(o)&&(o.$$moduleName=i),r.push([t,n,arguments]),c}}}))}}))}(e))("ng",["ngLocale"],["$provide",function(e){e.provider({$$sanitizeUri:Hr}),e.provider("$compile",gn).directive({a:Li,input:mo,textarea:mo,form:Hi,script:pa,select:ma,option:va,ngBind:$o,ngBindHtml:xo,ngBindTemplate:wo,ngClass:Ao,ngClassEven:To,ngClassOdd:Co,ngCloak:Fo,ngController:ko,ngForm:Vi,ngHide:oa,ngIf:Oo,ngInclude:Io,ngInit:jo,ngNonBindable:Xo,ngPluralize:ea,ngRef:na,ngRepeat:ra,ngShow:ia,ngStyle:aa,ngSwitch:sa,ngSwitchWhen:ua,ngSwitchDefault:la,ngOptions:Zo,ngTransclude:ha,ngModel:zo,ngList:Lo,ngChange:So,pattern:ba,ngPattern:ba,required:ya,ngRequired:ya,minlength:wa,ngMinlength:wa,maxlength:$a,ngMaxlength:$a,ngValue:bo,ngModelOptions:Wo}).directive({ngInclude:_o,input:vo}).directive(Ni).directive(Ro),e.provider({$anchorScroll:Jt,$animate:on,$animateCss:un,$$animateJs:nn,$$animateQueue:rn,$$AnimateRunner:sn,$$animateAsyncRun:an,$browser:cn,$cacheFactory:hn,$controller:An,$document:Cn,$$isDocumentHidden:Tn,$exceptionHandler:Fn,$filter:fi,$$forceReflow:kn,$interpolate:Gn,$interval:Yn,$$intervalFactory:Xn,$http:Vn,$httpParamSerializer:jn,$httpParamSerializerJQLike:Ln,$httpBackend:zn,$xhrFactory:qn,$jsonpCallbacks:Qn,$location:dr,$log:gr,$parse:Or,$rootScope:Ur,$q:Ir,$$q:_r,$sce:Yr,$sceDelegate:Wr,$sniffer:Xr,$$taskTrackerFactory:Qr,$templateCache:pn,$templateRequest:ei,$$testability:ti,$timeout:ri,$window:ci,$$rAF:Br,$$jqLite:Lt,$$Map:Ht,$$cookieReader:pi})}]).info({angularVersion:"1.8.3"})}(b),b.module("ngLocale",[],["$provide",function(e){var t="one",n="other";e.value("$locale",{DATETIME_FORMATS:{AMPMS:["AM","PM"],DAY:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],ERANAMES:["Before Christ","Anno Domini"],ERAS:["BC","AD"],FIRSTDAYOFWEEK:6,MONTH:["January","February","March","April","May","June","July","August","September","October","November","December"],SHORTDAY:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],SHORTMONTH:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],STANDALONEMONTH:["January","February","March","April","May","June","July","August","September","October","November","December"],WEEKENDRANGE:[5,6],fullDate:"EEEE, MMMM d, y",longDate:"MMMM d, y",medium:"MMM d, y h:mm:ss a",mediumDate:"MMM d, y",mediumTime:"h:mm:ss a",short:"M/d/yy h:mm a",shortDate:"M/d/yy",shortTime:"h:mm a"},NUMBER_FORMATS:{CURRENCY_SYM:"$",DECIMAL_SEP:".",GROUP_SEP:",",PATTERNS:[{gSize:3,lgSize:3,maxFrac:3,minFrac:0,minInt:1,negPre:"-",negSuf:"",posPre:"",posSuf:""},{gSize:3,lgSize:3,maxFrac:2,minFrac:2,minInt:1,negPre:"-¤",negSuf:"",posPre:"¤",posSuf:""}]},id:"en-us",localeID:"en_US",pluralCat:function(e,r){var i=0|e,o=function(e,t){var n=t;void 0===n&&(n=Math.min(function(e){var t=(e+="").indexOf(".");return-1==t?0:e.length-t-1}(e),3));var r=Math.pow(10,n);return{v:n,f:(e*r|0)%r}}(e,r);return 1==i&&0==o.v?t:n}})}]),a((function(){Te(e.document,Fe)})))}(window),!window.angular.$$csp().noInlineStyle&&window.angular.element(document.head).prepend(window.angular.element("<style>").text('@charset "UTF-8";[ng\\:cloak],[ng-cloak],[data-ng-cloak],[x-ng-cloak],.ng-cloak,.x-ng-cloak,.ng-hide:not(.ng-hide-animate){display:none !important;}ng\\:form{display:block;}.ng-animate-shim{visibility:hidden;}.ng-anchor{position:absolute;}'))},525:function(e,t,n){
46
+ /**
47
+ * oclazyload - Load modules on demand (lazy load) with angularJS
48
+ * @version v1.0.10
49
+ * @link https://github.com/ocombe/ocLazyLoad
50
+ * @license MIT
51
+ * @author Olivier Combe <olivier.combe@gmail.com>
52
+ */
53
+ !function(n,r){"use strict";var i=["ng","oc.lazyLoad"],o={},a=[],s=[],u=[],l=[],c=n.noop,h={},p=[];n.module("oc.lazyLoad",["ng"]).provider("$ocLazyLoad",["$controllerProvider","$provide","$compileProvider","$filterProvider","$injector","$animateProvider",function(e,t,f,m,v,y){var b={},$={$controllerProvider:e,$compileProvider:f,$filterProvider:m,$provide:t,$injector:v,$animateProvider:y},w=!1,x=!1,S=[],E={};S.push=function(e){-1===this.indexOf(e)&&Array.prototype.push.apply(this,arguments)},this.config=function(e){n.isDefined(e.modules)&&(n.isArray(e.modules)?n.forEach(e.modules,(function(e){b[e.name]=e})):b[e.modules.name]=e.modules),n.isDefined(e.debug)&&(w=e.debug),n.isDefined(e.events)&&(x=e.events)},this._init=function(e){if(0===s.length){var t=[e],o=["ng:app","ng-app","x-ng-app","data-ng-app"],a=/\sng[:\-]app(:\s*([\w\d_]+);?)?\s/,u=function(e){return e&&t.push(e)};n.forEach(o,(function(t){o[t]=!0,u(document.getElementById(t)),t=t.replace(":","\\:"),void 0!==e[0]&&e[0].querySelectorAll&&(n.forEach(e[0].querySelectorAll("."+t),u),n.forEach(e[0].querySelectorAll("."+t+"\\:"),u),n.forEach(e[0].querySelectorAll("["+t+"]"),u))})),n.forEach(t,(function(t){if(0===s.length){var r=" "+e.className+" ",i=a.exec(r);i?s.push((i[2]||"").replace(/\s+/g,",")):n.forEach(t.attributes,(function(e){0===s.length&&o[e.name]&&s.push(e.value)}))}}))}0!==s.length||(r.jasmine||r.mocha)&&n.isDefined(n.mock)||console.error("No module found during bootstrap, unable to init ocLazyLoad. You should always use the ng-app directive or angular.boostrap when you use ocLazyLoad.");n.forEach(s,(function(e){!function e(t){if(-1===i.indexOf(t)){i.push(t);var r=n.module(t);k(null,r._invokeQueue,t),k(null,r._configBlocks,t),n.forEach(r.requires,e)}}(e)})),s=[],l.pop()};var A=function(e){try{return JSON.stringify(e)}catch(r){var t=[];return JSON.stringify(e,(function(e,r){if(n.isObject(r)&&null!==r){if(-1!==t.indexOf(r))return;t.push(r)}return r}))}},C=function(e){var t,n,r=0;if(0==e.length)return r;for(t=0,n=e.length;t<n;t++)r=(r<<5)-r+e.charCodeAt(t),r|=0;return r};function T(e,t,r){if(t){var o,a,s,l=[];for(o=t.length-1;o>=0;o--)if(a=t[o],n.isString(a)||(a=R(a)),a&&-1===p.indexOf(a)&&(!b[a]||-1!==u.indexOf(a))){var f=-1===i.indexOf(a);if(s=g(a),f&&(i.push(a),T(e,s.requires,r)),s._runBlocks.length>0)for(h[a]=[];s._runBlocks.length>0;)h[a].push(s._runBlocks.shift());n.isDefined(h[a])&&(f||r.rerun)&&(l=l.concat(h[a])),k(e,s._invokeQueue,a,r.reconfig),k(e,s._configBlocks,a,r.reconfig),c(f?"ocLazyLoad.moduleLoaded":"ocLazyLoad.moduleReloaded",a),t.pop(),p.push(a)}var d=e.getInstanceInjector();n.forEach(l,(function(e){d.invoke(e)}))}}function F(e,t){var r=e[2][0],i=e[1],a=!1;n.isUndefined(o[t])&&(o[t]={}),n.isUndefined(o[t][i])&&(o[t][i]={});var s=function(e,r){o[t][i].hasOwnProperty(e)||(o[t][i][e]=[]),function(e,t){var r,i=!0;t.length&&(r=u(e),n.forEach(t,(function(e){i=i&&u(e)!==r})));return i}(r,o[t][i][e])&&(a=!0,o[t][i][e].push(r),c("ocLazyLoad.componentLoaded",[t,i,e]))};function u(e){return n.isArray(e)?C(e.toString()):n.isObject(e)?C(A(e)):n.isDefined(e)&&null!==e?C(e.toString()):e}if(n.isString(r))s(r,e[2][1]);else{if(!n.isObject(r))return!1;n.forEach(r,(function(e,t){n.isString(e)?s(e,r[1]):s(t,e)}))}return a}function k(e,t,r,i){var o,s,u,l;if(t)for(o=0,s=t.length;o<s;o++)if(u=t[o],n.isArray(u)){if(null!==e){if(!e.hasOwnProperty(u[0]))throw new Error("unsupported provider "+u[0]);l=e[u[0]]}var c=F(u,r);if("invoke"!==u[1])c&&n.isDefined(l)&&l[u[1]].apply(l,u[2]);else{var h=function(e){var t=a.indexOf(r+"-"+e);(-1===t||i)&&(-1===t&&a.push(r+"-"+e),n.isDefined(l)&&l[u[1]].apply(l,u[2]))};if(n.isFunction(u[2][0]))h(u[2][0]);else if(n.isArray(u[2][0]))for(var p=0,f=u[2][0].length;p<f;p++)n.isFunction(u[2][0][p])&&h(u[2][0][p])}}}function R(e){var t=null;return n.isString(e)?t=e:n.isObject(e)&&e.hasOwnProperty("name")&&n.isString(e.name)&&(t=e.name),t}function P(e){if(!n.isString(e))return!1;try{return g(e)}catch(e){if(/No module/.test(e)||e.message.indexOf("$injector:nomod")>-1)return!1}}this.$get=["$log","$rootElement","$rootScope","$cacheFactory","$q",function(e,t,r,a,u){var h,f=a("ocLazyLoad");function m(t){var n=u.defer();return e.error(t.message),n.reject(t),n.promise}return w||((e={}).error=n.noop,e.warn=n.noop,e.info=n.noop),$.getInstanceInjector=function(){return h||(h=t.data("$injector")||n.injector())},{_broadcast:c=function(t,n){x&&r.$broadcast(t,n),w&&e.info(t,n)},_$log:e,_getFilesCache:function(){return f},toggleWatch:function(e){e?l.push(!0):l.pop()},getModuleConfig:function(e){if(!n.isString(e))throw new Error("You need to give the name of the module to get");return b[e]?n.copy(b[e]):null},setModuleConfig:function(e){if(!n.isObject(e))throw new Error("You need to give the module config object to set");return b[e.name]=e,e},getModules:function(){return i},isLoaded:function(e){var t=function(e){var t=i.indexOf(e)>-1;return t||(t=!!P(e)),t};if(n.isString(e)&&(e=[e]),n.isArray(e)){var r,o;for(r=0,o=e.length;r<o;r++)if(!t(e[r]))return!1;return!0}throw new Error("You need to define the module(s) name(s)")},_getModuleName:R,_getModule:function(e){try{return g(e)}catch(t){throw(/No module/.test(t)||t.message.indexOf("$injector:nomod")>-1)&&(t.message='The module "'+A(e)+'" that you are trying to load does not exist. '+t.message),t}},moduleExists:P,_loadDependencies:function(e,t){var r,i,o,a=[],s=this;if(null===(e=s._getModuleName(e)))return u.when();try{r=s._getModule(e)}catch(e){return m(e)}return i=s.getRequires(r),n.forEach(i,(function(r){if(n.isString(r)){var i=s.getModuleConfig(r);if(null===i)return void S.push(r);r=i,i.name=void 0}if(s.moduleExists(r.name))return 0!==(o=r.files.filter((function(e){return s.getModuleConfig(r.name).files.indexOf(e)<0}))).length&&s._$log.warn('Module "',e,'" attempted to redefine configuration for dependency. "',r.name,'"\n Additional Files Loaded:',o),n.isDefined(s.filesLoader)?void a.push(s.filesLoader(r,t).then((function(){return s._loadDependencies(r)}))):m(new Error("Error: New dependencies need to be loaded from external files ("+r.files+"), but no loader has been defined."));if(n.isArray(r)){var u=[];n.forEach(r,(function(e){var t=s.getModuleConfig(e);null===t?u.push(e):t.files&&(u=u.concat(t.files))})),u.length>0&&(r={files:u})}else n.isObject(r)&&r.hasOwnProperty("name")&&r.name&&(s.setModuleConfig(r),S.push(r.name));if(n.isDefined(r.files)&&0!==r.files.length){if(!n.isDefined(s.filesLoader))return m(new Error('Error: the module "'+r.name+'" is defined in external files ('+r.files+"), but no loader has been defined."));a.push(s.filesLoader(r,t).then((function(){return s._loadDependencies(r)})))}})),u.all(a)},inject:function(e){var t=arguments.length<=1||void 0===arguments[1]?{}:arguments[1],r=!(arguments.length<=2||void 0===arguments[2])&&arguments[2],i=this,o=u.defer();if(n.isDefined(e)&&null!==e){if(n.isArray(e)){var a=[];return n.forEach(e,(function(e){a.push(i.inject(e,t,r))})),u.all(a)}i._addToLoadList(i._getModuleName(e),!0,r)}if(s.length>0){var l=s.slice(),c=function e(n){S.push(n),E[n]=o.promise,i._loadDependencies(n,t).then((function(){try{p=[],T($,S,t)}catch(e){return i._$log.error(e.message),void o.reject(e)}s.length>0?e(s.shift()):o.resolve(l)}),(function(e){o.reject(e)}))};c(s.shift())}else{if(t&&t.name&&E[t.name])return E[t.name];o.resolve()}return o.promise},getRequires:function(e){var t=[];return n.forEach(e.requires,(function(e){-1===i.indexOf(e)&&t.push(e)})),t},_invokeQueue:k,_registerInvokeList:F,_register:T,_addToLoadList:d,_unregister:function(e){n.isDefined(e)&&n.isArray(e)&&n.forEach(e,(function(e){o[e]=void 0}))}}}],this._init(n.element(r.document))}]);var f=n.bootstrap;n.bootstrap=function(e,t,r){return i=["ng","oc.lazyLoad"],o={},a=[],s=[],u=[],l=[],c=n.noop,h={},p=[],n.forEach(t.slice(),(function(e){d(e,!0,!0)})),f(e,t,r)};var d=function(e,t,r){(l.length>0||t)&&n.isString(e)&&-1===s.indexOf(e)&&(s.push(e),r&&u.push(e))},g=n.module;n.module=function(e,t,n){return d(e,!1,!0),g(e,t,n)},e.exports===t&&(e.exports="oc.lazyLoad")}(angular,window),function(e){"use strict";e.module("oc.lazyLoad").directive("ocLazyLoad",["$ocLazyLoad","$compile","$animate","$parse","$timeout",function(t,n,r,i,o){return{restrict:"A",terminal:!0,priority:1e3,compile:function(o,a){var s=o[0].innerHTML;return o.html(""),function(o,a,u){var l=i(u.ocLazyLoad);o.$watch((function(){return l(o)||u.ocLazyLoad}),(function(i){e.isDefined(i)&&t.load(i).then((function(){r.enter(s,a),n(a.contents())(o)}))}),!0)}}}}])}(angular),function(e){"use strict";e.module("oc.lazyLoad").config(["$provide",function(t){t.decorator("$ocLazyLoad",["$delegate","$q","$window","$interval",function(t,n,r,i){var o=!1,a=r.document.getElementsByTagName("head")[0]||r.document.getElementsByTagName("body")[0];return t.buildElement=function(s,u,l){var c,h,p=n.defer(),f=t._getFilesCache(),d=function(e){var t=(new Date).getTime();return e.indexOf("?")>=0?"&"===e.substring(0,e.length-1)?e+"_dc="+t:e+"&_dc="+t:e+"?_dc="+t};switch(e.isUndefined(f.get(u))&&f.put(u,p.promise),s){case"css":(c=r.document.createElement("link")).type="text/css",c.rel="stylesheet",c.href=!1===l.cache?d(u):u;break;case"js":(c=r.document.createElement("script")).src=!1===l.cache?d(u):u;break;default:f.remove(u),p.reject(new Error('Requested type "'+s+'" is not known. Could not inject "'+u+'"'))}c.onload=c.onreadystatechange=function(e){c.readyState&&!/^c|loade/.test(c.readyState)||h||(c.onload=c.onreadystatechange=null,h=1,t._broadcast("ocLazyLoad.fileLoaded",u),p.resolve(c))},c.onerror=function(){f.remove(u),p.reject(new Error("Unable to load "+u))},c.async=l.serie?0:1;var g=a.lastChild;if(l.insertBefore){var m=e.element(e.isDefined(window.jQuery)?l.insertBefore:document.querySelector(l.insertBefore));m&&m.length>0&&(g=m[0])}if(g.parentNode.insertBefore(c,g),"css"==s){var v=r.navigator.userAgent.toLowerCase();if(v.indexOf("phantomjs/1.9")>-1)o=!0;else if(/iP(hone|od|ad)/.test(r.navigator.platform)){var y=r.navigator.appVersion.match(/OS (\d+)_(\d+)_?(\d+)?/),b=parseFloat([parseInt(y[1],10),parseInt(y[2],10),parseInt(y[3]||0,10)].join("."));o=b<6}else if(v.indexOf("android")>-1){var $=parseFloat(v.slice(v.indexOf("android")+8));o=$<4.4}else if(v.indexOf("safari")>-1){var w=v.match(/version\/([\.\d]+)/i);o=w&&w[1]&&parseFloat(w[1])<6}if(o)var x=1e3,S=i((function(){try{c.sheet.cssRules,i.cancel(S),c.onload()}catch(e){--x<=0&&c.onerror()}}),20)}return p.promise},t}])}])}(angular),function(e){"use strict";e.module("oc.lazyLoad").config(["$provide",function(t){t.decorator("$ocLazyLoad",["$delegate","$q",function(t,n){return t.filesLoader=function(r){var i=arguments.length<=1||void 0===arguments[1]?{}:arguments[1],o=[],a=[],s=[],u=[],l=null,c=t._getFilesCache();t.toggleWatch(!0),e.extend(i,r);var h=function(n){var r,h=null;if(e.isObject(n)&&(h=n.type,n=n.path),l=c.get(n),e.isUndefined(l)||!1===i.cache){if(null!==(r=/^(css|less|html|htm|js)?(?=!)/.exec(n))&&(h=r[1],n=n.substr(r[1].length+1,n.length)),!h)if(null!==(r=/[.](css|less|html|htm|js)?((\?|#).*)?$/.exec(n)))h=r[1];else{if(t.jsLoader.hasOwnProperty("ocLazyLoadLoader")||!t.jsLoader.hasOwnProperty("requirejs"))return void t._$log.error("File type could not be determined. "+n);h="js"}"css"!==h&&"less"!==h||-1!==o.indexOf(n)?"html"!==h&&"htm"!==h||-1!==a.indexOf(n)?"js"===h||-1===s.indexOf(n)?s.push(n):t._$log.error("File type is not valid. "+n):a.push(n):o.push(n)}else l&&u.push(l)};if(i.serie?h(i.files.shift()):e.forEach(i.files,(function(e){h(e)})),o.length>0){var p=n.defer();t.cssLoader(o,(function(n){e.isDefined(n)&&t.cssLoader.hasOwnProperty("ocLazyLoadLoader")?(t._$log.error(n),p.reject(n)):p.resolve()}),i),u.push(p.promise)}if(a.length>0){var f=n.defer();t.templatesLoader(a,(function(n){e.isDefined(n)&&t.templatesLoader.hasOwnProperty("ocLazyLoadLoader")?(t._$log.error(n),f.reject(n)):f.resolve()}),i),u.push(f.promise)}if(s.length>0){var d=n.defer();t.jsLoader(s,(function(n){e.isDefined(n)&&(t.jsLoader.hasOwnProperty("ocLazyLoadLoader")||t.jsLoader.hasOwnProperty("requirejs"))?(t._$log.error(n),d.reject(n)):d.resolve()}),i),u.push(d.promise)}if(0===u.length){var g=n.defer(),m="Error: no file to load has been found, if you're trying to load an existing module you should use the 'inject' method instead of 'load'.";return t._$log.error(m),g.reject(m),g.promise}return i.serie&&i.files.length>0?n.all(u).then((function(){return t.filesLoader(r,i)})):n.all(u).finally((function(e){return t.toggleWatch(!1),e}))},t.load=function(r){var i,o=arguments.length<=1||void 0===arguments[1]?{}:arguments[1],a=this,s=null,u=[],l=n.defer(),c=e.copy(r),h=e.copy(o);if(e.isArray(c))return e.forEach(c,(function(e){u.push(a.load(e,h))})),n.all(u).then((function(e){l.resolve(e)}),(function(e){l.reject(e)})),l.promise;if(e.isString(c)?(s=a.getModuleConfig(c))||(s={files:[c]}):e.isObject(c)&&(s=e.isDefined(c.path)&&e.isDefined(c.type)?{files:[c]}:a.setModuleConfig(c)),null===s){var p=a._getModuleName(c);return i='Module "'+(p||"unknown")+'" is not configured, cannot load.',t._$log.error(i),l.reject(new Error(i)),l.promise}e.isDefined(s.template)&&(e.isUndefined(s.files)&&(s.files=[]),e.isString(s.template)?s.files.push(s.template):e.isArray(s.template)&&s.files.concat(s.template));var f=e.extend({},h,s);return e.isUndefined(s.files)&&e.isDefined(s.name)&&t.moduleExists(s.name)?t.inject(s.name,f,!0):(t.filesLoader(s,f).then((function(){t.inject(null,f).then((function(e){l.resolve(e)}),(function(e){l.reject(e)}))}),(function(e){l.reject(e)})),l.promise)},t}])}])}(angular),function(e){"use strict";e.module("oc.lazyLoad").config(["$provide",function(t){t.decorator("$ocLazyLoad",["$delegate","$q",function(t,n){return t.cssLoader=function(r,i,o){var a=[];e.forEach(r,(function(e){a.push(t.buildElement("css",e,o))})),n.all(a).then((function(){i()}),(function(e){i(e)}))},t.cssLoader.ocLazyLoadLoader=!0,t}])}])}(angular),function(e){"use strict";e.module("oc.lazyLoad").config(["$provide",function(t){t.decorator("$ocLazyLoad",["$delegate","$q",function(t,n){return t.jsLoader=function(r,i,o){var a=[];e.forEach(r,(function(e){a.push(t.buildElement("js",e,o))})),n.all(a).then((function(){i()}),(function(e){i(e)}))},t.jsLoader.ocLazyLoadLoader=!0,t}])}])}(angular),function(e){"use strict";e.module("oc.lazyLoad").config(["$provide",function(t){t.decorator("$ocLazyLoad",["$delegate","$templateCache","$q","$http",function(t,n,r,i){return t.templatesLoader=function(o,a,s){var u=[],l=t._getFilesCache();return e.forEach(o,(function(t){var o=r.defer();u.push(o.promise),i.get(t,s).then((function(r){var i=r.data;e.isString(i)&&i.length>0&&e.forEach(e.element(i),(function(e){"SCRIPT"===e.nodeName&&"text/ng-template"===e.type&&n.put(e.id,e.innerHTML)})),e.isUndefined(l.get(t))&&l.put(t,!0),o.resolve()})).catch((function(e){o.reject(new Error('Unable to load template file "'+t+'": '+e.data))}))})),r.all(u).then((function(){a()}),(function(e){a(e)}))},t.templatesLoader.ocLazyLoadLoader=!0,t}])}])}(angular),Array.prototype.indexOf||(Array.prototype.indexOf=function(e,t){var n;if(null==this)throw new TypeError('"this" is null or not defined');var r=Object(this),i=r.length>>>0;if(0===i)return-1;var o=+t||0;if(Math.abs(o)===1/0&&(o=0),o>=i)return-1;for(n=Math.max(o>=0?o:i-Math.abs(o),0);n<i;){if(n in r&&r[n]===e)return n;n++}return-1})},526:function(e,t,n){var r;
54
+ /*!
55
+ * angular-translate - v2.19.1 - 2024-01-21
56
+ *
57
+ * Copyright (c) 2024 The angular-translate team, Pascal Precht; Licensed MIT
58
+ */void 0===(r=function(){return function(){function e(e,t){"use strict";return function(n){if(!n||!(angular.isArray(n.files)||angular.isString(n.prefix)&&angular.isString(n.suffix)))throw new Error("Couldn't load static files, no files and prefix or suffix specified!");n.files||(n.files=[{prefix:n.prefix,suffix:n.suffix}]);for(var r=function(r){if(!r||!angular.isString(r.prefix)||!angular.isString(r.suffix))throw new Error("Couldn't load static file, no prefix or suffix specified!");var i=[r.prefix,n.key,r.suffix].join("");return angular.isObject(n.fileMap)&&n.fileMap[i]&&(i=n.fileMap[i]),t(angular.extend({url:i,method:"GET"},n.$http)).then((function(e){return e.data}),(function(){return e.reject(n.key)}))},i=[],o=n.files.length,a=0;a<o;a++)i.push(r({prefix:n.files[a].prefix,key:n.key,suffix:n.files[a].suffix}));return e.all(i).then((function(e){for(var t=e.length,n={},r=0;r<t;r++)for(var i in e[r])n[i]=e[r][i];return n}))}}return e.$inject=["$q","$http"],angular.module("pascalprecht.translate").factory("$translateStaticFilesLoader",e),e.displayName="$translateStaticFilesLoader","pascalprecht.translate"}()}.apply(t,[]))||(e.exports=r)},527:function(e,t,n){var r={"./alert-box.entry.js":[530,495],"./confirmation-dialog_9.entry.js":[531,399],"./copy-resource-link-button.entry.js":[532,400],"./keyboard-shortcuts-dialog.entry.js":[533,496],"./loader-component.entry.js":[534,403],"./ontotext-download-as.entry.js":[535,401],"./ontotext-dropdown.entry.js":[536,402],"./ontotext-editable-text-field.entry.js":[537,497],"./ontotext-pagination.entry.js":[538,498]};function i(e){if(!n.o(r,e))return Promise.resolve().then((function(){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}));var t=r[e],i=t[0];return n.e(t[1]).then((function(){return n(i)}))}i.keys=function(){return Object.keys(r)},i.id=527,e.exports=i},528:function(e,t,n){var r={"./graphql-playground-component.entry.js":[539,494]};function i(e){if(!n.o(r,e))return Promise.resolve().then((function(){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}));var t=r[e],i=t[0];return n.e(t[1]).then((function(){return n(i)}))}i.keys=function(){return Object.keys(r)},i.id=528,e.exports=i},529:function(e,t,n){var r={"./aclmanagement/app":[385,9,12,25,100],"./aclmanagement/app.js":[385,9,12,25,100],"./aclmanagement/controllers":[373,9,25],"./aclmanagement/controllers.js":[373,9,25],"./aclmanagement/directives/custom-role-handler.directive":[255,7,151],"./aclmanagement/directives/custom-role-handler.directive.js":[255,7,151],"./aclmanagement/model":[180,9,152],"./aclmanagement/model.js":[180,9,152],"./aclmanagement/plugin":[386,7,153],"./aclmanagement/plugin.js":[386,7,153],"./autocomplete/app":[387,9,102],"./autocomplete/app.js":[387,9,102],"./autocomplete/controllers":[256,9,154],"./autocomplete/controllers.js":[256,9,154],"./autocomplete/plugin":[388,7,155],"./autocomplete/plugin.js":[388,7,155],"./autocomplete/templates/modal/add-label.html":[540,7,404],"./backup-and-restore/app":[389,9,103],"./backup-and-restore/app.js":[389,9,103],"./backup-and-restore/controllers":[257,7,156],"./backup-and-restore/controllers.js":[257,7,156],"./backup-and-restore/plugin":[390,7,157],"./backup-and-restore/plugin.js":[390,7,157],"./clustermanagement/app":[391,9,9,3,14,19,33],"./clustermanagement/app.js":[391,9,9,3,14,19,33],"./clustermanagement/controllers/cluster-management.controller":[374,9,3,19,239],"./clustermanagement/controllers/cluster-management.controller.js":[374,9,3,19,239],"./clustermanagement/controllers/delete-cluster.controller":[261,7,158],"./clustermanagement/controllers/delete-cluster.controller.js":[261,7,158],"./clustermanagement/controllers/edit-cluster-nodes-modal.controller":[262,9,3,104],"./clustermanagement/controllers/edit-cluster-nodes-modal.controller.js":[262,9,3,104],"./clustermanagement/controllers/edit-cluster.controller":[260,9,105],"./clustermanagement/controllers/edit-cluster.controller.js":[260,9,105],"./clustermanagement/directives/cluster-configuration/cluster-configuration.directive":[266,9,3,40],"./clustermanagement/directives/cluster-configuration/cluster-configuration.directive.js":[266,9,3,40],"./clustermanagement/directives/cluster-configuration/cluster-nodes.directive":[194,7,159],"./clustermanagement/directives/cluster-configuration/cluster-nodes.directive.js":[194,7,159],"./clustermanagement/directives/cluster-configuration/cluster-properties.directive":[193,9,106],"./clustermanagement/directives/cluster-configuration/cluster-properties.directive.js":[193,9,106],"./clustermanagement/directives/cluster-configuration/multi-region.directive":[195,9,3,63],"./clustermanagement/directives/cluster-configuration/multi-region.directive.js":[195,9,3,63],"./clustermanagement/directives/cluster-graphical-view.directive":[263,9,14,107],"./clustermanagement/directives/cluster-graphical-view.directive.js":[263,9,14,107],"./clustermanagement/directives/cluster-legend.directive":[264,9,14],"./clustermanagement/directives/cluster-legend.directive.js":[264,9,14],"./clustermanagement/directives/cluster-nodes-configuration.directive":[267,9,3,160],"./clustermanagement/directives/cluster-nodes-configuration.directive.js":[267,9,3,160],"./clustermanagement/events":[129,9,161],"./clustermanagement/events.js":[129,9,161],"./clustermanagement/plugin":[392,7,162],"./clustermanagement/plugin.js":[392,7,162],"./clustermanagement/services/cluster-context.service":[191,9,3,163],"./clustermanagement/services/cluster-context.service.js":[191,9,3,163],"./clustermanagement/services/cluster-drawing.service":[153,9,108],"./clustermanagement/services/cluster-drawing.service.js":[153,9,108],"./clustermanagement/services/cluster-view-context.service":[259,7,164],"./clustermanagement/services/cluster-view-context.service.js":[259,7,164],"./clustermanagement/services/remote-locations.service":[258,9,165],"./clustermanagement/services/remote-locations.service.js":[258,9,165],"./clustermanagement/templates/cluster-configuration/cluster-configuration.html":[541,7,405],"./clustermanagement/templates/cluster-configuration/cluster-nodes.html":[542,7,406],"./clustermanagement/templates/cluster-configuration/cluster-properties.html":[543,7,407],"./clustermanagement/templates/cluster-configuration/multi-region.html":[544,7,408],"./clustermanagement/templates/cluster-legend.html":[545,7,409],"./clustermanagement/templates/cluster-nodes-configuration.html":[546,7,410],"./clustermanagement/templates/modal/cluster-delete-dialog.html":[547,7,411],"./clustermanagement/templates/modal/cluster-edit-dialog.html":[548,7,412],"./clustermanagement/templates/modal/edit-cluster-nodes-modal.html":[549,7,413],"./clustermanagement/templates/modal/secondary-mode-modal.html":[550,7,414],"./controllers":[70,9],"./controllers.js":[70,9],"./core/angularCancelOnNavigateModule":[85,7],"./core/angularCancelOnNavigateModule.js":[85,7],"./core/components/export-settings-modal/controller":[154,9,166],"./core/components/export-settings-modal/controller.js":[154,9,166],"./core/components/export-settings-modal/exportSettingsModal.html":[551,7,415],"./core/controllers":[58,7],"./core/controllers.js":[58,7],"./core/directives":[52,9],"./core/directives.js":[52,9],"./core/directives/angulartooltips/angular-tooltips":[89,9],"./core/directives/angulartooltips/angular-tooltips.js":[89,9],"./core/directives/ascii-validator.directive":[161,7,167],"./core/directives/ascii-validator.directive.js":[161,7,167],"./core/directives/autocomplete/autocomplete.directive":[92,9],"./core/directives/autocomplete/autocomplete.directive.js":[92,9],"./core/directives/autocomplete/templates/autocomplete.html":[552,7,416],"./core/directives/cookie-policy/cookie-consent.directive":[80,9],"./core/directives/cookie-policy/cookie-consent.directive.js":[80,9],"./core/directives/cookie-policy/cookie-policy-modal-controller":[40,9],"./core/directives/cookie-policy/cookie-policy-modal-controller.js":[40,9],"./core/directives/copy-to-clipboard/copy-to-clipboard.directive":[88,7],"./core/directives/copy-to-clipboard/copy-to-clipboard.directive.js":[88,7],"./core/directives/dynamic-form/dynamic-form-field.directive":[121,9,109],"./core/directives/dynamic-form/dynamic-form-field.directive.js":[121,9,109],"./core/directives/dynamic-form/dynamic-form.directive":[130,9,85],"./core/directives/dynamic-form/dynamic-form.directive.js":[130,9,85],"./core/directives/dynamic-form/field-type":[109,9,168],"./core/directives/dynamic-form/field-type.js":[109,9,168],"./core/directives/dynamic-form/templates/dynamic-form.html":[553,7,417],"./core/directives/dynamic-form/templates/form-field-template.html":[554,7,418],"./core/directives/fit-text.directive":[269,7,169],"./core/directives/fit-text.directive.js":[269,7,169],"./core/directives/graphql-playground/graphql-playground-directive.util":[196,9,170],"./core/directives/graphql-playground/graphql-playground-directive.util.js":[196,9,170],"./core/directives/graphql-playground/graphql-playground.directive":[197,9,110],"./core/directives/graphql-playground/graphql-playground.directive.js":[197,9,110],"./core/directives/graphql-playground/templates/graphql-playground.html":[555,7,419],"./core/directives/inline-editable-text/inline-editable-text.directive":[164,7,171],"./core/directives/inline-editable-text/inline-editable-text.directive.js":[164,7,171],"./core/directives/inline-editable-text/templates/inline-editable-text.template.html":[556,7,420],"./core/directives/languageselector/language-selector.directive":[87,9],"./core/directives/languageselector/language-selector.directive.js":[87,9],"./core/directives/languageselector/templates/languageSelector.html":[557,7,421],"./core/directives/length-validator.directive":[162,7,172],"./core/directives/length-validator.directive.js":[162,7,172],"./core/directives/markdown-content/markdown-content":[165,9,7,68],"./core/directives/markdown-content/markdown-content.js":[165,9,7,68],"./core/directives/multiselect-dropdown/multiselect-dropdown.directive":[133,7,173],"./core/directives/multiselect-dropdown/multiselect-dropdown.directive.js":[133,7,173],"./core/directives/multiselect-dropdown/templates/multiselect-dropdown.html":[558,7,422],"./core/directives/open-in-sparql-editor/open-in-sparql-editor.directive":[166,9,174],"./core/directives/open-in-sparql-editor/open-in-sparql-editor.directive.js":[166,9,174],"./core/directives/operations-statuses-monitor/operations-statuses-monitor.directive":[91,9],"./core/directives/operations-statuses-monitor/operations-statuses-monitor.directive.js":[91,9],"./core/directives/operations-statuses-monitor/templates/operations-statuses-monitor.html":[559,7,423],"./core/directives/page-info-tooltip.directive":[94,7],"./core/directives/page-info-tooltip.directive.js":[94,7],"./core/directives/paginations":[146,7,175],"./core/directives/paginations.js":[146,7,175],"./core/directives/prop-indeterminate/prop-indeterminate.directive":[93,7],"./core/directives/prop-indeterminate/prop-indeterminate.directive.js":[93,7],"./core/directives/rdfresourcesearch/rdf-resource-search.directive":[86,9],"./core/directives/rdfresourcesearch/rdf-resource-search.directive.js":[86,9],"./core/directives/rdfresourcesearch/templates/rdfResourceSearchTemplate.html":[560,7,424],"./core/directives/shuttle-multiselect/shuttle-multiselect.directive":[198,9,176],"./core/directives/shuttle-multiselect/shuttle-multiselect.directive.js":[198,9,176],"./core/directives/shuttle-multiselect/templates/shuttle-multiselect.html":[561,7,425],"./core/directives/uppercased.directive":[90,7],"./core/directives/uppercased.directive.js":[90,7],"./core/directives/validate-duplicate-url.directive":[268,7,177],"./core/directives/validate-duplicate-url.directive.js":[268,7,177],"./core/directives/validate-url.directive":[160,9,112],"./core/directives/validate-url.directive.js":[160,9,112],"./core/directives/yasgui-component/templates/yasgui-component.html":[562,7,426],"./core/directives/yasgui-component/yasgui-component-directive.util":[27,9],"./core/directives/yasgui-component/yasgui-component-directive.util.js":[27,9],"./core/directives/yasgui-component/yasgui-component.directive":[167,9,4,5],"./core/directives/yasgui-component/yasgui-component.directive.js":[167,9,4,5],"./core/directives/yasgui-component/yasgui-persistence-migration.service":[275,9,113],"./core/directives/yasgui-component/yasgui-persistence-migration.service.js":[275,9,113],"./core/filters/bytes-filter":[96,7],"./core/filters/bytes-filter.js":[96,7],"./core/filters/search-filter":[95,7],"./core/filters/search-filter.js":[95,7],"./core/interceptors/authentication.interceptor":[66,9],"./core/interceptors/authentication.interceptor.js":[66,9],"./core/interceptors/unauthorized.interceptor":[65,9],"./core/interceptors/unauthorized.interceptor.js":[65,9],"./core/loading-hint":[67,7,178],"./core/loading-hint.js":[67,7,178],"./core/services":[10,9],"./core/services.js":[10,9],"./core/services/autocomplete.service":[82,9],"./core/services/autocomplete.service.js":[82,9],"./core/services/connectors.service":[125,9,72],"./core/services/connectors.service.js":[125,9,72],"./core/services/event-emitter-service":[30,7],"./core/services/event-emitter-service.js":[30,7],"./core/services/graphql.service":[126,9,1,2],"./core/services/graphql.service.js":[126,9,1,2],"./core/services/jwt-auth.service":[54,9],"./core/services/jwt-auth.service.js":[54,9],"./core/services/language.service":[97,7],"./core/services/language.service.js":[97,7],"./core/services/license.service":[75,7],"./core/services/license.service.js":[75,7],"./core/services/markdown/markdown.service":[145,9,7,88],"./core/services/markdown/markdown.service.js":[145,9,7,88],"./core/services/markdown/plugins/markdown-code-copy-plugin":[131,9,179],"./core/services/markdown/plugins/markdown-code-copy-plugin.js":[131,9,179],"./core/services/markdown/plugins/markdown-open-in-sparql-editor-plugin":[132,9,180],"./core/services/markdown/plugins/markdown-open-in-sparql-editor-plugin.js":[132,9,180],"./core/services/openid-auth.service":[68,9],"./core/services/openid-auth.service.js":[68,9],"./core/services/rdf4j-repositories.service":[60,9],"./core/services/rdf4j-repositories.service.js":[60,9],"./core/services/repositories.service":[53,9],"./core/services/repositories.service.js":[53,9],"./core/services/repository-storage.service":[73,9],"./core/services/repository-storage.service.js":[73,9],"./core/services/security.service":[62,9],"./core/services/security.service.js":[62,9],"./core/services/similarity.service":[127,9,47],"./core/services/similarity.service.js":[127,9,47],"./core/services/theme-service":[71,7],"./core/services/theme-service.js":[71,7],"./core/services/tracking/cookie.service":[77,7],"./core/services/tracking/cookie.service.js":[77,7],"./core/services/tracking/google-analytics-cookie.service":[79,7],"./core/services/tracking/google-analytics-cookie.service.js":[79,7],"./core/services/tracking/installation-cookie.service":[78,7],"./core/services/tracking/installation-cookie.service.js":[78,7],"./core/services/tracking/tracking.service":[76,9],"./core/services/tracking/tracking.service.js":[76,9],"./core/services/translation.service":[270,7,181],"./core/services/translation.service.js":[270,7,181],"./core/services/ttyg.service":[140,9,6,8,10],"./core/services/ttyg.service.js":[140,9,6,8,10],"./core/services/workbench-context.service":[29,9],"./core/services/workbench-context.service.js":[29,9],"./core/templates/cookie-policy/cookie-consent.html":[563,7,427],"./core/templates/cookie-policy/cookie-policy.html":[564,7,428],"./core/templates/core-errors.html":[565,7,429],"./core/templates/inactive-plugin-warning-page.html":[566,7,430],"./core/templates/modal/copy-to-clipboard-modal.html":[567,7,431],"./core/templates/modal/modal-simple.html":[568,7,432],"./core/templates/modal/modal-warning.html":[569,7,433],"./core/templates/search-resource-input.html":[570,7,434],"./explore/app":[393,9,4,16,28,5,32],"./explore/app.js":[393,9,4,16,28,5,32],"./explore/controllers":[291,9,16,34],"./explore/controllers.js":[291,9,16,34],"./explore/directives":[292,9,182],"./explore/directives.js":[292,9,182],"./explore/plugin":[394,7,183],"./explore/plugin.js":[394,7,183],"./explore/statements.service":[290,7,184],"./explore/statements.service.js":[290,7,184],"./explore/templates/viewTrig.html":[571,7,435],"./export/app":[395,9,21,111],"./export/app.js":[395,9,21,111],"./export/controllers":[376,9,21],"./export/controllers.js":[376,9,21],"./export/plugin":[396,7,185],"./export/plugin.js":[396,7,185],"./externalsync/app":[397,9,73],"./externalsync/app.js":[397,9,73],"./externalsync/controllers":[219,9,114],"./externalsync/controllers.js":[219,9,114],"./externalsync/directives":[294,9,186],"./externalsync/directives.js":[294,9,186],"./externalsync/plugin":[398,7,187],"./externalsync/plugin.js":[398,7,187],"./externalsync/templates/deleteConnector.html":[572,7,436],"./graphexplore/app":[399,9,4,9,84,5,31],"./graphexplore/app.js":[399,9,4,9,84,5,31],"./graphexplore/controllers/dependencies-chord.controller":[301,9,188],"./graphexplore/controllers/dependencies-chord.controller.js":[301,9,188],"./graphexplore/controllers/domain-range-graph.controller":[300,9,189],"./graphexplore/controllers/domain-range-graph.controller.js":[300,9,189],"./graphexplore/controllers/graphs-config.controller":[303,9,48],"./graphexplore/controllers/graphs-config.controller.js":[303,9,48],"./graphexplore/controllers/graphs-visualizations.controller":[302,9,9,49],"./graphexplore/controllers/graphs-visualizations.controller.js":[302,9,9,49],"./graphexplore/controllers/rdf-class-hierarchy.controller":[299,9,190],"./graphexplore/controllers/rdf-class-hierarchy.controller.js":[299,9,190],"./graphexplore/directives/dependencies-chord.directive":[308,9,9,74],"./graphexplore/directives/dependencies-chord.directive.js":[308,9,9,74],"./graphexplore/directives/domain-range-graph.directive":[305,9,9,75],"./graphexplore/directives/domain-range-graph.directive.js":[305,9,9,75],"./graphexplore/directives/list-items-search-filter.directive":[309,7,191],"./graphexplore/directives/list-items-search-filter.directive.js":[309,7,191],"./graphexplore/directives/rdf-class-hierarchy.directive":[304,9,9,50],"./graphexplore/directives/rdf-class-hierarchy.directive.js":[304,9,9,50],"./graphexplore/directives/rdfs-comment-label.directive":[307,7,192],"./graphexplore/directives/rdfs-comment-label.directive.js":[307,7,192],"./graphexplore/directives/search-icon-input.directive":[310,7,193],"./graphexplore/directives/search-icon-input.directive.js":[310,7,193],"./graphexplore/directives/system-repo-warning.directive":[306,7,194],"./graphexplore/directives/system-repo-warning.directive.js":[306,7,194],"./graphexplore/plugin":[400,7,195],"./graphexplore/plugin.js":[400,7,195],"./graphexplore/services/rdfs-label-comment.service":[296,7,196],"./graphexplore/services/rdfs-label-comment.service.js":[296,7,196],"./graphexplore/services/ui-scroll.service":[295,7,197],"./graphexplore/services/ui-scroll.service.js":[295,7,197],"./graphexplore/templates/listItemsSearchFilterTemplate.html":[573,7,437],"./graphexplore/templates/modal/save-graph.html":[574,7,438],"./graphexplore/templates/rdfClassHierarchyClassCountSliderHelpTemplate.html":[575,7,439],"./graphexplore/templates/rdfsCommentLabelTemplate.html":[576,7,440],"./graphexplore/templates/searchIconInputTemplate.html":[577,7,441],"./graphexplore/templates/systemRepoWarningTemplate.html":[578,7,442],"./graphql/app":[401,9,1,2,17,24,46],"./graphql/app.js":[401,9,1,2,17,24,46],"./graphql/controllers/create-graphql-endpoint-view.controller":[378,9,1,2,24,66],"./graphql/controllers/create-graphql-endpoint-view.controller.js":[378,9,1,2,24,66],"./graphql/controllers/endpoint-generation-failure-result-modal.controller":[222,9,1,2,64],"./graphql/controllers/endpoint-generation-failure-result-modal.controller.js":[222,9,1,2,64],"./graphql/controllers/graphql-endpoint-configuration-modal.controller":[312,9,1,2,65],"./graphql/controllers/graphql-endpoint-configuration-modal.controller.js":[312,9,1,2,65],"./graphql/controllers/graphql-endpoint-management-view.controller":[377,9,1,2,17],"./graphql/controllers/graphql-endpoint-management-view.controller.js":[377,9,1,2,17],"./graphql/controllers/graphql-playground-view.controller":[311,9,1,2,59],"./graphql/controllers/graphql-playground-view.controller.js":[311,9,1,2,59],"./graphql/controllers/import-endpoint-definition-modal.controller":[313,9,1,2,89],"./graphql/controllers/import-endpoint-definition-modal.controller.js":[313,9,1,2,89],"./graphql/directives/configure-endpoint.directive":[315,7,198],"./graphql/directives/configure-endpoint.directive.js":[315,7,198],"./graphql/directives/generate-endpoint.directive":[316,9,1,2,45],"./graphql/directives/generate-endpoint.directive.js":[316,9,1,2,45],"./graphql/directives/select-schema-sources.directive":[314,9,1,71],"./graphql/directives/select-schema-sources.directive.js":[314,9,1,71],"./graphql/models/endpoints":[114,9,199],"./graphql/models/endpoints.js":[114,9,199],"./graphql/plugin":[402,7,200],"./graphql/plugin.js":[402,7,200],"./graphql/services/endpoint-generation-report.mapper":[174,9,76],"./graphql/services/endpoint-generation-report.mapper.js":[174,9,76],"./graphql/services/endpoint-info-list.mapper":[278,9,60],"./graphql/services/endpoint-info-list.mapper.js":[278,9,60],"./graphql/services/endpoint-utils":[113,9,115],"./graphql/services/endpoint-utils.js":[113,9,115],"./graphql/services/endpoints.mapper":[277,9,77],"./graphql/services/endpoints.mapper.js":[277,9,77],"./graphql/services/file-to-import-definition.mapper":[221,9,51],"./graphql/services/file-to-import-definition.mapper.js":[221,9,51],"./graphql/services/graphql-context.service":[124,9,1,116],"./graphql/services/graphql-context.service.js":[124,9,1,116],"./graphql/services/graphql-schema-shapes.mapper":[279,9,117],"./graphql/services/graphql-schema-shapes.mapper.js":[279,9,117],"./graphql/services/prefix-list.mapper":[280,9,118],"./graphql/services/prefix-list.mapper.js":[280,9,118],"./graphql/services/shacl-shape-list.mapper":[281,9,201],"./graphql/services/shacl-shape-list.mapper.js":[281,9,201],"./graphql/templates/create-graphql-endpoint.html":[579,7,443],"./graphql/templates/graphql-endpoint-management.html":[580,7,444],"./graphql/templates/graphql-playground.html":[581,7,445],"./graphql/templates/modal/endpoint-configuration-modal.html":[582,7,446],"./graphql/templates/modal/endpoint-generation-failure-result-modal.html":[583,7,447],"./graphql/templates/modal/import-endpoint-definition-modal.html":[584,7,448],"./graphql/templates/step-configure-endpoint.html":[585,7,449],"./graphql/templates/step-generate-endpoint.html":[586,7,450],"./graphql/templates/step-select-schema-sources.html":[587,7,451],"./guides/app":[403,9,69],"./guides/app.js":[403,9,69],"./guides/controllers":[317,9,86],"./guides/controllers.js":[317,9,86],"./guides/directives":[84,7],"./guides/directives.js":[84,7],"./guides/guide-utils":[4,9],"./guides/guide-utils.js":[4,9],"./guides/guides.service":[64,9],"./guides/guides.service.js":[64,9],"./guides/model/guides":[223,9,202],"./guides/model/guides.js":[223,9,202],"./guides/plugin":[404,7,203],"./guides/plugin.js":[404,7,203],"./guides/steps/complex/class-hierarchy/plugin":[405,7,204],"./guides/steps/complex/class-hierarchy/plugin.js":[405,7,204],"./guides/steps/complex/create-repository/plugin":[406,7,205],"./guides/steps/complex/create-repository/plugin.js":[406,7,205],"./guides/steps/complex/create-similarity-index/plugin":[407,7,206],"./guides/steps/complex/create-similarity-index/plugin.js":[407,7,206],"./guides/steps/complex/download-guide-resource/plugin":[408,7,207],"./guides/steps/complex/download-guide-resource/plugin.js":[408,7,207],"./guides/steps/complex/enable-autocomplete/plugin":[409,7,208],"./guides/steps/complex/enable-autocomplete/plugin.js":[409,7,208],"./guides/steps/complex/execute-sparql-query/plugin":[410,7,209],"./guides/steps/complex/execute-sparql-query/plugin.js":[410,7,209],"./guides/steps/complex/import-rdf-file/plugin":[411,7,210],"./guides/steps/complex/import-rdf-file/plugin.js":[411,7,210],"./guides/steps/complex/main-menu/plugin":[412,7,211],"./guides/steps/complex/main-menu/plugin.js":[412,7,211],"./guides/steps/complex/select-repository/plugin":[413,7,212],"./guides/steps/complex/select-repository/plugin.js":[413,7,212],"./guides/steps/complex/table-graph/plugin":[414,7,213],"./guides/steps/complex/table-graph/plugin.js":[414,7,213],"./guides/steps/complex/ttyg/ask-ttyg-agent/plugin":[415,7,214],"./guides/steps/complex/ttyg/ask-ttyg-agent/plugin.js":[415,7,214],"./guides/steps/complex/ttyg/common/configure-agent/plugin":[416,7,215],"./guides/steps/complex/ttyg/common/configure-agent/plugin.js":[416,7,215],"./guides/steps/complex/ttyg/common/end-on-api-key-error/plugin":[417,7,216],"./guides/steps/complex/ttyg/common/end-on-api-key-error/plugin.js":[417,7,216],"./guides/steps/complex/ttyg/common/fts-search-method/plugin":[418,7,217],"./guides/steps/complex/ttyg/common/fts-search-method/plugin.js":[418,7,217],"./guides/steps/complex/ttyg/common/similarity-search-method/plugin":[419,7,218],"./guides/steps/complex/ttyg/common/similarity-search-method/plugin.js":[419,7,218],"./guides/steps/complex/ttyg/common/sparql-search-method/plugin":[420,7,219],"./guides/steps/complex/ttyg/common/sparql-search-method/plugin.js":[420,7,219],"./guides/steps/complex/ttyg/conversation-with-ttyg-agent/plugin":[421,7,220],"./guides/steps/complex/ttyg/conversation-with-ttyg-agent/plugin.js":[421,7,220],"./guides/steps/complex/ttyg/create-ttyg-agent/plugin":[422,7,221],"./guides/steps/complex/ttyg/create-ttyg-agent/plugin.js":[422,7,221],"./guides/steps/complex/ttyg/edit-ttyg-agent/plugin":[423,7,222],"./guides/steps/complex/ttyg/edit-ttyg-agent/plugin.js":[423,7,222],"./guides/steps/complex/ttyg/select-ttyg-agent/plugin":[424,7,223],"./guides/steps/complex/ttyg/select-ttyg-agent/plugin.js":[424,7,223],"./guides/steps/complex/visual-graph/plugin":[425,7,224],"./guides/steps/complex/visual-graph/plugin.js":[425,7,224],"./guides/steps/complex/welcome/plugin":[426,7,225],"./guides/steps/complex/welcome/plugin.js":[426,7,225],"./guides/steps/core/plugin":[427,7,226],"./guides/steps/core/plugin.js":[427,7,226],"./guides/templates/modal-confirm-exit.html":[588,7,452],"./guides/tour-lib-services/shepherd.service":[21,9],"./guides/tour-lib-services/shepherd.service.js":[21,9],"./import/app":[428,9,15,13,42],"./import/app.js":[428,9,15,13,42],"./import/controllers/file-override-confirmation.controller":[325,9,227],"./import/controllers/file-override-confirmation.controller.js":[325,9,227],"./import/controllers/import-resource-message-dialog.controller":[178,7,228],"./import/controllers/import-resource-message-dialog.controller.js":[178,7,228],"./import/controllers/import-text-snippet.controller":[324,7,229],"./import/controllers/import-text-snippet.controller.js":[324,7,229],"./import/controllers/import-url.controller":[323,7,230],"./import/controllers/import-url.controller.js":[323,7,230],"./import/controllers/import-view.controller":[318,9,13,26],"./import/controllers/import-view.controller.js":[318,9,13,26],"./import/controllers/settings-modal.controller":[322,9,13,26],"./import/controllers/settings-modal.controller.js":[322,9,13,26],"./import/controllers/tab.controller":[321,9,90],"./import/controllers/tab.controller.js":[321,9,90],"./import/directives/import-progress-indicator.directive":[331,7,231],"./import/directives/import-progress-indicator.directive.js":[331,7,231],"./import/directives/import-resource-message.directive":[225,9,78],"./import/directives/import-resource-message.directive.js":[225,9,78],"./import/directives/import-resource-status-info.directive":[226,7,232],"./import/directives/import-resource-status-info.directive.js":[226,7,232],"./import/directives/import-resource-tree.directive":[332,9,15,43],"./import/directives/import-resource-tree.directive.js":[332,9,15,43],"./import/directives/validate-uri.directive":[330,7,233],"./import/directives/validate-uri.directive.js":[330,7,233],"./import/plugin":[429,7,234],"./import/plugin.js":[429,7,234],"./import/services/file-prefix-registry":[329,9,235],"./import/services/file-prefix-registry.js":[329,9,235],"./import/services/import-context.service":[137,9,119],"./import/services/import-context.service.js":[137,9,119],"./import/services/import-resource-tree.service":[333,9,15],"./import/services/import-resource-tree.service.js":[333,9,15],"./import/templates/file-override-confirmation.html":[589,7,453],"./import/templates/fileSizeLimitInfo.html":[590,7,454],"./import/templates/import-resource-message-dialog.html":[591,7,455],"./import/templates/import-resource-message.html":[592,7,456],"./import/templates/import-resource-status-info.html":[593,7,457],"./import/templates/import-resource-tree.html":[594,7,458],"./import/templates/settingsModal.html":[595,7,459],"./import/templates/textSnippet.html":[596,7,460],"./import/templates/urlImport.html":[597,7,461],"./jdbc/app":[430,9,0,4,5,11,38],"./jdbc/app.js":[430,9,0,4,5,11,38],"./jdbc/controllers":[343,9,44],"./jdbc/controllers.js":[343,9,44],"./jdbc/plugin":[431,7,236],"./jdbc/plugin.js":[431,7,236],"./models/clustermanagement/cluster":[144,9,3],"./models/clustermanagement/cluster-management-constants":[265,9,91],"./models/clustermanagement/cluster-management-constants.js":[265,9,91],"./models/clustermanagement/cluster.js":[144,9,3],"./models/clustermanagement/node-state":[192,9,237],"./models/clustermanagement/node-state.js":[192,9,237],"./models/clustermanagement/recovery-status-state":[432,9,238],"./models/clustermanagement/recovery-status-state.js":[432,9,238],"./models/clustermanagement/states":[116,9,240],"./models/clustermanagement/states.js":[116,9,240],"./models/connectors/connector-command":[345,9,241],"./models/connectors/connector-command.js":[345,9,241],"./models/connectors/connectors":[122,9,242],"./models/connectors/connectors.js":[122,9,242],"./models/cookie-policy/cookie-consent":[8,9],"./models/cookie-policy/cookie-consent.js":[8,9],"./models/dynamic-form/dynamic-form-field":[147,9,243],"./models/dynamic-form/dynamic-form-field.js":[147,9,243],"./models/dynamic-form/dynamic-form-model":[213,9,244],"./models/dynamic-form/dynamic-form-model.js":[213,9,244],"./models/form-fields":[25,9],"./models/form-fields.js":[25,9],"./models/graphql/create-endpoint-from-owl-request":[283,9,245],"./models/graphql/create-endpoint-from-owl-request.js":[283,9,245],"./models/graphql/create-endpoint-from-shapes-request":[282,9,246],"./models/graphql/create-endpoint-from-shapes-request.js":[282,9,246],"./models/graphql/create-endpoint-wizard-steps":[182,9,122],"./models/graphql/create-endpoint-wizard-steps.js":[182,9,122],"./models/graphql/endpoint-configuration-form":[433,9,247],"./models/graphql/endpoint-configuration-form.js":[433,9,247],"./models/graphql/endpoint-definition-file":[150,9,248],"./models/graphql/endpoint-definition-file.js":[150,9,248],"./models/graphql/endpoint-generation-report":[119,9,249],"./models/graphql/endpoint-generation-report.js":[119,9,249],"./models/graphql/graphql-endpoint-configuration":[157,9,1],"./models/graphql/graphql-endpoint-configuration-setting":[173,9,121],"./models/graphql/graphql-endpoint-configuration-setting.js":[173,9,121],"./models/graphql/graphql-endpoint-configuration.js":[157,9,1],"./models/graphql/graphql-endpoint-overview-list":[249,9,250],"./models/graphql/graphql-endpoint-overview-list.js":[249,9,250],"./models/graphql/graphql-endpoints":[211,9,251],"./models/graphql/graphql-endpoints-info":[156,9,123],"./models/graphql/graphql-endpoints-info.js":[156,9,123],"./models/graphql/graphql-endpoints.js":[211,9,251],"./models/graphql/graphql-playground-component":[163,9,252],"./models/graphql/graphql-playground-component.js":[163,9,252],"./models/graphql/graphql-playground-config":[220,9,253],"./models/graphql/graphql-playground-config.js":[220,9,253],"./models/graphql/graphql-schema-shapes":[181,9,254],"./models/graphql/graphql-schema-shapes.js":[181,9,254],"./models/graphql/update-endpoint-request":[172,9,255],"./models/graphql/update-endpoint-request.js":[172,9,255],"./models/graphql/wizard":[183,9,256],"./models/graphql/wizard.js":[183,9,256],"./models/graphs/graph-list":[434,9,257],"./models/graphs/graph-list-options":[16,9],"./models/graphs/graph-list-options.js":[16,9],"./models/graphs/graph-list.js":[434,9,257],"./models/graphs/graphs-config":[136,9,258],"./models/graphs/graphs-config.js":[136,9,258],"./models/http-status":[231,9,259],"./models/http-status.js":[231,9,259],"./models/import/file-formats":[326,9,260],"./models/import/file-formats.js":[326,9,260],"./models/import/import-parsing-settings":[177,9,261],"./models/import/import-parsing-settings.js":[177,9,261],"./models/import/import-resource":[224,9,79],"./models/import/import-resource-format":[435,9,262],"./models/import/import-resource-format.js":[435,9,262],"./models/import/import-resource-status":[105,9,263],"./models/import/import-resource-status.js":[105,9,263],"./models/import/import-resource-tree-element":[227,9,125],"./models/import/import-resource-tree-element.js":[227,9,125],"./models/import/import-resource-type":[151,9,264],"./models/import/import-resource-type.js":[151,9,264],"./models/import/import-resource.js":[224,9,79],"./models/import/import-settings":[436,9,265],"./models/import/import-settings.js":[436,9,265],"./models/import/sorting-type":[186,9,266],"./models/import/sorting-type.js":[186,9,266],"./models/jdbc/jdbc-column":[230,9,268],"./models/jdbc/jdbc-column-type":[437,9,267],"./models/jdbc/jdbc-column-type.js":[437,9,267],"./models/jdbc/jdbc-column.js":[230,9,268],"./models/jdbc/jdbc-configuration-error":[229,9,269],"./models/jdbc/jdbc-configuration-error.js":[229,9,269],"./models/jdbc/jdbc-configuration-info":[228,9,270],"./models/jdbc/jdbc-configuration-info.js":[228,9,270],"./models/monitoring/backup-and-restore-info":[45,9],"./models/monitoring/backup-and-restore-info.js":[45,9],"./models/monitoring/backup-and-restore-operation-type":[438,9,271],"./models/monitoring/backup-and-restore-operation-type.js":[438,9,271],"./models/monitoring/cluster-status":[439,9,272],"./models/monitoring/cluster-status.js":[439,9,272],"./models/monitoring/operations/active-operation-input":[440,9,273],"./models/monitoring/operations/active-operation-input.js":[440,9,273],"./models/monitoring/operations/active-operation-model":[13,9],"./models/monitoring/operations/active-operation-model.js":[13,9],"./models/monitoring/operations/active-operations-input":[441,9,274],"./models/monitoring/operations/active-operations-input.js":[441,9,274],"./models/monitoring/operations/active-operations-model":[48,9],"./models/monitoring/operations/active-operations-model.js":[48,9],"./models/monitoring/operations/operation-group":[3,9],"./models/monitoring/operations/operation-group.js":[3,9],"./models/monitoring/operations/operation-monitoring-constants":[14,9],"./models/monitoring/operations/operation-monitoring-constants.js":[14,9],"./models/monitoring/operations/operation-status":[7,9],"./models/monitoring/operations/operation-status.js":[7,9],"./models/monitoring/operations/operation-type":[5,9],"./models/monitoring/operations/operation-type.js":[5,9],"./models/monitoring/query-and-update/monitoring-track-record":[233,9,277],"./models/monitoring/query-and-update/monitoring-track-record-state":[442,9,275],"./models/monitoring/query-and-update/monitoring-track-record-state.js":[442,9,275],"./models/monitoring/query-and-update/monitoring-track-record-type":[232,9,276],"./models/monitoring/query-and-update/monitoring-track-record-type.js":[232,9,276],"./models/monitoring/query-and-update/monitoring-track-record.js":[233,9,277],"./models/monitoring/snapshot-option-info":[46,9],"./models/monitoring/snapshot-option-info.js":[46,9],"./models/namespaces/namespace":[49,9],"./models/namespaces/namespace.js":[49,9],"./models/namespaces/namespaces-list":[11,9],"./models/namespaces/namespaces-list.js":[11,9],"./models/ontop/jdbc-driver-type":[188,9,278],"./models/ontop/jdbc-driver-type.js":[188,9,278],"./models/ontop/ontop-connection-information":[346,9,279],"./models/ontop/ontop-connection-information.js":[346,9,279],"./models/ontop/ontop-driver-data":[347,9,126],"./models/ontop/ontop-driver-data.js":[347,9,126],"./models/ontop/ontop-file-info":[348,9,280],"./models/ontop/ontop-file-info.js":[348,9,280],"./models/ontop/ontop-file-type":[349,9,281],"./models/ontop/ontop-file-type.js":[349,9,281],"./models/ontop/ontop-repository-error":[350,9,282],"./models/ontop/ontop-repository-error.js":[350,9,282],"./models/ontotext-yasgui/before-update-query-result":[351,9,283],"./models/ontotext-yasgui/before-update-query-result.js":[351,9,283],"./models/ontotext-yasgui/count-query-request-event":[203,9,284],"./models/ontotext-yasgui/count-query-request-event.js":[203,9,284],"./models/ontotext-yasgui/count-query-response-event":[202,9,285],"./models/ontotext-yasgui/count-query-response-event.js":[202,9,285],"./models/ontotext-yasgui/download-as-event":[204,9,286],"./models/ontotext-yasgui/download-as-event.js":[204,9,286],"./models/ontotext-yasgui/event-data":[200,9,288],"./models/ontotext-yasgui/event-data-type":[155,9,287],"./models/ontotext-yasgui/event-data-type.js":[155,9,287],"./models/ontotext-yasgui/event-data.js":[200,9,288],"./models/ontotext-yasgui/keyboard-shortcut-name":[274,9,289],"./models/ontotext-yasgui/keyboard-shortcut-name.js":[274,9,289],"./models/ontotext-yasgui/notification-message-event":[205,9,290],"./models/ontotext-yasgui/notification-message-event.js":[205,9,290],"./models/ontotext-yasgui/notification-message-type":[443,9,291],"./models/ontotext-yasgui/notification-message-type.js":[443,9,291],"./models/ontotext-yasgui/ongoing-requests-info":[444,9,292],"./models/ontotext-yasgui/ongoing-requests-info.js":[444,9,292],"./models/ontotext-yasgui/ontotext-yasgui-config":[445,9,53],"./models/ontotext-yasgui/ontotext-yasgui-config.js":[445,9,53],"./models/ontotext-yasgui/query-executed-event":[206,9,293],"./models/ontotext-yasgui/query-executed-event.js":[206,9,293],"./models/ontotext-yasgui/query-mode":[20,9],"./models/ontotext-yasgui/query-mode.js":[20,9],"./models/ontotext-yasgui/query-request-event":[201,9,294],"./models/ontotext-yasgui/query-request-event.js":[201,9,294],"./models/ontotext-yasgui/query-type":[170,9,295],"./models/ontotext-yasgui/query-type.js":[170,9,295],"./models/ontotext-yasgui/rendering-mode":[104,9,297],"./models/ontotext-yasgui/rendering-mode.js":[104,9,297],"./models/ontotext-yasgui/request-aborted-event":[208,9,298],"./models/ontotext-yasgui/request-aborted-event.js":[208,9,298],"./models/ontotext-yasgui/save-query-opened":[207,9,299],"./models/ontotext-yasgui/save-query-opened.js":[207,9,299],"./models/ontotext-yasgui/tab":[446,9,300],"./models/ontotext-yasgui/tab.js":[446,9,300],"./models/ontotext-yasgui/yasgui-orientation":[352,9,301],"./models/ontotext-yasgui/yasgui-orientation.js":[352,9,301],"./models/ontotext-yasgui/yasgui-query-http-method":[353,9,302],"./models/ontotext-yasgui/yasgui-query-http-method.js":[353,9,302],"./models/ontotext-yasgui/yasgui-reset-flags":[447,9,303],"./models/ontotext-yasgui/yasgui-reset-flags.js":[447,9,303],"./models/ontotext-yasgui/yasqe-action-button-definition":[448,9,304],"./models/ontotext-yasgui/yasqe-action-button-definition.js":[448,9,304],"./models/ontotext-yasgui/yasqe-mode":[115,9,305],"./models/ontotext-yasgui/yasqe-mode.js":[115,9,305],"./models/ontotext-yasgui/yasr-before-update-query-result":[449,9,306],"./models/ontotext-yasgui/yasr-before-update-query-result.js":[449,9,306],"./models/ontotext-yasgui/yasr-plugin-name":[209,9,307],"./models/ontotext-yasgui/yasr-plugin-name.js":[209,9,307],"./models/ontotext-yasgui/yasr-query-response-status":[450,9,308],"./models/ontotext-yasgui/yasr-query-response-status.js":[450,9,308],"./models/ontotext-yasgui/yasr-toolbar-plugin":[451,9,309],"./models/ontotext-yasgui/yasr-toolbar-plugin.js":[451,9,309],"./models/prefix/prefixes":[212,9,310],"./models/prefix/prefixes.js":[212,9,310],"./models/product-info":[452,9,311],"./models/product-info.js":[452,9,311],"./models/repository/remote-location.model":[36,9],"./models/repository/remote-location.model.js":[36,9],"./models/repository/repository":[12,9],"./models/repository/repository.js":[12,9],"./models/resource/context-type":[149,9,312],"./models/resource/context-type.js":[149,9,312],"./models/resource/resource-details":[176,9,313],"./models/resource/resource-details.js":[176,9,313],"./models/resource/resource-graph-response":[453,9,314],"./models/resource/resource-graph-response.js":[453,9,314],"./models/resource/resource-info":[217,9,94],"./models/resource/resource-info.js":[217,9,94],"./models/resource/role-type":[218,9,315],"./models/resource/role-type.js":[218,9,315],"./models/security/security":[39,9],"./models/security/security.js":[39,9],"./models/settings/workbench-settings":[454,9,316],"./models/settings/workbench-settings.js":[454,9,316],"./models/similarity/similarity-index":[110,9,95],"./models/similarity/similarity-index-error":[354,9,317],"./models/similarity/similarity-index-error.js":[354,9,317],"./models/similarity/similarity-index-info":[355,9,55],"./models/similarity/similarity-index-info.js":[355,9,55],"./models/similarity/similarity-index-status":[107,9,318],"./models/similarity/similarity-index-status.js":[107,9,318],"./models/similarity/similarity-index-type":[106,9,319],"./models/similarity/similarity-index-type.js":[106,9,319],"./models/similarity/similarity-index.js":[110,9,95],"./models/similarity/similarity-query-type":[189,9,320],"./models/similarity/similarity-query-type.js":[189,9,320],"./models/similarity/similarity-result-type":[234,9,321],"./models/similarity/similarity-result-type.js":[234,9,321],"./models/similarity/similarity-search":[235,9,127],"./models/similarity/similarity-search-type":[152,9,322],"./models/similarity/similarity-search-type.js":[152,9,322],"./models/similarity/similarity-search.js":[235,9,127],"./models/similarity/similarity-view-mode":[356,9,323],"./models/similarity/similarity-view-mode.js":[356,9,323],"./models/sparql-template/sparql-template-error":[236,9,324],"./models/sparql-template/sparql-template-error.js":[236,9,324],"./models/sparql-template/sparql-template-info":[237,9,325],"./models/sparql-template/sparql-template-info.js":[237,9,325],"./models/sparql/cancel-aborting-query":[357,9,326],"./models/sparql/cancel-aborting-query.js":[357,9,326],"./models/sparql/constants":[171,9,327],"./models/sparql/constants.js":[171,9,327],"./models/sparql/sparql-query-error-info":[455,9,328],"./models/sparql/sparql-query-error-info.js":[455,9,328],"./models/sparql/tab-query-model":[169,9,329],"./models/sparql/tab-query-model.js":[169,9,329],"./models/themes/theme":[456,9,330],"./models/themes/theme.js":[456,9,330],"./models/ttyg/agent-form":[287,9,6],"./models/ttyg/agent-form.js":[287,9,6],"./models/ttyg/agent-instructions-explain":[215,9,331],"./models/ttyg/agent-instructions-explain.js":[215,9,331],"./models/ttyg/agents":[141,9,130],"./models/ttyg/agents.js":[141,9,130],"./models/ttyg/chat-answer":[148,9,332],"./models/ttyg/chat-answer.js":[148,9,332],"./models/ttyg/chat-item":[112,9,131],"./models/ttyg/chat-item.js":[112,9,131],"./models/ttyg/chat-message":[108,9,333],"./models/ttyg/chat-message.js":[108,9,333],"./models/ttyg/chats":[135,9,96],"./models/ttyg/chats.js":[135,9,96],"./models/ttyg/explain-response":[142,9,334],"./models/ttyg/explain-response.js":[142,9,334],"./models/yasgui-component":[273,9,336],"./models/yasgui-component.js":[273,9,336],"./namespaces/app":[457,9,28,70],"./namespaces/app.js":[457,9,28,70],"./namespaces/controllers":[358,9,337],"./namespaces/controllers.js":[358,9,337],"./namespaces/directives":[359,7,338],"./namespaces/directives.js":[359,7,338],"./namespaces/plugin":[458,7,339],"./namespaces/plugin.js":[458,7,339],"./plugin":[460,7,341],"./plugin-registry":[459,7,340],"./plugin-registry.js":[459,7,340],"./plugin.js":[460,7,341],"./plugins/app":[461,9,134],"./plugins/app.js":[461,9,134],"./plugins/controllers":[360,9,342],"./plugins/controllers.js":[360,9,342],"./plugins/plugin":[462,7,343],"./plugins/plugin.js":[462,7,343],"./queries/app":[463,9,80],"./queries/app.js":[463,9,80],"./queries/controllers":[361,9,93],"./queries/controllers.js":[361,9,93],"./queries/plugin":[464,7,344],"./queries/plugin.js":[464,7,344],"./rdfrank/app":[465,9,97],"./rdfrank/app.js":[465,9,97],"./rdfrank/plugin":[466,7,345],"./rdfrank/plugin.js":[466,7,345],"./rdfrank/templates/filter-list.html":[598,7,462],"./repositories/app":[467,9,12,23,83],"./repositories/app.js":[467,9,12,23,83],"./repositories/controllers":[248,9,12],"./repositories/controllers.js":[248,9,12],"./repositories/controllers/manage-remote-location-dialog.controller":[252,9,87],"./repositories/controllers/manage-remote-location-dialog.controller.js":[252,9,87],"./repositories/fedx-repo.directive":[363,7,346],"./repositories/fedx-repo.directive.js":[363,7,346],"./repositories/ontop-repo.directive":[379,9,12,23],"./repositories/ontop-repo.directive.js":[379,9,12,23],"./repositories/plugin":[468,7,347],"./repositories/plugin.js":[468,7,347],"./repositories/repository.constants":[159,9,348],"./repositories/repository.constants.js":[159,9,348],"./repositories/templates/fedx-repo.html":[599,7,463],"./repositories/templates/manage-remote-location-dialog.template.html":[600,7,464],"./repositories/templates/ontop-repo.html":[601,7,465],"./resources/app":[469,9,0,11,135],"./resources/app.js":[469,9,0,11,135],"./resources/chart-models/chart-data":[103,9,0,349],"./resources/chart-models/chart-data.js":[103,9,0,349],"./resources/chart-models/cluster-health/cluster-health-chart":[341,9,0,136],"./resources/chart-models/cluster-health/cluster-health-chart.js":[341,9,0,136],"./resources/chart-models/performance/connections-chart":[340,9,0,137],"./resources/chart-models/performance/connections-chart.js":[340,9,0,137],"./resources/chart-models/performance/epool-chart":[342,9,0,138],"./resources/chart-models/performance/epool-chart.js":[342,9,0,138],"./resources/chart-models/performance/queries-chart":[338,9,0,139],"./resources/chart-models/performance/queries-chart.js":[338,9,0,139],"./resources/chart-models/resource/cpu-load-chart":[336,9,0,140],"./resources/chart-models/resource/cpu-load-chart.js":[336,9,0,140],"./resources/chart-models/resource/disk-storage-chart":[337,9,0,141],"./resources/chart-models/resource/disk-storage-chart.js":[337,9,0,141],"./resources/chart-models/resource/file-descriptors-chart":[334,9,0,142],"./resources/chart-models/resource/file-descriptors-chart.js":[334,9,0,142],"./resources/chart-models/resource/global-cache-chart":[339,9,0,143],"./resources/chart-models/resource/global-cache-chart.js":[339,9,0,143],"./resources/chart-models/resource/heap-memory-chart":[187,9,0,144],"./resources/chart-models/resource/heap-memory-chart.js":[187,9,0,144],"./resources/chart-models/resource/non-heap-memory-chart":[335,9,0,98],"./resources/chart-models/resource/non-heap-memory-chart.js":[335,9,0,98],"./resources/controllers":[250,9,0,11],"./resources/controllers.js":[250,9,0,11],"./resources/directives":[365,9,0,350],"./resources/directives.js":[365,9,0,350],"./resources/plugin":[470,7,351],"./resources/plugin.js":[470,7,351],"./rest/aclmanagement.rest.service":[253,7,352],"./rest/aclmanagement.rest.service.js":[253,7,352],"./rest/autocomplete.rest.service":[34,7],"./rest/autocomplete.rest.service.js":[34,7],"./rest/cluster.rest.service":[139,7,353],"./rest/cluster.rest.service.js":[139,7,353],"./rest/connectors.rest.service":[111,7,354],"./rest/connectors.rest.service.js":[111,7,354],"./rest/explore.rest.service":[216,7,355],"./rest/explore.rest.service.js":[216,7,355],"./rest/export.rest.service":[293,7,356],"./rest/export.rest.service.js":[293,7,356],"./rest/graph-config.rest.service":[298,9,92],"./rest/graph-config.rest.service.js":[298,9,92],"./rest/graph-data.rest.service":[185,7,357],"./rest/graph-data.rest.service.js":[185,7,357],"./rest/graphql.rest.service":[276,9,145],"./rest/graphql.rest.service.js":[276,9,145],"./rest/guides.rest.service":[83,7],"./rest/guides.rest.service.js":[83,7],"./rest/import.rest.service":[319,7,358],"./rest/import.rest.service.js":[319,7,358],"./rest/jdbc.rest.service":[344,7,359],"./rest/jdbc.rest.service.js":[344,7,359],"./rest/license.rest.service":[35,7],"./rest/license.rest.service.js":[35,7],"./rest/locations.rest.service":[63,7],"./rest/locations.rest.service.js":[63,7],"./rest/mappers/aclmanagement-mapper":[254,9,101],"./rest/mappers/aclmanagement-mapper.js":[254,9,101],"./rest/mappers/active-operations-mapper":[47,9],"./rest/mappers/active-operations-mapper.js":[47,9],"./rest/mappers/autocomplete-mapper":[37,9],"./rest/mappers/autocomplete-mapper.js":[37,9],"./rest/mappers/connectors-mapper":[134,9,120],"./rest/mappers/connectors-mapper.js":[134,9,120],"./rest/mappers/dynamic-form-fied-mapper":[284,9,58],"./rest/mappers/dynamic-form-fied-mapper.js":[284,9,58],"./rest/mappers/graph-list-mapper":[50,9],"./rest/mappers/graph-list-mapper.js":[50,9],"./rest/mappers/graphs-config-mapper":[158,9,124],"./rest/mappers/graphs-config-mapper.js":[158,9,124],"./rest/mappers/import-mapper":[328,9,61],"./rest/mappers/import-mapper.js":[328,9,61],"./rest/mappers/monitor-backup-and-restore-mapper":[44,9],"./rest/mappers/monitor-backup-and-restore-mapper.js":[44,9],"./rest/mappers/namespaces-mapper":[31,9],"./rest/mappers/namespaces-mapper.js":[31,9],"./rest/mappers/repositories-mapper":[38,9],"./rest/mappers/repositories-mapper.js":[38,9],"./rest/mappers/saved-query-mapper":[199,9,128],"./rest/mappers/saved-query-mapper.js":[199,9,128],"./rest/mappers/similarity-index-mapper":[117,9,81],"./rest/mappers/similarity-index-mapper.js":[117,9,81],"./rest/mock-backend/graphql-rest-service-mock":[210,9,360],"./rest/mock-backend/graphql-rest-service-mock.js":[210,9,360],"./rest/monitoring.rest.service":[55,9],"./rest/monitoring.rest.service.js":[55,9],"./rest/plugins.rest.service":[61,7],"./rest/plugins.rest.service.js":[61,7],"./rest/rdf4j.repositories.rest.service":[59,9],"./rest/rdf4j.repositories.rest.service.js":[59,9],"./rest/rdfrank.rest.service":[362,7,361],"./rest/rdfrank.rest.service.js":[362,7,361],"./rest/repositories.rest.service":[26,9],"./rest/repositories.rest.service.js":[26,9],"./rest/saved-graphs.rest.service":[297,7,362],"./rest/saved-graphs.rest.service.js":[297,7,362],"./rest/security.rest.service":[74,7],"./rest/security.rest.service.js":[74,7],"./rest/similarity.rest.service":[123,7,363],"./rest/similarity.rest.service.js":[123,7,363],"./rest/sparql-templates.rest.service":[366,7,364],"./rest/sparql-templates.rest.service.js":[366,7,364],"./rest/sparql.rest.service":[72,7],"./rest/sparql.rest.service.js":[72,7],"./rest/ttyg.rest.service":[375,9,8],"./rest/ttyg.rest.service.fake.backend":[286,9,132],"./rest/ttyg.rest.service.fake.backend.js":[286,9,132],"./rest/ttyg.rest.service.js":[375,9,8],"./rest/upload.rest.service":[320,7,365],"./rest/upload.rest.service.js":[320,7,365],"./security/app":[471,9,27,99],"./security/app.js":[471,9,27,99],"./security/controllers":[380,9,27],"./security/controllers.js":[380,9,27],"./security/controllers/user-settings.controller":[368,9,366],"./security/controllers/user-settings.controller.js":[368,9,366],"./security/directives/custom-prefix-tags-input.directive":[367,7,367],"./security/directives/custom-prefix-tags-input.directive.js":[367,7,367],"./security/plugin":[472,7,368],"./security/plugin.js":[472,7,368],"./security/services/authorities-util":[19,9],"./security/services/authorities-util.js":[19,9],"./security/services/constants":[0,9],"./security/services/constants.js":[0,9],"./security/services/user-mapper":[6,9],"./security/services/user-mapper.js":[6,9],"./security/templates/modal/default-authorities.html":[602,7,466],"./security/templates/roles.html":[603,7,467],"./security/templates/user.html":[604,7,468],"./security/templates/users.html":[605,7,469],"./settings/app":[364,9,146],"./settings/app.js":[364,9,146],"./settings/controllers":[238,9,369],"./settings/controllers.js":[238,9,369],"./settings/modal/location-settings.html":[606,7,470],"./settings/modal/validate-license.html":[607,7,471],"./settings/plugin":[473,7,370],"./settings/plugin.js":[473,7,370],"./similarity/app":[474,9,4,5,18,56],"./similarity/app.js":[474,9,4,5,18,56],"./similarity/controllers/create-index.controller":[381,9,18,296],"./similarity/controllers/create-index.controller.js":[381,9,18,296],"./similarity/controllers/similarity-list.controller":[369,9,39],"./similarity/controllers/similarity-list.controller.js":[369,9,39],"./similarity/plugin":[475,7,371],"./similarity/plugin.js":[475,7,371],"./sparql-editor/app":[476,9,4,5,22,372],"./sparql-editor/app.js":[476,9,4,5,22,372],"./sparql-editor/controllers":[382,9,22,52],"./sparql-editor/controllers.js":[382,9,22,52],"./sparql-editor/plugin":[477,7,373],"./sparql-editor/plugin.js":[477,7,373],"./sparql-editor/share-query-link.service":[271,9,147],"./sparql-editor/share-query-link.service.js":[271,9,147],"./sparql-template/app":[478,9,0,4,5,11,41],"./sparql-template/app.js":[478,9,0,4,5,11,41],"./sparql-template/controllers":[370,9,54],"./sparql-template/controllers.js":[370,9,54],"./sparql-template/plugin":[479,7,374],"./sparql-template/plugin.js":[479,7,374],"./stats/app":[480,9,375],"./stats/app.js":[480,9,375],"./stats/plugin":[481,7,376],"./stats/plugin.js":[481,7,376],"./templates/graphdb-small.svg":[608,7,492],"./templates/loader/ot-loader.svg":[609,7,493],"./templates/modal/add-fedx-remote-repo.html":[610,7,472],"./templates/modal/add-location.html":[611,7,473],"./templates/modal/edit-location.html":[612,7,474],"./templates/modal/editRepoFile.html":[613,7,475],"./templates/modal/upload-repository-config.html":[614,7,476],"./templates/pageInfoTooltip.html":[615,7,477],"./templates/repositorySize.html":[616,7,478],"./templates/titlePopoverTemplate.html":[617,7,479],"./treeview/ng-tree":[482,7,377],"./treeview/ng-tree.js":[482,7,377],"./ttyg/app":[483,9,7,6,8,10,29],"./ttyg/app.js":[483,9,7,6,8,10,29],"./ttyg/controllers/agent-instructions-explain-modal.controller":[179,9,6,8,10,36],"./ttyg/controllers/agent-instructions-explain-modal.controller.js":[179,9,6,8,10,36],"./ttyg/controllers/agent-settings-modal.controller":[245,9,6,8,10,35],"./ttyg/controllers/agent-settings-modal.controller.js":[245,9,6,8,10,35],"./ttyg/controllers/ttyg-view.controller":[371,9,7,6,8,10,30],"./ttyg/controllers/ttyg-view.controller.js":[371,9,7,6,8,10,30],"./ttyg/directives/agent-list.directive":[241,9,148],"./ttyg/directives/agent-list.directive.js":[241,9,148],"./ttyg/directives/agent-select-menu.directive":[242,9,149],"./ttyg/directives/agent-select-menu.directive.js":[242,9,149],"./ttyg/directives/chat-item-detail.directive":[190,9,7,20,335],"./ttyg/directives/chat-item-detail.directive.js":[190,9,7,20,335],"./ttyg/directives/chat-list.directive":[239,9,67],"./ttyg/directives/chat-list.directive.js":[239,9,67],"./ttyg/directives/chat-panel.directive":[240,9,7,20,62],"./ttyg/directives/chat-panel.directive.js":[240,9,7,20,62],"./ttyg/directives/no-agents-view.directive":[243,9,150],"./ttyg/directives/no-agents-view.directive.js":[243,9,150],"./ttyg/directives/show-tooltip-on-overflow.directive":[244,7,378],"./ttyg/directives/show-tooltip-on-overflow.directive.js":[244,7,378],"./ttyg/model/agent-settings-modal":[247,9,379],"./ttyg/model/agent-settings-modal.js":[247,9,379],"./ttyg/plugin":[484,7,380],"./ttyg/plugin.js":[484,7,380],"./ttyg/services/agent-instruction-explain.mapper":[289,9,129],"./ttyg/services/agent-instruction-explain.mapper.js":[289,9,129],"./ttyg/services/agents.mapper":[214,9,6,381],"./ttyg/services/agents.mapper.js":[214,9,6,381],"./ttyg/services/chat-message.mapper":[184,9,82],"./ttyg/services/chat-message.mapper.js":[184,9,82],"./ttyg/services/chats.mapper":[285,9,57],"./ttyg/services/chats.mapper.js":[285,9,57],"./ttyg/services/constants":[128,9,382],"./ttyg/services/constants.js":[128,9,382],"./ttyg/services/explain.mapper":[288,9,133],"./ttyg/services/explain.mapper.js":[288,9,133],"./ttyg/services/ttyg-context.service":[102,9,383],"./ttyg/services/ttyg-context.service.js":[102,9,383],"./ttyg/services/ttyg-storage.service":[246,7,384],"./ttyg/services/ttyg-storage.service.js":[246,7,384],"./ttyg/services/ttyg.utils":[138,9,385],"./ttyg/services/ttyg.utils.js":[138,9,385],"./ttyg/templates/agent-list.html":[618,7,480],"./ttyg/templates/agent-select-menu.html":[619,7,481],"./ttyg/templates/autocomplete-iri-discovery-search.html":[620,7,482],"./ttyg/templates/chat-item-detail.html":[621,7,483],"./ttyg/templates/chat-list.html":[622,7,484],"./ttyg/templates/chat-panel.html":[623,7,485],"./ttyg/templates/chatInfo.html":[624,7,486],"./ttyg/templates/iri-discovery-search.html":[625,7,487],"./ttyg/templates/modal/agent-instructions-explain-modal.html":[626,7,488],"./ttyg/templates/modal/agent-settings-modal.html":[627,7,489],"./ttyg/templates/no-agents-view.html":[628,7,490],"./ttyg/templates/ttyg.html":[629,7,491],"./utils/date-utils":[327,9,386],"./utils/date-utils.js":[327,9,386],"./utils/documentation-url-resolver":[17,9],"./utils/documentation-url-resolver.js":[17,9],"./utils/error-utils":[69,7],"./utils/error-utils.js":[69,7],"./utils/file-types":[175,7,387],"./utils/file-types.js":[175,7,387],"./utils/file-utils":[32,9],"./utils/file-utils.js":[32,9],"./utils/hash-utils":[28,9],"./utils/hash-utils.js":[28,9],"./utils/html-util":[42,9],"./utils/html-util.js":[42,9],"./utils/http-utils":[23,9],"./utils/http-utils.js":[23,9],"./utils/local-storage-adapter":[15,7],"./utils/local-storage-adapter.js":[15,7],"./utils/map-object":[22,9],"./utils/map-object.js":[22,9],"./utils/notifications":[118,7,388],"./utils/notifications.js":[118,7,388],"./utils/number-utils":[33,9],"./utils/number-utils.js":[33,9],"./utils/role-name-prefix-utils":[485,9,389],"./utils/role-name-prefix-utils.js":[485,9,389],"./utils/route-constants":[168,9,390],"./utils/route-constants.js":[168,9,390],"./utils/sequence-generator-util":[51,9],"./utils/sequence-generator-util.js":[51,9],"./utils/size-util":[41,9],"./utils/size-util.js":[41,9],"./utils/string-utils":[120,9,391],"./utils/string-utils.js":[120,9,391],"./utils/uri-utils":[56,7],"./utils/uri-utils.js":[56,7],"./utils/url-utils":[143,9,392],"./utils/url-utils.js":[143,9,392],"./utils/user-utils":[2,9],"./utils/user-utils.js":[2,9],"./utils/workbench-settings-storage-service":[81,7],"./utils/workbench-settings-storage-service.js":[81,7],"./utils/yasgui-utils":[272,9,37],"./utils/yasgui-utils.js":[272,9,37],"./utils/yasr-utils":[486,9,393],"./utils/yasr-utils.js":[486,9,393]};function i(e){if(!n.o(r,e))return Promise.resolve().then((function(){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}));var t=r[e],i=t[0];return Promise.all(t.slice(2).map(n.e)).then((function(){return n.t(i,t[1])}))}i.keys=function(){return Object.keys(r)},i.id=529,e.exports=i},53:function(e,t,n){"use strict";n.r(t);n(10),n(26),n(63),n(35),n(98),n(99),n(30);var r=n(20),i=n(28),o=n(36),a=n(25);function s(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,a,s=[],u=!0,l=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=o.call(n)).done)&&(s.push(r.value),s.length!==t);u=!0);}catch(e){l=!0,i=e}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw i}}return s}}(e,t)||function(e,t){if(e){if("string"==typeof e)return u(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?u(e,t):void 0}}(e,t)||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 u(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function l(e){return(l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}angular.module("graphdb.framework.core.services.repositories",["ngCookies","graphdb.framework.rest.repositories.service","graphdb.framework.rest.locations.service","graphdb.framework.rest.license.service","toastr","graphdb.framework.utils.event-emitter-service"]).service("$repositories",["toastr","$rootScope","$timeout","$location","productInfo","$jwtAuth","RepositoriesRestService","LocationsRestService","LicenseRestService","$translate","$q","RepositoryStorage","EventEmitterService","RDF4JRepositoriesRestService",function(e,t,n,u,c,h,p,f,d,g,m,v,y,b){var w=this;this.location={uri:"",label:"Local",local:!0},this.locationError="",this.loading=!0,this.locations=[this.location],this.repositories=new Map,this.locationsShouldReload=!0;var x,S=this,E=function(t,n){S.loading=!1,t&&(S.location={},S.locationError=n,S.repositories=new Map,S.setRepository(""),t.statusText?e.error(t.statusText,g.instant("repositories.service.error.loading.location")):e.error(g.instant("repositories.service.error.loading.location")))};this.resetActiveRepository=function(){var e=this.getActiveRepositoryObjectFromStorage(),n=S.repositories.get(e.location),r=!1;n&&(r=n.find((function(t){return t.id===e.id}))),r?h.canReadRepo(e)||h.hasGraphqlReadRights(e)?t.$broadcast("repositoryIsSet",{newRepo:!1}):this.setRepository(""):this.setRepository(this.location.defaultRepository?{id:this.location.defaultRepository,location:this.location.uri}:"")},this.checkLocationsDegraded=function(e){this.locations.forEach((function(t){t.local||(t.errorMsg&&S.repositories.delete(t.uri)&&S.resetActiveRepository(),d.getVersion(t.uri).success((function(e){"object"===l(e)?e.productVersion!==c.productVersion&&(t.degradedReason=g.instant("repositories.service.different.gdb.version",{location:t.name})):t.degradedReason=g.instant("repositories.service.different.gdb.version",{location:t.name})})).error((function(n){t.errorMsg=n,e||(S.locationsShouldReload=!0)})))}))},this.getDegradedReason=function(){var e=this.getActiveRepositoryObjectFromStorage(),t=this.locations.find((function(t){return t.uri===e.location}));return t?t.degradedReason:""},this.clearLocationErrorMsg=function(e){var t=this.locations.find((function(t){return t.uri===e}));t&&t.errorMsg&&(t.errorMsg=null)},this.initQuick=function(){this.hasActiveLocation()&&this.init(null,null,!0)},this.assignHashesToRepositories=function(e){return e.map((function(e){var t=Object(i.md5HashGenerator)();return e.hash=t(JSON.stringify(e)),e}))},this.init=function(e,n,r){return this.loading=!0,r||(this.locationsShouldReload=!0),f.getActiveLocation().then((function(i){if(i.data){var o=i.data;if(o.active)return p.getRepositories().then((function(n){S.location=o,Object.entries(n.data).forEach((function(e){var t=s(e,2),n=t[0],r=t[1],i=S.assignHashesToRepositories(r);S.clearLocationErrorMsg(n),S.repositories.set(n,i)})),S.resetActiveRepository(),E(),S.checkLocationsDegraded(r),t.globalLocation=S.location,t.globalRepositories=S.getRepositories(),e&&e()})).catch((function(e){E(e),n&&n()}))}else E(),r&&(S.locationsShouldReload=!0),S.location="",S.repositories=new Map,S.setRepository("");t.globalLocation=S.location,t.globalRepositories=S.getRepositories()})).catch((function(e){E(e),n&&n()}))},this.getLocations=function(e){var t=this;if(this.locationsShouldReload||x)return x||(this.locationsShouldReload=!1,this.locations=[this.location],x=f.getLocations(e).then((function(e){return S.locations=e.data.map((function(e){return new o.RemoteLocationModel(e)})),t.locations})).catch((function(){n((function(){S.locationsShouldReload=!0}),2e3)})).finally((function(){x=null}))),x;var r=m.defer();return r.resolve(this.locations),r.promise},this.getActiveLocation=function(){return this.location},this.hasActiveLocation=function(){return!_.isEmpty(this.location)},this.getLocationError=function(){return this.locationError?this.locationError:g.instant("repositories.service.no.active.location")},this.isLoadingLocation=function(){return this.loading},this.getRepositories=function(){var e=[];return this.repositories.forEach((function(t){return e.push.apply(e,t)})),e},this.getRepository=function(e){return this.getRepositories().find((function(t){return t.id===e}))},this.getReadableRepositories=function(){return _.filter(this.getRepositories(),(function(e){return h.canReadRepo(e)}))},this.getReadableGraphdbRepositories=function(){return this.getReadableRepositories().filter((function(e){return"graphdb"===e.type}))},this.getAllAccessibleRepositories=function(){return _.filter(this.getRepositories(),(function(e){return h.canReadRepo(e)||h.hasGraphqlReadRights(e)}))},this.getRepositoriesAsSelectMenuOptions=function(e){return e().map((function(e){return new a.SelectMenuOptionsModel({value:e.id,label:e.id,data:{repository:e}})}))},this.getLocalReadableGraphdbRepositories=function(){return this.getReadableGraphdbRepositories().filter((function(e){return!0===e.local}))},this.getLocalReadablGraphdbRepositoryIds=function(){return this.getLocalReadableGraphdbRepositories().map((function(e){return e.id}))},this.getWritableRepositories=function(){var e=this;return _.filter(this.getRepositories(),(function(t){return h.canWriteRepo(t)&&!e.isActiveRepoOntopType(t)}))},this.getActiveRepositoryObjectFromStorage=function(){return v.getActiveRepositoryObject()},this.getActiveRepository=function(){return v.getActiveRepository()},this.getActiveRepositoryObject=function(){var e=this.getActiveRepositoryObjectFromStorage(),t=this.repositories.get(e.location);return t?t.find((function(t){return t.id===e.id})):null},this.isSystemRepository=function(){return"SYSTEM"===this.getActiveRepositoryObjectFromStorage().id},this.isActiveRepoOntopType=function(e){var t;return e||(e=this.getActiveRepositoryObject()),e&&(t=this.repositories.get(e.location).find((function(t){return t.id===e.id})))?"graphdb:OntopRepository"===t.sesameType:void 0===t},this.isActiveRepoFedXType=function(){var e,t=this.getActiveRepositoryObject();return t&&(e=this.repositories.get(t.location).find((function(e){return e.id===t.id})))?"graphdb:FedXRepository"===e.sesameType:void 0===e},this.getLocationFromUri=function(e){return this.locations.find((function(t){return t.uri===e}))},this.setRepositoryHeaders=function(e){$.ajaxSetup().headers=$.ajaxSetup().headers||{},$.ajaxSetup().headers["X-GraphDB-Repository"]=e?e.id:void 0,$.ajaxSetup().headers["X-GraphDB-Repository-Location"]=e?e.location:void 0},this.setRepository=function(e){var n=this,r={oldRepository:this.repository,newRepository:e,cancel:!1};y.emit("repositoryWillChangeEvent",r,(function(r){r.cancel||(e?v.setActiveRepository(e.id,e.location):v.unsetActiveRepository(),n.setRepositoryHeaders(e),t.$broadcast("repositoryIsSet",{newRepo:!0}),!e||h.canReadRepo(e)||h.hasGraphqlReadRights(e)||n.setRepository(""),t.deniedPermissions={})}))},this.getDefaultRepository=function(){return this.hasActiveLocation()?this.location.defaultRepository:""},this.setDefaultRepository=function(t){if(this.hasActiveLocation()){var n=this;f.setDefaultRepository(t).success((function(){n.location.defaultRepository=t})).error((function(t){var n=getError(t);e.error(n,g.instant("common.error"))}))}else e.error(g.instant("repositories.service.no.active.location"),g.instant("common.error"))},this.deleteLocation=function(t){return f.deleteLocation(encodeURIComponent(t)).success((function(){var e=S.getActiveRepositoryObject();e&&e.location===t&&(S.location="",S.setRepository("")),S.init()})).error((function(t){var n=getError(t);e.error(n,g.instant("common.error"))}))},this.deleteRepository=function(t){return p.deleteRepository(t).success((function(){S.init()})).error((function(t){var n=getError(t);e.error(n,g.instant("common.error"))})).finally((function(){var e=S.getActiveRepositoryObject();e&&e.id===t.id&&e.location===t.location&&S.setRepository("")}))},this.restartRepository=function(t){return p.restartRepository(t).success((function(){e.success(g.instant("repositories.service.restarting.repo",{repositoryId:t.id})),S.initQuick()})).error((function(t){var n=getError(t);e.error(n,g.instant("common.error"))}))},this.getRepositoryTurtleConfig=function(e){return p.getRepositoryTurtleConfig(e)},this.isRepoActive=function(e){var t=this.getActiveRepositoryObjectFromStorage();return!!t.id&&(e.id===t.id&&e.location===t.location)},this.getRepositoriesFromLocation=function(e){return this.repositories.get(e)},this.getPrefixes=function(e){return b.getRepositoryNamespaces(e).then((function(e){var t={};return e.data.results.bindings.forEach((function(e){t[e.prefix.value]=e.namespace.value})),t}))},this.resolveSparqlEndpoint=function(e){return e===r.QueryMode.UPDATE?"repositories/".concat(w.getActiveRepository(),"/statements"):e===r.QueryMode.QUERY?"repositories/".concat(w.getActiveRepository()):void 0},t.$on("securityInit",(function(e,t,r,i){x=null,(!t||r||i)&&n((function(){S.init()}))})),t.$on("reloadLocations",(function(){S.locationsShouldReload=!0,S.getLocations().then((function(){return S.initQuick()}))}))}])},54:function(e,t,n){"use strict";n.r(t);n(10),n(73),n(68),n(62);var r=n(2);function i(e){return function(e){if(Array.isArray(e))return o(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return o(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?o(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}angular.module("graphdb.framework.core.services.jwtauth",["toastr","graphdb.framework.core.services.repository-storage","graphdb.framework.core.services.security-service","graphdb.framework.core.services.openIDService"]).service("$jwtAuth",["$http","toastr","$location","$rootScope","SecurityService","$openIDAuth","$translate","$q","$route","RepositoryStorage","AuthTokenService",function(e,t,n,o,a,s,u,l,c,h,p){var f=this,d=this;o.deniedPermissions={},o.setPermissionDenied=function(e){return!("/login"===e||!d.isAuthenticated())&&(d.isAuthenticated()&&f.hasGraphqlRightsOverCurrentRepo()||(o.deniedPermissions[e]=!0),!0)},o.hasPermission=function(){var e=n.path();return!o.deniedPermissions[e]},this.updateReturnUrl=function(){0!==n.url().indexOf("/login")&&(o.returnToUrl=n.url())},o.redirectToLogin=function(e,t){return d.authTokenIsType("Bearer")&&(e=!0),d.clearAuthenticationInternal(),d.updateReturnUrl(),n.path("/login"),t?n.search("noaccess"):e&&n.search("expired"),new Promise((function(e){setTimeout((function(){e(!0)}),100)}))},o.hasExternalAuthUser=function(){return d.hasExternalAuthUser()},this.securityEnabled=!0,this.freeAccess=!1,this.hasOverrideAuth=!1,this.externalAuthUser=!1,this.securityInitialized=!1;var g=this;this.getAuthenticatedUserFromBackend=function(e,t){a.getAuthenticatedUser().then((function(e){var t=p.getAuthToken();t&&t.startsWith("GDB")?(g.externalAuthUser=!1,g.principal=e,o.$broadcast("securityInit",g.securityEnabled,!0,g.freeAccess)):g.openIDEnabled&&t&&t.startsWith("Bearer")?g.authenticate(e,t):(g.externalAuthUser=!0,g.authenticate(e,""))})).catch((function(){e||!g.freeAccess?o.redirectToLogin(!1,t):(g.securityInitialized=!0,g.hasExplicitAuthentication()||g.clearAuthentication())}))},this.initSecurity=function(){this.securityInitialized=!1,a.getSecurityConfig().then((function(e){if(g.securityEnabled=e.data.enabled,g.externalAuth=e.data.hasExternalAuth,g.authImplementation=e.data.authImplementation,g.openIDEnabled=e.data.openIdEnabled,g.passwordLoginEnabled=e.data.passwordLoginEnabled,g.securityEnabled){var t=e.data.freeAccess;g.freeAccess=t.enabled,g.freeAccess&&(g.freeAccessPrincipal={authorities:t.authorities,appSettings:t.appSettings}),g.openIDEnabled?(g.openIDConfig=e.data.methodSettings.openid,g.gdbUrl=n.absUrl().replace(n.url().substr(1),""),s.initOpenId(g.openIDConfig,g.gdbUrl,(function(e){p.setAuthToken(s.authHeaderGraphDB()),console.log("oidc: set id/access token as GraphDB auth"),g.getAuthenticatedUserFromBackend(!0,e)}),(function(){console.log("oidc: not logged or login error"),g.authTokenIsType("Bearer")?setTimeout((function(){o.redirectToLogin(!0)}),0):g.getAuthenticatedUserFromBackend()}))):g.getAuthenticatedUserFromBackend()}else{p.clearAuthToken();var r=e.data.overrideAuth;if(g.hasOverrideAuth=r.enabled,!g.hasOverrideAuth)return a.getAdminUser().then((function(e){g.principal={username:"admin",appSettings:e.appSettings,authorities:e.grantedAuthorities,grantedAuthoritiesUiModel:e.grantedAuthoritiesUiModel},o.$broadcast("securityInit",g.securityEnabled,!0,g.hasOverrideAuth)}));g.principal={username:"overrideauth",authorities:r.authorities,appSettings:r.appSettings},o.$broadcast("securityInit",g.securityEnabled,!0,g.hasOverrideAuth)}}))},this.initSecurity(),this.reinitializeSecurity=function(){this.securityInitialized||this.initSecurity()},this.isSecurityEnabled=function(){return this.securityEnabled},this.hasExternalAuth=function(){return this.externalAuth},this.getAuthImplementation=function(){return this.authImplementation},this.isFreeAccessEnabled=function(){return this.freeAccess},this.isDefaultAuthEnabled=function(){return this.hasOverrideAuth&&this.principal&&"overrideauth"===this.principal.username},this.authTokenIsType=function(e){var t=p.getAuthToken();return t&&t.startsWith(e)},this.loginOpenID=function(){s.login(this.openIDConfig,this.gdbUrl)},this.toggleSecurity=function(e){return e!==this.securityEnabled?a.toggleSecurity(e).then((function(){t.success(u.instant("jwt.auth.security.status",{status:u.instant(e?"enabled.status":"disabled.status")})),p.clearAuthToken(),g.initSecurity(),g.securityEnabled=e})).catch((function(e){t.error(e.data,u.instant("common.error"))})):Promise.resolve()},this.toggleFreeAccess=function(e,n,r,i){var s=this;(e!==this.freeAccess||i)&&(this.freeAccessPrincipal=e?{authorities:n,appSettings:r}:void 0,a.setFreeAccess({enabled:e?"true":"false",authorities:n,appSettings:r}).then((function(){s.freeAccess=e,i?t.success(u.instant("jwt.auth.free.access.updated.msg")):t.success(u.instant("jwt.auth.free.access.status",{status:u.instant(e?"enabled.status":"disabled.status")}))})).catch((function(e){t.error(e.data,u.instant("common.error"))})),o.$broadcast("securityInit",this.securityEnabled,this.hasExplicitAuthentication(),this.freeAccess))},this.authenticate=function(e,t){var n=this;return new Promise((function(r){t?(p.setAuthToken(t),n.externalAuthUser=!1):p.clearAuthToken(),n.principal=e,o.deniedPermissions={},n.securityInitialized=!0,d.canReadRepo(h.getActiveRepositoryObject())||(h.unsetActiveRepository(),o.deniedPermissions={}),o.$broadcast("securityInit",n.securityEnabled,g.hasExplicitAuthentication(),n.freeAccess),setTimeout((function(){r(!0)}))}))},this.authenticateOpenID=function(e){p.clearAuthToken(),e&&(p.setAuthToken(e),this.externalAuthUser=!1)},this.hasExternalAuthUser=function(){return this.externalAuthUser},this.hasExplicitAuthentication=function(){return null!=p.getAuthToken()||this.externalAuthUser},this.getPrincipal=function(){var e=this;if(this.principal)return Promise.resolve(this.principal);var t=l.defer();return o.$on("securityInit",(function(){t.resolve(e.principal)})),t.promise},this.clearAuthenticationInternal=function(){s.softLogout(),this.principal=this.freeAccessPrincipal,p.clearAuthToken()},this.clearAuthentication=function(){this.clearAuthenticationInternal(),o.$broadcast("securityInit",this.securityEnabled,!1,this.freeAccess)},this.isAuthenticated=function(){return!this.securityEnabled||this.hasExplicitAuthentication()},this.hasPermission=function(){},this.hasRole=function(e){if(void 0!==e&&(this.securityEnabled||this.hasOverrideAuth)){"string"==typeof e&&(e=[e]);var t=!_.isEmpty(this.principal);return!!t&&("IS_AUTHENTICATED_FULLY"===e[0]?t:_.intersection(e,this.principal.authorities).length>0)}return!0},this.hasAuthority=function(){var e=this;return!!c.current&&(!!this.hasAdminRole()||(!c.current.allowAuthorities||(!h.getActiveRepository()||(!this.principal||(!(c.current.allowAuthorities.length>0)||m(c.current.allowAuthorities).some((function(t){return e.principal.authorities.indexOf(t)>-1})))))))};var m=function(e){if(e){var t=h.getActiveRepository();if(!t)return e;var n=e.map((function(e){return e.replace("{repoId}",t)})),r=e.map((function(e){return e.replace("{repoId}","*")}));return[].concat(i(n),i(r))}};this.isAdmin=function(){return this.hasRole(r.UserRole.ROLE_ADMIN)},this.isRepoManager=function(){return this.hasRole(r.UserRole.ROLE_REPO_MANAGER)},this.hasRoleMonitor=function(){return this.hasRole(r.UserRole.ROLE_MONITORING)},this.checkForWrite=function(e,t){return"WRITE_REPO"===e?this.canWriteRepo(t):this.hasRole(e)},this.hasAdminRole=function(){return this.isAdmin()||this.isRepoManager()},this.canWriteRepo=function(e){return!!e&&(!this.securityEnabled&&!this.hasOverrideAuth||!_.isEmpty(this.principal)&&(!!this.hasAdminRole()||this.checkRights(e,"WRITE")))},this.canReadRepo=function(e){return!(!e||""===e.id)&&(!this.securityEnabled||!_.isEmpty(this.principal)&&(!!this.hasAdminRole()||this.checkRights(e,"READ")))},this.checkRights=function(e,t){return!!e&&("SYSTEM"!==e.id&&this.hasBaseRights(t,e))},this.hasBaseRights=function(e,t){var n=t.location?"".concat(t.id,"@").concat(t.location):t.id,r="".concat(e,"_REPO_").concat(n),i="".concat(e,"_REPO_*");return this.principal.authorities.indexOf(r)>-1||this.principal.authorities.indexOf(i)>-1},this.hasGraphqlRightsOverCurrentRepo=function(){var e=h.getActiveRepositoryObject();return this.hasGraphqlReadRights(e)||this.hasGraphqlWriteRights(e)},this.hasGraphqlWriteRights=function(e){return!(!e||""===e.id)&&this.hasGraphqlAuthority("WRITE",e)},this.hasGraphqlReadRights=function(e){return!(!e||""===e.id)&&this.hasGraphqlAuthority("READ",e)},this.hasGraphqlAuthority=function(e,t){if(!this.principal)return!1;var n=t.location?"".concat(t.id,"@").concat(t.location):t.id,r="".concat(e,"_REPO_").concat(n,":GRAPHQL"),i="".concat(e,"_REPO_*:GRAPHQL");return this.principal.authorities.indexOf(r)>-1||this.principal.authorities.indexOf(i)>-1},this.updateUserData=function(e){return a.updateUserData(e)}}])},55:function(e,t,n){"use strict";n.r(t);var r=n(44),i=n(47);angular.module("graphdb.framework.rest.monitoring.service",[]).factory("MonitoringRestService",s),s.$inject=["$http"];var o="".concat("rest/monitor","/repository"),a="".concat("rest/monitor","/backup");function s(e){return{monitorResources:function(){return e.get("".concat("rest/monitor","/infrastructure"))},monitorStructures:function(){return e.get("".concat("rest/monitor","/structures"))},monitorCluster:function(){return e.get("".concat("rest/monitor","/cluster"))},monitorGC:function(){return e.post("".concat("rest/monitor","/infrastructure/gc"))},monitorQuery:function(t){return e.get("".concat(o,"/").concat(t,"/query/active"))},monitorBackup:function(){return e.get(a).then((function(e){return Object(r.mapBackupAndRestoreResponseToModel)(e.data)}))},monitorActiveOperations:function(t){return e.get("".concat(o,"/").concat(t,"/operations")).then((function(e){return Object(i.mapActiveOperationResponseToModel)(e.data)}))},deleteQuery:function(t,n){return e.delete("".concat(o,"/").concat(n,"/query?query=").concat(encodeURIComponent(t)))},getQueryCount:function(t){return e({url:"".concat(o,"/").concat(t,"/query/count"),method:"GET",timeout:1e4})},checkAutocompleteStatus:function(){return e.get("rest/autocomplete/enabled")},monitorQueryTransactionStatistics:function(t){return e.get("".concat(o,"/").concat(t))}}}},56:function(e,t){var n;angular.module("graphdb.framework.utils.uriutils",[]).factory("UriUtils",r);try{n=new RegExp("^<?[a-z](?:[-a-z0-9\\+\\.])*:(?:\\/\\/(?:(?:%[0-9a-f][0-9a-f]|[-a-z0-9\\._~\\u{A0}-\\u{D7FF}\\u{F900}-\\u{FDCF}\\u{FDF0}-\\u{FFEF}\\u{10000}-\\u{1FFFD}\\u{20000}-\\u{2FFFD}\\u{30000}-\\u{3FFFD}\\u{40000}-\\u{4FFFD}\\u{50000}-\\u{5FFFD}\\u{60000}-\\u{6FFFD}\\u{70000}-\\u{7FFFD}\\u{80000}-\\u{8FFFD}\\u{90000}-\\u{9FFFD}\\u{A0000}-\\u{AFFFD}\\u{B0000}-\\u{BFFFD}\\u{C0000}-\\u{CFFFD}\\u{D0000}-\\u{DFFFD}\\u{E1000}-\\u{EFFFD}!\\$&'\\(\\)\\*\\+,;=:])*@)?(?:\\[(?:(?:(?:[0-9a-f]{1,4}:){6}(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:[0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])(?:\\.(?:[0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])){3})|::(?:[0-9a-f]{1,4}:){5}(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:[0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])(?:\\.(?:[0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])){3})|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:[0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])(?:\\.(?:[0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])){3})|(?:[0-9a-f]{1,4}:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:[0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])(?:\\.(?:[0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])){3})|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:[0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])(?:\\.(?:[0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])){3})|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:[0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])(?:\\.(?:[0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])){3})|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:[0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])(?:\\.(?:[0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])){3})|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|v[0-9a-f]+[-a-z0-9\\._~!\\$&'\\(\\)\\*\\+,;=:]+)\\]|(?:[0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])(?:\\.(?:[0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])){3}|(?:%[0-9a-f][0-9a-f]|[-a-z0-9\\._~\\u{A0}-\\u{D7FF}\\u{F900}-\\u{FDCF}\\u{FDF0}-\\u{FFEF}\\u{10000}-\\u{1FFFD}\\u{20000}-\\u{2FFFD}\\u{30000}-\\u{3FFFD}\\u{40000}-\\u{4FFFD}\\u{50000}-\\u{5FFFD}\\u{60000}-\\u{6FFFD}\\u{70000}-\\u{7FFFD}\\u{80000}-\\u{8FFFD}\\u{90000}-\\u{9FFFD}\\u{A0000}-\\u{AFFFD}\\u{B0000}-\\u{BFFFD}\\u{C0000}-\\u{CFFFD}\\u{D0000}-\\u{DFFFD}\\u{E1000}-\\u{EFFFD}!\\$&'\\(\\)\\*\\+,;=@])*)(?::[0-9]*)?(?:\\/(?:(?:%[0-9a-f][0-9a-f]|[-a-z0-9\\._~\\u{A0}-\\u{D7FF}\\u{F900}-\\u{FDCF}\\u{FDF0}-\\u{FFEF}\\u{10000}-\\u{1FFFD}\\u{20000}-\\u{2FFFD}\\u{30000}-\\u{3FFFD}\\u{40000}-\\u{4FFFD}\\u{50000}-\\u{5FFFD}\\u{60000}-\\u{6FFFD}\\u{70000}-\\u{7FFFD}\\u{80000}-\\u{8FFFD}\\u{90000}-\\u{9FFFD}\\u{A0000}-\\u{AFFFD}\\u{B0000}-\\u{BFFFD}\\u{C0000}-\\u{CFFFD}\\u{D0000}-\\u{DFFFD}\\u{E1000}-\\u{EFFFD}!\\$&'\\(\\)\\*\\+,;=:@]))*)*|\\/(?:(?:(?:(?:%[0-9a-f][0-9a-f]|[-a-z0-9\\._~\\u{A0}-\\u{D7FF}\\u{F900}-\\u{FDCF}\\u{FDF0}-\\u{FFEF}\\u{10000}-\\u{1FFFD}\\u{20000}-\\u{2FFFD}\\u{30000}-\\u{3FFFD}\\u{40000}-\\u{4FFFD}\\u{50000}-\\u{5FFFD}\\u{60000}-\\u{6FFFD}\\u{70000}-\\u{7FFFD}\\u{80000}-\\u{8FFFD}\\u{90000}-\\u{9FFFD}\\u{A0000}-\\u{AFFFD}\\u{B0000}-\\u{BFFFD}\\u{C0000}-\\u{CFFFD}\\u{D0000}-\\u{DFFFD}\\u{E1000}-\\u{EFFFD}!\\$&'\\(\\)\\*\\+,;=:@]))+)(?:\\/(?:(?:%[0-9a-f][0-9a-f]|[-a-z0-9\\._~\\u{A0}-\\u{D7FF}\\u{F900}-\\u{FDCF}\\u{FDF0}-\\u{FFEF}\\u{10000}-\\u{1FFFD}\\u{20000}-\\u{2FFFD}\\u{30000}-\\u{3FFFD}\\u{40000}-\\u{4FFFD}\\u{50000}-\\u{5FFFD}\\u{60000}-\\u{6FFFD}\\u{70000}-\\u{7FFFD}\\u{80000}-\\u{8FFFD}\\u{90000}-\\u{9FFFD}\\u{A0000}-\\u{AFFFD}\\u{B0000}-\\u{BFFFD}\\u{C0000}-\\u{CFFFD}\\u{D0000}-\\u{DFFFD}\\u{E1000}-\\u{EFFFD}!\\$&'\\(\\)\\*\\+,;=:@]))*)*)?|(?:(?:(?:%[0-9a-f][0-9a-f]|[-a-z0-9\\._~\\u{A0}-\\u{D7FF}\\u{F900}-\\u{FDCF}\\u{FDF0}-\\u{FFEF}\\u{10000}-\\u{1FFFD}\\u{20000}-\\u{2FFFD}\\u{30000}-\\u{3FFFD}\\u{40000}-\\u{4FFFD}\\u{50000}-\\u{5FFFD}\\u{60000}-\\u{6FFFD}\\u{70000}-\\u{7FFFD}\\u{80000}-\\u{8FFFD}\\u{90000}-\\u{9FFFD}\\u{A0000}-\\u{AFFFD}\\u{B0000}-\\u{BFFFD}\\u{C0000}-\\u{CFFFD}\\u{D0000}-\\u{DFFFD}\\u{E1000}-\\u{EFFFD}!\\$&'\\(\\)\\*\\+,;=:@]))+)(?:\\/(?:(?:%[0-9a-f][0-9a-f]|[-a-z0-9\\._~\\u{A0}-\\u{D7FF}\\u{F900}-\\u{FDCF}\\u{FDF0}-\\u{FFEF}\\u{10000}-\\u{1FFFD}\\u{20000}-\\u{2FFFD}\\u{30000}-\\u{3FFFD}\\u{40000}-\\u{4FFFD}\\u{50000}-\\u{5FFFD}\\u{60000}-\\u{6FFFD}\\u{70000}-\\u{7FFFD}\\u{80000}-\\u{8FFFD}\\u{90000}-\\u{9FFFD}\\u{A0000}-\\u{AFFFD}\\u{B0000}-\\u{BFFFD}\\u{C0000}-\\u{CFFFD}\\u{D0000}-\\u{DFFFD}\\u{E1000}-\\u{EFFFD}!\\$&'\\(\\)\\*\\+,;=:@]))*)*|(?!(?:%[0-9a-f][0-9a-f]|[-a-z0-9\\._~\\u{A0}-\\u{D7FF}\\u{F900}-\\u{FDCF}\\u{FDF0}-\\u{FFEF}\\u{10000}-\\u{1FFFD}\\u{20000}-\\u{2FFFD}\\u{30000}-\\u{3FFFD}\\u{40000}-\\u{4FFFD}\\u{50000}-\\u{5FFFD}\\u{60000}-\\u{6FFFD}\\u{70000}-\\u{7FFFD}\\u{80000}-\\u{8FFFD}\\u{90000}-\\u{9FFFD}\\u{A0000}-\\u{AFFFD}\\u{B0000}-\\u{BFFFD}\\u{C0000}-\\u{CFFFD}\\u{D0000}-\\u{DFFFD}\\u{E1000}-\\u{EFFFD}!\\$&'\\(\\)\\*\\+,;=:@])))(?:\\?(?:(?:%[0-9a-f][0-9a-f]|[-a-z0-9\\._~\\u{A0}-\\u{D7FF}\\u{F900}-\\u{FDCF}\\u{FDF0}-\\u{FFEF}\\u{10000}-\\u{1FFFD}\\u{20000}-\\u{2FFFD}\\u{30000}-\\u{3FFFD}\\u{40000}-\\u{4FFFD}\\u{50000}-\\u{5FFFD}\\u{60000}-\\u{6FFFD}\\u{70000}-\\u{7FFFD}\\u{80000}-\\u{8FFFD}\\u{90000}-\\u{9FFFD}\\u{A0000}-\\u{AFFFD}\\u{B0000}-\\u{BFFFD}\\u{C0000}-\\u{CFFFD}\\u{D0000}-\\u{DFFFD}\\u{E1000}-\\u{EFFFD}!\\$&'\\(\\)\\*\\+,;=:@])|[\\u{E000}-\\u{F8FF}\\u{F0000}-\\u{FFFFD}\\u{100000}-\\u{10FFFD}\\/\\?])*)?(?:#(?:(?:%[0-9a-f][0-9a-f]|[-a-z0-9\\._~\\u{A0}-\\u{D7FF}\\u{F900}-\\u{FDCF}\\u{FDF0}-\\u{FFEF}\\u{10000}-\\u{1FFFD}\\u{20000}-\\u{2FFFD}\\u{30000}-\\u{3FFFD}\\u{40000}-\\u{4FFFD}\\u{50000}-\\u{5FFFD}\\u{60000}-\\u{6FFFD}\\u{70000}-\\u{7FFFD}\\u{80000}-\\u{8FFFD}\\u{90000}-\\u{9FFFD}\\u{A0000}-\\u{AFFFD}\\u{B0000}-\\u{BFFFD}\\u{C0000}-\\u{CFFFD}\\u{D0000}-\\u{DFFFD}\\u{E1000}-\\u{EFFFD}!\\$&'\\(\\)\\*\\+,;=:@])|[\\/\\?])*)?>?$","ui")}catch(e){n=new RegExp("^<?[a-z](?:[-a-z0-9\\+\\.])*:>?","i")}function r(e){function t(e){var t=e.indexOf("<")>=0&&e.indexOf(">")>=0,n=-1===e.indexOf("<")&&-1===e.lastIndexOf(">"),r=/^<?(http|urn).*>?/.test(e)&&(t||n),i=!1;if(r)if(e.indexOf("http")>=0){var o=e.indexOf("//");i=o>4&&e.substring(o+2).length>0}else e.indexOf("urn")>=0&&(i=e.substring(4).length>0);return r&&i}return{isValidIri:function(e,r){return!(void 0===e||void 0===r||!t(r)&&!r.match(n))},validateRdfUri:t,shortenIri:function(e){var t=document.createElement("a");t.href=e;var n=t.hostname;return function(e){for(var t=e.split("."),n=0,r=0;n<t.length;n++)if(parseInt(t[n],10)>=0&&parseInt(t[n],10)<=255?r++:r=0,4===r)return!0;return!1}(t.hostname)||(n=t.hostname.split(".")[0]),n+":"+t.port},expandPrefix:function(t,n){var r=/^<.*>$/.test(t);if(t=function(e,t){if(t.test(e))return e.substring(1,e.length-1);return e}(t,/^<.*>$/),!/^<?(http|urn).*>?/.test(t)){var i=t.split(":"),o=i[0],a=i[1];if(!angular.isUndefined(a)){var s=e.getNamespaceUriForPrefix(n,o);if(s)return s+a;if(!r)return""}}return t}}}r.$inject=["ClassInstanceDetailsService"]},57:function(e,t,n){"use strict";n.d(t,"a",(function(){return d})),n.d(t,"b",(function(){return ne})),n.d(t,"c",(function(){return b})),n.d(t,"d",(function(){return y})),n.d(t,"e",(function(){return p})),n.d(t,"f",(function(){return be})),n.d(t,"g",(function(){return le}));let r,i,o,a=!1,s=!1,u=!1,l=!1;const c={},h=e=>"object"===(e=typeof e)||"function"===e,p=(e,t,...n)=>{let r=null,i=null,o=!1,a=!1;const s=[],u=t=>{for(let n=0;n<t.length;n++)r=t[n],Array.isArray(r)?u(r):null!=r&&"boolean"!=typeof r&&((o="function"!=typeof e&&!h(r))&&(r=String(r)),o&&a?s[s.length-1].$text$+=r:s.push(o?f(null,r):r),a=o)};if(u(n),t){t.name&&(i=t.name);{const e=t.className||t.class;e&&(t.class="object"!=typeof e?e:Object.keys(e).filter(t=>e[t]).join(" "))}}if("function"==typeof e)return e(null===t?{}:t,s,g);const l=f(e,null);return l.$attrs$=t,s.length>0&&(l.$children$=s),l.$name$=i,l},f=(e,t)=>{const n={$flags$:0,$tag$:e,$text$:t,$elm$:null,$children$:null,$attrs$:null,$name$:null};return n},d={},g={forEach:(e,t)=>e.map(m).forEach(t),map:(e,t)=>e.map(m).map(t).map(v)},m=e=>({vattrs:e.$attrs$,vchildren:e.$children$,vkey:e.$key$,vname:e.$name$,vtag:e.$tag$,vtext:e.$text$}),v=e=>{if("function"==typeof e.vtag){const t=Object.assign({},e.vattrs);return e.vkey&&(t.key=e.vkey),e.vname&&(t.name=e.vname),p(e.vtag,t,...e.vchildren||[])}const t=f(e.vtag,e.vtext);return t.$attrs$=e.vattrs,t.$children$=e.vchildren,t.$key$=e.vkey,t.$name$=e.vname,t},y=e=>ue(e).$hostElement$,b=(e,t,n)=>{const r=y(e);return{emit:e=>$(r,t,{bubbles:!!(4&n),composed:!!(2&n),cancelable:!!(1&n),detail:e})}},$=(e,t,n)=>{const r=ye.ce(t,n);return e.dispatchEvent(r),r},w=new WeakMap,x=e=>{const t=e.$cmpMeta$,n=e.$hostElement$,r=t.$flags$,i=(t.$tagName$,()=>{}),o=((e,t,n,r)=>{let i=S(t);const o=ge.get(i);if(e=11===e.nodeType?e:ve,o)if("string"==typeof o){e=e.head||e;let t,n=w.get(e);n||w.set(e,n=new Set),n.has(i)||(t=ve.createElement("style"),t.innerHTML=o,e.insertBefore(t,e.querySelector("link")),n&&n.add(i))}else e.adoptedStyleSheets.includes(o)||(e.adoptedStyleSheets=[...e.adoptedStyleSheets,o]);return i})(n.shadowRoot?n.shadowRoot:n.getRootNode(),t);10&r&&(n["s-sc"]=o,n.classList.add(o+"-h")),i()},S=(e,t)=>"sc-"+e.$tagName$,E=(e,t,n,r,i,o)=>{if(n!==r){let a=he(e,t),s=t.toLowerCase();if("class"===t){const t=e.classList,i=C(n),o=C(r);t.remove(...i.filter(e=>e&&!o.includes(e))),t.add(...o.filter(e=>e&&!i.includes(e)))}else if("ref"===t)r&&r(e);else if(a||"o"!==t[0]||"n"!==t[1]){const s=h(r);if((a||s&&null!==r)&&!i)try{if(e.tagName.includes("-"))e[t]=r;else{const i=null==r?"":r;"list"===t?a=!1:null!=n&&e[t]==i||(e[t]=i)}}catch(e){}null==r||!1===r?!1===r&&""!==e.getAttribute(t)||e.removeAttribute(t):(!a||4&o||i)&&!s&&(r=!0===r?"":r,e.setAttribute(t,r))}else t="-"===t[2]?t.slice(3):he(me,s)?s.slice(2):s[2]+t.slice(3),n&&ye.rel(e,t,n,!1),r&&ye.ael(e,t,r,!1)}},A=/\s/,C=e=>e?e.split(A):[],T=(e,t,n,r)=>{const i=11===t.$elm$.nodeType&&t.$elm$.host?t.$elm$.host:t.$elm$,o=e&&e.$attrs$||c,a=t.$attrs$||c;for(r in o)r in a||E(i,r,o[r],void 0,n,t.$flags$);for(r in a)E(i,r,o[r],a[r],n,t.$flags$)},F=(e,t,n,s)=>{const l=t.$children$[n];let c,h,p,f=0;if(a||(u=!0,"slot"===l.$tag$&&(r&&s.classList.add(r+"-s"),l.$flags$|=l.$children$?2:1)),null!==l.$text$)c=l.$elm$=ve.createTextNode(l.$text$);else if(1&l.$flags$)c=l.$elm$=ve.createTextNode("");else if(c=l.$elm$=ve.createElement(2&l.$flags$?"slot-fb":l.$tag$),T(null,l,!1),null!=r&&c["s-si"]!==r&&c.classList.add(c["s-si"]=r),l.$children$)for(f=0;f<l.$children$.length;++f)h=F(e,l,f,c),h&&c.appendChild(h);return c["s-hn"]=o,3&l.$flags$&&(c["s-sr"]=!0,c["s-cr"]=i,c["s-sn"]=l.$name$||"",p=e&&e.$children$&&e.$children$[n],p&&p.$tag$===l.$tag$&&e.$elm$&&k(e.$elm$,!1)),c},k=(e,t)=>{ye.$flags$|=1;const n=e.childNodes;for(let e=n.length-1;e>=0;e--){const r=n[e];r["s-hn"]!==o&&r["s-ol"]&&(I(r).insertBefore(r,O(r)),r["s-ol"].remove(),r["s-ol"]=void 0,u=!0),t&&k(r,t)}ye.$flags$&=-2},R=(e,t,n,r,i,a)=>{let s,u=e["s-cr"]&&e["s-cr"].parentNode||e;for(u.shadowRoot&&u.tagName===o&&(u=u.shadowRoot);i<=a;++i)r[i]&&(s=F(null,n,i,e),s&&(r[i].$elm$=s,u.insertBefore(s,O(t))))},P=(e,t,n,r,i)=>{for(;t<=n;++t)(r=e[t])&&(i=r.$elm$,B(r),s=!0,i["s-ol"]?i["s-ol"].remove():k(i,!0),i.remove())},D=(e,t)=>e.$tag$===t.$tag$&&("slot"!==e.$tag$||e.$name$===t.$name$),O=e=>e&&e["s-ol"]||e,I=e=>(e["s-ol"]?e["s-ol"]:e).parentNode,_=(e,t)=>{const n=t.$elm$=e.$elm$,r=e.$children$,i=t.$children$,o=t.$tag$,a=t.$text$;let s;null===a?("slot"===o||T(e,t,!1),null!==r&&null!==i?((e,t,n,r)=>{let i,o=0,a=0,s=t.length-1,u=t[0],l=t[s],c=r.length-1,h=r[0],p=r[c];for(;o<=s&&a<=c;)null==u?u=t[++o]:null==l?l=t[--s]:null==h?h=r[++a]:null==p?p=r[--c]:D(u,h)?(_(u,h),u=t[++o],h=r[++a]):D(l,p)?(_(l,p),l=t[--s],p=r[--c]):D(u,p)?("slot"!==u.$tag$&&"slot"!==p.$tag$||k(u.$elm$.parentNode,!1),_(u,p),e.insertBefore(u.$elm$,l.$elm$.nextSibling),u=t[++o],p=r[--c]):D(l,h)?("slot"!==u.$tag$&&"slot"!==p.$tag$||k(l.$elm$.parentNode,!1),_(l,h),e.insertBefore(l.$elm$,u.$elm$),l=t[--s],h=r[++a]):(i=F(t&&t[a],n,a,e),h=r[++a],i&&I(u.$elm$).insertBefore(i,O(u.$elm$)));o>s?R(e,null==r[c+1]?null:r[c+1].$elm$,n,r,a,c):a>c&&P(t,o,s)})(n,r,t,i):null!==i?(null!==e.$text$&&(n.textContent=""),R(n,null,t,i,0,i.length-1)):null!==r&&P(r,0,r.length-1)):(s=n["s-cr"])?s.parentNode.textContent=a:e.$text$!==a&&(n.data=a)},j=e=>{const t=e.childNodes;let n,r,i,o,a,s;for(r=0,i=t.length;r<i;r++)if(n=t[r],1===n.nodeType){if(n["s-sr"])for(a=n["s-sn"],n.hidden=!1,o=0;o<i;o++)if(s=t[o].nodeType,t[o]["s-hn"]!==n["s-hn"]||""!==a){if(1===s&&a===t[o].getAttribute("slot")){n.hidden=!0;break}}else if(1===s||3===s&&""!==t[o].textContent.trim()){n.hidden=!0;break}j(n)}},L=[],N=e=>{let t,n,r,i,o,a,u=0;const l=e.childNodes,c=l.length;for(;u<c;u++){if(t=l[u],t["s-sr"]&&(n=t["s-cr"])&&n.parentNode)for(r=n.parentNode.childNodes,i=t["s-sn"],a=r.length-1;a>=0;a--)n=r[a],n["s-cn"]||n["s-nr"]||n["s-hn"]===t["s-hn"]||(M(n,i)?(o=L.find(e=>e.$nodeToRelocate$===n),s=!0,n["s-sn"]=n["s-sn"]||i,o?o.$slotRefNode$=t:L.push({$slotRefNode$:t,$nodeToRelocate$:n}),n["s-sr"]&&L.map(e=>{M(e.$nodeToRelocate$,n["s-sn"])&&(o=L.find(e=>e.$nodeToRelocate$===n),o&&!e.$slotRefNode$&&(e.$slotRefNode$=o.$slotRefNode$))})):L.some(e=>e.$nodeToRelocate$===n)||L.push({$nodeToRelocate$:n}));1===t.nodeType&&N(t)}},M=(e,t)=>1===e.nodeType?null===e.getAttribute("slot")&&""===t||e.getAttribute("slot")===t:e["s-sn"]===t||""===t,B=e=>{e.$attrs$&&e.$attrs$.ref&&e.$attrs$.ref(null),e.$children$&&e.$children$.map(B)},U=(e,t)=>{const n=e.$hostElement$,l=e.$cmpMeta$,c=e.$vnode$||f(null,null),h=(g=t)&&g.$tag$===d?t:p(null,null,t);var g;if(o=n.tagName,h.$tag$=null,h.$flags$|=4,e.$vnode$=h,h.$elm$=c.$elm$=n.shadowRoot||n,r=n["s-sc"],i=n["s-cr"],a=0!=(1&l.$flags$),s=!1,_(c,h),ye.$flags$|=1,u){let e,t,n,r,i,o;N(h.$elm$);let a=0;for(;a<L.length;a++)e=L[a],t=e.$nodeToRelocate$,t["s-ol"]||(n=ve.createTextNode(""),n["s-nr"]=t,t.parentNode.insertBefore(t["s-ol"]=n,t));for(a=0;a<L.length;a++)if(e=L[a],t=e.$nodeToRelocate$,e.$slotRefNode$){for(r=e.$slotRefNode$.parentNode,i=e.$slotRefNode$.nextSibling,n=t["s-ol"];n=n.previousSibling;)if(o=n["s-nr"],o&&o["s-sn"]===t["s-sn"]&&r===o.parentNode&&(o=o.nextSibling,!o||!o["s-nr"])){i=o;break}(!i&&r!==t.parentNode||t.nextSibling!==i)&&t!==i&&(!t["s-hn"]&&t["s-ol"]&&(t["s-hn"]=t["s-ol"].parentNode.nodeName),r.insertBefore(t,i))}else 1===t.nodeType&&(t.hidden=!0)}s&&j(h.$elm$),ye.$flags$&=-2,L.length=0},H=(e,t)=>{t&&!e.$onRenderResolve$&&t["s-p"]&&t["s-p"].push(new Promise(t=>e.$onRenderResolve$=t))},V=(e,t)=>{if(e.$flags$|=16,4&e.$flags$)return void(e.$flags$|=512);H(e,e.$ancestorComponent$);return Te(()=>q(e,t))},q=(e,t)=>{const n=(e.$cmpMeta$.$tagName$,()=>{}),r=e.$lazyInstance$;let i;return t&&(e.$flags$|=256,e.$queuedListeners$&&(e.$queuedListeners$.map(([e,t])=>Y(r,e,t)),e.$queuedListeners$=null),i=Y(r,"componentWillLoad")),n(),X(i,()=>z(e,r,t))},z=async(e,t,n)=>{const r=e.$hostElement$,i=(e.$cmpMeta$.$tagName$,()=>{}),o=r["s-rc"];n&&x(e);const a=(e.$cmpMeta$.$tagName$,()=>{});K(e,t),o&&(o.map(e=>e()),r["s-rc"]=void 0),a(),i();{const t=r["s-p"],n=()=>G(e);0===t.length?n():(Promise.all(t).then(n),e.$flags$|=4,t.length=0)}},K=(e,t,n)=>{try{t=t.render(),e.$flags$&=-17,e.$flags$|=2,U(e,t)}catch(t){pe(t,e.$hostElement$)}return null},G=e=>{e.$cmpMeta$.$tagName$;const t=e.$hostElement$,n=()=>{},r=e.$lazyInstance$,i=e.$ancestorComponent$;Y(r,"componentDidRender"),64&e.$flags$?(Y(r,"componentDidUpdate"),n()):(e.$flags$|=64,Q(t),Y(r,"componentDidLoad"),n(),e.$onReadyResolve$(t),i||W()),e.$onInstanceResolve$(t),e.$onRenderResolve$&&(e.$onRenderResolve$(),e.$onRenderResolve$=void 0),512&e.$flags$&&Ce(()=>V(e,!1)),e.$flags$&=-517},W=e=>{Q(ve.documentElement),Ce(()=>$(me,"appload",{detail:{namespace:"ontotext-yasgui-web-component"}}))},Y=(e,t,n)=>{if(e&&e[t])try{return e[t](n)}catch(e){pe(e)}},X=(e,t)=>e&&e.then?e.then(t):t(),Q=e=>e.classList.add("hydrated"),J=(e,t,n,r)=>{const i=ue(e),o=i.$hostElement$,a=i.$instanceValues$.get(t),s=i.$flags$,u=i.$lazyInstance$;var l,c;l=n,c=r.$members$[t][0],n=null==l||h(l)?l:4&c?"false"!==l&&(""===l||!!l):2&c?parseFloat(l):1&c?String(l):l;const p=Number.isNaN(a)&&Number.isNaN(n);if((!(8&s)||void 0===a)&&(n!==a&&!p)&&(i.$instanceValues$.set(t,n),u)){if(r.$watchers$&&128&s){const e=r.$watchers$[t];e&&e.map(e=>{try{u[e](n,a,t)}catch(e){pe(e,o)}})}2==(18&s)&&V(i,!1)}},Z=(e,t,n)=>{if(t.$members$){e.watchers&&(t.$watchers$=e.watchers);const r=Object.entries(t.$members$),i=e.prototype;if(r.map(([e,[r]])=>{31&r||2&n&&32&r?Object.defineProperty(i,e,{get(){return t=e,ue(this).$instanceValues$.get(t);var t},set(n){J(this,e,n,t)},configurable:!0,enumerable:!0}):1&n&&64&r&&Object.defineProperty(i,e,{value(...t){const n=ue(this);return n.$onInstancePromise$.then(()=>n.$lazyInstance$[e](...t))}})}),1&n){const t=new Map;i.attributeChangedCallback=function(e,n,r){ye.jmp(()=>{const n=t.get(e);if(this.hasOwnProperty(n))r=this[n],delete this[n];else if(i.hasOwnProperty(n)&&"number"==typeof this[n]&&this[n]==r)return;this[n]=(null!==r||"boolean"!=typeof this[n])&&r})},e.observedAttributes=r.filter(([e,t])=>15&t[0]).map(([e,n])=>{const r=n[1]||e;return t.set(r,e),r})}}return e},ee=async(e,t,n,r,i)=>{if(0==(32&t.$flags$)){{if(t.$flags$|=32,(i=de(n)).then){const e=()=>{};i=await i,e()}i.isProxied||(n.$watchers$=i.watchers,Z(i,n,2),i.isProxied=!0);const e=(n.$tagName$,()=>{});t.$flags$|=8;try{new i(t)}catch(e){pe(e)}t.$flags$&=-9,t.$flags$|=128,e()}if(i.style){let e=i.style;const t=S(n);if(!ge.has(t)){const r=(n.$tagName$,()=>{});((e,t,n)=>{let r=ge.get(e);$e&&n?(r=r||new CSSStyleSheet,"string"==typeof r?r=t:r.replaceSync(t)):r=t,ge.set(e,r)})(t,e,!!(1&n.$flags$)),r()}}}const o=t.$ancestorComponent$,a=()=>V(t,!0);o&&o["s-rc"]?o["s-rc"].push(a):a()},te=e=>{const t=e["s-cr"]=ve.createComment("");t["s-cn"]=!0,e.insertBefore(t,e.firstChild)},ne=(e,t={})=>{const n=()=>{},r=[],i=t.exclude||[],o=me.customElements,a=ve.head,s=a.querySelector("meta[charset]"),u=ve.createElement("style"),l=[];let c,h=!0;Object.assign(ye,t),ye.$resourcesUrl$=new URL(t.resourcesUrl||"./",ve.baseURI).href,e.map(e=>{e[1].map(t=>{const n={$flags$:t[0],$tagName$:t[1],$members$:t[2],$listeners$:t[3]};n.$members$=t[2],n.$listeners$=t[3],n.$watchers$={};const a=n.$tagName$,s=class extends HTMLElement{constructor(e){super(e),ce(e=this,n),1&n.$flags$&&e.attachShadow({mode:"open"})}connectedCallback(){c&&(clearTimeout(c),c=null),h?l.push(this):ye.jmp(()=>(e=>{if(0==(1&ye.$flags$)){const t=ue(e),n=t.$cmpMeta$,r=(n.$tagName$,()=>{});if(1&t.$flags$)re(e,t,n.$listeners$);else{t.$flags$|=1,12&n.$flags$&&te(e);{let n=e;for(;n=n.parentNode||n.host;)if(n["s-p"]){H(t,t.$ancestorComponent$=n);break}}n.$members$&&Object.entries(n.$members$).map(([t,[n]])=>{if(31&n&&e.hasOwnProperty(t)){const n=e[t];delete e[t],e[t]=n}}),ee(0,t,n)}r()}})(this))}disconnectedCallback(){ye.jmp(()=>(e=>{if(0==(1&ye.$flags$)){const t=ue(e),n=t.$lazyInstance$;t.$rmListeners$&&(t.$rmListeners$.map(e=>e()),t.$rmListeners$=void 0),Y(n,"disconnectedCallback")}})(this))}componentOnReady(){return ue(this).$onReadyPromise$}};n.$lazyBundleId$=e[0],i.includes(a)||o.get(a)||(r.push(a),o.define(a,Z(s,n,1)))})}),u.innerHTML=r+"{visibility:hidden}.hydrated{visibility:inherit}",u.setAttribute("data-styles",""),a.insertBefore(u,s?s.nextSibling:a.firstChild),h=!1,l.length?l.map(e=>e.connectedCallback()):ye.jmp(()=>c=setTimeout(W,30)),n()},re=(e,t,n,r)=>{n&&n.map(([n,r,i])=>{const o=oe(e,n),a=ie(t,i),s=ae(n);ye.ael(o,r,a,s),(t.$rmListeners$=t.$rmListeners$||[]).push(()=>ye.rel(o,r,a,s))})},ie=(e,t)=>n=>{try{256&e.$flags$?e.$lazyInstance$[t](n):(e.$queuedListeners$=e.$queuedListeners$||[]).push([t,n])}catch(e){pe(e)}},oe=(e,t)=>4&t?ve:8&t?me:e,ae=e=>0!=(2&e),se=new WeakMap,ue=e=>se.get(e),le=(e,t)=>se.set(t.$lazyInstance$=e,t),ce=(e,t)=>{const n={$flags$:0,$hostElement$:e,$cmpMeta$:t,$instanceValues$:new Map};return n.$onInstancePromise$=new Promise(e=>n.$onInstanceResolve$=e),n.$onReadyPromise$=new Promise(e=>n.$onReadyResolve$=e),e["s-p"]=[],e["s-rc"]=[],re(e,n,t.$listeners$),se.set(e,n)},he=(e,t)=>t in e,pe=(e,t)=>(0,console.error)(e,t),fe=new Map,de=(e,t,r)=>{const i=e.$tagName$.replace(/-/g,"_"),o=e.$lazyBundleId$,a=fe.get(o);return a?a[i]:n(527)(`./${o}.entry.js`).then(e=>(fe.set(o,e),e[i]),pe)
59
+ /*!__STENCIL_STATIC_IMPORT_SWITCH__*/},ge=new Map,me="undefined"!=typeof window?window:{},ve=me.document||{head:{}},ye={$flags$:0,$resourcesUrl$:"",jmp:e=>e(),raf:e=>requestAnimationFrame(e),ael:(e,t,n,r)=>e.addEventListener(t,n,r),rel:(e,t,n,r)=>e.removeEventListener(t,n,r),ce:(e,t)=>new CustomEvent(e,t)},be=e=>Promise.resolve(e),$e=(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync}catch(e){}return!1})(),we=[],xe=[],Se=(e,t)=>n=>{e.push(n),l||(l=!0,t&&4&ye.$flags$?Ce(Ae):ye.raf(Ae))},Ee=e=>{for(let t=0;t<e.length;t++)try{e[t](performance.now())}catch(e){pe(e)}e.length=0},Ae=()=>{Ee(we),Ee(xe),(l=we.length>0)&&ye.raf(Ae)},Ce=e=>be().then(e),Te=Se(xe,!0)},58:function(e,t){function n(e,t,n,r){e.confirmButtonKey=r.confirmButtonKey,e.title=r.title,e.message=n.trustAsHtml(r.message),e.ok=function(){t.close()},e.cancel=function(){t.dismiss("cancel")}}function r(e,t,n,r,i,o){t.opened.then((function(){o((function(){$("#clipboardURI")[0].select()}),0)})),e.clipboardURI=n,e.ok=function(){try{document.getElementById("clipboardURI").select(),document.execCommand("copy"),r.success(i.instant("modal.ctr.copy.url.success"))}catch(e){r.error(i.instant("modal.ctr.copy.not.supported.warning"))}t.close()},e.cancel=function(){t.dismiss("cancel")}}function i(e,t,n,r,i){e.query=n,e.cancel=function(){t.dismiss("cancel")},e.selectQuery=function(){e.selectElement($("#create-query"))},e.copyQueryToClipboard=function(){try{e.selectQuery(),document.execCommand("copy"),t.close(),r.success(i.instant("modal.ctr.copy.query.success"))}catch(e){r.error(i.instant("modal.ctr.copy.not.supported.warning"))}},e.selectElement=function(e){if(e.length>0)if(window.getSelection){var t=window.getSelection();t.removeAllRanges();var n=document.createRange();n.selectNodeContents(e[0].firstChild),t.addRange(n)}else if(document.selection){var r=document.body.createTextRange();r.moveToElementText(e[0]),r.select()}}}angular.module("graphdb.framework.core.controllers",[]).controller("CopyToClipboardModalCtrl",r).controller("SimpleModalCtrl",n).controller("ViewQueryCtrl",i),n.$inject=["$scope","$uibModalInstance","$sce","config"],r.$inject=["$scope","$uibModalInstance","uri","toastr","$translate","$timeout"],i.$inject=["$scope","$uibModalInstance","query","toastr","$translate"]},59:function(e,t,n){"use strict";n.r(t);var r=n(23);function i(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,a,s=[],u=!0,l=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=o.call(n)).done)&&(s.push(r.value),s.length!==t);u=!0);}catch(e){l=!0,i=e}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw i}}return s}}(e,t)||function(e,t){if(e){if("string"==typeof e)return o(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?o(e,t):void 0}}(e,t)||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 o(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}angular.module("graphdb.framework.rest.rdf4j.repositories.service",[]).factory("RDF4JRepositoriesRestService",s),s.$inject=["$http","$translate"];var a="select ?o where {\n?s <http://www.ontotext.com/owlim/system#listplugins> ?o .\nfilter(str(?s) = '{{pluginName}}')\n} ";function s(e,t){return{getNamespaces:function(t){return e.get("".concat("repositories","/").concat(t,"/namespaces"))},getRepositoryNamespaces:function(t){return e.get("".concat("repositories","/").concat(t,"/namespaces"))},updateNamespacePrefix:function(t,n,r){return e({url:"".concat("repositories","/").concat(t,"/namespaces/").concat(r),method:"PUT",data:n})},deleteNamespacePrefix:function(t,n){return e({url:"".concat("repositories","/").concat(t,"/namespaces/").concat(n),method:"DELETE"})},addStatements:function(t,n){return e({url:"".concat("repositories","/").concat(t,"/statements"),method:"POST",data:n,headers:{"Content-Type":"application/x-www-form-urlencoded"}})},activatePlugin:function(t,n){return e({method:"POST",url:"".concat("repositories","/").concat(n,"/statements"),params:{update:"INSERT DATA { <u:a> <http://www.ontotext.com/owlim/system#startplugin> '{{pluginName}}' .}".replace("{{pluginName}}",t)}})},checkPluginIsActive:function(t,n){return e({method:"GET",url:"".concat("repositories","/").concat(n),params:{query:a.replace("{{pluginName}}",t)},headers:{Accept:"*/*"}})},getRepositorySize:function(t){return e.get("".concat("repositories","/").concat(t,"/size"))},getGraphs:n,resolveGraphs:function(e,t){var r=[];if(e)return n(e,t).success((function(e){e.results.bindings.unshift({contextID:{type:"default",value:"import.default.graph"}}),Object.keys(e.results.bindings).forEach((function(t){var n=e.results.bindings[t];"bnode"===n.contextID.type?n.contextID.value="_:".concat(n.contextID.value):"default"===n.contextID.type?n.contextID.uri="http://www.openrdf.org/schema/sesame#nil":n.contextID.uri=n.contextID.value})),e.results.bindings.unshift(allGraphs),r=e.results.bindings}));return r},downloadResultsAsFile:function(t,n,o,a){var s=Object.entries(n).filter((function(e){var t=i(e,2);t[0];return void 0!==t[1]})).map((function(e){var t=i(e,2),n=t[0],r=t[1];return"".concat(n,"=").concat(encodeURIComponent(r))})).join("&");return e({method:"POST",url:"".concat("repositories","/").concat(t),headers:{"Content-Type":"application/x-www-form-urlencoded;charset=utf-8",Accept:o,Link:a},data:s,responseType:"blob"}).then((function(e){return r.HttpUtils.extractFileFromResponse(e)}))},downloadGraphsAsFile:function(t,n){return e({method:"GET",url:"".concat("repositories","/").concat(t,"/contexts"),params:{limit:n},responseType:"blob"}).then((function(e){return r.HttpUtils.extractFileFromResponse(e)}))}};function n(t,n){return e.get("".concat("repositories","/").concat(t,"/contexts"),{params:{limit:n}})}}},6:function(e,t,n){"use strict";n.r(t),n.d(t,"toUserModelMapper",(function(){return p})),n.d(t,"fromUserModelMapper",(function(){return f}));var r=n(22),i=n(39),o=n(0),a=n(19);function s(e){return(s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function u(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,a,s=[],u=!0,l=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=o.call(n)).done)&&(s.push(r.value),s.length!==t);u=!0);}catch(e){l=!0,i=e}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw i}}return s}}(e,t)||l(e,t)||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 l(e,t){if(e){if("string"==typeof e)return c(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?c(e,t):void 0}}function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function h(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=s(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=s(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==s(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var p=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"grantedAuthorities";if(Array.isArray(e))return e.map((function(e){return p(e)}));var n=Object(r.mapObject)(e,h({},t,{transform:d,newKey:"grantedAuthoritiesUiModel"}),{removeOldKey:!1});return new i.UserModel(n)},f=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"grantedAuthorities";return Array.isArray(e)?e.map((function(e){return f(e)})):Object(r.mapObject)(e,h({},t,g))},d=function(e){var t,n=[],r=function(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=l(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}(e);try{for(r.s();!(t=r.n()).done;){var i=t.value;if(i.includes(o.SUFFIX_DELIMITER)){var s=u(i.split(o.SUFFIX_DELIMITER),2),c=s[0],h=s[1];if((0===c.indexOf(o.READ_REPO_PREFIX)||0===c.indexOf(o.WRITE_REPO_PREFIX))&&h===o.GRAPHQL_SUFFIX){var p=Object(a.getRepoFromAuthority)(c);if(p){var f=p.repo,d=o.GRAPHQL_PREFIX+f;n.includes(c)||n.push(c),n.includes(d)||n.push(d);continue}}}n.includes(i)||n.push(i)}}catch(e){r.e(e)}finally{r.f()}return n},g=function(e){if(!Array.isArray(e))return e;var t=[],n={},r=!1,i=!1,s=!1;e.forEach((function(e){var u,l=Object(a.getRepoFromAuthority)(e);if(l){var c=l.prefix,h=l.repo,p=(n[u=h]||(n[u]={read:!1,write:!1,graphql:!1}),n[u]);c===o.READ_REPO_PREFIX?(p.read=!0,"*"===h&&(r=!0)):c===o.WRITE_REPO_PREFIX?(p.write=!0,"*"===h&&(i=!0)):c===o.GRAPHQL_PREFIX&&(p.graphql=!0,"*"===h&&(s=!0))}else t.push(e)}));var u=[];return Object.keys(n).forEach((function(e){var t=n[e];t.graphql||s?t.write||i?(u.push("".concat(o.WRITE_REPO_PREFIX).concat(e).concat(o.GRAPHQL_SUFFIX_WITH_DELIMITER)),u.push("".concat(o.READ_REPO_PREFIX).concat(e).concat(o.GRAPHQL_SUFFIX_WITH_DELIMITER))):(t.read||r)&&u.push("".concat(o.READ_REPO_PREFIX).concat(e).concat(o.GRAPHQL_SUFFIX_WITH_DELIMITER)):t.write?(u.push("".concat(o.WRITE_REPO_PREFIX).concat(e)),u.push("".concat(o.READ_REPO_PREFIX).concat(e))):t.read&&u.push("".concat(o.READ_REPO_PREFIX).concat(e))})),[].concat(t,u)}},60:function(e,t,n){"use strict";n.r(t);n(59);var r=n(31),i=n(50);function o(e){return{getNamespaces:function(t){return e.getRepositoryNamespaces(t).then((function(e){return Object(r.namespaceListModelMapper)(e.data.results.bindings)}))},getGraphs:function(t){return e.getGraphs(t).then((function(e){return Object(i.graphListOptionsMapper)(e.data)}))},downloadGraphsAsFile:function(t,n){return e.downloadGraphsAsFile(t,n)}}}angular.module("graphdb.framework.core.services.rdf4j.repositories",["graphdb.framework.rest.rdf4j.repositories.service"]).factory("RDF4JRepositoriesService",o),o.$inject=["RDF4JRepositoriesRestService"]},61:function(e,t){angular.module("graphdb.framework.rest.plugins.service",[]).factory("PluginsRestService",n);function n(e){return{togglePlugin:function(t,n,r){return n?e.post("".concat("repositories/").concat(t,"/statements"),void 0,{params:{update:"".concat("INSERT DATA { <u:a> <http://www.ontotext.com/owlim/system#stopplugin>",' "').concat(r,'".}')}}):e.post("".concat("repositories/").concat(t,"/statements"),void 0,{params:{update:"".concat("INSERT DATA { <u:a> <http://www.ontotext.com/owlim/system#startplugin>",' "').concat(r,'".}')}})},getPlugins:function(t){return e.get("".concat("repositories/").concat(t),{params:{query:"select ?s ?o where { ?s <http://www.ontotext.com/owlim/system#listplugins> ?o .}"}})}}}n.$inject=["$http"]},62:function(e,t,n){"use strict";n.r(t);n(74);var r=n(6);function i(e){return{login:function(t,n){return e.login(t,n).then((function(e){var t=e.data,n=e.status,i=e.headers;return{data:Object(r.toUserModelMapper)(t,"authorities"),status:n,headers:i}}))},getUser:function(t){return e.getUser(t).then((function(e){return Object(r.toUserModelMapper)(e.data)}))},getAuthenticatedUser:function(){return e.getAuthenticatedUser().then((function(e){return Object(r.toUserModelMapper)(e.data,"authorities")}))},getAdminUser:function(){return e.getAdminUser().then((function(e){return Object(r.toUserModelMapper)(e.data)}))},getUsers:function(){return e.getUsers().then((function(e){return Object(r.toUserModelMapper)(e.data)}))},createUser:function(t){return e.createUser(Object(r.fromUserModelMapper)(t))},updateUser:function(t){return e.updateUser(Object(r.fromUserModelMapper)(t))},updateUserData:function(t){return e.updateUserData(t)},deleteUser:function(t){return e.deleteUser(t)},getFreeAccess:function(){return e.getFreeAccess().then((function(e){return Object(r.toUserModelMapper)(e.data,"authorities")}))},setFreeAccess:function(t){return e.setFreeAccess(Object(r.fromUserModelMapper)(t,"authorities"))},getSecurityConfig:function(){return e.getSecurityConfig()},toggleSecurity:function(t){return e.toggleSecurity(t)},getRoles:function(){return e.getRoles()},getRolesMapping:function(t){return e.getRolesMapping(t)}}}angular.module("graphdb.framework.core.services.security-service",["graphdb.framework.rest.security.service"]).factory("SecurityService",i),i.$inject=["SecurityRestService"]},63:function(e,t){angular.module("graphdb.framework.rest.locations.service",[]).factory("LocationsRestService",r),r.$inject=["$http"];var n="".concat("rest/locations","/active");function r(e){return{getLocations:function(t){return e.get("rest/locations",{},{timeout:t?t.promise:null})},addLocation:function(t){return e.post("rest/locations",t)},editLocation:function(t){return e.put("rest/locations",t)},deleteLocation:function(t){return e.delete("".concat("rest/locations","?uri=").concat(t))},getActiveLocation:function(){return e({method:"GET",url:"".concat(n),noCancelOnRouteChange:!0})},setDefaultRepository:function(t){return e({url:"".concat(n,"/default-repository"),method:"POST",data:{defaultRepository:t}})},getLocationRpcAddress:function(t){return e.get("".concat("rest/info/rpc-address"),{params:{location:t}})}}}},64:function(e,t,n){"use strict";n.r(t);n(15),n(21),n(83);var r=n(4),i=n(27),o=n(32);function a(e,t,n,a,s,u,l,c,h,p,f,d){var g=this;this.guideResumeSubscription=void 0,this.languageChangeSubscription=void 0,this.guideCancelSubscription=void 0,this.init=function(){g._subscribeToGuideResumed(),g._subscribeToGuideCancel(),g._subscribeToGuidePause()},this.downloadGuidesFile=function(e,t){return d.downloadGuideResource("".concat(e,"/").concat(t)).then((function(e){o.FileUtils.downloadAsFile(t,"application/text",e.data)}))},this.startGuide=function(e,i){var o,l=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null!=e&&null!==(o=e.options)&&void 0!==o&&o.repositoryIdBase){var c=u.getRepositories();e.options.repositoryId=e.options.repositoryIdBase;for(var h=2;c.find((function(t){return t.id===e.options.repositoryId}));h++)e.options.repositoryId=e.options.repositoryIdBase+h;e.options.translatedGuideName=r.GuideUtils.translateLocalMessage(n,a,e.guideName,{}),e.options.translatedGuideDescription=r.GuideUtils.translateLocalMessage(n,a,e.guideDescription,{})}for(var p=g._toStepsDescriptions(e),f=0;f<p.length;f++)p[f].id=f;angular.isDefined(i)?s.resumeGuide(e.guideId,p,i):s.startGuide(e.guideId,p,i,l),t.$broadcast("guideStarted")},this.autoStartGuide=function(e){(angular.isString(e)||angular.isNumber(e))&&(angular.isNumber(e)&&(e+=""),g.getGuides().then((function(t){var n=t.find((function(t){return t.guideId===e}));n&&g.startGuide(n,void 0,!0)})))},this.getGuides=function(){return d.getGuides().then((function(e){var t=e.data||[];return t.forEach((function(e,t){if(void 0===e.guideId){var n=Date.now()+t;e.guideId=n+""}else angular.isNumber(e.guideId)&&(e.guideId=e.guideId+"")})),t}))},this.isActive=function(){return s.isActive()},this._toStepsDescriptions=function(e){if(!e)return[];var t=[];return e.steps.forEach((function(n){t=t.concat(g._getSteps(n,e.options))})),t},this._getSteps=function(e,o){var d={$translate:n,$interpolate:a,GuideUtils:r.GuideUtils,$rootScope:t,toastr:l,$location:c,$route:h,$timeout:p,ShepherdService:s,$repositories:u,YasguiComponentDirectiveUtil:i.YasguiComponentDirectiveUtil,EventEmitterService:f},m=[];if(angular.isArray(e))e.forEach((function(t){m=m.concat(g._getSteps(t,angular.extend({},e.options,o)))}));else{var v=PluginRegistry.get("guide.step").find((function(t){return t.guideBlockName===e.guideBlockName}));if(v){var y=angular.extend({},v.options,e.options,o);v.getSteps?m=m.concat(g._getSteps(_.cloneDeep(v.getSteps(y,d)),o)):v.getStep?m.push(_.cloneDeep(v.getStep(y,d))):m=m.concat(g._getSteps(_.cloneDeep(v,v.options),o))}}return m.forEach((function(e,t){e.stepN=t,e.stepsTotalN=m.length,!e.title&&e.mainAction&&(e.title="guide.step-action."+e.mainAction)})),m},this._subscribeToGuideResumed=function(){g.guideResumeSubscription||(g.guideResumeSubscription=t.$on("guideResume",(function(){var e=s.getGuideId();g.getGuides().then((function(t){var n=t.find((function(t){return t.guideId===e})),r=s.getCurrentStepId();g.startGuide(n,r)}))})))},this._subscribeToGuideCancel=function(){s.subscribeToGuideCancel((function(){return t.$broadcast("guideReset")}))},this._subscribeToGuidePause=function(){s.subscribeToGuidePause((function(){return t.$broadcast("guidePaused")}))}}angular.module("graphdb.framework.guides.services",["graphdb.framework.guides.shepherd.services","graphdb.framework.rest.guides.service"]).service("GuidesService",a),a.$inject=["$http","$rootScope","$translate","$interpolate","ShepherdService","$repositories","toastr","$location","$route","$timeout","EventEmitterService","GuidesRestService"]},65:function(e,t,n){"use strict";n.r(t);n(10);angular.module("graphdb.framework.core.interceptors.unauthorized",["ngCookies"]).factory("$unauthorizedInterceptor",["$q","$location","$rootScope","$translate",function(e,t,n,r){return{responseError:function(i){var o=!1;return 401===i.status?i.config.url.indexOf("rest/security/authenticated-user")<0&&!n.hasExternalAuthUser()&&(o=!0):403===i.status&&(n.setPermissionDenied(t.path())?console.log(r.instant("unauthorized.console.warning")):o=!0),o?Promise.resolve(n.redirectToLogin()).then((function(){return e.reject(i)})):e.reject(i)}}}])},66:function(e,t,n){"use strict";n.r(t);n(10);angular.module("graphdb.framework.core.interceptors.authentication",["ngCookies"]).factory("$authenticationInterceptor",["AuthTokenService","LocalStorageAdapter","LSKeys",function(e,t,n){return{request:function(r){var i=r.headers||{};if([e.OPENID_CONFIG.openIdKeysUri,e.OPENID_CONFIG.openIdTokenUrl].some((function(e){return r.url.indexOf(e)>-1})))return r;if(i["X-Requested-With"]="XMLHttpRequest",e.getAuthToken()&&(i.Authorization=e.getAuthToken()),!i["X-GraphDB-Repository"]){var o=t.get(n.REPOSITORY_ID),a=t.get(n.REPOSITORY_LOCATION);i["X-GraphDB-Repository"]=o||void 0,i["X-GraphDB-Repository-Location"]=a||void 0}return r.headers=i,r}}}])},68:function(e,t,n){"use strict";n.r(t);var r=n(9);function i(e){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function a(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?o(Object(n),!0).forEach((function(t){s(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function s(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=i(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=i(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==i(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var u={headers:{"X-GraphDB-Repository-Location":void 0,"X-GraphDB-Repository":void 0,"X-Requested-With":void 0,Authorization:void 0}};angular.module("graphdb.framework.core.services.openIDService",["toastr"]).service("$openIDAuth",["$http","$location","$window","toastr","$translate","AuthTokenService",function(e,t,n,i,o,s){var l="com.ontotext.graphdb.openid.",c=this;function h(e){var t=[];for(var n in e)e.hasOwnProperty(n)&&t.push("".concat(n,"=").concat(encodeURIComponent(e[n])));return t.join("&")}this.login=function(e,t){var r=c.generateRandomString(),a=e.authFlow;if("code"===a){c.setStorageItem("pkce_state",r);var s=c.generateRandomString();c.setStorageItem("pkce_code_verifier",s);var u=c.pkceChallengeFromVerifier(s);n.location.href=c.getLoginUrl(r,u,t,e)}else"code_no_pkce"===a?(c.removeStorageItem("pkce_code_verifier"),n.location.href=c.getLoginUrl(r,"",t,e)):"implicit"===a?(c.setStorageItem("nonce",r),n.location.href=c.getLoginUrl(r,"",t,e)):(console.log("oidc: unknown auth flow: "+a),i.error(o.instant("openid.auth.unknown.flow",{authFlow:a})))},this.getLoginUrl=function(e,t,n,r){var i=[],a="";switch(r.authFlow){case"code":a="code",i.push("state="+encodeURIComponent(e)),i.push("code_challenge="+encodeURIComponent(t)),i.push("code_challenge_method=S256");break;case"code_no_pkce":a="code";break;case"implicit":a="token id_token",i.push("nonce="+encodeURIComponent(e));break;default:throw new Error(o.instant("openid.auth.unknown.flow",{authFlow:r.authFlow}))}return i.unshift("response_type=".concat(encodeURIComponent(a)),"scope=".concat(encodeURIComponent(c.getScope(r.extraScopes))),"client_id=".concat(encodeURIComponent(r.clientId)),"redirect_uri=".concat(encodeURIComponent(n))),r.oracleDomain&&i.push("domain=".concat(encodeURIComponent(r.oracleDomain))),r.authorizeParameters&&i.push(r.authorizeParameters),"".concat(r.oidcAuthorizationEndpoint,"?").concat(i.join("&"))},this.withOpenIdKeys=function(t,n){e.get(t,u).success((function(e){s.OPENID_CONFIG.openIdKeys={},e.keys.forEach((function(e){s.OPENID_CONFIG.openIdKeys[e.kid]=e})),n()}))},this.initOpenId=function(e,t,r,a){c.clientId=e.clientId,c.tokenType=e.tokenType,c.idTokenAudience=e.clientId,c.idTokenIssuer=e.issuer,c.accessTokenAudience=e.tokenAudience,c.accessTokenIssuer=e.tokenIssuer,s.OPENID_CONFIG.openIdTokenUrl=e.oidcTokenEndpoint,s.OPENID_CONFIG.openIdKeysUri=e.oidcJwksUri,e.proxyOidc&&(s.OPENID_CONFIG.openIdKeysUri="rest/openid/jwks",s.OPENID_CONFIG.openIdTokenUrl="rest/openid/token"),s.OPENID_CONFIG.openIdEndSessionUrl=e.oidcEndSessionEndpoint,s.OPENID_CONFIG.supportsOfflineAccess=e.oidcScopesSupported.includes("offline_access"),e.oracleDomain&&(u.headers["X-OAuth-Identity-Domain-Name"]=e.oracleDomain),c.withOpenIdKeys(s.OPENID_CONFIG.openIdKeysUri,(function(){if(c.isLoggedIn=c.hasValidIdToken(),c.isLoggedIn)c.setupTokensRefresh(!1,r,a);else if(c.hasValidRefreshToken())c.refreshTokens(r,a);else{var s=r;r=function(){c.isLoggedIn=!0,s(!0)},c.softLogout();var u=c.parseQueryString(n.location.search.substring(1));if(u.code)"code"===e.authFlow?c.getStorageItem("pkce_state")!==u.state?(i.error(o.instant("openid.auth.invalid.pkce.state")),console.log("oidc: PKCE state mismatch "+c.getStorageItem("pkce_state")+" != "+u.state),a()):c.retrieveTokensByCode(u.code,t,r,a):"code_no_pkce"===e.authFlow&&c.retrieveTokensByCode(u.code,t,r,a);else{var l=c.parseQueryString(n.location.pathname.substring(1));l.id_token?c.saveTokens(l,!0,!1,r):a()}}}))},this.authHeaderGraphDB=function(){return"id"===c.getStorageItem("token_type")?"Bearer "+c.getToken("id"):"Bearer "+c.getToken("access")},this.softLogout=function(){c.isLoggedIn=!1,c.setToken("id",null),c.setToken("access",null),c.setToken("refresh",null)},this.hardLogout=function(e){c.softLogout(),s.OPENID_CONFIG.openIdEndSessionUrl&&(n.location.href="".concat(s.OPENID_CONFIG.openIdEndSessionUrl,"?client_id=").concat(encodeURIComponent(c.clientId),"&post_logout_redirect_uri=").concat(encodeURIComponent(e)))},this.getToken=function(e){return c.getStorageItem(e+"_token")},this.setToken=function(e,t){t?c.setStorageItem(e+"_token",t):c.removeStorageItem(e+"_token")},this.tokenHeader=function(e){var t=c.getToken(e);if(t){try{var n=r.KJUR.jws.JWS.readSafeJSONString(Object(r.b64utoutf8)(t.split(".")[0]));if(n)return n}catch(e){}return{error:o.instant("openid.auth.not.jwt.token",{token:t})}}return{}},this.verifyToken=function(e){var t=c.getToken(e),n=c.tokenHeader(e);if(!n.kid)return"id"!==e?n.error?(console.log("oidc: token ".concat(e," is not a JWT token (token considered valid)")),!0):(console.log("oidc: invalid token ".concat(e," (token is empty)")),!1):(console.log("oidc: invalid token id (not a JWT token)"),!1);var i=s.OPENID_CONFIG.openIdKeys[n.kid];if(!i)return console.log("oidc: no key to verify JWT token (token considered invalid)"),!1;var o=r.KEYUTIL.getKey(i),a={alg:[n.alg],iss:[c.idTokenIssuer]};return"id"===e?(a.aud=[c.idTokenAudience,c.idTokenIssuer],a.nonce=[c.getStorageItem("nonce")]):"access"===e&&(a.aud=[c.accessTokenAudience],a.iss=[c.accessTokenIssuer]),r.KJUR.jws.JWS.verifyJWT(t,o,a)},this.hasValidIdToken=function(){return c.getToken("id")?c.verifyToken("id")?(console.log("oidc: valid id token found"),!0):(console.log("oidc: stale id token"),!1):(console.log("oidc: no id token"),!1)},this.tokenPayload=function(e){var t=c.getToken(e);if(t){try{var n=r.KJUR.jws.JWS.readSafeJSONString(Object(r.b64utoutf8)(t.split(".")[1]));if(n)return n}catch(e){}return{error:o.instant("openid.auth.not.jwt.token",{token:t})}}return{}},this.saveTokens=function(e,n,r,i){(n||e.refresh_token)&&c.setToken("refresh",e.refresh_token),c.setToken("access",e.access_token),c.setToken("id",e.id_token),c.setStorageItem("token_type",c.tokenType),console.log("oidc: saved tokens"),c.setupTokensRefresh(n||r,i),c.removeStorageItem("pkce_state"),c.removeStorageItem("pkce_code_verifier"),n&&t.url("/")},this.retrieveTokensByCode=function(t,n,r,l){var p={grant_type:"authorization_code",client_id:c.clientId,redirect_uri:n,code:t},f=c.getStorageItem("pkce_code_verifier");f&&(p.code_verifier=f);var d=a(a({},u.headers),{"Content-type":"application/x-www-form-urlencoded; charset=utf-8"});e({method:"POST",url:s.OPENID_CONFIG.openIdTokenUrl,headers:d,transformRequest:h,data:p}).success((function(e){c.saveTokens(e,!0,!1,r)})).error((function(e){i.error(o.instant("openid.auth.cannot.retrieve.token.msg",{error:getError(e)})),l()}))},this.refreshTokens=function(t,n){if(c.hasValidRefreshToken()){var r={grant_type:"refresh_token",client_id:c.clientId,refresh_token:c.getToken("refresh")},l=a(a({},u.headers),{"Content-type":"application/x-www-form-urlencoded; charset=utf-8"});e({method:"POST",url:s.OPENID_CONFIG.openIdTokenUrl,headers:l,transformRequest:h,data:r}).success((function(e){console.log("oidc: refreshed tokens"),c.saveTokens(e,!1,!0,t),c.isLoggedIn=!0})).error((function(e){console.log("oidc: could not refresh tokens"),i.error(o.instant("openid.auth.cannot.refresh.token.msg",{error:getError(e)})),n&&n()}))}else console.log("oidc: refresh requested without a valid refresh token")},this.hasValidRefreshToken=function(){var e=c.tokenPayload("refresh");return!(e.nbf&&1e3*e.nbf-Date.now()>5e3)&&(!(e.exp&&Date.now()-1e3*e.exp>5e3)&&!(!e.iat&&!e.error))},this.setupTokensRefresh=function(e,t,n){if(c.hasValidRefreshToken()){clearTimeout(c.previousTimer);var r=c.tokenPayload("id");if(r.exp>0){var i=1e3*r.exp-Date.now()-6e4;if(!(e||i>1e3))return c.previousTimer=null,console.log("oidc: tokens will refresh now, "+i+"; "+e),void c.refreshTokens(t,n);c.previousTimer=setTimeout((function(){c.refreshTokens(t)}),i),console.log("oidc: tokens will refresh in "+i/1e3+" seconds at "+new Date(Date.now()+i))}}else console.log("oidc: no valid refresh token");t()},this.parseQueryString=function(e){var t={access_token:null,code:null,id_token:null,state:null};return""===e||e.split("&").map((function(e){return e.split("=")})).forEach((function(e){t[e[0]]=decodeURIComponent(e[1])})),t},this.generateRandomString=function(){var e=new Uint32Array(28);return window.crypto.getRandomValues(e),Array.from(e,(function(e){return("0"+e.toString(16)).substr(-2)})).join("")},this.pkceChallengeFromVerifier=function(e){var t=new r.KJUR.crypto.MessageDigest({alg:"sha256",prov:"cryptojs"});return Object(r.hextob64u)(t.digestString(e))},this.getScope=function(e){var t="openid"+(s.OPENID_CONFIG.supportsOfflineAccess?" offline_access":"");return e&&(t+=" "+e),console.log("oidc: requesting scopes '".concat(t,"'")),t},this.setStorageItem=function(e,t){localStorage.setItem(l+e,t)},this.getStorageItem=function(e){return localStorage.getItem(l+e)},this.removeStorageItem=function(e){localStorage.removeItem(l+e)}}])},69:function(e,t){!function(e){e.getError=function(e,t,n){if(angular.isObject(e)&&e.status&&e.data)return getError(e.data,t,n);if(t&&403===t)return"Access is restricted";if(e){var r="Generic error";if(angular.isString(e))-1===e.indexOf("<html>")&&(r=(r=e).replace(/^(([a-z0-9_]+\.)+[a-zA-Z0-9_]+: )+/,""));else if(angular.isObject(e)){if("message"in e&&(r=e.message),"error"in e&&(r=e.error.message),"responseJSON"in e&&"message"in e.responseJSON)return getError(e.responseJSON,t,n);"responseText"in e&&(r=e.responseText)}return n>0&&r.length>n&&(r=r.substr(0,n)+"..."),r}return"There is an error"}}(window)},7:function(e,t,n){"use strict";n.r(t),n.d(t,"OPERATION_STATUS",(function(){return r})),n.d(t,"OPERATION_STATUS_SORT_ORDER",(function(){return i}));var r={CRITICAL:"CRITICAL",WARNING:"WARNING",INFORMATION:"INFORMATION"},i={INFORMATION:0,WARNING:1,CRITICAL:2,getOrder:function(e){switch(e){case r.WARNING:return i.WARNING;case r.CRITICAL:return i.CRITICAL;default:return i.INFORMATION}}}},70:function(e,t,n){"use strict";n.r(t);n(10),n(71),n(72),n(34),n(61),n(55),n(35),n(26),n(98),n(99),n(54),n(53),n(75),n(76),n(29),n(60);var r=n(2),i=(n(15),n(81),n(56),n(82),n(1)),o=(n(64),n(84),n(21)),a=(n(372),n(384),n(24)),s=n(17),u=n(11);function l(e,t,n,r,i,o,a,s,l,c,h,p,f){e.doClear=!1,e.getActiveRepositorySize=function(){var t=r.getActiveRepositoryObject();t&&(e.activeRepositorySizeError=void 0,c.getSize(t).then((function(t){e.activeRepositorySize=t.data})).catch((function(t){e.activeRepositorySizeError=t.data.message})))},e.onKeyDown=function(t){27===t.keyCode&&(e.doClear=!0)};var d=[];d.push(h.onSelectedRepositoryIdUpdated((function(t){t?(e.getActiveRepositorySize(),p.getNamespaces(t).then((function(t){e.repositoryNamespaces=t})).catch((function(e){var t=getError(e);f.error(t,a.instant("error.getting.namespaces.for.repo"))}))):e.repositoryNamespaces=new u.NamespacesListModel}))),d.push(h.onAutocompleteEnabledUpdated((function(t){e.isAutocompleteEnabled=t}))),e.$on("$destroy",(function(){return d.forEach((function(e){return e()}))})),e.$on("$routeChangeSuccess",(function(n,r,o){o&&(i.isAuthenticated()||i.isFreeAccessEnabled()?e.getActiveRepositorySize():t.redirectToLogin())}))}function c(e,t,n,u,l,c,h,p,f,d,g,m,v,y,b,w,x,S,E,A,C,T,F,k,R,P,D,O,I,j,L){e.descr=T.instant("main.gdb.description"),e.documentation="",e.menu=t,e.menuCollapsed=!1,e.tutorialState=1!==A.get(C.TUTORIAL_STATE),e.userLoggedIn=!1,e.embedded=c.search().embedded,e.productInfo=d,e.guidePaused="true"===A.get(o.GUIDE_PAUSE),e.startGuideAfterSecurityInit=!0,e.hideRdfResourceSearch=!1,e.showRdfResourceSearch=function(){return!e.hideRdfResourceSearch&&!!e.getActiveRepository()&&e.hasActiveLocation()&&(!e.isLoadingLocation()||e.isLoadingLocation()&&"/repository"===c.url())};e.onRdfResourceSearch=function(){N()&&(e.hideRdfResourceSearch=!0,$("#search-resource-input-home input").focus(),l.info(Object(i.decodeHTML)(T.instant("search.resource.current.page.msg")),T.instant("search.resources.msg"),{allowHtml:!0}))};var N=function(){return"/"===c.url()};e.isMenuCollapsedOnLoad=function(){return $(".main-menu").hasClass("collapsed")},e.checkMenu=Object(a.debounce)((function(){var t=e.isMenuCollapsedOnLoad();e.menuCollapsed!==t&&(e.menuCollapsed=t)}),0,{trailing:!0});var M=e.$watch((function(){return e.isMenuCollapsedOnLoad()}),(function(t,n){t===n&&void 0!==t||e.checkMenu()}));e.showLabel=function(t){return!!t.children||!e.menuCollapsed};var B;B=new Date,e.currentYear=B.getFullYear(),e.previousYear=2002,$("#repositorySelectDropdown").on("hide.bs.dropdown",(function(e){R.isActive()&&$("#repositorySelectDropdown.autoCloseOff").length>0&&e.preventDefault()})),e.$on("$routeChangeSuccess",(function(t,n,r){e.clicked=!1,e.hideRdfResourceSearch=!1,$(".menu-element-root").removeClass("active"),g((function(){$(".menu-element.open a.menu-element-root").addClass("active"),$(".main-menu.collapsed .menu-element.open .menu-element-root").addClass("active")}),400),r&&p.checkLicenseStatus().then((function(){return I.applyTrackingConsent()})).catch((function(e){var t=getError(e.data,e.status);l.error(t,T.instant("common.error"))}))})),e.resumeGuide=function(){f.$broadcast("guideResume")},f.$on("guideReset",(function(){e.guidePaused=!1,f.guidePaused=!1})),f.$on("guideStarted",(function(){e.guidePaused=!1,f.guidePaused=!1})),f.$on("guidePaused",(function(){e.guidePaused=!0,f.guidePaused=!0})),f.$on("$translateChangeSuccess",(function(){e.menu.forEach((function(e){e.label=T.instant(e.labelKey),e.children&&e.children.forEach((function(e){e.label=T.instant(e.labelKey)}))})),f.helpInfo=E.trustAsHtml(Object(i.decodeHTML)(T.instant(f.helpInfo))),f.title=Object(i.decodeHTML)(T.instant(f.title)),e.initTutorial()})),e.copyToClipboard=function(e){m.openCopyToClipboardModal(e)},e.goToAddRepo=function(){c.path("/repository/create").search({previous:"home"})},e.goToEditRepo=function(e){c.path("repository/edit/".concat(e.id)).search({previous:"home",location:e.location})},e.getLocationFromUri=function(e){return h.getLocationFromUri(e)},e.$on("$locationChangeSuccess",(function(){e.showFooter=!0})),e.$on("repositoryIsSet",(function(){e.setRestricted(),A.clearClassHieararchyState()})),e.graphdbVersion=e.engineVersion=d.productVersion,e.workbenchVersion=d.Workbench,e.connectorsVersion=d.connectors,e.sesameVersion=d.sesame,e.select=function(t,n,r){$(".main-menu").hasClass("collapsed")?$(n.target).parents(".menu-element").children(".menu-element-root").hasClass("active")?(e.selected=t,e.clicked=!r):(!$(n.target).parents(".menu-element").hasClass("open")&&r?e.clicked=!0:e.clicked=!r,e.selected===t?e.selected=-1:e.selected=t):(!$(n.target).parents(".menu-element").hasClass("open")&&r?e.clicked=!0:e.clicked=!r,0!==$(n.target).parent(".menu-element").find(".sub-menu").length?($(n.target).parents(".menu-element").children(".menu-element-root").hasClass("active")?$(".sub-menu li.active").parents(".menu-element").children(".menu-element-root").removeClass("active"):$(".sub-menu li.active").parents(".menu-element").children(".menu-element-root").addClass("active"),e.selected===t?e.selected=-1:e.selected=t):(g((function(){$(n.target).parents(".menu-element").children(".menu-element-root").addClass("active")}),50),e.selected=t))},$("body").bind("click",(function(t){!$(t.target).parents(".main-menu").length&&$(".main-menu").hasClass("collapsed")&&(e.clicked=!1,e.selected=-1)})),e.resolveUrl=function(e,t){return s.DocumentationUrlResolver.getDocumentationUrl(e,t)},e.isCurrentPath=function(e){return c.path()==="/"+e},e.isCurrentSubmenuChildPath=function(t){return 0!==t.children.length&&t.children.some((function(t){return e.isCurrentPath(t.href)}))},"/"===c.path()?e.selected=-1:(g((function(){var t=c.path().replace("/",""),n=$('a[href^="'+t+'"]');e.selected=n.closest(".menu-element").index()-1}),200),e.isCurrentPath(c.path())),e.popoverTemplate="js/angular/templates/repositorySize.html",e.securityEnabled=!0,e.isSecurityEnabled=function(){return n.isSecurityEnabled()},e.isFreeAccessEnabled=function(){return n.isFreeAccessEnabled()},e.hasExternalAuthUser=function(){return n.hasExternalAuthUser()},e.isDefaultAuthEnabled=function(){return n.isDefaultAuthEnabled()},e.isUserLoggedIn=function(){return e.userLoggedIn},e.hasActiveLocation=function(){return h.hasActiveLocation()},e.getActiveLocation=function(){return h.getActiveLocation()},e.isLoadingLocation=function(){return h.isLoadingLocation()},e.getRepositories=function(){return h.getRepositories()},e.getReadableRepositories=function(){return h.getReadableRepositories()},e.getAllAccessibleRepositories=function(){return h.getAllAccessibleRepositories()},e.getWritableRepositories=function(){return h.getWritableRepositories()},e.getActiveRepository=function(){return h.getActiveRepository()},e.canWriteRepoInLocation=function(e){return n.canWriteRepo(e)},e.canWriteActiveRepo=function(e){var t=h.getActiveRepositoryObject();return!!t&&(n.canWriteRepo(t)&&("SYSTEM"!==t.id||!e))},e.getActiveRepositoryObject=function(){return h.getActiveRepositoryObject()},e.getActiveRepositoryShortLocation=function(){var e=h.getActiveRepositoryObject();if(e){var t=e.location;if(t)return"@"+F.shortenIri(t)}return""},e.isActiveRepoOntopType=function(){return h.isActiveRepoOntopType()},e.isActiveRepoFedXType=function(){return h.isActiveRepoFedXType()},e.isLicensePresent=function(){return p.isLicensePresent()},e.isLicenseValid=function(){return p.isLicenseValid()},e.setAttrs=function(t){e.attrs=t},e.setRestricted=function(){e.attrs&&(e.isRestricted=e.attrs.hasOwnProperty("license")&&!p.isLicenseValid()||e.attrs.hasOwnProperty("write")&&e.isSecurityEnabled()&&!e.canWriteActiveRepo()||e.attrs.hasOwnProperty("ontop")&&e.isActiveRepoOntopType()||e.attrs.hasOwnProperty("fedx")&&e.isActiveRepoFedXType())},e.toHumanReadableType=function(e){switch(e){case"graphdb":return"Graphdb";case"system":return"System";case"ontop":return"Ontop";case"fedx":return"FedX";default:return"Unknown"}},e.setRepository=function(e){h.setRepository(e)},e.logout=function(){n.clearAuthentication(),l.success("Signed out"),n.freeAccess?(h.resetActiveRepository(),n.updateReturnUrl()):n.isSecurityEnabled()&&f.redirectToLogin()},e.showMainManuAndStatusBar=function(){return n.isAuthenticated()||e.isSecurityEnabled()&&e.isFreeAccessEnabled()};var U,H=function(){setTimeout((function(){D.location.reload()}),0)},V=void 0,q=function(e){if(O.AUTH_STORAGE_NAME===e.key){var t=n.isAuthenticated();n.updateReturnUrl(),V!==t&&((V=t)?(c.url(f.returnToUrl||"/"),P.reload(),H()):(f.redirectToLogin(),H()))}};window.addEventListener("storage",q),e.$on("$destroy",(function(){document.removeEventListener("click",z),window.removeEventListener("storage",q),e.cancelPopoverOpen(),M(),e.checkMenu&&g.cancel(e.checkMenu)})),e.isAdmin=function(){return e.hasRole(r.UserRole.ROLE_ADMIN)},e.isUser=function(){return e.hasRole(r.UserRole.ROLE_USER)},e.hasRole=function(e){return!!angular.isUndefined(e)||n.hasRole(e)},e.hasPermission=function(){return f.hasPermission()},e.canReadRepo=function(e){return n.canReadRepo(e)},e.checkForWrite=function(e,t){return n.checkForWrite(e,t)},e.hasAuthority=function(){return n.hasAuthority()},e.hasGraphqlRightsOverCurrentRepo=function(){return n.hasGraphqlRightsOverCurrentRepo()},e.setPopoverRepo=function(t){e.popoverRepo=t},e.handlePopovers=function(t){e.setPopoverRepo(t),e.closeActiveRepoPopover()},e.isRepoActive=function(e){return h.isRepoActive(e)},e.getRepositorySize=function(){e.repositorySize={},e.popoverRepo&&(e.repositorySize.loading=!0,w.getSize(e.popoverRepo).then((function(t){e.repositorySize=t.data})))},e.isActiveRepoPopoverOpen=!1,e.openActiveRepoPopover=function(){e.getActiveRepository()&&(e.cancelPopoverOpen(),U=g((function(){e.isActiveRepoPopoverOpen=!0}),1e3))},e.cancelPopoverOpen=function(){g.cancel(U)},e.closeActiveRepoPopover=function(){e.isActiveRepoPopoverOpen=!1};var z=function(t){var n=document.querySelector(".popover");e.isActiveRepoPopoverOpen&&n&&!n.contains(t.target)&&g((function(){e.isActiveRepoPopoverOpen=!1}),0)};function K(e){e?$(":root").addClass("menu-collapsed"):$(":root").removeClass("menu-collapsed")}function G(){$(window).width()<=720?($(".container-fluid.main-container").addClass("expanded"),K(!0),$(".main-menu").addClass("collapsed"),$(".main-menu .icon-caret-left").toggleClass("icon-caret-left").toggleClass("icon-caret-right"),$(".toggle-menu").hide()):$(window).width()>720&&"collapsedMenu"===A.get(C.MENU_STATE)?($(".container-fluid.main-container").addClass("expanded"),K(!0),$(".main-menu").addClass("collapsed"),$(".toggle-menu").show(),$(".main-menu .icon-caret-left").toggleClass("icon-caret-left").toggleClass("icon-caret-right")):($(".container-fluid.main-container").removeClass("expanded"),K(!1),$(".main-menu").removeClass("collapsed"),$(".toggle-menu").show(),$(".main-menu .icon-caret-right").toggleClass("icon-caret-right").toggleClass("icon-caret-left"))}document.addEventListener("click",z),e.getDegradedReason=function(){return h.getDegradedReason()},e.canManageRepositories=function(){return n.hasRole(r.UserRole.ROLE_REPO_MANAGER)&&!h.getDegradedReason()},e.getSavedQueries=function(){S.getSavedQueries().success((function(t){e.sampleQueries=t})).error((function(e){var t=getError(e);l.error(t,T.instant("query.editor.get.saved.queries.error"))}))},e.goToSparqlEditor=function(e){c.path("/sparql").search({savedQueryName:e.name,owner:e.owner,execute:!0})},e.declineTutorial=function(){A.set(C.TUTORIAL_STATE,1),e.tutorialState=!1},e.showTutorial=function(){e.tutorialState=!0,A.remove(C.TUTORIAL_STATE)},e.initTutorial=function(){if(e.tutorialState||"/"===c.path()){e.tutorialInfo=[{title:T.instant("main.info.title.welcome.page"),info:"<p>"+Object(i.decodeHTML)(T.instant("main.info.welcome.page"))+"</p><p>"+Object(i.decodeHTML)(T.instant("main.info.welcome.page.guides"))+"</p><p>"+Object(i.decodeHTML)(T.instant("main.info.welcome.page.footer"))+"</p>"},{title:T.instant("main.info.title.create.repo.page"),info:Object(i.decodeHTML)(T.instant("main.info.create.repo.page",{link:'<a href="https://graphdb.ontotext.com/documentation/'+d.productShortVersion+'/configuring-a-repository.html" target="_blank">'}))},{title:T.instant("main.info.title.load.sample.dataset"),info:T.instant("main.info.load.sample.dataset")},{title:T.instant("main.info.title.run.sparql.query"),info:Object(i.decodeHTML)(T.instant("main.info.run.sparql.query"))},{title:T.instant("menu.rest.api.label"),info:Object(i.decodeHTML)(T.instant("main.info.rest.api"))}],e.activePage=0,$(".pages-wrapper .page-slide").css("opacity",100);var t=$(".main-container")[0].offsetWidth+200;g((function(){var n=$(".pages-wrapper .page-slide");n.css("left",t+"px"),$(n[e.activePage]).css("left","0px"),$($(".btn-toolbar.pull-right .btn-group .btn")[0]).focus()}),50)}},e.getTutorialPageHtml=function(e){return E.trustAsHtml(e.info)},e.checkSubMenuPosition=function(e){0===e?$(".main-menu.collapsed .sub-menu").removeClass("align-bottom"):$(window).height()<735?$(".main-menu.collapsed .sub-menu").addClass("align-bottom"):$(".main-menu.collapsed .sub-menu").removeClass("align-bottom")},G(),$(window).resize((function(){angular.isDefined(e.menuState)?$(window).width()<=720?($(".container-fluid.main-container").addClass("expanded"),K(!0),$(".main-menu").addClass("collapsed"),$(".toggle-menu").hide(),$(".main-menu .icon-caret-left").toggleClass("icon-caret-left").toggleClass("icon-caret-right")):$(window).width()>720&&e.menuState?$(".toggle-menu").show():($(".container-fluid.main-container").removeClass("expanded"),K(!1),$(".main-menu").removeClass("collapsed"),$(".toggle-menu").show(),$(".main-menu .icon-caret-right").toggleClass("icon-caret-right").toggleClass("icon-caret-left")):G(),e.tutorialState&&"/"===c.path()&&e.initTutorial(),$(window).height()<735?($(".sub-menu").addClass("align-bottom"),$(".main-menu.collapsed li:nth-child(2) .sub-menu").removeClass("align-bottom")):$(".sub-menu").removeClass("align-bottom")})),e.slideToPage=function(t){var n=$(".main-container")[0].offsetWidth,r=$(".pages-wrapper .page-slide");r.css("opacity","0").delay(200).css("left",n+"px"),e.activePage=t,$(r[e.activePage]).css("opacity","100").css("left","0px")},e.slideNext=function(){var t=++e.activePage;t>=e.tutorialInfo.length&&(t=0),e.slideToPage(t),$($(".btn-toolbar.pull-right .btn-group .btn")[e.activePage]).focus()},e.toggleNavigation=function(){var t=$(".main-menu"),n=$(".sub-menu li.active");if(t.hasClass("collapsed"))n.parents(".menu-element").hasClass("open")?n.parents(".menu-element").children(".menu-element-root").removeClass("active"):n.parents(".menu-element").children(".menu-element-root").addClass("active"),$(".container-fluid.main-container").removeClass("expanded"),K(!1),t.removeClass("collapsed"),$(".main-menu .icon-caret-right").toggleClass("icon-caret-right").toggleClass("icon-caret-left"),f.$broadcast("onToggleNavWidth",!1);else{n.parents(".menu-element").children(".menu-element-root").addClass("active");var r=$(".menu-element");r.hasClass("open")&&(r.removeClass("open"),e.clicked=!1,e.selected=-1),$(".container-fluid.main-container").addClass("expanded"),K(!0),t.addClass("collapsed"),$(".main-menu .icon-caret-left").toggleClass("icon-caret-left").toggleClass("icon-caret-right"),$(".main-menu.collapsed .menu-element.clicked").removeClass("clicked"),f.$broadcast("onToggleNavWidth",!0)}},e.$on("onToggleNavWidth",(function(t,n){if(e.menuState=n,n?A.set(C.MENU_STATE,"collapsedMenu"):A.set(C.MENU_STATE,"expandedMenu"),e.tutorialState&&"/"===c.path()){var r=$(".pages-wrapper")[0].offsetWidth+200;g((function(){var t=$(".pages-wrapper .page-slide");t.css("left",r+"px"),$(t[e.activePage]).css("left","0px")}),50)}})),n.securityInitialized&&e.getSavedQueries(),e.$on("securityInit",(function(t,r,i,o){if(e.securityEnabled=r,e.userLoggedIn=i,!r||i||o){k.when(n.getPrincipal()).then((function(t){e.principal=t,e.isIgnoreSharedQueries=t&&t.appSettings.IGNORE_SHARED_QUERIES})).then((function(){setTimeout((function(){return e.getSavedQueries()}),500)})),p.checkLicenseStatus().then((function(){return I.applyTrackingConsent()})).catch((function(e){var t=getError(e.data,e.status);l.error(t,T.instant("common.error"))}));var a=c.search();n.isRepoManager()&&e.startGuideAfterSecurityInit&&a.autostartGuide&&(s=a.autostartGuide,u=v((function(){T.use()&&(R.autoStartGuide(s),v.cancel(u))}),50,20),e.startGuideAfterSecurityInit=!1)}else"/login"!==c.path()&&f.redirectToLogin();var s,u})),e.isTrackingAllowed=function(){return I.isTrackingAllowed()},e.getProductType=function(){return p.productType()},e.isEnterprise=function(){return"enterprise"===e.getProductType()},e.isFreeEdition=function(){return"free"===e.getProductType()},e.checkEdition=function(t){return null==t||_.indexOf(t,e.getProductType())>=0},e.showLicense=function(){return p.showLicense()},e.getLicense=function(){return p.license()},e.getLicenseErrorMsg=function(){return p.licenseErrorMsg()},e.isLicenseHardcoded=function(){return p.isLicenseHardcoded()},e.getHumanReadableSeconds=function(e,t){var n=Math.floor(e/86400),r=Math.floor(e%86400/3600),i=Math.floor(e%3600/60),o="";return n&&(o+=n+"d "),(n||r)&&(o+=r+"h "),(n||r||i)&&(o+=i+"m "),(o+=(t&&e<10?e<1?_.ceil(e%60,1):_.round(e%60,1):_.round(e%60,0))+"s").replace(/( 0[a-z])+$/,"")},e.getHumanReadableTimestamp=function(e){var t=Date.now(),n=(t-e)/1e3;if(n<60)return T.instant("timestamp.moments.ago");if(n<600)return T.instant("timestamp.minutes.ago");var r=new Date(t),i=new Date(e);return r.getYear()===i.getYear()&&r.getMonth()===i.getMonth()&&r.getDate()===i.getDate()?y("date")(e,"'"+T.instant("timestamp.today.at")+"' HH:mm"):n<86400?y("date")(e,"'"+T.instant("timestamp.yesterday.at")+"' HH:mm"):y("date")(e,"'"+T.instant("timestamp.on")+"' yyyy-MM-dd '"+T.instant("timestamp.at")+"' HH:mm")};var W=function(){var e=h.getActiveRepository();e!==j.getSelectedRepositoryId()&&(j.setSelectedRepositoryId(e),function(){if(h.isActiveRepoFedXType()||!p.isLicenseValid()||!n.canReadRepo(h.getActiveRepository()))return j.setAutocompleteEnabled(!1),void A.set(C.AUTOCOMPLETE_ENABLED,!1);L.checkAutocompleteStatus().then((function(e){j.setAutocompleteEnabled(e),A.set(C.AUTOCOMPLETE_ENABLED,e)})).catch((function(){l.error(T.instant("explore.error.autocomplete"))}))}())};f.$on("repositoryIsSet",W),window.addEventListener("storage",(function(e){"ls."+C.AUTOCOMPLETE_ENABLED===e.key?j.setAutocompleteEnabled("true"===e.newValue):"ls."+C.REPOSITORY_ID===e.key&&W()})),e.downloadGuidesFile=function(e,t){R.downloadGuidesFile(e,t).catch((function(e){l.error(T.instant("guide.step_plugin.download-guide-resource.download.message.failure",{resourceFile:t}))}))}}function h(e,t,n){e.getRepositorySize=function(t){n.getSize(t).then((function(t){e.size=t.data}))}}function p(e,t,n,r){e.colors=[{name:"black",shade:"dark"},{name:"white",shade:"light"},{name:"red",shade:"dark"},{name:"blue",shade:"dark"},{name:"yellow",shade:"light"}],e.myColor=e.colors[2],e.specialValue={id:"12345",value:"green"},e.checkedItem={name:"black",shade:"dark"},e.toggleOn=!0,e.toggleSwitch=function(){e.toggleOn=!e.toggleOn},e.repositories=["Repo1","Repo2","Repo3"],e.formats=["JSON","JSON-LD","Turtle"],e.onopen=e.onclose=function(){return angular.noop()},e.openInfoPanel=!1,e.showInfoPanel=function(){e.openInfoPanel=!0},e.closeInfoPanel=function(){e.openInfoPanel=!1},e.slideOpen=!1,e.toggleSlide=function(){e.slideOpen=!e.slideOpen},e.slider={value:10,minValue:10,maxValue:90,options:{floor:0,ceil:100,step:1}},e.openModal=function(){var e=r.openSimpleModal({title:"Confirm",message:"Lorem ipsum dolor sit amet.",warning:!0});e.result.then((function(){e.dismiss("cancel")}))},e.demoToast=function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];n[e]("Consectetur adipiscing elit. Sic transit gloria mundi.",t?"Lorem ipsum dolor sit amet":void 0,{timeOut:3e5,extendedTimeOut:3e5})},e.clearToasts=function(){n.clear()},e.clearRepo=function(){t.setRepository("")}}angular.module("graphdb.workbench.se.controllers",["graphdb.framework.core.services.jwtauth","graphdb.framework.core.services.repositories","graphdb.framework.core.services.licenseService","graphdb.framework.core.services.trackingService","graphdb.framework.core.services.theme-service","ngCookies","ngFileUpload","graphdb.framework.core","graphdb.framework.core.controllers","graphdb.framework.core.directives","graphdb.framework.rest.license.service","graphdb.framework.rest.autocomplete.service","graphdb.framework.rest.repositories.service","graphdb.framework.rest.sparql.service","graphdb.framework.rest.plugins.service","graphdb.framework.rest.monitoring.service","graphdb.framework.utils.localstorageadapter","graphdb.framework.utils.workbenchsettingsstorageservice","graphdb.framework.core.services.autocomplete","graphdb.framework.utils.uriutils","graphdb.framework.guides.directives","graphdb.framework.guides.services","pageslide-directive","graphdb.core.services.workbench-context","graphdb.framework.core.services.rdf4j.repositories","rzSlider"]).controller("mainCtrl",c).controller("homeCtrl",l).controller("repositorySizeCtrl",h).controller("uxTestCtrl",p),l.$inject=["$scope","$rootScope","$http","$repositories","$jwtAuth","$licenseService","$translate","AutocompleteRestService","LicenseRestService","RepositoriesRestService","WorkbenchContextService","RDF4JRepositoriesService","toastr"],c.$inject=["$scope","$menuItems","$jwtAuth","$http","toastr","$location","$repositories","$licenseService","$rootScope","productInfo","$timeout","ModalService","$interval","$filter","LicenseRestService","RepositoriesRestService","MonitoringRestService","SparqlRestService","$sce","LocalStorageAdapter","LSKeys","$translate","UriUtils","$q","GuidesService","$route","$window","AuthTokenService","TrackingService","WorkbenchContextService","AutocompleteService"],h.$inject=["$scope","$http","RepositoriesRestService"],p.$inject=["$scope","$repositories","toastr","ModalService"]},71:function(e,t){function n(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,a,s=[],u=!0,l=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=o.call(n)).done)&&(s.push(r.value),s.length!==t);u=!0);}catch(e){l=!0,i=e}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw i}}return s}}(e,t)||function(e,t){if(e){if("string"==typeof e)return r(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(e,t):void 0}}(e,t)||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 r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}angular.module("graphdb.framework.core.services.theme-service",[]).factory("ThemeService",o),o.$inject=["WorkbenchSettingsStorageService","$translate","toastr"];var i={name:null,label:null,variables:{"primary-color-hue":null,"primary-color-saturation":null,"primary-color-lightness":null,"secondary-color-hue":null,"secondary-color-saturation":null,"secondary-color-lightness":null,"tertiary-color-hue":null,"tertiary-color-saturation":null,"tertiary-color-lightness":null,"icon-on-primary-color":null,"gray-color":null,"gray-color-dark":null,"color-danger-dark":null,"color-success-dark":null,"color-warning-dark":null,"color-info-dark":null,"color-danger-light":null,"color-success-light":null,"color-warning-light":null,"color-info-light":null,"color-help-light":null,"logo-color":null,"logo-text-color":null,"logo-background-color":null}};function o(e,t,r){var o=function(){var e=s();return{name:e.name,label:t.instant(e.label)||e.label}},a=function(e){var t=PluginRegistry.findPlugin("themes",(function(t){return t.name===e}));return t||("default-theme"!==e?s():void 0)},s=function(){return a("default-theme")},u=function(e){var n=function e(t,n,r,i){return Object.keys(t).forEach((function(o){o in n?angular.isObject(t[o])&&e(t[o],n[o],r+o+".",i):i.push(r+o)})),i}(i,e,"",[]);return!n.length||(r.error(t.instant("security.workbench.settings.theme.validation.missing-fields")),console.error("\n Color theme validation error. Missing definitions in plugin theme: ".concat(n.join(", "),".\n Check the developers guide how to create a valid color theme.")),!1)},l=function(e){function t(e,t,n){e[t]||(e[t]=n)}function r(e){return Object.entries(e).map((function(e){return e[0]+": "+e[1]+";"})).join("\n")}function i(e){for(var i=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],o={},a=0,s=Object.entries(e.variables);a<s.length;a++){var u=n(s[a],2),l=u[0],c=u[1];o["--"+l]=c}if("properties"in e)for(var h=0,p=Object.entries(e.properties);h<p.length;h++){var f=n(p[h],2),d=f[0],g=f[1];o[d]=g}if(i)for(var m=0,v=["primary","secondary","tertiary"];m<v.length;m++){var y=v[m];t(o,"--".concat(y,"-color-hsl"),"var(--".concat(y,"-color-hue), var(--").concat(y,"-color-saturation), var(--").concat(y,"-color-lightness)")),t(o,"--".concat(y,"-color"),"hsl(var(--".concat(y,"-color-hsl))")),t(o,"--".concat(y,"-color-light"),"hsl(var(--".concat(y,"-color-hue), var(--").concat(y,"-color-saturation), calc(var(--").concat(y,"-color-lightness)*1.2))")),t(o,"--".concat(y,"-color-dark"),"hsl(var(--".concat(y,"-color-hue), var(--").concat(y,"-color-saturation), calc(var(--").concat(y,"-color-lightness)*0.8))"))}return r(o)}var o=e.dark;return"\n :root {\n ".concat(i(e),"\n }\n\n :root.dark {\n ").concat(o?i(o,!1):"","\n }\n ")};return{applyDarkThemeMode:function(){"dark"===e.getWorkbenchSettings().mode&&document.querySelector(":root").classList.add("dark")},toggleThemeMode:function(e){var t=document.querySelector(":root");"dark"===e?t.classList.add("dark"):t.classList.remove("dark")},getDefaultTheme:o,getThemeDefinition:function(){var t=e.getThemeName(),n=PluginRegistry.findPlugin("themes",(function(e){return e.name===t}));return n||(n=s()),n},getTheme:function(){var n,r=(n=e.getThemeName(),a(n));return r?{name:r.name,label:t.instant(r.label)||r.label}:o()},getThemes:function(){return PluginRegistry.get("themes").filter(u).map((function(e){return{name:e.name,label:t.instant(e.label)||e.label}}))},applyTheme:function(e){var t=function(e){var t=l(e),n=new CSSStyleSheet;return n.title=e.name,n.replaceSync(t),n}(a(e));document.adoptedStyleSheets=[t]}}}},72:function(e,t){angular.module("graphdb.framework.rest.sparql.service",[]).factory("SparqlRestService",r),r.$inject=["$http"];var n="".concat("rest/sparql","/saved-queries");function r(e){return{getSavedQueries:function(){return e.get(n)},getSavedQuery:function(t,r){var i="";null!=r&&(i="&owner=".concat(encodeURIComponent(r)));return e.get("".concat(n,"?name=").concat(encodeURIComponent(t)).concat(i))},addKnownPrefixes:function(t){return e.post("".concat("rest/sparql","/add-known-prefixes"),t)},editSavedQuery:function(t){return e.put(n,t)},deleteSavedQuery:function(t){return e.delete("".concat(n,"?name=").concat(encodeURIComponent(t)))},addNewSavedQuery:function(t){return e.post(n,t)},getQueryResult:function(t,n,r){return e.get("repositories/".concat(t),{params:n,headers:{Accept:r}})}}}},73:function(e,t,n){"use strict";n.r(t);n(10);function r(e,t){return{getActiveRepository:function(){return e.get(t.REPOSITORY_ID)||void 0},getActiveRepositoryObject:function(){return{id:e.get(t.REPOSITORY_ID)||"",location:e.get(t.REPOSITORY_LOCATION)||""}},setActiveRepository:function(n,r){e.set(t.REPOSITORY_ID,n),e.set(t.REPOSITORY_LOCATION,r)},unsetActiveRepository:function(){e.remove(t.REPOSITORY_ID),e.remove(t.REPOSITORY_LOCATION)}}}angular.module("graphdb.framework.core.services.repository-storage",[]).factory("RepositoryStorage",r),r.$inject=["LocalStorageAdapter","LSKeys"]},74:function(e,t){angular.module("graphdb.framework.rest.security.service",[]).factory("SecurityRestService",o),o.$inject=["$http"];var n="".concat("rest/security","/users"),r="".concat("rest/security","/authenticated-user"),i="".concat("rest/security","/free-access");function o(e){return{login:function(t,n){return e({method:"POST",url:"rest/login",data:{username:t,password:n}})},getUser:function(r){return e.get("".concat(n,"/").concat(t(r)))},getAdminUser:function(){return e.get("".concat(n,"/admin"))},getUsers:function(){return e.get(n)},createUser:function(r){return e({method:"POST",url:"".concat(n,"/").concat(t(r.username)),data:{password:r.pass,appSettings:r.appSettings,grantedAuthorities:r.grantedAuthorities}})},updateUser:function(r){return e({method:"PUT",url:"".concat(n,"/").concat(t(r.username)),data:{password:r.pass,appSettings:r.appSettings,grantedAuthorities:r.grantedAuthorities}})},updateUserData:function(r){return e({method:"PATCH",url:"".concat(n,"/").concat(t(r.username)),data:{password:r.password,appSettings:r.appSettings}})},deleteUser:function(r){return e.delete("".concat(n,"/").concat(t(r)))},getFreeAccess:function(){return e.get(i)},setFreeAccess:function(t){return e.post(i,t)},getSecurityConfig:function(){return e.get("".concat("rest/security","/all"))},toggleSecurity:function(t){return e.post("rest/security",t?"true":"false")},getRoles:function(){return e.get("rest/roles")},getRolesMapping:function(t){return e.get("".concat("rest/roles","/mapping"),{params:t})},getAuthenticatedUser:function(){return e.get("".concat(r))}};function t(e){return encodeURIComponent(e).replace(/[!'()*]/g,(function(e){return"%"+e.charCodeAt(0).toString(16)}))}}},75:function(e,t){angular.module("graphdb.framework.core.services.licenseService",[]).service("$licenseService",["$window","$document","LicenseRestService","$translate",function(e,t,n,r){var i=void 0,o=!1,a=!1,s=!1,u=function(){return i&&i.present},l=function(){var e;return null===(e=i)||void 0===e?void 0:e.productType};return{checkLicenseStatus:function(){return o=!0,n.getHardcodedLicense().then((function(e){return a="true"===e.data,n.getLicenseInfo()})).then((function(e){i=e.data})).catch((function(){a=!0,i={message:"No license was set",present:!1,valid:!1}})).finally((function(){s=!0,o=!1}))},isLicensePresent:u,isLicenseValid:function(){return i&&i.valid},license:function(){return i},licenseErrorMsg:function(){var e,t,n;return null!==(e=i)&&void 0!==e&&e.present||"No license was set"!==(null===(t=i)||void 0===t?void 0:t.message)?r.instant("error.license",{message:null===(n=i)||void 0===n?void 0:n.message}):r.instant("no.license.set.msg")},loadingLicense:function(){return o},isLicenseHardcoded:function(){return a},showLicense:function(){return s},productType:l,isTrackableLicense:function(){var e=i&&i.typeOfUse.toLowerCase();return!u()||"free"===l()||"sandbox"===l()||"this is an evaluation license"===e||"evaluation"===e}}}])},76:function(e,t,n){"use strict";n.r(t);n(77),n(78),n(79),n(80);var r=n(8);angular.module("graphdb.framework.core.services.trackingService",["graphdb.framework.core.services.cookieService","graphdb.framework.core.services.installationCookieService","graphdb.framework.core.services.googleAnalyticsCookieService","graphdb.framework.core.directives.cookie-consent"]).factory("TrackingService",["$window","$jwtAuth","$licenseService","InstallationCookieService","GoogleAnalyticsCookieService","LocalStorageAdapter","LSKeys",function(e,t,n,i,o,a,s){var u=function(){var t=n.isTrackableLicense(),r=!e.wbDevMode;return t&&r},l=function(){return u()?c().then((function(e){if(e.getPolicyAccepted()){if(e.getStatisticConsent()){var t=n.license().installationId||"";i.setIfAbsent(t)}else i.remove();e.getThirdPartyConsent()?o.setIfAbsent():o.remove()}else h()})).catch((function(e){throw e})):(h(),Promise.resolve())},c=function(){return t.getPrincipal().then((function(e){var t=a.get(s.COOKIE_CONSENT);return e&&!e.username?t?r.CookieConsent.fromJSON(t):new r.CookieConsent(void 0,!0,!0):e.appSettings&&e.appSettings.COOKIE_CONSENT?r.CookieConsent.fromJSON(e.appSettings.COOKIE_CONSENT):new r.CookieConsent(void 0,!0,!0)}))},h=function(){i.remove(),o.remove()};return{applyTrackingConsent:l,getCookieConsent:c,updateCookieConsent:function(e){return t.getPrincipal().then((function(n){var r=n.username;if(r){var i=n.appSettings;return i.COOKIE_CONSENT=e.toJSON(),t.updateUserData({appSettings:i,username:r})}a.set(s.COOKIE_CONSENT,e.toJSON())})).finally((function(){return l()}))},isTrackingAllowed:u}}])},77:function(e,t){function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,o(r.key),r)}}function o(e){var t=function(e,t){if("object"!=n(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,t||"default");if("object"!=n(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==n(t)?t:t+""}function a(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,a,s=[],u=!0,l=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=o.call(n)).done)&&(s.push(r.value),s.length!==t);u=!0);}catch(e){l=!0,i=e}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw i}}return s}}(e,t)||function(e,t){if(e){if("string"==typeof e)return s(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?s(e,t):void 0}}(e,t)||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 s(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}angular.module("graphdb.framework.core.services.cookieService",[]).service("CookieService",["$document","$cookies",function(e,t){return{get:function(e){return t[e]},set:function(t,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};e[0].cookie=new u(t,n,r).build()},remove:function(t){e[0].cookie=new u(t,"",{expiration:-1}).build()},getAll:function(){for(var e={},n=0,r=Object.entries(t);n<r.length;n++){var i=a(r[n],2),o=i[0],s=i[1];e[o]=s}return e}}}]);var u=function(){return e=function e(t,n){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};r(this,e),this.key=encodeURIComponent(t),this.value=encodeURIComponent(n),this.setOptions(i)},(t=[{key:"setOptions",value:function(e){var t=e.expiration,n=e.path,r=e.domain,i=e.secure,o=e.httpOnly,a=e.sameSite;return t&&this.setExpiration(t),this.setPath(n),r&&this.setDomain(r),i&&this.setSecure(),o&&this.setHttpOnly(),a&&this.setSameSite(a),this}},{key:"setExpiration",value:function(e){var t=new Date;return t.setTime(t.getTime()+24*e*60*60*1e3),this.expires=t.toUTCString(),this}},{key:"setPath",value:function(e){return this.path=e||"/",this}},{key:"setDomain",value:function(e){return this.domain=e,this}},{key:"setSecure",value:function(){return this.secure=!0,this}},{key:"setHttpOnly",value:function(){return this.httpOnly=!0,this}},{key:"setSameSite",value:function(e){return this.sameSite=e,this}},{key:"build",value:function(){var e="".concat(this.key,"=").concat(this.value);return this.expires&&(e+="; expires=".concat(this.expires)),e+="; path=".concat(this.path),this.domain&&(e+="; domain=".concat(this.domain)),this.secure&&(e+="; secure"),this.httpOnly&&(e+="; HttpOnly"),this.sameSite&&(e+="; SameSite=".concat(this.sameSite)),e}}])&&i(e.prototype,t),n&&i(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,n}()},78:function(e,t){angular.module("graphdb.framework.core.services.installationCookieService",[]).service("InstallationCookieService",["CookieService",function(e){var t=function(){return e.get("_wb")},n=function(t){var n=Date.now(),r="".concat("WB1",".").concat(t,".").concat(n);e.set("_wb",r,{expiration:400})};return{get:t,set:n,setIfAbsent:function(e){t()||n(e)},remove:function(){e.remove("_wb")}}}])},79:function(e,t){function n(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,a,s=[],u=!0,l=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=o.call(n)).done)&&(s.push(r.value),s.length!==t);u=!0);}catch(e){l=!0,i=e}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw i}}return s}}(e,t)||function(e,t){if(e){if("string"==typeof e)return r(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(e,t):void 0}}(e,t)||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 r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}angular.module("graphdb.framework.core.services.googleAnalyticsCookieService",[]).service("GoogleAnalyticsCookieService",["$window","$document","CookieService",function(e,t,r){var i=function(){var e=t[0].getElementsByTagName("script");return Array.from(e).some((function(e){return e.src&&e.src.includes("googletagmanager")}))},o=function(){e.dataLayer&&(e.dataLayer.push=function(){return null});for(var n=t[0].getElementsByTagName("script"),r=/googletagmanager/i,i=n.length-1;i>=0;i--)(n[i].src&&r.test(n[i].src)||r.test(n[i].text))&&n[i].parentNode.removeChild(n[i]);e.google_tag_manager&&delete e.google_tag_manager,window.google_tag_data&&delete e.google_tag_data},a=function(){for(var e=r.getAll(),t=0,i=Object.entries(e);t<i.length;t++){var o=n(i[t],2),a=o[0];o[1];a.startsWith("_ga")&&r.remove(a)}};return{setIfAbsent:function(){if(!i()){var e=t[0].createElement("script");e.text="(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start': new Date().getTime(),event:'gtm.js'}); var f=d.getElementsByTagName(s)[0], j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:''; j.async=true; j.src='https://www.googletagmanager.com/gtm.js?id='+i+dl; f.parentNode.insertBefore(j,f);})(window,document,'script','dataLayer','GTM-WBP6C6Z4');",t[0].getElementsByTagName("head")[0].appendChild(e)}},remove:function(){i()&&o(),a()}}}])},8:function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,o(r.key),r)}}function o(e){var t=function(e,t){if("object"!=r(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=r(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==r(t)?t:t+""}n.r(t),n.d(t,"CookieConsent",(function(){return a})),n.d(t,"ConsentTypes",(function(){return s}));var a=function(){function e(t,n,r,i){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.policyAccepted=t,this.statistic=n,this.thirdParty=r,this.updatedAt=i}return t=e,r=[{key:"fromJSON",value:function(t){return new e(t&&t.policyAccepted,t&&t.statistic,t&&t.thirdParty,t&&t.updatedAt)}}],(n=[{key:"setPolicyAccepted",value:function(e){return this.policyAccepted=e,this.updateTimestamp(),this}},{key:"setStatisticConsent",value:function(e){return this.statistic=e,this.updateTimestamp(),this}},{key:"setThirdPartyConsent",value:function(e){return this.thirdParty=e,this.updateTimestamp(),this}},{key:"updateTimestamp",value:function(){this.updatedAt=Date.now()}},{key:"getPolicyAccepted",value:function(){return this.policyAccepted}},{key:"getStatisticConsent",value:function(){return this.statistic}},{key:"getThirdPartyConsent",value:function(){return this.thirdParty}},{key:"toJSON",value:function(){return{policyAccepted:this.policyAccepted,statistic:this.statistic,thirdParty:this.thirdParty,updatedAt:this.updatedAt}}}])&&i(t.prototype,n),r&&i(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}(),s={STATISTIC:"statistic",THIRD_PARTY:"thirdParty"}},80:function(e,t,n){"use strict";n.r(t);var r=n(40);function i(e,t,n,i,o,a){return{restrict:"E",templateUrl:"js/angular/core/templates/cookie-policy/cookie-consent.html",link:function(e){var n=void 0;e.showCookieConsent=!1,e.acceptConsent=function(){a.updateCookieConsent(n.setPolicyAccepted(!0)).then((function(){return e.showCookieConsent=!1}))},e.showCookiePolicy=function(){t.open({templateUrl:"js/angular/core/templates/cookie-policy/cookie-policy.html",controller:r.CookiePolicyModalController,backdrop:"static",keyboard:!1,windowClass:"cookie-policy-modal",resolve:{data:function(){return{cookieConsent:n}}}})};var s=function(){a.getCookieConsent().then((function(t){n=t,e.showCookieConsent=!t.getPolicyAccepted()})).catch((function(e){var t=getError(e.data,e.status);o.error(t,i.instant("common.error"))}))},u=e.$on("securityInit",(function(t,n,r){r?s():e.showCookieConsent=!1}));e.$on("$destroy",(function(){u()})),s()}}}angular.module("graphdb.framework.core.directives.cookie-consent",[]).directive("cookieConsent",i),i.$inject=["$jwtAuth","$uibModal","$licenseService","$translate","toastr","TrackingService"]},81:function(e,t){function n(e,t){var n={theme:"default-theme",mode:"light"},r=function(){var r=e.get(t.WORKBENCH_SETTINGS);return r||(r=_.clone(n)),r};return{getWorkbenchSettings:r,saveWorkbenchSettings:function(n){e.set(t.WORKBENCH_SETTINGS,n)},getThemeName:function(){var e=r();if(e&&e.theme)return e.theme},saveTheme:function(n){var i=r();i.theme=n,e.set(t.WORKBENCH_SETTINGS,i)}}}angular.module("graphdb.framework.utils.workbenchsettingsstorageservice",[]).factory("WorkbenchSettingsStorageService",n),n.$inject=["LocalStorageAdapter","LSKeys"]},82:function(e,t,n){"use strict";n.r(t);n(34);function r(e,t,n){return{checkAutocompleteStatus:function(){return e.checkAutocompleteStatus().then((function(e){return n.set(t.AUTOCOMPLETE_ENABLED,e.data),e.data}))}}}angular.module("graphdb.framework.core.services.autocomplete",["graphdb.framework.rest.autocomplete.service"]).factory("AutocompleteService",r),r.$inject=["AutocompleteRestService","LSKeys","LocalStorageAdapter"]},83:function(e,t){function n(e){var t="".concat("rest/guides","/download");return{getGuides:function(){return e.get("rest/guides")},downloadGuideResource:function(n){return e.get("".concat(t,"/").concat(n))}}}angular.module("graphdb.framework.rest.guides.service",[]).factory("GuidesRestService",n),n.$inject=["$http"]},84:function(e,t){angular.module("graphdb.framework.guides.directives",[]).directive("guideSelector",(function(){return{}}))},85:function(e,t){
60
+ /**
61
+ * angular-cancel-on-navigate - AngularJS module that cancels HTTP requests on location change (navigation)
62
+ * @version v0.1.0
63
+ * @link https://github.com/AlbertBrand/angular-cancel-on-navigate
64
+ * @license MIT
65
+ *
66
+ * ONTO: This helps with keeping the angular ajax pool under control when a big repo is being initialized
67
+ * and an impatient user is clicking around the Workbench.
68
+ */
69
+ angular.module("angularCancelOnNavigateModule",[]).config(["$httpProvider",function(e){e.interceptors.push("HttpRequestTimeoutInterceptor")}]).run(["$rootScope","HttpPendingRequestsService",function(e,t){e.$on("$locationChangeSuccess",(function(e,n,r){var i=new URL(n),o=new URL(r);i.origin===o.origin&&i.pathname===o.pathname||t.cancelAll()}))}]),angular.module("angularCancelOnNavigateModule").service("HttpPendingRequestsService",["$q",function(e){var t=[];return{newTimeout:function(){var n=e.defer();return t.push(n),n.promise},cancelAll:function(){angular.forEach(t,(function(e){e.promise.isGloballyCancelled=!0,e.resolve()})),t.length=0}}}]),angular.module("angularCancelOnNavigateModule").factory("HttpRequestTimeoutInterceptor",["$q","HttpPendingRequestsService",function(e,t){return{request:function(e){var n=e||{};return void 0!==n.timeout||n.noCancelOnRouteChange||(n.timeout=t.newTimeout()),n},responseError:function(t){return t.config.timeout&&t.config.timeout.isGloballyCancelled?e.defer().promise:e.reject(t)}}}])},86:function(e,t,n){"use strict";n.r(t);n(29);var r=n(11);function i(e,t,n,i,o,a,s,u,l,c){return{templateUrl:"js/angular/core/directives/rdfresourcesearch/templates/rdfResourceSearchTemplate.html",restrict:"AE",scope:{onOpen:"&"},link:function(t,n){t.showRdfSearchInput=!1,t.showInput=function(){h().then((function(r){t.repositoryNamespaces=r,t.showRdfSearchInput=!0,n.find(".view-res-input").focus(),window.addEventListener("mousedown",o),t.onOpen(),e.$broadcast("rdfResourceSearchExpanded")})).catch((function(e){var t=getError(e);u.error(t,a.instant("error.getting.namespaces.for.repo"))}))},t.onKeyDown=function(e){"Escape"===e.key&&t.hideInput()},t.hideInput=function(){window.removeEventListener("mousedown",o),t.showRdfSearchInput=!1};var o=function(e){"search-box"===e.target.id||$(e.target).closest("#search-box").length||t.$apply((function(){return t.hideInput()}))},h=function(){var e=i.getActiveRepository();return e&&s.canReadRepo(e)?c.getNamespaces(e):Promise.resolve(new r.NamespacesListModel)},p=[];p.push(l.onAutocompleteEnabledUpdated((function(e){t.isAutocompleteEnabled=e})));t.$on("$destroy",(function(){window.addEventListener("mousedown",o),p.forEach((function(e){return e()}))}))}}}angular.module("graphdb.framework.core.directives.rdfresourcesearch.rdfresourcesearch",["graphdb.core.services.workbench-context","graphdb.framework.core.services.rdf4j.repositories"]).directive("rdfResourceSearch",i),i.$inject=["$rootScope","AutocompleteRestService","RDF4JRepositoriesRestService","$repositories","$licenseService","$translate","$jwtAuth","toastr","WorkbenchContextService","RDF4JRepositoriesService"]},87:function(e,t,n){"use strict";n.r(t);n(15),n(30);function r(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return i(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?i(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,s=!0,u=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return s=e.done,e},e:function(e){u=!0,a=e},f:function(){try{s||null==n.return||n.return()}finally{if(u)throw a}}}}function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function o(e,t,n,i,o){return{templateUrl:"js/angular/core/directives/languageselector/templates/languageSelector.html",restrict:"E",link:function(a){var s=t.get(n.PREFERRED_LANG),u=navigator.languages;a.selectedLang={},a.languages=i.getAvailableLanguages(),e.fallbackLanguage(i.getDefaultLanguage()),a.changeLanguage=function(r){if(i.getLanguage()!==r.key){var s={locale:r.key,cancel:!1};o.emit("before-language-change",s,(function(o){o&&o.cancel||function(r){a.selectedLang=r,e.use(r.key),t.set(n.PREFERRED_LANG,r.key),i.setLanguage(a.selectedLang.key),a.$broadcast("language-changed",{locale:r.key})}(r)}))}},a.getLanguageTooltip=function(t){return t&&a.selectedLang?a.selectedLang.key!==t.key?e.instant("change.language.tooltip",{},void 0,t.key)+" "+t.name:e.instant("current.language.tooltip",{},void 0,t.key):""},new Promise((function(e){if(s)a.selectedLang=a.languages.find((function(e){return e.key===s}));else if(u){var t,n=r(u);try{var i=function(){var e=t.value;if(a.selectedLang=a.languages.find((function(t){return t.key===e})),a.selectedLang)return 1};for(n.s();!(t=n.n()).done&&!i(););}catch(e){n.e(e)}finally{n.f()}}setTimeout((function(){e(!0)}))})).then((function(){a.selectedLang||(a.selectedLang=a.languages.find((function(e){return e.key===i.getDefaultLanguage()}))),e.use(a.selectedLang.key),i.setLanguage(a.selectedLang.key)}))}}}angular.module("graphdb.framework.core.directives.languageselector.languageselector",["graphdb.framework.utils.localstorageadapter","graphdb.framework.utils.event-emitter-service"]).directive("languageSelector",o),o.$inject=["$translate","LocalStorageAdapter","LSKeys","$languageService","EventEmitterService"]},88:function(e,t){function n(e,t){return{template:'\n <style>\n .copy-btn {\n line-height: 0.75;\n }\n </style>\n <button class="btn btn-link btn-sm copy-btn" gdb-tooltip="{{tooltipText | translate}}" ng-click="copyToClipboard()"><i class="fa fa-clone"></i></button>\n ',restrict:"E",scope:{tooltipText:"@",textToCopy:"@"},link:function(n,r){n.copyToClipboard=function(){var i=n.textToCopy?n.textToCopy:r.parent().find(".copyable").text();if(navigator.clipboard)navigator.clipboard.writeText(i).then((function(){t.success(e.instant("import.help.messages.copied_to_clipboard"))})).catch((function(e){console.error("Could not copy text: ",e)}));else{var o=document.createElement("textarea");o.value=i,document.body.appendChild(o),o.select();try{document.execCommand("copy")?t.success(e.instant("import.help.messages.copied_to_clipboard")):console.error("Unable to copy text")}catch(e){console.error("Could not copy text: ",e)}finally{document.body.removeChild(o)}}}}}}angular.module("graphdb.framework.core.directives.copytoclipboard.copytoclipboard",[]).directive("copyToClipboard",n),n.$inject=["$translate","toastr"]},89:function(e,t,n){"use strict";n.r(t);var r=n(1);function i(e,t){return{restrict:"A",scope:{gdbTooltip:"@",fixedPosition:"=",titleClass:"@",showTrigger:"=",hideTrigger:"="},link:function(n,i,o){var a="mouseenter",s="mouseleave";o.showTrigger&&(a=o.showTrigger),o.hideTrigger&&(s=o.hideTrigger),n.createTooltip=function(e){o.gdbTooltip&&(n.tooltipElement=angular.element("<div>").addClass("angular-tooltip").addClass(n.titleClass),angular.element(document).find("body").append(n.tooltipElement),n.updateTooltip(o.gdbTooltip),n.tooltipElement.addClass("angular-tooltip-fade-in"))},n.updateTooltip=function(o){n.tooltipElement.html(Object(r.decodeHTML)(o)),t(n.tooltipElement.contents())(n),function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=n.calculatePosition(n.tooltipElement,n.getDirection());n.tooltipElement.addClass("angular-tooltip-"+r.direction).css(r),t.left===r.left&&t.top===r.top||e(r)}(),e((function(){i.removeAttr("ng-attr-title"),i.removeAttr("title")}))},n.$watch("gdb-tooltip",(function(e){n.tooltipElement&&n.updateTooltip(e)})),n.removeTooltip=function(){angular.element(document.querySelectorAll(".angular-tooltip")).remove()},n.getDirection=function(){return i.attr("tooltip-placement")||"top"},n.calculatePosition=function(e,t){var r=e[0].getBoundingClientRect(),o=i[0].getBoundingClientRect(),a=window.scrollX||document.documentElement.scrollLeft,s=window.scrollY||document.documentElement.scrollTop,u={},l=null;return n.stringStartsWith(t,"left")?u.left=o.left-r.width-6+a:n.stringStartsWith(t,"right")?u.left=o.left+o.width+6+a:n.stringContains(t,"left")?u.left=o.left-r.width+12+a:n.stringContains(t,"right")?u.left=o.left+o.width-12+a:u.left=o.left+o.width/2-r.width/2+a,n.stringStartsWith(t,"top")?u.top=o.top-r.height-6+s:n.stringStartsWith(t,"bottom")?u.top=o.top+o.height+6+s:n.stringContains(t,"top")?u.top=o.top-r.height+12+s:n.stringContains(t,"bottom")?u.top=o.top+o.height-12+s:u.top=o.top+o.height/2-r.height/2+s,n.fixedPosition&&(u.left<a?l=t.replace("left","right"):u.left+r.width>window.innerWidth+a&&(l=t.replace("right","left")),u.top<s?l=t.replace("top","bottom"):u.top+r.height>window.innerHeight+s&&(l=t.replace("bottom","top")),l)?n.calculatePosition(e,l):(u.left+="px",u.top+="px",u.direction=t,u)},n.stringStartsWith=function(e,t){return e.substr(0,t.length)===t},n.stringContains=function(e,t){return-1!==e.indexOf(t)},o.gdbTooltip?(i.on(a,n.createTooltip),i.on(s,n.removeTooltip)):(i.off(a,n.createTooltip),i.off(s,n.removeTooltip)),i.on("destroy",n.removeTooltip),n.$on("$destroy",n.removeTooltip)}}}angular.module("graphdb.framework.core.directives.angular-tooltips",[]).directive("gdbTooltip",i),i.$inject=["$timeout","$compile"]},9:function(e,t,n){(function(e){var n,r,i,o,a,s,u,l,c,h,p,f={userAgent:!1},d={},g=g||(n=Math,i=(r={}).lib={},o=i.Base=function(){function e(){}return{extend:function(t){e.prototype=this;var n=new e;return t&&n.mixIn(t),n.hasOwnProperty("init")||(n.init=function(){n.$super.init.apply(this,arguments)}),n.init.prototype=n,n.$super=this,n},create:function(){var e=this.extend();return e.init.apply(e,arguments),e},init:function(){},mixIn:function(e){for(var t in e)e.hasOwnProperty(t)&&(this[t]=e[t]);e.hasOwnProperty("toString")&&(this.toString=e.toString)},clone:function(){return this.init.prototype.extend(this)}}}(),a=i.WordArray=o.extend({init:function(e,t){e=this.words=e||[],this.sigBytes=null!=t?t:4*e.length},toString:function(e){return(e||u).stringify(this)},concat:function(e){var t=this.words,n=e.words,r=this.sigBytes,i=e.sigBytes;if(this.clamp(),r%4)for(var o=0;o<i;o++){var a=n[o>>>2]>>>24-o%4*8&255;t[r+o>>>2]|=a<<24-(r+o)%4*8}else for(o=0;o<i;o+=4)t[r+o>>>2]=n[o>>>2];return this.sigBytes+=i,this},clamp:function(){var e=this.words,t=this.sigBytes;e[t>>>2]&=4294967295<<32-t%4*8,e.length=n.ceil(t/4)},clone:function(){var e=o.clone.call(this);return e.words=this.words.slice(0),e},random:function(e){for(var t=[],r=0;r<e;r+=4)t.push(4294967296*n.random()|0);return new a.init(t,e)}}),s=r.enc={},u=s.Hex={stringify:function(e){for(var t=e.words,n=e.sigBytes,r=[],i=0;i<n;i++){var o=t[i>>>2]>>>24-i%4*8&255;r.push((o>>>4).toString(16)),r.push((15&o).toString(16))}return r.join("")},parse:function(e){for(var t=e.length,n=[],r=0;r<t;r+=2)n[r>>>3]|=parseInt(e.substr(r,2),16)<<24-r%8*4;return new a.init(n,t/2)}},l=s.Latin1={stringify:function(e){for(var t=e.words,n=e.sigBytes,r=[],i=0;i<n;i++){var o=t[i>>>2]>>>24-i%4*8&255;r.push(String.fromCharCode(o))}return r.join("")},parse:function(e){for(var t=e.length,n=[],r=0;r<t;r++)n[r>>>2]|=(255&e.charCodeAt(r))<<24-r%4*8;return new a.init(n,t)}},c=s.Utf8={stringify:function(e){try{return decodeURIComponent(escape(l.stringify(e)))}catch(e){throw new Error("Malformed UTF-8 data")}},parse:function(e){return l.parse(unescape(encodeURIComponent(e)))}},h=i.BufferedBlockAlgorithm=o.extend({reset:function(){this._data=new a.init,this._nDataBytes=0},_append:function(e){"string"==typeof e&&(e=c.parse(e)),this._data.concat(e),this._nDataBytes+=e.sigBytes},_process:function(e){var t=this._data,r=t.words,i=t.sigBytes,o=this.blockSize,s=i/(4*o),u=(s=e?n.ceil(s):n.max((0|s)-this._minBufferSize,0))*o,l=n.min(4*u,i);if(u){for(var c=0;c<u;c+=o)this._doProcessBlock(r,c);var h=r.splice(0,u);t.sigBytes-=l}return new a.init(h,l)},clone:function(){var e=o.clone.call(this);return e._data=this._data.clone(),e},_minBufferSize:0}),i.Hasher=h.extend({cfg:o.extend(),init:function(e){this.cfg=this.cfg.extend(e),this.reset()},reset:function(){h.reset.call(this),this._doReset()},update:function(e){return this._append(e),this._process(),this},finalize:function(e){return e&&this._append(e),this._doFinalize()},blockSize:16,_createHelper:function(e){return function(t,n){return new e.init(n).finalize(t)}},_createHmacHelper:function(e){return function(t,n){return new p.HMAC.init(e,n).finalize(t)}}}),p=r.algo={},r);!function(e){var t,n=(t=g).lib,r=n.Base,i=n.WordArray;(t=t.x64={}).Word=r.extend({init:function(e,t){this.high=e,this.low=t}}),t.WordArray=r.extend({init:function(e,t){e=this.words=e||[],this.sigBytes=null!=t?t:8*e.length},toX32:function(){for(var e=this.words,t=e.length,n=[],r=0;r<t;r++){var o=e[r];n.push(o.high),n.push(o.low)}return i.create(n,this.sigBytes)},clone:function(){for(var e=r.clone.call(this),t=e.words=this.words.slice(0),n=t.length,i=0;i<n;i++)t[i]=t[i].clone();return e}})}(),g.lib.Cipher||function(e){var t=(f=g).lib,n=t.Base,r=t.WordArray,i=t.BufferedBlockAlgorithm,o=f.enc.Base64,a=f.algo.EvpKDF,s=t.Cipher=i.extend({cfg:n.extend(),createEncryptor:function(e,t){return this.create(this._ENC_XFORM_MODE,e,t)},createDecryptor:function(e,t){return this.create(this._DEC_XFORM_MODE,e,t)},init:function(e,t,n){this.cfg=this.cfg.extend(n),this._xformMode=e,this._key=t,this.reset()},reset:function(){i.reset.call(this),this._doReset()},process:function(e){return this._append(e),this._process()},finalize:function(e){return e&&this._append(e),this._doFinalize()},keySize:4,ivSize:4,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:function(e){return{encrypt:function(t,n,r){return("string"==typeof n?d:p).encrypt(e,t,n,r)},decrypt:function(t,n,r){return("string"==typeof n?d:p).decrypt(e,t,n,r)}}}});t.StreamCipher=s.extend({_doFinalize:function(){return this._process(!0)},blockSize:1});var u=f.mode={},l=function(e,t,n){var r=this._iv;r?this._iv=void 0:r=this._prevBlock;for(var i=0;i<n;i++)e[t+i]^=r[i]},c=(t.BlockCipherMode=n.extend({createEncryptor:function(e,t){return this.Encryptor.create(e,t)},createDecryptor:function(e,t){return this.Decryptor.create(e,t)},init:function(e,t){this._cipher=e,this._iv=t}})).extend();c.Encryptor=c.extend({processBlock:function(e,t){var n=this._cipher,r=n.blockSize;l.call(this,e,t,r),n.encryptBlock(e,t),this._prevBlock=e.slice(t,t+r)}}),c.Decryptor=c.extend({processBlock:function(e,t){var n=this._cipher,r=n.blockSize,i=e.slice(t,t+r);n.decryptBlock(e,t),l.call(this,e,t,r),this._prevBlock=i}}),u=u.CBC=c,c=(f.pad={}).Pkcs7={pad:function(e,t){for(var n,i=(n=(n=4*t)-e.sigBytes%n)<<24|n<<16|n<<8|n,o=[],a=0;a<n;a+=4)o.push(i);n=r.create(o,n),e.concat(n)},unpad:function(e){e.sigBytes-=255&e.words[e.sigBytes-1>>>2]}},t.BlockCipher=s.extend({cfg:s.cfg.extend({mode:u,padding:c}),reset:function(){s.reset.call(this);var e=(t=this.cfg).iv,t=t.mode;if(this._xformMode==this._ENC_XFORM_MODE)var n=t.createEncryptor;else n=t.createDecryptor,this._minBufferSize=1;this._mode=n.call(t,this,e&&e.words)},_doProcessBlock:function(e,t){this._mode.processBlock(e,t)},_doFinalize:function(){var e=this.cfg.padding;if(this._xformMode==this._ENC_XFORM_MODE){e.pad(this._data,this.blockSize);var t=this._process(!0)}else t=this._process(!0),e.unpad(t);return t},blockSize:4});var h=t.CipherParams=n.extend({init:function(e){this.mixIn(e)},toString:function(e){return(e||this.formatter).stringify(this)}}),p=(u=(f.format={}).OpenSSL={stringify:function(e){var t=e.ciphertext;return((e=e.salt)?r.create([1398893684,1701076831]).concat(e).concat(t):t).toString(o)},parse:function(e){var t=(e=o.parse(e)).words;if(1398893684==t[0]&&1701076831==t[1]){var n=r.create(t.slice(2,4));t.splice(0,4),e.sigBytes-=16}return h.create({ciphertext:e,salt:n})}},t.SerializableCipher=n.extend({cfg:n.extend({format:u}),encrypt:function(e,t,n,r){r=this.cfg.extend(r);var i=e.createEncryptor(n,r);return t=i.finalize(t),i=i.cfg,h.create({ciphertext:t,key:n,iv:i.iv,algorithm:e,mode:i.mode,padding:i.padding,blockSize:e.blockSize,formatter:r.format})},decrypt:function(e,t,n,r){return r=this.cfg.extend(r),t=this._parse(t,r.format),e.createDecryptor(n,r).finalize(t.ciphertext)},_parse:function(e,t){return"string"==typeof e?t.parse(e,this):e}})),f=(f.kdf={}).OpenSSL={execute:function(e,t,n,i){return i||(i=r.random(8)),e=a.create({keySize:t+n}).compute(e,i),n=r.create(e.words.slice(t),4*n),e.sigBytes=4*t,h.create({key:e,iv:n,salt:i})}},d=t.PasswordBasedCipher=p.extend({cfg:p.cfg.extend({kdf:f}),encrypt:function(e,t,n,r){return n=(r=this.cfg.extend(r)).kdf.execute(n,e.keySize,e.ivSize),r.iv=n.iv,(e=p.encrypt.call(this,e,t,n.key,r)).mixIn(n),e},decrypt:function(e,t,n,r){return r=this.cfg.extend(r),t=this._parse(t,r.format),n=r.kdf.execute(n,e.keySize,e.ivSize,t.salt),r.iv=n.iv,p.decrypt.call(this,e,t,n.key,r)}})}(),function(){for(var e=g,t=e.lib.BlockCipher,n=e.algo,r=[],i=[],o=[],a=[],s=[],u=[],l=[],c=[],h=[],p=[],f=[],d=0;256>d;d++)f[d]=128>d?d<<1:d<<1^283;var m=0,v=0;for(d=0;256>d;d++){var y=(y=v^v<<1^v<<2^v<<3^v<<4)>>>8^255&y^99;r[m]=y,i[y]=m;var b=f[m],$=f[b],w=f[$],x=257*f[y]^16843008*y;o[m]=x<<24|x>>>8,a[m]=x<<16|x>>>16,s[m]=x<<8|x>>>24,u[m]=x,x=16843009*w^65537*$^257*b^16843008*m,l[y]=x<<24|x>>>8,c[y]=x<<16|x>>>16,h[y]=x<<8|x>>>24,p[y]=x,m?(m=b^f[f[f[w^b]]],v^=f[f[v]]):m=v=1}var S=[0,1,2,4,8,16,32,64,128,27,54];n=n.AES=t.extend({_doReset:function(){for(var e=(n=this._key).words,t=n.sigBytes/4,n=4*((this._nRounds=t+6)+1),i=this._keySchedule=[],o=0;o<n;o++)if(o<t)i[o]=e[o];else{var a=i[o-1];o%t?6<t&&4==o%t&&(a=r[a>>>24]<<24|r[a>>>16&255]<<16|r[a>>>8&255]<<8|r[255&a]):(a=r[(a=a<<8|a>>>24)>>>24]<<24|r[a>>>16&255]<<16|r[a>>>8&255]<<8|r[255&a],a^=S[o/t|0]<<24),i[o]=i[o-t]^a}for(e=this._invKeySchedule=[],t=0;t<n;t++)o=n-t,a=t%4?i[o]:i[o-4],e[t]=4>t||4>=o?a:l[r[a>>>24]]^c[r[a>>>16&255]]^h[r[a>>>8&255]]^p[r[255&a]]},encryptBlock:function(e,t){this._doCryptBlock(e,t,this._keySchedule,o,a,s,u,r)},decryptBlock:function(e,t){var n=e[t+1];e[t+1]=e[t+3],e[t+3]=n,this._doCryptBlock(e,t,this._invKeySchedule,l,c,h,p,i),n=e[t+1],e[t+1]=e[t+3],e[t+3]=n},_doCryptBlock:function(e,t,n,r,i,o,a,s){for(var u=this._nRounds,l=e[t]^n[0],c=e[t+1]^n[1],h=e[t+2]^n[2],p=e[t+3]^n[3],f=4,d=1;d<u;d++){var g=r[l>>>24]^i[c>>>16&255]^o[h>>>8&255]^a[255&p]^n[f++],m=r[c>>>24]^i[h>>>16&255]^o[p>>>8&255]^a[255&l]^n[f++],v=r[h>>>24]^i[p>>>16&255]^o[l>>>8&255]^a[255&c]^n[f++];p=r[p>>>24]^i[l>>>16&255]^o[c>>>8&255]^a[255&h]^n[f++],l=g,c=m,h=v}g=(s[l>>>24]<<24|s[c>>>16&255]<<16|s[h>>>8&255]<<8|s[255&p])^n[f++],m=(s[c>>>24]<<24|s[h>>>16&255]<<16|s[p>>>8&255]<<8|s[255&l])^n[f++],v=(s[h>>>24]<<24|s[p>>>16&255]<<16|s[l>>>8&255]<<8|s[255&c])^n[f++],p=(s[p>>>24]<<24|s[l>>>16&255]<<16|s[c>>>8&255]<<8|s[255&h])^n[f++],e[t]=g,e[t+1]=m,e[t+2]=v,e[t+3]=p},keySize:8});e.AES=t._createHelper(n)}(),function(){function e(e,t){var n=(this._lBlock>>>e^this._rBlock)&t;this._rBlock^=n,this._lBlock^=n<<e}function t(e,t){var n=(this._rBlock>>>e^this._lBlock)&t;this._lBlock^=n,this._rBlock^=n<<e}var n=g,r=(i=n.lib).WordArray,i=i.BlockCipher,o=n.algo,a=[57,49,41,33,25,17,9,1,58,50,42,34,26,18,10,2,59,51,43,35,27,19,11,3,60,52,44,36,63,55,47,39,31,23,15,7,62,54,46,38,30,22,14,6,61,53,45,37,29,21,13,5,28,20,12,4],s=[14,17,11,24,1,5,3,28,15,6,21,10,23,19,12,4,26,8,16,7,27,20,13,2,41,52,31,37,47,55,30,40,51,45,33,48,44,49,39,56,34,53,46,42,50,36,29,32],u=[1,2,4,6,8,10,12,14,15,17,19,21,23,25,27,28],l=[{0:8421888,268435456:32768,536870912:8421378,805306368:2,1073741824:512,1342177280:8421890,1610612736:8389122,1879048192:8388608,2147483648:514,2415919104:8389120,2684354560:33280,2952790016:8421376,3221225472:32770,3489660928:8388610,3758096384:0,4026531840:33282,134217728:0,402653184:8421890,671088640:33282,939524096:32768,1207959552:8421888,1476395008:512,1744830464:8421378,2013265920:2,2281701376:8389120,2550136832:33280,2818572288:8421376,3087007744:8389122,3355443200:8388610,3623878656:32770,3892314112:514,4160749568:8388608,1:32768,268435457:2,536870913:8421888,805306369:8388608,1073741825:8421378,1342177281:33280,1610612737:512,1879048193:8389122,2147483649:8421890,2415919105:8421376,2684354561:8388610,2952790017:33282,3221225473:514,3489660929:8389120,3758096385:32770,4026531841:0,134217729:8421890,402653185:8421376,671088641:8388608,939524097:512,1207959553:32768,1476395009:8388610,1744830465:2,2013265921:33282,2281701377:32770,2550136833:8389122,2818572289:514,3087007745:8421888,3355443201:8389120,3623878657:0,3892314113:33280,4160749569:8421378},{0:1074282512,16777216:16384,33554432:524288,50331648:1074266128,67108864:1073741840,83886080:1074282496,100663296:1073758208,117440512:16,134217728:540672,150994944:1073758224,167772160:1073741824,184549376:540688,201326592:524304,218103808:0,234881024:16400,251658240:1074266112,8388608:1073758208,25165824:540688,41943040:16,58720256:1073758224,75497472:1074282512,92274688:1073741824,109051904:524288,125829120:1074266128,142606336:524304,159383552:0,176160768:16384,192937984:1074266112,209715200:1073741840,226492416:540672,243269632:1074282496,260046848:16400,268435456:0,285212672:1074266128,301989888:1073758224,318767104:1074282496,335544320:1074266112,352321536:16,369098752:540688,385875968:16384,402653184:16400,419430400:524288,436207616:524304,452984832:1073741840,469762048:540672,486539264:1073758208,503316480:1073741824,520093696:1074282512,276824064:540688,293601280:524288,310378496:1074266112,327155712:16384,343932928:1073758208,360710144:1074282512,377487360:16,394264576:1073741824,411041792:1074282496,427819008:1073741840,444596224:1073758224,461373440:524304,478150656:0,494927872:16400,511705088:1074266128,528482304:540672},{0:260,1048576:0,2097152:67109120,3145728:65796,4194304:65540,5242880:67108868,6291456:67174660,7340032:67174400,8388608:67108864,9437184:67174656,10485760:65792,11534336:67174404,12582912:67109124,13631488:65536,14680064:4,15728640:256,524288:67174656,1572864:67174404,2621440:0,3670016:67109120,4718592:67108868,5767168:65536,6815744:65540,7864320:260,8912896:4,9961472:256,11010048:67174400,12058624:65796,13107200:65792,14155776:67109124,15204352:67174660,16252928:67108864,16777216:67174656,17825792:65540,18874368:65536,19922944:67109120,20971520:256,22020096:67174660,23068672:67108868,24117248:0,25165824:67109124,26214400:67108864,27262976:4,28311552:65792,29360128:67174400,30408704:260,31457280:65796,32505856:67174404,17301504:67108864,18350080:260,19398656:67174656,20447232:0,21495808:65540,22544384:67109120,23592960:256,24641536:67174404,25690112:65536,26738688:67174660,27787264:65796,28835840:67108868,29884416:67109124,30932992:67174400,31981568:4,33030144:65792},{0:2151682048,65536:2147487808,131072:4198464,196608:2151677952,262144:0,327680:4198400,393216:2147483712,458752:4194368,524288:2147483648,589824:4194304,655360:64,720896:2147487744,786432:2151678016,851968:4160,917504:4096,983040:2151682112,32768:2147487808,98304:64,163840:2151678016,229376:2147487744,294912:4198400,360448:2151682112,425984:0,491520:2151677952,557056:4096,622592:2151682048,688128:4194304,753664:4160,819200:2147483648,884736:4194368,950272:4198464,1015808:2147483712,1048576:4194368,1114112:4198400,1179648:2147483712,1245184:0,1310720:4160,1376256:2151678016,1441792:2151682048,1507328:2147487808,1572864:2151682112,1638400:2147483648,1703936:2151677952,1769472:4198464,1835008:2147487744,1900544:4194304,1966080:64,2031616:4096,1081344:2151677952,1146880:2151682112,1212416:0,1277952:4198400,1343488:4194368,1409024:2147483648,1474560:2147487808,1540096:64,1605632:2147483712,1671168:4096,1736704:2147487744,1802240:2151678016,1867776:4160,1933312:2151682048,1998848:4194304,2064384:4198464},{0:128,4096:17039360,8192:262144,12288:536870912,16384:537133184,20480:16777344,24576:553648256,28672:262272,32768:16777216,36864:537133056,40960:536871040,45056:553910400,49152:553910272,53248:0,57344:17039488,61440:553648128,2048:17039488,6144:553648256,10240:128,14336:17039360,18432:262144,22528:537133184,26624:553910272,30720:536870912,34816:537133056,38912:0,43008:553910400,47104:16777344,51200:536871040,55296:553648128,59392:16777216,63488:262272,65536:262144,69632:128,73728:536870912,77824:553648256,81920:16777344,86016:553910272,90112:537133184,94208:16777216,98304:553910400,102400:553648128,106496:17039360,110592:537133056,114688:262272,118784:536871040,122880:0,126976:17039488,67584:553648256,71680:16777216,75776:17039360,79872:537133184,83968:536870912,88064:17039488,92160:128,96256:553910272,100352:262272,104448:553910400,108544:0,112640:553648128,116736:16777344,120832:262144,124928:537133056,129024:536871040},{0:268435464,256:8192,512:270532608,768:270540808,1024:268443648,1280:2097152,1536:2097160,1792:268435456,2048:0,2304:268443656,2560:2105344,2816:8,3072:270532616,3328:2105352,3584:8200,3840:270540800,128:270532608,384:270540808,640:8,896:2097152,1152:2105352,1408:268435464,1664:268443648,1920:8200,2176:2097160,2432:8192,2688:268443656,2944:270532616,3200:0,3456:270540800,3712:2105344,3968:268435456,4096:268443648,4352:270532616,4608:270540808,4864:8200,5120:2097152,5376:268435456,5632:268435464,5888:2105344,6144:2105352,6400:0,6656:8,6912:270532608,7168:8192,7424:268443656,7680:270540800,7936:2097160,4224:8,4480:2105344,4736:2097152,4992:268435464,5248:268443648,5504:8200,5760:270540808,6016:270532608,6272:270540800,6528:270532616,6784:8192,7040:2105352,7296:2097160,7552:0,7808:268435456,8064:268443656},{0:1048576,16:33555457,32:1024,48:1049601,64:34604033,80:0,96:1,112:34603009,128:33555456,144:1048577,160:33554433,176:34604032,192:34603008,208:1025,224:1049600,240:33554432,8:34603009,24:0,40:33555457,56:34604032,72:1048576,88:33554433,104:33554432,120:1025,136:1049601,152:33555456,168:34603008,184:1048577,200:1024,216:34604033,232:1,248:1049600,256:33554432,272:1048576,288:33555457,304:34603009,320:1048577,336:33555456,352:34604032,368:1049601,384:1025,400:34604033,416:1049600,432:1,448:0,464:34603008,480:33554433,496:1024,264:1049600,280:33555457,296:34603009,312:1,328:33554432,344:1048576,360:1025,376:34604032,392:33554433,408:34603008,424:0,440:34604033,456:1049601,472:1024,488:33555456,504:1048577},{0:134219808,1:131072,2:134217728,3:32,4:131104,5:134350880,6:134350848,7:2048,8:134348800,9:134219776,10:133120,11:134348832,12:2080,13:0,14:134217760,15:133152,2147483648:2048,2147483649:134350880,2147483650:134219808,2147483651:134217728,2147483652:134348800,2147483653:133120,2147483654:133152,2147483655:32,2147483656:134217760,2147483657:2080,2147483658:131104,2147483659:134350848,2147483660:0,2147483661:134348832,2147483662:134219776,2147483663:131072,16:133152,17:134350848,18:32,19:2048,20:134219776,21:134217760,22:134348832,23:131072,24:0,25:131104,26:134348800,27:134219808,28:134350880,29:133120,30:2080,31:134217728,2147483664:131072,2147483665:2048,2147483666:134348832,2147483667:133152,2147483668:32,2147483669:134348800,2147483670:134217728,2147483671:134219808,2147483672:134350880,2147483673:134217760,2147483674:134219776,2147483675:0,2147483676:133120,2147483677:2080,2147483678:131104,2147483679:134350848}],c=[4160749569,528482304,33030144,2064384,129024,8064,504,2147483679],h=o.DES=i.extend({_doReset:function(){for(var e=this._key.words,t=[],n=0;56>n;n++){var r=a[n]-1;t[n]=e[r>>>5]>>>31-r%32&1}for(e=this._subKeys=[],r=0;16>r;r++){var i=e[r]=[],o=u[r];for(n=0;24>n;n++)i[n/6|0]|=t[(s[n]-1+o)%28]<<31-n%6,i[4+(n/6|0)]|=t[28+(s[n+24]-1+o)%28]<<31-n%6;for(i[0]=i[0]<<1|i[0]>>>31,n=1;7>n;n++)i[n]>>>=4*(n-1)+3;i[7]=i[7]<<5|i[7]>>>27}for(t=this._invSubKeys=[],n=0;16>n;n++)t[n]=e[15-n]},encryptBlock:function(e,t){this._doCryptBlock(e,t,this._subKeys)},decryptBlock:function(e,t){this._doCryptBlock(e,t,this._invSubKeys)},_doCryptBlock:function(n,r,i){this._lBlock=n[r],this._rBlock=n[r+1],e.call(this,4,252645135),e.call(this,16,65535),t.call(this,2,858993459),t.call(this,8,16711935),e.call(this,1,1431655765);for(var o=0;16>o;o++){for(var a=i[o],s=this._lBlock,u=this._rBlock,h=0,p=0;8>p;p++)h|=l[p][((u^a[p])&c[p])>>>0];this._lBlock=u,this._rBlock=s^h}i=this._lBlock,this._lBlock=this._rBlock,this._rBlock=i,e.call(this,1,1431655765),t.call(this,8,16711935),t.call(this,2,858993459),e.call(this,16,65535),e.call(this,4,252645135),n[r]=this._lBlock,n[r+1]=this._rBlock},keySize:2,ivSize:2,blockSize:2});n.DES=i._createHelper(h),o=o.TripleDES=i.extend({_doReset:function(){var e=this._key.words;this._des1=h.createEncryptor(r.create(e.slice(0,2))),this._des2=h.createEncryptor(r.create(e.slice(2,4))),this._des3=h.createEncryptor(r.create(e.slice(4,6)))},encryptBlock:function(e,t){this._des1.encryptBlock(e,t),this._des2.decryptBlock(e,t),this._des3.encryptBlock(e,t)},decryptBlock:function(e,t){this._des3.decryptBlock(e,t),this._des2.encryptBlock(e,t),this._des1.decryptBlock(e,t)},keySize:6,ivSize:2,blockSize:2}),n.TripleDES=i._createHelper(o)}(),function(){var e=g,t=e.lib.WordArray;e.enc.Base64={stringify:function(e){var t=e.words,n=e.sigBytes,r=this._map;e.clamp(),e=[];for(var i=0;i<n;i+=3)for(var o=(t[i>>>2]>>>24-i%4*8&255)<<16|(t[i+1>>>2]>>>24-(i+1)%4*8&255)<<8|t[i+2>>>2]>>>24-(i+2)%4*8&255,a=0;4>a&&i+.75*a<n;a++)e.push(r.charAt(o>>>6*(3-a)&63));if(t=r.charAt(64))for(;e.length%4;)e.push(t);return e.join("")},parse:function(e){var n=e.length,r=this._map;(i=r.charAt(64))&&(-1!=(i=e.indexOf(i))&&(n=i));for(var i=[],o=0,a=0;a<n;a++)if(a%4){var s=r.indexOf(e.charAt(a-1))<<a%4*2,u=r.indexOf(e.charAt(a))>>>6-a%4*2;i[o>>>2]|=(s|u)<<24-o%4*8,o++}return t.create(i,o)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="}}(),function(e){function t(e,t,n,r,i,o,a){return((e=e+(t&n|~t&r)+i+a)<<o|e>>>32-o)+t}function n(e,t,n,r,i,o,a){return((e=e+(t&r|n&~r)+i+a)<<o|e>>>32-o)+t}function r(e,t,n,r,i,o,a){return((e=e+(t^n^r)+i+a)<<o|e>>>32-o)+t}function i(e,t,n,r,i,o,a){return((e=e+(n^(t|~r))+i+a)<<o|e>>>32-o)+t}for(var o=g,a=(u=o.lib).WordArray,s=u.Hasher,u=o.algo,l=[],c=0;64>c;c++)l[c]=4294967296*e.abs(e.sin(c+1))|0;u=u.MD5=s.extend({_doReset:function(){this._hash=new a.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(e,o){for(var a=0;16>a;a++){var s=e[u=o+a];e[u]=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8)}a=this._hash.words;var u=e[o+0],c=(s=e[o+1],e[o+2]),h=e[o+3],p=e[o+4],f=e[o+5],d=e[o+6],g=e[o+7],m=e[o+8],v=e[o+9],y=e[o+10],b=e[o+11],$=e[o+12],w=e[o+13],x=e[o+14],S=e[o+15],E=t(E=a[0],T=a[1],C=a[2],A=a[3],u,7,l[0]),A=t(A,E,T,C,s,12,l[1]),C=t(C,A,E,T,c,17,l[2]),T=t(T,C,A,E,h,22,l[3]);E=t(E,T,C,A,p,7,l[4]),A=t(A,E,T,C,f,12,l[5]),C=t(C,A,E,T,d,17,l[6]),T=t(T,C,A,E,g,22,l[7]),E=t(E,T,C,A,m,7,l[8]),A=t(A,E,T,C,v,12,l[9]),C=t(C,A,E,T,y,17,l[10]),T=t(T,C,A,E,b,22,l[11]),E=t(E,T,C,A,$,7,l[12]),A=t(A,E,T,C,w,12,l[13]),C=t(C,A,E,T,x,17,l[14]),E=n(E,T=t(T,C,A,E,S,22,l[15]),C,A,s,5,l[16]),A=n(A,E,T,C,d,9,l[17]),C=n(C,A,E,T,b,14,l[18]),T=n(T,C,A,E,u,20,l[19]),E=n(E,T,C,A,f,5,l[20]),A=n(A,E,T,C,y,9,l[21]),C=n(C,A,E,T,S,14,l[22]),T=n(T,C,A,E,p,20,l[23]),E=n(E,T,C,A,v,5,l[24]),A=n(A,E,T,C,x,9,l[25]),C=n(C,A,E,T,h,14,l[26]),T=n(T,C,A,E,m,20,l[27]),E=n(E,T,C,A,w,5,l[28]),A=n(A,E,T,C,c,9,l[29]),C=n(C,A,E,T,g,14,l[30]),E=r(E,T=n(T,C,A,E,$,20,l[31]),C,A,f,4,l[32]),A=r(A,E,T,C,m,11,l[33]),C=r(C,A,E,T,b,16,l[34]),T=r(T,C,A,E,x,23,l[35]),E=r(E,T,C,A,s,4,l[36]),A=r(A,E,T,C,p,11,l[37]),C=r(C,A,E,T,g,16,l[38]),T=r(T,C,A,E,y,23,l[39]),E=r(E,T,C,A,w,4,l[40]),A=r(A,E,T,C,u,11,l[41]),C=r(C,A,E,T,h,16,l[42]),T=r(T,C,A,E,d,23,l[43]),E=r(E,T,C,A,v,4,l[44]),A=r(A,E,T,C,$,11,l[45]),C=r(C,A,E,T,S,16,l[46]),E=i(E,T=r(T,C,A,E,c,23,l[47]),C,A,u,6,l[48]),A=i(A,E,T,C,g,10,l[49]),C=i(C,A,E,T,x,15,l[50]),T=i(T,C,A,E,f,21,l[51]),E=i(E,T,C,A,$,6,l[52]),A=i(A,E,T,C,h,10,l[53]),C=i(C,A,E,T,y,15,l[54]),T=i(T,C,A,E,s,21,l[55]),E=i(E,T,C,A,m,6,l[56]),A=i(A,E,T,C,S,10,l[57]),C=i(C,A,E,T,d,15,l[58]),T=i(T,C,A,E,w,21,l[59]),E=i(E,T,C,A,p,6,l[60]),A=i(A,E,T,C,b,10,l[61]),C=i(C,A,E,T,c,15,l[62]),T=i(T,C,A,E,v,21,l[63]);a[0]=a[0]+E|0,a[1]=a[1]+T|0,a[2]=a[2]+C|0,a[3]=a[3]+A|0},_doFinalize:function(){var t=this._data,n=t.words,r=8*this._nDataBytes,i=8*t.sigBytes;n[i>>>5]|=128<<24-i%32;var o=e.floor(r/4294967296);for(n[15+(i+64>>>9<<4)]=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8),n[14+(i+64>>>9<<4)]=16711935&(r<<8|r>>>24)|4278255360&(r<<24|r>>>8),t.sigBytes=4*(n.length+1),this._process(),n=(t=this._hash).words,r=0;4>r;r++)i=n[r],n[r]=16711935&(i<<8|i>>>24)|4278255360&(i<<24|i>>>8);return t},clone:function(){var e=s.clone.call(this);return e._hash=this._hash.clone(),e}}),o.MD5=s._createHelper(u),o.HmacMD5=s._createHmacHelper(u)}(Math),function(){var e=g,t=(i=e.lib).WordArray,n=i.Hasher,r=[],i=e.algo.SHA1=n.extend({_doReset:function(){this._hash=new t.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(e,t){for(var n=this._hash.words,i=n[0],o=n[1],a=n[2],s=n[3],u=n[4],l=0;80>l;l++){if(16>l)r[l]=0|e[t+l];else{var c=r[l-3]^r[l-8]^r[l-14]^r[l-16];r[l]=c<<1|c>>>31}c=(i<<5|i>>>27)+u+r[l],c=20>l?c+(1518500249+(o&a|~o&s)):40>l?c+(1859775393+(o^a^s)):60>l?c+((o&a|o&s|a&s)-1894007588):c+((o^a^s)-899497514),u=s,s=a,a=o<<30|o>>>2,o=i,i=c}n[0]=n[0]+i|0,n[1]=n[1]+o|0,n[2]=n[2]+a|0,n[3]=n[3]+s|0,n[4]=n[4]+u|0},_doFinalize:function(){var e=this._data,t=e.words,n=8*this._nDataBytes,r=8*e.sigBytes;return t[r>>>5]|=128<<24-r%32,t[14+(r+64>>>9<<4)]=Math.floor(n/4294967296),t[15+(r+64>>>9<<4)]=n,e.sigBytes=4*t.length,this._process(),this._hash},clone:function(){var e=n.clone.call(this);return e._hash=this._hash.clone(),e}});e.SHA1=n._createHelper(i),e.HmacSHA1=n._createHmacHelper(i)}(),function(e){for(var t=g,n=(i=t.lib).WordArray,r=i.Hasher,i=t.algo,o=[],a=[],s=function(e){return 4294967296*(e-(0|e))|0},u=2,l=0;64>l;){var c;e:{c=u;for(var h=e.sqrt(c),p=2;p<=h;p++)if(!(c%p)){c=!1;break e}c=!0}c&&(8>l&&(o[l]=s(e.pow(u,.5))),a[l]=s(e.pow(u,1/3)),l++),u++}var f=[];i=i.SHA256=r.extend({_doReset:function(){this._hash=new n.init(o.slice(0))},_doProcessBlock:function(e,t){for(var n=this._hash.words,r=n[0],i=n[1],o=n[2],s=n[3],u=n[4],l=n[5],c=n[6],h=n[7],p=0;64>p;p++){if(16>p)f[p]=0|e[t+p];else{var d=f[p-15],g=f[p-2];f[p]=((d<<25|d>>>7)^(d<<14|d>>>18)^d>>>3)+f[p-7]+((g<<15|g>>>17)^(g<<13|g>>>19)^g>>>10)+f[p-16]}d=h+((u<<26|u>>>6)^(u<<21|u>>>11)^(u<<7|u>>>25))+(u&l^~u&c)+a[p]+f[p],g=((r<<30|r>>>2)^(r<<19|r>>>13)^(r<<10|r>>>22))+(r&i^r&o^i&o),h=c,c=l,l=u,u=s+d|0,s=o,o=i,i=r,r=d+g|0}n[0]=n[0]+r|0,n[1]=n[1]+i|0,n[2]=n[2]+o|0,n[3]=n[3]+s|0,n[4]=n[4]+u|0,n[5]=n[5]+l|0,n[6]=n[6]+c|0,n[7]=n[7]+h|0},_doFinalize:function(){var t=this._data,n=t.words,r=8*this._nDataBytes,i=8*t.sigBytes;return n[i>>>5]|=128<<24-i%32,n[14+(i+64>>>9<<4)]=e.floor(r/4294967296),n[15+(i+64>>>9<<4)]=r,t.sigBytes=4*n.length,this._process(),this._hash},clone:function(){var e=r.clone.call(this);return e._hash=this._hash.clone(),e}});t.SHA256=r._createHelper(i),t.HmacSHA256=r._createHmacHelper(i)}(Math),function(){var e=g,t=e.lib.WordArray,n=(r=e.algo).SHA256,r=r.SHA224=n.extend({_doReset:function(){this._hash=new t.init([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428])},_doFinalize:function(){var e=n._doFinalize.call(this);return e.sigBytes-=4,e}});e.SHA224=n._createHelper(r),e.HmacSHA224=n._createHmacHelper(r)}(),function(){function e(){return r.create.apply(r,arguments)}for(var t=g,n=t.lib.Hasher,r=(o=t.x64).Word,i=o.WordArray,o=t.algo,a=[e(1116352408,3609767458),e(1899447441,602891725),e(3049323471,3964484399),e(3921009573,2173295548),e(961987163,4081628472),e(1508970993,3053834265),e(2453635748,2937671579),e(2870763221,3664609560),e(3624381080,2734883394),e(310598401,1164996542),e(607225278,1323610764),e(1426881987,3590304994),e(1925078388,4068182383),e(2162078206,991336113),e(2614888103,633803317),e(3248222580,3479774868),e(3835390401,2666613458),e(4022224774,944711139),e(264347078,2341262773),e(604807628,2007800933),e(770255983,1495990901),e(1249150122,1856431235),e(1555081692,3175218132),e(1996064986,2198950837),e(2554220882,3999719339),e(2821834349,766784016),e(2952996808,2566594879),e(3210313671,3203337956),e(3336571891,1034457026),e(3584528711,2466948901),e(113926993,3758326383),e(338241895,168717936),e(666307205,1188179964),e(773529912,1546045734),e(1294757372,1522805485),e(1396182291,2643833823),e(1695183700,2343527390),e(1986661051,1014477480),e(2177026350,1206759142),e(2456956037,344077627),e(2730485921,1290863460),e(2820302411,3158454273),e(3259730800,3505952657),e(3345764771,106217008),e(3516065817,3606008344),e(3600352804,1432725776),e(4094571909,1467031594),e(275423344,851169720),e(430227734,3100823752),e(506948616,1363258195),e(659060556,3750685593),e(883997877,3785050280),e(958139571,3318307427),e(1322822218,3812723403),e(1537002063,2003034995),e(1747873779,3602036899),e(1955562222,1575990012),e(2024104815,1125592928),e(2227730452,2716904306),e(2361852424,442776044),e(2428436474,593698344),e(2756734187,3733110249),e(3204031479,2999351573),e(3329325298,3815920427),e(3391569614,3928383900),e(3515267271,566280711),e(3940187606,3454069534),e(4118630271,4000239992),e(116418474,1914138554),e(174292421,2731055270),e(289380356,3203993006),e(460393269,320620315),e(685471733,587496836),e(852142971,1086792851),e(1017036298,365543100),e(1126000580,2618297676),e(1288033470,3409855158),e(1501505948,4234509866),e(1607167915,987167468),e(1816402316,1246189591)],s=[],u=0;80>u;u++)s[u]=e();o=o.SHA512=n.extend({_doReset:function(){this._hash=new i.init([new r.init(1779033703,4089235720),new r.init(3144134277,2227873595),new r.init(1013904242,4271175723),new r.init(2773480762,1595750129),new r.init(1359893119,2917565137),new r.init(2600822924,725511199),new r.init(528734635,4215389547),new r.init(1541459225,327033209)])},_doProcessBlock:function(e,t){for(var n=(h=this._hash.words)[0],r=h[1],i=h[2],o=h[3],u=h[4],l=h[5],c=h[6],h=h[7],p=n.high,f=n.low,d=r.high,g=r.low,m=i.high,v=i.low,y=o.high,b=o.low,$=u.high,w=u.low,x=l.high,S=l.low,E=c.high,A=c.low,C=h.high,T=h.low,F=p,k=f,R=d,P=g,D=m,O=v,I=y,_=b,j=$,L=w,N=x,M=S,B=E,U=A,H=C,V=T,q=0;80>q;q++){var z=s[q];if(16>q)var K=z.high=0|e[t+2*q],G=z.low=0|e[t+2*q+1];else{K=((G=(K=s[q-15]).high)>>>1|(W=K.low)<<31)^(G>>>8|W<<24)^G>>>7;var W=(W>>>1|G<<31)^(W>>>8|G<<24)^(W>>>7|G<<25),Y=((G=(Y=s[q-2]).high)>>>19|(X=Y.low)<<13)^(G<<3|X>>>29)^G>>>6,X=(X>>>19|G<<13)^(X<<3|G>>>29)^(X>>>6|G<<26),Q=(G=s[q-7]).high,J=(Z=s[q-16]).high,Z=Z.low;K=(K=(K=K+Q+((G=W+G.low)>>>0<W>>>0?1:0))+Y+((G=G+X)>>>0<X>>>0?1:0))+J+((G=G+Z)>>>0<Z>>>0?1:0);z.high=K,z.low=G}Q=j&N^~j&B,Z=L&M^~L&U,z=F&R^F&D^R&D;var ee=k&P^k&O^P&O,te=(W=(F>>>28|k<<4)^(F<<30|k>>>2)^(F<<25|k>>>7),Y=(k>>>28|F<<4)^(k<<30|F>>>2)^(k<<25|F>>>7),(X=a[q]).high),ne=X.low;J=H+((j>>>14|L<<18)^(j>>>18|L<<14)^(j<<23|L>>>9))+((X=V+((L>>>14|j<<18)^(L>>>18|j<<14)^(L<<23|j>>>9)))>>>0<V>>>0?1:0),H=B,V=U,B=N,U=M,N=j,M=L,j=I+(J=(J=(J=J+Q+((X=X+Z)>>>0<Z>>>0?1:0))+te+((X=X+ne)>>>0<ne>>>0?1:0))+K+((X=X+G)>>>0<G>>>0?1:0))+((L=_+X|0)>>>0<_>>>0?1:0)|0,I=D,_=O,D=R,O=P,R=F,P=k,F=J+(z=W+z+((G=Y+ee)>>>0<Y>>>0?1:0))+((k=X+G|0)>>>0<X>>>0?1:0)|0}f=n.low=f+k,n.high=p+F+(f>>>0<k>>>0?1:0),g=r.low=g+P,r.high=d+R+(g>>>0<P>>>0?1:0),v=i.low=v+O,i.high=m+D+(v>>>0<O>>>0?1:0),b=o.low=b+_,o.high=y+I+(b>>>0<_>>>0?1:0),w=u.low=w+L,u.high=$+j+(w>>>0<L>>>0?1:0),S=l.low=S+M,l.high=x+N+(S>>>0<M>>>0?1:0),A=c.low=A+U,c.high=E+B+(A>>>0<U>>>0?1:0),T=h.low=T+V,h.high=C+H+(T>>>0<V>>>0?1:0)},_doFinalize:function(){var e=this._data,t=e.words,n=8*this._nDataBytes,r=8*e.sigBytes;return t[r>>>5]|=128<<24-r%32,t[30+(r+128>>>10<<5)]=Math.floor(n/4294967296),t[31+(r+128>>>10<<5)]=n,e.sigBytes=4*t.length,this._process(),this._hash.toX32()},clone:function(){var e=n.clone.call(this);return e._hash=this._hash.clone(),e},blockSize:32}),t.SHA512=n._createHelper(o),t.HmacSHA512=n._createHmacHelper(o)}(),function(){var e=g,t=(i=e.x64).Word,n=i.WordArray,r=(i=e.algo).SHA512,i=i.SHA384=r.extend({_doReset:function(){this._hash=new n.init([new t.init(3418070365,3238371032),new t.init(1654270250,914150663),new t.init(2438529370,812702999),new t.init(355462360,4144912697),new t.init(1731405415,4290775857),new t.init(2394180231,1750603025),new t.init(3675008525,1694076839),new t.init(1203062813,3204075428)])},_doFinalize:function(){var e=r._doFinalize.call(this);return e.sigBytes-=16,e}});e.SHA384=r._createHelper(i),e.HmacSHA384=r._createHmacHelper(i)}(),function(){var e=g,t=(r=e.lib).WordArray,n=r.Hasher,r=e.algo,i=t.create([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13]),o=t.create([5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11]),a=t.create([11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6]),s=t.create([8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]),u=t.create([0,1518500249,1859775393,2400959708,2840853838]),l=t.create([1352829926,1548603684,1836072691,2053994217,0]);r=r.RIPEMD160=n.extend({_doReset:function(){this._hash=t.create([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(e,t){for(var n=0;16>n;n++){var r=e[$=t+n];e[$]=16711935&(r<<8|r>>>24)|4278255360&(r<<24|r>>>8)}var c,h,p,f,d,g,m,v,y,b,$=this._hash.words,w=(r=u.words,l.words),x=i.words,S=o.words,E=a.words,A=s.words;g=c=$[0],m=h=$[1],v=p=$[2],y=f=$[3],b=d=$[4];var C;for(n=0;80>n;n+=1)C=c+e[t+x[n]]|0,C=16>n?C+((h^p^f)+r[0]):32>n?C+((h&p|~h&f)+r[1]):48>n?C+(((h|~p)^f)+r[2]):64>n?C+((h&f|p&~f)+r[3]):C+((h^(p|~f))+r[4]),C=(C=(C|=0)<<E[n]|C>>>32-E[n])+d|0,c=d,d=f,f=p<<10|p>>>22,p=h,h=C,C=g+e[t+S[n]]|0,C=16>n?C+((m^(v|~y))+w[0]):32>n?C+((m&y|v&~y)+w[1]):48>n?C+(((m|~v)^y)+w[2]):64>n?C+((m&v|~m&y)+w[3]):C+((m^v^y)+w[4]),C=(C=(C|=0)<<A[n]|C>>>32-A[n])+b|0,g=b,b=y,y=v<<10|v>>>22,v=m,m=C;C=$[1]+p+y|0,$[1]=$[2]+f+b|0,$[2]=$[3]+d+g|0,$[3]=$[4]+c+m|0,$[4]=$[0]+h+v|0,$[0]=C},_doFinalize:function(){var e=this._data,t=e.words,n=8*this._nDataBytes,r=8*e.sigBytes;for(t[r>>>5]|=128<<24-r%32,t[14+(r+64>>>9<<4)]=16711935&(n<<8|n>>>24)|4278255360&(n<<24|n>>>8),e.sigBytes=4*(t.length+1),this._process(),t=(e=this._hash).words,n=0;5>n;n++)r=t[n],t[n]=16711935&(r<<8|r>>>24)|4278255360&(r<<24|r>>>8);return e},clone:function(){var e=n.clone.call(this);return e._hash=this._hash.clone(),e}});e.RIPEMD160=n._createHelper(r),e.HmacRIPEMD160=n._createHmacHelper(r)}(Math),function(){var e=g,t=e.enc.Utf8;e.algo.HMAC=e.lib.Base.extend({init:function(e,n){e=this._hasher=new e.init,"string"==typeof n&&(n=t.parse(n));var r=e.blockSize,i=4*r;n.sigBytes>i&&(n=e.finalize(n)),n.clamp();for(var o=this._oKey=n.clone(),a=this._iKey=n.clone(),s=o.words,u=a.words,l=0;l<r;l++)s[l]^=1549556828,u[l]^=909522486;o.sigBytes=a.sigBytes=i,this.reset()},reset:function(){var e=this._hasher;e.reset(),e.update(this._iKey)},update:function(e){return this._hasher.update(e),this},finalize:function(e){var t=this._hasher;return e=t.finalize(e),t.reset(),t.finalize(this._oKey.clone().concat(e))}})}(),function(){var e,t=g,n=(e=t.lib).Base,r=e.WordArray,i=(e=t.algo).HMAC,o=e.PBKDF2=n.extend({cfg:n.extend({keySize:4,hasher:e.SHA1,iterations:1}),init:function(e){this.cfg=this.cfg.extend(e)},compute:function(e,t){var n=this.cfg,o=i.create(n.hasher,e),a=r.create(),s=r.create([1]),u=a.words,l=s.words,c=n.keySize;for(n=n.iterations;u.length<c;){var h=o.update(t).finalize(s);o.reset();for(var p=h.words,f=p.length,d=h,g=1;g<n;g++){d=o.finalize(d),o.reset();for(var m=d.words,v=0;v<f;v++)p[v]^=m[v]}a.concat(h),l[0]++}return a.sigBytes=4*c,a}});t.PBKDF2=function(e,t,n){return o.create(n).compute(e,t)}}();
70
+ /*! (c) Tom Wu | http://www-cs-students.stanford.edu/~tjw/jsbn/
71
+ */
72
+ var m,v="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";function y(e){var t,n,r="";for(t=0;t+3<=e.length;t+=3)n=parseInt(e.substring(t,t+3),16),r+=v.charAt(n>>6)+v.charAt(63&n);for(t+1==e.length?(n=parseInt(e.substring(t,t+1),16),r+=v.charAt(n<<2)):t+2==e.length&&(n=parseInt(e.substring(t,t+2),16),r+=v.charAt(n>>2)+v.charAt((3&n)<<4)),"=";(3&r.length)>0;)r+="=";return r}function b(e){var t,n,r,i="",o=0;for(t=0;t<e.length&&"="!=e.charAt(t);++t)(r=v.indexOf(e.charAt(t)))<0||(0==o?(i+=C(r>>2),n=3&r,o=1):1==o?(i+=C(n<<2|r>>4),n=15&r,o=2):2==o?(i+=C(n),i+=C(r>>2),n=3&r,o=3):(i+=C(n<<2|r>>4),i+=C(15&r),o=0));return 1==o&&(i+=C(n<<2)),i}function $(e){var t,n=b(e),r=new Array;for(t=0;2*t<n.length;++t)r[t]=parseInt(n.substring(2*t,2*t+2),16);return r}function w(e,t,n){null!=e&&("number"==typeof e?this.fromNumber(e,t,n):null==t&&"string"!=typeof e?this.fromString(e,256):this.fromString(e,t))}function x(){return new w(null)}"Microsoft Internet Explorer"==f.appName?(w.prototype.am=function(e,t,n,r,i,o){for(var a=32767&t,s=t>>15;--o>=0;){var u=32767&this[e],l=this[e++]>>15,c=s*u+l*a;i=((u=a*u+((32767&c)<<15)+n[r]+(1073741823&i))>>>30)+(c>>>15)+s*l+(i>>>30),n[r++]=1073741823&u}return i},m=30):"Netscape"!=f.appName?(w.prototype.am=function(e,t,n,r,i,o){for(;--o>=0;){var a=t*this[e++]+n[r]+i;i=Math.floor(a/67108864),n[r++]=67108863&a}return i},m=26):(w.prototype.am=function(e,t,n,r,i,o){for(var a=16383&t,s=t>>14;--o>=0;){var u=16383&this[e],l=this[e++]>>14,c=s*u+l*a;i=((u=a*u+((16383&c)<<14)+n[r]+i)>>28)+(c>>14)+s*l,n[r++]=268435455&u}return i},m=28),w.prototype.DB=m,w.prototype.DM=(1<<m)-1,w.prototype.DV=1<<m;w.prototype.FV=Math.pow(2,52),w.prototype.F1=52-m,w.prototype.F2=2*m-52;var S,E,A=new Array;for(S="0".charCodeAt(0),E=0;E<=9;++E)A[S++]=E;for(S="a".charCodeAt(0),E=10;E<36;++E)A[S++]=E;for(S="A".charCodeAt(0),E=10;E<36;++E)A[S++]=E;function C(e){return"0123456789abcdefghijklmnopqrstuvwxyz".charAt(e)}function T(e,t){var n=A[e.charCodeAt(t)];return null==n?-1:n}function F(e){var t=x();return t.fromInt(e),t}function k(e){var t,n=1;return 0!=(t=e>>>16)&&(e=t,n+=16),0!=(t=e>>8)&&(e=t,n+=8),0!=(t=e>>4)&&(e=t,n+=4),0!=(t=e>>2)&&(e=t,n+=2),0!=(t=e>>1)&&(e=t,n+=1),n}function R(e){this.m=e}function P(e){this.m=e,this.mp=e.invDigit(),this.mpl=32767&this.mp,this.mph=this.mp>>15,this.um=(1<<e.DB-15)-1,this.mt2=2*e.t}function D(e,t){return e&t}function O(e,t){return e|t}function I(e,t){return e^t}function _(e,t){return e&~t}function j(e){if(0==e)return-1;var t=0;return 0==(65535&e)&&(e>>=16,t+=16),0==(255&e)&&(e>>=8,t+=8),0==(15&e)&&(e>>=4,t+=4),0==(3&e)&&(e>>=2,t+=2),0==(1&e)&&++t,t}function L(e){for(var t=0;0!=e;)e&=e-1,++t;return t}function N(){}function M(e){return e}function B(e){this.r2=x(),this.q3=x(),w.ONE.dlShiftTo(2*e.t,this.r2),this.mu=this.r2.divide(e),this.m=e}R.prototype.convert=function(e){return e.s<0||e.compareTo(this.m)>=0?e.mod(this.m):e},R.prototype.revert=function(e){return e},R.prototype.reduce=function(e){e.divRemTo(this.m,null,e)},R.prototype.mulTo=function(e,t,n){e.multiplyTo(t,n),this.reduce(n)},R.prototype.sqrTo=function(e,t){e.squareTo(t),this.reduce(t)},P.prototype.convert=function(e){var t=x();return e.abs().dlShiftTo(this.m.t,t),t.divRemTo(this.m,null,t),e.s<0&&t.compareTo(w.ZERO)>0&&this.m.subTo(t,t),t},P.prototype.revert=function(e){var t=x();return e.copyTo(t),this.reduce(t),t},P.prototype.reduce=function(e){for(;e.t<=this.mt2;)e[e.t++]=0;for(var t=0;t<this.m.t;++t){var n=32767&e[t],r=n*this.mpl+((n*this.mph+(e[t]>>15)*this.mpl&this.um)<<15)&e.DM;for(e[n=t+this.m.t]+=this.m.am(0,r,e,t,0,this.m.t);e[n]>=e.DV;)e[n]-=e.DV,e[++n]++}e.clamp(),e.drShiftTo(this.m.t,e),e.compareTo(this.m)>=0&&e.subTo(this.m,e)},P.prototype.mulTo=function(e,t,n){e.multiplyTo(t,n),this.reduce(n)},P.prototype.sqrTo=function(e,t){e.squareTo(t),this.reduce(t)},w.prototype.copyTo=function(e){for(var t=this.t-1;t>=0;--t)e[t]=this[t];e.t=this.t,e.s=this.s},w.prototype.fromInt=function(e){this.t=1,this.s=e<0?-1:0,e>0?this[0]=e:e<-1?this[0]=e+this.DV:this.t=0},w.prototype.fromString=function(e,t){var n;if(16==t)n=4;else if(8==t)n=3;else if(256==t)n=8;else if(2==t)n=1;else if(32==t)n=5;else{if(4!=t)return void this.fromRadix(e,t);n=2}this.t=0,this.s=0;for(var r=e.length,i=!1,o=0;--r>=0;){var a=8==n?255&e[r]:T(e,r);a<0?"-"==e.charAt(r)&&(i=!0):(i=!1,0==o?this[this.t++]=a:o+n>this.DB?(this[this.t-1]|=(a&(1<<this.DB-o)-1)<<o,this[this.t++]=a>>this.DB-o):this[this.t-1]|=a<<o,(o+=n)>=this.DB&&(o-=this.DB))}8==n&&0!=(128&e[0])&&(this.s=-1,o>0&&(this[this.t-1]|=(1<<this.DB-o)-1<<o)),this.clamp(),i&&w.ZERO.subTo(this,this)},w.prototype.clamp=function(){for(var e=this.s&this.DM;this.t>0&&this[this.t-1]==e;)--this.t},w.prototype.dlShiftTo=function(e,t){var n;for(n=this.t-1;n>=0;--n)t[n+e]=this[n];for(n=e-1;n>=0;--n)t[n]=0;t.t=this.t+e,t.s=this.s},w.prototype.drShiftTo=function(e,t){for(var n=e;n<this.t;++n)t[n-e]=this[n];t.t=Math.max(this.t-e,0),t.s=this.s},w.prototype.lShiftTo=function(e,t){var n,r=e%this.DB,i=this.DB-r,o=(1<<i)-1,a=Math.floor(e/this.DB),s=this.s<<r&this.DM;for(n=this.t-1;n>=0;--n)t[n+a+1]=this[n]>>i|s,s=(this[n]&o)<<r;for(n=a-1;n>=0;--n)t[n]=0;t[a]=s,t.t=this.t+a+1,t.s=this.s,t.clamp()},w.prototype.rShiftTo=function(e,t){t.s=this.s;var n=Math.floor(e/this.DB);if(n>=this.t)t.t=0;else{var r=e%this.DB,i=this.DB-r,o=(1<<r)-1;t[0]=this[n]>>r;for(var a=n+1;a<this.t;++a)t[a-n-1]|=(this[a]&o)<<i,t[a-n]=this[a]>>r;r>0&&(t[this.t-n-1]|=(this.s&o)<<i),t.t=this.t-n,t.clamp()}},w.prototype.subTo=function(e,t){for(var n=0,r=0,i=Math.min(e.t,this.t);n<i;)r+=this[n]-e[n],t[n++]=r&this.DM,r>>=this.DB;if(e.t<this.t){for(r-=e.s;n<this.t;)r+=this[n],t[n++]=r&this.DM,r>>=this.DB;r+=this.s}else{for(r+=this.s;n<e.t;)r-=e[n],t[n++]=r&this.DM,r>>=this.DB;r-=e.s}t.s=r<0?-1:0,r<-1?t[n++]=this.DV+r:r>0&&(t[n++]=r),t.t=n,t.clamp()},w.prototype.multiplyTo=function(e,t){var n=this.abs(),r=e.abs(),i=n.t;for(t.t=i+r.t;--i>=0;)t[i]=0;for(i=0;i<r.t;++i)t[i+n.t]=n.am(0,r[i],t,i,0,n.t);t.s=0,t.clamp(),this.s!=e.s&&w.ZERO.subTo(t,t)},w.prototype.squareTo=function(e){for(var t=this.abs(),n=e.t=2*t.t;--n>=0;)e[n]=0;for(n=0;n<t.t-1;++n){var r=t.am(n,t[n],e,2*n,0,1);(e[n+t.t]+=t.am(n+1,2*t[n],e,2*n+1,r,t.t-n-1))>=t.DV&&(e[n+t.t]-=t.DV,e[n+t.t+1]=1)}e.t>0&&(e[e.t-1]+=t.am(n,t[n],e,2*n,0,1)),e.s=0,e.clamp()},w.prototype.divRemTo=function(e,t,n){var r=e.abs();if(!(r.t<=0)){var i=this.abs();if(i.t<r.t)return null!=t&&t.fromInt(0),void(null!=n&&this.copyTo(n));null==n&&(n=x());var o=x(),a=this.s,s=e.s,u=this.DB-k(r[r.t-1]);u>0?(r.lShiftTo(u,o),i.lShiftTo(u,n)):(r.copyTo(o),i.copyTo(n));var l=o.t,c=o[l-1];if(0!=c){var h=c*(1<<this.F1)+(l>1?o[l-2]>>this.F2:0),p=this.FV/h,f=(1<<this.F1)/h,d=1<<this.F2,g=n.t,m=g-l,v=null==t?x():t;for(o.dlShiftTo(m,v),n.compareTo(v)>=0&&(n[n.t++]=1,n.subTo(v,n)),w.ONE.dlShiftTo(l,v),v.subTo(o,o);o.t<l;)o[o.t++]=0;for(;--m>=0;){var y=n[--g]==c?this.DM:Math.floor(n[g]*p+(n[g-1]+d)*f);if((n[g]+=o.am(0,y,n,m,0,l))<y)for(o.dlShiftTo(m,v),n.subTo(v,n);n[g]<--y;)n.subTo(v,n)}null!=t&&(n.drShiftTo(l,t),a!=s&&w.ZERO.subTo(t,t)),n.t=l,n.clamp(),u>0&&n.rShiftTo(u,n),a<0&&w.ZERO.subTo(n,n)}}},w.prototype.invDigit=function(){if(this.t<1)return 0;var e=this[0];if(0==(1&e))return 0;var t=3&e;return(t=(t=(t=(t=t*(2-(15&e)*t)&15)*(2-(255&e)*t)&255)*(2-((65535&e)*t&65535))&65535)*(2-e*t%this.DV)%this.DV)>0?this.DV-t:-t},w.prototype.isEven=function(){return 0==(this.t>0?1&this[0]:this.s)},w.prototype.exp=function(e,t){if(e>4294967295||e<1)return w.ONE;var n=x(),r=x(),i=t.convert(this),o=k(e)-1;for(i.copyTo(n);--o>=0;)if(t.sqrTo(n,r),(e&1<<o)>0)t.mulTo(r,i,n);else{var a=n;n=r,r=a}return t.revert(n)},w.prototype.toString=function(e){if(this.s<0)return"-"+this.negate().toString(e);var t;if(16==e)t=4;else if(8==e)t=3;else if(2==e)t=1;else if(32==e)t=5;else{if(4!=e)return this.toRadix(e);t=2}var n,r=(1<<t)-1,i=!1,o="",a=this.t,s=this.DB-a*this.DB%t;if(a-- >0)for(s<this.DB&&(n=this[a]>>s)>0&&(i=!0,o=C(n));a>=0;)s<t?(n=(this[a]&(1<<s)-1)<<t-s,n|=this[--a]>>(s+=this.DB-t)):(n=this[a]>>(s-=t)&r,s<=0&&(s+=this.DB,--a)),n>0&&(i=!0),i&&(o+=C(n));return i?o:"0"},w.prototype.negate=function(){var e=x();return w.ZERO.subTo(this,e),e},w.prototype.abs=function(){return this.s<0?this.negate():this},w.prototype.compareTo=function(e){var t=this.s-e.s;if(0!=t)return t;var n=this.t;if(0!=(t=n-e.t))return this.s<0?-t:t;for(;--n>=0;)if(0!=(t=this[n]-e[n]))return t;return 0},w.prototype.bitLength=function(){return this.t<=0?0:this.DB*(this.t-1)+k(this[this.t-1]^this.s&this.DM)},w.prototype.mod=function(e){var t=x();return this.abs().divRemTo(e,null,t),this.s<0&&t.compareTo(w.ZERO)>0&&e.subTo(t,t),t},w.prototype.modPowInt=function(e,t){var n;return n=e<256||t.isEven()?new R(t):new P(t),this.exp(e,n)},w.ZERO=F(0),w.ONE=F(1),N.prototype.convert=M,N.prototype.revert=M,N.prototype.mulTo=function(e,t,n){e.multiplyTo(t,n)},N.prototype.sqrTo=function(e,t){e.squareTo(t)},B.prototype.convert=function(e){if(e.s<0||e.t>2*this.m.t)return e.mod(this.m);if(e.compareTo(this.m)<0)return e;var t=x();return e.copyTo(t),this.reduce(t),t},B.prototype.revert=function(e){return e},B.prototype.reduce=function(e){for(e.drShiftTo(this.m.t-1,this.r2),e.t>this.m.t+1&&(e.t=this.m.t+1,e.clamp()),this.mu.multiplyUpperTo(this.r2,this.m.t+1,this.q3),this.m.multiplyLowerTo(this.q3,this.m.t+1,this.r2);e.compareTo(this.r2)<0;)e.dAddOffset(1,this.m.t+1);for(e.subTo(this.r2,e);e.compareTo(this.m)>=0;)e.subTo(this.m,e)},B.prototype.mulTo=function(e,t,n){e.multiplyTo(t,n),this.reduce(n)},B.prototype.sqrTo=function(e,t){e.squareTo(t),this.reduce(t)};var U=[2,3,5,7,11,13,17,19,23,29,31,37,41,43,47,53,59,61,67,71,73,79,83,89,97,101,103,107,109,113,127,131,137,139,149,151,157,163,167,173,179,181,191,193,197,199,211,223,227,229,233,239,241,251,257,263,269,271,277,281,283,293,307,311,313,317,331,337,347,349,353,359,367,373,379,383,389,397,401,409,419,421,431,433,439,443,449,457,461,463,467,479,487,491,499,503,509,521,523,541,547,557,563,569,571,577,587,593,599,601,607,613,617,619,631,641,643,647,653,659,661,673,677,683,691,701,709,719,727,733,739,743,751,757,761,769,773,787,797,809,811,821,823,827,829,839,853,857,859,863,877,881,883,887,907,911,919,929,937,941,947,953,967,971,977,983,991,997],H=(1<<26)/U[U.length-1];
73
+ /*! (c) Tom Wu | http://www-cs-students.stanford.edu/~tjw/jsbn/
74
+ */
75
+ function V(){this.i=0,this.j=0,this.S=new Array}w.prototype.chunkSize=function(e){return Math.floor(Math.LN2*this.DB/Math.log(e))},w.prototype.toRadix=function(e){if(null==e&&(e=10),0==this.signum()||e<2||e>36)return"0";var t=this.chunkSize(e),n=Math.pow(e,t),r=F(n),i=x(),o=x(),a="";for(this.divRemTo(r,i,o);i.signum()>0;)a=(n+o.intValue()).toString(e).substr(1)+a,i.divRemTo(r,i,o);return o.intValue().toString(e)+a},w.prototype.fromRadix=function(e,t){this.fromInt(0),null==t&&(t=10);for(var n=this.chunkSize(t),r=Math.pow(t,n),i=!1,o=0,a=0,s=0;s<e.length;++s){var u=T(e,s);u<0?"-"==e.charAt(s)&&0==this.signum()&&(i=!0):(a=t*a+u,++o>=n&&(this.dMultiply(r),this.dAddOffset(a,0),o=0,a=0))}o>0&&(this.dMultiply(Math.pow(t,o)),this.dAddOffset(a,0)),i&&w.ZERO.subTo(this,this)},w.prototype.fromNumber=function(e,t,n){if("number"==typeof t)if(e<2)this.fromInt(1);else for(this.fromNumber(e,n),this.testBit(e-1)||this.bitwiseTo(w.ONE.shiftLeft(e-1),O,this),this.isEven()&&this.dAddOffset(1,0);!this.isProbablePrime(t);)this.dAddOffset(2,0),this.bitLength()>e&&this.subTo(w.ONE.shiftLeft(e-1),this);else{var r=new Array,i=7&e;r.length=1+(e>>3),t.nextBytes(r),i>0?r[0]&=(1<<i)-1:r[0]=0,this.fromString(r,256)}},w.prototype.bitwiseTo=function(e,t,n){var r,i,o=Math.min(e.t,this.t);for(r=0;r<o;++r)n[r]=t(this[r],e[r]);if(e.t<this.t){for(i=e.s&this.DM,r=o;r<this.t;++r)n[r]=t(this[r],i);n.t=this.t}else{for(i=this.s&this.DM,r=o;r<e.t;++r)n[r]=t(i,e[r]);n.t=e.t}n.s=t(this.s,e.s),n.clamp()},w.prototype.changeBit=function(e,t){var n=w.ONE.shiftLeft(e);return this.bitwiseTo(n,t,n),n},w.prototype.addTo=function(e,t){for(var n=0,r=0,i=Math.min(e.t,this.t);n<i;)r+=this[n]+e[n],t[n++]=r&this.DM,r>>=this.DB;if(e.t<this.t){for(r+=e.s;n<this.t;)r+=this[n],t[n++]=r&this.DM,r>>=this.DB;r+=this.s}else{for(r+=this.s;n<e.t;)r+=e[n],t[n++]=r&this.DM,r>>=this.DB;r+=e.s}t.s=r<0?-1:0,r>0?t[n++]=r:r<-1&&(t[n++]=this.DV+r),t.t=n,t.clamp()},w.prototype.dMultiply=function(e){this[this.t]=this.am(0,e-1,this,0,0,this.t),++this.t,this.clamp()},w.prototype.dAddOffset=function(e,t){if(0!=e){for(;this.t<=t;)this[this.t++]=0;for(this[t]+=e;this[t]>=this.DV;)this[t]-=this.DV,++t>=this.t&&(this[this.t++]=0),++this[t]}},w.prototype.multiplyLowerTo=function(e,t,n){var r,i=Math.min(this.t+e.t,t);for(n.s=0,n.t=i;i>0;)n[--i]=0;for(r=n.t-this.t;i<r;++i)n[i+this.t]=this.am(0,e[i],n,i,0,this.t);for(r=Math.min(e.t,t);i<r;++i)this.am(0,e[i],n,i,0,t-i);n.clamp()},w.prototype.multiplyUpperTo=function(e,t,n){--t;var r=n.t=this.t+e.t-t;for(n.s=0;--r>=0;)n[r]=0;for(r=Math.max(t-this.t,0);r<e.t;++r)n[this.t+r-t]=this.am(t-r,e[r],n,0,0,this.t+r-t);n.clamp(),n.drShiftTo(1,n)},w.prototype.modInt=function(e){if(e<=0)return 0;var t=this.DV%e,n=this.s<0?e-1:0;if(this.t>0)if(0==t)n=this[0]%e;else for(var r=this.t-1;r>=0;--r)n=(t*n+this[r])%e;return n},w.prototype.millerRabin=function(e){var t=this.subtract(w.ONE),n=t.getLowestSetBit();if(n<=0)return!1;var r=t.shiftRight(n);(e=e+1>>1)>U.length&&(e=U.length);for(var i=x(),o=0;o<e;++o){i.fromInt(U[Math.floor(Math.random()*U.length)]);var a=i.modPow(r,this);if(0!=a.compareTo(w.ONE)&&0!=a.compareTo(t)){for(var s=1;s++<n&&0!=a.compareTo(t);)if(0==(a=a.modPowInt(2,this)).compareTo(w.ONE))return!1;if(0!=a.compareTo(t))return!1}}return!0},w.prototype.clone=
76
+ /*! (c) Tom Wu | http://www-cs-students.stanford.edu/~tjw/jsbn/
77
+ */
78
+ function(){var e=x();return this.copyTo(e),e},w.prototype.intValue=function(){if(this.s<0){if(1==this.t)return this[0]-this.DV;if(0==this.t)return-1}else{if(1==this.t)return this[0];if(0==this.t)return 0}return(this[1]&(1<<32-this.DB)-1)<<this.DB|this[0]},w.prototype.byteValue=function(){return 0==this.t?this.s:this[0]<<24>>24},w.prototype.shortValue=function(){return 0==this.t?this.s:this[0]<<16>>16},w.prototype.signum=function(){return this.s<0?-1:this.t<=0||1==this.t&&this[0]<=0?0:1},w.prototype.toByteArray=function(){var e=this.t,t=new Array;t[0]=this.s;var n,r=this.DB-e*this.DB%8,i=0;if(e-- >0)for(r<this.DB&&(n=this[e]>>r)!=(this.s&this.DM)>>r&&(t[i++]=n|this.s<<this.DB-r);e>=0;)r<8?(n=(this[e]&(1<<r)-1)<<8-r,n|=this[--e]>>(r+=this.DB-8)):(n=this[e]>>(r-=8)&255,r<=0&&(r+=this.DB,--e)),0!=(128&n)&&(n|=-256),0==i&&(128&this.s)!=(128&n)&&++i,(i>0||n!=this.s)&&(t[i++]=n);return t},w.prototype.equals=function(e){return 0==this.compareTo(e)},w.prototype.min=function(e){return this.compareTo(e)<0?this:e},w.prototype.max=function(e){return this.compareTo(e)>0?this:e},w.prototype.and=function(e){var t=x();return this.bitwiseTo(e,D,t),t},w.prototype.or=function(e){var t=x();return this.bitwiseTo(e,O,t),t},w.prototype.xor=function(e){var t=x();return this.bitwiseTo(e,I,t),t},w.prototype.andNot=function(e){var t=x();return this.bitwiseTo(e,_,t),t},w.prototype.not=function(){for(var e=x(),t=0;t<this.t;++t)e[t]=this.DM&~this[t];return e.t=this.t,e.s=~this.s,e},w.prototype.shiftLeft=function(e){var t=x();return e<0?this.rShiftTo(-e,t):this.lShiftTo(e,t),t},w.prototype.shiftRight=function(e){var t=x();return e<0?this.lShiftTo(-e,t):this.rShiftTo(e,t),t},w.prototype.getLowestSetBit=function(){for(var e=0;e<this.t;++e)if(0!=this[e])return e*this.DB+j(this[e]);return this.s<0?this.t*this.DB:-1},w.prototype.bitCount=function(){for(var e=0,t=this.s&this.DM,n=0;n<this.t;++n)e+=L(this[n]^t);return e},w.prototype.testBit=function(e){var t=Math.floor(e/this.DB);return t>=this.t?0!=this.s:0!=(this[t]&1<<e%this.DB)},w.prototype.setBit=function(e){return this.changeBit(e,O)},w.prototype.clearBit=function(e){return this.changeBit(e,_)},w.prototype.flipBit=function(e){return this.changeBit(e,I)},w.prototype.add=function(e){var t=x();return this.addTo(e,t),t},w.prototype.subtract=function(e){var t=x();return this.subTo(e,t),t},w.prototype.multiply=function(e){var t=x();return this.multiplyTo(e,t),t},w.prototype.divide=function(e){var t=x();return this.divRemTo(e,t,null),t},w.prototype.remainder=function(e){var t=x();return this.divRemTo(e,null,t),t},w.prototype.divideAndRemainder=function(e){var t=x(),n=x();return this.divRemTo(e,t,n),new Array(t,n)},w.prototype.modPow=function(e,t){var n,r,i=e.bitLength(),o=F(1);if(i<=0)return o;n=i<18?1:i<48?3:i<144?4:i<768?5:6,r=i<8?new R(t):t.isEven()?new B(t):new P(t);var a=new Array,s=3,u=n-1,l=(1<<n)-1;if(a[1]=r.convert(this),n>1){var c=x();for(r.sqrTo(a[1],c);s<=l;)a[s]=x(),r.mulTo(c,a[s-2],a[s]),s+=2}var h,p,f=e.t-1,d=!0,g=x();for(i=k(e[f])-1;f>=0;){for(i>=u?h=e[f]>>i-u&l:(h=(e[f]&(1<<i+1)-1)<<u-i,f>0&&(h|=e[f-1]>>this.DB+i-u)),s=n;0==(1&h);)h>>=1,--s;if((i-=s)<0&&(i+=this.DB,--f),d)a[h].copyTo(o),d=!1;else{for(;s>1;)r.sqrTo(o,g),r.sqrTo(g,o),s-=2;s>0?r.sqrTo(o,g):(p=o,o=g,g=p),r.mulTo(g,a[h],o)}for(;f>=0&&0==(e[f]&1<<i);)r.sqrTo(o,g),p=o,o=g,g=p,--i<0&&(i=this.DB-1,--f)}return r.revert(o)},w.prototype.modInverse=function(e){var t=e.isEven();if(this.isEven()&&t||0==e.signum())return w.ZERO;for(var n=e.clone(),r=this.clone(),i=F(1),o=F(0),a=F(0),s=F(1);0!=n.signum();){for(;n.isEven();)n.rShiftTo(1,n),t?(i.isEven()&&o.isEven()||(i.addTo(this,i),o.subTo(e,o)),i.rShiftTo(1,i)):o.isEven()||o.subTo(e,o),o.rShiftTo(1,o);for(;r.isEven();)r.rShiftTo(1,r),t?(a.isEven()&&s.isEven()||(a.addTo(this,a),s.subTo(e,s)),a.rShiftTo(1,a)):s.isEven()||s.subTo(e,s),s.rShiftTo(1,s);n.compareTo(r)>=0?(n.subTo(r,n),t&&i.subTo(a,i),o.subTo(s,o)):(r.subTo(n,r),t&&a.subTo(i,a),s.subTo(o,s))}return 0!=r.compareTo(w.ONE)?w.ZERO:s.compareTo(e)>=0?s.subtract(e):s.signum()<0?(s.addTo(e,s),s.signum()<0?s.add(e):s):s},w.prototype.pow=function(e){return this.exp(e,new N)},w.prototype.gcd=function(e){var t=this.s<0?this.negate():this.clone(),n=e.s<0?e.negate():e.clone();if(t.compareTo(n)<0){var r=t;t=n,n=r}var i=t.getLowestSetBit(),o=n.getLowestSetBit();if(o<0)return t;for(i<o&&(o=i),o>0&&(t.rShiftTo(o,t),n.rShiftTo(o,n));t.signum()>0;)(i=t.getLowestSetBit())>0&&t.rShiftTo(i,t),(i=n.getLowestSetBit())>0&&n.rShiftTo(i,n),t.compareTo(n)>=0?(t.subTo(n,t),t.rShiftTo(1,t)):(n.subTo(t,n),n.rShiftTo(1,n));return o>0&&n.lShiftTo(o,n),n},w.prototype.isProbablePrime=function(e){var t,n=this.abs();if(1==n.t&&n[0]<=U[U.length-1]){for(t=0;t<U.length;++t)if(n[0]==U[t])return!0;return!1}if(n.isEven())return!1;for(t=1;t<U.length;){for(var r=U[t],i=t+1;i<U.length&&r<H;)r*=U[i++];for(r=n.modInt(r);t<i;)if(r%U[t++]==0)return!1}return n.millerRabin(e)},w.prototype.square=function(){var e=x();return this.squareTo(e),e},V.prototype.init=function(e){var t,n,r;for(t=0;t<256;++t)this.S[t]=t;for(n=0,t=0;t<256;++t)n=n+this.S[t]+e[t%e.length]&255,r=this.S[t],this.S[t]=this.S[n],this.S[n]=r;this.i=0,this.j=0},V.prototype.next=function(){var e;return this.i=this.i+1&255,this.j=this.j+this.S[this.i]&255,e=this.S[this.i],this.S[this.i]=this.S[this.j],this.S[this.j]=e,this.S[e+this.S[this.i]&255]};var q,z,K;
79
+ /*! (c) Tom Wu | http://www-cs-students.stanford.edu/~tjw/jsbn/
80
+ */function G(){!function(e){z[K++]^=255&e,z[K++]^=e>>8&255,z[K++]^=e>>16&255,z[K++]^=e>>24&255,K>=256&&(K-=256)}((new Date).getTime())}if(null==z){var W;if(z=new Array,K=0,void 0!==d&&(void 0!==d.crypto||void 0!==d.msCrypto)){var Y=d.crypto||d.msCrypto;if(Y.getRandomValues){var X=new Uint8Array(32);for(Y.getRandomValues(X),W=0;W<32;++W)z[K++]=X[W]}else if("Netscape"==f.appName&&f.appVersion<"5"){var Q=d.crypto.random(32);for(W=0;W<Q.length;++W)z[K++]=255&Q.charCodeAt(W)}}for(;K<256;)W=Math.floor(65536*Math.random()),z[K++]=W>>>8,z[K++]=255&W;K=0,G()}function J(){if(null==q){for(G(),(q=new V).init(z),K=0;K<z.length;++K)z[K]=0;K=0}return q.next()}function Z(){}
81
+ /*! (c) Tom Wu | http://www-cs-students.stanford.edu/~tjw/jsbn/
82
+ */
83
+ function ee(e,t){return new w(e,t)}function te(){this.n=null,this.e=0,this.d=null,this.p=null,this.q=null,this.dmp1=null,this.dmq1=null,this.coeff=null}
84
+ /*! (c) Tom Wu | http://www-cs-students.stanford.edu/~tjw/jsbn/
85
+ */
86
+ function ne(e,t){this.x=t,this.q=e}function re(e,t,n,r){this.curve=e,this.x=t,this.y=n,this.z=null==r?w.ONE:r,this.zinv=null}function ie(e,t,n){this.q=e,this.a=this.fromBigInteger(t),this.b=this.fromBigInteger(n),this.infinity=new re(this,null,null)}Z.prototype.nextBytes=function(e){var t;for(t=0;t<e.length;++t)e[t]=J()},te.prototype.doPublic=function(e){return e.modPowInt(this.e,this.n)},te.prototype.setPublic=function(e,t){if(this.isPublic=!0,this.isPrivate=!1,"string"!=typeof e)this.n=e,this.e=t;else{if(!(null!=e&&null!=t&&e.length>0&&t.length>0))throw"Invalid RSA public key";this.n=ee(e,16),this.e=parseInt(t,16)}},te.prototype.type="RSA",te.prototype.doPrivate=function(e){if(null==this.p||null==this.q)return e.modPow(this.d,this.n);for(var t=e.mod(this.p).modPow(this.dmp1,this.p),n=e.mod(this.q).modPow(this.dmq1,this.q);t.compareTo(n)<0;)t=t.add(this.p);return t.subtract(n).multiply(this.coeff).mod(this.p).multiply(this.q).add(n)},te.prototype.setPrivate=function(e,t,n){if(this.isPrivate=!0,"string"!=typeof e)this.n=e,this.e=t,this.d=n;else{if(!(null!=e&&null!=t&&e.length>0&&t.length>0))throw"Invalid RSA private key";this.n=ee(e,16),this.e=parseInt(t,16),this.d=ee(n,16)}},te.prototype.setPrivateEx=function(e,t,n,r,i,o,a,s){if(this.isPrivate=!0,this.isPublic=!1,null==e)throw"RSASetPrivateEx N == null";if(null==t)throw"RSASetPrivateEx E == null";if(0==e.length)throw"RSASetPrivateEx N.length == 0";if(0==t.length)throw"RSASetPrivateEx E.length == 0";if(!(null!=e&&null!=t&&e.length>0&&t.length>0))throw"Invalid RSA private key in RSASetPrivateEx";this.n=ee(e,16),this.e=parseInt(t,16),this.d=ee(n,16),this.p=ee(r,16),this.q=ee(i,16),this.dmp1=ee(o,16),this.dmq1=ee(a,16),this.coeff=ee(s,16)},te.prototype.generate=function(e,t){var n=new Z,r=e>>1;this.e=parseInt(t,16);for(var i=new w(t,16),o=e/2-100,a=w.ONE.shiftLeft(o);;){for(;this.p=new w(e-r,1,n),0!=this.p.subtract(w.ONE).gcd(i).compareTo(w.ONE)||!this.p.isProbablePrime(10););for(;this.q=new w(r,1,n),0!=this.q.subtract(w.ONE).gcd(i).compareTo(w.ONE)||!this.q.isProbablePrime(10););if(this.p.compareTo(this.q)<=0){var s=this.p;this.p=this.q,this.q=s}var u=this.q.subtract(this.p).abs();if(!(u.bitLength()<o||u.compareTo(a)<=0)){var l=this.p.subtract(w.ONE),c=this.q.subtract(w.ONE),h=l.multiply(c);if(0==h.gcd(i).compareTo(w.ONE)&&(this.n=this.p.multiply(this.q),this.n.bitLength()==e)){this.d=i.modInverse(h),this.dmp1=this.d.mod(l),this.dmq1=this.d.mod(c),this.coeff=this.q.modInverse(this.p);break}}}this.isPrivate=!0},ne.prototype.equals=function(e){return e==this||this.q.equals(e.q)&&this.x.equals(e.x)},ne.prototype.toBigInteger=function(){return this.x},ne.prototype.negate=function(){return new ne(this.q,this.x.negate().mod(this.q))},ne.prototype.add=function(e){return new ne(this.q,this.x.add(e.toBigInteger()).mod(this.q))},ne.prototype.subtract=function(e){return new ne(this.q,this.x.subtract(e.toBigInteger()).mod(this.q))},ne.prototype.multiply=function(e){return new ne(this.q,this.x.multiply(e.toBigInteger()).mod(this.q))},ne.prototype.square=function(){return new ne(this.q,this.x.square().mod(this.q))},ne.prototype.divide=function(e){return new ne(this.q,this.x.multiply(e.toBigInteger().modInverse(this.q)).mod(this.q))},ne.prototype.sqrt=function(){return new ne(this.q,this.x.sqrt().mod(this.q))},re.prototype.getX=function(){return null==this.zinv&&(this.zinv=this.z.modInverse(this.curve.q)),this.curve.fromBigInteger(this.x.toBigInteger().multiply(this.zinv).mod(this.curve.q))},re.prototype.getY=function(){return null==this.zinv&&(this.zinv=this.z.modInverse(this.curve.q)),this.curve.fromBigInteger(this.y.toBigInteger().multiply(this.zinv).mod(this.curve.q))},re.prototype.equals=function(e){return e==this||(this.isInfinity()?e.isInfinity():e.isInfinity()?this.isInfinity():!!e.y.toBigInteger().multiply(this.z).subtract(this.y.toBigInteger().multiply(e.z)).mod(this.curve.q).equals(w.ZERO)&&e.x.toBigInteger().multiply(this.z).subtract(this.x.toBigInteger().multiply(e.z)).mod(this.curve.q).equals(w.ZERO))},re.prototype.isInfinity=function(){return null==this.x&&null==this.y||this.z.equals(w.ZERO)&&!this.y.toBigInteger().equals(w.ZERO)},re.prototype.negate=function(){return new re(this.curve,this.x,this.y.negate(),this.z)},re.prototype.add=function(e){if(this.isInfinity())return e;if(e.isInfinity())return this;var t=e.y.toBigInteger().multiply(this.z).subtract(this.y.toBigInteger().multiply(e.z)).mod(this.curve.q),n=e.x.toBigInteger().multiply(this.z).subtract(this.x.toBigInteger().multiply(e.z)).mod(this.curve.q);if(w.ZERO.equals(n))return w.ZERO.equals(t)?this.twice():this.curve.getInfinity();var r=new w("3"),i=this.x.toBigInteger(),o=this.y.toBigInteger(),a=(e.x.toBigInteger(),e.y.toBigInteger(),n.square()),s=a.multiply(n),u=i.multiply(a),l=t.square().multiply(this.z),c=l.subtract(u.shiftLeft(1)).multiply(e.z).subtract(s).multiply(n).mod(this.curve.q),h=u.multiply(r).multiply(t).subtract(o.multiply(s)).subtract(l.multiply(t)).multiply(e.z).add(t.multiply(s)).mod(this.curve.q),p=s.multiply(this.z).multiply(e.z).mod(this.curve.q);return new re(this.curve,this.curve.fromBigInteger(c),this.curve.fromBigInteger(h),p)},re.prototype.twice=function(){if(this.isInfinity())return this;if(0==this.y.toBigInteger().signum())return this.curve.getInfinity();var e=new w("3"),t=this.x.toBigInteger(),n=this.y.toBigInteger(),r=n.multiply(this.z),i=r.multiply(n).mod(this.curve.q),o=this.curve.a.toBigInteger(),a=t.square().multiply(e);w.ZERO.equals(o)||(a=a.add(this.z.square().multiply(o)));var s=(a=a.mod(this.curve.q)).square().subtract(t.shiftLeft(3).multiply(i)).shiftLeft(1).multiply(r).mod(this.curve.q),u=a.multiply(e).multiply(t).subtract(i.shiftLeft(1)).shiftLeft(2).multiply(i).subtract(a.square().multiply(a)).mod(this.curve.q),l=r.square().multiply(r).shiftLeft(3).mod(this.curve.q);return new re(this.curve,this.curve.fromBigInteger(s),this.curve.fromBigInteger(u),l)},re.prototype.multiply=function(e){if(this.isInfinity())return this;if(0==e.signum())return this.curve.getInfinity();var t,n=e,r=n.multiply(new w("3")),i=this.negate(),o=this,a=this.curve.q.subtract(e),s=a.multiply(new w("3")),u=new re(this.curve,this.x,this.y),l=u.negate();for(t=r.bitLength()-2;t>0;--t){o=o.twice();var c=r.testBit(t);c!=n.testBit(t)&&(o=o.add(c?this:i))}for(t=s.bitLength()-2;t>0;--t){u=u.twice();var h=s.testBit(t);h!=a.testBit(t)&&(u=u.add(h?u:l))}return o},re.prototype.multiplyTwo=function(e,t,n){var r;r=e.bitLength()>n.bitLength()?e.bitLength()-1:n.bitLength()-1;for(var i=this.curve.getInfinity(),o=this.add(t);r>=0;)i=i.twice(),e.testBit(r)?i=n.testBit(r)?i.add(o):i.add(this):n.testBit(r)&&(i=i.add(t)),--r;return i},ie.prototype.getQ=function(){return this.q},ie.prototype.getA=function(){return this.a},ie.prototype.getB=function(){return this.b},ie.prototype.equals=function(e){return e==this||this.q.equals(e.q)&&this.a.equals(e.a)&&this.b.equals(e.b)},ie.prototype.getInfinity=function(){return this.infinity},ie.prototype.fromBigInteger=function(e){return new ne(this.q,e)},ie.prototype.decodePointHex=function(e){switch(parseInt(e.substr(0,2),16)){case 0:return this.infinity;case 2:case 3:var t=e.substr(0,2),n=(e.substr(2),this.fromBigInteger(new w(s,16))),r=this.getA(),i=this.getB(),o=n.square().add(r).multiply(n).add(i).sqrt();return"03"==t&&(o=o.negate()),new re(this,n,o);case 4:case 6:case 7:var a=(e.length-2)/2,s=e.substr(2,a),u=e.substr(a+2,a);return new re(this,this.fromBigInteger(new w(s,16)),this.fromBigInteger(new w(u,16)));default:return null}},
87
+ /*! (c) Stefan Thomas | https://github.com/bitcoinjs/bitcoinjs-lib
88
+ */
89
+ ne.prototype.getByteLength=function(){return Math.floor((this.toBigInteger().bitLength()+7)/8)},re.prototype.getEncoded=function(e){var t=function(e,t){var n=e.toByteArrayUnsigned();if(t<n.length)n=n.slice(n.length-t);else for(;t>n.length;)n.unshift(0);return n},n=this.getX().toBigInteger(),r=this.getY().toBigInteger(),i=t(n,32);return e?r.isEven()?i.unshift(2):i.unshift(3):(i.unshift(4),i=i.concat(t(r,32))),i},re.decodeFrom=function(e,t){t[0];var n=t.length-1,r=t.slice(1,1+n/2),i=t.slice(1+n/2,1+n);r.unshift(0),i.unshift(0);var o=new w(r),a=new w(i);return new re(e,e.fromBigInteger(o),e.fromBigInteger(a))},re.decodeFromHex=function(e,t){t.substr(0,2);var n=t.length-2,r=t.substr(2,n/2),i=t.substr(2+n/2,n/2),o=new w(r,16),a=new w(i,16);return new re(e,e.fromBigInteger(o),e.fromBigInteger(a))},re.prototype.add2D=function(e){if(this.isInfinity())return e;if(e.isInfinity())return this;if(this.x.equals(e.x))return this.y.equals(e.y)?this.twice():this.curve.getInfinity();var t=e.x.subtract(this.x),n=e.y.subtract(this.y).divide(t),r=n.square().subtract(this.x).subtract(e.x),i=n.multiply(this.x.subtract(r)).subtract(this.y);return new re(this.curve,r,i)},re.prototype.twice2D=function(){if(this.isInfinity())return this;if(0==this.y.toBigInteger().signum())return this.curve.getInfinity();var e=this.curve.fromBigInteger(w.valueOf(2)),t=this.curve.fromBigInteger(w.valueOf(3)),n=this.x.square().multiply(t).add(this.curve.a).divide(this.y.multiply(e)),r=n.square().subtract(this.x.multiply(e)),i=n.multiply(this.x.subtract(r)).subtract(this.y);return new re(this.curve,r,i)},re.prototype.multiply2D=function(e){if(this.isInfinity())return this;if(0==e.signum())return this.curve.getInfinity();var t,n=e,r=n.multiply(new w("3")),i=this.negate(),o=this;for(t=r.bitLength()-2;t>0;--t){o=o.twice();var a=r.testBit(t);a!=n.testBit(t)&&(o=o.add2D(a?this:i))}return o},re.prototype.isOnCurve=function(){var e=this.getX().toBigInteger(),t=this.getY().toBigInteger(),n=this.curve.getA().toBigInteger(),r=this.curve.getB().toBigInteger(),i=this.curve.getQ(),o=t.multiply(t).mod(i),a=e.multiply(e).multiply(e).add(n.multiply(e)).add(r).mod(i);return o.equals(a)},re.prototype.toString=function(){return"("+this.getX().toBigInteger().toString()+","+this.getY().toBigInteger().toString()+")"},re.prototype.validate=function(){var e=this.curve.getQ();if(this.isInfinity())throw new Error("Point is at infinity.");var t=this.getX().toBigInteger(),n=this.getY().toBigInteger();if(t.compareTo(w.ONE)<0||t.compareTo(e.subtract(w.ONE))>0)throw new Error("x coordinate out of bounds");if(n.compareTo(w.ONE)<0||n.compareTo(e.subtract(w.ONE))>0)throw new Error("y coordinate out of bounds");if(!this.isOnCurve())throw new Error("Point is not on the curve.");if(this.multiply(e).isInfinity())throw new Error("Point is not a scalar multiple of G.");return!0};
90
+ /*! Mike Samuel (c) 2009 | code.google.com/p/json-sans-eval
91
+ */
92
+ var oe=function(){var e=new RegExp('(?:false|true|null|[\\{\\}\\[\\]]|(?:-?\\b(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?(?:[eE][+-]?[0-9]+)?\\b)|(?:"(?:[^\\0-\\x08\\x0a-\\x1f"\\\\]|\\\\(?:["/\\\\bfnrt]|u[0-9A-Fa-f]{4}))*"))',"g"),t=new RegExp("\\\\(?:([^u])|u(.{4}))","g"),n={'"':'"',"/":"/","\\":"\\",b:"\b",f:"\f",n:"\n",r:"\r",t:"\t"};function r(e,t,r){return t?n[t]:String.fromCharCode(parseInt(r,16))}var i=new String(""),o=Object.hasOwnProperty;return function(n,a){var s,u,l=n.match(e),c=l[0],h=!1;"{"===c?s={}:"["===c?s=[]:(s=[],h=!0);for(var p=[s],f=1-h,d=l.length;f<d;++f){var g;switch((c=l[f]).charCodeAt(0)){default:(g=p[0])[u||g.length]=+c,u=void 0;break;case 34:if(-1!==(c=c.substring(1,c.length-1)).indexOf("\\")&&(c=c.replace(t,r)),g=p[0],!u){if(!(g instanceof Array)){u=c||i;break}u=g.length}g[u]=c,u=void 0;break;case 91:g=p[0],p.unshift(g[u||g.length]=[]),u=void 0;break;case 93:p.shift();break;case 102:(g=p[0])[u||g.length]=!1,u=void 0;break;case 110:(g=p[0])[u||g.length]=null,u=void 0;break;case 116:(g=p[0])[u||g.length]=!0,u=void 0;break;case 123:g=p[0],p.unshift(g[u||g.length]={}),u=void 0;break;case 125:p.shift()}}if(h){if(1!==p.length)throw new Error;s=s[0]}else if(p.length)throw new Error;if(a){var m=function(e,t){var n=e[t];if(n&&"object"==typeof n){var r=null;for(var i in n)if(o.call(n,i)&&n!==e){var s=m(n,i);void 0!==s?n[i]=s:(r||(r=[]),r.push(i))}if(r)for(var u=r.length;--u>=0;)delete n[r[u]]}return a.call(e,t,n)};s=m({"":s},"")}return s}}();void 0!==ae&&ae||(ae={}),void 0!==ae.asn1&&ae.asn1||(ae.asn1={}),ae.asn1.ASN1Util=new function(){this.integerToByteHex=function(e){var t=e.toString(16);return t.length%2==1&&(t="0"+t),t},this.bigIntToMinTwosComplementsHex=function(e){return Ge(e)},this.getPEMStringFromHex=function(e,t){return Ce(e,t)},this.newObject=function(e){var t=ae.asn1,n=t.ASN1Object,r=t.DERBoolean,i=t.DERInteger,o=t.DERBitString,a=t.DEROctetString,s=t.DERNull,u=t.DERObjectIdentifier,l=t.DEREnumerated,c=t.DERUTF8String,h=t.DERNumericString,p=t.DERPrintableString,f=t.DERTeletexString,d=t.DERIA5String,g=t.DERUTCTime,m=t.DERGeneralizedTime,v=t.DERVisibleString,y=t.DERBMPString,b=t.DERSequence,$=t.DERSet,w=t.DERTaggedObject,x=t.ASN1Util.newObject;if(e instanceof t.ASN1Object)return e;var S=Object.keys(e);if(1!=S.length)throw new Error("key of param shall be only one.");var E=S[0];if(-1==":asn1:bool:int:bitstr:octstr:null:oid:enum:utf8str:numstr:prnstr:telstr:ia5str:utctime:gentime:visstr:bmpstr:seq:set:tag:".indexOf(":"+E+":"))throw new Error("undefined key: "+E);if("bool"==E)return new r(e[E]);if("int"==E)return new i(e[E]);if("bitstr"==E)return new o(e[E]);if("octstr"==E)return new a(e[E]);if("null"==E)return new s(e[E]);if("oid"==E)return new u(e[E]);if("enum"==E)return new l(e[E]);if("utf8str"==E)return new c(e[E]);if("numstr"==E)return new h(e[E]);if("prnstr"==E)return new p(e[E]);if("telstr"==E)return new f(e[E]);if("ia5str"==E)return new d(e[E]);if("utctime"==E)return new g(e[E]);if("gentime"==E)return new m(e[E]);if("visstr"==E)return new v(e[E]);if("bmpstr"==E)return new y(e[E]);if("asn1"==E)return new n(e[E]);if("seq"==E){for(var A=e[E],C=[],T=0;T<A.length;T++){var F=x(A[T]);C.push(F)}return new b({array:C})}if("set"==E){for(A=e[E],C=[],T=0;T<A.length;T++){F=x(A[T]);C.push(F)}return new $({array:C})}if("tag"==E){var k=e[E];if("[object Array]"===Object.prototype.toString.call(k)&&3==k.length){var R=x(k[2]);return new w({tag:k[0],explicit:k[1],obj:R})}return new w(k)}},this.jsonToASN1HEX=function(e){return this.newObject(e).tohex()}},ae.asn1.ASN1Util.oidHexToInt=function(e){for(var t="",n=parseInt(e.substr(0,2),16),r=(t=Math.floor(n/40)+"."+n%40,""),i=2;i<e.length;i+=2){var o=("00000000"+parseInt(e.substr(i,2),16).toString(2)).slice(-8);if(r+=o.substr(1,7),"0"==o.substr(0,1))t=t+"."+new w(r,2).toString(10),r=""}return t},ae.asn1.ASN1Util.oidIntToHex=function(e){var t=function(e){var t=e.toString(16);return 1==t.length&&(t="0"+t),t},n=function(e){var n="",r=new w(e,10).toString(2),i=7-r.length%7;7==i&&(i=0);for(var o="",a=0;a<i;a++)o+="0";r=o+r;for(a=0;a<r.length-1;a+=7){var s=r.substr(a,7);a!=r.length-7&&(s="1"+s),n+=t(parseInt(s,2))}return n};if(!e.match(/^[0-9.]+$/))throw"malformed oid string: "+e;var r="",i=e.split("."),o=40*parseInt(i[0])+parseInt(i[1]);r+=t(o),i.splice(0,2);for(var a=0;a<i.length;a++)r+=n(i[a]);return r},ae.asn1.ASN1Object=function(e){this.params=null,this.getLengthHexFromValue=function(){if(void 0===this.hV||null==this.hV)throw new Error("this.hV is null or undefined");if(this.hV.length%2==1)throw new Error("value hex must be even length: n="+"".length+",v="+this.hV);var e=this.hV.length/2,t=e.toString(16);if(t.length%2==1&&(t="0"+t),e<128)return t;var n=t.length/2;if(n>15)throw new Error("ASN.1 length too long to represent by 8x: n = "+e.toString(16));return(128+n).toString(16)+t},this.tohex=function(){return(null==this.hTLV||this.isModified)&&(this.hV=this.getFreshValueHex(),this.hL=this.getLengthHexFromValue(),this.hTLV=this.hT+this.hL+this.hV,this.isModified=!1),this.hTLV},this.getEncodedHex=function(){return this.tohex()},this.getValueHex=function(){return this.tohex(),this.hV},this.getFreshValueHex=function(){return""},this.setByParam=function(e){this.params=e},null!=e&&null!=e.tlv&&(this.hTLV=e.tlv,this.isModified=!1)},ae.asn1.DERAbstractString=function(e){ae.asn1.DERAbstractString.superclass.constructor.call(this);this.getString=function(){return this.s},this.setString=function(e){this.hTLV=null,this.isModified=!0,this.s=e,this.hV=ye(this.s).toLowerCase()},this.setStringHex=function(e){this.hTLV=null,this.isModified=!0,this.s=null,this.hV=e},this.getFreshValueHex=function(){return this.hV},void 0!==e&&("string"==typeof e?this.setString(e):void 0!==e.str?this.setString(e.str):void 0!==e.hex&&this.setStringHex(e.hex))},et(ae.asn1.DERAbstractString,ae.asn1.ASN1Object),ae.asn1.DERAbstractTime=function(e){ae.asn1.DERAbstractTime.superclass.constructor.call(this);this.localDateToUTC=function(e){var t=e.getTime()+6e4*e.getTimezoneOffset();return new Date(t)},this.formatDate=function(e,t,n){var r=this.zeroPadding,i=this.localDateToUTC(e),o=String(i.getFullYear());"utc"==t&&(o=o.substr(2,2));var a=o+r(String(i.getMonth()+1),2)+r(String(i.getDate()),2)+r(String(i.getHours()),2)+r(String(i.getMinutes()),2)+r(String(i.getSeconds()),2);if(!0===n){var s=i.getMilliseconds();if(0!=s){var u=r(String(s),3);a=a+"."+(u=u.replace(/[0]+$/,""))}}return a+"Z"},this.zeroPadding=function(e,t){return e.length>=t?e:new Array(t-e.length+1).join("0")+e},this.setByParam=function(e){this.hV=null,this.hTLV=null,this.params=e},this.getString=function(){},this.setString=function(e){this.hTLV=null,this.isModified=!0,null==this.params&&(this.params={}),this.params.str=e},this.setByDate=function(e){this.hTLV=null,this.isModified=!0,null==this.params&&(this.params={}),this.params.date=e},this.setByDateValue=function(e,t,n,r,i,o){var a=new Date(Date.UTC(e,t-1,n,r,i,o,0));this.setByDate(a)},this.getFreshValueHex=function(){return this.hV}},et(ae.asn1.DERAbstractTime,ae.asn1.ASN1Object),ae.asn1.DERAbstractStructured=function(e){ae.asn1.DERAbstractString.superclass.constructor.call(this);this.setByASN1ObjectArray=function(e){this.hTLV=null,this.isModified=!0,this.asn1Array=e},this.appendASN1Object=function(e){this.hTLV=null,this.isModified=!0,this.asn1Array.push(e)},this.asn1Array=new Array,void 0!==e&&void 0!==e.array&&(this.asn1Array=e.array)},et(ae.asn1.DERAbstractStructured,ae.asn1.ASN1Object),ae.asn1.DERBoolean=function(e){ae.asn1.DERBoolean.superclass.constructor.call(this),this.hT="01",this.hTLV=0==e?"010100":"0101ff"},et(ae.asn1.DERBoolean,ae.asn1.ASN1Object),ae.asn1.DERInteger=function(e){ae.asn1.DERInteger.superclass.constructor.call(this),this.hT="02",this.params=null;var t=Ge;this.setByBigInteger=function(e){this.isModified=!0,this.params={bigint:e}},this.setByInteger=function(e){this.isModified=!0,this.params=e},this.setValueHex=function(e){this.isModified=!0,this.params={hex:e}},this.getFreshValueHex=function(){var e=this.params,n=null;if(null==e)throw new Error("value not set");if("object"==typeof e&&null!=e.hex)return this.hV=e.hex,this.hV;if("number"==typeof e)n=new w(String(e),10);else if(null!=e.int)n=new w(String(e.int),10);else{if(null==e.bigint)throw new Error("wrong parameter");n=e.bigint}return this.hV=t(n),this.hV},null!=e&&(this.params=e)},et(ae.asn1.DERInteger,ae.asn1.ASN1Object),ae.asn1.DERBitString=function(e){if(void 0!==e&&void 0!==e.obj){var t=ae.asn1.ASN1Util.newObject(e.obj);e.hex="00"+t.tohex()}ae.asn1.DERBitString.superclass.constructor.call(this),this.hT="03",this.setHexValueIncludingUnusedBits=function(e){this.hTLV=null,this.isModified=!0,this.hV=e},this.setUnusedBitsAndHexValue=function(e,t){if(e<0||7<e)throw"unused bits shall be from 0 to 7: u = "+e;var n="0"+e;this.hTLV=null,this.isModified=!0,this.hV=n+t},this.setByBinaryString=function(e){var t=8-(e=e.replace(/0+$/,"")).length%8;8==t&&(t=0),e+="0000000".substr(0,t);for(var n="",r=0;r<e.length-1;r+=8){var i=e.substr(r,8),o=parseInt(i,2).toString(16);1==o.length&&(o="0"+o),n+=o}this.hTLV=null,this.isModified=!0,this.hV="0"+t+n},this.setByBooleanArray=function(e){for(var t="",n=0;n<e.length;n++)1==e[n]?t+="1":t+="0";this.setByBinaryString(t)},this.newFalseArray=function(e){for(var t=new Array(e),n=0;n<e;n++)t[n]=!1;return t},this.getFreshValueHex=function(){return this.hV},void 0!==e&&("string"==typeof e&&e.toLowerCase().match(/^[0-9a-f]+$/)?this.setHexValueIncludingUnusedBits(e):void 0!==e.hex?this.setHexValueIncludingUnusedBits(e.hex):void 0!==e.bin?this.setByBinaryString(e.bin):void 0!==e.array&&this.setByBooleanArray(e.array))},et(ae.asn1.DERBitString,ae.asn1.ASN1Object),ae.asn1.DEROctetString=function(e){if(void 0!==e&&void 0!==e.obj){var t=ae.asn1.ASN1Util.newObject(e.obj);e.hex=t.tohex()}ae.asn1.DEROctetString.superclass.constructor.call(this,e),this.hT="04"},et(ae.asn1.DEROctetString,ae.asn1.DERAbstractString),ae.asn1.DERNull=function(){ae.asn1.DERNull.superclass.constructor.call(this),this.hT="05",this.hTLV="0500"},et(ae.asn1.DERNull,ae.asn1.ASN1Object),ae.asn1.DERObjectIdentifier=function(e){ae.asn1.DERObjectIdentifier.superclass.constructor.call(this),this.hT="06",this.setValueHex=function(e){this.hTLV=null,this.isModified=!0,this.s=null,this.hV=e},this.setValueOidString=function(e){var t=qe(e);if(null==t)throw new Error("malformed oid string: "+e);this.hTLV=null,this.isModified=!0,this.s=null,this.hV=t},this.setValueName=function(e){var t=ae.asn1.x509.OID.name2oid(e);if(""===t)throw new Error("DERObjectIdentifier oidName undefined: "+e);this.setValueOidString(t)},this.setValueNameOrOid=function(e){e.match(/^[0-2].[0-9.]+$/)?this.setValueOidString(e):this.setValueName(e)},this.getFreshValueHex=function(){return this.hV},this.setByParam=function(e){"string"==typeof e?this.setValueNameOrOid(e):void 0!==e.oid?this.setValueNameOrOid(e.oid):void 0!==e.name?this.setValueNameOrOid(e.name):void 0!==e.hex&&this.setValueHex(e.hex)},void 0!==e&&this.setByParam(e)},et(ae.asn1.DERObjectIdentifier,ae.asn1.ASN1Object),ae.asn1.DEREnumerated=function(e){ae.asn1.DEREnumerated.superclass.constructor.call(this),this.hT="0a",this.setByBigInteger=function(e){this.hTLV=null,this.isModified=!0,this.hV=Ge(e)},this.setByInteger=function(e){var t=new w(String(e),10);this.setByBigInteger(t)},this.setValueHex=function(e){this.hV=e},this.getFreshValueHex=function(){return this.hV},void 0!==e&&(void 0!==e.int?this.setByInteger(e.int):"number"==typeof e?this.setByInteger(e):void 0!==e.hex&&this.setValueHex(e.hex))},et(ae.asn1.DEREnumerated,ae.asn1.ASN1Object),ae.asn1.DERUTF8String=function(e){ae.asn1.DERUTF8String.superclass.constructor.call(this,e),this.hT="0c"},et(ae.asn1.DERUTF8String,ae.asn1.DERAbstractString),ae.asn1.DERNumericString=function(e){ae.asn1.DERNumericString.superclass.constructor.call(this,e),this.hT="12"},et(ae.asn1.DERNumericString,ae.asn1.DERAbstractString),ae.asn1.DERPrintableString=function(e){ae.asn1.DERPrintableString.superclass.constructor.call(this,e),this.hT="13"},et(ae.asn1.DERPrintableString,ae.asn1.DERAbstractString),ae.asn1.DERTeletexString=function(e){ae.asn1.DERTeletexString.superclass.constructor.call(this,e),this.hT="14"},et(ae.asn1.DERTeletexString,ae.asn1.DERAbstractString),ae.asn1.DERIA5String=function(e){ae.asn1.DERIA5String.superclass.constructor.call(this,e),this.hT="16"},et(ae.asn1.DERIA5String,ae.asn1.DERAbstractString),ae.asn1.DERVisibleString=function(e){ae.asn1.DERIA5String.superclass.constructor.call(this,e),this.hT="1a"},et(ae.asn1.DERVisibleString,ae.asn1.DERAbstractString),ae.asn1.DERBMPString=function(e){ae.asn1.DERBMPString.superclass.constructor.call(this,e),this.hT="1e"},et(ae.asn1.DERBMPString,ae.asn1.DERAbstractString),ae.asn1.DERUTCTime=function(e){ae.asn1.DERUTCTime.superclass.constructor.call(this,e),this.hT="17",this.params=void 0,this.getFreshValueHex=function(){var e=this.params;if(null==this.params&&(e={date:new Date}),"string"==typeof e){if(!e.match(/^[0-9]{12}Z$/)&&!e.match(/^[0-9]{12}\.[0-9]+Z$/))throw new Error("malformed string for UTCTime: "+e);this.hV=fe(e)}else if(null!=e.str)this.hV=fe(e.str);else if(null==e.date&&1==e.millis){var t=new Date;this.hV=fe(this.formatDate(t,"utc",!0))}else if(null!=e.date&&e.date instanceof Date){var n=!0===e.millis;this.hV=fe(this.formatDate(e.date,"utc",n))}else e instanceof Date&&(this.hV=fe(this.formatDate(e,"utc")));if(null==this.hV)throw new Error("parameter not specified properly for UTCTime");return this.hV},null!=e&&this.setByParam(e)},et(ae.asn1.DERUTCTime,ae.asn1.DERAbstractTime),ae.asn1.DERGeneralizedTime=function(e){ae.asn1.DERGeneralizedTime.superclass.constructor.call(this,e),this.hT="18",this.params=e,this.getFreshValueHex=function(){var e=this.params;if(null==this.params&&(e={date:new Date}),"string"==typeof e){if(!e.match(/^[0-9]{14}Z$/)&&!e.match(/^[0-9]{14}\.[0-9]+Z$/))throw new Error("malformed string for GeneralizedTime: "+e);this.hV=fe(e)}else if(null!=e.str)this.hV=fe(e.str);else if(null==e.date&&1==e.millis){var t=new Date;this.hV=fe(this.formatDate(t,"gen",!0))}else if(null!=e.date&&e.date instanceof Date){var n=!0===e.millis;this.hV=fe(this.formatDate(e.date,"gen",n))}else e instanceof Date&&(this.hV=fe(this.formatDate(e,"gen")));if(null==this.hV)throw new Error("parameter not specified properly for GeneralizedTime");return this.hV},null!=e&&this.setByParam(e)},et(ae.asn1.DERGeneralizedTime,ae.asn1.DERAbstractTime),ae.asn1.DERSequence=function(e){ae.asn1.DERSequence.superclass.constructor.call(this,e),this.hT="30",this.getFreshValueHex=function(){for(var e="",t=0;t<this.asn1Array.length;t++){e+=this.asn1Array[t].tohex()}return this.hV=e,this.hV}},et(ae.asn1.DERSequence,ae.asn1.DERAbstractStructured),ae.asn1.DERSet=function(e){ae.asn1.DERSet.superclass.constructor.call(this,e),this.hT="31",this.sortFlag=!0,this.getFreshValueHex=function(){for(var e=new Array,t=0;t<this.asn1Array.length;t++){var n=this.asn1Array[t];e.push(n.tohex())}return 1==this.sortFlag&&e.sort(),this.hV=e.join(""),this.hV},void 0!==e&&void 0!==e.sortflag&&0==e.sortflag&&(this.sortFlag=!1)},et(ae.asn1.DERSet,ae.asn1.DERAbstractStructured),ae.asn1.DERTaggedObject=function(e){ae.asn1.DERTaggedObject.superclass.constructor.call(this);var t=ae.asn1,n=le,r=n.getV,i=(n.isASN1HEX,t.ASN1Util.newObject);this.hT="a0",this.hV="",this.isExplicit=!0,this.asn1Object=null,this.params={tag:"a0",explicit:!0},this.setASN1Object=function(e,t,n){this.params={tag:t,explicit:e,obj:n}},this.getFreshValueHex=function(){var e=this.params;if(null==e.explicit&&(e.explicit=!0),null!=e.tage&&(e.tag=e.tage,e.explicit=!0),null!=e.tagi&&(e.tag=e.tagi,e.explicit=!1),null!=e.str)this.hV=ye(e.str);else if(null!=e.hex)this.hV=e.hex;else{if(null==e.obj)throw new Error("str, hex nor obj not specified");var n;e.obj instanceof t.ASN1Object?n=e.obj.tohex():"object"==typeof e.obj&&(n=i(e.obj).tohex()),e.explicit?this.hV=n:this.hV=r(n,0)}return null==e.tag&&(e.tag="a0"),this.hT=e.tag,this.hTLV=null,this.isModified=!0,this.hV},this.setByParam=function(e){this.params=e},void 0!==e&&this.setByParam(e)},et(ae.asn1.DERTaggedObject,ae.asn1.ASN1Object);var ae,se,ue,le=new function(){};function ce(e){for(var t=new Array,n=0;n<e.length;n++)t[n]=e.charCodeAt(n);return t}function he(e){for(var t="",n=0;n<e.length;n++)t+=String.fromCharCode(e[n]);return t}function pe(e){for(var t="",n=0;n<e.length;n++){var r=e[n].toString(16);1==r.length&&(r="0"+r),t+=r}return t}function fe(e){return pe(ce(e))}function de(e){return e=(e=(e=e.replace(/\=/g,"")).replace(/\+/g,"-")).replace(/\//g,"_")}function ge(e){return e.length%4==2?e+="==":e.length%4==3&&(e+="="),e=(e=e.replace(/-/g,"+")).replace(/_/g,"/")}function me(e){return e.length%2==1&&(e="0"+e),de(y(e))}function ve(e){return b(ge(e))}function ye(e){return Pe(Be(e)).toLowerCase()}function be(e){try{return decodeURIComponent(De(e))}catch(e){return null}}function $e(e){return be(function(e){for(var t=e.match(/.{1,2}/g),n=[],r=0;r<t.length;r++){var i=parseInt(t[r],16);161<=i&&i<=191?(n.push("c2"),n.push(t[r])):192<=i&&i<=255?(n.push("c3"),n.push((i-64).toString(16))):n.push(t[r])}return n.join("")}(e))}function we(e){for(var t="",n=0;n<e.length-1;n+=2)t+=String.fromCharCode(parseInt(e.substr(n,2),16));return t}function xe(e){for(var t="",n=0;n<e.length;n++)t+=("0"+e.charCodeAt(n).toString(16)).slice(-2);return t}function Se(e){return y(e)}function Ee(e,t){return e=(e=e.replace(new RegExp("(.{"+t+"})","g"),"$1\r\n")).replace(/\s+$/,"")}function Ae(e){return b(e.replace(/[^0-9A-Za-z\/+=]*/g,""))}function Ce(e,t){return"-----BEGIN "+t+"-----\r\n"+Ee(Se(e),64)+"\r\n-----END "+t+"-----\r\n"}function Te(e,t){if(-1==e.indexOf("-----BEGIN "))throw new Error("can't find PEM header");return Ae(e=void 0!==t?(e=e.replace(new RegExp("^[^]*-----BEGIN "+t+"-----"),"")).replace(new RegExp("-----END "+t+"-----[^]*$"),""):(e=e.replace(/^[^]*-----BEGIN [^-]+-----/,"")).replace(/-----END [^-]+-----[^]*$/,""))}function Fe(e){var t,n,r,i,o,a,s,u,l,c;if(c=(e=Re(e)).match(/^(\d{4})(\d\d)(\d\d)(\d\d)(\d\d)(\d\d)(|\.\d+)Z$/))return t=parseInt(c[1]),n=parseInt(c[2])-1,r=parseInt(c[3]),i=parseInt(c[4]),o=parseInt(c[5]),a=parseInt(c[6]),s=0,""!==(u=c[7])&&(l=(u.substr(1)+"00").substr(0,3),s=parseInt(l)),Date.UTC(t,n,r,i,o,a,s);throw new Error("unsupported zulu format: "+e)}function ke(e){return Math.round(Fe(e)/1e3)}function Re(e){return e.match(/^[0-9]{12}Z$/)||e.match(/^[0-9]{12}[.][0-9]*Z$/)?e.match(/^[0-4]/)?"20"+e:"19"+e:e}function Pe(e){return e.replace(/%/g,"")}function De(e){return e.replace(/(..)/g,"%$1")}function Oe(e){var t="malformed IPv6 address";if(!e.match(/^[0-9A-Fa-f:]+$/))throw t;var n=(e=e.toLowerCase()).split(":").length-1;if(n<2)throw t;var r=":".repeat(7-n+2),i=(e=e.replace("::",r)).split(":");if(8!=i.length)throw t;for(var o=0;o<8;o++)i[o]=("0000"+i[o]).slice(-4);return i.join("")}function Ie(e){if(!e.match(/^[0-9A-Fa-f]{32}$/))throw new Error("malformed IPv6 address: "+e);var t=(e=e.toLowerCase()).match(/.{1,4}/g),n=(e=":"+(t=(t=t.map((function(e){return e.replace(/^0+/,"")}))).map((function(e){return""==e?"0":e}))).join(":")+":").match(/:(0:){2,}/g);if(null==n)return e.slice(1,-1);var r=n.sort().slice(-1)[0];return"::"!=(e=e.replace(r.substr(0,r.length-1),":")).substr(0,2)&&(e=e.substr(1)),"::"!=e.substr(-2,2)&&(e=e.substr(0,e.length-1)),e}function _e(e){var t=new Error("malformed hex value");if(!e.match(/^([0-9A-Fa-f][0-9A-Fa-f]){1,}$/))throw t;if(8==e.length){try{return parseInt(e.substr(0,2),16)+"."+parseInt(e.substr(2,2),16)+"."+parseInt(e.substr(4,2),16)+"."+parseInt(e.substr(6,2),16)}catch(e){throw t}}else{if(16!=e.length){if(32==e.length)return Ie(e);if(64==e.length){try{return Ie(e.substr(0,32))+"/"+je(e.substr(32))}catch(e){throw t}return}return e}try{return _e(e.substr(0,8))+"/"+je(e.substr(8))}catch(e){throw t}}}function je(e){var t,n=new Error("malformed mask");try{t=new w(e,16).toString(2)}catch(e){throw n}if(!t.match(/^1*0*$/))throw n;return t.replace(/0+$/,"").length}function Le(e){var t=new Error("malformed IP address");if(!(e=e.toLowerCase(e)).match(/^[0-9a-f.:/]+$/))throw t;if(!e.match(/^[0-9.]+$/)){var n;if(e.match(/^[0-9.]+\/[0-9]+$/))return Le((n=e.split("/"))[0])+Ne(parseInt(n[1]),32);if(e.match(/^[0-9a-f:]+$/)&&-1!==e.indexOf(":"))return Oe(e);if(e.match(/^[0-9a-f:]+\/[0-9]+$/)&&-1!==e.indexOf(":"))return Oe((n=e.split("/"))[0])+Ne(parseInt(n[1]),128);throw t}var r=e.split(".");if(4!==r.length)throw t;var i="";try{for(var o=0;o<4;o++){i+=("0"+parseInt(r[o]).toString(16)).slice(-2)}return i}catch(e){throw t}}function Ne(e,t){return 32==t&&0==e?"00000000":128==t&&0==e?"00000000000000000000000000000000":new w(Array(e+1).join("1")+Array(t-e+1).join("0"),2).toString(16)}function Me(e){return e.match(/.{4}/g).map((function(e){var t=parseInt(e.substr(0,2),16),n=parseInt(e.substr(2),16);if(0==t&n<128)return String.fromCharCode(n);if(t<8){var r=128|63&n;return be((192|(7&t)<<3|(192&n)>>6).toString(16)+r.toString(16))}r=128|(15&t)<<2|(192&n)>>6;var i=128|63&n;return be((224|(240&t)>>4).toString(16)+r.toString(16)+i.toString(16))})).join("")}function Be(e){for(var t=encodeURIComponent(e),n="",r=0;r<t.length;r++)"%"==t[r]?(n+=t.substr(r,3),r+=2):n=n+"%"+fe(t[r]);return n}function Ue(e){return!(e.length%2!=0||!e.match(/^[0-9a-f]+$/)&&!e.match(/^[0-9A-F]+$/))}function He(e){return!!e.match(/^[0-9A-Za-z-_.]+$/)}function Ve(e){return e.length%2==1?"0"+e:e.substr(0,1)>"7"?"00"+e:e}le.getLblen=function(e,t){if("8"!=e.substr(t+2,1))return 1;var n=parseInt(e.substr(t+3,1));return 0==n?-1:0<n&&n<10?n+1:-2},le.getL=function(e,t){var n=le.getLblen(e,t);return n<1?"":e.substr(t+2,2*n)},le.getVblen=function(e,t){var n;return""==(n=le.getL(e,t))?-1:("8"===n.substr(0,1)?new w(n.substr(2),16):new w(n,16)).intValue()},le.getVidx=function(e,t){var n=le.getLblen(e,t);return n<0?n:t+2*(n+1)},le.getV=function(e,t){var n=le.getVidx(e,t),r=le.getVblen(e,t);return e.substr(n,2*r)},le.getTLV=function(e,t){return e.substr(t,2)+le.getL(e,t)+le.getV(e,t)},le.getTLVblen=function(e,t){return 2+2*le.getLblen(e,t)+2*le.getVblen(e,t)},le.getNextSiblingIdx=function(e,t){return le.getVidx(e,t)+2*le.getVblen(e,t)},le.getChildIdx=function(e,t){var n,r,i,o=le,a=[];n=o.getVidx(e,t),r=2*o.getVblen(e,t),"03"==e.substr(t,2)&&(n+=2,r-=2),i=0;for(var s=n;i<=r;){var u=o.getTLVblen(e,s);if((i+=u)<=r&&a.push(s),s+=u,i>=r)break}return a},le.getNthChildIdx=function(e,t,n){return le.getChildIdx(e,t)[n]},le.getIdxbyList=function(e,t,n,r){var i,o,a=le;return 0==n.length?void 0!==r&&e.substr(t,2)!==r?-1:t:(i=n.shift())>=(o=a.getChildIdx(e,t)).length?-1:a.getIdxbyList(e,o[i],n,r)},le.getIdxbyListEx=function(e,t,n,r){var i,o,a=le;if(0==n.length)return void 0!==r&&e.substr(t,2)!==r?-1:t;i=n.shift(),o=a.getChildIdx(e,t);for(var s=0,u=0;u<o.length;u++){var l=e.substr(o[u],2);if("number"==typeof i&&!a.isContextTag(l)&&s==i||"string"==typeof i&&a.isContextTag(l,i))return a.getIdxbyListEx(e,o[u],n,r);a.isContextTag(l)||s++}return-1},le.getTLVbyList=function(e,t,n,r){var i=le,o=i.getIdxbyList(e,t,n,r);return-1==o||o>=e.length?null:i.getTLV(e,o)},le.getTLVbyListEx=function(e,t,n,r){var i=le,o=i.getIdxbyListEx(e,t,n,r);return-1==o?null:i.getTLV(e,o)},le.getVbyList=function(e,t,n,r,i){var o,a,s=le;return-1==(o=s.getIdxbyList(e,t,n,r))||o>=e.length?null:(a=s.getV(e,o),!0===i&&(a=a.substr(2)),a)},le.getVbyListEx=function(e,t,n,r,i){var o,a,s=le;return-1==(o=s.getIdxbyListEx(e,t,n,r))?null:(a=s.getV(e,o),"03"==e.substr(o,2)&&!1!==i&&(a=a.substr(2)),a)},le.getInt=function(e,t,n){null==n&&(n=-1);try{var r=e.substr(t,2);if("02"!=r&&"03"!=r)return n;var i=le.getV(e,t);return"02"==r?parseInt(i,16):Ye(i)}catch(e){return n}},le.getOID=function(e,t,n){null==n&&(n=null);try{return"06"!=e.substr(t,2)?n:ze(le.getV(e,t))}catch(e){return n}},le.getOIDName=function(e,t,n){null==n&&(n=null);try{var r=le.getOID(e,t,n);if(r==n)return n;var i=ae.asn1.x509.OID.oid2name(r);return""==i?r:i}catch(e){return n}},le.getString=function(e,t,n){null==n&&(n=null);try{return we(le.getV(e,t))}catch(e){return n}},le.hextooidstr=function(e){var t=function(e,t){return e.length>=t?e:new Array(t-e.length+1).join("0")+e},n=[],r=e.substr(0,2),i=parseInt(r,16);n[0]=new String(Math.floor(i/40)),n[1]=new String(i%40);for(var o=e.substr(2),a=[],s=0;s<o.length/2;s++)a.push(parseInt(o.substr(2*s,2),16));var u=[],l="";for(s=0;s<a.length;s++)128&a[s]?l+=t((127&a[s]).toString(2),7):(l+=t((127&a[s]).toString(2),7),u.push(new String(parseInt(l,2))),l="");var c=n.join(".");return u.length>0&&(c=c+"."+u.join(".")),c},le.dump=function(e,t,n,r){var i=le,o=i.getV,a=i.dump,s=i.getChildIdx,u=e;e instanceof ae.asn1.ASN1Object&&(u=e.tohex());var l=function(e,t){return e.length<=2*t?e:e.substr(0,t)+"..(total "+e.length/2+"bytes).."+e.substr(e.length-t,t)};void 0===t&&(t={ommit_long_octet:32}),void 0===n&&(n=0),void 0===r&&(r="");var c,h=t.ommit_long_octet;if("01"==(c=u.substr(n,2)))return"00"==(p=o(u,n))?r+"BOOLEAN FALSE\n":r+"BOOLEAN TRUE\n";if("02"==c)return r+"INTEGER "+l(p=o(u,n),h)+"\n";if("03"==c){var p=o(u,n);if(i.isASN1HEX(p.substr(2))){var f=r+"BITSTRING, encapsulates\n";return f+=a(p.substr(2),t,0,r+" ")}return r+"BITSTRING "+l(p,h)+"\n"}if("04"==c){p=o(u,n);if(i.isASN1HEX(p)){f=r+"OCTETSTRING, encapsulates\n";return f+=a(p,t,0,r+" ")}return r+"OCTETSTRING "+l(p,h)+"\n"}if("05"==c)return r+"NULL\n";if("06"==c){var d=o(u,n),g=ae.asn1.ASN1Util.oidHexToInt(d),m=ae.asn1.x509.OID.oid2name(g),v=g.replace(/\./g," ");return""!=m?r+"ObjectIdentifier "+m+" ("+v+")\n":r+"ObjectIdentifier ("+v+")\n"}if("0a"==c)return r+"ENUMERATED "+parseInt(o(u,n))+"\n";if("0c"==c)return r+"UTF8String '"+be(o(u,n))+"'\n";if("13"==c)return r+"PrintableString '"+be(o(u,n))+"'\n";if("14"==c)return r+"TeletexString '"+be(o(u,n))+"'\n";if("16"==c)return r+"IA5String '"+be(o(u,n))+"'\n";if("17"==c)return r+"UTCTime "+be(o(u,n))+"\n";if("18"==c)return r+"GeneralizedTime "+be(o(u,n))+"\n";if("1a"==c)return r+"VisualString '"+be(o(u,n))+"'\n";if("1e"==c)return r+"BMPString '"+Me(o(u,n))+"'\n";if("30"==c){if("3000"==u.substr(n,4))return r+"SEQUENCE {}\n";f=r+"SEQUENCE\n";var y=t;if((2==(w=s(u,n)).length||3==w.length)&&"06"==u.substr(w[0],2)&&"04"==u.substr(w[w.length-1],2)){m=i.oidname(o(u,w[0]));var b=JSON.parse(JSON.stringify(t));b.x509ExtName=m,y=b}for(var $=0;$<w.length;$++)f+=a(u,y,w[$],r+" ");return f}if("31"==c){f=r+"SET\n";var w=s(u,n);for($=0;$<w.length;$++)f+=a(u,t,w[$],r+" ");return f}if(0!=(128&(c=parseInt(c,16)))){var x=31&c;if(0!=(32&c)){for(f=r+"["+x+"]\n",w=s(u,n),$=0;$<w.length;$++)f+=a(u,t,w[$],r+" ");return f}p=o(u,n);if(le.isASN1HEX(p)){var f=r+"["+x+"]\n";return f+=a(p,t,0,r+" ")}return("68747470"==p.substr(0,8)||"subjectAltName"===t.x509ExtName&&2==x)&&(p=be(p)),f=r+"["+x+"] "+p+"\n"}return r+"UNKNOWN("+c+") "+o(u,n)+"\n"},le.parse=function(e){var t=le,n=t.parse,r=t.isASN1HEX,i=t.getV,o=t.getTLV,a=t.getChildIdx,s=ae.asn1,u=s.ASN1Util.oidHexToInt,l=s.x509.OID.oid2name,c=be,h=Me,p=$e,f={"0c":"utf8str",12:"numstr",13:"prnstr",14:"telstr",16:"ia5str",17:"utctime",18:"gentime","1a":"visstr","1e":"bmpstr",30:"seq",31:"set"},d=e.substr(0,2),g={},m=i(e,0);if("01"==d)return"0101ff"==e?{bool:!0}:{bool:!1};if("02"==d)return{int:{hex:m}};if("03"==d)try{if("00"!=m.substr(0,2))throw"not encap";var v=m.substr(2);if(!r(v))throw"not encap";return{bitstr:{obj:n(v)}}}catch(e){var y=null;return m.length<=10&&(y=Qe(m)),null==y?{bitstr:{hex:m}}:{bitstr:{bin:y}}}else if("04"==d)try{if(!r(m))throw"not encap";return{octstr:{obj:n(m)}}}catch(e){return{octstr:{hex:m}}}else{if("05"==d)return{null:""};if("06"==d){var b=u(m),$=l(b);return""==$?{oid:b}:{oid:$}}if("0a"==d)return m.length>4?{enum:{hex:m}}:{enum:parseInt(m,16)};if("30"==d||"31"==d)return g[f[d]]=function(e){for(var t=[],r=a(e,0),i=0;i<r.length;i++){var s=r[i],u=o(e,s),l=n(u);t.push(l)}return t}(e),g;if("14"==d){var w=p(m);return g[f[d]]={str:w},g}if("1e"==d){w=h(m);return g[f[d]]={str:w},g}if(-1!=":0c:12:13:16:17:18:1a:".indexOf(d)){w=c(m);return g[f[d]]={str:w},g}if(d.match(/^8[0-9]$/))return null==(w=c(m))|""==w||null!=w.match(/[\x00-\x1F\x7F-\x9F]/)||null!=w.match(/[\u0000-\u001F\u0080–\u009F]/)?{tag:{tag:d,explicit:!1,hex:m}}:{tag:{tag:d,explicit:!1,str:w}};if(!d.match(/^a[0-9]$/)){var x=new ae.asn1.ASN1Object;return x.hV=m,{asn1:{tlv:d+x.getLengthHexFromValue()+m}}}try{if(!r(m))throw new Error("not encap");return{tag:{tag:d,explicit:!0,obj:n(m)}}}catch(e){return{tag:{tag:d,explicit:!0,hex:m}}}}},le.isContextTag=function(e,t){var n,r;e=e.toLowerCase();try{n=parseInt(e,16)}catch(e){return-1}if(void 0===t)return 128==(192&n);try{return null!=t.match(/^\[[0-9]+\]$/)&&(!((r=parseInt(t.substr(1,t.length-1),10))>31)&&(128==(192&n)&&(31&n)==r))}catch(e){return!1}},le.isASN1HEX=function(e){var t=le;if(e.length%2==1)return!1;var n=t.getVblen(e,0),r=e.substr(0,2),i=t.getL(e,0);return e.length-r.length-i.length==2*n},le.checkStrictDER=function(e,t,n,r,i){var o=le;if(void 0===n){if("string"!=typeof e)throw new Error("not hex string");if(e=e.toLowerCase(),!ae.lang.String.isHex(e))throw new Error("not hex string");n=e.length,i=(r=e.length/2)<128?1:Math.ceil(r.toString(16))+1}if(o.getL(e,t).length>2*i)throw new Error("L of TLV too long: idx="+t);var a=o.getVblen(e,t);if(a>r)throw new Error("value of L too long than hex: idx="+t);var s=o.getTLV(e,t),u=s.length-2-o.getL(e,t).length;if(u!==2*a)throw new Error("V string length and L's value not the same:"+u+"/"+2*a);if(0===t&&e.length!=s.length)throw new Error("total length and TLV length unmatch:"+e.length+"!="+s.length);var l=e.substr(t,2);if("02"===l){var c=o.getVidx(e,t);if("00"==e.substr(c,2)&&e.charCodeAt(c+2)<56)throw new Error("not least zeros for DER INTEGER")}if(32&parseInt(l,16)){for(var h=o.getVblen(e,t),p=0,f=o.getChildIdx(e,t),d=0;d<f.length;d++){p+=o.getTLV(e,f[d]).length,o.checkStrictDER(e,f[d],n,r,i)}if(2*h!=p)throw new Error("sum of children's TLV length and L unmatch: "+2*h+"!="+p)}},le.oidname=function(e){var t=ae.asn1;ae.lang.String.isHex(e)&&(e=t.ASN1Util.oidHexToInt(e));var n=t.x509.OID.oid2name(e);return""===n&&(n=e),n},void 0!==ae&&ae||(ae={}),void 0!==ae.asn1&&ae.asn1||(ae.asn1={}),void 0!==ae.asn1.x509&&ae.asn1.x509||(ae.asn1.x509={}),ae.asn1.x509.Certificate=function(e){ae.asn1.x509.Certificate.superclass.constructor.call(this);var t=ae.asn1,n=t.DERBitString,r=t.DERSequence,i=t.x509,o=i.TBSCertificate,a=i.AlgorithmIdentifier;this.params=void 0,this.setByParam=function(e){this.params=e},this.sign=function(){var e=this.params,t=e.sigalg;null!=e.sigalg.name&&(t=e.sigalg.name);var n=e.tbsobj.tohex(),r=new ae.crypto.Signature({alg:t});r.init(e.cakey),r.updateHex(n),e.sighex=r.sign()},this.getPEM=function(){return Ce(this.tohex(),"CERTIFICATE")},this.tohex=function(){var e=this.params;if(null!=e.tbsobj&&null!=e.tbsobj||(e.tbsobj=new o(e)),null==e.sighex&&null!=e.cakey&&this.sign(),null==e.sighex)throw new Error("sighex or cakey parameter not defined");var t=[];return t.push(e.tbsobj),t.push(new a({name:e.sigalg})),t.push(new n({hex:"00"+e.sighex})),new r({array:t}).tohex()},this.getEncodedHex=function(){return this.tohex()},null!=e&&(this.params=e)},et(ae.asn1.x509.Certificate,ae.asn1.ASN1Object),ae.asn1.x509.TBSCertificate=function(e){ae.asn1.x509.TBSCertificate.superclass.constructor.call(this);var t=ae.asn1,n=t.x509,r=t.DERTaggedObject,i=t.DERInteger,o=t.DERSequence,a=n.AlgorithmIdentifier,s=n.Time,u=n.X500Name,l=n.Extensions,c=n.SubjectPublicKeyInfo;this.params=null,this.setByParam=function(e){this.params=e},this.tohex=function(){var e=[],t=this.params;if(null!=t.version||1!=t.version){var n=2;null!=t.version&&(n=t.version-1);var h=new r({obj:new i({int:n})});e.push(h)}return e.push(new i(t.serial)),e.push(new a({name:t.sigalg})),e.push(new u(t.issuer)),e.push(new o({array:[new s(t.notbefore),new s(t.notafter)]})),e.push(new u(t.subject)),e.push(new c(tt.getKey(t.sbjpubkey))),void 0!==t.ext&&t.ext.length>0&&e.push(new r({tag:"a3",obj:new l(t.ext)})),new ae.asn1.DERSequence({array:e}).tohex()},this.getEncodedHex=function(){return this.tohex()},void 0!==e&&this.setByParam(e)},et(ae.asn1.x509.TBSCertificate,ae.asn1.ASN1Object),ae.asn1.x509.Extensions=function(e){ae.asn1.x509.Extensions.superclass.constructor.call(this);var t=ae.asn1,n=t.DERSequence,r=t.x509;this.aParam=[],this.setByParam=function(e){this.aParam=e},this.tohex=function(){for(var e=[],t=0;t<this.aParam.length;t++){var i=this.aParam[t],o=i.extname,a=null;if(null!=i.extn)a=new r.PrivateExtension(i);else if("subjectKeyIdentifier"==o)a=new r.SubjectKeyIdentifier(i);else if("keyUsage"==o)a=new r.KeyUsage(i);else if("subjectAltName"==o)a=new r.SubjectAltName(i);else if("issuerAltName"==o)a=new r.IssuerAltName(i);else if("basicConstraints"==o)a=new r.BasicConstraints(i);else if("nameConstraints"==o)a=new r.NameConstraints(i);else if("cRLDistributionPoints"==o)a=new r.CRLDistributionPoints(i);else if("certificatePolicies"==o)a=new r.CertificatePolicies(i);else if("policyMappings"==o)a=new r.PolicyMappings(i);else if("policyConstraints"==o)a=new r.PolicyConstraints(i);else if("inhibitAnyPolicy"==o)a=new r.InhibitAnyPolicy(i);else if("authorityKeyIdentifier"==o)a=new r.AuthorityKeyIdentifier(i);else if("extKeyUsage"==o)a=new r.ExtKeyUsage(i);else if("authorityInfoAccess"==o)a=new r.AuthorityInfoAccess(i);else if("cRLNumber"==o)a=new r.CRLNumber(i);else if("cRLReason"==o)a=new r.CRLReason(i);else if("ocspNonce"==o)a=new r.OCSPNonce(i);else if("ocspNoCheck"==o)a=new r.OCSPNoCheck(i);else if("adobeTimeStamp"==o)a=new r.AdobeTimeStamp(i);else{if("subjectDirectoryAttributes"!=o)throw new Error("extension not supported:"+JSON.stringify(i));a=new r.SubjectDirectoryAttributes(i)}null!=a&&e.push(a)}return new n({array:e}).tohex()},this.getEncodedHex=function(){return this.tohex()},null!=e&&this.setByParam(e)},et(ae.asn1.x509.Extensions,ae.asn1.ASN1Object),ae.asn1.x509.Extension=function(e){ae.asn1.x509.Extension.superclass.constructor.call(this);var t=ae.asn1,n=t.DERObjectIdentifier,r=t.DEROctetString,i=(t.DERBitString,t.DERBoolean),o=t.DERSequence;this.tohex=function(){var e=new n({oid:this.oid}),t=new r({hex:this.getExtnValueHex()}),a=new Array;return a.push(e),this.critical&&a.push(new i),a.push(t),new o({array:a}).tohex()},this.getEncodedHex=function(){return this.tohex()},this.critical=!1,void 0!==e&&void 0!==e.critical&&(this.critical=e.critical)},et(ae.asn1.x509.Extension,ae.asn1.ASN1Object),ae.asn1.x509.KeyUsage=function(e){ae.asn1.x509.KeyUsage.superclass.constructor.call(this,e);var t=Error,n={digitalSignature:0,nonRepudiation:1,keyEncipherment:2,dataEncipherment:3,keyAgreement:4,keyCertSign:5,cRLSign:6,encipherOnly:7,decipherOnly:8};this.getExtnValueHex=function(){var e=this.getBinValue();return this.asn1ExtnValue=new ae.asn1.DERBitString({bin:e}),this.asn1ExtnValue.tohex()},this.getBinValue=function(){var e=this.params;if("object"!=typeof e||"object"!=typeof e.names&&"string"!=typeof e.bin)throw new t("parameter not yet set");if(null!=e.names)return Je(e.names,n);if(null!=e.bin)return e.bin;throw new t("parameter not set properly")},this.oid="2.5.29.15",void 0!==e&&(this.params=e)},et(ae.asn1.x509.KeyUsage,ae.asn1.x509.Extension),ae.asn1.x509.BasicConstraints=function(e){ae.asn1.x509.BasicConstraints.superclass.constructor.call(this,e);var t=ae.asn1,n=t.DERBoolean,r=t.DERInteger,i=t.DERSequence;this.getExtnValueHex=function(){var e=new Array;this.cA&&e.push(new n),this.pathLen>-1&&e.push(new r({int:this.pathLen}));var t=new i({array:e});return this.asn1ExtnValue=t,this.asn1ExtnValue.tohex()},this.oid="2.5.29.19",this.cA=!1,this.pathLen=-1,void 0!==e&&(void 0!==e.cA&&(this.cA=e.cA),void 0!==e.pathLen&&(this.pathLen=e.pathLen))},et(ae.asn1.x509.BasicConstraints,ae.asn1.x509.Extension),ae.asn1.x509.CRLDistributionPoints=function(e){ae.asn1.x509.CRLDistributionPoints.superclass.constructor.call(this,e);var t=ae.asn1,n=t.x509;this.getExtnValueHex=function(){return this.asn1ExtnValue.tohex()},this.setByDPArray=function(e){for(var r=[],i=0;i<e.length;i++)if(e[i]instanceof ae.asn1.ASN1Object)r.push(e[i]);else{var o=new n.DistributionPoint(e[i]);r.push(o)}this.asn1ExtnValue=new t.DERSequence({array:r})},this.setByOneURI=function(e){var t=new n.DistributionPoint({fulluri:e});this.setByDPArray([t])},this.oid="2.5.29.31",void 0!==e&&(void 0!==e.array?this.setByDPArray(e.array):void 0!==e.uri&&this.setByOneURI(e.uri))},et(ae.asn1.x509.CRLDistributionPoints,ae.asn1.x509.Extension),ae.asn1.x509.DistributionPoint=function(e){ae.asn1.x509.DistributionPoint.superclass.constructor.call(this);var t=ae.asn1,n=t.x509.DistributionPointName;this.tohex=function(){var e=new t.DERSequence;if(null!=this.asn1DP){var n=new t.DERTaggedObject({explicit:!0,tag:"a0",obj:this.asn1DP});e.appendASN1Object(n)}return this.hTLV=e.tohex(),this.hTLV},this.getEncodedHex=function(){return this.tohex()},void 0!==e&&(void 0!==e.dpobj?this.asn1DP=e.dpobj:void 0!==e.dpname?this.asn1DP=new n(e.dpname):void 0!==e.fulluri&&(this.asn1DP=new n({full:[{uri:e.fulluri}]})))},et(ae.asn1.x509.DistributionPoint,ae.asn1.ASN1Object),ae.asn1.x509.DistributionPointName=function(e){ae.asn1.x509.DistributionPointName.superclass.constructor.call(this);var t=ae.asn1,n=t.DERTaggedObject;if(this.tohex=function(){if("full"!=this.type)throw new Error("currently type shall be 'full': "+this.type);return this.asn1Obj=new n({explicit:!1,tag:this.tag,obj:this.asn1V}),this.hTLV=this.asn1Obj.tohex(),this.hTLV},this.getEncodedHex=function(){return this.tohex()},void 0!==e)if(t.x509.GeneralNames.prototype.isPrototypeOf(e))this.type="full",this.tag="a0",this.asn1V=e;else{if(void 0===e.full)throw new Error("This class supports GeneralNames only as argument");this.type="full",this.tag="a0",this.asn1V=new t.x509.GeneralNames(e.full)}},et(ae.asn1.x509.DistributionPointName,ae.asn1.ASN1Object),ae.asn1.x509.CertificatePolicies=function(e){ae.asn1.x509.CertificatePolicies.superclass.constructor.call(this,e);var t=ae.asn1,n=t.x509,r=t.DERSequence,i=n.PolicyInformation;this.params=null,this.getExtnValueHex=function(){for(var e=[],t=0;t<this.params.array.length;t++)e.push(new i(this.params.array[t]));var n=new r({array:e});return this.asn1ExtnValue=n,this.asn1ExtnValue.tohex()},this.oid="2.5.29.32",void 0!==e&&(this.params=e)},et(ae.asn1.x509.CertificatePolicies,ae.asn1.x509.Extension),ae.asn1.x509.PolicyInformation=function(e){ae.asn1.x509.PolicyInformation.superclass.constructor.call(this,e);var t=ae.asn1,n=t.DERSequence,r=t.DERObjectIdentifier,i=t.x509.PolicyQualifierInfo;this.params=null,this.tohex=function(){if(void 0===this.params.policyoid&&void 0===this.params.array)throw new Error("parameter oid and array missing");var e=[new r(this.params.policyoid)];if(void 0!==this.params.array){for(var t=[],o=0;o<this.params.array.length;o++)t.push(new i(this.params.array[o]));t.length>0&&e.push(new n({array:t}))}return new n({array:e}).tohex()},this.getEncodedHex=function(){return this.tohex()},void 0!==e&&(this.params=e)},et(ae.asn1.x509.PolicyInformation,ae.asn1.ASN1Object),ae.asn1.x509.PolicyQualifierInfo=function(e){ae.asn1.x509.PolicyQualifierInfo.superclass.constructor.call(this,e);var t=ae.asn1,n=t.DERSequence,r=t.DERIA5String,i=t.DERObjectIdentifier,o=t.x509.UserNotice;this.params=null,this.tohex=function(){return void 0!==this.params.cps?new n({array:[new i({oid:"1.3.6.1.5.5.7.2.1"}),new r({str:this.params.cps})]}).tohex():null!=this.params.unotice?new n({array:[new i({oid:"1.3.6.1.5.5.7.2.2"}),new o(this.params.unotice)]}).tohex():void 0},this.getEncodedHex=function(){return this.tohex()},void 0!==e&&(this.params=e)},et(ae.asn1.x509.PolicyQualifierInfo,ae.asn1.ASN1Object),ae.asn1.x509.UserNotice=function(e){ae.asn1.x509.UserNotice.superclass.constructor.call(this,e);var t=ae.asn1.DERSequence,n=(ae.asn1.DERInteger,ae.asn1.x509.DisplayText),r=ae.asn1.x509.NoticeReference;this.params=null,this.tohex=function(){var e=[];return void 0!==this.params.noticeref&&e.push(new r(this.params.noticeref)),void 0!==this.params.exptext&&e.push(new n(this.params.exptext)),new t({array:e}).tohex()},this.getEncodedHex=function(){return this.tohex()},void 0!==e&&(this.params=e)},et(ae.asn1.x509.UserNotice,ae.asn1.ASN1Object),ae.asn1.x509.NoticeReference=function(e){ae.asn1.x509.NoticeReference.superclass.constructor.call(this,e);var t=ae.asn1.DERSequence,n=ae.asn1.DERInteger,r=ae.asn1.x509.DisplayText;this.params=null,this.tohex=function(){var e=[];if(void 0!==this.params.org&&e.push(new r(this.params.org)),void 0!==this.params.noticenum){for(var i=[],o=this.params.noticenum,a=0;a<o.length;a++)i.push(new n(o[a]));e.push(new t({array:i}))}if(0==e.length)throw new Error("parameter is empty");return new t({array:e}).tohex()},this.getEncodedHex=function(){return this.tohex()},void 0!==e&&(this.params=e)},et(ae.asn1.x509.NoticeReference,ae.asn1.ASN1Object),ae.asn1.x509.DisplayText=function(e){ae.asn1.x509.DisplayText.superclass.constructor.call(this,e),this.hT="0c",void 0!==e&&("ia5"===e.type?this.hT="16":"vis"===e.type?this.hT="1a":"bmp"===e.type&&(this.hT="1e"))},et(ae.asn1.x509.DisplayText,ae.asn1.DERAbstractString),ae.asn1.x509.PolicyMappings=function(e){ae.asn1.x509.PolicyMappings.superclass.constructor.call(this,e);var t=ae.asn1,n=(t.x509,t.ASN1Util.newObject);this.params=null,this.getExtnValueHex=function(){for(var e=this.params,t=[],r=0;r<e.array.length;r++){var i=e.array[r];t.push({seq:[{oid:i[0]},{oid:i[1]}]})}return this.asn1ExtnValue=n({seq:t}),this.asn1ExtnValue.tohex()},this.oid="2.5.29.33",void 0!==e&&(this.params=e)},et(ae.asn1.x509.PolicyMappings,ae.asn1.x509.Extension),ae.asn1.x509.PolicyConstraints=function(e){ae.asn1.x509.PolicyConstraints.superclass.constructor.call(this,e);var t=ae.asn1,n=(t.x509,t.ASN1Util.newObject);this.params=null,this.getExtnValueHex=function(){var e=this.params,t=[];return null!=e.reqexp&&t.push({tag:{tagi:"80",obj:{int:e.reqexp}}}),null!=e.inhibit&&t.push({tag:{tagi:"81",obj:{int:e.inhibit}}}),this.asn1ExtnValue=n({seq:t}),this.asn1ExtnValue.tohex()},this.oid="2.5.29.36",void 0!==e&&(this.params=e)},et(ae.asn1.x509.PolicyConstraints,ae.asn1.x509.Extension),ae.asn1.x509.InhibitAnyPolicy=function(e){ae.asn1.x509.InhibitAnyPolicy.superclass.constructor.call(this,e);var t=ae.asn1,n=(t.x509,t.ASN1Util.newObject);this.params=null,this.getExtnValueHex=function(){return this.asn1ExtnValue=n({int:this.params.skip}),this.asn1ExtnValue.tohex()},this.oid="2.5.29.54",void 0!==e&&(this.params=e)},et(ae.asn1.x509.InhibitAnyPolicy,ae.asn1.x509.Extension),ae.asn1.x509.NameConstraints=function(e){ae.asn1.x509.NameConstraints.superclass.constructor.call(this,e);var t=ae.asn1,n=t.x509,r=t.ASN1Util.newObject,i=n.GeneralSubtree;this.params=null,this.getExtnValueHex=function(){var e=this.params,t=[];if(null!=e.permit&&null!=e.permit.length){for(var n=[],o=0;o<e.permit.length;o++)n.push(new i(e.permit[o]));t.push({tag:{tagi:"a0",obj:{seq:n}}})}if(null!=e.exclude&&null!=e.exclude.length){var a=[];for(o=0;o<e.exclude.length;o++)a.push(new i(e.exclude[o]));t.push({tag:{tagi:"a1",obj:{seq:a}}})}return this.asn1ExtnValue=r({seq:t}),this.asn1ExtnValue.tohex()},this.oid="2.5.29.30",void 0!==e&&(this.params=e)},et(ae.asn1.x509.NameConstraints,ae.asn1.x509.Extension),ae.asn1.x509.GeneralSubtree=function(e){ae.asn1.x509.GeneralSubtree.superclass.constructor.call(this);var t=ae.asn1,n=t.x509.GeneralName,r=t.ASN1Util.newObject;this.params=null,this.setByParam=function(e){this.params=e},this.tohex=function(){var e=this.params,t=[new n(e)];return null!=e.min&&t.push({tag:{tagi:"80",obj:{int:e.min}}}),null!=e.max&&t.push({tag:{tagi:"81",obj:{int:e.max}}}),r({seq:t}).tohex()},this.getEncodedHex=function(){return this.tohex()},void 0!==e&&this.setByParam(e)},et(ae.asn1.x509.GeneralSubtree,ae.asn1.ASN1Object),ae.asn1.x509.ExtKeyUsage=function(e){ae.asn1.x509.ExtKeyUsage.superclass.constructor.call(this,e);var t=ae.asn1;this.setPurposeArray=function(e){this.asn1ExtnValue=new t.DERSequence;for(var n=0;n<e.length;n++){var r=new t.DERObjectIdentifier(e[n]);this.asn1ExtnValue.appendASN1Object(r)}},this.getExtnValueHex=function(){return this.asn1ExtnValue.tohex()},this.oid="2.5.29.37",void 0!==e&&void 0!==e.array&&this.setPurposeArray(e.array)},et(ae.asn1.x509.ExtKeyUsage,ae.asn1.x509.Extension),ae.asn1.x509.AuthorityKeyIdentifier=function(e){ae.asn1.x509.AuthorityKeyIdentifier.superclass.constructor.call(this,e);var t=ae,n=t.asn1,r=n.DERTaggedObject,i=n.x509.GeneralNames;t.crypto.Util.isKey;this.asn1KID=null,this.asn1CertIssuer=null,this.asn1CertSN=null,this.getExtnValueHex=function(){var e=new Array;this.asn1KID&&e.push(new r({explicit:!1,tag:"80",obj:this.asn1KID})),this.asn1CertIssuer&&e.push(new r({explicit:!1,tag:"a1",obj:new i([{dn:this.asn1CertIssuer}])})),this.asn1CertSN&&e.push(new r({explicit:!1,tag:"82",obj:this.asn1CertSN}));var t=new n.DERSequence({array:e});return this.asn1ExtnValue=t,this.asn1ExtnValue.tohex()},this.setKIDByParam=function(e){if(void 0!==e.str||void 0!==e.hex)this.asn1KID=new ae.asn1.DEROctetString(e);else if("object"==typeof e&&ae.crypto.Util.isKey(e)||"string"==typeof e&&-1!=e.indexOf("BEGIN ")){var t=e;"string"==typeof e&&(t=tt.getKey(e));var n=tt.getKeyID(t);this.asn1KID=new ae.asn1.DEROctetString({hex:n})}},this.setCertIssuerByParam=function(e){void 0!==e.str||void 0!==e.ldapstr||void 0!==e.hex||void 0!==e.certsubject||void 0!==e.certissuer?this.asn1CertIssuer=new ae.asn1.x509.X500Name(e):"string"==typeof e&&-1!=e.indexOf("BEGIN ")&&-1!=e.indexOf("CERTIFICATE")&&(this.asn1CertIssuer=new ae.asn1.x509.X500Name({certissuer:e}))},this.setCertSNByParam=function(e){if(void 0!==e.str||void 0!==e.bigint||void 0!==e.hex)this.asn1CertSN=new ae.asn1.DERInteger(e);else if("string"==typeof e&&-1!=e.indexOf("BEGIN ")&&e.indexOf("CERTIFICATE")){var t=new ot;t.readCertPEM(e);var n=t.getSerialNumberHex();this.asn1CertSN=new ae.asn1.DERInteger({hex:n})}},this.oid="2.5.29.35",void 0!==e&&(void 0!==e.kid&&this.setKIDByParam(e.kid),void 0!==e.issuer&&this.setCertIssuerByParam(e.issuer),void 0!==e.sn&&this.setCertSNByParam(e.sn),void 0!==e.issuersn&&"string"==typeof e.issuersn&&-1!=e.issuersn.indexOf("BEGIN ")&&e.issuersn.indexOf("CERTIFICATE")&&(this.setCertSNByParam(e.issuersn),this.setCertIssuerByParam(e.issuersn)))},et(ae.asn1.x509.AuthorityKeyIdentifier,ae.asn1.x509.Extension),ae.asn1.x509.SubjectKeyIdentifier=function(e){ae.asn1.x509.SubjectKeyIdentifier.superclass.constructor.call(this,e);var t=ae.asn1.DEROctetString;this.asn1KID=null,this.getExtnValueHex=function(){return this.asn1ExtnValue=this.asn1KID,this.asn1ExtnValue.tohex()},this.setKIDByParam=function(e){if(void 0!==e.str||void 0!==e.hex)this.asn1KID=new t(e);else if("object"==typeof e&&ae.crypto.Util.isKey(e)||"string"==typeof e&&-1!=e.indexOf("BEGIN")){var n=e;"string"==typeof e&&(n=tt.getKey(e));var r=tt.getKeyID(n);this.asn1KID=new ae.asn1.DEROctetString({hex:r})}},this.oid="2.5.29.14",void 0!==e&&void 0!==e.kid&&this.setKIDByParam(e.kid)},et(ae.asn1.x509.SubjectKeyIdentifier,ae.asn1.x509.Extension),ae.asn1.x509.AuthorityInfoAccess=function(e){ae.asn1.x509.AuthorityInfoAccess.superclass.constructor.call(this,e),this.setAccessDescriptionArray=function(e){for(var t=new Array,n=ae.asn1,r=n.DERSequence,i=n.DERObjectIdentifier,o=n.x509.GeneralName,a=0;a<e.length;a++){var s,u=e[a];if(void 0!==u.ocsp)s=new r({array:[new i({oid:"1.3.6.1.5.5.7.48.1"}),new o({uri:u.ocsp})]});else{if(void 0===u.caissuer)throw new Error("unknown AccessMethod parameter: "+JSON.stringify(u));s=new r({array:[new i({oid:"1.3.6.1.5.5.7.48.2"}),new o({uri:u.caissuer})]})}t.push(s)}this.asn1ExtnValue=new r({array:t})},this.getExtnValueHex=function(){return this.asn1ExtnValue.tohex()},this.oid="1.3.6.1.5.5.7.1.1",void 0!==e&&void 0!==e.array&&this.setAccessDescriptionArray(e.array)},et(ae.asn1.x509.AuthorityInfoAccess,ae.asn1.x509.Extension),ae.asn1.x509.SubjectAltName=function(e){ae.asn1.x509.SubjectAltName.superclass.constructor.call(this,e),this.setNameArray=function(e){this.asn1ExtnValue=new ae.asn1.x509.GeneralNames(e)},this.getExtnValueHex=function(){return this.asn1ExtnValue.tohex()},this.oid="2.5.29.17",void 0!==e&&void 0!==e.array&&this.setNameArray(e.array)},et(ae.asn1.x509.SubjectAltName,ae.asn1.x509.Extension),ae.asn1.x509.IssuerAltName=function(e){ae.asn1.x509.IssuerAltName.superclass.constructor.call(this,e),this.setNameArray=function(e){this.asn1ExtnValue=new ae.asn1.x509.GeneralNames(e)},this.getExtnValueHex=function(){return this.asn1ExtnValue.tohex()},this.oid="2.5.29.18",void 0!==e&&void 0!==e.array&&this.setNameArray(e.array)},et(ae.asn1.x509.IssuerAltName,ae.asn1.x509.Extension),ae.asn1.x509.SubjectDirectoryAttributes=function(e){ae.asn1.x509.SubjectDirectoryAttributes.superclass.constructor.call(this,e);var t=ae.asn1,n=t.DERSequence,r=t.ASN1Util.newObject,i=t.x509.OID.name2oid;this.params=null,this.getExtnValueHex=function(){for(var e=[],t=0;t<this.params.array.length;t++){var o=this.params.array[t];if(null==o.attr||null==o.array){var a={seq:[{oid:"1.2.3.4"},{set:[{utf8str:"DE"}]}]};if("dateOfBirth"==o.attr)a.seq[0].oid=i(o.attr),a.seq[1].set[0]={gentime:o.str};else if("placeOfBirth"==o.attr)a.seq[0].oid=i(o.attr),a.seq[1].set[0]={utf8str:o.str};else if("gender"==o.attr)a.seq[0].oid=i(o.attr),a.seq[1].set[0]={prnstr:o.str};else if("countryOfCitizenship"==o.attr)a.seq[0].oid=i(o.attr),a.seq[1].set[0]={prnstr:o.str};else{if("countryOfResidence"!=o.attr)throw new Error("unsupported attribute: "+o.attr);a.seq[0].oid=i(o.attr),a.seq[1].set[0]={prnstr:o.str}}e.push(new r(a))}else{var s={seq:[{oid:o.attr},{set:o.array}]};e.push(r(s))}}var u=new n({array:e});return this.asn1ExtnValue=u,this.asn1ExtnValue.tohex()},this.oid="2.5.29.9",void 0!==e&&(this.params=e)},et(ae.asn1.x509.SubjectDirectoryAttributes,ae.asn1.x509.Extension),ae.asn1.x509.PrivateExtension=function(e){ae.asn1.x509.PrivateExtension.superclass.constructor.call(this,e);var t=ae,n=t.lang.String.isHex,r=t.asn1,i=r.x509.OID.name2oid,o=r.ASN1Util.newObject;this.params=null,this.setByParam=function(e){this.oid=i(e.extname),this.params=e},this.getExtnValueHex=function(){if(null==this.params.extname||null==this.params.extn)throw new Error("extname or extnhex not specified");var e=this.params.extn;if("string"==typeof e&&n(e))return e;if("object"==typeof e)try{return o(e).tohex()}catch(e){}throw new Error("unsupported extn value")},null!=e&&this.setByParam(e)},et(ae.asn1.x509.PrivateExtension,ae.asn1.x509.Extension),ae.asn1.x509.CRL=function(e){ae.asn1.x509.CRL.superclass.constructor.call(this);var t=ae.asn1,n=t.DERSequence,r=t.DERBitString,i=t.x509,o=i.AlgorithmIdentifier,a=i.TBSCertList;this.params=void 0,this.setByParam=function(e){this.params=e},this.sign=function(){var e=new a(this.params).tohex(),t=new ae.crypto.Signature({alg:this.params.sigalg});t.init(this.params.cakey),t.updateHex(e);var n=t.sign();this.params.sighex=n},this.getPEM=function(){return Ce(this.tohex(),"X509 CRL")},this.tohex=function(){var e=this.params;if(null==e.tbsobj&&(e.tbsobj=new a(e)),null==e.sighex&&null!=e.cakey&&this.sign(),null==e.sighex)throw new Error("sighex or cakey parameter not defined");var t=[];return t.push(e.tbsobj),t.push(new o({name:e.sigalg})),t.push(new r({hex:"00"+e.sighex})),new n({array:t}).tohex()},this.getEncodedHex=function(){return this.tohex()},null!=e&&(this.params=e)},et(ae.asn1.x509.CRL,ae.asn1.ASN1Object),ae.asn1.x509.TBSCertList=function(e){ae.asn1.x509.TBSCertList.superclass.constructor.call(this);var t=ae.asn1,n=t.DERInteger,r=t.DERSequence,i=t.DERTaggedObject,o=(t.DERObjectIdentifier,t.x509),a=o.AlgorithmIdentifier,s=o.Time,u=o.Extensions,l=o.X500Name;this.params=null,this.setByParam=function(e){this.params=e},this.getRevCertSequence=function(){for(var e=[],t=this.params.revcert,i=0;i<t.length;i++){var o=[new n(t[i].sn),new s(t[i].date)];null!=t[i].ext&&o.push(new u(t[i].ext)),e.push(new r({array:o}))}return new r({array:e})},this.tohex=function(){var e=[],t=this.params;if(null!=t.version){var o=t.version-1,c=new n({int:o});e.push(c)}if(e.push(new a({name:t.sigalg})),e.push(new l(t.issuer)),e.push(new s(t.thisupdate)),null!=t.nextupdate&&e.push(new s(t.nextupdate)),null!=t.revcert&&e.push(this.getRevCertSequence()),null!=t.ext){var h=new u(t.ext);e.push(new i({tag:"a0",explicit:!0,obj:h}))}return new r({array:e}).tohex()},this.getEncodedHex=function(){return this.tohex()},void 0!==e&&this.setByParam(e)},et(ae.asn1.x509.TBSCertList,ae.asn1.ASN1Object),ae.asn1.x509.CRLEntry=function(e){ae.asn1.x509.CRLEntry.superclass.constructor.call(this);var t=ae.asn1;this.setCertSerial=function(e){this.sn=new t.DERInteger(e)},this.setRevocationDate=function(e){this.time=new t.x509.Time(e)},this.tohex=function(){var e=new t.DERSequence({array:[this.sn,this.time]});return this.TLV=e.tohex(),this.TLV},this.getEncodedHex=function(){return this.tohex()},void 0!==e&&(void 0!==e.time&&this.setRevocationDate(e.time),void 0!==e.sn&&this.setCertSerial(e.sn))},et(ae.asn1.x509.CRLEntry,ae.asn1.ASN1Object),ae.asn1.x509.CRLNumber=function(e){ae.asn1.x509.CRLNumber.superclass.constructor.call(this,e),this.params=void 0,this.getExtnValueHex=function(){return this.asn1ExtnValue=new ae.asn1.DERInteger(this.params.num),this.asn1ExtnValue.tohex()},this.oid="2.5.29.20",null!=e&&(this.params=e)},et(ae.asn1.x509.CRLNumber,ae.asn1.x509.Extension),ae.asn1.x509.CRLReason=function(e){ae.asn1.x509.CRLReason.superclass.constructor.call(this,e),this.params=void 0,this.getExtnValueHex=function(){return this.asn1ExtnValue=new ae.asn1.DEREnumerated(this.params.code),this.asn1ExtnValue.tohex()},this.oid="2.5.29.21",null!=e&&(this.params=e)},et(ae.asn1.x509.CRLReason,ae.asn1.x509.Extension),ae.asn1.x509.OCSPNonce=function(e){ae.asn1.x509.OCSPNonce.superclass.constructor.call(this,e),this.params=void 0,this.getExtnValueHex=function(){return this.asn1ExtnValue=new ae.asn1.DEROctetString(this.params),this.asn1ExtnValue.tohex()},this.oid="1.3.6.1.5.5.7.48.1.2",null!=e&&(this.params=e)},et(ae.asn1.x509.OCSPNonce,ae.asn1.x509.Extension),ae.asn1.x509.OCSPNoCheck=function(e){ae.asn1.x509.OCSPNoCheck.superclass.constructor.call(this,e),this.params=void 0,this.getExtnValueHex=function(){return this.asn1ExtnValue=new ae.asn1.DERNull,this.asn1ExtnValue.tohex()},this.oid="1.3.6.1.5.5.7.48.1.5",null!=e&&(this.params=e)},et(ae.asn1.x509.OCSPNoCheck,ae.asn1.x509.Extension),ae.asn1.x509.AdobeTimeStamp=function(e){ae.asn1.x509.AdobeTimeStamp.superclass.constructor.call(this,e);var t=ae.asn1,n=t.DERInteger,r=t.DERBoolean,i=t.DERSequence,o=t.x509.GeneralName;this.params=null,this.getExtnValueHex=function(){var e=this.params,t=[new n(1)];return t.push(new o({uri:e.uri})),null!=e.reqauth&&t.push(new r(e.reqauth)),this.asn1ExtnValue=new i({array:t}),this.asn1ExtnValue.tohex()},this.oid="1.2.840.113583.1.1.9.1",void 0!==e&&this.setByParam(e)},et(ae.asn1.x509.AdobeTimeStamp,ae.asn1.x509.Extension),ae.asn1.x509.X500Name=function(e){ae.asn1.x509.X500Name.superclass.constructor.call(this),this.asn1Array=[],this.paramArray=[],this.sRule="utf8";var t=ae.asn1,n=t.x509,r=n.RDN;this.setByString=function(e,t){void 0!==t&&(this.sRule=t);var n=e.split("/");n.shift();for(var i=[],o=0;o<n.length;o++)if(n[o].match(/^[^=]+=.+$/))i.push(n[o]);else{var a=i.length-1;i[a]=i[a]+"/"+n[o]}for(o=0;o<i.length;o++)this.asn1Array.push(new r({str:i[o],rule:this.sRule}))},this.setByLdapString=function(e,t){void 0!==t&&(this.sRule=t);var r=n.X500Name.ldapToCompat(e);this.setByString(r,t)},this.setByObject=function(e,t){for(var n in void 0!==t&&(this.sRule=t),e)if(e.hasOwnProperty(n)){var i=new r({str:n+"="+e[n],rule:this.sRule});this.asn1Array?this.asn1Array.push(i):this.asn1Array=[i]}},this.setByParam=function(e){var t;(void 0!==e.rule&&(this.sRule=e.rule),void 0!==e.array)?this.paramArray=e.array:void 0!==e.str?this.setByString(e.str):void 0!==e.ldapstr?this.setByLdapString(e.ldapstr):void 0!==e.hex?this.hTLV=e.hex:void 0!==e.certissuer?((t=new ot).readCertPEM(e.certissuer),this.hTLV=t.getIssuerHex()):void 0!==e.certsubject?((t=new ot).readCertPEM(e.certsubject),this.hTLV=t.getSubjectHex()):"object"==typeof e&&void 0===e.certsubject&&void 0===e.certissuer&&this.setByObject(e)},this.tohex=function(){if("string"==typeof this.hTLV)return this.hTLV;if(0==this.asn1Array.length&&this.paramArray.length>0)for(var e=0;e<this.paramArray.length;e++){var n={array:this.paramArray[e]};"utf8"!=this.sRule&&(n.rule=this.sRule);var i=new r(n);this.asn1Array.push(i)}var o=new t.DERSequence({array:this.asn1Array});return this.hTLV=o.tohex(),this.hTLV},this.getEncodedHex=function(){return this.tohex()},void 0!==e&&this.setByParam(e)},et(ae.asn1.x509.X500Name,ae.asn1.ASN1Object),ae.asn1.x509.X500Name.compatToLDAP=function(e){if("/"!==e.substr(0,1))throw"malformed input";var t=(e=e.substr(1)).split("/");return t.reverse(),(t=t.map((function(e){return e.replace(/,/,"\\,")}))).join(",")},ae.asn1.x509.X500Name.onelineToLDAP=function(e){return ae.asn1.x509.X500Name.compatToLDAP(e)},ae.asn1.x509.X500Name.ldapToCompat=function(e){for(var t=e.split(","),n=!1,r=[],i=0;t.length>0;i++){var o=t.shift();if(!0===n){var a=(r.pop()+","+o).replace(/\\,/g,",");r.push(a),n=!1}else r.push(o);"\\"===o.substr(-1,1)&&(n=!0)}return(r=r.map((function(e){return e.replace("/","\\/")}))).reverse(),"/"+r.join("/")},ae.asn1.x509.X500Name.ldapToOneline=function(e){return ae.asn1.x509.X500Name.ldapToCompat(e)},ae.asn1.x509.RDN=function(e){ae.asn1.x509.RDN.superclass.constructor.call(this),this.asn1Array=[],this.paramArray=[],this.sRule="utf8";var t=ae.asn1.x509.AttributeTypeAndValue;this.setByParam=function(e){void 0!==e.rule&&(this.sRule=e.rule),void 0!==e.str&&this.addByMultiValuedString(e.str),void 0!==e.array&&(this.paramArray=e.array)},this.addByString=function(e){this.asn1Array.push(new ae.asn1.x509.AttributeTypeAndValue({str:e,rule:this.sRule}))},this.addByMultiValuedString=function(e){for(var t=ae.asn1.x509.RDN.parseString(e),n=0;n<t.length;n++)this.addByString(t[n])},this.tohex=function(){if(0==this.asn1Array.length&&this.paramArray.length>0)for(var e=0;e<this.paramArray.length;e++){var n=this.paramArray[e];void 0!==n.rule&&"utf8"!=this.sRule&&(n.rule=this.sRule);var r=new t(n);this.asn1Array.push(r)}var i=new ae.asn1.DERSet({array:this.asn1Array});return this.TLV=i.tohex(),this.TLV},this.getEncodedHex=function(){return this.tohex()},void 0!==e&&this.setByParam(e)},et(ae.asn1.x509.RDN,ae.asn1.ASN1Object),ae.asn1.x509.RDN.parseString=function(e){for(var t=e.split(/\+/),n=!1,r=[],i=0;t.length>0;i++){var o=t.shift();if(!0===n){var a=(r.pop()+"+"+o).replace(/\\\+/g,"+");r.push(a),n=!1}else r.push(o);"\\"===o.substr(-1,1)&&(n=!0)}var s=!1,u=[];for(i=0;r.length>0;i++){o=r.shift();if(!0===s){var l=u.pop();if(o.match(/"$/)){a=(l+"+"+o).replace(/^([^=]+)="(.*)"$/,"$1=$2");u.push(a),s=!1}else u.push(l+"+"+o)}else u.push(o);o.match(/^[^=]+="/)&&(s=!0)}return u},ae.asn1.x509.AttributeTypeAndValue=function(e){ae.asn1.x509.AttributeTypeAndValue.superclass.constructor.call(this),this.sRule="utf8",this.sType=null,this.sValue=null,this.dsType=null;var t=ae,n=t.asn1,r=n.DERSequence,i=n.DERUTF8String,o=n.DERPrintableString,a=n.DERTeletexString,s=n.DERIA5String,u=n.DERVisibleString,l=n.DERBMPString,c=t.lang.String.isMail,h=t.lang.String.isPrintable;this.setByParam=function(e){if(void 0!==e.rule&&(this.sRule=e.rule),void 0!==e.ds&&(this.dsType=e.ds),void 0===e.value&&void 0!==e.str){var t=e.str.match(/^([^=]+)=(.+)$/);if(!t)throw new Error("malformed attrTypeAndValueStr: "+attrTypeAndValueStr);this.sType=t[1],this.sValue=t[2]}else this.sType=e.type,this.sValue=e.value},this.setByString=function(e,t){void 0!==t&&(this.sRule=t);var n=e.match(/^([^=]+)=(.+)$/);if(!n)throw new Error("malformed attrTypeAndValueStr: "+attrTypeAndValueStr);this.setByAttrTypeAndValueStr(n[1],n[2])},this._getDsType=function(){var e=this.sType,t=this.sValue,n=this.sRule;return"prn"===n?"CN"==e&&c(t)?"ia5":h(t)?"prn":"utf8":"utf8"===n?"CN"==e&&c(t)?"ia5":"C"==e?"prn":"utf8":"utf8"},this.setByAttrTypeAndValueStr=function(e,t,n){void 0!==n&&(this.sRule=n),this.sType=e,this.sValue=t},this.getValueObj=function(e,t){if("utf8"==e)return new i({str:t});if("prn"==e)return new o({str:t});if("tel"==e)return new a({str:t});if("ia5"==e)return new s({str:t});if("vis"==e)return new u({str:t});if("bmp"==e)return new l({str:t});throw new Error("unsupported directory string type: type="+e+" value="+t)},this.tohex=function(){null==this.dsType&&(this.dsType=this._getDsType());var e=ae.asn1.x509.OID.atype2obj(this.sType),t=this.getValueObj(this.dsType,this.sValue),n=new r({array:[e,t]});return this.TLV=n.tohex(),this.TLV},this.getEncodedHex=function(){return this.tohex()},void 0!==e&&this.setByParam(e)},et(ae.asn1.x509.AttributeTypeAndValue,ae.asn1.ASN1Object),ae.asn1.x509.SubjectPublicKeyInfo=function(e){ae.asn1.x509.SubjectPublicKeyInfo.superclass.constructor.call(this);var t=ae,n=t.asn1,r=n.DERInteger,i=n.DERBitString,o=n.DERObjectIdentifier,a=n.DERSequence,s=n.ASN1Util.newObject,u=n.x509.AlgorithmIdentifier,l=t.crypto;l.ECDSA,l.DSA;this.getASN1Object=function(){if(null==this.asn1AlgId||null==this.asn1SubjPKey)throw"algId and/or subjPubKey not set";return new a({array:[this.asn1AlgId,this.asn1SubjPKey]})},this.tohex=function(){var e=this.getASN1Object();return this.hTLV=e.tohex(),this.hTLV},this.getEncodedHex=function(){return this.tohex()},this.setPubKey=function(e){try{if(e instanceof te){var t=s({seq:[{int:{bigint:e.n}},{int:{int:e.e}}]}).tohex();this.asn1AlgId=new u({name:"rsaEncryption"}),this.asn1SubjPKey=new i({hex:"00"+t})}}catch(e){}try{if(e instanceof ae.crypto.ECDSA){var n=new o({name:e.curveName});this.asn1AlgId=new u({name:"ecPublicKey",asn1params:n}),this.asn1SubjPKey=new i({hex:"00"+e.pubKeyHex})}}catch(e){}try{if(e instanceof ae.crypto.DSA){n=new s({seq:[{int:{bigint:e.p}},{int:{bigint:e.q}},{int:{bigint:e.g}}]});this.asn1AlgId=new u({name:"dsa",asn1params:n});var a=new r({bigint:e.y});this.asn1SubjPKey=new i({hex:"00"+a.tohex()})}}catch(e){}},void 0!==e&&this.setPubKey(e)},et(ae.asn1.x509.SubjectPublicKeyInfo,ae.asn1.ASN1Object),ae.asn1.x509.Time=function(e){ae.asn1.x509.Time.superclass.constructor.call(this);var t=ae.asn1,n=t.DERUTCTime,r=t.DERGeneralizedTime;this.params=null,this.type=null,this.setTimeParams=function(e){this.timeParams=e},this.setByParam=function(e){this.params=e},this.getType=function(e){return e.match(/^[0-9]{12}Z$/)?"utc":e.match(/^[0-9]{14}Z$/)?"gen":e.match(/^[0-9]{12}\.[0-9]+Z$/)?"utc":e.match(/^[0-9]{14}\.[0-9]+Z$/)?"gen":null},this.tohex=function(){var e=this.params,t=null;if("string"==typeof e&&(e={str:e}),null==e||!e.str||null!=e.type&&null!=e.type||(e.type=this.getType(e.str)),null!=e&&e.str?("utc"==e.type&&(t=new n(e.str)),"gen"==e.type&&(t=new r(e.str))):t="gen"==this.type?new r:new n,null==t)throw new Error("wrong setting for Time");return this.TLV=t.tohex(),this.TLV},this.getEncodedHex=function(){return this.tohex()},null!=e&&this.setByParam(e)},ae.asn1.x509.Time_bak=function(e){ae.asn1.x509.Time_bak.superclass.constructor.call(this);var t=ae.asn1,n=t.DERUTCTime,r=t.DERGeneralizedTime;this.setTimeParams=function(e){this.timeParams=e},this.tohex=function(){var e=null;return e=null!=this.timeParams?"utc"==this.type?new n(this.timeParams):new r(this.timeParams):"utc"==this.type?new n:new r,this.TLV=e.tohex(),this.TLV},this.getEncodedHex=function(){return this.tohex()},this.type="utc",void 0!==e&&(void 0!==e.type?this.type=e.type:void 0!==e.str&&(e.str.match(/^[0-9]{12}Z$/)&&(this.type="utc"),e.str.match(/^[0-9]{14}Z$/)&&(this.type="gen")),this.timeParams=e)},et(ae.asn1.x509.Time,ae.asn1.ASN1Object),ae.asn1.x509.AlgorithmIdentifier=function(e){ae.asn1.x509.AlgorithmIdentifier.superclass.constructor.call(this),this.nameAlg=null,this.asn1Alg=null,this.asn1Params=null,this.paramEmpty=!1;var t=ae.asn1,n=t.x509.AlgorithmIdentifier.PSSNAME2ASN1TLV;if(this.tohex=function(){if(null===this.nameAlg&&null===this.asn1Alg)throw new Error("algorithm not specified");if(null!==this.nameAlg){var e=null;for(var r in n)r===this.nameAlg&&(e=n[r]);if(null!==e)return this.hTLV=e,this.hTLV}null!==this.nameAlg&&null===this.asn1Alg&&(this.asn1Alg=t.x509.OID.name2obj(this.nameAlg));var i=[this.asn1Alg];null!==this.asn1Params&&i.push(this.asn1Params);var o=new t.DERSequence({array:i});return this.hTLV=o.tohex(),this.hTLV},this.getEncodedHex=function(){return this.tohex()},void 0!==e&&(void 0!==e.name&&(this.nameAlg=e.name),void 0!==e.asn1params&&(this.asn1Params=e.asn1params),void 0!==e.paramempty&&(this.paramEmpty=e.paramempty)),null===this.asn1Params&&!1===this.paramEmpty&&null!==this.nameAlg){void 0!==this.nameAlg.name&&(this.nameAlg=this.nameAlg.name);var r=this.nameAlg.toLowerCase();"withdsa"!==r.substr(-7,7)&&"withecdsa"!==r.substr(-9,9)&&(this.asn1Params=new t.DERNull)}},et(ae.asn1.x509.AlgorithmIdentifier,ae.asn1.ASN1Object),ae.asn1.x509.AlgorithmIdentifier.PSSNAME2ASN1TLV={SHAwithRSAandMGF1:"300d06092a864886f70d01010a3000",SHA256withRSAandMGF1:"303d06092a864886f70d01010a3030a00d300b0609608648016503040201a11a301806092a864886f70d010108300b0609608648016503040201a203020120",SHA384withRSAandMGF1:"303d06092a864886f70d01010a3030a00d300b0609608648016503040202a11a301806092a864886f70d010108300b0609608648016503040202a203020130",SHA512withRSAandMGF1:"303d06092a864886f70d01010a3030a00d300b0609608648016503040203a11a301806092a864886f70d010108300b0609608648016503040203a203020140"},ae.asn1.x509.GeneralName=function(e){ae.asn1.x509.GeneralName.superclass.constructor.call(this);var t=ae.asn1,n=t.x509,r=n.X500Name,i=n.OtherName,o=t.DERIA5String,a=(t.DERPrintableString,t.DEROctetString),s=t.DERTaggedObject,u=t.ASN1Object,l=Error;this.params=null,this.setByParam=function(e){this.params=e},this.tohex=function(){var e,t,n=this.params,c=!1;if(void 0!==n.other)e="a0",t=new i(n.other);else if(void 0!==n.rfc822)e="81",t=new o({str:n.rfc822});else if(void 0!==n.dns)e="82",t=new o({str:n.dns});else if(void 0!==n.dn)e="a4",c=!0,t="string"==typeof n.dn?new r({str:n.dn}):n.dn instanceof ae.asn1.x509.X500Name?n.dn:new r(n.dn);else if(void 0!==n.ldapdn)e="a4",c=!0,t=new r({ldapstr:n.ldapdn});else if(void 0!==n.certissuer||void 0!==n.certsubj){var h,p;e="a4",c=!0;var f=null;if(void 0!==n.certsubj?(h=!1,p=n.certsubj):(h=!0,p=n.certissuer),p.match(/^[0-9A-Fa-f]+$/),-1!=p.indexOf("-----BEGIN ")&&(f=Te(p)),null==f)throw new Error("certsubj/certissuer not cert");var d,g=new ot;g.hex=f,d=h?g.getIssuerHex():g.getSubjectHex(),(t=new u).hTLV=d}else if(void 0!==n.uri)e="86",t=new o({str:n.uri});else{if(void 0===n.ip)throw new l("improper params");var m;e="87";var v=n.ip;try{if(v.match(/^[0-9a-f]+$/)){var y=v.length;if(8!=y&&16!=y&&32!=y&&64!=y)throw"err";m=v}else m=Le(v)}catch(e){throw new l("malformed IP address: "+n.ip+":"+e.message)}t=new a({hex:m})}return new s({tag:e,explicit:c,obj:t}).tohex()},this.getEncodedHex=function(){return this.tohex()},void 0!==e&&this.setByParam(e)},et(ae.asn1.x509.GeneralName,ae.asn1.ASN1Object),ae.asn1.x509.GeneralNames=function(e){ae.asn1.x509.GeneralNames.superclass.constructor.call(this);var t=ae.asn1;this.setByParamArray=function(e){for(var n=0;n<e.length;n++){var r=new t.x509.GeneralName(e[n]);this.asn1Array.push(r)}},this.tohex=function(){return new t.DERSequence({array:this.asn1Array}).tohex()},this.getEncodedHex=function(){return this.tohex()},this.asn1Array=new Array,void 0!==e&&this.setByParamArray(e)},et(ae.asn1.x509.GeneralNames,ae.asn1.ASN1Object),ae.asn1.x509.OtherName=function(e){ae.asn1.x509.OtherName.superclass.constructor.call(this);var t=ae.asn1,n=t.DERObjectIdentifier,r=t.DERSequence,i=t.ASN1Util.newObject;this.params=null,this.setByParam=function(e){this.params=e},this.tohex=function(){var e=this.params;if(null==e.oid||null==e.value)throw new Error("oid or value not specified");var t=new n({oid:e.oid}),o=i({tag:{tag:"a0",explicit:!0,obj:e.value}});return new r({array:[t,o]}).tohex()},this.getEncodedHex=function(){return this.tohex()},void 0!==e&&this.setByParam(e)},et(ae.asn1.x509.OtherName,ae.asn1.ASN1Object),ae.asn1.x509.OID=new function(){var e=ae.asn1.DERObjectIdentifier;this.name2oidList={"aes128-CBC":"2.16.840.1.101.3.4.1.2","aes256-CBC":"2.16.840.1.101.3.4.1.42",sha1:"1.3.14.3.2.26",sha256:"2.16.840.1.101.3.4.2.1",sha384:"2.16.840.1.101.3.4.2.2",sha512:"2.16.840.1.101.3.4.2.3",sha224:"2.16.840.1.101.3.4.2.4",md5:"1.2.840.113549.2.5",md2:"1.3.14.7.2.2.1",ripemd160:"1.3.36.3.2.1",hmacWithSHA1:"1.2.840.113549.2.7",hmacWithSHA224:"1.2.840.113549.2.8",hmacWithSHA256:"1.2.840.113549.2.9",hmacWithSHA384:"1.2.840.113549.2.10",hmacWithSHA512:"1.2.840.113549.2.11",MD2withRSA:"1.2.840.113549.1.1.2",MD4withRSA:"1.2.840.113549.1.1.3",MD5withRSA:"1.2.840.113549.1.1.4",SHA1withRSA:"1.2.840.113549.1.1.5","pkcs1-MGF":"1.2.840.113549.1.1.8",rsaPSS:"1.2.840.113549.1.1.10",SHA224withRSA:"1.2.840.113549.1.1.14",SHA256withRSA:"1.2.840.113549.1.1.11",SHA384withRSA:"1.2.840.113549.1.1.12",SHA512withRSA:"1.2.840.113549.1.1.13",SHA1withECDSA:"1.2.840.10045.4.1",SHA224withECDSA:"1.2.840.10045.4.3.1",SHA256withECDSA:"1.2.840.10045.4.3.2",SHA384withECDSA:"1.2.840.10045.4.3.3",SHA512withECDSA:"1.2.840.10045.4.3.4",dsa:"1.2.840.10040.4.1",SHA1withDSA:"1.2.840.10040.4.3",SHA224withDSA:"2.16.840.1.101.3.4.3.1",SHA256withDSA:"2.16.840.1.101.3.4.3.2",rsaEncryption:"1.2.840.113549.1.1.1",commonName:"2.5.4.3",countryName:"2.5.4.6",localityName:"2.5.4.7",stateOrProvinceName:"2.5.4.8",streetAddress:"2.5.4.9",organizationName:"2.5.4.10",organizationalUnitName:"2.5.4.11",domainComponent:"0.9.2342.19200300.100.1.25",userId:"0.9.2342.19200300.100.1.1",surname:"2.5.4.4",givenName:"2.5.4.42",title:"2.5.4.12",distinguishedName:"2.5.4.49",emailAddress:"1.2.840.113549.1.9.1",description:"2.5.4.13",businessCategory:"2.5.4.15",postalCode:"2.5.4.17",uniqueIdentifier:"2.5.4.45",organizationIdentifier:"2.5.4.97",jurisdictionOfIncorporationL:"1.3.6.1.4.1.311.60.2.1.1",jurisdictionOfIncorporationSP:"1.3.6.1.4.1.311.60.2.1.2",jurisdictionOfIncorporationC:"1.3.6.1.4.1.311.60.2.1.3",subjectDirectoryAttributes:"2.5.29.9",subjectKeyIdentifier:"2.5.29.14",keyUsage:"2.5.29.15",subjectAltName:"2.5.29.17",issuerAltName:"2.5.29.18",basicConstraints:"2.5.29.19",cRLNumber:"2.5.29.20",cRLReason:"2.5.29.21",nameConstraints:"2.5.29.30",cRLDistributionPoints:"2.5.29.31",certificatePolicies:"2.5.29.32",anyPolicy:"2.5.29.32.0",policyMappings:"2.5.29.33",authorityKeyIdentifier:"2.5.29.35",policyConstraints:"2.5.29.36",extKeyUsage:"2.5.29.37",inhibitAnyPolicy:"2.5.29.54",authorityInfoAccess:"1.3.6.1.5.5.7.1.1",ocsp:"1.3.6.1.5.5.7.48.1",ocspBasic:"1.3.6.1.5.5.7.48.1.1",ocspNonce:"1.3.6.1.5.5.7.48.1.2",ocspNoCheck:"1.3.6.1.5.5.7.48.1.5",caIssuers:"1.3.6.1.5.5.7.48.2",anyExtendedKeyUsage:"2.5.29.37.0",serverAuth:"1.3.6.1.5.5.7.3.1",clientAuth:"1.3.6.1.5.5.7.3.2",codeSigning:"1.3.6.1.5.5.7.3.3",emailProtection:"1.3.6.1.5.5.7.3.4",timeStamping:"1.3.6.1.5.5.7.3.8",ocspSigning:"1.3.6.1.5.5.7.3.9",smtpUTF8Mailbox:"1.3.6.1.5.5.7.8.9",dateOfBirth:"1.3.6.1.5.5.7.9.1",placeOfBirth:"1.3.6.1.5.5.7.9.2",gender:"1.3.6.1.5.5.7.9.3",countryOfCitizenship:"1.3.6.1.5.5.7.9.4",countryOfResidence:"1.3.6.1.5.5.7.9.5",ecPublicKey:"1.2.840.10045.2.1","P-256":"1.2.840.10045.3.1.7",secp256r1:"1.2.840.10045.3.1.7",secp256k1:"1.3.132.0.10",secp384r1:"1.3.132.0.34",secp521r1:"1.3.132.0.35",pkcs5PBES2:"1.2.840.113549.1.5.13",pkcs5PBKDF2:"1.2.840.113549.1.5.12","des-EDE3-CBC":"1.2.840.113549.3.7",data:"1.2.840.113549.1.7.1","signed-data":"1.2.840.113549.1.7.2","enveloped-data":"1.2.840.113549.1.7.3","digested-data":"1.2.840.113549.1.7.5","encrypted-data":"1.2.840.113549.1.7.6","authenticated-data":"1.2.840.113549.1.9.16.1.2",tstinfo:"1.2.840.113549.1.9.16.1.4",signingCertificate:"1.2.840.113549.1.9.16.2.12",timeStampToken:"1.2.840.113549.1.9.16.2.14",signaturePolicyIdentifier:"1.2.840.113549.1.9.16.2.15",etsArchiveTimeStamp:"1.2.840.113549.1.9.16.2.27",signingCertificateV2:"1.2.840.113549.1.9.16.2.47",etsArchiveTimeStampV2:"1.2.840.113549.1.9.16.2.48",extensionRequest:"1.2.840.113549.1.9.14",contentType:"1.2.840.113549.1.9.3",messageDigest:"1.2.840.113549.1.9.4",signingTime:"1.2.840.113549.1.9.5",counterSignature:"1.2.840.113549.1.9.6",archiveTimeStampV3:"0.4.0.1733.2.4",pdfRevocationInfoArchival:"1.2.840.113583.1.1.8",adobeTimeStamp:"1.2.840.113583.1.1.9.1",smimeMailboxLegacy:"2.23.140.1.5.1.1",smimeMailboxMulti:"2.23.140.1.5.1.2",smimeMailboxStrict:"2.23.140.1.5.1.3",smimeOrganizationLegacy:"2.23.140.1.5.2.1",smimeOrganizationMulti:"2.23.140.1.5.2.2",smimeOrganizationStrict:"2.23.140.1.5.2.3",smimeSponsorLegacy:"2.23.140.1.5.3.1",smimeSponsorMulti:"2.23.140.1.5.3.2",smimeSponsorStrict:"2.23.140.1.5.3.3",smimeIndividualLegacy:"2.23.140.1.5.4.1",smimeIndividualMulti:"2.23.140.1.5.4.2",smimeIndividualStrict:"2.23.140.1.5.4.3"},this.atype2oidList={CN:"2.5.4.3",L:"2.5.4.7",ST:"2.5.4.8",O:"2.5.4.10",OU:"2.5.4.11",C:"2.5.4.6",STREET:"2.5.4.9",DC:"0.9.2342.19200300.100.1.25",UID:"0.9.2342.19200300.100.1.1",SN:"2.5.4.4",T:"2.5.4.12",GN:"2.5.4.42",DN:"2.5.4.49",E:"1.2.840.113549.1.9.1",description:"2.5.4.13",businessCategory:"2.5.4.15",postalCode:"2.5.4.17",serialNumber:"2.5.4.5",uniqueIdentifier:"2.5.4.45",organizationIdentifier:"2.5.4.97",jurisdictionOfIncorporationL:"1.3.6.1.4.1.311.60.2.1.1",jurisdictionOfIncorporationSP:"1.3.6.1.4.1.311.60.2.1.2",jurisdictionOfIncorporationC:"1.3.6.1.4.1.311.60.2.1.3"},this.objCache={},this.name2obj=function(t){if(void 0!==this.objCache[t])return this.objCache[t];if(void 0===this.name2oidList[t])throw"Name of ObjectIdentifier not defined: "+t;var n=this.name2oidList[t],r=new e({oid:n});return this.objCache[t]=r,r},this.atype2obj=function(t){if(void 0!==this.objCache[t])return this.objCache[t];var n;if(t.match(/^\d+\.\d+\.[0-9.]+$/))n=t;else if(void 0!==this.atype2oidList[t])n=this.atype2oidList[t];else{if(void 0===this.name2oidList[t])throw new Error("AttributeType name undefined: "+t);n=this.name2oidList[t]}var r=new e({oid:n});return this.objCache[t]=r,r},this.registerOIDs=function(e){if(this.checkOIDs(e))for(var t in e)this.name2oidList[t]=e[t]},this.checkOIDs=function(e){try{var t=Object.keys(e);return 0!=t.length&&(t.map((function(e,t,n){if(!this[e].match(/^[0-2]\.[0-9.]+$/))throw new Error("value is not OID")}),e),!0)}catch(e){return!1}}},ae.asn1.x509.OID.oid2name=function(e){var t=ae.asn1.x509.OID.name2oidList;for(var n in t)if(t[n]==e)return n;return""},ae.asn1.x509.OID.oid2atype=function(e){var t=ae.asn1.x509.OID.atype2oidList;for(var n in t)if(t[n]==e)return n;return e},ae.asn1.x509.OID.name2oid=function(e){if(e.match(/^[0-9.]+$/))return e;var t=ae.asn1.x509.OID.name2oidList;return void 0===t[e]?"":t[e]},ae.asn1.x509.X509Util={},ae.asn1.x509.X509Util.newCertPEM=function(e){var t=ae.asn1.x509;t.TBSCertificate;return new(0,t.Certificate)(e).getPEM()},void 0!==ae&&ae||(ae={}),void 0!==ae.asn1&&ae.asn1||(ae.asn1={}),void 0!==ae.asn1.cms&&ae.asn1.cms||(ae.asn1.cms={}),ae.asn1.cms.Attribute=function(e){var t=Error,n=ae.asn1,r=n.DERSequence,i=n.DERSet,o=n.DERObjectIdentifier;this.params=null,this.typeOid=null,this.setByParam=function(e){this.params=e},this.getValueArray=function(){throw new t("not yet implemented abstract")},this.tohex=function(){var e=new o({oid:this.typeOid}),t=new i({array:this.getValueArray()});return new r({array:[e,t]}).tohex()},this.getEncodedHex=function(){return this.tohex()}},et(ae.asn1.cms.Attribute,ae.asn1.ASN1Object),ae.asn1.cms.ContentType=function(e){var t=ae.asn1;t.cms.ContentType.superclass.constructor.call(this),this.typeOid="1.2.840.113549.1.9.3",this.getValueArray=function(){return[new t.DERObjectIdentifier(this.params.type)]},null!=e&&this.setByParam(e)},et(ae.asn1.cms.ContentType,ae.asn1.cms.Attribute),ae.asn1.cms.MessageDigest=function(e){var t=ae.asn1,n=t.DEROctetString;t.cms.MessageDigest.superclass.constructor.call(this),this.typeOid="1.2.840.113549.1.9.4",this.getValueArray=function(){return[new n(this.params)]},null!=e&&this.setByParam(e)},et(ae.asn1.cms.MessageDigest,ae.asn1.cms.Attribute),ae.asn1.cms.SigningTime=function(e){var t=ae.asn1;t.cms.SigningTime.superclass.constructor.call(this),this.typeOid="1.2.840.113549.1.9.5",this.getValueArray=function(){return[new t.x509.Time(this.params)]},null!=e&&this.setByParam(e)},et(ae.asn1.cms.SigningTime,ae.asn1.cms.Attribute),ae.asn1.cms.SigningCertificate=function(e){var t=Error,n=ae,r=n.asn1,i=r.DERSequence,o=r.cms,a=o.ESSCertID;n.crypto;o.SigningCertificate.superclass.constructor.call(this),this.typeOid="1.2.840.113549.1.9.16.2.12",this.getValueArray=function(){if(null==this.params||null==this.params||null==this.params.array)throw new t("parameter 'array' not specified");for(var n=this.params.array,r=[],o=0;o<n.length;o++){var s=n[o];0!=e.hasis||"string"!=typeof s||-1==s.indexOf("-----BEGIN")&&!le.isASN1HEX(s)||(s={cert:s}),0!=s.hasis&&0==e.hasis&&(s.hasis=!1),r.push(new a(s))}var u=new i({array:r});return[new i({array:[u]})]},null!=e&&this.setByParam(e)},et(ae.asn1.cms.SigningCertificate,ae.asn1.cms.Attribute),ae.asn1.cms.ESSCertID=function(e){ae.asn1.cms.ESSCertID.superclass.constructor.call(this);var t=Error,n=ae,r=n.asn1,i=r.DEROctetString,o=r.DERSequence,a=r.cms.IssuerSerial;this.params=null,this.getCertHash=function(e,r){if(null!=e.hash)return e.hash;if("string"==typeof e&&-1==e.indexOf("-----BEGIN")&&!le.isASN1HEX(e))return e;var i,o,a;if("string"==typeof e)i=e;else{if(null==e.cert)throw new t("hash nor cert unspecified");i=e.cert}if(o=-1!=i.indexOf("-----BEGIN")?Te(i):i,"string"==typeof e&&(-1!=e.indexOf("-----BEGIN")?o=Te(e):le.isASN1HEX(e)&&(o=e)),null!=e.alg)a=e.alg;else{if(null==r)throw new t("hash alg unspecified");a=r}return n.crypto.Util.hashHex(o,a)},this.tohex=function(){var e=this.params,t=this.getCertHash(e,"sha1"),n=[];return n.push(new i({hex:t})),("string"==typeof e&&-1!=e.indexOf("-----BEGIN")||null!=e.cert&&0!=e.hasis||null!=e.issuer&&null!=e.serial)&&n.push(new a(e)),new o({array:n}).tohex()},this.getEncodedHex=function(){return this.tohex()},null!=e&&this.setByParam(e)},et(ae.asn1.cms.ESSCertID,ae.asn1.ASN1Object),ae.asn1.cms.SigningCertificateV2=function(e){var t=Error,n=ae,r=n.asn1,i=r.DERSequence,o=(r.x509,r.cms),a=o.ESSCertIDv2;n.crypto;o.SigningCertificateV2.superclass.constructor.call(this),this.typeOid="1.2.840.113549.1.9.16.2.47",this.getValueArray=function(){if(null==this.params||null==this.params||null==this.params.array)throw new t("parameter 'array' not specified");for(var n=this.params.array,r=[],o=0;o<n.length;o++){var s=n[o];null==e.alg&&0!=e.hasis||"string"!=typeof s||-1==s.indexOf("-----BEGIN")&&!le.isASN1HEX(s)||(s={cert:s}),null==s.alg&&null!=e.alg&&(s.alg=e.alg),0!=s.hasis&&0==e.hasis&&(s.hasis=!1),r.push(new a(s))}var u=new i({array:r});return[new i({array:[u]})]},null!=e&&this.setByParam(e)},et(ae.asn1.cms.SigningCertificateV2,ae.asn1.cms.Attribute),ae.asn1.cms.ESSCertIDv2=function(e){ae.asn1.cms.ESSCertIDv2.superclass.constructor.call(this);Error;var t=ae.asn1,n=t.DEROctetString,r=t.DERSequence,i=t.cms.IssuerSerial,o=t.x509.AlgorithmIdentifier;this.params=null,this.tohex=function(){var e=this.params,t=this.getCertHash(e,"sha256"),a=[];return null!=e.alg&&"sha256"!=e.alg&&a.push(new o({name:e.alg})),a.push(new n({hex:t})),("string"==typeof e&&-1!=e.indexOf("-----BEGIN")||null!=e.cert&&0!=e.hasis||null!=e.issuer&&null!=e.serial)&&a.push(new i(e)),new r({array:a}).tohex()},this.getEncodedHex=function(){return this.tohex()},null!=e&&this.setByParam(e)},et(ae.asn1.cms.ESSCertIDv2,ae.asn1.cms.ESSCertID),ae.asn1.cms.IssuerSerial=function(e){var t=Error,n=ae.asn1,r=n.DERInteger,i=n.DERSequence,o=n.cms,a=n.x509.GeneralNames,s=ot;o.IssuerSerial.superclass.constructor.call(this),this.setByParam=function(e){this.params=e},this.tohex=function(){var e,n,o=this.params;if("string"==typeof o&&-1!=o.indexOf("-----BEGIN")||null!=o.cert){var u;u=null!=o.cert?o.cert:o;var l=new s;l.readCertPEM(u),e=l.getIssuer(),n={hex:l.getSerialNumberHex()}}else{if(null==o.issuer||!o.serial)throw new t("cert or issuer and serial parameter not specified");e=o.issuer,n=o.serial}var c=new a([{dn:e}]),h=new r(n);return new i({array:[c,h]}).tohex()},this.getEncodedHex=function(){return this.tohex()},null!=e&&this.setByParam(e)},et(ae.asn1.cms.IssuerSerial,ae.asn1.ASN1Object),ae.asn1.cms.SignerIdentifier=function(e){var t=ae.asn1,n=(t.DERInteger,t.DERSequence,t.cms),r=n.IssuerAndSerialNumber,i=n.SubjectKeyIdentifier;t.x509.X500Name,Error;n.SignerIdentifier.superclass.constructor.call(this),this.params=null,this.tohex=function(){var e=this.params;if("isssn"==e.type)return new r(e).tohex();if("skid"==e.type)return new i(e).tohex();throw new Error("wrong property for isssn or skid")},this.getEncodedHex=function(){return this.tohex()},null!=e&&this.setByParam(e)},et(ae.asn1.cms.SignerIdentifier,ae.asn1.ASN1Object),ae.asn1.cms.IssuerAndSerialNumber=function(e){var t=ae.asn1,n=t.DERInteger,r=t.DERSequence,i=t.cms,o=t.x509.X500Name,a=ot,s=Error;i.IssuerAndSerialNumber.superclass.constructor.call(this),this.params=null,this.tohex=function(){var e,t,i=this.params;if("string"==typeof i&&-1!=i.indexOf("-----BEGIN")||null!=i.cert){var u;u=null!=i.cert?i.cert:i;var l=new a;l.readCertPEM(u),e=l.getIssuer(),t={hex:l.getSerialNumberHex()}}else{if(null==i.issuer||!i.serial)throw new s("cert or issuer and serial parameter not specified");e=i.issuer,t=i.serial}var c=new o(e),h=new n(t);return new r({array:[c,h]}).tohex()},this.getEncodedHex=function(){return this.tohex()},this.setByParam=function(e){this.params=e},null!=e&&this.setByParam(e)},et(ae.asn1.cms.IssuerAndSerialNumber,ae.asn1.ASN1Object),ae.asn1.cms.SubjectKeyIdentifier=function(e){var t=ae.asn1,n=(t.DERInteger,t.DERSequence,t.ASN1Util.newObject),r=t.cms,i=(r.IssuerAndSerialName,r.SubjectKeyIdentifier,t.x509.X500Name,ot),o=Error;r.SubjectKeyIdentifier.superclass.constructor.call(this),this.tohex=function(){var e,t=this.params;if(null==t.cert&&null==t.skid)throw new o("property cert nor skid undefined");null!=t.cert?e=new i(t.cert).getExtSubjectKeyIdentifier().kid.hex:null!=t.skid&&(e=t.skid);return n({tag:{tage:"a0",obj:{octstr:{hex:e}}}}).tohex()},this.getEncodedHex=function(){return this.tohex()},null!=e&&this.setByParam(e)},et(ae.asn1.cms.SubjectKeyIdentifier,ae.asn1.ASN1Object),ae.asn1.cms.AttributeList=function(e){var t=Error,n=ae.asn1,r=n.DERSet,i=n.cms;i.AttributeList.superclass.constructor.call(this),this.params=null,this.hTLV=null,this.setByParam=function(e){this.params=e},this.tohex=function(){var e=this.params;if(null!=this.hTLV)return this.hTLV;var n=!0;null!=e.sortflag&&(n=e.sortflag);for(var o=e.array,a=[],s=0;s<o.length;s++){var u=o[s],l=u.attr;if("contentType"==l)a.push(new i.ContentType(u));else if("messageDigest"==l)a.push(new i.MessageDigest(u));else if("signingTime"==l)a.push(new i.SigningTime(u));else if("signingCertificate"==l)a.push(new i.SigningCertificate(u));else if("signingCertificateV2"==l)a.push(new i.SigningCertificateV2(u));else if("signaturePolicyIdentifier"==l)a.push(new ae.asn1.cades.SignaturePolicyIdentifier(u));else{if("signatureTimeStamp"!=l&&"timeStampToken"!=l)throw new t("unknown attr: "+l);a.push(new ae.asn1.cades.SignatureTimeStamp(u))}}var c=new r({array:a,sortflag:n});return this.hTLV=c.tohex(),this.hTLV},this.getEncodedHex=function(){return this.tohex()},null!=e&&this.setByParam(e)},et(ae.asn1.cms.AttributeList,ae.asn1.ASN1Object),ae.asn1.cms.SignerInfo=function(e){var t=Error,n=ae,r=n.asn1,i=r.DERInteger,o=r.DEROctetString,a=r.DERSequence,s=r.DERTaggedObject,u=r.cms,l=u.SignerIdentifier,c=u.AttributeList,h=(u.ContentType,u.EncapsulatedContentInfo,u.MessageDigest,u.SignedData,r.x509.AlgorithmIdentifier),p=n.crypto,f=tt;u.SignerInfo.superclass.constructor.call(this),this.params=null,this.sign=function(){var e=this.params,t=e.sigalg,n=new c(e.sattrs).tohex(),r=f.getKey(e.signkey),i=new p.Signature({alg:t});i.init(r),i.updateHex(n);var o=i.sign();e.sighex=o},this.tohex=function(){var e=this.params,n=[];if(n.push(new i({int:e.version})),n.push(new l(e.id)),n.push(new h({name:e.hashalg})),null!=e.sattrs){var r=new c(e.sattrs);try{n.push(new s({tag:"a0",explicit:!1,obj:r}))}catch(e){throw new t("si sattr error: "+e)}}if(null!=e.sigalgfield?n.push(new h({name:e.sigalgfield})):n.push(new h({name:e.sigalg})),null==e.sighex&&null!=e.signkey&&this.sign(),n.push(new o({hex:e.sighex})),null!=e.uattrs){r=new c(e.uattrs);try{n.push(new s({tag:"a1",explicit:!1,obj:r}))}catch(e){throw new t("si uattr error: "+e)}}return new a({array:n}).tohex()},this.getEncodedHex=function(){return this.tohex()},null!=e&&this.setByParam(e)},et(ae.asn1.cms.SignerInfo,ae.asn1.ASN1Object),ae.asn1.cms.EncapsulatedContentInfo=function(e){var t=ae.asn1,n=t.DERTaggedObject,r=t.DERSequence,i=t.DERObjectIdentifier,o=t.DEROctetString;t.cms.EncapsulatedContentInfo.superclass.constructor.call(this),this.params=null,this.tohex=function(){var e=this.params,t=[];if(t.push(new i(e.type)),null!=e.content&&(null!=e.content.hex||null!=e.content.str)&&1!=e.isDetached){var a=new o(e.content),s=new n({tag:"a0",explicit:!0,obj:a});t.push(s)}return new r({array:t}).tohex()},this.getEncodedHex=function(){return this.tohex()},this.setByParam=function(e){this.params=e},null!=e&&this.setByParam(e)},et(ae.asn1.cms.EncapsulatedContentInfo,ae.asn1.ASN1Object),ae.asn1.cms.ContentInfo=function(e){var t=ae.asn1,n=t.DERTaggedObject,r=t.DERSequence,i=t.DERObjectIdentifier;t.x509.OID.name2obj;ae.asn1.cms.ContentInfo.superclass.constructor.call(this),this.params=null,this.tohex=function(){var e=this.params,t=[];t.push(new i(e.type));var o=new n({tag:"a0",explicit:!0,obj:e.obj});return t.push(o),new r({array:t}).tohex()},this.getEncodedHex=function(){return this.tohex()},this.setByParam=function(e){this.params=e},null!=e&&this.setByParam(e)},et(ae.asn1.cms.ContentInfo,ae.asn1.ASN1Object),ae.asn1.cms.SignedData=function(e){Error;var t=ae.asn1,n=(t.ASN1Object,t.DERInteger),r=t.DERSet,i=t.DERSequence,o=(t.DERTaggedObject,t.cms),a=o.EncapsulatedContentInfo,s=o.SignerInfo,u=o.ContentInfo,l=o.CertificateSet,c=o.RevocationInfoChoices,h=t.x509.AlgorithmIdentifier;ae.asn1.cms.SignedData.superclass.constructor.call(this),this.params=null,this.checkAndFixParam=function(){var e=this.params;this._setDigestAlgs(e),this._setContentTypeByEContent(e),this._setMessageDigestByEContent(e),this._setSignerInfoVersion(e),this._setSignedDataVersion(e)},this._setDigestAlgs=function(e){for(var t={},n=e.sinfos,r=0;r<n.length;r++){t[n[r].hashalg]=1}e.hashalgs=Object.keys(t).sort()},this._setContentTypeByEContent=function(e){for(var t=e.econtent.type,n=e.sinfos,r=0;r<n.length;r++){var i=n[r];this._getAttrParamByName(i,"contentType").type=t}},this._setMessageDigestByEContent=function(e){var t=e.econtent,n=(e.econtent.type,t.content.hex);null==n&&"data"==t.type&&null!=t.content.str&&(n=xe(t.content.str));for(var r=e.sinfos,i=0;i<r.length;i++){var o=r[i],a=o.hashalg,s=this._getAttrParamByName(o,"messageDigest"),u=ae.crypto.Util.hashHex(n,a);s.hex=u}},this._getAttrParamByName=function(e,t){for(var n=e.sattrs.array,r=0;r<n.length;r++)if(n[r].attr==t)return n[r]},this._setSignerInfoVersion=function(e){for(var t=e.sinfos,n=0;n<t.length;n++){var r=t[n],i=1;"skid"==r.id.type&&(i=3),r.version=i}},this._setSignedDataVersion=function(e){var t=this._getSignedDataVersion(e);e.version=t},this._getSignedDataVersion=function(e){if(null!=e.revinfos)for(var t=e.revinfos,n=0;n<t.length;n++){if(null!=t[n].ocsp)return 5}var r=e.sinfos;for(n=0;n<r.length;n++){if(3==e.sinfos[n].version)return 3}return"data"!=e.econtent.type?3:1},this.tohex=function(){var e=this.params;null!=this.getEncodedHexPrepare&&this.getEncodedHexPrepare(),1!=e.fixed&&this.checkAndFixParam();var t=[];t.push(new n({int:e.version}));for(var o=[],u=0;u<e.hashalgs.length;u++){var p=e.hashalgs[u];o.push(new h({name:p}))}t.push(new r({array:o})),t.push(new a(e.econtent)),null!=e.certs&&t.push(new l(e.certs)),null!=e.revinfos&&t.push(new c(e.revinfos));var f=[];for(u=0;u<e.sinfos.length;u++){var d=e.sinfos[u];f.push(new s(d))}return t.push(new r({array:f})),new i({array:t}).tohex()},this.getEncodedHex=function(){return this.tohex()},this.getContentInfo=function(){return new u({type:"signed-data",obj:this})},this.getContentInfoEncodedHex=function(){return this.getContentInfo().tohex()},null!=e&&this.setByParam(e)},et(ae.asn1.cms.SignedData,ae.asn1.ASN1Object),ae.asn1.cms.CertificateSet=function(e){ae.asn1.cms.CertificateSet.superclass.constructor.call(this);var t=Error,n=ae.asn1,r=n.DERTaggedObject,i=n.DERSet,o=n.ASN1Object;this.params=null,this.tohex=function(){var e,n=this.params,a=[];if(n instanceof Array)e=n;else{if(null==n.array)throw new t("cert array not specified");e=n.array}for(var s=0;s<e.length;s++){var u=Te(e[s]),l=new o;l.hTLV=u,a.push(l)}var c={array:a};0==n.sortflag&&(c.sortflag=!1);var h=new i(c);return new r({tag:"a0",explicit:!1,obj:h}).tohex()},this.getEncodedHex=function(){return this.tohex()},null!=e&&this.setByParam(e)},et(ae.asn1.cms.CertificateSet,ae.asn1.ASN1Object),ae.asn1.cms.RevocationInfoChoices=function(e){ae.asn1.cms.RevocationInfoChoices.superclass.constructor.call(this),this.params=null,this.tohex=function(){var e=this.params;if(!e instanceof Array)throw new Error("params is not array");for(var t=[],n=0;n<e.length;n++)t.push(new ae.asn1.cms.RevocationInfoChoice(e[n]));return ae.asn1.ASN1Util.newObject({tag:{tagi:"a1",obj:{set:t}}}).tohex()},this.getEncodedHex=function(){return this.tohex()},null!=e&&this.setByParam(e)},et(ae.asn1.cms.RevocationInfoChoices,ae.asn1.ASN1Object),ae.asn1.cms.RevocationInfoChoice=function(e){ae.asn1.cms.RevocationInfoChoice.superclass.constructor.call(this),this.params=null,this.tohex=function(){var e=this.params;if(null!=e.crl&&"string"==typeof e.crl){var t=e.crl;return-1!=e.crl.indexOf("-----BEGIN")&&(t=Te(e.crl)),t}if(null!=e.ocsp)return ae.asn1.ASN1Util.newObject({tag:{tagi:"a1",obj:new ae.asn1.cms.OtherRevocationFormat(e)}}).tohex();throw new Error("property crl or ocsp undefined")},this.getEncodedHex=function(){return this.tohex()},null!=e&&this.setByParam(e)},et(ae.asn1.cms.RevocationInfoChoice,ae.asn1.ASN1Object),ae.asn1.cms.OtherRevocationFormat=function(e){ae.asn1.cms.OtherRevocationFormat.superclass.constructor.call(this);var t=Error,n=ae,r=n.asn1.ASN1Util.newObject,i=n.lang.String.isHex;this.params=null,this.tohex=function(){var e=this.params;if(null==e.ocsp)throw new t("property ocsp not specified");if(!i(e.ocsp)||!le.isASN1HEX(e.ocsp))throw new t("ocsp value not ASN.1 hex string");return r({seq:[{oid:"1.3.6.1.5.5.7.16.2"},{asn1:{tlv:e.ocsp}}]}).tohex()},this.getEncodedHex=function(){return this.tohex()},null!=e&&this.setByParam(e)},et(ae.asn1.cms.OtherRevocationFormat,ae.asn1.ASN1Object),ae.asn1.cms.CMSUtil=new function(){},ae.asn1.cms.CMSUtil.newSignedData=function(e){return new ae.asn1.cms.SignedData(e)},ae.asn1.cms.CMSUtil.verifySignedData=function(e){var t=ae,n=t.asn1,r=n.cms,i=(r.SignerInfo,r.SignedData,r.SigningTime,r.SigningCertificate,r.SigningCertificateV2,n.cades.SignaturePolicyIdentifier,t.lang.String.isHex),o=le,a=o.getVbyList,s=o.getTLVbyList,u=o.getIdxbyList,l=o.getChildIdx,c=o.getTLV,h=o.oidname,p=t.crypto.Util.hashHex;void 0===e.cms&&i(e.cms);var f=e.cms,d=function(e,t){var n=t.idx;t.signerid_issuer1=s(e,n,[1,0],"30"),t.signerid_serial1=a(e,n,[1,1],"02"),t.hashalg=h(a(e,n,[2,0],"06"));var r=u(e,n,[3],"a0");t.idxSignedAttrs=r,g(e,t,r);var i=l(e,n).length;if(i<6)throw"malformed SignerInfo";t.sigalg=h(a(e,n,[i-2,0],"06")),t.sigval=a(e,n,[i-1],"04")},g=function(e,t,n){var r=l(e,n);t.signedAttrIdxList=r;for(var i=0;i<r.length;i++){var o,s=r[i],u=a(e,s,[0],"06");"2a864886f70d010905"===u?(o=be(a(e,s,[1,0])),t.saSigningTime=o):"2a864886f70d010904"===u&&(o=a(e,s,[1,0],"04"),t.saMessageDigest=o)}},m=function(e,t,n,r){n.verifyDetail={};var i=n.verifyDetail,o=t.parse.econtent,a=n.hashalg,s=n.saMessageDigest;i.validMessageDigest=!1,p(o,a)===s&&(i.validMessageDigest=!0),function(e,t,n,r){var i,o=t.parse.certsIdx;if(void 0===t.certs){i=[],t.certkeys=[];for(var a=l(e,o),s=0;s<a.length;s++){var u=c(e,a[s]),h=new ot;h.readCertHex(u),i[s]=h,t.certkeys[s]=h.getPublicKey()}t.certs=i}else i=t.certs;t.cccc=i.length,t.cccci=a.length;for(s=0;s<i.length;s++){var p=h.getIssuerHex(),f=h.getSerialNumberHex();n.signerid_issuer1===p&&n.signerid_serial1===f&&(n.certkey_idx=s)}}(e,t,n),i.validSignatureValue=!1;var u=n.sigalg,h="31"+c(e,n.idxSignedAttrs).substr(2);n.signedattrshex=h;var f=t.certs[n.certkey_idx].getPublicKey(),d=new ae.crypto.Signature({alg:u});d.init(f),d.updateHex(h);var g=d.verify(n.sigval);i.validSignatureValue_isValid=g,!0===g&&(i.validSignatureValue=!0),n.isValid=!1,i.validMessageDigest&&i.validSignatureValue&&(n.isValid=!0)},v={isValid:!1,parse:{}};return function(e,t){if("2a864886f70d010702"!==a(e,0,[0],"06"))return t;t.cmsType="signedData",t.econtent=a(e,0,[1,0,2,1,0]),function(e,t){for(var n,r=3;r<6;r++)if(void 0!==(n=u(e,0,[1,0,r]))){var i=e.substr(n,2);"a0"===i&&(t.certsIdx=n),"a1"===i&&(t.revinfosIdx=n),"31"===i&&(t.signerinfosIdx=n)}}(e,t),t.signerInfos=[],function(e,t){var n=t.signerinfosIdx;if(void 0!==n){var r=l(e,n);t.signerInfoIdxList=r;for(var i=0;i<r.length;i++){var o={idx:r[i]};d(e,o),t.signerInfos.push(o)}}}(e,t)}(f,v.parse),function(e,t){for(var n=t.parse.signerInfos,r=n.length,i=!0,o=0;o<r;o++){var a=n[o];m(e,t,a,o),a.isValid||(i=!1)}t.isValid=i}(f,v),v},ae.asn1.cms.CMSParser=function(){var e=Error,t=ot,n=new t,r=le,i=r.getV,o=r.getTLV,a=(r.getIdxbyList,r.getTLVbyList),s=r.getTLVbyListEx,u=r.getVbyList,l=r.getVbyListEx,c=r.getChildIdx;this.getCMSSignedData=function(e){var t=a(e,0,[1,0]);return this.getSignedData(t)},this.getSignedData=function(e){var t=c(e,0),n={},r=i(e,t[0]),a=parseInt(r,16);n.version=a;var u=o(e,t[1]);n.hashalgs=this.getHashAlgArray(u);var l=o(e,t[2]);n.econtent=this.getEContent(l);var h=s(e,0,["[0]"]);null!=h&&(n.certs=this.getCertificateSet(h));s(e,0,["[1]"]);var p=s(e,0,[3]);return n.sinfos=this.getSignerInfos(p),n},this.getHashAlgArray=function(e){for(var n=c(e,0),r=new t,i=[],a=0;a<n.length;a++){var s=o(e,n[a]),u=r.getAlgorithmIdentifierName(s);i.push(u)}return i},this.getEContent=function(e){var t={},n=u(e,0,[0]),r=u(e,0,[1,0]);return t.type=ae.asn1.x509.OID.oid2name(le.hextooidstr(n)),t.content={hex:r},t},this.getSignerInfos=function(e){for(var t=[],n=c(e,0),r=0;r<n.length;r++){var i=o(e,n[r]),a=this.getSignerInfo(i);t.push(a)}return t},this.getSignerInfo=function(e){var t={},i=c(e,0),a=r.getInt(e,i[0],-1);-1!=a&&(t.version=a);var u=o(e,i[1]),h=this.getIssuerAndSerialNumber(u);t.id=h;var p=o(e,i[2]),f=n.getAlgorithmIdentifierName(p);t.hashalg=f;var d=s(e,0,["[0]"]);if(null!=d){var g=this.getAttributeList(d);t.sattrs=g}var m=s(e,0,[3]),v=n.getAlgorithmIdentifierName(m);t.sigalg=v;var y=l(e,0,[4]);t.sighex=y;var b=s(e,0,["[1]"]);if(null!=b){var $=this.getAttributeList(b);t.uattrs=$}return t},this.getSignerIdentifier=function(e){if("30"==e.substr(0,2))return this.getIssuerAndSerialNumber(e);throw new Error("SKID of signerIdentifier not supported")},this.getIssuerAndSerialNumber=function(e){var t={type:"isssn"},r=c(e,0),a=o(e,r[0]);t.issuer=n.getX500Name(a);var s=i(e,r[1]);return t.serial={hex:s},t},this.getAttributeList=function(e){for(var t=[],n=c(e,0),r=0;r<n.length;r++){var i=o(e,n[r]),a=this.getAttribute(i);t.push(a)}return{array:t}},this.getAttribute=function(e){var t={},n=c(e,0),i=r.getOID(e,n[0]),a=ae.asn1.x509.OID.oid2name(i);t.attr=a;var s=o(e,n[1]),u=c(s,0);if(1==u.length)t.valhex=o(s,u[0]);else{for(var l=[],h=0;h<u.length;h++)l.push(o(s,u[h]));t.valhex=l}return"contentType"==a?this.setContentType(t):"messageDigest"==a?this.setMessageDigest(t):"signingTime"==a?this.setSigningTime(t):"signingCertificate"==a?this.setSigningCertificate(t):"signingCertificateV2"==a?this.setSigningCertificateV2(t):"signaturePolicyIdentifier"==a&&this.setSignaturePolicyIdentifier(t),t},this.setContentType=function(e){var t=r.getOIDName(e.valhex,0,null);null!=t&&(e.type=t,delete e.valhex)},this.setSigningTime=function(e){var t=be(i(e.valhex,0));e.str=t,delete e.valhex},this.setMessageDigest=function(e){var t=i(e.valhex,0);e.hex=t,delete e.valhex},this.setSigningCertificate=function(e){var t=c(e.valhex,0);if(t.length>0){for(var n=o(e.valhex,t[0]),r=c(n,0),i=[],a=0;a<r.length;a++){var s=o(n,r[a]),u=this.getESSCertID(s);i.push(u)}e.array=i}if(t.length>1){var l=o(e.valhex,t[1]);e.polhex=l}delete e.valhex},this.setSignaturePolicyIdentifier=function(e){var n=c(e.valhex,0);if(n.length>0){var a=r.getOID(e.valhex,n[0]);e.oid=a}if(n.length>1){var s=new t,u=c(e.valhex,n[1]),l=o(e.valhex,u[0]),h=s.getAlgorithmIdentifierName(l);e.alg=h;var p=i(e.valhex,u[1]);e.hash=p}delete e.valhex},this.setSigningCertificateV2=function(e){var t=c(e.valhex,0);if(t.length>0){for(var n=o(e.valhex,t[0]),r=c(n,0),i=[],a=0;a<r.length;a++){var s=o(n,r[a]),u=this.getESSCertIDv2(s);i.push(u)}e.array=i}if(t.length>1){var l=o(e.valhex,t[1]);e.polhex=l}delete e.valhex},this.getESSCertID=function(e){var t={},n=c(e,0);if(n.length>0){var r=i(e,n[0]);t.hash=r}if(n.length>1){var a=o(e,n[1]),s=this.getIssuerSerial(a);null!=s.serial&&(t.serial=s.serial),null!=s.issuer&&(t.issuer=s.issuer)}return t},this.getESSCertIDv2=function(t){var r={},a=c(t,0);if(a.length<1||3<a.length)throw new e("wrong number of elements");var s=0;if("30"==t.substr(a[0],2)){var u=o(t,a[0]);r.alg=n.getAlgorithmIdentifierName(u),s++}else r.alg="sha256";var l=i(t,a[s]);if(r.hash=l,a.length>s+1){var h=o(t,a[s+1]),p=this.getIssuerSerial(h);r.issuer=p.issuer,r.serial=p.serial}return r},this.getIssuerSerial=function(e){var t={},r=c(e,0),a=o(e,r[0]),s=n.getGeneralNames(a)[0].dn;t.issuer=s;var u=i(e,r[1]);return t.serial={hex:u},t},this.getCertificateSet=function(e){for(var t=c(e,0),n=[],r=0;r<t.length;r++){var i=o(e,t[r]);if("30"==i.substr(0,2)){var a=Ce(i,"CERTIFICATE");n.push(a)}}return{array:n,sortflag:!1}}},void 0!==ae&&ae||(ae={}),void 0!==ae.asn1&&ae.asn1||(ae.asn1={}),void 0!==ae.asn1.tsp&&ae.asn1.tsp||(ae.asn1.tsp={}),ae.asn1.tsp.TimeStampToken=function(e){var t=ae.asn1.tsp;t.TimeStampToken.superclass.constructor.call(this),this.params=null,this.getEncodedHexPrepare=function(){var e=new t.TSTInfo(this.params.econtent.content);this.params.econtent.content.hex=e.tohex()},null!=e&&this.setByParam(e)},et(ae.asn1.tsp.TimeStampToken,ae.asn1.cms.SignedData),ae.asn1.tsp.TSTInfo=function(e){Error;var t=ae.asn1,n=t.DERSequence,r=t.DERInteger,i=t.DERBoolean,o=t.DERGeneralizedTime,a=t.DERObjectIdentifier,s=t.DERTaggedObject,u=t.tsp,l=u.MessageImprint,c=u.Accuracy,h=(t.x509.X500Name,t.x509.GeneralName);if(u.TSTInfo.superclass.constructor.call(this),this.dVersion=new r({int:1}),this.dPolicy=null,this.dMessageImprint=null,this.dSerial=null,this.dGenTime=null,this.dAccuracy=null,this.dOrdering=null,this.dNonce=null,this.dTsa=null,this.tohex=function(){var e=[this.dVersion];if(null==this.dPolicy)throw new Error("policy shall be specified.");if(e.push(this.dPolicy),null==this.dMessageImprint)throw new Error("messageImprint shall be specified.");if(e.push(this.dMessageImprint),null==this.dSerial)throw new Error("serialNumber shall be specified.");if(e.push(this.dSerial),null==this.dGenTime)throw new Error("genTime shall be specified.");e.push(this.dGenTime),null!=this.dAccuracy&&e.push(this.dAccuracy),null!=this.dOrdering&&e.push(this.dOrdering),null!=this.dNonce&&e.push(this.dNonce),null!=this.dTsa&&e.push(this.dTsa);var t=new n({array:e});return this.hTLV=t.tohex(),this.hTLV},this.getEncodedHex=function(){return this.tohex()},void 0!==e){if("string"==typeof e.policy){if(!e.policy.match(/^[0-9.]+$/))throw"policy shall be oid like 0.1.4.134";this.dPolicy=new a({oid:e.policy})}void 0!==e.messageImprint&&(this.dMessageImprint=new l(e.messageImprint)),void 0!==e.serial&&(this.dSerial=new r(e.serial)),void 0!==e.genTime&&(this.dGenTime=new o(e.genTime)),void 0!==e.accuracy&&(this.dAccuracy=new c(e.accuracy)),void 0!==e.ordering&&1==e.ordering&&(this.dOrdering=new i),void 0!==e.nonce&&(this.dNonce=new r(e.nonce)),void 0!==e.tsa&&(this.dTsa=new s({tag:"a0",explicit:!0,obj:new h({dn:e.tsa})}))}},et(ae.asn1.tsp.TSTInfo,ae.asn1.ASN1Object),ae.asn1.tsp.Accuracy=function(e){var t=ae.asn1,n=t.ASN1Util.newObject;t.tsp.Accuracy.superclass.constructor.call(this),this.params=null,this.tohex=function(){var e=this.params,t=[];return null!=e.seconds&&"number"==typeof e.seconds&&t.push({int:e.seconds}),null!=e.millis&&"number"==typeof e.millis&&t.push({tag:{tagi:"80",obj:{int:e.millis}}}),null!=e.micros&&"number"==typeof e.micros&&t.push({tag:{tagi:"81",obj:{int:e.micros}}}),n({seq:t}).tohex()},this.getEncodedHex=function(){return this.tohex()},null!=e&&this.setByParam(e)},et(ae.asn1.tsp.Accuracy,ae.asn1.ASN1Object),ae.asn1.tsp.MessageImprint=function(e){var t=ae.asn1,n=t.DERSequence,r=t.DEROctetString,i=t.x509.AlgorithmIdentifier;t.tsp.MessageImprint.superclass.constructor.call(this),this.params=null,this.tohex=function(){var e=this.params,t=new i({name:e.alg}),o=new r({hex:e.hash});return new n({array:[t,o]}).tohex()},this.getEncodedHex=function(){return this.tohex()},void 0!==e&&this.setByParam(e)},et(ae.asn1.tsp.MessageImprint,ae.asn1.ASN1Object),ae.asn1.tsp.TimeStampReq=function(e){var t=ae.asn1,n=t.DERSequence,r=t.DERInteger,i=t.DERBoolean,o=(t.ASN1Object,t.DERObjectIdentifier),a=t.tsp,s=a.MessageImprint;a.TimeStampReq.superclass.constructor.call(this),this.params=null,this.tohex=function(){var e=this.params,t=[];return t.push(new r({int:1})),e.messageImprint instanceof ae.asn1.ASN1Object?t.push(e.messageImprint):t.push(new s(e.messageImprint)),null!=e.policy&&t.push(new o(e.policy)),null!=e.nonce&&t.push(new r(e.nonce)),1==e.certreq&&t.push(new i),new n({array:t}).tohex()},this.getEncodedHex=function(){return this.tohex()},null!=e&&this.setByParam(e)},et(ae.asn1.tsp.TimeStampReq,ae.asn1.ASN1Object),ae.asn1.tsp.TimeStampResp=function(e){var t=ae.asn1,n=t.DERSequence,r=(t.ASN1Object,t.tsp),i=r.PKIStatusInfo;r.TimeStampResp.superclass.constructor.call(this),this.params=null,this.tohex=function(){var e=this.params,o=[];if(null!=e.econtent||null!=e.tst)if(null!=e.statusinfo?o.push(new i(e.statusinfo)):o.push(new i("granted")),null!=e.econtent)o.push(new r.TimeStampToken(e).getContentInfo());else{if(!(e.tst instanceof t.ASN1Object))throw new Error("improper member tst value");o.push(e.tst)}else{if(null==e.statusinfo)throw new Error("parameter for token nor statusinfo not specified");o.push(new i(e.statusinfo))}return new n({array:o}).tohex()},this.getEncodedHex=function(){return this.tohex()},null!=e&&this.setByParam(e)},et(ae.asn1.tsp.TimeStampResp,ae.asn1.ASN1Object),ae.asn1.tsp.PKIStatusInfo=function(e){var t=Error,n=ae.asn1,r=n.DERSequence,i=n.tsp,o=i.PKIStatus,a=i.PKIFreeText,s=i.PKIFailureInfo;i.PKIStatusInfo.superclass.constructor.call(this),this.params=null,this.tohex=function(){var e=this.params,n=[];if("string"==typeof e)n.push(new o(e));else{if(null==e.status)throw new t("property 'status' unspecified");n.push(new o(e.status)),null!=e.statusstr&&n.push(new a(e.statusstr)),null!=e.failinfo&&n.push(new s(e.failinfo))}return new r({array:n}).tohex()},this.getEncodedHex=function(){return this.tohex()},null!=e&&this.setByParam(e)},et(ae.asn1.tsp.PKIStatusInfo,ae.asn1.ASN1Object),ae.asn1.tsp.PKIStatus=function(e){var t=Error,n=ae.asn1,r=n.DERInteger;n.tsp.PKIStatus.superclass.constructor.call(this);var i={granted:0,grantedWithMods:1,rejection:2,waiting:3,revocationWarning:4,revocationNotification:5};this.params=null,this.tohex=function(){var e,n=this.params;if("string"==typeof n)try{e=i[n]}catch(e){throw new t("undefined name: "+n)}else{if("number"!=typeof n)throw new t("unsupported params");e=n}return new r({int:e}).tohex()},this.getEncodedHex=function(){return this.tohex()},null!=e&&this.setByParam(e)},et(ae.asn1.tsp.PKIStatus,ae.asn1.ASN1Object),ae.asn1.tsp.PKIFreeText=function(e){var t=Error,n=ae.asn1,r=n.DERSequence,i=n.DERUTF8String;n.tsp.PKIFreeText.superclass.constructor.call(this),this.params=null,this.tohex=function(){var e=this.params;if(!e instanceof Array)throw new t("wrong params: not array");for(var n=[],o=0;o<e.length;o++)n.push(new i({str:e[o]}));return new r({array:n}).tohex()},this.getEncodedHex=function(){return this.tohex()},null!=e&&this.setByParam(e)},et(ae.asn1.tsp.PKIFreeText,ae.asn1.ASN1Object),ae.asn1.tsp.PKIFailureInfo=function(e){var t=Error,n=ae.asn1,r=n.DERBitString,i=n.tsp.PKIFailureInfo,o={badAlg:0,badRequest:2,badDataFormat:5,timeNotAvailable:14,unacceptedPolicy:15,unacceptedExtension:16,addInfoNotAvailable:17,systemFailure:25};i.superclass.constructor.call(this),this.params=null,this.getBinValue=function(){var e=this.params,n=0;if("number"==typeof e&&0<=e&&e<=25){for(var r=(n|=1<<e).toString(2),i="",a=r.length-1;a>=0;a--)i+=r[a];return i}if("string"==typeof e&&null!=o[e])return Je([e],o);if("object"==typeof e&&null!=e.length)return Je(e,o);throw new t("wrong params")},this.tohex=function(){this.params;var e=this.getBinValue();return new r({bin:e}).tohex()},this.getEncodedHex=function(){return this.tohex()},null!=e&&this.setByParam(e)},et(ae.asn1.tsp.PKIFailureInfo,ae.asn1.ASN1Object),ae.asn1.tsp.AbstractTSAAdapter=function(e){this.getTSTHex=function(e,t){throw"not implemented yet"}},ae.asn1.tsp.SimpleTSAAdapter=function(e){var t=ae,n=t.asn1.tsp,r=t.crypto.Util.hashHex;n.SimpleTSAAdapter.superclass.constructor.call(this),this.params=null,this.serial=0,this.getTSTHex=function(e,t){var i=r(e,t);this.params.econtent.content.messageImprint={alg:t,hash:i},this.params.econtent.content.serial={int:this.serial++};var o=Math.floor(1e9*Math.random());return this.params.econtent.content.nonce={int:o},new n.TimeStampToken(this.params).getContentInfoEncodedHex()},void 0!==e&&(this.params=e)},et(ae.asn1.tsp.SimpleTSAAdapter,ae.asn1.tsp.AbstractTSAAdapter),ae.asn1.tsp.FixedTSAAdapter=function(e){var t=ae,n=t.asn1.tsp,r=t.crypto.Util.hashHex;n.FixedTSAAdapter.superclass.constructor.call(this),this.params=null,this.getTSTHex=function(e,t){var i=r(e,t);return this.params.econtent.content.messageImprint={alg:t,hash:i},new n.TimeStampToken(this.params).getContentInfoEncodedHex()},void 0!==e&&(this.params=e)},et(ae.asn1.tsp.FixedTSAAdapter,ae.asn1.tsp.AbstractTSAAdapter),ae.asn1.tsp.TSPUtil=new function(){},ae.asn1.tsp.TSPUtil.newTimeStampToken=function(e){return new ae.asn1.tsp.TimeStampToken(e)},ae.asn1.tsp.TSPUtil.parseTimeStampReq=function(e){return(new ae.asn1.tsp.TSPParser).getTimeStampReq(e)},ae.asn1.tsp.TSPUtil.parseMessageImprint=function(e){return(new ae.asn1.tsp.TSPParser).getMessageImprint(e)},ae.asn1.tsp.TSPParser=function(){Error;var e=new ot,t=le,n=t.getV,r=t.getTLV,i=t.getIdxbyList,o=(t.getTLVbyListEx,t.getChildIdx),a=["granted","grantedWithMods","rejection","waiting","revocationWarning","revocationNotification"],s={0:"badAlg",2:"badRequest",5:"badDataFormat",14:"timeNotAvailable",15:"unacceptedPolicy",16:"unacceptedExtension",17:"addInfoNotAvailable",25:"systemFailure"};this.getResponse=function(e){var t=o(e,0);if(1==t.length)return this.getPKIStatusInfo(r(e,t[0]));if(t.length>1){var n=this.getPKIStatusInfo(r(e,t[0])),i=r(e,t[1]),a=this.getToken(i);return a.statusinfo=n,a}},this.getToken=function(e){var t=(new ae.asn1.cms.CMSParser).getCMSSignedData(e);return this.setTSTInfo(t),t},this.setTSTInfo=function(e){var t=e.econtent;if("tstinfo"==t.type){var n=t.content.hex,r=this.getTSTInfo(n);t.content=r}},this.getTSTInfo=function(t){var i={},a=o(t,0),s=n(t,a[1]);i.policy=ze(s);var u=r(t,a[2]);i.messageImprint=this.getMessageImprint(u);var l=n(t,a[3]);i.serial={hex:l};var c=n(t,a[4]);i.genTime={str:be(c)};var h=0;if(a.length>5&&"30"==t.substr(a[5],2)){var p=r(t,a[5]);i.accuracy=this.getAccuracy(p),h++}a.length>5+h&&"01"==t.substr(a[5+h],2)&&("ff"==n(t,a[5+h])&&(i.ordering=!0),h++);if(a.length>5+h&&"02"==t.substr(a[5+h],2)){var f=n(t,a[5+h]);i.nonce={hex:f},h++}if(a.length>5+h&&"a0"==t.substr(a[5+h],2)){var d=r(t,a[5+h]);d="30"+d.substr(2),pGeneralNames=e.getGeneralNames(d);var g=pGeneralNames[0].dn;i.tsa=g,h++}if(a.length>5+h&&"a1"==t.substr(a[5+h],2)){var m=r(t,a[5+h]);m="30"+m.substr(2);var v=e.getExtParamArray(m);i.ext=v,h++}return i},this.getAccuracy=function(e){for(var t={},r=o(e,0),i=0;i<r.length;i++){var a=e.substr(r[i],2),s=n(e,r[i]),u=parseInt(s,16);"02"==a?t.seconds=u:"80"==a?t.millis=u:"81"==a&&(t.micros=u)}return t},this.getMessageImprint=function(e){if("30"!=e.substr(0,2))throw new Error("head of messageImprint hex shall be x30");var r={},a=(o(e,0),i(e,0,[0,0])),s=n(e,a),u=t.hextooidstr(s),l=ae.asn1.x509.OID.oid2name(u);if(""==l)throw new Error("hashAlg name undefined: "+u);var c=l,h=i(e,0,[1]);return r.alg=c,r.hash=n(e,h),r},this.getPKIStatusInfo=function(e){var t={},i=o(e,0),s=0;try{var u=n(e,i[0]),l=parseInt(u,16);t.status=a[l]}catch(e){}if(i.length>1&&"30"==e.substr(i[1],2)){var c=r(e,i[1]);t.statusstr=this.getPKIFreeText(c),s++}if(i.length>s&&"03"==e.substr(i[1+s],2)){var h=r(e,i[1+s]);t.failinfo=this.getPKIFailureInfo(h)}return t},this.getPKIFreeText=function(e){for(var n=[],r=o(e,0),i=0;i<r.length;i++)n.push(t.getString(e,r[i]));return n},this.getPKIFailureInfo=function(e){var n=t.getInt(e,0);return null!=s[n]?s[n]:n},this.getTimeStampReq=function(e){var i={certreq:!1},a=o(e,0);if(a.length<2)throw new Error("TimeStampReq must have at least 2 items");var s=r(e,a[1]);i.messageImprint=ae.asn1.tsp.TSPUtil.parseMessageImprint(s);for(var u=2;u<a.length;u++){var l=a[u],c=e.substr(l,2);if("06"==c){var h=n(e,l);i.policy=t.hextooidstr(h)}"02"==c&&(i.nonce=n(e,l)),"01"==c&&(i.certreq=!0)}return i}},void 0!==ae&&ae||(ae={}),void 0!==ae.asn1&&ae.asn1||(ae.asn1={}),void 0!==ae.asn1.cades&&ae.asn1.cades||(ae.asn1.cades={}),ae.asn1.cades.SignaturePolicyIdentifier=function(e){var t=ae.asn1.cades,n=t.SignaturePolicyId;t.SignaturePolicyIdentifier.superclass.constructor.call(this),this.typeOid="1.2.840.113549.1.9.16.2.15",this.params=null,this.getValueArray=function(){return[new n(this.params)]},this.setByParam=function(e){this.params=e},null!=e&&this.setByParam(e)},et(ae.asn1.cades.SignaturePolicyIdentifier,ae.asn1.cms.Attribute),ae.asn1.cades.SignaturePolicyId=function(e){var t=ae.asn1,n=t.DERSequence,r=t.DERObjectIdentifier,i=(t.x509.AlgorithmIdentifier,t.cades),o=i.SignaturePolicyId,a=i.OtherHashAlgAndValue;o.superclass.constructor.call(this),this.params=null,this.tohex=function(){var e=this.params,t=[];return t.push(new r(e.oid)),t.push(new a(e)),new n({array:t}).tohex()},this.getEncodedHex=function(){return this.tohex()},this.setByParam=function(e){this.params=e},null!=e&&this.setByParam(e)},et(ae.asn1.cades.SignaturePolicyId,ae.asn1.ASN1Object),ae.asn1.cades.OtherHashAlgAndValue=function(e){var t=Error,n=ae.asn1,r=n.DERSequence,i=n.DEROctetString,o=n.x509.AlgorithmIdentifier;n.cades.OtherHashAlgAndValue.superclass.constructor.call(this),this.params=null,this.tohex=function(){var e=this.params;if(null==e.alg)throw new t("property 'alg' not specified");if(null==e.hash&&null==e.cert)throw new t("property 'hash' nor 'cert' not specified");var n=null;if(null!=e.hash)n=e.hash;else if(null!=e.cert){if("string"!=typeof e.cert)throw new t("cert not string");var a=e.cert;-1!=e.cert.indexOf("-----BEGIN")&&(a=Te(e.cert)),n=ae.crypto.Util.hashHex(a,e.alg)}var s=[];return s.push(new o({name:e.alg})),s.push(new i({hex:n})),new r({array:s}).tohex()},this.getEncodedHex=function(){return this.tohex()},null!=e&&this.setByParam(e)},et(ae.asn1.cades.OtherHashAlgAndValue,ae.asn1.ASN1Object),ae.asn1.cades.OtherHashValue=function(e){ae.asn1.cades.OtherHashValue.superclass.constructor.call(this);var t=Error,n=ae,r=(n.lang.String.isHex,n.asn1.DEROctetString);n.crypto.Util.hashHex;this.params=null,this.tohex=function(){var e=this.params;if(null==e.hash&&null==e.cert)throw new t("hash or cert not specified");var n=null;if(null!=e.hash)n=e.hash;else if(null!=e.cert){if("string"!=typeof e.cert)throw new t("cert not string");var i=e.cert;-1!=e.cert.indexOf("-----BEGIN")&&(i=Te(e.cert)),n=ae.crypto.Util.hashHex(i,"sha1")}return new r({hex:n}).tohex()},this.getEncodedHex=function(){return this.tohex()},null!=e&&this.setByParam(e)},et(ae.asn1.cades.OtherHashValue,ae.asn1.ASN1Object),ae.asn1.cades.SignatureTimeStamp=function(e){var t=Error,n=ae,r=n.lang.String.isHex,i=n.asn1,o=i.ASN1Object;i.x509;i.cades.SignatureTimeStamp.superclass.constructor.call(this),this.typeOid="1.2.840.113549.1.9.16.2.14",this.params=null,this.getValueArray=function(){var e=this.params;if(null!=e.tst){if(r(e.tst))return(i=new o).hTLV=e.tst,[i];if(e.tst instanceof o)return[e.tst];throw new t("params.tst has wrong value")}if(null!=e.res){var n=e.res;if(n instanceof o&&(n=n.tohex()),"string"!=typeof n||!r(n))throw new t("params.res has wrong value");var i;le.getTLVbyList(n,0,[1]);return(i=new o).hTLV=e.tst,[i]}},null!=e&&this.setByParam(e)},et(ae.asn1.cades.SignatureTimeStamp,ae.asn1.cms.Attribute),ae.asn1.cades.CompleteCertificateRefs=function(e){var t=Error,n=ae,r=n.asn1,i=r.DERSequence,o=r.cades,a=o.OtherCertID,s=n.lang.String.isHex;o.CompleteCertificateRefs.superclass.constructor.call(this),this.typeOid="1.2.840.113549.1.9.16.2.21",this.params=null,this.getValueArray=function(){for(var e=this.params,n=[],r=0;r<e.array.length;r++){var o=e.array[r];if("string"==typeof o)if(-1!=o.indexOf("-----BEGIN"))o={cert:o};else{if(!s(o))throw new t("unsupported value: "+o);o={hash:o}}null!=e.alg&&null==o.alg&&(o.alg=e.alg),null!=e.hasis&&null==o.hasis&&(o.hasis=e.hasis);var u=new a(o);n.push(u)}return[new i({array:n})]},null!=e&&this.setByParam(e)},et(ae.asn1.cades.CompleteCertificateRefs,ae.asn1.cms.Attribute),ae.asn1.cades.OtherCertID=function(e){var t=ae.asn1,n=t.DERSequence,r=t.cms.IssuerSerial,i=t.cades,o=i.OtherHashValue,a=i.OtherHashAlgAndValue;i.OtherCertID.superclass.constructor.call(this),this.params=e,this.tohex=function(){var e=this.params;"string"==typeof e&&(-1!=e.indexOf("-----BEGIN")?e={cert:e}:_isHex(e)&&(e={hash:e}));var t=[],i=null;if(i=null!=e.alg?new a(e):new o(e),t.push(i),null!=e.cert&&1==e.hasis||null!=e.issuer&&null!=e.serial){var s=new r(e);t.push(s)}return new n({array:t}).tohex()},this.getEncodedHex=function(){return this.tohex()},null!=e&&this.setByParam(e)},et(ae.asn1.cades.OtherCertID,ae.asn1.ASN1Object),ae.asn1.cades.OtherHash=function(e){Error;var t=ae,n=t.asn1,r=(n.cms,n.cades),i=r.OtherHashAlgAndValue,o=r.OtherHashValue,a=(t.crypto.Util.hashHex,t.lang.String.isHex);r.OtherHash.superclass.constructor.call(this),this.params=null,this.tohex=function(){var e=this.params;"string"==typeof e&&(-1!=e.indexOf("-----BEGIN")?e={cert:e}:a(e)&&(e={hash:e}));return(null!=e.alg?new i(e):new o(e)).tohex()},this.getEncodedHex=function(){return this.tohex()},null!=e&&this.setByParam(e)},et(ae.asn1.cades.OtherHash,ae.asn1.ASN1Object),ae.asn1.cades.CAdESUtil=new function(){},ae.asn1.cades.CAdESUtil.parseSignedDataForAddingUnsigned=function(e){return(new ae.asn1.cms.CMSParser).getCMSSignedData(e)},ae.asn1.cades.CAdESUtil.parseSignerInfoForAddingUnsigned=function(e,t,n){var r=le,i=r.getChildIdx,o=r.getTLV,a=r.getV,s=ae.asn1,u=s.ASN1Object,l=s.cms,c=l.AttributeList,h=l.SignerInfo,p={},f=i(e,t);if(6!=f.length)throw"not supported items for SignerInfo (!=6)";var d=f.shift();p.version=o(e,d);var g=f.shift();p.si=o(e,g);var m=f.shift();p.digalg=o(e,m);var v=f.shift();p.sattrs=o(e,v);var y=f.shift();p.sigalg=o(e,y);var b=f.shift();p.sig=o(e,b),p.sigval=a(e,b);var $=null;return p.obj=new h,($=new u).hTLV=p.version,p.obj.dCMSVersion=$,($=new u).hTLV=p.si,p.obj.dSignerIdentifier=$,($=new u).hTLV=p.digalg,p.obj.dDigestAlgorithm=$,($=new u).hTLV=p.sattrs,p.obj.dSignedAttrs=$,($=new u).hTLV=p.sigalg,p.obj.dSigAlg=$,($=new u).hTLV=p.sig,p.obj.dSig=$,p.obj.dUnsignedAttrs=new c,p},void 0!==ae.asn1.csr&&ae.asn1.csr||(ae.asn1.csr={}),ae.asn1.csr.CertificationRequest=function(e){var t=ae.asn1,n=t.DERBitString,r=t.DERSequence,i=t.csr,o=(t.x509,i.CertificationRequestInfo);i.CertificationRequest.superclass.constructor.call(this),this.setByParam=function(e){this.params=e},this.sign=function(){var e=new o(this.params).tohex(),t=new ae.crypto.Signature({alg:this.params.sigalg});t.init(this.params.sbjprvkey),t.updateHex(e);var n=t.sign();this.params.sighex=n},this.getPEM=function(){return Ce(this.tohex(),"CERTIFICATE REQUEST")},this.tohex=function(){var e=this.params,t=new ae.asn1.csr.CertificationRequestInfo(this.params),i=new ae.asn1.x509.AlgorithmIdentifier({name:e.sigalg});if(null==e.sighex&&null!=e.sbjprvkey&&this.sign(),null==e.sighex)throw new Error("sighex or sbjprvkey parameter not defined");var o=new n({hex:"00"+e.sighex});return new r({array:[t,i,o]}).tohex()},this.getEncodedHex=function(){return this.tohex()},void 0!==e&&this.setByParam(e)},et(ae.asn1.csr.CertificationRequest,ae.asn1.ASN1Object),ae.asn1.csr.CertificationRequestInfo=function(e){var t=ae.asn1,n=(t.DERBitString,t.DERSequence),r=t.DERInteger,i=t.DERUTF8String,o=t.DERTaggedObject,a=t.ASN1Util.newObject,s=t.csr,u=t.x509,l=u.X500Name,c=u.Extensions,h=u.SubjectPublicKeyInfo;s.AttributeList;s.CertificationRequestInfo.superclass.constructor.call(this),this.params=null,this.setByParam=function(e){null!=e&&(this.params=e)},this.tohex=function(){var e=this.params,t=[];if(t.push(new r({int:0})),t.push(new l(e.subject)),t.push(new h(tt.getKey(e.sbjpubkey))),null!=e.attrs){var s=function(e){for(var t=Error,n=ae.asn1.x509.Extensions,r=[],i=0;i<e.length;i++){var o=e[i],a=o.attr;if("extensionRequest"==a){var s={seq:[{oid:"1.2.840.113549.1.9.14"},{set:[new n(o.ext)]}]};r.push(s)}else if("unstructuredName"==a){s={seq:[{oid:"1.2.840.113549.1.9.2"},{set:o.names}]};r.push(s)}else{if("challengePassword"!=a)throw new t("unknown CSR attribute");s={seq:[{oid:"1.2.840.113549.1.9.7"},{set:[{utf8str:o.password}]}]};r.push(s)}}return{set:r}}(e.attrs),u=a({tag:{tage:"a0",obj:s}});t.push(u)}else if(null!=e.extreq){var p=new c(e.extreq);u=a({tag:{tage:"a0",obj:{seq:[{oid:"1.2.840.113549.1.9.14"},{set:[p]}]}}});t.push(u)}else t.push(new o({tag:"a0",explicit:!1,obj:new i({str:""})}));return new n({array:t}).tohex()},this.getEncodedHex=function(){return this.tohex()},null!=e&&this.setByParam(e)},et(ae.asn1.csr.CertificationRequestInfo,ae.asn1.ASN1Object),ae.asn1.csr.AttributeList=function(e){},et(ae.asn1.csr.AttributeList,ae.asn1.ASN1Object),ae.asn1.csr.CSRUtil=new function(){},ae.asn1.csr.CSRUtil.newCSRPEM=function(e){return new ae.asn1.csr.CertificationRequest(e).getPEM()},ae.asn1.csr.CSRUtil.getParam=function(e,t){var n=le,r=n.getV,i=n.getIdxbyList,o=n.getTLVbyList,a=n.getTLVbyListEx,s=n.getVbyListEx,u={};if(-1==e.indexOf("-----BEGIN CERTIFICATE REQUEST"))throw new Error("argument is not PEM file");var l=Te(e,"CERTIFICATE REQUEST");t&&(u.tbs=o(l,0,[0]));try{var c=a(l,0,[0,1]);if("3000"==c)u.subject={};else{var h=new ot;u.subject=h.getX500Name(c)}}catch(e){}var p=a(l,0,[0,2]),f=tt.getKey(p,null,"pkcs8pub");u.sbjpubkey=tt.getPEM(f,"PKCS8PUB");var d=function(e){var t=i(e,0,[0,3,0,0],"06");return"2a864886f70d01090e"!=r(e,t)?null:o(e,0,[0,3,0,1,0],"30")}(l);h=new ot;null!=d&&(u.extreq=h.getExtParamArray(d));try{var g=a(l,0,[1],"30");h=new ot;u.sigalg=h.getAlgorithmIdentifierName(g)}catch(e){}try{var m=s(l,0,[2]);u.sighex=m}catch(e){}return u},ae.asn1.csr.CSRUtil.verifySignature=function(e){try{var t=null;if("string"==typeof e&&-1!=e.indexOf("-----BEGIN CERTIFICATE REQUEST")?t=ae.asn1.csr.CSRUtil.getParam(e,!0):"object"==typeof e&&null!=e.sbjpubkey&&null!=e.sigalg&&null!=e.sighex&&null!=e.tbs&&(t=e),null==t)return!1;var n=new ae.crypto.Signature({alg:t.sigalg});return n.init(t.sbjpubkey),n.updateHex(t.tbs),n.verify(t.sighex)}catch(e){return alert(e),!1}},void 0!==ae&&ae||(ae={}),void 0!==ae.asn1&&ae.asn1||(ae.asn1={}),void 0!==ae.asn1.ocsp&&ae.asn1.ocsp||(ae.asn1.ocsp={}),ae.asn1.ocsp.DEFAULT_HASH="sha1",ae.asn1.ocsp.OCSPResponse=function(e){ae.asn1.ocsp.OCSPResponse.superclass.constructor.call(this);ae.asn1.DEREnumerated;var t=ae.asn1.ASN1Util.newObject,n=ae.asn1.ocsp.ResponseBytes,r=["successful","malformedRequest","internalError","tryLater","_not_used_","sigRequired","unauthorized"];this.params=null,this._getStatusCode=function(){var e=this.params.resstatus;return"number"==typeof e?e:"string"!=typeof e?-1:r.indexOf(e)},this.setByParam=function(e){this.params=e},this.tohex=function(){var e=this.params,r=this._getStatusCode();if(-1==r)throw new Error("responseStatus not supported: "+e.resstatus);if(0!=r)return t({seq:[{enum:{int:r}}]}).tohex();var i=new n(e);return t({seq:[{enum:{int:0}},{tag:{tag:"a0",explicit:!0,obj:i}}]}).tohex()},this.getEncodedHex=function(){return this.tohex()},void 0!==e&&this.setByParam(e)},et(ae.asn1.ocsp.OCSPResponse,ae.asn1.ASN1Object),ae.asn1.ocsp.ResponseBytes=function(e){ae.asn1.ocsp.ResponseBytes.superclass.constructor.call(this);var t=ae.asn1,n=t.DERSequence,r=t.DERObjectIdentifier,i=t.DEROctetString,o=t.ocsp.BasicOCSPResponse;this.params=null,this.setByParam=function(e){this.params=e},this.tohex=function(){var e=this.params;if("ocspBasic"!=e.restype)throw new Error("not supported responseType: "+e.restype);var t=new o(e),a=[];return a.push(new r({name:"ocspBasic"})),a.push(new i({hex:t.tohex()})),new n({array:a}).tohex()},this.getEncodedHex=function(){return this.tohex()},void 0!==e&&this.setByParam(e)},et(ae.asn1.ocsp.ResponseBytes,ae.asn1.ASN1Object),ae.asn1.ocsp.BasicOCSPResponse=function(e){ae.asn1.ocsp.BasicOCSPResponse.superclass.constructor.call(this);var t=Error,n=ae.asn1,r=n.ASN1Object,i=n.DERSequence,o=(n.DERGeneralizedTime,n.DERTaggedObject),a=n.DERBitString,s=(n.x509.Extensions,n.x509.AlgorithmIdentifier),u=n.ocsp;u.ResponderID;_SingleResponseList=u.SingleResponseList,_ResponseData=u.ResponseData,this.params=null,this.setByParam=function(e){this.params=e},this.sign=function(){var e=this.params,t=e.tbsresp.tohex(),n=new ae.crypto.Signature({alg:e.sigalg});n.init(e.reskey),n.updateHex(t),e.sighex=n.sign()},this.tohex=function(){var e=this.params;null==e.tbsresp&&(e.tbsresp=new _ResponseData(e)),null==e.sighex&&null!=e.reskey&&this.sign();var n=[];if(n.push(e.tbsresp),n.push(new s({name:e.sigalg})),n.push(new a({hex:"00"+e.sighex})),null!=e.certs&&null!=e.certs.length){for(var u=[],l=0;l<e.certs.length;l++){var c=e.certs[l],h=null;if(le.isASN1HEX(c))h=c;else{if(!c.match(/-----BEGIN/))throw new t("certs["+l+"] not hex or PEM");h=Te(c)}u.push(new r({tlv:h}))}var p=new i({array:u});n.push(new o({tag:"a0",explicit:!0,obj:p}))}return new i({array:n}).tohex()},this.getEncodedHex=function(){return this.tohex()},void 0!==e&&this.setByParam(e)},et(ae.asn1.ocsp.BasicOCSPResponse,ae.asn1.ASN1Object),ae.asn1.ocsp.ResponseData=function(e){ae.asn1.ocsp.ResponseData.superclass.constructor.call(this);var t=Error,n=ae.asn1,r=n.DERSequence,i=n.DERGeneralizedTime,o=n.DERTaggedObject,a=n.x509.Extensions,s=n.ocsp,u=s.ResponderID;_SingleResponseList=s.SingleResponseList,this.params=null,this.tohex=function(){var e=this.params;null!=e.respid&&new t("respid not specified"),null!=e.prodat&&new t("prodat not specified"),null!=e.array&&new t("array not specified");var n=[];if(n.push(new u(e.respid)),n.push(new i(e.prodat)),n.push(new _SingleResponseList(e.array)),null!=e.ext){var s=new a(e.ext);n.push(new o({tag:"a1",explicit:!0,obj:s}))}return new r({array:n}).tohex()},this.getEncodedHex=function(){return this.tohex()},this.setByParam=function(e){this.params=e},void 0!==e&&this.setByParam(e)},et(ae.asn1.ocsp.ResponseData,ae.asn1.ASN1Object),ae.asn1.ocsp.ResponderID=function(e){ae.asn1.ocsp.ResponderID.superclass.constructor.call(this);var t=ae,n=t.asn1,r=n.ASN1Util.newObject,i=n.x509.X500Name,o=t.lang.String.isHex,a=Error;this.params=null,this.tohex=function(){var e=this.params;if(null!=e.key){var t,n=null;if("string"==typeof e.key){if(o(e.key)&&(n=e.key),e.key.match(/-----BEGIN CERTIFICATE/))null!=(t=new ot(e.key).getExtSubjectKeyIdentifier())&&(n=t.kid.hex)}else if(e.key instanceof ot)null!=(t=e.key.getExtSubjectKeyIdentifier())&&(n=t.kid.hex);if(null==n)throw new a("wrong key member value");return r({tag:{tag:"a2",explicit:!0,obj:{octstr:{hex:n}}}}).tohex()}if(null!=e.name){var s=null;if("string"==typeof e.name&&e.name.match(/-----BEGIN CERTIFICATE/))s=new ot(e.name).getSubject();else e.name instanceof ot?s=e.name.getSubject():"object"!=typeof e.name||null==e.name.array&&null==e.name.str||(s=e.name);if(null==s)throw new a("wrong name member value");return r({tag:{tag:"a1",explicit:!0,obj:new i(s)}}).tohex()}throw new a("key or name not specified")},this.getEncodedHex=function(){return this.tohex()},this.setByParam=function(e){this.params=e},void 0!==e&&this.setByParam(e)},et(ae.asn1.ocsp.ResponderID,ae.asn1.ASN1Object),ae.asn1.ocsp.SingleResponseList=function(e){ae.asn1.ocsp.SingleResponseList.superclass.constructor.call(this);var t=ae.asn1,n=t.DERSequence,r=t.ocsp.SingleResponse;this.params=null,this.tohex=function(){var e=this.params;if("object"!=typeof e||null==e.length)throw new Error("params not specified properly");for(var t=[],i=0;i<e.length;i++)t.push(new r(e[i]));return new n({array:t}).tohex()},this.getEncodedHex=function(){return this.tohex()},this.setByParam=function(e){this.params=e},void 0!==e&&this.setByParam(e)},et(ae.asn1.ocsp.SingleResponseList,ae.asn1.ASN1Object),ae.asn1.ocsp.SingleResponse=function(e){var t=Error,n=ae.asn1,r=n.DERSequence,i=n.DERGeneralizedTime,o=n.DERTaggedObject,a=n.ocsp,s=a.CertID,u=a.CertStatus,l=n.x509.Extensions;a.SingleResponse.superclass.constructor.call(this),this.params=null,this.tohex=function(){var e=this.params,n=[];if(null==e.certid)throw new t("certid unspecified");if(null==e.status)throw new t("status unspecified");if(null==e.thisupdate)throw new t("thisupdate unspecified");if(n.push(new s(e.certid)),n.push(new u(e.status)),n.push(new i(e.thisupdate)),null!=e.nextupdate){var a=new i(e.nextupdate);n.push(new o({tag:"a0",explicit:!0,obj:a}))}if(null!=e.ext){var c=new l(e.ext);n.push(new o({tag:"a1",explicit:!0,obj:c}))}return new r({array:n}).tohex()},this.getEncodedHex=function(){return this.tohex()},this.setByParam=function(e){this.params=e},void 0!==e&&this.setByParam(e)},et(ae.asn1.ocsp.SingleResponse,ae.asn1.ASN1Object),ae.asn1.ocsp.CertID=function(e){var t=ae,n=t.asn1,r=n.DEROctetString,i=n.DERInteger,o=n.DERSequence,a=n.x509.AlgorithmIdentifier,s=n.ocsp,u=(s.DEFAULT_HASH,t.crypto.Util.hashHex),l=ot,c=le.getVbyList;s.CertID.superclass.constructor.call(this),this.DEFAULT_HASH="sha1",this.params=null,this.setByValue=function(e,t,n,r){null==r&&(r=this.DEFAULT_HASH),this.params={alg:r,issname:e,isskey:t,sbjsn:n}},this.setByCert=function(e,t,n){null==n&&(n=this.DEFAULT_HASH),this.params={alg:n,issuerCert:e,subjectCert:t}},this.getParamByCerts=function(e,t,n){null==n&&(n=this.DEFAULT_HASH);var r=new l(e),i=new l(t),o=u(r.getSubjectHex(),n),a=r.getPublicKeyHex();return{alg:n,issname:o,isskey:u(c(a,0,[1],"03",!0),n),sbjsn:i.getSerialNumberHex()}},this.tohex=function(){if("object"!=typeof this.params)throw new Error("params not set");var e,t,n,s,u=this.params;if(s=null==u.alg?this.DEFAULT_HASH:u.alg,null!=u.issuerCert&&null!=u.subjectCert){var l=this.getParamByCerts(u.issuerCert,u.subjectCert,s);e=l.issname,t=l.isskey,n=l.sbjsn}else{if(null==u.issname||null==u.isskey||null==u.sbjsn)throw new Error("required param members not defined");e=u.issname,t=u.isskey,n=u.sbjsn}var c=new a({name:s}),h=new r({hex:e}),p=new r({hex:t}),f=new i({hex:n}),d=new o({array:[c,h,p,f]});return this.hTLV=d.tohex(),this.hTLV},this.getEncodedHex=function(){return this.tohex()},void 0!==e&&this.setByParam(e)},et(ae.asn1.ocsp.CertID,ae.asn1.ASN1Object),ae.asn1.ocsp.CertStatus=function(e){ae.asn1.ocsp.CertStatus.superclass.constructor.call(this),this.params=null,this.tohex=function(){var e=this.params;if("good"==e.status)return"8000";if("unknown"==e.status)return"8200";if("revoked"==e.status){var t=[{gentime:{str:e.time}}];null!=e.reason&&t.push({tag:{tag:"a0",explicit:!0,obj:{enum:{int:e.reason}}}});var n={tag:"a1",explicit:!1,obj:{seq:t}};return ae.asn1.ASN1Util.newObject({tag:n}).tohex()}throw new Error("bad status")},this.getEncodedHex=function(){return this.tohex()},this.setByParam=function(e){this.params=e},void 0!==e&&this.setByParam(e)},et(ae.asn1.ocsp.CertStatus,ae.asn1.ASN1Object),ae.asn1.ocsp.Request=function(e){var t=ae.asn1,n=t.DERSequence,r=t.ocsp;if(r.Request.superclass.constructor.call(this),this.dReqCert=null,this.dExt=null,this.tohex=function(){var e=[];if(null===this.dReqCert)throw"reqCert not set";e.push(this.dReqCert);var t=new n({array:e});return this.hTLV=t.tohex(),this.hTLV},this.getEncodedHex=function(){return this.tohex()},void 0!==e){var i=new r.CertID(e);this.dReqCert=i}},et(ae.asn1.ocsp.Request,ae.asn1.ASN1Object),ae.asn1.ocsp.TBSRequest=function(e){var t=ae.asn1,n=t.DERSequence,r=t.ocsp;r.TBSRequest.superclass.constructor.call(this),this.version=0,this.dRequestorName=null,this.dRequestList=[],this.dRequestExt=null,this.setRequestListByParam=function(e){for(var t=[],n=0;n<e.length;n++){var i=new r.Request(e[0]);t.push(i)}this.dRequestList=t},this.tohex=function(){var e=[];if(0!==this.version)throw"not supported version: "+this.version;if(null!==this.dRequestorName)throw"requestorName not supported";var t=new n({array:this.dRequestList});if(e.push(t),null!==this.dRequestExt)throw"requestExtensions not supported";var r=new n({array:e});return this.hTLV=r.tohex(),this.hTLV},this.getEncodedHex=function(){return this.tohex()},void 0!==e&&void 0!==e.reqList&&this.setRequestListByParam(e.reqList)},et(ae.asn1.ocsp.TBSRequest,ae.asn1.ASN1Object),ae.asn1.ocsp.OCSPRequest=function(e){var t=ae.asn1,n=t.DERSequence,r=t.ocsp;if(r.OCSPRequest.superclass.constructor.call(this),this.dTbsRequest=null,this.dOptionalSignature=null,this.tohex=function(){var e=[];if(null===this.dTbsRequest)throw"tbsRequest not set";if(e.push(this.dTbsRequest),null!==this.dOptionalSignature)throw"optionalSignature not supported";var t=new n({array:e});return this.hTLV=t.tohex(),this.hTLV},this.getEncodedHex=function(){return this.tohex()},void 0!==e&&void 0!==e.reqList){var i=new r.TBSRequest(e);this.dTbsRequest=i}},et(ae.asn1.ocsp.OCSPRequest,ae.asn1.ASN1Object),ae.asn1.ocsp.OCSPUtil={},ae.asn1.ocsp.OCSPUtil.getRequestHex=function(e,t,n){var r=ae.asn1.ocsp;void 0===n&&(n=r.DEFAULT_HASH);var i={alg:n,issuerCert:e,subjectCert:t};return new r.OCSPRequest({reqList:[i]}).tohex()},ae.asn1.ocsp.OCSPUtil.getOCSPResponseInfo=function(e){var t=le,n=t.getVbyList,r=t.getVbyListEx,i=t.getIdxbyList,o=(t.getIdxbyListEx,t.getV),a={};try{var s=r(e,0,[0],"0a");a.responseStatus=parseInt(s,16)}catch(e){}if(0!==a.responseStatus)return a;try{var u=i(e,0,[1,0,1,0,0,2,0,1]);"80"===e.substr(u,2)?a.certStatus="good":"a1"===e.substr(u,2)?(a.certStatus="revoked",a.revocationTime=be(n(e,u,[0]))):"82"===e.substr(u,2)&&(a.certStatus="unknown")}catch(e){}try{var l=i(e,0,[1,0,1,0,0,2,0,2]);a.thisUpdate=be(o(e,l))}catch(e){}try{var c=i(e,0,[1,0,1,0,0,2,0,3]);"a0"===e.substr(c,2)&&(a.nextUpdate=be(n(e,c,[0])))}catch(e){}return a},ae.asn1.ocsp.OCSPParser=function(){var e=Error,t=ot,n=new t,r=le,i=r.getV,o=r.getTLV,a=r.getIdxbyList,s=r.getVbyList,u=r.getTLVbyList,l=r.getVbyListEx,c=r.getTLVbyListEx,h=r.getChildIdx;this.getOCSPRequest=function(t){var n=h(t,0);if(1!=n.length&&2!=n.length)throw new e("wrong number elements: "+n.length);return this.getTBSRequest(o(t,n[0]))},this.getTBSRequest=function(e){var t={},r=c(e,0,[0],"30");t.array=this.getRequestList(r);var i=c(e,0,["[2]",0],"30");return null!=i&&(t.ext=n.getExtParamArray(i)),t},this.getRequestList=function(e){for(var t=[],n=h(e,0),r=0;r<n.length;r++){e=o(e,n[r]);t.push(this.getRequest(e))}return t},this.getRequest=function(t){var r=h(t,0);if(1!=r.length&&2!=r.length)throw new e("wrong number elements: "+r.length);var i=this.getCertID(o(t,r[0]));if(2==r.length){var s=a(t,0,[1,0]);i.ext=n.getExtParamArray(o(t,s))}return i},this.getCertID=function(n){var r=h(n,0);if(4!=r.length)throw new e("wrong number elements: "+r.length);var a=new t,s={};return s.alg=a.getAlgorithmIdentifierName(o(n,r[0])),s.issname=i(n,r[1]),s.isskey=i(n,r[2]),s.sbjsn=i(n,r[3]),s},this.getOCSPResponse=function(e){var t,n=h(e,0),r=i(e,n[0]),o=parseInt(r);if(1==n.length)return{resstatus:o};var a=u(e,0,[1,0]);return(t=this.getResponseBytes(a)).resstatus=o,t},this.getResponseBytes=function(e){var t,n=h(e,0),r=u(e,0,[1,0]);t=this.getBasicOCSPResponse(r);var o=i(e,n[0]);return t.restype=ae.asn1.x509.OID.oid2name(ze(o)),t},this.getBasicOCSPResponse=function(e){var t,n=h(e,0);t=this.getResponseData(o(e,n[0]));var r=new ot;t.alg=r.getAlgorithmIdentifierName(o(e,n[1]));var a=i(e,n[2]);t.sighex=a.substr(2);var s=l(e,0,["[0]"]);if(null!=s){for(var u=h(s,0),c=[],p=0;p<u.length;p++){var f=o(s,u[p]);c.push(f)}t.certs=c}return t},this.getResponseData=function(e){var t=h(e,0),n=t.length,r={},a=0;"a0"==e.substr(t[0],2)&&a++,r.respid=this.getResponderID(o(e,t[a++]));var s=i(e,t[a++]);if(r.prodat=be(s),r.array=this.getSingleResponseList(o(e,t[a++])),"a1"==e.substr(t[n-1],2)){var l=u(e,t[n-1],[0]),c=new ot;r.ext=c.getExtParamArray(l)}return r},this.getResponderID=function(e){var t={};if("a2"==e.substr(0,2)){var n=s(e,0,[0]);t.key=n}if("a1"==e.substr(0,2)){var r=u(e,0,[0]),i=new ot;t.name=i.getX500Name(r)}return t},this.getSingleResponseList=function(e){for(var t=h(e,0),n=[],r=0;r<t.length;r++){var i=this.getSingleResponse(o(e,t[r]));n.push(i)}return n},this.getSingleResponse=function(e){var t=h(e,0),n={},r=this.getCertID(o(e,t[0]));n.certid=r;var a=this.getCertStatus(o(e,t[1]));if(n.status=a,"18"==e.substr(t[2],2)){var l=i(e,t[2]);n.thisupdate=be(l)}for(var c=3;c<t.length;c++){if("a0"==e.substr(t[c],2)){var p=s(e,t[c],[0],"18");n.nextupdate=be(p)}if("a1"==e.substr(t[c],2)){var f=new ot,d=u(e,0,[c,0]);n.ext=f.getExtParamArray(d)}}return n},this.getCertStatus=function(e){var t={};if("8000"==e)return{status:"good"};if("8200"==e)return{status:"unknown"};if("a1"==e.substr(0,2)){t.status="revoked";var n=be(s(e,0,[0]));t.time=n}return t}},void 0!==ae&&ae||(ae={}),void 0!==ae.lang&&ae.lang||(ae.lang={}),ae.lang.String=function(){},"function"==typeof e?(se=function(t){return de(e.from(t,"utf8").toString("base64"))},ue=function(t){return e.from(ge(t),"base64").toString("utf8")}):(se=function(e){return me(Pe(Be(e)))},ue=function(e){return decodeURIComponent(De(ve(e)))}),ae.lang.String.isInteger=function(e){return!!e.match(/^[0-9]+$/)||!!e.match(/^-[0-9]+$/)},ae.lang.String.isHex=function(e){return Ue(e)},ae.lang.String.isBase64=function(e){return!(!(e=e.replace(/\s+/g,"")).match(/^[0-9A-Za-z+\/]+={0,3}$/)||e.length%4!=0)},ae.lang.String.isBase64URL=function(e){return!e.match(/[+/=]/)&&(e=ge(e),ae.lang.String.isBase64(e))},ae.lang.String.isIntegerArray=function(e){return!!(e=e.replace(/\s+/g,"")).match(/^\[[0-9,]+\]$/)},ae.lang.String.isPrintable=function(e){return null!==e.match(/^[0-9A-Za-z '()+,-./:=?]*$/)},ae.lang.String.isIA5=function(e){return null!==e.match(/^[\x20-\x21\x23-\x7f]*$/)},ae.lang.String.isMail=function(e){return null!==e.match(/^[A-Za-z0-9]{1}[A-Za-z0-9_.-]*@{1}[A-Za-z0-9_.-]{1,}\.[A-Za-z0-9]{1,}$/)};function qe(e){var t=function(e){var t=e.toString(16);return 1==t.length&&(t="0"+t),t},n=function(e){var n="",r=parseInt(e,10).toString(2),i=7-r.length%7;7==i&&(i=0);for(var o="",a=0;a<i;a++)o+="0";r=o+r;for(a=0;a<r.length-1;a+=7){var s=r.substr(a,7);a!=r.length-7&&(s="1"+s),n+=t(parseInt(s,2))}return n};try{if(!e.match(/^[0-9.]+$/))return null;var r="",i=e.split("."),o=40*parseInt(i[0],10)+parseInt(i[1],10);r+=t(o),i.splice(0,2);for(var a=0;a<i.length;a++)r+=n(i[a]);return r}catch(e){return null}}function ze(e){if(!Ue(e))return null;try{var t=[],n=e.substr(0,2),r=parseInt(n,16);t[0]=new String(Math.floor(r/40)),t[1]=new String(r%40);for(var i=e.substr(2),o=[],a=0;a<i.length/2;a++)o.push(parseInt(i.substr(2*a,2),16));var s=[],u="";for(a=0;a<o.length;a++)128&o[a]?u+=We((127&o[a]).toString(2),7):(u+=We((127&o[a]).toString(2),7),s.push(new String(parseInt(u,2))),u="");var l=t.join(".");return s.length>0&&(l=l+"."+s.join(".")),l}catch(e){return null}}function Ke(e){return Ge(new w(String(e),10))}function Ge(e){var t=e.toString(16);if("-"!=t.substr(0,1))return t.length%2==1?t="0"+t:t.match(/^[0-7]/)||(t="00"+t),t;var n=t.substr(1).length;n%2==1?n+=1:t.match(/^[0-7]/)||(n+=2);for(var r="",i=0;i<n;i++)r+="f";return t=new w(r,16).xor(e).add(w.ONE).toString(16).replace(/^-/,"")}var We=function(e,t,n){return null==n&&(n="0"),e.length>=t?e:new Array(t-e.length+1).join(n)+e};function Ye(e){if(e.length%2!=0)return-1;if(null==(e=e.toLowerCase()).match(/^[0-9a-f]+$/))return-1;try{var t=e.substr(0,2);if("00"==t)return parseInt(e.substr(2),16);var n=parseInt(t,16);if(n>7)return-1;var r=e.substr(2),i=parseInt(r,16).toString(2);"0"==i&&(i="00000000"),i=i.slice(0,0-n);var o=parseInt(i,2);return NaN==o?-1:o}catch(e){return-1}}function Xe(e){if("number"!=typeof e)return null;if(e<0)return null;var t=Number(e).toString(2),n=8-t.length%8;8==n&&(n=0),t+=We("",n,"0");var r=parseInt(t,2).toString(16);return r.length%2==1&&(r="0"+r),"0"+n+r}function Qe(e){if("string"!=typeof e)return null;if(e.length%2!=0)return null;if(!e.match(/^[0-9a-f]+$/))return null;try{var t=parseInt(e.substr(0,2),16);if(t<0||7<t)return null;for(var n=e.substr(2),r="",i=0;i<n.length;i+=2){var o=n.substr(i,2),a=parseInt(o,16).toString(2);r+=a=("0000000"+a).slice(-8)}return r.substr(0,r.length-t)}catch(e){return null}}function Je(e,t){for(var n=0,r=0;r<e.length;r++)n|=1<<t[e[r]];var i=n.toString(2),o="";for(r=i.length-1;r>=0;r--)o+=i[r];return o}function Ze(e,t,n){if("object"==typeof e){t=String(t).split(".");for(var r=0;r<t.length&&e;r++){var i=t[r];i.match(/^[0-9]+$/)&&(i=parseInt(i)),e=e[i]}return e||!1===e?e:n}}function et(e,t){var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e,e.superclass=t.prototype,t.prototype.constructor==Object.prototype.constructor&&(t.prototype.constructor=t)}void 0!==ae&&ae||(ae={}),void 0!==ae.crypto&&ae.crypto||(ae.crypto={}),ae.crypto.Util=new function(){this.DIGESTINFOHEAD={sha1:"3021300906052b0e03021a05000414",sha224:"302d300d06096086480165030402040500041c",sha256:"3031300d060960864801650304020105000420",sha384:"3041300d060960864801650304020205000430",sha512:"3051300d060960864801650304020305000440",md2:"3020300c06082a864886f70d020205000410",md5:"3020300c06082a864886f70d020505000410",ripemd160:"3021300906052b2403020105000414"},this.DEFAULTPROVIDER={md5:"cryptojs",sha1:"cryptojs",sha224:"cryptojs",sha256:"cryptojs",sha384:"cryptojs",sha512:"cryptojs",ripemd160:"cryptojs",hmacmd5:"cryptojs",hmacsha1:"cryptojs",hmacsha224:"cryptojs",hmacsha256:"cryptojs",hmacsha384:"cryptojs",hmacsha512:"cryptojs",hmacripemd160:"cryptojs",MD5withRSA:"cryptojs/jsrsa",SHA1withRSA:"cryptojs/jsrsa",SHA224withRSA:"cryptojs/jsrsa",SHA256withRSA:"cryptojs/jsrsa",SHA384withRSA:"cryptojs/jsrsa",SHA512withRSA:"cryptojs/jsrsa",RIPEMD160withRSA:"cryptojs/jsrsa",MD5withECDSA:"cryptojs/jsrsa",SHA1withECDSA:"cryptojs/jsrsa",SHA224withECDSA:"cryptojs/jsrsa",SHA256withECDSA:"cryptojs/jsrsa",SHA384withECDSA:"cryptojs/jsrsa",SHA512withECDSA:"cryptojs/jsrsa",RIPEMD160withECDSA:"cryptojs/jsrsa",SHA1withDSA:"cryptojs/jsrsa",SHA224withDSA:"cryptojs/jsrsa",SHA256withDSA:"cryptojs/jsrsa",MD5withRSAandMGF1:"cryptojs/jsrsa",SHAwithRSAandMGF1:"cryptojs/jsrsa",SHA1withRSAandMGF1:"cryptojs/jsrsa",SHA224withRSAandMGF1:"cryptojs/jsrsa",SHA256withRSAandMGF1:"cryptojs/jsrsa",SHA384withRSAandMGF1:"cryptojs/jsrsa",SHA512withRSAandMGF1:"cryptojs/jsrsa",RIPEMD160withRSAandMGF1:"cryptojs/jsrsa"},this.CRYPTOJSMESSAGEDIGESTNAME={md5:g.algo.MD5,sha1:g.algo.SHA1,sha224:g.algo.SHA224,sha256:g.algo.SHA256,sha384:g.algo.SHA384,sha512:g.algo.SHA512,ripemd160:g.algo.RIPEMD160},this.getDigestInfoHex=function(e,t){if(void 0===this.DIGESTINFOHEAD[t])throw"alg not supported in Util.DIGESTINFOHEAD: "+t;return this.DIGESTINFOHEAD[t]+e},this.getPaddedDigestInfoHex=function(e,t,n){var r=this.getDigestInfoHex(e,t),i=n/4;if(r.length+22>i)throw"key is too short for SigAlg: keylen="+n+","+t;for(var o="0001",a="00"+r,s="",u=i-o.length-a.length,l=0;l<u;l+=2)s+="ff";return o+s+a},this.hashString=function(e,t){return new ae.crypto.MessageDigest({alg:t}).digestString(e)},this.hashHex=function(e,t){return new ae.crypto.MessageDigest({alg:t}).digestHex(e)},this.sha1=function(e){return this.hashString(e,"sha1")},this.sha256=function(e){return this.hashString(e,"sha256")},this.sha256Hex=function(e){return this.hashHex(e,"sha256")},this.sha512=function(e){return this.hashString(e,"sha512")},this.sha512Hex=function(e){return this.hashHex(e,"sha512")},this.isKey=function(e){return e instanceof te||e instanceof ae.crypto.DSA||e instanceof ae.crypto.ECDSA}},ae.crypto.Util.md5=function(e){return new ae.crypto.MessageDigest({alg:"md5",prov:"cryptojs"}).digestString(e)},ae.crypto.Util.ripemd160=function(e){return new ae.crypto.MessageDigest({alg:"ripemd160",prov:"cryptojs"}).digestString(e)},ae.crypto.Util.SECURERANDOMGEN=new Z,ae.crypto.Util.getRandomHexOfNbytes=function(e){var t=new Array(e);return ae.crypto.Util.SECURERANDOMGEN.nextBytes(t),pe(t)},ae.crypto.Util.getRandomBigIntegerOfNbytes=function(e){return new w(ae.crypto.Util.getRandomHexOfNbytes(e),16)},ae.crypto.Util.getRandomHexOfNbits=function(e){var t=e%8,n=new Array((e-t)/8+1);return ae.crypto.Util.SECURERANDOMGEN.nextBytes(n),n[0]=(255<<t&255^255)&n[0],pe(n)},ae.crypto.Util.getRandomBigIntegerOfNbits=function(e){return new w(ae.crypto.Util.getRandomHexOfNbits(e),16)},ae.crypto.Util.getRandomBigIntegerZeroToMax=function(e){for(var t=e.bitLength();;){var n=ae.crypto.Util.getRandomBigIntegerOfNbits(t);if(-1!=e.compareTo(n))return n}},ae.crypto.Util.getRandomBigIntegerMinToMax=function(e,t){var n=e.compareTo(t);if(1==n)throw"biMin is greater than biMax";if(0==n)return e;var r=t.subtract(e);return ae.crypto.Util.getRandomBigIntegerZeroToMax(r).add(e)},ae.crypto.MessageDigest=function(e){this.setAlgAndProvider=function(e,t){if(null!==(e=ae.crypto.MessageDigest.getCanonicalAlgName(e))&&void 0===t&&(t=ae.crypto.Util.DEFAULTPROVIDER[e]),-1!=":md5:sha1:sha224:sha256:sha384:sha512:ripemd160:".indexOf(e)&&"cryptojs"==t){try{this.md=ae.crypto.Util.CRYPTOJSMESSAGEDIGESTNAME[e].create()}catch(t){throw"setAlgAndProvider hash alg set fail alg="+e+"/"+t}this.updateString=function(e){this.md.update(e)},this.updateHex=function(e){var t=g.enc.Hex.parse(e);this.md.update(t)},this.digest=function(){return this.md.finalize().toString(g.enc.Hex)},this.digestString=function(e){return this.updateString(e),this.digest()},this.digestHex=function(e){return this.updateHex(e),this.digest()}}if(-1!=":sha256:".indexOf(e)&&"sjcl"==t){try{this.md=new sjcl.hash.sha256}catch(t){throw"setAlgAndProvider hash alg set fail alg="+e+"/"+t}this.updateString=function(e){this.md.update(e)},this.updateHex=function(e){var t=sjcl.codec.hex.toBits(e);this.md.update(t)},this.digest=function(){var e=this.md.finalize();return sjcl.codec.hex.fromBits(e)},this.digestString=function(e){return this.updateString(e),this.digest()},this.digestHex=function(e){return this.updateHex(e),this.digest()}}},this.updateString=function(e){throw"updateString(str) not supported for this alg/prov: "+this.algName+"/"+this.provName},this.updateHex=function(e){throw"updateHex(hex) not supported for this alg/prov: "+this.algName+"/"+this.provName},this.digest=function(){throw"digest() not supported for this alg/prov: "+this.algName+"/"+this.provName},this.digestString=function(e){throw"digestString(str) not supported for this alg/prov: "+this.algName+"/"+this.provName},this.digestHex=function(e){throw"digestHex(hex) not supported for this alg/prov: "+this.algName+"/"+this.provName},void 0!==e&&void 0!==e.alg&&(this.algName=e.alg,void 0===e.prov&&(this.provName=ae.crypto.Util.DEFAULTPROVIDER[this.algName]),this.setAlgAndProvider(this.algName,this.provName))},ae.crypto.MessageDigest.getCanonicalAlgName=function(e){return"string"==typeof e&&(e=(e=e.toLowerCase()).replace(/-/,"")),e},ae.crypto.MessageDigest.getHashLength=function(e){var t=ae.crypto.MessageDigest,n=t.getCanonicalAlgName(e);if(void 0===t.HASHLENGTH[n])throw"not supported algorithm: "+e;return t.HASHLENGTH[n]},ae.crypto.MessageDigest.HASHLENGTH={md5:16,sha1:20,sha224:28,sha256:32,sha384:48,sha512:64,ripemd160:20},ae.crypto.Mac=function(e){this.setAlgAndProvider=function(e,t){if(null==(e=e.toLowerCase())&&(e="hmacsha1"),"hmac"!=(e=e.toLowerCase()).substr(0,4))throw"setAlgAndProvider unsupported HMAC alg: "+e;void 0===t&&(t=ae.crypto.Util.DEFAULTPROVIDER[e]),this.algProv=e+"/"+t;var n=e.substr(4);if(-1!=":md5:sha1:sha224:sha256:sha384:sha512:ripemd160:".indexOf(n)&&"cryptojs"==t){try{var r=ae.crypto.Util.CRYPTOJSMESSAGEDIGESTNAME[n];this.mac=g.algo.HMAC.create(r,this.pass)}catch(e){throw"setAlgAndProvider hash alg set fail hashAlg="+n+"/"+e}this.updateString=function(e){this.mac.update(e)},this.updateHex=function(e){var t=g.enc.Hex.parse(e);this.mac.update(t)},this.doFinal=function(){return this.mac.finalize().toString(g.enc.Hex)},this.doFinalString=function(e){return this.updateString(e),this.doFinal()},this.doFinalHex=function(e){return this.updateHex(e),this.doFinal()}}},this.updateString=function(e){throw"updateString(str) not supported for this alg/prov: "+this.algProv},this.updateHex=function(e){throw"updateHex(hex) not supported for this alg/prov: "+this.algProv},this.doFinal=function(){throw"digest() not supported for this alg/prov: "+this.algProv},this.doFinalString=function(e){throw"digestString(str) not supported for this alg/prov: "+this.algProv},this.doFinalHex=function(e){throw"digestHex(hex) not supported for this alg/prov: "+this.algProv},this.setPassword=function(e){if("string"==typeof e){var t=e;return e.length%2!=1&&e.match(/^[0-9A-Fa-f]+$/)||(t=xe(e)),void(this.pass=g.enc.Hex.parse(t))}if("object"!=typeof e)throw"KJUR.crypto.Mac unsupported password type: "+e;t=null;if(void 0!==e.hex){if(e.hex.length%2!=0||!e.hex.match(/^[0-9A-Fa-f]+$/))throw"Mac: wrong hex password: "+e.hex;t=e.hex}if(void 0!==e.utf8&&(t=ye(e.utf8)),void 0!==e.rstr&&(t=xe(e.rstr)),void 0!==e.b64&&(t=b(e.b64)),void 0!==e.b64u&&(t=ve(e.b64u)),null==t)throw"KJUR.crypto.Mac unsupported password type: "+e;this.pass=g.enc.Hex.parse(t)},void 0!==e&&(void 0!==e.pass&&this.setPassword(e.pass),void 0!==e.alg&&(this.algName=e.alg,void 0===e.prov&&(this.provName=ae.crypto.Util.DEFAULTPROVIDER[this.algName]),this.setAlgAndProvider(this.algName,this.provName)))},ae.crypto.Signature=function(e){var t=null;if(this._setAlgNames=function(){var e=this.algName.match(/^(.+)with(.+)$/);e&&(this.mdAlgName=e[1].toLowerCase(),this.pubkeyAlgName=e[2].toLowerCase(),"rsaandmgf1"==this.pubkeyAlgName&&"sha"==this.mdAlgName&&(this.mdAlgName="sha1"))},this._zeroPaddingOfSignature=function(e,t){for(var n="",r=t/4-e.length,i=0;i<r;i++)n+="0";return n+e},this.setAlgAndProvider=function(e,t){if(this._setAlgNames(),"cryptojs/jsrsa"!=t)throw new Error("provider not supported: "+t);if(-1!=":md5:sha1:sha224:sha256:sha384:sha512:ripemd160:".indexOf(this.mdAlgName)){try{this.md=new ae.crypto.MessageDigest({alg:this.mdAlgName})}catch(e){throw new Error("setAlgAndProvider hash alg set fail alg="+this.mdAlgName+"/"+e)}this.init=function(e,t){var n=null;try{n=void 0===t?tt.getKey(e):tt.getKey(e,t)}catch(e){throw"init failed:"+e}if(!0===n.isPrivate)this.prvKey=n,this.state="SIGN";else{if(!0!==n.isPublic)throw"init failed.:"+n;this.pubKey=n,this.state="VERIFY"}},this.updateString=function(e){this.md.updateString(e)},this.updateHex=function(e){this.md.updateHex(e)},this.sign=function(){if(this.sHashHex=this.md.digest(),void 0===this.prvKey&&void 0!==this.ecprvhex&&void 0!==this.eccurvename&&void 0!==ae.crypto.ECDSA&&(this.prvKey=new ae.crypto.ECDSA({curve:this.eccurvename,prv:this.ecprvhex})),this.prvKey instanceof te&&"rsaandmgf1"===this.pubkeyAlgName)this.hSign=this.prvKey.signWithMessageHashPSS(this.sHashHex,this.mdAlgName,this.pssSaltLen);else if(this.prvKey instanceof te&&"rsa"===this.pubkeyAlgName)this.hSign=this.prvKey.signWithMessageHash(this.sHashHex,this.mdAlgName);else if(this.prvKey instanceof ae.crypto.ECDSA)this.hSign=this.prvKey.signWithMessageHash(this.sHashHex);else{if(!(this.prvKey instanceof ae.crypto.DSA))throw"Signature: unsupported private key alg: "+this.pubkeyAlgName;this.hSign=this.prvKey.signWithMessageHash(this.sHashHex)}return this.hSign},this.signString=function(e){return this.updateString(e),this.sign()},this.signHex=function(e){return this.updateHex(e),this.sign()},this.verify=function(e){if(this.sHashHex=this.md.digest(),void 0===this.pubKey&&void 0!==this.ecpubhex&&void 0!==this.eccurvename&&void 0!==ae.crypto.ECDSA&&(this.pubKey=new ae.crypto.ECDSA({curve:this.eccurvename,pub:this.ecpubhex})),this.pubKey instanceof te&&"rsaandmgf1"===this.pubkeyAlgName)return this.pubKey.verifyWithMessageHashPSS(this.sHashHex,e,this.mdAlgName,this.pssSaltLen);if(this.pubKey instanceof te&&"rsa"===this.pubkeyAlgName)return this.pubKey.verifyWithMessageHash(this.sHashHex,e);if(void 0!==ae.crypto.ECDSA&&this.pubKey instanceof ae.crypto.ECDSA)return this.pubKey.verifyWithMessageHash(this.sHashHex,e);if(void 0!==ae.crypto.DSA&&this.pubKey instanceof ae.crypto.DSA)return this.pubKey.verifyWithMessageHash(this.sHashHex,e);throw"Signature: unsupported public key alg: "+this.pubkeyAlgName}}},this.init=function(e,t){throw"init(key, pass) not supported for this alg:prov="+this.algProvName},this.updateString=function(e){throw"updateString(str) not supported for this alg:prov="+this.algProvName},this.updateHex=function(e){throw"updateHex(hex) not supported for this alg:prov="+this.algProvName},this.sign=function(){throw"sign() not supported for this alg:prov="+this.algProvName},this.signString=function(e){throw"digestString(str) not supported for this alg:prov="+this.algProvName},this.signHex=function(e){throw"digestHex(hex) not supported for this alg:prov="+this.algProvName},this.verify=function(e){throw"verify(hSigVal) not supported for this alg:prov="+this.algProvName},this.initParams=e,void 0!==e&&(void 0!==e.alg&&(this.algName=e.alg,void 0===e.prov?this.provName=ae.crypto.Util.DEFAULTPROVIDER[this.algName]:this.provName=e.prov,this.algProvName=this.algName+":"+this.provName,this.setAlgAndProvider(this.algName,this.provName),this._setAlgNames()),void 0!==e.psssaltlen&&(this.pssSaltLen=e.psssaltlen),void 0!==e.prvkeypem)){if(void 0!==e.prvkeypas)throw"both prvkeypem and prvkeypas parameters not supported";try{t=tt.getKey(e.prvkeypem);this.init(t)}catch(e){throw"fatal error to load pem private key: "+e}}},ae.crypto.Cipher=function(e){},ae.crypto.Cipher.encrypt=function(e,t,n,r){if(null!=Ze(r,"enclag")&&(n=r.encalg),"string"==typeof n&&"-CBC"==n.substr(-4)){var i=t,o=e;null!=Ze(r,"key")&&(i=r.key),null!=Ze(r,"enc")&&(hEnc=r.enc);var a,s=g.enc.Hex.parse(i),u=g.enc.Hex.parse(o),l=g.enc.Hex.parse(r.iv);if("des-EDE3-CBC"==n)a=g.TripleDES.encrypt(u,s,{iv:l});else{if("aes128-CBC"!=n&&"aes256-CBC"!=n)throw new Error("unsupported algorithm: "+n);a=g.AES.encrypt(u,s,{iv:l})}return a+""}throw new Error("Cipher.encrypt: unsupported key or algorithm")},ae.crypto.Cipher.decrypt=function(e,t,n,r){if(null!=Ze(r,"enclag")&&(n=r.encalg),"string"==typeof n&&"-CBC"==n.substr(-4)){var i=t,o=e;null!=Ze(r,"key")&&(i=r.key),null!=Ze(r,"enc")&&(o=r.enc);var a,s=g.enc.Hex.parse(i),u=g.enc.Hex.parse(o),l=g.enc.Hex.parse(r.iv);if("des-EDE3-CBC"==n)a=g.TripleDES.decrypt({ciphertext:u},s,{iv:l});else{if("aes128-CBC"!=n&&"aes256-CBC"!=n)throw new Error("unsupported algorithm: "+n);a=g.AES.decrypt({ciphertext:u},s,{iv:l})}return g.enc.Hex.stringify(a)}throw new Error("Cipher.decrypt: unsupported key or algorithm")},ae.crypto.OID=new function(){this.oidhex2name={"2a864886f70d010101":"rsaEncryption","2a8648ce3d0201":"ecPublicKey","2a8648ce380401":"dsa","2a8648ce3d030107":"secp256r1","2b8104001f":"secp192k1","2b81040021":"secp224r1","2b8104000a":"secp256k1","2b81040022":"secp384r1","2b81040023":"secp521r1","2a8648ce380403":"SHA1withDSA","608648016503040301":"SHA224withDSA","608648016503040302":"SHA256withDSA"}},void 0!==ae&&ae||(ae={}),void 0!==ae.crypto&&ae.crypto||(ae.crypto={}),ae.crypto.ECDSA=function(e){var t=Error,n=w,r=re,i=ae.crypto.ECDSA,o=ae.crypto.ECParameterDB,a=i.getName,s=le,u=s.getVbyListEx,l=s.isASN1HEX,c=new Z;this.type="EC",this.isPrivate=!1,this.isPublic=!1,this.getBigRandom=function(e){return new n(e.bitLength(),c).mod(e.subtract(n.ONE)).add(n.ONE)},this.setNamedCurve=function(e){this.ecparams=o.getByName(e),this.prvKeyHex=null,this.pubKeyHex=null,this.curveName=e},this.setPrivateKeyHex=function(e){this.isPrivate=!0,this.prvKeyHex=e},this.setPublicKeyHex=function(e){this.isPublic=!0,this.pubKeyHex=e},this.getPublicKeyXYHex=function(){var e=this.pubKeyHex;if("04"!==e.substr(0,2))throw"this method supports uncompressed format(04) only";var t=this.ecparams.keycharlen;if(e.length!==2+2*t)throw"malformed public key hex length";var n={};return n.x=e.substr(2,t),n.y=e.substr(2+t),n},this.getShortNISTPCurveName=function(){var e=this.curveName;return"secp256r1"===e||"NIST P-256"===e||"P-256"===e||"prime256v1"===e?"P-256":"secp384r1"===e||"NIST P-384"===e||"P-384"===e?"P-384":"secp521r1"===e||"NIST P-521"===e||"P-521"===e?"P-521":null},this.generateKeyPairHex=function(){var e=this.ecparams.n,t=this.getBigRandom(e),n=this.ecparams.keycharlen,r=("0000000000"+t.toString(16)).slice(-n);return this.setPrivateKeyHex(r),{ecprvhex:r,ecpubhex:this.generatePublicKeyHex()}},this.generatePublicKeyHex=function(){var e=new n(this.prvKeyHex,16),t=this.ecparams.G.multiply(e),r=t.getX().toBigInteger(),i=t.getY().toBigInteger(),o=this.ecparams.keycharlen,a="04"+("0000000000"+r.toString(16)).slice(-o)+("0000000000"+i.toString(16)).slice(-o);return this.setPublicKeyHex(a),a},this.signWithMessageHash=function(e){return this.signHex(e,this.prvKeyHex)},this.signHex=function(e,t){var r=new n(t,16),o=this.ecparams.n,a=new n(e.substring(0,this.ecparams.keycharlen),16);do{var s=this.getBigRandom(o),u=this.ecparams.G.multiply(s).getX().toBigInteger().mod(o)}while(u.compareTo(n.ZERO)<=0);var l=s.modInverse(o).multiply(a.add(r.multiply(u))).mod(o);return i.biRSSigToASN1Sig(u,l)},this.sign=function(e,t){var r=t,i=this.ecparams.n,o=n.fromByteArrayUnsigned(e);do{var a=this.getBigRandom(i),s=this.ecparams.G.multiply(a).getX().toBigInteger().mod(i)}while(s.compareTo(w.ZERO)<=0);var u=a.modInverse(i).multiply(o.add(r.multiply(s))).mod(i);return this.serializeSig(s,u)},this.verifyWithMessageHash=function(e,t){return this.verifyHex(e,t,this.pubKeyHex)},this.verifyHex=function(e,t,o){try{var a,s,u=i.parseSigHex(t);a=u.r,s=u.s;var l=r.decodeFromHex(this.ecparams.curve,o),c=new n(e.substring(0,this.ecparams.keycharlen),16);return this.verifyRaw(c,a,s,l)}catch(e){return!1}},this.verify=function(e,t,i){var o,a,s;if(Bitcoin.Util.isArray(t)){var u=this.parseSig(t);o=u.r,a=u.s}else{if("object"!=typeof t||!t.r||!t.s)throw"Invalid value for signature";o=t.r,a=t.s}if(i instanceof re)s=i;else{if(!Bitcoin.Util.isArray(i))throw"Invalid format for pubkey value, must be byte array or ECPointFp";s=r.decodeFrom(this.ecparams.curve,i)}var l=n.fromByteArrayUnsigned(e);return this.verifyRaw(l,o,a,s)},this.verifyRaw=function(e,t,r,i){var o=this.ecparams.n,a=this.ecparams.G;if(t.compareTo(n.ONE)<0||t.compareTo(o)>=0)return!1;if(r.compareTo(n.ONE)<0||r.compareTo(o)>=0)return!1;var s=r.modInverse(o),u=e.multiply(s).mod(o),l=t.multiply(s).mod(o);return a.multiply(u).add(i.multiply(l)).getX().toBigInteger().mod(o).equals(t)},this.serializeSig=function(e,t){var n=e.toByteArraySigned(),r=t.toByteArraySigned(),i=[];return i.push(2),i.push(n.length),(i=i.concat(n)).push(2),i.push(r.length),(i=i.concat(r)).unshift(i.length),i.unshift(48),i},this.parseSig=function(e){var t;if(48!=e[0])throw new Error("Signature not a valid DERSequence");if(2!=e[t=2])throw new Error("First element in signature must be a DERInteger");var r=e.slice(t+2,t+2+e[t+1]);if(2!=e[t+=2+e[t+1]])throw new Error("Second element in signature must be a DERInteger");var i=e.slice(t+2,t+2+e[t+1]);return t+=2+e[t+1],{r:n.fromByteArrayUnsigned(r),s:n.fromByteArrayUnsigned(i)}},this.parseSigCompact=function(e){if(65!==e.length)throw"Signature has the wrong length";var t=e[0]-27;if(t<0||t>7)throw"Invalid signature type";var r=this.ecparams.n;return{r:n.fromByteArrayUnsigned(e.slice(1,33)).mod(r),s:n.fromByteArrayUnsigned(e.slice(33,65)).mod(r),i:t}},this.readPKCS5PrvKeyHex=function(e){if(!1===l(e))throw new Error("not ASN.1 hex string");var t,n,r;try{t=u(e,0,["[0]",0],"06"),n=u(e,0,[1],"04");try{r=u(e,0,["[1]",0],"03")}catch(e){}}catch(e){throw new Error("malformed PKCS#1/5 plain ECC private key")}if(this.curveName=a(t),void 0===this.curveName)throw"unsupported curve name";this.setNamedCurve(this.curveName),this.setPublicKeyHex(r),this.setPrivateKeyHex(n),this.isPublic=!1},this.readPKCS8PrvKeyHex=function(e){if(!1===l(e))throw new t("not ASN.1 hex string");var n,r,i;try{u(e,0,[1,0],"06"),n=u(e,0,[1,1],"06"),r=u(e,0,[2,0,1],"04");try{i=u(e,0,[2,0,"[1]",0],"03")}catch(e){}}catch(e){throw new t("malformed PKCS#8 plain ECC private key")}if(this.curveName=a(n),void 0===this.curveName)throw new t("unsupported curve name");this.setNamedCurve(this.curveName),this.setPublicKeyHex(i),this.setPrivateKeyHex(r),this.isPublic=!1},this.readPKCS8PubKeyHex=function(e){if(!1===l(e))throw new t("not ASN.1 hex string");var n,r;try{u(e,0,[0,0],"06"),n=u(e,0,[0,1],"06"),r=u(e,0,[1],"03")}catch(e){throw new t("malformed PKCS#8 ECC public key")}if(this.curveName=a(n),null===this.curveName)throw new t("unsupported curve name");this.setNamedCurve(this.curveName),this.setPublicKeyHex(r)},this.readCertPubKeyHex=function(e,n){if(!1===l(e))throw new t("not ASN.1 hex string");var r,i;try{r=u(e,0,[0,5,0,1],"06"),i=u(e,0,[0,5,1],"03")}catch(e){throw new t("malformed X.509 certificate ECC public key")}if(this.curveName=a(r),null===this.curveName)throw new t("unsupported curve name");this.setNamedCurve(this.curveName),this.setPublicKeyHex(i)},void 0!==e&&void 0!==e.curve&&(this.curveName=e.curve),void 0===this.curveName&&(this.curveName="secp256r1"),this.setNamedCurve(this.curveName),void 0!==e&&(void 0!==e.prv&&this.setPrivateKeyHex(e.prv),void 0!==e.pub&&this.setPublicKeyHex(e.pub))},ae.crypto.ECDSA.parseSigHex=function(e){var t=ae.crypto.ECDSA.parseSigHexInHexRS(e);return{r:new w(t.r,16),s:new w(t.s,16)}},ae.crypto.ECDSA.parseSigHexInHexRS=function(e){var t=le,n=t.getChildIdx,r=t.getV;if(t.checkStrictDER(e,0),"30"!=e.substr(0,2))throw new Error("signature is not a ASN.1 sequence");var i=n(e,0);if(2!=i.length)throw new Error("signature shall have two elements");var o=i[0],a=i[1];if("02"!=e.substr(o,2))throw new Error("1st item not ASN.1 integer");if("02"!=e.substr(a,2))throw new Error("2nd item not ASN.1 integer");return{r:r(e,o),s:r(e,a)}},ae.crypto.ECDSA.asn1SigToConcatSig=function(e){var t=ae.crypto.ECDSA.parseSigHexInHexRS(e),n=t.r,r=t.s;if(n.length>=130&&n.length<=134){if(n.length%2!=0)throw Error("unknown ECDSA sig r length error");if(r.length%2!=0)throw Error("unknown ECDSA sig s length error");"00"==n.substr(0,2)&&(n=n.substr(2)),"00"==r.substr(0,2)&&(r=r.substr(2));var i=Math.max(n.length,r.length);return(n=("000000"+n).slice(-i))+(r=("000000"+r).slice(-i))}if("00"==n.substr(0,2)&&n.length%32==2&&(n=n.substr(2)),"00"==r.substr(0,2)&&r.length%32==2&&(r=r.substr(2)),n.length%32==30&&(n="00"+n),r.length%32==30&&(r="00"+r),n.length%32!=0)throw Error("unknown ECDSA sig r length error");if(r.length%32!=0)throw Error("unknown ECDSA sig s length error");return n+r},ae.crypto.ECDSA.concatSigToASN1Sig=function(e){if(e.length%4!=0)throw Error("unknown ECDSA concatinated r-s sig length error");var t=e.substr(0,e.length/2),n=e.substr(e.length/2);return ae.crypto.ECDSA.hexRSSigToASN1Sig(t,n)},ae.crypto.ECDSA.hexRSSigToASN1Sig=function(e,t){var n=new w(e,16),r=new w(t,16);return ae.crypto.ECDSA.biRSSigToASN1Sig(n,r)},ae.crypto.ECDSA.biRSSigToASN1Sig=function(e,t){var n=ae.asn1,r=new n.DERInteger({bigint:e}),i=new n.DERInteger({bigint:t});return new n.DERSequence({array:[r,i]}).tohex()},ae.crypto.ECDSA.getName=function(e){return"2b8104001f"===e?"secp192k1":"2a8648ce3d030107"===e?"secp256r1":"2b8104000a"===e?"secp256k1":"2b81040021"===e?"secp224r1":"2b81040022"===e?"secp384r1":"2b81040023"===e?"secp521r1":-1!=="|secp256r1|NIST P-256|P-256|prime256v1|".indexOf(e)?"secp256r1":-1!=="|secp256k1|".indexOf(e)?"secp256k1":-1!=="|secp224r1|NIST P-224|P-224|".indexOf(e)?"secp224r1":-1!=="|secp384r1|NIST P-384|P-384|".indexOf(e)?"secp384r1":-1!=="|secp521r1|NIST P-521|P-521|".indexOf(e)?"secp521r1":null},void 0!==ae&&ae||(ae={}),void 0!==ae.crypto&&ae.crypto||(ae.crypto={}),ae.crypto.ECParameterDB=new function(){var e={},t={};function n(e){return new w(e,16)}this.getByName=function(n){var r=n;if(void 0!==t[r]&&(r=t[n]),void 0!==e[r])return e[r];throw"unregistered EC curve name: "+r},this.regist=function(r,i,o,a,s,u,l,c,h,p,f,d){e[r]={};var g=n(o),m=n(a),v=n(s),y=n(u),b=n(l),$=new ie(g,m,v),w=$.decodePointHex("04"+c+h);e[r].name=r,e[r].keylen=i,e[r].keycharlen=2*Math.ceil(i/8),e[r].curve=$,e[r].G=w,e[r].n=y,e[r].h=b,e[r].oid=f,e[r].info=d;for(var x=0;x<p.length;x++)t[p[x]]=r}},ae.crypto.ECParameterDB.regist("secp128r1",128,"FFFFFFFDFFFFFFFFFFFFFFFFFFFFFFFF","FFFFFFFDFFFFFFFFFFFFFFFFFFFFFFFC","E87579C11079F43DD824993C2CEE5ED3","FFFFFFFE0000000075A30D1B9038A115","1","161FF7528B899B2D0C28607CA52C5B86","CF5AC8395BAFEB13C02DA292DDED7A83",[],"","secp128r1 : SECG curve over a 128 bit prime field"),ae.crypto.ECParameterDB.regist("secp160k1",160,"FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEFFFFAC73","0","7","0100000000000000000001B8FA16DFAB9ACA16B6B3","1","3B4C382CE37AA192A4019E763036F4F5DD4D7EBB","938CF935318FDCED6BC28286531733C3F03C4FEE",[],"","secp160k1 : SECG curve over a 160 bit prime field"),ae.crypto.ECParameterDB.regist("secp160r1",160,"FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF7FFFFFFF","FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF7FFFFFFC","1C97BEFC54BD7A8B65ACF89F81D4D4ADC565FA45","0100000000000000000001F4C8F927AED3CA752257","1","4A96B5688EF573284664698968C38BB913CBFC82","23A628553168947D59DCC912042351377AC5FB32",[],"","secp160r1 : SECG curve over a 160 bit prime field"),ae.crypto.ECParameterDB.regist("secp192k1",192,"FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEFFFFEE37","0","3","FFFFFFFFFFFFFFFFFFFFFFFE26F2FC170F69466A74DEFD8D","1","DB4FF10EC057E9AE26B07D0280B7F4341DA5D1B1EAE06C7D","9B2F2F6D9C5628A7844163D015BE86344082AA88D95E2F9D",[]),ae.crypto.ECParameterDB.regist("secp192r1",192,"FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEFFFFFFFFFFFFFFFF","FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEFFFFFFFFFFFFFFFC","64210519E59C80E70FA7E9AB72243049FEB8DEECC146B9B1","FFFFFFFFFFFFFFFFFFFFFFFF99DEF836146BC9B1B4D22831","1","188DA80EB03090F67CBF20EB43A18800F4FF0AFD82FF1012","07192B95FFC8DA78631011ED6B24CDD573F977A11E794811",[]),ae.crypto.ECParameterDB.regist("secp224r1",224,"FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF000000000000000000000001","FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEFFFFFFFFFFFFFFFFFFFFFFFE","B4050A850C04B3ABF54132565044B0B7D7BFD8BA270B39432355FFB4","FFFFFFFFFFFFFFFFFFFFFFFFFFFF16A2E0B8F03E13DD29455C5C2A3D","1","B70E0CBD6BB4BF7F321390B94A03C1D356C21122343280D6115C1D21","BD376388B5F723FB4C22DFE6CD4375A05A07476444D5819985007E34",[]),ae.crypto.ECParameterDB.regist("secp256k1",256,"FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEFFFFFC2F","0","7","FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEBAAEDCE6AF48A03BBFD25E8CD0364141","1","79BE667EF9DCBBAC55A06295CE870B07029BFCDB2DCE28D959F2815B16F81798","483ADA7726A3C4655DA4FBFC0E1108A8FD17B448A68554199C47D08FFB10D4B8",[]),ae.crypto.ECParameterDB.regist("secp256r1",256,"FFFFFFFF00000001000000000000000000000000FFFFFFFFFFFFFFFFFFFFFFFF","FFFFFFFF00000001000000000000000000000000FFFFFFFFFFFFFFFFFFFFFFFC","5AC635D8AA3A93E7B3EBBD55769886BC651D06B0CC53B0F63BCE3C3E27D2604B","FFFFFFFF00000000FFFFFFFFFFFFFFFFBCE6FAADA7179E84F3B9CAC2FC632551","1","6B17D1F2E12C4247F8BCE6E563A440F277037D812DEB33A0F4A13945D898C296","4FE342E2FE1A7F9B8EE7EB4A7C0F9E162BCE33576B315ECECBB6406837BF51F5",["NIST P-256","P-256","prime256v1"]),ae.crypto.ECParameterDB.regist("secp384r1",384,"FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEFFFFFFFF0000000000000000FFFFFFFF","FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEFFFFFFFF0000000000000000FFFFFFFC","B3312FA7E23EE7E4988E056BE3F82D19181D9C6EFE8141120314088F5013875AC656398D8A2ED19D2A85C8EDD3EC2AEF","FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFC7634D81F4372DDF581A0DB248B0A77AECEC196ACCC52973","1","AA87CA22BE8B05378EB1C71EF320AD746E1D3B628BA79B9859F741E082542A385502F25DBF55296C3A545E3872760AB7","3617de4a96262c6f5d9e98bf9292dc29f8f41dbd289a147ce9da3113b5f0b8c00a60b1ce1d7e819d7a431d7c90ea0e5f",["NIST P-384","P-384"]),ae.crypto.ECParameterDB.regist("secp521r1",521,"1FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF","1FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFC","051953EB9618E1C9A1F929A21A0B68540EEA2DA725B99B315F3B8B489918EF109E156193951EC7E937B1652C0BD3BB1BF073573DF883D2C34F1EF451FD46B503F00","1FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFA51868783BF2F966B7FCC0148F709A5D03BB5C9B8899C47AEBB6FB71E91386409","1","00C6858E06B70404E9CD9E3ECB662395B4429C648139053FB521F828AF606B4D3DBAA14B5E77EFE75928FE1DC127A2FFA8DE3348B3C1856A429BF97E7E31C2E5BD66","011839296a789a3bc0045c8a5fb42c7d1bd998f54449579b446817afbd17273e662c97ee72995ef42640c550b9013fad0761353c7086a272c24088be94769fd16650",["NIST P-521","P-521"]),void 0!==ae&&ae||(ae={}),void 0!==ae.crypto&&ae.crypto||(ae.crypto={}),ae.crypto.DSA=function(){var e=le,t=(e.getVbyList,e.getVbyListEx),n=e.isASN1HEX,r=w;this.p=null,this.q=null,this.g=null,this.y=null,this.x=null,this.type="DSA",this.isPrivate=!1,this.isPublic=!1,this.setPrivate=function(e,t,n,r,i){this.isPrivate=!0,this.p=e,this.q=t,this.g=n,this.y=r,this.x=i},this.setPrivateHex=function(e,t,n,r,i){var o,a,s,u,l;o=new w(e,16),a=new w(t,16),s=new w(n,16),u="string"==typeof r&&r.length>1?new w(r,16):null,l=new w(i,16),this.setPrivate(o,a,s,u,l)},this.setPublic=function(e,t,n,r){this.isPublic=!0,this.p=e,this.q=t,this.g=n,this.y=r,this.x=null},this.setPublicHex=function(e,t,n,r){var i,o,a,s;i=new w(e,16),o=new w(t,16),a=new w(n,16),s=new w(r,16),this.setPublic(i,o,a,s)},this.signWithMessageHash=function(e){var t=this.p,n=this.q,r=this.g,i=(this.y,this.x),o=ae.crypto.Util.getRandomBigIntegerMinToMax(w.ONE.add(w.ONE),n.subtract(w.ONE)),a=new w(e.substr(0,n.bitLength()/4),16),s=r.modPow(o,t).mod(n),u=o.modInverse(n).multiply(a.add(i.multiply(s))).mod(n);return ae.asn1.ASN1Util.jsonToASN1HEX({seq:[{int:{bigint:s}},{int:{bigint:u}}]})},this.verifyWithMessageHash=function(e,t){var n=this.p,r=this.q,i=this.g,o=this.y,a=this.parseASN1Signature(t),s=a[0],u=a[1],l=new w(e.substr(0,r.bitLength()/4),16);if(w.ZERO.compareTo(s)>0||s.compareTo(r)>0)throw"invalid DSA signature";if(w.ZERO.compareTo(u)>=0||u.compareTo(r)>0)throw"invalid DSA signature";var c=u.modInverse(r),h=l.multiply(c).mod(r),p=s.multiply(c).mod(r);return 0==i.modPow(h,n).multiply(o.modPow(p,n)).mod(n).mod(r).compareTo(s)},this.parseASN1Signature=function(e){try{return[new r(t(e,0,[0],"02"),16),new r(t(e,0,[1],"02"),16)]}catch(e){throw new Error("malformed ASN.1 DSA signature")}},this.readPKCS5PrvKeyHex=function(e){var r,i,o,a,s;if(!1===n(e))throw new Error("not ASN.1 hex string");try{r=t(e,0,[1],"02"),i=t(e,0,[2],"02"),o=t(e,0,[3],"02"),a=t(e,0,[4],"02"),s=t(e,0,[5],"02")}catch(e){throw new Error("malformed PKCS#1/5 plain DSA private key")}this.setPrivateHex(r,i,o,a,s)},this.readPKCS8PrvKeyHex=function(e){var r,i,o,a;if(!1===n(e))throw new Error("not ASN.1 hex string");try{r=t(e,0,[1,1,0],"02"),i=t(e,0,[1,1,1],"02"),o=t(e,0,[1,1,2],"02"),a=t(e,0,[2,0],"02")}catch(e){throw new Error("malformed PKCS#8 plain DSA private key")}this.setPrivateHex(r,i,o,null,a)},this.readPKCS8PubKeyHex=function(e){var r,i,o,a;if(!1===n(e))throw new Error("not ASN.1 hex string");try{r=t(e,0,[0,1,0],"02"),i=t(e,0,[0,1,1],"02"),o=t(e,0,[0,1,2],"02"),a=t(e,0,[1,0],"02")}catch(e){throw new Error("malformed PKCS#8 DSA public key")}this.setPublicHex(r,i,o,a)},this.readCertPubKeyHex=function(e,r){var i,o,a,s;if(!1===n(e))throw new Error("not ASN.1 hex string");try{i=t(e,0,[0,5,0,1,0],"02"),o=t(e,0,[0,5,0,1,1],"02"),a=t(e,0,[0,5,0,1,2],"02"),s=t(e,0,[0,5,1,0],"02")}catch(e){throw new Error("malformed X.509 certificate DSA public key")}this.setPublicHex(i,o,a,s)}};var tt=function(){var e=function(e,n,r){return t(g.AES,e,n,r)},t=function(e,t,n,r){var i=g.enc.Hex.parse(t),o=g.enc.Hex.parse(n),a=g.enc.Hex.parse(r),s={};s.key=o,s.iv=a,s.ciphertext=i;var u=e.decrypt(s,o,{iv:a});return g.enc.Hex.stringify(u)},n=function(e,t,n){return r(g.AES,e,t,n)},r=function(e,t,n,r){var i=g.enc.Hex.parse(t),o=g.enc.Hex.parse(n),a=g.enc.Hex.parse(r),s=e.encrypt(i,o,{iv:a}),u=g.enc.Hex.parse(s.toString());return g.enc.Base64.stringify(u)},i={"AES-256-CBC":{proc:e,eproc:n,keylen:32,ivlen:16},"AES-192-CBC":{proc:e,eproc:n,keylen:24,ivlen:16},"AES-128-CBC":{proc:e,eproc:n,keylen:16,ivlen:16},"DES-EDE3-CBC":{proc:function(e,n,r){return t(g.TripleDES,e,n,r)},eproc:function(e,t,n){return r(g.TripleDES,e,t,n)},keylen:24,ivlen:8},"DES-CBC":{proc:function(e,n,r){return t(g.DES,e,n,r)},eproc:function(e,t,n){return r(g.DES,e,t,n)},keylen:8,ivlen:8}},o=function(e){var t={},n=e.match(new RegExp("DEK-Info: ([^,]+),([0-9A-Fa-f]+)","m"));n&&(t.cipher=n[1],t.ivsalt=n[2]);var r=e.match(new RegExp("-----BEGIN ([A-Z]+) PRIVATE KEY-----"));r&&(t.type=r[1]);var i=-1,o=0;-1!=e.indexOf("\r\n\r\n")&&(i=e.indexOf("\r\n\r\n"),o=2),-1!=e.indexOf("\n\n")&&(i=e.indexOf("\n\n"),o=1);var a=e.indexOf("-----END");if(-1!=i&&-1!=a){var s=e.substring(i+2*o,a-o);s=s.replace(/\s+/g,""),t.data=s}return t},a=function(e,t,n){for(var r=n.substring(0,16),o=g.enc.Hex.parse(r),a=g.enc.Utf8.parse(t),s=i[e].keylen+i[e].ivlen,u="",l=null;;){var c=g.algo.MD5.create();if(null!=l&&c.update(l),c.update(a),c.update(o),l=c.finalize(),(u+=g.enc.Hex.stringify(l)).length>=2*s)break}var h={};return h.keyhex=u.substr(0,2*i[e].keylen),h.ivhex=u.substr(2*i[e].keylen,2*i[e].ivlen),h},s=function(e,t,n,r){var o=g.enc.Base64.parse(e),a=g.enc.Hex.stringify(o);return(0,i[t].proc)(a,n,r)};return{version:"1.0.0",parsePKCS5PEM:function(e){return o(e)},getKeyAndUnusedIvByPasscodeAndIvsalt:function(e,t,n){return a(e,t,n)},decryptKeyB64:function(e,t,n,r){return s(e,t,n,r)},getDecryptedKeyHex:function(e,t){var n=o(e),r=(n.type,n.cipher),i=n.ivsalt,u=n.data,l=a(r,t,i).keyhex;return s(u,r,l,i)},getEncryptedPKCS5PEMFromPrvKeyHex:function(e,t,n,r,o){var s="";if(void 0!==r&&null!=r||(r="AES-256-CBC"),void 0===i[r])throw new Error("KEYUTIL unsupported algorithm: "+r);void 0!==o&&null!=o||(o=function(e){var t=g.lib.WordArray.random(e);return g.enc.Hex.stringify(t)}(i[r].ivlen).toUpperCase());var u=function(e,t,n,r){return(0,i[t].eproc)(e,n,r)}(t,r,a(r,n,o).keyhex,o);s="-----BEGIN "+e+" PRIVATE KEY-----\r\n";return s+="Proc-Type: 4,ENCRYPTED\r\n",s+="DEK-Info: "+r+","+o+"\r\n",s+="\r\n",s+=u.replace(/(.{64})/g,"$1\r\n"),s+="\r\n-----END "+e+" PRIVATE KEY-----\r\n"},getEncryptedPKCS8PEM:function(e,t,n){return Ce(this.getEncryptedPKCS8Hex(e,t,n),"ENCRYPTED PRIVATE KEY")},getEncryptedPKCS8Hex:function(e,t,n){var r;(r=null==n||null==n?{}:JSON.parse(JSON.stringify(n))).plain=e,this.initPBES2Param(r),this.encryptPBES2Param(r,t);var i=this.generatePBES2ASN1Param(r);return ae.asn1.ASN1Util.newObject(i).tohex()},initPBES2Param:function(e){var t;(null==Ze(e,"encalg")&&(e.encalg="aes256-CBC"),null==Ze(e,"iter")&&(e.iter=2048),null==Ze(e,"prf")&&(e.prf="hmacWithSHA256"),null==Ze(e,"salt")&&(e.salt=g.enc.Hex.stringify(g.lib.WordArray.random(8))),null==Ze(e,"enciv"))&&("des-EDE3-CBC"==e.encalg&&(t=8),"aes128-CBC"==e.encalg&&(t=16),"aes256-CBC"==e.encalg&&(t=16),e.enciv=g.enc.Hex.stringify(g.lib.WordArray.random(t)))},encryptPBES2Param:function(e,t){var n=tt.getDKFromPBES2Param(e,t);try{var r=ae.crypto.Cipher.encrypt(e.plain,n,e.encalg,{iv:e.enciv})}catch(t){throw new Error("encrypt error: "+e.plain+" "+n+" "+e.encalg+" "+e.enciv)}e.enc=r},generatePBES2ASN1Param:function(e){var t={seq:[{seq:[{oid:"pkcs5PBES2"},{seq:[{seq:[{oid:"pkcs5PBKDF2"},{seq:[{octstr:{hex:e.salt}},{int:{hex:Ke(e.iter)}}]}]},{seq:[{oid:e.encalg},{octstr:{hex:e.enciv}}]}]}]},{octstr:{hex:e.enc}}]};return"hmacWithSHA1"!=e.prf&&t.seq[0].seq[1].seq[0].seq[1].seq.push({seq:[{oid:e.prf},{null:""}]}),t},parseHexOfEncryptedPKCS8:function(e){var t=le,n=t.getChildIdx,r=t.getV,i={},o=n(e,0);if(2!=o.length)throw new Error("malformed format: SEQUENCE(0).items != 2: "+o.length);i.ciphertext=r(e,o[1]);var a=n(e,o[0]);if(2!=a.length)throw new Error("malformed format: SEQUENCE(0.0).items != 2: "+a.length);if("2a864886f70d01050d"!=r(e,a[0]))throw new Error("this only supports pkcs5PBES2");var s=n(e,a[1]);if(2!=a.length)throw new Error("malformed format: SEQUENCE(0.0.1).items != 2: "+s.length);var u=n(e,s[1]);if(2!=u.length)throw new Error("malformed format: SEQUENCE(0.0.1.1).items != 2: "+u.length);if("2a864886f70d0307"!=r(e,u[0]))throw"this only supports TripleDES";i.encryptionSchemeAlg="TripleDES",i.encryptionSchemeIV=r(e,u[1]);var l=n(e,s[0]);if(2!=l.length)throw new Error("malformed format: SEQUENCE(0.0.1.0).items != 2: "+l.length);if("2a864886f70d01050c"!=r(e,l[0]))throw new Error("this only supports pkcs5PBKDF2");var c=n(e,l[1]);if(c.length<2)throw new Error("malformed format: SEQUENCE(0.0.1.0.1).items < 2: "+c.length);i.pbkdf2Salt=r(e,c[0]);var h=r(e,c[1]);try{i.pbkdf2Iter=parseInt(h,16)}catch(e){throw new Error("malformed format pbkdf2Iter: "+h)}return i},getPBKDF2KeyHexFromParam:function(e,t){var n=g.enc.Hex.parse(e.pbkdf2Salt),r=e.pbkdf2Iter,i=g.PBKDF2(t,n,{keySize:6,iterations:r});return g.enc.Hex.stringify(i)},_getPlainPKCS8HexFromEncryptedPKCS8PEM:function(e,t){var n=Te(e,"ENCRYPTED PRIVATE KEY"),r=this.parseHexOfEncryptedPKCS8(n),i=tt.getPBKDF2KeyHexFromParam(r,t),o={};o.ciphertext=g.enc.Hex.parse(r.ciphertext);var a=g.enc.Hex.parse(i),s=g.enc.Hex.parse(r.encryptionSchemeIV),u=g.TripleDES.decrypt(o,a,{iv:s});return g.enc.Hex.stringify(u)},parsePBES2:function(e){var t=le.parse(e);if("pkcs5PBES2"!=Ze(t,"seq.0.seq.0.oid")||"pkcs5PBKDF2"!=Ze(t,"seq.0.seq.1.seq.0.seq.0.oid"))throw new Error("not pkcs5PBES2 and pkcs5PBKDF2 used");var n=Ze(t,"seq.0.seq.1.seq.0.seq.1.seq");if(null==n)throw new Error("PBKDF2 parameter not found");var r=Ze(n,"0.octstr.hex"),i=Ze(n,"1.int.hex"),o=Ze(n,"2.seq.0.oid","hmacWithSHA1"),a=-1;try{a=parseInt(i,16)}catch(e){throw new Error("iter not proper value")}var s=Ze(t,"seq.0.seq.1.seq.1.seq.0.oid"),u=Ze(t,"seq.0.seq.1.seq.1.seq.1.octstr.hex"),l=Ze(t,"seq.1.octstr.hex");if(null==s||null==u||null==l)throw new Error("encalg, enciv or enc is undefined");return{salt:r,iter:a,prf:o,encalg:s,enciv:u,enc:l}},getDKFromPBES2Param:function(e,t){var n={hmacWithSHA1:g.algo.SHA1,hmacWithSHA224:g.algo.SHA224,hmacWithSHA256:g.algo.SHA256,hmacWithSHA384:g.algo.SHA384,hmacWithSHA512:g.algo.SHA512}[e.prf];if(null==n)throw new Error("unsupported prf");var r={"des-EDE3-CBC":6,"aes128-CBC":4,"aes256-CBC":8}[e.encalg];if(null==r)throw new Error("unsupported encalg");var i=g.enc.Hex.parse(e.salt),o=e.iter;try{var a=g.PBKDF2(t,i,{keySize:r,iterations:o,hasher:n});return g.enc.Hex.stringify(a)}catch(n){throw new Error("PBKDF2 error: "+n+" "+JSON.stringify(e)+" "+t)}},getPlainHexFromEncryptedPKCS8PEM:function(e,t){if(-1==e.indexOf("BEGIN ENCRYPTED PRIVATE KEY"))throw new Error("not Encrypted PKCS#8 PEM string");var n,r=Te(e);try{n=tt.parsePBES2(r)}catch(e){throw new Error("malformed PBES2 format: "+e.message)}var i=tt.getDKFromPBES2Param(n,t);return ae.crypto.Cipher.decrypt(n.enc,i,n.encalg,{iv:n.enciv})},getKeyFromEncryptedPKCS8PEM:function(e,t){var n=this.getPlainHexFromEncryptedPKCS8PEM(e,t);return this.getKeyFromPlainPrivatePKCS8Hex(n)},parsePlainPrivatePKCS8Hex:function(e){var t=le,n=t.getChildIdx,r=t.getV,i={algparam:null};if("30"!=e.substr(0,2))throw new Error("malformed plain PKCS8 private key(code:001)");var o=n(e,0);if(o.length<3)throw new Error("malformed plain PKCS8 private key(code:002)");if("30"!=e.substr(o[1],2))throw new Error("malformed PKCS8 private key(code:003)");var a=n(e,o[1]);if(2!=a.length)throw new Error("malformed PKCS8 private key(code:004)");if("06"!=e.substr(a[0],2))throw new Error("malformed PKCS8 private key(code:005)");if(i.algoid=r(e,a[0]),"06"==e.substr(a[1],2)&&(i.algparam=r(e,a[1])),"04"!=e.substr(o[2],2))throw new Error("malformed PKCS8 private key(code:006)");return i.keyidx=t.getVidx(e,o[2]),i},getKeyFromPlainPrivatePKCS8PEM:function(e){var t=Te(e,"PRIVATE KEY");return this.getKeyFromPlainPrivatePKCS8Hex(t)},getKeyFromPlainPrivatePKCS8Hex:function(e){var t,n=this.parsePlainPrivatePKCS8Hex(e);if("2a864886f70d010101"==n.algoid)t=new te;else if("2a8648ce380401"==n.algoid)t=new ae.crypto.DSA;else{if("2a8648ce3d0201"!=n.algoid)throw new Error("unsupported private key algorithm");t=new ae.crypto.ECDSA}return t.readPKCS8PrvKeyHex(e),t},_getKeyFromPublicPKCS8Hex:function(e){var t,n=le.getVbyList(e,0,[0,0],"06");if("2a864886f70d010101"===n)t=new te;else if("2a8648ce380401"===n)t=new ae.crypto.DSA;else{if("2a8648ce3d0201"!==n)throw new Error("unsupported PKCS#8 public key hex");t=new ae.crypto.ECDSA}return t.readPKCS8PubKeyHex(e),t},parsePublicRawRSAKeyHex:function(e){var t=le,n=t.getChildIdx,r=t.getV,i={};if("30"!=e.substr(0,2))throw new Error("malformed RSA key(code:001)");var o=n(e,0);if(2!=o.length)throw new Error("malformed RSA key(code:002)");if("02"!=e.substr(o[0],2))throw new Error("malformed RSA key(code:003)");if(i.n=r(e,o[0]),"02"!=e.substr(o[1],2))throw new Error("malformed RSA key(code:004)");return i.e=r(e,o[1]),i},parsePublicPKCS8Hex:function(e){var t=le,n=t.getChildIdx,r=t.getV,i={algparam:null},o=n(e,0);if(2!=o.length)throw new Error("outer DERSequence shall have 2 elements: "+o.length);var a=o[0];if("30"!=e.substr(a,2))throw new Error("malformed PKCS8 public key(code:001)");var s=n(e,a);if(2!=s.length)throw new Error("malformed PKCS8 public key(code:002)");if("06"!=e.substr(s[0],2))throw new Error("malformed PKCS8 public key(code:003)");if(i.algoid=r(e,s[0]),"06"==e.substr(s[1],2)?i.algparam=r(e,s[1]):"30"==e.substr(s[1],2)&&(i.algparam={},i.algparam.p=t.getVbyList(e,s[1],[0],"02"),i.algparam.q=t.getVbyList(e,s[1],[1],"02"),i.algparam.g=t.getVbyList(e,s[1],[2],"02")),"03"!=e.substr(o[1],2))throw new Error("malformed PKCS8 public key(code:004)");return i.key=r(e,o[1]).substr(2),i}}}();tt.getKey=function(e,t,n){var r=(m=le).getChildIdx,i=(m.getV,m.getVbyList),o=ae.crypto,a=o.ECDSA,s=o.DSA,u=te,l=Te,c=tt;if(void 0!==u&&e instanceof u)return e;if(void 0!==a&&e instanceof a)return e;if(void 0!==s&&e instanceof s)return e;if(void 0!==e.curve&&void 0!==e.xy&&void 0===e.d)return new a({pub:e.xy,curve:e.curve});if(void 0!==e.curve&&void 0!==e.d)return new a({prv:e.d,curve:e.curve});if(void 0===e.kty&&void 0!==e.n&&void 0!==e.e&&void 0===e.d)return(F=new u).setPublic(e.n,e.e),F;if(void 0===e.kty&&void 0!==e.n&&void 0!==e.e&&void 0!==e.d&&void 0!==e.p&&void 0!==e.q&&void 0!==e.dp&&void 0!==e.dq&&void 0!==e.co&&void 0===e.qi)return(F=new u).setPrivateEx(e.n,e.e,e.d,e.p,e.q,e.dp,e.dq,e.co),F;if(void 0===e.kty&&void 0!==e.n&&void 0!==e.e&&void 0!==e.d&&void 0===e.p)return(F=new u).setPrivate(e.n,e.e,e.d),F;if(void 0!==e.p&&void 0!==e.q&&void 0!==e.g&&void 0!==e.y&&void 0===e.x)return(F=new s).setPublic(e.p,e.q,e.g,e.y),F;if(void 0!==e.p&&void 0!==e.q&&void 0!==e.g&&void 0!==e.y&&void 0!==e.x)return(F=new s).setPrivate(e.p,e.q,e.g,e.y,e.x),F;if("RSA"===e.kty&&void 0!==e.n&&void 0!==e.e&&void 0===e.d)return(F=new u).setPublic(ve(e.n),ve(e.e)),F;if("RSA"===e.kty&&void 0!==e.n&&void 0!==e.e&&void 0!==e.d&&void 0!==e.p&&void 0!==e.q&&void 0!==e.dp&&void 0!==e.dq&&void 0!==e.qi)return(F=new u).setPrivateEx(ve(e.n),ve(e.e),ve(e.d),ve(e.p),ve(e.q),ve(e.dp),ve(e.dq),ve(e.qi)),F;if("RSA"===e.kty&&void 0!==e.n&&void 0!==e.e&&void 0!==e.d)return(F=new u).setPrivate(ve(e.n),ve(e.e),ve(e.d)),F;if("EC"===e.kty&&void 0!==e.crv&&void 0!==e.x&&void 0!==e.y&&void 0===e.d){var h=(T=new a({curve:e.crv})).ecparams.keycharlen,p="04"+("0000000000"+ve(e.x)).slice(-h)+("0000000000"+ve(e.y)).slice(-h);return T.setPublicKeyHex(p),T}if("EC"===e.kty&&void 0!==e.crv&&void 0!==e.x&&void 0!==e.y&&void 0!==e.d){h=(T=new a({curve:e.crv})).ecparams.keycharlen,p="04"+("0000000000"+ve(e.x)).slice(-h)+("0000000000"+ve(e.y)).slice(-h);var f=("0000000000"+ve(e.d)).slice(-h);return T.setPublicKeyHex(p),T.setPrivateKeyHex(f),T}if("pkcs5prv"===n){var d,g=e,m=le;if(9===(d=r(g,0)).length)(F=new u).readPKCS5PrvKeyHex(g);else if(6===d.length)(F=new s).readPKCS5PrvKeyHex(g);else{if(!(d.length>2&&"04"===g.substr(d[1],2)))throw new Error("unsupported PKCS#1/5 hexadecimal key");(F=new a).readPKCS5PrvKeyHex(g)}return F}if("pkcs8prv"===n)return F=c.getKeyFromPlainPrivatePKCS8Hex(e);if("pkcs8pub"===n)return c._getKeyFromPublicPKCS8Hex(e);if("x509pub"===n)return ot.getPublicKeyFromCertHex(e);if(-1!=e.indexOf("-END CERTIFICATE-",0)||-1!=e.indexOf("-END X509 CERTIFICATE-",0)||-1!=e.indexOf("-END TRUSTED CERTIFICATE-",0))return ot.getPublicKeyFromCertPEM(e);if(-1!=e.indexOf("-END PUBLIC KEY-")){var v=Te(e,"PUBLIC KEY");return c._getKeyFromPublicPKCS8Hex(v)}if(-1!=e.indexOf("-END RSA PRIVATE KEY-")&&-1==e.indexOf("4,ENCRYPTED")){var y=l(e,"RSA PRIVATE KEY");return c.getKey(y,null,"pkcs5prv")}if(-1!=e.indexOf("-END DSA PRIVATE KEY-")&&-1==e.indexOf("4,ENCRYPTED")){var b=i(P=l(e,"DSA PRIVATE KEY"),0,[1],"02"),$=i(P,0,[2],"02"),x=i(P,0,[3],"02"),S=i(P,0,[4],"02"),E=i(P,0,[5],"02");return(F=new s).setPrivate(new w(b,16),new w($,16),new w(x,16),new w(S,16),new w(E,16)),F}if(-1!=e.indexOf("-END EC PRIVATE KEY-")&&-1==e.indexOf("4,ENCRYPTED")){y=l(e,"EC PRIVATE KEY");return c.getKey(y,null,"pkcs5prv")}if(-1!=e.indexOf("-END PRIVATE KEY-"))return c.getKeyFromPlainPrivatePKCS8PEM(e);if(-1!=e.indexOf("-END RSA PRIVATE KEY-")&&-1!=e.indexOf("4,ENCRYPTED")){var A=c.getDecryptedKeyHex(e,t),C=new te;return C.readPKCS5PrvKeyHex(A),C}if(-1!=e.indexOf("-END EC PRIVATE KEY-")&&-1!=e.indexOf("4,ENCRYPTED")){var T,F=i(P=c.getDecryptedKeyHex(e,t),0,[1],"04"),k=i(P,0,[2,0],"06"),R=i(P,0,[3,0],"03").substr(2);if(void 0===ae.crypto.OID.oidhex2name[k])throw new Error("undefined OID(hex) in KJUR.crypto.OID: "+k);return(T=new a({curve:ae.crypto.OID.oidhex2name[k]})).setPublicKeyHex(R),T.setPrivateKeyHex(F),T.isPublic=!1,T}if(-1!=e.indexOf("-END DSA PRIVATE KEY-")&&-1!=e.indexOf("4,ENCRYPTED")){var P;b=i(P=c.getDecryptedKeyHex(e,t),0,[1],"02"),$=i(P,0,[2],"02"),x=i(P,0,[3],"02"),S=i(P,0,[4],"02"),E=i(P,0,[5],"02");return(F=new s).setPrivate(new w(b,16),new w($,16),new w(x,16),new w(S,16),new w(E,16)),F}if(-1!=e.indexOf("-END ENCRYPTED PRIVATE KEY-"))return c.getKeyFromEncryptedPKCS8PEM(e,t);throw new Error("not supported argument")},tt.generateKeypair=function(e,t){if("RSA"==e){var n=t;(a=new te).generate(n,"10001"),a.isPrivate=!0,a.isPublic=!0;var r=new te,i=a.n.toString(16),o=a.e.toString(16);return r.setPublic(i,o),r.isPrivate=!1,r.isPublic=!0,(s={}).prvKeyObj=a,s.pubKeyObj=r,s}if("EC"==e){var a,s,u=t,l=new ae.crypto.ECDSA({curve:u}).generateKeyPairHex();return(a=new ae.crypto.ECDSA({curve:u})).setPublicKeyHex(l.ecpubhex),a.setPrivateKeyHex(l.ecprvhex),a.isPrivate=!0,a.isPublic=!1,(r=new ae.crypto.ECDSA({curve:u})).setPublicKeyHex(l.ecpubhex),r.isPrivate=!1,r.isPublic=!0,(s={}).prvKeyObj=a,s.pubKeyObj=r,s}throw new Error("unknown algorithm: "+e)},tt.getPEM=function(e,t,n,r,i,o){var a=ae,s=a.asn1,u=s.DERObjectIdentifier,l=s.DERInteger,c=s.ASN1Util.newObject,h=s.x509.SubjectPublicKeyInfo,p=a.crypto,f=p.DSA,d=p.ECDSA,g=te;function m(e){return c({seq:[{int:0},{int:{bigint:e.n}},{int:e.e},{int:{bigint:e.d}},{int:{bigint:e.p}},{int:{bigint:e.q}},{int:{bigint:e.dmp1}},{int:{bigint:e.dmq1}},{int:{bigint:e.coeff}}]})}function v(e){return c({seq:[{int:1},{octstr:{hex:e.prvKeyHex}},{tag:["a0",!0,{oid:{name:e.curveName}}]},{tag:["a1",!0,{bitstr:{hex:"00"+e.pubKeyHex}}]}]})}function y(e){return c({seq:[{int:0},{int:{bigint:e.p}},{int:{bigint:e.q}},{int:{bigint:e.g}},{int:{bigint:e.y}},{int:{bigint:e.x}}]})}if((void 0!==g&&e instanceof g||void 0!==f&&e instanceof f||void 0!==d&&e instanceof d)&&1==e.isPublic&&(void 0===t||"PKCS8PUB"==t))return Ce(x=new h(e).tohex(),"PUBLIC KEY");if("PKCS1PRV"==t&&void 0!==g&&e instanceof g&&(void 0===n||null==n)&&1==e.isPrivate)return Ce(x=m(e).tohex(),"RSA PRIVATE KEY");if("PKCS1PRV"==t&&void 0!==d&&e instanceof d&&(void 0===n||null==n)&&1==e.isPrivate){var b=new u({name:e.curveName}).tohex(),$=v(e).tohex(),w="";return w+=Ce(b,"EC PARAMETERS"),w+=Ce($,"EC PRIVATE KEY")}if("PKCS1PRV"==t&&void 0!==f&&e instanceof f&&(void 0===n||null==n)&&1==e.isPrivate)return Ce(x=y(e).tohex(),"DSA PRIVATE KEY");if("PKCS5PRV"==t&&void 0!==g&&e instanceof g&&void 0!==n&&null!=n&&1==e.isPrivate){var x=m(e).tohex();return void 0===r&&(r="DES-EDE3-CBC"),this.getEncryptedPKCS5PEMFromPrvKeyHex("RSA",x,n,r,o)}if("PKCS5PRV"==t&&void 0!==d&&e instanceof d&&void 0!==n&&null!=n&&1==e.isPrivate){x=v(e).tohex();return void 0===r&&(r="DES-EDE3-CBC"),this.getEncryptedPKCS5PEMFromPrvKeyHex("EC",x,n,r,o)}if("PKCS5PRV"==t&&void 0!==f&&e instanceof f&&void 0!==n&&null!=n&&1==e.isPrivate){x=y(e).tohex();return void 0===r&&(r="DES-EDE3-CBC"),this.getEncryptedPKCS5PEMFromPrvKeyHex("DSA",x,n,r,o)}var S=function(e,t){if("string"==typeof t)return tt.getEncryptedPKCS8PEM(e,t);if("object"==typeof t&&null!=Ze(t,"passcode")){var n=JSON.parse(JSON.stringify(t)),r=n.passcode;return delete n.passcode,tt.getEncryptedPKCS8PEM(e,r,n)}};if("PKCS8PRV"==t&&null!=g&&e instanceof g&&1==e.isPrivate){var E=m(e).tohex();x=c({seq:[{int:0},{seq:[{oid:{name:"rsaEncryption"}},{null:!0}]},{octstr:{hex:E}}]}).tohex();return void 0===n||null==n?Ce(x,"PRIVATE KEY"):S(x,n)}if("PKCS8PRV"==t&&void 0!==d&&e instanceof d&&1==e.isPrivate){var A={seq:[{int:1},{octstr:{hex:e.prvKeyHex}}]};"string"==typeof e.pubKeyHex&&A.seq.push({tag:["a1",!0,{bitstr:{hex:"00"+e.pubKeyHex}}]});E=new c(A).tohex(),x=c({seq:[{int:0},{seq:[{oid:{name:"ecPublicKey"}},{oid:{name:e.curveName}}]},{octstr:{hex:E}}]}).tohex();return void 0===n||null==n?Ce(x,"PRIVATE KEY"):S(x,n)}if("PKCS8PRV"==t&&void 0!==f&&e instanceof f&&1==e.isPrivate){E=new l({bigint:e.x}).tohex(),x=c({seq:[{int:0},{seq:[{oid:{name:"dsa"}},{seq:[{int:{bigint:e.p}},{int:{bigint:e.q}},{int:{bigint:e.g}}]}]},{octstr:{hex:E}}]}).tohex();return void 0===n||null==n?Ce(x,"PRIVATE KEY"):S(x,n)}throw new Error("unsupported object nor format")},tt.getKeyFromCSRPEM=function(e){var t=Te(e,"CERTIFICATE REQUEST");return tt.getKeyFromCSRHex(t)},tt.getKeyFromCSRHex=function(e){var t=tt.parseCSRHex(e);return tt.getKey(t.p8pubkeyhex,null,"pkcs8pub")},tt.parseCSRHex=function(e){var t=le,n=t.getChildIdx,r=t.getTLV,i={},o=e;if("30"!=o.substr(0,2))throw new Error("malformed CSR(code:001)");var a=n(o,0);if(a.length<1)throw new Error("malformed CSR(code:002)");if("30"!=o.substr(a[0],2))throw new Error("malformed CSR(code:003)");var s=n(o,a[0]);if(s.length<3)throw new Error("malformed CSR(code:004)");return i.p8pubkeyhex=r(o,s[2]),i},tt.getKeyID=function(e){var t=tt,n=le;"string"==typeof e&&-1!=e.indexOf("BEGIN ")&&(e=t.getKey(e));var r=Te(t.getPEM(e)),i=n.getIdxbyList(r,0,[1]),o=n.getV(r,i).substring(2);return ae.crypto.Util.hashHex(o,"sha1")},tt.getJWK=function(e,t,n,r,i){var o,a,s={},u=ae.crypto.Util.hashHex;if("string"==typeof e)o=tt.getKey(e),-1!=e.indexOf("CERTIFICATE")&&(a=Te(e));else{if("object"!=typeof e)throw new Error("unsupported keyinfo type");e instanceof ot?(o=e.getPublicKey(),a=e.hex):o=e}if(o instanceof te&&o.isPrivate)s.kty="RSA",s.n=me(o.n.toString(16)),s.e=me(o.e.toString(16)),s.d=me(o.d.toString(16)),s.p=me(o.p.toString(16)),s.q=me(o.q.toString(16)),s.dp=me(o.dmp1.toString(16)),s.dq=me(o.dmq1.toString(16)),s.qi=me(o.coeff.toString(16));else if(o instanceof te&&o.isPublic)s.kty="RSA",s.n=me(o.n.toString(16)),s.e=me(o.e.toString(16));else if(o instanceof ae.crypto.ECDSA&&o.isPrivate){if("P-256"!==(c=o.getShortNISTPCurveName())&&"P-384"!==c&&"P-521"!==c)throw new Error("unsupported curve name for JWT: "+c);var l=o.getPublicKeyXYHex();s.kty="EC",s.crv=c,s.x=me(l.x),s.y=me(l.y),s.d=me(o.prvKeyHex)}else if(o instanceof ae.crypto.ECDSA&&o.isPublic){var c;if("P-256"!==(c=o.getShortNISTPCurveName())&&"P-384"!==c&&"P-521"!==c)throw new Error("unsupported curve name for JWT: "+c);l=o.getPublicKeyXYHex();s.kty="EC",s.crv=c,s.x=me(l.x),s.y=me(l.y)}if(null==s.kty)throw new Error("unsupported keyinfo");return o.isPrivate||1==t||(s.kid=ae.jws.JWS.getJWKthumbprint(s)),null!=a&&1!=n&&(s.x5c=[y(a)]),null!=a&&1!=r&&(s.x5t=de(y(u(a,"sha1")))),null!=a&&1!=i&&(s["x5t#S256"]=de(y(u(a,"sha256")))),s},tt.getJWKFromKey=function(e){return tt.getJWK(e,!0,!0,!0,!0)},te.getPosArrayOfChildrenFromHex=function(e){return le.getChildIdx(e,0)},te.getHexValueArrayOfChildrenFromHex=function(e){var t,n=le.getV,r=n(e,(t=te.getPosArrayOfChildrenFromHex(e))[0]),i=n(e,t[1]),o=n(e,t[2]),a=n(e,t[3]),s=n(e,t[4]),u=n(e,t[5]),l=n(e,t[6]),c=n(e,t[7]),h=n(e,t[8]);return(t=new Array).push(r,i,o,a,s,u,l,c,h),t},te.prototype.readPrivateKeyFromPEMString=function(e){var t=Te(e),n=te.getHexValueArrayOfChildrenFromHex(t);this.setPrivateEx(n[1],n[2],n[3],n[4],n[5],n[6],n[7],n[8])},te.prototype.readPKCS5PrvKeyHex=function(e){var t=te.getHexValueArrayOfChildrenFromHex(e);this.setPrivateEx(t[1],t[2],t[3],t[4],t[5],t[6],t[7],t[8])},te.prototype.readPKCS8PrvKeyHex=function(e){var t,n,r,i,o,a,s,u,l=le,c=l.getVbyListEx;if(!1===l.isASN1HEX(e))throw new Error("not ASN.1 hex string");try{t=c(e,0,[2,0,1],"02"),n=c(e,0,[2,0,2],"02"),r=c(e,0,[2,0,3],"02"),i=c(e,0,[2,0,4],"02"),o=c(e,0,[2,0,5],"02"),a=c(e,0,[2,0,6],"02"),s=c(e,0,[2,0,7],"02"),u=c(e,0,[2,0,8],"02")}catch(e){throw new Error("malformed PKCS#8 plain RSA private key")}this.setPrivateEx(t,n,r,i,o,a,s,u)},te.prototype.readPKCS5PubKeyHex=function(e){var t=le,n=t.getV;if(!1===t.isASN1HEX(e))throw new Error("keyHex is not ASN.1 hex string");var r=t.getChildIdx(e,0);if(2!==r.length||"02"!==e.substr(r[0],2)||"02"!==e.substr(r[1],2))throw new Error("wrong hex for PKCS#5 public key");var i=n(e,r[0]),o=n(e,r[1]);this.setPublic(i,o)},te.prototype.readPKCS8PubKeyHex=function(e){var t=le;if(!1===t.isASN1HEX(e))throw new Error("not ASN.1 hex string");if("06092a864886f70d010101"!==t.getTLVbyListEx(e,0,[0,0]))throw new Error("not PKCS8 RSA public key");var n=t.getTLVbyListEx(e,0,[1,0]);this.readPKCS5PubKeyHex(n)},te.prototype.readCertPubKeyHex=function(e,t){var n,r;(n=new ot).readCertHex(e),r=n.getPublicKeyHex(),this.readPKCS8PubKeyHex(r)};new RegExp("[^0-9a-f]","gi");function nt(e,t){for(var n="",r=t/4-e.length,i=0;i<r;i++)n+="0";return n+e}function rt(e,t,n){for(var r="",i=0;r.length<t;)r+=we(n(xe(e+String.fromCharCode.apply(String,[(4278190080&i)>>24,(16711680&i)>>16,(65280&i)>>8,255&i])))),i+=1;return r}function it(e){for(var t in ae.crypto.Util.DIGESTINFOHEAD){var n=ae.crypto.Util.DIGESTINFOHEAD[t],r=n.length;if(e.substring(0,r)==n)return[t,e.substring(r)]}return[]}function ot(e){var t,n=le,r=n.getChildIdx,i=n.getV,o=(n.dump,n.parse),a=n.getTLV,s=n.getVbyList,u=n.getVbyListEx,l=n.getTLVbyList,c=n.getTLVbyListEx,h=n.getIdxbyList,p=n.getIdxbyListEx,f=n.getVidx,d=n.getInt,g=n.oidname,m=n.hextooidstr,v=Te,y=Error;try{t=ae.asn1.x509.AlgorithmIdentifier.PSSNAME2ASN1TLV}catch(e){}this.HEX2STAG={"0c":"utf8",13:"prn",16:"ia5","1a":"vis","1e":"bmp"},this.hex=null,this.version=0,this.foffset=0,this.aExtInfo=null,this.getVersion=function(){if(null===this.hex||0!==this.version)return this.version;var e=l(this.hex,0,[0,0]);if("a0"==e.substr(0,2)){var t=l(e,0,[0]),n=d(t,0);if(n<0||2<n)throw new Error("malformed version field");return this.version=n+1,this.version}return this.version=1,this.foffset=-1,1},this.getSerialNumberHex=function(){return u(this.hex,0,[0,0],"02")},this.getSignatureAlgorithmField=function(){var e=c(this.hex,0,[0,1]);return this.getAlgorithmIdentifierName(e)},this.getAlgorithmIdentifierName=function(e){for(var n in t)if(e===t[n])return n;return g(u(e,0,[0],"06"))},this.getIssuer=function(e,t){return this.getX500Name(this.getIssuerHex(),e,t)},this.getIssuerHex=function(){return l(this.hex,0,[0,3+this.foffset],"30")},this.getIssuerString=function(){return this.getIssuer().str},this.getSubject=function(e,t){return this.getX500Name(this.getSubjectHex(),e,t)},this.getSubjectHex=function(){return l(this.hex,0,[0,5+this.foffset],"30")},this.getSubjectString=function(){return this.getSubject().str},this.getNotBefore=function(){var e=s(this.hex,0,[0,4+this.foffset,0]);return e=e.replace(/(..)/g,"%$1"),e=decodeURIComponent(e)},this.getNotAfter=function(){var e=s(this.hex,0,[0,4+this.foffset,1]);return e=e.replace(/(..)/g,"%$1"),e=decodeURIComponent(e)},this.getPublicKeyHex=function(){return this.getSPKI()},this.getSPKI=function(){return l(this.hex,0,[0,6+this.foffset],"30")},this.getSPKIValue=function(){var e=this.getSPKI();return null==e?null:s(e,0,[1],"03",!0)},this.getPublicKeyIdx=function(){return h(this.hex,0,[0,6+this.foffset],"30")},this.getPublicKeyContentIdx=function(){var e=this.getPublicKeyIdx();return h(this.hex,e,[1,0],"30")},this.getPublicKey=function(){return tt.getKey(this.getPublicKeyHex(),null,"pkcs8pub")},this.getSignatureAlgorithmName=function(){var e=l(this.hex,0,[1],"30");return this.getAlgorithmIdentifierName(e)},this.getSignatureValueHex=function(){return s(this.hex,0,[2],"03",!0)},this.verifySignature=function(e){var t=this.getSignatureAlgorithmField(),n=this.getSignatureValueHex(),r=l(this.hex,0,[0],"30"),i=new ae.crypto.Signature({alg:t});return i.init(e),i.updateHex(r),i.verify(n)},this.parseExt=function(e){var t,o,a;if(void 0===e){if(a=this.hex,3!==this.version)return-1;t=h(a,0,[0,7,0],"30"),o=r(a,t)}else{a=Te(e);var u=h(a,0,[0,3,0,0],"06");if("2a864886f70d01090e"!=i(a,u))return void(this.aExtInfo=new Array);t=h(a,0,[0,3,0,1,0],"30"),o=r(a,t),this.hex=a}this.aExtInfo=new Array;for(var l=0;l<o.length;l++){var c={critical:!1},p=0;3===r(a,o[l]).length&&(c.critical=!0,p=1),c.oid=n.hextooidstr(s(a,o[l],[0],"06"));var d=h(a,o[l],[1+p]);c.vidx=f(a,d),this.aExtInfo.push(c)}},this.getExtInfo=function(e){var t=this.aExtInfo,n=e;if(e.match(/^[0-9.]+$/)||(n=ae.asn1.x509.OID.name2oid(e)),""!==n)for(var r=0;r<t.length;r++)if(t[r].oid===n)return t[r]},this.getCriticalExtV=function(e,t,n){if(null!=t)return[t,n];var r=this.getExtInfo(e);return null==r?[null,null]:[a(this.hex,r.vidx),r.critical]},this.getExtBasicConstraints=function(e,t){if(void 0===e&&void 0===t){var n=this.getExtInfo("basicConstraints");if(void 0===n)return;e=a(this.hex,n.vidx),t=n.critical}var r={extname:"basicConstraints"};if(t&&(r.critical=!0),"3000"===e)return r;if("30030101ff"===e)return r.cA=!0,r;if("30060101ff02"===e.substr(0,12)){var o=i(e,10),s=parseInt(o,16);return r.cA=!0,r.pathLen=s,r}throw new Error("hExtV parse error: "+e)},this.getExtNameConstraints=function(e,t){var n=this.getCriticalExtV("nameConstraints",e,t);if(e=n[0],t=n[1],null!=e){var i={extname:"nameConstraints"};t&&(i.critical=!0);for(var o=r(e,0),s=0;s<o.length;s++){for(var u=[],l=r(e,o[s]),c=0;c<l.length;c++){var h=a(e,l[c]),p=this.getGeneralSubtree(h);u.push(p)}var f=e.substr(o[s],2);"a0"==f?i.permit=u:"a1"==f&&(i.exclude=u)}return i}},this.getGeneralSubtree=function(e){var t=r(e,0),n=t.length;if(n<1||2<n)throw new Error("wrong num elements");for(var o=this.getGeneralName(a(e,t[0])),s=1;s<n;s++){var u=e.substr(t[s],2),l=i(e,t[s]),c=parseInt(l,16);"80"==u&&(o.min=c),"81"==u&&(o.max=c)}return o},this.getExtKeyUsage=function(e,t){var n=this.getCriticalExtV("keyUsage",e,t);if(e=n[0],t=n[1],null!=e){var r={extname:"keyUsage"};return t&&(r.critical=!0),r.names=this.getExtKeyUsageString(e).split(","),r}},this.getExtKeyUsageBin=function(e){if(void 0===e){var t=this.getExtInfo("keyUsage");if(void 0===t)return"";e=a(this.hex,t.vidx)}if(8!=e.length&&10!=e.length)throw new Error("malformed key usage value: "+e);var n="000000000000000"+parseInt(e.substr(6),16).toString(2);return 8==e.length&&(n=n.slice(-8)),10==e.length&&(n=n.slice(-16)),""==(n=n.replace(/0+$/,""))&&(n="0"),n},this.getExtKeyUsageString=function(e){for(var t=this.getExtKeyUsageBin(e),n=new Array,r=0;r<t.length;r++)"1"==t.substr(r,1)&&n.push(ot.KEYUSAGE_NAME[r]);return n.join(",")},this.getExtSubjectKeyIdentifier=function(e,t){if(void 0===e&&void 0===t){var n=this.getExtInfo("subjectKeyIdentifier");if(void 0===n)return;e=a(this.hex,n.vidx),t=n.critical}var r={extname:"subjectKeyIdentifier"};t&&(r.critical=!0);var o=i(e,0);return r.kid={hex:o},r},this.getExtAuthorityKeyIdentifier=function(e,t){if(void 0===e&&void 0===t){var n=this.getExtInfo("authorityKeyIdentifier");if(void 0===n)return;e=a(this.hex,n.vidx),t=n.critical}var o={extname:"authorityKeyIdentifier"};t&&(o.critical=!0);for(var s=r(e,0),u=0;u<s.length;u++){var l=e.substr(s[u],2);if("80"===l&&(o.kid={hex:i(e,s[u])}),"a1"===l){var c=a(e,s[u]),h=this.getGeneralNames(c);o.issuer=h[0].dn}"82"===l&&(o.sn={hex:i(e,s[u])})}return o},this.getExtExtKeyUsage=function(e,t){if(void 0===e&&void 0===t){var n=this.getExtInfo("extKeyUsage");if(void 0===n)return;e=a(this.hex,n.vidx),t=n.critical}var o={extname:"extKeyUsage",array:[]};t&&(o.critical=!0);for(var s=r(e,0),u=0;u<s.length;u++)o.array.push(g(i(e,s[u])));return o},this.getExtExtKeyUsageName=function(){var e=this.getExtInfo("extKeyUsage");if(void 0===e)return e;var t=new Array,n=a(this.hex,e.vidx);if(""===n)return t;for(var o=r(n,0),s=0;s<o.length;s++)t.push(g(i(n,o[s])));return t},this.getExtSubjectAltName=function(e,t){if(void 0===e&&void 0===t){var n=this.getExtInfo("subjectAltName");if(void 0===n)return;e=a(this.hex,n.vidx),t=n.critical}var r={extname:"subjectAltName",array:[]};return t&&(r.critical=!0),r.array=this.getGeneralNames(e),r},this.getExtIssuerAltName=function(e,t){if(void 0===e&&void 0===t){var n=this.getExtInfo("issuerAltName");if(void 0===n)return;e=a(this.hex,n.vidx),t=n.critical}var r={extname:"issuerAltName",array:[]};return t&&(r.critical=!0),r.array=this.getGeneralNames(e),r},this.getGeneralNames=function(e){for(var t=r(e,0),n=[],i=0;i<t.length;i++){var o=this.getGeneralName(a(e,t[i]));void 0!==o&&n.push(o)}return n},this.getGeneralName=function(e){var t=e.substr(0,2),n=i(e,0),r=we(n);return"81"==t?{rfc822:r}:"82"==t?{dns:r}:"86"==t?{uri:r}:"87"==t?{ip:_e(n)}:"a4"==t?{dn:this.getX500Name(n)}:"a0"==t?{other:this.getOtherName(e)}:void 0},this.getExtSubjectAltName2=function(){var e,t,n,o=this.getExtInfo("subjectAltName");if(void 0===o)return o;for(var s=new Array,u=a(this.hex,o.vidx),l=r(u,0),c=0;c<l.length;c++)n=u.substr(l[c],2),e=i(u,l[c]),"81"===n&&(t=be(e),s.push(["MAIL",t])),"82"===n&&(t=be(e),s.push(["DNS",t])),"84"===n&&(t=ot.hex2dn(e,0),s.push(["DN",t])),"86"===n&&(t=be(e),s.push(["URI",t])),"87"===n&&(t=_e(e),s.push(["IP",t]));return s},this.getExtCRLDistributionPoints=function(e,t){if(void 0===e&&void 0===t){var n=this.getExtInfo("cRLDistributionPoints");if(void 0===n)return;e=a(this.hex,n.vidx),t=n.critical}var i={extname:"cRLDistributionPoints",array:[]};t&&(i.critical=!0);for(var o=r(e,0),s=0;s<o.length;s++){var u=a(e,o[s]);i.array.push(this.getDistributionPoint(u))}return i},this.getDistributionPoint=function(e){for(var t={},n=r(e,0),i=0;i<n.length;i++){var o=e.substr(n[i],2),s=a(e,n[i]);"a0"==o&&(t.dpname=this.getDistributionPointName(s))}return t},this.getDistributionPointName=function(e){for(var t={},n=r(e,0),i=0;i<n.length;i++){var o=e.substr(n[i],2),s=a(e,n[i]);"a0"==o&&(t.full=this.getGeneralNames(s))}return t},this.getExtCRLDistributionPointsURI=function(){var e=this.getExtCRLDistributionPoints();if(null==e)return e;for(var t=e.array,n=[],r=0;r<t.length;r++)try{null!=t[r].dpname.full[0].uri&&n.push(t[r].dpname.full[0].uri)}catch(e){}return n},this.getExtAIAInfo=function(){var e=this.getExtInfo("authorityInfoAccess");if(void 0===e)return e;for(var t={ocsp:[],caissuer:[]},n=r(this.hex,e.vidx),i=0;i<n.length;i++){var o=s(this.hex,n[i],[0],"06"),a=s(this.hex,n[i],[1],"86");"2b06010505073001"===o&&t.ocsp.push(be(a)),"2b06010505073002"===o&&t.caissuer.push(be(a))}return t},this.getExtAuthorityInfoAccess=function(e,t){if(void 0===e&&void 0===t){var n=this.getExtInfo("authorityInfoAccess");if(void 0===n)return;e=a(this.hex,n.vidx),t=n.critical}var i={extname:"authorityInfoAccess",array:[]};t&&(i.critical=!0);for(var o=r(e,0),l=0;l<o.length;l++){var c=u(e,o[l],[0],"06"),h=be(s(e,o[l],[1],"86"));if("2b06010505073001"==c)i.array.push({ocsp:h});else{if("2b06010505073002"!=c)throw new Error("unknown method: "+c);i.array.push({caissuer:h})}}return i},this.getExtCertificatePolicies=function(e,t){if(void 0===e&&void 0===t){var n=this.getExtInfo("certificatePolicies");if(void 0===n)return;e=a(this.hex,n.vidx),t=n.critical}var i={extname:"certificatePolicies",array:[]};t&&(i.critical=!0);for(var o=r(e,0),s=0;s<o.length;s++){var u=a(e,o[s]),l=this.getPolicyInformation(u);i.array.push(l)}return i},this.getPolicyInformation=function(e){var t={},n=s(e,0,[0],"06");t.policyoid=g(n);var i=p(e,0,[1],"30");if(-1!=i){t.array=[];for(var o=r(e,i),u=0;u<o.length;u++){var l=a(e,o[u]),c=this.getPolicyQualifierInfo(l);t.array.push(c)}}return t},this.getOtherName=function(e){var t={},n=r(e,0),i=s(e,n[0],[],"06"),a=s(e,n[1],[]);return t.oid=g(i),t.value=o(a),t},this.getPolicyQualifierInfo=function(e){var t={},n=s(e,0,[0],"06");if("2b06010505070201"===n){var r=u(e,0,[1],"16");t.cps=we(r)}else if("2b06010505070202"===n){var i=l(e,0,[1],"30");t.unotice=this.getUserNotice(i)}return t},this.getUserNotice=function(e){var t=null;try{return t=n.parse(e),this._asn1ToUnotice(t)}catch(e){return}},this._asn1ToUnotice=function(e){try{for(var t={},n=Ze(e,"seq"),r=0;r<n.length;r++){var i=this._asn1ToNoticeRef(n[r]);null!=i&&(t.noticeref=i);var o=this.asn1ToDisplayText(n[r]);null!=o&&(t.exptext=o)}return Object.keys(t).length>0?t:void 0}catch(e){return}},this._asn1ToNoticeRef=function(e){try{for(var t={},n=Ze(e,"seq"),r=0;r<n.length;r++){var i=this._asn1ToNoticeNum(n[r]);null!=i&&(t.noticenum=i);var o=this.asn1ToDisplayText(n[r]);null!=o&&(t.org=o)}return Object.keys(t).length>0?t:void 0}catch(e){return}},this._asn1ToNoticeNum=function(e){try{for(var t=Ze(e,"seq"),n=[],r=0;r<t.length;r++){var i=t[r];n.push(parseInt(Ze(i,"int.hex"),16))}return n}catch(e){return}},this.getDisplayText=function(e){var t={};return t.type={"0c":"utf8",16:"ia5","1a":"vis","1e":"bmp"}[e.substr(0,2)],t.str=we(i(e,0)),t},this.asn1ToDisplayText=function(e){return null!=e.utf8str?{type:"utf8",str:e.utf8str.str}:null!=e.ia5str?{type:"ia5",str:e.ia5str.str}:null!=e.visstr?{type:"vis",str:e.visstr.str}:null!=e.bmpstr?{type:"bmp",str:e.bmpstr.str}:null!=e.prnstr?{type:"prn",str:e.prnstr.str}:void 0},this.getExtPolicyMappings=function(e,t){var n=this.getCriticalExtV("policyMappings",e,t);if(e=n[0],t=n[1],null!=e){var r={extname:"policyMappings"};t&&(r.critical=!0);try{for(var i=o(e).seq,a=[],s=0;s<i.length;s++){var u=i[s].seq;a.push([u[0].oid,u[1].oid])}r.array=a}catch(e){throw new y("malformed policyMappings")}return r}},this.getExtPolicyConstraints=function(e,t){var n=this.getCriticalExtV("policyConstraints",e,t);if(e=n[0],t=n[1],null!=e){var r={extname:"policyConstraints"};t&&(r.critical=!0);var i=o(e);try{for(var a=i.seq,s=0;s<a.length;s++){var u=a[s].tag;0==u.explicit&&("80"==u.tag&&(r.reqexp=parseInt(u.hex,16)),"81"==u.tag&&(r.inhibit=parseInt(u.hex,16)))}}catch(e){return new y("malformed policyConstraints value")}return r}},this.getExtInhibitAnyPolicy=function(e,t){var n=this.getCriticalExtV("inhibitAnyPolicy",e,t);if(e=n[0],t=n[1],null!=e){var r={extname:"inhibitAnyPolicy"};t&&(r.critical=!0);var i=d(e,0);return-1==i?new y("wrong value"):(r.skip=i,r)}},this.getExtCRLNumber=function(e,t){var n={extname:"cRLNumber"};if(t&&(n.critical=!0),"02"==e.substr(0,2))return n.num={hex:i(e,0)},n;throw new y("hExtV parse error: "+e)},this.getExtCRLReason=function(e,t){var n={extname:"cRLReason"};if(t&&(n.critical=!0),"0a"==e.substr(0,2))return n.code=parseInt(i(e,0),16),n;throw new Error("hExtV parse error: "+e)},this.getExtOcspNonce=function(e,t){var n={extname:"ocspNonce"};t&&(n.critical=!0);var r=i(e,0);return n.hex=r,n},this.getExtOcspNoCheck=function(e,t){var n={extname:"ocspNoCheck"};return t&&(n.critical=!0),n},this.getExtAdobeTimeStamp=function(e,t){if(void 0===e&&void 0===t){var n=this.getExtInfo("adobeTimeStamp");if(void 0===n)return;e=a(this.hex,n.vidx),t=n.critical}var i={extname:"adobeTimeStamp"};t&&(i.critical=!0);var o=r(e,0);if(o.length>1){var s=a(e,o[1]),u=this.getGeneralName(s);null!=u.uri&&(i.uri=u.uri)}if(o.length>2){var l=a(e,o[2]);"0101ff"==l&&(i.reqauth=!0),"010100"==l&&(i.reqauth=!1)}return i},this.getExtSubjectDirectoryAttributes=function(e,t){if(void 0===e&&void 0===t){var n=this.getExtInfo("subjectDirectoryAttributes");if(void 0===n)return;e=a(this.hex,n.vidx),t=n.critical}var r={extname:"subjectDirectoryAttributes"};t&&(r.critical=!0);try{for(var i=o(e),s=[],u=0;u<i.seq.length;u++){var l=i.seq[u],c=Ze(l,"seq.0.oid"),h=Ze(l,"seq.1.set");if(null==c||null==h)throw"error";s.push({attr:c,array:h})}return r.array=s,r}catch(e){throw new Error("malformed subjectDirectoryAttributes extension value")}};var b=function(e){var t={};try{var n=e.seq[0].oid,r=ae.asn1.x509.OID.name2oid(n);t.type=ae.asn1.x509.OID.oid2atype(r);var i=e.seq[1];if(null!=i.utf8str)t.ds="utf8",t.value=i.utf8str.str;else if(null!=i.numstr)t.ds="num",t.value=i.numstr.str;else if(null!=i.telstr)t.ds="tel",t.value=i.telstr.str;else if(null!=i.prnstr)t.ds="prn",t.value=i.prnstr.str;else if(null!=i.ia5str)t.ds="ia5",t.value=i.ia5str.str;else if(null!=i.visstr)t.ds="vis",t.value=i.visstr.str;else{if(null==i.bmpstr)throw"error";t.ds="bmp",t.value=i.bmpstr.str}return t}catch(e){throw new Erorr("improper ASN.1 parsed AttrTypeAndValue")}},$=function(e){try{return e.set.map((function(e){return b(e)}))}catch(e){throw new Error("improper ASN.1 parsed RDN: "+e)}};this.getX500NameRule=function(e){for(var t=null,n=[],r=0;r<e.length;r++)for(var i=e[r],o=0;o<i.length;o++)n.push(i[o]);for(r=0;r<n.length;r++){var a=n[r],s=a.ds,u=a.value,l=a.type;if(":"+s,"prn"!=s&&"utf8"!=s&&"ia5"!=s)return"mixed";if("ia5"==s){if("CN"!=l)return"mixed";if(ae.lang.String.isMail(u))continue;return"mixed"}if("C"==l){if("prn"==s)continue;return"mixed"}if(":"+s,null==t)t=s;else if(t!==s)return"mixed"}return null==t?"prn":t},this.getAttrTypeAndValue=function(e){var t=o(e);return b(t)},this.getRDN=function(e){var t=o(e);return $(t)},this.getX500NameArray=function(e){return function(e){try{return e.seq.map((function(e){return $(e)}))}catch(e){throw new Error("improper ASN.1 parsed X500Name: "+e)}}(o(e))},this.getX500Name=function(e,t,n){var r=this.getX500NameArray(e),i={str:this.dnarraytostr(r)};return i.array=r,1==n&&(i.hex=e),1==t&&(i.canon=this.c14nRDNArray(r)),i},this.readCertPEM=function(e){this.readCertHex(v(e))},this.readCertHex=function(e){this.hex=e,this.getVersion();try{h(this.hex,0,[0,7],"a3"),this.parseExt()}catch(e){}},this.getParam=function(e){var t={};return null==e&&(e={}),t.version=this.getVersion(),t.serial={hex:this.getSerialNumberHex()},t.sigalg=this.getSignatureAlgorithmField(),t.issuer=this.getIssuer(e.dncanon,e.dnhex),t.notbefore=this.getNotBefore(),t.notafter=this.getNotAfter(),t.subject=this.getSubject(e.dncanon,e.dnhex),t.sbjpubkey=Ce(this.getPublicKeyHex(),"PUBLIC KEY"),null!=this.aExtInfo&&this.aExtInfo.length>0&&(t.ext=this.getExtParamArray()),t.sighex=this.getSignatureValueHex(),1==e.tbshex&&(t.tbshex=l(this.hex,0,[0])),1==e.nodnarray&&(delete t.issuer.array,delete t.subject.array),t},this.getExtParamArray=function(e){null==e&&(-1!=p(this.hex,0,[0,"[3]"])&&(e=c(this.hex,0,[0,"[3]",0],"30")));for(var t=[],n=r(e,0),i=0;i<n.length;i++){var o=a(e,n[i]),s=this.getExtParam(o);null!=s&&t.push(s)}return t},this.getExtParam=function(e){var t=r(e,0).length;if(2!=t&&3!=t)throw new Error("wrong number elements in Extension: "+t+" "+e);var n=m(s(e,0,[0],"06")),i=!1;3==t&&"0101ff"==l(e,0,[1])&&(i=!0);var a=l(e,0,[t-1,0]),u=void 0;if("2.5.29.14"==n?u=this.getExtSubjectKeyIdentifier(a,i):"2.5.29.15"==n?u=this.getExtKeyUsage(a,i):"2.5.29.17"==n?u=this.getExtSubjectAltName(a,i):"2.5.29.18"==n?u=this.getExtIssuerAltName(a,i):"2.5.29.19"==n?u=this.getExtBasicConstraints(a,i):"2.5.29.30"==n?u=this.getExtNameConstraints(a,i):"2.5.29.31"==n?u=this.getExtCRLDistributionPoints(a,i):"2.5.29.32"==n?u=this.getExtCertificatePolicies(a,i):"2.5.29.33"==n?u=this.getExtPolicyMappings(a,i):"2.5.29.35"==n?u=this.getExtAuthorityKeyIdentifier(a,i):"2.5.29.36"==n?u=this.getExtPolicyConstraints(a,i):"2.5.29.37"==n?u=this.getExtExtKeyUsage(a,i):"2.5.29.54"==n?u=this.getExtInhibitAnyPolicy(a,i):"1.3.6.1.5.5.7.1.1"==n?u=this.getExtAuthorityInfoAccess(a,i):"2.5.29.20"==n?u=this.getExtCRLNumber(a,i):"2.5.29.21"==n?u=this.getExtCRLReason(a,i):"2.5.29.9"==n?u=this.getExtSubjectDirectoryAttributes(a,i):"1.3.6.1.5.5.7.48.1.2"==n?u=this.getExtOcspNonce(a,i):"1.3.6.1.5.5.7.48.1.5"==n?u=this.getExtOcspNoCheck(a,i):"1.2.840.113583.1.1.9.1"==n?u=this.getExtAdobeTimeStamp(a,i):null!=ot.EXT_PARSER[n]&&(u=ot.EXT_PARSER[n](n,i,a)),null!=u)return u;var c={extname:n,extn:a};try{c.extn=o(a)}catch(e){}return i&&(c.critical=!0),c},this.findExt=function(e,t){for(var n=0;n<e.length;n++)if(e[n].extname==t)return e[n];return null},this.updateExtCDPFullURI=function(e,t){var n=this.findExt(e,"cRLDistributionPoints");if(null!=n&&null!=n.array)for(var r=n.array,i=0;i<r.length;i++)if(null!=r[i].dpname&&null!=r[i].dpname.full)for(var o=r[i].dpname.full,a=0;a<o.length;a++){var s=o[i];null!=s.uri&&(s.uri=t)}},this.updateExtAIAOCSP=function(e,t){var n=this.findExt(e,"authorityInfoAccess");if(null!=n&&null!=n.array)for(var r=n.array,i=0;i<r.length;i++)null!=r[i].ocsp&&(r[i].ocsp=t)},this.updateExtAIACAIssuer=function(e,t){var n=this.findExt(e,"authorityInfoAccess");if(null!=n&&null!=n.array)for(var r=n.array,i=0;i<r.length;i++)null!=r[i].caissuer&&(r[i].caissuer=t)},this.dnarraytostr=function(e){return"/"+e.map((function(e){return function(e){return e.map((function(e){return function(e){return e.type+"="+e.value}(e).replace(/\+/,"\\+")})).join("+")}(e).replace(/\//,"\\/")})).join("/")},this.setCanonicalizedDN=function(e){var t;if(null!=e.str&&null==e.array){var n=new ae.asn1.x509.X500Name({str:e.str}).tohex();t=this.getX500NameArray(n)}else t=e.array;null==e.canon&&(e.canon=this.c14nRDNArray(t))},this.c14nRDNArray=function(e){for(var t=[],n=0;n<e.length;n++){for(var r=e[n],i=[],o=0;o<r.length;o++){var a=r[o],s=a.value;s=(s=(s=(s=s.replace(/^\s*/,"")).replace(/\s*$/,"")).replace(/\s+/g," ")).toLowerCase(),i.push(a.type.toLowerCase()+"="+s)}t.push(i.join("+"))}return"/"+t.join("/")},this.getInfo=function(){var e,t,n,r=function(e){for(var t="",n=" ",r="\n",i=e.array,o=0;o<i.length;o++){var a=i[o];if(null!=a.dn&&(t+=n+"dn: "+a.dn.str+r),null!=a.ip&&(t+=n+"ip: "+a.ip+r),null!=a.rfc822&&(t+=n+"rfc822: "+a.rfc822+r),null!=a.dns&&(t+=n+"dns: "+a.dns+r),null!=a.uri&&(t+=n+"uri: "+a.uri+r),null!=a.other)t+=n+"other: "+a.other.oid+"="+JSON.stringify(a.other.value).replace(/\"/g,"")+r}return t=t.replace(/\n$/,"")},i=function(e){for(var t="",n=e.array,r=0;r<n.length;r++){var i=n[r];if(t+=" policy oid: "+i.policyoid+"\n",void 0!==i.array)for(var o=0;o<i.array.length;o++){var a=i.array[o];void 0!==a.cps&&(t+=" cps: "+a.cps+"\n")}}return t},o=function(e){for(var t="",n=e.array,r=0;r<n.length;r++){var i=n[r];try{void 0!==i.dpname.full[0].uri&&(t+=" "+i.dpname.full[0].uri+"\n")}catch(e){}try{void 0!==i.dname.full[0].dn.hex&&(t+=" "+ot.hex2dn(i.dpname.full[0].dn.hex)+"\n")}catch(e){}}return t},a=function(e){for(var t="",n=e.array,r=0;r<n.length;r++){var i=n[r];void 0!==i.caissuer&&(t+=" caissuer: "+i.caissuer+"\n"),void 0!==i.ocsp&&(t+=" ocsp: "+i.ocsp+"\n")}return t};if(e="Basic Fields\n",e+=" serial number: "+this.getSerialNumberHex()+"\n",e+=" signature algorithm: "+this.getSignatureAlgorithmField()+"\n",e+=" issuer: "+this.getIssuerString()+"\n",e+=" notBefore: "+this.getNotBefore()+"\n",e+=" notAfter: "+this.getNotAfter()+"\n",e+=" subject: "+this.getSubjectString()+"\n",e+=" subject public key info: \n",e+=" key algorithm: "+(t=this.getPublicKey()).type+"\n","RSA"===t.type&&(e+=" n="+Ve(t.n.toString(16)).substr(0,16)+"...\n",e+=" e="+Ve(t.e.toString(16))+"\n"),null!=(n=this.aExtInfo)){e+="X509v3 Extensions:\n";for(var s=0;s<n.length;s++){var u=n[s],l=ae.asn1.x509.OID.oid2name(u.oid);""===l&&(l=u.oid);var c="";if(!0===u.critical&&(c="CRITICAL"),e+=" "+l+" "+c+":\n","basicConstraints"===l){var h=this.getExtBasicConstraints();void 0===h.cA?e+=" {}\n":(e+=" cA=true",void 0!==h.pathLen&&(e+=", pathLen="+h.pathLen),e+="\n")}else{var p;if("policyMappings"==l)e+=" "+this.getExtPolicyMappings().array.map((function(e){var t=e;return t[0]+":"+t[1]})).join(", ")+"\n";else if("policyConstraints"==l)e+=" ",null!=(p=this.getExtPolicyConstraints()).reqexp&&(e+=" reqexp="+p.reqexp),null!=p.inhibit&&(e+=" inhibit="+p.inhibit),e+="\n";else if("inhibitAnyPolicy"==l)e+=" skip="+(p=this.getExtInhibitAnyPolicy()).skip+"\n";else if("keyUsage"==l)e+=" "+this.getExtKeyUsageString()+"\n";else if("subjectKeyIdentifier"==l)e+=" "+this.getExtSubjectKeyIdentifier().kid.hex+"\n";else if("authorityKeyIdentifier"==l){var f=this.getExtAuthorityKeyIdentifier();void 0!==f.kid&&(e+=" kid="+f.kid.hex+"\n")}else{if("extKeyUsage"==l)e+=" "+this.getExtExtKeyUsage().array.join(", ")+"\n";else if("subjectAltName"==l)e+=r(this.getExtSubjectAltName())+"\n";else if("cRLDistributionPoints"==l)e+=o(this.getExtCRLDistributionPoints());else if("authorityInfoAccess"==l)e+=a(this.getExtAuthorityInfoAccess());else"certificatePolicies"==l&&(e+=i(this.getExtCertificatePolicies()))}}}}return e+="signature algorithm: "+this.getSignatureAlgorithmName()+"\n",e+="signature: "+this.getSignatureValueHex().substr(0,16)+"...\n"},"string"==typeof e&&(-1!=e.indexOf("-----BEGIN")?this.readCertPEM(e):ae.lang.String.isHex(e)&&this.readCertHex(e))}te.prototype.sign=function(e,t){var n=function(e){return ae.crypto.Util.hashString(e,t)}(e);return this.signWithMessageHash(n,t)},te.prototype.signWithMessageHash=function(e,t){var n=ee(ae.crypto.Util.getPaddedDigestInfoHex(e,t,this.n.bitLength()),16);return nt(this.doPrivate(n).toString(16),this.n.bitLength())},te.prototype.signPSS=function(e,t,n){var r,i=(r=xe(e),ae.crypto.Util.hashHex(r,t));return void 0===n&&(n=-1),this.signWithMessageHashPSS(i,t,n)},te.prototype.signWithMessageHashPSS=function(e,t,n){var r,i=we(e),o=i.length,a=this.n.bitLength()-1,s=Math.ceil(a/8),u=function(e){return ae.crypto.Util.hashHex(e,t)};if(-1===n||void 0===n)n=o;else if(-2===n)n=s-o-2;else if(n<-2)throw new Error("invalid salt length");if(s<o+n+2)throw new Error("data too long");var l="";n>0&&(l=new Array(n),(new Z).nextBytes(l),l=String.fromCharCode.apply(String,l));var c=we(u(xe("\0\0\0\0\0\0\0\0"+i+l))),h=[];for(r=0;r<s-n-o-2;r+=1)h[r]=0;var p=String.fromCharCode.apply(String,h)+""+l,f=rt(c,p.length,u),d=[];for(r=0;r<p.length;r+=1)d[r]=p.charCodeAt(r)^f.charCodeAt(r);var g=65280>>8*s-a&255;for(d[0]&=~g,r=0;r<o;r++)d.push(c.charCodeAt(r));return d.push(188),nt(this.doPrivate(new w(d)).toString(16),this.n.bitLength())},te.prototype.verify=function(e,t){if(null==(t=t.toLowerCase()).match(/^[0-9a-f]+$/))return!1;var n=ee(t,16),r=this.n.bitLength();if(n.bitLength()>r)return!1;var i=this.doPublic(n).toString(16);if(i.length+3!=r/4)return!1;var o=it(i.replace(/^1f+00/,""));if(0==o.length)return!1;var a=o[0];return o[1]==function(e){return ae.crypto.Util.hashString(e,a)}(e)},te.prototype.verifyWithMessageHash=function(e,t){if(t.length!=Math.ceil(this.n.bitLength()/4))return!1;var n=ee(t,16);if(n.bitLength()>this.n.bitLength())return 0;var r=it(this.doPublic(n).toString(16).replace(/^1f+00/,""));if(0==r.length)return!1;r[0];return r[1]==e},te.prototype.verifyPSS=function(e,t,n,r){var i,o=(i=xe(e),ae.crypto.Util.hashHex(i,n));return void 0===r&&(r=-1),this.verifyWithMessageHashPSS(o,t,n,r)},te.prototype.verifyWithMessageHashPSS=function(e,t,n,r){if(t.length!=Math.ceil(this.n.bitLength()/4))return!1;var i,o=new w(t,16),a=function(e){return ae.crypto.Util.hashHex(e,n)},s=we(e),u=s.length,l=this.n.bitLength()-1,c=Math.ceil(l/8);if(-1===r||void 0===r)r=u;else if(-2===r)r=c-u-2;else if(r<-2)throw new Error("invalid salt length");if(c<u+r+2)throw new Error("data too long");var h=this.doPublic(o).toByteArray();for(i=0;i<h.length;i+=1)h[i]&=255;for(;h.length<c;)h.unshift(0);if(188!==h[c-1])throw new Error("encoded message does not end in 0xbc");var p=(h=String.fromCharCode.apply(String,h)).substr(0,c-u-1),f=h.substr(p.length,u),d=65280>>8*c-l&255;if(0!=(p.charCodeAt(0)&d))throw new Error("bits beyond keysize not zero");var g=rt(f,p.length,a),m=[];for(i=0;i<p.length;i+=1)m[i]=p.charCodeAt(i)^g.charCodeAt(i);m[0]&=~d;var v=c-u-r-2;for(i=0;i<v;i+=1)if(0!==m[i])throw new Error("leftmost octets not zero");if(1!==m[v])throw new Error("0x01 marker not found");return f===we(a(xe("\0\0\0\0\0\0\0\0"+s+String.fromCharCode.apply(String,m.slice(-r)))))},te.SALT_LEN_HLEN=-1,te.SALT_LEN_MAX=-2,te.SALT_LEN_RECOVER=-2,ot.EXT_PARSER={},ot.registExtParser=function(e,t){ot.EXT_PARSER[e]=t},ot.hex2dn=function(e,t){void 0===t&&(t=0);var n=new ot;le.getTLV(e,t);return n.getX500Name(e).str},ot.hex2rdn=function(e,t){if(void 0===t&&(t=0),"31"!==e.substr(t,2))throw new Error("malformed RDN");for(var n=new Array,r=le.getChildIdx(e,t),i=0;i<r.length;i++)n.push(ot.hex2attrTypeValue(e,r[i]));return(n=n.map((function(e){return e.replace("+","\\+")}))).join("+")},ot.hex2attrTypeValue=function(e,t){var n=le,r=n.getV;if(void 0===t&&(t=0),"30"!==e.substr(t,2))throw new Error("malformed attribute type and value");var i=n.getChildIdx(e,t);2!==i.length||e.substr(i[0],2);var o=r(e,i[0]),a=ae.asn1.ASN1Util.oidHexToInt(o);return ae.asn1.x509.OID.oid2atype(a)+"="+we(r(e,i[1]))},ot.getPublicKeyFromCertHex=function(e){var t=new ot;return t.readCertHex(e),t.getPublicKey()},ot.getPublicKeyFromCertPEM=function(e){var t=new ot;return t.readCertPEM(e),t.getPublicKey()},ot.getPublicKeyInfoPropOfCertPEM=function(e){var t,n,r=le.getVbyList,i={};return i.algparam=null,(t=new ot).readCertPEM(e),n=t.getPublicKeyHex(),i.keyhex=r(n,0,[1],"03").substr(2),i.algoid=r(n,0,[0,0],"06"),"2a8648ce3d0201"===i.algoid&&(i.algparam=r(n,0,[0,1],"06")),i},ot.KEYUSAGE_NAME=["digitalSignature","nonRepudiation","keyEncipherment","dataEncipherment","keyAgreement","keyCertSign","cRLSign","encipherOnly","decipherOnly"];void 0!==ae&&ae||(ae={}),void 0!==ae.jws&&ae.jws||(ae.jws={}),ae.jws.JWS=function(){var e=ae.jws.JWS.isSafeJSONString;this.parseJWS=function(t,n){if(void 0===this.parsedJWS||!n&&void 0===this.parsedJWS.sigvalH){var r=t.match(/^([^.]+)\.([^.]+)\.([^.]+)$/);if(null==r)throw"JWS signature is not a form of 'Head.Payload.SigValue'.";var i=r[1],o=r[2],a=r[3],s=i+"."+o;if(this.parsedJWS={},this.parsedJWS.headB64U=i,this.parsedJWS.payloadB64U=o,this.parsedJWS.sigvalB64U=a,this.parsedJWS.si=s,!n){var u=ve(a),l=ee(u,16);this.parsedJWS.sigvalH=u,this.parsedJWS.sigvalBI=l}var c=ue(i),h=ue(o);if(this.parsedJWS.headS=c,this.parsedJWS.payloadS=h,!e(c,this.parsedJWS,"headP"))throw"malformed JSON string for JWS Head: "+c}}},ae.jws.JWS.sign=function(e,t,n,r,i){var o,a,s,u=ae,l=u.jws.JWS,c=l.readSafeJSONString,h=l.isSafeJSONString,p=u.crypto,f=(p.ECDSA,p.Mac),d=p.Signature,g=JSON;if("string"!=typeof t&&"object"!=typeof t)throw"spHeader must be JSON string or object: "+t;if("object"==typeof t&&(a=t,o=g.stringify(a)),"string"==typeof t){if(!h(o=t))throw"JWS Head is not safe JSON string: "+o;a=c(o)}if(s=n,"object"==typeof n&&(s=g.stringify(n)),""!=e&&null!=e||void 0===a.alg||(e=a.alg),""!=e&&null!=e&&void 0===a.alg&&(a.alg=e,o=g.stringify(a)),e!==a.alg)throw"alg and sHeader.alg doesn't match: "+e+"!="+a.alg;var m=null;if(void 0===l.jwsalg2sigalg[e])throw"unsupported alg name: "+e;m=l.jwsalg2sigalg[e];var v=se(o)+"."+se(s),y="";if("Hmac"==m.substr(0,4)){if(void 0===r)throw"mac key shall be specified for HS* alg";var b=new f({alg:m,prov:"cryptojs",pass:r});b.updateString(v),y=b.doFinal()}else if(-1!=m.indexOf("withECDSA")){(w=new d({alg:m})).init(r,i),w.updateString(v);var $=w.sign();y=ae.crypto.ECDSA.asn1SigToConcatSig($)}else{var w;if("none"!=m)(w=new d({alg:m})).init(r,i),w.updateString(v),y=w.sign()}return v+"."+me(y)},ae.jws.JWS.verify=function(e,t,n){var r,i=ae,o=i.jws.JWS,a=o.readSafeJSONString,s=i.crypto,u=s.ECDSA,l=s.Mac,c=s.Signature;if(r=te,!He(e))return!1;var h=e.split(".");if(3!==h.length)return!1;var p=h[0]+"."+h[1],f=ve(h[2]),d=a(ue(h[0])),g=null,m=null;if(void 0===d.alg)throw"algorithm not specified in header";if((m=(g=d.alg).substr(0,2),null!=n&&"[object Array]"===Object.prototype.toString.call(n)&&n.length>0)&&-1==(":"+n.join(":")+":").indexOf(":"+g+":"))throw"algorithm '"+g+"' not accepted in the list";if("none"!=g&&null===t)throw"key shall be specified to verify.";if("string"==typeof t&&-1!=t.indexOf("-----BEGIN ")&&(t=tt.getKey(t)),!("RS"!=m&&"PS"!=m||t instanceof r))throw"key shall be a RSAKey obj for RS* and PS* algs";if("ES"==m&&!(t instanceof u))throw"key shall be a ECDSA obj for ES* algs";var v=null;if(void 0===o.jwsalg2sigalg[d.alg])throw"unsupported alg name: "+g;if("none"==(v=o.jwsalg2sigalg[g]))throw"not supported";if("Hmac"==v.substr(0,4)){if(void 0===t)throw"hexadecimal key shall be specified for HMAC";var y=new l({alg:v,pass:t});return y.updateString(p),f==y.doFinal()}if(-1!=v.indexOf("withECDSA")){var b,$=null;try{$=u.concatSigToASN1Sig(f)}catch(e){return!1}return(b=new c({alg:v})).init(t),b.updateString(p),b.verify($)}return(b=new c({alg:v})).init(t),b.updateString(p),b.verify(f)},ae.jws.JWS.parse=function(e){var t,n,r,i=e.split("."),o={};if(2!=i.length&&3!=i.length)throw"malformed sJWS: wrong number of '.' splitted elements";return t=i[0],n=i[1],3==i.length&&(r=i[2]),o.headerObj=ae.jws.JWS.readSafeJSONString(ue(t)),o.payloadObj=ae.jws.JWS.readSafeJSONString(ue(n)),o.headerPP=JSON.stringify(o.headerObj,null," "),null==o.payloadObj?o.payloadPP=ue(n):o.payloadPP=JSON.stringify(o.payloadObj,null," "),void 0!==r&&(o.sigHex=ve(r)),o},ae.jws.JWS.verifyJWT=function(e,t,n){var r=ae.jws,i=r.JWS,o=i.readSafeJSONString,a=i.inArray,s=i.includedArray;if(!He(e))return!1;var u=e.split(".");if(3!=u.length)return!1;var l=u[0],c=u[1],h=(ve(u[2]),o(ue(l))),p=o(ue(c));if(void 0===h.alg)return!1;if(void 0===n.alg)throw"acceptField.alg shall be specified";if(!a(h.alg,n.alg))return!1;if(void 0!==p.iss&&"object"==typeof n.iss&&!a(p.iss,n.iss))return!1;if(void 0!==p.sub&&"object"==typeof n.sub&&!a(p.sub,n.sub))return!1;if(void 0!==p.aud&&"object"==typeof n.aud)if("string"==typeof p.aud){if(!a(p.aud,n.aud))return!1}else if("object"==typeof p.aud&&!s(p.aud,n.aud))return!1;var f=r.IntDate.getNow();return void 0!==n.verifyAt&&"number"==typeof n.verifyAt&&(f=n.verifyAt),void 0!==n.gracePeriod&&"number"==typeof n.gracePeriod||(n.gracePeriod=0),!(void 0!==p.exp&&"number"==typeof p.exp&&p.exp+n.gracePeriod<f)&&(!(void 0!==p.nbf&&"number"==typeof p.nbf&&f<p.nbf-n.gracePeriod)&&(!(void 0!==p.iat&&"number"==typeof p.iat&&f<p.iat-n.gracePeriod)&&((void 0===p.jti||void 0===n.jti||p.jti===n.jti)&&!!i.verify(e,t,n.alg))))},ae.jws.JWS.includedArray=function(e,t){var n=ae.jws.JWS.inArray;if(null===e)return!1;if("object"!=typeof e)return!1;if("number"!=typeof e.length)return!1;for(var r=0;r<e.length;r++)if(!n(e[r],t))return!1;return!0},ae.jws.JWS.inArray=function(e,t){if(null===t)return!1;if("object"!=typeof t)return!1;if("number"!=typeof t.length)return!1;for(var n=0;n<t.length;n++)if(t[n]==e)return!0;return!1},ae.jws.JWS.jwsalg2sigalg={HS256:"HmacSHA256",HS384:"HmacSHA384",HS512:"HmacSHA512",RS256:"SHA256withRSA",RS384:"SHA384withRSA",RS512:"SHA512withRSA",ES256:"SHA256withECDSA",ES384:"SHA384withECDSA",ES512:"SHA512withECDSA",PS256:"SHA256withRSAandMGF1",PS384:"SHA384withRSAandMGF1",PS512:"SHA512withRSAandMGF1",none:"none"},ae.jws.JWS.isSafeJSONString=function(e,t,n){var r=null;try{return"object"!=typeof(r=oe(e))||r.constructor===Array?0:(t&&(t[n]=r),1)}catch(e){return 0}},ae.jws.JWS.readSafeJSONString=function(e){var t=null;try{return"object"!=typeof(t=oe(e))||t.constructor===Array?null:t}catch(e){return null}},ae.jws.JWS.getEncodedSignatureValueFromJWS=function(e){var t=e.match(/^[^.]+\.[^.]+\.([^.]+)$/);if(null==t)throw"JWS signature is not a form of 'Head.Payload.SigValue'.";return t[1]},ae.jws.JWS.getJWKthumbprint=function(e){if("RSA"!==e.kty&&"EC"!==e.kty&&"oct"!==e.kty)throw"unsupported algorithm for JWK Thumprint";var t="{";if("RSA"===e.kty){if("string"!=typeof e.n||"string"!=typeof e.e)throw"wrong n and e value for RSA key";t+='"e":"'+e.e+'",',t+='"kty":"'+e.kty+'",',t+='"n":"'+e.n+'"}'}else if("EC"===e.kty){if("string"!=typeof e.crv||"string"!=typeof e.x||"string"!=typeof e.y)throw"wrong crv, x and y value for EC key";t+='"crv":"'+e.crv+'",',t+='"kty":"'+e.kty+'",',t+='"x":"'+e.x+'",',t+='"y":"'+e.y+'"}'}else if("oct"===e.kty){if("string"!=typeof e.k)throw"wrong k value for oct(symmetric) key";t+='"kty":"'+e.kty+'",',t+='"k":"'+e.k+'"}'}var n=xe(t);return me(ae.crypto.Util.hashHex(n,"sha256"))},ae.jws.IntDate={},ae.jws.IntDate.get=function(e){var t=ae.jws.IntDate,n=t.getNow,r=t.getZulu;if("now"==e)return n();if("now + 1hour"==e)return n()+3600;if("now + 1day"==e)return n()+86400;if("now + 1month"==e)return n()+2592e3;if("now + 1year"==e)return n()+31536e3;if(e.match(/Z$/))return r(e);if(e.match(/^[0-9]+$/))return parseInt(e);throw"unsupported format: "+e},ae.jws.IntDate.getZulu=function(e){return ke(e)},ae.jws.IntDate.getNow=function(){return~~(new Date/1e3)},ae.jws.IntDate.intDate2UTCString=function(e){return new Date(1e3*e).toUTCString()},ae.jws.IntDate.intDate2Zulu=function(e){var t=new Date(1e3*e);return("0000"+t.getUTCFullYear()).slice(-4)+("00"+(t.getUTCMonth()+1)).slice(-2)+("00"+t.getUTCDate()).slice(-2)+("00"+t.getUTCHours()).slice(-2)+("00"+t.getUTCMinutes()).slice(-2)+("00"+t.getUTCSeconds()).slice(-2)+"Z"},void 0!==ae&&ae||(ae={}),void 0!==ae.jws&&ae.jws||(ae.jws={}),ae.jws.JWSJS=function(){var e=ae.jws.JWS,t=e.readSafeJSONString;this.aHeader=[],this.sPayload="",this.aSignature=[],this.init=function(){this.aHeader=[],this.sPayload=void 0,this.aSignature=[]},this.initWithJWS=function(e){this.init();var t=e.split(".");if(3!=t.length)throw"malformed input JWS";this.aHeader.push(t[0]),this.sPayload=t[1],this.aSignature.push(t[2])},this.addSignature=function(e,t,n,r){if(void 0===this.sPayload||null===this.sPayload)throw"there's no JSON-JS signature to add.";var i=this.aHeader.length;if(this.aHeader.length!=this.aSignature.length)throw"aHeader.length != aSignature.length";try{var o=ae.jws.JWS.sign(e,t,this.sPayload,n,r).split(".");o[0],o[2];this.aHeader.push(o[0]),this.aSignature.push(o[2])}catch(e){throw this.aHeader.length>i&&this.aHeader.pop(),this.aSignature.length>i&&this.aSignature.pop(),"addSignature failed: "+e}},this.verifyAll=function(e){if(this.aHeader.length!==e.length||this.aSignature.length!==e.length)return!1;for(var t=0;t<e.length;t++){var n=e[t];if(2!==n.length)return!1;if(!1===this.verifyNth(t,n[0],n[1]))return!1}return!0},this.verifyNth=function(t,n,r){if(this.aHeader.length<=t||this.aSignature.length<=t)return!1;var i=this.aHeader[t],o=this.aSignature[t],a=i+"."+this.sPayload+"."+o,s=!1;try{s=e.verify(a,n,r)}catch(e){return!1}return s},this.readJWSJS=function(e){if("string"==typeof e){var n=t(e);if(null==n)throw"argument is not safe JSON object string";this.aHeader=n.headers,this.sPayload=n.payload,this.aSignature=n.signatures}else try{if(!(e.headers.length>0))throw"malformed header";if(this.aHeader=e.headers,"string"!=typeof e.payload)throw"malformed signatures";if(this.sPayload=e.payload,!(e.signatures.length>0))throw"malformed signatures";this.aSignature=e.signatures}catch(e){throw"malformed JWS-JS JSON object: "+e}},this.getJSON=function(){return{headers:this.aHeader,payload:this.sPayload,signatures:this.aSignature}},this.isEmpty=function(){return 0==this.aHeader.length?1:0}},t.SecureRandom=Z,t.rng_seed_time=G,t.BigInteger=w,t.RSAKey=te,t.ECDSA=ae.crypto.ECDSA,t.DSA=ae.crypto.DSA,t.Signature=ae.crypto.Signature,t.MessageDigest=ae.crypto.MessageDigest,t.Mac=ae.crypto.Mac,t.KEYUTIL=tt,t.ASN1HEX=le,t.X509=ot,t.X509CRL=function(e){var t=ae.lang.String.isHex,n=le,r=n.getV,i=n.getTLV,o=n.getVbyList,a=n.getTLVbyList,s=n.getTLVbyListEx,u=n.getIdxbyList,l=n.getIdxbyListEx,c=n.getChildIdx,h=new ot;this.hex=null,this.posSigAlg=null,this.posRevCert=null,this.parsed=null,this._setPos=function(){var e=u(this.hex,0,[0,0]),t=this.hex.substr(e,2);if("02"==t)this.posSigAlg=1;else{if("30"!=t)throw new Error("malformed 1st item of TBSCertList: "+t);this.posSigAlg=0}var n,r=u(this.hex,0,[0,this.posSigAlg+3]),i=this.hex.substr(r,2);if("17"==i||"18"==i)n=u(this.hex,0,[0,this.posSigAlg+4]),this.posRevCert=null,-1!=n&&"30"==this.hex.substr(n,2)&&(this.posRevCert=this.posSigAlg+4);else if("30"==i)this.posRevCert=this.posSigAlg+3;else{if("a0"!=i)throw new Error("malformed nextUpdate or revCert tag: "+i);this.posRevCert=null}},this.getVersion=function(){return 0==this.posSigAlg?null:parseInt(o(this.hex,0,[0,0],"02"),16)+1},this.getSignatureAlgorithmField=function(){var e=a(this.hex,0,[0,this.posSigAlg],"30");return h.getAlgorithmIdentifierName(e)},this.getIssuer=function(){return h.getX500Name(this.getIssuerHex())},this.getIssuerHex=function(){return a(this.hex,0,[0,this.posSigAlg+1],"30")},this.getThisUpdate=function(){var e=o(this.hex,0,[0,this.posSigAlg+2]);return result=we(e)},this.getNextUpdate=function(){var e=u(this.hex,0,[0,this.posSigAlg+3]),t=this.hex.substr(e,2);return"17"!=t&&"18"!=t?null:we(r(this.hex,e))},this.getRevCertArray=function(){if(null==this.posRevCert)return null;for(var e=[],t=u(this.hex,0,[0,this.posRevCert]),n=c(this.hex,t),r=0;r<n.length;r++){var o=i(this.hex,n[r]);e.push(this.getRevCert(o))}return e},this.getRevCert=function(e){var t={},n=c(e,0);return t.sn={hex:o(e,0,[0],"02")},t.date=we(o(e,0,[1])),3==n.length&&(t.ext=h.getExtParamArray(a(e,0,[2]))),t},this.findRevCert=function(e){var t=new ot(e).getSerialNumberHex();return this.findRevCertBySN(t)},this.findRevCertBySN=function(e){if(null==this.parsed&&this.getParam(),null==this.parsed.revcert)return null;for(var t=this.parsed.revcert,n=0;n<t.length;n++)if(e==t[n].sn.hex)return t[n];return null},this.getSignatureValueHex=function(){return o(this.hex,0,[2],"03",!0)},this.verifySignature=function(e){var t=this.getSignatureAlgorithmField(),n=this.getSignatureValueHex(),r=a(this.hex,0,[0],"30"),i=new ae.crypto.Signature({alg:t});return i.init(e),i.updateHex(r),i.verify(n)},this.getParam=function(e){var t={},n=this.getVersion();null!=n&&(t.version=n),t.sigalg=this.getSignatureAlgorithmField(),t.issuer=this.getIssuer(),t.thisupdate=this.getThisUpdate();var r=this.getNextUpdate();null!=r&&(t.nextupdate=r);var i=this.getRevCertArray();if(null!=i&&(t.revcert=i),-1!=l(this.hex,0,[0,"[0]"])){var o=s(this.hex,0,[0,"[0]",0]);t.ext=h.getExtParamArray(o)}return t.sighex=this.getSignatureValueHex(),this.parsed=t,"object"==typeof e&&(1==e.tbshex&&(t.tbshex=a(this.hex,0,[0])),1==e.nodnarray&&delete t.issuer.array),t},"string"==typeof e&&(t(e)?this.hex=e:e.match(/-----BEGIN X509 CRL/)&&(this.hex=Te(e)),this._setPos())},t.CryptoJS=g,t.b64tohex=b,t.b64toBA=$,t.ECFieldElementFp=ne,t.ECPointFp=re,t.ECCurveFp=ie,t.stoBA=ce,t.BAtos=he,t.BAtohex=pe,t.stohex=fe,t.stob64=function(e){return y(fe(e))},t.stob64u=function(e){return de(y(fe(e)))},t.b64utos=function(e){return he($(ge(e)))},t.b64tob64u=de,t.b64utob64=ge,t.hex2b64=y,t.hextob64u=me,t.b64utohex=ve,t.utf8tob64u=se,t.b64utoutf8=ue,t.utf8tob64=function(e){return y(Pe(Be(e)))},t.b64toutf8=function(e){return decodeURIComponent(De(b(e)))},t.utf8tohex=ye,t.hextoutf8=be,t.hextorstr=we,t.rstrtohex=xe,t.hextob64=Se,t.hextob64nl=function(e){return Ee(Se(e),64)},t.b64nltohex=Ae,t.hextopem=Ce,t.pemtohex=Te,t.hextoArrayBuffer=function(e){if(e.length%2!=0)throw"input is not even length";if(null==e.match(/^[0-9A-Fa-f]+$/))throw"input is not hexadecimal";for(var t=new ArrayBuffer(e.length/2),n=new DataView(t),r=0;r<e.length/2;r++)n.setUint8(r,parseInt(e.substr(2*r,2),16));return t},t.ArrayBuffertohex=function(e){for(var t="",n=new DataView(e),r=0;r<e.byteLength;r++)t+=("00"+n.getUint8(r).toString(16)).slice(-2);return t},t.zulutomsec=Fe,t.msectozulu=function(e){var t=new Date(e),n=("0000"+t.getUTCFullYear()).slice(-4),r=("00"+(t.getUTCMonth()+1)).slice(-2),i=("00"+t.getUTCDate()).slice(-2),o=("00"+t.getUTCHours()).slice(-2),a=("00"+t.getUTCMinutes()).slice(-2),s=("00"+t.getUTCSeconds()).slice(-2),u=("000"+t.getUTCMilliseconds()).slice(-3);return n+r+i+o+a+s+(u=""!=(u=u.replace(/0+$/,""))?"."+u:u)+"Z"},t.zulutosec=ke,t.zulutodate=function(e){return new Date(Fe(e))},t.datetozulu=function(e,t,n){var r,i=e.getUTCFullYear();if(t){if(i<1950||2049<i)throw"not proper year for UTCTime: "+i;r=(""+i).slice(-2)}else r=("000"+i).slice(-4);if(r+=("0"+(e.getUTCMonth()+1)).slice(-2),r+=("0"+e.getUTCDate()).slice(-2),r+=("0"+e.getUTCHours()).slice(-2),r+=("0"+e.getUTCMinutes()).slice(-2),r+=("0"+e.getUTCSeconds()).slice(-2),n){var o=e.getUTCMilliseconds();0!==o&&(r+="."+(o=(o=("00"+o).slice(-3)).replace(/0+$/g,"")))}return r+="Z"},t.uricmptohex=Pe,t.hextouricmp=De,t.ipv6tohex=Oe,t.hextoipv6=Ie,t.hextoip=_e,t.iptohex=Le,t.ucs2hextoutf8=Me,t.encodeURIComponentAll=Be,t.newline_toUnix=function(e){return e=e.replace(/\r\n/gm,"\n")},t.newline_toDos=function(e){return e=(e=e.replace(/\r\n/gm,"\n")).replace(/\n/gm,"\r\n")},t.hextoposhex=Ve,t.intarystrtohex=function(e){e=(e=(e=e.replace(/^\s*\[\s*/,"")).replace(/\s*\]\s*$/,"")).replace(/\s*/g,"");try{return e.split(/,/).map((function(e,t,n){var r=parseInt(e);if(r<0||255<r)throw"integer not in range 0-255";return("00"+r.toString(16)).slice(-2)})).join("")}catch(e){throw"malformed integer array string: "+e}},t.strdiffidx=function(e,t){var n=e.length;e.length>t.length&&(n=t.length);for(var r=0;r<n;r++)if(e.charCodeAt(r)!=t.charCodeAt(r))return r;return e.length!=t.length?n:-1},t.oidtohex=qe,t.hextooid=ze,t.strpad=We,t.bitstrtoint=Ye,t.inttobitstr=Xe,t.bitstrtobinstr=Qe,t.binstrtobitstr=function(e){if("string"!=typeof e)return null;if(null==e.match(/^[01]+$/))return null;try{return Xe(parseInt(e,2))}catch(e){return null}},t.isBase64URLDot=He,t.namearraytobinstr=Je,t.extendClass=et,t.foldnl=Ee,t.b64topem=function(e,t){return"-----BEGIN "+t+"-----\r\n"+Ee(e,64)+"\r\n-----END "+t+"-----\r\n"},t.pemtob64=function(e){return-1==e.indexOf("-----BEGIN ")||-1==e.indexOf("-----END ")?null:(e=(e=(e=e.replace(/^[\s\S]*?-----BEGIN [^-]+-----/m,"")).replace(/-----END [\s\S]+$/m,"")).replace(/\s+/g,"")).match(/^[0-9a-zA-Z+/=]+$/)?e:null},t.timeogen=Re,t.aryval=Ze,t.inttohex=Ke,t.twoscompl=Ge,t.KJUR=ae,t.crypto=ae.crypto,t.asn1=ae.asn1,t.jws=ae.jws,t.lang=ae.lang,t.VERSION="11.1.0",t.VERSION_FULL="jsrsasign(all) 11.1.0 (2024-02-01) (c) 2010-2023 Kenji Urushima | kjur.github.io/jsrsasign/license"}).call(this,n(383).Buffer)},90:function(e,t){angular.module("graphdb.framework.core.directives.uppercased",[]).directive("uppercased",(function(){return{require:"ngModel",link:function(e,t,n,r){r.$parsers.push((function(e){return e?e.toUpperCase():""})),t.css("text-transform","uppercase")}}}))},91:function(e,t,n){"use strict";n.r(t);var r=n(3),i=n(7),o=n(5),a=n(51);function s(e){return(s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function u(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,c(r.key),r)}}function l(e,t,n){return t&&u(e.prototype,t),n&&u(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function c(e){var t=function(e,t){if("object"!=s(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=s(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==s(t)?t:t+""}function h(e,t,n,s){return{restrict:"E",templateUrl:"js/angular/core/directives/operations-statuses-monitor/templates/operations-statuses-monitor.html",link:function(u){u.OPERATION_STATUS=i.OPERATION_STATUS,u.OPERATION_GROUP_TYPE=r.OPERATION_GROUP_TYPE,u.OPERATION_TYPE=o.OPERATION_TYPE,u.operationsSummary=void 0,u.activeOperations=void 0;var l=void 0,c=!1,h=0,f=a.SequenceGeneratorUtil.getFibonacciSequenceGenerator(),d=function(e){if(u.activeOperations.operations)return u.activeOperations.operations.reduce((function(t,n){return e!==n.operationGroup||r.OPERATION_GROUP_TYPE.CLUSTER_OPERATION===n.operationGroup||r.OPERATION_GROUP_TYPE.BACKUP_AND_RESTORE_OPERATION===n.operationGroup?t:r.OPERATION_GROUP_TYPE.QUERIES_OPERATION===n.operationGroup||r.OPERATION_GROUP_TYPE.IMPORT_OPERATION===n.operationGroup?t+n.runningOperationCount:t+1}),0)},g=function(e){return u.activeOperations.operations.reduce((function(t,n){return e!==n.operationGroup?t:i.OPERATION_STATUS_SORT_ORDER.getOrder(n.status)>i.OPERATION_STATUS_SORT_ORDER.getOrder(t)?n.status:t}),i.OPERATION_STATUS.INFORMATION)},m=function(e){if(!angular.equals(u.activeOperations,e)){u.activeOperations=e,u.activeOperations.operations.sort((function(e,t){return o.OPERATION_TYPE_SORT_ORDER[e.type]-o.OPERATION_TYPE_SORT_ORDER[t.type]}));var t=[],n=[];u.activeOperations.operations.forEach((function(e){var r,i,o=e.operationGroup;n.includes(o)||(n.push(o),t.push((i=d(r=o),new p(r,i,g(r)))))})),u.operationsSummary=t}},v=function(){if(s.isAuthenticated()&&!c)if(h>0)h--;else{var e=t.getActiveRepository();e&&n.monitorActiveOperations(e).then((function(e){m(e),f.reset(),h=0})).catch((function(){return h=f.next()})).finally((function(){return c=!1}))}else u.activeOperations=void 0};u.$on("$destroy",(function(){l&&e.cancel(l)})),v(),l=e((function(){return v()}),2e3)}}}angular.module("graphdb.framework.core.directives.operationsstatusesmonitor",[]).directive("operationsStatusesMonitor",h),h.$inject=["$interval","$repositories","MonitoringRestService","$jwtAuth"];var p=l((function e(t,n,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.type=t,this.runningOperations=n,this.status=r}))},92:function(e,t,n){"use strict";n.r(t);var r=n(1),i=n(37);function o(e,t,n,o,a,s,u,l,c){return{restrict:"E",require:"ngModel",scope:{ngModel:"=",namespaces:"=",isAutocompleteEnabled:"=",placeholder:"@",styleClass:"@",multiline:"@",defaultresults:"=",onModelChange:"&",keypress:"&",required:"=?",validateUri:"=?",validateSimpleRdfStarValue:"=?",validateLiteralValue:"=?",validateDefaultValue:"=?"},templateUrl:"js/angular/core/directives/autocomplete/templates/autocomplete.html",link:function(e,u,h,p){var f,d,g=u.find(".autocomplete-input");e.searchInput=e.ngModel||"",e.placeholder=h.$attr.placeholder||l.instant("search.resources.msg"),u.autoCompleteStatus=void 0,u.autoCompleteWarning=!1,e.onBlur=function(){setTimeout((function(){e.autoCompleteUriResults=[]}),0)},e.onChange=function(){return e.searchInput=v(e.searchInput),u.autoCompleteStatus?E(e.searchInput):Promise.resolve()},e.onKeyDown=function(n){if("Enter"===n.key)n.preventDefault(),S()?x():e.keypress({$event:n});else if(e.searchInput&&e.searchInput.length>0&&!u.autoCompleteWarning&&!u.autoCompleteStatus){u.autoCompleteWarning=!0;var i=Object(r.decodeHTML)(l.instant("explore.autocomplete.warning.msg"));t.warning("",'<div class="autocomplete-toast"><a href="autocomplete">'.concat(i,"</a></div>"),{allowHtml:!0})}u.autoCompleteStatus&&!angular.isUndefined(e.autoCompleteUriResults)&&("ArrowDown"===n.key&&e.activeSearchElm<e.autoCompleteUriResults.length-1&&(e.activeSearchElm++,A()),"ArrowUp"===n.key&&e.activeSearchElm>0&&(n.preventDefault(),e.activeSearchElm--,C()),"Escape"===n.key&&(e.autoCompleteUriResults=[]),e.searchInput||w())},e.getResultItemHtml=function(e){return s.trustAsHtml(e.description)},e.selectResource=function(t){"prefix"===t.type?(e.searchInput=v(t.value+":"),g.focus(),e.onChange()):"default"===t.type?(e.searchInput=t.value,e.autoCompleteUriResults=[],g.focus()):t&&"string"==typeof t&&m(t)?(e.searchInput=t,e.autoCompleteUriResults=[]):(e.searchInput="<"+t.value+">",e.autoCompleteUriResults=[])},e.setActiveItemIndex=function(t){u.autoCompleteStatus&&(e.activeSearchElm=t)},e.positionAutocompleteWrapper=function(e){c((function(){var t=u.find(".autocomplete-results-wrapper"),n=t.get(0);if(e)return n.style.left="auto",void(n.style.right="auto");if(!n||"auto"===n.style.right){var r=t.parent().find(".autocomplete-select")[0].getBoundingClientRect(),i=document.body.getElementsByClassName("edit-rule-row")[0].getBoundingClientRect(),o=document.body.getBoundingClientRect(),a=n.getBoundingClientRect();if(n&&a.right>=o.width){var s=i.right-r.right;n.style.left="auto",n.style.right="-".concat(s,"px")}else n&&a.right<o.width&&(n.style.right="auto",n.style.left="0px")}}),0)},e.$watch("autoCompleteUriResults",(function(t){var n=!t||t&&0===t.length;e.positionAutocompleteWrapper(n)})),p.$validators.custom=function(t){return!(e.validateUri||e.validateLiteralValue||e.validateDefaultValue)||!t||(e.validateUri&&m(t)||e.validateSimpleRdfStarValue&&y(t)||e.validateLiteralValue&&$(t)||e.validateDefaultValue&&b(t)?(u.find(".autocomplete-editable").removeClass("invalid"),!0):(u.find(".autocomplete-editable").addClass("invalid"),!1))};var m=function(e){var t=e.indexOf("<")>=0&&e.indexOf(">")>=0,n=-1===e.indexOf("<")&&-1===e.lastIndexOf(">"),r=/^<?(http|urn).*>?/.test(e)&&(t||n),i=!1;if(r)if(e.indexOf("http")>=0){var o=e.indexOf("//");i=o>4&&e.substring(o+2).length>0}else e.indexOf("urn")>=0&&(i=e.substring(4).length>0);return r&&i},v=function(t){if(t){if(!/^<?(http|urn).*>?/.test(t)){var r=t.split(":"),i=r[0],o=r[1];if(!angular.isUndefined(o)){var a=n.getNamespaceUriForPrefix(e.namespaces,i);if(f=a!==f?a:f)return g.val(f),"<"+f+o+">"}}return t}},y=function(e){return/^<<.*>>$/.test(e)},b=function(t){return e.defaultresults.some((function(e){return e.value===t}))},$=function(e){return/^"([^"\\]*(?:\\.[^"\\]*)*)"(@[a-zA-Z]+(-[a-zA-Z0-9]+)*)?(\^\^[^\s]+)?$/.test(e)},w=function(){e.searchInput="",e.selectedElementIndex=-1,e.autoCompleteUriResults=[]},x=function(){if(S())if("prefix"===e.autoCompleteUriResults[e.activeSearchElm].type)e.searchInput=v(e.autoCompleteUriResults[e.activeSearchElm].value+":"),e.autoCompleteUriResults=[];else{var n=e.autoCompleteUriResults[e.activeSearchElm];e.selectResource({type:n.type,value:n.value,description:n.description})}else{var r=e.searchInput;m(r)?e.selectResource(r):t.error(l.instant("invalid.uri.msg"))}},S=function(){return u.autoCompleteStatus&&e.autoCompleteUriResults&&e.autoCompleteUriResults.length>0},E=function(t){if(t){var n=t.replace(f,f+";");return u.autoCompleteStatus?(";"===n.charAt(0)&&(n=n.slice(1)),n=function(e){var t=e;if(-1===t.indexOf(";")&&m(t)){t=t.replace(/<|>/g,"");var n=/[^/^#]*$/.exec(t)[0];return t.split(n)[0]+";"+n}return t}(n),d&&d.resolve(),d=a.defer(),o.getAutocompleteSuggestions(n,d.promise).then(i.mapUriAsNtripleAutocompleteResponse).then((function(t){d=null,e.defaultresults&&e.defaultresults.length>0?e.autoCompleteUriResults=F(e.defaultresults,e.searchInput,t):e.autoCompleteUriResults=t,e.activeSearchElm=0}))):Promise.resolve()}},A=function(){var e=u.find(".autocomplete-results-wrapper"),t=e.children("div"),n=e.children("div.active");void 0!==n[0]&&n[0].offsetTop-t.height()-6-e.scrollTop()>90&&e.scrollTop(n[0].offsetTop-t.height()-6-90)},C=function(){var e=u.find(".autocomplete-results-wrapper"),t=e.children("div"),n=e.children("div.active");void 0!==n[0]&&n[0].offsetTop-t.height()+6<=e.scrollTop()-34&&e.scrollTop(e.scrollTop()-34)},T=[];T.push(e.$watch("isAutocompleteEnabled",(function(){u.autoCompleteStatus=!!e.isAutocompleteEnabled,""===e.searchInput||e.ngModel||e.onChange()}))),T.push(e.$watch("searchInput",(function(t){e.autoexpand&&e.adjustTextareaHeight();e.ngModel=t,e.onModelChange()}))),T.push(e.$on("$destroy",(function(){T.forEach((function(e){return e()}))}))),e.isMultiline="true"===h.multiline,e.isMultiline&&(g=u.find(".autocomplete-textarea"));e.initialRows=h.initialRows||1,e.autoexpand=h.autoexpand||!1,e.adjustTextareaHeight=function(){e.isMultiline&&c((function(){var e=g[0];e.style.overflow="hidden",e.style.height="0px",e.style.height=e.scrollHeight+"px"}),0)};var F=function(e,t,n){return e.filter((function(e){return e&&e.value.toLowerCase().includes(t.toLowerCase())})).map((function(e){return{type:e.type,value:e.value,description:k(l.instant(e.description),t)}})).concat(n)},k=function(e,t){var n=e.toLowerCase().indexOf(t.toLowerCase());if(-1===n)return e;var r=n+t.length;return e.substring(0,n)+"<b>"+e.substring(n,r)+"</b>"+e.substring(r)}}}}angular.module("graphdb.framework.core.directives.autocomplete",[]).directive("autocomplete",o),o.$inject=["$location","toastr","ClassInstanceDetailsService","AutocompleteRestService","$q","$sce","$repositories","$translate","$timeout"]},93:function(e,t){function n(){return{restrict:"A",scope:{propIndeterminate:"="},link:function(e,t,n){var r=[];r.push(e.$watch("propIndeterminate",(function(){t.prop("indeterminate",!!e.propIndeterminate)})));e.$on("$destroy",(function(){r.forEach((function(e){return e()}))}))}}}angular.module("graphdb.framework.core.directives.prop-indeterminate",[]).directive("propIndeterminate",n),n.$inject=[]},94:function(e,t){angular.module("graphdb.framework.core.directives.page-info-tooltip",[]).directive("pageInfoTooltip",(function(){return{restrict:"E",templateUrl:"js/angular/templates/pageInfoTooltip.html",link:function(e,t){e.isPopoverOpen=!1;var n=function(){e.$apply((function(){e.isPopoverOpen=!0}))},r=function(){e.$apply((function(){e.isPopoverOpen=!1}))};t.on("mouseenter",n),t.on("mouseleave",r),e.$on("$destroy",(function(){t.off("mouseenter",n),t.off("mouseleave",r)}))}}}))},95:function(e,t){angular.module("graphdb.framework.core.filters.searchFilter",[]).filter("searchFilter",(function(){return function(e,t){return t?e.filter((function(e){return e.label.toLowerCase().includes(t.toLowerCase())})):e}}))},96:function(e,t){angular.module("graphdb.framework.core.filters.bytes",[]).filter("bytes",(function(){return function(e,t){if(isNaN(parseFloat(e))||!isFinite(e))return"-";void 0===t&&(t=1);var n=Math.floor(Math.log(e)/Math.log(1024)),r=["bytes","kB","MB","GB","TB","PB"][n];return"bytes"===r&&(t=0),(e/Math.pow(1024,n)).toFixed(t)+" "+r}}))},97:function(e,t){angular.module("graphdb.framework.core.services.language-service",[]).provider("$languageService",(function(){var e={defaultLanguage:"en",availableLanguages:[{key:"en",name:"English"},{key:"fr",name:"Français"}]}||{defaultLanguage:"en",availableLanguages:[{key:"en",name:"English"}]},t=e.defaultLanguage;this.getDefaultLanguage=function(){return e.defaultLanguage},this.$get=function(){return{setLanguage:function(e){t=e},getLanguage:function(){return t},getDefaultLanguage:function(){return e.defaultLanguage},getAvailableLanguages:function(){return e.availableLanguages},getSupportedLanguages:function(){return e.availableLanguages.map((function(e){return e.key}))}}}}))},98:function(e,t){var n;
93
+ /*! 12.2.13 */
94
+ !window.XMLHttpRequest||window.FileAPI&&FileAPI.shouldLoad||(window.XMLHttpRequest.prototype.setRequestHeader=(n=window.XMLHttpRequest.prototype.setRequestHeader,function(e,t){if("__setXHR_"===e){var r=t(this);r instanceof Function&&r(this)}else n.apply(this,arguments)}));var r=angular.module("ngFileUpload",[]);r.version="12.2.13",r.service("UploadBase",["$http","$q","$timeout",function(e,t,n){function i(r){function i(e){l.notify&&l.notify(e),c.progressFunc&&n((function(){c.progressFunc(e)}))}function o(e){return null!=r._start&&s?{loaded:e.loaded+r._start,total:r._file&&r._file.size||e.total,type:e.type,config:r,lengthComputable:!0,target:e.target}:e}function u(){e(r).then((function(e){if(s&&r._chunkSize&&!r._finished&&r._file){var t=r._file&&r._file.size||0;i({loaded:Math.min(r._end,t),total:t,config:r,type:"progress"}),a.upload(r,!0)}else r._finished&&delete r._finished,l.resolve(e)}),(function(e){l.reject(e)}),(function(e){l.notify(e)}))}r.method=r.method||"POST",r.headers=r.headers||{};var l=r._deferred=r._deferred||t.defer(),c=l.promise;return r.disableProgress||(r.headers.__setXHR_=function(){return function(e){e&&e.upload&&e.upload.addEventListener&&(r.__XHR=e,r.xhrFn&&r.xhrFn(e),e.upload.addEventListener("progress",(function(e){e.config=r,i(o(e))}),!1),e.upload.addEventListener("load",(function(e){e.lengthComputable&&(e.config=r,i(o(e)))}),!1))}}),s?r._chunkSize&&r._end&&!r._finished?(r._start=r._end,r._end+=r._chunkSize,u()):r.resumeSizeUrl?e.get(r.resumeSizeUrl).then((function(e){r._start=r.resumeSizeResponseReader?r.resumeSizeResponseReader(e.data):parseInt((null==e.data.size?e.data:e.data.size).toString()),r._chunkSize&&(r._end=r._start+r._chunkSize),u()}),(function(e){throw e})):r.resumeSize?r.resumeSize().then((function(e){r._start=e,r._chunkSize&&(r._end=r._start+r._chunkSize),u()}),(function(e){throw e})):(r._chunkSize&&(r._start=0,r._end=r._start+r._chunkSize),u()):u(),c.success=function(e){return c.then((function(t){e(t.data,t.status,t.headers,r)})),c},c.error=function(e){return c.then(null,(function(t){e(t.data,t.status,t.headers,r)})),c},c.progress=function(e){return c.progressFunc=e,c.then(null,null,(function(t){e(t)})),c},c.abort=c.pause=function(){return r.__XHR&&n((function(){r.__XHR.abort()})),c},c.xhr=function(e){return r.xhrFn=function(t){return function(){t&&t.apply(c,arguments),e.apply(c,arguments)}}(r.xhrFn),c},a.promisesCount++,c.finally&&c.finally instanceof Function&&c.finally((function(){a.promisesCount--})),c}function o(e){var t={};for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);return t}var a=this;a.promisesCount=0,this.isResumeSupported=function(){return window.Blob&&window.Blob.prototype.slice};var s=this.isResumeSupported();this.isUploadInProgress=function(){return a.promisesCount>0},this.rename=function(e,t){return e.ngfName=t,e},this.jsonBlob=function(e){null==e||angular.isString(e)||(e=JSON.stringify(e));var t=new window.Blob([e],{type:"application/json"});return t._ngfBlob=!0,t},this.json=function(e){return angular.toJson(e)},this.isFile=function(e){return null!=e&&(e instanceof window.Blob||e.flashId&&e.name&&e.size)},this.upload=function(e,t){function n(t,n){if(t._ngfBlob)return t;if(e._file=e._file||t,null!=e._start&&s){e._end&&e._end>=t.size&&(e._finished=!0,e._end=t.size);var r=t.slice(e._start,e._end||t.size);return r.name=t.name,r.ngfName=t.ngfName,e._chunkSize&&(n.append("_chunkSize",e._chunkSize),n.append("_currentChunkSize",e._end-e._start),n.append("_chunkNumber",Math.floor(e._start/e._chunkSize)),n.append("_totalSize",e._file.size)),r}return t}function r(t,i,o){if(void 0!==i)if(angular.isDate(i)&&(i=i.toISOString()),angular.isString(i))t.append(o,i);else if(a.isFile(i)){var s=n(i,t),u=o.split(",");u[1]&&(s.ngfName=u[1].replace(/^\s+|\s+$/g,""),o=u[0]),e._fileKey=e._fileKey||o,t.append(o,s,s.ngfName||s.name)}else if(angular.isObject(i)){if(i.$$ngfCircularDetection)throw"ngFileUpload: Circular reference in config.data. Make sure specified data for Upload.upload() has no circular reference: "+o;i.$$ngfCircularDetection=!0;try{for(var l in i)if(i.hasOwnProperty(l)&&"$$ngfCircularDetection"!==l){var c=null==e.objectKey?"[i]":e.objectKey;i.length&&parseInt(l)>-1&&(c=null==e.arrayKey?c:e.arrayKey),r(t,i[l],o+c.replace(/[ik]/g,l))}}finally{delete i.$$ngfCircularDetection}}else t.append(o,i)}return t||(e=o(e)),e._isDigested||(e._isDigested=!0,e._chunkSize=a.translateScalars(e.resumeChunkSize),e._chunkSize=e._chunkSize?parseInt(e._chunkSize.toString()):null,e.headers=e.headers||{},e.headers["Content-Type"]=void 0,e.transformRequest=e.transformRequest?angular.isArray(e.transformRequest)?e.transformRequest:[e.transformRequest]:[],e.transformRequest.push((function(t){var n,i=new window.FormData;for(n in t=t||e.fields||{},e.file&&(t.file=e.file),t)if(t.hasOwnProperty(n)){var o=t[n];e.formDataAppender?e.formDataAppender(i,n,o):r(i,o,n)}return i}))),i(e)},this.http=function(t){return(t=o(t)).transformRequest=t.transformRequest||function(t){return window.ArrayBuffer&&t instanceof window.ArrayBuffer||t instanceof window.Blob?t:e.defaults.transformRequest[0].apply(this,arguments)},t._chunkSize=a.translateScalars(t.resumeChunkSize),t._chunkSize=t._chunkSize?parseInt(t._chunkSize.toString()):null,i(t)},this.translateScalars=function(e){if(angular.isString(e)){if(e.search(/kb/i)===e.length-2)return parseFloat(1024*e.substring(0,e.length-2));if(e.search(/mb/i)===e.length-2)return parseFloat(1048576*e.substring(0,e.length-2));if(e.search(/gb/i)===e.length-2)return parseFloat(1073741824*e.substring(0,e.length-2));if(e.search(/b/i)===e.length-1)return parseFloat(e.substring(0,e.length-1));if(e.search(/s/i)===e.length-1)return parseFloat(e.substring(0,e.length-1));if(e.search(/m/i)===e.length-1)return parseFloat(60*e.substring(0,e.length-1));if(e.search(/h/i)===e.length-1)return parseFloat(3600*e.substring(0,e.length-1))}return e},this.urlToBlob=function(n){var r=t.defer();return e({url:n,method:"get",responseType:"arraybuffer"}).then((function(e){var t=new Uint8Array(e.data),i=e.headers("content-type")||"image/WebP",o=new window.Blob([t],{type:i}),a=n.match(/.*\/(.+?)(\?.*)?$/);a.length>1&&(o.name=a[1]),r.resolve(o)}),(function(e){r.reject(e)})),r.promise},this.setDefaults=function(e){this.defaults=e||{}},this.defaults={},this.version=r.version}]),r.service("Upload",["$parse","$timeout","$compile","$q","UploadExif",function(e,t,n,r,i){function o(e,t,n){var i=[u.emptyPromise()];return angular.forEach(e,(function(r,o){0===r.type.indexOf("image/jpeg")&&u.attrGetter("ngfFixOrientation",t,n,{$file:r})&&i.push(u.happyPromise(u.applyExifRotation(r),r).then((function(t){e.splice(o,1,t)})))})),r.all(i)}function a(e,t,n,i){var o=u.attrGetter("ngfResize",t,n);if(!o||!u.isResizeSupported()||!e.length)return u.emptyPromise();if(o instanceof Function){var a=r.defer();return o(e).then((function(r){s(r,e,t,n,i).then((function(e){a.resolve(e)}),(function(e){a.reject(e)}))}),(function(e){a.reject(e)}))}return s(o,e,t,n,i)}function s(e,t,n,i,o){function a(r,a){if(0===r.type.indexOf("image")){if(e.pattern&&!u.validatePattern(r,e.pattern))return;e.resizeIf=function(e,t){return u.attrGetter("ngfResizeIf",n,i,{$width:e,$height:t,$file:r})};var l=u.resize(r,e);s.push(l),l.then((function(e){t.splice(a,1,e)}),(function(e){r.$error="resize",(r.$errorMessages=r.$errorMessages||{}).resize=!0,r.$errorParam=(e?(e.message?e.message:e)+": ":"")+(r&&r.name),o.$ngfValidations.push({name:"resize",valid:!1}),u.applyModelValidation(o,t)}))}}for(var s=[u.emptyPromise()],l=0;l<t.length;l++)a(t[l],l);return r.all(s)}var u=i;return u.getAttrWithDefaults=function(e,t){if(null!=e[t])return e[t];var n=u.defaults[t];return null==n||angular.isString(n)?n:JSON.stringify(n)},u.attrGetter=function(t,n,r,i){var o=this.getAttrWithDefaults(n,t);if(!r)return o;try{return i?e(o)(r,i):e(o)(r)}catch(e){if(t.search(/min|max|pattern/i))return o;throw e}},u.shouldUpdateOn=function(e,t,n){var r=u.attrGetter("ngfModelOptions",t,n);return!r||!r.updateOn||r.updateOn.split(" ").indexOf(e)>-1},u.emptyPromise=function(){var e=r.defer(),n=arguments;return t((function(){e.resolve.apply(e,n)})),e.promise},u.rejectPromise=function(){var e=r.defer(),n=arguments;return t((function(){e.reject.apply(e,n)})),e.promise},u.happyPromise=function(e,n){var i=r.defer();return e.then((function(e){i.resolve(e)}),(function(e){t((function(){throw e})),i.resolve(n)})),i.promise},u.updateModel=function(n,r,i,s,l,c,h){function p(o,a,l,h,p){r.$$ngfPrevValidFiles=o,r.$$ngfPrevInvalidFiles=a;var f=o&&o.length?o[0]:null,d=a&&a.length?a[0]:null;n&&(u.applyModelValidation(n,o),n.$setViewValue(p?f:o)),s&&e(s)(i,{$files:o,$file:f,$newFiles:l,$duplicateFiles:h,$invalidFiles:a,$invalidFile:d,$event:c});var g=u.attrGetter("ngfModelInvalid",r);g&&t((function(){e(g).assign(i,p?d:a)})),t((function(){}))}function f(){function e(){t((function(){p($?g.concat(b):b,$?m.concat(y):y,l,v,w)}),S&&S.debounce?S.debounce.change||S.debounce:0)}var o=x?d:b;a(o,r,i,n).then((function(){x?u.validate(d,$?g.length:0,n,r,i).then((function(t){b=t.validsFiles,y=t.invalidsFiles,e()})):e()}),(function(){for(var t=0;t<o.length;t++){var n=o[t];if("resize"===n.$error){var r=b.indexOf(n);r>-1&&(b.splice(r,1),y.push(n)),e()}}}))}var d,g,m,v=[],y=[],b=[];g=r.$$ngfPrevValidFiles||[],m=r.$$ngfPrevInvalidFiles||[],n&&n.$modelValue&&(g=function(e){return angular.isArray(e)?e:[e]}(n.$modelValue));var $=u.attrGetter("ngfKeep",r,i);d=(l||[]).slice(0),("distinct"===$||!0===u.attrGetter("ngfKeepDistinct",r,i))&&function(){function e(e,t){return e.name===t.name&&(e.$ngfOrigSize||e.size)===(t.$ngfOrigSize||t.size)&&e.type===t.type}function t(t){var n;for(n=0;n<g.length;n++)if(e(t,g[n]))return!0;for(n=0;n<m.length;n++)if(e(t,m[n]))return!0;return!1}if(l){d=[],v=[];for(var n=0;n<l.length;n++)t(l[n])?v.push(l[n]):d.push(l[n])}}();var w=!$&&!u.attrGetter("ngfMultiple",r,i)&&!u.attrGetter("multiple",r);if(!$||d.length){u.attrGetter("ngfBeforeModelChange",r,i,{$files:l,$file:l&&l.length?l[0]:null,$newFiles:d,$duplicateFiles:v,$event:c});var x=u.attrGetter("ngfValidateAfterResize",r,i),S=u.attrGetter("ngfModelOptions",r,i);u.validate(d,$?g.length:0,n,r,i).then((function(e){h?p(d,[],l,v,w):(S&&S.allowInvalid||x?b=d:(b=e.validFiles,y=e.invalidFiles),u.attrGetter("ngfFixOrientation",r,i)&&u.isExifSupported()?o(b,r,i).then((function(){f()})):f())}))}},u}]),r.directive("ngfSelect",["$parse","$timeout","$compile","Upload",function(e,t,n,r){function i(e){var t=e.match(/Android[^\d]*(\d+)\.(\d+)/);if(t&&t.length>2){var n=r.defaults.androidFixMinorVersion||4;return parseInt(t[1])<4||parseInt(t[1])===n&&parseInt(t[2])<n}return-1===e.indexOf("Chrome")&&/.*Windows.*Safari.*/.test(e)}function o(e,t,n,r,o,s,u,l){function c(){return"input"===t[0].tagName.toLowerCase()&&n.type&&"file"===n.type.toLowerCase()}function h(){return g("ngfChange")||g("ngfSelect")}function p(t){if(l.shouldUpdateOn("change",n,e)){var i=t.__files_||t.target&&t.target.files,o=[];if(!i)return;for(var a=0;a<i.length;a++)o.push(i[a]);l.updateModel(r,n,e,h(),o.length?o:null,t)}}function f(e,r){function i(t){e.attr("id","ngf-"+t),r.attr("id","ngf-label-"+t)}for(var o=0;o<t[0].attributes.length;o++){var a=t[0].attributes[o];"type"!==a.name&&"class"!==a.name&&"style"!==a.name&&("id"===a.name?(i(a.value),m.push(n.$observe("id",i))):e.attr(a.name,a.value||"required"!==a.name&&"multiple"!==a.name?a.value:a.name))}}function d(t){l.shouldUpdateOn("click",n,e)&&b.val()&&(b.val(null),l.updateModel(r,n,e,h(),null,t,!0))}var g=function(e,t){return l.attrGetter(e,n,t)};l.registerModelChangeValidator(r,n,e);var m=[];g("ngfMultiple")&&m.push(e.$watch(g("ngfMultiple"),(function(){b.attr("multiple",g("ngfMultiple",e))}))),g("ngfCapture")&&m.push(e.$watch(g("ngfCapture"),(function(){b.attr("capture",g("ngfCapture",e))}))),g("ngfAccept")&&m.push(e.$watch(g("ngfAccept"),(function(){b.attr("accept",g("ngfAccept",e))}))),m.push(n.$observe("accept",(function(){b.attr("accept",g("accept"))})));var v=0,y=0,b=t;c()||(b=function(){if(c())return t;var e=angular.element('<input type="file">'),n=angular.element("<label>upload</label>");return n.css("visibility","hidden").css("position","absolute").css("overflow","hidden").css("width","0px").css("height","0px").css("border","none").css("margin","0px").css("padding","0px").attr("tabindex","-1"),f(e,n),a.push({el:t,ref:n}),document.body.appendChild(n.append(e)[0]),e}()),b.bind("change",p),c()?t.bind("click",d):t.bind("click touchstart touchend",(function(n){if(t.attr("disabled"))return!1;if(!g("ngfSelectDisabled",e)){var r=function(e){var t=e.changedTouches||e.originalEvent&&e.originalEvent.changedTouches;if(t){if("touchstart"===e.type)return y=t[0].clientX,v=t[0].clientY,!0;if("touchend"===e.type){var n=t[0].clientX,r=t[0].clientY;if(Math.abs(n-y)>20||Math.abs(r-v)>20)return e.stopPropagation(),e.preventDefault(),!1}return!0}}(n);if(null!=r)return r;d(n);try{c()||document.body.contains(b[0])||(a.push({el:t,ref:b.parent()}),document.body.appendChild(b.parent()[0]),b.bind("change",p))}catch(e){}return i(navigator.userAgent)?setTimeout((function(){b[0].click()}),0):b[0].click(),!1}})),-1!==navigator.appVersion.indexOf("MSIE 10")&&b.bind("click",(function e(t){if(b&&!b.attr("__ngf_ie10_Fix_")){if(!b[0].parentNode)return void(b=null);t.preventDefault(),t.stopPropagation(),b.unbind("click");var n=b.clone();return b.replaceWith(n),(b=n).attr("__ngf_ie10_Fix_","true"),b.bind("change",p),b.bind("click",e),b[0].click(),!1}b.removeAttr("__ngf_ie10_Fix_")})),r&&r.$formatters.push((function(e){return(null==e||0===e.length)&&b.val()&&b.val(null),e})),e.$on("$destroy",(function(){c()||b.parent().remove(),angular.forEach(m,(function(e){e()}))})),s((function(){for(var e=0;e<a.length;e++){var t=a[e];document.body.contains(t.el[0])||(a.splice(e,1),t.ref.remove())}})),window.FileAPI&&window.FileAPI.ngfFixIE&&window.FileAPI.ngfFixIE(t,b,p)}var a=[];return{restrict:"AEC",require:"?ngModel",link:function(e,n,i,a){o(e,n,i,a,0,t,0,r)}}}]),function(){function e(e,t,n,r,i,o,a,s){function u(o){var a=e.attrGetter("ngfNoObjectUrl",i,n);e.dataUrl(o,a).finally((function(){t((function(){var e=(a?o.$ngfDataUrl:o.$ngfBlobUrl)||o.$ngfDataUrl;s?r.css("background-image","url('"+(e||"")+"')"):r.attr("src",e),e?r.removeClass("ng-hide"):r.addClass("ng-hide")}))}))}t((function(){var t=n.$watch(i[o],(function(t){var l=a;if("ngfThumbnail"===o&&(l||(l={width:r[0].naturalWidth||r[0].clientWidth,height:r[0].naturalHeight||r[0].clientHeight}),0===l.width&&window.getComputedStyle)){var c=getComputedStyle(r[0]);c.width&&c.width.indexOf("px")>-1&&c.height&&c.height.indexOf("px")>-1&&(l={width:parseInt(c.width.slice(0,-2)),height:parseInt(c.height.slice(0,-2))})}return angular.isString(t)?(r.removeClass("ng-hide"),s?r.css("background-image","url('"+t+"')"):r.attr("src",t)):void(!t||!t.type||0!==t.type.search(function(e){return"img"===e.tagName.toLowerCase()?"image":"audio"===e.tagName.toLowerCase()?"audio":"video"===e.tagName.toLowerCase()?"video":/./}(r[0]))||s&&0!==t.type.indexOf("image")?r.addClass("ng-hide"):l&&e.isResizeSupported()?(l.resizeIf=function(r,o){return e.attrGetter("ngfResizeIf",i,n,{$width:r,$height:o,$file:t})},e.resize(t,l).then((function(e){u(e)}),(function(e){throw e}))):u(t))}));n.$on("$destroy",(function(){t()}))}))}r.service("UploadDataUrl",["UploadBase","$timeout","$q",function(e,t,n){var r=e;return r.base64DataUrl=function(e){if(angular.isArray(e)){var t=n.defer(),i=0;return angular.forEach(e,(function(n){r.dataUrl(n,!0).finally((function(){if(++i===e.length){var n=[];angular.forEach(e,(function(e){n.push(e.$ngfDataUrl)})),t.resolve(n,e)}}))})),t.promise}return r.dataUrl(e,!0)},r.dataUrl=function(e,i){if(!e)return r.emptyPromise(e,e);if(i&&null!=e.$ngfDataUrl||!i&&null!=e.$ngfBlobUrl)return r.emptyPromise(i?e.$ngfDataUrl:e.$ngfBlobUrl,e);var o=i?e.$$ngfDataUrlPromise:e.$$ngfBlobUrlPromise;if(o)return o;var a=n.defer();return t((function(){if(window.FileReader&&e&&(!window.FileAPI||-1===navigator.userAgent.indexOf("MSIE 8")||e.size<2e4)&&(!window.FileAPI||-1===navigator.userAgent.indexOf("MSIE 9")||e.size<4e6)){var n=window.URL||window.webkitURL;if(n&&n.createObjectURL&&!i){var o;try{o=n.createObjectURL(e)}catch(n){return void t((function(){e.$ngfBlobUrl="",a.reject()}))}t((function(){if(e.$ngfBlobUrl=o,o){a.resolve(o,e),r.blobUrls=r.blobUrls||[],r.blobUrlsTotalSize=r.blobUrlsTotalSize||0,r.blobUrls.push({url:o,size:e.size}),r.blobUrlsTotalSize+=e.size||0;for(var t=r.defaults.blobUrlsMaxMemory||268435456,i=r.defaults.blobUrlsMaxQueueSize||200;(r.blobUrlsTotalSize>t||r.blobUrls.length>i)&&r.blobUrls.length>1;){var s=r.blobUrls.splice(0,1)[0];n.revokeObjectURL(s.url),r.blobUrlsTotalSize-=s.size}}}))}else{var s=new FileReader;s.onload=function(n){t((function(){e.$ngfDataUrl=n.target.result,a.resolve(n.target.result,e),t((function(){delete e.$ngfDataUrl}),1e3)}))},s.onerror=function(){t((function(){e.$ngfDataUrl="",a.reject()}))},s.readAsDataURL(e)}}else t((function(){e[i?"$ngfDataUrl":"$ngfBlobUrl"]="",a.reject()}))})),(o=i?e.$$ngfDataUrlPromise=a.promise:e.$$ngfBlobUrlPromise=a.promise).finally((function(){delete e[i?"$$ngfDataUrlPromise":"$$ngfBlobUrlPromise"]})),o},r}]),r.directive("ngfSrc",["Upload","$timeout",function(t,n){return{restrict:"AE",link:function(r,i,o){e(t,n,r,i,o,"ngfSrc",t.attrGetter("ngfResize",o,r),!1)}}}]),r.directive("ngfBackground",["Upload","$timeout",function(t,n){return{restrict:"AE",link:function(r,i,o){e(t,n,r,i,o,"ngfBackground",t.attrGetter("ngfResize",o,r),!0)}}}]),r.directive("ngfThumbnail",["Upload","$timeout",function(t,n){return{restrict:"AE",link:function(r,i,o){var a=t.attrGetter("ngfSize",o,r);e(t,n,r,i,o,"ngfThumbnail",a,t.attrGetter("ngfAsBackground",o,r))}}}]),r.config(["$compileProvider",function(e){e.imgSrcSanitizationWhitelist&&e.imgSrcSanitizationWhitelist(/^\s*(https?|ftp|mailto|tel|webcal|local|file|data|blob):/),e.aHrefSanitizationWhitelist&&e.aHrefSanitizationWhitelist(/^\s*(https?|ftp|mailto|tel|webcal|local|file|data|blob):/)}]),r.filter("ngfDataUrl",["UploadDataUrl","$sce",function(e,t){return function(n,r,i){if(angular.isString(n))return t.trustAsResourceUrl(n);var o=n&&((r?n.$ngfDataUrl:n.$ngfBlobUrl)||n.$ngfDataUrl);return n&&!o?(!n.$ngfDataUrlFilterInProgress&&angular.isObject(n)&&(n.$ngfDataUrlFilterInProgress=!0,e.dataUrl(n,r)),""):(n&&delete n.$ngfDataUrlFilterInProgress,(n&&o?i?t.trustAsResourceUrl(o):o:n)||"")}}])}(),r.service("UploadValidate",["UploadDataUrl","$q","$timeout",function(e,t,n){var r=e;return r.validatePattern=function(e,t){if(!t)return!0;var n=function e(t){var n="",r=[];if(t.length>2&&"/"===t[0]&&"/"===t[t.length-1])n=t.substring(1,t.length-1);else{var i=t.split(",");if(i.length>1)for(var o=0;o<i.length;o++){var a=e(i[o]);a.regexp?(n+="("+a.regexp+")",o<i.length-1&&(n+="|")):r=r.concat(a.excludes)}else 0===t.indexOf("!")?r.push("^((?!"+e(t.substring(1)).regexp+").)*$"):(0===t.indexOf(".")&&(t="*"+t),n=(n="^"+t.replace(new RegExp("[.\\\\+*?\\[\\^\\]$(){}=!<>|:\\-]","g"),"\\$&")+"$").replace(/\\\*/g,".*").replace(/\\\?/g,"."))}return{regexp:n,excludes:r}}(t),r=!0;if(n.regexp&&n.regexp.length){var i=new RegExp(n.regexp,"i");r=null!=e.type&&i.test(e.type)||null!=e.name&&i.test(e.name)}for(var o=n.excludes.length;o--;){var a=new RegExp(n.excludes[o],"i");r=r&&(null==e.type||a.test(e.type))&&(null==e.name||a.test(e.name))}return r},r.ratioToFloat=function(e){var t=e.toString(),n=t.search(/[x:]/i);return n>-1?parseFloat(t.substring(0,n))/parseFloat(t.substring(n+1)):parseFloat(t)},r.registerModelChangeValidator=function(e,t,n){e&&e.$formatters.push((function(i){if(e.$dirty){var o=i;i&&!angular.isArray(i)&&(o=[i]),r.validate(o,0,e,t,n).then((function(){r.applyModelValidation(e,o)}))}return i}))},r.applyModelValidation=function(e,t){(function(e,t){null==t||e.$dirty||(e.$setDirty?e.$setDirty():e.$dirty=!0)})(e,t),angular.forEach(e.$ngfValidations,(function(t){e.$setValidity(t.name,t.valid)}))},r.getValidationAttr=function(e,t,n,i,o){var a="ngf"+n[0].toUpperCase()+n.substr(1),s=r.attrGetter(a,e,t,{$file:o});if(null==s&&(s=r.attrGetter("ngfValidate",e,t,{$file:o}))){var u=(i||n).split(".");s=s[u[0]],u.length>1&&(s=s&&s[u[1]])}return s},r.validate=function(e,n,i,o,a){function s(t,n,s){if(e){for(var u=e.length,l=null;u--;){var f=e[u];if(f){var d=r.getValidationAttr(o,a,t,n,f);null!=d&&(s(f,d,u)||(-1===c.indexOf(t)?(f.$error=t,(f.$errorMessages=f.$errorMessages||{})[t]=!0,f.$errorParam=d,-1===p.indexOf(f)&&p.push(f),h||e.splice(u,1),l=!1):e.splice(u,1)))}}null!==l&&i.$ngfValidations.push({name:t,valid:l})}}function u(n,s,u,f,d){function g(t,r,i){function o(o){if(o())if(-1===c.indexOf(n)){if(r.$error=n,(r.$errorMessages=r.$errorMessages||{})[n]=!0,r.$errorParam=i,-1===p.indexOf(r)&&p.push(r),!h){var a=e.indexOf(r);a>-1&&e.splice(a,1)}t.resolve(!1)}else{var s=e.indexOf(r);s>-1&&e.splice(s,1),t.resolve(!0)}else t.resolve(!0)}null!=i?f(r,i).then((function(e){o((function(){return!d(e,i)}))}),(function(){o((function(){return l("ngfValidateForce",{$file:r})}))})):t.resolve(!0)}var m=[r.emptyPromise(!0)];e&&(e=void 0===e.length?[e]:e,angular.forEach(e,(function(e){var i=t.defer();return m.push(i.promise),!u||null!=e.type&&0===e.type.search(u)?void("dimensions"===n&&null!=r.attrGetter("ngfDimensions",o)?r.imageDimensions(e).then((function(t){g(i,e,l("ngfDimensions",{$file:e,$width:t.width,$height:t.height}))}),(function(){i.resolve(!1)})):"duration"===n&&null!=r.attrGetter("ngfDuration",o)?r.mediaDuration(e).then((function(t){g(i,e,l("ngfDuration",{$file:e,$duration:t}))}),(function(){i.resolve(!1)})):g(i,e,r.getValidationAttr(o,a,n,s,e))):void i.resolve(!0)})));var v=t.defer();return t.all(m).then((function(e){for(var t=!0,r=0;r<e.length;r++)if(!e[r]){t=!1;break}i.$ngfValidations.push({name:n,valid:t}),v.resolve(t)})),v.promise}(i=i||{}).$ngfValidations=i.$ngfValidations||[],angular.forEach(i.$ngfValidations,(function(e){e.valid=!0}));var l=function(e,t){return r.attrGetter(e,o,a,t)},c=(r.attrGetter("ngfIgnoreInvalid",o,a)||"").split(" "),h=r.attrGetter("ngfRunAllValidations",o,a);if(null==e||0===e.length)return r.emptyPromise({validFiles:e,invalidFiles:[]});e=void 0===e.length?[e]:e.slice(0);var p=[];s("pattern",null,r.validatePattern),s("minSize","size.min",(function(e,t){return e.size+.1>=r.translateScalars(t)})),s("maxSize","size.max",(function(e,t){return e.size-.1<=r.translateScalars(t)}));var f=0;if(s("maxTotalSize",null,(function(t,n){return!((f+=t.size)>r.translateScalars(n))||(e.splice(0,e.length),!1)})),s("validateFn",null,(function(e,t){return!0===t||null===t||""===t})),!e.length)return r.emptyPromise({validFiles:[],invalidFiles:p});var d=t.defer(),g=[];return g.push(u("maxHeight","height.max",/image/,this.imageDimensions,(function(e,t){return e.height<=t}))),g.push(u("minHeight","height.min",/image/,this.imageDimensions,(function(e,t){return e.height>=t}))),g.push(u("maxWidth","width.max",/image/,this.imageDimensions,(function(e,t){return e.width<=t}))),g.push(u("minWidth","width.min",/image/,this.imageDimensions,(function(e,t){return e.width>=t}))),g.push(u("dimensions",null,/image/,(function(e,t){return r.emptyPromise(t)}),(function(e){return e}))),g.push(u("ratio",null,/image/,this.imageDimensions,(function(e,t){for(var n=t.toString().split(","),i=!1,o=0;o<n.length;o++)Math.abs(e.width/e.height-r.ratioToFloat(n[o]))<.01&&(i=!0);return i}))),g.push(u("maxRatio","ratio.max",/image/,this.imageDimensions,(function(e,t){return e.width/e.height-r.ratioToFloat(t)<1e-4}))),g.push(u("minRatio","ratio.min",/image/,this.imageDimensions,(function(e,t){return e.width/e.height-r.ratioToFloat(t)>-1e-4}))),g.push(u("maxDuration","duration.max",/audio|video/,this.mediaDuration,(function(e,t){return e<=r.translateScalars(t)}))),g.push(u("minDuration","duration.min",/audio|video/,this.mediaDuration,(function(e,t){return e>=r.translateScalars(t)}))),g.push(u("duration",null,/audio|video/,(function(e,t){return r.emptyPromise(t)}),(function(e){return e}))),g.push(u("validateAsyncFn",null,null,(function(e,t){return t}),(function(e){return!0===e||null===e||""===e}))),t.all(g).then((function(){if(h)for(var t=0;t<e.length;t++){e[t].$error&&e.splice(t--,1)}h=!1,s("maxFiles",null,(function(e,t,r){return t>n+r})),d.resolve({validFiles:e,invalidFiles:p})})),d.promise},r.imageDimensions=function(e){if(e.$ngfWidth&&e.$ngfHeight){var i=t.defer();return n((function(){i.resolve({width:e.$ngfWidth,height:e.$ngfHeight})})),i.promise}if(e.$ngfDimensionPromise)return e.$ngfDimensionPromise;var o=t.defer();return n((function(){return 0!==e.type.indexOf("image")?void o.reject("not image"):void r.dataUrl(e).then((function(t){function r(){var t=a[0].naturalWidth||a[0].clientWidth,n=a[0].naturalHeight||a[0].clientHeight;a.remove(),e.$ngfWidth=t,e.$ngfHeight=n,o.resolve({width:t,height:n})}function i(){a.remove(),o.reject("load error")}var a=angular.element("<img>").attr("src",t).css("visibility","hidden").css("position","fixed").css("max-width","none !important").css("max-height","none !important");a.on("load",r),a.on("error",i);var s=0;(function e(){n((function(){a[0].parentNode&&(a[0].clientWidth?r():s++>10?i():e())}),1e3)})(),angular.element(document.getElementsByTagName("body")[0]).append(a)}),(function(){o.reject("load error")}))})),e.$ngfDimensionPromise=o.promise,e.$ngfDimensionPromise.finally((function(){delete e.$ngfDimensionPromise})),e.$ngfDimensionPromise},r.mediaDuration=function(e){if(e.$ngfDuration){var i=t.defer();return n((function(){i.resolve(e.$ngfDuration)})),i.promise}if(e.$ngfDurationPromise)return e.$ngfDurationPromise;var o=t.defer();return n((function(){return 0!==e.type.indexOf("audio")&&0!==e.type.indexOf("video")?void o.reject("not media"):void r.dataUrl(e).then((function(t){function r(){var t=a[0].duration;e.$ngfDuration=t,a.remove(),o.resolve(t)}function i(){a.remove(),o.reject("load error")}var a=angular.element(0===e.type.indexOf("audio")?"<audio>":"<video>").attr("src",t).css("visibility","none").css("position","fixed");a.on("loadedmetadata",r),a.on("error",i);var s=0;(function e(){n((function(){a[0].parentNode&&(a[0].duration?r():s>10?i():e())}),1e3)})(),angular.element(document.body).append(a)}),(function(){o.reject("load error")}))})),e.$ngfDurationPromise=o.promise,e.$ngfDurationPromise.finally((function(){delete e.$ngfDurationPromise})),e.$ngfDurationPromise},r}]),r.service("UploadResize",["UploadValidate","$q",function(e,t){var n=e,r=function(e,r,i,o,a,s,u,l){var c=t.defer(),h=document.createElement("canvas"),p=document.createElement("img");return p.setAttribute("style","visibility:hidden;position:fixed;z-index:-100000"),document.body.appendChild(p),p.onload=function(){var e=p.width,t=p.height;if(p.parentNode.removeChild(p),null==l||!1!==l(e,t))try{if(s){var f=n.ratioToFloat(s);f>e/t?i=(r=e)/f:r=(i=t)*f}r||(r=e),i||(i=t);var d=function(e,t,n,r,i){var o=i?Math.max(n/e,r/t):Math.min(n/e,r/t);return{width:e*o,height:t*o,marginX:e*o-n,marginY:t*o-r}}(e,t,r,i,u);h.width=Math.min(d.width,r),h.height=Math.min(d.height,i),h.getContext("2d").drawImage(p,Math.min(0,-d.marginX/2),Math.min(0,-d.marginY/2),d.width,d.height),c.resolve(h.toDataURL(a||"image/WebP",o||.934))}catch(e){c.reject(e)}else c.reject("resizeIf")},p.onerror=function(){p.parentNode.removeChild(p),c.reject()},p.src=e,c.promise};return n.dataUrltoBlob=function(e,t,n){for(var r=e.split(","),i=r[0].match(/:(.*?);/)[1],o=atob(r[1]),a=o.length,s=new Uint8Array(a);a--;)s[a]=o.charCodeAt(a);var u=new window.Blob([s],{type:i});return u.name=t,u.$ngfOrigSize=n,u},n.isResizeSupported=function(){var e=document.createElement("canvas");return window.atob&&e.getContext&&e.getContext("2d")&&window.Blob},n.isResizeSupported()&&Object.defineProperty(window.Blob.prototype,"name",{get:function(){return this.$ngfName},set:function(e){this.$ngfName=e},configurable:!0}),n.resize=function(e,i){if(0!==e.type.indexOf("image"))return n.emptyPromise(e);var o=t.defer();return n.dataUrl(e,!0).then((function(t){r(t,i.width,i.height,i.quality,i.type||e.type,i.ratio,i.centerCrop,i.resizeIf).then((function(r){if("image/jpeg"===e.type&&!1!==i.restoreExif)try{r=n.restoreExif(t,r)}catch(e){setTimeout((function(){throw e}),1)}try{var a=n.dataUrltoBlob(r,e.name,e.size);o.resolve(a)}catch(e){o.reject(e)}}),(function(t){"resizeIf"===t&&o.resolve(e),o.reject(t)}))}),(function(e){o.reject(e)})),o.promise},n}]),function(){function e(e,n,r,i,o,a,s,u,l,c){function h(){return n.attr("disabled")||v("ngfDropDisabled",e)}function p(t,n,r){if(t){var i;try{i=t&&t.getData&&t.getData("text/html")}catch(e){}g(t.items,t.files,!1!==v("ngfAllowDir",e),v("multiple")||v("ngfMultiple",e)).then((function(e){e.length?f(e,n):d(r,i).then((function(e){f(e,n)}))}))}}function f(t,n){u.updateModel(i,r,e,v("ngfChange")||v("ngfDrop"),t,n)}function d(t,n){if(!u.shouldUpdateOn(t,r,e)||"string"!=typeof n)return u.rejectPromise([]);var i=[];n.replace(/<(img src|img [^>]* src) *=\"([^\"]*)\"/gi,(function(e,t,n){i.push(n)}));var o=[],a=[];if(i.length){angular.forEach(i,(function(e){o.push(u.urlToBlob(e).then((function(e){a.push(e)})))}));var s=c.defer();return c.all(o).then((function(){s.resolve(a)}),(function(e){s.reject(e)})),s.promise}return u.emptyPromise()}function g(t,n,i,o){function a(e,t){var n=c.defer();if(null!=e)if(e.isDirectory){var r=[u.emptyPromise()];if(p){var i={type:"directory"};i.name=i.path=(t||"")+e.name,f.push(i)}var o=e.createReader(),s=[],g=function(){o.readEntries((function(i){try{i.length?(s=s.concat(Array.prototype.slice.call(i||[],0)),g()):(angular.forEach(s.slice(0),(function(n){f.length<=l&&h>=d&&r.push(a(n,(t||"")+e.name+"/"))})),c.all(r).then((function(){n.resolve()}),(function(e){n.reject(e)})))}catch(e){n.reject(e)}}),(function(e){n.reject(e)}))};g()}else e.file((function(e){try{e.path=(t||"")+e.name,p&&(e=u.rename(e,e.path)),f.push(e),d+=e.size,n.resolve()}catch(e){n.reject(e)}}),(function(e){n.reject(e)}));return n.promise}var l=u.getValidationAttr(r,e,"maxFiles");null==l&&(l=Number.MAX_VALUE);var h=u.getValidationAttr(r,e,"maxTotalSize");null==h&&(h=Number.MAX_VALUE);var p=v("ngfIncludeDir",e),f=[],d=0,g=[u.emptyPromise()];if(t&&t.length>0&&"file:"!==s.location.protocol)for(var m=0;m<t.length;m++){if(t[m].webkitGetAsEntry&&t[m].webkitGetAsEntry()&&t[m].webkitGetAsEntry().isDirectory){var y=t[m].webkitGetAsEntry();if(y.isDirectory&&!i)continue;null!=y&&g.push(a(y))}else{var b=t[m].getAsFile();null!=b&&(f.push(b),d+=b.size)}if(f.length>l||d>h||!o&&f.length>0)break}else if(null!=n)for(var $=0;$<n.length;$++){var w=n.item($);if((w.type||w.size>0)&&(f.push(w),d+=w.size),f.length>l||d>h||!o&&f.length>0)break}var x=c.defer();return c.all(g).then((function(){if(o||p||!f.length)x.resolve(f);else{for(var e=0;f[e]&&"directory"===f[e].type;)e++;x.resolve([f[e]])}}),(function(e){x.reject(e)})),x.promise}var m=t(),v=function(e,t,n){return u.attrGetter(e,r,t,n)};if(v("dropAvailable")&&a((function(){e[v("dropAvailable")]?e[v("dropAvailable")].value=m:e[v("dropAvailable")]=m})),m){null==v("ngfSelect")&&u.registerModelChangeValidator(i,r,e);var y,b=null,$=o(v("ngfStopPropagation")),w=1;n[0].addEventListener("dragover",(function(t){if(!h()&&u.shouldUpdateOn("drop",r,e)){if(t.preventDefault(),$(e)&&t.stopPropagation(),navigator.userAgent.indexOf("Chrome")>-1){var i=t.dataTransfer.effectAllowed;t.dataTransfer.dropEffect="move"===i||"linkMove"===i?"move":"copy"}a.cancel(b),y||(y="C",function(e,t,n,r){var i=v("ngfDragOverClass",e,{$event:n}),o="dragover";if(angular.isString(i))o=i;else if(i&&(i.delay&&(w=i.delay),i.accept||i.reject)){var a=n.dataTransfer.items;if(null!=a&&a.length)for(var s=i.pattern||v("ngfPattern",e,{$event:n}),l=a.length;l--;){if(!u.validatePattern(a[l],s)){o=i.reject;break}o=i.accept}else o=i.accept}r(o)}(e,0,t,(function(r){y=r,n.addClass(y),v("ngfDrag",e,{$isDragging:!0,$class:y,$event:t})})))}}),!1),n[0].addEventListener("dragenter",(function(t){!h()&&u.shouldUpdateOn("drop",r,e)&&(t.preventDefault(),$(e)&&t.stopPropagation())}),!1),n[0].addEventListener("dragleave",(function(t){!h()&&u.shouldUpdateOn("drop",r,e)&&(t.preventDefault(),$(e)&&t.stopPropagation(),b=a((function(){y&&n.removeClass(y),y=null,v("ngfDrag",e,{$isDragging:!1,$event:t})}),w||100))}),!1),n[0].addEventListener("drop",(function(t){!h()&&u.shouldUpdateOn("drop",r,e)&&(t.preventDefault(),$(e)&&t.stopPropagation(),y&&n.removeClass(y),y=null,p(t.dataTransfer,t,"dropUrl"))}),!1),n[0].addEventListener("paste",(function(t){navigator.userAgent.toLowerCase().indexOf("firefox")>-1&&v("ngfEnableFirefoxPaste",e)&&t.preventDefault(),!h()&&u.shouldUpdateOn("paste",r,e)&&p(t.clipboardData||t.originalEvent.clipboardData,t,"pasteUrl")}),!1),navigator.userAgent.toLowerCase().indexOf("firefox")>-1&&v("ngfEnableFirefoxPaste",e)&&(n.attr("contenteditable",!0),n.on("keypress",(function(e){e.metaKey||e.ctrlKey||e.preventDefault()})))}else!0===v("ngfHideOnDropNotAvailable",e)&&n.css("display","none")}function t(){var e=document.createElement("div");return"draggable"in e&&"ondrop"in e&&!/Edge\/12./i.test(navigator.userAgent)}r.directive("ngfDrop",["$parse","$timeout","$window","Upload","$http","$q",function(t,n,r,i,o,a){return{restrict:"AEC",require:"?ngModel",link:function(o,s,u,l){e(o,s,u,l,t,n,r,i,0,a)}}}]),r.directive("ngfNoFileDrop",(function(){return function(e,n){t()&&n.css("display","none")}})),r.directive("ngfDropAvailable",["$parse","$timeout","Upload",function(e,n,r){return function(i,o,a){if(t()){var s=e(r.attrGetter("ngfDropAvailable",a));n((function(){s(i),s.assign&&s.assign(i,!0)}))}}}])}(),r.service("UploadExif",["UploadResize","$q",function(e,t){var n=e;return n.isExifSupported=function(){return window.FileReader&&(new FileReader).readAsArrayBuffer&&n.isResizeSupported()},n.readOrientation=function(e){var n=t.defer(),r=new FileReader,i=e.slice?e.slice(0,65536):e;return r.readAsArrayBuffer(i),r.onerror=function(e){return n.reject(e)},r.onload=function(e){var t={orientation:1},r=new DataView(this.result);if(65496!==r.getUint16(0,!1))return n.resolve(t);for(var i=r.byteLength,o=2;i>o;){var a=r.getUint16(o,!1);if(o+=2,65505===a){if(1165519206!==r.getUint32(o+=2,!1))return n.resolve(t);var s=18761===r.getUint16(o+=6,!1);o+=r.getUint32(o+4,s);var u=r.getUint16(o,s);o+=2;for(var l=0;u>l;l++)if(274===r.getUint16(o+12*l,s)){var c=r.getUint16(o+12*l+8,s);return c>=2&&8>=c&&(r.setUint16(o+12*l+8,1,s),t.fixedArrayBuffer=e.target.result),t.orientation=c,n.resolve(t)}}else{if(65280!=(65280&a))break;o+=r.getUint16(o,!1)}}return n.resolve(t)},n.promise},n.applyExifRotation=function(e){if(0!==e.type.indexOf("image/jpeg"))return n.emptyPromise(e);var r=t.defer();return n.readOrientation(e).then((function(t){return t.orientation<2||t.orientation>8?r.resolve(e):void n.dataUrl(e,!0).then((function(i){var o=document.createElement("canvas"),a=document.createElement("img");a.onload=function(){try{o.width=t.orientation>4?a.height:a.width,o.height=t.orientation>4?a.width:a.height;var i=o.getContext("2d");(function(e,t,n,r){switch(t){case 2:return e.transform(-1,0,0,1,n,0);case 3:return e.transform(-1,0,0,-1,n,r);case 4:return e.transform(1,0,0,-1,0,r);case 5:return e.transform(0,1,1,0,0,0);case 6:return e.transform(0,1,-1,0,r,0);case 7:return e.transform(0,-1,-1,0,r,n);case 8:e.transform(0,-1,1,0,0,n)}})(i,t.orientation,a.width,a.height),i.drawImage(a,0,0);var s=o.toDataURL(e.type||"image/WebP",.934);s=n.restoreExif(function(e){for(var t="",n=new Uint8Array(e),r=n.byteLength,i=0;r>i;i++)t+=String.fromCharCode(n[i]);return window.btoa(t)}(t.fixedArrayBuffer),s);var u=n.dataUrltoBlob(s,e.name);r.resolve(u)}catch(e){return r.reject(e)}},a.onerror=function(){r.reject()},a.src=i}),(function(e){r.reject(e)}))}),(function(e){r.reject(e)})),r.promise},n.restoreExif=function(e,t){var n={KEY_STR:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",encode64:function(e){var t,n,r,i,o,a="",s="",u="",l=0;do{r=(t=e[l++])>>2,i=(3&t)<<4|(n=e[l++])>>4,o=(15&n)<<2|(s=e[l++])>>6,u=63&s,isNaN(n)?o=u=64:isNaN(s)&&(u=64),a=a+this.KEY_STR.charAt(r)+this.KEY_STR.charAt(i)+this.KEY_STR.charAt(o)+this.KEY_STR.charAt(u),t=n=s="",r=i=o=u=""}while(l<e.length);return a},restore:function(e,t){e.match("data:image/jpeg;base64,")&&(e=e.replace("data:image/jpeg;base64,",""));var n=this.decode64(e),r=this.slice2Segments(n),i=this.exifManipulation(t,r);return"data:image/jpeg;base64,"+this.encode64(i)},exifManipulation:function(e,t){var n=this.getExifArray(t),r=this.insertExif(e,n);return new Uint8Array(r)},getExifArray:function(e){for(var t,n=0;n<e.length;n++)if(255===(t=e[n])[0]&225===t[1])return t;return[]},insertExif:function(e,t){var n=e.replace("data:image/jpeg;base64,",""),r=this.decode64(n),i=r.indexOf(255,3),o=r.slice(0,i),a=r.slice(i),s=o;return(s=s.concat(t)).concat(a)},slice2Segments:function(e){for(var t=0,n=[];!(255===e[t]&218===e[t+1]);){if(255===e[t]&216===e[t+1])t+=2;else{var r=t+(256*e[t+2]+e[t+3])+2,i=e.slice(t,r);n.push(i),t=r}if(t>e.length)break}return n},decode64:function(e){var t,n,r,i,o="",a="",s=0,u=[];/[^A-Za-z0-9\+\/\=]/g.exec(e)&&console.log("There were invalid base64 characters in the input text.\nValid base64 characters are A-Z, a-z, 0-9, NaNExpect errors in decoding."),e=e.replace(/[^A-Za-z0-9\+\/\=]/g,"");do{t=this.KEY_STR.indexOf(e.charAt(s++))<<2|(r=this.KEY_STR.indexOf(e.charAt(s++)))>>4,n=(15&r)<<4|(i=this.KEY_STR.indexOf(e.charAt(s++)))>>2,o=(3&i)<<6|(a=this.KEY_STR.indexOf(e.charAt(s++))),u.push(t),64!==i&&u.push(n),64!==a&&u.push(o),t=n=o="",r=i=a=""}while(s<e.length);return u}};return n.restore(e,t)},n}])},99:function(e,t){
95
+ /*! 12.2.13 */
96
+ !function(){function e(e,t){window.XMLHttpRequest.prototype[e]=t(window.XMLHttpRequest.prototype[e])}function t(e,t,n){try{Object.defineProperty(e,t,{get:n})}catch(e){}}if(window.FileAPI||(window.FileAPI={}),!window.XMLHttpRequest)throw"AJAX is not supported. XMLHttpRequest is not defined.";if(FileAPI.shouldLoad=!window.FormData||FileAPI.forceLoad,FileAPI.shouldLoad){var n=function(e){if(!e.__listeners){e.upload||(e.upload={}),e.__listeners=[];var t=e.upload.addEventListener;e.upload.addEventListener=function(n,r){e.__listeners[n]=r,t&&t.apply(this,arguments)}}};e("open",(function(e){return function(t,r,i){n(this),this.__url=r;try{e.apply(this,[t,r,i])}catch(n){n.message.indexOf("Access is denied")>-1&&(this.__origError=n,e.apply(this,[t,"_fix_for_ie_crossdomain__",i]))}}})),e("getResponseHeader",(function(e){return function(t){return this.__fileApiXHR&&this.__fileApiXHR.getResponseHeader?this.__fileApiXHR.getResponseHeader(t):null==e?null:e.apply(this,[t])}})),e("getAllResponseHeaders",(function(e){return function(){return this.__fileApiXHR&&this.__fileApiXHR.getAllResponseHeaders?this.__fileApiXHR.getAllResponseHeaders():null==e?null:e.apply(this)}})),e("abort",(function(e){return function(){return this.__fileApiXHR&&this.__fileApiXHR.abort?this.__fileApiXHR.abort():null==e?null:e.apply(this)}})),e("setRequestHeader",(function(e){return function(t,r){if("__setXHR_"===t){n(this);var i=r(this);i instanceof Function&&i(this)}else this.__requestHeaders=this.__requestHeaders||{},this.__requestHeaders[t]=r,e.apply(this,arguments)}})),e("send",(function(e){return function(){var n=this;if(arguments[0]&&arguments[0].__isFileAPIShim){for(var r=arguments[0],i={url:n.__url,jsonp:!1,cache:!0,complete:function(e,r){e&&angular.isString(e)&&-1!==e.indexOf("#2174")&&(e=null),n.__completed=!0,!e&&n.__listeners.load&&n.__listeners.load({type:"load",loaded:n.__loaded,total:n.__total,target:n,lengthComputable:!0}),!e&&n.__listeners.loadend&&n.__listeners.loadend({type:"loadend",loaded:n.__loaded,total:n.__total,target:n,lengthComputable:!0}),"abort"===e&&n.__listeners.abort&&n.__listeners.abort({type:"abort",loaded:n.__loaded,total:n.__total,target:n,lengthComputable:!0}),void 0!==r.status&&t(n,"status",(function(){return 0===r.status&&e&&"abort"!==e?500:r.status})),void 0!==r.statusText&&t(n,"statusText",(function(){return r.statusText})),t(n,"readyState",(function(){return 4})),void 0!==r.response&&t(n,"response",(function(){return r.response}));var i=r.responseText||(e&&0===r.status&&"abort"!==e?e:void 0);t(n,"responseText",(function(){return i})),t(n,"response",(function(){return i})),e&&t(n,"err",(function(){return e})),n.__fileApiXHR=r,n.onreadystatechange&&n.onreadystatechange(),n.onload&&n.onload()},progress:function(e){if(e.target=n,n.__listeners.progress&&n.__listeners.progress(e),n.__total=e.total,n.__loaded=e.loaded,e.total===e.loaded){var t=this;setTimeout((function(){n.__completed||(n.getAllResponseHeaders=function(){},t.complete(null,{status:204,statusText:"No Content"}))}),FileAPI.noContentTimeout||1e4)}},headers:n.__requestHeaders,data:{},files:{}},o=0;o<r.data.length;o++){var a=r.data[o];null!=a.val&&null!=a.val.name&&null!=a.val.size&&null!=a.val.type?i.files[a.key]=a.val:i.data[a.key]=a.val}setTimeout((function(){if(!FileAPI.hasFlash)throw'Adode Flash Player need to be installed. To check ahead use "FileAPI.hasFlash"';n.__fileApiXHR=FileAPI.upload(i)}),1)}else{if(this.__origError)throw this.__origError;e.apply(n,arguments)}}})),window.XMLHttpRequest.__isFileAPIShim=!0,window.FormData=FormData=function(){return{append:function(e,t,n){t.__isFileAPIBlobShim&&(t=t.data[0]),this.data.push({key:e,val:t,name:n})},data:[],__isFileAPIShim:!0}},window.Blob=Blob=function(e){return{data:e,__isFileAPIBlobShim:!0}}}}(),function(){function e(){try{if(new ActiveXObject("ShockwaveFlash.ShockwaveFlash"))return!0}catch(e){if(void 0!==navigator.mimeTypes["application/x-shockwave-flash"])return!0}return!1}function t(e){var t=0,n=0;if(window.jQuery)return jQuery(e).offset();if(e.offsetParent)do{t+=e.offsetLeft-e.scrollLeft,n+=e.offsetTop-e.scrollTop,e=e.offsetParent}while(e);return{left:t,top:n}}if(FileAPI.shouldLoad){if(FileAPI.hasFlash=e(),FileAPI.forceLoad&&(FileAPI.html5=!1),!FileAPI.upload){var n,r,i,o,a,s=document.createElement("script"),u=document.getElementsByTagName("script");if(window.FileAPI.jsUrl)n=window.FileAPI.jsUrl;else if(window.FileAPI.jsPath)r=window.FileAPI.jsPath;else for(i=0;i<u.length;i++)if((o=(a=u[i].src).search(/\/ng\-file\-upload[\-a-zA-z0-9\.]*\.js/))>-1){r=a.substring(0,o+1);break}null==FileAPI.staticPath&&(FileAPI.staticPath=r),s.setAttribute("src",n||r+"FileAPI.min.js"),document.getElementsByTagName("head")[0].appendChild(s)}FileAPI.ngfFixIE=function(n,r,i){if(!e())throw'Adode Flash Player need to be installed. To check ahead use "FileAPI.hasFlash"';n.bind("mouseenter",(function(){var e=r.parent();n.attr("disabled")?e&&e.removeClass("js-fileapi-wrapper"):(r.attr("__ngf_flash_")||(r.unbind("change"),r.unbind("click"),r.bind("change",(function(e){o.apply(this,[e]),i.apply(this,[e])})),r.attr("__ngf_flash_","true")),e.addClass("js-fileapi-wrapper"),function(e){return"input"===e[0].tagName.toLowerCase()&&e.attr("type")&&"file"===e.attr("type").toLowerCase()}(n)||(e.css("position","absolute").css("top",t(n[0]).top+"px").css("left",t(n[0]).left+"px").css("width",n[0].offsetWidth+"px").css("height",n[0].offsetHeight+"px").css("filter","alpha(opacity=0)").css("display",n.css("display")).css("overflow","hidden").css("z-index","900000").css("visibility","visible"),r.css("width",n[0].offsetWidth+"px").css("height",n[0].offsetHeight+"px").css("position","absolute").css("top","0px").css("left","0px")))}));var o=function(e){for(var t=FileAPI.getFiles(e),n=0;n<t.length;n++)void 0===t[n].size&&(t[n].size=0),void 0===t[n].name&&(t[n].name="file"),void 0===t[n].type&&(t[n].type="undefined");e.target||(e.target={}),e.target.files=t,e.target.files!==t&&(e.__files_=t),(e.__files_||e.target.files).item=function(t){return(e.__files_||e.target.files)[t]||null}}},FileAPI.disableFileInput=function(e,t){t?e.removeClass("js-fileapi-wrapper"):e.addClass("js-fileapi-wrapper")}}}(),window.FileReader||(window.FileReader=function(){var e=this,t=!1;this.listeners={},this.addEventListener=function(t,n){e.listeners[t]=e.listeners[t]||[],e.listeners[t].push(n)},this.removeEventListener=function(t,n){e.listeners[t]&&e.listeners[t].splice(e.listeners[t].indexOf(n),1)},this.dispatchEvent=function(t){var n=e.listeners[t.type];if(n)for(var r=0;r<n.length;r++)n[r].call(e,t)},this.onabort=this.onerror=this.onload=this.onloadstart=this.onloadend=this.onprogress=null;var n=function(t,n){var r={type:t,target:e,loaded:n.loaded,total:n.total,error:n.error};return null!=n.result&&(r.target.result=n.result),r},r=function(r){var i;t||(t=!0,e.onloadstart&&e.onloadstart(n("loadstart",r))),"load"===r.type?(e.onloadend&&e.onloadend(n("loadend",r)),i=n("load",r),e.onload&&e.onload(i),e.dispatchEvent(i)):"progress"===r.type?(i=n("progress",r),e.onprogress&&e.onprogress(i),e.dispatchEvent(i)):(i=n("error",r),e.onerror&&e.onerror(i),e.dispatchEvent(i))};this.readAsDataURL=function(e){FileAPI.readAsDataURL(e,r)},this.readAsText=function(e){FileAPI.readAsText(e,r)}})}});