@famibee/skynovel 1.64.19 → 1.64.21

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 (71) hide show
  1. package/dist/CmnTween.js +26 -27
  2. package/dist/CmnTween.js.map +1 -1
  3. package/dist/DebugMng.js +2 -2
  4. package/dist/DebugMng.js.map +1 -1
  5. package/dist/EventMng.js +218 -213
  6. package/dist/EventMng.js.map +1 -1
  7. package/dist/LayerMng.js +64 -52
  8. package/dist/LayerMng.js.map +1 -1
  9. package/dist/Reading.js +34 -28
  10. package/dist/Reading.js.map +1 -1
  11. package/dist/ScriptIterator.js +1 -1
  12. package/dist/ScriptIterator.js.map +1 -1
  13. package/dist/SndBuf.js +22 -22
  14. package/dist/SndBuf.js.map +1 -1
  15. package/dist/TxtLayer.js +238 -239
  16. package/dist/TxtLayer.js.map +1 -1
  17. package/dist/appMain_cmn.d.ts.map +1 -1
  18. package/dist/sn/CmnInterface.d.ts +1 -1
  19. package/dist/sn/CmnInterface.d.ts.map +1 -1
  20. package/dist/sn/CmnLib.d.ts +1 -0
  21. package/dist/sn/CmnLib.d.ts.map +1 -1
  22. package/dist/sn/CmnTween.d.ts.map +1 -1
  23. package/dist/sn/EventMng.d.ts.map +1 -1
  24. package/dist/sn/FocusMng.d.ts +2 -0
  25. package/dist/sn/FocusMng.d.ts.map +1 -1
  26. package/dist/sn/FrameMng.d.ts.map +1 -1
  27. package/dist/sn/Hyphenation.d.ts.map +1 -1
  28. package/dist/sn/Layer.d.ts.map +1 -1
  29. package/dist/sn/Reading.d.ts.map +1 -1
  30. package/dist/sn/SndBuf.d.ts.map +1 -1
  31. package/dist/sn/TxtLayer.d.ts.map +1 -1
  32. package/dist/sn/TxtStage.d.ts.map +1 -1
  33. package/dist/sn/htm2tx.d.ts.map +1 -1
  34. package/dist/web2.js +4 -4
  35. package/dist/web2.js.map +1 -1
  36. package/dist_app/CmnTween.js +28 -29
  37. package/dist_app/CmnTween.js.map +1 -1
  38. package/dist_app/EventMng.js +326 -321
  39. package/dist_app/EventMng.js.map +1 -1
  40. package/dist_app/LayerMng.js +64 -52
  41. package/dist_app/LayerMng.js.map +1 -1
  42. package/dist_app/Reading.js +34 -28
  43. package/dist_app/Reading.js.map +1 -1
  44. package/dist_app/ScriptIterator.js +1 -1
  45. package/dist_app/ScriptIterator.js.map +1 -1
  46. package/dist_app/SndBuf.js +22 -22
  47. package/dist_app/SndBuf.js.map +1 -1
  48. package/dist_app/TxtLayer.js +306 -307
  49. package/dist_app/TxtLayer.js.map +1 -1
  50. package/dist_app/app2.js +6 -6
  51. package/dist_app/app2.js.map +1 -1
  52. package/dist_app/appMain.js +1 -1
  53. package/dist_app/appMain.js.map +1 -1
  54. package/dist_app/appMain_cmn.d.ts.map +1 -1
  55. package/dist_app/sn/CmnInterface.d.ts +1 -1
  56. package/dist_app/sn/CmnInterface.d.ts.map +1 -1
  57. package/dist_app/sn/CmnLib.d.ts +1 -0
  58. package/dist_app/sn/CmnLib.d.ts.map +1 -1
  59. package/dist_app/sn/CmnTween.d.ts.map +1 -1
  60. package/dist_app/sn/EventMng.d.ts.map +1 -1
  61. package/dist_app/sn/FocusMng.d.ts +2 -2
  62. package/dist_app/sn/FocusMng.d.ts.map +1 -1
  63. package/dist_app/sn/FrameMng.d.ts.map +1 -1
  64. package/dist_app/sn/Hyphenation.d.ts.map +1 -1
  65. package/dist_app/sn/Layer.d.ts.map +1 -1
  66. package/dist_app/sn/Reading.d.ts.map +1 -1
  67. package/dist_app/sn/SndBuf.d.ts.map +1 -1
  68. package/dist_app/sn/TxtLayer.d.ts.map +1 -1
  69. package/dist_app/sn/TxtStage.d.ts.map +1 -1
  70. package/dist_app/sn/htm2tx.d.ts.map +1 -1
  71. package/package.json +2 -2
