@famibee/skynovel 1.48.13 → 1.63.11

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 (289) hide show
  1. package/README.md +2 -1
  2. package/dist/CallStack.js +25 -0
  3. package/dist/CallStack.js.map +1 -0
  4. package/dist/EventMng.js +1588 -0
  5. package/dist/EventMng.js.map +1 -0
  6. package/dist/LayerMng.js +2924 -0
  7. package/dist/LayerMng.js.map +1 -0
  8. package/dist/PropParser.js +833 -0
  9. package/dist/PropParser.js.map +1 -0
  10. package/dist/Reading.js +784 -0
  11. package/dist/Reading.js.map +1 -0
  12. package/dist/ScriptIterator.js +1125 -0
  13. package/dist/ScriptIterator.js.map +1 -0
  14. package/dist/SndBuf.js +1519 -0
  15. package/dist/SndBuf.js.map +1 -0
  16. package/dist/SoundMng.js +136 -0
  17. package/dist/SoundMng.js.map +1 -0
  18. package/dist/Variable.js +479 -0
  19. package/dist/Variable.js.map +1 -0
  20. package/dist/app.d.ts +5 -1
  21. package/dist/app.d.ts.map +1 -1
  22. package/dist/appMain.d.ts +6 -6
  23. package/dist/appMain.d.ts.map +1 -1
  24. package/dist/appMain_cmn.d.ts +30 -0
  25. package/dist/appMain_cmn.d.ts.map +1 -0
  26. package/dist/build.d.ts +2 -0
  27. package/dist/build.d.ts.map +1 -0
  28. package/dist/gamepad.js +511 -0
  29. package/dist/gamepad.js.map +1 -0
  30. package/dist/index.d.ts +32 -38
  31. package/dist/index.d.ts.map +1 -1
  32. package/dist/preload.d.ts +34 -31
  33. package/dist/preload.d.ts.map +1 -1
  34. package/dist/sn/AnalyzeTagArg.d.ts +10 -6
  35. package/dist/sn/AnalyzeTagArg.d.ts.map +1 -1
  36. package/dist/sn/Areas.d.ts +7 -5
  37. package/dist/sn/Areas.d.ts.map +1 -1
  38. package/dist/sn/Button.d.ts +2 -2
  39. package/dist/sn/Button.d.ts.map +1 -1
  40. package/dist/sn/CallStack.d.ts +12 -5
  41. package/dist/sn/CallStack.d.ts.map +1 -1
  42. package/dist/sn/CmnInterface.d.ts +178 -117
  43. package/dist/sn/CmnInterface.d.ts.map +1 -1
  44. package/dist/sn/CmnLib.d.ts +20 -19
  45. package/dist/sn/CmnLib.d.ts.map +1 -1
  46. package/dist/sn/CmnTween.d.ts +6 -8
  47. package/dist/sn/CmnTween.d.ts.map +1 -1
  48. package/dist/sn/Config.d.ts +6 -4
  49. package/dist/sn/Config.d.ts.map +1 -1
  50. package/dist/sn/ConfigBase.d.ts +39 -24
  51. package/dist/sn/ConfigBase.d.ts.map +1 -1
  52. package/dist/sn/DebugMng.d.ts +3 -2
  53. package/dist/sn/DebugMng.d.ts.map +1 -1
  54. package/dist/sn/DesignCast.d.ts +5 -6
  55. package/dist/sn/DesignCast.d.ts.map +1 -1
  56. package/dist/sn/EventListenerCtn.d.ts +3 -3
  57. package/dist/sn/EventListenerCtn.d.ts.map +1 -1
  58. package/dist/sn/EventMng.d.ts +5 -11
  59. package/dist/sn/EventMng.d.ts.map +1 -1
  60. package/dist/sn/FocusMng.d.ts.map +1 -1
  61. package/dist/sn/FrameMng.d.ts +3 -4
  62. package/dist/sn/FrameMng.d.ts.map +1 -1
  63. package/dist/sn/Grammar.d.ts +133 -16
  64. package/dist/sn/Grammar.d.ts.map +1 -1
  65. package/dist/sn/GrpLayer.d.ts +8 -4
  66. package/dist/sn/GrpLayer.d.ts.map +1 -1
  67. package/dist/sn/Hyphenation.d.ts +42 -0
  68. package/dist/sn/Hyphenation.d.ts.map +1 -0
  69. package/dist/sn/Layer.d.ts +24 -4
  70. package/dist/sn/Layer.d.ts.map +1 -1
  71. package/dist/sn/LayerMng.d.ts +17 -24
  72. package/dist/sn/LayerMng.d.ts.map +1 -1
  73. package/dist/sn/Log.d.ts +18 -0
  74. package/dist/sn/Log.d.ts.map +1 -0
  75. package/dist/sn/Main.d.ts +4 -6
  76. package/dist/sn/Main.d.ts.map +1 -1
  77. package/dist/sn/Pages.d.ts +1 -1
  78. package/dist/sn/Pages.d.ts.map +1 -1
  79. package/dist/sn/PropParser.d.ts +2 -2
  80. package/dist/sn/PropParser.d.ts.map +1 -1
  81. package/dist/sn/Reading.d.ts +86 -0
  82. package/dist/sn/Reading.d.ts.map +1 -0
  83. package/dist/sn/RubySpliter.d.ts +1 -3
  84. package/dist/sn/RubySpliter.d.ts.map +1 -1
  85. package/dist/sn/ScriptIterator.d.ts +20 -10
  86. package/dist/sn/ScriptIterator.d.ts.map +1 -1
  87. package/dist/sn/SndBuf.d.ts +15 -5
  88. package/dist/sn/SndBuf.d.ts.map +1 -1
  89. package/dist/sn/SoundMng.d.ts +3 -2
  90. package/dist/sn/SoundMng.d.ts.map +1 -1
  91. package/dist/sn/SpritesMng.d.ts +4 -4
  92. package/dist/sn/SpritesMng.d.ts.map +1 -1
  93. package/dist/sn/SysApp.d.ts +12 -16
  94. package/dist/sn/SysApp.d.ts.map +1 -1
  95. package/dist/sn/SysBase.d.ts +24 -27
  96. package/dist/sn/SysBase.d.ts.map +1 -1
  97. package/dist/sn/SysNode.d.ts +9 -9
  98. package/dist/sn/SysNode.d.ts.map +1 -1
  99. package/dist/sn/SysWeb.d.ts +10 -14
  100. package/dist/sn/SysWeb.d.ts.map +1 -1
  101. package/dist/sn/TxtLayer.d.ts +79 -7
  102. package/dist/sn/TxtLayer.d.ts.map +1 -1
  103. package/dist/sn/TxtStage.d.ts +45 -30
  104. package/dist/sn/TxtStage.d.ts.map +1 -1
  105. package/dist/sn/Variable.d.ts +33 -13
  106. package/dist/sn/Variable.d.ts.map +1 -1
  107. package/dist/sn/htm2tx.d.ts +3 -0
  108. package/dist/sn/htm2tx.d.ts.map +1 -0
  109. package/dist/test/AnalyzeTagArg.test.d.ts +2 -0
  110. package/dist/test/AnalyzeTagArg.test.d.ts.map +1 -0
  111. package/dist/test/AreasTest.test.d.ts +2 -0
  112. package/dist/test/AreasTest.test.d.ts.map +1 -0
  113. package/dist/test/CmnLib.test.d.ts +2 -0
  114. package/dist/test/CmnLib.test.d.ts.map +1 -0
  115. package/dist/test/Config.test.d.ts +2 -0
  116. package/dist/test/Config.test.d.ts.map +1 -0
  117. package/dist/test/Grammar.test.d.ts +2 -0
  118. package/dist/test/Grammar.test.d.ts.map +1 -0
  119. package/dist/test/HyphTest.test.d.ts +2 -0
  120. package/dist/test/HyphTest.test.d.ts.map +1 -0
  121. package/dist/test/Log.test.d.ts +2 -0
  122. package/dist/test/Log.test.d.ts.map +1 -0
  123. package/dist/test/PropParser.test.d.ts +2 -0
  124. package/dist/test/PropParser.test.d.ts.map +1 -0
  125. package/dist/test/RubySpliter.test.d.ts +2 -0
  126. package/dist/test/RubySpliter.test.d.ts.map +1 -0
  127. package/dist/test/SysTest.d.ts +5 -0
  128. package/dist/test/SysTest.d.ts.map +1 -0
  129. package/dist/test/ValTest.d.ts +31 -0
  130. package/dist/test/ValTest.d.ts.map +1 -0
  131. package/dist/test/Variable.test.d.ts +2 -0
  132. package/dist/test/Variable.test.d.ts.map +1 -0
  133. package/dist/web.d.ts +5 -1
  134. package/dist/web.d.ts.map +1 -1
  135. package/dist/web.js +6 -30102
  136. package/dist/web.js.map +1 -1
  137. package/dist/web2.js +23020 -0
  138. package/dist/web2.js.map +1 -0
  139. package/dist_app/CallStack.js +25 -0
  140. package/dist_app/CallStack.js.map +1 -0
  141. package/dist_app/EventMng.js +1588 -0
  142. package/dist_app/EventMng.js.map +1 -0
  143. package/dist_app/LayerMng.js +2924 -0
  144. package/dist_app/LayerMng.js.map +1 -0
  145. package/dist_app/PropParser.js +833 -0
  146. package/dist_app/PropParser.js.map +1 -0
  147. package/dist_app/Reading.js +784 -0
  148. package/dist_app/Reading.js.map +1 -0
  149. package/dist_app/ScriptIterator.js +1125 -0
  150. package/dist_app/ScriptIterator.js.map +1 -0
  151. package/dist_app/SndBuf.js +1519 -0
  152. package/dist_app/SndBuf.js.map +1 -0
  153. package/dist_app/SoundMng.js +136 -0
  154. package/dist_app/SoundMng.js.map +1 -0
  155. package/dist_app/Variable.js +479 -0
  156. package/dist_app/Variable.js.map +1 -0
  157. package/dist_app/app.d.ts +9 -0
  158. package/dist_app/app.d.ts.map +1 -0
  159. package/dist_app/app.js +9 -0
  160. package/dist_app/app.js.map +1 -0
  161. package/dist_app/app2.js +19819 -0
  162. package/dist_app/app2.js.map +1 -0
  163. package/dist_app/appMain.d.ts +9 -0
  164. package/dist_app/appMain.d.ts.map +1 -0
  165. package/dist_app/appMain.js +23 -0
  166. package/dist_app/appMain.js.map +1 -0
  167. package/dist_app/appMain_cmn.d.ts +30 -0
  168. package/dist_app/appMain_cmn.d.ts.map +1 -0
  169. package/dist_app/build.d.ts +2 -0
  170. package/dist_app/build.d.ts.map +1 -0
  171. package/dist_app/gamepad.js +511 -0
  172. package/dist_app/gamepad.js.map +1 -0
  173. package/dist_app/index.d.ts +33 -0
  174. package/dist_app/index.d.ts.map +1 -0
  175. package/dist_app/preload.d.ts +47 -0
  176. package/dist_app/preload.d.ts.map +1 -0
  177. package/dist_app/preload.js +2 -0
  178. package/dist_app/preload.js.map +1 -0
  179. package/dist_app/sn/AnalyzeTagArg.d.ts +28 -0
  180. package/dist_app/sn/AnalyzeTagArg.d.ts.map +1 -0
  181. package/dist_app/sn/Areas.d.ts +15 -0
  182. package/dist_app/sn/Areas.d.ts.map +1 -0
  183. package/dist_app/sn/Button.d.ts +23 -0
  184. package/dist_app/sn/Button.d.ts.map +1 -0
  185. package/dist_app/sn/CallStack.d.ts +23 -0
  186. package/dist_app/sn/CallStack.d.ts.map +1 -0
  187. package/dist_app/sn/CmnInterface.d.ts +227 -0
  188. package/dist_app/sn/CmnInterface.d.ts.map +1 -0
  189. package/dist_app/sn/CmnLib.d.ts +46 -0
  190. package/dist_app/sn/CmnLib.d.ts.map +1 -0
  191. package/dist_app/sn/CmnTween.d.ts +35 -0
  192. package/dist_app/sn/CmnTween.d.ts.map +1 -0
  193. package/dist_app/sn/Config.d.ts +12 -0
  194. package/dist_app/sn/Config.d.ts.map +1 -0
  195. package/dist_app/sn/ConfigBase.d.ts +111 -0
  196. package/dist_app/sn/ConfigBase.d.ts.map +1 -0
  197. package/dist_app/sn/DebugMng.d.ts +14 -0
  198. package/dist_app/sn/DebugMng.d.ts.map +1 -0
  199. package/dist_app/sn/DesignCast.d.ts +53 -0
  200. package/dist_app/sn/DesignCast.d.ts.map +1 -0
  201. package/dist_app/sn/EventListenerCtn.d.ts +13 -0
  202. package/dist_app/sn/EventListenerCtn.d.ts.map +1 -0
  203. package/dist_app/sn/EventMng.d.ts +29 -0
  204. package/dist_app/sn/EventMng.d.ts.map +1 -0
  205. package/dist_app/sn/FocusMng.d.ts +13 -0
  206. package/dist_app/sn/FocusMng.d.ts.map +1 -0
  207. package/dist_app/sn/FrameMng.d.ts +20 -0
  208. package/dist_app/sn/FrameMng.d.ts.map +1 -0
  209. package/dist_app/sn/Grammar.d.ts +291 -0
  210. package/dist_app/sn/Grammar.d.ts.map +1 -0
  211. package/dist_app/sn/GrpLayer.d.ts +49 -0
  212. package/dist_app/sn/GrpLayer.d.ts.map +1 -0
  213. package/dist_app/sn/Hyphenation.d.ts +42 -0
  214. package/dist_app/sn/Hyphenation.d.ts.map +1 -0
  215. package/dist_app/sn/Layer.d.ts +86 -0
  216. package/dist_app/sn/Layer.d.ts.map +1 -0
  217. package/dist_app/sn/LayerMng.d.ts +46 -0
  218. package/dist_app/sn/LayerMng.d.ts.map +1 -0
  219. package/dist_app/sn/Log.d.ts +18 -0
  220. package/dist_app/sn/Log.d.ts.map +1 -0
  221. package/dist_app/sn/Main.d.ts +16 -0
  222. package/dist_app/sn/Main.d.ts.map +1 -0
  223. package/dist_app/sn/Pages.d.ts +26 -0
  224. package/dist_app/sn/Pages.d.ts.map +1 -0
  225. package/dist_app/sn/PropParser.d.ts +12 -0
  226. package/dist_app/sn/PropParser.d.ts.map +1 -0
  227. package/dist_app/sn/Reading.d.ts +86 -0
  228. package/dist_app/sn/Reading.d.ts.map +1 -0
  229. package/dist_app/sn/RubySpliter.d.ts +14 -0
  230. package/dist_app/sn/RubySpliter.d.ts.map +1 -0
  231. package/dist_app/sn/ScriptIterator.d.ts +58 -0
  232. package/dist_app/sn/ScriptIterator.d.ts.map +1 -0
  233. package/dist_app/sn/SndBuf.d.ts +30 -0
  234. package/dist_app/sn/SndBuf.d.ts.map +1 -0
  235. package/dist_app/sn/SoundMng.d.ts +16 -0
  236. package/dist_app/sn/SoundMng.d.ts.map +1 -0
  237. package/dist_app/sn/SpritesMng.d.ts +27 -0
  238. package/dist_app/sn/SpritesMng.d.ts.map +1 -0
  239. package/dist_app/sn/SysApp.d.ts +32 -0
  240. package/dist_app/sn/SysApp.d.ts.map +1 -0
  241. package/dist_app/sn/SysBase.d.ts +79 -0
  242. package/dist_app/sn/SysBase.d.ts.map +1 -0
  243. package/dist_app/sn/SysNode.d.ts +15 -0
  244. package/dist_app/sn/SysNode.d.ts.map +1 -0
  245. package/dist_app/sn/SysWeb.d.ts +26 -0
  246. package/dist_app/sn/SysWeb.d.ts.map +1 -0
  247. package/dist_app/sn/TxtLayer.d.ts +121 -0
  248. package/dist_app/sn/TxtLayer.d.ts.map +1 -0
  249. package/dist_app/sn/TxtStage.d.ts +90 -0
  250. package/dist_app/sn/TxtStage.d.ts.map +1 -0
  251. package/dist_app/sn/Variable.d.ts +48 -0
  252. package/dist_app/sn/Variable.d.ts.map +1 -0
  253. package/dist_app/sn/htm2tx.d.ts +3 -0
  254. package/dist_app/sn/htm2tx.d.ts.map +1 -0
  255. package/dist_app/test/AnalyzeTagArg.test.d.ts +2 -0
  256. package/dist_app/test/AnalyzeTagArg.test.d.ts.map +1 -0
  257. package/dist_app/test/AreasTest.test.d.ts +2 -0
  258. package/dist_app/test/AreasTest.test.d.ts.map +1 -0
  259. package/dist_app/test/CmnLib.test.d.ts +2 -0
  260. package/dist_app/test/CmnLib.test.d.ts.map +1 -0
  261. package/dist_app/test/Config.test.d.ts +2 -0
  262. package/dist_app/test/Config.test.d.ts.map +1 -0
  263. package/dist_app/test/Grammar.test.d.ts +2 -0
  264. package/dist_app/test/Grammar.test.d.ts.map +1 -0
  265. package/dist_app/test/HyphTest.test.d.ts +2 -0
  266. package/dist_app/test/HyphTest.test.d.ts.map +1 -0
  267. package/dist_app/test/Log.test.d.ts +2 -0
  268. package/dist_app/test/Log.test.d.ts.map +1 -0
  269. package/dist_app/test/PropParser.test.d.ts +2 -0
  270. package/dist_app/test/PropParser.test.d.ts.map +1 -0
  271. package/dist_app/test/RubySpliter.test.d.ts +2 -0
  272. package/dist_app/test/RubySpliter.test.d.ts.map +1 -0
  273. package/dist_app/test/SysTest.d.ts +5 -0
  274. package/dist_app/test/SysTest.d.ts.map +1 -0
  275. package/dist_app/test/ValTest.d.ts +31 -0
  276. package/dist_app/test/ValTest.d.ts.map +1 -0
  277. package/dist_app/test/Variable.test.d.ts +2 -0
  278. package/dist_app/test/Variable.test.d.ts.map +1 -0
  279. package/dist_app/web.d.ts +9 -0
  280. package/dist_app/web.d.ts.map +1 -0
  281. package/package.json +57 -51
  282. package/dist/app.js +0 -28154
  283. package/dist/app.js.map +0 -1
  284. package/dist/appMain.js +0 -16
  285. package/dist/appMain.js.map +0 -1
  286. package/dist/preload.js +0 -2
  287. package/dist/preload.js.map +0 -1
  288. package/dist/sn/ReadState.d.ts +0 -79
  289. package/dist/sn/ReadState.d.ts.map +0 -1
package/dist/appMain.js DELETED
@@ -1,16 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const ae=require("electron"),Mr=require("fs"),gf=require("constants"),$f=require("stream"),ai=require("util"),rc=require("assert"),Ne=require("path"),nc=require("crypto"),_f=require("events"),Sf=require("os"),ic=require("zlib");var zt=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function sc(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var lr={},Ke={};Ke.fromCallback=function(e){return Object.defineProperty(function(...t){if(typeof t[t.length-1]=="function")e.apply(this,t);else return new Promise((r,n)=>{e.call(this,...t,(i,s)=>i!=null?n(i):r(s))})},"name",{value:e.name})};Ke.fromPromise=function(e){return Object.defineProperty(function(...t){const r=t[t.length-1];if(typeof r!="function")return e.apply(this,t);e.apply(this,t.slice(0,-1)).then(n=>r(null,n),r)},"name",{value:e.name})};var Mt=gf,wf=process.cwd,qn=null,Nf=process.env.GRACEFUL_FS_PLATFORM||process.platform;process.cwd=function(){return qn||(qn=wf.call(process)),qn};try{process.cwd()}catch{}if(typeof process.chdir=="function"){var Mo=process.chdir;process.chdir=function(e){qn=null,Mo.call(process,e)},Object.setPrototypeOf&&Object.setPrototypeOf(process.chdir,Mo)}var If=Of;function Of(e){Mt.hasOwnProperty("O_SYMLINK")&&process.version.match(/^v0\.6\.[0-2]|^v0\.5\./)&&t(e),e.lutimes||r(e),e.chown=s(e.chown),e.fchown=s(e.fchown),e.lchown=s(e.lchown),e.chmod=n(e.chmod),e.fchmod=n(e.fchmod),e.lchmod=n(e.lchmod),e.chownSync=o(e.chownSync),e.fchownSync=o(e.fchownSync),e.lchownSync=o(e.lchownSync),e.chmodSync=i(e.chmodSync),e.fchmodSync=i(e.fchmodSync),e.lchmodSync=i(e.lchmodSync),e.stat=a(e.stat),e.fstat=a(e.fstat),e.lstat=a(e.lstat),e.statSync=u(e.statSync),e.fstatSync=u(e.fstatSync),e.lstatSync=u(e.lstatSync),e.chmod&&!e.lchmod&&(e.lchmod=function(c,d,E){E&&process.nextTick(E)},e.lchmodSync=function(){}),e.chown&&!e.lchown&&(e.lchown=function(c,d,E,f){f&&process.nextTick(f)},e.lchownSync=function(){}),Nf==="win32"&&(e.rename=typeof e.rename!="function"?e.rename:function(c){function d(E,f,h){var y=Date.now(),v=0;c(E,f,function l($){if($&&($.code==="EACCES"||$.code==="EPERM"||$.code==="EBUSY")&&Date.now()-y<6e4){setTimeout(function(){e.stat(f,function(S,D){S&&S.code==="ENOENT"?c(E,f,l):h($)})},v),v<100&&(v+=10);return}h&&h($)})}return Object.setPrototypeOf&&Object.setPrototypeOf(d,c),d}(e.rename)),e.read=typeof e.read!="function"?e.read:function(c){function d(E,f,h,y,v,l){var $;if(l&&typeof l=="function"){var S=0;$=function(D,V,T){if(D&&D.code==="EAGAIN"&&S<10)return S++,c.call(e,E,f,h,y,v,$);l.apply(this,arguments)}}return c.call(e,E,f,h,y,v,$)}return Object.setPrototypeOf&&Object.setPrototypeOf(d,c),d}(e.read),e.readSync=typeof e.readSync!="function"?e.readSync:function(c){return function(d,E,f,h,y){for(var v=0;;)try{return c.call(e,d,E,f,h,y)}catch(l){if(l.code==="EAGAIN"&&v<10){v++;continue}throw l}}}(e.readSync);function t(c){c.lchmod=function(d,E,f){c.open(d,Mt.O_WRONLY|Mt.O_SYMLINK,E,function(h,y){if(h){f&&f(h);return}c.fchmod(y,E,function(v){c.close(y,function(l){f&&f(v||l)})})})},c.lchmodSync=function(d,E){var f=c.openSync(d,Mt.O_WRONLY|Mt.O_SYMLINK,E),h=!0,y;try{y=c.fchmodSync(f,E),h=!1}finally{if(h)try{c.closeSync(f)}catch{}else c.closeSync(f)}return y}}function r(c){Mt.hasOwnProperty("O_SYMLINK")&&c.futimes?(c.lutimes=function(d,E,f,h){c.open(d,Mt.O_SYMLINK,function(y,v){if(y){h&&h(y);return}c.futimes(v,E,f,function(l){c.close(v,function($){h&&h(l||$)})})})},c.lutimesSync=function(d,E,f){var h=c.openSync(d,Mt.O_SYMLINK),y,v=!0;try{y=c.futimesSync(h,E,f),v=!1}finally{if(v)try{c.closeSync(h)}catch{}else c.closeSync(h)}return y}):c.futimes&&(c.lutimes=function(d,E,f,h){h&&process.nextTick(h)},c.lutimesSync=function(){})}function n(c){return c&&function(d,E,f){return c.call(e,d,E,function(h){p(h)&&(h=null),f&&f.apply(this,arguments)})}}function i(c){return c&&function(d,E){try{return c.call(e,d,E)}catch(f){if(!p(f))throw f}}}function s(c){return c&&function(d,E,f,h){return c.call(e,d,E,f,function(y){p(y)&&(y=null),h&&h.apply(this,arguments)})}}function o(c){return c&&function(d,E,f){try{return c.call(e,d,E,f)}catch(h){if(!p(h))throw h}}}function a(c){return c&&function(d,E,f){typeof E=="function"&&(f=E,E=null);function h(y,v){v&&(v.uid<0&&(v.uid+=4294967296),v.gid<0&&(v.gid+=4294967296)),f&&f.apply(this,arguments)}return E?c.call(e,d,E,h):c.call(e,d,h)}}function u(c){return c&&function(d,E){var f=E?c.call(e,d,E):c.call(e,d);return f&&(f.uid<0&&(f.uid+=4294967296),f.gid<0&&(f.gid+=4294967296)),f}}function p(c){if(!c||c.code==="ENOSYS")return!0;var d=!process.getuid||process.getuid()!==0;return!!(d&&(c.code==="EINVAL"||c.code==="EPERM"))}}var ko=$f.Stream,Tf=Df;function Df(e){return{ReadStream:t,WriteStream:r};function t(n,i){if(!(this instanceof t))return new t(n,i);ko.call(this);var s=this;this.path=n,this.fd=null,this.readable=!0,this.paused=!1,this.flags="r",this.mode=438,this.bufferSize=64*1024,i=i||{};for(var o=Object.keys(i),a=0,u=o.length;a<u;a++){var p=o[a];this[p]=i[p]}if(this.encoding&&this.setEncoding(this.encoding),this.start!==void 0){if(typeof this.start!="number")throw TypeError("start must be a Number");if(this.end===void 0)this.end=1/0;else if(typeof this.end!="number")throw TypeError("end must be a Number");if(this.start>this.end)throw new Error("start must be <= end");this.pos=this.start}if(this.fd!==null){process.nextTick(function(){s._read()});return}e.open(this.path,this.flags,this.mode,function(c,d){if(c){s.emit("error",c),s.readable=!1;return}s.fd=d,s.emit("open",d),s._read()})}function r(n,i){if(!(this instanceof r))return new r(n,i);ko.call(this),this.path=n,this.fd=null,this.writable=!0,this.flags="w",this.encoding="binary",this.mode=438,this.bytesWritten=0,i=i||{};for(var s=Object.keys(i),o=0,a=s.length;o<a;o++){var u=s[o];this[u]=i[u]}if(this.start!==void 0){if(typeof this.start!="number")throw TypeError("start must be a Number");if(this.start<0)throw new Error("start must be >= zero");this.pos=this.start}this.busy=!1,this._queue=[],this.fd===null&&(this._open=e.open,this._queue.push([this._open,this.path,this.flags,this.mode,void 0]),this.flush())}}var Rf=Pf,Cf=Object.getPrototypeOf||function(e){return e.__proto__};function Pf(e){if(e===null||typeof e!="object")return e;if(e instanceof Object)var t={__proto__:Cf(e)};else var t=Object.create(null);return Object.getOwnPropertyNames(e).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r))}),t}var _e=Mr,Af=If,bf=Tf,Lf=Rf,Pn=ai,Me,Yn;typeof Symbol=="function"&&typeof Symbol.for=="function"?(Me=Symbol.for("graceful-fs.queue"),Yn=Symbol.for("graceful-fs.previous")):(Me="___graceful-fs.queue",Yn="___graceful-fs.previous");function Ff(){}function oc(e,t){Object.defineProperty(e,Me,{get:function(){return t}})}var ar=Ff;Pn.debuglog?ar=Pn.debuglog("gfs4"):/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&(ar=function(){var e=Pn.format.apply(Pn,arguments);e="GFS4: "+e.split(/\n/).join(`
2
- GFS4: `),console.error(e)});if(!_e[Me]){var jf=zt[Me]||[];oc(_e,jf),_e.close=function(e){function t(r,n){return e.call(_e,r,function(i){i||Uo(),typeof n=="function"&&n.apply(this,arguments)})}return Object.defineProperty(t,Yn,{value:e}),t}(_e.close),_e.closeSync=function(e){function t(r){e.apply(_e,arguments),Uo()}return Object.defineProperty(t,Yn,{value:e}),t}(_e.closeSync),/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&process.on("exit",function(){ar(_e[Me]),rc.equal(_e[Me].length,0)})}zt[Me]||oc(zt,_e[Me]);var et=cs(Lf(_e));process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH&&!_e.__patched&&(et=cs(_e),_e.__patched=!0);function cs(e){Af(e),e.gracefulify=cs,e.createReadStream=V,e.createWriteStream=T;var t=e.readFile;e.readFile=r;function r(A,x,B){return typeof x=="function"&&(B=x,x=null),K(A,x,B);function K(z,k,H,q){return t(z,k,function(G){G&&(G.code==="EMFILE"||G.code==="ENFILE")?$r([K,[z,k,H],G,q||Date.now(),Date.now()]):typeof H=="function"&&H.apply(this,arguments)})}}var n=e.writeFile;e.writeFile=i;function i(A,x,B,K){return typeof B=="function"&&(K=B,B=null),z(A,x,B,K);function z(k,H,q,G,C){return n(k,H,q,function(F){F&&(F.code==="EMFILE"||F.code==="ENFILE")?$r([z,[k,H,q,G],F,C||Date.now(),Date.now()]):typeof G=="function"&&G.apply(this,arguments)})}}var s=e.appendFile;s&&(e.appendFile=o);function o(A,x,B,K){return typeof B=="function"&&(K=B,B=null),z(A,x,B,K);function z(k,H,q,G,C){return s(k,H,q,function(F){F&&(F.code==="EMFILE"||F.code==="ENFILE")?$r([z,[k,H,q,G],F,C||Date.now(),Date.now()]):typeof G=="function"&&G.apply(this,arguments)})}}var a=e.copyFile;a&&(e.copyFile=u);function u(A,x,B,K){return typeof B=="function"&&(K=B,B=0),z(A,x,B,K);function z(k,H,q,G,C){return a(k,H,q,function(F){F&&(F.code==="EMFILE"||F.code==="ENFILE")?$r([z,[k,H,q,G],F,C||Date.now(),Date.now()]):typeof G=="function"&&G.apply(this,arguments)})}}var p=e.readdir;e.readdir=d;var c=/^v[0-5]\./;function d(A,x,B){typeof x=="function"&&(B=x,x=null);var K=c.test(process.version)?function(H,q,G,C){return p(H,z(H,q,G,C))}:function(H,q,G,C){return p(H,q,z(H,q,G,C))};return K(A,x,B);function z(k,H,q,G){return function(C,F){C&&(C.code==="EMFILE"||C.code==="ENFILE")?$r([K,[k,H,q],C,G||Date.now(),Date.now()]):(F&&F.sort&&F.sort(),typeof q=="function"&&q.call(this,C,F))}}}if(process.version.substr(0,4)==="v0.8"){var E=bf(e);l=E.ReadStream,S=E.WriteStream}var f=e.ReadStream;f&&(l.prototype=Object.create(f.prototype),l.prototype.open=$);var h=e.WriteStream;h&&(S.prototype=Object.create(h.prototype),S.prototype.open=D),Object.defineProperty(e,"ReadStream",{get:function(){return l},set:function(A){l=A},enumerable:!0,configurable:!0}),Object.defineProperty(e,"WriteStream",{get:function(){return S},set:function(A){S=A},enumerable:!0,configurable:!0});var y=l;Object.defineProperty(e,"FileReadStream",{get:function(){return y},set:function(A){y=A},enumerable:!0,configurable:!0});var v=S;Object.defineProperty(e,"FileWriteStream",{get:function(){return v},set:function(A){v=A},enumerable:!0,configurable:!0});function l(A,x){return this instanceof l?(f.apply(this,arguments),this):l.apply(Object.create(l.prototype),arguments)}function $(){var A=this;U(A.path,A.flags,A.mode,function(x,B){x?(A.autoClose&&A.destroy(),A.emit("error",x)):(A.fd=B,A.emit("open",B),A.read())})}function S(A,x){return this instanceof S?(h.apply(this,arguments),this):S.apply(Object.create(S.prototype),arguments)}function D(){var A=this;U(A.path,A.flags,A.mode,function(x,B){x?(A.destroy(),A.emit("error",x)):(A.fd=B,A.emit("open",B))})}function V(A,x){return new e.ReadStream(A,x)}function T(A,x){return new e.WriteStream(A,x)}var P=e.open;e.open=U;function U(A,x,B,K){return typeof B=="function"&&(K=B,B=null),z(A,x,B,K);function z(k,H,q,G,C){return P(k,H,q,function(F,O){F&&(F.code==="EMFILE"||F.code==="ENFILE")?$r([z,[k,H,q,G],F,C||Date.now(),Date.now()]):typeof G=="function"&&G.apply(this,arguments)})}}return e}function $r(e){ar("ENQUEUE",e[0].name,e[1]),_e[Me].push(e),us()}var An;function Uo(){for(var e=Date.now(),t=0;t<_e[Me].length;++t)_e[Me][t].length>2&&(_e[Me][t][3]=e,_e[Me][t][4]=e);us()}function us(){if(clearTimeout(An),An=void 0,_e[Me].length!==0){var e=_e[Me].shift(),t=e[0],r=e[1],n=e[2],i=e[3],s=e[4];if(i===void 0)ar("RETRY",t.name,r),t.apply(null,r);else if(Date.now()-i>=6e4){ar("TIMEOUT",t.name,r);var o=r.pop();typeof o=="function"&&o.call(null,n)}else{var a=Date.now()-s,u=Math.max(s-i,1),p=Math.min(u*1.2,100);a>=p?(ar("RETRY",t.name,r),t.apply(null,r.concat([i]))):_e[Me].push(e)}An===void 0&&(An=setTimeout(us,0))}}(function(e){const t=Ke.fromCallback,r=et,n=["access","appendFile","chmod","chown","close","copyFile","fchmod","fchown","fdatasync","fstat","fsync","ftruncate","futimes","lchmod","lchown","link","lstat","mkdir","mkdtemp","open","opendir","readdir","readFile","readlink","realpath","rename","rm","rmdir","stat","symlink","truncate","unlink","utimes","writeFile"].filter(i=>typeof r[i]=="function");Object.assign(e,r),n.forEach(i=>{e[i]=t(r[i])}),e.exists=function(i,s){return typeof s=="function"?r.exists(i,s):new Promise(o=>r.exists(i,o))},e.read=function(i,s,o,a,u,p){return typeof p=="function"?r.read(i,s,o,a,u,p):new Promise((c,d)=>{r.read(i,s,o,a,u,(E,f,h)=>{if(E)return d(E);c({bytesRead:f,buffer:h})})})},e.write=function(i,s,...o){return typeof o[o.length-1]=="function"?r.write(i,s,...o):new Promise((a,u)=>{r.write(i,s,...o,(p,c,d)=>{if(p)return u(p);a({bytesWritten:c,buffer:d})})})},e.readv=function(i,s,...o){return typeof o[o.length-1]=="function"?r.readv(i,s,...o):new Promise((a,u)=>{r.readv(i,s,...o,(p,c,d)=>{if(p)return u(p);a({bytesRead:c,buffers:d})})})},e.writev=function(i,s,...o){return typeof o[o.length-1]=="function"?r.writev(i,s,...o):new Promise((a,u)=>{r.writev(i,s,...o,(p,c,d)=>{if(p)return u(p);a({bytesWritten:c,buffers:d})})})},typeof r.realpath.native=="function"?e.realpath.native=t(r.realpath.native):process.emitWarning("fs.realpath.native is not a function. Is fs being monkey-patched?","Warning","fs-extra-WARN0003")})(lr);var fs={},ac={};const Mf=Ne;ac.checkPath=function(t){if(process.platform==="win32"&&/[<>:"|?*]/.test(t.replace(Mf.parse(t).root,""))){const n=new Error(`Path contains invalid characters: ${t}`);throw n.code="EINVAL",n}};const cc=lr,{checkPath:uc}=ac,fc=e=>{const t={mode:511};return typeof e=="number"?e:{...t,...e}.mode};fs.makeDir=async(e,t)=>(uc(e),cc.mkdir(e,{mode:fc(t),recursive:!0}));fs.makeDirSync=(e,t)=>(uc(e),cc.mkdirSync(e,{mode:fc(t),recursive:!0}));const kf=Ke.fromPromise,{makeDir:Uf,makeDirSync:Ti}=fs,Di=kf(Uf);var Rt={mkdirs:Di,mkdirsSync:Ti,mkdirp:Di,mkdirpSync:Ti,ensureDir:Di,ensureDirSync:Ti};const Vf=Ke.fromPromise,lc=lr;function xf(e){return lc.access(e).then(()=>!0).catch(()=>!1)}var dr={pathExists:Vf(xf),pathExistsSync:lc.existsSync};const Dr=et;function zf(e,t,r,n){Dr.open(e,"r+",(i,s)=>{if(i)return n(i);Dr.futimes(s,t,r,o=>{Dr.close(s,a=>{n&&n(o||a)})})})}function Gf(e,t,r){const n=Dr.openSync(e,"r+");return Dr.futimesSync(n,t,r),Dr.closeSync(n)}var dc={utimesMillis:zf,utimesMillisSync:Gf};const Pr=lr,be=Ne,Hf=ai;function qf(e,t,r){const n=r.dereference?i=>Pr.stat(i,{bigint:!0}):i=>Pr.lstat(i,{bigint:!0});return Promise.all([n(e),n(t).catch(i=>{if(i.code==="ENOENT")return null;throw i})]).then(([i,s])=>({srcStat:i,destStat:s}))}function Bf(e,t,r){let n;const i=r.dereference?o=>Pr.statSync(o,{bigint:!0}):o=>Pr.lstatSync(o,{bigint:!0}),s=i(e);try{n=i(t)}catch(o){if(o.code==="ENOENT")return{srcStat:s,destStat:null};throw o}return{srcStat:s,destStat:n}}function Kf(e,t,r,n,i){Hf.callbackify(qf)(e,t,n,(s,o)=>{if(s)return i(s);const{srcStat:a,destStat:u}=o;if(u){if(En(a,u)){const p=be.basename(e),c=be.basename(t);return r==="move"&&p!==c&&p.toLowerCase()===c.toLowerCase()?i(null,{srcStat:a,destStat:u,isChangingCase:!0}):i(new Error("Source and destination must not be the same."))}if(a.isDirectory()&&!u.isDirectory())return i(new Error(`Cannot overwrite non-directory '${t}' with directory '${e}'.`));if(!a.isDirectory()&&u.isDirectory())return i(new Error(`Cannot overwrite directory '${t}' with non-directory '${e}'.`))}return a.isDirectory()&&ls(e,t)?i(new Error(ci(e,t,r))):i(null,{srcStat:a,destStat:u})})}function Wf(e,t,r,n){const{srcStat:i,destStat:s}=Bf(e,t,n);if(s){if(En(i,s)){const o=be.basename(e),a=be.basename(t);if(r==="move"&&o!==a&&o.toLowerCase()===a.toLowerCase())return{srcStat:i,destStat:s,isChangingCase:!0};throw new Error("Source and destination must not be the same.")}if(i.isDirectory()&&!s.isDirectory())throw new Error(`Cannot overwrite non-directory '${t}' with directory '${e}'.`);if(!i.isDirectory()&&s.isDirectory())throw new Error(`Cannot overwrite directory '${t}' with non-directory '${e}'.`)}if(i.isDirectory()&&ls(e,t))throw new Error(ci(e,t,r));return{srcStat:i,destStat:s}}function hc(e,t,r,n,i){const s=be.resolve(be.dirname(e)),o=be.resolve(be.dirname(r));if(o===s||o===be.parse(o).root)return i();Pr.stat(o,{bigint:!0},(a,u)=>a?a.code==="ENOENT"?i():i(a):En(t,u)?i(new Error(ci(e,r,n))):hc(e,t,o,n,i))}function mc(e,t,r,n){const i=be.resolve(be.dirname(e)),s=be.resolve(be.dirname(r));if(s===i||s===be.parse(s).root)return;let o;try{o=Pr.statSync(s,{bigint:!0})}catch(a){if(a.code==="ENOENT")return;throw a}if(En(t,o))throw new Error(ci(e,r,n));return mc(e,t,s,n)}function En(e,t){return t.ino&&t.dev&&t.ino===e.ino&&t.dev===e.dev}function ls(e,t){const r=be.resolve(e).split(be.sep).filter(i=>i),n=be.resolve(t).split(be.sep).filter(i=>i);return r.reduce((i,s,o)=>i&&n[o]===s,!0)}function ci(e,t,r){return`Cannot ${r} '${e}' to a subdirectory of itself, '${t}'.`}var kr={checkPaths:Kf,checkPathsSync:Wf,checkParentPaths:hc,checkParentPathsSync:mc,isSrcSubdir:ls,areIdentical:En};const Qe=et,dn=Ne,Zf=Rt.mkdirs,Xf=dr.pathExists,Jf=dc.utimesMillis,hn=kr;function Yf(e,t,r,n){typeof r=="function"&&!n?(n=r,r={}):typeof r=="function"&&(r={filter:r}),n=n||function(){},r=r||{},r.clobber="clobber"in r?!!r.clobber:!0,r.overwrite="overwrite"in r?!!r.overwrite:r.clobber,r.preserveTimestamps&&process.arch==="ia32"&&process.emitWarning(`Using the preserveTimestamps option in 32-bit node is not recommended;
3
-
4
- see https://github.com/jprichardson/node-fs-extra/issues/269`,"Warning","fs-extra-WARN0001"),hn.checkPaths(e,t,"copy",r,(i,s)=>{if(i)return n(i);const{srcStat:o,destStat:a}=s;hn.checkParentPaths(e,o,t,"copy",u=>{if(u)return n(u);pc(e,t,r,(p,c)=>{if(p)return n(p);if(!c)return n();Qf(a,e,t,r,n)})})})}function Qf(e,t,r,n,i){const s=dn.dirname(r);Xf(s,(o,a)=>{if(o)return i(o);if(a)return Bi(e,t,r,n,i);Zf(s,u=>u?i(u):Bi(e,t,r,n,i))})}function pc(e,t,r,n){if(!r.filter)return n(null,!0);Promise.resolve(r.filter(e,t)).then(i=>n(null,i),i=>n(i))}function Bi(e,t,r,n,i){(n.dereference?Qe.stat:Qe.lstat)(t,(o,a)=>o?i(o):a.isDirectory()?ol(a,e,t,r,n,i):a.isFile()||a.isCharacterDevice()||a.isBlockDevice()?el(a,e,t,r,n,i):a.isSymbolicLink()?ul(e,t,r,n,i):a.isSocket()?i(new Error(`Cannot copy a socket file: ${t}`)):a.isFIFO()?i(new Error(`Cannot copy a FIFO pipe: ${t}`)):i(new Error(`Unknown file: ${t}`)))}function el(e,t,r,n,i,s){return t?tl(e,r,n,i,s):yc(e,r,n,i,s)}function tl(e,t,r,n,i){if(n.overwrite)Qe.unlink(r,s=>s?i(s):yc(e,t,r,n,i));else return n.errorOnExist?i(new Error(`'${r}' already exists`)):i()}function yc(e,t,r,n,i){Qe.copyFile(t,r,s=>s?i(s):n.preserveTimestamps?rl(e.mode,t,r,i):ui(r,e.mode,i))}function rl(e,t,r,n){return nl(e)?il(r,e,i=>i?n(i):Vo(e,t,r,n)):Vo(e,t,r,n)}function nl(e){return(e&128)===0}function il(e,t,r){return ui(e,t|128,r)}function Vo(e,t,r,n){sl(t,r,i=>i?n(i):ui(r,e,n))}function ui(e,t,r){return Qe.chmod(e,t,r)}function sl(e,t,r){Qe.stat(e,(n,i)=>n?r(n):Jf(t,i.atime,i.mtime,r))}function ol(e,t,r,n,i,s){return t?vc(r,n,i,s):al(e.mode,r,n,i,s)}function al(e,t,r,n,i){Qe.mkdir(r,s=>{if(s)return i(s);vc(t,r,n,o=>o?i(o):ui(r,e,i))})}function vc(e,t,r,n){Qe.readdir(e,(i,s)=>i?n(i):Ki(s,e,t,r,n))}function Ki(e,t,r,n,i){const s=e.pop();return s?cl(e,s,t,r,n,i):i()}function cl(e,t,r,n,i,s){const o=dn.join(r,t),a=dn.join(n,t);pc(o,a,i,(u,p)=>{if(u)return s(u);if(!p)return Ki(e,r,n,i,s);hn.checkPaths(o,a,"copy",i,(c,d)=>{if(c)return s(c);const{destStat:E}=d;Bi(E,o,a,i,f=>f?s(f):Ki(e,r,n,i,s))})})}function ul(e,t,r,n,i){Qe.readlink(t,(s,o)=>{if(s)return i(s);if(n.dereference&&(o=dn.resolve(process.cwd(),o)),e)Qe.readlink(r,(a,u)=>a?a.code==="EINVAL"||a.code==="UNKNOWN"?Qe.symlink(o,r,i):i(a):(n.dereference&&(u=dn.resolve(process.cwd(),u)),hn.isSrcSubdir(o,u)?i(new Error(`Cannot copy '${o}' to a subdirectory of itself, '${u}'.`)):hn.isSrcSubdir(u,o)?i(new Error(`Cannot overwrite '${u}' with '${o}'.`)):fl(o,r,i)));else return Qe.symlink(o,r,i)})}function fl(e,t,r){Qe.unlink(t,n=>n?r(n):Qe.symlink(e,t,r))}var ll=Yf;const qe=et,mn=Ne,dl=Rt.mkdirsSync,hl=dc.utimesMillisSync,pn=kr;function ml(e,t,r){typeof r=="function"&&(r={filter:r}),r=r||{},r.clobber="clobber"in r?!!r.clobber:!0,r.overwrite="overwrite"in r?!!r.overwrite:r.clobber,r.preserveTimestamps&&process.arch==="ia32"&&process.emitWarning(`Using the preserveTimestamps option in 32-bit node is not recommended;
5
-
6
- see https://github.com/jprichardson/node-fs-extra/issues/269`,"Warning","fs-extra-WARN0002");const{srcStat:n,destStat:i}=pn.checkPathsSync(e,t,"copy",r);if(pn.checkParentPathsSync(e,n,t,"copy"),r.filter&&!r.filter(e,t))return;const s=mn.dirname(t);return qe.existsSync(s)||dl(s),Ec(i,e,t,r)}function Ec(e,t,r,n){const s=(n.dereference?qe.statSync:qe.lstatSync)(t);if(s.isDirectory())return _l(s,e,t,r,n);if(s.isFile()||s.isCharacterDevice()||s.isBlockDevice())return pl(s,e,t,r,n);if(s.isSymbolicLink())return Nl(e,t,r,n);throw s.isSocket()?new Error(`Cannot copy a socket file: ${t}`):s.isFIFO()?new Error(`Cannot copy a FIFO pipe: ${t}`):new Error(`Unknown file: ${t}`)}function pl(e,t,r,n,i){return t?yl(e,r,n,i):gc(e,r,n,i)}function yl(e,t,r,n){if(n.overwrite)return qe.unlinkSync(r),gc(e,t,r,n);if(n.errorOnExist)throw new Error(`'${r}' already exists`)}function gc(e,t,r,n){return qe.copyFileSync(t,r),n.preserveTimestamps&&vl(e.mode,t,r),ds(r,e.mode)}function vl(e,t,r){return El(e)&&gl(r,e),$l(t,r)}function El(e){return(e&128)===0}function gl(e,t){return ds(e,t|128)}function ds(e,t){return qe.chmodSync(e,t)}function $l(e,t){const r=qe.statSync(e);return hl(t,r.atime,r.mtime)}function _l(e,t,r,n,i){return t?$c(r,n,i):Sl(e.mode,r,n,i)}function Sl(e,t,r,n){return qe.mkdirSync(r),$c(t,r,n),ds(r,e)}function $c(e,t,r){qe.readdirSync(e).forEach(n=>wl(n,e,t,r))}function wl(e,t,r,n){const i=mn.join(t,e),s=mn.join(r,e);if(n.filter&&!n.filter(i,s))return;const{destStat:o}=pn.checkPathsSync(i,s,"copy",n);return Ec(o,i,s,n)}function Nl(e,t,r,n){let i=qe.readlinkSync(t);if(n.dereference&&(i=mn.resolve(process.cwd(),i)),e){let s;try{s=qe.readlinkSync(r)}catch(o){if(o.code==="EINVAL"||o.code==="UNKNOWN")return qe.symlinkSync(i,r);throw o}if(n.dereference&&(s=mn.resolve(process.cwd(),s)),pn.isSrcSubdir(i,s))throw new Error(`Cannot copy '${i}' to a subdirectory of itself, '${s}'.`);if(pn.isSrcSubdir(s,i))throw new Error(`Cannot overwrite '${s}' with '${i}'.`);return Il(i,r)}else return qe.symlinkSync(i,r)}function Il(e,t){return qe.unlinkSync(t),qe.symlinkSync(e,t)}var Ol=ml;const Tl=Ke.fromCallback;var hs={copy:Tl(ll),copySync:Ol};const _c=et,Dl=Ke.fromCallback;function Rl(e,t){_c.rm(e,{recursive:!0,force:!0},t)}function Cl(e){_c.rmSync(e,{recursive:!0,force:!0})}var fi={remove:Dl(Rl),removeSync:Cl};const Pl=Ke.fromPromise,Sc=lr,wc=Ne,Nc=Rt,Ic=fi,xo=Pl(async function(t){let r;try{r=await Sc.readdir(t)}catch{return Nc.mkdirs(t)}return Promise.all(r.map(n=>Ic.remove(wc.join(t,n))))});function zo(e){let t;try{t=Sc.readdirSync(e)}catch{return Nc.mkdirsSync(e)}t.forEach(r=>{r=wc.join(e,r),Ic.removeSync(r)})}var Al={emptyDirSync:zo,emptydirSync:zo,emptyDir:xo,emptydir:xo};const bl=Ke.fromCallback,Oc=Ne,Gt=et,Tc=Rt;function Ll(e,t){function r(){Gt.writeFile(e,"",n=>{if(n)return t(n);t()})}Gt.stat(e,(n,i)=>{if(!n&&i.isFile())return t();const s=Oc.dirname(e);Gt.stat(s,(o,a)=>{if(o)return o.code==="ENOENT"?Tc.mkdirs(s,u=>{if(u)return t(u);r()}):t(o);a.isDirectory()?r():Gt.readdir(s,u=>{if(u)return t(u)})})})}function Fl(e){let t;try{t=Gt.statSync(e)}catch{}if(t&&t.isFile())return;const r=Oc.dirname(e);try{Gt.statSync(r).isDirectory()||Gt.readdirSync(r)}catch(n){if(n&&n.code==="ENOENT")Tc.mkdirsSync(r);else throw n}Gt.writeFileSync(e,"")}var jl={createFile:bl(Ll),createFileSync:Fl};const Ml=Ke.fromCallback,Dc=Ne,Vt=et,Rc=Rt,kl=dr.pathExists,{areIdentical:Cc}=kr;function Ul(e,t,r){function n(i,s){Vt.link(i,s,o=>{if(o)return r(o);r(null)})}Vt.lstat(t,(i,s)=>{Vt.lstat(e,(o,a)=>{if(o)return o.message=o.message.replace("lstat","ensureLink"),r(o);if(s&&Cc(a,s))return r(null);const u=Dc.dirname(t);kl(u,(p,c)=>{if(p)return r(p);if(c)return n(e,t);Rc.mkdirs(u,d=>{if(d)return r(d);n(e,t)})})})})}function Vl(e,t){let r;try{r=Vt.lstatSync(t)}catch{}try{const s=Vt.lstatSync(e);if(r&&Cc(s,r))return}catch(s){throw s.message=s.message.replace("lstat","ensureLink"),s}const n=Dc.dirname(t);return Vt.existsSync(n)||Rc.mkdirsSync(n),Vt.linkSync(e,t)}var xl={createLink:Ml(Ul),createLinkSync:Vl};const Ht=Ne,nn=et,zl=dr.pathExists;function Gl(e,t,r){if(Ht.isAbsolute(e))return nn.lstat(e,n=>n?(n.message=n.message.replace("lstat","ensureSymlink"),r(n)):r(null,{toCwd:e,toDst:e}));{const n=Ht.dirname(t),i=Ht.join(n,e);return zl(i,(s,o)=>s?r(s):o?r(null,{toCwd:i,toDst:e}):nn.lstat(e,a=>a?(a.message=a.message.replace("lstat","ensureSymlink"),r(a)):r(null,{toCwd:e,toDst:Ht.relative(n,e)})))}}function Hl(e,t){let r;if(Ht.isAbsolute(e)){if(r=nn.existsSync(e),!r)throw new Error("absolute srcpath does not exist");return{toCwd:e,toDst:e}}else{const n=Ht.dirname(t),i=Ht.join(n,e);if(r=nn.existsSync(i),r)return{toCwd:i,toDst:e};if(r=nn.existsSync(e),!r)throw new Error("relative srcpath does not exist");return{toCwd:e,toDst:Ht.relative(n,e)}}}var ql={symlinkPaths:Gl,symlinkPathsSync:Hl};const Pc=et;function Bl(e,t,r){if(r=typeof t=="function"?t:r,t=typeof t=="function"?!1:t,t)return r(null,t);Pc.lstat(e,(n,i)=>{if(n)return r(null,"file");t=i&&i.isDirectory()?"dir":"file",r(null,t)})}function Kl(e,t){let r;if(t)return t;try{r=Pc.lstatSync(e)}catch{return"file"}return r&&r.isDirectory()?"dir":"file"}var Wl={symlinkType:Bl,symlinkTypeSync:Kl};const Zl=Ke.fromCallback,Ac=Ne,ht=lr,bc=Rt,Xl=bc.mkdirs,Jl=bc.mkdirsSync,Lc=ql,Yl=Lc.symlinkPaths,Ql=Lc.symlinkPathsSync,Fc=Wl,ed=Fc.symlinkType,td=Fc.symlinkTypeSync,rd=dr.pathExists,{areIdentical:jc}=kr;function nd(e,t,r,n){n=typeof r=="function"?r:n,r=typeof r=="function"?!1:r,ht.lstat(t,(i,s)=>{!i&&s.isSymbolicLink()?Promise.all([ht.stat(e),ht.stat(t)]).then(([o,a])=>{if(jc(o,a))return n(null);Go(e,t,r,n)}):Go(e,t,r,n)})}function Go(e,t,r,n){Yl(e,t,(i,s)=>{if(i)return n(i);e=s.toDst,ed(s.toCwd,r,(o,a)=>{if(o)return n(o);const u=Ac.dirname(t);rd(u,(p,c)=>{if(p)return n(p);if(c)return ht.symlink(e,t,a,n);Xl(u,d=>{if(d)return n(d);ht.symlink(e,t,a,n)})})})})}function id(e,t,r){let n;try{n=ht.lstatSync(t)}catch{}if(n&&n.isSymbolicLink()){const a=ht.statSync(e),u=ht.statSync(t);if(jc(a,u))return}const i=Ql(e,t);e=i.toDst,r=td(i.toCwd,r);const s=Ac.dirname(t);return ht.existsSync(s)||Jl(s),ht.symlinkSync(e,t,r)}var sd={createSymlink:Zl(nd),createSymlinkSync:id};const{createFile:Ho,createFileSync:qo}=jl,{createLink:Bo,createLinkSync:Ko}=xl,{createSymlink:Wo,createSymlinkSync:Zo}=sd;var od={createFile:Ho,createFileSync:qo,ensureFile:Ho,ensureFileSync:qo,createLink:Bo,createLinkSync:Ko,ensureLink:Bo,ensureLinkSync:Ko,createSymlink:Wo,createSymlinkSync:Zo,ensureSymlink:Wo,ensureSymlinkSync:Zo};function ad(e,{EOL:t=`
7
- `,finalEOL:r=!0,replacer:n=null,spaces:i}={}){const s=r?t:"";return JSON.stringify(e,n,i).replace(/\n/g,t)+s}function cd(e){return Buffer.isBuffer(e)&&(e=e.toString("utf8")),e.replace(/^\uFEFF/,"")}var ms={stringify:ad,stripBom:cd};let Ar;try{Ar=et}catch{Ar=Mr}const li=Ke,{stringify:Mc,stripBom:kc}=ms;async function ud(e,t={}){typeof t=="string"&&(t={encoding:t});const r=t.fs||Ar,n="throws"in t?t.throws:!0;let i=await li.fromCallback(r.readFile)(e,t);i=kc(i);let s;try{s=JSON.parse(i,t?t.reviver:null)}catch(o){if(n)throw o.message=`${e}: ${o.message}`,o;return null}return s}const fd=li.fromPromise(ud);function ld(e,t={}){typeof t=="string"&&(t={encoding:t});const r=t.fs||Ar,n="throws"in t?t.throws:!0;try{let i=r.readFileSync(e,t);return i=kc(i),JSON.parse(i,t.reviver)}catch(i){if(n)throw i.message=`${e}: ${i.message}`,i;return null}}async function dd(e,t,r={}){const n=r.fs||Ar,i=Mc(t,r);await li.fromCallback(n.writeFile)(e,i,r)}const hd=li.fromPromise(dd);function md(e,t,r={}){const n=r.fs||Ar,i=Mc(t,r);return n.writeFileSync(e,i,r)}const pd={readFile:fd,readFileSync:ld,writeFile:hd,writeFileSync:md};var yd=pd;const bn=yd;var vd={readJson:bn.readFile,readJsonSync:bn.readFileSync,writeJson:bn.writeFile,writeJsonSync:bn.writeFileSync};const Ed=Ke.fromCallback,sn=et,Uc=Ne,Vc=Rt,gd=dr.pathExists;function $d(e,t,r,n){typeof r=="function"&&(n=r,r="utf8");const i=Uc.dirname(e);gd(i,(s,o)=>{if(s)return n(s);if(o)return sn.writeFile(e,t,r,n);Vc.mkdirs(i,a=>{if(a)return n(a);sn.writeFile(e,t,r,n)})})}function _d(e,...t){const r=Uc.dirname(e);if(sn.existsSync(r))return sn.writeFileSync(e,...t);Vc.mkdirsSync(r),sn.writeFileSync(e,...t)}var ps={outputFile:Ed($d),outputFileSync:_d};const{stringify:Sd}=ms,{outputFile:wd}=ps;async function Nd(e,t,r={}){const n=Sd(t,r);await wd(e,n,r)}var Id=Nd;const{stringify:Od}=ms,{outputFileSync:Td}=ps;function Dd(e,t,r){const n=Od(t,r);Td(e,n,r)}var Rd=Dd;const Cd=Ke.fromPromise,Be=vd;Be.outputJson=Cd(Id);Be.outputJsonSync=Rd;Be.outputJSON=Be.outputJson;Be.outputJSONSync=Be.outputJsonSync;Be.writeJSON=Be.writeJson;Be.writeJSONSync=Be.writeJsonSync;Be.readJSON=Be.readJson;Be.readJSONSync=Be.readJsonSync;var Pd=Be;const Ad=et,Wi=Ne,bd=hs.copy,xc=fi.remove,Ld=Rt.mkdirp,Fd=dr.pathExists,Xo=kr;function jd(e,t,r,n){typeof r=="function"&&(n=r,r={}),r=r||{};const i=r.overwrite||r.clobber||!1;Xo.checkPaths(e,t,"move",r,(s,o)=>{if(s)return n(s);const{srcStat:a,isChangingCase:u=!1}=o;Xo.checkParentPaths(e,a,t,"move",p=>{if(p)return n(p);if(Md(t))return Jo(e,t,i,u,n);Ld(Wi.dirname(t),c=>c?n(c):Jo(e,t,i,u,n))})})}function Md(e){const t=Wi.dirname(e);return Wi.parse(t).root===t}function Jo(e,t,r,n,i){if(n)return Ri(e,t,r,i);if(r)return xc(t,s=>s?i(s):Ri(e,t,r,i));Fd(t,(s,o)=>s?i(s):o?i(new Error("dest already exists.")):Ri(e,t,r,i))}function Ri(e,t,r,n){Ad.rename(e,t,i=>i?i.code!=="EXDEV"?n(i):kd(e,t,r,n):n())}function kd(e,t,r,n){bd(e,t,{overwrite:r,errorOnExist:!0,preserveTimestamps:!0},s=>s?n(s):xc(e,n))}var Ud=jd;const zc=et,Zi=Ne,Vd=hs.copySync,Gc=fi.removeSync,xd=Rt.mkdirpSync,Yo=kr;function zd(e,t,r){r=r||{};const n=r.overwrite||r.clobber||!1,{srcStat:i,isChangingCase:s=!1}=Yo.checkPathsSync(e,t,"move",r);return Yo.checkParentPathsSync(e,i,t,"move"),Gd(t)||xd(Zi.dirname(t)),Hd(e,t,n,s)}function Gd(e){const t=Zi.dirname(e);return Zi.parse(t).root===t}function Hd(e,t,r,n){if(n)return Ci(e,t,r);if(r)return Gc(t),Ci(e,t,r);if(zc.existsSync(t))throw new Error("dest already exists.");return Ci(e,t,r)}function Ci(e,t,r){try{zc.renameSync(e,t)}catch(n){if(n.code!=="EXDEV")throw n;return qd(e,t,r)}}function qd(e,t,r){return Vd(e,t,{overwrite:r,errorOnExist:!0,preserveTimestamps:!0}),Gc(e)}var Bd=zd;const Kd=Ke.fromCallback;var Wd={move:Kd(Ud),moveSync:Bd},at={...lr,...hs,...Al,...od,...Pd,...Rt,...Wd,...ps,...dr,...fi},Xi={exports:{}},Zd=e=>{const t=typeof e;return e!==null&&(t==="object"||t==="function")};const Qt=Zd,Xd=new Set(["__proto__","prototype","constructor"]),Jd=e=>!e.some(t=>Xd.has(t));function Ln(e){const t=e.split("."),r=[];for(let n=0;n<t.length;n++){let i=t[n];for(;i[i.length-1]==="\\"&&t[n+1]!==void 0;)i=i.slice(0,-1)+".",i+=t[++n];r.push(i)}return Jd(r)?r:[]}var Yd={get(e,t,r){if(!Qt(e)||typeof t!="string")return r===void 0?e:r;const n=Ln(t);if(n.length!==0){for(let i=0;i<n.length;i++)if(e=e[n[i]],e==null){if(i!==n.length-1)return r;break}return e===void 0?r:e}},set(e,t,r){if(!Qt(e)||typeof t!="string")return e;const n=e,i=Ln(t);for(let s=0;s<i.length;s++){const o=i[s];Qt(e[o])||(e[o]={}),s===i.length-1&&(e[o]=r),e=e[o]}return n},delete(e,t){if(!Qt(e)||typeof t!="string")return!1;const r=Ln(t);for(let n=0;n<r.length;n++){const i=r[n];if(n===r.length-1)return delete e[i],!0;if(e=e[i],!Qt(e))return!1}},has(e,t){if(!Qt(e)||typeof t!="string")return!1;const r=Ln(t);if(r.length===0)return!1;for(let n=0;n<r.length;n++)if(Qt(e)){if(!(r[n]in e))return!1;e=e[r[n]]}else return!1;return!0}},ys={exports:{}},vs={exports:{}},Es={exports:{}},gs={exports:{}};const Hc=Mr;gs.exports=e=>new Promise(t=>{Hc.access(e,r=>{t(!r)})});gs.exports.sync=e=>{try{return Hc.accessSync(e),!0}catch{return!1}};var Qd=gs.exports,$s={exports:{}},_s={exports:{}};const qc=(e,...t)=>new Promise(r=>{r(e(...t))});_s.exports=qc;_s.exports.default=qc;var eh=_s.exports;const th=eh,Bc=e=>{if(!((Number.isInteger(e)||e===1/0)&&e>0))return Promise.reject(new TypeError("Expected `concurrency` to be a number from 1 and up"));const t=[];let r=0;const n=()=>{r--,t.length>0&&t.shift()()},i=(a,u,...p)=>{r++;const c=th(a,...p);u(c),c.then(n,n)},s=(a,u,...p)=>{r<e?i(a,u,...p):t.push(i.bind(null,a,u,...p))},o=(a,...u)=>new Promise(p=>s(a,p,...u));return Object.defineProperties(o,{activeCount:{get:()=>r},pendingCount:{get:()=>t.length},clearQueue:{value:()=>{t.length=0}}}),o};$s.exports=Bc;$s.exports.default=Bc;var rh=$s.exports;const Qo=rh;class Kc extends Error{constructor(t){super(),this.value=t}}const nh=(e,t)=>Promise.resolve(e).then(t),ih=e=>Promise.all(e).then(t=>t[1]===!0&&Promise.reject(new Kc(t[0])));var sh=(e,t,r)=>{r=Object.assign({concurrency:1/0,preserveOrder:!0},r);const n=Qo(r.concurrency),i=[...e].map(o=>[o,n(nh,o,t)]),s=Qo(r.preserveOrder?1:1/0);return Promise.all(i.map(o=>s(ih,o))).then(()=>{}).catch(o=>o instanceof Kc?o.value:Promise.reject(o))};const Wc=Ne,Zc=Qd,oh=sh;Es.exports=(e,t)=>(t=Object.assign({cwd:process.cwd()},t),oh(e,r=>Zc(Wc.resolve(t.cwd,r)),t));Es.exports.sync=(e,t)=>{t=Object.assign({cwd:process.cwd()},t);for(const r of e)if(Zc.sync(Wc.resolve(t.cwd,r)))return r};var ah=Es.exports;const qt=Ne,Xc=ah;vs.exports=(e,t={})=>{const r=qt.resolve(t.cwd||""),{root:n}=qt.parse(r),i=[].concat(e);return new Promise(s=>{(function o(a){Xc(i,{cwd:a}).then(u=>{u?s(qt.join(a,u)):a===n?s(null):o(qt.dirname(a))})})(r)})};vs.exports.sync=(e,t={})=>{let r=qt.resolve(t.cwd||"");const{root:n}=qt.parse(r),i=[].concat(e);for(;;){const s=Xc.sync(i,{cwd:r});if(s)return qt.join(r,s);if(r===n)return null;r=qt.dirname(r)}};var ch=vs.exports;const Jc=ch;ys.exports=async({cwd:e}={})=>Jc("package.json",{cwd:e});ys.exports.sync=({cwd:e}={})=>Jc.sync("package.json",{cwd:e});var uh=ys.exports,Ss={exports:{}};const Se=Ne,Yc=Sf,xt=Yc.homedir(),ws=Yc.tmpdir(),{env:Tr}=process,fh=e=>{const t=Se.join(xt,"Library");return{data:Se.join(t,"Application Support",e),config:Se.join(t,"Preferences",e),cache:Se.join(t,"Caches",e),log:Se.join(t,"Logs",e),temp:Se.join(ws,e)}},lh=e=>{const t=Tr.APPDATA||Se.join(xt,"AppData","Roaming"),r=Tr.LOCALAPPDATA||Se.join(xt,"AppData","Local");return{data:Se.join(r,e,"Data"),config:Se.join(t,e,"Config"),cache:Se.join(r,e,"Cache"),log:Se.join(r,e,"Log"),temp:Se.join(ws,e)}},dh=e=>{const t=Se.basename(xt);return{data:Se.join(Tr.XDG_DATA_HOME||Se.join(xt,".local","share"),e),config:Se.join(Tr.XDG_CONFIG_HOME||Se.join(xt,".config"),e),cache:Se.join(Tr.XDG_CACHE_HOME||Se.join(xt,".cache"),e),log:Se.join(Tr.XDG_STATE_HOME||Se.join(xt,".local","state"),e),temp:Se.join(ws,t,e)}},Qc=(e,t)=>{if(typeof e!="string")throw new TypeError(`Expected string, got ${typeof e}`);return t=Object.assign({suffix:"nodejs"},t),t.suffix&&(e+=`-${t.suffix}`),process.platform==="darwin"?fh(e):process.platform==="win32"?lh(e):dh(e)};Ss.exports=Qc;Ss.exports.default=Qc;var hh=Ss.exports,Tt={},de={};Object.defineProperty(de,"__esModule",{value:!0});de.NOOP=de.LIMIT_FILES_DESCRIPTORS=de.LIMIT_BASENAME_LENGTH=de.IS_USER_ROOT=de.IS_POSIX=de.DEFAULT_TIMEOUT_SYNC=de.DEFAULT_TIMEOUT_ASYNC=de.DEFAULT_WRITE_OPTIONS=de.DEFAULT_READ_OPTIONS=de.DEFAULT_FOLDER_MODE=de.DEFAULT_FILE_MODE=de.DEFAULT_ENCODING=void 0;const mh="utf8";de.DEFAULT_ENCODING=mh;const ph=438;de.DEFAULT_FILE_MODE=ph;const yh=511;de.DEFAULT_FOLDER_MODE=yh;const vh={};de.DEFAULT_READ_OPTIONS=vh;const Eh={};de.DEFAULT_WRITE_OPTIONS=Eh;const gh=5e3;de.DEFAULT_TIMEOUT_ASYNC=gh;const $h=100;de.DEFAULT_TIMEOUT_SYNC=$h;const _h=!!process.getuid;de.IS_POSIX=_h;const Sh=process.getuid?!process.getuid():!1;de.IS_USER_ROOT=Sh;const wh=128;de.LIMIT_BASENAME_LENGTH=wh;const Nh=1e4;de.LIMIT_FILES_DESCRIPTORS=Nh;const Ih=()=>{};de.NOOP=Ih;var di={},br={};Object.defineProperty(br,"__esModule",{value:!0});br.attemptifySync=br.attemptifyAsync=void 0;const eu=de,Oh=(e,t=eu.NOOP)=>function(){return e.apply(void 0,arguments).catch(t)};br.attemptifyAsync=Oh;const Th=(e,t=eu.NOOP)=>function(){try{return e.apply(void 0,arguments)}catch(r){return t(r)}};br.attemptifySync=Th;var Ns={};Object.defineProperty(Ns,"__esModule",{value:!0});const Dh=de,tu={isChangeErrorOk:e=>{const{code:t}=e;return t==="ENOSYS"||!Dh.IS_USER_ROOT&&(t==="EINVAL"||t==="EPERM")},isRetriableError:e=>{const{code:t}=e;return t==="EMFILE"||t==="ENFILE"||t==="EAGAIN"||t==="EBUSY"||t==="EACCESS"||t==="EACCS"||t==="EPERM"},onChangeError:e=>{if(!tu.isChangeErrorOk(e))throw e}};Ns.default=tu;var Lr={},Is={};Object.defineProperty(Is,"__esModule",{value:!0});const Rh=de,pe={interval:25,intervalId:void 0,limit:Rh.LIMIT_FILES_DESCRIPTORS,queueActive:new Set,queueWaiting:new Set,init:()=>{pe.intervalId||(pe.intervalId=setInterval(pe.tick,pe.interval))},reset:()=>{pe.intervalId&&(clearInterval(pe.intervalId),delete pe.intervalId)},add:e=>{pe.queueWaiting.add(e),pe.queueActive.size<pe.limit/2?pe.tick():pe.init()},remove:e=>{pe.queueWaiting.delete(e),pe.queueActive.delete(e)},schedule:()=>new Promise(e=>{const t=()=>pe.remove(r),r=()=>e(t);pe.add(r)}),tick:()=>{if(!(pe.queueActive.size>=pe.limit)){if(!pe.queueWaiting.size)return pe.reset();for(const e of pe.queueWaiting){if(pe.queueActive.size>=pe.limit)break;pe.queueWaiting.delete(e),pe.queueActive.add(e),e()}}}};Is.default=pe;Object.defineProperty(Lr,"__esModule",{value:!0});Lr.retryifySync=Lr.retryifyAsync=void 0;const Ch=Is,Ph=(e,t)=>function(r){return function n(){return Ch.default.schedule().then(i=>e.apply(void 0,arguments).then(s=>(i(),s),s=>{if(i(),Date.now()>=r)throw s;if(t(s)){const o=Math.round(100+400*Math.random());return new Promise(u=>setTimeout(u,o)).then(()=>n.apply(void 0,arguments))}throw s}))}};Lr.retryifyAsync=Ph;const Ah=(e,t)=>function(r){return function n(){try{return e.apply(void 0,arguments)}catch(i){if(Date.now()>r)throw i;if(t(i))return n.apply(void 0,arguments);throw i}}};Lr.retryifySync=Ah;Object.defineProperty(di,"__esModule",{value:!0});const he=Mr,xe=ai,ze=br,Ce=Ns,Xe=Lr,bh={chmodAttempt:ze.attemptifyAsync(xe.promisify(he.chmod),Ce.default.onChangeError),chownAttempt:ze.attemptifyAsync(xe.promisify(he.chown),Ce.default.onChangeError),closeAttempt:ze.attemptifyAsync(xe.promisify(he.close)),fsyncAttempt:ze.attemptifyAsync(xe.promisify(he.fsync)),mkdirAttempt:ze.attemptifyAsync(xe.promisify(he.mkdir)),realpathAttempt:ze.attemptifyAsync(xe.promisify(he.realpath)),statAttempt:ze.attemptifyAsync(xe.promisify(he.stat)),unlinkAttempt:ze.attemptifyAsync(xe.promisify(he.unlink)),closeRetry:Xe.retryifyAsync(xe.promisify(he.close),Ce.default.isRetriableError),fsyncRetry:Xe.retryifyAsync(xe.promisify(he.fsync),Ce.default.isRetriableError),openRetry:Xe.retryifyAsync(xe.promisify(he.open),Ce.default.isRetriableError),readFileRetry:Xe.retryifyAsync(xe.promisify(he.readFile),Ce.default.isRetriableError),renameRetry:Xe.retryifyAsync(xe.promisify(he.rename),Ce.default.isRetriableError),statRetry:Xe.retryifyAsync(xe.promisify(he.stat),Ce.default.isRetriableError),writeRetry:Xe.retryifyAsync(xe.promisify(he.write),Ce.default.isRetriableError),chmodSyncAttempt:ze.attemptifySync(he.chmodSync,Ce.default.onChangeError),chownSyncAttempt:ze.attemptifySync(he.chownSync,Ce.default.onChangeError),closeSyncAttempt:ze.attemptifySync(he.closeSync),mkdirSyncAttempt:ze.attemptifySync(he.mkdirSync),realpathSyncAttempt:ze.attemptifySync(he.realpathSync),statSyncAttempt:ze.attemptifySync(he.statSync),unlinkSyncAttempt:ze.attemptifySync(he.unlinkSync),closeSyncRetry:Xe.retryifySync(he.closeSync,Ce.default.isRetriableError),fsyncSyncRetry:Xe.retryifySync(he.fsyncSync,Ce.default.isRetriableError),openSyncRetry:Xe.retryifySync(he.openSync,Ce.default.isRetriableError),readFileSyncRetry:Xe.retryifySync(he.readFileSync,Ce.default.isRetriableError),renameSyncRetry:Xe.retryifySync(he.renameSync,Ce.default.isRetriableError),statSyncRetry:Xe.retryifySync(he.statSync,Ce.default.isRetriableError),writeSyncRetry:Xe.retryifySync(he.writeSync,Ce.default.isRetriableError)};di.default=bh;var Os={};Object.defineProperty(Os,"__esModule",{value:!0});const Lh={isFunction:e=>typeof e=="function",isString:e=>typeof e=="string",isUndefined:e=>typeof e>"u"};Os.default=Lh;var Ts={};Object.defineProperty(Ts,"__esModule",{value:!0});const Fn={},Ji={next:e=>{const t=Fn[e];if(!t)return;t.shift();const r=t[0];r?r(()=>Ji.next(e)):delete Fn[e]},schedule:e=>new Promise(t=>{let r=Fn[e];r||(r=Fn[e]=[]),r.push(t),!(r.length>1)&&t(()=>Ji.next(e))})};Ts.default=Ji;var Ds={};Object.defineProperty(Ds,"__esModule",{value:!0});const Fh=Ne,ea=de,ta=di,nt={store:{},create:e=>{const t=`000000${Math.floor(Math.random()*16777215).toString(16)}`.slice(-6),r=Date.now().toString().slice(-10),n="tmp-",i=`.${n}${r}${t}`;return`${e}${i}`},get:(e,t,r=!0)=>{const n=nt.truncate(t(e));return n in nt.store?nt.get(e,t,r):(nt.store[n]=r,[n,()=>delete nt.store[n]])},purge:e=>{nt.store[e]&&(delete nt.store[e],ta.default.unlinkAttempt(e))},purgeSync:e=>{nt.store[e]&&(delete nt.store[e],ta.default.unlinkSyncAttempt(e))},purgeSyncAll:()=>{for(const e in nt.store)nt.purgeSync(e)},truncate:e=>{const t=Fh.basename(e);if(t.length<=ea.LIMIT_BASENAME_LENGTH)return e;const r=/^(\.?)(.*?)((?:\.[^.]+)?(?:\.tmp-\d{10}[a-f0-9]{6})?)$/.exec(t);if(!r)return e;const n=t.length-ea.LIMIT_BASENAME_LENGTH;return`${e.slice(0,-t.length)}${r[1]}${r[2].slice(0,-n)}${r[3]}`}};process.on("exit",nt.purgeSyncAll);Ds.default=nt;Object.defineProperty(Tt,"__esModule",{value:!0});Tt.writeFileSync=Tt.writeFile=Tt.readFileSync=Tt.readFile=void 0;const ru=Ne,Fe=de,le=di,it=Os,jh=Ts,Bt=Ds;function nu(e,t=Fe.DEFAULT_READ_OPTIONS){var r;if(it.default.isString(t))return nu(e,{encoding:t});const n=Date.now()+((r=t.timeout)!==null&&r!==void 0?r:Fe.DEFAULT_TIMEOUT_ASYNC);return le.default.readFileRetry(n)(e,t)}Tt.readFile=nu;function iu(e,t=Fe.DEFAULT_READ_OPTIONS){var r;if(it.default.isString(t))return iu(e,{encoding:t});const n=Date.now()+((r=t.timeout)!==null&&r!==void 0?r:Fe.DEFAULT_TIMEOUT_SYNC);return le.default.readFileSyncRetry(n)(e,t)}Tt.readFileSync=iu;const su=(e,t,r,n)=>{if(it.default.isFunction(r))return su(e,t,Fe.DEFAULT_WRITE_OPTIONS,r);const i=ou(e,t,r);return n&&i.then(n,n),i};Tt.writeFile=su;const ou=async(e,t,r=Fe.DEFAULT_WRITE_OPTIONS)=>{var n;if(it.default.isString(r))return ou(e,t,{encoding:r});const i=Date.now()+((n=r.timeout)!==null&&n!==void 0?n:Fe.DEFAULT_TIMEOUT_ASYNC);let s=null,o=null,a=null,u=null,p=null;try{r.schedule&&(s=await r.schedule(e)),o=await jh.default.schedule(e),e=await le.default.realpathAttempt(e)||e,[u,a]=Bt.default.get(e,r.tmpCreate||Bt.default.create,r.tmpPurge!==!1);const c=Fe.IS_POSIX&&it.default.isUndefined(r.chown),d=it.default.isUndefined(r.mode);if(c||d){const f=await le.default.statAttempt(e);f&&(r={...r},c&&(r.chown={uid:f.uid,gid:f.gid}),d&&(r.mode=f.mode))}const E=ru.dirname(e);await le.default.mkdirAttempt(E,{mode:Fe.DEFAULT_FOLDER_MODE,recursive:!0}),p=await le.default.openRetry(i)(u,"w",r.mode||Fe.DEFAULT_FILE_MODE),r.tmpCreated&&r.tmpCreated(u),it.default.isString(t)?await le.default.writeRetry(i)(p,t,0,r.encoding||Fe.DEFAULT_ENCODING):it.default.isUndefined(t)||await le.default.writeRetry(i)(p,t,0,t.length,0),r.fsync!==!1&&(r.fsyncWait!==!1?await le.default.fsyncRetry(i)(p):le.default.fsyncAttempt(p)),await le.default.closeRetry(i)(p),p=null,r.chown&&await le.default.chownAttempt(u,r.chown.uid,r.chown.gid),r.mode&&await le.default.chmodAttempt(u,r.mode);try{await le.default.renameRetry(i)(u,e)}catch(f){if(f.code!=="ENAMETOOLONG")throw f;await le.default.renameRetry(i)(u,Bt.default.truncate(e))}a(),u=null}finally{p&&await le.default.closeAttempt(p),u&&Bt.default.purge(u),s&&s(),o&&o()}},au=(e,t,r=Fe.DEFAULT_WRITE_OPTIONS)=>{var n;if(it.default.isString(r))return au(e,t,{encoding:r});const i=Date.now()+((n=r.timeout)!==null&&n!==void 0?n:Fe.DEFAULT_TIMEOUT_SYNC);let s=null,o=null,a=null;try{e=le.default.realpathSyncAttempt(e)||e,[o,s]=Bt.default.get(e,r.tmpCreate||Bt.default.create,r.tmpPurge!==!1);const u=Fe.IS_POSIX&&it.default.isUndefined(r.chown),p=it.default.isUndefined(r.mode);if(u||p){const d=le.default.statSyncAttempt(e);d&&(r={...r},u&&(r.chown={uid:d.uid,gid:d.gid}),p&&(r.mode=d.mode))}const c=ru.dirname(e);le.default.mkdirSyncAttempt(c,{mode:Fe.DEFAULT_FOLDER_MODE,recursive:!0}),a=le.default.openSyncRetry(i)(o,"w",r.mode||Fe.DEFAULT_FILE_MODE),r.tmpCreated&&r.tmpCreated(o),it.default.isString(t)?le.default.writeSyncRetry(i)(a,t,0,r.encoding||Fe.DEFAULT_ENCODING):it.default.isUndefined(t)||le.default.writeSyncRetry(i)(a,t,0,t.length,0),r.fsync!==!1&&(r.fsyncWait!==!1?le.default.fsyncSyncRetry(i)(a):le.default.fsyncAttempt(a)),le.default.closeSyncRetry(i)(a),a=null,r.chown&&le.default.chownSyncAttempt(o,r.chown.uid,r.chown.gid),r.mode&&le.default.chmodSyncAttempt(o,r.mode);try{le.default.renameSyncRetry(i)(o,e)}catch(d){if(d.code!=="ENAMETOOLONG")throw d;le.default.renameSyncRetry(i)(o,Bt.default.truncate(e))}s(),o=null}finally{a&&le.default.closeSyncAttempt(a),o&&Bt.default.purge(o)}};Tt.writeFileSync=au;var Yi={exports:{}},cu={},pt={},Fr={},gn={},re={},yn={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.regexpCode=e.getEsmExportName=e.getProperty=e.safeStringify=e.stringify=e.strConcat=e.addCodeArg=e.str=e._=e.nil=e._Code=e.Name=e.IDENTIFIER=e._CodeOrName=void 0;class t{}e._CodeOrName=t,e.IDENTIFIER=/^[a-z$_][a-z$_0-9]*$/i;class r extends t{constructor($){if(super(),!e.IDENTIFIER.test($))throw new Error("CodeGen: name must be a valid identifier");this.str=$}toString(){return this.str}emptyStr(){return!1}get names(){return{[this.str]:1}}}e.Name=r;class n extends t{constructor($){super(),this._items=typeof $=="string"?[$]:$}toString(){return this.str}emptyStr(){if(this._items.length>1)return!1;const $=this._items[0];return $===""||$==='""'}get str(){var $;return($=this._str)!==null&&$!==void 0?$:this._str=this._items.reduce((S,D)=>`${S}${D}`,"")}get names(){var $;return($=this._names)!==null&&$!==void 0?$:this._names=this._items.reduce((S,D)=>(D instanceof r&&(S[D.str]=(S[D.str]||0)+1),S),{})}}e._Code=n,e.nil=new n("");function i(l,...$){const S=[l[0]];let D=0;for(;D<$.length;)a(S,$[D]),S.push(l[++D]);return new n(S)}e._=i;const s=new n("+");function o(l,...$){const S=[f(l[0])];let D=0;for(;D<$.length;)S.push(s),a(S,$[D]),S.push(s,f(l[++D]));return u(S),new n(S)}e.str=o;function a(l,$){$ instanceof n?l.push(...$._items):$ instanceof r?l.push($):l.push(d($))}e.addCodeArg=a;function u(l){let $=1;for(;$<l.length-1;){if(l[$]===s){const S=p(l[$-1],l[$+1]);if(S!==void 0){l.splice($-1,3,S);continue}l[$++]="+"}$++}}function p(l,$){if($==='""')return l;if(l==='""')return $;if(typeof l=="string")return $ instanceof r||l[l.length-1]!=='"'?void 0:typeof $!="string"?`${l.slice(0,-1)}${$}"`:$[0]==='"'?l.slice(0,-1)+$.slice(1):void 0;if(typeof $=="string"&&$[0]==='"'&&!(l instanceof r))return`"${l}${$.slice(1)}`}function c(l,$){return $.emptyStr()?l:l.emptyStr()?$:o`${l}${$}`}e.strConcat=c;function d(l){return typeof l=="number"||typeof l=="boolean"||l===null?l:f(Array.isArray(l)?l.join(","):l)}function E(l){return new n(f(l))}e.stringify=E;function f(l){return JSON.stringify(l).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}e.safeStringify=f;function h(l){return typeof l=="string"&&e.IDENTIFIER.test(l)?new n(`.${l}`):i`[${l}]`}e.getProperty=h;function y(l){if(typeof l=="string"&&e.IDENTIFIER.test(l))return new n(`${l}`);throw new Error(`CodeGen: invalid export name: ${l}, use explicit $id name mapping`)}e.getEsmExportName=y;function v(l){return new n(l.toString())}e.regexpCode=v})(yn);var Qi={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.ValueScope=e.ValueScopeName=e.Scope=e.varKinds=e.UsedValueState=void 0;const t=yn;class r extends Error{constructor(p){super(`CodeGen: "code" for ${p} not defined`),this.value=p.value}}var n;(function(u){u[u.Started=0]="Started",u[u.Completed=1]="Completed"})(n=e.UsedValueState||(e.UsedValueState={})),e.varKinds={const:new t.Name("const"),let:new t.Name("let"),var:new t.Name("var")};class i{constructor({prefixes:p,parent:c}={}){this._names={},this._prefixes=p,this._parent=c}toName(p){return p instanceof t.Name?p:this.name(p)}name(p){return new t.Name(this._newName(p))}_newName(p){const c=this._names[p]||this._nameGroup(p);return`${p}${c.index++}`}_nameGroup(p){var c,d;if(!((d=(c=this._parent)===null||c===void 0?void 0:c._prefixes)===null||d===void 0)&&d.has(p)||this._prefixes&&!this._prefixes.has(p))throw new Error(`CodeGen: prefix "${p}" is not allowed in this scope`);return this._names[p]={prefix:p,index:0}}}e.Scope=i;class s extends t.Name{constructor(p,c){super(c),this.prefix=p}setValue(p,{property:c,itemIndex:d}){this.value=p,this.scopePath=(0,t._)`.${new t.Name(c)}[${d}]`}}e.ValueScopeName=s;const o=(0,t._)`\n`;class a extends i{constructor(p){super(p),this._values={},this._scope=p.scope,this.opts={...p,_n:p.lines?o:t.nil}}get(){return this._scope}name(p){return new s(p,this._newName(p))}value(p,c){var d;if(c.ref===void 0)throw new Error("CodeGen: ref must be passed in value");const E=this.toName(p),{prefix:f}=E,h=(d=c.key)!==null&&d!==void 0?d:c.ref;let y=this._values[f];if(y){const $=y.get(h);if($)return $}else y=this._values[f]=new Map;y.set(h,E);const v=this._scope[f]||(this._scope[f]=[]),l=v.length;return v[l]=c.ref,E.setValue(c,{property:f,itemIndex:l}),E}getValue(p,c){const d=this._values[p];if(d)return d.get(c)}scopeRefs(p,c=this._values){return this._reduceValues(c,d=>{if(d.scopePath===void 0)throw new Error(`CodeGen: name "${d}" has no value`);return(0,t._)`${p}${d.scopePath}`})}scopeCode(p=this._values,c,d){return this._reduceValues(p,E=>{if(E.value===void 0)throw new Error(`CodeGen: name "${E}" has no value`);return E.value.code},c,d)}_reduceValues(p,c,d={},E){let f=t.nil;for(const h in p){const y=p[h];if(!y)continue;const v=d[h]=d[h]||new Map;y.forEach(l=>{if(v.has(l))return;v.set(l,n.Started);let $=c(l);if($){const S=this.opts.es5?e.varKinds.var:e.varKinds.const;f=(0,t._)`${f}${S} ${l} = ${$};${this.opts._n}`}else if($=E?.(l))f=(0,t._)`${f}${$}${this.opts._n}`;else throw new r(l);v.set(l,n.Completed)})}return f}}e.ValueScope=a})(Qi);(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.or=e.and=e.not=e.CodeGen=e.operators=e.varKinds=e.ValueScopeName=e.ValueScope=e.Scope=e.Name=e.regexpCode=e.stringify=e.getProperty=e.nil=e.strConcat=e.str=e._=void 0;const t=yn,r=Qi;var n=yn;Object.defineProperty(e,"_",{enumerable:!0,get:function(){return n._}}),Object.defineProperty(e,"str",{enumerable:!0,get:function(){return n.str}}),Object.defineProperty(e,"strConcat",{enumerable:!0,get:function(){return n.strConcat}}),Object.defineProperty(e,"nil",{enumerable:!0,get:function(){return n.nil}}),Object.defineProperty(e,"getProperty",{enumerable:!0,get:function(){return n.getProperty}}),Object.defineProperty(e,"stringify",{enumerable:!0,get:function(){return n.stringify}}),Object.defineProperty(e,"regexpCode",{enumerable:!0,get:function(){return n.regexpCode}}),Object.defineProperty(e,"Name",{enumerable:!0,get:function(){return n.Name}});var i=Qi;Object.defineProperty(e,"Scope",{enumerable:!0,get:function(){return i.Scope}}),Object.defineProperty(e,"ValueScope",{enumerable:!0,get:function(){return i.ValueScope}}),Object.defineProperty(e,"ValueScopeName",{enumerable:!0,get:function(){return i.ValueScopeName}}),Object.defineProperty(e,"varKinds",{enumerable:!0,get:function(){return i.varKinds}}),e.operators={GT:new t._Code(">"),GTE:new t._Code(">="),LT:new t._Code("<"),LTE:new t._Code("<="),EQ:new t._Code("==="),NEQ:new t._Code("!=="),NOT:new t._Code("!"),OR:new t._Code("||"),AND:new t._Code("&&"),ADD:new t._Code("+")};class s{optimizeNodes(){return this}optimizeNames(m,_){return this}}class o extends s{constructor(m,_,M){super(),this.varKind=m,this.name=_,this.rhs=M}render({es5:m,_n:_}){const M=m?r.varKinds.var:this.varKind,W=this.rhs===void 0?"":` = ${this.rhs}`;return`${M} ${this.name}${W};`+_}optimizeNames(m,_){if(m[this.name.str])return this.rhs&&(this.rhs=k(this.rhs,m,_)),this}get names(){return this.rhs instanceof t._CodeOrName?this.rhs.names:{}}}class a extends s{constructor(m,_,M){super(),this.lhs=m,this.rhs=_,this.sideEffects=M}render({_n:m}){return`${this.lhs} = ${this.rhs};`+m}optimizeNames(m,_){if(!(this.lhs instanceof t.Name&&!m[this.lhs.str]&&!this.sideEffects))return this.rhs=k(this.rhs,m,_),this}get names(){const m=this.lhs instanceof t.Name?{}:{...this.lhs.names};return z(m,this.rhs)}}class u extends a{constructor(m,_,M,W){super(m,M,W),this.op=_}render({_n:m}){return`${this.lhs} ${this.op}= ${this.rhs};`+m}}class p extends s{constructor(m){super(),this.label=m,this.names={}}render({_n:m}){return`${this.label}:`+m}}class c extends s{constructor(m){super(),this.label=m,this.names={}}render({_n:m}){return`break${this.label?` ${this.label}`:""};`+m}}class d extends s{constructor(m){super(),this.error=m}render({_n:m}){return`throw ${this.error};`+m}get names(){return this.error.names}}class E extends s{constructor(m){super(),this.code=m}render({_n:m}){return`${this.code};`+m}optimizeNodes(){return`${this.code}`?this:void 0}optimizeNames(m,_){return this.code=k(this.code,m,_),this}get names(){return this.code instanceof t._CodeOrName?this.code.names:{}}}class f extends s{constructor(m=[]){super(),this.nodes=m}render(m){return this.nodes.reduce((_,M)=>_+M.render(m),"")}optimizeNodes(){const{nodes:m}=this;let _=m.length;for(;_--;){const M=m[_].optimizeNodes();Array.isArray(M)?m.splice(_,1,...M):M?m[_]=M:m.splice(_,1)}return m.length>0?this:void 0}optimizeNames(m,_){const{nodes:M}=this;let W=M.length;for(;W--;){const Z=M[W];Z.optimizeNames(m,_)||(H(m,Z.names),M.splice(W,1))}return M.length>0?this:void 0}get names(){return this.nodes.reduce((m,_)=>K(m,_.names),{})}}class h extends f{render(m){return"{"+m._n+super.render(m)+"}"+m._n}}class y extends f{}class v extends h{}v.kind="else";class l extends h{constructor(m,_){super(_),this.condition=m}render(m){let _=`if(${this.condition})`+super.render(m);return this.else&&(_+="else "+this.else.render(m)),_}optimizeNodes(){super.optimizeNodes();const m=this.condition;if(m===!0)return this.nodes;let _=this.else;if(_){const M=_.optimizeNodes();_=this.else=Array.isArray(M)?new v(M):M}if(_)return m===!1?_ instanceof l?_:_.nodes:this.nodes.length?this:new l(q(m),_ instanceof l?[_]:_.nodes);if(!(m===!1||!this.nodes.length))return this}optimizeNames(m,_){var M;if(this.else=(M=this.else)===null||M===void 0?void 0:M.optimizeNames(m,_),!!(super.optimizeNames(m,_)||this.else))return this.condition=k(this.condition,m,_),this}get names(){const m=super.names;return z(m,this.condition),this.else&&K(m,this.else.names),m}}l.kind="if";class $ extends h{}$.kind="for";class S extends ${constructor(m){super(),this.iteration=m}render(m){return`for(${this.iteration})`+super.render(m)}optimizeNames(m,_){if(super.optimizeNames(m,_))return this.iteration=k(this.iteration,m,_),this}get names(){return K(super.names,this.iteration.names)}}class D extends ${constructor(m,_,M,W){super(),this.varKind=m,this.name=_,this.from=M,this.to=W}render(m){const _=m.es5?r.varKinds.var:this.varKind,{name:M,from:W,to:Z}=this;return`for(${_} ${M}=${W}; ${M}<${Z}; ${M}++)`+super.render(m)}get names(){const m=z(super.names,this.from);return z(m,this.to)}}class V extends ${constructor(m,_,M,W){super(),this.loop=m,this.varKind=_,this.name=M,this.iterable=W}render(m){return`for(${this.varKind} ${this.name} ${this.loop} ${this.iterable})`+super.render(m)}optimizeNames(m,_){if(super.optimizeNames(m,_))return this.iterable=k(this.iterable,m,_),this}get names(){return K(super.names,this.iterable.names)}}class T extends h{constructor(m,_,M){super(),this.name=m,this.args=_,this.async=M}render(m){return`${this.async?"async ":""}function ${this.name}(${this.args})`+super.render(m)}}T.kind="func";class P extends f{render(m){return"return "+super.render(m)}}P.kind="return";class U extends h{render(m){let _="try"+super.render(m);return this.catch&&(_+=this.catch.render(m)),this.finally&&(_+=this.finally.render(m)),_}optimizeNodes(){var m,_;return super.optimizeNodes(),(m=this.catch)===null||m===void 0||m.optimizeNodes(),(_=this.finally)===null||_===void 0||_.optimizeNodes(),this}optimizeNames(m,_){var M,W;return super.optimizeNames(m,_),(M=this.catch)===null||M===void 0||M.optimizeNames(m,_),(W=this.finally)===null||W===void 0||W.optimizeNames(m,_),this}get names(){const m=super.names;return this.catch&&K(m,this.catch.names),this.finally&&K(m,this.finally.names),m}}class A extends h{constructor(m){super(),this.error=m}render(m){return`catch(${this.error})`+super.render(m)}}A.kind="catch";class x extends h{render(m){return"finally"+super.render(m)}}x.kind="finally";class B{constructor(m,_={}){this._values={},this._blockStarts=[],this._constants={},this.opts={..._,_n:_.lines?`
8
- `:""},this._extScope=m,this._scope=new r.Scope({parent:m}),this._nodes=[new y]}toString(){return this._root.render(this.opts)}name(m){return this._scope.name(m)}scopeName(m){return this._extScope.name(m)}scopeValue(m,_){const M=this._extScope.value(m,_);return(this._values[M.prefix]||(this._values[M.prefix]=new Set)).add(M),M}getScopeValue(m,_){return this._extScope.getValue(m,_)}scopeRefs(m){return this._extScope.scopeRefs(m,this._values)}scopeCode(){return this._extScope.scopeCode(this._values)}_def(m,_,M,W){const Z=this._scope.toName(_);return M!==void 0&&W&&(this._constants[Z.str]=M),this._leafNode(new o(m,Z,M)),Z}const(m,_,M){return this._def(r.varKinds.const,m,_,M)}let(m,_,M){return this._def(r.varKinds.let,m,_,M)}var(m,_,M){return this._def(r.varKinds.var,m,_,M)}assign(m,_,M){return this._leafNode(new a(m,_,M))}add(m,_){return this._leafNode(new u(m,e.operators.ADD,_))}code(m){return typeof m=="function"?m():m!==t.nil&&this._leafNode(new E(m)),this}object(...m){const _=["{"];for(const[M,W]of m)_.length>1&&_.push(","),_.push(M),(M!==W||this.opts.es5)&&(_.push(":"),(0,t.addCodeArg)(_,W));return _.push("}"),new t._Code(_)}if(m,_,M){if(this._blockNode(new l(m)),_&&M)this.code(_).else().code(M).endIf();else if(_)this.code(_).endIf();else if(M)throw new Error('CodeGen: "else" body without "then" body');return this}elseIf(m){return this._elseNode(new l(m))}else(){return this._elseNode(new v)}endIf(){return this._endBlockNode(l,v)}_for(m,_){return this._blockNode(m),_&&this.code(_).endFor(),this}for(m,_){return this._for(new S(m),_)}forRange(m,_,M,W,Z=this.opts.es5?r.varKinds.var:r.varKinds.let){const ie=this._scope.toName(m);return this._for(new D(Z,ie,_,M),()=>W(ie))}forOf(m,_,M,W=r.varKinds.const){const Z=this._scope.toName(m);if(this.opts.es5){const ie=_ instanceof t.Name?_:this.var("_arr",_);return this.forRange("_i",0,(0,t._)`${ie}.length`,oe=>{this.var(Z,(0,t._)`${ie}[${oe}]`),M(Z)})}return this._for(new V("of",W,Z,_),()=>M(Z))}forIn(m,_,M,W=this.opts.es5?r.varKinds.var:r.varKinds.const){if(this.opts.ownProperties)return this.forOf(m,(0,t._)`Object.keys(${_})`,M);const Z=this._scope.toName(m);return this._for(new V("in",W,Z,_),()=>M(Z))}endFor(){return this._endBlockNode($)}label(m){return this._leafNode(new p(m))}break(m){return this._leafNode(new c(m))}return(m){const _=new P;if(this._blockNode(_),this.code(m),_.nodes.length!==1)throw new Error('CodeGen: "return" should have one node');return this._endBlockNode(P)}try(m,_,M){if(!_&&!M)throw new Error('CodeGen: "try" without "catch" and "finally"');const W=new U;if(this._blockNode(W),this.code(m),_){const Z=this.name("e");this._currNode=W.catch=new A(Z),_(Z)}return M&&(this._currNode=W.finally=new x,this.code(M)),this._endBlockNode(A,x)}throw(m){return this._leafNode(new d(m))}block(m,_){return this._blockStarts.push(this._nodes.length),m&&this.code(m).endBlock(_),this}endBlock(m){const _=this._blockStarts.pop();if(_===void 0)throw new Error("CodeGen: not in self-balancing block");const M=this._nodes.length-_;if(M<0||m!==void 0&&M!==m)throw new Error(`CodeGen: wrong number of nodes: ${M} vs ${m} expected`);return this._nodes.length=_,this}func(m,_=t.nil,M,W){return this._blockNode(new T(m,_,M)),W&&this.code(W).endFunc(),this}endFunc(){return this._endBlockNode(T)}optimize(m=1){for(;m-- >0;)this._root.optimizeNodes(),this._root.optimizeNames(this._root.names,this._constants)}_leafNode(m){return this._currNode.nodes.push(m),this}_blockNode(m){this._currNode.nodes.push(m),this._nodes.push(m)}_endBlockNode(m,_){const M=this._currNode;if(M instanceof m||_&&M instanceof _)return this._nodes.pop(),this;throw new Error(`CodeGen: not in block "${_?`${m.kind}/${_.kind}`:m.kind}"`)}_elseNode(m){const _=this._currNode;if(!(_ instanceof l))throw new Error('CodeGen: "else" without "if"');return this._currNode=_.else=m,this}get _root(){return this._nodes[0]}get _currNode(){const m=this._nodes;return m[m.length-1]}set _currNode(m){const _=this._nodes;_[_.length-1]=m}}e.CodeGen=B;function K(R,m){for(const _ in m)R[_]=(R[_]||0)+(m[_]||0);return R}function z(R,m){return m instanceof t._CodeOrName?K(R,m.names):R}function k(R,m,_){if(R instanceof t.Name)return M(R);if(!W(R))return R;return new t._Code(R._items.reduce((Z,ie)=>(ie instanceof t.Name&&(ie=M(ie)),ie instanceof t._Code?Z.push(...ie._items):Z.push(ie),Z),[]));function M(Z){const ie=_[Z.str];return ie===void 0||m[Z.str]!==1?Z:(delete m[Z.str],ie)}function W(Z){return Z instanceof t._Code&&Z._items.some(ie=>ie instanceof t.Name&&m[ie.str]===1&&_[ie.str]!==void 0)}}function H(R,m){for(const _ in m)R[_]=(R[_]||0)-(m[_]||0)}function q(R){return typeof R=="boolean"||typeof R=="number"||R===null?!R:(0,t._)`!${b(R)}`}e.not=q;const G=w(e.operators.AND);function C(...R){return R.reduce(G)}e.and=C;const F=w(e.operators.OR);function O(...R){return R.reduce(F)}e.or=O;function w(R){return(m,_)=>m===t.nil?_:_===t.nil?m:(0,t._)`${b(m)} ${R} ${b(_)}`}function b(R){return R instanceof t.Name?R:(0,t._)`(${R})`}})(re);var ue={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.checkStrictMode=e.getErrorPath=e.Type=e.useFunc=e.setEvaluated=e.evaluatedPropsToName=e.mergeEvaluated=e.eachItem=e.unescapeJsonPointer=e.escapeJsonPointer=e.escapeFragment=e.unescapeFragment=e.schemaRefOrVal=e.schemaHasRulesButRef=e.schemaHasRules=e.checkUnknownRules=e.alwaysValidSchema=e.toHash=void 0;const t=re,r=yn;function n(T){const P={};for(const U of T)P[U]=!0;return P}e.toHash=n;function i(T,P){return typeof P=="boolean"?P:Object.keys(P).length===0?!0:(s(T,P),!o(P,T.self.RULES.all))}e.alwaysValidSchema=i;function s(T,P=T.schema){const{opts:U,self:A}=T;if(!U.strictSchema||typeof P=="boolean")return;const x=A.RULES.keywords;for(const B in P)x[B]||V(T,`unknown keyword: "${B}"`)}e.checkUnknownRules=s;function o(T,P){if(typeof T=="boolean")return!T;for(const U in T)if(P[U])return!0;return!1}e.schemaHasRules=o;function a(T,P){if(typeof T=="boolean")return!T;for(const U in T)if(U!=="$ref"&&P.all[U])return!0;return!1}e.schemaHasRulesButRef=a;function u({topSchemaRef:T,schemaPath:P},U,A,x){if(!x){if(typeof U=="number"||typeof U=="boolean")return U;if(typeof U=="string")return(0,t._)`${U}`}return(0,t._)`${T}${P}${(0,t.getProperty)(A)}`}e.schemaRefOrVal=u;function p(T){return E(decodeURIComponent(T))}e.unescapeFragment=p;function c(T){return encodeURIComponent(d(T))}e.escapeFragment=c;function d(T){return typeof T=="number"?`${T}`:T.replace(/~/g,"~0").replace(/\//g,"~1")}e.escapeJsonPointer=d;function E(T){return T.replace(/~1/g,"/").replace(/~0/g,"~")}e.unescapeJsonPointer=E;function f(T,P){if(Array.isArray(T))for(const U of T)P(U);else P(T)}e.eachItem=f;function h({mergeNames:T,mergeToName:P,mergeValues:U,resultToName:A}){return(x,B,K,z)=>{const k=K===void 0?B:K instanceof t.Name?(B instanceof t.Name?T(x,B,K):P(x,B,K),K):B instanceof t.Name?(P(x,K,B),B):U(B,K);return z===t.Name&&!(k instanceof t.Name)?A(x,k):k}}e.mergeEvaluated={props:h({mergeNames:(T,P,U)=>T.if((0,t._)`${U} !== true && ${P} !== undefined`,()=>{T.if((0,t._)`${P} === true`,()=>T.assign(U,!0),()=>T.assign(U,(0,t._)`${U} || {}`).code((0,t._)`Object.assign(${U}, ${P})`))}),mergeToName:(T,P,U)=>T.if((0,t._)`${U} !== true`,()=>{P===!0?T.assign(U,!0):(T.assign(U,(0,t._)`${U} || {}`),v(T,U,P))}),mergeValues:(T,P)=>T===!0?!0:{...T,...P},resultToName:y}),items:h({mergeNames:(T,P,U)=>T.if((0,t._)`${U} !== true && ${P} !== undefined`,()=>T.assign(U,(0,t._)`${P} === true ? true : ${U} > ${P} ? ${U} : ${P}`)),mergeToName:(T,P,U)=>T.if((0,t._)`${U} !== true`,()=>T.assign(U,P===!0?!0:(0,t._)`${U} > ${P} ? ${U} : ${P}`)),mergeValues:(T,P)=>T===!0?!0:Math.max(T,P),resultToName:(T,P)=>T.var("items",P)})};function y(T,P){if(P===!0)return T.var("props",!0);const U=T.var("props",(0,t._)`{}`);return P!==void 0&&v(T,U,P),U}e.evaluatedPropsToName=y;function v(T,P,U){Object.keys(U).forEach(A=>T.assign((0,t._)`${P}${(0,t.getProperty)(A)}`,!0))}e.setEvaluated=v;const l={};function $(T,P){return T.scopeValue("func",{ref:P,code:l[P.code]||(l[P.code]=new r._Code(P.code))})}e.useFunc=$;var S;(function(T){T[T.Num=0]="Num",T[T.Str=1]="Str"})(S=e.Type||(e.Type={}));function D(T,P,U){if(T instanceof t.Name){const A=P===S.Num;return U?A?(0,t._)`"[" + ${T} + "]"`:(0,t._)`"['" + ${T} + "']"`:A?(0,t._)`"/" + ${T}`:(0,t._)`"/" + ${T}.replace(/~/g, "~0").replace(/\\//g, "~1")`}return U?(0,t.getProperty)(T).toString():"/"+d(T)}e.getErrorPath=D;function V(T,P,U=T.opts.strictSchema){if(U){if(P=`strict mode: ${P}`,U===!0)throw new Error(P);T.self.logger.warn(P)}}e.checkStrictMode=V})(ue);var Ct={};Object.defineProperty(Ct,"__esModule",{value:!0});const Ue=re,Mh={data:new Ue.Name("data"),valCxt:new Ue.Name("valCxt"),instancePath:new Ue.Name("instancePath"),parentData:new Ue.Name("parentData"),parentDataProperty:new Ue.Name("parentDataProperty"),rootData:new Ue.Name("rootData"),dynamicAnchors:new Ue.Name("dynamicAnchors"),vErrors:new Ue.Name("vErrors"),errors:new Ue.Name("errors"),this:new Ue.Name("this"),self:new Ue.Name("self"),scope:new Ue.Name("scope"),json:new Ue.Name("json"),jsonPos:new Ue.Name("jsonPos"),jsonLen:new Ue.Name("jsonLen"),jsonPart:new Ue.Name("jsonPart")};Ct.default=Mh;(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.extendErrors=e.resetErrorsCount=e.reportExtraError=e.reportError=e.keyword$DataError=e.keywordError=void 0;const t=re,r=ue,n=Ct;e.keywordError={message:({keyword:v})=>(0,t.str)`must pass "${v}" keyword validation`},e.keyword$DataError={message:({keyword:v,schemaType:l})=>l?(0,t.str)`"${v}" keyword must be ${l} ($data)`:(0,t.str)`"${v}" keyword is invalid ($data)`};function i(v,l=e.keywordError,$,S){const{it:D}=v,{gen:V,compositeRule:T,allErrors:P}=D,U=d(v,l,$);S??(T||P)?u(V,U):p(D,(0,t._)`[${U}]`)}e.reportError=i;function s(v,l=e.keywordError,$){const{it:S}=v,{gen:D,compositeRule:V,allErrors:T}=S,P=d(v,l,$);u(D,P),V||T||p(S,n.default.vErrors)}e.reportExtraError=s;function o(v,l){v.assign(n.default.errors,l),v.if((0,t._)`${n.default.vErrors} !== null`,()=>v.if(l,()=>v.assign((0,t._)`${n.default.vErrors}.length`,l),()=>v.assign(n.default.vErrors,null)))}e.resetErrorsCount=o;function a({gen:v,keyword:l,schemaValue:$,data:S,errsCount:D,it:V}){if(D===void 0)throw new Error("ajv implementation error");const T=v.name("err");v.forRange("i",D,n.default.errors,P=>{v.const(T,(0,t._)`${n.default.vErrors}[${P}]`),v.if((0,t._)`${T}.instancePath === undefined`,()=>v.assign((0,t._)`${T}.instancePath`,(0,t.strConcat)(n.default.instancePath,V.errorPath))),v.assign((0,t._)`${T}.schemaPath`,(0,t.str)`${V.errSchemaPath}/${l}`),V.opts.verbose&&(v.assign((0,t._)`${T}.schema`,$),v.assign((0,t._)`${T}.data`,S))})}e.extendErrors=a;function u(v,l){const $=v.const("err",l);v.if((0,t._)`${n.default.vErrors} === null`,()=>v.assign(n.default.vErrors,(0,t._)`[${$}]`),(0,t._)`${n.default.vErrors}.push(${$})`),v.code((0,t._)`${n.default.errors}++`)}function p(v,l){const{gen:$,validateName:S,schemaEnv:D}=v;D.$async?$.throw((0,t._)`new ${v.ValidationError}(${l})`):($.assign((0,t._)`${S}.errors`,l),$.return(!1))}const c={keyword:new t.Name("keyword"),schemaPath:new t.Name("schemaPath"),params:new t.Name("params"),propertyName:new t.Name("propertyName"),message:new t.Name("message"),schema:new t.Name("schema"),parentSchema:new t.Name("parentSchema")};function d(v,l,$){const{createErrors:S}=v.it;return S===!1?(0,t._)`{}`:E(v,l,$)}function E(v,l,$={}){const{gen:S,it:D}=v,V=[f(D,$),h(v,$)];return y(v,l,V),S.object(...V)}function f({errorPath:v},{instancePath:l}){const $=l?(0,t.str)`${v}${(0,r.getErrorPath)(l,r.Type.Str)}`:v;return[n.default.instancePath,(0,t.strConcat)(n.default.instancePath,$)]}function h({keyword:v,it:{errSchemaPath:l}},{schemaPath:$,parentSchema:S}){let D=S?l:(0,t.str)`${l}/${v}`;return $&&(D=(0,t.str)`${D}${(0,r.getErrorPath)($,r.Type.Str)}`),[c.schemaPath,D]}function y(v,{params:l,message:$},S){const{keyword:D,data:V,schemaValue:T,it:P}=v,{opts:U,propertyName:A,topSchemaRef:x,schemaPath:B}=P;S.push([c.keyword,D],[c.params,typeof l=="function"?l(v):l||(0,t._)`{}`]),U.messages&&S.push([c.message,typeof $=="function"?$(v):$]),U.verbose&&S.push([c.schema,T],[c.parentSchema,(0,t._)`${x}${B}`],[n.default.data,V]),A&&S.push([c.propertyName,A])}})(gn);Object.defineProperty(Fr,"__esModule",{value:!0});Fr.boolOrEmptySchema=Fr.topBoolOrEmptySchema=void 0;const kh=gn,Uh=re,Vh=Ct,xh={message:"boolean schema is false"};function zh(e){const{gen:t,schema:r,validateName:n}=e;r===!1?uu(e,!1):typeof r=="object"&&r.$async===!0?t.return(Vh.default.data):(t.assign((0,Uh._)`${n}.errors`,null),t.return(!0))}Fr.topBoolOrEmptySchema=zh;function Gh(e,t){const{gen:r,schema:n}=e;n===!1?(r.var(t,!1),uu(e)):r.var(t,!0)}Fr.boolOrEmptySchema=Gh;function uu(e,t){const{gen:r,data:n}=e,i={gen:r,keyword:"false schema",data:n,schema:!1,schemaCode:!1,schemaValue:!1,params:{},it:e};(0,kh.reportError)(i,xh,void 0,t)}var $n={},cr={};Object.defineProperty(cr,"__esModule",{value:!0});cr.getRules=cr.isJSONType=void 0;const Hh=["string","number","integer","boolean","null","object","array"],qh=new Set(Hh);function Bh(e){return typeof e=="string"&&qh.has(e)}cr.isJSONType=Bh;function Kh(){const e={number:{type:"number",rules:[]},string:{type:"string",rules:[]},array:{type:"array",rules:[]},object:{type:"object",rules:[]}};return{types:{...e,integer:!0,boolean:!0,null:!0},rules:[{rules:[]},e.number,e.string,e.array,e.object],post:{rules:[]},all:{},keywords:{}}}cr.getRules=Kh;var Lt={};Object.defineProperty(Lt,"__esModule",{value:!0});Lt.shouldUseRule=Lt.shouldUseGroup=Lt.schemaHasRulesForType=void 0;function Wh({schema:e,self:t},r){const n=t.RULES.types[r];return n&&n!==!0&&fu(e,n)}Lt.schemaHasRulesForType=Wh;function fu(e,t){return t.rules.some(r=>lu(e,r))}Lt.shouldUseGroup=fu;function lu(e,t){var r;return e[t.keyword]!==void 0||((r=t.definition.implements)===null||r===void 0?void 0:r.some(n=>e[n]!==void 0))}Lt.shouldUseRule=lu;(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.reportTypeError=e.checkDataTypes=e.checkDataType=e.coerceAndCheckDataType=e.getJSONTypes=e.getSchemaTypes=e.DataType=void 0;const t=cr,r=Lt,n=gn,i=re,s=ue;var o;(function(S){S[S.Correct=0]="Correct",S[S.Wrong=1]="Wrong"})(o=e.DataType||(e.DataType={}));function a(S){const D=u(S.type);if(D.includes("null")){if(S.nullable===!1)throw new Error("type: null contradicts nullable: false")}else{if(!D.length&&S.nullable!==void 0)throw new Error('"nullable" cannot be used without "type"');S.nullable===!0&&D.push("null")}return D}e.getSchemaTypes=a;function u(S){const D=Array.isArray(S)?S:S?[S]:[];if(D.every(t.isJSONType))return D;throw new Error("type must be JSONType or JSONType[]: "+D.join(","))}e.getJSONTypes=u;function p(S,D){const{gen:V,data:T,opts:P}=S,U=d(D,P.coerceTypes),A=D.length>0&&!(U.length===0&&D.length===1&&(0,r.schemaHasRulesForType)(S,D[0]));if(A){const x=y(D,T,P.strictNumbers,o.Wrong);V.if(x,()=>{U.length?E(S,D,U):l(S)})}return A}e.coerceAndCheckDataType=p;const c=new Set(["string","number","integer","boolean","null"]);function d(S,D){return D?S.filter(V=>c.has(V)||D==="array"&&V==="array"):[]}function E(S,D,V){const{gen:T,data:P,opts:U}=S,A=T.let("dataType",(0,i._)`typeof ${P}`),x=T.let("coerced",(0,i._)`undefined`);U.coerceTypes==="array"&&T.if((0,i._)`${A} == 'object' && Array.isArray(${P}) && ${P}.length == 1`,()=>T.assign(P,(0,i._)`${P}[0]`).assign(A,(0,i._)`typeof ${P}`).if(y(D,P,U.strictNumbers),()=>T.assign(x,P))),T.if((0,i._)`${x} !== undefined`);for(const K of V)(c.has(K)||K==="array"&&U.coerceTypes==="array")&&B(K);T.else(),l(S),T.endIf(),T.if((0,i._)`${x} !== undefined`,()=>{T.assign(P,x),f(S,x)});function B(K){switch(K){case"string":T.elseIf((0,i._)`${A} == "number" || ${A} == "boolean"`).assign(x,(0,i._)`"" + ${P}`).elseIf((0,i._)`${P} === null`).assign(x,(0,i._)`""`);return;case"number":T.elseIf((0,i._)`${A} == "boolean" || ${P} === null
9
- || (${A} == "string" && ${P} && ${P} == +${P})`).assign(x,(0,i._)`+${P}`);return;case"integer":T.elseIf((0,i._)`${A} === "boolean" || ${P} === null
10
- || (${A} === "string" && ${P} && ${P} == +${P} && !(${P} % 1))`).assign(x,(0,i._)`+${P}`);return;case"boolean":T.elseIf((0,i._)`${P} === "false" || ${P} === 0 || ${P} === null`).assign(x,!1).elseIf((0,i._)`${P} === "true" || ${P} === 1`).assign(x,!0);return;case"null":T.elseIf((0,i._)`${P} === "" || ${P} === 0 || ${P} === false`),T.assign(x,null);return;case"array":T.elseIf((0,i._)`${A} === "string" || ${A} === "number"
11
- || ${A} === "boolean" || ${P} === null`).assign(x,(0,i._)`[${P}]`)}}}function f({gen:S,parentData:D,parentDataProperty:V},T){S.if((0,i._)`${D} !== undefined`,()=>S.assign((0,i._)`${D}[${V}]`,T))}function h(S,D,V,T=o.Correct){const P=T===o.Correct?i.operators.EQ:i.operators.NEQ;let U;switch(S){case"null":return(0,i._)`${D} ${P} null`;case"array":U=(0,i._)`Array.isArray(${D})`;break;case"object":U=(0,i._)`${D} && typeof ${D} == "object" && !Array.isArray(${D})`;break;case"integer":U=A((0,i._)`!(${D} % 1) && !isNaN(${D})`);break;case"number":U=A();break;default:return(0,i._)`typeof ${D} ${P} ${S}`}return T===o.Correct?U:(0,i.not)(U);function A(x=i.nil){return(0,i.and)((0,i._)`typeof ${D} == "number"`,x,V?(0,i._)`isFinite(${D})`:i.nil)}}e.checkDataType=h;function y(S,D,V,T){if(S.length===1)return h(S[0],D,V,T);let P;const U=(0,s.toHash)(S);if(U.array&&U.object){const A=(0,i._)`typeof ${D} != "object"`;P=U.null?A:(0,i._)`!${D} || ${A}`,delete U.null,delete U.array,delete U.object}else P=i.nil;U.number&&delete U.integer;for(const A in U)P=(0,i.and)(P,h(A,D,V,T));return P}e.checkDataTypes=y;const v={message:({schema:S})=>`must be ${S}`,params:({schema:S,schemaValue:D})=>typeof S=="string"?(0,i._)`{type: ${S}}`:(0,i._)`{type: ${D}}`};function l(S){const D=$(S);(0,n.reportError)(D,v)}e.reportTypeError=l;function $(S){const{gen:D,data:V,schema:T}=S,P=(0,s.schemaRefOrVal)(S,T,"type");return{gen:D,keyword:"type",data:V,schema:T.type,schemaCode:P,schemaValue:P,parentSchema:T,params:{},it:S}}})($n);var hi={};Object.defineProperty(hi,"__esModule",{value:!0});hi.assignDefaults=void 0;const _r=re,Zh=ue;function Xh(e,t){const{properties:r,items:n}=e.schema;if(t==="object"&&r)for(const i in r)ra(e,i,r[i].default);else t==="array"&&Array.isArray(n)&&n.forEach((i,s)=>ra(e,s,i.default))}hi.assignDefaults=Xh;function ra(e,t,r){const{gen:n,compositeRule:i,data:s,opts:o}=e;if(r===void 0)return;const a=(0,_r._)`${s}${(0,_r.getProperty)(t)}`;if(i){(0,Zh.checkStrictMode)(e,`default is ignored for: ${a}`);return}let u=(0,_r._)`${a} === undefined`;o.useDefaults==="empty"&&(u=(0,_r._)`${u} || ${a} === null || ${a} === ""`),n.if(u,(0,_r._)`${a} = ${(0,_r.stringify)(r)}`)}var Dt={},ne={};Object.defineProperty(ne,"__esModule",{value:!0});ne.validateUnion=ne.validateArray=ne.usePattern=ne.callValidateCode=ne.schemaProperties=ne.allSchemaProperties=ne.noPropertyInData=ne.propertyInData=ne.isOwnProperty=ne.hasPropFunc=ne.reportMissingProp=ne.checkMissingProp=ne.checkReportMissingProp=void 0;const ve=re,Rs=ue,kt=Ct,Jh=ue;function Yh(e,t){const{gen:r,data:n,it:i}=e;r.if(Ps(r,n,t,i.opts.ownProperties),()=>{e.setParams({missingProperty:(0,ve._)`${t}`},!0),e.error()})}ne.checkReportMissingProp=Yh;function Qh({gen:e,data:t,it:{opts:r}},n,i){return(0,ve.or)(...n.map(s=>(0,ve.and)(Ps(e,t,s,r.ownProperties),(0,ve._)`${i} = ${s}`)))}ne.checkMissingProp=Qh;function em(e,t){e.setParams({missingProperty:t},!0),e.error()}ne.reportMissingProp=em;function du(e){return e.scopeValue("func",{ref:Object.prototype.hasOwnProperty,code:(0,ve._)`Object.prototype.hasOwnProperty`})}ne.hasPropFunc=du;function Cs(e,t,r){return(0,ve._)`${du(e)}.call(${t}, ${r})`}ne.isOwnProperty=Cs;function tm(e,t,r,n){const i=(0,ve._)`${t}${(0,ve.getProperty)(r)} !== undefined`;return n?(0,ve._)`${i} && ${Cs(e,t,r)}`:i}ne.propertyInData=tm;function Ps(e,t,r,n){const i=(0,ve._)`${t}${(0,ve.getProperty)(r)} === undefined`;return n?(0,ve.or)(i,(0,ve.not)(Cs(e,t,r))):i}ne.noPropertyInData=Ps;function hu(e){return e?Object.keys(e).filter(t=>t!=="__proto__"):[]}ne.allSchemaProperties=hu;function rm(e,t){return hu(t).filter(r=>!(0,Rs.alwaysValidSchema)(e,t[r]))}ne.schemaProperties=rm;function nm({schemaCode:e,data:t,it:{gen:r,topSchemaRef:n,schemaPath:i,errorPath:s},it:o},a,u,p){const c=p?(0,ve._)`${e}, ${t}, ${n}${i}`:t,d=[[kt.default.instancePath,(0,ve.strConcat)(kt.default.instancePath,s)],[kt.default.parentData,o.parentData],[kt.default.parentDataProperty,o.parentDataProperty],[kt.default.rootData,kt.default.rootData]];o.opts.dynamicRef&&d.push([kt.default.dynamicAnchors,kt.default.dynamicAnchors]);const E=(0,ve._)`${c}, ${r.object(...d)}`;return u!==ve.nil?(0,ve._)`${a}.call(${u}, ${E})`:(0,ve._)`${a}(${E})`}ne.callValidateCode=nm;const im=(0,ve._)`new RegExp`;function sm({gen:e,it:{opts:t}},r){const n=t.unicodeRegExp?"u":"",{regExp:i}=t.code,s=i(r,n);return e.scopeValue("pattern",{key:s.toString(),ref:s,code:(0,ve._)`${i.code==="new RegExp"?im:(0,Jh.useFunc)(e,i)}(${r}, ${n})`})}ne.usePattern=sm;function om(e){const{gen:t,data:r,keyword:n,it:i}=e,s=t.name("valid");if(i.allErrors){const a=t.let("valid",!0);return o(()=>t.assign(a,!1)),a}return t.var(s,!0),o(()=>t.break()),s;function o(a){const u=t.const("len",(0,ve._)`${r}.length`);t.forRange("i",0,u,p=>{e.subschema({keyword:n,dataProp:p,dataPropType:Rs.Type.Num},s),t.if((0,ve.not)(s),a)})}}ne.validateArray=om;function am(e){const{gen:t,schema:r,keyword:n,it:i}=e;if(!Array.isArray(r))throw new Error("ajv implementation error");if(r.some(u=>(0,Rs.alwaysValidSchema)(i,u))&&!i.opts.unevaluated)return;const o=t.let("valid",!1),a=t.name("_valid");t.block(()=>r.forEach((u,p)=>{const c=e.subschema({keyword:n,schemaProp:p,compositeRule:!0},a);t.assign(o,(0,ve._)`${o} || ${a}`),e.mergeValidEvaluated(c,a)||t.if((0,ve.not)(o))})),e.result(o,()=>e.reset(),()=>e.error(!0))}ne.validateUnion=am;Object.defineProperty(Dt,"__esModule",{value:!0});Dt.validateKeywordUsage=Dt.validSchemaType=Dt.funcKeywordCode=Dt.macroKeywordCode=void 0;const Ge=re,rr=Ct,cm=ne,um=gn;function fm(e,t){const{gen:r,keyword:n,schema:i,parentSchema:s,it:o}=e,a=t.macro.call(o.self,i,s,o),u=mu(r,n,a);o.opts.validateSchema!==!1&&o.self.validateSchema(a,!0);const p=r.name("valid");e.subschema({schema:a,schemaPath:Ge.nil,errSchemaPath:`${o.errSchemaPath}/${n}`,topSchemaRef:u,compositeRule:!0},p),e.pass(p,()=>e.error(!0))}Dt.macroKeywordCode=fm;function lm(e,t){var r;const{gen:n,keyword:i,schema:s,parentSchema:o,$data:a,it:u}=e;hm(u,t);const p=!a&&t.compile?t.compile.call(u.self,s,o,u):t.validate,c=mu(n,i,p),d=n.let("valid");e.block$data(d,E),e.ok((r=t.valid)!==null&&r!==void 0?r:d);function E(){if(t.errors===!1)y(),t.modifying&&na(e),v(()=>e.error());else{const l=t.async?f():h();t.modifying&&na(e),v(()=>dm(e,l))}}function f(){const l=n.let("ruleErrs",null);return n.try(()=>y((0,Ge._)`await `),$=>n.assign(d,!1).if((0,Ge._)`${$} instanceof ${u.ValidationError}`,()=>n.assign(l,(0,Ge._)`${$}.errors`),()=>n.throw($))),l}function h(){const l=(0,Ge._)`${c}.errors`;return n.assign(l,null),y(Ge.nil),l}function y(l=t.async?(0,Ge._)`await `:Ge.nil){const $=u.opts.passContext?rr.default.this:rr.default.self,S=!("compile"in t&&!a||t.schema===!1);n.assign(d,(0,Ge._)`${l}${(0,cm.callValidateCode)(e,c,$,S)}`,t.modifying)}function v(l){var $;n.if((0,Ge.not)(($=t.valid)!==null&&$!==void 0?$:d),l)}}Dt.funcKeywordCode=lm;function na(e){const{gen:t,data:r,it:n}=e;t.if(n.parentData,()=>t.assign(r,(0,Ge._)`${n.parentData}[${n.parentDataProperty}]`))}function dm(e,t){const{gen:r}=e;r.if((0,Ge._)`Array.isArray(${t})`,()=>{r.assign(rr.default.vErrors,(0,Ge._)`${rr.default.vErrors} === null ? ${t} : ${rr.default.vErrors}.concat(${t})`).assign(rr.default.errors,(0,Ge._)`${rr.default.vErrors}.length`),(0,um.extendErrors)(e)},()=>e.error())}function hm({schemaEnv:e},t){if(t.async&&!e.$async)throw new Error("async keyword in sync schema")}function mu(e,t,r){if(r===void 0)throw new Error(`keyword "${t}" failed to compile`);return e.scopeValue("keyword",typeof r=="function"?{ref:r}:{ref:r,code:(0,Ge.stringify)(r)})}function mm(e,t,r=!1){return!t.length||t.some(n=>n==="array"?Array.isArray(e):n==="object"?e&&typeof e=="object"&&!Array.isArray(e):typeof e==n||r&&typeof e>"u")}Dt.validSchemaType=mm;function pm({schema:e,opts:t,self:r,errSchemaPath:n},i,s){if(Array.isArray(i.keyword)?!i.keyword.includes(s):i.keyword!==s)throw new Error("ajv implementation error");const o=i.dependencies;if(o?.some(a=>!Object.prototype.hasOwnProperty.call(e,a)))throw new Error(`parent schema must have dependencies of ${s}: ${o.join(",")}`);if(i.validateSchema&&!i.validateSchema(e[s])){const u=`keyword "${s}" value is invalid at path "${n}": `+r.errorsText(i.validateSchema.errors);if(t.validateSchema==="log")r.logger.error(u);else throw new Error(u)}}Dt.validateKeywordUsage=pm;var Wt={};Object.defineProperty(Wt,"__esModule",{value:!0});Wt.extendSubschemaMode=Wt.extendSubschemaData=Wt.getSubschema=void 0;const Ot=re,pu=ue;function ym(e,{keyword:t,schemaProp:r,schema:n,schemaPath:i,errSchemaPath:s,topSchemaRef:o}){if(t!==void 0&&n!==void 0)throw new Error('both "keyword" and "schema" passed, only one allowed');if(t!==void 0){const a=e.schema[t];return r===void 0?{schema:a,schemaPath:(0,Ot._)`${e.schemaPath}${(0,Ot.getProperty)(t)}`,errSchemaPath:`${e.errSchemaPath}/${t}`}:{schema:a[r],schemaPath:(0,Ot._)`${e.schemaPath}${(0,Ot.getProperty)(t)}${(0,Ot.getProperty)(r)}`,errSchemaPath:`${e.errSchemaPath}/${t}/${(0,pu.escapeFragment)(r)}`}}if(n!==void 0){if(i===void 0||s===void 0||o===void 0)throw new Error('"schemaPath", "errSchemaPath" and "topSchemaRef" are required with "schema"');return{schema:n,schemaPath:i,topSchemaRef:o,errSchemaPath:s}}throw new Error('either "keyword" or "schema" must be passed')}Wt.getSubschema=ym;function vm(e,t,{dataProp:r,dataPropType:n,data:i,dataTypes:s,propertyName:o}){if(i!==void 0&&r!==void 0)throw new Error('both "data" and "dataProp" passed, only one allowed');const{gen:a}=t;if(r!==void 0){const{errorPath:p,dataPathArr:c,opts:d}=t,E=a.let("data",(0,Ot._)`${t.data}${(0,Ot.getProperty)(r)}`,!0);u(E),e.errorPath=(0,Ot.str)`${p}${(0,pu.getErrorPath)(r,n,d.jsPropertySyntax)}`,e.parentDataProperty=(0,Ot._)`${r}`,e.dataPathArr=[...c,e.parentDataProperty]}if(i!==void 0){const p=i instanceof Ot.Name?i:a.let("data",i,!0);u(p),o!==void 0&&(e.propertyName=o)}s&&(e.dataTypes=s);function u(p){e.data=p,e.dataLevel=t.dataLevel+1,e.dataTypes=[],t.definedProperties=new Set,e.parentData=t.data,e.dataNames=[...t.dataNames,p]}}Wt.extendSubschemaData=vm;function Em(e,{jtdDiscriminator:t,jtdMetadata:r,compositeRule:n,createErrors:i,allErrors:s}){n!==void 0&&(e.compositeRule=n),i!==void 0&&(e.createErrors=i),s!==void 0&&(e.allErrors=s),e.jtdDiscriminator=t,e.jtdMetadata=r}Wt.extendSubschemaMode=Em;var je={},yu=function e(t,r){if(t===r)return!0;if(t&&r&&typeof t=="object"&&typeof r=="object"){if(t.constructor!==r.constructor)return!1;var n,i,s;if(Array.isArray(t)){if(n=t.length,n!=r.length)return!1;for(i=n;i--!==0;)if(!e(t[i],r[i]))return!1;return!0}if(t.constructor===RegExp)return t.source===r.source&&t.flags===r.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===r.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===r.toString();if(s=Object.keys(t),n=s.length,n!==Object.keys(r).length)return!1;for(i=n;i--!==0;)if(!Object.prototype.hasOwnProperty.call(r,s[i]))return!1;for(i=n;i--!==0;){var o=s[i];if(!e(t[o],r[o]))return!1}return!0}return t!==t&&r!==r},vu={exports:{}},Kt=vu.exports=function(e,t,r){typeof t=="function"&&(r=t,t={}),r=t.cb||r;var n=typeof r=="function"?r:r.pre||function(){},i=r.post||function(){};Bn(t,n,i,e,"",e)};Kt.keywords={additionalItems:!0,items:!0,contains:!0,additionalProperties:!0,propertyNames:!0,not:!0,if:!0,then:!0,else:!0};Kt.arrayKeywords={items:!0,allOf:!0,anyOf:!0,oneOf:!0};Kt.propsKeywords={$defs:!0,definitions:!0,properties:!0,patternProperties:!0,dependencies:!0};Kt.skipKeywords={default:!0,enum:!0,const:!0,required:!0,maximum:!0,minimum:!0,exclusiveMaximum:!0,exclusiveMinimum:!0,multipleOf:!0,maxLength:!0,minLength:!0,pattern:!0,format:!0,maxItems:!0,minItems:!0,uniqueItems:!0,maxProperties:!0,minProperties:!0};function Bn(e,t,r,n,i,s,o,a,u,p){if(n&&typeof n=="object"&&!Array.isArray(n)){t(n,i,s,o,a,u,p);for(var c in n){var d=n[c];if(Array.isArray(d)){if(c in Kt.arrayKeywords)for(var E=0;E<d.length;E++)Bn(e,t,r,d[E],i+"/"+c+"/"+E,s,i,c,n,E)}else if(c in Kt.propsKeywords){if(d&&typeof d=="object")for(var f in d)Bn(e,t,r,d[f],i+"/"+c+"/"+gm(f),s,i,c,n,f)}else(c in Kt.keywords||e.allKeys&&!(c in Kt.skipKeywords))&&Bn(e,t,r,d,i+"/"+c,s,i,c,n)}r(n,i,s,o,a,u,p)}}function gm(e){return e.replace(/~/g,"~0").replace(/\//g,"~1")}var $m=vu.exports;Object.defineProperty(je,"__esModule",{value:!0});je.getSchemaRefs=je.resolveUrl=je.normalizeId=je._getFullPath=je.getFullPath=je.inlineRef=void 0;const _m=ue,Sm=yu,wm=$m,Nm=new Set(["type","format","pattern","maxLength","minLength","maxProperties","minProperties","maxItems","minItems","maximum","minimum","uniqueItems","multipleOf","required","enum","const"]);function Im(e,t=!0){return typeof e=="boolean"?!0:t===!0?!es(e):t?Eu(e)<=t:!1}je.inlineRef=Im;const Om=new Set(["$ref","$recursiveRef","$recursiveAnchor","$dynamicRef","$dynamicAnchor"]);function es(e){for(const t in e){if(Om.has(t))return!0;const r=e[t];if(Array.isArray(r)&&r.some(es)||typeof r=="object"&&es(r))return!0}return!1}function Eu(e){let t=0;for(const r in e){if(r==="$ref")return 1/0;if(t++,!Nm.has(r)&&(typeof e[r]=="object"&&(0,_m.eachItem)(e[r],n=>t+=Eu(n)),t===1/0))return 1/0}return t}function gu(e,t="",r){r!==!1&&(t=Rr(t));const n=e.parse(t);return $u(e,n)}je.getFullPath=gu;function $u(e,t){return e.serialize(t).split("#")[0]+"#"}je._getFullPath=$u;const Tm=/#\/?$/;function Rr(e){return e?e.replace(Tm,""):""}je.normalizeId=Rr;function Dm(e,t,r){return r=Rr(r),e.resolve(t,r)}je.resolveUrl=Dm;const Rm=/^[a-z_][-a-z0-9._]*$/i;function Cm(e,t){if(typeof e=="boolean")return{};const{schemaId:r,uriResolver:n}=this.opts,i=Rr(e[r]||t),s={"":i},o=gu(n,i,!1),a={},u=new Set;return wm(e,{allKeys:!0},(d,E,f,h)=>{if(h===void 0)return;const y=o+E;let v=s[h];typeof d[r]=="string"&&(v=l.call(this,d[r])),$.call(this,d.$anchor),$.call(this,d.$dynamicAnchor),s[E]=v;function l(S){const D=this.opts.uriResolver.resolve;if(S=Rr(v?D(v,S):S),u.has(S))throw c(S);u.add(S);let V=this.refs[S];return typeof V=="string"&&(V=this.refs[V]),typeof V=="object"?p(d,V.schema,S):S!==Rr(y)&&(S[0]==="#"?(p(d,a[S],S),a[S]=d):this.refs[S]=y),S}function $(S){if(typeof S=="string"){if(!Rm.test(S))throw new Error(`invalid anchor "${S}"`);l.call(this,`#${S}`)}}}),a;function p(d,E,f){if(E!==void 0&&!Sm(d,E))throw c(f)}function c(d){return new Error(`reference "${d}" resolves to more than one schema`)}}je.getSchemaRefs=Cm;Object.defineProperty(pt,"__esModule",{value:!0});pt.getData=pt.KeywordCxt=pt.validateFunctionCode=void 0;const _u=Fr,ia=$n,As=Lt,Qn=$n,Pm=hi,on=Dt,Pi=Wt,J=re,ee=Ct,Am=je,Ft=ue,Jr=gn;function bm(e){if(Nu(e)&&(Iu(e),wu(e))){jm(e);return}Su(e,()=>(0,_u.topBoolOrEmptySchema)(e))}pt.validateFunctionCode=bm;function Su({gen:e,validateName:t,schema:r,schemaEnv:n,opts:i},s){i.code.es5?e.func(t,(0,J._)`${ee.default.data}, ${ee.default.valCxt}`,n.$async,()=>{e.code((0,J._)`"use strict"; ${sa(r,i)}`),Fm(e,i),e.code(s)}):e.func(t,(0,J._)`${ee.default.data}, ${Lm(i)}`,n.$async,()=>e.code(sa(r,i)).code(s))}function Lm(e){return(0,J._)`{${ee.default.instancePath}="", ${ee.default.parentData}, ${ee.default.parentDataProperty}, ${ee.default.rootData}=${ee.default.data}${e.dynamicRef?(0,J._)`, ${ee.default.dynamicAnchors}={}`:J.nil}}={}`}function Fm(e,t){e.if(ee.default.valCxt,()=>{e.var(ee.default.instancePath,(0,J._)`${ee.default.valCxt}.${ee.default.instancePath}`),e.var(ee.default.parentData,(0,J._)`${ee.default.valCxt}.${ee.default.parentData}`),e.var(ee.default.parentDataProperty,(0,J._)`${ee.default.valCxt}.${ee.default.parentDataProperty}`),e.var(ee.default.rootData,(0,J._)`${ee.default.valCxt}.${ee.default.rootData}`),t.dynamicRef&&e.var(ee.default.dynamicAnchors,(0,J._)`${ee.default.valCxt}.${ee.default.dynamicAnchors}`)},()=>{e.var(ee.default.instancePath,(0,J._)`""`),e.var(ee.default.parentData,(0,J._)`undefined`),e.var(ee.default.parentDataProperty,(0,J._)`undefined`),e.var(ee.default.rootData,ee.default.data),t.dynamicRef&&e.var(ee.default.dynamicAnchors,(0,J._)`{}`)})}function jm(e){const{schema:t,opts:r,gen:n}=e;Su(e,()=>{r.$comment&&t.$comment&&Tu(e),xm(e),n.let(ee.default.vErrors,null),n.let(ee.default.errors,0),r.unevaluated&&Mm(e),Ou(e),Hm(e)})}function Mm(e){const{gen:t,validateName:r}=e;e.evaluated=t.const("evaluated",(0,J._)`${r}.evaluated`),t.if((0,J._)`${e.evaluated}.dynamicProps`,()=>t.assign((0,J._)`${e.evaluated}.props`,(0,J._)`undefined`)),t.if((0,J._)`${e.evaluated}.dynamicItems`,()=>t.assign((0,J._)`${e.evaluated}.items`,(0,J._)`undefined`))}function sa(e,t){const r=typeof e=="object"&&e[t.schemaId];return r&&(t.code.source||t.code.process)?(0,J._)`/*# sourceURL=${r} */`:J.nil}function km(e,t){if(Nu(e)&&(Iu(e),wu(e))){Um(e,t);return}(0,_u.boolOrEmptySchema)(e,t)}function wu({schema:e,self:t}){if(typeof e=="boolean")return!e;for(const r in e)if(t.RULES.all[r])return!0;return!1}function Nu(e){return typeof e.schema!="boolean"}function Um(e,t){const{schema:r,gen:n,opts:i}=e;i.$comment&&r.$comment&&Tu(e),zm(e),Gm(e);const s=n.const("_errs",ee.default.errors);Ou(e,s),n.var(t,(0,J._)`${s} === ${ee.default.errors}`)}function Iu(e){(0,Ft.checkUnknownRules)(e),Vm(e)}function Ou(e,t){if(e.opts.jtd)return oa(e,[],!1,t);const r=(0,ia.getSchemaTypes)(e.schema),n=(0,ia.coerceAndCheckDataType)(e,r);oa(e,r,!n,t)}function Vm(e){const{schema:t,errSchemaPath:r,opts:n,self:i}=e;t.$ref&&n.ignoreKeywordsWithRef&&(0,Ft.schemaHasRulesButRef)(t,i.RULES)&&i.logger.warn(`$ref: keywords ignored in schema at path "${r}"`)}function xm(e){const{schema:t,opts:r}=e;t.default!==void 0&&r.useDefaults&&r.strictSchema&&(0,Ft.checkStrictMode)(e,"default is ignored in the schema root")}function zm(e){const t=e.schema[e.opts.schemaId];t&&(e.baseId=(0,Am.resolveUrl)(e.opts.uriResolver,e.baseId,t))}function Gm(e){if(e.schema.$async&&!e.schemaEnv.$async)throw new Error("async schema in sync schema")}function Tu({gen:e,schemaEnv:t,schema:r,errSchemaPath:n,opts:i}){const s=r.$comment;if(i.$comment===!0)e.code((0,J._)`${ee.default.self}.logger.log(${s})`);else if(typeof i.$comment=="function"){const o=(0,J.str)`${n}/$comment`,a=e.scopeValue("root",{ref:t.root});e.code((0,J._)`${ee.default.self}.opts.$comment(${s}, ${o}, ${a}.schema)`)}}function Hm(e){const{gen:t,schemaEnv:r,validateName:n,ValidationError:i,opts:s}=e;r.$async?t.if((0,J._)`${ee.default.errors} === 0`,()=>t.return(ee.default.data),()=>t.throw((0,J._)`new ${i}(${ee.default.vErrors})`)):(t.assign((0,J._)`${n}.errors`,ee.default.vErrors),s.unevaluated&&qm(e),t.return((0,J._)`${ee.default.errors} === 0`))}function qm({gen:e,evaluated:t,props:r,items:n}){r instanceof J.Name&&e.assign((0,J._)`${t}.props`,r),n instanceof J.Name&&e.assign((0,J._)`${t}.items`,n)}function oa(e,t,r,n){const{gen:i,schema:s,data:o,allErrors:a,opts:u,self:p}=e,{RULES:c}=p;if(s.$ref&&(u.ignoreKeywordsWithRef||!(0,Ft.schemaHasRulesButRef)(s,c))){i.block(()=>Cu(e,"$ref",c.all.$ref.definition));return}u.jtd||Bm(e,t),i.block(()=>{for(const E of c.rules)d(E);d(c.post)});function d(E){(0,As.shouldUseGroup)(s,E)&&(E.type?(i.if((0,Qn.checkDataType)(E.type,o,u.strictNumbers)),aa(e,E),t.length===1&&t[0]===E.type&&r&&(i.else(),(0,Qn.reportTypeError)(e)),i.endIf()):aa(e,E),a||i.if((0,J._)`${ee.default.errors} === ${n||0}`))}}function aa(e,t){const{gen:r,schema:n,opts:{useDefaults:i}}=e;i&&(0,Pm.assignDefaults)(e,t.type),r.block(()=>{for(const s of t.rules)(0,As.shouldUseRule)(n,s)&&Cu(e,s.keyword,s.definition,t.type)})}function Bm(e,t){e.schemaEnv.meta||!e.opts.strictTypes||(Km(e,t),e.opts.allowUnionTypes||Wm(e,t),Zm(e,e.dataTypes))}function Km(e,t){if(t.length){if(!e.dataTypes.length){e.dataTypes=t;return}t.forEach(r=>{Du(e.dataTypes,r)||bs(e,`type "${r}" not allowed by context "${e.dataTypes.join(",")}"`)}),Jm(e,t)}}function Wm(e,t){t.length>1&&!(t.length===2&&t.includes("null"))&&bs(e,"use allowUnionTypes to allow union type keyword")}function Zm(e,t){const r=e.self.RULES.all;for(const n in r){const i=r[n];if(typeof i=="object"&&(0,As.shouldUseRule)(e.schema,i)){const{type:s}=i.definition;s.length&&!s.some(o=>Xm(t,o))&&bs(e,`missing type "${s.join(",")}" for keyword "${n}"`)}}}function Xm(e,t){return e.includes(t)||t==="number"&&e.includes("integer")}function Du(e,t){return e.includes(t)||t==="integer"&&e.includes("number")}function Jm(e,t){const r=[];for(const n of e.dataTypes)Du(t,n)?r.push(n):t.includes("integer")&&n==="number"&&r.push("integer");e.dataTypes=r}function bs(e,t){const r=e.schemaEnv.baseId+e.errSchemaPath;t+=` at "${r}" (strictTypes)`,(0,Ft.checkStrictMode)(e,t,e.opts.strictTypes)}class Ru{constructor(t,r,n){if((0,on.validateKeywordUsage)(t,r,n),this.gen=t.gen,this.allErrors=t.allErrors,this.keyword=n,this.data=t.data,this.schema=t.schema[n],this.$data=r.$data&&t.opts.$data&&this.schema&&this.schema.$data,this.schemaValue=(0,Ft.schemaRefOrVal)(t,this.schema,n,this.$data),this.schemaType=r.schemaType,this.parentSchema=t.schema,this.params={},this.it=t,this.def=r,this.$data)this.schemaCode=t.gen.const("vSchema",Pu(this.$data,t));else if(this.schemaCode=this.schemaValue,!(0,on.validSchemaType)(this.schema,r.schemaType,r.allowUndefined))throw new Error(`${n} value must be ${JSON.stringify(r.schemaType)}`);("code"in r?r.trackErrors:r.errors!==!1)&&(this.errsCount=t.gen.const("_errs",ee.default.errors))}result(t,r,n){this.failResult((0,J.not)(t),r,n)}failResult(t,r,n){this.gen.if(t),n?n():this.error(),r?(this.gen.else(),r(),this.allErrors&&this.gen.endIf()):this.allErrors?this.gen.endIf():this.gen.else()}pass(t,r){this.failResult((0,J.not)(t),void 0,r)}fail(t){if(t===void 0){this.error(),this.allErrors||this.gen.if(!1);return}this.gen.if(t),this.error(),this.allErrors?this.gen.endIf():this.gen.else()}fail$data(t){if(!this.$data)return this.fail(t);const{schemaCode:r}=this;this.fail((0,J._)`${r} !== undefined && (${(0,J.or)(this.invalid$data(),t)})`)}error(t,r,n){if(r){this.setParams(r),this._error(t,n),this.setParams({});return}this._error(t,n)}_error(t,r){(t?Jr.reportExtraError:Jr.reportError)(this,this.def.error,r)}$dataError(){(0,Jr.reportError)(this,this.def.$dataError||Jr.keyword$DataError)}reset(){if(this.errsCount===void 0)throw new Error('add "trackErrors" to keyword definition');(0,Jr.resetErrorsCount)(this.gen,this.errsCount)}ok(t){this.allErrors||this.gen.if(t)}setParams(t,r){r?Object.assign(this.params,t):this.params=t}block$data(t,r,n=J.nil){this.gen.block(()=>{this.check$data(t,n),r()})}check$data(t=J.nil,r=J.nil){if(!this.$data)return;const{gen:n,schemaCode:i,schemaType:s,def:o}=this;n.if((0,J.or)((0,J._)`${i} === undefined`,r)),t!==J.nil&&n.assign(t,!0),(s.length||o.validateSchema)&&(n.elseIf(this.invalid$data()),this.$dataError(),t!==J.nil&&n.assign(t,!1)),n.else()}invalid$data(){const{gen:t,schemaCode:r,schemaType:n,def:i,it:s}=this;return(0,J.or)(o(),a());function o(){if(n.length){if(!(r instanceof J.Name))throw new Error("ajv implementation error");const u=Array.isArray(n)?n:[n];return(0,J._)`${(0,Qn.checkDataTypes)(u,r,s.opts.strictNumbers,Qn.DataType.Wrong)}`}return J.nil}function a(){if(i.validateSchema){const u=t.scopeValue("validate$data",{ref:i.validateSchema});return(0,J._)`!${u}(${r})`}return J.nil}}subschema(t,r){const n=(0,Pi.getSubschema)(this.it,t);(0,Pi.extendSubschemaData)(n,this.it,t),(0,Pi.extendSubschemaMode)(n,t);const i={...this.it,...n,items:void 0,props:void 0};return km(i,r),i}mergeEvaluated(t,r){const{it:n,gen:i}=this;n.opts.unevaluated&&(n.props!==!0&&t.props!==void 0&&(n.props=Ft.mergeEvaluated.props(i,t.props,n.props,r)),n.items!==!0&&t.items!==void 0&&(n.items=Ft.mergeEvaluated.items(i,t.items,n.items,r)))}mergeValidEvaluated(t,r){const{it:n,gen:i}=this;if(n.opts.unevaluated&&(n.props!==!0||n.items!==!0))return i.if(r,()=>this.mergeEvaluated(t,J.Name)),!0}}pt.KeywordCxt=Ru;function Cu(e,t,r,n){const i=new Ru(e,r,t);"code"in r?r.code(i,n):i.$data&&r.validate?(0,on.funcKeywordCode)(i,r):"macro"in r?(0,on.macroKeywordCode)(i,r):(r.compile||r.validate)&&(0,on.funcKeywordCode)(i,r)}const Ym=/^\/(?:[^~]|~0|~1)*$/,Qm=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function Pu(e,{dataLevel:t,dataNames:r,dataPathArr:n}){let i,s;if(e==="")return ee.default.rootData;if(e[0]==="/"){if(!Ym.test(e))throw new Error(`Invalid JSON-pointer: ${e}`);i=e,s=ee.default.rootData}else{const p=Qm.exec(e);if(!p)throw new Error(`Invalid JSON-pointer: ${e}`);const c=+p[1];if(i=p[2],i==="#"){if(c>=t)throw new Error(u("property/index",c));return n[t-c]}if(c>t)throw new Error(u("data",c));if(s=r[t-c],!i)return s}let o=s;const a=i.split("/");for(const p of a)p&&(s=(0,J._)`${s}${(0,J.getProperty)((0,Ft.unescapeJsonPointer)(p))}`,o=(0,J._)`${o} && ${s}`);return o;function u(p,c){return`Cannot access ${p} ${c} levels up, current level is ${t}`}}pt.getData=Pu;var _n={};Object.defineProperty(_n,"__esModule",{value:!0});class ep extends Error{constructor(t){super("validation failed"),this.errors=t,this.ajv=this.validation=!0}}_n.default=ep;var Sn={};Object.defineProperty(Sn,"__esModule",{value:!0});const Ai=je;class tp extends Error{constructor(t,r,n,i){super(i||`can't resolve reference ${n} from id ${r}`),this.missingRef=(0,Ai.resolveUrl)(t,r,n),this.missingSchema=(0,Ai.normalizeId)((0,Ai.getFullPath)(t,this.missingRef))}}Sn.default=tp;var Ye={};Object.defineProperty(Ye,"__esModule",{value:!0});Ye.resolveSchema=Ye.getCompilingSchema=Ye.resolveRef=Ye.compileSchema=Ye.SchemaEnv=void 0;const ft=re,rp=_n,er=Ct,mt=je,ca=ue,np=pt;class mi{constructor(t){var r;this.refs={},this.dynamicAnchors={};let n;typeof t.schema=="object"&&(n=t.schema),this.schema=t.schema,this.schemaId=t.schemaId,this.root=t.root||this,this.baseId=(r=t.baseId)!==null&&r!==void 0?r:(0,mt.normalizeId)(n?.[t.schemaId||"$id"]),this.schemaPath=t.schemaPath,this.localRefs=t.localRefs,this.meta=t.meta,this.$async=n?.$async,this.refs={}}}Ye.SchemaEnv=mi;function Ls(e){const t=Au.call(this,e);if(t)return t;const r=(0,mt.getFullPath)(this.opts.uriResolver,e.root.baseId),{es5:n,lines:i}=this.opts.code,{ownProperties:s}=this.opts,o=new ft.CodeGen(this.scope,{es5:n,lines:i,ownProperties:s});let a;e.$async&&(a=o.scopeValue("Error",{ref:rp.default,code:(0,ft._)`require("ajv/dist/runtime/validation_error").default`}));const u=o.scopeName("validate");e.validateName=u;const p={gen:o,allErrors:this.opts.allErrors,data:er.default.data,parentData:er.default.parentData,parentDataProperty:er.default.parentDataProperty,dataNames:[er.default.data],dataPathArr:[ft.nil],dataLevel:0,dataTypes:[],definedProperties:new Set,topSchemaRef:o.scopeValue("schema",this.opts.code.source===!0?{ref:e.schema,code:(0,ft.stringify)(e.schema)}:{ref:e.schema}),validateName:u,ValidationError:a,schema:e.schema,schemaEnv:e,rootId:r,baseId:e.baseId||r,schemaPath:ft.nil,errSchemaPath:e.schemaPath||(this.opts.jtd?"":"#"),errorPath:(0,ft._)`""`,opts:this.opts,self:this};let c;try{this._compilations.add(e),(0,np.validateFunctionCode)(p),o.optimize(this.opts.code.optimize);const d=o.toString();c=`${o.scopeRefs(er.default.scope)}return ${d}`,this.opts.code.process&&(c=this.opts.code.process(c,e));const f=new Function(`${er.default.self}`,`${er.default.scope}`,c)(this,this.scope.get());if(this.scope.value(u,{ref:f}),f.errors=null,f.schema=e.schema,f.schemaEnv=e,e.$async&&(f.$async=!0),this.opts.code.source===!0&&(f.source={validateName:u,validateCode:d,scopeValues:o._values}),this.opts.unevaluated){const{props:h,items:y}=p;f.evaluated={props:h instanceof ft.Name?void 0:h,items:y instanceof ft.Name?void 0:y,dynamicProps:h instanceof ft.Name,dynamicItems:y instanceof ft.Name},f.source&&(f.source.evaluated=(0,ft.stringify)(f.evaluated))}return e.validate=f,e}catch(d){throw delete e.validate,delete e.validateName,c&&this.logger.error("Error compiling schema, function code:",c),d}finally{this._compilations.delete(e)}}Ye.compileSchema=Ls;function ip(e,t,r){var n;r=(0,mt.resolveUrl)(this.opts.uriResolver,t,r);const i=e.refs[r];if(i)return i;let s=ap.call(this,e,r);if(s===void 0){const o=(n=e.localRefs)===null||n===void 0?void 0:n[r],{schemaId:a}=this.opts;o&&(s=new mi({schema:o,schemaId:a,root:e,baseId:t}))}if(s!==void 0)return e.refs[r]=sp.call(this,s)}Ye.resolveRef=ip;function sp(e){return(0,mt.inlineRef)(e.schema,this.opts.inlineRefs)?e.schema:e.validate?e:Ls.call(this,e)}function Au(e){for(const t of this._compilations)if(op(t,e))return t}Ye.getCompilingSchema=Au;function op(e,t){return e.schema===t.schema&&e.root===t.root&&e.baseId===t.baseId}function ap(e,t){let r;for(;typeof(r=this.refs[t])=="string";)t=r;return r||this.schemas[t]||pi.call(this,e,t)}function pi(e,t){const r=this.opts.uriResolver.parse(t),n=(0,mt._getFullPath)(this.opts.uriResolver,r);let i=(0,mt.getFullPath)(this.opts.uriResolver,e.baseId,void 0);if(Object.keys(e.schema).length>0&&n===i)return bi.call(this,r,e);const s=(0,mt.normalizeId)(n),o=this.refs[s]||this.schemas[s];if(typeof o=="string"){const a=pi.call(this,e,o);return typeof a?.schema!="object"?void 0:bi.call(this,r,a)}if(typeof o?.schema=="object"){if(o.validate||Ls.call(this,o),s===(0,mt.normalizeId)(t)){const{schema:a}=o,{schemaId:u}=this.opts,p=a[u];return p&&(i=(0,mt.resolveUrl)(this.opts.uriResolver,i,p)),new mi({schema:a,schemaId:u,root:e,baseId:i})}return bi.call(this,r,o)}}Ye.resolveSchema=pi;const cp=new Set(["properties","patternProperties","enum","dependencies","definitions"]);function bi(e,{baseId:t,schema:r,root:n}){var i;if(((i=e.fragment)===null||i===void 0?void 0:i[0])!=="/")return;for(const a of e.fragment.slice(1).split("/")){if(typeof r=="boolean")return;const u=r[(0,ca.unescapeFragment)(a)];if(u===void 0)return;r=u;const p=typeof r=="object"&&r[this.opts.schemaId];!cp.has(a)&&p&&(t=(0,mt.resolveUrl)(this.opts.uriResolver,t,p))}let s;if(typeof r!="boolean"&&r.$ref&&!(0,ca.schemaHasRulesButRef)(r,this.RULES)){const a=(0,mt.resolveUrl)(this.opts.uriResolver,t,r.$ref);s=pi.call(this,n,a)}const{schemaId:o}=this.opts;if(s=s||new mi({schema:r,schemaId:o,root:n,baseId:t}),s.schema!==s.root.schema)return s}const up="https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#",fp="Meta-schema for $data reference (JSON AnySchema extension proposal)",lp="object",dp=["$data"],hp={$data:{type:"string",anyOf:[{format:"relative-json-pointer"},{format:"json-pointer"}]}},mp=!1,pp={$id:up,description:fp,type:lp,required:dp,properties:hp,additionalProperties:mp};var Fs={},ts={exports:{}};/** @license URI.js v4.4.1 (c) 2011 Gary Court. License: http://github.com/garycourt/uri-js */(function(e,t){(function(r,n){n(t)})(zt,function(r){function n(){for(var N=arguments.length,g=Array(N),I=0;I<N;I++)g[I]=arguments[I];if(g.length>1){g[0]=g[0].slice(0,-1);for(var j=g.length-1,L=1;L<j;++L)g[L]=g[L].slice(1,-1);return g[j]=g[j].slice(1),g.join("")}else return g[0]}function i(N){return"(?:"+N+")"}function s(N){return N===void 0?"undefined":N===null?"null":Object.prototype.toString.call(N).split(" ").pop().split("]").shift().toLowerCase()}function o(N){return N.toUpperCase()}function a(N){return N!=null?N instanceof Array?N:typeof N.length!="number"||N.split||N.setInterval||N.call?[N]:Array.prototype.slice.call(N):[]}function u(N,g){var I=N;if(g)for(var j in g)I[j]=g[j];return I}function p(N){var g="[A-Za-z]",I="[0-9]",j=n(I,"[A-Fa-f]"),L=i(i("%[EFef]"+j+"%"+j+j+"%"+j+j)+"|"+i("%[89A-Fa-f]"+j+"%"+j+j)+"|"+i("%"+j+j)),Y="[\\:\\/\\?\\#\\[\\]\\@]",Q="[\\!\\$\\&\\'\\(\\)\\*\\+\\,\\;\\=]",ce=n(Y,Q),ye=N?"[\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]":"[]",Ie=N?"[\\uE000-\\uF8FF]":"[]",se=n(g,I,"[\\-\\.\\_\\~]",ye);i(g+n(g,I,"[\\+\\-\\.]")+"*"),i(i(L+"|"+n(se,Q,"[\\:]"))+"*");var me=i(i("25[0-5]")+"|"+i("2[0-4]"+I)+"|"+i("1"+I+I)+"|"+i("0?[1-9]"+I)+"|0?0?"+I),Oe=i(me+"\\."+me+"\\."+me+"\\."+me),te=i(j+"{1,4}"),Ee=i(i(te+"\\:"+te)+"|"+Oe),De=i(i(te+"\\:")+"{6}"+Ee),ge=i("\\:\\:"+i(te+"\\:")+"{5}"+Ee),jt=i(i(te)+"?\\:\\:"+i(te+"\\:")+"{4}"+Ee),_t=i(i(i(te+"\\:")+"{0,1}"+te)+"?\\:\\:"+i(te+"\\:")+"{3}"+Ee),St=i(i(i(te+"\\:")+"{0,2}"+te)+"?\\:\\:"+i(te+"\\:")+"{2}"+Ee),gr=i(i(i(te+"\\:")+"{0,3}"+te)+"?\\:\\:"+te+"\\:"+Ee),Jt=i(i(i(te+"\\:")+"{0,4}"+te)+"?\\:\\:"+Ee),ot=i(i(i(te+"\\:")+"{0,5}"+te)+"?\\:\\:"+te),wt=i(i(i(te+"\\:")+"{0,6}"+te)+"?\\:\\:"),Yt=i([De,ge,jt,_t,St,gr,Jt,ot,wt].join("|")),Pt=i(i(se+"|"+L)+"+");i("[vV]"+j+"+\\."+n(se,Q,"[\\:]")+"+"),i(i(L+"|"+n(se,Q))+"*");var Zr=i(L+"|"+n(se,Q,"[\\:\\@]"));return i(i(L+"|"+n(se,Q,"[\\@]"))+"+"),i(i(Zr+"|"+n("[\\/\\?]",Ie))+"*"),{NOT_SCHEME:new RegExp(n("[^]",g,I,"[\\+\\-\\.]"),"g"),NOT_USERINFO:new RegExp(n("[^\\%\\:]",se,Q),"g"),NOT_HOST:new RegExp(n("[^\\%\\[\\]\\:]",se,Q),"g"),NOT_PATH:new RegExp(n("[^\\%\\/\\:\\@]",se,Q),"g"),NOT_PATH_NOSCHEME:new RegExp(n("[^\\%\\/\\@]",se,Q),"g"),NOT_QUERY:new RegExp(n("[^\\%]",se,Q,"[\\:\\@\\/\\?]",Ie),"g"),NOT_FRAGMENT:new RegExp(n("[^\\%]",se,Q,"[\\:\\@\\/\\?]"),"g"),ESCAPE:new RegExp(n("[^]",se,Q),"g"),UNRESERVED:new RegExp(se,"g"),OTHER_CHARS:new RegExp(n("[^\\%]",se,ce),"g"),PCT_ENCODED:new RegExp(L,"g"),IPV4ADDRESS:new RegExp("^("+Oe+")$"),IPV6ADDRESS:new RegExp("^\\[?("+Yt+")"+i(i("\\%25|\\%(?!"+j+"{2})")+"("+Pt+")")+"?\\]?$")}}var c=p(!1),d=p(!0),E=function(){function N(g,I){var j=[],L=!0,Y=!1,Q=void 0;try{for(var ce=g[Symbol.iterator](),ye;!(L=(ye=ce.next()).done)&&(j.push(ye.value),!(I&&j.length===I));L=!0);}catch(Ie){Y=!0,Q=Ie}finally{try{!L&&ce.return&&ce.return()}finally{if(Y)throw Q}}return j}return function(g,I){if(Array.isArray(g))return g;if(Symbol.iterator in Object(g))return N(g,I);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),f=function(N){if(Array.isArray(N)){for(var g=0,I=Array(N.length);g<N.length;g++)I[g]=N[g];return I}else return Array.from(N)},h=2147483647,y=36,v=1,l=26,$=38,S=700,D=72,V=128,T="-",P=/^xn--/,U=/[^\0-\x7E]/,A=/[\x2E\u3002\uFF0E\uFF61]/g,x={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},B=y-v,K=Math.floor,z=String.fromCharCode;function k(N){throw new RangeError(x[N])}function H(N,g){for(var I=[],j=N.length;j--;)I[j]=g(N[j]);return I}function q(N,g){var I=N.split("@"),j="";I.length>1&&(j=I[0]+"@",N=I[1]),N=N.replace(A,".");var L=N.split("."),Y=H(L,g).join(".");return j+Y}function G(N){for(var g=[],I=0,j=N.length;I<j;){var L=N.charCodeAt(I++);if(L>=55296&&L<=56319&&I<j){var Y=N.charCodeAt(I++);(Y&64512)==56320?g.push(((L&1023)<<10)+(Y&1023)+65536):(g.push(L),I--)}else g.push(L)}return g}var C=function(g){return String.fromCodePoint.apply(String,f(g))},F=function(g){return g-48<10?g-22:g-65<26?g-65:g-97<26?g-97:y},O=function(g,I){return g+22+75*(g<26)-((I!=0)<<5)},w=function(g,I,j){var L=0;for(g=j?K(g/S):g>>1,g+=K(g/I);g>B*l>>1;L+=y)g=K(g/B);return K(L+(B+1)*g/(g+$))},b=function(g){var I=[],j=g.length,L=0,Y=V,Q=D,ce=g.lastIndexOf(T);ce<0&&(ce=0);for(var ye=0;ye<ce;++ye)g.charCodeAt(ye)>=128&&k("not-basic"),I.push(g.charCodeAt(ye));for(var Ie=ce>0?ce+1:0;Ie<j;){for(var se=L,me=1,Oe=y;;Oe+=y){Ie>=j&&k("invalid-input");var te=F(g.charCodeAt(Ie++));(te>=y||te>K((h-L)/me))&&k("overflow"),L+=te*me;var Ee=Oe<=Q?v:Oe>=Q+l?l:Oe-Q;if(te<Ee)break;var De=y-Ee;me>K(h/De)&&k("overflow"),me*=De}var ge=I.length+1;Q=w(L-se,ge,se==0),K(L/ge)>h-Y&&k("overflow"),Y+=K(L/ge),L%=ge,I.splice(L++,0,Y)}return String.fromCodePoint.apply(String,I)},R=function(g){var I=[];g=G(g);var j=g.length,L=V,Y=0,Q=D,ce=!0,ye=!1,Ie=void 0;try{for(var se=g[Symbol.iterator](),me;!(ce=(me=se.next()).done);ce=!0){var Oe=me.value;Oe<128&&I.push(z(Oe))}}catch(Xr){ye=!0,Ie=Xr}finally{try{!ce&&se.return&&se.return()}finally{if(ye)throw Ie}}var te=I.length,Ee=te;for(te&&I.push(T);Ee<j;){var De=h,ge=!0,jt=!1,_t=void 0;try{for(var St=g[Symbol.iterator](),gr;!(ge=(gr=St.next()).done);ge=!0){var Jt=gr.value;Jt>=L&&Jt<De&&(De=Jt)}}catch(Xr){jt=!0,_t=Xr}finally{try{!ge&&St.return&&St.return()}finally{if(jt)throw _t}}var ot=Ee+1;De-L>K((h-Y)/ot)&&k("overflow"),Y+=(De-L)*ot,L=De;var wt=!0,Yt=!1,Pt=void 0;try{for(var Zr=g[Symbol.iterator](),bo;!(wt=(bo=Zr.next()).done);wt=!0){var Lo=bo.value;if(Lo<L&&++Y>h&&k("overflow"),Lo==L){for(var Dn=Y,Rn=y;;Rn+=y){var Cn=Rn<=Q?v:Rn>=Q+l?l:Rn-Q;if(Dn<Cn)break;var Fo=Dn-Cn,jo=y-Cn;I.push(z(O(Cn+Fo%jo,0))),Dn=K(Fo/jo)}I.push(z(O(Dn,0))),Q=w(Y,ot,Ee==te),Y=0,++Ee}}}catch(Xr){Yt=!0,Pt=Xr}finally{try{!wt&&Zr.return&&Zr.return()}finally{if(Yt)throw Pt}}++Y,++L}return I.join("")},m=function(g){return q(g,function(I){return P.test(I)?b(I.slice(4).toLowerCase()):I})},_=function(g){return q(g,function(I){return U.test(I)?"xn--"+R(I):I})},M={version:"2.1.0",ucs2:{decode:G,encode:C},decode:b,encode:R,toASCII:_,toUnicode:m},W={};function Z(N){var g=N.charCodeAt(0),I=void 0;return g<16?I="%0"+g.toString(16).toUpperCase():g<128?I="%"+g.toString(16).toUpperCase():g<2048?I="%"+(g>>6|192).toString(16).toUpperCase()+"%"+(g&63|128).toString(16).toUpperCase():I="%"+(g>>12|224).toString(16).toUpperCase()+"%"+(g>>6&63|128).toString(16).toUpperCase()+"%"+(g&63|128).toString(16).toUpperCase(),I}function ie(N){for(var g="",I=0,j=N.length;I<j;){var L=parseInt(N.substr(I+1,2),16);if(L<128)g+=String.fromCharCode(L),I+=3;else if(L>=194&&L<224){if(j-I>=6){var Y=parseInt(N.substr(I+4,2),16);g+=String.fromCharCode((L&31)<<6|Y&63)}else g+=N.substr(I,6);I+=6}else if(L>=224){if(j-I>=9){var Q=parseInt(N.substr(I+4,2),16),ce=parseInt(N.substr(I+7,2),16);g+=String.fromCharCode((L&15)<<12|(Q&63)<<6|ce&63)}else g+=N.substr(I,9);I+=9}else g+=N.substr(I,3),I+=3}return g}function oe(N,g){function I(j){var L=ie(j);return L.match(g.UNRESERVED)?L:j}return N.scheme&&(N.scheme=String(N.scheme).replace(g.PCT_ENCODED,I).toLowerCase().replace(g.NOT_SCHEME,"")),N.userinfo!==void 0&&(N.userinfo=String(N.userinfo).replace(g.PCT_ENCODED,I).replace(g.NOT_USERINFO,Z).replace(g.PCT_ENCODED,o)),N.host!==void 0&&(N.host=String(N.host).replace(g.PCT_ENCODED,I).toLowerCase().replace(g.NOT_HOST,Z).replace(g.PCT_ENCODED,o)),N.path!==void 0&&(N.path=String(N.path).replace(g.PCT_ENCODED,I).replace(N.scheme?g.NOT_PATH:g.NOT_PATH_NOSCHEME,Z).replace(g.PCT_ENCODED,o)),N.query!==void 0&&(N.query=String(N.query).replace(g.PCT_ENCODED,I).replace(g.NOT_QUERY,Z).replace(g.PCT_ENCODED,o)),N.fragment!==void 0&&(N.fragment=String(N.fragment).replace(g.PCT_ENCODED,I).replace(g.NOT_FRAGMENT,Z).replace(g.PCT_ENCODED,o)),N}function we(N){return N.replace(/^0*(.*)/,"$1")||"0"}function Et(N,g){var I=N.match(g.IPV4ADDRESS)||[],j=E(I,2),L=j[1];return L?L.split(".").map(we).join("."):N}function hr(N,g){var I=N.match(g.IPV6ADDRESS)||[],j=E(I,3),L=j[1],Y=j[2];if(L){for(var Q=L.toLowerCase().split("::").reverse(),ce=E(Q,2),ye=ce[0],Ie=ce[1],se=Ie?Ie.split(":").map(we):[],me=ye.split(":").map(we),Oe=g.IPV4ADDRESS.test(me[me.length-1]),te=Oe?7:8,Ee=me.length-te,De=Array(te),ge=0;ge<te;++ge)De[ge]=se[ge]||me[Ee+ge]||"";Oe&&(De[te-1]=Et(De[te-1],g));var jt=De.reduce(function(ot,wt,Yt){if(!wt||wt==="0"){var Pt=ot[ot.length-1];Pt&&Pt.index+Pt.length===Yt?Pt.length++:ot.push({index:Yt,length:1})}return ot},[]),_t=jt.sort(function(ot,wt){return wt.length-ot.length})[0],St=void 0;if(_t&&_t.length>1){var gr=De.slice(0,_t.index),Jt=De.slice(_t.index+_t.length);St=gr.join(":")+"::"+Jt.join(":")}else St=De.join(":");return Y&&(St+="%"+Y),St}else return N}var zr=/^(?:([^:\/?#]+):)?(?:\/\/((?:([^\/?#@]*)@)?(\[[^\/?#\]]+\]|[^\/?#:]*)(?:\:(\d*))?))?([^?#]*)(?:\?([^#]*))?(?:#((?:.|\n|\r)*))?/i,Gr="".match(/(){0}/)[1]===void 0;function tt(N){var g=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},I={},j=g.iri!==!1?d:c;g.reference==="suffix"&&(N=(g.scheme?g.scheme+":":"")+"//"+N);var L=N.match(zr);if(L){Gr?(I.scheme=L[1],I.userinfo=L[3],I.host=L[4],I.port=parseInt(L[5],10),I.path=L[6]||"",I.query=L[7],I.fragment=L[8],isNaN(I.port)&&(I.port=L[5])):(I.scheme=L[1]||void 0,I.userinfo=N.indexOf("@")!==-1?L[3]:void 0,I.host=N.indexOf("//")!==-1?L[4]:void 0,I.port=parseInt(L[5],10),I.path=L[6]||"",I.query=N.indexOf("?")!==-1?L[7]:void 0,I.fragment=N.indexOf("#")!==-1?L[8]:void 0,isNaN(I.port)&&(I.port=N.match(/\/\/(?:.|\n)*\:(?:\/|\?|\#|$)/)?L[4]:void 0)),I.host&&(I.host=hr(Et(I.host,j),j)),I.scheme===void 0&&I.userinfo===void 0&&I.host===void 0&&I.port===void 0&&!I.path&&I.query===void 0?I.reference="same-document":I.scheme===void 0?I.reference="relative":I.fragment===void 0?I.reference="absolute":I.reference="uri",g.reference&&g.reference!=="suffix"&&g.reference!==I.reference&&(I.error=I.error||"URI is not a "+g.reference+" reference.");var Y=W[(g.scheme||I.scheme||"").toLowerCase()];if(!g.unicodeSupport&&(!Y||!Y.unicodeSupport)){if(I.host&&(g.domainHost||Y&&Y.domainHost))try{I.host=M.toASCII(I.host.replace(j.PCT_ENCODED,ie).toLowerCase())}catch(Q){I.error=I.error||"Host's domain name can not be converted to ASCII via punycode: "+Q}oe(I,c)}else oe(I,j);Y&&Y.parse&&Y.parse(I,g)}else I.error=I.error||"URI can not be parsed.";return I}function Hr(N,g){var I=g.iri!==!1?d:c,j=[];return N.userinfo!==void 0&&(j.push(N.userinfo),j.push("@")),N.host!==void 0&&j.push(hr(Et(String(N.host),I),I).replace(I.IPV6ADDRESS,function(L,Y,Q){return"["+Y+(Q?"%25"+Q:"")+"]"})),(typeof N.port=="number"||typeof N.port=="string")&&(j.push(":"),j.push(String(N.port))),j.length?j.join(""):void 0}var mr=/^\.\.?\//,pr=/^\/\.(\/|$)/,yr=/^\/\.\.(\/|$)/,qr=/^\/?(?:.|\n)*?(?=\/|$)/;function gt(N){for(var g=[];N.length;)if(N.match(mr))N=N.replace(mr,"");else if(N.match(pr))N=N.replace(pr,"/");else if(N.match(yr))N=N.replace(yr,"/"),g.pop();else if(N==="."||N==="..")N="";else{var I=N.match(qr);if(I){var j=I[0];N=N.slice(j.length),g.push(j)}else throw new Error("Unexpected dot segment condition")}return g.join("")}function Ze(N){var g=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},I=g.iri?d:c,j=[],L=W[(g.scheme||N.scheme||"").toLowerCase()];if(L&&L.serialize&&L.serialize(N,g),N.host&&!I.IPV6ADDRESS.test(N.host)){if(g.domainHost||L&&L.domainHost)try{N.host=g.iri?M.toUnicode(N.host):M.toASCII(N.host.replace(I.PCT_ENCODED,ie).toLowerCase())}catch(ce){N.error=N.error||"Host's domain name can not be converted to "+(g.iri?"Unicode":"ASCII")+" via punycode: "+ce}}oe(N,I),g.reference!=="suffix"&&N.scheme&&(j.push(N.scheme),j.push(":"));var Y=Hr(N,g);if(Y!==void 0&&(g.reference!=="suffix"&&j.push("//"),j.push(Y),N.path&&N.path.charAt(0)!=="/"&&j.push("/")),N.path!==void 0){var Q=N.path;!g.absolutePath&&(!L||!L.absolutePath)&&(Q=gt(Q)),Y===void 0&&(Q=Q.replace(/^\/\//,"/%2F")),j.push(Q)}return N.query!==void 0&&(j.push("?"),j.push(N.query)),N.fragment!==void 0&&(j.push("#"),j.push(N.fragment)),j.join("")}function vr(N,g){var I=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},j=arguments[3],L={};return j||(N=tt(Ze(N,I),I),g=tt(Ze(g,I),I)),I=I||{},!I.tolerant&&g.scheme?(L.scheme=g.scheme,L.userinfo=g.userinfo,L.host=g.host,L.port=g.port,L.path=gt(g.path||""),L.query=g.query):(g.userinfo!==void 0||g.host!==void 0||g.port!==void 0?(L.userinfo=g.userinfo,L.host=g.host,L.port=g.port,L.path=gt(g.path||""),L.query=g.query):(g.path?(g.path.charAt(0)==="/"?L.path=gt(g.path):((N.userinfo!==void 0||N.host!==void 0||N.port!==void 0)&&!N.path?L.path="/"+g.path:N.path?L.path=N.path.slice(0,N.path.lastIndexOf("/")+1)+g.path:L.path=g.path,L.path=gt(L.path)),L.query=g.query):(L.path=N.path,g.query!==void 0?L.query=g.query:L.query=N.query),L.userinfo=N.userinfo,L.host=N.host,L.port=N.port),L.scheme=N.scheme),L.fragment=g.fragment,L}function Br(N,g,I){var j=u({scheme:"null"},I);return Ze(vr(tt(N,j),tt(g,j),j,!0),j)}function Zt(N,g){return typeof N=="string"?N=Ze(tt(N,g),g):s(N)==="object"&&(N=tt(Ze(N,g),g)),N}function Kr(N,g,I){return typeof N=="string"?N=Ze(tt(N,I),I):s(N)==="object"&&(N=Ze(N,I)),typeof g=="string"?g=Ze(tt(g,I),I):s(g)==="object"&&(g=Ze(g,I)),N===g}function Tn(N,g){return N&&N.toString().replace(!g||!g.iri?c.ESCAPE:d.ESCAPE,Z)}function st(N,g){return N&&N.toString().replace(!g||!g.iri?c.PCT_ENCODED:d.PCT_ENCODED,ie)}var Xt={scheme:"http",domainHost:!0,parse:function(g,I){return g.host||(g.error=g.error||"HTTP URIs must have a host."),g},serialize:function(g,I){var j=String(g.scheme).toLowerCase()==="https";return(g.port===(j?443:80)||g.port==="")&&(g.port=void 0),g.path||(g.path="/"),g}},Io={scheme:"https",domainHost:Xt.domainHost,parse:Xt.parse,serialize:Xt.serialize};function Oo(N){return typeof N.secure=="boolean"?N.secure:String(N.scheme).toLowerCase()==="wss"}var Wr={scheme:"ws",domainHost:!0,parse:function(g,I){var j=g;return j.secure=Oo(j),j.resourceName=(j.path||"/")+(j.query?"?"+j.query:""),j.path=void 0,j.query=void 0,j},serialize:function(g,I){if((g.port===(Oo(g)?443:80)||g.port==="")&&(g.port=void 0),typeof g.secure=="boolean"&&(g.scheme=g.secure?"wss":"ws",g.secure=void 0),g.resourceName){var j=g.resourceName.split("?"),L=E(j,2),Y=L[0],Q=L[1];g.path=Y&&Y!=="/"?Y:void 0,g.query=Q,g.resourceName=void 0}return g.fragment=void 0,g}},To={scheme:"wss",domainHost:Wr.domainHost,parse:Wr.parse,serialize:Wr.serialize},cf={},Do="[A-Za-z0-9\\-\\.\\_\\~\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]",$t="[0-9A-Fa-f]",uf=i(i("%[EFef]"+$t+"%"+$t+$t+"%"+$t+$t)+"|"+i("%[89A-Fa-f]"+$t+"%"+$t+$t)+"|"+i("%"+$t+$t)),ff="[A-Za-z0-9\\!\\$\\%\\'\\*\\+\\-\\^\\_\\`\\{\\|\\}\\~]",lf="[\\!\\$\\%\\'\\(\\)\\*\\+\\,\\-\\.0-9\\<\\>A-Z\\x5E-\\x7E]",df=n(lf,'[\\"\\\\]'),hf="[\\!\\$\\'\\(\\)\\*\\+\\,\\;\\:\\@]",mf=new RegExp(Do,"g"),Er=new RegExp(uf,"g"),pf=new RegExp(n("[^]",ff,"[\\.]",'[\\"]',df),"g"),Ro=new RegExp(n("[^]",Do,hf),"g"),yf=Ro;function Oi(N){var g=ie(N);return g.match(mf)?g:N}var Co={scheme:"mailto",parse:function(g,I){var j=g,L=j.to=j.path?j.path.split(","):[];if(j.path=void 0,j.query){for(var Y=!1,Q={},ce=j.query.split("&"),ye=0,Ie=ce.length;ye<Ie;++ye){var se=ce[ye].split("=");switch(se[0]){case"to":for(var me=se[1].split(","),Oe=0,te=me.length;Oe<te;++Oe)L.push(me[Oe]);break;case"subject":j.subject=st(se[1],I);break;case"body":j.body=st(se[1],I);break;default:Y=!0,Q[st(se[0],I)]=st(se[1],I);break}}Y&&(j.headers=Q)}j.query=void 0;for(var Ee=0,De=L.length;Ee<De;++Ee){var ge=L[Ee].split("@");if(ge[0]=st(ge[0]),I.unicodeSupport)ge[1]=st(ge[1],I).toLowerCase();else try{ge[1]=M.toASCII(st(ge[1],I).toLowerCase())}catch(jt){j.error=j.error||"Email address's domain name can not be converted to ASCII via punycode: "+jt}L[Ee]=ge.join("@")}return j},serialize:function(g,I){var j=g,L=a(g.to);if(L){for(var Y=0,Q=L.length;Y<Q;++Y){var ce=String(L[Y]),ye=ce.lastIndexOf("@"),Ie=ce.slice(0,ye).replace(Er,Oi).replace(Er,o).replace(pf,Z),se=ce.slice(ye+1);try{se=I.iri?M.toUnicode(se):M.toASCII(st(se,I).toLowerCase())}catch(Ee){j.error=j.error||"Email address's domain name can not be converted to "+(I.iri?"Unicode":"ASCII")+" via punycode: "+Ee}L[Y]=Ie+"@"+se}j.path=L.join(",")}var me=g.headers=g.headers||{};g.subject&&(me.subject=g.subject),g.body&&(me.body=g.body);var Oe=[];for(var te in me)me[te]!==cf[te]&&Oe.push(te.replace(Er,Oi).replace(Er,o).replace(Ro,Z)+"="+me[te].replace(Er,Oi).replace(Er,o).replace(yf,Z));return Oe.length&&(j.query=Oe.join("&")),j}},vf=/^([^\:]+)\:(.*)/,Po={scheme:"urn",parse:function(g,I){var j=g.path&&g.path.match(vf),L=g;if(j){var Y=I.scheme||L.scheme||"urn",Q=j[1].toLowerCase(),ce=j[2],ye=Y+":"+(I.nid||Q),Ie=W[ye];L.nid=Q,L.nss=ce,L.path=void 0,Ie&&(L=Ie.parse(L,I))}else L.error=L.error||"URN can not be parsed.";return L},serialize:function(g,I){var j=I.scheme||g.scheme||"urn",L=g.nid,Y=j+":"+(I.nid||L),Q=W[Y];Q&&(g=Q.serialize(g,I));var ce=g,ye=g.nss;return ce.path=(L||I.nid)+":"+ye,ce}},Ef=/^[0-9A-Fa-f]{8}(?:\-[0-9A-Fa-f]{4}){3}\-[0-9A-Fa-f]{12}$/,Ao={scheme:"urn:uuid",parse:function(g,I){var j=g;return j.uuid=j.nss,j.nss=void 0,!I.tolerant&&(!j.uuid||!j.uuid.match(Ef))&&(j.error=j.error||"UUID is not valid."),j},serialize:function(g,I){var j=g;return j.nss=(g.uuid||"").toLowerCase(),j}};W[Xt.scheme]=Xt,W[Io.scheme]=Io,W[Wr.scheme]=Wr,W[To.scheme]=To,W[Co.scheme]=Co,W[Po.scheme]=Po,W[Ao.scheme]=Ao,r.SCHEMES=W,r.pctEncChar=Z,r.pctDecChars=ie,r.parse=tt,r.removeDotSegments=gt,r.serialize=Ze,r.resolveComponents=vr,r.resolve=Br,r.normalize=Zt,r.equal=Kr,r.escapeComponent=Tn,r.unescapeComponent=st,Object.defineProperty(r,"__esModule",{value:!0})})})(ts,ts.exports);var yp=ts.exports;Object.defineProperty(Fs,"__esModule",{value:!0});const bu=yp;bu.code='require("ajv/dist/runtime/uri").default';Fs.default=bu;(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.CodeGen=e.Name=e.nil=e.stringify=e.str=e._=e.KeywordCxt=void 0;var t=pt;Object.defineProperty(e,"KeywordCxt",{enumerable:!0,get:function(){return t.KeywordCxt}});var r=re;Object.defineProperty(e,"_",{enumerable:!0,get:function(){return r._}}),Object.defineProperty(e,"str",{enumerable:!0,get:function(){return r.str}}),Object.defineProperty(e,"stringify",{enumerable:!0,get:function(){return r.stringify}}),Object.defineProperty(e,"nil",{enumerable:!0,get:function(){return r.nil}}),Object.defineProperty(e,"Name",{enumerable:!0,get:function(){return r.Name}}),Object.defineProperty(e,"CodeGen",{enumerable:!0,get:function(){return r.CodeGen}});const n=_n,i=Sn,s=cr,o=Ye,a=re,u=je,p=$n,c=ue,d=pp,E=Fs,f=(O,w)=>new RegExp(O,w);f.code="new RegExp";const h=["removeAdditional","useDefaults","coerceTypes"],y=new Set(["validate","serialize","parse","wrapper","root","schema","keyword","pattern","formats","validate$data","func","obj","Error"]),v={errorDataPath:"",format:"`validateFormats: false` can be used instead.",nullable:'"nullable" keyword is supported by default.',jsonPointers:"Deprecated jsPropertySyntax can be used instead.",extendRefs:"Deprecated ignoreKeywordsWithRef can be used instead.",missingRefs:"Pass empty schema with $id that should be ignored to ajv.addSchema.",processCode:"Use option `code: {process: (code, schemaEnv: object) => string}`",sourceCode:"Use option `code: {source: true}`",strictDefaults:"It is default now, see option `strict`.",strictKeywords:"It is default now, see option `strict`.",uniqueItems:'"uniqueItems" keyword is always validated.',unknownFormats:"Disable strict mode or pass `true` to `ajv.addFormat` (or `formats` option).",cache:"Map is used as cache, schema object as key.",serialize:"Map is used as cache, schema object as key.",ajvErrors:"It is default now."},l={ignoreKeywordsWithRef:"",jsPropertySyntax:"",unicode:'"minLength"/"maxLength" account for unicode characters by default.'},$=200;function S(O){var w,b,R,m,_,M,W,Z,ie,oe,we,Et,hr,zr,Gr,tt,Hr,mr,pr,yr,qr,gt,Ze,vr,Br;const Zt=O.strict,Kr=(w=O.code)===null||w===void 0?void 0:w.optimize,Tn=Kr===!0||Kr===void 0?1:Kr||0,st=(R=(b=O.code)===null||b===void 0?void 0:b.regExp)!==null&&R!==void 0?R:f,Xt=(m=O.uriResolver)!==null&&m!==void 0?m:E.default;return{strictSchema:(M=(_=O.strictSchema)!==null&&_!==void 0?_:Zt)!==null&&M!==void 0?M:!0,strictNumbers:(Z=(W=O.strictNumbers)!==null&&W!==void 0?W:Zt)!==null&&Z!==void 0?Z:!0,strictTypes:(oe=(ie=O.strictTypes)!==null&&ie!==void 0?ie:Zt)!==null&&oe!==void 0?oe:"log",strictTuples:(Et=(we=O.strictTuples)!==null&&we!==void 0?we:Zt)!==null&&Et!==void 0?Et:"log",strictRequired:(zr=(hr=O.strictRequired)!==null&&hr!==void 0?hr:Zt)!==null&&zr!==void 0?zr:!1,code:O.code?{...O.code,optimize:Tn,regExp:st}:{optimize:Tn,regExp:st},loopRequired:(Gr=O.loopRequired)!==null&&Gr!==void 0?Gr:$,loopEnum:(tt=O.loopEnum)!==null&&tt!==void 0?tt:$,meta:(Hr=O.meta)!==null&&Hr!==void 0?Hr:!0,messages:(mr=O.messages)!==null&&mr!==void 0?mr:!0,inlineRefs:(pr=O.inlineRefs)!==null&&pr!==void 0?pr:!0,schemaId:(yr=O.schemaId)!==null&&yr!==void 0?yr:"$id",addUsedSchema:(qr=O.addUsedSchema)!==null&&qr!==void 0?qr:!0,validateSchema:(gt=O.validateSchema)!==null&&gt!==void 0?gt:!0,validateFormats:(Ze=O.validateFormats)!==null&&Ze!==void 0?Ze:!0,unicodeRegExp:(vr=O.unicodeRegExp)!==null&&vr!==void 0?vr:!0,int32range:(Br=O.int32range)!==null&&Br!==void 0?Br:!0,uriResolver:Xt}}class D{constructor(w={}){this.schemas={},this.refs={},this.formats={},this._compilations=new Set,this._loading={},this._cache=new Map,w=this.opts={...w,...S(w)};const{es5:b,lines:R}=this.opts.code;this.scope=new a.ValueScope({scope:{},prefixes:y,es5:b,lines:R}),this.logger=K(w.logger);const m=w.validateFormats;w.validateFormats=!1,this.RULES=(0,s.getRules)(),V.call(this,v,w,"NOT SUPPORTED"),V.call(this,l,w,"DEPRECATED","warn"),this._metaOpts=x.call(this),w.formats&&U.call(this),this._addVocabularies(),this._addDefaultMetaSchema(),w.keywords&&A.call(this,w.keywords),typeof w.meta=="object"&&this.addMetaSchema(w.meta),P.call(this),w.validateFormats=m}_addVocabularies(){this.addKeyword("$async")}_addDefaultMetaSchema(){const{$data:w,meta:b,schemaId:R}=this.opts;let m=d;R==="id"&&(m={...d},m.id=m.$id,delete m.$id),b&&w&&this.addMetaSchema(m,m[R],!1)}defaultMeta(){const{meta:w,schemaId:b}=this.opts;return this.opts.defaultMeta=typeof w=="object"?w[b]||w:void 0}validate(w,b){let R;if(typeof w=="string"){if(R=this.getSchema(w),!R)throw new Error(`no schema with key or ref "${w}"`)}else R=this.compile(w);const m=R(b);return"$async"in R||(this.errors=R.errors),m}compile(w,b){const R=this._addSchema(w,b);return R.validate||this._compileSchemaEnv(R)}compileAsync(w,b){if(typeof this.opts.loadSchema!="function")throw new Error("options.loadSchema should be a function");const{loadSchema:R}=this.opts;return m.call(this,w,b);async function m(oe,we){await _.call(this,oe.$schema);const Et=this._addSchema(oe,we);return Et.validate||M.call(this,Et)}async function _(oe){oe&&!this.getSchema(oe)&&await m.call(this,{$ref:oe},!0)}async function M(oe){try{return this._compileSchemaEnv(oe)}catch(we){if(!(we instanceof i.default))throw we;return W.call(this,we),await Z.call(this,we.missingSchema),M.call(this,oe)}}function W({missingSchema:oe,missingRef:we}){if(this.refs[oe])throw new Error(`AnySchema ${oe} is loaded but ${we} cannot be resolved`)}async function Z(oe){const we=await ie.call(this,oe);this.refs[oe]||await _.call(this,we.$schema),this.refs[oe]||this.addSchema(we,oe,b)}async function ie(oe){const we=this._loading[oe];if(we)return we;try{return await(this._loading[oe]=R(oe))}finally{delete this._loading[oe]}}}addSchema(w,b,R,m=this.opts.validateSchema){if(Array.isArray(w)){for(const M of w)this.addSchema(M,void 0,R,m);return this}let _;if(typeof w=="object"){const{schemaId:M}=this.opts;if(_=w[M],_!==void 0&&typeof _!="string")throw new Error(`schema ${M} must be string`)}return b=(0,u.normalizeId)(b||_),this._checkUnique(b),this.schemas[b]=this._addSchema(w,R,b,m,!0),this}addMetaSchema(w,b,R=this.opts.validateSchema){return this.addSchema(w,b,!0,R),this}validateSchema(w,b){if(typeof w=="boolean")return!0;let R;if(R=w.$schema,R!==void 0&&typeof R!="string")throw new Error("$schema must be a string");if(R=R||this.opts.defaultMeta||this.defaultMeta(),!R)return this.logger.warn("meta-schema not available"),this.errors=null,!0;const m=this.validate(R,w);if(!m&&b){const _="schema is invalid: "+this.errorsText();if(this.opts.validateSchema==="log")this.logger.error(_);else throw new Error(_)}return m}getSchema(w){let b;for(;typeof(b=T.call(this,w))=="string";)w=b;if(b===void 0){const{schemaId:R}=this.opts,m=new o.SchemaEnv({schema:{},schemaId:R});if(b=o.resolveSchema.call(this,m,w),!b)return;this.refs[w]=b}return b.validate||this._compileSchemaEnv(b)}removeSchema(w){if(w instanceof RegExp)return this._removeAllSchemas(this.schemas,w),this._removeAllSchemas(this.refs,w),this;switch(typeof w){case"undefined":return this._removeAllSchemas(this.schemas),this._removeAllSchemas(this.refs),this._cache.clear(),this;case"string":{const b=T.call(this,w);return typeof b=="object"&&this._cache.delete(b.schema),delete this.schemas[w],delete this.refs[w],this}case"object":{const b=w;this._cache.delete(b);let R=w[this.opts.schemaId];return R&&(R=(0,u.normalizeId)(R),delete this.schemas[R],delete this.refs[R]),this}default:throw new Error("ajv.removeSchema: invalid parameter")}}addVocabulary(w){for(const b of w)this.addKeyword(b);return this}addKeyword(w,b){let R;if(typeof w=="string")R=w,typeof b=="object"&&(this.logger.warn("these parameters are deprecated, see docs for addKeyword"),b.keyword=R);else if(typeof w=="object"&&b===void 0){if(b=w,R=b.keyword,Array.isArray(R)&&!R.length)throw new Error("addKeywords: keyword must be string or non-empty array")}else throw new Error("invalid addKeywords parameters");if(k.call(this,R,b),!b)return(0,c.eachItem)(R,_=>H.call(this,_)),this;G.call(this,b);const m={...b,type:(0,p.getJSONTypes)(b.type),schemaType:(0,p.getJSONTypes)(b.schemaType)};return(0,c.eachItem)(R,m.type.length===0?_=>H.call(this,_,m):_=>m.type.forEach(M=>H.call(this,_,m,M))),this}getKeyword(w){const b=this.RULES.all[w];return typeof b=="object"?b.definition:!!b}removeKeyword(w){const{RULES:b}=this;delete b.keywords[w],delete b.all[w];for(const R of b.rules){const m=R.rules.findIndex(_=>_.keyword===w);m>=0&&R.rules.splice(m,1)}return this}addFormat(w,b){return typeof b=="string"&&(b=new RegExp(b)),this.formats[w]=b,this}errorsText(w=this.errors,{separator:b=", ",dataVar:R="data"}={}){return!w||w.length===0?"No errors":w.map(m=>`${R}${m.instancePath} ${m.message}`).reduce((m,_)=>m+b+_)}$dataMetaSchema(w,b){const R=this.RULES.all;w=JSON.parse(JSON.stringify(w));for(const m of b){const _=m.split("/").slice(1);let M=w;for(const W of _)M=M[W];for(const W in R){const Z=R[W];if(typeof Z!="object")continue;const{$data:ie}=Z.definition,oe=M[W];ie&&oe&&(M[W]=F(oe))}}return w}_removeAllSchemas(w,b){for(const R in w){const m=w[R];(!b||b.test(R))&&(typeof m=="string"?delete w[R]:m&&!m.meta&&(this._cache.delete(m.schema),delete w[R]))}}_addSchema(w,b,R,m=this.opts.validateSchema,_=this.opts.addUsedSchema){let M;const{schemaId:W}=this.opts;if(typeof w=="object")M=w[W];else{if(this.opts.jtd)throw new Error("schema must be object");if(typeof w!="boolean")throw new Error("schema must be object or boolean")}let Z=this._cache.get(w);if(Z!==void 0)return Z;R=(0,u.normalizeId)(M||R);const ie=u.getSchemaRefs.call(this,w,R);return Z=new o.SchemaEnv({schema:w,schemaId:W,meta:b,baseId:R,localRefs:ie}),this._cache.set(Z.schema,Z),_&&!R.startsWith("#")&&(R&&this._checkUnique(R),this.refs[R]=Z),m&&this.validateSchema(w,!0),Z}_checkUnique(w){if(this.schemas[w]||this.refs[w])throw new Error(`schema with key or id "${w}" already exists`)}_compileSchemaEnv(w){if(w.meta?this._compileMetaSchema(w):o.compileSchema.call(this,w),!w.validate)throw new Error("ajv implementation error");return w.validate}_compileMetaSchema(w){const b=this.opts;this.opts=this._metaOpts;try{o.compileSchema.call(this,w)}finally{this.opts=b}}}e.default=D,D.ValidationError=n.default,D.MissingRefError=i.default;function V(O,w,b,R="error"){for(const m in O){const _=m;_ in w&&this.logger[R](`${b}: option ${m}. ${O[_]}`)}}function T(O){return O=(0,u.normalizeId)(O),this.schemas[O]||this.refs[O]}function P(){const O=this.opts.schemas;if(O)if(Array.isArray(O))this.addSchema(O);else for(const w in O)this.addSchema(O[w],w)}function U(){for(const O in this.opts.formats){const w=this.opts.formats[O];w&&this.addFormat(O,w)}}function A(O){if(Array.isArray(O)){this.addVocabulary(O);return}this.logger.warn("keywords option as map is deprecated, pass array");for(const w in O){const b=O[w];b.keyword||(b.keyword=w),this.addKeyword(b)}}function x(){const O={...this.opts};for(const w of h)delete O[w];return O}const B={log(){},warn(){},error(){}};function K(O){if(O===!1)return B;if(O===void 0)return console;if(O.log&&O.warn&&O.error)return O;throw new Error("logger must implement log, warn and error methods")}const z=/^[a-z_$][a-z0-9_$:-]*$/i;function k(O,w){const{RULES:b}=this;if((0,c.eachItem)(O,R=>{if(b.keywords[R])throw new Error(`Keyword ${R} is already defined`);if(!z.test(R))throw new Error(`Keyword ${R} has invalid name`)}),!!w&&w.$data&&!("code"in w||"validate"in w))throw new Error('$data keyword must have "code" or "validate" function')}function H(O,w,b){var R;const m=w?.post;if(b&&m)throw new Error('keyword with "post" flag cannot have "type"');const{RULES:_}=this;let M=m?_.post:_.rules.find(({type:Z})=>Z===b);if(M||(M={type:b,rules:[]},_.rules.push(M)),_.keywords[O]=!0,!w)return;const W={keyword:O,definition:{...w,type:(0,p.getJSONTypes)(w.type),schemaType:(0,p.getJSONTypes)(w.schemaType)}};w.before?q.call(this,M,W,w.before):M.rules.push(W),_.all[O]=W,(R=w.implements)===null||R===void 0||R.forEach(Z=>this.addKeyword(Z))}function q(O,w,b){const R=O.rules.findIndex(m=>m.keyword===b);R>=0?O.rules.splice(R,0,w):(O.rules.push(w),this.logger.warn(`rule ${b} is not defined`))}function G(O){let{metaSchema:w}=O;w!==void 0&&(O.$data&&this.opts.$data&&(w=F(w)),O.validateSchema=this.compile(w,!0))}const C={$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"};function F(O){return{anyOf:[O,C]}}})(cu);var js={},Ms={},ks={};Object.defineProperty(ks,"__esModule",{value:!0});const vp={keyword:"id",code(){throw new Error('NOT SUPPORTED: keyword "id", use "$id" for schema ID')}};ks.default=vp;var ur={};Object.defineProperty(ur,"__esModule",{value:!0});ur.callRef=ur.getValidate=void 0;const Ep=Sn,ua=ne,Je=re,Sr=Ct,fa=Ye,jn=ue,gp={keyword:"$ref",schemaType:"string",code(e){const{gen:t,schema:r,it:n}=e,{baseId:i,schemaEnv:s,validateName:o,opts:a,self:u}=n,{root:p}=s;if((r==="#"||r==="#/")&&i===p.baseId)return d();const c=fa.resolveRef.call(u,p,i,r);if(c===void 0)throw new Ep.default(n.opts.uriResolver,i,r);if(c instanceof fa.SchemaEnv)return E(c);return f(c);function d(){if(s===p)return Kn(e,o,s,s.$async);const h=t.scopeValue("root",{ref:p});return Kn(e,(0,Je._)`${h}.validate`,p,p.$async)}function E(h){const y=Lu(e,h);Kn(e,y,h,h.$async)}function f(h){const y=t.scopeValue("schema",a.code.source===!0?{ref:h,code:(0,Je.stringify)(h)}:{ref:h}),v=t.name("valid"),l=e.subschema({schema:h,dataTypes:[],schemaPath:Je.nil,topSchemaRef:y,errSchemaPath:r},v);e.mergeEvaluated(l),e.ok(v)}}};function Lu(e,t){const{gen:r}=e;return t.validate?r.scopeValue("validate",{ref:t.validate}):(0,Je._)`${r.scopeValue("wrapper",{ref:t})}.validate`}ur.getValidate=Lu;function Kn(e,t,r,n){const{gen:i,it:s}=e,{allErrors:o,schemaEnv:a,opts:u}=s,p=u.passContext?Sr.default.this:Je.nil;n?c():d();function c(){if(!a.$async)throw new Error("async schema referenced by sync schema");const h=i.let("valid");i.try(()=>{i.code((0,Je._)`await ${(0,ua.callValidateCode)(e,t,p)}`),f(t),o||i.assign(h,!0)},y=>{i.if((0,Je._)`!(${y} instanceof ${s.ValidationError})`,()=>i.throw(y)),E(y),o||i.assign(h,!1)}),e.ok(h)}function d(){e.result((0,ua.callValidateCode)(e,t,p),()=>f(t),()=>E(t))}function E(h){const y=(0,Je._)`${h}.errors`;i.assign(Sr.default.vErrors,(0,Je._)`${Sr.default.vErrors} === null ? ${y} : ${Sr.default.vErrors}.concat(${y})`),i.assign(Sr.default.errors,(0,Je._)`${Sr.default.vErrors}.length`)}function f(h){var y;if(!s.opts.unevaluated)return;const v=(y=r?.validate)===null||y===void 0?void 0:y.evaluated;if(s.props!==!0)if(v&&!v.dynamicProps)v.props!==void 0&&(s.props=jn.mergeEvaluated.props(i,v.props,s.props));else{const l=i.var("props",(0,Je._)`${h}.evaluated.props`);s.props=jn.mergeEvaluated.props(i,l,s.props,Je.Name)}if(s.items!==!0)if(v&&!v.dynamicItems)v.items!==void 0&&(s.items=jn.mergeEvaluated.items(i,v.items,s.items));else{const l=i.var("items",(0,Je._)`${h}.evaluated.items`);s.items=jn.mergeEvaluated.items(i,l,s.items,Je.Name)}}}ur.callRef=Kn;ur.default=gp;Object.defineProperty(Ms,"__esModule",{value:!0});const $p=ks,_p=ur,Sp=["$schema","$id","$defs","$vocabulary",{keyword:"$comment"},"definitions",$p.default,_p.default];Ms.default=Sp;var Us={},Vs={};Object.defineProperty(Vs,"__esModule",{value:!0});const ei=re,Ut=ei.operators,ti={maximum:{okStr:"<=",ok:Ut.LTE,fail:Ut.GT},minimum:{okStr:">=",ok:Ut.GTE,fail:Ut.LT},exclusiveMaximum:{okStr:"<",ok:Ut.LT,fail:Ut.GTE},exclusiveMinimum:{okStr:">",ok:Ut.GT,fail:Ut.LTE}},wp={message:({keyword:e,schemaCode:t})=>(0,ei.str)`must be ${ti[e].okStr} ${t}`,params:({keyword:e,schemaCode:t})=>(0,ei._)`{comparison: ${ti[e].okStr}, limit: ${t}}`},Np={keyword:Object.keys(ti),type:"number",schemaType:"number",$data:!0,error:wp,code(e){const{keyword:t,data:r,schemaCode:n}=e;e.fail$data((0,ei._)`${r} ${ti[t].fail} ${n} || isNaN(${r})`)}};Vs.default=Np;var xs={};Object.defineProperty(xs,"__esModule",{value:!0});const an=re,Ip={message:({schemaCode:e})=>(0,an.str)`must be multiple of ${e}`,params:({schemaCode:e})=>(0,an._)`{multipleOf: ${e}}`},Op={keyword:"multipleOf",type:"number",schemaType:"number",$data:!0,error:Ip,code(e){const{gen:t,data:r,schemaCode:n,it:i}=e,s=i.opts.multipleOfPrecision,o=t.let("res"),a=s?(0,an._)`Math.abs(Math.round(${o}) - ${o}) > 1e-${s}`:(0,an._)`${o} !== parseInt(${o})`;e.fail$data((0,an._)`(${n} === 0 || (${o} = ${r}/${n}, ${a}))`)}};xs.default=Op;var zs={},Gs={};Object.defineProperty(Gs,"__esModule",{value:!0});function Fu(e){const t=e.length;let r=0,n=0,i;for(;n<t;)r++,i=e.charCodeAt(n++),i>=55296&&i<=56319&&n<t&&(i=e.charCodeAt(n),(i&64512)===56320&&n++);return r}Gs.default=Fu;Fu.code='require("ajv/dist/runtime/ucs2length").default';Object.defineProperty(zs,"__esModule",{value:!0});const nr=re,Tp=ue,Dp=Gs,Rp={message({keyword:e,schemaCode:t}){const r=e==="maxLength"?"more":"fewer";return(0,nr.str)`must NOT have ${r} than ${t} characters`},params:({schemaCode:e})=>(0,nr._)`{limit: ${e}}`},Cp={keyword:["maxLength","minLength"],type:"string",schemaType:"number",$data:!0,error:Rp,code(e){const{keyword:t,data:r,schemaCode:n,it:i}=e,s=t==="maxLength"?nr.operators.GT:nr.operators.LT,o=i.opts.unicode===!1?(0,nr._)`${r}.length`:(0,nr._)`${(0,Tp.useFunc)(e.gen,Dp.default)}(${r})`;e.fail$data((0,nr._)`${o} ${s} ${n}`)}};zs.default=Cp;var Hs={};Object.defineProperty(Hs,"__esModule",{value:!0});const Pp=ne,ri=re,Ap={message:({schemaCode:e})=>(0,ri.str)`must match pattern "${e}"`,params:({schemaCode:e})=>(0,ri._)`{pattern: ${e}}`},bp={keyword:"pattern",type:"string",schemaType:"string",$data:!0,error:Ap,code(e){const{data:t,$data:r,schema:n,schemaCode:i,it:s}=e,o=s.opts.unicodeRegExp?"u":"",a=r?(0,ri._)`(new RegExp(${i}, ${o}))`:(0,Pp.usePattern)(e,n);e.fail$data((0,ri._)`!${a}.test(${t})`)}};Hs.default=bp;var qs={};Object.defineProperty(qs,"__esModule",{value:!0});const cn=re,Lp={message({keyword:e,schemaCode:t}){const r=e==="maxProperties"?"more":"fewer";return(0,cn.str)`must NOT have ${r} than ${t} properties`},params:({schemaCode:e})=>(0,cn._)`{limit: ${e}}`},Fp={keyword:["maxProperties","minProperties"],type:"object",schemaType:"number",$data:!0,error:Lp,code(e){const{keyword:t,data:r,schemaCode:n}=e,i=t==="maxProperties"?cn.operators.GT:cn.operators.LT;e.fail$data((0,cn._)`Object.keys(${r}).length ${i} ${n}`)}};qs.default=Fp;var Bs={};Object.defineProperty(Bs,"__esModule",{value:!0});const Yr=ne,un=re,jp=ue,Mp={message:({params:{missingProperty:e}})=>(0,un.str)`must have required property '${e}'`,params:({params:{missingProperty:e}})=>(0,un._)`{missingProperty: ${e}}`},kp={keyword:"required",type:"object",schemaType:"array",$data:!0,error:Mp,code(e){const{gen:t,schema:r,schemaCode:n,data:i,$data:s,it:o}=e,{opts:a}=o;if(!s&&r.length===0)return;const u=r.length>=a.loopRequired;if(o.allErrors?p():c(),a.strictRequired){const f=e.parentSchema.properties,{definedProperties:h}=e.it;for(const y of r)if(f?.[y]===void 0&&!h.has(y)){const v=o.schemaEnv.baseId+o.errSchemaPath,l=`required property "${y}" is not defined at "${v}" (strictRequired)`;(0,jp.checkStrictMode)(o,l,o.opts.strictRequired)}}function p(){if(u||s)e.block$data(un.nil,d);else for(const f of r)(0,Yr.checkReportMissingProp)(e,f)}function c(){const f=t.let("missing");if(u||s){const h=t.let("valid",!0);e.block$data(h,()=>E(f,h)),e.ok(h)}else t.if((0,Yr.checkMissingProp)(e,r,f)),(0,Yr.reportMissingProp)(e,f),t.else()}function d(){t.forOf("prop",n,f=>{e.setParams({missingProperty:f}),t.if((0,Yr.noPropertyInData)(t,i,f,a.ownProperties),()=>e.error())})}function E(f,h){e.setParams({missingProperty:f}),t.forOf(f,n,()=>{t.assign(h,(0,Yr.propertyInData)(t,i,f,a.ownProperties)),t.if((0,un.not)(h),()=>{e.error(),t.break()})},un.nil)}}};Bs.default=kp;var Ks={};Object.defineProperty(Ks,"__esModule",{value:!0});const fn=re,Up={message({keyword:e,schemaCode:t}){const r=e==="maxItems"?"more":"fewer";return(0,fn.str)`must NOT have ${r} than ${t} items`},params:({schemaCode:e})=>(0,fn._)`{limit: ${e}}`},Vp={keyword:["maxItems","minItems"],type:"array",schemaType:"number",$data:!0,error:Up,code(e){const{keyword:t,data:r,schemaCode:n}=e,i=t==="maxItems"?fn.operators.GT:fn.operators.LT;e.fail$data((0,fn._)`${r}.length ${i} ${n}`)}};Ks.default=Vp;var Ws={},wn={};Object.defineProperty(wn,"__esModule",{value:!0});const ju=yu;ju.code='require("ajv/dist/runtime/equal").default';wn.default=ju;Object.defineProperty(Ws,"__esModule",{value:!0});const Li=$n,Le=re,xp=ue,zp=wn,Gp={message:({params:{i:e,j:t}})=>(0,Le.str)`must NOT have duplicate items (items ## ${t} and ${e} are identical)`,params:({params:{i:e,j:t}})=>(0,Le._)`{i: ${e}, j: ${t}}`},Hp={keyword:"uniqueItems",type:"array",schemaType:"boolean",$data:!0,error:Gp,code(e){const{gen:t,data:r,$data:n,schema:i,parentSchema:s,schemaCode:o,it:a}=e;if(!n&&!i)return;const u=t.let("valid"),p=s.items?(0,Li.getSchemaTypes)(s.items):[];e.block$data(u,c,(0,Le._)`${o} === false`),e.ok(u);function c(){const h=t.let("i",(0,Le._)`${r}.length`),y=t.let("j");e.setParams({i:h,j:y}),t.assign(u,!0),t.if((0,Le._)`${h} > 1`,()=>(d()?E:f)(h,y))}function d(){return p.length>0&&!p.some(h=>h==="object"||h==="array")}function E(h,y){const v=t.name("item"),l=(0,Li.checkDataTypes)(p,v,a.opts.strictNumbers,Li.DataType.Wrong),$=t.const("indices",(0,Le._)`{}`);t.for((0,Le._)`;${h}--;`,()=>{t.let(v,(0,Le._)`${r}[${h}]`),t.if(l,(0,Le._)`continue`),p.length>1&&t.if((0,Le._)`typeof ${v} == "string"`,(0,Le._)`${v} += "_"`),t.if((0,Le._)`typeof ${$}[${v}] == "number"`,()=>{t.assign(y,(0,Le._)`${$}[${v}]`),e.error(),t.assign(u,!1).break()}).code((0,Le._)`${$}[${v}] = ${h}`)})}function f(h,y){const v=(0,xp.useFunc)(t,zp.default),l=t.name("outer");t.label(l).for((0,Le._)`;${h}--;`,()=>t.for((0,Le._)`${y} = ${h}; ${y}--;`,()=>t.if((0,Le._)`${v}(${r}[${h}], ${r}[${y}])`,()=>{e.error(),t.assign(u,!1).break(l)})))}}};Ws.default=Hp;var Zs={};Object.defineProperty(Zs,"__esModule",{value:!0});const rs=re,qp=ue,Bp=wn,Kp={message:"must be equal to constant",params:({schemaCode:e})=>(0,rs._)`{allowedValue: ${e}}`},Wp={keyword:"const",$data:!0,error:Kp,code(e){const{gen:t,data:r,$data:n,schemaCode:i,schema:s}=e;n||s&&typeof s=="object"?e.fail$data((0,rs._)`!${(0,qp.useFunc)(t,Bp.default)}(${r}, ${i})`):e.fail((0,rs._)`${s} !== ${r}`)}};Zs.default=Wp;var Xs={};Object.defineProperty(Xs,"__esModule",{value:!0});const tn=re,Zp=ue,Xp=wn,Jp={message:"must be equal to one of the allowed values",params:({schemaCode:e})=>(0,tn._)`{allowedValues: ${e}}`},Yp={keyword:"enum",schemaType:"array",$data:!0,error:Jp,code(e){const{gen:t,data:r,$data:n,schema:i,schemaCode:s,it:o}=e;if(!n&&i.length===0)throw new Error("enum must have non-empty array");const a=i.length>=o.opts.loopEnum;let u;const p=()=>u??(u=(0,Zp.useFunc)(t,Xp.default));let c;if(a||n)c=t.let("valid"),e.block$data(c,d);else{if(!Array.isArray(i))throw new Error("ajv implementation error");const f=t.const("vSchema",s);c=(0,tn.or)(...i.map((h,y)=>E(f,y)))}e.pass(c);function d(){t.assign(c,!1),t.forOf("v",s,f=>t.if((0,tn._)`${p()}(${r}, ${f})`,()=>t.assign(c,!0).break()))}function E(f,h){const y=i[h];return typeof y=="object"&&y!==null?(0,tn._)`${p()}(${r}, ${f}[${h}])`:(0,tn._)`${r} === ${y}`}}};Xs.default=Yp;Object.defineProperty(Us,"__esModule",{value:!0});const Qp=Vs,ey=xs,ty=zs,ry=Hs,ny=qs,iy=Bs,sy=Ks,oy=Ws,ay=Zs,cy=Xs,uy=[Qp.default,ey.default,ty.default,ry.default,ny.default,iy.default,sy.default,oy.default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},ay.default,cy.default];Us.default=uy;var Js={},Ur={};Object.defineProperty(Ur,"__esModule",{value:!0});Ur.validateAdditionalItems=void 0;const ir=re,ns=ue,fy={message:({params:{len:e}})=>(0,ir.str)`must NOT have more than ${e} items`,params:({params:{len:e}})=>(0,ir._)`{limit: ${e}}`},ly={keyword:"additionalItems",type:"array",schemaType:["boolean","object"],before:"uniqueItems",error:fy,code(e){const{parentSchema:t,it:r}=e,{items:n}=t;if(!Array.isArray(n)){(0,ns.checkStrictMode)(r,'"additionalItems" is ignored when "items" is not an array of schemas');return}Mu(e,n)}};function Mu(e,t){const{gen:r,schema:n,data:i,keyword:s,it:o}=e;o.items=!0;const a=r.const("len",(0,ir._)`${i}.length`);if(n===!1)e.setParams({len:t.length}),e.pass((0,ir._)`${a} <= ${t.length}`);else if(typeof n=="object"&&!(0,ns.alwaysValidSchema)(o,n)){const p=r.var("valid",(0,ir._)`${a} <= ${t.length}`);r.if((0,ir.not)(p),()=>u(p)),e.ok(p)}function u(p){r.forRange("i",t.length,a,c=>{e.subschema({keyword:s,dataProp:c,dataPropType:ns.Type.Num},p),o.allErrors||r.if((0,ir.not)(p),()=>r.break())})}}Ur.validateAdditionalItems=Mu;Ur.default=ly;var Ys={},Vr={};Object.defineProperty(Vr,"__esModule",{value:!0});Vr.validateTuple=void 0;const la=re,Wn=ue,dy=ne,hy={keyword:"items",type:"array",schemaType:["object","array","boolean"],before:"uniqueItems",code(e){const{schema:t,it:r}=e;if(Array.isArray(t))return ku(e,"additionalItems",t);r.items=!0,!(0,Wn.alwaysValidSchema)(r,t)&&e.ok((0,dy.validateArray)(e))}};function ku(e,t,r=e.schema){const{gen:n,parentSchema:i,data:s,keyword:o,it:a}=e;c(i),a.opts.unevaluated&&r.length&&a.items!==!0&&(a.items=Wn.mergeEvaluated.items(n,r.length,a.items));const u=n.name("valid"),p=n.const("len",(0,la._)`${s}.length`);r.forEach((d,E)=>{(0,Wn.alwaysValidSchema)(a,d)||(n.if((0,la._)`${p} > ${E}`,()=>e.subschema({keyword:o,schemaProp:E,dataProp:E},u)),e.ok(u))});function c(d){const{opts:E,errSchemaPath:f}=a,h=r.length,y=h===d.minItems&&(h===d.maxItems||d[t]===!1);if(E.strictTuples&&!y){const v=`"${o}" is ${h}-tuple, but minItems or maxItems/${t} are not specified or different at path "${f}"`;(0,Wn.checkStrictMode)(a,v,E.strictTuples)}}}Vr.validateTuple=ku;Vr.default=hy;Object.defineProperty(Ys,"__esModule",{value:!0});const my=Vr,py={keyword:"prefixItems",type:"array",schemaType:["array"],before:"uniqueItems",code:e=>(0,my.validateTuple)(e,"items")};Ys.default=py;var Qs={};Object.defineProperty(Qs,"__esModule",{value:!0});const da=re,yy=ue,vy=ne,Ey=Ur,gy={message:({params:{len:e}})=>(0,da.str)`must NOT have more than ${e} items`,params:({params:{len:e}})=>(0,da._)`{limit: ${e}}`},$y={keyword:"items",type:"array",schemaType:["object","boolean"],before:"uniqueItems",error:gy,code(e){const{schema:t,parentSchema:r,it:n}=e,{prefixItems:i}=r;n.items=!0,!(0,yy.alwaysValidSchema)(n,t)&&(i?(0,Ey.validateAdditionalItems)(e,i):e.ok((0,vy.validateArray)(e)))}};Qs.default=$y;var eo={};Object.defineProperty(eo,"__esModule",{value:!0});const ut=re,Mn=ue,_y={message:({params:{min:e,max:t}})=>t===void 0?(0,ut.str)`must contain at least ${e} valid item(s)`:(0,ut.str)`must contain at least ${e} and no more than ${t} valid item(s)`,params:({params:{min:e,max:t}})=>t===void 0?(0,ut._)`{minContains: ${e}}`:(0,ut._)`{minContains: ${e}, maxContains: ${t}}`},Sy={keyword:"contains",type:"array",schemaType:["object","boolean"],before:"uniqueItems",trackErrors:!0,error:_y,code(e){const{gen:t,schema:r,parentSchema:n,data:i,it:s}=e;let o,a;const{minContains:u,maxContains:p}=n;s.opts.next?(o=u===void 0?1:u,a=p):o=1;const c=t.const("len",(0,ut._)`${i}.length`);if(e.setParams({min:o,max:a}),a===void 0&&o===0){(0,Mn.checkStrictMode)(s,'"minContains" == 0 without "maxContains": "contains" keyword ignored');return}if(a!==void 0&&o>a){(0,Mn.checkStrictMode)(s,'"minContains" > "maxContains" is always invalid'),e.fail();return}if((0,Mn.alwaysValidSchema)(s,r)){let y=(0,ut._)`${c} >= ${o}`;a!==void 0&&(y=(0,ut._)`${y} && ${c} <= ${a}`),e.pass(y);return}s.items=!0;const d=t.name("valid");a===void 0&&o===1?f(d,()=>t.if(d,()=>t.break())):o===0?(t.let(d,!0),a!==void 0&&t.if((0,ut._)`${i}.length > 0`,E)):(t.let(d,!1),E()),e.result(d,()=>e.reset());function E(){const y=t.name("_valid"),v=t.let("count",0);f(y,()=>t.if(y,()=>h(v)))}function f(y,v){t.forRange("i",0,c,l=>{e.subschema({keyword:"contains",dataProp:l,dataPropType:Mn.Type.Num,compositeRule:!0},y),v()})}function h(y){t.code((0,ut._)`${y}++`),a===void 0?t.if((0,ut._)`${y} >= ${o}`,()=>t.assign(d,!0).break()):(t.if((0,ut._)`${y} > ${a}`,()=>t.assign(d,!1).break()),o===1?t.assign(d,!0):t.if((0,ut._)`${y} >= ${o}`,()=>t.assign(d,!0)))}}};eo.default=Sy;var Uu={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.validateSchemaDeps=e.validatePropertyDeps=e.error=void 0;const t=re,r=ue,n=ne;e.error={message:({params:{property:u,depsCount:p,deps:c}})=>{const d=p===1?"property":"properties";return(0,t.str)`must have ${d} ${c} when property ${u} is present`},params:({params:{property:u,depsCount:p,deps:c,missingProperty:d}})=>(0,t._)`{property: ${u},
12
- missingProperty: ${d},
13
- depsCount: ${p},
14
- deps: ${c}}`};const i={keyword:"dependencies",type:"object",schemaType:"object",error:e.error,code(u){const[p,c]=s(u);o(u,p),a(u,c)}};function s({schema:u}){const p={},c={};for(const d in u){if(d==="__proto__")continue;const E=Array.isArray(u[d])?p:c;E[d]=u[d]}return[p,c]}function o(u,p=u.schema){const{gen:c,data:d,it:E}=u;if(Object.keys(p).length===0)return;const f=c.let("missing");for(const h in p){const y=p[h];if(y.length===0)continue;const v=(0,n.propertyInData)(c,d,h,E.opts.ownProperties);u.setParams({property:h,depsCount:y.length,deps:y.join(", ")}),E.allErrors?c.if(v,()=>{for(const l of y)(0,n.checkReportMissingProp)(u,l)}):(c.if((0,t._)`${v} && (${(0,n.checkMissingProp)(u,y,f)})`),(0,n.reportMissingProp)(u,f),c.else())}}e.validatePropertyDeps=o;function a(u,p=u.schema){const{gen:c,data:d,keyword:E,it:f}=u,h=c.name("valid");for(const y in p)(0,r.alwaysValidSchema)(f,p[y])||(c.if((0,n.propertyInData)(c,d,y,f.opts.ownProperties),()=>{const v=u.subschema({keyword:E,schemaProp:y},h);u.mergeValidEvaluated(v,h)},()=>c.var(h,!0)),u.ok(h))}e.validateSchemaDeps=a,e.default=i})(Uu);var to={};Object.defineProperty(to,"__esModule",{value:!0});const Vu=re,wy=ue,Ny={message:"property name must be valid",params:({params:e})=>(0,Vu._)`{propertyName: ${e.propertyName}}`},Iy={keyword:"propertyNames",type:"object",schemaType:["object","boolean"],error:Ny,code(e){const{gen:t,schema:r,data:n,it:i}=e;if((0,wy.alwaysValidSchema)(i,r))return;const s=t.name("valid");t.forIn("key",n,o=>{e.setParams({propertyName:o}),e.subschema({keyword:"propertyNames",data:o,dataTypes:["string"],propertyName:o,compositeRule:!0},s),t.if((0,Vu.not)(s),()=>{e.error(!0),i.allErrors||t.break()})}),e.ok(s)}};to.default=Iy;var yi={};Object.defineProperty(yi,"__esModule",{value:!0});const kn=ne,lt=re,Oy=Ct,Un=ue,Ty={message:"must NOT have additional properties",params:({params:e})=>(0,lt._)`{additionalProperty: ${e.additionalProperty}}`},Dy={keyword:"additionalProperties",type:["object"],schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:Ty,code(e){const{gen:t,schema:r,parentSchema:n,data:i,errsCount:s,it:o}=e;if(!s)throw new Error("ajv implementation error");const{allErrors:a,opts:u}=o;if(o.props=!0,u.removeAdditional!=="all"&&(0,Un.alwaysValidSchema)(o,r))return;const p=(0,kn.allSchemaProperties)(n.properties),c=(0,kn.allSchemaProperties)(n.patternProperties);d(),e.ok((0,lt._)`${s} === ${Oy.default.errors}`);function d(){t.forIn("key",i,v=>{!p.length&&!c.length?h(v):t.if(E(v),()=>h(v))})}function E(v){let l;if(p.length>8){const $=(0,Un.schemaRefOrVal)(o,n.properties,"properties");l=(0,kn.isOwnProperty)(t,$,v)}else p.length?l=(0,lt.or)(...p.map($=>(0,lt._)`${v} === ${$}`)):l=lt.nil;return c.length&&(l=(0,lt.or)(l,...c.map($=>(0,lt._)`${(0,kn.usePattern)(e,$)}.test(${v})`))),(0,lt.not)(l)}function f(v){t.code((0,lt._)`delete ${i}[${v}]`)}function h(v){if(u.removeAdditional==="all"||u.removeAdditional&&r===!1){f(v);return}if(r===!1){e.setParams({additionalProperty:v}),e.error(),a||t.break();return}if(typeof r=="object"&&!(0,Un.alwaysValidSchema)(o,r)){const l=t.name("valid");u.removeAdditional==="failing"?(y(v,l,!1),t.if((0,lt.not)(l),()=>{e.reset(),f(v)})):(y(v,l),a||t.if((0,lt.not)(l),()=>t.break()))}}function y(v,l,$){const S={keyword:"additionalProperties",dataProp:v,dataPropType:Un.Type.Str};$===!1&&Object.assign(S,{compositeRule:!0,createErrors:!1,allErrors:!1}),e.subschema(S,l)}}};yi.default=Dy;var ro={};Object.defineProperty(ro,"__esModule",{value:!0});const Ry=pt,ha=ne,Fi=ue,ma=yi,Cy={keyword:"properties",type:"object",schemaType:"object",code(e){const{gen:t,schema:r,parentSchema:n,data:i,it:s}=e;s.opts.removeAdditional==="all"&&n.additionalProperties===void 0&&ma.default.code(new Ry.KeywordCxt(s,ma.default,"additionalProperties"));const o=(0,ha.allSchemaProperties)(r);for(const d of o)s.definedProperties.add(d);s.opts.unevaluated&&o.length&&s.props!==!0&&(s.props=Fi.mergeEvaluated.props(t,(0,Fi.toHash)(o),s.props));const a=o.filter(d=>!(0,Fi.alwaysValidSchema)(s,r[d]));if(a.length===0)return;const u=t.name("valid");for(const d of a)p(d)?c(d):(t.if((0,ha.propertyInData)(t,i,d,s.opts.ownProperties)),c(d),s.allErrors||t.else().var(u,!0),t.endIf()),e.it.definedProperties.add(d),e.ok(u);function p(d){return s.opts.useDefaults&&!s.compositeRule&&r[d].default!==void 0}function c(d){e.subschema({keyword:"properties",schemaProp:d,dataProp:d},u)}}};ro.default=Cy;var no={};Object.defineProperty(no,"__esModule",{value:!0});const pa=ne,Vn=re,ya=ue,va=ue,Py={keyword:"patternProperties",type:"object",schemaType:"object",code(e){const{gen:t,schema:r,data:n,parentSchema:i,it:s}=e,{opts:o}=s,a=(0,pa.allSchemaProperties)(r),u=a.filter(y=>(0,ya.alwaysValidSchema)(s,r[y]));if(a.length===0||u.length===a.length&&(!s.opts.unevaluated||s.props===!0))return;const p=o.strictSchema&&!o.allowMatchingProperties&&i.properties,c=t.name("valid");s.props!==!0&&!(s.props instanceof Vn.Name)&&(s.props=(0,va.evaluatedPropsToName)(t,s.props));const{props:d}=s;E();function E(){for(const y of a)p&&f(y),s.allErrors?h(y):(t.var(c,!0),h(y),t.if(c))}function f(y){for(const v in p)new RegExp(y).test(v)&&(0,ya.checkStrictMode)(s,`property ${v} matches pattern ${y} (use allowMatchingProperties)`)}function h(y){t.forIn("key",n,v=>{t.if((0,Vn._)`${(0,pa.usePattern)(e,y)}.test(${v})`,()=>{const l=u.includes(y);l||e.subschema({keyword:"patternProperties",schemaProp:y,dataProp:v,dataPropType:va.Type.Str},c),s.opts.unevaluated&&d!==!0?t.assign((0,Vn._)`${d}[${v}]`,!0):!l&&!s.allErrors&&t.if((0,Vn.not)(c),()=>t.break())})})}}};no.default=Py;var io={};Object.defineProperty(io,"__esModule",{value:!0});const Ay=ue,by={keyword:"not",schemaType:["object","boolean"],trackErrors:!0,code(e){const{gen:t,schema:r,it:n}=e;if((0,Ay.alwaysValidSchema)(n,r)){e.fail();return}const i=t.name("valid");e.subschema({keyword:"not",compositeRule:!0,createErrors:!1,allErrors:!1},i),e.failResult(i,()=>e.reset(),()=>e.error())},error:{message:"must NOT be valid"}};io.default=by;var so={};Object.defineProperty(so,"__esModule",{value:!0});const Ly=ne,Fy={keyword:"anyOf",schemaType:"array",trackErrors:!0,code:Ly.validateUnion,error:{message:"must match a schema in anyOf"}};so.default=Fy;var oo={};Object.defineProperty(oo,"__esModule",{value:!0});const Zn=re,jy=ue,My={message:"must match exactly one schema in oneOf",params:({params:e})=>(0,Zn._)`{passingSchemas: ${e.passing}}`},ky={keyword:"oneOf",schemaType:"array",trackErrors:!0,error:My,code(e){const{gen:t,schema:r,parentSchema:n,it:i}=e;if(!Array.isArray(r))throw new Error("ajv implementation error");if(i.opts.discriminator&&n.discriminator)return;const s=r,o=t.let("valid",!1),a=t.let("passing",null),u=t.name("_valid");e.setParams({passing:a}),t.block(p),e.result(o,()=>e.reset(),()=>e.error(!0));function p(){s.forEach((c,d)=>{let E;(0,jy.alwaysValidSchema)(i,c)?t.var(u,!0):E=e.subschema({keyword:"oneOf",schemaProp:d,compositeRule:!0},u),d>0&&t.if((0,Zn._)`${u} && ${o}`).assign(o,!1).assign(a,(0,Zn._)`[${a}, ${d}]`).else(),t.if(u,()=>{t.assign(o,!0),t.assign(a,d),E&&e.mergeEvaluated(E,Zn.Name)})})}}};oo.default=ky;var ao={};Object.defineProperty(ao,"__esModule",{value:!0});const Uy=ue,Vy={keyword:"allOf",schemaType:"array",code(e){const{gen:t,schema:r,it:n}=e;if(!Array.isArray(r))throw new Error("ajv implementation error");const i=t.name("valid");r.forEach((s,o)=>{if((0,Uy.alwaysValidSchema)(n,s))return;const a=e.subschema({keyword:"allOf",schemaProp:o},i);e.ok(i),e.mergeEvaluated(a)})}};ao.default=Vy;var co={};Object.defineProperty(co,"__esModule",{value:!0});const ni=re,xu=ue,xy={message:({params:e})=>(0,ni.str)`must match "${e.ifClause}" schema`,params:({params:e})=>(0,ni._)`{failingKeyword: ${e.ifClause}}`},zy={keyword:"if",schemaType:["object","boolean"],trackErrors:!0,error:xy,code(e){const{gen:t,parentSchema:r,it:n}=e;r.then===void 0&&r.else===void 0&&(0,xu.checkStrictMode)(n,'"if" without "then" and "else" is ignored');const i=Ea(n,"then"),s=Ea(n,"else");if(!i&&!s)return;const o=t.let("valid",!0),a=t.name("_valid");if(u(),e.reset(),i&&s){const c=t.let("ifClause");e.setParams({ifClause:c}),t.if(a,p("then",c),p("else",c))}else i?t.if(a,p("then")):t.if((0,ni.not)(a),p("else"));e.pass(o,()=>e.error(!0));function u(){const c=e.subschema({keyword:"if",compositeRule:!0,createErrors:!1,allErrors:!1},a);e.mergeEvaluated(c)}function p(c,d){return()=>{const E=e.subschema({keyword:c},a);t.assign(o,a),e.mergeValidEvaluated(E,o),d?t.assign(d,(0,ni._)`${c}`):e.setParams({ifClause:c})}}}};function Ea(e,t){const r=e.schema[t];return r!==void 0&&!(0,xu.alwaysValidSchema)(e,r)}co.default=zy;var uo={};Object.defineProperty(uo,"__esModule",{value:!0});const Gy=ue,Hy={keyword:["then","else"],schemaType:["object","boolean"],code({keyword:e,parentSchema:t,it:r}){t.if===void 0&&(0,Gy.checkStrictMode)(r,`"${e}" without "if" is ignored`)}};uo.default=Hy;Object.defineProperty(Js,"__esModule",{value:!0});const qy=Ur,By=Ys,Ky=Vr,Wy=Qs,Zy=eo,Xy=Uu,Jy=to,Yy=yi,Qy=ro,e0=no,t0=io,r0=so,n0=oo,i0=ao,s0=co,o0=uo;function a0(e=!1){const t=[t0.default,r0.default,n0.default,i0.default,s0.default,o0.default,Jy.default,Yy.default,Xy.default,Qy.default,e0.default];return e?t.push(By.default,Wy.default):t.push(qy.default,Ky.default),t.push(Zy.default),t}Js.default=a0;var fo={},lo={};Object.defineProperty(lo,"__esModule",{value:!0});const Te=re,c0={message:({schemaCode:e})=>(0,Te.str)`must match format "${e}"`,params:({schemaCode:e})=>(0,Te._)`{format: ${e}}`},u0={keyword:"format",type:["number","string"],schemaType:"string",$data:!0,error:c0,code(e,t){const{gen:r,data:n,$data:i,schema:s,schemaCode:o,it:a}=e,{opts:u,errSchemaPath:p,schemaEnv:c,self:d}=a;if(!u.validateFormats)return;i?E():f();function E(){const h=r.scopeValue("formats",{ref:d.formats,code:u.code.formats}),y=r.const("fDef",(0,Te._)`${h}[${o}]`),v=r.let("fType"),l=r.let("format");r.if((0,Te._)`typeof ${y} == "object" && !(${y} instanceof RegExp)`,()=>r.assign(v,(0,Te._)`${y}.type || "string"`).assign(l,(0,Te._)`${y}.validate`),()=>r.assign(v,(0,Te._)`"string"`).assign(l,y)),e.fail$data((0,Te.or)($(),S()));function $(){return u.strictSchema===!1?Te.nil:(0,Te._)`${o} && !${l}`}function S(){const D=c.$async?(0,Te._)`(${y}.async ? await ${l}(${n}) : ${l}(${n}))`:(0,Te._)`${l}(${n})`,V=(0,Te._)`(typeof ${l} == "function" ? ${D} : ${l}.test(${n}))`;return(0,Te._)`${l} && ${l} !== true && ${v} === ${t} && !${V}`}}function f(){const h=d.formats[s];if(!h){$();return}if(h===!0)return;const[y,v,l]=S(h);y===t&&e.pass(D());function $(){if(u.strictSchema===!1){d.logger.warn(V());return}throw new Error(V());function V(){return`unknown format "${s}" ignored in schema at path "${p}"`}}function S(V){const T=V instanceof RegExp?(0,Te.regexpCode)(V):u.code.formats?(0,Te._)`${u.code.formats}${(0,Te.getProperty)(s)}`:void 0,P=r.scopeValue("formats",{key:s,ref:V,code:T});return typeof V=="object"&&!(V instanceof RegExp)?[V.type||"string",V.validate,(0,Te._)`${P}.validate`]:["string",V,P]}function D(){if(typeof h=="object"&&!(h instanceof RegExp)&&h.async){if(!c.$async)throw new Error("async format in sync schema");return(0,Te._)`await ${l}(${n})`}return typeof v=="function"?(0,Te._)`${l}(${n})`:(0,Te._)`${l}.test(${n})`}}}};lo.default=u0;Object.defineProperty(fo,"__esModule",{value:!0});const f0=lo,l0=[f0.default];fo.default=l0;var jr={};Object.defineProperty(jr,"__esModule",{value:!0});jr.contentVocabulary=jr.metadataVocabulary=void 0;jr.metadataVocabulary=["title","description","default","deprecated","readOnly","writeOnly","examples"];jr.contentVocabulary=["contentMediaType","contentEncoding","contentSchema"];Object.defineProperty(js,"__esModule",{value:!0});const d0=Ms,h0=Us,m0=Js,p0=fo,ga=jr,y0=[d0.default,h0.default,(0,m0.default)(),p0.default,ga.metadataVocabulary,ga.contentVocabulary];js.default=y0;var ho={},zu={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.DiscrError=void 0,function(t){t.Tag="tag",t.Mapping="mapping"}(e.DiscrError||(e.DiscrError={}))})(zu);Object.defineProperty(ho,"__esModule",{value:!0});const Ir=re,is=zu,$a=Ye,v0=ue,E0={message:({params:{discrError:e,tagName:t}})=>e===is.DiscrError.Tag?`tag "${t}" must be string`:`value of tag "${t}" must be in oneOf`,params:({params:{discrError:e,tag:t,tagName:r}})=>(0,Ir._)`{error: ${e}, tag: ${r}, tagValue: ${t}}`},g0={keyword:"discriminator",type:"object",schemaType:"object",error:E0,code(e){const{gen:t,data:r,schema:n,parentSchema:i,it:s}=e,{oneOf:o}=i;if(!s.opts.discriminator)throw new Error("discriminator: requires discriminator option");const a=n.propertyName;if(typeof a!="string")throw new Error("discriminator: requires propertyName");if(n.mapping)throw new Error("discriminator: mapping is not supported");if(!o)throw new Error("discriminator: requires oneOf keyword");const u=t.let("valid",!1),p=t.const("tag",(0,Ir._)`${r}${(0,Ir.getProperty)(a)}`);t.if((0,Ir._)`typeof ${p} == "string"`,()=>c(),()=>e.error(!1,{discrError:is.DiscrError.Tag,tag:p,tagName:a})),e.ok(u);function c(){const f=E();t.if(!1);for(const h in f)t.elseIf((0,Ir._)`${p} === ${h}`),t.assign(u,d(f[h]));t.else(),e.error(!1,{discrError:is.DiscrError.Mapping,tag:p,tagName:a}),t.endIf()}function d(f){const h=t.name("valid"),y=e.subschema({keyword:"oneOf",schemaProp:f},h);return e.mergeEvaluated(y,Ir.Name),h}function E(){var f;const h={},y=l(i);let v=!0;for(let D=0;D<o.length;D++){let V=o[D];V?.$ref&&!(0,v0.schemaHasRulesButRef)(V,s.self.RULES)&&(V=$a.resolveRef.call(s.self,s.schemaEnv.root,s.baseId,V?.$ref),V instanceof $a.SchemaEnv&&(V=V.schema));const T=(f=V?.properties)===null||f===void 0?void 0:f[a];if(typeof T!="object")throw new Error(`discriminator: oneOf subschemas (or referenced schemas) must have "properties/${a}"`);v=v&&(y||l(V)),$(T,D)}if(!v)throw new Error(`discriminator: "${a}" must be required`);return h;function l({required:D}){return Array.isArray(D)&&D.includes(a)}function $(D,V){if(D.const)S(D.const,V);else if(D.enum)for(const T of D.enum)S(T,V);else throw new Error(`discriminator: "properties/${a}" must have "const" or "enum"`)}function S(D,V){if(typeof D!="string"||D in h)throw new Error(`discriminator: "${a}" values must be unique strings`);h[D]=V}}}};ho.default=g0;const $0="http://json-schema.org/draft-07/schema#",_0="http://json-schema.org/draft-07/schema#",S0="Core schema meta-schema",w0={schemaArray:{type:"array",minItems:1,items:{$ref:"#"}},nonNegativeInteger:{type:"integer",minimum:0},nonNegativeIntegerDefault0:{allOf:[{$ref:"#/definitions/nonNegativeInteger"},{default:0}]},simpleTypes:{enum:["array","boolean","integer","null","number","object","string"]},stringArray:{type:"array",items:{type:"string"},uniqueItems:!0,default:[]}},N0=["object","boolean"],I0={$id:{type:"string",format:"uri-reference"},$schema:{type:"string",format:"uri"},$ref:{type:"string",format:"uri-reference"},$comment:{type:"string"},title:{type:"string"},description:{type:"string"},default:!0,readOnly:{type:"boolean",default:!1},examples:{type:"array",items:!0},multipleOf:{type:"number",exclusiveMinimum:0},maximum:{type:"number"},exclusiveMaximum:{type:"number"},minimum:{type:"number"},exclusiveMinimum:{type:"number"},maxLength:{$ref:"#/definitions/nonNegativeInteger"},minLength:{$ref:"#/definitions/nonNegativeIntegerDefault0"},pattern:{type:"string",format:"regex"},additionalItems:{$ref:"#"},items:{anyOf:[{$ref:"#"},{$ref:"#/definitions/schemaArray"}],default:!0},maxItems:{$ref:"#/definitions/nonNegativeInteger"},minItems:{$ref:"#/definitions/nonNegativeIntegerDefault0"},uniqueItems:{type:"boolean",default:!1},contains:{$ref:"#"},maxProperties:{$ref:"#/definitions/nonNegativeInteger"},minProperties:{$ref:"#/definitions/nonNegativeIntegerDefault0"},required:{$ref:"#/definitions/stringArray"},additionalProperties:{$ref:"#"},definitions:{type:"object",additionalProperties:{$ref:"#"},default:{}},properties:{type:"object",additionalProperties:{$ref:"#"},default:{}},patternProperties:{type:"object",additionalProperties:{$ref:"#"},propertyNames:{format:"regex"},default:{}},dependencies:{type:"object",additionalProperties:{anyOf:[{$ref:"#"},{$ref:"#/definitions/stringArray"}]}},propertyNames:{$ref:"#"},const:!0,enum:{type:"array",items:!0,minItems:1,uniqueItems:!0},type:{anyOf:[{$ref:"#/definitions/simpleTypes"},{type:"array",items:{$ref:"#/definitions/simpleTypes"},minItems:1,uniqueItems:!0}]},format:{type:"string"},contentMediaType:{type:"string"},contentEncoding:{type:"string"},if:{$ref:"#"},then:{$ref:"#"},else:{$ref:"#"},allOf:{$ref:"#/definitions/schemaArray"},anyOf:{$ref:"#/definitions/schemaArray"},oneOf:{$ref:"#/definitions/schemaArray"},not:{$ref:"#"}},O0={$schema:$0,$id:_0,title:S0,definitions:w0,type:N0,properties:I0,default:!0};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.MissingRefError=t.ValidationError=t.CodeGen=t.Name=t.nil=t.stringify=t.str=t._=t.KeywordCxt=void 0;const r=cu,n=js,i=ho,s=O0,o=["/properties"],a="http://json-schema.org/draft-07/schema";class u extends r.default{_addVocabularies(){super._addVocabularies(),n.default.forEach(h=>this.addVocabulary(h)),this.opts.discriminator&&this.addKeyword(i.default)}_addDefaultMetaSchema(){if(super._addDefaultMetaSchema(),!this.opts.meta)return;const h=this.opts.$data?this.$dataMetaSchema(s,o):s;this.addMetaSchema(h,a,!1),this.refs["http://json-schema.org/schema"]=a}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(a)?a:void 0)}}e.exports=t=u,Object.defineProperty(t,"__esModule",{value:!0}),t.default=u;var p=pt;Object.defineProperty(t,"KeywordCxt",{enumerable:!0,get:function(){return p.KeywordCxt}});var c=re;Object.defineProperty(t,"_",{enumerable:!0,get:function(){return c._}}),Object.defineProperty(t,"str",{enumerable:!0,get:function(){return c.str}}),Object.defineProperty(t,"stringify",{enumerable:!0,get:function(){return c.stringify}}),Object.defineProperty(t,"nil",{enumerable:!0,get:function(){return c.nil}}),Object.defineProperty(t,"Name",{enumerable:!0,get:function(){return c.Name}}),Object.defineProperty(t,"CodeGen",{enumerable:!0,get:function(){return c.CodeGen}});var d=_n;Object.defineProperty(t,"ValidationError",{enumerable:!0,get:function(){return d.default}});var E=Sn;Object.defineProperty(t,"MissingRefError",{enumerable:!0,get:function(){return E.default}})})(Yi,Yi.exports);var Gu=Yi.exports,ss={exports:{}},Hu={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.formatNames=e.fastFormats=e.fullFormats=void 0;function t(A,x){return{validate:A,compare:x}}e.fullFormats={date:t(s,o),time:t(u,p),"date-time":t(d,E),duration:/^P(?!$)((\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+S)?)?|(\d+W)?)$/,uri:y,"uri-reference":/^(?:[a-z][a-z0-9+\-.]*:)?(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){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,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[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})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'"()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?(?:\?(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i,"uri-template":/^(?:(?:[^\x00-\x20"'<>%\\^`{|}]|%[0-9a-f]{2})|\{[+#./;?&=,!@|]?(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?(?:,(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?)*\})*$/i,url:/^(?:https?|ftp):\/\/(?:\S+(?::\S*)?@)?(?:(?!(?:10|127)(?:\.\d{1,3}){3})(?!(?:169\.254|192\.168)(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z0-9\u{00a1}-\u{ffff}]+-)*[a-z0-9\u{00a1}-\u{ffff}]+)(?:\.(?:[a-z0-9\u{00a1}-\u{ffff}]+-)*[a-z0-9\u{00a1}-\u{ffff}]+)*(?:\.(?:[a-z\u{00a1}-\u{ffff}]{2,})))(?::\d{2,5})?(?:\/[^\s]*)?$/iu,email:/^[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$/i,hostname:/^(?=.{1,253}\.?$)[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[-0-9a-z]{0,61}[0-9a-z])?)*\.?$/i,ipv4:/^(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)$/,ipv6:/^((([0-9a-f]{1,4}:){7}([0-9a-f]{1,4}|:))|(([0-9a-f]{1,4}:){6}(:[0-9a-f]{1,4}|((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9a-f]{1,4}:){5}(((:[0-9a-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9a-f]{1,4}:){4}(((:[0-9a-f]{1,4}){1,3})|((:[0-9a-f]{1,4})?:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){3}(((:[0-9a-f]{1,4}){1,4})|((:[0-9a-f]{1,4}){0,2}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){2}(((:[0-9a-f]{1,4}){1,5})|((:[0-9a-f]{1,4}){0,3}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){1}(((:[0-9a-f]{1,4}){1,6})|((:[0-9a-f]{1,4}){0,4}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(:(((:[0-9a-f]{1,4}){1,7})|((:[0-9a-f]{1,4}){0,5}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))$/i,regex:U,uuid:/^(?:urn:uuid:)?[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$/i,"json-pointer":/^(?:\/(?:[^~/]|~0|~1)*)*$/,"json-pointer-uri-fragment":/^#(?:\/(?:[a-z0-9_\-.!$&'()*+,;:=@]|%[0-9a-f]{2}|~0|~1)*)*$/i,"relative-json-pointer":/^(?:0|[1-9][0-9]*)(?:#|(?:\/(?:[^~/]|~0|~1)*)*)$/,byte:l,int32:{type:"number",validate:D},int64:{type:"number",validate:V},float:{type:"number",validate:T},double:{type:"number",validate:T},password:!0,binary:!0},e.fastFormats={...e.fullFormats,date:t(/^\d\d\d\d-[0-1]\d-[0-3]\d$/,o),time:t(/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i,p),"date-time":t(/^\d\d\d\d-[0-1]\d-[0-3]\d[t\s](?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i,E),uri:/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/)?[^\s]*$/i,"uri-reference":/^(?:(?:[a-z][a-z0-9+\-.]*:)?\/?\/)?(?:[^\\\s#][^\s#]*)?(?:#[^\\\s]*)?$/i,email:/^[a-z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?)*$/i},e.formatNames=Object.keys(e.fullFormats);function r(A){return A%4===0&&(A%100!==0||A%400===0)}const n=/^(\d\d\d\d)-(\d\d)-(\d\d)$/,i=[0,31,28,31,30,31,30,31,31,30,31,30,31];function s(A){const x=n.exec(A);if(!x)return!1;const B=+x[1],K=+x[2],z=+x[3];return K>=1&&K<=12&&z>=1&&z<=(K===2&&r(B)?29:i[K])}function o(A,x){if(A&&x)return A>x?1:A<x?-1:0}const a=/^(\d\d):(\d\d):(\d\d)(\.\d+)?(z|[+-]\d\d(?::?\d\d)?)?$/i;function u(A,x){const B=a.exec(A);if(!B)return!1;const K=+B[1],z=+B[2],k=+B[3],H=B[5];return(K<=23&&z<=59&&k<=59||K===23&&z===59&&k===60)&&(!x||H!=="")}function p(A,x){if(!(A&&x))return;const B=a.exec(A),K=a.exec(x);if(B&&K)return A=B[1]+B[2]+B[3]+(B[4]||""),x=K[1]+K[2]+K[3]+(K[4]||""),A>x?1:A<x?-1:0}const c=/t|\s/i;function d(A){const x=A.split(c);return x.length===2&&s(x[0])&&u(x[1],!0)}function E(A,x){if(!(A&&x))return;const[B,K]=A.split(c),[z,k]=x.split(c),H=o(B,z);if(H!==void 0)return H||p(K,k)}const f=/\/|:/,h=/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){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,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[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})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)(?:\?(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i;function y(A){return f.test(A)&&h.test(A)}const v=/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/gm;function l(A){return v.lastIndex=0,v.test(A)}const $=-(2**31),S=2**31-1;function D(A){return Number.isInteger(A)&&A<=S&&A>=$}function V(A){return Number.isInteger(A)}function T(){return!0}const P=/[^\\]\\Z/;function U(A){if(P.test(A))return!1;try{return new RegExp(A),!0}catch{return!1}}})(Hu);var qu={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.formatLimitDefinition=void 0;const t=Gu,r=re,n=r.operators,i={formatMaximum:{okStr:"<=",ok:n.LTE,fail:n.GT},formatMinimum:{okStr:">=",ok:n.GTE,fail:n.LT},formatExclusiveMaximum:{okStr:"<",ok:n.LT,fail:n.GTE},formatExclusiveMinimum:{okStr:">",ok:n.GT,fail:n.LTE}},s={message:({keyword:a,schemaCode:u})=>r.str`should be ${i[a].okStr} ${u}`,params:({keyword:a,schemaCode:u})=>r._`{comparison: ${i[a].okStr}, limit: ${u}}`};e.formatLimitDefinition={keyword:Object.keys(i),type:"string",schemaType:"string",$data:!0,error:s,code(a){const{gen:u,data:p,schemaCode:c,keyword:d,it:E}=a,{opts:f,self:h}=E;if(!f.validateFormats)return;const y=new t.KeywordCxt(E,h.RULES.all.format.definition,"format");y.$data?v():l();function v(){const S=u.scopeValue("formats",{ref:h.formats,code:f.code.formats}),D=u.const("fmt",r._`${S}[${y.schemaCode}]`);a.fail$data(r.or(r._`typeof ${D} != "object"`,r._`${D} instanceof RegExp`,r._`typeof ${D}.compare != "function"`,$(D)))}function l(){const S=y.schema,D=h.formats[S];if(!D||D===!0)return;if(typeof D!="object"||D instanceof RegExp||typeof D.compare!="function")throw new Error(`"${d}": format "${S}" does not define "compare" function`);const V=u.scopeValue("formats",{key:S,ref:D,code:f.code.formats?r._`${f.code.formats}${r.getProperty(S)}`:void 0});a.fail$data($(V))}function $(S){return r._`${S}.compare(${p}, ${c}) ${i[d].fail} 0`}},dependencies:["format"]};const o=a=>(a.addKeyword(e.formatLimitDefinition),a);e.default=o})(qu);(function(e,t){Object.defineProperty(t,"__esModule",{value:!0});const r=Hu,n=qu,i=re,s=new i.Name("fullFormats"),o=new i.Name("fastFormats"),a=(p,c={keywords:!0})=>{if(Array.isArray(c))return u(p,c,r.fullFormats,s),p;const[d,E]=c.mode==="fast"?[r.fastFormats,o]:[r.fullFormats,s],f=c.formats||r.formatNames;return u(p,f,d,E),c.keywords&&n.default(p),p};a.get=(p,c="full")=>{const E=(c==="fast"?r.fastFormats:r.fullFormats)[p];if(!E)throw new Error(`Unknown format "${p}"`);return E};function u(p,c,d,E){var f,h;(f=(h=p.opts.code).formats)!==null&&f!==void 0||(h.formats=i._`require("ajv-formats/dist/formats").${E}`);for(const y of c)p.addFormat(y,d[y])}e.exports=t=a,Object.defineProperty(t,"__esModule",{value:!0}),t.default=a})(ss,ss.exports);var T0=ss.exports;const D0=(e,t,r,n)=>{if(r==="length"||r==="prototype"||r==="arguments"||r==="caller")return;const i=Object.getOwnPropertyDescriptor(e,r),s=Object.getOwnPropertyDescriptor(t,r);!R0(i,s)&&n||Object.defineProperty(e,r,s)},R0=function(e,t){return e===void 0||e.configurable||e.writable===t.writable&&e.enumerable===t.enumerable&&e.configurable===t.configurable&&(e.writable||e.value===t.value)},C0=(e,t)=>{const r=Object.getPrototypeOf(t);r!==Object.getPrototypeOf(e)&&Object.setPrototypeOf(e,r)},P0=(e,t)=>`/* Wrapped ${e}*/
15
- ${t}`,A0=Object.getOwnPropertyDescriptor(Function.prototype,"toString"),b0=Object.getOwnPropertyDescriptor(Function.prototype.toString,"name"),L0=(e,t,r)=>{const n=r===""?"":`with ${r.trim()}() `,i=P0.bind(null,n,t.toString());Object.defineProperty(i,"name",b0),Object.defineProperty(e,"toString",{...A0,value:i})},F0=(e,t,{ignoreNonConfigurable:r=!1}={})=>{const{name:n}=e;for(const i of Reflect.ownKeys(t))D0(e,t,i,r);return C0(e,t),L0(e,t,n),e};var j0=F0;const M0=j0;var k0=(e,t={})=>{if(typeof e!="function")throw new TypeError(`Expected the first argument to be a function, got \`${typeof e}\``);const{wait:r=0,before:n=!1,after:i=!0}=t;if(!n&&!i)throw new Error("Both `before` and `after` are false, function wouldn't be called.");let s,o;const a=function(...u){const p=this,c=()=>{s=void 0,i&&(o=e.apply(p,u))},d=n&&!s;return clearTimeout(s),s=setTimeout(c,r),d&&(o=e.apply(p,u)),o};return M0(a,e),a.cancel=()=>{s&&(clearTimeout(s),s=void 0)},a},os={exports:{}};const U0="2.0.0",Bu=256,V0=Number.MAX_SAFE_INTEGER||9007199254740991,x0=16,z0=Bu-6,G0=["major","premajor","minor","preminor","patch","prepatch","prerelease"];var vi={MAX_LENGTH:Bu,MAX_SAFE_COMPONENT_LENGTH:x0,MAX_SAFE_BUILD_LENGTH:z0,MAX_SAFE_INTEGER:V0,RELEASE_TYPES:G0,SEMVER_SPEC_VERSION:U0,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2};const H0=typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...e)=>console.error("SEMVER",...e):()=>{};var Ei=H0;(function(e,t){const{MAX_SAFE_COMPONENT_LENGTH:r,MAX_SAFE_BUILD_LENGTH:n}=vi,i=Ei;t=e.exports={};const s=t.re=[],o=t.safeRe=[],a=t.src=[],u=t.t={};let p=0;const c="[a-zA-Z0-9-]",d=[["\\s",1],["\\d",r],[c,n]],E=h=>{for(const[y,v]of d)h=h.split(`${y}*`).join(`${y}{0,${v}}`).split(`${y}+`).join(`${y}{1,${v}}`);return h},f=(h,y,v)=>{const l=E(y),$=p++;i(h,$,y),u[h]=$,a[$]=y,s[$]=new RegExp(y,v?"g":void 0),o[$]=new RegExp(l,v?"g":void 0)};f("NUMERICIDENTIFIER","0|[1-9]\\d*"),f("NUMERICIDENTIFIERLOOSE","\\d+"),f("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${c}*`),f("MAINVERSION",`(${a[u.NUMERICIDENTIFIER]})\\.(${a[u.NUMERICIDENTIFIER]})\\.(${a[u.NUMERICIDENTIFIER]})`),f("MAINVERSIONLOOSE",`(${a[u.NUMERICIDENTIFIERLOOSE]})\\.(${a[u.NUMERICIDENTIFIERLOOSE]})\\.(${a[u.NUMERICIDENTIFIERLOOSE]})`),f("PRERELEASEIDENTIFIER",`(?:${a[u.NUMERICIDENTIFIER]}|${a[u.NONNUMERICIDENTIFIER]})`),f("PRERELEASEIDENTIFIERLOOSE",`(?:${a[u.NUMERICIDENTIFIERLOOSE]}|${a[u.NONNUMERICIDENTIFIER]})`),f("PRERELEASE",`(?:-(${a[u.PRERELEASEIDENTIFIER]}(?:\\.${a[u.PRERELEASEIDENTIFIER]})*))`),f("PRERELEASELOOSE",`(?:-?(${a[u.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${a[u.PRERELEASEIDENTIFIERLOOSE]})*))`),f("BUILDIDENTIFIER",`${c}+`),f("BUILD",`(?:\\+(${a[u.BUILDIDENTIFIER]}(?:\\.${a[u.BUILDIDENTIFIER]})*))`),f("FULLPLAIN",`v?${a[u.MAINVERSION]}${a[u.PRERELEASE]}?${a[u.BUILD]}?`),f("FULL",`^${a[u.FULLPLAIN]}$`),f("LOOSEPLAIN",`[v=\\s]*${a[u.MAINVERSIONLOOSE]}${a[u.PRERELEASELOOSE]}?${a[u.BUILD]}?`),f("LOOSE",`^${a[u.LOOSEPLAIN]}$`),f("GTLT","((?:<|>)?=?)"),f("XRANGEIDENTIFIERLOOSE",`${a[u.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),f("XRANGEIDENTIFIER",`${a[u.NUMERICIDENTIFIER]}|x|X|\\*`),f("XRANGEPLAIN",`[v=\\s]*(${a[u.XRANGEIDENTIFIER]})(?:\\.(${a[u.XRANGEIDENTIFIER]})(?:\\.(${a[u.XRANGEIDENTIFIER]})(?:${a[u.PRERELEASE]})?${a[u.BUILD]}?)?)?`),f("XRANGEPLAINLOOSE",`[v=\\s]*(${a[u.XRANGEIDENTIFIERLOOSE]})(?:\\.(${a[u.XRANGEIDENTIFIERLOOSE]})(?:\\.(${a[u.XRANGEIDENTIFIERLOOSE]})(?:${a[u.PRERELEASELOOSE]})?${a[u.BUILD]}?)?)?`),f("XRANGE",`^${a[u.GTLT]}\\s*${a[u.XRANGEPLAIN]}$`),f("XRANGELOOSE",`^${a[u.GTLT]}\\s*${a[u.XRANGEPLAINLOOSE]}$`),f("COERCE",`(^|[^\\d])(\\d{1,${r}})(?:\\.(\\d{1,${r}}))?(?:\\.(\\d{1,${r}}))?(?:$|[^\\d])`),f("COERCERTL",a[u.COERCE],!0),f("LONETILDE","(?:~>?)"),f("TILDETRIM",`(\\s*)${a[u.LONETILDE]}\\s+`,!0),t.tildeTrimReplace="$1~",f("TILDE",`^${a[u.LONETILDE]}${a[u.XRANGEPLAIN]}$`),f("TILDELOOSE",`^${a[u.LONETILDE]}${a[u.XRANGEPLAINLOOSE]}$`),f("LONECARET","(?:\\^)"),f("CARETTRIM",`(\\s*)${a[u.LONECARET]}\\s+`,!0),t.caretTrimReplace="$1^",f("CARET",`^${a[u.LONECARET]}${a[u.XRANGEPLAIN]}$`),f("CARETLOOSE",`^${a[u.LONECARET]}${a[u.XRANGEPLAINLOOSE]}$`),f("COMPARATORLOOSE",`^${a[u.GTLT]}\\s*(${a[u.LOOSEPLAIN]})$|^$`),f("COMPARATOR",`^${a[u.GTLT]}\\s*(${a[u.FULLPLAIN]})$|^$`),f("COMPARATORTRIM",`(\\s*)${a[u.GTLT]}\\s*(${a[u.LOOSEPLAIN]}|${a[u.XRANGEPLAIN]})`,!0),t.comparatorTrimReplace="$1$2$3",f("HYPHENRANGE",`^\\s*(${a[u.XRANGEPLAIN]})\\s+-\\s+(${a[u.XRANGEPLAIN]})\\s*$`),f("HYPHENRANGELOOSE",`^\\s*(${a[u.XRANGEPLAINLOOSE]})\\s+-\\s+(${a[u.XRANGEPLAINLOOSE]})\\s*$`),f("STAR","(<|>)?=?\\s*\\*"),f("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$"),f("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")})(os,os.exports);var Nn=os.exports;const q0=Object.freeze({loose:!0}),B0=Object.freeze({}),K0=e=>e?typeof e!="object"?q0:e:B0;var mo=K0;const _a=/^[0-9]+$/,Ku=(e,t)=>{const r=_a.test(e),n=_a.test(t);return r&&n&&(e=+e,t=+t),e===t?0:r&&!n?-1:n&&!r?1:e<t?-1:1},W0=(e,t)=>Ku(t,e);var Wu={compareIdentifiers:Ku,rcompareIdentifiers:W0};const xn=Ei,{MAX_LENGTH:Sa,MAX_SAFE_INTEGER:zn}=vi,{safeRe:wa,t:Na}=Nn,Z0=mo,{compareIdentifiers:wr}=Wu;let X0=class It{constructor(t,r){if(r=Z0(r),t instanceof It){if(t.loose===!!r.loose&&t.includePrerelease===!!r.includePrerelease)return t;t=t.version}else if(typeof t!="string")throw new TypeError(`Invalid version. Must be a string. Got type "${typeof t}".`);if(t.length>Sa)throw new TypeError(`version is longer than ${Sa} characters`);xn("SemVer",t,r),this.options=r,this.loose=!!r.loose,this.includePrerelease=!!r.includePrerelease;const n=t.trim().match(r.loose?wa[Na.LOOSE]:wa[Na.FULL]);if(!n)throw new TypeError(`Invalid Version: ${t}`);if(this.raw=t,this.major=+n[1],this.minor=+n[2],this.patch=+n[3],this.major>zn||this.major<0)throw new TypeError("Invalid major version");if(this.minor>zn||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>zn||this.patch<0)throw new TypeError("Invalid patch version");n[4]?this.prerelease=n[4].split(".").map(i=>{if(/^[0-9]+$/.test(i)){const s=+i;if(s>=0&&s<zn)return s}return i}):this.prerelease=[],this.build=n[5]?n[5].split("."):[],this.format()}format(){return this.version=`${this.major}.${this.minor}.${this.patch}`,this.prerelease.length&&(this.version+=`-${this.prerelease.join(".")}`),this.version}toString(){return this.version}compare(t){if(xn("SemVer.compare",this.version,this.options,t),!(t instanceof It)){if(typeof t=="string"&&t===this.version)return 0;t=new It(t,this.options)}return t.version===this.version?0:this.compareMain(t)||this.comparePre(t)}compareMain(t){return t instanceof It||(t=new It(t,this.options)),wr(this.major,t.major)||wr(this.minor,t.minor)||wr(this.patch,t.patch)}comparePre(t){if(t instanceof It||(t=new It(t,this.options)),this.prerelease.length&&!t.prerelease.length)return-1;if(!this.prerelease.length&&t.prerelease.length)return 1;if(!this.prerelease.length&&!t.prerelease.length)return 0;let r=0;do{const n=this.prerelease[r],i=t.prerelease[r];if(xn("prerelease compare",r,n,i),n===void 0&&i===void 0)return 0;if(i===void 0)return 1;if(n===void 0)return-1;if(n===i)continue;return wr(n,i)}while(++r)}compareBuild(t){t instanceof It||(t=new It(t,this.options));let r=0;do{const n=this.build[r],i=t.build[r];if(xn("prerelease compare",r,n,i),n===void 0&&i===void 0)return 0;if(i===void 0)return 1;if(n===void 0)return-1;if(n===i)continue;return wr(n,i)}while(++r)}inc(t,r,n){switch(t){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",r,n);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",r,n);break;case"prepatch":this.prerelease.length=0,this.inc("patch",r,n),this.inc("pre",r,n);break;case"prerelease":this.prerelease.length===0&&this.inc("patch",r,n),this.inc("pre",r,n);break;case"major":(this.minor!==0||this.patch!==0||this.prerelease.length===0)&&this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":(this.patch!==0||this.prerelease.length===0)&&this.minor++,this.patch=0,this.prerelease=[];break;case"patch":this.prerelease.length===0&&this.patch++,this.prerelease=[];break;case"pre":{const i=Number(n)?1:0;if(!r&&n===!1)throw new Error("invalid increment argument: identifier is empty");if(this.prerelease.length===0)this.prerelease=[i];else{let s=this.prerelease.length;for(;--s>=0;)typeof this.prerelease[s]=="number"&&(this.prerelease[s]++,s=-2);if(s===-1){if(r===this.prerelease.join(".")&&n===!1)throw new Error("invalid increment argument: identifier already exists");this.prerelease.push(i)}}if(r){let s=[r,i];n===!1&&(s=[r]),wr(this.prerelease[0],r)===0?isNaN(this.prerelease[1])&&(this.prerelease=s):this.prerelease=s}break}default:throw new Error(`invalid increment argument: ${t}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(".")}`),this}};var We=X0;const Ia=We,J0=(e,t,r=!1)=>{if(e instanceof Ia)return e;try{return new Ia(e,t)}catch(n){if(!r)return null;throw n}};var xr=J0;const Y0=xr,Q0=(e,t)=>{const r=Y0(e,t);return r?r.version:null};var ev=Q0;const tv=xr,rv=(e,t)=>{const r=tv(e.trim().replace(/^[=v]+/,""),t);return r?r.version:null};var nv=rv;const Oa=We,iv=(e,t,r,n,i)=>{typeof r=="string"&&(i=n,n=r,r=void 0);try{return new Oa(e instanceof Oa?e.version:e,r).inc(t,n,i).version}catch{return null}};var sv=iv;const Ta=xr,ov=(e,t)=>{const r=Ta(e,null,!0),n=Ta(t,null,!0),i=r.compare(n);if(i===0)return null;const s=i>0,o=s?r:n,a=s?n:r,u=!!o.prerelease.length;if(!!a.prerelease.length&&!u)return!a.patch&&!a.minor?"major":o.patch?"patch":o.minor?"minor":"major";const c=u?"pre":"";return r.major!==n.major?c+"major":r.minor!==n.minor?c+"minor":r.patch!==n.patch?c+"patch":"prerelease"};var av=ov;const cv=We,uv=(e,t)=>new cv(e,t).major;var fv=uv;const lv=We,dv=(e,t)=>new lv(e,t).minor;var hv=dv;const mv=We,pv=(e,t)=>new mv(e,t).patch;var yv=pv;const vv=xr,Ev=(e,t)=>{const r=vv(e,t);return r&&r.prerelease.length?r.prerelease:null};var gv=Ev;const Da=We,$v=(e,t,r)=>new Da(e,r).compare(new Da(t,r));var yt=$v;const _v=yt,Sv=(e,t,r)=>_v(t,e,r);var wv=Sv;const Nv=yt,Iv=(e,t)=>Nv(e,t,!0);var Ov=Iv;const Ra=We,Tv=(e,t,r)=>{const n=new Ra(e,r),i=new Ra(t,r);return n.compare(i)||n.compareBuild(i)};var po=Tv;const Dv=po,Rv=(e,t)=>e.sort((r,n)=>Dv(r,n,t));var Cv=Rv;const Pv=po,Av=(e,t)=>e.sort((r,n)=>Pv(n,r,t));var bv=Av;const Lv=yt,Fv=(e,t,r)=>Lv(e,t,r)>0;var gi=Fv;const jv=yt,Mv=(e,t,r)=>jv(e,t,r)<0;var yo=Mv;const kv=yt,Uv=(e,t,r)=>kv(e,t,r)===0;var Zu=Uv;const Vv=yt,xv=(e,t,r)=>Vv(e,t,r)!==0;var Xu=xv;const zv=yt,Gv=(e,t,r)=>zv(e,t,r)>=0;var vo=Gv;const Hv=yt,qv=(e,t,r)=>Hv(e,t,r)<=0;var Eo=qv;const Bv=Zu,Kv=Xu,Wv=gi,Zv=vo,Xv=yo,Jv=Eo,Yv=(e,t,r,n)=>{switch(t){case"===":return typeof e=="object"&&(e=e.version),typeof r=="object"&&(r=r.version),e===r;case"!==":return typeof e=="object"&&(e=e.version),typeof r=="object"&&(r=r.version),e!==r;case"":case"=":case"==":return Bv(e,r,n);case"!=":return Kv(e,r,n);case">":return Wv(e,r,n);case">=":return Zv(e,r,n);case"<":return Xv(e,r,n);case"<=":return Jv(e,r,n);default:throw new TypeError(`Invalid operator: ${t}`)}};var Ju=Yv;const Qv=We,eE=xr,{safeRe:Gn,t:Hn}=Nn,tE=(e,t)=>{if(e instanceof Qv)return e;if(typeof e=="number"&&(e=String(e)),typeof e!="string")return null;t=t||{};let r=null;if(!t.rtl)r=e.match(Gn[Hn.COERCE]);else{let n;for(;(n=Gn[Hn.COERCERTL].exec(e))&&(!r||r.index+r[0].length!==e.length);)(!r||n.index+n[0].length!==r.index+r[0].length)&&(r=n),Gn[Hn.COERCERTL].lastIndex=n.index+n[1].length+n[2].length;Gn[Hn.COERCERTL].lastIndex=-1}return r===null?null:eE(`${r[2]}.${r[3]||"0"}.${r[4]||"0"}`,t)};var rE=tE,ji,Ca;function nE(){return Ca||(Ca=1,ji=function(e){e.prototype[Symbol.iterator]=function*(){for(let t=this.head;t;t=t.next)yield t.value}}),ji}var iE=fe;fe.Node=fr;fe.create=fe;function fe(e){var t=this;if(t instanceof fe||(t=new fe),t.tail=null,t.head=null,t.length=0,e&&typeof e.forEach=="function")e.forEach(function(i){t.push(i)});else if(arguments.length>0)for(var r=0,n=arguments.length;r<n;r++)t.push(arguments[r]);return t}fe.prototype.removeNode=function(e){if(e.list!==this)throw new Error("removing node which does not belong to this list");var t=e.next,r=e.prev;return t&&(t.prev=r),r&&(r.next=t),e===this.head&&(this.head=t),e===this.tail&&(this.tail=r),e.list.length--,e.next=null,e.prev=null,e.list=null,t};fe.prototype.unshiftNode=function(e){if(e!==this.head){e.list&&e.list.removeNode(e);var t=this.head;e.list=this,e.next=t,t&&(t.prev=e),this.head=e,this.tail||(this.tail=e),this.length++}};fe.prototype.pushNode=function(e){if(e!==this.tail){e.list&&e.list.removeNode(e);var t=this.tail;e.list=this,e.prev=t,t&&(t.next=e),this.tail=e,this.head||(this.head=e),this.length++}};fe.prototype.push=function(){for(var e=0,t=arguments.length;e<t;e++)oE(this,arguments[e]);return this.length};fe.prototype.unshift=function(){for(var e=0,t=arguments.length;e<t;e++)aE(this,arguments[e]);return this.length};fe.prototype.pop=function(){if(this.tail){var e=this.tail.value;return this.tail=this.tail.prev,this.tail?this.tail.next=null:this.head=null,this.length--,e}};fe.prototype.shift=function(){if(this.head){var e=this.head.value;return this.head=this.head.next,this.head?this.head.prev=null:this.tail=null,this.length--,e}};fe.prototype.forEach=function(e,t){t=t||this;for(var r=this.head,n=0;r!==null;n++)e.call(t,r.value,n,this),r=r.next};fe.prototype.forEachReverse=function(e,t){t=t||this;for(var r=this.tail,n=this.length-1;r!==null;n--)e.call(t,r.value,n,this),r=r.prev};fe.prototype.get=function(e){for(var t=0,r=this.head;r!==null&&t<e;t++)r=r.next;if(t===e&&r!==null)return r.value};fe.prototype.getReverse=function(e){for(var t=0,r=this.tail;r!==null&&t<e;t++)r=r.prev;if(t===e&&r!==null)return r.value};fe.prototype.map=function(e,t){t=t||this;for(var r=new fe,n=this.head;n!==null;)r.push(e.call(t,n.value,this)),n=n.next;return r};fe.prototype.mapReverse=function(e,t){t=t||this;for(var r=new fe,n=this.tail;n!==null;)r.push(e.call(t,n.value,this)),n=n.prev;return r};fe.prototype.reduce=function(e,t){var r,n=this.head;if(arguments.length>1)r=t;else if(this.head)n=this.head.next,r=this.head.value;else throw new TypeError("Reduce of empty list with no initial value");for(var i=0;n!==null;i++)r=e(r,n.value,i),n=n.next;return r};fe.prototype.reduceReverse=function(e,t){var r,n=this.tail;if(arguments.length>1)r=t;else if(this.tail)n=this.tail.prev,r=this.tail.value;else throw new TypeError("Reduce of empty list with no initial value");for(var i=this.length-1;n!==null;i--)r=e(r,n.value,i),n=n.prev;return r};fe.prototype.toArray=function(){for(var e=new Array(this.length),t=0,r=this.head;r!==null;t++)e[t]=r.value,r=r.next;return e};fe.prototype.toArrayReverse=function(){for(var e=new Array(this.length),t=0,r=this.tail;r!==null;t++)e[t]=r.value,r=r.prev;return e};fe.prototype.slice=function(e,t){t=t||this.length,t<0&&(t+=this.length),e=e||0,e<0&&(e+=this.length);var r=new fe;if(t<e||t<0)return r;e<0&&(e=0),t>this.length&&(t=this.length);for(var n=0,i=this.head;i!==null&&n<e;n++)i=i.next;for(;i!==null&&n<t;n++,i=i.next)r.push(i.value);return r};fe.prototype.sliceReverse=function(e,t){t=t||this.length,t<0&&(t+=this.length),e=e||0,e<0&&(e+=this.length);var r=new fe;if(t<e||t<0)return r;e<0&&(e=0),t>this.length&&(t=this.length);for(var n=this.length,i=this.tail;i!==null&&n>t;n--)i=i.prev;for(;i!==null&&n>e;n--,i=i.prev)r.push(i.value);return r};fe.prototype.splice=function(e,t,...r){e>this.length&&(e=this.length-1),e<0&&(e=this.length+e);for(var n=0,i=this.head;i!==null&&n<e;n++)i=i.next;for(var s=[],n=0;i&&n<t;n++)s.push(i.value),i=this.removeNode(i);i===null&&(i=this.tail),i!==this.head&&i!==this.tail&&(i=i.prev);for(var n=0;n<r.length;n++)i=sE(this,i,r[n]);return s};fe.prototype.reverse=function(){for(var e=this.head,t=this.tail,r=e;r!==null;r=r.prev){var n=r.prev;r.prev=r.next,r.next=n}return this.head=t,this.tail=e,this};function sE(e,t,r){var n=t===e.head?new fr(r,null,t,e):new fr(r,t,t.next,e);return n.next===null&&(e.tail=n),n.prev===null&&(e.head=n),e.length++,n}function oE(e,t){e.tail=new fr(t,e.tail,null,e),e.head||(e.head=e.tail),e.length++}function aE(e,t){e.head=new fr(t,null,e.head,e),e.tail||(e.tail=e.head),e.length++}function fr(e,t,r,n){if(!(this instanceof fr))return new fr(e,t,r,n);this.list=n,this.value=e,t?(t.next=this,this.prev=t):this.prev=null,r?(r.prev=this,this.next=r):this.next=null}try{nE()(fe)}catch{}const cE=iE,sr=Symbol("max"),bt=Symbol("length"),Nr=Symbol("lengthCalculator"),ln=Symbol("allowStale"),or=Symbol("maxAge"),At=Symbol("dispose"),Pa=Symbol("noDisposeOnSet"),Ae=Symbol("lruList"),dt=Symbol("cache"),Yu=Symbol("updateAgeOnGet"),Mi=()=>1;class uE{constructor(t){if(typeof t=="number"&&(t={max:t}),t||(t={}),t.max&&(typeof t.max!="number"||t.max<0))throw new TypeError("max must be a non-negative number");this[sr]=t.max||1/0;const r=t.length||Mi;if(this[Nr]=typeof r!="function"?Mi:r,this[ln]=t.stale||!1,t.maxAge&&typeof t.maxAge!="number")throw new TypeError("maxAge must be a number");this[or]=t.maxAge||0,this[At]=t.dispose,this[Pa]=t.noDisposeOnSet||!1,this[Yu]=t.updateAgeOnGet||!1,this.reset()}set max(t){if(typeof t!="number"||t<0)throw new TypeError("max must be a non-negative number");this[sr]=t||1/0,Qr(this)}get max(){return this[sr]}set allowStale(t){this[ln]=!!t}get allowStale(){return this[ln]}set maxAge(t){if(typeof t!="number")throw new TypeError("maxAge must be a non-negative number");this[or]=t,Qr(this)}get maxAge(){return this[or]}set lengthCalculator(t){typeof t!="function"&&(t=Mi),t!==this[Nr]&&(this[Nr]=t,this[bt]=0,this[Ae].forEach(r=>{r.length=this[Nr](r.value,r.key),this[bt]+=r.length})),Qr(this)}get lengthCalculator(){return this[Nr]}get length(){return this[bt]}get itemCount(){return this[Ae].length}rforEach(t,r){r=r||this;for(let n=this[Ae].tail;n!==null;){const i=n.prev;Aa(this,t,n,r),n=i}}forEach(t,r){r=r||this;for(let n=this[Ae].head;n!==null;){const i=n.next;Aa(this,t,n,r),n=i}}keys(){return this[Ae].toArray().map(t=>t.key)}values(){return this[Ae].toArray().map(t=>t.value)}reset(){this[At]&&this[Ae]&&this[Ae].length&&this[Ae].forEach(t=>this[At](t.key,t.value)),this[dt]=new Map,this[Ae]=new cE,this[bt]=0}dump(){return this[Ae].map(t=>ii(this,t)?!1:{k:t.key,v:t.value,e:t.now+(t.maxAge||0)}).toArray().filter(t=>t)}dumpLru(){return this[Ae]}set(t,r,n){if(n=n||this[or],n&&typeof n!="number")throw new TypeError("maxAge must be a number");const i=n?Date.now():0,s=this[Nr](r,t);if(this[dt].has(t)){if(s>this[sr])return Cr(this,this[dt].get(t)),!1;const u=this[dt].get(t).value;return this[At]&&(this[Pa]||this[At](t,u.value)),u.now=i,u.maxAge=n,u.value=r,this[bt]+=s-u.length,u.length=s,this.get(t),Qr(this),!0}const o=new fE(t,r,s,i,n);return o.length>this[sr]?(this[At]&&this[At](t,r),!1):(this[bt]+=o.length,this[Ae].unshift(o),this[dt].set(t,this[Ae].head),Qr(this),!0)}has(t){if(!this[dt].has(t))return!1;const r=this[dt].get(t).value;return!ii(this,r)}get(t){return ki(this,t,!0)}peek(t){return ki(this,t,!1)}pop(){const t=this[Ae].tail;return t?(Cr(this,t),t.value):null}del(t){Cr(this,this[dt].get(t))}load(t){this.reset();const r=Date.now();for(let n=t.length-1;n>=0;n--){const i=t[n],s=i.e||0;if(s===0)this.set(i.k,i.v);else{const o=s-r;o>0&&this.set(i.k,i.v,o)}}}prune(){this[dt].forEach((t,r)=>ki(this,r,!1))}}const ki=(e,t,r)=>{const n=e[dt].get(t);if(n){const i=n.value;if(ii(e,i)){if(Cr(e,n),!e[ln])return}else r&&(e[Yu]&&(n.value.now=Date.now()),e[Ae].unshiftNode(n));return i.value}},ii=(e,t)=>{if(!t||!t.maxAge&&!e[or])return!1;const r=Date.now()-t.now;return t.maxAge?r>t.maxAge:e[or]&&r>e[or]},Qr=e=>{if(e[bt]>e[sr])for(let t=e[Ae].tail;e[bt]>e[sr]&&t!==null;){const r=t.prev;Cr(e,t),t=r}},Cr=(e,t)=>{if(t){const r=t.value;e[At]&&e[At](r.key,r.value),e[bt]-=r.length,e[dt].delete(r.key),e[Ae].removeNode(t)}};class fE{constructor(t,r,n,i,s){this.key=t,this.value=r,this.length=n,this.now=i,this.maxAge=s||0}}const Aa=(e,t,r,n)=>{let i=r.value;ii(e,i)&&(Cr(e,r),e[ln]||(i=void 0)),i&&t.call(n,i.value,i.key,e)};var lE=uE,Ui,ba;function vt(){if(ba)return Ui;ba=1;class e{constructor(k,H){if(H=n(H),k instanceof e)return k.loose===!!H.loose&&k.includePrerelease===!!H.includePrerelease?k:new e(k.raw,H);if(k instanceof i)return this.raw=k.value,this.set=[[k]],this.format(),this;if(this.options=H,this.loose=!!H.loose,this.includePrerelease=!!H.includePrerelease,this.raw=k.trim().split(/\s+/).join(" "),this.set=this.raw.split("||").map(q=>this.parseRange(q)).filter(q=>q.length),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${this.raw}`);if(this.set.length>1){const q=this.set[0];if(this.set=this.set.filter(G=>!h(G[0])),this.set.length===0)this.set=[q];else if(this.set.length>1){for(const G of this.set)if(G.length===1&&y(G[0])){this.set=[G];break}}}this.format()}format(){return this.range=this.set.map(k=>k.join(" ").trim()).join("||").trim(),this.range}toString(){return this.range}parseRange(k){const q=((this.options.includePrerelease&&E)|(this.options.loose&&f))+":"+k,G=r.get(q);if(G)return G;const C=this.options.loose,F=C?a[u.HYPHENRANGELOOSE]:a[u.HYPHENRANGE];k=k.replace(F,B(this.options.includePrerelease)),s("hyphen replace",k),k=k.replace(a[u.COMPARATORTRIM],p),s("comparator trim",k),k=k.replace(a[u.TILDETRIM],c),s("tilde trim",k),k=k.replace(a[u.CARETTRIM],d),s("caret trim",k);let O=k.split(" ").map(m=>l(m,this.options)).join(" ").split(/\s+/).map(m=>x(m,this.options));C&&(O=O.filter(m=>(s("loose invalid filter",m,this.options),!!m.match(a[u.COMPARATORLOOSE])))),s("range list",O);const w=new Map,b=O.map(m=>new i(m,this.options));for(const m of b){if(h(m))return[m];w.set(m.value,m)}w.size>1&&w.has("")&&w.delete("");const R=[...w.values()];return r.set(q,R),R}intersects(k,H){if(!(k instanceof e))throw new TypeError("a Range is required");return this.set.some(q=>v(q,H)&&k.set.some(G=>v(G,H)&&q.every(C=>G.every(F=>C.intersects(F,H)))))}test(k){if(!k)return!1;if(typeof k=="string")try{k=new o(k,this.options)}catch{return!1}for(let H=0;H<this.set.length;H++)if(K(this.set[H],k,this.options))return!0;return!1}}Ui=e;const t=lE,r=new t({max:1e3}),n=mo,i=$i(),s=Ei,o=We,{safeRe:a,t:u,comparatorTrimReplace:p,tildeTrimReplace:c,caretTrimReplace:d}=Nn,{FLAG_INCLUDE_PRERELEASE:E,FLAG_LOOSE:f}=vi,h=z=>z.value==="<0.0.0-0",y=z=>z.value==="",v=(z,k)=>{let H=!0;const q=z.slice();let G=q.pop();for(;H&&q.length;)H=q.every(C=>G.intersects(C,k)),G=q.pop();return H},l=(z,k)=>(s("comp",z,k),z=V(z,k),s("caret",z),z=S(z,k),s("tildes",z),z=P(z,k),s("xrange",z),z=A(z,k),s("stars",z),z),$=z=>!z||z.toLowerCase()==="x"||z==="*",S=(z,k)=>z.trim().split(/\s+/).map(H=>D(H,k)).join(" "),D=(z,k)=>{const H=k.loose?a[u.TILDELOOSE]:a[u.TILDE];return z.replace(H,(q,G,C,F,O)=>{s("tilde",z,q,G,C,F,O);let w;return $(G)?w="":$(C)?w=`>=${G}.0.0 <${+G+1}.0.0-0`:$(F)?w=`>=${G}.${C}.0 <${G}.${+C+1}.0-0`:O?(s("replaceTilde pr",O),w=`>=${G}.${C}.${F}-${O} <${G}.${+C+1}.0-0`):w=`>=${G}.${C}.${F} <${G}.${+C+1}.0-0`,s("tilde return",w),w})},V=(z,k)=>z.trim().split(/\s+/).map(H=>T(H,k)).join(" "),T=(z,k)=>{s("caret",z,k);const H=k.loose?a[u.CARETLOOSE]:a[u.CARET],q=k.includePrerelease?"-0":"";return z.replace(H,(G,C,F,O,w)=>{s("caret",z,G,C,F,O,w);let b;return $(C)?b="":$(F)?b=`>=${C}.0.0${q} <${+C+1}.0.0-0`:$(O)?C==="0"?b=`>=${C}.${F}.0${q} <${C}.${+F+1}.0-0`:b=`>=${C}.${F}.0${q} <${+C+1}.0.0-0`:w?(s("replaceCaret pr",w),C==="0"?F==="0"?b=`>=${C}.${F}.${O}-${w} <${C}.${F}.${+O+1}-0`:b=`>=${C}.${F}.${O}-${w} <${C}.${+F+1}.0-0`:b=`>=${C}.${F}.${O}-${w} <${+C+1}.0.0-0`):(s("no pr"),C==="0"?F==="0"?b=`>=${C}.${F}.${O}${q} <${C}.${F}.${+O+1}-0`:b=`>=${C}.${F}.${O}${q} <${C}.${+F+1}.0-0`:b=`>=${C}.${F}.${O} <${+C+1}.0.0-0`),s("caret return",b),b})},P=(z,k)=>(s("replaceXRanges",z,k),z.split(/\s+/).map(H=>U(H,k)).join(" ")),U=(z,k)=>{z=z.trim();const H=k.loose?a[u.XRANGELOOSE]:a[u.XRANGE];return z.replace(H,(q,G,C,F,O,w)=>{s("xRange",z,q,G,C,F,O,w);const b=$(C),R=b||$(F),m=R||$(O),_=m;return G==="="&&_&&(G=""),w=k.includePrerelease?"-0":"",b?G===">"||G==="<"?q="<0.0.0-0":q="*":G&&_?(R&&(F=0),O=0,G===">"?(G=">=",R?(C=+C+1,F=0,O=0):(F=+F+1,O=0)):G==="<="&&(G="<",R?C=+C+1:F=+F+1),G==="<"&&(w="-0"),q=`${G+C}.${F}.${O}${w}`):R?q=`>=${C}.0.0${w} <${+C+1}.0.0-0`:m&&(q=`>=${C}.${F}.0${w} <${C}.${+F+1}.0-0`),s("xRange return",q),q})},A=(z,k)=>(s("replaceStars",z,k),z.trim().replace(a[u.STAR],"")),x=(z,k)=>(s("replaceGTE0",z,k),z.trim().replace(a[k.includePrerelease?u.GTE0PRE:u.GTE0],"")),B=z=>(k,H,q,G,C,F,O,w,b,R,m,_,M)=>($(q)?H="":$(G)?H=`>=${q}.0.0${z?"-0":""}`:$(C)?H=`>=${q}.${G}.0${z?"-0":""}`:F?H=`>=${H}`:H=`>=${H}${z?"-0":""}`,$(b)?w="":$(R)?w=`<${+b+1}.0.0-0`:$(m)?w=`<${b}.${+R+1}.0-0`:_?w=`<=${b}.${R}.${m}-${_}`:z?w=`<${b}.${R}.${+m+1}-0`:w=`<=${w}`,`${H} ${w}`.trim()),K=(z,k,H)=>{for(let q=0;q<z.length;q++)if(!z[q].test(k))return!1;if(k.prerelease.length&&!H.includePrerelease){for(let q=0;q<z.length;q++)if(s(z[q].semver),z[q].semver!==i.ANY&&z[q].semver.prerelease.length>0){const G=z[q].semver;if(G.major===k.major&&G.minor===k.minor&&G.patch===k.patch)return!0}return!1}return!0};return Ui}var Vi,La;function $i(){if(La)return Vi;La=1;const e=Symbol("SemVer ANY");class t{static get ANY(){return e}constructor(c,d){if(d=r(d),c instanceof t){if(c.loose===!!d.loose)return c;c=c.value}c=c.trim().split(/\s+/).join(" "),o("comparator",c,d),this.options=d,this.loose=!!d.loose,this.parse(c),this.semver===e?this.value="":this.value=this.operator+this.semver.version,o("comp",this)}parse(c){const d=this.options.loose?n[i.COMPARATORLOOSE]:n[i.COMPARATOR],E=c.match(d);if(!E)throw new TypeError(`Invalid comparator: ${c}`);this.operator=E[1]!==void 0?E[1]:"",this.operator==="="&&(this.operator=""),E[2]?this.semver=new a(E[2],this.options.loose):this.semver=e}toString(){return this.value}test(c){if(o("Comparator.test",c,this.options.loose),this.semver===e||c===e)return!0;if(typeof c=="string")try{c=new a(c,this.options)}catch{return!1}return s(c,this.operator,this.semver,this.options)}intersects(c,d){if(!(c instanceof t))throw new TypeError("a Comparator is required");return this.operator===""?this.value===""?!0:new u(c.value,d).test(this.value):c.operator===""?c.value===""?!0:new u(this.value,d).test(c.semver):(d=r(d),d.includePrerelease&&(this.value==="<0.0.0-0"||c.value==="<0.0.0-0")||!d.includePrerelease&&(this.value.startsWith("<0.0.0")||c.value.startsWith("<0.0.0"))?!1:!!(this.operator.startsWith(">")&&c.operator.startsWith(">")||this.operator.startsWith("<")&&c.operator.startsWith("<")||this.semver.version===c.semver.version&&this.operator.includes("=")&&c.operator.includes("=")||s(this.semver,"<",c.semver,d)&&this.operator.startsWith(">")&&c.operator.startsWith("<")||s(this.semver,">",c.semver,d)&&this.operator.startsWith("<")&&c.operator.startsWith(">")))}}Vi=t;const r=mo,{safeRe:n,t:i}=Nn,s=Ju,o=Ei,a=We,u=vt();return Vi}const dE=vt(),hE=(e,t,r)=>{try{t=new dE(t,r)}catch{return!1}return t.test(e)};var _i=hE;const mE=vt(),pE=(e,t)=>new mE(e,t).set.map(r=>r.map(n=>n.value).join(" ").trim().split(" "));var yE=pE;const vE=We,EE=vt(),gE=(e,t,r)=>{let n=null,i=null,s=null;try{s=new EE(t,r)}catch{return null}return e.forEach(o=>{s.test(o)&&(!n||i.compare(o)===-1)&&(n=o,i=new vE(n,r))}),n};var $E=gE;const _E=We,SE=vt(),wE=(e,t,r)=>{let n=null,i=null,s=null;try{s=new SE(t,r)}catch{return null}return e.forEach(o=>{s.test(o)&&(!n||i.compare(o)===1)&&(n=o,i=new _E(n,r))}),n};var NE=wE;const xi=We,IE=vt(),Fa=gi,OE=(e,t)=>{e=new IE(e,t);let r=new xi("0.0.0");if(e.test(r)||(r=new xi("0.0.0-0"),e.test(r)))return r;r=null;for(let n=0;n<e.set.length;++n){const i=e.set[n];let s=null;i.forEach(o=>{const a=new xi(o.semver.version);switch(o.operator){case">":a.prerelease.length===0?a.patch++:a.prerelease.push(0),a.raw=a.format();case"":case">=":(!s||Fa(a,s))&&(s=a);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${o.operator}`)}}),s&&(!r||Fa(r,s))&&(r=s)}return r&&e.test(r)?r:null};var TE=OE;const DE=vt(),RE=(e,t)=>{try{return new DE(e,t).range||"*"}catch{return null}};var CE=RE;const PE=We,Qu=$i(),{ANY:AE}=Qu,bE=vt(),LE=_i,ja=gi,Ma=yo,FE=Eo,jE=vo,ME=(e,t,r,n)=>{e=new PE(e,n),t=new bE(t,n);let i,s,o,a,u;switch(r){case">":i=ja,s=FE,o=Ma,a=">",u=">=";break;case"<":i=Ma,s=jE,o=ja,a="<",u="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(LE(e,t,n))return!1;for(let p=0;p<t.set.length;++p){const c=t.set[p];let d=null,E=null;if(c.forEach(f=>{f.semver===AE&&(f=new Qu(">=0.0.0")),d=d||f,E=E||f,i(f.semver,d.semver,n)?d=f:o(f.semver,E.semver,n)&&(E=f)}),d.operator===a||d.operator===u||(!E.operator||E.operator===a)&&s(e,E.semver))return!1;if(E.operator===u&&o(e,E.semver))return!1}return!0};var go=ME;const kE=go,UE=(e,t,r)=>kE(e,t,">",r);var VE=UE;const xE=go,zE=(e,t,r)=>xE(e,t,"<",r);var GE=zE;const ka=vt(),HE=(e,t,r)=>(e=new ka(e,r),t=new ka(t,r),e.intersects(t,r));var qE=HE;const BE=_i,KE=yt;var WE=(e,t,r)=>{const n=[];let i=null,s=null;const o=e.sort((c,d)=>KE(c,d,r));for(const c of o)BE(c,t,r)?(s=c,i||(i=c)):(s&&n.push([i,s]),s=null,i=null);i&&n.push([i,null]);const a=[];for(const[c,d]of n)c===d?a.push(c):!d&&c===o[0]?a.push("*"):d?c===o[0]?a.push(`<=${d}`):a.push(`${c} - ${d}`):a.push(`>=${c}`);const u=a.join(" || "),p=typeof t.raw=="string"?t.raw:String(t);return u.length<p.length?u:t};const Ua=vt(),$o=$i(),{ANY:zi}=$o,en=_i,_o=yt,ZE=(e,t,r={})=>{if(e===t)return!0;e=new Ua(e,r),t=new Ua(t,r);let n=!1;e:for(const i of e.set){for(const s of t.set){const o=JE(i,s,r);if(n=n||o!==null,o)continue e}if(n)return!1}return!0},XE=[new $o(">=0.0.0-0")],Va=[new $o(">=0.0.0")],JE=(e,t,r)=>{if(e===t)return!0;if(e.length===1&&e[0].semver===zi){if(t.length===1&&t[0].semver===zi)return!0;r.includePrerelease?e=XE:e=Va}if(t.length===1&&t[0].semver===zi){if(r.includePrerelease)return!0;t=Va}const n=new Set;let i,s;for(const f of e)f.operator===">"||f.operator===">="?i=xa(i,f,r):f.operator==="<"||f.operator==="<="?s=za(s,f,r):n.add(f.semver);if(n.size>1)return null;let o;if(i&&s){if(o=_o(i.semver,s.semver,r),o>0)return null;if(o===0&&(i.operator!==">="||s.operator!=="<="))return null}for(const f of n){if(i&&!en(f,String(i),r)||s&&!en(f,String(s),r))return null;for(const h of t)if(!en(f,String(h),r))return!1;return!0}let a,u,p,c,d=s&&!r.includePrerelease&&s.semver.prerelease.length?s.semver:!1,E=i&&!r.includePrerelease&&i.semver.prerelease.length?i.semver:!1;d&&d.prerelease.length===1&&s.operator==="<"&&d.prerelease[0]===0&&(d=!1);for(const f of t){if(c=c||f.operator===">"||f.operator===">=",p=p||f.operator==="<"||f.operator==="<=",i){if(E&&f.semver.prerelease&&f.semver.prerelease.length&&f.semver.major===E.major&&f.semver.minor===E.minor&&f.semver.patch===E.patch&&(E=!1),f.operator===">"||f.operator===">="){if(a=xa(i,f,r),a===f&&a!==i)return!1}else if(i.operator===">="&&!en(i.semver,String(f),r))return!1}if(s){if(d&&f.semver.prerelease&&f.semver.prerelease.length&&f.semver.major===d.major&&f.semver.minor===d.minor&&f.semver.patch===d.patch&&(d=!1),f.operator==="<"||f.operator==="<="){if(u=za(s,f,r),u===f&&u!==s)return!1}else if(s.operator==="<="&&!en(s.semver,String(f),r))return!1}if(!f.operator&&(s||i)&&o!==0)return!1}return!(i&&p&&!s&&o!==0||s&&c&&!i&&o!==0||E||d)},xa=(e,t,r)=>{if(!e)return t;const n=_o(e.semver,t.semver,r);return n>0?e:n<0||t.operator===">"&&e.operator===">="?t:e},za=(e,t,r)=>{if(!e)return t;const n=_o(e.semver,t.semver,r);return n<0?e:n>0||t.operator==="<"&&e.operator==="<="?t:e};var YE=ZE;const Gi=Nn,Ga=vi,QE=We,Ha=Wu,eg=xr,tg=ev,rg=nv,ng=sv,ig=av,sg=fv,og=hv,ag=yv,cg=gv,ug=yt,fg=wv,lg=Ov,dg=po,hg=Cv,mg=bv,pg=gi,yg=yo,vg=Zu,Eg=Xu,gg=vo,$g=Eo,_g=Ju,Sg=rE,wg=$i(),Ng=vt(),Ig=_i,Og=yE,Tg=$E,Dg=NE,Rg=TE,Cg=CE,Pg=go,Ag=VE,bg=GE,Lg=qE,Fg=WE,jg=YE;var Mg={parse:eg,valid:tg,clean:rg,inc:ng,diff:ig,major:sg,minor:og,patch:ag,prerelease:cg,compare:ug,rcompare:fg,compareLoose:lg,compareBuild:dg,sort:hg,rsort:mg,gt:pg,lt:yg,eq:vg,neq:Eg,gte:gg,lte:$g,cmp:_g,coerce:Sg,Comparator:wg,Range:Ng,satisfies:Ig,toComparators:Og,maxSatisfying:Tg,minSatisfying:Dg,minVersion:Rg,validRange:Cg,outside:Pg,gtr:Ag,ltr:bg,intersects:Lg,simplifyRange:Fg,subset:jg,SemVer:QE,re:Gi.re,src:Gi.src,tokens:Gi.t,SEMVER_SPEC_VERSION:Ga.SEMVER_SPEC_VERSION,RELEASE_TYPES:Ga.RELEASE_TYPES,compareIdentifiers:Ha.compareIdentifiers,rcompareIdentifiers:Ha.rcompareIdentifiers},Si={exports:{}},So={exports:{}};const ef=(e,t)=>{for(const r of Reflect.ownKeys(t))Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r));return e};So.exports=ef;So.exports.default=ef;var kg=So.exports;const Ug=kg,si=new WeakMap,tf=(e,t={})=>{if(typeof e!="function")throw new TypeError("Expected a function");let r,n=0;const i=e.displayName||e.name||"<anonymous>",s=function(...o){if(si.set(s,++n),n===1)r=e.apply(this,o),e=null;else if(t.throw===!0)throw new Error(`Function \`${i}\` can only be called once`);return r};return Ug(s,e),si.set(s,n),s};Si.exports=tf;Si.exports.default=tf;Si.exports.callCount=e=>{if(!si.has(e))throw new Error(`The given function \`${e.name}\` is not wrapped by the \`onetime\` package`);return si.get(e)};var Vg=Si.exports;(function(e,t){var r=zt&&zt.__classPrivateFieldSet||function(G,C,F,O,w){if(O==="m")throw new TypeError("Private method is not writable");if(O==="a"&&!w)throw new TypeError("Private accessor was defined without a setter");if(typeof C=="function"?G!==C||!w:!C.has(G))throw new TypeError("Cannot write private member to an object whose class did not declare it");return O==="a"?w.call(G,F):w?w.value=F:C.set(G,F),F},n=zt&&zt.__classPrivateFieldGet||function(G,C,F,O){if(F==="a"&&!O)throw new TypeError("Private accessor was defined without a getter");if(typeof C=="function"?G!==C||!O:!C.has(G))throw new TypeError("Cannot read private member from an object whose class did not declare it");return F==="m"?O:F==="a"?O.call(G):O?O.value:C.get(G)},i,s,o,a,u,p;Object.defineProperty(t,"__esModule",{value:!0});const c=ai,d=Mr,E=Ne,f=nc,h=rc,y=_f,v=Yd,l=uh,$=hh,S=Tt,D=Gu,V=T0,T=k0,P=Mg,U=Vg,A="aes-256-cbc",x=()=>Object.create(null),B=G=>G!=null;let K="";try{delete require.cache[__filename],K=E.dirname((s=(i=e.parent)===null||i===void 0?void 0:i.filename)!==null&&s!==void 0?s:".")}catch{}const z=(G,C)=>{const F=new Set(["undefined","symbol","function"]),O=typeof C;if(F.has(O))throw new TypeError(`Setting a value of type \`${O}\` for key \`${G}\` is not allowed as it's not supported by JSON`)},k="__internal__",H=`${k}.migrations.version`;class q{constructor(C={}){var F;o.set(this,void 0),a.set(this,void 0),u.set(this,void 0),p.set(this,{}),this._deserialize=_=>JSON.parse(_),this._serialize=_=>JSON.stringify(_,void 0," ");const O={configName:"config",fileExtension:"json",projectSuffix:"nodejs",clearInvalidConfig:!1,accessPropertiesByDotNotation:!0,configFileMode:438,...C},w=U(()=>{const _=l.sync({cwd:K}),M=_&&JSON.parse(d.readFileSync(_,"utf8"));return M??{}});if(!O.cwd){if(O.projectName||(O.projectName=w().name),!O.projectName)throw new Error("Project name could not be inferred. Please specify the `projectName` option.");O.cwd=$(O.projectName,{suffix:O.projectSuffix}).config}if(r(this,u,O,"f"),O.schema){if(typeof O.schema!="object")throw new TypeError("The `schema` option must be an object.");const _=new D.default({allErrors:!0,useDefaults:!0});(0,V.default)(_);const M={type:"object",properties:O.schema};r(this,o,_.compile(M),"f");for(const[W,Z]of Object.entries(O.schema))Z?.default&&(n(this,p,"f")[W]=Z.default)}O.defaults&&r(this,p,{...n(this,p,"f"),...O.defaults},"f"),O.serialize&&(this._serialize=O.serialize),O.deserialize&&(this._deserialize=O.deserialize),this.events=new y.EventEmitter,r(this,a,O.encryptionKey,"f");const b=O.fileExtension?`.${O.fileExtension}`:"";this.path=E.resolve(O.cwd,`${(F=O.configName)!==null&&F!==void 0?F:"config"}${b}`);const R=this.store,m=Object.assign(x(),O.defaults,R);this._validate(m);try{h.deepEqual(R,m)}catch{this.store=m}if(O.watch&&this._watch(),O.migrations){if(O.projectVersion||(O.projectVersion=w().version),!O.projectVersion)throw new Error("Project version could not be inferred. Please specify the `projectVersion` option.");this._migrate(O.migrations,O.projectVersion,O.beforeEachMigration)}}get(C,F){if(n(this,u,"f").accessPropertiesByDotNotation)return this._get(C,F);const{store:O}=this;return C in O?O[C]:F}set(C,F){if(typeof C!="string"&&typeof C!="object")throw new TypeError(`Expected \`key\` to be of type \`string\` or \`object\`, got ${typeof C}`);if(typeof C!="object"&&F===void 0)throw new TypeError("Use `delete()` to clear values");if(this._containsReservedKey(C))throw new TypeError(`Please don't use the ${k} key, as it's used to manage this module internal operations.`);const{store:O}=this,w=(b,R)=>{z(b,R),n(this,u,"f").accessPropertiesByDotNotation?v.set(O,b,R):O[b]=R};if(typeof C=="object"){const b=C;for(const[R,m]of Object.entries(b))w(R,m)}else w(C,F);this.store=O}has(C){return n(this,u,"f").accessPropertiesByDotNotation?v.has(this.store,C):C in this.store}reset(...C){for(const F of C)B(n(this,p,"f")[F])&&this.set(F,n(this,p,"f")[F])}delete(C){const{store:F}=this;n(this,u,"f").accessPropertiesByDotNotation?v.delete(F,C):delete F[C],this.store=F}clear(){this.store=x();for(const C of Object.keys(n(this,p,"f")))this.reset(C)}onDidChange(C,F){if(typeof C!="string")throw new TypeError(`Expected \`key\` to be of type \`string\`, got ${typeof C}`);if(typeof F!="function")throw new TypeError(`Expected \`callback\` to be of type \`function\`, got ${typeof F}`);return this._handleChange(()=>this.get(C),F)}onDidAnyChange(C){if(typeof C!="function")throw new TypeError(`Expected \`callback\` to be of type \`function\`, got ${typeof C}`);return this._handleChange(()=>this.store,C)}get size(){return Object.keys(this.store).length}get store(){try{const C=d.readFileSync(this.path,n(this,a,"f")?null:"utf8"),F=this._encryptData(C),O=this._deserialize(F);return this._validate(O),Object.assign(x(),O)}catch(C){if(C?.code==="ENOENT")return this._ensureDirectory(),x();if(n(this,u,"f").clearInvalidConfig&&C.name==="SyntaxError")return x();throw C}}set store(C){this._ensureDirectory(),this._validate(C),this._write(C),this.events.emit("change")}*[(o=new WeakMap,a=new WeakMap,u=new WeakMap,p=new WeakMap,Symbol.iterator)](){for(const[C,F]of Object.entries(this.store))yield[C,F]}_encryptData(C){if(!n(this,a,"f"))return C.toString();try{if(n(this,a,"f"))try{if(C.slice(16,17).toString()===":"){const F=C.slice(0,16),O=f.pbkdf2Sync(n(this,a,"f"),F.toString(),1e4,32,"sha512"),w=f.createDecipheriv(A,O,F);C=Buffer.concat([w.update(Buffer.from(C.slice(17))),w.final()]).toString("utf8")}else{const F=f.createDecipher(A,n(this,a,"f"));C=Buffer.concat([F.update(Buffer.from(C)),F.final()]).toString("utf8")}}catch{}}catch{}return C.toString()}_handleChange(C,F){let O=C();const w=()=>{const b=O,R=C();(0,c.isDeepStrictEqual)(R,b)||(O=R,F.call(this,R,b))};return this.events.on("change",w),()=>this.events.removeListener("change",w)}_validate(C){if(!n(this,o,"f")||n(this,o,"f").call(this,C)||!n(this,o,"f").errors)return;const O=n(this,o,"f").errors.map(({instancePath:w,message:b=""})=>`\`${w.slice(1)}\` ${b}`);throw new Error("Config schema violation: "+O.join("; "))}_ensureDirectory(){d.mkdirSync(E.dirname(this.path),{recursive:!0})}_write(C){let F=this._serialize(C);if(n(this,a,"f")){const O=f.randomBytes(16),w=f.pbkdf2Sync(n(this,a,"f"),O.toString(),1e4,32,"sha512"),b=f.createCipheriv(A,w,O);F=Buffer.concat([O,Buffer.from(":"),b.update(Buffer.from(F)),b.final()])}if(process.env.SNAP)d.writeFileSync(this.path,F,{mode:n(this,u,"f").configFileMode});else try{S.writeFileSync(this.path,F,{mode:n(this,u,"f").configFileMode})}catch(O){if(O?.code==="EXDEV"){d.writeFileSync(this.path,F,{mode:n(this,u,"f").configFileMode});return}throw O}}_watch(){this._ensureDirectory(),d.existsSync(this.path)||this._write(x()),process.platform==="win32"?d.watch(this.path,{persistent:!1},T(()=>{this.events.emit("change")},{wait:100})):d.watchFile(this.path,{persistent:!1},T(()=>{this.events.emit("change")},{wait:5e3}))}_migrate(C,F,O){let w=this._get(H,"0.0.0");const b=Object.keys(C).filter(m=>this._shouldPerformMigration(m,w,F));let R={...this.store};for(const m of b)try{O&&O(this,{fromVersion:w,toVersion:m,finalVersion:F,versions:b});const _=C[m];_(this),this._set(H,m),w=m,R={...this.store}}catch(_){throw this.store=R,new Error(`Something went wrong during the migration! Changes applied to the store until this failed migration will be restored. ${_}`)}(this._isVersionInRangeFormat(w)||!P.eq(w,F))&&this._set(H,F)}_containsReservedKey(C){return typeof C=="object"&&Object.keys(C)[0]===k?!0:typeof C!="string"?!1:n(this,u,"f").accessPropertiesByDotNotation?!!C.startsWith(`${k}.`):!1}_isVersionInRangeFormat(C){return P.clean(C)===null}_shouldPerformMigration(C,F,O){return this._isVersionInRangeFormat(C)?F!=="0.0.0"&&P.satisfies(F,C)?!1:P.satisfies(O,C):!(P.lte(C,F)||P.gt(C,O))}_get(C,F){return v.get(this.store,C,F)}_set(C,F){const{store:O}=this;v.set(O,C,F),this.store=O}}t.default=q,e.exports=q,e.exports.default=q})(Xi,Xi.exports);var xg=Xi.exports;const qa=Ne,{app:Xn,ipcMain:as,ipcRenderer:Ba,shell:zg}=ae,Gg=xg;let Ka=!1;const Wa=()=>{if(!as||!Xn)throw new Error("Electron Store: You need to call `.initRenderer()` from the main process.");const e={defaultCwd:Xn.getPath("userData"),appVersion:Xn.getVersion()};return Ka||(as.on("electron-store-get-data",t=>{t.returnValue=e}),Ka=!0),e};class Hg extends Gg{constructor(t){let r,n;if(Ba){const i=Ba.sendSync("electron-store-get-data");if(!i)throw new Error("Electron Store: You need to call `.initRenderer()` from the main process.");({defaultCwd:r,appVersion:n}=i)}else as&&Xn&&({defaultCwd:r,appVersion:n}=Wa());t={name:"config",...t},t.projectVersion||(t.projectVersion=n),t.cwd?t.cwd=qa.isAbsolute(t.cwd)?t.cwd:qa.join(r,t.cwd):t.cwd=r,t.configName=t.name,delete t.name,super(t)}static initRenderer(){Wa()}openInEditor(){zg.openPath(this.path)}}var qg=Hg;const Za=sc(qg);var In={exports:{}},wo={},Bg=wo.require=function(){if(typeof process=="object"&&process.versions&&process.versions.electron)try{const e=Bg("original-fs");if(Object.keys(e).length>0)return e}catch{}return Mr},rf={LOCHDR:30,LOCSIG:67324752,LOCVER:4,LOCFLG:6,LOCHOW:8,LOCTIM:10,LOCCRC:14,LOCSIZ:18,LOCLEN:22,LOCNAM:26,LOCEXT:28,EXTSIG:134695760,EXTHDR:16,EXTCRC:4,EXTSIZ:8,EXTLEN:12,CENHDR:46,CENSIG:33639248,CENVEM:4,CENVER:6,CENFLG:8,CENHOW:10,CENTIM:12,CENCRC:16,CENSIZ:20,CENLEN:24,CENNAM:28,CENEXT:30,CENCOM:32,CENDSK:34,CENATT:36,CENATX:38,CENOFF:42,ENDHDR:22,ENDSIG:101010256,ENDSUB:8,ENDTOT:10,ENDSIZ:12,ENDOFF:16,ENDCOM:20,END64HDR:20,END64SIG:117853008,END64START:4,END64OFF:8,END64NUMDISKS:16,ZIP64SIG:101075792,ZIP64HDR:56,ZIP64LEAD:12,ZIP64SIZE:4,ZIP64VEM:12,ZIP64VER:14,ZIP64DSK:16,ZIP64DSKDIR:20,ZIP64SUB:24,ZIP64TOT:32,ZIP64SIZB:40,ZIP64OFF:48,ZIP64EXTRA:56,STORED:0,SHRUNK:1,REDUCED1:2,REDUCED2:3,REDUCED3:4,REDUCED4:5,IMPLODED:6,DEFLATED:8,ENHANCED_DEFLATED:9,PKWARE:10,BZIP2:12,LZMA:14,IBM_TERSE:18,IBM_LZ77:19,AES_ENCRYPT:99,FLG_ENC:1,FLG_COMP1:2,FLG_COMP2:4,FLG_DESC:8,FLG_ENH:16,FLG_PATCH:32,FLG_STR:64,FLG_EFS:2048,FLG_MSK:4096,FILE:2,BUFFER:1,NONE:0,EF_ID:0,EF_SIZE:2,ID_ZIP64:1,ID_AVINFO:7,ID_PFS:8,ID_OS2:9,ID_NTFS:10,ID_OPENVMS:12,ID_UNIX:13,ID_FORK:14,ID_PATCH:15,ID_X509_PKCS7:20,ID_X509_CERTID_F:21,ID_X509_CERTID_C:22,ID_STRONGENC:23,ID_RECORD_MGT:24,ID_X509_PKCS7_RL:25,ID_IBM1:101,ID_IBM2:102,ID_POSZIP:18064,EF_ZIP64_OR_32:4294967295,EF_ZIP64_OR_16:65535,EF_ZIP64_SUNCOMP:0,EF_ZIP64_SCOMP:8,EF_ZIP64_RHO:16,EF_ZIP64_DSN:24},nf={INVALID_LOC:"Invalid LOC header (bad signature)",INVALID_CEN:"Invalid CEN header (bad signature)",INVALID_END:"Invalid END header (bad signature)",NO_DATA:"Nothing to decompress",BAD_CRC:"CRC32 checksum failed",FILE_IN_THE_WAY:"There is a file in the way: %s",UNKNOWN_METHOD:"Invalid/unsupported compression method",AVAIL_DATA:"inflate::Available inflate data did not terminate",INVALID_DISTANCE:"inflate::Invalid literal/length or distance code in fixed or dynamic block",TO_MANY_CODES:"inflate::Dynamic block code description: too many length or distance codes",INVALID_REPEAT_LEN:"inflate::Dynamic block code description: repeat more than specified lengths",INVALID_REPEAT_FIRST:"inflate::Dynamic block code description: repeat lengths with no first length",INCOMPLETE_CODES:"inflate::Dynamic block code description: code lengths codes incomplete",INVALID_DYN_DISTANCE:"inflate::Dynamic block code description: invalid distance code lengths",INVALID_CODES_LEN:"inflate::Dynamic block code description: invalid literal/length code lengths",INVALID_STORE_BLOCK:"inflate::Stored block length did not match one's complement",INVALID_BLOCK_TYPE:"inflate::Invalid block type (type == 3)",CANT_EXTRACT_FILE:"Could not extract the file",CANT_OVERRIDE:"Target file already exists",NO_ZIP:"No zip file was loaded",NO_ENTRY:"Entry doesn't exist",DIRECTORY_CONTENT_ERROR:"A directory cannot have content",FILE_NOT_FOUND:"File not found: %s",NOT_IMPLEMENTED:"Not implemented",INVALID_FILENAME:"Invalid filename",INVALID_FORMAT:"Invalid or unsupported zip format. No END header found"};const Kg=wo.require(),He=Ne,Xa=rf,Wg=nf,Zg=typeof process=="object"&&process.platform==="win32",Ja=e=>e&&typeof e=="object",No=new Uint32Array(256).map((e,t)=>{for(let r=0;r<8;r++)t&1?t=3988292384^t>>>1:t>>>=1;return t>>>0});function ke(e){this.sep=He.sep,this.fs=Kg,Ja(e)&&Ja(e.fs)&&typeof e.fs.statSync=="function"&&(this.fs=e.fs)}var Xg=ke;ke.prototype.makeDir=function(e){const t=this;function r(n){let i=n.split(t.sep)[0];n.split(t.sep).forEach(function(s){if(!(!s||s.substr(-1,1)===":")){i+=t.sep+s;var o;try{o=t.fs.statSync(i)}catch{t.fs.mkdirSync(i)}if(o&&o.isFile())throw Wg.FILE_IN_THE_WAY.replace("%s",i)}})}r(e)};ke.prototype.writeFileTo=function(e,t,r,n){const i=this;if(i.fs.existsSync(e)){if(!r)return!1;var s=i.fs.statSync(e);if(s.isDirectory())return!1}var o=He.dirname(e);i.fs.existsSync(o)||i.makeDir(o);var a;try{a=i.fs.openSync(e,"w",438)}catch{i.fs.chmodSync(e,438),a=i.fs.openSync(e,"w",438)}if(a)try{i.fs.writeSync(a,t,0,t.length,0)}finally{i.fs.closeSync(a)}return i.fs.chmodSync(e,n||438),!0};ke.prototype.writeFileToAsync=function(e,t,r,n,i){typeof n=="function"&&(i=n,n=void 0);const s=this;s.fs.exists(e,function(o){if(o&&!r)return i(!1);s.fs.stat(e,function(a,u){if(o&&u.isDirectory())return i(!1);var p=He.dirname(e);s.fs.exists(p,function(c){c||s.makeDir(p),s.fs.open(e,"w",438,function(d,E){d?s.fs.chmod(e,438,function(){s.fs.open(e,"w",438,function(f,h){s.fs.write(h,t,0,t.length,0,function(){s.fs.close(h,function(){s.fs.chmod(e,n||438,function(){i(!0)})})})})}):E?s.fs.write(E,t,0,t.length,0,function(){s.fs.close(E,function(){s.fs.chmod(e,n||438,function(){i(!0)})})}):s.fs.chmod(e,n||438,function(){i(!0)})})})})})};ke.prototype.findFiles=function(e){const t=this;function r(n,i,s){typeof i=="boolean"&&(s=i,i=void 0);let o=[];return t.fs.readdirSync(n).forEach(function(a){var u=He.join(n,a);t.fs.statSync(u).isDirectory()&&s&&(o=o.concat(r(u,i,s))),(!i||i.test(u))&&o.push(He.normalize(u)+(t.fs.statSync(u).isDirectory()?t.sep:""))}),o}return r(e,void 0,!0)};ke.prototype.getAttributes=function(){};ke.prototype.setAttributes=function(){};ke.crc32update=function(e,t){return No[(e^t)&255]^e>>>8};ke.crc32=function(e){typeof e=="string"&&(e=Buffer.from(e,"utf8")),No.length||genCRCTable();let t=e.length,r=-1;for(let n=0;n<t;)r=ke.crc32update(r,e[n++]);return~r>>>0};ke.methodToString=function(e){switch(e){case Xa.STORED:return"STORED ("+e+")";case Xa.DEFLATED:return"DEFLATED ("+e+")";default:return"UNSUPPORTED ("+e+")"}};ke.canonical=function(e){if(!e)return"";var t=He.posix.normalize("/"+e.split("\\").join("/"));return He.join(".",t)};ke.sanitize=function(e,t){e=He.resolve(He.normalize(e));for(var r=t.split("/"),n=0,i=r.length;n<i;n++){var s=He.normalize(He.join(e,r.slice(n,i).join(He.sep)));if(s.indexOf(e)===0)return s}return He.normalize(He.join(e,He.basename(t)))};ke.toBuffer=function(t){return Buffer.isBuffer(t)?t:t instanceof Uint8Array?Buffer.from(t):typeof t=="string"?Buffer.from(t,"utf8"):Buffer.alloc(0)};ke.readBigUInt64LE=function(e,t){var r=Buffer.from(e.slice(t,t+8));return r.swap64(),parseInt(`0x${r.toString("hex")}`)};ke.isWin=Zg;ke.crcTable=No;const oi=wo.require(),sf=Ne;oi.existsSync=oi.existsSync||sf.existsSync;var Jg=function(e){var t=e||"",r=i(),n=null;function i(){return{directory:!1,readonly:!1,hidden:!1,executable:!1,mtime:0,atime:0}}return t&&oi.existsSync(t)?(n=oi.statSync(t),r.directory=n.isDirectory(),r.mtime=n.mtime,r.atime=n.atime,r.executable=(73&n.mode)!==0,r.readonly=(128&n.mode)===0,r.hidden=sf.basename(t)[0]==="."):console.warn("Invalid path: "+t),{get directory(){return r.directory},get readOnly(){return r.readonly},get hidden(){return r.hidden},get mtime(){return r.mtime},get atime(){return r.atime},get executable(){return r.executable},decodeAttributes:function(){},encodeAttributes:function(){},toJSON:function(){return{path:t,isDirectory:r.directory,isReadOnly:r.readonly,isHidden:r.hidden,isExecutable:r.executable,mTime:r.mtime,aTime:r.atime}},toString:function(){return JSON.stringify(this.toJSON(),null," ")}}};In.exports=Xg;In.exports.Constants=rf;In.exports.Errors=nf;In.exports.FileAttr=Jg;var On=In.exports,wi={},rn=On,X=rn.Constants,Yg=function(){var e=20,t=10,r=0,n=0,i=0,s=0,o=0,a=0,u=0,p=0,c=0,d=0,E=0,f=0,h=0;e|=rn.isWin?2560:768,r|=X.FLG_EFS;var y={};function v(l){l=new Date(l),i=(l.getFullYear()-1980&127)<<25|l.getMonth()+1<<21|l.getDate()<<16|l.getHours()<<11|l.getMinutes()<<5|l.getSeconds()>>1}return v(+new Date),{get made(){return e},set made(l){e=l},get version(){return t},set version(l){t=l},get flags(){return r},set flags(l){r=l},get method(){return n},set method(l){switch(l){case X.STORED:this.version=10;case X.DEFLATED:default:this.version=20}n=l},get time(){return new Date((i>>25&127)+1980,(i>>21&15)-1,i>>16&31,i>>11&31,i>>5&63,(i&31)<<1)},set time(l){v(l)},get crc(){return s},set crc(l){s=Math.max(0,l)>>>0},get compressedSize(){return o},set compressedSize(l){o=Math.max(0,l)>>>0},get size(){return a},set size(l){a=Math.max(0,l)>>>0},get fileNameLength(){return u},set fileNameLength(l){u=l},get extraLength(){return p},set extraLength(l){p=l},get commentLength(){return c},set commentLength(l){c=l},get diskNumStart(){return d},set diskNumStart(l){d=Math.max(0,l)>>>0},get inAttr(){return E},set inAttr(l){E=Math.max(0,l)>>>0},get attr(){return f},set attr(l){f=Math.max(0,l)>>>0},get fileAttr(){return f?(f>>>0|0)>>16&4095:0},get offset(){return h},set offset(l){h=Math.max(0,l)>>>0},get encripted(){return(r&1)===1},get entryHeaderSize(){return X.CENHDR+u+p+c},get realDataOffset(){return h+X.LOCHDR+y.fnameLen+y.extraLen},get dataHeader(){return y},loadDataHeaderFromBinary:function(l){var $=l.slice(h,h+X.LOCHDR);if($.readUInt32LE(0)!==X.LOCSIG)throw new Error(rn.Errors.INVALID_LOC);y={version:$.readUInt16LE(X.LOCVER),flags:$.readUInt16LE(X.LOCFLG),method:$.readUInt16LE(X.LOCHOW),time:$.readUInt32LE(X.LOCTIM),crc:$.readUInt32LE(X.LOCCRC),compressedSize:$.readUInt32LE(X.LOCSIZ),size:$.readUInt32LE(X.LOCLEN),fnameLen:$.readUInt16LE(X.LOCNAM),extraLen:$.readUInt16LE(X.LOCEXT)}},loadFromBinary:function(l){if(l.length!==X.CENHDR||l.readUInt32LE(0)!==X.CENSIG)throw new Error(rn.Errors.INVALID_CEN);e=l.readUInt16LE(X.CENVEM),t=l.readUInt16LE(X.CENVER),r=l.readUInt16LE(X.CENFLG),n=l.readUInt16LE(X.CENHOW),i=l.readUInt32LE(X.CENTIM),s=l.readUInt32LE(X.CENCRC),o=l.readUInt32LE(X.CENSIZ),a=l.readUInt32LE(X.CENLEN),u=l.readUInt16LE(X.CENNAM),p=l.readUInt16LE(X.CENEXT),c=l.readUInt16LE(X.CENCOM),d=l.readUInt16LE(X.CENDSK),E=l.readUInt16LE(X.CENATT),f=l.readUInt32LE(X.CENATX),h=l.readUInt32LE(X.CENOFF)},dataHeaderToBinary:function(){var l=Buffer.alloc(X.LOCHDR);return l.writeUInt32LE(X.LOCSIG,0),l.writeUInt16LE(t,X.LOCVER),l.writeUInt16LE(r,X.LOCFLG),l.writeUInt16LE(n,X.LOCHOW),l.writeUInt32LE(i,X.LOCTIM),l.writeUInt32LE(s,X.LOCCRC),l.writeUInt32LE(o,X.LOCSIZ),l.writeUInt32LE(a,X.LOCLEN),l.writeUInt16LE(u,X.LOCNAM),l.writeUInt16LE(p,X.LOCEXT),l},entryHeaderToBinary:function(){var l=Buffer.alloc(X.CENHDR+u+p+c);return l.writeUInt32LE(X.CENSIG,0),l.writeUInt16LE(e,X.CENVEM),l.writeUInt16LE(t,X.CENVER),l.writeUInt16LE(r,X.CENFLG),l.writeUInt16LE(n,X.CENHOW),l.writeUInt32LE(i,X.CENTIM),l.writeUInt32LE(s,X.CENCRC),l.writeUInt32LE(o,X.CENSIZ),l.writeUInt32LE(a,X.CENLEN),l.writeUInt16LE(u,X.CENNAM),l.writeUInt16LE(p,X.CENEXT),l.writeUInt16LE(c,X.CENCOM),l.writeUInt16LE(d,X.CENDSK),l.writeUInt16LE(E,X.CENATT),l.writeUInt32LE(f,X.CENATX),l.writeUInt32LE(h,X.CENOFF),l.fill(0,X.CENHDR),l},toJSON:function(){const l=function($){return $+" bytes"};return{made:e,version:t,flags:r,method:rn.methodToString(n),time:this.time,crc:"0x"+s.toString(16).toUpperCase(),compressedSize:l(o),size:l(a),fileNameLength:l(u),extraLength:l(p),commentLength:l(c),diskNumStart:d,inAttr:E,attr:f,offset:h,entryHeaderSize:l(X.CENHDR+u+p+c)}},toString:function(){return JSON.stringify(this.toJSON(),null," ")}}},Or=On,$e=Or.Constants,Qg=function(){var e=0,t=0,r=0,n=0,i=0;return{get diskEntries(){return e},set diskEntries(s){e=t=s},get totalEntries(){return t},set totalEntries(s){t=e=s},get size(){return r},set size(s){r=s},get offset(){return n},set offset(s){n=s},get commentLength(){return i},set commentLength(s){i=s},get mainHeaderSize(){return $e.ENDHDR+i},loadFromBinary:function(s){if((s.length!==$e.ENDHDR||s.readUInt32LE(0)!==$e.ENDSIG)&&(s.length<$e.ZIP64HDR||s.readUInt32LE(0)!==$e.ZIP64SIG))throw new Error(Or.Errors.INVALID_END);s.readUInt32LE(0)===$e.ENDSIG?(e=s.readUInt16LE($e.ENDSUB),t=s.readUInt16LE($e.ENDTOT),r=s.readUInt32LE($e.ENDSIZ),n=s.readUInt32LE($e.ENDOFF),i=s.readUInt16LE($e.ENDCOM)):(e=Or.readBigUInt64LE(s,$e.ZIP64SUB),t=Or.readBigUInt64LE(s,$e.ZIP64TOT),r=Or.readBigUInt64LE(s,$e.ZIP64SIZE),n=Or.readBigUInt64LE(s,$e.ZIP64OFF),i=0)},toBinary:function(){var s=Buffer.alloc($e.ENDHDR+i);return s.writeUInt32LE($e.ENDSIG,0),s.writeUInt32LE(0,4),s.writeUInt16LE(e,$e.ENDSUB),s.writeUInt16LE(t,$e.ENDTOT),s.writeUInt32LE(r,$e.ENDSIZ),s.writeUInt32LE(n,$e.ENDOFF),s.writeUInt16LE(i,$e.ENDCOM),s.fill(" ",$e.ENDHDR),s},toJSON:function(){const s=function(o,a){let u=o.toString(16).toUpperCase();for(;u.length<a;)u="0"+u;return"0x"+u};return{diskEntries:e,totalEntries:t,size:r+" bytes",offset:s(n,4),commentLength:i}},toString:function(){return JSON.stringify(this.toJSON(),null," ")}}};wi.EntryHeader=Yg;wi.MainHeader=Qg;var Ni={},e$=function(e){var t=ic,r={chunkSize:(parseInt(e.length/1024)+1)*1024};return{deflate:function(){return t.deflateRawSync(e,r)},deflateAsync:function(n){var i=t.createDeflateRaw(r),s=[],o=0;i.on("data",function(a){s.push(a),o+=a.length}),i.on("end",function(){var a=Buffer.alloc(o),u=0;a.fill(0);for(var p=0;p<s.length;p++){var c=s[p];c.copy(a,u),u+=c.length}n&&n(a)}),i.end(e)}}},t$=function(e){var t=ic;return{inflate:function(){return t.inflateRawSync(e)},inflateAsync:function(r){var n=t.createInflateRaw(),i=[],s=0;n.on("data",function(o){i.push(o),s+=o.length}),n.on("end",function(){var o=Buffer.alloc(s),a=0;o.fill(0);for(var u=0;u<i.length;u++){var p=i[u];p.copy(o,a),a+=p.length}r&&r(o)}),n.end(e)}}};const{randomFillSync:Ya}=nc,r$=new Uint32Array(256).map((e,t)=>{for(let r=0;r<8;r++)t&1?t=t>>>1^3988292384:t>>>=1;return t>>>0}),of=(e,t)=>Math.imul(e,t)>>>0,Qa=(e,t)=>r$[(e^t)&255]^e>>>8,vn=()=>typeof Ya=="function"?Ya(Buffer.alloc(12)):vn.node();vn.node=()=>{const e=Buffer.alloc(12),t=e.length;for(let r=0;r<t;r++)e[r]=Math.random()*256&255;return e};const Jn={genSalt:vn};function Ii(e){const t=Buffer.isBuffer(e)?e:Buffer.from(e);this.keys=new Uint32Array([305419896,591751049,878082192]);for(let r=0;r<t.length;r++)this.updateKeys(t[r])}Ii.prototype.updateKeys=function(e){const t=this.keys;return t[0]=Qa(t[0],e),t[1]+=t[0]&255,t[1]=of(t[1],134775813)+1,t[2]=Qa(t[2],t[1]>>>24),e};Ii.prototype.next=function(){const e=(this.keys[2]|2)>>>0;return of(e,e^1)>>8&255};function n$(e){const t=new Ii(e);return function(r){const n=Buffer.alloc(r.length);let i=0;for(let s of r)n[i++]=t.updateKeys(s^t.next());return n}}function i$(e){const t=new Ii(e);return function(r,n,i=0){n||(n=Buffer.alloc(r.length));for(let s of r){const o=t.next();n[i++]=s^o,t.updateKeys(s)}return n}}function s$(e,t,r){if(!e||!Buffer.isBuffer(e)||e.length<12)return Buffer.alloc(0);const n=n$(r);if(n(e.slice(0,12))[11]!==t.crc>>>24)throw"ADM-ZIP: Wrong Password";return n(e.slice(12))}function o$(e){Buffer.isBuffer(e)&&e.length>=12?Jn.genSalt=function(){return e.slice(0,12)}:e==="node"?Jn.genSalt=vn.node:Jn.genSalt=vn}function a$(e,t,r,n=!1){e==null&&(e=Buffer.alloc(0)),Buffer.isBuffer(e)||(e=Buffer.from(e.toString()));const i=i$(r),s=Jn.genSalt();s[11]=t.crc>>>24&255,n&&(s[10]=t.crc>>>16&255);const o=Buffer.alloc(e.length+12);return i(s,o),i(e,o,12)}var c$={decrypt:s$,encrypt:a$,_salter:o$};Ni.Deflater=e$;Ni.Inflater=t$;Ni.ZipCrypto=c$;var Re=On,u$=wi,rt=Re.Constants,Hi=Ni,af=function(e){var t=new u$.EntryHeader,r=Buffer.alloc(0),n=Buffer.alloc(0),i=!1,s=null,o=Buffer.alloc(0);function a(){return!e||!Buffer.isBuffer(e)?Buffer.alloc(0):(t.loadDataHeaderFromBinary(e),e.slice(t.realDataOffset,t.realDataOffset+t.compressedSize))}function u(h){return!((t.flags&8)!==8&&Re.crc32(h)!==t.dataHeader.crc)}function p(h,y,v){if(typeof y>"u"&&typeof h=="string"&&(v=h,h=void 0),i)return h&&y&&y(Buffer.alloc(0),Re.Errors.DIRECTORY_CONTENT_ERROR),Buffer.alloc(0);var l=a();if(l.length===0)return h&&y&&y(l),l;if(t.encripted){if(typeof v!="string"&&!Buffer.isBuffer(v))throw new Error("ADM-ZIP: Incompatible password parameter");l=Hi.ZipCrypto.decrypt(l,t,v)}var $=Buffer.alloc(t.size);switch(t.method){case Re.Constants.STORED:if(l.copy($),u($))return h&&y&&y($),$;throw h&&y&&y($,Re.Errors.BAD_CRC),new Error(Re.Errors.BAD_CRC);case Re.Constants.DEFLATED:var S=new Hi.Inflater(l);if(h)S.inflateAsync(function(D){D.copy(D,0),y&&(u(D)?y(D):y(D,Re.Errors.BAD_CRC))});else{if(S.inflate($).copy($,0),!u($))throw new Error(Re.Errors.BAD_CRC+" "+r.toString());return $}break;default:throw h&&y&&y(Buffer.alloc(0),Re.Errors.UNKNOWN_METHOD),new Error(Re.Errors.UNKNOWN_METHOD)}}function c(h,y){if((!s||!s.length)&&Buffer.isBuffer(e))return h&&y&&y(a()),a();if(s.length&&!i){var v;switch(t.method){case Re.Constants.STORED:return t.compressedSize=t.size,v=Buffer.alloc(s.length),s.copy(v),h&&y&&y(v),v;default:case Re.Constants.DEFLATED:var l=new Hi.Deflater(s);if(h)l.deflateAsync(function(S){v=Buffer.alloc(S.length),t.compressedSize=S.length,S.copy(v),y&&y(v)});else{var $=l.deflate();return t.compressedSize=$.length,$}l=null;break}}else if(h&&y)y(Buffer.alloc(0));else return Buffer.alloc(0)}function d(h,y){return(h.readUInt32LE(y+4)<<4)+h.readUInt32LE(y)}function E(h){for(var y=0,v,l,$;y<h.length;)v=h.readUInt16LE(y),y+=2,l=h.readUInt16LE(y),y+=2,$=h.slice(y,y+l),y+=l,rt.ID_ZIP64===v&&f($)}function f(h){var y,v,l,$;h.length>=rt.EF_ZIP64_SCOMP&&(y=d(h,rt.EF_ZIP64_SUNCOMP),t.size===rt.EF_ZIP64_OR_32&&(t.size=y)),h.length>=rt.EF_ZIP64_RHO&&(v=d(h,rt.EF_ZIP64_SCOMP),t.compressedSize===rt.EF_ZIP64_OR_32&&(t.compressedSize=v)),h.length>=rt.EF_ZIP64_DSN&&(l=d(h,rt.EF_ZIP64_RHO),t.offset===rt.EF_ZIP64_OR_32&&(t.offset=l)),h.length>=rt.EF_ZIP64_DSN+4&&($=h.readUInt32LE(rt.EF_ZIP64_DSN),t.diskNumStart===rt.EF_ZIP64_OR_16&&(t.diskNumStart=$))}return{get entryName(){return r.toString()},get rawEntryName(){return r},set entryName(h){r=Re.toBuffer(h);var y=r[r.length-1];i=y===47||y===92,t.fileNameLength=r.length},get extra(){return o},set extra(h){o=h,t.extraLength=h.length,E(h)},get comment(){return n.toString()},set comment(h){n=Re.toBuffer(h),t.commentLength=n.length},get name(){var h=r.toString();return i?h.substr(h.length-1).split("/").pop():h.split("/").pop()},get isDirectory(){return i},getCompressedData:function(){return c(!1,null)},getCompressedDataAsync:function(h){c(!0,h)},setData:function(h){s=Re.toBuffer(h),!i&&s.length?(t.size=s.length,t.method=Re.Constants.DEFLATED,t.crc=Re.crc32(h),t.changed=!0):t.method=Re.Constants.STORED},getData:function(h){return t.changed?s:p(!1,null,h)},getDataAsync:function(h,y){t.changed?h(s):p(!0,h,y)},set attr(h){t.attr=h},get attr(){return t.attr},set header(h){t.loadFromBinary(h)},get header(){return t},packHeader:function(){var h=t.entryHeaderToBinary(),y=Re.Constants.CENHDR;return r.copy(h,y),y+=r.length,t.extraLength&&(o.copy(h,y),y+=t.extraLength),t.commentLength&&n.copy(h,y),h},toJSON:function(){const h=function(y){return"<"+(y&&y.length+" bytes buffer"||"null")+">"};return{entryName:this.entryName,name:this.name,comment:this.comment,isDirectory:this.isDirectory,header:t.toJSON(),compressedData:h(e),data:h(s)}},toString:function(){return JSON.stringify(this.toJSON(),null," ")}}};const ec=af,f$=wi,Ve=On;var l$=function(e,t){var r=[],n={},i=Buffer.alloc(0),s=new f$.MainHeader,o=!1;const a=Object.assign(Object.create(null),t),{noSort:u}=a;e?d(a.readEntries):o=!0;function p(f){const h=s.diskEntries;let y=s.offset;for(let v=0;v<h;v++){let l=y;const $=new ec(e);$.header=e.slice(l,l+=Ve.Constants.CENHDR),$.entryName=e.slice(l,l+=$.header.fileNameLength),y+=$.header.entryHeaderSize,f($)}}function c(){o=!0,n={},r=new Array(s.diskEntries);for(var f=s.offset,h=0;h<r.length;h++){var y=f,v=new ec(e);v.header=e.slice(y,y+=Ve.Constants.CENHDR),v.entryName=e.slice(y,y+=v.header.fileNameLength),v.header.extraLength&&(v.extra=e.slice(y,y+=v.header.extraLength)),v.header.commentLength&&(v.comment=e.slice(y,y+v.header.commentLength)),f+=v.header.entryHeaderSize,r[h]=v,n[v.entryName]=v}}function d(f){var h=e.length-Ve.Constants.ENDHDR,y=Math.max(0,h-65535),v=y,l=e.length,$=-1,S=0;for(h;h>=v;h--)if(e[h]===80){if(e.readUInt32LE(h)===Ve.Constants.ENDSIG){$=h,S=h,l=h+Ve.Constants.ENDHDR,v=h-Ve.Constants.END64HDR;continue}if(e.readUInt32LE(h)===Ve.Constants.END64SIG){v=y;continue}if(e.readUInt32LE(h)===Ve.Constants.ZIP64SIG){$=h,l=h+Ve.readBigUInt64LE(e,h+Ve.Constants.ZIP64SIZE)+Ve.Constants.ZIP64LEAD;break}}if(!~$)throw new Error(Ve.Errors.INVALID_FORMAT);s.loadFromBinary(e.slice($,l)),s.commentLength&&(i=e.slice(S+Ve.Constants.ENDHDR)),f&&c()}function E(){r.length>1&&!u&&r.sort((f,h)=>f.entryName.toLowerCase().localeCompare(h.entryName.toLowerCase()))}return{get entries(){return o||c(),r},get comment(){return i.toString()},set comment(f){i=Ve.toBuffer(f),s.commentLength=i.length},getEntryCount:function(){return o?r.length:s.diskEntries},forEach:function(f){if(!o){p(f);return}r.forEach(f)},getEntry:function(f){return o||c(),n[f]||null},setEntry:function(f){o||c(),r.push(f),n[f.entryName]=f,s.totalEntries=r.length},deleteEntry:function(f){o||c();var h=n[f];if(h&&h.isDirectory){var y=this;this.getEntryChildren(h).forEach(function(v){v.entryName!==f&&y.deleteEntry(v.entryName)})}r.splice(r.indexOf(h),1),delete n[f],s.totalEntries=r.length},getEntryChildren:function(f){if(o||c(),f&&f.isDirectory){const h=[],y=f.entryName,v=y.length;return r.forEach(function(l){l.entryName.substr(0,v)===y&&h.push(l)}),h}return[]},compressToBuffer:function(){o||c(),E();const f=[],h=[];let y=0,v=0;s.size=0,s.offset=0;for(const S of r){const D=S.getCompressedData();S.header.offset=v;const V=S.header.dataHeaderToBinary(),T=S.rawEntryName.length,P=Buffer.alloc(T+S.extra.length);S.rawEntryName.copy(P,0),P.copy(S.extra,T);const U=V.length+P.length+D.length;v+=U,f.push(V),f.push(P),f.push(D);const A=S.packHeader();h.push(A),s.size+=A.length,y+=U+A.length}y+=s.mainHeaderSize,s.offset=v,v=0;const l=Buffer.alloc(y);for(const S of f)S.copy(l,v),v+=S.length;for(const S of h)S.copy(l,v),v+=S.length;const $=s.toBinary();return i&&i.copy($,Ve.Constants.ENDHDR),$.copy(l,v),l},toAsyncBuffer:function(f,h,y,v){try{o||c(),E();const l=[],$=[];let S=0,D=0;s.size=0,s.offset=0;const V=function(T){if(T.length){const P=T.pop(),U=P.entryName+P.extra.toString();y&&y(U),P.getCompressedDataAsync(function(A){v&&v(U),P.header.offset=D;const x=P.header.dataHeaderToBinary(),B=Buffer.alloc(U.length,U),K=x.length+B.length+A.length;D+=K,l.push(x),l.push(B),l.push(A);const z=P.packHeader();$.push(z),s.size+=z.length,S+=K+z.length,V(T)})}else{S+=s.mainHeaderSize,s.offset=D,D=0;const P=Buffer.alloc(S);l.forEach(function(A){A.copy(P,D),D+=A.length}),$.forEach(function(A){A.copy(P,D),D+=A.length});const U=s.toBinary();i&&i.copy(U,Ve.Constants.ENDHDR),U.copy(P,D),f(P)}};V(r)}catch(l){h(l)}}}};const Pe=On,Nt=Ne,d$=af,h$=l$,tr=(e,t)=>typeof e=="boolean"?e:t,qi=(e,t)=>typeof e=="string"?e:t,m$={noSort:!1,readEntries:!1,method:Pe.Constants.NONE,fs:null};var p$=function(e,t){let r=null;const n=Object.assign(Object.create(null),m$);e&&typeof e=="object"&&(e instanceof Uint8Array||(Object.assign(n,e),e=n.input?n.input:void 0,n.input&&delete n.input),Buffer.isBuffer(e)&&(r=e,n.method=Pe.Constants.BUFFER,e=void 0)),Object.assign(n,t);const i=new Pe(n);if(e&&typeof e=="string")if(i.fs.existsSync(e))n.method=Pe.Constants.FILE,n.filename=e,r=i.fs.readFileSync(e);else throw new Error(Pe.Errors.INVALID_FILENAME);const s=new h$(r,n),{canonical:o,sanitize:a}=Pe;function u(c){if(c&&s){var d;if(typeof c=="string"&&(d=s.getEntry(c)),typeof c=="object"&&typeof c.entryName<"u"&&typeof c.header<"u"&&(d=s.getEntry(c.entryName)),d)return d}return null}function p(c){const{join:d,normalize:E,sep:f}=Nt.posix;return d(".",E(f+c.split("\\").join(f)+f))}return{readFile:function(c,d){var E=u(c);return E&&E.getData(d)||null},readFileAsync:function(c,d){var E=u(c);E?E.getDataAsync(d):d(null,"getEntry failed for:"+c)},readAsText:function(c,d){var E=u(c);if(E){var f=E.getData();if(f&&f.length)return f.toString(d||"utf8")}return""},readAsTextAsync:function(c,d,E){var f=u(c);f?f.getDataAsync(function(h,y){if(y){d(h,y);return}h&&h.length?d(h.toString(E||"utf8")):d("")}):d("")},deleteFile:function(c){var d=u(c);d&&s.deleteEntry(d.entryName)},addZipComment:function(c){s.comment=c},getZipComment:function(){return s.comment||""},addZipEntryComment:function(c,d){var E=u(c);E&&(E.comment=d)},getZipEntryComment:function(c){var d=u(c);return d&&d.comment||""},updateFile:function(c,d){var E=u(c);E&&E.setData(d)},addLocalFile:function(c,d,E,f){if(i.fs.existsSync(c)){d=d?p(d):"";var h=c.split("\\").join("/").split("/").pop();d+=E||h;const y=i.fs.statSync(c);this.addFile(d,i.fs.readFileSync(c),f,y)}else throw new Error(Pe.Errors.FILE_NOT_FOUND.replace("%s",c))},addLocalFolder:function(c,d,E,f){if(E instanceof RegExp?E=function(h){return function(y){return h.test(y)}}(E):typeof E!="function"&&(E=function(){return!0}),d=d?p(d):"",c=Nt.normalize(c),i.fs.existsSync(c)){const h=i.findFiles(c),y=this;h.length&&h.forEach(function(v){var l=Nt.relative(c,v).split("\\").join("/");if(E(l)){var $=i.fs.statSync(v);$.isFile()?y.addFile(d+l,i.fs.readFileSync(v),"",f||$):y.addFile(d+l+"/",Buffer.alloc(0),"",f||$)}})}else throw new Error(Pe.Errors.FILE_NOT_FOUND.replace("%s",c))},addLocalFolderAsync:function(c,d,E,f){f instanceof RegExp?f=function(y){return function(v){return y.test(v)}}(f):typeof f!="function"&&(f=function(){return!0}),E=E?p(E):"",c=Nt.normalize(c);var h=this;i.fs.open(c,"r",function(y){if(y&&y.code==="ENOENT")d(void 0,Pe.Errors.FILE_NOT_FOUND.replace("%s",c));else if(y)d(void 0,y);else{var v=i.findFiles(c),l=-1,$=function(){if(l+=1,l<v.length){var S=v[l],D=Nt.relative(c,S).split("\\").join("/");D=D.normalize("NFD").replace(/[\u0300-\u036f]/g,"").replace(/[^\x20-\x7E]/g,""),f(D)?i.fs.stat(S,function(V,T){V&&d(void 0,V),T.isFile()?i.fs.readFile(S,function(P,U){P?d(void 0,P):(h.addFile(E+D,U,"",T),$())}):(h.addFile(E+D+"/",Buffer.alloc(0),"",T),$())}):process.nextTick(()=>{$()})}else d(!0,void 0)};$()}})},addLocalFolderPromise:function(c,d){return new Promise((E,f)=>{const{filter:h,zipPath:y}=Object.assign({},d);this.addLocalFolderAsync(c,(v,l)=>{l&&f(l),v&&E(this)},y,h)})},addFile:function(c,d,E,f){let h=u(c);const y=h!=null;y||(h=new d$,h.entryName=c),h.comment=E||"";const v=typeof f=="object"&&f instanceof i.fs.Stats;v&&(h.header.time=f.mtime);var l=h.isDirectory?16:0;let $=h.isDirectory?16384:32768;v?$|=4095&f.mode:typeof f=="number"?$|=4095&f:$|=h.isDirectory?493:420,l=(l|$<<16)>>>0,h.attr=l,h.setData(d),y||s.setEntry(h)},getEntries:function(){return s?s.entries:[]},getEntry:function(c){return u(c)},getEntryCount:function(){return s.getEntryCount()},forEach:function(c){return s.forEach(c)},extractEntryTo:function(c,d,E,f,h,y){f=tr(f,!1),h=tr(h,!1),E=tr(E,!0),y=qi(y,qi(h,void 0));var v=u(c);if(!v)throw new Error(Pe.Errors.NO_ENTRY);var l=o(v.entryName),$=a(d,y&&!v.isDirectory?y:E?l:Nt.basename(l));if(v.isDirectory){var S=s.getEntryChildren(v);return S.forEach(function(T){if(T.isDirectory)return;var P=T.getData();if(!P)throw new Error(Pe.Errors.CANT_EXTRACT_FILE);var U=o(T.entryName),A=a(d,E?U:Nt.basename(U));const x=h?T.header.fileAttr:void 0;i.writeFileTo(A,P,f,x)}),!0}var D=v.getData();if(!D)throw new Error(Pe.Errors.CANT_EXTRACT_FILE);if(i.fs.existsSync($)&&!f)throw new Error(Pe.Errors.CANT_OVERRIDE);const V=h?c.header.fileAttr:void 0;return i.writeFileTo($,D,f,V),!0},test:function(c){if(!s)return!1;for(var d in s.entries)try{if(d.isDirectory)continue;var E=s.entries[d].getData(c);if(!E)return!1}catch{return!1}return!0},extractAllTo:function(c,d,E,f){if(d=tr(d,!1),f=qi(E,f),E=tr(E,!1),!s)throw new Error(Pe.Errors.NO_ZIP);s.entries.forEach(function(h){var y=a(c,o(h.entryName.toString()));if(h.isDirectory){i.makeDir(y);return}var v=h.getData(f);if(!v)throw new Error(Pe.Errors.CANT_EXTRACT_FILE);const l=E?h.header.fileAttr:void 0;i.writeFileTo(y,v,d,l);try{i.fs.utimesSync(y,h.header.time,h.header.time)}catch{throw new Error(Pe.Errors.CANT_EXTRACT_FILE)}})},extractAllToAsync:function(c,d,E,f){if(d=tr(d,!1),typeof E=="function"&&!f&&(f=E),E=tr(E,!1),f||(f=function(S){throw new Error(S)}),!s){f(new Error(Pe.Errors.NO_ZIP));return}c=Nt.resolve(c);const h=S=>a(c,Nt.normalize(o(S.entryName.toString()))),y=(S,D)=>new Error(S+': "'+D+'"'),v=[],l=new Set;s.entries.forEach(S=>{S.isDirectory?v.push(S):l.add(S)});for(const S of v){const D=h(S),V=E?S.header.fileAttr:void 0;try{i.makeDir(D),V&&i.fs.chmodSync(D,V),i.fs.utimesSync(D,S.header.time,S.header.time)}catch{f(y("Unable to create folder",D))}}const $=()=>{l.size===0&&f()};for(const S of l.values()){const D=Nt.normalize(o(S.entryName.toString())),V=a(c,D);S.getDataAsync(function(T,P){if(P){f(new Error(P));return}if(!T)f(new Error(Pe.Errors.CANT_EXTRACT_FILE));else{const U=E?S.header.fileAttr:void 0;i.writeFileToAsync(V,T,d,U,function(A){if(!A){f(y("Unable to write file",V));return}i.fs.utimes(V,S.header.time,S.header.time,function(x){if(x){f(y("Unable to set times",V));return}l.delete(S),$()})})}})}$()},writeZip:function(c,d){if(arguments.length===1&&typeof c=="function"&&(d=c,c=""),!c&&n.filename&&(c=n.filename),!!c){var E=s.compressToBuffer();if(E){var f=i.writeFileTo(c,E,!0);typeof d=="function"&&d(f?null:new Error("failed"),"")}}},writeZipPromise:function(c,d){const{overwrite:E,perm:f}=Object.assign({overwrite:!0},d);return new Promise((h,y)=>{!c&&n.filename&&(c=n.filename),c||y("ADM-ZIP: ZIP File Name Missing"),this.toBufferPromise().then(v=>{const l=$=>$?h($):y("ADM-ZIP: Wasn't able to write zip file");i.writeFileToAsync(c,v,E,f,l)},y)})},toBufferPromise:function(){return new Promise((c,d)=>{s.toAsyncBuffer(c,d)})},toBuffer:function(c,d,E,f){return this.valueOf=2,typeof c=="function"?(s.toAsyncBuffer(c,d,E,f),null):s.compressToBuffer()}}};const tc=sc(p$);class ct{constructor(t,r){this.bw=t,this.#l.getVersion=r,ae.ipcMain.handle("getInfo",()=>this.#l),ae.ipcMain.handle("existsSync",(i,s)=>at.existsSync(s)),ae.ipcMain.handle("copySync",(i,s,o)=>at.copySync(s,o)),ae.ipcMain.handle("removeSync",(i,s)=>at.removeSync(s)),ae.ipcMain.handle("ensureFileSync",(i,s)=>at.ensureFileSync(s)),ae.ipcMain.handle("readFileSync",(i,s)=>at.readFileSync(s,{encoding:"utf8"})),ae.ipcMain.handle("readFile",(i,s,o)=>at.readFile(s,o)),ae.ipcMain.handle("writeFileSync",(i,s,o,a)=>at.writeFileSync(s,o,a)),ae.ipcMain.handle("appendFile",(i,s,o,a)=>at.appendFile(s,o).catch(u=>a(u))),ae.ipcMain.handle("win_close",()=>t.close()),ae.ipcMain.handle("win_setTitle",(i,s)=>t.setTitle(s)),ae.ipcMain.handle("showMessageBox",(i,s)=>ae.dialog.showMessageBox(s)),ae.ipcMain.handle("capturePage",(i,s)=>t.webContents.capturePage().then(o=>{at.ensureFileSync(s),at.writeFileSync(s,s.slice(-4)===".png"?o.toPNG():o.toJPEG(80))})),ae.ipcMain.handle("navigate_to",(i,s)=>ae.shell.openExternal(s)),ae.ipcMain.handle("openDevTools",()=>t.webContents.openDevTools()),ae.ipcMain.handle("win_ev_devtools_opened",(i,s)=>t.webContents.on("devtools-opened",s));let n;ae.ipcMain.handle("Store",(i,s)=>{n=new Za(s)}),ae.ipcMain.handle("flush",(i,s)=>{n.store=s}),ae.ipcMain.handle("Store_isEmpty",()=>n.size===0),ae.ipcMain.handle("Store_get",()=>n.store),ae.ipcMain.handle("zip",(i,s,o)=>{const a=new tc;a.addLocalFolder(s),a.writeZip(o)}),ae.ipcMain.handle("unzip",(i,s,o)=>{at.removeSync(o),at.ensureDirSync(o),new tc(s).extractAllTo(o,!0)}),ae.ipcMain.handle("isSimpleFullScreen",()=>t.simpleFullScreen),this.#p?(ae.ipcMain.handle("setSimpleFullScreen",(i,s)=>{this.#e=!0,t.setSimpleFullScreen(s),s||(t.setPosition(this.#i,this.#s),t.setContentSize(this.#r,this.#n+ct.#t)),this.#e=!1}),t.on("enter-full-screen",()=>{t.setContentSize(this.#o,this.#a-ct.#t)}),t.on("leave-full-screen",()=>{this.#u(!1,this.#i,this.#s,this.#r,this.#n+ct.#t)})):ae.ipcMain.handle("setSimpleFullScreen",(i,s)=>{t.setSimpleFullScreen(s),s||t.setContentSize(this.#r,this.#n+ct.#t)}),ae.ipcMain.handle("window",(i,s,o,a,u,p)=>this.#u(s,o,a,u,p)),t.on("move",()=>this.#d())}#f=ae.screen.getPrimaryDisplay().size;#o=this.#f.width;#a=this.#f.height;#l={getAppPath:ae.app.getAppPath(),isPackaged:ae.app.isPackaged,downloads:ae.app.getPath("downloads"),userData:ae.app.getPath("userData"),getVersion:"",env:{...process.env},platform:process.platform,arch:process.arch};#i=0;#s=0;#r=0;#n=0;#p=process.platform==="win32";#c=void 0;#d(){if(this.#c||this.#e)return;this.#e=!0;const{x:t,y:r}=this.bw.getBounds();this.#c=setTimeout(()=>{if(this.#c=void 0,this.#h){this.#h=!1;return}this.#e=!1;const n=this.bw.getBounds();if(t!==n.x||r!==n.y){this.#d();return}this.#u(!1,n.x,n.y,this.#r,this.#n)},1e3/60*10)}#h=!1;#e=!1;#u(t,r,n,i,s){this.#e||(this.#e=!0,!this.bw.simpleFullScreen&&(t?(r=(this.#o-i)*.5,n=(this.#a-s)*.5):((r<0||r>this.#o)&&(r=0),(n<0||n>this.#a)&&(n=0)),(this.#i!==r||this.#s!==n)&&(this.#i=r,this.#s=n,this.bw.webContents.send("save_win_pos",r,n),this.bw.setPosition(r,n)),this.#r=i,this.#n=s,this.bw.setContentSize(i,s+ct.#t),this.#e=!1))}openDevTools(){this.bw.webContents.openDevTools()}static#m;static initRenderer(t,r,n){let i=()=>{},s;try{Za.initRenderer(),process.env.ELECTRON_DISABLE_SECURITY_WARNINGS="true",s=new ae.BrowserWindow({...n,fullscreenable:!0,maximizable:!1,webPreferences:{nodeIntegration:!1,contextIsolation:!0,preload:`${__dirname}/preload.js`}}),s.setMenuBarVisibility(!1);const o=s.getContentSize()[1];s.setMenuBarVisibility(!0);const a=s.getContentSize()[1];ct.#t=o-a,ct.#m=new ct(s,r),i=()=>ct.#m.openDevTools(),s.loadFile(t),s.once("ready-to-show",()=>s.show())}catch(o){throw console.error(`ealy err:${o}`),i(),"initRenderer error"}return s}static#t=0}module.exports=ct;exports.appMain=ct;
16
- //# sourceMappingURL=appMain.js.map