@@ -19,5 +19,5 @@ GFS4: `),console.error(u)}),!e[i]){var c=Fn[i]||[];o(e,c),e.close=function(u){fu
19
19
  missingProperty: ${g},
20
20
  depsCount: ${l},
21
21
  deps: ${c}}`};const d={keyword:"dependencies",type:"object",schemaType:"object",error:e.error,code(o){const[l,c]=i(o);r(o,l),a(o,c)}};function i({schema:o}){const l={},c={};for(const g in o){if(g==="__proto__")continue;const E=Array.isArray(o[g])?l:c;E[g]=o[g]}return[l,c]}function r(o,l=o.schema){const{gen:c,data:g,it:E}=o;if(Object.keys(l).length===0)return;const _=c.let("missing");for(const w in l){const R=l[w];if(R.length===0)continue;const u=(0,s.propertyInData)(c,g,w,E.opts.ownProperties);o.setParams({property:w,depsCount:R.length,deps:R.join(", ")}),E.allErrors?c.if(u,()=>{for(const h of R)(0,s.checkReportMissingProp)(o,h)}):(c.if((0,t._)`${u} && (${(0,s.checkMissingProp)(o,R,_)})`),(0,s.reportMissingProp)(o,_),c.else())}}e.validatePropertyDeps=r;function a(o,l=o.schema){const{gen:c,data:g,keyword:E,it:_}=o,w=c.name("valid");for(const R in l)(0,f.alwaysValidSchema)(_,l[R])||(c.if((0,s.propertyInData)(c,g,R,_.opts.ownProperties),()=>{const u=o.subschema({keyword:E,schemaProp:R},w);o.mergeValidEvaluated(u,w)},()=>c.var(w,!0)),o.ok(w))}e.validateSchemaDeps=a,e.default=d}(Ms)),Ms}var Qr={},vu;function tm(){if(vu)return Qr;vu=1,Object.defineProperty(Qr,"__esModule",{value:!0});const e=te(),t=oe(),s={keyword:"propertyNames",type:"object",schemaType:["object","boolean"],error:{message:"property name must be valid",params:({params:d})=>(0,e._)`{propertyName: ${d.propertyName}}`},code(d){const{gen:i,schema:r,data:a,it:o}=d;if((0,t.alwaysValidSchema)(o,r))return;const l=i.name("valid");i.forIn("key",a,c=>{d.setParams({propertyName:c}),d.subschema({keyword:"propertyNames",data:c,dataTypes:["string"],propertyName:c,compositeRule:!0},l),i.if((0,e.not)(l),()=>{d.error(!0),o.allErrors||i.break()})}),d.ok(l)}};return Qr.default=s,Qr}var en={},_u;function pf(){if(_u)return en;_u=1,Object.defineProperty(en,"__esModule",{value:!0});const e=De(),t=te(),f=He(),s=oe(),i={keyword:"additionalProperties",type:["object"],schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:{message:"must NOT have additional properties",params:({params:r})=>(0,t._)`{additionalProperty: ${r.additionalProperty}}`},code(r){const{gen:a,schema:o,parentSchema:l,data:c,errsCount:g,it:E}=r;if(!g)throw new Error("ajv implementation error");const{allErrors:_,opts:w}=E;if(E.props=!0,w.removeAdditional!=="all"&&(0,s.alwaysValidSchema)(E,o))return;const R=(0,e.allSchemaProperties)(l.properties),u=(0,e.allSchemaProperties)(l.patternProperties);h(),r.ok((0,t._)`${g} === ${f.default.errors}`);function h(){a.forIn("key",c,y=>{!R.length&&!u.length?v(y):a.if(n(y),()=>v(y))})}function n(y){let $;if(R.length>8){const b=(0,s.schemaRefOrVal)(E,l.properties,"properties");$=(0,e.isOwnProperty)(a,b,y)}else R.length?$=(0,t.or)(...R.map(b=>(0,t._)`${y} === ${b}`)):$=t.nil;return u.length&&($=(0,t.or)($,...u.map(b=>(0,t._)`${(0,e.usePattern)(r,b)}.test(${y})`))),(0,t.not)($)}function m(y){a.code((0,t._)`delete ${c}[${y}]`)}function v(y){if(w.removeAdditional==="all"||w.removeAdditional&&o===!1){m(y);return}if(o===!1){r.setParams({additionalProperty:y}),r.error(),_||a.break();return}if(typeof o=="object"&&!(0,s.alwaysValidSchema)(E,o)){const $=a.name("valid");w.removeAdditional==="failing"?(p(y,$,!1),a.if((0,t.not)($),()=>{r.reset(),m(y)})):(p(y,$),_||a.if((0,t.not)($),()=>a.break()))}}function p(y,$,b){const N={keyword:"additionalProperties",dataProp:y,dataPropType:s.Type.Str};b===!1&&Object.assign(N,{compositeRule:!0,createErrors:!1,allErrors:!1}),r.subschema(N,$)}}};return en.default=i,en}var tn={},gu;function rm(){if(gu)return tn;gu=1,Object.defineProperty(tn,"__esModule",{value:!0});const e=In(),t=De(),f=oe(),s=pf(),d={keyword:"properties",type:"object",schemaType:"object",code(i){const{gen:r,schema:a,parentSchema:o,data:l,it:c}=i;c.opts.removeAdditional==="all"&&o.additionalProperties===void 0&&s.default.code(new e.KeywordCxt(c,s.default,"additionalProperties"));const g=(0,t.allSchemaProperties)(a);for(const u of g)c.definedProperties.add(u);c.opts.unevaluated&&g.length&&c.props!==!0&&(c.props=f.mergeEvaluated.props(r,(0,f.toHash)(g),c.props));const E=g.filter(u=>!(0,f.alwaysValidSchema)(c,a[u]));if(E.length===0)return;const _=r.name("valid");for(const u of E)w(u)?R(u):(r.if((0,t.propertyInData)(r,l,u,c.opts.ownProperties)),R(u),c.allErrors||r.else().var(_,!0),r.endIf()),i.it.definedProperties.add(u),i.ok(_);function w(u){return c.opts.useDefaults&&!c.compositeRule&&a[u].default!==void 0}function R(u){i.subschema({keyword:"properties",schemaProp:u,dataProp:u},_)}}};return tn.default=d,tn}var rn={},$u;function nm(){if($u)return rn;$u=1,Object.defineProperty(rn,"__esModule",{value:!0});const e=De(),t=te(),f=oe(),s=oe(),d={keyword:"patternProperties",type:"object",schemaType:"object",code(i){const{gen:r,schema:a,data:o,parentSchema:l,it:c}=i,{opts:g}=c,E=(0,e.allSchemaProperties)(a),_=E.filter(v=>(0,f.alwaysValidSchema)(c,a[v]));if(E.length===0||_.length===E.length&&(!c.opts.unevaluated||c.props===!0))return;const w=g.strictSchema&&!g.allowMatchingProperties&&l.properties,R=r.name("valid");c.props!==!0&&!(c.props instanceof t.Name)&&(c.props=(0,s.evaluatedPropsToName)(r,c.props));const{props:u}=c;h();function h(){for(const v of E)w&&n(v),c.allErrors?m(v):(r.var(R,!0),m(v),r.if(R))}function n(v){for(const p in w)new RegExp(v).test(p)&&(0,f.checkStrictMode)(c,`property ${p} matches pattern ${v} (use allowMatchingProperties)`)}function m(v){r.forIn("key",o,p=>{r.if((0,t._)`${(0,e.usePattern)(i,v)}.test(${p})`,()=>{const y=_.includes(v);y||i.subschema({keyword:"patternProperties",schemaProp:v,dataProp:p,dataPropType:s.Type.Str},R),c.opts.unevaluated&&u!==!0?r.assign((0,t._)`${u}[${p}]`,!0):!y&&!c.allErrors&&r.if((0,t.not)(R),()=>r.break())})})}}};return rn.default=d,rn}var nn={},Eu;function sm(){if(Eu)return nn;Eu=1,Object.defineProperty(nn,"__esModule",{value:!0});const e=oe(),t={keyword:"not",schemaType:["object","boolean"],trackErrors:!0,code(f){const{gen:s,schema:d,it:i}=f;if((0,e.alwaysValidSchema)(i,d)){f.fail();return}const r=s.name("valid");f.subschema({keyword:"not",compositeRule:!0,createErrors:!1,allErrors:!1},r),f.failResult(r,()=>f.reset(),()=>f.error())},error:{message:"must NOT be valid"}};return nn.default=t,nn}var sn={},wu;function im(){if(wu)return sn;wu=1,Object.defineProperty(sn,"__esModule",{value:!0});const t={keyword:"anyOf",schemaType:"array",trackErrors:!0,code:De().validateUnion,error:{message:"must match a schema in anyOf"}};return sn.default=t,sn}var on={},Su;function om(){if(Su)return on;Su=1,Object.defineProperty(on,"__esModule",{value:!0});const e=te(),t=oe(),s={keyword:"oneOf",schemaType:"array",trackErrors:!0,error:{message:"must match exactly one schema in oneOf",params:({params:d})=>(0,e._)`{passingSchemas: ${d.passing}}`},code(d){const{gen:i,schema:r,parentSchema:a,it:o}=d;if(!Array.isArray(r))throw new Error("ajv implementation error");if(o.opts.discriminator&&a.discriminator)return;const l=r,c=i.let("valid",!1),g=i.let("passing",null),E=i.name("_valid");d.setParams({passing:g}),i.block(_),d.result(c,()=>d.reset(),()=>d.error(!0));function _(){l.forEach((w,R)=>{let u;(0,t.alwaysValidSchema)(o,w)?i.var(E,!0):u=d.subschema({keyword:"oneOf",schemaProp:R,compositeRule:!0},E),R>0&&i.if((0,e._)`${E} && ${c}`).assign(c,!1).assign(g,(0,e._)`[${g}, ${R}]`).else(),i.if(E,()=>{i.assign(c,!0),i.assign(g,R),u&&d.mergeEvaluated(u,e.Name)})})}}};return on.default=s,on}var an={},Ru;function am(){if(Ru)return an;Ru=1,Object.defineProperty(an,"__esModule",{value:!0});const e=oe(),t={keyword:"allOf",schemaType:"array",code(f){const{gen:s,schema:d,it:i}=f;if(!Array.isArray(d))throw new Error("ajv implementation error");const r=s.name("valid");d.forEach((a,o)=>{if((0,e.alwaysValidSchema)(i,a))return;const l=f.subschema({keyword:"allOf",schemaProp:o},r);f.ok(r),f.mergeEvaluated(l)})}};return an.default=t,an}var cn={},bu;function cm(){if(bu)return cn;bu=1,Object.defineProperty(cn,"__esModule",{value:!0});const e=te(),t=oe(),s={keyword:"if",schemaType:["object","boolean"],trackErrors:!0,error:{message:({params:i})=>(0,e.str)`must match "${i.ifClause}" schema`,params:({params:i})=>(0,e._)`{failingKeyword: ${i.ifClause}}`},code(i){const{gen:r,parentSchema:a,it:o}=i;a.then===void 0&&a.else===void 0&&(0,t.checkStrictMode)(o,'"if" without "then" and "else" is ignored');const l=d(o,"then"),c=d(o,"else");if(!l&&!c)return;const g=r.let("valid",!0),E=r.name("_valid");if(_(),i.reset(),l&&c){const R=r.let("ifClause");i.setParams({ifClause:R}),r.if(E,w("then",R),w("else",R))}else l?r.if(E,w("then")):r.if((0,e.not)(E),w("else"));i.pass(g,()=>i.error(!0));function _(){const R=i.subschema({keyword:"if",compositeRule:!0,createErrors:!1,allErrors:!1},E);i.mergeEvaluated(R)}function w(R,u){return()=>{const h=i.subschema({keyword:R},E);r.assign(g,E),i.mergeValidEvaluated(h,g),u?r.assign(u,(0,e._)`${R}`):i.setParams({ifClause:R})}}}};function d(i,r){const a=i.schema[r];return a!==void 0&&!(0,t.alwaysValidSchema)(i,a)}return cn.default=s,cn}var un={},Pu;function um(){if(Pu)return un;Pu=1,Object.defineProperty(un,"__esModule",{value:!0});const e=oe(),t={keyword:["then","else"],schemaType:["object","boolean"],code({keyword:f,parentSchema:s,it:d}){s.if===void 0&&(0,e.checkStrictMode)(d,`"${f}" without "if" is ignored`)}};return un.default=t,un}var Nu;function lm(){if(Nu)return Jr;Nu=1,Object.defineProperty(Jr,"__esModule",{value:!0});const e=hf(),t=Xh(),f=mf(),s=Yh(),d=Qh(),i=em(),r=tm(),a=pf(),o=rm(),l=nm(),c=sm(),g=im(),E=om(),_=am(),w=cm(),R=um();function u(h=!1){const n=[c.default,g.default,E.default,_.default,w.default,R.default,r.default,a.default,i.default,o.default,l.default];return h?n.push(t.default,s.default):n.push(e.default,f.default),n.push(d.default),n}return Jr.default=u,Jr}var ln={},fn={},Ou;function fm(){if(Ou)return fn;Ou=1,Object.defineProperty(fn,"__esModule",{value:!0});const e=te(),f={keyword:"format",type:["number","string"],schemaType:"string",$data:!0,error:{message:({schemaCode:s})=>(0,e.str)`must match format "${s}"`,params:({schemaCode:s})=>(0,e._)`{format: ${s}}`},code(s,d){const{gen:i,data:r,$data:a,schema:o,schemaCode:l,it:c}=s,{opts:g,errSchemaPath:E,schemaEnv:_,self:w}=c;if(!g.validateFormats)return;a?R():u();function R(){const h=i.scopeValue("formats",{ref:w.formats,code:g.code.formats}),n=i.const("fDef",(0,e._)`${h}[${l}]`),m=i.let("fType"),v=i.let("format");i.if((0,e._)`typeof ${n} == "object" && !(${n} instanceof RegExp)`,()=>i.assign(m,(0,e._)`${n}.type || "string"`).assign(v,(0,e._)`${n}.validate`),()=>i.assign(m,(0,e._)`"string"`).assign(v,n)),s.fail$data((0,e.or)(p(),y()));function p(){return g.strictSchema===!1?e.nil:(0,e._)`${l} && !${v}`}function y(){const $=_.$async?(0,e._)`(${n}.async ? await ${v}(${r}) : ${v}(${r}))`:(0,e._)`${v}(${r})`,b=(0,e._)`(typeof ${v} == "function" ? ${$} : ${v}.test(${r}))`;return(0,e._)`${v} && ${v} !== true && ${m} === ${d} && !${b}`}}function u(){const h=w.formats[o];if(!h){p();return}if(h===!0)return;const[n,m,v]=y(h);n===d&&s.pass($());function p(){if(g.strictSchema===!1){w.logger.warn(b());return}throw new Error(b());function b(){return`unknown format "${o}" ignored in schema at path "${E}"`}}function y(b){const N=b instanceof RegExp?(0,e.regexpCode)(b):g.code.formats?(0,e._)`${g.code.formats}${(0,e.getProperty)(o)}`:void 0,L=i.scopeValue("formats",{key:o,ref:b,code:N});return typeof b=="object"&&!(b instanceof RegExp)?[b.type||"string",b.validate,(0,e._)`${L}.validate`]:["string",b,L]}function $(){if(typeof h=="object"&&!(h instanceof RegExp)&&h.async){if(!_.$async)throw new Error("async format in sync schema");return(0,e._)`await ${v}(${r})`}return typeof m=="function"?(0,e._)`${v}(${r})`:(0,e._)`${v}.test(${r})`}}}};return fn.default=f,fn}var Iu;function dm(){if(Iu)return ln;Iu=1,Object.defineProperty(ln,"__esModule",{value:!0});const t=[fm().default];return ln.default=t,ln}var rt={},Tu;function hm(){return Tu||(Tu=1,Object.defineProperty(rt,"__esModule",{value:!0}),rt.contentVocabulary=rt.metadataVocabulary=void 0,rt.metadataVocabulary=["title","description","default","deprecated","readOnly","writeOnly","examples"],rt.contentVocabulary=["contentMediaType","contentEncoding","contentSchema"]),rt}var Cu;function mm(){if(Cu)return Ar;Cu=1,Object.defineProperty(Ar,"__esModule",{value:!0});const e=Fh(),t=Zh(),f=lm(),s=dm(),d=hm(),i=[e.default,t.default,(0,f.default)(),s.default,d.metadataVocabulary,d.contentVocabulary];return Ar.default=i,Ar}var dn={},_t={},Du;function pm(){if(Du)return _t;Du=1,Object.defineProperty(_t,"__esModule",{value:!0}),_t.DiscrError=void 0;var e;return function(t){t.Tag="tag",t.Mapping="mapping"}(e||(_t.DiscrError=e={})),_t}var Au;function ym(){if(Au)return dn;Au=1,Object.defineProperty(dn,"__esModule",{value:!0});const e=te(),t=pm(),f=eo(),s=Tn(),d=oe(),r={keyword:"discriminator",type:"object",schemaType:"object",error:{message:({params:{discrError:a,tagName:o}})=>a===t.DiscrError.Tag?`tag "${o}" must be string`:`value of tag "${o}" must be in oneOf`,params:({params:{discrError:a,tag:o,tagName:l}})=>(0,e._)`{error: ${a}, tag: ${l}, tagValue: ${o}}`},code(a){const{gen:o,data:l,schema:c,parentSchema:g,it:E}=a,{oneOf:_}=g;if(!E.opts.discriminator)throw new Error("discriminator: requires discriminator option");const w=c.propertyName;if(typeof w!="string")throw new Error("discriminator: requires propertyName");if(c.mapping)throw new Error("discriminator: mapping is not supported");if(!_)throw new Error("discriminator: requires oneOf keyword");const R=o.let("valid",!1),u=o.const("tag",(0,e._)`${l}${(0,e.getProperty)(w)}`);o.if((0,e._)`typeof ${u} == "string"`,()=>h(),()=>a.error(!1,{discrError:t.DiscrError.Tag,tag:u,tagName:w})),a.ok(R);function h(){const v=m();o.if(!1);for(const p in v)o.elseIf((0,e._)`${u} === ${p}`),o.assign(R,n(v[p]));o.else(),a.error(!1,{discrError:t.DiscrError.Mapping,tag:u,tagName:w}),o.endIf()}function n(v){const p=o.name("valid"),y=a.subschema({keyword:"oneOf",schemaProp:v},p);return a.mergeEvaluated(y,e.Name),p}function m(){var v;const p={},y=b(g);let $=!0;for(let F=0;F<_.length;F++){let H=_[F];if(H?.$ref&&!(0,d.schemaHasRulesButRef)(H,E.self.RULES)){const U=H.$ref;if(H=f.resolveRef.call(E.self,E.schemaEnv.root,E.baseId,U),H instanceof f.SchemaEnv&&(H=H.schema),H===void 0)throw new s.default(E.opts.uriResolver,E.baseId,U)}const M=(v=H?.properties)===null||v===void 0?void 0:v[w];if(typeof M!="object")throw new Error(`discriminator: oneOf subschemas (or referenced schemas) must have "properties/${w}"`);$=$&&(y||b(H)),N(M,F)}if(!$)throw new Error(`discriminator: "${w}" must be required`);return p;function b({required:F}){return Array.isArray(F)&&F.includes(w)}function N(F,H){if(F.const)L(F.const,H);else if(F.enum)for(const M of F.enum)L(M,H);else throw new Error(`discriminator: "properties/${w}" must have "const" or "enum"`)}function L(F,H){if(typeof F!="string"||F in p)throw new Error(`discriminator: "${w}" values must be unique strings`);p[F]=H}}}};return dn.default=r,dn}const vm="http://json-schema.org/draft-07/schema#",_m="http://json-schema.org/draft-07/schema#",gm="Core schema meta-schema",$m={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:[]}},Em=["object","boolean"],wm={$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:"#"}},Sm={$schema:vm,$id:_m,title:gm,definitions:$m,type:Em,properties:wm,default:!0};var Lu;function Rm(){return Lu||(Lu=1,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=t.Ajv=void 0;const f=qh(),s=mm(),d=ym(),i=Sm,r=["/properties"],a="http://json-schema.org/draft-07/schema";class o extends f.default{_addVocabularies(){super._addVocabularies(),s.default.forEach(w=>this.addVocabulary(w)),this.opts.discriminator&&this.addKeyword(d.default)}_addDefaultMetaSchema(){if(super._addDefaultMetaSchema(),!this.opts.meta)return;const w=this.opts.$data?this.$dataMetaSchema(i,r):i;this.addMetaSchema(w,a,!1),this.refs["http://json-schema.org/schema"]=a}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(a)?a:void 0)}}t.Ajv=o,e.exports=t=o,e.exports.Ajv=o,Object.defineProperty(t,"__esModule",{value:!0}),t.default=o;var l=In();Object.defineProperty(t,"KeywordCxt",{enumerable:!0,get:function(){return l.KeywordCxt}});var c=te();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 g=Qi();Object.defineProperty(t,"ValidationError",{enumerable:!0,get:function(){return g.default}});var E=Tn();Object.defineProperty(t,"MissingRefError",{enumerable:!0,get:function(){return E.default}})}(Or,Or.exports)),Or.exports}var qu;function bm(){return qu||(qu=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.formatLimitDefinition=void 0;const t=Rm(),f=te(),s=f.operators,d={formatMaximum:{okStr:"<=",ok:s.LTE,fail:s.GT},formatMinimum:{okStr:">=",ok:s.GTE,fail:s.LT},formatExclusiveMaximum:{okStr:"<",ok:s.LT,fail:s.GTE},formatExclusiveMinimum:{okStr:">",ok:s.GT,fail:s.LTE}},i={message:({keyword:a,schemaCode:o})=>f.str`should be ${d[a].okStr} ${o}`,params:({keyword:a,schemaCode:o})=>f._`{comparison: ${d[a].okStr}, limit: ${o}}`};e.formatLimitDefinition={keyword:Object.keys(d),type:"string",schemaType:"string",$data:!0,error:i,code(a){const{gen:o,data:l,schemaCode:c,keyword:g,it:E}=a,{opts:_,self:w}=E;if(!_.validateFormats)return;const R=new t.KeywordCxt(E,w.RULES.all.format.definition,"format");R.$data?u():h();function u(){const m=o.scopeValue("formats",{ref:w.formats,code:_.code.formats}),v=o.const("fmt",f._`${m}[${R.schemaCode}]`);a.fail$data(f.or(f._`typeof ${v} != "object"`,f._`${v} instanceof RegExp`,f._`typeof ${v}.compare != "function"`,n(v)))}function h(){const m=R.schema,v=w.formats[m];if(!v||v===!0)return;if(typeof v!="object"||v instanceof RegExp||typeof v.compare!="function")throw new Error(`"${g}": format "${m}" does not define "compare" function`);const p=o.scopeValue("formats",{key:m,ref:v,code:_.code.formats?f._`${_.code.formats}${f.getProperty(m)}`:void 0});a.fail$data(n(p))}function n(m){return f._`${m}.compare(${l}, ${c}) ${d[g].fail} 0`}},dependencies:["format"]};const r=a=>(a.addKeyword(e.formatLimitDefinition),a);e.default=r}(Ds)),Ds}var ku;function Pm(){return ku||(ku=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0});const f=Eh(),s=bm(),d=te(),i=new d.Name("fullFormats"),r=new d.Name("fastFormats"),a=(l,c={keywords:!0})=>{if(Array.isArray(c))return o(l,c,f.fullFormats,i),l;const[g,E]=c.mode==="fast"?[f.fastFormats,r]:[f.fullFormats,i],_=c.formats||f.formatNames;return o(l,_,g,E),c.keywords&&s.default(l),l};a.get=(l,c="full")=>{const E=(c==="fast"?f.fastFormats:f.fullFormats)[l];if(!E)throw new Error(`Unknown format "${l}"`);return E};function o(l,c,g,E){var _,w;(_=(w=l.opts.code).formats)!==null&&_!==void 0||(w.formats=d._`require("ajv-formats/dist/formats").${E}`);for(const R of c)l.addFormat(R,g[R])}e.exports=t=a,Object.defineProperty(t,"__esModule",{value:!0}),t.default=a}(Nr,Nr.exports)),Nr.exports}var Us,ju;function Nm(){if(ju)return Us;ju=1;const e=(o,l,c,g)=>{if(c==="length"||c==="prototype"||c==="arguments"||c==="caller")return;const E=Object.getOwnPropertyDescriptor(o,c),_=Object.getOwnPropertyDescriptor(l,c);!t(E,_)&&g||Object.defineProperty(o,c,_)},t=function(o,l){return o===void 0||o.configurable||o.writable===l.writable&&o.enumerable===l.enumerable&&o.configurable===l.configurable&&(o.writable||o.value===l.value)},f=(o,l)=>{const c=Object.getPrototypeOf(l);c!==Object.getPrototypeOf(o)&&Object.setPrototypeOf(o,c)},s=(o,l)=>`/* Wrapped ${o}*/
22
- ${l}`,d=Object.getOwnPropertyDescriptor(Function.prototype,"toString"),i=Object.getOwnPropertyDescriptor(Function.prototype.toString,"name"),r=(o,l,c)=>{const g=c===""?"":`with ${c.trim()}() `,E=s.bind(null,g,l.toString());Object.defineProperty(E,"name",i),Object.defineProperty(o,"toString",{...d,value:E})};return Us=(o,l,{ignoreNonConfigurable:c=!1}={})=>{const{name:g}=o;for(const E of Reflect.ownKeys(l))e(o,l,E,c);return f(o,l),r(o,l,g),o},Us}var Vs,Fu;function Om(){if(Fu)return Vs;Fu=1;const e=Nm();return Vs=(t,f={})=>{if(typeof t!="function")throw new TypeError(`Expected the first argument to be a function, got \`${typeof t}\``);const{wait:s=0,before:d=!1,after:i=!0}=f;if(!d&&!i)throw new Error("Both `before` and `after` are false, function wouldn't be called.");let r,a;const o=function(...l){const c=this,g=()=>{r=void 0,i&&(a=t.apply(c,l))},E=d&&!r;return clearTimeout(r),r=setTimeout(g,s),E&&(a=t.apply(c,l)),a};return e(o,t),o.cancel=()=>{r&&(clearTimeout(r),r=void 0)},o},Vs}var hn={exports:{}},zs,Mu;function Cn(){if(Mu)return zs;Mu=1;const e="2.0.0",t=256,f=Number.MAX_SAFE_INTEGER||9007199254740991,s=16,d=t-6;return zs={MAX_LENGTH:t,MAX_SAFE_COMPONENT_LENGTH:s,MAX_SAFE_BUILD_LENGTH:d,MAX_SAFE_INTEGER:f,RELEASE_TYPES:["major","premajor","minor","preminor","patch","prepatch","prerelease"],SEMVER_SPEC_VERSION:e,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2},zs}var Gs,Uu;function Dn(){return Uu||(Uu=1,Gs=typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...t)=>console.error("SEMVER",...t):()=>{}),Gs}var Vu;function bt(){return Vu||(Vu=1,function(e,t){const{MAX_SAFE_COMPONENT_LENGTH:f,MAX_SAFE_BUILD_LENGTH:s,MAX_LENGTH:d}=Cn(),i=Dn();t=e.exports={};const r=t.re=[],a=t.safeRe=[],o=t.src=[],l=t.safeSrc=[],c=t.t={};let g=0;const E="[a-zA-Z0-9-]",_=[["\\s",1],["\\d",d],[E,s]],w=u=>{for(const[h,n]of _)u=u.split(`${h}*`).join(`${h}{0,${n}}`).split(`${h}+`).join(`${h}{1,${n}}`);return u},R=(u,h,n)=>{const m=w(h),v=g++;i(u,v,h),c[u]=v,o[v]=h,l[v]=m,r[v]=new RegExp(h,n?"g":void 0),a[v]=new RegExp(m,n?"g":void 0)};R("NUMERICIDENTIFIER","0|[1-9]\\d*"),R("NUMERICIDENTIFIERLOOSE","\\d+"),R("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${E}*`),R("MAINVERSION",`(${o[c.NUMERICIDENTIFIER]})\\.(${o[c.NUMERICIDENTIFIER]})\\.(${o[c.NUMERICIDENTIFIER]})`),R("MAINVERSIONLOOSE",`(${o[c.NUMERICIDENTIFIERLOOSE]})\\.(${o[c.NUMERICIDENTIFIERLOOSE]})\\.(${o[c.NUMERICIDENTIFIERLOOSE]})`),R("PRERELEASEIDENTIFIER",`(?:${o[c.NONNUMERICIDENTIFIER]}|${o[c.NUMERICIDENTIFIER]})`),R("PRERELEASEIDENTIFIERLOOSE",`(?:${o[c.NONNUMERICIDENTIFIER]}|${o[c.NUMERICIDENTIFIERLOOSE]})`),R("PRERELEASE",`(?:-(${o[c.PRERELEASEIDENTIFIER]}(?:\\.${o[c.PRERELEASEIDENTIFIER]})*))`),R("PRERELEASELOOSE",`(?:-?(${o[c.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${o[c.PRERELEASEIDENTIFIERLOOSE]})*))`),R("BUILDIDENTIFIER",`${E}+`),R("BUILD",`(?:\\+(${o[c.BUILDIDENTIFIER]}(?:\\.${o[c.BUILDIDENTIFIER]})*))`),R("FULLPLAIN",`v?${o[c.MAINVERSION]}${o[c.PRERELEASE]}?${o[c.BUILD]}?`),R("FULL",`^${o[c.FULLPLAIN]}$`),R("LOOSEPLAIN",`[v=\\s]*${o[c.MAINVERSIONLOOSE]}${o[c.PRERELEASELOOSE]}?${o[c.BUILD]}?`),R("LOOSE",`^${o[c.LOOSEPLAIN]}$`),R("GTLT","((?:<|>)?=?)"),R("XRANGEIDENTIFIERLOOSE",`${o[c.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),R("XRANGEIDENTIFIER",`${o[c.NUMERICIDENTIFIER]}|x|X|\\*`),R("XRANGEPLAIN",`[v=\\s]*(${o[c.XRANGEIDENTIFIER]})(?:\\.(${o[c.XRANGEIDENTIFIER]})(?:\\.(${o[c.XRANGEIDENTIFIER]})(?:${o[c.PRERELEASE]})?${o[c.BUILD]}?)?)?`),R("XRANGEPLAINLOOSE",`[v=\\s]*(${o[c.XRANGEIDENTIFIERLOOSE]})(?:\\.(${o[c.XRANGEIDENTIFIERLOOSE]})(?:\\.(${o[c.XRANGEIDENTIFIERLOOSE]})(?:${o[c.PRERELEASELOOSE]})?${o[c.BUILD]}?)?)?`),R("XRANGE",`^${o[c.GTLT]}\\s*${o[c.XRANGEPLAIN]}$`),R("XRANGELOOSE",`^${o[c.GTLT]}\\s*${o[c.XRANGEPLAINLOOSE]}$`),R("COERCEPLAIN",`(^|[^\\d])(\\d{1,${f}})(?:\\.(\\d{1,${f}}))?(?:\\.(\\d{1,${f}}))?`),R("COERCE",`${o[c.COERCEPLAIN]}(?:$|[^\\d])`),R("COERCEFULL",o[c.COERCEPLAIN]+`(?:${o[c.PRERELEASE]})?(?:${o[c.BUILD]})?(?:$|[^\\d])`),R("COERCERTL",o[c.COERCE],!0),R("COERCERTLFULL",o[c.COERCEFULL],!0),R("LONETILDE","(?:~>?)"),R("TILDETRIM",`(\\s*)${o[c.LONETILDE]}\\s+`,!0),t.tildeTrimReplace="$1~",R("TILDE",`^${o[c.LONETILDE]}${o[c.XRANGEPLAIN]}$`),R("TILDELOOSE",`^${o[c.LONETILDE]}${o[c.XRANGEPLAINLOOSE]}$`),R("LONECARET","(?:\\^)"),R("CARETTRIM",`(\\s*)${o[c.LONECARET]}\\s+`,!0),t.caretTrimReplace="$1^",R("CARET",`^${o[c.LONECARET]}${o[c.XRANGEPLAIN]}$`),R("CARETLOOSE",`^${o[c.LONECARET]}${o[c.XRANGEPLAINLOOSE]}$`),R("COMPARATORLOOSE",`^${o[c.GTLT]}\\s*(${o[c.LOOSEPLAIN]})$|^$`),R("COMPARATOR",`^${o[c.GTLT]}\\s*(${o[c.FULLPLAIN]})$|^$`),R("COMPARATORTRIM",`(\\s*)${o[c.GTLT]}\\s*(${o[c.LOOSEPLAIN]}|${o[c.XRANGEPLAIN]})`,!0),t.comparatorTrimReplace="$1$2$3",R("HYPHENRANGE",`^\\s*(${o[c.XRANGEPLAIN]})\\s+-\\s+(${o[c.XRANGEPLAIN]})\\s*$`),R("HYPHENRANGELOOSE",`^\\s*(${o[c.XRANGEPLAINLOOSE]})\\s+-\\s+(${o[c.XRANGEPLAINLOOSE]})\\s*$`),R("STAR","(<|>)?=?\\s*\\*"),R("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$"),R("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")}(hn,hn.exports)),hn.exports}var Ks,zu;function ro(){if(zu)return Ks;zu=1;const e=Object.freeze({loose:!0}),t=Object.freeze({});return Ks=s=>s?typeof s!="object"?e:s:t,Ks}var Hs,Gu;function yf(){if(Gu)return Hs;Gu=1;const e=/^[0-9]+$/,t=(s,d)=>{if(typeof s=="number"&&typeof d=="number")return s===d?0:s<d?-1:1;const i=e.test(s),r=e.test(d);return i&&r&&(s=+s,d=+d),s===d?0:i&&!r?-1:r&&!i?1:s<d?-1:1};return Hs={compareIdentifiers:t,rcompareIdentifiers:(s,d)=>t(d,s)},Hs}var xs,Ku;function $e(){if(Ku)return xs;Ku=1;const e=Dn(),{MAX_LENGTH:t,MAX_SAFE_INTEGER:f}=Cn(),{safeRe:s,t:d}=bt(),i=ro(),{compareIdentifiers:r}=yf();class a{constructor(l,c){if(c=i(c),l instanceof a){if(l.loose===!!c.loose&&l.includePrerelease===!!c.includePrerelease)return l;l=l.version}else if(typeof l!="string")throw new TypeError(`Invalid version. Must be a string. Got type "${typeof l}".`);if(l.length>t)throw new TypeError(`version is longer than ${t} characters`);e("SemVer",l,c),this.options=c,this.loose=!!c.loose,this.includePrerelease=!!c.includePrerelease;const g=l.trim().match(c.loose?s[d.LOOSE]:s[d.FULL]);if(!g)throw new TypeError(`Invalid Version: ${l}`);if(this.raw=l,this.major=+g[1],this.minor=+g[2],this.patch=+g[3],this.major>f||this.major<0)throw new TypeError("Invalid major version");if(this.minor>f||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>f||this.patch<0)throw new TypeError("Invalid patch version");g[4]?this.prerelease=g[4].split(".").map(E=>{if(/^[0-9]+$/.test(E)){const _=+E;if(_>=0&&_<f)return _}return E}):this.prerelease=[],this.build=g[5]?g[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(l){if(e("SemVer.compare",this.version,this.options,l),!(l instanceof a)){if(typeof l=="string"&&l===this.version)return 0;l=new a(l,this.options)}return l.version===this.version?0:this.compareMain(l)||this.comparePre(l)}compareMain(l){return l instanceof a||(l=new a(l,this.options)),this.major<l.major?-1:this.major>l.major?1:this.minor<l.minor?-1:this.minor>l.minor?1:this.patch<l.patch?-1:this.patch>l.patch?1:0}comparePre(l){if(l instanceof a||(l=new a(l,this.options)),this.prerelease.length&&!l.prerelease.length)return-1;if(!this.prerelease.length&&l.prerelease.length)return 1;if(!this.prerelease.length&&!l.prerelease.length)return 0;let c=0;do{const g=this.prerelease[c],E=l.prerelease[c];if(e("prerelease compare",c,g,E),g===void 0&&E===void 0)return 0;if(E===void 0)return 1;if(g===void 0)return-1;if(g===E)continue;return r(g,E)}while(++c)}compareBuild(l){l instanceof a||(l=new a(l,this.options));let c=0;do{const g=this.build[c],E=l.build[c];if(e("build compare",c,g,E),g===void 0&&E===void 0)return 0;if(E===void 0)return 1;if(g===void 0)return-1;if(g===E)continue;return r(g,E)}while(++c)}inc(l,c,g){if(l.startsWith("pre")){if(!c&&g===!1)throw new Error("invalid increment argument: identifier is empty");if(c){const E=`-${c}`.match(this.options.loose?s[d.PRERELEASELOOSE]:s[d.PRERELEASE]);if(!E||E[1]!==c)throw new Error(`invalid identifier: ${c}`)}}switch(l){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",c,g);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",c,g);break;case"prepatch":this.prerelease.length=0,this.inc("patch",c,g),this.inc("pre",c,g);break;case"prerelease":this.prerelease.length===0&&this.inc("patch",c,g),this.inc("pre",c,g);break;case"release":if(this.prerelease.length===0)throw new Error(`version ${this.raw} is not a prerelease`);this.prerelease.length=0;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 E=Number(g)?1:0;if(this.prerelease.length===0)this.prerelease=[E];else{let _=this.prerelease.length;for(;--_>=0;)typeof this.prerelease[_]=="number"&&(this.prerelease[_]++,_=-2);if(_===-1){if(c===this.prerelease.join(".")&&g===!1)throw new Error("invalid increment argument: identifier already exists");this.prerelease.push(E)}}if(c){let _=[c,E];g===!1&&(_=[c]),r(this.prerelease[0],c)===0?isNaN(this.prerelease[1])&&(this.prerelease=_):this.prerelease=_}break}default:throw new Error(`invalid increment argument: ${l}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(".")}`),this}}return xs=a,xs}var Bs,Hu;function ft(){if(Hu)return Bs;Hu=1;const e=$e();return Bs=(f,s,d=!1)=>{if(f instanceof e)return f;try{return new e(f,s)}catch(i){if(!d)return null;throw i}},Bs}var Ws,xu;function Im(){if(xu)return Ws;xu=1;const e=ft();return Ws=(f,s)=>{const d=e(f,s);return d?d.version:null},Ws}var Js,Bu;function Tm(){if(Bu)return Js;Bu=1;const e=ft();return Js=(f,s)=>{const d=e(f.trim().replace(/^[=v]+/,""),s);return d?d.version:null},Js}var Zs,Wu;function Cm(){if(Wu)return Zs;Wu=1;const e=$e();return Zs=(f,s,d,i,r)=>{typeof d=="string"&&(r=i,i=d,d=void 0);try{return new e(f instanceof e?f.version:f,d).inc(s,i,r).version}catch{return null}},Zs}var Xs,Ju;function Dm(){if(Ju)return Xs;Ju=1;const e=ft();return Xs=(f,s)=>{const d=e(f,null,!0),i=e(s,null,!0),r=d.compare(i);if(r===0)return null;const a=r>0,o=a?d:i,l=a?i:d,c=!!o.prerelease.length;if(!!l.prerelease.length&&!c){if(!l.patch&&!l.minor)return"major";if(l.compareMain(o)===0)return l.minor&&!l.patch?"minor":"patch"}const E=c?"pre":"";return d.major!==i.major?E+"major":d.minor!==i.minor?E+"minor":d.patch!==i.patch?E+"patch":"prerelease"},Xs}var Ys,Zu;function Am(){if(Zu)return Ys;Zu=1;const e=$e();return Ys=(f,s)=>new e(f,s).major,Ys}var Qs,Xu;function Lm(){if(Xu)return Qs;Xu=1;const e=$e();return Qs=(f,s)=>new e(f,s).minor,Qs}var ei,Yu;function qm(){if(Yu)return ei;Yu=1;const e=$e();return ei=(f,s)=>new e(f,s).patch,ei}var ti,Qu;function km(){if(Qu)return ti;Qu=1;const e=ft();return ti=(f,s)=>{const d=e(f,s);return d&&d.prerelease.length?d.prerelease:null},ti}var ri,el;function Ae(){if(el)return ri;el=1;const e=$e();return ri=(f,s,d)=>new e(f,d).compare(new e(s,d)),ri}var ni,tl;function jm(){if(tl)return ni;tl=1;const e=Ae();return ni=(f,s,d)=>e(s,f,d),ni}var si,rl;function Fm(){if(rl)return si;rl=1;const e=Ae();return si=(f,s)=>e(f,s,!0),si}var ii,nl;function no(){if(nl)return ii;nl=1;const e=$e();return ii=(f,s,d)=>{const i=new e(f,d),r=new e(s,d);return i.compare(r)||i.compareBuild(r)},ii}var oi,sl;function Mm(){if(sl)return oi;sl=1;const e=no();return oi=(f,s)=>f.sort((d,i)=>e(d,i,s)),oi}var ai,il;function Um(){if(il)return ai;il=1;const e=no();return ai=(f,s)=>f.sort((d,i)=>e(i,d,s)),ai}var ci,ol;function An(){if(ol)return ci;ol=1;const e=Ae();return ci=(f,s,d)=>e(f,s,d)>0,ci}var ui,al;function so(){if(al)return ui;al=1;const e=Ae();return ui=(f,s,d)=>e(f,s,d)<0,ui}var li,cl;function vf(){if(cl)return li;cl=1;const e=Ae();return li=(f,s,d)=>e(f,s,d)===0,li}var fi,ul;function _f(){if(ul)return fi;ul=1;const e=Ae();return fi=(f,s,d)=>e(f,s,d)!==0,fi}var di,ll;function io(){if(ll)return di;ll=1;const e=Ae();return di=(f,s,d)=>e(f,s,d)>=0,di}var hi,fl;function oo(){if(fl)return hi;fl=1;const e=Ae();return hi=(f,s,d)=>e(f,s,d)<=0,hi}var mi,dl;function gf(){if(dl)return mi;dl=1;const e=vf(),t=_f(),f=An(),s=io(),d=so(),i=oo();return mi=(a,o,l,c)=>{switch(o){case"===":return typeof a=="object"&&(a=a.version),typeof l=="object"&&(l=l.version),a===l;case"!==":return typeof a=="object"&&(a=a.version),typeof l=="object"&&(l=l.version),a!==l;case"":case"=":case"==":return e(a,l,c);case"!=":return t(a,l,c);case">":return f(a,l,c);case">=":return s(a,l,c);case"<":return d(a,l,c);case"<=":return i(a,l,c);default:throw new TypeError(`Invalid operator: ${o}`)}},mi}var pi,hl;function Vm(){if(hl)return pi;hl=1;const e=$e(),t=ft(),{safeRe:f,t:s}=bt();return pi=(i,r)=>{if(i instanceof e)return i;if(typeof i=="number"&&(i=String(i)),typeof i!="string")return null;r=r||{};let a=null;if(!r.rtl)a=i.match(r.includePrerelease?f[s.COERCEFULL]:f[s.COERCE]);else{const _=r.includePrerelease?f[s.COERCERTLFULL]:f[s.COERCERTL];let w;for(;(w=_.exec(i))&&(!a||a.index+a[0].length!==i.length);)(!a||w.index+w[0].length!==a.index+a[0].length)&&(a=w),_.lastIndex=w.index+w[1].length+w[2].length;_.lastIndex=-1}if(a===null)return null;const o=a[2],l=a[3]||"0",c=a[4]||"0",g=r.includePrerelease&&a[5]?`-${a[5]}`:"",E=r.includePrerelease&&a[6]?`+${a[6]}`:"";return t(`${o}.${l}.${c}${g}${E}`,r)},pi}var yi,ml;function zm(){if(ml)return yi;ml=1;class e{constructor(){this.max=1e3,this.map=new Map}get(f){const s=this.map.get(f);if(s!==void 0)return this.map.delete(f),this.map.set(f,s),s}delete(f){return this.map.delete(f)}set(f,s){if(!this.delete(f)&&s!==void 0){if(this.map.size>=this.max){const i=this.map.keys().next().value;this.delete(i)}this.map.set(f,s)}return this}}return yi=e,yi}var vi,pl;function Le(){if(pl)return vi;pl=1;const e=/\s+/g;class t{constructor(z,J){if(J=d(J),z instanceof t)return z.loose===!!J.loose&&z.includePrerelease===!!J.includePrerelease?z:new t(z.raw,J);if(z instanceof i)return this.raw=z.value,this.set=[[z]],this.formatted=void 0,this;if(this.options=J,this.loose=!!J.loose,this.includePrerelease=!!J.includePrerelease,this.raw=z.trim().replace(e," "),this.set=this.raw.split("||").map(W=>this.parseRange(W.trim())).filter(W=>W.length),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${this.raw}`);if(this.set.length>1){const W=this.set[0];if(this.set=this.set.filter(j=>!R(j[0])),this.set.length===0)this.set=[W];else if(this.set.length>1){for(const j of this.set)if(j.length===1&&u(j[0])){this.set=[j];break}}}this.formatted=void 0}get range(){if(this.formatted===void 0){this.formatted="";for(let z=0;z<this.set.length;z++){z>0&&(this.formatted+="||");const J=this.set[z];for(let W=0;W<J.length;W++)W>0&&(this.formatted+=" "),this.formatted+=J[W].toString().trim()}}return this.formatted}format(){return this.range}toString(){return this.range}parseRange(z){const W=((this.options.includePrerelease&&_)|(this.options.loose&&w))+":"+z,j=s.get(W);if(j)return j;const G=this.options.loose,D=G?o[l.HYPHENRANGELOOSE]:o[l.HYPHENRANGE];z=z.replace(D,H(this.options.includePrerelease)),r("hyphen replace",z),z=z.replace(o[l.COMPARATORTRIM],c),r("comparator trim",z),z=z.replace(o[l.TILDETRIM],g),r("tilde trim",z),z=z.replace(o[l.CARETTRIM],E),r("caret trim",z);let O=z.split(" ").map(P=>n(P,this.options)).join(" ").split(/\s+/).map(P=>F(P,this.options));G&&(O=O.filter(P=>(r("loose invalid filter",P,this.options),!!P.match(o[l.COMPARATORLOOSE])))),r("range list",O);const q=new Map,T=O.map(P=>new i(P,this.options));for(const P of T){if(R(P))return[P];q.set(P.value,P)}q.size>1&&q.has("")&&q.delete("");const S=[...q.values()];return s.set(W,S),S}intersects(z,J){if(!(z instanceof t))throw new TypeError("a Range is required");return this.set.some(W=>h(W,J)&&z.set.some(j=>h(j,J)&&W.every(G=>j.every(D=>G.intersects(D,J)))))}test(z){if(!z)return!1;if(typeof z=="string")try{z=new a(z,this.options)}catch{return!1}for(let J=0;J<this.set.length;J++)if(M(this.set[J],z,this.options))return!0;return!1}}vi=t;const f=zm(),s=new f,d=ro(),i=Ln(),r=Dn(),a=$e(),{safeRe:o,t:l,comparatorTrimReplace:c,tildeTrimReplace:g,caretTrimReplace:E}=bt(),{FLAG_INCLUDE_PRERELEASE:_,FLAG_LOOSE:w}=Cn(),R=U=>U.value==="<0.0.0-0",u=U=>U.value==="",h=(U,z)=>{let J=!0;const W=U.slice();let j=W.pop();for(;J&&W.length;)J=W.every(G=>j.intersects(G,z)),j=W.pop();return J},n=(U,z)=>(U=U.replace(o[l.BUILD],""),r("comp",U,z),U=y(U,z),r("caret",U),U=v(U,z),r("tildes",U),U=b(U,z),r("xrange",U),U=L(U,z),r("stars",U),U),m=U=>!U||U.toLowerCase()==="x"||U==="*",v=(U,z)=>U.trim().split(/\s+/).map(J=>p(J,z)).join(" "),p=(U,z)=>{const J=z.loose?o[l.TILDELOOSE]:o[l.TILDE];return U.replace(J,(W,j,G,D,O)=>{r("tilde",U,W,j,G,D,O);let q;return m(j)?q="":m(G)?q=`>=${j}.0.0 <${+j+1}.0.0-0`:m(D)?q=`>=${j}.${G}.0 <${j}.${+G+1}.0-0`:O?(r("replaceTilde pr",O),q=`>=${j}.${G}.${D}-${O} <${j}.${+G+1}.0-0`):q=`>=${j}.${G}.${D} <${j}.${+G+1}.0-0`,r("tilde return",q),q})},y=(U,z)=>U.trim().split(/\s+/).map(J=>$(J,z)).join(" "),$=(U,z)=>{r("caret",U,z);const J=z.loose?o[l.CARETLOOSE]:o[l.CARET],W=z.includePrerelease?"-0":"";return U.replace(J,(j,G,D,O,q)=>{r("caret",U,j,G,D,O,q);let T;return m(G)?T="":m(D)?T=`>=${G}.0.0${W} <${+G+1}.0.0-0`:m(O)?G==="0"?T=`>=${G}.${D}.0${W} <${G}.${+D+1}.0-0`:T=`>=${G}.${D}.0${W} <${+G+1}.0.0-0`:q?(r("replaceCaret pr",q),G==="0"?D==="0"?T=`>=${G}.${D}.${O}-${q} <${G}.${D}.${+O+1}-0`:T=`>=${G}.${D}.${O}-${q} <${G}.${+D+1}.0-0`:T=`>=${G}.${D}.${O}-${q} <${+G+1}.0.0-0`):(r("no pr"),G==="0"?D==="0"?T=`>=${G}.${D}.${O}${W} <${G}.${D}.${+O+1}-0`:T=`>=${G}.${D}.${O}${W} <${G}.${+D+1}.0-0`:T=`>=${G}.${D}.${O} <${+G+1}.0.0-0`),r("caret return",T),T})},b=(U,z)=>(r("replaceXRanges",U,z),U.split(/\s+/).map(J=>N(J,z)).join(" ")),N=(U,z)=>{U=U.trim();const J=z.loose?o[l.XRANGELOOSE]:o[l.XRANGE];return U.replace(J,(W,j,G,D,O,q)=>{r("xRange",U,W,j,G,D,O,q);const T=m(G),S=T||m(D),P=S||m(O),A=P;return j==="="&&A&&(j=""),q=z.includePrerelease?"-0":"",T?j===">"||j==="<"?W="<0.0.0-0":W="*":j&&A?(S&&(D=0),O=0,j===">"?(j=">=",S?(G=+G+1,D=0,O=0):(D=+D+1,O=0)):j==="<="&&(j="<",S?G=+G+1:D=+D+1),j==="<"&&(q="-0"),W=`${j+G}.${D}.${O}${q}`):S?W=`>=${G}.0.0${q} <${+G+1}.0.0-0`:P&&(W=`>=${G}.${D}.0${q} <${G}.${+D+1}.0-0`),r("xRange return",W),W})},L=(U,z)=>(r("replaceStars",U,z),U.trim().replace(o[l.STAR],"")),F=(U,z)=>(r("replaceGTE0",U,z),U.trim().replace(o[z.includePrerelease?l.GTE0PRE:l.GTE0],"")),H=U=>(z,J,W,j,G,D,O,q,T,S,P,A)=>(m(W)?J="":m(j)?J=`>=${W}.0.0${U?"-0":""}`:m(G)?J=`>=${W}.${j}.0${U?"-0":""}`:D?J=`>=${J}`:J=`>=${J}${U?"-0":""}`,m(T)?q="":m(S)?q=`<${+T+1}.0.0-0`:m(P)?q=`<${T}.${+S+1}.0-0`:A?q=`<=${T}.${S}.${P}-${A}`:U?q=`<${T}.${S}.${+P+1}-0`:q=`<=${q}`,`${J} ${q}`.trim()),M=(U,z,J)=>{for(let W=0;W<U.length;W++)if(!U[W].test(z))return!1;if(z.prerelease.length&&!J.includePrerelease){for(let W=0;W<U.length;W++)if(r(U[W].semver),U[W].semver!==i.ANY&&U[W].semver.prerelease.length>0){const j=U[W].semver;if(j.major===z.major&&j.minor===z.minor&&j.patch===z.patch)return!0}return!1}return!0};return vi}var _i,yl;function Ln(){if(yl)return _i;yl=1;const e=Symbol("SemVer ANY");class t{static get ANY(){return e}constructor(c,g){if(g=f(g),c instanceof t){if(c.loose===!!g.loose)return c;c=c.value}c=c.trim().split(/\s+/).join(" "),r("comparator",c,g),this.options=g,this.loose=!!g.loose,this.parse(c),this.semver===e?this.value="":this.value=this.operator+this.semver.version,r("comp",this)}parse(c){const g=this.options.loose?s[d.COMPARATORLOOSE]:s[d.COMPARATOR],E=c.match(g);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(r("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 i(c,this.operator,this.semver,this.options)}intersects(c,g){if(!(c instanceof t))throw new TypeError("a Comparator is required");return this.operator===""?this.value===""?!0:new o(c.value,g).test(this.value):c.operator===""?c.value===""?!0:new o(this.value,g).test(c.semver):(g=f(g),g.includePrerelease&&(this.value==="<0.0.0-0"||c.value==="<0.0.0-0")||!g.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("=")||i(this.semver,"<",c.semver,g)&&this.operator.startsWith(">")&&c.operator.startsWith("<")||i(this.semver,">",c.semver,g)&&this.operator.startsWith("<")&&c.operator.startsWith(">")))}}_i=t;const f=ro(),{safeRe:s,t:d}=bt(),i=gf(),r=Dn(),a=$e(),o=Le();return _i}var gi,vl;function qn(){if(vl)return gi;vl=1;const e=Le();return gi=(f,s,d)=>{try{s=new e(s,d)}catch{return!1}return s.test(f)},gi}var $i,_l;function Gm(){if(_l)return $i;_l=1;const e=Le();return $i=(f,s)=>new e(f,s).set.map(d=>d.map(i=>i.value).join(" ").trim().split(" ")),$i}var Ei,gl;function Km(){if(gl)return Ei;gl=1;const e=$e(),t=Le();return Ei=(s,d,i)=>{let r=null,a=null,o=null;try{o=new t(d,i)}catch{return null}return s.forEach(l=>{o.test(l)&&(!r||a.compare(l)===-1)&&(r=l,a=new e(r,i))}),r},Ei}var wi,$l;function Hm(){if($l)return wi;$l=1;const e=$e(),t=Le();return wi=(s,d,i)=>{let r=null,a=null,o=null;try{o=new t(d,i)}catch{return null}return s.forEach(l=>{o.test(l)&&(!r||a.compare(l)===1)&&(r=l,a=new e(r,i))}),r},wi}var Si,El;function xm(){if(El)return Si;El=1;const e=$e(),t=Le(),f=An();return Si=(d,i)=>{d=new t(d,i);let r=new e("0.0.0");if(d.test(r)||(r=new e("0.0.0-0"),d.test(r)))return r;r=null;for(let a=0;a<d.set.length;++a){const o=d.set[a];let l=null;o.forEach(c=>{const g=new e(c.semver.version);switch(c.operator){case">":g.prerelease.length===0?g.patch++:g.prerelease.push(0),g.raw=g.format();case"":case">=":(!l||f(g,l))&&(l=g);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${c.operator}`)}}),l&&(!r||f(r,l))&&(r=l)}return r&&d.test(r)?r:null},Si}var Ri,wl;function Bm(){if(wl)return Ri;wl=1;const e=Le();return Ri=(f,s)=>{try{return new e(f,s).range||"*"}catch{return null}},Ri}var bi,Sl;function ao(){if(Sl)return bi;Sl=1;const e=$e(),t=Ln(),{ANY:f}=t,s=Le(),d=qn(),i=An(),r=so(),a=oo(),o=io();return bi=(c,g,E,_)=>{c=new e(c,_),g=new s(g,_);let w,R,u,h,n;switch(E){case">":w=i,R=a,u=r,h=">",n=">=";break;case"<":w=r,R=o,u=i,h="<",n="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(d(c,g,_))return!1;for(let m=0;m<g.set.length;++m){const v=g.set[m];let p=null,y=null;if(v.forEach($=>{$.semver===f&&($=new t(">=0.0.0")),p=p||$,y=y||$,w($.semver,p.semver,_)?p=$:u($.semver,y.semver,_)&&(y=$)}),p.operator===h||p.operator===n||(!y.operator||y.operator===h)&&R(c,y.semver))return!1;if(y.operator===n&&u(c,y.semver))return!1}return!0},bi}var Pi,Rl;function Wm(){if(Rl)return Pi;Rl=1;const e=ao();return Pi=(f,s,d)=>e(f,s,">",d),Pi}var Ni,bl;function Jm(){if(bl)return Ni;bl=1;const e=ao();return Ni=(f,s,d)=>e(f,s,"<",d),Ni}var Oi,Pl;function Zm(){if(Pl)return Oi;Pl=1;const e=Le();return Oi=(f,s,d)=>(f=new e(f,d),s=new e(s,d),f.intersects(s,d)),Oi}var Ii,Nl;function Xm(){if(Nl)return Ii;Nl=1;const e=qn(),t=Ae();return Ii=(f,s,d)=>{const i=[];let r=null,a=null;const o=f.sort((E,_)=>t(E,_,d));for(const E of o)e(E,s,d)?(a=E,r||(r=E)):(a&&i.push([r,a]),a=null,r=null);r&&i.push([r,null]);const l=[];for(const[E,_]of i)E===_?l.push(E):!_&&E===o[0]?l.push("*"):_?E===o[0]?l.push(`<=${_}`):l.push(`${E} - ${_}`):l.push(`>=${E}`);const c=l.join(" || "),g=typeof s.raw=="string"?s.raw:String(s);return c.length<g.length?c:s},Ii}var Ti,Ol;function Ym(){if(Ol)return Ti;Ol=1;const e=Le(),t=Ln(),{ANY:f}=t,s=qn(),d=Ae(),i=(g,E,_={})=>{if(g===E)return!0;g=new e(g,_),E=new e(E,_);let w=!1;e:for(const R of g.set){for(const u of E.set){const h=o(R,u,_);if(w=w||h!==null,h)continue e}if(w)return!1}return!0},r=[new t(">=0.0.0-0")],a=[new t(">=0.0.0")],o=(g,E,_)=>{if(g===E)return!0;if(g.length===1&&g[0].semver===f){if(E.length===1&&E[0].semver===f)return!0;_.includePrerelease?g=r:g=a}if(E.length===1&&E[0].semver===f){if(_.includePrerelease)return!0;E=a}const w=new Set;let R,u;for(const b of g)b.operator===">"||b.operator===">="?R=l(R,b,_):b.operator==="<"||b.operator==="<="?u=c(u,b,_):w.add(b.semver);if(w.size>1)return null;let h;if(R&&u){if(h=d(R.semver,u.semver,_),h>0)return null;if(h===0&&(R.operator!==">="||u.operator!=="<="))return null}for(const b of w){if(R&&!s(b,String(R),_)||u&&!s(b,String(u),_))return null;for(const N of E)if(!s(b,String(N),_))return!1;return!0}let n,m,v,p,y=u&&!_.includePrerelease&&u.semver.prerelease.length?u.semver:!1,$=R&&!_.includePrerelease&&R.semver.prerelease.length?R.semver:!1;y&&y.prerelease.length===1&&u.operator==="<"&&y.prerelease[0]===0&&(y=!1);for(const b of E){if(p=p||b.operator===">"||b.operator===">=",v=v||b.operator==="<"||b.operator==="<=",R){if($&&b.semver.prerelease&&b.semver.prerelease.length&&b.semver.major===$.major&&b.semver.minor===$.minor&&b.semver.patch===$.patch&&($=!1),b.operator===">"||b.operator===">="){if(n=l(R,b,_),n===b&&n!==R)return!1}else if(R.operator===">="&&!s(R.semver,String(b),_))return!1}if(u){if(y&&b.semver.prerelease&&b.semver.prerelease.length&&b.semver.major===y.major&&b.semver.minor===y.minor&&b.semver.patch===y.patch&&(y=!1),b.operator==="<"||b.operator==="<="){if(m=c(u,b,_),m===b&&m!==u)return!1}else if(u.operator==="<="&&!s(u.semver,String(b),_))return!1}if(!b.operator&&(u||R)&&h!==0)return!1}return!(R&&v&&!u&&h!==0||u&&p&&!R&&h!==0||$||y)},l=(g,E,_)=>{if(!g)return E;const w=d(g.semver,E.semver,_);return w>0?g:w<0||E.operator===">"&&g.operator===">="?E:g},c=(g,E,_)=>{if(!g)return E;const w=d(g.semver,E.semver,_);return w<0?g:w>0||E.operator==="<"&&g.operator==="<="?E:g};return Ti=i,Ti}var Ci,Il;function Qm(){if(Il)return Ci;Il=1;const e=bt(),t=Cn(),f=$e(),s=yf(),d=ft(),i=Im(),r=Tm(),a=Cm(),o=Dm(),l=Am(),c=Lm(),g=qm(),E=km(),_=Ae(),w=jm(),R=Fm(),u=no(),h=Mm(),n=Um(),m=An(),v=so(),p=vf(),y=_f(),$=io(),b=oo(),N=gf(),L=Vm(),F=Ln(),H=Le(),M=qn(),U=Gm(),z=Km(),J=Hm(),W=xm(),j=Bm(),G=ao(),D=Wm(),O=Jm(),q=Zm(),T=Xm(),S=Ym();return Ci={parse:d,valid:i,clean:r,inc:a,diff:o,major:l,minor:c,patch:g,prerelease:E,compare:_,rcompare:w,compareLoose:R,compareBuild:u,sort:h,rsort:n,gt:m,lt:v,eq:p,neq:y,gte:$,lte:b,cmp:N,coerce:L,Comparator:F,Range:H,satisfies:M,toComparators:U,maxSatisfying:z,minSatisfying:J,minVersion:W,validRange:j,outside:G,gtr:D,ltr:O,intersects:q,simplifyRange:T,subset:S,SemVer:f,re:e.re,src:e.src,tokens:e.t,SEMVER_SPEC_VERSION:t.SEMVER_SPEC_VERSION,RELEASE_TYPES:t.RELEASE_TYPES,compareIdentifiers:s.compareIdentifiers,rcompareIdentifiers:s.rcompareIdentifiers},Ci}var gt={exports:{}},mn={exports:{}},Tl;function ep(){if(Tl)return mn.exports;Tl=1;const e=(t,f)=>{for(const s of Reflect.ownKeys(f))Object.defineProperty(t,s,Object.getOwnPropertyDescriptor(f,s));return t};return mn.exports=e,mn.exports.default=e,mn.exports}var Cl;function tp(){if(Cl)return gt.exports;Cl=1;const e=ep(),t=new WeakMap,f=(s,d={})=>{if(typeof s!="function")throw new TypeError("Expected a function");let i,r=0;const a=s.displayName||s.name||"<anonymous>",o=function(...l){if(t.set(o,++r),r===1)i=s.apply(this,l),s=null;else if(d.throw===!0)throw new Error(`Function \`${a}\` can only be called once`);return i};return e(o,s),t.set(o,r),o};return gt.exports=f,gt.exports.default=f,gt.exports.callCount=s=>{if(!t.has(s))throw new Error(`The given function \`${s.name}\` is not wrapped by the \`onetime\` package`);return t.get(s)},gt.exports}var pn=Et.exports,Dl;function rp(){return Dl||(Dl=1,function(e,t){var f=pn&&pn.__classPrivateFieldSet||function(W,j,G,D,O){if(D==="m")throw new TypeError("Private method is not writable");if(D==="a"&&!O)throw new TypeError("Private accessor was defined without a setter");if(typeof j=="function"?W!==j||!O:!j.has(W))throw new TypeError("Cannot write private member to an object whose class did not declare it");return D==="a"?O.call(W,G):O?O.value=G:j.set(W,G),G},s=pn&&pn.__classPrivateFieldGet||function(W,j,G,D){if(G==="a"&&!D)throw new TypeError("Private accessor was defined without a getter");if(typeof j=="function"?W!==j||!D:!j.has(W))throw new TypeError("Cannot read private member from an object whose class did not declare it");return G==="m"?D:G==="a"?D.call(W):D?D.value:j.get(W)},d,i,r,a,o,l;Object.defineProperty(t,"__esModule",{value:!0});const c=xi,g=ut,E=me,_=Ql,w=Yl,R=bf,u=Yf(),h=id(),n=od(),m=md(),v=$h(),p=Pm(),y=Om(),$=Qm(),b=tp(),N="aes-256-cbc",L=()=>Object.create(null),F=W=>W!=null;let H="";try{delete require.cache[__filename],H=E.dirname((i=(d=e.parent)===null||d===void 0?void 0:d.filename)!==null&&i!==void 0?i:".")}catch{}const M=(W,j)=>{const G=new Set(["undefined","symbol","function"]),D=typeof j;if(G.has(D))throw new TypeError(`Setting a value of type \`${D}\` for key \`${W}\` is not allowed as it's not supported by JSON`)},U="__internal__",z=`${U}.migrations.version`;class J{constructor(j={}){var G;r.set(this,void 0),a.set(this,void 0),o.set(this,void 0),l.set(this,{}),this._deserialize=P=>JSON.parse(P),this._serialize=P=>JSON.stringify(P,void 0," ");const D={configName:"config",fileExtension:"json",projectSuffix:"nodejs",clearInvalidConfig:!1,accessPropertiesByDotNotation:!0,configFileMode:438,...j},O=b(()=>{const P=h.sync({cwd:H}),A=P&&JSON.parse(g.readFileSync(P,"utf8"));return A??{}});if(!D.cwd){if(D.projectName||(D.projectName=O().name),!D.projectName)throw new Error("Project name could not be inferred. Please specify the `projectName` option.");D.cwd=n(D.projectName,{suffix:D.projectSuffix}).config}if(f(this,o,D,"f"),D.schema){if(typeof D.schema!="object")throw new TypeError("The `schema` option must be an object.");const P=new v.default({allErrors:!0,useDefaults:!0});(0,p.default)(P);const A={type:"object",properties:D.schema};f(this,r,P.compile(A),"f");for(const[K,B]of Object.entries(D.schema))B?.default&&(s(this,l,"f")[K]=B.default)}D.defaults&&f(this,l,{...s(this,l,"f"),...D.defaults},"f"),D.serialize&&(this._serialize=D.serialize),D.deserialize&&(this._deserialize=D.deserialize),this.events=new R.EventEmitter,f(this,a,D.encryptionKey,"f");const q=D.fileExtension?`.${D.fileExtension}`:"";this.path=E.resolve(D.cwd,`${(G=D.configName)!==null&&G!==void 0?G:"config"}${q}`);const T=this.store,S=Object.assign(L(),D.defaults,T);this._validate(S);try{w.deepEqual(T,S)}catch{this.store=S}if(D.watch&&this._watch(),D.migrations){if(D.projectVersion||(D.projectVersion=O().version),!D.projectVersion)throw new Error("Project version could not be inferred. Please specify the `projectVersion` option.");this._migrate(D.migrations,D.projectVersion,D.beforeEachMigration)}}get(j,G){if(s(this,o,"f").accessPropertiesByDotNotation)return this._get(j,G);const{store:D}=this;return j in D?D[j]:G}set(j,G){if(typeof j!="string"&&typeof j!="object")throw new TypeError(`Expected \`key\` to be of type \`string\` or \`object\`, got ${typeof j}`);if(typeof j!="object"&&G===void 0)throw new TypeError("Use `delete()` to clear values");if(this._containsReservedKey(j))throw new TypeError(`Please don't use the ${U} key, as it's used to manage this module internal operations.`);const{store:D}=this,O=(q,T)=>{M(q,T),s(this,o,"f").accessPropertiesByDotNotation?u.set(D,q,T):D[q]=T};if(typeof j=="object"){const q=j;for(const[T,S]of Object.entries(q))O(T,S)}else O(j,G);this.store=D}has(j){return s(this,o,"f").accessPropertiesByDotNotation?u.has(this.store,j):j in this.store}reset(...j){for(const G of j)F(s(this,l,"f")[G])&&this.set(G,s(this,l,"f")[G])}delete(j){const{store:G}=this;s(this,o,"f").accessPropertiesByDotNotation?u.delete(G,j):delete G[j],this.store=G}clear(){this.store=L();for(const j of Object.keys(s(this,l,"f")))this.reset(j)}onDidChange(j,G){if(typeof j!="string")throw new TypeError(`Expected \`key\` to be of type \`string\`, got ${typeof j}`);if(typeof G!="function")throw new TypeError(`Expected \`callback\` to be of type \`function\`, got ${typeof G}`);return this._handleChange(()=>this.get(j),G)}onDidAnyChange(j){if(typeof j!="function")throw new TypeError(`Expected \`callback\` to be of type \`function\`, got ${typeof j}`);return this._handleChange(()=>this.store,j)}get size(){return Object.keys(this.store).length}get store(){try{const j=g.readFileSync(this.path,s(this,a,"f")?null:"utf8"),G=this._encryptData(j),D=this._deserialize(G);return this._validate(D),Object.assign(L(),D)}catch(j){if(j?.code==="ENOENT")return this._ensureDirectory(),L();if(s(this,o,"f").clearInvalidConfig&&j.name==="SyntaxError")return L();throw j}}set store(j){this._ensureDirectory(),this._validate(j),this._write(j),this.events.emit("change")}*[(r=new WeakMap,a=new WeakMap,o=new WeakMap,l=new WeakMap,Symbol.iterator)](){for(const[j,G]of Object.entries(this.store))yield[j,G]}_encryptData(j){if(!s(this,a,"f"))return j.toString();try{if(s(this,a,"f"))try{if(j.slice(16,17).toString()===":"){const G=j.slice(0,16),D=_.pbkdf2Sync(s(this,a,"f"),G.toString(),1e4,32,"sha512"),O=_.createDecipheriv(N,D,G);j=Buffer.concat([O.update(Buffer.from(j.slice(17))),O.final()]).toString("utf8")}else{const G=_.createDecipher(N,s(this,a,"f"));j=Buffer.concat([G.update(Buffer.from(j)),G.final()]).toString("utf8")}}catch{}}catch{}return j.toString()}_handleChange(j,G){let D=j();const O=()=>{const q=D,T=j();(0,c.isDeepStrictEqual)(T,q)||(D=T,G.call(this,T,q))};return this.events.on("change",O),()=>this.events.removeListener("change",O)}_validate(j){if(!s(this,r,"f")||s(this,r,"f").call(this,j)||!s(this,r,"f").errors)return;const D=s(this,r,"f").errors.map(({instancePath:O,message:q=""})=>`\`${O.slice(1)}\` ${q}`);throw new Error("Config schema violation: "+D.join("; "))}_ensureDirectory(){g.mkdirSync(E.dirname(this.path),{recursive:!0})}_write(j){let G=this._serialize(j);if(s(this,a,"f")){const D=_.randomBytes(16),O=_.pbkdf2Sync(s(this,a,"f"),D.toString(),1e4,32,"sha512"),q=_.createCipheriv(N,O,D);G=Buffer.concat([D,Buffer.from(":"),q.update(Buffer.from(G)),q.final()])}if(process.env.SNAP)g.writeFileSync(this.path,G,{mode:s(this,o,"f").configFileMode});else try{m.writeFileSync(this.path,G,{mode:s(this,o,"f").configFileMode})}catch(D){if(D?.code==="EXDEV"){g.writeFileSync(this.path,G,{mode:s(this,o,"f").configFileMode});return}throw D}}_watch(){this._ensureDirectory(),g.existsSync(this.path)||this._write(L()),process.platform==="win32"?g.watch(this.path,{persistent:!1},y(()=>{this.events.emit("change")},{wait:100})):g.watchFile(this.path,{persistent:!1},y(()=>{this.events.emit("change")},{wait:5e3}))}_migrate(j,G,D){let O=this._get(z,"0.0.0");const q=Object.keys(j).filter(S=>this._shouldPerformMigration(S,O,G));let T={...this.store};for(const S of q)try{D&&D(this,{fromVersion:O,toVersion:S,finalVersion:G,versions:q});const P=j[S];P(this),this._set(z,S),O=S,T={...this.store}}catch(P){throw this.store=T,new Error(`Something went wrong during the migration! Changes applied to the store until this failed migration will be restored. ${P}`)}(this._isVersionInRangeFormat(O)||!$.eq(O,G))&&this._set(z,G)}_containsReservedKey(j){return typeof j=="object"&&Object.keys(j)[0]===U?!0:typeof j!="string"?!1:s(this,o,"f").accessPropertiesByDotNotation?!!j.startsWith(`${U}.`):!1}_isVersionInRangeFormat(j){return $.clean(j)===null}_shouldPerformMigration(j,G,D){return this._isVersionInRangeFormat(j)?G!=="0.0.0"&&$.satisfies(G,j)?!1:$.satisfies(D,j):!($.lte(j,G)||$.gt(j,D))}_get(j,G){return u.get(this.store,j,G)}_set(j,G){const{store:D}=this;u.set(D,j,G),this.store=D}}t.default=J,e.exports=J,e.exports.default=J}(Et,Et.exports)),Et.exports}var Di,Al;function np(){if(Al)return Di;Al=1;const e=me,{app:t,ipcMain:f,ipcRenderer:s,shell:d}=Pe,i=rp();let r=!1;const a=()=>{if(!f||!t)throw new Error("Electron Store: You need to call `.initRenderer()` from the main process.");const l={defaultCwd:t.getPath("userData"),appVersion:t.getVersion()};return r||(f.on("electron-store-get-data",c=>{c.returnValue=l}),r=!0),l};class o extends i{constructor(c){let g,E;if(s){const _=s.sendSync("electron-store-get-data");if(!_)throw new Error("Electron Store: You need to call `.initRenderer()` from the main process.");({defaultCwd:g,appVersion:E}=_)}else f&&t&&({defaultCwd:g,appVersion:E}=a());c={name:"config",...c},c.projectVersion||(c.projectVersion=E),c.cwd?c.cwd=e.isAbsolute(c.cwd)?c.cwd:e.join(g,c.cwd):c.cwd=g,c.configName=c.name,delete c.name,super(c)}static initRenderer(){a()}async openInEditor(){const c=await d.openPath(this.path);if(c)throw new Error(c)}}return Di=o,Di}var sp=np();const Ll=tf(sp);var nt={exports:{}},Ai,ql;function $f(){return ql||(ql=1,Ai={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}),Ai}var Li={},kl;function co(){return kl||(kl=1,function(e){const t={INVALID_LOC:"Invalid LOC header (bad signature)",INVALID_CEN:"Invalid CEN header (bad signature)",INVALID_END:"Invalid END header (bad signature)",DESCRIPTOR_NOT_EXIST:"No descriptor present",DESCRIPTOR_UNKNOWN:"Unknown descriptor format",DESCRIPTOR_FAULTY:"Descriptor data is malformed",NO_DATA:"Nothing to decompress",BAD_CRC:"CRC32 checksum failed {0}",FILE_IN_THE_WAY:"There is a file in the way: {0}",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",DISK_ENTRY_TOO_LARGE:"Number of disk entries is too large",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: "{0}"',NOT_IMPLEMENTED:"Not implemented",INVALID_FILENAME:"Invalid filename",INVALID_FORMAT:"Invalid or unsupported zip format. No END header found",INVALID_PASS_PARAM:"Incompatible password parameter",WRONG_PASSWORD:"Wrong Password",COMMENT_TOO_LONG:"Comment is too long",EXTRA_FIELD_PARSE_ERROR:"Extra field parsing error"};function f(s){return function(...d){return d.length&&(s=s.replace(/\{(\d)\}/g,(i,r)=>d[r]||"")),new Error("ADM-ZIP: "+s)}}for(const s of Object.keys(t))e[s]=f(t[s])}(Li)),Li}var qi,jl;function ip(){if(jl)return qi;jl=1;const e=ut,t=me,f=$f(),s=co(),d=typeof process=="object"&&process.platform==="win32",i=o=>typeof o=="object"&&o!==null,r=new Uint32Array(256).map((o,l)=>{for(let c=0;c<8;c++)(l&1)!==0?l=3988292384^l>>>1:l>>>=1;return l>>>0});function a(o){this.sep=t.sep,this.fs=e,i(o)&&i(o.fs)&&typeof o.fs.statSync=="function"&&(this.fs=o.fs)}return qi=a,a.prototype.makeDir=function(o){const l=this;function c(g){let E=g.split(l.sep)[0];g.split(l.sep).forEach(function(_){if(!(!_||_.substr(-1,1)===":")){E+=l.sep+_;var w;try{w=l.fs.statSync(E)}catch{l.fs.mkdirSync(E)}if(w&&w.isFile())throw s.FILE_IN_THE_WAY(`"${E}"`)}})}c(o)},a.prototype.writeFileTo=function(o,l,c,g){const E=this;if(E.fs.existsSync(o)){if(!c)return!1;var _=E.fs.statSync(o);if(_.isDirectory())return!1}var w=t.dirname(o);E.fs.existsSync(w)||E.makeDir(w);var R;try{R=E.fs.openSync(o,"w",438)}catch{E.fs.chmodSync(o,438),R=E.fs.openSync(o,"w",438)}if(R)try{E.fs.writeSync(R,l,0,l.length,0)}finally{E.fs.closeSync(R)}return E.fs.chmodSync(o,g||438),!0},a.prototype.writeFileToAsync=function(o,l,c,g,E){typeof g=="function"&&(E=g,g=void 0);const _=this;_.fs.exists(o,function(w){if(w&&!c)return E(!1);_.fs.stat(o,function(R,u){if(w&&u.isDirectory())return E(!1);var h=t.dirname(o);_.fs.exists(h,function(n){n||_.makeDir(h),_.fs.open(o,"w",438,function(m,v){m?_.fs.chmod(o,438,function(){_.fs.open(o,"w",438,function(p,y){_.fs.write(y,l,0,l.length,0,function(){_.fs.close(y,function(){_.fs.chmod(o,g||438,function(){E(!0)})})})})}):v?_.fs.write(v,l,0,l.length,0,function(){_.fs.close(v,function(){_.fs.chmod(o,g||438,function(){E(!0)})})}):_.fs.chmod(o,g||438,function(){E(!0)})})})})})},a.prototype.findFiles=function(o){const l=this;function c(g,E,_){let w=[];return l.fs.readdirSync(g).forEach(function(R){const u=t.join(g,R),h=l.fs.statSync(u);w.push(t.normalize(u)+(h.isDirectory()?l.sep:"")),h.isDirectory()&&_&&(w=w.concat(c(u,E,_)))}),w}return c(o,void 0,!0)},a.prototype.findFilesAsync=function(o,l){const c=this;let g=[];c.fs.readdir(o,function(E,_){if(E)return l(E);let w=_.length;if(!w)return l(null,g);_.forEach(function(R){R=t.join(o,R),c.fs.stat(R,function(u,h){if(u)return l(u);h&&(g.push(t.normalize(R)+(h.isDirectory()?c.sep:"")),h.isDirectory()?c.findFilesAsync(R,function(n,m){if(n)return l(n);g=g.concat(m),--w||l(null,g)}):--w||l(null,g))})})})},a.prototype.getAttributes=function(){},a.prototype.setAttributes=function(){},a.crc32update=function(o,l){return r[(o^l)&255]^o>>>8},a.crc32=function(o){typeof o=="string"&&(o=Buffer.from(o,"utf8"));let l=o.length,c=-1;for(let g=0;g<l;)c=a.crc32update(c,o[g++]);return~c>>>0},a.methodToString=function(o){switch(o){case f.STORED:return"STORED ("+o+")";case f.DEFLATED:return"DEFLATED ("+o+")";default:return"UNSUPPORTED ("+o+")"}},a.canonical=function(o){if(!o)return"";const l=t.posix.normalize("/"+o.split("\\").join("/"));return t.join(".",l)},a.zipnamefix=function(o){if(!o)return"";const l=t.posix.normalize("/"+o.split("\\").join("/"));return t.posix.join(".",l)},a.findLast=function(o,l){if(!Array.isArray(o))throw new TypeError("arr is not array");const c=o.length>>>0;for(let g=c-1;g>=0;g--)if(l(o[g],g,o))return o[g]},a.sanitize=function(o,l){o=t.resolve(t.normalize(o));for(var c=l.split("/"),g=0,E=c.length;g<E;g++){var _=t.normalize(t.join(o,c.slice(g,E).join(t.sep)));if(_.indexOf(o)===0)return _}return t.normalize(t.join(o,t.basename(l)))},a.toBuffer=function(l,c){return Buffer.isBuffer(l)?l:l instanceof Uint8Array?Buffer.from(l):typeof l=="string"?c(l):Buffer.alloc(0)},a.readBigUInt64LE=function(o,l){var c=Buffer.from(o.slice(l,l+8));return c.swap64(),parseInt(`0x${c.toString("hex")}`)},a.fromDOS2Date=function(o){return new Date((o>>25&127)+1980,Math.max((o>>21&15)-1,0),Math.max(o>>16&31,1),o>>11&31,o>>5&63,(o&31)<<1)},a.fromDate2DOS=function(o){let l=0,c=0;return o.getFullYear()>1979&&(l=(o.getFullYear()-1980&127)<<9|o.getMonth()+1<<5|o.getDate(),c=o.getHours()<<11|o.getMinutes()<<5|o.getSeconds()>>1),l<<16|c},a.isWin=d,a.crcTable=r,qi}var ki,Fl;function op(){if(Fl)return ki;Fl=1;const e=me;return ki=function(t,{fs:f}){var s=t||"",d=r(),i=null;function r(){return{directory:!1,readonly:!1,hidden:!1,executable:!1,mtime:0,atime:0}}return s&&f.existsSync(s)?(i=f.statSync(s),d.directory=i.isDirectory(),d.mtime=i.mtime,d.atime=i.atime,d.executable=(73&i.mode)!==0,d.readonly=(128&i.mode)===0,d.hidden=e.basename(s)[0]==="."):console.warn("Invalid path: "+s),{get directory(){return d.directory},get readOnly(){return d.readonly},get hidden(){return d.hidden},get mtime(){return d.mtime},get atime(){return d.atime},get executable(){return d.executable},decodeAttributes:function(){},encodeAttributes:function(){},toJSON:function(){return{path:s,isDirectory:d.directory,isReadOnly:d.readonly,isHidden:d.hidden,isExecutable:d.executable,mTime:d.mtime,aTime:d.atime}},toString:function(){return JSON.stringify(this.toJSON(),null," ")}}},ki}var ji,Ml;function ap(){return Ml||(Ml=1,ji={efs:!0,encode:e=>Buffer.from(e,"utf8"),decode:e=>e.toString("utf8")}),ji}var Ul;function Pt(){return Ul||(Ul=1,nt.exports=ip(),nt.exports.Constants=$f(),nt.exports.Errors=co(),nt.exports.FileAttr=op(),nt.exports.decoder=ap()),nt.exports}var yn={},Fi,Vl;function cp(){if(Vl)return Fi;Vl=1;var e=Pt(),t=e.Constants;return Fi=function(){var f=20,s=10,d=0,i=0,r=0,a=0,o=0,l=0,c=0,g=0,E=0,_=0,w=0,R=0,u=0;f|=e.isWin?2560:768,d|=t.FLG_EFS;const h={extraLen:0},n=v=>Math.max(0,v)>>>0,m=v=>Math.max(0,v)&255;return r=e.fromDate2DOS(new Date),{get made(){return f},set made(v){f=v},get version(){return s},set version(v){s=v},get flags(){return d},set flags(v){d=v},get flags_efs(){return(d&t.FLG_EFS)>0},set flags_efs(v){v?d|=t.FLG_EFS:d&=~t.FLG_EFS},get flags_desc(){return(d&t.FLG_DESC)>0},set flags_desc(v){v?d|=t.FLG_DESC:d&=~t.FLG_DESC},get method(){return i},set method(v){switch(v){case t.STORED:this.version=10;case t.DEFLATED:default:this.version=20}i=v},get time(){return e.fromDOS2Date(this.timeval)},set time(v){this.timeval=e.fromDate2DOS(v)},get timeval(){return r},set timeval(v){r=n(v)},get timeHighByte(){return m(r>>>8)},get crc(){return a},set crc(v){a=n(v)},get compressedSize(){return o},set compressedSize(v){o=n(v)},get size(){return l},set size(v){l=n(v)},get fileNameLength(){return c},set fileNameLength(v){c=v},get extraLength(){return g},set extraLength(v){g=v},get extraLocalLength(){return h.extraLen},set extraLocalLength(v){h.extraLen=v},get commentLength(){return E},set commentLength(v){E=v},get diskNumStart(){return _},set diskNumStart(v){_=n(v)},get inAttr(){return w},set inAttr(v){w=n(v)},get attr(){return R},set attr(v){R=n(v)},get fileAttr(){return(R||0)>>16&4095},get offset(){return u},set offset(v){u=n(v)},get encrypted(){return(d&t.FLG_ENC)===t.FLG_ENC},get centralHeaderSize(){return t.CENHDR+c+g+E},get realDataOffset(){return u+t.LOCHDR+h.fnameLen+h.extraLen},get localHeader(){return h},loadLocalHeaderFromBinary:function(v){var p=v.slice(u,u+t.LOCHDR);if(p.readUInt32LE(0)!==t.LOCSIG)throw e.Errors.INVALID_LOC();h.version=p.readUInt16LE(t.LOCVER),h.flags=p.readUInt16LE(t.LOCFLG),h.method=p.readUInt16LE(t.LOCHOW),h.time=p.readUInt32LE(t.LOCTIM),h.crc=p.readUInt32LE(t.LOCCRC),h.compressedSize=p.readUInt32LE(t.LOCSIZ),h.size=p.readUInt32LE(t.LOCLEN),h.fnameLen=p.readUInt16LE(t.LOCNAM),h.extraLen=p.readUInt16LE(t.LOCEXT);const y=u+t.LOCHDR+h.fnameLen,$=y+h.extraLen;return v.slice(y,$)},loadFromBinary:function(v){if(v.length!==t.CENHDR||v.readUInt32LE(0)!==t.CENSIG)throw e.Errors.INVALID_CEN();f=v.readUInt16LE(t.CENVEM),s=v.readUInt16LE(t.CENVER),d=v.readUInt16LE(t.CENFLG),i=v.readUInt16LE(t.CENHOW),r=v.readUInt32LE(t.CENTIM),a=v.readUInt32LE(t.CENCRC),o=v.readUInt32LE(t.CENSIZ),l=v.readUInt32LE(t.CENLEN),c=v.readUInt16LE(t.CENNAM),g=v.readUInt16LE(t.CENEXT),E=v.readUInt16LE(t.CENCOM),_=v.readUInt16LE(t.CENDSK),w=v.readUInt16LE(t.CENATT),R=v.readUInt32LE(t.CENATX),u=v.readUInt32LE(t.CENOFF)},localHeaderToBinary:function(){var v=Buffer.alloc(t.LOCHDR);return v.writeUInt32LE(t.LOCSIG,0),v.writeUInt16LE(s,t.LOCVER),v.writeUInt16LE(d,t.LOCFLG),v.writeUInt16LE(i,t.LOCHOW),v.writeUInt32LE(r,t.LOCTIM),v.writeUInt32LE(a,t.LOCCRC),v.writeUInt32LE(o,t.LOCSIZ),v.writeUInt32LE(l,t.LOCLEN),v.writeUInt16LE(c,t.LOCNAM),v.writeUInt16LE(h.extraLen,t.LOCEXT),v},centralHeaderToBinary:function(){var v=Buffer.alloc(t.CENHDR+c+g+E);return v.writeUInt32LE(t.CENSIG,0),v.writeUInt16LE(f,t.CENVEM),v.writeUInt16LE(s,t.CENVER),v.writeUInt16LE(d,t.CENFLG),v.writeUInt16LE(i,t.CENHOW),v.writeUInt32LE(r,t.CENTIM),v.writeUInt32LE(a,t.CENCRC),v.writeUInt32LE(o,t.CENSIZ),v.writeUInt32LE(l,t.CENLEN),v.writeUInt16LE(c,t.CENNAM),v.writeUInt16LE(g,t.CENEXT),v.writeUInt16LE(E,t.CENCOM),v.writeUInt16LE(_,t.CENDSK),v.writeUInt16LE(w,t.CENATT),v.writeUInt32LE(R,t.CENATX),v.writeUInt32LE(u,t.CENOFF),v},toJSON:function(){const v=function(p){return p+" bytes"};return{made:f,version:s,flags:d,method:e.methodToString(i),time:this.time,crc:"0x"+a.toString(16).toUpperCase(),compressedSize:v(o),size:v(l),fileNameLength:v(c),extraLength:v(g),commentLength:v(E),diskNumStart:_,inAttr:w,attr:R,offset:u,centralHeaderSize:v(t.CENHDR+c+g+E)}},toString:function(){return JSON.stringify(this.toJSON(),null," ")}}},Fi}var Mi,zl;function up(){if(zl)return Mi;zl=1;var e=Pt(),t=e.Constants;return Mi=function(){var f=0,s=0,d=0,i=0,r=0;return{get diskEntries(){return f},set diskEntries(a){f=s=a},get totalEntries(){return s},set totalEntries(a){s=f=a},get size(){return d},set size(a){d=a},get offset(){return i},set offset(a){i=a},get commentLength(){return r},set commentLength(a){r=a},get mainHeaderSize(){return t.ENDHDR+r},loadFromBinary:function(a){if((a.length!==t.ENDHDR||a.readUInt32LE(0)!==t.ENDSIG)&&(a.length<t.ZIP64HDR||a.readUInt32LE(0)!==t.ZIP64SIG))throw e.Errors.INVALID_END();a.readUInt32LE(0)===t.ENDSIG?(f=a.readUInt16LE(t.ENDSUB),s=a.readUInt16LE(t.ENDTOT),d=a.readUInt32LE(t.ENDSIZ),i=a.readUInt32LE(t.ENDOFF),r=a.readUInt16LE(t.ENDCOM)):(f=e.readBigUInt64LE(a,t.ZIP64SUB),s=e.readBigUInt64LE(a,t.ZIP64TOT),d=e.readBigUInt64LE(a,t.ZIP64SIZE),i=e.readBigUInt64LE(a,t.ZIP64OFF),r=0)},toBinary:function(){var a=Buffer.alloc(t.ENDHDR+r);return a.writeUInt32LE(t.ENDSIG,0),a.writeUInt32LE(0,4),a.writeUInt16LE(f,t.ENDSUB),a.writeUInt16LE(s,t.ENDTOT),a.writeUInt32LE(d,t.ENDSIZ),a.writeUInt32LE(i,t.ENDOFF),a.writeUInt16LE(r,t.ENDCOM),a.fill(" ",t.ENDHDR),a},toJSON:function(){const a=function(o,l){let c=o.toString(16).toUpperCase();for(;c.length<l;)c="0"+c;return"0x"+c};return{diskEntries:f,totalEntries:s,size:d+" bytes",offset:a(i,4),commentLength:r}},toString:function(){return JSON.stringify(this.toJSON(),null," ")}}},Mi}var Gl;function Ef(){return Gl||(Gl=1,yn.EntryHeader=cp(),yn.MainHeader=up()),yn}var $t={},Ui,Kl;function lp(){return Kl||(Kl=1,Ui=function(e){var t=ef,f={chunkSize:(parseInt(e.length/1024)+1)*1024};return{deflate:function(){return t.deflateRawSync(e,f)},deflateAsync:function(s){var d=t.createDeflateRaw(f),i=[],r=0;d.on("data",function(a){i.push(a),r+=a.length}),d.on("end",function(){var a=Buffer.alloc(r),o=0;a.fill(0);for(var l=0;l<i.length;l++){var c=i[l];c.copy(a,o),o+=c.length}s&&s(a)}),d.end(e)}}}),Ui}var Vi,Hl;function fp(){if(Hl)return Vi;Hl=1;const e=+(process.versions?process.versions.node:"").split(".")[0]||0;return Vi=function(t,f){var s=ef;const d=e>=15&&f>0?{maxOutputLength:f}:{};return{inflate:function(){return s.inflateRawSync(t,d)},inflateAsync:function(i){var r=s.createInflateRaw(d),a=[],o=0;r.on("data",function(l){a.push(l),o+=l.length}),r.on("end",function(){var l=Buffer.alloc(o),c=0;l.fill(0);for(var g=0;g<a.length;g++){var E=a[g];E.copy(l,c),c+=E.length}i&&i(l)}),r.end(t)}}},Vi}var zi,xl;function dp(){if(xl)return zi;xl=1;const{randomFillSync:e}=Ql,t=co(),f=new Uint32Array(256).map((_,w)=>{for(let R=0;R<8;R++)(w&1)!==0?w=w>>>1^3988292384:w>>>=1;return w>>>0}),s=(_,w)=>Math.imul(_,w)>>>0,d=(_,w)=>f[(_^w)&255]^_>>>8,i=()=>typeof e=="function"?e(Buffer.alloc(12)):i.node();i.node=()=>{const _=Buffer.alloc(12),w=_.length;for(let R=0;R<w;R++)_[R]=Math.random()*256&255;return _};const r={genSalt:i};function a(_){const w=Buffer.isBuffer(_)?_:Buffer.from(_);this.keys=new Uint32Array([305419896,591751049,878082192]);for(let R=0;R<w.length;R++)this.updateKeys(w[R])}a.prototype.updateKeys=function(_){const w=this.keys;return w[0]=d(w[0],_),w[1]+=w[0]&255,w[1]=s(w[1],134775813)+1,w[2]=d(w[2],w[1]>>>24),_},a.prototype.next=function(){const _=(this.keys[2]|2)>>>0;return s(_,_^1)>>8&255};function o(_){const w=new a(_);return function(R){const u=Buffer.alloc(R.length);let h=0;for(let n of R)u[h++]=w.updateKeys(n^w.next());return u}}function l(_){const w=new a(_);return function(R,u,h=0){u||(u=Buffer.alloc(R.length));for(let n of R){const m=w.next();u[h++]=n^m,w.updateKeys(n)}return u}}function c(_,w,R){if(!_||!Buffer.isBuffer(_)||_.length<12)return Buffer.alloc(0);const u=o(R),h=u(_.slice(0,12)),n=(w.flags&8)===8?w.timeHighByte:w.crc>>>24;if(h[11]!==n)throw t.WRONG_PASSWORD();return u(_.slice(12))}function g(_){Buffer.isBuffer(_)&&_.length>=12?r.genSalt=function(){return _.slice(0,12)}:_==="node"?r.genSalt=i.node:r.genSalt=i}function E(_,w,R,u=!1){_==null&&(_=Buffer.alloc(0)),Buffer.isBuffer(_)||(_=Buffer.from(_.toString()));const h=l(R),n=r.genSalt();n[11]=w.crc>>>24&255,u&&(n[10]=w.crc>>>16&255);const m=Buffer.alloc(_.length+12);return h(n,m),h(_,m,12)}return zi={decrypt:c,encrypt:E,_salter:g},zi}var Bl;function hp(){return Bl||(Bl=1,$t.Deflater=lp(),$t.Inflater=fp(),$t.ZipCrypto=dp()),$t}var Gi,Wl;function wf(){if(Wl)return Gi;Wl=1;var e=Pt(),t=Ef(),f=e.Constants,s=hp();return Gi=function(d,i){var r=new t.EntryHeader,a=Buffer.alloc(0),o=Buffer.alloc(0),l=!1,c=null,g=Buffer.alloc(0),E=Buffer.alloc(0),_=!0;const w=d,R=typeof w.decoder=="object"?w.decoder:e.decoder;_=R.hasOwnProperty("efs")?R.efs:!1;function u(){return!i||!(i instanceof Uint8Array)?Buffer.alloc(0):(E=r.loadLocalHeaderFromBinary(i),i.slice(r.realDataOffset,r.realDataOffset+r.compressedSize))}function h($){if(r.flags_desc){const b={},N=r.realDataOffset+r.compressedSize;if(i.readUInt32LE(N)==f.LOCSIG||i.readUInt32LE(N)==f.CENSIG)throw e.Errors.DESCRIPTOR_NOT_EXIST();if(i.readUInt32LE(N)==f.EXTSIG)b.crc=i.readUInt32LE(N+f.EXTCRC),b.compressedSize=i.readUInt32LE(N+f.EXTSIZ),b.size=i.readUInt32LE(N+f.EXTLEN);else if(i.readUInt16LE(N+12)===19280)b.crc=i.readUInt32LE(N+f.EXTCRC-4),b.compressedSize=i.readUInt32LE(N+f.EXTSIZ-4),b.size=i.readUInt32LE(N+f.EXTLEN-4);else throw e.Errors.DESCRIPTOR_UNKNOWN();if(b.compressedSize!==r.compressedSize||b.size!==r.size||b.crc!==r.crc)throw e.Errors.DESCRIPTOR_FAULTY();if(e.crc32($)!==b.crc)return!1}else if(e.crc32($)!==r.localHeader.crc)return!1;return!0}function n($,b,N){if(typeof b>"u"&&typeof $=="string"&&(N=$,$=void 0),l)return $&&b&&b(Buffer.alloc(0),e.Errors.DIRECTORY_CONTENT_ERROR()),Buffer.alloc(0);var L=u();if(L.length===0)return $&&b&&b(L),L;if(r.encrypted){if(typeof N!="string"&&!Buffer.isBuffer(N))throw e.Errors.INVALID_PASS_PARAM();L=s.ZipCrypto.decrypt(L,r,N)}var F=Buffer.alloc(r.size);switch(r.method){case e.Constants.STORED:if(L.copy(F),h(F))return $&&b&&b(F),F;throw $&&b&&b(F,e.Errors.BAD_CRC()),e.Errors.BAD_CRC();case e.Constants.DEFLATED:var H=new s.Inflater(L,r.size);if($)H.inflateAsync(function(M){M.copy(M,0),b&&(h(M)?b(M):b(M,e.Errors.BAD_CRC()))});else{if(H.inflate(F).copy(F,0),!h(F))throw e.Errors.BAD_CRC(`"${R.decode(a)}"`);return F}break;default:throw $&&b&&b(Buffer.alloc(0),e.Errors.UNKNOWN_METHOD()),e.Errors.UNKNOWN_METHOD()}}function m($,b){if((!c||!c.length)&&Buffer.isBuffer(i))return $&&b&&b(u()),u();if(c.length&&!l){var N;switch(r.method){case e.Constants.STORED:return r.compressedSize=r.size,N=Buffer.alloc(c.length),c.copy(N),$&&b&&b(N),N;default:case e.Constants.DEFLATED:var L=new s.Deflater(c);if($)L.deflateAsync(function(H){N=Buffer.alloc(H.length),r.compressedSize=H.length,H.copy(N),b&&b(N)});else{var F=L.deflate();return r.compressedSize=F.length,F}L=null;break}}else if($&&b)b(Buffer.alloc(0));else return Buffer.alloc(0)}function v($,b){return($.readUInt32LE(b+4)<<4)+$.readUInt32LE(b)}function p($){try{for(var b=0,N,L,F;b+4<$.length;)N=$.readUInt16LE(b),b+=2,L=$.readUInt16LE(b),b+=2,F=$.slice(b,b+L),b+=L,f.ID_ZIP64===N&&y(F)}catch{throw e.Errors.EXTRA_FIELD_PARSE_ERROR()}}function y($){var b,N,L,F;$.length>=f.EF_ZIP64_SCOMP&&(b=v($,f.EF_ZIP64_SUNCOMP),r.size===f.EF_ZIP64_OR_32&&(r.size=b)),$.length>=f.EF_ZIP64_RHO&&(N=v($,f.EF_ZIP64_SCOMP),r.compressedSize===f.EF_ZIP64_OR_32&&(r.compressedSize=N)),$.length>=f.EF_ZIP64_DSN&&(L=v($,f.EF_ZIP64_RHO),r.offset===f.EF_ZIP64_OR_32&&(r.offset=L)),$.length>=f.EF_ZIP64_DSN+4&&(F=$.readUInt32LE(f.EF_ZIP64_DSN),r.diskNumStart===f.EF_ZIP64_OR_16&&(r.diskNumStart=F))}return{get entryName(){return R.decode(a)},get rawEntryName(){return a},set entryName($){a=e.toBuffer($,R.encode);var b=a[a.length-1];l=b===47||b===92,r.fileNameLength=a.length},get efs(){return typeof _=="function"?_(this.entryName):_},get extra(){return g},set extra($){g=$,r.extraLength=$.length,p($)},get comment(){return R.decode(o)},set comment($){if(o=e.toBuffer($,R.encode),r.commentLength=o.length,o.length>65535)throw e.Errors.COMMENT_TOO_LONG()},get name(){var $=R.decode(a);return l?$.substr($.length-1).split("/").pop():$.split("/").pop()},get isDirectory(){return l},getCompressedData:function(){return m(!1,null)},getCompressedDataAsync:function($){m(!0,$)},setData:function($){c=e.toBuffer($,e.decoder.encode),!l&&c.length?(r.size=c.length,r.method=e.Constants.DEFLATED,r.crc=e.crc32($),r.changed=!0):r.method=e.Constants.STORED},getData:function($){return r.changed?c:n(!1,null,$)},getDataAsync:function($,b){r.changed?$(c):n(!0,$,b)},set attr($){r.attr=$},get attr(){return r.attr},set header($){r.loadFromBinary($)},get header(){return r},packCentralHeader:function(){r.flags_efs=this.efs,r.extraLength=g.length;var $=r.centralHeaderToBinary(),b=e.Constants.CENHDR;return a.copy($,b),b+=a.length,g.copy($,b),b+=r.extraLength,o.copy($,b),$},packLocalHeader:function(){let $=0;r.flags_efs=this.efs,r.extraLocalLength=E.length;const b=r.localHeaderToBinary(),N=Buffer.alloc(b.length+a.length+r.extraLocalLength);return b.copy(N,$),$+=b.length,a.copy(N,$),$+=a.length,E.copy(N,$),$+=E.length,N},toJSON:function(){const $=function(b){return"<"+(b&&b.length+" bytes buffer"||"null")+">"};return{entryName:this.entryName,name:this.name,comment:this.comment,isDirectory:this.isDirectory,header:r.toJSON(),compressedData:$(i),data:$(c)}},toString:function(){return JSON.stringify(this.toJSON(),null," ")}}},Gi}var Ki,Jl;function mp(){if(Jl)return Ki;Jl=1;const e=wf(),t=Ef(),f=Pt();return Ki=function(s,d){var i=[],r={},a=Buffer.alloc(0),o=new t.MainHeader,l=!1;const c=new Set,g=d,{noSort:E,decoder:_}=g;s?u(g.readEntries):l=!0;function w(){const n=new Set;for(const m of Object.keys(r)){const v=m.split("/");if(v.pop(),!!v.length)for(let p=0;p<v.length;p++){const y=v.slice(0,p+1).join("/")+"/";n.add(y)}}for(const m of n)if(!(m in r)){const v=new e(g);v.entryName=m,v.attr=16,v.temporary=!0,i.push(v),r[v.entryName]=v,c.add(v)}}function R(){if(l=!0,r={},o.diskEntries>(s.length-o.offset)/f.Constants.CENHDR)throw f.Errors.DISK_ENTRY_TOO_LARGE();i=new Array(o.diskEntries);for(var n=o.offset,m=0;m<i.length;m++){var v=n,p=new e(g,s);p.header=s.slice(v,v+=f.Constants.CENHDR),p.entryName=s.slice(v,v+=p.header.fileNameLength),p.header.extraLength&&(p.extra=s.slice(v,v+=p.header.extraLength)),p.header.commentLength&&(p.comment=s.slice(v,v+p.header.commentLength)),n+=p.header.centralHeaderSize,i[m]=p,r[p.entryName]=p}c.clear(),w()}function u(n){var m=s.length-f.Constants.ENDHDR,v=Math.max(0,m-65535),p=v,y=s.length,$=-1,b=0;for((typeof g.trailingSpace=="boolean"?g.trailingSpace:!1)&&(v=0),m;m>=p;m--)if(s[m]===80){if(s.readUInt32LE(m)===f.Constants.ENDSIG){$=m,b=m,y=m+f.Constants.ENDHDR,p=m-f.Constants.END64HDR;continue}if(s.readUInt32LE(m)===f.Constants.END64SIG){p=v;continue}if(s.readUInt32LE(m)===f.Constants.ZIP64SIG){$=m,y=m+f.readBigUInt64LE(s,m+f.Constants.ZIP64SIZE)+f.Constants.ZIP64LEAD;break}}if($==-1)throw f.Errors.INVALID_FORMAT();o.loadFromBinary(s.slice($,y)),o.commentLength&&(a=s.slice(b+f.Constants.ENDHDR)),n&&R()}function h(){i.length>1&&!E&&i.sort((n,m)=>n.entryName.toLowerCase().localeCompare(m.entryName.toLowerCase()))}return{get entries(){return l||R(),i.filter(n=>!c.has(n))},get comment(){return _.decode(a)},set comment(n){a=f.toBuffer(n,_.encode),o.commentLength=a.length},getEntryCount:function(){return l?i.length:o.diskEntries},forEach:function(n){this.entries.forEach(n)},getEntry:function(n){return l||R(),r[n]||null},setEntry:function(n){l||R(),i.push(n),r[n.entryName]=n,o.totalEntries=i.length},deleteFile:function(n,m=!0){l||R();const v=r[n];this.getEntryChildren(v,m).map(y=>y.entryName).forEach(this.deleteEntry)},deleteEntry:function(n){l||R();const m=r[n],v=i.indexOf(m);v>=0&&(i.splice(v,1),delete r[n],o.totalEntries=i.length)},getEntryChildren:function(n,m=!0){if(l||R(),typeof n=="object")if(n.isDirectory&&m){const v=[],p=n.entryName;for(const y of i)y.entryName.startsWith(p)&&v.push(y);return v}else return[n];return[]},getChildCount:function(n){if(n&&n.isDirectory){const m=this.getEntryChildren(n);return m.includes(n)?m.length-1:m.length}return 0},compressToBuffer:function(){l||R(),h();const n=[],m=[];let v=0,p=0;o.size=0,o.offset=0;let y=0;for(const N of this.entries){const L=N.getCompressedData();N.header.offset=p;const F=N.packLocalHeader(),H=F.length+L.length;p+=H,n.push(F),n.push(L);const M=N.packCentralHeader();m.push(M),o.size+=M.length,v+=H+M.length,y++}v+=o.mainHeaderSize,o.offset=p,o.totalEntries=y,p=0;const $=Buffer.alloc(v);for(const N of n)N.copy($,p),p+=N.length;for(const N of m)N.copy($,p),p+=N.length;const b=o.toBinary();return a&&a.copy(b,f.Constants.ENDHDR),b.copy($,p),s=$,l=!1,$},toAsyncBuffer:function(n,m,v,p){try{l||R(),h();const y=[],$=[];let b=0,N=0,L=0;o.size=0,o.offset=0;const F=function(H){if(H.length>0){const M=H.shift(),U=M.entryName+M.extra.toString();v&&v(U),M.getCompressedDataAsync(function(z){p&&p(U),M.header.offset=N;const J=M.packLocalHeader(),W=J.length+z.length;N+=W,y.push(J),y.push(z);const j=M.packCentralHeader();$.push(j),o.size+=j.length,b+=W+j.length,L++,F(H)})}else{b+=o.mainHeaderSize,o.offset=N,o.totalEntries=L,N=0;const M=Buffer.alloc(b);y.forEach(function(z){z.copy(M,N),N+=z.length}),$.forEach(function(z){z.copy(M,N),N+=z.length});const U=o.toBinary();a&&a.copy(U,f.Constants.ENDHDR),U.copy(M,N),s=M,l=!1,n(M)}};F(Array.from(this.entries))}catch(y){m(y)}}}},Ki}var Hi,Zl;function pp(){if(Zl)return Hi;Zl=1;const e=Pt(),t=me,f=wf(),s=mp(),d=(...o)=>e.findLast(o,l=>typeof l=="boolean"),i=(...o)=>e.findLast(o,l=>typeof l=="string"),r=(...o)=>e.findLast(o,l=>typeof l=="function"),a={noSort:!1,readEntries:!1,method:e.Constants.NONE,fs:null};return Hi=function(o,l){let c=null;const g=Object.assign(Object.create(null),a);o&&typeof o=="object"&&(o instanceof Uint8Array||(Object.assign(g,o),o=g.input?g.input:void 0,g.input&&delete g.input),Buffer.isBuffer(o)&&(c=o,g.method=e.Constants.BUFFER,o=void 0)),Object.assign(g,l);const E=new e(g);if((typeof g.decoder!="object"||typeof g.decoder.encode!="function"||typeof g.decoder.decode!="function")&&(g.decoder=e.decoder),o&&typeof o=="string")if(E.fs.existsSync(o))g.method=e.Constants.FILE,g.filename=o,c=E.fs.readFileSync(o);else throw e.Errors.INVALID_FILENAME();const _=new s(c,g),{canonical:w,sanitize:R,zipnamefix:u}=e;function h(p){if(p&&_){var y;if(typeof p=="string"&&(y=_.getEntry(t.posix.normalize(p))),typeof p=="object"&&typeof p.entryName<"u"&&typeof p.header<"u"&&(y=_.getEntry(p.entryName)),y)return y}return null}function n(p){const{join:y,normalize:$,sep:b}=t.posix;return y(".",$(b+p.split("\\").join(b)+b))}function m(p){return p instanceof RegExp?function(y){return function($){return y.test($)}}(p):typeof p!="function"?()=>!0:p}const v=(p,y)=>{let $=y.slice(-1);return $=$===E.sep?E.sep:"",t.relative(p,y)+$};return{readFile:function(p,y){var $=h(p);return $&&$.getData(y)||null},childCount:function(p){const y=h(p);if(y)return _.getChildCount(y)},readFileAsync:function(p,y){var $=h(p);$?$.getDataAsync(y):y(null,"getEntry failed for:"+p)},readAsText:function(p,y){var $=h(p);if($){var b=$.getData();if(b&&b.length)return b.toString(y||"utf8")}return""},readAsTextAsync:function(p,y,$){var b=h(p);b?b.getDataAsync(function(N,L){if(L){y(N,L);return}N&&N.length?y(N.toString($||"utf8")):y("")}):y("")},deleteFile:function(p,y=!0){var $=h(p);$&&_.deleteFile($.entryName,y)},deleteEntry:function(p){var y=h(p);y&&_.deleteEntry(y.entryName)},addZipComment:function(p){_.comment=p},getZipComment:function(){return _.comment||""},addZipEntryComment:function(p,y){var $=h(p);$&&($.comment=y)},getZipEntryComment:function(p){var y=h(p);return y&&y.comment||""},updateFile:function(p,y){var $=h(p);$&&$.setData(y)},addLocalFile:function(p,y,$,b){if(E.fs.existsSync(p)){y=y?n(y):"";const N=t.win32.basename(t.win32.normalize(p));y+=$||N;const L=E.fs.statSync(p),F=L.isFile()?E.fs.readFileSync(p):Buffer.alloc(0);L.isDirectory()&&(y+=E.sep),this.addFile(y,F,b,L)}else throw e.Errors.FILE_NOT_FOUND(p)},addLocalFileAsync:function(p,y){p=typeof p=="object"?p:{localPath:p};const $=t.resolve(p.localPath),{comment:b}=p;let{zipPath:N,zipName:L}=p;const F=this;E.fs.stat($,function(H,M){if(H)return y(H,!1);N=N?n(N):"";const U=t.win32.basename(t.win32.normalize($));if(N+=L||U,M.isFile())E.fs.readFile($,function(z,J){return z?y(z,!1):(F.addFile(N,J,b,M),setImmediate(y,void 0,!0))});else if(M.isDirectory())return N+=E.sep,F.addFile(N,Buffer.alloc(0),b,M),setImmediate(y,void 0,!0)})},addLocalFolder:function(p,y,$){if($=m($),y=y?n(y):"",p=t.normalize(p),E.fs.existsSync(p)){const b=E.findFiles(p),N=this;if(b.length)for(const L of b){const F=t.join(y,v(p,L));$(F)&&N.addLocalFile(L,t.dirname(F))}}else throw e.Errors.FILE_NOT_FOUND(p)},addLocalFolderAsync:function(p,y,$,b){b=m(b),$=$?n($):"",p=t.normalize(p);var N=this;E.fs.open(p,"r",function(L){if(L&&L.code==="ENOENT")y(void 0,e.Errors.FILE_NOT_FOUND(p));else if(L)y(void 0,L);else{var F=E.findFiles(p),H=-1,M=function(){if(H+=1,H<F.length){var U=F[H],z=v(p,U).split("\\").join("/");z=z.normalize("NFD").replace(/[\u0300-\u036f]/g,"").replace(/[^\x20-\x7E]/g,""),b(z)?E.fs.stat(U,function(J,W){J&&y(void 0,J),W.isFile()?E.fs.readFile(U,function(j,G){j?y(void 0,j):(N.addFile($+z,G,"",W),M())}):(N.addFile($+z+"/",Buffer.alloc(0),"",W),M())}):process.nextTick(()=>{M()})}else y(!0,void 0)};M()}})},addLocalFolderAsync2:function(p,y){const $=this;p=typeof p=="object"?p:{localPath:p},localPath=t.resolve(n(p.localPath));let{zipPath:b,filter:N,namefix:L}=p;N instanceof RegExp?N=function(M){return function(U){return M.test(U)}}(N):typeof N!="function"&&(N=function(){return!0}),b=b?n(b):"",L=="latin1"&&(L=M=>M.normalize("NFD").replace(/[\u0300-\u036f]/g,"").replace(/[^\x20-\x7E]/g,"")),typeof L!="function"&&(L=M=>M);const F=M=>t.join(b,L(v(localPath,M))),H=M=>t.win32.basename(t.win32.normalize(L(M)));E.fs.open(localPath,"r",function(M){M&&M.code==="ENOENT"?y(void 0,e.Errors.FILE_NOT_FOUND(localPath)):M?y(void 0,M):E.findFilesAsync(localPath,function(U,z){if(U)return y(U);z=z.filter(J=>N(F(J))),z.length||y(void 0,!1),setImmediate(z.reverse().reduce(function(J,W){return function(j,G){if(j||G===!1)return setImmediate(J,j,!1);$.addLocalFileAsync({localPath:W,zipPath:t.dirname(F(W)),zipName:H(W)},J)}},y))})})},addLocalFolderPromise:function(p,y){return new Promise(($,b)=>{this.addLocalFolderAsync2(Object.assign({localPath:p},y),(N,L)=>{N&&b(N),L&&$(this)})})},addFile:function(p,y,$,b){p=u(p);let N=h(p);const L=N!=null;L||(N=new f(g),N.entryName=p),N.comment=$||"";const F=typeof b=="object"&&b instanceof E.fs.Stats;F&&(N.header.time=b.mtime);var H=N.isDirectory?16:0;let M=N.isDirectory?16384:32768;return F?M|=4095&b.mode:typeof b=="number"?M|=4095&b:M|=N.isDirectory?493:420,H=(H|M<<16)>>>0,N.attr=H,N.setData(y),L||_.setEntry(N),N},getEntries:function(p){return _.password=p,_?_.entries:[]},getEntry:function(p){return h(p)},getEntryCount:function(){return _.getEntryCount()},forEach:function(p){return _.forEach(p)},extractEntryTo:function(p,y,$,b,N,L){b=d(!1,b),N=d(!1,N),$=d(!0,$),L=i(N,L);var F=h(p);if(!F)throw e.Errors.NO_ENTRY();var H=w(F.entryName),M=R(y,L&&!F.isDirectory?L:$?H:t.basename(H));if(F.isDirectory){var U=_.getEntryChildren(F);return U.forEach(function(W){if(W.isDirectory)return;var j=W.getData();if(!j)throw e.Errors.CANT_EXTRACT_FILE();var G=w(W.entryName),D=R(y,$?G:t.basename(G));const O=N?W.header.fileAttr:void 0;E.writeFileTo(D,j,b,O)}),!0}var z=F.getData(_.password);if(!z)throw e.Errors.CANT_EXTRACT_FILE();if(E.fs.existsSync(M)&&!b)throw e.Errors.CANT_OVERRIDE();const J=N?p.header.fileAttr:void 0;return E.writeFileTo(M,z,b,J),!0},test:function(p){if(!_)return!1;for(var y in _.entries)try{if(y.isDirectory)continue;var $=_.entries[y].getData(p);if(!$)return!1}catch{return!1}return!0},extractAllTo:function(p,y,$,b){if($=d(!1,$),b=i($,b),y=d(!1,y),!_)throw e.Errors.NO_ZIP();_.entries.forEach(function(N){var L=R(p,w(N.entryName));if(N.isDirectory){E.makeDir(L);return}var F=N.getData(b);if(!F)throw e.Errors.CANT_EXTRACT_FILE();const H=$?N.header.fileAttr:void 0;E.writeFileTo(L,F,y,H);try{E.fs.utimesSync(L,N.header.time,N.header.time)}catch{throw e.Errors.CANT_EXTRACT_FILE()}})},extractAllToAsync:function(p,y,$,b){if(b=r(y,$,b),$=d(!1,$),y=d(!1,y),!b)return new Promise((M,U)=>{this.extractAllToAsync(p,y,$,function(z){z?U(z):M(this)})});if(!_){b(e.Errors.NO_ZIP());return}p=t.resolve(p);const N=M=>R(p,t.normalize(w(M.entryName))),L=(M,U)=>new Error(M+': "'+U+'"'),F=[],H=[];_.entries.forEach(M=>{M.isDirectory?F.push(M):H.push(M)});for(const M of F){const U=N(M),z=$?M.header.fileAttr:void 0;try{E.makeDir(U),z&&E.fs.chmodSync(U,z),E.fs.utimesSync(U,M.header.time,M.header.time)}catch{b(L("Unable to create folder",U))}}H.reverse().reduce(function(M,U){return function(z){if(z)M(z);else{const J=t.normalize(w(U.entryName)),W=R(p,J);U.getDataAsync(function(j,G){if(G)M(G);else if(!j)M(e.Errors.CANT_EXTRACT_FILE());else{const D=$?U.header.fileAttr:void 0;E.writeFileToAsync(W,j,y,D,function(O){O||M(L("Unable to write file",W)),E.fs.utimes(W,U.header.time,U.header.time,function(q){q?M(L("Unable to set times",W)):M()})})}})}}},b)()},writeZip:function(p,y){if(arguments.length===1&&typeof p=="function"&&(y=p,p=""),!p&&g.filename&&(p=g.filename),!!p){var $=_.compressToBuffer();if($){var b=E.writeFileTo(p,$,!0);typeof y=="function"&&y(b?null:new Error("failed"),"")}}},writeZipPromise:function(p,y){const{overwrite:$,perm:b}=Object.assign({overwrite:!0},y);return new Promise((N,L)=>{!p&&g.filename&&(p=g.filename),p||L("ADM-ZIP: ZIP File Name Missing"),this.toBufferPromise().then(F=>{const H=M=>M?N(M):L("ADM-ZIP: Wasn't able to write zip file");E.writeFileToAsync(p,F,$,b,H)},L)})},toBufferPromise:function(){return new Promise((p,y)=>{_.toAsyncBuffer(p,y)})},toBuffer:function(p,y,$,b){return typeof p=="function"?(_.toAsyncBuffer(p,y,$,b),null):_.compressToBuffer()}}},Hi}var yp=pp();const Xl=tf(yp);class wt{constructor(t,f){this.bw=t,this.version=f;const s=wt.#d;this.#s=process.platform==="win32",t.webContents.on("devtools-opened",()=>this.#l()),s.handle("openDevTools",()=>t.webContents.openDevTools()),this.#h.getVersion=f,s.handle("getInfo",()=>this.#h),s.handle("inited",(i,r,a)=>this.#p(r,a)),s.handle("fetch",async(i,r)=>{const a=await fetch(r,{cache:"no-store"});return{ok:a.ok,txt:await a.text()}}),s.handle("fetchAb",async(i,r)=>{const a=await fetch(r,{cache:"no-store"});return{ok:a.ok,ab:await a.arrayBuffer()}}),s.handle("existsSync",(i,r)=>be.existsSync(r)),s.handle("copy",(i,r,a)=>be.copy(r,a)),s.handle("remove",(i,r)=>be.remove(r)),s.handle("ensureFile",(i,r)=>be.ensureFile(r)),s.handle("readFile",(i,r,a)=>be.readFile(r,a)),s.handle("writeFile",(i,r,a,o)=>be.writeFile(r,a,o)),s.handle("appendFile",(i,r,a)=>be.appendFile(r,a).catch(o=>console.error(o))),s.handle("outputFile",(i,r,a)=>be.outputFile(r,a).catch(o=>console.error(o))),s.handle("win_close",()=>t.close()),s.handle("win_setTitle",(i,r)=>t.setTitle(r)),s.handle("showMessageBox",(i,r)=>Pe.dialog.showMessageBox(t,r)),s.handle("showOpenDialog",(i,r)=>Pe.dialog.showOpenDialog(t,r)),s.handle("capturePage",(i,r,a,o)=>t.webContents.capturePage().then(async l=>{await be.ensureFile(r);const c=l.resize({width:a,height:o,quality:"best"}),g=r.endsWith(".png")?c.toPNG():c.toJPEG(80);await be.writeFile(r,g)})),s.handle("navigate_to",(i,r)=>Pe.shell.openExternal(r));let d;s.handle("Store",(i,r)=>{d=new Ll(r)}),s.handle("flush",(i,r)=>{d.store=r}),s.handle("Store_isEmpty",()=>d.size===0),s.handle("Store_get",()=>d.store),s.handle("zip",async(i,r,a)=>{const o=new Xl;o.addLocalFolder(r),await o.writeZipPromise(a)}),s.handle("unzip",async(i,r,a)=>{await be.remove(a),await be.ensureDir(a),new Xl(r).extractAllTo(a,!0)}),s.handle("isSimpleFullScreen",()=>t.simpleFullScreen),this.#s?(s.handle("setSimpleFullScreen",(i,r)=>{this.#e=()=>{},t.setSimpleFullScreen(r),r||(t.setPosition(this.#c,this.#u),t.setContentSize(this.#i,this.#o)),this.#e=()=>this.#t()}),t.on("enter-full-screen",()=>{this.#e=()=>{},t.setContentSize(this.#n.width,this.#n.height),this.#e=()=>this.#t()}),t.on("leave-full-screen",()=>{this.#a(!1,this.#c,this.#u,this.#i,this.#o)})):s.handle("setSimpleFullScreen",(i,r)=>{t.setSimpleFullScreen(r),!r&&t.setContentSize(this.#i,this.#o)}),s.handle("window",(i,r,a,o,l,c)=>this.#a(r,a,o,l,c)),t.on("move",()=>this.#e()),t.on("resize",()=>this.#e()),this.#m()}static init(t){wt.#d=t,Ll.initRenderer()}static#d;#s;#h={getAppPath:Pe.app.getAppPath(),isPackaged:Pe.app.isPackaged,downloads:Pe.app.getPath("downloads"),userData:Pe.app.getPath("userData"),getVersion:"",env:{...process.env},platform:process.platform,arch:process.arch};#c=0;#u=0;#i=0;#o=0;#p(t,f){const{width:s,height:d}=t.window,{c:i,x:r,y:a,w:o}=f;this.#r=s/d;const l=o===s?d:o/this.#r;if(this.#s||this.bw.setAspectRatio(this.#r),this.#a(i,r,a,o,l),this.bw.show(),this.#e=()=>this.#t(),t.debug.devtool){this.#l=()=>{},this.openDevTools=()=>this.bw.webContents.openDevTools({mode:"detach"}),this.openDevTools();return}this.#l=()=>{this.bw.webContents.closeDevTools(),this.bw.setTitle("DevToolは禁止されています。許可する場合は【プロジェクト設定】の【devtool】をONに。"),this.sendShutdown()}}#r=0;#l=()=>this.bw.webContents.closeDevTools();#m(){const t=Pe.screen.getCursorScreenPoint(),f=Pe.screen.getDisplayNearestPoint(t);this.#n=f.workAreaSize}#n;#e=()=>{};#t(){if(this.#f)return;this.#e=()=>{};const[t,f]=this.bw.getPosition(),[s,d]=this.bw.getContentSize();this.#f=setTimeout(()=>{this.#f=void 0;const[i=0,r=0]=this.bw.getPosition(),[a=0,o=0]=this.bw.getContentSize();if(t!==i||f!==r||s!==a||d!==o){this.#t();return}this.#e=()=>this.#t();let l=a,c=o;this.#s&&(s===a?c=a/this.#r:l=o*this.#r),this.#a(!1,i,r,l,c)},1e3/60*10)}#f=void 0;#a(t,f,s,d,i){if(this.bw.simpleFullScreen)return;this.#e=()=>{};const r=this.#c=Math.round(t?(this.#n.width-d)*.5:f),a=this.#u=Math.round(t?(this.#n.height-i)*.5:s);this.bw.setPosition(r,a);const o=this.#i=Math.round(d),l=this.#o=Math.round(i);this.bw.setContentSize(o,l),t||this.#m(),this.sendSaveWinInf({x:r,y:a,w:o,h:l}),this.#e=()=>this.#t()}sendShutdown(){}sendSaveWinInf(t){}openDevTools=()=>{}}class kn extends wt{static initRenderer(t,f,s){let d,i=()=>{};try{wt.init(Pe.ipcMain),d=new Pe.BrowserWindow({show:!1,minWidth:300,minHeight:300,acceptFirstMouse:!0,maximizable:!1,webPreferences:{nodeIntegration:!1,contextIsolation:!0,preload:`${__dirname}/preload.js`}}),console.log=a=>d.webContents.send("log",a);const r=new kn(d,f);i=()=>r.openDevTools(),d.loadFile(t)}catch(r){throw console.error(`early err:${String(r)}`),i(),"initRenderer error"}return d}sendShutdown(){this.bw.webContents.send("shutdown")}sendSaveWinInf(t){this.bw.webContents.send("save_win_inf",t)}}module.exports=kn;exports.appMain=kn;
22
+ ${l}`,d=Object.getOwnPropertyDescriptor(Function.prototype,"toString"),i=Object.getOwnPropertyDescriptor(Function.prototype.toString,"name"),r=(o,l,c)=>{const g=c===""?"":`with ${c.trim()}() `,E=s.bind(null,g,l.toString());Object.defineProperty(E,"name",i),Object.defineProperty(o,"toString",{...d,value:E})};return Us=(o,l,{ignoreNonConfigurable:c=!1}={})=>{const{name:g}=o;for(const E of Reflect.ownKeys(l))e(o,l,E,c);return f(o,l),r(o,l,g),o},Us}var Vs,Fu;function Om(){if(Fu)return Vs;Fu=1;const e=Nm();return Vs=(t,f={})=>{if(typeof t!="function")throw new TypeError(`Expected the first argument to be a function, got \`${typeof t}\``);const{wait:s=0,before:d=!1,after:i=!0}=f;if(!d&&!i)throw new Error("Both `before` and `after` are false, function wouldn't be called.");let r,a;const o=function(...l){const c=this,g=()=>{r=void 0,i&&(a=t.apply(c,l))},E=d&&!r;return clearTimeout(r),r=setTimeout(g,s),E&&(a=t.apply(c,l)),a};return e(o,t),o.cancel=()=>{r&&(clearTimeout(r),r=void 0)},o},Vs}var hn={exports:{}},zs,Mu;function Cn(){if(Mu)return zs;Mu=1;const e="2.0.0",t=256,f=Number.MAX_SAFE_INTEGER||9007199254740991,s=16,d=t-6;return zs={MAX_LENGTH:t,MAX_SAFE_COMPONENT_LENGTH:s,MAX_SAFE_BUILD_LENGTH:d,MAX_SAFE_INTEGER:f,RELEASE_TYPES:["major","premajor","minor","preminor","patch","prepatch","prerelease"],SEMVER_SPEC_VERSION:e,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2},zs}var Gs,Uu;function Dn(){return Uu||(Uu=1,Gs=typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...t)=>console.error("SEMVER",...t):()=>{}),Gs}var Vu;function bt(){return Vu||(Vu=1,function(e,t){const{MAX_SAFE_COMPONENT_LENGTH:f,MAX_SAFE_BUILD_LENGTH:s,MAX_LENGTH:d}=Cn(),i=Dn();t=e.exports={};const r=t.re=[],a=t.safeRe=[],o=t.src=[],l=t.safeSrc=[],c=t.t={};let g=0;const E="[a-zA-Z0-9-]",_=[["\\s",1],["\\d",d],[E,s]],w=u=>{for(const[h,n]of _)u=u.split(`${h}*`).join(`${h}{0,${n}}`).split(`${h}+`).join(`${h}{1,${n}}`);return u},R=(u,h,n)=>{const m=w(h),v=g++;i(u,v,h),c[u]=v,o[v]=h,l[v]=m,r[v]=new RegExp(h,n?"g":void 0),a[v]=new RegExp(m,n?"g":void 0)};R("NUMERICIDENTIFIER","0|[1-9]\\d*"),R("NUMERICIDENTIFIERLOOSE","\\d+"),R("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${E}*`),R("MAINVERSION",`(${o[c.NUMERICIDENTIFIER]})\\.(${o[c.NUMERICIDENTIFIER]})\\.(${o[c.NUMERICIDENTIFIER]})`),R("MAINVERSIONLOOSE",`(${o[c.NUMERICIDENTIFIERLOOSE]})\\.(${o[c.NUMERICIDENTIFIERLOOSE]})\\.(${o[c.NUMERICIDENTIFIERLOOSE]})`),R("PRERELEASEIDENTIFIER",`(?:${o[c.NONNUMERICIDENTIFIER]}|${o[c.NUMERICIDENTIFIER]})`),R("PRERELEASEIDENTIFIERLOOSE",`(?:${o[c.NONNUMERICIDENTIFIER]}|${o[c.NUMERICIDENTIFIERLOOSE]})`),R("PRERELEASE",`(?:-(${o[c.PRERELEASEIDENTIFIER]}(?:\\.${o[c.PRERELEASEIDENTIFIER]})*))`),R("PRERELEASELOOSE",`(?:-?(${o[c.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${o[c.PRERELEASEIDENTIFIERLOOSE]})*))`),R("BUILDIDENTIFIER",`${E}+`),R("BUILD",`(?:\\+(${o[c.BUILDIDENTIFIER]}(?:\\.${o[c.BUILDIDENTIFIER]})*))`),R("FULLPLAIN",`v?${o[c.MAINVERSION]}${o[c.PRERELEASE]}?${o[c.BUILD]}?`),R("FULL",`^${o[c.FULLPLAIN]}$`),R("LOOSEPLAIN",`[v=\\s]*${o[c.MAINVERSIONLOOSE]}${o[c.PRERELEASELOOSE]}?${o[c.BUILD]}?`),R("LOOSE",`^${o[c.LOOSEPLAIN]}$`),R("GTLT","((?:<|>)?=?)"),R("XRANGEIDENTIFIERLOOSE",`${o[c.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),R("XRANGEIDENTIFIER",`${o[c.NUMERICIDENTIFIER]}|x|X|\\*`),R("XRANGEPLAIN",`[v=\\s]*(${o[c.XRANGEIDENTIFIER]})(?:\\.(${o[c.XRANGEIDENTIFIER]})(?:\\.(${o[c.XRANGEIDENTIFIER]})(?:${o[c.PRERELEASE]})?${o[c.BUILD]}?)?)?`),R("XRANGEPLAINLOOSE",`[v=\\s]*(${o[c.XRANGEIDENTIFIERLOOSE]})(?:\\.(${o[c.XRANGEIDENTIFIERLOOSE]})(?:\\.(${o[c.XRANGEIDENTIFIERLOOSE]})(?:${o[c.PRERELEASELOOSE]})?${o[c.BUILD]}?)?)?`),R("XRANGE",`^${o[c.GTLT]}\\s*${o[c.XRANGEPLAIN]}$`),R("XRANGELOOSE",`^${o[c.GTLT]}\\s*${o[c.XRANGEPLAINLOOSE]}$`),R("COERCEPLAIN",`(^|[^\\d])(\\d{1,${f}})(?:\\.(\\d{1,${f}}))?(?:\\.(\\d{1,${f}}))?`),R("COERCE",`${o[c.COERCEPLAIN]}(?:$|[^\\d])`),R("COERCEFULL",o[c.COERCEPLAIN]+`(?:${o[c.PRERELEASE]})?(?:${o[c.BUILD]})?(?:$|[^\\d])`),R("COERCERTL",o[c.COERCE],!0),R("COERCERTLFULL",o[c.COERCEFULL],!0),R("LONETILDE","(?:~>?)"),R("TILDETRIM",`(\\s*)${o[c.LONETILDE]}\\s+`,!0),t.tildeTrimReplace="$1~",R("TILDE",`^${o[c.LONETILDE]}${o[c.XRANGEPLAIN]}$`),R("TILDELOOSE",`^${o[c.LONETILDE]}${o[c.XRANGEPLAINLOOSE]}$`),R("LONECARET","(?:\\^)"),R("CARETTRIM",`(\\s*)${o[c.LONECARET]}\\s+`,!0),t.caretTrimReplace="$1^",R("CARET",`^${o[c.LONECARET]}${o[c.XRANGEPLAIN]}$`),R("CARETLOOSE",`^${o[c.LONECARET]}${o[c.XRANGEPLAINLOOSE]}$`),R("COMPARATORLOOSE",`^${o[c.GTLT]}\\s*(${o[c.LOOSEPLAIN]})$|^$`),R("COMPARATOR",`^${o[c.GTLT]}\\s*(${o[c.FULLPLAIN]})$|^$`),R("COMPARATORTRIM",`(\\s*)${o[c.GTLT]}\\s*(${o[c.LOOSEPLAIN]}|${o[c.XRANGEPLAIN]})`,!0),t.comparatorTrimReplace="$1$2$3",R("HYPHENRANGE",`^\\s*(${o[c.XRANGEPLAIN]})\\s+-\\s+(${o[c.XRANGEPLAIN]})\\s*$`),R("HYPHENRANGELOOSE",`^\\s*(${o[c.XRANGEPLAINLOOSE]})\\s+-\\s+(${o[c.XRANGEPLAINLOOSE]})\\s*$`),R("STAR","(<|>)?=?\\s*\\*"),R("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$"),R("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")}(hn,hn.exports)),hn.exports}var Ks,zu;function ro(){if(zu)return Ks;zu=1;const e=Object.freeze({loose:!0}),t=Object.freeze({});return Ks=s=>s?typeof s!="object"?e:s:t,Ks}var Hs,Gu;function yf(){if(Gu)return Hs;Gu=1;const e=/^[0-9]+$/,t=(s,d)=>{if(typeof s=="number"&&typeof d=="number")return s===d?0:s<d?-1:1;const i=e.test(s),r=e.test(d);return i&&r&&(s=+s,d=+d),s===d?0:i&&!r?-1:r&&!i?1:s<d?-1:1};return Hs={compareIdentifiers:t,rcompareIdentifiers:(s,d)=>t(d,s)},Hs}var xs,Ku;function $e(){if(Ku)return xs;Ku=1;const e=Dn(),{MAX_LENGTH:t,MAX_SAFE_INTEGER:f}=Cn(),{safeRe:s,t:d}=bt(),i=ro(),{compareIdentifiers:r}=yf();class a{constructor(l,c){if(c=i(c),l instanceof a){if(l.loose===!!c.loose&&l.includePrerelease===!!c.includePrerelease)return l;l=l.version}else if(typeof l!="string")throw new TypeError(`Invalid version. Must be a string. Got type "${typeof l}".`);if(l.length>t)throw new TypeError(`version is longer than ${t} characters`);e("SemVer",l,c),this.options=c,this.loose=!!c.loose,this.includePrerelease=!!c.includePrerelease;const g=l.trim().match(c.loose?s[d.LOOSE]:s[d.FULL]);if(!g)throw new TypeError(`Invalid Version: ${l}`);if(this.raw=l,this.major=+g[1],this.minor=+g[2],this.patch=+g[3],this.major>f||this.major<0)throw new TypeError("Invalid major version");if(this.minor>f||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>f||this.patch<0)throw new TypeError("Invalid patch version");g[4]?this.prerelease=g[4].split(".").map(E=>{if(/^[0-9]+$/.test(E)){const _=+E;if(_>=0&&_<f)return _}return E}):this.prerelease=[],this.build=g[5]?g[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(l){if(e("SemVer.compare",this.version,this.options,l),!(l instanceof a)){if(typeof l=="string"&&l===this.version)return 0;l=new a(l,this.options)}return l.version===this.version?0:this.compareMain(l)||this.comparePre(l)}compareMain(l){return l instanceof a||(l=new a(l,this.options)),this.major<l.major?-1:this.major>l.major?1:this.minor<l.minor?-1:this.minor>l.minor?1:this.patch<l.patch?-1:this.patch>l.patch?1:0}comparePre(l){if(l instanceof a||(l=new a(l,this.options)),this.prerelease.length&&!l.prerelease.length)return-1;if(!this.prerelease.length&&l.prerelease.length)return 1;if(!this.prerelease.length&&!l.prerelease.length)return 0;let c=0;do{const g=this.prerelease[c],E=l.prerelease[c];if(e("prerelease compare",c,g,E),g===void 0&&E===void 0)return 0;if(E===void 0)return 1;if(g===void 0)return-1;if(g===E)continue;return r(g,E)}while(++c)}compareBuild(l){l instanceof a||(l=new a(l,this.options));let c=0;do{const g=this.build[c],E=l.build[c];if(e("build compare",c,g,E),g===void 0&&E===void 0)return 0;if(E===void 0)return 1;if(g===void 0)return-1;if(g===E)continue;return r(g,E)}while(++c)}inc(l,c,g){if(l.startsWith("pre")){if(!c&&g===!1)throw new Error("invalid increment argument: identifier is empty");if(c){const E=`-${c}`.match(this.options.loose?s[d.PRERELEASELOOSE]:s[d.PRERELEASE]);if(!E||E[1]!==c)throw new Error(`invalid identifier: ${c}`)}}switch(l){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",c,g);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",c,g);break;case"prepatch":this.prerelease.length=0,this.inc("patch",c,g),this.inc("pre",c,g);break;case"prerelease":this.prerelease.length===0&&this.inc("patch",c,g),this.inc("pre",c,g);break;case"release":if(this.prerelease.length===0)throw new Error(`version ${this.raw} is not a prerelease`);this.prerelease.length=0;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 E=Number(g)?1:0;if(this.prerelease.length===0)this.prerelease=[E];else{let _=this.prerelease.length;for(;--_>=0;)typeof this.prerelease[_]=="number"&&(this.prerelease[_]++,_=-2);if(_===-1){if(c===this.prerelease.join(".")&&g===!1)throw new Error("invalid increment argument: identifier already exists");this.prerelease.push(E)}}if(c){let _=[c,E];g===!1&&(_=[c]),r(this.prerelease[0],c)===0?isNaN(this.prerelease[1])&&(this.prerelease=_):this.prerelease=_}break}default:throw new Error(`invalid increment argument: ${l}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(".")}`),this}}return xs=a,xs}var Bs,Hu;function ft(){if(Hu)return Bs;Hu=1;const e=$e();return Bs=(f,s,d=!1)=>{if(f instanceof e)return f;try{return new e(f,s)}catch(i){if(!d)return null;throw i}},Bs}var Ws,xu;function Im(){if(xu)return Ws;xu=1;const e=ft();return Ws=(f,s)=>{const d=e(f,s);return d?d.version:null},Ws}var Js,Bu;function Tm(){if(Bu)return Js;Bu=1;const e=ft();return Js=(f,s)=>{const d=e(f.trim().replace(/^[=v]+/,""),s);return d?d.version:null},Js}var Zs,Wu;function Cm(){if(Wu)return Zs;Wu=1;const e=$e();return Zs=(f,s,d,i,r)=>{typeof d=="string"&&(r=i,i=d,d=void 0);try{return new e(f instanceof e?f.version:f,d).inc(s,i,r).version}catch{return null}},Zs}var Xs,Ju;function Dm(){if(Ju)return Xs;Ju=1;const e=ft();return Xs=(f,s)=>{const d=e(f,null,!0),i=e(s,null,!0),r=d.compare(i);if(r===0)return null;const a=r>0,o=a?d:i,l=a?i:d,c=!!o.prerelease.length;if(!!l.prerelease.length&&!c){if(!l.patch&&!l.minor)return"major";if(l.compareMain(o)===0)return l.minor&&!l.patch?"minor":"patch"}const E=c?"pre":"";return d.major!==i.major?E+"major":d.minor!==i.minor?E+"minor":d.patch!==i.patch?E+"patch":"prerelease"},Xs}var Ys,Zu;function Am(){if(Zu)return Ys;Zu=1;const e=$e();return Ys=(f,s)=>new e(f,s).major,Ys}var Qs,Xu;function Lm(){if(Xu)return Qs;Xu=1;const e=$e();return Qs=(f,s)=>new e(f,s).minor,Qs}var ei,Yu;function qm(){if(Yu)return ei;Yu=1;const e=$e();return ei=(f,s)=>new e(f,s).patch,ei}var ti,Qu;function km(){if(Qu)return ti;Qu=1;const e=ft();return ti=(f,s)=>{const d=e(f,s);return d&&d.prerelease.length?d.prerelease:null},ti}var ri,el;function Ae(){if(el)return ri;el=1;const e=$e();return ri=(f,s,d)=>new e(f,d).compare(new e(s,d)),ri}var ni,tl;function jm(){if(tl)return ni;tl=1;const e=Ae();return ni=(f,s,d)=>e(s,f,d),ni}var si,rl;function Fm(){if(rl)return si;rl=1;const e=Ae();return si=(f,s)=>e(f,s,!0),si}var ii,nl;function no(){if(nl)return ii;nl=1;const e=$e();return ii=(f,s,d)=>{const i=new e(f,d),r=new e(s,d);return i.compare(r)||i.compareBuild(r)},ii}var oi,sl;function Mm(){if(sl)return oi;sl=1;const e=no();return oi=(f,s)=>f.sort((d,i)=>e(d,i,s)),oi}var ai,il;function Um(){if(il)return ai;il=1;const e=no();return ai=(f,s)=>f.sort((d,i)=>e(i,d,s)),ai}var ci,ol;function An(){if(ol)return ci;ol=1;const e=Ae();return ci=(f,s,d)=>e(f,s,d)>0,ci}var ui,al;function so(){if(al)return ui;al=1;const e=Ae();return ui=(f,s,d)=>e(f,s,d)<0,ui}var li,cl;function vf(){if(cl)return li;cl=1;const e=Ae();return li=(f,s,d)=>e(f,s,d)===0,li}var fi,ul;function _f(){if(ul)return fi;ul=1;const e=Ae();return fi=(f,s,d)=>e(f,s,d)!==0,fi}var di,ll;function io(){if(ll)return di;ll=1;const e=Ae();return di=(f,s,d)=>e(f,s,d)>=0,di}var hi,fl;function oo(){if(fl)return hi;fl=1;const e=Ae();return hi=(f,s,d)=>e(f,s,d)<=0,hi}var mi,dl;function gf(){if(dl)return mi;dl=1;const e=vf(),t=_f(),f=An(),s=io(),d=so(),i=oo();return mi=(a,o,l,c)=>{switch(o){case"===":return typeof a=="object"&&(a=a.version),typeof l=="object"&&(l=l.version),a===l;case"!==":return typeof a=="object"&&(a=a.version),typeof l=="object"&&(l=l.version),a!==l;case"":case"=":case"==":return e(a,l,c);case"!=":return t(a,l,c);case">":return f(a,l,c);case">=":return s(a,l,c);case"<":return d(a,l,c);case"<=":return i(a,l,c);default:throw new TypeError(`Invalid operator: ${o}`)}},mi}var pi,hl;function Vm(){if(hl)return pi;hl=1;const e=$e(),t=ft(),{safeRe:f,t:s}=bt();return pi=(i,r)=>{if(i instanceof e)return i;if(typeof i=="number"&&(i=String(i)),typeof i!="string")return null;r=r||{};let a=null;if(!r.rtl)a=i.match(r.includePrerelease?f[s.COERCEFULL]:f[s.COERCE]);else{const _=r.includePrerelease?f[s.COERCERTLFULL]:f[s.COERCERTL];let w;for(;(w=_.exec(i))&&(!a||a.index+a[0].length!==i.length);)(!a||w.index+w[0].length!==a.index+a[0].length)&&(a=w),_.lastIndex=w.index+w[1].length+w[2].length;_.lastIndex=-1}if(a===null)return null;const o=a[2],l=a[3]||"0",c=a[4]||"0",g=r.includePrerelease&&a[5]?`-${a[5]}`:"",E=r.includePrerelease&&a[6]?`+${a[6]}`:"";return t(`${o}.${l}.${c}${g}${E}`,r)},pi}var yi,ml;function zm(){if(ml)return yi;ml=1;class e{constructor(){this.max=1e3,this.map=new Map}get(f){const s=this.map.get(f);if(s!==void 0)return this.map.delete(f),this.map.set(f,s),s}delete(f){return this.map.delete(f)}set(f,s){if(!this.delete(f)&&s!==void 0){if(this.map.size>=this.max){const i=this.map.keys().next().value;this.delete(i)}this.map.set(f,s)}return this}}return yi=e,yi}var vi,pl;function Le(){if(pl)return vi;pl=1;const e=/\s+/g;class t{constructor(z,J){if(J=d(J),z instanceof t)return z.loose===!!J.loose&&z.includePrerelease===!!J.includePrerelease?z:new t(z.raw,J);if(z instanceof i)return this.raw=z.value,this.set=[[z]],this.formatted=void 0,this;if(this.options=J,this.loose=!!J.loose,this.includePrerelease=!!J.includePrerelease,this.raw=z.trim().replace(e," "),this.set=this.raw.split("||").map(W=>this.parseRange(W.trim())).filter(W=>W.length),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${this.raw}`);if(this.set.length>1){const W=this.set[0];if(this.set=this.set.filter(j=>!R(j[0])),this.set.length===0)this.set=[W];else if(this.set.length>1){for(const j of this.set)if(j.length===1&&u(j[0])){this.set=[j];break}}}this.formatted=void 0}get range(){if(this.formatted===void 0){this.formatted="";for(let z=0;z<this.set.length;z++){z>0&&(this.formatted+="||");const J=this.set[z];for(let W=0;W<J.length;W++)W>0&&(this.formatted+=" "),this.formatted+=J[W].toString().trim()}}return this.formatted}format(){return this.range}toString(){return this.range}parseRange(z){const W=((this.options.includePrerelease&&_)|(this.options.loose&&w))+":"+z,j=s.get(W);if(j)return j;const G=this.options.loose,D=G?o[l.HYPHENRANGELOOSE]:o[l.HYPHENRANGE];z=z.replace(D,H(this.options.includePrerelease)),r("hyphen replace",z),z=z.replace(o[l.COMPARATORTRIM],c),r("comparator trim",z),z=z.replace(o[l.TILDETRIM],g),r("tilde trim",z),z=z.replace(o[l.CARETTRIM],E),r("caret trim",z);let O=z.split(" ").map(P=>n(P,this.options)).join(" ").split(/\s+/).map(P=>F(P,this.options));G&&(O=O.filter(P=>(r("loose invalid filter",P,this.options),!!P.match(o[l.COMPARATORLOOSE])))),r("range list",O);const q=new Map,T=O.map(P=>new i(P,this.options));for(const P of T){if(R(P))return[P];q.set(P.value,P)}q.size>1&&q.has("")&&q.delete("");const S=[...q.values()];return s.set(W,S),S}intersects(z,J){if(!(z instanceof t))throw new TypeError("a Range is required");return this.set.some(W=>h(W,J)&&z.set.some(j=>h(j,J)&&W.every(G=>j.every(D=>G.intersects(D,J)))))}test(z){if(!z)return!1;if(typeof z=="string")try{z=new a(z,this.options)}catch{return!1}for(let J=0;J<this.set.length;J++)if(M(this.set[J],z,this.options))return!0;return!1}}vi=t;const f=zm(),s=new f,d=ro(),i=Ln(),r=Dn(),a=$e(),{safeRe:o,t:l,comparatorTrimReplace:c,tildeTrimReplace:g,caretTrimReplace:E}=bt(),{FLAG_INCLUDE_PRERELEASE:_,FLAG_LOOSE:w}=Cn(),R=U=>U.value==="<0.0.0-0",u=U=>U.value==="",h=(U,z)=>{let J=!0;const W=U.slice();let j=W.pop();for(;J&&W.length;)J=W.every(G=>j.intersects(G,z)),j=W.pop();return J},n=(U,z)=>(U=U.replace(o[l.BUILD],""),r("comp",U,z),U=y(U,z),r("caret",U),U=v(U,z),r("tildes",U),U=b(U,z),r("xrange",U),U=L(U,z),r("stars",U),U),m=U=>!U||U.toLowerCase()==="x"||U==="*",v=(U,z)=>U.trim().split(/\s+/).map(J=>p(J,z)).join(" "),p=(U,z)=>{const J=z.loose?o[l.TILDELOOSE]:o[l.TILDE];return U.replace(J,(W,j,G,D,O)=>{r("tilde",U,W,j,G,D,O);let q;return m(j)?q="":m(G)?q=`>=${j}.0.0 <${+j+1}.0.0-0`:m(D)?q=`>=${j}.${G}.0 <${j}.${+G+1}.0-0`:O?(r("replaceTilde pr",O),q=`>=${j}.${G}.${D}-${O} <${j}.${+G+1}.0-0`):q=`>=${j}.${G}.${D} <${j}.${+G+1}.0-0`,r("tilde return",q),q})},y=(U,z)=>U.trim().split(/\s+/).map(J=>$(J,z)).join(" "),$=(U,z)=>{r("caret",U,z);const J=z.loose?o[l.CARETLOOSE]:o[l.CARET],W=z.includePrerelease?"-0":"";return U.replace(J,(j,G,D,O,q)=>{r("caret",U,j,G,D,O,q);let T;return m(G)?T="":m(D)?T=`>=${G}.0.0${W} <${+G+1}.0.0-0`:m(O)?G==="0"?T=`>=${G}.${D}.0${W} <${G}.${+D+1}.0-0`:T=`>=${G}.${D}.0${W} <${+G+1}.0.0-0`:q?(r("replaceCaret pr",q),G==="0"?D==="0"?T=`>=${G}.${D}.${O}-${q} <${G}.${D}.${+O+1}-0`:T=`>=${G}.${D}.${O}-${q} <${G}.${+D+1}.0-0`:T=`>=${G}.${D}.${O}-${q} <${+G+1}.0.0-0`):(r("no pr"),G==="0"?D==="0"?T=`>=${G}.${D}.${O}${W} <${G}.${D}.${+O+1}-0`:T=`>=${G}.${D}.${O}${W} <${G}.${+D+1}.0-0`:T=`>=${G}.${D}.${O} <${+G+1}.0.0-0`),r("caret return",T),T})},b=(U,z)=>(r("replaceXRanges",U,z),U.split(/\s+/).map(J=>N(J,z)).join(" ")),N=(U,z)=>{U=U.trim();const J=z.loose?o[l.XRANGELOOSE]:o[l.XRANGE];return U.replace(J,(W,j,G,D,O,q)=>{r("xRange",U,W,j,G,D,O,q);const T=m(G),S=T||m(D),P=S||m(O),A=P;return j==="="&&A&&(j=""),q=z.includePrerelease?"-0":"",T?j===">"||j==="<"?W="<0.0.0-0":W="*":j&&A?(S&&(D=0),O=0,j===">"?(j=">=",S?(G=+G+1,D=0,O=0):(D=+D+1,O=0)):j==="<="&&(j="<",S?G=+G+1:D=+D+1),j==="<"&&(q="-0"),W=`${j+G}.${D}.${O}${q}`):S?W=`>=${G}.0.0${q} <${+G+1}.0.0-0`:P&&(W=`>=${G}.${D}.0${q} <${G}.${+D+1}.0-0`),r("xRange return",W),W})},L=(U,z)=>(r("replaceStars",U,z),U.trim().replace(o[l.STAR],"")),F=(U,z)=>(r("replaceGTE0",U,z),U.trim().replace(o[z.includePrerelease?l.GTE0PRE:l.GTE0],"")),H=U=>(z,J,W,j,G,D,O,q,T,S,P,A)=>(m(W)?J="":m(j)?J=`>=${W}.0.0${U?"-0":""}`:m(G)?J=`>=${W}.${j}.0${U?"-0":""}`:D?J=`>=${J}`:J=`>=${J}${U?"-0":""}`,m(T)?q="":m(S)?q=`<${+T+1}.0.0-0`:m(P)?q=`<${T}.${+S+1}.0-0`:A?q=`<=${T}.${S}.${P}-${A}`:U?q=`<${T}.${S}.${+P+1}-0`:q=`<=${q}`,`${J} ${q}`.trim()),M=(U,z,J)=>{for(let W=0;W<U.length;W++)if(!U[W].test(z))return!1;if(z.prerelease.length&&!J.includePrerelease){for(let W=0;W<U.length;W++)if(r(U[W].semver),U[W].semver!==i.ANY&&U[W].semver.prerelease.length>0){const j=U[W].semver;if(j.major===z.major&&j.minor===z.minor&&j.patch===z.patch)return!0}return!1}return!0};return vi}var _i,yl;function Ln(){if(yl)return _i;yl=1;const e=Symbol("SemVer ANY");class t{static get ANY(){return e}constructor(c,g){if(g=f(g),c instanceof t){if(c.loose===!!g.loose)return c;c=c.value}c=c.trim().split(/\s+/).join(" "),r("comparator",c,g),this.options=g,this.loose=!!g.loose,this.parse(c),this.semver===e?this.value="":this.value=this.operator+this.semver.version,r("comp",this)}parse(c){const g=this.options.loose?s[d.COMPARATORLOOSE]:s[d.COMPARATOR],E=c.match(g);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(r("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 i(c,this.operator,this.semver,this.options)}intersects(c,g){if(!(c instanceof t))throw new TypeError("a Comparator is required");return this.operator===""?this.value===""?!0:new o(c.value,g).test(this.value):c.operator===""?c.value===""?!0:new o(this.value,g).test(c.semver):(g=f(g),g.includePrerelease&&(this.value==="<0.0.0-0"||c.value==="<0.0.0-0")||!g.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("=")||i(this.semver,"<",c.semver,g)&&this.operator.startsWith(">")&&c.operator.startsWith("<")||i(this.semver,">",c.semver,g)&&this.operator.startsWith("<")&&c.operator.startsWith(">")))}}_i=t;const f=ro(),{safeRe:s,t:d}=bt(),i=gf(),r=Dn(),a=$e(),o=Le();return _i}var gi,vl;function qn(){if(vl)return gi;vl=1;const e=Le();return gi=(f,s,d)=>{try{s=new e(s,d)}catch{return!1}return s.test(f)},gi}var $i,_l;function Gm(){if(_l)return $i;_l=1;const e=Le();return $i=(f,s)=>new e(f,s).set.map(d=>d.map(i=>i.value).join(" ").trim().split(" ")),$i}var Ei,gl;function Km(){if(gl)return Ei;gl=1;const e=$e(),t=Le();return Ei=(s,d,i)=>{let r=null,a=null,o=null;try{o=new t(d,i)}catch{return null}return s.forEach(l=>{o.test(l)&&(!r||a.compare(l)===-1)&&(r=l,a=new e(r,i))}),r},Ei}var wi,$l;function Hm(){if($l)return wi;$l=1;const e=$e(),t=Le();return wi=(s,d,i)=>{let r=null,a=null,o=null;try{o=new t(d,i)}catch{return null}return s.forEach(l=>{o.test(l)&&(!r||a.compare(l)===1)&&(r=l,a=new e(r,i))}),r},wi}var Si,El;function xm(){if(El)return Si;El=1;const e=$e(),t=Le(),f=An();return Si=(d,i)=>{d=new t(d,i);let r=new e("0.0.0");if(d.test(r)||(r=new e("0.0.0-0"),d.test(r)))return r;r=null;for(let a=0;a<d.set.length;++a){const o=d.set[a];let l=null;o.forEach(c=>{const g=new e(c.semver.version);switch(c.operator){case">":g.prerelease.length===0?g.patch++:g.prerelease.push(0),g.raw=g.format();case"":case">=":(!l||f(g,l))&&(l=g);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${c.operator}`)}}),l&&(!r||f(r,l))&&(r=l)}return r&&d.test(r)?r:null},Si}var Ri,wl;function Bm(){if(wl)return Ri;wl=1;const e=Le();return Ri=(f,s)=>{try{return new e(f,s).range||"*"}catch{return null}},Ri}var bi,Sl;function ao(){if(Sl)return bi;Sl=1;const e=$e(),t=Ln(),{ANY:f}=t,s=Le(),d=qn(),i=An(),r=so(),a=oo(),o=io();return bi=(c,g,E,_)=>{c=new e(c,_),g=new s(g,_);let w,R,u,h,n;switch(E){case">":w=i,R=a,u=r,h=">",n=">=";break;case"<":w=r,R=o,u=i,h="<",n="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(d(c,g,_))return!1;for(let m=0;m<g.set.length;++m){const v=g.set[m];let p=null,y=null;if(v.forEach($=>{$.semver===f&&($=new t(">=0.0.0")),p=p||$,y=y||$,w($.semver,p.semver,_)?p=$:u($.semver,y.semver,_)&&(y=$)}),p.operator===h||p.operator===n||(!y.operator||y.operator===h)&&R(c,y.semver))return!1;if(y.operator===n&&u(c,y.semver))return!1}return!0},bi}var Pi,Rl;function Wm(){if(Rl)return Pi;Rl=1;const e=ao();return Pi=(f,s,d)=>e(f,s,">",d),Pi}var Ni,bl;function Jm(){if(bl)return Ni;bl=1;const e=ao();return Ni=(f,s,d)=>e(f,s,"<",d),Ni}var Oi,Pl;function Zm(){if(Pl)return Oi;Pl=1;const e=Le();return Oi=(f,s,d)=>(f=new e(f,d),s=new e(s,d),f.intersects(s,d)),Oi}var Ii,Nl;function Xm(){if(Nl)return Ii;Nl=1;const e=qn(),t=Ae();return Ii=(f,s,d)=>{const i=[];let r=null,a=null;const o=f.sort((E,_)=>t(E,_,d));for(const E of o)e(E,s,d)?(a=E,r||(r=E)):(a&&i.push([r,a]),a=null,r=null);r&&i.push([r,null]);const l=[];for(const[E,_]of i)E===_?l.push(E):!_&&E===o[0]?l.push("*"):_?E===o[0]?l.push(`<=${_}`):l.push(`${E} - ${_}`):l.push(`>=${E}`);const c=l.join(" || "),g=typeof s.raw=="string"?s.raw:String(s);return c.length<g.length?c:s},Ii}var Ti,Ol;function Ym(){if(Ol)return Ti;Ol=1;const e=Le(),t=Ln(),{ANY:f}=t,s=qn(),d=Ae(),i=(g,E,_={})=>{if(g===E)return!0;g=new e(g,_),E=new e(E,_);let w=!1;e:for(const R of g.set){for(const u of E.set){const h=o(R,u,_);if(w=w||h!==null,h)continue e}if(w)return!1}return!0},r=[new t(">=0.0.0-0")],a=[new t(">=0.0.0")],o=(g,E,_)=>{if(g===E)return!0;if(g.length===1&&g[0].semver===f){if(E.length===1&&E[0].semver===f)return!0;_.includePrerelease?g=r:g=a}if(E.length===1&&E[0].semver===f){if(_.includePrerelease)return!0;E=a}const w=new Set;let R,u;for(const b of g)b.operator===">"||b.operator===">="?R=l(R,b,_):b.operator==="<"||b.operator==="<="?u=c(u,b,_):w.add(b.semver);if(w.size>1)return null;let h;if(R&&u){if(h=d(R.semver,u.semver,_),h>0)return null;if(h===0&&(R.operator!==">="||u.operator!=="<="))return null}for(const b of w){if(R&&!s(b,String(R),_)||u&&!s(b,String(u),_))return null;for(const N of E)if(!s(b,String(N),_))return!1;return!0}let n,m,v,p,y=u&&!_.includePrerelease&&u.semver.prerelease.length?u.semver:!1,$=R&&!_.includePrerelease&&R.semver.prerelease.length?R.semver:!1;y&&y.prerelease.length===1&&u.operator==="<"&&y.prerelease[0]===0&&(y=!1);for(const b of E){if(p=p||b.operator===">"||b.operator===">=",v=v||b.operator==="<"||b.operator==="<=",R){if($&&b.semver.prerelease&&b.semver.prerelease.length&&b.semver.major===$.major&&b.semver.minor===$.minor&&b.semver.patch===$.patch&&($=!1),b.operator===">"||b.operator===">="){if(n=l(R,b,_),n===b&&n!==R)return!1}else if(R.operator===">="&&!s(R.semver,String(b),_))return!1}if(u){if(y&&b.semver.prerelease&&b.semver.prerelease.length&&b.semver.major===y.major&&b.semver.minor===y.minor&&b.semver.patch===y.patch&&(y=!1),b.operator==="<"||b.operator==="<="){if(m=c(u,b,_),m===b&&m!==u)return!1}else if(u.operator==="<="&&!s(u.semver,String(b),_))return!1}if(!b.operator&&(u||R)&&h!==0)return!1}return!(R&&v&&!u&&h!==0||u&&p&&!R&&h!==0||$||y)},l=(g,E,_)=>{if(!g)return E;const w=d(g.semver,E.semver,_);return w>0?g:w<0||E.operator===">"&&g.operator===">="?E:g},c=(g,E,_)=>{if(!g)return E;const w=d(g.semver,E.semver,_);return w<0?g:w>0||E.operator==="<"&&g.operator==="<="?E:g};return Ti=i,Ti}var Ci,Il;function Qm(){if(Il)return Ci;Il=1;const e=bt(),t=Cn(),f=$e(),s=yf(),d=ft(),i=Im(),r=Tm(),a=Cm(),o=Dm(),l=Am(),c=Lm(),g=qm(),E=km(),_=Ae(),w=jm(),R=Fm(),u=no(),h=Mm(),n=Um(),m=An(),v=so(),p=vf(),y=_f(),$=io(),b=oo(),N=gf(),L=Vm(),F=Ln(),H=Le(),M=qn(),U=Gm(),z=Km(),J=Hm(),W=xm(),j=Bm(),G=ao(),D=Wm(),O=Jm(),q=Zm(),T=Xm(),S=Ym();return Ci={parse:d,valid:i,clean:r,inc:a,diff:o,major:l,minor:c,patch:g,prerelease:E,compare:_,rcompare:w,compareLoose:R,compareBuild:u,sort:h,rsort:n,gt:m,lt:v,eq:p,neq:y,gte:$,lte:b,cmp:N,coerce:L,Comparator:F,Range:H,satisfies:M,toComparators:U,maxSatisfying:z,minSatisfying:J,minVersion:W,validRange:j,outside:G,gtr:D,ltr:O,intersects:q,simplifyRange:T,subset:S,SemVer:f,re:e.re,src:e.src,tokens:e.t,SEMVER_SPEC_VERSION:t.SEMVER_SPEC_VERSION,RELEASE_TYPES:t.RELEASE_TYPES,compareIdentifiers:s.compareIdentifiers,rcompareIdentifiers:s.rcompareIdentifiers},Ci}var gt={exports:{}},mn={exports:{}},Tl;function ep(){if(Tl)return mn.exports;Tl=1;const e=(t,f)=>{for(const s of Reflect.ownKeys(f))Object.defineProperty(t,s,Object.getOwnPropertyDescriptor(f,s));return t};return mn.exports=e,mn.exports.default=e,mn.exports}var Cl;function tp(){if(Cl)return gt.exports;Cl=1;const e=ep(),t=new WeakMap,f=(s,d={})=>{if(typeof s!="function")throw new TypeError("Expected a function");let i,r=0;const a=s.displayName||s.name||"<anonymous>",o=function(...l){if(t.set(o,++r),r===1)i=s.apply(this,l),s=null;else if(d.throw===!0)throw new Error(`Function \`${a}\` can only be called once`);return i};return e(o,s),t.set(o,r),o};return gt.exports=f,gt.exports.default=f,gt.exports.callCount=s=>{if(!t.has(s))throw new Error(`The given function \`${s.name}\` is not wrapped by the \`onetime\` package`);return t.get(s)},gt.exports}var pn=Et.exports,Dl;function rp(){return Dl||(Dl=1,function(e,t){var f=pn&&pn.__classPrivateFieldSet||function(W,j,G,D,O){if(D==="m")throw new TypeError("Private method is not writable");if(D==="a"&&!O)throw new TypeError("Private accessor was defined without a setter");if(typeof j=="function"?W!==j||!O:!j.has(W))throw new TypeError("Cannot write private member to an object whose class did not declare it");return D==="a"?O.call(W,G):O?O.value=G:j.set(W,G),G},s=pn&&pn.__classPrivateFieldGet||function(W,j,G,D){if(G==="a"&&!D)throw new TypeError("Private accessor was defined without a getter");if(typeof j=="function"?W!==j||!D:!j.has(W))throw new TypeError("Cannot read private member from an object whose class did not declare it");return G==="m"?D:G==="a"?D.call(W):D?D.value:j.get(W)},d,i,r,a,o,l;Object.defineProperty(t,"__esModule",{value:!0});const c=xi,g=ut,E=me,_=Ql,w=Yl,R=bf,u=Yf(),h=id(),n=od(),m=md(),v=$h(),p=Pm(),y=Om(),$=Qm(),b=tp(),N="aes-256-cbc",L=()=>Object.create(null),F=W=>W!=null;let H="";try{delete require.cache[__filename],H=E.dirname((i=(d=e.parent)===null||d===void 0?void 0:d.filename)!==null&&i!==void 0?i:".")}catch{}const M=(W,j)=>{const G=new Set(["undefined","symbol","function"]),D=typeof j;if(G.has(D))throw new TypeError(`Setting a value of type \`${D}\` for key \`${W}\` is not allowed as it's not supported by JSON`)},U="__internal__",z=`${U}.migrations.version`;class J{constructor(j={}){var G;r.set(this,void 0),a.set(this,void 0),o.set(this,void 0),l.set(this,{}),this._deserialize=P=>JSON.parse(P),this._serialize=P=>JSON.stringify(P,void 0," ");const D={configName:"config",fileExtension:"json",projectSuffix:"nodejs",clearInvalidConfig:!1,accessPropertiesByDotNotation:!0,configFileMode:438,...j},O=b(()=>{const P=h.sync({cwd:H}),A=P&&JSON.parse(g.readFileSync(P,"utf8"));return A??{}});if(!D.cwd){if(D.projectName||(D.projectName=O().name),!D.projectName)throw new Error("Project name could not be inferred. Please specify the `projectName` option.");D.cwd=n(D.projectName,{suffix:D.projectSuffix}).config}if(f(this,o,D,"f"),D.schema){if(typeof D.schema!="object")throw new TypeError("The `schema` option must be an object.");const P=new v.default({allErrors:!0,useDefaults:!0});(0,p.default)(P);const A={type:"object",properties:D.schema};f(this,r,P.compile(A),"f");for(const[K,B]of Object.entries(D.schema))B?.default&&(s(this,l,"f")[K]=B.default)}D.defaults&&f(this,l,{...s(this,l,"f"),...D.defaults},"f"),D.serialize&&(this._serialize=D.serialize),D.deserialize&&(this._deserialize=D.deserialize),this.events=new R.EventEmitter,f(this,a,D.encryptionKey,"f");const q=D.fileExtension?`.${D.fileExtension}`:"";this.path=E.resolve(D.cwd,`${(G=D.configName)!==null&&G!==void 0?G:"config"}${q}`);const T=this.store,S=Object.assign(L(),D.defaults,T);this._validate(S);try{w.deepEqual(T,S)}catch{this.store=S}if(D.watch&&this._watch(),D.migrations){if(D.projectVersion||(D.projectVersion=O().version),!D.projectVersion)throw new Error("Project version could not be inferred. Please specify the `projectVersion` option.");this._migrate(D.migrations,D.projectVersion,D.beforeEachMigration)}}get(j,G){if(s(this,o,"f").accessPropertiesByDotNotation)return this._get(j,G);const{store:D}=this;return j in D?D[j]:G}set(j,G){if(typeof j!="string"&&typeof j!="object")throw new TypeError(`Expected \`key\` to be of type \`string\` or \`object\`, got ${typeof j}`);if(typeof j!="object"&&G===void 0)throw new TypeError("Use `delete()` to clear values");if(this._containsReservedKey(j))throw new TypeError(`Please don't use the ${U} key, as it's used to manage this module internal operations.`);const{store:D}=this,O=(q,T)=>{M(q,T),s(this,o,"f").accessPropertiesByDotNotation?u.set(D,q,T):D[q]=T};if(typeof j=="object"){const q=j;for(const[T,S]of Object.entries(q))O(T,S)}else O(j,G);this.store=D}has(j){return s(this,o,"f").accessPropertiesByDotNotation?u.has(this.store,j):j in this.store}reset(...j){for(const G of j)F(s(this,l,"f")[G])&&this.set(G,s(this,l,"f")[G])}delete(j){const{store:G}=this;s(this,o,"f").accessPropertiesByDotNotation?u.delete(G,j):delete G[j],this.store=G}clear(){this.store=L();for(const j of Object.keys(s(this,l,"f")))this.reset(j)}onDidChange(j,G){if(typeof j!="string")throw new TypeError(`Expected \`key\` to be of type \`string\`, got ${typeof j}`);if(typeof G!="function")throw new TypeError(`Expected \`callback\` to be of type \`function\`, got ${typeof G}`);return this._handleChange(()=>this.get(j),G)}onDidAnyChange(j){if(typeof j!="function")throw new TypeError(`Expected \`callback\` to be of type \`function\`, got ${typeof j}`);return this._handleChange(()=>this.store,j)}get size(){return Object.keys(this.store).length}get store(){try{const j=g.readFileSync(this.path,s(this,a,"f")?null:"utf8"),G=this._encryptData(j),D=this._deserialize(G);return this._validate(D),Object.assign(L(),D)}catch(j){if(j?.code==="ENOENT")return this._ensureDirectory(),L();if(s(this,o,"f").clearInvalidConfig&&j.name==="SyntaxError")return L();throw j}}set store(j){this._ensureDirectory(),this._validate(j),this._write(j),this.events.emit("change")}*[(r=new WeakMap,a=new WeakMap,o=new WeakMap,l=new WeakMap,Symbol.iterator)](){for(const[j,G]of Object.entries(this.store))yield[j,G]}_encryptData(j){if(!s(this,a,"f"))return j.toString();try{if(s(this,a,"f"))try{if(j.slice(16,17).toString()===":"){const G=j.slice(0,16),D=_.pbkdf2Sync(s(this,a,"f"),G.toString(),1e4,32,"sha512"),O=_.createDecipheriv(N,D,G);j=Buffer.concat([O.update(Buffer.from(j.slice(17))),O.final()]).toString("utf8")}else{const G=_.createDecipher(N,s(this,a,"f"));j=Buffer.concat([G.update(Buffer.from(j)),G.final()]).toString("utf8")}}catch{}}catch{}return j.toString()}_handleChange(j,G){let D=j();const O=()=>{const q=D,T=j();(0,c.isDeepStrictEqual)(T,q)||(D=T,G.call(this,T,q))};return this.events.on("change",O),()=>this.events.removeListener("change",O)}_validate(j){if(!s(this,r,"f")||s(this,r,"f").call(this,j)||!s(this,r,"f").errors)return;const D=s(this,r,"f").errors.map(({instancePath:O,message:q=""})=>`\`${O.slice(1)}\` ${q}`);throw new Error("Config schema violation: "+D.join("; "))}_ensureDirectory(){g.mkdirSync(E.dirname(this.path),{recursive:!0})}_write(j){let G=this._serialize(j);if(s(this,a,"f")){const D=_.randomBytes(16),O=_.pbkdf2Sync(s(this,a,"f"),D.toString(),1e4,32,"sha512"),q=_.createCipheriv(N,O,D);G=Buffer.concat([D,Buffer.from(":"),q.update(Buffer.from(G)),q.final()])}if(process.env.SNAP)g.writeFileSync(this.path,G,{mode:s(this,o,"f").configFileMode});else try{m.writeFileSync(this.path,G,{mode:s(this,o,"f").configFileMode})}catch(D){if(D?.code==="EXDEV"){g.writeFileSync(this.path,G,{mode:s(this,o,"f").configFileMode});return}throw D}}_watch(){this._ensureDirectory(),g.existsSync(this.path)||this._write(L()),process.platform==="win32"?g.watch(this.path,{persistent:!1},y(()=>{this.events.emit("change")},{wait:100})):g.watchFile(this.path,{persistent:!1},y(()=>{this.events.emit("change")},{wait:5e3}))}_migrate(j,G,D){let O=this._get(z,"0.0.0");const q=Object.keys(j).filter(S=>this._shouldPerformMigration(S,O,G));let T={...this.store};for(const S of q)try{D&&D(this,{fromVersion:O,toVersion:S,finalVersion:G,versions:q});const P=j[S];P(this),this._set(z,S),O=S,T={...this.store}}catch(P){throw this.store=T,new Error(`Something went wrong during the migration! Changes applied to the store until this failed migration will be restored. ${P}`)}(this._isVersionInRangeFormat(O)||!$.eq(O,G))&&this._set(z,G)}_containsReservedKey(j){return typeof j=="object"&&Object.keys(j)[0]===U?!0:typeof j!="string"?!1:s(this,o,"f").accessPropertiesByDotNotation?!!j.startsWith(`${U}.`):!1}_isVersionInRangeFormat(j){return $.clean(j)===null}_shouldPerformMigration(j,G,D){return this._isVersionInRangeFormat(j)?G!=="0.0.0"&&$.satisfies(G,j)?!1:$.satisfies(D,j):!($.lte(j,G)||$.gt(j,D))}_get(j,G){return u.get(this.store,j,G)}_set(j,G){const{store:D}=this;u.set(D,j,G),this.store=D}}t.default=J,e.exports=J,e.exports.default=J}(Et,Et.exports)),Et.exports}var Di,Al;function np(){if(Al)return Di;Al=1;const e=me,{app:t,ipcMain:f,ipcRenderer:s,shell:d}=Pe,i=rp();let r=!1;const a=()=>{if(!f||!t)throw new Error("Electron Store: You need to call `.initRenderer()` from the main process.");const l={defaultCwd:t.getPath("userData"),appVersion:t.getVersion()};return r||(f.on("electron-store-get-data",c=>{c.returnValue=l}),r=!0),l};class o extends i{constructor(c){let g,E;if(s){const _=s.sendSync("electron-store-get-data");if(!_)throw new Error("Electron Store: You need to call `.initRenderer()` from the main process.");({defaultCwd:g,appVersion:E}=_)}else f&&t&&({defaultCwd:g,appVersion:E}=a());c={name:"config",...c},c.projectVersion||(c.projectVersion=E),c.cwd?c.cwd=e.isAbsolute(c.cwd)?c.cwd:e.join(g,c.cwd):c.cwd=g,c.configName=c.name,delete c.name,super(c)}static initRenderer(){a()}async openInEditor(){const c=await d.openPath(this.path);if(c)throw new Error(c)}}return Di=o,Di}var sp=np();const Ll=tf(sp);var nt={exports:{}},Ai,ql;function $f(){return ql||(ql=1,Ai={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}),Ai}var Li={},kl;function co(){return kl||(kl=1,function(e){const t={INVALID_LOC:"Invalid LOC header (bad signature)",INVALID_CEN:"Invalid CEN header (bad signature)",INVALID_END:"Invalid END header (bad signature)",DESCRIPTOR_NOT_EXIST:"No descriptor present",DESCRIPTOR_UNKNOWN:"Unknown descriptor format",DESCRIPTOR_FAULTY:"Descriptor data is malformed",NO_DATA:"Nothing to decompress",BAD_CRC:"CRC32 checksum failed {0}",FILE_IN_THE_WAY:"There is a file in the way: {0}",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",DISK_ENTRY_TOO_LARGE:"Number of disk entries is too large",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: "{0}"',NOT_IMPLEMENTED:"Not implemented",INVALID_FILENAME:"Invalid filename",INVALID_FORMAT:"Invalid or unsupported zip format. No END header found",INVALID_PASS_PARAM:"Incompatible password parameter",WRONG_PASSWORD:"Wrong Password",COMMENT_TOO_LONG:"Comment is too long",EXTRA_FIELD_PARSE_ERROR:"Extra field parsing error"};function f(s){return function(...d){return d.length&&(s=s.replace(/\{(\d)\}/g,(i,r)=>d[r]||"")),new Error("ADM-ZIP: "+s)}}for(const s of Object.keys(t))e[s]=f(t[s])}(Li)),Li}var qi,jl;function ip(){if(jl)return qi;jl=1;const e=ut,t=me,f=$f(),s=co(),d=typeof process=="object"&&process.platform==="win32",i=o=>typeof o=="object"&&o!==null,r=new Uint32Array(256).map((o,l)=>{for(let c=0;c<8;c++)(l&1)!==0?l=3988292384^l>>>1:l>>>=1;return l>>>0});function a(o){this.sep=t.sep,this.fs=e,i(o)&&i(o.fs)&&typeof o.fs.statSync=="function"&&(this.fs=o.fs)}return qi=a,a.prototype.makeDir=function(o){const l=this;function c(g){let E=g.split(l.sep)[0];g.split(l.sep).forEach(function(_){if(!(!_||_.substr(-1,1)===":")){E+=l.sep+_;var w;try{w=l.fs.statSync(E)}catch{l.fs.mkdirSync(E)}if(w&&w.isFile())throw s.FILE_IN_THE_WAY(`"${E}"`)}})}c(o)},a.prototype.writeFileTo=function(o,l,c,g){const E=this;if(E.fs.existsSync(o)){if(!c)return!1;var _=E.fs.statSync(o);if(_.isDirectory())return!1}var w=t.dirname(o);E.fs.existsSync(w)||E.makeDir(w);var R;try{R=E.fs.openSync(o,"w",438)}catch{E.fs.chmodSync(o,438),R=E.fs.openSync(o,"w",438)}if(R)try{E.fs.writeSync(R,l,0,l.length,0)}finally{E.fs.closeSync(R)}return E.fs.chmodSync(o,g||438),!0},a.prototype.writeFileToAsync=function(o,l,c,g,E){typeof g=="function"&&(E=g,g=void 0);const _=this;_.fs.exists(o,function(w){if(w&&!c)return E(!1);_.fs.stat(o,function(R,u){if(w&&u.isDirectory())return E(!1);var h=t.dirname(o);_.fs.exists(h,function(n){n||_.makeDir(h),_.fs.open(o,"w",438,function(m,v){m?_.fs.chmod(o,438,function(){_.fs.open(o,"w",438,function(p,y){_.fs.write(y,l,0,l.length,0,function(){_.fs.close(y,function(){_.fs.chmod(o,g||438,function(){E(!0)})})})})}):v?_.fs.write(v,l,0,l.length,0,function(){_.fs.close(v,function(){_.fs.chmod(o,g||438,function(){E(!0)})})}):_.fs.chmod(o,g||438,function(){E(!0)})})})})})},a.prototype.findFiles=function(o){const l=this;function c(g,E,_){let w=[];return l.fs.readdirSync(g).forEach(function(R){const u=t.join(g,R),h=l.fs.statSync(u);w.push(t.normalize(u)+(h.isDirectory()?l.sep:"")),h.isDirectory()&&_&&(w=w.concat(c(u,E,_)))}),w}return c(o,void 0,!0)},a.prototype.findFilesAsync=function(o,l){const c=this;let g=[];c.fs.readdir(o,function(E,_){if(E)return l(E);let w=_.length;if(!w)return l(null,g);_.forEach(function(R){R=t.join(o,R),c.fs.stat(R,function(u,h){if(u)return l(u);h&&(g.push(t.normalize(R)+(h.isDirectory()?c.sep:"")),h.isDirectory()?c.findFilesAsync(R,function(n,m){if(n)return l(n);g=g.concat(m),--w||l(null,g)}):--w||l(null,g))})})})},a.prototype.getAttributes=function(){},a.prototype.setAttributes=function(){},a.crc32update=function(o,l){return r[(o^l)&255]^o>>>8},a.crc32=function(o){typeof o=="string"&&(o=Buffer.from(o,"utf8"));let l=o.length,c=-1;for(let g=0;g<l;)c=a.crc32update(c,o[g++]);return~c>>>0},a.methodToString=function(o){switch(o){case f.STORED:return"STORED ("+o+")";case f.DEFLATED:return"DEFLATED ("+o+")";default:return"UNSUPPORTED ("+o+")"}},a.canonical=function(o){if(!o)return"";const l=t.posix.normalize("/"+o.split("\\").join("/"));return t.join(".",l)},a.zipnamefix=function(o){if(!o)return"";const l=t.posix.normalize("/"+o.split("\\").join("/"));return t.posix.join(".",l)},a.findLast=function(o,l){if(!Array.isArray(o))throw new TypeError("arr is not array");const c=o.length>>>0;for(let g=c-1;g>=0;g--)if(l(o[g],g,o))return o[g]},a.sanitize=function(o,l){o=t.resolve(t.normalize(o));for(var c=l.split("/"),g=0,E=c.length;g<E;g++){var _=t.normalize(t.join(o,c.slice(g,E).join(t.sep)));if(_.indexOf(o)===0)return _}return t.normalize(t.join(o,t.basename(l)))},a.toBuffer=function(l,c){return Buffer.isBuffer(l)?l:l instanceof Uint8Array?Buffer.from(l):typeof l=="string"?c(l):Buffer.alloc(0)},a.readBigUInt64LE=function(o,l){var c=Buffer.from(o.slice(l,l+8));return c.swap64(),parseInt(`0x${c.toString("hex")}`)},a.fromDOS2Date=function(o){return new Date((o>>25&127)+1980,Math.max((o>>21&15)-1,0),Math.max(o>>16&31,1),o>>11&31,o>>5&63,(o&31)<<1)},a.fromDate2DOS=function(o){let l=0,c=0;return o.getFullYear()>1979&&(l=(o.getFullYear()-1980&127)<<9|o.getMonth()+1<<5|o.getDate(),c=o.getHours()<<11|o.getMinutes()<<5|o.getSeconds()>>1),l<<16|c},a.isWin=d,a.crcTable=r,qi}var ki,Fl;function op(){if(Fl)return ki;Fl=1;const e=me;return ki=function(t,{fs:f}){var s=t||"",d=r(),i=null;function r(){return{directory:!1,readonly:!1,hidden:!1,executable:!1,mtime:0,atime:0}}return s&&f.existsSync(s)?(i=f.statSync(s),d.directory=i.isDirectory(),d.mtime=i.mtime,d.atime=i.atime,d.executable=(73&i.mode)!==0,d.readonly=(128&i.mode)===0,d.hidden=e.basename(s)[0]==="."):console.warn("Invalid path: "+s),{get directory(){return d.directory},get readOnly(){return d.readonly},get hidden(){return d.hidden},get mtime(){return d.mtime},get atime(){return d.atime},get executable(){return d.executable},decodeAttributes:function(){},encodeAttributes:function(){},toJSON:function(){return{path:s,isDirectory:d.directory,isReadOnly:d.readonly,isHidden:d.hidden,isExecutable:d.executable,mTime:d.mtime,aTime:d.atime}},toString:function(){return JSON.stringify(this.toJSON(),null," ")}}},ki}var ji,Ml;function ap(){return Ml||(Ml=1,ji={efs:!0,encode:e=>Buffer.from(e,"utf8"),decode:e=>e.toString("utf8")}),ji}var Ul;function Pt(){return Ul||(Ul=1,nt.exports=ip(),nt.exports.Constants=$f(),nt.exports.Errors=co(),nt.exports.FileAttr=op(),nt.exports.decoder=ap()),nt.exports}var yn={},Fi,Vl;function cp(){if(Vl)return Fi;Vl=1;var e=Pt(),t=e.Constants;return Fi=function(){var f=20,s=10,d=0,i=0,r=0,a=0,o=0,l=0,c=0,g=0,E=0,_=0,w=0,R=0,u=0;f|=e.isWin?2560:768,d|=t.FLG_EFS;const h={extraLen:0},n=v=>Math.max(0,v)>>>0,m=v=>Math.max(0,v)&255;return r=e.fromDate2DOS(new Date),{get made(){return f},set made(v){f=v},get version(){return s},set version(v){s=v},get flags(){return d},set flags(v){d=v},get flags_efs(){return(d&t.FLG_EFS)>0},set flags_efs(v){v?d|=t.FLG_EFS:d&=~t.FLG_EFS},get flags_desc(){return(d&t.FLG_DESC)>0},set flags_desc(v){v?d|=t.FLG_DESC:d&=~t.FLG_DESC},get method(){return i},set method(v){switch(v){case t.STORED:this.version=10;case t.DEFLATED:default:this.version=20}i=v},get time(){return e.fromDOS2Date(this.timeval)},set time(v){this.timeval=e.fromDate2DOS(v)},get timeval(){return r},set timeval(v){r=n(v)},get timeHighByte(){return m(r>>>8)},get crc(){return a},set crc(v){a=n(v)},get compressedSize(){return o},set compressedSize(v){o=n(v)},get size(){return l},set size(v){l=n(v)},get fileNameLength(){return c},set fileNameLength(v){c=v},get extraLength(){return g},set extraLength(v){g=v},get extraLocalLength(){return h.extraLen},set extraLocalLength(v){h.extraLen=v},get commentLength(){return E},set commentLength(v){E=v},get diskNumStart(){return _},set diskNumStart(v){_=n(v)},get inAttr(){return w},set inAttr(v){w=n(v)},get attr(){return R},set attr(v){R=n(v)},get fileAttr(){return(R||0)>>16&4095},get offset(){return u},set offset(v){u=n(v)},get encrypted(){return(d&t.FLG_ENC)===t.FLG_ENC},get centralHeaderSize(){return t.CENHDR+c+g+E},get realDataOffset(){return u+t.LOCHDR+h.fnameLen+h.extraLen},get localHeader(){return h},loadLocalHeaderFromBinary:function(v){var p=v.slice(u,u+t.LOCHDR);if(p.readUInt32LE(0)!==t.LOCSIG)throw e.Errors.INVALID_LOC();h.version=p.readUInt16LE(t.LOCVER),h.flags=p.readUInt16LE(t.LOCFLG),h.method=p.readUInt16LE(t.LOCHOW),h.time=p.readUInt32LE(t.LOCTIM),h.crc=p.readUInt32LE(t.LOCCRC),h.compressedSize=p.readUInt32LE(t.LOCSIZ),h.size=p.readUInt32LE(t.LOCLEN),h.fnameLen=p.readUInt16LE(t.LOCNAM),h.extraLen=p.readUInt16LE(t.LOCEXT);const y=u+t.LOCHDR+h.fnameLen,$=y+h.extraLen;return v.slice(y,$)},loadFromBinary:function(v){if(v.length!==t.CENHDR||v.readUInt32LE(0)!==t.CENSIG)throw e.Errors.INVALID_CEN();f=v.readUInt16LE(t.CENVEM),s=v.readUInt16LE(t.CENVER),d=v.readUInt16LE(t.CENFLG),i=v.readUInt16LE(t.CENHOW),r=v.readUInt32LE(t.CENTIM),a=v.readUInt32LE(t.CENCRC),o=v.readUInt32LE(t.CENSIZ),l=v.readUInt32LE(t.CENLEN),c=v.readUInt16LE(t.CENNAM),g=v.readUInt16LE(t.CENEXT),E=v.readUInt16LE(t.CENCOM),_=v.readUInt16LE(t.CENDSK),w=v.readUInt16LE(t.CENATT),R=v.readUInt32LE(t.CENATX),u=v.readUInt32LE(t.CENOFF)},localHeaderToBinary:function(){var v=Buffer.alloc(t.LOCHDR);return v.writeUInt32LE(t.LOCSIG,0),v.writeUInt16LE(s,t.LOCVER),v.writeUInt16LE(d,t.LOCFLG),v.writeUInt16LE(i,t.LOCHOW),v.writeUInt32LE(r,t.LOCTIM),v.writeUInt32LE(a,t.LOCCRC),v.writeUInt32LE(o,t.LOCSIZ),v.writeUInt32LE(l,t.LOCLEN),v.writeUInt16LE(c,t.LOCNAM),v.writeUInt16LE(h.extraLen,t.LOCEXT),v},centralHeaderToBinary:function(){var v=Buffer.alloc(t.CENHDR+c+g+E);return v.writeUInt32LE(t.CENSIG,0),v.writeUInt16LE(f,t.CENVEM),v.writeUInt16LE(s,t.CENVER),v.writeUInt16LE(d,t.CENFLG),v.writeUInt16LE(i,t.CENHOW),v.writeUInt32LE(r,t.CENTIM),v.writeUInt32LE(a,t.CENCRC),v.writeUInt32LE(o,t.CENSIZ),v.writeUInt32LE(l,t.CENLEN),v.writeUInt16LE(c,t.CENNAM),v.writeUInt16LE(g,t.CENEXT),v.writeUInt16LE(E,t.CENCOM),v.writeUInt16LE(_,t.CENDSK),v.writeUInt16LE(w,t.CENATT),v.writeUInt32LE(R,t.CENATX),v.writeUInt32LE(u,t.CENOFF),v},toJSON:function(){const v=function(p){return p+" bytes"};return{made:f,version:s,flags:d,method:e.methodToString(i),time:this.time,crc:"0x"+a.toString(16).toUpperCase(),compressedSize:v(o),size:v(l),fileNameLength:v(c),extraLength:v(g),commentLength:v(E),diskNumStart:_,inAttr:w,attr:R,offset:u,centralHeaderSize:v(t.CENHDR+c+g+E)}},toString:function(){return JSON.stringify(this.toJSON(),null," ")}}},Fi}var Mi,zl;function up(){if(zl)return Mi;zl=1;var e=Pt(),t=e.Constants;return Mi=function(){var f=0,s=0,d=0,i=0,r=0;return{get diskEntries(){return f},set diskEntries(a){f=s=a},get totalEntries(){return s},set totalEntries(a){s=f=a},get size(){return d},set size(a){d=a},get offset(){return i},set offset(a){i=a},get commentLength(){return r},set commentLength(a){r=a},get mainHeaderSize(){return t.ENDHDR+r},loadFromBinary:function(a){if((a.length!==t.ENDHDR||a.readUInt32LE(0)!==t.ENDSIG)&&(a.length<t.ZIP64HDR||a.readUInt32LE(0)!==t.ZIP64SIG))throw e.Errors.INVALID_END();a.readUInt32LE(0)===t.ENDSIG?(f=a.readUInt16LE(t.ENDSUB),s=a.readUInt16LE(t.ENDTOT),d=a.readUInt32LE(t.ENDSIZ),i=a.readUInt32LE(t.ENDOFF),r=a.readUInt16LE(t.ENDCOM)):(f=e.readBigUInt64LE(a,t.ZIP64SUB),s=e.readBigUInt64LE(a,t.ZIP64TOT),d=e.readBigUInt64LE(a,t.ZIP64SIZE),i=e.readBigUInt64LE(a,t.ZIP64OFF),r=0)},toBinary:function(){var a=Buffer.alloc(t.ENDHDR+r);return a.writeUInt32LE(t.ENDSIG,0),a.writeUInt32LE(0,4),a.writeUInt16LE(f,t.ENDSUB),a.writeUInt16LE(s,t.ENDTOT),a.writeUInt32LE(d,t.ENDSIZ),a.writeUInt32LE(i,t.ENDOFF),a.writeUInt16LE(r,t.ENDCOM),a.fill(" ",t.ENDHDR),a},toJSON:function(){const a=function(o,l){let c=o.toString(16).toUpperCase();for(;c.length<l;)c="0"+c;return"0x"+c};return{diskEntries:f,totalEntries:s,size:d+" bytes",offset:a(i,4),commentLength:r}},toString:function(){return JSON.stringify(this.toJSON(),null," ")}}},Mi}var Gl;function Ef(){return Gl||(Gl=1,yn.EntryHeader=cp(),yn.MainHeader=up()),yn}var $t={},Ui,Kl;function lp(){return Kl||(Kl=1,Ui=function(e){var t=ef,f={chunkSize:(parseInt(e.length/1024)+1)*1024};return{deflate:function(){return t.deflateRawSync(e,f)},deflateAsync:function(s){var d=t.createDeflateRaw(f),i=[],r=0;d.on("data",function(a){i.push(a),r+=a.length}),d.on("end",function(){var a=Buffer.alloc(r),o=0;a.fill(0);for(var l=0;l<i.length;l++){var c=i[l];c.copy(a,o),o+=c.length}s&&s(a)}),d.end(e)}}}),Ui}var Vi,Hl;function fp(){if(Hl)return Vi;Hl=1;const e=+(process.versions?process.versions.node:"").split(".")[0]||0;return Vi=function(t,f){var s=ef;const d=e>=15&&f>0?{maxOutputLength:f}:{};return{inflate:function(){return s.inflateRawSync(t,d)},inflateAsync:function(i){var r=s.createInflateRaw(d),a=[],o=0;r.on("data",function(l){a.push(l),o+=l.length}),r.on("end",function(){var l=Buffer.alloc(o),c=0;l.fill(0);for(var g=0;g<a.length;g++){var E=a[g];E.copy(l,c),c+=E.length}i&&i(l)}),r.end(t)}}},Vi}var zi,xl;function dp(){if(xl)return zi;xl=1;const{randomFillSync:e}=Ql,t=co(),f=new Uint32Array(256).map((_,w)=>{for(let R=0;R<8;R++)(w&1)!==0?w=w>>>1^3988292384:w>>>=1;return w>>>0}),s=(_,w)=>Math.imul(_,w)>>>0,d=(_,w)=>f[(_^w)&255]^_>>>8,i=()=>typeof e=="function"?e(Buffer.alloc(12)):i.node();i.node=()=>{const _=Buffer.alloc(12),w=_.length;for(let R=0;R<w;R++)_[R]=Math.random()*256&255;return _};const r={genSalt:i};function a(_){const w=Buffer.isBuffer(_)?_:Buffer.from(_);this.keys=new Uint32Array([305419896,591751049,878082192]);for(let R=0;R<w.length;R++)this.updateKeys(w[R])}a.prototype.updateKeys=function(_){const w=this.keys;return w[0]=d(w[0],_),w[1]+=w[0]&255,w[1]=s(w[1],134775813)+1,w[2]=d(w[2],w[1]>>>24),_},a.prototype.next=function(){const _=(this.keys[2]|2)>>>0;return s(_,_^1)>>8&255};function o(_){const w=new a(_);return function(R){const u=Buffer.alloc(R.length);let h=0;for(let n of R)u[h++]=w.updateKeys(n^w.next());return u}}function l(_){const w=new a(_);return function(R,u,h=0){u||(u=Buffer.alloc(R.length));for(let n of R){const m=w.next();u[h++]=n^m,w.updateKeys(n)}return u}}function c(_,w,R){if(!_||!Buffer.isBuffer(_)||_.length<12)return Buffer.alloc(0);const u=o(R),h=u(_.slice(0,12)),n=(w.flags&8)===8?w.timeHighByte:w.crc>>>24;if(h[11]!==n)throw t.WRONG_PASSWORD();return u(_.slice(12))}function g(_){Buffer.isBuffer(_)&&_.length>=12?r.genSalt=function(){return _.slice(0,12)}:_==="node"?r.genSalt=i.node:r.genSalt=i}function E(_,w,R,u=!1){_==null&&(_=Buffer.alloc(0)),Buffer.isBuffer(_)||(_=Buffer.from(_.toString()));const h=l(R),n=r.genSalt();n[11]=w.crc>>>24&255,u&&(n[10]=w.crc>>>16&255);const m=Buffer.alloc(_.length+12);return h(n,m),h(_,m,12)}return zi={decrypt:c,encrypt:E,_salter:g},zi}var Bl;function hp(){return Bl||(Bl=1,$t.Deflater=lp(),$t.Inflater=fp(),$t.ZipCrypto=dp()),$t}var Gi,Wl;function wf(){if(Wl)return Gi;Wl=1;var e=Pt(),t=Ef(),f=e.Constants,s=hp();return Gi=function(d,i){var r=new t.EntryHeader,a=Buffer.alloc(0),o=Buffer.alloc(0),l=!1,c=null,g=Buffer.alloc(0),E=Buffer.alloc(0),_=!0;const w=d,R=typeof w.decoder=="object"?w.decoder:e.decoder;_=R.hasOwnProperty("efs")?R.efs:!1;function u(){return!i||!(i instanceof Uint8Array)?Buffer.alloc(0):(E=r.loadLocalHeaderFromBinary(i),i.slice(r.realDataOffset,r.realDataOffset+r.compressedSize))}function h($){if(r.flags_desc){const b={},N=r.realDataOffset+r.compressedSize;if(i.readUInt32LE(N)==f.LOCSIG||i.readUInt32LE(N)==f.CENSIG)throw e.Errors.DESCRIPTOR_NOT_EXIST();if(i.readUInt32LE(N)==f.EXTSIG)b.crc=i.readUInt32LE(N+f.EXTCRC),b.compressedSize=i.readUInt32LE(N+f.EXTSIZ),b.size=i.readUInt32LE(N+f.EXTLEN);else if(i.readUInt16LE(N+12)===19280)b.crc=i.readUInt32LE(N+f.EXTCRC-4),b.compressedSize=i.readUInt32LE(N+f.EXTSIZ-4),b.size=i.readUInt32LE(N+f.EXTLEN-4);else throw e.Errors.DESCRIPTOR_UNKNOWN();if(b.compressedSize!==r.compressedSize||b.size!==r.size||b.crc!==r.crc)throw e.Errors.DESCRIPTOR_FAULTY();if(e.crc32($)!==b.crc)return!1}else if(e.crc32($)!==r.localHeader.crc)return!1;return!0}function n($,b,N){if(typeof b>"u"&&typeof $=="string"&&(N=$,$=void 0),l)return $&&b&&b(Buffer.alloc(0),e.Errors.DIRECTORY_CONTENT_ERROR()),Buffer.alloc(0);var L=u();if(L.length===0)return $&&b&&b(L),L;if(r.encrypted){if(typeof N!="string"&&!Buffer.isBuffer(N))throw e.Errors.INVALID_PASS_PARAM();L=s.ZipCrypto.decrypt(L,r,N)}var F=Buffer.alloc(r.size);switch(r.method){case e.Constants.STORED:if(L.copy(F),h(F))return $&&b&&b(F),F;throw $&&b&&b(F,e.Errors.BAD_CRC()),e.Errors.BAD_CRC();case e.Constants.DEFLATED:var H=new s.Inflater(L,r.size);if($)H.inflateAsync(function(M){M.copy(M,0),b&&(h(M)?b(M):b(M,e.Errors.BAD_CRC()))});else{if(H.inflate(F).copy(F,0),!h(F))throw e.Errors.BAD_CRC(`"${R.decode(a)}"`);return F}break;default:throw $&&b&&b(Buffer.alloc(0),e.Errors.UNKNOWN_METHOD()),e.Errors.UNKNOWN_METHOD()}}function m($,b){if((!c||!c.length)&&Buffer.isBuffer(i))return $&&b&&b(u()),u();if(c.length&&!l){var N;switch(r.method){case e.Constants.STORED:return r.compressedSize=r.size,N=Buffer.alloc(c.length),c.copy(N),$&&b&&b(N),N;default:case e.Constants.DEFLATED:var L=new s.Deflater(c);if($)L.deflateAsync(function(H){N=Buffer.alloc(H.length),r.compressedSize=H.length,H.copy(N),b&&b(N)});else{var F=L.deflate();return r.compressedSize=F.length,F}L=null;break}}else if($&&b)b(Buffer.alloc(0));else return Buffer.alloc(0)}function v($,b){return($.readUInt32LE(b+4)<<4)+$.readUInt32LE(b)}function p($){try{for(var b=0,N,L,F;b+4<$.length;)N=$.readUInt16LE(b),b+=2,L=$.readUInt16LE(b),b+=2,F=$.slice(b,b+L),b+=L,f.ID_ZIP64===N&&y(F)}catch{throw e.Errors.EXTRA_FIELD_PARSE_ERROR()}}function y($){var b,N,L,F;$.length>=f.EF_ZIP64_SCOMP&&(b=v($,f.EF_ZIP64_SUNCOMP),r.size===f.EF_ZIP64_OR_32&&(r.size=b)),$.length>=f.EF_ZIP64_RHO&&(N=v($,f.EF_ZIP64_SCOMP),r.compressedSize===f.EF_ZIP64_OR_32&&(r.compressedSize=N)),$.length>=f.EF_ZIP64_DSN&&(L=v($,f.EF_ZIP64_RHO),r.offset===f.EF_ZIP64_OR_32&&(r.offset=L)),$.length>=f.EF_ZIP64_DSN+4&&(F=$.readUInt32LE(f.EF_ZIP64_DSN),r.diskNumStart===f.EF_ZIP64_OR_16&&(r.diskNumStart=F))}return{get entryName(){return R.decode(a)},get rawEntryName(){return a},set entryName($){a=e.toBuffer($,R.encode);var b=a[a.length-1];l=b===47||b===92,r.fileNameLength=a.length},get efs(){return typeof _=="function"?_(this.entryName):_},get extra(){return g},set extra($){g=$,r.extraLength=$.length,p($)},get comment(){return R.decode(o)},set comment($){if(o=e.toBuffer($,R.encode),r.commentLength=o.length,o.length>65535)throw e.Errors.COMMENT_TOO_LONG()},get name(){var $=R.decode(a);return l?$.substr($.length-1).split("/").pop():$.split("/").pop()},get isDirectory(){return l},getCompressedData:function(){return m(!1,null)},getCompressedDataAsync:function($){m(!0,$)},setData:function($){c=e.toBuffer($,e.decoder.encode),!l&&c.length?(r.size=c.length,r.method=e.Constants.DEFLATED,r.crc=e.crc32($),r.changed=!0):r.method=e.Constants.STORED},getData:function($){return r.changed?c:n(!1,null,$)},getDataAsync:function($,b){r.changed?$(c):n(!0,$,b)},set attr($){r.attr=$},get attr(){return r.attr},set header($){r.loadFromBinary($)},get header(){return r},packCentralHeader:function(){r.flags_efs=this.efs,r.extraLength=g.length;var $=r.centralHeaderToBinary(),b=e.Constants.CENHDR;return a.copy($,b),b+=a.length,g.copy($,b),b+=r.extraLength,o.copy($,b),$},packLocalHeader:function(){let $=0;r.flags_efs=this.efs,r.extraLocalLength=E.length;const b=r.localHeaderToBinary(),N=Buffer.alloc(b.length+a.length+r.extraLocalLength);return b.copy(N,$),$+=b.length,a.copy(N,$),$+=a.length,E.copy(N,$),$+=E.length,N},toJSON:function(){const $=function(b){return"<"+(b&&b.length+" bytes buffer"||"null")+">"};return{entryName:this.entryName,name:this.name,comment:this.comment,isDirectory:this.isDirectory,header:r.toJSON(),compressedData:$(i),data:$(c)}},toString:function(){return JSON.stringify(this.toJSON(),null," ")}}},Gi}var Ki,Jl;function mp(){if(Jl)return Ki;Jl=1;const e=wf(),t=Ef(),f=Pt();return Ki=function(s,d){var i=[],r={},a=Buffer.alloc(0),o=new t.MainHeader,l=!1;const c=new Set,g=d,{noSort:E,decoder:_}=g;s?u(g.readEntries):l=!0;function w(){const n=new Set;for(const m of Object.keys(r)){const v=m.split("/");if(v.pop(),!!v.length)for(let p=0;p<v.length;p++){const y=v.slice(0,p+1).join("/")+"/";n.add(y)}}for(const m of n)if(!(m in r)){const v=new e(g);v.entryName=m,v.attr=16,v.temporary=!0,i.push(v),r[v.entryName]=v,c.add(v)}}function R(){if(l=!0,r={},o.diskEntries>(s.length-o.offset)/f.Constants.CENHDR)throw f.Errors.DISK_ENTRY_TOO_LARGE();i=new Array(o.diskEntries);for(var n=o.offset,m=0;m<i.length;m++){var v=n,p=new e(g,s);p.header=s.slice(v,v+=f.Constants.CENHDR),p.entryName=s.slice(v,v+=p.header.fileNameLength),p.header.extraLength&&(p.extra=s.slice(v,v+=p.header.extraLength)),p.header.commentLength&&(p.comment=s.slice(v,v+p.header.commentLength)),n+=p.header.centralHeaderSize,i[m]=p,r[p.entryName]=p}c.clear(),w()}function u(n){var m=s.length-f.Constants.ENDHDR,v=Math.max(0,m-65535),p=v,y=s.length,$=-1,b=0;for((typeof g.trailingSpace=="boolean"?g.trailingSpace:!1)&&(v=0),m;m>=p;m--)if(s[m]===80){if(s.readUInt32LE(m)===f.Constants.ENDSIG){$=m,b=m,y=m+f.Constants.ENDHDR,p=m-f.Constants.END64HDR;continue}if(s.readUInt32LE(m)===f.Constants.END64SIG){p=v;continue}if(s.readUInt32LE(m)===f.Constants.ZIP64SIG){$=m,y=m+f.readBigUInt64LE(s,m+f.Constants.ZIP64SIZE)+f.Constants.ZIP64LEAD;break}}if($==-1)throw f.Errors.INVALID_FORMAT();o.loadFromBinary(s.slice($,y)),o.commentLength&&(a=s.slice(b+f.Constants.ENDHDR)),n&&R()}function h(){i.length>1&&!E&&i.sort((n,m)=>n.entryName.toLowerCase().localeCompare(m.entryName.toLowerCase()))}return{get entries(){return l||R(),i.filter(n=>!c.has(n))},get comment(){return _.decode(a)},set comment(n){a=f.toBuffer(n,_.encode),o.commentLength=a.length},getEntryCount:function(){return l?i.length:o.diskEntries},forEach:function(n){this.entries.forEach(n)},getEntry:function(n){return l||R(),r[n]||null},setEntry:function(n){l||R(),i.push(n),r[n.entryName]=n,o.totalEntries=i.length},deleteFile:function(n,m=!0){l||R();const v=r[n];this.getEntryChildren(v,m).map(y=>y.entryName).forEach(this.deleteEntry)},deleteEntry:function(n){l||R();const m=r[n],v=i.indexOf(m);v>=0&&(i.splice(v,1),delete r[n],o.totalEntries=i.length)},getEntryChildren:function(n,m=!0){if(l||R(),typeof n=="object")if(n.isDirectory&&m){const v=[],p=n.entryName;for(const y of i)y.entryName.startsWith(p)&&v.push(y);return v}else return[n];return[]},getChildCount:function(n){if(n&&n.isDirectory){const m=this.getEntryChildren(n);return m.includes(n)?m.length-1:m.length}return 0},compressToBuffer:function(){l||R(),h();const n=[],m=[];let v=0,p=0;o.size=0,o.offset=0;let y=0;for(const N of this.entries){const L=N.getCompressedData();N.header.offset=p;const F=N.packLocalHeader(),H=F.length+L.length;p+=H,n.push(F),n.push(L);const M=N.packCentralHeader();m.push(M),o.size+=M.length,v+=H+M.length,y++}v+=o.mainHeaderSize,o.offset=p,o.totalEntries=y,p=0;const $=Buffer.alloc(v);for(const N of n)N.copy($,p),p+=N.length;for(const N of m)N.copy($,p),p+=N.length;const b=o.toBinary();return a&&a.copy(b,f.Constants.ENDHDR),b.copy($,p),s=$,l=!1,$},toAsyncBuffer:function(n,m,v,p){try{l||R(),h();const y=[],$=[];let b=0,N=0,L=0;o.size=0,o.offset=0;const F=function(H){if(H.length>0){const M=H.shift(),U=M.entryName+M.extra.toString();v&&v(U),M.getCompressedDataAsync(function(z){p&&p(U),M.header.offset=N;const J=M.packLocalHeader(),W=J.length+z.length;N+=W,y.push(J),y.push(z);const j=M.packCentralHeader();$.push(j),o.size+=j.length,b+=W+j.length,L++,F(H)})}else{b+=o.mainHeaderSize,o.offset=N,o.totalEntries=L,N=0;const M=Buffer.alloc(b);y.forEach(function(z){z.copy(M,N),N+=z.length}),$.forEach(function(z){z.copy(M,N),N+=z.length});const U=o.toBinary();a&&a.copy(U,f.Constants.ENDHDR),U.copy(M,N),s=M,l=!1,n(M)}};F(Array.from(this.entries))}catch(y){m(y)}}}},Ki}var Hi,Zl;function pp(){if(Zl)return Hi;Zl=1;const e=Pt(),t=me,f=wf(),s=mp(),d=(...o)=>e.findLast(o,l=>typeof l=="boolean"),i=(...o)=>e.findLast(o,l=>typeof l=="string"),r=(...o)=>e.findLast(o,l=>typeof l=="function"),a={noSort:!1,readEntries:!1,method:e.Constants.NONE,fs:null};return Hi=function(o,l){let c=null;const g=Object.assign(Object.create(null),a);o&&typeof o=="object"&&(o instanceof Uint8Array||(Object.assign(g,o),o=g.input?g.input:void 0,g.input&&delete g.input),Buffer.isBuffer(o)&&(c=o,g.method=e.Constants.BUFFER,o=void 0)),Object.assign(g,l);const E=new e(g);if((typeof g.decoder!="object"||typeof g.decoder.encode!="function"||typeof g.decoder.decode!="function")&&(g.decoder=e.decoder),o&&typeof o=="string")if(E.fs.existsSync(o))g.method=e.Constants.FILE,g.filename=o,c=E.fs.readFileSync(o);else throw e.Errors.INVALID_FILENAME();const _=new s(c,g),{canonical:w,sanitize:R,zipnamefix:u}=e;function h(p){if(p&&_){var y;if(typeof p=="string"&&(y=_.getEntry(t.posix.normalize(p))),typeof p=="object"&&typeof p.entryName<"u"&&typeof p.header<"u"&&(y=_.getEntry(p.entryName)),y)return y}return null}function n(p){const{join:y,normalize:$,sep:b}=t.posix;return y(".",$(b+p.split("\\").join(b)+b))}function m(p){return p instanceof RegExp?function(y){return function($){return y.test($)}}(p):typeof p!="function"?()=>!0:p}const v=(p,y)=>{let $=y.slice(-1);return $=$===E.sep?E.sep:"",t.relative(p,y)+$};return{readFile:function(p,y){var $=h(p);return $&&$.getData(y)||null},childCount:function(p){const y=h(p);if(y)return _.getChildCount(y)},readFileAsync:function(p,y){var $=h(p);$?$.getDataAsync(y):y(null,"getEntry failed for:"+p)},readAsText:function(p,y){var $=h(p);if($){var b=$.getData();if(b&&b.length)return b.toString(y||"utf8")}return""},readAsTextAsync:function(p,y,$){var b=h(p);b?b.getDataAsync(function(N,L){if(L){y(N,L);return}N&&N.length?y(N.toString($||"utf8")):y("")}):y("")},deleteFile:function(p,y=!0){var $=h(p);$&&_.deleteFile($.entryName,y)},deleteEntry:function(p){var y=h(p);y&&_.deleteEntry(y.entryName)},addZipComment:function(p){_.comment=p},getZipComment:function(){return _.comment||""},addZipEntryComment:function(p,y){var $=h(p);$&&($.comment=y)},getZipEntryComment:function(p){var y=h(p);return y&&y.comment||""},updateFile:function(p,y){var $=h(p);$&&$.setData(y)},addLocalFile:function(p,y,$,b){if(E.fs.existsSync(p)){y=y?n(y):"";const N=t.win32.basename(t.win32.normalize(p));y+=$||N;const L=E.fs.statSync(p),F=L.isFile()?E.fs.readFileSync(p):Buffer.alloc(0);L.isDirectory()&&(y+=E.sep),this.addFile(y,F,b,L)}else throw e.Errors.FILE_NOT_FOUND(p)},addLocalFileAsync:function(p,y){p=typeof p=="object"?p:{localPath:p};const $=t.resolve(p.localPath),{comment:b}=p;let{zipPath:N,zipName:L}=p;const F=this;E.fs.stat($,function(H,M){if(H)return y(H,!1);N=N?n(N):"";const U=t.win32.basename(t.win32.normalize($));if(N+=L||U,M.isFile())E.fs.readFile($,function(z,J){return z?y(z,!1):(F.addFile(N,J,b,M),setImmediate(y,void 0,!0))});else if(M.isDirectory())return N+=E.sep,F.addFile(N,Buffer.alloc(0),b,M),setImmediate(y,void 0,!0)})},addLocalFolder:function(p,y,$){if($=m($),y=y?n(y):"",p=t.normalize(p),E.fs.existsSync(p)){const b=E.findFiles(p),N=this;if(b.length)for(const L of b){const F=t.join(y,v(p,L));$(F)&&N.addLocalFile(L,t.dirname(F))}}else throw e.Errors.FILE_NOT_FOUND(p)},addLocalFolderAsync:function(p,y,$,b){b=m(b),$=$?n($):"",p=t.normalize(p);var N=this;E.fs.open(p,"r",function(L){if(L&&L.code==="ENOENT")y(void 0,e.Errors.FILE_NOT_FOUND(p));else if(L)y(void 0,L);else{var F=E.findFiles(p),H=-1,M=function(){if(H+=1,H<F.length){var U=F[H],z=v(p,U).split("\\").join("/");z=z.normalize("NFD").replace(/[\u0300-\u036f]/g,"").replace(/[^\x20-\x7E]/g,""),b(z)?E.fs.stat(U,function(J,W){J&&y(void 0,J),W.isFile()?E.fs.readFile(U,function(j,G){j?y(void 0,j):(N.addFile($+z,G,"",W),M())}):(N.addFile($+z+"/",Buffer.alloc(0),"",W),M())}):process.nextTick(()=>{M()})}else y(!0,void 0)};M()}})},addLocalFolderAsync2:function(p,y){const $=this;p=typeof p=="object"?p:{localPath:p},localPath=t.resolve(n(p.localPath));let{zipPath:b,filter:N,namefix:L}=p;N instanceof RegExp?N=function(M){return function(U){return M.test(U)}}(N):typeof N!="function"&&(N=function(){return!0}),b=b?n(b):"",L=="latin1"&&(L=M=>M.normalize("NFD").replace(/[\u0300-\u036f]/g,"").replace(/[^\x20-\x7E]/g,"")),typeof L!="function"&&(L=M=>M);const F=M=>t.join(b,L(v(localPath,M))),H=M=>t.win32.basename(t.win32.normalize(L(M)));E.fs.open(localPath,"r",function(M){M&&M.code==="ENOENT"?y(void 0,e.Errors.FILE_NOT_FOUND(localPath)):M?y(void 0,M):E.findFilesAsync(localPath,function(U,z){if(U)return y(U);z=z.filter(J=>N(F(J))),z.length||y(void 0,!1),setImmediate(z.reverse().reduce(function(J,W){return function(j,G){if(j||G===!1)return setImmediate(J,j,!1);$.addLocalFileAsync({localPath:W,zipPath:t.dirname(F(W)),zipName:H(W)},J)}},y))})})},addLocalFolderPromise:function(p,y){return new Promise(($,b)=>{this.addLocalFolderAsync2(Object.assign({localPath:p},y),(N,L)=>{N&&b(N),L&&$(this)})})},addFile:function(p,y,$,b){p=u(p);let N=h(p);const L=N!=null;L||(N=new f(g),N.entryName=p),N.comment=$||"";const F=typeof b=="object"&&b instanceof E.fs.Stats;F&&(N.header.time=b.mtime);var H=N.isDirectory?16:0;let M=N.isDirectory?16384:32768;return F?M|=4095&b.mode:typeof b=="number"?M|=4095&b:M|=N.isDirectory?493:420,H=(H|M<<16)>>>0,N.attr=H,N.setData(y),L||_.setEntry(N),N},getEntries:function(p){return _.password=p,_?_.entries:[]},getEntry:function(p){return h(p)},getEntryCount:function(){return _.getEntryCount()},forEach:function(p){return _.forEach(p)},extractEntryTo:function(p,y,$,b,N,L){b=d(!1,b),N=d(!1,N),$=d(!0,$),L=i(N,L);var F=h(p);if(!F)throw e.Errors.NO_ENTRY();var H=w(F.entryName),M=R(y,L&&!F.isDirectory?L:$?H:t.basename(H));if(F.isDirectory){var U=_.getEntryChildren(F);return U.forEach(function(W){if(W.isDirectory)return;var j=W.getData();if(!j)throw e.Errors.CANT_EXTRACT_FILE();var G=w(W.entryName),D=R(y,$?G:t.basename(G));const O=N?W.header.fileAttr:void 0;E.writeFileTo(D,j,b,O)}),!0}var z=F.getData(_.password);if(!z)throw e.Errors.CANT_EXTRACT_FILE();if(E.fs.existsSync(M)&&!b)throw e.Errors.CANT_OVERRIDE();const J=N?p.header.fileAttr:void 0;return E.writeFileTo(M,z,b,J),!0},test:function(p){if(!_)return!1;for(var y in _.entries)try{if(y.isDirectory)continue;var $=_.entries[y].getData(p);if(!$)return!1}catch{return!1}return!0},extractAllTo:function(p,y,$,b){if($=d(!1,$),b=i($,b),y=d(!1,y),!_)throw e.Errors.NO_ZIP();_.entries.forEach(function(N){var L=R(p,w(N.entryName));if(N.isDirectory){E.makeDir(L);return}var F=N.getData(b);if(!F)throw e.Errors.CANT_EXTRACT_FILE();const H=$?N.header.fileAttr:void 0;E.writeFileTo(L,F,y,H);try{E.fs.utimesSync(L,N.header.time,N.header.time)}catch{throw e.Errors.CANT_EXTRACT_FILE()}})},extractAllToAsync:function(p,y,$,b){if(b=r(y,$,b),$=d(!1,$),y=d(!1,y),!b)return new Promise((M,U)=>{this.extractAllToAsync(p,y,$,function(z){z?U(z):M(this)})});if(!_){b(e.Errors.NO_ZIP());return}p=t.resolve(p);const N=M=>R(p,t.normalize(w(M.entryName))),L=(M,U)=>new Error(M+': "'+U+'"'),F=[],H=[];_.entries.forEach(M=>{M.isDirectory?F.push(M):H.push(M)});for(const M of F){const U=N(M),z=$?M.header.fileAttr:void 0;try{E.makeDir(U),z&&E.fs.chmodSync(U,z),E.fs.utimesSync(U,M.header.time,M.header.time)}catch{b(L("Unable to create folder",U))}}H.reverse().reduce(function(M,U){return function(z){if(z)M(z);else{const J=t.normalize(w(U.entryName)),W=R(p,J);U.getDataAsync(function(j,G){if(G)M(G);else if(!j)M(e.Errors.CANT_EXTRACT_FILE());else{const D=$?U.header.fileAttr:void 0;E.writeFileToAsync(W,j,y,D,function(O){O||M(L("Unable to write file",W)),E.fs.utimes(W,U.header.time,U.header.time,function(q){q?M(L("Unable to set times",W)):M()})})}})}}},b)()},writeZip:function(p,y){if(arguments.length===1&&typeof p=="function"&&(y=p,p=""),!p&&g.filename&&(p=g.filename),!!p){var $=_.compressToBuffer();if($){var b=E.writeFileTo(p,$,!0);typeof y=="function"&&y(b?null:new Error("failed"),"")}}},writeZipPromise:function(p,y){const{overwrite:$,perm:b}=Object.assign({overwrite:!0},y);return new Promise((N,L)=>{!p&&g.filename&&(p=g.filename),p||L("ADM-ZIP: ZIP File Name Missing"),this.toBufferPromise().then(F=>{const H=M=>M?N(M):L("ADM-ZIP: Wasn't able to write zip file");E.writeFileToAsync(p,F,$,b,H)},L)})},toBufferPromise:function(){return new Promise((p,y)=>{_.toAsyncBuffer(p,y)})},toBuffer:function(p,y,$,b){return typeof p=="function"?(_.toAsyncBuffer(p,y,$,b),null):_.compressToBuffer()}}},Hi}var yp=pp();const Xl=tf(yp);class wt{constructor(t,f){this.bw=t,this.version=f;const s=wt.#d;this.#s=process.platform==="win32",t.webContents.on("devtools-opened",()=>this.#l()),s.handle("openDevTools",()=>t.webContents.openDevTools()),this.#h.getVersion=f,s.handle("getInfo",()=>this.#h),s.handle("inited",(i,r,a)=>this.#p(r,a)),s.handle("fetch",async(i,r)=>{const a=await fetch(r,{cache:"no-store"});return{ok:a.ok,txt:await a.text()}}),s.handle("fetchAb",async(i,r)=>{const a=await fetch(r,{cache:"no-store"});return{ok:a.ok,ab:await a.arrayBuffer()}}),s.handle("existsSync",(i,r)=>be.existsSync(r)),s.handle("copy",(i,r,a)=>be.copy(r,a)),s.handle("remove",(i,r)=>be.remove(r)),s.handle("ensureFile",(i,r)=>be.ensureFile(r)),s.handle("readFile",(i,r,a)=>be.readFile(r,a)),s.handle("writeFile",(i,r,a,o)=>be.writeFile(r,a,o)),s.handle("appendFile",(i,r,a)=>be.appendFile(r,a).catch(o=>console.error(o))),s.handle("outputFile",(i,r,a)=>be.outputFile(r,a).catch(o=>console.error(o))),s.handle("win_close",()=>t.close()),s.handle("win_setTitle",(i,r)=>t.setTitle(r)),s.handle("showMessageBox",(i,r)=>Pe.dialog.showMessageBox(t,r)),s.handle("showOpenDialog",(i,r)=>Pe.dialog.showOpenDialog(t,r)),s.handle("capturePage",(i,r,a,o)=>t.webContents.capturePage().then(async l=>{await be.ensureFile(r);const c=l.resize({width:a,height:o,quality:"best"}),g=r.endsWith(".png")?c.toPNG():c.toJPEG(80);await be.writeFile(r,g)})),s.handle("navigate_to",(i,r)=>Pe.shell.openExternal(r));let d;s.handle("Store",(i,r)=>{d=new Ll(r)}),s.handle("flush",(i,r)=>{d.store=r}),s.handle("Store_isEmpty",()=>d.size===0),s.handle("Store_get",()=>d.store),s.handle("zip",async(i,r,a)=>{const o=new Xl;o.addLocalFolder(r),await o.writeZipPromise(a)}),s.handle("unzip",async(i,r,a)=>{await be.remove(a),await be.ensureDir(a),new Xl(r).extractAllTo(a,!0)}),s.handle("isSimpleFullScreen",()=>t.simpleFullScreen),this.#s?(s.handle("setSimpleFullScreen",(i,r)=>{this.#e=()=>{},t.setSimpleFullScreen(r),r||(t.setPosition(this.#c,this.#u),t.setContentSize(this.#i,this.#o)),this.#e=()=>this.#r()}),t.on("enter-full-screen",()=>{this.#e=()=>{},t.setContentSize(this.#t.width,this.#t.height),this.#e=()=>this.#r()}),t.on("leave-full-screen",()=>{this.#a(!1,this.#c,this.#u,this.#i,this.#o)})):s.handle("setSimpleFullScreen",(i,r)=>{t.setSimpleFullScreen(r),!r&&t.setContentSize(this.#i,this.#o)}),s.handle("window",(i,r,a,o,l,c)=>this.#a(r,a,o,l,c)),t.on("move",()=>this.#e()),t.on("resize",()=>this.#e()),this.#m()}static init(t){wt.#d=t,Ll.initRenderer()}static#d;#s;#h={getAppPath:Pe.app.getAppPath(),isPackaged:Pe.app.isPackaged,downloads:Pe.app.getPath("downloads"),userData:Pe.app.getPath("userData"),getVersion:"",env:{...process.env},platform:process.platform,arch:process.arch};#c=0;#u=0;#i=0;#o=0;#p(t,f){const{width:s,height:d}=t.window,{c:i,x:r,y:a,w:o}=f;this.#n=s/d;const l=o===s?d:o/this.#n;if(this.#s||this.bw.setAspectRatio(this.#n),this.#a(i,r,a,o,l),this.bw.show(),this.#e=()=>this.#r(),t.debug.devtool){this.#l=()=>{},this.openDevTools=()=>this.bw.webContents.openDevTools({mode:"detach"}),this.openDevTools();return}this.#l=()=>{this.bw.webContents.closeDevTools(),this.bw.setTitle("DevToolは禁止されています。許可する場合は【プロジェクト設定】の【devtool】をONに。"),this.sendShutdown()}}#n=0;#l=()=>this.bw.webContents.closeDevTools();#m(){const t=Pe.screen.getCursorScreenPoint(),f=Pe.screen.getDisplayNearestPoint(t);this.#t=f.workAreaSize}#t;#e=()=>{};#r(){if(this.#f)return;this.#e=()=>{};const[t,f]=this.bw.getPosition(),[s,d]=this.bw.getContentSize();this.#f=setTimeout(()=>{this.#f=void 0;const[i=0,r=0]=this.bw.getPosition(),[a=0,o=0]=this.bw.getContentSize();if(t!==i||f!==r||s!==a||d!==o){this.#r();return}this.#e=()=>this.#r();let l=a,c=o;this.#s&&(s===a?c=a/this.#n:l=o*this.#n),this.#a(!1,i,r,l,c)},1e3/60*10)}#f=void 0;#a(t,f,s,d,i){if(this.bw.simpleFullScreen)return;console.log(`fn:appMain.ts window c:${String(t)} (${String(f)},${String(s)},${String(d)},${String(i)}) scr(${String(this.#t.width)},${String(this.#t.height)})`),this.#e=()=>{};const r=this.#c=Math.round(t?(this.#t.width-d)*.5:f),a=this.#u=Math.round(t?(this.#t.height-i)*.5:s);this.bw.setPosition(r,a);const o=this.#i=Math.round(d),l=this.#o=Math.round(i);this.bw.setContentSize(o,l),t||this.#m(),this.sendSaveWinInf({x:r,y:a,w:o,h:l}),this.#e=()=>this.#r()}sendShutdown(){}sendSaveWinInf(t){}openDevTools=()=>{}}class kn extends wt{static initRenderer(t,f,s){let d,i=()=>{};try{wt.init(Pe.ipcMain),d=new Pe.BrowserWindow({show:!1,minWidth:300,minHeight:300,acceptFirstMouse:!0,maximizable:!1,webPreferences:{nodeIntegration:!1,contextIsolation:!0,preload:`${__dirname}/preload.js`}}),console.log=a=>d.webContents.send("log",a);const r=new kn(d,f);i=()=>r.openDevTools(),d.loadFile(t)}catch(r){throw console.error(`early err:${String(r)}`),i(),"initRenderer error"}return d}sendShutdown(){this.bw.webContents.send("shutdown")}sendSaveWinInf(t){this.bw.webContents.send("save_win_inf",t)}}module.exports=kn;exports.appMain=kn;
23
23
  //# sourceMappingURL=appMain.js.map