@rainmanhhh/pi-web 0.15.9 → 0.15.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (91) hide show
  1. package/dist/server.mjs +43 -43
  2. package/dist/static/assets/{CodeMirrorEditor-CWnF_Qj3.js → CodeMirrorEditor-ap2xmso8.js} +1 -1
  3. package/dist/static/assets/{abnfDiagram-VCTEODGH-Gr1hjeaV.js → abnfDiagram-VCTEODGH-B9GGcI9X.js} +1 -1
  4. package/dist/static/assets/architecture-7GRP2DOG-ivdhURJr.js +1 -0
  5. package/dist/static/assets/{architectureDiagram-5GKGNRK7-CB1Gmt3J.js → architectureDiagram-5GKGNRK7-BgvlDSSY.js} +1 -1
  6. package/dist/static/assets/{blockDiagram-I7D4REHJ-DgFTulkx.js → blockDiagram-I7D4REHJ-RJDPKEbm.js} +1 -1
  7. package/dist/static/assets/{c4Diagram-7LVT6UL2-Dy45y2XS.js → c4Diagram-7LVT6UL2-Sz9oXZGK.js} +1 -1
  8. package/dist/static/assets/channel-BwoiK2wh.js +1 -0
  9. package/dist/static/assets/{chunk-4HAMMTFA-CLFq2VET.js → chunk-4HAMMTFA-BcPrPDNM.js} +1 -1
  10. package/dist/static/assets/{chunk-75Z2AOVW-pxPEO48X.js → chunk-75Z2AOVW-Cuq0DvIS.js} +1 -1
  11. package/dist/static/assets/{chunk-DU6HZSFF-CfNkOatc.js → chunk-DU6HZSFF-Do7poygO.js} +1 -1
  12. package/dist/static/assets/{chunk-F27PBJKO-C3GomTm6.js → chunk-F27PBJKO-Da_ifagv.js} +1 -1
  13. package/dist/static/assets/{chunk-GMAD6QVW-BA-ckKzx.js → chunk-GMAD6QVW-C1vgP594.js} +1 -1
  14. package/dist/static/assets/{chunk-GVQU2GXP-TUh9sLeq.js → chunk-GVQU2GXP-BZ3ut2Pn.js} +1 -1
  15. package/dist/static/assets/{chunk-IMKFNOWR-B3YWibI3.js → chunk-IMKFNOWR-r33DPsPy.js} +1 -1
  16. package/dist/static/assets/{chunk-L3NEJ4N5-DxcmGYPi.js → chunk-L3NEJ4N5-osWUuCb5.js} +1 -1
  17. package/dist/static/assets/{chunk-OSK3NFVY-C-JtbZCA.js → chunk-OSK3NFVY-DoAMwffS.js} +1 -1
  18. package/dist/static/assets/{chunk-P2QGCYS3-XWjOM6ye.js → chunk-P2QGCYS3-B5Krz2QK.js} +1 -1
  19. package/dist/static/assets/{chunk-POPQ4Y6H-DOGHTGbC.js → chunk-POPQ4Y6H-KYtmoqrN.js} +1 -1
  20. package/dist/static/assets/{chunk-PWAF6VOD-mJd8zsl3.js → chunk-PWAF6VOD-DttCxSGn.js} +1 -1
  21. package/dist/static/assets/{chunk-SHT3W25Y-VAcknLfO.js → chunk-SHT3W25Y-AT6yej5z.js} +1 -1
  22. package/dist/static/assets/{chunk-SVP7TREG-DJPPcSlg.js → chunk-SVP7TREG-DB7fr_dw.js} +1 -1
  23. package/dist/static/assets/{chunk-TICWLB2K-Gw7IA6H4.js → chunk-TICWLB2K-BWov7dbR.js} +1 -1
  24. package/dist/static/assets/classDiagram-ZZMXUADV-D36zijpw.js +1 -0
  25. package/dist/static/assets/classDiagram-v2-VYDZK3BY-D36zijpw.js +1 -0
  26. package/dist/static/assets/{cynefin-OW5HDTMX-CErYR6p1.js → cynefin-OW5HDTMX-D7YZ6ptF.js} +1 -1
  27. package/dist/static/assets/{cynefinDiagram-5FMLGOSQ-_EN2Q4F_.js → cynefinDiagram-5FMLGOSQ-BIIoontW.js} +1 -1
  28. package/dist/static/assets/{dagre-GXQ25YYZ-6HHUcrhN.js → dagre-GXQ25YYZ-BGeN-WoV.js} +1 -1
  29. package/dist/static/assets/{diagram-S7CK7UJ4-OSWVsSxy.js → diagram-S7CK7UJ4-BCaNsajq.js} +1 -1
  30. package/dist/static/assets/{diagram-UQ7AKVKN-BpfIhS9g.js → diagram-UQ7AKVKN-oSbdal-0.js} +1 -1
  31. package/dist/static/assets/{diagram-VSXAHHWV-D6yF5mTL.js → diagram-VSXAHHWV-CNNCASXC.js} +1 -1
  32. package/dist/static/assets/{diagram-VX7I27RA-DKNbGhb6.js → diagram-VX7I27RA-IFoWwD_8.js} +1 -1
  33. package/dist/static/assets/{diagram-Z3DM3KII-Biy8IKw5.js → diagram-Z3DM3KII-DTDoyK-3.js} +1 -1
  34. package/dist/static/assets/{ebnfDiagram-PWID7BFC-Nn4-u2sD.js → ebnfDiagram-PWID7BFC-CR-0_CRX.js} +1 -1
  35. package/dist/static/assets/{erDiagram-RLTQ6QDP-DMmMwgU_.js → erDiagram-RLTQ6QDP-CdxFCzhX.js} +1 -1
  36. package/dist/static/assets/eventmodeling-NTZA5JFV-C0fD5JJ3.js +1 -0
  37. package/dist/static/assets/flowDiagram-HODETNUW-D_9lO4as.js +1 -0
  38. package/dist/static/assets/{ganttDiagram-EL5Y4UJY-DwCMVcK6.js → ganttDiagram-EL5Y4UJY-Dr4iwUK-.js} +1 -1
  39. package/dist/static/assets/{gitGraph-4MIJSDKK-DcleMYd-.js → gitGraph-4MIJSDKK-CuJOtaQq.js} +1 -1
  40. package/dist/static/assets/{gitGraphDiagram-WWUBYQGX-CrxsI_bN.js → gitGraphDiagram-WWUBYQGX-C8-37K6I.js} +1 -1
  41. package/dist/static/assets/{highlighted-body-KPVGNVTW-D-Ta8_ae.js → highlighted-body-KPVGNVTW-CGpflUoA.js} +1 -1
  42. package/dist/static/assets/{index-DTrIbVKf.js → index-CY5OKwlf.js} +7 -7
  43. package/dist/static/assets/{info-A6RAGUB7-DAgEM7d3.js → info-A6RAGUB7-BHdONtlS.js} +1 -1
  44. package/dist/static/assets/{infoDiagram-27XIBGKW-DfjHJ6ZJ.js → infoDiagram-27XIBGKW-CFQGwzOW.js} +1 -1
  45. package/dist/static/assets/{ishikawaDiagram-5VMMS53U-Df6rlsT-.js → ishikawaDiagram-5VMMS53U-j19NcKNR.js} +1 -1
  46. package/dist/static/assets/{journeyDiagram-3NMN7TZE-DMFTL8ls.js → journeyDiagram-3NMN7TZE-CkRn4p1N.js} +1 -1
  47. package/dist/static/assets/{kanban-definition-UXKFOSKX-sgeM8aKm.js → kanban-definition-UXKFOSKX-BNbPG5w3.js} +1 -1
  48. package/dist/static/assets/{line-BpmMMPxe.js → line-DeLOueU5.js} +1 -1
  49. package/dist/static/assets/mermaid-HWGCJPDP-CtrKg3yj.js +1 -0
  50. package/dist/static/assets/{mermaid-parser.core-Dg0XFvn3.js → mermaid-parser.core-D3zK7PpQ.js} +3 -3
  51. package/dist/static/assets/{mermaid.core-CAoeDP-U.js → mermaid.core-DfYTvTsZ.js} +4 -4
  52. package/dist/static/assets/{mindmap-definition-YA3MSWOX-a-bV2DRP.js → mindmap-definition-YA3MSWOX-CjDvd38C.js} +1 -1
  53. package/dist/static/assets/{packet-AYTQ26CC-BMk9HgJQ.js → packet-AYTQ26CC-Cp4Gj7Ei.js} +1 -1
  54. package/dist/static/assets/{pegDiagram-XKGWAZYB-DFQGZ04Z.js → pegDiagram-XKGWAZYB-ClTizHAF.js} +1 -1
  55. package/dist/static/assets/{pie-WAS4IAKB-Ckwftc3E.js → pie-WAS4IAKB-sjwlTFGb.js} +1 -1
  56. package/dist/static/assets/{pieDiagram-E7YTZNPT-DHZg8PKj.js → pieDiagram-E7YTZNPT-C1zbCK0Z.js} +1 -1
  57. package/dist/static/assets/{quadrantDiagram-AXDQQJYC-Dw1AvDQX.js → quadrantDiagram-AXDQQJYC-BbQOo8or.js} +1 -1
  58. package/dist/static/assets/{radar-RG4KPBEZ-yknQ10Sd.js → radar-RG4KPBEZ-BIhx243A.js} +1 -1
  59. package/dist/static/assets/{railroad-74A4TZTK-Dz-j2Uay.js → railroad-74A4TZTK-DSz1lH2y.js} +1 -1
  60. package/dist/static/assets/railroad-abnf-HS5TGJTU-CIMLC5ty.js +1 -0
  61. package/dist/static/assets/railroad-ebnf-LZEXJU2U-CAG56uay.js +1 -0
  62. package/dist/static/assets/railroad-peg-WCYAUIDC-CIyn5_N_.js +1 -0
  63. package/dist/static/assets/{railroadDiagram-O6MQD6OU-0yqGNRBA.js → railroadDiagram-O6MQD6OU-Dm-3bFyO.js} +1 -1
  64. package/dist/static/assets/{requirementDiagram-BXWQKSXE-BTMPLtC4.js → requirementDiagram-BXWQKSXE-Cth7h94X.js} +1 -1
  65. package/dist/static/assets/{sankeyDiagram-P5KCCOFB-CsZ0FgYg.js → sankeyDiagram-P5KCCOFB-5VMR87Ky.js} +1 -1
  66. package/dist/static/assets/{sequenceDiagram-WJ2MYXX4-BY-8D0Qp.js → sequenceDiagram-WJ2MYXX4-B3AnQnxt.js} +1 -1
  67. package/dist/static/assets/{stateDiagram-D77RDMKH-CoB8vQA9.js → stateDiagram-D77RDMKH-BIH-qds9.js} +1 -1
  68. package/dist/static/assets/stateDiagram-v2-MP3YSRHH-hw3hfCYZ.js +1 -0
  69. package/dist/static/assets/{swimlanes-42K2YHIH-CkCzGrPA.js → swimlanes-42K2YHIH-CdFEHybm.js} +1 -1
  70. package/dist/static/assets/swimlanesDiagram-VR7AAH4N-DYdHXhFf.js +8 -0
  71. package/dist/static/assets/{timeline-definition-24CTP7MA-BjNgxAFD.js → timeline-definition-24CTP7MA-Cq7KHhJZ.js} +1 -1
  72. package/dist/static/assets/{treeView-Q6P3EWNA-C8AUoOHF.js → treeView-Q6P3EWNA-Cbtg6Cuv.js} +1 -1
  73. package/dist/static/assets/{treemap-WGGIJYW6-C5ENitK2.js → treemap-WGGIJYW6-CtNlq_QA.js} +1 -1
  74. package/dist/static/assets/{vennDiagram-4TSXK5OY-Dg2cMJHC.js → vennDiagram-4TSXK5OY-CdCdOZGl.js} +1 -1
  75. package/dist/static/assets/{wardley-WFR3VGLG-xh_xicI8.js → wardley-WFR3VGLG-B21vpBt9.js} +1 -1
  76. package/dist/static/assets/{wardleyDiagram-VM6X3IG4-D5dlfo4n.js → wardleyDiagram-VM6X3IG4-CKaEdPSv.js} +1 -1
  77. package/dist/static/assets/{xychartDiagram-S5SC5T6Z-zKEcyK-Y.js → xychartDiagram-S5SC5T6Z-B6yLWKFp.js} +1 -1
  78. package/dist/static/index.html +1 -1
  79. package/package.json +1 -1
  80. package/dist/static/assets/architecture-7GRP2DOG-CJ7Czvbz.js +0 -1
  81. package/dist/static/assets/channel-HLTW2uP4.js +0 -1
  82. package/dist/static/assets/classDiagram-ZZMXUADV-DF0ffzjG.js +0 -1
  83. package/dist/static/assets/classDiagram-v2-VYDZK3BY-DF0ffzjG.js +0 -1
  84. package/dist/static/assets/eventmodeling-NTZA5JFV-BbGUIOmR.js +0 -1
  85. package/dist/static/assets/flowDiagram-HODETNUW-Nts0PZhR.js +0 -1
  86. package/dist/static/assets/mermaid-HWGCJPDP-zAPQY6n6.js +0 -1
  87. package/dist/static/assets/railroad-abnf-HS5TGJTU-BpJVCVEN.js +0 -1
  88. package/dist/static/assets/railroad-ebnf-LZEXJU2U-CBgL4Fcn.js +0 -1
  89. package/dist/static/assets/railroad-peg-WCYAUIDC-B_8hS43N.js +0 -1
  90. package/dist/static/assets/stateDiagram-v2-MP3YSRHH-BxU1qReB.js +0 -1
  91. package/dist/static/assets/swimlanesDiagram-VR7AAH4N-DuNouGqx.js +0 -8
package/dist/server.mjs CHANGED
@@ -3,8 +3,8 @@ import{createRequire as _I}from"node:module";var fI=Object.create;var{getPrototy
3
3
  ${r.join(`\r
4
4
  `)}\r
5
5
  \r
6
- `)},s4=(e)=>{let t=e.socket.encrypted?"https":"http",n=new URL(e.url??"/",`${t}://${e.headers.host??"localhost"}`),r=new Headers;for(let i in e.headers){let o=e.headers[i];if(!o)continue;r.append(i,Array.isArray(o)?o[0]:o)}return new Request(n,{headers:r})},a4=(e)=>{let{server:t,fetchCallback:n,wss:r}=e,i=new Map;r.on("connection",(a,c)=>{let u=i.get(c);if(u)u.resolve(a),i.delete(c)});let o=(a)=>{let c=i.get(a);if(c)i.delete(a),c.reject(Error("WebSocket handshake aborted"))},s=(a,c)=>new Promise((u,d)=>{i.set(a,{resolve:u,reject:d,connectionSymbol:c})});t.on("upgrade",async(a,c,u)=>{if(a.headers.upgrade?.toLowerCase()!=="websocket")return;let d={incoming:a,outgoing:void 0,wss:r,[c0]:s},f=400,h;try{let v=await n(s4(a),d);if(v instanceof Response)f=v.status,h=v.headers}catch{if(t.listenerCount("upgrade")===1)Xx(c,500);return}let p=i.get(a);if(!p||p.connectionSymbol!==d[a0]){if(o(a),t.listenerCount("upgrade")===1)Xx(c,f,h);return}let g=(v)=>{u0(v,h)},y=()=>o(a);c.once("close",y),r.on("headers",g);try{r.handleUpgrade(a,c,u,(v)=>{c.off("close",y),r.emit("connection",v,a)})}finally{r.off("headers",g)}}),t.on("close",()=>{r.close()})},c4,l0=(e)=>{let t=e.fetch,n=s0(t,{hostname:e.hostname,overrideGlobalObjects:e.overrideGlobalObjects,autoCleanupIncoming:e.autoCleanupIncoming}),r=(e.createServer||DI)(e.serverOptions||{},n);if(e.websocket&&e.websocket.server){if(e.websocket.server.options.noServer!==!0)throw Error("WebSocket server must be created with { noServer: true } option");a4({server:r,fetchCallback:t,wss:e.websocket.server})}return r},Jf=(e,t)=>{let n=l0(e);return n.listen(e?.port??3000,e.hostname,()=>{let r=n.address();t&&t(r)}),n};var Qf=me(()=>{Mx();Wf();nn=class extends Error{constructor(e,t){super(e,t);this.name="RequestError"}},TI=new Set(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","server","user-agent"]),SI=/^[!#$%&'*+\-.^_`|~\dA-Za-z]+$/,jx=/[\0\r\n]/,Xf=globalThis.Headers,Kf=class{#e;#t;#n;#o;constructor(e){if(this.#e=e,e instanceof mr)this.#t=e.rawHeaders.slice()}get#i(){return this.#t??=this.#e.rawHeaders.slice()}get#r(){if(!this.#n)this.#n=Kx(this.#i),this.#t=void 0;return this.#n}#c(e){if(typeof e!=="string")return;if(!SI.test(e))throw TypeError(`Invalid header name: ${e}`);return e.toLowerCase()}#s(e){let t=this.#e instanceof mr?void 0:this.#e.headers;if(!t||TI.has(e)||e==="set-cookie"||e==="__proto__")return;if(!Object.hasOwn(t,e))return null;let n=t[e];if(typeof n==="string"){let r=Wx(n);return jx.test(r)?void 0:r}}#a(e,t){let n=t==="cookie"?"; ":", ",r=null;for(let i=0;i<e.length;i+=2){let o=e[i];if(o.length===t.length&&o.toLowerCase()===t){let s=Wx(e[i+1]);if(jx.test(s)){this.#o=!0;return}r=r===null?s:r+n+s}}return r}append(e,t){this.#r.append(e,t)}delete(e){this.#r.delete(e)}get(e){let t=this.#c(e);if(t&&!this.#n&&!this.#o){let n=this.#s(t);if(n!==void 0)return n;let r=this.#a(this.#i,t);if(r!==void 0)return r}return this.#r.get(e)}has(e){let t=this.#c(e);if(t&&!this.#n&&!this.#o){let n=this.#s(t);if(n!==void 0)return n!==null;let r=this.#a(this.#i,t);if(r!==void 0)return r!==null}return this.#r.has(e)}set(e,t){this.#r.set(e,t)}getSetCookie(){return this.#r.getSetCookie()}keys(){return this.#r.keys()}values(){return this.#r.values()}entries(){return this.#r.entries()}forEach(e,t){this.#r.forEach((n,r)=>{e.call(t,n,r,this)})}[Symbol.iterator](){return this.entries()}};Object.defineProperty(Kf.prototype,Symbol.for("nodejs.util.inspect.custom"),{value:function(e,t,n){return`Headers (lightweight) ${n(Object.fromEntries(this),{...t,depth:e==null?null:e-1})}`}});Object.setPrototypeOf(Kf.prototype,Xf.prototype);CI=/^\/[!#$&-;=?-\[\]_a-z~]*$/,AI=/\/\.\.?(?:[/?#]|$)/,UI=/^[a-z0-9._-]+(?::(?:[1-5]\d{3,4}|[6-9]\d{3}))?$/,FI=global.Request,Ji=class extends FI{constructor(e,t){if(typeof e==="object"&&yr in e){let n=t!==void 0&&"body"in t&&t.body!=null;if(e[$n]&&!n)throw TypeError("Cannot construct a Request with a Request object that has already been used.");e=e[yr]()}if(typeof t?.body?.getReader<"u")t.duplex??="half";super(e,t)}},Yx=Symbol("wrapBodyStream"),OI=new Set(["latin1","binary","hex","base64","base64url"]),jf=Symbol("bodyBufferedBeforeDisconnect"),qf=Symbol("bodyBufferedLengthBeforeDisconnect"),yr=Symbol("getRequestCache"),jn=Symbol("requestCache"),Qi=Symbol("incomingKey"),ks=Symbol("urlKey"),Qx=Symbol("methodKey"),e0=Symbol("headersKey"),As=Symbol("abortControllerKey"),$f=Symbol("getAbortController"),Hf=Symbol("abortRequest"),gr=Symbol("bodyBuffer"),Wc=Symbol("bodyReadPromise"),$n=Symbol("bodyConsumedDirectly"),Hx=Symbol("bodyLockReader"),Us=Symbol("abortReason"),MI=new TextDecoder,WI=/^[!#$%&'*+\-.^_`|~0-9A-Za-z]+$/,yn={get method(){return this[Qx]},get url(){return this[ks]},get headers(){return this[e0]||=Zx(this[Qi])},[Hf](e){if(this[Us]===void 0)this[Us]=e;let t=this[As];if(t&&!t.signal.aborted)t.abort(e)},[$f](){if(this[As]||=new AbortController,this[Us]!==void 0&&!this[As].signal.aborted)this[As].abort(this[Us]);return this[As]},[yr](){let e=this[$f]();if(this[jn])return this[jn];let t=this.method;if(this[$n]&&!(t==="GET"||t==="HEAD")){this[gr]=void 0;let n={method:t==="TRACE"?"GET":t,headers:this.headers,signal:e.signal};if(t!=="TRACE")n.body=new ReadableStream({start(i){i.close()}}),n.duplex="half";let r=new Ji(this[ks],n);if(t==="TRACE")Object.defineProperty(r,"method",{get(){return"TRACE"}});return this[jn]=r}return this[jn]=II(this.method,this[ks],this.headers,this[Qi],e)},get body(){if(!this[$n])return this[yr]().body;let e=this[yr]();if(!this[Hx]&&e.body)this[Hx]=e.body.getReader();return e.body},get bodyUsed(){if(this[$n])return!0;if(this[jn])return this[jn].bodyUsed;return!1}};Object.defineProperty(yn,"signal",{get(){return this[$f]().signal}});["cache","credentials","destination","integrity","mode","redirect","referrer","referrerPolicy","keepalive"].forEach((e)=>{Object.defineProperty(yn,e,{get(){return this[yr]()[e]}})});["clone","formData"].forEach((e)=>{Object.defineProperty(yn,e,{value:function(){if(this[$n]){if(e==="clone")throw qc();return Rs()}return this[yr]()[e]()}})});Object.defineProperty(yn,"text",{value:function(){return Yf(this,"text",(e)=>MI.decode(e))}});Object.defineProperty(yn,"arrayBuffer",{value:function(){return Yf(this,"arrayBuffer",(e)=>BI(e))}});Object.defineProperty(yn,"blob",{value:function(){return Yf(this,"blob",(e,t)=>{let n=LI(t);return new Response(e,n?{headers:{"content-type":n}}:void 0).blob()})}});Object.defineProperty(yn,"json",{value:function(){if(this[$n])return Rs();return this.text().then(JSON.parse)}});Object.defineProperty(yn,Symbol.for("nodejs.util.inspect.custom"),{value:function(e,t,n){return`Request (lightweight) ${n({method:this.method,url:this.url,headers:this.headers,nativeRequest:this[jn]},{...t,depth:e==null?null:e-1})}`}});Object.setPrototypeOf(yn,Ji.prototype);Gf=Symbol("responseCache"),Yi=Symbol("getResponseCache"),qn=Symbol("cache"),$c=global.Response,mn=class e{#e;#t;[Yi](){let t=this[qn],n=t&&t[2]instanceof Headers?t[2]:void 0;return delete this[qn],this[Gf]||=new $c(this.#e,n?{status:this.#t?.status,statusText:this.#t?.statusText,headers:n}:this.#t)}constructor(t,n){let r;if(this.#e=t,n instanceof $c){let i=n[Gf];if(i){this.#t=i,this[Yi]();return}this.#t=n instanceof e?n.#t:n,r=new Headers(n.headers)}else this.#t=n;if(t==null||typeof t==="string"||typeof t?.getReader<"u"||t instanceof Blob||t instanceof Uint8Array)this[qn]=[n?.status||200,t??null,r||n?.headers]}get headers(){let t=this[qn];if(t){if(!(t[2]instanceof Headers))t[2]=new Headers(t[2]||(t[1]===null?void 0:{"content-type":pr}));return t[2]}return this[Yi]().headers}get status(){return this[qn]?.[0]??this[Yi]().status}get ok(){let t=this.status;return t>=200&&t<300}};["body","bodyUsed","redirected","statusText","trailers","type","url"].forEach((e)=>{Object.defineProperty(mn.prototype,e,{get(){return this[Yi]()[e]}})});["arrayBuffer","blob","clone","formData","json","text"].forEach((e)=>{Object.defineProperty(mn.prototype,e,{value:function(){return this[Yi]()[e]()}})});Object.defineProperty(mn.prototype,Symbol.for("nodejs.util.inspect.custom"),{value:function(e,t,n){return`Response (lightweight) ${n({status:this.status,headers:this.headers,ok:this.ok,nativeResponse:this[Gf]},{...t,depth:e==null?null:e-1})}`}});Object.setPrototypeOf(mn,$c);Object.setPrototypeOf(mn.prototype,$c.prototype);zI=/^https?:\/\/[!#-;=?-[\]_a-z~A-Z]+$/,XI=new Set([301,302,303,307,308]);Object.defineProperty(mn,"redirect",{value:function(t,n=302){if(!XI.has(n))throw RangeError("Invalid status code");return new mn(null,{status:n,headers:{location:VI(t)}})},writable:!0,configurable:!0});Object.defineProperty(mn,"json",{value:function(t,n){let r=JSON.stringify(t);if(r===void 0)throw TypeError("The data is not JSON serializable");let i=n?.headers,o;if(i){if(o=new Headers(i),!o.has("content-type"))o.set("content-type","application/json")}else o={"content-type":"application/json"};return new mn(r,{status:n?.status??200,statusText:n?.statusText,headers:o})},writable:!0,configurable:!0});Hc=Symbol("outgoingEnded"),Vx=Symbol("incomingDraining"),n4=globalThis.CloseEvent??class extends Event{#e;constructor(e,t={}){super(e,t);this.#e=t}get wasClean(){return this.#e.wasClean??!1}get code(){return this.#e.code??0}get reason(){return this.#e.reason??""}},r4=globalThis.ErrorEvent??class extends Event{#e;constructor(e,t={}){super(e,t);this.#e=t}get message(){return this.#e.message??""}get filename(){return this.#e.filename??""}get lineno(){return this.#e.lineno??0}get colno(){return this.#e.colno??0}get error(){return this.#e.error??null}},a0=Symbol("CONNECTION_SYMBOL_KEY"),c0=Symbol("WAIT_FOR_WEBSOCKET_SYMBOL"),o4=new Set(["connection","content-length","keep-alive","proxy-authenticate","proxy-authorization","te","trailer","transfer-encoding","upgrade","sec-websocket-accept","sec-websocket-extensions","sec-websocket-protocol"]),c4=Bc(async(e,t,n)=>{if(e.req.header("upgrade")?.toLowerCase()!=="websocket")return;let r=e.env,i=r[c0];if(!i||!r.incoming)return new Response(null,{status:500});let o=i4();return r[a0]=o,(async()=>{let s;try{s=await i(r.incoming,o)}catch{return}let a=[],c=(f,h)=>{a.push([f,h])};s.on("message",c);let u={binaryType:"arraybuffer",close(f,h){s.close(f,h)},protocol:s.protocol,raw:s,get readyState(){return s.readyState},send(f,h){s.send(f,{compress:h?.compress})},url:new URL(e.req.url)};try{t?.onOpen?.(new Event("open"),u)}catch(f){(n?.onError??console.error)(f)}let d=(f,h)=>{let p=Array.isArray(f)?f:[f];for(let g of p)try{t?.onMessage?.(new MessageEvent("message",{data:h?g instanceof ArrayBuffer?g:g.buffer.slice(g.byteOffset,g.byteOffset+g.byteLength):typeof g==="string"?g:Buffer.from(g).toString("utf-8")}),u)}catch(y){(n?.onError??console.error)(y)}};s.off("message",c);for(let f of a)d(...f);s.on("message",(f,h)=>{d(f,h)}),s.on("close",(f,h)=>{try{t?.onClose?.(new n4("close",{code:f,reason:h.toString()}),u)}catch(p){(n?.onError??console.error)(p)}}),s.on("error",(f)=>{try{t?.onError?.(new r4("error",{error:f}),u)}catch(h){(n?.onError??console.error)(h)}})})(),new Response})});var oh=(e)=>{let t=e.split("/");if(t[0]==="")t.shift();return t},w0=(e)=>{let{groups:t,path:n}=v4(e),r=oh(n);return x4(r,t)},v4=(e)=>{let t=[];return e=e.replace(/\{[^}]+\}/g,(n,r)=>{let i=`@${r}`;return t.push([i,n]),i}),{groups:t,path:e}},x4=(e,t)=>{for(let n=t.length-1;n>=0;n--){let[r]=t[n];for(let i=e.length-1;i>=0;i--)if(e[i].includes(r)){e[i]=e[i].replace(r,t[n][1]);break}}return e},Yc,D0=(e,t)=>{if(e==="*")return"*";let n=e.match(/^\:([^\{\}]+)(?:\{(.+)\})?$/);if(n){let r=`${e}#${t}`;if(!Yc[r])if(n[2])Yc[r]=t&&t[0]!==":"&&t[0]!=="*"?[r,n[1],new RegExp(`^${n[2]}(?=/${t})`)]:[e,n[1],new RegExp(`^${n[2]}$`)];else Yc[r]=[e,n[1],!0];return Yc[r]}return null},E0=(e,t)=>{try{return t(e)}catch{return e.replace(/(?:%[0-9A-Fa-f]{2})+/g,(n)=>{try{return t(n)}catch{return n}})}},sh=(e)=>E0(e,decodeURI),ah=(e)=>{let t=e.url,n=t.indexOf("/",t.indexOf(":")+4),r=n;for(;r<t.length;r++){let i=t.charCodeAt(r);if(i===37){let o=t.indexOf("?",r),s=t.indexOf("#",r),a=o===-1?s===-1?void 0:s:s===-1?o:Math.min(o,s),c=t.slice(n,a);return sh(c.includes("%25")?c.replace(/%25/g,"%2525"):c)}else if(i===63||i===35)break}return t.slice(n,r)},T0=(e)=>{let t=ah(e);return t.length>1&&t.at(-1)==="/"?t.slice(0,-1):t},br=(e,t,...n)=>{if(n.length)t=br(t,...n);return`${e?.[0]==="/"?"":"/"}${e}${t==="/"?"":`${e?.at(-1)==="/"?"":"/"}${t?.[0]==="/"?t.slice(1):t}`}`},Jc=(e)=>{if(e.charCodeAt(e.length-1)!==63||!e.includes(":"))return null;let t=e.split("/"),n=[],r="";return t.forEach((i)=>{if(i!==""&&!/\:/.test(i))r+="/"+i;else if(/\:/.test(i))if(i.charCodeAt(i.length-1)===63){if(n.length===0&&r==="")n.push("/");else n.push(r);let o=i.slice(0,-1);r+="/"+o,n.push(r)}else r+="/"+i}),n.filter((i,o,s)=>s.indexOf(i)===o)},Qc=(e)=>e.indexOf("%")!==-1?E0(e,_4):e,ih=(e)=>{if(e.indexOf("+")!==-1)e=e.replace(/\+/g," ");return Qc(e)},S0=(e,t,n)=>{let r=e.indexOf("#",8);if(r!==-1)e=e.slice(0,r);let i;if(!n&&t&&t.indexOf("%")===-1&&t.indexOf("+")===-1){let a=e.indexOf("?",8);if(a===-1)return;if(!e.startsWith(t,a+1))a=e.indexOf(`&${t}`,a+1);while(a!==-1){let c=e.charCodeAt(a+t.length+1);if(c===61){let u=a+t.length+2,d=e.indexOf("&",u);return ih(e.slice(u,d===-1?void 0:d))}else if(c==38||isNaN(c))return"";a=e.indexOf(`&${t}`,a+1)}if(i=/[%+]/.test(e),!i)return}let o=Object.create(null);i??=/[%+]/.test(e);let s=e.indexOf("?",8);while(s!==-1){let a=e.indexOf("&",s+1),c=e.indexOf("=",s);if(c>a&&a!==-1)c=-1;let u=e.slice(s+1,c===-1?a===-1?void 0:a:c);if(i)u=ih(u);if(s=a,u==="")continue;let d;if(c===-1)d="";else if(d=e.slice(c+1,a===-1?void 0:a),i)d=ih(d);if(n){if(!(o[u]&&Array.isArray(o[u])))o[u]=[];o[u].push(d)}else o[u]??=d}return t?o[t]:o},C0,A0=(e,t)=>S0(e,t,!0),_4;var ui=me(()=>{Yc={},C0=S0,_4=decodeURIComponent});var k0,R0=(e,t)=>{let n=new String(e);return n.isEscaped=!0,n.callbacks=t,n},ch=async(e,t,n,r,i)=>{if(typeof e==="object"&&!(e instanceof String)){if(!(e instanceof Promise))e=e.toString();if(e instanceof Promise)e=await e}let o=e.callbacks;if(!o?.length)return Promise.resolve(e);if(i)i[0]+=e;else i=[e];let s=Promise.all(o.map((a)=>a({phase:t,buffer:i,context:r}))).then((a)=>Promise.all(a.filter(Boolean).map((c)=>ch(c,t,!1,r,i))).then(()=>i[0]));if(n)return R0(await s,o);else return s};var uh=me(()=>{k0={Stringify:1,BeforeStream:2,Stream:3}});var qe="ALL",F0="all",O0,eu="Can not add a route since the matcher is already built.",tu;var vr=me(()=>{O0=["get","post","put","delete","options","patch","query"],tu=class extends Error{}});var Is="__COMPOSED_HANDLER";var fh=()=>{};function T2(){if(!globalThis.__piModelsCacheState)globalThis.__piModelsCacheState={entries:new Map,inFlight:new Map,generation:0};return globalThis.__piModelsCacheState}function ke(){let e=T2();e.generation+=1,e.entries.clear(),e.inFlight.clear()}function S2(e,t){return t?{...e,modelError:t}:e}function Er(e,t){let n=T2(),r=n.entries.get(e);if(r){if(r.expiresAt>Date.now())return Promise.resolve(r.data);n.entries.delete(e)}let i=n.inFlight.get(e);if(i)return i;let o=n.generation,s=Promise.resolve().then(t).then((a)=>{if(n.generation===o&&n.inFlight.get(e)===s){let c=Date.now();for(let[u,d]of n.entries)if(d.expiresAt<=c)n.entries.delete(u);while(n.entries.size>=32){let u=n.entries.keys().next().value;if(u===void 0)break;n.entries.delete(u)}n.entries.set(e,{data:a,expiresAt:c+60000})}return a}).finally(()=>{if(n.inFlight.get(e)===s)n.inFlight.delete(e)});return n.inFlight.set(e,s),s}var e1={};Q(e1,{buildModelsListUrl:()=>Ws,discoveredModelFromValue:()=>Cr,listResponseModels:()=>Ar,parseDiscoveredModels:()=>Hh});function $h(e){return typeof e==="object"&&e!==null&&!Array.isArray(e)}function Sr(e){return typeof e==="string"&&e.trim()?e.trim():void 0}function J2(e){if(typeof e==="string"){let i=e.trim();return i?{id:i}:null}if(!$h(e))return null;let t=Sr(e.id)??Sr(e.model)??Sr(e.name);if(!t)return null;let n=t.startsWith("models/")?t.slice(7):t;if(!n)return null;let r=Sr(e.display_name)??Sr(e.displayName)??(Sr(e.id)||Sr(e.model)?Sr(e.name):void 0);return r&&r!==n?{id:n,name:r}:{id:n}}function Q2(e){if(Array.isArray(e))return e;if(!$h(e))return[];for(let t of["data","models","results","items"]){let n=e[t];if(Array.isArray(n))return n;if($h(n))return Object.values(n)}return[]}function Cr(e){return J2(e)}function Ar(e){return Q2(e)}function Hh(e){let t=new Set,n=[];for(let r of Q2(e)){let i=J2(r);if(!i||t.has(i.id))continue;t.add(i.id),n.push(i)}return n.sort((r,i)=>(r.name??r.id).localeCompare(i.name??i.id,void 0,{numeric:!0,sensitivity:"base"}))}function Ws(e,t){let n=new URL(e.trim()),r=n.pathname.replace(/\/+$/,"");if(!/\/models$/i.test(r)){let i=r;if(t==="anthropic-messages"&&!/\/v\d+(?:beta)?$/i.test(i))i+="/v1";if(t==="google-generative-ai"&&!/\/v\d+(?:beta)?$/i.test(i))i+="/v1beta";n.pathname=`${i}/models`.replace(/\/+/g,"/")}if(t==="anthropic-messages"&&!n.searchParams.has("limit"))n.searchParams.set("limit","1000");if(t==="google-generative-ai"&&!n.searchParams.has("pageSize"))n.searchParams.set("pageSize","1000");return n}var s1=R(function(khe,o1){var Ur=re("constants"),UM=process.cwd,Au=null,kM=process.env.GRACEFUL_FS_PLATFORM||process.platform;process.cwd=function(){if(!Au)Au=UM.call(process);return Au};try{process.cwd()}catch(e){}if(typeof process.chdir==="function"){if(Uu=process.chdir,process.chdir=function(e){Au=null,Uu.call(process,e)},Object.setPrototypeOf)Object.setPrototypeOf(process.chdir,Uu)}var Uu;o1.exports=RM;function RM(e){if(Ur.hasOwnProperty("O_SYMLINK")&&process.version.match(/^v0\.6\.[0-2]|^v0\.5\./))t(e);if(!e.lutimes)n(e);if(e.chown=o(e.chown),e.fchown=o(e.fchown),e.lchown=o(e.lchown),e.chmod=r(e.chmod),e.fchmod=r(e.fchmod),e.lchmod=r(e.lchmod),e.chownSync=s(e.chownSync),e.fchownSync=s(e.fchownSync),e.lchownSync=s(e.lchownSync),e.chmodSync=i(e.chmodSync),e.fchmodSync=i(e.fchmodSync),e.lchmodSync=i(e.lchmodSync),e.stat=a(e.stat),e.fstat=a(e.fstat),e.lstat=a(e.lstat),e.statSync=c(e.statSync),e.fstatSync=c(e.fstatSync),e.lstatSync=c(e.lstatSync),e.chmod&&!e.lchmod)e.lchmod=function(d,f,h){if(h)process.nextTick(h)},e.lchmodSync=function(){};if(e.chown&&!e.lchown)e.lchown=function(d,f,h,p){if(p)process.nextTick(p)},e.lchownSync=function(){};if(kM==="win32")e.rename=typeof e.rename!=="function"?e.rename:function(d){function f(h,p,g){var y=Date.now(),v=0;d(h,p,function b(_){if(_&&(_.code==="EACCES"||_.code==="EPERM"||_.code==="EBUSY")&&Date.now()-y<60000){if(setTimeout(function(){e.stat(p,function(m,x){if(m&&m.code==="ENOENT")d(h,p,b);else g(_)})},v),v<100)v+=10;return}if(g)g(_)})}if(Object.setPrototypeOf)Object.setPrototypeOf(f,d);return f}(e.rename);e.read=typeof e.read!=="function"?e.read:function(d){function f(h,p,g,y,v,b){var _;if(b&&typeof b==="function"){var m=0;_=function(x,D,A){if(x&&x.code==="EAGAIN"&&m<10)return m++,d.call(e,h,p,g,y,v,_);b.apply(this,arguments)}}return d.call(e,h,p,g,y,v,_)}if(Object.setPrototypeOf)Object.setPrototypeOf(f,d);return f}(e.read),e.readSync=typeof e.readSync!=="function"?e.readSync:function(d){return function(f,h,p,g,y){var v=0;while(!0)try{return d.call(e,f,h,p,g,y)}catch(b){if(b.code==="EAGAIN"&&v<10){v++;continue}throw b}}}(e.readSync);function t(d){d.lchmod=function(f,h,p){d.open(f,Ur.O_WRONLY|Ur.O_SYMLINK,h,function(g,y){if(g){if(p)p(g);return}d.fchmod(y,h,function(v){d.close(y,function(b){if(p)p(v||b)})})})},d.lchmodSync=function(f,h){var p=d.openSync(f,Ur.O_WRONLY|Ur.O_SYMLINK,h),g=!0,y;try{y=d.fchmodSync(p,h),g=!1}finally{if(g)try{d.closeSync(p)}catch(v){}else d.closeSync(p)}return y}}function n(d){if(Ur.hasOwnProperty("O_SYMLINK")&&d.futimes)d.lutimes=function(f,h,p,g){d.open(f,Ur.O_SYMLINK,function(y,v){if(y){if(g)g(y);return}d.futimes(v,h,p,function(b){d.close(v,function(_){if(g)g(b||_)})})})},d.lutimesSync=function(f,h,p){var g=d.openSync(f,Ur.O_SYMLINK),y,v=!0;try{y=d.futimesSync(g,h,p),v=!1}finally{if(v)try{d.closeSync(g)}catch(b){}else d.closeSync(g)}return y};else if(d.futimes)d.lutimes=function(f,h,p,g){if(g)process.nextTick(g)},d.lutimesSync=function(){}}function r(d){if(!d)return d;return function(f,h,p){return d.call(e,f,h,function(g){if(u(g))g=null;if(p)p.apply(this,arguments)})}}function i(d){if(!d)return d;return function(f,h){try{return d.call(e,f,h)}catch(p){if(!u(p))throw p}}}function o(d){if(!d)return d;return function(f,h,p,g){return d.call(e,f,h,p,function(y){if(u(y))y=null;if(g)g.apply(this,arguments)})}}function s(d){if(!d)return d;return function(f,h,p){try{return d.call(e,f,h,p)}catch(g){if(!u(g))throw g}}}function a(d){if(!d)return d;return function(f,h,p){if(typeof h==="function")p=h,h=null;function g(y,v){if(v){if(v.uid<0)v.uid+=4294967296;if(v.gid<0)v.gid+=4294967296}if(p)p.apply(this,arguments)}return h?d.call(e,f,h,g):d.call(e,f,g)}}function c(d){if(!d)return d;return function(f,h){var p=h?d.call(e,f,h):d.call(e,f);if(p){if(p.uid<0)p.uid+=4294967296;if(p.gid<0)p.gid+=4294967296}return p}}function u(d){if(!d)return!0;if(d.code==="ENOSYS")return!0;var f=!process.getuid||process.getuid()!==0;if(f){if(d.code==="EINVAL"||d.code==="EPERM")return!0}return!1}}});var u1=R(function(Rhe,c1){var a1=re("stream").Stream;c1.exports=FM;function FM(e){return{ReadStream:t,WriteStream:n};function t(r,i){if(!(this instanceof t))return new t(r,i);a1.call(this);var o=this;this.path=r,this.fd=null,this.readable=!0,this.paused=!1,this.flags="r",this.mode=438,this.bufferSize=65536,i=i||{};var s=Object.keys(i);for(var a=0,c=s.length;a<c;a++){var u=s[a];this[u]=i[u]}if(this.encoding)this.setEncoding(this.encoding);if(this.start!==void 0){if(typeof this.start!=="number")throw TypeError("start must be a Number");if(this.end===void 0)this.end=1/0;else if(typeof this.end!=="number")throw TypeError("end must be a Number");if(this.start>this.end)throw Error("start must be <= end");this.pos=this.start}if(this.fd!==null){process.nextTick(function(){o._read()});return}e.open(this.path,this.flags,this.mode,function(d,f){if(d){o.emit("error",d),o.readable=!1;return}o.fd=f,o.emit("open",f),o._read()})}function n(r,i){if(!(this instanceof n))return new n(r,i);a1.call(this),this.path=r,this.fd=null,this.writable=!0,this.flags="w",this.encoding="binary",this.mode=438,this.bytesWritten=0,i=i||{};var o=Object.keys(i);for(var s=0,a=o.length;s<a;s++){var c=o[s];this[c]=i[c]}if(this.start!==void 0){if(typeof this.start!=="number")throw TypeError("start must be a Number");if(this.start<0)throw Error("start must be >= zero");this.pos=this.start}if(this.busy=!1,this._queue=[],this.fd===null)this._open=e.open,this._queue.push([this._open,this.path,this.flags,this.mode,void 0]),this.flush()}}});var d1=R(function(Fhe,l1){l1.exports=PM;var OM=Object.getPrototypeOf||function(e){return e.__proto__};function PM(e){if(e===null||typeof e!=="object")return e;if(e instanceof Object)var t={__proto__:OM(e)};else var t=Object.create(null);return Object.getOwnPropertyNames(e).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(e,n))}),t}});var Yh=R(function(Ohe,Zh){var Oe=re("fs"),IM=s1(),MM=u1(),NM=d1(),ku=re("util"),et,Fu;if(typeof Symbol==="function"&&typeof Symbol.for==="function")et=Symbol.for("graceful-fs.queue"),Fu=Symbol.for("graceful-fs.previous");else et="___graceful-fs.queue",Fu="___graceful-fs.previous";function BM(){}function h1(e,t){Object.defineProperty(e,et,{get:function(){return t}})}var gi=BM;if(ku.debuglog)gi=ku.debuglog("gfs4");else if(/\bgfs4\b/i.test(process.env.NODE_DEBUG||""))gi=function(){var e=ku.format.apply(ku,arguments);e="GFS4: "+e.split(/\n/).join(`
7
- GFS4: `),console.error(e)};if(!Oe[et]){if(Vh=global[et]||[],h1(Oe,Vh),Oe.close=function(e){function t(n,r){return e.call(Oe,n,function(i){if(!i)f1();if(typeof r==="function")r.apply(this,arguments)})}return Object.defineProperty(t,Fu,{value:e}),t}(Oe.close),Oe.closeSync=function(e){function t(n){e.apply(Oe,arguments),f1()}return Object.defineProperty(t,Fu,{value:e}),t}(Oe.closeSync),/\bgfs4\b/i.test(process.env.NODE_DEBUG||""))process.on("exit",function(){gi(Oe[et]),re("assert").equal(Oe[et].length,0)})}var Vh;if(!global[et])h1(global,Oe[et]);Zh.exports=Xh(NM(Oe));if(process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH&&!Oe.__patched)Zh.exports=Xh(Oe),Oe.__patched=!0;function Xh(e){IM(e),e.gracefulify=Xh,e.createReadStream=D,e.createWriteStream=A;var t=e.readFile;e.readFile=n;function n(C,N,F){if(typeof N==="function")F=N,N=null;return S(C,N,F);function S(B,j,G,T){return t(B,j,function(O){if(O&&(O.code==="EMFILE"||O.code==="ENFILE"))ao([S,[B,j,G],O,T||Date.now(),Date.now()]);else if(typeof G==="function")G.apply(this,arguments)})}}var r=e.writeFile;e.writeFile=i;function i(C,N,F,S){if(typeof F==="function")S=F,F=null;return B(C,N,F,S);function B(j,G,T,O,k){return r(j,G,T,function(P){if(P&&(P.code==="EMFILE"||P.code==="ENFILE"))ao([B,[j,G,T,O],P,k||Date.now(),Date.now()]);else if(typeof O==="function")O.apply(this,arguments)})}}var o=e.appendFile;if(o)e.appendFile=s;function s(C,N,F,S){if(typeof F==="function")S=F,F=null;return B(C,N,F,S);function B(j,G,T,O,k){return o(j,G,T,function(P){if(P&&(P.code==="EMFILE"||P.code==="ENFILE"))ao([B,[j,G,T,O],P,k||Date.now(),Date.now()]);else if(typeof O==="function")O.apply(this,arguments)})}}var a=e.copyFile;if(a)e.copyFile=c;function c(C,N,F,S){if(typeof F==="function")S=F,F=0;return B(C,N,F,S);function B(j,G,T,O,k){return a(j,G,T,function(P){if(P&&(P.code==="EMFILE"||P.code==="ENFILE"))ao([B,[j,G,T,O],P,k||Date.now(),Date.now()]);else if(typeof O==="function")O.apply(this,arguments)})}}var u=e.readdir;e.readdir=f;var d=/^v[0-5]\./;function f(C,N,F){if(typeof N==="function")F=N,N=null;var S=d.test(process.version)?function(G,T,O,k){return u(G,B(G,T,O,k))}:function(G,T,O,k){return u(G,T,B(G,T,O,k))};return S(C,N,F);function B(j,G,T,O){return function(k,P){if(k&&(k.code==="EMFILE"||k.code==="ENFILE"))ao([S,[j,G,T],k,O||Date.now(),Date.now()]);else{if(P&&P.sort)P.sort();if(typeof T==="function")T.call(this,k,P)}}}}if(process.version.substr(0,4)==="v0.8"){var h=MM(e);b=h.ReadStream,m=h.WriteStream}var p=e.ReadStream;if(p)b.prototype=Object.create(p.prototype),b.prototype.open=_;var g=e.WriteStream;if(g)m.prototype=Object.create(g.prototype),m.prototype.open=x;Object.defineProperty(e,"ReadStream",{get:function(){return b},set:function(C){b=C},enumerable:!0,configurable:!0}),Object.defineProperty(e,"WriteStream",{get:function(){return m},set:function(C){m=C},enumerable:!0,configurable:!0});var y=b;Object.defineProperty(e,"FileReadStream",{get:function(){return y},set:function(C){y=C},enumerable:!0,configurable:!0});var v=m;Object.defineProperty(e,"FileWriteStream",{get:function(){return v},set:function(C){v=C},enumerable:!0,configurable:!0});function b(C,N){if(this instanceof b)return p.apply(this,arguments),this;else return b.apply(Object.create(b.prototype),arguments)}function _(){var C=this;U(C.path,C.flags,C.mode,function(N,F){if(N){if(C.autoClose)C.destroy();C.emit("error",N)}else C.fd=F,C.emit("open",F),C.read()})}function m(C,N){if(this instanceof m)return g.apply(this,arguments),this;else return m.apply(Object.create(m.prototype),arguments)}function x(){var C=this;U(C.path,C.flags,C.mode,function(N,F){if(N)C.destroy(),C.emit("error",N);else C.fd=F,C.emit("open",F)})}function D(C,N){return new e.ReadStream(C,N)}function A(C,N){return new e.WriteStream(C,N)}var E=e.open;e.open=U;function U(C,N,F,S){if(typeof F==="function")S=F,F=null;return B(C,N,F,S);function B(j,G,T,O,k){return E(j,G,T,function(P,W){if(P&&(P.code==="EMFILE"||P.code==="ENFILE"))ao([B,[j,G,T,O],P,k||Date.now(),Date.now()]);else if(typeof O==="function")O.apply(this,arguments)})}}return e}function ao(e){gi("ENQUEUE",e[0].name,e[1]),Oe[et].push(e),Kh()}var Ru;function f1(){var e=Date.now();for(var t=0;t<Oe[et].length;++t)if(Oe[et][t].length>2)Oe[et][t][3]=e,Oe[et][t][4]=e;Kh()}function Kh(){if(clearTimeout(Ru),Ru=void 0,Oe[et].length===0)return;var e=Oe[et].shift(),t=e[0],n=e[1],r=e[2],i=e[3],o=e[4];if(i===void 0)gi("RETRY",t.name,n),t.apply(null,n);else if(Date.now()-i>=60000){gi("TIMEOUT",t.name,n);var s=n.pop();if(typeof s==="function")s.call(null,r)}else{var a=Date.now()-o,c=Math.max(o-i,1),u=Math.min(c*1.2,100);if(a>=u)gi("RETRY",t.name,n),t.apply(null,n.concat([i]));else Oe[et].push(e)}if(Ru===void 0)Ru=setTimeout(Kh,0)}});var g1=R(function(Phe,p1){function qt(e,t){if(typeof t==="boolean")t={forever:t};if(this._originalTimeouts=JSON.parse(JSON.stringify(e)),this._timeouts=e,this._options=t||{},this._maxRetryTime=t&&t.maxRetryTime||1/0,this._fn=null,this._errors=[],this._attempts=1,this._operationTimeout=null,this._operationTimeoutCb=null,this._timeout=null,this._operationStart=null,this._options.forever)this._cachedTimeouts=this._timeouts.slice(0)}p1.exports=qt;qt.prototype.reset=function(){this._attempts=1,this._timeouts=this._originalTimeouts};qt.prototype.stop=function(){if(this._timeout)clearTimeout(this._timeout);this._timeouts=[],this._cachedTimeouts=null};qt.prototype.retry=function(e){if(this._timeout)clearTimeout(this._timeout);if(!e)return!1;var t=new Date().getTime();if(e&&t-this._operationStart>=this._maxRetryTime)return this._errors.unshift(Error("RetryOperation timeout occurred")),!1;this._errors.push(e);var n=this._timeouts.shift();if(n===void 0)if(this._cachedTimeouts)this._errors.splice(this._errors.length-1,this._errors.length),this._timeouts=this._cachedTimeouts.slice(0),n=this._timeouts.shift();else return!1;var r=this,i=setTimeout(function(){if(r._attempts++,r._operationTimeoutCb){if(r._timeout=setTimeout(function(){r._operationTimeoutCb(r._attempts)},r._operationTimeout),r._options.unref)r._timeout.unref()}r._fn(r._attempts)},n);if(this._options.unref)i.unref();return!0};qt.prototype.attempt=function(e,t){if(this._fn=e,t){if(t.timeout)this._operationTimeout=t.timeout;if(t.cb)this._operationTimeoutCb=t.cb}var n=this;if(this._operationTimeoutCb)this._timeout=setTimeout(function(){n._operationTimeoutCb()},n._operationTimeout);this._operationStart=new Date().getTime(),this._fn(this._attempts)};qt.prototype.try=function(e){console.log("Using RetryOperation.try() is deprecated"),this.attempt(e)};qt.prototype.start=function(e){console.log("Using RetryOperation.start() is deprecated"),this.attempt(e)};qt.prototype.start=qt.prototype.try;qt.prototype.errors=function(){return this._errors};qt.prototype.attempts=function(){return this._attempts};qt.prototype.mainError=function(){if(this._errors.length===0)return null;var e={},t=null,n=0;for(var r=0;r<this._errors.length;r++){var i=this._errors[r],o=i.message,s=(e[o]||0)+1;if(e[o]=s,s>=n)t=i,n=s}return t}});var y1=R(function(WM){var LM=g1();WM.operation=function(e){var t=WM.timeouts(e);return new LM(t,{forever:e&&e.forever,unref:e&&e.unref,maxRetryTime:e&&e.maxRetryTime})};WM.timeouts=function(e){if(e instanceof Array)return[].concat(e);var t={retries:10,factor:2,minTimeout:1000,maxTimeout:1/0,randomize:!1};for(var n in e)t[n]=e[n];if(t.minTimeout>t.maxTimeout)throw Error("minTimeout is greater than maxTimeout");var r=[];for(var i=0;i<t.retries;i++)r.push(this.createTimeout(i,t));if(e&&e.forever&&!r.length)r.push(this.createTimeout(i,t));return r.sort(function(o,s){return o-s}),r};WM.createTimeout=function(e,t){var n=t.randomize?Math.random()+1:1,r=Math.round(n*t.minTimeout*Math.pow(t.factor,e));return r=Math.min(r,t.maxTimeout),r};WM.wrap=function(e,t,n){if(t instanceof Array)n=t,t=null;if(!n){n=[];for(var r in e)if(typeof e[r]==="function")n.push(r)}for(var i=0;i<n.length;i++){var o=n[i],s=e[o];e[o]=function(c){var u=WM.operation(t),d=Array.prototype.slice.call(arguments,1),f=d.pop();d.push(function(h){if(u.retry(h))return;if(h)arguments[0]=u.mainError();f.apply(this,arguments)}),u.attempt(function(){c.apply(e,d)})}.bind(e,s),e[o].options=t}}});var b1=R(function(Mhe,Ou){Ou.exports=["SIGABRT","SIGALRM","SIGHUP","SIGINT","SIGTERM"];if(process.platform!=="win32")Ou.exports.push("SIGVTALRM","SIGXCPU","SIGXFSZ","SIGUSR2","SIGTRAP","SIGSYS","SIGQUIT","SIGIOT");if(process.platform==="linux")Ou.exports.push("SIGIO","SIGPOLL","SIGPWR","SIGSTKFLT","SIGUNUSED")});var v1=R(function(Nhe,uo){var Re=global.process,mi=function(e){return e&&typeof e==="object"&&typeof e.removeListener==="function"&&typeof e.emit==="function"&&typeof e.reallyExit==="function"&&typeof e.listeners==="function"&&typeof e.kill==="function"&&typeof e.pid==="number"&&typeof e.on==="function"};if(!mi(Re))uo.exports=function(){return function(){}};else{if(Jh=re("assert"),yi=b1(),Qh=/^win/i.test(Re.platform),co=re("events"),typeof co!=="function")co=co.EventEmitter;if(Re.__signal_exit_emitter__)He=Re.__signal_exit_emitter__;else He=Re.__signal_exit_emitter__=new co,He.count=0,He.emitted={};if(!He.infinite)He.setMaxListeners(1/0),He.infinite=!0;uo.exports=function(e,t){if(!mi(global.process))return function(){};if(Jh.equal(typeof e,"function","a callback must be provided for exit handler"),bi===!1)Pu();var n="exit";if(t&&t.alwaysLast)n="afterexit";var r=function(){if(He.removeListener(n,e),He.listeners("exit").length===0&&He.listeners("afterexit").length===0)qs()};return He.on(n,e),r},qs=function(){if(!bi||!mi(global.process))return;bi=!1,yi.forEach(function(t){try{Re.removeListener(t,$s[t])}catch(n){}}),Re.emit=Hs,Re.reallyExit=Iu,He.count-=1},uo.exports.unload=qs,kr=function(t,n,r){if(He.emitted[t])return;He.emitted[t]=!0,He.emit(t,n,r)},$s={},yi.forEach(function(e){$s[e]=function(){if(!mi(global.process))return;var n=Re.listeners(e);if(n.length===He.count){if(qs(),kr("exit",null,e),kr("afterexit",null,e),Qh&&e==="SIGHUP")e="SIGINT";Re.kill(Re.pid,e)}}}),uo.exports.signals=function(){return yi},bi=!1,Pu=function(){if(bi||!mi(global.process))return;bi=!0,He.count+=1,yi=yi.filter(function(t){try{return Re.on(t,$s[t]),!0}catch(n){return!1}}),Re.emit=tp,Re.reallyExit=ep},uo.exports.load=Pu,Iu=Re.reallyExit,ep=function(t){if(!mi(global.process))return;Re.exitCode=t||0,kr("exit",Re.exitCode,null),kr("afterexit",Re.exitCode,null),Iu.call(Re,Re.exitCode)},Hs=Re.emit,tp=function(t,n){if(t==="exit"&&mi(global.process)){if(n!==void 0)Re.exitCode=n;var r=Hs.apply(this,arguments);return kr("exit",Re.exitCode,null),kr("afterexit",Re.exitCode,null),r}else return Hs.apply(this,arguments)}}var Jh,yi,Qh,co,He,qs,kr,$s,bi,Pu,Iu,ep,Hs,tp});var _1=R(function(zM,np){var x1=Symbol();function HM(e,t,n){let r=t[x1];if(r)return t.stat(e,(o,s)=>{if(o)return n(o);n(null,s.mtime,r)});let i=new Date(Math.ceil(Date.now()/1000)*1000+5);t.utimes(e,i,i,(o)=>{if(o)return n(o);t.stat(e,(s,a)=>{if(s)return n(s);let c=a.mtime.getTime()%1000===0?"s":"ms";Object.defineProperty(t,x1,{value:c}),n(null,a.mtime,c)})})}function GM(e){let t=Date.now();if(e==="s")t=Math.ceil(t/1000)*1000;return new Date(t)}zM.probe=HM;zM.getMtime=GM});var S1=R(function(tN,zs){var KM=re("path"),op=Yh(),ZM=y1(),YM=v1(),w1=_1(),zn={};function Gs(e,t){return t.lockfilePath||`${e}.lock`}function sp(e,t,n){if(!t.realpath)return n(null,KM.resolve(e));t.fs.realpath(e,n)}function ip(e,t,n){let r=Gs(e,t);t.fs.mkdir(r,(i)=>{if(!i)return w1.probe(r,t.fs,(o,s,a)=>{if(o)return t.fs.rmdir(r,()=>{}),n(o);n(null,s,a)});if(i.code!=="EEXIST")return n(i);if(t.stale<=0)return n(Object.assign(Error("Lock file is already being held"),{code:"ELOCKED",file:e}));t.fs.stat(r,(o,s)=>{if(o){if(o.code==="ENOENT")return ip(e,{...t,stale:0},n);return n(o)}if(!D1(s,t))return n(Object.assign(Error("Lock file is already being held"),{code:"ELOCKED",file:e}));E1(e,t,(a)=>{if(a)return n(a);ip(e,{...t,stale:0},n)})})})}function D1(e,t){return e.mtime.getTime()<Date.now()-t.stale}function E1(e,t,n){t.fs.rmdir(Gs(e,t),(r)=>{if(r&&r.code!=="ENOENT")return n(r);n()})}function Mu(e,t){let n=zn[e];if(n.updateTimeout)return;if(n.updateDelay=n.updateDelay||t.update,n.updateTimeout=setTimeout(()=>{n.updateTimeout=null,t.fs.stat(n.lockfilePath,(r,i)=>{let o=n.lastUpdate+t.stale<Date.now();if(r){if(r.code==="ENOENT"||o)return rp(e,n,Object.assign(r,{code:"ECOMPROMISED"}));return n.updateDelay=1000,Mu(e,t)}if(n.mtime.getTime()!==i.mtime.getTime())return rp(e,n,Object.assign(Error("Unable to update lock within the stale threshold"),{code:"ECOMPROMISED"}));let a=w1.getMtime(n.mtimePrecision);t.fs.utimes(n.lockfilePath,a,a,(c)=>{let u=n.lastUpdate+t.stale<Date.now();if(n.released)return;if(c){if(c.code==="ENOENT"||u)return rp(e,n,Object.assign(c,{code:"ECOMPROMISED"}));return n.updateDelay=1000,Mu(e,t)}n.mtime=a,n.lastUpdate=Date.now(),n.updateDelay=null,Mu(e,t)})})},n.updateDelay),n.updateTimeout.unref)n.updateTimeout.unref()}function rp(e,t,n){if(t.released=!0,t.updateTimeout)clearTimeout(t.updateTimeout);if(zn[e]===t)delete zn[e];t.options.onCompromised(n)}function JM(e,t,n){t={stale:1e4,update:null,realpath:!0,retries:0,fs:op,onCompromised:(r)=>{throw r},...t},t.retries=t.retries||0,t.retries=typeof t.retries==="number"?{retries:t.retries}:t.retries,t.stale=Math.max(t.stale||0,2000),t.update=t.update==null?t.stale/2:t.update||0,t.update=Math.max(Math.min(t.update,t.stale/2),1000),sp(e,t,(r,i)=>{if(r)return n(r);let o=ZM.operation(t.retries);o.attempt(()=>{ip(i,t,(s,a,c)=>{if(o.retry(s))return;if(s)return n(o.mainError());let u=zn[i]={lockfilePath:Gs(i,t),mtime:a,mtimePrecision:c,options:t,lastUpdate:Date.now()};Mu(i,t),n(null,(d)=>{if(u.released)return d&&d(Object.assign(Error("Lock is already released"),{code:"ERELEASED"}));T1(i,{...t,realpath:!1},d)})})})})}function T1(e,t,n){t={fs:op,realpath:!0,...t},sp(e,t,(r,i)=>{if(r)return n(r);let o=zn[i];if(!o)return n(Object.assign(Error("Lock is not acquired/owned by you"),{code:"ENOTACQUIRED"}));o.updateTimeout&&clearTimeout(o.updateTimeout),o.released=!0,delete zn[i],E1(i,t,n)})}function QM(e,t,n){t={stale:1e4,realpath:!0,fs:op,...t},t.stale=Math.max(t.stale||0,2000),sp(e,t,(r,i)=>{if(r)return n(r);t.fs.stat(Gs(i,t),(o,s)=>{if(o)return o.code==="ENOENT"?n(null,!1):n(o);return n(null,!D1(s,t))})})}function eN(){return zn}YM(()=>{for(let e in zn){let t=zn[e].options;try{t.fs.rmdirSync(Gs(e,t))}catch(n){}}});tN.lock=JM;tN.unlock=T1;tN.check=QM;tN.getLocks=eN});var A1=R(function(Bhe,C1){var sN=Yh();function aN(e){let t=["mkdir","realpath","stat","rmdir","utimes"],n={...e};return t.forEach((r)=>{n[r]=(...i)=>{let o=i.pop(),s;try{s=e[`${r}Sync`](...i)}catch(a){return o(a)}o(null,s)}}),n}function cN(e){return(...t)=>new Promise((n,r)=>{t.push((i,o)=>{if(i)r(i);else n(o)}),e(...t)})}function uN(e){return(...t)=>{let n,r;if(t.push((i,o)=>{n=i,r=o}),e(...t),n)throw n;return r}}function lN(e){if(e={...e},e.fs=aN(e.fs||sN),typeof e.retries==="number"&&e.retries>0||e.retries&&typeof e.retries.retries==="number"&&e.retries.retries>0)throw Object.assign(Error("Cannot use retries with the sync api"),{code:"ESYNC"});return e}C1.exports={toPromise:cN,toSync:uN,toSyncOptions:lN}});var k1=R(function(Lhe,Rr){var lo=S1(),{toPromise:Nu,toSync:Bu,toSyncOptions:ap}=A1();async function U1(e,t){let n=await Nu(lo.lock)(e,t);return Nu(n)}function dN(e,t){let n=Bu(lo.lock)(e,ap(t));return Bu(n)}function fN(e,t){return Nu(lo.unlock)(e,t)}function hN(e,t){return Bu(lo.unlock)(e,ap(t))}function pN(e,t){return Nu(lo.check)(e,t)}function gN(e,t){return Bu(lo.check)(e,ap(t))}Rr.exports=U1;Rr.exports.lock=U1;Rr.exports.unlock=fN;Rr.exports.lockSync=dN;Rr.exports.unlockSync=hN;Rr.exports.check=pN;Rr.exports.checkSync=gN});var Yw=R(function(Zw){Object.defineProperty(Zw,"__esModule",{value:!0});var Tp="1.13.8",y_=typeof self=="object"&&self.self===self&&self||typeof global=="object"&&global.global===global&&global||Function("return this")()||{},Ju=Array.prototype,Sp=Object.prototype,b_=typeof Symbol<"u"?Symbol.prototype:null,vB=Ju.push,Js=Ju.slice,Ks=Sp.toString,xB=Sp.hasOwnProperty,T_=typeof ArrayBuffer<"u",_B=typeof DataView<"u",wB=Array.isArray,v_=Object.keys,x_=Object.create,__=T_&&ArrayBuffer.isView,DB=isNaN,EB=isFinite,S_=!{toString:null}.propertyIsEnumerable("toString"),w_=["valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],TB=Math.pow(2,53)-1;function vt(e,t){return t=t==null?e.length-1:+t,function(){var n=Math.max(arguments.length-t,0),r=Array(n),i=0;for(;i<n;i++)r[i]=arguments[i+t];switch(t){case 0:return e.call(this,r);case 1:return e.call(this,arguments[0],r);case 2:return e.call(this,arguments[0],arguments[1],r)}var o=Array(t+1);for(i=0;i<t;i++)o[i]=arguments[i];return o[t]=r,e.apply(this,o)}}function Pr(e){var t=typeof e;return t==="function"||t==="object"&&!!e}function C_(e){return e===null}function Cp(e){return e===void 0}function Ap(e){return e===!0||e===!1||Ks.call(e)==="[object Boolean]"}function A_(e){return!!(e&&e.nodeType===1)}function dt(e){var t="[object "+e+"]";return function(n){return Ks.call(n)===t}}var Qu=dt("String"),Up=dt("Number"),U_=dt("Date"),k_=dt("RegExp"),R_=dt("Error"),kp=dt("Symbol"),Rp=dt("ArrayBuffer"),F_=dt("Function"),SB=y_.document&&y_.document.childNodes;if(typeof Int8Array!="object"&&typeof SB!="function")F_=function(e){return typeof e=="function"||!1};var lt=F_,O_=dt("Object"),P_=_B&&(!/\[native code\]/.test(String(DataView))||O_(new DataView(new ArrayBuffer(8)))),Fp=typeof Map<"u"&&O_(new Map),CB=dt("DataView");function AB(e){return e!=null&&lt(e.getInt8)&&Rp(e.buffer)}var Zs=P_?AB:CB,Ir=wB||dt("Array");function Mr(e,t){return e!=null&&xB.call(e,t)}var xp=dt("Arguments");(function(){if(!xp(arguments))xp=function(e){return Mr(e,"callee")}})();var el=xp;function I_(e){return!kp(e)&&EB(e)&&!isNaN(parseFloat(e))}function Op(e){return Up(e)&&DB(e)}function Pp(e){return function(){return e}}function M_(e){return function(t){var n=e(t);return typeof n=="number"&&n>=0&&n<=TB}}function N_(e){return function(t){return t==null?void 0:t[e]}}var zu=N_("byteLength"),UB=M_(zu),kB=/\[object ((I|Ui)nt(8|16|32)|Float(32|64)|Uint8Clamped|Big(I|Ui)nt64)Array\]/;function RB(e){return __?__(e)&&!Zs(e):UB(e)&&kB.test(Ks.call(e))}var Ip=T_?RB:Pp(!1),ut=N_("length");function FB(e){var t={};for(var n=e.length,r=0;r<n;++r)t[e[r]]=!0;return{contains:function(i){return t[i]===!0},push:function(i){return t[i]=!0,e.push(i)}}}function B_(e,t){t=FB(t);var n=w_.length,r=e.constructor,i=lt(r)&&r.prototype||Sp,o="constructor";if(Mr(e,o)&&!t.contains(o))t.push(o);while(n--)if(o=w_[n],o in e&&e[o]!==i[o]&&!t.contains(o))t.push(o)}function Ge(e){if(!Pr(e))return[];if(v_)return v_(e);var t=[];for(var n in e)if(Mr(e,n))t.push(n);if(S_)B_(e,t);return t}function L_(e){if(e==null)return!0;var t=ut(e);if(typeof t=="number"&&(Ir(e)||Qu(e)||el(e)))return t===0;return ut(Ge(e))===0}function Mp(e,t){var n=Ge(t),r=n.length;if(e==null)return!r;var i=Object(e);for(var o=0;o<r;o++){var s=n[o];if(t[s]!==i[s]||!(s in i))return!1}return!0}function ve(e){if(e instanceof ve)return e;if(!(this instanceof ve))return new ve(e);this._wrapped=e}ve.VERSION=Tp;ve.prototype.value=function(){return this._wrapped};ve.prototype.valueOf=ve.prototype.toJSON=ve.prototype.value;ve.prototype.toString=function(){return String(this._wrapped)};function D_(e){return new Uint8Array(e.buffer||e,e.byteOffset||0,zu(e))}var E_="[object DataView]";function W_(e,t){var n=[{a:e,b:t}],r=[],i=[];while(n.length){var o=n.pop();if(o===!0){r.pop(),i.pop();continue}if(e=o.a,t=o.b,e===t){if(e!==0||1/e===1/t)continue;return!1}if(e==null||t==null)return!1;if(e!==e){if(t!==t)continue;return!1}var s=typeof e;if(s!=="function"&&s!=="object"&&typeof t!="object")return!1;if(e instanceof ve)e=e._wrapped;if(t instanceof ve)t=t._wrapped;var a=Ks.call(e);if(a!==Ks.call(t))return!1;if(P_&&a=="[object Object]"&&Zs(e)){if(!Zs(t))return!1;a=E_}switch(a){case"[object RegExp]":case"[object String]":if(""+e===""+t)continue;return!1;case"[object Number]":n.push({a:+e,b:+t});continue;case"[object Date]":case"[object Boolean]":if(+e===+t)continue;return!1;case"[object Symbol]":if(b_.valueOf.call(e)===b_.valueOf.call(t))continue;return!1;case"[object ArrayBuffer]":case E_:n.push({a:D_(e),b:D_(t)});continue}var c=a==="[object Array]";if(!c&&Ip(e)){var u=zu(e);if(u!==zu(t))return!1;if(e.buffer===t.buffer&&e.byteOffset===t.byteOffset)continue;c=!0}if(!c){if(typeof e!="object"||typeof t!="object")return!1;var d=e.constructor,f=t.constructor;if(d!==f&&!(lt(d)&&d instanceof d&&lt(f)&&f instanceof f)&&(("constructor"in e)&&("constructor"in t)))return!1}var h=r.length;while(h--)if(r[h]===e){if(i[h]===t)break;return!1}if(h>=0)continue;if(r.push(e),i.push(t),n.push(!0),c){if(h=e.length,h!==t.length)return!1;while(h--)n.push({a:e[h],b:t[h]})}else{var p=Ge(e),g;if(h=p.length,Ge(t).length!==h)return!1;while(h--){if(g=p[h],!Mr(t,g))return!1;n.push({a:e[g],b:t[g]})}}}return!0}function mo(e){if(!Pr(e))return[];var t=[];for(var n in e)t.push(n);if(S_)B_(e,t);return t}function Np(e){var t=ut(e);return function(n){if(n==null)return!1;var r=mo(n);if(ut(r))return!1;for(var i=0;i<t;i++)if(!lt(n[e[i]]))return!1;return e!==$_||!lt(n[Bp])}}var Bp="forEach",j_="has",Lp=["clear","delete"],q_=["get",j_,"set"],OB=Lp.concat(Bp,q_),$_=Lp.concat(q_),PB=["add"].concat(Lp,Bp,j_),H_=Fp?Np(OB):dt("Map"),G_=Fp?Np($_):dt("WeakMap"),z_=Fp?Np(PB):dt("Set"),V_=dt("WeakSet");function xi(e){var t=Ge(e),n=t.length,r=Array(n);for(var i=0;i<n;i++)r[i]=e[t[i]];return r}function X_(e){var t=Ge(e),n=t.length,r=Array(n);for(var i=0;i<n;i++)r[i]=[t[i],e[t[i]]];return r}function Wp(e){var t={},n=Ge(e);for(var r=0,i=n.length;r<i;r++)t[e[n[r]]]=n[r];return t}function Vu(e){var t=[];for(var n in e)if(lt(e[n]))t.push(n);return t.sort()}function jp(e,t){return function(n){var r=arguments.length;if(t)n=Object(n);if(r<2||n==null)return n;for(var i=1;i<r;i++){var o=arguments[i],s=e(o),a=s.length;for(var c=0;c<a;c++){var u=s[c];if(!t||n[u]===void 0)n[u]=o[u]}}return n}}var qp=jp(mo),Ys=jp(Ge),$p=jp(mo,!0);function IB(){return function(){}}function K_(e){if(!Pr(e))return{};if(x_)return x_(e);var t=IB();t.prototype=e;var n=new t;return t.prototype=null,n}function Z_(e,t){var n=K_(e);if(t)Ys(n,t);return n}function Y_(e){if(!Pr(e))return e;return Ir(e)?e.slice():qp({},e)}function J_(e,t){return t(e),e}function Hp(e){return Ir(e)?e:[e]}ve.toPath=Hp;function Qs(e){return ve.toPath(e)}function Gp(e,t){var n=t.length;for(var r=0;r<n;r++){if(e==null)return;e=e[t[r]]}return n?e:void 0}function zp(e,t,n){var r=Gp(e,Qs(t));return Cp(r)?n:r}function Q_(e,t){t=Qs(t);var n=t.length;for(var r=0;r<n;r++){var i=t[r];if(!Mr(e,i))return!1;e=e[i]}return!!n}function tl(e){return e}function po(e){return e=Ys({},e),function(t){return Mp(t,e)}}function nl(e){return e=Qs(e),function(t){return Gp(t,e)}}function ea(e,t,n){if(t===void 0)return e;switch(n==null?3:n){case 1:return function(r){return e.call(t,r)};case 3:return function(r,i,o){return e.call(t,r,i,o)};case 4:return function(r,i,o,s){return e.call(t,r,i,o,s)}}return function(){return e.apply(t,arguments)}}function ew(e,t,n){if(e==null)return tl;if(lt(e))return ea(e,t,n);if(Pr(e)&&!Ir(e))return po(e);return nl(e)}function rl(e,t){return ew(e,t,1/0)}ve.iteratee=rl;function Tt(e,t,n){if(ve.iteratee!==rl)return ve.iteratee(e,t);return ew(e,t,n)}function tw(e,t,n){t=Tt(t,n);var r=Ge(e),i=r.length,o={};for(var s=0;s<i;s++){var a=r[s];o[a]=t(e[a],a,e)}return o}function Vp(){}function nw(e){if(e==null)return Vp;return function(t){return zp(e,t)}}function rw(e,t,n){var r=Array(Math.max(0,e));t=ea(t,n,1);for(var i=0;i<e;i++)r[i]=t(i);return r}function Xu(e,t){if(t==null)t=e,e=0;return e+Math.floor(Math.random()*(t-e+1))}var go=Date.now||function(){return new Date().getTime()};function iw(e){var t=function(o){return e[o]},n="(?:"+Ge(e).join("|")+")",r=RegExp(n),i=RegExp(n,"g");return function(o){return o=o==null?"":""+o,r.test(o)?o.replace(i,t):o}}var ow={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;","`":"&#x60;"},sw=iw(ow),MB=Wp(ow),aw=iw(MB),cw=ve.templateSettings={evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g},vp=/(.)^/,NB={"'":"'","\\":"\\","\r":"r","\n":"n","\u2028":"u2028","\u2029":"u2029"},BB=/\\|'|\r|\n|\u2028|\u2029/g;function LB(e){return"\\"+NB[e]}var WB=/^\s*(\w|\$)+\s*$/;function uw(e,t,n){if(!t&&n)t=n;t=$p({},t,ve.templateSettings);var r=RegExp([(t.escape||vp).source,(t.interpolate||vp).source,(t.evaluate||vp).source].join("|")+"|$","g"),i=0,o="__p+='";e.replace(r,function(u,d,f,h,p){if(o+=e.slice(i,p).replace(BB,LB),i=p+u.length,d)o+=`'+
6
+ `)},s4=(e)=>{let t=e.socket.encrypted?"https":"http",n=new URL(e.url??"/",`${t}://${e.headers.host??"localhost"}`),r=new Headers;for(let i in e.headers){let o=e.headers[i];if(!o)continue;r.append(i,Array.isArray(o)?o[0]:o)}return new Request(n,{headers:r})},a4=(e)=>{let{server:t,fetchCallback:n,wss:r}=e,i=new Map;r.on("connection",(a,c)=>{let u=i.get(c);if(u)u.resolve(a),i.delete(c)});let o=(a)=>{let c=i.get(a);if(c)i.delete(a),c.reject(Error("WebSocket handshake aborted"))},s=(a,c)=>new Promise((u,d)=>{i.set(a,{resolve:u,reject:d,connectionSymbol:c})});t.on("upgrade",async(a,c,u)=>{if(a.headers.upgrade?.toLowerCase()!=="websocket")return;let d={incoming:a,outgoing:void 0,wss:r,[c0]:s},f=400,h;try{let v=await n(s4(a),d);if(v instanceof Response)f=v.status,h=v.headers}catch{if(t.listenerCount("upgrade")===1)Xx(c,500);return}let p=i.get(a);if(!p||p.connectionSymbol!==d[a0]){if(o(a),t.listenerCount("upgrade")===1)Xx(c,f,h);return}let g=(v)=>{u0(v,h)},y=()=>o(a);c.once("close",y),r.on("headers",g);try{r.handleUpgrade(a,c,u,(v)=>{c.off("close",y),r.emit("connection",v,a)})}finally{r.off("headers",g)}}),t.on("close",()=>{r.close()})},c4,l0=(e)=>{let t=e.fetch,n=s0(t,{hostname:e.hostname,overrideGlobalObjects:e.overrideGlobalObjects,autoCleanupIncoming:e.autoCleanupIncoming}),r=(e.createServer||DI)(e.serverOptions||{},n);if(e.websocket&&e.websocket.server){if(e.websocket.server.options.noServer!==!0)throw Error("WebSocket server must be created with { noServer: true } option");a4({server:r,fetchCallback:t,wss:e.websocket.server})}return r},Jf=(e,t)=>{let n=l0(e);return n.listen(e?.port??3000,e.hostname,()=>{let r=n.address();t&&t(r)}),n};var Qf=me(()=>{Mx();Wf();nn=class extends Error{constructor(e,t){super(e,t);this.name="RequestError"}},TI=new Set(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","server","user-agent"]),SI=/^[!#$%&'*+\-.^_`|~\dA-Za-z]+$/,jx=/[\0\r\n]/,Xf=globalThis.Headers,Kf=class{#e;#t;#n;#o;constructor(e){if(this.#e=e,e instanceof mr)this.#t=e.rawHeaders.slice()}get#i(){return this.#t??=this.#e.rawHeaders.slice()}get#r(){if(!this.#n)this.#n=Kx(this.#i),this.#t=void 0;return this.#n}#c(e){if(typeof e!=="string")return;if(!SI.test(e))throw TypeError(`Invalid header name: ${e}`);return e.toLowerCase()}#s(e){let t=this.#e instanceof mr?void 0:this.#e.headers;if(!t||TI.has(e)||e==="set-cookie"||e==="__proto__")return;if(!Object.hasOwn(t,e))return null;let n=t[e];if(typeof n==="string"){let r=Wx(n);return jx.test(r)?void 0:r}}#a(e,t){let n=t==="cookie"?"; ":", ",r=null;for(let i=0;i<e.length;i+=2){let o=e[i];if(o.length===t.length&&o.toLowerCase()===t){let s=Wx(e[i+1]);if(jx.test(s)){this.#o=!0;return}r=r===null?s:r+n+s}}return r}append(e,t){this.#r.append(e,t)}delete(e){this.#r.delete(e)}get(e){let t=this.#c(e);if(t&&!this.#n&&!this.#o){let n=this.#s(t);if(n!==void 0)return n;let r=this.#a(this.#i,t);if(r!==void 0)return r}return this.#r.get(e)}has(e){let t=this.#c(e);if(t&&!this.#n&&!this.#o){let n=this.#s(t);if(n!==void 0)return n!==null;let r=this.#a(this.#i,t);if(r!==void 0)return r!==null}return this.#r.has(e)}set(e,t){this.#r.set(e,t)}getSetCookie(){return this.#r.getSetCookie()}keys(){return this.#r.keys()}values(){return this.#r.values()}entries(){return this.#r.entries()}forEach(e,t){this.#r.forEach((n,r)=>{e.call(t,n,r,this)})}[Symbol.iterator](){return this.entries()}};Object.defineProperty(Kf.prototype,Symbol.for("nodejs.util.inspect.custom"),{value:function(e,t,n){return`Headers (lightweight) ${n(Object.fromEntries(this),{...t,depth:e==null?null:e-1})}`}});Object.setPrototypeOf(Kf.prototype,Xf.prototype);CI=/^\/[!#$&-;=?-\[\]_a-z~]*$/,AI=/\/\.\.?(?:[/?#]|$)/,UI=/^[a-z0-9._-]+(?::(?:[1-5]\d{3,4}|[6-9]\d{3}))?$/,FI=global.Request,Ji=class extends FI{constructor(e,t){if(typeof e==="object"&&yr in e){let n=t!==void 0&&"body"in t&&t.body!=null;if(e[$n]&&!n)throw TypeError("Cannot construct a Request with a Request object that has already been used.");e=e[yr]()}if(typeof t?.body?.getReader<"u")t.duplex??="half";super(e,t)}},Yx=Symbol("wrapBodyStream"),OI=new Set(["latin1","binary","hex","base64","base64url"]),jf=Symbol("bodyBufferedBeforeDisconnect"),qf=Symbol("bodyBufferedLengthBeforeDisconnect"),yr=Symbol("getRequestCache"),jn=Symbol("requestCache"),Qi=Symbol("incomingKey"),ks=Symbol("urlKey"),Qx=Symbol("methodKey"),e0=Symbol("headersKey"),As=Symbol("abortControllerKey"),$f=Symbol("getAbortController"),Hf=Symbol("abortRequest"),gr=Symbol("bodyBuffer"),Wc=Symbol("bodyReadPromise"),$n=Symbol("bodyConsumedDirectly"),Hx=Symbol("bodyLockReader"),Us=Symbol("abortReason"),MI=new TextDecoder,WI=/^[!#$%&'*+\-.^_`|~0-9A-Za-z]+$/,yn={get method(){return this[Qx]},get url(){return this[ks]},get headers(){return this[e0]||=Zx(this[Qi])},[Hf](e){if(this[Us]===void 0)this[Us]=e;let t=this[As];if(t&&!t.signal.aborted)t.abort(e)},[$f](){if(this[As]||=new AbortController,this[Us]!==void 0&&!this[As].signal.aborted)this[As].abort(this[Us]);return this[As]},[yr](){let e=this[$f]();if(this[jn])return this[jn];let t=this.method;if(this[$n]&&!(t==="GET"||t==="HEAD")){this[gr]=void 0;let n={method:t==="TRACE"?"GET":t,headers:this.headers,signal:e.signal};if(t!=="TRACE")n.body=new ReadableStream({start(i){i.close()}}),n.duplex="half";let r=new Ji(this[ks],n);if(t==="TRACE")Object.defineProperty(r,"method",{get(){return"TRACE"}});return this[jn]=r}return this[jn]=II(this.method,this[ks],this.headers,this[Qi],e)},get body(){if(!this[$n])return this[yr]().body;let e=this[yr]();if(!this[Hx]&&e.body)this[Hx]=e.body.getReader();return e.body},get bodyUsed(){if(this[$n])return!0;if(this[jn])return this[jn].bodyUsed;return!1}};Object.defineProperty(yn,"signal",{get(){return this[$f]().signal}});["cache","credentials","destination","integrity","mode","redirect","referrer","referrerPolicy","keepalive"].forEach((e)=>{Object.defineProperty(yn,e,{get(){return this[yr]()[e]}})});["clone","formData"].forEach((e)=>{Object.defineProperty(yn,e,{value:function(){if(this[$n]){if(e==="clone")throw qc();return Rs()}return this[yr]()[e]()}})});Object.defineProperty(yn,"text",{value:function(){return Yf(this,"text",(e)=>MI.decode(e))}});Object.defineProperty(yn,"arrayBuffer",{value:function(){return Yf(this,"arrayBuffer",(e)=>BI(e))}});Object.defineProperty(yn,"blob",{value:function(){return Yf(this,"blob",(e,t)=>{let n=LI(t);return new Response(e,n?{headers:{"content-type":n}}:void 0).blob()})}});Object.defineProperty(yn,"json",{value:function(){if(this[$n])return Rs();return this.text().then(JSON.parse)}});Object.defineProperty(yn,Symbol.for("nodejs.util.inspect.custom"),{value:function(e,t,n){return`Request (lightweight) ${n({method:this.method,url:this.url,headers:this.headers,nativeRequest:this[jn]},{...t,depth:e==null?null:e-1})}`}});Object.setPrototypeOf(yn,Ji.prototype);Gf=Symbol("responseCache"),Yi=Symbol("getResponseCache"),qn=Symbol("cache"),$c=global.Response,mn=class e{#e;#t;[Yi](){let t=this[qn],n=t&&t[2]instanceof Headers?t[2]:void 0;return delete this[qn],this[Gf]||=new $c(this.#e,n?{status:this.#t?.status,statusText:this.#t?.statusText,headers:n}:this.#t)}constructor(t,n){let r;if(this.#e=t,n instanceof $c){let i=n[Gf];if(i){this.#t=i,this[Yi]();return}this.#t=n instanceof e?n.#t:n,r=new Headers(n.headers)}else this.#t=n;if(t==null||typeof t==="string"||typeof t?.getReader<"u"||t instanceof Blob||t instanceof Uint8Array)this[qn]=[n?.status||200,t??null,r||n?.headers]}get headers(){let t=this[qn];if(t){if(!(t[2]instanceof Headers))t[2]=new Headers(t[2]||(t[1]===null?void 0:{"content-type":pr}));return t[2]}return this[Yi]().headers}get status(){return this[qn]?.[0]??this[Yi]().status}get ok(){let t=this.status;return t>=200&&t<300}};["body","bodyUsed","redirected","statusText","trailers","type","url"].forEach((e)=>{Object.defineProperty(mn.prototype,e,{get(){return this[Yi]()[e]}})});["arrayBuffer","blob","clone","formData","json","text"].forEach((e)=>{Object.defineProperty(mn.prototype,e,{value:function(){return this[Yi]()[e]()}})});Object.defineProperty(mn.prototype,Symbol.for("nodejs.util.inspect.custom"),{value:function(e,t,n){return`Response (lightweight) ${n({status:this.status,headers:this.headers,ok:this.ok,nativeResponse:this[Gf]},{...t,depth:e==null?null:e-1})}`}});Object.setPrototypeOf(mn,$c);Object.setPrototypeOf(mn.prototype,$c.prototype);zI=/^https?:\/\/[!#-;=?-[\]_a-z~A-Z]+$/,XI=new Set([301,302,303,307,308]);Object.defineProperty(mn,"redirect",{value:function(t,n=302){if(!XI.has(n))throw RangeError("Invalid status code");return new mn(null,{status:n,headers:{location:VI(t)}})},writable:!0,configurable:!0});Object.defineProperty(mn,"json",{value:function(t,n){let r=JSON.stringify(t);if(r===void 0)throw TypeError("The data is not JSON serializable");let i=n?.headers,o;if(i){if(o=new Headers(i),!o.has("content-type"))o.set("content-type","application/json")}else o={"content-type":"application/json"};return new mn(r,{status:n?.status??200,statusText:n?.statusText,headers:o})},writable:!0,configurable:!0});Hc=Symbol("outgoingEnded"),Vx=Symbol("incomingDraining"),n4=globalThis.CloseEvent??class extends Event{#e;constructor(e,t={}){super(e,t);this.#e=t}get wasClean(){return this.#e.wasClean??!1}get code(){return this.#e.code??0}get reason(){return this.#e.reason??""}},r4=globalThis.ErrorEvent??class extends Event{#e;constructor(e,t={}){super(e,t);this.#e=t}get message(){return this.#e.message??""}get filename(){return this.#e.filename??""}get lineno(){return this.#e.lineno??0}get colno(){return this.#e.colno??0}get error(){return this.#e.error??null}},a0=Symbol("CONNECTION_SYMBOL_KEY"),c0=Symbol("WAIT_FOR_WEBSOCKET_SYMBOL"),o4=new Set(["connection","content-length","keep-alive","proxy-authenticate","proxy-authorization","te","trailer","transfer-encoding","upgrade","sec-websocket-accept","sec-websocket-extensions","sec-websocket-protocol"]),c4=Bc(async(e,t,n)=>{if(e.req.header("upgrade")?.toLowerCase()!=="websocket")return;let r=e.env,i=r[c0];if(!i||!r.incoming)return new Response(null,{status:500});let o=i4();return r[a0]=o,(async()=>{let s;try{s=await i(r.incoming,o)}catch{return}let a=[],c=(f,h)=>{a.push([f,h])};s.on("message",c);let u={binaryType:"arraybuffer",close(f,h){s.close(f,h)},protocol:s.protocol,raw:s,get readyState(){return s.readyState},send(f,h){s.send(f,{compress:h?.compress})},url:new URL(e.req.url)};try{t?.onOpen?.(new Event("open"),u)}catch(f){(n?.onError??console.error)(f)}let d=(f,h)=>{let p=Array.isArray(f)?f:[f];for(let g of p)try{t?.onMessage?.(new MessageEvent("message",{data:h?g instanceof ArrayBuffer?g:g.buffer.slice(g.byteOffset,g.byteOffset+g.byteLength):typeof g==="string"?g:Buffer.from(g).toString("utf-8")}),u)}catch(y){(n?.onError??console.error)(y)}};s.off("message",c);for(let f of a)d(...f);s.on("message",(f,h)=>{d(f,h)}),s.on("close",(f,h)=>{try{t?.onClose?.(new n4("close",{code:f,reason:h.toString()}),u)}catch(p){(n?.onError??console.error)(p)}}),s.on("error",(f)=>{try{t?.onError?.(new r4("error",{error:f}),u)}catch(h){(n?.onError??console.error)(h)}})})(),new Response})});var oh=(e)=>{let t=e.split("/");if(t[0]==="")t.shift();return t},w0=(e)=>{let{groups:t,path:n}=v4(e),r=oh(n);return x4(r,t)},v4=(e)=>{let t=[];return e=e.replace(/\{[^}]+\}/g,(n,r)=>{let i=`@${r}`;return t.push([i,n]),i}),{groups:t,path:e}},x4=(e,t)=>{for(let n=t.length-1;n>=0;n--){let[r]=t[n];for(let i=e.length-1;i>=0;i--)if(e[i].includes(r)){e[i]=e[i].replace(r,t[n][1]);break}}return e},Yc,D0=(e,t)=>{if(e==="*")return"*";let n=e.match(/^\:([^\{\}]+)(?:\{(.+)\})?$/);if(n){let r=`${e}#${t}`;if(!Yc[r])if(n[2])Yc[r]=t&&t[0]!==":"&&t[0]!=="*"?[r,n[1],new RegExp(`^${n[2]}(?=/${t})`)]:[e,n[1],new RegExp(`^${n[2]}$`)];else Yc[r]=[e,n[1],!0];return Yc[r]}return null},E0=(e,t)=>{try{return t(e)}catch{return e.replace(/(?:%[0-9A-Fa-f]{2})+/g,(n)=>{try{return t(n)}catch{return n}})}},sh=(e)=>E0(e,decodeURI),ah=(e)=>{let t=e.url,n=t.indexOf("/",t.indexOf(":")+4),r=n;for(;r<t.length;r++){let i=t.charCodeAt(r);if(i===37){let o=t.indexOf("?",r),s=t.indexOf("#",r),a=o===-1?s===-1?void 0:s:s===-1?o:Math.min(o,s),c=t.slice(n,a);return sh(c.includes("%25")?c.replace(/%25/g,"%2525"):c)}else if(i===63||i===35)break}return t.slice(n,r)},T0=(e)=>{let t=ah(e);return t.length>1&&t.at(-1)==="/"?t.slice(0,-1):t},br=(e,t,...n)=>{if(n.length)t=br(t,...n);return`${e?.[0]==="/"?"":"/"}${e}${t==="/"?"":`${e?.at(-1)==="/"?"":"/"}${t?.[0]==="/"?t.slice(1):t}`}`},Jc=(e)=>{if(e.charCodeAt(e.length-1)!==63||!e.includes(":"))return null;let t=e.split("/"),n=[],r="";return t.forEach((i)=>{if(i!==""&&!/\:/.test(i))r+="/"+i;else if(/\:/.test(i))if(i.charCodeAt(i.length-1)===63){if(n.length===0&&r==="")n.push("/");else n.push(r);let o=i.slice(0,-1);r+="/"+o,n.push(r)}else r+="/"+i}),n.filter((i,o,s)=>s.indexOf(i)===o)},Qc=(e)=>e.indexOf("%")!==-1?E0(e,_4):e,ih=(e)=>{if(e.indexOf("+")!==-1)e=e.replace(/\+/g," ");return Qc(e)},S0=(e,t,n)=>{let r=e.indexOf("#",8);if(r!==-1)e=e.slice(0,r);let i;if(!n&&t&&t.indexOf("%")===-1&&t.indexOf("+")===-1){let a=e.indexOf("?",8);if(a===-1)return;if(!e.startsWith(t,a+1))a=e.indexOf(`&${t}`,a+1);while(a!==-1){let c=e.charCodeAt(a+t.length+1);if(c===61){let u=a+t.length+2,d=e.indexOf("&",u);return ih(e.slice(u,d===-1?void 0:d))}else if(c==38||isNaN(c))return"";a=e.indexOf(`&${t}`,a+1)}if(i=/[%+]/.test(e),!i)return}let o=Object.create(null);i??=/[%+]/.test(e);let s=e.indexOf("?",8);while(s!==-1){let a=e.indexOf("&",s+1),c=e.indexOf("=",s);if(c>a&&a!==-1)c=-1;let u=e.slice(s+1,c===-1?a===-1?void 0:a:c);if(i)u=ih(u);if(s=a,u==="")continue;let d;if(c===-1)d="";else if(d=e.slice(c+1,a===-1?void 0:a),i)d=ih(d);if(n){if(!(o[u]&&Array.isArray(o[u])))o[u]=[];o[u].push(d)}else o[u]??=d}return t?o[t]:o},C0,A0=(e,t)=>S0(e,t,!0),_4;var ui=me(()=>{Yc={},C0=S0,_4=decodeURIComponent});var k0,R0=(e,t)=>{let n=new String(e);return n.isEscaped=!0,n.callbacks=t,n},ch=async(e,t,n,r,i)=>{if(typeof e==="object"&&!(e instanceof String)){if(!(e instanceof Promise))e=e.toString();if(e instanceof Promise)e=await e}let o=e.callbacks;if(!o?.length)return Promise.resolve(e);if(i)i[0]+=e;else i=[e];let s=Promise.all(o.map((a)=>a({phase:t,buffer:i,context:r}))).then((a)=>Promise.all(a.filter(Boolean).map((c)=>ch(c,t,!1,r,i))).then(()=>i[0]));if(n)return R0(await s,o);else return s};var uh=me(()=>{k0={Stringify:1,BeforeStream:2,Stream:3}});var qe="ALL",F0="all",O0,eu="Can not add a route since the matcher is already built.",tu;var vr=me(()=>{O0=["get","post","put","delete","options","patch","query"],tu=class extends Error{}});var Is="__COMPOSED_HANDLER";var fh=()=>{};function T2(){if(!globalThis.__piModelsCacheState)globalThis.__piModelsCacheState={entries:new Map,inFlight:new Map,generation:0};return globalThis.__piModelsCacheState}function ke(){let e=T2();e.generation+=1,e.entries.clear(),e.inFlight.clear()}function S2(e,t){return t?{...e,modelError:t}:e}function Er(e,t){let n=T2(),r=n.entries.get(e);if(r){if(r.expiresAt>Date.now())return Promise.resolve(r.data);n.entries.delete(e)}let i=n.inFlight.get(e);if(i)return i;let o=n.generation,s=Promise.resolve().then(t).then((a)=>{if(n.generation===o&&n.inFlight.get(e)===s){let c=Date.now();for(let[u,d]of n.entries)if(d.expiresAt<=c)n.entries.delete(u);while(n.entries.size>=32){let u=n.entries.keys().next().value;if(u===void 0)break;n.entries.delete(u)}n.entries.set(e,{data:a,expiresAt:c+60000})}return a}).finally(()=>{if(n.inFlight.get(e)===s)n.inFlight.delete(e)});return n.inFlight.set(e,s),s}var e1={};Q(e1,{buildModelsListUrl:()=>Ws,discoveredModelFromValue:()=>Cr,listResponseModels:()=>Ar,parseDiscoveredModels:()=>Hh});function $h(e){return typeof e==="object"&&e!==null&&!Array.isArray(e)}function Sr(e){return typeof e==="string"&&e.trim()?e.trim():void 0}function J2(e){if(typeof e==="string"){let i=e.trim();return i?{id:i}:null}if(!$h(e))return null;let t=Sr(e.id)??Sr(e.model)??Sr(e.name);if(!t)return null;let n=t.startsWith("models/")?t.slice(7):t;if(!n)return null;let r=Sr(e.display_name)??Sr(e.displayName)??(Sr(e.id)||Sr(e.model)?Sr(e.name):void 0);return r&&r!==n?{id:n,name:r}:{id:n}}function Q2(e){if(Array.isArray(e))return e;if(!$h(e))return[];for(let t of["data","models","results","items"]){let n=e[t];if(Array.isArray(n))return n;if($h(n))return Object.values(n)}return[]}function Cr(e){return J2(e)}function Ar(e){return Q2(e)}function Hh(e){let t=new Set,n=[];for(let r of Q2(e)){let i=J2(r);if(!i||t.has(i.id))continue;t.add(i.id),n.push(i)}return n.sort((r,i)=>(r.name??r.id).localeCompare(i.name??i.id,void 0,{numeric:!0,sensitivity:"base"}))}function Ws(e,t){let n=new URL(e.trim()),r=n.pathname.replace(/\/+$/,"");if(!/\/models$/i.test(r)){let i=r;if(t==="anthropic-messages"&&!/\/v\d+(?:beta)?$/i.test(i))i+="/v1";if(t==="google-generative-ai"&&!/\/v\d+(?:beta)?$/i.test(i))i+="/v1beta";n.pathname=`${i}/models`.replace(/\/+/g,"/")}if(t==="anthropic-messages"&&!n.searchParams.has("limit"))n.searchParams.set("limit","1000");if(t==="google-generative-ai"&&!n.searchParams.has("pageSize"))n.searchParams.set("pageSize","1000");return n}var s1=R(function(Fhe,o1){var Ur=re("constants"),UM=process.cwd,Au=null,kM=process.env.GRACEFUL_FS_PLATFORM||process.platform;process.cwd=function(){if(!Au)Au=UM.call(process);return Au};try{process.cwd()}catch(e){}if(typeof process.chdir==="function"){if(Uu=process.chdir,process.chdir=function(e){Au=null,Uu.call(process,e)},Object.setPrototypeOf)Object.setPrototypeOf(process.chdir,Uu)}var Uu;o1.exports=RM;function RM(e){if(Ur.hasOwnProperty("O_SYMLINK")&&process.version.match(/^v0\.6\.[0-2]|^v0\.5\./))t(e);if(!e.lutimes)n(e);if(e.chown=o(e.chown),e.fchown=o(e.fchown),e.lchown=o(e.lchown),e.chmod=r(e.chmod),e.fchmod=r(e.fchmod),e.lchmod=r(e.lchmod),e.chownSync=s(e.chownSync),e.fchownSync=s(e.fchownSync),e.lchownSync=s(e.lchownSync),e.chmodSync=i(e.chmodSync),e.fchmodSync=i(e.fchmodSync),e.lchmodSync=i(e.lchmodSync),e.stat=a(e.stat),e.fstat=a(e.fstat),e.lstat=a(e.lstat),e.statSync=c(e.statSync),e.fstatSync=c(e.fstatSync),e.lstatSync=c(e.lstatSync),e.chmod&&!e.lchmod)e.lchmod=function(d,f,h){if(h)process.nextTick(h)},e.lchmodSync=function(){};if(e.chown&&!e.lchown)e.lchown=function(d,f,h,p){if(p)process.nextTick(p)},e.lchownSync=function(){};if(kM==="win32")e.rename=typeof e.rename!=="function"?e.rename:function(d){function f(h,p,g){var y=Date.now(),v=0;d(h,p,function b(_){if(_&&(_.code==="EACCES"||_.code==="EPERM"||_.code==="EBUSY")&&Date.now()-y<60000){if(setTimeout(function(){e.stat(p,function(m,x){if(m&&m.code==="ENOENT")d(h,p,b);else g(_)})},v),v<100)v+=10;return}if(g)g(_)})}if(Object.setPrototypeOf)Object.setPrototypeOf(f,d);return f}(e.rename);e.read=typeof e.read!=="function"?e.read:function(d){function f(h,p,g,y,v,b){var _;if(b&&typeof b==="function"){var m=0;_=function(x,D,A){if(x&&x.code==="EAGAIN"&&m<10)return m++,d.call(e,h,p,g,y,v,_);b.apply(this,arguments)}}return d.call(e,h,p,g,y,v,_)}if(Object.setPrototypeOf)Object.setPrototypeOf(f,d);return f}(e.read),e.readSync=typeof e.readSync!=="function"?e.readSync:function(d){return function(f,h,p,g,y){var v=0;while(!0)try{return d.call(e,f,h,p,g,y)}catch(b){if(b.code==="EAGAIN"&&v<10){v++;continue}throw b}}}(e.readSync);function t(d){d.lchmod=function(f,h,p){d.open(f,Ur.O_WRONLY|Ur.O_SYMLINK,h,function(g,y){if(g){if(p)p(g);return}d.fchmod(y,h,function(v){d.close(y,function(b){if(p)p(v||b)})})})},d.lchmodSync=function(f,h){var p=d.openSync(f,Ur.O_WRONLY|Ur.O_SYMLINK,h),g=!0,y;try{y=d.fchmodSync(p,h),g=!1}finally{if(g)try{d.closeSync(p)}catch(v){}else d.closeSync(p)}return y}}function n(d){if(Ur.hasOwnProperty("O_SYMLINK")&&d.futimes)d.lutimes=function(f,h,p,g){d.open(f,Ur.O_SYMLINK,function(y,v){if(y){if(g)g(y);return}d.futimes(v,h,p,function(b){d.close(v,function(_){if(g)g(b||_)})})})},d.lutimesSync=function(f,h,p){var g=d.openSync(f,Ur.O_SYMLINK),y,v=!0;try{y=d.futimesSync(g,h,p),v=!1}finally{if(v)try{d.closeSync(g)}catch(b){}else d.closeSync(g)}return y};else if(d.futimes)d.lutimes=function(f,h,p,g){if(g)process.nextTick(g)},d.lutimesSync=function(){}}function r(d){if(!d)return d;return function(f,h,p){return d.call(e,f,h,function(g){if(u(g))g=null;if(p)p.apply(this,arguments)})}}function i(d){if(!d)return d;return function(f,h){try{return d.call(e,f,h)}catch(p){if(!u(p))throw p}}}function o(d){if(!d)return d;return function(f,h,p,g){return d.call(e,f,h,p,function(y){if(u(y))y=null;if(g)g.apply(this,arguments)})}}function s(d){if(!d)return d;return function(f,h,p){try{return d.call(e,f,h,p)}catch(g){if(!u(g))throw g}}}function a(d){if(!d)return d;return function(f,h,p){if(typeof h==="function")p=h,h=null;function g(y,v){if(v){if(v.uid<0)v.uid+=4294967296;if(v.gid<0)v.gid+=4294967296}if(p)p.apply(this,arguments)}return h?d.call(e,f,h,g):d.call(e,f,g)}}function c(d){if(!d)return d;return function(f,h){var p=h?d.call(e,f,h):d.call(e,f);if(p){if(p.uid<0)p.uid+=4294967296;if(p.gid<0)p.gid+=4294967296}return p}}function u(d){if(!d)return!0;if(d.code==="ENOSYS")return!0;var f=!process.getuid||process.getuid()!==0;if(f){if(d.code==="EINVAL"||d.code==="EPERM")return!0}return!1}}});var u1=R(function(Ohe,c1){var a1=re("stream").Stream;c1.exports=FM;function FM(e){return{ReadStream:t,WriteStream:n};function t(r,i){if(!(this instanceof t))return new t(r,i);a1.call(this);var o=this;this.path=r,this.fd=null,this.readable=!0,this.paused=!1,this.flags="r",this.mode=438,this.bufferSize=65536,i=i||{};var s=Object.keys(i);for(var a=0,c=s.length;a<c;a++){var u=s[a];this[u]=i[u]}if(this.encoding)this.setEncoding(this.encoding);if(this.start!==void 0){if(typeof this.start!=="number")throw TypeError("start must be a Number");if(this.end===void 0)this.end=1/0;else if(typeof this.end!=="number")throw TypeError("end must be a Number");if(this.start>this.end)throw Error("start must be <= end");this.pos=this.start}if(this.fd!==null){process.nextTick(function(){o._read()});return}e.open(this.path,this.flags,this.mode,function(d,f){if(d){o.emit("error",d),o.readable=!1;return}o.fd=f,o.emit("open",f),o._read()})}function n(r,i){if(!(this instanceof n))return new n(r,i);a1.call(this),this.path=r,this.fd=null,this.writable=!0,this.flags="w",this.encoding="binary",this.mode=438,this.bytesWritten=0,i=i||{};var o=Object.keys(i);for(var s=0,a=o.length;s<a;s++){var c=o[s];this[c]=i[c]}if(this.start!==void 0){if(typeof this.start!=="number")throw TypeError("start must be a Number");if(this.start<0)throw Error("start must be >= zero");this.pos=this.start}if(this.busy=!1,this._queue=[],this.fd===null)this._open=e.open,this._queue.push([this._open,this.path,this.flags,this.mode,void 0]),this.flush()}}});var d1=R(function(Phe,l1){l1.exports=PM;var OM=Object.getPrototypeOf||function(e){return e.__proto__};function PM(e){if(e===null||typeof e!=="object")return e;if(e instanceof Object)var t={__proto__:OM(e)};else var t=Object.create(null);return Object.getOwnPropertyNames(e).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(e,n))}),t}});var Yh=R(function(Ihe,Zh){var Oe=re("fs"),IM=s1(),MM=u1(),NM=d1(),ku=re("util"),et,Fu;if(typeof Symbol==="function"&&typeof Symbol.for==="function")et=Symbol.for("graceful-fs.queue"),Fu=Symbol.for("graceful-fs.previous");else et="___graceful-fs.queue",Fu="___graceful-fs.previous";function BM(){}function h1(e,t){Object.defineProperty(e,et,{get:function(){return t}})}var gi=BM;if(ku.debuglog)gi=ku.debuglog("gfs4");else if(/\bgfs4\b/i.test(process.env.NODE_DEBUG||""))gi=function(){var e=ku.format.apply(ku,arguments);e="GFS4: "+e.split(/\n/).join(`
7
+ GFS4: `),console.error(e)};if(!Oe[et]){if(Vh=global[et]||[],h1(Oe,Vh),Oe.close=function(e){function t(n,r){return e.call(Oe,n,function(i){if(!i)f1();if(typeof r==="function")r.apply(this,arguments)})}return Object.defineProperty(t,Fu,{value:e}),t}(Oe.close),Oe.closeSync=function(e){function t(n){e.apply(Oe,arguments),f1()}return Object.defineProperty(t,Fu,{value:e}),t}(Oe.closeSync),/\bgfs4\b/i.test(process.env.NODE_DEBUG||""))process.on("exit",function(){gi(Oe[et]),re("assert").equal(Oe[et].length,0)})}var Vh;if(!global[et])h1(global,Oe[et]);Zh.exports=Xh(NM(Oe));if(process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH&&!Oe.__patched)Zh.exports=Xh(Oe),Oe.__patched=!0;function Xh(e){IM(e),e.gracefulify=Xh,e.createReadStream=D,e.createWriteStream=A;var t=e.readFile;e.readFile=n;function n(C,N,F){if(typeof N==="function")F=N,N=null;return S(C,N,F);function S(B,j,G,T){return t(B,j,function(O){if(O&&(O.code==="EMFILE"||O.code==="ENFILE"))ao([S,[B,j,G],O,T||Date.now(),Date.now()]);else if(typeof G==="function")G.apply(this,arguments)})}}var r=e.writeFile;e.writeFile=i;function i(C,N,F,S){if(typeof F==="function")S=F,F=null;return B(C,N,F,S);function B(j,G,T,O,k){return r(j,G,T,function(P){if(P&&(P.code==="EMFILE"||P.code==="ENFILE"))ao([B,[j,G,T,O],P,k||Date.now(),Date.now()]);else if(typeof O==="function")O.apply(this,arguments)})}}var o=e.appendFile;if(o)e.appendFile=s;function s(C,N,F,S){if(typeof F==="function")S=F,F=null;return B(C,N,F,S);function B(j,G,T,O,k){return o(j,G,T,function(P){if(P&&(P.code==="EMFILE"||P.code==="ENFILE"))ao([B,[j,G,T,O],P,k||Date.now(),Date.now()]);else if(typeof O==="function")O.apply(this,arguments)})}}var a=e.copyFile;if(a)e.copyFile=c;function c(C,N,F,S){if(typeof F==="function")S=F,F=0;return B(C,N,F,S);function B(j,G,T,O,k){return a(j,G,T,function(P){if(P&&(P.code==="EMFILE"||P.code==="ENFILE"))ao([B,[j,G,T,O],P,k||Date.now(),Date.now()]);else if(typeof O==="function")O.apply(this,arguments)})}}var u=e.readdir;e.readdir=f;var d=/^v[0-5]\./;function f(C,N,F){if(typeof N==="function")F=N,N=null;var S=d.test(process.version)?function(G,T,O,k){return u(G,B(G,T,O,k))}:function(G,T,O,k){return u(G,T,B(G,T,O,k))};return S(C,N,F);function B(j,G,T,O){return function(k,P){if(k&&(k.code==="EMFILE"||k.code==="ENFILE"))ao([S,[j,G,T],k,O||Date.now(),Date.now()]);else{if(P&&P.sort)P.sort();if(typeof T==="function")T.call(this,k,P)}}}}if(process.version.substr(0,4)==="v0.8"){var h=MM(e);b=h.ReadStream,m=h.WriteStream}var p=e.ReadStream;if(p)b.prototype=Object.create(p.prototype),b.prototype.open=_;var g=e.WriteStream;if(g)m.prototype=Object.create(g.prototype),m.prototype.open=x;Object.defineProperty(e,"ReadStream",{get:function(){return b},set:function(C){b=C},enumerable:!0,configurable:!0}),Object.defineProperty(e,"WriteStream",{get:function(){return m},set:function(C){m=C},enumerable:!0,configurable:!0});var y=b;Object.defineProperty(e,"FileReadStream",{get:function(){return y},set:function(C){y=C},enumerable:!0,configurable:!0});var v=m;Object.defineProperty(e,"FileWriteStream",{get:function(){return v},set:function(C){v=C},enumerable:!0,configurable:!0});function b(C,N){if(this instanceof b)return p.apply(this,arguments),this;else return b.apply(Object.create(b.prototype),arguments)}function _(){var C=this;U(C.path,C.flags,C.mode,function(N,F){if(N){if(C.autoClose)C.destroy();C.emit("error",N)}else C.fd=F,C.emit("open",F),C.read()})}function m(C,N){if(this instanceof m)return g.apply(this,arguments),this;else return m.apply(Object.create(m.prototype),arguments)}function x(){var C=this;U(C.path,C.flags,C.mode,function(N,F){if(N)C.destroy(),C.emit("error",N);else C.fd=F,C.emit("open",F)})}function D(C,N){return new e.ReadStream(C,N)}function A(C,N){return new e.WriteStream(C,N)}var E=e.open;e.open=U;function U(C,N,F,S){if(typeof F==="function")S=F,F=null;return B(C,N,F,S);function B(j,G,T,O,k){return E(j,G,T,function(P,W){if(P&&(P.code==="EMFILE"||P.code==="ENFILE"))ao([B,[j,G,T,O],P,k||Date.now(),Date.now()]);else if(typeof O==="function")O.apply(this,arguments)})}}return e}function ao(e){gi("ENQUEUE",e[0].name,e[1]),Oe[et].push(e),Kh()}var Ru;function f1(){var e=Date.now();for(var t=0;t<Oe[et].length;++t)if(Oe[et][t].length>2)Oe[et][t][3]=e,Oe[et][t][4]=e;Kh()}function Kh(){if(clearTimeout(Ru),Ru=void 0,Oe[et].length===0)return;var e=Oe[et].shift(),t=e[0],n=e[1],r=e[2],i=e[3],o=e[4];if(i===void 0)gi("RETRY",t.name,n),t.apply(null,n);else if(Date.now()-i>=60000){gi("TIMEOUT",t.name,n);var s=n.pop();if(typeof s==="function")s.call(null,r)}else{var a=Date.now()-o,c=Math.max(o-i,1),u=Math.min(c*1.2,100);if(a>=u)gi("RETRY",t.name,n),t.apply(null,n.concat([i]));else Oe[et].push(e)}if(Ru===void 0)Ru=setTimeout(Kh,0)}});var g1=R(function(Mhe,p1){function qt(e,t){if(typeof t==="boolean")t={forever:t};if(this._originalTimeouts=JSON.parse(JSON.stringify(e)),this._timeouts=e,this._options=t||{},this._maxRetryTime=t&&t.maxRetryTime||1/0,this._fn=null,this._errors=[],this._attempts=1,this._operationTimeout=null,this._operationTimeoutCb=null,this._timeout=null,this._operationStart=null,this._options.forever)this._cachedTimeouts=this._timeouts.slice(0)}p1.exports=qt;qt.prototype.reset=function(){this._attempts=1,this._timeouts=this._originalTimeouts};qt.prototype.stop=function(){if(this._timeout)clearTimeout(this._timeout);this._timeouts=[],this._cachedTimeouts=null};qt.prototype.retry=function(e){if(this._timeout)clearTimeout(this._timeout);if(!e)return!1;var t=new Date().getTime();if(e&&t-this._operationStart>=this._maxRetryTime)return this._errors.unshift(Error("RetryOperation timeout occurred")),!1;this._errors.push(e);var n=this._timeouts.shift();if(n===void 0)if(this._cachedTimeouts)this._errors.splice(this._errors.length-1,this._errors.length),this._timeouts=this._cachedTimeouts.slice(0),n=this._timeouts.shift();else return!1;var r=this,i=setTimeout(function(){if(r._attempts++,r._operationTimeoutCb){if(r._timeout=setTimeout(function(){r._operationTimeoutCb(r._attempts)},r._operationTimeout),r._options.unref)r._timeout.unref()}r._fn(r._attempts)},n);if(this._options.unref)i.unref();return!0};qt.prototype.attempt=function(e,t){if(this._fn=e,t){if(t.timeout)this._operationTimeout=t.timeout;if(t.cb)this._operationTimeoutCb=t.cb}var n=this;if(this._operationTimeoutCb)this._timeout=setTimeout(function(){n._operationTimeoutCb()},n._operationTimeout);this._operationStart=new Date().getTime(),this._fn(this._attempts)};qt.prototype.try=function(e){console.log("Using RetryOperation.try() is deprecated"),this.attempt(e)};qt.prototype.start=function(e){console.log("Using RetryOperation.start() is deprecated"),this.attempt(e)};qt.prototype.start=qt.prototype.try;qt.prototype.errors=function(){return this._errors};qt.prototype.attempts=function(){return this._attempts};qt.prototype.mainError=function(){if(this._errors.length===0)return null;var e={},t=null,n=0;for(var r=0;r<this._errors.length;r++){var i=this._errors[r],o=i.message,s=(e[o]||0)+1;if(e[o]=s,s>=n)t=i,n=s}return t}});var y1=R(function(WM){var LM=g1();WM.operation=function(e){var t=WM.timeouts(e);return new LM(t,{forever:e&&e.forever,unref:e&&e.unref,maxRetryTime:e&&e.maxRetryTime})};WM.timeouts=function(e){if(e instanceof Array)return[].concat(e);var t={retries:10,factor:2,minTimeout:1000,maxTimeout:1/0,randomize:!1};for(var n in e)t[n]=e[n];if(t.minTimeout>t.maxTimeout)throw Error("minTimeout is greater than maxTimeout");var r=[];for(var i=0;i<t.retries;i++)r.push(this.createTimeout(i,t));if(e&&e.forever&&!r.length)r.push(this.createTimeout(i,t));return r.sort(function(o,s){return o-s}),r};WM.createTimeout=function(e,t){var n=t.randomize?Math.random()+1:1,r=Math.round(n*t.minTimeout*Math.pow(t.factor,e));return r=Math.min(r,t.maxTimeout),r};WM.wrap=function(e,t,n){if(t instanceof Array)n=t,t=null;if(!n){n=[];for(var r in e)if(typeof e[r]==="function")n.push(r)}for(var i=0;i<n.length;i++){var o=n[i],s=e[o];e[o]=function(c){var u=WM.operation(t),d=Array.prototype.slice.call(arguments,1),f=d.pop();d.push(function(h){if(u.retry(h))return;if(h)arguments[0]=u.mainError();f.apply(this,arguments)}),u.attempt(function(){c.apply(e,d)})}.bind(e,s),e[o].options=t}}});var b1=R(function(Bhe,Ou){Ou.exports=["SIGABRT","SIGALRM","SIGHUP","SIGINT","SIGTERM"];if(process.platform!=="win32")Ou.exports.push("SIGVTALRM","SIGXCPU","SIGXFSZ","SIGUSR2","SIGTRAP","SIGSYS","SIGQUIT","SIGIOT");if(process.platform==="linux")Ou.exports.push("SIGIO","SIGPOLL","SIGPWR","SIGSTKFLT","SIGUNUSED")});var v1=R(function(Lhe,uo){var Re=global.process,mi=function(e){return e&&typeof e==="object"&&typeof e.removeListener==="function"&&typeof e.emit==="function"&&typeof e.reallyExit==="function"&&typeof e.listeners==="function"&&typeof e.kill==="function"&&typeof e.pid==="number"&&typeof e.on==="function"};if(!mi(Re))uo.exports=function(){return function(){}};else{if(Jh=re("assert"),yi=b1(),Qh=/^win/i.test(Re.platform),co=re("events"),typeof co!=="function")co=co.EventEmitter;if(Re.__signal_exit_emitter__)He=Re.__signal_exit_emitter__;else He=Re.__signal_exit_emitter__=new co,He.count=0,He.emitted={};if(!He.infinite)He.setMaxListeners(1/0),He.infinite=!0;uo.exports=function(e,t){if(!mi(global.process))return function(){};if(Jh.equal(typeof e,"function","a callback must be provided for exit handler"),bi===!1)Pu();var n="exit";if(t&&t.alwaysLast)n="afterexit";var r=function(){if(He.removeListener(n,e),He.listeners("exit").length===0&&He.listeners("afterexit").length===0)qs()};return He.on(n,e),r},qs=function(){if(!bi||!mi(global.process))return;bi=!1,yi.forEach(function(t){try{Re.removeListener(t,$s[t])}catch(n){}}),Re.emit=Hs,Re.reallyExit=Iu,He.count-=1},uo.exports.unload=qs,kr=function(t,n,r){if(He.emitted[t])return;He.emitted[t]=!0,He.emit(t,n,r)},$s={},yi.forEach(function(e){$s[e]=function(){if(!mi(global.process))return;var n=Re.listeners(e);if(n.length===He.count){if(qs(),kr("exit",null,e),kr("afterexit",null,e),Qh&&e==="SIGHUP")e="SIGINT";Re.kill(Re.pid,e)}}}),uo.exports.signals=function(){return yi},bi=!1,Pu=function(){if(bi||!mi(global.process))return;bi=!0,He.count+=1,yi=yi.filter(function(t){try{return Re.on(t,$s[t]),!0}catch(n){return!1}}),Re.emit=tp,Re.reallyExit=ep},uo.exports.load=Pu,Iu=Re.reallyExit,ep=function(t){if(!mi(global.process))return;Re.exitCode=t||0,kr("exit",Re.exitCode,null),kr("afterexit",Re.exitCode,null),Iu.call(Re,Re.exitCode)},Hs=Re.emit,tp=function(t,n){if(t==="exit"&&mi(global.process)){if(n!==void 0)Re.exitCode=n;var r=Hs.apply(this,arguments);return kr("exit",Re.exitCode,null),kr("afterexit",Re.exitCode,null),r}else return Hs.apply(this,arguments)}}var Jh,yi,Qh,co,He,qs,kr,$s,bi,Pu,Iu,ep,Hs,tp});var _1=R(function(zM,np){var x1=Symbol();function HM(e,t,n){let r=t[x1];if(r)return t.stat(e,(o,s)=>{if(o)return n(o);n(null,s.mtime,r)});let i=new Date(Math.ceil(Date.now()/1000)*1000+5);t.utimes(e,i,i,(o)=>{if(o)return n(o);t.stat(e,(s,a)=>{if(s)return n(s);let c=a.mtime.getTime()%1000===0?"s":"ms";Object.defineProperty(t,x1,{value:c}),n(null,a.mtime,c)})})}function GM(e){let t=Date.now();if(e==="s")t=Math.ceil(t/1000)*1000;return new Date(t)}zM.probe=HM;zM.getMtime=GM});var S1=R(function(tN,zs){var KM=re("path"),op=Yh(),ZM=y1(),YM=v1(),w1=_1(),zn={};function Gs(e,t){return t.lockfilePath||`${e}.lock`}function sp(e,t,n){if(!t.realpath)return n(null,KM.resolve(e));t.fs.realpath(e,n)}function ip(e,t,n){let r=Gs(e,t);t.fs.mkdir(r,(i)=>{if(!i)return w1.probe(r,t.fs,(o,s,a)=>{if(o)return t.fs.rmdir(r,()=>{}),n(o);n(null,s,a)});if(i.code!=="EEXIST")return n(i);if(t.stale<=0)return n(Object.assign(Error("Lock file is already being held"),{code:"ELOCKED",file:e}));t.fs.stat(r,(o,s)=>{if(o){if(o.code==="ENOENT")return ip(e,{...t,stale:0},n);return n(o)}if(!D1(s,t))return n(Object.assign(Error("Lock file is already being held"),{code:"ELOCKED",file:e}));E1(e,t,(a)=>{if(a)return n(a);ip(e,{...t,stale:0},n)})})})}function D1(e,t){return e.mtime.getTime()<Date.now()-t.stale}function E1(e,t,n){t.fs.rmdir(Gs(e,t),(r)=>{if(r&&r.code!=="ENOENT")return n(r);n()})}function Mu(e,t){let n=zn[e];if(n.updateTimeout)return;if(n.updateDelay=n.updateDelay||t.update,n.updateTimeout=setTimeout(()=>{n.updateTimeout=null,t.fs.stat(n.lockfilePath,(r,i)=>{let o=n.lastUpdate+t.stale<Date.now();if(r){if(r.code==="ENOENT"||o)return rp(e,n,Object.assign(r,{code:"ECOMPROMISED"}));return n.updateDelay=1000,Mu(e,t)}if(n.mtime.getTime()!==i.mtime.getTime())return rp(e,n,Object.assign(Error("Unable to update lock within the stale threshold"),{code:"ECOMPROMISED"}));let a=w1.getMtime(n.mtimePrecision);t.fs.utimes(n.lockfilePath,a,a,(c)=>{let u=n.lastUpdate+t.stale<Date.now();if(n.released)return;if(c){if(c.code==="ENOENT"||u)return rp(e,n,Object.assign(c,{code:"ECOMPROMISED"}));return n.updateDelay=1000,Mu(e,t)}n.mtime=a,n.lastUpdate=Date.now(),n.updateDelay=null,Mu(e,t)})})},n.updateDelay),n.updateTimeout.unref)n.updateTimeout.unref()}function rp(e,t,n){if(t.released=!0,t.updateTimeout)clearTimeout(t.updateTimeout);if(zn[e]===t)delete zn[e];t.options.onCompromised(n)}function JM(e,t,n){t={stale:1e4,update:null,realpath:!0,retries:0,fs:op,onCompromised:(r)=>{throw r},...t},t.retries=t.retries||0,t.retries=typeof t.retries==="number"?{retries:t.retries}:t.retries,t.stale=Math.max(t.stale||0,2000),t.update=t.update==null?t.stale/2:t.update||0,t.update=Math.max(Math.min(t.update,t.stale/2),1000),sp(e,t,(r,i)=>{if(r)return n(r);let o=ZM.operation(t.retries);o.attempt(()=>{ip(i,t,(s,a,c)=>{if(o.retry(s))return;if(s)return n(o.mainError());let u=zn[i]={lockfilePath:Gs(i,t),mtime:a,mtimePrecision:c,options:t,lastUpdate:Date.now()};Mu(i,t),n(null,(d)=>{if(u.released)return d&&d(Object.assign(Error("Lock is already released"),{code:"ERELEASED"}));T1(i,{...t,realpath:!1},d)})})})})}function T1(e,t,n){t={fs:op,realpath:!0,...t},sp(e,t,(r,i)=>{if(r)return n(r);let o=zn[i];if(!o)return n(Object.assign(Error("Lock is not acquired/owned by you"),{code:"ENOTACQUIRED"}));o.updateTimeout&&clearTimeout(o.updateTimeout),o.released=!0,delete zn[i],E1(i,t,n)})}function QM(e,t,n){t={stale:1e4,realpath:!0,fs:op,...t},t.stale=Math.max(t.stale||0,2000),sp(e,t,(r,i)=>{if(r)return n(r);t.fs.stat(Gs(i,t),(o,s)=>{if(o)return o.code==="ENOENT"?n(null,!1):n(o);return n(null,!D1(s,t))})})}function eN(){return zn}YM(()=>{for(let e in zn){let t=zn[e].options;try{t.fs.rmdirSync(Gs(e,t))}catch(n){}}});tN.lock=JM;tN.unlock=T1;tN.check=QM;tN.getLocks=eN});var A1=R(function(Whe,C1){var sN=Yh();function aN(e){let t=["mkdir","realpath","stat","rmdir","utimes"],n={...e};return t.forEach((r)=>{n[r]=(...i)=>{let o=i.pop(),s;try{s=e[`${r}Sync`](...i)}catch(a){return o(a)}o(null,s)}}),n}function cN(e){return(...t)=>new Promise((n,r)=>{t.push((i,o)=>{if(i)r(i);else n(o)}),e(...t)})}function uN(e){return(...t)=>{let n,r;if(t.push((i,o)=>{n=i,r=o}),e(...t),n)throw n;return r}}function lN(e){if(e={...e},e.fs=aN(e.fs||sN),typeof e.retries==="number"&&e.retries>0||e.retries&&typeof e.retries.retries==="number"&&e.retries.retries>0)throw Object.assign(Error("Cannot use retries with the sync api"),{code:"ESYNC"});return e}C1.exports={toPromise:cN,toSync:uN,toSyncOptions:lN}});var k1=R(function(jhe,Rr){var lo=S1(),{toPromise:Nu,toSync:Bu,toSyncOptions:ap}=A1();async function U1(e,t){let n=await Nu(lo.lock)(e,t);return Nu(n)}function dN(e,t){let n=Bu(lo.lock)(e,ap(t));return Bu(n)}function fN(e,t){return Nu(lo.unlock)(e,t)}function hN(e,t){return Bu(lo.unlock)(e,ap(t))}function pN(e,t){return Nu(lo.check)(e,t)}function gN(e,t){return Bu(lo.check)(e,ap(t))}Rr.exports=U1;Rr.exports.lock=U1;Rr.exports.unlock=fN;Rr.exports.lockSync=dN;Rr.exports.unlockSync=hN;Rr.exports.check=pN;Rr.exports.checkSync=gN});var Yw=R(function(Zw){Object.defineProperty(Zw,"__esModule",{value:!0});var Tp="1.13.8",y_=typeof self=="object"&&self.self===self&&self||typeof global=="object"&&global.global===global&&global||Function("return this")()||{},Ju=Array.prototype,Sp=Object.prototype,b_=typeof Symbol<"u"?Symbol.prototype:null,vB=Ju.push,Js=Ju.slice,Ks=Sp.toString,xB=Sp.hasOwnProperty,T_=typeof ArrayBuffer<"u",_B=typeof DataView<"u",wB=Array.isArray,v_=Object.keys,x_=Object.create,__=T_&&ArrayBuffer.isView,DB=isNaN,EB=isFinite,S_=!{toString:null}.propertyIsEnumerable("toString"),w_=["valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],TB=Math.pow(2,53)-1;function vt(e,t){return t=t==null?e.length-1:+t,function(){var n=Math.max(arguments.length-t,0),r=Array(n),i=0;for(;i<n;i++)r[i]=arguments[i+t];switch(t){case 0:return e.call(this,r);case 1:return e.call(this,arguments[0],r);case 2:return e.call(this,arguments[0],arguments[1],r)}var o=Array(t+1);for(i=0;i<t;i++)o[i]=arguments[i];return o[t]=r,e.apply(this,o)}}function Pr(e){var t=typeof e;return t==="function"||t==="object"&&!!e}function C_(e){return e===null}function Cp(e){return e===void 0}function Ap(e){return e===!0||e===!1||Ks.call(e)==="[object Boolean]"}function A_(e){return!!(e&&e.nodeType===1)}function dt(e){var t="[object "+e+"]";return function(n){return Ks.call(n)===t}}var Qu=dt("String"),Up=dt("Number"),U_=dt("Date"),k_=dt("RegExp"),R_=dt("Error"),kp=dt("Symbol"),Rp=dt("ArrayBuffer"),F_=dt("Function"),SB=y_.document&&y_.document.childNodes;if(typeof Int8Array!="object"&&typeof SB!="function")F_=function(e){return typeof e=="function"||!1};var lt=F_,O_=dt("Object"),P_=_B&&(!/\[native code\]/.test(String(DataView))||O_(new DataView(new ArrayBuffer(8)))),Fp=typeof Map<"u"&&O_(new Map),CB=dt("DataView");function AB(e){return e!=null&&lt(e.getInt8)&&Rp(e.buffer)}var Zs=P_?AB:CB,Ir=wB||dt("Array");function Mr(e,t){return e!=null&&xB.call(e,t)}var xp=dt("Arguments");(function(){if(!xp(arguments))xp=function(e){return Mr(e,"callee")}})();var el=xp;function I_(e){return!kp(e)&&EB(e)&&!isNaN(parseFloat(e))}function Op(e){return Up(e)&&DB(e)}function Pp(e){return function(){return e}}function M_(e){return function(t){var n=e(t);return typeof n=="number"&&n>=0&&n<=TB}}function N_(e){return function(t){return t==null?void 0:t[e]}}var zu=N_("byteLength"),UB=M_(zu),kB=/\[object ((I|Ui)nt(8|16|32)|Float(32|64)|Uint8Clamped|Big(I|Ui)nt64)Array\]/;function RB(e){return __?__(e)&&!Zs(e):UB(e)&&kB.test(Ks.call(e))}var Ip=T_?RB:Pp(!1),ut=N_("length");function FB(e){var t={};for(var n=e.length,r=0;r<n;++r)t[e[r]]=!0;return{contains:function(i){return t[i]===!0},push:function(i){return t[i]=!0,e.push(i)}}}function B_(e,t){t=FB(t);var n=w_.length,r=e.constructor,i=lt(r)&&r.prototype||Sp,o="constructor";if(Mr(e,o)&&!t.contains(o))t.push(o);while(n--)if(o=w_[n],o in e&&e[o]!==i[o]&&!t.contains(o))t.push(o)}function Ge(e){if(!Pr(e))return[];if(v_)return v_(e);var t=[];for(var n in e)if(Mr(e,n))t.push(n);if(S_)B_(e,t);return t}function L_(e){if(e==null)return!0;var t=ut(e);if(typeof t=="number"&&(Ir(e)||Qu(e)||el(e)))return t===0;return ut(Ge(e))===0}function Mp(e,t){var n=Ge(t),r=n.length;if(e==null)return!r;var i=Object(e);for(var o=0;o<r;o++){var s=n[o];if(t[s]!==i[s]||!(s in i))return!1}return!0}function be(e){if(e instanceof be)return e;if(!(this instanceof be))return new be(e);this._wrapped=e}be.VERSION=Tp;be.prototype.value=function(){return this._wrapped};be.prototype.valueOf=be.prototype.toJSON=be.prototype.value;be.prototype.toString=function(){return String(this._wrapped)};function D_(e){return new Uint8Array(e.buffer||e,e.byteOffset||0,zu(e))}var E_="[object DataView]";function W_(e,t){var n=[{a:e,b:t}],r=[],i=[];while(n.length){var o=n.pop();if(o===!0){r.pop(),i.pop();continue}if(e=o.a,t=o.b,e===t){if(e!==0||1/e===1/t)continue;return!1}if(e==null||t==null)return!1;if(e!==e){if(t!==t)continue;return!1}var s=typeof e;if(s!=="function"&&s!=="object"&&typeof t!="object")return!1;if(e instanceof be)e=e._wrapped;if(t instanceof be)t=t._wrapped;var a=Ks.call(e);if(a!==Ks.call(t))return!1;if(P_&&a=="[object Object]"&&Zs(e)){if(!Zs(t))return!1;a=E_}switch(a){case"[object RegExp]":case"[object String]":if(""+e===""+t)continue;return!1;case"[object Number]":n.push({a:+e,b:+t});continue;case"[object Date]":case"[object Boolean]":if(+e===+t)continue;return!1;case"[object Symbol]":if(b_.valueOf.call(e)===b_.valueOf.call(t))continue;return!1;case"[object ArrayBuffer]":case E_:n.push({a:D_(e),b:D_(t)});continue}var c=a==="[object Array]";if(!c&&Ip(e)){var u=zu(e);if(u!==zu(t))return!1;if(e.buffer===t.buffer&&e.byteOffset===t.byteOffset)continue;c=!0}if(!c){if(typeof e!="object"||typeof t!="object")return!1;var d=e.constructor,f=t.constructor;if(d!==f&&!(lt(d)&&d instanceof d&&lt(f)&&f instanceof f)&&(("constructor"in e)&&("constructor"in t)))return!1}var h=r.length;while(h--)if(r[h]===e){if(i[h]===t)break;return!1}if(h>=0)continue;if(r.push(e),i.push(t),n.push(!0),c){if(h=e.length,h!==t.length)return!1;while(h--)n.push({a:e[h],b:t[h]})}else{var p=Ge(e),g;if(h=p.length,Ge(t).length!==h)return!1;while(h--){if(g=p[h],!Mr(t,g))return!1;n.push({a:e[g],b:t[g]})}}}return!0}function mo(e){if(!Pr(e))return[];var t=[];for(var n in e)t.push(n);if(S_)B_(e,t);return t}function Np(e){var t=ut(e);return function(n){if(n==null)return!1;var r=mo(n);if(ut(r))return!1;for(var i=0;i<t;i++)if(!lt(n[e[i]]))return!1;return e!==$_||!lt(n[Bp])}}var Bp="forEach",j_="has",Lp=["clear","delete"],q_=["get",j_,"set"],OB=Lp.concat(Bp,q_),$_=Lp.concat(q_),PB=["add"].concat(Lp,Bp,j_),H_=Fp?Np(OB):dt("Map"),G_=Fp?Np($_):dt("WeakMap"),z_=Fp?Np(PB):dt("Set"),V_=dt("WeakSet");function xi(e){var t=Ge(e),n=t.length,r=Array(n);for(var i=0;i<n;i++)r[i]=e[t[i]];return r}function X_(e){var t=Ge(e),n=t.length,r=Array(n);for(var i=0;i<n;i++)r[i]=[t[i],e[t[i]]];return r}function Wp(e){var t={},n=Ge(e);for(var r=0,i=n.length;r<i;r++)t[e[n[r]]]=n[r];return t}function Vu(e){var t=[];for(var n in e)if(lt(e[n]))t.push(n);return t.sort()}function jp(e,t){return function(n){var r=arguments.length;if(t)n=Object(n);if(r<2||n==null)return n;for(var i=1;i<r;i++){var o=arguments[i],s=e(o),a=s.length;for(var c=0;c<a;c++){var u=s[c];if(!t||n[u]===void 0)n[u]=o[u]}}return n}}var qp=jp(mo),Ys=jp(Ge),$p=jp(mo,!0);function IB(){return function(){}}function K_(e){if(!Pr(e))return{};if(x_)return x_(e);var t=IB();t.prototype=e;var n=new t;return t.prototype=null,n}function Z_(e,t){var n=K_(e);if(t)Ys(n,t);return n}function Y_(e){if(!Pr(e))return e;return Ir(e)?e.slice():qp({},e)}function J_(e,t){return t(e),e}function Hp(e){return Ir(e)?e:[e]}be.toPath=Hp;function Qs(e){return be.toPath(e)}function Gp(e,t){var n=t.length;for(var r=0;r<n;r++){if(e==null)return;e=e[t[r]]}return n?e:void 0}function zp(e,t,n){var r=Gp(e,Qs(t));return Cp(r)?n:r}function Q_(e,t){t=Qs(t);var n=t.length;for(var r=0;r<n;r++){var i=t[r];if(!Mr(e,i))return!1;e=e[i]}return!!n}function tl(e){return e}function po(e){return e=Ys({},e),function(t){return Mp(t,e)}}function nl(e){return e=Qs(e),function(t){return Gp(t,e)}}function ea(e,t,n){if(t===void 0)return e;switch(n==null?3:n){case 1:return function(r){return e.call(t,r)};case 3:return function(r,i,o){return e.call(t,r,i,o)};case 4:return function(r,i,o,s){return e.call(t,r,i,o,s)}}return function(){return e.apply(t,arguments)}}function ew(e,t,n){if(e==null)return tl;if(lt(e))return ea(e,t,n);if(Pr(e)&&!Ir(e))return po(e);return nl(e)}function rl(e,t){return ew(e,t,1/0)}be.iteratee=rl;function Tt(e,t,n){if(be.iteratee!==rl)return be.iteratee(e,t);return ew(e,t,n)}function tw(e,t,n){t=Tt(t,n);var r=Ge(e),i=r.length,o={};for(var s=0;s<i;s++){var a=r[s];o[a]=t(e[a],a,e)}return o}function Vp(){}function nw(e){if(e==null)return Vp;return function(t){return zp(e,t)}}function rw(e,t,n){var r=Array(Math.max(0,e));t=ea(t,n,1);for(var i=0;i<e;i++)r[i]=t(i);return r}function Xu(e,t){if(t==null)t=e,e=0;return e+Math.floor(Math.random()*(t-e+1))}var go=Date.now||function(){return new Date().getTime()};function iw(e){var t=function(o){return e[o]},n="(?:"+Ge(e).join("|")+")",r=RegExp(n),i=RegExp(n,"g");return function(o){return o=o==null?"":""+o,r.test(o)?o.replace(i,t):o}}var ow={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;","`":"&#x60;"},sw=iw(ow),MB=Wp(ow),aw=iw(MB),cw=be.templateSettings={evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g},vp=/(.)^/,NB={"'":"'","\\":"\\","\r":"r","\n":"n","\u2028":"u2028","\u2029":"u2029"},BB=/\\|'|\r|\n|\u2028|\u2029/g;function LB(e){return"\\"+NB[e]}var WB=/^\s*(\w|\$)+\s*$/;function uw(e,t,n){if(!t&&n)t=n;t=$p({},t,be.templateSettings);var r=RegExp([(t.escape||vp).source,(t.interpolate||vp).source,(t.evaluate||vp).source].join("|")+"|$","g"),i=0,o="__p+='";e.replace(r,function(u,d,f,h,p){if(o+=e.slice(i,p).replace(BB,LB),i=p+u.length,d)o+=`'+
8
8
  ((__t=(`+d+`))==null?'':_.escape(__t))+
9
9
  '`;else if(f)o+=`'+
10
10
  ((__t=(`+f+`))==null?'':__t)+
@@ -15,20 +15,20 @@ __p+='`;return u}),o+=`';
15
15
  `+o+`}
16
16
  `,s="obj";o=`var __t,__p='',__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,'');};
17
17
  `+o+`return __p;
18
- `;var a;try{a=Function(s,"_",o)}catch(u){throw u.source=o,u}var c=function(u){return a.call(this,u,ve)};return c.source="function("+s+`){
19
- `+o+"}",c}function lw(e,t,n){t=Qs(t);var r=t.length;if(!r)return lt(n)?n.call(e):n;for(var i=0;i<r;i++){var o=e==null?void 0:e[t[i]];if(o===void 0)o=n,i=r;e=lt(o)?o.call(e):o}return e}var jB=0;function dw(e){var t=++jB+"";return e?e+t:t}function fw(e){var t=ve(e);return t._chain=!0,t}function hw(e,t,n,r,i){if(!(r instanceof t))return e.apply(n,i);var o=K_(e.prototype),s=e.apply(o,i);if(Pr(s))return s;return o}var _i=vt(function(e,t){var n=_i.placeholder,r=function(){var i=0,o=t.length,s=Array(o);for(var a=0;a<o;a++)s[a]=t[a]===n?arguments[i++]:t[a];while(i<arguments.length)s.push(arguments[i++]);return hw(e,r,this,this,s)};return r});_i.placeholder=ve;var Xp=vt(function(e,t,n){if(!lt(e))throw TypeError("Bind must be called on a function");var r=vt(function(i){return hw(e,r,t,this,n.concat(i))});return r}),Ot=M_(ut);function yo(e,t,n){if(!t&&t!==0)t=1/0;var r=[],i=0,o=0,s=ut(e)||0,a=[];while(!0){if(o>=s){if(!a.length)break;var c=a.pop();o=c.i,e=c.v,s=ut(e);continue}var u=e[o++];if(a.length>=t)r[i++]=u;else if(Ot(u)&&(Ir(u)||el(u)))a.push({i:o,v:e}),o=0,e=u,s=ut(e);else if(!n)r[i++]=u}return r}var pw=vt(function(e,t){t=yo(t,!1,!1);var n=t.length;if(n<1)throw Error("bindAll must be passed function names");while(n--){var r=t[n];e[r]=Xp(e[r],e)}return e});function gw(e,t){var n=function(r){var i=n.cache,o=""+(t?t.apply(this,arguments):r);if(!Mr(i,o))i[o]=e.apply(this,arguments);return i[o]};return n.cache={},n}var Kp=vt(function(e,t,n){return setTimeout(function(){return e.apply(null,n)},t)}),mw=_i(Kp,ve,1);function yw(e,t,n){var r,i,o,s,a=0;if(!n)n={};var c=function(){if(a=n.leading===!1?0:go(),r=null,s=e.apply(i,o),!r)i=o=null},u=function(){var d=go();if(!a&&n.leading===!1)a=d;var f=t-(d-a);if(i=this,o=arguments,f<=0||f>t){if(r)clearTimeout(r),r=null;if(a=d,s=e.apply(i,o),!r)i=o=null}else if(!r&&n.trailing!==!1)r=setTimeout(c,f);return s};return u.cancel=function(){clearTimeout(r),a=0,r=i=o=null},u}function bw(e,t,n){var r,i,o,s,a,c=function(){var d=go()-i;if(t>d)r=setTimeout(c,t-d);else{if(r=null,!n)s=e.apply(a,o);if(!r)o=a=null}},u=vt(function(d){if(a=this,o=d,i=go(),!r){if(r=setTimeout(c,t),n)s=e.apply(a,o)}return s});return u.cancel=function(){clearTimeout(r),r=o=a=null},u}function vw(e,t){return _i(t,e)}function il(e){return function(){return!e.apply(this,arguments)}}function xw(){var e=arguments,t=e.length-1;return function(){var n=t,r=e[t].apply(this,arguments);while(n--)r=e[n].call(this,r);return r}}function _w(e,t){return function(){if(--e<1)return t.apply(this,arguments)}}function Zp(e,t){var n;return function(){if(--e>0)n=t.apply(this,arguments);if(e<=1)t=null;return n}}var ww=_i(Zp,2);function Yp(e,t,n){t=Tt(t,n);var r=Ge(e),i;for(var o=0,s=r.length;o<s;o++)if(i=r[o],t(e[i],i,e))return i}function Dw(e){return function(t,n,r){n=Tt(n,r);var i=ut(t),o=e>0?0:i-1;for(;o>=0&&o<i;o+=e)if(n(t[o],o,t))return o;return-1}}var ol=Dw(1),Jp=Dw(-1);function Qp(e,t,n,r){n=Tt(n,r,1);var i=n(t),o=0,s=ut(e);while(o<s){var a=Math.floor((o+s)/2);if(n(e[a])<i)o=a+1;else s=a}return o}function Ew(e,t,n){return function(r,i,o){var s=0,a=ut(r);if(typeof o=="number")if(e>0)s=o>=0?o:Math.max(o+a,s);else a=o>=0?Math.min(o+1,a):o+a+1;else if(n&&o&&a)return o=n(r,i),r[o]===i?o:-1;if(i!==i)return o=t(Js.call(r,s,a),Op),o>=0?o+s:-1;for(o=e>0?s:a-1;o>=0&&o<a;o+=e)if(r[o]===i)return o;return-1}}var eg=Ew(1,ol,Qp),Tw=Ew(-1,Jp);function Ku(e,t,n){var r=Ot(e)?ol:Yp,i=r(e,t,n);if(i!==void 0&&i!==-1)return e[i]}function Sw(e,t){return Ku(e,po(t))}function xn(e,t,n){t=ea(t,n);var r,i;if(Ot(e))for(r=0,i=e.length;r<i;r++)t(e[r],r,e);else{var o=Ge(e);for(r=0,i=o.length;r<i;r++)t(e[o[r]],o[r],e)}return e}function Or(e,t,n){t=Tt(t,n);var r=!Ot(e)&&Ge(e),i=(r||e).length,o=Array(i);for(var s=0;s<i;s++){var a=r?r[s]:s;o[s]=t(e[a],a,e)}return o}function Cw(e){var t=function(n,r,i,o){var s=!Ot(n)&&Ge(n),a=(s||n).length,c=e>0?0:a-1;if(!o)i=n[s?s[c]:c],c+=e;for(;c>=0&&c<a;c+=e){var u=s?s[c]:c;i=r(i,n[u],u,n)}return i};return function(n,r,i,o){var s=arguments.length>=3;return t(n,ea(r,o,4),i,s)}}var Hu=Cw(1),_p=Cw(-1);function vi(e,t,n){var r=[];return t=Tt(t,n),xn(e,function(i,o,s){if(t(i,o,s))r.push(i)}),r}function Aw(e,t,n){return vi(e,il(Tt(t)),n)}function wp(e,t,n){t=Tt(t,n);var r=!Ot(e)&&Ge(e),i=(r||e).length;for(var o=0;o<i;o++){var s=r?r[o]:o;if(!t(e[s],s,e))return!1}return!0}function Dp(e,t,n){t=Tt(t,n);var r=!Ot(e)&&Ge(e),i=(r||e).length;for(var o=0;o<i;o++){var s=r?r[o]:o;if(t(e[s],s,e))return!0}return!1}function vn(e,t,n,r){if(!Ot(e))e=xi(e);if(typeof n!="number"||r)n=0;return eg(e,t,n)>=0}var Uw=vt(function(e,t,n){var r,i;if(lt(t))i=t;else t=Qs(t),r=t.slice(0,-1),t=t[t.length-1];return Or(e,function(o){var s=i;if(!s){if(r&&r.length)o=Gp(o,r);if(o==null)return;s=o[t]}return s==null?s:s.apply(o,n)})});function sl(e,t){return Or(e,nl(t))}function kw(e,t){return vi(e,po(t))}function tg(e,t,n){var r=-1/0,i=-1/0,o,s;if(t==null||typeof t=="number"&&typeof e[0]!="object"&&e!=null){e=Ot(e)?e:xi(e);for(var a=0,c=e.length;a<c;a++)if(o=e[a],o!=null&&o>r)r=o}else t=Tt(t,n),xn(e,function(u,d,f){if(s=t(u,d,f),s>i||s===-1/0&&r===-1/0)r=u,i=s});return r}function Rw(e,t,n){var r=1/0,i=1/0,o,s;if(t==null||typeof t=="number"&&typeof e[0]!="object"&&e!=null){e=Ot(e)?e:xi(e);for(var a=0,c=e.length;a<c;a++)if(o=e[a],o!=null&&o<r)r=o}else t=Tt(t,n),xn(e,function(u,d,f){if(s=t(u,d,f),s<i||s===1/0&&r===1/0)r=u,i=s});return r}var qB=/[^\ud800-\udfff]|[\ud800-\udbff][\udc00-\udfff]|[\ud800-\udfff]/g;function ng(e){if(!e)return[];if(Ir(e))return Js.call(e);if(Qu(e))return e.match(qB);if(Ot(e))return Or(e,tl);return xi(e)}function rg(e,t,n){if(t==null||n){if(!Ot(e))e=xi(e);return e[Xu(e.length-1)]}var r=ng(e),i=ut(r);t=Math.max(Math.min(t,i),0);var o=i-1;for(var s=0;s<t;s++){var a=Xu(s,o),c=r[s];r[s]=r[a],r[a]=c}return r.slice(0,t)}function Fw(e){return rg(e,1/0)}function Ow(e,t,n){var r=0;return t=Tt(t,n),sl(Or(e,function(i,o,s){return{value:i,index:r++,criteria:t(i,o,s)}}).sort(function(i,o){var s=i.criteria,a=o.criteria;if(s!==a){if(s>a||s===void 0)return 1;if(s<a||a===void 0)return-1}return i.index-o.index}),"value")}function al(e,t){return function(n,r,i){var o=t?[[],[]]:{};return r=Tt(r,i),xn(n,function(s,a){var c=r(s,a,n);e(o,s,c)}),o}}var Pw=al(function(e,t,n){if(Mr(e,n))e[n].push(t);else e[n]=[t]}),Iw=al(function(e,t,n){e[n]=t}),Mw=al(function(e,t,n){if(Mr(e,n))e[n]++;else e[n]=1}),Nw=al(function(e,t,n){e[n?0:1].push(t)},!0);function Bw(e){if(e==null)return 0;return Ot(e)?e.length:Ge(e).length}function $B(e,t,n){return t in n}var ig=vt(function(e,t){var n={},r=t[0];if(e==null)return n;if(lt(r)){if(t.length>1)r=ea(r,t[1]);t=mo(e)}else r=$B,t=yo(t,!1,!1),e=Object(e);for(var i=0,o=t.length;i<o;i++){var s=t[i],a=e[s];if(r(a,s,e))n[s]=a}return n}),Lw=vt(function(e,t){var n=t[0],r;if(lt(n)){if(n=il(n),t.length>1)r=t[1]}else t=Or(yo(t,!1,!1),String),n=function(i,o){return!vn(t,o)};return ig(e,n,r)});function og(e,t,n){return Js.call(e,0,Math.max(0,e.length-(t==null||n?1:t)))}function Gu(e,t,n){if(e==null||e.length<1)return t==null||n?void 0:[];if(t==null||n)return e[0];return og(e,e.length-t)}function Xs(e,t,n){return Js.call(e,t==null||n?1:t)}function Ww(e,t,n){if(e==null||e.length<1)return t==null||n?void 0:[];if(t==null||n)return e[e.length-1];return Xs(e,Math.max(0,e.length-t))}function jw(e){return vi(e,Boolean)}function qw(e,t){return yo(e,t,!1)}var sg=vt(function(e,t){return t=yo(t,!0,!0),vi(e,function(n){return!vn(t,n)})}),$w=vt(function(e,t){return sg(e,t)});function Zu(e,t,n,r){if(!Ap(t))r=n,n=t,t=!1;if(n!=null)n=Tt(n,r);var i=[],o=[];for(var s=0,a=ut(e);s<a;s++){var c=e[s],u=n?n(c,s,e):c;if(t&&!n){if(!s||o!==u)i.push(c);o=u}else if(n){if(!vn(o,u))o.push(u),i.push(c)}else if(!vn(i,c))i.push(c)}return i}var Hw=vt(function(e){return Zu(yo(e,!0,!0))});function Gw(e){var t=[],n=arguments.length;for(var r=0,i=ut(e);r<i;r++){var o=e[r];if(vn(t,o))continue;var s;for(s=1;s<n;s++)if(!vn(arguments[s],o))break;if(s===n)t.push(o)}return t}function Yu(e){var t=e&&tg(e,ut).length||0,n=Array(t);for(var r=0;r<t;r++)n[r]=sl(e,r);return n}var zw=vt(Yu);function Vw(e,t){var n={};for(var r=0,i=ut(e);r<i;r++)if(t)n[e[r]]=t[r];else n[e[r][0]]=e[r][1];return n}function Xw(e,t,n){if(t==null)t=e||0,e=0;if(!n)n=t<e?-1:1;var r=Math.max(Math.ceil((t-e)/n),0),i=Array(r);for(var o=0;o<r;o++,e+=n)i[o]=e;return i}function Kw(e,t){if(t==null||t<1)return[];var n=[],r=0,i=e.length;while(r<i)n.push(Js.call(e,r,r+=t));return n}function ag(e,t){return e._chain?ve(t).chain():t}function cg(e){return xn(Vu(e),function(t){var n=ve[t]=e[t];ve.prototype[t]=function(){var r=[this._wrapped];return vB.apply(r,arguments),ag(this,n.apply(ve,r))}}),ve}xn(["pop","push","reverse","shift","sort","splice","unshift"],function(e){var t=Ju[e];ve.prototype[e]=function(){var n=this._wrapped;if(n!=null){if(t.apply(n,arguments),(e==="shift"||e==="splice")&&n.length===0)delete n[0]}return ag(this,n)}});xn(["concat","join","slice"],function(e){var t=Ju[e];ve.prototype[e]=function(){var n=this._wrapped;if(n!=null)n=t.apply(n,arguments);return ag(this,n)}});var HB={__proto__:null,VERSION:Tp,restArguments:vt,isObject:Pr,isNull:C_,isUndefined:Cp,isBoolean:Ap,isElement:A_,isString:Qu,isNumber:Up,isDate:U_,isRegExp:k_,isError:R_,isSymbol:kp,isArrayBuffer:Rp,isDataView:Zs,isArray:Ir,isFunction:lt,isArguments:el,isFinite:I_,isNaN:Op,isTypedArray:Ip,isEmpty:L_,isMatch:Mp,isEqual:W_,isMap:H_,isWeakMap:G_,isSet:z_,isWeakSet:V_,keys:Ge,allKeys:mo,values:xi,pairs:X_,invert:Wp,functions:Vu,methods:Vu,extend:qp,extendOwn:Ys,assign:Ys,defaults:$p,create:Z_,clone:Y_,tap:J_,get:zp,has:Q_,mapObject:tw,identity:tl,constant:Pp,noop:Vp,toPath:Hp,property:nl,propertyOf:nw,matcher:po,matches:po,times:rw,random:Xu,now:go,escape:sw,unescape:aw,templateSettings:cw,template:uw,result:lw,uniqueId:dw,chain:fw,iteratee:rl,partial:_i,bind:Xp,bindAll:pw,memoize:gw,delay:Kp,defer:mw,throttle:yw,debounce:bw,wrap:vw,negate:il,compose:xw,after:_w,before:Zp,once:ww,findKey:Yp,findIndex:ol,findLastIndex:Jp,sortedIndex:Qp,indexOf:eg,lastIndexOf:Tw,find:Ku,detect:Ku,findWhere:Sw,each:xn,forEach:xn,map:Or,collect:Or,reduce:Hu,foldl:Hu,inject:Hu,reduceRight:_p,foldr:_p,filter:vi,select:vi,reject:Aw,every:wp,all:wp,some:Dp,any:Dp,contains:vn,includes:vn,include:vn,invoke:Uw,pluck:sl,where:kw,max:tg,min:Rw,shuffle:Fw,sample:rg,sortBy:Ow,groupBy:Pw,indexBy:Iw,countBy:Mw,partition:Nw,toArray:ng,size:Bw,pick:ig,omit:Lw,first:Gu,head:Gu,take:Gu,initial:og,last:Ww,rest:Xs,tail:Xs,drop:Xs,compact:jw,flatten:qw,without:$w,uniq:Zu,unique:Zu,union:Hw,intersection:Gw,difference:sg,unzip:Yu,transpose:Yu,zip:zw,object:Vw,range:Xw,chunk:Kw,mixin:cg,default:ve},Ep=cg(HB);Ep._=Ep;Zw.VERSION=Tp;Zw._=Ep;Zw._escape=sw;Zw._unescape=aw;Zw.after=_w;Zw.allKeys=mo;Zw.before=Zp;Zw.bind=Xp;Zw.bindAll=pw;Zw.chain=fw;Zw.chunk=Kw;Zw.clone=Y_;Zw.compact=jw;Zw.compose=xw;Zw.constant=Pp;Zw.contains=vn;Zw.countBy=Mw;Zw.create=Z_;Zw.debounce=bw;Zw.defaults=$p;Zw.defer=mw;Zw.delay=Kp;Zw.difference=sg;Zw.each=xn;Zw.every=wp;Zw.extend=qp;Zw.extendOwn=Ys;Zw.filter=vi;Zw.find=Ku;Zw.findIndex=ol;Zw.findKey=Yp;Zw.findLastIndex=Jp;Zw.findWhere=Sw;Zw.first=Gu;Zw.flatten=qw;Zw.functions=Vu;Zw.get=zp;Zw.groupBy=Pw;Zw.has=Q_;Zw.identity=tl;Zw.indexBy=Iw;Zw.indexOf=eg;Zw.initial=og;Zw.intersection=Gw;Zw.invert=Wp;Zw.invoke=Uw;Zw.isArguments=el;Zw.isArray=Ir;Zw.isArrayBuffer=Rp;Zw.isBoolean=Ap;Zw.isDataView=Zs;Zw.isDate=U_;Zw.isElement=A_;Zw.isEmpty=L_;Zw.isEqual=W_;Zw.isError=R_;Zw.isFinite=I_;Zw.isFunction=lt;Zw.isMap=H_;Zw.isMatch=Mp;Zw.isNaN=Op;Zw.isNull=C_;Zw.isNumber=Up;Zw.isObject=Pr;Zw.isRegExp=k_;Zw.isSet=z_;Zw.isString=Qu;Zw.isSymbol=kp;Zw.isTypedArray=Ip;Zw.isUndefined=Cp;Zw.isWeakMap=G_;Zw.isWeakSet=V_;Zw.iteratee=rl;Zw.keys=Ge;Zw.last=Ww;Zw.lastIndexOf=Tw;Zw.map=Or;Zw.mapObject=tw;Zw.matcher=po;Zw.max=tg;Zw.memoize=gw;Zw.min=Rw;Zw.mixin=cg;Zw.negate=il;Zw.noop=Vp;Zw.now=go;Zw.object=Vw;Zw.omit=Lw;Zw.once=ww;Zw.pairs=X_;Zw.partial=_i;Zw.partition=Nw;Zw.pick=ig;Zw.pluck=sl;Zw.property=nl;Zw.propertyOf=nw;Zw.random=Xu;Zw.range=Xw;Zw.reduce=Hu;Zw.reduceRight=_p;Zw.reject=Aw;Zw.rest=Xs;Zw.restArguments=vt;Zw.result=lw;Zw.sample=rg;Zw.shuffle=Fw;Zw.size=Bw;Zw.some=Dp;Zw.sortBy=Ow;Zw.sortedIndex=Qp;Zw.tap=J_;Zw.template=uw;Zw.templateSettings=cw;Zw.throttle=yw;Zw.times=rw;Zw.toArray=ng;Zw.toPath=Hp;Zw.union=Hw;Zw.uniq=Zu;Zw.uniqueId=dw;Zw.unzip=Yu;Zw.values=xi;Zw.where=kw;Zw.without=$w;Zw.wrap=vw;Zw.zip=zw});var Me=R(function(jpe,Jw){var uL=Yw();Jw.exports=uL._});var wi=R(function(qpe,bg){var ug=function(){return this===void 0}();if(ug)bg.exports={freeze:Object.freeze,defineProperty:Object.defineProperty,getDescriptor:Object.getOwnPropertyDescriptor,keys:Object.keys,names:Object.getOwnPropertyNames,getPrototypeOf:Object.getPrototypeOf,isArray:Array.isArray,isES5:ug,propertyIsWritable:function(e,t){var n=Object.getOwnPropertyDescriptor(e,t);return!!(!n||n.writable||n.set)}};else lg={}.hasOwnProperty,dg={}.toString,fg={}.constructor.prototype,cl=function(e){var t=[];for(var n in e)if(lg.call(e,n))t.push(n);return t},hg=function(e,t){return{value:e[t]}},pg=function(e,t,n){return e[t]=n.value,e},gg=function(e){return e},mg=function(e){try{return Object(e).constructor.prototype}catch(t){return fg}},yg=function(e){try{return dg.call(e)==="[object Array]"}catch(t){return!1}},bg.exports={isArray:yg,keys:cl,names:cl,defineProperty:pg,getDescriptor:hg,freeze:gg,getPrototypeOf:mg,isES5:ug,propertyIsWritable:function(){return!0}};var lg,dg,fg,cl,hg,pg,gg,mg,yg});var we=R(function(ll,Eg){var St=wi(),lL=typeof navigator>"u",vg={e:{}},xg,dL=typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:ll!==void 0?ll:null;function fL(){try{var e=xg;return xg=null,e.apply(this,arguments)}catch(t){return vg.e=t,vg}}function hL(e){return xg=e,fL}var pL=function(e,t){var n={}.hasOwnProperty;function r(){this.constructor=e,this.constructor$=t;for(var i in t.prototype)if(n.call(t.prototype,i)&&i.charAt(i.length-1)!=="$")this[i+"$"]=t.prototype[i]}return r.prototype=t.prototype,e.prototype=new r,e.prototype};function Dg(e){return e==null||e===!0||e===!1||typeof e==="string"||typeof e==="number"}function gL(e){return typeof e==="function"||typeof e==="object"&&e!==null}function mL(e){if(!Dg(e))return e;return Error(ul(e))}function yL(e,t){var n=e.length,r=Array(n+1),i;for(i=0;i<n;++i)r[i]=e[i];return r[i]=t,r}function bL(e,t,n){if(St.isES5){var r=Object.getOwnPropertyDescriptor(e,t);if(r!=null)return r.get==null&&r.set==null?r.value:n}else return{}.hasOwnProperty.call(e,t)?e[t]:void 0}function Qw(e,t,n){if(Dg(e))return e;var r={value:n,configurable:!0,enumerable:!1,writable:!0};return St.defineProperty(e,t,r),e}function vL(e){throw e}var xL=function(){var e=[Array.prototype,Object.prototype,Function.prototype],t=function(i){for(var o=0;o<e.length;++o)if(e[o]===i)return!0;return!1};if(St.isES5){var n=Object.getOwnPropertyNames;return function(i){var o=[],s=Object.create(null);while(i!=null&&!t(i)){var a;try{a=n(i)}catch(f){return o}for(var c=0;c<a.length;++c){var u=a[c];if(s[u])continue;s[u]=!0;var d=Object.getOwnPropertyDescriptor(i,u);if(d!=null&&d.get==null&&d.set==null)o.push(u)}i=St.getPrototypeOf(i)}return o}}else{var r={}.hasOwnProperty;return function(i){if(t(i))return[];var o=[];e:for(var s in i)if(r.call(i,s))o.push(s);else{for(var a=0;a<e.length;++a)if(r.call(e[a],s))continue e;o.push(s)}return o}}}(),_L=/this\s*\.\s*\S+\s*=/;function wL(e){try{if(typeof e==="function"){var t=St.names(e.prototype),n=St.isES5&&t.length>1,r=t.length>0&&!(t.length===1&&t[0]==="constructor"),i=_L.test(e+"")&&St.names(e).length>0;if(n||r||i)return!0}return!1}catch(o){return!1}}function DL(obj){function FakeConstructor(){}FakeConstructor.prototype=obj;var l=8;while(l--)new FakeConstructor;return obj}var EL=/^[a-z$_][a-z$_0-9]*$/i;function TL(e){return EL.test(e)}function SL(e,t,n){var r=Array(e);for(var i=0;i<e;++i)r[i]=t+i+n;return r}function ul(e){try{return e+""}catch(t){return"[no string representation]"}}function eD(e){return e!==null&&typeof e==="object"&&typeof e.message==="string"&&typeof e.name==="string"}function CL(e){try{Qw(e,"isOperational",!0)}catch(t){}}function AL(e){if(e==null)return!1;return e instanceof Error.__BluebirdErrorTypes__.OperationalError||e.isOperational===!0}function _g(e){return eD(e)&&St.propertyIsWritable(e,"stack")}var UL=function(){if(!("stack"in Error()))return function(e){if(_g(e))return e;try{throw Error(ul(e))}catch(t){return t}};else return function(e){if(_g(e))return e;return Error(ul(e))}}();function tD(e){return{}.toString.call(e)}function kL(e,t,n){var r=St.names(e);for(var i=0;i<r.length;++i){var o=r[i];if(n(o))try{St.defineProperty(t,o,St.getDescriptor(e,o))}catch(s){}}}var nD=function(e){if(St.isArray(e))return e;return null};if(typeof Symbol<"u"&&Symbol.iterator)wg=typeof Array.from==="function"?function(e){return Array.from(e)}:function(e){var t=[],n=e[Symbol.iterator](),r;while(!(r=n.next()).done)t.push(r.value);return t},nD=function(e){if(St.isArray(e))return e;else if(e!=null&&typeof e[Symbol.iterator]==="function")return wg(e);return null};var wg,RL=typeof process<"u"&&tD(process).toLowerCase()==="[object process]",rD=typeof process<"u"&&typeof process.env<"u";function FL(e){return rD?process.env[e]:void 0}function OL(){if(typeof Promise==="function")try{var e=new Promise(function(){});if({}.toString.call(e)==="[object Promise]")return Promise}catch(t){}}function PL(e,t){return e.bind(t)}var bo={isClass:wL,isIdentifier:TL,inheritedDataKeys:xL,getDataPropertyOrDefault:bL,thrower:vL,isArray:St.isArray,asArray:nD,notEnumerableProp:Qw,isPrimitive:Dg,isObject:gL,isError:eD,canEvaluate:lL,errorObj:vg,tryCatch:hL,inherits:pL,withAppended:yL,maybeWrapAsError:mL,toFastProperties:DL,filledRange:SL,toString:ul,canAttachTrace:_g,ensureErrorObject:UL,originatesFromRejection:AL,markAsOriginatingFromRejection:CL,classString:tD,copyDescriptors:kL,hasDevTools:typeof chrome<"u"&&chrome&&typeof chrome.loadTimes==="function",isNode:RL,hasEnvVariables:rD,env:FL,global:dL,getNativePromise:OL,domainBind:PL};bo.isRecentNode=bo.isNode&&function(){var e=process.versions.node.split(".").map(Number);return e[0]===0&&e[1]>10||e[0]>0}();if(bo.isNode)bo.toFastProperties(process);try{throw Error()}catch(e){bo.lastLineError=e}Eg.exports=bo});var oD=R(function($pe,iD){var Sg=we(),Di,IL=function(){throw Error(`No async scheduler available
18
+ `;var a;try{a=Function(s,"_",o)}catch(u){throw u.source=o,u}var c=function(u){return a.call(this,u,be)};return c.source="function("+s+`){
19
+ `+o+"}",c}function lw(e,t,n){t=Qs(t);var r=t.length;if(!r)return lt(n)?n.call(e):n;for(var i=0;i<r;i++){var o=e==null?void 0:e[t[i]];if(o===void 0)o=n,i=r;e=lt(o)?o.call(e):o}return e}var jB=0;function dw(e){var t=++jB+"";return e?e+t:t}function fw(e){var t=be(e);return t._chain=!0,t}function hw(e,t,n,r,i){if(!(r instanceof t))return e.apply(n,i);var o=K_(e.prototype),s=e.apply(o,i);if(Pr(s))return s;return o}var _i=vt(function(e,t){var n=_i.placeholder,r=function(){var i=0,o=t.length,s=Array(o);for(var a=0;a<o;a++)s[a]=t[a]===n?arguments[i++]:t[a];while(i<arguments.length)s.push(arguments[i++]);return hw(e,r,this,this,s)};return r});_i.placeholder=be;var Xp=vt(function(e,t,n){if(!lt(e))throw TypeError("Bind must be called on a function");var r=vt(function(i){return hw(e,r,t,this,n.concat(i))});return r}),Ot=M_(ut);function yo(e,t,n){if(!t&&t!==0)t=1/0;var r=[],i=0,o=0,s=ut(e)||0,a=[];while(!0){if(o>=s){if(!a.length)break;var c=a.pop();o=c.i,e=c.v,s=ut(e);continue}var u=e[o++];if(a.length>=t)r[i++]=u;else if(Ot(u)&&(Ir(u)||el(u)))a.push({i:o,v:e}),o=0,e=u,s=ut(e);else if(!n)r[i++]=u}return r}var pw=vt(function(e,t){t=yo(t,!1,!1);var n=t.length;if(n<1)throw Error("bindAll must be passed function names");while(n--){var r=t[n];e[r]=Xp(e[r],e)}return e});function gw(e,t){var n=function(r){var i=n.cache,o=""+(t?t.apply(this,arguments):r);if(!Mr(i,o))i[o]=e.apply(this,arguments);return i[o]};return n.cache={},n}var Kp=vt(function(e,t,n){return setTimeout(function(){return e.apply(null,n)},t)}),mw=_i(Kp,be,1);function yw(e,t,n){var r,i,o,s,a=0;if(!n)n={};var c=function(){if(a=n.leading===!1?0:go(),r=null,s=e.apply(i,o),!r)i=o=null},u=function(){var d=go();if(!a&&n.leading===!1)a=d;var f=t-(d-a);if(i=this,o=arguments,f<=0||f>t){if(r)clearTimeout(r),r=null;if(a=d,s=e.apply(i,o),!r)i=o=null}else if(!r&&n.trailing!==!1)r=setTimeout(c,f);return s};return u.cancel=function(){clearTimeout(r),a=0,r=i=o=null},u}function bw(e,t,n){var r,i,o,s,a,c=function(){var d=go()-i;if(t>d)r=setTimeout(c,t-d);else{if(r=null,!n)s=e.apply(a,o);if(!r)o=a=null}},u=vt(function(d){if(a=this,o=d,i=go(),!r){if(r=setTimeout(c,t),n)s=e.apply(a,o)}return s});return u.cancel=function(){clearTimeout(r),r=o=a=null},u}function vw(e,t){return _i(t,e)}function il(e){return function(){return!e.apply(this,arguments)}}function xw(){var e=arguments,t=e.length-1;return function(){var n=t,r=e[t].apply(this,arguments);while(n--)r=e[n].call(this,r);return r}}function _w(e,t){return function(){if(--e<1)return t.apply(this,arguments)}}function Zp(e,t){var n;return function(){if(--e>0)n=t.apply(this,arguments);if(e<=1)t=null;return n}}var ww=_i(Zp,2);function Yp(e,t,n){t=Tt(t,n);var r=Ge(e),i;for(var o=0,s=r.length;o<s;o++)if(i=r[o],t(e[i],i,e))return i}function Dw(e){return function(t,n,r){n=Tt(n,r);var i=ut(t),o=e>0?0:i-1;for(;o>=0&&o<i;o+=e)if(n(t[o],o,t))return o;return-1}}var ol=Dw(1),Jp=Dw(-1);function Qp(e,t,n,r){n=Tt(n,r,1);var i=n(t),o=0,s=ut(e);while(o<s){var a=Math.floor((o+s)/2);if(n(e[a])<i)o=a+1;else s=a}return o}function Ew(e,t,n){return function(r,i,o){var s=0,a=ut(r);if(typeof o=="number")if(e>0)s=o>=0?o:Math.max(o+a,s);else a=o>=0?Math.min(o+1,a):o+a+1;else if(n&&o&&a)return o=n(r,i),r[o]===i?o:-1;if(i!==i)return o=t(Js.call(r,s,a),Op),o>=0?o+s:-1;for(o=e>0?s:a-1;o>=0&&o<a;o+=e)if(r[o]===i)return o;return-1}}var eg=Ew(1,ol,Qp),Tw=Ew(-1,Jp);function Ku(e,t,n){var r=Ot(e)?ol:Yp,i=r(e,t,n);if(i!==void 0&&i!==-1)return e[i]}function Sw(e,t){return Ku(e,po(t))}function xn(e,t,n){t=ea(t,n);var r,i;if(Ot(e))for(r=0,i=e.length;r<i;r++)t(e[r],r,e);else{var o=Ge(e);for(r=0,i=o.length;r<i;r++)t(e[o[r]],o[r],e)}return e}function Or(e,t,n){t=Tt(t,n);var r=!Ot(e)&&Ge(e),i=(r||e).length,o=Array(i);for(var s=0;s<i;s++){var a=r?r[s]:s;o[s]=t(e[a],a,e)}return o}function Cw(e){var t=function(n,r,i,o){var s=!Ot(n)&&Ge(n),a=(s||n).length,c=e>0?0:a-1;if(!o)i=n[s?s[c]:c],c+=e;for(;c>=0&&c<a;c+=e){var u=s?s[c]:c;i=r(i,n[u],u,n)}return i};return function(n,r,i,o){var s=arguments.length>=3;return t(n,ea(r,o,4),i,s)}}var Hu=Cw(1),_p=Cw(-1);function vi(e,t,n){var r=[];return t=Tt(t,n),xn(e,function(i,o,s){if(t(i,o,s))r.push(i)}),r}function Aw(e,t,n){return vi(e,il(Tt(t)),n)}function wp(e,t,n){t=Tt(t,n);var r=!Ot(e)&&Ge(e),i=(r||e).length;for(var o=0;o<i;o++){var s=r?r[o]:o;if(!t(e[s],s,e))return!1}return!0}function Dp(e,t,n){t=Tt(t,n);var r=!Ot(e)&&Ge(e),i=(r||e).length;for(var o=0;o<i;o++){var s=r?r[o]:o;if(t(e[s],s,e))return!0}return!1}function vn(e,t,n,r){if(!Ot(e))e=xi(e);if(typeof n!="number"||r)n=0;return eg(e,t,n)>=0}var Uw=vt(function(e,t,n){var r,i;if(lt(t))i=t;else t=Qs(t),r=t.slice(0,-1),t=t[t.length-1];return Or(e,function(o){var s=i;if(!s){if(r&&r.length)o=Gp(o,r);if(o==null)return;s=o[t]}return s==null?s:s.apply(o,n)})});function sl(e,t){return Or(e,nl(t))}function kw(e,t){return vi(e,po(t))}function tg(e,t,n){var r=-1/0,i=-1/0,o,s;if(t==null||typeof t=="number"&&typeof e[0]!="object"&&e!=null){e=Ot(e)?e:xi(e);for(var a=0,c=e.length;a<c;a++)if(o=e[a],o!=null&&o>r)r=o}else t=Tt(t,n),xn(e,function(u,d,f){if(s=t(u,d,f),s>i||s===-1/0&&r===-1/0)r=u,i=s});return r}function Rw(e,t,n){var r=1/0,i=1/0,o,s;if(t==null||typeof t=="number"&&typeof e[0]!="object"&&e!=null){e=Ot(e)?e:xi(e);for(var a=0,c=e.length;a<c;a++)if(o=e[a],o!=null&&o<r)r=o}else t=Tt(t,n),xn(e,function(u,d,f){if(s=t(u,d,f),s<i||s===1/0&&r===1/0)r=u,i=s});return r}var qB=/[^\ud800-\udfff]|[\ud800-\udbff][\udc00-\udfff]|[\ud800-\udfff]/g;function ng(e){if(!e)return[];if(Ir(e))return Js.call(e);if(Qu(e))return e.match(qB);if(Ot(e))return Or(e,tl);return xi(e)}function rg(e,t,n){if(t==null||n){if(!Ot(e))e=xi(e);return e[Xu(e.length-1)]}var r=ng(e),i=ut(r);t=Math.max(Math.min(t,i),0);var o=i-1;for(var s=0;s<t;s++){var a=Xu(s,o),c=r[s];r[s]=r[a],r[a]=c}return r.slice(0,t)}function Fw(e){return rg(e,1/0)}function Ow(e,t,n){var r=0;return t=Tt(t,n),sl(Or(e,function(i,o,s){return{value:i,index:r++,criteria:t(i,o,s)}}).sort(function(i,o){var s=i.criteria,a=o.criteria;if(s!==a){if(s>a||s===void 0)return 1;if(s<a||a===void 0)return-1}return i.index-o.index}),"value")}function al(e,t){return function(n,r,i){var o=t?[[],[]]:{};return r=Tt(r,i),xn(n,function(s,a){var c=r(s,a,n);e(o,s,c)}),o}}var Pw=al(function(e,t,n){if(Mr(e,n))e[n].push(t);else e[n]=[t]}),Iw=al(function(e,t,n){e[n]=t}),Mw=al(function(e,t,n){if(Mr(e,n))e[n]++;else e[n]=1}),Nw=al(function(e,t,n){e[n?0:1].push(t)},!0);function Bw(e){if(e==null)return 0;return Ot(e)?e.length:Ge(e).length}function $B(e,t,n){return t in n}var ig=vt(function(e,t){var n={},r=t[0];if(e==null)return n;if(lt(r)){if(t.length>1)r=ea(r,t[1]);t=mo(e)}else r=$B,t=yo(t,!1,!1),e=Object(e);for(var i=0,o=t.length;i<o;i++){var s=t[i],a=e[s];if(r(a,s,e))n[s]=a}return n}),Lw=vt(function(e,t){var n=t[0],r;if(lt(n)){if(n=il(n),t.length>1)r=t[1]}else t=Or(yo(t,!1,!1),String),n=function(i,o){return!vn(t,o)};return ig(e,n,r)});function og(e,t,n){return Js.call(e,0,Math.max(0,e.length-(t==null||n?1:t)))}function Gu(e,t,n){if(e==null||e.length<1)return t==null||n?void 0:[];if(t==null||n)return e[0];return og(e,e.length-t)}function Xs(e,t,n){return Js.call(e,t==null||n?1:t)}function Ww(e,t,n){if(e==null||e.length<1)return t==null||n?void 0:[];if(t==null||n)return e[e.length-1];return Xs(e,Math.max(0,e.length-t))}function jw(e){return vi(e,Boolean)}function qw(e,t){return yo(e,t,!1)}var sg=vt(function(e,t){return t=yo(t,!0,!0),vi(e,function(n){return!vn(t,n)})}),$w=vt(function(e,t){return sg(e,t)});function Zu(e,t,n,r){if(!Ap(t))r=n,n=t,t=!1;if(n!=null)n=Tt(n,r);var i=[],o=[];for(var s=0,a=ut(e);s<a;s++){var c=e[s],u=n?n(c,s,e):c;if(t&&!n){if(!s||o!==u)i.push(c);o=u}else if(n){if(!vn(o,u))o.push(u),i.push(c)}else if(!vn(i,c))i.push(c)}return i}var Hw=vt(function(e){return Zu(yo(e,!0,!0))});function Gw(e){var t=[],n=arguments.length;for(var r=0,i=ut(e);r<i;r++){var o=e[r];if(vn(t,o))continue;var s;for(s=1;s<n;s++)if(!vn(arguments[s],o))break;if(s===n)t.push(o)}return t}function Yu(e){var t=e&&tg(e,ut).length||0,n=Array(t);for(var r=0;r<t;r++)n[r]=sl(e,r);return n}var zw=vt(Yu);function Vw(e,t){var n={};for(var r=0,i=ut(e);r<i;r++)if(t)n[e[r]]=t[r];else n[e[r][0]]=e[r][1];return n}function Xw(e,t,n){if(t==null)t=e||0,e=0;if(!n)n=t<e?-1:1;var r=Math.max(Math.ceil((t-e)/n),0),i=Array(r);for(var o=0;o<r;o++,e+=n)i[o]=e;return i}function Kw(e,t){if(t==null||t<1)return[];var n=[],r=0,i=e.length;while(r<i)n.push(Js.call(e,r,r+=t));return n}function ag(e,t){return e._chain?be(t).chain():t}function cg(e){return xn(Vu(e),function(t){var n=be[t]=e[t];be.prototype[t]=function(){var r=[this._wrapped];return vB.apply(r,arguments),ag(this,n.apply(be,r))}}),be}xn(["pop","push","reverse","shift","sort","splice","unshift"],function(e){var t=Ju[e];be.prototype[e]=function(){var n=this._wrapped;if(n!=null){if(t.apply(n,arguments),(e==="shift"||e==="splice")&&n.length===0)delete n[0]}return ag(this,n)}});xn(["concat","join","slice"],function(e){var t=Ju[e];be.prototype[e]=function(){var n=this._wrapped;if(n!=null)n=t.apply(n,arguments);return ag(this,n)}});var HB={__proto__:null,VERSION:Tp,restArguments:vt,isObject:Pr,isNull:C_,isUndefined:Cp,isBoolean:Ap,isElement:A_,isString:Qu,isNumber:Up,isDate:U_,isRegExp:k_,isError:R_,isSymbol:kp,isArrayBuffer:Rp,isDataView:Zs,isArray:Ir,isFunction:lt,isArguments:el,isFinite:I_,isNaN:Op,isTypedArray:Ip,isEmpty:L_,isMatch:Mp,isEqual:W_,isMap:H_,isWeakMap:G_,isSet:z_,isWeakSet:V_,keys:Ge,allKeys:mo,values:xi,pairs:X_,invert:Wp,functions:Vu,methods:Vu,extend:qp,extendOwn:Ys,assign:Ys,defaults:$p,create:Z_,clone:Y_,tap:J_,get:zp,has:Q_,mapObject:tw,identity:tl,constant:Pp,noop:Vp,toPath:Hp,property:nl,propertyOf:nw,matcher:po,matches:po,times:rw,random:Xu,now:go,escape:sw,unescape:aw,templateSettings:cw,template:uw,result:lw,uniqueId:dw,chain:fw,iteratee:rl,partial:_i,bind:Xp,bindAll:pw,memoize:gw,delay:Kp,defer:mw,throttle:yw,debounce:bw,wrap:vw,negate:il,compose:xw,after:_w,before:Zp,once:ww,findKey:Yp,findIndex:ol,findLastIndex:Jp,sortedIndex:Qp,indexOf:eg,lastIndexOf:Tw,find:Ku,detect:Ku,findWhere:Sw,each:xn,forEach:xn,map:Or,collect:Or,reduce:Hu,foldl:Hu,inject:Hu,reduceRight:_p,foldr:_p,filter:vi,select:vi,reject:Aw,every:wp,all:wp,some:Dp,any:Dp,contains:vn,includes:vn,include:vn,invoke:Uw,pluck:sl,where:kw,max:tg,min:Rw,shuffle:Fw,sample:rg,sortBy:Ow,groupBy:Pw,indexBy:Iw,countBy:Mw,partition:Nw,toArray:ng,size:Bw,pick:ig,omit:Lw,first:Gu,head:Gu,take:Gu,initial:og,last:Ww,rest:Xs,tail:Xs,drop:Xs,compact:jw,flatten:qw,without:$w,uniq:Zu,unique:Zu,union:Hw,intersection:Gw,difference:sg,unzip:Yu,transpose:Yu,zip:zw,object:Vw,range:Xw,chunk:Kw,mixin:cg,default:be},Ep=cg(HB);Ep._=Ep;Zw.VERSION=Tp;Zw._=Ep;Zw._escape=sw;Zw._unescape=aw;Zw.after=_w;Zw.allKeys=mo;Zw.before=Zp;Zw.bind=Xp;Zw.bindAll=pw;Zw.chain=fw;Zw.chunk=Kw;Zw.clone=Y_;Zw.compact=jw;Zw.compose=xw;Zw.constant=Pp;Zw.contains=vn;Zw.countBy=Mw;Zw.create=Z_;Zw.debounce=bw;Zw.defaults=$p;Zw.defer=mw;Zw.delay=Kp;Zw.difference=sg;Zw.each=xn;Zw.every=wp;Zw.extend=qp;Zw.extendOwn=Ys;Zw.filter=vi;Zw.find=Ku;Zw.findIndex=ol;Zw.findKey=Yp;Zw.findLastIndex=Jp;Zw.findWhere=Sw;Zw.first=Gu;Zw.flatten=qw;Zw.functions=Vu;Zw.get=zp;Zw.groupBy=Pw;Zw.has=Q_;Zw.identity=tl;Zw.indexBy=Iw;Zw.indexOf=eg;Zw.initial=og;Zw.intersection=Gw;Zw.invert=Wp;Zw.invoke=Uw;Zw.isArguments=el;Zw.isArray=Ir;Zw.isArrayBuffer=Rp;Zw.isBoolean=Ap;Zw.isDataView=Zs;Zw.isDate=U_;Zw.isElement=A_;Zw.isEmpty=L_;Zw.isEqual=W_;Zw.isError=R_;Zw.isFinite=I_;Zw.isFunction=lt;Zw.isMap=H_;Zw.isMatch=Mp;Zw.isNaN=Op;Zw.isNull=C_;Zw.isNumber=Up;Zw.isObject=Pr;Zw.isRegExp=k_;Zw.isSet=z_;Zw.isString=Qu;Zw.isSymbol=kp;Zw.isTypedArray=Ip;Zw.isUndefined=Cp;Zw.isWeakMap=G_;Zw.isWeakSet=V_;Zw.iteratee=rl;Zw.keys=Ge;Zw.last=Ww;Zw.lastIndexOf=Tw;Zw.map=Or;Zw.mapObject=tw;Zw.matcher=po;Zw.max=tg;Zw.memoize=gw;Zw.min=Rw;Zw.mixin=cg;Zw.negate=il;Zw.noop=Vp;Zw.now=go;Zw.object=Vw;Zw.omit=Lw;Zw.once=ww;Zw.pairs=X_;Zw.partial=_i;Zw.partition=Nw;Zw.pick=ig;Zw.pluck=sl;Zw.property=nl;Zw.propertyOf=nw;Zw.random=Xu;Zw.range=Xw;Zw.reduce=Hu;Zw.reduceRight=_p;Zw.reject=Aw;Zw.rest=Xs;Zw.restArguments=vt;Zw.result=lw;Zw.sample=rg;Zw.shuffle=Fw;Zw.size=Bw;Zw.some=Dp;Zw.sortBy=Ow;Zw.sortedIndex=Qp;Zw.tap=J_;Zw.template=uw;Zw.templateSettings=cw;Zw.throttle=yw;Zw.times=rw;Zw.toArray=ng;Zw.toPath=Hp;Zw.union=Hw;Zw.uniq=Zu;Zw.uniqueId=dw;Zw.unzip=Yu;Zw.values=xi;Zw.where=kw;Zw.without=$w;Zw.wrap=vw;Zw.zip=zw});var Me=R(function($pe,Jw){var uL=Yw();Jw.exports=uL._});var wi=R(function(Hpe,bg){var ug=function(){return this===void 0}();if(ug)bg.exports={freeze:Object.freeze,defineProperty:Object.defineProperty,getDescriptor:Object.getOwnPropertyDescriptor,keys:Object.keys,names:Object.getOwnPropertyNames,getPrototypeOf:Object.getPrototypeOf,isArray:Array.isArray,isES5:ug,propertyIsWritable:function(e,t){var n=Object.getOwnPropertyDescriptor(e,t);return!!(!n||n.writable||n.set)}};else lg={}.hasOwnProperty,dg={}.toString,fg={}.constructor.prototype,cl=function(e){var t=[];for(var n in e)if(lg.call(e,n))t.push(n);return t},hg=function(e,t){return{value:e[t]}},pg=function(e,t,n){return e[t]=n.value,e},gg=function(e){return e},mg=function(e){try{return Object(e).constructor.prototype}catch(t){return fg}},yg=function(e){try{return dg.call(e)==="[object Array]"}catch(t){return!1}},bg.exports={isArray:yg,keys:cl,names:cl,defineProperty:pg,getDescriptor:hg,freeze:gg,getPrototypeOf:mg,isES5:ug,propertyIsWritable:function(){return!0}};var lg,dg,fg,cl,hg,pg,gg,mg,yg});var we=R(function(ll,Eg){var St=wi(),lL=typeof navigator>"u",vg={e:{}},xg,dL=typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:ll!==void 0?ll:null;function fL(){try{var e=xg;return xg=null,e.apply(this,arguments)}catch(t){return vg.e=t,vg}}function hL(e){return xg=e,fL}var pL=function(e,t){var n={}.hasOwnProperty;function r(){this.constructor=e,this.constructor$=t;for(var i in t.prototype)if(n.call(t.prototype,i)&&i.charAt(i.length-1)!=="$")this[i+"$"]=t.prototype[i]}return r.prototype=t.prototype,e.prototype=new r,e.prototype};function Dg(e){return e==null||e===!0||e===!1||typeof e==="string"||typeof e==="number"}function gL(e){return typeof e==="function"||typeof e==="object"&&e!==null}function mL(e){if(!Dg(e))return e;return Error(ul(e))}function yL(e,t){var n=e.length,r=Array(n+1),i;for(i=0;i<n;++i)r[i]=e[i];return r[i]=t,r}function bL(e,t,n){if(St.isES5){var r=Object.getOwnPropertyDescriptor(e,t);if(r!=null)return r.get==null&&r.set==null?r.value:n}else return{}.hasOwnProperty.call(e,t)?e[t]:void 0}function Qw(e,t,n){if(Dg(e))return e;var r={value:n,configurable:!0,enumerable:!1,writable:!0};return St.defineProperty(e,t,r),e}function vL(e){throw e}var xL=function(){var e=[Array.prototype,Object.prototype,Function.prototype],t=function(i){for(var o=0;o<e.length;++o)if(e[o]===i)return!0;return!1};if(St.isES5){var n=Object.getOwnPropertyNames;return function(i){var o=[],s=Object.create(null);while(i!=null&&!t(i)){var a;try{a=n(i)}catch(f){return o}for(var c=0;c<a.length;++c){var u=a[c];if(s[u])continue;s[u]=!0;var d=Object.getOwnPropertyDescriptor(i,u);if(d!=null&&d.get==null&&d.set==null)o.push(u)}i=St.getPrototypeOf(i)}return o}}else{var r={}.hasOwnProperty;return function(i){if(t(i))return[];var o=[];e:for(var s in i)if(r.call(i,s))o.push(s);else{for(var a=0;a<e.length;++a)if(r.call(e[a],s))continue e;o.push(s)}return o}}}(),_L=/this\s*\.\s*\S+\s*=/;function wL(e){try{if(typeof e==="function"){var t=St.names(e.prototype),n=St.isES5&&t.length>1,r=t.length>0&&!(t.length===1&&t[0]==="constructor"),i=_L.test(e+"")&&St.names(e).length>0;if(n||r||i)return!0}return!1}catch(o){return!1}}function DL(obj){function FakeConstructor(){}FakeConstructor.prototype=obj;var l=8;while(l--)new FakeConstructor;return obj}var EL=/^[a-z$_][a-z$_0-9]*$/i;function TL(e){return EL.test(e)}function SL(e,t,n){var r=Array(e);for(var i=0;i<e;++i)r[i]=t+i+n;return r}function ul(e){try{return e+""}catch(t){return"[no string representation]"}}function eD(e){return e!==null&&typeof e==="object"&&typeof e.message==="string"&&typeof e.name==="string"}function CL(e){try{Qw(e,"isOperational",!0)}catch(t){}}function AL(e){if(e==null)return!1;return e instanceof Error.__BluebirdErrorTypes__.OperationalError||e.isOperational===!0}function _g(e){return eD(e)&&St.propertyIsWritable(e,"stack")}var UL=function(){if(!("stack"in Error()))return function(e){if(_g(e))return e;try{throw Error(ul(e))}catch(t){return t}};else return function(e){if(_g(e))return e;return Error(ul(e))}}();function tD(e){return{}.toString.call(e)}function kL(e,t,n){var r=St.names(e);for(var i=0;i<r.length;++i){var o=r[i];if(n(o))try{St.defineProperty(t,o,St.getDescriptor(e,o))}catch(s){}}}var nD=function(e){if(St.isArray(e))return e;return null};if(typeof Symbol<"u"&&Symbol.iterator)wg=typeof Array.from==="function"?function(e){return Array.from(e)}:function(e){var t=[],n=e[Symbol.iterator](),r;while(!(r=n.next()).done)t.push(r.value);return t},nD=function(e){if(St.isArray(e))return e;else if(e!=null&&typeof e[Symbol.iterator]==="function")return wg(e);return null};var wg,RL=typeof process<"u"&&tD(process).toLowerCase()==="[object process]",rD=typeof process<"u"&&typeof process.env<"u";function FL(e){return rD?process.env[e]:void 0}function OL(){if(typeof Promise==="function")try{var e=new Promise(function(){});if({}.toString.call(e)==="[object Promise]")return Promise}catch(t){}}function PL(e,t){return e.bind(t)}var bo={isClass:wL,isIdentifier:TL,inheritedDataKeys:xL,getDataPropertyOrDefault:bL,thrower:vL,isArray:St.isArray,asArray:nD,notEnumerableProp:Qw,isPrimitive:Dg,isObject:gL,isError:eD,canEvaluate:lL,errorObj:vg,tryCatch:hL,inherits:pL,withAppended:yL,maybeWrapAsError:mL,toFastProperties:DL,filledRange:SL,toString:ul,canAttachTrace:_g,ensureErrorObject:UL,originatesFromRejection:AL,markAsOriginatingFromRejection:CL,classString:tD,copyDescriptors:kL,hasDevTools:typeof chrome<"u"&&chrome&&typeof chrome.loadTimes==="function",isNode:RL,hasEnvVariables:rD,env:FL,global:dL,getNativePromise:OL,domainBind:PL};bo.isRecentNode=bo.isNode&&function(){var e=process.versions.node.split(".").map(Number);return e[0]===0&&e[1]>10||e[0]>0}();if(bo.isNode)bo.toFastProperties(process);try{throw Error()}catch(e){bo.lastLineError=e}Eg.exports=bo});var oD=R(function(Gpe,iD){var Sg=we(),Di,IL=function(){throw Error(`No async scheduler available
20
20
 
21
21
  See http://goo.gl/MqrFmX
22
- `)},Tg=Sg.getNativePromise();if(Sg.isNode&&typeof MutationObserver>"u")Cg=global.setImmediate,Ag=process.nextTick,Di=Sg.isRecentNode?function(e){Cg.call(global,e)}:function(e){Ag.call(process,e)};else if(typeof Tg==="function"&&typeof Tg.resolve==="function")Ug=Tg.resolve(),Di=function(e){Ug.then(e)};else if(typeof MutationObserver<"u"&&!(typeof window<"u"&&window.navigator&&(window.navigator.standalone||window.cordova)))Di=function(){var e=document.createElement("div"),t={attributes:!0},n=!1,r=document.createElement("div"),i=new MutationObserver(function(){e.classList.toggle("foo"),n=!1});i.observe(r,t);var o=function(){if(n)return;n=!0,r.classList.toggle("foo")};return function(a){var c=new MutationObserver(function(){c.disconnect(),a()});c.observe(e,t),o()}}();else if(typeof setImmediate<"u")Di=function(e){setImmediate(e)};else if(typeof setTimeout<"u")Di=function(e){setTimeout(e,0)};else Di=IL;var Cg,Ag,Ug;iD.exports=Di});var aD=R(function(Hpe,sD){function ML(e,t,n,r,i){for(var o=0;o<i;++o)n[o+r]=e[o+t],e[o+t]=void 0}function Nr(e){this._capacity=e,this._length=0,this._front=0}Nr.prototype._willBeOverCapacity=function(e){return this._capacity<e};Nr.prototype._pushOne=function(e){var t=this.length();this._checkCapacity(t+1);var n=this._front+t&this._capacity-1;this[n]=e,this._length=t+1};Nr.prototype.push=function(e,t,n){var r=this.length()+3;if(this._willBeOverCapacity(r)){this._pushOne(e),this._pushOne(t),this._pushOne(n);return}var i=this._front+r-3;this._checkCapacity(r);var o=this._capacity-1;this[i+0&o]=e,this[i+1&o]=t,this[i+2&o]=n,this._length=r};Nr.prototype.shift=function(){var e=this._front,t=this[e];return this[e]=void 0,this._front=e+1&this._capacity-1,this._length--,t};Nr.prototype.length=function(){return this._length};Nr.prototype._checkCapacity=function(e){if(this._capacity<e)this._resizeTo(this._capacity<<1)};Nr.prototype._resizeTo=function(e){var t=this._capacity;this._capacity=e;var n=this._front,r=this._length,i=n+r&t-1;ML(this,0,this,t,i)};sD.exports=Nr});var pD=R(function(Gpe,kg){var fD;try{throw Error()}catch(e){fD=e}var NL=oD(),cD=aD(),hD=we();function Ke(){this._customScheduler=!1,this._isTickUsed=!1,this._lateQueue=new cD(16),this._normalQueue=new cD(16),this._haveDrainedQueues=!1,this._trampolineEnabled=!0;var e=this;this.drainQueues=function(){e._drainQueues()},this._schedule=NL}Ke.prototype.setScheduler=function(e){var t=this._schedule;return this._schedule=e,this._customScheduler=!0,t};Ke.prototype.hasCustomScheduler=function(){return this._customScheduler};Ke.prototype.enableTrampoline=function(){this._trampolineEnabled=!0};Ke.prototype.disableTrampolineIfNecessary=function(){if(hD.hasDevTools)this._trampolineEnabled=!1};Ke.prototype.haveItemsQueued=function(){return this._isTickUsed||this._haveDrainedQueues};Ke.prototype.fatalError=function(e,t){if(t)process.stderr.write("Fatal "+(e instanceof Error?e.stack:e)+`
22
+ `)},Tg=Sg.getNativePromise();if(Sg.isNode&&typeof MutationObserver>"u")Cg=global.setImmediate,Ag=process.nextTick,Di=Sg.isRecentNode?function(e){Cg.call(global,e)}:function(e){Ag.call(process,e)};else if(typeof Tg==="function"&&typeof Tg.resolve==="function")Ug=Tg.resolve(),Di=function(e){Ug.then(e)};else if(typeof MutationObserver<"u"&&!(typeof window<"u"&&window.navigator&&(window.navigator.standalone||window.cordova)))Di=function(){var e=document.createElement("div"),t={attributes:!0},n=!1,r=document.createElement("div"),i=new MutationObserver(function(){e.classList.toggle("foo"),n=!1});i.observe(r,t);var o=function(){if(n)return;n=!0,r.classList.toggle("foo")};return function(a){var c=new MutationObserver(function(){c.disconnect(),a()});c.observe(e,t),o()}}();else if(typeof setImmediate<"u")Di=function(e){setImmediate(e)};else if(typeof setTimeout<"u")Di=function(e){setTimeout(e,0)};else Di=IL;var Cg,Ag,Ug;iD.exports=Di});var aD=R(function(zpe,sD){function ML(e,t,n,r,i){for(var o=0;o<i;++o)n[o+r]=e[o+t],e[o+t]=void 0}function Nr(e){this._capacity=e,this._length=0,this._front=0}Nr.prototype._willBeOverCapacity=function(e){return this._capacity<e};Nr.prototype._pushOne=function(e){var t=this.length();this._checkCapacity(t+1);var n=this._front+t&this._capacity-1;this[n]=e,this._length=t+1};Nr.prototype.push=function(e,t,n){var r=this.length()+3;if(this._willBeOverCapacity(r)){this._pushOne(e),this._pushOne(t),this._pushOne(n);return}var i=this._front+r-3;this._checkCapacity(r);var o=this._capacity-1;this[i+0&o]=e,this[i+1&o]=t,this[i+2&o]=n,this._length=r};Nr.prototype.shift=function(){var e=this._front,t=this[e];return this[e]=void 0,this._front=e+1&this._capacity-1,this._length--,t};Nr.prototype.length=function(){return this._length};Nr.prototype._checkCapacity=function(e){if(this._capacity<e)this._resizeTo(this._capacity<<1)};Nr.prototype._resizeTo=function(e){var t=this._capacity;this._capacity=e;var n=this._front,r=this._length,i=n+r&t-1;ML(this,0,this,t,i)};sD.exports=Nr});var pD=R(function(Vpe,kg){var fD;try{throw Error()}catch(e){fD=e}var NL=oD(),cD=aD(),hD=we();function Ke(){this._customScheduler=!1,this._isTickUsed=!1,this._lateQueue=new cD(16),this._normalQueue=new cD(16),this._haveDrainedQueues=!1,this._trampolineEnabled=!0;var e=this;this.drainQueues=function(){e._drainQueues()},this._schedule=NL}Ke.prototype.setScheduler=function(e){var t=this._schedule;return this._schedule=e,this._customScheduler=!0,t};Ke.prototype.hasCustomScheduler=function(){return this._customScheduler};Ke.prototype.enableTrampoline=function(){this._trampolineEnabled=!0};Ke.prototype.disableTrampolineIfNecessary=function(){if(hD.hasDevTools)this._trampolineEnabled=!1};Ke.prototype.haveItemsQueued=function(){return this._isTickUsed||this._haveDrainedQueues};Ke.prototype.fatalError=function(e,t){if(t)process.stderr.write("Fatal "+(e instanceof Error?e.stack:e)+`
23
23
  `),process.exit(2);else this.throwLater(e)};Ke.prototype.throwLater=function(e,t){if(arguments.length===1)t=e,e=function(){throw t};if(typeof setTimeout<"u")setTimeout(function(){e(t)},0);else try{this._schedule(function(){e(t)})}catch(n){throw Error(`No async scheduler available
24
24
 
25
25
  See http://goo.gl/MqrFmX
26
- `)}};function uD(e,t,n){this._lateQueue.push(e,t,n),this._queueTick()}function lD(e,t,n){this._normalQueue.push(e,t,n),this._queueTick()}function dD(e){this._normalQueue._pushOne(e),this._queueTick()}if(!hD.hasDevTools)Ke.prototype.invokeLater=uD,Ke.prototype.invoke=lD,Ke.prototype.settlePromises=dD;else Ke.prototype.invokeLater=function(e,t,n){if(this._trampolineEnabled)uD.call(this,e,t,n);else this._schedule(function(){setTimeout(function(){e.call(t,n)},100)})},Ke.prototype.invoke=function(e,t,n){if(this._trampolineEnabled)lD.call(this,e,t,n);else this._schedule(function(){e.call(t,n)})},Ke.prototype.settlePromises=function(e){if(this._trampolineEnabled)dD.call(this,e);else this._schedule(function(){e._settlePromises()})};Ke.prototype._drainQueue=function(e){while(e.length()>0){var t=e.shift();if(typeof t!=="function"){t._settlePromises();continue}var n=e.shift(),r=e.shift();t.call(n,r)}};Ke.prototype._drainQueues=function(){this._drainQueue(this._normalQueue),this._reset(),this._haveDrainedQueues=!0,this._drainQueue(this._lateQueue)};Ke.prototype._queueTick=function(){if(!this._isTickUsed)this._isTickUsed=!0,this._schedule(this.drainQueues)};Ke.prototype._reset=function(){this._isTickUsed=!1};kg.exports=Ke;kg.exports.firstLineError=fD});var Vn=R(function(zpe,yD){var Og=wi(),BL=Og.freeze,gD=we(),mD=gD.inherits,vo=gD.notEnumerableProp;function xo(e,t){function n(r){if(!(this instanceof n))return new n(r);if(vo(this,"message",typeof r==="string"?r:t),vo(this,"name",e),Error.captureStackTrace)Error.captureStackTrace(this,this.constructor);else Error.call(this)}return mD(n,Error),n}var Rg,Fg,LL=xo("Warning","warning"),WL=xo("CancellationError","cancellation error"),jL=xo("TimeoutError","timeout error"),na=xo("AggregateError","aggregate error");try{Rg=TypeError,Fg=RangeError}catch(e){Rg=xo("TypeError","type error"),Fg=xo("RangeError","range error")}var dl="join pop push shift unshift slice filter forEach some every map indexOf lastIndexOf reduce reduceRight sort reverse".split(" ");for(Ei=0;Ei<dl.length;++Ei)if(typeof Array.prototype[dl[Ei]]==="function")na.prototype[dl[Ei]]=Array.prototype[dl[Ei]];var Ei;Og.defineProperty(na.prototype,"length",{value:0,configurable:!1,writable:!0,enumerable:!0});na.prototype.isOperational=!0;var fl=0;na.prototype.toString=function(){var e=Array(fl*4+1).join(" "),t=`
26
+ `)}};function uD(e,t,n){this._lateQueue.push(e,t,n),this._queueTick()}function lD(e,t,n){this._normalQueue.push(e,t,n),this._queueTick()}function dD(e){this._normalQueue._pushOne(e),this._queueTick()}if(!hD.hasDevTools)Ke.prototype.invokeLater=uD,Ke.prototype.invoke=lD,Ke.prototype.settlePromises=dD;else Ke.prototype.invokeLater=function(e,t,n){if(this._trampolineEnabled)uD.call(this,e,t,n);else this._schedule(function(){setTimeout(function(){e.call(t,n)},100)})},Ke.prototype.invoke=function(e,t,n){if(this._trampolineEnabled)lD.call(this,e,t,n);else this._schedule(function(){e.call(t,n)})},Ke.prototype.settlePromises=function(e){if(this._trampolineEnabled)dD.call(this,e);else this._schedule(function(){e._settlePromises()})};Ke.prototype._drainQueue=function(e){while(e.length()>0){var t=e.shift();if(typeof t!=="function"){t._settlePromises();continue}var n=e.shift(),r=e.shift();t.call(n,r)}};Ke.prototype._drainQueues=function(){this._drainQueue(this._normalQueue),this._reset(),this._haveDrainedQueues=!0,this._drainQueue(this._lateQueue)};Ke.prototype._queueTick=function(){if(!this._isTickUsed)this._isTickUsed=!0,this._schedule(this.drainQueues)};Ke.prototype._reset=function(){this._isTickUsed=!1};kg.exports=Ke;kg.exports.firstLineError=fD});var Vn=R(function(Xpe,yD){var Og=wi(),BL=Og.freeze,gD=we(),mD=gD.inherits,vo=gD.notEnumerableProp;function xo(e,t){function n(r){if(!(this instanceof n))return new n(r);if(vo(this,"message",typeof r==="string"?r:t),vo(this,"name",e),Error.captureStackTrace)Error.captureStackTrace(this,this.constructor);else Error.call(this)}return mD(n,Error),n}var Rg,Fg,LL=xo("Warning","warning"),WL=xo("CancellationError","cancellation error"),jL=xo("TimeoutError","timeout error"),na=xo("AggregateError","aggregate error");try{Rg=TypeError,Fg=RangeError}catch(e){Rg=xo("TypeError","type error"),Fg=xo("RangeError","range error")}var dl="join pop push shift unshift slice filter forEach some every map indexOf lastIndexOf reduce reduceRight sort reverse".split(" ");for(Ei=0;Ei<dl.length;++Ei)if(typeof Array.prototype[dl[Ei]]==="function")na.prototype[dl[Ei]]=Array.prototype[dl[Ei]];var Ei;Og.defineProperty(na.prototype,"length",{value:0,configurable:!1,writable:!0,enumerable:!0});na.prototype.isOperational=!0;var fl=0;na.prototype.toString=function(){var e=Array(fl*4+1).join(" "),t=`
27
27
  `+e+`AggregateError of:
28
28
  `;fl++,e=Array(fl*4+1).join(" ");for(var n=0;n<this.length;++n){var r=this[n]===this?"[Circular AggregateError]":this[n]+"",i=r.split(`
29
29
  `);for(var o=0;o<i.length;++o)i[o]=e+i[o];r=i.join(`
30
30
  `),t+=r+`
31
- `}return fl--,t};function ta(e){if(!(this instanceof ta))return new ta(e);if(vo(this,"name","OperationalError"),vo(this,"message",e),this.cause=e,this.isOperational=!0,e instanceof Error)vo(this,"message",e.message),vo(this,"stack",e.stack);else if(Error.captureStackTrace)Error.captureStackTrace(this,this.constructor)}mD(ta,Error);var Ti=Error.__BluebirdErrorTypes__;if(!Ti)Ti=BL({CancellationError:WL,TimeoutError:jL,OperationalError:ta,RejectionError:ta,AggregateError:na}),Og.defineProperty(Error,"__BluebirdErrorTypes__",{value:Ti,writable:!1,enumerable:!1,configurable:!1});yD.exports={Error,TypeError:Rg,RangeError:Fg,CancellationError:Ti.CancellationError,OperationalError:Ti.OperationalError,TimeoutError:Ti.TimeoutError,AggregateError:Ti.AggregateError,Warning:LL}});var vD=R(function(Vpe,bD){bD.exports=function(e,t){var n=we(),r=n.errorObj,i=n.isObject;function o(f,h){if(i(f)){if(f instanceof e)return f;var p=a(f);if(p===r){if(h)h._pushContext();var g=e.reject(p.e);if(h)h._popContext();return g}else if(typeof p==="function"){if(u(f)){var g=new e(t);return f._then(g._fulfill,g._reject,void 0,g,null),g}return d(f,p,h)}}return f}function s(f){return f.then}function a(f){try{return s(f)}catch(h){return r.e=h,r}}var c={}.hasOwnProperty;function u(f){try{return c.call(f,"_promise0")}catch(h){return!1}}function d(f,h,p){var g=new e(t),y=g;if(p)p._pushContext();if(g._captureStackTrace(),p)p._popContext();var v=!0,b=n.tryCatch(h).call(f,_,m);if(v=!1,g&&b===r)g._rejectCallback(b.e,!0,!0),g=null;function _(x){if(!g)return;g._resolveCallback(x),g=null}function m(x){if(!g)return;g._rejectCallback(x,v,!0),g=null}return y}return o}});var _D=R(function(Xpe,xD){xD.exports=function(e,t,n,r,i){var o=we(),s=o.isArray;function a(u){switch(u){case-2:return[];case-3:return{}}}function c(u){var d=this._promise=new e(t);if(u instanceof e)d._propagateFrom(u,3);d._setOnCancel(this),this._values=u,this._length=0,this._totalResolved=0,this._init(void 0,-2)}return o.inherits(c,i),c.prototype.length=function(){return this._length},c.prototype.promise=function(){return this._promise},c.prototype._init=function u(d,f){var h=n(this._values,this._promise);if(h instanceof e){h=h._target();var p=h._bitField;if(this._values=h,(p&50397184)===0)return this._promise._setAsyncGuaranteed(),h._then(u,this._reject,void 0,this,f);else if((p&33554432)!==0)h=h._value();else if((p&16777216)!==0)return this._reject(h._reason());else return this._cancel()}if(h=o.asArray(h),h===null){var g=r("expecting an array or an iterable object but got "+o.classString(h)).reason();this._promise._rejectCallback(g,!1);return}if(h.length===0){if(f===-5)this._resolveEmptyArray();else this._resolve(a(f));return}this._iterate(h)},c.prototype._iterate=function(u){var d=this.getActualLength(u.length);this._length=d,this._values=this.shouldCopyValues()?Array(d):this._values;var f=this._promise,h=!1,p=null;for(var g=0;g<d;++g){var y=n(u[g],f);if(y instanceof e)y=y._target(),p=y._bitField;else p=null;if(h){if(p!==null)y.suppressUnhandledRejections()}else if(p!==null)if((p&50397184)===0)y._proxy(this,g),this._values[g]=y;else if((p&33554432)!==0)h=this._promiseFulfilled(y._value(),g);else if((p&16777216)!==0)h=this._promiseRejected(y._reason(),g);else h=this._promiseCancelled(g);else h=this._promiseFulfilled(y,g)}if(!h)f._setAsyncGuaranteed()},c.prototype._isResolved=function(){return this._values===null},c.prototype._resolve=function(u){this._values=null,this._promise._fulfill(u)},c.prototype._cancel=function(){if(this._isResolved()||!this._promise._isCancellable())return;this._values=null,this._promise._cancel()},c.prototype._reject=function(u){this._values=null,this._promise._rejectCallback(u,!1)},c.prototype._promiseFulfilled=function(u,d){this._values[d]=u;var f=++this._totalResolved;if(f>=this._length)return this._resolve(this._values),!0;return!1},c.prototype._promiseCancelled=function(){return this._cancel(),!0},c.prototype._promiseRejected=function(u){return this._totalResolved++,this._reject(u),!0},c.prototype._resultCancelled=function(){if(this._isResolved())return;var u=this._values;if(this._cancel(),u instanceof e)u.cancel();else for(var d=0;d<u.length;++d)if(u[d]instanceof e)u[d].cancel()},c.prototype.shouldCopyValues=function(){return!0},c.prototype.getActualLength=function(u){return u},c}});var DD=R(function(Kpe,wD){wD.exports=function(e){var t=!1,n=[];e.prototype._promiseCreated=function(){},e.prototype._pushContext=function(){},e.prototype._popContext=function(){return null},e._peekContext=e.prototype._peekContext=function(){};function r(){this._trace=new r.CapturedTrace(o())}r.prototype._pushContext=function(){if(this._trace!==void 0)this._trace._promiseCreated=null,n.push(this._trace)},r.prototype._popContext=function(){if(this._trace!==void 0){var s=n.pop(),a=s._promiseCreated;return s._promiseCreated=null,a}return null};function i(){if(t)return new r}function o(){var s=n.length-1;if(s>=0)return n[s];return}return r.CapturedTrace=null,r.create=i,r.deactivateLongStackTraces=function(){},r.activateLongStackTraces=function(){var s=e.prototype._pushContext,a=e.prototype._popContext,c=e._peekContext,u=e.prototype._peekContext,d=e.prototype._promiseCreated;r.deactivateLongStackTraces=function(){e.prototype._pushContext=s,e.prototype._popContext=a,e._peekContext=c,e.prototype._peekContext=u,e.prototype._promiseCreated=d,t=!1},t=!0,e.prototype._pushContext=r.prototype._pushContext,e.prototype._popContext=r.prototype._popContext,e._peekContext=e.prototype._peekContext=o,e.prototype._promiseCreated=function(){var f=this._peekContext();if(f&&f._promiseCreated==null)f._promiseCreated=this}},r}});var TD=R(function(Zpe,ED){ED.exports=function(e,t){var{_getDomain:n,_async:r}=e,i=Vn().Warning,o=we(),s=o.canAttachTrace,a,c,u=/[\\\/]bluebird[\\\/]js[\\\/](release|debug|instrumented)/,d=/\((?:timers\.js):\d+:\d+\)/,f=/[\/<\(](.+?):(\d+):(\d+)\)?\s*$/,h=null,p=null,g=!1,y,v=!!(o.env("BLUEBIRD_DEBUG")!=0&&(o.env("BLUEBIRD_DEBUG")||o.env("NODE_ENV")==="development")),b=!!(o.env("BLUEBIRD_WARNINGS")!=0&&(v||o.env("BLUEBIRD_WARNINGS"))),_=!!(o.env("BLUEBIRD_LONG_STACK_TRACES")!=0&&(v||o.env("BLUEBIRD_LONG_STACK_TRACES"))),m=o.env("BLUEBIRD_W_FORGOTTEN_RETURN")!=0&&(b||!!o.env("BLUEBIRD_W_FORGOTTEN_RETURN"));e.prototype.suppressUnhandledRejections=function(){var I=this._target();I._bitField=I._bitField&-1048577|524288},e.prototype._ensurePossibleRejectionHandled=function(){if((this._bitField&524288)!==0)return;this._setRejectionIsUnhandled(),r.invokeLater(this._notifyUnhandledRejection,this,void 0)},e.prototype._notifyUnhandledRejectionIsHandled=function(){M("rejectionHandled",a,void 0,this)},e.prototype._setReturnedNonUndefined=function(){this._bitField=this._bitField|268435456},e.prototype._returnedNonUndefined=function(){return(this._bitField&268435456)!==0},e.prototype._notifyUnhandledRejection=function(){if(this._isRejectionUnhandled()){var I=this._settledValue();this._setUnhandledRejectionIsNotified(),M("unhandledRejection",c,I,this)}},e.prototype._setUnhandledRejectionIsNotified=function(){this._bitField=this._bitField|262144},e.prototype._unsetUnhandledRejectionIsNotified=function(){this._bitField=this._bitField&-262145},e.prototype._isUnhandledRejectionNotified=function(){return(this._bitField&262144)>0},e.prototype._setRejectionIsUnhandled=function(){this._bitField=this._bitField|1048576},e.prototype._unsetRejectionIsUnhandled=function(){if(this._bitField=this._bitField&-1048577,this._isUnhandledRejectionNotified())this._unsetUnhandledRejectionIsNotified(),this._notifyUnhandledRejectionIsHandled()},e.prototype._isRejectionUnhandled=function(){return(this._bitField&1048576)>0},e.prototype._warn=function(I,L,V){return de(I,L,V||this)},e.onPossiblyUnhandledRejection=function(I){var L=n();c=typeof I==="function"?L===null?I:o.domainBind(L,I):void 0},e.onUnhandledRejectionHandled=function(I){var L=n();a=typeof I==="function"?L===null?I:o.domainBind(L,I):void 0};var x=function(){};e.longStackTraces=function(){if(r.haveItemsQueued()&&!Be.longStackTraces)throw Error(`cannot enable long stack traces after promises have been created
31
+ `}return fl--,t};function ta(e){if(!(this instanceof ta))return new ta(e);if(vo(this,"name","OperationalError"),vo(this,"message",e),this.cause=e,this.isOperational=!0,e instanceof Error)vo(this,"message",e.message),vo(this,"stack",e.stack);else if(Error.captureStackTrace)Error.captureStackTrace(this,this.constructor)}mD(ta,Error);var Ti=Error.__BluebirdErrorTypes__;if(!Ti)Ti=BL({CancellationError:WL,TimeoutError:jL,OperationalError:ta,RejectionError:ta,AggregateError:na}),Og.defineProperty(Error,"__BluebirdErrorTypes__",{value:Ti,writable:!1,enumerable:!1,configurable:!1});yD.exports={Error,TypeError:Rg,RangeError:Fg,CancellationError:Ti.CancellationError,OperationalError:Ti.OperationalError,TimeoutError:Ti.TimeoutError,AggregateError:Ti.AggregateError,Warning:LL}});var vD=R(function(Kpe,bD){bD.exports=function(e,t){var n=we(),r=n.errorObj,i=n.isObject;function o(f,h){if(i(f)){if(f instanceof e)return f;var p=a(f);if(p===r){if(h)h._pushContext();var g=e.reject(p.e);if(h)h._popContext();return g}else if(typeof p==="function"){if(u(f)){var g=new e(t);return f._then(g._fulfill,g._reject,void 0,g,null),g}return d(f,p,h)}}return f}function s(f){return f.then}function a(f){try{return s(f)}catch(h){return r.e=h,r}}var c={}.hasOwnProperty;function u(f){try{return c.call(f,"_promise0")}catch(h){return!1}}function d(f,h,p){var g=new e(t),y=g;if(p)p._pushContext();if(g._captureStackTrace(),p)p._popContext();var v=!0,b=n.tryCatch(h).call(f,_,m);if(v=!1,g&&b===r)g._rejectCallback(b.e,!0,!0),g=null;function _(x){if(!g)return;g._resolveCallback(x),g=null}function m(x){if(!g)return;g._rejectCallback(x,v,!0),g=null}return y}return o}});var _D=R(function(Zpe,xD){xD.exports=function(e,t,n,r,i){var o=we(),s=o.isArray;function a(u){switch(u){case-2:return[];case-3:return{}}}function c(u){var d=this._promise=new e(t);if(u instanceof e)d._propagateFrom(u,3);d._setOnCancel(this),this._values=u,this._length=0,this._totalResolved=0,this._init(void 0,-2)}return o.inherits(c,i),c.prototype.length=function(){return this._length},c.prototype.promise=function(){return this._promise},c.prototype._init=function u(d,f){var h=n(this._values,this._promise);if(h instanceof e){h=h._target();var p=h._bitField;if(this._values=h,(p&50397184)===0)return this._promise._setAsyncGuaranteed(),h._then(u,this._reject,void 0,this,f);else if((p&33554432)!==0)h=h._value();else if((p&16777216)!==0)return this._reject(h._reason());else return this._cancel()}if(h=o.asArray(h),h===null){var g=r("expecting an array or an iterable object but got "+o.classString(h)).reason();this._promise._rejectCallback(g,!1);return}if(h.length===0){if(f===-5)this._resolveEmptyArray();else this._resolve(a(f));return}this._iterate(h)},c.prototype._iterate=function(u){var d=this.getActualLength(u.length);this._length=d,this._values=this.shouldCopyValues()?Array(d):this._values;var f=this._promise,h=!1,p=null;for(var g=0;g<d;++g){var y=n(u[g],f);if(y instanceof e)y=y._target(),p=y._bitField;else p=null;if(h){if(p!==null)y.suppressUnhandledRejections()}else if(p!==null)if((p&50397184)===0)y._proxy(this,g),this._values[g]=y;else if((p&33554432)!==0)h=this._promiseFulfilled(y._value(),g);else if((p&16777216)!==0)h=this._promiseRejected(y._reason(),g);else h=this._promiseCancelled(g);else h=this._promiseFulfilled(y,g)}if(!h)f._setAsyncGuaranteed()},c.prototype._isResolved=function(){return this._values===null},c.prototype._resolve=function(u){this._values=null,this._promise._fulfill(u)},c.prototype._cancel=function(){if(this._isResolved()||!this._promise._isCancellable())return;this._values=null,this._promise._cancel()},c.prototype._reject=function(u){this._values=null,this._promise._rejectCallback(u,!1)},c.prototype._promiseFulfilled=function(u,d){this._values[d]=u;var f=++this._totalResolved;if(f>=this._length)return this._resolve(this._values),!0;return!1},c.prototype._promiseCancelled=function(){return this._cancel(),!0},c.prototype._promiseRejected=function(u){return this._totalResolved++,this._reject(u),!0},c.prototype._resultCancelled=function(){if(this._isResolved())return;var u=this._values;if(this._cancel(),u instanceof e)u.cancel();else for(var d=0;d<u.length;++d)if(u[d]instanceof e)u[d].cancel()},c.prototype.shouldCopyValues=function(){return!0},c.prototype.getActualLength=function(u){return u},c}});var DD=R(function(Ype,wD){wD.exports=function(e){var t=!1,n=[];e.prototype._promiseCreated=function(){},e.prototype._pushContext=function(){},e.prototype._popContext=function(){return null},e._peekContext=e.prototype._peekContext=function(){};function r(){this._trace=new r.CapturedTrace(o())}r.prototype._pushContext=function(){if(this._trace!==void 0)this._trace._promiseCreated=null,n.push(this._trace)},r.prototype._popContext=function(){if(this._trace!==void 0){var s=n.pop(),a=s._promiseCreated;return s._promiseCreated=null,a}return null};function i(){if(t)return new r}function o(){var s=n.length-1;if(s>=0)return n[s];return}return r.CapturedTrace=null,r.create=i,r.deactivateLongStackTraces=function(){},r.activateLongStackTraces=function(){var s=e.prototype._pushContext,a=e.prototype._popContext,c=e._peekContext,u=e.prototype._peekContext,d=e.prototype._promiseCreated;r.deactivateLongStackTraces=function(){e.prototype._pushContext=s,e.prototype._popContext=a,e._peekContext=c,e.prototype._peekContext=u,e.prototype._promiseCreated=d,t=!1},t=!0,e.prototype._pushContext=r.prototype._pushContext,e.prototype._popContext=r.prototype._popContext,e._peekContext=e.prototype._peekContext=o,e.prototype._promiseCreated=function(){var f=this._peekContext();if(f&&f._promiseCreated==null)f._promiseCreated=this}},r}});var TD=R(function(Jpe,ED){ED.exports=function(e,t){var{_getDomain:n,_async:r}=e,i=Vn().Warning,o=we(),s=o.canAttachTrace,a,c,u=/[\\\/]bluebird[\\\/]js[\\\/](release|debug|instrumented)/,d=/\((?:timers\.js):\d+:\d+\)/,f=/[\/<\(](.+?):(\d+):(\d+)\)?\s*$/,h=null,p=null,g=!1,y,v=!!(o.env("BLUEBIRD_DEBUG")!=0&&(o.env("BLUEBIRD_DEBUG")||o.env("NODE_ENV")==="development")),b=!!(o.env("BLUEBIRD_WARNINGS")!=0&&(v||o.env("BLUEBIRD_WARNINGS"))),_=!!(o.env("BLUEBIRD_LONG_STACK_TRACES")!=0&&(v||o.env("BLUEBIRD_LONG_STACK_TRACES"))),m=o.env("BLUEBIRD_W_FORGOTTEN_RETURN")!=0&&(b||!!o.env("BLUEBIRD_W_FORGOTTEN_RETURN"));e.prototype.suppressUnhandledRejections=function(){var I=this._target();I._bitField=I._bitField&-1048577|524288},e.prototype._ensurePossibleRejectionHandled=function(){if((this._bitField&524288)!==0)return;this._setRejectionIsUnhandled(),r.invokeLater(this._notifyUnhandledRejection,this,void 0)},e.prototype._notifyUnhandledRejectionIsHandled=function(){M("rejectionHandled",a,void 0,this)},e.prototype._setReturnedNonUndefined=function(){this._bitField=this._bitField|268435456},e.prototype._returnedNonUndefined=function(){return(this._bitField&268435456)!==0},e.prototype._notifyUnhandledRejection=function(){if(this._isRejectionUnhandled()){var I=this._settledValue();this._setUnhandledRejectionIsNotified(),M("unhandledRejection",c,I,this)}},e.prototype._setUnhandledRejectionIsNotified=function(){this._bitField=this._bitField|262144},e.prototype._unsetUnhandledRejectionIsNotified=function(){this._bitField=this._bitField&-262145},e.prototype._isUnhandledRejectionNotified=function(){return(this._bitField&262144)>0},e.prototype._setRejectionIsUnhandled=function(){this._bitField=this._bitField|1048576},e.prototype._unsetRejectionIsUnhandled=function(){if(this._bitField=this._bitField&-1048577,this._isUnhandledRejectionNotified())this._unsetUnhandledRejectionIsNotified(),this._notifyUnhandledRejectionIsHandled()},e.prototype._isRejectionUnhandled=function(){return(this._bitField&1048576)>0},e.prototype._warn=function(I,L,V){return de(I,L,V||this)},e.onPossiblyUnhandledRejection=function(I){var L=n();c=typeof I==="function"?L===null?I:o.domainBind(L,I):void 0},e.onUnhandledRejectionHandled=function(I){var L=n();a=typeof I==="function"?L===null?I:o.domainBind(L,I):void 0};var x=function(){};e.longStackTraces=function(){if(r.haveItemsQueued()&&!Be.longStackTraces)throw Error(`cannot enable long stack traces after promises have been created
32
32
 
33
33
  See http://goo.gl/MqrFmX
34
34
  `);if(!Be.longStackTraces&&te()){var I=e.prototype._captureStackTrace,L=e.prototype._attachExtraTrace;Be.longStackTraces=!0,x=function(){if(r.haveItemsQueued()&&!Be.longStackTraces)throw Error(`cannot enable long stack traces after promises have been created
@@ -44,19 +44,19 @@ __p+='`;return u}),o+=`';
44
44
  `);if(V<L.length)L[V]=L[V].join(`
45
45
  `);return I+`
46
46
  `+L.join(`
47
- `)}function xe(I){for(var L=0;L<I.length;++L)if(I[L].length===0||L+1<I.length&&I[L][0]===I[L+1][0])I.splice(L,1),L--}function ot(I){var L=I[0];for(var V=1;V<I.length;++V){var X=I[V],ne=L.length-1,Ie=L[ne],De=-1;for(var oe=X.length-1;oe>=0;--oe)if(X[oe]===Ie){De=oe;break}for(var oe=De;oe>=0;--oe){var Ue=X[oe];if(L[ne]===Ue)L.pop(),ne--;else break}L=X}}function pn(I){var L=[];for(var V=0;V<I.length;++V){var X=I[V],ne=X===" (No stack trace)"||h.test(X),Ie=ne&&se(X);if(ne&&!Ie){if(g&&X.charAt(0)!==" ")X=" "+X;L.push(X)}}return L}function hr(I){var L=I.stack.replace(/\s+$/g,"").split(`
47
+ `)}function ve(I){for(var L=0;L<I.length;++L)if(I[L].length===0||L+1<I.length&&I[L][0]===I[L+1][0])I.splice(L,1),L--}function ot(I){var L=I[0];for(var V=1;V<I.length;++V){var X=I[V],ne=L.length-1,Ie=L[ne],De=-1;for(var oe=X.length-1;oe>=0;--oe)if(X[oe]===Ie){De=oe;break}for(var oe=De;oe>=0;--oe){var Ue=X[oe];if(L[ne]===Ue)L.pop(),ne--;else break}L=X}}function pn(I){var L=[];for(var V=0;V<I.length;++V){var X=I[V],ne=X===" (No stack trace)"||h.test(X),Ie=ne&&se(X);if(ne&&!Ie){if(g&&X.charAt(0)!==" ")X=" "+X;L.push(X)}}return L}function hr(I){var L=I.stack.replace(/\s+$/g,"").split(`
48
48
  `);for(var V=0;V<L.length;++V){var X=L[V];if(X===" (No stack trace)"||h.test(X))break}if(V>0&&I.name!="SyntaxError")L=L.slice(V);return L}function Zi(I){var L=I.stack,V=I.toString();return L=typeof L==="string"&&L.length>0?hr(I):[" (No stack trace)"],{message:V,stack:I.name=="SyntaxError"?L:pn(L)}}function Nc(I,L,V){if(typeof console<"u"){var X;if(o.isObject(I)){var ne=I.stack;X=L+p(ne,I)}else X=L+String(I);if(typeof y==="function")y(X,V);else if(typeof console.log==="function"||typeof console.log==="object")console.log(X)}}function M(I,L,V,X){var ne=!1;try{if(typeof L==="function")if(ne=!0,I==="rejectionHandled")L(X);else L(V,X)}catch(Ie){r.throwLater(Ie)}if(I==="unhandledRejection"){if(!C(I,V,X)&&!ne)Nc(V,"Unhandled rejection ")}else C(I,X)}function z(I){var L;if(typeof I==="function")L="[function "+(I.name||"anonymous")+"]";else{L=I&&typeof I.toString==="function"?I.toString():o.toString(I);var V=/\[object [a-zA-Z0-9$_]+\]/;if(V.test(L))try{var X=JSON.stringify(I);L=X}catch(ne){}if(L.length===0)L="(empty array)"}return"(<"+Z(L)+">, no stack trace)"}function Z(I){var L=41;if(I.length<L)return I;return I.substr(0,L-3)+"..."}function te(){return typeof ai==="function"}var se=function(){return!1},he=/[\/<\(]([^:\/]+):(\d+):(?:\d+)\)?\s*$/;function Se(I){var L=I.match(he);if(L)return{fileName:L[1],line:parseInt(L[2],10)}}function mt(I,L){if(!te())return;var V=I.stack.split(`
49
49
  `),X=L.stack.split(`
50
50
  `),ne=-1,Ie=-1,De,oe;for(var Ue=0;Ue<V.length;++Ue){var Le=Se(V[Ue]);if(Le){De=Le.fileName,ne=Le.line;break}}for(var Ue=0;Ue<X.length;++Ue){var Le=Se(X[Ue]);if(Le){oe=Le.fileName,Ie=Le.line;break}}if(ne<0||Ie<0||!De||!oe||De!==oe||ne>=Ie)return;se=function(Ln){if(u.test(Ln))return!0;var Wn=Se(Ln);if(Wn){if(Wn.fileName===De&&(ne<=Wn.line&&Wn.line<=Ie))return!0}return!1}}function Qe(I){this._parent=I,this._promisesCreated=0;var L=this._length=1+(I===void 0?0:I._length);if(ai(this,Qe),L>32)this.uncycle()}o.inherits(Qe,Error),t.CapturedTrace=Qe,Qe.prototype.uncycle=function(){var I=this._length;if(I<2)return;var L=[],V={};for(var X=0,ne=this;ne!==void 0;++X)L.push(ne),ne=ne._parent;I=this._length=X;for(var X=I-1;X>=0;--X){var Ie=L[X].stack;if(V[Ie]===void 0)V[Ie]=X}for(var X=0;X<I;++X){var De=L[X].stack,oe=V[De];if(oe!==void 0&&oe!==X){if(oe>0)L[oe-1]._parent=void 0,L[oe-1]._length=1;L[X]._parent=void 0,L[X]._length=1;var Ue=X>0?L[X-1]:this;if(oe<I-1)Ue._parent=L[oe+1],Ue._parent.uncycle(),Ue._length=Ue._parent._length+1;else Ue._parent=void 0,Ue._length=1;var Le=Ue._length+1;for(var Ln=X-2;Ln>=0;--Ln)L[Ln]._length=Le,Le++;return}}},Qe.prototype.attachExtraTrace=function(I){if(I.__stackCleaned__)return;this.uncycle();var L=Zi(I),V=L.message,X=[L.stack],ne=this;while(ne!==void 0)X.push(pn(ne.stack.split(`
51
- `))),ne=ne._parent;ot(X),xe(X),o.notEnumerableProp(I,"stack",Ae(V,X)),o.notEnumerableProp(I,"__stackCleaned__",!0)};var ai=function(){var L=/^\s*at\s*/,V=function(De,oe){if(typeof De==="string")return De;if(oe.name!==void 0&&oe.message!==void 0)return oe.toString();return z(oe)};if(typeof Error.stackTraceLimit==="number"&&typeof Error.captureStackTrace==="function"){Error.stackTraceLimit+=6,h=L,p=V;var X=Error.captureStackTrace;return se=function(De){return u.test(De)},function(De,oe){Error.stackTraceLimit+=6,X(De,oe),Error.stackTraceLimit-=6}}var ne=Error();if(typeof ne.stack==="string"&&ne.stack.split(`
51
+ `))),ne=ne._parent;ot(X),ve(X),o.notEnumerableProp(I,"stack",Ae(V,X)),o.notEnumerableProp(I,"__stackCleaned__",!0)};var ai=function(){var L=/^\s*at\s*/,V=function(De,oe){if(typeof De==="string")return De;if(oe.name!==void 0&&oe.message!==void 0)return oe.toString();return z(oe)};if(typeof Error.stackTraceLimit==="number"&&typeof Error.captureStackTrace==="function"){Error.stackTraceLimit+=6,h=L,p=V;var X=Error.captureStackTrace;return se=function(De){return u.test(De)},function(De,oe){Error.stackTraceLimit+=6,X(De,oe),Error.stackTraceLimit-=6}}var ne=Error();if(typeof ne.stack==="string"&&ne.stack.split(`
52
52
  `)[0].indexOf("stackDetection@")>=0)return h=/@/,p=V,g=!0,function(oe){oe.stack=Error().stack};var Ie;try{throw Error()}catch(De){Ie="stack"in De}if(!("stack"in ne)&&Ie&&typeof Error.stackTraceLimit==="number")return h=L,p=V,function(oe){Error.stackTraceLimit+=6;try{throw Error()}catch(Ue){oe.stack=Ue.stack}Error.stackTraceLimit-=6};return p=function(De,oe){if(typeof De==="string")return De;if((typeof oe==="object"||typeof oe==="function")&&oe.name!==void 0&&oe.message!==void 0)return oe.toString();return z(oe)},null}([]);if(typeof console<"u"&&typeof console.warn<"u"){if(y=function(I){console.warn(I)},o.isNode&&process.stderr.isTTY)y=function(I,L){var V=L?"\x1B[33m":"\x1B[31m";console.warn(V+I+`\x1B[0m
53
- `)};else if(!o.isNode&&typeof Error().stack==="string")y=function(I,L){console.warn("%c"+I,L?"color: darkorange":"color: red")}}var Be={warnings:b,longStackTraces:!1,cancellation:!1,monitoring:!1};if(_)e.longStackTraces();return{longStackTraces:function(){return Be.longStackTraces},warnings:function(){return Be.warnings},cancellation:function(){return Be.cancellation},monitoring:function(){return Be.monitoring},propagateFromFunction:function(){return k},boundValueFunction:function(){return P},checkForgottenReturns:K,setBounds:mt,warn:de,deprecated:J,CapturedTrace:Qe,fireDomEvent:D,fireGlobalEvent:A}}});var CD=R(function(Ype,SD){SD.exports=function(e,t){var n=we(),r=e.CancellationError,i=n.errorObj;function o(f,h,p){this.promise=f,this.type=h,this.handler=p,this.called=!1,this.cancelPromise=null}o.prototype.isFinallyHandler=function(){return this.type===0};function s(f){this.finallyHandler=f}s.prototype._resultCancelled=function(){a(this.finallyHandler)};function a(f,h){if(f.cancelPromise!=null){if(arguments.length>1)f.cancelPromise._reject(h);else f.cancelPromise._cancel();return f.cancelPromise=null,!0}return!1}function c(){return d.call(this,this.promise._target()._settledValue())}function u(f){if(a(this,f))return;return i.e=f,i}function d(f){var h=this.promise,p=this.handler;if(!this.called){this.called=!0;var g=this.isFinallyHandler()?p.call(h._boundValue()):p.call(h._boundValue(),f);if(g!==void 0){h._setReturnedNonUndefined();var y=t(g,h);if(y instanceof e){if(this.cancelPromise!=null){if(y._isCancelled()){var v=new r("late cancellation observer");return h._attachExtraTrace(v),i.e=v,i}else if(y.isPending())y._attachCancellationCallback(new s(this))}return y._then(c,u,void 0,this,void 0)}}}if(h.isRejected())return a(this),i.e=f,i;else return a(this),f}return e.prototype._passThrough=function(f,h,p,g){if(typeof f!=="function")return this.then();return this._then(p,g,void 0,new o(this,h,f),void 0)},e.prototype.lastly=e.prototype.finally=function(f){return this._passThrough(f,0,d,d)},e.prototype.tap=function(f){return this._passThrough(f,1,d)},o}});var UD=R(function(Jpe,AD){AD.exports=function(e){var t=we(),n=wi().keys,r=t.tryCatch,i=t.errorObj;function o(s,a,c){return function(u){var d=c._boundValue();e:for(var f=0;f<s.length;++f){var h=s[f];if(h===Error||h!=null&&h.prototype instanceof Error){if(u instanceof h)return r(a).call(d,u)}else if(typeof h==="function"){var p=r(h).call(d,u);if(p===i)return p;else if(p)return r(a).call(d,u)}else if(t.isObject(u)){var g=n(h);for(var y=0;y<g.length;++y){var v=g[y];if(h[v]!=u[v])continue e}return r(a).call(d,u)}}return e}}return o}});var Pg=R(function(Qpe,FD){var kD=we(),qL=kD.maybeWrapAsError,$L=Vn(),HL=$L.OperationalError,RD=wi();function GL(e){return e instanceof Error&&RD.getPrototypeOf(e)===Error.prototype}var zL=/^(?:name|message|stack|cause)$/;function VL(e){var t;if(GL(e)){t=new HL(e),t.name=e.name,t.message=e.message,t.stack=e.stack;var n=RD.keys(e);for(var r=0;r<n.length;++r){var i=n[r];if(!zL.test(i))t[i]=e[i]}return t}return kD.markAsOriginatingFromRejection(e),e}function XL(e,t){return function(n,r){if(e===null)return;if(n){var i=VL(qL(n));e._attachExtraTrace(i),e._reject(i)}else if(!t)e._fulfill(r);else{var o=arguments.length,s=Array(Math.max(o-1,0));for(var a=1;a<o;++a)s[a-1]=arguments[a];e._fulfill(s)}e=null}}FD.exports=XL});var PD=R(function(ege,OD){OD.exports=function(e,t,n,r,i){var o=we(),s=o.tryCatch;e.method=function(a){if(typeof a!=="function")throw new e.TypeError("expecting a function but got "+o.classString(a));return function(){var c=new e(t);c._captureStackTrace(),c._pushContext();var u=s(a).apply(this,arguments),d=c._popContext();return i.checkForgottenReturns(u,d,"Promise.method",c),c._resolveFromSyncValue(u),c}},e.attempt=e.try=function(a){if(typeof a!=="function")return r("expecting a function but got "+o.classString(a));var c=new e(t);c._captureStackTrace(),c._pushContext();var u;if(arguments.length>1){i.deprecated("calling Promise.try with more than 1 argument");var d=arguments[1],f=arguments[2];u=o.isArray(d)?s(a).apply(f,d):s(a).call(f,d)}else u=s(a)();var h=c._popContext();return i.checkForgottenReturns(u,h,"Promise.try",c),c._resolveFromSyncValue(u),c},e.prototype._resolveFromSyncValue=function(a){if(a===o.errorObj)this._rejectCallback(a.e,!1);else this._resolveCallback(a,!0)}}});var MD=R(function(tge,ID){ID.exports=function(e,t,n,r){var i=!1,o=function(u,d){this._reject(d)},s=function(u,d){d.promiseRejectionQueued=!0,d.bindingPromise._then(o,o,null,this,u)},a=function(u,d){if((this._bitField&50397184)===0)this._resolveCallback(d.target)},c=function(u,d){if(!d.promiseRejectionQueued)this._reject(u)};e.prototype.bind=function(u){if(!i)i=!0,e.prototype._propagateFrom=r.propagateFromFunction(),e.prototype._boundValue=r.boundValueFunction();var d=n(u),f=new e(t);f._propagateFrom(this,1);var h=this._target();if(f._setBoundTo(d),d instanceof e){var p={promiseRejectionQueued:!1,promise:f,target:h,bindingPromise:d};h._then(t,s,void 0,f,p),d._then(a,c,void 0,f,p),f._setOnCancel(d)}else f._resolveCallback(h);return f},e.prototype._setBoundTo=function(u){if(u!==void 0)this._bitField=this._bitField|2097152,this._boundTo=u;else this._bitField=this._bitField&-2097153},e.prototype._isBound=function(){return(this._bitField&2097152)===2097152},e.bind=function(u,d){return e.resolve(d).bind(u)}}});var BD=R(function(nge,ND){ND.exports=function(e,t,n,r){var i=we(),o=i.tryCatch,s=i.errorObj,a=e._async;e.prototype.break=e.prototype.cancel=function(){if(!r.cancellation())return this._warn("cancellation is disabled");var c=this,u=c;while(c._isCancellable()){if(!c._cancelBy(u)){if(u._isFollowing())u._followee().cancel();else u._cancelBranched();break}var d=c._cancellationParent;if(d==null||!d._isCancellable()){if(c._isFollowing())c._followee().cancel();else c._cancelBranched();break}else{if(c._isFollowing())c._followee().cancel();c._setWillBeCancelled(),u=c,c=d}}},e.prototype._branchHasCancelled=function(){this._branchesRemainingToCancel--},e.prototype._enoughBranchesHaveCancelled=function(){return this._branchesRemainingToCancel===void 0||this._branchesRemainingToCancel<=0},e.prototype._cancelBy=function(c){if(c===this)return this._branchesRemainingToCancel=0,this._invokeOnCancel(),!0;else if(this._branchHasCancelled(),this._enoughBranchesHaveCancelled())return this._invokeOnCancel(),!0;return!1},e.prototype._cancelBranched=function(){if(this._enoughBranchesHaveCancelled())this._cancel()},e.prototype._cancel=function(){if(!this._isCancellable())return;this._setCancelled(),a.invoke(this._cancelPromises,this,void 0)},e.prototype._cancelPromises=function(){if(this._length()>0)this._settlePromises()},e.prototype._unsetOnCancel=function(){this._onCancelField=void 0},e.prototype._isCancellable=function(){return this.isPending()&&!this._isCancelled()},e.prototype.isCancellable=function(){return this.isPending()&&!this.isCancelled()},e.prototype._doInvokeOnCancel=function(c,u){if(i.isArray(c))for(var d=0;d<c.length;++d)this._doInvokeOnCancel(c[d],u);else if(c!==void 0)if(typeof c==="function"){if(!u){var f=o(c).call(this._boundValue());if(f===s)this._attachExtraTrace(f.e),a.throwLater(f.e)}}else c._resultCancelled(this)},e.prototype._invokeOnCancel=function(){var c=this._onCancel();this._unsetOnCancel(),a.invoke(this._doInvokeOnCancel,this,c)},e.prototype._invokeInternalOnCancel=function(){if(this._isCancellable())this._doInvokeOnCancel(this._onCancel(),!0),this._unsetOnCancel()},e.prototype._resultCancelled=function(){this.cancel()}}});var WD=R(function(rge,LD){LD.exports=function(e){function t(){return this.value}function n(){throw this.reason}e.prototype.return=e.prototype.thenReturn=function(r){if(r instanceof e)r.suppressUnhandledRejections();return this._then(t,void 0,void 0,{value:r},void 0)},e.prototype.throw=e.prototype.thenThrow=function(r){return this._then(n,void 0,void 0,{reason:r},void 0)},e.prototype.catchThrow=function(r){if(arguments.length<=1)return this._then(void 0,n,void 0,{reason:r},void 0);else{var i=arguments[1],o=function(){throw i};return this.caught(r,o)}},e.prototype.catchReturn=function(r){if(arguments.length<=1){if(r instanceof e)r.suppressUnhandledRejections();return this._then(void 0,t,void 0,{value:r},void 0)}else{var i=arguments[1];if(i instanceof e)i.suppressUnhandledRejections();var o=function(){return i};return this.caught(r,o)}}}});var qD=R(function(ige,jD){jD.exports=function(e){function t(c){if(c!==void 0)c=c._target(),this._bitField=c._bitField,this._settledValueField=c._isFateSealed()?c._settledValue():void 0;else this._bitField=0,this._settledValueField=void 0}t.prototype._settledValue=function(){return this._settledValueField};var n=t.prototype.value=function(){if(!this.isFulfilled())throw TypeError(`cannot get fulfillment value of a non-fulfilled promise
53
+ `)};else if(!o.isNode&&typeof Error().stack==="string")y=function(I,L){console.warn("%c"+I,L?"color: darkorange":"color: red")}}var Be={warnings:b,longStackTraces:!1,cancellation:!1,monitoring:!1};if(_)e.longStackTraces();return{longStackTraces:function(){return Be.longStackTraces},warnings:function(){return Be.warnings},cancellation:function(){return Be.cancellation},monitoring:function(){return Be.monitoring},propagateFromFunction:function(){return k},boundValueFunction:function(){return P},checkForgottenReturns:K,setBounds:mt,warn:de,deprecated:J,CapturedTrace:Qe,fireDomEvent:D,fireGlobalEvent:A}}});var CD=R(function(Qpe,SD){SD.exports=function(e,t){var n=we(),r=e.CancellationError,i=n.errorObj;function o(f,h,p){this.promise=f,this.type=h,this.handler=p,this.called=!1,this.cancelPromise=null}o.prototype.isFinallyHandler=function(){return this.type===0};function s(f){this.finallyHandler=f}s.prototype._resultCancelled=function(){a(this.finallyHandler)};function a(f,h){if(f.cancelPromise!=null){if(arguments.length>1)f.cancelPromise._reject(h);else f.cancelPromise._cancel();return f.cancelPromise=null,!0}return!1}function c(){return d.call(this,this.promise._target()._settledValue())}function u(f){if(a(this,f))return;return i.e=f,i}function d(f){var h=this.promise,p=this.handler;if(!this.called){this.called=!0;var g=this.isFinallyHandler()?p.call(h._boundValue()):p.call(h._boundValue(),f);if(g!==void 0){h._setReturnedNonUndefined();var y=t(g,h);if(y instanceof e){if(this.cancelPromise!=null){if(y._isCancelled()){var v=new r("late cancellation observer");return h._attachExtraTrace(v),i.e=v,i}else if(y.isPending())y._attachCancellationCallback(new s(this))}return y._then(c,u,void 0,this,void 0)}}}if(h.isRejected())return a(this),i.e=f,i;else return a(this),f}return e.prototype._passThrough=function(f,h,p,g){if(typeof f!=="function")return this.then();return this._then(p,g,void 0,new o(this,h,f),void 0)},e.prototype.lastly=e.prototype.finally=function(f){return this._passThrough(f,0,d,d)},e.prototype.tap=function(f){return this._passThrough(f,1,d)},o}});var UD=R(function(ege,AD){AD.exports=function(e){var t=we(),n=wi().keys,r=t.tryCatch,i=t.errorObj;function o(s,a,c){return function(u){var d=c._boundValue();e:for(var f=0;f<s.length;++f){var h=s[f];if(h===Error||h!=null&&h.prototype instanceof Error){if(u instanceof h)return r(a).call(d,u)}else if(typeof h==="function"){var p=r(h).call(d,u);if(p===i)return p;else if(p)return r(a).call(d,u)}else if(t.isObject(u)){var g=n(h);for(var y=0;y<g.length;++y){var v=g[y];if(h[v]!=u[v])continue e}return r(a).call(d,u)}}return e}}return o}});var Pg=R(function(tge,FD){var kD=we(),qL=kD.maybeWrapAsError,$L=Vn(),HL=$L.OperationalError,RD=wi();function GL(e){return e instanceof Error&&RD.getPrototypeOf(e)===Error.prototype}var zL=/^(?:name|message|stack|cause)$/;function VL(e){var t;if(GL(e)){t=new HL(e),t.name=e.name,t.message=e.message,t.stack=e.stack;var n=RD.keys(e);for(var r=0;r<n.length;++r){var i=n[r];if(!zL.test(i))t[i]=e[i]}return t}return kD.markAsOriginatingFromRejection(e),e}function XL(e,t){return function(n,r){if(e===null)return;if(n){var i=VL(qL(n));e._attachExtraTrace(i),e._reject(i)}else if(!t)e._fulfill(r);else{var o=arguments.length,s=Array(Math.max(o-1,0));for(var a=1;a<o;++a)s[a-1]=arguments[a];e._fulfill(s)}e=null}}FD.exports=XL});var PD=R(function(nge,OD){OD.exports=function(e,t,n,r,i){var o=we(),s=o.tryCatch;e.method=function(a){if(typeof a!=="function")throw new e.TypeError("expecting a function but got "+o.classString(a));return function(){var c=new e(t);c._captureStackTrace(),c._pushContext();var u=s(a).apply(this,arguments),d=c._popContext();return i.checkForgottenReturns(u,d,"Promise.method",c),c._resolveFromSyncValue(u),c}},e.attempt=e.try=function(a){if(typeof a!=="function")return r("expecting a function but got "+o.classString(a));var c=new e(t);c._captureStackTrace(),c._pushContext();var u;if(arguments.length>1){i.deprecated("calling Promise.try with more than 1 argument");var d=arguments[1],f=arguments[2];u=o.isArray(d)?s(a).apply(f,d):s(a).call(f,d)}else u=s(a)();var h=c._popContext();return i.checkForgottenReturns(u,h,"Promise.try",c),c._resolveFromSyncValue(u),c},e.prototype._resolveFromSyncValue=function(a){if(a===o.errorObj)this._rejectCallback(a.e,!1);else this._resolveCallback(a,!0)}}});var MD=R(function(rge,ID){ID.exports=function(e,t,n,r){var i=!1,o=function(u,d){this._reject(d)},s=function(u,d){d.promiseRejectionQueued=!0,d.bindingPromise._then(o,o,null,this,u)},a=function(u,d){if((this._bitField&50397184)===0)this._resolveCallback(d.target)},c=function(u,d){if(!d.promiseRejectionQueued)this._reject(u)};e.prototype.bind=function(u){if(!i)i=!0,e.prototype._propagateFrom=r.propagateFromFunction(),e.prototype._boundValue=r.boundValueFunction();var d=n(u),f=new e(t);f._propagateFrom(this,1);var h=this._target();if(f._setBoundTo(d),d instanceof e){var p={promiseRejectionQueued:!1,promise:f,target:h,bindingPromise:d};h._then(t,s,void 0,f,p),d._then(a,c,void 0,f,p),f._setOnCancel(d)}else f._resolveCallback(h);return f},e.prototype._setBoundTo=function(u){if(u!==void 0)this._bitField=this._bitField|2097152,this._boundTo=u;else this._bitField=this._bitField&-2097153},e.prototype._isBound=function(){return(this._bitField&2097152)===2097152},e.bind=function(u,d){return e.resolve(d).bind(u)}}});var BD=R(function(ige,ND){ND.exports=function(e,t,n,r){var i=we(),o=i.tryCatch,s=i.errorObj,a=e._async;e.prototype.break=e.prototype.cancel=function(){if(!r.cancellation())return this._warn("cancellation is disabled");var c=this,u=c;while(c._isCancellable()){if(!c._cancelBy(u)){if(u._isFollowing())u._followee().cancel();else u._cancelBranched();break}var d=c._cancellationParent;if(d==null||!d._isCancellable()){if(c._isFollowing())c._followee().cancel();else c._cancelBranched();break}else{if(c._isFollowing())c._followee().cancel();c._setWillBeCancelled(),u=c,c=d}}},e.prototype._branchHasCancelled=function(){this._branchesRemainingToCancel--},e.prototype._enoughBranchesHaveCancelled=function(){return this._branchesRemainingToCancel===void 0||this._branchesRemainingToCancel<=0},e.prototype._cancelBy=function(c){if(c===this)return this._branchesRemainingToCancel=0,this._invokeOnCancel(),!0;else if(this._branchHasCancelled(),this._enoughBranchesHaveCancelled())return this._invokeOnCancel(),!0;return!1},e.prototype._cancelBranched=function(){if(this._enoughBranchesHaveCancelled())this._cancel()},e.prototype._cancel=function(){if(!this._isCancellable())return;this._setCancelled(),a.invoke(this._cancelPromises,this,void 0)},e.prototype._cancelPromises=function(){if(this._length()>0)this._settlePromises()},e.prototype._unsetOnCancel=function(){this._onCancelField=void 0},e.prototype._isCancellable=function(){return this.isPending()&&!this._isCancelled()},e.prototype.isCancellable=function(){return this.isPending()&&!this.isCancelled()},e.prototype._doInvokeOnCancel=function(c,u){if(i.isArray(c))for(var d=0;d<c.length;++d)this._doInvokeOnCancel(c[d],u);else if(c!==void 0)if(typeof c==="function"){if(!u){var f=o(c).call(this._boundValue());if(f===s)this._attachExtraTrace(f.e),a.throwLater(f.e)}}else c._resultCancelled(this)},e.prototype._invokeOnCancel=function(){var c=this._onCancel();this._unsetOnCancel(),a.invoke(this._doInvokeOnCancel,this,c)},e.prototype._invokeInternalOnCancel=function(){if(this._isCancellable())this._doInvokeOnCancel(this._onCancel(),!0),this._unsetOnCancel()},e.prototype._resultCancelled=function(){this.cancel()}}});var WD=R(function(oge,LD){LD.exports=function(e){function t(){return this.value}function n(){throw this.reason}e.prototype.return=e.prototype.thenReturn=function(r){if(r instanceof e)r.suppressUnhandledRejections();return this._then(t,void 0,void 0,{value:r},void 0)},e.prototype.throw=e.prototype.thenThrow=function(r){return this._then(n,void 0,void 0,{reason:r},void 0)},e.prototype.catchThrow=function(r){if(arguments.length<=1)return this._then(void 0,n,void 0,{reason:r},void 0);else{var i=arguments[1],o=function(){throw i};return this.caught(r,o)}},e.prototype.catchReturn=function(r){if(arguments.length<=1){if(r instanceof e)r.suppressUnhandledRejections();return this._then(void 0,t,void 0,{value:r},void 0)}else{var i=arguments[1];if(i instanceof e)i.suppressUnhandledRejections();var o=function(){return i};return this.caught(r,o)}}}});var qD=R(function(sge,jD){jD.exports=function(e){function t(c){if(c!==void 0)c=c._target(),this._bitField=c._bitField,this._settledValueField=c._isFateSealed()?c._settledValue():void 0;else this._bitField=0,this._settledValueField=void 0}t.prototype._settledValue=function(){return this._settledValueField};var n=t.prototype.value=function(){if(!this.isFulfilled())throw TypeError(`cannot get fulfillment value of a non-fulfilled promise
54
54
 
55
55
  See http://goo.gl/MqrFmX
56
56
  `);return this._settledValue()},r=t.prototype.error=t.prototype.reason=function(){if(!this.isRejected())throw TypeError(`cannot get rejection reason of a non-rejected promise
57
57
 
58
58
  See http://goo.gl/MqrFmX
59
- `);return this._settledValue()},i=t.prototype.isFulfilled=function(){return(this._bitField&33554432)!==0},o=t.prototype.isRejected=function(){return(this._bitField&16777216)!==0},s=t.prototype.isPending=function(){return(this._bitField&50397184)===0},a=t.prototype.isResolved=function(){return(this._bitField&50331648)!==0};t.prototype.isCancelled=function(){return(this._bitField&8454144)!==0},e.prototype.__isCancelled=function(){return(this._bitField&65536)===65536},e.prototype._isCancelled=function(){return this._target().__isCancelled()},e.prototype.isCancelled=function(){return(this._target()._bitField&8454144)!==0},e.prototype.isPending=function(){return s.call(this._target())},e.prototype.isRejected=function(){return o.call(this._target())},e.prototype.isFulfilled=function(){return i.call(this._target())},e.prototype.isResolved=function(){return a.call(this._target())},e.prototype.value=function(){return n.call(this._target())},e.prototype.reason=function(){var c=this._target();return c._unsetRejectionIsUnhandled(),r.call(c)},e.prototype._value=function(){return this._settledValue()},e.prototype._reason=function(){return this._unsetRejectionIsUnhandled(),this._settledValue()},e.PromiseInspection=t}});var HD=R(function(oge,$D){$D.exports=function(e,t,n,r,i,o){var s=we(),a=s.canEvaluate,c=s.tryCatch,u=s.errorObj,d;if(a){var f=function(_){return Function("value","holder",`
59
+ `);return this._settledValue()},i=t.prototype.isFulfilled=function(){return(this._bitField&33554432)!==0},o=t.prototype.isRejected=function(){return(this._bitField&16777216)!==0},s=t.prototype.isPending=function(){return(this._bitField&50397184)===0},a=t.prototype.isResolved=function(){return(this._bitField&50331648)!==0};t.prototype.isCancelled=function(){return(this._bitField&8454144)!==0},e.prototype.__isCancelled=function(){return(this._bitField&65536)===65536},e.prototype._isCancelled=function(){return this._target().__isCancelled()},e.prototype.isCancelled=function(){return(this._target()._bitField&8454144)!==0},e.prototype.isPending=function(){return s.call(this._target())},e.prototype.isRejected=function(){return o.call(this._target())},e.prototype.isFulfilled=function(){return i.call(this._target())},e.prototype.isResolved=function(){return a.call(this._target())},e.prototype.value=function(){return n.call(this._target())},e.prototype.reason=function(){var c=this._target();return c._unsetRejectionIsUnhandled(),r.call(c)},e.prototype._value=function(){return this._settledValue()},e.prototype._reason=function(){return this._unsetRejectionIsUnhandled(),this._settledValue()},e.PromiseInspection=t}});var HD=R(function(age,$D){$D.exports=function(e,t,n,r,i,o){var s=we(),a=s.canEvaluate,c=s.tryCatch,u=s.errorObj,d;if(a){var f=function(_){return Function("value","holder",`
60
60
  'use strict';
61
61
  holder.pIndex = value;
62
62
  holder.checkFulfillment(this);
@@ -108,7 +108,7 @@ __p+='`;return u}),o+=`';
108
108
 
109
109
  return [TheName];
110
110
  }(tryCatch, errorObj, Promise, async);
111
- `;return C=C.replace(/\[TheName\]/g,U).replace(/\[TheTotal\]/g,_).replace(/\[ThePassedArguments\]/g,E).replace(/\[TheProperties\]/g,D).replace(/\[CancellationCode\]/g,A),Function("tryCatch","errorObj","Promise","async",C)(c,u,e,i)},g=[],y=[],v=[];for(var b=0;b<8;++b)g.push(p(b+1)),y.push(f(b+1)),v.push(h(b+1));d=function(_){this._reject(_)}}e.join=function(){var _=arguments.length-1,m;if(_>0&&typeof arguments[_]==="function"){if(m=arguments[_],_<=8&&a){var j=new e(r);j._captureStackTrace();var x=g[_-1],D=new x(m),A=y;for(var E=0;E<_;++E){var U=n(arguments[E],j);if(U instanceof e){U=U._target();var C=U._bitField;if((C&50397184)===0)U._then(A[E],d,void 0,j,D),v[E](U,D),D.asyncNeeded=!1;else if((C&33554432)!==0)A[E].call(j,U._value(),D);else if((C&16777216)!==0)j._reject(U._reason());else j._cancel()}else A[E].call(j,U,D)}if(!j._isFateSealed()){if(D.asyncNeeded){var N=o();if(N!==null)D.fn=s.domainBind(N,D.fn)}j._setAsyncGuaranteed(),j._setOnCancel(D)}return j}}var F=arguments.length,S=Array(F);for(var B=0;B<F;++B)S[B]=arguments[B];if(m)S.pop();var j=new t(S).promise();return m!==void 0?j.spread(m):j}}});var zD=R(function(sge,GD){GD.exports=function(e,t,n,r,i,o){var s=e._getDomain,a=we(),c=a.tryCatch,u=a.errorObj,d=e._async;function f(p,g,y,v){this.constructor$(p),this._promise._captureStackTrace();var b=s();this._callback=b===null?g:a.domainBind(b,g),this._preservedValues=v===i?Array(this.length()):null,this._limit=y,this._inFlight=0,this._queue=[],d.invoke(this._asyncInit,this,void 0)}a.inherits(f,t),f.prototype._asyncInit=function(){this._init$(void 0,-2)},f.prototype._init=function(){},f.prototype._promiseFulfilled=function(p,g){var y=this._values,v=this.length(),b=this._preservedValues,_=this._limit;if(g<0){if(g=g*-1-1,y[g]=p,_>=1){if(this._inFlight--,this._drainQueue(),this._isResolved())return!0}}else{if(_>=1&&this._inFlight>=_)return y[g]=p,this._queue.push(g),!1;if(b!==null)b[g]=p;var m=this._promise,x=this._callback,D=m._boundValue();m._pushContext();var A=c(x).call(D,p,g,v),E=m._popContext();if(o.checkForgottenReturns(A,E,b!==null?"Promise.filter":"Promise.map",m),A===u)return this._reject(A.e),!0;var U=r(A,this._promise);if(U instanceof e){U=U._target();var C=U._bitField;if((C&50397184)===0){if(_>=1)this._inFlight++;return y[g]=U,U._proxy(this,(g+1)*-1),!1}else if((C&33554432)!==0)A=U._value();else if((C&16777216)!==0)return this._reject(U._reason()),!0;else return this._cancel(),!0}y[g]=A}var N=++this._totalResolved;if(N>=v){if(b!==null)this._filter(y,b);else this._resolve(y);return!0}return!1},f.prototype._drainQueue=function(){var p=this._queue,g=this._limit,y=this._values;while(p.length>0&&this._inFlight<g){if(this._isResolved())return;var v=p.pop();this._promiseFulfilled(y[v],v)}},f.prototype._filter=function(p,g){var y=g.length,v=Array(y),b=0;for(var _=0;_<y;++_)if(p[_])v[b++]=g[_];v.length=b,this._resolve(v)},f.prototype.preservedValues=function(){return this._preservedValues};function h(p,g,y,v){if(typeof g!=="function")return n("expecting a function but got "+a.classString(g));var b=0;if(y!==void 0)if(typeof y==="object"&&y!==null){if(typeof y.concurrency!=="number")return e.reject(TypeError("'concurrency' must be a number but it is "+a.classString(y.concurrency)));b=y.concurrency}else return e.reject(TypeError("options argument must be an object but it is "+a.classString(y)));return b=typeof b==="number"&&isFinite(b)&&b>=1?b:0,new f(p,g,b,v).promise()}e.prototype.map=function(p,g){return h(this,p,g,null)},e.map=function(p,g,y,v){return h(p,g,y,v)}}});var XD=R(function(age,VD){var Ig=Object.create;if(Ig)hl=Ig(null),pl=Ig(null),hl[" size"]=pl[" size"]=0;var hl,pl;VD.exports=function(e){var t=we(),n=t.canEvaluate,r=t.isIdentifier,i,o,s=function(p){return Function("ensureMethod",`
111
+ `;return C=C.replace(/\[TheName\]/g,U).replace(/\[TheTotal\]/g,_).replace(/\[ThePassedArguments\]/g,E).replace(/\[TheProperties\]/g,D).replace(/\[CancellationCode\]/g,A),Function("tryCatch","errorObj","Promise","async",C)(c,u,e,i)},g=[],y=[],v=[];for(var b=0;b<8;++b)g.push(p(b+1)),y.push(f(b+1)),v.push(h(b+1));d=function(_){this._reject(_)}}e.join=function(){var _=arguments.length-1,m;if(_>0&&typeof arguments[_]==="function"){if(m=arguments[_],_<=8&&a){var j=new e(r);j._captureStackTrace();var x=g[_-1],D=new x(m),A=y;for(var E=0;E<_;++E){var U=n(arguments[E],j);if(U instanceof e){U=U._target();var C=U._bitField;if((C&50397184)===0)U._then(A[E],d,void 0,j,D),v[E](U,D),D.asyncNeeded=!1;else if((C&33554432)!==0)A[E].call(j,U._value(),D);else if((C&16777216)!==0)j._reject(U._reason());else j._cancel()}else A[E].call(j,U,D)}if(!j._isFateSealed()){if(D.asyncNeeded){var N=o();if(N!==null)D.fn=s.domainBind(N,D.fn)}j._setAsyncGuaranteed(),j._setOnCancel(D)}return j}}var F=arguments.length,S=Array(F);for(var B=0;B<F;++B)S[B]=arguments[B];if(m)S.pop();var j=new t(S).promise();return m!==void 0?j.spread(m):j}}});var zD=R(function(cge,GD){GD.exports=function(e,t,n,r,i,o){var s=e._getDomain,a=we(),c=a.tryCatch,u=a.errorObj,d=e._async;function f(p,g,y,v){this.constructor$(p),this._promise._captureStackTrace();var b=s();this._callback=b===null?g:a.domainBind(b,g),this._preservedValues=v===i?Array(this.length()):null,this._limit=y,this._inFlight=0,this._queue=[],d.invoke(this._asyncInit,this,void 0)}a.inherits(f,t),f.prototype._asyncInit=function(){this._init$(void 0,-2)},f.prototype._init=function(){},f.prototype._promiseFulfilled=function(p,g){var y=this._values,v=this.length(),b=this._preservedValues,_=this._limit;if(g<0){if(g=g*-1-1,y[g]=p,_>=1){if(this._inFlight--,this._drainQueue(),this._isResolved())return!0}}else{if(_>=1&&this._inFlight>=_)return y[g]=p,this._queue.push(g),!1;if(b!==null)b[g]=p;var m=this._promise,x=this._callback,D=m._boundValue();m._pushContext();var A=c(x).call(D,p,g,v),E=m._popContext();if(o.checkForgottenReturns(A,E,b!==null?"Promise.filter":"Promise.map",m),A===u)return this._reject(A.e),!0;var U=r(A,this._promise);if(U instanceof e){U=U._target();var C=U._bitField;if((C&50397184)===0){if(_>=1)this._inFlight++;return y[g]=U,U._proxy(this,(g+1)*-1),!1}else if((C&33554432)!==0)A=U._value();else if((C&16777216)!==0)return this._reject(U._reason()),!0;else return this._cancel(),!0}y[g]=A}var N=++this._totalResolved;if(N>=v){if(b!==null)this._filter(y,b);else this._resolve(y);return!0}return!1},f.prototype._drainQueue=function(){var p=this._queue,g=this._limit,y=this._values;while(p.length>0&&this._inFlight<g){if(this._isResolved())return;var v=p.pop();this._promiseFulfilled(y[v],v)}},f.prototype._filter=function(p,g){var y=g.length,v=Array(y),b=0;for(var _=0;_<y;++_)if(p[_])v[b++]=g[_];v.length=b,this._resolve(v)},f.prototype.preservedValues=function(){return this._preservedValues};function h(p,g,y,v){if(typeof g!=="function")return n("expecting a function but got "+a.classString(g));var b=0;if(y!==void 0)if(typeof y==="object"&&y!==null){if(typeof y.concurrency!=="number")return e.reject(TypeError("'concurrency' must be a number but it is "+a.classString(y.concurrency)));b=y.concurrency}else return e.reject(TypeError("options argument must be an object but it is "+a.classString(y)));return b=typeof b==="number"&&isFinite(b)&&b>=1?b:0,new f(p,g,b,v).promise()}e.prototype.map=function(p,g){return h(this,p,g,null)},e.map=function(p,g,y,v){return h(p,g,y,v)}}});var XD=R(function(uge,VD){var Ig=Object.create;if(Ig)hl=Ig(null),pl=Ig(null),hl[" size"]=pl[" size"]=0;var hl,pl;VD.exports=function(e){var t=we(),n=t.canEvaluate,r=t.isIdentifier,i,o,s=function(p){return Function("ensureMethod",`
112
112
  return function(obj) {
113
113
  'use strict'
114
114
  var len = this.length;
@@ -125,7 +125,7 @@ __p+='`;return u}),o+=`';
125
125
  `.replace(/methodName/g,p))(u)},a=function(p){return Function("obj",`
126
126
  'use strict';
127
127
  return obj.propertyName;
128
- `.replace("propertyName",p))},c=function(p,g,y){var v=y[p];if(typeof v!=="function"){if(!r(p))return null;if(v=g(p),y[p]=v,y[" size"]++,y[" size"]>512){var b=Object.keys(y);for(var _=0;_<256;++_)delete y[b[_]];y[" size"]=b.length-256}}return v};i=function(p){return c(p,s,hl)},o=function(p){return c(p,a,pl)};function u(p,g){var y;if(p!=null)y=p[g];if(typeof y!=="function"){var v="Object "+t.classString(p)+" has no method '"+t.toString(g)+"'";throw new e.TypeError(v)}return y}function d(p){var g=this.pop(),y=u(p,g);return y.apply(p,this)}e.prototype.call=function(p){var g=arguments.length,y=Array(Math.max(g-1,0));for(var v=1;v<g;++v)y[v-1]=arguments[v];if(n){var b=i(p);if(b!==null)return this._then(b,void 0,void 0,y,void 0)}return y.push(p),this._then(d,void 0,void 0,y,void 0)};function f(p){return p[this]}function h(p){var g=+this;if(g<0)g=Math.max(0,g+p.length);return p[g]}e.prototype.get=function(p){var g=typeof p==="number",y;if(!g)if(n){var v=o(p);y=v!==null?v:f}else y=f;else y=h;return this._then(y,void 0,void 0,p,void 0)}}});var ZD=R(function(cge,KD){KD.exports=function(e,t,n,r,i,o){var s=we(),a=Vn().TypeError,c=we().inherits,u=s.errorObj,d=s.tryCatch,f={};function h(m){setTimeout(function(){throw m},0)}function p(m){var x=n(m);if(x!==m&&typeof m._isDisposable==="function"&&typeof m._getDisposer==="function"&&m._isDisposable())x._setDisposable(m._getDisposer());return x}function g(m,x){var D=0,A=m.length,E=new e(i);function U(){if(D>=A)return E._fulfill();var C=p(m[D++]);if(C instanceof e&&C._isDisposable()){try{C=n(C._getDisposer().tryDispose(x),m.promise)}catch(N){return h(N)}if(C instanceof e)return C._then(U,h,null,null,null)}U()}return U(),E}function y(m,x,D){this._data=m,this._promise=x,this._context=D}y.prototype.data=function(){return this._data},y.prototype.promise=function(){return this._promise},y.prototype.resource=function(){if(this.promise().isFulfilled())return this.promise().value();return f},y.prototype.tryDispose=function(m){var x=this.resource(),D=this._context;if(D!==void 0)D._pushContext();var A=x!==f?this.doDispose(x,m):null;if(D!==void 0)D._popContext();return this._promise._unsetDisposable(),this._data=null,A},y.isDisposer=function(m){return m!=null&&typeof m.resource==="function"&&typeof m.tryDispose==="function"};function v(m,x,D){this.constructor$(m,x,D)}c(v,y),v.prototype.doDispose=function(m,x){var D=this.data();return D.call(m,m,x)};function b(m){if(y.isDisposer(m))return this.resources[this.index]._setDisposable(m),m.promise();return m}function _(m){this.length=m,this.promise=null,this[m-1]=null}_.prototype._resultCancelled=function(){var m=this.length;for(var x=0;x<m;++x){var D=this[x];if(D instanceof e)D.cancel()}},e.using=function(){var m=arguments.length;if(m<2)return t("you must pass at least 2 arguments to Promise.using");var x=arguments[m-1];if(typeof x!=="function")return t("expecting a function but got "+s.classString(x));var D,A=!0;if(m===2&&Array.isArray(arguments[0]))D=arguments[0],m=D.length,A=!1;else D=arguments,m--;var E=new _(m);for(var U=0;U<m;++U){var C=D[U];if(y.isDisposer(C)){var N=C;C=C.promise(),C._setDisposable(N)}else{var F=n(C);if(F instanceof e)C=F._then(b,null,null,{resources:E,index:U},void 0)}E[U]=C}var S=Array(E.length);for(var U=0;U<S.length;++U)S[U]=e.resolve(E[U]).reflect();var B=e.all(S).then(function(G){for(var T=0;T<G.length;++T){var O=G[T];if(O.isRejected())return u.e=O.error(),u;else if(!O.isFulfilled()){B.cancel();return}G[T]=O.value()}j._pushContext(),x=d(x);var k=A?x.apply(void 0,G):x(G),P=j._popContext();return o.checkForgottenReturns(k,P,"Promise.using",j),k}),j=B.lastly(function(){var G=new e.PromiseInspection(B);return g(E,G)});return E.promise=j,j._setOnCancel(E),j},e.prototype._setDisposable=function(m){this._bitField=this._bitField|131072,this._disposer=m},e.prototype._isDisposable=function(){return(this._bitField&131072)>0},e.prototype._getDisposer=function(){return this._disposer},e.prototype._unsetDisposable=function(){this._bitField=this._bitField&-131073,this._disposer=void 0},e.prototype.disposer=function(m){if(typeof m==="function")return new v(m,this,r());throw new a}}});var JD=R(function(uge,YD){YD.exports=function(e,t,n){var r=we(),i=e.TimeoutError;function o(f){this.handle=f}o.prototype._resultCancelled=function(){clearTimeout(this.handle)};var s=function(f){return a(+this).thenReturn(f)},a=e.delay=function(f,h){var p,g;if(h!==void 0){if(p=e.resolve(h)._then(s,null,null,f,void 0),n.cancellation()&&h instanceof e)p._setOnCancel(h)}else{if(p=new e(t),g=setTimeout(function(){p._fulfill()},+f),n.cancellation())p._setOnCancel(new o(g));p._captureStackTrace()}return p._setAsyncGuaranteed(),p};e.prototype.delay=function(f){return a(f,this)};var c=function(f,h,p){var g;if(typeof h!=="string")if(h instanceof Error)g=h;else g=new i("operation timed out");else g=new i(h);if(r.markAsOriginatingFromRejection(g),f._attachExtraTrace(g),f._reject(g),p!=null)p.cancel()};function u(f){return clearTimeout(this.handle),f}function d(f){throw clearTimeout(this.handle),f}e.prototype.timeout=function(f,h){f=+f;var p,g,y=new o(setTimeout(function(){if(p.isPending())c(p,h,g)},f));if(n.cancellation())g=this.then(),p=g._then(u,d,void 0,y,void 0),p._setOnCancel(y);else p=this._then(u,d,void 0,y,void 0);return p}}});var eE=R(function(lge,QD){QD.exports=function(e,t,n,r,i,o){var s=Vn(),a=s.TypeError,c=we(),u=c.errorObj,d=c.tryCatch,f=[];function h(g,y,v){for(var b=0;b<y.length;++b){v._pushContext();var _=d(y[b])(g);if(v._popContext(),_===u){v._pushContext();var m=e.reject(u.e);return v._popContext(),m}var x=r(_,v);if(x instanceof e)return x}return null}function p(g,y,v,b){if(o.cancellation()){var _=new e(n),m=this._finallyPromise=new e(n);this._promise=_.lastly(function(){return m}),_._captureStackTrace(),_._setOnCancel(this)}else{var x=this._promise=new e(n);x._captureStackTrace()}this._stack=b,this._generatorFunction=g,this._receiver=y,this._generator=void 0,this._yieldHandlers=typeof v==="function"?[v].concat(f):f,this._yieldedPromise=null,this._cancellationPhase=!1}c.inherits(p,i),p.prototype._isResolved=function(){return this._promise===null},p.prototype._cleanup=function(){if(this._promise=this._generator=null,o.cancellation()&&this._finallyPromise!==null)this._finallyPromise._fulfill(),this._finallyPromise=null},p.prototype._promiseCancelled=function(){if(this._isResolved())return;var g=typeof this._generator.return<"u",y;if(!g){var v=new e.CancellationError("generator .return() sentinel");e.coroutine.returnSentinel=v,this._promise._attachExtraTrace(v),this._promise._pushContext(),y=d(this._generator.throw).call(this._generator,v),this._promise._popContext()}else this._promise._pushContext(),y=d(this._generator.return).call(this._generator,void 0),this._promise._popContext();this._cancellationPhase=!0,this._yieldedPromise=null,this._continue(y)},p.prototype._promiseFulfilled=function(g){this._yieldedPromise=null,this._promise._pushContext();var y=d(this._generator.next).call(this._generator,g);this._promise._popContext(),this._continue(y)},p.prototype._promiseRejected=function(g){this._yieldedPromise=null,this._promise._attachExtraTrace(g),this._promise._pushContext();var y=d(this._generator.throw).call(this._generator,g);this._promise._popContext(),this._continue(y)},p.prototype._resultCancelled=function(){if(this._yieldedPromise instanceof e){var g=this._yieldedPromise;this._yieldedPromise=null,g.cancel()}},p.prototype.promise=function(){return this._promise},p.prototype._run=function(){this._generator=this._generatorFunction.call(this._receiver),this._receiver=this._generatorFunction=void 0,this._promiseFulfilled(void 0)},p.prototype._continue=function(g){var y=this._promise;if(g===u)if(this._cleanup(),this._cancellationPhase)return y.cancel();else return y._rejectCallback(g.e,!1);var v=g.value;if(g.done===!0)if(this._cleanup(),this._cancellationPhase)return y.cancel();else return y._resolveCallback(v);else{var b=r(v,this._promise);if(!(b instanceof e)){if(b=h(b,this._yieldHandlers,this._promise),b===null){this._promiseRejected(new a(`A value %s was yielded that could not be treated as a promise
128
+ `.replace("propertyName",p))},c=function(p,g,y){var v=y[p];if(typeof v!=="function"){if(!r(p))return null;if(v=g(p),y[p]=v,y[" size"]++,y[" size"]>512){var b=Object.keys(y);for(var _=0;_<256;++_)delete y[b[_]];y[" size"]=b.length-256}}return v};i=function(p){return c(p,s,hl)},o=function(p){return c(p,a,pl)};function u(p,g){var y;if(p!=null)y=p[g];if(typeof y!=="function"){var v="Object "+t.classString(p)+" has no method '"+t.toString(g)+"'";throw new e.TypeError(v)}return y}function d(p){var g=this.pop(),y=u(p,g);return y.apply(p,this)}e.prototype.call=function(p){var g=arguments.length,y=Array(Math.max(g-1,0));for(var v=1;v<g;++v)y[v-1]=arguments[v];if(n){var b=i(p);if(b!==null)return this._then(b,void 0,void 0,y,void 0)}return y.push(p),this._then(d,void 0,void 0,y,void 0)};function f(p){return p[this]}function h(p){var g=+this;if(g<0)g=Math.max(0,g+p.length);return p[g]}e.prototype.get=function(p){var g=typeof p==="number",y;if(!g)if(n){var v=o(p);y=v!==null?v:f}else y=f;else y=h;return this._then(y,void 0,void 0,p,void 0)}}});var ZD=R(function(lge,KD){KD.exports=function(e,t,n,r,i,o){var s=we(),a=Vn().TypeError,c=we().inherits,u=s.errorObj,d=s.tryCatch,f={};function h(m){setTimeout(function(){throw m},0)}function p(m){var x=n(m);if(x!==m&&typeof m._isDisposable==="function"&&typeof m._getDisposer==="function"&&m._isDisposable())x._setDisposable(m._getDisposer());return x}function g(m,x){var D=0,A=m.length,E=new e(i);function U(){if(D>=A)return E._fulfill();var C=p(m[D++]);if(C instanceof e&&C._isDisposable()){try{C=n(C._getDisposer().tryDispose(x),m.promise)}catch(N){return h(N)}if(C instanceof e)return C._then(U,h,null,null,null)}U()}return U(),E}function y(m,x,D){this._data=m,this._promise=x,this._context=D}y.prototype.data=function(){return this._data},y.prototype.promise=function(){return this._promise},y.prototype.resource=function(){if(this.promise().isFulfilled())return this.promise().value();return f},y.prototype.tryDispose=function(m){var x=this.resource(),D=this._context;if(D!==void 0)D._pushContext();var A=x!==f?this.doDispose(x,m):null;if(D!==void 0)D._popContext();return this._promise._unsetDisposable(),this._data=null,A},y.isDisposer=function(m){return m!=null&&typeof m.resource==="function"&&typeof m.tryDispose==="function"};function v(m,x,D){this.constructor$(m,x,D)}c(v,y),v.prototype.doDispose=function(m,x){var D=this.data();return D.call(m,m,x)};function b(m){if(y.isDisposer(m))return this.resources[this.index]._setDisposable(m),m.promise();return m}function _(m){this.length=m,this.promise=null,this[m-1]=null}_.prototype._resultCancelled=function(){var m=this.length;for(var x=0;x<m;++x){var D=this[x];if(D instanceof e)D.cancel()}},e.using=function(){var m=arguments.length;if(m<2)return t("you must pass at least 2 arguments to Promise.using");var x=arguments[m-1];if(typeof x!=="function")return t("expecting a function but got "+s.classString(x));var D,A=!0;if(m===2&&Array.isArray(arguments[0]))D=arguments[0],m=D.length,A=!1;else D=arguments,m--;var E=new _(m);for(var U=0;U<m;++U){var C=D[U];if(y.isDisposer(C)){var N=C;C=C.promise(),C._setDisposable(N)}else{var F=n(C);if(F instanceof e)C=F._then(b,null,null,{resources:E,index:U},void 0)}E[U]=C}var S=Array(E.length);for(var U=0;U<S.length;++U)S[U]=e.resolve(E[U]).reflect();var B=e.all(S).then(function(G){for(var T=0;T<G.length;++T){var O=G[T];if(O.isRejected())return u.e=O.error(),u;else if(!O.isFulfilled()){B.cancel();return}G[T]=O.value()}j._pushContext(),x=d(x);var k=A?x.apply(void 0,G):x(G),P=j._popContext();return o.checkForgottenReturns(k,P,"Promise.using",j),k}),j=B.lastly(function(){var G=new e.PromiseInspection(B);return g(E,G)});return E.promise=j,j._setOnCancel(E),j},e.prototype._setDisposable=function(m){this._bitField=this._bitField|131072,this._disposer=m},e.prototype._isDisposable=function(){return(this._bitField&131072)>0},e.prototype._getDisposer=function(){return this._disposer},e.prototype._unsetDisposable=function(){this._bitField=this._bitField&-131073,this._disposer=void 0},e.prototype.disposer=function(m){if(typeof m==="function")return new v(m,this,r());throw new a}}});var JD=R(function(dge,YD){YD.exports=function(e,t,n){var r=we(),i=e.TimeoutError;function o(f){this.handle=f}o.prototype._resultCancelled=function(){clearTimeout(this.handle)};var s=function(f){return a(+this).thenReturn(f)},a=e.delay=function(f,h){var p,g;if(h!==void 0){if(p=e.resolve(h)._then(s,null,null,f,void 0),n.cancellation()&&h instanceof e)p._setOnCancel(h)}else{if(p=new e(t),g=setTimeout(function(){p._fulfill()},+f),n.cancellation())p._setOnCancel(new o(g));p._captureStackTrace()}return p._setAsyncGuaranteed(),p};e.prototype.delay=function(f){return a(f,this)};var c=function(f,h,p){var g;if(typeof h!=="string")if(h instanceof Error)g=h;else g=new i("operation timed out");else g=new i(h);if(r.markAsOriginatingFromRejection(g),f._attachExtraTrace(g),f._reject(g),p!=null)p.cancel()};function u(f){return clearTimeout(this.handle),f}function d(f){throw clearTimeout(this.handle),f}e.prototype.timeout=function(f,h){f=+f;var p,g,y=new o(setTimeout(function(){if(p.isPending())c(p,h,g)},f));if(n.cancellation())g=this.then(),p=g._then(u,d,void 0,y,void 0),p._setOnCancel(y);else p=this._then(u,d,void 0,y,void 0);return p}}});var eE=R(function(fge,QD){QD.exports=function(e,t,n,r,i,o){var s=Vn(),a=s.TypeError,c=we(),u=c.errorObj,d=c.tryCatch,f=[];function h(g,y,v){for(var b=0;b<y.length;++b){v._pushContext();var _=d(y[b])(g);if(v._popContext(),_===u){v._pushContext();var m=e.reject(u.e);return v._popContext(),m}var x=r(_,v);if(x instanceof e)return x}return null}function p(g,y,v,b){if(o.cancellation()){var _=new e(n),m=this._finallyPromise=new e(n);this._promise=_.lastly(function(){return m}),_._captureStackTrace(),_._setOnCancel(this)}else{var x=this._promise=new e(n);x._captureStackTrace()}this._stack=b,this._generatorFunction=g,this._receiver=y,this._generator=void 0,this._yieldHandlers=typeof v==="function"?[v].concat(f):f,this._yieldedPromise=null,this._cancellationPhase=!1}c.inherits(p,i),p.prototype._isResolved=function(){return this._promise===null},p.prototype._cleanup=function(){if(this._promise=this._generator=null,o.cancellation()&&this._finallyPromise!==null)this._finallyPromise._fulfill(),this._finallyPromise=null},p.prototype._promiseCancelled=function(){if(this._isResolved())return;var g=typeof this._generator.return<"u",y;if(!g){var v=new e.CancellationError("generator .return() sentinel");e.coroutine.returnSentinel=v,this._promise._attachExtraTrace(v),this._promise._pushContext(),y=d(this._generator.throw).call(this._generator,v),this._promise._popContext()}else this._promise._pushContext(),y=d(this._generator.return).call(this._generator,void 0),this._promise._popContext();this._cancellationPhase=!0,this._yieldedPromise=null,this._continue(y)},p.prototype._promiseFulfilled=function(g){this._yieldedPromise=null,this._promise._pushContext();var y=d(this._generator.next).call(this._generator,g);this._promise._popContext(),this._continue(y)},p.prototype._promiseRejected=function(g){this._yieldedPromise=null,this._promise._attachExtraTrace(g),this._promise._pushContext();var y=d(this._generator.throw).call(this._generator,g);this._promise._popContext(),this._continue(y)},p.prototype._resultCancelled=function(){if(this._yieldedPromise instanceof e){var g=this._yieldedPromise;this._yieldedPromise=null,g.cancel()}},p.prototype.promise=function(){return this._promise},p.prototype._run=function(){this._generator=this._generatorFunction.call(this._receiver),this._receiver=this._generatorFunction=void 0,this._promiseFulfilled(void 0)},p.prototype._continue=function(g){var y=this._promise;if(g===u)if(this._cleanup(),this._cancellationPhase)return y.cancel();else return y._rejectCallback(g.e,!1);var v=g.value;if(g.done===!0)if(this._cleanup(),this._cancellationPhase)return y.cancel();else return y._resolveCallback(v);else{var b=r(v,this._promise);if(!(b instanceof e)){if(b=h(b,this._yieldHandlers,this._promise),b===null){this._promiseRejected(new a(`A value %s was yielded that could not be treated as a promise
129
129
 
130
130
  See http://goo.gl/MqrFmX
131
131
 
@@ -138,13 +138,13 @@ __p+='`;return u}),o+=`';
138
138
  `);var v=Object(y).yieldHandler,b=p,_=Error().stack;return function(){var m=g.apply(this,arguments),x=new b(void 0,void 0,v,_),D=x.promise();return x._generator=m,x._promiseFulfilled(void 0),D}},e.coroutine.addYieldHandler=function(g){if(typeof g!=="function")throw new a("expecting a function but got "+c.classString(g));f.push(g)},e.spawn=function(g){if(o.deprecated("Promise.spawn()","Promise.coroutine()"),typeof g!=="function")return t(`generatorFunction must be a function
139
139
 
140
140
  See http://goo.gl/MqrFmX
141
- `);var y=new p(g,this),v=y.promise();return y._run(e.spawn),v}}});var nE=R(function(dge,tE){tE.exports=function(e){var t=we(),n=e._async,r=t.tryCatch,i=t.errorObj;function o(c,u){var d=this;if(!t.isArray(c))return s.call(d,c,u);var f=r(u).apply(d._boundValue(),[null].concat(c));if(f===i)n.throwLater(f.e)}function s(c,u){var d=this,f=d._boundValue(),h=c===void 0?r(u).call(f,null):r(u).call(f,null,c);if(h===i)n.throwLater(h.e)}function a(c,u){var d=this;if(!c){var f=Error(c+"");f.cause=c,c=f}var h=r(u).call(d._boundValue(),c);if(h===i)n.throwLater(h.e)}e.prototype.asCallback=e.prototype.nodeify=function(c,u){if(typeof c=="function"){var d=s;if(u!==void 0&&Object(u).spread)d=o;this._then(d,a,void 0,this,c)}return this}}});var iE=R(function(fge,rE){rE.exports=function(e,t){var n={},r=we(),i=Pg(),o=r.withAppended,s=r.maybeWrapAsError,a=r.canEvaluate,c=Vn().TypeError,u="Async",d={__isPromisified__:!0},f=["arity","length","name","arguments","caller","callee","prototype","__isPromisified__"],h=new RegExp("^(?:"+f.join("|")+")$"),p=function(B){return r.isIdentifier(B)&&B.charAt(0)!=="_"&&B!=="constructor"};function g(B){return!h.test(B)}function y(B){try{return B.__isPromisified__===!0}catch(j){return!1}}function v(B,j,G){var T=r.getDataPropertyOrDefault(B,j+G,d);return T?y(T):!1}function b(B,j,G){for(var T=0;T<B.length;T+=2){var O=B[T];if(G.test(O)){var k=O.replace(G,"");for(var P=0;P<B.length;P+=2)if(B[P]===k)throw new c(`Cannot promisify an API that has normal methods with '%s'-suffix
141
+ `);var y=new p(g,this),v=y.promise();return y._run(e.spawn),v}}});var nE=R(function(hge,tE){tE.exports=function(e){var t=we(),n=e._async,r=t.tryCatch,i=t.errorObj;function o(c,u){var d=this;if(!t.isArray(c))return s.call(d,c,u);var f=r(u).apply(d._boundValue(),[null].concat(c));if(f===i)n.throwLater(f.e)}function s(c,u){var d=this,f=d._boundValue(),h=c===void 0?r(u).call(f,null):r(u).call(f,null,c);if(h===i)n.throwLater(h.e)}function a(c,u){var d=this;if(!c){var f=Error(c+"");f.cause=c,c=f}var h=r(u).call(d._boundValue(),c);if(h===i)n.throwLater(h.e)}e.prototype.asCallback=e.prototype.nodeify=function(c,u){if(typeof c=="function"){var d=s;if(u!==void 0&&Object(u).spread)d=o;this._then(d,a,void 0,this,c)}return this}}});var iE=R(function(pge,rE){rE.exports=function(e,t){var n={},r=we(),i=Pg(),o=r.withAppended,s=r.maybeWrapAsError,a=r.canEvaluate,c=Vn().TypeError,u="Async",d={__isPromisified__:!0},f=["arity","length","name","arguments","caller","callee","prototype","__isPromisified__"],h=new RegExp("^(?:"+f.join("|")+")$"),p=function(B){return r.isIdentifier(B)&&B.charAt(0)!=="_"&&B!=="constructor"};function g(B){return!h.test(B)}function y(B){try{return B.__isPromisified__===!0}catch(j){return!1}}function v(B,j,G){var T=r.getDataPropertyOrDefault(B,j+G,d);return T?y(T):!1}function b(B,j,G){for(var T=0;T<B.length;T+=2){var O=B[T];if(G.test(O)){var k=O.replace(G,"");for(var P=0;P<B.length;P+=2)if(B[P]===k)throw new c(`Cannot promisify an API that has normal methods with '%s'-suffix
142
142
 
143
143
  See http://goo.gl/MqrFmX
144
- `.replace("%s",j))}}}function _(B,j,G,T){var O=r.inheritedDataKeys(B),k=[];for(var P=0;P<O.length;++P){var W=O[P],q=B[W],K=T===p?!0:p(W,q,B);if(typeof q==="function"&&!y(q)&&!v(B,W,j)&&T(W,q,B,K))k.push(W,q)}return b(k,j,G),k}var m=function(B){return B.replace(/([$])/,"\\$")},x,D=function(B){var j=[B],G=Math.max(0,B-1-3);for(var T=B-1;T>=G;--T)j.push(T);for(var T=B+1;T<=3;++T)j.push(T);return j},A=function(B){return r.filledRange(B,"_arg","")},E=function(B){return r.filledRange(Math.max(B,3),"_arg","")},U=function(B){if(typeof B.length==="number")return Math.max(Math.min(B.length,1024),0);return 0};x=function(B,j,G,T,O,k){var P=Math.max(0,U(T)-1),W=D(P),q=typeof B==="string"||j===n;function K(xe){var ot=A(xe).join(", "),pn=xe>0?", ":"",hr;if(q)hr=`ret = callback.call(this, {{args}}, nodeback); break;
144
+ `.replace("%s",j))}}}function _(B,j,G,T){var O=r.inheritedDataKeys(B),k=[];for(var P=0;P<O.length;++P){var W=O[P],q=B[W],K=T===p?!0:p(W,q,B);if(typeof q==="function"&&!y(q)&&!v(B,W,j)&&T(W,q,B,K))k.push(W,q)}return b(k,j,G),k}var m=function(B){return B.replace(/([$])/,"\\$")},x,D=function(B){var j=[B],G=Math.max(0,B-1-3);for(var T=B-1;T>=G;--T)j.push(T);for(var T=B+1;T<=3;++T)j.push(T);return j},A=function(B){return r.filledRange(B,"_arg","")},E=function(B){return r.filledRange(Math.max(B,3),"_arg","")},U=function(B){if(typeof B.length==="number")return Math.max(Math.min(B.length,1024),0);return 0};x=function(B,j,G,T,O,k){var P=Math.max(0,U(T)-1),W=D(P),q=typeof B==="string"||j===n;function K(ve){var ot=A(ve).join(", "),pn=ve>0?", ":"",hr;if(q)hr=`ret = callback.call(this, {{args}}, nodeback); break;
145
145
  `;else hr=j===void 0?`ret = callback({{args}}, nodeback); break;
146
146
  `:`ret = callback.call(receiver, {{args}}, nodeback); break;
147
- `;return hr.replace("{{args}}",ot).replace(", ",pn)}function J(){var xe="";for(var ot=0;ot<W.length;++ot)xe+="case "+W[ot]+":"+K(W[ot]);return xe+=`
147
+ `;return hr.replace("{{args}}",ot).replace(", ",pn)}function J(){var ve="";for(var ot=0;ot<W.length;++ot)ve+="case "+W[ot]+":"+K(W[ot]);return ve+=`
148
148
  default:
149
149
  var args = new Array(len + 1);
150
150
  var i = 0;
@@ -156,7 +156,7 @@ __p+='`;return u}),o+=`';
156
156
  break;
157
157
  `.replace("[CodeForCall]",q?`ret = callback.apply(this, args);
158
158
  `:`ret = callback.apply(receiver, args);
159
- `),xe}var de=typeof B==="string"?"this != null ? this['"+B+"'] : fn":"fn",Ae=`'use strict';
159
+ `),ve}var de=typeof B==="string"?"this != null ? this['"+B+"'] : fn":"fn",Ae=`'use strict';
160
160
  var ret = function (Parameters) {
161
161
  'use strict';
162
162
  var len = arguments.length;
@@ -176,33 +176,33 @@ __p+='`;return u}),o+=`';
176
176
  };
177
177
  notEnumerableProp(ret, '__isPromisified__', true);
178
178
  return ret;
179
- `.replace("[CodeForSwitchCase]",J()).replace("[GetFunctionCode]",de);return Ae=Ae.replace("Parameters",E(P)),Function("Promise","fn","receiver","withAppended","maybeWrapAsError","nodebackForPromise","tryCatch","errorObj","notEnumerableProp","INTERNAL",Ae)(e,T,j,o,s,i,r.tryCatch,r.errorObj,r.notEnumerableProp,t)};function C(B,j,G,T,O,k){var P=function(){return this}(),W=B;if(typeof W==="string")B=T;function q(){var K=j;if(j===n)K=this;var J=new e(t);J._captureStackTrace();var de=typeof W==="string"&&this!==P?this[W]:B,Ae=i(J,k);try{de.apply(K,o(arguments,Ae))}catch(xe){J._rejectCallback(s(xe),!0,!0)}if(!J._isFateSealed())J._setAsyncGuaranteed();return J}return r.notEnumerableProp(q,"__isPromisified__",!0),q}var N=a?x:C;function F(B,j,G,T,O){var k=new RegExp(m(j)+"$"),P=_(B,j,k,G);for(var W=0,q=P.length;W<q;W+=2){var K=P[W],J=P[W+1],de=K+j;if(T===N)B[de]=N(K,n,K,J,j,O);else{var Ae=T(J,function(){return N(K,n,K,J,j,O)});r.notEnumerableProp(Ae,"__isPromisified__",!0),B[de]=Ae}}return r.toFastProperties(B),B}function S(B,j,G){return N(B,j,void 0,B,null,G)}e.promisify=function(B,j){if(typeof B!=="function")throw new c("expecting a function but got "+r.classString(B));if(y(B))return B;j=Object(j);var G=j.context===void 0?n:j.context,T=!!j.multiArgs,O=S(B,G,T);return r.copyDescriptors(B,O,g),O},e.promisifyAll=function(B,j){if(typeof B!=="function"&&typeof B!=="object")throw new c(`the target of promisifyAll must be an object or a function
179
+ `.replace("[CodeForSwitchCase]",J()).replace("[GetFunctionCode]",de);return Ae=Ae.replace("Parameters",E(P)),Function("Promise","fn","receiver","withAppended","maybeWrapAsError","nodebackForPromise","tryCatch","errorObj","notEnumerableProp","INTERNAL",Ae)(e,T,j,o,s,i,r.tryCatch,r.errorObj,r.notEnumerableProp,t)};function C(B,j,G,T,O,k){var P=function(){return this}(),W=B;if(typeof W==="string")B=T;function q(){var K=j;if(j===n)K=this;var J=new e(t);J._captureStackTrace();var de=typeof W==="string"&&this!==P?this[W]:B,Ae=i(J,k);try{de.apply(K,o(arguments,Ae))}catch(ve){J._rejectCallback(s(ve),!0,!0)}if(!J._isFateSealed())J._setAsyncGuaranteed();return J}return r.notEnumerableProp(q,"__isPromisified__",!0),q}var N=a?x:C;function F(B,j,G,T,O){var k=new RegExp(m(j)+"$"),P=_(B,j,k,G);for(var W=0,q=P.length;W<q;W+=2){var K=P[W],J=P[W+1],de=K+j;if(T===N)B[de]=N(K,n,K,J,j,O);else{var Ae=T(J,function(){return N(K,n,K,J,j,O)});r.notEnumerableProp(Ae,"__isPromisified__",!0),B[de]=Ae}}return r.toFastProperties(B),B}function S(B,j,G){return N(B,j,void 0,B,null,G)}e.promisify=function(B,j){if(typeof B!=="function")throw new c("expecting a function but got "+r.classString(B));if(y(B))return B;j=Object(j);var G=j.context===void 0?n:j.context,T=!!j.multiArgs,O=S(B,G,T);return r.copyDescriptors(B,O,g),O},e.promisifyAll=function(B,j){if(typeof B!=="function"&&typeof B!=="object")throw new c(`the target of promisifyAll must be an object or a function
180
180
 
181
181
  See http://goo.gl/MqrFmX
182
182
  `);j=Object(j);var G=!!j.multiArgs,T=j.suffix;if(typeof T!=="string")T=u;var O=j.filter;if(typeof O!=="function")O=p;var k=j.promisifier;if(typeof k!=="function")k=N;if(!r.isIdentifier(T))throw RangeError(`suffix must be a valid identifier
183
183
 
184
184
  See http://goo.gl/MqrFmX
185
- `);var P=r.inheritedDataKeys(B);for(var W=0;W<P.length;++W){var q=B[P[W]];if(P[W]!=="constructor"&&r.isClass(q))F(q.prototype,T,O,k,G),F(q,T,O,k,G)}return F(B,T,O,k,G)}}});var sE=R(function(hge,oE){oE.exports=function(e,t,n,r){var i=we(),o=i.isObject,s=wi(),a;if(typeof Map==="function")a=Map;var c=function(){var h=0,p=0;function g(y,v){this[h]=y,this[h+p]=v,h++}return function(v){p=v.size,h=0;var b=Array(v.size*2);return v.forEach(g,b),b}}(),u=function(h){var p=new a,g=h.length/2|0;for(var y=0;y<g;++y){var v=h[g+y],b=h[y];p.set(v,b)}return p};function d(h){var p=!1,g;if(a!==void 0&&h instanceof a)g=c(h),p=!0;else{var y=s.keys(h),v=y.length;g=Array(v*2);for(var b=0;b<v;++b){var _=y[b];g[b]=h[_],g[b+v]=_}}this.constructor$(g),this._isMap=p,this._init$(void 0,-3)}i.inherits(d,t),d.prototype._init=function(){},d.prototype._promiseFulfilled=function(h,p){this._values[p]=h;var g=++this._totalResolved;if(g>=this._length){var y;if(this._isMap)y=u(this._values);else{y={};var v=this.length();for(var b=0,_=this.length();b<_;++b)y[this._values[b+v]]=this._values[b]}return this._resolve(y),!0}return!1},d.prototype.shouldCopyValues=function(){return!1},d.prototype.getActualLength=function(h){return h>>1};function f(h){var p,g=n(h);if(!o(g))return r(`cannot await properties of a non-object
185
+ `);var P=r.inheritedDataKeys(B);for(var W=0;W<P.length;++W){var q=B[P[W]];if(P[W]!=="constructor"&&r.isClass(q))F(q.prototype,T,O,k,G),F(q,T,O,k,G)}return F(B,T,O,k,G)}}});var sE=R(function(gge,oE){oE.exports=function(e,t,n,r){var i=we(),o=i.isObject,s=wi(),a;if(typeof Map==="function")a=Map;var c=function(){var h=0,p=0;function g(y,v){this[h]=y,this[h+p]=v,h++}return function(v){p=v.size,h=0;var b=Array(v.size*2);return v.forEach(g,b),b}}(),u=function(h){var p=new a,g=h.length/2|0;for(var y=0;y<g;++y){var v=h[g+y],b=h[y];p.set(v,b)}return p};function d(h){var p=!1,g;if(a!==void 0&&h instanceof a)g=c(h),p=!0;else{var y=s.keys(h),v=y.length;g=Array(v*2);for(var b=0;b<v;++b){var _=y[b];g[b]=h[_],g[b+v]=_}}this.constructor$(g),this._isMap=p,this._init$(void 0,-3)}i.inherits(d,t),d.prototype._init=function(){},d.prototype._promiseFulfilled=function(h,p){this._values[p]=h;var g=++this._totalResolved;if(g>=this._length){var y;if(this._isMap)y=u(this._values);else{y={};var v=this.length();for(var b=0,_=this.length();b<_;++b)y[this._values[b+v]]=this._values[b]}return this._resolve(y),!0}return!1},d.prototype.shouldCopyValues=function(){return!1},d.prototype.getActualLength=function(h){return h>>1};function f(h){var p,g=n(h);if(!o(g))return r(`cannot await properties of a non-object
186
186
 
187
187
  See http://goo.gl/MqrFmX
188
- `);else if(g instanceof e)p=g._then(e.props,void 0,void 0,void 0,void 0);else p=new d(g).promise();if(g instanceof e)p._propagateFrom(g,2);return p}e.prototype.props=function(){return f(this)},e.props=function(h){return f(h)}}});var cE=R(function(pge,aE){aE.exports=function(e,t,n,r){var i=we(),o=function(a){return a.then(function(c){return s(c,a)})};function s(a,c){var u=n(a);if(u instanceof e)return o(u);else if(a=i.asArray(a),a===null)return r("expecting an array or an iterable object but got "+i.classString(a));var d=new e(t);if(c!==void 0)d._propagateFrom(c,3);var{_fulfill:f,_reject:h}=d;for(var p=0,g=a.length;p<g;++p){var y=a[p];if(y===void 0&&!(p in a))continue;e.cast(y)._then(f,h,void 0,d,null)}return d}e.race=function(a){return s(a,void 0)},e.prototype.race=function(){return s(this,void 0)}}});var lE=R(function(gge,uE){uE.exports=function(e,t,n,r,i,o){var s=e._getDomain,a=we(),c=a.tryCatch;function u(g,y,v,b){this.constructor$(g);var _=s();if(this._fn=_===null?y:a.domainBind(_,y),v!==void 0)v=e.resolve(v),v._attachCancellationCallback(this);if(this._initialValue=v,this._currentCancellable=null,b===i)this._eachValues=Array(this._length);else if(b===0)this._eachValues=null;else this._eachValues=void 0;this._promise._captureStackTrace(),this._init$(void 0,-5)}a.inherits(u,t),u.prototype._gotAccum=function(g){if(this._eachValues!==void 0&&this._eachValues!==null&&g!==i)this._eachValues.push(g)},u.prototype._eachComplete=function(g){if(this._eachValues!==null)this._eachValues.push(g);return this._eachValues},u.prototype._init=function(){},u.prototype._resolveEmptyArray=function(){this._resolve(this._eachValues!==void 0?this._eachValues:this._initialValue)},u.prototype.shouldCopyValues=function(){return!1},u.prototype._resolve=function(g){this._promise._resolveCallback(g),this._values=null},u.prototype._resultCancelled=function(g){if(g===this._initialValue)return this._cancel();if(this._isResolved())return;if(this._resultCancelled$(),this._currentCancellable instanceof e)this._currentCancellable.cancel();if(this._initialValue instanceof e)this._initialValue.cancel()},u.prototype._iterate=function(g){this._values=g;var y,v,b=g.length;if(this._initialValue!==void 0)y=this._initialValue,v=0;else y=e.resolve(g[0]),v=1;if(this._currentCancellable=y,!y.isRejected())for(;v<b;++v){var _={accum:null,value:g[v],index:v,length:b,array:this};y=y._then(h,void 0,void 0,_,void 0)}if(this._eachValues!==void 0)y=y._then(this._eachComplete,void 0,void 0,this,void 0);y._then(d,d,void 0,y,this)},e.prototype.reduce=function(g,y){return f(this,g,y,null)},e.reduce=function(g,y,v,b){return f(g,y,v,b)};function d(g,y){if(this.isFulfilled())y._resolve(g);else y._reject(g)}function f(g,y,v,b){if(typeof y!=="function")return n("expecting a function but got "+a.classString(y));var _=new u(g,y,v,b);return _.promise()}function h(g){this.accum=g,this.array._gotAccum(g);var y=r(this.value,this.array._promise);if(y instanceof e)return this.array._currentCancellable=y,y._then(p,void 0,void 0,this,void 0);else return p.call(this,y)}function p(g){var y=this.array,v=y._promise,b=c(y._fn);v._pushContext();var _;if(y._eachValues!==void 0)_=b.call(v._boundValue(),g,this.index,this.length);else _=b.call(v._boundValue(),this.accum,g,this.index,this.length);if(_ instanceof e)y._currentCancellable=_;var m=v._popContext();return o.checkForgottenReturns(_,m,y._eachValues!==void 0?"Promise.each":"Promise.reduce",v),_}}});var fE=R(function(mge,dE){dE.exports=function(e,t,n){var r=e.PromiseInspection,i=we();function o(s){this.constructor$(s)}i.inherits(o,t),o.prototype._promiseResolved=function(s,a){this._values[s]=a;var c=++this._totalResolved;if(c>=this._length)return this._resolve(this._values),!0;return!1},o.prototype._promiseFulfilled=function(s,a){var c=new r;return c._bitField=33554432,c._settledValueField=s,this._promiseResolved(a,c)},o.prototype._promiseRejected=function(s,a){var c=new r;return c._bitField=16777216,c._settledValueField=s,this._promiseResolved(a,c)},e.settle=function(s){return n.deprecated(".settle()",".reflect()"),new o(s).promise()},e.prototype.settle=function(){return e.settle(this)}}});var pE=R(function(yge,hE){hE.exports=function(e,t,n){var r=we(),i=Vn().RangeError,o=Vn().AggregateError,s=r.isArray,a={};function c(d){this.constructor$(d),this._howMany=0,this._unwrap=!1,this._initialized=!1}r.inherits(c,t),c.prototype._init=function(){if(!this._initialized)return;if(this._howMany===0){this._resolve([]);return}this._init$(void 0,-5);var d=s(this._values);if(!this._isResolved()&&d&&this._howMany>this._canPossiblyFulfill())this._reject(this._getRangeError(this.length()))},c.prototype.init=function(){this._initialized=!0,this._init()},c.prototype.setUnwrap=function(){this._unwrap=!0},c.prototype.howMany=function(){return this._howMany},c.prototype.setHowMany=function(d){this._howMany=d},c.prototype._promiseFulfilled=function(d){if(this._addFulfilled(d),this._fulfilled()===this.howMany()){if(this._values.length=this.howMany(),this.howMany()===1&&this._unwrap)this._resolve(this._values[0]);else this._resolve(this._values);return!0}return!1},c.prototype._promiseRejected=function(d){return this._addRejected(d),this._checkOutcome()},c.prototype._promiseCancelled=function(){if(this._values instanceof e||this._values==null)return this._cancel();return this._addRejected(a),this._checkOutcome()},c.prototype._checkOutcome=function(){if(this.howMany()>this._canPossiblyFulfill()){var d=new o;for(var f=this.length();f<this._values.length;++f)if(this._values[f]!==a)d.push(this._values[f]);if(d.length>0)this._reject(d);else this._cancel();return!0}return!1},c.prototype._fulfilled=function(){return this._totalResolved},c.prototype._rejected=function(){return this._values.length-this.length()},c.prototype._addRejected=function(d){this._values.push(d)},c.prototype._addFulfilled=function(d){this._values[this._totalResolved++]=d},c.prototype._canPossiblyFulfill=function(){return this.length()-this._rejected()},c.prototype._getRangeError=function(d){var f="Input array must contain at least "+this._howMany+" items but contains only "+d+" items";return new i(f)},c.prototype._resolveEmptyArray=function(){this._reject(this._getRangeError(0))};function u(d,f){if((f|0)!==f||f<0)return n(`expecting a positive integer
188
+ `);else if(g instanceof e)p=g._then(e.props,void 0,void 0,void 0,void 0);else p=new d(g).promise();if(g instanceof e)p._propagateFrom(g,2);return p}e.prototype.props=function(){return f(this)},e.props=function(h){return f(h)}}});var cE=R(function(mge,aE){aE.exports=function(e,t,n,r){var i=we(),o=function(a){return a.then(function(c){return s(c,a)})};function s(a,c){var u=n(a);if(u instanceof e)return o(u);else if(a=i.asArray(a),a===null)return r("expecting an array or an iterable object but got "+i.classString(a));var d=new e(t);if(c!==void 0)d._propagateFrom(c,3);var{_fulfill:f,_reject:h}=d;for(var p=0,g=a.length;p<g;++p){var y=a[p];if(y===void 0&&!(p in a))continue;e.cast(y)._then(f,h,void 0,d,null)}return d}e.race=function(a){return s(a,void 0)},e.prototype.race=function(){return s(this,void 0)}}});var lE=R(function(yge,uE){uE.exports=function(e,t,n,r,i,o){var s=e._getDomain,a=we(),c=a.tryCatch;function u(g,y,v,b){this.constructor$(g);var _=s();if(this._fn=_===null?y:a.domainBind(_,y),v!==void 0)v=e.resolve(v),v._attachCancellationCallback(this);if(this._initialValue=v,this._currentCancellable=null,b===i)this._eachValues=Array(this._length);else if(b===0)this._eachValues=null;else this._eachValues=void 0;this._promise._captureStackTrace(),this._init$(void 0,-5)}a.inherits(u,t),u.prototype._gotAccum=function(g){if(this._eachValues!==void 0&&this._eachValues!==null&&g!==i)this._eachValues.push(g)},u.prototype._eachComplete=function(g){if(this._eachValues!==null)this._eachValues.push(g);return this._eachValues},u.prototype._init=function(){},u.prototype._resolveEmptyArray=function(){this._resolve(this._eachValues!==void 0?this._eachValues:this._initialValue)},u.prototype.shouldCopyValues=function(){return!1},u.prototype._resolve=function(g){this._promise._resolveCallback(g),this._values=null},u.prototype._resultCancelled=function(g){if(g===this._initialValue)return this._cancel();if(this._isResolved())return;if(this._resultCancelled$(),this._currentCancellable instanceof e)this._currentCancellable.cancel();if(this._initialValue instanceof e)this._initialValue.cancel()},u.prototype._iterate=function(g){this._values=g;var y,v,b=g.length;if(this._initialValue!==void 0)y=this._initialValue,v=0;else y=e.resolve(g[0]),v=1;if(this._currentCancellable=y,!y.isRejected())for(;v<b;++v){var _={accum:null,value:g[v],index:v,length:b,array:this};y=y._then(h,void 0,void 0,_,void 0)}if(this._eachValues!==void 0)y=y._then(this._eachComplete,void 0,void 0,this,void 0);y._then(d,d,void 0,y,this)},e.prototype.reduce=function(g,y){return f(this,g,y,null)},e.reduce=function(g,y,v,b){return f(g,y,v,b)};function d(g,y){if(this.isFulfilled())y._resolve(g);else y._reject(g)}function f(g,y,v,b){if(typeof y!=="function")return n("expecting a function but got "+a.classString(y));var _=new u(g,y,v,b);return _.promise()}function h(g){this.accum=g,this.array._gotAccum(g);var y=r(this.value,this.array._promise);if(y instanceof e)return this.array._currentCancellable=y,y._then(p,void 0,void 0,this,void 0);else return p.call(this,y)}function p(g){var y=this.array,v=y._promise,b=c(y._fn);v._pushContext();var _;if(y._eachValues!==void 0)_=b.call(v._boundValue(),g,this.index,this.length);else _=b.call(v._boundValue(),this.accum,g,this.index,this.length);if(_ instanceof e)y._currentCancellable=_;var m=v._popContext();return o.checkForgottenReturns(_,m,y._eachValues!==void 0?"Promise.each":"Promise.reduce",v),_}}});var fE=R(function(bge,dE){dE.exports=function(e,t,n){var r=e.PromiseInspection,i=we();function o(s){this.constructor$(s)}i.inherits(o,t),o.prototype._promiseResolved=function(s,a){this._values[s]=a;var c=++this._totalResolved;if(c>=this._length)return this._resolve(this._values),!0;return!1},o.prototype._promiseFulfilled=function(s,a){var c=new r;return c._bitField=33554432,c._settledValueField=s,this._promiseResolved(a,c)},o.prototype._promiseRejected=function(s,a){var c=new r;return c._bitField=16777216,c._settledValueField=s,this._promiseResolved(a,c)},e.settle=function(s){return n.deprecated(".settle()",".reflect()"),new o(s).promise()},e.prototype.settle=function(){return e.settle(this)}}});var pE=R(function(vge,hE){hE.exports=function(e,t,n){var r=we(),i=Vn().RangeError,o=Vn().AggregateError,s=r.isArray,a={};function c(d){this.constructor$(d),this._howMany=0,this._unwrap=!1,this._initialized=!1}r.inherits(c,t),c.prototype._init=function(){if(!this._initialized)return;if(this._howMany===0){this._resolve([]);return}this._init$(void 0,-5);var d=s(this._values);if(!this._isResolved()&&d&&this._howMany>this._canPossiblyFulfill())this._reject(this._getRangeError(this.length()))},c.prototype.init=function(){this._initialized=!0,this._init()},c.prototype.setUnwrap=function(){this._unwrap=!0},c.prototype.howMany=function(){return this._howMany},c.prototype.setHowMany=function(d){this._howMany=d},c.prototype._promiseFulfilled=function(d){if(this._addFulfilled(d),this._fulfilled()===this.howMany()){if(this._values.length=this.howMany(),this.howMany()===1&&this._unwrap)this._resolve(this._values[0]);else this._resolve(this._values);return!0}return!1},c.prototype._promiseRejected=function(d){return this._addRejected(d),this._checkOutcome()},c.prototype._promiseCancelled=function(){if(this._values instanceof e||this._values==null)return this._cancel();return this._addRejected(a),this._checkOutcome()},c.prototype._checkOutcome=function(){if(this.howMany()>this._canPossiblyFulfill()){var d=new o;for(var f=this.length();f<this._values.length;++f)if(this._values[f]!==a)d.push(this._values[f]);if(d.length>0)this._reject(d);else this._cancel();return!0}return!1},c.prototype._fulfilled=function(){return this._totalResolved},c.prototype._rejected=function(){return this._values.length-this.length()},c.prototype._addRejected=function(d){this._values.push(d)},c.prototype._addFulfilled=function(d){this._values[this._totalResolved++]=d},c.prototype._canPossiblyFulfill=function(){return this.length()-this._rejected()},c.prototype._getRangeError=function(d){var f="Input array must contain at least "+this._howMany+" items but contains only "+d+" items";return new i(f)},c.prototype._resolveEmptyArray=function(){this._reject(this._getRangeError(0))};function u(d,f){if((f|0)!==f||f<0)return n(`expecting a positive integer
189
189
 
190
190
  See http://goo.gl/MqrFmX
191
- `);var h=new c(d),p=h.promise();return h.setHowMany(f),h.init(),p}e.some=function(d,f){return u(d,f)},e.prototype.some=function(d){return u(this,d)},e._SomePromiseArray=c}});var mE=R(function(bge,gE){gE.exports=function(e,t){var n=e.map;e.prototype.filter=function(r,i){return n(this,r,i,t)},e.filter=function(r,i,o){return n(r,i,o,t)}}});var bE=R(function(vge,yE){yE.exports=function(e,t){var{reduce:n,all:r}=e;function i(){return r(this)}function o(s,a){return n(s,a,t,t)}e.prototype.each=function(s){return n(this,s,t,0)._then(i,void 0,void 0,this,void 0)},e.prototype.mapSeries=function(s){return n(this,s,t,t)},e.each=function(s,a){return n(s,a,t,0)._then(i,void 0,void 0,s,void 0)},e.mapSeries=o}});var xE=R(function(xge,vE){vE.exports=function(e){var t=e._SomePromiseArray;function n(r){var i=new t(r),o=i.promise();return i.setHowMany(1),i.setUnwrap(),i.init(),o}e.any=function(r){return n(r)},e.prototype.any=function(){return n(this)}}});var _E=R(function(_ge,Mg){Mg.exports=function(){var e=function(){return new f(`circular promise resolution chain
191
+ `);var h=new c(d),p=h.promise();return h.setHowMany(f),h.init(),p}e.some=function(d,f){return u(d,f)},e.prototype.some=function(d){return u(this,d)},e._SomePromiseArray=c}});var mE=R(function(xge,gE){gE.exports=function(e,t){var n=e.map;e.prototype.filter=function(r,i){return n(this,r,i,t)},e.filter=function(r,i,o){return n(r,i,o,t)}}});var bE=R(function(_ge,yE){yE.exports=function(e,t){var{reduce:n,all:r}=e;function i(){return r(this)}function o(s,a){return n(s,a,t,t)}e.prototype.each=function(s){return n(this,s,t,0)._then(i,void 0,void 0,this,void 0)},e.prototype.mapSeries=function(s){return n(this,s,t,t)},e.each=function(s,a){return n(s,a,t,0)._then(i,void 0,void 0,s,void 0)},e.mapSeries=o}});var xE=R(function(wge,vE){vE.exports=function(e){var t=e._SomePromiseArray;function n(r){var i=new t(r),o=i.promise();return i.setHowMany(1),i.setUnwrap(),i.init(),o}e.any=function(r){return n(r)},e.prototype.any=function(){return n(this)}}});var _E=R(function(Dge,Mg){Mg.exports=function(){var e=function(){return new f(`circular promise resolution chain
192
192
 
193
193
  See http://goo.gl/MqrFmX
194
194
  `)},t=function(){return new S.PromiseInspection(this._target())},n=function(T){return S.reject(new f(T))};function r(){}var i={},o=we(),s;if(o.isNode)s=function(){var T=process.domain;if(T===void 0)T=null;return T};else s=function(){return null};o.notEnumerableProp(S,"_getDomain",s);var a=wi(),c=pD(),u=new c;a.defineProperty(S,"_async",{value:u});var d=Vn(),f=S.TypeError=d.TypeError;S.RangeError=d.RangeError;var h=S.CancellationError=d.CancellationError;S.TimeoutError=d.TimeoutError,S.OperationalError=d.OperationalError,S.RejectionError=d.OperationalError,S.AggregateError=d.AggregateError;var p=function(){},g={},y={},v=vD()(S,p),b=_D()(S,p,v,n,r),_=DD()(S),m=_.create,x=TD()(S,_),D=x.CapturedTrace,A=CD()(S,v),E=UD()(y),U=Pg(),C=o.errorObj,N=o.tryCatch;function F(T,O){if(typeof O!=="function")throw new f("expecting a function but got "+o.classString(O));if(T.constructor!==S)throw new f(`the promise constructor cannot be invoked directly
195
195
 
196
196
  See http://goo.gl/MqrFmX
197
- `)}function S(T){if(this._bitField=0,this._fulfillmentHandler0=void 0,this._rejectionHandler0=void 0,this._promise0=void 0,this._receiver0=void 0,T!==p)F(this,T),this._resolveFromExecutor(T);this._promiseCreated(),this._fireEvent("promiseCreated",this)}S.prototype.toString=function(){return"[object Promise]"},S.prototype.caught=S.prototype.catch=function(T){var O=arguments.length;if(O>1){var k=Array(O-1),P=0,W;for(W=0;W<O-1;++W){var q=arguments[W];if(o.isObject(q))k[P++]=q;else return n("expecting an object but got A catch statement predicate "+o.classString(q))}return k.length=P,T=arguments[W],this.then(void 0,E(k,T,this))}return this.then(void 0,T)},S.prototype.reflect=function(){return this._then(t,t,void 0,this,void 0)},S.prototype.then=function(T,O){if(x.warnings()&&arguments.length>0&&typeof T!=="function"&&typeof O!=="function"){var k=".then() only accepts functions but was passed: "+o.classString(T);if(arguments.length>1)k+=", "+o.classString(O);this._warn(k)}return this._then(T,O,void 0,void 0,void 0)},S.prototype.done=function(T,O){var k=this._then(T,O,void 0,void 0,void 0);k._setIsFinal()},S.prototype.spread=function(T){if(typeof T!=="function")return n("expecting a function but got "+o.classString(T));return this.all()._then(T,void 0,void 0,g,void 0)},S.prototype.toJSON=function(){var T={isFulfilled:!1,isRejected:!1,fulfillmentValue:void 0,rejectionReason:void 0};if(this.isFulfilled())T.fulfillmentValue=this.value(),T.isFulfilled=!0;else if(this.isRejected())T.rejectionReason=this.reason(),T.isRejected=!0;return T},S.prototype.all=function(){if(arguments.length>0)this._warn(".all() was passed arguments but it does not take any");return new b(this).promise()},S.prototype.error=function(T){return this.caught(o.originatesFromRejection,T)},S.getNewLibraryCopy=Mg.exports,S.is=function(T){return T instanceof S},S.fromNode=S.fromCallback=function(T){var O=new S(p);O._captureStackTrace();var k=arguments.length>1?!!Object(arguments[1]).multiArgs:!1,P=N(T)(U(O,k));if(P===C)O._rejectCallback(P.e,!0);if(!O._isFateSealed())O._setAsyncGuaranteed();return O},S.all=function(T){return new b(T).promise()},S.cast=function(T){var O=v(T);if(!(O instanceof S))O=new S(p),O._captureStackTrace(),O._setFulfilled(),O._rejectionHandler0=T;return O},S.resolve=S.fulfilled=S.cast,S.reject=S.rejected=function(T){var O=new S(p);return O._captureStackTrace(),O._rejectCallback(T,!0),O},S.setScheduler=function(T){if(typeof T!=="function")throw new f("expecting a function but got "+o.classString(T));return u.setScheduler(T)},S.prototype._then=function(T,O,k,P,W){var q=W!==void 0,K=q?W:new S(p),J=this._target(),de=J._bitField;if(!q){if(K._propagateFrom(this,3),K._captureStackTrace(),P===void 0&&(this._bitField&2097152)!==0)if((de&50397184)!==0)P=this._boundValue();else P=J===this?void 0:this._boundTo;this._fireEvent("promiseChained",this,K)}var Ae=s();if((de&50397184)!==0){var xe,ot,pn=J._settlePromiseCtx;if((de&33554432)!==0)ot=J._rejectionHandler0,xe=T;else if((de&16777216)!==0)ot=J._fulfillmentHandler0,xe=O,J._unsetRejectionIsUnhandled();else pn=J._settlePromiseLateCancellationObserver,ot=new h("late cancellation observer"),J._attachExtraTrace(ot),xe=O;u.invoke(pn,J,{handler:Ae===null?xe:typeof xe==="function"&&o.domainBind(Ae,xe),promise:K,receiver:P,value:ot})}else J._addCallbacks(T,O,K,P,Ae);return K},S.prototype._length=function(){return this._bitField&65535},S.prototype._isFateSealed=function(){return(this._bitField&117506048)!==0},S.prototype._isFollowing=function(){return(this._bitField&67108864)===67108864},S.prototype._setLength=function(T){this._bitField=this._bitField&-65536|T&65535},S.prototype._setFulfilled=function(){this._bitField=this._bitField|33554432,this._fireEvent("promiseFulfilled",this)},S.prototype._setRejected=function(){this._bitField=this._bitField|16777216,this._fireEvent("promiseRejected",this)},S.prototype._setFollowing=function(){this._bitField=this._bitField|67108864,this._fireEvent("promiseResolved",this)},S.prototype._setIsFinal=function(){this._bitField=this._bitField|4194304},S.prototype._isFinal=function(){return(this._bitField&4194304)>0},S.prototype._unsetCancelled=function(){this._bitField=this._bitField&-65537},S.prototype._setCancelled=function(){this._bitField=this._bitField|65536,this._fireEvent("promiseCancelled",this)},S.prototype._setWillBeCancelled=function(){this._bitField=this._bitField|8388608},S.prototype._setAsyncGuaranteed=function(){if(u.hasCustomScheduler())return;this._bitField=this._bitField|134217728},S.prototype._receiverAt=function(T){var O=T===0?this._receiver0:this[T*4-4+3];if(O===i)return;else if(O===void 0&&this._isBound())return this._boundValue();return O},S.prototype._promiseAt=function(T){return this[T*4-4+2]},S.prototype._fulfillmentHandlerAt=function(T){return this[T*4-4+0]},S.prototype._rejectionHandlerAt=function(T){return this[T*4-4+1]},S.prototype._boundValue=function(){},S.prototype._migrateCallback0=function(T){var{_bitField:O,_fulfillmentHandler0:k,_rejectionHandler0:P,_promise0:W}=T,q=T._receiverAt(0);if(q===void 0)q=i;this._addCallbacks(k,P,W,q,null)},S.prototype._migrateCallbackAt=function(T,O){var k=T._fulfillmentHandlerAt(O),P=T._rejectionHandlerAt(O),W=T._promiseAt(O),q=T._receiverAt(O);if(q===void 0)q=i;this._addCallbacks(k,P,W,q,null)},S.prototype._addCallbacks=function(T,O,k,P,W){var q=this._length();if(q>=65531)q=0,this._setLength(0);if(q===0){if(this._promise0=k,this._receiver0=P,typeof T==="function")this._fulfillmentHandler0=W===null?T:o.domainBind(W,T);if(typeof O==="function")this._rejectionHandler0=W===null?O:o.domainBind(W,O)}else{var K=q*4-4;if(this[K+2]=k,this[K+3]=P,typeof T==="function")this[K+0]=W===null?T:o.domainBind(W,T);if(typeof O==="function")this[K+1]=W===null?O:o.domainBind(W,O)}return this._setLength(q+1),q},S.prototype._proxy=function(T,O){this._addCallbacks(void 0,void 0,O,T,null)},S.prototype._resolveCallback=function(T,O){if((this._bitField&117506048)!==0)return;if(T===this)return this._rejectCallback(e(),!1);var k=v(T,this);if(!(k instanceof S))return this._fulfill(T);if(O)this._propagateFrom(k,2);var P=k._target();if(P===this){this._reject(e());return}var W=P._bitField;if((W&50397184)===0){var q=this._length();if(q>0)P._migrateCallback0(this);for(var K=1;K<q;++K)P._migrateCallbackAt(this,K);this._setFollowing(),this._setLength(0),this._setFollowee(P)}else if((W&33554432)!==0)this._fulfill(P._value());else if((W&16777216)!==0)this._reject(P._reason());else{var J=new h("late cancellation observer");P._attachExtraTrace(J),this._reject(J)}},S.prototype._rejectCallback=function(T,O,k){var P=o.ensureErrorObject(T),W=P===T;if(!W&&!k&&x.warnings()){var q="a promise was rejected with a non-error: "+o.classString(T);this._warn(q,!0)}this._attachExtraTrace(P,O?W:!1),this._reject(T)},S.prototype._resolveFromExecutor=function(T){var O=this;this._captureStackTrace(),this._pushContext();var k=!0,P=this._execute(T,function(W){O._resolveCallback(W)},function(W){O._rejectCallback(W,k)});if(k=!1,this._popContext(),P!==void 0)O._rejectCallback(P,!0)},S.prototype._settlePromiseFromHandler=function(T,O,k,P){var W=P._bitField;if((W&65536)!==0)return;P._pushContext();var q;if(O===g)if(!k||typeof k.length!=="number")q=C,q.e=new f("cannot .spread() a non-array: "+o.classString(k));else q=N(T).apply(this._boundValue(),k);else q=N(T).call(O,k);var K=P._popContext();if(W=P._bitField,(W&65536)!==0)return;if(q===y)P._reject(k);else if(q===C)P._rejectCallback(q.e,!1);else x.checkForgottenReturns(q,K,"",P,this),P._resolveCallback(q)},S.prototype._target=function(){var T=this;while(T._isFollowing())T=T._followee();return T},S.prototype._followee=function(){return this._rejectionHandler0},S.prototype._setFollowee=function(T){this._rejectionHandler0=T},S.prototype._settlePromise=function(T,O,k,P){var W=T instanceof S,q=this._bitField,K=(q&134217728)!==0;if((q&65536)!==0){if(W)T._invokeInternalOnCancel();if(k instanceof A&&k.isFinallyHandler()){if(k.cancelPromise=T,N(O).call(k,P)===C)T._reject(C.e)}else if(O===t)T._fulfill(t.call(k));else if(k instanceof r)k._promiseCancelled(T);else if(W||T instanceof b)T._cancel();else k.cancel()}else if(typeof O==="function")if(!W)O.call(k,P,T);else{if(K)T._setAsyncGuaranteed();this._settlePromiseFromHandler(O,k,P,T)}else if(k instanceof r){if(!k._isResolved())if((q&33554432)!==0)k._promiseFulfilled(P,T);else k._promiseRejected(P,T)}else if(W){if(K)T._setAsyncGuaranteed();if((q&33554432)!==0)T._fulfill(P);else T._reject(P)}},S.prototype._settlePromiseLateCancellationObserver=function(T){var{handler:O,promise:k,receiver:P,value:W}=T;if(typeof O==="function")if(!(k instanceof S))O.call(P,W,k);else this._settlePromiseFromHandler(O,P,W,k);else if(k instanceof S)k._reject(W)},S.prototype._settlePromiseCtx=function(T){this._settlePromise(T.promise,T.handler,T.receiver,T.value)},S.prototype._settlePromise0=function(T,O,k){var P=this._promise0,W=this._receiverAt(0);this._promise0=void 0,this._receiver0=void 0,this._settlePromise(P,T,W,O)},S.prototype._clearCallbackDataAtIndex=function(T){var O=T*4-4;this[O+2]=this[O+3]=this[O+0]=this[O+1]=void 0},S.prototype._fulfill=function(T){var O=this._bitField;if((O&117506048)>>>16)return;if(T===this){var k=e();return this._attachExtraTrace(k),this._reject(k)}if(this._setFulfilled(),this._rejectionHandler0=T,(O&65535)>0)if((O&134217728)!==0)this._settlePromises();else u.settlePromises(this)},S.prototype._reject=function(T){var O=this._bitField;if((O&117506048)>>>16)return;if(this._setRejected(),this._fulfillmentHandler0=T,this._isFinal())return u.fatalError(T,o.isNode);if((O&65535)>0)u.settlePromises(this);else this._ensurePossibleRejectionHandled()},S.prototype._fulfillPromises=function(T,O){for(var k=1;k<T;k++){var P=this._fulfillmentHandlerAt(k),W=this._promiseAt(k),q=this._receiverAt(k);this._clearCallbackDataAtIndex(k),this._settlePromise(W,P,q,O)}},S.prototype._rejectPromises=function(T,O){for(var k=1;k<T;k++){var P=this._rejectionHandlerAt(k),W=this._promiseAt(k),q=this._receiverAt(k);this._clearCallbackDataAtIndex(k),this._settlePromise(W,P,q,O)}},S.prototype._settlePromises=function(){var T=this._bitField,O=T&65535;if(O>0){if((T&16842752)!==0){var k=this._fulfillmentHandler0;this._settlePromise0(this._rejectionHandler0,k,T),this._rejectPromises(O,k)}else{var P=this._rejectionHandler0;this._settlePromise0(this._fulfillmentHandler0,P,T),this._fulfillPromises(O,P)}this._setLength(0)}this._clearCancellationData()},S.prototype._settledValue=function(){var T=this._bitField;if((T&33554432)!==0)return this._rejectionHandler0;else if((T&16777216)!==0)return this._fulfillmentHandler0};function B(T){this.promise._resolveCallback(T)}function j(T){this.promise._rejectCallback(T,!1)}S.defer=S.pending=function(){x.deprecated("Promise.defer","new Promise");var T=new S(p);return{promise:T,resolve:B,reject:j}},o.notEnumerableProp(S,"_makeSelfResolutionError",e),PD()(S,p,v,n,x),MD()(S,p,v,x),BD()(S,b,n,x),WD()(S),qD()(S),HD()(S,b,v,p,u,s),S.Promise=S,S.version="3.4.7",zD()(S,b,n,v,p,x),XD()(S),ZD()(S,n,v,m,p,x),JD()(S,p,x),eE()(S,n,p,v,r,x),nE()(S),iE()(S,p),sE()(S,b,v,n),cE()(S,p,v,n),lE()(S,b,n,v,p,x),fE()(S,b,x),pE()(S,b,n),mE()(S,p),bE()(S,p),xE()(S),o.toFastProperties(S),o.toFastProperties(S.prototype);function G(T){var O=new S(p);O._fulfillmentHandler0=T,O._rejectionHandler0=T,O._promise0=T,O._receiver0=T}return G({a:1}),G({b:2}),G({c:3}),G(1),G(function(){}),G(void 0),G(!1),G(new S(p)),x.setBounds(c.firstLineError,o.lastLineError),S}});var Xn=R(function(YL){var KL=Me(),Ct=_E()();YL.defer=ZL;YL.when=Ct.resolve;YL.resolve=Ct.resolve;YL.all=Ct.all;YL.props=Ct.props;YL.reject=Ct.reject;YL.promisify=Ct.promisify;YL.mapSeries=Ct.mapSeries;YL.attempt=Ct.attempt;YL.nfcall=function(e){var t=Array.prototype.slice.call(arguments,1),n=Ct.promisify(e);return n.apply(null,t)};Ct.prototype.fail=Ct.prototype.caught;Ct.prototype.also=function(e){return this.then(function(t){var n=KL.extend({},t,e(t));return Ct.props(n)})};function ZL(){var e,t,n=new Ct.Promise(function(r,i){e=r,t=i});return{resolve:e,reject:t,promise:n}}});var Br=R(function(TW){var cW=Me(),tt=TW.types={document:"document",paragraph:"paragraph",run:"run",text:"text",tab:"tab",checkbox:"checkbox",hyperlink:"hyperlink",noteReference:"noteReference",image:"image",note:"note",commentReference:"commentReference",comment:"comment",table:"table",tableRow:"tableRow",tableCell:"tableCell",break:"break",bookmarkStart:"bookmarkStart"};function uW(e,t){return t=t||{},{type:tt.document,children:e,notes:t.notes||new gl({}),comments:t.comments||[]}}function lW(e,t){t=t||{};var n=t.indent||{};return{type:tt.paragraph,children:e,styleId:t.styleId||null,styleName:t.styleName||null,numbering:t.numbering||null,alignment:t.alignment||null,indent:{start:n.start||null,end:n.end||null,firstLine:n.firstLine||null,hanging:n.hanging||null}}}function dW(e,t){return t=t||{},{type:tt.run,children:e,styleId:t.styleId||null,styleName:t.styleName||null,isBold:!!t.isBold,isUnderline:!!t.isUnderline,isItalic:!!t.isItalic,isStrikethrough:!!t.isStrikethrough,isAllCaps:!!t.isAllCaps,isSmallCaps:!!t.isSmallCaps,verticalAlignment:t.verticalAlignment||wE.baseline,font:t.font||null,fontSize:t.fontSize||null,highlight:t.highlight||null}}var wE={baseline:"baseline",superscript:"superscript",subscript:"subscript"};function fW(e){return{type:tt.text,value:e}}function hW(){return{type:tt.tab}}function pW(e){return{type:tt.checkbox,checked:e.checked}}function gW(e,t){return{type:tt.hyperlink,children:e,href:t.href,anchor:t.anchor,targetFrame:t.targetFrame}}function mW(e){return{type:tt.noteReference,noteType:e.noteType,noteId:e.noteId}}function gl(e){this._notes=cW.indexBy(e,function(t){return DE(t.noteType,t.noteId)})}gl.prototype.resolve=function(e){return this.findNoteByKey(DE(e.noteType,e.noteId))};gl.prototype.findNoteByKey=function(e){return this._notes[e]||null};function yW(e){return{type:tt.note,noteType:e.noteType,noteId:e.noteId,body:e.body}}function bW(e){return{type:tt.commentReference,commentId:e.commentId}}function vW(e){return{type:tt.comment,commentId:e.commentId,body:e.body,authorName:e.authorName,authorInitials:e.authorInitials}}function DE(e,t){return e+"-"+t}function xW(e){return{type:tt.image,read:function(t){if(t)return e.readImage(t);else return e.readImage().then(function(n){return Buffer.from(n)})},readAsArrayBuffer:function(){return e.readImage()},readAsBase64String:function(){return e.readImage("base64")},readAsBuffer:function(){return e.readImage().then(function(t){return Buffer.from(t)})},altText:e.altText,contentType:e.contentType}}function _W(e,t){return t=t||{},{type:tt.table,children:e,styleId:t.styleId||null,styleName:t.styleName||null}}function wW(e,t){return t=t||{},{type:tt.tableRow,children:e,isHeader:t.isHeader||!1}}function DW(e,t){return t=t||{},{type:tt.tableCell,children:e,colSpan:t.colSpan==null?1:t.colSpan,rowSpan:t.rowSpan==null?1:t.rowSpan}}function Ng(e){return{type:tt.break,breakType:e}}function EW(e){return{type:tt.bookmarkStart,name:e.name}}TW.document=TW.Document=uW;TW.paragraph=TW.Paragraph=lW;TW.run=TW.Run=dW;TW.text=TW.Text=fW;TW.tab=TW.Tab=hW;TW.checkbox=TW.Checkbox=pW;TW.Hyperlink=gW;TW.noteReference=TW.NoteReference=mW;TW.Notes=gl;TW.Note=yW;TW.commentReference=bW;TW.comment=vW;TW.Image=xW;TW.Table=_W;TW.TableRow=wW;TW.TableCell=DW;TW.lineBreak=Ng("line");TW.pageBreak=Ng("page");TW.columnBreak=Ng("column");TW.BookmarkStart=EW;TW.verticalAlignment=wE});var wn=R(function(JW){var ra=Me();JW.Result=_n;JW.success=VW;JW.warning=XW;JW.error=KW;function _n(e,t){this.value=e,this.messages=t||[]}_n.prototype.map=function(e){return new _n(e(this.value),this.messages)};_n.prototype.flatMap=function(e){var t=e(this.value);return new _n(t.value,Bg([this,t]))};_n.prototype.flatMapThen=function(e){var t=this;return e(this.value).then(function(n){return new _n(n.value,Bg([t,n]))})};_n.combine=function(e){var t=ra.flatten(ra.pluck(e,"value")),n=Bg(e);return new _n(t,n)};function VW(e){return new _n(e,[])}function XW(e){return{type:"warning",message:e}}function KW(e){return{type:"error",message:e.message,error:e}}function Bg(e){var t=[];return ra.flatten(ra.pluck(e,"messages"),!0).forEach(function(n){if(!ZW(t,n))t.push(n)}),t}function ZW(e,t){return ra.find(e,YW.bind(null,t))!==void 0}function YW(e,t){return e.type===t.type&&e.message===t.message}});var TE=R(function(l7){l7.byteLength=i7;l7.toByteArray=s7;l7.fromByteArray=u7;var Dn=[],$t=[],r7=typeof Uint8Array<"u"?Uint8Array:Array,Lg="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(Lr=0,Wg=Lg.length;Lr<Wg;++Lr)Dn[Lr]=Lg[Lr],$t[Lg.charCodeAt(Lr)]=Lr;var Lr,Wg;$t[45]=62;$t[95]=63;function EE(e){var t=e.length;if(t%4>0)throw Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");if(n===-1)n=t;var r=n===t?0:4-n%4;return[n,r]}function i7(e){var t=EE(e),n=t[0],r=t[1];return(n+r)*3/4-r}function o7(e,t,n){return(t+n)*3/4-n}function s7(e){var t,n=EE(e),r=n[0],i=n[1],o=new r7(o7(e,r,i)),s=0,a=i>0?r-4:r,c;for(c=0;c<a;c+=4)t=$t[e.charCodeAt(c)]<<18|$t[e.charCodeAt(c+1)]<<12|$t[e.charCodeAt(c+2)]<<6|$t[e.charCodeAt(c+3)],o[s++]=t>>16&255,o[s++]=t>>8&255,o[s++]=t&255;if(i===2)t=$t[e.charCodeAt(c)]<<2|$t[e.charCodeAt(c+1)]>>4,o[s++]=t&255;if(i===1)t=$t[e.charCodeAt(c)]<<10|$t[e.charCodeAt(c+1)]<<4|$t[e.charCodeAt(c+2)]>>2,o[s++]=t>>8&255,o[s++]=t&255;return o}function a7(e){return Dn[e>>18&63]+Dn[e>>12&63]+Dn[e>>6&63]+Dn[e&63]}function c7(e,t,n){var r,i=[];for(var o=t;o<n;o+=3)r=(e[o]<<16&16711680)+(e[o+1]<<8&65280)+(e[o+2]&255),i.push(a7(r));return i.join("")}function u7(e){var t,n=e.length,r=n%3,i=[],o=16383;for(var s=0,a=n-r;s<a;s+=o)i.push(c7(e,s,s+o>a?a:s+o));if(r===1)t=e[n-1],i.push(Dn[t>>2]+Dn[t<<4&63]+"==");else if(r===2)t=(e[n-2]<<8)+e[n-1],i.push(Dn[t>>10]+Dn[t>>4&63]+Dn[t<<2&63]+"=");return i.join("")}});var ia=R(function(Pge,jg){if(typeof process>"u"||!process.version||process.version.indexOf("v0.")===0||process.version.indexOf("v1.")===0&&process.version.indexOf("v1.8.")!==0)jg.exports={nextTick:p7};else jg.exports=process;function p7(e,t,n,r){if(typeof e!=="function")throw TypeError('"callback" argument must be a function');var i=arguments.length,o,s;switch(i){case 0:case 1:return process.nextTick(e);case 2:return process.nextTick(function(){e.call(null,t)});case 3:return process.nextTick(function(){e.call(null,t,n)});case 4:return process.nextTick(function(){e.call(null,t,n,r)});default:o=Array(i-1),s=0;while(s<o.length)o[s++]=arguments[s];return process.nextTick(function(){e.apply(null,o)})}}});var CE=R(function(Ige,SE){var g7={}.toString;SE.exports=Array.isArray||function(e){return g7.call(e)=="[object Array]"}});var yl=R(function(qg,UE){var ml=re("buffer"),Kn=ml.Buffer;function AE(e,t){for(var n in e)t[n]=e[n]}if(Kn.from&&Kn.alloc&&Kn.allocUnsafe&&Kn.allocUnsafeSlow)UE.exports=ml;else AE(ml,qg),qg.Buffer=_o;function _o(e,t,n){return Kn(e,t,n)}AE(Kn,_o);_o.from=function(e,t,n){if(typeof e==="number")throw TypeError("Argument must not be a number");return Kn(e,t,n)};_o.alloc=function(e,t,n){if(typeof e!=="number")throw TypeError("Argument must be a number");var r=Kn(e);if(t!==void 0)if(typeof n==="string")r.fill(t,n);else r.fill(t);else r.fill(0);return r};_o.allocUnsafe=function(e){if(typeof e!=="number")throw TypeError("Argument must be a number");return Kn(e)};_o.allocUnsafeSlow=function(e){if(typeof e!=="number")throw TypeError("Argument must be a number");return ml.SlowBuffer(e)}});var wo=R(function(k7){function m7(e){if(Array.isArray)return Array.isArray(e);return bl(e)==="[object Array]"}k7.isArray=m7;function y7(e){return typeof e==="boolean"}k7.isBoolean=y7;function b7(e){return e===null}k7.isNull=b7;function v7(e){return e==null}k7.isNullOrUndefined=v7;function x7(e){return typeof e==="number"}k7.isNumber=x7;function _7(e){return typeof e==="string"}k7.isString=_7;function w7(e){return typeof e==="symbol"}k7.isSymbol=w7;function D7(e){return e===void 0}k7.isUndefined=D7;function E7(e){return bl(e)==="[object RegExp]"}k7.isRegExp=E7;function T7(e){return typeof e==="object"&&e!==null}k7.isObject=T7;function S7(e){return bl(e)==="[object Date]"}k7.isDate=S7;function C7(e){return bl(e)==="[object Error]"||e instanceof Error}k7.isError=C7;function A7(e){return typeof e==="function"}k7.isFunction=A7;function U7(e){return e===null||typeof e==="boolean"||typeof e==="number"||typeof e==="string"||typeof e==="symbol"||typeof e>"u"}k7.isPrimitive=U7;k7.isBuffer=re("buffer").Buffer.isBuffer;function bl(e){return Object.prototype.toString.call(e)}});var kE=R(function(Nge,$g){if(typeof Object.create==="function")$g.exports=function(t,n){if(n)t.super_=n,t.prototype=Object.create(n.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}})};else $g.exports=function(t,n){if(n){t.super_=n;var r=function(){};r.prototype=n.prototype,t.prototype=new r,t.prototype.constructor=t}}});var Do=R(function(Bge,Hg){try{if(vl=re("util"),typeof vl.inherits!=="function")throw"";Hg.exports=vl.inherits}catch(e){Hg.exports=kE()}var vl});var FE=R(function(Lge,Gg){function z7(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}var RE=yl().Buffer,oa=re("util");function V7(e,t,n){e.copy(t,n)}Gg.exports=function(){function e(){z7(this,e),this.head=null,this.tail=null,this.length=0}return e.prototype.push=function(n){var r={data:n,next:null};if(this.length>0)this.tail.next=r;else this.head=r;this.tail=r,++this.length},e.prototype.unshift=function(n){var r={data:n,next:this.head};if(this.length===0)this.tail=r;this.head=r,++this.length},e.prototype.shift=function(){if(this.length===0)return;var n=this.head.data;if(this.length===1)this.head=this.tail=null;else this.head=this.head.next;return--this.length,n},e.prototype.clear=function(){this.head=this.tail=null,this.length=0},e.prototype.join=function(n){if(this.length===0)return"";var r=this.head,i=""+r.data;while(r=r.next)i+=n+r.data;return i},e.prototype.concat=function(n){if(this.length===0)return RE.alloc(0);var r=RE.allocUnsafe(n>>>0),i=this.head,o=0;while(i)V7(i.data,r,o),o+=i.data.length,i=i.next;return r},e}();if(oa&&oa.inspect&&oa.inspect.custom)Gg.exports.prototype[oa.inspect.custom]=function(){var e=oa.inspect({length:this.length});return this.constructor.name+" "+e}});var zg=R(function(Wge,OE){var xl=ia();function X7(e,t){var n=this,r=this._readableState&&this._readableState.destroyed,i=this._writableState&&this._writableState.destroyed;if(r||i){if(t)t(e);else if(e){if(!this._writableState)xl.nextTick(_l,this,e);else if(!this._writableState.errorEmitted)this._writableState.errorEmitted=!0,xl.nextTick(_l,this,e)}return this}if(this._readableState)this._readableState.destroyed=!0;if(this._writableState)this._writableState.destroyed=!0;return this._destroy(e||null,function(o){if(!t&&o){if(!n._writableState)xl.nextTick(_l,n,o);else if(!n._writableState.errorEmitted)n._writableState.errorEmitted=!0,xl.nextTick(_l,n,o)}else if(t)t(o)}),this}function K7(){if(this._readableState)this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1;if(this._writableState)this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1}function _l(e,t){e.emit("error",t)}OE.exports={destroy:X7,undestroy:K7}});var IE=R(function(jge,PE){PE.exports=re("util").deprecate});var Xg=R(function(qge,$E){var Si=ia();$E.exports=je;function NE(e){var t=this;this.next=null,this.entry=null,this.finish=function(){hj(t,e)}}var Z7=["v0.10","v0.9."].indexOf(process.version.slice(0,5))>-1?setImmediate:Si.nextTick,Eo;je.WritableState=aa;var BE=Object.create(wo());BE.inherits=Do();var Y7={deprecate:IE()},LE=re("stream"),Dl=yl().Buffer,J7=(typeof global<"u"?global:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function Q7(e){return Dl.from(e)}function ej(e){return Dl.isBuffer(e)||e instanceof J7}var WE=zg();BE.inherits(je,LE);function tj(){}function aa(e,t){Eo=Eo||Ci(),e=e||{};var n=t instanceof Eo;if(this.objectMode=!!e.objectMode,n)this.objectMode=this.objectMode||!!e.writableObjectMode;var{highWaterMark:r,writableHighWaterMark:i}=e,o=this.objectMode?16:16384;if(r||r===0)this.highWaterMark=r;else if(n&&(i||i===0))this.highWaterMark=i;else this.highWaterMark=o;this.highWaterMark=Math.floor(this.highWaterMark),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var s=e.decodeStrings===!1;this.decodeStrings=!s,this.defaultEncoding=e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(a){cj(t,a)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new NE(this)}aa.prototype.getBuffer=function(){var t=this.bufferedRequest,n=[];while(t)n.push(t),t=t.next;return n};(function(){try{Object.defineProperty(aa.prototype,"buffer",{get:Y7.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(e){}})();var wl;if(typeof Symbol==="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]==="function")wl=Function.prototype[Symbol.hasInstance],Object.defineProperty(je,Symbol.hasInstance,{value:function(e){if(wl.call(this,e))return!0;if(this!==je)return!1;return e&&e._writableState instanceof aa}});else wl=function(e){return e instanceof this};function je(e){if(Eo=Eo||Ci(),!wl.call(je,this)&&!(this instanceof Eo))return new je(e);if(this._writableState=new aa(e,this),this.writable=!0,e){if(typeof e.write==="function")this._write=e.write;if(typeof e.writev==="function")this._writev=e.writev;if(typeof e.destroy==="function")this._destroy=e.destroy;if(typeof e.final==="function")this._final=e.final}LE.call(this)}je.prototype.pipe=function(){this.emit("error",Error("Cannot pipe, not readable"))};function nj(e,t){var n=Error("write after end");e.emit("error",n),Si.nextTick(t,n)}function rj(e,t,n,r){var i=!0,o=!1;if(n===null)o=TypeError("May not write null values to stream");else if(typeof n!=="string"&&n!==void 0&&!t.objectMode)o=TypeError("Invalid non-string/buffer chunk");if(o)e.emit("error",o),Si.nextTick(r,o),i=!1;return i}je.prototype.write=function(e,t,n){var r=this._writableState,i=!1,o=!r.objectMode&&ej(e);if(o&&!Dl.isBuffer(e))e=Q7(e);if(typeof t==="function")n=t,t=null;if(o)t="buffer";else if(!t)t=r.defaultEncoding;if(typeof n!=="function")n=tj;if(r.ended)nj(this,n);else if(o||rj(this,r,e,n))r.pendingcb++,i=oj(this,r,o,e,t,n);return i};je.prototype.cork=function(){var e=this._writableState;e.corked++};je.prototype.uncork=function(){var e=this._writableState;if(e.corked){if(e.corked--,!e.writing&&!e.corked&&!e.bufferProcessing&&e.bufferedRequest)jE(this,e)}};je.prototype.setDefaultEncoding=function(t){if(typeof t==="string")t=t.toLowerCase();if(!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((t+"").toLowerCase())>-1))throw TypeError("Unknown encoding: "+t);return this._writableState.defaultEncoding=t,this};function ij(e,t,n){if(!e.objectMode&&e.decodeStrings!==!1&&typeof t==="string")t=Dl.from(t,n);return t}Object.defineProperty(je.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function oj(e,t,n,r,i,o){if(!n){var s=ij(t,r,i);if(r!==s)n=!0,i="buffer",r=s}var a=t.objectMode?1:r.length;t.length+=a;var c=t.length<t.highWaterMark;if(!c)t.needDrain=!0;if(t.writing||t.corked){var u=t.lastBufferedRequest;if(t.lastBufferedRequest={chunk:r,encoding:i,isBuf:n,callback:o,next:null},u)u.next=t.lastBufferedRequest;else t.bufferedRequest=t.lastBufferedRequest;t.bufferedRequestCount+=1}else Vg(e,t,!1,a,r,i,o);return c}function Vg(e,t,n,r,i,o,s){if(t.writelen=r,t.writecb=s,t.writing=!0,t.sync=!0,n)e._writev(i,t.onwrite);else e._write(i,o,t.onwrite);t.sync=!1}function sj(e,t,n,r,i){if(--t.pendingcb,n)Si.nextTick(i,r),Si.nextTick(sa,e,t),e._writableState.errorEmitted=!0,e.emit("error",r);else i(r),e._writableState.errorEmitted=!0,e.emit("error",r),sa(e,t)}function aj(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}function cj(e,t){var n=e._writableState,r=n.sync,i=n.writecb;if(aj(n),t)sj(e,n,r,t,i);else{var o=qE(n);if(!o&&!n.corked&&!n.bufferProcessing&&n.bufferedRequest)jE(e,n);if(r)Z7(ME,e,n,o,i);else ME(e,n,o,i)}}function ME(e,t,n,r){if(!n)uj(e,t);t.pendingcb--,r(),sa(e,t)}function uj(e,t){if(t.length===0&&t.needDrain)t.needDrain=!1,e.emit("drain")}function jE(e,t){t.bufferProcessing=!0;var n=t.bufferedRequest;if(e._writev&&n&&n.next){var r=t.bufferedRequestCount,i=Array(r),o=t.corkedRequestsFree;o.entry=n;var s=0,a=!0;while(n){if(i[s]=n,!n.isBuf)a=!1;n=n.next,s+=1}if(i.allBuffers=a,Vg(e,t,!0,t.length,i,"",o.finish),t.pendingcb++,t.lastBufferedRequest=null,o.next)t.corkedRequestsFree=o.next,o.next=null;else t.corkedRequestsFree=new NE(t);t.bufferedRequestCount=0}else{while(n){var{chunk:c,encoding:u,callback:d}=n,f=t.objectMode?1:c.length;if(Vg(e,t,!1,f,c,u,d),n=n.next,t.bufferedRequestCount--,t.writing)break}if(n===null)t.lastBufferedRequest=null}t.bufferedRequest=n,t.bufferProcessing=!1}je.prototype._write=function(e,t,n){n(Error("_write() is not implemented"))};je.prototype._writev=null;je.prototype.end=function(e,t,n){var r=this._writableState;if(typeof e==="function")n=e,e=null,t=null;else if(typeof t==="function")n=t,t=null;if(e!==null&&e!==void 0)this.write(e,t);if(r.corked)r.corked=1,this.uncork();if(!r.ending)fj(this,r,n)};function qE(e){return e.ending&&e.length===0&&e.bufferedRequest===null&&!e.finished&&!e.writing}function lj(e,t){e._final(function(n){if(t.pendingcb--,n)e.emit("error",n);t.prefinished=!0,e.emit("prefinish"),sa(e,t)})}function dj(e,t){if(!t.prefinished&&!t.finalCalled)if(typeof e._final==="function")t.pendingcb++,t.finalCalled=!0,Si.nextTick(lj,e,t);else t.prefinished=!0,e.emit("prefinish")}function sa(e,t){var n=qE(t);if(n){if(dj(e,t),t.pendingcb===0)t.finished=!0,e.emit("finish")}return n}function fj(e,t,n){if(t.ending=!0,sa(e,t),n)if(t.finished)Si.nextTick(n);else e.once("finish",n);t.ended=!0,e.writable=!1}function hj(e,t,n){var r=e.entry;e.entry=null;while(r){var i=r.callback;t.pendingcb--,i(n),r=r.next}t.corkedRequestsFree.next=e}Object.defineProperty(je.prototype,"destroyed",{get:function(){if(this._writableState===void 0)return!1;return this._writableState.destroyed},set:function(e){if(!this._writableState)return;this._writableState.destroyed=e}});je.prototype.destroy=WE.destroy;je.prototype._undestroy=WE.undestroy;je.prototype._destroy=function(e,t){this.end(),t(e)}});var Ci=R(function($ge,VE){var HE=ia(),pj=Object.keys||function(e){var t=[];for(var n in e)t.push(n);return t};VE.exports=Zn;var GE=Object.create(wo());GE.inherits=Do();var zE=Zg(),Kg=Xg();GE.inherits(Zn,zE);{El=pj(Kg.prototype);for(ca=0;ca<El.length;ca++)if(ua=El[ca],!Zn.prototype[ua])Zn.prototype[ua]=Kg.prototype[ua]}var El,ua,ca;function Zn(e){if(!(this instanceof Zn))return new Zn(e);if(zE.call(this,e),Kg.call(this,e),e&&e.readable===!1)this.readable=!1;if(e&&e.writable===!1)this.writable=!1;if(this.allowHalfOpen=!0,e&&e.allowHalfOpen===!1)this.allowHalfOpen=!1;this.once("end",gj)}Object.defineProperty(Zn.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function gj(){if(this.allowHalfOpen||this._writableState.ended)return;HE.nextTick(mj,this)}function mj(e){e.end()}Object.defineProperty(Zn.prototype,"destroyed",{get:function(){if(this._readableState===void 0||this._writableState===void 0)return!1;return this._readableState.destroyed&&this._writableState.destroyed},set:function(e){if(this._readableState===void 0||this._writableState===void 0)return;this._readableState.destroyed=e,this._writableState.destroyed=e}});Zn.prototype._destroy=function(e,t){this.push(null),this.end(),HE.nextTick(t,e)}});var ZE=R(function(Yg,KE){var Tl=re("buffer"),Yn=Tl.Buffer;function XE(e,t){for(var n in e)t[n]=e[n]}if(Yn.from&&Yn.alloc&&Yn.allocUnsafe&&Yn.allocUnsafeSlow)KE.exports=Tl;else XE(Tl,Yg),Yg.Buffer=To;function To(e,t,n){return Yn(e,t,n)}XE(Yn,To);To.from=function(e,t,n){if(typeof e==="number")throw TypeError("Argument must not be a number");return Yn(e,t,n)};To.alloc=function(e,t,n){if(typeof e!=="number")throw TypeError("Argument must be a number");var r=Yn(e);if(t!==void 0)if(typeof n==="string")r.fill(t,n);else r.fill(t);else r.fill(0);return r};To.allocUnsafe=function(e){if(typeof e!=="number")throw TypeError("Argument must be a number");return Yn(e)};To.allocUnsafeSlow=function(e){if(typeof e!=="number")throw TypeError("Argument must be a number");return Tl.SlowBuffer(e)}});var em=R(function(kj){var Qg=ZE().Buffer,YE=Qg.isEncoding||function(e){switch(e=""+e,e&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function yj(e){if(!e)return"utf8";var t;while(!0)switch(e){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return e;default:if(t)return;e=(""+e).toLowerCase(),t=!0}}function bj(e){var t=yj(e);if(typeof t!=="string"&&(Qg.isEncoding===YE||!YE(e)))throw Error("Unknown encoding: "+e);return t||e}kj.StringDecoder=la;function la(e){this.encoding=bj(e);var t;switch(this.encoding){case"utf16le":this.text=Ej,this.end=Tj,t=4;break;case"utf8":this.fillLast=_j,t=4;break;case"base64":this.text=Sj,this.end=Cj,t=3;break;default:this.write=Aj,this.end=Uj;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=Qg.allocUnsafe(t)}la.prototype.write=function(e){if(e.length===0)return"";var t,n;if(this.lastNeed){if(t=this.fillLast(e),t===void 0)return"";n=this.lastNeed,this.lastNeed=0}else n=0;if(n<e.length)return t?t+this.text(e,n):this.text(e,n);return t||""};la.prototype.end=Dj;la.prototype.text=wj;la.prototype.fillLast=function(e){if(this.lastNeed<=e.length)return e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,e.length),this.lastNeed-=e.length};function Jg(e){if(e<=127)return 0;else if(e>>5===6)return 2;else if(e>>4===14)return 3;else if(e>>3===30)return 4;return e>>6===2?-1:-2}function vj(e,t,n){var r=t.length-1;if(r<n)return 0;var i=Jg(t[r]);if(i>=0){if(i>0)e.lastNeed=i-1;return i}if(--r<n||i===-2)return 0;if(i=Jg(t[r]),i>=0){if(i>0)e.lastNeed=i-2;return i}if(--r<n||i===-2)return 0;if(i=Jg(t[r]),i>=0){if(i>0)if(i===2)i=0;else e.lastNeed=i-3;return i}return 0}function xj(e,t,n){if((t[0]&192)!==128)return e.lastNeed=0,"�";if(e.lastNeed>1&&t.length>1){if((t[1]&192)!==128)return e.lastNeed=1,"�";if(e.lastNeed>2&&t.length>2){if((t[2]&192)!==128)return e.lastNeed=2,"�"}}}function _j(e){var t=this.lastTotal-this.lastNeed,n=xj(this,e,t);if(n!==void 0)return n;if(this.lastNeed<=e.length)return e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,t,0,e.length),this.lastNeed-=e.length}function wj(e,t){var n=vj(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=n;var r=e.length-(n-this.lastNeed);return e.copy(this.lastChar,0,r),e.toString("utf8",t,r)}function Dj(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed)return t+"�";return t}function Ej(e,t){if((e.length-t)%2===0){var n=e.toString("utf16le",t);if(n){var r=n.charCodeAt(n.length-1);if(r>=55296&&r<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],n.slice(0,-1)}return n}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",t,e.length-1)}function Tj(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var n=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,n)}return t}function Sj(e,t){var n=(e.length-t)%3;if(n===0)return e.toString("base64",t);if(this.lastNeed=3-n,this.lastTotal=3,n===1)this.lastChar[0]=e[e.length-1];else this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1];return e.toString("base64",t,e.length-n)}function Cj(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed)return t+this.lastChar.toString("base64",0,3-this.lastNeed);return t}function Aj(e){return e.toString(this.encoding)}function Uj(e){return e&&e.length?this.write(e):""}});var Zg=R(function(zge,uT){var Co=ia();uT.exports=Ce;var Fj=CE(),da;Ce.ReadableState=iT;var Gge=re("events").EventEmitter,tT=function(e,t){return e.listeners(t).length},om=re("stream"),fa=yl().Buffer,Oj=(typeof global<"u"?global:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function Pj(e){return fa.from(e)}function Ij(e){return fa.isBuffer(e)||e instanceof Oj}var nT=Object.create(wo());nT.inherits=Do();var tm=re("util"),ge=void 0;if(tm&&tm.debuglog)ge=tm.debuglog("stream");else ge=function(){};var Mj=FE(),rT=zg(),So;nT.inherits(Ce,om);var nm=["error","close","destroy","pause","resume"];function Nj(e,t,n){if(typeof e.prependListener==="function")return e.prependListener(t,n);if(!e._events||!e._events[t])e.on(t,n);else if(Fj(e._events[t]))e._events[t].unshift(n);else e._events[t]=[n,e._events[t]]}function iT(e,t){da=da||Ci(),e=e||{};var n=t instanceof da;if(this.objectMode=!!e.objectMode,n)this.objectMode=this.objectMode||!!e.readableObjectMode;var{highWaterMark:r,readableHighWaterMark:i}=e,o=this.objectMode?16:16384;if(r||r===0)this.highWaterMark=r;else if(n&&(i||i===0))this.highWaterMark=i;else this.highWaterMark=o;if(this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new Mj,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.destroyed=!1,this.defaultEncoding=e.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding){if(!So)So=em().StringDecoder;this.decoder=new So(e.encoding),this.encoding=e.encoding}}function Ce(e){if(da=da||Ci(),!(this instanceof Ce))return new Ce(e);if(this._readableState=new iT(e,this),this.readable=!0,e){if(typeof e.read==="function")this._read=e.read;if(typeof e.destroy==="function")this._destroy=e.destroy}om.call(this)}Object.defineProperty(Ce.prototype,"destroyed",{get:function(){if(this._readableState===void 0)return!1;return this._readableState.destroyed},set:function(e){if(!this._readableState)return;this._readableState.destroyed=e}});Ce.prototype.destroy=rT.destroy;Ce.prototype._undestroy=rT.undestroy;Ce.prototype._destroy=function(e,t){this.push(null),t(e)};Ce.prototype.push=function(e,t){var n=this._readableState,r;if(!n.objectMode){if(typeof e==="string"){if(t=t||n.defaultEncoding,t!==n.encoding)e=fa.from(e,t),t="";r=!0}}else r=!0;return oT(this,e,t,!1,r)};Ce.prototype.unshift=function(e){return oT(this,e,null,!0,!1)};function oT(e,t,n,r,i){var o=e._readableState;if(t===null)o.reading=!1,jj(e,o);else{var s;if(!i)s=Bj(o,t);if(s)e.emit("error",s);else if(o.objectMode||t&&t.length>0){if(typeof t!=="string"&&!o.objectMode&&Object.getPrototypeOf(t)!==fa.prototype)t=Pj(t);if(r)if(o.endEmitted)e.emit("error",Error("stream.unshift() after end event"));else rm(e,o,t,!0);else if(o.ended)e.emit("error",Error("stream.push() after EOF"));else if(o.reading=!1,o.decoder&&!n)if(t=o.decoder.write(t),o.objectMode||t.length!==0)rm(e,o,t,!1);else sT(e,o);else rm(e,o,t,!1)}else if(!r)o.reading=!1}return Lj(o)}function rm(e,t,n,r){if(t.flowing&&t.length===0&&!t.sync)e.emit("data",n),e.read(0);else{if(t.length+=t.objectMode?1:n.length,r)t.buffer.unshift(n);else t.buffer.push(n);if(t.needReadable)Sl(e)}sT(e,t)}function Bj(e,t){var n;if(!Ij(t)&&typeof t!=="string"&&t!==void 0&&!e.objectMode)n=TypeError("Invalid non-string/buffer chunk");return n}function Lj(e){return!e.ended&&(e.needReadable||e.length<e.highWaterMark||e.length===0)}Ce.prototype.isPaused=function(){return this._readableState.flowing===!1};Ce.prototype.setEncoding=function(e){if(!So)So=em().StringDecoder;return this._readableState.decoder=new So(e),this._readableState.encoding=e,this};var JE=8388608;function Wj(e){if(e>=JE)e=JE;else e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++;return e}function QE(e,t){if(e<=0||t.length===0&&t.ended)return 0;if(t.objectMode)return 1;if(e!==e)if(t.flowing&&t.length)return t.buffer.head.data.length;else return t.length;if(e>t.highWaterMark)t.highWaterMark=Wj(e);if(e<=t.length)return e;if(!t.ended)return t.needReadable=!0,0;return t.length}Ce.prototype.read=function(e){ge("read",e),e=parseInt(e,10);var t=this._readableState,n=e;if(e!==0)t.emittedReadable=!1;if(e===0&&t.needReadable&&(t.length>=t.highWaterMark||t.ended)){if(ge("read: emitReadable",t.length,t.ended),t.length===0&&t.ended)im(this);else Sl(this);return null}if(e=QE(e,t),e===0&&t.ended){if(t.length===0)im(this);return null}var r=t.needReadable;if(ge("need readable",r),t.length===0||t.length-e<t.highWaterMark)r=!0,ge("length less than watermark",r);if(t.ended||t.reading)r=!1,ge("reading or ended",r);else if(r){if(ge("do read"),t.reading=!0,t.sync=!0,t.length===0)t.needReadable=!0;if(this._read(t.highWaterMark),t.sync=!1,!t.reading)e=QE(n,t)}var i;if(e>0)i=aT(e,t);else i=null;if(i===null)t.needReadable=!0,e=0;else t.length-=e;if(t.length===0){if(!t.ended)t.needReadable=!0;if(n!==e&&t.ended)im(this)}if(i!==null)this.emit("data",i);return i};function jj(e,t){if(t.ended)return;if(t.decoder){var n=t.decoder.end();if(n&&n.length)t.buffer.push(n),t.length+=t.objectMode?1:n.length}t.ended=!0,Sl(e)}function Sl(e){var t=e._readableState;if(t.needReadable=!1,!t.emittedReadable)if(ge("emitReadable",t.flowing),t.emittedReadable=!0,t.sync)Co.nextTick(eT,e);else eT(e)}function eT(e){ge("emit readable"),e.emit("readable"),sm(e)}function sT(e,t){if(!t.readingMore)t.readingMore=!0,Co.nextTick(qj,e,t)}function qj(e,t){var n=t.length;while(!t.reading&&!t.flowing&&!t.ended&&t.length<t.highWaterMark)if(ge("maybeReadMore read 0"),e.read(0),n===t.length)break;else n=t.length;t.readingMore=!1}Ce.prototype._read=function(e){this.emit("error",Error("_read() is not implemented"))};Ce.prototype.pipe=function(e,t){var n=this,r=this._readableState;switch(r.pipesCount){case 0:r.pipes=e;break;case 1:r.pipes=[r.pipes,e];break;default:r.pipes.push(e);break}r.pipesCount+=1,ge("pipe count=%d opts=%j",r.pipesCount,t);var i=(!t||t.end!==!1)&&e!==process.stdout&&e!==process.stderr,o=i?a:v;if(r.endEmitted)Co.nextTick(o);else n.once("end",o);e.on("unpipe",s);function s(b,_){if(ge("onunpipe"),b===n){if(_&&_.hasUnpiped===!1)_.hasUnpiped=!0,d()}}function a(){ge("onend"),e.end()}var c=$j(n);e.on("drain",c);var u=!1;function d(){if(ge("cleanup"),e.removeListener("close",g),e.removeListener("finish",y),e.removeListener("drain",c),e.removeListener("error",p),e.removeListener("unpipe",s),n.removeListener("end",a),n.removeListener("end",v),n.removeListener("data",h),u=!0,r.awaitDrain&&(!e._writableState||e._writableState.needDrain))c()}var f=!1;n.on("data",h);function h(b){ge("ondata"),f=!1;var _=e.write(b);if(_===!1&&!f){if((r.pipesCount===1&&r.pipes===e||r.pipesCount>1&&cT(r.pipes,e)!==-1)&&!u)ge("false write response, pause",r.awaitDrain),r.awaitDrain++,f=!0;n.pause()}}function p(b){if(ge("onerror",b),v(),e.removeListener("error",p),tT(e,"error")===0)e.emit("error",b)}Nj(e,"error",p);function g(){e.removeListener("finish",y),v()}e.once("close",g);function y(){ge("onfinish"),e.removeListener("close",g),v()}e.once("finish",y);function v(){ge("unpipe"),n.unpipe(e)}if(e.emit("pipe",n),!r.flowing)ge("pipe resume"),n.resume();return e};function $j(e){return function(){var t=e._readableState;if(ge("pipeOnDrain",t.awaitDrain),t.awaitDrain)t.awaitDrain--;if(t.awaitDrain===0&&tT(e,"data"))t.flowing=!0,sm(e)}}Ce.prototype.unpipe=function(e){var t=this._readableState,n={hasUnpiped:!1};if(t.pipesCount===0)return this;if(t.pipesCount===1){if(e&&e!==t.pipes)return this;if(!e)e=t.pipes;if(t.pipes=null,t.pipesCount=0,t.flowing=!1,e)e.emit("unpipe",this,n);return this}if(!e){var{pipes:r,pipesCount:i}=t;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var o=0;o<i;o++)r[o].emit("unpipe",this,{hasUnpiped:!1});return this}var s=cT(t.pipes,e);if(s===-1)return this;if(t.pipes.splice(s,1),t.pipesCount-=1,t.pipesCount===1)t.pipes=t.pipes[0];return e.emit("unpipe",this,n),this};Ce.prototype.on=function(e,t){var n=om.prototype.on.call(this,e,t);if(e==="data"){if(this._readableState.flowing!==!1)this.resume()}else if(e==="readable"){var r=this._readableState;if(!r.endEmitted&&!r.readableListening){if(r.readableListening=r.needReadable=!0,r.emittedReadable=!1,!r.reading)Co.nextTick(Hj,this);else if(r.length)Sl(this)}}return n};Ce.prototype.addListener=Ce.prototype.on;function Hj(e){ge("readable nexttick read 0"),e.read(0)}Ce.prototype.resume=function(){var e=this._readableState;if(!e.flowing)ge("resume"),e.flowing=!0,Gj(this,e);return this};function Gj(e,t){if(!t.resumeScheduled)t.resumeScheduled=!0,Co.nextTick(zj,e,t)}function zj(e,t){if(!t.reading)ge("resume read 0"),e.read(0);if(t.resumeScheduled=!1,t.awaitDrain=0,e.emit("resume"),sm(e),t.flowing&&!t.reading)e.read(0)}Ce.prototype.pause=function(){if(ge("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1)ge("pause"),this._readableState.flowing=!1,this.emit("pause");return this};function sm(e){var t=e._readableState;ge("flow",t.flowing);while(t.flowing&&e.read()!==null);}Ce.prototype.wrap=function(e){var t=this,n=this._readableState,r=!1;e.on("end",function(){if(ge("wrapped end"),n.decoder&&!n.ended){var s=n.decoder.end();if(s&&s.length)t.push(s)}t.push(null)}),e.on("data",function(s){if(ge("wrapped data"),n.decoder)s=n.decoder.write(s);if(n.objectMode&&(s===null||s===void 0))return;else if(!n.objectMode&&(!s||!s.length))return;var a=t.push(s);if(!a)r=!0,e.pause()});for(var i in e)if(this[i]===void 0&&typeof e[i]==="function")this[i]=function(s){return function(){return e[s].apply(e,arguments)}}(i);for(var o=0;o<nm.length;o++)e.on(nm[o],this.emit.bind(this,nm[o]));return this._read=function(s){if(ge("wrapped _read",s),r)r=!1,e.resume()},this};Object.defineProperty(Ce.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}});Ce._fromList=aT;function aT(e,t){if(t.length===0)return null;var n;if(t.objectMode)n=t.buffer.shift();else if(!e||e>=t.length){if(t.decoder)n=t.buffer.join("");else if(t.buffer.length===1)n=t.buffer.head.data;else n=t.buffer.concat(t.length);t.buffer.clear()}else n=Vj(e,t.buffer,t.decoder);return n}function Vj(e,t,n){var r;if(e<t.head.data.length)r=t.head.data.slice(0,e),t.head.data=t.head.data.slice(e);else if(e===t.head.data.length)r=t.shift();else r=n?Xj(e,t):Kj(e,t);return r}function Xj(e,t){var n=t.head,r=1,i=n.data;e-=i.length;while(n=n.next){var o=n.data,s=e>o.length?o.length:e;if(s===o.length)i+=o;else i+=o.slice(0,e);if(e-=s,e===0){if(s===o.length)if(++r,n.next)t.head=n.next;else t.head=t.tail=null;else t.head=n,n.data=o.slice(s);break}++r}return t.length-=r,i}function Kj(e,t){var n=fa.allocUnsafe(e),r=t.head,i=1;r.data.copy(n),e-=r.data.length;while(r=r.next){var o=r.data,s=e>o.length?o.length:e;if(o.copy(n,n.length-e,0,s),e-=s,e===0){if(s===o.length)if(++i,r.next)t.head=r.next;else t.head=t.tail=null;else t.head=r,r.data=o.slice(s);break}++i}return t.length-=i,n}function im(e){var t=e._readableState;if(t.length>0)throw Error('"endReadable()" called on non-empty stream');if(!t.endEmitted)t.ended=!0,Co.nextTick(Zj,t,e)}function Zj(e,t){if(!e.endEmitted&&e.length===0)e.endEmitted=!0,t.readable=!1,t.emit("end")}function cT(e,t){for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1}});var am=R(function(Vge,fT){fT.exports=Jn;var Cl=Ci(),dT=Object.create(wo());dT.inherits=Do();dT.inherits(Jn,Cl);function Yj(e,t){var n=this._transformState;n.transforming=!1;var r=n.writecb;if(!r)return this.emit("error",Error("write callback called multiple times"));if(n.writechunk=null,n.writecb=null,t!=null)this.push(t);r(e);var i=this._readableState;if(i.reading=!1,i.needReadable||i.length<i.highWaterMark)this._read(i.highWaterMark)}function Jn(e){if(!(this instanceof Jn))return new Jn(e);if(Cl.call(this,e),this._transformState={afterTransform:Yj.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,e){if(typeof e.transform==="function")this._transform=e.transform;if(typeof e.flush==="function")this._flush=e.flush}this.on("prefinish",Jj)}function Jj(){var e=this;if(typeof this._flush==="function")this._flush(function(t,n){lT(e,t,n)});else lT(this,null,null)}Jn.prototype.push=function(e,t){return this._transformState.needTransform=!1,Cl.prototype.push.call(this,e,t)};Jn.prototype._transform=function(e,t,n){throw Error("_transform() is not implemented")};Jn.prototype._write=function(e,t,n){var r=this._transformState;if(r.writecb=n,r.writechunk=e,r.writeencoding=t,!r.transforming){var i=this._readableState;if(r.needTransform||i.needReadable||i.length<i.highWaterMark)this._read(i.highWaterMark)}};Jn.prototype._read=function(e){var t=this._transformState;if(t.writechunk!==null&&t.writecb&&!t.transforming)t.transforming=!0,this._transform(t.writechunk,t.writeencoding,t.afterTransform);else t.needTransform=!0};Jn.prototype._destroy=function(e,t){var n=this;Cl.prototype._destroy.call(this,e,function(r){t(r),n.emit("close")})};function lT(e,t,n){if(t)return e.emit("error",t);if(n!=null)e.push(n);if(e._writableState.length)throw Error("Calling transform done when ws.length != 0");if(e._transformState.transforming)throw Error("Calling transform done when still transforming");return e.push(null)}});var mT=R(function(Xge,gT){gT.exports=ha;var hT=am(),pT=Object.create(wo());pT.inherits=Do();pT.inherits(ha,hT);function ha(e){if(!(this instanceof ha))return new ha(e);hT.call(this,e)}ha.prototype._transform=function(e,t,n){n(null,e)}});var cm=R(function(nt,Al){var En=re("stream");if(process.env.READABLE_STREAM==="disable"&&En)Al.exports=En,nt=Al.exports=En.Readable,nt.Readable=En.Readable,nt.Writable=En.Writable,nt.Duplex=En.Duplex,nt.Transform=En.Transform,nt.PassThrough=En.PassThrough,nt.Stream=En;else nt=Al.exports=Zg(),nt.Stream=En||nt,nt.Readable=nt,nt.Writable=Xg(),nt.Duplex=Ci(),nt.Transform=am(),nt.PassThrough=mT()});var Qn=R(function(eq){eq.base64=!0;eq.array=!0;eq.string=!0;eq.arraybuffer=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u";eq.nodebuffer=typeof Buffer<"u";eq.uint8array=typeof Uint8Array<"u";if(typeof ArrayBuffer>"u")eq.blob=!1;else{Ul=new ArrayBuffer(0);try{eq.blob=new Blob([Ul],{type:"application/zip"}).size===0}catch(e){try{lm=self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder,kl=new lm,kl.append(Ul),eq.blob=kl.getBlob("application/zip").size===0}catch(t){eq.blob=!1}}}var Ul,lm,kl;try{eq.nodestream=!!cm().Readable}catch(e){eq.nodestream=!1}});var dm=R(function(uq){var aq=Pe(),cq=Qn(),Tn="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";uq.encode=function(e){var t=[],n,r,i,o,s,a,c,u=0,d=e.length,f=d,h=aq.getTypeOf(e)!=="string";while(u<e.length){if(f=d-u,!h)n=e.charCodeAt(u++),r=u<d?e.charCodeAt(u++):0,i=u<d?e.charCodeAt(u++):0;else n=e[u++],r=u<d?e[u++]:0,i=u<d?e[u++]:0;o=n>>2,s=(n&3)<<4|r>>4,a=f>1?(r&15)<<2|i>>6:64,c=f>2?i&63:64,t.push(Tn.charAt(o)+Tn.charAt(s)+Tn.charAt(a)+Tn.charAt(c))}return t.join("")};uq.decode=function(e){var t,n,r,i,o,s,a,c=0,u=0,d="data:";if(e.substr(0,d.length)===d)throw Error("Invalid base64 input, it looks like a data url.");e=e.replace(/[^A-Za-z0-9+/=]/g,"");var f=e.length*3/4;if(e.charAt(e.length-1)===Tn.charAt(64))f--;if(e.charAt(e.length-2)===Tn.charAt(64))f--;if(f%1!==0)throw Error("Invalid base64 input, bad content length.");var h;if(cq.uint8array)h=new Uint8Array(f|0);else h=Array(f|0);while(c<e.length){if(i=Tn.indexOf(e.charAt(c++)),o=Tn.indexOf(e.charAt(c++)),s=Tn.indexOf(e.charAt(c++)),a=Tn.indexOf(e.charAt(c++)),t=i<<2|o>>4,n=(o&15)<<4|s>>2,r=(s&3)<<6|a,h[u++]=t,s!==64)h[u++]=n;if(a!==64)h[u++]=r}return h}});var pa=R(function(Yge,yT){yT.exports={isNode:typeof Buffer<"u",newBufferFrom:function(e,t){if(Buffer.from&&Buffer.from!==Uint8Array.from)return Buffer.from(e,t);else{if(typeof e==="number")throw Error('The "data" argument must not be a number');return new Buffer(e,t)}},allocBuffer:function(e){if(Buffer.alloc)return Buffer.alloc(e);else{var t=new Buffer(e);return t.fill(0),t}},isBuffer:function(e){return Buffer.isBuffer(e)},isStream:function(e){return e&&typeof e.on==="function"&&typeof e.pause==="function"&&typeof e.resume==="function"}}});var xT=R(function(Qge,vT){var Jge=global.MutationObserver||global.WebKitMutationObserver,bT;bT=function(){process.nextTick(mq)};var fq,hq,pq,gq,fm,ga=[];function mq(){fm=!0;var e,t,n=ga.length;while(n){t=ga,ga=[],e=-1;while(++e<n)t[e]();n=ga.length}fm=!1}vT.exports=yq;function yq(e){if(ga.push(e)===1&&!fm)bT()}});var CT=R(function(eme,ST){var _T=xT();function Uo(){}var ft={},wT=["REJECTED"],hm=["FULFILLED"],DT=["PENDING"];Ao=["UNHANDLED"];var Ao;ST.exports=Wr;function Wr(e){if(typeof e!=="function")throw TypeError("resolver must be a function");if(this.state=DT,this.queue=[],this.outcome=void 0,this.handled=Ao,e!==Uo)ET(this,e)}Wr.prototype.finally=function(e){if(typeof e!=="function")return this;var t=this.constructor;return this.then(n,r);function n(i){function o(){return i}return t.resolve(e()).then(o)}function r(i){function o(){throw i}return t.resolve(e()).then(o)}};Wr.prototype.catch=function(e){return this.then(null,e)};Wr.prototype.then=function(e,t){if(typeof e!=="function"&&this.state===hm||typeof t!=="function"&&this.state===wT)return this;var n=new this.constructor(Uo);if(this.handled===Ao)this.handled=null;if(this.state!==DT){var r=this.state===hm?e:t;pm(n,r,this.outcome)}else this.queue.push(new ma(n,e,t));return n};function ma(e,t,n){if(this.promise=e,typeof t==="function")this.onFulfilled=t,this.callFulfilled=this.otherCallFulfilled;if(typeof n==="function")this.onRejected=n,this.callRejected=this.otherCallRejected}ma.prototype.callFulfilled=function(e){ft.resolve(this.promise,e)};ma.prototype.otherCallFulfilled=function(e){pm(this.promise,this.onFulfilled,e)};ma.prototype.callRejected=function(e){ft.reject(this.promise,e)};ma.prototype.otherCallRejected=function(e){pm(this.promise,this.onRejected,e)};function pm(e,t,n){_T(function(){var r;try{r=t(n)}catch(i){return ft.reject(e,i)}if(r===e)ft.reject(e,TypeError("Cannot resolve promise with itself"));else ft.resolve(e,r)})}ft.resolve=function(e,t){var n=TT(bq,t);if(n.status==="error")return ft.reject(e,n.value);var r=n.value;if(r)ET(e,r);else{e.state=hm,e.outcome=t;var i=-1,o=e.queue.length;while(++i<o)e.queue[i].callFulfilled(t)}return e};ft.reject=function(e,t){if(e.state=wT,e.outcome=t,e.handled===Ao)_T(function(){if(e.handled===Ao)process.emit("unhandledRejection",t,e)});var n=-1,r=e.queue.length;while(++n<r)e.queue[n].callRejected(t);return e};function bq(e){var t=e&&e.then;if(e&&(typeof e==="object"||typeof e==="function")&&typeof t==="function")return function(){t.apply(e,arguments)}}function ET(e,t){var n=!1;function r(a){if(n)return;n=!0,ft.reject(e,a)}function i(a){if(n)return;n=!0,ft.resolve(e,a)}function o(){t(i,r)}var s=TT(o);if(s.status==="error")r(s.value)}function TT(e,t){var n={};try{n.value=e(t),n.status="success"}catch(r){n.status="error",n.value=r}return n}Wr.resolve=vq;function vq(e){if(e instanceof this)return e;return ft.resolve(new this(Uo),e)}Wr.reject=xq;function xq(e){var t=new this(Uo);return ft.reject(t,e)}Wr.all=_q;function _q(e){var t=this;if(Object.prototype.toString.call(e)!=="[object Array]")return this.reject(TypeError("must be an array"));var n=e.length,r=!1;if(!n)return this.resolve([]);var i=Array(n),o=0,s=-1,a=new this(Uo);while(++s<n)c(e[s],s);return a;function c(u,d){t.resolve(u).then(f,function(h){if(!r)r=!0,ft.reject(a,h)});function f(h){if(i[d]=h,++o===n&&!r)r=!0,ft.resolve(a,i)}}}Wr.race=wq;function wq(e){var t=this;if(Object.prototype.toString.call(e)!=="[object Array]")return this.reject(TypeError("must be an array"));var n=e.length,r=!1;if(!n)return this.resolve([]);var i=-1,o=new this(Uo);while(++i<n)s(e[i]);return o;function s(a){t.resolve(a).then(function(c){if(!r)r=!0,ft.resolve(o,c)},function(c){if(!r)r=!0,ft.reject(o,c)})}}});var ko=R(function(tme,AT){var gm=null;if(typeof Promise<"u")gm=Promise;else gm=CT();AT.exports={Promise:gm}});var kT=R(function(UT){(function(e,t){if(e.setImmediate)return;var n=1,r={},i=!1,o=e.document,s;function a(_){if(typeof _!=="function")_=Function(""+_);var m=Array(arguments.length-1);for(var x=0;x<m.length;x++)m[x]=arguments[x+1];var D={callback:_,args:m};return r[n]=D,s(n),n++}function c(_){delete r[_]}function u(_){var{callback:m,args:x}=_;switch(x.length){case 0:m();break;case 1:m(x[0]);break;case 2:m(x[0],x[1]);break;case 3:m(x[0],x[1],x[2]);break;default:m.apply(t,x);break}}function d(_){if(i)setTimeout(d,0,_);else{var m=r[_];if(m){i=!0;try{u(m)}finally{c(_),i=!1}}}}function f(){s=function(_){process.nextTick(function(){d(_)})}}function h(){if(e.postMessage&&!e.importScripts){var _=!0,m=e.onmessage;return e.onmessage=function(){_=!1},e.postMessage("","*"),e.onmessage=m,_}}function p(){var _="setImmediate$"+Math.random()+"$",m=function(x){if(x.source===e&&typeof x.data==="string"&&x.data.indexOf(_)===0)d(+x.data.slice(_.length))};if(e.addEventListener)e.addEventListener("message",m,!1);else e.attachEvent("onmessage",m);s=function(x){e.postMessage(_+x,"*")}}function g(){var _=new MessageChannel;_.port1.onmessage=function(m){var x=m.data;d(x)},s=function(m){_.port2.postMessage(m)}}function y(){var _=o.documentElement;s=function(m){var x=o.createElement("script");x.onreadystatechange=function(){d(m),x.onreadystatechange=null,_.removeChild(x),x=null},_.appendChild(x)}}function v(){s=function(_){setTimeout(d,0,_)}}var b=Object.getPrototypeOf&&Object.getPrototypeOf(e);if(b=b&&b.setTimeout?b:e,{}.toString.call(e.process)==="[object process]")f();else if(h())p();else if(e.MessageChannel)g();else if(o&&"onreadystatechange"in o.createElement("script"))y();else v();b.setImmediate=a,b.clearImmediate=c})(typeof self>"u"?typeof global>"u"?UT:global:self)});var Pe=R(function(Tq){var jr=Qn(),Dq=dm(),Ro=pa(),mm=ko();kT();function Eq(e){var t=null;if(jr.uint8array)t=new Uint8Array(e.length);else t=Array(e.length);return Fl(e,t)}Tq.newBlob=function(e,t){Tq.checkSupport("blob");try{return new Blob([e],{type:t})}catch(i){try{var n=self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder,r=new n;return r.append(e),r.getBlob(t)}catch(o){throw Error("Bug : can't construct the Blob.")}}};function ya(e){return e}function Fl(e,t){for(var n=0;n<e.length;++n)t[n]=e.charCodeAt(n)&255;return t}var Rl={stringifyByChunk:function(e,t,n){var r=[],i=0,o=e.length;if(o<=n)return String.fromCharCode.apply(null,e);while(i<o){if(t==="array"||t==="nodebuffer")r.push(String.fromCharCode.apply(null,e.slice(i,Math.min(i+n,o))));else r.push(String.fromCharCode.apply(null,e.subarray(i,Math.min(i+n,o))));i+=n}return r.join("")},stringifyByChar:function(e){var t="";for(var n=0;n<e.length;n++)t+=String.fromCharCode(e[n]);return t},applyCanBeUsed:{uint8array:function(){try{return jr.uint8array&&String.fromCharCode.apply(null,new Uint8Array(1)).length===1}catch(e){return!1}}(),nodebuffer:function(){try{return jr.nodebuffer&&String.fromCharCode.apply(null,Ro.allocBuffer(1)).length===1}catch(e){return!1}}()}};function ba(e){var t=65536,n=Tq.getTypeOf(e),r=!0;if(n==="uint8array")r=Rl.applyCanBeUsed.uint8array;else if(n==="nodebuffer")r=Rl.applyCanBeUsed.nodebuffer;if(r)while(t>1)try{return Rl.stringifyByChunk(e,n,t)}catch(i){t=Math.floor(t/2)}return Rl.stringifyByChar(e)}Tq.applyFromCharCode=ba;function Ol(e,t){for(var n=0;n<e.length;n++)t[n]=e[n];return t}var qr={};qr.string={string:ya,array:function(e){return Fl(e,Array(e.length))},arraybuffer:function(e){return qr.string.uint8array(e).buffer},uint8array:function(e){return Fl(e,new Uint8Array(e.length))},nodebuffer:function(e){return Fl(e,Ro.allocBuffer(e.length))}};qr.array={string:ba,array:ya,arraybuffer:function(e){return new Uint8Array(e).buffer},uint8array:function(e){return new Uint8Array(e)},nodebuffer:function(e){return Ro.newBufferFrom(e)}};qr.arraybuffer={string:function(e){return ba(new Uint8Array(e))},array:function(e){return Ol(new Uint8Array(e),Array(e.byteLength))},arraybuffer:ya,uint8array:function(e){return new Uint8Array(e)},nodebuffer:function(e){return Ro.newBufferFrom(new Uint8Array(e))}};qr.uint8array={string:ba,array:function(e){return Ol(e,Array(e.length))},arraybuffer:function(e){return e.buffer},uint8array:ya,nodebuffer:function(e){return Ro.newBufferFrom(e)}};qr.nodebuffer={string:ba,array:function(e){return Ol(e,Array(e.length))},arraybuffer:function(e){return qr.nodebuffer.uint8array(e).buffer},uint8array:function(e){return Ol(e,new Uint8Array(e.length))},nodebuffer:ya};Tq.transformTo=function(e,t){if(!t)t="";if(!e)return t;Tq.checkSupport(e);var n=Tq.getTypeOf(t),r=qr[n][e](t);return r};Tq.resolve=function(e){var t=e.split("/"),n=[];for(var r=0;r<t.length;r++){var i=t[r];if(i==="."||i===""&&r!==0&&r!==t.length-1)continue;else if(i==="..")n.pop();else n.push(i)}return n.join("/")};Tq.getTypeOf=function(e){if(typeof e==="string")return"string";if(Object.prototype.toString.call(e)==="[object Array]")return"array";if(jr.nodebuffer&&Ro.isBuffer(e))return"nodebuffer";if(jr.uint8array&&e instanceof Uint8Array)return"uint8array";if(jr.arraybuffer&&e instanceof ArrayBuffer)return"arraybuffer"};Tq.checkSupport=function(e){var t=jr[e.toLowerCase()];if(!t)throw Error(e+" is not supported by this platform")};Tq.MAX_VALUE_16BITS=65535;Tq.MAX_VALUE_32BITS=-1;Tq.pretty=function(e){var t="",n,r;for(r=0;r<(e||"").length;r++)n=e.charCodeAt(r),t+="\\x"+(n<16?"0":"")+n.toString(16).toUpperCase();return t};Tq.delay=function(e,t,n){setImmediate(function(){e.apply(n||null,t||[])})};Tq.inherits=function(e,t){var n=function(){};n.prototype=t.prototype,e.prototype=new n};Tq.extend=function(){var e={},t,n;for(t=0;t<arguments.length;t++)for(n in arguments[t])if(Object.prototype.hasOwnProperty.call(arguments[t],n)&&typeof e[n]>"u")e[n]=arguments[t][n];return e};Tq.prepareContent=function(e,t,n,r,i){var o=mm.Promise.resolve(t).then(function(s){var a=jr.blob&&(s instanceof Blob||["[object File]","[object Blob]"].indexOf(Object.prototype.toString.call(s))!==-1);if(a&&typeof FileReader<"u")return new mm.Promise(function(c,u){var d=new FileReader;d.onload=function(f){c(f.target.result)},d.onerror=function(f){u(f.target.error)},d.readAsArrayBuffer(s)});else return s});return o.then(function(s){var a=Tq.getTypeOf(s);if(!a)return mm.Promise.reject(Error("Can't read the data of '"+e+"'. Is it in a supported JavaScript type (String, Blob, ArrayBuffer, etc) ?"));if(a==="arraybuffer")s=Tq.transformTo("uint8array",s);else if(a==="string"){if(i)s=Dq.decode(s);else if(n){if(r!==!0)s=Eq(s)}}return s})}});var Pt=R(function(ime,PT){function OT(e){this.name=e||"default",this.streamInfo={},this.generatedError=null,this.extraStreamInfo={},this.isPaused=!0,this.isFinished=!1,this.isLocked=!1,this._listeners={data:[],end:[],error:[]},this.previous=null}OT.prototype={push:function(e){this.emit("data",e)},end:function(){if(this.isFinished)return!1;this.flush();try{this.emit("end"),this.cleanUp(),this.isFinished=!0}catch(e){this.emit("error",e)}return!0},error:function(e){if(this.isFinished)return!1;if(this.isPaused)this.generatedError=e;else{if(this.isFinished=!0,this.emit("error",e),this.previous)this.previous.error(e);this.cleanUp()}return!0},on:function(e,t){return this._listeners[e].push(t),this},cleanUp:function(){this.streamInfo=this.generatedError=this.extraStreamInfo=null,this._listeners=[]},emit:function(e,t){if(this._listeners[e])for(var n=0;n<this._listeners[e].length;n++)this._listeners[e][n].call(this,t)},pipe:function(e){return e.registerPrevious(this)},registerPrevious:function(e){if(this.isLocked)throw Error("The stream '"+this+"' has already been used.");this.streamInfo=e.streamInfo,this.mergeStreamInfo(),this.previous=e;var t=this;return e.on("data",function(n){t.processChunk(n)}),e.on("end",function(){t.end()}),e.on("error",function(n){t.error(n)}),this},pause:function(){if(this.isPaused||this.isFinished)return!1;if(this.isPaused=!0,this.previous)this.previous.pause();return!0},resume:function(){if(!this.isPaused||this.isFinished)return!1;this.isPaused=!1;var e=!1;if(this.generatedError)this.error(this.generatedError),e=!0;if(this.previous)this.previous.resume();return!e},flush:function(){},processChunk:function(e){this.push(e)},withStreamInfo:function(e,t){return this.extraStreamInfo[e]=t,this.mergeStreamInfo(),this},mergeStreamInfo:function(){for(var e in this.extraStreamInfo){if(!Object.prototype.hasOwnProperty.call(this.extraStreamInfo,e))continue;this.streamInfo[e]=this.extraStreamInfo[e]}},lock:function(){if(this.isLocked)throw Error("The stream '"+this+"' has already been used.");if(this.isLocked=!0,this.previous)this.previous.lock()},toString:function(){var e="Worker "+this.name;if(this.previous)return this.previous+" -> "+e;else return e}};PT.exports=OT});var Oo=R(function(Wq){var Fo=Pe(),Ai=Qn(),Mq=pa(),Pl=Pt(),va=Array(256);for(Sn=0;Sn<256;Sn++)va[Sn]=Sn>=252?6:Sn>=248?5:Sn>=240?4:Sn>=224?3:Sn>=192?2:1;var Sn;va[254]=va[254]=1;var Nq=function(e){var t,n,r,i,o,s=e.length,a=0;for(i=0;i<s;i++){if(n=e.charCodeAt(i),(n&64512)===55296&&i+1<s){if(r=e.charCodeAt(i+1),(r&64512)===56320)n=65536+(n-55296<<10)+(r-56320),i++}a+=n<128?1:n<2048?2:n<65536?3:4}if(Ai.uint8array)t=new Uint8Array(a);else t=Array(a);for(o=0,i=0;o<a;i++){if(n=e.charCodeAt(i),(n&64512)===55296&&i+1<s){if(r=e.charCodeAt(i+1),(r&64512)===56320)n=65536+(n-55296<<10)+(r-56320),i++}if(n<128)t[o++]=n;else if(n<2048)t[o++]=192|n>>>6,t[o++]=128|n&63;else if(n<65536)t[o++]=224|n>>>12,t[o++]=128|n>>>6&63,t[o++]=128|n&63;else t[o++]=240|n>>>18,t[o++]=128|n>>>12&63,t[o++]=128|n>>>6&63,t[o++]=128|n&63}return t},Bq=function(e,t){var n;if(t=t||e.length,t>e.length)t=e.length;n=t-1;while(n>=0&&(e[n]&192)===128)n--;if(n<0)return t;if(n===0)return t;return n+va[e[n]]>t?n:t},Lq=function(e){var t,n,r,i,o=e.length,s=Array(o*2);for(n=0,t=0;t<o;){if(r=e[t++],r<128){s[n++]=r;continue}if(i=va[r],i>4){s[n++]=65533,t+=i-1;continue}r&=i===2?31:i===3?15:7;while(i>1&&t<o)r=r<<6|e[t++]&63,i--;if(i>1){s[n++]=65533;continue}if(r<65536)s[n++]=r;else r-=65536,s[n++]=55296|r>>10&1023,s[n++]=56320|r&1023}if(s.length!==n)if(s.subarray)s=s.subarray(0,n);else s.length=n;return Fo.applyFromCharCode(s)};Wq.utf8encode=function(t){if(Ai.nodebuffer)return Mq.newBufferFrom(t,"utf-8");return Nq(t)};Wq.utf8decode=function(t){if(Ai.nodebuffer)return Fo.transformTo("nodebuffer",t).toString("utf-8");return t=Fo.transformTo(Ai.uint8array?"uint8array":"array",t),Lq(t)};function Il(){Pl.call(this,"utf-8 decode"),this.leftOver=null}Fo.inherits(Il,Pl);Il.prototype.processChunk=function(e){var t=Fo.transformTo(Ai.uint8array?"uint8array":"array",e.data);if(this.leftOver&&this.leftOver.length){if(Ai.uint8array){var n=t;t=new Uint8Array(n.length+this.leftOver.length),t.set(this.leftOver,0),t.set(n,this.leftOver.length)}else t=this.leftOver.concat(t);this.leftOver=null}var r=Bq(t),i=t;if(r!==t.length)if(Ai.uint8array)i=t.subarray(0,r),this.leftOver=t.subarray(r,t.length);else i=t.slice(0,r),this.leftOver=t.slice(r,t.length);this.push({data:Wq.utf8decode(i),meta:e.meta})};Il.prototype.flush=function(){if(this.leftOver&&this.leftOver.length)this.push({data:Wq.utf8decode(this.leftOver),meta:{}}),this.leftOver=null};Wq.Utf8DecodeWorker=Il;function bm(){Pl.call(this,"utf-8 encode")}Fo.inherits(bm,Pl);bm.prototype.processChunk=function(e){this.push({data:Wq.utf8encode(e.data),meta:e.meta})};Wq.Utf8EncodeWorker=bm});var LT=R(function(sme,BT){var MT=Pt(),NT=Pe();function xm(e){MT.call(this,"ConvertWorker to "+e),this.destType=e}NT.inherits(xm,MT);xm.prototype.processChunk=function(e){this.push({data:NT.transformTo(this.destType,e.data),meta:e.meta})};BT.exports=xm});var qT=R(function(ame,jT){var WT=cm().Readable,$q=Pe();$q.inherits(_m,WT);function _m(e,t,n){WT.call(this,t),this._helper=e;var r=this;e.on("data",function(i,o){if(!r.push(i))r._helper.pause();if(n)n(o)}).on("error",function(i){r.emit("error",i)}).on("end",function(){r.push(null)})}_m.prototype._read=function(){this._helper.resume()};jT.exports=_m});var wm=R(function(cme,GT){var Ui=Pe(),Hq=LT(),Gq=Pt(),zq=dm(),Vq=Qn(),Xq=ko(),$T=null;if(Vq.nodestream)try{$T=qT()}catch(e){}function Kq(e,t,n){switch(e){case"blob":return Ui.newBlob(Ui.transformTo("arraybuffer",t),n);case"base64":return zq.encode(t);default:return Ui.transformTo(e,t)}}function Zq(e,t){var n,r=0,i=null,o=0;for(n=0;n<t.length;n++)o+=t[n].length;switch(e){case"string":return t.join("");case"array":return Array.prototype.concat.apply([],t);case"uint8array":i=new Uint8Array(o);for(n=0;n<t.length;n++)i.set(t[n],r),r+=t[n].length;return i;case"nodebuffer":return Buffer.concat(t);default:throw Error("concat : unsupported type '"+e+"'")}}function Yq(e,t){return new Xq.Promise(function(n,r){var i=[],o=e._internalType,s=e._outputType,a=e._mimeType;e.on("data",function(c,u){if(i.push(c),t)t(u)}).on("error",function(c){i=[],r(c)}).on("end",function(){try{var c=Kq(s,Zq(o,i),a);n(c)}catch(u){r(u)}i=[]}).resume()})}function HT(e,t,n){var r=t;switch(t){case"blob":case"arraybuffer":r="uint8array";break;case"base64":r="string";break}try{this._internalType=r,this._outputType=t,this._mimeType=n,Ui.checkSupport(r),this._worker=e.pipe(new Hq(r)),e.lock()}catch(i){this._worker=new Gq("error"),this._worker.error(i)}}HT.prototype={accumulate:function(e){return Yq(this,e)},on:function(e,t){var n=this;if(e==="data")this._worker.on(e,function(r){t.call(n,r.data,r.meta)});else this._worker.on(e,function(){Ui.delay(t,arguments,n)});return this},resume:function(){return Ui.delay(this._worker.resume,[],this._worker),this},pause:function(){return this._worker.pause(),this},toNodejsStream:function(e){if(Ui.checkSupport("nodestream"),this._outputType!=="nodebuffer")throw Error(this._outputType+" is not supported by this method");return new $T(this,{objectMode:this._outputType!=="nodebuffer"},e)}};GT.exports=HT});var Dm=R(function(Jq){Jq.base64=!1;Jq.binary=!1;Jq.dir=!1;Jq.createFolders=!0;Jq.date=null;Jq.compression=null;Jq.compressionOptions=null;Jq.comment=null;Jq.unixPermissions=null;Jq.dosPermissions=null});var Em=R(function(lme,zT){var Ml=Pe(),Nl=Pt(),u$=16384;function Po(e){Nl.call(this,"DataWorker");var t=this;this.dataIsReady=!1,this.index=0,this.max=0,this.data=null,this.type="",this._tickScheduled=!1,e.then(function(n){if(t.dataIsReady=!0,t.data=n,t.max=n&&n.length||0,t.type=Ml.getTypeOf(n),!t.isPaused)t._tickAndRepeat()},function(n){t.error(n)})}Ml.inherits(Po,Nl);Po.prototype.cleanUp=function(){Nl.prototype.cleanUp.call(this),this.data=null};Po.prototype.resume=function(){if(!Nl.prototype.resume.call(this))return!1;if(!this._tickScheduled&&this.dataIsReady)this._tickScheduled=!0,Ml.delay(this._tickAndRepeat,[],this);return!0};Po.prototype._tickAndRepeat=function(){if(this._tickScheduled=!1,this.isPaused||this.isFinished)return;if(this._tick(),!this.isFinished)Ml.delay(this._tickAndRepeat,[],this),this._tickScheduled=!0};Po.prototype._tick=function(){if(this.isPaused||this.isFinished)return!1;var e=u$,t=null,n=Math.min(this.max,this.index+e);if(this.index>=this.max)return this.end();else{switch(this.type){case"string":t=this.data.substring(this.index,n);break;case"uint8array":t=this.data.subarray(this.index,n);break;case"array":case"nodebuffer":t=this.data.slice(this.index,n);break}return this.index=n,this.push({data:t,meta:{percent:this.max?this.index/this.max*100:0}})}};zT.exports=Po});var Bl=R(function(dme,XT){var l$=Pe();function d$(){var e,t=[];for(var n=0;n<256;n++){e=n;for(var r=0;r<8;r++)e=e&1?3988292384^e>>>1:e>>>1;t[n]=e}return t}var VT=d$();function f$(e,t,n,r){var i=VT,o=r+n;e=e^-1;for(var s=r;s<o;s++)e=e>>>8^i[(e^t[s])&255];return e^-1}function h$(e,t,n,r){var i=VT,o=r+n;e=e^-1;for(var s=r;s<o;s++)e=e>>>8^i[(e^t.charCodeAt(s))&255];return e^-1}XT.exports=function(t,n){if(typeof t>"u"||!t.length)return 0;var r=l$.getTypeOf(t)!=="string";if(r)return f$(n|0,t,t.length,0);else return h$(n|0,t,t.length,0)}});var Sm=R(function(fme,ZT){var KT=Pt(),p$=Bl(),g$=Pe();function Tm(){KT.call(this,"Crc32Probe"),this.withStreamInfo("crc32",0)}g$.inherits(Tm,KT);Tm.prototype.processChunk=function(e){this.streamInfo.crc32=p$(e.data,this.streamInfo.crc32||0),this.push(e)};ZT.exports=Tm});var JT=R(function(hme,YT){var m$=Pe(),Cm=Pt();function Am(e){Cm.call(this,"DataLengthProbe for "+e),this.propName=e,this.withStreamInfo(e,0)}m$.inherits(Am,Cm);Am.prototype.processChunk=function(e){if(e){var t=this.streamInfo[this.propName]||0;this.streamInfo[this.propName]=t+e.data.length}Cm.prototype.processChunk.call(this,e)};YT.exports=Am});var Ll=R(function(pme,tS){var QT=ko(),eS=Em(),y$=Sm(),Um=JT();function km(e,t,n,r,i){this.compressedSize=e,this.uncompressedSize=t,this.crc32=n,this.compression=r,this.compressedContent=i}km.prototype={getContentWorker:function(){var e=new eS(QT.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new Um("data_length")),t=this;return e.on("end",function(){if(this.streamInfo.data_length!==t.uncompressedSize)throw Error("Bug : uncompressed data size mismatch")}),e},getCompressedWorker:function(){return new eS(QT.Promise.resolve(this.compressedContent)).withStreamInfo("compressedSize",this.compressedSize).withStreamInfo("uncompressedSize",this.uncompressedSize).withStreamInfo("crc32",this.crc32).withStreamInfo("compression",this.compression)}};km.createWorkerFrom=function(e,t,n){return e.pipe(new y$).pipe(new Um("uncompressedSize")).pipe(t.compressWorker(n)).pipe(new Um("compressedSize")).withStreamInfo("compression",t)};tS.exports=km});var oS=R(function(gme,iS){var b$=wm(),v$=Em(),Rm=Oo(),Fm=Ll(),nS=Pt(),Om=function(e,t,n){this.name=e,this.dir=n.dir,this.date=n.date,this.comment=n.comment,this.unixPermissions=n.unixPermissions,this.dosPermissions=n.dosPermissions,this._data=t,this._dataBinary=n.binary,this.options={compression:n.compression,compressionOptions:n.compressionOptions}};Om.prototype={internalStream:function(e){var t=null,n="string";try{if(!e)throw Error("No output type specified.");n=e.toLowerCase();var r=n==="string"||n==="text";if(n==="binarystring"||n==="text")n="string";t=this._decompressWorker();var i=!this._dataBinary;if(i&&!r)t=t.pipe(new Rm.Utf8EncodeWorker);if(!i&&r)t=t.pipe(new Rm.Utf8DecodeWorker)}catch(o){t=new nS("error"),t.error(o)}return new b$(t,n,"")},async:function(e,t){return this.internalStream(e).accumulate(t)},nodeStream:function(e,t){return this.internalStream(e||"nodebuffer").toNodejsStream(t)},_compressWorker:function(e,t){if(this._data instanceof Fm&&this._data.compression.magic===e.magic)return this._data.getCompressedWorker();else{var n=this._decompressWorker();if(!this._dataBinary)n=n.pipe(new Rm.Utf8EncodeWorker);return Fm.createWorkerFrom(n,e,t)}},_decompressWorker:function(){if(this._data instanceof Fm)return this._data.getContentWorker();else if(this._data instanceof nS)return this._data;else return new v$(this._data)}};var rS=["asText","asBinary","asNodeBuffer","asUint8Array","asArrayBuffer"],x$=function(){throw Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")};for(xa=0;xa<rS.length;xa++)Om.prototype[rS[xa]]=x$;var xa;iS.exports=Om});var er=R(function(Pm){var E$=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Int32Array<"u";function T$(e,t){return Object.prototype.hasOwnProperty.call(e,t)}Pm.assign=function(e){var t=Array.prototype.slice.call(arguments,1);while(t.length){var n=t.shift();if(!n)continue;if(typeof n!=="object")throw TypeError(n+"must be non-object");for(var r in n)if(T$(n,r))e[r]=n[r]}return e};Pm.shrinkBuf=function(e,t){if(e.length===t)return e;if(e.subarray)return e.subarray(0,t);return e.length=t,e};var S$={arraySet:function(e,t,n,r,i){if(t.subarray&&e.subarray){e.set(t.subarray(n,n+r),i);return}for(var o=0;o<r;o++)e[i+o]=t[n+o]},flattenChunks:function(e){var t,n,r,i,o,s;r=0;for(t=0,n=e.length;t<n;t++)r+=e[t].length;s=new Uint8Array(r),i=0;for(t=0,n=e.length;t<n;t++)o=e[t],s.set(o,i),i+=o.length;return s}},C$={arraySet:function(e,t,n,r,i){for(var o=0;o<r;o++)e[i+o]=t[n+o]},flattenChunks:function(e){return[].concat.apply([],e)}};Pm.setTyped=function(e){if(e)Pm.Buf8=Uint8Array,Pm.Buf16=Uint16Array,Pm.Buf32=Int32Array,Pm.assign(Pm,S$);else Pm.Buf8=Array,Pm.Buf16=Array,Pm.Buf32=Array,Pm.assign(Pm,C$)};Pm.setTyped(E$)});var US=R(function(Z$){var U$=er(),k$=4,aS=0,cS=1,R$=2;function Mo(e){var t=e.length;while(--t>=0)e[t]=0}var F$=0,pS=1,O$=2,P$=3,I$=258,qm=29,Sa=256,wa=Sa+1+qm,Io=30,$m=19,gS=2*wa+1,ki=15,Mm=16,M$=7,Hm=256,mS=16,yS=17,bS=18,Wm=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],Wl=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],N$=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],vS=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],B$=512,tr=Array((wa+2)*2);Mo(tr);var _a=Array(Io*2);Mo(_a);var Da=Array(B$);Mo(Da);var Ea=Array(I$-P$+1);Mo(Ea);var Gm=Array(qm);Mo(Gm);var jl=Array(Io);Mo(jl);function Nm(e,t,n,r,i){this.static_tree=e,this.extra_bits=t,this.extra_base=n,this.elems=r,this.max_length=i,this.has_stree=e&&e.length}var xS,_S,wS;function Bm(e,t){this.dyn_tree=e,this.max_code=0,this.stat_desc=t}function DS(e){return e<256?Da[e]:Da[256+(e>>>7)]}function Ta(e,t){e.pending_buf[e.pending++]=t&255,e.pending_buf[e.pending++]=t>>>8&255}function At(e,t,n){if(e.bi_valid>Mm-n)e.bi_buf|=t<<e.bi_valid&65535,Ta(e,e.bi_buf),e.bi_buf=t>>Mm-e.bi_valid,e.bi_valid+=n-Mm;else e.bi_buf|=t<<e.bi_valid&65535,e.bi_valid+=n}function Cn(e,t,n){At(e,n[t*2],n[t*2+1])}function ES(e,t){var n=0;do n|=e&1,e>>>=1,n<<=1;while(--t>0);return n>>>1}function L$(e){if(e.bi_valid===16)Ta(e,e.bi_buf),e.bi_buf=0,e.bi_valid=0;else if(e.bi_valid>=8)e.pending_buf[e.pending++]=e.bi_buf&255,e.bi_buf>>=8,e.bi_valid-=8}function W$(e,t){var{dyn_tree:n,max_code:r}=t,i=t.stat_desc.static_tree,o=t.stat_desc.has_stree,s=t.stat_desc.extra_bits,a=t.stat_desc.extra_base,c=t.stat_desc.max_length,u,d,f,h,p,g,y=0;for(h=0;h<=ki;h++)e.bl_count[h]=0;n[e.heap[e.heap_max]*2+1]=0;for(u=e.heap_max+1;u<gS;u++){if(d=e.heap[u],h=n[n[d*2+1]*2+1]+1,h>c)h=c,y++;if(n[d*2+1]=h,d>r)continue;if(e.bl_count[h]++,p=0,d>=a)p=s[d-a];if(g=n[d*2],e.opt_len+=g*(h+p),o)e.static_len+=g*(i[d*2+1]+p)}if(y===0)return;do{h=c-1;while(e.bl_count[h]===0)h--;e.bl_count[h]--,e.bl_count[h+1]+=2,e.bl_count[c]--,y-=2}while(y>0);for(h=c;h!==0;h--){d=e.bl_count[h];while(d!==0){if(f=e.heap[--u],f>r)continue;if(n[f*2+1]!==h)e.opt_len+=(h-n[f*2+1])*n[f*2],n[f*2+1]=h;d--}}}function TS(e,t,n){var r=Array(ki+1),i=0,o,s;for(o=1;o<=ki;o++)r[o]=i=i+n[o-1]<<1;for(s=0;s<=t;s++){var a=e[s*2+1];if(a===0)continue;e[s*2]=ES(r[a]++,a)}}function j$(){var e,t,n,r,i,o=Array(ki+1);n=0;for(r=0;r<qm-1;r++){Gm[r]=n;for(e=0;e<1<<Wm[r];e++)Ea[n++]=r}Ea[n-1]=r,i=0;for(r=0;r<16;r++){jl[r]=i;for(e=0;e<1<<Wl[r];e++)Da[i++]=r}i>>=7;for(;r<Io;r++){jl[r]=i<<7;for(e=0;e<1<<Wl[r]-7;e++)Da[256+i++]=r}for(t=0;t<=ki;t++)o[t]=0;e=0;while(e<=143)tr[e*2+1]=8,e++,o[8]++;while(e<=255)tr[e*2+1]=9,e++,o[9]++;while(e<=279)tr[e*2+1]=7,e++,o[7]++;while(e<=287)tr[e*2+1]=8,e++,o[8]++;TS(tr,wa+1,o);for(e=0;e<Io;e++)_a[e*2+1]=5,_a[e*2]=ES(e,5);xS=new Nm(tr,Wm,Sa+1,wa,ki),_S=new Nm(_a,Wl,0,Io,ki),wS=new Nm([],N$,0,$m,M$)}function SS(e){var t;for(t=0;t<wa;t++)e.dyn_ltree[t*2]=0;for(t=0;t<Io;t++)e.dyn_dtree[t*2]=0;for(t=0;t<$m;t++)e.bl_tree[t*2]=0;e.dyn_ltree[Hm*2]=1,e.opt_len=e.static_len=0,e.last_lit=e.matches=0}function CS(e){if(e.bi_valid>8)Ta(e,e.bi_buf);else if(e.bi_valid>0)e.pending_buf[e.pending++]=e.bi_buf;e.bi_buf=0,e.bi_valid=0}function q$(e,t,n,r){if(CS(e),r)Ta(e,n),Ta(e,~n);U$.arraySet(e.pending_buf,e.window,t,n,e.pending),e.pending+=n}function uS(e,t,n,r){var i=t*2,o=n*2;return e[i]<e[o]||e[i]===e[o]&&r[t]<=r[n]}function Lm(e,t,n){var r=e.heap[n],i=n<<1;while(i<=e.heap_len){if(i<e.heap_len&&uS(t,e.heap[i+1],e.heap[i],e.depth))i++;if(uS(t,r,e.heap[i],e.depth))break;e.heap[n]=e.heap[i],n=i,i<<=1}e.heap[n]=r}function lS(e,t,n){var r,i,o=0,s,a;if(e.last_lit!==0)do if(r=e.pending_buf[e.d_buf+o*2]<<8|e.pending_buf[e.d_buf+o*2+1],i=e.pending_buf[e.l_buf+o],o++,r===0)Cn(e,i,t);else{if(s=Ea[i],Cn(e,s+Sa+1,t),a=Wm[s],a!==0)i-=Gm[s],At(e,i,a);if(r--,s=DS(r),Cn(e,s,n),a=Wl[s],a!==0)r-=jl[s],At(e,r,a)}while(o<e.last_lit);Cn(e,Hm,t)}function jm(e,t){var n=t.dyn_tree,r=t.stat_desc.static_tree,i=t.stat_desc.has_stree,o=t.stat_desc.elems,s,a,c=-1,u;e.heap_len=0,e.heap_max=gS;for(s=0;s<o;s++)if(n[s*2]!==0)e.heap[++e.heap_len]=c=s,e.depth[s]=0;else n[s*2+1]=0;while(e.heap_len<2)if(u=e.heap[++e.heap_len]=c<2?++c:0,n[u*2]=1,e.depth[u]=0,e.opt_len--,i)e.static_len-=r[u*2+1];t.max_code=c;for(s=e.heap_len>>1;s>=1;s--)Lm(e,n,s);u=o;do s=e.heap[1],e.heap[1]=e.heap[e.heap_len--],Lm(e,n,1),a=e.heap[1],e.heap[--e.heap_max]=s,e.heap[--e.heap_max]=a,n[u*2]=n[s*2]+n[a*2],e.depth[u]=(e.depth[s]>=e.depth[a]?e.depth[s]:e.depth[a])+1,n[s*2+1]=n[a*2+1]=u,e.heap[1]=u++,Lm(e,n,1);while(e.heap_len>=2);e.heap[--e.heap_max]=e.heap[1],W$(e,t),TS(n,c,e.bl_count)}function dS(e,t,n){var r,i=-1,o,s=t[1],a=0,c=7,u=4;if(s===0)c=138,u=3;t[(n+1)*2+1]=65535;for(r=0;r<=n;r++){if(o=s,s=t[(r+1)*2+1],++a<c&&o===s)continue;else if(a<u)e.bl_tree[o*2]+=a;else if(o!==0){if(o!==i)e.bl_tree[o*2]++;e.bl_tree[mS*2]++}else if(a<=10)e.bl_tree[yS*2]++;else e.bl_tree[bS*2]++;if(a=0,i=o,s===0)c=138,u=3;else if(o===s)c=6,u=3;else c=7,u=4}}function fS(e,t,n){var r,i=-1,o,s=t[1],a=0,c=7,u=4;if(s===0)c=138,u=3;for(r=0;r<=n;r++){if(o=s,s=t[(r+1)*2+1],++a<c&&o===s)continue;else if(a<u)do Cn(e,o,e.bl_tree);while(--a!==0);else if(o!==0){if(o!==i)Cn(e,o,e.bl_tree),a--;Cn(e,mS,e.bl_tree),At(e,a-3,2)}else if(a<=10)Cn(e,yS,e.bl_tree),At(e,a-3,3);else Cn(e,bS,e.bl_tree),At(e,a-11,7);if(a=0,i=o,s===0)c=138,u=3;else if(o===s)c=6,u=3;else c=7,u=4}}function $$(e){var t;dS(e,e.dyn_ltree,e.l_desc.max_code),dS(e,e.dyn_dtree,e.d_desc.max_code),jm(e,e.bl_desc);for(t=$m-1;t>=3;t--)if(e.bl_tree[vS[t]*2+1]!==0)break;return e.opt_len+=3*(t+1)+5+5+4,t}function H$(e,t,n,r){var i;At(e,t-257,5),At(e,n-1,5),At(e,r-4,4);for(i=0;i<r;i++)At(e,e.bl_tree[vS[i]*2+1],3);fS(e,e.dyn_ltree,t-1),fS(e,e.dyn_dtree,n-1)}function G$(e){var t=4093624447,n;for(n=0;n<=31;n++,t>>>=1)if(t&1&&e.dyn_ltree[n*2]!==0)return aS;if(e.dyn_ltree[18]!==0||e.dyn_ltree[20]!==0||e.dyn_ltree[26]!==0)return cS;for(n=32;n<Sa;n++)if(e.dyn_ltree[n*2]!==0)return cS;return aS}var hS=!1;function z$(e){if(!hS)j$(),hS=!0;e.l_desc=new Bm(e.dyn_ltree,xS),e.d_desc=new Bm(e.dyn_dtree,_S),e.bl_desc=new Bm(e.bl_tree,wS),e.bi_buf=0,e.bi_valid=0,SS(e)}function AS(e,t,n,r){At(e,(F$<<1)+(r?1:0),3),q$(e,t,n,!0)}function V$(e){At(e,pS<<1,3),Cn(e,Hm,tr),L$(e)}function X$(e,t,n,r){var i,o,s=0;if(e.level>0){if(e.strm.data_type===R$)e.strm.data_type=G$(e);if(jm(e,e.l_desc),jm(e,e.d_desc),s=$$(e),i=e.opt_len+3+7>>>3,o=e.static_len+3+7>>>3,o<=i)i=o}else i=o=n+5;if(n+4<=i&&t!==-1)AS(e,t,n,r);else if(e.strategy===k$||o===i)At(e,(pS<<1)+(r?1:0),3),lS(e,tr,_a);else At(e,(O$<<1)+(r?1:0),3),H$(e,e.l_desc.max_code+1,e.d_desc.max_code+1,s+1),lS(e,e.dyn_ltree,e.dyn_dtree);if(SS(e),r)CS(e)}function K$(e,t,n){if(e.pending_buf[e.d_buf+e.last_lit*2]=t>>>8&255,e.pending_buf[e.d_buf+e.last_lit*2+1]=t&255,e.pending_buf[e.l_buf+e.last_lit]=n&255,e.last_lit++,t===0)e.dyn_ltree[n*2]++;else e.matches++,t--,e.dyn_ltree[(Ea[n]+Sa+1)*2]++,e.dyn_dtree[DS(t)*2]++;return e.last_lit===e.lit_bufsize-1}Z$._tr_init=z$;Z$._tr_stored_block=AS;Z$._tr_flush_block=X$;Z$._tr_tally=K$;Z$._tr_align=V$});var zm=R(function(bme,kS){function nH(e,t,n,r){var i=e&65535|0,o=e>>>16&65535|0,s=0;while(n!==0){s=n>2000?2000:n,n-=s;do i=i+t[r++]|0,o=o+i|0;while(--s);i%=65521,o%=65521}return i|o<<16|0}kS.exports=nH});var Vm=R(function(vme,RS){function rH(){var e,t=[];for(var n=0;n<256;n++){e=n;for(var r=0;r<8;r++)e=e&1?3988292384^e>>>1:e>>>1;t[n]=e}return t}var iH=rH();function oH(e,t,n,r){var i=iH,o=r+n;e^=-1;for(var s=r;s<o;s++)e=e>>>8^i[(e^t[s])&255];return e^-1}RS.exports=oH});var ql=R(function(xme,FS){FS.exports={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"}});var jS=R(function(BH){var xt=er(),Ht=US(),MS=zm(),$r=Vm(),sH=ql(),Pi=0,aH=1,cH=3,Xr=4,OS=5,Un=0,PS=1,Gt=-2,uH=-3,Xm=-5,lH=-1,dH=1,$l=2,fH=3,hH=4,pH=0,gH=2,Vl=8,mH=9,yH=15,bH=8,vH=29,xH=256,Zm=xH+1+vH,_H=30,wH=19,DH=2*Zm+1,EH=15,ae=3,zr=258,sn=zr+ae+1,TH=32,Xl=42,Ym=69,Hl=73,Gl=91,zl=103,Ri=113,Aa=666,ze=1,Ua=2,Fi=3,Lo=4,SH=3;function Vr(e,t){return e.msg=sH[t],t}function IS(e){return(e<<1)-(e>4?9:0)}function Gr(e){var t=e.length;while(--t>=0)e[t]=0}function Hr(e){var t=e.state,n=t.pending;if(n>e.avail_out)n=e.avail_out;if(n===0)return;if(xt.arraySet(e.output,t.pending_buf,t.pending_out,n,e.next_out),e.next_out+=n,t.pending_out+=n,e.total_out+=n,e.avail_out-=n,t.pending-=n,t.pending===0)t.pending_out=0}function rt(e,t){Ht._tr_flush_block(e,e.block_start>=0?e.block_start:-1,e.strstart-e.block_start,t),e.block_start=e.strstart,Hr(e.strm)}function fe(e,t){e.pending_buf[e.pending++]=t}function Ca(e,t){e.pending_buf[e.pending++]=t>>>8&255,e.pending_buf[e.pending++]=t&255}function CH(e,t,n,r){var i=e.avail_in;if(i>r)i=r;if(i===0)return 0;if(e.avail_in-=i,xt.arraySet(t,e.input,e.next_in,i,n),e.state.wrap===1)e.adler=MS(e.adler,t,i,n);else if(e.state.wrap===2)e.adler=$r(e.adler,t,i,n);return e.next_in+=i,e.total_in+=i,i}function NS(e,t){var{max_chain_length:n,strstart:r}=e,i,o,s=e.prev_length,a=e.nice_match,c=e.strstart>e.w_size-sn?e.strstart-(e.w_size-sn):0,u=e.window,d=e.w_mask,f=e.prev,h=e.strstart+zr,p=u[r+s-1],g=u[r+s];if(e.prev_length>=e.good_match)n>>=2;if(a>e.lookahead)a=e.lookahead;do{if(i=t,u[i+s]!==g||u[i+s-1]!==p||u[i]!==u[r]||u[++i]!==u[r+1])continue;r+=2,i++;do;while(u[++r]===u[++i]&&u[++r]===u[++i]&&u[++r]===u[++i]&&u[++r]===u[++i]&&u[++r]===u[++i]&&u[++r]===u[++i]&&u[++r]===u[++i]&&u[++r]===u[++i]&&r<h);if(o=zr-(h-r),r=h-zr,o>s){if(e.match_start=t,s=o,o>=a)break;p=u[r+s-1],g=u[r+s]}}while((t=f[t&d])>c&&--n!==0);if(s<=e.lookahead)return s;return e.lookahead}function Oi(e){var t=e.w_size,n,r,i,o,s;do{if(o=e.window_size-e.lookahead-e.strstart,e.strstart>=t+(t-sn)){xt.arraySet(e.window,e.window,t,t,0),e.match_start-=t,e.strstart-=t,e.block_start-=t,r=e.hash_size,n=r;do i=e.head[--n],e.head[n]=i>=t?i-t:0;while(--r);r=t,n=r;do i=e.prev[--n],e.prev[n]=i>=t?i-t:0;while(--r);o+=t}if(e.strm.avail_in===0)break;if(r=CH(e.strm,e.window,e.strstart+e.lookahead,o),e.lookahead+=r,e.lookahead+e.insert>=ae){s=e.strstart-e.insert,e.ins_h=e.window[s],e.ins_h=(e.ins_h<<e.hash_shift^e.window[s+1])&e.hash_mask;while(e.insert)if(e.ins_h=(e.ins_h<<e.hash_shift^e.window[s+ae-1])&e.hash_mask,e.prev[s&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=s,s++,e.insert--,e.lookahead+e.insert<ae)break}}while(e.lookahead<sn&&e.strm.avail_in!==0)}function AH(e,t){var n=65535;if(n>e.pending_buf_size-5)n=e.pending_buf_size-5;for(;;){if(e.lookahead<=1){if(Oi(e),e.lookahead===0&&t===Pi)return ze;if(e.lookahead===0)break}e.strstart+=e.lookahead,e.lookahead=0;var r=e.block_start+n;if(e.strstart===0||e.strstart>=r){if(e.lookahead=e.strstart-r,e.strstart=r,rt(e,!1),e.strm.avail_out===0)return ze}if(e.strstart-e.block_start>=e.w_size-sn){if(rt(e,!1),e.strm.avail_out===0)return ze}}if(e.insert=0,t===Xr){if(rt(e,!0),e.strm.avail_out===0)return Fi;return Lo}if(e.strstart>e.block_start){if(rt(e,!1),e.strm.avail_out===0)return ze}return ze}function Km(e,t){var n,r;for(;;){if(e.lookahead<sn){if(Oi(e),e.lookahead<sn&&t===Pi)return ze;if(e.lookahead===0)break}if(n=0,e.lookahead>=ae)e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+ae-1])&e.hash_mask,n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart;if(n!==0&&e.strstart-n<=e.w_size-sn)e.match_length=NS(e,n);if(e.match_length>=ae)if(r=Ht._tr_tally(e,e.strstart-e.match_start,e.match_length-ae),e.lookahead-=e.match_length,e.match_length<=e.max_lazy_match&&e.lookahead>=ae){e.match_length--;do e.strstart++,e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+ae-1])&e.hash_mask,n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart;while(--e.match_length!==0);e.strstart++}else e.strstart+=e.match_length,e.match_length=0,e.ins_h=e.window[e.strstart],e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+1])&e.hash_mask;else r=Ht._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++;if(r){if(rt(e,!1),e.strm.avail_out===0)return ze}}if(e.insert=e.strstart<ae-1?e.strstart:ae-1,t===Xr){if(rt(e,!0),e.strm.avail_out===0)return Fi;return Lo}if(e.last_lit){if(rt(e,!1),e.strm.avail_out===0)return ze}return Ua}function No(e,t){var n,r,i;for(;;){if(e.lookahead<sn){if(Oi(e),e.lookahead<sn&&t===Pi)return ze;if(e.lookahead===0)break}if(n=0,e.lookahead>=ae)e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+ae-1])&e.hash_mask,n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart;if(e.prev_length=e.match_length,e.prev_match=e.match_start,e.match_length=ae-1,n!==0&&e.prev_length<e.max_lazy_match&&e.strstart-n<=e.w_size-sn){if(e.match_length=NS(e,n),e.match_length<=5&&(e.strategy===dH||e.match_length===ae&&e.strstart-e.match_start>4096))e.match_length=ae-1}if(e.prev_length>=ae&&e.match_length<=e.prev_length){i=e.strstart+e.lookahead-ae,r=Ht._tr_tally(e,e.strstart-1-e.prev_match,e.prev_length-ae),e.lookahead-=e.prev_length-1,e.prev_length-=2;do if(++e.strstart<=i)e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+ae-1])&e.hash_mask,n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart;while(--e.prev_length!==0);if(e.match_available=0,e.match_length=ae-1,e.strstart++,r){if(rt(e,!1),e.strm.avail_out===0)return ze}}else if(e.match_available){if(r=Ht._tr_tally(e,0,e.window[e.strstart-1]),r)rt(e,!1);if(e.strstart++,e.lookahead--,e.strm.avail_out===0)return ze}else e.match_available=1,e.strstart++,e.lookahead--}if(e.match_available)r=Ht._tr_tally(e,0,e.window[e.strstart-1]),e.match_available=0;if(e.insert=e.strstart<ae-1?e.strstart:ae-1,t===Xr){if(rt(e,!0),e.strm.avail_out===0)return Fi;return Lo}if(e.last_lit){if(rt(e,!1),e.strm.avail_out===0)return ze}return Ua}function UH(e,t){var n,r,i,o,s=e.window;for(;;){if(e.lookahead<=zr){if(Oi(e),e.lookahead<=zr&&t===Pi)return ze;if(e.lookahead===0)break}if(e.match_length=0,e.lookahead>=ae&&e.strstart>0){if(i=e.strstart-1,r=s[i],r===s[++i]&&r===s[++i]&&r===s[++i]){o=e.strstart+zr;do;while(r===s[++i]&&r===s[++i]&&r===s[++i]&&r===s[++i]&&r===s[++i]&&r===s[++i]&&r===s[++i]&&r===s[++i]&&i<o);if(e.match_length=zr-(o-i),e.match_length>e.lookahead)e.match_length=e.lookahead}}if(e.match_length>=ae)n=Ht._tr_tally(e,1,e.match_length-ae),e.lookahead-=e.match_length,e.strstart+=e.match_length,e.match_length=0;else n=Ht._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++;if(n){if(rt(e,!1),e.strm.avail_out===0)return ze}}if(e.insert=0,t===Xr){if(rt(e,!0),e.strm.avail_out===0)return Fi;return Lo}if(e.last_lit){if(rt(e,!1),e.strm.avail_out===0)return ze}return Ua}function kH(e,t){var n;for(;;){if(e.lookahead===0){if(Oi(e),e.lookahead===0){if(t===Pi)return ze;break}}if(e.match_length=0,n=Ht._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++,n){if(rt(e,!1),e.strm.avail_out===0)return ze}}if(e.insert=0,t===Xr){if(rt(e,!0),e.strm.avail_out===0)return Fi;return Lo}if(e.last_lit){if(rt(e,!1),e.strm.avail_out===0)return ze}return Ua}function An(e,t,n,r,i){this.good_length=e,this.max_lazy=t,this.nice_length=n,this.max_chain=r,this.func=i}var Bo;Bo=[new An(0,0,0,0,AH),new An(4,4,8,4,Km),new An(4,5,16,8,Km),new An(4,6,32,32,Km),new An(4,4,16,16,No),new An(8,16,32,32,No),new An(8,16,128,128,No),new An(8,32,128,256,No),new An(32,128,258,1024,No),new An(32,258,258,4096,No)];function RH(e){e.window_size=2*e.w_size,Gr(e.head),e.max_lazy_match=Bo[e.level].max_lazy,e.good_match=Bo[e.level].good_length,e.nice_match=Bo[e.level].nice_length,e.max_chain_length=Bo[e.level].max_chain,e.strstart=0,e.block_start=0,e.lookahead=0,e.insert=0,e.match_length=e.prev_length=ae-1,e.match_available=0,e.ins_h=0}function FH(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=Vl,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new xt.Buf16(DH*2),this.dyn_dtree=new xt.Buf16((2*_H+1)*2),this.bl_tree=new xt.Buf16((2*wH+1)*2),Gr(this.dyn_ltree),Gr(this.dyn_dtree),Gr(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new xt.Buf16(EH+1),this.heap=new xt.Buf16(2*Zm+1),Gr(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new xt.Buf16(2*Zm+1),Gr(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}function BS(e){var t;if(!e||!e.state)return Vr(e,Gt);if(e.total_in=e.total_out=0,e.data_type=gH,t=e.state,t.pending=0,t.pending_out=0,t.wrap<0)t.wrap=-t.wrap;return t.status=t.wrap?Xl:Ri,e.adler=t.wrap===2?0:1,t.last_flush=Pi,Ht._tr_init(t),Un}function LS(e){var t=BS(e);if(t===Un)RH(e.state);return t}function OH(e,t){if(!e||!e.state)return Gt;if(e.state.wrap!==2)return Gt;return e.state.gzhead=t,Un}function WS(e,t,n,r,i,o){if(!e)return Gt;var s=1;if(t===lH)t=6;if(r<0)s=0,r=-r;else if(r>15)s=2,r-=16;if(i<1||i>mH||n!==Vl||r<8||r>15||t<0||t>9||o<0||o>hH)return Vr(e,Gt);if(r===8)r=9;var a=new FH;return e.state=a,a.strm=e,a.wrap=s,a.gzhead=null,a.w_bits=r,a.w_size=1<<a.w_bits,a.w_mask=a.w_size-1,a.hash_bits=i+7,a.hash_size=1<<a.hash_bits,a.hash_mask=a.hash_size-1,a.hash_shift=~~((a.hash_bits+ae-1)/ae),a.window=new xt.Buf8(a.w_size*2),a.head=new xt.Buf16(a.hash_size),a.prev=new xt.Buf16(a.w_size),a.lit_bufsize=1<<i+6,a.pending_buf_size=a.lit_bufsize*4,a.pending_buf=new xt.Buf8(a.pending_buf_size),a.d_buf=1*a.lit_bufsize,a.l_buf=3*a.lit_bufsize,a.level=t,a.strategy=o,a.method=n,LS(e)}function PH(e,t){return WS(e,t,Vl,yH,bH,pH)}function IH(e,t){var n,r,i,o;if(!e||!e.state||t>OS||t<0)return e?Vr(e,Gt):Gt;if(r=e.state,!e.output||!e.input&&e.avail_in!==0||r.status===Aa&&t!==Xr)return Vr(e,e.avail_out===0?Xm:Gt);if(r.strm=e,n=r.last_flush,r.last_flush=t,r.status===Xl)if(r.wrap===2)if(e.adler=0,fe(r,31),fe(r,139),fe(r,8),!r.gzhead)fe(r,0),fe(r,0),fe(r,0),fe(r,0),fe(r,0),fe(r,r.level===9?2:r.strategy>=$l||r.level<2?4:0),fe(r,SH),r.status=Ri;else{if(fe(r,(r.gzhead.text?1:0)+(r.gzhead.hcrc?2:0)+(!r.gzhead.extra?0:4)+(!r.gzhead.name?0:8)+(!r.gzhead.comment?0:16)),fe(r,r.gzhead.time&255),fe(r,r.gzhead.time>>8&255),fe(r,r.gzhead.time>>16&255),fe(r,r.gzhead.time>>24&255),fe(r,r.level===9?2:r.strategy>=$l||r.level<2?4:0),fe(r,r.gzhead.os&255),r.gzhead.extra&&r.gzhead.extra.length)fe(r,r.gzhead.extra.length&255),fe(r,r.gzhead.extra.length>>8&255);if(r.gzhead.hcrc)e.adler=$r(e.adler,r.pending_buf,r.pending,0);r.gzindex=0,r.status=Ym}else{var s=Vl+(r.w_bits-8<<4)<<8,a=-1;if(r.strategy>=$l||r.level<2)a=0;else if(r.level<6)a=1;else if(r.level===6)a=2;else a=3;if(s|=a<<6,r.strstart!==0)s|=TH;if(s+=31-s%31,r.status=Ri,Ca(r,s),r.strstart!==0)Ca(r,e.adler>>>16),Ca(r,e.adler&65535);e.adler=1}if(r.status===Ym)if(r.gzhead.extra){i=r.pending;while(r.gzindex<(r.gzhead.extra.length&65535)){if(r.pending===r.pending_buf_size){if(r.gzhead.hcrc&&r.pending>i)e.adler=$r(e.adler,r.pending_buf,r.pending-i,i);if(Hr(e),i=r.pending,r.pending===r.pending_buf_size)break}fe(r,r.gzhead.extra[r.gzindex]&255),r.gzindex++}if(r.gzhead.hcrc&&r.pending>i)e.adler=$r(e.adler,r.pending_buf,r.pending-i,i);if(r.gzindex===r.gzhead.extra.length)r.gzindex=0,r.status=Hl}else r.status=Hl;if(r.status===Hl)if(r.gzhead.name){i=r.pending;do{if(r.pending===r.pending_buf_size){if(r.gzhead.hcrc&&r.pending>i)e.adler=$r(e.adler,r.pending_buf,r.pending-i,i);if(Hr(e),i=r.pending,r.pending===r.pending_buf_size){o=1;break}}if(r.gzindex<r.gzhead.name.length)o=r.gzhead.name.charCodeAt(r.gzindex++)&255;else o=0;fe(r,o)}while(o!==0);if(r.gzhead.hcrc&&r.pending>i)e.adler=$r(e.adler,r.pending_buf,r.pending-i,i);if(o===0)r.gzindex=0,r.status=Gl}else r.status=Gl;if(r.status===Gl)if(r.gzhead.comment){i=r.pending;do{if(r.pending===r.pending_buf_size){if(r.gzhead.hcrc&&r.pending>i)e.adler=$r(e.adler,r.pending_buf,r.pending-i,i);if(Hr(e),i=r.pending,r.pending===r.pending_buf_size){o=1;break}}if(r.gzindex<r.gzhead.comment.length)o=r.gzhead.comment.charCodeAt(r.gzindex++)&255;else o=0;fe(r,o)}while(o!==0);if(r.gzhead.hcrc&&r.pending>i)e.adler=$r(e.adler,r.pending_buf,r.pending-i,i);if(o===0)r.status=zl}else r.status=zl;if(r.status===zl)if(r.gzhead.hcrc){if(r.pending+2>r.pending_buf_size)Hr(e);if(r.pending+2<=r.pending_buf_size)fe(r,e.adler&255),fe(r,e.adler>>8&255),e.adler=0,r.status=Ri}else r.status=Ri;if(r.pending!==0){if(Hr(e),e.avail_out===0)return r.last_flush=-1,Un}else if(e.avail_in===0&&IS(t)<=IS(n)&&t!==Xr)return Vr(e,Xm);if(r.status===Aa&&e.avail_in!==0)return Vr(e,Xm);if(e.avail_in!==0||r.lookahead!==0||t!==Pi&&r.status!==Aa){var c=r.strategy===$l?kH(r,t):r.strategy===fH?UH(r,t):Bo[r.level].func(r,t);if(c===Fi||c===Lo)r.status=Aa;if(c===ze||c===Fi){if(e.avail_out===0)r.last_flush=-1;return Un}if(c===Ua){if(t===aH)Ht._tr_align(r);else if(t!==OS){if(Ht._tr_stored_block(r,0,0,!1),t===cH){if(Gr(r.head),r.lookahead===0)r.strstart=0,r.block_start=0,r.insert=0}}if(Hr(e),e.avail_out===0)return r.last_flush=-1,Un}}if(t!==Xr)return Un;if(r.wrap<=0)return PS;if(r.wrap===2)fe(r,e.adler&255),fe(r,e.adler>>8&255),fe(r,e.adler>>16&255),fe(r,e.adler>>24&255),fe(r,e.total_in&255),fe(r,e.total_in>>8&255),fe(r,e.total_in>>16&255),fe(r,e.total_in>>24&255);else Ca(r,e.adler>>>16),Ca(r,e.adler&65535);if(Hr(e),r.wrap>0)r.wrap=-r.wrap;return r.pending!==0?Un:PS}function MH(e){var t;if(!e||!e.state)return Gt;if(t=e.state.status,t!==Xl&&t!==Ym&&t!==Hl&&t!==Gl&&t!==zl&&t!==Ri&&t!==Aa)return Vr(e,Gt);return e.state=null,t===Ri?Vr(e,uH):Un}function NH(e,t){var n=t.length,r,i,o,s,a,c,u,d;if(!e||!e.state)return Gt;if(r=e.state,s=r.wrap,s===2||s===1&&r.status!==Xl||r.lookahead)return Gt;if(s===1)e.adler=MS(e.adler,t,n,0);if(r.wrap=0,n>=r.w_size){if(s===0)Gr(r.head),r.strstart=0,r.block_start=0,r.insert=0;d=new xt.Buf8(r.w_size),xt.arraySet(d,t,n-r.w_size,r.w_size,0),t=d,n=r.w_size}a=e.avail_in,c=e.next_in,u=e.input,e.avail_in=n,e.next_in=0,e.input=t,Oi(r);while(r.lookahead>=ae){i=r.strstart,o=r.lookahead-(ae-1);do r.ins_h=(r.ins_h<<r.hash_shift^r.window[i+ae-1])&r.hash_mask,r.prev[i&r.w_mask]=r.head[r.ins_h],r.head[r.ins_h]=i,i++;while(--o);r.strstart=i,r.lookahead=ae-1,Oi(r)}return r.strstart+=r.lookahead,r.block_start=r.strstart,r.insert=r.lookahead,r.lookahead=0,r.match_length=r.prev_length=ae-1,r.match_available=0,e.next_in=c,e.input=u,e.avail_in=a,r.wrap=s,Un}BH.deflateInit=PH;BH.deflateInit2=WS;BH.deflateReset=LS;BH.deflateResetKeep=BS;BH.deflateSetHeader=OH;BH.deflate=IH;BH.deflateEnd=MH;BH.deflateSetDictionary=NH;BH.deflateInfo="pako deflate (from Nodeca project)"});var Jm=R(function(XH){var Kl=er(),qS=!0,$S=!0;try{String.fromCharCode.apply(null,[0])}catch(e){qS=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch(e){$S=!1}var ka=new Kl.Buf8(256);for(kn=0;kn<256;kn++)ka[kn]=kn>=252?6:kn>=248?5:kn>=240?4:kn>=224?3:kn>=192?2:1;var kn;ka[254]=ka[254]=1;XH.string2buf=function(e){var t,n,r,i,o,s=e.length,a=0;for(i=0;i<s;i++){if(n=e.charCodeAt(i),(n&64512)===55296&&i+1<s){if(r=e.charCodeAt(i+1),(r&64512)===56320)n=65536+(n-55296<<10)+(r-56320),i++}a+=n<128?1:n<2048?2:n<65536?3:4}t=new Kl.Buf8(a);for(o=0,i=0;o<a;i++){if(n=e.charCodeAt(i),(n&64512)===55296&&i+1<s){if(r=e.charCodeAt(i+1),(r&64512)===56320)n=65536+(n-55296<<10)+(r-56320),i++}if(n<128)t[o++]=n;else if(n<2048)t[o++]=192|n>>>6,t[o++]=128|n&63;else if(n<65536)t[o++]=224|n>>>12,t[o++]=128|n>>>6&63,t[o++]=128|n&63;else t[o++]=240|n>>>18,t[o++]=128|n>>>12&63,t[o++]=128|n>>>6&63,t[o++]=128|n&63}return t};function HS(e,t){if(t<65534){if(e.subarray&&$S||!e.subarray&&qS)return String.fromCharCode.apply(null,Kl.shrinkBuf(e,t))}var n="";for(var r=0;r<t;r++)n+=String.fromCharCode(e[r]);return n}XH.buf2binstring=function(e){return HS(e,e.length)};XH.binstring2buf=function(e){var t=new Kl.Buf8(e.length);for(var n=0,r=t.length;n<r;n++)t[n]=e.charCodeAt(n);return t};XH.buf2string=function(e,t){var n,r,i,o,s=t||e.length,a=Array(s*2);for(r=0,n=0;n<s;){if(i=e[n++],i<128){a[r++]=i;continue}if(o=ka[i],o>4){a[r++]=65533,n+=o-1;continue}i&=o===2?31:o===3?15:7;while(o>1&&n<s)i=i<<6|e[n++]&63,o--;if(o>1){a[r++]=65533;continue}if(i<65536)a[r++]=i;else i-=65536,a[r++]=55296|i>>10&1023,a[r++]=56320|i&1023}return HS(a,r)};XH.utf8border=function(e,t){var n;if(t=t||e.length,t>e.length)t=e.length;n=t-1;while(n>=0&&(e[n]&192)===128)n--;if(n<0)return t;if(n===0)return t;return n+ka[e[n]]>t?n:t}});var Qm=R(function(Dme,GS){function eG(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}GS.exports=eG});var KS=R(function(cG){var Ra=jS(),Fa=er(),ty=Jm(),ny=ql(),tG=Qm(),XS=Object.prototype.toString,nG=0,ey=4,Wo=0,zS=1,VS=2,rG=-1,iG=0,oG=8;function Ii(e){if(!(this instanceof Ii))return new Ii(e);this.options=Fa.assign({level:rG,method:oG,chunkSize:16384,windowBits:15,memLevel:8,strategy:iG,to:""},e||{});var t=this.options;if(t.raw&&t.windowBits>0)t.windowBits=-t.windowBits;else if(t.gzip&&t.windowBits>0&&t.windowBits<16)t.windowBits+=16;this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new tG,this.strm.avail_out=0;var n=Ra.deflateInit2(this.strm,t.level,t.method,t.windowBits,t.memLevel,t.strategy);if(n!==Wo)throw Error(ny[n]);if(t.header)Ra.deflateSetHeader(this.strm,t.header);if(t.dictionary){var r;if(typeof t.dictionary==="string")r=ty.string2buf(t.dictionary);else if(XS.call(t.dictionary)==="[object ArrayBuffer]")r=new Uint8Array(t.dictionary);else r=t.dictionary;if(n=Ra.deflateSetDictionary(this.strm,r),n!==Wo)throw Error(ny[n]);this._dict_set=!0}}Ii.prototype.push=function(e,t){var n=this.strm,r=this.options.chunkSize,i,o;if(this.ended)return!1;if(o=t===~~t?t:t===!0?ey:nG,typeof e==="string")n.input=ty.string2buf(e);else if(XS.call(e)==="[object ArrayBuffer]")n.input=new Uint8Array(e);else n.input=e;n.next_in=0,n.avail_in=n.input.length;do{if(n.avail_out===0)n.output=new Fa.Buf8(r),n.next_out=0,n.avail_out=r;if(i=Ra.deflate(n,o),i!==zS&&i!==Wo)return this.onEnd(i),this.ended=!0,!1;if(n.avail_out===0||n.avail_in===0&&(o===ey||o===VS))if(this.options.to==="string")this.onData(ty.buf2binstring(Fa.shrinkBuf(n.output,n.next_out)));else this.onData(Fa.shrinkBuf(n.output,n.next_out))}while((n.avail_in>0||n.avail_out===0)&&i!==zS);if(o===ey)return i=Ra.deflateEnd(this.strm),this.onEnd(i),this.ended=!0,i===Wo;if(o===VS)return this.onEnd(Wo),n.avail_out=0,!0;return!0};Ii.prototype.onData=function(e){this.chunks.push(e)};Ii.prototype.onEnd=function(e){if(e===Wo)if(this.options.to==="string")this.result=this.chunks.join("");else this.result=Fa.flattenChunks(this.chunks);this.chunks=[],this.err=e,this.msg=this.strm.msg};function ry(e,t){var n=new Ii(t);if(n.push(e,!0),n.err)throw n.msg||ny[n.err];return n.result}function sG(e,t){return t=t||{},t.raw=!0,ry(e,t)}function aG(e,t){return t=t||{},t.gzip=!0,ry(e,t)}cG.Deflate=Ii;cG.deflate=ry;cG.deflateRaw=sG;cG.gzip=aG});var YS=R(function(Tme,ZS){var Zl=30,hG=12;ZS.exports=function(t,n){var r,i,o,s,a,c,u,d,f,h,p,g,y,v,b,_,m,x,D,A,E,U,C,N,F;r=t.state,i=t.next_in,N=t.input,o=i+(t.avail_in-5),s=t.next_out,F=t.output,a=s-(n-t.avail_out),c=s+(t.avail_out-257),u=r.dmax,d=r.wsize,f=r.whave,h=r.wnext,p=r.window,g=r.hold,y=r.bits,v=r.lencode,b=r.distcode,_=(1<<r.lenbits)-1,m=(1<<r.distbits)-1;e:do{if(y<15)g+=N[i++]<<y,y+=8,g+=N[i++]<<y,y+=8;x=v[g&_];t:for(;;){if(D=x>>>24,g>>>=D,y-=D,D=x>>>16&255,D===0)F[s++]=x&65535;else if(D&16){if(A=x&65535,D&=15,D){if(y<D)g+=N[i++]<<y,y+=8;A+=g&(1<<D)-1,g>>>=D,y-=D}if(y<15)g+=N[i++]<<y,y+=8,g+=N[i++]<<y,y+=8;x=b[g&m];n:for(;;){if(D=x>>>24,g>>>=D,y-=D,D=x>>>16&255,D&16){if(E=x&65535,D&=15,y<D){if(g+=N[i++]<<y,y+=8,y<D)g+=N[i++]<<y,y+=8}if(E+=g&(1<<D)-1,E>u){t.msg="invalid distance too far back",r.mode=Zl;break e}if(g>>>=D,y-=D,D=s-a,E>D){if(D=E-D,D>f){if(r.sane){t.msg="invalid distance too far back",r.mode=Zl;break e}}if(U=0,C=p,h===0){if(U+=d-D,D<A){A-=D;do F[s++]=p[U++];while(--D);U=s-E,C=F}}else if(h<D){if(U+=d+h-D,D-=h,D<A){A-=D;do F[s++]=p[U++];while(--D);if(U=0,h<A){D=h,A-=D;do F[s++]=p[U++];while(--D);U=s-E,C=F}}}else if(U+=h-D,D<A){A-=D;do F[s++]=p[U++];while(--D);U=s-E,C=F}while(A>2)F[s++]=C[U++],F[s++]=C[U++],F[s++]=C[U++],A-=3;if(A){if(F[s++]=C[U++],A>1)F[s++]=C[U++]}}else{U=s-E;do F[s++]=F[U++],F[s++]=F[U++],F[s++]=F[U++],A-=3;while(A>2);if(A){if(F[s++]=F[U++],A>1)F[s++]=F[U++]}}}else if((D&64)===0){x=b[(x&65535)+(g&(1<<D)-1)];continue n}else{t.msg="invalid distance code",r.mode=Zl;break e}break}}else if((D&64)===0){x=v[(x&65535)+(g&(1<<D)-1)];continue t}else if(D&32){r.mode=hG;break e}else{t.msg="invalid literal/length code",r.mode=Zl;break e}break}}while(i<o&&s<c);A=y>>3,i-=A,y-=A<<3,g&=(1<<y)-1,t.next_in=i,t.next_out=s,t.avail_in=i<o?5+(o-i):5-(i-o),t.avail_out=s<c?257+(c-s):257-(s-c),r.hold=g,r.bits=y;return}});var iC=R(function(Sme,rC){var JS=er(),jo=15,QS=852,eC=592,tC=0,iy=1,nC=2,pG=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],gG=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],mG=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],yG=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64];rC.exports=function(t,n,r,i,o,s,a,c){var u=c.bits,d=0,f=0,h=0,p=0,g=0,y=0,v=0,b=0,_=0,m=0,x,D,A,E,U,C=null,N=0,F,S=new JS.Buf16(jo+1),B=new JS.Buf16(jo+1),j=null,G=0,T,O,k;for(d=0;d<=jo;d++)S[d]=0;for(f=0;f<i;f++)S[n[r+f]]++;g=u;for(p=jo;p>=1;p--)if(S[p]!==0)break;if(g>p)g=p;if(p===0)return o[s++]=20971520,o[s++]=20971520,c.bits=1,0;for(h=1;h<p;h++)if(S[h]!==0)break;if(g<h)g=h;b=1;for(d=1;d<=jo;d++)if(b<<=1,b-=S[d],b<0)return-1;if(b>0&&(t===tC||p!==1))return-1;B[1]=0;for(d=1;d<jo;d++)B[d+1]=B[d]+S[d];for(f=0;f<i;f++)if(n[r+f]!==0)a[B[n[r+f]]++]=f;if(t===tC)C=j=a,F=19;else if(t===iy)C=pG,N-=257,j=gG,G-=257,F=256;else C=mG,j=yG,F=-1;if(m=0,f=0,d=h,U=s,y=g,v=0,A=-1,_=1<<g,E=_-1,t===iy&&_>QS||t===nC&&_>eC)return 1;for(;;){if(T=d-v,a[f]<F)O=0,k=a[f];else if(a[f]>F)O=j[G+a[f]],k=C[N+a[f]];else O=96,k=0;x=1<<d-v,D=1<<y,h=D;do D-=x,o[U+(m>>v)+D]=T<<24|O<<16|k|0;while(D!==0);x=1<<d-1;while(m&x)x>>=1;if(x!==0)m&=x-1,m+=x;else m=0;if(f++,--S[d]===0){if(d===p)break;d=n[r+a[f]]}if(d>g&&(m&E)!==A){if(v===0)v=g;U+=h,y=d-v,b=1<<y;while(y+v<p){if(b-=S[y+v],b<=0)break;y++,b<<=1}if(_+=1<<y,t===iy&&_>QS||t===nC&&_>eC)return 1;A=m&E,o[A]=g<<24|y<<16|U-s|0}}if(m!==0)o[U+m]=d-v<<24|4194304|0;return c.bits=g,0}});var LC=R(function(MG){var It=er(),ly=zm(),Rn=Vm(),bG=YS(),Oa=iC(),vG=0,kC=1,RC=2,oC=4,xG=5,Yl=6,Mi=0,_G=1,wG=2,zt=-2,FC=-3,dy=-4,DG=-5,sC=8,OC=1,aC=2,cC=3,uC=4,lC=5,dC=6,fC=7,hC=8,pC=9,gC=10,ed=11,nr=12,oy=13,mC=14,sy=15,yC=16,bC=17,vC=18,xC=19,Jl=20,Ql=21,_C=22,wC=23,DC=24,EC=25,TC=26,ay=27,SC=28,CC=29,Fe=30,fy=31,EG=32,TG=852,SG=592,CG=15,AG=CG;function AC(e){return(e>>>24&255)+(e>>>8&65280)+((e&65280)<<8)+((e&255)<<24)}function UG(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new It.Buf16(320),this.work=new It.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function PC(e){var t;if(!e||!e.state)return zt;if(t=e.state,e.total_in=e.total_out=t.total=0,e.msg="",t.wrap)e.adler=t.wrap&1;return t.mode=OC,t.last=0,t.havedict=0,t.dmax=32768,t.head=null,t.hold=0,t.bits=0,t.lencode=t.lendyn=new It.Buf32(TG),t.distcode=t.distdyn=new It.Buf32(SG),t.sane=1,t.back=-1,Mi}function IC(e){var t;if(!e||!e.state)return zt;return t=e.state,t.wsize=0,t.whave=0,t.wnext=0,PC(e)}function MC(e,t){var n,r;if(!e||!e.state)return zt;if(r=e.state,t<0)n=0,t=-t;else if(n=(t>>4)+1,t<48)t&=15;if(t&&(t<8||t>15))return zt;if(r.window!==null&&r.wbits!==t)r.window=null;return r.wrap=n,r.wbits=t,IC(e)}function NC(e,t){var n,r;if(!e)return zt;if(r=new UG,e.state=r,r.window=null,n=MC(e,t),n!==Mi)e.state=null;return n}function kG(e){return NC(e,AG)}var UC=!0,cy,uy;function RG(e){if(UC){var t;cy=new It.Buf32(512),uy=new It.Buf32(32),t=0;while(t<144)e.lens[t++]=8;while(t<256)e.lens[t++]=9;while(t<280)e.lens[t++]=7;while(t<288)e.lens[t++]=8;Oa(kC,e.lens,0,288,cy,0,e.work,{bits:9}),t=0;while(t<32)e.lens[t++]=5;Oa(RC,e.lens,0,32,uy,0,e.work,{bits:5}),UC=!1}e.lencode=cy,e.lenbits=9,e.distcode=uy,e.distbits=5}function BC(e,t,n,r){var i,o=e.state;if(o.window===null)o.wsize=1<<o.wbits,o.wnext=0,o.whave=0,o.window=new It.Buf8(o.wsize);if(r>=o.wsize)It.arraySet(o.window,t,n-o.wsize,o.wsize,0),o.wnext=0,o.whave=o.wsize;else{if(i=o.wsize-o.wnext,i>r)i=r;if(It.arraySet(o.window,t,n-r,i,o.wnext),r-=i,r)It.arraySet(o.window,t,n-r,r,0),o.wnext=r,o.whave=o.wsize;else{if(o.wnext+=i,o.wnext===o.wsize)o.wnext=0;if(o.whave<o.wsize)o.whave+=i}}return 0}function FG(e,t){var n,r,i,o,s,a,c,u,d,f,h,p,g,y,v=0,b,_,m,x,D,A,E,U,C=new It.Buf8(4),N,F,S=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!e||!e.state||!e.output||!e.input&&e.avail_in!==0)return zt;if(n=e.state,n.mode===nr)n.mode=oy;s=e.next_out,i=e.output,c=e.avail_out,o=e.next_in,r=e.input,a=e.avail_in,u=n.hold,d=n.bits,f=a,h=c,U=Mi;e:for(;;)switch(n.mode){case OC:if(n.wrap===0){n.mode=oy;break}while(d<16){if(a===0)break e;a--,u+=r[o++]<<d,d+=8}if(n.wrap&2&&u===35615){n.check=0,C[0]=u&255,C[1]=u>>>8&255,n.check=Rn(n.check,C,2,0),u=0,d=0,n.mode=aC;break}if(n.flags=0,n.head)n.head.done=!1;if(!(n.wrap&1)||(((u&255)<<8)+(u>>8))%31){e.msg="incorrect header check",n.mode=Fe;break}if((u&15)!==sC){e.msg="unknown compression method",n.mode=Fe;break}if(u>>>=4,d-=4,E=(u&15)+8,n.wbits===0)n.wbits=E;else if(E>n.wbits){e.msg="invalid window size",n.mode=Fe;break}n.dmax=1<<E,e.adler=n.check=1,n.mode=u&512?gC:nr,u=0,d=0;break;case aC:while(d<16){if(a===0)break e;a--,u+=r[o++]<<d,d+=8}if(n.flags=u,(n.flags&255)!==sC){e.msg="unknown compression method",n.mode=Fe;break}if(n.flags&57344){e.msg="unknown header flags set",n.mode=Fe;break}if(n.head)n.head.text=u>>8&1;if(n.flags&512)C[0]=u&255,C[1]=u>>>8&255,n.check=Rn(n.check,C,2,0);u=0,d=0,n.mode=cC;case cC:while(d<32){if(a===0)break e;a--,u+=r[o++]<<d,d+=8}if(n.head)n.head.time=u;if(n.flags&512)C[0]=u&255,C[1]=u>>>8&255,C[2]=u>>>16&255,C[3]=u>>>24&255,n.check=Rn(n.check,C,4,0);u=0,d=0,n.mode=uC;case uC:while(d<16){if(a===0)break e;a--,u+=r[o++]<<d,d+=8}if(n.head)n.head.xflags=u&255,n.head.os=u>>8;if(n.flags&512)C[0]=u&255,C[1]=u>>>8&255,n.check=Rn(n.check,C,2,0);u=0,d=0,n.mode=lC;case lC:if(n.flags&1024){while(d<16){if(a===0)break e;a--,u+=r[o++]<<d,d+=8}if(n.length=u,n.head)n.head.extra_len=u;if(n.flags&512)C[0]=u&255,C[1]=u>>>8&255,n.check=Rn(n.check,C,2,0);u=0,d=0}else if(n.head)n.head.extra=null;n.mode=dC;case dC:if(n.flags&1024){if(p=n.length,p>a)p=a;if(p){if(n.head){if(E=n.head.extra_len-n.length,!n.head.extra)n.head.extra=Array(n.head.extra_len);It.arraySet(n.head.extra,r,o,p,E)}if(n.flags&512)n.check=Rn(n.check,r,p,o);a-=p,o+=p,n.length-=p}if(n.length)break e}n.length=0,n.mode=fC;case fC:if(n.flags&2048){if(a===0)break e;p=0;do if(E=r[o+p++],n.head&&E&&n.length<65536)n.head.name+=String.fromCharCode(E);while(E&&p<a);if(n.flags&512)n.check=Rn(n.check,r,p,o);if(a-=p,o+=p,E)break e}else if(n.head)n.head.name=null;n.length=0,n.mode=hC;case hC:if(n.flags&4096){if(a===0)break e;p=0;do if(E=r[o+p++],n.head&&E&&n.length<65536)n.head.comment+=String.fromCharCode(E);while(E&&p<a);if(n.flags&512)n.check=Rn(n.check,r,p,o);if(a-=p,o+=p,E)break e}else if(n.head)n.head.comment=null;n.mode=pC;case pC:if(n.flags&512){while(d<16){if(a===0)break e;a--,u+=r[o++]<<d,d+=8}if(u!==(n.check&65535)){e.msg="header crc mismatch",n.mode=Fe;break}u=0,d=0}if(n.head)n.head.hcrc=n.flags>>9&1,n.head.done=!0;e.adler=n.check=0,n.mode=nr;break;case gC:while(d<32){if(a===0)break e;a--,u+=r[o++]<<d,d+=8}e.adler=n.check=AC(u),u=0,d=0,n.mode=ed;case ed:if(n.havedict===0)return e.next_out=s,e.avail_out=c,e.next_in=o,e.avail_in=a,n.hold=u,n.bits=d,wG;e.adler=n.check=1,n.mode=nr;case nr:if(t===xG||t===Yl)break e;case oy:if(n.last){u>>>=d&7,d-=d&7,n.mode=ay;break}while(d<3){if(a===0)break e;a--,u+=r[o++]<<d,d+=8}switch(n.last=u&1,u>>>=1,d-=1,u&3){case 0:n.mode=mC;break;case 1:if(RG(n),n.mode=Jl,t===Yl){u>>>=2,d-=2;break e}break;case 2:n.mode=bC;break;case 3:e.msg="invalid block type",n.mode=Fe}u>>>=2,d-=2;break;case mC:u>>>=d&7,d-=d&7;while(d<32){if(a===0)break e;a--,u+=r[o++]<<d,d+=8}if((u&65535)!==(u>>>16^65535)){e.msg="invalid stored block lengths",n.mode=Fe;break}if(n.length=u&65535,u=0,d=0,n.mode=sy,t===Yl)break e;case sy:n.mode=yC;case yC:if(p=n.length,p){if(p>a)p=a;if(p>c)p=c;if(p===0)break e;It.arraySet(i,r,o,p,s),a-=p,o+=p,c-=p,s+=p,n.length-=p;break}n.mode=nr;break;case bC:while(d<14){if(a===0)break e;a--,u+=r[o++]<<d,d+=8}if(n.nlen=(u&31)+257,u>>>=5,d-=5,n.ndist=(u&31)+1,u>>>=5,d-=5,n.ncode=(u&15)+4,u>>>=4,d-=4,n.nlen>286||n.ndist>30){e.msg="too many length or distance symbols",n.mode=Fe;break}n.have=0,n.mode=vC;case vC:while(n.have<n.ncode){while(d<3){if(a===0)break e;a--,u+=r[o++]<<d,d+=8}n.lens[S[n.have++]]=u&7,u>>>=3,d-=3}while(n.have<19)n.lens[S[n.have++]]=0;if(n.lencode=n.lendyn,n.lenbits=7,N={bits:n.lenbits},U=Oa(vG,n.lens,0,19,n.lencode,0,n.work,N),n.lenbits=N.bits,U){e.msg="invalid code lengths set",n.mode=Fe;break}n.have=0,n.mode=xC;case xC:while(n.have<n.nlen+n.ndist){for(;;){if(v=n.lencode[u&(1<<n.lenbits)-1],b=v>>>24,_=v>>>16&255,m=v&65535,b<=d)break;if(a===0)break e;a--,u+=r[o++]<<d,d+=8}if(m<16)u>>>=b,d-=b,n.lens[n.have++]=m;else{if(m===16){F=b+2;while(d<F){if(a===0)break e;a--,u+=r[o++]<<d,d+=8}if(u>>>=b,d-=b,n.have===0){e.msg="invalid bit length repeat",n.mode=Fe;break}E=n.lens[n.have-1],p=3+(u&3),u>>>=2,d-=2}else if(m===17){F=b+3;while(d<F){if(a===0)break e;a--,u+=r[o++]<<d,d+=8}u>>>=b,d-=b,E=0,p=3+(u&7),u>>>=3,d-=3}else{F=b+7;while(d<F){if(a===0)break e;a--,u+=r[o++]<<d,d+=8}u>>>=b,d-=b,E=0,p=11+(u&127),u>>>=7,d-=7}if(n.have+p>n.nlen+n.ndist){e.msg="invalid bit length repeat",n.mode=Fe;break}while(p--)n.lens[n.have++]=E}}if(n.mode===Fe)break;if(n.lens[256]===0){e.msg="invalid code -- missing end-of-block",n.mode=Fe;break}if(n.lenbits=9,N={bits:n.lenbits},U=Oa(kC,n.lens,0,n.nlen,n.lencode,0,n.work,N),n.lenbits=N.bits,U){e.msg="invalid literal/lengths set",n.mode=Fe;break}if(n.distbits=6,n.distcode=n.distdyn,N={bits:n.distbits},U=Oa(RC,n.lens,n.nlen,n.ndist,n.distcode,0,n.work,N),n.distbits=N.bits,U){e.msg="invalid distances set",n.mode=Fe;break}if(n.mode=Jl,t===Yl)break e;case Jl:n.mode=Ql;case Ql:if(a>=6&&c>=258){if(e.next_out=s,e.avail_out=c,e.next_in=o,e.avail_in=a,n.hold=u,n.bits=d,bG(e,h),s=e.next_out,i=e.output,c=e.avail_out,o=e.next_in,r=e.input,a=e.avail_in,u=n.hold,d=n.bits,n.mode===nr)n.back=-1;break}n.back=0;for(;;){if(v=n.lencode[u&(1<<n.lenbits)-1],b=v>>>24,_=v>>>16&255,m=v&65535,b<=d)break;if(a===0)break e;a--,u+=r[o++]<<d,d+=8}if(_&&(_&240)===0){x=b,D=_,A=m;for(;;){if(v=n.lencode[A+((u&(1<<x+D)-1)>>x)],b=v>>>24,_=v>>>16&255,m=v&65535,x+b<=d)break;if(a===0)break e;a--,u+=r[o++]<<d,d+=8}u>>>=x,d-=x,n.back+=x}if(u>>>=b,d-=b,n.back+=b,n.length=m,_===0){n.mode=TC;break}if(_&32){n.back=-1,n.mode=nr;break}if(_&64){e.msg="invalid literal/length code",n.mode=Fe;break}n.extra=_&15,n.mode=_C;case _C:if(n.extra){F=n.extra;while(d<F){if(a===0)break e;a--,u+=r[o++]<<d,d+=8}n.length+=u&(1<<n.extra)-1,u>>>=n.extra,d-=n.extra,n.back+=n.extra}n.was=n.length,n.mode=wC;case wC:for(;;){if(v=n.distcode[u&(1<<n.distbits)-1],b=v>>>24,_=v>>>16&255,m=v&65535,b<=d)break;if(a===0)break e;a--,u+=r[o++]<<d,d+=8}if((_&240)===0){x=b,D=_,A=m;for(;;){if(v=n.distcode[A+((u&(1<<x+D)-1)>>x)],b=v>>>24,_=v>>>16&255,m=v&65535,x+b<=d)break;if(a===0)break e;a--,u+=r[o++]<<d,d+=8}u>>>=x,d-=x,n.back+=x}if(u>>>=b,d-=b,n.back+=b,_&64){e.msg="invalid distance code",n.mode=Fe;break}n.offset=m,n.extra=_&15,n.mode=DC;case DC:if(n.extra){F=n.extra;while(d<F){if(a===0)break e;a--,u+=r[o++]<<d,d+=8}n.offset+=u&(1<<n.extra)-1,u>>>=n.extra,d-=n.extra,n.back+=n.extra}if(n.offset>n.dmax){e.msg="invalid distance too far back",n.mode=Fe;break}n.mode=EC;case EC:if(c===0)break e;if(p=h-c,n.offset>p){if(p=n.offset-p,p>n.whave){if(n.sane){e.msg="invalid distance too far back",n.mode=Fe;break}}if(p>n.wnext)p-=n.wnext,g=n.wsize-p;else g=n.wnext-p;if(p>n.length)p=n.length;y=n.window}else y=i,g=s-n.offset,p=n.length;if(p>c)p=c;c-=p,n.length-=p;do i[s++]=y[g++];while(--p);if(n.length===0)n.mode=Ql;break;case TC:if(c===0)break e;i[s++]=n.length,c--,n.mode=Ql;break;case ay:if(n.wrap){while(d<32){if(a===0)break e;a--,u|=r[o++]<<d,d+=8}if(h-=c,e.total_out+=h,n.total+=h,h)e.adler=n.check=n.flags?Rn(n.check,i,h,s-h):ly(n.check,i,h,s-h);if(h=c,(n.flags?u:AC(u))!==n.check){e.msg="incorrect data check",n.mode=Fe;break}u=0,d=0}n.mode=SC;case SC:if(n.wrap&&n.flags){while(d<32){if(a===0)break e;a--,u+=r[o++]<<d,d+=8}if(u!==(n.total&4294967295)){e.msg="incorrect length check",n.mode=Fe;break}u=0,d=0}n.mode=CC;case CC:U=_G;break e;case Fe:U=FC;break e;case fy:return dy;case EG:default:return zt}if(e.next_out=s,e.avail_out=c,e.next_in=o,e.avail_in=a,n.hold=u,n.bits=d,n.wsize||h!==e.avail_out&&n.mode<Fe&&(n.mode<ay||t!==oC)){if(BC(e,e.output,e.next_out,h-e.avail_out))return n.mode=fy,dy}if(f-=e.avail_in,h-=e.avail_out,e.total_in+=f,e.total_out+=h,n.total+=h,n.wrap&&h)e.adler=n.check=n.flags?Rn(n.check,i,h,e.next_out-h):ly(n.check,i,h,e.next_out-h);if(e.data_type=n.bits+(n.last?64:0)+(n.mode===nr?128:0)+(n.mode===Jl||n.mode===sy?256:0),(f===0&&h===0||t===oC)&&U===Mi)U=DG;return U}function OG(e){if(!e||!e.state)return zt;var t=e.state;if(t.window)t.window=null;return e.state=null,Mi}function PG(e,t){var n;if(!e||!e.state)return zt;if(n=e.state,(n.wrap&2)===0)return zt;return n.head=t,t.done=!1,Mi}function IG(e,t){var n=t.length,r,i,o;if(!e||!e.state)return zt;if(r=e.state,r.wrap!==0&&r.mode!==ed)return zt;if(r.mode===ed){if(i=1,i=ly(i,t,n,0),i!==r.check)return FC}if(o=BC(e,t,n,n),o)return r.mode=fy,dy;return r.havedict=1,Mi}MG.inflateReset=IC;MG.inflateReset2=MC;MG.inflateResetKeep=PC;MG.inflateInit=kG;MG.inflateInit2=NC;MG.inflate=FG;MG.inflateEnd=OG;MG.inflateGetHeader=PG;MG.inflateSetDictionary=IG;MG.inflateInfo="pako inflate (from Nodeca project)"});var hy=R(function(Ame,WC){WC.exports={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8}});var qC=R(function(Ume,jC){function VG(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}jC.exports=VG});var HC=R(function(YG){var qo=LC(),Pa=er(),td=Jm(),Ne=hy(),py=ql(),XG=Qm(),KG=qC(),$C=Object.prototype.toString;function Ni(e){if(!(this instanceof Ni))return new Ni(e);this.options=Pa.assign({chunkSize:16384,windowBits:0,to:""},e||{});var t=this.options;if(t.raw&&t.windowBits>=0&&t.windowBits<16){if(t.windowBits=-t.windowBits,t.windowBits===0)t.windowBits=-15}if(t.windowBits>=0&&t.windowBits<16&&!(e&&e.windowBits))t.windowBits+=32;if(t.windowBits>15&&t.windowBits<48){if((t.windowBits&15)===0)t.windowBits|=15}this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new XG,this.strm.avail_out=0;var n=qo.inflateInit2(this.strm,t.windowBits);if(n!==Ne.Z_OK)throw Error(py[n]);if(this.header=new KG,qo.inflateGetHeader(this.strm,this.header),t.dictionary){if(typeof t.dictionary==="string")t.dictionary=td.string2buf(t.dictionary);else if($C.call(t.dictionary)==="[object ArrayBuffer]")t.dictionary=new Uint8Array(t.dictionary);if(t.raw){if(n=qo.inflateSetDictionary(this.strm,t.dictionary),n!==Ne.Z_OK)throw Error(py[n])}}}Ni.prototype.push=function(e,t){var n=this.strm,r=this.options.chunkSize,i=this.options.dictionary,o,s,a,c,u,d=!1;if(this.ended)return!1;if(s=t===~~t?t:t===!0?Ne.Z_FINISH:Ne.Z_NO_FLUSH,typeof e==="string")n.input=td.binstring2buf(e);else if($C.call(e)==="[object ArrayBuffer]")n.input=new Uint8Array(e);else n.input=e;n.next_in=0,n.avail_in=n.input.length;do{if(n.avail_out===0)n.output=new Pa.Buf8(r),n.next_out=0,n.avail_out=r;if(o=qo.inflate(n,Ne.Z_NO_FLUSH),o===Ne.Z_NEED_DICT&&i)o=qo.inflateSetDictionary(this.strm,i);if(o===Ne.Z_BUF_ERROR&&d===!0)o=Ne.Z_OK,d=!1;if(o!==Ne.Z_STREAM_END&&o!==Ne.Z_OK)return this.onEnd(o),this.ended=!0,!1;if(n.next_out){if(n.avail_out===0||o===Ne.Z_STREAM_END||n.avail_in===0&&(s===Ne.Z_FINISH||s===Ne.Z_SYNC_FLUSH))if(this.options.to==="string"){if(a=td.utf8border(n.output,n.next_out),c=n.next_out-a,u=td.buf2string(n.output,a),n.next_out=c,n.avail_out=r-c,c)Pa.arraySet(n.output,n.output,a,c,0);this.onData(u)}else this.onData(Pa.shrinkBuf(n.output,n.next_out))}if(n.avail_in===0&&n.avail_out===0)d=!0}while((n.avail_in>0||n.avail_out===0)&&o!==Ne.Z_STREAM_END);if(o===Ne.Z_STREAM_END)s=Ne.Z_FINISH;if(s===Ne.Z_FINISH)return o=qo.inflateEnd(this.strm),this.onEnd(o),this.ended=!0,o===Ne.Z_OK;if(s===Ne.Z_SYNC_FLUSH)return this.onEnd(Ne.Z_OK),n.avail_out=0,!0;return!0};Ni.prototype.onData=function(e){this.chunks.push(e)};Ni.prototype.onEnd=function(e){if(e===Ne.Z_OK)if(this.options.to==="string")this.result=this.chunks.join("");else this.result=Pa.flattenChunks(this.chunks);this.chunks=[],this.err=e,this.msg=this.strm.msg};function gy(e,t){var n=new Ni(t);if(n.push(e,!0),n.err)throw n.msg||py[n.err];return n.result}function ZG(e,t){return t=t||{},t.raw=!0,gy(e,t)}YG.Inflate=Ni;YG.inflate=gy;YG.inflateRaw=ZG;YG.ungzip=gy});var VC=R(function(Rme,zC){var nz=er().assign,rz=KS(),iz=HC(),oz=hy(),GC={};nz(GC,rz,iz,oz);zC.exports=GC});var KC=R(function(uz){var sz=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Uint32Array<"u",az=VC(),XC=Pe(),nd=Pt(),cz=sz?"uint8array":"array";uz.magic="\b\x00";function Bi(e,t){nd.call(this,"FlateWorker/"+e),this._pako=null,this._pakoAction=e,this._pakoOptions=t,this.meta={}}XC.inherits(Bi,nd);Bi.prototype.processChunk=function(e){if(this.meta=e.meta,this._pako===null)this._createPako();this._pako.push(XC.transformTo(cz,e.data),!1)};Bi.prototype.flush=function(){if(nd.prototype.flush.call(this),this._pako===null)this._createPako();this._pako.push([],!0)};Bi.prototype.cleanUp=function(){nd.prototype.cleanUp.call(this),this._pako=null};Bi.prototype._createPako=function(){this._pako=new az[this._pakoAction]({raw:!0,level:this._pakoOptions.level||-1});var e=this;this._pako.onData=function(t){e.push({data:t,meta:e.meta})}};uz.compressWorker=function(e){return new Bi("Deflate",e)};uz.uncompressWorker=function(){return new Bi("Inflate",{})}});var my=R(function(hz){var ZC=Pt();hz.STORE={magic:"\x00\x00",compressWorker:function(){return new ZC("STORE compression")},uncompressWorker:function(){return new ZC("STORE decompression")}};hz.DEFLATE=KC()});var yy=R(function(mz){mz.LOCAL_FILE_HEADER="PK\x03\x04";mz.CENTRAL_FILE_HEADER="PK\x01\x02";mz.CENTRAL_DIRECTORY_END="PK\x05\x06";mz.ZIP64_CENTRAL_DIRECTORY_LOCATOR="PK\x06\x07";mz.ZIP64_CENTRAL_DIRECTORY_END="PK\x06\x06";mz.DATA_DESCRIPTOR="PK\x07\b"});var eA=R(function(Ime,QC){var $o=Pe(),Ho=Pt(),by=Oo(),YC=Bl(),rd=yy(),Ee=function(e,t){var n="",r;for(r=0;r<t;r++)n+=String.fromCharCode(e&255),e=e>>>8;return n},Dz=function(e,t){var n=e;if(!e)n=t?16893:33204;return(n&65535)<<16},Ez=function(e){return(e||0)&63},JC=function(e,t,n,r,i,o){var{file:s,compression:a}=e,c=o!==by.utf8encode,u=$o.transformTo("string",o(s.name)),d=$o.transformTo("string",by.utf8encode(s.name)),f=s.comment,h=$o.transformTo("string",o(f)),p=$o.transformTo("string",by.utf8encode(f)),g=d.length!==s.name.length,y=p.length!==f.length,v,b,_="",m="",x="",D=s.dir,A=s.date,E={crc32:0,compressedSize:0,uncompressedSize:0};if(!t||n)E.crc32=e.crc32,E.compressedSize=e.compressedSize,E.uncompressedSize=e.uncompressedSize;var U=0;if(t)U|=8;if(!c&&(g||y))U|=2048;var C=0,N=0;if(D)C|=16;if(i==="UNIX")N=798,C|=Dz(s.unixPermissions,D);else N=20,C|=Ez(s.dosPermissions,D);if(v=A.getUTCHours(),v=v<<6,v=v|A.getUTCMinutes(),v=v<<5,v=v|A.getUTCSeconds()/2,b=A.getUTCFullYear()-1980,b=b<<4,b=b|A.getUTCMonth()+1,b=b<<5,b=b|A.getUTCDate(),g)m=Ee(1,1)+Ee(YC(u),4)+d,_+="up"+Ee(m.length,2)+m;if(y)x=Ee(1,1)+Ee(YC(h),4)+p,_+="uc"+Ee(x.length,2)+x;var F="";F+=`
198
- \x00`,F+=Ee(U,2),F+=a.magic,F+=Ee(v,2),F+=Ee(b,2),F+=Ee(E.crc32,4),F+=Ee(E.compressedSize,4),F+=Ee(E.uncompressedSize,4),F+=Ee(u.length,2),F+=Ee(_.length,2);var S=rd.LOCAL_FILE_HEADER+F+u+_,B=rd.CENTRAL_FILE_HEADER+Ee(N,2)+F+Ee(h.length,2)+"\x00\x00\x00\x00"+Ee(C,4)+Ee(r,4)+u+_+h;return{fileRecord:S,dirRecord:B}},Tz=function(e,t,n,r,i){var o="",s=$o.transformTo("string",i(r));return o=rd.CENTRAL_DIRECTORY_END+"\x00\x00\x00\x00"+Ee(e,2)+Ee(e,2)+Ee(t,4)+Ee(n,4)+Ee(s.length,2)+s,o},Sz=function(e){var t="";return t=rd.DATA_DESCRIPTOR+Ee(e.crc32,4)+Ee(e.compressedSize,4)+Ee(e.uncompressedSize,4),t};function an(e,t,n,r){Ho.call(this,"ZipFileWorker"),this.bytesWritten=0,this.zipComment=t,this.zipPlatform=n,this.encodeFileName=r,this.streamFiles=e,this.accumulate=!1,this.contentBuffer=[],this.dirRecords=[],this.currentSourceOffset=0,this.entriesCount=0,this.currentFile=null,this._sources=[]}$o.inherits(an,Ho);an.prototype.push=function(e){var t=e.meta.percent||0,n=this.entriesCount,r=this._sources.length;if(this.accumulate)this.contentBuffer.push(e);else this.bytesWritten+=e.data.length,Ho.prototype.push.call(this,{data:e.data,meta:{currentFile:this.currentFile,percent:n?(t+100*(n-r-1))/n:100}})};an.prototype.openedSource=function(e){this.currentSourceOffset=this.bytesWritten,this.currentFile=e.file.name;var t=this.streamFiles&&!e.file.dir;if(t){var n=JC(e,t,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);this.push({data:n.fileRecord,meta:{percent:0}})}else this.accumulate=!0};an.prototype.closedSource=function(e){this.accumulate=!1;var t=this.streamFiles&&!e.file.dir,n=JC(e,t,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(n.dirRecord),t)this.push({data:Sz(e),meta:{percent:100}});else{this.push({data:n.fileRecord,meta:{percent:0}});while(this.contentBuffer.length)this.push(this.contentBuffer.shift())}this.currentFile=null};an.prototype.flush=function(){var e=this.bytesWritten;for(var t=0;t<this.dirRecords.length;t++)this.push({data:this.dirRecords[t],meta:{percent:100}});var n=this.bytesWritten-e,r=Tz(this.dirRecords.length,n,e,this.zipComment,this.encodeFileName);this.push({data:r,meta:{percent:100}})};an.prototype.prepareNextSource=function(){if(this.previous=this._sources.shift(),this.openedSource(this.previous.streamInfo),this.isPaused)this.previous.pause();else this.previous.resume()};an.prototype.registerPrevious=function(e){this._sources.push(e);var t=this;return e.on("data",function(n){t.processChunk(n)}),e.on("end",function(){if(t.closedSource(t.previous.streamInfo),t._sources.length)t.prepareNextSource();else t.end()}),e.on("error",function(n){t.error(n)}),this};an.prototype.resume=function(){if(!Ho.prototype.resume.call(this))return!1;if(!this.previous&&this._sources.length)return this.prepareNextSource(),!0;if(!this.previous&&!this._sources.length&&!this.generatedError)return this.end(),!0};an.prototype.error=function(e){var t=this._sources;if(!Ho.prototype.error.call(this,e))return!1;for(var n=0;n<t.length;n++)try{t[n].error(e)}catch(r){}return!0};an.prototype.lock=function(){Ho.prototype.lock.call(this);var e=this._sources;for(var t=0;t<e.length;t++)e[t].lock()};QC.exports=an});var tA=R(function(kz){var Cz=my(),Az=eA(),Uz=function(e,t){var n=e||t,r=Cz[n];if(!r)throw Error(n+" is not a valid compression method !");return r};kz.generateWorker=function(e,t,n){var r=new Az(t.streamFiles,n,t.platform,t.encodeFileName),i=0;try{e.forEach(function(o,s){i++;var a=Uz(s.options.compression,t.compression),c=s.options.compressionOptions||t.compressionOptions||{},u=s.dir,d=s.date;s._compressWorker(a,c).withStreamInfo("file",{name:o,dir:u,date:d,comment:s.comment||"",unixPermissions:s.unixPermissions,dosPermissions:s.dosPermissions}).pipe(r)}),r.entriesCount=i}catch(o){r.error(o)}return r}});var rA=R(function(Nme,nA){var Fz=Pe(),id=Pt();function Ia(e,t){id.call(this,"Nodejs stream input adapter for "+e),this._upstreamEnded=!1,this._bindStream(t)}Fz.inherits(Ia,id);Ia.prototype._bindStream=function(e){var t=this;this._stream=e,e.pause(),e.on("data",function(n){t.push({data:n,meta:{percent:0}})}).on("error",function(n){if(t.isPaused)this.generatedError=n;else t.error(n)}).on("end",function(){if(t.isPaused)t._upstreamEnded=!0;else t.end()})};Ia.prototype.pause=function(){if(!id.prototype.pause.call(this))return!1;return this._stream.pause(),!0};Ia.prototype.resume=function(){if(!id.prototype.resume.call(this))return!1;if(this._upstreamEnded)this.end();else this._stream.resume();return!0};nA.exports=Ia});var hA=R(function(Bme,fA){var Oz=Oo(),Ma=Pe(),aA=Pt(),Pz=wm(),cA=Dm(),iA=Ll(),Iz=oS(),Mz=tA(),oA=pa(),Nz=rA(),uA=function(e,t,n){var r=Ma.getTypeOf(t),i,o=Ma.extend(n||{},cA);if(o.date=o.date||new Date,o.compression!==null)o.compression=o.compression.toUpperCase();if(typeof o.unixPermissions==="string")o.unixPermissions=parseInt(o.unixPermissions,8);if(o.unixPermissions&&o.unixPermissions&16384)o.dir=!0;if(o.dosPermissions&&o.dosPermissions&16)o.dir=!0;if(o.dir)e=lA(e);if(o.createFolders&&(i=Bz(e)))dA.call(this,i,!0);var s=r==="string"&&o.binary===!1&&o.base64===!1;if(!n||typeof n.binary>"u")o.binary=!s;var a=t instanceof iA&&t.uncompressedSize===0;if(a||o.dir||!t||t.length===0)o.base64=!1,o.binary=!0,t="",o.compression="STORE",r="string";var c=null;if(t instanceof iA||t instanceof aA)c=t;else if(oA.isNode&&oA.isStream(t))c=new Nz(e,t);else c=Ma.prepareContent(e,t,o.binary,o.optimizedBinaryString,o.base64);var u=new Iz(e,c,o);this.files[e]=u},Bz=function(e){if(e.slice(-1)==="/")e=e.substring(0,e.length-1);var t=e.lastIndexOf("/");return t>0?e.substring(0,t):""},lA=function(e){if(e.slice(-1)!=="/")e+="/";return e},dA=function(e,t){if(t=typeof t<"u"?t:cA.createFolders,e=lA(e),!this.files[e])uA.call(this,e,null,{dir:!0,createFolders:t});return this.files[e]};function sA(e){return Object.prototype.toString.call(e)==="[object RegExp]"}var Lz={load:function(){throw Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},forEach:function(e){var t,n,r;for(t in this.files)if(r=this.files[t],n=t.slice(this.root.length,t.length),n&&t.slice(0,this.root.length)===this.root)e(n,r)},filter:function(e){var t=[];return this.forEach(function(n,r){if(e(n,r))t.push(r)}),t},file:function(e,t,n){if(arguments.length===1)if(sA(e)){var r=e;return this.filter(function(o,s){return!s.dir&&r.test(o)})}else{var i=this.files[this.root+e];if(i&&!i.dir)return i;else return null}else e=this.root+e,uA.call(this,e,t,n);return this},folder:function(e){if(!e)return this;if(sA(e))return this.filter(function(i,o){return o.dir&&e.test(i)});var t=this.root+e,n=dA.call(this,t),r=this.clone();return r.root=n.name,r},remove:function(e){e=this.root+e;var t=this.files[e];if(!t){if(e.slice(-1)!=="/")e+="/";t=this.files[e]}if(t&&!t.dir)delete this.files[e];else{var n=this.filter(function(i,o){return o.name.slice(0,e.length)===e});for(var r=0;r<n.length;r++)delete this.files[n[r].name]}return this},generate:function(){throw Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},generateInternalStream:function(e){var t,n={};try{if(n=Ma.extend(e||{},{streamFiles:!1,compression:"STORE",compressionOptions:null,type:"",platform:"DOS",comment:null,mimeType:"application/zip",encodeFileName:Oz.utf8encode}),n.type=n.type.toLowerCase(),n.compression=n.compression.toUpperCase(),n.type==="binarystring")n.type="string";if(!n.type)throw Error("No output type specified.");if(Ma.checkSupport(n.type),n.platform==="darwin"||n.platform==="freebsd"||n.platform==="linux"||n.platform==="sunos")n.platform="UNIX";if(n.platform==="win32")n.platform="DOS";var r=n.comment||this.comment||"";t=Mz.generateWorker(this,n,r)}catch(i){t=new aA("error"),t.error(i)}return new Pz(t,n.type||"string",n.mimeType)},generateAsync:function(e,t){return this.generateInternalStream(e).accumulate(t)},generateNodeStream:function(e,t){if(e=e||{},!e.type)e.type="nodebuffer";return this.generateInternalStream(e).toNodejsStream(t)}};fA.exports=Lz});var vy=R(function(Lme,gA){var Wz=Pe();function pA(e){this.data=e,this.length=e.length,this.index=0,this.zero=0}pA.prototype={checkOffset:function(e){this.checkIndex(this.index+e)},checkIndex:function(e){if(this.length<this.zero+e||e<0)throw Error("End of data reached (data length = "+this.length+", asked index = "+e+"). Corrupted zip ?")},setIndex:function(e){this.checkIndex(e),this.index=e},skip:function(e){this.setIndex(this.index+e)},byteAt:function(){},readInt:function(e){var t=0,n;this.checkOffset(e);for(n=this.index+e-1;n>=this.index;n--)t=(t<<8)+this.byteAt(n);return this.index+=e,t},readString:function(e){return Wz.transformTo("string",this.readData(e))},readData:function(){},lastIndexOfSignature:function(){},readAndCheckSignature:function(){},readDate:function(){var e=this.readInt(4);return new Date(Date.UTC((e>>25&127)+1980,(e>>21&15)-1,e>>16&31,e>>11&31,e>>5&63,(e&31)<<1))}};gA.exports=pA});var xy=R(function(Wme,yA){var mA=vy(),jz=Pe();function Go(e){mA.call(this,e);for(var t=0;t<this.data.length;t++)e[t]=e[t]&255}jz.inherits(Go,mA);Go.prototype.byteAt=function(e){return this.data[this.zero+e]};Go.prototype.lastIndexOfSignature=function(e){var t=e.charCodeAt(0),n=e.charCodeAt(1),r=e.charCodeAt(2),i=e.charCodeAt(3);for(var o=this.length-4;o>=0;--o)if(this.data[o]===t&&this.data[o+1]===n&&this.data[o+2]===r&&this.data[o+3]===i)return o-this.zero;return-1};Go.prototype.readAndCheckSignature=function(e){var t=e.charCodeAt(0),n=e.charCodeAt(1),r=e.charCodeAt(2),i=e.charCodeAt(3),o=this.readData(4);return t===o[0]&&n===o[1]&&r===o[2]&&i===o[3]};Go.prototype.readData=function(e){if(this.checkOffset(e),e===0)return[];var t=this.data.slice(this.zero+this.index,this.zero+this.index+e);return this.index+=e,t};yA.exports=Go});var xA=R(function(jme,vA){var bA=vy(),qz=Pe();function zo(e){bA.call(this,e)}qz.inherits(zo,bA);zo.prototype.byteAt=function(e){return this.data.charCodeAt(this.zero+e)};zo.prototype.lastIndexOfSignature=function(e){return this.data.lastIndexOf(e)-this.zero};zo.prototype.readAndCheckSignature=function(e){var t=this.readData(4);return e===t};zo.prototype.readData=function(e){this.checkOffset(e);var t=this.data.slice(this.zero+this.index,this.zero+this.index+e);return this.index+=e,t};vA.exports=zo});var wy=R(function(qme,wA){var _A=xy(),$z=Pe();function _y(e){_A.call(this,e)}$z.inherits(_y,_A);_y.prototype.readData=function(e){if(this.checkOffset(e),e===0)return new Uint8Array(0);var t=this.data.subarray(this.zero+this.index,this.zero+this.index+e);return this.index+=e,t};wA.exports=_y});var TA=R(function($me,EA){var DA=wy(),Hz=Pe();function Dy(e){DA.call(this,e)}Hz.inherits(Dy,DA);Dy.prototype.readData=function(e){this.checkOffset(e);var t=this.data.slice(this.zero+this.index,this.zero+this.index+e);return this.index+=e,t};EA.exports=Dy});var Ey=R(function(Hme,CA){var od=Pe(),SA=Qn(),Gz=xy(),zz=xA(),Vz=TA(),Xz=wy();CA.exports=function(e){var t=od.getTypeOf(e);if(od.checkSupport(t),t==="string"&&!SA.uint8array)return new zz(e);if(t==="nodebuffer")return new Vz(e);if(SA.uint8array)return new Xz(od.transformTo("uint8array",e));return new Gz(od.transformTo("array",e))}});var RA=R(function(Gme,kA){var Ty=Ey(),Kr=Pe(),Kz=Ll(),AA=Bl(),sd=Oo(),ad=my(),Zz=Qn(),Yz=0,Jz=3,Qz=function(e){for(var t in ad){if(!Object.prototype.hasOwnProperty.call(ad,t))continue;if(ad[t].magic===e)return ad[t]}return null};function UA(e,t){this.options=e,this.loadOptions=t}UA.prototype={isEncrypted:function(){return(this.bitFlag&1)===1},useUTF8:function(){return(this.bitFlag&2048)===2048},readLocalPart:function(e){var t,n;if(e.skip(22),this.fileNameLength=e.readInt(2),n=e.readInt(2),this.fileName=e.readData(this.fileNameLength),e.skip(n),this.compressedSize===-1||this.uncompressedSize===-1)throw Error("Bug or corrupted zip : didn't get enough information from the central directory (compressedSize === -1 || uncompressedSize === -1)");if(t=Qz(this.compressionMethod),t===null)throw Error("Corrupted zip : compression "+Kr.pretty(this.compressionMethod)+" unknown (inner file : "+Kr.transformTo("string",this.fileName)+")");this.decompressed=new Kz(this.compressedSize,this.uncompressedSize,this.crc32,t,e.readData(this.compressedSize))},readCentralPart:function(e){this.versionMadeBy=e.readInt(2),e.skip(2),this.bitFlag=e.readInt(2),this.compressionMethod=e.readString(2),this.date=e.readDate(),this.crc32=e.readInt(4),this.compressedSize=e.readInt(4),this.uncompressedSize=e.readInt(4);var t=e.readInt(2);if(this.extraFieldsLength=e.readInt(2),this.fileCommentLength=e.readInt(2),this.diskNumberStart=e.readInt(2),this.internalFileAttributes=e.readInt(2),this.externalFileAttributes=e.readInt(4),this.localHeaderOffset=e.readInt(4),this.isEncrypted())throw Error("Encrypted zip are not supported");e.skip(t),this.readExtraFields(e),this.parseZIP64ExtraField(e),this.fileComment=e.readData(this.fileCommentLength)},processAttributes:function(){this.unixPermissions=null,this.dosPermissions=null;var e=this.versionMadeBy>>8;if(this.dir=this.externalFileAttributes&16?!0:!1,e===Yz)this.dosPermissions=this.externalFileAttributes&63;if(e===Jz)this.unixPermissions=this.externalFileAttributes>>16&65535;if(!this.dir&&this.fileNameStr.slice(-1)==="/")this.dir=!0},parseZIP64ExtraField:function(){if(!this.extraFields[1])return;var e=Ty(this.extraFields[1].value);if(this.uncompressedSize===Kr.MAX_VALUE_32BITS)this.uncompressedSize=e.readInt(8);if(this.compressedSize===Kr.MAX_VALUE_32BITS)this.compressedSize=e.readInt(8);if(this.localHeaderOffset===Kr.MAX_VALUE_32BITS)this.localHeaderOffset=e.readInt(8);if(this.diskNumberStart===Kr.MAX_VALUE_32BITS)this.diskNumberStart=e.readInt(4)},readExtraFields:function(e){var t=e.index+this.extraFieldsLength,n,r,i;if(!this.extraFields)this.extraFields={};while(e.index+4<t)n=e.readInt(2),r=e.readInt(2),i=e.readData(r),this.extraFields[n]={id:n,length:r,value:i};e.setIndex(t)},handleUTF8:function(){var e=Zz.uint8array?"uint8array":"array";if(this.useUTF8())this.fileNameStr=sd.utf8decode(this.fileName),this.fileCommentStr=sd.utf8decode(this.fileComment);else{var t=this.findExtraFieldUnicodePath();if(t!==null)this.fileNameStr=t;else{var n=Kr.transformTo(e,this.fileName);this.fileNameStr=this.loadOptions.decodeFileName(n)}var r=this.findExtraFieldUnicodeComment();if(r!==null)this.fileCommentStr=r;else{var i=Kr.transformTo(e,this.fileComment);this.fileCommentStr=this.loadOptions.decodeFileName(i)}}},findExtraFieldUnicodePath:function(){var e=this.extraFields[28789];if(e){var t=Ty(e.value);if(t.readInt(1)!==1)return null;if(AA(this.fileName)!==t.readInt(4))return null;return sd.utf8decode(t.readData(e.length-5))}return null},findExtraFieldUnicodeComment:function(){var e=this.extraFields[25461];if(e){var t=Ty(e.value);if(t.readInt(1)!==1)return null;if(AA(this.fileComment)!==t.readInt(4))return null;return sd.utf8decode(t.readData(e.length-5))}return null}};kA.exports=UA});var PA=R(function(zme,OA){var eV=Ey(),rr=Pe(),cn=yy(),tV=RA(),nV=Qn();function FA(e){this.files=[],this.loadOptions=e}FA.prototype={checkSignature:function(e){if(!this.reader.readAndCheckSignature(e)){this.reader.index-=4;var t=this.reader.readString(4);throw Error("Corrupted zip or bug: unexpected signature ("+rr.pretty(t)+", expected "+rr.pretty(e)+")")}},isSignature:function(e,t){var n=this.reader.index;this.reader.setIndex(e);var r=this.reader.readString(4),i=r===t;return this.reader.setIndex(n),i},readBlockEndOfCentral:function(){this.diskNumber=this.reader.readInt(2),this.diskWithCentralDirStart=this.reader.readInt(2),this.centralDirRecordsOnThisDisk=this.reader.readInt(2),this.centralDirRecords=this.reader.readInt(2),this.centralDirSize=this.reader.readInt(4),this.centralDirOffset=this.reader.readInt(4),this.zipCommentLength=this.reader.readInt(2);var e=this.reader.readData(this.zipCommentLength),t=nV.uint8array?"uint8array":"array",n=rr.transformTo(t,e);this.zipComment=this.loadOptions.decodeFileName(n)},readBlockZip64EndOfCentral:function(){this.zip64EndOfCentralSize=this.reader.readInt(8),this.reader.skip(4),this.diskNumber=this.reader.readInt(4),this.diskWithCentralDirStart=this.reader.readInt(4),this.centralDirRecordsOnThisDisk=this.reader.readInt(8),this.centralDirRecords=this.reader.readInt(8),this.centralDirSize=this.reader.readInt(8),this.centralDirOffset=this.reader.readInt(8),this.zip64ExtensibleData={};var e=this.zip64EndOfCentralSize-44,t=0,n,r,i;while(t<e)n=this.reader.readInt(2),r=this.reader.readInt(4),i=this.reader.readData(r),this.zip64ExtensibleData[n]={id:n,length:r,value:i}},readBlockZip64EndOfCentralLocator:function(){if(this.diskWithZip64CentralDirStart=this.reader.readInt(4),this.relativeOffsetEndOfZip64CentralDir=this.reader.readInt(8),this.disksCount=this.reader.readInt(4),this.disksCount>1)throw Error("Multi-volumes zip are not supported")},readLocalFiles:function(){var e,t;for(e=0;e<this.files.length;e++)t=this.files[e],this.reader.setIndex(t.localHeaderOffset),this.checkSignature(cn.LOCAL_FILE_HEADER),t.readLocalPart(this.reader),t.handleUTF8(),t.processAttributes()},readCentralDir:function(){var e;this.reader.setIndex(this.centralDirOffset);while(this.reader.readAndCheckSignature(cn.CENTRAL_FILE_HEADER))e=new tV({zip64:this.zip64},this.loadOptions),e.readCentralPart(this.reader),this.files.push(e);if(this.centralDirRecords!==this.files.length){if(this.centralDirRecords!==0&&this.files.length===0)throw Error("Corrupted zip or bug: expected "+this.centralDirRecords+" records in central dir, got "+this.files.length)}},readEndOfCentral:function(){var e=this.reader.lastIndexOfSignature(cn.CENTRAL_DIRECTORY_END);if(e<0){var t=!this.isSignature(0,cn.LOCAL_FILE_HEADER);if(t)throw Error("Can't find end of central directory : is this a zip file ? If it is, see https://stuk.github.io/jszip/documentation/howto/read_zip.html");else throw Error("Corrupted zip: can't find end of central directory")}this.reader.setIndex(e);var n=e;if(this.checkSignature(cn.CENTRAL_DIRECTORY_END),this.readBlockEndOfCentral(),this.diskNumber===rr.MAX_VALUE_16BITS||this.diskWithCentralDirStart===rr.MAX_VALUE_16BITS||this.centralDirRecordsOnThisDisk===rr.MAX_VALUE_16BITS||this.centralDirRecords===rr.MAX_VALUE_16BITS||this.centralDirSize===rr.MAX_VALUE_32BITS||this.centralDirOffset===rr.MAX_VALUE_32BITS){if(this.zip64=!0,e=this.reader.lastIndexOfSignature(cn.ZIP64_CENTRAL_DIRECTORY_LOCATOR),e<0)throw Error("Corrupted zip: can't find the ZIP64 end of central directory locator");if(this.reader.setIndex(e),this.checkSignature(cn.ZIP64_CENTRAL_DIRECTORY_LOCATOR),this.readBlockZip64EndOfCentralLocator(),!this.isSignature(this.relativeOffsetEndOfZip64CentralDir,cn.ZIP64_CENTRAL_DIRECTORY_END)){if(this.relativeOffsetEndOfZip64CentralDir=this.reader.lastIndexOfSignature(cn.ZIP64_CENTRAL_DIRECTORY_END),this.relativeOffsetEndOfZip64CentralDir<0)throw Error("Corrupted zip: can't find the ZIP64 end of central directory")}this.reader.setIndex(this.relativeOffsetEndOfZip64CentralDir),this.checkSignature(cn.ZIP64_CENTRAL_DIRECTORY_END),this.readBlockZip64EndOfCentral()}var r=this.centralDirOffset+this.centralDirSize;if(this.zip64)r+=20,r+=12+this.zip64EndOfCentralSize;var i=n-r;if(i>0)if(this.isSignature(n,cn.CENTRAL_FILE_HEADER));else this.reader.zero=i;else if(i<0)throw Error("Corrupted zip: missing "+Math.abs(i)+" bytes.")},prepareReader:function(e){this.reader=eV(e)},load:function(e){this.prepareReader(e),this.readEndOfCentral(),this.readCentralDir(),this.readLocalFiles()}};OA.exports=FA});var NA=R(function(Vme,MA){var Sy=Pe(),cd=ko(),rV=Oo(),iV=PA(),oV=Sm(),IA=pa();function sV(e){return new cd.Promise(function(t,n){var r=e.decompressed.getContentWorker().pipe(new oV);r.on("error",function(i){n(i)}).on("end",function(){if(r.streamInfo.crc32!==e.decompressed.crc32)n(Error("Corrupted zip : CRC32 mismatch"));else t()}).resume()})}MA.exports=function(e,t){var n=this;if(t=Sy.extend(t||{},{base64:!1,checkCRC32:!1,optimizedBinaryString:!1,createFolders:!1,decodeFileName:rV.utf8decode}),IA.isNode&&IA.isStream(e))return cd.Promise.reject(Error("JSZip can't accept a stream when loading a zip file."));return Sy.prepareContent("the loaded zip file",e,!0,t.optimizedBinaryString,t.base64).then(function(r){var i=new iV(t);return i.load(r),i}).then(function(i){var o=[cd.Promise.resolve(i)],s=i.files;if(t.checkCRC32)for(var a=0;a<s.length;a++)o.push(sV(s[a]));return cd.Promise.all(o)}).then(function(i){var o=i.shift(),s=o.files;for(var a=0;a<s.length;a++){var c=s[a],u=c.fileNameStr,d=Sy.resolve(c.fileNameStr);if(n.file(d,c.decompressed,{binary:!0,optimizedBinaryString:!0,date:c.date,dir:c.dir,comment:c.fileCommentStr.length?c.fileCommentStr:null,unixPermissions:c.unixPermissions,dosPermissions:c.dosPermissions,createFolders:t.createFolders}),!c.dir)n.file(d).unsafeOriginalName=u}if(o.zipComment.length)n.comment=o.zipComment;return n})}});var LA=R(function(Xme,BA){function Vt(){if(!(this instanceof Vt))return new Vt;if(arguments.length)throw Error("The constructor with parameters has been removed in JSZip 3.0, please check the upgrade guide.");this.files=Object.create(null),this.comment=null,this.root="",this.clone=function(){var e=new Vt;for(var t in this)if(typeof this[t]!=="function")e[t]=this[t];return e}}Vt.prototype=hA();Vt.prototype.loadAsync=NA();Vt.support=Qn();Vt.defaults=Dm();Vt.version="3.10.1";Vt.loadAsync=function(e,t){return new Vt().loadAsync(e,t)};Vt.external=ko();BA.exports=Vt});var Cy=R(function(fV){var aV=TE(),cV=LA();fV.openArrayBuffer=uV;fV.splitPath=lV;fV.joinPath=dV;function uV(e){return cV.loadAsync(e).then(function(t){function n(s){return t.file(s)!==null}function r(s,a){return t.file(s).async("uint8array").then(function(c){if(a==="base64")return aV.fromByteArray(c);else if(a){var u=new TextDecoder(a);return u.decode(c)}else return c})}function i(s,a){t.file(s,a)}function o(){return t.generateAsync({type:"arraybuffer"})}return{exists:n,read:r,write:i,toArrayBuffer:o}})}function lV(e){var t=e.lastIndexOf("/");if(t===-1)return{dirname:"",basename:e};else return{dirname:e.substring(0,t),basename:e.substring(t+1)}}function dV(){var e=Array.prototype.filter.call(arguments,function(n){return n}),t=[];return e.forEach(function(n){if(/^\//.test(n))t=[n];else t.push(n)}),t.join("/")}});var Ay=R(function(yV){var ud=Me();yV.Element=Vo;yV.element=function(e,t,n){return new Vo(e,t,n)};yV.text=function(e){return{type:"text",value:e}};var WA=yV.emptyElement={first:function(){return null},firstOrEmpty:function(){return WA},attributes:{},children:[]};function Vo(e,t,n){this.type="element",this.name=e,this.attributes=t||{},this.children=n||[]}Vo.prototype.first=function(e){return ud.find(this.children,function(t){return t.name===e})};Vo.prototype.firstOrEmpty=function(e){return this.first(e)||WA};Vo.prototype.getElementsByTagName=function(e){var t=ud.filter(this.children,function(n){return n.name===e});return jA(t)};Vo.prototype.text=function(){if(this.children.length===0)return"";else if(this.children.length!==1||this.children[0].type!=="text")throw Error("Not implemented");return this.children[0].value};var mV={getElementsByTagName:function(e){return jA(ud.flatten(this.map(function(t){return t.getElementsByTagName(e)},!0)))}};function jA(e){return ud.extend(e,mV)}});var Xo=R(function(EV){function _V(e,t,n){if(n===void 0)n=Array.prototype;if(e&&typeof n.find==="function")return n.find.call(e,t);for(var r=0;r<e.length;r++)if(Object.prototype.hasOwnProperty.call(e,r)){var i=e[r];if(t.call(void 0,i,r,e))return i}}function ky(e,t){if(t===void 0)t=Object;return t&&typeof t.freeze==="function"?t.freeze(e):e}function wV(e,t){if(e===null||typeof e!=="object")throw TypeError("target is not an object");for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n))e[n]=t[n];return e}var qA=ky({HTML:"text/html",isHTML:function(e){return e===qA.HTML},XML_APPLICATION:"application/xml",XML_TEXT:"text/xml",XML_XHTML_APPLICATION:"application/xhtml+xml",XML_SVG_IMAGE:"image/svg+xml"}),$A=ky({HTML:"http://www.w3.org/1999/xhtml",isHTML:function(e){return e===$A.HTML},SVG:"http://www.w3.org/2000/svg",XML:"http://www.w3.org/XML/1998/namespace",XMLNS:"http://www.w3.org/2000/xmlns/"}),ld=/[A-Z_a-z\xC0-\xD6\xD8-\xF6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,Uy=new RegExp("[\\-\\.0-9"+ld.source.slice(1,-1)+"\\u00B7\\u0300-\\u036F\\u203F-\\u2040]"),DV=new RegExp("^"+ld.source+Uy.source+"*(?::"+ld.source+Uy.source+"*)?$");EV.assign=wV;EV.find=_V;EV.freeze=ky;EV.MIME_TYPE=qA;EV.NAMESPACE=$A;EV.nameStartChar=ld;EV.nameChar=Uy;EV.tagNamePattern=DV});var vd=R(function(VV){var Ry=Xo(),Fn=Ry.find,Ba=Ry.NAMESPACE,Ko=Ry.tagNamePattern;function OV(e){return e!==""}function PV(e){return e?e.split(/[\t\n\f\r ]+/).filter(OV):[]}function IV(e,t){if(!e.hasOwnProperty(t))e[t]=!0;return e}function HA(e){if(!e)return[];var t=PV(e);return Object.keys(t.reduce(IV,{}))}function MV(e){return function(t){return e&&e.indexOf(t)!==-1}}function Wa(e,t){for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n))t[n]=e[n]}function kt(e,t){var n=e.prototype;if(!(n instanceof t)){let i=function(){};var r=i;i.prototype=t.prototype,i=new i,Wa(n,i),e.prototype=n=i}if(n.constructor!=e){if(typeof e!="function")console.error("unknown Class:"+e);n.constructor=e}}var Rt={},Xt=Rt.ELEMENT_NODE=1,Zo=Rt.ATTRIBUTE_NODE=2,Na=Rt.TEXT_NODE=3,JA=Rt.CDATA_SECTION_NODE=4,QA=Rt.ENTITY_REFERENCE_NODE=5,NV=Rt.ENTITY_NODE=6,Fy=Rt.PROCESSING_INSTRUCTION_NODE=7,Oy=Rt.COMMENT_NODE=8,eU=Rt.DOCUMENT_NODE=9,tU=Rt.DOCUMENT_TYPE_NODE=10,ir=Rt.DOCUMENT_FRAGMENT_NODE=11,BV=Rt.NOTATION_NODE=12,ht={},Ye={},Qme=ht.INDEX_SIZE_ERR=(Ye[1]="Index size error",1),eye=ht.DOMSTRING_SIZE_ERR=(Ye[2]="DOMString size error",2),Ut=ht.HIERARCHY_REQUEST_ERR=(Ye[3]="Hierarchy request error",3),tye=ht.WRONG_DOCUMENT_ERR=(Ye[4]="Wrong document",4),GA=ht.INVALID_CHARACTER_ERR=(Ye[5]="Invalid character",5),nye=ht.NO_DATA_ALLOWED_ERR=(Ye[6]="No data allowed",6),rye=ht.NO_MODIFICATION_ALLOWED_ERR=(Ye[7]="No modification allowed",7),nU=ht.NOT_FOUND_ERR=(Ye[8]="Not found",8),iye=ht.NOT_SUPPORTED_ERR=(Ye[9]="Not supported",9),zA=ht.INUSE_ATTRIBUTE_ERR=(Ye[10]="Attribute in use",10),un=ht.INVALID_STATE_ERR=(Ye[11]="Invalid state",11),oye=ht.SYNTAX_ERR=(Ye[12]="Syntax error",12),sye=ht.INVALID_MODIFICATION_ERR=(Ye[13]="Invalid modification",13),aye=ht.NAMESPACE_ERR=(Ye[14]="Invalid namespace",14),cye=ht.INVALID_ACCESS_ERR=(Ye[15]="Invalid access",15);function ue(e,t){if(t instanceof Error)var n=t;else if(n=this,Error.call(this,Ye[e]),this.message=Ye[e],Error.captureStackTrace)Error.captureStackTrace(this,ue);if(n.code=e,t)this.message=this.message+": "+t;return n}ue.prototype=Error.prototype;Wa(ht,ue);function or(){}or.prototype={length:0,item:function(e){return e>=0&&e<this.length?this[e]:null},toString:function(e,t,n){var r=!!n&&!!n.requireWellFormed;for(var i=[],o=0;o<this.length;o++)jy(this[o],i,e,t,null,r);return i.join("")},filter:function(e){return Array.prototype.filter.call(this,e)},indexOf:function(e){return Array.prototype.indexOf.call(this,e)}};function Yo(e,t){this._node=e,this._refresh=t,Py(this)}function Py(e){var t=e._node._inc||e._node.ownerDocument._inc;if(e._inc!==t){var n=e._refresh(e._node);if(gU(e,"length",n.length),!e.$$length||n.length<e.$$length){for(var r=n.length;r in e;r++)if(Object.prototype.hasOwnProperty.call(e,r))delete e[r]}Wa(n,e),e._inc=t}}Yo.prototype.item=function(e){return Py(this),this[e]||null};kt(Yo,or);function fd(){this._nameIndex=Object.create(null)}function rU(e,t){var n=e.length;while(n--)if(e[n]===t)return n}function LV(e,t){e._nameIndex[t.nodeName]=t}function iU(e,t){if(e._nameIndex[t.nodeName]===t)delete e._nameIndex[t.nodeName]}function VA(e,t,n,r){if(r)t[rU(t,r)]=n,iU(t,r);else t[t.length++]=n;if(LV(t,n),e){n.ownerElement=e;var i=e.ownerDocument;if(i)r&&aU(i,e,r),WV(i,e,n)}}function XA(e,t,n){var r=rU(t,n);if(r>=0){var i=t.length-1;while(r<i)t[r]=t[++r];if(t.length=i,iU(t,n),e){var o=e.ownerDocument;if(o)aU(o,e,n),n.ownerElement=null}}else throw new ue(nU,Error(e.tagName+"@"+n))}fd.prototype={length:0,item:or.prototype.item,getNamedItem:function(e){var t=this.length;while(t--){var n=this[t];if(n.nodeName==e)return n}},setNamedItem:function(e){var t=e.ownerElement;if(t&&t!=this._ownerElement)throw new ue(zA);var n=this._nameIndex[e.nodeName];return VA(this._ownerElement,this,e,n),n},setNamedItemNS:function(e){var t=e.ownerElement,n;if(t&&t!=this._ownerElement)throw new ue(zA);return n=this.getNamedItemNS(e.namespaceURI,e.localName),VA(this._ownerElement,this,e,n),n},removeNamedItem:function(e){var t=this.getNamedItem(e);return XA(this._ownerElement,this,t),t},removeNamedItemNS:function(e,t){var n=this.getNamedItemNS(e,t);return XA(this._ownerElement,this,n),n},getNamedItemNS:function(e,t){var n=this.length;while(n--){var r=this[n];if(r.localName==t&&r.namespaceURI==e)return r}return null}};function oU(){}oU.prototype={hasFeature:function(e,t){return!0},createDocument:function(e,t,n){var r=new ja;if(r.implementation=this,r.childNodes=new or,r.doctype=n||null,n)r.appendChild(n);if(t){var i=r.createElementNS(e,t);r.appendChild(i)}return r},createDocumentType:function(e,t,n){var r=new yd;return r.name=e,r.nodeName=e,r.publicId=t||"",r.systemId=n||"",r}};function _e(){}_e.prototype={firstChild:null,lastChild:null,previousSibling:null,nextSibling:null,attributes:null,parentNode:null,childNodes:null,ownerDocument:null,nodeValue:null,namespaceURI:null,prefix:null,localName:null,insertBefore:function(e,t){return pd(this,e,t)},replaceChild:function(e,t){if(pd(this,e,t,uU),t)this.removeChild(t)},removeChild:function(e){return cU(this,e)},appendChild:function(e){return this.insertBefore(e,null)},hasChildNodes:function(){return this.firstChild!=null},cloneNode:function(e){return pU(this.ownerDocument||this,this,e)},normalize:function(){Ze(this,null,{enter:function(e){var t=e.firstChild;while(t){var n=t.nextSibling;if(n!==null&&n.nodeType===Na&&t.nodeType===Na){var r=[],i=n;while(i!==null&&i.nodeType===Na)r.push(i.data),i=i.nextSibling;var o=t.nextSibling;while(o!==i){var s=o.nextSibling;o.parentNode=null,o.previousSibling=null,o.nextSibling=null,o=s}if(t.nextSibling=i,i!==null)i.previousSibling=t;else e.lastChild=t;t.appendData(r.join("")),md(e.ownerDocument,e),t=i}else t=n}return!0}})},isSupported:function(e,t){return this.ownerDocument.implementation.hasFeature(e,t)},hasAttributes:function(){return this.attributes.length>0},lookupPrefix:function(e){var t=this;while(t){var n=t._nsMap;if(n){for(var r in n)if(Object.prototype.hasOwnProperty.call(n,r)&&n[r]===e)return r}t=t.nodeType==Zo?t.ownerDocument:t.parentNode}return null},lookupNamespaceURI:function(e){var t=this;while(t){var n=t._nsMap;if(n){if(Object.prototype.hasOwnProperty.call(n,e))return n[e]}t=t.nodeType==Zo?t.ownerDocument:t.parentNode}return null},isDefaultNamespace:function(e){var t=this.lookupPrefix(e);return t==null}};function sU(e){return e=="<"&&"&lt;"||e==">"&&"&gt;"||e=="&"&&"&amp;"||e=='"'&&"&quot;"||"&#"+e.charCodeAt()+";"}Wa(Rt,_e);Wa(Rt,_e.prototype);function hd(e,t){return Ze(e,null,{enter:function(n){return t(n)?Ze.STOP:!0}})===Ze.STOP}function Ze(e,t,n){var r=[{node:e,context:t,phase:Ze.ENTER}];while(r.length>0){var i=r.pop();if(i.phase===Ze.ENTER){var o=n.enter(i.node,i.context);if(o===Ze.STOP)return Ze.STOP;if(r.push({node:i.node,context:o,phase:Ze.EXIT}),o===null||o===void 0)continue;var s=i.node.lastChild;while(s)r.push({node:s,context:o,phase:Ze.ENTER}),s=s.previousSibling}else if(n.exit)n.exit(i.node,i.context)}}Ze.STOP=Symbol("walkDOM.STOP");Ze.ENTER=0;Ze.EXIT=1;function ja(){this.ownerDocument=this}function WV(e,t,n){e&&e._inc++;var r=n.namespaceURI;if(r===Ba.XMLNS)t._nsMap[n.prefix?n.localName:""]=n.value}function aU(e,t,n,r){e&&e._inc++;var i=n.namespaceURI;if(i===Ba.XMLNS)delete t._nsMap[n.prefix?n.localName:""]}function md(e,t,n){if(e&&e._inc){e._inc++;var r=t.childNodes;if(n)r[r.length++]=n;else{var i=t.firstChild,o=0;while(i)r[o++]=i,i=i.nextSibling;r.length=o,delete r[r.length]}}}function cU(e,t){var{previousSibling:n,nextSibling:r}=t;if(n)n.nextSibling=r;else e.firstChild=r;if(r)r.previousSibling=n;else e.lastChild=n;return t.parentNode=null,t.previousSibling=null,t.nextSibling=null,md(e.ownerDocument,e),t}function jV(e){return e&&(e.nodeType===_e.DOCUMENT_NODE||e.nodeType===_e.DOCUMENT_FRAGMENT_NODE||e.nodeType===_e.ELEMENT_NODE)}function qV(e){return e&&(On(e)||Iy(e)||sr(e)||e.nodeType===_e.DOCUMENT_FRAGMENT_NODE||e.nodeType===_e.COMMENT_NODE||e.nodeType===_e.PROCESSING_INSTRUCTION_NODE)}function sr(e){return e&&e.nodeType===_e.DOCUMENT_TYPE_NODE}function On(e){return e&&e.nodeType===_e.ELEMENT_NODE}function Iy(e){return e&&e.nodeType===_e.TEXT_NODE}function KA(e,t){var n=e.childNodes||[];if(Fn(n,On)||sr(t))return!1;var r=Fn(n,sr);return!(t&&r&&n.indexOf(r)>n.indexOf(t))}function ZA(e,t){var n=e.childNodes||[];function r(o){return On(o)&&o!==t}if(Fn(n,r))return!1;var i=Fn(n,sr);return!(t&&i&&n.indexOf(i)>n.indexOf(t))}function $V(e,t,n){if(!jV(e))throw new ue(Ut,"Unexpected parent node type "+e.nodeType);if(n&&n.parentNode!==e)throw new ue(nU,"child not in parent");if(!qV(t)||sr(t)&&e.nodeType!==_e.DOCUMENT_NODE)throw new ue(Ut,"Unexpected node type "+t.nodeType+" for parent node type "+e.nodeType)}function HV(e,t,n){var r=e.childNodes||[],i=t.childNodes||[];if(t.nodeType===_e.DOCUMENT_FRAGMENT_NODE){var o=i.filter(On);if(o.length>1||Fn(i,Iy))throw new ue(Ut,"More than one element or text in fragment");if(o.length===1&&!KA(e,n))throw new ue(Ut,"Element in fragment can not be inserted before doctype")}if(On(t)){if(!KA(e,n))throw new ue(Ut,"Only one element can be added and only after doctype")}if(sr(t)){if(Fn(r,sr))throw new ue(Ut,"Only one doctype is allowed");var s=Fn(r,On);if(n&&r.indexOf(s)<r.indexOf(n))throw new ue(Ut,"Doctype can only be inserted before an element");if(!n&&s)throw new ue(Ut,"Doctype can not be appended since element is present")}}function uU(e,t,n){var r=e.childNodes||[],i=t.childNodes||[];if(t.nodeType===_e.DOCUMENT_FRAGMENT_NODE){var o=i.filter(On);if(o.length>1||Fn(i,Iy))throw new ue(Ut,"More than one element or text in fragment");if(o.length===1&&!ZA(e,n))throw new ue(Ut,"Element in fragment can not be inserted before doctype")}if(On(t)){if(!ZA(e,n))throw new ue(Ut,"Only one element can be added and only after doctype")}if(sr(t)){let c=function(u){return sr(u)&&u!==n};var a=c;if(Fn(r,c))throw new ue(Ut,"Only one doctype is allowed");var s=Fn(r,On);if(n&&r.indexOf(s)<r.indexOf(n))throw new ue(Ut,"Doctype can only be inserted before an element")}}function pd(e,t,n,r){if($V(e,t,n),e.nodeType===_e.DOCUMENT_NODE)(r||HV)(e,t,n);var i=t.parentNode;if(i)i.removeChild(t);if(t.nodeType===ir){var o=t.firstChild;if(o==null)return t;var s=t.lastChild}else o=s=t;var a=n?n.previousSibling:e.lastChild;if(o.previousSibling=a,s.nextSibling=n,a)a.nextSibling=o;else e.firstChild=o;if(n==null)e.lastChild=s;else n.previousSibling=s;do{o.parentNode=e;var c=e.ownerDocument||e;La(o,c)}while(o!==s&&(o=o.nextSibling));if(md(e.ownerDocument||e,e),t.nodeType==ir)t.firstChild=t.lastChild=null;return t}function La(e,t){if(e.ownerDocument===t)return;if(e.ownerDocument=t,e.nodeType===Xt&&e.attributes)for(var n=0;n<e.attributes.length;n++){var r=e.attributes.item(n);if(r)r.ownerDocument=t}var i=e.firstChild;while(i)La(i,t),i=i.nextSibling}function GV(e,t){if(t.parentNode)t.parentNode.removeChild(t);if(t.parentNode=e,t.previousSibling=e.lastChild,t.nextSibling=null,t.previousSibling)t.previousSibling.nextSibling=t;else e.firstChild=t;e.lastChild=t,md(e.ownerDocument,e,t);var n=e.ownerDocument||e;return La(t,n),t}ja.prototype={nodeName:"#document",nodeType:eU,doctype:null,documentElement:null,_inc:1,insertBefore:function(e,t){if(e.nodeType==ir){var n=e.firstChild;while(n){var r=n.nextSibling;this.insertBefore(n,t),n=r}return e}if(pd(this,e,t),La(e,this),this.documentElement===null&&e.nodeType===Xt)this.documentElement=e;return e},removeChild:function(e){if(this.documentElement==e)this.documentElement=null;return cU(this,e)},replaceChild:function(e,t){if(pd(this,e,t,uU),La(e,this),t)this.removeChild(t);if(On(e))this.documentElement=e},importNode:function(e,t){return zV(this,e,t)},getElementById:function(e){var t=null;return hd(this.documentElement,function(n){if(n.nodeType==Xt){if(n.getAttribute("id")==e)return t=n,!0}}),t},getElementsByClassName:function(e){var t=HA(e);return new Yo(this,function(n){var r=[];if(t.length>0)hd(n.documentElement,function(i){if(i!==n&&i.nodeType===Xt){var o=i.getAttribute("class");if(o){var s=e===o;if(!s){var a=HA(o);s=t.every(MV(a))}if(s)r.push(i)}}});return r})},createElement:function(e){var t=new Li;t.ownerDocument=this,t.nodeName=e,t.tagName=e,t.localName=e,t.childNodes=new or;var n=t.attributes=new fd;return n._ownerElement=t,t},createDocumentFragment:function(){var e=new bd;return e.ownerDocument=this,e.childNodes=new or,e},createTextNode:function(e){var t=new My;return t.ownerDocument=this,t.appendData(e),t},createComment:function(e){var t=new Ny;return t.ownerDocument=this,t.appendData(e),t},createCDATASection:function(e){if(e.indexOf("]]>")!==-1)throw new ue(GA,'data contains "]]>"');var t=new By;return t.ownerDocument=this,t.appendData(e),t},createProcessingInstruction:function(e,t){var n=new Wy;return n.ownerDocument=this,n.tagName=n.nodeName=n.target=e,n.nodeValue=n.data=t,n},createAttribute:function(e){var t=new gd;return t.ownerDocument=this,t.name=e,t.nodeName=e,t.localName=e,t.specified=!0,t},createEntityReference:function(e){if(!Ko.test(e))throw new ue(GA,'not a valid xml name "'+e+'"');var t=new Ly;return t.ownerDocument=this,t.nodeName=e,t},createElementNS:function(e,t){var n=new Li,r=t.split(":"),i=n.attributes=new fd;if(n.childNodes=new or,n.ownerDocument=this,n.nodeName=t,n.tagName=t,n.namespaceURI=e,r.length==2)n.prefix=r[0],n.localName=r[1];else n.localName=t;return i._ownerElement=n,n},createAttributeNS:function(e,t){var n=new gd,r=t.split(":");if(n.ownerDocument=this,n.nodeName=t,n.name=t,n.namespaceURI=e,n.specified=!0,r.length==2)n.prefix=r[0],n.localName=r[1];else n.localName=t;return n}};kt(ja,_e);function Li(){this._nsMap={}}Li.prototype={nodeType:Xt,hasAttribute:function(e){return this.getAttributeNode(e)!=null},getAttribute:function(e){var t=this.getAttributeNode(e);return t&&t.value||""},getAttributeNode:function(e){return this.attributes.getNamedItem(e)},setAttribute:function(e,t){var n=this.ownerDocument.createAttribute(e);n.value=n.nodeValue=""+t,this.setAttributeNode(n)},removeAttribute:function(e){var t=this.getAttributeNode(e);t&&this.removeAttributeNode(t)},appendChild:function(e){if(e.nodeType===ir)return this.insertBefore(e,null);else return GV(this,e)},setAttributeNode:function(e){return this.attributes.setNamedItem(e)},setAttributeNodeNS:function(e){return this.attributes.setNamedItemNS(e)},removeAttributeNode:function(e){return this.attributes.removeNamedItem(e.nodeName)},removeAttributeNS:function(e,t){var n=this.getAttributeNodeNS(e,t);n&&this.removeAttributeNode(n)},hasAttributeNS:function(e,t){return this.getAttributeNodeNS(e,t)!=null},getAttributeNS:function(e,t){var n=this.getAttributeNodeNS(e,t);return n&&n.value||""},setAttributeNS:function(e,t,n){var r=this.ownerDocument.createAttributeNS(e,t);r.value=r.nodeValue=""+n,this.setAttributeNode(r)},getAttributeNodeNS:function(e,t){return this.attributes.getNamedItemNS(e,t)},getElementsByTagName:function(e){return new Yo(this,function(t){var n=[];return hd(t,function(r){if(r!==t&&r.nodeType==Xt&&(e==="*"||r.tagName==e))n.push(r)}),n})},getElementsByTagNameNS:function(e,t){return new Yo(this,function(n){var r=[];return hd(n,function(i){if(i!==n&&i.nodeType===Xt&&(e==="*"||i.namespaceURI===e)&&(t==="*"||i.localName==t))r.push(i)}),r})}};ja.prototype.getElementsByTagName=Li.prototype.getElementsByTagName;ja.prototype.getElementsByTagNameNS=Li.prototype.getElementsByTagNameNS;kt(Li,_e);function gd(){}gd.prototype.nodeType=Zo;kt(gd,_e);function qa(){}qa.prototype={data:"",substringData:function(e,t){return this.data.substring(e,e+t)},appendData:function(e){e=this.data+e,this.nodeValue=this.data=e,this.length=e.length},insertData:function(e,t){this.replaceData(e,0,t)},appendChild:function(e){throw Error(Ye[Ut])},deleteData:function(e,t){this.replaceData(e,t,"")},replaceData:function(e,t,n){var r=this.data.substring(0,e),i=this.data.substring(e+t);n=r+n+i,this.nodeValue=this.data=n,this.length=n.length}};kt(qa,_e);function My(){}My.prototype={nodeName:"#text",nodeType:Na,splitText:function(e){var t=this.data,n=t.substring(e);t=t.substring(0,e),this.data=this.nodeValue=t,this.length=t.length;var r=this.ownerDocument.createTextNode(n);if(this.parentNode)this.parentNode.insertBefore(r,this.nextSibling);return r}};kt(My,qa);function Ny(){}Ny.prototype={nodeName:"#comment",nodeType:Oy};kt(Ny,qa);function By(){}By.prototype={nodeName:"#cdata-section",nodeType:JA};kt(By,qa);function yd(){}yd.prototype.nodeType=tU;kt(yd,_e);function lU(){}lU.prototype.nodeType=BV;kt(lU,_e);function dU(){}dU.prototype.nodeType=NV;kt(dU,_e);function Ly(){}Ly.prototype.nodeType=QA;kt(Ly,_e);function bd(){}bd.prototype.nodeName="#document-fragment";bd.prototype.nodeType=ir;kt(bd,_e);function Wy(){}Wy.prototype.nodeType=Fy;kt(Wy,_e);function fU(){}fU.prototype.serializeToString=function(e,t,n,r){return hU.call(e,t,n,r)};_e.prototype.toString=hU;function hU(e,t,n){var r=!!n&&!!n.requireWellFormed,i=[],o=this.nodeType==9&&this.documentElement||this,s=o.prefix,a=o.namespaceURI;if(a&&s==null){var s=o.lookupPrefix(a);if(s==null)var c=[{namespace:a,prefix:null}]}return jy(this,i,e,t,c,r),i.join("")}function YA(e,t,n){var r=e.prefix||"",i=e.namespaceURI;if(!i)return!1;if(r==="xml"&&i===Ba.XML||i===Ba.XMLNS)return!1;var o=n.length;while(o--){var s=n[o];if(s.prefix===r)return s.namespace!==i}return!0}function dd(e,t,n,r){if(r&&!Ko.test(t))throw new ue(un,'The attribute name "'+t+'" is not a valid XML QName');e.push(" ",t,'="',n.replace(/[<>&"\t\n\r]/g,sU),'"')}function jy(e,t,n,r,i,o){if(!i)i=[];Ze(e,{ns:i,isHTML:n},{enter:function(s,a){var{ns:c,isHTML:u}=a;if(r)if(s=r(s),s){if(typeof s=="string")return t.push(s),null}else return null;switch(s.nodeType){case Xt:var d=s.attributes,f=d.length,h=s.tagName;u=Ba.isHTML(s.namespaceURI)||u;var p=h;if(!u&&!s.prefix&&s.namespaceURI){var g;for(var y=0;y<d.length;y++)if(d.item(y).name==="xmlns"){g=d.item(y).value;break}if(!g)for(var v=c.length-1;v>=0;v--){var b=c[v];if(b.prefix===""&&b.namespace===s.namespaceURI){g=b.namespace;break}}if(g!==s.namespaceURI)for(var v=c.length-1;v>=0;v--){var b=c[v];if(b.namespace===s.namespaceURI){if(b.prefix)p=b.prefix+":"+h;break}}}if(o&&!Ko.test(p))throw new ue(un,'The element name "'+p+'" is not a valid XML QName');t.push("<",p);var _=c.slice();for(var m=0;m<f;m++){var x=d.item(m);if(x.prefix=="xmlns")_.push({prefix:x.localName,namespace:x.value});else if(x.nodeName=="xmlns")_.push({prefix:"",namespace:x.value})}for(var m=0;m<f;m++){var x=d.item(m);if(YA(x,u,_)){var D=x.prefix||"",A=x.namespaceURI;dd(t,D?"xmlns:"+D:"xmlns",A,o),_.push({prefix:D,namespace:A})}var E=r?r(x):x;if(E)if(typeof E==="string")t.push(E);else dd(t,E.name,E.value,o)}if(h===p&&YA(s,u,_)){var U=s.prefix||"",A=s.namespaceURI;dd(t,U?"xmlns:"+U:"xmlns",A,o),_.push({prefix:U,namespace:A})}var C=s.firstChild;if(C||u&&!/^(?:meta|link|img|br|hr|input)$/i.test(h)){if(t.push(">"),u&&/^script$/i.test(h)){while(C){if(C.data)t.push(C.data);else jy(C,t,u,r,_.slice(),o);C=C.nextSibling}return t.push("</",h,">"),null}return{ns:_,isHTML:u,tag:p}}else return t.push("/>"),null;case eU:case ir:return{ns:c.slice(),isHTML:u,tag:null};case Zo:return dd(t,s.name,s.value,o),null;case Na:return t.push(s.data.replace(/[<&>]/g,sU)),null;case JA:if(o&&s.data.indexOf("]]>")!==-1)throw new ue(un,'The CDATASection data contains "]]>"');return t.push("<![CDATA[",s.data.replace(/]]>/g,"]]]]><![CDATA[>"),"]]>"),null;case Oy:if(o&&s.data.indexOf("-->")!==-1)throw new ue(un,'The comment node data contains "-->"');return t.push("<!--",s.data,"-->"),null;case tU:if(o){if(!Ko.test(s.name))throw new ue(un,'The doctype name "'+s.name+'" is not a valid XML Name');if(s.publicId&&!/^("[\x20\r\na-zA-Z0-9\-()+,.\/:=?;!*#@$_%']*"|'[\x20\r\na-zA-Z0-9\-()+,.\/:=?;!*#@$_%'"]*')$/.test(s.publicId))throw new ue(un,"DocumentType publicId is not a valid PubidLiteral");if(s.systemId&&!/^("[^"]*"|'[^']*')$/.test(s.systemId))throw new ue(un,"DocumentType systemId is not a valid SystemLiteral");if(s.internalSubset&&s.internalSubset.indexOf("]>")!==-1)throw new ue(un,'DocumentType internalSubset contains "]>"')}var{publicId:N,systemId:F}=s;if(t.push("<!DOCTYPE ",s.name),N){if(t.push(" PUBLIC ",N),F&&F!=".")t.push(" ",F);t.push(">")}else if(F&&F!=".")t.push(" SYSTEM ",F,">");else{var S=s.internalSubset;if(S)t.push(" [",S,"]");t.push(">")}return null;case Fy:if(o){if(!Ko.test(s.target)||s.target.indexOf(":")!==-1||s.target.toLowerCase()==="xml")throw new ue(un,'The processing instruction target "'+s.target+'" is not a valid XML NCName or is reserved');if(s.data.indexOf("?>")!==-1)throw new ue(un,'The ProcessingInstruction data contains "?>"')}return t.push("<?",s.target," ",s.data,"?>"),null;case QA:if(o&&!Ko.test(s.nodeName))throw new ue(un,'The entity reference name "'+s.nodeName+'" is not a valid XML Name');return t.push("&",s.nodeName,";"),null;default:return t.push("??",s.nodeName),null}},exit:function(s,a){if(a&&a.tag)t.push("</",a.tag,">")}})}function zV(e,t,n){var r;return Ze(t,null,{enter:function(i,o){var s=i.cloneNode(!1);if(s.ownerDocument=e,s.parentNode=null,o===null)r=s;else o.appendChild(s);var a=i.nodeType===Zo||n;return a?s:null}}),r}function pU(e,t,n){var r;return Ze(t,null,{enter:function(i,o){var s=new i.constructor;for(var a in i)if(Object.prototype.hasOwnProperty.call(i,a)){var c=i[a];if(typeof c!="object"){if(c!=s[a])s[a]=c}}if(i.childNodes)s.childNodes=new or;s.ownerDocument=e;var u=n;switch(s.nodeType){case Xt:var d=i.attributes,f=s.attributes=new fd,h=d.length;f._ownerElement=s;for(var p=0;p<h;p++)s.setAttributeNode(pU(e,d.item(p),!0));break;case Zo:u=!0}if(o!==null)o.appendChild(s);else r=s;return u?s:null}}),r}function gU(e,t,n){e[t]=n}try{if(Object.defineProperty)Object.defineProperty(Yo.prototype,"length",{get:function(){return Py(this),this.$$length}}),Object.defineProperty(_e.prototype,"textContent",{get:function(){if(this.nodeType===Xt||this.nodeType===ir){var e=[];return Ze(this,null,{enter:function(t){if(t.nodeType===Xt||t.nodeType===ir)return!0;if(t.nodeType===Fy||t.nodeType===Oy)return null;e.push(t.nodeValue)}}),e.join("")}return this.nodeValue},set:function(e){switch(this.nodeType){case Xt:case ir:while(this.firstChild)this.removeChild(this.firstChild);if(e||String(e))this.appendChild(this.ownerDocument.createTextNode(e));break;default:this.data=e,this.value=e,this.nodeValue=e}}}),gU=function(e,t,n){e["$$"+t]=n}}catch(e){}VV.DocumentType=yd;VV.DOMException=ue;VV.DOMImplementation=oU;VV.Element=Li;VV.Node=_e;VV.NodeList=or;VV.walkDOM=Ze;VV.XMLSerializer=fU});var bU=R(function(nX){var mU=Xo().freeze;nX.XML_ENTITIES=mU({amp:"&",apos:"'",gt:">",lt:"<",quot:'"'});nX.HTML_ENTITIES=mU({Aacute:"Á",aacute:"á",Abreve:"Ă",abreve:"ă",ac:"∾",acd:"∿",acE:"∾̳",Acirc:"Â",acirc:"â",acute:"´",Acy:"А",acy:"а",AElig:"Æ",aelig:"æ",af:"⁡",Afr:"\uD835\uDD04",afr:"\uD835\uDD1E",Agrave:"À",agrave:"à",alefsym:"ℵ",aleph:"ℵ",Alpha:"Α",alpha:"α",Amacr:"Ā",amacr:"ā",amalg:"⨿",AMP:"&",amp:"&",And:"⩓",and:"∧",andand:"⩕",andd:"⩜",andslope:"⩘",andv:"⩚",ang:"∠",ange:"⦤",angle:"∠",angmsd:"∡",angmsdaa:"⦨",angmsdab:"⦩",angmsdac:"⦪",angmsdad:"⦫",angmsdae:"⦬",angmsdaf:"⦭",angmsdag:"⦮",angmsdah:"⦯",angrt:"∟",angrtvb:"⊾",angrtvbd:"⦝",angsph:"∢",angst:"Å",angzarr:"⍼",Aogon:"Ą",aogon:"ą",Aopf:"\uD835\uDD38",aopf:"\uD835\uDD52",ap:"≈",apacir:"⩯",apE:"⩰",ape:"≊",apid:"≋",apos:"'",ApplyFunction:"⁡",approx:"≈",approxeq:"≊",Aring:"Å",aring:"å",Ascr:"\uD835\uDC9C",ascr:"\uD835\uDCB6",Assign:"≔",ast:"*",asymp:"≈",asympeq:"≍",Atilde:"Ã",atilde:"ã",Auml:"Ä",auml:"ä",awconint:"∳",awint:"⨑",backcong:"≌",backepsilon:"϶",backprime:"‵",backsim:"∽",backsimeq:"⋍",Backslash:"∖",Barv:"⫧",barvee:"⊽",Barwed:"⌆",barwed:"⌅",barwedge:"⌅",bbrk:"⎵",bbrktbrk:"⎶",bcong:"≌",Bcy:"Б",bcy:"б",bdquo:"„",becaus:"∵",Because:"∵",because:"∵",bemptyv:"⦰",bepsi:"϶",bernou:"ℬ",Bernoullis:"ℬ",Beta:"Β",beta:"β",beth:"ℶ",between:"≬",Bfr:"\uD835\uDD05",bfr:"\uD835\uDD1F",bigcap:"⋂",bigcirc:"◯",bigcup:"⋃",bigodot:"⨀",bigoplus:"⨁",bigotimes:"⨂",bigsqcup:"⨆",bigstar:"★",bigtriangledown:"▽",bigtriangleup:"△",biguplus:"⨄",bigvee:"⋁",bigwedge:"⋀",bkarow:"⤍",blacklozenge:"⧫",blacksquare:"▪",blacktriangle:"▴",blacktriangledown:"▾",blacktriangleleft:"◂",blacktriangleright:"▸",blank:"␣",blk12:"▒",blk14:"░",blk34:"▓",block:"█",bne:"=⃥",bnequiv:"≡⃥",bNot:"⫭",bnot:"⌐",Bopf:"\uD835\uDD39",bopf:"\uD835\uDD53",bot:"⊥",bottom:"⊥",bowtie:"⋈",boxbox:"⧉",boxDL:"╗",boxDl:"╖",boxdL:"╕",boxdl:"┐",boxDR:"╔",boxDr:"╓",boxdR:"╒",boxdr:"┌",boxH:"═",boxh:"─",boxHD:"╦",boxHd:"╤",boxhD:"╥",boxhd:"┬",boxHU:"╩",boxHu:"╧",boxhU:"╨",boxhu:"┴",boxminus:"⊟",boxplus:"⊞",boxtimes:"⊠",boxUL:"╝",boxUl:"╜",boxuL:"╛",boxul:"┘",boxUR:"╚",boxUr:"╙",boxuR:"╘",boxur:"└",boxV:"║",boxv:"│",boxVH:"╬",boxVh:"╫",boxvH:"╪",boxvh:"┼",boxVL:"╣",boxVl:"╢",boxvL:"╡",boxvl:"┤",boxVR:"╠",boxVr:"╟",boxvR:"╞",boxvr:"├",bprime:"‵",Breve:"˘",breve:"˘",brvbar:"¦",Bscr:"ℬ",bscr:"\uD835\uDCB7",bsemi:"⁏",bsim:"∽",bsime:"⋍",bsol:"\\",bsolb:"⧅",bsolhsub:"⟈",bull:"•",bullet:"•",bump:"≎",bumpE:"⪮",bumpe:"≏",Bumpeq:"≎",bumpeq:"≏",Cacute:"Ć",cacute:"ć",Cap:"⋒",cap:"∩",capand:"⩄",capbrcup:"⩉",capcap:"⩋",capcup:"⩇",capdot:"⩀",CapitalDifferentialD:"ⅅ",caps:"∩︀",caret:"⁁",caron:"ˇ",Cayleys:"ℭ",ccaps:"⩍",Ccaron:"Č",ccaron:"č",Ccedil:"Ç",ccedil:"ç",Ccirc:"Ĉ",ccirc:"ĉ",Cconint:"∰",ccups:"⩌",ccupssm:"⩐",Cdot:"Ċ",cdot:"ċ",cedil:"¸",Cedilla:"¸",cemptyv:"⦲",cent:"¢",CenterDot:"·",centerdot:"·",Cfr:"ℭ",cfr:"\uD835\uDD20",CHcy:"Ч",chcy:"ч",check:"✓",checkmark:"✓",Chi:"Χ",chi:"χ",cir:"○",circ:"ˆ",circeq:"≗",circlearrowleft:"↺",circlearrowright:"↻",circledast:"⊛",circledcirc:"⊚",circleddash:"⊝",CircleDot:"⊙",circledR:"®",circledS:"Ⓢ",CircleMinus:"⊖",CirclePlus:"⊕",CircleTimes:"⊗",cirE:"⧃",cire:"≗",cirfnint:"⨐",cirmid:"⫯",cirscir:"⧂",ClockwiseContourIntegral:"∲",CloseCurlyDoubleQuote:"”",CloseCurlyQuote:"’",clubs:"♣",clubsuit:"♣",Colon:"∷",colon:":",Colone:"⩴",colone:"≔",coloneq:"≔",comma:",",commat:"@",comp:"∁",compfn:"∘",complement:"∁",complexes:"ℂ",cong:"≅",congdot:"⩭",Congruent:"≡",Conint:"∯",conint:"∮",ContourIntegral:"∮",Copf:"ℂ",copf:"\uD835\uDD54",coprod:"∐",Coproduct:"∐",COPY:"©",copy:"©",copysr:"℗",CounterClockwiseContourIntegral:"∳",crarr:"↵",Cross:"⨯",cross:"✗",Cscr:"\uD835\uDC9E",cscr:"\uD835\uDCB8",csub:"⫏",csube:"⫑",csup:"⫐",csupe:"⫒",ctdot:"⋯",cudarrl:"⤸",cudarrr:"⤵",cuepr:"⋞",cuesc:"⋟",cularr:"↶",cularrp:"⤽",Cup:"⋓",cup:"∪",cupbrcap:"⩈",CupCap:"≍",cupcap:"⩆",cupcup:"⩊",cupdot:"⊍",cupor:"⩅",cups:"∪︀",curarr:"↷",curarrm:"⤼",curlyeqprec:"⋞",curlyeqsucc:"⋟",curlyvee:"⋎",curlywedge:"⋏",curren:"¤",curvearrowleft:"↶",curvearrowright:"↷",cuvee:"⋎",cuwed:"⋏",cwconint:"∲",cwint:"∱",cylcty:"⌭",Dagger:"‡",dagger:"†",daleth:"ℸ",Darr:"↡",dArr:"⇓",darr:"↓",dash:"‐",Dashv:"⫤",dashv:"⊣",dbkarow:"⤏",dblac:"˝",Dcaron:"Ď",dcaron:"ď",Dcy:"Д",dcy:"д",DD:"ⅅ",dd:"ⅆ",ddagger:"‡",ddarr:"⇊",DDotrahd:"⤑",ddotseq:"⩷",deg:"°",Del:"∇",Delta:"Δ",delta:"δ",demptyv:"⦱",dfisht:"⥿",Dfr:"\uD835\uDD07",dfr:"\uD835\uDD21",dHar:"⥥",dharl:"⇃",dharr:"⇂",DiacriticalAcute:"´",DiacriticalDot:"˙",DiacriticalDoubleAcute:"˝",DiacriticalGrave:"`",DiacriticalTilde:"˜",diam:"⋄",Diamond:"⋄",diamond:"⋄",diamondsuit:"♦",diams:"♦",die:"¨",DifferentialD:"ⅆ",digamma:"ϝ",disin:"⋲",div:"÷",divide:"÷",divideontimes:"⋇",divonx:"⋇",DJcy:"Ђ",djcy:"ђ",dlcorn:"⌞",dlcrop:"⌍",dollar:"$",Dopf:"\uD835\uDD3B",dopf:"\uD835\uDD55",Dot:"¨",dot:"˙",DotDot:"⃜",doteq:"≐",doteqdot:"≑",DotEqual:"≐",dotminus:"∸",dotplus:"∔",dotsquare:"⊡",doublebarwedge:"⌆",DoubleContourIntegral:"∯",DoubleDot:"¨",DoubleDownArrow:"⇓",DoubleLeftArrow:"⇐",DoubleLeftRightArrow:"⇔",DoubleLeftTee:"⫤",DoubleLongLeftArrow:"⟸",DoubleLongLeftRightArrow:"⟺",DoubleLongRightArrow:"⟹",DoubleRightArrow:"⇒",DoubleRightTee:"⊨",DoubleUpArrow:"⇑",DoubleUpDownArrow:"⇕",DoubleVerticalBar:"∥",DownArrow:"↓",Downarrow:"⇓",downarrow:"↓",DownArrowBar:"⤓",DownArrowUpArrow:"⇵",DownBreve:"̑",downdownarrows:"⇊",downharpoonleft:"⇃",downharpoonright:"⇂",DownLeftRightVector:"⥐",DownLeftTeeVector:"⥞",DownLeftVector:"↽",DownLeftVectorBar:"⥖",DownRightTeeVector:"⥟",DownRightVector:"⇁",DownRightVectorBar:"⥗",DownTee:"⊤",DownTeeArrow:"↧",drbkarow:"⤐",drcorn:"⌟",drcrop:"⌌",Dscr:"\uD835\uDC9F",dscr:"\uD835\uDCB9",DScy:"Ѕ",dscy:"ѕ",dsol:"⧶",Dstrok:"Đ",dstrok:"đ",dtdot:"⋱",dtri:"▿",dtrif:"▾",duarr:"⇵",duhar:"⥯",dwangle:"⦦",DZcy:"Џ",dzcy:"џ",dzigrarr:"⟿",Eacute:"É",eacute:"é",easter:"⩮",Ecaron:"Ě",ecaron:"ě",ecir:"≖",Ecirc:"Ê",ecirc:"ê",ecolon:"≕",Ecy:"Э",ecy:"э",eDDot:"⩷",Edot:"Ė",eDot:"≑",edot:"ė",ee:"ⅇ",efDot:"≒",Efr:"\uD835\uDD08",efr:"\uD835\uDD22",eg:"⪚",Egrave:"È",egrave:"è",egs:"⪖",egsdot:"⪘",el:"⪙",Element:"∈",elinters:"⏧",ell:"ℓ",els:"⪕",elsdot:"⪗",Emacr:"Ē",emacr:"ē",empty:"∅",emptyset:"∅",EmptySmallSquare:"◻",emptyv:"∅",EmptyVerySmallSquare:"▫",emsp:" ",emsp13:" ",emsp14:" ",ENG:"Ŋ",eng:"ŋ",ensp:" ",Eogon:"Ę",eogon:"ę",Eopf:"\uD835\uDD3C",eopf:"\uD835\uDD56",epar:"⋕",eparsl:"⧣",eplus:"⩱",epsi:"ε",Epsilon:"Ε",epsilon:"ε",epsiv:"ϵ",eqcirc:"≖",eqcolon:"≕",eqsim:"≂",eqslantgtr:"⪖",eqslantless:"⪕",Equal:"⩵",equals:"=",EqualTilde:"≂",equest:"≟",Equilibrium:"⇌",equiv:"≡",equivDD:"⩸",eqvparsl:"⧥",erarr:"⥱",erDot:"≓",Escr:"ℰ",escr:"ℯ",esdot:"≐",Esim:"⩳",esim:"≂",Eta:"Η",eta:"η",ETH:"Ð",eth:"ð",Euml:"Ë",euml:"ë",euro:"€",excl:"!",exist:"∃",Exists:"∃",expectation:"ℰ",ExponentialE:"ⅇ",exponentiale:"ⅇ",fallingdotseq:"≒",Fcy:"Ф",fcy:"ф",female:"♀",ffilig:"ffi",fflig:"ff",ffllig:"ffl",Ffr:"\uD835\uDD09",ffr:"\uD835\uDD23",filig:"fi",FilledSmallSquare:"◼",FilledVerySmallSquare:"▪",fjlig:"fj",flat:"♭",fllig:"fl",fltns:"▱",fnof:"ƒ",Fopf:"\uD835\uDD3D",fopf:"\uD835\uDD57",ForAll:"∀",forall:"∀",fork:"⋔",forkv:"⫙",Fouriertrf:"ℱ",fpartint:"⨍",frac12:"½",frac13:"⅓",frac14:"¼",frac15:"⅕",frac16:"⅙",frac18:"⅛",frac23:"⅔",frac25:"⅖",frac34:"¾",frac35:"⅗",frac38:"⅜",frac45:"⅘",frac56:"⅚",frac58:"⅝",frac78:"⅞",frasl:"⁄",frown:"⌢",Fscr:"ℱ",fscr:"\uD835\uDCBB",gacute:"ǵ",Gamma:"Γ",gamma:"γ",Gammad:"Ϝ",gammad:"ϝ",gap:"⪆",Gbreve:"Ğ",gbreve:"ğ",Gcedil:"Ģ",Gcirc:"Ĝ",gcirc:"ĝ",Gcy:"Г",gcy:"г",Gdot:"Ġ",gdot:"ġ",gE:"≧",ge:"≥",gEl:"⪌",gel:"⋛",geq:"≥",geqq:"≧",geqslant:"⩾",ges:"⩾",gescc:"⪩",gesdot:"⪀",gesdoto:"⪂",gesdotol:"⪄",gesl:"⋛︀",gesles:"⪔",Gfr:"\uD835\uDD0A",gfr:"\uD835\uDD24",Gg:"⋙",gg:"≫",ggg:"⋙",gimel:"ℷ",GJcy:"Ѓ",gjcy:"ѓ",gl:"≷",gla:"⪥",glE:"⪒",glj:"⪤",gnap:"⪊",gnapprox:"⪊",gnE:"≩",gne:"⪈",gneq:"⪈",gneqq:"≩",gnsim:"⋧",Gopf:"\uD835\uDD3E",gopf:"\uD835\uDD58",grave:"`",GreaterEqual:"≥",GreaterEqualLess:"⋛",GreaterFullEqual:"≧",GreaterGreater:"⪢",GreaterLess:"≷",GreaterSlantEqual:"⩾",GreaterTilde:"≳",Gscr:"\uD835\uDCA2",gscr:"ℊ",gsim:"≳",gsime:"⪎",gsiml:"⪐",Gt:"≫",GT:">",gt:">",gtcc:"⪧",gtcir:"⩺",gtdot:"⋗",gtlPar:"⦕",gtquest:"⩼",gtrapprox:"⪆",gtrarr:"⥸",gtrdot:"⋗",gtreqless:"⋛",gtreqqless:"⪌",gtrless:"≷",gtrsim:"≳",gvertneqq:"≩︀",gvnE:"≩︀",Hacek:"ˇ",hairsp:" ",half:"½",hamilt:"ℋ",HARDcy:"Ъ",hardcy:"ъ",hArr:"⇔",harr:"↔",harrcir:"⥈",harrw:"↭",Hat:"^",hbar:"ℏ",Hcirc:"Ĥ",hcirc:"ĥ",hearts:"♥",heartsuit:"♥",hellip:"…",hercon:"⊹",Hfr:"ℌ",hfr:"\uD835\uDD25",HilbertSpace:"ℋ",hksearow:"⤥",hkswarow:"⤦",hoarr:"⇿",homtht:"∻",hookleftarrow:"↩",hookrightarrow:"↪",Hopf:"ℍ",hopf:"\uD835\uDD59",horbar:"―",HorizontalLine:"─",Hscr:"ℋ",hscr:"\uD835\uDCBD",hslash:"ℏ",Hstrok:"Ħ",hstrok:"ħ",HumpDownHump:"≎",HumpEqual:"≏",hybull:"⁃",hyphen:"‐",Iacute:"Í",iacute:"í",ic:"⁣",Icirc:"Î",icirc:"î",Icy:"И",icy:"и",Idot:"İ",IEcy:"Е",iecy:"е",iexcl:"¡",iff:"⇔",Ifr:"ℑ",ifr:"\uD835\uDD26",Igrave:"Ì",igrave:"ì",ii:"ⅈ",iiiint:"⨌",iiint:"∭",iinfin:"⧜",iiota:"℩",IJlig:"IJ",ijlig:"ij",Im:"ℑ",Imacr:"Ī",imacr:"ī",image:"ℑ",ImaginaryI:"ⅈ",imagline:"ℐ",imagpart:"ℑ",imath:"ı",imof:"⊷",imped:"Ƶ",Implies:"⇒",in:"∈",incare:"℅",infin:"∞",infintie:"⧝",inodot:"ı",Int:"∬",int:"∫",intcal:"⊺",integers:"ℤ",Integral:"∫",intercal:"⊺",Intersection:"⋂",intlarhk:"⨗",intprod:"⨼",InvisibleComma:"⁣",InvisibleTimes:"⁢",IOcy:"Ё",iocy:"ё",Iogon:"Į",iogon:"į",Iopf:"\uD835\uDD40",iopf:"\uD835\uDD5A",Iota:"Ι",iota:"ι",iprod:"⨼",iquest:"¿",Iscr:"ℐ",iscr:"\uD835\uDCBE",isin:"∈",isindot:"⋵",isinE:"⋹",isins:"⋴",isinsv:"⋳",isinv:"∈",it:"⁢",Itilde:"Ĩ",itilde:"ĩ",Iukcy:"І",iukcy:"і",Iuml:"Ï",iuml:"ï",Jcirc:"Ĵ",jcirc:"ĵ",Jcy:"Й",jcy:"й",Jfr:"\uD835\uDD0D",jfr:"\uD835\uDD27",jmath:"ȷ",Jopf:"\uD835\uDD41",jopf:"\uD835\uDD5B",Jscr:"\uD835\uDCA5",jscr:"\uD835\uDCBF",Jsercy:"Ј",jsercy:"ј",Jukcy:"Є",jukcy:"є",Kappa:"Κ",kappa:"κ",kappav:"ϰ",Kcedil:"Ķ",kcedil:"ķ",Kcy:"К",kcy:"к",Kfr:"\uD835\uDD0E",kfr:"\uD835\uDD28",kgreen:"ĸ",KHcy:"Х",khcy:"х",KJcy:"Ќ",kjcy:"ќ",Kopf:"\uD835\uDD42",kopf:"\uD835\uDD5C",Kscr:"\uD835\uDCA6",kscr:"\uD835\uDCC0",lAarr:"⇚",Lacute:"Ĺ",lacute:"ĺ",laemptyv:"⦴",lagran:"ℒ",Lambda:"Λ",lambda:"λ",Lang:"⟪",lang:"⟨",langd:"⦑",langle:"⟨",lap:"⪅",Laplacetrf:"ℒ",laquo:"«",Larr:"↞",lArr:"⇐",larr:"←",larrb:"⇤",larrbfs:"⤟",larrfs:"⤝",larrhk:"↩",larrlp:"↫",larrpl:"⤹",larrsim:"⥳",larrtl:"↢",lat:"⪫",lAtail:"⤛",latail:"⤙",late:"⪭",lates:"⪭︀",lBarr:"⤎",lbarr:"⤌",lbbrk:"❲",lbrace:"{",lbrack:"[",lbrke:"⦋",lbrksld:"⦏",lbrkslu:"⦍",Lcaron:"Ľ",lcaron:"ľ",Lcedil:"Ļ",lcedil:"ļ",lceil:"⌈",lcub:"{",Lcy:"Л",lcy:"л",ldca:"⤶",ldquo:"“",ldquor:"„",ldrdhar:"⥧",ldrushar:"⥋",ldsh:"↲",lE:"≦",le:"≤",LeftAngleBracket:"⟨",LeftArrow:"←",Leftarrow:"⇐",leftarrow:"←",LeftArrowBar:"⇤",LeftArrowRightArrow:"⇆",leftarrowtail:"↢",LeftCeiling:"⌈",LeftDoubleBracket:"⟦",LeftDownTeeVector:"⥡",LeftDownVector:"⇃",LeftDownVectorBar:"⥙",LeftFloor:"⌊",leftharpoondown:"↽",leftharpoonup:"↼",leftleftarrows:"⇇",LeftRightArrow:"↔",Leftrightarrow:"⇔",leftrightarrow:"↔",leftrightarrows:"⇆",leftrightharpoons:"⇋",leftrightsquigarrow:"↭",LeftRightVector:"⥎",LeftTee:"⊣",LeftTeeArrow:"↤",LeftTeeVector:"⥚",leftthreetimes:"⋋",LeftTriangle:"⊲",LeftTriangleBar:"⧏",LeftTriangleEqual:"⊴",LeftUpDownVector:"⥑",LeftUpTeeVector:"⥠",LeftUpVector:"↿",LeftUpVectorBar:"⥘",LeftVector:"↼",LeftVectorBar:"⥒",lEg:"⪋",leg:"⋚",leq:"≤",leqq:"≦",leqslant:"⩽",les:"⩽",lescc:"⪨",lesdot:"⩿",lesdoto:"⪁",lesdotor:"⪃",lesg:"⋚︀",lesges:"⪓",lessapprox:"⪅",lessdot:"⋖",lesseqgtr:"⋚",lesseqqgtr:"⪋",LessEqualGreater:"⋚",LessFullEqual:"≦",LessGreater:"≶",lessgtr:"≶",LessLess:"⪡",lesssim:"≲",LessSlantEqual:"⩽",LessTilde:"≲",lfisht:"⥼",lfloor:"⌊",Lfr:"\uD835\uDD0F",lfr:"\uD835\uDD29",lg:"≶",lgE:"⪑",lHar:"⥢",lhard:"↽",lharu:"↼",lharul:"⥪",lhblk:"▄",LJcy:"Љ",ljcy:"љ",Ll:"⋘",ll:"≪",llarr:"⇇",llcorner:"⌞",Lleftarrow:"⇚",llhard:"⥫",lltri:"◺",Lmidot:"Ŀ",lmidot:"ŀ",lmoust:"⎰",lmoustache:"⎰",lnap:"⪉",lnapprox:"⪉",lnE:"≨",lne:"⪇",lneq:"⪇",lneqq:"≨",lnsim:"⋦",loang:"⟬",loarr:"⇽",lobrk:"⟦",LongLeftArrow:"⟵",Longleftarrow:"⟸",longleftarrow:"⟵",LongLeftRightArrow:"⟷",Longleftrightarrow:"⟺",longleftrightarrow:"⟷",longmapsto:"⟼",LongRightArrow:"⟶",Longrightarrow:"⟹",longrightarrow:"⟶",looparrowleft:"↫",looparrowright:"↬",lopar:"⦅",Lopf:"\uD835\uDD43",lopf:"\uD835\uDD5D",loplus:"⨭",lotimes:"⨴",lowast:"∗",lowbar:"_",LowerLeftArrow:"↙",LowerRightArrow:"↘",loz:"◊",lozenge:"◊",lozf:"⧫",lpar:"(",lparlt:"⦓",lrarr:"⇆",lrcorner:"⌟",lrhar:"⇋",lrhard:"⥭",lrm:"‎",lrtri:"⊿",lsaquo:"‹",Lscr:"ℒ",lscr:"\uD835\uDCC1",Lsh:"↰",lsh:"↰",lsim:"≲",lsime:"⪍",lsimg:"⪏",lsqb:"[",lsquo:"‘",lsquor:"‚",Lstrok:"Ł",lstrok:"ł",Lt:"≪",LT:"<",lt:"<",ltcc:"⪦",ltcir:"⩹",ltdot:"⋖",lthree:"⋋",ltimes:"⋉",ltlarr:"⥶",ltquest:"⩻",ltri:"◃",ltrie:"⊴",ltrif:"◂",ltrPar:"⦖",lurdshar:"⥊",luruhar:"⥦",lvertneqq:"≨︀",lvnE:"≨︀",macr:"¯",male:"♂",malt:"✠",maltese:"✠",Map:"⤅",map:"↦",mapsto:"↦",mapstodown:"↧",mapstoleft:"↤",mapstoup:"↥",marker:"▮",mcomma:"⨩",Mcy:"М",mcy:"м",mdash:"—",mDDot:"∺",measuredangle:"∡",MediumSpace:" ",Mellintrf:"ℳ",Mfr:"\uD835\uDD10",mfr:"\uD835\uDD2A",mho:"℧",micro:"µ",mid:"∣",midast:"*",midcir:"⫰",middot:"·",minus:"−",minusb:"⊟",minusd:"∸",minusdu:"⨪",MinusPlus:"∓",mlcp:"⫛",mldr:"…",mnplus:"∓",models:"⊧",Mopf:"\uD835\uDD44",mopf:"\uD835\uDD5E",mp:"∓",Mscr:"ℳ",mscr:"\uD835\uDCC2",mstpos:"∾",Mu:"Μ",mu:"μ",multimap:"⊸",mumap:"⊸",nabla:"∇",Nacute:"Ń",nacute:"ń",nang:"∠⃒",nap:"≉",napE:"⩰̸",napid:"≋̸",napos:"ʼn",napprox:"≉",natur:"♮",natural:"♮",naturals:"ℕ",nbsp:" ",nbump:"≎̸",nbumpe:"≏̸",ncap:"⩃",Ncaron:"Ň",ncaron:"ň",Ncedil:"Ņ",ncedil:"ņ",ncong:"≇",ncongdot:"⩭̸",ncup:"⩂",Ncy:"Н",ncy:"н",ndash:"–",ne:"≠",nearhk:"⤤",neArr:"⇗",nearr:"↗",nearrow:"↗",nedot:"≐̸",NegativeMediumSpace:"​",NegativeThickSpace:"​",NegativeThinSpace:"​",NegativeVeryThinSpace:"​",nequiv:"≢",nesear:"⤨",nesim:"≂̸",NestedGreaterGreater:"≫",NestedLessLess:"≪",NewLine:`
197
+ `)}function S(T){if(this._bitField=0,this._fulfillmentHandler0=void 0,this._rejectionHandler0=void 0,this._promise0=void 0,this._receiver0=void 0,T!==p)F(this,T),this._resolveFromExecutor(T);this._promiseCreated(),this._fireEvent("promiseCreated",this)}S.prototype.toString=function(){return"[object Promise]"},S.prototype.caught=S.prototype.catch=function(T){var O=arguments.length;if(O>1){var k=Array(O-1),P=0,W;for(W=0;W<O-1;++W){var q=arguments[W];if(o.isObject(q))k[P++]=q;else return n("expecting an object but got A catch statement predicate "+o.classString(q))}return k.length=P,T=arguments[W],this.then(void 0,E(k,T,this))}return this.then(void 0,T)},S.prototype.reflect=function(){return this._then(t,t,void 0,this,void 0)},S.prototype.then=function(T,O){if(x.warnings()&&arguments.length>0&&typeof T!=="function"&&typeof O!=="function"){var k=".then() only accepts functions but was passed: "+o.classString(T);if(arguments.length>1)k+=", "+o.classString(O);this._warn(k)}return this._then(T,O,void 0,void 0,void 0)},S.prototype.done=function(T,O){var k=this._then(T,O,void 0,void 0,void 0);k._setIsFinal()},S.prototype.spread=function(T){if(typeof T!=="function")return n("expecting a function but got "+o.classString(T));return this.all()._then(T,void 0,void 0,g,void 0)},S.prototype.toJSON=function(){var T={isFulfilled:!1,isRejected:!1,fulfillmentValue:void 0,rejectionReason:void 0};if(this.isFulfilled())T.fulfillmentValue=this.value(),T.isFulfilled=!0;else if(this.isRejected())T.rejectionReason=this.reason(),T.isRejected=!0;return T},S.prototype.all=function(){if(arguments.length>0)this._warn(".all() was passed arguments but it does not take any");return new b(this).promise()},S.prototype.error=function(T){return this.caught(o.originatesFromRejection,T)},S.getNewLibraryCopy=Mg.exports,S.is=function(T){return T instanceof S},S.fromNode=S.fromCallback=function(T){var O=new S(p);O._captureStackTrace();var k=arguments.length>1?!!Object(arguments[1]).multiArgs:!1,P=N(T)(U(O,k));if(P===C)O._rejectCallback(P.e,!0);if(!O._isFateSealed())O._setAsyncGuaranteed();return O},S.all=function(T){return new b(T).promise()},S.cast=function(T){var O=v(T);if(!(O instanceof S))O=new S(p),O._captureStackTrace(),O._setFulfilled(),O._rejectionHandler0=T;return O},S.resolve=S.fulfilled=S.cast,S.reject=S.rejected=function(T){var O=new S(p);return O._captureStackTrace(),O._rejectCallback(T,!0),O},S.setScheduler=function(T){if(typeof T!=="function")throw new f("expecting a function but got "+o.classString(T));return u.setScheduler(T)},S.prototype._then=function(T,O,k,P,W){var q=W!==void 0,K=q?W:new S(p),J=this._target(),de=J._bitField;if(!q){if(K._propagateFrom(this,3),K._captureStackTrace(),P===void 0&&(this._bitField&2097152)!==0)if((de&50397184)!==0)P=this._boundValue();else P=J===this?void 0:this._boundTo;this._fireEvent("promiseChained",this,K)}var Ae=s();if((de&50397184)!==0){var ve,ot,pn=J._settlePromiseCtx;if((de&33554432)!==0)ot=J._rejectionHandler0,ve=T;else if((de&16777216)!==0)ot=J._fulfillmentHandler0,ve=O,J._unsetRejectionIsUnhandled();else pn=J._settlePromiseLateCancellationObserver,ot=new h("late cancellation observer"),J._attachExtraTrace(ot),ve=O;u.invoke(pn,J,{handler:Ae===null?ve:typeof ve==="function"&&o.domainBind(Ae,ve),promise:K,receiver:P,value:ot})}else J._addCallbacks(T,O,K,P,Ae);return K},S.prototype._length=function(){return this._bitField&65535},S.prototype._isFateSealed=function(){return(this._bitField&117506048)!==0},S.prototype._isFollowing=function(){return(this._bitField&67108864)===67108864},S.prototype._setLength=function(T){this._bitField=this._bitField&-65536|T&65535},S.prototype._setFulfilled=function(){this._bitField=this._bitField|33554432,this._fireEvent("promiseFulfilled",this)},S.prototype._setRejected=function(){this._bitField=this._bitField|16777216,this._fireEvent("promiseRejected",this)},S.prototype._setFollowing=function(){this._bitField=this._bitField|67108864,this._fireEvent("promiseResolved",this)},S.prototype._setIsFinal=function(){this._bitField=this._bitField|4194304},S.prototype._isFinal=function(){return(this._bitField&4194304)>0},S.prototype._unsetCancelled=function(){this._bitField=this._bitField&-65537},S.prototype._setCancelled=function(){this._bitField=this._bitField|65536,this._fireEvent("promiseCancelled",this)},S.prototype._setWillBeCancelled=function(){this._bitField=this._bitField|8388608},S.prototype._setAsyncGuaranteed=function(){if(u.hasCustomScheduler())return;this._bitField=this._bitField|134217728},S.prototype._receiverAt=function(T){var O=T===0?this._receiver0:this[T*4-4+3];if(O===i)return;else if(O===void 0&&this._isBound())return this._boundValue();return O},S.prototype._promiseAt=function(T){return this[T*4-4+2]},S.prototype._fulfillmentHandlerAt=function(T){return this[T*4-4+0]},S.prototype._rejectionHandlerAt=function(T){return this[T*4-4+1]},S.prototype._boundValue=function(){},S.prototype._migrateCallback0=function(T){var{_bitField:O,_fulfillmentHandler0:k,_rejectionHandler0:P,_promise0:W}=T,q=T._receiverAt(0);if(q===void 0)q=i;this._addCallbacks(k,P,W,q,null)},S.prototype._migrateCallbackAt=function(T,O){var k=T._fulfillmentHandlerAt(O),P=T._rejectionHandlerAt(O),W=T._promiseAt(O),q=T._receiverAt(O);if(q===void 0)q=i;this._addCallbacks(k,P,W,q,null)},S.prototype._addCallbacks=function(T,O,k,P,W){var q=this._length();if(q>=65531)q=0,this._setLength(0);if(q===0){if(this._promise0=k,this._receiver0=P,typeof T==="function")this._fulfillmentHandler0=W===null?T:o.domainBind(W,T);if(typeof O==="function")this._rejectionHandler0=W===null?O:o.domainBind(W,O)}else{var K=q*4-4;if(this[K+2]=k,this[K+3]=P,typeof T==="function")this[K+0]=W===null?T:o.domainBind(W,T);if(typeof O==="function")this[K+1]=W===null?O:o.domainBind(W,O)}return this._setLength(q+1),q},S.prototype._proxy=function(T,O){this._addCallbacks(void 0,void 0,O,T,null)},S.prototype._resolveCallback=function(T,O){if((this._bitField&117506048)!==0)return;if(T===this)return this._rejectCallback(e(),!1);var k=v(T,this);if(!(k instanceof S))return this._fulfill(T);if(O)this._propagateFrom(k,2);var P=k._target();if(P===this){this._reject(e());return}var W=P._bitField;if((W&50397184)===0){var q=this._length();if(q>0)P._migrateCallback0(this);for(var K=1;K<q;++K)P._migrateCallbackAt(this,K);this._setFollowing(),this._setLength(0),this._setFollowee(P)}else if((W&33554432)!==0)this._fulfill(P._value());else if((W&16777216)!==0)this._reject(P._reason());else{var J=new h("late cancellation observer");P._attachExtraTrace(J),this._reject(J)}},S.prototype._rejectCallback=function(T,O,k){var P=o.ensureErrorObject(T),W=P===T;if(!W&&!k&&x.warnings()){var q="a promise was rejected with a non-error: "+o.classString(T);this._warn(q,!0)}this._attachExtraTrace(P,O?W:!1),this._reject(T)},S.prototype._resolveFromExecutor=function(T){var O=this;this._captureStackTrace(),this._pushContext();var k=!0,P=this._execute(T,function(W){O._resolveCallback(W)},function(W){O._rejectCallback(W,k)});if(k=!1,this._popContext(),P!==void 0)O._rejectCallback(P,!0)},S.prototype._settlePromiseFromHandler=function(T,O,k,P){var W=P._bitField;if((W&65536)!==0)return;P._pushContext();var q;if(O===g)if(!k||typeof k.length!=="number")q=C,q.e=new f("cannot .spread() a non-array: "+o.classString(k));else q=N(T).apply(this._boundValue(),k);else q=N(T).call(O,k);var K=P._popContext();if(W=P._bitField,(W&65536)!==0)return;if(q===y)P._reject(k);else if(q===C)P._rejectCallback(q.e,!1);else x.checkForgottenReturns(q,K,"",P,this),P._resolveCallback(q)},S.prototype._target=function(){var T=this;while(T._isFollowing())T=T._followee();return T},S.prototype._followee=function(){return this._rejectionHandler0},S.prototype._setFollowee=function(T){this._rejectionHandler0=T},S.prototype._settlePromise=function(T,O,k,P){var W=T instanceof S,q=this._bitField,K=(q&134217728)!==0;if((q&65536)!==0){if(W)T._invokeInternalOnCancel();if(k instanceof A&&k.isFinallyHandler()){if(k.cancelPromise=T,N(O).call(k,P)===C)T._reject(C.e)}else if(O===t)T._fulfill(t.call(k));else if(k instanceof r)k._promiseCancelled(T);else if(W||T instanceof b)T._cancel();else k.cancel()}else if(typeof O==="function")if(!W)O.call(k,P,T);else{if(K)T._setAsyncGuaranteed();this._settlePromiseFromHandler(O,k,P,T)}else if(k instanceof r){if(!k._isResolved())if((q&33554432)!==0)k._promiseFulfilled(P,T);else k._promiseRejected(P,T)}else if(W){if(K)T._setAsyncGuaranteed();if((q&33554432)!==0)T._fulfill(P);else T._reject(P)}},S.prototype._settlePromiseLateCancellationObserver=function(T){var{handler:O,promise:k,receiver:P,value:W}=T;if(typeof O==="function")if(!(k instanceof S))O.call(P,W,k);else this._settlePromiseFromHandler(O,P,W,k);else if(k instanceof S)k._reject(W)},S.prototype._settlePromiseCtx=function(T){this._settlePromise(T.promise,T.handler,T.receiver,T.value)},S.prototype._settlePromise0=function(T,O,k){var P=this._promise0,W=this._receiverAt(0);this._promise0=void 0,this._receiver0=void 0,this._settlePromise(P,T,W,O)},S.prototype._clearCallbackDataAtIndex=function(T){var O=T*4-4;this[O+2]=this[O+3]=this[O+0]=this[O+1]=void 0},S.prototype._fulfill=function(T){var O=this._bitField;if((O&117506048)>>>16)return;if(T===this){var k=e();return this._attachExtraTrace(k),this._reject(k)}if(this._setFulfilled(),this._rejectionHandler0=T,(O&65535)>0)if((O&134217728)!==0)this._settlePromises();else u.settlePromises(this)},S.prototype._reject=function(T){var O=this._bitField;if((O&117506048)>>>16)return;if(this._setRejected(),this._fulfillmentHandler0=T,this._isFinal())return u.fatalError(T,o.isNode);if((O&65535)>0)u.settlePromises(this);else this._ensurePossibleRejectionHandled()},S.prototype._fulfillPromises=function(T,O){for(var k=1;k<T;k++){var P=this._fulfillmentHandlerAt(k),W=this._promiseAt(k),q=this._receiverAt(k);this._clearCallbackDataAtIndex(k),this._settlePromise(W,P,q,O)}},S.prototype._rejectPromises=function(T,O){for(var k=1;k<T;k++){var P=this._rejectionHandlerAt(k),W=this._promiseAt(k),q=this._receiverAt(k);this._clearCallbackDataAtIndex(k),this._settlePromise(W,P,q,O)}},S.prototype._settlePromises=function(){var T=this._bitField,O=T&65535;if(O>0){if((T&16842752)!==0){var k=this._fulfillmentHandler0;this._settlePromise0(this._rejectionHandler0,k,T),this._rejectPromises(O,k)}else{var P=this._rejectionHandler0;this._settlePromise0(this._fulfillmentHandler0,P,T),this._fulfillPromises(O,P)}this._setLength(0)}this._clearCancellationData()},S.prototype._settledValue=function(){var T=this._bitField;if((T&33554432)!==0)return this._rejectionHandler0;else if((T&16777216)!==0)return this._fulfillmentHandler0};function B(T){this.promise._resolveCallback(T)}function j(T){this.promise._rejectCallback(T,!1)}S.defer=S.pending=function(){x.deprecated("Promise.defer","new Promise");var T=new S(p);return{promise:T,resolve:B,reject:j}},o.notEnumerableProp(S,"_makeSelfResolutionError",e),PD()(S,p,v,n,x),MD()(S,p,v,x),BD()(S,b,n,x),WD()(S),qD()(S),HD()(S,b,v,p,u,s),S.Promise=S,S.version="3.4.7",zD()(S,b,n,v,p,x),XD()(S),ZD()(S,n,v,m,p,x),JD()(S,p,x),eE()(S,n,p,v,r,x),nE()(S),iE()(S,p),sE()(S,b,v,n),cE()(S,p,v,n),lE()(S,b,n,v,p,x),fE()(S,b,x),pE()(S,b,n),mE()(S,p),bE()(S,p),xE()(S),o.toFastProperties(S),o.toFastProperties(S.prototype);function G(T){var O=new S(p);O._fulfillmentHandler0=T,O._rejectionHandler0=T,O._promise0=T,O._receiver0=T}return G({a:1}),G({b:2}),G({c:3}),G(1),G(function(){}),G(void 0),G(!1),G(new S(p)),x.setBounds(c.firstLineError,o.lastLineError),S}});var Xn=R(function(YL){var KL=Me(),Ct=_E()();YL.defer=ZL;YL.when=Ct.resolve;YL.resolve=Ct.resolve;YL.all=Ct.all;YL.props=Ct.props;YL.reject=Ct.reject;YL.promisify=Ct.promisify;YL.mapSeries=Ct.mapSeries;YL.attempt=Ct.attempt;YL.nfcall=function(e){var t=Array.prototype.slice.call(arguments,1),n=Ct.promisify(e);return n.apply(null,t)};Ct.prototype.fail=Ct.prototype.caught;Ct.prototype.also=function(e){return this.then(function(t){var n=KL.extend({},t,e(t));return Ct.props(n)})};function ZL(){var e,t,n=new Ct.Promise(function(r,i){e=r,t=i});return{resolve:e,reject:t,promise:n}}});var Br=R(function(TW){var cW=Me(),tt=TW.types={document:"document",paragraph:"paragraph",run:"run",text:"text",tab:"tab",checkbox:"checkbox",hyperlink:"hyperlink",noteReference:"noteReference",image:"image",note:"note",commentReference:"commentReference",comment:"comment",table:"table",tableRow:"tableRow",tableCell:"tableCell",break:"break",bookmarkStart:"bookmarkStart"};function uW(e,t){return t=t||{},{type:tt.document,children:e,notes:t.notes||new gl({}),comments:t.comments||[]}}function lW(e,t){t=t||{};var n=t.indent||{};return{type:tt.paragraph,children:e,styleId:t.styleId||null,styleName:t.styleName||null,numbering:t.numbering||null,alignment:t.alignment||null,indent:{start:n.start||null,end:n.end||null,firstLine:n.firstLine||null,hanging:n.hanging||null}}}function dW(e,t){return t=t||{},{type:tt.run,children:e,styleId:t.styleId||null,styleName:t.styleName||null,isBold:!!t.isBold,isUnderline:!!t.isUnderline,isItalic:!!t.isItalic,isStrikethrough:!!t.isStrikethrough,isAllCaps:!!t.isAllCaps,isSmallCaps:!!t.isSmallCaps,verticalAlignment:t.verticalAlignment||wE.baseline,font:t.font||null,fontSize:t.fontSize||null,highlight:t.highlight||null}}var wE={baseline:"baseline",superscript:"superscript",subscript:"subscript"};function fW(e){return{type:tt.text,value:e}}function hW(){return{type:tt.tab}}function pW(e){return{type:tt.checkbox,checked:e.checked}}function gW(e,t){return{type:tt.hyperlink,children:e,href:t.href,anchor:t.anchor,targetFrame:t.targetFrame}}function mW(e){return{type:tt.noteReference,noteType:e.noteType,noteId:e.noteId}}function gl(e){this._notes=cW.indexBy(e,function(t){return DE(t.noteType,t.noteId)})}gl.prototype.resolve=function(e){return this.findNoteByKey(DE(e.noteType,e.noteId))};gl.prototype.findNoteByKey=function(e){return this._notes[e]||null};function yW(e){return{type:tt.note,noteType:e.noteType,noteId:e.noteId,body:e.body}}function bW(e){return{type:tt.commentReference,commentId:e.commentId}}function vW(e){return{type:tt.comment,commentId:e.commentId,body:e.body,authorName:e.authorName,authorInitials:e.authorInitials}}function DE(e,t){return e+"-"+t}function xW(e){return{type:tt.image,read:function(t){if(t)return e.readImage(t);else return e.readImage().then(function(n){return Buffer.from(n)})},readAsArrayBuffer:function(){return e.readImage()},readAsBase64String:function(){return e.readImage("base64")},readAsBuffer:function(){return e.readImage().then(function(t){return Buffer.from(t)})},altText:e.altText,contentType:e.contentType}}function _W(e,t){return t=t||{},{type:tt.table,children:e,styleId:t.styleId||null,styleName:t.styleName||null}}function wW(e,t){return t=t||{},{type:tt.tableRow,children:e,isHeader:t.isHeader||!1}}function DW(e,t){return t=t||{},{type:tt.tableCell,children:e,colSpan:t.colSpan==null?1:t.colSpan,rowSpan:t.rowSpan==null?1:t.rowSpan}}function Ng(e){return{type:tt.break,breakType:e}}function EW(e){return{type:tt.bookmarkStart,name:e.name}}TW.document=TW.Document=uW;TW.paragraph=TW.Paragraph=lW;TW.run=TW.Run=dW;TW.text=TW.Text=fW;TW.tab=TW.Tab=hW;TW.checkbox=TW.Checkbox=pW;TW.Hyperlink=gW;TW.noteReference=TW.NoteReference=mW;TW.Notes=gl;TW.Note=yW;TW.commentReference=bW;TW.comment=vW;TW.Image=xW;TW.Table=_W;TW.TableRow=wW;TW.TableCell=DW;TW.lineBreak=Ng("line");TW.pageBreak=Ng("page");TW.columnBreak=Ng("column");TW.BookmarkStart=EW;TW.verticalAlignment=wE});var wn=R(function(JW){var ra=Me();JW.Result=_n;JW.success=VW;JW.warning=XW;JW.error=KW;function _n(e,t){this.value=e,this.messages=t||[]}_n.prototype.map=function(e){return new _n(e(this.value),this.messages)};_n.prototype.flatMap=function(e){var t=e(this.value);return new _n(t.value,Bg([this,t]))};_n.prototype.flatMapThen=function(e){var t=this;return e(this.value).then(function(n){return new _n(n.value,Bg([t,n]))})};_n.combine=function(e){var t=ra.flatten(ra.pluck(e,"value")),n=Bg(e);return new _n(t,n)};function VW(e){return new _n(e,[])}function XW(e){return{type:"warning",message:e}}function KW(e){return{type:"error",message:e.message,error:e}}function Bg(e){var t=[];return ra.flatten(ra.pluck(e,"messages"),!0).forEach(function(n){if(!ZW(t,n))t.push(n)}),t}function ZW(e,t){return ra.find(e,YW.bind(null,t))!==void 0}function YW(e,t){return e.type===t.type&&e.message===t.message}});var TE=R(function(l7){l7.byteLength=i7;l7.toByteArray=s7;l7.fromByteArray=u7;var Dn=[],$t=[],r7=typeof Uint8Array<"u"?Uint8Array:Array,Lg="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(Lr=0,Wg=Lg.length;Lr<Wg;++Lr)Dn[Lr]=Lg[Lr],$t[Lg.charCodeAt(Lr)]=Lr;var Lr,Wg;$t[45]=62;$t[95]=63;function EE(e){var t=e.length;if(t%4>0)throw Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");if(n===-1)n=t;var r=n===t?0:4-n%4;return[n,r]}function i7(e){var t=EE(e),n=t[0],r=t[1];return(n+r)*3/4-r}function o7(e,t,n){return(t+n)*3/4-n}function s7(e){var t,n=EE(e),r=n[0],i=n[1],o=new r7(o7(e,r,i)),s=0,a=i>0?r-4:r,c;for(c=0;c<a;c+=4)t=$t[e.charCodeAt(c)]<<18|$t[e.charCodeAt(c+1)]<<12|$t[e.charCodeAt(c+2)]<<6|$t[e.charCodeAt(c+3)],o[s++]=t>>16&255,o[s++]=t>>8&255,o[s++]=t&255;if(i===2)t=$t[e.charCodeAt(c)]<<2|$t[e.charCodeAt(c+1)]>>4,o[s++]=t&255;if(i===1)t=$t[e.charCodeAt(c)]<<10|$t[e.charCodeAt(c+1)]<<4|$t[e.charCodeAt(c+2)]>>2,o[s++]=t>>8&255,o[s++]=t&255;return o}function a7(e){return Dn[e>>18&63]+Dn[e>>12&63]+Dn[e>>6&63]+Dn[e&63]}function c7(e,t,n){var r,i=[];for(var o=t;o<n;o+=3)r=(e[o]<<16&16711680)+(e[o+1]<<8&65280)+(e[o+2]&255),i.push(a7(r));return i.join("")}function u7(e){var t,n=e.length,r=n%3,i=[],o=16383;for(var s=0,a=n-r;s<a;s+=o)i.push(c7(e,s,s+o>a?a:s+o));if(r===1)t=e[n-1],i.push(Dn[t>>2]+Dn[t<<4&63]+"==");else if(r===2)t=(e[n-2]<<8)+e[n-1],i.push(Dn[t>>10]+Dn[t>>4&63]+Dn[t<<2&63]+"=");return i.join("")}});var ia=R(function(Mge,jg){if(typeof process>"u"||!process.version||process.version.indexOf("v0.")===0||process.version.indexOf("v1.")===0&&process.version.indexOf("v1.8.")!==0)jg.exports={nextTick:p7};else jg.exports=process;function p7(e,t,n,r){if(typeof e!=="function")throw TypeError('"callback" argument must be a function');var i=arguments.length,o,s;switch(i){case 0:case 1:return process.nextTick(e);case 2:return process.nextTick(function(){e.call(null,t)});case 3:return process.nextTick(function(){e.call(null,t,n)});case 4:return process.nextTick(function(){e.call(null,t,n,r)});default:o=Array(i-1),s=0;while(s<o.length)o[s++]=arguments[s];return process.nextTick(function(){e.apply(null,o)})}}});var CE=R(function(Nge,SE){var g7={}.toString;SE.exports=Array.isArray||function(e){return g7.call(e)=="[object Array]"}});var yl=R(function(qg,UE){var ml=re("buffer"),Kn=ml.Buffer;function AE(e,t){for(var n in e)t[n]=e[n]}if(Kn.from&&Kn.alloc&&Kn.allocUnsafe&&Kn.allocUnsafeSlow)UE.exports=ml;else AE(ml,qg),qg.Buffer=_o;function _o(e,t,n){return Kn(e,t,n)}AE(Kn,_o);_o.from=function(e,t,n){if(typeof e==="number")throw TypeError("Argument must not be a number");return Kn(e,t,n)};_o.alloc=function(e,t,n){if(typeof e!=="number")throw TypeError("Argument must be a number");var r=Kn(e);if(t!==void 0)if(typeof n==="string")r.fill(t,n);else r.fill(t);else r.fill(0);return r};_o.allocUnsafe=function(e){if(typeof e!=="number")throw TypeError("Argument must be a number");return Kn(e)};_o.allocUnsafeSlow=function(e){if(typeof e!=="number")throw TypeError("Argument must be a number");return ml.SlowBuffer(e)}});var wo=R(function(k7){function m7(e){if(Array.isArray)return Array.isArray(e);return bl(e)==="[object Array]"}k7.isArray=m7;function y7(e){return typeof e==="boolean"}k7.isBoolean=y7;function b7(e){return e===null}k7.isNull=b7;function v7(e){return e==null}k7.isNullOrUndefined=v7;function x7(e){return typeof e==="number"}k7.isNumber=x7;function _7(e){return typeof e==="string"}k7.isString=_7;function w7(e){return typeof e==="symbol"}k7.isSymbol=w7;function D7(e){return e===void 0}k7.isUndefined=D7;function E7(e){return bl(e)==="[object RegExp]"}k7.isRegExp=E7;function T7(e){return typeof e==="object"&&e!==null}k7.isObject=T7;function S7(e){return bl(e)==="[object Date]"}k7.isDate=S7;function C7(e){return bl(e)==="[object Error]"||e instanceof Error}k7.isError=C7;function A7(e){return typeof e==="function"}k7.isFunction=A7;function U7(e){return e===null||typeof e==="boolean"||typeof e==="number"||typeof e==="string"||typeof e==="symbol"||typeof e>"u"}k7.isPrimitive=U7;k7.isBuffer=re("buffer").Buffer.isBuffer;function bl(e){return Object.prototype.toString.call(e)}});var kE=R(function(Lge,$g){if(typeof Object.create==="function")$g.exports=function(t,n){if(n)t.super_=n,t.prototype=Object.create(n.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}})};else $g.exports=function(t,n){if(n){t.super_=n;var r=function(){};r.prototype=n.prototype,t.prototype=new r,t.prototype.constructor=t}}});var Do=R(function(Wge,Hg){try{if(vl=re("util"),typeof vl.inherits!=="function")throw"";Hg.exports=vl.inherits}catch(e){Hg.exports=kE()}var vl});var FE=R(function(jge,Gg){function z7(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}var RE=yl().Buffer,oa=re("util");function V7(e,t,n){e.copy(t,n)}Gg.exports=function(){function e(){z7(this,e),this.head=null,this.tail=null,this.length=0}return e.prototype.push=function(n){var r={data:n,next:null};if(this.length>0)this.tail.next=r;else this.head=r;this.tail=r,++this.length},e.prototype.unshift=function(n){var r={data:n,next:this.head};if(this.length===0)this.tail=r;this.head=r,++this.length},e.prototype.shift=function(){if(this.length===0)return;var n=this.head.data;if(this.length===1)this.head=this.tail=null;else this.head=this.head.next;return--this.length,n},e.prototype.clear=function(){this.head=this.tail=null,this.length=0},e.prototype.join=function(n){if(this.length===0)return"";var r=this.head,i=""+r.data;while(r=r.next)i+=n+r.data;return i},e.prototype.concat=function(n){if(this.length===0)return RE.alloc(0);var r=RE.allocUnsafe(n>>>0),i=this.head,o=0;while(i)V7(i.data,r,o),o+=i.data.length,i=i.next;return r},e}();if(oa&&oa.inspect&&oa.inspect.custom)Gg.exports.prototype[oa.inspect.custom]=function(){var e=oa.inspect({length:this.length});return this.constructor.name+" "+e}});var zg=R(function(qge,OE){var xl=ia();function X7(e,t){var n=this,r=this._readableState&&this._readableState.destroyed,i=this._writableState&&this._writableState.destroyed;if(r||i){if(t)t(e);else if(e){if(!this._writableState)xl.nextTick(_l,this,e);else if(!this._writableState.errorEmitted)this._writableState.errorEmitted=!0,xl.nextTick(_l,this,e)}return this}if(this._readableState)this._readableState.destroyed=!0;if(this._writableState)this._writableState.destroyed=!0;return this._destroy(e||null,function(o){if(!t&&o){if(!n._writableState)xl.nextTick(_l,n,o);else if(!n._writableState.errorEmitted)n._writableState.errorEmitted=!0,xl.nextTick(_l,n,o)}else if(t)t(o)}),this}function K7(){if(this._readableState)this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1;if(this._writableState)this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1}function _l(e,t){e.emit("error",t)}OE.exports={destroy:X7,undestroy:K7}});var IE=R(function($ge,PE){PE.exports=re("util").deprecate});var Xg=R(function(Hge,$E){var Si=ia();$E.exports=je;function NE(e){var t=this;this.next=null,this.entry=null,this.finish=function(){hj(t,e)}}var Z7=["v0.10","v0.9."].indexOf(process.version.slice(0,5))>-1?setImmediate:Si.nextTick,Eo;je.WritableState=aa;var BE=Object.create(wo());BE.inherits=Do();var Y7={deprecate:IE()},LE=re("stream"),Dl=yl().Buffer,J7=(typeof global<"u"?global:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function Q7(e){return Dl.from(e)}function ej(e){return Dl.isBuffer(e)||e instanceof J7}var WE=zg();BE.inherits(je,LE);function tj(){}function aa(e,t){Eo=Eo||Ci(),e=e||{};var n=t instanceof Eo;if(this.objectMode=!!e.objectMode,n)this.objectMode=this.objectMode||!!e.writableObjectMode;var{highWaterMark:r,writableHighWaterMark:i}=e,o=this.objectMode?16:16384;if(r||r===0)this.highWaterMark=r;else if(n&&(i||i===0))this.highWaterMark=i;else this.highWaterMark=o;this.highWaterMark=Math.floor(this.highWaterMark),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var s=e.decodeStrings===!1;this.decodeStrings=!s,this.defaultEncoding=e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(a){cj(t,a)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new NE(this)}aa.prototype.getBuffer=function(){var t=this.bufferedRequest,n=[];while(t)n.push(t),t=t.next;return n};(function(){try{Object.defineProperty(aa.prototype,"buffer",{get:Y7.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(e){}})();var wl;if(typeof Symbol==="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]==="function")wl=Function.prototype[Symbol.hasInstance],Object.defineProperty(je,Symbol.hasInstance,{value:function(e){if(wl.call(this,e))return!0;if(this!==je)return!1;return e&&e._writableState instanceof aa}});else wl=function(e){return e instanceof this};function je(e){if(Eo=Eo||Ci(),!wl.call(je,this)&&!(this instanceof Eo))return new je(e);if(this._writableState=new aa(e,this),this.writable=!0,e){if(typeof e.write==="function")this._write=e.write;if(typeof e.writev==="function")this._writev=e.writev;if(typeof e.destroy==="function")this._destroy=e.destroy;if(typeof e.final==="function")this._final=e.final}LE.call(this)}je.prototype.pipe=function(){this.emit("error",Error("Cannot pipe, not readable"))};function nj(e,t){var n=Error("write after end");e.emit("error",n),Si.nextTick(t,n)}function rj(e,t,n,r){var i=!0,o=!1;if(n===null)o=TypeError("May not write null values to stream");else if(typeof n!=="string"&&n!==void 0&&!t.objectMode)o=TypeError("Invalid non-string/buffer chunk");if(o)e.emit("error",o),Si.nextTick(r,o),i=!1;return i}je.prototype.write=function(e,t,n){var r=this._writableState,i=!1,o=!r.objectMode&&ej(e);if(o&&!Dl.isBuffer(e))e=Q7(e);if(typeof t==="function")n=t,t=null;if(o)t="buffer";else if(!t)t=r.defaultEncoding;if(typeof n!=="function")n=tj;if(r.ended)nj(this,n);else if(o||rj(this,r,e,n))r.pendingcb++,i=oj(this,r,o,e,t,n);return i};je.prototype.cork=function(){var e=this._writableState;e.corked++};je.prototype.uncork=function(){var e=this._writableState;if(e.corked){if(e.corked--,!e.writing&&!e.corked&&!e.bufferProcessing&&e.bufferedRequest)jE(this,e)}};je.prototype.setDefaultEncoding=function(t){if(typeof t==="string")t=t.toLowerCase();if(!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((t+"").toLowerCase())>-1))throw TypeError("Unknown encoding: "+t);return this._writableState.defaultEncoding=t,this};function ij(e,t,n){if(!e.objectMode&&e.decodeStrings!==!1&&typeof t==="string")t=Dl.from(t,n);return t}Object.defineProperty(je.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function oj(e,t,n,r,i,o){if(!n){var s=ij(t,r,i);if(r!==s)n=!0,i="buffer",r=s}var a=t.objectMode?1:r.length;t.length+=a;var c=t.length<t.highWaterMark;if(!c)t.needDrain=!0;if(t.writing||t.corked){var u=t.lastBufferedRequest;if(t.lastBufferedRequest={chunk:r,encoding:i,isBuf:n,callback:o,next:null},u)u.next=t.lastBufferedRequest;else t.bufferedRequest=t.lastBufferedRequest;t.bufferedRequestCount+=1}else Vg(e,t,!1,a,r,i,o);return c}function Vg(e,t,n,r,i,o,s){if(t.writelen=r,t.writecb=s,t.writing=!0,t.sync=!0,n)e._writev(i,t.onwrite);else e._write(i,o,t.onwrite);t.sync=!1}function sj(e,t,n,r,i){if(--t.pendingcb,n)Si.nextTick(i,r),Si.nextTick(sa,e,t),e._writableState.errorEmitted=!0,e.emit("error",r);else i(r),e._writableState.errorEmitted=!0,e.emit("error",r),sa(e,t)}function aj(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}function cj(e,t){var n=e._writableState,r=n.sync,i=n.writecb;if(aj(n),t)sj(e,n,r,t,i);else{var o=qE(n);if(!o&&!n.corked&&!n.bufferProcessing&&n.bufferedRequest)jE(e,n);if(r)Z7(ME,e,n,o,i);else ME(e,n,o,i)}}function ME(e,t,n,r){if(!n)uj(e,t);t.pendingcb--,r(),sa(e,t)}function uj(e,t){if(t.length===0&&t.needDrain)t.needDrain=!1,e.emit("drain")}function jE(e,t){t.bufferProcessing=!0;var n=t.bufferedRequest;if(e._writev&&n&&n.next){var r=t.bufferedRequestCount,i=Array(r),o=t.corkedRequestsFree;o.entry=n;var s=0,a=!0;while(n){if(i[s]=n,!n.isBuf)a=!1;n=n.next,s+=1}if(i.allBuffers=a,Vg(e,t,!0,t.length,i,"",o.finish),t.pendingcb++,t.lastBufferedRequest=null,o.next)t.corkedRequestsFree=o.next,o.next=null;else t.corkedRequestsFree=new NE(t);t.bufferedRequestCount=0}else{while(n){var{chunk:c,encoding:u,callback:d}=n,f=t.objectMode?1:c.length;if(Vg(e,t,!1,f,c,u,d),n=n.next,t.bufferedRequestCount--,t.writing)break}if(n===null)t.lastBufferedRequest=null}t.bufferedRequest=n,t.bufferProcessing=!1}je.prototype._write=function(e,t,n){n(Error("_write() is not implemented"))};je.prototype._writev=null;je.prototype.end=function(e,t,n){var r=this._writableState;if(typeof e==="function")n=e,e=null,t=null;else if(typeof t==="function")n=t,t=null;if(e!==null&&e!==void 0)this.write(e,t);if(r.corked)r.corked=1,this.uncork();if(!r.ending)fj(this,r,n)};function qE(e){return e.ending&&e.length===0&&e.bufferedRequest===null&&!e.finished&&!e.writing}function lj(e,t){e._final(function(n){if(t.pendingcb--,n)e.emit("error",n);t.prefinished=!0,e.emit("prefinish"),sa(e,t)})}function dj(e,t){if(!t.prefinished&&!t.finalCalled)if(typeof e._final==="function")t.pendingcb++,t.finalCalled=!0,Si.nextTick(lj,e,t);else t.prefinished=!0,e.emit("prefinish")}function sa(e,t){var n=qE(t);if(n){if(dj(e,t),t.pendingcb===0)t.finished=!0,e.emit("finish")}return n}function fj(e,t,n){if(t.ending=!0,sa(e,t),n)if(t.finished)Si.nextTick(n);else e.once("finish",n);t.ended=!0,e.writable=!1}function hj(e,t,n){var r=e.entry;e.entry=null;while(r){var i=r.callback;t.pendingcb--,i(n),r=r.next}t.corkedRequestsFree.next=e}Object.defineProperty(je.prototype,"destroyed",{get:function(){if(this._writableState===void 0)return!1;return this._writableState.destroyed},set:function(e){if(!this._writableState)return;this._writableState.destroyed=e}});je.prototype.destroy=WE.destroy;je.prototype._undestroy=WE.undestroy;je.prototype._destroy=function(e,t){this.end(),t(e)}});var Ci=R(function(Gge,VE){var HE=ia(),pj=Object.keys||function(e){var t=[];for(var n in e)t.push(n);return t};VE.exports=Zn;var GE=Object.create(wo());GE.inherits=Do();var zE=Zg(),Kg=Xg();GE.inherits(Zn,zE);{El=pj(Kg.prototype);for(ca=0;ca<El.length;ca++)if(ua=El[ca],!Zn.prototype[ua])Zn.prototype[ua]=Kg.prototype[ua]}var El,ua,ca;function Zn(e){if(!(this instanceof Zn))return new Zn(e);if(zE.call(this,e),Kg.call(this,e),e&&e.readable===!1)this.readable=!1;if(e&&e.writable===!1)this.writable=!1;if(this.allowHalfOpen=!0,e&&e.allowHalfOpen===!1)this.allowHalfOpen=!1;this.once("end",gj)}Object.defineProperty(Zn.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function gj(){if(this.allowHalfOpen||this._writableState.ended)return;HE.nextTick(mj,this)}function mj(e){e.end()}Object.defineProperty(Zn.prototype,"destroyed",{get:function(){if(this._readableState===void 0||this._writableState===void 0)return!1;return this._readableState.destroyed&&this._writableState.destroyed},set:function(e){if(this._readableState===void 0||this._writableState===void 0)return;this._readableState.destroyed=e,this._writableState.destroyed=e}});Zn.prototype._destroy=function(e,t){this.push(null),this.end(),HE.nextTick(t,e)}});var ZE=R(function(Yg,KE){var Tl=re("buffer"),Yn=Tl.Buffer;function XE(e,t){for(var n in e)t[n]=e[n]}if(Yn.from&&Yn.alloc&&Yn.allocUnsafe&&Yn.allocUnsafeSlow)KE.exports=Tl;else XE(Tl,Yg),Yg.Buffer=To;function To(e,t,n){return Yn(e,t,n)}XE(Yn,To);To.from=function(e,t,n){if(typeof e==="number")throw TypeError("Argument must not be a number");return Yn(e,t,n)};To.alloc=function(e,t,n){if(typeof e!=="number")throw TypeError("Argument must be a number");var r=Yn(e);if(t!==void 0)if(typeof n==="string")r.fill(t,n);else r.fill(t);else r.fill(0);return r};To.allocUnsafe=function(e){if(typeof e!=="number")throw TypeError("Argument must be a number");return Yn(e)};To.allocUnsafeSlow=function(e){if(typeof e!=="number")throw TypeError("Argument must be a number");return Tl.SlowBuffer(e)}});var em=R(function(kj){var Qg=ZE().Buffer,YE=Qg.isEncoding||function(e){switch(e=""+e,e&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function yj(e){if(!e)return"utf8";var t;while(!0)switch(e){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return e;default:if(t)return;e=(""+e).toLowerCase(),t=!0}}function bj(e){var t=yj(e);if(typeof t!=="string"&&(Qg.isEncoding===YE||!YE(e)))throw Error("Unknown encoding: "+e);return t||e}kj.StringDecoder=la;function la(e){this.encoding=bj(e);var t;switch(this.encoding){case"utf16le":this.text=Ej,this.end=Tj,t=4;break;case"utf8":this.fillLast=_j,t=4;break;case"base64":this.text=Sj,this.end=Cj,t=3;break;default:this.write=Aj,this.end=Uj;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=Qg.allocUnsafe(t)}la.prototype.write=function(e){if(e.length===0)return"";var t,n;if(this.lastNeed){if(t=this.fillLast(e),t===void 0)return"";n=this.lastNeed,this.lastNeed=0}else n=0;if(n<e.length)return t?t+this.text(e,n):this.text(e,n);return t||""};la.prototype.end=Dj;la.prototype.text=wj;la.prototype.fillLast=function(e){if(this.lastNeed<=e.length)return e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,e.length),this.lastNeed-=e.length};function Jg(e){if(e<=127)return 0;else if(e>>5===6)return 2;else if(e>>4===14)return 3;else if(e>>3===30)return 4;return e>>6===2?-1:-2}function vj(e,t,n){var r=t.length-1;if(r<n)return 0;var i=Jg(t[r]);if(i>=0){if(i>0)e.lastNeed=i-1;return i}if(--r<n||i===-2)return 0;if(i=Jg(t[r]),i>=0){if(i>0)e.lastNeed=i-2;return i}if(--r<n||i===-2)return 0;if(i=Jg(t[r]),i>=0){if(i>0)if(i===2)i=0;else e.lastNeed=i-3;return i}return 0}function xj(e,t,n){if((t[0]&192)!==128)return e.lastNeed=0,"�";if(e.lastNeed>1&&t.length>1){if((t[1]&192)!==128)return e.lastNeed=1,"�";if(e.lastNeed>2&&t.length>2){if((t[2]&192)!==128)return e.lastNeed=2,"�"}}}function _j(e){var t=this.lastTotal-this.lastNeed,n=xj(this,e,t);if(n!==void 0)return n;if(this.lastNeed<=e.length)return e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,t,0,e.length),this.lastNeed-=e.length}function wj(e,t){var n=vj(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=n;var r=e.length-(n-this.lastNeed);return e.copy(this.lastChar,0,r),e.toString("utf8",t,r)}function Dj(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed)return t+"�";return t}function Ej(e,t){if((e.length-t)%2===0){var n=e.toString("utf16le",t);if(n){var r=n.charCodeAt(n.length-1);if(r>=55296&&r<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],n.slice(0,-1)}return n}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",t,e.length-1)}function Tj(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var n=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,n)}return t}function Sj(e,t){var n=(e.length-t)%3;if(n===0)return e.toString("base64",t);if(this.lastNeed=3-n,this.lastTotal=3,n===1)this.lastChar[0]=e[e.length-1];else this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1];return e.toString("base64",t,e.length-n)}function Cj(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed)return t+this.lastChar.toString("base64",0,3-this.lastNeed);return t}function Aj(e){return e.toString(this.encoding)}function Uj(e){return e&&e.length?this.write(e):""}});var Zg=R(function(Xge,uT){var Co=ia();uT.exports=Ce;var Fj=CE(),da;Ce.ReadableState=iT;var Vge=re("events").EventEmitter,tT=function(e,t){return e.listeners(t).length},om=re("stream"),fa=yl().Buffer,Oj=(typeof global<"u"?global:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function Pj(e){return fa.from(e)}function Ij(e){return fa.isBuffer(e)||e instanceof Oj}var nT=Object.create(wo());nT.inherits=Do();var tm=re("util"),ge=void 0;if(tm&&tm.debuglog)ge=tm.debuglog("stream");else ge=function(){};var Mj=FE(),rT=zg(),So;nT.inherits(Ce,om);var nm=["error","close","destroy","pause","resume"];function Nj(e,t,n){if(typeof e.prependListener==="function")return e.prependListener(t,n);if(!e._events||!e._events[t])e.on(t,n);else if(Fj(e._events[t]))e._events[t].unshift(n);else e._events[t]=[n,e._events[t]]}function iT(e,t){da=da||Ci(),e=e||{};var n=t instanceof da;if(this.objectMode=!!e.objectMode,n)this.objectMode=this.objectMode||!!e.readableObjectMode;var{highWaterMark:r,readableHighWaterMark:i}=e,o=this.objectMode?16:16384;if(r||r===0)this.highWaterMark=r;else if(n&&(i||i===0))this.highWaterMark=i;else this.highWaterMark=o;if(this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new Mj,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.destroyed=!1,this.defaultEncoding=e.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding){if(!So)So=em().StringDecoder;this.decoder=new So(e.encoding),this.encoding=e.encoding}}function Ce(e){if(da=da||Ci(),!(this instanceof Ce))return new Ce(e);if(this._readableState=new iT(e,this),this.readable=!0,e){if(typeof e.read==="function")this._read=e.read;if(typeof e.destroy==="function")this._destroy=e.destroy}om.call(this)}Object.defineProperty(Ce.prototype,"destroyed",{get:function(){if(this._readableState===void 0)return!1;return this._readableState.destroyed},set:function(e){if(!this._readableState)return;this._readableState.destroyed=e}});Ce.prototype.destroy=rT.destroy;Ce.prototype._undestroy=rT.undestroy;Ce.prototype._destroy=function(e,t){this.push(null),t(e)};Ce.prototype.push=function(e,t){var n=this._readableState,r;if(!n.objectMode){if(typeof e==="string"){if(t=t||n.defaultEncoding,t!==n.encoding)e=fa.from(e,t),t="";r=!0}}else r=!0;return oT(this,e,t,!1,r)};Ce.prototype.unshift=function(e){return oT(this,e,null,!0,!1)};function oT(e,t,n,r,i){var o=e._readableState;if(t===null)o.reading=!1,jj(e,o);else{var s;if(!i)s=Bj(o,t);if(s)e.emit("error",s);else if(o.objectMode||t&&t.length>0){if(typeof t!=="string"&&!o.objectMode&&Object.getPrototypeOf(t)!==fa.prototype)t=Pj(t);if(r)if(o.endEmitted)e.emit("error",Error("stream.unshift() after end event"));else rm(e,o,t,!0);else if(o.ended)e.emit("error",Error("stream.push() after EOF"));else if(o.reading=!1,o.decoder&&!n)if(t=o.decoder.write(t),o.objectMode||t.length!==0)rm(e,o,t,!1);else sT(e,o);else rm(e,o,t,!1)}else if(!r)o.reading=!1}return Lj(o)}function rm(e,t,n,r){if(t.flowing&&t.length===0&&!t.sync)e.emit("data",n),e.read(0);else{if(t.length+=t.objectMode?1:n.length,r)t.buffer.unshift(n);else t.buffer.push(n);if(t.needReadable)Sl(e)}sT(e,t)}function Bj(e,t){var n;if(!Ij(t)&&typeof t!=="string"&&t!==void 0&&!e.objectMode)n=TypeError("Invalid non-string/buffer chunk");return n}function Lj(e){return!e.ended&&(e.needReadable||e.length<e.highWaterMark||e.length===0)}Ce.prototype.isPaused=function(){return this._readableState.flowing===!1};Ce.prototype.setEncoding=function(e){if(!So)So=em().StringDecoder;return this._readableState.decoder=new So(e),this._readableState.encoding=e,this};var JE=8388608;function Wj(e){if(e>=JE)e=JE;else e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++;return e}function QE(e,t){if(e<=0||t.length===0&&t.ended)return 0;if(t.objectMode)return 1;if(e!==e)if(t.flowing&&t.length)return t.buffer.head.data.length;else return t.length;if(e>t.highWaterMark)t.highWaterMark=Wj(e);if(e<=t.length)return e;if(!t.ended)return t.needReadable=!0,0;return t.length}Ce.prototype.read=function(e){ge("read",e),e=parseInt(e,10);var t=this._readableState,n=e;if(e!==0)t.emittedReadable=!1;if(e===0&&t.needReadable&&(t.length>=t.highWaterMark||t.ended)){if(ge("read: emitReadable",t.length,t.ended),t.length===0&&t.ended)im(this);else Sl(this);return null}if(e=QE(e,t),e===0&&t.ended){if(t.length===0)im(this);return null}var r=t.needReadable;if(ge("need readable",r),t.length===0||t.length-e<t.highWaterMark)r=!0,ge("length less than watermark",r);if(t.ended||t.reading)r=!1,ge("reading or ended",r);else if(r){if(ge("do read"),t.reading=!0,t.sync=!0,t.length===0)t.needReadable=!0;if(this._read(t.highWaterMark),t.sync=!1,!t.reading)e=QE(n,t)}var i;if(e>0)i=aT(e,t);else i=null;if(i===null)t.needReadable=!0,e=0;else t.length-=e;if(t.length===0){if(!t.ended)t.needReadable=!0;if(n!==e&&t.ended)im(this)}if(i!==null)this.emit("data",i);return i};function jj(e,t){if(t.ended)return;if(t.decoder){var n=t.decoder.end();if(n&&n.length)t.buffer.push(n),t.length+=t.objectMode?1:n.length}t.ended=!0,Sl(e)}function Sl(e){var t=e._readableState;if(t.needReadable=!1,!t.emittedReadable)if(ge("emitReadable",t.flowing),t.emittedReadable=!0,t.sync)Co.nextTick(eT,e);else eT(e)}function eT(e){ge("emit readable"),e.emit("readable"),sm(e)}function sT(e,t){if(!t.readingMore)t.readingMore=!0,Co.nextTick(qj,e,t)}function qj(e,t){var n=t.length;while(!t.reading&&!t.flowing&&!t.ended&&t.length<t.highWaterMark)if(ge("maybeReadMore read 0"),e.read(0),n===t.length)break;else n=t.length;t.readingMore=!1}Ce.prototype._read=function(e){this.emit("error",Error("_read() is not implemented"))};Ce.prototype.pipe=function(e,t){var n=this,r=this._readableState;switch(r.pipesCount){case 0:r.pipes=e;break;case 1:r.pipes=[r.pipes,e];break;default:r.pipes.push(e);break}r.pipesCount+=1,ge("pipe count=%d opts=%j",r.pipesCount,t);var i=(!t||t.end!==!1)&&e!==process.stdout&&e!==process.stderr,o=i?a:v;if(r.endEmitted)Co.nextTick(o);else n.once("end",o);e.on("unpipe",s);function s(b,_){if(ge("onunpipe"),b===n){if(_&&_.hasUnpiped===!1)_.hasUnpiped=!0,d()}}function a(){ge("onend"),e.end()}var c=$j(n);e.on("drain",c);var u=!1;function d(){if(ge("cleanup"),e.removeListener("close",g),e.removeListener("finish",y),e.removeListener("drain",c),e.removeListener("error",p),e.removeListener("unpipe",s),n.removeListener("end",a),n.removeListener("end",v),n.removeListener("data",h),u=!0,r.awaitDrain&&(!e._writableState||e._writableState.needDrain))c()}var f=!1;n.on("data",h);function h(b){ge("ondata"),f=!1;var _=e.write(b);if(_===!1&&!f){if((r.pipesCount===1&&r.pipes===e||r.pipesCount>1&&cT(r.pipes,e)!==-1)&&!u)ge("false write response, pause",r.awaitDrain),r.awaitDrain++,f=!0;n.pause()}}function p(b){if(ge("onerror",b),v(),e.removeListener("error",p),tT(e,"error")===0)e.emit("error",b)}Nj(e,"error",p);function g(){e.removeListener("finish",y),v()}e.once("close",g);function y(){ge("onfinish"),e.removeListener("close",g),v()}e.once("finish",y);function v(){ge("unpipe"),n.unpipe(e)}if(e.emit("pipe",n),!r.flowing)ge("pipe resume"),n.resume();return e};function $j(e){return function(){var t=e._readableState;if(ge("pipeOnDrain",t.awaitDrain),t.awaitDrain)t.awaitDrain--;if(t.awaitDrain===0&&tT(e,"data"))t.flowing=!0,sm(e)}}Ce.prototype.unpipe=function(e){var t=this._readableState,n={hasUnpiped:!1};if(t.pipesCount===0)return this;if(t.pipesCount===1){if(e&&e!==t.pipes)return this;if(!e)e=t.pipes;if(t.pipes=null,t.pipesCount=0,t.flowing=!1,e)e.emit("unpipe",this,n);return this}if(!e){var{pipes:r,pipesCount:i}=t;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var o=0;o<i;o++)r[o].emit("unpipe",this,{hasUnpiped:!1});return this}var s=cT(t.pipes,e);if(s===-1)return this;if(t.pipes.splice(s,1),t.pipesCount-=1,t.pipesCount===1)t.pipes=t.pipes[0];return e.emit("unpipe",this,n),this};Ce.prototype.on=function(e,t){var n=om.prototype.on.call(this,e,t);if(e==="data"){if(this._readableState.flowing!==!1)this.resume()}else if(e==="readable"){var r=this._readableState;if(!r.endEmitted&&!r.readableListening){if(r.readableListening=r.needReadable=!0,r.emittedReadable=!1,!r.reading)Co.nextTick(Hj,this);else if(r.length)Sl(this)}}return n};Ce.prototype.addListener=Ce.prototype.on;function Hj(e){ge("readable nexttick read 0"),e.read(0)}Ce.prototype.resume=function(){var e=this._readableState;if(!e.flowing)ge("resume"),e.flowing=!0,Gj(this,e);return this};function Gj(e,t){if(!t.resumeScheduled)t.resumeScheduled=!0,Co.nextTick(zj,e,t)}function zj(e,t){if(!t.reading)ge("resume read 0"),e.read(0);if(t.resumeScheduled=!1,t.awaitDrain=0,e.emit("resume"),sm(e),t.flowing&&!t.reading)e.read(0)}Ce.prototype.pause=function(){if(ge("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1)ge("pause"),this._readableState.flowing=!1,this.emit("pause");return this};function sm(e){var t=e._readableState;ge("flow",t.flowing);while(t.flowing&&e.read()!==null);}Ce.prototype.wrap=function(e){var t=this,n=this._readableState,r=!1;e.on("end",function(){if(ge("wrapped end"),n.decoder&&!n.ended){var s=n.decoder.end();if(s&&s.length)t.push(s)}t.push(null)}),e.on("data",function(s){if(ge("wrapped data"),n.decoder)s=n.decoder.write(s);if(n.objectMode&&(s===null||s===void 0))return;else if(!n.objectMode&&(!s||!s.length))return;var a=t.push(s);if(!a)r=!0,e.pause()});for(var i in e)if(this[i]===void 0&&typeof e[i]==="function")this[i]=function(s){return function(){return e[s].apply(e,arguments)}}(i);for(var o=0;o<nm.length;o++)e.on(nm[o],this.emit.bind(this,nm[o]));return this._read=function(s){if(ge("wrapped _read",s),r)r=!1,e.resume()},this};Object.defineProperty(Ce.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}});Ce._fromList=aT;function aT(e,t){if(t.length===0)return null;var n;if(t.objectMode)n=t.buffer.shift();else if(!e||e>=t.length){if(t.decoder)n=t.buffer.join("");else if(t.buffer.length===1)n=t.buffer.head.data;else n=t.buffer.concat(t.length);t.buffer.clear()}else n=Vj(e,t.buffer,t.decoder);return n}function Vj(e,t,n){var r;if(e<t.head.data.length)r=t.head.data.slice(0,e),t.head.data=t.head.data.slice(e);else if(e===t.head.data.length)r=t.shift();else r=n?Xj(e,t):Kj(e,t);return r}function Xj(e,t){var n=t.head,r=1,i=n.data;e-=i.length;while(n=n.next){var o=n.data,s=e>o.length?o.length:e;if(s===o.length)i+=o;else i+=o.slice(0,e);if(e-=s,e===0){if(s===o.length)if(++r,n.next)t.head=n.next;else t.head=t.tail=null;else t.head=n,n.data=o.slice(s);break}++r}return t.length-=r,i}function Kj(e,t){var n=fa.allocUnsafe(e),r=t.head,i=1;r.data.copy(n),e-=r.data.length;while(r=r.next){var o=r.data,s=e>o.length?o.length:e;if(o.copy(n,n.length-e,0,s),e-=s,e===0){if(s===o.length)if(++i,r.next)t.head=r.next;else t.head=t.tail=null;else t.head=r,r.data=o.slice(s);break}++i}return t.length-=i,n}function im(e){var t=e._readableState;if(t.length>0)throw Error('"endReadable()" called on non-empty stream');if(!t.endEmitted)t.ended=!0,Co.nextTick(Zj,t,e)}function Zj(e,t){if(!e.endEmitted&&e.length===0)e.endEmitted=!0,t.readable=!1,t.emit("end")}function cT(e,t){for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1}});var am=R(function(Kge,fT){fT.exports=Jn;var Cl=Ci(),dT=Object.create(wo());dT.inherits=Do();dT.inherits(Jn,Cl);function Yj(e,t){var n=this._transformState;n.transforming=!1;var r=n.writecb;if(!r)return this.emit("error",Error("write callback called multiple times"));if(n.writechunk=null,n.writecb=null,t!=null)this.push(t);r(e);var i=this._readableState;if(i.reading=!1,i.needReadable||i.length<i.highWaterMark)this._read(i.highWaterMark)}function Jn(e){if(!(this instanceof Jn))return new Jn(e);if(Cl.call(this,e),this._transformState={afterTransform:Yj.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,e){if(typeof e.transform==="function")this._transform=e.transform;if(typeof e.flush==="function")this._flush=e.flush}this.on("prefinish",Jj)}function Jj(){var e=this;if(typeof this._flush==="function")this._flush(function(t,n){lT(e,t,n)});else lT(this,null,null)}Jn.prototype.push=function(e,t){return this._transformState.needTransform=!1,Cl.prototype.push.call(this,e,t)};Jn.prototype._transform=function(e,t,n){throw Error("_transform() is not implemented")};Jn.prototype._write=function(e,t,n){var r=this._transformState;if(r.writecb=n,r.writechunk=e,r.writeencoding=t,!r.transforming){var i=this._readableState;if(r.needTransform||i.needReadable||i.length<i.highWaterMark)this._read(i.highWaterMark)}};Jn.prototype._read=function(e){var t=this._transformState;if(t.writechunk!==null&&t.writecb&&!t.transforming)t.transforming=!0,this._transform(t.writechunk,t.writeencoding,t.afterTransform);else t.needTransform=!0};Jn.prototype._destroy=function(e,t){var n=this;Cl.prototype._destroy.call(this,e,function(r){t(r),n.emit("close")})};function lT(e,t,n){if(t)return e.emit("error",t);if(n!=null)e.push(n);if(e._writableState.length)throw Error("Calling transform done when ws.length != 0");if(e._transformState.transforming)throw Error("Calling transform done when still transforming");return e.push(null)}});var mT=R(function(Zge,gT){gT.exports=ha;var hT=am(),pT=Object.create(wo());pT.inherits=Do();pT.inherits(ha,hT);function ha(e){if(!(this instanceof ha))return new ha(e);hT.call(this,e)}ha.prototype._transform=function(e,t,n){n(null,e)}});var cm=R(function(nt,Al){var En=re("stream");if(process.env.READABLE_STREAM==="disable"&&En)Al.exports=En,nt=Al.exports=En.Readable,nt.Readable=En.Readable,nt.Writable=En.Writable,nt.Duplex=En.Duplex,nt.Transform=En.Transform,nt.PassThrough=En.PassThrough,nt.Stream=En;else nt=Al.exports=Zg(),nt.Stream=En||nt,nt.Readable=nt,nt.Writable=Xg(),nt.Duplex=Ci(),nt.Transform=am(),nt.PassThrough=mT()});var Qn=R(function(eq){eq.base64=!0;eq.array=!0;eq.string=!0;eq.arraybuffer=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u";eq.nodebuffer=typeof Buffer<"u";eq.uint8array=typeof Uint8Array<"u";if(typeof ArrayBuffer>"u")eq.blob=!1;else{Ul=new ArrayBuffer(0);try{eq.blob=new Blob([Ul],{type:"application/zip"}).size===0}catch(e){try{lm=self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder,kl=new lm,kl.append(Ul),eq.blob=kl.getBlob("application/zip").size===0}catch(t){eq.blob=!1}}}var Ul,lm,kl;try{eq.nodestream=!!cm().Readable}catch(e){eq.nodestream=!1}});var dm=R(function(uq){var aq=Pe(),cq=Qn(),Tn="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";uq.encode=function(e){var t=[],n,r,i,o,s,a,c,u=0,d=e.length,f=d,h=aq.getTypeOf(e)!=="string";while(u<e.length){if(f=d-u,!h)n=e.charCodeAt(u++),r=u<d?e.charCodeAt(u++):0,i=u<d?e.charCodeAt(u++):0;else n=e[u++],r=u<d?e[u++]:0,i=u<d?e[u++]:0;o=n>>2,s=(n&3)<<4|r>>4,a=f>1?(r&15)<<2|i>>6:64,c=f>2?i&63:64,t.push(Tn.charAt(o)+Tn.charAt(s)+Tn.charAt(a)+Tn.charAt(c))}return t.join("")};uq.decode=function(e){var t,n,r,i,o,s,a,c=0,u=0,d="data:";if(e.substr(0,d.length)===d)throw Error("Invalid base64 input, it looks like a data url.");e=e.replace(/[^A-Za-z0-9+/=]/g,"");var f=e.length*3/4;if(e.charAt(e.length-1)===Tn.charAt(64))f--;if(e.charAt(e.length-2)===Tn.charAt(64))f--;if(f%1!==0)throw Error("Invalid base64 input, bad content length.");var h;if(cq.uint8array)h=new Uint8Array(f|0);else h=Array(f|0);while(c<e.length){if(i=Tn.indexOf(e.charAt(c++)),o=Tn.indexOf(e.charAt(c++)),s=Tn.indexOf(e.charAt(c++)),a=Tn.indexOf(e.charAt(c++)),t=i<<2|o>>4,n=(o&15)<<4|s>>2,r=(s&3)<<6|a,h[u++]=t,s!==64)h[u++]=n;if(a!==64)h[u++]=r}return h}});var pa=R(function(Qge,yT){yT.exports={isNode:typeof Buffer<"u",newBufferFrom:function(e,t){if(Buffer.from&&Buffer.from!==Uint8Array.from)return Buffer.from(e,t);else{if(typeof e==="number")throw Error('The "data" argument must not be a number');return new Buffer(e,t)}},allocBuffer:function(e){if(Buffer.alloc)return Buffer.alloc(e);else{var t=new Buffer(e);return t.fill(0),t}},isBuffer:function(e){return Buffer.isBuffer(e)},isStream:function(e){return e&&typeof e.on==="function"&&typeof e.pause==="function"&&typeof e.resume==="function"}}});var xT=R(function(tme,vT){var eme=global.MutationObserver||global.WebKitMutationObserver,bT;bT=function(){process.nextTick(mq)};var fq,hq,pq,gq,fm,ga=[];function mq(){fm=!0;var e,t,n=ga.length;while(n){t=ga,ga=[],e=-1;while(++e<n)t[e]();n=ga.length}fm=!1}vT.exports=yq;function yq(e){if(ga.push(e)===1&&!fm)bT()}});var CT=R(function(nme,ST){var _T=xT();function Uo(){}var ft={},wT=["REJECTED"],hm=["FULFILLED"],DT=["PENDING"];Ao=["UNHANDLED"];var Ao;ST.exports=Wr;function Wr(e){if(typeof e!=="function")throw TypeError("resolver must be a function");if(this.state=DT,this.queue=[],this.outcome=void 0,this.handled=Ao,e!==Uo)ET(this,e)}Wr.prototype.finally=function(e){if(typeof e!=="function")return this;var t=this.constructor;return this.then(n,r);function n(i){function o(){return i}return t.resolve(e()).then(o)}function r(i){function o(){throw i}return t.resolve(e()).then(o)}};Wr.prototype.catch=function(e){return this.then(null,e)};Wr.prototype.then=function(e,t){if(typeof e!=="function"&&this.state===hm||typeof t!=="function"&&this.state===wT)return this;var n=new this.constructor(Uo);if(this.handled===Ao)this.handled=null;if(this.state!==DT){var r=this.state===hm?e:t;pm(n,r,this.outcome)}else this.queue.push(new ma(n,e,t));return n};function ma(e,t,n){if(this.promise=e,typeof t==="function")this.onFulfilled=t,this.callFulfilled=this.otherCallFulfilled;if(typeof n==="function")this.onRejected=n,this.callRejected=this.otherCallRejected}ma.prototype.callFulfilled=function(e){ft.resolve(this.promise,e)};ma.prototype.otherCallFulfilled=function(e){pm(this.promise,this.onFulfilled,e)};ma.prototype.callRejected=function(e){ft.reject(this.promise,e)};ma.prototype.otherCallRejected=function(e){pm(this.promise,this.onRejected,e)};function pm(e,t,n){_T(function(){var r;try{r=t(n)}catch(i){return ft.reject(e,i)}if(r===e)ft.reject(e,TypeError("Cannot resolve promise with itself"));else ft.resolve(e,r)})}ft.resolve=function(e,t){var n=TT(bq,t);if(n.status==="error")return ft.reject(e,n.value);var r=n.value;if(r)ET(e,r);else{e.state=hm,e.outcome=t;var i=-1,o=e.queue.length;while(++i<o)e.queue[i].callFulfilled(t)}return e};ft.reject=function(e,t){if(e.state=wT,e.outcome=t,e.handled===Ao)_T(function(){if(e.handled===Ao)process.emit("unhandledRejection",t,e)});var n=-1,r=e.queue.length;while(++n<r)e.queue[n].callRejected(t);return e};function bq(e){var t=e&&e.then;if(e&&(typeof e==="object"||typeof e==="function")&&typeof t==="function")return function(){t.apply(e,arguments)}}function ET(e,t){var n=!1;function r(a){if(n)return;n=!0,ft.reject(e,a)}function i(a){if(n)return;n=!0,ft.resolve(e,a)}function o(){t(i,r)}var s=TT(o);if(s.status==="error")r(s.value)}function TT(e,t){var n={};try{n.value=e(t),n.status="success"}catch(r){n.status="error",n.value=r}return n}Wr.resolve=vq;function vq(e){if(e instanceof this)return e;return ft.resolve(new this(Uo),e)}Wr.reject=xq;function xq(e){var t=new this(Uo);return ft.reject(t,e)}Wr.all=_q;function _q(e){var t=this;if(Object.prototype.toString.call(e)!=="[object Array]")return this.reject(TypeError("must be an array"));var n=e.length,r=!1;if(!n)return this.resolve([]);var i=Array(n),o=0,s=-1,a=new this(Uo);while(++s<n)c(e[s],s);return a;function c(u,d){t.resolve(u).then(f,function(h){if(!r)r=!0,ft.reject(a,h)});function f(h){if(i[d]=h,++o===n&&!r)r=!0,ft.resolve(a,i)}}}Wr.race=wq;function wq(e){var t=this;if(Object.prototype.toString.call(e)!=="[object Array]")return this.reject(TypeError("must be an array"));var n=e.length,r=!1;if(!n)return this.resolve([]);var i=-1,o=new this(Uo);while(++i<n)s(e[i]);return o;function s(a){t.resolve(a).then(function(c){if(!r)r=!0,ft.resolve(o,c)},function(c){if(!r)r=!0,ft.reject(o,c)})}}});var ko=R(function(rme,AT){var gm=null;if(typeof Promise<"u")gm=Promise;else gm=CT();AT.exports={Promise:gm}});var kT=R(function(UT){(function(e,t){if(e.setImmediate)return;var n=1,r={},i=!1,o=e.document,s;function a(_){if(typeof _!=="function")_=Function(""+_);var m=Array(arguments.length-1);for(var x=0;x<m.length;x++)m[x]=arguments[x+1];var D={callback:_,args:m};return r[n]=D,s(n),n++}function c(_){delete r[_]}function u(_){var{callback:m,args:x}=_;switch(x.length){case 0:m();break;case 1:m(x[0]);break;case 2:m(x[0],x[1]);break;case 3:m(x[0],x[1],x[2]);break;default:m.apply(t,x);break}}function d(_){if(i)setTimeout(d,0,_);else{var m=r[_];if(m){i=!0;try{u(m)}finally{c(_),i=!1}}}}function f(){s=function(_){process.nextTick(function(){d(_)})}}function h(){if(e.postMessage&&!e.importScripts){var _=!0,m=e.onmessage;return e.onmessage=function(){_=!1},e.postMessage("","*"),e.onmessage=m,_}}function p(){var _="setImmediate$"+Math.random()+"$",m=function(x){if(x.source===e&&typeof x.data==="string"&&x.data.indexOf(_)===0)d(+x.data.slice(_.length))};if(e.addEventListener)e.addEventListener("message",m,!1);else e.attachEvent("onmessage",m);s=function(x){e.postMessage(_+x,"*")}}function g(){var _=new MessageChannel;_.port1.onmessage=function(m){var x=m.data;d(x)},s=function(m){_.port2.postMessage(m)}}function y(){var _=o.documentElement;s=function(m){var x=o.createElement("script");x.onreadystatechange=function(){d(m),x.onreadystatechange=null,_.removeChild(x),x=null},_.appendChild(x)}}function v(){s=function(_){setTimeout(d,0,_)}}var b=Object.getPrototypeOf&&Object.getPrototypeOf(e);if(b=b&&b.setTimeout?b:e,{}.toString.call(e.process)==="[object process]")f();else if(h())p();else if(e.MessageChannel)g();else if(o&&"onreadystatechange"in o.createElement("script"))y();else v();b.setImmediate=a,b.clearImmediate=c})(typeof self>"u"?typeof global>"u"?UT:global:self)});var Pe=R(function(Tq){var jr=Qn(),Dq=dm(),Ro=pa(),mm=ko();kT();function Eq(e){var t=null;if(jr.uint8array)t=new Uint8Array(e.length);else t=Array(e.length);return Fl(e,t)}Tq.newBlob=function(e,t){Tq.checkSupport("blob");try{return new Blob([e],{type:t})}catch(i){try{var n=self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder,r=new n;return r.append(e),r.getBlob(t)}catch(o){throw Error("Bug : can't construct the Blob.")}}};function ya(e){return e}function Fl(e,t){for(var n=0;n<e.length;++n)t[n]=e.charCodeAt(n)&255;return t}var Rl={stringifyByChunk:function(e,t,n){var r=[],i=0,o=e.length;if(o<=n)return String.fromCharCode.apply(null,e);while(i<o){if(t==="array"||t==="nodebuffer")r.push(String.fromCharCode.apply(null,e.slice(i,Math.min(i+n,o))));else r.push(String.fromCharCode.apply(null,e.subarray(i,Math.min(i+n,o))));i+=n}return r.join("")},stringifyByChar:function(e){var t="";for(var n=0;n<e.length;n++)t+=String.fromCharCode(e[n]);return t},applyCanBeUsed:{uint8array:function(){try{return jr.uint8array&&String.fromCharCode.apply(null,new Uint8Array(1)).length===1}catch(e){return!1}}(),nodebuffer:function(){try{return jr.nodebuffer&&String.fromCharCode.apply(null,Ro.allocBuffer(1)).length===1}catch(e){return!1}}()}};function ba(e){var t=65536,n=Tq.getTypeOf(e),r=!0;if(n==="uint8array")r=Rl.applyCanBeUsed.uint8array;else if(n==="nodebuffer")r=Rl.applyCanBeUsed.nodebuffer;if(r)while(t>1)try{return Rl.stringifyByChunk(e,n,t)}catch(i){t=Math.floor(t/2)}return Rl.stringifyByChar(e)}Tq.applyFromCharCode=ba;function Ol(e,t){for(var n=0;n<e.length;n++)t[n]=e[n];return t}var qr={};qr.string={string:ya,array:function(e){return Fl(e,Array(e.length))},arraybuffer:function(e){return qr.string.uint8array(e).buffer},uint8array:function(e){return Fl(e,new Uint8Array(e.length))},nodebuffer:function(e){return Fl(e,Ro.allocBuffer(e.length))}};qr.array={string:ba,array:ya,arraybuffer:function(e){return new Uint8Array(e).buffer},uint8array:function(e){return new Uint8Array(e)},nodebuffer:function(e){return Ro.newBufferFrom(e)}};qr.arraybuffer={string:function(e){return ba(new Uint8Array(e))},array:function(e){return Ol(new Uint8Array(e),Array(e.byteLength))},arraybuffer:ya,uint8array:function(e){return new Uint8Array(e)},nodebuffer:function(e){return Ro.newBufferFrom(new Uint8Array(e))}};qr.uint8array={string:ba,array:function(e){return Ol(e,Array(e.length))},arraybuffer:function(e){return e.buffer},uint8array:ya,nodebuffer:function(e){return Ro.newBufferFrom(e)}};qr.nodebuffer={string:ba,array:function(e){return Ol(e,Array(e.length))},arraybuffer:function(e){return qr.nodebuffer.uint8array(e).buffer},uint8array:function(e){return Ol(e,new Uint8Array(e.length))},nodebuffer:ya};Tq.transformTo=function(e,t){if(!t)t="";if(!e)return t;Tq.checkSupport(e);var n=Tq.getTypeOf(t),r=qr[n][e](t);return r};Tq.resolve=function(e){var t=e.split("/"),n=[];for(var r=0;r<t.length;r++){var i=t[r];if(i==="."||i===""&&r!==0&&r!==t.length-1)continue;else if(i==="..")n.pop();else n.push(i)}return n.join("/")};Tq.getTypeOf=function(e){if(typeof e==="string")return"string";if(Object.prototype.toString.call(e)==="[object Array]")return"array";if(jr.nodebuffer&&Ro.isBuffer(e))return"nodebuffer";if(jr.uint8array&&e instanceof Uint8Array)return"uint8array";if(jr.arraybuffer&&e instanceof ArrayBuffer)return"arraybuffer"};Tq.checkSupport=function(e){var t=jr[e.toLowerCase()];if(!t)throw Error(e+" is not supported by this platform")};Tq.MAX_VALUE_16BITS=65535;Tq.MAX_VALUE_32BITS=-1;Tq.pretty=function(e){var t="",n,r;for(r=0;r<(e||"").length;r++)n=e.charCodeAt(r),t+="\\x"+(n<16?"0":"")+n.toString(16).toUpperCase();return t};Tq.delay=function(e,t,n){setImmediate(function(){e.apply(n||null,t||[])})};Tq.inherits=function(e,t){var n=function(){};n.prototype=t.prototype,e.prototype=new n};Tq.extend=function(){var e={},t,n;for(t=0;t<arguments.length;t++)for(n in arguments[t])if(Object.prototype.hasOwnProperty.call(arguments[t],n)&&typeof e[n]>"u")e[n]=arguments[t][n];return e};Tq.prepareContent=function(e,t,n,r,i){var o=mm.Promise.resolve(t).then(function(s){var a=jr.blob&&(s instanceof Blob||["[object File]","[object Blob]"].indexOf(Object.prototype.toString.call(s))!==-1);if(a&&typeof FileReader<"u")return new mm.Promise(function(c,u){var d=new FileReader;d.onload=function(f){c(f.target.result)},d.onerror=function(f){u(f.target.error)},d.readAsArrayBuffer(s)});else return s});return o.then(function(s){var a=Tq.getTypeOf(s);if(!a)return mm.Promise.reject(Error("Can't read the data of '"+e+"'. Is it in a supported JavaScript type (String, Blob, ArrayBuffer, etc) ?"));if(a==="arraybuffer")s=Tq.transformTo("uint8array",s);else if(a==="string"){if(i)s=Dq.decode(s);else if(n){if(r!==!0)s=Eq(s)}}return s})}});var Pt=R(function(sme,PT){function OT(e){this.name=e||"default",this.streamInfo={},this.generatedError=null,this.extraStreamInfo={},this.isPaused=!0,this.isFinished=!1,this.isLocked=!1,this._listeners={data:[],end:[],error:[]},this.previous=null}OT.prototype={push:function(e){this.emit("data",e)},end:function(){if(this.isFinished)return!1;this.flush();try{this.emit("end"),this.cleanUp(),this.isFinished=!0}catch(e){this.emit("error",e)}return!0},error:function(e){if(this.isFinished)return!1;if(this.isPaused)this.generatedError=e;else{if(this.isFinished=!0,this.emit("error",e),this.previous)this.previous.error(e);this.cleanUp()}return!0},on:function(e,t){return this._listeners[e].push(t),this},cleanUp:function(){this.streamInfo=this.generatedError=this.extraStreamInfo=null,this._listeners=[]},emit:function(e,t){if(this._listeners[e])for(var n=0;n<this._listeners[e].length;n++)this._listeners[e][n].call(this,t)},pipe:function(e){return e.registerPrevious(this)},registerPrevious:function(e){if(this.isLocked)throw Error("The stream '"+this+"' has already been used.");this.streamInfo=e.streamInfo,this.mergeStreamInfo(),this.previous=e;var t=this;return e.on("data",function(n){t.processChunk(n)}),e.on("end",function(){t.end()}),e.on("error",function(n){t.error(n)}),this},pause:function(){if(this.isPaused||this.isFinished)return!1;if(this.isPaused=!0,this.previous)this.previous.pause();return!0},resume:function(){if(!this.isPaused||this.isFinished)return!1;this.isPaused=!1;var e=!1;if(this.generatedError)this.error(this.generatedError),e=!0;if(this.previous)this.previous.resume();return!e},flush:function(){},processChunk:function(e){this.push(e)},withStreamInfo:function(e,t){return this.extraStreamInfo[e]=t,this.mergeStreamInfo(),this},mergeStreamInfo:function(){for(var e in this.extraStreamInfo){if(!Object.prototype.hasOwnProperty.call(this.extraStreamInfo,e))continue;this.streamInfo[e]=this.extraStreamInfo[e]}},lock:function(){if(this.isLocked)throw Error("The stream '"+this+"' has already been used.");if(this.isLocked=!0,this.previous)this.previous.lock()},toString:function(){var e="Worker "+this.name;if(this.previous)return this.previous+" -> "+e;else return e}};PT.exports=OT});var Oo=R(function(Wq){var Fo=Pe(),Ai=Qn(),Mq=pa(),Pl=Pt(),va=Array(256);for(Sn=0;Sn<256;Sn++)va[Sn]=Sn>=252?6:Sn>=248?5:Sn>=240?4:Sn>=224?3:Sn>=192?2:1;var Sn;va[254]=va[254]=1;var Nq=function(e){var t,n,r,i,o,s=e.length,a=0;for(i=0;i<s;i++){if(n=e.charCodeAt(i),(n&64512)===55296&&i+1<s){if(r=e.charCodeAt(i+1),(r&64512)===56320)n=65536+(n-55296<<10)+(r-56320),i++}a+=n<128?1:n<2048?2:n<65536?3:4}if(Ai.uint8array)t=new Uint8Array(a);else t=Array(a);for(o=0,i=0;o<a;i++){if(n=e.charCodeAt(i),(n&64512)===55296&&i+1<s){if(r=e.charCodeAt(i+1),(r&64512)===56320)n=65536+(n-55296<<10)+(r-56320),i++}if(n<128)t[o++]=n;else if(n<2048)t[o++]=192|n>>>6,t[o++]=128|n&63;else if(n<65536)t[o++]=224|n>>>12,t[o++]=128|n>>>6&63,t[o++]=128|n&63;else t[o++]=240|n>>>18,t[o++]=128|n>>>12&63,t[o++]=128|n>>>6&63,t[o++]=128|n&63}return t},Bq=function(e,t){var n;if(t=t||e.length,t>e.length)t=e.length;n=t-1;while(n>=0&&(e[n]&192)===128)n--;if(n<0)return t;if(n===0)return t;return n+va[e[n]]>t?n:t},Lq=function(e){var t,n,r,i,o=e.length,s=Array(o*2);for(n=0,t=0;t<o;){if(r=e[t++],r<128){s[n++]=r;continue}if(i=va[r],i>4){s[n++]=65533,t+=i-1;continue}r&=i===2?31:i===3?15:7;while(i>1&&t<o)r=r<<6|e[t++]&63,i--;if(i>1){s[n++]=65533;continue}if(r<65536)s[n++]=r;else r-=65536,s[n++]=55296|r>>10&1023,s[n++]=56320|r&1023}if(s.length!==n)if(s.subarray)s=s.subarray(0,n);else s.length=n;return Fo.applyFromCharCode(s)};Wq.utf8encode=function(t){if(Ai.nodebuffer)return Mq.newBufferFrom(t,"utf-8");return Nq(t)};Wq.utf8decode=function(t){if(Ai.nodebuffer)return Fo.transformTo("nodebuffer",t).toString("utf-8");return t=Fo.transformTo(Ai.uint8array?"uint8array":"array",t),Lq(t)};function Il(){Pl.call(this,"utf-8 decode"),this.leftOver=null}Fo.inherits(Il,Pl);Il.prototype.processChunk=function(e){var t=Fo.transformTo(Ai.uint8array?"uint8array":"array",e.data);if(this.leftOver&&this.leftOver.length){if(Ai.uint8array){var n=t;t=new Uint8Array(n.length+this.leftOver.length),t.set(this.leftOver,0),t.set(n,this.leftOver.length)}else t=this.leftOver.concat(t);this.leftOver=null}var r=Bq(t),i=t;if(r!==t.length)if(Ai.uint8array)i=t.subarray(0,r),this.leftOver=t.subarray(r,t.length);else i=t.slice(0,r),this.leftOver=t.slice(r,t.length);this.push({data:Wq.utf8decode(i),meta:e.meta})};Il.prototype.flush=function(){if(this.leftOver&&this.leftOver.length)this.push({data:Wq.utf8decode(this.leftOver),meta:{}}),this.leftOver=null};Wq.Utf8DecodeWorker=Il;function bm(){Pl.call(this,"utf-8 encode")}Fo.inherits(bm,Pl);bm.prototype.processChunk=function(e){this.push({data:Wq.utf8encode(e.data),meta:e.meta})};Wq.Utf8EncodeWorker=bm});var LT=R(function(cme,BT){var MT=Pt(),NT=Pe();function xm(e){MT.call(this,"ConvertWorker to "+e),this.destType=e}NT.inherits(xm,MT);xm.prototype.processChunk=function(e){this.push({data:NT.transformTo(this.destType,e.data),meta:e.meta})};BT.exports=xm});var qT=R(function(ume,jT){var WT=cm().Readable,$q=Pe();$q.inherits(_m,WT);function _m(e,t,n){WT.call(this,t),this._helper=e;var r=this;e.on("data",function(i,o){if(!r.push(i))r._helper.pause();if(n)n(o)}).on("error",function(i){r.emit("error",i)}).on("end",function(){r.push(null)})}_m.prototype._read=function(){this._helper.resume()};jT.exports=_m});var wm=R(function(lme,GT){var Ui=Pe(),Hq=LT(),Gq=Pt(),zq=dm(),Vq=Qn(),Xq=ko(),$T=null;if(Vq.nodestream)try{$T=qT()}catch(e){}function Kq(e,t,n){switch(e){case"blob":return Ui.newBlob(Ui.transformTo("arraybuffer",t),n);case"base64":return zq.encode(t);default:return Ui.transformTo(e,t)}}function Zq(e,t){var n,r=0,i=null,o=0;for(n=0;n<t.length;n++)o+=t[n].length;switch(e){case"string":return t.join("");case"array":return Array.prototype.concat.apply([],t);case"uint8array":i=new Uint8Array(o);for(n=0;n<t.length;n++)i.set(t[n],r),r+=t[n].length;return i;case"nodebuffer":return Buffer.concat(t);default:throw Error("concat : unsupported type '"+e+"'")}}function Yq(e,t){return new Xq.Promise(function(n,r){var i=[],o=e._internalType,s=e._outputType,a=e._mimeType;e.on("data",function(c,u){if(i.push(c),t)t(u)}).on("error",function(c){i=[],r(c)}).on("end",function(){try{var c=Kq(s,Zq(o,i),a);n(c)}catch(u){r(u)}i=[]}).resume()})}function HT(e,t,n){var r=t;switch(t){case"blob":case"arraybuffer":r="uint8array";break;case"base64":r="string";break}try{this._internalType=r,this._outputType=t,this._mimeType=n,Ui.checkSupport(r),this._worker=e.pipe(new Hq(r)),e.lock()}catch(i){this._worker=new Gq("error"),this._worker.error(i)}}HT.prototype={accumulate:function(e){return Yq(this,e)},on:function(e,t){var n=this;if(e==="data")this._worker.on(e,function(r){t.call(n,r.data,r.meta)});else this._worker.on(e,function(){Ui.delay(t,arguments,n)});return this},resume:function(){return Ui.delay(this._worker.resume,[],this._worker),this},pause:function(){return this._worker.pause(),this},toNodejsStream:function(e){if(Ui.checkSupport("nodestream"),this._outputType!=="nodebuffer")throw Error(this._outputType+" is not supported by this method");return new $T(this,{objectMode:this._outputType!=="nodebuffer"},e)}};GT.exports=HT});var Dm=R(function(Jq){Jq.base64=!1;Jq.binary=!1;Jq.dir=!1;Jq.createFolders=!0;Jq.date=null;Jq.compression=null;Jq.compressionOptions=null;Jq.comment=null;Jq.unixPermissions=null;Jq.dosPermissions=null});var Em=R(function(fme,zT){var Ml=Pe(),Nl=Pt(),u$=16384;function Po(e){Nl.call(this,"DataWorker");var t=this;this.dataIsReady=!1,this.index=0,this.max=0,this.data=null,this.type="",this._tickScheduled=!1,e.then(function(n){if(t.dataIsReady=!0,t.data=n,t.max=n&&n.length||0,t.type=Ml.getTypeOf(n),!t.isPaused)t._tickAndRepeat()},function(n){t.error(n)})}Ml.inherits(Po,Nl);Po.prototype.cleanUp=function(){Nl.prototype.cleanUp.call(this),this.data=null};Po.prototype.resume=function(){if(!Nl.prototype.resume.call(this))return!1;if(!this._tickScheduled&&this.dataIsReady)this._tickScheduled=!0,Ml.delay(this._tickAndRepeat,[],this);return!0};Po.prototype._tickAndRepeat=function(){if(this._tickScheduled=!1,this.isPaused||this.isFinished)return;if(this._tick(),!this.isFinished)Ml.delay(this._tickAndRepeat,[],this),this._tickScheduled=!0};Po.prototype._tick=function(){if(this.isPaused||this.isFinished)return!1;var e=u$,t=null,n=Math.min(this.max,this.index+e);if(this.index>=this.max)return this.end();else{switch(this.type){case"string":t=this.data.substring(this.index,n);break;case"uint8array":t=this.data.subarray(this.index,n);break;case"array":case"nodebuffer":t=this.data.slice(this.index,n);break}return this.index=n,this.push({data:t,meta:{percent:this.max?this.index/this.max*100:0}})}};zT.exports=Po});var Bl=R(function(hme,XT){var l$=Pe();function d$(){var e,t=[];for(var n=0;n<256;n++){e=n;for(var r=0;r<8;r++)e=e&1?3988292384^e>>>1:e>>>1;t[n]=e}return t}var VT=d$();function f$(e,t,n,r){var i=VT,o=r+n;e=e^-1;for(var s=r;s<o;s++)e=e>>>8^i[(e^t[s])&255];return e^-1}function h$(e,t,n,r){var i=VT,o=r+n;e=e^-1;for(var s=r;s<o;s++)e=e>>>8^i[(e^t.charCodeAt(s))&255];return e^-1}XT.exports=function(t,n){if(typeof t>"u"||!t.length)return 0;var r=l$.getTypeOf(t)!=="string";if(r)return f$(n|0,t,t.length,0);else return h$(n|0,t,t.length,0)}});var Sm=R(function(pme,ZT){var KT=Pt(),p$=Bl(),g$=Pe();function Tm(){KT.call(this,"Crc32Probe"),this.withStreamInfo("crc32",0)}g$.inherits(Tm,KT);Tm.prototype.processChunk=function(e){this.streamInfo.crc32=p$(e.data,this.streamInfo.crc32||0),this.push(e)};ZT.exports=Tm});var JT=R(function(gme,YT){var m$=Pe(),Cm=Pt();function Am(e){Cm.call(this,"DataLengthProbe for "+e),this.propName=e,this.withStreamInfo(e,0)}m$.inherits(Am,Cm);Am.prototype.processChunk=function(e){if(e){var t=this.streamInfo[this.propName]||0;this.streamInfo[this.propName]=t+e.data.length}Cm.prototype.processChunk.call(this,e)};YT.exports=Am});var Ll=R(function(mme,tS){var QT=ko(),eS=Em(),y$=Sm(),Um=JT();function km(e,t,n,r,i){this.compressedSize=e,this.uncompressedSize=t,this.crc32=n,this.compression=r,this.compressedContent=i}km.prototype={getContentWorker:function(){var e=new eS(QT.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new Um("data_length")),t=this;return e.on("end",function(){if(this.streamInfo.data_length!==t.uncompressedSize)throw Error("Bug : uncompressed data size mismatch")}),e},getCompressedWorker:function(){return new eS(QT.Promise.resolve(this.compressedContent)).withStreamInfo("compressedSize",this.compressedSize).withStreamInfo("uncompressedSize",this.uncompressedSize).withStreamInfo("crc32",this.crc32).withStreamInfo("compression",this.compression)}};km.createWorkerFrom=function(e,t,n){return e.pipe(new y$).pipe(new Um("uncompressedSize")).pipe(t.compressWorker(n)).pipe(new Um("compressedSize")).withStreamInfo("compression",t)};tS.exports=km});var oS=R(function(yme,iS){var b$=wm(),v$=Em(),Rm=Oo(),Fm=Ll(),nS=Pt(),Om=function(e,t,n){this.name=e,this.dir=n.dir,this.date=n.date,this.comment=n.comment,this.unixPermissions=n.unixPermissions,this.dosPermissions=n.dosPermissions,this._data=t,this._dataBinary=n.binary,this.options={compression:n.compression,compressionOptions:n.compressionOptions}};Om.prototype={internalStream:function(e){var t=null,n="string";try{if(!e)throw Error("No output type specified.");n=e.toLowerCase();var r=n==="string"||n==="text";if(n==="binarystring"||n==="text")n="string";t=this._decompressWorker();var i=!this._dataBinary;if(i&&!r)t=t.pipe(new Rm.Utf8EncodeWorker);if(!i&&r)t=t.pipe(new Rm.Utf8DecodeWorker)}catch(o){t=new nS("error"),t.error(o)}return new b$(t,n,"")},async:function(e,t){return this.internalStream(e).accumulate(t)},nodeStream:function(e,t){return this.internalStream(e||"nodebuffer").toNodejsStream(t)},_compressWorker:function(e,t){if(this._data instanceof Fm&&this._data.compression.magic===e.magic)return this._data.getCompressedWorker();else{var n=this._decompressWorker();if(!this._dataBinary)n=n.pipe(new Rm.Utf8EncodeWorker);return Fm.createWorkerFrom(n,e,t)}},_decompressWorker:function(){if(this._data instanceof Fm)return this._data.getContentWorker();else if(this._data instanceof nS)return this._data;else return new v$(this._data)}};var rS=["asText","asBinary","asNodeBuffer","asUint8Array","asArrayBuffer"],x$=function(){throw Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")};for(xa=0;xa<rS.length;xa++)Om.prototype[rS[xa]]=x$;var xa;iS.exports=Om});var er=R(function(Pm){var E$=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Int32Array<"u";function T$(e,t){return Object.prototype.hasOwnProperty.call(e,t)}Pm.assign=function(e){var t=Array.prototype.slice.call(arguments,1);while(t.length){var n=t.shift();if(!n)continue;if(typeof n!=="object")throw TypeError(n+"must be non-object");for(var r in n)if(T$(n,r))e[r]=n[r]}return e};Pm.shrinkBuf=function(e,t){if(e.length===t)return e;if(e.subarray)return e.subarray(0,t);return e.length=t,e};var S$={arraySet:function(e,t,n,r,i){if(t.subarray&&e.subarray){e.set(t.subarray(n,n+r),i);return}for(var o=0;o<r;o++)e[i+o]=t[n+o]},flattenChunks:function(e){var t,n,r,i,o,s;r=0;for(t=0,n=e.length;t<n;t++)r+=e[t].length;s=new Uint8Array(r),i=0;for(t=0,n=e.length;t<n;t++)o=e[t],s.set(o,i),i+=o.length;return s}},C$={arraySet:function(e,t,n,r,i){for(var o=0;o<r;o++)e[i+o]=t[n+o]},flattenChunks:function(e){return[].concat.apply([],e)}};Pm.setTyped=function(e){if(e)Pm.Buf8=Uint8Array,Pm.Buf16=Uint16Array,Pm.Buf32=Int32Array,Pm.assign(Pm,S$);else Pm.Buf8=Array,Pm.Buf16=Array,Pm.Buf32=Array,Pm.assign(Pm,C$)};Pm.setTyped(E$)});var US=R(function(Z$){var U$=er(),k$=4,aS=0,cS=1,R$=2;function Mo(e){var t=e.length;while(--t>=0)e[t]=0}var F$=0,pS=1,O$=2,P$=3,I$=258,qm=29,Sa=256,wa=Sa+1+qm,Io=30,$m=19,gS=2*wa+1,ki=15,Mm=16,M$=7,Hm=256,mS=16,yS=17,bS=18,Wm=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],Wl=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],N$=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],vS=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],B$=512,tr=Array((wa+2)*2);Mo(tr);var _a=Array(Io*2);Mo(_a);var Da=Array(B$);Mo(Da);var Ea=Array(I$-P$+1);Mo(Ea);var Gm=Array(qm);Mo(Gm);var jl=Array(Io);Mo(jl);function Nm(e,t,n,r,i){this.static_tree=e,this.extra_bits=t,this.extra_base=n,this.elems=r,this.max_length=i,this.has_stree=e&&e.length}var xS,_S,wS;function Bm(e,t){this.dyn_tree=e,this.max_code=0,this.stat_desc=t}function DS(e){return e<256?Da[e]:Da[256+(e>>>7)]}function Ta(e,t){e.pending_buf[e.pending++]=t&255,e.pending_buf[e.pending++]=t>>>8&255}function At(e,t,n){if(e.bi_valid>Mm-n)e.bi_buf|=t<<e.bi_valid&65535,Ta(e,e.bi_buf),e.bi_buf=t>>Mm-e.bi_valid,e.bi_valid+=n-Mm;else e.bi_buf|=t<<e.bi_valid&65535,e.bi_valid+=n}function Cn(e,t,n){At(e,n[t*2],n[t*2+1])}function ES(e,t){var n=0;do n|=e&1,e>>>=1,n<<=1;while(--t>0);return n>>>1}function L$(e){if(e.bi_valid===16)Ta(e,e.bi_buf),e.bi_buf=0,e.bi_valid=0;else if(e.bi_valid>=8)e.pending_buf[e.pending++]=e.bi_buf&255,e.bi_buf>>=8,e.bi_valid-=8}function W$(e,t){var{dyn_tree:n,max_code:r}=t,i=t.stat_desc.static_tree,o=t.stat_desc.has_stree,s=t.stat_desc.extra_bits,a=t.stat_desc.extra_base,c=t.stat_desc.max_length,u,d,f,h,p,g,y=0;for(h=0;h<=ki;h++)e.bl_count[h]=0;n[e.heap[e.heap_max]*2+1]=0;for(u=e.heap_max+1;u<gS;u++){if(d=e.heap[u],h=n[n[d*2+1]*2+1]+1,h>c)h=c,y++;if(n[d*2+1]=h,d>r)continue;if(e.bl_count[h]++,p=0,d>=a)p=s[d-a];if(g=n[d*2],e.opt_len+=g*(h+p),o)e.static_len+=g*(i[d*2+1]+p)}if(y===0)return;do{h=c-1;while(e.bl_count[h]===0)h--;e.bl_count[h]--,e.bl_count[h+1]+=2,e.bl_count[c]--,y-=2}while(y>0);for(h=c;h!==0;h--){d=e.bl_count[h];while(d!==0){if(f=e.heap[--u],f>r)continue;if(n[f*2+1]!==h)e.opt_len+=(h-n[f*2+1])*n[f*2],n[f*2+1]=h;d--}}}function TS(e,t,n){var r=Array(ki+1),i=0,o,s;for(o=1;o<=ki;o++)r[o]=i=i+n[o-1]<<1;for(s=0;s<=t;s++){var a=e[s*2+1];if(a===0)continue;e[s*2]=ES(r[a]++,a)}}function j$(){var e,t,n,r,i,o=Array(ki+1);n=0;for(r=0;r<qm-1;r++){Gm[r]=n;for(e=0;e<1<<Wm[r];e++)Ea[n++]=r}Ea[n-1]=r,i=0;for(r=0;r<16;r++){jl[r]=i;for(e=0;e<1<<Wl[r];e++)Da[i++]=r}i>>=7;for(;r<Io;r++){jl[r]=i<<7;for(e=0;e<1<<Wl[r]-7;e++)Da[256+i++]=r}for(t=0;t<=ki;t++)o[t]=0;e=0;while(e<=143)tr[e*2+1]=8,e++,o[8]++;while(e<=255)tr[e*2+1]=9,e++,o[9]++;while(e<=279)tr[e*2+1]=7,e++,o[7]++;while(e<=287)tr[e*2+1]=8,e++,o[8]++;TS(tr,wa+1,o);for(e=0;e<Io;e++)_a[e*2+1]=5,_a[e*2]=ES(e,5);xS=new Nm(tr,Wm,Sa+1,wa,ki),_S=new Nm(_a,Wl,0,Io,ki),wS=new Nm([],N$,0,$m,M$)}function SS(e){var t;for(t=0;t<wa;t++)e.dyn_ltree[t*2]=0;for(t=0;t<Io;t++)e.dyn_dtree[t*2]=0;for(t=0;t<$m;t++)e.bl_tree[t*2]=0;e.dyn_ltree[Hm*2]=1,e.opt_len=e.static_len=0,e.last_lit=e.matches=0}function CS(e){if(e.bi_valid>8)Ta(e,e.bi_buf);else if(e.bi_valid>0)e.pending_buf[e.pending++]=e.bi_buf;e.bi_buf=0,e.bi_valid=0}function q$(e,t,n,r){if(CS(e),r)Ta(e,n),Ta(e,~n);U$.arraySet(e.pending_buf,e.window,t,n,e.pending),e.pending+=n}function uS(e,t,n,r){var i=t*2,o=n*2;return e[i]<e[o]||e[i]===e[o]&&r[t]<=r[n]}function Lm(e,t,n){var r=e.heap[n],i=n<<1;while(i<=e.heap_len){if(i<e.heap_len&&uS(t,e.heap[i+1],e.heap[i],e.depth))i++;if(uS(t,r,e.heap[i],e.depth))break;e.heap[n]=e.heap[i],n=i,i<<=1}e.heap[n]=r}function lS(e,t,n){var r,i,o=0,s,a;if(e.last_lit!==0)do if(r=e.pending_buf[e.d_buf+o*2]<<8|e.pending_buf[e.d_buf+o*2+1],i=e.pending_buf[e.l_buf+o],o++,r===0)Cn(e,i,t);else{if(s=Ea[i],Cn(e,s+Sa+1,t),a=Wm[s],a!==0)i-=Gm[s],At(e,i,a);if(r--,s=DS(r),Cn(e,s,n),a=Wl[s],a!==0)r-=jl[s],At(e,r,a)}while(o<e.last_lit);Cn(e,Hm,t)}function jm(e,t){var n=t.dyn_tree,r=t.stat_desc.static_tree,i=t.stat_desc.has_stree,o=t.stat_desc.elems,s,a,c=-1,u;e.heap_len=0,e.heap_max=gS;for(s=0;s<o;s++)if(n[s*2]!==0)e.heap[++e.heap_len]=c=s,e.depth[s]=0;else n[s*2+1]=0;while(e.heap_len<2)if(u=e.heap[++e.heap_len]=c<2?++c:0,n[u*2]=1,e.depth[u]=0,e.opt_len--,i)e.static_len-=r[u*2+1];t.max_code=c;for(s=e.heap_len>>1;s>=1;s--)Lm(e,n,s);u=o;do s=e.heap[1],e.heap[1]=e.heap[e.heap_len--],Lm(e,n,1),a=e.heap[1],e.heap[--e.heap_max]=s,e.heap[--e.heap_max]=a,n[u*2]=n[s*2]+n[a*2],e.depth[u]=(e.depth[s]>=e.depth[a]?e.depth[s]:e.depth[a])+1,n[s*2+1]=n[a*2+1]=u,e.heap[1]=u++,Lm(e,n,1);while(e.heap_len>=2);e.heap[--e.heap_max]=e.heap[1],W$(e,t),TS(n,c,e.bl_count)}function dS(e,t,n){var r,i=-1,o,s=t[1],a=0,c=7,u=4;if(s===0)c=138,u=3;t[(n+1)*2+1]=65535;for(r=0;r<=n;r++){if(o=s,s=t[(r+1)*2+1],++a<c&&o===s)continue;else if(a<u)e.bl_tree[o*2]+=a;else if(o!==0){if(o!==i)e.bl_tree[o*2]++;e.bl_tree[mS*2]++}else if(a<=10)e.bl_tree[yS*2]++;else e.bl_tree[bS*2]++;if(a=0,i=o,s===0)c=138,u=3;else if(o===s)c=6,u=3;else c=7,u=4}}function fS(e,t,n){var r,i=-1,o,s=t[1],a=0,c=7,u=4;if(s===0)c=138,u=3;for(r=0;r<=n;r++){if(o=s,s=t[(r+1)*2+1],++a<c&&o===s)continue;else if(a<u)do Cn(e,o,e.bl_tree);while(--a!==0);else if(o!==0){if(o!==i)Cn(e,o,e.bl_tree),a--;Cn(e,mS,e.bl_tree),At(e,a-3,2)}else if(a<=10)Cn(e,yS,e.bl_tree),At(e,a-3,3);else Cn(e,bS,e.bl_tree),At(e,a-11,7);if(a=0,i=o,s===0)c=138,u=3;else if(o===s)c=6,u=3;else c=7,u=4}}function $$(e){var t;dS(e,e.dyn_ltree,e.l_desc.max_code),dS(e,e.dyn_dtree,e.d_desc.max_code),jm(e,e.bl_desc);for(t=$m-1;t>=3;t--)if(e.bl_tree[vS[t]*2+1]!==0)break;return e.opt_len+=3*(t+1)+5+5+4,t}function H$(e,t,n,r){var i;At(e,t-257,5),At(e,n-1,5),At(e,r-4,4);for(i=0;i<r;i++)At(e,e.bl_tree[vS[i]*2+1],3);fS(e,e.dyn_ltree,t-1),fS(e,e.dyn_dtree,n-1)}function G$(e){var t=4093624447,n;for(n=0;n<=31;n++,t>>>=1)if(t&1&&e.dyn_ltree[n*2]!==0)return aS;if(e.dyn_ltree[18]!==0||e.dyn_ltree[20]!==0||e.dyn_ltree[26]!==0)return cS;for(n=32;n<Sa;n++)if(e.dyn_ltree[n*2]!==0)return cS;return aS}var hS=!1;function z$(e){if(!hS)j$(),hS=!0;e.l_desc=new Bm(e.dyn_ltree,xS),e.d_desc=new Bm(e.dyn_dtree,_S),e.bl_desc=new Bm(e.bl_tree,wS),e.bi_buf=0,e.bi_valid=0,SS(e)}function AS(e,t,n,r){At(e,(F$<<1)+(r?1:0),3),q$(e,t,n,!0)}function V$(e){At(e,pS<<1,3),Cn(e,Hm,tr),L$(e)}function X$(e,t,n,r){var i,o,s=0;if(e.level>0){if(e.strm.data_type===R$)e.strm.data_type=G$(e);if(jm(e,e.l_desc),jm(e,e.d_desc),s=$$(e),i=e.opt_len+3+7>>>3,o=e.static_len+3+7>>>3,o<=i)i=o}else i=o=n+5;if(n+4<=i&&t!==-1)AS(e,t,n,r);else if(e.strategy===k$||o===i)At(e,(pS<<1)+(r?1:0),3),lS(e,tr,_a);else At(e,(O$<<1)+(r?1:0),3),H$(e,e.l_desc.max_code+1,e.d_desc.max_code+1,s+1),lS(e,e.dyn_ltree,e.dyn_dtree);if(SS(e),r)CS(e)}function K$(e,t,n){if(e.pending_buf[e.d_buf+e.last_lit*2]=t>>>8&255,e.pending_buf[e.d_buf+e.last_lit*2+1]=t&255,e.pending_buf[e.l_buf+e.last_lit]=n&255,e.last_lit++,t===0)e.dyn_ltree[n*2]++;else e.matches++,t--,e.dyn_ltree[(Ea[n]+Sa+1)*2]++,e.dyn_dtree[DS(t)*2]++;return e.last_lit===e.lit_bufsize-1}Z$._tr_init=z$;Z$._tr_stored_block=AS;Z$._tr_flush_block=X$;Z$._tr_tally=K$;Z$._tr_align=V$});var zm=R(function(xme,kS){function nH(e,t,n,r){var i=e&65535|0,o=e>>>16&65535|0,s=0;while(n!==0){s=n>2000?2000:n,n-=s;do i=i+t[r++]|0,o=o+i|0;while(--s);i%=65521,o%=65521}return i|o<<16|0}kS.exports=nH});var Vm=R(function(_me,RS){function rH(){var e,t=[];for(var n=0;n<256;n++){e=n;for(var r=0;r<8;r++)e=e&1?3988292384^e>>>1:e>>>1;t[n]=e}return t}var iH=rH();function oH(e,t,n,r){var i=iH,o=r+n;e^=-1;for(var s=r;s<o;s++)e=e>>>8^i[(e^t[s])&255];return e^-1}RS.exports=oH});var ql=R(function(wme,FS){FS.exports={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"}});var jS=R(function(BH){var xt=er(),Ht=US(),MS=zm(),$r=Vm(),sH=ql(),Pi=0,aH=1,cH=3,Xr=4,OS=5,Un=0,PS=1,Gt=-2,uH=-3,Xm=-5,lH=-1,dH=1,$l=2,fH=3,hH=4,pH=0,gH=2,Vl=8,mH=9,yH=15,bH=8,vH=29,xH=256,Zm=xH+1+vH,_H=30,wH=19,DH=2*Zm+1,EH=15,ae=3,zr=258,sn=zr+ae+1,TH=32,Xl=42,Ym=69,Hl=73,Gl=91,zl=103,Ri=113,Aa=666,ze=1,Ua=2,Fi=3,Lo=4,SH=3;function Vr(e,t){return e.msg=sH[t],t}function IS(e){return(e<<1)-(e>4?9:0)}function Gr(e){var t=e.length;while(--t>=0)e[t]=0}function Hr(e){var t=e.state,n=t.pending;if(n>e.avail_out)n=e.avail_out;if(n===0)return;if(xt.arraySet(e.output,t.pending_buf,t.pending_out,n,e.next_out),e.next_out+=n,t.pending_out+=n,e.total_out+=n,e.avail_out-=n,t.pending-=n,t.pending===0)t.pending_out=0}function rt(e,t){Ht._tr_flush_block(e,e.block_start>=0?e.block_start:-1,e.strstart-e.block_start,t),e.block_start=e.strstart,Hr(e.strm)}function fe(e,t){e.pending_buf[e.pending++]=t}function Ca(e,t){e.pending_buf[e.pending++]=t>>>8&255,e.pending_buf[e.pending++]=t&255}function CH(e,t,n,r){var i=e.avail_in;if(i>r)i=r;if(i===0)return 0;if(e.avail_in-=i,xt.arraySet(t,e.input,e.next_in,i,n),e.state.wrap===1)e.adler=MS(e.adler,t,i,n);else if(e.state.wrap===2)e.adler=$r(e.adler,t,i,n);return e.next_in+=i,e.total_in+=i,i}function NS(e,t){var{max_chain_length:n,strstart:r}=e,i,o,s=e.prev_length,a=e.nice_match,c=e.strstart>e.w_size-sn?e.strstart-(e.w_size-sn):0,u=e.window,d=e.w_mask,f=e.prev,h=e.strstart+zr,p=u[r+s-1],g=u[r+s];if(e.prev_length>=e.good_match)n>>=2;if(a>e.lookahead)a=e.lookahead;do{if(i=t,u[i+s]!==g||u[i+s-1]!==p||u[i]!==u[r]||u[++i]!==u[r+1])continue;r+=2,i++;do;while(u[++r]===u[++i]&&u[++r]===u[++i]&&u[++r]===u[++i]&&u[++r]===u[++i]&&u[++r]===u[++i]&&u[++r]===u[++i]&&u[++r]===u[++i]&&u[++r]===u[++i]&&r<h);if(o=zr-(h-r),r=h-zr,o>s){if(e.match_start=t,s=o,o>=a)break;p=u[r+s-1],g=u[r+s]}}while((t=f[t&d])>c&&--n!==0);if(s<=e.lookahead)return s;return e.lookahead}function Oi(e){var t=e.w_size,n,r,i,o,s;do{if(o=e.window_size-e.lookahead-e.strstart,e.strstart>=t+(t-sn)){xt.arraySet(e.window,e.window,t,t,0),e.match_start-=t,e.strstart-=t,e.block_start-=t,r=e.hash_size,n=r;do i=e.head[--n],e.head[n]=i>=t?i-t:0;while(--r);r=t,n=r;do i=e.prev[--n],e.prev[n]=i>=t?i-t:0;while(--r);o+=t}if(e.strm.avail_in===0)break;if(r=CH(e.strm,e.window,e.strstart+e.lookahead,o),e.lookahead+=r,e.lookahead+e.insert>=ae){s=e.strstart-e.insert,e.ins_h=e.window[s],e.ins_h=(e.ins_h<<e.hash_shift^e.window[s+1])&e.hash_mask;while(e.insert)if(e.ins_h=(e.ins_h<<e.hash_shift^e.window[s+ae-1])&e.hash_mask,e.prev[s&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=s,s++,e.insert--,e.lookahead+e.insert<ae)break}}while(e.lookahead<sn&&e.strm.avail_in!==0)}function AH(e,t){var n=65535;if(n>e.pending_buf_size-5)n=e.pending_buf_size-5;for(;;){if(e.lookahead<=1){if(Oi(e),e.lookahead===0&&t===Pi)return ze;if(e.lookahead===0)break}e.strstart+=e.lookahead,e.lookahead=0;var r=e.block_start+n;if(e.strstart===0||e.strstart>=r){if(e.lookahead=e.strstart-r,e.strstart=r,rt(e,!1),e.strm.avail_out===0)return ze}if(e.strstart-e.block_start>=e.w_size-sn){if(rt(e,!1),e.strm.avail_out===0)return ze}}if(e.insert=0,t===Xr){if(rt(e,!0),e.strm.avail_out===0)return Fi;return Lo}if(e.strstart>e.block_start){if(rt(e,!1),e.strm.avail_out===0)return ze}return ze}function Km(e,t){var n,r;for(;;){if(e.lookahead<sn){if(Oi(e),e.lookahead<sn&&t===Pi)return ze;if(e.lookahead===0)break}if(n=0,e.lookahead>=ae)e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+ae-1])&e.hash_mask,n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart;if(n!==0&&e.strstart-n<=e.w_size-sn)e.match_length=NS(e,n);if(e.match_length>=ae)if(r=Ht._tr_tally(e,e.strstart-e.match_start,e.match_length-ae),e.lookahead-=e.match_length,e.match_length<=e.max_lazy_match&&e.lookahead>=ae){e.match_length--;do e.strstart++,e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+ae-1])&e.hash_mask,n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart;while(--e.match_length!==0);e.strstart++}else e.strstart+=e.match_length,e.match_length=0,e.ins_h=e.window[e.strstart],e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+1])&e.hash_mask;else r=Ht._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++;if(r){if(rt(e,!1),e.strm.avail_out===0)return ze}}if(e.insert=e.strstart<ae-1?e.strstart:ae-1,t===Xr){if(rt(e,!0),e.strm.avail_out===0)return Fi;return Lo}if(e.last_lit){if(rt(e,!1),e.strm.avail_out===0)return ze}return Ua}function No(e,t){var n,r,i;for(;;){if(e.lookahead<sn){if(Oi(e),e.lookahead<sn&&t===Pi)return ze;if(e.lookahead===0)break}if(n=0,e.lookahead>=ae)e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+ae-1])&e.hash_mask,n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart;if(e.prev_length=e.match_length,e.prev_match=e.match_start,e.match_length=ae-1,n!==0&&e.prev_length<e.max_lazy_match&&e.strstart-n<=e.w_size-sn){if(e.match_length=NS(e,n),e.match_length<=5&&(e.strategy===dH||e.match_length===ae&&e.strstart-e.match_start>4096))e.match_length=ae-1}if(e.prev_length>=ae&&e.match_length<=e.prev_length){i=e.strstart+e.lookahead-ae,r=Ht._tr_tally(e,e.strstart-1-e.prev_match,e.prev_length-ae),e.lookahead-=e.prev_length-1,e.prev_length-=2;do if(++e.strstart<=i)e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+ae-1])&e.hash_mask,n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart;while(--e.prev_length!==0);if(e.match_available=0,e.match_length=ae-1,e.strstart++,r){if(rt(e,!1),e.strm.avail_out===0)return ze}}else if(e.match_available){if(r=Ht._tr_tally(e,0,e.window[e.strstart-1]),r)rt(e,!1);if(e.strstart++,e.lookahead--,e.strm.avail_out===0)return ze}else e.match_available=1,e.strstart++,e.lookahead--}if(e.match_available)r=Ht._tr_tally(e,0,e.window[e.strstart-1]),e.match_available=0;if(e.insert=e.strstart<ae-1?e.strstart:ae-1,t===Xr){if(rt(e,!0),e.strm.avail_out===0)return Fi;return Lo}if(e.last_lit){if(rt(e,!1),e.strm.avail_out===0)return ze}return Ua}function UH(e,t){var n,r,i,o,s=e.window;for(;;){if(e.lookahead<=zr){if(Oi(e),e.lookahead<=zr&&t===Pi)return ze;if(e.lookahead===0)break}if(e.match_length=0,e.lookahead>=ae&&e.strstart>0){if(i=e.strstart-1,r=s[i],r===s[++i]&&r===s[++i]&&r===s[++i]){o=e.strstart+zr;do;while(r===s[++i]&&r===s[++i]&&r===s[++i]&&r===s[++i]&&r===s[++i]&&r===s[++i]&&r===s[++i]&&r===s[++i]&&i<o);if(e.match_length=zr-(o-i),e.match_length>e.lookahead)e.match_length=e.lookahead}}if(e.match_length>=ae)n=Ht._tr_tally(e,1,e.match_length-ae),e.lookahead-=e.match_length,e.strstart+=e.match_length,e.match_length=0;else n=Ht._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++;if(n){if(rt(e,!1),e.strm.avail_out===0)return ze}}if(e.insert=0,t===Xr){if(rt(e,!0),e.strm.avail_out===0)return Fi;return Lo}if(e.last_lit){if(rt(e,!1),e.strm.avail_out===0)return ze}return Ua}function kH(e,t){var n;for(;;){if(e.lookahead===0){if(Oi(e),e.lookahead===0){if(t===Pi)return ze;break}}if(e.match_length=0,n=Ht._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++,n){if(rt(e,!1),e.strm.avail_out===0)return ze}}if(e.insert=0,t===Xr){if(rt(e,!0),e.strm.avail_out===0)return Fi;return Lo}if(e.last_lit){if(rt(e,!1),e.strm.avail_out===0)return ze}return Ua}function An(e,t,n,r,i){this.good_length=e,this.max_lazy=t,this.nice_length=n,this.max_chain=r,this.func=i}var Bo;Bo=[new An(0,0,0,0,AH),new An(4,4,8,4,Km),new An(4,5,16,8,Km),new An(4,6,32,32,Km),new An(4,4,16,16,No),new An(8,16,32,32,No),new An(8,16,128,128,No),new An(8,32,128,256,No),new An(32,128,258,1024,No),new An(32,258,258,4096,No)];function RH(e){e.window_size=2*e.w_size,Gr(e.head),e.max_lazy_match=Bo[e.level].max_lazy,e.good_match=Bo[e.level].good_length,e.nice_match=Bo[e.level].nice_length,e.max_chain_length=Bo[e.level].max_chain,e.strstart=0,e.block_start=0,e.lookahead=0,e.insert=0,e.match_length=e.prev_length=ae-1,e.match_available=0,e.ins_h=0}function FH(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=Vl,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new xt.Buf16(DH*2),this.dyn_dtree=new xt.Buf16((2*_H+1)*2),this.bl_tree=new xt.Buf16((2*wH+1)*2),Gr(this.dyn_ltree),Gr(this.dyn_dtree),Gr(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new xt.Buf16(EH+1),this.heap=new xt.Buf16(2*Zm+1),Gr(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new xt.Buf16(2*Zm+1),Gr(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}function BS(e){var t;if(!e||!e.state)return Vr(e,Gt);if(e.total_in=e.total_out=0,e.data_type=gH,t=e.state,t.pending=0,t.pending_out=0,t.wrap<0)t.wrap=-t.wrap;return t.status=t.wrap?Xl:Ri,e.adler=t.wrap===2?0:1,t.last_flush=Pi,Ht._tr_init(t),Un}function LS(e){var t=BS(e);if(t===Un)RH(e.state);return t}function OH(e,t){if(!e||!e.state)return Gt;if(e.state.wrap!==2)return Gt;return e.state.gzhead=t,Un}function WS(e,t,n,r,i,o){if(!e)return Gt;var s=1;if(t===lH)t=6;if(r<0)s=0,r=-r;else if(r>15)s=2,r-=16;if(i<1||i>mH||n!==Vl||r<8||r>15||t<0||t>9||o<0||o>hH)return Vr(e,Gt);if(r===8)r=9;var a=new FH;return e.state=a,a.strm=e,a.wrap=s,a.gzhead=null,a.w_bits=r,a.w_size=1<<a.w_bits,a.w_mask=a.w_size-1,a.hash_bits=i+7,a.hash_size=1<<a.hash_bits,a.hash_mask=a.hash_size-1,a.hash_shift=~~((a.hash_bits+ae-1)/ae),a.window=new xt.Buf8(a.w_size*2),a.head=new xt.Buf16(a.hash_size),a.prev=new xt.Buf16(a.w_size),a.lit_bufsize=1<<i+6,a.pending_buf_size=a.lit_bufsize*4,a.pending_buf=new xt.Buf8(a.pending_buf_size),a.d_buf=1*a.lit_bufsize,a.l_buf=3*a.lit_bufsize,a.level=t,a.strategy=o,a.method=n,LS(e)}function PH(e,t){return WS(e,t,Vl,yH,bH,pH)}function IH(e,t){var n,r,i,o;if(!e||!e.state||t>OS||t<0)return e?Vr(e,Gt):Gt;if(r=e.state,!e.output||!e.input&&e.avail_in!==0||r.status===Aa&&t!==Xr)return Vr(e,e.avail_out===0?Xm:Gt);if(r.strm=e,n=r.last_flush,r.last_flush=t,r.status===Xl)if(r.wrap===2)if(e.adler=0,fe(r,31),fe(r,139),fe(r,8),!r.gzhead)fe(r,0),fe(r,0),fe(r,0),fe(r,0),fe(r,0),fe(r,r.level===9?2:r.strategy>=$l||r.level<2?4:0),fe(r,SH),r.status=Ri;else{if(fe(r,(r.gzhead.text?1:0)+(r.gzhead.hcrc?2:0)+(!r.gzhead.extra?0:4)+(!r.gzhead.name?0:8)+(!r.gzhead.comment?0:16)),fe(r,r.gzhead.time&255),fe(r,r.gzhead.time>>8&255),fe(r,r.gzhead.time>>16&255),fe(r,r.gzhead.time>>24&255),fe(r,r.level===9?2:r.strategy>=$l||r.level<2?4:0),fe(r,r.gzhead.os&255),r.gzhead.extra&&r.gzhead.extra.length)fe(r,r.gzhead.extra.length&255),fe(r,r.gzhead.extra.length>>8&255);if(r.gzhead.hcrc)e.adler=$r(e.adler,r.pending_buf,r.pending,0);r.gzindex=0,r.status=Ym}else{var s=Vl+(r.w_bits-8<<4)<<8,a=-1;if(r.strategy>=$l||r.level<2)a=0;else if(r.level<6)a=1;else if(r.level===6)a=2;else a=3;if(s|=a<<6,r.strstart!==0)s|=TH;if(s+=31-s%31,r.status=Ri,Ca(r,s),r.strstart!==0)Ca(r,e.adler>>>16),Ca(r,e.adler&65535);e.adler=1}if(r.status===Ym)if(r.gzhead.extra){i=r.pending;while(r.gzindex<(r.gzhead.extra.length&65535)){if(r.pending===r.pending_buf_size){if(r.gzhead.hcrc&&r.pending>i)e.adler=$r(e.adler,r.pending_buf,r.pending-i,i);if(Hr(e),i=r.pending,r.pending===r.pending_buf_size)break}fe(r,r.gzhead.extra[r.gzindex]&255),r.gzindex++}if(r.gzhead.hcrc&&r.pending>i)e.adler=$r(e.adler,r.pending_buf,r.pending-i,i);if(r.gzindex===r.gzhead.extra.length)r.gzindex=0,r.status=Hl}else r.status=Hl;if(r.status===Hl)if(r.gzhead.name){i=r.pending;do{if(r.pending===r.pending_buf_size){if(r.gzhead.hcrc&&r.pending>i)e.adler=$r(e.adler,r.pending_buf,r.pending-i,i);if(Hr(e),i=r.pending,r.pending===r.pending_buf_size){o=1;break}}if(r.gzindex<r.gzhead.name.length)o=r.gzhead.name.charCodeAt(r.gzindex++)&255;else o=0;fe(r,o)}while(o!==0);if(r.gzhead.hcrc&&r.pending>i)e.adler=$r(e.adler,r.pending_buf,r.pending-i,i);if(o===0)r.gzindex=0,r.status=Gl}else r.status=Gl;if(r.status===Gl)if(r.gzhead.comment){i=r.pending;do{if(r.pending===r.pending_buf_size){if(r.gzhead.hcrc&&r.pending>i)e.adler=$r(e.adler,r.pending_buf,r.pending-i,i);if(Hr(e),i=r.pending,r.pending===r.pending_buf_size){o=1;break}}if(r.gzindex<r.gzhead.comment.length)o=r.gzhead.comment.charCodeAt(r.gzindex++)&255;else o=0;fe(r,o)}while(o!==0);if(r.gzhead.hcrc&&r.pending>i)e.adler=$r(e.adler,r.pending_buf,r.pending-i,i);if(o===0)r.status=zl}else r.status=zl;if(r.status===zl)if(r.gzhead.hcrc){if(r.pending+2>r.pending_buf_size)Hr(e);if(r.pending+2<=r.pending_buf_size)fe(r,e.adler&255),fe(r,e.adler>>8&255),e.adler=0,r.status=Ri}else r.status=Ri;if(r.pending!==0){if(Hr(e),e.avail_out===0)return r.last_flush=-1,Un}else if(e.avail_in===0&&IS(t)<=IS(n)&&t!==Xr)return Vr(e,Xm);if(r.status===Aa&&e.avail_in!==0)return Vr(e,Xm);if(e.avail_in!==0||r.lookahead!==0||t!==Pi&&r.status!==Aa){var c=r.strategy===$l?kH(r,t):r.strategy===fH?UH(r,t):Bo[r.level].func(r,t);if(c===Fi||c===Lo)r.status=Aa;if(c===ze||c===Fi){if(e.avail_out===0)r.last_flush=-1;return Un}if(c===Ua){if(t===aH)Ht._tr_align(r);else if(t!==OS){if(Ht._tr_stored_block(r,0,0,!1),t===cH){if(Gr(r.head),r.lookahead===0)r.strstart=0,r.block_start=0,r.insert=0}}if(Hr(e),e.avail_out===0)return r.last_flush=-1,Un}}if(t!==Xr)return Un;if(r.wrap<=0)return PS;if(r.wrap===2)fe(r,e.adler&255),fe(r,e.adler>>8&255),fe(r,e.adler>>16&255),fe(r,e.adler>>24&255),fe(r,e.total_in&255),fe(r,e.total_in>>8&255),fe(r,e.total_in>>16&255),fe(r,e.total_in>>24&255);else Ca(r,e.adler>>>16),Ca(r,e.adler&65535);if(Hr(e),r.wrap>0)r.wrap=-r.wrap;return r.pending!==0?Un:PS}function MH(e){var t;if(!e||!e.state)return Gt;if(t=e.state.status,t!==Xl&&t!==Ym&&t!==Hl&&t!==Gl&&t!==zl&&t!==Ri&&t!==Aa)return Vr(e,Gt);return e.state=null,t===Ri?Vr(e,uH):Un}function NH(e,t){var n=t.length,r,i,o,s,a,c,u,d;if(!e||!e.state)return Gt;if(r=e.state,s=r.wrap,s===2||s===1&&r.status!==Xl||r.lookahead)return Gt;if(s===1)e.adler=MS(e.adler,t,n,0);if(r.wrap=0,n>=r.w_size){if(s===0)Gr(r.head),r.strstart=0,r.block_start=0,r.insert=0;d=new xt.Buf8(r.w_size),xt.arraySet(d,t,n-r.w_size,r.w_size,0),t=d,n=r.w_size}a=e.avail_in,c=e.next_in,u=e.input,e.avail_in=n,e.next_in=0,e.input=t,Oi(r);while(r.lookahead>=ae){i=r.strstart,o=r.lookahead-(ae-1);do r.ins_h=(r.ins_h<<r.hash_shift^r.window[i+ae-1])&r.hash_mask,r.prev[i&r.w_mask]=r.head[r.ins_h],r.head[r.ins_h]=i,i++;while(--o);r.strstart=i,r.lookahead=ae-1,Oi(r)}return r.strstart+=r.lookahead,r.block_start=r.strstart,r.insert=r.lookahead,r.lookahead=0,r.match_length=r.prev_length=ae-1,r.match_available=0,e.next_in=c,e.input=u,e.avail_in=a,r.wrap=s,Un}BH.deflateInit=PH;BH.deflateInit2=WS;BH.deflateReset=LS;BH.deflateResetKeep=BS;BH.deflateSetHeader=OH;BH.deflate=IH;BH.deflateEnd=MH;BH.deflateSetDictionary=NH;BH.deflateInfo="pako deflate (from Nodeca project)"});var Jm=R(function(XH){var Kl=er(),qS=!0,$S=!0;try{String.fromCharCode.apply(null,[0])}catch(e){qS=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch(e){$S=!1}var ka=new Kl.Buf8(256);for(kn=0;kn<256;kn++)ka[kn]=kn>=252?6:kn>=248?5:kn>=240?4:kn>=224?3:kn>=192?2:1;var kn;ka[254]=ka[254]=1;XH.string2buf=function(e){var t,n,r,i,o,s=e.length,a=0;for(i=0;i<s;i++){if(n=e.charCodeAt(i),(n&64512)===55296&&i+1<s){if(r=e.charCodeAt(i+1),(r&64512)===56320)n=65536+(n-55296<<10)+(r-56320),i++}a+=n<128?1:n<2048?2:n<65536?3:4}t=new Kl.Buf8(a);for(o=0,i=0;o<a;i++){if(n=e.charCodeAt(i),(n&64512)===55296&&i+1<s){if(r=e.charCodeAt(i+1),(r&64512)===56320)n=65536+(n-55296<<10)+(r-56320),i++}if(n<128)t[o++]=n;else if(n<2048)t[o++]=192|n>>>6,t[o++]=128|n&63;else if(n<65536)t[o++]=224|n>>>12,t[o++]=128|n>>>6&63,t[o++]=128|n&63;else t[o++]=240|n>>>18,t[o++]=128|n>>>12&63,t[o++]=128|n>>>6&63,t[o++]=128|n&63}return t};function HS(e,t){if(t<65534){if(e.subarray&&$S||!e.subarray&&qS)return String.fromCharCode.apply(null,Kl.shrinkBuf(e,t))}var n="";for(var r=0;r<t;r++)n+=String.fromCharCode(e[r]);return n}XH.buf2binstring=function(e){return HS(e,e.length)};XH.binstring2buf=function(e){var t=new Kl.Buf8(e.length);for(var n=0,r=t.length;n<r;n++)t[n]=e.charCodeAt(n);return t};XH.buf2string=function(e,t){var n,r,i,o,s=t||e.length,a=Array(s*2);for(r=0,n=0;n<s;){if(i=e[n++],i<128){a[r++]=i;continue}if(o=ka[i],o>4){a[r++]=65533,n+=o-1;continue}i&=o===2?31:o===3?15:7;while(o>1&&n<s)i=i<<6|e[n++]&63,o--;if(o>1){a[r++]=65533;continue}if(i<65536)a[r++]=i;else i-=65536,a[r++]=55296|i>>10&1023,a[r++]=56320|i&1023}return HS(a,r)};XH.utf8border=function(e,t){var n;if(t=t||e.length,t>e.length)t=e.length;n=t-1;while(n>=0&&(e[n]&192)===128)n--;if(n<0)return t;if(n===0)return t;return n+ka[e[n]]>t?n:t}});var Qm=R(function(Tme,GS){function eG(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}GS.exports=eG});var KS=R(function(cG){var Ra=jS(),Fa=er(),ty=Jm(),ny=ql(),tG=Qm(),XS=Object.prototype.toString,nG=0,ey=4,Wo=0,zS=1,VS=2,rG=-1,iG=0,oG=8;function Ii(e){if(!(this instanceof Ii))return new Ii(e);this.options=Fa.assign({level:rG,method:oG,chunkSize:16384,windowBits:15,memLevel:8,strategy:iG,to:""},e||{});var t=this.options;if(t.raw&&t.windowBits>0)t.windowBits=-t.windowBits;else if(t.gzip&&t.windowBits>0&&t.windowBits<16)t.windowBits+=16;this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new tG,this.strm.avail_out=0;var n=Ra.deflateInit2(this.strm,t.level,t.method,t.windowBits,t.memLevel,t.strategy);if(n!==Wo)throw Error(ny[n]);if(t.header)Ra.deflateSetHeader(this.strm,t.header);if(t.dictionary){var r;if(typeof t.dictionary==="string")r=ty.string2buf(t.dictionary);else if(XS.call(t.dictionary)==="[object ArrayBuffer]")r=new Uint8Array(t.dictionary);else r=t.dictionary;if(n=Ra.deflateSetDictionary(this.strm,r),n!==Wo)throw Error(ny[n]);this._dict_set=!0}}Ii.prototype.push=function(e,t){var n=this.strm,r=this.options.chunkSize,i,o;if(this.ended)return!1;if(o=t===~~t?t:t===!0?ey:nG,typeof e==="string")n.input=ty.string2buf(e);else if(XS.call(e)==="[object ArrayBuffer]")n.input=new Uint8Array(e);else n.input=e;n.next_in=0,n.avail_in=n.input.length;do{if(n.avail_out===0)n.output=new Fa.Buf8(r),n.next_out=0,n.avail_out=r;if(i=Ra.deflate(n,o),i!==zS&&i!==Wo)return this.onEnd(i),this.ended=!0,!1;if(n.avail_out===0||n.avail_in===0&&(o===ey||o===VS))if(this.options.to==="string")this.onData(ty.buf2binstring(Fa.shrinkBuf(n.output,n.next_out)));else this.onData(Fa.shrinkBuf(n.output,n.next_out))}while((n.avail_in>0||n.avail_out===0)&&i!==zS);if(o===ey)return i=Ra.deflateEnd(this.strm),this.onEnd(i),this.ended=!0,i===Wo;if(o===VS)return this.onEnd(Wo),n.avail_out=0,!0;return!0};Ii.prototype.onData=function(e){this.chunks.push(e)};Ii.prototype.onEnd=function(e){if(e===Wo)if(this.options.to==="string")this.result=this.chunks.join("");else this.result=Fa.flattenChunks(this.chunks);this.chunks=[],this.err=e,this.msg=this.strm.msg};function ry(e,t){var n=new Ii(t);if(n.push(e,!0),n.err)throw n.msg||ny[n.err];return n.result}function sG(e,t){return t=t||{},t.raw=!0,ry(e,t)}function aG(e,t){return t=t||{},t.gzip=!0,ry(e,t)}cG.Deflate=Ii;cG.deflate=ry;cG.deflateRaw=sG;cG.gzip=aG});var YS=R(function(Cme,ZS){var Zl=30,hG=12;ZS.exports=function(t,n){var r,i,o,s,a,c,u,d,f,h,p,g,y,v,b,_,m,x,D,A,E,U,C,N,F;r=t.state,i=t.next_in,N=t.input,o=i+(t.avail_in-5),s=t.next_out,F=t.output,a=s-(n-t.avail_out),c=s+(t.avail_out-257),u=r.dmax,d=r.wsize,f=r.whave,h=r.wnext,p=r.window,g=r.hold,y=r.bits,v=r.lencode,b=r.distcode,_=(1<<r.lenbits)-1,m=(1<<r.distbits)-1;e:do{if(y<15)g+=N[i++]<<y,y+=8,g+=N[i++]<<y,y+=8;x=v[g&_];t:for(;;){if(D=x>>>24,g>>>=D,y-=D,D=x>>>16&255,D===0)F[s++]=x&65535;else if(D&16){if(A=x&65535,D&=15,D){if(y<D)g+=N[i++]<<y,y+=8;A+=g&(1<<D)-1,g>>>=D,y-=D}if(y<15)g+=N[i++]<<y,y+=8,g+=N[i++]<<y,y+=8;x=b[g&m];n:for(;;){if(D=x>>>24,g>>>=D,y-=D,D=x>>>16&255,D&16){if(E=x&65535,D&=15,y<D){if(g+=N[i++]<<y,y+=8,y<D)g+=N[i++]<<y,y+=8}if(E+=g&(1<<D)-1,E>u){t.msg="invalid distance too far back",r.mode=Zl;break e}if(g>>>=D,y-=D,D=s-a,E>D){if(D=E-D,D>f){if(r.sane){t.msg="invalid distance too far back",r.mode=Zl;break e}}if(U=0,C=p,h===0){if(U+=d-D,D<A){A-=D;do F[s++]=p[U++];while(--D);U=s-E,C=F}}else if(h<D){if(U+=d+h-D,D-=h,D<A){A-=D;do F[s++]=p[U++];while(--D);if(U=0,h<A){D=h,A-=D;do F[s++]=p[U++];while(--D);U=s-E,C=F}}}else if(U+=h-D,D<A){A-=D;do F[s++]=p[U++];while(--D);U=s-E,C=F}while(A>2)F[s++]=C[U++],F[s++]=C[U++],F[s++]=C[U++],A-=3;if(A){if(F[s++]=C[U++],A>1)F[s++]=C[U++]}}else{U=s-E;do F[s++]=F[U++],F[s++]=F[U++],F[s++]=F[U++],A-=3;while(A>2);if(A){if(F[s++]=F[U++],A>1)F[s++]=F[U++]}}}else if((D&64)===0){x=b[(x&65535)+(g&(1<<D)-1)];continue n}else{t.msg="invalid distance code",r.mode=Zl;break e}break}}else if((D&64)===0){x=v[(x&65535)+(g&(1<<D)-1)];continue t}else if(D&32){r.mode=hG;break e}else{t.msg="invalid literal/length code",r.mode=Zl;break e}break}}while(i<o&&s<c);A=y>>3,i-=A,y-=A<<3,g&=(1<<y)-1,t.next_in=i,t.next_out=s,t.avail_in=i<o?5+(o-i):5-(i-o),t.avail_out=s<c?257+(c-s):257-(s-c),r.hold=g,r.bits=y;return}});var iC=R(function(Ame,rC){var JS=er(),jo=15,QS=852,eC=592,tC=0,iy=1,nC=2,pG=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],gG=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],mG=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],yG=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64];rC.exports=function(t,n,r,i,o,s,a,c){var u=c.bits,d=0,f=0,h=0,p=0,g=0,y=0,v=0,b=0,_=0,m=0,x,D,A,E,U,C=null,N=0,F,S=new JS.Buf16(jo+1),B=new JS.Buf16(jo+1),j=null,G=0,T,O,k;for(d=0;d<=jo;d++)S[d]=0;for(f=0;f<i;f++)S[n[r+f]]++;g=u;for(p=jo;p>=1;p--)if(S[p]!==0)break;if(g>p)g=p;if(p===0)return o[s++]=20971520,o[s++]=20971520,c.bits=1,0;for(h=1;h<p;h++)if(S[h]!==0)break;if(g<h)g=h;b=1;for(d=1;d<=jo;d++)if(b<<=1,b-=S[d],b<0)return-1;if(b>0&&(t===tC||p!==1))return-1;B[1]=0;for(d=1;d<jo;d++)B[d+1]=B[d]+S[d];for(f=0;f<i;f++)if(n[r+f]!==0)a[B[n[r+f]]++]=f;if(t===tC)C=j=a,F=19;else if(t===iy)C=pG,N-=257,j=gG,G-=257,F=256;else C=mG,j=yG,F=-1;if(m=0,f=0,d=h,U=s,y=g,v=0,A=-1,_=1<<g,E=_-1,t===iy&&_>QS||t===nC&&_>eC)return 1;for(;;){if(T=d-v,a[f]<F)O=0,k=a[f];else if(a[f]>F)O=j[G+a[f]],k=C[N+a[f]];else O=96,k=0;x=1<<d-v,D=1<<y,h=D;do D-=x,o[U+(m>>v)+D]=T<<24|O<<16|k|0;while(D!==0);x=1<<d-1;while(m&x)x>>=1;if(x!==0)m&=x-1,m+=x;else m=0;if(f++,--S[d]===0){if(d===p)break;d=n[r+a[f]]}if(d>g&&(m&E)!==A){if(v===0)v=g;U+=h,y=d-v,b=1<<y;while(y+v<p){if(b-=S[y+v],b<=0)break;y++,b<<=1}if(_+=1<<y,t===iy&&_>QS||t===nC&&_>eC)return 1;A=m&E,o[A]=g<<24|y<<16|U-s|0}}if(m!==0)o[U+m]=d-v<<24|4194304|0;return c.bits=g,0}});var LC=R(function(MG){var It=er(),ly=zm(),Rn=Vm(),bG=YS(),Oa=iC(),vG=0,kC=1,RC=2,oC=4,xG=5,Yl=6,Mi=0,_G=1,wG=2,zt=-2,FC=-3,dy=-4,DG=-5,sC=8,OC=1,aC=2,cC=3,uC=4,lC=5,dC=6,fC=7,hC=8,pC=9,gC=10,ed=11,nr=12,oy=13,mC=14,sy=15,yC=16,bC=17,vC=18,xC=19,Jl=20,Ql=21,_C=22,wC=23,DC=24,EC=25,TC=26,ay=27,SC=28,CC=29,Fe=30,fy=31,EG=32,TG=852,SG=592,CG=15,AG=CG;function AC(e){return(e>>>24&255)+(e>>>8&65280)+((e&65280)<<8)+((e&255)<<24)}function UG(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new It.Buf16(320),this.work=new It.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function PC(e){var t;if(!e||!e.state)return zt;if(t=e.state,e.total_in=e.total_out=t.total=0,e.msg="",t.wrap)e.adler=t.wrap&1;return t.mode=OC,t.last=0,t.havedict=0,t.dmax=32768,t.head=null,t.hold=0,t.bits=0,t.lencode=t.lendyn=new It.Buf32(TG),t.distcode=t.distdyn=new It.Buf32(SG),t.sane=1,t.back=-1,Mi}function IC(e){var t;if(!e||!e.state)return zt;return t=e.state,t.wsize=0,t.whave=0,t.wnext=0,PC(e)}function MC(e,t){var n,r;if(!e||!e.state)return zt;if(r=e.state,t<0)n=0,t=-t;else if(n=(t>>4)+1,t<48)t&=15;if(t&&(t<8||t>15))return zt;if(r.window!==null&&r.wbits!==t)r.window=null;return r.wrap=n,r.wbits=t,IC(e)}function NC(e,t){var n,r;if(!e)return zt;if(r=new UG,e.state=r,r.window=null,n=MC(e,t),n!==Mi)e.state=null;return n}function kG(e){return NC(e,AG)}var UC=!0,cy,uy;function RG(e){if(UC){var t;cy=new It.Buf32(512),uy=new It.Buf32(32),t=0;while(t<144)e.lens[t++]=8;while(t<256)e.lens[t++]=9;while(t<280)e.lens[t++]=7;while(t<288)e.lens[t++]=8;Oa(kC,e.lens,0,288,cy,0,e.work,{bits:9}),t=0;while(t<32)e.lens[t++]=5;Oa(RC,e.lens,0,32,uy,0,e.work,{bits:5}),UC=!1}e.lencode=cy,e.lenbits=9,e.distcode=uy,e.distbits=5}function BC(e,t,n,r){var i,o=e.state;if(o.window===null)o.wsize=1<<o.wbits,o.wnext=0,o.whave=0,o.window=new It.Buf8(o.wsize);if(r>=o.wsize)It.arraySet(o.window,t,n-o.wsize,o.wsize,0),o.wnext=0,o.whave=o.wsize;else{if(i=o.wsize-o.wnext,i>r)i=r;if(It.arraySet(o.window,t,n-r,i,o.wnext),r-=i,r)It.arraySet(o.window,t,n-r,r,0),o.wnext=r,o.whave=o.wsize;else{if(o.wnext+=i,o.wnext===o.wsize)o.wnext=0;if(o.whave<o.wsize)o.whave+=i}}return 0}function FG(e,t){var n,r,i,o,s,a,c,u,d,f,h,p,g,y,v=0,b,_,m,x,D,A,E,U,C=new It.Buf8(4),N,F,S=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!e||!e.state||!e.output||!e.input&&e.avail_in!==0)return zt;if(n=e.state,n.mode===nr)n.mode=oy;s=e.next_out,i=e.output,c=e.avail_out,o=e.next_in,r=e.input,a=e.avail_in,u=n.hold,d=n.bits,f=a,h=c,U=Mi;e:for(;;)switch(n.mode){case OC:if(n.wrap===0){n.mode=oy;break}while(d<16){if(a===0)break e;a--,u+=r[o++]<<d,d+=8}if(n.wrap&2&&u===35615){n.check=0,C[0]=u&255,C[1]=u>>>8&255,n.check=Rn(n.check,C,2,0),u=0,d=0,n.mode=aC;break}if(n.flags=0,n.head)n.head.done=!1;if(!(n.wrap&1)||(((u&255)<<8)+(u>>8))%31){e.msg="incorrect header check",n.mode=Fe;break}if((u&15)!==sC){e.msg="unknown compression method",n.mode=Fe;break}if(u>>>=4,d-=4,E=(u&15)+8,n.wbits===0)n.wbits=E;else if(E>n.wbits){e.msg="invalid window size",n.mode=Fe;break}n.dmax=1<<E,e.adler=n.check=1,n.mode=u&512?gC:nr,u=0,d=0;break;case aC:while(d<16){if(a===0)break e;a--,u+=r[o++]<<d,d+=8}if(n.flags=u,(n.flags&255)!==sC){e.msg="unknown compression method",n.mode=Fe;break}if(n.flags&57344){e.msg="unknown header flags set",n.mode=Fe;break}if(n.head)n.head.text=u>>8&1;if(n.flags&512)C[0]=u&255,C[1]=u>>>8&255,n.check=Rn(n.check,C,2,0);u=0,d=0,n.mode=cC;case cC:while(d<32){if(a===0)break e;a--,u+=r[o++]<<d,d+=8}if(n.head)n.head.time=u;if(n.flags&512)C[0]=u&255,C[1]=u>>>8&255,C[2]=u>>>16&255,C[3]=u>>>24&255,n.check=Rn(n.check,C,4,0);u=0,d=0,n.mode=uC;case uC:while(d<16){if(a===0)break e;a--,u+=r[o++]<<d,d+=8}if(n.head)n.head.xflags=u&255,n.head.os=u>>8;if(n.flags&512)C[0]=u&255,C[1]=u>>>8&255,n.check=Rn(n.check,C,2,0);u=0,d=0,n.mode=lC;case lC:if(n.flags&1024){while(d<16){if(a===0)break e;a--,u+=r[o++]<<d,d+=8}if(n.length=u,n.head)n.head.extra_len=u;if(n.flags&512)C[0]=u&255,C[1]=u>>>8&255,n.check=Rn(n.check,C,2,0);u=0,d=0}else if(n.head)n.head.extra=null;n.mode=dC;case dC:if(n.flags&1024){if(p=n.length,p>a)p=a;if(p){if(n.head){if(E=n.head.extra_len-n.length,!n.head.extra)n.head.extra=Array(n.head.extra_len);It.arraySet(n.head.extra,r,o,p,E)}if(n.flags&512)n.check=Rn(n.check,r,p,o);a-=p,o+=p,n.length-=p}if(n.length)break e}n.length=0,n.mode=fC;case fC:if(n.flags&2048){if(a===0)break e;p=0;do if(E=r[o+p++],n.head&&E&&n.length<65536)n.head.name+=String.fromCharCode(E);while(E&&p<a);if(n.flags&512)n.check=Rn(n.check,r,p,o);if(a-=p,o+=p,E)break e}else if(n.head)n.head.name=null;n.length=0,n.mode=hC;case hC:if(n.flags&4096){if(a===0)break e;p=0;do if(E=r[o+p++],n.head&&E&&n.length<65536)n.head.comment+=String.fromCharCode(E);while(E&&p<a);if(n.flags&512)n.check=Rn(n.check,r,p,o);if(a-=p,o+=p,E)break e}else if(n.head)n.head.comment=null;n.mode=pC;case pC:if(n.flags&512){while(d<16){if(a===0)break e;a--,u+=r[o++]<<d,d+=8}if(u!==(n.check&65535)){e.msg="header crc mismatch",n.mode=Fe;break}u=0,d=0}if(n.head)n.head.hcrc=n.flags>>9&1,n.head.done=!0;e.adler=n.check=0,n.mode=nr;break;case gC:while(d<32){if(a===0)break e;a--,u+=r[o++]<<d,d+=8}e.adler=n.check=AC(u),u=0,d=0,n.mode=ed;case ed:if(n.havedict===0)return e.next_out=s,e.avail_out=c,e.next_in=o,e.avail_in=a,n.hold=u,n.bits=d,wG;e.adler=n.check=1,n.mode=nr;case nr:if(t===xG||t===Yl)break e;case oy:if(n.last){u>>>=d&7,d-=d&7,n.mode=ay;break}while(d<3){if(a===0)break e;a--,u+=r[o++]<<d,d+=8}switch(n.last=u&1,u>>>=1,d-=1,u&3){case 0:n.mode=mC;break;case 1:if(RG(n),n.mode=Jl,t===Yl){u>>>=2,d-=2;break e}break;case 2:n.mode=bC;break;case 3:e.msg="invalid block type",n.mode=Fe}u>>>=2,d-=2;break;case mC:u>>>=d&7,d-=d&7;while(d<32){if(a===0)break e;a--,u+=r[o++]<<d,d+=8}if((u&65535)!==(u>>>16^65535)){e.msg="invalid stored block lengths",n.mode=Fe;break}if(n.length=u&65535,u=0,d=0,n.mode=sy,t===Yl)break e;case sy:n.mode=yC;case yC:if(p=n.length,p){if(p>a)p=a;if(p>c)p=c;if(p===0)break e;It.arraySet(i,r,o,p,s),a-=p,o+=p,c-=p,s+=p,n.length-=p;break}n.mode=nr;break;case bC:while(d<14){if(a===0)break e;a--,u+=r[o++]<<d,d+=8}if(n.nlen=(u&31)+257,u>>>=5,d-=5,n.ndist=(u&31)+1,u>>>=5,d-=5,n.ncode=(u&15)+4,u>>>=4,d-=4,n.nlen>286||n.ndist>30){e.msg="too many length or distance symbols",n.mode=Fe;break}n.have=0,n.mode=vC;case vC:while(n.have<n.ncode){while(d<3){if(a===0)break e;a--,u+=r[o++]<<d,d+=8}n.lens[S[n.have++]]=u&7,u>>>=3,d-=3}while(n.have<19)n.lens[S[n.have++]]=0;if(n.lencode=n.lendyn,n.lenbits=7,N={bits:n.lenbits},U=Oa(vG,n.lens,0,19,n.lencode,0,n.work,N),n.lenbits=N.bits,U){e.msg="invalid code lengths set",n.mode=Fe;break}n.have=0,n.mode=xC;case xC:while(n.have<n.nlen+n.ndist){for(;;){if(v=n.lencode[u&(1<<n.lenbits)-1],b=v>>>24,_=v>>>16&255,m=v&65535,b<=d)break;if(a===0)break e;a--,u+=r[o++]<<d,d+=8}if(m<16)u>>>=b,d-=b,n.lens[n.have++]=m;else{if(m===16){F=b+2;while(d<F){if(a===0)break e;a--,u+=r[o++]<<d,d+=8}if(u>>>=b,d-=b,n.have===0){e.msg="invalid bit length repeat",n.mode=Fe;break}E=n.lens[n.have-1],p=3+(u&3),u>>>=2,d-=2}else if(m===17){F=b+3;while(d<F){if(a===0)break e;a--,u+=r[o++]<<d,d+=8}u>>>=b,d-=b,E=0,p=3+(u&7),u>>>=3,d-=3}else{F=b+7;while(d<F){if(a===0)break e;a--,u+=r[o++]<<d,d+=8}u>>>=b,d-=b,E=0,p=11+(u&127),u>>>=7,d-=7}if(n.have+p>n.nlen+n.ndist){e.msg="invalid bit length repeat",n.mode=Fe;break}while(p--)n.lens[n.have++]=E}}if(n.mode===Fe)break;if(n.lens[256]===0){e.msg="invalid code -- missing end-of-block",n.mode=Fe;break}if(n.lenbits=9,N={bits:n.lenbits},U=Oa(kC,n.lens,0,n.nlen,n.lencode,0,n.work,N),n.lenbits=N.bits,U){e.msg="invalid literal/lengths set",n.mode=Fe;break}if(n.distbits=6,n.distcode=n.distdyn,N={bits:n.distbits},U=Oa(RC,n.lens,n.nlen,n.ndist,n.distcode,0,n.work,N),n.distbits=N.bits,U){e.msg="invalid distances set",n.mode=Fe;break}if(n.mode=Jl,t===Yl)break e;case Jl:n.mode=Ql;case Ql:if(a>=6&&c>=258){if(e.next_out=s,e.avail_out=c,e.next_in=o,e.avail_in=a,n.hold=u,n.bits=d,bG(e,h),s=e.next_out,i=e.output,c=e.avail_out,o=e.next_in,r=e.input,a=e.avail_in,u=n.hold,d=n.bits,n.mode===nr)n.back=-1;break}n.back=0;for(;;){if(v=n.lencode[u&(1<<n.lenbits)-1],b=v>>>24,_=v>>>16&255,m=v&65535,b<=d)break;if(a===0)break e;a--,u+=r[o++]<<d,d+=8}if(_&&(_&240)===0){x=b,D=_,A=m;for(;;){if(v=n.lencode[A+((u&(1<<x+D)-1)>>x)],b=v>>>24,_=v>>>16&255,m=v&65535,x+b<=d)break;if(a===0)break e;a--,u+=r[o++]<<d,d+=8}u>>>=x,d-=x,n.back+=x}if(u>>>=b,d-=b,n.back+=b,n.length=m,_===0){n.mode=TC;break}if(_&32){n.back=-1,n.mode=nr;break}if(_&64){e.msg="invalid literal/length code",n.mode=Fe;break}n.extra=_&15,n.mode=_C;case _C:if(n.extra){F=n.extra;while(d<F){if(a===0)break e;a--,u+=r[o++]<<d,d+=8}n.length+=u&(1<<n.extra)-1,u>>>=n.extra,d-=n.extra,n.back+=n.extra}n.was=n.length,n.mode=wC;case wC:for(;;){if(v=n.distcode[u&(1<<n.distbits)-1],b=v>>>24,_=v>>>16&255,m=v&65535,b<=d)break;if(a===0)break e;a--,u+=r[o++]<<d,d+=8}if((_&240)===0){x=b,D=_,A=m;for(;;){if(v=n.distcode[A+((u&(1<<x+D)-1)>>x)],b=v>>>24,_=v>>>16&255,m=v&65535,x+b<=d)break;if(a===0)break e;a--,u+=r[o++]<<d,d+=8}u>>>=x,d-=x,n.back+=x}if(u>>>=b,d-=b,n.back+=b,_&64){e.msg="invalid distance code",n.mode=Fe;break}n.offset=m,n.extra=_&15,n.mode=DC;case DC:if(n.extra){F=n.extra;while(d<F){if(a===0)break e;a--,u+=r[o++]<<d,d+=8}n.offset+=u&(1<<n.extra)-1,u>>>=n.extra,d-=n.extra,n.back+=n.extra}if(n.offset>n.dmax){e.msg="invalid distance too far back",n.mode=Fe;break}n.mode=EC;case EC:if(c===0)break e;if(p=h-c,n.offset>p){if(p=n.offset-p,p>n.whave){if(n.sane){e.msg="invalid distance too far back",n.mode=Fe;break}}if(p>n.wnext)p-=n.wnext,g=n.wsize-p;else g=n.wnext-p;if(p>n.length)p=n.length;y=n.window}else y=i,g=s-n.offset,p=n.length;if(p>c)p=c;c-=p,n.length-=p;do i[s++]=y[g++];while(--p);if(n.length===0)n.mode=Ql;break;case TC:if(c===0)break e;i[s++]=n.length,c--,n.mode=Ql;break;case ay:if(n.wrap){while(d<32){if(a===0)break e;a--,u|=r[o++]<<d,d+=8}if(h-=c,e.total_out+=h,n.total+=h,h)e.adler=n.check=n.flags?Rn(n.check,i,h,s-h):ly(n.check,i,h,s-h);if(h=c,(n.flags?u:AC(u))!==n.check){e.msg="incorrect data check",n.mode=Fe;break}u=0,d=0}n.mode=SC;case SC:if(n.wrap&&n.flags){while(d<32){if(a===0)break e;a--,u+=r[o++]<<d,d+=8}if(u!==(n.total&4294967295)){e.msg="incorrect length check",n.mode=Fe;break}u=0,d=0}n.mode=CC;case CC:U=_G;break e;case Fe:U=FC;break e;case fy:return dy;case EG:default:return zt}if(e.next_out=s,e.avail_out=c,e.next_in=o,e.avail_in=a,n.hold=u,n.bits=d,n.wsize||h!==e.avail_out&&n.mode<Fe&&(n.mode<ay||t!==oC)){if(BC(e,e.output,e.next_out,h-e.avail_out))return n.mode=fy,dy}if(f-=e.avail_in,h-=e.avail_out,e.total_in+=f,e.total_out+=h,n.total+=h,n.wrap&&h)e.adler=n.check=n.flags?Rn(n.check,i,h,e.next_out-h):ly(n.check,i,h,e.next_out-h);if(e.data_type=n.bits+(n.last?64:0)+(n.mode===nr?128:0)+(n.mode===Jl||n.mode===sy?256:0),(f===0&&h===0||t===oC)&&U===Mi)U=DG;return U}function OG(e){if(!e||!e.state)return zt;var t=e.state;if(t.window)t.window=null;return e.state=null,Mi}function PG(e,t){var n;if(!e||!e.state)return zt;if(n=e.state,(n.wrap&2)===0)return zt;return n.head=t,t.done=!1,Mi}function IG(e,t){var n=t.length,r,i,o;if(!e||!e.state)return zt;if(r=e.state,r.wrap!==0&&r.mode!==ed)return zt;if(r.mode===ed){if(i=1,i=ly(i,t,n,0),i!==r.check)return FC}if(o=BC(e,t,n,n),o)return r.mode=fy,dy;return r.havedict=1,Mi}MG.inflateReset=IC;MG.inflateReset2=MC;MG.inflateResetKeep=PC;MG.inflateInit=kG;MG.inflateInit2=NC;MG.inflate=FG;MG.inflateEnd=OG;MG.inflateGetHeader=PG;MG.inflateSetDictionary=IG;MG.inflateInfo="pako inflate (from Nodeca project)"});var hy=R(function(kme,WC){WC.exports={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8}});var qC=R(function(Rme,jC){function VG(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}jC.exports=VG});var HC=R(function(YG){var qo=LC(),Pa=er(),td=Jm(),Ne=hy(),py=ql(),XG=Qm(),KG=qC(),$C=Object.prototype.toString;function Ni(e){if(!(this instanceof Ni))return new Ni(e);this.options=Pa.assign({chunkSize:16384,windowBits:0,to:""},e||{});var t=this.options;if(t.raw&&t.windowBits>=0&&t.windowBits<16){if(t.windowBits=-t.windowBits,t.windowBits===0)t.windowBits=-15}if(t.windowBits>=0&&t.windowBits<16&&!(e&&e.windowBits))t.windowBits+=32;if(t.windowBits>15&&t.windowBits<48){if((t.windowBits&15)===0)t.windowBits|=15}this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new XG,this.strm.avail_out=0;var n=qo.inflateInit2(this.strm,t.windowBits);if(n!==Ne.Z_OK)throw Error(py[n]);if(this.header=new KG,qo.inflateGetHeader(this.strm,this.header),t.dictionary){if(typeof t.dictionary==="string")t.dictionary=td.string2buf(t.dictionary);else if($C.call(t.dictionary)==="[object ArrayBuffer]")t.dictionary=new Uint8Array(t.dictionary);if(t.raw){if(n=qo.inflateSetDictionary(this.strm,t.dictionary),n!==Ne.Z_OK)throw Error(py[n])}}}Ni.prototype.push=function(e,t){var n=this.strm,r=this.options.chunkSize,i=this.options.dictionary,o,s,a,c,u,d=!1;if(this.ended)return!1;if(s=t===~~t?t:t===!0?Ne.Z_FINISH:Ne.Z_NO_FLUSH,typeof e==="string")n.input=td.binstring2buf(e);else if($C.call(e)==="[object ArrayBuffer]")n.input=new Uint8Array(e);else n.input=e;n.next_in=0,n.avail_in=n.input.length;do{if(n.avail_out===0)n.output=new Pa.Buf8(r),n.next_out=0,n.avail_out=r;if(o=qo.inflate(n,Ne.Z_NO_FLUSH),o===Ne.Z_NEED_DICT&&i)o=qo.inflateSetDictionary(this.strm,i);if(o===Ne.Z_BUF_ERROR&&d===!0)o=Ne.Z_OK,d=!1;if(o!==Ne.Z_STREAM_END&&o!==Ne.Z_OK)return this.onEnd(o),this.ended=!0,!1;if(n.next_out){if(n.avail_out===0||o===Ne.Z_STREAM_END||n.avail_in===0&&(s===Ne.Z_FINISH||s===Ne.Z_SYNC_FLUSH))if(this.options.to==="string"){if(a=td.utf8border(n.output,n.next_out),c=n.next_out-a,u=td.buf2string(n.output,a),n.next_out=c,n.avail_out=r-c,c)Pa.arraySet(n.output,n.output,a,c,0);this.onData(u)}else this.onData(Pa.shrinkBuf(n.output,n.next_out))}if(n.avail_in===0&&n.avail_out===0)d=!0}while((n.avail_in>0||n.avail_out===0)&&o!==Ne.Z_STREAM_END);if(o===Ne.Z_STREAM_END)s=Ne.Z_FINISH;if(s===Ne.Z_FINISH)return o=qo.inflateEnd(this.strm),this.onEnd(o),this.ended=!0,o===Ne.Z_OK;if(s===Ne.Z_SYNC_FLUSH)return this.onEnd(Ne.Z_OK),n.avail_out=0,!0;return!0};Ni.prototype.onData=function(e){this.chunks.push(e)};Ni.prototype.onEnd=function(e){if(e===Ne.Z_OK)if(this.options.to==="string")this.result=this.chunks.join("");else this.result=Pa.flattenChunks(this.chunks);this.chunks=[],this.err=e,this.msg=this.strm.msg};function gy(e,t){var n=new Ni(t);if(n.push(e,!0),n.err)throw n.msg||py[n.err];return n.result}function ZG(e,t){return t=t||{},t.raw=!0,gy(e,t)}YG.Inflate=Ni;YG.inflate=gy;YG.inflateRaw=ZG;YG.ungzip=gy});var VC=R(function(Ome,zC){var nz=er().assign,rz=KS(),iz=HC(),oz=hy(),GC={};nz(GC,rz,iz,oz);zC.exports=GC});var KC=R(function(uz){var sz=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Uint32Array<"u",az=VC(),XC=Pe(),nd=Pt(),cz=sz?"uint8array":"array";uz.magic="\b\x00";function Bi(e,t){nd.call(this,"FlateWorker/"+e),this._pako=null,this._pakoAction=e,this._pakoOptions=t,this.meta={}}XC.inherits(Bi,nd);Bi.prototype.processChunk=function(e){if(this.meta=e.meta,this._pako===null)this._createPako();this._pako.push(XC.transformTo(cz,e.data),!1)};Bi.prototype.flush=function(){if(nd.prototype.flush.call(this),this._pako===null)this._createPako();this._pako.push([],!0)};Bi.prototype.cleanUp=function(){nd.prototype.cleanUp.call(this),this._pako=null};Bi.prototype._createPako=function(){this._pako=new az[this._pakoAction]({raw:!0,level:this._pakoOptions.level||-1});var e=this;this._pako.onData=function(t){e.push({data:t,meta:e.meta})}};uz.compressWorker=function(e){return new Bi("Deflate",e)};uz.uncompressWorker=function(){return new Bi("Inflate",{})}});var my=R(function(hz){var ZC=Pt();hz.STORE={magic:"\x00\x00",compressWorker:function(){return new ZC("STORE compression")},uncompressWorker:function(){return new ZC("STORE decompression")}};hz.DEFLATE=KC()});var yy=R(function(mz){mz.LOCAL_FILE_HEADER="PK\x03\x04";mz.CENTRAL_FILE_HEADER="PK\x01\x02";mz.CENTRAL_DIRECTORY_END="PK\x05\x06";mz.ZIP64_CENTRAL_DIRECTORY_LOCATOR="PK\x06\x07";mz.ZIP64_CENTRAL_DIRECTORY_END="PK\x06\x06";mz.DATA_DESCRIPTOR="PK\x07\b"});var eA=R(function(Nme,QC){var $o=Pe(),Ho=Pt(),by=Oo(),YC=Bl(),rd=yy(),Ee=function(e,t){var n="",r;for(r=0;r<t;r++)n+=String.fromCharCode(e&255),e=e>>>8;return n},Dz=function(e,t){var n=e;if(!e)n=t?16893:33204;return(n&65535)<<16},Ez=function(e){return(e||0)&63},JC=function(e,t,n,r,i,o){var{file:s,compression:a}=e,c=o!==by.utf8encode,u=$o.transformTo("string",o(s.name)),d=$o.transformTo("string",by.utf8encode(s.name)),f=s.comment,h=$o.transformTo("string",o(f)),p=$o.transformTo("string",by.utf8encode(f)),g=d.length!==s.name.length,y=p.length!==f.length,v,b,_="",m="",x="",D=s.dir,A=s.date,E={crc32:0,compressedSize:0,uncompressedSize:0};if(!t||n)E.crc32=e.crc32,E.compressedSize=e.compressedSize,E.uncompressedSize=e.uncompressedSize;var U=0;if(t)U|=8;if(!c&&(g||y))U|=2048;var C=0,N=0;if(D)C|=16;if(i==="UNIX")N=798,C|=Dz(s.unixPermissions,D);else N=20,C|=Ez(s.dosPermissions,D);if(v=A.getUTCHours(),v=v<<6,v=v|A.getUTCMinutes(),v=v<<5,v=v|A.getUTCSeconds()/2,b=A.getUTCFullYear()-1980,b=b<<4,b=b|A.getUTCMonth()+1,b=b<<5,b=b|A.getUTCDate(),g)m=Ee(1,1)+Ee(YC(u),4)+d,_+="up"+Ee(m.length,2)+m;if(y)x=Ee(1,1)+Ee(YC(h),4)+p,_+="uc"+Ee(x.length,2)+x;var F="";F+=`
198
+ \x00`,F+=Ee(U,2),F+=a.magic,F+=Ee(v,2),F+=Ee(b,2),F+=Ee(E.crc32,4),F+=Ee(E.compressedSize,4),F+=Ee(E.uncompressedSize,4),F+=Ee(u.length,2),F+=Ee(_.length,2);var S=rd.LOCAL_FILE_HEADER+F+u+_,B=rd.CENTRAL_FILE_HEADER+Ee(N,2)+F+Ee(h.length,2)+"\x00\x00\x00\x00"+Ee(C,4)+Ee(r,4)+u+_+h;return{fileRecord:S,dirRecord:B}},Tz=function(e,t,n,r,i){var o="",s=$o.transformTo("string",i(r));return o=rd.CENTRAL_DIRECTORY_END+"\x00\x00\x00\x00"+Ee(e,2)+Ee(e,2)+Ee(t,4)+Ee(n,4)+Ee(s.length,2)+s,o},Sz=function(e){var t="";return t=rd.DATA_DESCRIPTOR+Ee(e.crc32,4)+Ee(e.compressedSize,4)+Ee(e.uncompressedSize,4),t};function an(e,t,n,r){Ho.call(this,"ZipFileWorker"),this.bytesWritten=0,this.zipComment=t,this.zipPlatform=n,this.encodeFileName=r,this.streamFiles=e,this.accumulate=!1,this.contentBuffer=[],this.dirRecords=[],this.currentSourceOffset=0,this.entriesCount=0,this.currentFile=null,this._sources=[]}$o.inherits(an,Ho);an.prototype.push=function(e){var t=e.meta.percent||0,n=this.entriesCount,r=this._sources.length;if(this.accumulate)this.contentBuffer.push(e);else this.bytesWritten+=e.data.length,Ho.prototype.push.call(this,{data:e.data,meta:{currentFile:this.currentFile,percent:n?(t+100*(n-r-1))/n:100}})};an.prototype.openedSource=function(e){this.currentSourceOffset=this.bytesWritten,this.currentFile=e.file.name;var t=this.streamFiles&&!e.file.dir;if(t){var n=JC(e,t,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);this.push({data:n.fileRecord,meta:{percent:0}})}else this.accumulate=!0};an.prototype.closedSource=function(e){this.accumulate=!1;var t=this.streamFiles&&!e.file.dir,n=JC(e,t,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(n.dirRecord),t)this.push({data:Sz(e),meta:{percent:100}});else{this.push({data:n.fileRecord,meta:{percent:0}});while(this.contentBuffer.length)this.push(this.contentBuffer.shift())}this.currentFile=null};an.prototype.flush=function(){var e=this.bytesWritten;for(var t=0;t<this.dirRecords.length;t++)this.push({data:this.dirRecords[t],meta:{percent:100}});var n=this.bytesWritten-e,r=Tz(this.dirRecords.length,n,e,this.zipComment,this.encodeFileName);this.push({data:r,meta:{percent:100}})};an.prototype.prepareNextSource=function(){if(this.previous=this._sources.shift(),this.openedSource(this.previous.streamInfo),this.isPaused)this.previous.pause();else this.previous.resume()};an.prototype.registerPrevious=function(e){this._sources.push(e);var t=this;return e.on("data",function(n){t.processChunk(n)}),e.on("end",function(){if(t.closedSource(t.previous.streamInfo),t._sources.length)t.prepareNextSource();else t.end()}),e.on("error",function(n){t.error(n)}),this};an.prototype.resume=function(){if(!Ho.prototype.resume.call(this))return!1;if(!this.previous&&this._sources.length)return this.prepareNextSource(),!0;if(!this.previous&&!this._sources.length&&!this.generatedError)return this.end(),!0};an.prototype.error=function(e){var t=this._sources;if(!Ho.prototype.error.call(this,e))return!1;for(var n=0;n<t.length;n++)try{t[n].error(e)}catch(r){}return!0};an.prototype.lock=function(){Ho.prototype.lock.call(this);var e=this._sources;for(var t=0;t<e.length;t++)e[t].lock()};QC.exports=an});var tA=R(function(kz){var Cz=my(),Az=eA(),Uz=function(e,t){var n=e||t,r=Cz[n];if(!r)throw Error(n+" is not a valid compression method !");return r};kz.generateWorker=function(e,t,n){var r=new Az(t.streamFiles,n,t.platform,t.encodeFileName),i=0;try{e.forEach(function(o,s){i++;var a=Uz(s.options.compression,t.compression),c=s.options.compressionOptions||t.compressionOptions||{},u=s.dir,d=s.date;s._compressWorker(a,c).withStreamInfo("file",{name:o,dir:u,date:d,comment:s.comment||"",unixPermissions:s.unixPermissions,dosPermissions:s.dosPermissions}).pipe(r)}),r.entriesCount=i}catch(o){r.error(o)}return r}});var rA=R(function(Lme,nA){var Fz=Pe(),id=Pt();function Ia(e,t){id.call(this,"Nodejs stream input adapter for "+e),this._upstreamEnded=!1,this._bindStream(t)}Fz.inherits(Ia,id);Ia.prototype._bindStream=function(e){var t=this;this._stream=e,e.pause(),e.on("data",function(n){t.push({data:n,meta:{percent:0}})}).on("error",function(n){if(t.isPaused)this.generatedError=n;else t.error(n)}).on("end",function(){if(t.isPaused)t._upstreamEnded=!0;else t.end()})};Ia.prototype.pause=function(){if(!id.prototype.pause.call(this))return!1;return this._stream.pause(),!0};Ia.prototype.resume=function(){if(!id.prototype.resume.call(this))return!1;if(this._upstreamEnded)this.end();else this._stream.resume();return!0};nA.exports=Ia});var hA=R(function(Wme,fA){var Oz=Oo(),Ma=Pe(),aA=Pt(),Pz=wm(),cA=Dm(),iA=Ll(),Iz=oS(),Mz=tA(),oA=pa(),Nz=rA(),uA=function(e,t,n){var r=Ma.getTypeOf(t),i,o=Ma.extend(n||{},cA);if(o.date=o.date||new Date,o.compression!==null)o.compression=o.compression.toUpperCase();if(typeof o.unixPermissions==="string")o.unixPermissions=parseInt(o.unixPermissions,8);if(o.unixPermissions&&o.unixPermissions&16384)o.dir=!0;if(o.dosPermissions&&o.dosPermissions&16)o.dir=!0;if(o.dir)e=lA(e);if(o.createFolders&&(i=Bz(e)))dA.call(this,i,!0);var s=r==="string"&&o.binary===!1&&o.base64===!1;if(!n||typeof n.binary>"u")o.binary=!s;var a=t instanceof iA&&t.uncompressedSize===0;if(a||o.dir||!t||t.length===0)o.base64=!1,o.binary=!0,t="",o.compression="STORE",r="string";var c=null;if(t instanceof iA||t instanceof aA)c=t;else if(oA.isNode&&oA.isStream(t))c=new Nz(e,t);else c=Ma.prepareContent(e,t,o.binary,o.optimizedBinaryString,o.base64);var u=new Iz(e,c,o);this.files[e]=u},Bz=function(e){if(e.slice(-1)==="/")e=e.substring(0,e.length-1);var t=e.lastIndexOf("/");return t>0?e.substring(0,t):""},lA=function(e){if(e.slice(-1)!=="/")e+="/";return e},dA=function(e,t){if(t=typeof t<"u"?t:cA.createFolders,e=lA(e),!this.files[e])uA.call(this,e,null,{dir:!0,createFolders:t});return this.files[e]};function sA(e){return Object.prototype.toString.call(e)==="[object RegExp]"}var Lz={load:function(){throw Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},forEach:function(e){var t,n,r;for(t in this.files)if(r=this.files[t],n=t.slice(this.root.length,t.length),n&&t.slice(0,this.root.length)===this.root)e(n,r)},filter:function(e){var t=[];return this.forEach(function(n,r){if(e(n,r))t.push(r)}),t},file:function(e,t,n){if(arguments.length===1)if(sA(e)){var r=e;return this.filter(function(o,s){return!s.dir&&r.test(o)})}else{var i=this.files[this.root+e];if(i&&!i.dir)return i;else return null}else e=this.root+e,uA.call(this,e,t,n);return this},folder:function(e){if(!e)return this;if(sA(e))return this.filter(function(i,o){return o.dir&&e.test(i)});var t=this.root+e,n=dA.call(this,t),r=this.clone();return r.root=n.name,r},remove:function(e){e=this.root+e;var t=this.files[e];if(!t){if(e.slice(-1)!=="/")e+="/";t=this.files[e]}if(t&&!t.dir)delete this.files[e];else{var n=this.filter(function(i,o){return o.name.slice(0,e.length)===e});for(var r=0;r<n.length;r++)delete this.files[n[r].name]}return this},generate:function(){throw Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},generateInternalStream:function(e){var t,n={};try{if(n=Ma.extend(e||{},{streamFiles:!1,compression:"STORE",compressionOptions:null,type:"",platform:"DOS",comment:null,mimeType:"application/zip",encodeFileName:Oz.utf8encode}),n.type=n.type.toLowerCase(),n.compression=n.compression.toUpperCase(),n.type==="binarystring")n.type="string";if(!n.type)throw Error("No output type specified.");if(Ma.checkSupport(n.type),n.platform==="darwin"||n.platform==="freebsd"||n.platform==="linux"||n.platform==="sunos")n.platform="UNIX";if(n.platform==="win32")n.platform="DOS";var r=n.comment||this.comment||"";t=Mz.generateWorker(this,n,r)}catch(i){t=new aA("error"),t.error(i)}return new Pz(t,n.type||"string",n.mimeType)},generateAsync:function(e,t){return this.generateInternalStream(e).accumulate(t)},generateNodeStream:function(e,t){if(e=e||{},!e.type)e.type="nodebuffer";return this.generateInternalStream(e).toNodejsStream(t)}};fA.exports=Lz});var vy=R(function(jme,gA){var Wz=Pe();function pA(e){this.data=e,this.length=e.length,this.index=0,this.zero=0}pA.prototype={checkOffset:function(e){this.checkIndex(this.index+e)},checkIndex:function(e){if(this.length<this.zero+e||e<0)throw Error("End of data reached (data length = "+this.length+", asked index = "+e+"). Corrupted zip ?")},setIndex:function(e){this.checkIndex(e),this.index=e},skip:function(e){this.setIndex(this.index+e)},byteAt:function(){},readInt:function(e){var t=0,n;this.checkOffset(e);for(n=this.index+e-1;n>=this.index;n--)t=(t<<8)+this.byteAt(n);return this.index+=e,t},readString:function(e){return Wz.transformTo("string",this.readData(e))},readData:function(){},lastIndexOfSignature:function(){},readAndCheckSignature:function(){},readDate:function(){var e=this.readInt(4);return new Date(Date.UTC((e>>25&127)+1980,(e>>21&15)-1,e>>16&31,e>>11&31,e>>5&63,(e&31)<<1))}};gA.exports=pA});var xy=R(function(qme,yA){var mA=vy(),jz=Pe();function Go(e){mA.call(this,e);for(var t=0;t<this.data.length;t++)e[t]=e[t]&255}jz.inherits(Go,mA);Go.prototype.byteAt=function(e){return this.data[this.zero+e]};Go.prototype.lastIndexOfSignature=function(e){var t=e.charCodeAt(0),n=e.charCodeAt(1),r=e.charCodeAt(2),i=e.charCodeAt(3);for(var o=this.length-4;o>=0;--o)if(this.data[o]===t&&this.data[o+1]===n&&this.data[o+2]===r&&this.data[o+3]===i)return o-this.zero;return-1};Go.prototype.readAndCheckSignature=function(e){var t=e.charCodeAt(0),n=e.charCodeAt(1),r=e.charCodeAt(2),i=e.charCodeAt(3),o=this.readData(4);return t===o[0]&&n===o[1]&&r===o[2]&&i===o[3]};Go.prototype.readData=function(e){if(this.checkOffset(e),e===0)return[];var t=this.data.slice(this.zero+this.index,this.zero+this.index+e);return this.index+=e,t};yA.exports=Go});var xA=R(function($me,vA){var bA=vy(),qz=Pe();function zo(e){bA.call(this,e)}qz.inherits(zo,bA);zo.prototype.byteAt=function(e){return this.data.charCodeAt(this.zero+e)};zo.prototype.lastIndexOfSignature=function(e){return this.data.lastIndexOf(e)-this.zero};zo.prototype.readAndCheckSignature=function(e){var t=this.readData(4);return e===t};zo.prototype.readData=function(e){this.checkOffset(e);var t=this.data.slice(this.zero+this.index,this.zero+this.index+e);return this.index+=e,t};vA.exports=zo});var wy=R(function(Hme,wA){var _A=xy(),$z=Pe();function _y(e){_A.call(this,e)}$z.inherits(_y,_A);_y.prototype.readData=function(e){if(this.checkOffset(e),e===0)return new Uint8Array(0);var t=this.data.subarray(this.zero+this.index,this.zero+this.index+e);return this.index+=e,t};wA.exports=_y});var TA=R(function(Gme,EA){var DA=wy(),Hz=Pe();function Dy(e){DA.call(this,e)}Hz.inherits(Dy,DA);Dy.prototype.readData=function(e){this.checkOffset(e);var t=this.data.slice(this.zero+this.index,this.zero+this.index+e);return this.index+=e,t};EA.exports=Dy});var Ey=R(function(zme,CA){var od=Pe(),SA=Qn(),Gz=xy(),zz=xA(),Vz=TA(),Xz=wy();CA.exports=function(e){var t=od.getTypeOf(e);if(od.checkSupport(t),t==="string"&&!SA.uint8array)return new zz(e);if(t==="nodebuffer")return new Vz(e);if(SA.uint8array)return new Xz(od.transformTo("uint8array",e));return new Gz(od.transformTo("array",e))}});var RA=R(function(Vme,kA){var Ty=Ey(),Kr=Pe(),Kz=Ll(),AA=Bl(),sd=Oo(),ad=my(),Zz=Qn(),Yz=0,Jz=3,Qz=function(e){for(var t in ad){if(!Object.prototype.hasOwnProperty.call(ad,t))continue;if(ad[t].magic===e)return ad[t]}return null};function UA(e,t){this.options=e,this.loadOptions=t}UA.prototype={isEncrypted:function(){return(this.bitFlag&1)===1},useUTF8:function(){return(this.bitFlag&2048)===2048},readLocalPart:function(e){var t,n;if(e.skip(22),this.fileNameLength=e.readInt(2),n=e.readInt(2),this.fileName=e.readData(this.fileNameLength),e.skip(n),this.compressedSize===-1||this.uncompressedSize===-1)throw Error("Bug or corrupted zip : didn't get enough information from the central directory (compressedSize === -1 || uncompressedSize === -1)");if(t=Qz(this.compressionMethod),t===null)throw Error("Corrupted zip : compression "+Kr.pretty(this.compressionMethod)+" unknown (inner file : "+Kr.transformTo("string",this.fileName)+")");this.decompressed=new Kz(this.compressedSize,this.uncompressedSize,this.crc32,t,e.readData(this.compressedSize))},readCentralPart:function(e){this.versionMadeBy=e.readInt(2),e.skip(2),this.bitFlag=e.readInt(2),this.compressionMethod=e.readString(2),this.date=e.readDate(),this.crc32=e.readInt(4),this.compressedSize=e.readInt(4),this.uncompressedSize=e.readInt(4);var t=e.readInt(2);if(this.extraFieldsLength=e.readInt(2),this.fileCommentLength=e.readInt(2),this.diskNumberStart=e.readInt(2),this.internalFileAttributes=e.readInt(2),this.externalFileAttributes=e.readInt(4),this.localHeaderOffset=e.readInt(4),this.isEncrypted())throw Error("Encrypted zip are not supported");e.skip(t),this.readExtraFields(e),this.parseZIP64ExtraField(e),this.fileComment=e.readData(this.fileCommentLength)},processAttributes:function(){this.unixPermissions=null,this.dosPermissions=null;var e=this.versionMadeBy>>8;if(this.dir=this.externalFileAttributes&16?!0:!1,e===Yz)this.dosPermissions=this.externalFileAttributes&63;if(e===Jz)this.unixPermissions=this.externalFileAttributes>>16&65535;if(!this.dir&&this.fileNameStr.slice(-1)==="/")this.dir=!0},parseZIP64ExtraField:function(){if(!this.extraFields[1])return;var e=Ty(this.extraFields[1].value);if(this.uncompressedSize===Kr.MAX_VALUE_32BITS)this.uncompressedSize=e.readInt(8);if(this.compressedSize===Kr.MAX_VALUE_32BITS)this.compressedSize=e.readInt(8);if(this.localHeaderOffset===Kr.MAX_VALUE_32BITS)this.localHeaderOffset=e.readInt(8);if(this.diskNumberStart===Kr.MAX_VALUE_32BITS)this.diskNumberStart=e.readInt(4)},readExtraFields:function(e){var t=e.index+this.extraFieldsLength,n,r,i;if(!this.extraFields)this.extraFields={};while(e.index+4<t)n=e.readInt(2),r=e.readInt(2),i=e.readData(r),this.extraFields[n]={id:n,length:r,value:i};e.setIndex(t)},handleUTF8:function(){var e=Zz.uint8array?"uint8array":"array";if(this.useUTF8())this.fileNameStr=sd.utf8decode(this.fileName),this.fileCommentStr=sd.utf8decode(this.fileComment);else{var t=this.findExtraFieldUnicodePath();if(t!==null)this.fileNameStr=t;else{var n=Kr.transformTo(e,this.fileName);this.fileNameStr=this.loadOptions.decodeFileName(n)}var r=this.findExtraFieldUnicodeComment();if(r!==null)this.fileCommentStr=r;else{var i=Kr.transformTo(e,this.fileComment);this.fileCommentStr=this.loadOptions.decodeFileName(i)}}},findExtraFieldUnicodePath:function(){var e=this.extraFields[28789];if(e){var t=Ty(e.value);if(t.readInt(1)!==1)return null;if(AA(this.fileName)!==t.readInt(4))return null;return sd.utf8decode(t.readData(e.length-5))}return null},findExtraFieldUnicodeComment:function(){var e=this.extraFields[25461];if(e){var t=Ty(e.value);if(t.readInt(1)!==1)return null;if(AA(this.fileComment)!==t.readInt(4))return null;return sd.utf8decode(t.readData(e.length-5))}return null}};kA.exports=UA});var PA=R(function(Xme,OA){var eV=Ey(),rr=Pe(),cn=yy(),tV=RA(),nV=Qn();function FA(e){this.files=[],this.loadOptions=e}FA.prototype={checkSignature:function(e){if(!this.reader.readAndCheckSignature(e)){this.reader.index-=4;var t=this.reader.readString(4);throw Error("Corrupted zip or bug: unexpected signature ("+rr.pretty(t)+", expected "+rr.pretty(e)+")")}},isSignature:function(e,t){var n=this.reader.index;this.reader.setIndex(e);var r=this.reader.readString(4),i=r===t;return this.reader.setIndex(n),i},readBlockEndOfCentral:function(){this.diskNumber=this.reader.readInt(2),this.diskWithCentralDirStart=this.reader.readInt(2),this.centralDirRecordsOnThisDisk=this.reader.readInt(2),this.centralDirRecords=this.reader.readInt(2),this.centralDirSize=this.reader.readInt(4),this.centralDirOffset=this.reader.readInt(4),this.zipCommentLength=this.reader.readInt(2);var e=this.reader.readData(this.zipCommentLength),t=nV.uint8array?"uint8array":"array",n=rr.transformTo(t,e);this.zipComment=this.loadOptions.decodeFileName(n)},readBlockZip64EndOfCentral:function(){this.zip64EndOfCentralSize=this.reader.readInt(8),this.reader.skip(4),this.diskNumber=this.reader.readInt(4),this.diskWithCentralDirStart=this.reader.readInt(4),this.centralDirRecordsOnThisDisk=this.reader.readInt(8),this.centralDirRecords=this.reader.readInt(8),this.centralDirSize=this.reader.readInt(8),this.centralDirOffset=this.reader.readInt(8),this.zip64ExtensibleData={};var e=this.zip64EndOfCentralSize-44,t=0,n,r,i;while(t<e)n=this.reader.readInt(2),r=this.reader.readInt(4),i=this.reader.readData(r),this.zip64ExtensibleData[n]={id:n,length:r,value:i}},readBlockZip64EndOfCentralLocator:function(){if(this.diskWithZip64CentralDirStart=this.reader.readInt(4),this.relativeOffsetEndOfZip64CentralDir=this.reader.readInt(8),this.disksCount=this.reader.readInt(4),this.disksCount>1)throw Error("Multi-volumes zip are not supported")},readLocalFiles:function(){var e,t;for(e=0;e<this.files.length;e++)t=this.files[e],this.reader.setIndex(t.localHeaderOffset),this.checkSignature(cn.LOCAL_FILE_HEADER),t.readLocalPart(this.reader),t.handleUTF8(),t.processAttributes()},readCentralDir:function(){var e;this.reader.setIndex(this.centralDirOffset);while(this.reader.readAndCheckSignature(cn.CENTRAL_FILE_HEADER))e=new tV({zip64:this.zip64},this.loadOptions),e.readCentralPart(this.reader),this.files.push(e);if(this.centralDirRecords!==this.files.length){if(this.centralDirRecords!==0&&this.files.length===0)throw Error("Corrupted zip or bug: expected "+this.centralDirRecords+" records in central dir, got "+this.files.length)}},readEndOfCentral:function(){var e=this.reader.lastIndexOfSignature(cn.CENTRAL_DIRECTORY_END);if(e<0){var t=!this.isSignature(0,cn.LOCAL_FILE_HEADER);if(t)throw Error("Can't find end of central directory : is this a zip file ? If it is, see https://stuk.github.io/jszip/documentation/howto/read_zip.html");else throw Error("Corrupted zip: can't find end of central directory")}this.reader.setIndex(e);var n=e;if(this.checkSignature(cn.CENTRAL_DIRECTORY_END),this.readBlockEndOfCentral(),this.diskNumber===rr.MAX_VALUE_16BITS||this.diskWithCentralDirStart===rr.MAX_VALUE_16BITS||this.centralDirRecordsOnThisDisk===rr.MAX_VALUE_16BITS||this.centralDirRecords===rr.MAX_VALUE_16BITS||this.centralDirSize===rr.MAX_VALUE_32BITS||this.centralDirOffset===rr.MAX_VALUE_32BITS){if(this.zip64=!0,e=this.reader.lastIndexOfSignature(cn.ZIP64_CENTRAL_DIRECTORY_LOCATOR),e<0)throw Error("Corrupted zip: can't find the ZIP64 end of central directory locator");if(this.reader.setIndex(e),this.checkSignature(cn.ZIP64_CENTRAL_DIRECTORY_LOCATOR),this.readBlockZip64EndOfCentralLocator(),!this.isSignature(this.relativeOffsetEndOfZip64CentralDir,cn.ZIP64_CENTRAL_DIRECTORY_END)){if(this.relativeOffsetEndOfZip64CentralDir=this.reader.lastIndexOfSignature(cn.ZIP64_CENTRAL_DIRECTORY_END),this.relativeOffsetEndOfZip64CentralDir<0)throw Error("Corrupted zip: can't find the ZIP64 end of central directory")}this.reader.setIndex(this.relativeOffsetEndOfZip64CentralDir),this.checkSignature(cn.ZIP64_CENTRAL_DIRECTORY_END),this.readBlockZip64EndOfCentral()}var r=this.centralDirOffset+this.centralDirSize;if(this.zip64)r+=20,r+=12+this.zip64EndOfCentralSize;var i=n-r;if(i>0)if(this.isSignature(n,cn.CENTRAL_FILE_HEADER));else this.reader.zero=i;else if(i<0)throw Error("Corrupted zip: missing "+Math.abs(i)+" bytes.")},prepareReader:function(e){this.reader=eV(e)},load:function(e){this.prepareReader(e),this.readEndOfCentral(),this.readCentralDir(),this.readLocalFiles()}};OA.exports=FA});var NA=R(function(Kme,MA){var Sy=Pe(),cd=ko(),rV=Oo(),iV=PA(),oV=Sm(),IA=pa();function sV(e){return new cd.Promise(function(t,n){var r=e.decompressed.getContentWorker().pipe(new oV);r.on("error",function(i){n(i)}).on("end",function(){if(r.streamInfo.crc32!==e.decompressed.crc32)n(Error("Corrupted zip : CRC32 mismatch"));else t()}).resume()})}MA.exports=function(e,t){var n=this;if(t=Sy.extend(t||{},{base64:!1,checkCRC32:!1,optimizedBinaryString:!1,createFolders:!1,decodeFileName:rV.utf8decode}),IA.isNode&&IA.isStream(e))return cd.Promise.reject(Error("JSZip can't accept a stream when loading a zip file."));return Sy.prepareContent("the loaded zip file",e,!0,t.optimizedBinaryString,t.base64).then(function(r){var i=new iV(t);return i.load(r),i}).then(function(i){var o=[cd.Promise.resolve(i)],s=i.files;if(t.checkCRC32)for(var a=0;a<s.length;a++)o.push(sV(s[a]));return cd.Promise.all(o)}).then(function(i){var o=i.shift(),s=o.files;for(var a=0;a<s.length;a++){var c=s[a],u=c.fileNameStr,d=Sy.resolve(c.fileNameStr);if(n.file(d,c.decompressed,{binary:!0,optimizedBinaryString:!0,date:c.date,dir:c.dir,comment:c.fileCommentStr.length?c.fileCommentStr:null,unixPermissions:c.unixPermissions,dosPermissions:c.dosPermissions,createFolders:t.createFolders}),!c.dir)n.file(d).unsafeOriginalName=u}if(o.zipComment.length)n.comment=o.zipComment;return n})}});var LA=R(function(Zme,BA){function Vt(){if(!(this instanceof Vt))return new Vt;if(arguments.length)throw Error("The constructor with parameters has been removed in JSZip 3.0, please check the upgrade guide.");this.files=Object.create(null),this.comment=null,this.root="",this.clone=function(){var e=new Vt;for(var t in this)if(typeof this[t]!=="function")e[t]=this[t];return e}}Vt.prototype=hA();Vt.prototype.loadAsync=NA();Vt.support=Qn();Vt.defaults=Dm();Vt.version="3.10.1";Vt.loadAsync=function(e,t){return new Vt().loadAsync(e,t)};Vt.external=ko();BA.exports=Vt});var Cy=R(function(fV){var aV=TE(),cV=LA();fV.openArrayBuffer=uV;fV.splitPath=lV;fV.joinPath=dV;function uV(e){return cV.loadAsync(e).then(function(t){function n(s){return t.file(s)!==null}function r(s,a){return t.file(s).async("uint8array").then(function(c){if(a==="base64")return aV.fromByteArray(c);else if(a){var u=new TextDecoder(a);return u.decode(c)}else return c})}function i(s,a){t.file(s,a)}function o(){return t.generateAsync({type:"arraybuffer"})}return{exists:n,read:r,write:i,toArrayBuffer:o}})}function lV(e){var t=e.lastIndexOf("/");if(t===-1)return{dirname:"",basename:e};else return{dirname:e.substring(0,t),basename:e.substring(t+1)}}function dV(){var e=Array.prototype.filter.call(arguments,function(n){return n}),t=[];return e.forEach(function(n){if(/^\//.test(n))t=[n];else t.push(n)}),t.join("/")}});var Ay=R(function(yV){var ud=Me();yV.Element=Vo;yV.element=function(e,t,n){return new Vo(e,t,n)};yV.text=function(e){return{type:"text",value:e}};var WA=yV.emptyElement={first:function(){return null},firstOrEmpty:function(){return WA},attributes:{},children:[]};function Vo(e,t,n){this.type="element",this.name=e,this.attributes=t||{},this.children=n||[]}Vo.prototype.first=function(e){return ud.find(this.children,function(t){return t.name===e})};Vo.prototype.firstOrEmpty=function(e){return this.first(e)||WA};Vo.prototype.getElementsByTagName=function(e){var t=ud.filter(this.children,function(n){return n.name===e});return jA(t)};Vo.prototype.text=function(){if(this.children.length===0)return"";else if(this.children.length!==1||this.children[0].type!=="text")throw Error("Not implemented");return this.children[0].value};var mV={getElementsByTagName:function(e){return jA(ud.flatten(this.map(function(t){return t.getElementsByTagName(e)},!0)))}};function jA(e){return ud.extend(e,mV)}});var Xo=R(function(EV){function _V(e,t,n){if(n===void 0)n=Array.prototype;if(e&&typeof n.find==="function")return n.find.call(e,t);for(var r=0;r<e.length;r++)if(Object.prototype.hasOwnProperty.call(e,r)){var i=e[r];if(t.call(void 0,i,r,e))return i}}function ky(e,t){if(t===void 0)t=Object;return t&&typeof t.freeze==="function"?t.freeze(e):e}function wV(e,t){if(e===null||typeof e!=="object")throw TypeError("target is not an object");for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n))e[n]=t[n];return e}var qA=ky({HTML:"text/html",isHTML:function(e){return e===qA.HTML},XML_APPLICATION:"application/xml",XML_TEXT:"text/xml",XML_XHTML_APPLICATION:"application/xhtml+xml",XML_SVG_IMAGE:"image/svg+xml"}),$A=ky({HTML:"http://www.w3.org/1999/xhtml",isHTML:function(e){return e===$A.HTML},SVG:"http://www.w3.org/2000/svg",XML:"http://www.w3.org/XML/1998/namespace",XMLNS:"http://www.w3.org/2000/xmlns/"}),ld=/[A-Z_a-z\xC0-\xD6\xD8-\xF6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,Uy=new RegExp("[\\-\\.0-9"+ld.source.slice(1,-1)+"\\u00B7\\u0300-\\u036F\\u203F-\\u2040]"),DV=new RegExp("^"+ld.source+Uy.source+"*(?::"+ld.source+Uy.source+"*)?$");EV.assign=wV;EV.find=_V;EV.freeze=ky;EV.MIME_TYPE=qA;EV.NAMESPACE=$A;EV.nameStartChar=ld;EV.nameChar=Uy;EV.tagNamePattern=DV});var vd=R(function(VV){var Ry=Xo(),Fn=Ry.find,Ba=Ry.NAMESPACE,Ko=Ry.tagNamePattern;function OV(e){return e!==""}function PV(e){return e?e.split(/[\t\n\f\r ]+/).filter(OV):[]}function IV(e,t){if(!e.hasOwnProperty(t))e[t]=!0;return e}function HA(e){if(!e)return[];var t=PV(e);return Object.keys(t.reduce(IV,{}))}function MV(e){return function(t){return e&&e.indexOf(t)!==-1}}function Wa(e,t){for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n))t[n]=e[n]}function kt(e,t){var n=e.prototype;if(!(n instanceof t)){let i=function(){};var r=i;i.prototype=t.prototype,i=new i,Wa(n,i),e.prototype=n=i}if(n.constructor!=e){if(typeof e!="function")console.error("unknown Class:"+e);n.constructor=e}}var Rt={},Xt=Rt.ELEMENT_NODE=1,Zo=Rt.ATTRIBUTE_NODE=2,Na=Rt.TEXT_NODE=3,JA=Rt.CDATA_SECTION_NODE=4,QA=Rt.ENTITY_REFERENCE_NODE=5,NV=Rt.ENTITY_NODE=6,Fy=Rt.PROCESSING_INSTRUCTION_NODE=7,Oy=Rt.COMMENT_NODE=8,eU=Rt.DOCUMENT_NODE=9,tU=Rt.DOCUMENT_TYPE_NODE=10,ir=Rt.DOCUMENT_FRAGMENT_NODE=11,BV=Rt.NOTATION_NODE=12,ht={},Ye={},tye=ht.INDEX_SIZE_ERR=(Ye[1]="Index size error",1),nye=ht.DOMSTRING_SIZE_ERR=(Ye[2]="DOMString size error",2),Ut=ht.HIERARCHY_REQUEST_ERR=(Ye[3]="Hierarchy request error",3),rye=ht.WRONG_DOCUMENT_ERR=(Ye[4]="Wrong document",4),GA=ht.INVALID_CHARACTER_ERR=(Ye[5]="Invalid character",5),iye=ht.NO_DATA_ALLOWED_ERR=(Ye[6]="No data allowed",6),oye=ht.NO_MODIFICATION_ALLOWED_ERR=(Ye[7]="No modification allowed",7),nU=ht.NOT_FOUND_ERR=(Ye[8]="Not found",8),sye=ht.NOT_SUPPORTED_ERR=(Ye[9]="Not supported",9),zA=ht.INUSE_ATTRIBUTE_ERR=(Ye[10]="Attribute in use",10),un=ht.INVALID_STATE_ERR=(Ye[11]="Invalid state",11),aye=ht.SYNTAX_ERR=(Ye[12]="Syntax error",12),cye=ht.INVALID_MODIFICATION_ERR=(Ye[13]="Invalid modification",13),uye=ht.NAMESPACE_ERR=(Ye[14]="Invalid namespace",14),lye=ht.INVALID_ACCESS_ERR=(Ye[15]="Invalid access",15);function ue(e,t){if(t instanceof Error)var n=t;else if(n=this,Error.call(this,Ye[e]),this.message=Ye[e],Error.captureStackTrace)Error.captureStackTrace(this,ue);if(n.code=e,t)this.message=this.message+": "+t;return n}ue.prototype=Error.prototype;Wa(ht,ue);function or(){}or.prototype={length:0,item:function(e){return e>=0&&e<this.length?this[e]:null},toString:function(e,t,n){var r=!!n&&!!n.requireWellFormed;for(var i=[],o=0;o<this.length;o++)jy(this[o],i,e,t,null,r);return i.join("")},filter:function(e){return Array.prototype.filter.call(this,e)},indexOf:function(e){return Array.prototype.indexOf.call(this,e)}};function Yo(e,t){this._node=e,this._refresh=t,Py(this)}function Py(e){var t=e._node._inc||e._node.ownerDocument._inc;if(e._inc!==t){var n=e._refresh(e._node);if(gU(e,"length",n.length),!e.$$length||n.length<e.$$length){for(var r=n.length;r in e;r++)if(Object.prototype.hasOwnProperty.call(e,r))delete e[r]}Wa(n,e),e._inc=t}}Yo.prototype.item=function(e){return Py(this),this[e]||null};kt(Yo,or);function fd(){this._nameIndex=Object.create(null)}function rU(e,t){var n=e.length;while(n--)if(e[n]===t)return n}function LV(e,t){e._nameIndex[t.nodeName]=t}function iU(e,t){if(e._nameIndex[t.nodeName]===t)delete e._nameIndex[t.nodeName]}function VA(e,t,n,r){if(r)t[rU(t,r)]=n,iU(t,r);else t[t.length++]=n;if(LV(t,n),e){n.ownerElement=e;var i=e.ownerDocument;if(i)r&&aU(i,e,r),WV(i,e,n)}}function XA(e,t,n){var r=rU(t,n);if(r>=0){var i=t.length-1;while(r<i)t[r]=t[++r];if(t.length=i,iU(t,n),e){var o=e.ownerDocument;if(o)aU(o,e,n),n.ownerElement=null}}else throw new ue(nU,Error(e.tagName+"@"+n))}fd.prototype={length:0,item:or.prototype.item,getNamedItem:function(e){var t=this.length;while(t--){var n=this[t];if(n.nodeName==e)return n}},setNamedItem:function(e){var t=e.ownerElement;if(t&&t!=this._ownerElement)throw new ue(zA);var n=this._nameIndex[e.nodeName];return VA(this._ownerElement,this,e,n),n},setNamedItemNS:function(e){var t=e.ownerElement,n;if(t&&t!=this._ownerElement)throw new ue(zA);return n=this.getNamedItemNS(e.namespaceURI,e.localName),VA(this._ownerElement,this,e,n),n},removeNamedItem:function(e){var t=this.getNamedItem(e);return XA(this._ownerElement,this,t),t},removeNamedItemNS:function(e,t){var n=this.getNamedItemNS(e,t);return XA(this._ownerElement,this,n),n},getNamedItemNS:function(e,t){var n=this.length;while(n--){var r=this[n];if(r.localName==t&&r.namespaceURI==e)return r}return null}};function oU(){}oU.prototype={hasFeature:function(e,t){return!0},createDocument:function(e,t,n){var r=new ja;if(r.implementation=this,r.childNodes=new or,r.doctype=n||null,n)r.appendChild(n);if(t){var i=r.createElementNS(e,t);r.appendChild(i)}return r},createDocumentType:function(e,t,n){var r=new yd;return r.name=e,r.nodeName=e,r.publicId=t||"",r.systemId=n||"",r}};function _e(){}_e.prototype={firstChild:null,lastChild:null,previousSibling:null,nextSibling:null,attributes:null,parentNode:null,childNodes:null,ownerDocument:null,nodeValue:null,namespaceURI:null,prefix:null,localName:null,insertBefore:function(e,t){return pd(this,e,t)},replaceChild:function(e,t){if(pd(this,e,t,uU),t)this.removeChild(t)},removeChild:function(e){return cU(this,e)},appendChild:function(e){return this.insertBefore(e,null)},hasChildNodes:function(){return this.firstChild!=null},cloneNode:function(e){return pU(this.ownerDocument||this,this,e)},normalize:function(){Ze(this,null,{enter:function(e){var t=e.firstChild;while(t){var n=t.nextSibling;if(n!==null&&n.nodeType===Na&&t.nodeType===Na){var r=[],i=n;while(i!==null&&i.nodeType===Na)r.push(i.data),i=i.nextSibling;var o=t.nextSibling;while(o!==i){var s=o.nextSibling;o.parentNode=null,o.previousSibling=null,o.nextSibling=null,o=s}if(t.nextSibling=i,i!==null)i.previousSibling=t;else e.lastChild=t;t.appendData(r.join("")),md(e.ownerDocument,e),t=i}else t=n}return!0}})},isSupported:function(e,t){return this.ownerDocument.implementation.hasFeature(e,t)},hasAttributes:function(){return this.attributes.length>0},lookupPrefix:function(e){var t=this;while(t){var n=t._nsMap;if(n){for(var r in n)if(Object.prototype.hasOwnProperty.call(n,r)&&n[r]===e)return r}t=t.nodeType==Zo?t.ownerDocument:t.parentNode}return null},lookupNamespaceURI:function(e){var t=this;while(t){var n=t._nsMap;if(n){if(Object.prototype.hasOwnProperty.call(n,e))return n[e]}t=t.nodeType==Zo?t.ownerDocument:t.parentNode}return null},isDefaultNamespace:function(e){var t=this.lookupPrefix(e);return t==null}};function sU(e){return e=="<"&&"&lt;"||e==">"&&"&gt;"||e=="&"&&"&amp;"||e=='"'&&"&quot;"||"&#"+e.charCodeAt()+";"}Wa(Rt,_e);Wa(Rt,_e.prototype);function hd(e,t){return Ze(e,null,{enter:function(n){return t(n)?Ze.STOP:!0}})===Ze.STOP}function Ze(e,t,n){var r=[{node:e,context:t,phase:Ze.ENTER}];while(r.length>0){var i=r.pop();if(i.phase===Ze.ENTER){var o=n.enter(i.node,i.context);if(o===Ze.STOP)return Ze.STOP;if(r.push({node:i.node,context:o,phase:Ze.EXIT}),o===null||o===void 0)continue;var s=i.node.lastChild;while(s)r.push({node:s,context:o,phase:Ze.ENTER}),s=s.previousSibling}else if(n.exit)n.exit(i.node,i.context)}}Ze.STOP=Symbol("walkDOM.STOP");Ze.ENTER=0;Ze.EXIT=1;function ja(){this.ownerDocument=this}function WV(e,t,n){e&&e._inc++;var r=n.namespaceURI;if(r===Ba.XMLNS)t._nsMap[n.prefix?n.localName:""]=n.value}function aU(e,t,n,r){e&&e._inc++;var i=n.namespaceURI;if(i===Ba.XMLNS)delete t._nsMap[n.prefix?n.localName:""]}function md(e,t,n){if(e&&e._inc){e._inc++;var r=t.childNodes;if(n)r[r.length++]=n;else{var i=t.firstChild,o=0;while(i)r[o++]=i,i=i.nextSibling;r.length=o,delete r[r.length]}}}function cU(e,t){var{previousSibling:n,nextSibling:r}=t;if(n)n.nextSibling=r;else e.firstChild=r;if(r)r.previousSibling=n;else e.lastChild=n;return t.parentNode=null,t.previousSibling=null,t.nextSibling=null,md(e.ownerDocument,e),t}function jV(e){return e&&(e.nodeType===_e.DOCUMENT_NODE||e.nodeType===_e.DOCUMENT_FRAGMENT_NODE||e.nodeType===_e.ELEMENT_NODE)}function qV(e){return e&&(On(e)||Iy(e)||sr(e)||e.nodeType===_e.DOCUMENT_FRAGMENT_NODE||e.nodeType===_e.COMMENT_NODE||e.nodeType===_e.PROCESSING_INSTRUCTION_NODE)}function sr(e){return e&&e.nodeType===_e.DOCUMENT_TYPE_NODE}function On(e){return e&&e.nodeType===_e.ELEMENT_NODE}function Iy(e){return e&&e.nodeType===_e.TEXT_NODE}function KA(e,t){var n=e.childNodes||[];if(Fn(n,On)||sr(t))return!1;var r=Fn(n,sr);return!(t&&r&&n.indexOf(r)>n.indexOf(t))}function ZA(e,t){var n=e.childNodes||[];function r(o){return On(o)&&o!==t}if(Fn(n,r))return!1;var i=Fn(n,sr);return!(t&&i&&n.indexOf(i)>n.indexOf(t))}function $V(e,t,n){if(!jV(e))throw new ue(Ut,"Unexpected parent node type "+e.nodeType);if(n&&n.parentNode!==e)throw new ue(nU,"child not in parent");if(!qV(t)||sr(t)&&e.nodeType!==_e.DOCUMENT_NODE)throw new ue(Ut,"Unexpected node type "+t.nodeType+" for parent node type "+e.nodeType)}function HV(e,t,n){var r=e.childNodes||[],i=t.childNodes||[];if(t.nodeType===_e.DOCUMENT_FRAGMENT_NODE){var o=i.filter(On);if(o.length>1||Fn(i,Iy))throw new ue(Ut,"More than one element or text in fragment");if(o.length===1&&!KA(e,n))throw new ue(Ut,"Element in fragment can not be inserted before doctype")}if(On(t)){if(!KA(e,n))throw new ue(Ut,"Only one element can be added and only after doctype")}if(sr(t)){if(Fn(r,sr))throw new ue(Ut,"Only one doctype is allowed");var s=Fn(r,On);if(n&&r.indexOf(s)<r.indexOf(n))throw new ue(Ut,"Doctype can only be inserted before an element");if(!n&&s)throw new ue(Ut,"Doctype can not be appended since element is present")}}function uU(e,t,n){var r=e.childNodes||[],i=t.childNodes||[];if(t.nodeType===_e.DOCUMENT_FRAGMENT_NODE){var o=i.filter(On);if(o.length>1||Fn(i,Iy))throw new ue(Ut,"More than one element or text in fragment");if(o.length===1&&!ZA(e,n))throw new ue(Ut,"Element in fragment can not be inserted before doctype")}if(On(t)){if(!ZA(e,n))throw new ue(Ut,"Only one element can be added and only after doctype")}if(sr(t)){let c=function(u){return sr(u)&&u!==n};var a=c;if(Fn(r,c))throw new ue(Ut,"Only one doctype is allowed");var s=Fn(r,On);if(n&&r.indexOf(s)<r.indexOf(n))throw new ue(Ut,"Doctype can only be inserted before an element")}}function pd(e,t,n,r){if($V(e,t,n),e.nodeType===_e.DOCUMENT_NODE)(r||HV)(e,t,n);var i=t.parentNode;if(i)i.removeChild(t);if(t.nodeType===ir){var o=t.firstChild;if(o==null)return t;var s=t.lastChild}else o=s=t;var a=n?n.previousSibling:e.lastChild;if(o.previousSibling=a,s.nextSibling=n,a)a.nextSibling=o;else e.firstChild=o;if(n==null)e.lastChild=s;else n.previousSibling=s;do{o.parentNode=e;var c=e.ownerDocument||e;La(o,c)}while(o!==s&&(o=o.nextSibling));if(md(e.ownerDocument||e,e),t.nodeType==ir)t.firstChild=t.lastChild=null;return t}function La(e,t){if(e.ownerDocument===t)return;if(e.ownerDocument=t,e.nodeType===Xt&&e.attributes)for(var n=0;n<e.attributes.length;n++){var r=e.attributes.item(n);if(r)r.ownerDocument=t}var i=e.firstChild;while(i)La(i,t),i=i.nextSibling}function GV(e,t){if(t.parentNode)t.parentNode.removeChild(t);if(t.parentNode=e,t.previousSibling=e.lastChild,t.nextSibling=null,t.previousSibling)t.previousSibling.nextSibling=t;else e.firstChild=t;e.lastChild=t,md(e.ownerDocument,e,t);var n=e.ownerDocument||e;return La(t,n),t}ja.prototype={nodeName:"#document",nodeType:eU,doctype:null,documentElement:null,_inc:1,insertBefore:function(e,t){if(e.nodeType==ir){var n=e.firstChild;while(n){var r=n.nextSibling;this.insertBefore(n,t),n=r}return e}if(pd(this,e,t),La(e,this),this.documentElement===null&&e.nodeType===Xt)this.documentElement=e;return e},removeChild:function(e){if(this.documentElement==e)this.documentElement=null;return cU(this,e)},replaceChild:function(e,t){if(pd(this,e,t,uU),La(e,this),t)this.removeChild(t);if(On(e))this.documentElement=e},importNode:function(e,t){return zV(this,e,t)},getElementById:function(e){var t=null;return hd(this.documentElement,function(n){if(n.nodeType==Xt){if(n.getAttribute("id")==e)return t=n,!0}}),t},getElementsByClassName:function(e){var t=HA(e);return new Yo(this,function(n){var r=[];if(t.length>0)hd(n.documentElement,function(i){if(i!==n&&i.nodeType===Xt){var o=i.getAttribute("class");if(o){var s=e===o;if(!s){var a=HA(o);s=t.every(MV(a))}if(s)r.push(i)}}});return r})},createElement:function(e){var t=new Li;t.ownerDocument=this,t.nodeName=e,t.tagName=e,t.localName=e,t.childNodes=new or;var n=t.attributes=new fd;return n._ownerElement=t,t},createDocumentFragment:function(){var e=new bd;return e.ownerDocument=this,e.childNodes=new or,e},createTextNode:function(e){var t=new My;return t.ownerDocument=this,t.appendData(e),t},createComment:function(e){var t=new Ny;return t.ownerDocument=this,t.appendData(e),t},createCDATASection:function(e){if(e.indexOf("]]>")!==-1)throw new ue(GA,'data contains "]]>"');var t=new By;return t.ownerDocument=this,t.appendData(e),t},createProcessingInstruction:function(e,t){var n=new Wy;return n.ownerDocument=this,n.tagName=n.nodeName=n.target=e,n.nodeValue=n.data=t,n},createAttribute:function(e){var t=new gd;return t.ownerDocument=this,t.name=e,t.nodeName=e,t.localName=e,t.specified=!0,t},createEntityReference:function(e){if(!Ko.test(e))throw new ue(GA,'not a valid xml name "'+e+'"');var t=new Ly;return t.ownerDocument=this,t.nodeName=e,t},createElementNS:function(e,t){var n=new Li,r=t.split(":"),i=n.attributes=new fd;if(n.childNodes=new or,n.ownerDocument=this,n.nodeName=t,n.tagName=t,n.namespaceURI=e,r.length==2)n.prefix=r[0],n.localName=r[1];else n.localName=t;return i._ownerElement=n,n},createAttributeNS:function(e,t){var n=new gd,r=t.split(":");if(n.ownerDocument=this,n.nodeName=t,n.name=t,n.namespaceURI=e,n.specified=!0,r.length==2)n.prefix=r[0],n.localName=r[1];else n.localName=t;return n}};kt(ja,_e);function Li(){this._nsMap={}}Li.prototype={nodeType:Xt,hasAttribute:function(e){return this.getAttributeNode(e)!=null},getAttribute:function(e){var t=this.getAttributeNode(e);return t&&t.value||""},getAttributeNode:function(e){return this.attributes.getNamedItem(e)},setAttribute:function(e,t){var n=this.ownerDocument.createAttribute(e);n.value=n.nodeValue=""+t,this.setAttributeNode(n)},removeAttribute:function(e){var t=this.getAttributeNode(e);t&&this.removeAttributeNode(t)},appendChild:function(e){if(e.nodeType===ir)return this.insertBefore(e,null);else return GV(this,e)},setAttributeNode:function(e){return this.attributes.setNamedItem(e)},setAttributeNodeNS:function(e){return this.attributes.setNamedItemNS(e)},removeAttributeNode:function(e){return this.attributes.removeNamedItem(e.nodeName)},removeAttributeNS:function(e,t){var n=this.getAttributeNodeNS(e,t);n&&this.removeAttributeNode(n)},hasAttributeNS:function(e,t){return this.getAttributeNodeNS(e,t)!=null},getAttributeNS:function(e,t){var n=this.getAttributeNodeNS(e,t);return n&&n.value||""},setAttributeNS:function(e,t,n){var r=this.ownerDocument.createAttributeNS(e,t);r.value=r.nodeValue=""+n,this.setAttributeNode(r)},getAttributeNodeNS:function(e,t){return this.attributes.getNamedItemNS(e,t)},getElementsByTagName:function(e){return new Yo(this,function(t){var n=[];return hd(t,function(r){if(r!==t&&r.nodeType==Xt&&(e==="*"||r.tagName==e))n.push(r)}),n})},getElementsByTagNameNS:function(e,t){return new Yo(this,function(n){var r=[];return hd(n,function(i){if(i!==n&&i.nodeType===Xt&&(e==="*"||i.namespaceURI===e)&&(t==="*"||i.localName==t))r.push(i)}),r})}};ja.prototype.getElementsByTagName=Li.prototype.getElementsByTagName;ja.prototype.getElementsByTagNameNS=Li.prototype.getElementsByTagNameNS;kt(Li,_e);function gd(){}gd.prototype.nodeType=Zo;kt(gd,_e);function qa(){}qa.prototype={data:"",substringData:function(e,t){return this.data.substring(e,e+t)},appendData:function(e){e=this.data+e,this.nodeValue=this.data=e,this.length=e.length},insertData:function(e,t){this.replaceData(e,0,t)},appendChild:function(e){throw Error(Ye[Ut])},deleteData:function(e,t){this.replaceData(e,t,"")},replaceData:function(e,t,n){var r=this.data.substring(0,e),i=this.data.substring(e+t);n=r+n+i,this.nodeValue=this.data=n,this.length=n.length}};kt(qa,_e);function My(){}My.prototype={nodeName:"#text",nodeType:Na,splitText:function(e){var t=this.data,n=t.substring(e);t=t.substring(0,e),this.data=this.nodeValue=t,this.length=t.length;var r=this.ownerDocument.createTextNode(n);if(this.parentNode)this.parentNode.insertBefore(r,this.nextSibling);return r}};kt(My,qa);function Ny(){}Ny.prototype={nodeName:"#comment",nodeType:Oy};kt(Ny,qa);function By(){}By.prototype={nodeName:"#cdata-section",nodeType:JA};kt(By,qa);function yd(){}yd.prototype.nodeType=tU;kt(yd,_e);function lU(){}lU.prototype.nodeType=BV;kt(lU,_e);function dU(){}dU.prototype.nodeType=NV;kt(dU,_e);function Ly(){}Ly.prototype.nodeType=QA;kt(Ly,_e);function bd(){}bd.prototype.nodeName="#document-fragment";bd.prototype.nodeType=ir;kt(bd,_e);function Wy(){}Wy.prototype.nodeType=Fy;kt(Wy,_e);function fU(){}fU.prototype.serializeToString=function(e,t,n,r){return hU.call(e,t,n,r)};_e.prototype.toString=hU;function hU(e,t,n){var r=!!n&&!!n.requireWellFormed,i=[],o=this.nodeType==9&&this.documentElement||this,s=o.prefix,a=o.namespaceURI;if(a&&s==null){var s=o.lookupPrefix(a);if(s==null)var c=[{namespace:a,prefix:null}]}return jy(this,i,e,t,c,r),i.join("")}function YA(e,t,n){var r=e.prefix||"",i=e.namespaceURI;if(!i)return!1;if(r==="xml"&&i===Ba.XML||i===Ba.XMLNS)return!1;var o=n.length;while(o--){var s=n[o];if(s.prefix===r)return s.namespace!==i}return!0}function dd(e,t,n,r){if(r&&!Ko.test(t))throw new ue(un,'The attribute name "'+t+'" is not a valid XML QName');e.push(" ",t,'="',n.replace(/[<>&"\t\n\r]/g,sU),'"')}function jy(e,t,n,r,i,o){if(!i)i=[];Ze(e,{ns:i,isHTML:n},{enter:function(s,a){var{ns:c,isHTML:u}=a;if(r)if(s=r(s),s){if(typeof s=="string")return t.push(s),null}else return null;switch(s.nodeType){case Xt:var d=s.attributes,f=d.length,h=s.tagName;u=Ba.isHTML(s.namespaceURI)||u;var p=h;if(!u&&!s.prefix&&s.namespaceURI){var g;for(var y=0;y<d.length;y++)if(d.item(y).name==="xmlns"){g=d.item(y).value;break}if(!g)for(var v=c.length-1;v>=0;v--){var b=c[v];if(b.prefix===""&&b.namespace===s.namespaceURI){g=b.namespace;break}}if(g!==s.namespaceURI)for(var v=c.length-1;v>=0;v--){var b=c[v];if(b.namespace===s.namespaceURI){if(b.prefix)p=b.prefix+":"+h;break}}}if(o&&!Ko.test(p))throw new ue(un,'The element name "'+p+'" is not a valid XML QName');t.push("<",p);var _=c.slice();for(var m=0;m<f;m++){var x=d.item(m);if(x.prefix=="xmlns")_.push({prefix:x.localName,namespace:x.value});else if(x.nodeName=="xmlns")_.push({prefix:"",namespace:x.value})}for(var m=0;m<f;m++){var x=d.item(m);if(YA(x,u,_)){var D=x.prefix||"",A=x.namespaceURI;dd(t,D?"xmlns:"+D:"xmlns",A,o),_.push({prefix:D,namespace:A})}var E=r?r(x):x;if(E)if(typeof E==="string")t.push(E);else dd(t,E.name,E.value,o)}if(h===p&&YA(s,u,_)){var U=s.prefix||"",A=s.namespaceURI;dd(t,U?"xmlns:"+U:"xmlns",A,o),_.push({prefix:U,namespace:A})}var C=s.firstChild;if(C||u&&!/^(?:meta|link|img|br|hr|input)$/i.test(h)){if(t.push(">"),u&&/^script$/i.test(h)){while(C){if(C.data)t.push(C.data);else jy(C,t,u,r,_.slice(),o);C=C.nextSibling}return t.push("</",h,">"),null}return{ns:_,isHTML:u,tag:p}}else return t.push("/>"),null;case eU:case ir:return{ns:c.slice(),isHTML:u,tag:null};case Zo:return dd(t,s.name,s.value,o),null;case Na:return t.push(s.data.replace(/[<&>]/g,sU)),null;case JA:if(o&&s.data.indexOf("]]>")!==-1)throw new ue(un,'The CDATASection data contains "]]>"');return t.push("<![CDATA[",s.data.replace(/]]>/g,"]]]]><![CDATA[>"),"]]>"),null;case Oy:if(o&&s.data.indexOf("-->")!==-1)throw new ue(un,'The comment node data contains "-->"');return t.push("<!--",s.data,"-->"),null;case tU:if(o){if(!Ko.test(s.name))throw new ue(un,'The doctype name "'+s.name+'" is not a valid XML Name');if(s.publicId&&!/^("[\x20\r\na-zA-Z0-9\-()+,.\/:=?;!*#@$_%']*"|'[\x20\r\na-zA-Z0-9\-()+,.\/:=?;!*#@$_%'"]*')$/.test(s.publicId))throw new ue(un,"DocumentType publicId is not a valid PubidLiteral");if(s.systemId&&!/^("[^"]*"|'[^']*')$/.test(s.systemId))throw new ue(un,"DocumentType systemId is not a valid SystemLiteral");if(s.internalSubset&&s.internalSubset.indexOf("]>")!==-1)throw new ue(un,'DocumentType internalSubset contains "]>"')}var{publicId:N,systemId:F}=s;if(t.push("<!DOCTYPE ",s.name),N){if(t.push(" PUBLIC ",N),F&&F!=".")t.push(" ",F);t.push(">")}else if(F&&F!=".")t.push(" SYSTEM ",F,">");else{var S=s.internalSubset;if(S)t.push(" [",S,"]");t.push(">")}return null;case Fy:if(o){if(!Ko.test(s.target)||s.target.indexOf(":")!==-1||s.target.toLowerCase()==="xml")throw new ue(un,'The processing instruction target "'+s.target+'" is not a valid XML NCName or is reserved');if(s.data.indexOf("?>")!==-1)throw new ue(un,'The ProcessingInstruction data contains "?>"')}return t.push("<?",s.target," ",s.data,"?>"),null;case QA:if(o&&!Ko.test(s.nodeName))throw new ue(un,'The entity reference name "'+s.nodeName+'" is not a valid XML Name');return t.push("&",s.nodeName,";"),null;default:return t.push("??",s.nodeName),null}},exit:function(s,a){if(a&&a.tag)t.push("</",a.tag,">")}})}function zV(e,t,n){var r;return Ze(t,null,{enter:function(i,o){var s=i.cloneNode(!1);if(s.ownerDocument=e,s.parentNode=null,o===null)r=s;else o.appendChild(s);var a=i.nodeType===Zo||n;return a?s:null}}),r}function pU(e,t,n){var r;return Ze(t,null,{enter:function(i,o){var s=new i.constructor;for(var a in i)if(Object.prototype.hasOwnProperty.call(i,a)){var c=i[a];if(typeof c!="object"){if(c!=s[a])s[a]=c}}if(i.childNodes)s.childNodes=new or;s.ownerDocument=e;var u=n;switch(s.nodeType){case Xt:var d=i.attributes,f=s.attributes=new fd,h=d.length;f._ownerElement=s;for(var p=0;p<h;p++)s.setAttributeNode(pU(e,d.item(p),!0));break;case Zo:u=!0}if(o!==null)o.appendChild(s);else r=s;return u?s:null}}),r}function gU(e,t,n){e[t]=n}try{if(Object.defineProperty)Object.defineProperty(Yo.prototype,"length",{get:function(){return Py(this),this.$$length}}),Object.defineProperty(_e.prototype,"textContent",{get:function(){if(this.nodeType===Xt||this.nodeType===ir){var e=[];return Ze(this,null,{enter:function(t){if(t.nodeType===Xt||t.nodeType===ir)return!0;if(t.nodeType===Fy||t.nodeType===Oy)return null;e.push(t.nodeValue)}}),e.join("")}return this.nodeValue},set:function(e){switch(this.nodeType){case Xt:case ir:while(this.firstChild)this.removeChild(this.firstChild);if(e||String(e))this.appendChild(this.ownerDocument.createTextNode(e));break;default:this.data=e,this.value=e,this.nodeValue=e}}}),gU=function(e,t,n){e["$$"+t]=n}}catch(e){}VV.DocumentType=yd;VV.DOMException=ue;VV.DOMImplementation=oU;VV.Element=Li;VV.Node=_e;VV.NodeList=or;VV.walkDOM=Ze;VV.XMLSerializer=fU});var bU=R(function(nX){var mU=Xo().freeze;nX.XML_ENTITIES=mU({amp:"&",apos:"'",gt:">",lt:"<",quot:'"'});nX.HTML_ENTITIES=mU({Aacute:"Á",aacute:"á",Abreve:"Ă",abreve:"ă",ac:"∾",acd:"∿",acE:"∾̳",Acirc:"Â",acirc:"â",acute:"´",Acy:"А",acy:"а",AElig:"Æ",aelig:"æ",af:"⁡",Afr:"\uD835\uDD04",afr:"\uD835\uDD1E",Agrave:"À",agrave:"à",alefsym:"ℵ",aleph:"ℵ",Alpha:"Α",alpha:"α",Amacr:"Ā",amacr:"ā",amalg:"⨿",AMP:"&",amp:"&",And:"⩓",and:"∧",andand:"⩕",andd:"⩜",andslope:"⩘",andv:"⩚",ang:"∠",ange:"⦤",angle:"∠",angmsd:"∡",angmsdaa:"⦨",angmsdab:"⦩",angmsdac:"⦪",angmsdad:"⦫",angmsdae:"⦬",angmsdaf:"⦭",angmsdag:"⦮",angmsdah:"⦯",angrt:"∟",angrtvb:"⊾",angrtvbd:"⦝",angsph:"∢",angst:"Å",angzarr:"⍼",Aogon:"Ą",aogon:"ą",Aopf:"\uD835\uDD38",aopf:"\uD835\uDD52",ap:"≈",apacir:"⩯",apE:"⩰",ape:"≊",apid:"≋",apos:"'",ApplyFunction:"⁡",approx:"≈",approxeq:"≊",Aring:"Å",aring:"å",Ascr:"\uD835\uDC9C",ascr:"\uD835\uDCB6",Assign:"≔",ast:"*",asymp:"≈",asympeq:"≍",Atilde:"Ã",atilde:"ã",Auml:"Ä",auml:"ä",awconint:"∳",awint:"⨑",backcong:"≌",backepsilon:"϶",backprime:"‵",backsim:"∽",backsimeq:"⋍",Backslash:"∖",Barv:"⫧",barvee:"⊽",Barwed:"⌆",barwed:"⌅",barwedge:"⌅",bbrk:"⎵",bbrktbrk:"⎶",bcong:"≌",Bcy:"Б",bcy:"б",bdquo:"„",becaus:"∵",Because:"∵",because:"∵",bemptyv:"⦰",bepsi:"϶",bernou:"ℬ",Bernoullis:"ℬ",Beta:"Β",beta:"β",beth:"ℶ",between:"≬",Bfr:"\uD835\uDD05",bfr:"\uD835\uDD1F",bigcap:"⋂",bigcirc:"◯",bigcup:"⋃",bigodot:"⨀",bigoplus:"⨁",bigotimes:"⨂",bigsqcup:"⨆",bigstar:"★",bigtriangledown:"▽",bigtriangleup:"△",biguplus:"⨄",bigvee:"⋁",bigwedge:"⋀",bkarow:"⤍",blacklozenge:"⧫",blacksquare:"▪",blacktriangle:"▴",blacktriangledown:"▾",blacktriangleleft:"◂",blacktriangleright:"▸",blank:"␣",blk12:"▒",blk14:"░",blk34:"▓",block:"█",bne:"=⃥",bnequiv:"≡⃥",bNot:"⫭",bnot:"⌐",Bopf:"\uD835\uDD39",bopf:"\uD835\uDD53",bot:"⊥",bottom:"⊥",bowtie:"⋈",boxbox:"⧉",boxDL:"╗",boxDl:"╖",boxdL:"╕",boxdl:"┐",boxDR:"╔",boxDr:"╓",boxdR:"╒",boxdr:"┌",boxH:"═",boxh:"─",boxHD:"╦",boxHd:"╤",boxhD:"╥",boxhd:"┬",boxHU:"╩",boxHu:"╧",boxhU:"╨",boxhu:"┴",boxminus:"⊟",boxplus:"⊞",boxtimes:"⊠",boxUL:"╝",boxUl:"╜",boxuL:"╛",boxul:"┘",boxUR:"╚",boxUr:"╙",boxuR:"╘",boxur:"└",boxV:"║",boxv:"│",boxVH:"╬",boxVh:"╫",boxvH:"╪",boxvh:"┼",boxVL:"╣",boxVl:"╢",boxvL:"╡",boxvl:"┤",boxVR:"╠",boxVr:"╟",boxvR:"╞",boxvr:"├",bprime:"‵",Breve:"˘",breve:"˘",brvbar:"¦",Bscr:"ℬ",bscr:"\uD835\uDCB7",bsemi:"⁏",bsim:"∽",bsime:"⋍",bsol:"\\",bsolb:"⧅",bsolhsub:"⟈",bull:"•",bullet:"•",bump:"≎",bumpE:"⪮",bumpe:"≏",Bumpeq:"≎",bumpeq:"≏",Cacute:"Ć",cacute:"ć",Cap:"⋒",cap:"∩",capand:"⩄",capbrcup:"⩉",capcap:"⩋",capcup:"⩇",capdot:"⩀",CapitalDifferentialD:"ⅅ",caps:"∩︀",caret:"⁁",caron:"ˇ",Cayleys:"ℭ",ccaps:"⩍",Ccaron:"Č",ccaron:"č",Ccedil:"Ç",ccedil:"ç",Ccirc:"Ĉ",ccirc:"ĉ",Cconint:"∰",ccups:"⩌",ccupssm:"⩐",Cdot:"Ċ",cdot:"ċ",cedil:"¸",Cedilla:"¸",cemptyv:"⦲",cent:"¢",CenterDot:"·",centerdot:"·",Cfr:"ℭ",cfr:"\uD835\uDD20",CHcy:"Ч",chcy:"ч",check:"✓",checkmark:"✓",Chi:"Χ",chi:"χ",cir:"○",circ:"ˆ",circeq:"≗",circlearrowleft:"↺",circlearrowright:"↻",circledast:"⊛",circledcirc:"⊚",circleddash:"⊝",CircleDot:"⊙",circledR:"®",circledS:"Ⓢ",CircleMinus:"⊖",CirclePlus:"⊕",CircleTimes:"⊗",cirE:"⧃",cire:"≗",cirfnint:"⨐",cirmid:"⫯",cirscir:"⧂",ClockwiseContourIntegral:"∲",CloseCurlyDoubleQuote:"”",CloseCurlyQuote:"’",clubs:"♣",clubsuit:"♣",Colon:"∷",colon:":",Colone:"⩴",colone:"≔",coloneq:"≔",comma:",",commat:"@",comp:"∁",compfn:"∘",complement:"∁",complexes:"ℂ",cong:"≅",congdot:"⩭",Congruent:"≡",Conint:"∯",conint:"∮",ContourIntegral:"∮",Copf:"ℂ",copf:"\uD835\uDD54",coprod:"∐",Coproduct:"∐",COPY:"©",copy:"©",copysr:"℗",CounterClockwiseContourIntegral:"∳",crarr:"↵",Cross:"⨯",cross:"✗",Cscr:"\uD835\uDC9E",cscr:"\uD835\uDCB8",csub:"⫏",csube:"⫑",csup:"⫐",csupe:"⫒",ctdot:"⋯",cudarrl:"⤸",cudarrr:"⤵",cuepr:"⋞",cuesc:"⋟",cularr:"↶",cularrp:"⤽",Cup:"⋓",cup:"∪",cupbrcap:"⩈",CupCap:"≍",cupcap:"⩆",cupcup:"⩊",cupdot:"⊍",cupor:"⩅",cups:"∪︀",curarr:"↷",curarrm:"⤼",curlyeqprec:"⋞",curlyeqsucc:"⋟",curlyvee:"⋎",curlywedge:"⋏",curren:"¤",curvearrowleft:"↶",curvearrowright:"↷",cuvee:"⋎",cuwed:"⋏",cwconint:"∲",cwint:"∱",cylcty:"⌭",Dagger:"‡",dagger:"†",daleth:"ℸ",Darr:"↡",dArr:"⇓",darr:"↓",dash:"‐",Dashv:"⫤",dashv:"⊣",dbkarow:"⤏",dblac:"˝",Dcaron:"Ď",dcaron:"ď",Dcy:"Д",dcy:"д",DD:"ⅅ",dd:"ⅆ",ddagger:"‡",ddarr:"⇊",DDotrahd:"⤑",ddotseq:"⩷",deg:"°",Del:"∇",Delta:"Δ",delta:"δ",demptyv:"⦱",dfisht:"⥿",Dfr:"\uD835\uDD07",dfr:"\uD835\uDD21",dHar:"⥥",dharl:"⇃",dharr:"⇂",DiacriticalAcute:"´",DiacriticalDot:"˙",DiacriticalDoubleAcute:"˝",DiacriticalGrave:"`",DiacriticalTilde:"˜",diam:"⋄",Diamond:"⋄",diamond:"⋄",diamondsuit:"♦",diams:"♦",die:"¨",DifferentialD:"ⅆ",digamma:"ϝ",disin:"⋲",div:"÷",divide:"÷",divideontimes:"⋇",divonx:"⋇",DJcy:"Ђ",djcy:"ђ",dlcorn:"⌞",dlcrop:"⌍",dollar:"$",Dopf:"\uD835\uDD3B",dopf:"\uD835\uDD55",Dot:"¨",dot:"˙",DotDot:"⃜",doteq:"≐",doteqdot:"≑",DotEqual:"≐",dotminus:"∸",dotplus:"∔",dotsquare:"⊡",doublebarwedge:"⌆",DoubleContourIntegral:"∯",DoubleDot:"¨",DoubleDownArrow:"⇓",DoubleLeftArrow:"⇐",DoubleLeftRightArrow:"⇔",DoubleLeftTee:"⫤",DoubleLongLeftArrow:"⟸",DoubleLongLeftRightArrow:"⟺",DoubleLongRightArrow:"⟹",DoubleRightArrow:"⇒",DoubleRightTee:"⊨",DoubleUpArrow:"⇑",DoubleUpDownArrow:"⇕",DoubleVerticalBar:"∥",DownArrow:"↓",Downarrow:"⇓",downarrow:"↓",DownArrowBar:"⤓",DownArrowUpArrow:"⇵",DownBreve:"̑",downdownarrows:"⇊",downharpoonleft:"⇃",downharpoonright:"⇂",DownLeftRightVector:"⥐",DownLeftTeeVector:"⥞",DownLeftVector:"↽",DownLeftVectorBar:"⥖",DownRightTeeVector:"⥟",DownRightVector:"⇁",DownRightVectorBar:"⥗",DownTee:"⊤",DownTeeArrow:"↧",drbkarow:"⤐",drcorn:"⌟",drcrop:"⌌",Dscr:"\uD835\uDC9F",dscr:"\uD835\uDCB9",DScy:"Ѕ",dscy:"ѕ",dsol:"⧶",Dstrok:"Đ",dstrok:"đ",dtdot:"⋱",dtri:"▿",dtrif:"▾",duarr:"⇵",duhar:"⥯",dwangle:"⦦",DZcy:"Џ",dzcy:"џ",dzigrarr:"⟿",Eacute:"É",eacute:"é",easter:"⩮",Ecaron:"Ě",ecaron:"ě",ecir:"≖",Ecirc:"Ê",ecirc:"ê",ecolon:"≕",Ecy:"Э",ecy:"э",eDDot:"⩷",Edot:"Ė",eDot:"≑",edot:"ė",ee:"ⅇ",efDot:"≒",Efr:"\uD835\uDD08",efr:"\uD835\uDD22",eg:"⪚",Egrave:"È",egrave:"è",egs:"⪖",egsdot:"⪘",el:"⪙",Element:"∈",elinters:"⏧",ell:"ℓ",els:"⪕",elsdot:"⪗",Emacr:"Ē",emacr:"ē",empty:"∅",emptyset:"∅",EmptySmallSquare:"◻",emptyv:"∅",EmptyVerySmallSquare:"▫",emsp:" ",emsp13:" ",emsp14:" ",ENG:"Ŋ",eng:"ŋ",ensp:" ",Eogon:"Ę",eogon:"ę",Eopf:"\uD835\uDD3C",eopf:"\uD835\uDD56",epar:"⋕",eparsl:"⧣",eplus:"⩱",epsi:"ε",Epsilon:"Ε",epsilon:"ε",epsiv:"ϵ",eqcirc:"≖",eqcolon:"≕",eqsim:"≂",eqslantgtr:"⪖",eqslantless:"⪕",Equal:"⩵",equals:"=",EqualTilde:"≂",equest:"≟",Equilibrium:"⇌",equiv:"≡",equivDD:"⩸",eqvparsl:"⧥",erarr:"⥱",erDot:"≓",Escr:"ℰ",escr:"ℯ",esdot:"≐",Esim:"⩳",esim:"≂",Eta:"Η",eta:"η",ETH:"Ð",eth:"ð",Euml:"Ë",euml:"ë",euro:"€",excl:"!",exist:"∃",Exists:"∃",expectation:"ℰ",ExponentialE:"ⅇ",exponentiale:"ⅇ",fallingdotseq:"≒",Fcy:"Ф",fcy:"ф",female:"♀",ffilig:"ffi",fflig:"ff",ffllig:"ffl",Ffr:"\uD835\uDD09",ffr:"\uD835\uDD23",filig:"fi",FilledSmallSquare:"◼",FilledVerySmallSquare:"▪",fjlig:"fj",flat:"♭",fllig:"fl",fltns:"▱",fnof:"ƒ",Fopf:"\uD835\uDD3D",fopf:"\uD835\uDD57",ForAll:"∀",forall:"∀",fork:"⋔",forkv:"⫙",Fouriertrf:"ℱ",fpartint:"⨍",frac12:"½",frac13:"⅓",frac14:"¼",frac15:"⅕",frac16:"⅙",frac18:"⅛",frac23:"⅔",frac25:"⅖",frac34:"¾",frac35:"⅗",frac38:"⅜",frac45:"⅘",frac56:"⅚",frac58:"⅝",frac78:"⅞",frasl:"⁄",frown:"⌢",Fscr:"ℱ",fscr:"\uD835\uDCBB",gacute:"ǵ",Gamma:"Γ",gamma:"γ",Gammad:"Ϝ",gammad:"ϝ",gap:"⪆",Gbreve:"Ğ",gbreve:"ğ",Gcedil:"Ģ",Gcirc:"Ĝ",gcirc:"ĝ",Gcy:"Г",gcy:"г",Gdot:"Ġ",gdot:"ġ",gE:"≧",ge:"≥",gEl:"⪌",gel:"⋛",geq:"≥",geqq:"≧",geqslant:"⩾",ges:"⩾",gescc:"⪩",gesdot:"⪀",gesdoto:"⪂",gesdotol:"⪄",gesl:"⋛︀",gesles:"⪔",Gfr:"\uD835\uDD0A",gfr:"\uD835\uDD24",Gg:"⋙",gg:"≫",ggg:"⋙",gimel:"ℷ",GJcy:"Ѓ",gjcy:"ѓ",gl:"≷",gla:"⪥",glE:"⪒",glj:"⪤",gnap:"⪊",gnapprox:"⪊",gnE:"≩",gne:"⪈",gneq:"⪈",gneqq:"≩",gnsim:"⋧",Gopf:"\uD835\uDD3E",gopf:"\uD835\uDD58",grave:"`",GreaterEqual:"≥",GreaterEqualLess:"⋛",GreaterFullEqual:"≧",GreaterGreater:"⪢",GreaterLess:"≷",GreaterSlantEqual:"⩾",GreaterTilde:"≳",Gscr:"\uD835\uDCA2",gscr:"ℊ",gsim:"≳",gsime:"⪎",gsiml:"⪐",Gt:"≫",GT:">",gt:">",gtcc:"⪧",gtcir:"⩺",gtdot:"⋗",gtlPar:"⦕",gtquest:"⩼",gtrapprox:"⪆",gtrarr:"⥸",gtrdot:"⋗",gtreqless:"⋛",gtreqqless:"⪌",gtrless:"≷",gtrsim:"≳",gvertneqq:"≩︀",gvnE:"≩︀",Hacek:"ˇ",hairsp:" ",half:"½",hamilt:"ℋ",HARDcy:"Ъ",hardcy:"ъ",hArr:"⇔",harr:"↔",harrcir:"⥈",harrw:"↭",Hat:"^",hbar:"ℏ",Hcirc:"Ĥ",hcirc:"ĥ",hearts:"♥",heartsuit:"♥",hellip:"…",hercon:"⊹",Hfr:"ℌ",hfr:"\uD835\uDD25",HilbertSpace:"ℋ",hksearow:"⤥",hkswarow:"⤦",hoarr:"⇿",homtht:"∻",hookleftarrow:"↩",hookrightarrow:"↪",Hopf:"ℍ",hopf:"\uD835\uDD59",horbar:"―",HorizontalLine:"─",Hscr:"ℋ",hscr:"\uD835\uDCBD",hslash:"ℏ",Hstrok:"Ħ",hstrok:"ħ",HumpDownHump:"≎",HumpEqual:"≏",hybull:"⁃",hyphen:"‐",Iacute:"Í",iacute:"í",ic:"⁣",Icirc:"Î",icirc:"î",Icy:"И",icy:"и",Idot:"İ",IEcy:"Е",iecy:"е",iexcl:"¡",iff:"⇔",Ifr:"ℑ",ifr:"\uD835\uDD26",Igrave:"Ì",igrave:"ì",ii:"ⅈ",iiiint:"⨌",iiint:"∭",iinfin:"⧜",iiota:"℩",IJlig:"IJ",ijlig:"ij",Im:"ℑ",Imacr:"Ī",imacr:"ī",image:"ℑ",ImaginaryI:"ⅈ",imagline:"ℐ",imagpart:"ℑ",imath:"ı",imof:"⊷",imped:"Ƶ",Implies:"⇒",in:"∈",incare:"℅",infin:"∞",infintie:"⧝",inodot:"ı",Int:"∬",int:"∫",intcal:"⊺",integers:"ℤ",Integral:"∫",intercal:"⊺",Intersection:"⋂",intlarhk:"⨗",intprod:"⨼",InvisibleComma:"⁣",InvisibleTimes:"⁢",IOcy:"Ё",iocy:"ё",Iogon:"Į",iogon:"į",Iopf:"\uD835\uDD40",iopf:"\uD835\uDD5A",Iota:"Ι",iota:"ι",iprod:"⨼",iquest:"¿",Iscr:"ℐ",iscr:"\uD835\uDCBE",isin:"∈",isindot:"⋵",isinE:"⋹",isins:"⋴",isinsv:"⋳",isinv:"∈",it:"⁢",Itilde:"Ĩ",itilde:"ĩ",Iukcy:"І",iukcy:"і",Iuml:"Ï",iuml:"ï",Jcirc:"Ĵ",jcirc:"ĵ",Jcy:"Й",jcy:"й",Jfr:"\uD835\uDD0D",jfr:"\uD835\uDD27",jmath:"ȷ",Jopf:"\uD835\uDD41",jopf:"\uD835\uDD5B",Jscr:"\uD835\uDCA5",jscr:"\uD835\uDCBF",Jsercy:"Ј",jsercy:"ј",Jukcy:"Є",jukcy:"є",Kappa:"Κ",kappa:"κ",kappav:"ϰ",Kcedil:"Ķ",kcedil:"ķ",Kcy:"К",kcy:"к",Kfr:"\uD835\uDD0E",kfr:"\uD835\uDD28",kgreen:"ĸ",KHcy:"Х",khcy:"х",KJcy:"Ќ",kjcy:"ќ",Kopf:"\uD835\uDD42",kopf:"\uD835\uDD5C",Kscr:"\uD835\uDCA6",kscr:"\uD835\uDCC0",lAarr:"⇚",Lacute:"Ĺ",lacute:"ĺ",laemptyv:"⦴",lagran:"ℒ",Lambda:"Λ",lambda:"λ",Lang:"⟪",lang:"⟨",langd:"⦑",langle:"⟨",lap:"⪅",Laplacetrf:"ℒ",laquo:"«",Larr:"↞",lArr:"⇐",larr:"←",larrb:"⇤",larrbfs:"⤟",larrfs:"⤝",larrhk:"↩",larrlp:"↫",larrpl:"⤹",larrsim:"⥳",larrtl:"↢",lat:"⪫",lAtail:"⤛",latail:"⤙",late:"⪭",lates:"⪭︀",lBarr:"⤎",lbarr:"⤌",lbbrk:"❲",lbrace:"{",lbrack:"[",lbrke:"⦋",lbrksld:"⦏",lbrkslu:"⦍",Lcaron:"Ľ",lcaron:"ľ",Lcedil:"Ļ",lcedil:"ļ",lceil:"⌈",lcub:"{",Lcy:"Л",lcy:"л",ldca:"⤶",ldquo:"“",ldquor:"„",ldrdhar:"⥧",ldrushar:"⥋",ldsh:"↲",lE:"≦",le:"≤",LeftAngleBracket:"⟨",LeftArrow:"←",Leftarrow:"⇐",leftarrow:"←",LeftArrowBar:"⇤",LeftArrowRightArrow:"⇆",leftarrowtail:"↢",LeftCeiling:"⌈",LeftDoubleBracket:"⟦",LeftDownTeeVector:"⥡",LeftDownVector:"⇃",LeftDownVectorBar:"⥙",LeftFloor:"⌊",leftharpoondown:"↽",leftharpoonup:"↼",leftleftarrows:"⇇",LeftRightArrow:"↔",Leftrightarrow:"⇔",leftrightarrow:"↔",leftrightarrows:"⇆",leftrightharpoons:"⇋",leftrightsquigarrow:"↭",LeftRightVector:"⥎",LeftTee:"⊣",LeftTeeArrow:"↤",LeftTeeVector:"⥚",leftthreetimes:"⋋",LeftTriangle:"⊲",LeftTriangleBar:"⧏",LeftTriangleEqual:"⊴",LeftUpDownVector:"⥑",LeftUpTeeVector:"⥠",LeftUpVector:"↿",LeftUpVectorBar:"⥘",LeftVector:"↼",LeftVectorBar:"⥒",lEg:"⪋",leg:"⋚",leq:"≤",leqq:"≦",leqslant:"⩽",les:"⩽",lescc:"⪨",lesdot:"⩿",lesdoto:"⪁",lesdotor:"⪃",lesg:"⋚︀",lesges:"⪓",lessapprox:"⪅",lessdot:"⋖",lesseqgtr:"⋚",lesseqqgtr:"⪋",LessEqualGreater:"⋚",LessFullEqual:"≦",LessGreater:"≶",lessgtr:"≶",LessLess:"⪡",lesssim:"≲",LessSlantEqual:"⩽",LessTilde:"≲",lfisht:"⥼",lfloor:"⌊",Lfr:"\uD835\uDD0F",lfr:"\uD835\uDD29",lg:"≶",lgE:"⪑",lHar:"⥢",lhard:"↽",lharu:"↼",lharul:"⥪",lhblk:"▄",LJcy:"Љ",ljcy:"љ",Ll:"⋘",ll:"≪",llarr:"⇇",llcorner:"⌞",Lleftarrow:"⇚",llhard:"⥫",lltri:"◺",Lmidot:"Ŀ",lmidot:"ŀ",lmoust:"⎰",lmoustache:"⎰",lnap:"⪉",lnapprox:"⪉",lnE:"≨",lne:"⪇",lneq:"⪇",lneqq:"≨",lnsim:"⋦",loang:"⟬",loarr:"⇽",lobrk:"⟦",LongLeftArrow:"⟵",Longleftarrow:"⟸",longleftarrow:"⟵",LongLeftRightArrow:"⟷",Longleftrightarrow:"⟺",longleftrightarrow:"⟷",longmapsto:"⟼",LongRightArrow:"⟶",Longrightarrow:"⟹",longrightarrow:"⟶",looparrowleft:"↫",looparrowright:"↬",lopar:"⦅",Lopf:"\uD835\uDD43",lopf:"\uD835\uDD5D",loplus:"⨭",lotimes:"⨴",lowast:"∗",lowbar:"_",LowerLeftArrow:"↙",LowerRightArrow:"↘",loz:"◊",lozenge:"◊",lozf:"⧫",lpar:"(",lparlt:"⦓",lrarr:"⇆",lrcorner:"⌟",lrhar:"⇋",lrhard:"⥭",lrm:"‎",lrtri:"⊿",lsaquo:"‹",Lscr:"ℒ",lscr:"\uD835\uDCC1",Lsh:"↰",lsh:"↰",lsim:"≲",lsime:"⪍",lsimg:"⪏",lsqb:"[",lsquo:"‘",lsquor:"‚",Lstrok:"Ł",lstrok:"ł",Lt:"≪",LT:"<",lt:"<",ltcc:"⪦",ltcir:"⩹",ltdot:"⋖",lthree:"⋋",ltimes:"⋉",ltlarr:"⥶",ltquest:"⩻",ltri:"◃",ltrie:"⊴",ltrif:"◂",ltrPar:"⦖",lurdshar:"⥊",luruhar:"⥦",lvertneqq:"≨︀",lvnE:"≨︀",macr:"¯",male:"♂",malt:"✠",maltese:"✠",Map:"⤅",map:"↦",mapsto:"↦",mapstodown:"↧",mapstoleft:"↤",mapstoup:"↥",marker:"▮",mcomma:"⨩",Mcy:"М",mcy:"м",mdash:"—",mDDot:"∺",measuredangle:"∡",MediumSpace:" ",Mellintrf:"ℳ",Mfr:"\uD835\uDD10",mfr:"\uD835\uDD2A",mho:"℧",micro:"µ",mid:"∣",midast:"*",midcir:"⫰",middot:"·",minus:"−",minusb:"⊟",minusd:"∸",minusdu:"⨪",MinusPlus:"∓",mlcp:"⫛",mldr:"…",mnplus:"∓",models:"⊧",Mopf:"\uD835\uDD44",mopf:"\uD835\uDD5E",mp:"∓",Mscr:"ℳ",mscr:"\uD835\uDCC2",mstpos:"∾",Mu:"Μ",mu:"μ",multimap:"⊸",mumap:"⊸",nabla:"∇",Nacute:"Ń",nacute:"ń",nang:"∠⃒",nap:"≉",napE:"⩰̸",napid:"≋̸",napos:"ʼn",napprox:"≉",natur:"♮",natural:"♮",naturals:"ℕ",nbsp:" ",nbump:"≎̸",nbumpe:"≏̸",ncap:"⩃",Ncaron:"Ň",ncaron:"ň",Ncedil:"Ņ",ncedil:"ņ",ncong:"≇",ncongdot:"⩭̸",ncup:"⩂",Ncy:"Н",ncy:"н",ndash:"–",ne:"≠",nearhk:"⤤",neArr:"⇗",nearr:"↗",nearrow:"↗",nedot:"≐̸",NegativeMediumSpace:"​",NegativeThickSpace:"​",NegativeThinSpace:"​",NegativeVeryThinSpace:"​",nequiv:"≢",nesear:"⤨",nesim:"≂̸",NestedGreaterGreater:"≫",NestedLessLess:"≪",NewLine:`
199
199
  `,nexist:"∄",nexists:"∄",Nfr:"\uD835\uDD11",nfr:"\uD835\uDD2B",ngE:"≧̸",nge:"≱",ngeq:"≱",ngeqq:"≧̸",ngeqslant:"⩾̸",nges:"⩾̸",nGg:"⋙̸",ngsim:"≵",nGt:"≫⃒",ngt:"≯",ngtr:"≯",nGtv:"≫̸",nhArr:"⇎",nharr:"↮",nhpar:"⫲",ni:"∋",nis:"⋼",nisd:"⋺",niv:"∋",NJcy:"Њ",njcy:"њ",nlArr:"⇍",nlarr:"↚",nldr:"‥",nlE:"≦̸",nle:"≰",nLeftarrow:"⇍",nleftarrow:"↚",nLeftrightarrow:"⇎",nleftrightarrow:"↮",nleq:"≰",nleqq:"≦̸",nleqslant:"⩽̸",nles:"⩽̸",nless:"≮",nLl:"⋘̸",nlsim:"≴",nLt:"≪⃒",nlt:"≮",nltri:"⋪",nltrie:"⋬",nLtv:"≪̸",nmid:"∤",NoBreak:"⁠",NonBreakingSpace:" ",Nopf:"ℕ",nopf:"\uD835\uDD5F",Not:"⫬",not:"¬",NotCongruent:"≢",NotCupCap:"≭",NotDoubleVerticalBar:"∦",NotElement:"∉",NotEqual:"≠",NotEqualTilde:"≂̸",NotExists:"∄",NotGreater:"≯",NotGreaterEqual:"≱",NotGreaterFullEqual:"≧̸",NotGreaterGreater:"≫̸",NotGreaterLess:"≹",NotGreaterSlantEqual:"⩾̸",NotGreaterTilde:"≵",NotHumpDownHump:"≎̸",NotHumpEqual:"≏̸",notin:"∉",notindot:"⋵̸",notinE:"⋹̸",notinva:"∉",notinvb:"⋷",notinvc:"⋶",NotLeftTriangle:"⋪",NotLeftTriangleBar:"⧏̸",NotLeftTriangleEqual:"⋬",NotLess:"≮",NotLessEqual:"≰",NotLessGreater:"≸",NotLessLess:"≪̸",NotLessSlantEqual:"⩽̸",NotLessTilde:"≴",NotNestedGreaterGreater:"⪢̸",NotNestedLessLess:"⪡̸",notni:"∌",notniva:"∌",notnivb:"⋾",notnivc:"⋽",NotPrecedes:"⊀",NotPrecedesEqual:"⪯̸",NotPrecedesSlantEqual:"⋠",NotReverseElement:"∌",NotRightTriangle:"⋫",NotRightTriangleBar:"⧐̸",NotRightTriangleEqual:"⋭",NotSquareSubset:"⊏̸",NotSquareSubsetEqual:"⋢",NotSquareSuperset:"⊐̸",NotSquareSupersetEqual:"⋣",NotSubset:"⊂⃒",NotSubsetEqual:"⊈",NotSucceeds:"⊁",NotSucceedsEqual:"⪰̸",NotSucceedsSlantEqual:"⋡",NotSucceedsTilde:"≿̸",NotSuperset:"⊃⃒",NotSupersetEqual:"⊉",NotTilde:"≁",NotTildeEqual:"≄",NotTildeFullEqual:"≇",NotTildeTilde:"≉",NotVerticalBar:"∤",npar:"∦",nparallel:"∦",nparsl:"⫽⃥",npart:"∂̸",npolint:"⨔",npr:"⊀",nprcue:"⋠",npre:"⪯̸",nprec:"⊀",npreceq:"⪯̸",nrArr:"⇏",nrarr:"↛",nrarrc:"⤳̸",nrarrw:"↝̸",nRightarrow:"⇏",nrightarrow:"↛",nrtri:"⋫",nrtrie:"⋭",nsc:"⊁",nsccue:"⋡",nsce:"⪰̸",Nscr:"\uD835\uDCA9",nscr:"\uD835\uDCC3",nshortmid:"∤",nshortparallel:"∦",nsim:"≁",nsime:"≄",nsimeq:"≄",nsmid:"∤",nspar:"∦",nsqsube:"⋢",nsqsupe:"⋣",nsub:"⊄",nsubE:"⫅̸",nsube:"⊈",nsubset:"⊂⃒",nsubseteq:"⊈",nsubseteqq:"⫅̸",nsucc:"⊁",nsucceq:"⪰̸",nsup:"⊅",nsupE:"⫆̸",nsupe:"⊉",nsupset:"⊃⃒",nsupseteq:"⊉",nsupseteqq:"⫆̸",ntgl:"≹",Ntilde:"Ñ",ntilde:"ñ",ntlg:"≸",ntriangleleft:"⋪",ntrianglelefteq:"⋬",ntriangleright:"⋫",ntrianglerighteq:"⋭",Nu:"Ν",nu:"ν",num:"#",numero:"№",numsp:" ",nvap:"≍⃒",nVDash:"⊯",nVdash:"⊮",nvDash:"⊭",nvdash:"⊬",nvge:"≥⃒",nvgt:">⃒",nvHarr:"⤄",nvinfin:"⧞",nvlArr:"⤂",nvle:"≤⃒",nvlt:"<⃒",nvltrie:"⊴⃒",nvrArr:"⤃",nvrtrie:"⊵⃒",nvsim:"∼⃒",nwarhk:"⤣",nwArr:"⇖",nwarr:"↖",nwarrow:"↖",nwnear:"⤧",Oacute:"Ó",oacute:"ó",oast:"⊛",ocir:"⊚",Ocirc:"Ô",ocirc:"ô",Ocy:"О",ocy:"о",odash:"⊝",Odblac:"Ő",odblac:"ő",odiv:"⨸",odot:"⊙",odsold:"⦼",OElig:"Œ",oelig:"œ",ofcir:"⦿",Ofr:"\uD835\uDD12",ofr:"\uD835\uDD2C",ogon:"˛",Ograve:"Ò",ograve:"ò",ogt:"⧁",ohbar:"⦵",ohm:"Ω",oint:"∮",olarr:"↺",olcir:"⦾",olcross:"⦻",oline:"‾",olt:"⧀",Omacr:"Ō",omacr:"ō",Omega:"Ω",omega:"ω",Omicron:"Ο",omicron:"ο",omid:"⦶",ominus:"⊖",Oopf:"\uD835\uDD46",oopf:"\uD835\uDD60",opar:"⦷",OpenCurlyDoubleQuote:"“",OpenCurlyQuote:"‘",operp:"⦹",oplus:"⊕",Or:"⩔",or:"∨",orarr:"↻",ord:"⩝",order:"ℴ",orderof:"ℴ",ordf:"ª",ordm:"º",origof:"⊶",oror:"⩖",orslope:"⩗",orv:"⩛",oS:"Ⓢ",Oscr:"\uD835\uDCAA",oscr:"ℴ",Oslash:"Ø",oslash:"ø",osol:"⊘",Otilde:"Õ",otilde:"õ",Otimes:"⨷",otimes:"⊗",otimesas:"⨶",Ouml:"Ö",ouml:"ö",ovbar:"⌽",OverBar:"‾",OverBrace:"⏞",OverBracket:"⎴",OverParenthesis:"⏜",par:"∥",para:"¶",parallel:"∥",parsim:"⫳",parsl:"⫽",part:"∂",PartialD:"∂",Pcy:"П",pcy:"п",percnt:"%",period:".",permil:"‰",perp:"⊥",pertenk:"‱",Pfr:"\uD835\uDD13",pfr:"\uD835\uDD2D",Phi:"Φ",phi:"φ",phiv:"ϕ",phmmat:"ℳ",phone:"☎",Pi:"Π",pi:"π",pitchfork:"⋔",piv:"ϖ",planck:"ℏ",planckh:"ℎ",plankv:"ℏ",plus:"+",plusacir:"⨣",plusb:"⊞",pluscir:"⨢",plusdo:"∔",plusdu:"⨥",pluse:"⩲",PlusMinus:"±",plusmn:"±",plussim:"⨦",plustwo:"⨧",pm:"±",Poincareplane:"ℌ",pointint:"⨕",Popf:"ℙ",popf:"\uD835\uDD61",pound:"£",Pr:"⪻",pr:"≺",prap:"⪷",prcue:"≼",prE:"⪳",pre:"⪯",prec:"≺",precapprox:"⪷",preccurlyeq:"≼",Precedes:"≺",PrecedesEqual:"⪯",PrecedesSlantEqual:"≼",PrecedesTilde:"≾",preceq:"⪯",precnapprox:"⪹",precneqq:"⪵",precnsim:"⋨",precsim:"≾",Prime:"″",prime:"′",primes:"ℙ",prnap:"⪹",prnE:"⪵",prnsim:"⋨",prod:"∏",Product:"∏",profalar:"⌮",profline:"⌒",profsurf:"⌓",prop:"∝",Proportion:"∷",Proportional:"∝",propto:"∝",prsim:"≾",prurel:"⊰",Pscr:"\uD835\uDCAB",pscr:"\uD835\uDCC5",Psi:"Ψ",psi:"ψ",puncsp:" ",Qfr:"\uD835\uDD14",qfr:"\uD835\uDD2E",qint:"⨌",Qopf:"ℚ",qopf:"\uD835\uDD62",qprime:"⁗",Qscr:"\uD835\uDCAC",qscr:"\uD835\uDCC6",quaternions:"ℍ",quatint:"⨖",quest:"?",questeq:"≟",QUOT:'"',quot:'"',rAarr:"⇛",race:"∽̱",Racute:"Ŕ",racute:"ŕ",radic:"√",raemptyv:"⦳",Rang:"⟫",rang:"⟩",rangd:"⦒",range:"⦥",rangle:"⟩",raquo:"»",Rarr:"↠",rArr:"⇒",rarr:"→",rarrap:"⥵",rarrb:"⇥",rarrbfs:"⤠",rarrc:"⤳",rarrfs:"⤞",rarrhk:"↪",rarrlp:"↬",rarrpl:"⥅",rarrsim:"⥴",Rarrtl:"⤖",rarrtl:"↣",rarrw:"↝",rAtail:"⤜",ratail:"⤚",ratio:"∶",rationals:"ℚ",RBarr:"⤐",rBarr:"⤏",rbarr:"⤍",rbbrk:"❳",rbrace:"}",rbrack:"]",rbrke:"⦌",rbrksld:"⦎",rbrkslu:"⦐",Rcaron:"Ř",rcaron:"ř",Rcedil:"Ŗ",rcedil:"ŗ",rceil:"⌉",rcub:"}",Rcy:"Р",rcy:"р",rdca:"⤷",rdldhar:"⥩",rdquo:"”",rdquor:"”",rdsh:"↳",Re:"ℜ",real:"ℜ",realine:"ℛ",realpart:"ℜ",reals:"ℝ",rect:"▭",REG:"®",reg:"®",ReverseElement:"∋",ReverseEquilibrium:"⇋",ReverseUpEquilibrium:"⥯",rfisht:"⥽",rfloor:"⌋",Rfr:"ℜ",rfr:"\uD835\uDD2F",rHar:"⥤",rhard:"⇁",rharu:"⇀",rharul:"⥬",Rho:"Ρ",rho:"ρ",rhov:"ϱ",RightAngleBracket:"⟩",RightArrow:"→",Rightarrow:"⇒",rightarrow:"→",RightArrowBar:"⇥",RightArrowLeftArrow:"⇄",rightarrowtail:"↣",RightCeiling:"⌉",RightDoubleBracket:"⟧",RightDownTeeVector:"⥝",RightDownVector:"⇂",RightDownVectorBar:"⥕",RightFloor:"⌋",rightharpoondown:"⇁",rightharpoonup:"⇀",rightleftarrows:"⇄",rightleftharpoons:"⇌",rightrightarrows:"⇉",rightsquigarrow:"↝",RightTee:"⊢",RightTeeArrow:"↦",RightTeeVector:"⥛",rightthreetimes:"⋌",RightTriangle:"⊳",RightTriangleBar:"⧐",RightTriangleEqual:"⊵",RightUpDownVector:"⥏",RightUpTeeVector:"⥜",RightUpVector:"↾",RightUpVectorBar:"⥔",RightVector:"⇀",RightVectorBar:"⥓",ring:"˚",risingdotseq:"≓",rlarr:"⇄",rlhar:"⇌",rlm:"‏",rmoust:"⎱",rmoustache:"⎱",rnmid:"⫮",roang:"⟭",roarr:"⇾",robrk:"⟧",ropar:"⦆",Ropf:"ℝ",ropf:"\uD835\uDD63",roplus:"⨮",rotimes:"⨵",RoundImplies:"⥰",rpar:")",rpargt:"⦔",rppolint:"⨒",rrarr:"⇉",Rrightarrow:"⇛",rsaquo:"›",Rscr:"ℛ",rscr:"\uD835\uDCC7",Rsh:"↱",rsh:"↱",rsqb:"]",rsquo:"’",rsquor:"’",rthree:"⋌",rtimes:"⋊",rtri:"▹",rtrie:"⊵",rtrif:"▸",rtriltri:"⧎",RuleDelayed:"⧴",ruluhar:"⥨",rx:"℞",Sacute:"Ś",sacute:"ś",sbquo:"‚",Sc:"⪼",sc:"≻",scap:"⪸",Scaron:"Š",scaron:"š",sccue:"≽",scE:"⪴",sce:"⪰",Scedil:"Ş",scedil:"ş",Scirc:"Ŝ",scirc:"ŝ",scnap:"⪺",scnE:"⪶",scnsim:"⋩",scpolint:"⨓",scsim:"≿",Scy:"С",scy:"с",sdot:"⋅",sdotb:"⊡",sdote:"⩦",searhk:"⤥",seArr:"⇘",searr:"↘",searrow:"↘",sect:"§",semi:";",seswar:"⤩",setminus:"∖",setmn:"∖",sext:"✶",Sfr:"\uD835\uDD16",sfr:"\uD835\uDD30",sfrown:"⌢",sharp:"♯",SHCHcy:"Щ",shchcy:"щ",SHcy:"Ш",shcy:"ш",ShortDownArrow:"↓",ShortLeftArrow:"←",shortmid:"∣",shortparallel:"∥",ShortRightArrow:"→",ShortUpArrow:"↑",shy:"­",Sigma:"Σ",sigma:"σ",sigmaf:"ς",sigmav:"ς",sim:"∼",simdot:"⩪",sime:"≃",simeq:"≃",simg:"⪞",simgE:"⪠",siml:"⪝",simlE:"⪟",simne:"≆",simplus:"⨤",simrarr:"⥲",slarr:"←",SmallCircle:"∘",smallsetminus:"∖",smashp:"⨳",smeparsl:"⧤",smid:"∣",smile:"⌣",smt:"⪪",smte:"⪬",smtes:"⪬︀",SOFTcy:"Ь",softcy:"ь",sol:"/",solb:"⧄",solbar:"⌿",Sopf:"\uD835\uDD4A",sopf:"\uD835\uDD64",spades:"♠",spadesuit:"♠",spar:"∥",sqcap:"⊓",sqcaps:"⊓︀",sqcup:"⊔",sqcups:"⊔︀",Sqrt:"√",sqsub:"⊏",sqsube:"⊑",sqsubset:"⊏",sqsubseteq:"⊑",sqsup:"⊐",sqsupe:"⊒",sqsupset:"⊐",sqsupseteq:"⊒",squ:"□",Square:"□",square:"□",SquareIntersection:"⊓",SquareSubset:"⊏",SquareSubsetEqual:"⊑",SquareSuperset:"⊐",SquareSupersetEqual:"⊒",SquareUnion:"⊔",squarf:"▪",squf:"▪",srarr:"→",Sscr:"\uD835\uDCAE",sscr:"\uD835\uDCC8",ssetmn:"∖",ssmile:"⌣",sstarf:"⋆",Star:"⋆",star:"☆",starf:"★",straightepsilon:"ϵ",straightphi:"ϕ",strns:"¯",Sub:"⋐",sub:"⊂",subdot:"⪽",subE:"⫅",sube:"⊆",subedot:"⫃",submult:"⫁",subnE:"⫋",subne:"⊊",subplus:"⪿",subrarr:"⥹",Subset:"⋐",subset:"⊂",subseteq:"⊆",subseteqq:"⫅",SubsetEqual:"⊆",subsetneq:"⊊",subsetneqq:"⫋",subsim:"⫇",subsub:"⫕",subsup:"⫓",succ:"≻",succapprox:"⪸",succcurlyeq:"≽",Succeeds:"≻",SucceedsEqual:"⪰",SucceedsSlantEqual:"≽",SucceedsTilde:"≿",succeq:"⪰",succnapprox:"⪺",succneqq:"⪶",succnsim:"⋩",succsim:"≿",SuchThat:"∋",Sum:"∑",sum:"∑",sung:"♪",Sup:"⋑",sup:"⊃",sup1:"¹",sup2:"²",sup3:"³",supdot:"⪾",supdsub:"⫘",supE:"⫆",supe:"⊇",supedot:"⫄",Superset:"⊃",SupersetEqual:"⊇",suphsol:"⟉",suphsub:"⫗",suplarr:"⥻",supmult:"⫂",supnE:"⫌",supne:"⊋",supplus:"⫀",Supset:"⋑",supset:"⊃",supseteq:"⊇",supseteqq:"⫆",supsetneq:"⊋",supsetneqq:"⫌",supsim:"⫈",supsub:"⫔",supsup:"⫖",swarhk:"⤦",swArr:"⇙",swarr:"↙",swarrow:"↙",swnwar:"⤪",szlig:"ß",Tab:"\t",target:"⌖",Tau:"Τ",tau:"τ",tbrk:"⎴",Tcaron:"Ť",tcaron:"ť",Tcedil:"Ţ",tcedil:"ţ",Tcy:"Т",tcy:"т",tdot:"⃛",telrec:"⌕",Tfr:"\uD835\uDD17",tfr:"\uD835\uDD31",there4:"∴",Therefore:"∴",therefore:"∴",Theta:"Θ",theta:"θ",thetasym:"ϑ",thetav:"ϑ",thickapprox:"≈",thicksim:"∼",ThickSpace:"  ",thinsp:" ",ThinSpace:" ",thkap:"≈",thksim:"∼",THORN:"Þ",thorn:"þ",Tilde:"∼",tilde:"˜",TildeEqual:"≃",TildeFullEqual:"≅",TildeTilde:"≈",times:"×",timesb:"⊠",timesbar:"⨱",timesd:"⨰",tint:"∭",toea:"⤨",top:"⊤",topbot:"⌶",topcir:"⫱",Topf:"\uD835\uDD4B",topf:"\uD835\uDD65",topfork:"⫚",tosa:"⤩",tprime:"‴",TRADE:"™",trade:"™",triangle:"▵",triangledown:"▿",triangleleft:"◃",trianglelefteq:"⊴",triangleq:"≜",triangleright:"▹",trianglerighteq:"⊵",tridot:"◬",trie:"≜",triminus:"⨺",TripleDot:"⃛",triplus:"⨹",trisb:"⧍",tritime:"⨻",trpezium:"⏢",Tscr:"\uD835\uDCAF",tscr:"\uD835\uDCC9",TScy:"Ц",tscy:"ц",TSHcy:"Ћ",tshcy:"ћ",Tstrok:"Ŧ",tstrok:"ŧ",twixt:"≬",twoheadleftarrow:"↞",twoheadrightarrow:"↠",Uacute:"Ú",uacute:"ú",Uarr:"↟",uArr:"⇑",uarr:"↑",Uarrocir:"⥉",Ubrcy:"Ў",ubrcy:"ў",Ubreve:"Ŭ",ubreve:"ŭ",Ucirc:"Û",ucirc:"û",Ucy:"У",ucy:"у",udarr:"⇅",Udblac:"Ű",udblac:"ű",udhar:"⥮",ufisht:"⥾",Ufr:"\uD835\uDD18",ufr:"\uD835\uDD32",Ugrave:"Ù",ugrave:"ù",uHar:"⥣",uharl:"↿",uharr:"↾",uhblk:"▀",ulcorn:"⌜",ulcorner:"⌜",ulcrop:"⌏",ultri:"◸",Umacr:"Ū",umacr:"ū",uml:"¨",UnderBar:"_",UnderBrace:"⏟",UnderBracket:"⎵",UnderParenthesis:"⏝",Union:"⋃",UnionPlus:"⊎",Uogon:"Ų",uogon:"ų",Uopf:"\uD835\uDD4C",uopf:"\uD835\uDD66",UpArrow:"↑",Uparrow:"⇑",uparrow:"↑",UpArrowBar:"⤒",UpArrowDownArrow:"⇅",UpDownArrow:"↕",Updownarrow:"⇕",updownarrow:"↕",UpEquilibrium:"⥮",upharpoonleft:"↿",upharpoonright:"↾",uplus:"⊎",UpperLeftArrow:"↖",UpperRightArrow:"↗",Upsi:"ϒ",upsi:"υ",upsih:"ϒ",Upsilon:"Υ",upsilon:"υ",UpTee:"⊥",UpTeeArrow:"↥",upuparrows:"⇈",urcorn:"⌝",urcorner:"⌝",urcrop:"⌎",Uring:"Ů",uring:"ů",urtri:"◹",Uscr:"\uD835\uDCB0",uscr:"\uD835\uDCCA",utdot:"⋰",Utilde:"Ũ",utilde:"ũ",utri:"▵",utrif:"▴",uuarr:"⇈",Uuml:"Ü",uuml:"ü",uwangle:"⦧",vangrt:"⦜",varepsilon:"ϵ",varkappa:"ϰ",varnothing:"∅",varphi:"ϕ",varpi:"ϖ",varpropto:"∝",vArr:"⇕",varr:"↕",varrho:"ϱ",varsigma:"ς",varsubsetneq:"⊊︀",varsubsetneqq:"⫋︀",varsupsetneq:"⊋︀",varsupsetneqq:"⫌︀",vartheta:"ϑ",vartriangleleft:"⊲",vartriangleright:"⊳",Vbar:"⫫",vBar:"⫨",vBarv:"⫩",Vcy:"В",vcy:"в",VDash:"⊫",Vdash:"⊩",vDash:"⊨",vdash:"⊢",Vdashl:"⫦",Vee:"⋁",vee:"∨",veebar:"⊻",veeeq:"≚",vellip:"⋮",Verbar:"‖",verbar:"|",Vert:"‖",vert:"|",VerticalBar:"∣",VerticalLine:"|",VerticalSeparator:"❘",VerticalTilde:"≀",VeryThinSpace:" ",Vfr:"\uD835\uDD19",vfr:"\uD835\uDD33",vltri:"⊲",vnsub:"⊂⃒",vnsup:"⊃⃒",Vopf:"\uD835\uDD4D",vopf:"\uD835\uDD67",vprop:"∝",vrtri:"⊳",Vscr:"\uD835\uDCB1",vscr:"\uD835\uDCCB",vsubnE:"⫋︀",vsubne:"⊊︀",vsupnE:"⫌︀",vsupne:"⊋︀",Vvdash:"⊪",vzigzag:"⦚",Wcirc:"Ŵ",wcirc:"ŵ",wedbar:"⩟",Wedge:"⋀",wedge:"∧",wedgeq:"≙",weierp:"℘",Wfr:"\uD835\uDD1A",wfr:"\uD835\uDD34",Wopf:"\uD835\uDD4E",wopf:"\uD835\uDD68",wp:"℘",wr:"≀",wreath:"≀",Wscr:"\uD835\uDCB2",wscr:"\uD835\uDCCC",xcap:"⋂",xcirc:"◯",xcup:"⋃",xdtri:"▽",Xfr:"\uD835\uDD1B",xfr:"\uD835\uDD35",xhArr:"⟺",xharr:"⟷",Xi:"Ξ",xi:"ξ",xlArr:"⟸",xlarr:"⟵",xmap:"⟼",xnis:"⋻",xodot:"⨀",Xopf:"\uD835\uDD4F",xopf:"\uD835\uDD69",xoplus:"⨁",xotime:"⨂",xrArr:"⟹",xrarr:"⟶",Xscr:"\uD835\uDCB3",xscr:"\uD835\uDCCD",xsqcup:"⨆",xuplus:"⨄",xutri:"△",xvee:"⋁",xwedge:"⋀",Yacute:"Ý",yacute:"ý",YAcy:"Я",yacy:"я",Ycirc:"Ŷ",ycirc:"ŷ",Ycy:"Ы",ycy:"ы",yen:"¥",Yfr:"\uD835\uDD1C",yfr:"\uD835\uDD36",YIcy:"Ї",yicy:"ї",Yopf:"\uD835\uDD50",yopf:"\uD835\uDD6A",Yscr:"\uD835\uDCB4",yscr:"\uD835\uDCCE",YUcy:"Ю",yucy:"ю",Yuml:"Ÿ",yuml:"ÿ",Zacute:"Ź",zacute:"ź",Zcaron:"Ž",zcaron:"ž",Zcy:"З",zcy:"з",Zdot:"Ż",zdot:"ż",zeetrf:"ℨ",ZeroWidthSpace:"​",Zeta:"Ζ",zeta:"ζ",Zfr:"ℨ",zfr:"\uD835\uDD37",ZHcy:"Ж",zhcy:"ж",zigrarr:"⇝",Zopf:"ℤ",zopf:"\uD835\uDD6B",Zscr:"\uD835\uDCB5",zscr:"\uD835\uDCCF",zwj:"‍",zwnj:"‌"});nX.entityMap=nX.HTML_ENTITIES});var DU=R(function(hX){var Ga=Xo().NAMESPACE,qy=Xo().tagNamePattern,Jo=0,Zr=1,Qo=2,$a=3,es=4,ts=5,Ha=6,xd=7;function ns(e,t){if(this.message=e,this.locator=t,Error.captureStackTrace)Error.captureStackTrace(this,ns)}ns.prototype=Error();ns.prototype.name=ns.name;function _U(){}_U.prototype={parse:function(e,t,n){var r=this.domBuilder;r.startDocument(),uX(t,t={}),oX(e,t,n,r,this.errorHandler),r.endDocument()}};function oX(e,t,n,r,i){function o(T){if(T>65535){T-=65536;var O=55296+(T>>10),k=56320+(T&1023);return String.fromCharCode(O,k)}else return String.fromCharCode(T)}function s(T){var O=T.slice(1,-1);if(Object.hasOwnProperty.call(n,O))return n[O];else if(O.charAt(0)==="#")return o(parseInt(O.substr(1).replace("x","0x")));else return i.error("entity not found:"+T),T}function a(T){if(T>y){var O=e.substring(y,T).replace(/&#?\w+;/g,s);h&&c(y),r.characters(O,0,T-y),y=T}}function c(T,O){while(T>=d&&(O=f.exec(e)))u=O.index,d=u+O[0].length,h.lineNumber++;h.columnNumber=T-u+1}var u=0,d=0,f=/.*(?:\r\n?|\n)|.*$/g,h=r.locator,p=[{currentNSMap:t}],g={},y=0;while(!0){try{var v=e.indexOf("<",y);if(v<0){if(!e.substr(y).match(/^\s*$/)){var b=r.doc,_=b.createTextNode(e.substr(y));b.appendChild(_),r.currentElement=_}return}if(v>y)a(v);switch(e.charAt(v+1)){case"/":var F=e.indexOf(">",v+3),m=e.substring(v+2,F).replace(/^([\s\S]*?[^ \t\n\r])?[ \t\n\r]*$/,"$1"),x=p.pop();if(F<0)m=e.substring(v+2).replace(/[\s<].*/,""),i.error("end tag name: "+m+" is not complete:"+x.tagName),F=v+1+m.length;else if(m.match(/\s</))m=m.replace(/[\s<].*/,""),i.error("end tag name: "+m+" maybe not complete"),F=v+1+m.length;else if(/[ \t\n\r]/.test(m)&&qy.test(m.split(/[ \t\n\r]/)[0]))i.error('end tag name is followed by whitespace and trailing content: "'+m+'"');var D=x.localNSMap,A=x.tagName==m,E=A||x.tagName&&x.tagName.toLowerCase()==m.toLowerCase();if(E){if(r.endElement(x.uri,x.localName,m),D){for(var U in D)if(Object.prototype.hasOwnProperty.call(D,U))r.endPrefixMapping(U)}if(!A)i.fatalError("end tag name: "+m+" is not match the current start tagName:"+x.tagName)}else p.push(x);F++;break;case"?":h&&c(v),F=dX(e,v,r);break;case"!":h&&c(v),F=lX(e,v,r,i);break;default:h&&c(v);var C=new wU,N=p[p.length-1].currentNSMap,F=sX(e,v,C,N,s,i),S=C.length;if(!C.closed&&cX(e,F,C.tagName,g)){if(C.closed=!0,!n.nbsp)i.warning("unclosed xml attribute")}if(h&&S){var B=vU(h,{});for(var j=0;j<S;j++){var G=C[j];c(G.offset),G.locator=vU(h,{})}if(r.locator=B,xU(C,r,N))p.push(C);r.locator=h}else if(xU(C,r,N))p.push(C);if(Ga.isHTML(C.uri)&&!C.closed)F=aX(e,F,C.tagName,s,r);else F++}}catch(T){if(T instanceof ns)throw T;i.error("element parse error: "+T),F=-1}if(F>y)y=F;else a(Math.max(v,y)+1)}}function vU(e,t){return t.lineNumber=e.lineNumber,t.columnNumber=e.columnNumber,t}function sX(e,t,n,r,i,o){function s(p,g,y){if(n.attributeNames.hasOwnProperty(p))o.fatalError("Attribute "+p+" redefined");n.addValue(p,g.replace(/[\t\n\r]/g," ").replace(/&#?\w+;/g,i),y)}var a,c,u=++t,d=Jo;while(!0){var f=e.charAt(u);if(d===Jo&&f==="<")throw Error("unexpected < in tag name: "+e.slice(t,u));switch(f){case"=":if(d===Zr)a=e.slice(t,u),d=$a;else if(d===Qo)d=$a;else throw Error("attribute equal must after attrName");break;case"'":case'"':if(d===$a||d===Zr){if(d===Zr)o.warning('attribute value must after "="'),a=e.slice(t,u);if(t=u+1,u=e.indexOf(f,t),u>0)c=e.slice(t,u),s(a,c,t-1),d=ts;else throw Error("attribute value no end '"+f+"' match")}else if(d==es)c=e.slice(t,u),s(a,c,t),o.warning('attribute "'+a+'" missed start quot('+f+")!!"),t=u+1,d=ts;else throw Error('attribute value must after "="');break;case"/":switch(d){case Jo:n.setTagName(e.slice(t,u));case ts:case Ha:case xd:d=xd,n.closed=!0;case es:case Zr:break;case Qo:n.closed=!0;break;default:throw Error("attribute invalid close char('/')")}break;case"":if(o.error("unexpected end of input"),d==Jo)n.setTagName(e.slice(t,u));return u;case">":switch(d){case Jo:n.setTagName(e.slice(t,u));case ts:case Ha:case xd:break;case es:case Zr:if(c=e.slice(t,u),c.slice(-1)==="/")n.closed=!0,c=c.slice(0,-1);case Qo:if(d===Qo)c=a;if(d==es)o.warning('attribute "'+c+'" missed quot(")!'),s(a,c,t);else{if(!Ga.isHTML(r[""])||!c.match(/^(?:disabled|checked|selected)$/i))o.warning('attribute "'+c+'" missed value!! "'+c+'" instead!!');s(c,c,t)}break;case $a:throw Error("attribute value missed!!")}return u;case"€":f=" ";default:if(f<=" ")switch(d){case Jo:n.setTagName(e.slice(t,u)),d=Ha;break;case Zr:a=e.slice(t,u),d=Qo;break;case es:var c=e.slice(t,u);o.warning('attribute "'+c+'" missed quot(")!!'),s(a,c,t);case ts:d=Ha;break}else switch(d){case Qo:var h=n.tagName;if(!Ga.isHTML(r[""])||!a.match(/^(?:disabled|checked|selected)$/i))o.warning('attribute "'+a+'" missed value!! "'+a+'" instead2!!');s(a,a,t),t=u,d=Zr;break;case ts:o.warning('attribute space is required"'+a+'"!!');case Ha:d=Zr,t=u;break;case $a:d=es,t=u;break;case xd:throw Error("elements closed character '/' and '>' must be connected to")}}u++}}function xU(e,t,n){var r=e.tagName,i=null,f=e.length;while(f--){var o=e[f],s=o.qName,a=o.value,h=s.indexOf(":");if(h>0)var c=o.prefix=s.slice(0,h),u=s.slice(h+1),d=c==="xmlns"&&u;else u=s,c=null,d=s==="xmlns"&&"";if(o.localName=u,d!==!1){if(i==null)i={},n=Object.create(n);n[d]=i[d]=a,o.uri=Ga.XMLNS,t.startPrefixMapping(d,a)}}var f=e.length;while(f--){o=e[f];var c=o.prefix;if(c){if(c==="xml")o.uri=Ga.XML;if(c!=="xmlns")o.uri=n[c||""]}}var h=r.indexOf(":");if(h>0)c=e.prefix=r.slice(0,h),u=e.localName=r.slice(h+1);else c=null,u=e.localName=r;var p=e.uri=n[c||""];if(t.startElement(p,u,r,e),e.closed){if(t.endElement(p,u,r),i){for(c in i)if(Object.prototype.hasOwnProperty.call(i,c))t.endPrefixMapping(c)}}else return e.currentNSMap=n,e.localNSMap=i,!0}function aX(e,t,n,r,i){if(/^(?:script|textarea)$/i.test(n)){var o=e.indexOf("</"+n+">",t),s=e.substring(t+1,o);if(/[&<]/.test(s)){if(/^script$/i.test(n))return i.characters(s,0,s.length),o;return s=s.replace(/&#?\w+;/g,r),i.characters(s,0,s.length),o}}return t+1}function cX(e,t,n,r){var i=r[n];if(i==null){if(i=e.lastIndexOf("</"+n+">"),i<t)i=e.lastIndexOf("</"+n);r[n]=i}return i<t}function uX(e,t){for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n))t[n]=e[n]}function lX(e,t,n,r){var i=e.charAt(t+2);switch(i){case"-":if(e.charAt(t+3)==="-"){var o=e.indexOf("-->",t+4);if(o>t)return n.comment(e,t+4,o-t-4),o+3;else return r.error("Unclosed comment"),-1}else return-1;default:if(e.substr(t+3,6)=="CDATA["){var o=e.indexOf("]]>",t+9);return n.startCDATA(),n.characters(e,t+9,o-t-9),n.endCDATA(),o+3}var s=fX(e,t),a=s.length;if(a>1&&/!doctype/i.test(s[0][0])){var c=s[1][0],u=!1,d=!1;if(a>3){if(/^public$/i.test(s[2][0]))u=s[3][0],d=a>4&&s[4][0];else if(/^system$/i.test(s[2][0]))d=s[3][0]}var f=s[a-1];return n.startDTD(c,u,d),n.endDTD(),f.index+f[0].length}}return-1}function dX(e,t,n){var r=e.indexOf("?>",t);if(r){var i=e.substring(t,r).match(/^<\?(\S*)\s*([\s\S]*?)$/);if(i){var o=i[0].length;return n.processingInstruction(i[1],i[2]),r+2}else return-1}return-1}function wU(){this.attributeNames={}}wU.prototype={setTagName:function(e){if(!qy.test(e))throw Error("invalid tagName:"+e);this.tagName=e},addValue:function(e,t,n){if(!qy.test(e))throw Error("invalid attribute:"+e);this.attributeNames[e]=this.length,this[this.length++]={qName:e,value:t,offset:n}},length:0,getLocalName:function(e){return this[e].localName},getLocator:function(e){return this[e].locator},getQName:function(e){return this[e].qName},getURI:function(e){return this[e].uri},getValue:function(e){return this[e].value}};function fX(e,t){var n,r=[],i=/'[^']+'|"[^"]+"|[^\s<>\/=]+=?|(\/?\s*>|<)/g;i.lastIndex=t,i.exec(e);while(n=i.exec(e))if(r.push(n),n[1])return r}hX.XMLReader=_U;hX.ParseError=ns});var kU=R(function(wX){var mX=Xo(),yX=vd(),EU=bU(),CU=DU(),bX=yX.DOMImplementation,TU=mX.NAMESPACE,vX=CU.ParseError,xX=CU.XMLReader;function AU(e){return e.replace(/\r[\n\u0085]/g,`
200
200
  `).replace(/[\r\u0085\u2028]/g,`
201
201
  `)}function UU(e){this.options=e||{locator:{}}}UU.prototype.parseFromString=function(e,t){var n=this.options,r=new xX,i=n.domBuilder||new za,o=n.errorHandler,s=n.locator,a=n.xmlns||{},c=/\/x?html?$/.test(t),u=c?EU.HTML_ENTITIES:EU.XML_ENTITIES;if(s)i.setDocumentLocator(s);if(r.errorHandler=_X(o,i,s),r.domBuilder=n.domBuilder||i,c)a[""]=TU.HTML;a.xml=a.xml||TU.XML;var d=n.normalizeLineEndings||AU;if(e&&typeof e==="string")r.parse(d(e),a,u);else r.errorHandler.error("invalid doc source");return i.doc};function _X(e,t,n){if(!e){if(t instanceof za)return t;e=t}var r={},i=e instanceof Function;n=n||{};function o(s){var a=e[s];if(!a&&i)a=e.length==2?function(c){e(s,c)}:e;r[s]=a&&function(c){a("[xmldom "+s+"]\t"+c+$y(n))}||function(){}}return o("warning"),o("error"),o("fatalError"),r}function za(){this.cdata=!1}function rs(e,t){t.lineNumber=e.lineNumber,t.columnNumber=e.columnNumber}za.prototype={startDocument:function(){if(this.doc=new bX().createDocument(null,null,null),this.locator)this.doc.documentURI=this.locator.systemId},startElement:function(e,t,n,r){var i=this.doc,o=i.createElementNS(e,n||t),s=r.length;_d(this,o),this.currentElement=o,this.locator&&rs(this.locator,o);for(var a=0;a<s;a++){var e=r.getURI(a),c=r.getValue(a),n=r.getQName(a),u=i.createAttributeNS(e,n);this.locator&&rs(r.getLocator(a),u),u.value=u.nodeValue=c,o.setAttributeNode(u)}},endElement:function(e,t,n){var r=this.currentElement,i=r.tagName;this.currentElement=r.parentNode},startPrefixMapping:function(e,t){},endPrefixMapping:function(e){},processingInstruction:function(e,t){var n=this.doc.createProcessingInstruction(e,t);this.locator&&rs(this.locator,n),_d(this,n)},ignorableWhitespace:function(e,t,n){},characters:function(e,t,n){if(e=SU.apply(this,arguments),e){if(this.cdata)var r=this.doc.createCDATASection(e);else var r=this.doc.createTextNode(e);if(this.currentElement)this.currentElement.appendChild(r);else if(/^\s*$/.test(e))this.doc.appendChild(r);this.locator&&rs(this.locator,r)}},skippedEntity:function(e){},endDocument:function(){this.doc.normalize()},setDocumentLocator:function(e){if(this.locator=e)e.lineNumber=0},comment:function(e,t,n){e=SU.apply(this,arguments);var r=this.doc.createComment(e);this.locator&&rs(this.locator,r),_d(this,r)},startCDATA:function(){this.cdata=!0},endCDATA:function(){this.cdata=!1},startDTD:function(e,t,n){var r=this.doc.implementation;if(r&&r.createDocumentType){var i=r.createDocumentType(e,t,n);this.locator&&rs(this.locator,i),_d(this,i),this.doc.doctype=i}},warning:function(e){console.warn("[xmldom warning]\t"+e,$y(this.locator))},error:function(e){console.error("[xmldom error]\t"+e,$y(this.locator))},fatalError:function(e){throw new vX(e,this.locator)}};function $y(e){if(e)return`
202
202
  @`+(e.systemId||"")+"#[line:"+e.lineNumber+",col:"+e.columnNumber+"]"}function SU(e,t,n){if(typeof e=="string")return e.substr(t,n);else{if(e.length>=t+n||t)return new java.lang.String(e,t,n)+"";return e}}"endDTD,startEntity,endEntity,attributeDecl,elementDecl,externalEntityDecl,internalEntityDecl,resolveEntity,getExternalSubset,notationDecl,unparsedEntityDecl".replace(/\w+/g,function(e){za.prototype[e]=function(){return null}});function _d(e,t){if(!e.currentElement)e.doc.appendChild(t);else e.currentElement.appendChild(t)}wX.__DOMHandler=za;wX.normalizeLineEndings=AU;wX.DOMParser=UU});var FU=R(function(SX){var RU=vd();SX.DOMImplementation=RU.DOMImplementation;SX.XMLSerializer=RU.XMLSerializer;SX.DOMParser=kU().DOMParser});var OU=R(function(OX){var kX=FU(),RX=vd();function FX(e){var t=null,n=new kX.DOMParser({errorHandler:function(i,o){t={level:i,message:o}}}),r=n.parseFromString(e);if(t===null)return r;else throw Error(t.level+": "+t.message)}OX.parseFromString=FX;OX.Node=RX.Node});var BU=R(function(BX){var Hy=Xn(),PU=Me(),MU=OU(),NU=Ay(),MX=NU.Element;BX.readString=NX;var IU=MU.Node;function NX(e,t){t=t||{};try{var n=MU.parseFromString(e,"text/xml")}catch(s){return Hy.reject(s)}if(n.documentElement.tagName==="parsererror")return Hy.resolve(Error(n.documentElement.textContent));function r(s){switch(s.nodeType){case IU.ELEMENT_NODE:return i(s);case IU.TEXT_NODE:return NU.text(s.nodeValue)}}function i(s){var a=o(s),c=[];PU.forEach(s.childNodes,function(d){var f=r(d);if(f)c.push(f)});var u=Object.create(null);return PU.forEach(s.attributes,function(d){u[o(d)]=d.value}),new MX(a,u,c)}function o(s){if(s.namespaceURI){var a=t[s.namespaceURI],c;if(a)c=a+":";else c="{"+s.namespaceURI+"}";return c+s.localName}else return s.localName}return Hy.resolve(r(n.documentElement))}});var ar=R(function(LU,Yr){(function(){var e,t,n,r,i,o,s,a=[].slice,c={}.hasOwnProperty;e=function(){var u,d,f,h,p,g;if(g=arguments[0],p=2<=arguments.length?a.call(arguments,1):[],i(Object.assign))Object.assign.apply(null,arguments);else for(u=0,f=p.length;u<f;u++)if(h=p[u],h!=null)for(d in h){if(!c.call(h,d))continue;g[d]=h[d]}return g},i=function(u){return!!u&&Object.prototype.toString.call(u)==="[object Function]"},o=function(u){var d;return!!u&&((d=typeof u)==="function"||d==="object")},n=function(u){if(i(Array.isArray))return Array.isArray(u);else return Object.prototype.toString.call(u)==="[object Array]"},r=function(u){var d;if(n(u))return!u.length;else{for(d in u){if(!c.call(u,d))continue;return!1}return!0}},s=function(u){var d,f;return o(u)&&(f=Object.getPrototypeOf(u))&&(d=f.constructor)&&typeof d==="function"&&d instanceof d&&Function.prototype.toString.call(d)===Function.prototype.toString.call(Object)},t=function(u){if(i(u.valueOf))return u.valueOf();else return u},LU.assign=e,LU.isFunction=i,LU.isObject=o,LU.isArray=n,LU.isEmpty=r,LU.isPlainObject=s,LU.getValue=t}).call(LU)});var Gy=R(function(WU,jU){(function(){var e;jU.exports=e=function(){function t(n,r,i){if(this.options=n.options,this.stringify=n.stringify,this.parent=n,r==null)throw Error("Missing attribute name. "+this.debugInfo(r));if(i==null)throw Error("Missing attribute value. "+this.debugInfo(r));this.name=this.stringify.attName(r),this.value=this.stringify.attValue(i)}return t.prototype.clone=function(){return Object.create(this)},t.prototype.toString=function(n){return this.options.writer.set(n).attribute(this)},t.prototype.debugInfo=function(n){if(n=n||this.name,n==null)return"parent: <"+this.parent.name+">";else return"attribute: {"+n+"}, parent: <"+this.parent.name+">"},t}()}).call(WU)});var Va=R(function(qU,$U){(function(){var e,t,n,r,i,o,s,a=function(u,d){for(var f in d)if(c.call(d,f))u[f]=d[f];function h(){this.constructor=u}return h.prototype=d.prototype,u.prototype=new h,u.__super__=d.prototype,u},c={}.hasOwnProperty;s=ar(),o=s.isObject,i=s.isFunction,r=s.getValue,n=_t(),e=Gy(),$U.exports=t=function(u){a(d,u);function d(f,h,p){if(d.__super__.constructor.call(this,f),h==null)throw Error("Missing element name. "+this.debugInfo());if(this.name=this.stringify.eleName(h),this.attributes={},p!=null)this.attribute(p);if(f.isDocument)this.isRoot=!0,this.documentObject=f,f.rootObject=this}return d.prototype.clone=function(){var f,h,p,g;if(p=Object.create(this),p.isRoot)p.documentObject=null;p.attributes={},g=this.attributes;for(h in g){if(!c.call(g,h))continue;f=g[h],p.attributes[h]=f.clone()}return p.children=[],this.children.forEach(function(y){var v=y.clone();return v.parent=p,p.children.push(v)}),p},d.prototype.attribute=function(f,h){var p,g;if(f!=null)f=r(f);if(o(f))for(p in f){if(!c.call(f,p))continue;g=f[p],this.attribute(p,g)}else{if(i(h))h=h.apply();if(!this.options.skipNullAttributes||h!=null)this.attributes[f]=new e(this,f,h)}return this},d.prototype.removeAttribute=function(f){var h,p,g;if(f==null)throw Error("Missing attribute name. "+this.debugInfo());if(f=r(f),Array.isArray(f))for(p=0,g=f.length;p<g;p++)h=f[p],delete this.attributes[h];else delete this.attributes[f];return this},d.prototype.toString=function(f){return this.options.writer.set(f).element(this)},d.prototype.att=function(f,h){return this.attribute(f,h)},d.prototype.a=function(f,h){return this.attribute(f,h)},d}(n)}).call(qU)});var Xa=R(function(HU,GU){(function(){var e,t,n=function(i,o){for(var s in o)if(r.call(o,s))i[s]=o[s];function a(){this.constructor=i}return a.prototype=o.prototype,i.prototype=new a,i.__super__=o.prototype,i},r={}.hasOwnProperty;t=_t(),GU.exports=e=function(i){n(o,i);function o(s,a){if(o.__super__.constructor.call(this,s),a==null)throw Error("Missing CDATA text. "+this.debugInfo());this.text=this.stringify.cdata(a)}return o.prototype.clone=function(){return Object.create(this)},o.prototype.toString=function(s){return this.options.writer.set(s).cdata(this)},o}(t)}).call(HU)});var Ka=R(function(zU,VU){(function(){var e,t,n=function(i,o){for(var s in o)if(r.call(o,s))i[s]=o[s];function a(){this.constructor=i}return a.prototype=o.prototype,i.prototype=new a,i.__super__=o.prototype,i},r={}.hasOwnProperty;t=_t(),VU.exports=e=function(i){n(o,i);function o(s,a){if(o.__super__.constructor.call(this,s),a==null)throw Error("Missing comment text. "+this.debugInfo());this.text=this.stringify.comment(a)}return o.prototype.clone=function(){return Object.create(this)},o.prototype.toString=function(s){return this.options.writer.set(s).comment(this)},o}(t)}).call(zU)});var Za=R(function(XU,KU){(function(){var e,t,n,r=function(o,s){for(var a in s)if(i.call(s,a))o[a]=s[a];function c(){this.constructor=o}return c.prototype=s.prototype,o.prototype=new c,o.__super__=s.prototype,o},i={}.hasOwnProperty;n=ar().isObject,t=_t(),KU.exports=e=function(o){r(s,o);function s(a,c,u,d){var f;if(s.__super__.constructor.call(this,a),n(c))f=c,c=f.version,u=f.encoding,d=f.standalone;if(!c)c="1.0";if(this.version=this.stringify.xmlVersion(c),u!=null)this.encoding=this.stringify.xmlEncoding(u);if(d!=null)this.standalone=this.stringify.xmlStandalone(d)}return s.prototype.toString=function(a){return this.options.writer.set(a).declaration(this)},s}(t)}).call(XU)});var Ya=R(function(ZU,YU){(function(){var e,t,n=function(i,o){for(var s in o)if(r.call(o,s))i[s]=o[s];function a(){this.constructor=i}return a.prototype=o.prototype,i.prototype=new a,i.__super__=o.prototype,i},r={}.hasOwnProperty;t=_t(),YU.exports=e=function(i){n(o,i);function o(s,a,c,u,d,f){if(o.__super__.constructor.call(this,s),a==null)throw Error("Missing DTD element name. "+this.debugInfo());if(c==null)throw Error("Missing DTD attribute name. "+this.debugInfo(a));if(!u)throw Error("Missing DTD attribute type. "+this.debugInfo(a));if(!d)throw Error("Missing DTD attribute default. "+this.debugInfo(a));if(d.indexOf("#")!==0)d="#"+d;if(!d.match(/^(#REQUIRED|#IMPLIED|#FIXED|#DEFAULT)$/))throw Error("Invalid default value type; expected: #REQUIRED, #IMPLIED, #FIXED or #DEFAULT. "+this.debugInfo(a));if(f&&!d.match(/^(#FIXED|#DEFAULT)$/))throw Error("Default value only applies to #FIXED or #DEFAULT. "+this.debugInfo(a));this.elementName=this.stringify.eleName(a),this.attributeName=this.stringify.attName(c),this.attributeType=this.stringify.dtdAttType(u),this.defaultValue=this.stringify.dtdAttDefault(f),this.defaultValueType=d}return o.prototype.toString=function(s){return this.options.writer.set(s).dtdAttList(this)},o}(t)}).call(ZU)});var Ja=R(function(JU,QU){(function(){var e,t,n,r=function(o,s){for(var a in s)if(i.call(s,a))o[a]=s[a];function c(){this.constructor=o}return c.prototype=s.prototype,o.prototype=new c,o.__super__=s.prototype,o},i={}.hasOwnProperty;n=ar().isObject,t=_t(),QU.exports=e=function(o){r(s,o);function s(a,c,u,d){if(s.__super__.constructor.call(this,a),u==null)throw Error("Missing DTD entity name. "+this.debugInfo(u));if(d==null)throw Error("Missing DTD entity value. "+this.debugInfo(u));if(this.pe=!!c,this.name=this.stringify.eleName(u),!n(d))this.value=this.stringify.dtdEntityValue(d);else{if(!d.pubID&&!d.sysID)throw Error("Public and/or system identifiers are required for an external entity. "+this.debugInfo(u));if(d.pubID&&!d.sysID)throw Error("System identifier is required for a public external entity. "+this.debugInfo(u));if(d.pubID!=null)this.pubID=this.stringify.dtdPubID(d.pubID);if(d.sysID!=null)this.sysID=this.stringify.dtdSysID(d.sysID);if(d.nData!=null)this.nData=this.stringify.dtdNData(d.nData);if(this.pe&&this.nData)throw Error("Notation declaration is not allowed in a parameter entity. "+this.debugInfo(u))}}return s.prototype.toString=function(a){return this.options.writer.set(a).dtdEntity(this)},s}(t)}).call(JU)});var Qa=R(function(ek,tk){(function(){var e,t,n=function(i,o){for(var s in o)if(r.call(o,s))i[s]=o[s];function a(){this.constructor=i}return a.prototype=o.prototype,i.prototype=new a,i.__super__=o.prototype,i},r={}.hasOwnProperty;t=_t(),tk.exports=e=function(i){n(o,i);function o(s,a,c){if(o.__super__.constructor.call(this,s),a==null)throw Error("Missing DTD element name. "+this.debugInfo());if(!c)c="(#PCDATA)";if(Array.isArray(c))c="("+c.join(",")+")";this.name=this.stringify.eleName(a),this.value=this.stringify.dtdElementValue(c)}return o.prototype.toString=function(s){return this.options.writer.set(s).dtdElement(this)},o}(t)}).call(ek)});var ec=R(function(nk,rk){(function(){var e,t,n=function(i,o){for(var s in o)if(r.call(o,s))i[s]=o[s];function a(){this.constructor=i}return a.prototype=o.prototype,i.prototype=new a,i.__super__=o.prototype,i},r={}.hasOwnProperty;t=_t(),rk.exports=e=function(i){n(o,i);function o(s,a,c){if(o.__super__.constructor.call(this,s),a==null)throw Error("Missing DTD notation name. "+this.debugInfo(a));if(!c.pubID&&!c.sysID)throw Error("Public or system identifiers are required for an external entity. "+this.debugInfo(a));if(this.name=this.stringify.eleName(a),c.pubID!=null)this.pubID=this.stringify.dtdPubID(c.pubID);if(c.sysID!=null)this.sysID=this.stringify.dtdSysID(c.sysID)}return o.prototype.toString=function(s){return this.options.writer.set(s).dtdNotation(this)},o}(t)}).call(nk)});var tc=R(function(ik,ok){(function(){var e,t,n,r,i,o,s,a=function(u,d){for(var f in d)if(c.call(d,f))u[f]=d[f];function h(){this.constructor=u}return h.prototype=d.prototype,u.prototype=new h,u.__super__=d.prototype,u},c={}.hasOwnProperty;s=ar().isObject,o=_t(),e=Ya(),n=Ja(),t=Qa(),r=ec(),ok.exports=i=function(u){a(d,u);function d(f,h,p){var g,y;if(d.__super__.constructor.call(this,f),this.name="!DOCTYPE",this.documentObject=f,s(h))g=h,h=g.pubID,p=g.sysID;if(p==null)y=[h,p],p=y[0],h=y[1];if(h!=null)this.pubID=this.stringify.dtdPubID(h);if(p!=null)this.sysID=this.stringify.dtdSysID(p)}return d.prototype.element=function(f,h){var p=new t(this,f,h);return this.children.push(p),this},d.prototype.attList=function(f,h,p,g,y){var v=new e(this,f,h,p,g,y);return this.children.push(v),this},d.prototype.entity=function(f,h){var p=new n(this,!1,f,h);return this.children.push(p),this},d.prototype.pEntity=function(f,h){var p=new n(this,!0,f,h);return this.children.push(p),this},d.prototype.notation=function(f,h){var p=new r(this,f,h);return this.children.push(p),this},d.prototype.toString=function(f){return this.options.writer.set(f).docType(this)},d.prototype.ele=function(f,h){return this.element(f,h)},d.prototype.att=function(f,h,p,g,y){return this.attList(f,h,p,g,y)},d.prototype.ent=function(f,h){return this.entity(f,h)},d.prototype.pent=function(f,h){return this.pEntity(f,h)},d.prototype.not=function(f,h){return this.notation(f,h)},d.prototype.up=function(){return this.root()||this.documentObject},d}(o)}).call(ik)});var nc=R(function(sk,ak){(function(){var e,t,n=function(i,o){for(var s in o)if(r.call(o,s))i[s]=o[s];function a(){this.constructor=i}return a.prototype=o.prototype,i.prototype=new a,i.__super__=o.prototype,i},r={}.hasOwnProperty;e=_t(),ak.exports=t=function(i){n(o,i);function o(s,a){if(o.__super__.constructor.call(this,s),a==null)throw Error("Missing raw text. "+this.debugInfo());this.value=this.stringify.raw(a)}return o.prototype.clone=function(){return Object.create(this)},o.prototype.toString=function(s){return this.options.writer.set(s).raw(this)},o}(e)}).call(sk)});var rc=R(function(ck,uk){(function(){var e,t,n=function(i,o){for(var s in o)if(r.call(o,s))i[s]=o[s];function a(){this.constructor=i}return a.prototype=o.prototype,i.prototype=new a,i.__super__=o.prototype,i},r={}.hasOwnProperty;e=_t(),uk.exports=t=function(i){n(o,i);function o(s,a){if(o.__super__.constructor.call(this,s),a==null)throw Error("Missing element text. "+this.debugInfo());this.value=this.stringify.eleText(a)}return o.prototype.clone=function(){return Object.create(this)},o.prototype.toString=function(s){return this.options.writer.set(s).text(this)},o}(e)}).call(ck)});var ic=R(function(lk,dk){(function(){var e,t,n=function(i,o){for(var s in o)if(r.call(o,s))i[s]=o[s];function a(){this.constructor=i}return a.prototype=o.prototype,i.prototype=new a,i.__super__=o.prototype,i},r={}.hasOwnProperty;e=_t(),dk.exports=t=function(i){n(o,i);function o(s,a,c){if(o.__super__.constructor.call(this,s),a==null)throw Error("Missing instruction target. "+this.debugInfo());if(this.target=this.stringify.insTarget(a),c)this.value=this.stringify.insValue(c)}return o.prototype.clone=function(){return Object.create(this)},o.prototype.toString=function(s){return this.options.writer.set(s).processingInstruction(this)},o}(e)}).call(lk)});var wd=R(function(fk,hk){(function(){var e,t,n=function(i,o){for(var s in o)if(r.call(o,s))i[s]=o[s];function a(){this.constructor=i}return a.prototype=o.prototype,i.prototype=new a,i.__super__=o.prototype,i},r={}.hasOwnProperty;t=_t(),hk.exports=e=function(i){n(o,i);function o(s){o.__super__.constructor.call(this,s),this.isDummy=!0}return o.prototype.clone=function(){return Object.create(this)},o.prototype.toString=function(s){return""},o}(t)}).call(fk)});var _t=R(function(pk,gk){(function(){var e,t,n,r,i,o,s,a,c,u,d,f,h,p,g,y={}.hasOwnProperty;g=ar(),p=g.isObject,h=g.isFunction,f=g.isEmpty,d=g.getValue,o=null,e=null,t=null,n=null,r=null,c=null,u=null,a=null,i=null,gk.exports=s=function(){function v(b){if(this.parent=b,this.parent)this.options=this.parent.options,this.stringify=this.parent.stringify;if(this.children=[],!o)o=Va(),e=Xa(),t=Ka(),n=Za(),r=tc(),c=nc(),u=rc(),a=ic(),i=wd()}return v.prototype.element=function(b,_,m){var x,D,A,E,U,C,N,F,S,B,j;if(C=null,_===null&&m==null)S=[{},null],_=S[0],m=S[1];if(_==null)_={};if(_=d(_),!p(_))B=[_,m],m=B[0],_=B[1];if(b!=null)b=d(b);if(Array.isArray(b))for(A=0,N=b.length;A<N;A++)D=b[A],C=this.element(D);else if(h(b))C=this.element(b.apply());else if(p(b))for(U in b){if(!y.call(b,U))continue;if(j=b[U],h(j))j=j.apply();if(p(j)&&f(j))j=null;if(!this.options.ignoreDecorators&&this.stringify.convertAttKey&&U.indexOf(this.stringify.convertAttKey)===0)C=this.attribute(U.substr(this.stringify.convertAttKey.length),j);else if(!this.options.separateArrayItems&&Array.isArray(j))for(E=0,F=j.length;E<F;E++)D=j[E],x={},x[U]=D,C=this.element(x);else if(p(j))C=this.element(U),C.element(j);else C=this.element(U,j)}else if(this.options.skipNullNodes&&m===null)C=this.dummy();else if(!this.options.ignoreDecorators&&this.stringify.convertTextKey&&b.indexOf(this.stringify.convertTextKey)===0)C=this.text(m);else if(!this.options.ignoreDecorators&&this.stringify.convertCDataKey&&b.indexOf(this.stringify.convertCDataKey)===0)C=this.cdata(m);else if(!this.options.ignoreDecorators&&this.stringify.convertCommentKey&&b.indexOf(this.stringify.convertCommentKey)===0)C=this.comment(m);else if(!this.options.ignoreDecorators&&this.stringify.convertRawKey&&b.indexOf(this.stringify.convertRawKey)===0)C=this.raw(m);else if(!this.options.ignoreDecorators&&this.stringify.convertPIKey&&b.indexOf(this.stringify.convertPIKey)===0)C=this.instruction(b.substr(this.stringify.convertPIKey.length),m);else C=this.node(b,_,m);if(C==null)throw Error("Could not create any elements with: "+b+". "+this.debugInfo());return C},v.prototype.insertBefore=function(b,_,m){var x,D,A;if(this.isRoot)throw Error("Cannot insert elements at root level. "+this.debugInfo(b));return D=this.parent.children.indexOf(this),A=this.parent.children.splice(D),x=this.parent.element(b,_,m),Array.prototype.push.apply(this.parent.children,A),x},v.prototype.insertAfter=function(b,_,m){var x,D,A;if(this.isRoot)throw Error("Cannot insert elements at root level. "+this.debugInfo(b));return D=this.parent.children.indexOf(this),A=this.parent.children.splice(D+1),x=this.parent.element(b,_,m),Array.prototype.push.apply(this.parent.children,A),x},v.prototype.remove=function(){var b,_;if(this.isRoot)throw Error("Cannot remove the root element. "+this.debugInfo());return b=this.parent.children.indexOf(this),[].splice.apply(this.parent.children,[b,b-b+1].concat(_=[])),this.parent},v.prototype.node=function(b,_,m){var x,D;if(b!=null)b=d(b);if(_||(_={}),_=d(_),!p(_))D=[_,m],m=D[0],_=D[1];if(x=new o(this,b,_),m!=null)x.text(m);return this.children.push(x),x},v.prototype.text=function(b){var _=new u(this,b);return this.children.push(_),this},v.prototype.cdata=function(b){var _=new e(this,b);return this.children.push(_),this},v.prototype.comment=function(b){var _=new t(this,b);return this.children.push(_),this},v.prototype.commentBefore=function(b){var _,m,x;return m=this.parent.children.indexOf(this),x=this.parent.children.splice(m),_=this.parent.comment(b),Array.prototype.push.apply(this.parent.children,x),this},v.prototype.commentAfter=function(b){var _,m,x;return m=this.parent.children.indexOf(this),x=this.parent.children.splice(m+1),_=this.parent.comment(b),Array.prototype.push.apply(this.parent.children,x),this},v.prototype.raw=function(b){var _=new c(this,b);return this.children.push(_),this},v.prototype.dummy=function(){var b=new i(this);return this.children.push(b),b},v.prototype.instruction=function(b,_){var m,x,D,A,E;if(b!=null)b=d(b);if(_!=null)_=d(_);if(Array.isArray(b))for(A=0,E=b.length;A<E;A++)m=b[A],this.instruction(m);else if(p(b))for(m in b){if(!y.call(b,m))continue;x=b[m],this.instruction(m,x)}else{if(h(_))_=_.apply();D=new a(this,b,_),this.children.push(D)}return this},v.prototype.instructionBefore=function(b,_){var m,x,D;return x=this.parent.children.indexOf(this),D=this.parent.children.splice(x),m=this.parent.instruction(b,_),Array.prototype.push.apply(this.parent.children,D),this},v.prototype.instructionAfter=function(b,_){var m,x,D;return x=this.parent.children.indexOf(this),D=this.parent.children.splice(x+1),m=this.parent.instruction(b,_),Array.prototype.push.apply(this.parent.children,D),this},v.prototype.declaration=function(b,_,m){var x,D;if(x=this.document(),D=new n(x,b,_,m),x.children[0]instanceof n)x.children[0]=D;else x.children.unshift(D);return x.root()||x},v.prototype.doctype=function(b,_){var m,x,D,A,E,U,C,N,F,S;x=this.document(),D=new r(x,b,_),F=x.children;for(A=E=0,C=F.length;E<C;A=++E)if(m=F[A],m instanceof r)return x.children[A]=D,D;S=x.children;for(A=U=0,N=S.length;U<N;A=++U)if(m=S[A],m.isRoot)return x.children.splice(A,0,D),D;return x.children.push(D),D},v.prototype.up=function(){if(this.isRoot)throw Error("The root node has no parent. Use doc() if you need to get the document object.");return this.parent},v.prototype.root=function(){var b=this;while(b)if(b.isDocument)return b.rootObject;else if(b.isRoot)return b;else b=b.parent},v.prototype.document=function(){var b=this;while(b)if(b.isDocument)return b;else b=b.parent},v.prototype.end=function(b){return this.document().end(b)},v.prototype.prev=function(){var b=this.parent.children.indexOf(this);while(b>0&&this.parent.children[b-1].isDummy)b=b-1;if(b<1)throw Error("Already at the first node. "+this.debugInfo());return this.parent.children[b-1]},v.prototype.next=function(){var b=this.parent.children.indexOf(this);while(b<this.parent.children.length-1&&this.parent.children[b+1].isDummy)b=b+1;if(b===-1||b===this.parent.children.length-1)throw Error("Already at the last node. "+this.debugInfo());return this.parent.children[b+1]},v.prototype.importDocument=function(b){var _=b.root().clone();return _.parent=this,_.isRoot=!1,this.children.push(_),this},v.prototype.debugInfo=function(b){var _,m;if(b=b||this.name,b==null&&!((_=this.parent)!=null?_.name:void 0))return"";else if(b==null)return"parent: <"+this.parent.name+">";else if(!((m=this.parent)!=null?m.name:void 0))return"node: <"+b+">";else return"node: <"+b+">, parent: <"+this.parent.name+">"},v.prototype.ele=function(b,_,m){return this.element(b,_,m)},v.prototype.nod=function(b,_,m){return this.node(b,_,m)},v.prototype.txt=function(b){return this.text(b)},v.prototype.dat=function(b){return this.cdata(b)},v.prototype.com=function(b){return this.comment(b)},v.prototype.ins=function(b,_){return this.instruction(b,_)},v.prototype.doc=function(){return this.document()},v.prototype.dec=function(b,_,m){return this.declaration(b,_,m)},v.prototype.dtd=function(b,_){return this.doctype(b,_)},v.prototype.e=function(b,_,m){return this.element(b,_,m)},v.prototype.n=function(b,_,m){return this.node(b,_,m)},v.prototype.t=function(b){return this.text(b)},v.prototype.d=function(b){return this.cdata(b)},v.prototype.c=function(b){return this.comment(b)},v.prototype.r=function(b){return this.raw(b)},v.prototype.i=function(b,_){return this.instruction(b,_)},v.prototype.u=function(){return this.up()},v.prototype.importXMLBuilder=function(b){return this.importDocument(b)},v}()}).call(pk)});var zy=R(function(mk,yk){(function(){var e,t=function(r,i){return function(){return r.apply(i,arguments)}},n={}.hasOwnProperty;yk.exports=e=function(){function r(i){this.assertLegalChar=t(this.assertLegalChar,this);var o,s,a;i||(i={}),this.noDoubleEncoding=i.noDoubleEncoding,s=i.stringify||{};for(o in s){if(!n.call(s,o))continue;a=s[o],this[o]=a}}return r.prototype.eleName=function(i){return i=""+i||"",this.assertLegalChar(i)},r.prototype.eleText=function(i){return i=""+i||"",this.assertLegalChar(this.elEscape(i))},r.prototype.cdata=function(i){return i=""+i||"",i=i.replace("]]>","]]]]><![CDATA[>"),this.assertLegalChar(i)},r.prototype.comment=function(i){if(i=""+i||"",i.match(/--/))throw Error("Comment text cannot contain double-hypen: "+i);return this.assertLegalChar(i)},r.prototype.raw=function(i){return""+i||""},r.prototype.attName=function(i){return i=""+i||""},r.prototype.attValue=function(i){return i=""+i||"",this.attEscape(i)},r.prototype.insTarget=function(i){return""+i||""},r.prototype.insValue=function(i){if(i=""+i||"",i.match(/\?>/))throw Error("Invalid processing instruction value: "+i);return i},r.prototype.xmlVersion=function(i){if(i=""+i||"",!i.match(/1\.[0-9]+/))throw Error("Invalid version number: "+i);return i},r.prototype.xmlEncoding=function(i){if(i=""+i||"",!i.match(/^[A-Za-z](?:[A-Za-z0-9._-])*$/))throw Error("Invalid encoding: "+i);return i},r.prototype.xmlStandalone=function(i){if(i)return"yes";else return"no"},r.prototype.dtdPubID=function(i){return""+i||""},r.prototype.dtdSysID=function(i){return""+i||""},r.prototype.dtdElementValue=function(i){return""+i||""},r.prototype.dtdAttType=function(i){return""+i||""},r.prototype.dtdAttDefault=function(i){if(i!=null)return""+i||"";else return i},r.prototype.dtdEntityValue=function(i){return""+i||""},r.prototype.dtdNData=function(i){return""+i||""},r.prototype.convertAttKey="@",r.prototype.convertPIKey="?",r.prototype.convertTextKey="#text",r.prototype.convertCDataKey="#cdata",r.prototype.convertCommentKey="#comment",r.prototype.convertRawKey="#raw",r.prototype.assertLegalChar=function(i){var o=i.match(/[\0\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/);if(o)throw Error("Invalid character in string: "+i+" at index "+o.index);return i},r.prototype.elEscape=function(i){var o=this.noDoubleEncoding?/(?!&\S+;)&/g:/&/g;return i.replace(o,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/\r/g,"&#xD;")},r.prototype.attEscape=function(i){var o=this.noDoubleEncoding?/(?!&\S+;)&/g:/&/g;return i.replace(o,"&amp;").replace(/</g,"&lt;").replace(/"/g,"&quot;").replace(/\t/g,"&#x9;").replace(/\n/g,"&#xA;").replace(/\r/g,"&#xD;")},r}()}).call(mk)});var Vy=R(function(bk,vk){(function(){var e,t={}.hasOwnProperty;vk.exports=e=function(){function n(r){var i,o,s,a,c,u,d,f,h;if(r||(r={}),this.pretty=r.pretty||!1,this.allowEmpty=(o=r.allowEmpty)!=null?o:!1,this.pretty)this.indent=(s=r.indent)!=null?s:" ",this.newline=(a=r.newline)!=null?a:`
203
203
  `,this.offset=(c=r.offset)!=null?c:0,this.dontprettytextnodes=(u=r.dontprettytextnodes)!=null?u:0;else this.indent="",this.newline="",this.offset=0,this.dontprettytextnodes=0;if(this.spacebeforeslash=(d=r.spacebeforeslash)!=null?d:"",this.spacebeforeslash===!0)this.spacebeforeslash=" ";this.newlinedefault=this.newline,this.prettydefault=this.pretty,f=r.writer||{};for(i in f){if(!t.call(f,i))continue;h=f[i],this[i]=h}}return n.prototype.set=function(r){var i,o,s;if(r||(r={}),"pretty"in r)this.pretty=r.pretty;if("allowEmpty"in r)this.allowEmpty=r.allowEmpty;if(this.pretty)this.indent="indent"in r?r.indent:" ",this.newline="newline"in r?r.newline:`
204
- `,this.offset="offset"in r?r.offset:0,this.dontprettytextnodes="dontprettytextnodes"in r?r.dontprettytextnodes:0;else this.indent="",this.newline="",this.offset=0,this.dontprettytextnodes=0;if(this.spacebeforeslash="spacebeforeslash"in r?r.spacebeforeslash:"",this.spacebeforeslash===!0)this.spacebeforeslash=" ";this.newlinedefault=this.newline,this.prettydefault=this.pretty,o=r.writer||{};for(i in o){if(!t.call(o,i))continue;s=o[i],this[i]=s}return this},n.prototype.space=function(r){var i;if(this.pretty)if(i=(r||0)+this.offset+1,i>0)return Array(i).join(this.indent);else return"";else return""},n}()}).call(bk)});var Dd=R(function(xk,_k){(function(){var e,t,n,r,i,o,s,a,c,u,d,f,h,p,g,y=function(b,_){for(var m in _)if(v.call(_,m))b[m]=_[m];function x(){this.constructor=b}return x.prototype=_.prototype,b.prototype=new x,b.__super__=_.prototype,b},v={}.hasOwnProperty;s=Za(),a=tc(),e=Xa(),t=Ka(),u=Va(),f=nc(),p=rc(),d=ic(),c=wd(),n=Ya(),r=Qa(),i=Ja(),o=ec(),g=Vy(),_k.exports=h=function(b){y(_,b);function _(m){_.__super__.constructor.call(this,m)}return _.prototype.document=function(m){var x,D,A,E,U;this.textispresent=!1,E="",U=m.children;for(D=0,A=U.length;D<A;D++){if(x=U[D],x instanceof c)continue;E+=function(){switch(!1){case!(x instanceof s):return this.declaration(x);case!(x instanceof a):return this.docType(x);case!(x instanceof t):return this.comment(x);case!(x instanceof d):return this.processingInstruction(x);default:return this.element(x,0)}}.call(this)}if(this.pretty&&E.slice(-this.newline.length)===this.newline)E=E.slice(0,-this.newline.length);return E},_.prototype.attribute=function(m){return" "+m.name+'="'+m.value+'"'},_.prototype.cdata=function(m,x){return this.space(x)+"<![CDATA["+m.text+"]]>"+this.newline},_.prototype.comment=function(m,x){return this.space(x)+"<!-- "+m.text+" -->"+this.newline},_.prototype.declaration=function(m,x){var D=this.space(x);if(D+='<?xml version="'+m.version+'"',m.encoding!=null)D+=' encoding="'+m.encoding+'"';if(m.standalone!=null)D+=' standalone="'+m.standalone+'"';return D+=this.spacebeforeslash+"?>",D+=this.newline,D},_.prototype.docType=function(m,x){var D,A,E,U,C;if(x||(x=0),U=this.space(x),U+="<!DOCTYPE "+m.root().name,m.pubID&&m.sysID)U+=' PUBLIC "'+m.pubID+'" "'+m.sysID+'"';else if(m.sysID)U+=' SYSTEM "'+m.sysID+'"';if(m.children.length>0){U+=" [",U+=this.newline,C=m.children;for(A=0,E=C.length;A<E;A++)D=C[A],U+=function(){switch(!1){case!(D instanceof n):return this.dtdAttList(D,x+1);case!(D instanceof r):return this.dtdElement(D,x+1);case!(D instanceof i):return this.dtdEntity(D,x+1);case!(D instanceof o):return this.dtdNotation(D,x+1);case!(D instanceof e):return this.cdata(D,x+1);case!(D instanceof t):return this.comment(D,x+1);case!(D instanceof d):return this.processingInstruction(D,x+1);default:throw Error("Unknown DTD node type: "+D.constructor.name)}}.call(this);U+="]"}return U+=this.spacebeforeslash+">",U+=this.newline,U},_.prototype.element=function(m,x){var D,A,E,U,C,N,F,S,B,j,G,T,O;if(x||(x=0),O=!1,this.textispresent)this.newline="",this.pretty=!1;else this.newline=this.newlinedefault,this.pretty=this.prettydefault;T=this.space(x),S="",S+=T+"<"+m.name,B=m.attributes;for(F in B){if(!v.call(B,F))continue;D=B[F],S+=this.attribute(D)}if(m.children.length===0||m.children.every(function(k){return k.value===""}))if(this.allowEmpty)S+="></"+m.name+">"+this.newline;else S+=this.spacebeforeslash+"/>"+this.newline;else if(this.pretty&&m.children.length===1&&m.children[0].value!=null)S+=">",S+=m.children[0].value,S+="</"+m.name+">"+this.newline;else{if(this.dontprettytextnodes){j=m.children;for(E=0,C=j.length;E<C;E++)if(A=j[E],A.value!=null){this.textispresent++,O=!0;break}}if(this.textispresent)this.newline="",this.pretty=!1,T=this.space(x);S+=">"+this.newline,G=m.children;for(U=0,N=G.length;U<N;U++)A=G[U],S+=function(){switch(!1){case!(A instanceof e):return this.cdata(A,x+1);case!(A instanceof t):return this.comment(A,x+1);case!(A instanceof u):return this.element(A,x+1);case!(A instanceof f):return this.raw(A,x+1);case!(A instanceof p):return this.text(A,x+1);case!(A instanceof d):return this.processingInstruction(A,x+1);case!(A instanceof c):return"";default:throw Error("Unknown XML node type: "+A.constructor.name)}}.call(this);if(O)this.textispresent--;if(!this.textispresent)this.newline=this.newlinedefault,this.pretty=this.prettydefault;S+=T+"</"+m.name+">"+this.newline}return S},_.prototype.processingInstruction=function(m,x){var D=this.space(x)+"<?"+m.target;if(m.value)D+=" "+m.value;return D+=this.spacebeforeslash+"?>"+this.newline,D},_.prototype.raw=function(m,x){return this.space(x)+m.value+this.newline},_.prototype.text=function(m,x){return this.space(x)+m.value+this.newline},_.prototype.dtdAttList=function(m,x){var D=this.space(x)+"<!ATTLIST "+m.elementName+" "+m.attributeName+" "+m.attributeType;if(m.defaultValueType!=="#DEFAULT")D+=" "+m.defaultValueType;if(m.defaultValue)D+=' "'+m.defaultValue+'"';return D+=this.spacebeforeslash+">"+this.newline,D},_.prototype.dtdElement=function(m,x){return this.space(x)+"<!ELEMENT "+m.name+" "+m.value+this.spacebeforeslash+">"+this.newline},_.prototype.dtdEntity=function(m,x){var D=this.space(x)+"<!ENTITY";if(m.pe)D+=" %";if(D+=" "+m.name,m.value)D+=' "'+m.value+'"';else{if(m.pubID&&m.sysID)D+=' PUBLIC "'+m.pubID+'" "'+m.sysID+'"';else if(m.sysID)D+=' SYSTEM "'+m.sysID+'"';if(m.nData)D+=" NDATA "+m.nData}return D+=this.spacebeforeslash+">"+this.newline,D},_.prototype.dtdNotation=function(m,x){var D=this.space(x)+"<!NOTATION "+m.name;if(m.pubID&&m.sysID)D+=' PUBLIC "'+m.pubID+'" "'+m.sysID+'"';else if(m.pubID)D+=' PUBLIC "'+m.pubID+'"';else if(m.sysID)D+=' SYSTEM "'+m.sysID+'"';return D+=this.spacebeforeslash+">"+this.newline,D},_.prototype.openNode=function(m,x){var D,A,E,U;if(x||(x=0),m instanceof u){E=this.space(x)+"<"+m.name,U=m.attributes;for(A in U){if(!v.call(U,A))continue;D=U[A],E+=this.attribute(D)}return E+=(m.children?">":"/>")+this.newline,E}else{if(E=this.space(x)+"<!DOCTYPE "+m.rootNodeName,m.pubID&&m.sysID)E+=' PUBLIC "'+m.pubID+'" "'+m.sysID+'"';else if(m.sysID)E+=' SYSTEM "'+m.sysID+'"';return E+=(m.children?" [":">")+this.newline,E}},_.prototype.closeNode=function(m,x){switch(x||(x=0),!1){case!(m instanceof u):return this.space(x)+"</"+m.name+">"+this.newline;case!(m instanceof a):return this.space(x)+"]>"+this.newline}},_}(g)}).call(xk)});var Ek=R(function(wk,Dk){(function(){var e,t,n,r,i,o=function(a,c){for(var u in c)if(s.call(c,u))a[u]=c[u];function d(){this.constructor=a}return d.prototype=c.prototype,a.prototype=new d,a.__super__=c.prototype,a},s={}.hasOwnProperty;i=ar().isPlainObject,t=_t(),r=zy(),n=Dd(),Dk.exports=e=function(a){o(c,a);function c(u){if(c.__super__.constructor.call(this,null),this.name="?xml",u||(u={}),!u.writer)u.writer=new n;this.options=u,this.stringify=new r(u),this.isDocument=!0}return c.prototype.end=function(u){var d;if(!u)u=this.options.writer;else if(i(u))d=u,u=this.options.writer.set(d);return u.document(this)},c.prototype.toString=function(u){return this.options.writer.set(u).document(this)},c}(t)}).call(wk)});var Ck=R(function(Tk,Sk){(function(){var e,t,n,r,i,o,s,a,c,u,d,f,h,p,g,y,v,b,_,m,x,D={}.hasOwnProperty;x=ar(),_=x.isObject,b=x.isFunction,m=x.isPlainObject,v=x.getValue,d=Va(),t=Xa(),n=Ka(),h=nc(),y=rc(),f=ic(),a=Za(),c=tc(),r=Ya(),o=Ja(),i=Qa(),s=ec(),e=Gy(),g=zy(),p=Dd(),Sk.exports=u=function(){function A(E,U,C){var N;if(this.name="?xml",E||(E={}),!E.writer)E.writer=new p(E);else if(m(E.writer))N=E.writer,E.writer=new p(N);this.options=E,this.writer=E.writer,this.stringify=new g(E),this.onDataCallback=U||function(){},this.onEndCallback=C||function(){},this.currentNode=null,this.currentLevel=-1,this.openTags={},this.documentStarted=!1,this.documentCompleted=!1,this.root=null}return A.prototype.node=function(E,U,C){var N,F;if(E==null)throw Error("Missing node name.");if(this.root&&this.currentLevel===-1)throw Error("Document can only have one root node. "+this.debugInfo(E));if(this.openCurrent(),E=v(E),U===null&&C==null)N=[{},null],U=N[0],C=N[1];if(U==null)U={};if(U=v(U),!_(U))F=[U,C],C=F[0],U=F[1];if(this.currentNode=new d(this,E,U),this.currentNode.children=!1,this.currentLevel++,this.openTags[this.currentLevel]=this.currentNode,C!=null)this.text(C);return this},A.prototype.element=function(E,U,C){if(this.currentNode&&this.currentNode instanceof c)return this.dtdElement.apply(this,arguments);else return this.node(E,U,C)},A.prototype.attribute=function(E,U){var C,N;if(!this.currentNode||this.currentNode.children)throw Error("att() can only be used immediately after an ele() call in callback mode. "+this.debugInfo(E));if(E!=null)E=v(E);if(_(E))for(C in E){if(!D.call(E,C))continue;N=E[C],this.attribute(C,N)}else{if(b(U))U=U.apply();if(!this.options.skipNullAttributes||U!=null)this.currentNode.attributes[E]=new e(this,E,U)}return this},A.prototype.text=function(E){var U;return this.openCurrent(),U=new y(this,E),this.onData(this.writer.text(U,this.currentLevel+1),this.currentLevel+1),this},A.prototype.cdata=function(E){var U;return this.openCurrent(),U=new t(this,E),this.onData(this.writer.cdata(U,this.currentLevel+1),this.currentLevel+1),this},A.prototype.comment=function(E){var U;return this.openCurrent(),U=new n(this,E),this.onData(this.writer.comment(U,this.currentLevel+1),this.currentLevel+1),this},A.prototype.raw=function(E){var U;return this.openCurrent(),U=new h(this,E),this.onData(this.writer.raw(U,this.currentLevel+1),this.currentLevel+1),this},A.prototype.instruction=function(E,U){var C,N,F,S,B;if(this.openCurrent(),E!=null)E=v(E);if(U!=null)U=v(U);if(Array.isArray(E))for(C=0,S=E.length;C<S;C++)N=E[C],this.instruction(N);else if(_(E))for(N in E){if(!D.call(E,N))continue;F=E[N],this.instruction(N,F)}else{if(b(U))U=U.apply();B=new f(this,E,U),this.onData(this.writer.processingInstruction(B,this.currentLevel+1),this.currentLevel+1)}return this},A.prototype.declaration=function(E,U,C){var N;if(this.openCurrent(),this.documentStarted)throw Error("declaration() must be the first node.");return N=new a(this,E,U,C),this.onData(this.writer.declaration(N,this.currentLevel+1),this.currentLevel+1),this},A.prototype.doctype=function(E,U,C){if(this.openCurrent(),E==null)throw Error("Missing root node name.");if(this.root)throw Error("dtd() must come before the root node.");return this.currentNode=new c(this,U,C),this.currentNode.rootNodeName=E,this.currentNode.children=!1,this.currentLevel++,this.openTags[this.currentLevel]=this.currentNode,this},A.prototype.dtdElement=function(E,U){var C;return this.openCurrent(),C=new i(this,E,U),this.onData(this.writer.dtdElement(C,this.currentLevel+1),this.currentLevel+1),this},A.prototype.attList=function(E,U,C,N,F){var S;return this.openCurrent(),S=new r(this,E,U,C,N,F),this.onData(this.writer.dtdAttList(S,this.currentLevel+1),this.currentLevel+1),this},A.prototype.entity=function(E,U){var C;return this.openCurrent(),C=new o(this,!1,E,U),this.onData(this.writer.dtdEntity(C,this.currentLevel+1),this.currentLevel+1),this},A.prototype.pEntity=function(E,U){var C;return this.openCurrent(),C=new o(this,!0,E,U),this.onData(this.writer.dtdEntity(C,this.currentLevel+1),this.currentLevel+1),this},A.prototype.notation=function(E,U){var C;return this.openCurrent(),C=new s(this,E,U),this.onData(this.writer.dtdNotation(C,this.currentLevel+1),this.currentLevel+1),this},A.prototype.up=function(){if(this.currentLevel<0)throw Error("The document node has no parent.");if(this.currentNode){if(this.currentNode.children)this.closeNode(this.currentNode);else this.openNode(this.currentNode);this.currentNode=null}else this.closeNode(this.openTags[this.currentLevel]);return delete this.openTags[this.currentLevel],this.currentLevel--,this},A.prototype.end=function(){while(this.currentLevel>=0)this.up();return this.onEnd()},A.prototype.openCurrent=function(){if(this.currentNode)return this.currentNode.children=!0,this.openNode(this.currentNode)},A.prototype.openNode=function(E){if(!E.isOpen){if(!this.root&&this.currentLevel===0&&E instanceof d)this.root=E;return this.onData(this.writer.openNode(E,this.currentLevel),this.currentLevel),E.isOpen=!0}},A.prototype.closeNode=function(E){if(!E.isClosed)return this.onData(this.writer.closeNode(E,this.currentLevel),this.currentLevel),E.isClosed=!0},A.prototype.onData=function(E,U){return this.documentStarted=!0,this.onDataCallback(E,U+1)},A.prototype.onEnd=function(){return this.documentCompleted=!0,this.onEndCallback()},A.prototype.debugInfo=function(E){if(E==null)return"";else return"node: <"+E+">"},A.prototype.ele=function(){return this.element.apply(this,arguments)},A.prototype.nod=function(E,U,C){return this.node(E,U,C)},A.prototype.txt=function(E){return this.text(E)},A.prototype.dat=function(E){return this.cdata(E)},A.prototype.com=function(E){return this.comment(E)},A.prototype.ins=function(E,U){return this.instruction(E,U)},A.prototype.dec=function(E,U,C){return this.declaration(E,U,C)},A.prototype.dtd=function(E,U,C){return this.doctype(E,U,C)},A.prototype.e=function(E,U,C){return this.element(E,U,C)},A.prototype.n=function(E,U,C){return this.node(E,U,C)},A.prototype.t=function(E){return this.text(E)},A.prototype.d=function(E){return this.cdata(E)},A.prototype.c=function(E){return this.comment(E)},A.prototype.r=function(E){return this.raw(E)},A.prototype.i=function(E,U){return this.instruction(E,U)},A.prototype.att=function(){if(this.currentNode&&this.currentNode instanceof c)return this.attList.apply(this,arguments);else return this.attribute.apply(this,arguments)},A.prototype.a=function(){if(this.currentNode&&this.currentNode instanceof c)return this.attList.apply(this,arguments);else return this.attribute.apply(this,arguments)},A.prototype.ent=function(E,U){return this.entity(E,U)},A.prototype.pent=function(E,U){return this.pEntity(E,U)},A.prototype.not=function(E,U){return this.notation(E,U)},A}()}).call(Tk)});var kk=R(function(Ak,Uk){(function(){var e,t,n,r,i,o,s,a,c,u,d,f,h,p,g,y=function(b,_){for(var m in _)if(v.call(_,m))b[m]=_[m];function x(){this.constructor=b}return x.prototype=_.prototype,b.prototype=new x,b.__super__=_.prototype,b},v={}.hasOwnProperty;s=Za(),a=tc(),e=Xa(),t=Ka(),u=Va(),f=nc(),p=rc(),d=ic(),c=wd(),n=Ya(),r=Qa(),i=Ja(),o=ec(),g=Vy(),Uk.exports=h=function(b){y(_,b);function _(m,x){_.__super__.constructor.call(this,x),this.stream=m}return _.prototype.document=function(m){var x,D,A,E,U,C,N,F;C=m.children;for(D=0,E=C.length;D<E;D++)x=C[D],x.isLastRootNode=!1;m.children[m.children.length-1].isLastRootNode=!0,N=m.children,F=[];for(A=0,U=N.length;A<U;A++){if(x=N[A],x instanceof c)continue;switch(!1){case!(x instanceof s):F.push(this.declaration(x));break;case!(x instanceof a):F.push(this.docType(x));break;case!(x instanceof t):F.push(this.comment(x));break;case!(x instanceof d):F.push(this.processingInstruction(x));break;default:F.push(this.element(x))}}return F},_.prototype.attribute=function(m){return this.stream.write(" "+m.name+'="'+m.value+'"')},_.prototype.cdata=function(m,x){return this.stream.write(this.space(x)+"<![CDATA["+m.text+"]]>"+this.endline(m))},_.prototype.comment=function(m,x){return this.stream.write(this.space(x)+"<!-- "+m.text+" -->"+this.endline(m))},_.prototype.declaration=function(m,x){if(this.stream.write(this.space(x)),this.stream.write('<?xml version="'+m.version+'"'),m.encoding!=null)this.stream.write(' encoding="'+m.encoding+'"');if(m.standalone!=null)this.stream.write(' standalone="'+m.standalone+'"');return this.stream.write(this.spacebeforeslash+"?>"),this.stream.write(this.endline(m))},_.prototype.docType=function(m,x){var D,A,E,U;if(x||(x=0),this.stream.write(this.space(x)),this.stream.write("<!DOCTYPE "+m.root().name),m.pubID&&m.sysID)this.stream.write(' PUBLIC "'+m.pubID+'" "'+m.sysID+'"');else if(m.sysID)this.stream.write(' SYSTEM "'+m.sysID+'"');if(m.children.length>0){this.stream.write(" ["),this.stream.write(this.endline(m)),U=m.children;for(A=0,E=U.length;A<E;A++)switch(D=U[A],!1){case!(D instanceof n):this.dtdAttList(D,x+1);break;case!(D instanceof r):this.dtdElement(D,x+1);break;case!(D instanceof i):this.dtdEntity(D,x+1);break;case!(D instanceof o):this.dtdNotation(D,x+1);break;case!(D instanceof e):this.cdata(D,x+1);break;case!(D instanceof t):this.comment(D,x+1);break;case!(D instanceof d):this.processingInstruction(D,x+1);break;default:throw Error("Unknown DTD node type: "+D.constructor.name)}this.stream.write("]")}return this.stream.write(this.spacebeforeslash+">"),this.stream.write(this.endline(m))},_.prototype.element=function(m,x){var D,A,E,U,C,N,F,S;x||(x=0),S=this.space(x),this.stream.write(S+"<"+m.name),N=m.attributes;for(C in N){if(!v.call(N,C))continue;D=N[C],this.attribute(D)}if(m.children.length===0||m.children.every(function(B){return B.value===""}))if(this.allowEmpty)this.stream.write("></"+m.name+">");else this.stream.write(this.spacebeforeslash+"/>");else if(this.pretty&&m.children.length===1&&m.children[0].value!=null)this.stream.write(">"),this.stream.write(m.children[0].value),this.stream.write("</"+m.name+">");else{this.stream.write(">"+this.newline),F=m.children;for(E=0,U=F.length;E<U;E++)switch(A=F[E],!1){case!(A instanceof e):this.cdata(A,x+1);break;case!(A instanceof t):this.comment(A,x+1);break;case!(A instanceof u):this.element(A,x+1);break;case!(A instanceof f):this.raw(A,x+1);break;case!(A instanceof p):this.text(A,x+1);break;case!(A instanceof d):this.processingInstruction(A,x+1);break;case!(A instanceof c):break;default:throw Error("Unknown XML node type: "+A.constructor.name)}this.stream.write(S+"</"+m.name+">")}return this.stream.write(this.endline(m))},_.prototype.processingInstruction=function(m,x){if(this.stream.write(this.space(x)+"<?"+m.target),m.value)this.stream.write(" "+m.value);return this.stream.write(this.spacebeforeslash+"?>"+this.endline(m))},_.prototype.raw=function(m,x){return this.stream.write(this.space(x)+m.value+this.endline(m))},_.prototype.text=function(m,x){return this.stream.write(this.space(x)+m.value+this.endline(m))},_.prototype.dtdAttList=function(m,x){if(this.stream.write(this.space(x)+"<!ATTLIST "+m.elementName+" "+m.attributeName+" "+m.attributeType),m.defaultValueType!=="#DEFAULT")this.stream.write(" "+m.defaultValueType);if(m.defaultValue)this.stream.write(' "'+m.defaultValue+'"');return this.stream.write(this.spacebeforeslash+">"+this.endline(m))},_.prototype.dtdElement=function(m,x){return this.stream.write(this.space(x)+"<!ELEMENT "+m.name+" "+m.value),this.stream.write(this.spacebeforeslash+">"+this.endline(m))},_.prototype.dtdEntity=function(m,x){if(this.stream.write(this.space(x)+"<!ENTITY"),m.pe)this.stream.write(" %");if(this.stream.write(" "+m.name),m.value)this.stream.write(' "'+m.value+'"');else{if(m.pubID&&m.sysID)this.stream.write(' PUBLIC "'+m.pubID+'" "'+m.sysID+'"');else if(m.sysID)this.stream.write(' SYSTEM "'+m.sysID+'"');if(m.nData)this.stream.write(" NDATA "+m.nData)}return this.stream.write(this.spacebeforeslash+">"+this.endline(m))},_.prototype.dtdNotation=function(m,x){if(this.stream.write(this.space(x)+"<!NOTATION "+m.name),m.pubID&&m.sysID)this.stream.write(' PUBLIC "'+m.pubID+'" "'+m.sysID+'"');else if(m.pubID)this.stream.write(' PUBLIC "'+m.pubID+'"');else if(m.sysID)this.stream.write(' SYSTEM "'+m.sysID+'"');return this.stream.write(this.spacebeforeslash+">"+this.endline(m))},_.prototype.endline=function(m){if(!m.isLastRootNode)return this.newline;else return""},_}(g)}).call(Ak)});var Fk=R(function(Rk,oc){(function(){var e,t,n,r,i,o,s;s=ar(),i=s.assign,o=s.isFunction,e=Ek(),t=Ck(),r=Dd(),n=kk(),Rk.create=function(a,c,u,d){var f,h;if(a==null)throw Error("Root element needs a name.");if(d=i({},c,u,d),f=new e(d),h=f.element(a),!d.headless){if(f.declaration(d),d.pubID!=null||d.sysID!=null)f.doctype(d)}return h},Rk.begin=function(a,c,u){var d;if(o(a))d=[a,c],c=d[0],u=d[1],a={};if(c)return new t(a,c,u);else return new e(a)},Rk.stringWriter=function(a){return new r(a)},Rk.streamWriter=function(a,c){return new n(a,c)}}).call(Rk)});var Pk=R(function($X){var Ok=Me(),WX=Fk();$X.writeString=jX;function jX(e,t){var n=Ok.invert(t),r={element:o,text:qX};function i(c,u){return r[u.type](c,u)}function o(c,u){var d=c.element(s(u.name),u.attributes);u.children.forEach(function(f){i(d,f)})}function s(c){var u=/^\{(.*)\}(.*)$/.exec(c);if(u){var d=n[u[1]];return d+(d===""?"":":")+u[2]}else return c}function a(c){var u=WX.create(s(c.name),{version:"1.0",encoding:"UTF-8",standalone:!0});return Ok.forEach(t,function(d,f){var h="xmlns"+(f===""?"":":"+f);u.attribute(h,d)}),c.children.forEach(function(d){i(u,d)}),u.end()}return a(e)}function qX(e,t){e.text(t.value)}});var Td=R(function(GX){var Ed=Ay();GX.Element=Ed.Element;GX.element=Ed.element;GX.emptyElement=Ed.emptyElement;GX.text=Ed.text;GX.readString=BU().readString;GX.writeString=Pk().writeString});var Nk=R(function(iK){var JX=Me(),QX=Xn(),eK=Td();iK.read=Ik;iK.readXmlFromZipFile=nK;var tK={"http://schemas.openxmlformats.org/wordprocessingml/2006/main":"w","http://schemas.openxmlformats.org/officeDocument/2006/relationships":"r","http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing":"wp","http://schemas.openxmlformats.org/drawingml/2006/main":"a","http://schemas.openxmlformats.org/drawingml/2006/picture":"pic","http://purl.oclc.org/ooxml/wordprocessingml/main":"w","http://purl.oclc.org/ooxml/officeDocument/relationships":"r","http://purl.oclc.org/ooxml/drawingml/wordprocessingDrawing":"wp","http://purl.oclc.org/ooxml/drawingml/main":"a","http://purl.oclc.org/ooxml/drawingml/picture":"pic","http://schemas.openxmlformats.org/package/2006/content-types":"content-types","http://schemas.openxmlformats.org/package/2006/relationships":"relationships","http://schemas.openxmlformats.org/markup-compatibility/2006":"mc","urn:schemas-microsoft-com:vml":"v","urn:schemas-microsoft-com:office:word":"office-word","http://schemas.microsoft.com/office/word/2010/wordml":"wordml"};function Ik(e){return eK.readString(e,tK).then(function(t){return Mk(t)[0]})}function nK(e,t){if(e.exists(t))return e.read(t,"utf-8").then(rK).then(Ik);else return QX.resolve(null)}function rK(e){return e.replace(/^\uFEFF/g,"")}function Mk(e){if(e.type==="element")if(e.name==="mc:AlternateContent")return e.firstOrEmpty("mc:Fallback").children;else return e.children=JX.flatten(e.children.map(Mk,!0)),[e];else return[e]}});var Lk=R(function(Bk){Object.defineProperty(Bk,"__esModule",{value:!0});var aK=[{"Typeface name":"Symbol","Dingbat dec":"32","Dingbat hex":"20","Unicode dec":"32","Unicode hex":"20"},{"Typeface name":"Symbol","Dingbat dec":"33","Dingbat hex":"21","Unicode dec":"33","Unicode hex":"21"},{"Typeface name":"Symbol","Dingbat dec":"34","Dingbat hex":"22","Unicode dec":"8704","Unicode hex":"2200"},{"Typeface name":"Symbol","Dingbat dec":"35","Dingbat hex":"23","Unicode dec":"35","Unicode hex":"23"},{"Typeface name":"Symbol","Dingbat dec":"36","Dingbat hex":"24","Unicode dec":"8707","Unicode hex":"2203"},{"Typeface name":"Symbol","Dingbat dec":"37","Dingbat hex":"25","Unicode dec":"37","Unicode hex":"25"},{"Typeface name":"Symbol","Dingbat dec":"38","Dingbat hex":"26","Unicode dec":"38","Unicode hex":"26"},{"Typeface name":"Symbol","Dingbat dec":"39","Dingbat hex":"27","Unicode dec":"8717","Unicode hex":"220D"},{"Typeface name":"Symbol","Dingbat dec":"40","Dingbat hex":"28","Unicode dec":"40","Unicode hex":"28"},{"Typeface name":"Symbol","Dingbat dec":"41","Dingbat hex":"29","Unicode dec":"41","Unicode hex":"29"},{"Typeface name":"Symbol","Dingbat dec":"42","Dingbat hex":"2A","Unicode dec":"42","Unicode hex":"2A"},{"Typeface name":"Symbol","Dingbat dec":"43","Dingbat hex":"2B","Unicode dec":"43","Unicode hex":"2B"},{"Typeface name":"Symbol","Dingbat dec":"44","Dingbat hex":"2C","Unicode dec":"44","Unicode hex":"2C"},{"Typeface name":"Symbol","Dingbat dec":"45","Dingbat hex":"2D","Unicode dec":"8722","Unicode hex":"2212"},{"Typeface name":"Symbol","Dingbat dec":"46","Dingbat hex":"2E","Unicode dec":"46","Unicode hex":"2E"},{"Typeface name":"Symbol","Dingbat dec":"47","Dingbat hex":"2F","Unicode dec":"47","Unicode hex":"2F"},{"Typeface name":"Symbol","Dingbat dec":"48","Dingbat hex":"30","Unicode dec":"48","Unicode hex":"30"},{"Typeface name":"Symbol","Dingbat dec":"49","Dingbat hex":"31","Unicode dec":"49","Unicode hex":"31"},{"Typeface name":"Symbol","Dingbat dec":"50","Dingbat hex":"32","Unicode dec":"50","Unicode hex":"32"},{"Typeface name":"Symbol","Dingbat dec":"51","Dingbat hex":"33","Unicode dec":"51","Unicode hex":"33"},{"Typeface name":"Symbol","Dingbat dec":"52","Dingbat hex":"34","Unicode dec":"52","Unicode hex":"34"},{"Typeface name":"Symbol","Dingbat dec":"53","Dingbat hex":"35","Unicode dec":"53","Unicode hex":"35"},{"Typeface name":"Symbol","Dingbat dec":"54","Dingbat hex":"36","Unicode dec":"54","Unicode hex":"36"},{"Typeface name":"Symbol","Dingbat dec":"55","Dingbat hex":"37","Unicode dec":"55","Unicode hex":"37"},{"Typeface name":"Symbol","Dingbat dec":"56","Dingbat hex":"38","Unicode dec":"56","Unicode hex":"38"},{"Typeface name":"Symbol","Dingbat dec":"57","Dingbat hex":"39","Unicode dec":"57","Unicode hex":"39"},{"Typeface name":"Symbol","Dingbat dec":"58","Dingbat hex":"3A","Unicode dec":"58","Unicode hex":"3A"},{"Typeface name":"Symbol","Dingbat dec":"59","Dingbat hex":"3B","Unicode dec":"59","Unicode hex":"3B"},{"Typeface name":"Symbol","Dingbat dec":"60","Dingbat hex":"3C","Unicode dec":"60","Unicode hex":"3C"},{"Typeface name":"Symbol","Dingbat dec":"61","Dingbat hex":"3D","Unicode dec":"61","Unicode hex":"3D"},{"Typeface name":"Symbol","Dingbat dec":"62","Dingbat hex":"3E","Unicode dec":"62","Unicode hex":"3E"},{"Typeface name":"Symbol","Dingbat dec":"63","Dingbat hex":"3F","Unicode dec":"63","Unicode hex":"3F"},{"Typeface name":"Symbol","Dingbat dec":"64","Dingbat hex":"40","Unicode dec":"8773","Unicode hex":"2245"},{"Typeface name":"Symbol","Dingbat dec":"65","Dingbat hex":"41","Unicode dec":"913","Unicode hex":"391"},{"Typeface name":"Symbol","Dingbat dec":"66","Dingbat hex":"42","Unicode dec":"914","Unicode hex":"392"},{"Typeface name":"Symbol","Dingbat dec":"67","Dingbat hex":"43","Unicode dec":"935","Unicode hex":"3A7"},{"Typeface name":"Symbol","Dingbat dec":"68","Dingbat hex":"44","Unicode dec":"916","Unicode hex":"394"},{"Typeface name":"Symbol","Dingbat dec":"69","Dingbat hex":"45","Unicode dec":"917","Unicode hex":"395"},{"Typeface name":"Symbol","Dingbat dec":"70","Dingbat hex":"46","Unicode dec":"934","Unicode hex":"3A6"},{"Typeface name":"Symbol","Dingbat dec":"71","Dingbat hex":"47","Unicode dec":"915","Unicode hex":"393"},{"Typeface name":"Symbol","Dingbat dec":"72","Dingbat hex":"48","Unicode dec":"919","Unicode hex":"397"},{"Typeface name":"Symbol","Dingbat dec":"73","Dingbat hex":"49","Unicode dec":"921","Unicode hex":"399"},{"Typeface name":"Symbol","Dingbat dec":"74","Dingbat hex":"4A","Unicode dec":"977","Unicode hex":"3D1"},{"Typeface name":"Symbol","Dingbat dec":"75","Dingbat hex":"4B","Unicode dec":"922","Unicode hex":"39A"},{"Typeface name":"Symbol","Dingbat dec":"76","Dingbat hex":"4C","Unicode dec":"923","Unicode hex":"39B"},{"Typeface name":"Symbol","Dingbat dec":"77","Dingbat hex":"4D","Unicode dec":"924","Unicode hex":"39C"},{"Typeface name":"Symbol","Dingbat dec":"78","Dingbat hex":"4E","Unicode dec":"925","Unicode hex":"39D"},{"Typeface name":"Symbol","Dingbat dec":"79","Dingbat hex":"4F","Unicode dec":"927","Unicode hex":"39F"},{"Typeface name":"Symbol","Dingbat dec":"80","Dingbat hex":"50","Unicode dec":"928","Unicode hex":"3A0"},{"Typeface name":"Symbol","Dingbat dec":"81","Dingbat hex":"51","Unicode dec":"920","Unicode hex":"398"},{"Typeface name":"Symbol","Dingbat dec":"82","Dingbat hex":"52","Unicode dec":"929","Unicode hex":"3A1"},{"Typeface name":"Symbol","Dingbat dec":"83","Dingbat hex":"53","Unicode dec":"931","Unicode hex":"3A3"},{"Typeface name":"Symbol","Dingbat dec":"84","Dingbat hex":"54","Unicode dec":"932","Unicode hex":"3A4"},{"Typeface name":"Symbol","Dingbat dec":"85","Dingbat hex":"55","Unicode dec":"933","Unicode hex":"3A5"},{"Typeface name":"Symbol","Dingbat dec":"86","Dingbat hex":"56","Unicode dec":"962","Unicode hex":"3C2"},{"Typeface name":"Symbol","Dingbat dec":"87","Dingbat hex":"57","Unicode dec":"937","Unicode hex":"3A9"},{"Typeface name":"Symbol","Dingbat dec":"88","Dingbat hex":"58","Unicode dec":"926","Unicode hex":"39E"},{"Typeface name":"Symbol","Dingbat dec":"89","Dingbat hex":"59","Unicode dec":"936","Unicode hex":"3A8"},{"Typeface name":"Symbol","Dingbat dec":"90","Dingbat hex":"5A","Unicode dec":"918","Unicode hex":"396"},{"Typeface name":"Symbol","Dingbat dec":"91","Dingbat hex":"5B","Unicode dec":"91","Unicode hex":"5B"},{"Typeface name":"Symbol","Dingbat dec":"92","Dingbat hex":"5C","Unicode dec":"8756","Unicode hex":"2234"},{"Typeface name":"Symbol","Dingbat dec":"93","Dingbat hex":"5D","Unicode dec":"93","Unicode hex":"5D"},{"Typeface name":"Symbol","Dingbat dec":"94","Dingbat hex":"5E","Unicode dec":"8869","Unicode hex":"22A5"},{"Typeface name":"Symbol","Dingbat dec":"95","Dingbat hex":"5F","Unicode dec":"95","Unicode hex":"5F"},{"Typeface name":"Symbol","Dingbat dec":"96","Dingbat hex":"60","Unicode dec":"8254","Unicode hex":"203E"},{"Typeface name":"Symbol","Dingbat dec":"97","Dingbat hex":"61","Unicode dec":"945","Unicode hex":"3B1"},{"Typeface name":"Symbol","Dingbat dec":"98","Dingbat hex":"62","Unicode dec":"946","Unicode hex":"3B2"},{"Typeface name":"Symbol","Dingbat dec":"99","Dingbat hex":"63","Unicode dec":"967","Unicode hex":"3C7"},{"Typeface name":"Symbol","Dingbat dec":"100","Dingbat hex":"64","Unicode dec":"948","Unicode hex":"3B4"},{"Typeface name":"Symbol","Dingbat dec":"101","Dingbat hex":"65","Unicode dec":"949","Unicode hex":"3B5"},{"Typeface name":"Symbol","Dingbat dec":"102","Dingbat hex":"66","Unicode dec":"966","Unicode hex":"3C6"},{"Typeface name":"Symbol","Dingbat dec":"103","Dingbat hex":"67","Unicode dec":"947","Unicode hex":"3B3"},{"Typeface name":"Symbol","Dingbat dec":"104","Dingbat hex":"68","Unicode dec":"951","Unicode hex":"3B7"},{"Typeface name":"Symbol","Dingbat dec":"105","Dingbat hex":"69","Unicode dec":"953","Unicode hex":"3B9"},{"Typeface name":"Symbol","Dingbat dec":"106","Dingbat hex":"6A","Unicode dec":"981","Unicode hex":"3D5"},{"Typeface name":"Symbol","Dingbat dec":"107","Dingbat hex":"6B","Unicode dec":"954","Unicode hex":"3BA"},{"Typeface name":"Symbol","Dingbat dec":"108","Dingbat hex":"6C","Unicode dec":"955","Unicode hex":"3BB"},{"Typeface name":"Symbol","Dingbat dec":"109","Dingbat hex":"6D","Unicode dec":"956","Unicode hex":"3BC"},{"Typeface name":"Symbol","Dingbat dec":"110","Dingbat hex":"6E","Unicode dec":"957","Unicode hex":"3BD"},{"Typeface name":"Symbol","Dingbat dec":"111","Dingbat hex":"6F","Unicode dec":"959","Unicode hex":"3BF"},{"Typeface name":"Symbol","Dingbat dec":"112","Dingbat hex":"70","Unicode dec":"960","Unicode hex":"3C0"},{"Typeface name":"Symbol","Dingbat dec":"113","Dingbat hex":"71","Unicode dec":"952","Unicode hex":"3B8"},{"Typeface name":"Symbol","Dingbat dec":"114","Dingbat hex":"72","Unicode dec":"961","Unicode hex":"3C1"},{"Typeface name":"Symbol","Dingbat dec":"115","Dingbat hex":"73","Unicode dec":"963","Unicode hex":"3C3"},{"Typeface name":"Symbol","Dingbat dec":"116","Dingbat hex":"74","Unicode dec":"964","Unicode hex":"3C4"},{"Typeface name":"Symbol","Dingbat dec":"117","Dingbat hex":"75","Unicode dec":"965","Unicode hex":"3C5"},{"Typeface name":"Symbol","Dingbat dec":"118","Dingbat hex":"76","Unicode dec":"982","Unicode hex":"3D6"},{"Typeface name":"Symbol","Dingbat dec":"119","Dingbat hex":"77","Unicode dec":"969","Unicode hex":"3C9"},{"Typeface name":"Symbol","Dingbat dec":"120","Dingbat hex":"78","Unicode dec":"958","Unicode hex":"3BE"},{"Typeface name":"Symbol","Dingbat dec":"121","Dingbat hex":"79","Unicode dec":"968","Unicode hex":"3C8"},{"Typeface name":"Symbol","Dingbat dec":"122","Dingbat hex":"7A","Unicode dec":"950","Unicode hex":"3B6"},{"Typeface name":"Symbol","Dingbat dec":"123","Dingbat hex":"7B","Unicode dec":"123","Unicode hex":"7B"},{"Typeface name":"Symbol","Dingbat dec":"124","Dingbat hex":"7C","Unicode dec":"124","Unicode hex":"7C"},{"Typeface name":"Symbol","Dingbat dec":"125","Dingbat hex":"7D","Unicode dec":"125","Unicode hex":"7D"},{"Typeface name":"Symbol","Dingbat dec":"126","Dingbat hex":"7E","Unicode dec":"126","Unicode hex":"7E"},{"Typeface name":"Symbol","Dingbat dec":"160","Dingbat hex":"A0","Unicode dec":"8364","Unicode hex":"20AC"},{"Typeface name":"Symbol","Dingbat dec":"161","Dingbat hex":"A1","Unicode dec":"978","Unicode hex":"3D2"},{"Typeface name":"Symbol","Dingbat dec":"162","Dingbat hex":"A2","Unicode dec":"8242","Unicode hex":"2032"},{"Typeface name":"Symbol","Dingbat dec":"163","Dingbat hex":"A3","Unicode dec":"8804","Unicode hex":"2264"},{"Typeface name":"Symbol","Dingbat dec":"164","Dingbat hex":"A4","Unicode dec":"8260","Unicode hex":"2044"},{"Typeface name":"Symbol","Dingbat dec":"165","Dingbat hex":"A5","Unicode dec":"8734","Unicode hex":"221E"},{"Typeface name":"Symbol","Dingbat dec":"166","Dingbat hex":"A6","Unicode dec":"402","Unicode hex":"192"},{"Typeface name":"Symbol","Dingbat dec":"167","Dingbat hex":"A7","Unicode dec":"9827","Unicode hex":"2663"},{"Typeface name":"Symbol","Dingbat dec":"168","Dingbat hex":"A8","Unicode dec":"9830","Unicode hex":"2666"},{"Typeface name":"Symbol","Dingbat dec":"169","Dingbat hex":"A9","Unicode dec":"9829","Unicode hex":"2665"},{"Typeface name":"Symbol","Dingbat dec":"170","Dingbat hex":"AA","Unicode dec":"9824","Unicode hex":"2660"},{"Typeface name":"Symbol","Dingbat dec":"171","Dingbat hex":"AB","Unicode dec":"8596","Unicode hex":"2194"},{"Typeface name":"Symbol","Dingbat dec":"172","Dingbat hex":"AC","Unicode dec":"8592","Unicode hex":"2190"},{"Typeface name":"Symbol","Dingbat dec":"173","Dingbat hex":"AD","Unicode dec":"8593","Unicode hex":"2191"},{"Typeface name":"Symbol","Dingbat dec":"174","Dingbat hex":"AE","Unicode dec":"8594","Unicode hex":"2192"},{"Typeface name":"Symbol","Dingbat dec":"175","Dingbat hex":"AF","Unicode dec":"8595","Unicode hex":"2193"},{"Typeface name":"Symbol","Dingbat dec":"176","Dingbat hex":"B0","Unicode dec":"176","Unicode hex":"B0"},{"Typeface name":"Symbol","Dingbat dec":"177","Dingbat hex":"B1","Unicode dec":"177","Unicode hex":"B1"},{"Typeface name":"Symbol","Dingbat dec":"178","Dingbat hex":"B2","Unicode dec":"8243","Unicode hex":"2033"},{"Typeface name":"Symbol","Dingbat dec":"179","Dingbat hex":"B3","Unicode dec":"8805","Unicode hex":"2265"},{"Typeface name":"Symbol","Dingbat dec":"180","Dingbat hex":"B4","Unicode dec":"215","Unicode hex":"D7"},{"Typeface name":"Symbol","Dingbat dec":"181","Dingbat hex":"B5","Unicode dec":"8733","Unicode hex":"221D"},{"Typeface name":"Symbol","Dingbat dec":"182","Dingbat hex":"B6","Unicode dec":"8706","Unicode hex":"2202"},{"Typeface name":"Symbol","Dingbat dec":"183","Dingbat hex":"B7","Unicode dec":"8226","Unicode hex":"2022"},{"Typeface name":"Symbol","Dingbat dec":"184","Dingbat hex":"B8","Unicode dec":"247","Unicode hex":"F7"},{"Typeface name":"Symbol","Dingbat dec":"185","Dingbat hex":"B9","Unicode dec":"8800","Unicode hex":"2260"},{"Typeface name":"Symbol","Dingbat dec":"186","Dingbat hex":"BA","Unicode dec":"8801","Unicode hex":"2261"},{"Typeface name":"Symbol","Dingbat dec":"187","Dingbat hex":"BB","Unicode dec":"8776","Unicode hex":"2248"},{"Typeface name":"Symbol","Dingbat dec":"188","Dingbat hex":"BC","Unicode dec":"8230","Unicode hex":"2026"},{"Typeface name":"Symbol","Dingbat dec":"189","Dingbat hex":"BD","Unicode dec":"9168","Unicode hex":"23D0"},{"Typeface name":"Symbol","Dingbat dec":"190","Dingbat hex":"BE","Unicode dec":"9135","Unicode hex":"23AF"},{"Typeface name":"Symbol","Dingbat dec":"191","Dingbat hex":"BF","Unicode dec":"8629","Unicode hex":"21B5"},{"Typeface name":"Symbol","Dingbat dec":"192","Dingbat hex":"C0","Unicode dec":"8501","Unicode hex":"2135"},{"Typeface name":"Symbol","Dingbat dec":"193","Dingbat hex":"C1","Unicode dec":"8465","Unicode hex":"2111"},{"Typeface name":"Symbol","Dingbat dec":"194","Dingbat hex":"C2","Unicode dec":"8476","Unicode hex":"211C"},{"Typeface name":"Symbol","Dingbat dec":"195","Dingbat hex":"C3","Unicode dec":"8472","Unicode hex":"2118"},{"Typeface name":"Symbol","Dingbat dec":"196","Dingbat hex":"C4","Unicode dec":"8855","Unicode hex":"2297"},{"Typeface name":"Symbol","Dingbat dec":"197","Dingbat hex":"C5","Unicode dec":"8853","Unicode hex":"2295"},{"Typeface name":"Symbol","Dingbat dec":"198","Dingbat hex":"C6","Unicode dec":"8709","Unicode hex":"2205"},{"Typeface name":"Symbol","Dingbat dec":"199","Dingbat hex":"C7","Unicode dec":"8745","Unicode hex":"2229"},{"Typeface name":"Symbol","Dingbat dec":"200","Dingbat hex":"C8","Unicode dec":"8746","Unicode hex":"222A"},{"Typeface name":"Symbol","Dingbat dec":"201","Dingbat hex":"C9","Unicode dec":"8835","Unicode hex":"2283"},{"Typeface name":"Symbol","Dingbat dec":"202","Dingbat hex":"CA","Unicode dec":"8839","Unicode hex":"2287"},{"Typeface name":"Symbol","Dingbat dec":"203","Dingbat hex":"CB","Unicode dec":"8836","Unicode hex":"2284"},{"Typeface name":"Symbol","Dingbat dec":"204","Dingbat hex":"CC","Unicode dec":"8834","Unicode hex":"2282"},{"Typeface name":"Symbol","Dingbat dec":"205","Dingbat hex":"CD","Unicode dec":"8838","Unicode hex":"2286"},{"Typeface name":"Symbol","Dingbat dec":"206","Dingbat hex":"CE","Unicode dec":"8712","Unicode hex":"2208"},{"Typeface name":"Symbol","Dingbat dec":"207","Dingbat hex":"CF","Unicode dec":"8713","Unicode hex":"2209"},{"Typeface name":"Symbol","Dingbat dec":"208","Dingbat hex":"D0","Unicode dec":"8736","Unicode hex":"2220"},{"Typeface name":"Symbol","Dingbat dec":"209","Dingbat hex":"D1","Unicode dec":"8711","Unicode hex":"2207"},{"Typeface name":"Symbol","Dingbat dec":"210","Dingbat hex":"D2","Unicode dec":"174","Unicode hex":"AE"},{"Typeface name":"Symbol","Dingbat dec":"211","Dingbat hex":"D3","Unicode dec":"169","Unicode hex":"A9"},{"Typeface name":"Symbol","Dingbat dec":"212","Dingbat hex":"D4","Unicode dec":"8482","Unicode hex":"2122"},{"Typeface name":"Symbol","Dingbat dec":"213","Dingbat hex":"D5","Unicode dec":"8719","Unicode hex":"220F"},{"Typeface name":"Symbol","Dingbat dec":"214","Dingbat hex":"D6","Unicode dec":"8730","Unicode hex":"221A"},{"Typeface name":"Symbol","Dingbat dec":"215","Dingbat hex":"D7","Unicode dec":"8901","Unicode hex":"22C5"},{"Typeface name":"Symbol","Dingbat dec":"216","Dingbat hex":"D8","Unicode dec":"172","Unicode hex":"AC"},{"Typeface name":"Symbol","Dingbat dec":"217","Dingbat hex":"D9","Unicode dec":"8743","Unicode hex":"2227"},{"Typeface name":"Symbol","Dingbat dec":"218","Dingbat hex":"DA","Unicode dec":"8744","Unicode hex":"2228"},{"Typeface name":"Symbol","Dingbat dec":"219","Dingbat hex":"DB","Unicode dec":"8660","Unicode hex":"21D4"},{"Typeface name":"Symbol","Dingbat dec":"220","Dingbat hex":"DC","Unicode dec":"8656","Unicode hex":"21D0"},{"Typeface name":"Symbol","Dingbat dec":"221","Dingbat hex":"DD","Unicode dec":"8657","Unicode hex":"21D1"},{"Typeface name":"Symbol","Dingbat dec":"222","Dingbat hex":"DE","Unicode dec":"8658","Unicode hex":"21D2"},{"Typeface name":"Symbol","Dingbat dec":"223","Dingbat hex":"DF","Unicode dec":"8659","Unicode hex":"21D3"},{"Typeface name":"Symbol","Dingbat dec":"224","Dingbat hex":"E0","Unicode dec":"9674","Unicode hex":"25CA"},{"Typeface name":"Symbol","Dingbat dec":"225","Dingbat hex":"E1","Unicode dec":"12296","Unicode hex":"3008"},{"Typeface name":"Symbol","Dingbat dec":"226","Dingbat hex":"E2","Unicode dec":"174","Unicode hex":"AE"},{"Typeface name":"Symbol","Dingbat dec":"227","Dingbat hex":"E3","Unicode dec":"169","Unicode hex":"A9"},{"Typeface name":"Symbol","Dingbat dec":"228","Dingbat hex":"E4","Unicode dec":"8482","Unicode hex":"2122"},{"Typeface name":"Symbol","Dingbat dec":"229","Dingbat hex":"E5","Unicode dec":"8721","Unicode hex":"2211"},{"Typeface name":"Symbol","Dingbat dec":"230","Dingbat hex":"E6","Unicode dec":"9115","Unicode hex":"239B"},{"Typeface name":"Symbol","Dingbat dec":"231","Dingbat hex":"E7","Unicode dec":"9116","Unicode hex":"239C"},{"Typeface name":"Symbol","Dingbat dec":"232","Dingbat hex":"E8","Unicode dec":"9117","Unicode hex":"239D"},{"Typeface name":"Symbol","Dingbat dec":"233","Dingbat hex":"E9","Unicode dec":"9121","Unicode hex":"23A1"},{"Typeface name":"Symbol","Dingbat dec":"234","Dingbat hex":"EA","Unicode dec":"9122","Unicode hex":"23A2"},{"Typeface name":"Symbol","Dingbat dec":"235","Dingbat hex":"EB","Unicode dec":"9123","Unicode hex":"23A3"},{"Typeface name":"Symbol","Dingbat dec":"236","Dingbat hex":"EC","Unicode dec":"9127","Unicode hex":"23A7"},{"Typeface name":"Symbol","Dingbat dec":"237","Dingbat hex":"ED","Unicode dec":"9128","Unicode hex":"23A8"},{"Typeface name":"Symbol","Dingbat dec":"238","Dingbat hex":"EE","Unicode dec":"9129","Unicode hex":"23A9"},{"Typeface name":"Symbol","Dingbat dec":"239","Dingbat hex":"EF","Unicode dec":"9130","Unicode hex":"23AA"},{"Typeface name":"Symbol","Dingbat dec":"240","Dingbat hex":"F0","Unicode dec":"63743","Unicode hex":"F8FF"},{"Typeface name":"Symbol","Dingbat dec":"241","Dingbat hex":"F1","Unicode dec":"12297","Unicode hex":"3009"},{"Typeface name":"Symbol","Dingbat dec":"242","Dingbat hex":"F2","Unicode dec":"8747","Unicode hex":"222B"},{"Typeface name":"Symbol","Dingbat dec":"243","Dingbat hex":"F3","Unicode dec":"8992","Unicode hex":"2320"},{"Typeface name":"Symbol","Dingbat dec":"244","Dingbat hex":"F4","Unicode dec":"9134","Unicode hex":"23AE"},{"Typeface name":"Symbol","Dingbat dec":"245","Dingbat hex":"F5","Unicode dec":"8993","Unicode hex":"2321"},{"Typeface name":"Symbol","Dingbat dec":"246","Dingbat hex":"F6","Unicode dec":"9118","Unicode hex":"239E"},{"Typeface name":"Symbol","Dingbat dec":"247","Dingbat hex":"F7","Unicode dec":"9119","Unicode hex":"239F"},{"Typeface name":"Symbol","Dingbat dec":"248","Dingbat hex":"F8","Unicode dec":"9120","Unicode hex":"23A0"},{"Typeface name":"Symbol","Dingbat dec":"249","Dingbat hex":"F9","Unicode dec":"9124","Unicode hex":"23A4"},{"Typeface name":"Symbol","Dingbat dec":"250","Dingbat hex":"FA","Unicode dec":"9125","Unicode hex":"23A5"},{"Typeface name":"Symbol","Dingbat dec":"251","Dingbat hex":"FB","Unicode dec":"9126","Unicode hex":"23A6"},{"Typeface name":"Symbol","Dingbat dec":"252","Dingbat hex":"FC","Unicode dec":"9131","Unicode hex":"23AB"},{"Typeface name":"Symbol","Dingbat dec":"253","Dingbat hex":"FD","Unicode dec":"9132","Unicode hex":"23AC"},{"Typeface name":"Symbol","Dingbat dec":"254","Dingbat hex":"FE","Unicode dec":"9133","Unicode hex":"23AD"},{"Typeface name":"Webdings","Dingbat dec":"32","Dingbat hex":"20","Unicode dec":"32","Unicode hex":"20"},{"Typeface name":"Webdings","Dingbat dec":"33","Dingbat hex":"21","Unicode dec":"128375","Unicode hex":"1F577"},{"Typeface name":"Webdings","Dingbat dec":"34","Dingbat hex":"22","Unicode dec":"128376","Unicode hex":"1F578"},{"Typeface name":"Webdings","Dingbat dec":"35","Dingbat hex":"23","Unicode dec":"128370","Unicode hex":"1F572"},{"Typeface name":"Webdings","Dingbat dec":"36","Dingbat hex":"24","Unicode dec":"128374","Unicode hex":"1F576"},{"Typeface name":"Webdings","Dingbat dec":"37","Dingbat hex":"25","Unicode dec":"127942","Unicode hex":"1F3C6"},{"Typeface name":"Webdings","Dingbat dec":"38","Dingbat hex":"26","Unicode dec":"127894","Unicode hex":"1F396"},{"Typeface name":"Webdings","Dingbat dec":"39","Dingbat hex":"27","Unicode dec":"128391","Unicode hex":"1F587"},{"Typeface name":"Webdings","Dingbat dec":"40","Dingbat hex":"28","Unicode dec":"128488","Unicode hex":"1F5E8"},{"Typeface name":"Webdings","Dingbat dec":"41","Dingbat hex":"29","Unicode dec":"128489","Unicode hex":"1F5E9"},{"Typeface name":"Webdings","Dingbat dec":"42","Dingbat hex":"2A","Unicode dec":"128496","Unicode hex":"1F5F0"},{"Typeface name":"Webdings","Dingbat dec":"43","Dingbat hex":"2B","Unicode dec":"128497","Unicode hex":"1F5F1"},{"Typeface name":"Webdings","Dingbat dec":"44","Dingbat hex":"2C","Unicode dec":"127798","Unicode hex":"1F336"},{"Typeface name":"Webdings","Dingbat dec":"45","Dingbat hex":"2D","Unicode dec":"127895","Unicode hex":"1F397"},{"Typeface name":"Webdings","Dingbat dec":"46","Dingbat hex":"2E","Unicode dec":"128638","Unicode hex":"1F67E"},{"Typeface name":"Webdings","Dingbat dec":"47","Dingbat hex":"2F","Unicode dec":"128636","Unicode hex":"1F67C"},{"Typeface name":"Webdings","Dingbat dec":"48","Dingbat hex":"30","Unicode dec":"128469","Unicode hex":"1F5D5"},{"Typeface name":"Webdings","Dingbat dec":"49","Dingbat hex":"31","Unicode dec":"128470","Unicode hex":"1F5D6"},{"Typeface name":"Webdings","Dingbat dec":"50","Dingbat hex":"32","Unicode dec":"128471","Unicode hex":"1F5D7"},{"Typeface name":"Webdings","Dingbat dec":"51","Dingbat hex":"33","Unicode dec":"9204","Unicode hex":"23F4"},{"Typeface name":"Webdings","Dingbat dec":"52","Dingbat hex":"34","Unicode dec":"9205","Unicode hex":"23F5"},{"Typeface name":"Webdings","Dingbat dec":"53","Dingbat hex":"35","Unicode dec":"9206","Unicode hex":"23F6"},{"Typeface name":"Webdings","Dingbat dec":"54","Dingbat hex":"36","Unicode dec":"9207","Unicode hex":"23F7"},{"Typeface name":"Webdings","Dingbat dec":"55","Dingbat hex":"37","Unicode dec":"9194","Unicode hex":"23EA"},{"Typeface name":"Webdings","Dingbat dec":"56","Dingbat hex":"38","Unicode dec":"9193","Unicode hex":"23E9"},{"Typeface name":"Webdings","Dingbat dec":"57","Dingbat hex":"39","Unicode dec":"9198","Unicode hex":"23EE"},{"Typeface name":"Webdings","Dingbat dec":"58","Dingbat hex":"3A","Unicode dec":"9197","Unicode hex":"23ED"},{"Typeface name":"Webdings","Dingbat dec":"59","Dingbat hex":"3B","Unicode dec":"9208","Unicode hex":"23F8"},{"Typeface name":"Webdings","Dingbat dec":"60","Dingbat hex":"3C","Unicode dec":"9209","Unicode hex":"23F9"},{"Typeface name":"Webdings","Dingbat dec":"61","Dingbat hex":"3D","Unicode dec":"9210","Unicode hex":"23FA"},{"Typeface name":"Webdings","Dingbat dec":"62","Dingbat hex":"3E","Unicode dec":"128474","Unicode hex":"1F5DA"},{"Typeface name":"Webdings","Dingbat dec":"63","Dingbat hex":"3F","Unicode dec":"128499","Unicode hex":"1F5F3"},{"Typeface name":"Webdings","Dingbat dec":"64","Dingbat hex":"40","Unicode dec":"128736","Unicode hex":"1F6E0"},{"Typeface name":"Webdings","Dingbat dec":"65","Dingbat hex":"41","Unicode dec":"127959","Unicode hex":"1F3D7"},{"Typeface name":"Webdings","Dingbat dec":"66","Dingbat hex":"42","Unicode dec":"127960","Unicode hex":"1F3D8"},{"Typeface name":"Webdings","Dingbat dec":"67","Dingbat hex":"43","Unicode dec":"127961","Unicode hex":"1F3D9"},{"Typeface name":"Webdings","Dingbat dec":"68","Dingbat hex":"44","Unicode dec":"127962","Unicode hex":"1F3DA"},{"Typeface name":"Webdings","Dingbat dec":"69","Dingbat hex":"45","Unicode dec":"127964","Unicode hex":"1F3DC"},{"Typeface name":"Webdings","Dingbat dec":"70","Dingbat hex":"46","Unicode dec":"127981","Unicode hex":"1F3ED"},{"Typeface name":"Webdings","Dingbat dec":"71","Dingbat hex":"47","Unicode dec":"127963","Unicode hex":"1F3DB"},{"Typeface name":"Webdings","Dingbat dec":"72","Dingbat hex":"48","Unicode dec":"127968","Unicode hex":"1F3E0"},{"Typeface name":"Webdings","Dingbat dec":"73","Dingbat hex":"49","Unicode dec":"127958","Unicode hex":"1F3D6"},{"Typeface name":"Webdings","Dingbat dec":"74","Dingbat hex":"4A","Unicode dec":"127965","Unicode hex":"1F3DD"},{"Typeface name":"Webdings","Dingbat dec":"75","Dingbat hex":"4B","Unicode dec":"128739","Unicode hex":"1F6E3"},{"Typeface name":"Webdings","Dingbat dec":"76","Dingbat hex":"4C","Unicode dec":"128269","Unicode hex":"1F50D"},{"Typeface name":"Webdings","Dingbat dec":"77","Dingbat hex":"4D","Unicode dec":"127956","Unicode hex":"1F3D4"},{"Typeface name":"Webdings","Dingbat dec":"78","Dingbat hex":"4E","Unicode dec":"128065","Unicode hex":"1F441"},{"Typeface name":"Webdings","Dingbat dec":"79","Dingbat hex":"4F","Unicode dec":"128066","Unicode hex":"1F442"},{"Typeface name":"Webdings","Dingbat dec":"80","Dingbat hex":"50","Unicode dec":"127966","Unicode hex":"1F3DE"},{"Typeface name":"Webdings","Dingbat dec":"81","Dingbat hex":"51","Unicode dec":"127957","Unicode hex":"1F3D5"},{"Typeface name":"Webdings","Dingbat dec":"82","Dingbat hex":"52","Unicode dec":"128740","Unicode hex":"1F6E4"},{"Typeface name":"Webdings","Dingbat dec":"83","Dingbat hex":"53","Unicode dec":"127967","Unicode hex":"1F3DF"},{"Typeface name":"Webdings","Dingbat dec":"84","Dingbat hex":"54","Unicode dec":"128755","Unicode hex":"1F6F3"},{"Typeface name":"Webdings","Dingbat dec":"85","Dingbat hex":"55","Unicode dec":"128364","Unicode hex":"1F56C"},{"Typeface name":"Webdings","Dingbat dec":"86","Dingbat hex":"56","Unicode dec":"128363","Unicode hex":"1F56B"},{"Typeface name":"Webdings","Dingbat dec":"87","Dingbat hex":"57","Unicode dec":"128360","Unicode hex":"1F568"},{"Typeface name":"Webdings","Dingbat dec":"88","Dingbat hex":"58","Unicode dec":"128264","Unicode hex":"1F508"},{"Typeface name":"Webdings","Dingbat dec":"89","Dingbat hex":"59","Unicode dec":"127892","Unicode hex":"1F394"},{"Typeface name":"Webdings","Dingbat dec":"90","Dingbat hex":"5A","Unicode dec":"127893","Unicode hex":"1F395"},{"Typeface name":"Webdings","Dingbat dec":"91","Dingbat hex":"5B","Unicode dec":"128492","Unicode hex":"1F5EC"},{"Typeface name":"Webdings","Dingbat dec":"92","Dingbat hex":"5C","Unicode dec":"128637","Unicode hex":"1F67D"},{"Typeface name":"Webdings","Dingbat dec":"93","Dingbat hex":"5D","Unicode dec":"128493","Unicode hex":"1F5ED"},{"Typeface name":"Webdings","Dingbat dec":"94","Dingbat hex":"5E","Unicode dec":"128490","Unicode hex":"1F5EA"},{"Typeface name":"Webdings","Dingbat dec":"95","Dingbat hex":"5F","Unicode dec":"128491","Unicode hex":"1F5EB"},{"Typeface name":"Webdings","Dingbat dec":"96","Dingbat hex":"60","Unicode dec":"11156","Unicode hex":"2B94"},{"Typeface name":"Webdings","Dingbat dec":"97","Dingbat hex":"61","Unicode dec":"10004","Unicode hex":"2714"},{"Typeface name":"Webdings","Dingbat dec":"98","Dingbat hex":"62","Unicode dec":"128690","Unicode hex":"1F6B2"},{"Typeface name":"Webdings","Dingbat dec":"99","Dingbat hex":"63","Unicode dec":"11036","Unicode hex":"2B1C"},{"Typeface name":"Webdings","Dingbat dec":"100","Dingbat hex":"64","Unicode dec":"128737","Unicode hex":"1F6E1"},{"Typeface name":"Webdings","Dingbat dec":"101","Dingbat hex":"65","Unicode dec":"128230","Unicode hex":"1F4E6"},{"Typeface name":"Webdings","Dingbat dec":"102","Dingbat hex":"66","Unicode dec":"128753","Unicode hex":"1F6F1"},{"Typeface name":"Webdings","Dingbat dec":"103","Dingbat hex":"67","Unicode dec":"11035","Unicode hex":"2B1B"},{"Typeface name":"Webdings","Dingbat dec":"104","Dingbat hex":"68","Unicode dec":"128657","Unicode hex":"1F691"},{"Typeface name":"Webdings","Dingbat dec":"105","Dingbat hex":"69","Unicode dec":"128712","Unicode hex":"1F6C8"},{"Typeface name":"Webdings","Dingbat dec":"106","Dingbat hex":"6A","Unicode dec":"128745","Unicode hex":"1F6E9"},{"Typeface name":"Webdings","Dingbat dec":"107","Dingbat hex":"6B","Unicode dec":"128752","Unicode hex":"1F6F0"},{"Typeface name":"Webdings","Dingbat dec":"108","Dingbat hex":"6C","Unicode dec":"128968","Unicode hex":"1F7C8"},{"Typeface name":"Webdings","Dingbat dec":"109","Dingbat hex":"6D","Unicode dec":"128372","Unicode hex":"1F574"},{"Typeface name":"Webdings","Dingbat dec":"110","Dingbat hex":"6E","Unicode dec":"11044","Unicode hex":"2B24"},{"Typeface name":"Webdings","Dingbat dec":"111","Dingbat hex":"6F","Unicode dec":"128741","Unicode hex":"1F6E5"},{"Typeface name":"Webdings","Dingbat dec":"112","Dingbat hex":"70","Unicode dec":"128660","Unicode hex":"1F694"},{"Typeface name":"Webdings","Dingbat dec":"113","Dingbat hex":"71","Unicode dec":"128472","Unicode hex":"1F5D8"},{"Typeface name":"Webdings","Dingbat dec":"114","Dingbat hex":"72","Unicode dec":"128473","Unicode hex":"1F5D9"},{"Typeface name":"Webdings","Dingbat dec":"115","Dingbat hex":"73","Unicode dec":"10067","Unicode hex":"2753"},{"Typeface name":"Webdings","Dingbat dec":"116","Dingbat hex":"74","Unicode dec":"128754","Unicode hex":"1F6F2"},{"Typeface name":"Webdings","Dingbat dec":"117","Dingbat hex":"75","Unicode dec":"128647","Unicode hex":"1F687"},{"Typeface name":"Webdings","Dingbat dec":"118","Dingbat hex":"76","Unicode dec":"128653","Unicode hex":"1F68D"},{"Typeface name":"Webdings","Dingbat dec":"119","Dingbat hex":"77","Unicode dec":"9971","Unicode hex":"26F3"},{"Typeface name":"Webdings","Dingbat dec":"120","Dingbat hex":"78","Unicode dec":"10680","Unicode hex":"29B8"},{"Typeface name":"Webdings","Dingbat dec":"121","Dingbat hex":"79","Unicode dec":"8854","Unicode hex":"2296"},{"Typeface name":"Webdings","Dingbat dec":"122","Dingbat hex":"7A","Unicode dec":"128685","Unicode hex":"1F6AD"},{"Typeface name":"Webdings","Dingbat dec":"123","Dingbat hex":"7B","Unicode dec":"128494","Unicode hex":"1F5EE"},{"Typeface name":"Webdings","Dingbat dec":"124","Dingbat hex":"7C","Unicode dec":"9168","Unicode hex":"23D0"},{"Typeface name":"Webdings","Dingbat dec":"125","Dingbat hex":"7D","Unicode dec":"128495","Unicode hex":"1F5EF"},{"Typeface name":"Webdings","Dingbat dec":"126","Dingbat hex":"7E","Unicode dec":"128498","Unicode hex":"1F5F2"},{"Typeface name":"Webdings","Dingbat dec":"128","Dingbat hex":"80","Unicode dec":"128697","Unicode hex":"1F6B9"},{"Typeface name":"Webdings","Dingbat dec":"129","Dingbat hex":"81","Unicode dec":"128698","Unicode hex":"1F6BA"},{"Typeface name":"Webdings","Dingbat dec":"130","Dingbat hex":"82","Unicode dec":"128713","Unicode hex":"1F6C9"},{"Typeface name":"Webdings","Dingbat dec":"131","Dingbat hex":"83","Unicode dec":"128714","Unicode hex":"1F6CA"},{"Typeface name":"Webdings","Dingbat dec":"132","Dingbat hex":"84","Unicode dec":"128700","Unicode hex":"1F6BC"},{"Typeface name":"Webdings","Dingbat dec":"133","Dingbat hex":"85","Unicode dec":"128125","Unicode hex":"1F47D"},{"Typeface name":"Webdings","Dingbat dec":"134","Dingbat hex":"86","Unicode dec":"127947","Unicode hex":"1F3CB"},{"Typeface name":"Webdings","Dingbat dec":"135","Dingbat hex":"87","Unicode dec":"9975","Unicode hex":"26F7"},{"Typeface name":"Webdings","Dingbat dec":"136","Dingbat hex":"88","Unicode dec":"127938","Unicode hex":"1F3C2"},{"Typeface name":"Webdings","Dingbat dec":"137","Dingbat hex":"89","Unicode dec":"127948","Unicode hex":"1F3CC"},{"Typeface name":"Webdings","Dingbat dec":"138","Dingbat hex":"8A","Unicode dec":"127946","Unicode hex":"1F3CA"},{"Typeface name":"Webdings","Dingbat dec":"139","Dingbat hex":"8B","Unicode dec":"127940","Unicode hex":"1F3C4"},{"Typeface name":"Webdings","Dingbat dec":"140","Dingbat hex":"8C","Unicode dec":"127949","Unicode hex":"1F3CD"},{"Typeface name":"Webdings","Dingbat dec":"141","Dingbat hex":"8D","Unicode dec":"127950","Unicode hex":"1F3CE"},{"Typeface name":"Webdings","Dingbat dec":"142","Dingbat hex":"8E","Unicode dec":"128664","Unicode hex":"1F698"},{"Typeface name":"Webdings","Dingbat dec":"143","Dingbat hex":"8F","Unicode dec":"128480","Unicode hex":"1F5E0"},{"Typeface name":"Webdings","Dingbat dec":"144","Dingbat hex":"90","Unicode dec":"128738","Unicode hex":"1F6E2"},{"Typeface name":"Webdings","Dingbat dec":"145","Dingbat hex":"91","Unicode dec":"128176","Unicode hex":"1F4B0"},{"Typeface name":"Webdings","Dingbat dec":"146","Dingbat hex":"92","Unicode dec":"127991","Unicode hex":"1F3F7"},{"Typeface name":"Webdings","Dingbat dec":"147","Dingbat hex":"93","Unicode dec":"128179","Unicode hex":"1F4B3"},{"Typeface name":"Webdings","Dingbat dec":"148","Dingbat hex":"94","Unicode dec":"128106","Unicode hex":"1F46A"},{"Typeface name":"Webdings","Dingbat dec":"149","Dingbat hex":"95","Unicode dec":"128481","Unicode hex":"1F5E1"},{"Typeface name":"Webdings","Dingbat dec":"150","Dingbat hex":"96","Unicode dec":"128482","Unicode hex":"1F5E2"},{"Typeface name":"Webdings","Dingbat dec":"151","Dingbat hex":"97","Unicode dec":"128483","Unicode hex":"1F5E3"},{"Typeface name":"Webdings","Dingbat dec":"152","Dingbat hex":"98","Unicode dec":"10031","Unicode hex":"272F"},{"Typeface name":"Webdings","Dingbat dec":"153","Dingbat hex":"99","Unicode dec":"128388","Unicode hex":"1F584"},{"Typeface name":"Webdings","Dingbat dec":"154","Dingbat hex":"9A","Unicode dec":"128389","Unicode hex":"1F585"},{"Typeface name":"Webdings","Dingbat dec":"155","Dingbat hex":"9B","Unicode dec":"128387","Unicode hex":"1F583"},{"Typeface name":"Webdings","Dingbat dec":"156","Dingbat hex":"9C","Unicode dec":"128390","Unicode hex":"1F586"},{"Typeface name":"Webdings","Dingbat dec":"157","Dingbat hex":"9D","Unicode dec":"128441","Unicode hex":"1F5B9"},{"Typeface name":"Webdings","Dingbat dec":"158","Dingbat hex":"9E","Unicode dec":"128442","Unicode hex":"1F5BA"},{"Typeface name":"Webdings","Dingbat dec":"159","Dingbat hex":"9F","Unicode dec":"128443","Unicode hex":"1F5BB"},{"Typeface name":"Webdings","Dingbat dec":"160","Dingbat hex":"A0","Unicode dec":"128373","Unicode hex":"1F575"},{"Typeface name":"Webdings","Dingbat dec":"161","Dingbat hex":"A1","Unicode dec":"128368","Unicode hex":"1F570"},{"Typeface name":"Webdings","Dingbat dec":"162","Dingbat hex":"A2","Unicode dec":"128445","Unicode hex":"1F5BD"},{"Typeface name":"Webdings","Dingbat dec":"163","Dingbat hex":"A3","Unicode dec":"128446","Unicode hex":"1F5BE"},{"Typeface name":"Webdings","Dingbat dec":"164","Dingbat hex":"A4","Unicode dec":"128203","Unicode hex":"1F4CB"},{"Typeface name":"Webdings","Dingbat dec":"165","Dingbat hex":"A5","Unicode dec":"128466","Unicode hex":"1F5D2"},{"Typeface name":"Webdings","Dingbat dec":"166","Dingbat hex":"A6","Unicode dec":"128467","Unicode hex":"1F5D3"},{"Typeface name":"Webdings","Dingbat dec":"167","Dingbat hex":"A7","Unicode dec":"128366","Unicode hex":"1F56E"},{"Typeface name":"Webdings","Dingbat dec":"168","Dingbat hex":"A8","Unicode dec":"128218","Unicode hex":"1F4DA"},{"Typeface name":"Webdings","Dingbat dec":"169","Dingbat hex":"A9","Unicode dec":"128478","Unicode hex":"1F5DE"},{"Typeface name":"Webdings","Dingbat dec":"170","Dingbat hex":"AA","Unicode dec":"128479","Unicode hex":"1F5DF"},{"Typeface name":"Webdings","Dingbat dec":"171","Dingbat hex":"AB","Unicode dec":"128451","Unicode hex":"1F5C3"},{"Typeface name":"Webdings","Dingbat dec":"172","Dingbat hex":"AC","Unicode dec":"128450","Unicode hex":"1F5C2"},{"Typeface name":"Webdings","Dingbat dec":"173","Dingbat hex":"AD","Unicode dec":"128444","Unicode hex":"1F5BC"},{"Typeface name":"Webdings","Dingbat dec":"174","Dingbat hex":"AE","Unicode dec":"127917","Unicode hex":"1F3AD"},{"Typeface name":"Webdings","Dingbat dec":"175","Dingbat hex":"AF","Unicode dec":"127900","Unicode hex":"1F39C"},{"Typeface name":"Webdings","Dingbat dec":"176","Dingbat hex":"B0","Unicode dec":"127896","Unicode hex":"1F398"},{"Typeface name":"Webdings","Dingbat dec":"177","Dingbat hex":"B1","Unicode dec":"127897","Unicode hex":"1F399"},{"Typeface name":"Webdings","Dingbat dec":"178","Dingbat hex":"B2","Unicode dec":"127911","Unicode hex":"1F3A7"},{"Typeface name":"Webdings","Dingbat dec":"179","Dingbat hex":"B3","Unicode dec":"128191","Unicode hex":"1F4BF"},{"Typeface name":"Webdings","Dingbat dec":"180","Dingbat hex":"B4","Unicode dec":"127902","Unicode hex":"1F39E"},{"Typeface name":"Webdings","Dingbat dec":"181","Dingbat hex":"B5","Unicode dec":"128247","Unicode hex":"1F4F7"},{"Typeface name":"Webdings","Dingbat dec":"182","Dingbat hex":"B6","Unicode dec":"127903","Unicode hex":"1F39F"},{"Typeface name":"Webdings","Dingbat dec":"183","Dingbat hex":"B7","Unicode dec":"127916","Unicode hex":"1F3AC"},{"Typeface name":"Webdings","Dingbat dec":"184","Dingbat hex":"B8","Unicode dec":"128253","Unicode hex":"1F4FD"},{"Typeface name":"Webdings","Dingbat dec":"185","Dingbat hex":"B9","Unicode dec":"128249","Unicode hex":"1F4F9"},{"Typeface name":"Webdings","Dingbat dec":"186","Dingbat hex":"BA","Unicode dec":"128254","Unicode hex":"1F4FE"},{"Typeface name":"Webdings","Dingbat dec":"187","Dingbat hex":"BB","Unicode dec":"128251","Unicode hex":"1F4FB"},{"Typeface name":"Webdings","Dingbat dec":"188","Dingbat hex":"BC","Unicode dec":"127898","Unicode hex":"1F39A"},{"Typeface name":"Webdings","Dingbat dec":"189","Dingbat hex":"BD","Unicode dec":"127899","Unicode hex":"1F39B"},{"Typeface name":"Webdings","Dingbat dec":"190","Dingbat hex":"BE","Unicode dec":"128250","Unicode hex":"1F4FA"},{"Typeface name":"Webdings","Dingbat dec":"191","Dingbat hex":"BF","Unicode dec":"128187","Unicode hex":"1F4BB"},{"Typeface name":"Webdings","Dingbat dec":"192","Dingbat hex":"C0","Unicode dec":"128421","Unicode hex":"1F5A5"},{"Typeface name":"Webdings","Dingbat dec":"193","Dingbat hex":"C1","Unicode dec":"128422","Unicode hex":"1F5A6"},{"Typeface name":"Webdings","Dingbat dec":"194","Dingbat hex":"C2","Unicode dec":"128423","Unicode hex":"1F5A7"},{"Typeface name":"Webdings","Dingbat dec":"195","Dingbat hex":"C3","Unicode dec":"128377","Unicode hex":"1F579"},{"Typeface name":"Webdings","Dingbat dec":"196","Dingbat hex":"C4","Unicode dec":"127918","Unicode hex":"1F3AE"},{"Typeface name":"Webdings","Dingbat dec":"197","Dingbat hex":"C5","Unicode dec":"128379","Unicode hex":"1F57B"},{"Typeface name":"Webdings","Dingbat dec":"198","Dingbat hex":"C6","Unicode dec":"128380","Unicode hex":"1F57C"},{"Typeface name":"Webdings","Dingbat dec":"199","Dingbat hex":"C7","Unicode dec":"128223","Unicode hex":"1F4DF"},{"Typeface name":"Webdings","Dingbat dec":"200","Dingbat hex":"C8","Unicode dec":"128385","Unicode hex":"1F581"},{"Typeface name":"Webdings","Dingbat dec":"201","Dingbat hex":"C9","Unicode dec":"128384","Unicode hex":"1F580"},{"Typeface name":"Webdings","Dingbat dec":"202","Dingbat hex":"CA","Unicode dec":"128424","Unicode hex":"1F5A8"},{"Typeface name":"Webdings","Dingbat dec":"203","Dingbat hex":"CB","Unicode dec":"128425","Unicode hex":"1F5A9"},{"Typeface name":"Webdings","Dingbat dec":"204","Dingbat hex":"CC","Unicode dec":"128447","Unicode hex":"1F5BF"},{"Typeface name":"Webdings","Dingbat dec":"205","Dingbat hex":"CD","Unicode dec":"128426","Unicode hex":"1F5AA"},{"Typeface name":"Webdings","Dingbat dec":"206","Dingbat hex":"CE","Unicode dec":"128476","Unicode hex":"1F5DC"},{"Typeface name":"Webdings","Dingbat dec":"207","Dingbat hex":"CF","Unicode dec":"128274","Unicode hex":"1F512"},{"Typeface name":"Webdings","Dingbat dec":"208","Dingbat hex":"D0","Unicode dec":"128275","Unicode hex":"1F513"},{"Typeface name":"Webdings","Dingbat dec":"209","Dingbat hex":"D1","Unicode dec":"128477","Unicode hex":"1F5DD"},{"Typeface name":"Webdings","Dingbat dec":"210","Dingbat hex":"D2","Unicode dec":"128229","Unicode hex":"1F4E5"},{"Typeface name":"Webdings","Dingbat dec":"211","Dingbat hex":"D3","Unicode dec":"128228","Unicode hex":"1F4E4"},{"Typeface name":"Webdings","Dingbat dec":"212","Dingbat hex":"D4","Unicode dec":"128371","Unicode hex":"1F573"},{"Typeface name":"Webdings","Dingbat dec":"213","Dingbat hex":"D5","Unicode dec":"127779","Unicode hex":"1F323"},{"Typeface name":"Webdings","Dingbat dec":"214","Dingbat hex":"D6","Unicode dec":"127780","Unicode hex":"1F324"},{"Typeface name":"Webdings","Dingbat dec":"215","Dingbat hex":"D7","Unicode dec":"127781","Unicode hex":"1F325"},{"Typeface name":"Webdings","Dingbat dec":"216","Dingbat hex":"D8","Unicode dec":"127782","Unicode hex":"1F326"},{"Typeface name":"Webdings","Dingbat dec":"217","Dingbat hex":"D9","Unicode dec":"9729","Unicode hex":"2601"},{"Typeface name":"Webdings","Dingbat dec":"218","Dingbat hex":"DA","Unicode dec":"127784","Unicode hex":"1F328"},{"Typeface name":"Webdings","Dingbat dec":"219","Dingbat hex":"DB","Unicode dec":"127783","Unicode hex":"1F327"},{"Typeface name":"Webdings","Dingbat dec":"220","Dingbat hex":"DC","Unicode dec":"127785","Unicode hex":"1F329"},{"Typeface name":"Webdings","Dingbat dec":"221","Dingbat hex":"DD","Unicode dec":"127786","Unicode hex":"1F32A"},{"Typeface name":"Webdings","Dingbat dec":"222","Dingbat hex":"DE","Unicode dec":"127788","Unicode hex":"1F32C"},{"Typeface name":"Webdings","Dingbat dec":"223","Dingbat hex":"DF","Unicode dec":"127787","Unicode hex":"1F32B"},{"Typeface name":"Webdings","Dingbat dec":"224","Dingbat hex":"E0","Unicode dec":"127772","Unicode hex":"1F31C"},{"Typeface name":"Webdings","Dingbat dec":"225","Dingbat hex":"E1","Unicode dec":"127777","Unicode hex":"1F321"},{"Typeface name":"Webdings","Dingbat dec":"226","Dingbat hex":"E2","Unicode dec":"128715","Unicode hex":"1F6CB"},{"Typeface name":"Webdings","Dingbat dec":"227","Dingbat hex":"E3","Unicode dec":"128719","Unicode hex":"1F6CF"},{"Typeface name":"Webdings","Dingbat dec":"228","Dingbat hex":"E4","Unicode dec":"127869","Unicode hex":"1F37D"},{"Typeface name":"Webdings","Dingbat dec":"229","Dingbat hex":"E5","Unicode dec":"127864","Unicode hex":"1F378"},{"Typeface name":"Webdings","Dingbat dec":"230","Dingbat hex":"E6","Unicode dec":"128718","Unicode hex":"1F6CE"},{"Typeface name":"Webdings","Dingbat dec":"231","Dingbat hex":"E7","Unicode dec":"128717","Unicode hex":"1F6CD"},{"Typeface name":"Webdings","Dingbat dec":"232","Dingbat hex":"E8","Unicode dec":"9413","Unicode hex":"24C5"},{"Typeface name":"Webdings","Dingbat dec":"233","Dingbat hex":"E9","Unicode dec":"9855","Unicode hex":"267F"},{"Typeface name":"Webdings","Dingbat dec":"234","Dingbat hex":"EA","Unicode dec":"128710","Unicode hex":"1F6C6"},{"Typeface name":"Webdings","Dingbat dec":"235","Dingbat hex":"EB","Unicode dec":"128392","Unicode hex":"1F588"},{"Typeface name":"Webdings","Dingbat dec":"236","Dingbat hex":"EC","Unicode dec":"127891","Unicode hex":"1F393"},{"Typeface name":"Webdings","Dingbat dec":"237","Dingbat hex":"ED","Unicode dec":"128484","Unicode hex":"1F5E4"},{"Typeface name":"Webdings","Dingbat dec":"238","Dingbat hex":"EE","Unicode dec":"128485","Unicode hex":"1F5E5"},{"Typeface name":"Webdings","Dingbat dec":"239","Dingbat hex":"EF","Unicode dec":"128486","Unicode hex":"1F5E6"},{"Typeface name":"Webdings","Dingbat dec":"240","Dingbat hex":"F0","Unicode dec":"128487","Unicode hex":"1F5E7"},{"Typeface name":"Webdings","Dingbat dec":"241","Dingbat hex":"F1","Unicode dec":"128746","Unicode hex":"1F6EA"},{"Typeface name":"Webdings","Dingbat dec":"242","Dingbat hex":"F2","Unicode dec":"128063","Unicode hex":"1F43F"},{"Typeface name":"Webdings","Dingbat dec":"243","Dingbat hex":"F3","Unicode dec":"128038","Unicode hex":"1F426"},{"Typeface name":"Webdings","Dingbat dec":"244","Dingbat hex":"F4","Unicode dec":"128031","Unicode hex":"1F41F"},{"Typeface name":"Webdings","Dingbat dec":"245","Dingbat hex":"F5","Unicode dec":"128021","Unicode hex":"1F415"},{"Typeface name":"Webdings","Dingbat dec":"246","Dingbat hex":"F6","Unicode dec":"128008","Unicode hex":"1F408"},{"Typeface name":"Webdings","Dingbat dec":"247","Dingbat hex":"F7","Unicode dec":"128620","Unicode hex":"1F66C"},{"Typeface name":"Webdings","Dingbat dec":"248","Dingbat hex":"F8","Unicode dec":"128622","Unicode hex":"1F66E"},{"Typeface name":"Webdings","Dingbat dec":"249","Dingbat hex":"F9","Unicode dec":"128621","Unicode hex":"1F66D"},{"Typeface name":"Webdings","Dingbat dec":"250","Dingbat hex":"FA","Unicode dec":"128623","Unicode hex":"1F66F"},{"Typeface name":"Webdings","Dingbat dec":"251","Dingbat hex":"FB","Unicode dec":"128506","Unicode hex":"1F5FA"},{"Typeface name":"Webdings","Dingbat dec":"252","Dingbat hex":"FC","Unicode dec":"127757","Unicode hex":"1F30D"},{"Typeface name":"Webdings","Dingbat dec":"253","Dingbat hex":"FD","Unicode dec":"127759","Unicode hex":"1F30F"},{"Typeface name":"Webdings","Dingbat dec":"254","Dingbat hex":"FE","Unicode dec":"127758","Unicode hex":"1F30E"},{"Typeface name":"Webdings","Dingbat dec":"255","Dingbat hex":"FF","Unicode dec":"128330","Unicode hex":"1F54A"},{"Typeface name":"Wingdings","Dingbat dec":"32","Dingbat hex":"20","Unicode dec":"32","Unicode hex":"20"},{"Typeface name":"Wingdings","Dingbat dec":"33","Dingbat hex":"21","Unicode dec":"128393","Unicode hex":"1F589"},{"Typeface name":"Wingdings","Dingbat dec":"34","Dingbat hex":"22","Unicode dec":"9986","Unicode hex":"2702"},{"Typeface name":"Wingdings","Dingbat dec":"35","Dingbat hex":"23","Unicode dec":"9985","Unicode hex":"2701"},{"Typeface name":"Wingdings","Dingbat dec":"36","Dingbat hex":"24","Unicode dec":"128083","Unicode hex":"1F453"},{"Typeface name":"Wingdings","Dingbat dec":"37","Dingbat hex":"25","Unicode dec":"128365","Unicode hex":"1F56D"},{"Typeface name":"Wingdings","Dingbat dec":"38","Dingbat hex":"26","Unicode dec":"128366","Unicode hex":"1F56E"},{"Typeface name":"Wingdings","Dingbat dec":"39","Dingbat hex":"27","Unicode dec":"128367","Unicode hex":"1F56F"},{"Typeface name":"Wingdings","Dingbat dec":"40","Dingbat hex":"28","Unicode dec":"128383","Unicode hex":"1F57F"},{"Typeface name":"Wingdings","Dingbat dec":"41","Dingbat hex":"29","Unicode dec":"9990","Unicode hex":"2706"},{"Typeface name":"Wingdings","Dingbat dec":"42","Dingbat hex":"2A","Unicode dec":"128386","Unicode hex":"1F582"},{"Typeface name":"Wingdings","Dingbat dec":"43","Dingbat hex":"2B","Unicode dec":"128387","Unicode hex":"1F583"},{"Typeface name":"Wingdings","Dingbat dec":"44","Dingbat hex":"2C","Unicode dec":"128234","Unicode hex":"1F4EA"},{"Typeface name":"Wingdings","Dingbat dec":"45","Dingbat hex":"2D","Unicode dec":"128235","Unicode hex":"1F4EB"},{"Typeface name":"Wingdings","Dingbat dec":"46","Dingbat hex":"2E","Unicode dec":"128236","Unicode hex":"1F4EC"},{"Typeface name":"Wingdings","Dingbat dec":"47","Dingbat hex":"2F","Unicode dec":"128237","Unicode hex":"1F4ED"},{"Typeface name":"Wingdings","Dingbat dec":"48","Dingbat hex":"30","Unicode dec":"128448","Unicode hex":"1F5C0"},{"Typeface name":"Wingdings","Dingbat dec":"49","Dingbat hex":"31","Unicode dec":"128449","Unicode hex":"1F5C1"},{"Typeface name":"Wingdings","Dingbat dec":"50","Dingbat hex":"32","Unicode dec":"128462","Unicode hex":"1F5CE"},{"Typeface name":"Wingdings","Dingbat dec":"51","Dingbat hex":"33","Unicode dec":"128463","Unicode hex":"1F5CF"},{"Typeface name":"Wingdings","Dingbat dec":"52","Dingbat hex":"34","Unicode dec":"128464","Unicode hex":"1F5D0"},{"Typeface name":"Wingdings","Dingbat dec":"53","Dingbat hex":"35","Unicode dec":"128452","Unicode hex":"1F5C4"},{"Typeface name":"Wingdings","Dingbat dec":"54","Dingbat hex":"36","Unicode dec":"8987","Unicode hex":"231B"},{"Typeface name":"Wingdings","Dingbat dec":"55","Dingbat hex":"37","Unicode dec":"128430","Unicode hex":"1F5AE"},{"Typeface name":"Wingdings","Dingbat dec":"56","Dingbat hex":"38","Unicode dec":"128432","Unicode hex":"1F5B0"},{"Typeface name":"Wingdings","Dingbat dec":"57","Dingbat hex":"39","Unicode dec":"128434","Unicode hex":"1F5B2"},{"Typeface name":"Wingdings","Dingbat dec":"58","Dingbat hex":"3A","Unicode dec":"128435","Unicode hex":"1F5B3"},{"Typeface name":"Wingdings","Dingbat dec":"59","Dingbat hex":"3B","Unicode dec":"128436","Unicode hex":"1F5B4"},{"Typeface name":"Wingdings","Dingbat dec":"60","Dingbat hex":"3C","Unicode dec":"128427","Unicode hex":"1F5AB"},{"Typeface name":"Wingdings","Dingbat dec":"61","Dingbat hex":"3D","Unicode dec":"128428","Unicode hex":"1F5AC"},{"Typeface name":"Wingdings","Dingbat dec":"62","Dingbat hex":"3E","Unicode dec":"9991","Unicode hex":"2707"},{"Typeface name":"Wingdings","Dingbat dec":"63","Dingbat hex":"3F","Unicode dec":"9997","Unicode hex":"270D"},{"Typeface name":"Wingdings","Dingbat dec":"64","Dingbat hex":"40","Unicode dec":"128398","Unicode hex":"1F58E"},{"Typeface name":"Wingdings","Dingbat dec":"65","Dingbat hex":"41","Unicode dec":"9996","Unicode hex":"270C"},{"Typeface name":"Wingdings","Dingbat dec":"66","Dingbat hex":"42","Unicode dec":"128399","Unicode hex":"1F58F"},{"Typeface name":"Wingdings","Dingbat dec":"67","Dingbat hex":"43","Unicode dec":"128077","Unicode hex":"1F44D"},{"Typeface name":"Wingdings","Dingbat dec":"68","Dingbat hex":"44","Unicode dec":"128078","Unicode hex":"1F44E"},{"Typeface name":"Wingdings","Dingbat dec":"69","Dingbat hex":"45","Unicode dec":"9756","Unicode hex":"261C"},{"Typeface name":"Wingdings","Dingbat dec":"70","Dingbat hex":"46","Unicode dec":"9758","Unicode hex":"261E"},{"Typeface name":"Wingdings","Dingbat dec":"71","Dingbat hex":"47","Unicode dec":"9757","Unicode hex":"261D"},{"Typeface name":"Wingdings","Dingbat dec":"72","Dingbat hex":"48","Unicode dec":"9759","Unicode hex":"261F"},{"Typeface name":"Wingdings","Dingbat dec":"73","Dingbat hex":"49","Unicode dec":"128400","Unicode hex":"1F590"},{"Typeface name":"Wingdings","Dingbat dec":"74","Dingbat hex":"4A","Unicode dec":"9786","Unicode hex":"263A"},{"Typeface name":"Wingdings","Dingbat dec":"75","Dingbat hex":"4B","Unicode dec":"128528","Unicode hex":"1F610"},{"Typeface name":"Wingdings","Dingbat dec":"76","Dingbat hex":"4C","Unicode dec":"9785","Unicode hex":"2639"},{"Typeface name":"Wingdings","Dingbat dec":"77","Dingbat hex":"4D","Unicode dec":"128163","Unicode hex":"1F4A3"},{"Typeface name":"Wingdings","Dingbat dec":"78","Dingbat hex":"4E","Unicode dec":"128369","Unicode hex":"1F571"},{"Typeface name":"Wingdings","Dingbat dec":"79","Dingbat hex":"4F","Unicode dec":"127987","Unicode hex":"1F3F3"},{"Typeface name":"Wingdings","Dingbat dec":"80","Dingbat hex":"50","Unicode dec":"127985","Unicode hex":"1F3F1"},{"Typeface name":"Wingdings","Dingbat dec":"81","Dingbat hex":"51","Unicode dec":"9992","Unicode hex":"2708"},{"Typeface name":"Wingdings","Dingbat dec":"82","Dingbat hex":"52","Unicode dec":"9788","Unicode hex":"263C"},{"Typeface name":"Wingdings","Dingbat dec":"83","Dingbat hex":"53","Unicode dec":"127778","Unicode hex":"1F322"},{"Typeface name":"Wingdings","Dingbat dec":"84","Dingbat hex":"54","Unicode dec":"10052","Unicode hex":"2744"},{"Typeface name":"Wingdings","Dingbat dec":"85","Dingbat hex":"55","Unicode dec":"128326","Unicode hex":"1F546"},{"Typeface name":"Wingdings","Dingbat dec":"86","Dingbat hex":"56","Unicode dec":"10014","Unicode hex":"271E"},{"Typeface name":"Wingdings","Dingbat dec":"87","Dingbat hex":"57","Unicode dec":"128328","Unicode hex":"1F548"},{"Typeface name":"Wingdings","Dingbat dec":"88","Dingbat hex":"58","Unicode dec":"10016","Unicode hex":"2720"},{"Typeface name":"Wingdings","Dingbat dec":"89","Dingbat hex":"59","Unicode dec":"10017","Unicode hex":"2721"},{"Typeface name":"Wingdings","Dingbat dec":"90","Dingbat hex":"5A","Unicode dec":"9770","Unicode hex":"262A"},{"Typeface name":"Wingdings","Dingbat dec":"91","Dingbat hex":"5B","Unicode dec":"9775","Unicode hex":"262F"},{"Typeface name":"Wingdings","Dingbat dec":"92","Dingbat hex":"5C","Unicode dec":"128329","Unicode hex":"1F549"},{"Typeface name":"Wingdings","Dingbat dec":"93","Dingbat hex":"5D","Unicode dec":"9784","Unicode hex":"2638"},{"Typeface name":"Wingdings","Dingbat dec":"94","Dingbat hex":"5E","Unicode dec":"9800","Unicode hex":"2648"},{"Typeface name":"Wingdings","Dingbat dec":"95","Dingbat hex":"5F","Unicode dec":"9801","Unicode hex":"2649"},{"Typeface name":"Wingdings","Dingbat dec":"96","Dingbat hex":"60","Unicode dec":"9802","Unicode hex":"264A"},{"Typeface name":"Wingdings","Dingbat dec":"97","Dingbat hex":"61","Unicode dec":"9803","Unicode hex":"264B"},{"Typeface name":"Wingdings","Dingbat dec":"98","Dingbat hex":"62","Unicode dec":"9804","Unicode hex":"264C"},{"Typeface name":"Wingdings","Dingbat dec":"99","Dingbat hex":"63","Unicode dec":"9805","Unicode hex":"264D"},{"Typeface name":"Wingdings","Dingbat dec":"100","Dingbat hex":"64","Unicode dec":"9806","Unicode hex":"264E"},{"Typeface name":"Wingdings","Dingbat dec":"101","Dingbat hex":"65","Unicode dec":"9807","Unicode hex":"264F"},{"Typeface name":"Wingdings","Dingbat dec":"102","Dingbat hex":"66","Unicode dec":"9808","Unicode hex":"2650"},{"Typeface name":"Wingdings","Dingbat dec":"103","Dingbat hex":"67","Unicode dec":"9809","Unicode hex":"2651"},{"Typeface name":"Wingdings","Dingbat dec":"104","Dingbat hex":"68","Unicode dec":"9810","Unicode hex":"2652"},{"Typeface name":"Wingdings","Dingbat dec":"105","Dingbat hex":"69","Unicode dec":"9811","Unicode hex":"2653"},{"Typeface name":"Wingdings","Dingbat dec":"106","Dingbat hex":"6A","Unicode dec":"128624","Unicode hex":"1F670"},{"Typeface name":"Wingdings","Dingbat dec":"107","Dingbat hex":"6B","Unicode dec":"128629","Unicode hex":"1F675"},{"Typeface name":"Wingdings","Dingbat dec":"108","Dingbat hex":"6C","Unicode dec":"9899","Unicode hex":"26AB"},{"Typeface name":"Wingdings","Dingbat dec":"109","Dingbat hex":"6D","Unicode dec":"128318","Unicode hex":"1F53E"},{"Typeface name":"Wingdings","Dingbat dec":"110","Dingbat hex":"6E","Unicode dec":"9724","Unicode hex":"25FC"},{"Typeface name":"Wingdings","Dingbat dec":"111","Dingbat hex":"6F","Unicode dec":"128911","Unicode hex":"1F78F"},{"Typeface name":"Wingdings","Dingbat dec":"112","Dingbat hex":"70","Unicode dec":"128912","Unicode hex":"1F790"},{"Typeface name":"Wingdings","Dingbat dec":"113","Dingbat hex":"71","Unicode dec":"10065","Unicode hex":"2751"},{"Typeface name":"Wingdings","Dingbat dec":"114","Dingbat hex":"72","Unicode dec":"10066","Unicode hex":"2752"},{"Typeface name":"Wingdings","Dingbat dec":"115","Dingbat hex":"73","Unicode dec":"128927","Unicode hex":"1F79F"},{"Typeface name":"Wingdings","Dingbat dec":"116","Dingbat hex":"74","Unicode dec":"10731","Unicode hex":"29EB"},{"Typeface name":"Wingdings","Dingbat dec":"117","Dingbat hex":"75","Unicode dec":"9670","Unicode hex":"25C6"},{"Typeface name":"Wingdings","Dingbat dec":"118","Dingbat hex":"76","Unicode dec":"10070","Unicode hex":"2756"},{"Typeface name":"Wingdings","Dingbat dec":"119","Dingbat hex":"77","Unicode dec":"11049","Unicode hex":"2B29"},{"Typeface name":"Wingdings","Dingbat dec":"120","Dingbat hex":"78","Unicode dec":"8999","Unicode hex":"2327"},{"Typeface name":"Wingdings","Dingbat dec":"121","Dingbat hex":"79","Unicode dec":"11193","Unicode hex":"2BB9"},{"Typeface name":"Wingdings","Dingbat dec":"122","Dingbat hex":"7A","Unicode dec":"8984","Unicode hex":"2318"},{"Typeface name":"Wingdings","Dingbat dec":"123","Dingbat hex":"7B","Unicode dec":"127989","Unicode hex":"1F3F5"},{"Typeface name":"Wingdings","Dingbat dec":"124","Dingbat hex":"7C","Unicode dec":"127990","Unicode hex":"1F3F6"},{"Typeface name":"Wingdings","Dingbat dec":"125","Dingbat hex":"7D","Unicode dec":"128630","Unicode hex":"1F676"},{"Typeface name":"Wingdings","Dingbat dec":"126","Dingbat hex":"7E","Unicode dec":"128631","Unicode hex":"1F677"},{"Typeface name":"Wingdings","Dingbat dec":"127","Dingbat hex":"7F","Unicode dec":"9647","Unicode hex":"25AF"},{"Typeface name":"Wingdings","Dingbat dec":"128","Dingbat hex":"80","Unicode dec":"127243","Unicode hex":"1F10B"},{"Typeface name":"Wingdings","Dingbat dec":"129","Dingbat hex":"81","Unicode dec":"10112","Unicode hex":"2780"},{"Typeface name":"Wingdings","Dingbat dec":"130","Dingbat hex":"82","Unicode dec":"10113","Unicode hex":"2781"},{"Typeface name":"Wingdings","Dingbat dec":"131","Dingbat hex":"83","Unicode dec":"10114","Unicode hex":"2782"},{"Typeface name":"Wingdings","Dingbat dec":"132","Dingbat hex":"84","Unicode dec":"10115","Unicode hex":"2783"},{"Typeface name":"Wingdings","Dingbat dec":"133","Dingbat hex":"85","Unicode dec":"10116","Unicode hex":"2784"},{"Typeface name":"Wingdings","Dingbat dec":"134","Dingbat hex":"86","Unicode dec":"10117","Unicode hex":"2785"},{"Typeface name":"Wingdings","Dingbat dec":"135","Dingbat hex":"87","Unicode dec":"10118","Unicode hex":"2786"},{"Typeface name":"Wingdings","Dingbat dec":"136","Dingbat hex":"88","Unicode dec":"10119","Unicode hex":"2787"},{"Typeface name":"Wingdings","Dingbat dec":"137","Dingbat hex":"89","Unicode dec":"10120","Unicode hex":"2788"},{"Typeface name":"Wingdings","Dingbat dec":"138","Dingbat hex":"8A","Unicode dec":"10121","Unicode hex":"2789"},{"Typeface name":"Wingdings","Dingbat dec":"139","Dingbat hex":"8B","Unicode dec":"127244","Unicode hex":"1F10C"},{"Typeface name":"Wingdings","Dingbat dec":"140","Dingbat hex":"8C","Unicode dec":"10122","Unicode hex":"278A"},{"Typeface name":"Wingdings","Dingbat dec":"141","Dingbat hex":"8D","Unicode dec":"10123","Unicode hex":"278B"},{"Typeface name":"Wingdings","Dingbat dec":"142","Dingbat hex":"8E","Unicode dec":"10124","Unicode hex":"278C"},{"Typeface name":"Wingdings","Dingbat dec":"143","Dingbat hex":"8F","Unicode dec":"10125","Unicode hex":"278D"},{"Typeface name":"Wingdings","Dingbat dec":"144","Dingbat hex":"90","Unicode dec":"10126","Unicode hex":"278E"},{"Typeface name":"Wingdings","Dingbat dec":"145","Dingbat hex":"91","Unicode dec":"10127","Unicode hex":"278F"},{"Typeface name":"Wingdings","Dingbat dec":"146","Dingbat hex":"92","Unicode dec":"10128","Unicode hex":"2790"},{"Typeface name":"Wingdings","Dingbat dec":"147","Dingbat hex":"93","Unicode dec":"10129","Unicode hex":"2791"},{"Typeface name":"Wingdings","Dingbat dec":"148","Dingbat hex":"94","Unicode dec":"10130","Unicode hex":"2792"},{"Typeface name":"Wingdings","Dingbat dec":"149","Dingbat hex":"95","Unicode dec":"10131","Unicode hex":"2793"},{"Typeface name":"Wingdings","Dingbat dec":"150","Dingbat hex":"96","Unicode dec":"128610","Unicode hex":"1F662"},{"Typeface name":"Wingdings","Dingbat dec":"151","Dingbat hex":"97","Unicode dec":"128608","Unicode hex":"1F660"},{"Typeface name":"Wingdings","Dingbat dec":"152","Dingbat hex":"98","Unicode dec":"128609","Unicode hex":"1F661"},{"Typeface name":"Wingdings","Dingbat dec":"153","Dingbat hex":"99","Unicode dec":"128611","Unicode hex":"1F663"},{"Typeface name":"Wingdings","Dingbat dec":"154","Dingbat hex":"9A","Unicode dec":"128606","Unicode hex":"1F65E"},{"Typeface name":"Wingdings","Dingbat dec":"155","Dingbat hex":"9B","Unicode dec":"128604","Unicode hex":"1F65C"},{"Typeface name":"Wingdings","Dingbat dec":"156","Dingbat hex":"9C","Unicode dec":"128605","Unicode hex":"1F65D"},{"Typeface name":"Wingdings","Dingbat dec":"157","Dingbat hex":"9D","Unicode dec":"128607","Unicode hex":"1F65F"},{"Typeface name":"Wingdings","Dingbat dec":"158","Dingbat hex":"9E","Unicode dec":"8729","Unicode hex":"2219"},{"Typeface name":"Wingdings","Dingbat dec":"159","Dingbat hex":"9F","Unicode dec":"8226","Unicode hex":"2022"},{"Typeface name":"Wingdings","Dingbat dec":"160","Dingbat hex":"A0","Unicode dec":"11037","Unicode hex":"2B1D"},{"Typeface name":"Wingdings","Dingbat dec":"161","Dingbat hex":"A1","Unicode dec":"11096","Unicode hex":"2B58"},{"Typeface name":"Wingdings","Dingbat dec":"162","Dingbat hex":"A2","Unicode dec":"128902","Unicode hex":"1F786"},{"Typeface name":"Wingdings","Dingbat dec":"163","Dingbat hex":"A3","Unicode dec":"128904","Unicode hex":"1F788"},{"Typeface name":"Wingdings","Dingbat dec":"164","Dingbat hex":"A4","Unicode dec":"128906","Unicode hex":"1F78A"},{"Typeface name":"Wingdings","Dingbat dec":"165","Dingbat hex":"A5","Unicode dec":"128907","Unicode hex":"1F78B"},{"Typeface name":"Wingdings","Dingbat dec":"166","Dingbat hex":"A6","Unicode dec":"128319","Unicode hex":"1F53F"},{"Typeface name":"Wingdings","Dingbat dec":"167","Dingbat hex":"A7","Unicode dec":"9642","Unicode hex":"25AA"},{"Typeface name":"Wingdings","Dingbat dec":"168","Dingbat hex":"A8","Unicode dec":"128910","Unicode hex":"1F78E"},{"Typeface name":"Wingdings","Dingbat dec":"169","Dingbat hex":"A9","Unicode dec":"128961","Unicode hex":"1F7C1"},{"Typeface name":"Wingdings","Dingbat dec":"170","Dingbat hex":"AA","Unicode dec":"128965","Unicode hex":"1F7C5"},{"Typeface name":"Wingdings","Dingbat dec":"171","Dingbat hex":"AB","Unicode dec":"9733","Unicode hex":"2605"},{"Typeface name":"Wingdings","Dingbat dec":"172","Dingbat hex":"AC","Unicode dec":"128971","Unicode hex":"1F7CB"},{"Typeface name":"Wingdings","Dingbat dec":"173","Dingbat hex":"AD","Unicode dec":"128975","Unicode hex":"1F7CF"},{"Typeface name":"Wingdings","Dingbat dec":"174","Dingbat hex":"AE","Unicode dec":"128979","Unicode hex":"1F7D3"},{"Typeface name":"Wingdings","Dingbat dec":"175","Dingbat hex":"AF","Unicode dec":"128977","Unicode hex":"1F7D1"},{"Typeface name":"Wingdings","Dingbat dec":"176","Dingbat hex":"B0","Unicode dec":"11216","Unicode hex":"2BD0"},{"Typeface name":"Wingdings","Dingbat dec":"177","Dingbat hex":"B1","Unicode dec":"8982","Unicode hex":"2316"},{"Typeface name":"Wingdings","Dingbat dec":"178","Dingbat hex":"B2","Unicode dec":"11214","Unicode hex":"2BCE"},{"Typeface name":"Wingdings","Dingbat dec":"179","Dingbat hex":"B3","Unicode dec":"11215","Unicode hex":"2BCF"},{"Typeface name":"Wingdings","Dingbat dec":"180","Dingbat hex":"B4","Unicode dec":"11217","Unicode hex":"2BD1"},{"Typeface name":"Wingdings","Dingbat dec":"181","Dingbat hex":"B5","Unicode dec":"10026","Unicode hex":"272A"},{"Typeface name":"Wingdings","Dingbat dec":"182","Dingbat hex":"B6","Unicode dec":"10032","Unicode hex":"2730"},{"Typeface name":"Wingdings","Dingbat dec":"183","Dingbat hex":"B7","Unicode dec":"128336","Unicode hex":"1F550"},{"Typeface name":"Wingdings","Dingbat dec":"184","Dingbat hex":"B8","Unicode dec":"128337","Unicode hex":"1F551"},{"Typeface name":"Wingdings","Dingbat dec":"185","Dingbat hex":"B9","Unicode dec":"128338","Unicode hex":"1F552"},{"Typeface name":"Wingdings","Dingbat dec":"186","Dingbat hex":"BA","Unicode dec":"128339","Unicode hex":"1F553"},{"Typeface name":"Wingdings","Dingbat dec":"187","Dingbat hex":"BB","Unicode dec":"128340","Unicode hex":"1F554"},{"Typeface name":"Wingdings","Dingbat dec":"188","Dingbat hex":"BC","Unicode dec":"128341","Unicode hex":"1F555"},{"Typeface name":"Wingdings","Dingbat dec":"189","Dingbat hex":"BD","Unicode dec":"128342","Unicode hex":"1F556"},{"Typeface name":"Wingdings","Dingbat dec":"190","Dingbat hex":"BE","Unicode dec":"128343","Unicode hex":"1F557"},{"Typeface name":"Wingdings","Dingbat dec":"191","Dingbat hex":"BF","Unicode dec":"128344","Unicode hex":"1F558"},{"Typeface name":"Wingdings","Dingbat dec":"192","Dingbat hex":"C0","Unicode dec":"128345","Unicode hex":"1F559"},{"Typeface name":"Wingdings","Dingbat dec":"193","Dingbat hex":"C1","Unicode dec":"128346","Unicode hex":"1F55A"},{"Typeface name":"Wingdings","Dingbat dec":"194","Dingbat hex":"C2","Unicode dec":"128347","Unicode hex":"1F55B"},{"Typeface name":"Wingdings","Dingbat dec":"195","Dingbat hex":"C3","Unicode dec":"11184","Unicode hex":"2BB0"},{"Typeface name":"Wingdings","Dingbat dec":"196","Dingbat hex":"C4","Unicode dec":"11185","Unicode hex":"2BB1"},{"Typeface name":"Wingdings","Dingbat dec":"197","Dingbat hex":"C5","Unicode dec":"11186","Unicode hex":"2BB2"},{"Typeface name":"Wingdings","Dingbat dec":"198","Dingbat hex":"C6","Unicode dec":"11187","Unicode hex":"2BB3"},{"Typeface name":"Wingdings","Dingbat dec":"199","Dingbat hex":"C7","Unicode dec":"11188","Unicode hex":"2BB4"},{"Typeface name":"Wingdings","Dingbat dec":"200","Dingbat hex":"C8","Unicode dec":"11189","Unicode hex":"2BB5"},{"Typeface name":"Wingdings","Dingbat dec":"201","Dingbat hex":"C9","Unicode dec":"11190","Unicode hex":"2BB6"},{"Typeface name":"Wingdings","Dingbat dec":"202","Dingbat hex":"CA","Unicode dec":"11191","Unicode hex":"2BB7"},{"Typeface name":"Wingdings","Dingbat dec":"203","Dingbat hex":"CB","Unicode dec":"128618","Unicode hex":"1F66A"},{"Typeface name":"Wingdings","Dingbat dec":"204","Dingbat hex":"CC","Unicode dec":"128619","Unicode hex":"1F66B"},{"Typeface name":"Wingdings","Dingbat dec":"205","Dingbat hex":"CD","Unicode dec":"128597","Unicode hex":"1F655"},{"Typeface name":"Wingdings","Dingbat dec":"206","Dingbat hex":"CE","Unicode dec":"128596","Unicode hex":"1F654"},{"Typeface name":"Wingdings","Dingbat dec":"207","Dingbat hex":"CF","Unicode dec":"128599","Unicode hex":"1F657"},{"Typeface name":"Wingdings","Dingbat dec":"208","Dingbat hex":"D0","Unicode dec":"128598","Unicode hex":"1F656"},{"Typeface name":"Wingdings","Dingbat dec":"209","Dingbat hex":"D1","Unicode dec":"128592","Unicode hex":"1F650"},{"Typeface name":"Wingdings","Dingbat dec":"210","Dingbat hex":"D2","Unicode dec":"128593","Unicode hex":"1F651"},{"Typeface name":"Wingdings","Dingbat dec":"211","Dingbat hex":"D3","Unicode dec":"128594","Unicode hex":"1F652"},{"Typeface name":"Wingdings","Dingbat dec":"212","Dingbat hex":"D4","Unicode dec":"128595","Unicode hex":"1F653"},{"Typeface name":"Wingdings","Dingbat dec":"213","Dingbat hex":"D5","Unicode dec":"9003","Unicode hex":"232B"},{"Typeface name":"Wingdings","Dingbat dec":"214","Dingbat hex":"D6","Unicode dec":"8998","Unicode hex":"2326"},{"Typeface name":"Wingdings","Dingbat dec":"215","Dingbat hex":"D7","Unicode dec":"11160","Unicode hex":"2B98"},{"Typeface name":"Wingdings","Dingbat dec":"216","Dingbat hex":"D8","Unicode dec":"11162","Unicode hex":"2B9A"},{"Typeface name":"Wingdings","Dingbat dec":"217","Dingbat hex":"D9","Unicode dec":"11161","Unicode hex":"2B99"},{"Typeface name":"Wingdings","Dingbat dec":"218","Dingbat hex":"DA","Unicode dec":"11163","Unicode hex":"2B9B"},{"Typeface name":"Wingdings","Dingbat dec":"219","Dingbat hex":"DB","Unicode dec":"11144","Unicode hex":"2B88"},{"Typeface name":"Wingdings","Dingbat dec":"220","Dingbat hex":"DC","Unicode dec":"11146","Unicode hex":"2B8A"},{"Typeface name":"Wingdings","Dingbat dec":"221","Dingbat hex":"DD","Unicode dec":"11145","Unicode hex":"2B89"},{"Typeface name":"Wingdings","Dingbat dec":"222","Dingbat hex":"DE","Unicode dec":"11147","Unicode hex":"2B8B"},{"Typeface name":"Wingdings","Dingbat dec":"223","Dingbat hex":"DF","Unicode dec":"129128","Unicode hex":"1F868"},{"Typeface name":"Wingdings","Dingbat dec":"224","Dingbat hex":"E0","Unicode dec":"129130","Unicode hex":"1F86A"},{"Typeface name":"Wingdings","Dingbat dec":"225","Dingbat hex":"E1","Unicode dec":"129129","Unicode hex":"1F869"},{"Typeface name":"Wingdings","Dingbat dec":"226","Dingbat hex":"E2","Unicode dec":"129131","Unicode hex":"1F86B"},{"Typeface name":"Wingdings","Dingbat dec":"227","Dingbat hex":"E3","Unicode dec":"129132","Unicode hex":"1F86C"},{"Typeface name":"Wingdings","Dingbat dec":"228","Dingbat hex":"E4","Unicode dec":"129133","Unicode hex":"1F86D"},{"Typeface name":"Wingdings","Dingbat dec":"229","Dingbat hex":"E5","Unicode dec":"129135","Unicode hex":"1F86F"},{"Typeface name":"Wingdings","Dingbat dec":"230","Dingbat hex":"E6","Unicode dec":"129134","Unicode hex":"1F86E"},{"Typeface name":"Wingdings","Dingbat dec":"231","Dingbat hex":"E7","Unicode dec":"129144","Unicode hex":"1F878"},{"Typeface name":"Wingdings","Dingbat dec":"232","Dingbat hex":"E8","Unicode dec":"129146","Unicode hex":"1F87A"},{"Typeface name":"Wingdings","Dingbat dec":"233","Dingbat hex":"E9","Unicode dec":"129145","Unicode hex":"1F879"},{"Typeface name":"Wingdings","Dingbat dec":"234","Dingbat hex":"EA","Unicode dec":"129147","Unicode hex":"1F87B"},{"Typeface name":"Wingdings","Dingbat dec":"235","Dingbat hex":"EB","Unicode dec":"129148","Unicode hex":"1F87C"},{"Typeface name":"Wingdings","Dingbat dec":"236","Dingbat hex":"EC","Unicode dec":"129149","Unicode hex":"1F87D"},{"Typeface name":"Wingdings","Dingbat dec":"237","Dingbat hex":"ED","Unicode dec":"129151","Unicode hex":"1F87F"},{"Typeface name":"Wingdings","Dingbat dec":"238","Dingbat hex":"EE","Unicode dec":"129150","Unicode hex":"1F87E"},{"Typeface name":"Wingdings","Dingbat dec":"239","Dingbat hex":"EF","Unicode dec":"8678","Unicode hex":"21E6"},{"Typeface name":"Wingdings","Dingbat dec":"240","Dingbat hex":"F0","Unicode dec":"8680","Unicode hex":"21E8"},{"Typeface name":"Wingdings","Dingbat dec":"241","Dingbat hex":"F1","Unicode dec":"8679","Unicode hex":"21E7"},{"Typeface name":"Wingdings","Dingbat dec":"242","Dingbat hex":"F2","Unicode dec":"8681","Unicode hex":"21E9"},{"Typeface name":"Wingdings","Dingbat dec":"243","Dingbat hex":"F3","Unicode dec":"11012","Unicode hex":"2B04"},{"Typeface name":"Wingdings","Dingbat dec":"244","Dingbat hex":"F4","Unicode dec":"8691","Unicode hex":"21F3"},{"Typeface name":"Wingdings","Dingbat dec":"245","Dingbat hex":"F5","Unicode dec":"11009","Unicode hex":"2B01"},{"Typeface name":"Wingdings","Dingbat dec":"246","Dingbat hex":"F6","Unicode dec":"11008","Unicode hex":"2B00"},{"Typeface name":"Wingdings","Dingbat dec":"247","Dingbat hex":"F7","Unicode dec":"11011","Unicode hex":"2B03"},{"Typeface name":"Wingdings","Dingbat dec":"248","Dingbat hex":"F8","Unicode dec":"11010","Unicode hex":"2B02"},{"Typeface name":"Wingdings","Dingbat dec":"249","Dingbat hex":"F9","Unicode dec":"129196","Unicode hex":"1F8AC"},{"Typeface name":"Wingdings","Dingbat dec":"250","Dingbat hex":"FA","Unicode dec":"129197","Unicode hex":"1F8AD"},{"Typeface name":"Wingdings","Dingbat dec":"251","Dingbat hex":"FB","Unicode dec":"128502","Unicode hex":"1F5F6"},{"Typeface name":"Wingdings","Dingbat dec":"252","Dingbat hex":"FC","Unicode dec":"10003","Unicode hex":"2713"},{"Typeface name":"Wingdings","Dingbat dec":"253","Dingbat hex":"FD","Unicode dec":"128503","Unicode hex":"1F5F7"},{"Typeface name":"Wingdings","Dingbat dec":"254","Dingbat hex":"FE","Unicode dec":"128505","Unicode hex":"1F5F9"},{"Typeface name":"Wingdings 2","Dingbat dec":"32","Dingbat hex":"20","Unicode dec":"32","Unicode hex":"20"},{"Typeface name":"Wingdings 2","Dingbat dec":"33","Dingbat hex":"21","Unicode dec":"128394","Unicode hex":"1F58A"},{"Typeface name":"Wingdings 2","Dingbat dec":"34","Dingbat hex":"22","Unicode dec":"128395","Unicode hex":"1F58B"},{"Typeface name":"Wingdings 2","Dingbat dec":"35","Dingbat hex":"23","Unicode dec":"128396","Unicode hex":"1F58C"},{"Typeface name":"Wingdings 2","Dingbat dec":"36","Dingbat hex":"24","Unicode dec":"128397","Unicode hex":"1F58D"},{"Typeface name":"Wingdings 2","Dingbat dec":"37","Dingbat hex":"25","Unicode dec":"9988","Unicode hex":"2704"},{"Typeface name":"Wingdings 2","Dingbat dec":"38","Dingbat hex":"26","Unicode dec":"9984","Unicode hex":"2700"},{"Typeface name":"Wingdings 2","Dingbat dec":"39","Dingbat hex":"27","Unicode dec":"128382","Unicode hex":"1F57E"},{"Typeface name":"Wingdings 2","Dingbat dec":"40","Dingbat hex":"28","Unicode dec":"128381","Unicode hex":"1F57D"},{"Typeface name":"Wingdings 2","Dingbat dec":"41","Dingbat hex":"29","Unicode dec":"128453","Unicode hex":"1F5C5"},{"Typeface name":"Wingdings 2","Dingbat dec":"42","Dingbat hex":"2A","Unicode dec":"128454","Unicode hex":"1F5C6"},{"Typeface name":"Wingdings 2","Dingbat dec":"43","Dingbat hex":"2B","Unicode dec":"128455","Unicode hex":"1F5C7"},{"Typeface name":"Wingdings 2","Dingbat dec":"44","Dingbat hex":"2C","Unicode dec":"128456","Unicode hex":"1F5C8"},{"Typeface name":"Wingdings 2","Dingbat dec":"45","Dingbat hex":"2D","Unicode dec":"128457","Unicode hex":"1F5C9"},{"Typeface name":"Wingdings 2","Dingbat dec":"46","Dingbat hex":"2E","Unicode dec":"128458","Unicode hex":"1F5CA"},{"Typeface name":"Wingdings 2","Dingbat dec":"47","Dingbat hex":"2F","Unicode dec":"128459","Unicode hex":"1F5CB"},{"Typeface name":"Wingdings 2","Dingbat dec":"48","Dingbat hex":"30","Unicode dec":"128460","Unicode hex":"1F5CC"},{"Typeface name":"Wingdings 2","Dingbat dec":"49","Dingbat hex":"31","Unicode dec":"128461","Unicode hex":"1F5CD"},{"Typeface name":"Wingdings 2","Dingbat dec":"50","Dingbat hex":"32","Unicode dec":"128203","Unicode hex":"1F4CB"},{"Typeface name":"Wingdings 2","Dingbat dec":"51","Dingbat hex":"33","Unicode dec":"128465","Unicode hex":"1F5D1"},{"Typeface name":"Wingdings 2","Dingbat dec":"52","Dingbat hex":"34","Unicode dec":"128468","Unicode hex":"1F5D4"},{"Typeface name":"Wingdings 2","Dingbat dec":"53","Dingbat hex":"35","Unicode dec":"128437","Unicode hex":"1F5B5"},{"Typeface name":"Wingdings 2","Dingbat dec":"54","Dingbat hex":"36","Unicode dec":"128438","Unicode hex":"1F5B6"},{"Typeface name":"Wingdings 2","Dingbat dec":"55","Dingbat hex":"37","Unicode dec":"128439","Unicode hex":"1F5B7"},{"Typeface name":"Wingdings 2","Dingbat dec":"56","Dingbat hex":"38","Unicode dec":"128440","Unicode hex":"1F5B8"},{"Typeface name":"Wingdings 2","Dingbat dec":"57","Dingbat hex":"39","Unicode dec":"128429","Unicode hex":"1F5AD"},{"Typeface name":"Wingdings 2","Dingbat dec":"58","Dingbat hex":"3A","Unicode dec":"128431","Unicode hex":"1F5AF"},{"Typeface name":"Wingdings 2","Dingbat dec":"59","Dingbat hex":"3B","Unicode dec":"128433","Unicode hex":"1F5B1"},{"Typeface name":"Wingdings 2","Dingbat dec":"60","Dingbat hex":"3C","Unicode dec":"128402","Unicode hex":"1F592"},{"Typeface name":"Wingdings 2","Dingbat dec":"61","Dingbat hex":"3D","Unicode dec":"128403","Unicode hex":"1F593"},{"Typeface name":"Wingdings 2","Dingbat dec":"62","Dingbat hex":"3E","Unicode dec":"128408","Unicode hex":"1F598"},{"Typeface name":"Wingdings 2","Dingbat dec":"63","Dingbat hex":"3F","Unicode dec":"128409","Unicode hex":"1F599"},{"Typeface name":"Wingdings 2","Dingbat dec":"64","Dingbat hex":"40","Unicode dec":"128410","Unicode hex":"1F59A"},{"Typeface name":"Wingdings 2","Dingbat dec":"65","Dingbat hex":"41","Unicode dec":"128411","Unicode hex":"1F59B"},{"Typeface name":"Wingdings 2","Dingbat dec":"66","Dingbat hex":"42","Unicode dec":"128072","Unicode hex":"1F448"},{"Typeface name":"Wingdings 2","Dingbat dec":"67","Dingbat hex":"43","Unicode dec":"128073","Unicode hex":"1F449"},{"Typeface name":"Wingdings 2","Dingbat dec":"68","Dingbat hex":"44","Unicode dec":"128412","Unicode hex":"1F59C"},{"Typeface name":"Wingdings 2","Dingbat dec":"69","Dingbat hex":"45","Unicode dec":"128413","Unicode hex":"1F59D"},{"Typeface name":"Wingdings 2","Dingbat dec":"70","Dingbat hex":"46","Unicode dec":"128414","Unicode hex":"1F59E"},{"Typeface name":"Wingdings 2","Dingbat dec":"71","Dingbat hex":"47","Unicode dec":"128415","Unicode hex":"1F59F"},{"Typeface name":"Wingdings 2","Dingbat dec":"72","Dingbat hex":"48","Unicode dec":"128416","Unicode hex":"1F5A0"},{"Typeface name":"Wingdings 2","Dingbat dec":"73","Dingbat hex":"49","Unicode dec":"128417","Unicode hex":"1F5A1"},{"Typeface name":"Wingdings 2","Dingbat dec":"74","Dingbat hex":"4A","Unicode dec":"128070","Unicode hex":"1F446"},{"Typeface name":"Wingdings 2","Dingbat dec":"75","Dingbat hex":"4B","Unicode dec":"128071","Unicode hex":"1F447"},{"Typeface name":"Wingdings 2","Dingbat dec":"76","Dingbat hex":"4C","Unicode dec":"128418","Unicode hex":"1F5A2"},{"Typeface name":"Wingdings 2","Dingbat dec":"77","Dingbat hex":"4D","Unicode dec":"128419","Unicode hex":"1F5A3"},{"Typeface name":"Wingdings 2","Dingbat dec":"78","Dingbat hex":"4E","Unicode dec":"128401","Unicode hex":"1F591"},{"Typeface name":"Wingdings 2","Dingbat dec":"79","Dingbat hex":"4F","Unicode dec":"128500","Unicode hex":"1F5F4"},{"Typeface name":"Wingdings 2","Dingbat dec":"80","Dingbat hex":"50","Unicode dec":"128504","Unicode hex":"1F5F8"},{"Typeface name":"Wingdings 2","Dingbat dec":"81","Dingbat hex":"51","Unicode dec":"128501","Unicode hex":"1F5F5"},{"Typeface name":"Wingdings 2","Dingbat dec":"82","Dingbat hex":"52","Unicode dec":"9745","Unicode hex":"2611"},{"Typeface name":"Wingdings 2","Dingbat dec":"83","Dingbat hex":"53","Unicode dec":"11197","Unicode hex":"2BBD"},{"Typeface name":"Wingdings 2","Dingbat dec":"84","Dingbat hex":"54","Unicode dec":"9746","Unicode hex":"2612"},{"Typeface name":"Wingdings 2","Dingbat dec":"85","Dingbat hex":"55","Unicode dec":"11198","Unicode hex":"2BBE"},{"Typeface name":"Wingdings 2","Dingbat dec":"86","Dingbat hex":"56","Unicode dec":"11199","Unicode hex":"2BBF"},{"Typeface name":"Wingdings 2","Dingbat dec":"87","Dingbat hex":"57","Unicode dec":"128711","Unicode hex":"1F6C7"},{"Typeface name":"Wingdings 2","Dingbat dec":"88","Dingbat hex":"58","Unicode dec":"10680","Unicode hex":"29B8"},{"Typeface name":"Wingdings 2","Dingbat dec":"89","Dingbat hex":"59","Unicode dec":"128625","Unicode hex":"1F671"},{"Typeface name":"Wingdings 2","Dingbat dec":"90","Dingbat hex":"5A","Unicode dec":"128628","Unicode hex":"1F674"},{"Typeface name":"Wingdings 2","Dingbat dec":"91","Dingbat hex":"5B","Unicode dec":"128626","Unicode hex":"1F672"},{"Typeface name":"Wingdings 2","Dingbat dec":"92","Dingbat hex":"5C","Unicode dec":"128627","Unicode hex":"1F673"},{"Typeface name":"Wingdings 2","Dingbat dec":"93","Dingbat hex":"5D","Unicode dec":"8253","Unicode hex":"203D"},{"Typeface name":"Wingdings 2","Dingbat dec":"94","Dingbat hex":"5E","Unicode dec":"128633","Unicode hex":"1F679"},{"Typeface name":"Wingdings 2","Dingbat dec":"95","Dingbat hex":"5F","Unicode dec":"128634","Unicode hex":"1F67A"},{"Typeface name":"Wingdings 2","Dingbat dec":"96","Dingbat hex":"60","Unicode dec":"128635","Unicode hex":"1F67B"},{"Typeface name":"Wingdings 2","Dingbat dec":"97","Dingbat hex":"61","Unicode dec":"128614","Unicode hex":"1F666"},{"Typeface name":"Wingdings 2","Dingbat dec":"98","Dingbat hex":"62","Unicode dec":"128612","Unicode hex":"1F664"},{"Typeface name":"Wingdings 2","Dingbat dec":"99","Dingbat hex":"63","Unicode dec":"128613","Unicode hex":"1F665"},{"Typeface name":"Wingdings 2","Dingbat dec":"100","Dingbat hex":"64","Unicode dec":"128615","Unicode hex":"1F667"},{"Typeface name":"Wingdings 2","Dingbat dec":"101","Dingbat hex":"65","Unicode dec":"128602","Unicode hex":"1F65A"},{"Typeface name":"Wingdings 2","Dingbat dec":"102","Dingbat hex":"66","Unicode dec":"128600","Unicode hex":"1F658"},{"Typeface name":"Wingdings 2","Dingbat dec":"103","Dingbat hex":"67","Unicode dec":"128601","Unicode hex":"1F659"},{"Typeface name":"Wingdings 2","Dingbat dec":"104","Dingbat hex":"68","Unicode dec":"128603","Unicode hex":"1F65B"},{"Typeface name":"Wingdings 2","Dingbat dec":"105","Dingbat hex":"69","Unicode dec":"9450","Unicode hex":"24EA"},{"Typeface name":"Wingdings 2","Dingbat dec":"106","Dingbat hex":"6A","Unicode dec":"9312","Unicode hex":"2460"},{"Typeface name":"Wingdings 2","Dingbat dec":"107","Dingbat hex":"6B","Unicode dec":"9313","Unicode hex":"2461"},{"Typeface name":"Wingdings 2","Dingbat dec":"108","Dingbat hex":"6C","Unicode dec":"9314","Unicode hex":"2462"},{"Typeface name":"Wingdings 2","Dingbat dec":"109","Dingbat hex":"6D","Unicode dec":"9315","Unicode hex":"2463"},{"Typeface name":"Wingdings 2","Dingbat dec":"110","Dingbat hex":"6E","Unicode dec":"9316","Unicode hex":"2464"},{"Typeface name":"Wingdings 2","Dingbat dec":"111","Dingbat hex":"6F","Unicode dec":"9317","Unicode hex":"2465"},{"Typeface name":"Wingdings 2","Dingbat dec":"112","Dingbat hex":"70","Unicode dec":"9318","Unicode hex":"2466"},{"Typeface name":"Wingdings 2","Dingbat dec":"113","Dingbat hex":"71","Unicode dec":"9319","Unicode hex":"2467"},{"Typeface name":"Wingdings 2","Dingbat dec":"114","Dingbat hex":"72","Unicode dec":"9320","Unicode hex":"2468"},{"Typeface name":"Wingdings 2","Dingbat dec":"115","Dingbat hex":"73","Unicode dec":"9321","Unicode hex":"2469"},{"Typeface name":"Wingdings 2","Dingbat dec":"116","Dingbat hex":"74","Unicode dec":"9471","Unicode hex":"24FF"},{"Typeface name":"Wingdings 2","Dingbat dec":"117","Dingbat hex":"75","Unicode dec":"10102","Unicode hex":"2776"},{"Typeface name":"Wingdings 2","Dingbat dec":"118","Dingbat hex":"76","Unicode dec":"10103","Unicode hex":"2777"},{"Typeface name":"Wingdings 2","Dingbat dec":"119","Dingbat hex":"77","Unicode dec":"10104","Unicode hex":"2778"},{"Typeface name":"Wingdings 2","Dingbat dec":"120","Dingbat hex":"78","Unicode dec":"10105","Unicode hex":"2779"},{"Typeface name":"Wingdings 2","Dingbat dec":"121","Dingbat hex":"79","Unicode dec":"10106","Unicode hex":"277A"},{"Typeface name":"Wingdings 2","Dingbat dec":"122","Dingbat hex":"7A","Unicode dec":"10107","Unicode hex":"277B"},{"Typeface name":"Wingdings 2","Dingbat dec":"123","Dingbat hex":"7B","Unicode dec":"10108","Unicode hex":"277C"},{"Typeface name":"Wingdings 2","Dingbat dec":"124","Dingbat hex":"7C","Unicode dec":"10109","Unicode hex":"277D"},{"Typeface name":"Wingdings 2","Dingbat dec":"125","Dingbat hex":"7D","Unicode dec":"10110","Unicode hex":"277E"},{"Typeface name":"Wingdings 2","Dingbat dec":"126","Dingbat hex":"7E","Unicode dec":"10111","Unicode hex":"277F"},{"Typeface name":"Wingdings 2","Dingbat dec":"128","Dingbat hex":"80","Unicode dec":"9737","Unicode hex":"2609"},{"Typeface name":"Wingdings 2","Dingbat dec":"129","Dingbat hex":"81","Unicode dec":"127765","Unicode hex":"1F315"},{"Typeface name":"Wingdings 2","Dingbat dec":"130","Dingbat hex":"82","Unicode dec":"9789","Unicode hex":"263D"},{"Typeface name":"Wingdings 2","Dingbat dec":"131","Dingbat hex":"83","Unicode dec":"9790","Unicode hex":"263E"},{"Typeface name":"Wingdings 2","Dingbat dec":"132","Dingbat hex":"84","Unicode dec":"11839","Unicode hex":"2E3F"},{"Typeface name":"Wingdings 2","Dingbat dec":"133","Dingbat hex":"85","Unicode dec":"10013","Unicode hex":"271D"},{"Typeface name":"Wingdings 2","Dingbat dec":"134","Dingbat hex":"86","Unicode dec":"128327","Unicode hex":"1F547"},{"Typeface name":"Wingdings 2","Dingbat dec":"135","Dingbat hex":"87","Unicode dec":"128348","Unicode hex":"1F55C"},{"Typeface name":"Wingdings 2","Dingbat dec":"136","Dingbat hex":"88","Unicode dec":"128349","Unicode hex":"1F55D"},{"Typeface name":"Wingdings 2","Dingbat dec":"137","Dingbat hex":"89","Unicode dec":"128350","Unicode hex":"1F55E"},{"Typeface name":"Wingdings 2","Dingbat dec":"138","Dingbat hex":"8A","Unicode dec":"128351","Unicode hex":"1F55F"},{"Typeface name":"Wingdings 2","Dingbat dec":"139","Dingbat hex":"8B","Unicode dec":"128352","Unicode hex":"1F560"},{"Typeface name":"Wingdings 2","Dingbat dec":"140","Dingbat hex":"8C","Unicode dec":"128353","Unicode hex":"1F561"},{"Typeface name":"Wingdings 2","Dingbat dec":"141","Dingbat hex":"8D","Unicode dec":"128354","Unicode hex":"1F562"},{"Typeface name":"Wingdings 2","Dingbat dec":"142","Dingbat hex":"8E","Unicode dec":"128355","Unicode hex":"1F563"},{"Typeface name":"Wingdings 2","Dingbat dec":"143","Dingbat hex":"8F","Unicode dec":"128356","Unicode hex":"1F564"},{"Typeface name":"Wingdings 2","Dingbat dec":"144","Dingbat hex":"90","Unicode dec":"128357","Unicode hex":"1F565"},{"Typeface name":"Wingdings 2","Dingbat dec":"145","Dingbat hex":"91","Unicode dec":"128358","Unicode hex":"1F566"},{"Typeface name":"Wingdings 2","Dingbat dec":"146","Dingbat hex":"92","Unicode dec":"128359","Unicode hex":"1F567"},{"Typeface name":"Wingdings 2","Dingbat dec":"147","Dingbat hex":"93","Unicode dec":"128616","Unicode hex":"1F668"},{"Typeface name":"Wingdings 2","Dingbat dec":"148","Dingbat hex":"94","Unicode dec":"128617","Unicode hex":"1F669"},{"Typeface name":"Wingdings 2","Dingbat dec":"149","Dingbat hex":"95","Unicode dec":"8901","Unicode hex":"22C5"},{"Typeface name":"Wingdings 2","Dingbat dec":"150","Dingbat hex":"96","Unicode dec":"128900","Unicode hex":"1F784"},{"Typeface name":"Wingdings 2","Dingbat dec":"151","Dingbat hex":"97","Unicode dec":"10625","Unicode hex":"2981"},{"Typeface name":"Wingdings 2","Dingbat dec":"152","Dingbat hex":"98","Unicode dec":"9679","Unicode hex":"25CF"},{"Typeface name":"Wingdings 2","Dingbat dec":"153","Dingbat hex":"99","Unicode dec":"9675","Unicode hex":"25CB"},{"Typeface name":"Wingdings 2","Dingbat dec":"154","Dingbat hex":"9A","Unicode dec":"128901","Unicode hex":"1F785"},{"Typeface name":"Wingdings 2","Dingbat dec":"155","Dingbat hex":"9B","Unicode dec":"128903","Unicode hex":"1F787"},{"Typeface name":"Wingdings 2","Dingbat dec":"156","Dingbat hex":"9C","Unicode dec":"128905","Unicode hex":"1F789"},{"Typeface name":"Wingdings 2","Dingbat dec":"157","Dingbat hex":"9D","Unicode dec":"8857","Unicode hex":"2299"},{"Typeface name":"Wingdings 2","Dingbat dec":"158","Dingbat hex":"9E","Unicode dec":"10687","Unicode hex":"29BF"},{"Typeface name":"Wingdings 2","Dingbat dec":"159","Dingbat hex":"9F","Unicode dec":"128908","Unicode hex":"1F78C"},{"Typeface name":"Wingdings 2","Dingbat dec":"160","Dingbat hex":"A0","Unicode dec":"128909","Unicode hex":"1F78D"},{"Typeface name":"Wingdings 2","Dingbat dec":"161","Dingbat hex":"A1","Unicode dec":"9726","Unicode hex":"25FE"},{"Typeface name":"Wingdings 2","Dingbat dec":"162","Dingbat hex":"A2","Unicode dec":"9632","Unicode hex":"25A0"},{"Typeface name":"Wingdings 2","Dingbat dec":"163","Dingbat hex":"A3","Unicode dec":"9633","Unicode hex":"25A1"},{"Typeface name":"Wingdings 2","Dingbat dec":"164","Dingbat hex":"A4","Unicode dec":"128913","Unicode hex":"1F791"},{"Typeface name":"Wingdings 2","Dingbat dec":"165","Dingbat hex":"A5","Unicode dec":"128914","Unicode hex":"1F792"},{"Typeface name":"Wingdings 2","Dingbat dec":"166","Dingbat hex":"A6","Unicode dec":"128915","Unicode hex":"1F793"},{"Typeface name":"Wingdings 2","Dingbat dec":"167","Dingbat hex":"A7","Unicode dec":"128916","Unicode hex":"1F794"},{"Typeface name":"Wingdings 2","Dingbat dec":"168","Dingbat hex":"A8","Unicode dec":"9635","Unicode hex":"25A3"},{"Typeface name":"Wingdings 2","Dingbat dec":"169","Dingbat hex":"A9","Unicode dec":"128917","Unicode hex":"1F795"},{"Typeface name":"Wingdings 2","Dingbat dec":"170","Dingbat hex":"AA","Unicode dec":"128918","Unicode hex":"1F796"},{"Typeface name":"Wingdings 2","Dingbat dec":"171","Dingbat hex":"AB","Unicode dec":"128919","Unicode hex":"1F797"},{"Typeface name":"Wingdings 2","Dingbat dec":"172","Dingbat hex":"AC","Unicode dec":"128920","Unicode hex":"1F798"},{"Typeface name":"Wingdings 2","Dingbat dec":"173","Dingbat hex":"AD","Unicode dec":"11049","Unicode hex":"2B29"},{"Typeface name":"Wingdings 2","Dingbat dec":"174","Dingbat hex":"AE","Unicode dec":"11045","Unicode hex":"2B25"},{"Typeface name":"Wingdings 2","Dingbat dec":"175","Dingbat hex":"AF","Unicode dec":"9671","Unicode hex":"25C7"},{"Typeface name":"Wingdings 2","Dingbat dec":"176","Dingbat hex":"B0","Unicode dec":"128922","Unicode hex":"1F79A"},{"Typeface name":"Wingdings 2","Dingbat dec":"177","Dingbat hex":"B1","Unicode dec":"9672","Unicode hex":"25C8"},{"Typeface name":"Wingdings 2","Dingbat dec":"178","Dingbat hex":"B2","Unicode dec":"128923","Unicode hex":"1F79B"},{"Typeface name":"Wingdings 2","Dingbat dec":"179","Dingbat hex":"B3","Unicode dec":"128924","Unicode hex":"1F79C"},{"Typeface name":"Wingdings 2","Dingbat dec":"180","Dingbat hex":"B4","Unicode dec":"128925","Unicode hex":"1F79D"},{"Typeface name":"Wingdings 2","Dingbat dec":"181","Dingbat hex":"B5","Unicode dec":"128926","Unicode hex":"1F79E"},{"Typeface name":"Wingdings 2","Dingbat dec":"182","Dingbat hex":"B6","Unicode dec":"11050","Unicode hex":"2B2A"},{"Typeface name":"Wingdings 2","Dingbat dec":"183","Dingbat hex":"B7","Unicode dec":"11047","Unicode hex":"2B27"},{"Typeface name":"Wingdings 2","Dingbat dec":"184","Dingbat hex":"B8","Unicode dec":"9674","Unicode hex":"25CA"},{"Typeface name":"Wingdings 2","Dingbat dec":"185","Dingbat hex":"B9","Unicode dec":"128928","Unicode hex":"1F7A0"},{"Typeface name":"Wingdings 2","Dingbat dec":"186","Dingbat hex":"BA","Unicode dec":"9686","Unicode hex":"25D6"},{"Typeface name":"Wingdings 2","Dingbat dec":"187","Dingbat hex":"BB","Unicode dec":"9687","Unicode hex":"25D7"},{"Typeface name":"Wingdings 2","Dingbat dec":"188","Dingbat hex":"BC","Unicode dec":"11210","Unicode hex":"2BCA"},{"Typeface name":"Wingdings 2","Dingbat dec":"189","Dingbat hex":"BD","Unicode dec":"11211","Unicode hex":"2BCB"},{"Typeface name":"Wingdings 2","Dingbat dec":"190","Dingbat hex":"BE","Unicode dec":"11200","Unicode hex":"2BC0"},{"Typeface name":"Wingdings 2","Dingbat dec":"191","Dingbat hex":"BF","Unicode dec":"11201","Unicode hex":"2BC1"},{"Typeface name":"Wingdings 2","Dingbat dec":"192","Dingbat hex":"C0","Unicode dec":"11039","Unicode hex":"2B1F"},{"Typeface name":"Wingdings 2","Dingbat dec":"193","Dingbat hex":"C1","Unicode dec":"11202","Unicode hex":"2BC2"},{"Typeface name":"Wingdings 2","Dingbat dec":"194","Dingbat hex":"C2","Unicode dec":"11043","Unicode hex":"2B23"},{"Typeface name":"Wingdings 2","Dingbat dec":"195","Dingbat hex":"C3","Unicode dec":"11042","Unicode hex":"2B22"},{"Typeface name":"Wingdings 2","Dingbat dec":"196","Dingbat hex":"C4","Unicode dec":"11203","Unicode hex":"2BC3"},{"Typeface name":"Wingdings 2","Dingbat dec":"197","Dingbat hex":"C5","Unicode dec":"11204","Unicode hex":"2BC4"},{"Typeface name":"Wingdings 2","Dingbat dec":"198","Dingbat hex":"C6","Unicode dec":"128929","Unicode hex":"1F7A1"},{"Typeface name":"Wingdings 2","Dingbat dec":"199","Dingbat hex":"C7","Unicode dec":"128930","Unicode hex":"1F7A2"},{"Typeface name":"Wingdings 2","Dingbat dec":"200","Dingbat hex":"C8","Unicode dec":"128931","Unicode hex":"1F7A3"},{"Typeface name":"Wingdings 2","Dingbat dec":"201","Dingbat hex":"C9","Unicode dec":"128932","Unicode hex":"1F7A4"},{"Typeface name":"Wingdings 2","Dingbat dec":"202","Dingbat hex":"CA","Unicode dec":"128933","Unicode hex":"1F7A5"},{"Typeface name":"Wingdings 2","Dingbat dec":"203","Dingbat hex":"CB","Unicode dec":"128934","Unicode hex":"1F7A6"},{"Typeface name":"Wingdings 2","Dingbat dec":"204","Dingbat hex":"CC","Unicode dec":"128935","Unicode hex":"1F7A7"},{"Typeface name":"Wingdings 2","Dingbat dec":"205","Dingbat hex":"CD","Unicode dec":"128936","Unicode hex":"1F7A8"},{"Typeface name":"Wingdings 2","Dingbat dec":"206","Dingbat hex":"CE","Unicode dec":"128937","Unicode hex":"1F7A9"},{"Typeface name":"Wingdings 2","Dingbat dec":"207","Dingbat hex":"CF","Unicode dec":"128938","Unicode hex":"1F7AA"},{"Typeface name":"Wingdings 2","Dingbat dec":"208","Dingbat hex":"D0","Unicode dec":"128939","Unicode hex":"1F7AB"},{"Typeface name":"Wingdings 2","Dingbat dec":"209","Dingbat hex":"D1","Unicode dec":"128940","Unicode hex":"1F7AC"},{"Typeface name":"Wingdings 2","Dingbat dec":"210","Dingbat hex":"D2","Unicode dec":"128941","Unicode hex":"1F7AD"},{"Typeface name":"Wingdings 2","Dingbat dec":"211","Dingbat hex":"D3","Unicode dec":"128942","Unicode hex":"1F7AE"},{"Typeface name":"Wingdings 2","Dingbat dec":"212","Dingbat hex":"D4","Unicode dec":"128943","Unicode hex":"1F7AF"},{"Typeface name":"Wingdings 2","Dingbat dec":"213","Dingbat hex":"D5","Unicode dec":"128944","Unicode hex":"1F7B0"},{"Typeface name":"Wingdings 2","Dingbat dec":"214","Dingbat hex":"D6","Unicode dec":"128945","Unicode hex":"1F7B1"},{"Typeface name":"Wingdings 2","Dingbat dec":"215","Dingbat hex":"D7","Unicode dec":"128946","Unicode hex":"1F7B2"},{"Typeface name":"Wingdings 2","Dingbat dec":"216","Dingbat hex":"D8","Unicode dec":"128947","Unicode hex":"1F7B3"},{"Typeface name":"Wingdings 2","Dingbat dec":"217","Dingbat hex":"D9","Unicode dec":"128948","Unicode hex":"1F7B4"},{"Typeface name":"Wingdings 2","Dingbat dec":"218","Dingbat hex":"DA","Unicode dec":"128949","Unicode hex":"1F7B5"},{"Typeface name":"Wingdings 2","Dingbat dec":"219","Dingbat hex":"DB","Unicode dec":"128950","Unicode hex":"1F7B6"},{"Typeface name":"Wingdings 2","Dingbat dec":"220","Dingbat hex":"DC","Unicode dec":"128951","Unicode hex":"1F7B7"},{"Typeface name":"Wingdings 2","Dingbat dec":"221","Dingbat hex":"DD","Unicode dec":"128952","Unicode hex":"1F7B8"},{"Typeface name":"Wingdings 2","Dingbat dec":"222","Dingbat hex":"DE","Unicode dec":"128953","Unicode hex":"1F7B9"},{"Typeface name":"Wingdings 2","Dingbat dec":"223","Dingbat hex":"DF","Unicode dec":"128954","Unicode hex":"1F7BA"},{"Typeface name":"Wingdings 2","Dingbat dec":"224","Dingbat hex":"E0","Unicode dec":"128955","Unicode hex":"1F7BB"},{"Typeface name":"Wingdings 2","Dingbat dec":"225","Dingbat hex":"E1","Unicode dec":"128956","Unicode hex":"1F7BC"},{"Typeface name":"Wingdings 2","Dingbat dec":"226","Dingbat hex":"E2","Unicode dec":"128957","Unicode hex":"1F7BD"},{"Typeface name":"Wingdings 2","Dingbat dec":"227","Dingbat hex":"E3","Unicode dec":"128958","Unicode hex":"1F7BE"},{"Typeface name":"Wingdings 2","Dingbat dec":"228","Dingbat hex":"E4","Unicode dec":"128959","Unicode hex":"1F7BF"},{"Typeface name":"Wingdings 2","Dingbat dec":"229","Dingbat hex":"E5","Unicode dec":"128960","Unicode hex":"1F7C0"},{"Typeface name":"Wingdings 2","Dingbat dec":"230","Dingbat hex":"E6","Unicode dec":"128962","Unicode hex":"1F7C2"},{"Typeface name":"Wingdings 2","Dingbat dec":"231","Dingbat hex":"E7","Unicode dec":"128964","Unicode hex":"1F7C4"},{"Typeface name":"Wingdings 2","Dingbat dec":"232","Dingbat hex":"E8","Unicode dec":"128966","Unicode hex":"1F7C6"},{"Typeface name":"Wingdings 2","Dingbat dec":"233","Dingbat hex":"E9","Unicode dec":"128969","Unicode hex":"1F7C9"},{"Typeface name":"Wingdings 2","Dingbat dec":"234","Dingbat hex":"EA","Unicode dec":"128970","Unicode hex":"1F7CA"},{"Typeface name":"Wingdings 2","Dingbat dec":"235","Dingbat hex":"EB","Unicode dec":"10038","Unicode hex":"2736"},{"Typeface name":"Wingdings 2","Dingbat dec":"236","Dingbat hex":"EC","Unicode dec":"128972","Unicode hex":"1F7CC"},{"Typeface name":"Wingdings 2","Dingbat dec":"237","Dingbat hex":"ED","Unicode dec":"128974","Unicode hex":"1F7CE"},{"Typeface name":"Wingdings 2","Dingbat dec":"238","Dingbat hex":"EE","Unicode dec":"128976","Unicode hex":"1F7D0"},{"Typeface name":"Wingdings 2","Dingbat dec":"239","Dingbat hex":"EF","Unicode dec":"128978","Unicode hex":"1F7D2"},{"Typeface name":"Wingdings 2","Dingbat dec":"240","Dingbat hex":"F0","Unicode dec":"10041","Unicode hex":"2739"},{"Typeface name":"Wingdings 2","Dingbat dec":"241","Dingbat hex":"F1","Unicode dec":"128963","Unicode hex":"1F7C3"},{"Typeface name":"Wingdings 2","Dingbat dec":"242","Dingbat hex":"F2","Unicode dec":"128967","Unicode hex":"1F7C7"},{"Typeface name":"Wingdings 2","Dingbat dec":"243","Dingbat hex":"F3","Unicode dec":"10031","Unicode hex":"272F"},{"Typeface name":"Wingdings 2","Dingbat dec":"244","Dingbat hex":"F4","Unicode dec":"128973","Unicode hex":"1F7CD"},{"Typeface name":"Wingdings 2","Dingbat dec":"245","Dingbat hex":"F5","Unicode dec":"128980","Unicode hex":"1F7D4"},{"Typeface name":"Wingdings 2","Dingbat dec":"246","Dingbat hex":"F6","Unicode dec":"11212","Unicode hex":"2BCC"},{"Typeface name":"Wingdings 2","Dingbat dec":"247","Dingbat hex":"F7","Unicode dec":"11213","Unicode hex":"2BCD"},{"Typeface name":"Wingdings 2","Dingbat dec":"248","Dingbat hex":"F8","Unicode dec":"8251","Unicode hex":"203B"},{"Typeface name":"Wingdings 2","Dingbat dec":"249","Dingbat hex":"F9","Unicode dec":"8258","Unicode hex":"2042"},{"Typeface name":"Wingdings 3","Dingbat dec":"32","Dingbat hex":"20","Unicode dec":"32","Unicode hex":"20"},{"Typeface name":"Wingdings 3","Dingbat dec":"33","Dingbat hex":"21","Unicode dec":"11104","Unicode hex":"2B60"},{"Typeface name":"Wingdings 3","Dingbat dec":"34","Dingbat hex":"22","Unicode dec":"11106","Unicode hex":"2B62"},{"Typeface name":"Wingdings 3","Dingbat dec":"35","Dingbat hex":"23","Unicode dec":"11105","Unicode hex":"2B61"},{"Typeface name":"Wingdings 3","Dingbat dec":"36","Dingbat hex":"24","Unicode dec":"11107","Unicode hex":"2B63"},{"Typeface name":"Wingdings 3","Dingbat dec":"37","Dingbat hex":"25","Unicode dec":"11110","Unicode hex":"2B66"},{"Typeface name":"Wingdings 3","Dingbat dec":"38","Dingbat hex":"26","Unicode dec":"11111","Unicode hex":"2B67"},{"Typeface name":"Wingdings 3","Dingbat dec":"39","Dingbat hex":"27","Unicode dec":"11113","Unicode hex":"2B69"},{"Typeface name":"Wingdings 3","Dingbat dec":"40","Dingbat hex":"28","Unicode dec":"11112","Unicode hex":"2B68"},{"Typeface name":"Wingdings 3","Dingbat dec":"41","Dingbat hex":"29","Unicode dec":"11120","Unicode hex":"2B70"},{"Typeface name":"Wingdings 3","Dingbat dec":"42","Dingbat hex":"2A","Unicode dec":"11122","Unicode hex":"2B72"},{"Typeface name":"Wingdings 3","Dingbat dec":"43","Dingbat hex":"2B","Unicode dec":"11121","Unicode hex":"2B71"},{"Typeface name":"Wingdings 3","Dingbat dec":"44","Dingbat hex":"2C","Unicode dec":"11123","Unicode hex":"2B73"},{"Typeface name":"Wingdings 3","Dingbat dec":"45","Dingbat hex":"2D","Unicode dec":"11126","Unicode hex":"2B76"},{"Typeface name":"Wingdings 3","Dingbat dec":"46","Dingbat hex":"2E","Unicode dec":"11128","Unicode hex":"2B78"},{"Typeface name":"Wingdings 3","Dingbat dec":"47","Dingbat hex":"2F","Unicode dec":"11131","Unicode hex":"2B7B"},{"Typeface name":"Wingdings 3","Dingbat dec":"48","Dingbat hex":"30","Unicode dec":"11133","Unicode hex":"2B7D"},{"Typeface name":"Wingdings 3","Dingbat dec":"49","Dingbat hex":"31","Unicode dec":"11108","Unicode hex":"2B64"},{"Typeface name":"Wingdings 3","Dingbat dec":"50","Dingbat hex":"32","Unicode dec":"11109","Unicode hex":"2B65"},{"Typeface name":"Wingdings 3","Dingbat dec":"51","Dingbat hex":"33","Unicode dec":"11114","Unicode hex":"2B6A"},{"Typeface name":"Wingdings 3","Dingbat dec":"52","Dingbat hex":"34","Unicode dec":"11116","Unicode hex":"2B6C"},{"Typeface name":"Wingdings 3","Dingbat dec":"53","Dingbat hex":"35","Unicode dec":"11115","Unicode hex":"2B6B"},{"Typeface name":"Wingdings 3","Dingbat dec":"54","Dingbat hex":"36","Unicode dec":"11117","Unicode hex":"2B6D"},{"Typeface name":"Wingdings 3","Dingbat dec":"55","Dingbat hex":"37","Unicode dec":"11085","Unicode hex":"2B4D"},{"Typeface name":"Wingdings 3","Dingbat dec":"56","Dingbat hex":"38","Unicode dec":"11168","Unicode hex":"2BA0"},{"Typeface name":"Wingdings 3","Dingbat dec":"57","Dingbat hex":"39","Unicode dec":"11169","Unicode hex":"2BA1"},{"Typeface name":"Wingdings 3","Dingbat dec":"58","Dingbat hex":"3A","Unicode dec":"11170","Unicode hex":"2BA2"},{"Typeface name":"Wingdings 3","Dingbat dec":"59","Dingbat hex":"3B","Unicode dec":"11171","Unicode hex":"2BA3"},{"Typeface name":"Wingdings 3","Dingbat dec":"60","Dingbat hex":"3C","Unicode dec":"11172","Unicode hex":"2BA4"},{"Typeface name":"Wingdings 3","Dingbat dec":"61","Dingbat hex":"3D","Unicode dec":"11173","Unicode hex":"2BA5"},{"Typeface name":"Wingdings 3","Dingbat dec":"62","Dingbat hex":"3E","Unicode dec":"11174","Unicode hex":"2BA6"},{"Typeface name":"Wingdings 3","Dingbat dec":"63","Dingbat hex":"3F","Unicode dec":"11175","Unicode hex":"2BA7"},{"Typeface name":"Wingdings 3","Dingbat dec":"64","Dingbat hex":"40","Unicode dec":"11152","Unicode hex":"2B90"},{"Typeface name":"Wingdings 3","Dingbat dec":"65","Dingbat hex":"41","Unicode dec":"11153","Unicode hex":"2B91"},{"Typeface name":"Wingdings 3","Dingbat dec":"66","Dingbat hex":"42","Unicode dec":"11154","Unicode hex":"2B92"},{"Typeface name":"Wingdings 3","Dingbat dec":"67","Dingbat hex":"43","Unicode dec":"11155","Unicode hex":"2B93"},{"Typeface name":"Wingdings 3","Dingbat dec":"68","Dingbat hex":"44","Unicode dec":"11136","Unicode hex":"2B80"},{"Typeface name":"Wingdings 3","Dingbat dec":"69","Dingbat hex":"45","Unicode dec":"11139","Unicode hex":"2B83"},{"Typeface name":"Wingdings 3","Dingbat dec":"70","Dingbat hex":"46","Unicode dec":"11134","Unicode hex":"2B7E"},{"Typeface name":"Wingdings 3","Dingbat dec":"71","Dingbat hex":"47","Unicode dec":"11135","Unicode hex":"2B7F"},{"Typeface name":"Wingdings 3","Dingbat dec":"72","Dingbat hex":"48","Unicode dec":"11140","Unicode hex":"2B84"},{"Typeface name":"Wingdings 3","Dingbat dec":"73","Dingbat hex":"49","Unicode dec":"11142","Unicode hex":"2B86"},{"Typeface name":"Wingdings 3","Dingbat dec":"74","Dingbat hex":"4A","Unicode dec":"11141","Unicode hex":"2B85"},{"Typeface name":"Wingdings 3","Dingbat dec":"75","Dingbat hex":"4B","Unicode dec":"11143","Unicode hex":"2B87"},{"Typeface name":"Wingdings 3","Dingbat dec":"76","Dingbat hex":"4C","Unicode dec":"11151","Unicode hex":"2B8F"},{"Typeface name":"Wingdings 3","Dingbat dec":"77","Dingbat hex":"4D","Unicode dec":"11149","Unicode hex":"2B8D"},{"Typeface name":"Wingdings 3","Dingbat dec":"78","Dingbat hex":"4E","Unicode dec":"11150","Unicode hex":"2B8E"},{"Typeface name":"Wingdings 3","Dingbat dec":"79","Dingbat hex":"4F","Unicode dec":"11148","Unicode hex":"2B8C"},{"Typeface name":"Wingdings 3","Dingbat dec":"80","Dingbat hex":"50","Unicode dec":"11118","Unicode hex":"2B6E"},{"Typeface name":"Wingdings 3","Dingbat dec":"81","Dingbat hex":"51","Unicode dec":"11119","Unicode hex":"2B6F"},{"Typeface name":"Wingdings 3","Dingbat dec":"82","Dingbat hex":"52","Unicode dec":"9099","Unicode hex":"238B"},{"Typeface name":"Wingdings 3","Dingbat dec":"83","Dingbat hex":"53","Unicode dec":"8996","Unicode hex":"2324"},{"Typeface name":"Wingdings 3","Dingbat dec":"84","Dingbat hex":"54","Unicode dec":"8963","Unicode hex":"2303"},{"Typeface name":"Wingdings 3","Dingbat dec":"85","Dingbat hex":"55","Unicode dec":"8997","Unicode hex":"2325"},{"Typeface name":"Wingdings 3","Dingbat dec":"86","Dingbat hex":"56","Unicode dec":"9251","Unicode hex":"2423"},{"Typeface name":"Wingdings 3","Dingbat dec":"87","Dingbat hex":"57","Unicode dec":"9085","Unicode hex":"237D"},{"Typeface name":"Wingdings 3","Dingbat dec":"88","Dingbat hex":"58","Unicode dec":"8682","Unicode hex":"21EA"},{"Typeface name":"Wingdings 3","Dingbat dec":"89","Dingbat hex":"59","Unicode dec":"11192","Unicode hex":"2BB8"},{"Typeface name":"Wingdings 3","Dingbat dec":"90","Dingbat hex":"5A","Unicode dec":"129184","Unicode hex":"1F8A0"},{"Typeface name":"Wingdings 3","Dingbat dec":"91","Dingbat hex":"5B","Unicode dec":"129185","Unicode hex":"1F8A1"},{"Typeface name":"Wingdings 3","Dingbat dec":"92","Dingbat hex":"5C","Unicode dec":"129186","Unicode hex":"1F8A2"},{"Typeface name":"Wingdings 3","Dingbat dec":"93","Dingbat hex":"5D","Unicode dec":"129187","Unicode hex":"1F8A3"},{"Typeface name":"Wingdings 3","Dingbat dec":"94","Dingbat hex":"5E","Unicode dec":"129188","Unicode hex":"1F8A4"},{"Typeface name":"Wingdings 3","Dingbat dec":"95","Dingbat hex":"5F","Unicode dec":"129189","Unicode hex":"1F8A5"},{"Typeface name":"Wingdings 3","Dingbat dec":"96","Dingbat hex":"60","Unicode dec":"129190","Unicode hex":"1F8A6"},{"Typeface name":"Wingdings 3","Dingbat dec":"97","Dingbat hex":"61","Unicode dec":"129191","Unicode hex":"1F8A7"},{"Typeface name":"Wingdings 3","Dingbat dec":"98","Dingbat hex":"62","Unicode dec":"129192","Unicode hex":"1F8A8"},{"Typeface name":"Wingdings 3","Dingbat dec":"99","Dingbat hex":"63","Unicode dec":"129193","Unicode hex":"1F8A9"},{"Typeface name":"Wingdings 3","Dingbat dec":"100","Dingbat hex":"64","Unicode dec":"129194","Unicode hex":"1F8AA"},{"Typeface name":"Wingdings 3","Dingbat dec":"101","Dingbat hex":"65","Unicode dec":"129195","Unicode hex":"1F8AB"},{"Typeface name":"Wingdings 3","Dingbat dec":"102","Dingbat hex":"66","Unicode dec":"129104","Unicode hex":"1F850"},{"Typeface name":"Wingdings 3","Dingbat dec":"103","Dingbat hex":"67","Unicode dec":"129106","Unicode hex":"1F852"},{"Typeface name":"Wingdings 3","Dingbat dec":"104","Dingbat hex":"68","Unicode dec":"129105","Unicode hex":"1F851"},{"Typeface name":"Wingdings 3","Dingbat dec":"105","Dingbat hex":"69","Unicode dec":"129107","Unicode hex":"1F853"},{"Typeface name":"Wingdings 3","Dingbat dec":"106","Dingbat hex":"6A","Unicode dec":"129108","Unicode hex":"1F854"},{"Typeface name":"Wingdings 3","Dingbat dec":"107","Dingbat hex":"6B","Unicode dec":"129109","Unicode hex":"1F855"},{"Typeface name":"Wingdings 3","Dingbat dec":"108","Dingbat hex":"6C","Unicode dec":"129111","Unicode hex":"1F857"},{"Typeface name":"Wingdings 3","Dingbat dec":"109","Dingbat hex":"6D","Unicode dec":"129110","Unicode hex":"1F856"},{"Typeface name":"Wingdings 3","Dingbat dec":"110","Dingbat hex":"6E","Unicode dec":"129112","Unicode hex":"1F858"},{"Typeface name":"Wingdings 3","Dingbat dec":"111","Dingbat hex":"6F","Unicode dec":"129113","Unicode hex":"1F859"},{"Typeface name":"Wingdings 3","Dingbat dec":"112","Dingbat hex":"70","Unicode dec":"9650","Unicode hex":"25B2"},{"Typeface name":"Wingdings 3","Dingbat dec":"113","Dingbat hex":"71","Unicode dec":"9660","Unicode hex":"25BC"},{"Typeface name":"Wingdings 3","Dingbat dec":"114","Dingbat hex":"72","Unicode dec":"9651","Unicode hex":"25B3"},{"Typeface name":"Wingdings 3","Dingbat dec":"115","Dingbat hex":"73","Unicode dec":"9661","Unicode hex":"25BD"},{"Typeface name":"Wingdings 3","Dingbat dec":"116","Dingbat hex":"74","Unicode dec":"9664","Unicode hex":"25C0"},{"Typeface name":"Wingdings 3","Dingbat dec":"117","Dingbat hex":"75","Unicode dec":"9654","Unicode hex":"25B6"},{"Typeface name":"Wingdings 3","Dingbat dec":"118","Dingbat hex":"76","Unicode dec":"9665","Unicode hex":"25C1"},{"Typeface name":"Wingdings 3","Dingbat dec":"119","Dingbat hex":"77","Unicode dec":"9655","Unicode hex":"25B7"},{"Typeface name":"Wingdings 3","Dingbat dec":"120","Dingbat hex":"78","Unicode dec":"9699","Unicode hex":"25E3"},{"Typeface name":"Wingdings 3","Dingbat dec":"121","Dingbat hex":"79","Unicode dec":"9698","Unicode hex":"25E2"},{"Typeface name":"Wingdings 3","Dingbat dec":"122","Dingbat hex":"7A","Unicode dec":"9700","Unicode hex":"25E4"},{"Typeface name":"Wingdings 3","Dingbat dec":"123","Dingbat hex":"7B","Unicode dec":"9701","Unicode hex":"25E5"},{"Typeface name":"Wingdings 3","Dingbat dec":"124","Dingbat hex":"7C","Unicode dec":"128896","Unicode hex":"1F780"},{"Typeface name":"Wingdings 3","Dingbat dec":"125","Dingbat hex":"7D","Unicode dec":"128898","Unicode hex":"1F782"},{"Typeface name":"Wingdings 3","Dingbat dec":"126","Dingbat hex":"7E","Unicode dec":"128897","Unicode hex":"1F781"},{"Typeface name":"Wingdings 3","Dingbat dec":"128","Dingbat hex":"80","Unicode dec":"128899","Unicode hex":"1F783"},{"Typeface name":"Wingdings 3","Dingbat dec":"129","Dingbat hex":"81","Unicode dec":"11205","Unicode hex":"2BC5"},{"Typeface name":"Wingdings 3","Dingbat dec":"130","Dingbat hex":"82","Unicode dec":"11206","Unicode hex":"2BC6"},{"Typeface name":"Wingdings 3","Dingbat dec":"131","Dingbat hex":"83","Unicode dec":"11207","Unicode hex":"2BC7"},{"Typeface name":"Wingdings 3","Dingbat dec":"132","Dingbat hex":"84","Unicode dec":"11208","Unicode hex":"2BC8"},{"Typeface name":"Wingdings 3","Dingbat dec":"133","Dingbat hex":"85","Unicode dec":"11164","Unicode hex":"2B9C"},{"Typeface name":"Wingdings 3","Dingbat dec":"134","Dingbat hex":"86","Unicode dec":"11166","Unicode hex":"2B9E"},{"Typeface name":"Wingdings 3","Dingbat dec":"135","Dingbat hex":"87","Unicode dec":"11165","Unicode hex":"2B9D"},{"Typeface name":"Wingdings 3","Dingbat dec":"136","Dingbat hex":"88","Unicode dec":"11167","Unicode hex":"2B9F"},{"Typeface name":"Wingdings 3","Dingbat dec":"137","Dingbat hex":"89","Unicode dec":"129040","Unicode hex":"1F810"},{"Typeface name":"Wingdings 3","Dingbat dec":"138","Dingbat hex":"8A","Unicode dec":"129042","Unicode hex":"1F812"},{"Typeface name":"Wingdings 3","Dingbat dec":"139","Dingbat hex":"8B","Unicode dec":"129041","Unicode hex":"1F811"},{"Typeface name":"Wingdings 3","Dingbat dec":"140","Dingbat hex":"8C","Unicode dec":"129043","Unicode hex":"1F813"},{"Typeface name":"Wingdings 3","Dingbat dec":"141","Dingbat hex":"8D","Unicode dec":"129044","Unicode hex":"1F814"},{"Typeface name":"Wingdings 3","Dingbat dec":"142","Dingbat hex":"8E","Unicode dec":"129046","Unicode hex":"1F816"},{"Typeface name":"Wingdings 3","Dingbat dec":"143","Dingbat hex":"8F","Unicode dec":"129045","Unicode hex":"1F815"},{"Typeface name":"Wingdings 3","Dingbat dec":"144","Dingbat hex":"90","Unicode dec":"129047","Unicode hex":"1F817"},{"Typeface name":"Wingdings 3","Dingbat dec":"145","Dingbat hex":"91","Unicode dec":"129048","Unicode hex":"1F818"},{"Typeface name":"Wingdings 3","Dingbat dec":"146","Dingbat hex":"92","Unicode dec":"129050","Unicode hex":"1F81A"},{"Typeface name":"Wingdings 3","Dingbat dec":"147","Dingbat hex":"93","Unicode dec":"129049","Unicode hex":"1F819"},{"Typeface name":"Wingdings 3","Dingbat dec":"148","Dingbat hex":"94","Unicode dec":"129051","Unicode hex":"1F81B"},{"Typeface name":"Wingdings 3","Dingbat dec":"149","Dingbat hex":"95","Unicode dec":"129052","Unicode hex":"1F81C"},{"Typeface name":"Wingdings 3","Dingbat dec":"150","Dingbat hex":"96","Unicode dec":"129054","Unicode hex":"1F81E"},{"Typeface name":"Wingdings 3","Dingbat dec":"151","Dingbat hex":"97","Unicode dec":"129053","Unicode hex":"1F81D"},{"Typeface name":"Wingdings 3","Dingbat dec":"152","Dingbat hex":"98","Unicode dec":"129055","Unicode hex":"1F81F"},{"Typeface name":"Wingdings 3","Dingbat dec":"153","Dingbat hex":"99","Unicode dec":"129024","Unicode hex":"1F800"},{"Typeface name":"Wingdings 3","Dingbat dec":"154","Dingbat hex":"9A","Unicode dec":"129026","Unicode hex":"1F802"},{"Typeface name":"Wingdings 3","Dingbat dec":"155","Dingbat hex":"9B","Unicode dec":"129025","Unicode hex":"1F801"},{"Typeface name":"Wingdings 3","Dingbat dec":"156","Dingbat hex":"9C","Unicode dec":"129027","Unicode hex":"1F803"},{"Typeface name":"Wingdings 3","Dingbat dec":"157","Dingbat hex":"9D","Unicode dec":"129028","Unicode hex":"1F804"},{"Typeface name":"Wingdings 3","Dingbat dec":"158","Dingbat hex":"9E","Unicode dec":"129030","Unicode hex":"1F806"},{"Typeface name":"Wingdings 3","Dingbat dec":"159","Dingbat hex":"9F","Unicode dec":"129029","Unicode hex":"1F805"},{"Typeface name":"Wingdings 3","Dingbat dec":"160","Dingbat hex":"A0","Unicode dec":"129031","Unicode hex":"1F807"},{"Typeface name":"Wingdings 3","Dingbat dec":"161","Dingbat hex":"A1","Unicode dec":"129032","Unicode hex":"1F808"},{"Typeface name":"Wingdings 3","Dingbat dec":"162","Dingbat hex":"A2","Unicode dec":"129034","Unicode hex":"1F80A"},{"Typeface name":"Wingdings 3","Dingbat dec":"163","Dingbat hex":"A3","Unicode dec":"129033","Unicode hex":"1F809"},{"Typeface name":"Wingdings 3","Dingbat dec":"164","Dingbat hex":"A4","Unicode dec":"129035","Unicode hex":"1F80B"},{"Typeface name":"Wingdings 3","Dingbat dec":"165","Dingbat hex":"A5","Unicode dec":"129056","Unicode hex":"1F820"},{"Typeface name":"Wingdings 3","Dingbat dec":"166","Dingbat hex":"A6","Unicode dec":"129058","Unicode hex":"1F822"},{"Typeface name":"Wingdings 3","Dingbat dec":"167","Dingbat hex":"A7","Unicode dec":"129060","Unicode hex":"1F824"},{"Typeface name":"Wingdings 3","Dingbat dec":"168","Dingbat hex":"A8","Unicode dec":"129062","Unicode hex":"1F826"},{"Typeface name":"Wingdings 3","Dingbat dec":"169","Dingbat hex":"A9","Unicode dec":"129064","Unicode hex":"1F828"},{"Typeface name":"Wingdings 3","Dingbat dec":"170","Dingbat hex":"AA","Unicode dec":"129066","Unicode hex":"1F82A"},{"Typeface name":"Wingdings 3","Dingbat dec":"171","Dingbat hex":"AB","Unicode dec":"129068","Unicode hex":"1F82C"},{"Typeface name":"Wingdings 3","Dingbat dec":"172","Dingbat hex":"AC","Unicode dec":"129180","Unicode hex":"1F89C"},{"Typeface name":"Wingdings 3","Dingbat dec":"173","Dingbat hex":"AD","Unicode dec":"129181","Unicode hex":"1F89D"},{"Typeface name":"Wingdings 3","Dingbat dec":"174","Dingbat hex":"AE","Unicode dec":"129182","Unicode hex":"1F89E"},{"Typeface name":"Wingdings 3","Dingbat dec":"175","Dingbat hex":"AF","Unicode dec":"129183","Unicode hex":"1F89F"},{"Typeface name":"Wingdings 3","Dingbat dec":"176","Dingbat hex":"B0","Unicode dec":"129070","Unicode hex":"1F82E"},{"Typeface name":"Wingdings 3","Dingbat dec":"177","Dingbat hex":"B1","Unicode dec":"129072","Unicode hex":"1F830"},{"Typeface name":"Wingdings 3","Dingbat dec":"178","Dingbat hex":"B2","Unicode dec":"129074","Unicode hex":"1F832"},{"Typeface name":"Wingdings 3","Dingbat dec":"179","Dingbat hex":"B3","Unicode dec":"129076","Unicode hex":"1F834"},{"Typeface name":"Wingdings 3","Dingbat dec":"180","Dingbat hex":"B4","Unicode dec":"129078","Unicode hex":"1F836"},{"Typeface name":"Wingdings 3","Dingbat dec":"181","Dingbat hex":"B5","Unicode dec":"129080","Unicode hex":"1F838"},{"Typeface name":"Wingdings 3","Dingbat dec":"182","Dingbat hex":"B6","Unicode dec":"129082","Unicode hex":"1F83A"},{"Typeface name":"Wingdings 3","Dingbat dec":"183","Dingbat hex":"B7","Unicode dec":"129081","Unicode hex":"1F839"},{"Typeface name":"Wingdings 3","Dingbat dec":"184","Dingbat hex":"B8","Unicode dec":"129083","Unicode hex":"1F83B"},{"Typeface name":"Wingdings 3","Dingbat dec":"185","Dingbat hex":"B9","Unicode dec":"129176","Unicode hex":"1F898"},{"Typeface name":"Wingdings 3","Dingbat dec":"186","Dingbat hex":"BA","Unicode dec":"129178","Unicode hex":"1F89A"},{"Typeface name":"Wingdings 3","Dingbat dec":"187","Dingbat hex":"BB","Unicode dec":"129177","Unicode hex":"1F899"},{"Typeface name":"Wingdings 3","Dingbat dec":"188","Dingbat hex":"BC","Unicode dec":"129179","Unicode hex":"1F89B"},{"Typeface name":"Wingdings 3","Dingbat dec":"189","Dingbat hex":"BD","Unicode dec":"129084","Unicode hex":"1F83C"},{"Typeface name":"Wingdings 3","Dingbat dec":"190","Dingbat hex":"BE","Unicode dec":"129086","Unicode hex":"1F83E"},{"Typeface name":"Wingdings 3","Dingbat dec":"191","Dingbat hex":"BF","Unicode dec":"129085","Unicode hex":"1F83D"},{"Typeface name":"Wingdings 3","Dingbat dec":"192","Dingbat hex":"C0","Unicode dec":"129087","Unicode hex":"1F83F"},{"Typeface name":"Wingdings 3","Dingbat dec":"193","Dingbat hex":"C1","Unicode dec":"129088","Unicode hex":"1F840"},{"Typeface name":"Wingdings 3","Dingbat dec":"194","Dingbat hex":"C2","Unicode dec":"129090","Unicode hex":"1F842"},{"Typeface name":"Wingdings 3","Dingbat dec":"195","Dingbat hex":"C3","Unicode dec":"129089","Unicode hex":"1F841"},{"Typeface name":"Wingdings 3","Dingbat dec":"196","Dingbat hex":"C4","Unicode dec":"129091","Unicode hex":"1F843"},{"Typeface name":"Wingdings 3","Dingbat dec":"197","Dingbat hex":"C5","Unicode dec":"129092","Unicode hex":"1F844"},{"Typeface name":"Wingdings 3","Dingbat dec":"198","Dingbat hex":"C6","Unicode dec":"129094","Unicode hex":"1F846"},{"Typeface name":"Wingdings 3","Dingbat dec":"199","Dingbat hex":"C7","Unicode dec":"129093","Unicode hex":"1F845"},{"Typeface name":"Wingdings 3","Dingbat dec":"200","Dingbat hex":"C8","Unicode dec":"129095","Unicode hex":"1F847"},{"Typeface name":"Wingdings 3","Dingbat dec":"201","Dingbat hex":"C9","Unicode dec":"11176","Unicode hex":"2BA8"},{"Typeface name":"Wingdings 3","Dingbat dec":"202","Dingbat hex":"CA","Unicode dec":"11177","Unicode hex":"2BA9"},{"Typeface name":"Wingdings 3","Dingbat dec":"203","Dingbat hex":"CB","Unicode dec":"11178","Unicode hex":"2BAA"},{"Typeface name":"Wingdings 3","Dingbat dec":"204","Dingbat hex":"CC","Unicode dec":"11179","Unicode hex":"2BAB"},{"Typeface name":"Wingdings 3","Dingbat dec":"205","Dingbat hex":"CD","Unicode dec":"11180","Unicode hex":"2BAC"},{"Typeface name":"Wingdings 3","Dingbat dec":"206","Dingbat hex":"CE","Unicode dec":"11181","Unicode hex":"2BAD"},{"Typeface name":"Wingdings 3","Dingbat dec":"207","Dingbat hex":"CF","Unicode dec":"11182","Unicode hex":"2BAE"},{"Typeface name":"Wingdings 3","Dingbat dec":"208","Dingbat hex":"D0","Unicode dec":"11183","Unicode hex":"2BAF"},{"Typeface name":"Wingdings 3","Dingbat dec":"209","Dingbat hex":"D1","Unicode dec":"129120","Unicode hex":"1F860"},{"Typeface name":"Wingdings 3","Dingbat dec":"210","Dingbat hex":"D2","Unicode dec":"129122","Unicode hex":"1F862"},{"Typeface name":"Wingdings 3","Dingbat dec":"211","Dingbat hex":"D3","Unicode dec":"129121","Unicode hex":"1F861"},{"Typeface name":"Wingdings 3","Dingbat dec":"212","Dingbat hex":"D4","Unicode dec":"129123","Unicode hex":"1F863"},{"Typeface name":"Wingdings 3","Dingbat dec":"213","Dingbat hex":"D5","Unicode dec":"129124","Unicode hex":"1F864"},{"Typeface name":"Wingdings 3","Dingbat dec":"214","Dingbat hex":"D6","Unicode dec":"129125","Unicode hex":"1F865"},{"Typeface name":"Wingdings 3","Dingbat dec":"215","Dingbat hex":"D7","Unicode dec":"129127","Unicode hex":"1F867"},{"Typeface name":"Wingdings 3","Dingbat dec":"216","Dingbat hex":"D8","Unicode dec":"129126","Unicode hex":"1F866"},{"Typeface name":"Wingdings 3","Dingbat dec":"217","Dingbat hex":"D9","Unicode dec":"129136","Unicode hex":"1F870"},{"Typeface name":"Wingdings 3","Dingbat dec":"218","Dingbat hex":"DA","Unicode dec":"129138","Unicode hex":"1F872"},{"Typeface name":"Wingdings 3","Dingbat dec":"219","Dingbat hex":"DB","Unicode dec":"129137","Unicode hex":"1F871"},{"Typeface name":"Wingdings 3","Dingbat dec":"220","Dingbat hex":"DC","Unicode dec":"129139","Unicode hex":"1F873"},{"Typeface name":"Wingdings 3","Dingbat dec":"221","Dingbat hex":"DD","Unicode dec":"129140","Unicode hex":"1F874"},{"Typeface name":"Wingdings 3","Dingbat dec":"222","Dingbat hex":"DE","Unicode dec":"129141","Unicode hex":"1F875"},{"Typeface name":"Wingdings 3","Dingbat dec":"223","Dingbat hex":"DF","Unicode dec":"129143","Unicode hex":"1F877"},{"Typeface name":"Wingdings 3","Dingbat dec":"224","Dingbat hex":"E0","Unicode dec":"129142","Unicode hex":"1F876"},{"Typeface name":"Wingdings 3","Dingbat dec":"225","Dingbat hex":"E1","Unicode dec":"129152","Unicode hex":"1F880"},{"Typeface name":"Wingdings 3","Dingbat dec":"226","Dingbat hex":"E2","Unicode dec":"129154","Unicode hex":"1F882"},{"Typeface name":"Wingdings 3","Dingbat dec":"227","Dingbat hex":"E3","Unicode dec":"129153","Unicode hex":"1F881"},{"Typeface name":"Wingdings 3","Dingbat dec":"228","Dingbat hex":"E4","Unicode dec":"129155","Unicode hex":"1F883"},{"Typeface name":"Wingdings 3","Dingbat dec":"229","Dingbat hex":"E5","Unicode dec":"129156","Unicode hex":"1F884"},{"Typeface name":"Wingdings 3","Dingbat dec":"230","Dingbat hex":"E6","Unicode dec":"129157","Unicode hex":"1F885"},{"Typeface name":"Wingdings 3","Dingbat dec":"231","Dingbat hex":"E7","Unicode dec":"129159","Unicode hex":"1F887"},{"Typeface name":"Wingdings 3","Dingbat dec":"232","Dingbat hex":"E8","Unicode dec":"129158","Unicode hex":"1F886"},{"Typeface name":"Wingdings 3","Dingbat dec":"233","Dingbat hex":"E9","Unicode dec":"129168","Unicode hex":"1F890"},{"Typeface name":"Wingdings 3","Dingbat dec":"234","Dingbat hex":"EA","Unicode dec":"129170","Unicode hex":"1F892"},{"Typeface name":"Wingdings 3","Dingbat dec":"235","Dingbat hex":"EB","Unicode dec":"129169","Unicode hex":"1F891"},{"Typeface name":"Wingdings 3","Dingbat dec":"236","Dingbat hex":"EC","Unicode dec":"129171","Unicode hex":"1F893"},{"Typeface name":"Wingdings 3","Dingbat dec":"237","Dingbat hex":"ED","Unicode dec":"129172","Unicode hex":"1F894"},{"Typeface name":"Wingdings 3","Dingbat dec":"238","Dingbat hex":"EE","Unicode dec":"129174","Unicode hex":"1F896"},{"Typeface name":"Wingdings 3","Dingbat dec":"239","Dingbat hex":"EF","Unicode dec":"129173","Unicode hex":"1F895"},{"Typeface name":"Wingdings 3","Dingbat dec":"240","Dingbat hex":"F0","Unicode dec":"129175","Unicode hex":"1F897"}];Bk.default=aK});var jk=R(function(Pn){var uK=Pn&&Pn.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Pn,"__esModule",{value:!0});Pn.hex=Pn.dec=Pn.codePoint=void 0;var lK=uK(Lk()),Wk={},dK=String.fromCodePoint?String.fromCodePoint:pK;for(sc=0,Sd=lK.default;sc<Sd.length;sc++)ac=Sd[sc],Cd=parseInt(ac["Unicode dec"],10),Xy={codePoint:Cd,string:dK(Cd)},Wk[ac["Typeface name"].toUpperCase()+"_"+ac["Dingbat dec"]]=Xy;var ac,Cd,Xy,sc,Sd;function Ky(e,t){return Wk[e.toUpperCase()+"_"+t]}Pn.codePoint=Ky;function fK(e,t){return Ky(e,parseInt(t,10))}Pn.dec=fK;function hK(e,t){return Ky(e,parseInt(t,16))}Pn.hex=hK;function pK(e){if(e<=65535)return String.fromCharCode(e);else{var t=Math.floor((e-65536)/1024)+55296,n=(e-65536)%1024+56320;return String.fromCharCode(t,n)}}});var Yy=R(function(bK){var qk=Me();bK.paragraph=gK;bK.run=mK;bK._elements=$k;bK._elementsOfType=Zy;bK.getDescendantsOfType=yK;bK.getDescendants=Hk;function gK(e){return Zy("paragraph",e)}function mK(e){return Zy("run",e)}function Zy(e,t){return $k(function(n){if(n.type===e)return t(n);else return n})}function $k(e){return function t(n){if(n.children){var r=qk.map(n.children,t);n=qk.extend(n,{children:r})}return e(n)}}function yK(e,t){return Hk(e).filter(function(n){return n.type===t})}function Hk(e){var t=[];return Gk(e,function(n){t.push(n)}),t}function Gk(e,t){if(e.children)e.children.forEach(function(n){Gk(n,t),t(n)})}});var zk=R(function(CK){CK.uriToZipEntryName=TK;CK.replaceFragment=SK;function TK(e,t){if(t.charAt(0)==="/")return t.substr(1);else return e+"/"+t}function SK(e,t){var n=e.indexOf("#");if(n!==-1)e=e.substring(0,n);return e+"#"+t}});var eR=R(function(IK){IK.createBodyReader=RK;IK._readNumberingProperties=Qk;var Vk=jk(),Kt=Me(),Te=Br(),Jk=wn().Result,cr=wn().warning,kK=Td(),Xk=Yy(),Kk=zk();function RK(e){return{readXmlElement:function(t){return new Zk(e).readXmlElement(t)},readXmlElements:function(t){return new Zk(e).readXmlElements(t)}}}function Zk(e){var t=[],n=[],r=[],i=e.relationships,o=e.contentTypes,s=e.docxFile,a=e.files,c=e.numbering,u=e.styles;function d(M){var z=M.map(f);return Yk(z)}function f(M){if(M.type==="element"){var z=T[M.name];if(z)return z(M);else if(!Object.prototype.hasOwnProperty.call(OK,M.name)){var Z=cr("An unrecognised element was ignored: "+M.name);return cc([Z])}}return is()}function h(M){return m(M).map(function(z){return{type:"paragraphProperties",styleId:z.styleId,styleName:z.name,alignment:M.firstOrEmpty("w:jc").attributes["w:val"],numbering:Qk(z.styleId,M.firstOrEmpty("w:numPr"),c),indent:p(M.firstOrEmpty("w:ind"))}})}function p(M){return{start:M.attributes["w:start"]||M.attributes["w:left"],end:M.attributes["w:end"]||M.attributes["w:right"],firstLine:M.attributes["w:firstLine"],hanging:M.attributes["w:hanging"]}}function g(M){return x(M).map(function(z){var Z=M.firstOrEmpty("w:sz").attributes["w:val"],te=/^[0-9]+$/.test(Z)?parseInt(Z,10)/2:null;return{type:"runProperties",styleId:z.styleId,styleName:z.name,verticalAlignment:M.firstOrEmpty("w:vertAlign").attributes["w:val"],font:M.firstOrEmpty("w:rFonts").attributes["w:ascii"],fontSize:te,isBold:v(M.first("w:b")),isUnderline:y(M.first("w:u")),isItalic:v(M.first("w:i")),isStrikethrough:v(M.first("w:strike")),isAllCaps:v(M.first("w:caps")),isSmallCaps:v(M.first("w:smallCaps")),highlight:_(M.firstOrEmpty("w:highlight").attributes["w:val"])}})}function y(M){if(M){var z=M.attributes["w:val"];return z!==void 0&&z!=="false"&&z!=="0"&&z!=="none"}else return!1}function v(M){if(M){var z=M.attributes["w:val"];return z!=="false"&&z!=="0"}else return!1}function b(M){return M!=="false"&&M!=="0"}function _(M){if(!M||M==="none")return null;else return M}function m(M){return A(M,"w:pStyle","Paragraph",u.findParagraphStyleById)}function x(M){return A(M,"w:rStyle","Run",u.findCharacterStyleById)}function D(M){return A(M,"w:tblStyle","Table",u.findTableStyleById)}function A(M,z,Z,te){var se=[],he=M.first(z),Se=null,mt=null;if(he){if(Se=he.attributes["w:val"],Se){var Qe=te(Se);if(Qe)mt=Qe.name;else se.push(Nc(Z,Se))}}return Ad({styleId:Se,name:mt},se)}function E(M){var z=M.attributes["w:fldCharType"];if(z==="begin")t.push({type:"begin",fldChar:M}),n=[];else if(z==="end"){var Z=t.pop();if(Z.type==="begin")Z=C(Z);if(Z.type==="checkbox")return Mt(Te.checkbox({checked:Z.checked}))}else if(z==="separate"){var te=t.pop(),se=C(te);t.push(se)}return is()}function U(){var M=Kt.last(t.filter(function(z){return z.type==="hyperlink"}));return M?M.options:null}function C(M){return N(n.join(""),M.type==="begin"?M.fldChar:kK.emptyElement)}function N(M,z){var Z=/^\s*HYPERLINK\s+(\\l\s+)?(?:"(.*)"|([^\\]\S*))/.exec(M);if(Z){var te=Z[2]===void 0?Z[3]:Z[2],se=Z[1]===void 0?{href:te}:{anchor:te};return{type:"hyperlink",options:se}}var he=/\s*FORMCHECKBOX\s*/.exec(M);if(he){var Se=z.firstOrEmpty("w:ffData").firstOrEmpty("w:checkBox"),mt=Se.first("w:checked"),Qe=mt==null?v(Se.first("w:default")):v(mt);return{type:"checkbox",checked:Qe}}return{type:"unknown"}}function F(M){return n.push(M.text()),is()}function S(M){var z=M.attributes["w:font"],Z=M.attributes["w:char"],te=Vk.hex(z,Z);if(te==null&&/^F0..$/.test(Z))te=Vk.hex(z,Z.substring(2));if(te==null)return cc([cr("A w:sym element with an unsupported character was ignored: char "+Z+" in font "+z)]);else return Mt(new Te.Text(te.string))}function B(M){return function(z){var Z=z.attributes["w:id"];return Mt(new Te.NoteReference({noteType:M,noteId:Z}))}}function j(M){return Mt(Te.commentReference({commentId:M.attributes["w:id"]}))}function G(M){return d(M.children)}var T={"w:p":function(M){var z=M.firstOrEmpty("w:pPr"),Z=!!z.firstOrEmpty("w:rPr").first("w:del");if(Z)return M.children.forEach(function(se){r.push(se)}),is();else{var te=M.children;if(r.length>0)te=r.concat(te),r=[];return it.map(h(z),d(te),function(se,he){return new Te.Paragraph(he,se)}).insertExtra()}},"w:r":function(M){return it.map(g(M.firstOrEmpty("w:rPr")),d(M.children),function(z,Z){var te=U();if(te!==null)Z=[new Te.Hyperlink(Z,te)];return new Te.Run(Z,z)})},"w:fldChar":E,"w:instrText":F,"w:t":function(M){return Mt(new Te.Text(M.text()))},"w:tab":function(M){return Mt(new Te.Tab)},"w:noBreakHyphen":function(){return Mt(new Te.Text("‑"))},"w:softHyphen":function(M){return Mt(new Te.Text("­"))},"w:sym":S,"w:hyperlink":function(M){var z=M.attributes["r:id"],Z=M.attributes["w:anchor"];return d(M.children).map(function(te){function se(Se){var mt=M.attributes["w:tgtFrame"]||null;return new Te.Hyperlink(te,Kt.extend({targetFrame:mt},Se))}if(z){var he=i.findTargetByRelationshipId(z);if(Z)he=Kk.replaceFragment(he,Z);return se({href:he})}else if(Z)return se({anchor:Z});else return te})},"w:tbl":O,"w:tr":P,"w:tc":W,"w:footnoteReference":B("footnote"),"w:endnoteReference":B("endnote"),"w:commentReference":j,"w:br":function(M){var z=M.attributes["w:type"];if(z==null||z==="textWrapping")return Mt(Te.lineBreak);else if(z==="page")return Mt(Te.pageBreak);else if(z==="column")return Mt(Te.columnBreak);else return cc([cr("Unsupported break type: "+z)])},"w:bookmarkStart":function(M){var z=M.attributes["w:name"];if(z==="_GoBack")return is();else return Mt(new Te.BookmarkStart({name:z}))},"mc:AlternateContent":function(M){return G(M.firstOrEmpty("mc:Fallback"))},"w:sdt":function(M){var z=d(M.firstOrEmpty("w:sdtContent").children);return z.map(function(Z){var te=M.firstOrEmpty("w:sdtPr").first("wordml:checkbox");if(te){var se=te.first("wordml:checked"),he=!!se&&b(se.attributes["wordml:val"]),Se=Te.checkbox({checked:he}),mt=!1,Qe=Z.map(Xk._elementsOfType(Te.types.text,function(ai){if(ai.value.length>0&&!mt)return mt=!0,Se;else return ai}));if(mt)return Qe;else return Se}else return Z})},"w:ins":G,"w:object":G,"w:smartTag":G,"w:drawing":G,"w:pict":function(M){return G(M).toExtra()},"v:roundrect":G,"v:shape":G,"v:textbox":G,"w:txbxContent":G,"wp:inline":de,"wp:anchor":de,"v:imagedata":pn,"v:group":G,"v:rect":G};return{readXmlElement:f,readXmlElements:d};function O(M){var z=k(M.firstOrEmpty("w:tblPr"));return d(M.children).flatMap(K).flatMap(function(Z){return z.map(function(te){return Te.Table(Z,te)})})}function k(M){return D(M).map(function(z){return{styleId:z.styleId,styleName:z.name}})}function P(M){var z=M.firstOrEmpty("w:trPr"),Z=!!z.first("w:del");if(Z)return is();var te=!!z.first("w:tblHeader");return d(M.children).map(function(se){return Te.TableRow(se,{isHeader:te})})}function W(M){return d(M.children).map(function(z){var Z=M.firstOrEmpty("w:tcPr"),te=Z.firstOrEmpty("w:gridSpan").attributes["w:val"],se=te?parseInt(te,10):1,he=Te.TableCell(z,{colSpan:se});return he._vMerge=q(Z),he})}function q(M){var z=M.first("w:vMerge");if(z){var Z=z.attributes["w:val"];return Z==="continue"||!Z}else return null}function K(M){var z=Kt.any(M,function(se){return se.type!==Te.types.tableRow});if(z)return J(M),Ad(M,[cr("unexpected non-row element in table, cell merging may be incorrect")]);var Z=Kt.any(M,function(se){return Kt.any(se.children,function(he){return he.type!==Te.types.tableCell})});if(Z)return J(M),Ad(M,[cr("unexpected non-cell element in table row, cell merging may be incorrect")]);var te={};return M.forEach(function(se){var he=0;se.children.forEach(function(Se){if(Se._vMerge&&te[he])te[he].rowSpan++;else te[he]=Se,Se._vMerge=!1;he+=Se.colSpan})}),M.forEach(function(se){se.children=se.children.filter(function(he){return!he._vMerge}),se.children.forEach(function(he){delete he._vMerge})}),Mt(M)}function J(M){M.forEach(function(z){var Z=Xk.getDescendantsOfType(z,Te.types.tableCell);Z.forEach(function(te){delete te._vMerge})})}function de(M){var z=M.getElementsByTagName("a:graphic").getElementsByTagName("a:graphicData").getElementsByTagName("pic:pic").getElementsByTagName("pic:blipFill").getElementsByTagName("a:blip");return Yk(z.map(Ae.bind(null,M)))}function Ae(M,z){var Z=M.firstOrEmpty("wp:docPr"),te=Z.attributes,se=xe(te.descr)?te.title:te.descr,he=ot(z);if(he===null)return cc([cr("Could not find image file for a:blip element")]);return Zi(he,se).map(function(Se){var mt=Z.firstOrEmpty("a:hlinkClick"),Qe=mt.attributes["r:id"];if(Qe){var ai=i.findTargetByRelationshipId(Qe);return new Te.Hyperlink([Se],{href:ai})}else return Se})}function xe(M){return M==null||/^\s*$/.test(M)}function ot(M){var z=M.attributes["r:embed"],Z=M.attributes["r:link"];if(z)return hr(z);else if(Z){var te=i.findTargetByRelationshipId(Z);return{path:te,read:a.read.bind(a,te)}}else return null}function pn(M){var z=M.attributes["r:id"];if(z)return Zi(hr(z),M.attributes["o:title"]);else return cc([cr("A v:imagedata element without a relationship ID was ignored")])}function hr(M){var z=Kk.uriToZipEntryName("word",i.findTargetByRelationshipId(M));return{path:z,read:s.read.bind(s,z)}}function Zi(M,z){var Z=o.findContentType(M.path),te=Te.Image({readImage:M.read,altText:z,contentType:Z}),se=FK[Z]?[]:cr("Image of type "+Z+" is unlikely to display in web browsers");return Ad(te,se)}function Nc(M,z){return cr(M+" style with ID "+z+" was referenced but not defined in the document")}}function Qk(e,t,n){var r=t.firstOrEmpty("w:ilvl").attributes["w:val"],i=t.firstOrEmpty("w:numId").attributes["w:val"];if(r!==void 0&&i!==void 0)return n.findLevel(i,r);if(e!=null){var o=n.findLevelByParagraphStyleId(e);if(o!=null)return o}if(i!==void 0)return n.findLevel(i,"0");return null}var FK={"image/png":!0,"image/gif":!0,"image/jpeg":!0,"image/svg+xml":!0,"image/tiff":!0},OK={"office-word:wrap":!0,"v:shadow":!0,"v:shapetype":!0,"w:annotationRef":!0,"w:bookmarkEnd":!0,"w:sectPr":!0,"w:proofErr":!0,"w:lastRenderedPageBreak":!0,"w:commentRangeStart":!0,"w:commentRangeEnd":!0,"w:del":!0,"w:footnoteRef":!0,"w:endnoteRef":!0,"w:pPr":!0,"w:rPr":!0,"w:tblPr":!0,"w:tblGrid":!0,"w:trPr":!0,"w:tcPr":!0};function cc(e){return new it(null,null,e)}function is(){return new it(null)}function Mt(e){return new it(e)}function Ad(e,t){return new it(e,null,t)}function it(e,t,n){this.value=e||[],this.extra=t||[],this._result=new Jk({element:this.value,extra:t},n),this.messages=this._result.messages}it.prototype.toExtra=function(){return new it(null,Ud(this.extra,this.value),this.messages)};it.prototype.insertExtra=function(){var e=this.extra;if(e&&e.length)return new it(Ud(this.value,e),null,this.messages);else return this};it.prototype.map=function(e){var t=this._result.map(function(n){return e(n.element)});return new it(t.value,this.extra,t.messages)};it.prototype.flatMap=function(e){var t=this._result.flatMap(function(n){return e(n.element)._result});return new it(t.value.element,Ud(this.extra,t.value.extra),t.messages)};it.map=function(e,t,n){return new it(n(e.value,t.value),Ud(e.extra,t.extra),e.messages.concat(t.messages))};function Yk(e){var t=Jk.combine(Kt.pluck(e,"_result"));return new it(Kt.flatten(Kt.pluck(t.value,"element")),Kt.filter(Kt.flatten(Kt.pluck(t.value,"extra")),PK),t.messages)}function Ud(e,t){return Kt.flatten([e,t])}function PK(e){return e}});var tR=R(function(jK){jK.DocumentXmlReader=WK;var BK=Br(),LK=wn().Result;function WK(e){var t=e.bodyReader;function n(r){var i=r.first("w:body");if(i==null)throw Error("Could not find the body element: are you sure this is a docx file?");var o=t.readXmlElements(i.children).map(function(s){return new BK.Document(s,{notes:e.notes,comments:e.comments})});return new LK(o.value,o.messages)}return{convertXmlToDocument:n}}});var nR=R(function(HK){HK.readRelationships=$K;HK.defaultValue=new Jy([]);HK.Relationships=Jy;function $K(e){var t=[];return e.children.forEach(function(n){if(n.name==="relationships:Relationship"){var r={relationshipId:n.attributes.Id,target:n.attributes.Target,type:n.attributes.Type};t.push(r)}}),new Jy(t)}function Jy(e){var t=Object.create(null);e.forEach(function(r){t[r.relationshipId]=r.target});var n=Object.create(null);return e.forEach(function(r){if(!n[r.type])n[r.type]=[];n[r.type].push(r.target)}),{findTargetByRelationshipId:function(r){return t[r]},findTargetsByType:function(r){return n[r]||[]}}}});var iR=R(function(ZK){ZK.readContentTypesFromXml=KK;var XK={png:"png",gif:"gif",jpeg:"jpeg",jpg:"jpeg",tif:"tiff",tiff:"tiff",bmp:"bmp"};ZK.defaultContentTypes=rR({},{});function KK(e){var t=Object.create(null),n=Object.create(null);return e.children.forEach(function(r){if(r.name==="content-types:Default")t[r.attributes.Extension]=r.attributes.ContentType;if(r.name==="content-types:Override"){var i=r.attributes.PartName;if(i.charAt(0)==="/")i=i.substring(1);n[i]=r.attributes.ContentType}}),rR(n,t)}function rR(e,t){return{findContentType:function(n){var r=e[n];if(r)return r;else{var i=n.split("."),o=i[i.length-1];if(Object.prototype.hasOwnProperty.call(t,o))return t[o];else{var s=XK[o.toLowerCase()];if(s)return"image/"+s;else return null}}}}}});var oR=R(function(rZ){var kd=Me();rZ.readNumberingXml=QK;rZ.Numbering=Qy;rZ.defaultNumbering=new Qy({},{});function Qy(e,t,n){var r=kd.flatten(kd.values(t).map(function(c){return kd.values(c.levels)})),i=kd.indexBy(r.filter(function(c){return c.paragraphStyleId!=null}),"paragraphStyleId");function o(c,u){return s(c,u,Object.create(null))}function s(c,u,d){if(d[c])return null;d[c]=!0;var f=e[c];if(!f)return null;var h=t[f.abstractNumId];if(!h)return null;else if(h.numStyleLink==null)return t[f.abstractNumId].levels[u];else{var p=n.findNumberingStyleById(h.numStyleLink);return s(p.numId,u,d)}}function a(c){return i[c]||null}return{findLevel:o,findLevelByParagraphStyleId:a}}function QK(e,t){if(!t||!t.styles)throw Error("styles is missing");var n=eZ(e),r=nZ(e,n);return new Qy(r,n,t.styles)}function eZ(e){var t=Object.create(null);return e.getElementsByTagName("w:abstractNum").forEach(function(n){var r=n.attributes["w:abstractNumId"];t[r]=tZ(n)}),t}function tZ(e){var t=Object.create(null),n=null;if(e.getElementsByTagName("w:lvl").forEach(function(i){var o=i.attributes["w:ilvl"],s=i.firstOrEmpty("w:numFmt").attributes["w:val"],a=s!=="bullet",c=i.firstOrEmpty("w:pStyle").attributes["w:val"];if(o===void 0)n={isOrdered:a,level:"0",paragraphStyleId:c};else t[o]={isOrdered:a,level:o,paragraphStyleId:c}}),n!==null&&t[n.level]===void 0)t[n.level]=n;var r=e.firstOrEmpty("w:numStyleLink").attributes["w:val"];return{levels:t,numStyleLink:r}}function nZ(e){var t=Object.create(null);return e.getElementsByTagName("w:num").forEach(function(n){var r=n.attributes["w:numId"],i=n.first("w:abstractNumId").attributes["w:val"];t[r]={abstractNumId:i}}),t}});var aR=R(function(dZ){dZ.readStylesXml=aZ;dZ.Styles=uc;dZ.defaultStyles=new uc({},{});function uc(e,t,n,r){return{findParagraphStyleById:function(i){return e[i]},findCharacterStyleById:function(i){return t[i]},findTableStyleById:function(i){return n[i]},findNumberingStyleById:function(i){return r[i]}}}uc.EMPTY=new uc({},{},{},{});function aZ(e){var t=Object.create(null),n=Object.create(null),r=Object.create(null),i=Object.create(null);return e.getElementsByTagName("w:style").forEach(function(o){var s=cZ(o),a;switch(s.type){case"paragraph":a=t;break;case"character":a=n;break;case"table":a=r;break;case"numbering":a=i;break}if(a&&a[s.styleId]===void 0)a[s.styleId]=s}),new uc(t,n,r,i)}function cZ(e){var t=e.attributes["w:type"];if(t==="numbering")return lZ(t,e);else{var n=sR(e),r=uZ(e);return{type:t,styleId:n,name:r}}}function uZ(e){var t=e.first("w:name");return t?t.attributes["w:val"]:null}function lZ(e,t){var n=sR(t),r=t.firstOrEmpty("w:pPr").firstOrEmpty("w:numPr").firstOrEmpty("w:numId").attributes["w:val"];return{type:e,numId:r,styleId:n}}function sR(e){return e.attributes["w:styleId"]}});var uR=R(function(Rd){var gZ=Br(),mZ=wn().Result;Rd.createFootnotesReader=cR.bind(Rd,"footnote");Rd.createEndnotesReader=cR.bind(Rd,"endnote");function cR(e,t){function n(o){return mZ.combine(o.getElementsByTagName("w:"+e).filter(r).map(i))}function r(o){var s=o.attributes["w:type"];return s!=="continuationSeparator"&&s!=="separator"}function i(o){var s=o.attributes["w:id"];return t.readXmlElements(o.children).map(function(a){return gZ.Note({noteType:e,noteId:s,body:a})})}return n}});var lR=R(function(_Z){var bZ=Br(),vZ=wn().Result;function xZ(e){function t(r){return vZ.combine(r.getElementsByTagName("w:comment").map(n))}function n(r){var i=r.attributes["w:id"];function o(s){return(r.attributes[s]||"").trim()||null}return e.readXmlElements(r.children).map(function(s){return bZ.comment({commentId:i,body:s,authorName:o("w:author"),authorInitials:o("w:initials")})})}return t}_Z.createCommentsReader=xZ});var hR=R(function(qye,Fd){function dR(e){return e.charAt(0)==="/"}function fR(e){var t=/^([a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/]+[^\\\/]+)?([\\\/])?([\s\S]*?)$/,n=t.exec(e),r=n[1]||"",i=Boolean(r&&r.charAt(1)!==":");return Boolean(n[2]||i)}Fd.exports=process.platform==="win32"?fR:dR;Fd.exports.posix=dR;Fd.exports.win32=fR});var mR=R(function(FZ){var pR=re("fs"),DZ=re("url"),EZ=re("os"),TZ=re("path").dirname,SZ=re("path").resolve,CZ=hR(),os=Xn();FZ.Files=AZ;FZ.uriToPath=gR;function AZ(e){if(e=e||{},!e.externalFileAccess)return{read:function(i){return os.reject(Error("could not read external image '"+i+"', external file access is disabled"))}};var t=e.relativeToFile?TZ(e.relativeToFile):null;function n(i,o){return r(i).then(function(s){return UZ(s,o).caught(function(a){var c="could not open external image: '"+i+"' (document directory: '"+t+`')
205
- `+a.message;return os.reject(Error(c))})})}function r(i){var o=gR(i);if(CZ(o))return os.resolve(o);else if(t)return os.resolve(SZ(t,o));else return os.reject(Error("could not find external image '"+i+"', path of input document is unknown"))}return{read:n}}var UZ=os.promisify(pR.readFile.bind(pR));function gR(e,t){if(!t)t=EZ.platform();var n=DZ.parse(e);if(kZ(n)||RZ(n)){var r=decodeURIComponent(n.path);if(t==="win32"&&/^\/[a-z]:/i.test(r))return r.slice(1);else return r}else throw Error("Could not convert URI to path: "+e)}function kZ(e){return e.protocol==="file:"&&(!e.host||e.host==="localhost")}function RZ(e){return!e.protocol&&!e.host}});var TR=R(function(VZ){VZ.read=jZ;VZ._findPartPaths=DR;var IZ=Xn(),MZ=Br(),eb=wn().Result,Pd=Cy(),wR=Nk().readXmlFromZipFile,NZ=eR().createBodyReader,BZ=tR().DocumentXmlReader,ss=nR(),yR=iR(),bR=oR(),vR=aR(),xR=uR(),LZ=lR(),WZ=mR().Files;function jZ(e,t,n){t=t||{},n=n||{};var r=new WZ({externalFileAccess:n.externalFileAccess,relativeToFile:t.path});return IZ.props({contentTypes:$Z(e),partPaths:DR(e),docxFile:e,files:r}).also(function(i){return{styles:GZ(e,i.partPaths.styles)}}).also(function(i){return{numbering:HZ(e,i.partPaths.numbering,i.styles)}}).also(function(i){return{footnotes:Od(i.partPaths.footnotes,i,function(o,s){if(s)return xR.createFootnotesReader(o)(s);else return new eb([])}),endnotes:Od(i.partPaths.endnotes,i,function(o,s){if(s)return xR.createEndnotesReader(o)(s);else return new eb([])}),comments:Od(i.partPaths.comments,i,function(o,s){if(s)return LZ.createCommentsReader(o)(s);else return new eb([])})}}).also(function(i){return{notes:i.footnotes.flatMap(function(o){return i.endnotes.map(function(s){return new MZ.Notes(o.concat(s))})})}}).then(function(i){return Od(i.partPaths.mainDocument,i,function(o,s){return i.notes.flatMap(function(a){return i.comments.flatMap(function(c){var u=new BZ({bodyReader:o,notes:a,comments:c});return u.convertXmlToDocument(s)})})})})}function DR(e){return zZ(e).then(function(t){var n=_R({docxFile:e,relationships:t,relationshipType:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument",basePath:"",fallbackPath:"word/document.xml"});if(!e.exists(n))throw Error("Could not find main document part. Are you sure this is a valid .docx file?");return as({filename:ER(n),readElement:ss.readRelationships,defaultValue:ss.defaultValue})(e).then(function(r){function i(o){return _R({docxFile:e,relationships:r,relationshipType:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/"+o,basePath:Pd.splitPath(n).dirname,fallbackPath:"word/"+o+".xml"})}return{mainDocument:n,comments:i("comments"),endnotes:i("endnotes"),footnotes:i("footnotes"),numbering:i("numbering"),styles:i("styles")}})})}function _R(e){var{docxFile:t,relationships:n,relationshipType:r,basePath:i,fallbackPath:o}=e,s=n.findTargetsByType(r),a=s.map(function(u){return qZ(Pd.joinPath(i,u),"/")}),c=a.filter(function(u){return t.exists(u)});if(c.length===0)return o;else return c[0]}function qZ(e,t){if(e.substring(0,t.length)===t)return e.substring(t.length);else return e}function as(e){return function(t){return wR(t,e.filename).then(function(n){return n?e.readElement(n):e.defaultValue})}}function Od(e,t,n){var r=as({filename:ER(e),readElement:ss.readRelationships,defaultValue:ss.defaultValue});return r(t.docxFile).then(function(i){var o=new NZ({relationships:i,contentTypes:t.contentTypes,docxFile:t.docxFile,numbering:t.numbering,styles:t.styles,files:t.files});return wR(t.docxFile,e).then(function(s){return n(o,s)})})}function ER(e){var t=Pd.splitPath(e);return Pd.joinPath(t.dirname,"_rels",t.basename+".rels")}var $Z=as({filename:"[Content_Types].xml",readElement:yR.readContentTypesFromXml,defaultValue:yR.defaultContentTypes});function HZ(e,t,n){return as({filename:t,readElement:function(r){return bR.readNumberingXml(r,{styles:n})},defaultValue:bR.defaultNumbering})(e)}function GZ(e,t){return as({filename:t,readElement:vR.readStylesXml,defaultValue:vR.defaultStyles})(e)}var zZ=as({filename:"_rels/.rels",readElement:ss.readRelationships,defaultValue:ss.defaultValue})});var AR=R(function(rY){var ZZ=Me(),YZ=Xn(),lc=Td();rY.writeStyleMap=QZ;rY.readStyleMap=nY;var JZ="http://schemas.zwobble.org/mammoth/style-map",Id="mammoth/style-map",SR="/"+Id;function QZ(e,t){return e.write(Id,t),eY(e).then(function(){return tY(e)})}function eY(e){var t="word/_rels/document.xml.rels",n="http://schemas.openxmlformats.org/package/2006/relationships",r="{"+n+"}Relationship";return e.read(t,"utf8").then(lc.readString).then(function(i){var o=i.children;CR(o,r,"Id",{Id:"rMammothStyleMap",Type:JZ,Target:SR});var s={"":n};return e.write(t,lc.writeString(i,s))})}function tY(e){var t="[Content_Types].xml",n="http://schemas.openxmlformats.org/package/2006/content-types",r="{"+n+"}Override";return e.read(t,"utf8").then(lc.readString).then(function(i){var o=i.children;CR(o,r,"PartName",{PartName:SR,ContentType:"text/prs.mammoth.style-map"});var s={"":n};return e.write(t,lc.writeString(i,s))})}function CR(e,t,n,r){var i=ZZ.find(e,function(o){return o.name===t&&o.attributes[n]===r[n]});if(i)i.attributes=r;else e.push(lc.element(t,r))}function nY(e){if(e.exists(Id))return e.read(Id,"utf8");else return YZ.resolve(null)}});var nb=R(function(fY){var UR=dc();function sY(e,t,n){return tb(UR.element(e,t,{fresh:!1}),n)}function aY(e,t,n){var r=UR.element(e,t,{fresh:!0});return tb(r,n)}function tb(e,t){return{type:"element",tag:e,children:t||[]}}function cY(e){return{type:"text",value:e}}var uY={type:"forceWrite"};fY.freshElement=aY;fY.nonFreshElement=sY;fY.elementWithTag=tb;fY.text=cY;fY.forceWrite=uY;var lY={br:!0,hr:!0,img:!0,input:!0};function dY(e){return e.children.length===0&&lY[e.tag.tagName]}fY.isVoidElement=dY});var IR=R(function(Vye,PR){var kR=Me(),Md=nb();function vY(e){return FR(OR(e))}function FR(e){var t=[];return e.map(xY).forEach(function(n){rb(t,n)}),t}function xY(e){return _Y[e.type](e)}var _Y={element:wY,text:RR,forceWrite:RR};function wY(e){return Md.elementWithTag(e.tag,FR(e.children))}function RR(e){return e}function rb(e,t){var n=e[e.length-1];if(t.type==="element"&&!t.tag.fresh&&n&&n.type==="element"&&t.tag.matchesElement(n.tag)){if(t.tag.separator)rb(n.children,Md.text(t.tag.separator));t.children.forEach(function(r){rb(n.children,r)})}else e.push(t)}function OR(e){return DY(e,function(t){return EY[t.type](t)})}function DY(e,t){return kR.flatten(kR.map(e,t),!0)}var EY={element:SY,text:CY,forceWrite:TY};function TY(e){return[e]}function SY(e){var t=OR(e.children);if(t.length===0&&!Md.isVoidElement(e))return[];else return[Md.elementWithTag(e.tag,t)]}function CY(e){if(e.value.length===0)return[];else return[e]}PR.exports=vY});var fc=R(function(FY){var cs=nb();FY.freshElement=cs.freshElement;FY.nonFreshElement=cs.nonFreshElement;FY.elementWithTag=cs.elementWithTag;FY.text=cs.text;FY.forceWrite=cs.forceWrite;FY.simplify=IR();function MR(e,t){t.forEach(function(n){AY(e,n)})}function AY(e,t){UY[t.type](e,t)}var UY={element:kY,text:RY,forceWrite:function(){}};function kY(e,t){if(cs.isVoidElement(t))e.selfClosing(t.tag.tagName,t.tag.attributes);else e.open(t.tag.tagName,t.tag.attributes),MR(e,t.children),e.close(t.tag.tagName)}function RY(e,t){e.text(t.value)}FY.write=MR});var dc=R(function(qY){var ib=Me(),WY=fc();qY.topLevelElement=jY;qY.elements=ob;qY.element=sb;function jY(e,t){return ob([sb(e,t,{fresh:!0})])}function ob(e){return new NR(e.map(function(t){if(ib.isString(t))return sb(t);else return t}))}function NR(e){this._elements=e}NR.prototype.wrap=function(t){var n=t();for(var r=this._elements.length-1;r>=0;r--)n=this._elements[r].wrapNodes(n);return n};function sb(e,t,n){return n=n||{},new Nd(e,t,n)}function Nd(e,t,n){var r=Object.create(null);if(ib.isArray(e))e.forEach(function(i){r[i]=!0}),e=e[0];else r[e]=!0;this.tagName=e,this.tagNames=r,this.attributes=t||{},this.fresh=n.fresh,this.separator=n.separator}Nd.prototype.matchesElement=function(e){return this.tagNames[e.tagName]&&ib.isEqual(this.attributes||{},e.attributes||{})};Nd.prototype.wrap=function(t){return this.wrapNodes(t())};Nd.prototype.wrapNodes=function(t){return[WY.elementWithTag(this,t)]};qY.empty=ob([]);qY.ignore={wrap:function(){return[]}}});var ab=R(function(JY){var XY=Me(),KY=Xn(),ZY=fc();JY.imgElement=BR;function BR(e){return function(t,n){return KY.when(e(t)).then(function(r){var i={};if(t.altText)i.alt=t.altText;return XY.extend(i,r),[ZY.freshElement("img",i)]})}}JY.inline=JY.imgElement;JY.dataUri=BR(function(e){return e.readAsBase64String().then(function(t){return{src:"data:"+e.contentType+";base64,"+t}})});function YY(e){return e.contentType.split(/\/|\\/)[1]}JY.imageFilenameExtension=YY});var qR=R(function(sJ){var WR=Me();sJ.writer=nJ;function nJ(e){if(e=e||{},e.prettyPrint)return rJ();else return jR()}var Bd={div:!0,p:!0,ul:!0,li:!0};function rJ(){var e=0,t=" ",n=[],r=!0,i=!1,o=jR();function s(g,y){if(Bd[g])h();if(n.push(g),o.open(g,y),Bd[g])e++;r=!1}function a(g){if(Bd[g])e--,h();n.pop(),o.close(g)}function c(g){f();var y=p()?g:g.replace(`
204
+ `,this.offset="offset"in r?r.offset:0,this.dontprettytextnodes="dontprettytextnodes"in r?r.dontprettytextnodes:0;else this.indent="",this.newline="",this.offset=0,this.dontprettytextnodes=0;if(this.spacebeforeslash="spacebeforeslash"in r?r.spacebeforeslash:"",this.spacebeforeslash===!0)this.spacebeforeslash=" ";this.newlinedefault=this.newline,this.prettydefault=this.pretty,o=r.writer||{};for(i in o){if(!t.call(o,i))continue;s=o[i],this[i]=s}return this},n.prototype.space=function(r){var i;if(this.pretty)if(i=(r||0)+this.offset+1,i>0)return Array(i).join(this.indent);else return"";else return""},n}()}).call(bk)});var Dd=R(function(xk,_k){(function(){var e,t,n,r,i,o,s,a,c,u,d,f,h,p,g,y=function(b,_){for(var m in _)if(v.call(_,m))b[m]=_[m];function x(){this.constructor=b}return x.prototype=_.prototype,b.prototype=new x,b.__super__=_.prototype,b},v={}.hasOwnProperty;s=Za(),a=tc(),e=Xa(),t=Ka(),u=Va(),f=nc(),p=rc(),d=ic(),c=wd(),n=Ya(),r=Qa(),i=Ja(),o=ec(),g=Vy(),_k.exports=h=function(b){y(_,b);function _(m){_.__super__.constructor.call(this,m)}return _.prototype.document=function(m){var x,D,A,E,U;this.textispresent=!1,E="",U=m.children;for(D=0,A=U.length;D<A;D++){if(x=U[D],x instanceof c)continue;E+=function(){switch(!1){case!(x instanceof s):return this.declaration(x);case!(x instanceof a):return this.docType(x);case!(x instanceof t):return this.comment(x);case!(x instanceof d):return this.processingInstruction(x);default:return this.element(x,0)}}.call(this)}if(this.pretty&&E.slice(-this.newline.length)===this.newline)E=E.slice(0,-this.newline.length);return E},_.prototype.attribute=function(m){return" "+m.name+'="'+m.value+'"'},_.prototype.cdata=function(m,x){return this.space(x)+"<![CDATA["+m.text+"]]>"+this.newline},_.prototype.comment=function(m,x){return this.space(x)+"<!-- "+m.text+" -->"+this.newline},_.prototype.declaration=function(m,x){var D=this.space(x);if(D+='<?xml version="'+m.version+'"',m.encoding!=null)D+=' encoding="'+m.encoding+'"';if(m.standalone!=null)D+=' standalone="'+m.standalone+'"';return D+=this.spacebeforeslash+"?>",D+=this.newline,D},_.prototype.docType=function(m,x){var D,A,E,U,C;if(x||(x=0),U=this.space(x),U+="<!DOCTYPE "+m.root().name,m.pubID&&m.sysID)U+=' PUBLIC "'+m.pubID+'" "'+m.sysID+'"';else if(m.sysID)U+=' SYSTEM "'+m.sysID+'"';if(m.children.length>0){U+=" [",U+=this.newline,C=m.children;for(A=0,E=C.length;A<E;A++)D=C[A],U+=function(){switch(!1){case!(D instanceof n):return this.dtdAttList(D,x+1);case!(D instanceof r):return this.dtdElement(D,x+1);case!(D instanceof i):return this.dtdEntity(D,x+1);case!(D instanceof o):return this.dtdNotation(D,x+1);case!(D instanceof e):return this.cdata(D,x+1);case!(D instanceof t):return this.comment(D,x+1);case!(D instanceof d):return this.processingInstruction(D,x+1);default:throw Error("Unknown DTD node type: "+D.constructor.name)}}.call(this);U+="]"}return U+=this.spacebeforeslash+">",U+=this.newline,U},_.prototype.element=function(m,x){var D,A,E,U,C,N,F,S,B,j,G,T,O;if(x||(x=0),O=!1,this.textispresent)this.newline="",this.pretty=!1;else this.newline=this.newlinedefault,this.pretty=this.prettydefault;T=this.space(x),S="",S+=T+"<"+m.name,B=m.attributes;for(F in B){if(!v.call(B,F))continue;D=B[F],S+=this.attribute(D)}if(m.children.length===0||m.children.every(function(k){return k.value===""}))if(this.allowEmpty)S+="></"+m.name+">"+this.newline;else S+=this.spacebeforeslash+"/>"+this.newline;else if(this.pretty&&m.children.length===1&&m.children[0].value!=null)S+=">",S+=m.children[0].value,S+="</"+m.name+">"+this.newline;else{if(this.dontprettytextnodes){j=m.children;for(E=0,C=j.length;E<C;E++)if(A=j[E],A.value!=null){this.textispresent++,O=!0;break}}if(this.textispresent)this.newline="",this.pretty=!1,T=this.space(x);S+=">"+this.newline,G=m.children;for(U=0,N=G.length;U<N;U++)A=G[U],S+=function(){switch(!1){case!(A instanceof e):return this.cdata(A,x+1);case!(A instanceof t):return this.comment(A,x+1);case!(A instanceof u):return this.element(A,x+1);case!(A instanceof f):return this.raw(A,x+1);case!(A instanceof p):return this.text(A,x+1);case!(A instanceof d):return this.processingInstruction(A,x+1);case!(A instanceof c):return"";default:throw Error("Unknown XML node type: "+A.constructor.name)}}.call(this);if(O)this.textispresent--;if(!this.textispresent)this.newline=this.newlinedefault,this.pretty=this.prettydefault;S+=T+"</"+m.name+">"+this.newline}return S},_.prototype.processingInstruction=function(m,x){var D=this.space(x)+"<?"+m.target;if(m.value)D+=" "+m.value;return D+=this.spacebeforeslash+"?>"+this.newline,D},_.prototype.raw=function(m,x){return this.space(x)+m.value+this.newline},_.prototype.text=function(m,x){return this.space(x)+m.value+this.newline},_.prototype.dtdAttList=function(m,x){var D=this.space(x)+"<!ATTLIST "+m.elementName+" "+m.attributeName+" "+m.attributeType;if(m.defaultValueType!=="#DEFAULT")D+=" "+m.defaultValueType;if(m.defaultValue)D+=' "'+m.defaultValue+'"';return D+=this.spacebeforeslash+">"+this.newline,D},_.prototype.dtdElement=function(m,x){return this.space(x)+"<!ELEMENT "+m.name+" "+m.value+this.spacebeforeslash+">"+this.newline},_.prototype.dtdEntity=function(m,x){var D=this.space(x)+"<!ENTITY";if(m.pe)D+=" %";if(D+=" "+m.name,m.value)D+=' "'+m.value+'"';else{if(m.pubID&&m.sysID)D+=' PUBLIC "'+m.pubID+'" "'+m.sysID+'"';else if(m.sysID)D+=' SYSTEM "'+m.sysID+'"';if(m.nData)D+=" NDATA "+m.nData}return D+=this.spacebeforeslash+">"+this.newline,D},_.prototype.dtdNotation=function(m,x){var D=this.space(x)+"<!NOTATION "+m.name;if(m.pubID&&m.sysID)D+=' PUBLIC "'+m.pubID+'" "'+m.sysID+'"';else if(m.pubID)D+=' PUBLIC "'+m.pubID+'"';else if(m.sysID)D+=' SYSTEM "'+m.sysID+'"';return D+=this.spacebeforeslash+">"+this.newline,D},_.prototype.openNode=function(m,x){var D,A,E,U;if(x||(x=0),m instanceof u){E=this.space(x)+"<"+m.name,U=m.attributes;for(A in U){if(!v.call(U,A))continue;D=U[A],E+=this.attribute(D)}return E+=(m.children?">":"/>")+this.newline,E}else{if(E=this.space(x)+"<!DOCTYPE "+m.rootNodeName,m.pubID&&m.sysID)E+=' PUBLIC "'+m.pubID+'" "'+m.sysID+'"';else if(m.sysID)E+=' SYSTEM "'+m.sysID+'"';return E+=(m.children?" [":">")+this.newline,E}},_.prototype.closeNode=function(m,x){switch(x||(x=0),!1){case!(m instanceof u):return this.space(x)+"</"+m.name+">"+this.newline;case!(m instanceof a):return this.space(x)+"]>"+this.newline}},_}(g)}).call(xk)});var Ek=R(function(wk,Dk){(function(){var e,t,n,r,i,o=function(a,c){for(var u in c)if(s.call(c,u))a[u]=c[u];function d(){this.constructor=a}return d.prototype=c.prototype,a.prototype=new d,a.__super__=c.prototype,a},s={}.hasOwnProperty;i=ar().isPlainObject,t=_t(),r=zy(),n=Dd(),Dk.exports=e=function(a){o(c,a);function c(u){if(c.__super__.constructor.call(this,null),this.name="?xml",u||(u={}),!u.writer)u.writer=new n;this.options=u,this.stringify=new r(u),this.isDocument=!0}return c.prototype.end=function(u){var d;if(!u)u=this.options.writer;else if(i(u))d=u,u=this.options.writer.set(d);return u.document(this)},c.prototype.toString=function(u){return this.options.writer.set(u).document(this)},c}(t)}).call(wk)});var Ck=R(function(Tk,Sk){(function(){var e,t,n,r,i,o,s,a,c,u,d,f,h,p,g,y,v,b,_,m,x,D={}.hasOwnProperty;x=ar(),_=x.isObject,b=x.isFunction,m=x.isPlainObject,v=x.getValue,d=Va(),t=Xa(),n=Ka(),h=nc(),y=rc(),f=ic(),a=Za(),c=tc(),r=Ya(),o=Ja(),i=Qa(),s=ec(),e=Gy(),g=zy(),p=Dd(),Sk.exports=u=function(){function A(E,U,C){var N;if(this.name="?xml",E||(E={}),!E.writer)E.writer=new p(E);else if(m(E.writer))N=E.writer,E.writer=new p(N);this.options=E,this.writer=E.writer,this.stringify=new g(E),this.onDataCallback=U||function(){},this.onEndCallback=C||function(){},this.currentNode=null,this.currentLevel=-1,this.openTags={},this.documentStarted=!1,this.documentCompleted=!1,this.root=null}return A.prototype.node=function(E,U,C){var N,F;if(E==null)throw Error("Missing node name.");if(this.root&&this.currentLevel===-1)throw Error("Document can only have one root node. "+this.debugInfo(E));if(this.openCurrent(),E=v(E),U===null&&C==null)N=[{},null],U=N[0],C=N[1];if(U==null)U={};if(U=v(U),!_(U))F=[U,C],C=F[0],U=F[1];if(this.currentNode=new d(this,E,U),this.currentNode.children=!1,this.currentLevel++,this.openTags[this.currentLevel]=this.currentNode,C!=null)this.text(C);return this},A.prototype.element=function(E,U,C){if(this.currentNode&&this.currentNode instanceof c)return this.dtdElement.apply(this,arguments);else return this.node(E,U,C)},A.prototype.attribute=function(E,U){var C,N;if(!this.currentNode||this.currentNode.children)throw Error("att() can only be used immediately after an ele() call in callback mode. "+this.debugInfo(E));if(E!=null)E=v(E);if(_(E))for(C in E){if(!D.call(E,C))continue;N=E[C],this.attribute(C,N)}else{if(b(U))U=U.apply();if(!this.options.skipNullAttributes||U!=null)this.currentNode.attributes[E]=new e(this,E,U)}return this},A.prototype.text=function(E){var U;return this.openCurrent(),U=new y(this,E),this.onData(this.writer.text(U,this.currentLevel+1),this.currentLevel+1),this},A.prototype.cdata=function(E){var U;return this.openCurrent(),U=new t(this,E),this.onData(this.writer.cdata(U,this.currentLevel+1),this.currentLevel+1),this},A.prototype.comment=function(E){var U;return this.openCurrent(),U=new n(this,E),this.onData(this.writer.comment(U,this.currentLevel+1),this.currentLevel+1),this},A.prototype.raw=function(E){var U;return this.openCurrent(),U=new h(this,E),this.onData(this.writer.raw(U,this.currentLevel+1),this.currentLevel+1),this},A.prototype.instruction=function(E,U){var C,N,F,S,B;if(this.openCurrent(),E!=null)E=v(E);if(U!=null)U=v(U);if(Array.isArray(E))for(C=0,S=E.length;C<S;C++)N=E[C],this.instruction(N);else if(_(E))for(N in E){if(!D.call(E,N))continue;F=E[N],this.instruction(N,F)}else{if(b(U))U=U.apply();B=new f(this,E,U),this.onData(this.writer.processingInstruction(B,this.currentLevel+1),this.currentLevel+1)}return this},A.prototype.declaration=function(E,U,C){var N;if(this.openCurrent(),this.documentStarted)throw Error("declaration() must be the first node.");return N=new a(this,E,U,C),this.onData(this.writer.declaration(N,this.currentLevel+1),this.currentLevel+1),this},A.prototype.doctype=function(E,U,C){if(this.openCurrent(),E==null)throw Error("Missing root node name.");if(this.root)throw Error("dtd() must come before the root node.");return this.currentNode=new c(this,U,C),this.currentNode.rootNodeName=E,this.currentNode.children=!1,this.currentLevel++,this.openTags[this.currentLevel]=this.currentNode,this},A.prototype.dtdElement=function(E,U){var C;return this.openCurrent(),C=new i(this,E,U),this.onData(this.writer.dtdElement(C,this.currentLevel+1),this.currentLevel+1),this},A.prototype.attList=function(E,U,C,N,F){var S;return this.openCurrent(),S=new r(this,E,U,C,N,F),this.onData(this.writer.dtdAttList(S,this.currentLevel+1),this.currentLevel+1),this},A.prototype.entity=function(E,U){var C;return this.openCurrent(),C=new o(this,!1,E,U),this.onData(this.writer.dtdEntity(C,this.currentLevel+1),this.currentLevel+1),this},A.prototype.pEntity=function(E,U){var C;return this.openCurrent(),C=new o(this,!0,E,U),this.onData(this.writer.dtdEntity(C,this.currentLevel+1),this.currentLevel+1),this},A.prototype.notation=function(E,U){var C;return this.openCurrent(),C=new s(this,E,U),this.onData(this.writer.dtdNotation(C,this.currentLevel+1),this.currentLevel+1),this},A.prototype.up=function(){if(this.currentLevel<0)throw Error("The document node has no parent.");if(this.currentNode){if(this.currentNode.children)this.closeNode(this.currentNode);else this.openNode(this.currentNode);this.currentNode=null}else this.closeNode(this.openTags[this.currentLevel]);return delete this.openTags[this.currentLevel],this.currentLevel--,this},A.prototype.end=function(){while(this.currentLevel>=0)this.up();return this.onEnd()},A.prototype.openCurrent=function(){if(this.currentNode)return this.currentNode.children=!0,this.openNode(this.currentNode)},A.prototype.openNode=function(E){if(!E.isOpen){if(!this.root&&this.currentLevel===0&&E instanceof d)this.root=E;return this.onData(this.writer.openNode(E,this.currentLevel),this.currentLevel),E.isOpen=!0}},A.prototype.closeNode=function(E){if(!E.isClosed)return this.onData(this.writer.closeNode(E,this.currentLevel),this.currentLevel),E.isClosed=!0},A.prototype.onData=function(E,U){return this.documentStarted=!0,this.onDataCallback(E,U+1)},A.prototype.onEnd=function(){return this.documentCompleted=!0,this.onEndCallback()},A.prototype.debugInfo=function(E){if(E==null)return"";else return"node: <"+E+">"},A.prototype.ele=function(){return this.element.apply(this,arguments)},A.prototype.nod=function(E,U,C){return this.node(E,U,C)},A.prototype.txt=function(E){return this.text(E)},A.prototype.dat=function(E){return this.cdata(E)},A.prototype.com=function(E){return this.comment(E)},A.prototype.ins=function(E,U){return this.instruction(E,U)},A.prototype.dec=function(E,U,C){return this.declaration(E,U,C)},A.prototype.dtd=function(E,U,C){return this.doctype(E,U,C)},A.prototype.e=function(E,U,C){return this.element(E,U,C)},A.prototype.n=function(E,U,C){return this.node(E,U,C)},A.prototype.t=function(E){return this.text(E)},A.prototype.d=function(E){return this.cdata(E)},A.prototype.c=function(E){return this.comment(E)},A.prototype.r=function(E){return this.raw(E)},A.prototype.i=function(E,U){return this.instruction(E,U)},A.prototype.att=function(){if(this.currentNode&&this.currentNode instanceof c)return this.attList.apply(this,arguments);else return this.attribute.apply(this,arguments)},A.prototype.a=function(){if(this.currentNode&&this.currentNode instanceof c)return this.attList.apply(this,arguments);else return this.attribute.apply(this,arguments)},A.prototype.ent=function(E,U){return this.entity(E,U)},A.prototype.pent=function(E,U){return this.pEntity(E,U)},A.prototype.not=function(E,U){return this.notation(E,U)},A}()}).call(Tk)});var kk=R(function(Ak,Uk){(function(){var e,t,n,r,i,o,s,a,c,u,d,f,h,p,g,y=function(b,_){for(var m in _)if(v.call(_,m))b[m]=_[m];function x(){this.constructor=b}return x.prototype=_.prototype,b.prototype=new x,b.__super__=_.prototype,b},v={}.hasOwnProperty;s=Za(),a=tc(),e=Xa(),t=Ka(),u=Va(),f=nc(),p=rc(),d=ic(),c=wd(),n=Ya(),r=Qa(),i=Ja(),o=ec(),g=Vy(),Uk.exports=h=function(b){y(_,b);function _(m,x){_.__super__.constructor.call(this,x),this.stream=m}return _.prototype.document=function(m){var x,D,A,E,U,C,N,F;C=m.children;for(D=0,E=C.length;D<E;D++)x=C[D],x.isLastRootNode=!1;m.children[m.children.length-1].isLastRootNode=!0,N=m.children,F=[];for(A=0,U=N.length;A<U;A++){if(x=N[A],x instanceof c)continue;switch(!1){case!(x instanceof s):F.push(this.declaration(x));break;case!(x instanceof a):F.push(this.docType(x));break;case!(x instanceof t):F.push(this.comment(x));break;case!(x instanceof d):F.push(this.processingInstruction(x));break;default:F.push(this.element(x))}}return F},_.prototype.attribute=function(m){return this.stream.write(" "+m.name+'="'+m.value+'"')},_.prototype.cdata=function(m,x){return this.stream.write(this.space(x)+"<![CDATA["+m.text+"]]>"+this.endline(m))},_.prototype.comment=function(m,x){return this.stream.write(this.space(x)+"<!-- "+m.text+" -->"+this.endline(m))},_.prototype.declaration=function(m,x){if(this.stream.write(this.space(x)),this.stream.write('<?xml version="'+m.version+'"'),m.encoding!=null)this.stream.write(' encoding="'+m.encoding+'"');if(m.standalone!=null)this.stream.write(' standalone="'+m.standalone+'"');return this.stream.write(this.spacebeforeslash+"?>"),this.stream.write(this.endline(m))},_.prototype.docType=function(m,x){var D,A,E,U;if(x||(x=0),this.stream.write(this.space(x)),this.stream.write("<!DOCTYPE "+m.root().name),m.pubID&&m.sysID)this.stream.write(' PUBLIC "'+m.pubID+'" "'+m.sysID+'"');else if(m.sysID)this.stream.write(' SYSTEM "'+m.sysID+'"');if(m.children.length>0){this.stream.write(" ["),this.stream.write(this.endline(m)),U=m.children;for(A=0,E=U.length;A<E;A++)switch(D=U[A],!1){case!(D instanceof n):this.dtdAttList(D,x+1);break;case!(D instanceof r):this.dtdElement(D,x+1);break;case!(D instanceof i):this.dtdEntity(D,x+1);break;case!(D instanceof o):this.dtdNotation(D,x+1);break;case!(D instanceof e):this.cdata(D,x+1);break;case!(D instanceof t):this.comment(D,x+1);break;case!(D instanceof d):this.processingInstruction(D,x+1);break;default:throw Error("Unknown DTD node type: "+D.constructor.name)}this.stream.write("]")}return this.stream.write(this.spacebeforeslash+">"),this.stream.write(this.endline(m))},_.prototype.element=function(m,x){var D,A,E,U,C,N,F,S;x||(x=0),S=this.space(x),this.stream.write(S+"<"+m.name),N=m.attributes;for(C in N){if(!v.call(N,C))continue;D=N[C],this.attribute(D)}if(m.children.length===0||m.children.every(function(B){return B.value===""}))if(this.allowEmpty)this.stream.write("></"+m.name+">");else this.stream.write(this.spacebeforeslash+"/>");else if(this.pretty&&m.children.length===1&&m.children[0].value!=null)this.stream.write(">"),this.stream.write(m.children[0].value),this.stream.write("</"+m.name+">");else{this.stream.write(">"+this.newline),F=m.children;for(E=0,U=F.length;E<U;E++)switch(A=F[E],!1){case!(A instanceof e):this.cdata(A,x+1);break;case!(A instanceof t):this.comment(A,x+1);break;case!(A instanceof u):this.element(A,x+1);break;case!(A instanceof f):this.raw(A,x+1);break;case!(A instanceof p):this.text(A,x+1);break;case!(A instanceof d):this.processingInstruction(A,x+1);break;case!(A instanceof c):break;default:throw Error("Unknown XML node type: "+A.constructor.name)}this.stream.write(S+"</"+m.name+">")}return this.stream.write(this.endline(m))},_.prototype.processingInstruction=function(m,x){if(this.stream.write(this.space(x)+"<?"+m.target),m.value)this.stream.write(" "+m.value);return this.stream.write(this.spacebeforeslash+"?>"+this.endline(m))},_.prototype.raw=function(m,x){return this.stream.write(this.space(x)+m.value+this.endline(m))},_.prototype.text=function(m,x){return this.stream.write(this.space(x)+m.value+this.endline(m))},_.prototype.dtdAttList=function(m,x){if(this.stream.write(this.space(x)+"<!ATTLIST "+m.elementName+" "+m.attributeName+" "+m.attributeType),m.defaultValueType!=="#DEFAULT")this.stream.write(" "+m.defaultValueType);if(m.defaultValue)this.stream.write(' "'+m.defaultValue+'"');return this.stream.write(this.spacebeforeslash+">"+this.endline(m))},_.prototype.dtdElement=function(m,x){return this.stream.write(this.space(x)+"<!ELEMENT "+m.name+" "+m.value),this.stream.write(this.spacebeforeslash+">"+this.endline(m))},_.prototype.dtdEntity=function(m,x){if(this.stream.write(this.space(x)+"<!ENTITY"),m.pe)this.stream.write(" %");if(this.stream.write(" "+m.name),m.value)this.stream.write(' "'+m.value+'"');else{if(m.pubID&&m.sysID)this.stream.write(' PUBLIC "'+m.pubID+'" "'+m.sysID+'"');else if(m.sysID)this.stream.write(' SYSTEM "'+m.sysID+'"');if(m.nData)this.stream.write(" NDATA "+m.nData)}return this.stream.write(this.spacebeforeslash+">"+this.endline(m))},_.prototype.dtdNotation=function(m,x){if(this.stream.write(this.space(x)+"<!NOTATION "+m.name),m.pubID&&m.sysID)this.stream.write(' PUBLIC "'+m.pubID+'" "'+m.sysID+'"');else if(m.pubID)this.stream.write(' PUBLIC "'+m.pubID+'"');else if(m.sysID)this.stream.write(' SYSTEM "'+m.sysID+'"');return this.stream.write(this.spacebeforeslash+">"+this.endline(m))},_.prototype.endline=function(m){if(!m.isLastRootNode)return this.newline;else return""},_}(g)}).call(Ak)});var Fk=R(function(Rk,oc){(function(){var e,t,n,r,i,o,s;s=ar(),i=s.assign,o=s.isFunction,e=Ek(),t=Ck(),r=Dd(),n=kk(),Rk.create=function(a,c,u,d){var f,h;if(a==null)throw Error("Root element needs a name.");if(d=i({},c,u,d),f=new e(d),h=f.element(a),!d.headless){if(f.declaration(d),d.pubID!=null||d.sysID!=null)f.doctype(d)}return h},Rk.begin=function(a,c,u){var d;if(o(a))d=[a,c],c=d[0],u=d[1],a={};if(c)return new t(a,c,u);else return new e(a)},Rk.stringWriter=function(a){return new r(a)},Rk.streamWriter=function(a,c){return new n(a,c)}}).call(Rk)});var Pk=R(function($X){var Ok=Me(),WX=Fk();$X.writeString=jX;function jX(e,t){var n=Ok.invert(t),r={element:o,text:qX};function i(c,u){return r[u.type](c,u)}function o(c,u){var d=c.element(s(u.name),u.attributes);u.children.forEach(function(f){i(d,f)})}function s(c){var u=/^\{(.*)\}(.*)$/.exec(c);if(u){var d=n[u[1]];return d+(d===""?"":":")+u[2]}else return c}function a(c){var u=WX.create(s(c.name),{version:"1.0",encoding:"UTF-8",standalone:!0});return Ok.forEach(t,function(d,f){var h="xmlns"+(f===""?"":":"+f);u.attribute(h,d)}),c.children.forEach(function(d){i(u,d)}),u.end()}return a(e)}function qX(e,t){e.text(t.value)}});var Td=R(function(GX){var Ed=Ay();GX.Element=Ed.Element;GX.element=Ed.element;GX.emptyElement=Ed.emptyElement;GX.text=Ed.text;GX.readString=BU().readString;GX.writeString=Pk().writeString});var Nk=R(function(iK){var JX=Me(),QX=Xn(),eK=Td();iK.read=Ik;iK.readXmlFromZipFile=nK;var tK={"http://schemas.openxmlformats.org/wordprocessingml/2006/main":"w","http://schemas.openxmlformats.org/officeDocument/2006/relationships":"r","http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing":"wp","http://schemas.openxmlformats.org/drawingml/2006/main":"a","http://schemas.openxmlformats.org/drawingml/2006/picture":"pic","http://purl.oclc.org/ooxml/wordprocessingml/main":"w","http://purl.oclc.org/ooxml/officeDocument/relationships":"r","http://purl.oclc.org/ooxml/drawingml/wordprocessingDrawing":"wp","http://purl.oclc.org/ooxml/drawingml/main":"a","http://purl.oclc.org/ooxml/drawingml/picture":"pic","http://schemas.openxmlformats.org/package/2006/content-types":"content-types","http://schemas.openxmlformats.org/package/2006/relationships":"relationships","http://schemas.openxmlformats.org/markup-compatibility/2006":"mc","urn:schemas-microsoft-com:vml":"v","urn:schemas-microsoft-com:office:word":"office-word","http://schemas.microsoft.com/office/word/2010/wordml":"wordml"};function Ik(e){return eK.readString(e,tK).then(function(t){return Mk(t)[0]})}function nK(e,t){if(e.exists(t))return e.read(t,"utf-8").then(rK).then(Ik);else return QX.resolve(null)}function rK(e){return e.replace(/^\uFEFF/g,"")}function Mk(e){if(e.type==="element")if(e.name==="mc:AlternateContent")return e.firstOrEmpty("mc:Fallback").children;else return e.children=JX.flatten(e.children.map(Mk,!0)),[e];else return[e]}});var Lk=R(function(Bk){Object.defineProperty(Bk,"__esModule",{value:!0});var aK=[{"Typeface name":"Symbol","Dingbat dec":"32","Dingbat hex":"20","Unicode dec":"32","Unicode hex":"20"},{"Typeface name":"Symbol","Dingbat dec":"33","Dingbat hex":"21","Unicode dec":"33","Unicode hex":"21"},{"Typeface name":"Symbol","Dingbat dec":"34","Dingbat hex":"22","Unicode dec":"8704","Unicode hex":"2200"},{"Typeface name":"Symbol","Dingbat dec":"35","Dingbat hex":"23","Unicode dec":"35","Unicode hex":"23"},{"Typeface name":"Symbol","Dingbat dec":"36","Dingbat hex":"24","Unicode dec":"8707","Unicode hex":"2203"},{"Typeface name":"Symbol","Dingbat dec":"37","Dingbat hex":"25","Unicode dec":"37","Unicode hex":"25"},{"Typeface name":"Symbol","Dingbat dec":"38","Dingbat hex":"26","Unicode dec":"38","Unicode hex":"26"},{"Typeface name":"Symbol","Dingbat dec":"39","Dingbat hex":"27","Unicode dec":"8717","Unicode hex":"220D"},{"Typeface name":"Symbol","Dingbat dec":"40","Dingbat hex":"28","Unicode dec":"40","Unicode hex":"28"},{"Typeface name":"Symbol","Dingbat dec":"41","Dingbat hex":"29","Unicode dec":"41","Unicode hex":"29"},{"Typeface name":"Symbol","Dingbat dec":"42","Dingbat hex":"2A","Unicode dec":"42","Unicode hex":"2A"},{"Typeface name":"Symbol","Dingbat dec":"43","Dingbat hex":"2B","Unicode dec":"43","Unicode hex":"2B"},{"Typeface name":"Symbol","Dingbat dec":"44","Dingbat hex":"2C","Unicode dec":"44","Unicode hex":"2C"},{"Typeface name":"Symbol","Dingbat dec":"45","Dingbat hex":"2D","Unicode dec":"8722","Unicode hex":"2212"},{"Typeface name":"Symbol","Dingbat dec":"46","Dingbat hex":"2E","Unicode dec":"46","Unicode hex":"2E"},{"Typeface name":"Symbol","Dingbat dec":"47","Dingbat hex":"2F","Unicode dec":"47","Unicode hex":"2F"},{"Typeface name":"Symbol","Dingbat dec":"48","Dingbat hex":"30","Unicode dec":"48","Unicode hex":"30"},{"Typeface name":"Symbol","Dingbat dec":"49","Dingbat hex":"31","Unicode dec":"49","Unicode hex":"31"},{"Typeface name":"Symbol","Dingbat dec":"50","Dingbat hex":"32","Unicode dec":"50","Unicode hex":"32"},{"Typeface name":"Symbol","Dingbat dec":"51","Dingbat hex":"33","Unicode dec":"51","Unicode hex":"33"},{"Typeface name":"Symbol","Dingbat dec":"52","Dingbat hex":"34","Unicode dec":"52","Unicode hex":"34"},{"Typeface name":"Symbol","Dingbat dec":"53","Dingbat hex":"35","Unicode dec":"53","Unicode hex":"35"},{"Typeface name":"Symbol","Dingbat dec":"54","Dingbat hex":"36","Unicode dec":"54","Unicode hex":"36"},{"Typeface name":"Symbol","Dingbat dec":"55","Dingbat hex":"37","Unicode dec":"55","Unicode hex":"37"},{"Typeface name":"Symbol","Dingbat dec":"56","Dingbat hex":"38","Unicode dec":"56","Unicode hex":"38"},{"Typeface name":"Symbol","Dingbat dec":"57","Dingbat hex":"39","Unicode dec":"57","Unicode hex":"39"},{"Typeface name":"Symbol","Dingbat dec":"58","Dingbat hex":"3A","Unicode dec":"58","Unicode hex":"3A"},{"Typeface name":"Symbol","Dingbat dec":"59","Dingbat hex":"3B","Unicode dec":"59","Unicode hex":"3B"},{"Typeface name":"Symbol","Dingbat dec":"60","Dingbat hex":"3C","Unicode dec":"60","Unicode hex":"3C"},{"Typeface name":"Symbol","Dingbat dec":"61","Dingbat hex":"3D","Unicode dec":"61","Unicode hex":"3D"},{"Typeface name":"Symbol","Dingbat dec":"62","Dingbat hex":"3E","Unicode dec":"62","Unicode hex":"3E"},{"Typeface name":"Symbol","Dingbat dec":"63","Dingbat hex":"3F","Unicode dec":"63","Unicode hex":"3F"},{"Typeface name":"Symbol","Dingbat dec":"64","Dingbat hex":"40","Unicode dec":"8773","Unicode hex":"2245"},{"Typeface name":"Symbol","Dingbat dec":"65","Dingbat hex":"41","Unicode dec":"913","Unicode hex":"391"},{"Typeface name":"Symbol","Dingbat dec":"66","Dingbat hex":"42","Unicode dec":"914","Unicode hex":"392"},{"Typeface name":"Symbol","Dingbat dec":"67","Dingbat hex":"43","Unicode dec":"935","Unicode hex":"3A7"},{"Typeface name":"Symbol","Dingbat dec":"68","Dingbat hex":"44","Unicode dec":"916","Unicode hex":"394"},{"Typeface name":"Symbol","Dingbat dec":"69","Dingbat hex":"45","Unicode dec":"917","Unicode hex":"395"},{"Typeface name":"Symbol","Dingbat dec":"70","Dingbat hex":"46","Unicode dec":"934","Unicode hex":"3A6"},{"Typeface name":"Symbol","Dingbat dec":"71","Dingbat hex":"47","Unicode dec":"915","Unicode hex":"393"},{"Typeface name":"Symbol","Dingbat dec":"72","Dingbat hex":"48","Unicode dec":"919","Unicode hex":"397"},{"Typeface name":"Symbol","Dingbat dec":"73","Dingbat hex":"49","Unicode dec":"921","Unicode hex":"399"},{"Typeface name":"Symbol","Dingbat dec":"74","Dingbat hex":"4A","Unicode dec":"977","Unicode hex":"3D1"},{"Typeface name":"Symbol","Dingbat dec":"75","Dingbat hex":"4B","Unicode dec":"922","Unicode hex":"39A"},{"Typeface name":"Symbol","Dingbat dec":"76","Dingbat hex":"4C","Unicode dec":"923","Unicode hex":"39B"},{"Typeface name":"Symbol","Dingbat dec":"77","Dingbat hex":"4D","Unicode dec":"924","Unicode hex":"39C"},{"Typeface name":"Symbol","Dingbat dec":"78","Dingbat hex":"4E","Unicode dec":"925","Unicode hex":"39D"},{"Typeface name":"Symbol","Dingbat dec":"79","Dingbat hex":"4F","Unicode dec":"927","Unicode hex":"39F"},{"Typeface name":"Symbol","Dingbat dec":"80","Dingbat hex":"50","Unicode dec":"928","Unicode hex":"3A0"},{"Typeface name":"Symbol","Dingbat dec":"81","Dingbat hex":"51","Unicode dec":"920","Unicode hex":"398"},{"Typeface name":"Symbol","Dingbat dec":"82","Dingbat hex":"52","Unicode dec":"929","Unicode hex":"3A1"},{"Typeface name":"Symbol","Dingbat dec":"83","Dingbat hex":"53","Unicode dec":"931","Unicode hex":"3A3"},{"Typeface name":"Symbol","Dingbat dec":"84","Dingbat hex":"54","Unicode dec":"932","Unicode hex":"3A4"},{"Typeface name":"Symbol","Dingbat dec":"85","Dingbat hex":"55","Unicode dec":"933","Unicode hex":"3A5"},{"Typeface name":"Symbol","Dingbat dec":"86","Dingbat hex":"56","Unicode dec":"962","Unicode hex":"3C2"},{"Typeface name":"Symbol","Dingbat dec":"87","Dingbat hex":"57","Unicode dec":"937","Unicode hex":"3A9"},{"Typeface name":"Symbol","Dingbat dec":"88","Dingbat hex":"58","Unicode dec":"926","Unicode hex":"39E"},{"Typeface name":"Symbol","Dingbat dec":"89","Dingbat hex":"59","Unicode dec":"936","Unicode hex":"3A8"},{"Typeface name":"Symbol","Dingbat dec":"90","Dingbat hex":"5A","Unicode dec":"918","Unicode hex":"396"},{"Typeface name":"Symbol","Dingbat dec":"91","Dingbat hex":"5B","Unicode dec":"91","Unicode hex":"5B"},{"Typeface name":"Symbol","Dingbat dec":"92","Dingbat hex":"5C","Unicode dec":"8756","Unicode hex":"2234"},{"Typeface name":"Symbol","Dingbat dec":"93","Dingbat hex":"5D","Unicode dec":"93","Unicode hex":"5D"},{"Typeface name":"Symbol","Dingbat dec":"94","Dingbat hex":"5E","Unicode dec":"8869","Unicode hex":"22A5"},{"Typeface name":"Symbol","Dingbat dec":"95","Dingbat hex":"5F","Unicode dec":"95","Unicode hex":"5F"},{"Typeface name":"Symbol","Dingbat dec":"96","Dingbat hex":"60","Unicode dec":"8254","Unicode hex":"203E"},{"Typeface name":"Symbol","Dingbat dec":"97","Dingbat hex":"61","Unicode dec":"945","Unicode hex":"3B1"},{"Typeface name":"Symbol","Dingbat dec":"98","Dingbat hex":"62","Unicode dec":"946","Unicode hex":"3B2"},{"Typeface name":"Symbol","Dingbat dec":"99","Dingbat hex":"63","Unicode dec":"967","Unicode hex":"3C7"},{"Typeface name":"Symbol","Dingbat dec":"100","Dingbat hex":"64","Unicode dec":"948","Unicode hex":"3B4"},{"Typeface name":"Symbol","Dingbat dec":"101","Dingbat hex":"65","Unicode dec":"949","Unicode hex":"3B5"},{"Typeface name":"Symbol","Dingbat dec":"102","Dingbat hex":"66","Unicode dec":"966","Unicode hex":"3C6"},{"Typeface name":"Symbol","Dingbat dec":"103","Dingbat hex":"67","Unicode dec":"947","Unicode hex":"3B3"},{"Typeface name":"Symbol","Dingbat dec":"104","Dingbat hex":"68","Unicode dec":"951","Unicode hex":"3B7"},{"Typeface name":"Symbol","Dingbat dec":"105","Dingbat hex":"69","Unicode dec":"953","Unicode hex":"3B9"},{"Typeface name":"Symbol","Dingbat dec":"106","Dingbat hex":"6A","Unicode dec":"981","Unicode hex":"3D5"},{"Typeface name":"Symbol","Dingbat dec":"107","Dingbat hex":"6B","Unicode dec":"954","Unicode hex":"3BA"},{"Typeface name":"Symbol","Dingbat dec":"108","Dingbat hex":"6C","Unicode dec":"955","Unicode hex":"3BB"},{"Typeface name":"Symbol","Dingbat dec":"109","Dingbat hex":"6D","Unicode dec":"956","Unicode hex":"3BC"},{"Typeface name":"Symbol","Dingbat dec":"110","Dingbat hex":"6E","Unicode dec":"957","Unicode hex":"3BD"},{"Typeface name":"Symbol","Dingbat dec":"111","Dingbat hex":"6F","Unicode dec":"959","Unicode hex":"3BF"},{"Typeface name":"Symbol","Dingbat dec":"112","Dingbat hex":"70","Unicode dec":"960","Unicode hex":"3C0"},{"Typeface name":"Symbol","Dingbat dec":"113","Dingbat hex":"71","Unicode dec":"952","Unicode hex":"3B8"},{"Typeface name":"Symbol","Dingbat dec":"114","Dingbat hex":"72","Unicode dec":"961","Unicode hex":"3C1"},{"Typeface name":"Symbol","Dingbat dec":"115","Dingbat hex":"73","Unicode dec":"963","Unicode hex":"3C3"},{"Typeface name":"Symbol","Dingbat dec":"116","Dingbat hex":"74","Unicode dec":"964","Unicode hex":"3C4"},{"Typeface name":"Symbol","Dingbat dec":"117","Dingbat hex":"75","Unicode dec":"965","Unicode hex":"3C5"},{"Typeface name":"Symbol","Dingbat dec":"118","Dingbat hex":"76","Unicode dec":"982","Unicode hex":"3D6"},{"Typeface name":"Symbol","Dingbat dec":"119","Dingbat hex":"77","Unicode dec":"969","Unicode hex":"3C9"},{"Typeface name":"Symbol","Dingbat dec":"120","Dingbat hex":"78","Unicode dec":"958","Unicode hex":"3BE"},{"Typeface name":"Symbol","Dingbat dec":"121","Dingbat hex":"79","Unicode dec":"968","Unicode hex":"3C8"},{"Typeface name":"Symbol","Dingbat dec":"122","Dingbat hex":"7A","Unicode dec":"950","Unicode hex":"3B6"},{"Typeface name":"Symbol","Dingbat dec":"123","Dingbat hex":"7B","Unicode dec":"123","Unicode hex":"7B"},{"Typeface name":"Symbol","Dingbat dec":"124","Dingbat hex":"7C","Unicode dec":"124","Unicode hex":"7C"},{"Typeface name":"Symbol","Dingbat dec":"125","Dingbat hex":"7D","Unicode dec":"125","Unicode hex":"7D"},{"Typeface name":"Symbol","Dingbat dec":"126","Dingbat hex":"7E","Unicode dec":"126","Unicode hex":"7E"},{"Typeface name":"Symbol","Dingbat dec":"160","Dingbat hex":"A0","Unicode dec":"8364","Unicode hex":"20AC"},{"Typeface name":"Symbol","Dingbat dec":"161","Dingbat hex":"A1","Unicode dec":"978","Unicode hex":"3D2"},{"Typeface name":"Symbol","Dingbat dec":"162","Dingbat hex":"A2","Unicode dec":"8242","Unicode hex":"2032"},{"Typeface name":"Symbol","Dingbat dec":"163","Dingbat hex":"A3","Unicode dec":"8804","Unicode hex":"2264"},{"Typeface name":"Symbol","Dingbat dec":"164","Dingbat hex":"A4","Unicode dec":"8260","Unicode hex":"2044"},{"Typeface name":"Symbol","Dingbat dec":"165","Dingbat hex":"A5","Unicode dec":"8734","Unicode hex":"221E"},{"Typeface name":"Symbol","Dingbat dec":"166","Dingbat hex":"A6","Unicode dec":"402","Unicode hex":"192"},{"Typeface name":"Symbol","Dingbat dec":"167","Dingbat hex":"A7","Unicode dec":"9827","Unicode hex":"2663"},{"Typeface name":"Symbol","Dingbat dec":"168","Dingbat hex":"A8","Unicode dec":"9830","Unicode hex":"2666"},{"Typeface name":"Symbol","Dingbat dec":"169","Dingbat hex":"A9","Unicode dec":"9829","Unicode hex":"2665"},{"Typeface name":"Symbol","Dingbat dec":"170","Dingbat hex":"AA","Unicode dec":"9824","Unicode hex":"2660"},{"Typeface name":"Symbol","Dingbat dec":"171","Dingbat hex":"AB","Unicode dec":"8596","Unicode hex":"2194"},{"Typeface name":"Symbol","Dingbat dec":"172","Dingbat hex":"AC","Unicode dec":"8592","Unicode hex":"2190"},{"Typeface name":"Symbol","Dingbat dec":"173","Dingbat hex":"AD","Unicode dec":"8593","Unicode hex":"2191"},{"Typeface name":"Symbol","Dingbat dec":"174","Dingbat hex":"AE","Unicode dec":"8594","Unicode hex":"2192"},{"Typeface name":"Symbol","Dingbat dec":"175","Dingbat hex":"AF","Unicode dec":"8595","Unicode hex":"2193"},{"Typeface name":"Symbol","Dingbat dec":"176","Dingbat hex":"B0","Unicode dec":"176","Unicode hex":"B0"},{"Typeface name":"Symbol","Dingbat dec":"177","Dingbat hex":"B1","Unicode dec":"177","Unicode hex":"B1"},{"Typeface name":"Symbol","Dingbat dec":"178","Dingbat hex":"B2","Unicode dec":"8243","Unicode hex":"2033"},{"Typeface name":"Symbol","Dingbat dec":"179","Dingbat hex":"B3","Unicode dec":"8805","Unicode hex":"2265"},{"Typeface name":"Symbol","Dingbat dec":"180","Dingbat hex":"B4","Unicode dec":"215","Unicode hex":"D7"},{"Typeface name":"Symbol","Dingbat dec":"181","Dingbat hex":"B5","Unicode dec":"8733","Unicode hex":"221D"},{"Typeface name":"Symbol","Dingbat dec":"182","Dingbat hex":"B6","Unicode dec":"8706","Unicode hex":"2202"},{"Typeface name":"Symbol","Dingbat dec":"183","Dingbat hex":"B7","Unicode dec":"8226","Unicode hex":"2022"},{"Typeface name":"Symbol","Dingbat dec":"184","Dingbat hex":"B8","Unicode dec":"247","Unicode hex":"F7"},{"Typeface name":"Symbol","Dingbat dec":"185","Dingbat hex":"B9","Unicode dec":"8800","Unicode hex":"2260"},{"Typeface name":"Symbol","Dingbat dec":"186","Dingbat hex":"BA","Unicode dec":"8801","Unicode hex":"2261"},{"Typeface name":"Symbol","Dingbat dec":"187","Dingbat hex":"BB","Unicode dec":"8776","Unicode hex":"2248"},{"Typeface name":"Symbol","Dingbat dec":"188","Dingbat hex":"BC","Unicode dec":"8230","Unicode hex":"2026"},{"Typeface name":"Symbol","Dingbat dec":"189","Dingbat hex":"BD","Unicode dec":"9168","Unicode hex":"23D0"},{"Typeface name":"Symbol","Dingbat dec":"190","Dingbat hex":"BE","Unicode dec":"9135","Unicode hex":"23AF"},{"Typeface name":"Symbol","Dingbat dec":"191","Dingbat hex":"BF","Unicode dec":"8629","Unicode hex":"21B5"},{"Typeface name":"Symbol","Dingbat dec":"192","Dingbat hex":"C0","Unicode dec":"8501","Unicode hex":"2135"},{"Typeface name":"Symbol","Dingbat dec":"193","Dingbat hex":"C1","Unicode dec":"8465","Unicode hex":"2111"},{"Typeface name":"Symbol","Dingbat dec":"194","Dingbat hex":"C2","Unicode dec":"8476","Unicode hex":"211C"},{"Typeface name":"Symbol","Dingbat dec":"195","Dingbat hex":"C3","Unicode dec":"8472","Unicode hex":"2118"},{"Typeface name":"Symbol","Dingbat dec":"196","Dingbat hex":"C4","Unicode dec":"8855","Unicode hex":"2297"},{"Typeface name":"Symbol","Dingbat dec":"197","Dingbat hex":"C5","Unicode dec":"8853","Unicode hex":"2295"},{"Typeface name":"Symbol","Dingbat dec":"198","Dingbat hex":"C6","Unicode dec":"8709","Unicode hex":"2205"},{"Typeface name":"Symbol","Dingbat dec":"199","Dingbat hex":"C7","Unicode dec":"8745","Unicode hex":"2229"},{"Typeface name":"Symbol","Dingbat dec":"200","Dingbat hex":"C8","Unicode dec":"8746","Unicode hex":"222A"},{"Typeface name":"Symbol","Dingbat dec":"201","Dingbat hex":"C9","Unicode dec":"8835","Unicode hex":"2283"},{"Typeface name":"Symbol","Dingbat dec":"202","Dingbat hex":"CA","Unicode dec":"8839","Unicode hex":"2287"},{"Typeface name":"Symbol","Dingbat dec":"203","Dingbat hex":"CB","Unicode dec":"8836","Unicode hex":"2284"},{"Typeface name":"Symbol","Dingbat dec":"204","Dingbat hex":"CC","Unicode dec":"8834","Unicode hex":"2282"},{"Typeface name":"Symbol","Dingbat dec":"205","Dingbat hex":"CD","Unicode dec":"8838","Unicode hex":"2286"},{"Typeface name":"Symbol","Dingbat dec":"206","Dingbat hex":"CE","Unicode dec":"8712","Unicode hex":"2208"},{"Typeface name":"Symbol","Dingbat dec":"207","Dingbat hex":"CF","Unicode dec":"8713","Unicode hex":"2209"},{"Typeface name":"Symbol","Dingbat dec":"208","Dingbat hex":"D0","Unicode dec":"8736","Unicode hex":"2220"},{"Typeface name":"Symbol","Dingbat dec":"209","Dingbat hex":"D1","Unicode dec":"8711","Unicode hex":"2207"},{"Typeface name":"Symbol","Dingbat dec":"210","Dingbat hex":"D2","Unicode dec":"174","Unicode hex":"AE"},{"Typeface name":"Symbol","Dingbat dec":"211","Dingbat hex":"D3","Unicode dec":"169","Unicode hex":"A9"},{"Typeface name":"Symbol","Dingbat dec":"212","Dingbat hex":"D4","Unicode dec":"8482","Unicode hex":"2122"},{"Typeface name":"Symbol","Dingbat dec":"213","Dingbat hex":"D5","Unicode dec":"8719","Unicode hex":"220F"},{"Typeface name":"Symbol","Dingbat dec":"214","Dingbat hex":"D6","Unicode dec":"8730","Unicode hex":"221A"},{"Typeface name":"Symbol","Dingbat dec":"215","Dingbat hex":"D7","Unicode dec":"8901","Unicode hex":"22C5"},{"Typeface name":"Symbol","Dingbat dec":"216","Dingbat hex":"D8","Unicode dec":"172","Unicode hex":"AC"},{"Typeface name":"Symbol","Dingbat dec":"217","Dingbat hex":"D9","Unicode dec":"8743","Unicode hex":"2227"},{"Typeface name":"Symbol","Dingbat dec":"218","Dingbat hex":"DA","Unicode dec":"8744","Unicode hex":"2228"},{"Typeface name":"Symbol","Dingbat dec":"219","Dingbat hex":"DB","Unicode dec":"8660","Unicode hex":"21D4"},{"Typeface name":"Symbol","Dingbat dec":"220","Dingbat hex":"DC","Unicode dec":"8656","Unicode hex":"21D0"},{"Typeface name":"Symbol","Dingbat dec":"221","Dingbat hex":"DD","Unicode dec":"8657","Unicode hex":"21D1"},{"Typeface name":"Symbol","Dingbat dec":"222","Dingbat hex":"DE","Unicode dec":"8658","Unicode hex":"21D2"},{"Typeface name":"Symbol","Dingbat dec":"223","Dingbat hex":"DF","Unicode dec":"8659","Unicode hex":"21D3"},{"Typeface name":"Symbol","Dingbat dec":"224","Dingbat hex":"E0","Unicode dec":"9674","Unicode hex":"25CA"},{"Typeface name":"Symbol","Dingbat dec":"225","Dingbat hex":"E1","Unicode dec":"12296","Unicode hex":"3008"},{"Typeface name":"Symbol","Dingbat dec":"226","Dingbat hex":"E2","Unicode dec":"174","Unicode hex":"AE"},{"Typeface name":"Symbol","Dingbat dec":"227","Dingbat hex":"E3","Unicode dec":"169","Unicode hex":"A9"},{"Typeface name":"Symbol","Dingbat dec":"228","Dingbat hex":"E4","Unicode dec":"8482","Unicode hex":"2122"},{"Typeface name":"Symbol","Dingbat dec":"229","Dingbat hex":"E5","Unicode dec":"8721","Unicode hex":"2211"},{"Typeface name":"Symbol","Dingbat dec":"230","Dingbat hex":"E6","Unicode dec":"9115","Unicode hex":"239B"},{"Typeface name":"Symbol","Dingbat dec":"231","Dingbat hex":"E7","Unicode dec":"9116","Unicode hex":"239C"},{"Typeface name":"Symbol","Dingbat dec":"232","Dingbat hex":"E8","Unicode dec":"9117","Unicode hex":"239D"},{"Typeface name":"Symbol","Dingbat dec":"233","Dingbat hex":"E9","Unicode dec":"9121","Unicode hex":"23A1"},{"Typeface name":"Symbol","Dingbat dec":"234","Dingbat hex":"EA","Unicode dec":"9122","Unicode hex":"23A2"},{"Typeface name":"Symbol","Dingbat dec":"235","Dingbat hex":"EB","Unicode dec":"9123","Unicode hex":"23A3"},{"Typeface name":"Symbol","Dingbat dec":"236","Dingbat hex":"EC","Unicode dec":"9127","Unicode hex":"23A7"},{"Typeface name":"Symbol","Dingbat dec":"237","Dingbat hex":"ED","Unicode dec":"9128","Unicode hex":"23A8"},{"Typeface name":"Symbol","Dingbat dec":"238","Dingbat hex":"EE","Unicode dec":"9129","Unicode hex":"23A9"},{"Typeface name":"Symbol","Dingbat dec":"239","Dingbat hex":"EF","Unicode dec":"9130","Unicode hex":"23AA"},{"Typeface name":"Symbol","Dingbat dec":"240","Dingbat hex":"F0","Unicode dec":"63743","Unicode hex":"F8FF"},{"Typeface name":"Symbol","Dingbat dec":"241","Dingbat hex":"F1","Unicode dec":"12297","Unicode hex":"3009"},{"Typeface name":"Symbol","Dingbat dec":"242","Dingbat hex":"F2","Unicode dec":"8747","Unicode hex":"222B"},{"Typeface name":"Symbol","Dingbat dec":"243","Dingbat hex":"F3","Unicode dec":"8992","Unicode hex":"2320"},{"Typeface name":"Symbol","Dingbat dec":"244","Dingbat hex":"F4","Unicode dec":"9134","Unicode hex":"23AE"},{"Typeface name":"Symbol","Dingbat dec":"245","Dingbat hex":"F5","Unicode dec":"8993","Unicode hex":"2321"},{"Typeface name":"Symbol","Dingbat dec":"246","Dingbat hex":"F6","Unicode dec":"9118","Unicode hex":"239E"},{"Typeface name":"Symbol","Dingbat dec":"247","Dingbat hex":"F7","Unicode dec":"9119","Unicode hex":"239F"},{"Typeface name":"Symbol","Dingbat dec":"248","Dingbat hex":"F8","Unicode dec":"9120","Unicode hex":"23A0"},{"Typeface name":"Symbol","Dingbat dec":"249","Dingbat hex":"F9","Unicode dec":"9124","Unicode hex":"23A4"},{"Typeface name":"Symbol","Dingbat dec":"250","Dingbat hex":"FA","Unicode dec":"9125","Unicode hex":"23A5"},{"Typeface name":"Symbol","Dingbat dec":"251","Dingbat hex":"FB","Unicode dec":"9126","Unicode hex":"23A6"},{"Typeface name":"Symbol","Dingbat dec":"252","Dingbat hex":"FC","Unicode dec":"9131","Unicode hex":"23AB"},{"Typeface name":"Symbol","Dingbat dec":"253","Dingbat hex":"FD","Unicode dec":"9132","Unicode hex":"23AC"},{"Typeface name":"Symbol","Dingbat dec":"254","Dingbat hex":"FE","Unicode dec":"9133","Unicode hex":"23AD"},{"Typeface name":"Webdings","Dingbat dec":"32","Dingbat hex":"20","Unicode dec":"32","Unicode hex":"20"},{"Typeface name":"Webdings","Dingbat dec":"33","Dingbat hex":"21","Unicode dec":"128375","Unicode hex":"1F577"},{"Typeface name":"Webdings","Dingbat dec":"34","Dingbat hex":"22","Unicode dec":"128376","Unicode hex":"1F578"},{"Typeface name":"Webdings","Dingbat dec":"35","Dingbat hex":"23","Unicode dec":"128370","Unicode hex":"1F572"},{"Typeface name":"Webdings","Dingbat dec":"36","Dingbat hex":"24","Unicode dec":"128374","Unicode hex":"1F576"},{"Typeface name":"Webdings","Dingbat dec":"37","Dingbat hex":"25","Unicode dec":"127942","Unicode hex":"1F3C6"},{"Typeface name":"Webdings","Dingbat dec":"38","Dingbat hex":"26","Unicode dec":"127894","Unicode hex":"1F396"},{"Typeface name":"Webdings","Dingbat dec":"39","Dingbat hex":"27","Unicode dec":"128391","Unicode hex":"1F587"},{"Typeface name":"Webdings","Dingbat dec":"40","Dingbat hex":"28","Unicode dec":"128488","Unicode hex":"1F5E8"},{"Typeface name":"Webdings","Dingbat dec":"41","Dingbat hex":"29","Unicode dec":"128489","Unicode hex":"1F5E9"},{"Typeface name":"Webdings","Dingbat dec":"42","Dingbat hex":"2A","Unicode dec":"128496","Unicode hex":"1F5F0"},{"Typeface name":"Webdings","Dingbat dec":"43","Dingbat hex":"2B","Unicode dec":"128497","Unicode hex":"1F5F1"},{"Typeface name":"Webdings","Dingbat dec":"44","Dingbat hex":"2C","Unicode dec":"127798","Unicode hex":"1F336"},{"Typeface name":"Webdings","Dingbat dec":"45","Dingbat hex":"2D","Unicode dec":"127895","Unicode hex":"1F397"},{"Typeface name":"Webdings","Dingbat dec":"46","Dingbat hex":"2E","Unicode dec":"128638","Unicode hex":"1F67E"},{"Typeface name":"Webdings","Dingbat dec":"47","Dingbat hex":"2F","Unicode dec":"128636","Unicode hex":"1F67C"},{"Typeface name":"Webdings","Dingbat dec":"48","Dingbat hex":"30","Unicode dec":"128469","Unicode hex":"1F5D5"},{"Typeface name":"Webdings","Dingbat dec":"49","Dingbat hex":"31","Unicode dec":"128470","Unicode hex":"1F5D6"},{"Typeface name":"Webdings","Dingbat dec":"50","Dingbat hex":"32","Unicode dec":"128471","Unicode hex":"1F5D7"},{"Typeface name":"Webdings","Dingbat dec":"51","Dingbat hex":"33","Unicode dec":"9204","Unicode hex":"23F4"},{"Typeface name":"Webdings","Dingbat dec":"52","Dingbat hex":"34","Unicode dec":"9205","Unicode hex":"23F5"},{"Typeface name":"Webdings","Dingbat dec":"53","Dingbat hex":"35","Unicode dec":"9206","Unicode hex":"23F6"},{"Typeface name":"Webdings","Dingbat dec":"54","Dingbat hex":"36","Unicode dec":"9207","Unicode hex":"23F7"},{"Typeface name":"Webdings","Dingbat dec":"55","Dingbat hex":"37","Unicode dec":"9194","Unicode hex":"23EA"},{"Typeface name":"Webdings","Dingbat dec":"56","Dingbat hex":"38","Unicode dec":"9193","Unicode hex":"23E9"},{"Typeface name":"Webdings","Dingbat dec":"57","Dingbat hex":"39","Unicode dec":"9198","Unicode hex":"23EE"},{"Typeface name":"Webdings","Dingbat dec":"58","Dingbat hex":"3A","Unicode dec":"9197","Unicode hex":"23ED"},{"Typeface name":"Webdings","Dingbat dec":"59","Dingbat hex":"3B","Unicode dec":"9208","Unicode hex":"23F8"},{"Typeface name":"Webdings","Dingbat dec":"60","Dingbat hex":"3C","Unicode dec":"9209","Unicode hex":"23F9"},{"Typeface name":"Webdings","Dingbat dec":"61","Dingbat hex":"3D","Unicode dec":"9210","Unicode hex":"23FA"},{"Typeface name":"Webdings","Dingbat dec":"62","Dingbat hex":"3E","Unicode dec":"128474","Unicode hex":"1F5DA"},{"Typeface name":"Webdings","Dingbat dec":"63","Dingbat hex":"3F","Unicode dec":"128499","Unicode hex":"1F5F3"},{"Typeface name":"Webdings","Dingbat dec":"64","Dingbat hex":"40","Unicode dec":"128736","Unicode hex":"1F6E0"},{"Typeface name":"Webdings","Dingbat dec":"65","Dingbat hex":"41","Unicode dec":"127959","Unicode hex":"1F3D7"},{"Typeface name":"Webdings","Dingbat dec":"66","Dingbat hex":"42","Unicode dec":"127960","Unicode hex":"1F3D8"},{"Typeface name":"Webdings","Dingbat dec":"67","Dingbat hex":"43","Unicode dec":"127961","Unicode hex":"1F3D9"},{"Typeface name":"Webdings","Dingbat dec":"68","Dingbat hex":"44","Unicode dec":"127962","Unicode hex":"1F3DA"},{"Typeface name":"Webdings","Dingbat dec":"69","Dingbat hex":"45","Unicode dec":"127964","Unicode hex":"1F3DC"},{"Typeface name":"Webdings","Dingbat dec":"70","Dingbat hex":"46","Unicode dec":"127981","Unicode hex":"1F3ED"},{"Typeface name":"Webdings","Dingbat dec":"71","Dingbat hex":"47","Unicode dec":"127963","Unicode hex":"1F3DB"},{"Typeface name":"Webdings","Dingbat dec":"72","Dingbat hex":"48","Unicode dec":"127968","Unicode hex":"1F3E0"},{"Typeface name":"Webdings","Dingbat dec":"73","Dingbat hex":"49","Unicode dec":"127958","Unicode hex":"1F3D6"},{"Typeface name":"Webdings","Dingbat dec":"74","Dingbat hex":"4A","Unicode dec":"127965","Unicode hex":"1F3DD"},{"Typeface name":"Webdings","Dingbat dec":"75","Dingbat hex":"4B","Unicode dec":"128739","Unicode hex":"1F6E3"},{"Typeface name":"Webdings","Dingbat dec":"76","Dingbat hex":"4C","Unicode dec":"128269","Unicode hex":"1F50D"},{"Typeface name":"Webdings","Dingbat dec":"77","Dingbat hex":"4D","Unicode dec":"127956","Unicode hex":"1F3D4"},{"Typeface name":"Webdings","Dingbat dec":"78","Dingbat hex":"4E","Unicode dec":"128065","Unicode hex":"1F441"},{"Typeface name":"Webdings","Dingbat dec":"79","Dingbat hex":"4F","Unicode dec":"128066","Unicode hex":"1F442"},{"Typeface name":"Webdings","Dingbat dec":"80","Dingbat hex":"50","Unicode dec":"127966","Unicode hex":"1F3DE"},{"Typeface name":"Webdings","Dingbat dec":"81","Dingbat hex":"51","Unicode dec":"127957","Unicode hex":"1F3D5"},{"Typeface name":"Webdings","Dingbat dec":"82","Dingbat hex":"52","Unicode dec":"128740","Unicode hex":"1F6E4"},{"Typeface name":"Webdings","Dingbat dec":"83","Dingbat hex":"53","Unicode dec":"127967","Unicode hex":"1F3DF"},{"Typeface name":"Webdings","Dingbat dec":"84","Dingbat hex":"54","Unicode dec":"128755","Unicode hex":"1F6F3"},{"Typeface name":"Webdings","Dingbat dec":"85","Dingbat hex":"55","Unicode dec":"128364","Unicode hex":"1F56C"},{"Typeface name":"Webdings","Dingbat dec":"86","Dingbat hex":"56","Unicode dec":"128363","Unicode hex":"1F56B"},{"Typeface name":"Webdings","Dingbat dec":"87","Dingbat hex":"57","Unicode dec":"128360","Unicode hex":"1F568"},{"Typeface name":"Webdings","Dingbat dec":"88","Dingbat hex":"58","Unicode dec":"128264","Unicode hex":"1F508"},{"Typeface name":"Webdings","Dingbat dec":"89","Dingbat hex":"59","Unicode dec":"127892","Unicode hex":"1F394"},{"Typeface name":"Webdings","Dingbat dec":"90","Dingbat hex":"5A","Unicode dec":"127893","Unicode hex":"1F395"},{"Typeface name":"Webdings","Dingbat dec":"91","Dingbat hex":"5B","Unicode dec":"128492","Unicode hex":"1F5EC"},{"Typeface name":"Webdings","Dingbat dec":"92","Dingbat hex":"5C","Unicode dec":"128637","Unicode hex":"1F67D"},{"Typeface name":"Webdings","Dingbat dec":"93","Dingbat hex":"5D","Unicode dec":"128493","Unicode hex":"1F5ED"},{"Typeface name":"Webdings","Dingbat dec":"94","Dingbat hex":"5E","Unicode dec":"128490","Unicode hex":"1F5EA"},{"Typeface name":"Webdings","Dingbat dec":"95","Dingbat hex":"5F","Unicode dec":"128491","Unicode hex":"1F5EB"},{"Typeface name":"Webdings","Dingbat dec":"96","Dingbat hex":"60","Unicode dec":"11156","Unicode hex":"2B94"},{"Typeface name":"Webdings","Dingbat dec":"97","Dingbat hex":"61","Unicode dec":"10004","Unicode hex":"2714"},{"Typeface name":"Webdings","Dingbat dec":"98","Dingbat hex":"62","Unicode dec":"128690","Unicode hex":"1F6B2"},{"Typeface name":"Webdings","Dingbat dec":"99","Dingbat hex":"63","Unicode dec":"11036","Unicode hex":"2B1C"},{"Typeface name":"Webdings","Dingbat dec":"100","Dingbat hex":"64","Unicode dec":"128737","Unicode hex":"1F6E1"},{"Typeface name":"Webdings","Dingbat dec":"101","Dingbat hex":"65","Unicode dec":"128230","Unicode hex":"1F4E6"},{"Typeface name":"Webdings","Dingbat dec":"102","Dingbat hex":"66","Unicode dec":"128753","Unicode hex":"1F6F1"},{"Typeface name":"Webdings","Dingbat dec":"103","Dingbat hex":"67","Unicode dec":"11035","Unicode hex":"2B1B"},{"Typeface name":"Webdings","Dingbat dec":"104","Dingbat hex":"68","Unicode dec":"128657","Unicode hex":"1F691"},{"Typeface name":"Webdings","Dingbat dec":"105","Dingbat hex":"69","Unicode dec":"128712","Unicode hex":"1F6C8"},{"Typeface name":"Webdings","Dingbat dec":"106","Dingbat hex":"6A","Unicode dec":"128745","Unicode hex":"1F6E9"},{"Typeface name":"Webdings","Dingbat dec":"107","Dingbat hex":"6B","Unicode dec":"128752","Unicode hex":"1F6F0"},{"Typeface name":"Webdings","Dingbat dec":"108","Dingbat hex":"6C","Unicode dec":"128968","Unicode hex":"1F7C8"},{"Typeface name":"Webdings","Dingbat dec":"109","Dingbat hex":"6D","Unicode dec":"128372","Unicode hex":"1F574"},{"Typeface name":"Webdings","Dingbat dec":"110","Dingbat hex":"6E","Unicode dec":"11044","Unicode hex":"2B24"},{"Typeface name":"Webdings","Dingbat dec":"111","Dingbat hex":"6F","Unicode dec":"128741","Unicode hex":"1F6E5"},{"Typeface name":"Webdings","Dingbat dec":"112","Dingbat hex":"70","Unicode dec":"128660","Unicode hex":"1F694"},{"Typeface name":"Webdings","Dingbat dec":"113","Dingbat hex":"71","Unicode dec":"128472","Unicode hex":"1F5D8"},{"Typeface name":"Webdings","Dingbat dec":"114","Dingbat hex":"72","Unicode dec":"128473","Unicode hex":"1F5D9"},{"Typeface name":"Webdings","Dingbat dec":"115","Dingbat hex":"73","Unicode dec":"10067","Unicode hex":"2753"},{"Typeface name":"Webdings","Dingbat dec":"116","Dingbat hex":"74","Unicode dec":"128754","Unicode hex":"1F6F2"},{"Typeface name":"Webdings","Dingbat dec":"117","Dingbat hex":"75","Unicode dec":"128647","Unicode hex":"1F687"},{"Typeface name":"Webdings","Dingbat dec":"118","Dingbat hex":"76","Unicode dec":"128653","Unicode hex":"1F68D"},{"Typeface name":"Webdings","Dingbat dec":"119","Dingbat hex":"77","Unicode dec":"9971","Unicode hex":"26F3"},{"Typeface name":"Webdings","Dingbat dec":"120","Dingbat hex":"78","Unicode dec":"10680","Unicode hex":"29B8"},{"Typeface name":"Webdings","Dingbat dec":"121","Dingbat hex":"79","Unicode dec":"8854","Unicode hex":"2296"},{"Typeface name":"Webdings","Dingbat dec":"122","Dingbat hex":"7A","Unicode dec":"128685","Unicode hex":"1F6AD"},{"Typeface name":"Webdings","Dingbat dec":"123","Dingbat hex":"7B","Unicode dec":"128494","Unicode hex":"1F5EE"},{"Typeface name":"Webdings","Dingbat dec":"124","Dingbat hex":"7C","Unicode dec":"9168","Unicode hex":"23D0"},{"Typeface name":"Webdings","Dingbat dec":"125","Dingbat hex":"7D","Unicode dec":"128495","Unicode hex":"1F5EF"},{"Typeface name":"Webdings","Dingbat dec":"126","Dingbat hex":"7E","Unicode dec":"128498","Unicode hex":"1F5F2"},{"Typeface name":"Webdings","Dingbat dec":"128","Dingbat hex":"80","Unicode dec":"128697","Unicode hex":"1F6B9"},{"Typeface name":"Webdings","Dingbat dec":"129","Dingbat hex":"81","Unicode dec":"128698","Unicode hex":"1F6BA"},{"Typeface name":"Webdings","Dingbat dec":"130","Dingbat hex":"82","Unicode dec":"128713","Unicode hex":"1F6C9"},{"Typeface name":"Webdings","Dingbat dec":"131","Dingbat hex":"83","Unicode dec":"128714","Unicode hex":"1F6CA"},{"Typeface name":"Webdings","Dingbat dec":"132","Dingbat hex":"84","Unicode dec":"128700","Unicode hex":"1F6BC"},{"Typeface name":"Webdings","Dingbat dec":"133","Dingbat hex":"85","Unicode dec":"128125","Unicode hex":"1F47D"},{"Typeface name":"Webdings","Dingbat dec":"134","Dingbat hex":"86","Unicode dec":"127947","Unicode hex":"1F3CB"},{"Typeface name":"Webdings","Dingbat dec":"135","Dingbat hex":"87","Unicode dec":"9975","Unicode hex":"26F7"},{"Typeface name":"Webdings","Dingbat dec":"136","Dingbat hex":"88","Unicode dec":"127938","Unicode hex":"1F3C2"},{"Typeface name":"Webdings","Dingbat dec":"137","Dingbat hex":"89","Unicode dec":"127948","Unicode hex":"1F3CC"},{"Typeface name":"Webdings","Dingbat dec":"138","Dingbat hex":"8A","Unicode dec":"127946","Unicode hex":"1F3CA"},{"Typeface name":"Webdings","Dingbat dec":"139","Dingbat hex":"8B","Unicode dec":"127940","Unicode hex":"1F3C4"},{"Typeface name":"Webdings","Dingbat dec":"140","Dingbat hex":"8C","Unicode dec":"127949","Unicode hex":"1F3CD"},{"Typeface name":"Webdings","Dingbat dec":"141","Dingbat hex":"8D","Unicode dec":"127950","Unicode hex":"1F3CE"},{"Typeface name":"Webdings","Dingbat dec":"142","Dingbat hex":"8E","Unicode dec":"128664","Unicode hex":"1F698"},{"Typeface name":"Webdings","Dingbat dec":"143","Dingbat hex":"8F","Unicode dec":"128480","Unicode hex":"1F5E0"},{"Typeface name":"Webdings","Dingbat dec":"144","Dingbat hex":"90","Unicode dec":"128738","Unicode hex":"1F6E2"},{"Typeface name":"Webdings","Dingbat dec":"145","Dingbat hex":"91","Unicode dec":"128176","Unicode hex":"1F4B0"},{"Typeface name":"Webdings","Dingbat dec":"146","Dingbat hex":"92","Unicode dec":"127991","Unicode hex":"1F3F7"},{"Typeface name":"Webdings","Dingbat dec":"147","Dingbat hex":"93","Unicode dec":"128179","Unicode hex":"1F4B3"},{"Typeface name":"Webdings","Dingbat dec":"148","Dingbat hex":"94","Unicode dec":"128106","Unicode hex":"1F46A"},{"Typeface name":"Webdings","Dingbat dec":"149","Dingbat hex":"95","Unicode dec":"128481","Unicode hex":"1F5E1"},{"Typeface name":"Webdings","Dingbat dec":"150","Dingbat hex":"96","Unicode dec":"128482","Unicode hex":"1F5E2"},{"Typeface name":"Webdings","Dingbat dec":"151","Dingbat hex":"97","Unicode dec":"128483","Unicode hex":"1F5E3"},{"Typeface name":"Webdings","Dingbat dec":"152","Dingbat hex":"98","Unicode dec":"10031","Unicode hex":"272F"},{"Typeface name":"Webdings","Dingbat dec":"153","Dingbat hex":"99","Unicode dec":"128388","Unicode hex":"1F584"},{"Typeface name":"Webdings","Dingbat dec":"154","Dingbat hex":"9A","Unicode dec":"128389","Unicode hex":"1F585"},{"Typeface name":"Webdings","Dingbat dec":"155","Dingbat hex":"9B","Unicode dec":"128387","Unicode hex":"1F583"},{"Typeface name":"Webdings","Dingbat dec":"156","Dingbat hex":"9C","Unicode dec":"128390","Unicode hex":"1F586"},{"Typeface name":"Webdings","Dingbat dec":"157","Dingbat hex":"9D","Unicode dec":"128441","Unicode hex":"1F5B9"},{"Typeface name":"Webdings","Dingbat dec":"158","Dingbat hex":"9E","Unicode dec":"128442","Unicode hex":"1F5BA"},{"Typeface name":"Webdings","Dingbat dec":"159","Dingbat hex":"9F","Unicode dec":"128443","Unicode hex":"1F5BB"},{"Typeface name":"Webdings","Dingbat dec":"160","Dingbat hex":"A0","Unicode dec":"128373","Unicode hex":"1F575"},{"Typeface name":"Webdings","Dingbat dec":"161","Dingbat hex":"A1","Unicode dec":"128368","Unicode hex":"1F570"},{"Typeface name":"Webdings","Dingbat dec":"162","Dingbat hex":"A2","Unicode dec":"128445","Unicode hex":"1F5BD"},{"Typeface name":"Webdings","Dingbat dec":"163","Dingbat hex":"A3","Unicode dec":"128446","Unicode hex":"1F5BE"},{"Typeface name":"Webdings","Dingbat dec":"164","Dingbat hex":"A4","Unicode dec":"128203","Unicode hex":"1F4CB"},{"Typeface name":"Webdings","Dingbat dec":"165","Dingbat hex":"A5","Unicode dec":"128466","Unicode hex":"1F5D2"},{"Typeface name":"Webdings","Dingbat dec":"166","Dingbat hex":"A6","Unicode dec":"128467","Unicode hex":"1F5D3"},{"Typeface name":"Webdings","Dingbat dec":"167","Dingbat hex":"A7","Unicode dec":"128366","Unicode hex":"1F56E"},{"Typeface name":"Webdings","Dingbat dec":"168","Dingbat hex":"A8","Unicode dec":"128218","Unicode hex":"1F4DA"},{"Typeface name":"Webdings","Dingbat dec":"169","Dingbat hex":"A9","Unicode dec":"128478","Unicode hex":"1F5DE"},{"Typeface name":"Webdings","Dingbat dec":"170","Dingbat hex":"AA","Unicode dec":"128479","Unicode hex":"1F5DF"},{"Typeface name":"Webdings","Dingbat dec":"171","Dingbat hex":"AB","Unicode dec":"128451","Unicode hex":"1F5C3"},{"Typeface name":"Webdings","Dingbat dec":"172","Dingbat hex":"AC","Unicode dec":"128450","Unicode hex":"1F5C2"},{"Typeface name":"Webdings","Dingbat dec":"173","Dingbat hex":"AD","Unicode dec":"128444","Unicode hex":"1F5BC"},{"Typeface name":"Webdings","Dingbat dec":"174","Dingbat hex":"AE","Unicode dec":"127917","Unicode hex":"1F3AD"},{"Typeface name":"Webdings","Dingbat dec":"175","Dingbat hex":"AF","Unicode dec":"127900","Unicode hex":"1F39C"},{"Typeface name":"Webdings","Dingbat dec":"176","Dingbat hex":"B0","Unicode dec":"127896","Unicode hex":"1F398"},{"Typeface name":"Webdings","Dingbat dec":"177","Dingbat hex":"B1","Unicode dec":"127897","Unicode hex":"1F399"},{"Typeface name":"Webdings","Dingbat dec":"178","Dingbat hex":"B2","Unicode dec":"127911","Unicode hex":"1F3A7"},{"Typeface name":"Webdings","Dingbat dec":"179","Dingbat hex":"B3","Unicode dec":"128191","Unicode hex":"1F4BF"},{"Typeface name":"Webdings","Dingbat dec":"180","Dingbat hex":"B4","Unicode dec":"127902","Unicode hex":"1F39E"},{"Typeface name":"Webdings","Dingbat dec":"181","Dingbat hex":"B5","Unicode dec":"128247","Unicode hex":"1F4F7"},{"Typeface name":"Webdings","Dingbat dec":"182","Dingbat hex":"B6","Unicode dec":"127903","Unicode hex":"1F39F"},{"Typeface name":"Webdings","Dingbat dec":"183","Dingbat hex":"B7","Unicode dec":"127916","Unicode hex":"1F3AC"},{"Typeface name":"Webdings","Dingbat dec":"184","Dingbat hex":"B8","Unicode dec":"128253","Unicode hex":"1F4FD"},{"Typeface name":"Webdings","Dingbat dec":"185","Dingbat hex":"B9","Unicode dec":"128249","Unicode hex":"1F4F9"},{"Typeface name":"Webdings","Dingbat dec":"186","Dingbat hex":"BA","Unicode dec":"128254","Unicode hex":"1F4FE"},{"Typeface name":"Webdings","Dingbat dec":"187","Dingbat hex":"BB","Unicode dec":"128251","Unicode hex":"1F4FB"},{"Typeface name":"Webdings","Dingbat dec":"188","Dingbat hex":"BC","Unicode dec":"127898","Unicode hex":"1F39A"},{"Typeface name":"Webdings","Dingbat dec":"189","Dingbat hex":"BD","Unicode dec":"127899","Unicode hex":"1F39B"},{"Typeface name":"Webdings","Dingbat dec":"190","Dingbat hex":"BE","Unicode dec":"128250","Unicode hex":"1F4FA"},{"Typeface name":"Webdings","Dingbat dec":"191","Dingbat hex":"BF","Unicode dec":"128187","Unicode hex":"1F4BB"},{"Typeface name":"Webdings","Dingbat dec":"192","Dingbat hex":"C0","Unicode dec":"128421","Unicode hex":"1F5A5"},{"Typeface name":"Webdings","Dingbat dec":"193","Dingbat hex":"C1","Unicode dec":"128422","Unicode hex":"1F5A6"},{"Typeface name":"Webdings","Dingbat dec":"194","Dingbat hex":"C2","Unicode dec":"128423","Unicode hex":"1F5A7"},{"Typeface name":"Webdings","Dingbat dec":"195","Dingbat hex":"C3","Unicode dec":"128377","Unicode hex":"1F579"},{"Typeface name":"Webdings","Dingbat dec":"196","Dingbat hex":"C4","Unicode dec":"127918","Unicode hex":"1F3AE"},{"Typeface name":"Webdings","Dingbat dec":"197","Dingbat hex":"C5","Unicode dec":"128379","Unicode hex":"1F57B"},{"Typeface name":"Webdings","Dingbat dec":"198","Dingbat hex":"C6","Unicode dec":"128380","Unicode hex":"1F57C"},{"Typeface name":"Webdings","Dingbat dec":"199","Dingbat hex":"C7","Unicode dec":"128223","Unicode hex":"1F4DF"},{"Typeface name":"Webdings","Dingbat dec":"200","Dingbat hex":"C8","Unicode dec":"128385","Unicode hex":"1F581"},{"Typeface name":"Webdings","Dingbat dec":"201","Dingbat hex":"C9","Unicode dec":"128384","Unicode hex":"1F580"},{"Typeface name":"Webdings","Dingbat dec":"202","Dingbat hex":"CA","Unicode dec":"128424","Unicode hex":"1F5A8"},{"Typeface name":"Webdings","Dingbat dec":"203","Dingbat hex":"CB","Unicode dec":"128425","Unicode hex":"1F5A9"},{"Typeface name":"Webdings","Dingbat dec":"204","Dingbat hex":"CC","Unicode dec":"128447","Unicode hex":"1F5BF"},{"Typeface name":"Webdings","Dingbat dec":"205","Dingbat hex":"CD","Unicode dec":"128426","Unicode hex":"1F5AA"},{"Typeface name":"Webdings","Dingbat dec":"206","Dingbat hex":"CE","Unicode dec":"128476","Unicode hex":"1F5DC"},{"Typeface name":"Webdings","Dingbat dec":"207","Dingbat hex":"CF","Unicode dec":"128274","Unicode hex":"1F512"},{"Typeface name":"Webdings","Dingbat dec":"208","Dingbat hex":"D0","Unicode dec":"128275","Unicode hex":"1F513"},{"Typeface name":"Webdings","Dingbat dec":"209","Dingbat hex":"D1","Unicode dec":"128477","Unicode hex":"1F5DD"},{"Typeface name":"Webdings","Dingbat dec":"210","Dingbat hex":"D2","Unicode dec":"128229","Unicode hex":"1F4E5"},{"Typeface name":"Webdings","Dingbat dec":"211","Dingbat hex":"D3","Unicode dec":"128228","Unicode hex":"1F4E4"},{"Typeface name":"Webdings","Dingbat dec":"212","Dingbat hex":"D4","Unicode dec":"128371","Unicode hex":"1F573"},{"Typeface name":"Webdings","Dingbat dec":"213","Dingbat hex":"D5","Unicode dec":"127779","Unicode hex":"1F323"},{"Typeface name":"Webdings","Dingbat dec":"214","Dingbat hex":"D6","Unicode dec":"127780","Unicode hex":"1F324"},{"Typeface name":"Webdings","Dingbat dec":"215","Dingbat hex":"D7","Unicode dec":"127781","Unicode hex":"1F325"},{"Typeface name":"Webdings","Dingbat dec":"216","Dingbat hex":"D8","Unicode dec":"127782","Unicode hex":"1F326"},{"Typeface name":"Webdings","Dingbat dec":"217","Dingbat hex":"D9","Unicode dec":"9729","Unicode hex":"2601"},{"Typeface name":"Webdings","Dingbat dec":"218","Dingbat hex":"DA","Unicode dec":"127784","Unicode hex":"1F328"},{"Typeface name":"Webdings","Dingbat dec":"219","Dingbat hex":"DB","Unicode dec":"127783","Unicode hex":"1F327"},{"Typeface name":"Webdings","Dingbat dec":"220","Dingbat hex":"DC","Unicode dec":"127785","Unicode hex":"1F329"},{"Typeface name":"Webdings","Dingbat dec":"221","Dingbat hex":"DD","Unicode dec":"127786","Unicode hex":"1F32A"},{"Typeface name":"Webdings","Dingbat dec":"222","Dingbat hex":"DE","Unicode dec":"127788","Unicode hex":"1F32C"},{"Typeface name":"Webdings","Dingbat dec":"223","Dingbat hex":"DF","Unicode dec":"127787","Unicode hex":"1F32B"},{"Typeface name":"Webdings","Dingbat dec":"224","Dingbat hex":"E0","Unicode dec":"127772","Unicode hex":"1F31C"},{"Typeface name":"Webdings","Dingbat dec":"225","Dingbat hex":"E1","Unicode dec":"127777","Unicode hex":"1F321"},{"Typeface name":"Webdings","Dingbat dec":"226","Dingbat hex":"E2","Unicode dec":"128715","Unicode hex":"1F6CB"},{"Typeface name":"Webdings","Dingbat dec":"227","Dingbat hex":"E3","Unicode dec":"128719","Unicode hex":"1F6CF"},{"Typeface name":"Webdings","Dingbat dec":"228","Dingbat hex":"E4","Unicode dec":"127869","Unicode hex":"1F37D"},{"Typeface name":"Webdings","Dingbat dec":"229","Dingbat hex":"E5","Unicode dec":"127864","Unicode hex":"1F378"},{"Typeface name":"Webdings","Dingbat dec":"230","Dingbat hex":"E6","Unicode dec":"128718","Unicode hex":"1F6CE"},{"Typeface name":"Webdings","Dingbat dec":"231","Dingbat hex":"E7","Unicode dec":"128717","Unicode hex":"1F6CD"},{"Typeface name":"Webdings","Dingbat dec":"232","Dingbat hex":"E8","Unicode dec":"9413","Unicode hex":"24C5"},{"Typeface name":"Webdings","Dingbat dec":"233","Dingbat hex":"E9","Unicode dec":"9855","Unicode hex":"267F"},{"Typeface name":"Webdings","Dingbat dec":"234","Dingbat hex":"EA","Unicode dec":"128710","Unicode hex":"1F6C6"},{"Typeface name":"Webdings","Dingbat dec":"235","Dingbat hex":"EB","Unicode dec":"128392","Unicode hex":"1F588"},{"Typeface name":"Webdings","Dingbat dec":"236","Dingbat hex":"EC","Unicode dec":"127891","Unicode hex":"1F393"},{"Typeface name":"Webdings","Dingbat dec":"237","Dingbat hex":"ED","Unicode dec":"128484","Unicode hex":"1F5E4"},{"Typeface name":"Webdings","Dingbat dec":"238","Dingbat hex":"EE","Unicode dec":"128485","Unicode hex":"1F5E5"},{"Typeface name":"Webdings","Dingbat dec":"239","Dingbat hex":"EF","Unicode dec":"128486","Unicode hex":"1F5E6"},{"Typeface name":"Webdings","Dingbat dec":"240","Dingbat hex":"F0","Unicode dec":"128487","Unicode hex":"1F5E7"},{"Typeface name":"Webdings","Dingbat dec":"241","Dingbat hex":"F1","Unicode dec":"128746","Unicode hex":"1F6EA"},{"Typeface name":"Webdings","Dingbat dec":"242","Dingbat hex":"F2","Unicode dec":"128063","Unicode hex":"1F43F"},{"Typeface name":"Webdings","Dingbat dec":"243","Dingbat hex":"F3","Unicode dec":"128038","Unicode hex":"1F426"},{"Typeface name":"Webdings","Dingbat dec":"244","Dingbat hex":"F4","Unicode dec":"128031","Unicode hex":"1F41F"},{"Typeface name":"Webdings","Dingbat dec":"245","Dingbat hex":"F5","Unicode dec":"128021","Unicode hex":"1F415"},{"Typeface name":"Webdings","Dingbat dec":"246","Dingbat hex":"F6","Unicode dec":"128008","Unicode hex":"1F408"},{"Typeface name":"Webdings","Dingbat dec":"247","Dingbat hex":"F7","Unicode dec":"128620","Unicode hex":"1F66C"},{"Typeface name":"Webdings","Dingbat dec":"248","Dingbat hex":"F8","Unicode dec":"128622","Unicode hex":"1F66E"},{"Typeface name":"Webdings","Dingbat dec":"249","Dingbat hex":"F9","Unicode dec":"128621","Unicode hex":"1F66D"},{"Typeface name":"Webdings","Dingbat dec":"250","Dingbat hex":"FA","Unicode dec":"128623","Unicode hex":"1F66F"},{"Typeface name":"Webdings","Dingbat dec":"251","Dingbat hex":"FB","Unicode dec":"128506","Unicode hex":"1F5FA"},{"Typeface name":"Webdings","Dingbat dec":"252","Dingbat hex":"FC","Unicode dec":"127757","Unicode hex":"1F30D"},{"Typeface name":"Webdings","Dingbat dec":"253","Dingbat hex":"FD","Unicode dec":"127759","Unicode hex":"1F30F"},{"Typeface name":"Webdings","Dingbat dec":"254","Dingbat hex":"FE","Unicode dec":"127758","Unicode hex":"1F30E"},{"Typeface name":"Webdings","Dingbat dec":"255","Dingbat hex":"FF","Unicode dec":"128330","Unicode hex":"1F54A"},{"Typeface name":"Wingdings","Dingbat dec":"32","Dingbat hex":"20","Unicode dec":"32","Unicode hex":"20"},{"Typeface name":"Wingdings","Dingbat dec":"33","Dingbat hex":"21","Unicode dec":"128393","Unicode hex":"1F589"},{"Typeface name":"Wingdings","Dingbat dec":"34","Dingbat hex":"22","Unicode dec":"9986","Unicode hex":"2702"},{"Typeface name":"Wingdings","Dingbat dec":"35","Dingbat hex":"23","Unicode dec":"9985","Unicode hex":"2701"},{"Typeface name":"Wingdings","Dingbat dec":"36","Dingbat hex":"24","Unicode dec":"128083","Unicode hex":"1F453"},{"Typeface name":"Wingdings","Dingbat dec":"37","Dingbat hex":"25","Unicode dec":"128365","Unicode hex":"1F56D"},{"Typeface name":"Wingdings","Dingbat dec":"38","Dingbat hex":"26","Unicode dec":"128366","Unicode hex":"1F56E"},{"Typeface name":"Wingdings","Dingbat dec":"39","Dingbat hex":"27","Unicode dec":"128367","Unicode hex":"1F56F"},{"Typeface name":"Wingdings","Dingbat dec":"40","Dingbat hex":"28","Unicode dec":"128383","Unicode hex":"1F57F"},{"Typeface name":"Wingdings","Dingbat dec":"41","Dingbat hex":"29","Unicode dec":"9990","Unicode hex":"2706"},{"Typeface name":"Wingdings","Dingbat dec":"42","Dingbat hex":"2A","Unicode dec":"128386","Unicode hex":"1F582"},{"Typeface name":"Wingdings","Dingbat dec":"43","Dingbat hex":"2B","Unicode dec":"128387","Unicode hex":"1F583"},{"Typeface name":"Wingdings","Dingbat dec":"44","Dingbat hex":"2C","Unicode dec":"128234","Unicode hex":"1F4EA"},{"Typeface name":"Wingdings","Dingbat dec":"45","Dingbat hex":"2D","Unicode dec":"128235","Unicode hex":"1F4EB"},{"Typeface name":"Wingdings","Dingbat dec":"46","Dingbat hex":"2E","Unicode dec":"128236","Unicode hex":"1F4EC"},{"Typeface name":"Wingdings","Dingbat dec":"47","Dingbat hex":"2F","Unicode dec":"128237","Unicode hex":"1F4ED"},{"Typeface name":"Wingdings","Dingbat dec":"48","Dingbat hex":"30","Unicode dec":"128448","Unicode hex":"1F5C0"},{"Typeface name":"Wingdings","Dingbat dec":"49","Dingbat hex":"31","Unicode dec":"128449","Unicode hex":"1F5C1"},{"Typeface name":"Wingdings","Dingbat dec":"50","Dingbat hex":"32","Unicode dec":"128462","Unicode hex":"1F5CE"},{"Typeface name":"Wingdings","Dingbat dec":"51","Dingbat hex":"33","Unicode dec":"128463","Unicode hex":"1F5CF"},{"Typeface name":"Wingdings","Dingbat dec":"52","Dingbat hex":"34","Unicode dec":"128464","Unicode hex":"1F5D0"},{"Typeface name":"Wingdings","Dingbat dec":"53","Dingbat hex":"35","Unicode dec":"128452","Unicode hex":"1F5C4"},{"Typeface name":"Wingdings","Dingbat dec":"54","Dingbat hex":"36","Unicode dec":"8987","Unicode hex":"231B"},{"Typeface name":"Wingdings","Dingbat dec":"55","Dingbat hex":"37","Unicode dec":"128430","Unicode hex":"1F5AE"},{"Typeface name":"Wingdings","Dingbat dec":"56","Dingbat hex":"38","Unicode dec":"128432","Unicode hex":"1F5B0"},{"Typeface name":"Wingdings","Dingbat dec":"57","Dingbat hex":"39","Unicode dec":"128434","Unicode hex":"1F5B2"},{"Typeface name":"Wingdings","Dingbat dec":"58","Dingbat hex":"3A","Unicode dec":"128435","Unicode hex":"1F5B3"},{"Typeface name":"Wingdings","Dingbat dec":"59","Dingbat hex":"3B","Unicode dec":"128436","Unicode hex":"1F5B4"},{"Typeface name":"Wingdings","Dingbat dec":"60","Dingbat hex":"3C","Unicode dec":"128427","Unicode hex":"1F5AB"},{"Typeface name":"Wingdings","Dingbat dec":"61","Dingbat hex":"3D","Unicode dec":"128428","Unicode hex":"1F5AC"},{"Typeface name":"Wingdings","Dingbat dec":"62","Dingbat hex":"3E","Unicode dec":"9991","Unicode hex":"2707"},{"Typeface name":"Wingdings","Dingbat dec":"63","Dingbat hex":"3F","Unicode dec":"9997","Unicode hex":"270D"},{"Typeface name":"Wingdings","Dingbat dec":"64","Dingbat hex":"40","Unicode dec":"128398","Unicode hex":"1F58E"},{"Typeface name":"Wingdings","Dingbat dec":"65","Dingbat hex":"41","Unicode dec":"9996","Unicode hex":"270C"},{"Typeface name":"Wingdings","Dingbat dec":"66","Dingbat hex":"42","Unicode dec":"128399","Unicode hex":"1F58F"},{"Typeface name":"Wingdings","Dingbat dec":"67","Dingbat hex":"43","Unicode dec":"128077","Unicode hex":"1F44D"},{"Typeface name":"Wingdings","Dingbat dec":"68","Dingbat hex":"44","Unicode dec":"128078","Unicode hex":"1F44E"},{"Typeface name":"Wingdings","Dingbat dec":"69","Dingbat hex":"45","Unicode dec":"9756","Unicode hex":"261C"},{"Typeface name":"Wingdings","Dingbat dec":"70","Dingbat hex":"46","Unicode dec":"9758","Unicode hex":"261E"},{"Typeface name":"Wingdings","Dingbat dec":"71","Dingbat hex":"47","Unicode dec":"9757","Unicode hex":"261D"},{"Typeface name":"Wingdings","Dingbat dec":"72","Dingbat hex":"48","Unicode dec":"9759","Unicode hex":"261F"},{"Typeface name":"Wingdings","Dingbat dec":"73","Dingbat hex":"49","Unicode dec":"128400","Unicode hex":"1F590"},{"Typeface name":"Wingdings","Dingbat dec":"74","Dingbat hex":"4A","Unicode dec":"9786","Unicode hex":"263A"},{"Typeface name":"Wingdings","Dingbat dec":"75","Dingbat hex":"4B","Unicode dec":"128528","Unicode hex":"1F610"},{"Typeface name":"Wingdings","Dingbat dec":"76","Dingbat hex":"4C","Unicode dec":"9785","Unicode hex":"2639"},{"Typeface name":"Wingdings","Dingbat dec":"77","Dingbat hex":"4D","Unicode dec":"128163","Unicode hex":"1F4A3"},{"Typeface name":"Wingdings","Dingbat dec":"78","Dingbat hex":"4E","Unicode dec":"128369","Unicode hex":"1F571"},{"Typeface name":"Wingdings","Dingbat dec":"79","Dingbat hex":"4F","Unicode dec":"127987","Unicode hex":"1F3F3"},{"Typeface name":"Wingdings","Dingbat dec":"80","Dingbat hex":"50","Unicode dec":"127985","Unicode hex":"1F3F1"},{"Typeface name":"Wingdings","Dingbat dec":"81","Dingbat hex":"51","Unicode dec":"9992","Unicode hex":"2708"},{"Typeface name":"Wingdings","Dingbat dec":"82","Dingbat hex":"52","Unicode dec":"9788","Unicode hex":"263C"},{"Typeface name":"Wingdings","Dingbat dec":"83","Dingbat hex":"53","Unicode dec":"127778","Unicode hex":"1F322"},{"Typeface name":"Wingdings","Dingbat dec":"84","Dingbat hex":"54","Unicode dec":"10052","Unicode hex":"2744"},{"Typeface name":"Wingdings","Dingbat dec":"85","Dingbat hex":"55","Unicode dec":"128326","Unicode hex":"1F546"},{"Typeface name":"Wingdings","Dingbat dec":"86","Dingbat hex":"56","Unicode dec":"10014","Unicode hex":"271E"},{"Typeface name":"Wingdings","Dingbat dec":"87","Dingbat hex":"57","Unicode dec":"128328","Unicode hex":"1F548"},{"Typeface name":"Wingdings","Dingbat dec":"88","Dingbat hex":"58","Unicode dec":"10016","Unicode hex":"2720"},{"Typeface name":"Wingdings","Dingbat dec":"89","Dingbat hex":"59","Unicode dec":"10017","Unicode hex":"2721"},{"Typeface name":"Wingdings","Dingbat dec":"90","Dingbat hex":"5A","Unicode dec":"9770","Unicode hex":"262A"},{"Typeface name":"Wingdings","Dingbat dec":"91","Dingbat hex":"5B","Unicode dec":"9775","Unicode hex":"262F"},{"Typeface name":"Wingdings","Dingbat dec":"92","Dingbat hex":"5C","Unicode dec":"128329","Unicode hex":"1F549"},{"Typeface name":"Wingdings","Dingbat dec":"93","Dingbat hex":"5D","Unicode dec":"9784","Unicode hex":"2638"},{"Typeface name":"Wingdings","Dingbat dec":"94","Dingbat hex":"5E","Unicode dec":"9800","Unicode hex":"2648"},{"Typeface name":"Wingdings","Dingbat dec":"95","Dingbat hex":"5F","Unicode dec":"9801","Unicode hex":"2649"},{"Typeface name":"Wingdings","Dingbat dec":"96","Dingbat hex":"60","Unicode dec":"9802","Unicode hex":"264A"},{"Typeface name":"Wingdings","Dingbat dec":"97","Dingbat hex":"61","Unicode dec":"9803","Unicode hex":"264B"},{"Typeface name":"Wingdings","Dingbat dec":"98","Dingbat hex":"62","Unicode dec":"9804","Unicode hex":"264C"},{"Typeface name":"Wingdings","Dingbat dec":"99","Dingbat hex":"63","Unicode dec":"9805","Unicode hex":"264D"},{"Typeface name":"Wingdings","Dingbat dec":"100","Dingbat hex":"64","Unicode dec":"9806","Unicode hex":"264E"},{"Typeface name":"Wingdings","Dingbat dec":"101","Dingbat hex":"65","Unicode dec":"9807","Unicode hex":"264F"},{"Typeface name":"Wingdings","Dingbat dec":"102","Dingbat hex":"66","Unicode dec":"9808","Unicode hex":"2650"},{"Typeface name":"Wingdings","Dingbat dec":"103","Dingbat hex":"67","Unicode dec":"9809","Unicode hex":"2651"},{"Typeface name":"Wingdings","Dingbat dec":"104","Dingbat hex":"68","Unicode dec":"9810","Unicode hex":"2652"},{"Typeface name":"Wingdings","Dingbat dec":"105","Dingbat hex":"69","Unicode dec":"9811","Unicode hex":"2653"},{"Typeface name":"Wingdings","Dingbat dec":"106","Dingbat hex":"6A","Unicode dec":"128624","Unicode hex":"1F670"},{"Typeface name":"Wingdings","Dingbat dec":"107","Dingbat hex":"6B","Unicode dec":"128629","Unicode hex":"1F675"},{"Typeface name":"Wingdings","Dingbat dec":"108","Dingbat hex":"6C","Unicode dec":"9899","Unicode hex":"26AB"},{"Typeface name":"Wingdings","Dingbat dec":"109","Dingbat hex":"6D","Unicode dec":"128318","Unicode hex":"1F53E"},{"Typeface name":"Wingdings","Dingbat dec":"110","Dingbat hex":"6E","Unicode dec":"9724","Unicode hex":"25FC"},{"Typeface name":"Wingdings","Dingbat dec":"111","Dingbat hex":"6F","Unicode dec":"128911","Unicode hex":"1F78F"},{"Typeface name":"Wingdings","Dingbat dec":"112","Dingbat hex":"70","Unicode dec":"128912","Unicode hex":"1F790"},{"Typeface name":"Wingdings","Dingbat dec":"113","Dingbat hex":"71","Unicode dec":"10065","Unicode hex":"2751"},{"Typeface name":"Wingdings","Dingbat dec":"114","Dingbat hex":"72","Unicode dec":"10066","Unicode hex":"2752"},{"Typeface name":"Wingdings","Dingbat dec":"115","Dingbat hex":"73","Unicode dec":"128927","Unicode hex":"1F79F"},{"Typeface name":"Wingdings","Dingbat dec":"116","Dingbat hex":"74","Unicode dec":"10731","Unicode hex":"29EB"},{"Typeface name":"Wingdings","Dingbat dec":"117","Dingbat hex":"75","Unicode dec":"9670","Unicode hex":"25C6"},{"Typeface name":"Wingdings","Dingbat dec":"118","Dingbat hex":"76","Unicode dec":"10070","Unicode hex":"2756"},{"Typeface name":"Wingdings","Dingbat dec":"119","Dingbat hex":"77","Unicode dec":"11049","Unicode hex":"2B29"},{"Typeface name":"Wingdings","Dingbat dec":"120","Dingbat hex":"78","Unicode dec":"8999","Unicode hex":"2327"},{"Typeface name":"Wingdings","Dingbat dec":"121","Dingbat hex":"79","Unicode dec":"11193","Unicode hex":"2BB9"},{"Typeface name":"Wingdings","Dingbat dec":"122","Dingbat hex":"7A","Unicode dec":"8984","Unicode hex":"2318"},{"Typeface name":"Wingdings","Dingbat dec":"123","Dingbat hex":"7B","Unicode dec":"127989","Unicode hex":"1F3F5"},{"Typeface name":"Wingdings","Dingbat dec":"124","Dingbat hex":"7C","Unicode dec":"127990","Unicode hex":"1F3F6"},{"Typeface name":"Wingdings","Dingbat dec":"125","Dingbat hex":"7D","Unicode dec":"128630","Unicode hex":"1F676"},{"Typeface name":"Wingdings","Dingbat dec":"126","Dingbat hex":"7E","Unicode dec":"128631","Unicode hex":"1F677"},{"Typeface name":"Wingdings","Dingbat dec":"127","Dingbat hex":"7F","Unicode dec":"9647","Unicode hex":"25AF"},{"Typeface name":"Wingdings","Dingbat dec":"128","Dingbat hex":"80","Unicode dec":"127243","Unicode hex":"1F10B"},{"Typeface name":"Wingdings","Dingbat dec":"129","Dingbat hex":"81","Unicode dec":"10112","Unicode hex":"2780"},{"Typeface name":"Wingdings","Dingbat dec":"130","Dingbat hex":"82","Unicode dec":"10113","Unicode hex":"2781"},{"Typeface name":"Wingdings","Dingbat dec":"131","Dingbat hex":"83","Unicode dec":"10114","Unicode hex":"2782"},{"Typeface name":"Wingdings","Dingbat dec":"132","Dingbat hex":"84","Unicode dec":"10115","Unicode hex":"2783"},{"Typeface name":"Wingdings","Dingbat dec":"133","Dingbat hex":"85","Unicode dec":"10116","Unicode hex":"2784"},{"Typeface name":"Wingdings","Dingbat dec":"134","Dingbat hex":"86","Unicode dec":"10117","Unicode hex":"2785"},{"Typeface name":"Wingdings","Dingbat dec":"135","Dingbat hex":"87","Unicode dec":"10118","Unicode hex":"2786"},{"Typeface name":"Wingdings","Dingbat dec":"136","Dingbat hex":"88","Unicode dec":"10119","Unicode hex":"2787"},{"Typeface name":"Wingdings","Dingbat dec":"137","Dingbat hex":"89","Unicode dec":"10120","Unicode hex":"2788"},{"Typeface name":"Wingdings","Dingbat dec":"138","Dingbat hex":"8A","Unicode dec":"10121","Unicode hex":"2789"},{"Typeface name":"Wingdings","Dingbat dec":"139","Dingbat hex":"8B","Unicode dec":"127244","Unicode hex":"1F10C"},{"Typeface name":"Wingdings","Dingbat dec":"140","Dingbat hex":"8C","Unicode dec":"10122","Unicode hex":"278A"},{"Typeface name":"Wingdings","Dingbat dec":"141","Dingbat hex":"8D","Unicode dec":"10123","Unicode hex":"278B"},{"Typeface name":"Wingdings","Dingbat dec":"142","Dingbat hex":"8E","Unicode dec":"10124","Unicode hex":"278C"},{"Typeface name":"Wingdings","Dingbat dec":"143","Dingbat hex":"8F","Unicode dec":"10125","Unicode hex":"278D"},{"Typeface name":"Wingdings","Dingbat dec":"144","Dingbat hex":"90","Unicode dec":"10126","Unicode hex":"278E"},{"Typeface name":"Wingdings","Dingbat dec":"145","Dingbat hex":"91","Unicode dec":"10127","Unicode hex":"278F"},{"Typeface name":"Wingdings","Dingbat dec":"146","Dingbat hex":"92","Unicode dec":"10128","Unicode hex":"2790"},{"Typeface name":"Wingdings","Dingbat dec":"147","Dingbat hex":"93","Unicode dec":"10129","Unicode hex":"2791"},{"Typeface name":"Wingdings","Dingbat dec":"148","Dingbat hex":"94","Unicode dec":"10130","Unicode hex":"2792"},{"Typeface name":"Wingdings","Dingbat dec":"149","Dingbat hex":"95","Unicode dec":"10131","Unicode hex":"2793"},{"Typeface name":"Wingdings","Dingbat dec":"150","Dingbat hex":"96","Unicode dec":"128610","Unicode hex":"1F662"},{"Typeface name":"Wingdings","Dingbat dec":"151","Dingbat hex":"97","Unicode dec":"128608","Unicode hex":"1F660"},{"Typeface name":"Wingdings","Dingbat dec":"152","Dingbat hex":"98","Unicode dec":"128609","Unicode hex":"1F661"},{"Typeface name":"Wingdings","Dingbat dec":"153","Dingbat hex":"99","Unicode dec":"128611","Unicode hex":"1F663"},{"Typeface name":"Wingdings","Dingbat dec":"154","Dingbat hex":"9A","Unicode dec":"128606","Unicode hex":"1F65E"},{"Typeface name":"Wingdings","Dingbat dec":"155","Dingbat hex":"9B","Unicode dec":"128604","Unicode hex":"1F65C"},{"Typeface name":"Wingdings","Dingbat dec":"156","Dingbat hex":"9C","Unicode dec":"128605","Unicode hex":"1F65D"},{"Typeface name":"Wingdings","Dingbat dec":"157","Dingbat hex":"9D","Unicode dec":"128607","Unicode hex":"1F65F"},{"Typeface name":"Wingdings","Dingbat dec":"158","Dingbat hex":"9E","Unicode dec":"8729","Unicode hex":"2219"},{"Typeface name":"Wingdings","Dingbat dec":"159","Dingbat hex":"9F","Unicode dec":"8226","Unicode hex":"2022"},{"Typeface name":"Wingdings","Dingbat dec":"160","Dingbat hex":"A0","Unicode dec":"11037","Unicode hex":"2B1D"},{"Typeface name":"Wingdings","Dingbat dec":"161","Dingbat hex":"A1","Unicode dec":"11096","Unicode hex":"2B58"},{"Typeface name":"Wingdings","Dingbat dec":"162","Dingbat hex":"A2","Unicode dec":"128902","Unicode hex":"1F786"},{"Typeface name":"Wingdings","Dingbat dec":"163","Dingbat hex":"A3","Unicode dec":"128904","Unicode hex":"1F788"},{"Typeface name":"Wingdings","Dingbat dec":"164","Dingbat hex":"A4","Unicode dec":"128906","Unicode hex":"1F78A"},{"Typeface name":"Wingdings","Dingbat dec":"165","Dingbat hex":"A5","Unicode dec":"128907","Unicode hex":"1F78B"},{"Typeface name":"Wingdings","Dingbat dec":"166","Dingbat hex":"A6","Unicode dec":"128319","Unicode hex":"1F53F"},{"Typeface name":"Wingdings","Dingbat dec":"167","Dingbat hex":"A7","Unicode dec":"9642","Unicode hex":"25AA"},{"Typeface name":"Wingdings","Dingbat dec":"168","Dingbat hex":"A8","Unicode dec":"128910","Unicode hex":"1F78E"},{"Typeface name":"Wingdings","Dingbat dec":"169","Dingbat hex":"A9","Unicode dec":"128961","Unicode hex":"1F7C1"},{"Typeface name":"Wingdings","Dingbat dec":"170","Dingbat hex":"AA","Unicode dec":"128965","Unicode hex":"1F7C5"},{"Typeface name":"Wingdings","Dingbat dec":"171","Dingbat hex":"AB","Unicode dec":"9733","Unicode hex":"2605"},{"Typeface name":"Wingdings","Dingbat dec":"172","Dingbat hex":"AC","Unicode dec":"128971","Unicode hex":"1F7CB"},{"Typeface name":"Wingdings","Dingbat dec":"173","Dingbat hex":"AD","Unicode dec":"128975","Unicode hex":"1F7CF"},{"Typeface name":"Wingdings","Dingbat dec":"174","Dingbat hex":"AE","Unicode dec":"128979","Unicode hex":"1F7D3"},{"Typeface name":"Wingdings","Dingbat dec":"175","Dingbat hex":"AF","Unicode dec":"128977","Unicode hex":"1F7D1"},{"Typeface name":"Wingdings","Dingbat dec":"176","Dingbat hex":"B0","Unicode dec":"11216","Unicode hex":"2BD0"},{"Typeface name":"Wingdings","Dingbat dec":"177","Dingbat hex":"B1","Unicode dec":"8982","Unicode hex":"2316"},{"Typeface name":"Wingdings","Dingbat dec":"178","Dingbat hex":"B2","Unicode dec":"11214","Unicode hex":"2BCE"},{"Typeface name":"Wingdings","Dingbat dec":"179","Dingbat hex":"B3","Unicode dec":"11215","Unicode hex":"2BCF"},{"Typeface name":"Wingdings","Dingbat dec":"180","Dingbat hex":"B4","Unicode dec":"11217","Unicode hex":"2BD1"},{"Typeface name":"Wingdings","Dingbat dec":"181","Dingbat hex":"B5","Unicode dec":"10026","Unicode hex":"272A"},{"Typeface name":"Wingdings","Dingbat dec":"182","Dingbat hex":"B6","Unicode dec":"10032","Unicode hex":"2730"},{"Typeface name":"Wingdings","Dingbat dec":"183","Dingbat hex":"B7","Unicode dec":"128336","Unicode hex":"1F550"},{"Typeface name":"Wingdings","Dingbat dec":"184","Dingbat hex":"B8","Unicode dec":"128337","Unicode hex":"1F551"},{"Typeface name":"Wingdings","Dingbat dec":"185","Dingbat hex":"B9","Unicode dec":"128338","Unicode hex":"1F552"},{"Typeface name":"Wingdings","Dingbat dec":"186","Dingbat hex":"BA","Unicode dec":"128339","Unicode hex":"1F553"},{"Typeface name":"Wingdings","Dingbat dec":"187","Dingbat hex":"BB","Unicode dec":"128340","Unicode hex":"1F554"},{"Typeface name":"Wingdings","Dingbat dec":"188","Dingbat hex":"BC","Unicode dec":"128341","Unicode hex":"1F555"},{"Typeface name":"Wingdings","Dingbat dec":"189","Dingbat hex":"BD","Unicode dec":"128342","Unicode hex":"1F556"},{"Typeface name":"Wingdings","Dingbat dec":"190","Dingbat hex":"BE","Unicode dec":"128343","Unicode hex":"1F557"},{"Typeface name":"Wingdings","Dingbat dec":"191","Dingbat hex":"BF","Unicode dec":"128344","Unicode hex":"1F558"},{"Typeface name":"Wingdings","Dingbat dec":"192","Dingbat hex":"C0","Unicode dec":"128345","Unicode hex":"1F559"},{"Typeface name":"Wingdings","Dingbat dec":"193","Dingbat hex":"C1","Unicode dec":"128346","Unicode hex":"1F55A"},{"Typeface name":"Wingdings","Dingbat dec":"194","Dingbat hex":"C2","Unicode dec":"128347","Unicode hex":"1F55B"},{"Typeface name":"Wingdings","Dingbat dec":"195","Dingbat hex":"C3","Unicode dec":"11184","Unicode hex":"2BB0"},{"Typeface name":"Wingdings","Dingbat dec":"196","Dingbat hex":"C4","Unicode dec":"11185","Unicode hex":"2BB1"},{"Typeface name":"Wingdings","Dingbat dec":"197","Dingbat hex":"C5","Unicode dec":"11186","Unicode hex":"2BB2"},{"Typeface name":"Wingdings","Dingbat dec":"198","Dingbat hex":"C6","Unicode dec":"11187","Unicode hex":"2BB3"},{"Typeface name":"Wingdings","Dingbat dec":"199","Dingbat hex":"C7","Unicode dec":"11188","Unicode hex":"2BB4"},{"Typeface name":"Wingdings","Dingbat dec":"200","Dingbat hex":"C8","Unicode dec":"11189","Unicode hex":"2BB5"},{"Typeface name":"Wingdings","Dingbat dec":"201","Dingbat hex":"C9","Unicode dec":"11190","Unicode hex":"2BB6"},{"Typeface name":"Wingdings","Dingbat dec":"202","Dingbat hex":"CA","Unicode dec":"11191","Unicode hex":"2BB7"},{"Typeface name":"Wingdings","Dingbat dec":"203","Dingbat hex":"CB","Unicode dec":"128618","Unicode hex":"1F66A"},{"Typeface name":"Wingdings","Dingbat dec":"204","Dingbat hex":"CC","Unicode dec":"128619","Unicode hex":"1F66B"},{"Typeface name":"Wingdings","Dingbat dec":"205","Dingbat hex":"CD","Unicode dec":"128597","Unicode hex":"1F655"},{"Typeface name":"Wingdings","Dingbat dec":"206","Dingbat hex":"CE","Unicode dec":"128596","Unicode hex":"1F654"},{"Typeface name":"Wingdings","Dingbat dec":"207","Dingbat hex":"CF","Unicode dec":"128599","Unicode hex":"1F657"},{"Typeface name":"Wingdings","Dingbat dec":"208","Dingbat hex":"D0","Unicode dec":"128598","Unicode hex":"1F656"},{"Typeface name":"Wingdings","Dingbat dec":"209","Dingbat hex":"D1","Unicode dec":"128592","Unicode hex":"1F650"},{"Typeface name":"Wingdings","Dingbat dec":"210","Dingbat hex":"D2","Unicode dec":"128593","Unicode hex":"1F651"},{"Typeface name":"Wingdings","Dingbat dec":"211","Dingbat hex":"D3","Unicode dec":"128594","Unicode hex":"1F652"},{"Typeface name":"Wingdings","Dingbat dec":"212","Dingbat hex":"D4","Unicode dec":"128595","Unicode hex":"1F653"},{"Typeface name":"Wingdings","Dingbat dec":"213","Dingbat hex":"D5","Unicode dec":"9003","Unicode hex":"232B"},{"Typeface name":"Wingdings","Dingbat dec":"214","Dingbat hex":"D6","Unicode dec":"8998","Unicode hex":"2326"},{"Typeface name":"Wingdings","Dingbat dec":"215","Dingbat hex":"D7","Unicode dec":"11160","Unicode hex":"2B98"},{"Typeface name":"Wingdings","Dingbat dec":"216","Dingbat hex":"D8","Unicode dec":"11162","Unicode hex":"2B9A"},{"Typeface name":"Wingdings","Dingbat dec":"217","Dingbat hex":"D9","Unicode dec":"11161","Unicode hex":"2B99"},{"Typeface name":"Wingdings","Dingbat dec":"218","Dingbat hex":"DA","Unicode dec":"11163","Unicode hex":"2B9B"},{"Typeface name":"Wingdings","Dingbat dec":"219","Dingbat hex":"DB","Unicode dec":"11144","Unicode hex":"2B88"},{"Typeface name":"Wingdings","Dingbat dec":"220","Dingbat hex":"DC","Unicode dec":"11146","Unicode hex":"2B8A"},{"Typeface name":"Wingdings","Dingbat dec":"221","Dingbat hex":"DD","Unicode dec":"11145","Unicode hex":"2B89"},{"Typeface name":"Wingdings","Dingbat dec":"222","Dingbat hex":"DE","Unicode dec":"11147","Unicode hex":"2B8B"},{"Typeface name":"Wingdings","Dingbat dec":"223","Dingbat hex":"DF","Unicode dec":"129128","Unicode hex":"1F868"},{"Typeface name":"Wingdings","Dingbat dec":"224","Dingbat hex":"E0","Unicode dec":"129130","Unicode hex":"1F86A"},{"Typeface name":"Wingdings","Dingbat dec":"225","Dingbat hex":"E1","Unicode dec":"129129","Unicode hex":"1F869"},{"Typeface name":"Wingdings","Dingbat dec":"226","Dingbat hex":"E2","Unicode dec":"129131","Unicode hex":"1F86B"},{"Typeface name":"Wingdings","Dingbat dec":"227","Dingbat hex":"E3","Unicode dec":"129132","Unicode hex":"1F86C"},{"Typeface name":"Wingdings","Dingbat dec":"228","Dingbat hex":"E4","Unicode dec":"129133","Unicode hex":"1F86D"},{"Typeface name":"Wingdings","Dingbat dec":"229","Dingbat hex":"E5","Unicode dec":"129135","Unicode hex":"1F86F"},{"Typeface name":"Wingdings","Dingbat dec":"230","Dingbat hex":"E6","Unicode dec":"129134","Unicode hex":"1F86E"},{"Typeface name":"Wingdings","Dingbat dec":"231","Dingbat hex":"E7","Unicode dec":"129144","Unicode hex":"1F878"},{"Typeface name":"Wingdings","Dingbat dec":"232","Dingbat hex":"E8","Unicode dec":"129146","Unicode hex":"1F87A"},{"Typeface name":"Wingdings","Dingbat dec":"233","Dingbat hex":"E9","Unicode dec":"129145","Unicode hex":"1F879"},{"Typeface name":"Wingdings","Dingbat dec":"234","Dingbat hex":"EA","Unicode dec":"129147","Unicode hex":"1F87B"},{"Typeface name":"Wingdings","Dingbat dec":"235","Dingbat hex":"EB","Unicode dec":"129148","Unicode hex":"1F87C"},{"Typeface name":"Wingdings","Dingbat dec":"236","Dingbat hex":"EC","Unicode dec":"129149","Unicode hex":"1F87D"},{"Typeface name":"Wingdings","Dingbat dec":"237","Dingbat hex":"ED","Unicode dec":"129151","Unicode hex":"1F87F"},{"Typeface name":"Wingdings","Dingbat dec":"238","Dingbat hex":"EE","Unicode dec":"129150","Unicode hex":"1F87E"},{"Typeface name":"Wingdings","Dingbat dec":"239","Dingbat hex":"EF","Unicode dec":"8678","Unicode hex":"21E6"},{"Typeface name":"Wingdings","Dingbat dec":"240","Dingbat hex":"F0","Unicode dec":"8680","Unicode hex":"21E8"},{"Typeface name":"Wingdings","Dingbat dec":"241","Dingbat hex":"F1","Unicode dec":"8679","Unicode hex":"21E7"},{"Typeface name":"Wingdings","Dingbat dec":"242","Dingbat hex":"F2","Unicode dec":"8681","Unicode hex":"21E9"},{"Typeface name":"Wingdings","Dingbat dec":"243","Dingbat hex":"F3","Unicode dec":"11012","Unicode hex":"2B04"},{"Typeface name":"Wingdings","Dingbat dec":"244","Dingbat hex":"F4","Unicode dec":"8691","Unicode hex":"21F3"},{"Typeface name":"Wingdings","Dingbat dec":"245","Dingbat hex":"F5","Unicode dec":"11009","Unicode hex":"2B01"},{"Typeface name":"Wingdings","Dingbat dec":"246","Dingbat hex":"F6","Unicode dec":"11008","Unicode hex":"2B00"},{"Typeface name":"Wingdings","Dingbat dec":"247","Dingbat hex":"F7","Unicode dec":"11011","Unicode hex":"2B03"},{"Typeface name":"Wingdings","Dingbat dec":"248","Dingbat hex":"F8","Unicode dec":"11010","Unicode hex":"2B02"},{"Typeface name":"Wingdings","Dingbat dec":"249","Dingbat hex":"F9","Unicode dec":"129196","Unicode hex":"1F8AC"},{"Typeface name":"Wingdings","Dingbat dec":"250","Dingbat hex":"FA","Unicode dec":"129197","Unicode hex":"1F8AD"},{"Typeface name":"Wingdings","Dingbat dec":"251","Dingbat hex":"FB","Unicode dec":"128502","Unicode hex":"1F5F6"},{"Typeface name":"Wingdings","Dingbat dec":"252","Dingbat hex":"FC","Unicode dec":"10003","Unicode hex":"2713"},{"Typeface name":"Wingdings","Dingbat dec":"253","Dingbat hex":"FD","Unicode dec":"128503","Unicode hex":"1F5F7"},{"Typeface name":"Wingdings","Dingbat dec":"254","Dingbat hex":"FE","Unicode dec":"128505","Unicode hex":"1F5F9"},{"Typeface name":"Wingdings 2","Dingbat dec":"32","Dingbat hex":"20","Unicode dec":"32","Unicode hex":"20"},{"Typeface name":"Wingdings 2","Dingbat dec":"33","Dingbat hex":"21","Unicode dec":"128394","Unicode hex":"1F58A"},{"Typeface name":"Wingdings 2","Dingbat dec":"34","Dingbat hex":"22","Unicode dec":"128395","Unicode hex":"1F58B"},{"Typeface name":"Wingdings 2","Dingbat dec":"35","Dingbat hex":"23","Unicode dec":"128396","Unicode hex":"1F58C"},{"Typeface name":"Wingdings 2","Dingbat dec":"36","Dingbat hex":"24","Unicode dec":"128397","Unicode hex":"1F58D"},{"Typeface name":"Wingdings 2","Dingbat dec":"37","Dingbat hex":"25","Unicode dec":"9988","Unicode hex":"2704"},{"Typeface name":"Wingdings 2","Dingbat dec":"38","Dingbat hex":"26","Unicode dec":"9984","Unicode hex":"2700"},{"Typeface name":"Wingdings 2","Dingbat dec":"39","Dingbat hex":"27","Unicode dec":"128382","Unicode hex":"1F57E"},{"Typeface name":"Wingdings 2","Dingbat dec":"40","Dingbat hex":"28","Unicode dec":"128381","Unicode hex":"1F57D"},{"Typeface name":"Wingdings 2","Dingbat dec":"41","Dingbat hex":"29","Unicode dec":"128453","Unicode hex":"1F5C5"},{"Typeface name":"Wingdings 2","Dingbat dec":"42","Dingbat hex":"2A","Unicode dec":"128454","Unicode hex":"1F5C6"},{"Typeface name":"Wingdings 2","Dingbat dec":"43","Dingbat hex":"2B","Unicode dec":"128455","Unicode hex":"1F5C7"},{"Typeface name":"Wingdings 2","Dingbat dec":"44","Dingbat hex":"2C","Unicode dec":"128456","Unicode hex":"1F5C8"},{"Typeface name":"Wingdings 2","Dingbat dec":"45","Dingbat hex":"2D","Unicode dec":"128457","Unicode hex":"1F5C9"},{"Typeface name":"Wingdings 2","Dingbat dec":"46","Dingbat hex":"2E","Unicode dec":"128458","Unicode hex":"1F5CA"},{"Typeface name":"Wingdings 2","Dingbat dec":"47","Dingbat hex":"2F","Unicode dec":"128459","Unicode hex":"1F5CB"},{"Typeface name":"Wingdings 2","Dingbat dec":"48","Dingbat hex":"30","Unicode dec":"128460","Unicode hex":"1F5CC"},{"Typeface name":"Wingdings 2","Dingbat dec":"49","Dingbat hex":"31","Unicode dec":"128461","Unicode hex":"1F5CD"},{"Typeface name":"Wingdings 2","Dingbat dec":"50","Dingbat hex":"32","Unicode dec":"128203","Unicode hex":"1F4CB"},{"Typeface name":"Wingdings 2","Dingbat dec":"51","Dingbat hex":"33","Unicode dec":"128465","Unicode hex":"1F5D1"},{"Typeface name":"Wingdings 2","Dingbat dec":"52","Dingbat hex":"34","Unicode dec":"128468","Unicode hex":"1F5D4"},{"Typeface name":"Wingdings 2","Dingbat dec":"53","Dingbat hex":"35","Unicode dec":"128437","Unicode hex":"1F5B5"},{"Typeface name":"Wingdings 2","Dingbat dec":"54","Dingbat hex":"36","Unicode dec":"128438","Unicode hex":"1F5B6"},{"Typeface name":"Wingdings 2","Dingbat dec":"55","Dingbat hex":"37","Unicode dec":"128439","Unicode hex":"1F5B7"},{"Typeface name":"Wingdings 2","Dingbat dec":"56","Dingbat hex":"38","Unicode dec":"128440","Unicode hex":"1F5B8"},{"Typeface name":"Wingdings 2","Dingbat dec":"57","Dingbat hex":"39","Unicode dec":"128429","Unicode hex":"1F5AD"},{"Typeface name":"Wingdings 2","Dingbat dec":"58","Dingbat hex":"3A","Unicode dec":"128431","Unicode hex":"1F5AF"},{"Typeface name":"Wingdings 2","Dingbat dec":"59","Dingbat hex":"3B","Unicode dec":"128433","Unicode hex":"1F5B1"},{"Typeface name":"Wingdings 2","Dingbat dec":"60","Dingbat hex":"3C","Unicode dec":"128402","Unicode hex":"1F592"},{"Typeface name":"Wingdings 2","Dingbat dec":"61","Dingbat hex":"3D","Unicode dec":"128403","Unicode hex":"1F593"},{"Typeface name":"Wingdings 2","Dingbat dec":"62","Dingbat hex":"3E","Unicode dec":"128408","Unicode hex":"1F598"},{"Typeface name":"Wingdings 2","Dingbat dec":"63","Dingbat hex":"3F","Unicode dec":"128409","Unicode hex":"1F599"},{"Typeface name":"Wingdings 2","Dingbat dec":"64","Dingbat hex":"40","Unicode dec":"128410","Unicode hex":"1F59A"},{"Typeface name":"Wingdings 2","Dingbat dec":"65","Dingbat hex":"41","Unicode dec":"128411","Unicode hex":"1F59B"},{"Typeface name":"Wingdings 2","Dingbat dec":"66","Dingbat hex":"42","Unicode dec":"128072","Unicode hex":"1F448"},{"Typeface name":"Wingdings 2","Dingbat dec":"67","Dingbat hex":"43","Unicode dec":"128073","Unicode hex":"1F449"},{"Typeface name":"Wingdings 2","Dingbat dec":"68","Dingbat hex":"44","Unicode dec":"128412","Unicode hex":"1F59C"},{"Typeface name":"Wingdings 2","Dingbat dec":"69","Dingbat hex":"45","Unicode dec":"128413","Unicode hex":"1F59D"},{"Typeface name":"Wingdings 2","Dingbat dec":"70","Dingbat hex":"46","Unicode dec":"128414","Unicode hex":"1F59E"},{"Typeface name":"Wingdings 2","Dingbat dec":"71","Dingbat hex":"47","Unicode dec":"128415","Unicode hex":"1F59F"},{"Typeface name":"Wingdings 2","Dingbat dec":"72","Dingbat hex":"48","Unicode dec":"128416","Unicode hex":"1F5A0"},{"Typeface name":"Wingdings 2","Dingbat dec":"73","Dingbat hex":"49","Unicode dec":"128417","Unicode hex":"1F5A1"},{"Typeface name":"Wingdings 2","Dingbat dec":"74","Dingbat hex":"4A","Unicode dec":"128070","Unicode hex":"1F446"},{"Typeface name":"Wingdings 2","Dingbat dec":"75","Dingbat hex":"4B","Unicode dec":"128071","Unicode hex":"1F447"},{"Typeface name":"Wingdings 2","Dingbat dec":"76","Dingbat hex":"4C","Unicode dec":"128418","Unicode hex":"1F5A2"},{"Typeface name":"Wingdings 2","Dingbat dec":"77","Dingbat hex":"4D","Unicode dec":"128419","Unicode hex":"1F5A3"},{"Typeface name":"Wingdings 2","Dingbat dec":"78","Dingbat hex":"4E","Unicode dec":"128401","Unicode hex":"1F591"},{"Typeface name":"Wingdings 2","Dingbat dec":"79","Dingbat hex":"4F","Unicode dec":"128500","Unicode hex":"1F5F4"},{"Typeface name":"Wingdings 2","Dingbat dec":"80","Dingbat hex":"50","Unicode dec":"128504","Unicode hex":"1F5F8"},{"Typeface name":"Wingdings 2","Dingbat dec":"81","Dingbat hex":"51","Unicode dec":"128501","Unicode hex":"1F5F5"},{"Typeface name":"Wingdings 2","Dingbat dec":"82","Dingbat hex":"52","Unicode dec":"9745","Unicode hex":"2611"},{"Typeface name":"Wingdings 2","Dingbat dec":"83","Dingbat hex":"53","Unicode dec":"11197","Unicode hex":"2BBD"},{"Typeface name":"Wingdings 2","Dingbat dec":"84","Dingbat hex":"54","Unicode dec":"9746","Unicode hex":"2612"},{"Typeface name":"Wingdings 2","Dingbat dec":"85","Dingbat hex":"55","Unicode dec":"11198","Unicode hex":"2BBE"},{"Typeface name":"Wingdings 2","Dingbat dec":"86","Dingbat hex":"56","Unicode dec":"11199","Unicode hex":"2BBF"},{"Typeface name":"Wingdings 2","Dingbat dec":"87","Dingbat hex":"57","Unicode dec":"128711","Unicode hex":"1F6C7"},{"Typeface name":"Wingdings 2","Dingbat dec":"88","Dingbat hex":"58","Unicode dec":"10680","Unicode hex":"29B8"},{"Typeface name":"Wingdings 2","Dingbat dec":"89","Dingbat hex":"59","Unicode dec":"128625","Unicode hex":"1F671"},{"Typeface name":"Wingdings 2","Dingbat dec":"90","Dingbat hex":"5A","Unicode dec":"128628","Unicode hex":"1F674"},{"Typeface name":"Wingdings 2","Dingbat dec":"91","Dingbat hex":"5B","Unicode dec":"128626","Unicode hex":"1F672"},{"Typeface name":"Wingdings 2","Dingbat dec":"92","Dingbat hex":"5C","Unicode dec":"128627","Unicode hex":"1F673"},{"Typeface name":"Wingdings 2","Dingbat dec":"93","Dingbat hex":"5D","Unicode dec":"8253","Unicode hex":"203D"},{"Typeface name":"Wingdings 2","Dingbat dec":"94","Dingbat hex":"5E","Unicode dec":"128633","Unicode hex":"1F679"},{"Typeface name":"Wingdings 2","Dingbat dec":"95","Dingbat hex":"5F","Unicode dec":"128634","Unicode hex":"1F67A"},{"Typeface name":"Wingdings 2","Dingbat dec":"96","Dingbat hex":"60","Unicode dec":"128635","Unicode hex":"1F67B"},{"Typeface name":"Wingdings 2","Dingbat dec":"97","Dingbat hex":"61","Unicode dec":"128614","Unicode hex":"1F666"},{"Typeface name":"Wingdings 2","Dingbat dec":"98","Dingbat hex":"62","Unicode dec":"128612","Unicode hex":"1F664"},{"Typeface name":"Wingdings 2","Dingbat dec":"99","Dingbat hex":"63","Unicode dec":"128613","Unicode hex":"1F665"},{"Typeface name":"Wingdings 2","Dingbat dec":"100","Dingbat hex":"64","Unicode dec":"128615","Unicode hex":"1F667"},{"Typeface name":"Wingdings 2","Dingbat dec":"101","Dingbat hex":"65","Unicode dec":"128602","Unicode hex":"1F65A"},{"Typeface name":"Wingdings 2","Dingbat dec":"102","Dingbat hex":"66","Unicode dec":"128600","Unicode hex":"1F658"},{"Typeface name":"Wingdings 2","Dingbat dec":"103","Dingbat hex":"67","Unicode dec":"128601","Unicode hex":"1F659"},{"Typeface name":"Wingdings 2","Dingbat dec":"104","Dingbat hex":"68","Unicode dec":"128603","Unicode hex":"1F65B"},{"Typeface name":"Wingdings 2","Dingbat dec":"105","Dingbat hex":"69","Unicode dec":"9450","Unicode hex":"24EA"},{"Typeface name":"Wingdings 2","Dingbat dec":"106","Dingbat hex":"6A","Unicode dec":"9312","Unicode hex":"2460"},{"Typeface name":"Wingdings 2","Dingbat dec":"107","Dingbat hex":"6B","Unicode dec":"9313","Unicode hex":"2461"},{"Typeface name":"Wingdings 2","Dingbat dec":"108","Dingbat hex":"6C","Unicode dec":"9314","Unicode hex":"2462"},{"Typeface name":"Wingdings 2","Dingbat dec":"109","Dingbat hex":"6D","Unicode dec":"9315","Unicode hex":"2463"},{"Typeface name":"Wingdings 2","Dingbat dec":"110","Dingbat hex":"6E","Unicode dec":"9316","Unicode hex":"2464"},{"Typeface name":"Wingdings 2","Dingbat dec":"111","Dingbat hex":"6F","Unicode dec":"9317","Unicode hex":"2465"},{"Typeface name":"Wingdings 2","Dingbat dec":"112","Dingbat hex":"70","Unicode dec":"9318","Unicode hex":"2466"},{"Typeface name":"Wingdings 2","Dingbat dec":"113","Dingbat hex":"71","Unicode dec":"9319","Unicode hex":"2467"},{"Typeface name":"Wingdings 2","Dingbat dec":"114","Dingbat hex":"72","Unicode dec":"9320","Unicode hex":"2468"},{"Typeface name":"Wingdings 2","Dingbat dec":"115","Dingbat hex":"73","Unicode dec":"9321","Unicode hex":"2469"},{"Typeface name":"Wingdings 2","Dingbat dec":"116","Dingbat hex":"74","Unicode dec":"9471","Unicode hex":"24FF"},{"Typeface name":"Wingdings 2","Dingbat dec":"117","Dingbat hex":"75","Unicode dec":"10102","Unicode hex":"2776"},{"Typeface name":"Wingdings 2","Dingbat dec":"118","Dingbat hex":"76","Unicode dec":"10103","Unicode hex":"2777"},{"Typeface name":"Wingdings 2","Dingbat dec":"119","Dingbat hex":"77","Unicode dec":"10104","Unicode hex":"2778"},{"Typeface name":"Wingdings 2","Dingbat dec":"120","Dingbat hex":"78","Unicode dec":"10105","Unicode hex":"2779"},{"Typeface name":"Wingdings 2","Dingbat dec":"121","Dingbat hex":"79","Unicode dec":"10106","Unicode hex":"277A"},{"Typeface name":"Wingdings 2","Dingbat dec":"122","Dingbat hex":"7A","Unicode dec":"10107","Unicode hex":"277B"},{"Typeface name":"Wingdings 2","Dingbat dec":"123","Dingbat hex":"7B","Unicode dec":"10108","Unicode hex":"277C"},{"Typeface name":"Wingdings 2","Dingbat dec":"124","Dingbat hex":"7C","Unicode dec":"10109","Unicode hex":"277D"},{"Typeface name":"Wingdings 2","Dingbat dec":"125","Dingbat hex":"7D","Unicode dec":"10110","Unicode hex":"277E"},{"Typeface name":"Wingdings 2","Dingbat dec":"126","Dingbat hex":"7E","Unicode dec":"10111","Unicode hex":"277F"},{"Typeface name":"Wingdings 2","Dingbat dec":"128","Dingbat hex":"80","Unicode dec":"9737","Unicode hex":"2609"},{"Typeface name":"Wingdings 2","Dingbat dec":"129","Dingbat hex":"81","Unicode dec":"127765","Unicode hex":"1F315"},{"Typeface name":"Wingdings 2","Dingbat dec":"130","Dingbat hex":"82","Unicode dec":"9789","Unicode hex":"263D"},{"Typeface name":"Wingdings 2","Dingbat dec":"131","Dingbat hex":"83","Unicode dec":"9790","Unicode hex":"263E"},{"Typeface name":"Wingdings 2","Dingbat dec":"132","Dingbat hex":"84","Unicode dec":"11839","Unicode hex":"2E3F"},{"Typeface name":"Wingdings 2","Dingbat dec":"133","Dingbat hex":"85","Unicode dec":"10013","Unicode hex":"271D"},{"Typeface name":"Wingdings 2","Dingbat dec":"134","Dingbat hex":"86","Unicode dec":"128327","Unicode hex":"1F547"},{"Typeface name":"Wingdings 2","Dingbat dec":"135","Dingbat hex":"87","Unicode dec":"128348","Unicode hex":"1F55C"},{"Typeface name":"Wingdings 2","Dingbat dec":"136","Dingbat hex":"88","Unicode dec":"128349","Unicode hex":"1F55D"},{"Typeface name":"Wingdings 2","Dingbat dec":"137","Dingbat hex":"89","Unicode dec":"128350","Unicode hex":"1F55E"},{"Typeface name":"Wingdings 2","Dingbat dec":"138","Dingbat hex":"8A","Unicode dec":"128351","Unicode hex":"1F55F"},{"Typeface name":"Wingdings 2","Dingbat dec":"139","Dingbat hex":"8B","Unicode dec":"128352","Unicode hex":"1F560"},{"Typeface name":"Wingdings 2","Dingbat dec":"140","Dingbat hex":"8C","Unicode dec":"128353","Unicode hex":"1F561"},{"Typeface name":"Wingdings 2","Dingbat dec":"141","Dingbat hex":"8D","Unicode dec":"128354","Unicode hex":"1F562"},{"Typeface name":"Wingdings 2","Dingbat dec":"142","Dingbat hex":"8E","Unicode dec":"128355","Unicode hex":"1F563"},{"Typeface name":"Wingdings 2","Dingbat dec":"143","Dingbat hex":"8F","Unicode dec":"128356","Unicode hex":"1F564"},{"Typeface name":"Wingdings 2","Dingbat dec":"144","Dingbat hex":"90","Unicode dec":"128357","Unicode hex":"1F565"},{"Typeface name":"Wingdings 2","Dingbat dec":"145","Dingbat hex":"91","Unicode dec":"128358","Unicode hex":"1F566"},{"Typeface name":"Wingdings 2","Dingbat dec":"146","Dingbat hex":"92","Unicode dec":"128359","Unicode hex":"1F567"},{"Typeface name":"Wingdings 2","Dingbat dec":"147","Dingbat hex":"93","Unicode dec":"128616","Unicode hex":"1F668"},{"Typeface name":"Wingdings 2","Dingbat dec":"148","Dingbat hex":"94","Unicode dec":"128617","Unicode hex":"1F669"},{"Typeface name":"Wingdings 2","Dingbat dec":"149","Dingbat hex":"95","Unicode dec":"8901","Unicode hex":"22C5"},{"Typeface name":"Wingdings 2","Dingbat dec":"150","Dingbat hex":"96","Unicode dec":"128900","Unicode hex":"1F784"},{"Typeface name":"Wingdings 2","Dingbat dec":"151","Dingbat hex":"97","Unicode dec":"10625","Unicode hex":"2981"},{"Typeface name":"Wingdings 2","Dingbat dec":"152","Dingbat hex":"98","Unicode dec":"9679","Unicode hex":"25CF"},{"Typeface name":"Wingdings 2","Dingbat dec":"153","Dingbat hex":"99","Unicode dec":"9675","Unicode hex":"25CB"},{"Typeface name":"Wingdings 2","Dingbat dec":"154","Dingbat hex":"9A","Unicode dec":"128901","Unicode hex":"1F785"},{"Typeface name":"Wingdings 2","Dingbat dec":"155","Dingbat hex":"9B","Unicode dec":"128903","Unicode hex":"1F787"},{"Typeface name":"Wingdings 2","Dingbat dec":"156","Dingbat hex":"9C","Unicode dec":"128905","Unicode hex":"1F789"},{"Typeface name":"Wingdings 2","Dingbat dec":"157","Dingbat hex":"9D","Unicode dec":"8857","Unicode hex":"2299"},{"Typeface name":"Wingdings 2","Dingbat dec":"158","Dingbat hex":"9E","Unicode dec":"10687","Unicode hex":"29BF"},{"Typeface name":"Wingdings 2","Dingbat dec":"159","Dingbat hex":"9F","Unicode dec":"128908","Unicode hex":"1F78C"},{"Typeface name":"Wingdings 2","Dingbat dec":"160","Dingbat hex":"A0","Unicode dec":"128909","Unicode hex":"1F78D"},{"Typeface name":"Wingdings 2","Dingbat dec":"161","Dingbat hex":"A1","Unicode dec":"9726","Unicode hex":"25FE"},{"Typeface name":"Wingdings 2","Dingbat dec":"162","Dingbat hex":"A2","Unicode dec":"9632","Unicode hex":"25A0"},{"Typeface name":"Wingdings 2","Dingbat dec":"163","Dingbat hex":"A3","Unicode dec":"9633","Unicode hex":"25A1"},{"Typeface name":"Wingdings 2","Dingbat dec":"164","Dingbat hex":"A4","Unicode dec":"128913","Unicode hex":"1F791"},{"Typeface name":"Wingdings 2","Dingbat dec":"165","Dingbat hex":"A5","Unicode dec":"128914","Unicode hex":"1F792"},{"Typeface name":"Wingdings 2","Dingbat dec":"166","Dingbat hex":"A6","Unicode dec":"128915","Unicode hex":"1F793"},{"Typeface name":"Wingdings 2","Dingbat dec":"167","Dingbat hex":"A7","Unicode dec":"128916","Unicode hex":"1F794"},{"Typeface name":"Wingdings 2","Dingbat dec":"168","Dingbat hex":"A8","Unicode dec":"9635","Unicode hex":"25A3"},{"Typeface name":"Wingdings 2","Dingbat dec":"169","Dingbat hex":"A9","Unicode dec":"128917","Unicode hex":"1F795"},{"Typeface name":"Wingdings 2","Dingbat dec":"170","Dingbat hex":"AA","Unicode dec":"128918","Unicode hex":"1F796"},{"Typeface name":"Wingdings 2","Dingbat dec":"171","Dingbat hex":"AB","Unicode dec":"128919","Unicode hex":"1F797"},{"Typeface name":"Wingdings 2","Dingbat dec":"172","Dingbat hex":"AC","Unicode dec":"128920","Unicode hex":"1F798"},{"Typeface name":"Wingdings 2","Dingbat dec":"173","Dingbat hex":"AD","Unicode dec":"11049","Unicode hex":"2B29"},{"Typeface name":"Wingdings 2","Dingbat dec":"174","Dingbat hex":"AE","Unicode dec":"11045","Unicode hex":"2B25"},{"Typeface name":"Wingdings 2","Dingbat dec":"175","Dingbat hex":"AF","Unicode dec":"9671","Unicode hex":"25C7"},{"Typeface name":"Wingdings 2","Dingbat dec":"176","Dingbat hex":"B0","Unicode dec":"128922","Unicode hex":"1F79A"},{"Typeface name":"Wingdings 2","Dingbat dec":"177","Dingbat hex":"B1","Unicode dec":"9672","Unicode hex":"25C8"},{"Typeface name":"Wingdings 2","Dingbat dec":"178","Dingbat hex":"B2","Unicode dec":"128923","Unicode hex":"1F79B"},{"Typeface name":"Wingdings 2","Dingbat dec":"179","Dingbat hex":"B3","Unicode dec":"128924","Unicode hex":"1F79C"},{"Typeface name":"Wingdings 2","Dingbat dec":"180","Dingbat hex":"B4","Unicode dec":"128925","Unicode hex":"1F79D"},{"Typeface name":"Wingdings 2","Dingbat dec":"181","Dingbat hex":"B5","Unicode dec":"128926","Unicode hex":"1F79E"},{"Typeface name":"Wingdings 2","Dingbat dec":"182","Dingbat hex":"B6","Unicode dec":"11050","Unicode hex":"2B2A"},{"Typeface name":"Wingdings 2","Dingbat dec":"183","Dingbat hex":"B7","Unicode dec":"11047","Unicode hex":"2B27"},{"Typeface name":"Wingdings 2","Dingbat dec":"184","Dingbat hex":"B8","Unicode dec":"9674","Unicode hex":"25CA"},{"Typeface name":"Wingdings 2","Dingbat dec":"185","Dingbat hex":"B9","Unicode dec":"128928","Unicode hex":"1F7A0"},{"Typeface name":"Wingdings 2","Dingbat dec":"186","Dingbat hex":"BA","Unicode dec":"9686","Unicode hex":"25D6"},{"Typeface name":"Wingdings 2","Dingbat dec":"187","Dingbat hex":"BB","Unicode dec":"9687","Unicode hex":"25D7"},{"Typeface name":"Wingdings 2","Dingbat dec":"188","Dingbat hex":"BC","Unicode dec":"11210","Unicode hex":"2BCA"},{"Typeface name":"Wingdings 2","Dingbat dec":"189","Dingbat hex":"BD","Unicode dec":"11211","Unicode hex":"2BCB"},{"Typeface name":"Wingdings 2","Dingbat dec":"190","Dingbat hex":"BE","Unicode dec":"11200","Unicode hex":"2BC0"},{"Typeface name":"Wingdings 2","Dingbat dec":"191","Dingbat hex":"BF","Unicode dec":"11201","Unicode hex":"2BC1"},{"Typeface name":"Wingdings 2","Dingbat dec":"192","Dingbat hex":"C0","Unicode dec":"11039","Unicode hex":"2B1F"},{"Typeface name":"Wingdings 2","Dingbat dec":"193","Dingbat hex":"C1","Unicode dec":"11202","Unicode hex":"2BC2"},{"Typeface name":"Wingdings 2","Dingbat dec":"194","Dingbat hex":"C2","Unicode dec":"11043","Unicode hex":"2B23"},{"Typeface name":"Wingdings 2","Dingbat dec":"195","Dingbat hex":"C3","Unicode dec":"11042","Unicode hex":"2B22"},{"Typeface name":"Wingdings 2","Dingbat dec":"196","Dingbat hex":"C4","Unicode dec":"11203","Unicode hex":"2BC3"},{"Typeface name":"Wingdings 2","Dingbat dec":"197","Dingbat hex":"C5","Unicode dec":"11204","Unicode hex":"2BC4"},{"Typeface name":"Wingdings 2","Dingbat dec":"198","Dingbat hex":"C6","Unicode dec":"128929","Unicode hex":"1F7A1"},{"Typeface name":"Wingdings 2","Dingbat dec":"199","Dingbat hex":"C7","Unicode dec":"128930","Unicode hex":"1F7A2"},{"Typeface name":"Wingdings 2","Dingbat dec":"200","Dingbat hex":"C8","Unicode dec":"128931","Unicode hex":"1F7A3"},{"Typeface name":"Wingdings 2","Dingbat dec":"201","Dingbat hex":"C9","Unicode dec":"128932","Unicode hex":"1F7A4"},{"Typeface name":"Wingdings 2","Dingbat dec":"202","Dingbat hex":"CA","Unicode dec":"128933","Unicode hex":"1F7A5"},{"Typeface name":"Wingdings 2","Dingbat dec":"203","Dingbat hex":"CB","Unicode dec":"128934","Unicode hex":"1F7A6"},{"Typeface name":"Wingdings 2","Dingbat dec":"204","Dingbat hex":"CC","Unicode dec":"128935","Unicode hex":"1F7A7"},{"Typeface name":"Wingdings 2","Dingbat dec":"205","Dingbat hex":"CD","Unicode dec":"128936","Unicode hex":"1F7A8"},{"Typeface name":"Wingdings 2","Dingbat dec":"206","Dingbat hex":"CE","Unicode dec":"128937","Unicode hex":"1F7A9"},{"Typeface name":"Wingdings 2","Dingbat dec":"207","Dingbat hex":"CF","Unicode dec":"128938","Unicode hex":"1F7AA"},{"Typeface name":"Wingdings 2","Dingbat dec":"208","Dingbat hex":"D0","Unicode dec":"128939","Unicode hex":"1F7AB"},{"Typeface name":"Wingdings 2","Dingbat dec":"209","Dingbat hex":"D1","Unicode dec":"128940","Unicode hex":"1F7AC"},{"Typeface name":"Wingdings 2","Dingbat dec":"210","Dingbat hex":"D2","Unicode dec":"128941","Unicode hex":"1F7AD"},{"Typeface name":"Wingdings 2","Dingbat dec":"211","Dingbat hex":"D3","Unicode dec":"128942","Unicode hex":"1F7AE"},{"Typeface name":"Wingdings 2","Dingbat dec":"212","Dingbat hex":"D4","Unicode dec":"128943","Unicode hex":"1F7AF"},{"Typeface name":"Wingdings 2","Dingbat dec":"213","Dingbat hex":"D5","Unicode dec":"128944","Unicode hex":"1F7B0"},{"Typeface name":"Wingdings 2","Dingbat dec":"214","Dingbat hex":"D6","Unicode dec":"128945","Unicode hex":"1F7B1"},{"Typeface name":"Wingdings 2","Dingbat dec":"215","Dingbat hex":"D7","Unicode dec":"128946","Unicode hex":"1F7B2"},{"Typeface name":"Wingdings 2","Dingbat dec":"216","Dingbat hex":"D8","Unicode dec":"128947","Unicode hex":"1F7B3"},{"Typeface name":"Wingdings 2","Dingbat dec":"217","Dingbat hex":"D9","Unicode dec":"128948","Unicode hex":"1F7B4"},{"Typeface name":"Wingdings 2","Dingbat dec":"218","Dingbat hex":"DA","Unicode dec":"128949","Unicode hex":"1F7B5"},{"Typeface name":"Wingdings 2","Dingbat dec":"219","Dingbat hex":"DB","Unicode dec":"128950","Unicode hex":"1F7B6"},{"Typeface name":"Wingdings 2","Dingbat dec":"220","Dingbat hex":"DC","Unicode dec":"128951","Unicode hex":"1F7B7"},{"Typeface name":"Wingdings 2","Dingbat dec":"221","Dingbat hex":"DD","Unicode dec":"128952","Unicode hex":"1F7B8"},{"Typeface name":"Wingdings 2","Dingbat dec":"222","Dingbat hex":"DE","Unicode dec":"128953","Unicode hex":"1F7B9"},{"Typeface name":"Wingdings 2","Dingbat dec":"223","Dingbat hex":"DF","Unicode dec":"128954","Unicode hex":"1F7BA"},{"Typeface name":"Wingdings 2","Dingbat dec":"224","Dingbat hex":"E0","Unicode dec":"128955","Unicode hex":"1F7BB"},{"Typeface name":"Wingdings 2","Dingbat dec":"225","Dingbat hex":"E1","Unicode dec":"128956","Unicode hex":"1F7BC"},{"Typeface name":"Wingdings 2","Dingbat dec":"226","Dingbat hex":"E2","Unicode dec":"128957","Unicode hex":"1F7BD"},{"Typeface name":"Wingdings 2","Dingbat dec":"227","Dingbat hex":"E3","Unicode dec":"128958","Unicode hex":"1F7BE"},{"Typeface name":"Wingdings 2","Dingbat dec":"228","Dingbat hex":"E4","Unicode dec":"128959","Unicode hex":"1F7BF"},{"Typeface name":"Wingdings 2","Dingbat dec":"229","Dingbat hex":"E5","Unicode dec":"128960","Unicode hex":"1F7C0"},{"Typeface name":"Wingdings 2","Dingbat dec":"230","Dingbat hex":"E6","Unicode dec":"128962","Unicode hex":"1F7C2"},{"Typeface name":"Wingdings 2","Dingbat dec":"231","Dingbat hex":"E7","Unicode dec":"128964","Unicode hex":"1F7C4"},{"Typeface name":"Wingdings 2","Dingbat dec":"232","Dingbat hex":"E8","Unicode dec":"128966","Unicode hex":"1F7C6"},{"Typeface name":"Wingdings 2","Dingbat dec":"233","Dingbat hex":"E9","Unicode dec":"128969","Unicode hex":"1F7C9"},{"Typeface name":"Wingdings 2","Dingbat dec":"234","Dingbat hex":"EA","Unicode dec":"128970","Unicode hex":"1F7CA"},{"Typeface name":"Wingdings 2","Dingbat dec":"235","Dingbat hex":"EB","Unicode dec":"10038","Unicode hex":"2736"},{"Typeface name":"Wingdings 2","Dingbat dec":"236","Dingbat hex":"EC","Unicode dec":"128972","Unicode hex":"1F7CC"},{"Typeface name":"Wingdings 2","Dingbat dec":"237","Dingbat hex":"ED","Unicode dec":"128974","Unicode hex":"1F7CE"},{"Typeface name":"Wingdings 2","Dingbat dec":"238","Dingbat hex":"EE","Unicode dec":"128976","Unicode hex":"1F7D0"},{"Typeface name":"Wingdings 2","Dingbat dec":"239","Dingbat hex":"EF","Unicode dec":"128978","Unicode hex":"1F7D2"},{"Typeface name":"Wingdings 2","Dingbat dec":"240","Dingbat hex":"F0","Unicode dec":"10041","Unicode hex":"2739"},{"Typeface name":"Wingdings 2","Dingbat dec":"241","Dingbat hex":"F1","Unicode dec":"128963","Unicode hex":"1F7C3"},{"Typeface name":"Wingdings 2","Dingbat dec":"242","Dingbat hex":"F2","Unicode dec":"128967","Unicode hex":"1F7C7"},{"Typeface name":"Wingdings 2","Dingbat dec":"243","Dingbat hex":"F3","Unicode dec":"10031","Unicode hex":"272F"},{"Typeface name":"Wingdings 2","Dingbat dec":"244","Dingbat hex":"F4","Unicode dec":"128973","Unicode hex":"1F7CD"},{"Typeface name":"Wingdings 2","Dingbat dec":"245","Dingbat hex":"F5","Unicode dec":"128980","Unicode hex":"1F7D4"},{"Typeface name":"Wingdings 2","Dingbat dec":"246","Dingbat hex":"F6","Unicode dec":"11212","Unicode hex":"2BCC"},{"Typeface name":"Wingdings 2","Dingbat dec":"247","Dingbat hex":"F7","Unicode dec":"11213","Unicode hex":"2BCD"},{"Typeface name":"Wingdings 2","Dingbat dec":"248","Dingbat hex":"F8","Unicode dec":"8251","Unicode hex":"203B"},{"Typeface name":"Wingdings 2","Dingbat dec":"249","Dingbat hex":"F9","Unicode dec":"8258","Unicode hex":"2042"},{"Typeface name":"Wingdings 3","Dingbat dec":"32","Dingbat hex":"20","Unicode dec":"32","Unicode hex":"20"},{"Typeface name":"Wingdings 3","Dingbat dec":"33","Dingbat hex":"21","Unicode dec":"11104","Unicode hex":"2B60"},{"Typeface name":"Wingdings 3","Dingbat dec":"34","Dingbat hex":"22","Unicode dec":"11106","Unicode hex":"2B62"},{"Typeface name":"Wingdings 3","Dingbat dec":"35","Dingbat hex":"23","Unicode dec":"11105","Unicode hex":"2B61"},{"Typeface name":"Wingdings 3","Dingbat dec":"36","Dingbat hex":"24","Unicode dec":"11107","Unicode hex":"2B63"},{"Typeface name":"Wingdings 3","Dingbat dec":"37","Dingbat hex":"25","Unicode dec":"11110","Unicode hex":"2B66"},{"Typeface name":"Wingdings 3","Dingbat dec":"38","Dingbat hex":"26","Unicode dec":"11111","Unicode hex":"2B67"},{"Typeface name":"Wingdings 3","Dingbat dec":"39","Dingbat hex":"27","Unicode dec":"11113","Unicode hex":"2B69"},{"Typeface name":"Wingdings 3","Dingbat dec":"40","Dingbat hex":"28","Unicode dec":"11112","Unicode hex":"2B68"},{"Typeface name":"Wingdings 3","Dingbat dec":"41","Dingbat hex":"29","Unicode dec":"11120","Unicode hex":"2B70"},{"Typeface name":"Wingdings 3","Dingbat dec":"42","Dingbat hex":"2A","Unicode dec":"11122","Unicode hex":"2B72"},{"Typeface name":"Wingdings 3","Dingbat dec":"43","Dingbat hex":"2B","Unicode dec":"11121","Unicode hex":"2B71"},{"Typeface name":"Wingdings 3","Dingbat dec":"44","Dingbat hex":"2C","Unicode dec":"11123","Unicode hex":"2B73"},{"Typeface name":"Wingdings 3","Dingbat dec":"45","Dingbat hex":"2D","Unicode dec":"11126","Unicode hex":"2B76"},{"Typeface name":"Wingdings 3","Dingbat dec":"46","Dingbat hex":"2E","Unicode dec":"11128","Unicode hex":"2B78"},{"Typeface name":"Wingdings 3","Dingbat dec":"47","Dingbat hex":"2F","Unicode dec":"11131","Unicode hex":"2B7B"},{"Typeface name":"Wingdings 3","Dingbat dec":"48","Dingbat hex":"30","Unicode dec":"11133","Unicode hex":"2B7D"},{"Typeface name":"Wingdings 3","Dingbat dec":"49","Dingbat hex":"31","Unicode dec":"11108","Unicode hex":"2B64"},{"Typeface name":"Wingdings 3","Dingbat dec":"50","Dingbat hex":"32","Unicode dec":"11109","Unicode hex":"2B65"},{"Typeface name":"Wingdings 3","Dingbat dec":"51","Dingbat hex":"33","Unicode dec":"11114","Unicode hex":"2B6A"},{"Typeface name":"Wingdings 3","Dingbat dec":"52","Dingbat hex":"34","Unicode dec":"11116","Unicode hex":"2B6C"},{"Typeface name":"Wingdings 3","Dingbat dec":"53","Dingbat hex":"35","Unicode dec":"11115","Unicode hex":"2B6B"},{"Typeface name":"Wingdings 3","Dingbat dec":"54","Dingbat hex":"36","Unicode dec":"11117","Unicode hex":"2B6D"},{"Typeface name":"Wingdings 3","Dingbat dec":"55","Dingbat hex":"37","Unicode dec":"11085","Unicode hex":"2B4D"},{"Typeface name":"Wingdings 3","Dingbat dec":"56","Dingbat hex":"38","Unicode dec":"11168","Unicode hex":"2BA0"},{"Typeface name":"Wingdings 3","Dingbat dec":"57","Dingbat hex":"39","Unicode dec":"11169","Unicode hex":"2BA1"},{"Typeface name":"Wingdings 3","Dingbat dec":"58","Dingbat hex":"3A","Unicode dec":"11170","Unicode hex":"2BA2"},{"Typeface name":"Wingdings 3","Dingbat dec":"59","Dingbat hex":"3B","Unicode dec":"11171","Unicode hex":"2BA3"},{"Typeface name":"Wingdings 3","Dingbat dec":"60","Dingbat hex":"3C","Unicode dec":"11172","Unicode hex":"2BA4"},{"Typeface name":"Wingdings 3","Dingbat dec":"61","Dingbat hex":"3D","Unicode dec":"11173","Unicode hex":"2BA5"},{"Typeface name":"Wingdings 3","Dingbat dec":"62","Dingbat hex":"3E","Unicode dec":"11174","Unicode hex":"2BA6"},{"Typeface name":"Wingdings 3","Dingbat dec":"63","Dingbat hex":"3F","Unicode dec":"11175","Unicode hex":"2BA7"},{"Typeface name":"Wingdings 3","Dingbat dec":"64","Dingbat hex":"40","Unicode dec":"11152","Unicode hex":"2B90"},{"Typeface name":"Wingdings 3","Dingbat dec":"65","Dingbat hex":"41","Unicode dec":"11153","Unicode hex":"2B91"},{"Typeface name":"Wingdings 3","Dingbat dec":"66","Dingbat hex":"42","Unicode dec":"11154","Unicode hex":"2B92"},{"Typeface name":"Wingdings 3","Dingbat dec":"67","Dingbat hex":"43","Unicode dec":"11155","Unicode hex":"2B93"},{"Typeface name":"Wingdings 3","Dingbat dec":"68","Dingbat hex":"44","Unicode dec":"11136","Unicode hex":"2B80"},{"Typeface name":"Wingdings 3","Dingbat dec":"69","Dingbat hex":"45","Unicode dec":"11139","Unicode hex":"2B83"},{"Typeface name":"Wingdings 3","Dingbat dec":"70","Dingbat hex":"46","Unicode dec":"11134","Unicode hex":"2B7E"},{"Typeface name":"Wingdings 3","Dingbat dec":"71","Dingbat hex":"47","Unicode dec":"11135","Unicode hex":"2B7F"},{"Typeface name":"Wingdings 3","Dingbat dec":"72","Dingbat hex":"48","Unicode dec":"11140","Unicode hex":"2B84"},{"Typeface name":"Wingdings 3","Dingbat dec":"73","Dingbat hex":"49","Unicode dec":"11142","Unicode hex":"2B86"},{"Typeface name":"Wingdings 3","Dingbat dec":"74","Dingbat hex":"4A","Unicode dec":"11141","Unicode hex":"2B85"},{"Typeface name":"Wingdings 3","Dingbat dec":"75","Dingbat hex":"4B","Unicode dec":"11143","Unicode hex":"2B87"},{"Typeface name":"Wingdings 3","Dingbat dec":"76","Dingbat hex":"4C","Unicode dec":"11151","Unicode hex":"2B8F"},{"Typeface name":"Wingdings 3","Dingbat dec":"77","Dingbat hex":"4D","Unicode dec":"11149","Unicode hex":"2B8D"},{"Typeface name":"Wingdings 3","Dingbat dec":"78","Dingbat hex":"4E","Unicode dec":"11150","Unicode hex":"2B8E"},{"Typeface name":"Wingdings 3","Dingbat dec":"79","Dingbat hex":"4F","Unicode dec":"11148","Unicode hex":"2B8C"},{"Typeface name":"Wingdings 3","Dingbat dec":"80","Dingbat hex":"50","Unicode dec":"11118","Unicode hex":"2B6E"},{"Typeface name":"Wingdings 3","Dingbat dec":"81","Dingbat hex":"51","Unicode dec":"11119","Unicode hex":"2B6F"},{"Typeface name":"Wingdings 3","Dingbat dec":"82","Dingbat hex":"52","Unicode dec":"9099","Unicode hex":"238B"},{"Typeface name":"Wingdings 3","Dingbat dec":"83","Dingbat hex":"53","Unicode dec":"8996","Unicode hex":"2324"},{"Typeface name":"Wingdings 3","Dingbat dec":"84","Dingbat hex":"54","Unicode dec":"8963","Unicode hex":"2303"},{"Typeface name":"Wingdings 3","Dingbat dec":"85","Dingbat hex":"55","Unicode dec":"8997","Unicode hex":"2325"},{"Typeface name":"Wingdings 3","Dingbat dec":"86","Dingbat hex":"56","Unicode dec":"9251","Unicode hex":"2423"},{"Typeface name":"Wingdings 3","Dingbat dec":"87","Dingbat hex":"57","Unicode dec":"9085","Unicode hex":"237D"},{"Typeface name":"Wingdings 3","Dingbat dec":"88","Dingbat hex":"58","Unicode dec":"8682","Unicode hex":"21EA"},{"Typeface name":"Wingdings 3","Dingbat dec":"89","Dingbat hex":"59","Unicode dec":"11192","Unicode hex":"2BB8"},{"Typeface name":"Wingdings 3","Dingbat dec":"90","Dingbat hex":"5A","Unicode dec":"129184","Unicode hex":"1F8A0"},{"Typeface name":"Wingdings 3","Dingbat dec":"91","Dingbat hex":"5B","Unicode dec":"129185","Unicode hex":"1F8A1"},{"Typeface name":"Wingdings 3","Dingbat dec":"92","Dingbat hex":"5C","Unicode dec":"129186","Unicode hex":"1F8A2"},{"Typeface name":"Wingdings 3","Dingbat dec":"93","Dingbat hex":"5D","Unicode dec":"129187","Unicode hex":"1F8A3"},{"Typeface name":"Wingdings 3","Dingbat dec":"94","Dingbat hex":"5E","Unicode dec":"129188","Unicode hex":"1F8A4"},{"Typeface name":"Wingdings 3","Dingbat dec":"95","Dingbat hex":"5F","Unicode dec":"129189","Unicode hex":"1F8A5"},{"Typeface name":"Wingdings 3","Dingbat dec":"96","Dingbat hex":"60","Unicode dec":"129190","Unicode hex":"1F8A6"},{"Typeface name":"Wingdings 3","Dingbat dec":"97","Dingbat hex":"61","Unicode dec":"129191","Unicode hex":"1F8A7"},{"Typeface name":"Wingdings 3","Dingbat dec":"98","Dingbat hex":"62","Unicode dec":"129192","Unicode hex":"1F8A8"},{"Typeface name":"Wingdings 3","Dingbat dec":"99","Dingbat hex":"63","Unicode dec":"129193","Unicode hex":"1F8A9"},{"Typeface name":"Wingdings 3","Dingbat dec":"100","Dingbat hex":"64","Unicode dec":"129194","Unicode hex":"1F8AA"},{"Typeface name":"Wingdings 3","Dingbat dec":"101","Dingbat hex":"65","Unicode dec":"129195","Unicode hex":"1F8AB"},{"Typeface name":"Wingdings 3","Dingbat dec":"102","Dingbat hex":"66","Unicode dec":"129104","Unicode hex":"1F850"},{"Typeface name":"Wingdings 3","Dingbat dec":"103","Dingbat hex":"67","Unicode dec":"129106","Unicode hex":"1F852"},{"Typeface name":"Wingdings 3","Dingbat dec":"104","Dingbat hex":"68","Unicode dec":"129105","Unicode hex":"1F851"},{"Typeface name":"Wingdings 3","Dingbat dec":"105","Dingbat hex":"69","Unicode dec":"129107","Unicode hex":"1F853"},{"Typeface name":"Wingdings 3","Dingbat dec":"106","Dingbat hex":"6A","Unicode dec":"129108","Unicode hex":"1F854"},{"Typeface name":"Wingdings 3","Dingbat dec":"107","Dingbat hex":"6B","Unicode dec":"129109","Unicode hex":"1F855"},{"Typeface name":"Wingdings 3","Dingbat dec":"108","Dingbat hex":"6C","Unicode dec":"129111","Unicode hex":"1F857"},{"Typeface name":"Wingdings 3","Dingbat dec":"109","Dingbat hex":"6D","Unicode dec":"129110","Unicode hex":"1F856"},{"Typeface name":"Wingdings 3","Dingbat dec":"110","Dingbat hex":"6E","Unicode dec":"129112","Unicode hex":"1F858"},{"Typeface name":"Wingdings 3","Dingbat dec":"111","Dingbat hex":"6F","Unicode dec":"129113","Unicode hex":"1F859"},{"Typeface name":"Wingdings 3","Dingbat dec":"112","Dingbat hex":"70","Unicode dec":"9650","Unicode hex":"25B2"},{"Typeface name":"Wingdings 3","Dingbat dec":"113","Dingbat hex":"71","Unicode dec":"9660","Unicode hex":"25BC"},{"Typeface name":"Wingdings 3","Dingbat dec":"114","Dingbat hex":"72","Unicode dec":"9651","Unicode hex":"25B3"},{"Typeface name":"Wingdings 3","Dingbat dec":"115","Dingbat hex":"73","Unicode dec":"9661","Unicode hex":"25BD"},{"Typeface name":"Wingdings 3","Dingbat dec":"116","Dingbat hex":"74","Unicode dec":"9664","Unicode hex":"25C0"},{"Typeface name":"Wingdings 3","Dingbat dec":"117","Dingbat hex":"75","Unicode dec":"9654","Unicode hex":"25B6"},{"Typeface name":"Wingdings 3","Dingbat dec":"118","Dingbat hex":"76","Unicode dec":"9665","Unicode hex":"25C1"},{"Typeface name":"Wingdings 3","Dingbat dec":"119","Dingbat hex":"77","Unicode dec":"9655","Unicode hex":"25B7"},{"Typeface name":"Wingdings 3","Dingbat dec":"120","Dingbat hex":"78","Unicode dec":"9699","Unicode hex":"25E3"},{"Typeface name":"Wingdings 3","Dingbat dec":"121","Dingbat hex":"79","Unicode dec":"9698","Unicode hex":"25E2"},{"Typeface name":"Wingdings 3","Dingbat dec":"122","Dingbat hex":"7A","Unicode dec":"9700","Unicode hex":"25E4"},{"Typeface name":"Wingdings 3","Dingbat dec":"123","Dingbat hex":"7B","Unicode dec":"9701","Unicode hex":"25E5"},{"Typeface name":"Wingdings 3","Dingbat dec":"124","Dingbat hex":"7C","Unicode dec":"128896","Unicode hex":"1F780"},{"Typeface name":"Wingdings 3","Dingbat dec":"125","Dingbat hex":"7D","Unicode dec":"128898","Unicode hex":"1F782"},{"Typeface name":"Wingdings 3","Dingbat dec":"126","Dingbat hex":"7E","Unicode dec":"128897","Unicode hex":"1F781"},{"Typeface name":"Wingdings 3","Dingbat dec":"128","Dingbat hex":"80","Unicode dec":"128899","Unicode hex":"1F783"},{"Typeface name":"Wingdings 3","Dingbat dec":"129","Dingbat hex":"81","Unicode dec":"11205","Unicode hex":"2BC5"},{"Typeface name":"Wingdings 3","Dingbat dec":"130","Dingbat hex":"82","Unicode dec":"11206","Unicode hex":"2BC6"},{"Typeface name":"Wingdings 3","Dingbat dec":"131","Dingbat hex":"83","Unicode dec":"11207","Unicode hex":"2BC7"},{"Typeface name":"Wingdings 3","Dingbat dec":"132","Dingbat hex":"84","Unicode dec":"11208","Unicode hex":"2BC8"},{"Typeface name":"Wingdings 3","Dingbat dec":"133","Dingbat hex":"85","Unicode dec":"11164","Unicode hex":"2B9C"},{"Typeface name":"Wingdings 3","Dingbat dec":"134","Dingbat hex":"86","Unicode dec":"11166","Unicode hex":"2B9E"},{"Typeface name":"Wingdings 3","Dingbat dec":"135","Dingbat hex":"87","Unicode dec":"11165","Unicode hex":"2B9D"},{"Typeface name":"Wingdings 3","Dingbat dec":"136","Dingbat hex":"88","Unicode dec":"11167","Unicode hex":"2B9F"},{"Typeface name":"Wingdings 3","Dingbat dec":"137","Dingbat hex":"89","Unicode dec":"129040","Unicode hex":"1F810"},{"Typeface name":"Wingdings 3","Dingbat dec":"138","Dingbat hex":"8A","Unicode dec":"129042","Unicode hex":"1F812"},{"Typeface name":"Wingdings 3","Dingbat dec":"139","Dingbat hex":"8B","Unicode dec":"129041","Unicode hex":"1F811"},{"Typeface name":"Wingdings 3","Dingbat dec":"140","Dingbat hex":"8C","Unicode dec":"129043","Unicode hex":"1F813"},{"Typeface name":"Wingdings 3","Dingbat dec":"141","Dingbat hex":"8D","Unicode dec":"129044","Unicode hex":"1F814"},{"Typeface name":"Wingdings 3","Dingbat dec":"142","Dingbat hex":"8E","Unicode dec":"129046","Unicode hex":"1F816"},{"Typeface name":"Wingdings 3","Dingbat dec":"143","Dingbat hex":"8F","Unicode dec":"129045","Unicode hex":"1F815"},{"Typeface name":"Wingdings 3","Dingbat dec":"144","Dingbat hex":"90","Unicode dec":"129047","Unicode hex":"1F817"},{"Typeface name":"Wingdings 3","Dingbat dec":"145","Dingbat hex":"91","Unicode dec":"129048","Unicode hex":"1F818"},{"Typeface name":"Wingdings 3","Dingbat dec":"146","Dingbat hex":"92","Unicode dec":"129050","Unicode hex":"1F81A"},{"Typeface name":"Wingdings 3","Dingbat dec":"147","Dingbat hex":"93","Unicode dec":"129049","Unicode hex":"1F819"},{"Typeface name":"Wingdings 3","Dingbat dec":"148","Dingbat hex":"94","Unicode dec":"129051","Unicode hex":"1F81B"},{"Typeface name":"Wingdings 3","Dingbat dec":"149","Dingbat hex":"95","Unicode dec":"129052","Unicode hex":"1F81C"},{"Typeface name":"Wingdings 3","Dingbat dec":"150","Dingbat hex":"96","Unicode dec":"129054","Unicode hex":"1F81E"},{"Typeface name":"Wingdings 3","Dingbat dec":"151","Dingbat hex":"97","Unicode dec":"129053","Unicode hex":"1F81D"},{"Typeface name":"Wingdings 3","Dingbat dec":"152","Dingbat hex":"98","Unicode dec":"129055","Unicode hex":"1F81F"},{"Typeface name":"Wingdings 3","Dingbat dec":"153","Dingbat hex":"99","Unicode dec":"129024","Unicode hex":"1F800"},{"Typeface name":"Wingdings 3","Dingbat dec":"154","Dingbat hex":"9A","Unicode dec":"129026","Unicode hex":"1F802"},{"Typeface name":"Wingdings 3","Dingbat dec":"155","Dingbat hex":"9B","Unicode dec":"129025","Unicode hex":"1F801"},{"Typeface name":"Wingdings 3","Dingbat dec":"156","Dingbat hex":"9C","Unicode dec":"129027","Unicode hex":"1F803"},{"Typeface name":"Wingdings 3","Dingbat dec":"157","Dingbat hex":"9D","Unicode dec":"129028","Unicode hex":"1F804"},{"Typeface name":"Wingdings 3","Dingbat dec":"158","Dingbat hex":"9E","Unicode dec":"129030","Unicode hex":"1F806"},{"Typeface name":"Wingdings 3","Dingbat dec":"159","Dingbat hex":"9F","Unicode dec":"129029","Unicode hex":"1F805"},{"Typeface name":"Wingdings 3","Dingbat dec":"160","Dingbat hex":"A0","Unicode dec":"129031","Unicode hex":"1F807"},{"Typeface name":"Wingdings 3","Dingbat dec":"161","Dingbat hex":"A1","Unicode dec":"129032","Unicode hex":"1F808"},{"Typeface name":"Wingdings 3","Dingbat dec":"162","Dingbat hex":"A2","Unicode dec":"129034","Unicode hex":"1F80A"},{"Typeface name":"Wingdings 3","Dingbat dec":"163","Dingbat hex":"A3","Unicode dec":"129033","Unicode hex":"1F809"},{"Typeface name":"Wingdings 3","Dingbat dec":"164","Dingbat hex":"A4","Unicode dec":"129035","Unicode hex":"1F80B"},{"Typeface name":"Wingdings 3","Dingbat dec":"165","Dingbat hex":"A5","Unicode dec":"129056","Unicode hex":"1F820"},{"Typeface name":"Wingdings 3","Dingbat dec":"166","Dingbat hex":"A6","Unicode dec":"129058","Unicode hex":"1F822"},{"Typeface name":"Wingdings 3","Dingbat dec":"167","Dingbat hex":"A7","Unicode dec":"129060","Unicode hex":"1F824"},{"Typeface name":"Wingdings 3","Dingbat dec":"168","Dingbat hex":"A8","Unicode dec":"129062","Unicode hex":"1F826"},{"Typeface name":"Wingdings 3","Dingbat dec":"169","Dingbat hex":"A9","Unicode dec":"129064","Unicode hex":"1F828"},{"Typeface name":"Wingdings 3","Dingbat dec":"170","Dingbat hex":"AA","Unicode dec":"129066","Unicode hex":"1F82A"},{"Typeface name":"Wingdings 3","Dingbat dec":"171","Dingbat hex":"AB","Unicode dec":"129068","Unicode hex":"1F82C"},{"Typeface name":"Wingdings 3","Dingbat dec":"172","Dingbat hex":"AC","Unicode dec":"129180","Unicode hex":"1F89C"},{"Typeface name":"Wingdings 3","Dingbat dec":"173","Dingbat hex":"AD","Unicode dec":"129181","Unicode hex":"1F89D"},{"Typeface name":"Wingdings 3","Dingbat dec":"174","Dingbat hex":"AE","Unicode dec":"129182","Unicode hex":"1F89E"},{"Typeface name":"Wingdings 3","Dingbat dec":"175","Dingbat hex":"AF","Unicode dec":"129183","Unicode hex":"1F89F"},{"Typeface name":"Wingdings 3","Dingbat dec":"176","Dingbat hex":"B0","Unicode dec":"129070","Unicode hex":"1F82E"},{"Typeface name":"Wingdings 3","Dingbat dec":"177","Dingbat hex":"B1","Unicode dec":"129072","Unicode hex":"1F830"},{"Typeface name":"Wingdings 3","Dingbat dec":"178","Dingbat hex":"B2","Unicode dec":"129074","Unicode hex":"1F832"},{"Typeface name":"Wingdings 3","Dingbat dec":"179","Dingbat hex":"B3","Unicode dec":"129076","Unicode hex":"1F834"},{"Typeface name":"Wingdings 3","Dingbat dec":"180","Dingbat hex":"B4","Unicode dec":"129078","Unicode hex":"1F836"},{"Typeface name":"Wingdings 3","Dingbat dec":"181","Dingbat hex":"B5","Unicode dec":"129080","Unicode hex":"1F838"},{"Typeface name":"Wingdings 3","Dingbat dec":"182","Dingbat hex":"B6","Unicode dec":"129082","Unicode hex":"1F83A"},{"Typeface name":"Wingdings 3","Dingbat dec":"183","Dingbat hex":"B7","Unicode dec":"129081","Unicode hex":"1F839"},{"Typeface name":"Wingdings 3","Dingbat dec":"184","Dingbat hex":"B8","Unicode dec":"129083","Unicode hex":"1F83B"},{"Typeface name":"Wingdings 3","Dingbat dec":"185","Dingbat hex":"B9","Unicode dec":"129176","Unicode hex":"1F898"},{"Typeface name":"Wingdings 3","Dingbat dec":"186","Dingbat hex":"BA","Unicode dec":"129178","Unicode hex":"1F89A"},{"Typeface name":"Wingdings 3","Dingbat dec":"187","Dingbat hex":"BB","Unicode dec":"129177","Unicode hex":"1F899"},{"Typeface name":"Wingdings 3","Dingbat dec":"188","Dingbat hex":"BC","Unicode dec":"129179","Unicode hex":"1F89B"},{"Typeface name":"Wingdings 3","Dingbat dec":"189","Dingbat hex":"BD","Unicode dec":"129084","Unicode hex":"1F83C"},{"Typeface name":"Wingdings 3","Dingbat dec":"190","Dingbat hex":"BE","Unicode dec":"129086","Unicode hex":"1F83E"},{"Typeface name":"Wingdings 3","Dingbat dec":"191","Dingbat hex":"BF","Unicode dec":"129085","Unicode hex":"1F83D"},{"Typeface name":"Wingdings 3","Dingbat dec":"192","Dingbat hex":"C0","Unicode dec":"129087","Unicode hex":"1F83F"},{"Typeface name":"Wingdings 3","Dingbat dec":"193","Dingbat hex":"C1","Unicode dec":"129088","Unicode hex":"1F840"},{"Typeface name":"Wingdings 3","Dingbat dec":"194","Dingbat hex":"C2","Unicode dec":"129090","Unicode hex":"1F842"},{"Typeface name":"Wingdings 3","Dingbat dec":"195","Dingbat hex":"C3","Unicode dec":"129089","Unicode hex":"1F841"},{"Typeface name":"Wingdings 3","Dingbat dec":"196","Dingbat hex":"C4","Unicode dec":"129091","Unicode hex":"1F843"},{"Typeface name":"Wingdings 3","Dingbat dec":"197","Dingbat hex":"C5","Unicode dec":"129092","Unicode hex":"1F844"},{"Typeface name":"Wingdings 3","Dingbat dec":"198","Dingbat hex":"C6","Unicode dec":"129094","Unicode hex":"1F846"},{"Typeface name":"Wingdings 3","Dingbat dec":"199","Dingbat hex":"C7","Unicode dec":"129093","Unicode hex":"1F845"},{"Typeface name":"Wingdings 3","Dingbat dec":"200","Dingbat hex":"C8","Unicode dec":"129095","Unicode hex":"1F847"},{"Typeface name":"Wingdings 3","Dingbat dec":"201","Dingbat hex":"C9","Unicode dec":"11176","Unicode hex":"2BA8"},{"Typeface name":"Wingdings 3","Dingbat dec":"202","Dingbat hex":"CA","Unicode dec":"11177","Unicode hex":"2BA9"},{"Typeface name":"Wingdings 3","Dingbat dec":"203","Dingbat hex":"CB","Unicode dec":"11178","Unicode hex":"2BAA"},{"Typeface name":"Wingdings 3","Dingbat dec":"204","Dingbat hex":"CC","Unicode dec":"11179","Unicode hex":"2BAB"},{"Typeface name":"Wingdings 3","Dingbat dec":"205","Dingbat hex":"CD","Unicode dec":"11180","Unicode hex":"2BAC"},{"Typeface name":"Wingdings 3","Dingbat dec":"206","Dingbat hex":"CE","Unicode dec":"11181","Unicode hex":"2BAD"},{"Typeface name":"Wingdings 3","Dingbat dec":"207","Dingbat hex":"CF","Unicode dec":"11182","Unicode hex":"2BAE"},{"Typeface name":"Wingdings 3","Dingbat dec":"208","Dingbat hex":"D0","Unicode dec":"11183","Unicode hex":"2BAF"},{"Typeface name":"Wingdings 3","Dingbat dec":"209","Dingbat hex":"D1","Unicode dec":"129120","Unicode hex":"1F860"},{"Typeface name":"Wingdings 3","Dingbat dec":"210","Dingbat hex":"D2","Unicode dec":"129122","Unicode hex":"1F862"},{"Typeface name":"Wingdings 3","Dingbat dec":"211","Dingbat hex":"D3","Unicode dec":"129121","Unicode hex":"1F861"},{"Typeface name":"Wingdings 3","Dingbat dec":"212","Dingbat hex":"D4","Unicode dec":"129123","Unicode hex":"1F863"},{"Typeface name":"Wingdings 3","Dingbat dec":"213","Dingbat hex":"D5","Unicode dec":"129124","Unicode hex":"1F864"},{"Typeface name":"Wingdings 3","Dingbat dec":"214","Dingbat hex":"D6","Unicode dec":"129125","Unicode hex":"1F865"},{"Typeface name":"Wingdings 3","Dingbat dec":"215","Dingbat hex":"D7","Unicode dec":"129127","Unicode hex":"1F867"},{"Typeface name":"Wingdings 3","Dingbat dec":"216","Dingbat hex":"D8","Unicode dec":"129126","Unicode hex":"1F866"},{"Typeface name":"Wingdings 3","Dingbat dec":"217","Dingbat hex":"D9","Unicode dec":"129136","Unicode hex":"1F870"},{"Typeface name":"Wingdings 3","Dingbat dec":"218","Dingbat hex":"DA","Unicode dec":"129138","Unicode hex":"1F872"},{"Typeface name":"Wingdings 3","Dingbat dec":"219","Dingbat hex":"DB","Unicode dec":"129137","Unicode hex":"1F871"},{"Typeface name":"Wingdings 3","Dingbat dec":"220","Dingbat hex":"DC","Unicode dec":"129139","Unicode hex":"1F873"},{"Typeface name":"Wingdings 3","Dingbat dec":"221","Dingbat hex":"DD","Unicode dec":"129140","Unicode hex":"1F874"},{"Typeface name":"Wingdings 3","Dingbat dec":"222","Dingbat hex":"DE","Unicode dec":"129141","Unicode hex":"1F875"},{"Typeface name":"Wingdings 3","Dingbat dec":"223","Dingbat hex":"DF","Unicode dec":"129143","Unicode hex":"1F877"},{"Typeface name":"Wingdings 3","Dingbat dec":"224","Dingbat hex":"E0","Unicode dec":"129142","Unicode hex":"1F876"},{"Typeface name":"Wingdings 3","Dingbat dec":"225","Dingbat hex":"E1","Unicode dec":"129152","Unicode hex":"1F880"},{"Typeface name":"Wingdings 3","Dingbat dec":"226","Dingbat hex":"E2","Unicode dec":"129154","Unicode hex":"1F882"},{"Typeface name":"Wingdings 3","Dingbat dec":"227","Dingbat hex":"E3","Unicode dec":"129153","Unicode hex":"1F881"},{"Typeface name":"Wingdings 3","Dingbat dec":"228","Dingbat hex":"E4","Unicode dec":"129155","Unicode hex":"1F883"},{"Typeface name":"Wingdings 3","Dingbat dec":"229","Dingbat hex":"E5","Unicode dec":"129156","Unicode hex":"1F884"},{"Typeface name":"Wingdings 3","Dingbat dec":"230","Dingbat hex":"E6","Unicode dec":"129157","Unicode hex":"1F885"},{"Typeface name":"Wingdings 3","Dingbat dec":"231","Dingbat hex":"E7","Unicode dec":"129159","Unicode hex":"1F887"},{"Typeface name":"Wingdings 3","Dingbat dec":"232","Dingbat hex":"E8","Unicode dec":"129158","Unicode hex":"1F886"},{"Typeface name":"Wingdings 3","Dingbat dec":"233","Dingbat hex":"E9","Unicode dec":"129168","Unicode hex":"1F890"},{"Typeface name":"Wingdings 3","Dingbat dec":"234","Dingbat hex":"EA","Unicode dec":"129170","Unicode hex":"1F892"},{"Typeface name":"Wingdings 3","Dingbat dec":"235","Dingbat hex":"EB","Unicode dec":"129169","Unicode hex":"1F891"},{"Typeface name":"Wingdings 3","Dingbat dec":"236","Dingbat hex":"EC","Unicode dec":"129171","Unicode hex":"1F893"},{"Typeface name":"Wingdings 3","Dingbat dec":"237","Dingbat hex":"ED","Unicode dec":"129172","Unicode hex":"1F894"},{"Typeface name":"Wingdings 3","Dingbat dec":"238","Dingbat hex":"EE","Unicode dec":"129174","Unicode hex":"1F896"},{"Typeface name":"Wingdings 3","Dingbat dec":"239","Dingbat hex":"EF","Unicode dec":"129173","Unicode hex":"1F895"},{"Typeface name":"Wingdings 3","Dingbat dec":"240","Dingbat hex":"F0","Unicode dec":"129175","Unicode hex":"1F897"}];Bk.default=aK});var jk=R(function(Pn){var uK=Pn&&Pn.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Pn,"__esModule",{value:!0});Pn.hex=Pn.dec=Pn.codePoint=void 0;var lK=uK(Lk()),Wk={},dK=String.fromCodePoint?String.fromCodePoint:pK;for(sc=0,Sd=lK.default;sc<Sd.length;sc++)ac=Sd[sc],Cd=parseInt(ac["Unicode dec"],10),Xy={codePoint:Cd,string:dK(Cd)},Wk[ac["Typeface name"].toUpperCase()+"_"+ac["Dingbat dec"]]=Xy;var ac,Cd,Xy,sc,Sd;function Ky(e,t){return Wk[e.toUpperCase()+"_"+t]}Pn.codePoint=Ky;function fK(e,t){return Ky(e,parseInt(t,10))}Pn.dec=fK;function hK(e,t){return Ky(e,parseInt(t,16))}Pn.hex=hK;function pK(e){if(e<=65535)return String.fromCharCode(e);else{var t=Math.floor((e-65536)/1024)+55296,n=(e-65536)%1024+56320;return String.fromCharCode(t,n)}}});var Yy=R(function(bK){var qk=Me();bK.paragraph=gK;bK.run=mK;bK._elements=$k;bK._elementsOfType=Zy;bK.getDescendantsOfType=yK;bK.getDescendants=Hk;function gK(e){return Zy("paragraph",e)}function mK(e){return Zy("run",e)}function Zy(e,t){return $k(function(n){if(n.type===e)return t(n);else return n})}function $k(e){return function t(n){if(n.children){var r=qk.map(n.children,t);n=qk.extend(n,{children:r})}return e(n)}}function yK(e,t){return Hk(e).filter(function(n){return n.type===t})}function Hk(e){var t=[];return Gk(e,function(n){t.push(n)}),t}function Gk(e,t){if(e.children)e.children.forEach(function(n){Gk(n,t),t(n)})}});var zk=R(function(CK){CK.uriToZipEntryName=TK;CK.replaceFragment=SK;function TK(e,t){if(t.charAt(0)==="/")return t.substr(1);else return e+"/"+t}function SK(e,t){var n=e.indexOf("#");if(n!==-1)e=e.substring(0,n);return e+"#"+t}});var eR=R(function(IK){IK.createBodyReader=RK;IK._readNumberingProperties=Qk;var Vk=jk(),Kt=Me(),Te=Br(),Jk=wn().Result,cr=wn().warning,kK=Td(),Xk=Yy(),Kk=zk();function RK(e){return{readXmlElement:function(t){return new Zk(e).readXmlElement(t)},readXmlElements:function(t){return new Zk(e).readXmlElements(t)}}}function Zk(e){var t=[],n=[],r=[],i=e.relationships,o=e.contentTypes,s=e.docxFile,a=e.files,c=e.numbering,u=e.styles;function d(M){var z=M.map(f);return Yk(z)}function f(M){if(M.type==="element"){var z=T[M.name];if(z)return z(M);else if(!Object.prototype.hasOwnProperty.call(OK,M.name)){var Z=cr("An unrecognised element was ignored: "+M.name);return cc([Z])}}return is()}function h(M){return m(M).map(function(z){return{type:"paragraphProperties",styleId:z.styleId,styleName:z.name,alignment:M.firstOrEmpty("w:jc").attributes["w:val"],numbering:Qk(z.styleId,M.firstOrEmpty("w:numPr"),c),indent:p(M.firstOrEmpty("w:ind"))}})}function p(M){return{start:M.attributes["w:start"]||M.attributes["w:left"],end:M.attributes["w:end"]||M.attributes["w:right"],firstLine:M.attributes["w:firstLine"],hanging:M.attributes["w:hanging"]}}function g(M){return x(M).map(function(z){var Z=M.firstOrEmpty("w:sz").attributes["w:val"],te=/^[0-9]+$/.test(Z)?parseInt(Z,10)/2:null;return{type:"runProperties",styleId:z.styleId,styleName:z.name,verticalAlignment:M.firstOrEmpty("w:vertAlign").attributes["w:val"],font:M.firstOrEmpty("w:rFonts").attributes["w:ascii"],fontSize:te,isBold:v(M.first("w:b")),isUnderline:y(M.first("w:u")),isItalic:v(M.first("w:i")),isStrikethrough:v(M.first("w:strike")),isAllCaps:v(M.first("w:caps")),isSmallCaps:v(M.first("w:smallCaps")),highlight:_(M.firstOrEmpty("w:highlight").attributes["w:val"])}})}function y(M){if(M){var z=M.attributes["w:val"];return z!==void 0&&z!=="false"&&z!=="0"&&z!=="none"}else return!1}function v(M){if(M){var z=M.attributes["w:val"];return z!=="false"&&z!=="0"}else return!1}function b(M){return M!=="false"&&M!=="0"}function _(M){if(!M||M==="none")return null;else return M}function m(M){return A(M,"w:pStyle","Paragraph",u.findParagraphStyleById)}function x(M){return A(M,"w:rStyle","Run",u.findCharacterStyleById)}function D(M){return A(M,"w:tblStyle","Table",u.findTableStyleById)}function A(M,z,Z,te){var se=[],he=M.first(z),Se=null,mt=null;if(he){if(Se=he.attributes["w:val"],Se){var Qe=te(Se);if(Qe)mt=Qe.name;else se.push(Nc(Z,Se))}}return Ad({styleId:Se,name:mt},se)}function E(M){var z=M.attributes["w:fldCharType"];if(z==="begin")t.push({type:"begin",fldChar:M}),n=[];else if(z==="end"){var Z=t.pop();if(Z.type==="begin")Z=C(Z);if(Z.type==="checkbox")return Mt(Te.checkbox({checked:Z.checked}))}else if(z==="separate"){var te=t.pop(),se=C(te);t.push(se)}return is()}function U(){var M=Kt.last(t.filter(function(z){return z.type==="hyperlink"}));return M?M.options:null}function C(M){return N(n.join(""),M.type==="begin"?M.fldChar:kK.emptyElement)}function N(M,z){var Z=/^\s*HYPERLINK\s+(\\l\s+)?(?:"(.*)"|([^\\]\S*))/.exec(M);if(Z){var te=Z[2]===void 0?Z[3]:Z[2],se=Z[1]===void 0?{href:te}:{anchor:te};return{type:"hyperlink",options:se}}var he=/\s*FORMCHECKBOX\s*/.exec(M);if(he){var Se=z.firstOrEmpty("w:ffData").firstOrEmpty("w:checkBox"),mt=Se.first("w:checked"),Qe=mt==null?v(Se.first("w:default")):v(mt);return{type:"checkbox",checked:Qe}}return{type:"unknown"}}function F(M){return n.push(M.text()),is()}function S(M){var z=M.attributes["w:font"],Z=M.attributes["w:char"],te=Vk.hex(z,Z);if(te==null&&/^F0..$/.test(Z))te=Vk.hex(z,Z.substring(2));if(te==null)return cc([cr("A w:sym element with an unsupported character was ignored: char "+Z+" in font "+z)]);else return Mt(new Te.Text(te.string))}function B(M){return function(z){var Z=z.attributes["w:id"];return Mt(new Te.NoteReference({noteType:M,noteId:Z}))}}function j(M){return Mt(Te.commentReference({commentId:M.attributes["w:id"]}))}function G(M){return d(M.children)}var T={"w:p":function(M){var z=M.firstOrEmpty("w:pPr"),Z=!!z.firstOrEmpty("w:rPr").first("w:del");if(Z)return M.children.forEach(function(se){r.push(se)}),is();else{var te=M.children;if(r.length>0)te=r.concat(te),r=[];return it.map(h(z),d(te),function(se,he){return new Te.Paragraph(he,se)}).insertExtra()}},"w:r":function(M){return it.map(g(M.firstOrEmpty("w:rPr")),d(M.children),function(z,Z){var te=U();if(te!==null)Z=[new Te.Hyperlink(Z,te)];return new Te.Run(Z,z)})},"w:fldChar":E,"w:instrText":F,"w:t":function(M){return Mt(new Te.Text(M.text()))},"w:tab":function(M){return Mt(new Te.Tab)},"w:noBreakHyphen":function(){return Mt(new Te.Text("‑"))},"w:softHyphen":function(M){return Mt(new Te.Text("­"))},"w:sym":S,"w:hyperlink":function(M){var z=M.attributes["r:id"],Z=M.attributes["w:anchor"];return d(M.children).map(function(te){function se(Se){var mt=M.attributes["w:tgtFrame"]||null;return new Te.Hyperlink(te,Kt.extend({targetFrame:mt},Se))}if(z){var he=i.findTargetByRelationshipId(z);if(Z)he=Kk.replaceFragment(he,Z);return se({href:he})}else if(Z)return se({anchor:Z});else return te})},"w:tbl":O,"w:tr":P,"w:tc":W,"w:footnoteReference":B("footnote"),"w:endnoteReference":B("endnote"),"w:commentReference":j,"w:br":function(M){var z=M.attributes["w:type"];if(z==null||z==="textWrapping")return Mt(Te.lineBreak);else if(z==="page")return Mt(Te.pageBreak);else if(z==="column")return Mt(Te.columnBreak);else return cc([cr("Unsupported break type: "+z)])},"w:bookmarkStart":function(M){var z=M.attributes["w:name"];if(z==="_GoBack")return is();else return Mt(new Te.BookmarkStart({name:z}))},"mc:AlternateContent":function(M){return G(M.firstOrEmpty("mc:Fallback"))},"w:sdt":function(M){var z=d(M.firstOrEmpty("w:sdtContent").children);return z.map(function(Z){var te=M.firstOrEmpty("w:sdtPr").first("wordml:checkbox");if(te){var se=te.first("wordml:checked"),he=!!se&&b(se.attributes["wordml:val"]),Se=Te.checkbox({checked:he}),mt=!1,Qe=Z.map(Xk._elementsOfType(Te.types.text,function(ai){if(ai.value.length>0&&!mt)return mt=!0,Se;else return ai}));if(mt)return Qe;else return Se}else return Z})},"w:ins":G,"w:object":G,"w:smartTag":G,"w:drawing":G,"w:pict":function(M){return G(M).toExtra()},"v:roundrect":G,"v:shape":G,"v:textbox":G,"w:txbxContent":G,"wp:inline":de,"wp:anchor":de,"v:imagedata":pn,"v:group":G,"v:rect":G};return{readXmlElement:f,readXmlElements:d};function O(M){var z=k(M.firstOrEmpty("w:tblPr"));return d(M.children).flatMap(K).flatMap(function(Z){return z.map(function(te){return Te.Table(Z,te)})})}function k(M){return D(M).map(function(z){return{styleId:z.styleId,styleName:z.name}})}function P(M){var z=M.firstOrEmpty("w:trPr"),Z=!!z.first("w:del");if(Z)return is();var te=!!z.first("w:tblHeader");return d(M.children).map(function(se){return Te.TableRow(se,{isHeader:te})})}function W(M){return d(M.children).map(function(z){var Z=M.firstOrEmpty("w:tcPr"),te=Z.firstOrEmpty("w:gridSpan").attributes["w:val"],se=te?parseInt(te,10):1,he=Te.TableCell(z,{colSpan:se});return he._vMerge=q(Z),he})}function q(M){var z=M.first("w:vMerge");if(z){var Z=z.attributes["w:val"];return Z==="continue"||!Z}else return null}function K(M){var z=Kt.any(M,function(se){return se.type!==Te.types.tableRow});if(z)return J(M),Ad(M,[cr("unexpected non-row element in table, cell merging may be incorrect")]);var Z=Kt.any(M,function(se){return Kt.any(se.children,function(he){return he.type!==Te.types.tableCell})});if(Z)return J(M),Ad(M,[cr("unexpected non-cell element in table row, cell merging may be incorrect")]);var te={};return M.forEach(function(se){var he=0;se.children.forEach(function(Se){if(Se._vMerge&&te[he])te[he].rowSpan++;else te[he]=Se,Se._vMerge=!1;he+=Se.colSpan})}),M.forEach(function(se){se.children=se.children.filter(function(he){return!he._vMerge}),se.children.forEach(function(he){delete he._vMerge})}),Mt(M)}function J(M){M.forEach(function(z){var Z=Xk.getDescendantsOfType(z,Te.types.tableCell);Z.forEach(function(te){delete te._vMerge})})}function de(M){var z=M.getElementsByTagName("a:graphic").getElementsByTagName("a:graphicData").getElementsByTagName("pic:pic").getElementsByTagName("pic:blipFill").getElementsByTagName("a:blip");return Yk(z.map(Ae.bind(null,M)))}function Ae(M,z){var Z=M.firstOrEmpty("wp:docPr"),te=Z.attributes,se=ve(te.descr)?te.title:te.descr,he=ot(z);if(he===null)return cc([cr("Could not find image file for a:blip element")]);return Zi(he,se).map(function(Se){var mt=Z.firstOrEmpty("a:hlinkClick"),Qe=mt.attributes["r:id"];if(Qe){var ai=i.findTargetByRelationshipId(Qe);return new Te.Hyperlink([Se],{href:ai})}else return Se})}function ve(M){return M==null||/^\s*$/.test(M)}function ot(M){var z=M.attributes["r:embed"],Z=M.attributes["r:link"];if(z)return hr(z);else if(Z){var te=i.findTargetByRelationshipId(Z);return{path:te,read:a.read.bind(a,te)}}else return null}function pn(M){var z=M.attributes["r:id"];if(z)return Zi(hr(z),M.attributes["o:title"]);else return cc([cr("A v:imagedata element without a relationship ID was ignored")])}function hr(M){var z=Kk.uriToZipEntryName("word",i.findTargetByRelationshipId(M));return{path:z,read:s.read.bind(s,z)}}function Zi(M,z){var Z=o.findContentType(M.path),te=Te.Image({readImage:M.read,altText:z,contentType:Z}),se=FK[Z]?[]:cr("Image of type "+Z+" is unlikely to display in web browsers");return Ad(te,se)}function Nc(M,z){return cr(M+" style with ID "+z+" was referenced but not defined in the document")}}function Qk(e,t,n){var r=t.firstOrEmpty("w:ilvl").attributes["w:val"],i=t.firstOrEmpty("w:numId").attributes["w:val"];if(r!==void 0&&i!==void 0)return n.findLevel(i,r);if(e!=null){var o=n.findLevelByParagraphStyleId(e);if(o!=null)return o}if(i!==void 0)return n.findLevel(i,"0");return null}var FK={"image/png":!0,"image/gif":!0,"image/jpeg":!0,"image/svg+xml":!0,"image/tiff":!0},OK={"office-word:wrap":!0,"v:shadow":!0,"v:shapetype":!0,"w:annotationRef":!0,"w:bookmarkEnd":!0,"w:sectPr":!0,"w:proofErr":!0,"w:lastRenderedPageBreak":!0,"w:commentRangeStart":!0,"w:commentRangeEnd":!0,"w:del":!0,"w:footnoteRef":!0,"w:endnoteRef":!0,"w:pPr":!0,"w:rPr":!0,"w:tblPr":!0,"w:tblGrid":!0,"w:trPr":!0,"w:tcPr":!0};function cc(e){return new it(null,null,e)}function is(){return new it(null)}function Mt(e){return new it(e)}function Ad(e,t){return new it(e,null,t)}function it(e,t,n){this.value=e||[],this.extra=t||[],this._result=new Jk({element:this.value,extra:t},n),this.messages=this._result.messages}it.prototype.toExtra=function(){return new it(null,Ud(this.extra,this.value),this.messages)};it.prototype.insertExtra=function(){var e=this.extra;if(e&&e.length)return new it(Ud(this.value,e),null,this.messages);else return this};it.prototype.map=function(e){var t=this._result.map(function(n){return e(n.element)});return new it(t.value,this.extra,t.messages)};it.prototype.flatMap=function(e){var t=this._result.flatMap(function(n){return e(n.element)._result});return new it(t.value.element,Ud(this.extra,t.value.extra),t.messages)};it.map=function(e,t,n){return new it(n(e.value,t.value),Ud(e.extra,t.extra),e.messages.concat(t.messages))};function Yk(e){var t=Jk.combine(Kt.pluck(e,"_result"));return new it(Kt.flatten(Kt.pluck(t.value,"element")),Kt.filter(Kt.flatten(Kt.pluck(t.value,"extra")),PK),t.messages)}function Ud(e,t){return Kt.flatten([e,t])}function PK(e){return e}});var tR=R(function(jK){jK.DocumentXmlReader=WK;var BK=Br(),LK=wn().Result;function WK(e){var t=e.bodyReader;function n(r){var i=r.first("w:body");if(i==null)throw Error("Could not find the body element: are you sure this is a docx file?");var o=t.readXmlElements(i.children).map(function(s){return new BK.Document(s,{notes:e.notes,comments:e.comments})});return new LK(o.value,o.messages)}return{convertXmlToDocument:n}}});var nR=R(function(HK){HK.readRelationships=$K;HK.defaultValue=new Jy([]);HK.Relationships=Jy;function $K(e){var t=[];return e.children.forEach(function(n){if(n.name==="relationships:Relationship"){var r={relationshipId:n.attributes.Id,target:n.attributes.Target,type:n.attributes.Type};t.push(r)}}),new Jy(t)}function Jy(e){var t=Object.create(null);e.forEach(function(r){t[r.relationshipId]=r.target});var n=Object.create(null);return e.forEach(function(r){if(!n[r.type])n[r.type]=[];n[r.type].push(r.target)}),{findTargetByRelationshipId:function(r){return t[r]},findTargetsByType:function(r){return n[r]||[]}}}});var iR=R(function(ZK){ZK.readContentTypesFromXml=KK;var XK={png:"png",gif:"gif",jpeg:"jpeg",jpg:"jpeg",tif:"tiff",tiff:"tiff",bmp:"bmp"};ZK.defaultContentTypes=rR({},{});function KK(e){var t=Object.create(null),n=Object.create(null);return e.children.forEach(function(r){if(r.name==="content-types:Default")t[r.attributes.Extension]=r.attributes.ContentType;if(r.name==="content-types:Override"){var i=r.attributes.PartName;if(i.charAt(0)==="/")i=i.substring(1);n[i]=r.attributes.ContentType}}),rR(n,t)}function rR(e,t){return{findContentType:function(n){var r=e[n];if(r)return r;else{var i=n.split("."),o=i[i.length-1];if(Object.prototype.hasOwnProperty.call(t,o))return t[o];else{var s=XK[o.toLowerCase()];if(s)return"image/"+s;else return null}}}}}});var oR=R(function(rZ){var kd=Me();rZ.readNumberingXml=QK;rZ.Numbering=Qy;rZ.defaultNumbering=new Qy({},{});function Qy(e,t,n){var r=kd.flatten(kd.values(t).map(function(c){return kd.values(c.levels)})),i=kd.indexBy(r.filter(function(c){return c.paragraphStyleId!=null}),"paragraphStyleId");function o(c,u){return s(c,u,Object.create(null))}function s(c,u,d){if(d[c])return null;d[c]=!0;var f=e[c];if(!f)return null;var h=t[f.abstractNumId];if(!h)return null;else if(h.numStyleLink==null)return t[f.abstractNumId].levels[u];else{var p=n.findNumberingStyleById(h.numStyleLink);return s(p.numId,u,d)}}function a(c){return i[c]||null}return{findLevel:o,findLevelByParagraphStyleId:a}}function QK(e,t){if(!t||!t.styles)throw Error("styles is missing");var n=eZ(e),r=nZ(e,n);return new Qy(r,n,t.styles)}function eZ(e){var t=Object.create(null);return e.getElementsByTagName("w:abstractNum").forEach(function(n){var r=n.attributes["w:abstractNumId"];t[r]=tZ(n)}),t}function tZ(e){var t=Object.create(null),n=null;if(e.getElementsByTagName("w:lvl").forEach(function(i){var o=i.attributes["w:ilvl"],s=i.firstOrEmpty("w:numFmt").attributes["w:val"],a=s!=="bullet",c=i.firstOrEmpty("w:pStyle").attributes["w:val"];if(o===void 0)n={isOrdered:a,level:"0",paragraphStyleId:c};else t[o]={isOrdered:a,level:o,paragraphStyleId:c}}),n!==null&&t[n.level]===void 0)t[n.level]=n;var r=e.firstOrEmpty("w:numStyleLink").attributes["w:val"];return{levels:t,numStyleLink:r}}function nZ(e){var t=Object.create(null);return e.getElementsByTagName("w:num").forEach(function(n){var r=n.attributes["w:numId"],i=n.first("w:abstractNumId").attributes["w:val"];t[r]={abstractNumId:i}}),t}});var aR=R(function(dZ){dZ.readStylesXml=aZ;dZ.Styles=uc;dZ.defaultStyles=new uc({},{});function uc(e,t,n,r){return{findParagraphStyleById:function(i){return e[i]},findCharacterStyleById:function(i){return t[i]},findTableStyleById:function(i){return n[i]},findNumberingStyleById:function(i){return r[i]}}}uc.EMPTY=new uc({},{},{},{});function aZ(e){var t=Object.create(null),n=Object.create(null),r=Object.create(null),i=Object.create(null);return e.getElementsByTagName("w:style").forEach(function(o){var s=cZ(o),a;switch(s.type){case"paragraph":a=t;break;case"character":a=n;break;case"table":a=r;break;case"numbering":a=i;break}if(a&&a[s.styleId]===void 0)a[s.styleId]=s}),new uc(t,n,r,i)}function cZ(e){var t=e.attributes["w:type"];if(t==="numbering")return lZ(t,e);else{var n=sR(e),r=uZ(e);return{type:t,styleId:n,name:r}}}function uZ(e){var t=e.first("w:name");return t?t.attributes["w:val"]:null}function lZ(e,t){var n=sR(t),r=t.firstOrEmpty("w:pPr").firstOrEmpty("w:numPr").firstOrEmpty("w:numId").attributes["w:val"];return{type:e,numId:r,styleId:n}}function sR(e){return e.attributes["w:styleId"]}});var uR=R(function(Rd){var gZ=Br(),mZ=wn().Result;Rd.createFootnotesReader=cR.bind(Rd,"footnote");Rd.createEndnotesReader=cR.bind(Rd,"endnote");function cR(e,t){function n(o){return mZ.combine(o.getElementsByTagName("w:"+e).filter(r).map(i))}function r(o){var s=o.attributes["w:type"];return s!=="continuationSeparator"&&s!=="separator"}function i(o){var s=o.attributes["w:id"];return t.readXmlElements(o.children).map(function(a){return gZ.Note({noteType:e,noteId:s,body:a})})}return n}});var lR=R(function(_Z){var bZ=Br(),vZ=wn().Result;function xZ(e){function t(r){return vZ.combine(r.getElementsByTagName("w:comment").map(n))}function n(r){var i=r.attributes["w:id"];function o(s){return(r.attributes[s]||"").trim()||null}return e.readXmlElements(r.children).map(function(s){return bZ.comment({commentId:i,body:s,authorName:o("w:author"),authorInitials:o("w:initials")})})}return t}_Z.createCommentsReader=xZ});var hR=R(function(Hye,Fd){function dR(e){return e.charAt(0)==="/"}function fR(e){var t=/^([a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/]+[^\\\/]+)?([\\\/])?([\s\S]*?)$/,n=t.exec(e),r=n[1]||"",i=Boolean(r&&r.charAt(1)!==":");return Boolean(n[2]||i)}Fd.exports=process.platform==="win32"?fR:dR;Fd.exports.posix=dR;Fd.exports.win32=fR});var mR=R(function(FZ){var pR=re("fs"),DZ=re("url"),EZ=re("os"),TZ=re("path").dirname,SZ=re("path").resolve,CZ=hR(),os=Xn();FZ.Files=AZ;FZ.uriToPath=gR;function AZ(e){if(e=e||{},!e.externalFileAccess)return{read:function(i){return os.reject(Error("could not read external image '"+i+"', external file access is disabled"))}};var t=e.relativeToFile?TZ(e.relativeToFile):null;function n(i,o){return r(i).then(function(s){return UZ(s,o).caught(function(a){var c="could not open external image: '"+i+"' (document directory: '"+t+`')
205
+ `+a.message;return os.reject(Error(c))})})}function r(i){var o=gR(i);if(CZ(o))return os.resolve(o);else if(t)return os.resolve(SZ(t,o));else return os.reject(Error("could not find external image '"+i+"', path of input document is unknown"))}return{read:n}}var UZ=os.promisify(pR.readFile.bind(pR));function gR(e,t){if(!t)t=EZ.platform();var n=DZ.parse(e);if(kZ(n)||RZ(n)){var r=decodeURIComponent(n.path);if(t==="win32"&&/^\/[a-z]:/i.test(r))return r.slice(1);else return r}else throw Error("Could not convert URI to path: "+e)}function kZ(e){return e.protocol==="file:"&&(!e.host||e.host==="localhost")}function RZ(e){return!e.protocol&&!e.host}});var TR=R(function(VZ){VZ.read=jZ;VZ._findPartPaths=DR;var IZ=Xn(),MZ=Br(),eb=wn().Result,Pd=Cy(),wR=Nk().readXmlFromZipFile,NZ=eR().createBodyReader,BZ=tR().DocumentXmlReader,ss=nR(),yR=iR(),bR=oR(),vR=aR(),xR=uR(),LZ=lR(),WZ=mR().Files;function jZ(e,t,n){t=t||{},n=n||{};var r=new WZ({externalFileAccess:n.externalFileAccess,relativeToFile:t.path});return IZ.props({contentTypes:$Z(e),partPaths:DR(e),docxFile:e,files:r}).also(function(i){return{styles:GZ(e,i.partPaths.styles)}}).also(function(i){return{numbering:HZ(e,i.partPaths.numbering,i.styles)}}).also(function(i){return{footnotes:Od(i.partPaths.footnotes,i,function(o,s){if(s)return xR.createFootnotesReader(o)(s);else return new eb([])}),endnotes:Od(i.partPaths.endnotes,i,function(o,s){if(s)return xR.createEndnotesReader(o)(s);else return new eb([])}),comments:Od(i.partPaths.comments,i,function(o,s){if(s)return LZ.createCommentsReader(o)(s);else return new eb([])})}}).also(function(i){return{notes:i.footnotes.flatMap(function(o){return i.endnotes.map(function(s){return new MZ.Notes(o.concat(s))})})}}).then(function(i){return Od(i.partPaths.mainDocument,i,function(o,s){return i.notes.flatMap(function(a){return i.comments.flatMap(function(c){var u=new BZ({bodyReader:o,notes:a,comments:c});return u.convertXmlToDocument(s)})})})})}function DR(e){return zZ(e).then(function(t){var n=_R({docxFile:e,relationships:t,relationshipType:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument",basePath:"",fallbackPath:"word/document.xml"});if(!e.exists(n))throw Error("Could not find main document part. Are you sure this is a valid .docx file?");return as({filename:ER(n),readElement:ss.readRelationships,defaultValue:ss.defaultValue})(e).then(function(r){function i(o){return _R({docxFile:e,relationships:r,relationshipType:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/"+o,basePath:Pd.splitPath(n).dirname,fallbackPath:"word/"+o+".xml"})}return{mainDocument:n,comments:i("comments"),endnotes:i("endnotes"),footnotes:i("footnotes"),numbering:i("numbering"),styles:i("styles")}})})}function _R(e){var{docxFile:t,relationships:n,relationshipType:r,basePath:i,fallbackPath:o}=e,s=n.findTargetsByType(r),a=s.map(function(u){return qZ(Pd.joinPath(i,u),"/")}),c=a.filter(function(u){return t.exists(u)});if(c.length===0)return o;else return c[0]}function qZ(e,t){if(e.substring(0,t.length)===t)return e.substring(t.length);else return e}function as(e){return function(t){return wR(t,e.filename).then(function(n){return n?e.readElement(n):e.defaultValue})}}function Od(e,t,n){var r=as({filename:ER(e),readElement:ss.readRelationships,defaultValue:ss.defaultValue});return r(t.docxFile).then(function(i){var o=new NZ({relationships:i,contentTypes:t.contentTypes,docxFile:t.docxFile,numbering:t.numbering,styles:t.styles,files:t.files});return wR(t.docxFile,e).then(function(s){return n(o,s)})})}function ER(e){var t=Pd.splitPath(e);return Pd.joinPath(t.dirname,"_rels",t.basename+".rels")}var $Z=as({filename:"[Content_Types].xml",readElement:yR.readContentTypesFromXml,defaultValue:yR.defaultContentTypes});function HZ(e,t,n){return as({filename:t,readElement:function(r){return bR.readNumberingXml(r,{styles:n})},defaultValue:bR.defaultNumbering})(e)}function GZ(e,t){return as({filename:t,readElement:vR.readStylesXml,defaultValue:vR.defaultStyles})(e)}var zZ=as({filename:"_rels/.rels",readElement:ss.readRelationships,defaultValue:ss.defaultValue})});var AR=R(function(rY){var ZZ=Me(),YZ=Xn(),lc=Td();rY.writeStyleMap=QZ;rY.readStyleMap=nY;var JZ="http://schemas.zwobble.org/mammoth/style-map",Id="mammoth/style-map",SR="/"+Id;function QZ(e,t){return e.write(Id,t),eY(e).then(function(){return tY(e)})}function eY(e){var t="word/_rels/document.xml.rels",n="http://schemas.openxmlformats.org/package/2006/relationships",r="{"+n+"}Relationship";return e.read(t,"utf8").then(lc.readString).then(function(i){var o=i.children;CR(o,r,"Id",{Id:"rMammothStyleMap",Type:JZ,Target:SR});var s={"":n};return e.write(t,lc.writeString(i,s))})}function tY(e){var t="[Content_Types].xml",n="http://schemas.openxmlformats.org/package/2006/content-types",r="{"+n+"}Override";return e.read(t,"utf8").then(lc.readString).then(function(i){var o=i.children;CR(o,r,"PartName",{PartName:SR,ContentType:"text/prs.mammoth.style-map"});var s={"":n};return e.write(t,lc.writeString(i,s))})}function CR(e,t,n,r){var i=ZZ.find(e,function(o){return o.name===t&&o.attributes[n]===r[n]});if(i)i.attributes=r;else e.push(lc.element(t,r))}function nY(e){if(e.exists(Id))return e.read(Id,"utf8");else return YZ.resolve(null)}});var nb=R(function(fY){var UR=dc();function sY(e,t,n){return tb(UR.element(e,t,{fresh:!1}),n)}function aY(e,t,n){var r=UR.element(e,t,{fresh:!0});return tb(r,n)}function tb(e,t){return{type:"element",tag:e,children:t||[]}}function cY(e){return{type:"text",value:e}}var uY={type:"forceWrite"};fY.freshElement=aY;fY.nonFreshElement=sY;fY.elementWithTag=tb;fY.text=cY;fY.forceWrite=uY;var lY={br:!0,hr:!0,img:!0,input:!0};function dY(e){return e.children.length===0&&lY[e.tag.tagName]}fY.isVoidElement=dY});var IR=R(function(Kye,PR){var kR=Me(),Md=nb();function vY(e){return FR(OR(e))}function FR(e){var t=[];return e.map(xY).forEach(function(n){rb(t,n)}),t}function xY(e){return _Y[e.type](e)}var _Y={element:wY,text:RR,forceWrite:RR};function wY(e){return Md.elementWithTag(e.tag,FR(e.children))}function RR(e){return e}function rb(e,t){var n=e[e.length-1];if(t.type==="element"&&!t.tag.fresh&&n&&n.type==="element"&&t.tag.matchesElement(n.tag)){if(t.tag.separator)rb(n.children,Md.text(t.tag.separator));t.children.forEach(function(r){rb(n.children,r)})}else e.push(t)}function OR(e){return DY(e,function(t){return EY[t.type](t)})}function DY(e,t){return kR.flatten(kR.map(e,t),!0)}var EY={element:SY,text:CY,forceWrite:TY};function TY(e){return[e]}function SY(e){var t=OR(e.children);if(t.length===0&&!Md.isVoidElement(e))return[];else return[Md.elementWithTag(e.tag,t)]}function CY(e){if(e.value.length===0)return[];else return[e]}PR.exports=vY});var fc=R(function(FY){var cs=nb();FY.freshElement=cs.freshElement;FY.nonFreshElement=cs.nonFreshElement;FY.elementWithTag=cs.elementWithTag;FY.text=cs.text;FY.forceWrite=cs.forceWrite;FY.simplify=IR();function MR(e,t){t.forEach(function(n){AY(e,n)})}function AY(e,t){UY[t.type](e,t)}var UY={element:kY,text:RY,forceWrite:function(){}};function kY(e,t){if(cs.isVoidElement(t))e.selfClosing(t.tag.tagName,t.tag.attributes);else e.open(t.tag.tagName,t.tag.attributes),MR(e,t.children),e.close(t.tag.tagName)}function RY(e,t){e.text(t.value)}FY.write=MR});var dc=R(function(qY){var ib=Me(),WY=fc();qY.topLevelElement=jY;qY.elements=ob;qY.element=sb;function jY(e,t){return ob([sb(e,t,{fresh:!0})])}function ob(e){return new NR(e.map(function(t){if(ib.isString(t))return sb(t);else return t}))}function NR(e){this._elements=e}NR.prototype.wrap=function(t){var n=t();for(var r=this._elements.length-1;r>=0;r--)n=this._elements[r].wrapNodes(n);return n};function sb(e,t,n){return n=n||{},new Nd(e,t,n)}function Nd(e,t,n){var r=Object.create(null);if(ib.isArray(e))e.forEach(function(i){r[i]=!0}),e=e[0];else r[e]=!0;this.tagName=e,this.tagNames=r,this.attributes=t||{},this.fresh=n.fresh,this.separator=n.separator}Nd.prototype.matchesElement=function(e){return this.tagNames[e.tagName]&&ib.isEqual(this.attributes||{},e.attributes||{})};Nd.prototype.wrap=function(t){return this.wrapNodes(t())};Nd.prototype.wrapNodes=function(t){return[WY.elementWithTag(this,t)]};qY.empty=ob([]);qY.ignore={wrap:function(){return[]}}});var ab=R(function(JY){var XY=Me(),KY=Xn(),ZY=fc();JY.imgElement=BR;function BR(e){return function(t,n){return KY.when(e(t)).then(function(r){var i={};if(t.altText)i.alt=t.altText;return XY.extend(i,r),[ZY.freshElement("img",i)]})}}JY.inline=JY.imgElement;JY.dataUri=BR(function(e){return e.readAsBase64String().then(function(t){return{src:"data:"+e.contentType+";base64,"+t}})});function YY(e){return e.contentType.split(/\/|\\/)[1]}JY.imageFilenameExtension=YY});var qR=R(function(sJ){var WR=Me();sJ.writer=nJ;function nJ(e){if(e=e||{},e.prettyPrint)return rJ();else return jR()}var Bd={div:!0,p:!0,ul:!0,li:!0};function rJ(){var e=0,t=" ",n=[],r=!0,i=!1,o=jR();function s(g,y){if(Bd[g])h();if(n.push(g),o.open(g,y),Bd[g])e++;r=!1}function a(g){if(Bd[g])e--,h();n.pop(),o.close(g)}function c(g){f();var y=p()?g:g.replace(`
206
206
  `,`
207
207
  `+t);o.text(y)}function u(g,y){h(),o.selfClosing(g,y)}function d(){return n.length===0||Bd[n[n.length-1]]}function f(){if(!i)h(),i=!0}function h(){if(i=!1,!r&&d()&&!p()){o._append(`
208
208
  `);for(var g=0;g<e;g++)o._append(t)}}function p(){return WR.some(n,function(g){return g==="pre"})}return{asString:o.asString,open:s,close:a,text:c,selfClosing:u}}function jR(){var e=[];function t(c,u){var d=i(u);e.push("<"+c+d+">")}function n(c){e.push("</"+c+">")}function r(c,u){var d=i(u);e.push("<"+c+d+" />")}function i(c){return WR.map(c,function(u,d){return" "+d+'="'+oJ(u)+'"'}).join("")}function o(c){e.push(iJ(c))}function s(c){e.push(c)}function a(){return e.join("")}return{asString:a,open:t,close:n,text:o,selfClosing:r,_append:s}}function iJ(e){return e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}function oJ(e){return e.replace(/&/g,"&amp;").replace(/"/g,"&quot;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}});var VR=R(function(pJ){var cJ=Me();function $R(e){return Ld(e,e)}function Ld(e,t){return function(){return{start:e,end:t}}}function uJ(e){var t=e.href||"";if(t)return{start:"[",end:"]("+t+")",anchorPosition:"before"};else return{}}function lJ(e){var t=e.src||"",n=e.alt||"";if(t||n)return{start:"!["+n+"]("+t+")"};else return{}}function HR(e){return function(t,n){return{start:n?`
@@ -213,25 +213,25 @@ __p+='`;return u}),o+=`';
213
213
  `),br:Ld("",`
214
214
  `),ul:HR({isOrdered:!1}),ol:HR({isOrdered:!0}),li:dJ,strong:$R("__"),em:$R("*"),a:uJ,img:lJ};(function(){for(var e=1;e<=6;e++)GR["h"+e]=Ld(zR("#",e)+" ",`
215
215
 
216
- `)})();function zR(e,t){return Array(t+1).join(e)}function fJ(){var e=[],t=[],n=null,r={};function i(d,f){f=f||{};var h=GR[d]||function(){return{}},p=h(f,n,r);if(t.push({end:p.end,list:n}),p.list)n=p.list;var g=p.anchorPosition==="before";if(g)o(f);if(e.push(p.start||""),!g)o(f)}function o(d){if(d.id)e.push('<a id="'+d.id+'"></a>')}function s(d){var f=t.pop();n=f.list;var h=cJ.isFunction(f.end)?f.end():f.end;e.push(h||"")}function a(d,f){i(d,f),s(d)}function c(d){e.push(hJ(d))}function u(){return e.join("")}return{asString:u,open:i,close:s,text:c,selfClosing:a}}pJ.writer=fJ;function hJ(e){return e.replace(/\\/g,"\\\\").replace(/([\`\*_\{\}\[\]\(\)\#\+\-\.\!])/g,"\\$1")}});var XR=R(function(vJ){var mJ=qR(),yJ=VR();vJ.writer=bJ;function bJ(e){if(e=e||{},e.outputFormat==="markdown")return yJ.writer();else return mJ.writer(e)}});var JR=R(function(AJ){var Jr=Me(),KR=Xn(),Wd=Br(),Zt=dc(),ub=wn(),_J=ab(),ce=fc(),wJ=XR();AJ.DocumentConverter=DJ;function DJ(e){return{convertToHtml:function(t){var n=Jr.indexBy(t.type===Wd.types.document?t.comments:[],"commentId"),r=new EJ(e,n);return r.convertToHtml(t)}}}function EJ(e,t){var n=1,r=[],i=[];e=Jr.extend({ignoreEmptyParagraphs:!0},e);var o=e.idPrefix===void 0?"":e.idPrefix,s=e.ignoreEmptyParagraphs,a=Zt.topLevelElement("p"),c=e.styleMap||[];function u(k){var P=[],W=f(k,P,Object.create(null)),q=[];YR(W,function(J){if(J.type==="deferred")q.push(J)});var K=Object.create(null);return KR.mapSeries(q,function(J){return J.value().then(function(de){K[J.id]=de})}).then(function(){function J(Ae){return cb(Ae,function(xe){if(xe.type==="deferred")return K[xe.id];else if(xe.children)return[Jr.extend({},xe,{children:J(xe.children)})];else return[xe]})}var de=wJ.writer({prettyPrint:e.prettyPrint,outputFormat:e.outputFormat});return ce.write(de,ce.simplify(J(W))),new ub.Result(de.asString(),P)})}function d(k,P,W){return cb(k,function(q){return f(q,P,W)})}function f(k,P,W){if(!W)throw Error("options not set");var q=O[k.type];if(q)return q(k,P,W);else return[]}function h(k,P,W){return p(k,P).wrap(function(){var q=d(k.children,P,W);if(s)return q;else return[ce.forceWrite].concat(q)})}function p(k,P){var W=b(k);if(W)return W.to;else{if(k.styleId)P.push(ZR("paragraph",k));return a}}function g(k,P,W){var q=function(){return d(k.children,P,W)},K=[];if(k.highlight!==null){var J=v({type:"highlight",color:k.highlight});if(J)K.push(J)}if(k.isSmallCaps)K.push(y("smallCaps"));if(k.isAllCaps)K.push(y("allCaps"));if(k.isStrikethrough)K.push(y("strikethrough","s"));if(k.isUnderline)K.push(y("underline"));if(k.verticalAlignment===Wd.verticalAlignment.subscript)K.push(Zt.element("sub",{},{fresh:!1}));if(k.verticalAlignment===Wd.verticalAlignment.superscript)K.push(Zt.element("sup",{},{fresh:!1}));if(k.isItalic)K.push(y("italic","em"));if(k.isBold)K.push(y("bold","strong"));var de=Zt.empty,Ae=b(k);if(Ae)de=Ae.to;else if(k.styleId)P.push(ZR("run",k));return K.push(de),K.forEach(function(xe){q=xe.wrap.bind(xe,q)}),q()}function y(k,P){var W=v({type:k});if(W)return W;else if(P)return Zt.element(P,{},{fresh:!1});else return Zt.empty}function v(k,P){var W=b(k);return W?W.to:P}function b(k){for(var P=0;P<c.length;P++)if(c[P].from.matches(k))return c[P]}function _(k){return function(P,W){return KR.attempt(function(){return k(P,W)}).caught(function(q){return W.push(ub.error(q)),[]})}}function m(k){return D(k.noteType,k.noteId)}function x(k){return A(k.noteType,k.noteId)}function D(k,P){return E(k+"-"+P)}function A(k,P){return E(k+"-ref-"+P)}function E(k){return o+k}var U=Zt.elements([Zt.element("table",{},{fresh:!0})]);function C(k,P,W){return v(k,U).wrap(function(){return N(k,P,W)})}function N(k,P,W){var q=Jr.findIndex(k.children,function(Ae){return!Ae.type===Wd.types.tableRow||!Ae.isHeader});if(q===-1)q=k.children.length;var K;if(q===0)K=d(k.children,P,Jr.extend({},W,{isTableHeader:!1}));else{var J=d(k.children.slice(0,q),P,Jr.extend({},W,{isTableHeader:!0})),de=d(k.children.slice(q),P,Jr.extend({},W,{isTableHeader:!1}));K=[ce.freshElement("thead",{},J),ce.freshElement("tbody",{},de)]}return[ce.forceWrite].concat(K)}function F(k,P,W){var q=d(k.children,P,W);return[ce.freshElement("tr",{},[ce.forceWrite].concat(q))]}function S(k,P,W){var q=W.isTableHeader?"th":"td",K=d(k.children,P,W),J={};if(k.colSpan!==1)J.colspan=k.colSpan.toString();if(k.rowSpan!==1)J.rowspan=k.rowSpan.toString();return[ce.freshElement(q,J,[ce.forceWrite].concat(K))]}function B(k,P,W){return v(k,Zt.ignore).wrap(function(){var q=t[k.commentId],K=i.length+1,J="["+CJ(q)+K+"]";return i.push({label:J,comment:q}),[ce.freshElement("a",{href:"#"+D("comment",k.commentId),id:A("comment",k.commentId)},[ce.text(J)])]})}function j(k,P,W){var{label:q,comment:K}=k,J=d(K.body,P,W).concat([ce.nonFreshElement("p",{},[ce.text(" "),ce.freshElement("a",{href:"#"+A("comment",K.commentId)},[ce.text("↑")])])]);return[ce.freshElement("dt",{id:D("comment",K.commentId)},[ce.text("Comment "+q)]),ce.freshElement("dd",{},J)]}function G(k,P,W){return T(k).wrap(function(){return[]})}function T(k){var P=b(k);if(P)return P.to;else if(k.breakType==="line")return Zt.topLevelElement("br");else return Zt.empty}var O={document:function(k,P,W){var q=d(k.children,P,W),K=r.map(function(de){return k.notes.resolve(de)}),J=d(K,P,W);return q.concat([ce.freshElement("ol",{},J),ce.freshElement("dl",{},cb(i,function(de){return j(de,P,W)}))])},paragraph:h,run:g,text:function(k,P,W){return[ce.text(k.value)]},tab:function(k,P,W){return[ce.text("\t")]},hyperlink:function(k,P,W){var q=k.anchor?"#"+E(k.anchor):k.href,K={href:q};if(k.targetFrame!=null)K.target=k.targetFrame;var J=d(k.children,P,W);return[ce.nonFreshElement("a",K,J)]},checkbox:function(k){var P={type:"checkbox"};if(k.checked)P.checked="checked";return[ce.freshElement("input",P)]},bookmarkStart:function(k,P,W){var q=ce.freshElement("a",{id:E(k.name)},[ce.forceWrite]);return[q]},noteReference:function(k,P,W){r.push(k);var q=ce.freshElement("a",{href:"#"+m(k),id:x(k)},[ce.text("["+n+++"]")]);return[ce.freshElement("sup",{},[q])]},note:function(k,P,W){var q=d(k.body,P,W),K=ce.elementWithTag(Zt.element("p",{},{fresh:!1}),[ce.text(" "),ce.freshElement("a",{href:"#"+x(k)},[ce.text("↑")])]),J=q.concat([K]);return ce.freshElement("li",{id:m(k)},J)},commentReference:B,comment:j,image:SJ(_(e.convertImage||_J.dataUri)),table:C,tableRow:F,tableCell:S,break:G};return{convertToHtml:u}}var TJ=1;function SJ(e){return function(t,n,r){return[{type:"deferred",id:TJ++,value:function(){return e(t,n,r)}}]}}function ZR(e,t){return ub.warning("Unrecognised "+e+" style: '"+t.styleName+"' (Style ID: "+t.styleId+")")}function cb(e,t){return Jr.flatten(e.map(t),!0)}function YR(e,t){e.forEach(function(n){if(t(n),n.children)YR(n.children,t)})}var CJ=AJ.commentAuthorLabel=function(t){return t.authorInitials||""}});var eF=R(function(RJ){var kJ=Br();function QR(e){if(e.type==="text")return e.value;else if(e.type===kJ.types.tab)return"\t";else{var t=e.type==="paragraph"?`
216
+ `)})();function zR(e,t){return Array(t+1).join(e)}function fJ(){var e=[],t=[],n=null,r={};function i(d,f){f=f||{};var h=GR[d]||function(){return{}},p=h(f,n,r);if(t.push({end:p.end,list:n}),p.list)n=p.list;var g=p.anchorPosition==="before";if(g)o(f);if(e.push(p.start||""),!g)o(f)}function o(d){if(d.id)e.push('<a id="'+d.id+'"></a>')}function s(d){var f=t.pop();n=f.list;var h=cJ.isFunction(f.end)?f.end():f.end;e.push(h||"")}function a(d,f){i(d,f),s(d)}function c(d){e.push(hJ(d))}function u(){return e.join("")}return{asString:u,open:i,close:s,text:c,selfClosing:a}}pJ.writer=fJ;function hJ(e){return e.replace(/\\/g,"\\\\").replace(/([\`\*_\{\}\[\]\(\)\#\+\-\.\!])/g,"\\$1")}});var XR=R(function(vJ){var mJ=qR(),yJ=VR();vJ.writer=bJ;function bJ(e){if(e=e||{},e.outputFormat==="markdown")return yJ.writer();else return mJ.writer(e)}});var JR=R(function(AJ){var Jr=Me(),KR=Xn(),Wd=Br(),Zt=dc(),ub=wn(),_J=ab(),ce=fc(),wJ=XR();AJ.DocumentConverter=DJ;function DJ(e){return{convertToHtml:function(t){var n=Jr.indexBy(t.type===Wd.types.document?t.comments:[],"commentId"),r=new EJ(e,n);return r.convertToHtml(t)}}}function EJ(e,t){var n=1,r=[],i=[];e=Jr.extend({ignoreEmptyParagraphs:!0},e);var o=e.idPrefix===void 0?"":e.idPrefix,s=e.ignoreEmptyParagraphs,a=Zt.topLevelElement("p"),c=e.styleMap||[];function u(k){var P=[],W=f(k,P,Object.create(null)),q=[];YR(W,function(J){if(J.type==="deferred")q.push(J)});var K=Object.create(null);return KR.mapSeries(q,function(J){return J.value().then(function(de){K[J.id]=de})}).then(function(){function J(Ae){return cb(Ae,function(ve){if(ve.type==="deferred")return K[ve.id];else if(ve.children)return[Jr.extend({},ve,{children:J(ve.children)})];else return[ve]})}var de=wJ.writer({prettyPrint:e.prettyPrint,outputFormat:e.outputFormat});return ce.write(de,ce.simplify(J(W))),new ub.Result(de.asString(),P)})}function d(k,P,W){return cb(k,function(q){return f(q,P,W)})}function f(k,P,W){if(!W)throw Error("options not set");var q=O[k.type];if(q)return q(k,P,W);else return[]}function h(k,P,W){return p(k,P).wrap(function(){var q=d(k.children,P,W);if(s)return q;else return[ce.forceWrite].concat(q)})}function p(k,P){var W=b(k);if(W)return W.to;else{if(k.styleId)P.push(ZR("paragraph",k));return a}}function g(k,P,W){var q=function(){return d(k.children,P,W)},K=[];if(k.highlight!==null){var J=v({type:"highlight",color:k.highlight});if(J)K.push(J)}if(k.isSmallCaps)K.push(y("smallCaps"));if(k.isAllCaps)K.push(y("allCaps"));if(k.isStrikethrough)K.push(y("strikethrough","s"));if(k.isUnderline)K.push(y("underline"));if(k.verticalAlignment===Wd.verticalAlignment.subscript)K.push(Zt.element("sub",{},{fresh:!1}));if(k.verticalAlignment===Wd.verticalAlignment.superscript)K.push(Zt.element("sup",{},{fresh:!1}));if(k.isItalic)K.push(y("italic","em"));if(k.isBold)K.push(y("bold","strong"));var de=Zt.empty,Ae=b(k);if(Ae)de=Ae.to;else if(k.styleId)P.push(ZR("run",k));return K.push(de),K.forEach(function(ve){q=ve.wrap.bind(ve,q)}),q()}function y(k,P){var W=v({type:k});if(W)return W;else if(P)return Zt.element(P,{},{fresh:!1});else return Zt.empty}function v(k,P){var W=b(k);return W?W.to:P}function b(k){for(var P=0;P<c.length;P++)if(c[P].from.matches(k))return c[P]}function _(k){return function(P,W){return KR.attempt(function(){return k(P,W)}).caught(function(q){return W.push(ub.error(q)),[]})}}function m(k){return D(k.noteType,k.noteId)}function x(k){return A(k.noteType,k.noteId)}function D(k,P){return E(k+"-"+P)}function A(k,P){return E(k+"-ref-"+P)}function E(k){return o+k}var U=Zt.elements([Zt.element("table",{},{fresh:!0})]);function C(k,P,W){return v(k,U).wrap(function(){return N(k,P,W)})}function N(k,P,W){var q=Jr.findIndex(k.children,function(Ae){return!Ae.type===Wd.types.tableRow||!Ae.isHeader});if(q===-1)q=k.children.length;var K;if(q===0)K=d(k.children,P,Jr.extend({},W,{isTableHeader:!1}));else{var J=d(k.children.slice(0,q),P,Jr.extend({},W,{isTableHeader:!0})),de=d(k.children.slice(q),P,Jr.extend({},W,{isTableHeader:!1}));K=[ce.freshElement("thead",{},J),ce.freshElement("tbody",{},de)]}return[ce.forceWrite].concat(K)}function F(k,P,W){var q=d(k.children,P,W);return[ce.freshElement("tr",{},[ce.forceWrite].concat(q))]}function S(k,P,W){var q=W.isTableHeader?"th":"td",K=d(k.children,P,W),J={};if(k.colSpan!==1)J.colspan=k.colSpan.toString();if(k.rowSpan!==1)J.rowspan=k.rowSpan.toString();return[ce.freshElement(q,J,[ce.forceWrite].concat(K))]}function B(k,P,W){return v(k,Zt.ignore).wrap(function(){var q=t[k.commentId],K=i.length+1,J="["+CJ(q)+K+"]";return i.push({label:J,comment:q}),[ce.freshElement("a",{href:"#"+D("comment",k.commentId),id:A("comment",k.commentId)},[ce.text(J)])]})}function j(k,P,W){var{label:q,comment:K}=k,J=d(K.body,P,W).concat([ce.nonFreshElement("p",{},[ce.text(" "),ce.freshElement("a",{href:"#"+A("comment",K.commentId)},[ce.text("↑")])])]);return[ce.freshElement("dt",{id:D("comment",K.commentId)},[ce.text("Comment "+q)]),ce.freshElement("dd",{},J)]}function G(k,P,W){return T(k).wrap(function(){return[]})}function T(k){var P=b(k);if(P)return P.to;else if(k.breakType==="line")return Zt.topLevelElement("br");else return Zt.empty}var O={document:function(k,P,W){var q=d(k.children,P,W),K=r.map(function(de){return k.notes.resolve(de)}),J=d(K,P,W);return q.concat([ce.freshElement("ol",{},J),ce.freshElement("dl",{},cb(i,function(de){return j(de,P,W)}))])},paragraph:h,run:g,text:function(k,P,W){return[ce.text(k.value)]},tab:function(k,P,W){return[ce.text("\t")]},hyperlink:function(k,P,W){var q=k.anchor?"#"+E(k.anchor):k.href,K={href:q};if(k.targetFrame!=null)K.target=k.targetFrame;var J=d(k.children,P,W);return[ce.nonFreshElement("a",K,J)]},checkbox:function(k){var P={type:"checkbox"};if(k.checked)P.checked="checked";return[ce.freshElement("input",P)]},bookmarkStart:function(k,P,W){var q=ce.freshElement("a",{id:E(k.name)},[ce.forceWrite]);return[q]},noteReference:function(k,P,W){r.push(k);var q=ce.freshElement("a",{href:"#"+m(k),id:x(k)},[ce.text("["+n+++"]")]);return[ce.freshElement("sup",{},[q])]},note:function(k,P,W){var q=d(k.body,P,W),K=ce.elementWithTag(Zt.element("p",{},{fresh:!1}),[ce.text(" "),ce.freshElement("a",{href:"#"+x(k)},[ce.text("↑")])]),J=q.concat([K]);return ce.freshElement("li",{id:m(k)},J)},commentReference:B,comment:j,image:SJ(_(e.convertImage||_J.dataUri)),table:C,tableRow:F,tableCell:S,break:G};return{convertToHtml:u}}var TJ=1;function SJ(e){return function(t,n,r){return[{type:"deferred",id:TJ++,value:function(){return e(t,n,r)}}]}}function ZR(e,t){return ub.warning("Unrecognised "+e+" style: '"+t.styleName+"' (Style ID: "+t.styleId+")")}function cb(e,t){return Jr.flatten(e.map(t),!0)}function YR(e,t){e.forEach(function(n){if(t(n),n.children)YR(n.children,t)})}var CJ=AJ.commentAuthorLabel=function(t){return t.authorInitials||""}});var eF=R(function(RJ){var kJ=Br();function QR(e){if(e.type==="text")return e.value;else if(e.type===kJ.types.tab)return"\t";else{var t=e.type==="paragraph"?`
217
217
 
218
- `:"";return(e.children||[]).map(QR).join("")+t}}RJ.convertElementToRawText=QR});var nF=R(function(rbe,tF){var us=tF.exports=function(e,t){this._tokens=e,this._startIndex=t||0};us.prototype.head=function(){return this._tokens[this._startIndex]};us.prototype.tail=function(e){return new us(this._tokens,this._startIndex+1)};us.prototype.toArray=function(){return this._tokens.slice(this._startIndex)};us.prototype.end=function(){return this._tokens[this._tokens.length-1]};us.prototype.to=function(e){var t=this.head().source,n=e.head()||e.end();return t.to(n.source)}});var rF=R(function(PJ){var OJ=nF();PJ.Parser=function(e){var t=function(n,r){return n(new OJ(r))};return{parseTokens:t}}});var oF=R(function(MJ){MJ.none=Object.create({value:function(){throw Error("Called value on none")},isNone:function(){return!0},isSome:function(){return!1},map:function(){return MJ.none},flatMap:function(){return MJ.none},filter:function(){return MJ.none},toArray:function(){return[]},orElse:iF,valueOrElse:iF});function iF(e){if(typeof e=="function")return e();else return e}MJ.some=function(e){return new Nt(e)};var Nt=function(e){this._value=e};Nt.prototype.value=function(){return this._value};Nt.prototype.isNone=function(){return!1};Nt.prototype.isSome=function(){return!0};Nt.prototype.map=function(e){return new Nt(e(this._value))};Nt.prototype.flatMap=function(e){return e(this._value)};Nt.prototype.filter=function(e){return e(this._value)?this:MJ.none};Nt.prototype.toArray=function(){return[this._value]};Nt.prototype.orElse=function(e){return this};Nt.prototype.valueOrElse=function(e){return this._value};MJ.isOption=function(e){return e===MJ.none||e instanceof Nt};MJ.fromNullable=function(e){if(e==null)return MJ.none;return new Nt(e)}});var jd=R(function(sbe,sF){sF.exports={failure:function(e,t){if(e.length<1)throw Error("Failure must have errors");return new pt({status:"failure",remaining:t,errors:e})},error:function(e,t){if(e.length<1)throw Error("Failure must have errors");return new pt({status:"error",remaining:t,errors:e})},success:function(e,t,n){return new pt({status:"success",value:e,source:n,remaining:t,errors:[]})},cut:function(e){return new pt({status:"cut",remaining:e,errors:[]})}};var pt=function(e){this._value=e.value,this._status=e.status,this._hasValue=e.value!==void 0,this._remaining=e.remaining,this._source=e.source,this._errors=e.errors};pt.prototype.map=function(e){if(this._hasValue)return new pt({value:e(this._value,this._source),status:this._status,remaining:this._remaining,source:this._source,errors:this._errors});else return this};pt.prototype.changeRemaining=function(e){return new pt({value:this._value,status:this._status,remaining:e,source:this._source,errors:this._errors})};pt.prototype.isSuccess=function(){return this._status==="success"||this._status==="cut"};pt.prototype.isFailure=function(){return this._status==="failure"};pt.prototype.isError=function(){return this._status==="error"};pt.prototype.isCut=function(){return this._status==="cut"};pt.prototype.value=function(){return this._value};pt.prototype.remaining=function(){return this._remaining};pt.prototype.source=function(){return this._source};pt.prototype.errors=function(){return this._errors}});var lb=R(function(WJ){WJ.error=function(e){return new qd(e)};var qd=function(e){this.expected=e.expected,this.actual=e.actual,this._location=e.location};qd.prototype.describe=function(){var e=this._location?this._location.describe()+`:
218
+ `:"";return(e.children||[]).map(QR).join("")+t}}RJ.convertElementToRawText=QR});var nF=R(function(obe,tF){var us=tF.exports=function(e,t){this._tokens=e,this._startIndex=t||0};us.prototype.head=function(){return this._tokens[this._startIndex]};us.prototype.tail=function(e){return new us(this._tokens,this._startIndex+1)};us.prototype.toArray=function(){return this._tokens.slice(this._startIndex)};us.prototype.end=function(){return this._tokens[this._tokens.length-1]};us.prototype.to=function(e){var t=this.head().source,n=e.head()||e.end();return t.to(n.source)}});var rF=R(function(PJ){var OJ=nF();PJ.Parser=function(e){var t=function(n,r){return n(new OJ(r))};return{parseTokens:t}}});var oF=R(function(MJ){MJ.none=Object.create({value:function(){throw Error("Called value on none")},isNone:function(){return!0},isSome:function(){return!1},map:function(){return MJ.none},flatMap:function(){return MJ.none},filter:function(){return MJ.none},toArray:function(){return[]},orElse:iF,valueOrElse:iF});function iF(e){if(typeof e=="function")return e();else return e}MJ.some=function(e){return new Nt(e)};var Nt=function(e){this._value=e};Nt.prototype.value=function(){return this._value};Nt.prototype.isNone=function(){return!1};Nt.prototype.isSome=function(){return!0};Nt.prototype.map=function(e){return new Nt(e(this._value))};Nt.prototype.flatMap=function(e){return e(this._value)};Nt.prototype.filter=function(e){return e(this._value)?this:MJ.none};Nt.prototype.toArray=function(){return[this._value]};Nt.prototype.orElse=function(e){return this};Nt.prototype.valueOrElse=function(e){return this._value};MJ.isOption=function(e){return e===MJ.none||e instanceof Nt};MJ.fromNullable=function(e){if(e==null)return MJ.none;return new Nt(e)}});var jd=R(function(cbe,sF){sF.exports={failure:function(e,t){if(e.length<1)throw Error("Failure must have errors");return new pt({status:"failure",remaining:t,errors:e})},error:function(e,t){if(e.length<1)throw Error("Failure must have errors");return new pt({status:"error",remaining:t,errors:e})},success:function(e,t,n){return new pt({status:"success",value:e,source:n,remaining:t,errors:[]})},cut:function(e){return new pt({status:"cut",remaining:e,errors:[]})}};var pt=function(e){this._value=e.value,this._status=e.status,this._hasValue=e.value!==void 0,this._remaining=e.remaining,this._source=e.source,this._errors=e.errors};pt.prototype.map=function(e){if(this._hasValue)return new pt({value:e(this._value,this._source),status:this._status,remaining:this._remaining,source:this._source,errors:this._errors});else return this};pt.prototype.changeRemaining=function(e){return new pt({value:this._value,status:this._status,remaining:e,source:this._source,errors:this._errors})};pt.prototype.isSuccess=function(){return this._status==="success"||this._status==="cut"};pt.prototype.isFailure=function(){return this._status==="failure"};pt.prototype.isError=function(){return this._status==="error"};pt.prototype.isCut=function(){return this._status==="cut"};pt.prototype.value=function(){return this._value};pt.prototype.remaining=function(){return this._remaining};pt.prototype.source=function(){return this._source};pt.prototype.errors=function(){return this._errors}});var lb=R(function(WJ){WJ.error=function(e){return new qd(e)};var qd=function(e){this.expected=e.expected,this.actual=e.actual,this._location=e.location};qd.prototype.describe=function(){var e=this._location?this._location.describe()+`:
219
219
  `:"";return e+"Expected "+this.expected+`
220
- but got `+this.actual};qd.prototype.lineNumber=function(){return this._location.lineNumber()};qd.prototype.characterNumber=function(){return this._location.characterNumber()}});var aF=R(function(qJ){var cbe=qJ.fromArray=function(e){var t=0,n=function(){return t<e.length};return new ji({hasNext:n,next:function(){if(!n())throw Error("No more elements");else return e[t++]}})},ji=function(e){this._iterator=e};ji.prototype.map=function(e){var t=this._iterator;return new ji({hasNext:function(){return t.hasNext()},next:function(){return e(t.next())}})};ji.prototype.filter=function(e){var t=this._iterator,n=!1,r=!1,i,o=function(){if(n)return;n=!0,r=!1;while(t.hasNext()&&!r)i=t.next(),r=e(i)};return new ji({hasNext:function(){return o(),r},next:function(){o();var s=i;return n=!1,s}})};ji.prototype.first=function(){var e=this._iterator;if(this._iterator.hasNext())return e.next();else return null};ji.prototype.toArray=function(){var e=[];while(this._iterator.hasNext())e.push(this._iterator.next());return e}});var db=R(function(zJ){var $d=Me(),cF=oF(),Yt=jd(),uF=lb(),$J=aF();zJ.token=function(e,t){var n=t!==void 0;return function(r){var i=r.head();if(i&&i.name===e&&(!n||i.value===t))return Yt.success(i.value,r.tail(),i.source);else{var o=dF({name:e,value:t});return fF(r,o)}}};zJ.tokenOfType=function(e){return zJ.token(e)};zJ.firstOf=function(e,t){if(!$d.isArray(t))t=Array.prototype.slice.call(arguments,1);return function(n){return $J.fromArray(t).map(function(r){return r(n)}).filter(function(r){return r.isSuccess()||r.isError()}).first()||fF(n,e)}};zJ.then=function(e,t){return function(n){var r=e(n);if(!r.map)console.log(r);return r.map(t)}};zJ.sequence=function(){var e=Array.prototype.slice.call(arguments,0),t=function(r){var i=$d.foldl(e,function(s,a){var{result:c,hasCut:u}=s;if(!c.isSuccess())return{result:c,hasCut:u};var d=a(c.remaining());if(d.isCut())return{result:c,hasCut:!0};else if(d.isSuccess()){var f;if(a.isCaptured)f=c.value().withValue(a,d.value());else f=c.value();var h=d.remaining(),p=r.to(h);return{result:Yt.success(f,h,p),hasCut:u}}else if(u)return{result:Yt.error(d.errors(),d.remaining()),hasCut:u};else return{result:d,hasCut:u}},{result:Yt.success(new hc,r),hasCut:!1}).result,o=r.to(i.remaining());return i.map(function(s){return s.withValue(zJ.sequence.source,o)})};t.head=function(){var r=$d.find(e,n);return zJ.then(t,zJ.sequence.extract(r))},t.map=function(r){return zJ.then(t,function(i){return r.apply(this,i.toArray())})};function n(r){return r.isCaptured}return t};var hc=function(e,t){this._values=e||{},this._valuesArray=t||[]};hc.prototype.withValue=function(e,t){if(e.captureName&&e.captureName in this._values)throw Error('Cannot add second value for capture "'+e.captureName+'"');else{var n=$d.clone(this._values);n[e.captureName]=t;var r=this._valuesArray.concat([t]);return new hc(n,r)}};hc.prototype.get=function(e){if(e.captureName in this._values)return this._values[e.captureName];else throw Error('No value for capture "'+e.captureName+'"')};hc.prototype.toArray=function(){return this._valuesArray};zJ.sequence.capture=function(e,t){var n=function(){return e.apply(this,arguments)};return n.captureName=t,n.isCaptured=!0,n};zJ.sequence.extract=function(e){return function(t){return t.get(e)}};zJ.sequence.applyValues=function(e){var t=Array.prototype.slice.call(arguments,1);return function(n){var r=t.map(function(i){return n.get(i)});return e.apply(this,r)}};zJ.sequence.source={captureName:"☃source☃"};zJ.sequence.cut=function(){return function(e){return Yt.cut(e)}};zJ.optional=function(e){return function(t){var n=e(t);if(n.isSuccess())return n.map(cF.some);else if(n.isFailure())return Yt.success(cF.none,t);else return n}};zJ.zeroOrMoreWithSeparator=function(e,t){return lF(e,t,!1)};zJ.oneOrMoreWithSeparator=function(e,t){return lF(e,t,!0)};var HJ=zJ.zeroOrMore=function(e){return function(t){var n=[],r;while((r=e(t))&&r.isSuccess())t=r.remaining(),n.push(r.value());if(r.isError())return r;else return Yt.success(n,t)}};zJ.oneOrMore=function(e){return zJ.oneOrMoreWithSeparator(e,GJ)};function GJ(e){return Yt.success(null,e)}var lF=function(e,t,n){return function(r){var i=e(r);if(i.isSuccess()){var o=zJ.sequence.capture(e,"main"),s=HJ(zJ.then(zJ.sequence(t,o),zJ.sequence.extract(o))),a=s(i.remaining());return Yt.success([i.value()].concat(a.value()),a.remaining())}else if(n||i.isError())return i;else return Yt.success([],r)}};zJ.leftAssociative=function(e,t,n){var r;if(n)r=[{func:n,rule:t}];else r=t;r=r.map(function(o){return zJ.then(o.rule,function(s){return function(a,c){return o.func(a,s,c)}})});var i=zJ.firstOf.apply(null,["rules"].concat(r));return function(o){var s=o,a=e(o);if(!a.isSuccess())return a;var c=i(a.remaining());while(c.isSuccess()){var u=c.remaining(),d=s.to(c.remaining()),f=c.value();a=Yt.success(f(a.value(),d),u,d),c=i(a.remaining())}if(c.isError())return c;return a}};zJ.leftAssociative.firstOf=function(){return Array.prototype.slice.call(arguments,0)};zJ.nonConsuming=function(e){return function(t){return e(t).changeRemaining(t)}};var dF=function(e){if(e.value)return e.name+' "'+e.value+'"';else return e.name};function fF(e,t){var n,r=e.head();if(r)n=uF.error({expected:t,actual:dF(r),location:r.source});else n=uF.error({expected:t,actual:"end of tokens"});return Yt.failure([n],e)}});var fb=R(function(pbe,yF){var hbe=yF.exports=function(e,t){var n={asString:function(){return e},range:function(r,i){return new qi(e,t,r,i)}};return n},qi=function(e,t,n,r){this._string=e,this._description=t,this._startIndex=n,this._endIndex=r};qi.prototype.to=function(e){return new qi(this._string,this._description,this._startIndex,e._endIndex)};qi.prototype.describe=function(){var e=this._position(),t=this._description?this._description+`
220
+ but got `+this.actual};qd.prototype.lineNumber=function(){return this._location.lineNumber()};qd.prototype.characterNumber=function(){return this._location.characterNumber()}});var aF=R(function(qJ){var lbe=qJ.fromArray=function(e){var t=0,n=function(){return t<e.length};return new ji({hasNext:n,next:function(){if(!n())throw Error("No more elements");else return e[t++]}})},ji=function(e){this._iterator=e};ji.prototype.map=function(e){var t=this._iterator;return new ji({hasNext:function(){return t.hasNext()},next:function(){return e(t.next())}})};ji.prototype.filter=function(e){var t=this._iterator,n=!1,r=!1,i,o=function(){if(n)return;n=!0,r=!1;while(t.hasNext()&&!r)i=t.next(),r=e(i)};return new ji({hasNext:function(){return o(),r},next:function(){o();var s=i;return n=!1,s}})};ji.prototype.first=function(){var e=this._iterator;if(this._iterator.hasNext())return e.next();else return null};ji.prototype.toArray=function(){var e=[];while(this._iterator.hasNext())e.push(this._iterator.next());return e}});var db=R(function(zJ){var $d=Me(),cF=oF(),Yt=jd(),uF=lb(),$J=aF();zJ.token=function(e,t){var n=t!==void 0;return function(r){var i=r.head();if(i&&i.name===e&&(!n||i.value===t))return Yt.success(i.value,r.tail(),i.source);else{var o=dF({name:e,value:t});return fF(r,o)}}};zJ.tokenOfType=function(e){return zJ.token(e)};zJ.firstOf=function(e,t){if(!$d.isArray(t))t=Array.prototype.slice.call(arguments,1);return function(n){return $J.fromArray(t).map(function(r){return r(n)}).filter(function(r){return r.isSuccess()||r.isError()}).first()||fF(n,e)}};zJ.then=function(e,t){return function(n){var r=e(n);if(!r.map)console.log(r);return r.map(t)}};zJ.sequence=function(){var e=Array.prototype.slice.call(arguments,0),t=function(r){var i=$d.foldl(e,function(s,a){var{result:c,hasCut:u}=s;if(!c.isSuccess())return{result:c,hasCut:u};var d=a(c.remaining());if(d.isCut())return{result:c,hasCut:!0};else if(d.isSuccess()){var f;if(a.isCaptured)f=c.value().withValue(a,d.value());else f=c.value();var h=d.remaining(),p=r.to(h);return{result:Yt.success(f,h,p),hasCut:u}}else if(u)return{result:Yt.error(d.errors(),d.remaining()),hasCut:u};else return{result:d,hasCut:u}},{result:Yt.success(new hc,r),hasCut:!1}).result,o=r.to(i.remaining());return i.map(function(s){return s.withValue(zJ.sequence.source,o)})};t.head=function(){var r=$d.find(e,n);return zJ.then(t,zJ.sequence.extract(r))},t.map=function(r){return zJ.then(t,function(i){return r.apply(this,i.toArray())})};function n(r){return r.isCaptured}return t};var hc=function(e,t){this._values=e||{},this._valuesArray=t||[]};hc.prototype.withValue=function(e,t){if(e.captureName&&e.captureName in this._values)throw Error('Cannot add second value for capture "'+e.captureName+'"');else{var n=$d.clone(this._values);n[e.captureName]=t;var r=this._valuesArray.concat([t]);return new hc(n,r)}};hc.prototype.get=function(e){if(e.captureName in this._values)return this._values[e.captureName];else throw Error('No value for capture "'+e.captureName+'"')};hc.prototype.toArray=function(){return this._valuesArray};zJ.sequence.capture=function(e,t){var n=function(){return e.apply(this,arguments)};return n.captureName=t,n.isCaptured=!0,n};zJ.sequence.extract=function(e){return function(t){return t.get(e)}};zJ.sequence.applyValues=function(e){var t=Array.prototype.slice.call(arguments,1);return function(n){var r=t.map(function(i){return n.get(i)});return e.apply(this,r)}};zJ.sequence.source={captureName:"☃source☃"};zJ.sequence.cut=function(){return function(e){return Yt.cut(e)}};zJ.optional=function(e){return function(t){var n=e(t);if(n.isSuccess())return n.map(cF.some);else if(n.isFailure())return Yt.success(cF.none,t);else return n}};zJ.zeroOrMoreWithSeparator=function(e,t){return lF(e,t,!1)};zJ.oneOrMoreWithSeparator=function(e,t){return lF(e,t,!0)};var HJ=zJ.zeroOrMore=function(e){return function(t){var n=[],r;while((r=e(t))&&r.isSuccess())t=r.remaining(),n.push(r.value());if(r.isError())return r;else return Yt.success(n,t)}};zJ.oneOrMore=function(e){return zJ.oneOrMoreWithSeparator(e,GJ)};function GJ(e){return Yt.success(null,e)}var lF=function(e,t,n){return function(r){var i=e(r);if(i.isSuccess()){var o=zJ.sequence.capture(e,"main"),s=HJ(zJ.then(zJ.sequence(t,o),zJ.sequence.extract(o))),a=s(i.remaining());return Yt.success([i.value()].concat(a.value()),a.remaining())}else if(n||i.isError())return i;else return Yt.success([],r)}};zJ.leftAssociative=function(e,t,n){var r;if(n)r=[{func:n,rule:t}];else r=t;r=r.map(function(o){return zJ.then(o.rule,function(s){return function(a,c){return o.func(a,s,c)}})});var i=zJ.firstOf.apply(null,["rules"].concat(r));return function(o){var s=o,a=e(o);if(!a.isSuccess())return a;var c=i(a.remaining());while(c.isSuccess()){var u=c.remaining(),d=s.to(c.remaining()),f=c.value();a=Yt.success(f(a.value(),d),u,d),c=i(a.remaining())}if(c.isError())return c;return a}};zJ.leftAssociative.firstOf=function(){return Array.prototype.slice.call(arguments,0)};zJ.nonConsuming=function(e){return function(t){return e(t).changeRemaining(t)}};var dF=function(e){if(e.value)return e.name+' "'+e.value+'"';else return e.name};function fF(e,t){var n,r=e.head();if(r)n=uF.error({expected:t,actual:dF(r),location:r.source});else n=uF.error({expected:t,actual:"end of tokens"});return Yt.failure([n],e)}});var fb=R(function(mbe,yF){var gbe=yF.exports=function(e,t){var n={asString:function(){return e},range:function(r,i){return new qi(e,t,r,i)}};return n},qi=function(e,t,n,r){this._string=e,this._description=t,this._startIndex=n,this._endIndex=r};qi.prototype.to=function(e){return new qi(this._string,this._description,this._startIndex,e._endIndex)};qi.prototype.describe=function(){var e=this._position(),t=this._description?this._description+`
221
221
  `:"";return t+"Line number: "+e.lineNumber+`
222
222
  Character number: `+e.characterNumber};qi.prototype.lineNumber=function(){return this._position().lineNumber};qi.prototype.characterNumber=function(){return this._position().characterNumber};qi.prototype._position=function(){var e=this,t=0,n=function(){return e._string.indexOf(`
223
- `,t)},r=1;while(n()!==-1&&n()<this._startIndex)t=n()+1,r+=1;var i=this._startIndex-t+1;return{lineNumber:r,characterNumber:i}}});var hb=R(function(gbe,bF){bF.exports=function(e,t,n){if(this.name=e,this.value=t,n)this.source=n}});var _F=R(function(eQ){var xF=db(),JJ=jd();eQ.parser=function(e,t,n){var r={rule:a,leftAssociative:c,rightAssociative:u},i=new pb(n.map(s)),o=xF.firstOf(e,t);function s(h){return{name:h.name,rule:QJ(h.ruleBuilder.bind(null,r))}}function a(){return d(i)}function c(h){return d(i.untilExclusive(h))}function u(h){return d(i.untilInclusive(h))}function d(h){return f.bind(null,h)}function f(h,p){var g=o(p);if(g.isSuccess())return h.apply(g);else return g}return r};function pb(e){function t(s){return new pb(e.slice(0,r().indexOf(s)))}function n(s){return new pb(e.slice(0,r().indexOf(s)+1))}function r(){return e.map(function(s){return s.name})}function i(s){var a,c;while(!0)if(a=o(s.remaining()),a.isSuccess())c=s.source().to(a.source()),s=JJ.success(a.value()(s.value(),c),a.remaining(),c);else if(a.isFailure())return s;else return a}function o(s){return xF.firstOf("infix",e.map(function(a){return a.rule}))(s)}return{apply:i,untilExclusive:t,untilInclusive:n}}eQ.infix=function(e,t){function n(r){return eQ.infix(e,function(i){var o=t(i);return function(s){var a=o(s);return a.map(function(c){return function(u,d){return r(u,c,d)}})}})}return{name:e,ruleBuilder:t,map:n}};var QJ=function(e){var t;return function(n){if(!t)t=e();return t(n)}}});var wF=R(function(iQ){var gb=hb(),nQ=fb();iQ.RegexTokeniser=rQ;function rQ(e){e=e.map(function(i){return{name:i.name,regex:new RegExp(i.regex.source,"g")}});function t(i,o){var s=new nQ(i,o),a=0,c=[];while(a<i.length){var u=n(i,a,s);a=u.endIndex,c.push(u.token)}return c.push(r(i,s)),c}function n(i,o,s){for(var a=0;a<e.length;a++){var c=e[a].regex;c.lastIndex=o;var u=c.exec(i);if(u){var f=o+u[0].length;if(u.index===o&&f>o){var d=u[1],h=new gb(e[a].name,d,s.range(o,f));return{token:h,endIndex:f}}}}var f=o+1,h=new gb("unrecognisedCharacter",i.substring(o,f),s.range(o,f));return{token:h,endIndex:f}}function r(i,o){return new gb("end",null,o.range(i.length,i.length))}return{tokenise:t}}});var mb=R(function(sQ){sQ.Parser=rF().Parser;sQ.rules=db();sQ.errors=lb();sQ.results=jd();sQ.StringSource=fb();sQ.Token=hb();sQ.bottomUp=_F();sQ.RegexTokeniser=wF().RegexTokeniser;sQ.rule=function(e){var t;return function(n){if(!t)t=e();return t(n)}}});var EF=R(function(TQ){TQ.paragraph=mQ;TQ.run=yQ;TQ.table=bQ;TQ.bold=new dn("bold");TQ.italic=new dn("italic");TQ.underline=new dn("underline");TQ.strikethrough=new dn("strikethrough");TQ.allCaps=new dn("allCaps");TQ.smallCaps=new dn("smallCaps");TQ.highlight=vQ;TQ.commentReference=new dn("commentReference");TQ.lineBreak=new Hd({breakType:"line"});TQ.pageBreak=new Hd({breakType:"page"});TQ.columnBreak=new Hd({breakType:"column"});TQ.equalTo=_Q;TQ.startsWith=wQ;function mQ(e){return new dn("paragraph",e)}function yQ(e){return new dn("run",e)}function bQ(e){return new dn("table",e)}function vQ(e){return new DF(e)}function dn(e,t){if(t=t||{},this._elementType=e,this._styleId=t.styleId,this._styleName=t.styleName,t.list)this._listIndex=t.list.levelIndex,this._listIsOrdered=t.list.isOrdered}dn.prototype.matches=function(e){return e.type===this._elementType&&(this._styleId===void 0||e.styleId===this._styleId)&&(this._styleName===void 0||e.styleName&&this._styleName.operator(this._styleName.operand,e.styleName))&&(this._listIndex===void 0||xQ(e,this._listIndex,this._listIsOrdered))&&(this._breakType===void 0||this._breakType===e.breakType)};function DF(e){e=e||{},this._color=e.color}DF.prototype.matches=function(e){return e.type==="highlight"&&(this._color===void 0||e.color===this._color)};function Hd(e){e=e||{},this._breakType=e.breakType}Hd.prototype.matches=function(e){return e.type==="break"&&(this._breakType===void 0||e.breakType===this._breakType)};function xQ(e,t,n){return e.numbering&&e.numbering.level==t&&e.numbering.isOrdered==n}function _Q(e){return{operator:DQ,operand:e}}function wQ(e){return{operator:EQ,operand:e}}function DQ(e,t){return e.toUpperCase()===t.toUpperCase()}function EQ(e,t){return t.toUpperCase().indexOf(e.toUpperCase())===0}});var SF=R(function(GQ){var qQ=mb(),$Q=qQ.RegexTokeniser;GQ.tokenise=HQ;var TF="'((?:\\\\.|[^'])*)";function HQ(e){var t="(?:[a-zA-Z\\-_]|\\\\.)",n=new $Q([{name:"identifier",regex:new RegExp("("+t+"(?:"+t+"|[0-9])*)")},{name:"dot",regex:/\./},{name:"colon",regex:/:/},{name:"gt",regex:/>/},{name:"whitespace",regex:/\s+/},{name:"arrow",regex:/=>/},{name:"equals",regex:/=/},{name:"startsWith",regex:/\^=/},{name:"open-paren",regex:/\(/},{name:"close-paren",regex:/\)/},{name:"open-square-bracket",regex:/\[/},{name:"close-square-bracket",regex:/\]/},{name:"string",regex:new RegExp(TF+"'")},{name:"unterminated-string",regex:new RegExp(TF)},{name:"integer",regex:/([0-9]+)/},{name:"choice",regex:/\|/},{name:"bang",regex:/(!)/}]);return n.tokenise(e)}});var kF=R(function(aee){var VQ=Me(),H=mb(),gt=EF(),Gd=dc(),XQ=SF().tokenise,yb=wn();aee.readHtmlPath=JQ;aee.readDocumentMatcher=YQ;aee.readStyle=KQ;function KQ(e){return bb(see,e)}function ZQ(){return H.rules.sequence(H.rules.sequence.capture(CF()),H.rules.tokenOfType("whitespace"),H.rules.tokenOfType("arrow"),H.rules.sequence.capture(H.rules.optional(H.rules.sequence(H.rules.tokenOfType("whitespace"),H.rules.sequence.capture(AF())).head())),H.rules.tokenOfType("end")).map(function(e,t){return{from:e,to:t.valueOrElse(Gd.empty)}})}function YQ(e){return bb(CF(),e)}function CF(){var e=H.rules.sequence,t=function(A,E){return H.rules.then(H.rules.token("identifier",A),function(){return E})},n=t("p",gt.paragraph),r=t("r",gt.run),i=H.rules.firstOf("p or r or table",n,r),o=H.rules.sequence(H.rules.tokenOfType("dot"),H.rules.sequence.cut(),H.rules.sequence.capture(zd)).map(function(A){return{styleId:A}}),s=H.rules.firstOf("style name matcher",H.rules.then(H.rules.sequence(H.rules.tokenOfType("equals"),H.rules.sequence.cut(),H.rules.sequence.capture(ls)).head(),function(A){return{styleName:gt.equalTo(A)}}),H.rules.then(H.rules.sequence(H.rules.tokenOfType("startsWith"),H.rules.sequence.cut(),H.rules.sequence.capture(ls)).head(),function(A){return{styleName:gt.startsWith(A)}})),a=H.rules.sequence(H.rules.tokenOfType("open-square-bracket"),H.rules.sequence.cut(),H.rules.token("identifier","style-name"),H.rules.sequence.capture(s),H.rules.tokenOfType("close-square-bracket")).head(),c=H.rules.firstOf("list type",t("ordered-list",{isOrdered:!0}),t("unordered-list",{isOrdered:!1})),u=e(H.rules.tokenOfType("colon"),e.capture(c),e.cut(),H.rules.tokenOfType("open-paren"),e.capture(QQ),H.rules.tokenOfType("close-paren")).map(function(A,E){return{list:{isOrdered:A.isOrdered,levelIndex:E-1}}});function d(A){var E=H.rules.firstOf.apply(H.rules.firstOf,["matcher suffix"].concat(A)),U=H.rules.zeroOrMore(E);return H.rules.then(U,function(C){var N={};return C.forEach(function(F){VQ.extend(N,F)}),N})}var f=e(e.capture(i),e.capture(d([o,a,u]))).map(function(A,E){return A(E)}),h=e(H.rules.token("identifier","table"),e.capture(d([o,a]))).map(function(A){return gt.table(A)}),p=t("b",gt.bold),g=t("i",gt.italic),y=t("u",gt.underline),v=t("strike",gt.strikethrough),b=t("all-caps",gt.allCaps),_=t("small-caps",gt.smallCaps),m=e(H.rules.token("identifier","highlight"),H.rules.sequence.capture(H.rules.optional(H.rules.sequence(H.rules.tokenOfType("open-square-bracket"),H.rules.sequence.cut(),H.rules.token("identifier","color"),H.rules.tokenOfType("equals"),H.rules.sequence.capture(ls),H.rules.tokenOfType("close-square-bracket")).head()))).map(function(A){return gt.highlight({color:A.valueOrElse(void 0)})}),x=t("comment-reference",gt.commentReference),D=e(H.rules.token("identifier","br"),e.cut(),H.rules.tokenOfType("open-square-bracket"),H.rules.token("identifier","type"),H.rules.tokenOfType("equals"),e.capture(ls),H.rules.tokenOfType("close-square-bracket")).map(function(A){switch(A){case"line":return gt.lineBreak;case"page":return gt.pageBreak;case"column":return gt.columnBreak;default:}});return H.rules.firstOf("element type",f,h,p,g,y,v,b,_,m,x,D)}function JQ(e){return bb(AF(),e)}function AF(){var e=H.rules.sequence.capture,t=H.rules.tokenOfType("whitespace"),n=H.rules.then(H.rules.optional(H.rules.sequence(H.rules.tokenOfType("colon"),H.rules.token("identifier","fresh"))),function(s){return s.map(function(){return!0}).valueOrElse(!1)}),r=H.rules.then(H.rules.optional(H.rules.sequence(H.rules.tokenOfType("colon"),H.rules.token("identifier","separator"),H.rules.tokenOfType("open-paren"),e(ls),H.rules.tokenOfType("close-paren")).head()),function(s){return s.valueOrElse("")}),i=H.rules.oneOrMoreWithSeparator(zd,H.rules.tokenOfType("choice")),o=H.rules.sequence(e(i),e(H.rules.zeroOrMore(ree)),e(n),e(r)).map(function(s,a,c,u){var d=Object.create(null),f={};if(a.forEach(function(h){if(h.append&&d[h.name])d[h.name]+=" "+h.value;else d[h.name]=h.value}),c)f.fresh=!0;if(u)f.separator=u;return Gd.element(s,d,f)});return H.rules.firstOf("html path",H.rules.then(H.rules.tokenOfType("bang"),function(){return Gd.ignore}),H.rules.then(H.rules.zeroOrMoreWithSeparator(o,H.rules.sequence(t,H.rules.tokenOfType("gt"),t)),Gd.elements))}var zd=H.rules.then(H.rules.tokenOfType("identifier"),UF),QQ=H.rules.tokenOfType("integer"),ls=H.rules.then(H.rules.tokenOfType("string"),UF),eee={n:`
223
+ `,t)},r=1;while(n()!==-1&&n()<this._startIndex)t=n()+1,r+=1;var i=this._startIndex-t+1;return{lineNumber:r,characterNumber:i}}});var hb=R(function(ybe,bF){bF.exports=function(e,t,n){if(this.name=e,this.value=t,n)this.source=n}});var _F=R(function(eQ){var xF=db(),JJ=jd();eQ.parser=function(e,t,n){var r={rule:a,leftAssociative:c,rightAssociative:u},i=new pb(n.map(s)),o=xF.firstOf(e,t);function s(h){return{name:h.name,rule:QJ(h.ruleBuilder.bind(null,r))}}function a(){return d(i)}function c(h){return d(i.untilExclusive(h))}function u(h){return d(i.untilInclusive(h))}function d(h){return f.bind(null,h)}function f(h,p){var g=o(p);if(g.isSuccess())return h.apply(g);else return g}return r};function pb(e){function t(s){return new pb(e.slice(0,r().indexOf(s)))}function n(s){return new pb(e.slice(0,r().indexOf(s)+1))}function r(){return e.map(function(s){return s.name})}function i(s){var a,c;while(!0)if(a=o(s.remaining()),a.isSuccess())c=s.source().to(a.source()),s=JJ.success(a.value()(s.value(),c),a.remaining(),c);else if(a.isFailure())return s;else return a}function o(s){return xF.firstOf("infix",e.map(function(a){return a.rule}))(s)}return{apply:i,untilExclusive:t,untilInclusive:n}}eQ.infix=function(e,t){function n(r){return eQ.infix(e,function(i){var o=t(i);return function(s){var a=o(s);return a.map(function(c){return function(u,d){return r(u,c,d)}})}})}return{name:e,ruleBuilder:t,map:n}};var QJ=function(e){var t;return function(n){if(!t)t=e();return t(n)}}});var wF=R(function(iQ){var gb=hb(),nQ=fb();iQ.RegexTokeniser=rQ;function rQ(e){e=e.map(function(i){return{name:i.name,regex:new RegExp(i.regex.source,"g")}});function t(i,o){var s=new nQ(i,o),a=0,c=[];while(a<i.length){var u=n(i,a,s);a=u.endIndex,c.push(u.token)}return c.push(r(i,s)),c}function n(i,o,s){for(var a=0;a<e.length;a++){var c=e[a].regex;c.lastIndex=o;var u=c.exec(i);if(u){var f=o+u[0].length;if(u.index===o&&f>o){var d=u[1],h=new gb(e[a].name,d,s.range(o,f));return{token:h,endIndex:f}}}}var f=o+1,h=new gb("unrecognisedCharacter",i.substring(o,f),s.range(o,f));return{token:h,endIndex:f}}function r(i,o){return new gb("end",null,o.range(i.length,i.length))}return{tokenise:t}}});var mb=R(function(sQ){sQ.Parser=rF().Parser;sQ.rules=db();sQ.errors=lb();sQ.results=jd();sQ.StringSource=fb();sQ.Token=hb();sQ.bottomUp=_F();sQ.RegexTokeniser=wF().RegexTokeniser;sQ.rule=function(e){var t;return function(n){if(!t)t=e();return t(n)}}});var EF=R(function(TQ){TQ.paragraph=mQ;TQ.run=yQ;TQ.table=bQ;TQ.bold=new dn("bold");TQ.italic=new dn("italic");TQ.underline=new dn("underline");TQ.strikethrough=new dn("strikethrough");TQ.allCaps=new dn("allCaps");TQ.smallCaps=new dn("smallCaps");TQ.highlight=vQ;TQ.commentReference=new dn("commentReference");TQ.lineBreak=new Hd({breakType:"line"});TQ.pageBreak=new Hd({breakType:"page"});TQ.columnBreak=new Hd({breakType:"column"});TQ.equalTo=_Q;TQ.startsWith=wQ;function mQ(e){return new dn("paragraph",e)}function yQ(e){return new dn("run",e)}function bQ(e){return new dn("table",e)}function vQ(e){return new DF(e)}function dn(e,t){if(t=t||{},this._elementType=e,this._styleId=t.styleId,this._styleName=t.styleName,t.list)this._listIndex=t.list.levelIndex,this._listIsOrdered=t.list.isOrdered}dn.prototype.matches=function(e){return e.type===this._elementType&&(this._styleId===void 0||e.styleId===this._styleId)&&(this._styleName===void 0||e.styleName&&this._styleName.operator(this._styleName.operand,e.styleName))&&(this._listIndex===void 0||xQ(e,this._listIndex,this._listIsOrdered))&&(this._breakType===void 0||this._breakType===e.breakType)};function DF(e){e=e||{},this._color=e.color}DF.prototype.matches=function(e){return e.type==="highlight"&&(this._color===void 0||e.color===this._color)};function Hd(e){e=e||{},this._breakType=e.breakType}Hd.prototype.matches=function(e){return e.type==="break"&&(this._breakType===void 0||e.breakType===this._breakType)};function xQ(e,t,n){return e.numbering&&e.numbering.level==t&&e.numbering.isOrdered==n}function _Q(e){return{operator:DQ,operand:e}}function wQ(e){return{operator:EQ,operand:e}}function DQ(e,t){return e.toUpperCase()===t.toUpperCase()}function EQ(e,t){return t.toUpperCase().indexOf(e.toUpperCase())===0}});var SF=R(function(GQ){var qQ=mb(),$Q=qQ.RegexTokeniser;GQ.tokenise=HQ;var TF="'((?:\\\\.|[^'])*)";function HQ(e){var t="(?:[a-zA-Z\\-_]|\\\\.)",n=new $Q([{name:"identifier",regex:new RegExp("("+t+"(?:"+t+"|[0-9])*)")},{name:"dot",regex:/\./},{name:"colon",regex:/:/},{name:"gt",regex:/>/},{name:"whitespace",regex:/\s+/},{name:"arrow",regex:/=>/},{name:"equals",regex:/=/},{name:"startsWith",regex:/\^=/},{name:"open-paren",regex:/\(/},{name:"close-paren",regex:/\)/},{name:"open-square-bracket",regex:/\[/},{name:"close-square-bracket",regex:/\]/},{name:"string",regex:new RegExp(TF+"'")},{name:"unterminated-string",regex:new RegExp(TF)},{name:"integer",regex:/([0-9]+)/},{name:"choice",regex:/\|/},{name:"bang",regex:/(!)/}]);return n.tokenise(e)}});var kF=R(function(aee){var VQ=Me(),H=mb(),gt=EF(),Gd=dc(),XQ=SF().tokenise,yb=wn();aee.readHtmlPath=JQ;aee.readDocumentMatcher=YQ;aee.readStyle=KQ;function KQ(e){return bb(see,e)}function ZQ(){return H.rules.sequence(H.rules.sequence.capture(CF()),H.rules.tokenOfType("whitespace"),H.rules.tokenOfType("arrow"),H.rules.sequence.capture(H.rules.optional(H.rules.sequence(H.rules.tokenOfType("whitespace"),H.rules.sequence.capture(AF())).head())),H.rules.tokenOfType("end")).map(function(e,t){return{from:e,to:t.valueOrElse(Gd.empty)}})}function YQ(e){return bb(CF(),e)}function CF(){var e=H.rules.sequence,t=function(A,E){return H.rules.then(H.rules.token("identifier",A),function(){return E})},n=t("p",gt.paragraph),r=t("r",gt.run),i=H.rules.firstOf("p or r or table",n,r),o=H.rules.sequence(H.rules.tokenOfType("dot"),H.rules.sequence.cut(),H.rules.sequence.capture(zd)).map(function(A){return{styleId:A}}),s=H.rules.firstOf("style name matcher",H.rules.then(H.rules.sequence(H.rules.tokenOfType("equals"),H.rules.sequence.cut(),H.rules.sequence.capture(ls)).head(),function(A){return{styleName:gt.equalTo(A)}}),H.rules.then(H.rules.sequence(H.rules.tokenOfType("startsWith"),H.rules.sequence.cut(),H.rules.sequence.capture(ls)).head(),function(A){return{styleName:gt.startsWith(A)}})),a=H.rules.sequence(H.rules.tokenOfType("open-square-bracket"),H.rules.sequence.cut(),H.rules.token("identifier","style-name"),H.rules.sequence.capture(s),H.rules.tokenOfType("close-square-bracket")).head(),c=H.rules.firstOf("list type",t("ordered-list",{isOrdered:!0}),t("unordered-list",{isOrdered:!1})),u=e(H.rules.tokenOfType("colon"),e.capture(c),e.cut(),H.rules.tokenOfType("open-paren"),e.capture(QQ),H.rules.tokenOfType("close-paren")).map(function(A,E){return{list:{isOrdered:A.isOrdered,levelIndex:E-1}}});function d(A){var E=H.rules.firstOf.apply(H.rules.firstOf,["matcher suffix"].concat(A)),U=H.rules.zeroOrMore(E);return H.rules.then(U,function(C){var N={};return C.forEach(function(F){VQ.extend(N,F)}),N})}var f=e(e.capture(i),e.capture(d([o,a,u]))).map(function(A,E){return A(E)}),h=e(H.rules.token("identifier","table"),e.capture(d([o,a]))).map(function(A){return gt.table(A)}),p=t("b",gt.bold),g=t("i",gt.italic),y=t("u",gt.underline),v=t("strike",gt.strikethrough),b=t("all-caps",gt.allCaps),_=t("small-caps",gt.smallCaps),m=e(H.rules.token("identifier","highlight"),H.rules.sequence.capture(H.rules.optional(H.rules.sequence(H.rules.tokenOfType("open-square-bracket"),H.rules.sequence.cut(),H.rules.token("identifier","color"),H.rules.tokenOfType("equals"),H.rules.sequence.capture(ls),H.rules.tokenOfType("close-square-bracket")).head()))).map(function(A){return gt.highlight({color:A.valueOrElse(void 0)})}),x=t("comment-reference",gt.commentReference),D=e(H.rules.token("identifier","br"),e.cut(),H.rules.tokenOfType("open-square-bracket"),H.rules.token("identifier","type"),H.rules.tokenOfType("equals"),e.capture(ls),H.rules.tokenOfType("close-square-bracket")).map(function(A){switch(A){case"line":return gt.lineBreak;case"page":return gt.pageBreak;case"column":return gt.columnBreak;default:}});return H.rules.firstOf("element type",f,h,p,g,y,v,b,_,m,x,D)}function JQ(e){return bb(AF(),e)}function AF(){var e=H.rules.sequence.capture,t=H.rules.tokenOfType("whitespace"),n=H.rules.then(H.rules.optional(H.rules.sequence(H.rules.tokenOfType("colon"),H.rules.token("identifier","fresh"))),function(s){return s.map(function(){return!0}).valueOrElse(!1)}),r=H.rules.then(H.rules.optional(H.rules.sequence(H.rules.tokenOfType("colon"),H.rules.token("identifier","separator"),H.rules.tokenOfType("open-paren"),e(ls),H.rules.tokenOfType("close-paren")).head()),function(s){return s.valueOrElse("")}),i=H.rules.oneOrMoreWithSeparator(zd,H.rules.tokenOfType("choice")),o=H.rules.sequence(e(i),e(H.rules.zeroOrMore(ree)),e(n),e(r)).map(function(s,a,c,u){var d=Object.create(null),f={};if(a.forEach(function(h){if(h.append&&d[h.name])d[h.name]+=" "+h.value;else d[h.name]=h.value}),c)f.fresh=!0;if(u)f.separator=u;return Gd.element(s,d,f)});return H.rules.firstOf("html path",H.rules.then(H.rules.tokenOfType("bang"),function(){return Gd.ignore}),H.rules.then(H.rules.zeroOrMoreWithSeparator(o,H.rules.sequence(t,H.rules.tokenOfType("gt"),t)),Gd.elements))}var zd=H.rules.then(H.rules.tokenOfType("identifier"),UF),QQ=H.rules.tokenOfType("integer"),ls=H.rules.then(H.rules.tokenOfType("string"),UF),eee={n:`
224
224
  `,r:"\r",t:"\t"};function UF(e){return e.replace(/\\(.)/g,function(t,n){return eee[n]||n})}var tee=H.rules.sequence(H.rules.tokenOfType("open-square-bracket"),H.rules.sequence.cut(),H.rules.sequence.capture(zd),H.rules.tokenOfType("equals"),H.rules.sequence.capture(ls),H.rules.tokenOfType("close-square-bracket")).map(function(e,t){return{name:e,value:t,append:!1}}),nee=H.rules.sequence(H.rules.tokenOfType("dot"),H.rules.sequence.cut(),H.rules.sequence.capture(zd)).map(function(e){return{name:"class",value:e,append:!0}}),ree=H.rules.firstOf("attribute or class",tee,nee);function bb(e,t){var n=XQ(t),r=H.Parser(),i=r.parseTokens(e,n);if(i.isSuccess())return yb.success(i.value());else return new yb.Result(null,[yb.warning(iee(t,i))])}function iee(e,t){return"Did not understand this style mapping, so ignored it: "+e+`
225
225
  `+t.errors().map(oee).join(`
226
226
  `)}function oee(e){return"Error was at character number "+e.characterNumber()+": Expected "+e.expected+" but got "+e.actual}var see=ZQ()});var OF=R(function(gee){gee.readOptions=hee;var FF=Me(),dee=gee._defaultStyleMap=["p.Heading1 => h1:fresh","p.Heading2 => h2:fresh","p.Heading3 => h3:fresh","p.Heading4 => h4:fresh","p.Heading5 => h5:fresh","p.Heading6 => h6:fresh","p[style-name='Heading 1'] => h1:fresh","p[style-name='Heading 2'] => h2:fresh","p[style-name='Heading 3'] => h3:fresh","p[style-name='Heading 4'] => h4:fresh","p[style-name='Heading 5'] => h5:fresh","p[style-name='Heading 6'] => h6:fresh","p[style-name='heading 1'] => h1:fresh","p[style-name='heading 2'] => h2:fresh","p[style-name='heading 3'] => h3:fresh","p[style-name='heading 4'] => h4:fresh","p[style-name='heading 5'] => h5:fresh","p[style-name='heading 6'] => h6:fresh","p.Heading => h1:fresh","p[style-name='Heading'] => h1:fresh","r[style-name='Strong'] => strong","p[style-name='footnote text'] => p:fresh","r[style-name='footnote reference'] =>","p[style-name='endnote text'] => p:fresh","r[style-name='endnote reference'] =>","p[style-name='annotation text'] => p:fresh","r[style-name='annotation reference'] =>","p[style-name='Footnote'] => p:fresh","r[style-name='Footnote anchor'] =>","p[style-name='Endnote'] => p:fresh","r[style-name='Endnote anchor'] =>","p:unordered-list(1) => ul > li:fresh","p:unordered-list(2) => ul|ol > li > ul > li:fresh","p:unordered-list(3) => ul|ol > li > ul|ol > li > ul > li:fresh","p:unordered-list(4) => ul|ol > li > ul|ol > li > ul|ol > li > ul > li:fresh","p:unordered-list(5) => ul|ol > li > ul|ol > li > ul|ol > li > ul|ol > li > ul > li:fresh","p:ordered-list(1) => ol > li:fresh","p:ordered-list(2) => ul|ol > li > ol > li:fresh","p:ordered-list(3) => ul|ol > li > ul|ol > li > ol > li:fresh","p:ordered-list(4) => ul|ol > li > ul|ol > li > ul|ol > li > ol > li:fresh","p:ordered-list(5) => ul|ol > li > ul|ol > li > ul|ol > li > ul|ol > li > ol > li:fresh","r[style-name='Hyperlink'] =>","p[style-name='Normal'] => p:fresh","p.Body => p:fresh","p[style-name='Body'] => p:fresh"],fee=gee._standardOptions={externalFileAccess:!1,transformDocument:pee,includeDefaultStyleMap:!0,includeEmbeddedStyleMap:!0};function hee(e){return e=e||{},FF.extend({},fee,e,{customStyleMap:RF(e.styleMap),readStyleMap:function(){var t=this.customStyleMap;if(this.includeEmbeddedStyleMap)t=t.concat(RF(this.embeddedStyleMap));if(this.includeDefaultStyleMap)t=t.concat(dee);return t}})}function RF(e){if(!e)return[];else if(FF.isString(e))return e.split(`
227
227
  `).map(function(t){return t.trim()}).filter(function(t){return t!==""&&t.charAt(0)!=="#"});else return e}function pee(e){return e}});var IF=R(function(xee){var yee=re("fs"),Vd=Xn(),PF=Cy();xee.openZip=vee;var bee=Vd.promisify(yee.readFile);function vee(e){if(e.path)return bee(e.path).then(PF.openArrayBuffer);else if(e.buffer)return Vd.resolve(PF.openArrayBuffer(e.buffer));else if(e.file)return Vd.resolve(e.file);else return Vd.reject(Error("Could not find file in options"))}});var MF=R(function(Tee){var wee=dc(),Dee=fc();Tee.element=Eee;function Eee(e){return function(t){return Dee.elementWithTag(wee.element(e),[t])}}});var BF=R(function(Wee){var Cee=Me(),NF=TR(),vb=AR(),Aee=JR().DocumentConverter,Uee=eF().convertElementToRawText,kee=kF().readStyle,Ree=OF().readOptions,Xd=IF(),Fee=wn().Result;Wee.convertToHtml=Oee;Wee.convertToMarkdown=Pee;Wee.convert=xb;Wee.extractRawText=Bee;Wee.images=ab();Wee.transforms=Yy();Wee.underline=MF();Wee.embedStyleMap=Lee;Wee.readEmbeddedStyleMap=Iee;function Oee(e,t){return xb(e,t)}function Pee(e,t){var n=Object.create(t||{});return n.outputFormat="markdown",xb(e,n)}function xb(e,t){return t=Ree(t),Xd.openZip(e).tap(function(n){return vb.readStyleMap(n).then(function(r){t.embeddedStyleMap=r})}).then(function(n){return NF.read(n,e,t).then(function(r){return r.map(t.transformDocument)}).then(function(r){return Mee(r,t)})})}function Iee(e){return Xd.openZip(e).then(vb.readStyleMap)}function Mee(e,t){var n=Nee(t.readStyleMap()),r=Cee.extend({},t,{styleMap:n.value}),i=new Aee(r);return e.flatMapThen(function(o){return n.flatMapThen(function(s){return i.convertToHtml(o)})})}function Nee(e){return Fee.combine((e||[]).map(kee)).map(function(t){return t.filter(function(n){return!!n})})}function Bee(e){return Xd.openZip(e).then(NF.read).then(function(t){return t.map(Uee)})}function Lee(e,t){return Xd.openZip(e).tap(function(n){return vb.writeStyleMap(n,t)}).then(function(n){return n.toArrayBuffer()}).then(function(n){return{toArrayBuffer:function(){return n},toBuffer:function(){return Buffer.from(n)}}})}Wee.styleMapping=function(){throw Error(`Use a raw string instead of mammoth.styleMapping e.g. "p[style-name='Title'] => h1" instead of mammoth.styleMapping("p[style-name='Title'] => h1")`)}});import{randomUUID as are}from"node:crypto";import{renameSync as cre,unlinkSync as ure,writeFileSync as lre}from"node:fs";import{basename as dre,dirname as fre,join as hre}from"node:path";function wc(e,t){let n=fre(e),r=hre(n,`.${dre(e)}-${are()}.tmp`),i=!1,o=null;try{lre(r,t,{encoding:"utf8",flag:"wx",mode:384,flush:!0}),cre(r,e)}catch(s){throw i=!0,s}finally{try{ure(r)}catch(s){if(s.code!=="ENOENT"&&!i)o=s}}if(o)throw o}var fv=()=>{};var V3={};Q(V3,{CONFIG_FILE_WHITELIST:()=>pv,MAX_BACKUPS:()=>G3,configFilePath:()=>ti,isWhitelistedConfigFile:()=>xre,listConfigFiles:()=>_re,readConfigFile:()=>wre,resolveConfigFileDir:()=>en,writeConfigFile:()=>Dre});import{existsSync as hv,readFileSync as pre,readdirSync as gre,renameSync as mre,statSync as yre,unlinkSync as bre}from"node:fs";import{dirname as H3,join as hf}from"node:path";import{getAgentDir as vre}from"@earendil-works/pi-coding-agent";function xre(e){return/^[A-Za-z0-9][A-Za-z0-9._-]*\.json$/.test(e)&&z3.has(e)}function ti(e,t){return hf(t??vre(),e)}function en(e,t){if(!t)return;return hv(hf(t,e))?t:void 0}function _re(e){return pv.map((t)=>{let n=ti(t.name,en(t.name,e)),r=!1,i=0,o=null;try{let s=yre(n);r=s.isFile(),i=r?s.size:0,o=r?s.mtime.toISOString():null}catch{}return{...t,exists:r,sizeBytes:i,modifiedAt:o}})}function wre(e,t){let n=ti(e,en(e,t));if(!hv(n))return"{}";return pre(n,"utf8")}function Dre(e,t,n){let r;try{r=JSON.parse(t)}catch(s){throw Error(`invalid JSON: ${s instanceof Error?s.message:String(s)}`,{cause:s})}if(typeof r!=="object"||r===null||Array.isArray(r))throw Error("config file root must be a JSON object");let i=`${JSON.stringify(r,null,2)}
228
- `,o=ti(e,en(e,n));if(hv(o)){let s=`${e}.bak-${new Date().toISOString().replace(/[:.]/g,"-")}`;mre(o,hf(H3(o),s)),Ere(e,en(e,n))}return wc(o,i),z3.get(e)?.onWrite?.(),i}function Ere(e,t){let n=H3(ti(e,t)),r=`${e}.bak-`,i=[];try{i=gre(n).filter((s)=>s.startsWith(r)).sort()}catch{return}let o=i.slice(0,Math.max(0,i.length-G3));for(let s of o)try{bre(hf(n,s))}catch{}}var G3=10,pv,z3;var Dc=me(()=>{fv();pv=[{name:"models.json",description:"pi 模型/供应商配置(providers 与模型列表)",onWrite:()=>ke()}],z3=new Map(pv.map((e)=>[e.name,e]))});var lr=R(function(A_e,yO){var gO=["nodebuffer","arraybuffer","fragments"],mO=typeof Blob<"u";if(mO)gO.push("blob");yO.exports={BINARY_TYPES:gO,CLOSE_TIMEOUT:30000,EMPTY_BUFFER:Buffer.alloc(0),GUID:"258EAFA5-E914-47DA-95CA-C5AB0DC85B11",hasBlob:mO,kForOnEventAttribute:Symbol("kIsForOnEventAttribute"),kListener:Symbol("kListener"),kStatusCode:Symbol("status-code"),kWebSocket:Symbol("websocket"),NOOP:()=>{}}});var Uc=R(function(U_e,Ef){var{EMPTY_BUFFER:Tae}=lr(),ox=Buffer[Symbol.species];function Sae(e,t){if(e.length===0)return Tae;if(e.length===1)return e[0];let n=Buffer.allocUnsafe(t),r=0;for(let i=0;i<e.length;i++){let o=e[i];n.set(o,r),r+=o.length}if(r<t)return new ox(n.buffer,n.byteOffset,r);return n}function bO(e,t,n,r,i){for(let o=0;o<i;o++)n[r+o]=e[o]^t[o&3]}function vO(e,t){for(let n=0;n<e.length;n++)e[n]^=t[n&3]}function Cae(e){if(e.length===e.buffer.byteLength)return e.buffer;return e.buffer.slice(e.byteOffset,e.byteOffset+e.length)}function sx(e){if(sx.readOnly=!0,Buffer.isBuffer(e))return e;let t;if(e instanceof ArrayBuffer)t=new ox(e);else if(ArrayBuffer.isView(e))t=new ox(e.buffer,e.byteOffset,e.byteLength);else t=Buffer.from(e),sx.readOnly=!1;return t}Ef.exports={concat:Sae,mask:bO,toArrayBuffer:Cae,toBuffer:sx,unmask:vO};if(!process.env.WS_NO_BUFFER_UTIL)try{let e=(()=>{throw new Error("Cannot require module "+"bufferutil");})();Ef.exports.mask=function(t,n,r,i,o){if(o<48)bO(t,n,r,i,o);else e.mask(t,n,r,i,o)},Ef.exports.unmask=function(t,n){if(t.length<32)vO(t,n);else e.unmask(t,n)}}catch(e){}});var DO=R(function(k_e,wO){var xO=Symbol("kDone"),ax=Symbol("kRun");class _O{constructor(e){this[xO]=()=>{this.pending--,this[ax]()},this.concurrency=e||1/0,this.jobs=[],this.pending=0}add(e){this.jobs.push(e),this[ax]()}[ax](){if(this.pending===this.concurrency)return;if(this.jobs.length){let e=this.jobs.shift();this.pending++,e(this[xO])}}}wO.exports=_O});var xs=R(function(R_e,AO){var kc=re("zlib"),EO=Uc(),Aae=DO(),{kStatusCode:TO}=lr(),Uae=Buffer[Symbol.species],kae=Buffer.from([0,0,255,255]),Sf=Symbol("permessage-deflate"),dr=Symbol("total-length"),bs=Symbol("callback"),ni=Symbol("buffers"),vs=Symbol("error"),Tf;class SO{constructor(e){if(this._options=e||{},this._threshold=this._options.threshold!==void 0?this._options.threshold:1024,this._maxPayload=this._options.maxPayload|0,this._isServer=!!this._options.isServer,this._deflate=null,this._inflate=null,this.params=null,!Tf){let t=this._options.concurrencyLimit!==void 0?this._options.concurrencyLimit:10;Tf=new Aae(t)}}static get extensionName(){return"permessage-deflate"}offer(){let e={};if(this._options.serverNoContextTakeover)e.server_no_context_takeover=!0;if(this._options.clientNoContextTakeover)e.client_no_context_takeover=!0;if(this._options.serverMaxWindowBits)e.server_max_window_bits=this._options.serverMaxWindowBits;if(this._options.clientMaxWindowBits)e.client_max_window_bits=this._options.clientMaxWindowBits;else if(this._options.clientMaxWindowBits==null)e.client_max_window_bits=!0;return e}accept(e){return e=this.normalizeParams(e),this.params=this._isServer?this.acceptAsServer(e):this.acceptAsClient(e),this.params}cleanup(){if(this._inflate)this._inflate.close(),this._inflate=null;if(this._deflate){let e=this._deflate[bs];if(this._deflate.close(),this._deflate=null,e)e(Error("The deflate stream was closed while data was being processed"))}}acceptAsServer(e){let t=this._options,n=e.find((r)=>{if(t.serverNoContextTakeover===!1&&r.server_no_context_takeover||r.server_max_window_bits&&(t.serverMaxWindowBits===!1||typeof t.serverMaxWindowBits==="number"&&t.serverMaxWindowBits>r.server_max_window_bits)||typeof t.clientMaxWindowBits==="number"&&(typeof r.client_max_window_bits==="number"?t.clientMaxWindowBits>r.client_max_window_bits:!r.client_max_window_bits))return!1;return!0});if(!n)throw Error("None of the extension offers can be accepted");if(t.serverNoContextTakeover)n.server_no_context_takeover=!0;if(t.clientNoContextTakeover)n.client_no_context_takeover=!0;if(typeof t.serverMaxWindowBits==="number")n.server_max_window_bits=t.serverMaxWindowBits;if(typeof t.clientMaxWindowBits==="number")n.client_max_window_bits=t.clientMaxWindowBits;else if(n.client_max_window_bits===!0||t.clientMaxWindowBits===!1)delete n.client_max_window_bits;return n}acceptAsClient(e){let t=e[0];if(this._options.clientNoContextTakeover===!1&&t.client_no_context_takeover)throw Error('Unexpected parameter "client_no_context_takeover"');if(!t.client_max_window_bits){if(typeof this._options.clientMaxWindowBits==="number")t.client_max_window_bits=this._options.clientMaxWindowBits}else if(this._options.clientMaxWindowBits===!1||typeof this._options.clientMaxWindowBits==="number"&&t.client_max_window_bits>this._options.clientMaxWindowBits)throw Error('Unexpected or invalid parameter "client_max_window_bits"');return t}normalizeParams(e){return e.forEach((t)=>{Object.keys(t).forEach((n)=>{let r=t[n];if(r.length>1)throw Error(`Parameter "${n}" must have only a single value`);if(r=r[0],n==="client_max_window_bits"){if(r!==!0){let i=+r;if(!Number.isInteger(i)||i<8||i>15)throw TypeError(`Invalid value for parameter "${n}": ${r}`);r=i}else if(!this._isServer)throw TypeError(`Invalid value for parameter "${n}": ${r}`)}else if(n==="server_max_window_bits"){let i=+r;if(!Number.isInteger(i)||i<8||i>15)throw TypeError(`Invalid value for parameter "${n}": ${r}`);r=i}else if(n==="client_no_context_takeover"||n==="server_no_context_takeover"){if(r!==!0)throw TypeError(`Invalid value for parameter "${n}": ${r}`)}else throw Error(`Unknown parameter "${n}"`);t[n]=r})}),e}decompress(e,t,n){Tf.add((r)=>{this._decompress(e,t,(i,o)=>{r(),n(i,o)})})}compress(e,t,n){Tf.add((r)=>{this._compress(e,t,(i,o)=>{r(),n(i,o)})})}_decompress(e,t,n){let r=this._isServer?"client":"server";if(!this._inflate){let i=`${r}_max_window_bits`,o=typeof this.params[i]!=="number"?kc.Z_DEFAULT_WINDOWBITS:this.params[i];this._inflate=kc.createInflateRaw({...this._options.zlibInflateOptions,windowBits:o}),this._inflate[Sf]=this,this._inflate[dr]=0,this._inflate[ni]=[],this._inflate.on("error",Fae),this._inflate.on("data",CO)}if(this._inflate[bs]=n,this._inflate.write(e),t)this._inflate.write(kae);this._inflate.flush(()=>{let i=this._inflate[vs];if(i){this._inflate.close(),this._inflate=null,n(i);return}let o=EO.concat(this._inflate[ni],this._inflate[dr]);if(this._inflate._readableState.endEmitted)this._inflate.close(),this._inflate=null;else if(this._inflate[dr]=0,this._inflate[ni]=[],t&&this.params[`${r}_no_context_takeover`])this._inflate.reset();n(null,o)})}_compress(e,t,n){let r=this._isServer?"server":"client";if(!this._deflate){let i=`${r}_max_window_bits`,o=typeof this.params[i]!=="number"?kc.Z_DEFAULT_WINDOWBITS:this.params[i];this._deflate=kc.createDeflateRaw({...this._options.zlibDeflateOptions,windowBits:o}),this._deflate[dr]=0,this._deflate[ni]=[],this._deflate.on("data",Rae)}this._deflate[bs]=n,this._deflate.write(e),this._deflate.flush(kc.Z_SYNC_FLUSH,()=>{if(!this._deflate)return;let i=EO.concat(this._deflate[ni],this._deflate[dr]);if(t)i=new Uae(i.buffer,i.byteOffset,i.length-4);if(this._deflate[bs]=null,this._deflate[dr]=0,this._deflate[ni]=[],t&&this.params[`${r}_no_context_takeover`])this._deflate.reset();n(null,i)})}}AO.exports=SO;function Rae(e){this[ni].push(e),this[dr]+=e.length}function CO(e){if(this[dr]+=e.length,this[Sf]._maxPayload<1||this[dr]<=this[Sf]._maxPayload){this[ni].push(e);return}this[vs]=RangeError("Max payload size exceeded"),this[vs].code="WS_ERR_UNSUPPORTED_MESSAGE_LENGTH",this[vs][TO]=1009,this.removeListener("data",CO),this.reset()}function Fae(e){if(this[Sf]._inflate=null,this[vs]){this[bs](this[vs]);return}e[TO]=1007,this[bs](e)}});var _s=R(function(F_e,Cf){var{isUtf8:UO}=re("buffer"),{hasBlob:Oae}=lr(),Pae=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,1,1,1,1,1,0,0,1,1,0,1,1,0,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,1,0,1,0];function Iae(e){return e>=1000&&e<=1014&&e!==1004&&e!==1005&&e!==1006||e>=3000&&e<=4999}function cx(e){let t=e.length,n=0;while(n<t)if((e[n]&128)===0)n++;else if((e[n]&224)===192){if(n+1===t||(e[n+1]&192)!==128||(e[n]&254)===192)return!1;n+=2}else if((e[n]&240)===224){if(n+2>=t||(e[n+1]&192)!==128||(e[n+2]&192)!==128||e[n]===224&&(e[n+1]&224)===128||e[n]===237&&(e[n+1]&224)===160)return!1;n+=3}else if((e[n]&248)===240){if(n+3>=t||(e[n+1]&192)!==128||(e[n+2]&192)!==128||(e[n+3]&192)!==128||e[n]===240&&(e[n+1]&240)===128||e[n]===244&&e[n+1]>143||e[n]>244)return!1;n+=4}else return!1;return!0}function Mae(e){return Oae&&typeof e==="object"&&typeof e.arrayBuffer==="function"&&typeof e.type==="string"&&typeof e.stream==="function"&&(e[Symbol.toStringTag]==="Blob"||e[Symbol.toStringTag]==="File")}Cf.exports={isBlob:Mae,isValidStatusCode:Iae,isValidUTF8:cx,tokenChars:Pae};if(UO)Cf.exports.isValidUTF8=function(e){return e.length<24?cx(e):UO(e)};else if(!process.env.WS_NO_UTF_8_VALIDATE)try{let e=(()=>{throw new Error("Cannot require module "+"utf-8-validate");})();Cf.exports.isValidUTF8=function(t){return t.length<32?cx(t):e(t)}}catch(e){}});var lx=R(function(O_e,PO){var{Writable:Nae}=re("stream"),kO=xs(),{BINARY_TYPES:Bae,EMPTY_BUFFER:RO,kStatusCode:Lae,kWebSocket:Wae}=lr(),{concat:ux,toArrayBuffer:jae,unmask:qae}=Uc(),{isValidStatusCode:$ae,isValidUTF8:FO}=_s(),Af=Buffer[Symbol.species];class OO extends Nae{constructor(e={}){super();this._allowSynchronousEvents=e.allowSynchronousEvents!==void 0?e.allowSynchronousEvents:!0,this._binaryType=e.binaryType||Bae[0],this._extensions=e.extensions||{},this._isServer=!!e.isServer,this._maxBufferedChunks=e.maxBufferedChunks|0,this._maxFragments=e.maxFragments|0,this._maxPayload=e.maxPayload|0,this._skipUTF8Validation=!!e.skipUTF8Validation,this[Wae]=void 0,this._bufferedBytes=0,this._buffers=[],this._compressed=!1,this._payloadLength=0,this._mask=void 0,this._fragmented=0,this._masked=!1,this._fin=!1,this._opcode=0,this._totalPayloadLength=0,this._messageLength=0,this._numFragments=0,this._fragments=[],this._errored=!1,this._loop=!1,this._state=0}_write(e,t,n){if(this._opcode===8&&this._state==0)return n();if(this._maxBufferedChunks>0&&this._buffers.length>=this._maxBufferedChunks){n(this.createError(RangeError,"Too many buffered chunks",!1,1008,"WS_ERR_TOO_MANY_BUFFERED_PARTS"));return}this._bufferedBytes+=e.length,this._buffers.push(e),this.startLoop(n)}consume(e){if(this._bufferedBytes-=e,e===this._buffers[0].length)return this._buffers.shift();if(e<this._buffers[0].length){let n=this._buffers[0];return this._buffers[0]=new Af(n.buffer,n.byteOffset+e,n.length-e),new Af(n.buffer,n.byteOffset,e)}let t=Buffer.allocUnsafe(e);do{let n=this._buffers[0],r=t.length-e;if(e>=n.length)t.set(this._buffers.shift(),r);else t.set(new Uint8Array(n.buffer,n.byteOffset,e),r),this._buffers[0]=new Af(n.buffer,n.byteOffset+e,n.length-e);e-=n.length}while(e>0);return t}startLoop(e){this._loop=!0;do switch(this._state){case 0:this.getInfo(e);break;case 1:this.getPayloadLength16(e);break;case 2:this.getPayloadLength64(e);break;case 3:this.getMask();break;case 4:this.getData(e);break;case 5:case 6:this._loop=!1;return}while(this._loop);if(!this._errored)e()}getInfo(e){if(this._bufferedBytes<2){this._loop=!1;return}let t=this.consume(2);if((t[0]&48)!==0){let r=this.createError(RangeError,"RSV2 and RSV3 must be clear",!0,1002,"WS_ERR_UNEXPECTED_RSV_2_3");e(r);return}let n=(t[0]&64)===64;if(n&&!this._extensions[kO.extensionName]){let r=this.createError(RangeError,"RSV1 must be clear",!0,1002,"WS_ERR_UNEXPECTED_RSV_1");e(r);return}if(this._fin=(t[0]&128)===128,this._opcode=t[0]&15,this._payloadLength=t[1]&127,this._opcode===0){if(n){let r=this.createError(RangeError,"RSV1 must be clear",!0,1002,"WS_ERR_UNEXPECTED_RSV_1");e(r);return}if(!this._fragmented){let r=this.createError(RangeError,"invalid opcode 0",!0,1002,"WS_ERR_INVALID_OPCODE");e(r);return}this._opcode=this._fragmented}else if(this._opcode===1||this._opcode===2){if(this._fragmented){let r=this.createError(RangeError,`invalid opcode ${this._opcode}`,!0,1002,"WS_ERR_INVALID_OPCODE");e(r);return}this._compressed=n}else if(this._opcode>7&&this._opcode<11){if(!this._fin){let r=this.createError(RangeError,"FIN must be set",!0,1002,"WS_ERR_EXPECTED_FIN");e(r);return}if(n){let r=this.createError(RangeError,"RSV1 must be clear",!0,1002,"WS_ERR_UNEXPECTED_RSV_1");e(r);return}if(this._payloadLength>125||this._opcode===8&&this._payloadLength===1){let r=this.createError(RangeError,`invalid payload length ${this._payloadLength}`,!0,1002,"WS_ERR_INVALID_CONTROL_PAYLOAD_LENGTH");e(r);return}}else{let r=this.createError(RangeError,`invalid opcode ${this._opcode}`,!0,1002,"WS_ERR_INVALID_OPCODE");e(r);return}if(!this._fin&&!this._fragmented)this._fragmented=this._opcode;if(this._masked=(t[1]&128)===128,this._isServer){if(!this._masked){let r=this.createError(RangeError,"MASK must be set",!0,1002,"WS_ERR_EXPECTED_MASK");e(r);return}}else if(this._masked){let r=this.createError(RangeError,"MASK must be clear",!0,1002,"WS_ERR_UNEXPECTED_MASK");e(r);return}if(this._payloadLength===126)this._state=1;else if(this._payloadLength===127)this._state=2;else this.haveLength(e)}getPayloadLength16(e){if(this._bufferedBytes<2){this._loop=!1;return}this._payloadLength=this.consume(2).readUInt16BE(0),this.haveLength(e)}getPayloadLength64(e){if(this._bufferedBytes<8){this._loop=!1;return}let t=this.consume(8),n=t.readUInt32BE(0);if(n>Math.pow(2,21)-1){let r=this.createError(RangeError,"Unsupported WebSocket frame: payload length > 2^53 - 1",!1,1009,"WS_ERR_UNSUPPORTED_DATA_PAYLOAD_LENGTH");e(r);return}this._payloadLength=n*Math.pow(2,32)+t.readUInt32BE(4),this.haveLength(e)}haveLength(e){if(this._payloadLength&&this._opcode<8){if(this._totalPayloadLength+=this._payloadLength,this._totalPayloadLength>this._maxPayload&&this._maxPayload>0){let t=this.createError(RangeError,"Max payload size exceeded",!1,1009,"WS_ERR_UNSUPPORTED_MESSAGE_LENGTH");e(t);return}}if(this._masked)this._state=3;else this._state=4}getMask(){if(this._bufferedBytes<4){this._loop=!1;return}this._mask=this.consume(4),this._state=4}getData(e){let t=RO;if(this._payloadLength){if(this._bufferedBytes<this._payloadLength){this._loop=!1;return}if(t=this.consume(this._payloadLength),this._masked&&(this._mask[0]|this._mask[1]|this._mask[2]|this._mask[3])!==0)qae(t,this._mask)}if(this._opcode>7){this.controlMessage(t,e);return}if(this._maxFragments>0&&++this._numFragments>this._maxFragments){let n=this.createError(RangeError,"Too many message fragments",!1,1008,"WS_ERR_TOO_MANY_BUFFERED_PARTS");e(n);return}if(this._compressed){this._state=5,this.decompress(t,e);return}if(t.length)this._messageLength=this._totalPayloadLength,this._fragments.push(t);this.dataMessage(e)}decompress(e,t){this._extensions[kO.extensionName].decompress(e,this._fin,(r,i)=>{if(r)return t(r);if(i.length){if(this._messageLength+=i.length,this._messageLength>this._maxPayload&&this._maxPayload>0){let o=this.createError(RangeError,"Max payload size exceeded",!1,1009,"WS_ERR_UNSUPPORTED_MESSAGE_LENGTH");t(o);return}this._fragments.push(i)}if(this.dataMessage(t),this._state===0)this.startLoop(t)})}dataMessage(e){if(!this._fin){this._state=0;return}let t=this._messageLength,n=this._fragments;if(this._totalPayloadLength=0,this._messageLength=0,this._fragmented=0,this._numFragments=0,this._fragments=[],this._opcode===2){let r;if(this._binaryType==="nodebuffer")r=ux(n,t);else if(this._binaryType==="arraybuffer")r=jae(ux(n,t));else if(this._binaryType==="blob")r=new Blob(n);else r=n;if(this._allowSynchronousEvents)this.emit("message",r,!0),this._state=0;else this._state=6,setImmediate(()=>{this.emit("message",r,!0),this._state=0,this.startLoop(e)})}else{let r=ux(n,t);if(!this._skipUTF8Validation&&!FO(r)){let i=this.createError(Error,"invalid UTF-8 sequence",!0,1007,"WS_ERR_INVALID_UTF8");e(i);return}if(this._state===5||this._allowSynchronousEvents)this.emit("message",r,!1),this._state=0;else this._state=6,setImmediate(()=>{this.emit("message",r,!1),this._state=0,this.startLoop(e)})}}controlMessage(e,t){if(this._opcode===8){if(e.length===0)this._loop=!1,this.emit("conclude",1005,RO),this.end();else{let n=e.readUInt16BE(0);if(!$ae(n)){let i=this.createError(RangeError,`invalid status code ${n}`,!0,1002,"WS_ERR_INVALID_CLOSE_CODE");t(i);return}let r=new Af(e.buffer,e.byteOffset+2,e.length-2);if(!this._skipUTF8Validation&&!FO(r)){let i=this.createError(Error,"invalid UTF-8 sequence",!0,1007,"WS_ERR_INVALID_UTF8");t(i);return}this._loop=!1,this.emit("conclude",n,r),this.end()}this._state=0;return}if(this._allowSynchronousEvents)this.emit(this._opcode===9?"ping":"pong",e),this._state=0;else this._state=6,setImmediate(()=>{this.emit(this._opcode===9?"ping":"pong",e),this._state=0,this.startLoop(t)})}createError(e,t,n,r,i){this._loop=!1,this._errored=!0;let o=new e(n?`Invalid WebSocket frame: ${t}`:t);return Error.captureStackTrace(o,this.createError),o.code=i,o[Lae]=r,o}}PO.exports=OO});var fx=R(function(I_e,NO){var{Duplex:P_e}=re("stream"),{randomFillSync:Hae}=re("crypto"),{types:{isUint8Array:Gae}}=re("util"),IO=xs(),{EMPTY_BUFFER:zae,kWebSocket:Vae,NOOP:Xae}=lr(),{isBlob:ws,isValidStatusCode:Kae}=_s(),{mask:MO,toBuffer:Gi}=Uc(),tn=Symbol("kByteLength"),Zae=Buffer.alloc(4),zi,Ds=8192,hn=0,Yae=1,Jae=2;class ri{constructor(e,t,n){if(this._extensions=t||{},n)this._generateMask=n,this._maskBuffer=Buffer.alloc(4);this._socket=e,this._firstFragment=!0,this._compress=!1,this._bufferedBytes=0,this._queue=[],this._state=hn,this.onerror=Xae,this[Vae]=void 0}static frame(e,t){let n,r=!1,i=2,o=!1;if(t.mask){if(n=t.maskBuffer||Zae,t.generateMask)t.generateMask(n);else{if(Ds===8192){if(zi===void 0)zi=Buffer.alloc(8192);Hae(zi,0,8192),Ds=0}n[0]=zi[Ds++],n[1]=zi[Ds++],n[2]=zi[Ds++],n[3]=zi[Ds++]}o=(n[0]|n[1]|n[2]|n[3])===0,i=6}let s;if(typeof e==="string")if((!t.mask||o)&&t[tn]!==void 0)s=t[tn];else e=Buffer.from(e),s=e.length;else s=e.length,r=t.mask&&t.readOnly&&!o;let a=s;if(s>=65536)i+=8,a=127;else if(s>125)i+=2,a=126;let c=Buffer.allocUnsafe(r?s+i:i);if(c[0]=t.fin?t.opcode|128:t.opcode,t.rsv1)c[0]|=64;if(c[1]=a,a===126)c.writeUInt16BE(s,2);else if(a===127)c[2]=c[3]=0,c.writeUIntBE(s,4,6);if(!t.mask)return[c,e];if(c[1]|=128,c[i-4]=n[0],c[i-3]=n[1],c[i-2]=n[2],c[i-1]=n[3],o)return[c,e];if(r)return MO(e,n,c,i,s),[c];return MO(e,n,e,0,s),[c,e]}close(e,t,n,r){let i;if(e===void 0)i=zae;else if(typeof e!=="number"||!Kae(e))throw TypeError("First argument must be a valid error code number");else if(t===void 0||!t.length)i=Buffer.allocUnsafe(2),i.writeUInt16BE(e,0);else{let s=Buffer.byteLength(t);if(s>123)throw RangeError("The message must not be greater than 123 bytes");if(i=Buffer.allocUnsafe(2+s),i.writeUInt16BE(e,0),typeof t==="string")i.write(t,2);else if(Gae(t))i.set(t,2);else throw TypeError("Second argument must be a string or a Uint8Array")}let o={[tn]:i.length,fin:!0,generateMask:this._generateMask,mask:n,maskBuffer:this._maskBuffer,opcode:8,readOnly:!1,rsv1:!1};if(this._state!==hn)this.enqueue([this.dispatch,i,!1,o,r]);else this.sendFrame(ri.frame(i,o),r)}ping(e,t,n){let r,i;if(typeof e==="string")r=Buffer.byteLength(e),i=!1;else if(ws(e))r=e.size,i=!1;else e=Gi(e),r=e.length,i=Gi.readOnly;if(r>125)throw RangeError("The data size must not be greater than 125 bytes");let o={[tn]:r,fin:!0,generateMask:this._generateMask,mask:t,maskBuffer:this._maskBuffer,opcode:9,readOnly:i,rsv1:!1};if(ws(e))if(this._state!==hn)this.enqueue([this.getBlobData,e,!1,o,n]);else this.getBlobData(e,!1,o,n);else if(this._state!==hn)this.enqueue([this.dispatch,e,!1,o,n]);else this.sendFrame(ri.frame(e,o),n)}pong(e,t,n){let r,i;if(typeof e==="string")r=Buffer.byteLength(e),i=!1;else if(ws(e))r=e.size,i=!1;else e=Gi(e),r=e.length,i=Gi.readOnly;if(r>125)throw RangeError("The data size must not be greater than 125 bytes");let o={[tn]:r,fin:!0,generateMask:this._generateMask,mask:t,maskBuffer:this._maskBuffer,opcode:10,readOnly:i,rsv1:!1};if(ws(e))if(this._state!==hn)this.enqueue([this.getBlobData,e,!1,o,n]);else this.getBlobData(e,!1,o,n);else if(this._state!==hn)this.enqueue([this.dispatch,e,!1,o,n]);else this.sendFrame(ri.frame(e,o),n)}send(e,t,n){let r=this._extensions[IO.extensionName],i=t.binary?2:1,o=t.compress,s,a;if(typeof e==="string")s=Buffer.byteLength(e),a=!1;else if(ws(e))s=e.size,a=!1;else e=Gi(e),s=e.length,a=Gi.readOnly;if(this._firstFragment){if(this._firstFragment=!1,o&&r&&r.params[r._isServer?"server_no_context_takeover":"client_no_context_takeover"])o=s>=r._threshold;this._compress=o}else o=!1,i=0;if(t.fin)this._firstFragment=!0;let c={[tn]:s,fin:t.fin,generateMask:this._generateMask,mask:t.mask,maskBuffer:this._maskBuffer,opcode:i,readOnly:a,rsv1:o};if(ws(e))if(this._state!==hn)this.enqueue([this.getBlobData,e,this._compress,c,n]);else this.getBlobData(e,this._compress,c,n);else if(this._state!==hn)this.enqueue([this.dispatch,e,this._compress,c,n]);else this.dispatch(e,this._compress,c,n)}getBlobData(e,t,n,r){this._bufferedBytes+=n[tn],this._state=Jae,e.arrayBuffer().then((i)=>{if(this._socket.destroyed){let s=Error("The socket was closed while the blob was being read");process.nextTick(dx,this,s,r);return}this._bufferedBytes-=n[tn];let o=Gi(i);if(!t)this._state=hn,this.sendFrame(ri.frame(o,n),r),this.dequeue();else this.dispatch(o,t,n,r)}).catch((i)=>{process.nextTick(Qae,this,i,r)})}dispatch(e,t,n,r){if(!t){this.sendFrame(ri.frame(e,n),r);return}let i=this._extensions[IO.extensionName];this._bufferedBytes+=n[tn],this._state=Yae,i.compress(e,n.fin,(o,s)=>{if(this._socket.destroyed){let a=Error("The socket was closed while data was being compressed");dx(this,a,r);return}this._bufferedBytes-=n[tn],this._state=hn,n.readOnly=!1,this.sendFrame(ri.frame(s,n),r),this.dequeue()})}dequeue(){while(this._state===hn&&this._queue.length){let e=this._queue.shift();this._bufferedBytes-=e[3][tn],Reflect.apply(e[0],this,e.slice(1))}}enqueue(e){this._bufferedBytes+=e[3][tn],this._queue.push(e)}sendFrame(e,t){if(e.length===2)this._socket.cork(),this._socket.write(e[0]),this._socket.write(e[1],t),this._socket.uncork();else this._socket.write(e[0],t)}}NO.exports=ri;function dx(e,t,n){if(typeof n==="function")n(t);for(let r=0;r<e._queue.length;r++){let i=e._queue[r],o=i[i.length-1];if(typeof o==="function")o(t)}}function Qae(e,t,n){dx(e,t,n),e.onerror(t)}});var zO=R(function(M_e,GO){var{kForOnEventAttribute:Rc,kListener:hx}=lr(),BO=Symbol("kCode"),LO=Symbol("kData"),WO=Symbol("kError"),jO=Symbol("kMessage"),qO=Symbol("kReason"),Es=Symbol("kTarget"),$O=Symbol("kType"),HO=Symbol("kWasClean");class ii{constructor(e){this[Es]=null,this[$O]=e}get target(){return this[Es]}get type(){return this[$O]}}Object.defineProperty(ii.prototype,"target",{enumerable:!0});Object.defineProperty(ii.prototype,"type",{enumerable:!0});class Ts extends ii{constructor(e,t={}){super(e);this[BO]=t.code===void 0?0:t.code,this[qO]=t.reason===void 0?"":t.reason,this[HO]=t.wasClean===void 0?!1:t.wasClean}get code(){return this[BO]}get reason(){return this[qO]}get wasClean(){return this[HO]}}Object.defineProperty(Ts.prototype,"code",{enumerable:!0});Object.defineProperty(Ts.prototype,"reason",{enumerable:!0});Object.defineProperty(Ts.prototype,"wasClean",{enumerable:!0});class Fc extends ii{constructor(e,t={}){super(e);this[WO]=t.error===void 0?null:t.error,this[jO]=t.message===void 0?"":t.message}get error(){return this[WO]}get message(){return this[jO]}}Object.defineProperty(Fc.prototype,"error",{enumerable:!0});Object.defineProperty(Fc.prototype,"message",{enumerable:!0});class kf extends ii{constructor(e,t={}){super(e);this[LO]=t.data===void 0?null:t.data}get data(){return this[LO]}}Object.defineProperty(kf.prototype,"data",{enumerable:!0});var ece={addEventListener(e,t,n={}){for(let i of this.listeners(e))if(!n[Rc]&&i[hx]===t&&!i[Rc])return;let r;if(e==="message")r=function(o,s){let a=new kf("message",{data:s?o:o.toString()});a[Es]=this,Uf(t,this,a)};else if(e==="close")r=function(o,s){let a=new Ts("close",{code:o,reason:s.toString(),wasClean:this._closeFrameReceived&&this._closeFrameSent});a[Es]=this,Uf(t,this,a)};else if(e==="error")r=function(o){let s=new Fc("error",{error:o,message:o.message});s[Es]=this,Uf(t,this,s)};else if(e==="open")r=function(){let o=new ii("open");o[Es]=this,Uf(t,this,o)};else return;if(r[Rc]=!!n[Rc],r[hx]=t,n.once)this.once(e,r);else this.on(e,r)},removeEventListener(e,t){for(let n of this.listeners(e))if(n[hx]===t&&!n[Rc]){this.removeListener(e,n);break}}};GO.exports={CloseEvent:Ts,ErrorEvent:Fc,Event:ii,EventTarget:ece,MessageEvent:kf};function Uf(e,t,n){if(typeof e==="object"&&e.handleEvent)e.handleEvent.call(e,n);else e.call(t,n)}});var Rf=R(function(N_e,VO){var{tokenChars:Oc}=_s();function Bn(e,t,n){if(e[t]===void 0)e[t]=[n];else e[t].push(n)}function tce(e){let t=Object.create(null),n=Object.create(null),r=!1,i=!1,o=!1,s,a,c=-1,u=-1,d=-1,f=0;for(;f<e.length;f++)if(u=e.charCodeAt(f),s===void 0)if(d===-1&&Oc[u]===1){if(c===-1)c=f}else if(f!==0&&(u===32||u===9)){if(d===-1&&c!==-1)d=f}else if(u===59||u===44){if(c===-1)throw SyntaxError(`Unexpected character at index ${f}`);if(d===-1)d=f;let p=e.slice(c,d);if(u===44)Bn(t,p,n),n=Object.create(null);else s=p;c=d=-1}else throw SyntaxError(`Unexpected character at index ${f}`);else if(a===void 0)if(d===-1&&Oc[u]===1){if(c===-1)c=f}else if(u===32||u===9){if(d===-1&&c!==-1)d=f}else if(u===59||u===44){if(c===-1)throw SyntaxError(`Unexpected character at index ${f}`);if(d===-1)d=f;if(Bn(n,e.slice(c,d),!0),u===44)Bn(t,s,n),n=Object.create(null),s=void 0;c=d=-1}else if(u===61&&c!==-1&&d===-1)a=e.slice(c,f),c=d=-1;else throw SyntaxError(`Unexpected character at index ${f}`);else if(i){if(Oc[u]!==1)throw SyntaxError(`Unexpected character at index ${f}`);if(c===-1)c=f;else if(!r)r=!0;i=!1}else if(o)if(Oc[u]===1){if(c===-1)c=f}else if(u===34&&c!==-1)o=!1,d=f;else if(u===92)i=!0;else throw SyntaxError(`Unexpected character at index ${f}`);else if(u===34&&e.charCodeAt(f-1)===61)o=!0;else if(d===-1&&Oc[u]===1){if(c===-1)c=f}else if(c!==-1&&(u===32||u===9)){if(d===-1)d=f}else if(u===59||u===44){if(c===-1)throw SyntaxError(`Unexpected character at index ${f}`);if(d===-1)d=f;let p=e.slice(c,d);if(r)p=p.replace(/\\/g,""),r=!1;if(Bn(n,a,p),u===44)Bn(t,s,n),n=Object.create(null),s=void 0;a=void 0,c=d=-1}else throw SyntaxError(`Unexpected character at index ${f}`);if(c===-1||o||u===32||u===9)throw SyntaxError("Unexpected end of input");if(d===-1)d=f;let h=e.slice(c,d);if(s===void 0)Bn(t,h,n);else{if(a===void 0)Bn(n,h,!0);else if(r)Bn(n,a,h.replace(/\\/g,""));else Bn(n,a,h);Bn(t,s,n)}return t}function nce(e){return Object.keys(e).map((t)=>{let n=e[t];if(!Array.isArray(n))n=[n];return n.map((r)=>[t].concat(Object.keys(r).map((i)=>{let o=r[i];if(!Array.isArray(o))o=[o];return o.map((s)=>s===!0?i:`${i}=${s}`).join("; ")})).join("; ")).join(", ")}).join(", ")}VO.exports={format:nce,parse:tce}});var If=R(function(W_e,oP){var rce=re("events"),ice=re("https"),oce=re("http"),ZO=re("net"),sce=re("tls"),{randomBytes:ace,createHash:cce}=re("crypto"),{Duplex:B_e,Readable:L_e}=re("stream"),{URL:px}=re("url"),oi=xs(),uce=lx(),lce=fx(),{isBlob:dce}=_s(),{BINARY_TYPES:XO,CLOSE_TIMEOUT:fce,EMPTY_BUFFER:Ff,GUID:hce,kForOnEventAttribute:gx,kListener:pce,kStatusCode:gce,kWebSocket:Je,NOOP:YO}=lr(),{EventTarget:{addEventListener:mce,removeEventListener:yce}}=zO(),{format:bce,parse:vce}=Rf(),{toBuffer:xce}=Uc(),JO=Symbol("kAborted"),mx=[8,13],fr=["CONNECTING","OPEN","CLOSING","CLOSED"],_ce=/^[!#$%&'*+\-.0-9A-Z^_`|a-z~]+$/;class ie extends rce{constructor(e,t,n){super();if(this._binaryType=XO[0],this._closeCode=1006,this._closeFrameReceived=!1,this._closeFrameSent=!1,this._closeMessage=Ff,this._closeTimer=null,this._errorEmitted=!1,this._extensions={},this._paused=!1,this._protocol="",this._readyState=ie.CONNECTING,this._receiver=null,this._sender=null,this._socket=null,e!==null){if(this._bufferedAmount=0,this._isServer=!1,this._redirects=0,t===void 0)t=[];else if(!Array.isArray(t))if(typeof t==="object"&&t!==null)n=t,t=[];else t=[t];QO(this,e,t,n)}else this._autoPong=n.autoPong,this._closeTimeout=n.closeTimeout,this._isServer=!0}get binaryType(){return this._binaryType}set binaryType(e){if(!XO.includes(e))return;if(this._binaryType=e,this._receiver)this._receiver._binaryType=e}get bufferedAmount(){if(!this._socket)return this._bufferedAmount;return this._socket._writableState.length+this._sender._bufferedBytes}get extensions(){return Object.keys(this._extensions).join()}get isPaused(){return this._paused}get onclose(){return null}get onerror(){return null}get onopen(){return null}get onmessage(){return null}get protocol(){return this._protocol}get readyState(){return this._readyState}get url(){return this._url}setSocket(e,t,n){let r=new uce({allowSynchronousEvents:n.allowSynchronousEvents,binaryType:this.binaryType,extensions:this._extensions,isServer:this._isServer,maxBufferedChunks:n.maxBufferedChunks,maxFragments:n.maxFragments,maxPayload:n.maxPayload,skipUTF8Validation:n.skipUTF8Validation}),i=new lce(e,this._extensions,n.generateMask);if(this._receiver=r,this._sender=i,this._socket=e,r[Je]=this,i[Je]=this,e[Je]=this,r.on("conclude",Ece),r.on("drain",Tce),r.on("error",Sce),r.on("message",Cce),r.on("ping",Ace),r.on("pong",Uce),i.onerror=kce,e.setTimeout)e.setTimeout(0);if(e.setNoDelay)e.setNoDelay();if(t.length>0)e.unshift(t);e.on("close",nP),e.on("data",Pf),e.on("end",rP),e.on("error",iP),this._readyState=ie.OPEN,this.emit("open")}emitClose(){if(!this._socket){this._readyState=ie.CLOSED,this.emit("close",this._closeCode,this._closeMessage);return}if(this._extensions[oi.extensionName])this._extensions[oi.extensionName].cleanup();this._receiver.removeAllListeners(),this._readyState=ie.CLOSED,this.emit("close",this._closeCode,this._closeMessage)}close(e,t){if(this.readyState===ie.CLOSED)return;if(this.readyState===ie.CONNECTING){Bt(this,this._req,"WebSocket was closed before the connection was established");return}if(this.readyState===ie.CLOSING){if(this._closeFrameSent&&(this._closeFrameReceived||this._receiver._writableState.errorEmitted))this._socket.end();return}this._readyState=ie.CLOSING,this._sender.close(e,t,!this._isServer,(n)=>{if(n)return;if(this._closeFrameSent=!0,this._closeFrameReceived||this._receiver._writableState.errorEmitted)this._socket.end()}),tP(this)}pause(){if(this.readyState===ie.CONNECTING||this.readyState===ie.CLOSED)return;this._paused=!0,this._socket.pause()}ping(e,t,n){if(this.readyState===ie.CONNECTING)throw Error("WebSocket is not open: readyState 0 (CONNECTING)");if(typeof e==="function")n=e,e=t=void 0;else if(typeof t==="function")n=t,t=void 0;if(typeof e==="number")e=e.toString();if(this.readyState!==ie.OPEN){yx(this,e,n);return}if(t===void 0)t=!this._isServer;this._sender.ping(e||Ff,t,n)}pong(e,t,n){if(this.readyState===ie.CONNECTING)throw Error("WebSocket is not open: readyState 0 (CONNECTING)");if(typeof e==="function")n=e,e=t=void 0;else if(typeof t==="function")n=t,t=void 0;if(typeof e==="number")e=e.toString();if(this.readyState!==ie.OPEN){yx(this,e,n);return}if(t===void 0)t=!this._isServer;this._sender.pong(e||Ff,t,n)}resume(){if(this.readyState===ie.CONNECTING||this.readyState===ie.CLOSED)return;if(this._paused=!1,!this._receiver._writableState.needDrain)this._socket.resume()}send(e,t,n){if(this.readyState===ie.CONNECTING)throw Error("WebSocket is not open: readyState 0 (CONNECTING)");if(typeof t==="function")n=t,t={};if(typeof e==="number")e=e.toString();if(this.readyState!==ie.OPEN){yx(this,e,n);return}let r={binary:typeof e!=="string",mask:!this._isServer,compress:!0,fin:!0,...t};if(!this._extensions[oi.extensionName])r.compress=!1;this._sender.send(e||Ff,r,n)}terminate(){if(this.readyState===ie.CLOSED)return;if(this.readyState===ie.CONNECTING){Bt(this,this._req,"WebSocket was closed before the connection was established");return}if(this._socket)this._readyState=ie.CLOSING,this._socket.destroy()}}Object.defineProperty(ie,"CONNECTING",{enumerable:!0,value:fr.indexOf("CONNECTING")});Object.defineProperty(ie.prototype,"CONNECTING",{enumerable:!0,value:fr.indexOf("CONNECTING")});Object.defineProperty(ie,"OPEN",{enumerable:!0,value:fr.indexOf("OPEN")});Object.defineProperty(ie.prototype,"OPEN",{enumerable:!0,value:fr.indexOf("OPEN")});Object.defineProperty(ie,"CLOSING",{enumerable:!0,value:fr.indexOf("CLOSING")});Object.defineProperty(ie.prototype,"CLOSING",{enumerable:!0,value:fr.indexOf("CLOSING")});Object.defineProperty(ie,"CLOSED",{enumerable:!0,value:fr.indexOf("CLOSED")});Object.defineProperty(ie.prototype,"CLOSED",{enumerable:!0,value:fr.indexOf("CLOSED")});["binaryType","bufferedAmount","extensions","isPaused","protocol","readyState","url"].forEach((e)=>{Object.defineProperty(ie.prototype,e,{enumerable:!0})});["open","error","close","message"].forEach((e)=>{Object.defineProperty(ie.prototype,`on${e}`,{enumerable:!0,get(){for(let t of this.listeners(e))if(t[gx])return t[pce];return null},set(t){for(let n of this.listeners(e))if(n[gx]){this.removeListener(e,n);break}if(typeof t!=="function")return;this.addEventListener(e,t,{[gx]:!0})}})});ie.prototype.addEventListener=mce;ie.prototype.removeEventListener=yce;oP.exports=ie;function QO(e,t,n,r){let i={allowSynchronousEvents:!0,autoPong:!0,closeTimeout:fce,protocolVersion:mx[1],maxBufferedChunks:262144,maxFragments:16384,maxPayload:104857600,skipUTF8Validation:!1,perMessageDeflate:!0,followRedirects:!1,maxRedirects:10,...r,socketPath:void 0,hostname:void 0,protocol:void 0,timeout:void 0,method:"GET",host:void 0,path:void 0,port:void 0};if(e._autoPong=i.autoPong,e._closeTimeout=i.closeTimeout,!mx.includes(i.protocolVersion))throw RangeError(`Unsupported protocol version: ${i.protocolVersion} (supported versions: ${mx.join(", ")})`);let o;if(t instanceof px)o=t;else try{o=new px(t)}catch{throw SyntaxError(`Invalid URL: ${t}`)}if(o.protocol==="http:")o.protocol="ws:";else if(o.protocol==="https:")o.protocol="wss:";e._url=o.href;let s=o.protocol==="wss:",a=o.protocol==="ws+unix:",c;if(o.protocol!=="ws:"&&!s&&!a)c=`The URL's protocol must be one of "ws:", "wss:", "http:", "https:", or "ws+unix:"`;else if(a&&!o.pathname)c="The URL's pathname is empty";else if(o.hash)c="The URL contains a fragment identifier";if(c){let y=SyntaxError(c);if(e._redirects===0)throw y;else{Of(e,y);return}}let u=s?443:80,d=ace(16).toString("base64"),f=s?ice.request:oce.request,h=new Set,p;if(i.createConnection=i.createConnection||(s?Dce:wce),i.defaultPort=i.defaultPort||u,i.port=o.port||u,i.host=o.hostname.startsWith("[")?o.hostname.slice(1,-1):o.hostname,i.headers={...i.headers,"Sec-WebSocket-Version":i.protocolVersion,"Sec-WebSocket-Key":d,Connection:"Upgrade",Upgrade:"websocket"},i.path=o.pathname+o.search,i.timeout=i.handshakeTimeout,i.perMessageDeflate)p=new oi({...i.perMessageDeflate,isServer:!1,maxPayload:i.maxPayload}),i.headers["Sec-WebSocket-Extensions"]=bce({[oi.extensionName]:p.offer()});if(n.length){for(let y of n){if(typeof y!=="string"||!_ce.test(y)||h.has(y))throw SyntaxError("An invalid or duplicated subprotocol was specified");h.add(y)}i.headers["Sec-WebSocket-Protocol"]=n.join(",")}if(i.origin)if(i.protocolVersion<13)i.headers["Sec-WebSocket-Origin"]=i.origin;else i.headers.Origin=i.origin;if(o.username||o.password)i.auth=`${o.username}:${o.password}`;if(a){let y=i.path.split(":");i.socketPath=y[0],i.path=y[1]}let g;if(i.followRedirects){if(e._redirects===0){e._originalIpc=a,e._originalSecure=s,e._originalHostOrSocketPath=a?i.socketPath:o.host;let y=r&&r.headers;if(r={...r,headers:{}},y)for(let[v,b]of Object.entries(y))r.headers[v.toLowerCase()]=b}else if(e.listenerCount("redirect")===0){let y=a?e._originalIpc?i.socketPath===e._originalHostOrSocketPath:!1:e._originalIpc?!1:o.host===e._originalHostOrSocketPath;if(!y||e._originalSecure&&!s){if(delete i.headers.authorization,delete i.headers.cookie,!y)delete i.headers.host;i.auth=void 0}}if(i.auth&&!r.headers.authorization)r.headers.authorization="Basic "+Buffer.from(i.auth).toString("base64");if(g=e._req=f(i),e._redirects)e.emit("redirect",e.url,g)}else g=e._req=f(i);if(i.timeout)g.on("timeout",()=>{Bt(e,g,"Opening handshake has timed out")});if(g.on("error",(y)=>{if(g===null||g[JO])return;g=e._req=null,Of(e,y)}),g.on("response",(y)=>{let v=y.headers.location,b=y.statusCode;if(v&&i.followRedirects&&b>=300&&b<400){if(++e._redirects>i.maxRedirects){Bt(e,g,"Maximum redirects exceeded");return}g.abort();let _;try{_=new px(v,t)}catch(m){let x=SyntaxError(`Invalid URL: ${v}`);Of(e,x);return}QO(e,_,n,r)}else if(!e.emit("unexpected-response",g,y))Bt(e,g,`Unexpected server response: ${y.statusCode}`)}),g.on("upgrade",(y,v,b)=>{if(e.emit("upgrade",y),e.readyState!==ie.CONNECTING)return;g=e._req=null;let _=y.headers.upgrade;if(_===void 0||_.toLowerCase()!=="websocket"){Bt(e,v,"Invalid Upgrade header");return}let m=cce("sha1").update(d+hce).digest("base64");if(y.headers["sec-websocket-accept"]!==m){Bt(e,v,"Invalid Sec-WebSocket-Accept header");return}let x=y.headers["sec-websocket-protocol"],D;if(x!==void 0){if(!h.size)D="Server sent a subprotocol but none was requested";else if(!h.has(x))D="Server sent an invalid subprotocol"}else if(h.size)D="Server sent no subprotocol";if(D){Bt(e,v,D);return}if(x)e._protocol=x;let A=y.headers["sec-websocket-extensions"];if(A!==void 0){if(!p){Bt(e,v,"Server sent a Sec-WebSocket-Extensions header but no extension was requested");return}let E;try{E=vce(A)}catch(C){Bt(e,v,"Invalid Sec-WebSocket-Extensions header");return}let U=Object.keys(E);if(U.length!==1||U[0]!==oi.extensionName){Bt(e,v,"Server indicated an extension that was not requested");return}try{p.accept(E[oi.extensionName])}catch(C){Bt(e,v,"Invalid Sec-WebSocket-Extensions header");return}e._extensions[oi.extensionName]=p}e.setSocket(v,b,{allowSynchronousEvents:i.allowSynchronousEvents,generateMask:i.generateMask,maxBufferedChunks:i.maxBufferedChunks,maxFragments:i.maxFragments,maxPayload:i.maxPayload,skipUTF8Validation:i.skipUTF8Validation})}),i.finishRequest)i.finishRequest(g,e);else g.end()}function Of(e,t){e._readyState=ie.CLOSING,e._errorEmitted=!0,e.emit("error",t),e.emitClose()}function wce(e){return e.path=e.socketPath,ZO.connect(e)}function Dce(e){if(e.path=void 0,!e.servername&&e.servername!=="")e.servername=ZO.isIP(e.host)?"":e.host;return sce.connect(e)}function Bt(e,t,n){e._readyState=ie.CLOSING;let r=Error(n);if(Error.captureStackTrace(r,Bt),t.setHeader){if(t[JO]=!0,t.abort(),t.socket&&!t.socket.destroyed)t.socket.destroy();process.nextTick(Of,e,r)}else t.destroy(r),t.once("error",e.emit.bind(e,"error")),t.once("close",e.emitClose.bind(e))}function yx(e,t,n){if(t){let r=dce(t)?t.size:xce(t).length;if(e._socket)e._sender._bufferedBytes+=r;else e._bufferedAmount+=r}if(n){let r=Error(`WebSocket is not open: readyState ${e.readyState} (${fr[e.readyState]})`);process.nextTick(n,r)}}function Ece(e,t){let n=this[Je];if(n._closeFrameReceived=!0,n._closeMessage=t,n._closeCode=e,n._socket[Je]===void 0)return;if(n._socket.removeListener("data",Pf),process.nextTick(eP,n._socket),e===1005)n.close();else n.close(e,t)}function Tce(){let e=this[Je];if(!e.isPaused)e._socket.resume()}function Sce(e){let t=this[Je];if(t._socket[Je]!==void 0)t._socket.removeListener("data",Pf),process.nextTick(eP,t._socket),t.close(e[gce]);if(!t._errorEmitted)t._errorEmitted=!0,t.emit("error",e)}function KO(){this[Je].emitClose()}function Cce(e,t){this[Je].emit("message",e,t)}function Ace(e){let t=this[Je];if(t._autoPong)t.pong(e,!this._isServer,YO);t.emit("ping",e)}function Uce(e){this[Je].emit("pong",e)}function eP(e){e.resume()}function kce(e){let t=this[Je];if(t.readyState===ie.CLOSED)return;if(t.readyState===ie.OPEN)t._readyState=ie.CLOSING,tP(t);if(this._socket.end(),!t._errorEmitted)t._errorEmitted=!0,t.emit("error",e)}function tP(e){e._closeTimer=setTimeout(e._socket.destroy.bind(e._socket),e._closeTimeout)}function nP(){let e=this[Je];if(this.removeListener("close",nP),this.removeListener("data",Pf),this.removeListener("end",rP),e._readyState=ie.CLOSING,!this._readableState.endEmitted&&!e._closeFrameReceived&&!e._receiver._writableState.errorEmitted&&this._readableState.length!==0){let t=this.read(this._readableState.length);e._receiver.write(t)}if(e._receiver.end(),this[Je]=void 0,clearTimeout(e._closeTimer),e._receiver._writableState.finished||e._receiver._writableState.errorEmitted)e.emitClose();else e._receiver.on("error",KO),e._receiver.on("finish",KO)}function Pf(e){if(!this[Je]._receiver.write(e))this.pause()}function rP(){let e=this[Je];e._readyState=ie.CLOSING,e._receiver.end(),this.end()}function iP(){let e=this[Je];if(this.removeListener("error",iP),this.on("error",YO),e)e._readyState=ie.CLOSING,this.destroy()}});var uP=R(function(q_e,cP){var j_e=If(),{Duplex:Rce}=re("stream");function sP(e){e.emit("close")}function Fce(){if(!this.destroyed&&this._writableState.finished)this.destroy()}function aP(e){if(this.removeListener("error",aP),this.destroy(),this.listenerCount("error")===0)this.emit("error",e)}function Oce(e,t){let n=!0,r=new Rce({...t,autoDestroy:!1,emitClose:!1,objectMode:!1,writableObjectMode:!1});return e.on("message",function(o,s){let a=!s&&r._readableState.objectMode?o.toString():o;if(!r.push(a))e.pause()}),e.once("error",function(o){if(r.destroyed)return;n=!1,r.destroy(o)}),e.once("close",function(){if(r.destroyed)return;r.push(null)}),r._destroy=function(i,o){if(e.readyState===e.CLOSED){o(i),process.nextTick(sP,r);return}let s=!1;if(e.once("error",function(c){s=!0,o(c)}),e.once("close",function(){if(!s)o(i);process.nextTick(sP,r)}),n)e.terminate()},r._final=function(i){if(e.readyState===e.CONNECTING){e.once("open",function(){r._final(i)});return}if(e._socket===null)return;if(e._socket._writableState.finished){if(i(),r._readableState.endEmitted)r.destroy()}else e._socket.once("finish",function(){i()}),e.close()},r._read=function(){if(e.isPaused)e.resume()},r._write=function(i,o,s){if(e.readyState===e.CONNECTING){e.once("open",function(){r._write(i,o,s)});return}e.send(i,s)},r.on("end",Fce),r.on("error",aP),r}cP.exports=Oce});var bx=R(function($_e,lP){var{tokenChars:Pce}=_s();function Ice(e){let t=new Set,n=-1,r=-1,i=0;for(i;i<e.length;i++){let s=e.charCodeAt(i);if(r===-1&&Pce[s]===1){if(n===-1)n=i}else if(i!==0&&(s===32||s===9)){if(r===-1&&n!==-1)r=i}else if(s===44){if(n===-1)throw SyntaxError(`Unexpected character at index ${i}`);if(r===-1)r=i;let a=e.slice(n,r);if(t.has(a))throw SyntaxError(`The "${a}" subprotocol is duplicated`);t.add(a),n=r=-1}else throw SyntaxError(`Unexpected character at index ${i}`)}if(n===-1||r!==-1)throw SyntaxError("Unexpected end of input");let o=e.slice(n,i);if(t.has(o))throw SyntaxError(`The "${o}" subprotocol is duplicated`);return t.add(o),t}lP.exports={parse:Ice}});var gP=R(function(G_e,pP){var Mce=re("events"),Mf=re("http"),{Duplex:H_e}=re("stream"),{createHash:Nce}=re("crypto"),dP=Rf(),Vi=xs(),Bce=bx(),Lce=If(),{CLOSE_TIMEOUT:Wce,GUID:jce,kWebSocket:qce}=lr(),$ce=/^[+/0-9A-Za-z]{22}==$/;class hP extends Mce{constructor(e,t){super();if(e={allowSynchronousEvents:!0,autoPong:!0,maxBufferedChunks:262144,maxFragments:16384,maxPayload:104857600,skipUTF8Validation:!1,perMessageDeflate:!1,handleProtocols:null,clientTracking:!0,closeTimeout:Wce,verifyClient:null,noServer:!1,backlog:null,server:null,host:null,path:null,port:null,WebSocket:Lce,...e},e.port==null&&!e.server&&!e.noServer||e.port!=null&&(e.server||e.noServer)||e.server&&e.noServer)throw TypeError('One and only one of the "port", "server", or "noServer" options must be specified');if(e.port!=null)this._server=Mf.createServer((n,r)=>{let i=Mf.STATUS_CODES[426];r.writeHead(426,{"Content-Length":i.length,"Content-Type":"text/plain"}),r.end(i)}),this._server.listen(e.port,e.host,e.backlog,t);else if(e.server)this._server=e.server;if(this._server){let n=this.emit.bind(this,"connection");this._removeListeners=Hce(this._server,{listening:this.emit.bind(this,"listening"),error:this.emit.bind(this,"error"),upgrade:(r,i,o)=>{this.handleUpgrade(r,i,o,n)}})}if(e.perMessageDeflate===!0)e.perMessageDeflate={};if(e.clientTracking)this.clients=new Set,this._shouldEmitClose=!1;this.options=e,this._state=0}address(){if(this.options.noServer)throw Error('The server is operating in "noServer" mode');if(!this._server)return null;return this._server.address()}close(e){if(this._state===2){if(e)this.once("close",()=>{e(Error("The server is not running"))});process.nextTick(Pc,this);return}if(e)this.once("close",e);if(this._state===1)return;if(this._state=1,this.options.noServer||this.options.server){if(this._server)this._removeListeners(),this._removeListeners=this._server=null;if(this.clients)if(!this.clients.size)process.nextTick(Pc,this);else this._shouldEmitClose=!0;else process.nextTick(Pc,this)}else{let t=this._server;this._removeListeners(),this._removeListeners=this._server=null,t.close(()=>{Pc(this)})}}shouldHandle(e){if(this.options.path){let t=e.url.indexOf("?");if((t!==-1?e.url.slice(0,t):e.url)!==this.options.path)return!1}return!0}handleUpgrade(e,t,n,r){t.on("error",fP);let i=e.headers["sec-websocket-key"],o=e.headers.upgrade,s=+e.headers["sec-websocket-version"];if(e.method!=="GET"){Xi(this,e,t,405,"Invalid HTTP method");return}if(o===void 0||o.toLowerCase()!=="websocket"){Xi(this,e,t,400,"Invalid Upgrade header");return}if(i===void 0||!$ce.test(i)){Xi(this,e,t,400,"Missing or invalid Sec-WebSocket-Key header");return}if(s!==13&&s!==8){Xi(this,e,t,400,"Missing or invalid Sec-WebSocket-Version header",{"Sec-WebSocket-Version":"13, 8"});return}if(!this.shouldHandle(e)){Ic(t,400);return}let a=e.headers["sec-websocket-protocol"],c=new Set;if(a!==void 0)try{c=Bce.parse(a)}catch(f){Xi(this,e,t,400,"Invalid Sec-WebSocket-Protocol header");return}let u=e.headers["sec-websocket-extensions"],d={};if(this.options.perMessageDeflate&&u!==void 0){let f=new Vi({...this.options.perMessageDeflate,isServer:!0,maxPayload:this.options.maxPayload});try{let h=dP.parse(u);if(h[Vi.extensionName])f.accept(h[Vi.extensionName]),d[Vi.extensionName]=f}catch(h){Xi(this,e,t,400,"Invalid or unacceptable Sec-WebSocket-Extensions header");return}}if(this.options.verifyClient){let f={origin:e.headers[`${s===8?"sec-websocket-origin":"origin"}`],secure:!!(e.socket.authorized||e.socket.encrypted),req:e};if(this.options.verifyClient.length===2){this.options.verifyClient(f,(h,p,g,y)=>{if(!h)return Ic(t,p||401,g,y);this.completeUpgrade(d,i,c,e,t,n,r)});return}if(!this.options.verifyClient(f))return Ic(t,401)}this.completeUpgrade(d,i,c,e,t,n,r)}completeUpgrade(e,t,n,r,i,o,s){if(!i.readable||!i.writable)return i.destroy();if(i[qce])throw Error("server.handleUpgrade() was called more than once with the same socket, possibly due to a misconfiguration");if(this._state>0)return Ic(i,503);let c=["HTTP/1.1 101 Switching Protocols","Upgrade: websocket","Connection: Upgrade",`Sec-WebSocket-Accept: ${Nce("sha1").update(t+jce).digest("base64")}`],u=new this.options.WebSocket(null,void 0,this.options);if(n.size){let d=this.options.handleProtocols?this.options.handleProtocols(n,r):n.values().next().value;if(d)c.push(`Sec-WebSocket-Protocol: ${d}`),u._protocol=d}if(e[Vi.extensionName]){let d=e[Vi.extensionName].params,f=dP.format({[Vi.extensionName]:[d]});c.push(`Sec-WebSocket-Extensions: ${f}`),u._extensions=e}if(this.emit("headers",c,r),i.write(c.concat(`\r
228
+ `,o=ti(e,en(e,n));if(hv(o)){let s=`${e}.bak-${new Date().toISOString().replace(/[:.]/g,"-")}`;mre(o,hf(H3(o),s)),Ere(e,en(e,n))}return wc(o,i),z3.get(e)?.onWrite?.(),i}function Ere(e,t){let n=H3(ti(e,t)),r=`${e}.bak-`,i=[];try{i=gre(n).filter((s)=>s.startsWith(r)).sort()}catch{return}let o=i.slice(0,Math.max(0,i.length-G3));for(let s of o)try{bre(hf(n,s))}catch{}}var G3=10,pv,z3;var Dc=me(()=>{fv();pv=[{name:"models.json",description:"pi 模型/供应商配置(providers 与模型列表)",onWrite:()=>ke()}],z3=new Map(pv.map((e)=>[e.name,e]))});var lr=R(function(k_e,yO){var gO=["nodebuffer","arraybuffer","fragments"],mO=typeof Blob<"u";if(mO)gO.push("blob");yO.exports={BINARY_TYPES:gO,CLOSE_TIMEOUT:30000,EMPTY_BUFFER:Buffer.alloc(0),GUID:"258EAFA5-E914-47DA-95CA-C5AB0DC85B11",hasBlob:mO,kForOnEventAttribute:Symbol("kIsForOnEventAttribute"),kListener:Symbol("kListener"),kStatusCode:Symbol("status-code"),kWebSocket:Symbol("websocket"),NOOP:()=>{}}});var Uc=R(function(R_e,Ef){var{EMPTY_BUFFER:Cae}=lr(),ox=Buffer[Symbol.species];function Aae(e,t){if(e.length===0)return Cae;if(e.length===1)return e[0];let n=Buffer.allocUnsafe(t),r=0;for(let i=0;i<e.length;i++){let o=e[i];n.set(o,r),r+=o.length}if(r<t)return new ox(n.buffer,n.byteOffset,r);return n}function bO(e,t,n,r,i){for(let o=0;o<i;o++)n[r+o]=e[o]^t[o&3]}function vO(e,t){for(let n=0;n<e.length;n++)e[n]^=t[n&3]}function Uae(e){if(e.length===e.buffer.byteLength)return e.buffer;return e.buffer.slice(e.byteOffset,e.byteOffset+e.length)}function sx(e){if(sx.readOnly=!0,Buffer.isBuffer(e))return e;let t;if(e instanceof ArrayBuffer)t=new ox(e);else if(ArrayBuffer.isView(e))t=new ox(e.buffer,e.byteOffset,e.byteLength);else t=Buffer.from(e),sx.readOnly=!1;return t}Ef.exports={concat:Aae,mask:bO,toArrayBuffer:Uae,toBuffer:sx,unmask:vO};if(!process.env.WS_NO_BUFFER_UTIL)try{let e=(()=>{throw new Error("Cannot require module "+"bufferutil");})();Ef.exports.mask=function(t,n,r,i,o){if(o<48)bO(t,n,r,i,o);else e.mask(t,n,r,i,o)},Ef.exports.unmask=function(t,n){if(t.length<32)vO(t,n);else e.unmask(t,n)}}catch(e){}});var DO=R(function(F_e,wO){var xO=Symbol("kDone"),ax=Symbol("kRun");class _O{constructor(e){this[xO]=()=>{this.pending--,this[ax]()},this.concurrency=e||1/0,this.jobs=[],this.pending=0}add(e){this.jobs.push(e),this[ax]()}[ax](){if(this.pending===this.concurrency)return;if(this.jobs.length){let e=this.jobs.shift();this.pending++,e(this[xO])}}}wO.exports=_O});var xs=R(function(O_e,AO){var kc=re("zlib"),EO=Uc(),kae=DO(),{kStatusCode:TO}=lr(),Rae=Buffer[Symbol.species],Fae=Buffer.from([0,0,255,255]),Sf=Symbol("permessage-deflate"),dr=Symbol("total-length"),bs=Symbol("callback"),ni=Symbol("buffers"),vs=Symbol("error"),Tf;class SO{constructor(e){if(this._options=e||{},this._threshold=this._options.threshold!==void 0?this._options.threshold:1024,this._maxPayload=this._options.maxPayload|0,this._isServer=!!this._options.isServer,this._deflate=null,this._inflate=null,this.params=null,!Tf){let t=this._options.concurrencyLimit!==void 0?this._options.concurrencyLimit:10;Tf=new kae(t)}}static get extensionName(){return"permessage-deflate"}offer(){let e={};if(this._options.serverNoContextTakeover)e.server_no_context_takeover=!0;if(this._options.clientNoContextTakeover)e.client_no_context_takeover=!0;if(this._options.serverMaxWindowBits)e.server_max_window_bits=this._options.serverMaxWindowBits;if(this._options.clientMaxWindowBits)e.client_max_window_bits=this._options.clientMaxWindowBits;else if(this._options.clientMaxWindowBits==null)e.client_max_window_bits=!0;return e}accept(e){return e=this.normalizeParams(e),this.params=this._isServer?this.acceptAsServer(e):this.acceptAsClient(e),this.params}cleanup(){if(this._inflate)this._inflate.close(),this._inflate=null;if(this._deflate){let e=this._deflate[bs];if(this._deflate.close(),this._deflate=null,e)e(Error("The deflate stream was closed while data was being processed"))}}acceptAsServer(e){let t=this._options,n=e.find((r)=>{if(t.serverNoContextTakeover===!1&&r.server_no_context_takeover||r.server_max_window_bits&&(t.serverMaxWindowBits===!1||typeof t.serverMaxWindowBits==="number"&&t.serverMaxWindowBits>r.server_max_window_bits)||typeof t.clientMaxWindowBits==="number"&&(typeof r.client_max_window_bits==="number"?t.clientMaxWindowBits>r.client_max_window_bits:!r.client_max_window_bits))return!1;return!0});if(!n)throw Error("None of the extension offers can be accepted");if(t.serverNoContextTakeover)n.server_no_context_takeover=!0;if(t.clientNoContextTakeover)n.client_no_context_takeover=!0;if(typeof t.serverMaxWindowBits==="number")n.server_max_window_bits=t.serverMaxWindowBits;if(typeof t.clientMaxWindowBits==="number")n.client_max_window_bits=t.clientMaxWindowBits;else if(n.client_max_window_bits===!0||t.clientMaxWindowBits===!1)delete n.client_max_window_bits;return n}acceptAsClient(e){let t=e[0];if(this._options.clientNoContextTakeover===!1&&t.client_no_context_takeover)throw Error('Unexpected parameter "client_no_context_takeover"');if(!t.client_max_window_bits){if(typeof this._options.clientMaxWindowBits==="number")t.client_max_window_bits=this._options.clientMaxWindowBits}else if(this._options.clientMaxWindowBits===!1||typeof this._options.clientMaxWindowBits==="number"&&t.client_max_window_bits>this._options.clientMaxWindowBits)throw Error('Unexpected or invalid parameter "client_max_window_bits"');return t}normalizeParams(e){return e.forEach((t)=>{Object.keys(t).forEach((n)=>{let r=t[n];if(r.length>1)throw Error(`Parameter "${n}" must have only a single value`);if(r=r[0],n==="client_max_window_bits"){if(r!==!0){let i=+r;if(!Number.isInteger(i)||i<8||i>15)throw TypeError(`Invalid value for parameter "${n}": ${r}`);r=i}else if(!this._isServer)throw TypeError(`Invalid value for parameter "${n}": ${r}`)}else if(n==="server_max_window_bits"){let i=+r;if(!Number.isInteger(i)||i<8||i>15)throw TypeError(`Invalid value for parameter "${n}": ${r}`);r=i}else if(n==="client_no_context_takeover"||n==="server_no_context_takeover"){if(r!==!0)throw TypeError(`Invalid value for parameter "${n}": ${r}`)}else throw Error(`Unknown parameter "${n}"`);t[n]=r})}),e}decompress(e,t,n){Tf.add((r)=>{this._decompress(e,t,(i,o)=>{r(),n(i,o)})})}compress(e,t,n){Tf.add((r)=>{this._compress(e,t,(i,o)=>{r(),n(i,o)})})}_decompress(e,t,n){let r=this._isServer?"client":"server";if(!this._inflate){let i=`${r}_max_window_bits`,o=typeof this.params[i]!=="number"?kc.Z_DEFAULT_WINDOWBITS:this.params[i];this._inflate=kc.createInflateRaw({...this._options.zlibInflateOptions,windowBits:o}),this._inflate[Sf]=this,this._inflate[dr]=0,this._inflate[ni]=[],this._inflate.on("error",Pae),this._inflate.on("data",CO)}if(this._inflate[bs]=n,this._inflate.write(e),t)this._inflate.write(Fae);this._inflate.flush(()=>{let i=this._inflate[vs];if(i){this._inflate.close(),this._inflate=null,n(i);return}let o=EO.concat(this._inflate[ni],this._inflate[dr]);if(this._inflate._readableState.endEmitted)this._inflate.close(),this._inflate=null;else if(this._inflate[dr]=0,this._inflate[ni]=[],t&&this.params[`${r}_no_context_takeover`])this._inflate.reset();n(null,o)})}_compress(e,t,n){let r=this._isServer?"server":"client";if(!this._deflate){let i=`${r}_max_window_bits`,o=typeof this.params[i]!=="number"?kc.Z_DEFAULT_WINDOWBITS:this.params[i];this._deflate=kc.createDeflateRaw({...this._options.zlibDeflateOptions,windowBits:o}),this._deflate[dr]=0,this._deflate[ni]=[],this._deflate.on("data",Oae)}this._deflate[bs]=n,this._deflate.write(e),this._deflate.flush(kc.Z_SYNC_FLUSH,()=>{if(!this._deflate)return;let i=EO.concat(this._deflate[ni],this._deflate[dr]);if(t)i=new Rae(i.buffer,i.byteOffset,i.length-4);if(this._deflate[bs]=null,this._deflate[dr]=0,this._deflate[ni]=[],t&&this.params[`${r}_no_context_takeover`])this._deflate.reset();n(null,i)})}}AO.exports=SO;function Oae(e){this[ni].push(e),this[dr]+=e.length}function CO(e){if(this[dr]+=e.length,this[Sf]._maxPayload<1||this[dr]<=this[Sf]._maxPayload){this[ni].push(e);return}this[vs]=RangeError("Max payload size exceeded"),this[vs].code="WS_ERR_UNSUPPORTED_MESSAGE_LENGTH",this[vs][TO]=1009,this.removeListener("data",CO),this.reset()}function Pae(e){if(this[Sf]._inflate=null,this[vs]){this[bs](this[vs]);return}e[TO]=1007,this[bs](e)}});var _s=R(function(P_e,Cf){var{isUtf8:UO}=re("buffer"),{hasBlob:Iae}=lr(),Mae=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,1,1,1,1,1,0,0,1,1,0,1,1,0,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,1,0,1,0];function Nae(e){return e>=1000&&e<=1014&&e!==1004&&e!==1005&&e!==1006||e>=3000&&e<=4999}function cx(e){let t=e.length,n=0;while(n<t)if((e[n]&128)===0)n++;else if((e[n]&224)===192){if(n+1===t||(e[n+1]&192)!==128||(e[n]&254)===192)return!1;n+=2}else if((e[n]&240)===224){if(n+2>=t||(e[n+1]&192)!==128||(e[n+2]&192)!==128||e[n]===224&&(e[n+1]&224)===128||e[n]===237&&(e[n+1]&224)===160)return!1;n+=3}else if((e[n]&248)===240){if(n+3>=t||(e[n+1]&192)!==128||(e[n+2]&192)!==128||(e[n+3]&192)!==128||e[n]===240&&(e[n+1]&240)===128||e[n]===244&&e[n+1]>143||e[n]>244)return!1;n+=4}else return!1;return!0}function Bae(e){return Iae&&typeof e==="object"&&typeof e.arrayBuffer==="function"&&typeof e.type==="string"&&typeof e.stream==="function"&&(e[Symbol.toStringTag]==="Blob"||e[Symbol.toStringTag]==="File")}Cf.exports={isBlob:Bae,isValidStatusCode:Nae,isValidUTF8:cx,tokenChars:Mae};if(UO)Cf.exports.isValidUTF8=function(e){return e.length<24?cx(e):UO(e)};else if(!process.env.WS_NO_UTF_8_VALIDATE)try{let e=(()=>{throw new Error("Cannot require module "+"utf-8-validate");})();Cf.exports.isValidUTF8=function(t){return t.length<32?cx(t):e(t)}}catch(e){}});var lx=R(function(I_e,PO){var{Writable:Lae}=re("stream"),kO=xs(),{BINARY_TYPES:Wae,EMPTY_BUFFER:RO,kStatusCode:jae,kWebSocket:qae}=lr(),{concat:ux,toArrayBuffer:$ae,unmask:Hae}=Uc(),{isValidStatusCode:Gae,isValidUTF8:FO}=_s(),Af=Buffer[Symbol.species];class OO extends Lae{constructor(e={}){super();this._allowSynchronousEvents=e.allowSynchronousEvents!==void 0?e.allowSynchronousEvents:!0,this._binaryType=e.binaryType||Wae[0],this._extensions=e.extensions||{},this._isServer=!!e.isServer,this._maxBufferedChunks=e.maxBufferedChunks|0,this._maxFragments=e.maxFragments|0,this._maxPayload=e.maxPayload|0,this._skipUTF8Validation=!!e.skipUTF8Validation,this[qae]=void 0,this._bufferedBytes=0,this._buffers=[],this._compressed=!1,this._payloadLength=0,this._mask=void 0,this._fragmented=0,this._masked=!1,this._fin=!1,this._opcode=0,this._totalPayloadLength=0,this._messageLength=0,this._numFragments=0,this._fragments=[],this._errored=!1,this._loop=!1,this._state=0}_write(e,t,n){if(this._opcode===8&&this._state==0)return n();if(this._maxBufferedChunks>0&&this._buffers.length>=this._maxBufferedChunks){n(this.createError(RangeError,"Too many buffered chunks",!1,1008,"WS_ERR_TOO_MANY_BUFFERED_PARTS"));return}this._bufferedBytes+=e.length,this._buffers.push(e),this.startLoop(n)}consume(e){if(this._bufferedBytes-=e,e===this._buffers[0].length)return this._buffers.shift();if(e<this._buffers[0].length){let n=this._buffers[0];return this._buffers[0]=new Af(n.buffer,n.byteOffset+e,n.length-e),new Af(n.buffer,n.byteOffset,e)}let t=Buffer.allocUnsafe(e);do{let n=this._buffers[0],r=t.length-e;if(e>=n.length)t.set(this._buffers.shift(),r);else t.set(new Uint8Array(n.buffer,n.byteOffset,e),r),this._buffers[0]=new Af(n.buffer,n.byteOffset+e,n.length-e);e-=n.length}while(e>0);return t}startLoop(e){this._loop=!0;do switch(this._state){case 0:this.getInfo(e);break;case 1:this.getPayloadLength16(e);break;case 2:this.getPayloadLength64(e);break;case 3:this.getMask();break;case 4:this.getData(e);break;case 5:case 6:this._loop=!1;return}while(this._loop);if(!this._errored)e()}getInfo(e){if(this._bufferedBytes<2){this._loop=!1;return}let t=this.consume(2);if((t[0]&48)!==0){let r=this.createError(RangeError,"RSV2 and RSV3 must be clear",!0,1002,"WS_ERR_UNEXPECTED_RSV_2_3");e(r);return}let n=(t[0]&64)===64;if(n&&!this._extensions[kO.extensionName]){let r=this.createError(RangeError,"RSV1 must be clear",!0,1002,"WS_ERR_UNEXPECTED_RSV_1");e(r);return}if(this._fin=(t[0]&128)===128,this._opcode=t[0]&15,this._payloadLength=t[1]&127,this._opcode===0){if(n){let r=this.createError(RangeError,"RSV1 must be clear",!0,1002,"WS_ERR_UNEXPECTED_RSV_1");e(r);return}if(!this._fragmented){let r=this.createError(RangeError,"invalid opcode 0",!0,1002,"WS_ERR_INVALID_OPCODE");e(r);return}this._opcode=this._fragmented}else if(this._opcode===1||this._opcode===2){if(this._fragmented){let r=this.createError(RangeError,`invalid opcode ${this._opcode}`,!0,1002,"WS_ERR_INVALID_OPCODE");e(r);return}this._compressed=n}else if(this._opcode>7&&this._opcode<11){if(!this._fin){let r=this.createError(RangeError,"FIN must be set",!0,1002,"WS_ERR_EXPECTED_FIN");e(r);return}if(n){let r=this.createError(RangeError,"RSV1 must be clear",!0,1002,"WS_ERR_UNEXPECTED_RSV_1");e(r);return}if(this._payloadLength>125||this._opcode===8&&this._payloadLength===1){let r=this.createError(RangeError,`invalid payload length ${this._payloadLength}`,!0,1002,"WS_ERR_INVALID_CONTROL_PAYLOAD_LENGTH");e(r);return}}else{let r=this.createError(RangeError,`invalid opcode ${this._opcode}`,!0,1002,"WS_ERR_INVALID_OPCODE");e(r);return}if(!this._fin&&!this._fragmented)this._fragmented=this._opcode;if(this._masked=(t[1]&128)===128,this._isServer){if(!this._masked){let r=this.createError(RangeError,"MASK must be set",!0,1002,"WS_ERR_EXPECTED_MASK");e(r);return}}else if(this._masked){let r=this.createError(RangeError,"MASK must be clear",!0,1002,"WS_ERR_UNEXPECTED_MASK");e(r);return}if(this._payloadLength===126)this._state=1;else if(this._payloadLength===127)this._state=2;else this.haveLength(e)}getPayloadLength16(e){if(this._bufferedBytes<2){this._loop=!1;return}this._payloadLength=this.consume(2).readUInt16BE(0),this.haveLength(e)}getPayloadLength64(e){if(this._bufferedBytes<8){this._loop=!1;return}let t=this.consume(8),n=t.readUInt32BE(0);if(n>Math.pow(2,21)-1){let r=this.createError(RangeError,"Unsupported WebSocket frame: payload length > 2^53 - 1",!1,1009,"WS_ERR_UNSUPPORTED_DATA_PAYLOAD_LENGTH");e(r);return}this._payloadLength=n*Math.pow(2,32)+t.readUInt32BE(4),this.haveLength(e)}haveLength(e){if(this._payloadLength&&this._opcode<8){if(this._totalPayloadLength+=this._payloadLength,this._totalPayloadLength>this._maxPayload&&this._maxPayload>0){let t=this.createError(RangeError,"Max payload size exceeded",!1,1009,"WS_ERR_UNSUPPORTED_MESSAGE_LENGTH");e(t);return}}if(this._masked)this._state=3;else this._state=4}getMask(){if(this._bufferedBytes<4){this._loop=!1;return}this._mask=this.consume(4),this._state=4}getData(e){let t=RO;if(this._payloadLength){if(this._bufferedBytes<this._payloadLength){this._loop=!1;return}if(t=this.consume(this._payloadLength),this._masked&&(this._mask[0]|this._mask[1]|this._mask[2]|this._mask[3])!==0)Hae(t,this._mask)}if(this._opcode>7){this.controlMessage(t,e);return}if(this._maxFragments>0&&++this._numFragments>this._maxFragments){let n=this.createError(RangeError,"Too many message fragments",!1,1008,"WS_ERR_TOO_MANY_BUFFERED_PARTS");e(n);return}if(this._compressed){this._state=5,this.decompress(t,e);return}if(t.length)this._messageLength=this._totalPayloadLength,this._fragments.push(t);this.dataMessage(e)}decompress(e,t){this._extensions[kO.extensionName].decompress(e,this._fin,(r,i)=>{if(r)return t(r);if(i.length){if(this._messageLength+=i.length,this._messageLength>this._maxPayload&&this._maxPayload>0){let o=this.createError(RangeError,"Max payload size exceeded",!1,1009,"WS_ERR_UNSUPPORTED_MESSAGE_LENGTH");t(o);return}this._fragments.push(i)}if(this.dataMessage(t),this._state===0)this.startLoop(t)})}dataMessage(e){if(!this._fin){this._state=0;return}let t=this._messageLength,n=this._fragments;if(this._totalPayloadLength=0,this._messageLength=0,this._fragmented=0,this._numFragments=0,this._fragments=[],this._opcode===2){let r;if(this._binaryType==="nodebuffer")r=ux(n,t);else if(this._binaryType==="arraybuffer")r=$ae(ux(n,t));else if(this._binaryType==="blob")r=new Blob(n);else r=n;if(this._allowSynchronousEvents)this.emit("message",r,!0),this._state=0;else this._state=6,setImmediate(()=>{this.emit("message",r,!0),this._state=0,this.startLoop(e)})}else{let r=ux(n,t);if(!this._skipUTF8Validation&&!FO(r)){let i=this.createError(Error,"invalid UTF-8 sequence",!0,1007,"WS_ERR_INVALID_UTF8");e(i);return}if(this._state===5||this._allowSynchronousEvents)this.emit("message",r,!1),this._state=0;else this._state=6,setImmediate(()=>{this.emit("message",r,!1),this._state=0,this.startLoop(e)})}}controlMessage(e,t){if(this._opcode===8){if(e.length===0)this._loop=!1,this.emit("conclude",1005,RO),this.end();else{let n=e.readUInt16BE(0);if(!Gae(n)){let i=this.createError(RangeError,`invalid status code ${n}`,!0,1002,"WS_ERR_INVALID_CLOSE_CODE");t(i);return}let r=new Af(e.buffer,e.byteOffset+2,e.length-2);if(!this._skipUTF8Validation&&!FO(r)){let i=this.createError(Error,"invalid UTF-8 sequence",!0,1007,"WS_ERR_INVALID_UTF8");t(i);return}this._loop=!1,this.emit("conclude",n,r),this.end()}this._state=0;return}if(this._allowSynchronousEvents)this.emit(this._opcode===9?"ping":"pong",e),this._state=0;else this._state=6,setImmediate(()=>{this.emit(this._opcode===9?"ping":"pong",e),this._state=0,this.startLoop(t)})}createError(e,t,n,r,i){this._loop=!1,this._errored=!0;let o=new e(n?`Invalid WebSocket frame: ${t}`:t);return Error.captureStackTrace(o,this.createError),o.code=i,o[jae]=r,o}}PO.exports=OO});var fx=R(function(N_e,NO){var{Duplex:M_e}=re("stream"),{randomFillSync:zae}=re("crypto"),{types:{isUint8Array:Vae}}=re("util"),IO=xs(),{EMPTY_BUFFER:Xae,kWebSocket:Kae,NOOP:Zae}=lr(),{isBlob:ws,isValidStatusCode:Yae}=_s(),{mask:MO,toBuffer:Gi}=Uc(),tn=Symbol("kByteLength"),Jae=Buffer.alloc(4),zi,Ds=8192,hn=0,Qae=1,ece=2;class ri{constructor(e,t,n){if(this._extensions=t||{},n)this._generateMask=n,this._maskBuffer=Buffer.alloc(4);this._socket=e,this._firstFragment=!0,this._compress=!1,this._bufferedBytes=0,this._queue=[],this._state=hn,this.onerror=Zae,this[Kae]=void 0}static frame(e,t){let n,r=!1,i=2,o=!1;if(t.mask){if(n=t.maskBuffer||Jae,t.generateMask)t.generateMask(n);else{if(Ds===8192){if(zi===void 0)zi=Buffer.alloc(8192);zae(zi,0,8192),Ds=0}n[0]=zi[Ds++],n[1]=zi[Ds++],n[2]=zi[Ds++],n[3]=zi[Ds++]}o=(n[0]|n[1]|n[2]|n[3])===0,i=6}let s;if(typeof e==="string")if((!t.mask||o)&&t[tn]!==void 0)s=t[tn];else e=Buffer.from(e),s=e.length;else s=e.length,r=t.mask&&t.readOnly&&!o;let a=s;if(s>=65536)i+=8,a=127;else if(s>125)i+=2,a=126;let c=Buffer.allocUnsafe(r?s+i:i);if(c[0]=t.fin?t.opcode|128:t.opcode,t.rsv1)c[0]|=64;if(c[1]=a,a===126)c.writeUInt16BE(s,2);else if(a===127)c[2]=c[3]=0,c.writeUIntBE(s,4,6);if(!t.mask)return[c,e];if(c[1]|=128,c[i-4]=n[0],c[i-3]=n[1],c[i-2]=n[2],c[i-1]=n[3],o)return[c,e];if(r)return MO(e,n,c,i,s),[c];return MO(e,n,e,0,s),[c,e]}close(e,t,n,r){let i;if(e===void 0)i=Xae;else if(typeof e!=="number"||!Yae(e))throw TypeError("First argument must be a valid error code number");else if(t===void 0||!t.length)i=Buffer.allocUnsafe(2),i.writeUInt16BE(e,0);else{let s=Buffer.byteLength(t);if(s>123)throw RangeError("The message must not be greater than 123 bytes");if(i=Buffer.allocUnsafe(2+s),i.writeUInt16BE(e,0),typeof t==="string")i.write(t,2);else if(Vae(t))i.set(t,2);else throw TypeError("Second argument must be a string or a Uint8Array")}let o={[tn]:i.length,fin:!0,generateMask:this._generateMask,mask:n,maskBuffer:this._maskBuffer,opcode:8,readOnly:!1,rsv1:!1};if(this._state!==hn)this.enqueue([this.dispatch,i,!1,o,r]);else this.sendFrame(ri.frame(i,o),r)}ping(e,t,n){let r,i;if(typeof e==="string")r=Buffer.byteLength(e),i=!1;else if(ws(e))r=e.size,i=!1;else e=Gi(e),r=e.length,i=Gi.readOnly;if(r>125)throw RangeError("The data size must not be greater than 125 bytes");let o={[tn]:r,fin:!0,generateMask:this._generateMask,mask:t,maskBuffer:this._maskBuffer,opcode:9,readOnly:i,rsv1:!1};if(ws(e))if(this._state!==hn)this.enqueue([this.getBlobData,e,!1,o,n]);else this.getBlobData(e,!1,o,n);else if(this._state!==hn)this.enqueue([this.dispatch,e,!1,o,n]);else this.sendFrame(ri.frame(e,o),n)}pong(e,t,n){let r,i;if(typeof e==="string")r=Buffer.byteLength(e),i=!1;else if(ws(e))r=e.size,i=!1;else e=Gi(e),r=e.length,i=Gi.readOnly;if(r>125)throw RangeError("The data size must not be greater than 125 bytes");let o={[tn]:r,fin:!0,generateMask:this._generateMask,mask:t,maskBuffer:this._maskBuffer,opcode:10,readOnly:i,rsv1:!1};if(ws(e))if(this._state!==hn)this.enqueue([this.getBlobData,e,!1,o,n]);else this.getBlobData(e,!1,o,n);else if(this._state!==hn)this.enqueue([this.dispatch,e,!1,o,n]);else this.sendFrame(ri.frame(e,o),n)}send(e,t,n){let r=this._extensions[IO.extensionName],i=t.binary?2:1,o=t.compress,s,a;if(typeof e==="string")s=Buffer.byteLength(e),a=!1;else if(ws(e))s=e.size,a=!1;else e=Gi(e),s=e.length,a=Gi.readOnly;if(this._firstFragment){if(this._firstFragment=!1,o&&r&&r.params[r._isServer?"server_no_context_takeover":"client_no_context_takeover"])o=s>=r._threshold;this._compress=o}else o=!1,i=0;if(t.fin)this._firstFragment=!0;let c={[tn]:s,fin:t.fin,generateMask:this._generateMask,mask:t.mask,maskBuffer:this._maskBuffer,opcode:i,readOnly:a,rsv1:o};if(ws(e))if(this._state!==hn)this.enqueue([this.getBlobData,e,this._compress,c,n]);else this.getBlobData(e,this._compress,c,n);else if(this._state!==hn)this.enqueue([this.dispatch,e,this._compress,c,n]);else this.dispatch(e,this._compress,c,n)}getBlobData(e,t,n,r){this._bufferedBytes+=n[tn],this._state=ece,e.arrayBuffer().then((i)=>{if(this._socket.destroyed){let s=Error("The socket was closed while the blob was being read");process.nextTick(dx,this,s,r);return}this._bufferedBytes-=n[tn];let o=Gi(i);if(!t)this._state=hn,this.sendFrame(ri.frame(o,n),r),this.dequeue();else this.dispatch(o,t,n,r)}).catch((i)=>{process.nextTick(tce,this,i,r)})}dispatch(e,t,n,r){if(!t){this.sendFrame(ri.frame(e,n),r);return}let i=this._extensions[IO.extensionName];this._bufferedBytes+=n[tn],this._state=Qae,i.compress(e,n.fin,(o,s)=>{if(this._socket.destroyed){let a=Error("The socket was closed while data was being compressed");dx(this,a,r);return}this._bufferedBytes-=n[tn],this._state=hn,n.readOnly=!1,this.sendFrame(ri.frame(s,n),r),this.dequeue()})}dequeue(){while(this._state===hn&&this._queue.length){let e=this._queue.shift();this._bufferedBytes-=e[3][tn],Reflect.apply(e[0],this,e.slice(1))}}enqueue(e){this._bufferedBytes+=e[3][tn],this._queue.push(e)}sendFrame(e,t){if(e.length===2)this._socket.cork(),this._socket.write(e[0]),this._socket.write(e[1],t),this._socket.uncork();else this._socket.write(e[0],t)}}NO.exports=ri;function dx(e,t,n){if(typeof n==="function")n(t);for(let r=0;r<e._queue.length;r++){let i=e._queue[r],o=i[i.length-1];if(typeof o==="function")o(t)}}function tce(e,t,n){dx(e,t,n),e.onerror(t)}});var zO=R(function(B_e,GO){var{kForOnEventAttribute:Rc,kListener:hx}=lr(),BO=Symbol("kCode"),LO=Symbol("kData"),WO=Symbol("kError"),jO=Symbol("kMessage"),qO=Symbol("kReason"),Es=Symbol("kTarget"),$O=Symbol("kType"),HO=Symbol("kWasClean");class ii{constructor(e){this[Es]=null,this[$O]=e}get target(){return this[Es]}get type(){return this[$O]}}Object.defineProperty(ii.prototype,"target",{enumerable:!0});Object.defineProperty(ii.prototype,"type",{enumerable:!0});class Ts extends ii{constructor(e,t={}){super(e);this[BO]=t.code===void 0?0:t.code,this[qO]=t.reason===void 0?"":t.reason,this[HO]=t.wasClean===void 0?!1:t.wasClean}get code(){return this[BO]}get reason(){return this[qO]}get wasClean(){return this[HO]}}Object.defineProperty(Ts.prototype,"code",{enumerable:!0});Object.defineProperty(Ts.prototype,"reason",{enumerable:!0});Object.defineProperty(Ts.prototype,"wasClean",{enumerable:!0});class Fc extends ii{constructor(e,t={}){super(e);this[WO]=t.error===void 0?null:t.error,this[jO]=t.message===void 0?"":t.message}get error(){return this[WO]}get message(){return this[jO]}}Object.defineProperty(Fc.prototype,"error",{enumerable:!0});Object.defineProperty(Fc.prototype,"message",{enumerable:!0});class kf extends ii{constructor(e,t={}){super(e);this[LO]=t.data===void 0?null:t.data}get data(){return this[LO]}}Object.defineProperty(kf.prototype,"data",{enumerable:!0});var nce={addEventListener(e,t,n={}){for(let i of this.listeners(e))if(!n[Rc]&&i[hx]===t&&!i[Rc])return;let r;if(e==="message")r=function(o,s){let a=new kf("message",{data:s?o:o.toString()});a[Es]=this,Uf(t,this,a)};else if(e==="close")r=function(o,s){let a=new Ts("close",{code:o,reason:s.toString(),wasClean:this._closeFrameReceived&&this._closeFrameSent});a[Es]=this,Uf(t,this,a)};else if(e==="error")r=function(o){let s=new Fc("error",{error:o,message:o.message});s[Es]=this,Uf(t,this,s)};else if(e==="open")r=function(){let o=new ii("open");o[Es]=this,Uf(t,this,o)};else return;if(r[Rc]=!!n[Rc],r[hx]=t,n.once)this.once(e,r);else this.on(e,r)},removeEventListener(e,t){for(let n of this.listeners(e))if(n[hx]===t&&!n[Rc]){this.removeListener(e,n);break}}};GO.exports={CloseEvent:Ts,ErrorEvent:Fc,Event:ii,EventTarget:nce,MessageEvent:kf};function Uf(e,t,n){if(typeof e==="object"&&e.handleEvent)e.handleEvent.call(e,n);else e.call(t,n)}});var Rf=R(function(L_e,VO){var{tokenChars:Oc}=_s();function Bn(e,t,n){if(e[t]===void 0)e[t]=[n];else e[t].push(n)}function rce(e){let t=Object.create(null),n=Object.create(null),r=!1,i=!1,o=!1,s,a,c=-1,u=-1,d=-1,f=0;for(;f<e.length;f++)if(u=e.charCodeAt(f),s===void 0)if(d===-1&&Oc[u]===1){if(c===-1)c=f}else if(f!==0&&(u===32||u===9)){if(d===-1&&c!==-1)d=f}else if(u===59||u===44){if(c===-1)throw SyntaxError(`Unexpected character at index ${f}`);if(d===-1)d=f;let p=e.slice(c,d);if(u===44)Bn(t,p,n),n=Object.create(null);else s=p;c=d=-1}else throw SyntaxError(`Unexpected character at index ${f}`);else if(a===void 0)if(d===-1&&Oc[u]===1){if(c===-1)c=f}else if(u===32||u===9){if(d===-1&&c!==-1)d=f}else if(u===59||u===44){if(c===-1)throw SyntaxError(`Unexpected character at index ${f}`);if(d===-1)d=f;if(Bn(n,e.slice(c,d),!0),u===44)Bn(t,s,n),n=Object.create(null),s=void 0;c=d=-1}else if(u===61&&c!==-1&&d===-1)a=e.slice(c,f),c=d=-1;else throw SyntaxError(`Unexpected character at index ${f}`);else if(i){if(Oc[u]!==1)throw SyntaxError(`Unexpected character at index ${f}`);if(c===-1)c=f;else if(!r)r=!0;i=!1}else if(o)if(Oc[u]===1){if(c===-1)c=f}else if(u===34&&c!==-1)o=!1,d=f;else if(u===92)i=!0;else throw SyntaxError(`Unexpected character at index ${f}`);else if(u===34&&e.charCodeAt(f-1)===61)o=!0;else if(d===-1&&Oc[u]===1){if(c===-1)c=f}else if(c!==-1&&(u===32||u===9)){if(d===-1)d=f}else if(u===59||u===44){if(c===-1)throw SyntaxError(`Unexpected character at index ${f}`);if(d===-1)d=f;let p=e.slice(c,d);if(r)p=p.replace(/\\/g,""),r=!1;if(Bn(n,a,p),u===44)Bn(t,s,n),n=Object.create(null),s=void 0;a=void 0,c=d=-1}else throw SyntaxError(`Unexpected character at index ${f}`);if(c===-1||o||u===32||u===9)throw SyntaxError("Unexpected end of input");if(d===-1)d=f;let h=e.slice(c,d);if(s===void 0)Bn(t,h,n);else{if(a===void 0)Bn(n,h,!0);else if(r)Bn(n,a,h.replace(/\\/g,""));else Bn(n,a,h);Bn(t,s,n)}return t}function ice(e){return Object.keys(e).map((t)=>{let n=e[t];if(!Array.isArray(n))n=[n];return n.map((r)=>[t].concat(Object.keys(r).map((i)=>{let o=r[i];if(!Array.isArray(o))o=[o];return o.map((s)=>s===!0?i:`${i}=${s}`).join("; ")})).join("; ")).join(", ")}).join(", ")}VO.exports={format:ice,parse:rce}});var If=R(function(q_e,oP){var oce=re("events"),sce=re("https"),ace=re("http"),ZO=re("net"),cce=re("tls"),{randomBytes:uce,createHash:lce}=re("crypto"),{Duplex:W_e,Readable:j_e}=re("stream"),{URL:px}=re("url"),oi=xs(),dce=lx(),fce=fx(),{isBlob:hce}=_s(),{BINARY_TYPES:XO,CLOSE_TIMEOUT:pce,EMPTY_BUFFER:Ff,GUID:gce,kForOnEventAttribute:gx,kListener:mce,kStatusCode:yce,kWebSocket:Je,NOOP:YO}=lr(),{EventTarget:{addEventListener:bce,removeEventListener:vce}}=zO(),{format:xce,parse:_ce}=Rf(),{toBuffer:wce}=Uc(),JO=Symbol("kAborted"),mx=[8,13],fr=["CONNECTING","OPEN","CLOSING","CLOSED"],Dce=/^[!#$%&'*+\-.0-9A-Z^_`|a-z~]+$/;class ie extends oce{constructor(e,t,n){super();if(this._binaryType=XO[0],this._closeCode=1006,this._closeFrameReceived=!1,this._closeFrameSent=!1,this._closeMessage=Ff,this._closeTimer=null,this._errorEmitted=!1,this._extensions={},this._paused=!1,this._protocol="",this._readyState=ie.CONNECTING,this._receiver=null,this._sender=null,this._socket=null,e!==null){if(this._bufferedAmount=0,this._isServer=!1,this._redirects=0,t===void 0)t=[];else if(!Array.isArray(t))if(typeof t==="object"&&t!==null)n=t,t=[];else t=[t];QO(this,e,t,n)}else this._autoPong=n.autoPong,this._closeTimeout=n.closeTimeout,this._isServer=!0}get binaryType(){return this._binaryType}set binaryType(e){if(!XO.includes(e))return;if(this._binaryType=e,this._receiver)this._receiver._binaryType=e}get bufferedAmount(){if(!this._socket)return this._bufferedAmount;return this._socket._writableState.length+this._sender._bufferedBytes}get extensions(){return Object.keys(this._extensions).join()}get isPaused(){return this._paused}get onclose(){return null}get onerror(){return null}get onopen(){return null}get onmessage(){return null}get protocol(){return this._protocol}get readyState(){return this._readyState}get url(){return this._url}setSocket(e,t,n){let r=new dce({allowSynchronousEvents:n.allowSynchronousEvents,binaryType:this.binaryType,extensions:this._extensions,isServer:this._isServer,maxBufferedChunks:n.maxBufferedChunks,maxFragments:n.maxFragments,maxPayload:n.maxPayload,skipUTF8Validation:n.skipUTF8Validation}),i=new fce(e,this._extensions,n.generateMask);if(this._receiver=r,this._sender=i,this._socket=e,r[Je]=this,i[Je]=this,e[Je]=this,r.on("conclude",Sce),r.on("drain",Cce),r.on("error",Ace),r.on("message",Uce),r.on("ping",kce),r.on("pong",Rce),i.onerror=Fce,e.setTimeout)e.setTimeout(0);if(e.setNoDelay)e.setNoDelay();if(t.length>0)e.unshift(t);e.on("close",nP),e.on("data",Pf),e.on("end",rP),e.on("error",iP),this._readyState=ie.OPEN,this.emit("open")}emitClose(){if(!this._socket){this._readyState=ie.CLOSED,this.emit("close",this._closeCode,this._closeMessage);return}if(this._extensions[oi.extensionName])this._extensions[oi.extensionName].cleanup();this._receiver.removeAllListeners(),this._readyState=ie.CLOSED,this.emit("close",this._closeCode,this._closeMessage)}close(e,t){if(this.readyState===ie.CLOSED)return;if(this.readyState===ie.CONNECTING){Bt(this,this._req,"WebSocket was closed before the connection was established");return}if(this.readyState===ie.CLOSING){if(this._closeFrameSent&&(this._closeFrameReceived||this._receiver._writableState.errorEmitted))this._socket.end();return}this._readyState=ie.CLOSING,this._sender.close(e,t,!this._isServer,(n)=>{if(n)return;if(this._closeFrameSent=!0,this._closeFrameReceived||this._receiver._writableState.errorEmitted)this._socket.end()}),tP(this)}pause(){if(this.readyState===ie.CONNECTING||this.readyState===ie.CLOSED)return;this._paused=!0,this._socket.pause()}ping(e,t,n){if(this.readyState===ie.CONNECTING)throw Error("WebSocket is not open: readyState 0 (CONNECTING)");if(typeof e==="function")n=e,e=t=void 0;else if(typeof t==="function")n=t,t=void 0;if(typeof e==="number")e=e.toString();if(this.readyState!==ie.OPEN){yx(this,e,n);return}if(t===void 0)t=!this._isServer;this._sender.ping(e||Ff,t,n)}pong(e,t,n){if(this.readyState===ie.CONNECTING)throw Error("WebSocket is not open: readyState 0 (CONNECTING)");if(typeof e==="function")n=e,e=t=void 0;else if(typeof t==="function")n=t,t=void 0;if(typeof e==="number")e=e.toString();if(this.readyState!==ie.OPEN){yx(this,e,n);return}if(t===void 0)t=!this._isServer;this._sender.pong(e||Ff,t,n)}resume(){if(this.readyState===ie.CONNECTING||this.readyState===ie.CLOSED)return;if(this._paused=!1,!this._receiver._writableState.needDrain)this._socket.resume()}send(e,t,n){if(this.readyState===ie.CONNECTING)throw Error("WebSocket is not open: readyState 0 (CONNECTING)");if(typeof t==="function")n=t,t={};if(typeof e==="number")e=e.toString();if(this.readyState!==ie.OPEN){yx(this,e,n);return}let r={binary:typeof e!=="string",mask:!this._isServer,compress:!0,fin:!0,...t};if(!this._extensions[oi.extensionName])r.compress=!1;this._sender.send(e||Ff,r,n)}terminate(){if(this.readyState===ie.CLOSED)return;if(this.readyState===ie.CONNECTING){Bt(this,this._req,"WebSocket was closed before the connection was established");return}if(this._socket)this._readyState=ie.CLOSING,this._socket.destroy()}}Object.defineProperty(ie,"CONNECTING",{enumerable:!0,value:fr.indexOf("CONNECTING")});Object.defineProperty(ie.prototype,"CONNECTING",{enumerable:!0,value:fr.indexOf("CONNECTING")});Object.defineProperty(ie,"OPEN",{enumerable:!0,value:fr.indexOf("OPEN")});Object.defineProperty(ie.prototype,"OPEN",{enumerable:!0,value:fr.indexOf("OPEN")});Object.defineProperty(ie,"CLOSING",{enumerable:!0,value:fr.indexOf("CLOSING")});Object.defineProperty(ie.prototype,"CLOSING",{enumerable:!0,value:fr.indexOf("CLOSING")});Object.defineProperty(ie,"CLOSED",{enumerable:!0,value:fr.indexOf("CLOSED")});Object.defineProperty(ie.prototype,"CLOSED",{enumerable:!0,value:fr.indexOf("CLOSED")});["binaryType","bufferedAmount","extensions","isPaused","protocol","readyState","url"].forEach((e)=>{Object.defineProperty(ie.prototype,e,{enumerable:!0})});["open","error","close","message"].forEach((e)=>{Object.defineProperty(ie.prototype,`on${e}`,{enumerable:!0,get(){for(let t of this.listeners(e))if(t[gx])return t[mce];return null},set(t){for(let n of this.listeners(e))if(n[gx]){this.removeListener(e,n);break}if(typeof t!=="function")return;this.addEventListener(e,t,{[gx]:!0})}})});ie.prototype.addEventListener=bce;ie.prototype.removeEventListener=vce;oP.exports=ie;function QO(e,t,n,r){let i={allowSynchronousEvents:!0,autoPong:!0,closeTimeout:pce,protocolVersion:mx[1],maxBufferedChunks:262144,maxFragments:16384,maxPayload:104857600,skipUTF8Validation:!1,perMessageDeflate:!0,followRedirects:!1,maxRedirects:10,...r,socketPath:void 0,hostname:void 0,protocol:void 0,timeout:void 0,method:"GET",host:void 0,path:void 0,port:void 0};if(e._autoPong=i.autoPong,e._closeTimeout=i.closeTimeout,!mx.includes(i.protocolVersion))throw RangeError(`Unsupported protocol version: ${i.protocolVersion} (supported versions: ${mx.join(", ")})`);let o;if(t instanceof px)o=t;else try{o=new px(t)}catch{throw SyntaxError(`Invalid URL: ${t}`)}if(o.protocol==="http:")o.protocol="ws:";else if(o.protocol==="https:")o.protocol="wss:";e._url=o.href;let s=o.protocol==="wss:",a=o.protocol==="ws+unix:",c;if(o.protocol!=="ws:"&&!s&&!a)c=`The URL's protocol must be one of "ws:", "wss:", "http:", "https:", or "ws+unix:"`;else if(a&&!o.pathname)c="The URL's pathname is empty";else if(o.hash)c="The URL contains a fragment identifier";if(c){let y=SyntaxError(c);if(e._redirects===0)throw y;else{Of(e,y);return}}let u=s?443:80,d=uce(16).toString("base64"),f=s?sce.request:ace.request,h=new Set,p;if(i.createConnection=i.createConnection||(s?Tce:Ece),i.defaultPort=i.defaultPort||u,i.port=o.port||u,i.host=o.hostname.startsWith("[")?o.hostname.slice(1,-1):o.hostname,i.headers={...i.headers,"Sec-WebSocket-Version":i.protocolVersion,"Sec-WebSocket-Key":d,Connection:"Upgrade",Upgrade:"websocket"},i.path=o.pathname+o.search,i.timeout=i.handshakeTimeout,i.perMessageDeflate)p=new oi({...i.perMessageDeflate,isServer:!1,maxPayload:i.maxPayload}),i.headers["Sec-WebSocket-Extensions"]=xce({[oi.extensionName]:p.offer()});if(n.length){for(let y of n){if(typeof y!=="string"||!Dce.test(y)||h.has(y))throw SyntaxError("An invalid or duplicated subprotocol was specified");h.add(y)}i.headers["Sec-WebSocket-Protocol"]=n.join(",")}if(i.origin)if(i.protocolVersion<13)i.headers["Sec-WebSocket-Origin"]=i.origin;else i.headers.Origin=i.origin;if(o.username||o.password)i.auth=`${o.username}:${o.password}`;if(a){let y=i.path.split(":");i.socketPath=y[0],i.path=y[1]}let g;if(i.followRedirects){if(e._redirects===0){e._originalIpc=a,e._originalSecure=s,e._originalHostOrSocketPath=a?i.socketPath:o.host;let y=r&&r.headers;if(r={...r,headers:{}},y)for(let[v,b]of Object.entries(y))r.headers[v.toLowerCase()]=b}else if(e.listenerCount("redirect")===0){let y=a?e._originalIpc?i.socketPath===e._originalHostOrSocketPath:!1:e._originalIpc?!1:o.host===e._originalHostOrSocketPath;if(!y||e._originalSecure&&!s){if(delete i.headers.authorization,delete i.headers.cookie,!y)delete i.headers.host;i.auth=void 0}}if(i.auth&&!r.headers.authorization)r.headers.authorization="Basic "+Buffer.from(i.auth).toString("base64");if(g=e._req=f(i),e._redirects)e.emit("redirect",e.url,g)}else g=e._req=f(i);if(i.timeout)g.on("timeout",()=>{Bt(e,g,"Opening handshake has timed out")});if(g.on("error",(y)=>{if(g===null||g[JO])return;g=e._req=null,Of(e,y)}),g.on("response",(y)=>{let v=y.headers.location,b=y.statusCode;if(v&&i.followRedirects&&b>=300&&b<400){if(++e._redirects>i.maxRedirects){Bt(e,g,"Maximum redirects exceeded");return}g.abort();let _;try{_=new px(v,t)}catch(m){let x=SyntaxError(`Invalid URL: ${v}`);Of(e,x);return}QO(e,_,n,r)}else if(!e.emit("unexpected-response",g,y))Bt(e,g,`Unexpected server response: ${y.statusCode}`)}),g.on("upgrade",(y,v,b)=>{if(e.emit("upgrade",y),e.readyState!==ie.CONNECTING)return;g=e._req=null;let _=y.headers.upgrade;if(_===void 0||_.toLowerCase()!=="websocket"){Bt(e,v,"Invalid Upgrade header");return}let m=lce("sha1").update(d+gce).digest("base64");if(y.headers["sec-websocket-accept"]!==m){Bt(e,v,"Invalid Sec-WebSocket-Accept header");return}let x=y.headers["sec-websocket-protocol"],D;if(x!==void 0){if(!h.size)D="Server sent a subprotocol but none was requested";else if(!h.has(x))D="Server sent an invalid subprotocol"}else if(h.size)D="Server sent no subprotocol";if(D){Bt(e,v,D);return}if(x)e._protocol=x;let A=y.headers["sec-websocket-extensions"];if(A!==void 0){if(!p){Bt(e,v,"Server sent a Sec-WebSocket-Extensions header but no extension was requested");return}let E;try{E=_ce(A)}catch(C){Bt(e,v,"Invalid Sec-WebSocket-Extensions header");return}let U=Object.keys(E);if(U.length!==1||U[0]!==oi.extensionName){Bt(e,v,"Server indicated an extension that was not requested");return}try{p.accept(E[oi.extensionName])}catch(C){Bt(e,v,"Invalid Sec-WebSocket-Extensions header");return}e._extensions[oi.extensionName]=p}e.setSocket(v,b,{allowSynchronousEvents:i.allowSynchronousEvents,generateMask:i.generateMask,maxBufferedChunks:i.maxBufferedChunks,maxFragments:i.maxFragments,maxPayload:i.maxPayload,skipUTF8Validation:i.skipUTF8Validation})}),i.finishRequest)i.finishRequest(g,e);else g.end()}function Of(e,t){e._readyState=ie.CLOSING,e._errorEmitted=!0,e.emit("error",t),e.emitClose()}function Ece(e){return e.path=e.socketPath,ZO.connect(e)}function Tce(e){if(e.path=void 0,!e.servername&&e.servername!=="")e.servername=ZO.isIP(e.host)?"":e.host;return cce.connect(e)}function Bt(e,t,n){e._readyState=ie.CLOSING;let r=Error(n);if(Error.captureStackTrace(r,Bt),t.setHeader){if(t[JO]=!0,t.abort(),t.socket&&!t.socket.destroyed)t.socket.destroy();process.nextTick(Of,e,r)}else t.destroy(r),t.once("error",e.emit.bind(e,"error")),t.once("close",e.emitClose.bind(e))}function yx(e,t,n){if(t){let r=hce(t)?t.size:wce(t).length;if(e._socket)e._sender._bufferedBytes+=r;else e._bufferedAmount+=r}if(n){let r=Error(`WebSocket is not open: readyState ${e.readyState} (${fr[e.readyState]})`);process.nextTick(n,r)}}function Sce(e,t){let n=this[Je];if(n._closeFrameReceived=!0,n._closeMessage=t,n._closeCode=e,n._socket[Je]===void 0)return;if(n._socket.removeListener("data",Pf),process.nextTick(eP,n._socket),e===1005)n.close();else n.close(e,t)}function Cce(){let e=this[Je];if(!e.isPaused)e._socket.resume()}function Ace(e){let t=this[Je];if(t._socket[Je]!==void 0)t._socket.removeListener("data",Pf),process.nextTick(eP,t._socket),t.close(e[yce]);if(!t._errorEmitted)t._errorEmitted=!0,t.emit("error",e)}function KO(){this[Je].emitClose()}function Uce(e,t){this[Je].emit("message",e,t)}function kce(e){let t=this[Je];if(t._autoPong)t.pong(e,!this._isServer,YO);t.emit("ping",e)}function Rce(e){this[Je].emit("pong",e)}function eP(e){e.resume()}function Fce(e){let t=this[Je];if(t.readyState===ie.CLOSED)return;if(t.readyState===ie.OPEN)t._readyState=ie.CLOSING,tP(t);if(this._socket.end(),!t._errorEmitted)t._errorEmitted=!0,t.emit("error",e)}function tP(e){e._closeTimer=setTimeout(e._socket.destroy.bind(e._socket),e._closeTimeout)}function nP(){let e=this[Je];if(this.removeListener("close",nP),this.removeListener("data",Pf),this.removeListener("end",rP),e._readyState=ie.CLOSING,!this._readableState.endEmitted&&!e._closeFrameReceived&&!e._receiver._writableState.errorEmitted&&this._readableState.length!==0){let t=this.read(this._readableState.length);e._receiver.write(t)}if(e._receiver.end(),this[Je]=void 0,clearTimeout(e._closeTimer),e._receiver._writableState.finished||e._receiver._writableState.errorEmitted)e.emitClose();else e._receiver.on("error",KO),e._receiver.on("finish",KO)}function Pf(e){if(!this[Je]._receiver.write(e))this.pause()}function rP(){let e=this[Je];e._readyState=ie.CLOSING,e._receiver.end(),this.end()}function iP(){let e=this[Je];if(this.removeListener("error",iP),this.on("error",YO),e)e._readyState=ie.CLOSING,this.destroy()}});var uP=R(function(H_e,cP){var $_e=If(),{Duplex:Oce}=re("stream");function sP(e){e.emit("close")}function Pce(){if(!this.destroyed&&this._writableState.finished)this.destroy()}function aP(e){if(this.removeListener("error",aP),this.destroy(),this.listenerCount("error")===0)this.emit("error",e)}function Ice(e,t){let n=!0,r=new Oce({...t,autoDestroy:!1,emitClose:!1,objectMode:!1,writableObjectMode:!1});return e.on("message",function(o,s){let a=!s&&r._readableState.objectMode?o.toString():o;if(!r.push(a))e.pause()}),e.once("error",function(o){if(r.destroyed)return;n=!1,r.destroy(o)}),e.once("close",function(){if(r.destroyed)return;r.push(null)}),r._destroy=function(i,o){if(e.readyState===e.CLOSED){o(i),process.nextTick(sP,r);return}let s=!1;if(e.once("error",function(c){s=!0,o(c)}),e.once("close",function(){if(!s)o(i);process.nextTick(sP,r)}),n)e.terminate()},r._final=function(i){if(e.readyState===e.CONNECTING){e.once("open",function(){r._final(i)});return}if(e._socket===null)return;if(e._socket._writableState.finished){if(i(),r._readableState.endEmitted)r.destroy()}else e._socket.once("finish",function(){i()}),e.close()},r._read=function(){if(e.isPaused)e.resume()},r._write=function(i,o,s){if(e.readyState===e.CONNECTING){e.once("open",function(){r._write(i,o,s)});return}e.send(i,s)},r.on("end",Pce),r.on("error",aP),r}cP.exports=Ice});var bx=R(function(G_e,lP){var{tokenChars:Mce}=_s();function Nce(e){let t=new Set,n=-1,r=-1,i=0;for(i;i<e.length;i++){let s=e.charCodeAt(i);if(r===-1&&Mce[s]===1){if(n===-1)n=i}else if(i!==0&&(s===32||s===9)){if(r===-1&&n!==-1)r=i}else if(s===44){if(n===-1)throw SyntaxError(`Unexpected character at index ${i}`);if(r===-1)r=i;let a=e.slice(n,r);if(t.has(a))throw SyntaxError(`The "${a}" subprotocol is duplicated`);t.add(a),n=r=-1}else throw SyntaxError(`Unexpected character at index ${i}`)}if(n===-1||r!==-1)throw SyntaxError("Unexpected end of input");let o=e.slice(n,i);if(t.has(o))throw SyntaxError(`The "${o}" subprotocol is duplicated`);return t.add(o),t}lP.exports={parse:Nce}});var gP=R(function(V_e,pP){var Bce=re("events"),Mf=re("http"),{Duplex:z_e}=re("stream"),{createHash:Lce}=re("crypto"),dP=Rf(),Vi=xs(),Wce=bx(),jce=If(),{CLOSE_TIMEOUT:qce,GUID:$ce,kWebSocket:Hce}=lr(),Gce=/^[+/0-9A-Za-z]{22}==$/;class hP extends Bce{constructor(e,t){super();if(e={allowSynchronousEvents:!0,autoPong:!0,maxBufferedChunks:262144,maxFragments:16384,maxPayload:104857600,skipUTF8Validation:!1,perMessageDeflate:!1,handleProtocols:null,clientTracking:!0,closeTimeout:qce,verifyClient:null,noServer:!1,backlog:null,server:null,host:null,path:null,port:null,WebSocket:jce,...e},e.port==null&&!e.server&&!e.noServer||e.port!=null&&(e.server||e.noServer)||e.server&&e.noServer)throw TypeError('One and only one of the "port", "server", or "noServer" options must be specified');if(e.port!=null)this._server=Mf.createServer((n,r)=>{let i=Mf.STATUS_CODES[426];r.writeHead(426,{"Content-Length":i.length,"Content-Type":"text/plain"}),r.end(i)}),this._server.listen(e.port,e.host,e.backlog,t);else if(e.server)this._server=e.server;if(this._server){let n=this.emit.bind(this,"connection");this._removeListeners=zce(this._server,{listening:this.emit.bind(this,"listening"),error:this.emit.bind(this,"error"),upgrade:(r,i,o)=>{this.handleUpgrade(r,i,o,n)}})}if(e.perMessageDeflate===!0)e.perMessageDeflate={};if(e.clientTracking)this.clients=new Set,this._shouldEmitClose=!1;this.options=e,this._state=0}address(){if(this.options.noServer)throw Error('The server is operating in "noServer" mode');if(!this._server)return null;return this._server.address()}close(e){if(this._state===2){if(e)this.once("close",()=>{e(Error("The server is not running"))});process.nextTick(Pc,this);return}if(e)this.once("close",e);if(this._state===1)return;if(this._state=1,this.options.noServer||this.options.server){if(this._server)this._removeListeners(),this._removeListeners=this._server=null;if(this.clients)if(!this.clients.size)process.nextTick(Pc,this);else this._shouldEmitClose=!0;else process.nextTick(Pc,this)}else{let t=this._server;this._removeListeners(),this._removeListeners=this._server=null,t.close(()=>{Pc(this)})}}shouldHandle(e){if(this.options.path){let t=e.url.indexOf("?");if((t!==-1?e.url.slice(0,t):e.url)!==this.options.path)return!1}return!0}handleUpgrade(e,t,n,r){t.on("error",fP);let i=e.headers["sec-websocket-key"],o=e.headers.upgrade,s=+e.headers["sec-websocket-version"];if(e.method!=="GET"){Xi(this,e,t,405,"Invalid HTTP method");return}if(o===void 0||o.toLowerCase()!=="websocket"){Xi(this,e,t,400,"Invalid Upgrade header");return}if(i===void 0||!Gce.test(i)){Xi(this,e,t,400,"Missing or invalid Sec-WebSocket-Key header");return}if(s!==13&&s!==8){Xi(this,e,t,400,"Missing or invalid Sec-WebSocket-Version header",{"Sec-WebSocket-Version":"13, 8"});return}if(!this.shouldHandle(e)){Ic(t,400);return}let a=e.headers["sec-websocket-protocol"],c=new Set;if(a!==void 0)try{c=Wce.parse(a)}catch(f){Xi(this,e,t,400,"Invalid Sec-WebSocket-Protocol header");return}let u=e.headers["sec-websocket-extensions"],d={};if(this.options.perMessageDeflate&&u!==void 0){let f=new Vi({...this.options.perMessageDeflate,isServer:!0,maxPayload:this.options.maxPayload});try{let h=dP.parse(u);if(h[Vi.extensionName])f.accept(h[Vi.extensionName]),d[Vi.extensionName]=f}catch(h){Xi(this,e,t,400,"Invalid or unacceptable Sec-WebSocket-Extensions header");return}}if(this.options.verifyClient){let f={origin:e.headers[`${s===8?"sec-websocket-origin":"origin"}`],secure:!!(e.socket.authorized||e.socket.encrypted),req:e};if(this.options.verifyClient.length===2){this.options.verifyClient(f,(h,p,g,y)=>{if(!h)return Ic(t,p||401,g,y);this.completeUpgrade(d,i,c,e,t,n,r)});return}if(!this.options.verifyClient(f))return Ic(t,401)}this.completeUpgrade(d,i,c,e,t,n,r)}completeUpgrade(e,t,n,r,i,o,s){if(!i.readable||!i.writable)return i.destroy();if(i[Hce])throw Error("server.handleUpgrade() was called more than once with the same socket, possibly due to a misconfiguration");if(this._state>0)return Ic(i,503);let c=["HTTP/1.1 101 Switching Protocols","Upgrade: websocket","Connection: Upgrade",`Sec-WebSocket-Accept: ${Lce("sha1").update(t+$ce).digest("base64")}`],u=new this.options.WebSocket(null,void 0,this.options);if(n.size){let d=this.options.handleProtocols?this.options.handleProtocols(n,r):n.values().next().value;if(d)c.push(`Sec-WebSocket-Protocol: ${d}`),u._protocol=d}if(e[Vi.extensionName]){let d=e[Vi.extensionName].params,f=dP.format({[Vi.extensionName]:[d]});c.push(`Sec-WebSocket-Extensions: ${f}`),u._extensions=e}if(this.emit("headers",c,r),i.write(c.concat(`\r
229
229
  `).join(`\r
230
- `)),i.removeListener("error",fP),u.setSocket(i,o,{allowSynchronousEvents:this.options.allowSynchronousEvents,maxBufferedChunks:this.options.maxBufferedChunks,maxFragments:this.options.maxFragments,maxPayload:this.options.maxPayload,skipUTF8Validation:this.options.skipUTF8Validation}),this.clients)this.clients.add(u),u.on("close",()=>{if(this.clients.delete(u),this._shouldEmitClose&&!this.clients.size)process.nextTick(Pc,this)});s(u,r)}}pP.exports=hP;function Hce(e,t){for(let n of Object.keys(t))e.on(n,t[n]);return function(){for(let r of Object.keys(t))e.removeListener(r,t[r])}}function Pc(e){e._state=2,e.emit("close")}function fP(){this.destroy()}function Ic(e,t,n,r){n=n||Mf.STATUS_CODES[t],r={Connection:"close","Content-Type":"text/html","Content-Length":Buffer.byteLength(n),...r},e.once("finish",e.destroy),e.end(`HTTP/1.1 ${t} ${Mf.STATUS_CODES[t]}\r
230
+ `)),i.removeListener("error",fP),u.setSocket(i,o,{allowSynchronousEvents:this.options.allowSynchronousEvents,maxBufferedChunks:this.options.maxBufferedChunks,maxFragments:this.options.maxFragments,maxPayload:this.options.maxPayload,skipUTF8Validation:this.options.skipUTF8Validation}),this.clients)this.clients.add(u),u.on("close",()=>{if(this.clients.delete(u),this._shouldEmitClose&&!this.clients.size)process.nextTick(Pc,this)});s(u,r)}}pP.exports=hP;function zce(e,t){for(let n of Object.keys(t))e.on(n,t[n]);return function(){for(let r of Object.keys(t))e.removeListener(r,t[r])}}function Pc(e){e._state=2,e.emit("close")}function fP(){this.destroy()}function Ic(e,t,n,r){n=n||Mf.STATUS_CODES[t],r={Connection:"close","Content-Type":"text/html","Content-Length":Buffer.byteLength(n),...r},e.once("finish",e.destroy),e.end(`HTTP/1.1 ${t} ${Mf.STATUS_CODES[t]}\r
231
231
  `+Object.keys(r).map((i)=>`${i}: ${r[i]}`).join(`\r
232
232
  `)+`\r
233
233
  \r
234
- `+n)}function Xi(e,t,n,r,i,o){if(e.listenerCount("wsClientError")){let s=Error(i);Error.captureStackTrace(s,Xi),e.emit("wsClientError",s,n,t)}else Ic(n,r,i,o)}});var DP={};Q(DP,{PerMessageDeflate:()=>bP.default,Receiver:()=>vP.default,Sender:()=>xP.default,WebSocket:()=>vx.default,WebSocketServer:()=>wP.default,createWebSocketStream:()=>mP.default,default:()=>Gce,extension:()=>yP.default,subprotocol:()=>_P.default});var mP,yP,bP,vP,xP,_P,vx,wP,Gce;var EP=me(()=>{mP=gn(uP(),1),yP=gn(Rf(),1),bP=gn(xs(),1),vP=gn(lx(),1),xP=gn(fx(),1),_P=gn(bx(),1),vx=gn(If(),1),wP=gn(gP(),1),Gce=vx.default});var TP;var SP=me(()=>{TP=/^\s*(?:text\/(?!event-stream(?:[;\s]|$))[^;\s]+|application\/(?:javascript|json|xml|xml-dtd|ecmascript|dart|msgpack|postscript|rtf|tar|toml|vnd\.dart|vnd\.ms-fontobject|vnd\.ms-opentype|vnd\.msgpack|wasm|x-httpd-php|x-javascript|x-msgpack|x-ns-proxy-autoconfig|x-sh|x-tar|x-virtualbox-hdd|x-virtualbox-ova|x-virtualbox-ovf|x-virtualbox-vbox|x-virtualbox-vdi|x-virtualbox-vhd|x-virtualbox-vmdk|x-www-form-urlencoded)|font\/(?:otf|ttf)|image\/(?:bmp|vnd\.adobe\.photoshop|vnd\.microsoft\.icon|vnd\.ms-dds|x-icon|x-ms-bmp)|message\/rfc822|model\/gltf-binary|x-shader\/x-fragment|x-shader\/x-vertex|[^;\s]+?\+(?:json|text|xml|yaml|msgpack))(?:[;\s]|$)/i});var _x=(e,t=xx)=>{let n=/\.([a-zA-Z0-9]+?)$/,r=e.match(n);if(!r)return;return t[r[1].toLowerCase()]},CP=(e)=>{let t=e.split(";",1)[0].trim();for(let n in xx){let r=xx[n];if(r===e||r.split(";",1)[0].trim()===t)return n}},zce,xx;var wx=me(()=>{zce={aac:"audio/aac",avi:"video/x-msvideo",avif:"image/avif",av1:"video/av1",bin:"application/octet-stream",bmp:"image/bmp",css:"text/css; charset=utf-8",csv:"text/csv; charset=utf-8",eot:"application/vnd.ms-fontobject",epub:"application/epub+zip",gif:"image/gif",gz:"application/gzip",htm:"text/html; charset=utf-8",html:"text/html; charset=utf-8",ico:"image/x-icon",ics:"text/calendar; charset=utf-8",jpeg:"image/jpeg",jpg:"image/jpeg",js:"text/javascript; charset=utf-8",json:"application/json",jsonld:"application/ld+json",map:"application/json",mid:"audio/x-midi",midi:"audio/x-midi",mjs:"text/javascript; charset=utf-8",mp3:"audio/mpeg",mp4:"video/mp4",mpeg:"video/mpeg",oga:"audio/ogg",ogv:"video/ogg",ogx:"application/ogg",opus:"audio/opus",otf:"font/otf",pdf:"application/pdf",png:"image/png",rtf:"application/rtf",svg:"image/svg+xml; charset=utf-8",tif:"image/tiff",tiff:"image/tiff",ts:"video/mp2t",ttf:"font/ttf",txt:"text/plain; charset=utf-8",wasm:"application/wasm",webm:"video/webm",weba:"audio/webm",webmanifest:"application/manifest+json",webp:"image/webp",woff:"font/woff",woff2:"font/woff2",xhtml:"application/xhtml+xml; charset=utf-8",xml:"application/xml; charset=utf-8",zip:"application/zip","3gp":"video/3gpp","3g2":"video/3gpp2",gltf:"model/gltf+json",glb:"model/gltf-binary"},xx=zce});var AP=(...e)=>{let t=e.filter((i)=>i!=="").join("/");t=t.replace(/(?<=\/)\/+/g,"");let n=t.split("/"),r=[];for(let i of n)if(i===".."&&r.length>0&&r.at(-1)!=="..")r.pop();else if(i!==".")r.push(i);return r.join("/")||"."};var UP=()=>{};var kP,Vce,Xce="index.html",RP=(e)=>{let t=e.root??"./",n=e.path,r=e.join??AP;return async(i,o)=>{if(i.finalized)return o();let s;if(e.path)s=e.path;else try{if(s=sh(i.req.path),/(?:^|[\/\\])\.{1,2}(?:$|[\/\\])|[\/\\]{2,}|\\/.test(s))throw Error()}catch{return await e.onNotFound?.(i.req.path,i),o()}let a=r(t,!n&&e.rewriteRequestPath?e.rewriteRequestPath(s):s);if(e.isDir&&await e.isDir(a))a=r(a,Xce);let c=e.getContent,u=await c(a,i);if(u instanceof Response)return i.newResponse(u.body,u);if(u!=null){let d=e.mimes&&_x(a,e.mimes)||_x(a);if(i.header("Content-Type",d||"application/octet-stream"),e.precompressed&&(!d||TP.test(d))){let f=new Set(i.req.header("Accept-Encoding")?.split(",").map((h)=>h.trim()));for(let h of Vce){if(!f.has(h))continue;let p=await c(a+kP[h],i);if(p){u=p,i.header("Content-Encoding",h),i.header("Vary","Accept-Encoding",{append:!0});break}}}return await e.onFound?.(a,i),i.body(u)}await e.onNotFound?.(a,i),await o();return}};var FP=me(()=>{SP();wx();ui();UP();kP={br:".br",zstd:".zst",gzip:".gz"},Vce=Object.keys(kP)});import{stat as Kce}from"node:fs/promises";import{join as Zce}from"node:path";var OP=(e={})=>async function(n,r){return RP({...e,getContent:async(s)=>{let a=Bun.file(s);return await a.exists()?a:null},join:Zce,isDir:async(s)=>{let a;try{a=(await Kce(s)).isDirectory()}catch{}return a}})(n,r)};var PP=me(()=>{FP()});var IP=()=>{};var MP=(e,t)=>{for(let[n,r]of Object.entries(t)){let i=new RegExp("/:"+n+"(?:{[^/]+})?\\??(?=/|$)");e=e.replace(i,()=>r?`/${r}`:"")}return e};var NP=me(()=>{IP()});var Yce=1024,BP=({concurrency:e,interval:t}={})=>{if(e||=Yce,e===1/0)return{run:async(i)=>i()};let n=new Set,r=async(i,o,s)=>{if(n.size>=e)return o||=new Promise((u)=>s=u),setTimeout(()=>r(i,o,s)),o;let a={};n.add(a);let c=await i();if(t)setTimeout(()=>n.delete(a),t);else n.delete(a);if(s)return s(c),o;else return c};return{run:r}};var LP=()=>{};var WP=(e)=>e.length>1,Dx=(e)=>e[Is]?Dx(e[Is]):e;var jP=me(()=>{fh()});var HP=(e)=>e.split(/[\/\\]/).slice(0,-1).join("/"),Jce=(e)=>e.replace(/(\\)/g,"/").replace(/\/$/g,""),GP=(e)=>{let t=e.replace(/\\/g,"/").match(/^\/\/([^/]+)\/([^/]+)/);if(t)return`${t[1].toLowerCase()}/${t[2].toLowerCase()}`},Qce=(e)=>{if(e.length===0||e[e.length-1]==="..")e.push("..");else e.pop()},eue=(e,t)=>{if(e=e.replace(/^\.(?!.)/,""),e!=="")t.push(e)},tue=(e,t)=>{for(let n of e)if(n==="..")Qce(t);else eue(n,t)},Ki=(...e)=>{let t=GP(e[0])!==void 0;e=e.map(Jce);let n=[];return tue(e.join("/").split("/"),n),(t?"//":e[0][0]==="/"?"/":"")+n.join("/")},zP=(e)=>e.routes.reduce((t,{method:n,handler:r,path:i})=>{let o=Dx(r);if(["GET",qe].includes(n)&&!WP(o))t.push({path:i});return t},[]),Ex=(e)=>e.split("/").some((t)=>t.startsWith(":")||t.includes("*")),qP=(e)=>e===""?[]:e.split("/"),$P=(e)=>{let t=e.replace(/\\/g,"/"),n=GP(t);if(n)return`unc:${n}`;let r=t.match(/^([A-Za-z]):/);if(r)return`${t[2]==="/"?"drive-absolute":"drive-relative"}:${r[1].toLowerCase()}`;return t.startsWith("/")?"absolute":"relative"},VP=(e,t)=>{let n=qP(Ki(e)),r=qP(Ki(t)),i=$P(e)!==$P(t),o=r[n.length]==="..";if(i||r.length<=n.length||!n.every((s,a)=>s===r[a])||o)throw Error(`Path traversal detected: "${t}" is outside the output directory`)};var Tx=me(()=>{vr();jP()});var Sx="HONO_SSG_CONTEXT",Nf="x-hono-disable-ssg",mwe;var Cx=me(()=>{Tx();mwe=(()=>{try{return new Response("SSG is disabled",{status:404,headers:{[Nf]:"true"}})}catch{return null}})()});var XP=me(()=>{uh()});var Ax=()=>({afterResponseHook:(e)=>{if(e.status!==200)return!1;return e}});var Ux=me(()=>{XP()});var nue=2,rue="text/plain",iue="./static",oue=(e,t,n,r)=>{let i=cue(n,r),o;if(e.endsWith(`.${i}`))o=Ki(t,e);else if(e==="/")o=Ki(t,`index.${i}`);else if(e.endsWith("/"))o=Ki(t,e,`index.${i}`);else o=Ki(t,`${e}.${i}`);return VP(t,o),o},sue=async(e)=>{let t=e.headers.get("Content-Type");try{if(t?.includes("text")||t?.includes("json"))return await e.text();else return await e.arrayBuffer()}catch(n){throw Error(`Error processing response: ${n instanceof Error?n.message:"Unknown error"}`)}},aue,cue=(e,t)=>{let n=t||aue;if(e in n)return n[e];return CP(e)||"html"},uue=(e)=>{if(!Array.isArray(e))return e;return async(t)=>{let n=t;for(let r of e){let i=await r(n);if(i===!1)return!1;if(i instanceof Request)n=i}return n}},lue=(e)=>{if(!Array.isArray(e))return e;return async(t)=>{let n=t;for(let r of e){let i=await r(n);if(i===!1)return!1;if(i instanceof Response)n=i}return n}},due=(e,t,n)=>{if(!Array.isArray(e))return e;return async(r)=>{for(let i of e)await i(r,t,n)}},fue=function*(e,t,n,r){let o=BP({concurrency:r});for(let s of zP(e)){let a=new URL(s.path,"http://localhost").toString(),c=new Request(a);yield new Promise(async(u,d)=>{try{if(t){let h=await t(c);if(!h){u(void 0);return}c=h}if(await o.run(()=>e.fetch(c,{[Sx]:!0})),!c.ssgParams){if(Ex(s.path)){u(void 0);return}c.ssgParams=[{}]}let f={method:c.method,headers:c.headers};u(function*(){for(let h of c.ssgParams)yield new Promise(async(p,g)=>{try{let y=MP(s.path,h),v=await o.run(()=>e.request(y,f,{[Sx]:!0}));if(v.headers.get(Nf)){p(void 0);return}if(n){let m=await n(v);if(!m){p(void 0);return}v=m}let b=v.headers.get("Content-Type")?.split(";")[0]||rue,_=await sue(v);p({routePath:y,mimeType:b,content:_})}catch(y){g(y)}})}())}catch(f){d(f)}})}},KP,hue=async(e,t,n,r)=>{let i=await e;if(!i)return;let{routePath:o,content:s,mimeType:a}=i,c=oue(o,n,a,r),u=HP(c);if(u!==""&&!KP.has(u))await t.mkdir(u,{recursive:!0}),KP.add(u);if(typeof s==="string")await t.writeFile(c,s);else if(s instanceof ArrayBuffer)await t.writeFile(c,new Uint8Array(s));return c},ZP=async(e,t,n)=>{let r,i=[],o=[],s=n?.plugins||[Ax()],a=[],c=[],u=[];if(n?.beforeRequestHook)a.push(...Array.isArray(n.beforeRequestHook)?n.beforeRequestHook:[n.beforeRequestHook]);if(n?.afterResponseHook)c.push(...Array.isArray(n.afterResponseHook)?n.afterResponseHook:[n.afterResponseHook]);if(n?.afterGenerateHook)u.push(...Array.isArray(n.afterGenerateHook)?n.afterGenerateHook:[n.afterGenerateHook]);for(let d of s){if(d.beforeRequestHook)a.push(...Array.isArray(d.beforeRequestHook)?d.beforeRequestHook:[d.beforeRequestHook]);if(d.afterResponseHook)c.push(...Array.isArray(d.afterResponseHook)?d.afterResponseHook:[d.afterResponseHook]);if(d.afterGenerateHook)u.push(...Array.isArray(d.afterGenerateHook)?d.afterGenerateHook:[d.afterGenerateHook])}try{let d=n?.dir??iue,f=n?.concurrency??nue,h=uue(a.length>0?a:[(v)=>v]),p=lue(c.length>0?c:[(v)=>v]),g=fue(e,h,p,f);for(let v of g)i.push(v.then((b)=>{if(!b)return;for(let _ of b)o.push(hue(_,t,d,n?.extensionMap).catch((m)=>m))}));await Promise.all(i);let y=[];for(let v of o){let b=await v;if(typeof b==="string")y.push(b);else if(b)throw b}r={success:!0,files:y}}catch(d){let f=d instanceof Error?d:Error(String(d));r={success:!1,files:[],error:f}}if(u.length>0)await due(u,t,n)(r,t,n);return r};var YP=me(()=>{NP();LP();wx();Cx();Ux();Tx();aue={"text/html":"html","text/xml":"xml","application/xml":"xml","application/atom+xml":"xml","application/rss+xml":"xml","application/yaml":"yaml"},KP=new Set});var JP=me(()=>{Cx();Ux();YP()});var pue,kx,QP=async(e,t)=>ZP(e,kx,t);var eI=me(()=>{JP();({write:pue}=Bun),kx={writeFile:async(e,t)=>{await pue(e,t)},mkdir:async()=>{}}});var Ss=(e)=>("server"in e.env)?e.env.server:e.env;var Bf=()=>{};var Rx=(e)=>new Nx({send:(t,n)=>{e.send(t,n?.compress)},raw:e,readyState:e.readyState,url:e.data.url,protocol:e.data.protocol,close(t,n){e.close(t,n)}}),Fx,Ox,tI=()=>({upgradeWebSocket:Fx,websocket:Ox});var nI=me(()=>{Wf();Bf();Fx=Bc((e,t)=>{let n=Ss(e);if(!n)throw TypeError("env has to include the 2nd argument of fetch.");if(n.upgrade(e.req.raw,{data:{events:t,url:new URL(e.req.url),protocol:e.req.header("sec-websocket-protocol")?.split(",")[0]?.trim()??""}}))return new Response(null);return}),Ox={open(e){let t=e.data.events;if(t.onOpen)t.onOpen(new Event("open"),Rx(e))},close(e,t,n){let r=e.data.events;if(r.onClose)r.onClose(new CloseEvent("close",{code:t,reason:n}),Rx(e))},message(e,t){let n=e.data.events;if(n.onMessage){let r=typeof t==="string"?t:t.buffer;n.onMessage(Bx(r),Rx(e))}}}});var rI=(e)=>{let t=Ss(e);if(!t)throw TypeError("env has to include the 2nd argument of fetch.");if(typeof t.requestIP!=="function")throw TypeError("server.requestIP is not a function.");let n=t.requestIP(e.req.raw);if(!n)return{remote:{}};return{remote:{address:n.address,addressType:n.family==="IPv6"||n.family==="IPv4"?n.family:void 0,port:n.port}}};var iI=me(()=>{Bf()});var oI={};Q(oI,{bunFileSystemModule:()=>kx,createBunWebSocket:()=>tI,getBunServer:()=>Ss,getConnInfo:()=>rI,serveStatic:()=>OP,toSSG:()=>QP,upgradeWebSocket:()=>Fx,websocket:()=>Ox});var sI=me(()=>{PP();eI();nI();iI();Bf()});Qf();import{spawn as gue}from"node:child_process";import{createConnection as mue}from"node:net";class ci extends Error{constructor(e,t,n){super(n);Error.captureStackTrace(this,this.constructor),this.name=this.constructor.name,this.code=t,this.exitCode=e,this.nestedError=void 0}}class eo extends ci{constructor(e){super(1,"commander.invalidArgument",e);Error.captureStackTrace(this,this.constructor),this.name=this.constructor.name}}class zc{constructor(e,t){switch(this.description=t||"",this.variadic=!1,this.parseArg=void 0,this.defaultValue=void 0,this.defaultValueDescription=void 0,this.argChoices=void 0,e[0]){case"<":this.required=!0,this._name=e.slice(1,-1);break;case"[":this.required=!1,this._name=e.slice(1,-1);break;default:this.required=!0,this._name=e;break}if(this._name.endsWith("..."))this.variadic=!0,this._name=this._name.slice(0,-3)}name(){return this._name}_collectValue(e,t){if(t===this.defaultValue||!Array.isArray(t))return[e];return t.push(e),t}default(e,t){return this.defaultValue=e,this.defaultValueDescription=t,this}argParser(e){return this.parseArg=e,this}choices(e){return this.argChoices=e.slice(),this.parseArg=(t,n)=>{if(!this.argChoices.includes(t))throw new eo(`Allowed choices are ${this.argChoices.join(", ")}.`);if(this.variadic)return this._collectValue(t,n);return t},this}argRequired(){return this.required=!0,this}argOptional(){return this.required=!1,this}}function Vc(e){let t=e.name()+(e.variadic===!0?"...":"");return e.required?"<"+t+">":"["+t+"]"}import{EventEmitter as f4}from"node:events";import nh from"node:child_process";import Hn from"node:path";import Kc from"node:fs";import pe from"node:process";import{stripVTControlCharacters as h4}from"node:util";import{stripVTControlCharacters as u4}from"node:util";class Xc{constructor(){this.helpWidth=void 0,this.minWidthToWrap=40,this.sortSubcommands=!1,this.sortOptions=!1,this.showGlobalOptions=!1}prepareContext(e){this.helpWidth=this.helpWidth??e.helpWidth??80}visibleCommands(e){let t=e.commands.filter((r)=>!r._hidden),n=e._getHelpCommand();if(n&&!n._hidden)t.push(n);if(this.sortSubcommands)t.sort((r,i)=>r.name().localeCompare(i.name()));return t}compareOptions(e,t){let n=(r)=>r.short?r.short.replace(/^-/,""):r.long.replace(/^--/,"");return n(e).localeCompare(n(t))}visibleOptions(e){let t=e.options.filter((r)=>!r.hidden),n=e._getHelpOption();if(n&&!n.hidden){let r=n.short&&e._findOption(n.short),i=n.long&&e._findOption(n.long);if(!r&&!i)t.push(n);else if(n.long&&!i)t.push(e.createOption(n.long,n.description));else if(n.short&&!r)t.push(e.createOption(n.short,n.description))}if(this.sortOptions)t.sort(this.compareOptions);return t}visibleGlobalOptions(e){if(!this.showGlobalOptions)return[];let t=[];for(let n=e.parent;n;n=n.parent){let r=n.options.filter((i)=>!i.hidden);t.push(...r)}if(this.sortOptions)t.sort(this.compareOptions);return t}visibleArguments(e){if(e._argsDescription)e.registeredArguments.forEach((t)=>{t.description=t.description||e._argsDescription[t.name()]||""});if(e.registeredArguments.find((t)=>t.description))return e.registeredArguments;return[]}subcommandTerm(e){let t=e.registeredArguments.map((n)=>Vc(n)).join(" ");return e._name+(e._aliases[0]?"|"+e._aliases[0]:"")+(e.options.length?" [options]":"")+(t?" "+t:"")}optionTerm(e){return e.flags}argumentTerm(e){return e.name()}longestSubcommandTermLength(e,t){return t.visibleCommands(e).reduce((n,r)=>Math.max(n,this.displayWidth(t.styleSubcommandTerm(t.subcommandTerm(r)))),0)}longestOptionTermLength(e,t){return t.visibleOptions(e).reduce((n,r)=>Math.max(n,this.displayWidth(t.styleOptionTerm(t.optionTerm(r)))),0)}longestGlobalOptionTermLength(e,t){return t.visibleGlobalOptions(e).reduce((n,r)=>Math.max(n,this.displayWidth(t.styleOptionTerm(t.optionTerm(r)))),0)}longestArgumentTermLength(e,t){return t.visibleArguments(e).reduce((n,r)=>Math.max(n,this.displayWidth(t.styleArgumentTerm(t.argumentTerm(r)))),0)}commandUsage(e){let t=e._name;if(e._aliases[0])t=t+"|"+e._aliases[0];let n="";for(let r=e.parent;r;r=r.parent)n=r.name()+" "+n;return n+t+" "+e.usage()}commandDescription(e){return e.description()}subcommandDescription(e){return e.summary()||e.description()}optionDescription(e){let t=[];if(e.argChoices)t.push(`choices: ${e.argChoices.map((n)=>JSON.stringify(n)).join(", ")}`);if(e.defaultValue!==void 0){if(e.required||e.optional||e.isBoolean()&&typeof e.defaultValue==="boolean")t.push(`default: ${e.defaultValueDescription||JSON.stringify(e.defaultValue)}`)}if(e.presetArg!==void 0&&e.optional)t.push(`preset: ${JSON.stringify(e.presetArg)}`);if(e.envVar!==void 0)t.push(`env: ${e.envVar}`);if(t.length>0){let n=`(${t.join(", ")})`;if(e.description)return`${e.description} ${n}`;return n}return e.description}argumentDescription(e){let t=[];if(e.argChoices)t.push(`choices: ${e.argChoices.map((n)=>JSON.stringify(n)).join(", ")}`);if(e.defaultValue!==void 0)t.push(`default: ${e.defaultValueDescription||JSON.stringify(e.defaultValue)}`);if(t.length>0){let n=`(${t.join(", ")})`;if(e.description)return`${e.description} ${n}`;return n}return e.description}formatItemList(e,t,n){if(t.length===0)return[];return[n.styleTitle(e),...t,""]}groupItems(e,t,n){let r=new Map;return e.forEach((i)=>{let o=n(i);if(!r.has(o))r.set(o,[])}),t.forEach((i)=>{let o=n(i);if(!r.has(o))r.set(o,[]);r.get(o).push(i)}),r}formatHelp(e,t){let n=t.padWidth(e,t),r=t.helpWidth??80;function i(d,f){return t.formatItem(d,n,f,t)}let o=[`${t.styleTitle("Usage:")} ${t.styleUsage(t.commandUsage(e))}`,""],s=t.commandDescription(e);if(s.length>0)o=o.concat([t.boxWrap(t.styleCommandDescription(s),r),""]);let a=t.visibleArguments(e).map((d)=>i(t.styleArgumentTerm(t.argumentTerm(d)),t.styleArgumentDescription(t.argumentDescription(d))));if(o=o.concat(this.formatItemList("Arguments:",a,t)),this.groupItems(e.options,t.visibleOptions(e),(d)=>d.helpGroupHeading??"Options:").forEach((d,f)=>{let h=d.map((p)=>i(t.styleOptionTerm(t.optionTerm(p)),t.styleOptionDescription(t.optionDescription(p))));o=o.concat(this.formatItemList(f,h,t))}),t.showGlobalOptions){let d=t.visibleGlobalOptions(e).map((f)=>i(t.styleOptionTerm(t.optionTerm(f)),t.styleOptionDescription(t.optionDescription(f))));o=o.concat(this.formatItemList("Global Options:",d,t))}return this.groupItems(e.commands,t.visibleCommands(e),(d)=>d.helpGroup()||"Commands:").forEach((d,f)=>{let h=d.map((p)=>i(t.styleSubcommandTerm(t.subcommandTerm(p)),t.styleSubcommandDescription(t.subcommandDescription(p))));o=o.concat(this.formatItemList(f,h,t))}),o.join(`
234
+ `+n)}function Xi(e,t,n,r,i,o){if(e.listenerCount("wsClientError")){let s=Error(i);Error.captureStackTrace(s,Xi),e.emit("wsClientError",s,n,t)}else Ic(n,r,i,o)}});var DP={};Q(DP,{PerMessageDeflate:()=>bP.default,Receiver:()=>vP.default,Sender:()=>xP.default,WebSocket:()=>vx.default,WebSocketServer:()=>wP.default,createWebSocketStream:()=>mP.default,default:()=>Vce,extension:()=>yP.default,subprotocol:()=>_P.default});var mP,yP,bP,vP,xP,_P,vx,wP,Vce;var EP=me(()=>{mP=gn(uP(),1),yP=gn(Rf(),1),bP=gn(xs(),1),vP=gn(lx(),1),xP=gn(fx(),1),_P=gn(bx(),1),vx=gn(If(),1),wP=gn(gP(),1),Vce=vx.default});var TP;var SP=me(()=>{TP=/^\s*(?:text\/(?!event-stream(?:[;\s]|$))[^;\s]+|application\/(?:javascript|json|xml|xml-dtd|ecmascript|dart|msgpack|postscript|rtf|tar|toml|vnd\.dart|vnd\.ms-fontobject|vnd\.ms-opentype|vnd\.msgpack|wasm|x-httpd-php|x-javascript|x-msgpack|x-ns-proxy-autoconfig|x-sh|x-tar|x-virtualbox-hdd|x-virtualbox-ova|x-virtualbox-ovf|x-virtualbox-vbox|x-virtualbox-vdi|x-virtualbox-vhd|x-virtualbox-vmdk|x-www-form-urlencoded)|font\/(?:otf|ttf)|image\/(?:bmp|vnd\.adobe\.photoshop|vnd\.microsoft\.icon|vnd\.ms-dds|x-icon|x-ms-bmp)|message\/rfc822|model\/gltf-binary|x-shader\/x-fragment|x-shader\/x-vertex|[^;\s]+?\+(?:json|text|xml|yaml|msgpack))(?:[;\s]|$)/i});var _x=(e,t=xx)=>{let n=/\.([a-zA-Z0-9]+?)$/,r=e.match(n);if(!r)return;return t[r[1].toLowerCase()]},CP=(e)=>{let t=e.split(";",1)[0].trim();for(let n in xx){let r=xx[n];if(r===e||r.split(";",1)[0].trim()===t)return n}},Xce,xx;var wx=me(()=>{Xce={aac:"audio/aac",avi:"video/x-msvideo",avif:"image/avif",av1:"video/av1",bin:"application/octet-stream",bmp:"image/bmp",css:"text/css; charset=utf-8",csv:"text/csv; charset=utf-8",eot:"application/vnd.ms-fontobject",epub:"application/epub+zip",gif:"image/gif",gz:"application/gzip",htm:"text/html; charset=utf-8",html:"text/html; charset=utf-8",ico:"image/x-icon",ics:"text/calendar; charset=utf-8",jpeg:"image/jpeg",jpg:"image/jpeg",js:"text/javascript; charset=utf-8",json:"application/json",jsonld:"application/ld+json",map:"application/json",mid:"audio/x-midi",midi:"audio/x-midi",mjs:"text/javascript; charset=utf-8",mp3:"audio/mpeg",mp4:"video/mp4",mpeg:"video/mpeg",oga:"audio/ogg",ogv:"video/ogg",ogx:"application/ogg",opus:"audio/opus",otf:"font/otf",pdf:"application/pdf",png:"image/png",rtf:"application/rtf",svg:"image/svg+xml; charset=utf-8",tif:"image/tiff",tiff:"image/tiff",ts:"video/mp2t",ttf:"font/ttf",txt:"text/plain; charset=utf-8",wasm:"application/wasm",webm:"video/webm",weba:"audio/webm",webmanifest:"application/manifest+json",webp:"image/webp",woff:"font/woff",woff2:"font/woff2",xhtml:"application/xhtml+xml; charset=utf-8",xml:"application/xml; charset=utf-8",zip:"application/zip","3gp":"video/3gpp","3g2":"video/3gpp2",gltf:"model/gltf+json",glb:"model/gltf-binary"},xx=Xce});var AP=(...e)=>{let t=e.filter((i)=>i!=="").join("/");t=t.replace(/(?<=\/)\/+/g,"");let n=t.split("/"),r=[];for(let i of n)if(i===".."&&r.length>0&&r.at(-1)!=="..")r.pop();else if(i!==".")r.push(i);return r.join("/")||"."};var UP=()=>{};var kP,Kce,Zce="index.html",RP=(e)=>{let t=e.root??"./",n=e.path,r=e.join??AP;return async(i,o)=>{if(i.finalized)return o();let s;if(e.path)s=e.path;else try{if(s=sh(i.req.path),/(?:^|[\/\\])\.{1,2}(?:$|[\/\\])|[\/\\]{2,}|\\/.test(s))throw Error()}catch{return await e.onNotFound?.(i.req.path,i),o()}let a=r(t,!n&&e.rewriteRequestPath?e.rewriteRequestPath(s):s);if(e.isDir&&await e.isDir(a))a=r(a,Zce);let c=e.getContent,u=await c(a,i);if(u instanceof Response)return i.newResponse(u.body,u);if(u!=null){let d=e.mimes&&_x(a,e.mimes)||_x(a);if(i.header("Content-Type",d||"application/octet-stream"),e.precompressed&&(!d||TP.test(d))){let f=new Set(i.req.header("Accept-Encoding")?.split(",").map((h)=>h.trim()));for(let h of Kce){if(!f.has(h))continue;let p=await c(a+kP[h],i);if(p){u=p,i.header("Content-Encoding",h),i.header("Vary","Accept-Encoding",{append:!0});break}}}return await e.onFound?.(a,i),i.body(u)}await e.onNotFound?.(a,i),await o();return}};var FP=me(()=>{SP();wx();ui();UP();kP={br:".br",zstd:".zst",gzip:".gz"},Kce=Object.keys(kP)});import{stat as Yce}from"node:fs/promises";import{join as Jce}from"node:path";var OP=(e={})=>async function(n,r){return RP({...e,getContent:async(s)=>{let a=Bun.file(s);return await a.exists()?a:null},join:Jce,isDir:async(s)=>{let a;try{a=(await Yce(s)).isDirectory()}catch{}return a}})(n,r)};var PP=me(()=>{FP()});var IP=()=>{};var MP=(e,t)=>{for(let[n,r]of Object.entries(t)){let i=new RegExp("/:"+n+"(?:{[^/]+})?\\??(?=/|$)");e=e.replace(i,()=>r?`/${r}`:"")}return e};var NP=me(()=>{IP()});var Qce=1024,BP=({concurrency:e,interval:t}={})=>{if(e||=Qce,e===1/0)return{run:async(i)=>i()};let n=new Set,r=async(i,o,s)=>{if(n.size>=e)return o||=new Promise((u)=>s=u),setTimeout(()=>r(i,o,s)),o;let a={};n.add(a);let c=await i();if(t)setTimeout(()=>n.delete(a),t);else n.delete(a);if(s)return s(c),o;else return c};return{run:r}};var LP=()=>{};var WP=(e)=>e.length>1,Dx=(e)=>e[Is]?Dx(e[Is]):e;var jP=me(()=>{fh()});var HP=(e)=>e.split(/[\/\\]/).slice(0,-1).join("/"),eue=(e)=>e.replace(/(\\)/g,"/").replace(/\/$/g,""),GP=(e)=>{let t=e.replace(/\\/g,"/").match(/^\/\/([^/]+)\/([^/]+)/);if(t)return`${t[1].toLowerCase()}/${t[2].toLowerCase()}`},tue=(e)=>{if(e.length===0||e[e.length-1]==="..")e.push("..");else e.pop()},nue=(e,t)=>{if(e=e.replace(/^\.(?!.)/,""),e!=="")t.push(e)},rue=(e,t)=>{for(let n of e)if(n==="..")tue(t);else nue(n,t)},Ki=(...e)=>{let t=GP(e[0])!==void 0;e=e.map(eue);let n=[];return rue(e.join("/").split("/"),n),(t?"//":e[0][0]==="/"?"/":"")+n.join("/")},zP=(e)=>e.routes.reduce((t,{method:n,handler:r,path:i})=>{let o=Dx(r);if(["GET",qe].includes(n)&&!WP(o))t.push({path:i});return t},[]),Ex=(e)=>e.split("/").some((t)=>t.startsWith(":")||t.includes("*")),qP=(e)=>e===""?[]:e.split("/"),$P=(e)=>{let t=e.replace(/\\/g,"/"),n=GP(t);if(n)return`unc:${n}`;let r=t.match(/^([A-Za-z]):/);if(r)return`${t[2]==="/"?"drive-absolute":"drive-relative"}:${r[1].toLowerCase()}`;return t.startsWith("/")?"absolute":"relative"},VP=(e,t)=>{let n=qP(Ki(e)),r=qP(Ki(t)),i=$P(e)!==$P(t),o=r[n.length]==="..";if(i||r.length<=n.length||!n.every((s,a)=>s===r[a])||o)throw Error(`Path traversal detected: "${t}" is outside the output directory`)};var Tx=me(()=>{vr();jP()});var Sx="HONO_SSG_CONTEXT",Nf="x-hono-disable-ssg",bwe;var Cx=me(()=>{Tx();bwe=(()=>{try{return new Response("SSG is disabled",{status:404,headers:{[Nf]:"true"}})}catch{return null}})()});var XP=me(()=>{uh()});var Ax=()=>({afterResponseHook:(e)=>{if(e.status!==200)return!1;return e}});var Ux=me(()=>{XP()});var iue=2,oue="text/plain",sue="./static",aue=(e,t,n,r)=>{let i=lue(n,r),o;if(e.endsWith(`.${i}`))o=Ki(t,e);else if(e==="/")o=Ki(t,`index.${i}`);else if(e.endsWith("/"))o=Ki(t,e,`index.${i}`);else o=Ki(t,`${e}.${i}`);return VP(t,o),o},cue=async(e)=>{let t=e.headers.get("Content-Type");try{if(t?.includes("text")||t?.includes("json"))return await e.text();else return await e.arrayBuffer()}catch(n){throw Error(`Error processing response: ${n instanceof Error?n.message:"Unknown error"}`)}},uue,lue=(e,t)=>{let n=t||uue;if(e in n)return n[e];return CP(e)||"html"},due=(e)=>{if(!Array.isArray(e))return e;return async(t)=>{let n=t;for(let r of e){let i=await r(n);if(i===!1)return!1;if(i instanceof Request)n=i}return n}},fue=(e)=>{if(!Array.isArray(e))return e;return async(t)=>{let n=t;for(let r of e){let i=await r(n);if(i===!1)return!1;if(i instanceof Response)n=i}return n}},hue=(e,t,n)=>{if(!Array.isArray(e))return e;return async(r)=>{for(let i of e)await i(r,t,n)}},pue=function*(e,t,n,r){let o=BP({concurrency:r});for(let s of zP(e)){let a=new URL(s.path,"http://localhost").toString(),c=new Request(a);yield new Promise(async(u,d)=>{try{if(t){let h=await t(c);if(!h){u(void 0);return}c=h}if(await o.run(()=>e.fetch(c,{[Sx]:!0})),!c.ssgParams){if(Ex(s.path)){u(void 0);return}c.ssgParams=[{}]}let f={method:c.method,headers:c.headers};u(function*(){for(let h of c.ssgParams)yield new Promise(async(p,g)=>{try{let y=MP(s.path,h),v=await o.run(()=>e.request(y,f,{[Sx]:!0}));if(v.headers.get(Nf)){p(void 0);return}if(n){let m=await n(v);if(!m){p(void 0);return}v=m}let b=v.headers.get("Content-Type")?.split(";")[0]||oue,_=await cue(v);p({routePath:y,mimeType:b,content:_})}catch(y){g(y)}})}())}catch(f){d(f)}})}},KP,gue=async(e,t,n,r)=>{let i=await e;if(!i)return;let{routePath:o,content:s,mimeType:a}=i,c=aue(o,n,a,r),u=HP(c);if(u!==""&&!KP.has(u))await t.mkdir(u,{recursive:!0}),KP.add(u);if(typeof s==="string")await t.writeFile(c,s);else if(s instanceof ArrayBuffer)await t.writeFile(c,new Uint8Array(s));return c},ZP=async(e,t,n)=>{let r,i=[],o=[],s=n?.plugins||[Ax()],a=[],c=[],u=[];if(n?.beforeRequestHook)a.push(...Array.isArray(n.beforeRequestHook)?n.beforeRequestHook:[n.beforeRequestHook]);if(n?.afterResponseHook)c.push(...Array.isArray(n.afterResponseHook)?n.afterResponseHook:[n.afterResponseHook]);if(n?.afterGenerateHook)u.push(...Array.isArray(n.afterGenerateHook)?n.afterGenerateHook:[n.afterGenerateHook]);for(let d of s){if(d.beforeRequestHook)a.push(...Array.isArray(d.beforeRequestHook)?d.beforeRequestHook:[d.beforeRequestHook]);if(d.afterResponseHook)c.push(...Array.isArray(d.afterResponseHook)?d.afterResponseHook:[d.afterResponseHook]);if(d.afterGenerateHook)u.push(...Array.isArray(d.afterGenerateHook)?d.afterGenerateHook:[d.afterGenerateHook])}try{let d=n?.dir??sue,f=n?.concurrency??iue,h=due(a.length>0?a:[(v)=>v]),p=fue(c.length>0?c:[(v)=>v]),g=pue(e,h,p,f);for(let v of g)i.push(v.then((b)=>{if(!b)return;for(let _ of b)o.push(gue(_,t,d,n?.extensionMap).catch((m)=>m))}));await Promise.all(i);let y=[];for(let v of o){let b=await v;if(typeof b==="string")y.push(b);else if(b)throw b}r={success:!0,files:y}}catch(d){let f=d instanceof Error?d:Error(String(d));r={success:!1,files:[],error:f}}if(u.length>0)await hue(u,t,n)(r,t,n);return r};var YP=me(()=>{NP();LP();wx();Cx();Ux();Tx();uue={"text/html":"html","text/xml":"xml","application/xml":"xml","application/atom+xml":"xml","application/rss+xml":"xml","application/yaml":"yaml"},KP=new Set});var JP=me(()=>{Cx();Ux();YP()});var mue,kx,QP=async(e,t)=>ZP(e,kx,t);var eI=me(()=>{JP();({write:mue}=Bun),kx={writeFile:async(e,t)=>{await mue(e,t)},mkdir:async()=>{}}});var Ss=(e)=>("server"in e.env)?e.env.server:e.env;var Bf=()=>{};var Rx=(e)=>new Nx({send:(t,n)=>{e.send(t,n?.compress)},raw:e,readyState:e.readyState,url:e.data.url,protocol:e.data.protocol,close(t,n){e.close(t,n)}}),Fx,Ox,tI=()=>({upgradeWebSocket:Fx,websocket:Ox});var nI=me(()=>{Wf();Bf();Fx=Bc((e,t)=>{let n=Ss(e);if(!n)throw TypeError("env has to include the 2nd argument of fetch.");if(n.upgrade(e.req.raw,{data:{events:t,url:new URL(e.req.url),protocol:e.req.header("sec-websocket-protocol")?.split(",")[0]?.trim()??""}}))return new Response(null);return}),Ox={open(e){let t=e.data.events;if(t.onOpen)t.onOpen(new Event("open"),Rx(e))},close(e,t,n){let r=e.data.events;if(r.onClose)r.onClose(new CloseEvent("close",{code:t,reason:n}),Rx(e))},message(e,t){let n=e.data.events;if(n.onMessage){let r=typeof t==="string"?t:t.buffer;n.onMessage(Bx(r),Rx(e))}}}});var rI=(e)=>{let t=Ss(e);if(!t)throw TypeError("env has to include the 2nd argument of fetch.");if(typeof t.requestIP!=="function")throw TypeError("server.requestIP is not a function.");let n=t.requestIP(e.req.raw);if(!n)return{remote:{}};return{remote:{address:n.address,addressType:n.family==="IPv6"||n.family==="IPv4"?n.family:void 0,port:n.port}}};var iI=me(()=>{Bf()});var oI={};Q(oI,{bunFileSystemModule:()=>kx,createBunWebSocket:()=>tI,getBunServer:()=>Ss,getConnInfo:()=>rI,serveStatic:()=>OP,toSSG:()=>QP,upgradeWebSocket:()=>Fx,websocket:()=>Ox});var sI=me(()=>{PP();eI();nI();iI();Bf()});Qf();import{spawn as yue}from"node:child_process";import{createConnection as bue}from"node:net";class ci extends Error{constructor(e,t,n){super(n);Error.captureStackTrace(this,this.constructor),this.name=this.constructor.name,this.code=t,this.exitCode=e,this.nestedError=void 0}}class eo extends ci{constructor(e){super(1,"commander.invalidArgument",e);Error.captureStackTrace(this,this.constructor),this.name=this.constructor.name}}class zc{constructor(e,t){switch(this.description=t||"",this.variadic=!1,this.parseArg=void 0,this.defaultValue=void 0,this.defaultValueDescription=void 0,this.argChoices=void 0,e[0]){case"<":this.required=!0,this._name=e.slice(1,-1);break;case"[":this.required=!1,this._name=e.slice(1,-1);break;default:this.required=!0,this._name=e;break}if(this._name.endsWith("..."))this.variadic=!0,this._name=this._name.slice(0,-3)}name(){return this._name}_collectValue(e,t){if(t===this.defaultValue||!Array.isArray(t))return[e];return t.push(e),t}default(e,t){return this.defaultValue=e,this.defaultValueDescription=t,this}argParser(e){return this.parseArg=e,this}choices(e){return this.argChoices=e.slice(),this.parseArg=(t,n)=>{if(!this.argChoices.includes(t))throw new eo(`Allowed choices are ${this.argChoices.join(", ")}.`);if(this.variadic)return this._collectValue(t,n);return t},this}argRequired(){return this.required=!0,this}argOptional(){return this.required=!1,this}}function Vc(e){let t=e.name()+(e.variadic===!0?"...":"");return e.required?"<"+t+">":"["+t+"]"}import{EventEmitter as f4}from"node:events";import nh from"node:child_process";import Hn from"node:path";import Kc from"node:fs";import pe from"node:process";import{stripVTControlCharacters as h4}from"node:util";import{stripVTControlCharacters as u4}from"node:util";class Xc{constructor(){this.helpWidth=void 0,this.minWidthToWrap=40,this.sortSubcommands=!1,this.sortOptions=!1,this.showGlobalOptions=!1}prepareContext(e){this.helpWidth=this.helpWidth??e.helpWidth??80}visibleCommands(e){let t=e.commands.filter((r)=>!r._hidden),n=e._getHelpCommand();if(n&&!n._hidden)t.push(n);if(this.sortSubcommands)t.sort((r,i)=>r.name().localeCompare(i.name()));return t}compareOptions(e,t){let n=(r)=>r.short?r.short.replace(/^-/,""):r.long.replace(/^--/,"");return n(e).localeCompare(n(t))}visibleOptions(e){let t=e.options.filter((r)=>!r.hidden),n=e._getHelpOption();if(n&&!n.hidden){let r=n.short&&e._findOption(n.short),i=n.long&&e._findOption(n.long);if(!r&&!i)t.push(n);else if(n.long&&!i)t.push(e.createOption(n.long,n.description));else if(n.short&&!r)t.push(e.createOption(n.short,n.description))}if(this.sortOptions)t.sort(this.compareOptions);return t}visibleGlobalOptions(e){if(!this.showGlobalOptions)return[];let t=[];for(let n=e.parent;n;n=n.parent){let r=n.options.filter((i)=>!i.hidden);t.push(...r)}if(this.sortOptions)t.sort(this.compareOptions);return t}visibleArguments(e){if(e._argsDescription)e.registeredArguments.forEach((t)=>{t.description=t.description||e._argsDescription[t.name()]||""});if(e.registeredArguments.find((t)=>t.description))return e.registeredArguments;return[]}subcommandTerm(e){let t=e.registeredArguments.map((n)=>Vc(n)).join(" ");return e._name+(e._aliases[0]?"|"+e._aliases[0]:"")+(e.options.length?" [options]":"")+(t?" "+t:"")}optionTerm(e){return e.flags}argumentTerm(e){return e.name()}longestSubcommandTermLength(e,t){return t.visibleCommands(e).reduce((n,r)=>Math.max(n,this.displayWidth(t.styleSubcommandTerm(t.subcommandTerm(r)))),0)}longestOptionTermLength(e,t){return t.visibleOptions(e).reduce((n,r)=>Math.max(n,this.displayWidth(t.styleOptionTerm(t.optionTerm(r)))),0)}longestGlobalOptionTermLength(e,t){return t.visibleGlobalOptions(e).reduce((n,r)=>Math.max(n,this.displayWidth(t.styleOptionTerm(t.optionTerm(r)))),0)}longestArgumentTermLength(e,t){return t.visibleArguments(e).reduce((n,r)=>Math.max(n,this.displayWidth(t.styleArgumentTerm(t.argumentTerm(r)))),0)}commandUsage(e){let t=e._name;if(e._aliases[0])t=t+"|"+e._aliases[0];let n="";for(let r=e.parent;r;r=r.parent)n=r.name()+" "+n;return n+t+" "+e.usage()}commandDescription(e){return e.description()}subcommandDescription(e){return e.summary()||e.description()}optionDescription(e){let t=[];if(e.argChoices)t.push(`choices: ${e.argChoices.map((n)=>JSON.stringify(n)).join(", ")}`);if(e.defaultValue!==void 0){if(e.required||e.optional||e.isBoolean()&&typeof e.defaultValue==="boolean")t.push(`default: ${e.defaultValueDescription||JSON.stringify(e.defaultValue)}`)}if(e.presetArg!==void 0&&e.optional)t.push(`preset: ${JSON.stringify(e.presetArg)}`);if(e.envVar!==void 0)t.push(`env: ${e.envVar}`);if(t.length>0){let n=`(${t.join(", ")})`;if(e.description)return`${e.description} ${n}`;return n}return e.description}argumentDescription(e){let t=[];if(e.argChoices)t.push(`choices: ${e.argChoices.map((n)=>JSON.stringify(n)).join(", ")}`);if(e.defaultValue!==void 0)t.push(`default: ${e.defaultValueDescription||JSON.stringify(e.defaultValue)}`);if(t.length>0){let n=`(${t.join(", ")})`;if(e.description)return`${e.description} ${n}`;return n}return e.description}formatItemList(e,t,n){if(t.length===0)return[];return[n.styleTitle(e),...t,""]}groupItems(e,t,n){let r=new Map;return e.forEach((i)=>{let o=n(i);if(!r.has(o))r.set(o,[])}),t.forEach((i)=>{let o=n(i);if(!r.has(o))r.set(o,[]);r.get(o).push(i)}),r}formatHelp(e,t){let n=t.padWidth(e,t),r=t.helpWidth??80;function i(d,f){return t.formatItem(d,n,f,t)}let o=[`${t.styleTitle("Usage:")} ${t.styleUsage(t.commandUsage(e))}`,""],s=t.commandDescription(e);if(s.length>0)o=o.concat([t.boxWrap(t.styleCommandDescription(s),r),""]);let a=t.visibleArguments(e).map((d)=>i(t.styleArgumentTerm(t.argumentTerm(d)),t.styleArgumentDescription(t.argumentDescription(d))));if(o=o.concat(this.formatItemList("Arguments:",a,t)),this.groupItems(e.options,t.visibleOptions(e),(d)=>d.helpGroupHeading??"Options:").forEach((d,f)=>{let h=d.map((p)=>i(t.styleOptionTerm(t.optionTerm(p)),t.styleOptionDescription(t.optionDescription(p))));o=o.concat(this.formatItemList(f,h,t))}),t.showGlobalOptions){let d=t.visibleGlobalOptions(e).map((f)=>i(t.styleOptionTerm(t.optionTerm(f)),t.styleOptionDescription(t.optionDescription(f))));o=o.concat(this.formatItemList("Global Options:",d,t))}return this.groupItems(e.commands,t.visibleCommands(e),(d)=>d.helpGroup()||"Commands:").forEach((d,f)=>{let h=d.map((p)=>i(t.styleSubcommandTerm(t.subcommandTerm(p)),t.styleSubcommandDescription(t.subcommandDescription(p))));o=o.concat(this.formatItemList(f,h,t))}),o.join(`
235
235
  `)}displayWidth(e){return u4(e).length}styleTitle(e){return e}styleUsage(e){return e.split(" ").map((t)=>{if(t==="[options]")return this.styleOptionText(t);if(t==="[command]")return this.styleSubcommandText(t);if(t[0]==="["||t[0]==="<")return this.styleArgumentText(t);return this.styleCommandText(t)}).join(" ")}styleCommandDescription(e){return this.styleDescriptionText(e)}styleOptionDescription(e){return this.styleDescriptionText(e)}styleSubcommandDescription(e){return this.styleDescriptionText(e)}styleArgumentDescription(e){return this.styleDescriptionText(e)}styleDescriptionText(e){return e}styleOptionTerm(e){return this.styleOptionText(e)}styleSubcommandTerm(e){return e.split(" ").map((t)=>{if(t==="[options]")return this.styleOptionText(t);if(t[0]==="["||t[0]==="<")return this.styleArgumentText(t);return this.styleSubcommandText(t)}).join(" ")}styleArgumentTerm(e){return this.styleArgumentText(e)}styleOptionText(e){return e}styleArgumentText(e){return e}styleSubcommandText(e){return e}styleCommandText(e){return e}padWidth(e,t){return Math.max(t.longestOptionTermLength(e,t),t.longestGlobalOptionTermLength(e,t),t.longestSubcommandTermLength(e,t),t.longestArgumentTermLength(e,t))}preformatted(e){return/\n[^\S\r\n]/.test(e)}formatItem(e,t,n,r){let o=" ".repeat(2);if(!n)return o+e;let s=e.padEnd(t+e.length-r.displayWidth(e)),a=2,u=(this.helpWidth??80)-t-a-2,d;if(u<this.minWidthToWrap||r.preformatted(n))d=n;else d=r.boxWrap(n,u).replace(/\n/g,`
236
236
  `+" ".repeat(t+a));return o+s+" ".repeat(a)+d.replace(/\n/g,`
237
237
  ${o}`)}boxWrap(e,t){if(t<this.minWidthToWrap)return e;let n=e.split(/\r\n|\n/),r=/[\s]*[^\s]+/g,i=[];return n.forEach((o)=>{let s=o.match(r);if(s===null){i.push("");return}let a=[s.shift()],c=this.displayWidth(a[0]);s.forEach((u)=>{let d=this.displayWidth(u);if(c+d<=t){a.push(u),c+=d;return}i.push(a.join(""));let f=u.trimStart();a=[f],c=this.displayWidth(f)}),i.push(a.join(""))}),i.join(`
@@ -256,7 +256,7 @@ Expecting one of '${n.join("', '")}'`);if(this._lifeCycleHooks[e])this._lifeCycl
256
256
  `),this.outputHelp({error:!0});let n=t||{},r=n.exitCode||1,i=n.code||"commander.error";this._exit(r,i,e)}_parseOptionsEnv(){this.options.forEach((e)=>{if(e.envVar&&e.envVar in pe.env){let t=e.attributeName();if(this.getOptionValue(t)===void 0||["default","config","env"].includes(this.getOptionValueSource(t)))if(e.required||e.optional)this.emit(`optionEnv:${e.name()}`,pe.env[e.envVar]);else this.emit(`optionEnv:${e.name()}`)}})}_parseOptionsImplied(){let e=new eh(this.options),t=(n)=>this.getOptionValue(n)!==void 0&&!["default","implied"].includes(this.getOptionValueSource(n));this.options.filter((n)=>n.implied!==void 0&&t(n.attributeName())&&e.valueFromOption(this.getOptionValue(n.attributeName()),n)).forEach((n)=>{Object.keys(n.implied).filter((r)=>!t(r)).forEach((r)=>{this.setOptionValueWithSource(r,n.implied[r],"implied")})})}missingArgument(e){let t=`error: missing required argument '${e}'`;this.error(t,{code:"commander.missingArgument"})}optionMissingArgument(e){let t=`error: option '${e.flags}' argument missing`;this.error(t,{code:"commander.optionMissingArgument"})}missingMandatoryOptionValue(e){let t=`error: required option '${e.flags}' not specified`;this.error(t,{code:"commander.missingMandatoryOptionValue"})}_conflictingOption(e,t){let n=(o)=>{let s=o.attributeName(),a=this.getOptionValue(s),c=this.options.find((d)=>d.negate&&s===d.attributeName()),u=this.options.find((d)=>!d.negate&&s===d.attributeName());if(c&&(c.presetArg===void 0&&a===!1||c.presetArg!==void 0&&a===c.presetArg))return c;return u||o},r=(o)=>{let s=n(o),a=s.attributeName();if(this.getOptionValueSource(a)==="env")return`environment variable '${s.envVar}'`;return`option '${s.flags}'`},i=`error: ${r(e)} cannot be used with ${r(t)}`;this.error(i,{code:"commander.conflictingOption"})}unknownOption(e){if(this._allowUnknownOption)return;let t="";if(e.startsWith("--")&&this._showSuggestionAfterError){let r=[],i=this;do{let o=i.createHelp().visibleOptions(i).filter((s)=>s.long).map((s)=>s.long);r=r.concat(o),i=i.parent}while(i&&!i._enablePositionalOptions);t=th(e,r)}let n=`error: unknown option '${e}'${t}`;this.error(n,{code:"commander.unknownOption"})}_excessArguments(e){if(this._allowExcessArguments)return;let t=this.registeredArguments.length,n=t===1?"":"s",r=e.length,i=this.parent?` for '${this.name()}'`:"",o=e.join(", "),s=`error: too many arguments${i}. Expected ${t} argument${n} but got ${r}: ${o}.`;this.error(s,{code:"commander.excessArguments"})}unknownCommand(){let e=this.args[0],t="";if(this._showSuggestionAfterError){let r=[];this.createHelp().visibleCommands(this).forEach((i)=>{if(r.push(i.name()),i.alias())r.push(i.alias())}),t=th(e,r)}let n=`error: unknown command '${e}'${t}`;this.error(n,{code:"commander.unknownCommand"})}version(e,t,n){if(e===void 0)return this._version;this._version=e,t=t||"-V, --version",n=n||"output the version number";let r=this.createOption(t,n);return this._versionOptionName=r.attributeName(),this._registerOption(r),this.on("option:"+r.name(),()=>{this._outputConfiguration.writeOut(`${e}
257
257
  `),this._exit(0,"commander.version",e)}),this}description(e,t){if(e===void 0&&t===void 0)return this._description;if(this._description=e,t)this._argsDescription=t;return this}summary(e){if(e===void 0)return this._summary;return this._summary=e,this}alias(e){if(e===void 0)return this._aliases[0];let t=this;if(this.commands.length!==0&&this.commands[this.commands.length-1]._executableHandler)t=this.commands[this.commands.length-1];if(e===t._name)throw Error("Command alias can't be the same as its name");let n=this.parent?._findCommand(e);if(n){let r=[n.name()].concat(n.aliases()).join("|");throw Error(`cannot add alias '${e}' to command '${this.name()}' as already have command '${r}'`)}return t._aliases.push(e),this}aliases(e){if(e===void 0)return this._aliases;return e.forEach((t)=>this.alias(t)),this}usage(e){if(e===void 0){if(this._usage)return this._usage;let t=this.registeredArguments.map((n)=>Vc(n));return[].concat(this.options.length||this._helpOption!==null?"[options]":[],this.commands.length?"[command]":[],this.registeredArguments.length?t:[]).join(" ")}return this._usage=e,this}name(e){if(e===void 0)return this._name;return this._name=e,this}helpGroup(e){if(e===void 0)return this._helpGroupHeading??"";return this._helpGroupHeading=e,this}commandsGroup(e){if(e===void 0)return this._defaultCommandGroup??"";return this._defaultCommandGroup=e,this}optionsGroup(e){if(e===void 0)return this._defaultOptionGroup??"";return this._defaultOptionGroup=e,this}_initOptionGroup(e){if(this._defaultOptionGroup&&!e.helpGroupHeading)e.helpGroup(this._defaultOptionGroup)}_initCommandGroup(e){if(this._defaultCommandGroup&&!e.helpGroup())e.helpGroup(this._defaultCommandGroup)}nameFromFilename(e){return this._name=Hn.basename(e,Hn.extname(e)),this}executableDir(e){if(e===void 0)return this._executableDir;return this._executableDir=e,this}helpInformation(e){let t=this.createHelp(),n=this._getOutputContext(e);t.prepareContext({error:n.error,helpWidth:n.helpWidth,outputHasColors:n.hasColors});let r=t.formatHelp(this,t);if(n.hasColors)return r;return this._outputConfiguration.stripColor(r)}_getOutputContext(e){e=e||{};let t=!!e.error,n,r,i;if(t)n=(s)=>this._outputConfiguration.writeErr(s),r=this._outputConfiguration.getErrHasColors(),i=this._outputConfiguration.getErrHelpWidth();else n=(s)=>this._outputConfiguration.writeOut(s),r=this._outputConfiguration.getOutHasColors(),i=this._outputConfiguration.getOutHelpWidth();return{error:t,write:(s)=>{if(!r)s=this._outputConfiguration.stripColor(s);return n(s)},hasColors:r,helpWidth:i}}outputHelp(e){let t;if(typeof e==="function")t=e,e=void 0;let n=this._getOutputContext(e),r={error:n.error,write:n.write,command:this};this._getCommandAndAncestors().reverse().forEach((o)=>o.emit("beforeAllHelp",r)),this.emit("beforeHelp",r);let i=this.helpInformation({error:n.error});if(t){if(i=t(i),typeof i!=="string"&&!Buffer.isBuffer(i))throw Error("outputHelp callback must return a string or a Buffer")}if(n.write(i),this._getHelpOption()?.long)this.emit(this._getHelpOption().long);this.emit("afterHelp",r),this._getCommandAndAncestors().forEach((o)=>o.emit("afterAllHelp",r))}helpOption(e,t){if(typeof e==="boolean"){if(e){if(this._helpOption===null)this._helpOption=void 0;if(this._defaultOptionGroup)this._initOptionGroup(this._getHelpOption())}else this._helpOption=null;return this}if(this._helpOption=this.createOption(e??"-h, --help",t??"display help for command"),e||t)this._initOptionGroup(this._helpOption);return this}_getHelpOption(){if(this._helpOption===void 0)this.helpOption(void 0,void 0);return this._helpOption}addHelpOption(e){return this._helpOption=e,this._initOptionGroup(e),this}help(e){this.outputHelp(e);let t=Number(pe.exitCode??0);if(t===0&&e&&typeof e!=="function"&&e.error)t=1;this._exit(t,"commander.help","(outputHelp)")}addHelpText(e,t){let n=["beforeAll","before","after","afterAll"];if(!n.includes(e))throw Error(`Unexpected value for position to addHelpText.
258
258
  Expecting one of '${n.join("', '")}'`);let r=`${e}Help`;return this.on(r,(i)=>{let o;if(typeof t==="function")o=t({error:i.error,command:i.command});else o=t;if(o)i.write(`${o}
259
- `)}),this}_outputHelpIfRequested(e){let t=this._getHelpOption();if(t&&e.find((r)=>t.is(r)))this.outputHelp(),this._exit(0,"commander.helpDisplayed","(outputHelp)")}}function h0(e){return e.map((t)=>{if(!t.startsWith("--inspect"))return t;let n,r="127.0.0.1",i="9229",o;if((o=t.match(/^(--inspect(-brk)?)$/))!==null)n=o[1];else if((o=t.match(/^(--inspect(-brk|-port)?)=([^:]+)$/))!==null)if(n=o[1],/^\d+$/.test(o[3]))i=o[3];else r=o[3];else if((o=t.match(/^(--inspect(-brk|-port)?)=([^:]+):(\d+)$/))!==null)n=o[1],r=o[3],i=o[4];if(n&&i!=="0")return`${n}=${r}:${parseInt(i)+1}`;return t})}function p0(){if(pe.env.NO_COLOR||pe.env.FORCE_COLOR==="0"||pe.env.FORCE_COLOR==="false")return!1;if(pe.env.FORCE_COLOR||pe.env.CLICOLOR_FORCE!==void 0)return!0;return}var cle=new to;var Os={name:"@rainmanhhh/pi-web",version:"0.15.9",description:"Web UI for the pi coding agent (fork of @agegr/pi-web)",homepage:"https://gitee.com/dsxbygzzl/pi-web#readme",repository:{type:"git",url:"git+https://gitee.com/dsxbygzzl/pi-web.git"},bugs:{url:"https://gitee.com/dsxbygzzl/pi-web/issues"},author:"rainmanhhh",license:"MIT",publishConfig:{access:"public",registry:"https://registry.npmjs.org"},engines:{node:">=24.0.0"},files:["dist","public","extensions","package.json"],bin:{"pi-web":"dist/server.mjs"},scripts:{dev:"vite","dev:lan":"vite --host 0.0.0.0",mb:"bun run --env-file=.env.manual api",mf:"bun run --env-file=.env.manual dev -- --port 3001",api:"bun run server/main.ts","api:node":"bun run build:server && node dist/server.mjs","build:server":'bun build server/main.ts --target node --outfile dist/server.mjs --minify --external "@earendil-works/*" --define "process.env.PI_WEB_PACKAGED=1"',"e2e:stop":"bun run scripts/e2e-stop.mjs",build:"vite build && bun run scripts/prune-fonts.mjs","build:analyze":"vite build --config scripts/analyze-bundle.config.ts && bun run scripts/prune-fonts.mjs",lint:"oxlint --fix",jscpd:"jscpd --config .jscpd.json",check:"tsc --noEmit",format:"biome check --write .",prepublishOnly:"bun run check && bun run build && bun run build:server","test:e2e":"playwright test","test:unit":"vitest run",prepare:"husky || true"},dependencies:{"@codemirror/commands":"^6.11.0","@codemirror/lang-css":"^6.3.1","@codemirror/lang-html":"^6.4.12","@codemirror/lang-javascript":"^6.2.5","@codemirror/lang-json":"^6.0.2","@codemirror/lang-markdown":"^6.5.2","@codemirror/lang-yaml":"^6.1.3","@codemirror/language":"^6.12.4","@codemirror/state":"^6.7.1","@codemirror/theme-one-dark":"^6.1.3","@codemirror/view":"^6.43.9","@earendil-works/pi-agent-core":"0.84.4","@earendil-works/pi-ai":"0.84.4","@earendil-works/pi-coding-agent":"0.84.4","@earendil-works/pi-tui":"0.84.4","@hono/node-server":"^2.1.1","class-variance-authority":"^0.7.1",clsx:"^2.1.1",codemirror:"^6.0.2",hono:"^4.13.5","lucide-react":"^1.37.0","p-defer":"^4.0.1",pointrix:"^1.1.0","proper-lockfile":"4.1.2","radix-ui":"^1.6.7",react:"^19.2.8","react-dom":"^19.2.8",shadcn:"^4.19.0",streamdown:"2.6.0","tailwind-merge":"^3.6.0","tw-animate-css":"^1.4.0",undici:"8.10.0",virtua:"^0.50.6",ws:"^8.21.3"},devDependencies:{"@lobehub/icons":"^5.16.0","@playwright/test":"^1.62.1","@tailwindcss/postcss":"^4.3.3","@testing-library/dom":"^10.4.1","@testing-library/react":"^16.3.3","@types/node":"^25.9.5","@types/ws":"^8.18.1","@types/proper-lockfile":"4.1.4","@types/react":"^19.2.18","@types/react-dom":"^19.2.5","@types/react-resizable":"^4.0.0","@types/react-syntax-highlighter":"^15.5.13","@vitejs/plugin-react":"^6.1.1",biome:"^0.3.3",commander:"^15.0.0",husky:"^9.1.7",jiti:"^2.7.0",jscpd:"^5.1.0",jsdom:"^30.0.1",katex:"^0.18.4","lint-staged":"^17.4.1",mammoth:"^1.12.2",mermaid:"^11.17.2",oxlint:"^1.80.0",postcss:"^8.5.26","react-markdown":"^10.1.0","react-syntax-highlighter":"^16.1.1","rehype-katex":"^7.0.1","rehype-raw":"^7.0.0","rehype-sanitize":"^6.0.0","remark-gfm":"^4.0.1","remark-math":"^6.0.0",tailwindcss:"^4.3.3",typescript:"^7.0.2",vite:"^8.2.2","vite-plugin-remove-console":"^2.2.0","vite-plugin-svgr":"^5.2.0",vitest:"^4.1.11"},type:"module",overrides:{katex:"^0.18.4"}};import{getAgentDir as aI}from"@earendil-works/pi-coding-agent";var g0={port:31415};var rh=(e,t,n)=>(r,i)=>{let o=-1;return s(0);async function s(a){if(a<=o)throw Error("next() called multiple times");o=a;let c,u=!1,d;if(e[a])d=e[a][0][0],r.req.routeIndex=a;else d=a===e.length&&i||void 0;if(d)try{c=await d(r,()=>s(a+1))}catch(f){if(f instanceof Error&&t)r.error=f,c=await t(f,r),u=!0;else throw f}else if(r.finalized===!1&&n)c=await n(r);if(c&&(r.finalized===!1||u))r.res=c;return r}};var m0=Symbol();var y0=(e,t)=>new Response(e,{headers:{"Content-Type":t.replace(/^[^;]+/,(r)=>r.toLowerCase())}}).formData();var b0=32,g4=1e4,Zc=(e)=>("headers"in e),_0=async(e,t=Object.create(null))=>{let{all:n=!1,dot:r=!1}=t,s=(Zc(e)?e.headers:e.raw.headers).get("Content-Type")?.split(";")[0].trim().toLowerCase();if(s==="multipart/form-data"||s==="application/x-www-form-urlencoded")return m4(e,{all:n,dot:r});return{}};async function m4(e,t){if(!Zc(e)&&e.bodyCache.formData)return v0(await e.bodyCache.formData,t);let n=Zc(e)?e.headers:e.raw.headers,r=await e.arrayBuffer(),i=y0(r,n.get("Content-Type")||"");if(!Zc(e))e.bodyCache.formData=i;let o=await i;if(o)return v0(o,t);return{}}function v0(e,t){let n=Object.create(null),r={count:0};if(e.forEach((i,o)=>{if(!(t.all||o.endsWith("[]")))n[o]=i;else y4(n,o,i)}),t.dot)Object.entries(n).forEach(([i,o])=>{if(i.includes("."))b4(n,i,o,r),delete n[i]});return n}var y4=(e,t,n)=>{if(e[t]!==void 0)if(Array.isArray(e[t]))e[t].push(n);else e[t]=[e[t],n];else if(!t.endsWith("[]"))e[t]=n;else e[t]=[n]},b4=(e,t,n,r)=>{if(/(?:^|\.)__proto__\./.test(t))return;let i=e,o=t.split(".",b0+2);if(o.length>b0+1)x0();o.forEach((s,a)=>{if(a===o.length-1)i[s]=n;else{if(!i[s]||typeof i[s]!=="object"||Array.isArray(i[s])||i[s]instanceof File){if(r.count++>=g4)x0();i[s]=Object.create(null)}i=i[s]}})},x0=()=>{throw Error("Nesting limit exceeded")};ui();var U0=class{raw;#e;#t;routeIndex=0;path;bodyCache={};constructor(e,t="/",n=[[]]){this.raw=e,this.path=t,this.#t=n}param(e){return e?this.#n(e):this.#o()}#n(e){let t=this.#t[0][this.routeIndex]?.[1][e],n=this.#i(t);return n&&Qc(n)}#o(){let e={},t=Object.keys(this.#t[0][this.routeIndex]?.[1]??{});for(let n of t){let r=this.#i(this.#t[0][this.routeIndex][1][n]);if(r!==void 0)e[n]=Qc(r)}return e}#i(e){return this.#t[1]?this.#t[1][e]:e}query(e){return C0(this.url,e)}queries(e){return A0(this.url,e)}header(e){if(e)return this.raw.headers.get(e)??void 0;let t=Object.create(null);return this.raw.headers.forEach((n,r)=>{t[r]=n}),t}async parseBody(e){return _0(this,e)}#r=(e)=>{let{bodyCache:t,raw:n}=this,r=t[e];if(r)return r;for(let i in t)return t[i].then((o)=>{if(i==="json")o=JSON.stringify(o);return new Response(o)[e]()});return t[e]=n[e]()};json(){return this.#r("text").then((e)=>JSON.parse(e))}text(){return this.#r("text")}arrayBuffer(){return this.#r("arrayBuffer")}bytes(){return this.#r("arrayBuffer").then((e)=>new Uint8Array(e))}blob(){return this.#r("blob")}formData(){return this.#r("formData")}addValidatedData(e,t){(this.#e??={})[e]=t}valid(e){return this.#e?.[e]}get url(){return this.raw.url}get method(){return this.raw.method}get[m0](){return this.#t}get matchedRoutes(){return this.#t[0].map(([[,e]])=>e)}get routePath(){return this.#t[0].map(([[,e]])=>e)[this.routeIndex].path}};uh();var w4="text/plain; charset=UTF-8",lh=(e,t)=>({"Content-Type":e,...t}),Ps=(e,t)=>new Response(e,t),dh=class{#e;#t;env={};#n;finalized=!1;error;#o;#i;#r;#c;#s;#a;#l;#d;#f;constructor(e,t){if(this.#e=e,t)this.#i=t.executionCtx,this.env=t.env,this.#a=t.notFoundHandler,this.#f=t.path,this.#d=t.matchResult}get req(){return this.#t??=new U0(this.#e,this.#f,this.#d),this.#t}get event(){if(this.#i&&"respondWith"in this.#i)return this.#i;else throw Error("This context has no FetchEvent")}get executionCtx(){if(this.#i)return this.#i;else throw Error("This context has no ExecutionContext")}get res(){return this.#r||=Ps(null,{headers:this.#l??=new Headers})}set res(e){if(this.#r&&e){e=Ps(e.body,e);for(let[t,n]of this.#r.headers.entries()){if(t==="content-type")continue;if(t==="set-cookie"){let r=this.#r.headers.getSetCookie();e.headers.delete("set-cookie");for(let i of r)e.headers.append("set-cookie",i)}else e.headers.set(t,n)}}this.#r=e,this.finalized=!0}render=(...e)=>(this.#s??=(t)=>this.html(t),this.#s(...e));setLayout=(e)=>this.#c=e;getLayout=()=>this.#c;setRenderer=(e)=>{this.#s=e};header=(e,t,n)=>{if(this.finalized)this.#r=Ps(this.#r.body,this.#r);let r=this.#r?this.#r.headers:this.#l??=new Headers;if(t===void 0)r.delete(e);else if(n?.append)r.append(e,t);else r.set(e,t)};status=(e)=>{this.#o=e};set=(e,t)=>{this.#n??=new Map,this.#n.set(e,t)};get=(e)=>this.#n?this.#n.get(e):void 0;get var(){if(!this.#n)return{};return Object.fromEntries(this.#n)}#u(e,t,n){let r=this.#r?new Headers(this.#r.headers):this.#l;if(typeof t==="object"&&t.headers){r??=new Headers;for(let[o,s]of new Headers(t.headers))if(o==="set-cookie")r.append(o,s);else r.set(o,s)}if(n){if(!r){let o=0;for(let s in n)if(++o>1||typeof n[s]!=="string"){r=new Headers;break}}if(r)for(let o in n){let s=n[o];if(typeof s==="string")r.set(o,s);else{r.delete(o);for(let a of s)r.append(o,a)}}}let i=typeof t==="number"?t:t?.status??this.#o;return Ps(e,{status:i,headers:r??n})}newResponse=(...e)=>this.#u(...e);body=(e,t,n)=>this.#u(e,t,n);text=(e,t,n)=>!this.#l&&!this.#o&&!t&&!n&&!this.finalized?new Response(e):this.#u(e,t,lh(w4,n));json=(e,t,n)=>this.#u(JSON.stringify(e),t,lh("application/json",n));html=(e,t,n)=>{let r=(i)=>this.#u(i,t,lh("text/html; charset=UTF-8",n));return typeof e==="object"?ch(e,k0.Stringify,!1,{}).then(r):r(e)};redirect=(e,t)=>{let n=String(e);return this.header("Location",!/[^\x00-\xFF]/.test(n)?n:encodeURI(n)),this.newResponse(null,t??302)};notFound=()=>(this.#a??=()=>Ps(),this.#a(this))};vr();fh();ui();var D4=(e)=>e.text("404 Not Found",404),P0=(e,t)=>{if("getResponse"in e){let n=e.getResponse();return t.newResponse(n.body,n)}return console.error(e),t.text("Internal Server Error",500)},I0=class e{get;post;put;delete;options;patch;query;all;on;use;router;getPath;_basePath="/";#e="/";routes=[];constructor(t={}){[...O0,F0].forEach((o)=>{this[o]=(s,...a)=>{if(typeof s==="string")this.#e=s;else this.#o(o,this.#e,s);return a.forEach((c)=>{this.#o(o,this.#e,c)}),this}}),this.on=(o,s,...a)=>{for(let c of[s].flat()){this.#e=c;for(let u of[o].flat())a.map((d)=>{this.#o(u.toUpperCase(),this.#e,d)})}return this},this.use=(o,...s)=>{if(typeof o==="string")this.#e=o;else this.#e="*",s.unshift(o);return s.forEach((a)=>{this.#o(qe,this.#e,a)}),this};let{strict:r,...i}=t;Object.assign(this,i),this.getPath=r??!0?t.getPath??ah:T0}#t(){let t=new e({router:this.router,getPath:this.getPath});return t.errorHandler=this.errorHandler,t.#n=this.#n,t.routes=this.routes,t}#n=D4;errorHandler=P0;route(t,n){let r=this.basePath(t);return n.routes.map((i)=>{let o;if(n.errorHandler===P0)o=i.handler;else o=async(s,a)=>(await rh([],n.errorHandler)(s,()=>i.handler(s,a))).res,o[Is]=i.handler;r.#o(i.method,i.path,o,i.basePath)}),this}basePath(t){let n=this.#t();return n._basePath=br(this._basePath,t),n}onError=(t)=>(this.errorHandler=t,this);notFound=(t)=>(this.#n=t,this);mount(t,n,r){let i,o;if(r)if(typeof r==="function")o=r;else if(o=r.optionHandler,r.replaceRequest===!1)i=(c)=>c;else i=r.replaceRequest;let s=o?(c)=>{let u=o(c);return Array.isArray(u)?u:[u]}:(c)=>{let u=void 0;try{u=c.executionCtx}catch{}return[c.env,u]};i||=(()=>{let c=br(this._basePath,t),u=c==="/"?0:c.length;return(d)=>{let f=new URL(d.url);return f.pathname=this.getPath(d).slice(u)||"/",new Request(f,d)}})();let a=async(c,u)=>{let d=await n(i(c.req.raw),...s(c));if(d)return d;await u()};return this.#o(qe,br(t,"*"),a),this}#o(t,n,r,i){t=t.toUpperCase(),n=br(this._basePath,n);let o={basePath:i!==void 0?br(this._basePath,i):this._basePath,path:n,method:t,handler:r};this.router.add(t,n,[r,o]),this.routes.push(o)}#i(t,n){if(t instanceof Error)return this.errorHandler(t,n);throw t}#r(t,n,r,i){if(i==="HEAD")return(async()=>new Response(null,await this.#r(t,n,r,"GET")))();let o=this.getPath(t,{env:r}),s=this.router.match(i,o),a=new dh(t,{path:o,matchResult:s,env:r,executionCtx:n,notFoundHandler:this.#n});if(s[0].length===1){let u;try{u=s[0][0][0][0](a,async()=>{a.res=await this.#n(a)})}catch(d){return this.#i(d,a)}return u instanceof Promise?u.then((d)=>d||(a.finalized?a.res:this.#n(a))).catch((d)=>this.#i(d,a)):u??this.#n(a)}let c=rh(s[0],this.errorHandler,this.#n);return(async()=>{try{let u=await c(a);if(!u.finalized)throw Error("Context is not finalized. Did you forget to return a Response object or `await next()`?");return u.res}catch(u){return this.#i(u,a)}})()}fetch=(t,...n)=>this.#r(t,n[1],n[0],t.method);request=(t,n,r,i)=>{if(t instanceof Request)return this.fetch(n?new Request(t,n):t,r,i);return t=t.toString(),this.fetch(new Request(/^https?:\/\//.test(t)?t:`http://localhost${br("/",t)}`,n),r,i)};fire=()=>{addEventListener("fetch",(t)=>{t.respondWith(this.#r(t.request,t,void 0,t.request.method))})}};vr();ui();var Ve=()=>Object.create(null);vr();var nu=[];function hh(e,t){let n=this.buildAllMatchers(),r=(i,o)=>{let s=n[i]||n[qe],a=s[2][o];if(a)return a;let c=o.match(s[0]);if(!c)return[[],nu];let u=c.indexOf("",1);return[s[1][u],c]};return this.match=r,r(e,t)}var no="[^/]+",_r=".*",Gn="(?:|/.*)",xr=Symbol(),M0=new Set(".\\+*[^]$()");function E4(e,t){if(e.length===1)return t.length===1?e<t?-1:1:-1;if(t.length===1)return 1;if(e===_r||e===Gn)return t===Gn?-1:1;else if(t===_r||t===Gn)return-1;if(e===no)return 1;else if(t===no)return-1;return e.length===t.length?e<t?-1:1:t.length-e.length}var N0=class e{#e;#t;#n=Ve();insert(t,n,r,i,o){let s=this;for(let a=0,c=t.length;a<c;a++){let u=t[a],d=u.length===1?u==="*"?a===c-1?["","",_r]:["","",no]:null:u==="/*"?["","",Gn]:u.match(/^\:([^\{\}]+)(?:\{(.+)\})?$/),f;if(d){let h=d[1],p=d[2]||no;if(h&&d[2]){if(p===".*")throw xr;if(p=p.replace(/^\((?!\?:)(?=[^)]+\)$)/,"(?:"),/\((?!\?:)/.test(p))throw xr;if(p.length===1&&M0.has(p))throw xr}if(f=s.#n[p],!f){if(p!==_r&&p!==Gn){for(let g in s.#n)if((p.length>1||g.length>1)&&g!==_r&&g!==Gn)throw xr}f=s.#n[p]=new e}if(h!=="")f.#t??=i.varIndex++,r.push([h,f.#t])}else if(f=s.#n[u],!f){for(let h in s.#n)if(h.length>1&&h!==_r&&h!==Gn)throw xr;f=s.#n[u]=new e}s=f}if(s.#e!==void 0)throw xr;s.#e=o?-1:n}buildRegExpStr(){let n=Object.keys(this.#n).sort(E4).map((r)=>{let i=this.#n[r],o=i.buildRegExpStr();return o===""?"":(typeof i.#t==="number"?`(${r})@${i.#t}`:M0.has(r)?`\\${r}`:r)+o}).filter(Boolean);if(typeof this.#e==="number"&&this.#e!==-1)n.unshift(`#${this.#e}`);if(n.length===0)return"";if(n.length===1)return n[0];return"(?:"+n.join("|")+")"}};var ph=class{#e={varIndex:0};#t=new N0;#n=0;paths=Ve();insert(e,t){if(t){this.#t.insert(e.split(""),0,[],this.#e,!0);return}let n=[],r=[],i=e;for(let s=0;;){let a=!1;if(i=i.replace(/\{[^}]+\}/g,(c)=>{let u=`@\\${s}`;return r[s]=[u,c],s++,a=!0,u}),!a)break}let o=i.match(/(?::[^\/]+)|(?:\/\*$)|./g)||[];for(let s=r.length-1;s>=0;s--){let[a]=r[s];for(let c=o.length-1;c>=0;c--)if(o[c].indexOf(a)!==-1){o[c]=o[c].replace(a,r[s][1]);break}}this.#t.insert(o,this.#n,n,this.#e,!1),this.paths[e]=[this.#n++,n]}buildRegExp(){let e=this.#t.buildRegExpStr();if(e==="")return[/^$/,[],[]];let t=0,n=[],r=[];return e=e.replace(/#(\d+)|@(\d+)|\.\*\$/g,(i,o,s)=>{if(o!==void 0)return n[++t]=Number(o),"$()";if(s!==void 0)return r[Number(s)]=++t,"";return""}),[new RegExp(`^${e}`),n,r]}};var B0=Ve();function L0(e){return B0[e]??=new RegExp(`^${e.replace(/\/:[^/{}]+(?:\{\[\^\/]\+})?(?=[/{]|$)|\/?\*$|([.\\+*[^\]$()?{}|])/g,(t,n)=>n?`\\${n}`:t==="/*"?Gn:t==="*"?_r:`/:${no}`)}$`)}function ru(e,t){for(let n of Object.keys(e).sort((r,i)=>i.length-r.length))if(L0(n).test(t))return[...e[n]];return}var iu=class{name="RegExpRouter";#e;#t;#n;constructor(){this.#e={[qe]:Ve()},this.#t={[qe]:Ve()},this.#n={[qe]:new ph}}#o(e,t){try{this.#n[e].insert(t,!/\*|\/:/.test(t))}catch(n){throw n===xr?new tu(t):n}}add(e,t,n){let r=this.#e,i=this.#t;if(!r)throw Error(eu);if(!r[e]){this.#n[e]=new ph;for(let a of[r,i]){a[e]=Ve();for(let c in a[qe])a[e][c]=[...a[qe][c]],this.#o(e,c)}}if(t==="/*")t="*";let o=e===qe?Object.keys(r):[e];if(/\*$/.test(t)){let a=L0(t);for(let c of o)if(!r[c][t])this.#o(c,t),r[c][t]=ru(r[c],t)||ru(r[qe],t)||[];for(let c of[r,i])for(let u of o)for(let d in c[u])a.test(d)&&c[u][d].push([n,t]);return}let s=Jc(t)||[t];for(let a of s)for(let c of o){if(!i[c][a])this.#o(c,a),i[c][a]=ru(r[c],a)||ru(r[qe],a)||[];i[c][a].push([n,a])}}match=hh;buildAllMatchers(){let e=Ve();for(let t of Object.keys(this.#t))e[t]=this.#i(t);return this.#e=this.#t=this.#n=void 0,B0=Ve(),e}#i(e){let t=this.#e[e],n=this.#t[e],r=this.#n[e],i=Ve(),o=[],[s,a,c]=r.buildRegExp();for(let u of[t,n])for(let d in u){let f=u[d],h=r.paths[d];if(!h){i[d]=[f.map(([p])=>[p,Ve()]),nu];continue}o[h[0]]=f.map(([p,g])=>[p,r.paths[g][1].reduceRight((y,[v],b)=>(y[v]=c[h[1][b][1]],y),Ve())])}return[s,a.map((u)=>o[u]),i]}};vr();vr();var gh=class{name="SmartRouter";#e=[];#t=[];constructor(e){this.#e=e.routers}add(e,t,n){if(!this.#t)throw Error(eu);this.#t.push([e,t,n])}match(e,t){if(!this.#t)throw Error("Fatal error");let n=this.#e,r=this.#t,i=n.length,o=0,s;for(;o<i;o++){let a=n[o];try{for(let c=0,u=r.length;c<u;c++)a.add(...r[c]);s=a.match(e,t)}catch(c){if(c instanceof tu)continue;throw c}this.match=a.match.bind(a),this.#e=[a],this.#t=void 0;break}if(o===i)throw Error("Fatal error");return this.name=`SmartRouter + ${this.activeRouter.name}`,s}get activeRouter(){if(this.#t||this.#e.length!==1)throw Error("No active router has been determined yet.");return this.#e[0]}};ui();vr();ui();var mh=Ve(),T4=0,W0=class e{#e=[];#t=Ve();#n=[];#o;#i=mh;insert(t,n,r){let i=this,o=w0(n),s=new Set,a=0;for(let c of o){let u=o[++a],d=D0(c,u)||(u===void 0&&c&&c.indexOf("*")===c.length-1?c:null),f=Array.isArray(d),h=f?d[0]:d||c,p=i.#t[h]||=new e;if(d&&!p.#o)p.#o=d,i.#n.push(p);if(i=p,f)s.add(d[1])}i.#e.push({[t]:{handler:r,possibleKeys:[...s],score:++T4}})}#r(t,n,r,i,o){for(let s=0,a=n.#e.length;s<a;s++){let c=n.#e[s],u=c[r]||c[qe];if(u){u.params=Ve(),t.push(u);for(let d=0,f=u.possibleKeys.length;d<f;d++){let h=u.possibleKeys[d];u.params[h]=o?.[h]&&!d?o[h]:i[h]??o?.[h]}}}}search(t,n){let r=[];this.#i=mh;let o=[this],s=oh(n),a=[],c=s.length,u=null;for(let d=0;d<c;d++){let f=s[d],h=d===c-1,p=[];for(let y=0,v=o.length;y<v;y++){let b=o[y],_=b.#t[f];if(_)if(_.#i=b.#i,h){if(_.#t["*"])this.#r(r,_.#t["*"],t,b.#i);this.#r(r,_,t,b.#i)}else p.push(_);for(let m of b.#n){let x=m.#o,D=b.#i===mh?{}:{...b.#i};if(typeof x==="string"){if(x==="*"||f.startsWith(x.slice(0,-1))){if(this.#r(r,m,t,b.#i),x==="*")m.#i=D,p.push(m)}continue}let[,A,E]=x;if(!f&&E===!0)continue;if(E!==!0){if(!u){u=[];let N=n[0]==="/"?1:0;for(let F=0;F<c;F++)u[F]=N,N+=s[F].length+1}let U=n.slice(u[d]),C=E.exec(U);if(C){if(D[A]=C[0],this.#r(r,m,t,b.#i,D),C[0].length===U.length&&m.#t["*"])this.#r(r,m.#t["*"],t,b.#i,D);for(let N in m.#t){m.#i=D;let F=C[0].match(/\//g)?.length??0;(a[F]||=[]).push(m);break}continue}}if(E===!0||E.test(f))if(D[A]=f,h){if(this.#r(r,m,t,D,b.#i),m.#t["*"])this.#r(r,m.#t["*"],t,D,b.#i)}else m.#i=D,p.push(m)}}let g=a.shift();o=g?p.concat(g):p}if(r[1])r.sort((d,f)=>d.score-f.score);return[r.map(({handler:d,params:f})=>[d,f])]}};var yh=class{name="TrieRouter";#e=new W0;add(e,t,n){for(let r of Jc(t)||[t])this.#e.insert(e,r,n)}match(e,t){return this.#e.search(e,t)}};var bh=class extends I0{constructor(e={}){super(e);this.router=e.router??new gh({routers:[new iu,new yh]})}};import{getAgentDir as bae}from"@earendil-works/pi-coding-agent";import{isIP as j0}from"node:net";function q0(e){return(e.startsWith("[")&&e.endsWith("]")?e.slice(1,-1):e).toLowerCase().replace(/\.$/,"")}function $0(e){if(!e||/[\s/@\\]/.test(e))return null;try{let t=new URL(`http://${e}`);if(t.username||t.password||t.pathname!=="/"||t.search||t.hash)return null;return q0(t.hostname)}catch{return null}}function S4(e){let t=e?.trim();if(!t)return null;return j0(t)?q0(t):$0(t)}function C4(e){return e==="localhost"||e.endsWith(".localhost")}function H0(){return[process.env.PI_WEB_HOSTNAME,...process.env.PI_WEB_ALLOWED_HOSTS?.split(",")??[]].filter((e)=>Boolean(e?.trim()))}function G0(e){try{return new URL(e).origin}catch{return null}}function A4(e){let t=new URL(e.url),n=e.headers.get("host");return n?G0(`${t.protocol}//${n}`):null}function U4(e){if(e.method!=="GET"||e.headers.get("sec-fetch-mode")!=="navigate"||e.headers.get("sec-fetch-dest")!=="document"||e.headers.get("sec-fetch-user")!=="?1")return!1;try{return/^\/api\/sessions\/[^/]+\/export$/.test(new URL(e.url).pathname)}catch{return!1}}function vh(e,t=H0()){let n=e.headers.get("host"),r=n?$0(n):null;if(!r)return!1;if(C4(r)||j0(r))return!0;return t.some((i)=>S4(i)===r)}function k4(e){let t=e.headers.get("origin");if(e.headers.get("sec-fetch-site")==="cross-site")return!1;if(!t)return!0;let r=A4(e);return r!==null&&G0(t)===r}function R4(e){return e.headers.has("origin")||e.headers.has("sec-fetch-site")}function Et(e,t=H0()){if(!vh(e,t))return!1;if(U4(e))return!0;return!R4(e)||k4(e)}function wr(e){let t=e.headers.get("content-type")?.split(";",1)[0]?.trim().toLowerCase();return t==="application/json"||Boolean(t?.startsWith("application/")&&t.endsWith("+json"))}import{createHash as F4,timingSafeEqual as O4}from"node:crypto";var P4="pi";function z0(e){return F4("sha256").update(e,"utf8").digest()}function V0(e,t){return O4(z0(e),z0(t))}function Ms(e=process.env.PI_WEB_PASSWORD){return typeof e==="string"&&e.length>0}function ou(e,t=process.env.PI_WEB_PASSWORD){if(!Ms(t)||!e)return!1;let n=/^Basic\s+(\S+)$/i.exec(e);if(!n)return!1;let r;try{let u=Buffer.from(n[1],"base64");if(u.toString("base64")!==n[1])return!1;r=new TextDecoder("utf-8",{fatal:!0}).decode(u)}catch{return!1}let i=r.indexOf(":");if(i===-1)return!1;let o=r.slice(0,i),s=r.slice(i+1),a=V0(o,P4),c=V0(s,t);return a&&c}class xh extends Request{nextUrl;constructor(e){let t=e.method!=="GET"&&e.method!=="HEAD";super(e.url,{method:e.method,headers:e.headers,body:t?e.body:void 0,duplex:t?"half":void 0,signal:e.signal});this.nextUrl=new URL(e.url)}}class w extends Response{static json(e,t){let n=new Headers(t?.headers);return n.set("content-type","application/json; charset=utf-8"),new w(JSON.stringify(e),{status:t?.status??200,statusText:t?.statusText,headers:n})}}var _h=!1,X0=performance.now();function K0(e){if(_h=e,X0=performance.now(),_h)Wt("boot","debug log enabled")}function Lt(e){return(t,n)=>Wt(e,t,n)}function Wt(e,t,n){if(!_h)return;let r=performance.now()-X0,i=new Date,o=(a,c=2)=>String(a).padStart(c,"0"),s=`${o(i.getHours())}:${o(i.getMinutes())}:${o(i.getSeconds())}.${o(i.getMilliseconds(),3)}`;console.debug(`[debug][${e}][${s}][+${r.toFixed(1)}ms] ${t}${n?` — ${n}`:""}`)}var I4=Lt("mount"),M4=["GET","POST","PUT","PATCH","DELETE"];function ee(e,t,n){let r=t.split("/").filter(Boolean),i=[],o=new Map;for(let a of r){let c=a.match(/^\[\.\.\.(.+)\]$/),u=a.match(/^\[(.+)\]$/);if(c)i.push(`:${c[1]}{.+}`),o.set(c[1],{hono:c[1],catchAll:!0});else if(u)i.push(`:${u[1]}`),o.set(u[1],{hono:u[1],catchAll:!1});else i.push(a)}let s=`/${i.join("/")}`;for(let a of M4){let c=n[a];if(typeof c!=="function")continue;let u=c;e.on(a,s,async(d)=>{let f=performance.now(),h={};for(let[g,{hono:y,catchAll:v}]of o)if(v){let b=d.req.param(y)??"";h[g]=b===""?[]:b.split("/")}else h[g]=d.req.param(y)??"";let p=await u(new xh(d.req.raw),{params:Promise.resolve(h)});return I4(`${a} ${d.req.path}`,`${p.status} ${Math.round(performance.now()-f)}ms`),p})}}var Fh={};Q(Fh,{GET:()=>w5});import{tmpdir as x5}from"node:os";import{Readable as _5}from"node:stream";import{constants as wh}from"node:fs";import{lstat as N4,open as B4}from"node:fs/promises";import{basename as L4,dirname as W4,resolve as Z0}from"node:path";var su=5242880;function Y0(e,t){let n=Z0(e);if(W4(n)!==Z0(t))return null;if(!/^pi-bash-[A-Za-z0-9_-]+\.log$/.test(L4(n)))return null;return n}async function Dh(e){if(!(await N4(e)).isFile())throw Error("Bash output path is not a regular file");let n=typeof wh.O_NOFOLLOW==="number"?wh.O_NOFOLLOW:0,r=await B4(e,wh.O_RDONLY|n);try{let i=await r.stat();if(!i.isFile())throw Error("Bash output path is not a regular file");return{handle:r,fileInfo:i}}catch(i){throw await r.close(),i}}async function J0(e,t=su){let{handle:n,fileInfo:r}=await Dh(e);try{if(r.size>t)return{tooLarge:!0,size:r.size};let i=Buffer.alloc(r.size),o=0;while(o<i.length){let s=await n.read(i,o,i.length-o,o);if(s.bytesRead===0)break;o+=s.bytesRead}return{tooLarge:!1,content:i.subarray(0,o).toString("utf8"),size:o}}finally{await n.close()}}import{open as a2,readFile as e5,readdir as t5}from"node:fs/promises";import{existsSync as n5,readdirSync as r5}from"node:fs";import{join as lu,normalize as Uh}from"node:path";import{getAgentDir as i5,buildContextEntries as o5,buildSessionContext as s5,SessionManager as c2}from"@earendil-works/pi-coding-agent";function j4(e){return typeof e==="object"&&e!==null&&!Array.isArray(e)}function q4(e){if(!j4(e)||e.type!=="toolCall")return null;return{type:"toolCall",toolCallId:typeof e.toolCallId==="string"?e.toolCallId:typeof e.id==="string"?e.id:"",toolName:typeof e.toolName==="string"?e.toolName:typeof e.name==="string"?e.name:"",input:typeof e.input==="object"&&e.input!==null&&!Array.isArray(e.input)?e.input:typeof e.arguments==="object"&&e.arguments!==null&&!Array.isArray(e.arguments)?e.arguments:{}}}function Eh(e){if(e.role!=="assistant")return e;let t=e.content;if(!Array.isArray(t))return e;let n=t.map((r)=>q4(r)??r);return{...e,content:n}}import Q0 from"node:path";function jt(e,t=process.platform){let n=t==="win32"?Q0.win32.normalize(e):Q0.posix.normalize(e);return t==="win32"?n.toLowerCase():n}import{execFile as $4}from"node:child_process";import{existsSync as cu,mkdirSync as H4,realpathSync as G4}from"node:fs";import{basename as z4,dirname as Sh,join as t2,resolve as V4}from"node:path";import{promisify as X4}from"node:util";function $e(e){let t=e.replace(/\\/g,"/");return/^[a-zA-Z]:$/.test(t)?`${t}/`:t}function Th(){if(!globalThis.__piAdditionalAllowedRoots)globalThis.__piAdditionalAllowedRoots=new Set;return globalThis.__piAdditionalAllowedRoots}function yt(e){if(!e)return;let t=$e(e);Th().add(t),globalThis.__piAllowedRootsCache?.roots.add(t)}var K4=X4($4),e2=60000;function Z4(){if(!globalThis.__piProjectCache)globalThis.__piProjectCache=new Map;return globalThis.__piProjectCache}function n2(){globalThis.__piProjectCache?.clear()}async function li(e,t){let{stdout:n}=await K4("git",["-C",e,...t],{timeout:1e4,maxBuffer:1048576,env:{...process.env,LC_ALL:"C"}});return n.trim()}function au(e){let t=e.replace(/\\/g,"/");if(process.platform==="win32")t=t.replace(/^\/([a-zA-Z])\/(?=.)/,(n,r)=>`${r.toUpperCase()}:/`),t=t.toLowerCase();return t}function Y4(e){let t=Sh(e);if(!t.endsWith("-worktrees"))return null;let n=t.slice(0,-10);if(!n||!cu(t2(n,".git")))return null;return{projectRoot:n,branch:z4(e),isWorktree:!0,isTopLevel:!0}}async function uu(e){let t=Z4(),n=t.get(e);if(n&&n.expiresAt>Date.now())return n.info;let r;try{if(!cu(e))return r=Y4(e)??{projectRoot:e,branch:null,isWorktree:!1,isTopLevel:!1},t.set(e,{info:r,expiresAt:Date.now()+e2}),r;let i=await li(e,["rev-parse","--path-format=absolute","--git-common-dir","--git-dir","--show-toplevel","--abbrev-ref","HEAD"]),[o,s,a,c]=i.split(`
259
+ `)}),this}_outputHelpIfRequested(e){let t=this._getHelpOption();if(t&&e.find((r)=>t.is(r)))this.outputHelp(),this._exit(0,"commander.helpDisplayed","(outputHelp)")}}function h0(e){return e.map((t)=>{if(!t.startsWith("--inspect"))return t;let n,r="127.0.0.1",i="9229",o;if((o=t.match(/^(--inspect(-brk)?)$/))!==null)n=o[1];else if((o=t.match(/^(--inspect(-brk|-port)?)=([^:]+)$/))!==null)if(n=o[1],/^\d+$/.test(o[3]))i=o[3];else r=o[3];else if((o=t.match(/^(--inspect(-brk|-port)?)=([^:]+):(\d+)$/))!==null)n=o[1],r=o[3],i=o[4];if(n&&i!=="0")return`${n}=${r}:${parseInt(i)+1}`;return t})}function p0(){if(pe.env.NO_COLOR||pe.env.FORCE_COLOR==="0"||pe.env.FORCE_COLOR==="false")return!1;if(pe.env.FORCE_COLOR||pe.env.CLICOLOR_FORCE!==void 0)return!0;return}var lle=new to;var Os={name:"@rainmanhhh/pi-web",version:"0.15.11",description:"Web UI for the pi coding agent (fork of @agegr/pi-web)",homepage:"https://gitee.com/dsxbygzzl/pi-web#readme",repository:{type:"git",url:"git+https://gitee.com/dsxbygzzl/pi-web.git"},bugs:{url:"https://gitee.com/dsxbygzzl/pi-web/issues"},author:"rainmanhhh",license:"MIT",publishConfig:{access:"public",registry:"https://registry.npmjs.org"},engines:{node:">=24.0.0"},files:["dist","public","extensions","package.json"],bin:{"pi-web":"dist/server.mjs"},scripts:{dev:"vite","dev:lan":"vite --host 0.0.0.0",mb:"bun run --env-file=.env.manual api",mf:"bun run --env-file=.env.manual dev -- --port 3001",api:"bun run server/main.ts","api:node":"bun run build:server && node dist/server.mjs","build:server":'bun build server/main.ts --target node --outfile dist/server.mjs --minify --external "@earendil-works/*" --define "process.env.PI_WEB_PACKAGED=1"',"e2e:stop":"bun run scripts/e2e-stop.mjs",build:"vite build && bun run scripts/prune-fonts.mjs","build:analyze":"vite build --config scripts/analyze-bundle.config.ts && bun run scripts/prune-fonts.mjs",lint:"oxlint --fix",jscpd:"jscpd --config .jscpd.json",check:"tsc --noEmit",format:"biome check --write .",prepublishOnly:"bun run check && bun run build && bun run build:server","test:e2e":"playwright test","test:unit":"vitest run",prepare:"husky || true"},dependencies:{"@codemirror/commands":"^6.11.0","@codemirror/lang-css":"^6.3.1","@codemirror/lang-html":"^6.4.12","@codemirror/lang-javascript":"^6.2.5","@codemirror/lang-json":"^6.0.2","@codemirror/lang-markdown":"^6.5.2","@codemirror/lang-yaml":"^6.1.3","@codemirror/language":"^6.12.4","@codemirror/state":"^6.7.1","@codemirror/theme-one-dark":"^6.1.3","@codemirror/view":"^6.43.9","@earendil-works/pi-agent-core":"0.84.4","@earendil-works/pi-ai":"0.84.4","@earendil-works/pi-coding-agent":"0.84.4","@earendil-works/pi-tui":"0.84.4","@hono/node-server":"^2.1.1","class-variance-authority":"^0.7.1",clsx:"^2.1.1",codemirror:"^6.0.2",hono:"^4.13.5","lucide-react":"^1.37.0","p-defer":"^4.0.1",pointrix:"^1.1.0","proper-lockfile":"4.1.2","radix-ui":"^1.6.7",react:"^19.2.8","react-dom":"^19.2.8",shadcn:"^4.19.0",streamdown:"2.6.0","tailwind-merge":"^3.6.0","tw-animate-css":"^1.4.0",undici:"8.10.0",virtua:"^0.50.6",ws:"^8.21.3"},devDependencies:{"@lobehub/icons":"^5.16.0","@playwright/test":"^1.62.1","@tailwindcss/postcss":"^4.3.3","@testing-library/dom":"^10.4.1","@testing-library/react":"^16.3.3","@types/node":"^25.9.5","@types/ws":"^8.18.1","@types/proper-lockfile":"4.1.4","@types/react":"^19.2.18","@types/react-dom":"^19.2.5","@types/react-resizable":"^4.0.0","@types/react-syntax-highlighter":"^15.5.13","@vitejs/plugin-react":"^6.1.1",biome:"^0.3.3",commander:"^15.0.0",husky:"^9.1.7",jiti:"^2.7.0",jscpd:"^5.1.0",jsdom:"^30.0.1",katex:"^0.18.4","lint-staged":"^17.4.1",mammoth:"^1.12.2",mermaid:"^11.17.2",oxlint:"^1.80.0",postcss:"^8.5.26","react-markdown":"^10.1.0","react-syntax-highlighter":"^16.1.1","rehype-katex":"^7.0.1","rehype-raw":"^7.0.0","rehype-sanitize":"^6.0.0","remark-gfm":"^4.0.1","remark-math":"^6.0.0",tailwindcss:"^4.3.3",typescript:"^7.0.2",vite:"^8.2.2","vite-plugin-remove-console":"^2.2.0","vite-plugin-svgr":"^5.2.0",vitest:"^4.1.11"},type:"module",overrides:{katex:"^0.18.4"}};import{getAgentDir as aI}from"@earendil-works/pi-coding-agent";var g0={port:31415};var rh=(e,t,n)=>(r,i)=>{let o=-1;return s(0);async function s(a){if(a<=o)throw Error("next() called multiple times");o=a;let c,u=!1,d;if(e[a])d=e[a][0][0],r.req.routeIndex=a;else d=a===e.length&&i||void 0;if(d)try{c=await d(r,()=>s(a+1))}catch(f){if(f instanceof Error&&t)r.error=f,c=await t(f,r),u=!0;else throw f}else if(r.finalized===!1&&n)c=await n(r);if(c&&(r.finalized===!1||u))r.res=c;return r}};var m0=Symbol();var y0=(e,t)=>new Response(e,{headers:{"Content-Type":t.replace(/^[^;]+/,(r)=>r.toLowerCase())}}).formData();var b0=32,g4=1e4,Zc=(e)=>("headers"in e),_0=async(e,t=Object.create(null))=>{let{all:n=!1,dot:r=!1}=t,s=(Zc(e)?e.headers:e.raw.headers).get("Content-Type")?.split(";")[0].trim().toLowerCase();if(s==="multipart/form-data"||s==="application/x-www-form-urlencoded")return m4(e,{all:n,dot:r});return{}};async function m4(e,t){if(!Zc(e)&&e.bodyCache.formData)return v0(await e.bodyCache.formData,t);let n=Zc(e)?e.headers:e.raw.headers,r=await e.arrayBuffer(),i=y0(r,n.get("Content-Type")||"");if(!Zc(e))e.bodyCache.formData=i;let o=await i;if(o)return v0(o,t);return{}}function v0(e,t){let n=Object.create(null),r={count:0};if(e.forEach((i,o)=>{if(!(t.all||o.endsWith("[]")))n[o]=i;else y4(n,o,i)}),t.dot)Object.entries(n).forEach(([i,o])=>{if(i.includes("."))b4(n,i,o,r),delete n[i]});return n}var y4=(e,t,n)=>{if(e[t]!==void 0)if(Array.isArray(e[t]))e[t].push(n);else e[t]=[e[t],n];else if(!t.endsWith("[]"))e[t]=n;else e[t]=[n]},b4=(e,t,n,r)=>{if(/(?:^|\.)__proto__\./.test(t))return;let i=e,o=t.split(".",b0+2);if(o.length>b0+1)x0();o.forEach((s,a)=>{if(a===o.length-1)i[s]=n;else{if(!i[s]||typeof i[s]!=="object"||Array.isArray(i[s])||i[s]instanceof File){if(r.count++>=g4)x0();i[s]=Object.create(null)}i=i[s]}})},x0=()=>{throw Error("Nesting limit exceeded")};ui();var U0=class{raw;#e;#t;routeIndex=0;path;bodyCache={};constructor(e,t="/",n=[[]]){this.raw=e,this.path=t,this.#t=n}param(e){return e?this.#n(e):this.#o()}#n(e){let t=this.#t[0][this.routeIndex]?.[1][e],n=this.#i(t);return n&&Qc(n)}#o(){let e={},t=Object.keys(this.#t[0][this.routeIndex]?.[1]??{});for(let n of t){let r=this.#i(this.#t[0][this.routeIndex][1][n]);if(r!==void 0)e[n]=Qc(r)}return e}#i(e){return this.#t[1]?this.#t[1][e]:e}query(e){return C0(this.url,e)}queries(e){return A0(this.url,e)}header(e){if(e)return this.raw.headers.get(e)??void 0;let t=Object.create(null);return this.raw.headers.forEach((n,r)=>{t[r]=n}),t}async parseBody(e){return _0(this,e)}#r=(e)=>{let{bodyCache:t,raw:n}=this,r=t[e];if(r)return r;for(let i in t)return t[i].then((o)=>{if(i==="json")o=JSON.stringify(o);return new Response(o)[e]()});return t[e]=n[e]()};json(){return this.#r("text").then((e)=>JSON.parse(e))}text(){return this.#r("text")}arrayBuffer(){return this.#r("arrayBuffer")}bytes(){return this.#r("arrayBuffer").then((e)=>new Uint8Array(e))}blob(){return this.#r("blob")}formData(){return this.#r("formData")}addValidatedData(e,t){(this.#e??={})[e]=t}valid(e){return this.#e?.[e]}get url(){return this.raw.url}get method(){return this.raw.method}get[m0](){return this.#t}get matchedRoutes(){return this.#t[0].map(([[,e]])=>e)}get routePath(){return this.#t[0].map(([[,e]])=>e)[this.routeIndex].path}};uh();var w4="text/plain; charset=UTF-8",lh=(e,t)=>({"Content-Type":e,...t}),Ps=(e,t)=>new Response(e,t),dh=class{#e;#t;env={};#n;finalized=!1;error;#o;#i;#r;#c;#s;#a;#l;#d;#f;constructor(e,t){if(this.#e=e,t)this.#i=t.executionCtx,this.env=t.env,this.#a=t.notFoundHandler,this.#f=t.path,this.#d=t.matchResult}get req(){return this.#t??=new U0(this.#e,this.#f,this.#d),this.#t}get event(){if(this.#i&&"respondWith"in this.#i)return this.#i;else throw Error("This context has no FetchEvent")}get executionCtx(){if(this.#i)return this.#i;else throw Error("This context has no ExecutionContext")}get res(){return this.#r||=Ps(null,{headers:this.#l??=new Headers})}set res(e){if(this.#r&&e){e=Ps(e.body,e);for(let[t,n]of this.#r.headers.entries()){if(t==="content-type")continue;if(t==="set-cookie"){let r=this.#r.headers.getSetCookie();e.headers.delete("set-cookie");for(let i of r)e.headers.append("set-cookie",i)}else e.headers.set(t,n)}}this.#r=e,this.finalized=!0}render=(...e)=>(this.#s??=(t)=>this.html(t),this.#s(...e));setLayout=(e)=>this.#c=e;getLayout=()=>this.#c;setRenderer=(e)=>{this.#s=e};header=(e,t,n)=>{if(this.finalized)this.#r=Ps(this.#r.body,this.#r);let r=this.#r?this.#r.headers:this.#l??=new Headers;if(t===void 0)r.delete(e);else if(n?.append)r.append(e,t);else r.set(e,t)};status=(e)=>{this.#o=e};set=(e,t)=>{this.#n??=new Map,this.#n.set(e,t)};get=(e)=>this.#n?this.#n.get(e):void 0;get var(){if(!this.#n)return{};return Object.fromEntries(this.#n)}#u(e,t,n){let r=this.#r?new Headers(this.#r.headers):this.#l;if(typeof t==="object"&&t.headers){r??=new Headers;for(let[o,s]of new Headers(t.headers))if(o==="set-cookie")r.append(o,s);else r.set(o,s)}if(n){if(!r){let o=0;for(let s in n)if(++o>1||typeof n[s]!=="string"){r=new Headers;break}}if(r)for(let o in n){let s=n[o];if(typeof s==="string")r.set(o,s);else{r.delete(o);for(let a of s)r.append(o,a)}}}let i=typeof t==="number"?t:t?.status??this.#o;return Ps(e,{status:i,headers:r??n})}newResponse=(...e)=>this.#u(...e);body=(e,t,n)=>this.#u(e,t,n);text=(e,t,n)=>!this.#l&&!this.#o&&!t&&!n&&!this.finalized?new Response(e):this.#u(e,t,lh(w4,n));json=(e,t,n)=>this.#u(JSON.stringify(e),t,lh("application/json",n));html=(e,t,n)=>{let r=(i)=>this.#u(i,t,lh("text/html; charset=UTF-8",n));return typeof e==="object"?ch(e,k0.Stringify,!1,{}).then(r):r(e)};redirect=(e,t)=>{let n=String(e);return this.header("Location",!/[^\x00-\xFF]/.test(n)?n:encodeURI(n)),this.newResponse(null,t??302)};notFound=()=>(this.#a??=()=>Ps(),this.#a(this))};vr();fh();ui();var D4=(e)=>e.text("404 Not Found",404),P0=(e,t)=>{if("getResponse"in e){let n=e.getResponse();return t.newResponse(n.body,n)}return console.error(e),t.text("Internal Server Error",500)},I0=class e{get;post;put;delete;options;patch;query;all;on;use;router;getPath;_basePath="/";#e="/";routes=[];constructor(t={}){[...O0,F0].forEach((o)=>{this[o]=(s,...a)=>{if(typeof s==="string")this.#e=s;else this.#o(o,this.#e,s);return a.forEach((c)=>{this.#o(o,this.#e,c)}),this}}),this.on=(o,s,...a)=>{for(let c of[s].flat()){this.#e=c;for(let u of[o].flat())a.map((d)=>{this.#o(u.toUpperCase(),this.#e,d)})}return this},this.use=(o,...s)=>{if(typeof o==="string")this.#e=o;else this.#e="*",s.unshift(o);return s.forEach((a)=>{this.#o(qe,this.#e,a)}),this};let{strict:r,...i}=t;Object.assign(this,i),this.getPath=r??!0?t.getPath??ah:T0}#t(){let t=new e({router:this.router,getPath:this.getPath});return t.errorHandler=this.errorHandler,t.#n=this.#n,t.routes=this.routes,t}#n=D4;errorHandler=P0;route(t,n){let r=this.basePath(t);return n.routes.map((i)=>{let o;if(n.errorHandler===P0)o=i.handler;else o=async(s,a)=>(await rh([],n.errorHandler)(s,()=>i.handler(s,a))).res,o[Is]=i.handler;r.#o(i.method,i.path,o,i.basePath)}),this}basePath(t){let n=this.#t();return n._basePath=br(this._basePath,t),n}onError=(t)=>(this.errorHandler=t,this);notFound=(t)=>(this.#n=t,this);mount(t,n,r){let i,o;if(r)if(typeof r==="function")o=r;else if(o=r.optionHandler,r.replaceRequest===!1)i=(c)=>c;else i=r.replaceRequest;let s=o?(c)=>{let u=o(c);return Array.isArray(u)?u:[u]}:(c)=>{let u=void 0;try{u=c.executionCtx}catch{}return[c.env,u]};i||=(()=>{let c=br(this._basePath,t),u=c==="/"?0:c.length;return(d)=>{let f=new URL(d.url);return f.pathname=this.getPath(d).slice(u)||"/",new Request(f,d)}})();let a=async(c,u)=>{let d=await n(i(c.req.raw),...s(c));if(d)return d;await u()};return this.#o(qe,br(t,"*"),a),this}#o(t,n,r,i){t=t.toUpperCase(),n=br(this._basePath,n);let o={basePath:i!==void 0?br(this._basePath,i):this._basePath,path:n,method:t,handler:r};this.router.add(t,n,[r,o]),this.routes.push(o)}#i(t,n){if(t instanceof Error)return this.errorHandler(t,n);throw t}#r(t,n,r,i){if(i==="HEAD")return(async()=>new Response(null,await this.#r(t,n,r,"GET")))();let o=this.getPath(t,{env:r}),s=this.router.match(i,o),a=new dh(t,{path:o,matchResult:s,env:r,executionCtx:n,notFoundHandler:this.#n});if(s[0].length===1){let u;try{u=s[0][0][0][0](a,async()=>{a.res=await this.#n(a)})}catch(d){return this.#i(d,a)}return u instanceof Promise?u.then((d)=>d||(a.finalized?a.res:this.#n(a))).catch((d)=>this.#i(d,a)):u??this.#n(a)}let c=rh(s[0],this.errorHandler,this.#n);return(async()=>{try{let u=await c(a);if(!u.finalized)throw Error("Context is not finalized. Did you forget to return a Response object or `await next()`?");return u.res}catch(u){return this.#i(u,a)}})()}fetch=(t,...n)=>this.#r(t,n[1],n[0],t.method);request=(t,n,r,i)=>{if(t instanceof Request)return this.fetch(n?new Request(t,n):t,r,i);return t=t.toString(),this.fetch(new Request(/^https?:\/\//.test(t)?t:`http://localhost${br("/",t)}`,n),r,i)};fire=()=>{addEventListener("fetch",(t)=>{t.respondWith(this.#r(t.request,t,void 0,t.request.method))})}};vr();ui();var Ve=()=>Object.create(null);vr();var nu=[];function hh(e,t){let n=this.buildAllMatchers(),r=(i,o)=>{let s=n[i]||n[qe],a=s[2][o];if(a)return a;let c=o.match(s[0]);if(!c)return[[],nu];let u=c.indexOf("",1);return[s[1][u],c]};return this.match=r,r(e,t)}var no="[^/]+",_r=".*",Gn="(?:|/.*)",xr=Symbol(),M0=new Set(".\\+*[^]$()");function E4(e,t){if(e.length===1)return t.length===1?e<t?-1:1:-1;if(t.length===1)return 1;if(e===_r||e===Gn)return t===Gn?-1:1;else if(t===_r||t===Gn)return-1;if(e===no)return 1;else if(t===no)return-1;return e.length===t.length?e<t?-1:1:t.length-e.length}var N0=class e{#e;#t;#n=Ve();insert(t,n,r,i,o){let s=this;for(let a=0,c=t.length;a<c;a++){let u=t[a],d=u.length===1?u==="*"?a===c-1?["","",_r]:["","",no]:null:u==="/*"?["","",Gn]:u.match(/^\:([^\{\}]+)(?:\{(.+)\})?$/),f;if(d){let h=d[1],p=d[2]||no;if(h&&d[2]){if(p===".*")throw xr;if(p=p.replace(/^\((?!\?:)(?=[^)]+\)$)/,"(?:"),/\((?!\?:)/.test(p))throw xr;if(p.length===1&&M0.has(p))throw xr}if(f=s.#n[p],!f){if(p!==_r&&p!==Gn){for(let g in s.#n)if((p.length>1||g.length>1)&&g!==_r&&g!==Gn)throw xr}f=s.#n[p]=new e}if(h!=="")f.#t??=i.varIndex++,r.push([h,f.#t])}else if(f=s.#n[u],!f){for(let h in s.#n)if(h.length>1&&h!==_r&&h!==Gn)throw xr;f=s.#n[u]=new e}s=f}if(s.#e!==void 0)throw xr;s.#e=o?-1:n}buildRegExpStr(){let n=Object.keys(this.#n).sort(E4).map((r)=>{let i=this.#n[r],o=i.buildRegExpStr();return o===""?"":(typeof i.#t==="number"?`(${r})@${i.#t}`:M0.has(r)?`\\${r}`:r)+o}).filter(Boolean);if(typeof this.#e==="number"&&this.#e!==-1)n.unshift(`#${this.#e}`);if(n.length===0)return"";if(n.length===1)return n[0];return"(?:"+n.join("|")+")"}};var ph=class{#e={varIndex:0};#t=new N0;#n=0;paths=Ve();insert(e,t){if(t){this.#t.insert(e.split(""),0,[],this.#e,!0);return}let n=[],r=[],i=e;for(let s=0;;){let a=!1;if(i=i.replace(/\{[^}]+\}/g,(c)=>{let u=`@\\${s}`;return r[s]=[u,c],s++,a=!0,u}),!a)break}let o=i.match(/(?::[^\/]+)|(?:\/\*$)|./g)||[];for(let s=r.length-1;s>=0;s--){let[a]=r[s];for(let c=o.length-1;c>=0;c--)if(o[c].indexOf(a)!==-1){o[c]=o[c].replace(a,r[s][1]);break}}this.#t.insert(o,this.#n,n,this.#e,!1),this.paths[e]=[this.#n++,n]}buildRegExp(){let e=this.#t.buildRegExpStr();if(e==="")return[/^$/,[],[]];let t=0,n=[],r=[];return e=e.replace(/#(\d+)|@(\d+)|\.\*\$/g,(i,o,s)=>{if(o!==void 0)return n[++t]=Number(o),"$()";if(s!==void 0)return r[Number(s)]=++t,"";return""}),[new RegExp(`^${e}`),n,r]}};var B0=Ve();function L0(e){return B0[e]??=new RegExp(`^${e.replace(/\/:[^/{}]+(?:\{\[\^\/]\+})?(?=[/{]|$)|\/?\*$|([.\\+*[^\]$()?{}|])/g,(t,n)=>n?`\\${n}`:t==="/*"?Gn:t==="*"?_r:`/:${no}`)}$`)}function ru(e,t){for(let n of Object.keys(e).sort((r,i)=>i.length-r.length))if(L0(n).test(t))return[...e[n]];return}var iu=class{name="RegExpRouter";#e;#t;#n;constructor(){this.#e={[qe]:Ve()},this.#t={[qe]:Ve()},this.#n={[qe]:new ph}}#o(e,t){try{this.#n[e].insert(t,!/\*|\/:/.test(t))}catch(n){throw n===xr?new tu(t):n}}add(e,t,n){let r=this.#e,i=this.#t;if(!r)throw Error(eu);if(!r[e]){this.#n[e]=new ph;for(let a of[r,i]){a[e]=Ve();for(let c in a[qe])a[e][c]=[...a[qe][c]],this.#o(e,c)}}if(t==="/*")t="*";let o=e===qe?Object.keys(r):[e];if(/\*$/.test(t)){let a=L0(t);for(let c of o)if(!r[c][t])this.#o(c,t),r[c][t]=ru(r[c],t)||ru(r[qe],t)||[];for(let c of[r,i])for(let u of o)for(let d in c[u])a.test(d)&&c[u][d].push([n,t]);return}let s=Jc(t)||[t];for(let a of s)for(let c of o){if(!i[c][a])this.#o(c,a),i[c][a]=ru(r[c],a)||ru(r[qe],a)||[];i[c][a].push([n,a])}}match=hh;buildAllMatchers(){let e=Ve();for(let t of Object.keys(this.#t))e[t]=this.#i(t);return this.#e=this.#t=this.#n=void 0,B0=Ve(),e}#i(e){let t=this.#e[e],n=this.#t[e],r=this.#n[e],i=Ve(),o=[],[s,a,c]=r.buildRegExp();for(let u of[t,n])for(let d in u){let f=u[d],h=r.paths[d];if(!h){i[d]=[f.map(([p])=>[p,Ve()]),nu];continue}o[h[0]]=f.map(([p,g])=>[p,r.paths[g][1].reduceRight((y,[v],b)=>(y[v]=c[h[1][b][1]],y),Ve())])}return[s,a.map((u)=>o[u]),i]}};vr();vr();var gh=class{name="SmartRouter";#e=[];#t=[];constructor(e){this.#e=e.routers}add(e,t,n){if(!this.#t)throw Error(eu);this.#t.push([e,t,n])}match(e,t){if(!this.#t)throw Error("Fatal error");let n=this.#e,r=this.#t,i=n.length,o=0,s;for(;o<i;o++){let a=n[o];try{for(let c=0,u=r.length;c<u;c++)a.add(...r[c]);s=a.match(e,t)}catch(c){if(c instanceof tu)continue;throw c}this.match=a.match.bind(a),this.#e=[a],this.#t=void 0;break}if(o===i)throw Error("Fatal error");return this.name=`SmartRouter + ${this.activeRouter.name}`,s}get activeRouter(){if(this.#t||this.#e.length!==1)throw Error("No active router has been determined yet.");return this.#e[0]}};ui();vr();ui();var mh=Ve(),T4=0,W0=class e{#e=[];#t=Ve();#n=[];#o;#i=mh;insert(t,n,r){let i=this,o=w0(n),s=new Set,a=0;for(let c of o){let u=o[++a],d=D0(c,u)||(u===void 0&&c&&c.indexOf("*")===c.length-1?c:null),f=Array.isArray(d),h=f?d[0]:d||c,p=i.#t[h]||=new e;if(d&&!p.#o)p.#o=d,i.#n.push(p);if(i=p,f)s.add(d[1])}i.#e.push({[t]:{handler:r,possibleKeys:[...s],score:++T4}})}#r(t,n,r,i,o){for(let s=0,a=n.#e.length;s<a;s++){let c=n.#e[s],u=c[r]||c[qe];if(u){u.params=Ve(),t.push(u);for(let d=0,f=u.possibleKeys.length;d<f;d++){let h=u.possibleKeys[d];u.params[h]=o?.[h]&&!d?o[h]:i[h]??o?.[h]}}}}search(t,n){let r=[];this.#i=mh;let o=[this],s=oh(n),a=[],c=s.length,u=null;for(let d=0;d<c;d++){let f=s[d],h=d===c-1,p=[];for(let y=0,v=o.length;y<v;y++){let b=o[y],_=b.#t[f];if(_)if(_.#i=b.#i,h){if(_.#t["*"])this.#r(r,_.#t["*"],t,b.#i);this.#r(r,_,t,b.#i)}else p.push(_);for(let m of b.#n){let x=m.#o,D=b.#i===mh?{}:{...b.#i};if(typeof x==="string"){if(x==="*"||f.startsWith(x.slice(0,-1))){if(this.#r(r,m,t,b.#i),x==="*")m.#i=D,p.push(m)}continue}let[,A,E]=x;if(!f&&E===!0)continue;if(E!==!0){if(!u){u=[];let N=n[0]==="/"?1:0;for(let F=0;F<c;F++)u[F]=N,N+=s[F].length+1}let U=n.slice(u[d]),C=E.exec(U);if(C){if(D[A]=C[0],this.#r(r,m,t,b.#i,D),C[0].length===U.length&&m.#t["*"])this.#r(r,m.#t["*"],t,b.#i,D);for(let N in m.#t){m.#i=D;let F=C[0].match(/\//g)?.length??0;(a[F]||=[]).push(m);break}continue}}if(E===!0||E.test(f))if(D[A]=f,h){if(this.#r(r,m,t,D,b.#i),m.#t["*"])this.#r(r,m.#t["*"],t,D,b.#i)}else m.#i=D,p.push(m)}}let g=a.shift();o=g?p.concat(g):p}if(r[1])r.sort((d,f)=>d.score-f.score);return[r.map(({handler:d,params:f})=>[d,f])]}};var yh=class{name="TrieRouter";#e=new W0;add(e,t,n){for(let r of Jc(t)||[t])this.#e.insert(e,r,n)}match(e,t){return this.#e.search(e,t)}};var bh=class extends I0{constructor(e={}){super(e);this.router=e.router??new gh({routers:[new iu,new yh]})}};import{getAgentDir as xae}from"@earendil-works/pi-coding-agent";import{isIP as j0}from"node:net";function q0(e){return(e.startsWith("[")&&e.endsWith("]")?e.slice(1,-1):e).toLowerCase().replace(/\.$/,"")}function $0(e){if(!e||/[\s/@\\]/.test(e))return null;try{let t=new URL(`http://${e}`);if(t.username||t.password||t.pathname!=="/"||t.search||t.hash)return null;return q0(t.hostname)}catch{return null}}function S4(e){let t=e?.trim();if(!t)return null;return j0(t)?q0(t):$0(t)}function C4(e){return e==="localhost"||e.endsWith(".localhost")}function H0(){return[process.env.PI_WEB_HOSTNAME,...process.env.PI_WEB_ALLOWED_HOSTS?.split(",")??[]].filter((e)=>Boolean(e?.trim()))}function G0(e){try{return new URL(e).origin}catch{return null}}function A4(e){let t=new URL(e.url),n=e.headers.get("host");return n?G0(`${t.protocol}//${n}`):null}function U4(e){if(e.method!=="GET"||e.headers.get("sec-fetch-mode")!=="navigate"||e.headers.get("sec-fetch-dest")!=="document"||e.headers.get("sec-fetch-user")!=="?1")return!1;try{return/^\/api\/sessions\/[^/]+\/export$/.test(new URL(e.url).pathname)}catch{return!1}}function vh(e,t=H0()){let n=e.headers.get("host"),r=n?$0(n):null;if(!r)return!1;if(C4(r)||j0(r))return!0;return t.some((i)=>S4(i)===r)}function k4(e){let t=e.headers.get("origin");if(e.headers.get("sec-fetch-site")==="cross-site")return!1;if(!t)return!0;let r=A4(e);return r!==null&&G0(t)===r}function R4(e){return e.headers.has("origin")||e.headers.has("sec-fetch-site")}function Et(e,t=H0()){if(!vh(e,t))return!1;if(U4(e))return!0;return!R4(e)||k4(e)}function wr(e){let t=e.headers.get("content-type")?.split(";",1)[0]?.trim().toLowerCase();return t==="application/json"||Boolean(t?.startsWith("application/")&&t.endsWith("+json"))}import{createHash as F4,timingSafeEqual as O4}from"node:crypto";var P4="pi";function z0(e){return F4("sha256").update(e,"utf8").digest()}function V0(e,t){return O4(z0(e),z0(t))}function Ms(e=process.env.PI_WEB_PASSWORD){return typeof e==="string"&&e.length>0}function ou(e,t=process.env.PI_WEB_PASSWORD){if(!Ms(t)||!e)return!1;let n=/^Basic\s+(\S+)$/i.exec(e);if(!n)return!1;let r;try{let u=Buffer.from(n[1],"base64");if(u.toString("base64")!==n[1])return!1;r=new TextDecoder("utf-8",{fatal:!0}).decode(u)}catch{return!1}let i=r.indexOf(":");if(i===-1)return!1;let o=r.slice(0,i),s=r.slice(i+1),a=V0(o,P4),c=V0(s,t);return a&&c}class xh extends Request{nextUrl;constructor(e){let t=e.method!=="GET"&&e.method!=="HEAD";super(e.url,{method:e.method,headers:e.headers,body:t?e.body:void 0,duplex:t?"half":void 0,signal:e.signal});this.nextUrl=new URL(e.url)}}class w extends Response{static json(e,t){let n=new Headers(t?.headers);return n.set("content-type","application/json; charset=utf-8"),new w(JSON.stringify(e),{status:t?.status??200,statusText:t?.statusText,headers:n})}}var _h=!1,X0=performance.now();function K0(e){if(_h=e,X0=performance.now(),_h)Wt("boot","debug log enabled")}function Lt(e){return(t,n)=>Wt(e,t,n)}function Wt(e,t,n){if(!_h)return;let r=performance.now()-X0,i=new Date,o=(a,c=2)=>String(a).padStart(c,"0"),s=`${o(i.getHours())}:${o(i.getMinutes())}:${o(i.getSeconds())}.${o(i.getMilliseconds(),3)}`;console.debug(`[debug][${e}][${s}][+${r.toFixed(1)}ms] ${t}${n?` — ${n}`:""}`)}var I4=Lt("mount"),M4=["GET","POST","PUT","PATCH","DELETE"];function ee(e,t,n){let r=t.split("/").filter(Boolean),i=[],o=new Map;for(let a of r){let c=a.match(/^\[\.\.\.(.+)\]$/),u=a.match(/^\[(.+)\]$/);if(c)i.push(`:${c[1]}{.+}`),o.set(c[1],{hono:c[1],catchAll:!0});else if(u)i.push(`:${u[1]}`),o.set(u[1],{hono:u[1],catchAll:!1});else i.push(a)}let s=`/${i.join("/")}`;for(let a of M4){let c=n[a];if(typeof c!=="function")continue;let u=c;e.on(a,s,async(d)=>{let f=performance.now(),h={};for(let[g,{hono:y,catchAll:v}]of o)if(v){let b=d.req.param(y)??"";h[g]=b===""?[]:b.split("/")}else h[g]=d.req.param(y)??"";let p=await u(new xh(d.req.raw),{params:Promise.resolve(h)});return I4(`${a} ${d.req.path}`,`${p.status} ${Math.round(performance.now()-f)}ms`),p})}}var Fh={};Q(Fh,{GET:()=>w5});import{tmpdir as x5}from"node:os";import{Readable as _5}from"node:stream";import{constants as wh}from"node:fs";import{lstat as N4,open as B4}from"node:fs/promises";import{basename as L4,dirname as W4,resolve as Z0}from"node:path";var su=5242880;function Y0(e,t){let n=Z0(e);if(W4(n)!==Z0(t))return null;if(!/^pi-bash-[A-Za-z0-9_-]+\.log$/.test(L4(n)))return null;return n}async function Dh(e){if(!(await N4(e)).isFile())throw Error("Bash output path is not a regular file");let n=typeof wh.O_NOFOLLOW==="number"?wh.O_NOFOLLOW:0,r=await B4(e,wh.O_RDONLY|n);try{let i=await r.stat();if(!i.isFile())throw Error("Bash output path is not a regular file");return{handle:r,fileInfo:i}}catch(i){throw await r.close(),i}}async function J0(e,t=su){let{handle:n,fileInfo:r}=await Dh(e);try{if(r.size>t)return{tooLarge:!0,size:r.size};let i=Buffer.alloc(r.size),o=0;while(o<i.length){let s=await n.read(i,o,i.length-o,o);if(s.bytesRead===0)break;o+=s.bytesRead}return{tooLarge:!1,content:i.subarray(0,o).toString("utf8"),size:o}}finally{await n.close()}}import{open as a2,readFile as e5,readdir as t5}from"node:fs/promises";import{existsSync as n5,readdirSync as r5}from"node:fs";import{join as lu,normalize as Uh}from"node:path";import{getAgentDir as i5,buildContextEntries as o5,buildSessionContext as s5,SessionManager as c2}from"@earendil-works/pi-coding-agent";function j4(e){return typeof e==="object"&&e!==null&&!Array.isArray(e)}function q4(e){if(!j4(e)||e.type!=="toolCall")return null;return{type:"toolCall",toolCallId:typeof e.toolCallId==="string"?e.toolCallId:typeof e.id==="string"?e.id:"",toolName:typeof e.toolName==="string"?e.toolName:typeof e.name==="string"?e.name:"",input:typeof e.input==="object"&&e.input!==null&&!Array.isArray(e.input)?e.input:typeof e.arguments==="object"&&e.arguments!==null&&!Array.isArray(e.arguments)?e.arguments:{}}}function Eh(e){if(e.role!=="assistant")return e;let t=e.content;if(!Array.isArray(t))return e;let n=t.map((r)=>q4(r)??r);return{...e,content:n}}import Q0 from"node:path";function jt(e,t=process.platform){let n=t==="win32"?Q0.win32.normalize(e):Q0.posix.normalize(e);return t==="win32"?n.toLowerCase():n}import{execFile as $4}from"node:child_process";import{existsSync as cu,mkdirSync as H4,realpathSync as G4}from"node:fs";import{basename as z4,dirname as Sh,join as t2,resolve as V4}from"node:path";import{promisify as X4}from"node:util";function $e(e){let t=e.replace(/\\/g,"/");return/^[a-zA-Z]:$/.test(t)?`${t}/`:t}function Th(){if(!globalThis.__piAdditionalAllowedRoots)globalThis.__piAdditionalAllowedRoots=new Set;return globalThis.__piAdditionalAllowedRoots}function yt(e){if(!e)return;let t=$e(e);Th().add(t),globalThis.__piAllowedRootsCache?.roots.add(t)}var K4=X4($4),e2=60000;function Z4(){if(!globalThis.__piProjectCache)globalThis.__piProjectCache=new Map;return globalThis.__piProjectCache}function n2(){globalThis.__piProjectCache?.clear()}async function li(e,t){let{stdout:n}=await K4("git",["-C",e,...t],{timeout:1e4,maxBuffer:1048576,env:{...process.env,LC_ALL:"C"}});return n.trim()}function au(e){let t=e.replace(/\\/g,"/");if(process.platform==="win32")t=t.replace(/^\/([a-zA-Z])\/(?=.)/,(n,r)=>`${r.toUpperCase()}:/`),t=t.toLowerCase();return t}function Y4(e){let t=Sh(e);if(!t.endsWith("-worktrees"))return null;let n=t.slice(0,-10);if(!n||!cu(t2(n,".git")))return null;return{projectRoot:n,branch:z4(e),isWorktree:!0,isTopLevel:!0}}async function uu(e){let t=Z4(),n=t.get(e);if(n&&n.expiresAt>Date.now())return n.info;let r;try{if(!cu(e))return r=Y4(e)??{projectRoot:e,branch:null,isWorktree:!1,isTopLevel:!1},t.set(e,{info:r,expiresAt:Date.now()+e2}),r;let i=await li(e,["rev-parse","--path-format=absolute","--git-common-dir","--git-dir","--show-toplevel","--abbrev-ref","HEAD"]),[o,s,a,c]=i.split(`
260
260
  `).map((h)=>h.trim()),u=e;try{u=G4(e)}catch{}let d=au(a)===au(u),f=s!==o&&d;r={projectRoot:f?Sh(o):e,branch:c&&c!=="HEAD"?c:null,isWorktree:f,isTopLevel:d}}catch{r={projectRoot:e,branch:null,isWorktree:!1,isTopLevel:!1}}return t.set(e,{info:r,expiresAt:Date.now()+e2}),r}async function J4(e){let t=await li(e,["rev-parse","--path-format=absolute","--git-common-dir"]);return Sh(t)}async function Ch(e){let t=await li(e,["worktree","list","--porcelain"]),n=[],r=null,i=()=>{if(r?.path){if(!r.prunable&&cu(r.path))n.push({path:r.path,branch:r.branch??null,isMain:n.length===0})}r=null};for(let o of t.split(`
261
261
  `))if(o.startsWith("worktree "))i(),r={path:o.slice(9).trim()};else if(o.startsWith("branch ")&&r)r.branch=o.slice(7).trim().replace(/^refs\/heads\//,"");else if(o.startsWith("prunable")&&r)r.prunable=!0;else if(o.trim()==="")i();return i(),n}function Q4(e){return e.replace(/[/\\:*?"<>|\s]+/g,"-").replace(/^-+|-+$/g,"")}async function r2(e,t){let n=t.trim();if(!n)throw Error("Branch name is required");let r=Q4(n);if(!r)throw Error(`Invalid branch name: ${t}`);let i=await J4(e),o=`${V4(i)}-worktrees`,s=t2(o,r);if(cu(s))throw Error(`Directory already exists: ${s}`);H4(o,{recursive:!0});let a=!1;try{await li(i,["rev-parse","--verify","--quiet",`refs/heads/${n}`]),a=!0}catch{a=!1}try{if(a)await li(i,["worktree","add","--",s,n]);else await li(i,["worktree","add","-b",n,"--",s])}catch(c){throw Error(o2(c),{cause:c})}return yt(s),n2(),{path:s,branch:n}}async function i2(e,t,n=!1){let i=(await Ch(e)).find((o)=>au(o.path)===au(t));if(!i)throw Error(`Not a worktree of this repository: ${t}`);if(i.isMain)throw Error("Cannot remove the main worktree");try{await li(e,["worktree","remove",...n?["--force"]:[],t])}catch(o){throw Error(o2(o),{cause:o})}n2()}function o2(e){let t=e.stderr;if(typeof t==="string"&&t.trim())return t.trim();return e instanceof Error?e.message:String(e)}async function a5(e,t){let n=new Map;for(let o of e)n.set(jt(o.path),o.id);let r=[...new Set(e.map((o)=>o.cwd).filter(Boolean))],i=new Map;return await Promise.all(r.map(async(o)=>{i.set(o,await uu(o))})),e.map((o)=>{Dr(o.id,o.path,t);let s=o.cwd?i.get(o.cwd):void 0;return{path:o.path,id:o.id,cwd:o.cwd,name:o.name,created:o.created instanceof Date?o.created.toISOString():String(o.created),modified:o.modified instanceof Date?o.modified.toISOString():String(o.modified),messageCount:o.messageCount,firstMessage:o.firstMessage||"(no messages)",parentSessionId:o.parentSessionPath?n.get(jt(o.parentSessionPath)):void 0,projectRoot:s?.projectRoot??o.cwd,...s?.isWorktree&&s.branch?{worktreeBranch:s.branch}:{}}})}async function c5(){let e=await u2(lu(i5(),"sessions"));for(let t of e)Dr(t.id,t.path);return e}async function u5(e){let t=[],n=async(r)=>{let i;try{i=await t5(r,{withFileTypes:!0})}catch{return}for(let o of i){let s=lu(r,o.name);if(o.isDirectory())await n(s);else if(o.name.endsWith(".jsonl"))t.push(s)}};try{await n(e)}catch{}return t}function l5(e){if(!Array.isArray(e.content))return"";return e.content.filter((t)=>!!t&&typeof t==="object"&&t.type==="text"&&typeof t.text==="string").map((t)=>t.text).join(" ")}async function d5(e){let t=await e5(e,"utf8"),n=[];for(let u of t.split(`
262
262
  `)){let d=u.trim();if(!d)continue;try{let f=JSON.parse(d);if(f&&typeof f==="object")n.push(f)}catch{}}if(n.length===0)throw Error("file contains no session entries");let r=n[0];if(r?.type!=="session"||typeof r.id!=="string")throw Error("missing session header (first line must be a session entry)");let i=new Date(r.timestamp);if(Number.isNaN(i.getTime()))throw Error(`invalid session header timestamp: ${JSON.stringify(r.timestamp)}`);let o=0,s="",a,c;for(let u of n){let d=u;if(d.type==="session_info"){let g=d.name;if(typeof g==="string"&&g.trim())a=g.trim();continue}if(d.type!=="message")continue;o++;let f=d.message;if(!f||f.role!=="user"&&f.role!=="assistant")continue;let h=typeof f.timestamp==="number"?f.timestamp:new Date(d.timestamp).getTime();if(typeof h==="number"&&!Number.isNaN(h))c=Math.max(c??0,h);if(f.role==="user"&&!s){let g=l5(f);if(g)s=g}}return{path:e,id:r.id,cwd:typeof r.cwd==="string"?r.cwd:"",name:a,parentSessionPath:typeof r.parentSession==="string"?r.parentSession:void 0,created:i,modified:typeof c==="number"&&c>0?new Date(c):i,messageCount:o,firstMessage:s||"(no messages)",allMessagesText:""}}function f5(e,t){if(e.error)return t.error?0:1;if(t.error)return-1;return e.modified<t.modified?1:e.modified>t.modified?-1:0}async function h5(e){try{let t=await a2(e,"r");try{let n=Buffer.alloc(8192),{bytesRead:r}=await t.read(n,0,n.length,null),i=n.subarray(0,r).toString("utf8").split(`
@@ -264,7 +264,7 @@ Expecting one of '${n.join("', '")}'`);let r=`${e}Help`;return this.on(r,(i)=>{l
264
264
 
265
265
  ${e.summary}`,timestamp:Ah(e.timestamp)};case"custom_message":return{role:"custom",customType:e.customType,content:e.content,display:e.display,details:e.details,timestamp:Ah(e.timestamp)};default:return null}}var b5=/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i;function m2(e){return!!e&&b5.test(e)}function y2(e,t){return t.some((n)=>n.type==="message"&&n.message.role==="bashExecution"&&n.message.fullOutputPath===e)}async function b2(e,t){if(!m2(t))return!1;try{let n=await We(t);if(!n)return!1;return y2(e,mu(n))}catch{return!1}}async function w5(e,{params:t}){let{id:n}=await t,r=null,i=!1;try{let s=new URL(e.url);r=s.searchParams.get("path"),i=s.searchParams.get("download")==="1"}catch{return w.json({error:"invalid url"},{status:400})}if(!r)return w.json({error:"path required"},{status:400});let o=Y0(r,x5());if(!o)return w.json({error:"invalid path"},{status:400});if(!await b2(o,n))return w.json({error:"forbidden"},{status:403});try{if(i){let{handle:a}=await Dh(o),c=_5.toWeb(a.createReadStream());return new Response(c,{headers:{"Content-Type":"text/plain; charset=utf-8","Content-Disposition":'attachment; filename="bash-output.log"',"Cache-Control":"no-store"}})}let s=await J0(o);if(s.tooLarge)return w.json({error:`Full output is too large to display (limit ${su} bytes)`,data:{size:s.size,maxBytes:su}},{status:413});return w.json({success:!0,data:{output:s.content}})}catch{return w.json({error:"full output unavailable"},{status:404})}}var jh={};Q(jh,{GET:()=>pM,POST:()=>lM,sendWithDeferredModelSwitch:()=>Wh});import{randomUUID as sM}from"node:crypto";import{existsSync as aM}from"node:fs";import{readdirSync as T5}from"node:fs";import{homedir as w2}from"node:os";import bu from"node:path";import{realpathSync as v2}from"node:fs";import Oh from"node:path";var D5=/^[a-zA-Z]:[\\/]/;function x2(e){return D5.test(e)||e.startsWith("\\\\")||e.startsWith("//")}function E5(e,t){for(let n of t){let r=x2(e)||x2(n),i=r?Oh.win32:Oh,o=r?"\\":Oh.sep,s=i.resolve(e),a=i.resolve(n),c=r?s.toLowerCase():s,u=r?a.toLowerCase():a,d=u.endsWith(o)?u:u+o;if(c===u||c.startsWith(d))return!0}return!1}function _2(e,t){let n;try{n=v2(e)}catch{return!1}let r=new Set;for(let i of t)try{r.add(v2(i))}catch{}return E5(n,r)}var S5=5000,C5=/^[a-zA-Z]:[\\/]/;function at(e){return C5.test(e)||e.startsWith("\\\\")||e.startsWith("//")}async function le(){let e=Date.now(),t=globalThis.__piAllowedRootsCache;if(t&&t.expiresAt>e)return t.roots;let n=await ro(),r=new Set;for(let i of n){if(i.cwd)r.add($e(i.cwd));if(i.projectRoot)r.add($e(i.projectRoot))}try{for(let i of T5(w2()))if(/^pi-cwd-\d{8}$/.test(i))r.add($e(bu.join(w2(),i)))}catch{}for(let i of Th())r.add(i);return globalThis.__piAllowedRootsCache={roots:r,expiresAt:e+S5},r}function Xe(e,t){for(let n of t){let r=at(e)||at(n),i=r?bu.win32:bu,o=r?"\\":bu.sep,s=i.resolve(e),a=i.resolve(n),c=r?s.toLowerCase():s,u=r?a.toLowerCase():a,d=u.endsWith(o)?u:u+o;if(c===u||c.startsWith(d))return!0}return!1}function ye(e,t){return _2(e,t)}import{randomUUID as rn}from"node:crypto";import{existsSync as F2,realpathSync as O5,writeFileSync as P5}from"node:fs";import{join as I5,resolve as O2}from"node:path";import{createAgentSessionFromServices as M5,createAgentSessionServices as N5,getAgentDir as P2,initTheme as B5,SessionManager as Ns,SettingsManager as L5,Theme as W5}from"@earendil-works/pi-coding-agent";import{TUI_KEYBINDINGS as j5,KeybindingsManager as q5}from"@earendil-works/pi-tui";var Ph=92;function D2(e,t=92,n=40){let r=Object.freeze({columns:t,rows:n,kittyProtocolActive:!1});return Object.freeze({terminal:r,requestRender:e})}function A5(e){return e>=65&&e<=90||e>=97&&e<=122||e>=48&&e<=57||e===43||e===47}function U5(e){if(!e||e.length%4!==0)return null;let t=e.endsWith("==")?2:e.endsWith("=")?1:0,n=e.length-t;for(let r=0;r<n;r+=1)if(!A5(e.charCodeAt(r)))return null;for(let r=n;r<e.length;r+=1)if(e[r]!=="=")return null;return e.length/4*3-t}function k5(e){if(!e||typeof e!=="object")return!1;let t=e;if(typeof t.data!=="string"||typeof t.mimeType!=="string"||!t.mimeType.startsWith("image/"))return!1;let n=U5(t.data);return n!==null&&n<=10485760}function E2(e){if(e===void 0)return null;if(!Array.isArray(e))return"images must be an array";if(e.length>10)return"A message can include at most 10 images";for(let t of e){if(!t||typeof t!=="object"||t.type!=="image")return"Each attachment must be an image";if(!k5(t))return"Each image must be valid base64 image data of 10MB or smaller"}return null}import{resolveModelScopeWithDiagnostics as R5}from"@earendil-works/pi-coding-agent";function vu(e,t){return e.provider===t.provider&&e.id===t.modelId}async function xu(e,t){let n=(t??[]).map((g)=>g.trim()).filter(Boolean);if(n.length===0)return{visible:await e.getAvailable(),scopedModels:[],thinkingLevelPins:{},warnings:[]};let r=await e.getAvailable(),i=new Set(r.map((g)=>g.provider.toLowerCase())),o=[],s=!1;for(let g of n){let y=g.indexOf("/");if(y===-1){s=!0,o.push(g);continue}let v=g.slice(0,y).trim().toLowerCase();if(!v||/[*?[]/.test(v)){s=!0,o.push(g);continue}if(i.has(v))o.push(g)}if(o.length===0)return{visible:r,scopedModels:[],thinkingLevelPins:{},warnings:[]};let a=new Set;for(let g of o){let y=g.indexOf("/");if(y!==-1)a.add(g.slice(0,y).trim().toLowerCase())}let c=new Set;if(!s){for(let g of r)if(!a.has(g.provider.toLowerCase()))c.add(g.provider)}let u=[...o,...[...c].map((g)=>`${g}/**`)],{scopedModels:d,diagnostics:f}=await R5(u,e),h=f.map((g)=>g.message);if(d.length===0)return{visible:await e.getAvailable(),scopedModels:[],thinkingLevelPins:{},warnings:h};let p={};for(let g of d)if(g.thinkingLevel)p[`${g.model.provider}/${g.model.id}`]=g.thinkingLevel;return{visible:d.map((g)=>g.model),scopedModels:d,thinkingLevelPins:p,warnings:h}}function _u(e,t={}){let{requestedModel:n,defaultModel:r}=t,i=n?e.visible.find((h)=>vu(h,n)):void 0;if(n&&!i)throw Error(`Model is not available in the enabled scope: ${n.provider}/${n.modelId}`);let o=i?e.scopedModels.find((h)=>h.model===i||vu(h.model,{provider:i.provider,modelId:i.id})):void 0,s=!i&&r?e.scopedModels.find((h)=>vu(h.model,r)):void 0,a=!i?s??e.scopedModels[0]:void 0,c=!i&&!a&&r?e.visible.find((h)=>vu(h,r)):void 0,u=i??a?.model??c,d=o??a,f=t.thinkingLevel??d?.thinkingLevel;return{...u?{model:u}:{},...f?{thinkingLevel:f}:{},scopedModels:[...e.scopedModels]}}import{hasTrustRequiringProjectResources as F5,ProjectTrustStore as Mh}from"@earendil-works/pi-coding-agent";function ct(e,t){if(!(Boolean(e)&&F5(e)))return{requiresTrust:!1,trusted:!0};return{requiresTrust:!0,trusted:new Mh(t).get(e)===!0}}function C2(e,t){let n=ct(e,t);if(!n.requiresTrust)return n;return new Mh(t).set(e,!0),{requiresTrust:!0,trusted:!0}}function io(e,t){if(!ct(e,t).requiresTrust)return;let r=new Mh(t);return{resolveProjectTrust:async()=>r.get(e)===!0}}async function A2(e,t,n){if(!t.model&&!t.thinkingLevel)return{modelDefaultChanged:!1};let r=!1;if(t.model&&n.model&&t.model.provider===n.model.provider&&t.model.modelId===n.model.modelId)e.setDefaultModelAndProvider(n.model.provider,n.model.modelId),r=!0;if(t.thinkingLevel&&(n.supportsThinking||n.thinkingLevel!=="off"))e.setDefaultThinkingLevel(n.thinkingLevel);return await e.flush(),{modelDefaultChanged:r}}var $5=1000;class Bs extends Error{}function H5(e){return e instanceof Bs||e instanceof Error&&/cannot be queued|while a shell command is running/.test(e.message)}var G5=new Set(["agent_start","agent_end","agent_settled","message_update","tool_execution_start","tool_execution_end","auto_compaction_start","auto_compaction_end","compaction_start","compaction_end","auto_retry_start","auto_retry_end"]),z5=new Set(["agent_end","agent_settled","auto_compaction_end","compaction_end"]),U2=600000,V5=["read","bash","edit","write","grep","find","ls"];class I2 extends W5{constructor(){super({thinkingXhigh:"",text:""},{selectedBg:""},"truecolor")}fg(...[,e]){return e}bg(...[,e]){return e}bold(e){return e}italic(e){return e}underline(e){return e}inverse(e){return e}strikethrough(e){return e}getFgAnsi(){return""}getBgAnsi(){return""}getThinkingBorderColor(){return(e)=>e}getBashModeBorderColor(){return(e)=>e}}var k2=new I2,X5=new q5(j5);function M2(e,t){if(t.length===0)return[];let n=new Set(V5),r=e.getAllTools().map((i)=>i.name).filter((i)=>!n.has(i));return[...new Set([...t,...r])]}class N2{inner;listeners=[];pendingUiResponses=new Map;pendingUiRequests=new Map;activeCustomUis=new Map;extensionStatuses=new Map;extensionWidgets=new Map;promptRunning=!1;phase=null;phaseStartedAt=null;busyStartedAt=null;runningToolNames=new Map;lastPromptActivityAt=0;extensionsBound=!1;extensionBindingPromise=null;extensionBindingError=null;forceEmptySystemPrompt=!1;unsubscribe=null;idleTimer=null;onDestroyCallback=null;bufferedEvents=[];_alive=!0;constructor(e){this.inner=e}get sessionId(){return this.inner.sessionId}get sessionFile(){return this.inner.sessionFile??""}get cwd(){return this.inner.sessionManager.getCwd()}hasMessages(){return this.inner.sessionManager.getBranch().some((e)=>e.type==="message")}isAlive(){return this._alive}isRunning(){return this._alive&&(this.promptRunning||this.inner.isStreaming||this.inner.isCompacting||this.inner.isBashRunning)}start(){this.unsubscribe=this.inner.subscribe((e)=>{if(e.type==="agent_end")st();if(z5.has(e.type))this.resetIdleTimer();if(this.lastPromptActivityAt=Date.now(),this.updatePhaseFromEvent(e),this.emit(e),G5.has(e.type))bn()}),this.resetIdleTimer(),bn()}getPhase(){return this.phase}getPhaseStartedAt(){return this.phaseStartedAt}getBusyStartedAt(){return this.busyStartedAt}setPhase(e){if(this.phase=e,!e){this.phaseStartedAt=null;return}let t=this.phaseStartedAt??Date.now();this.phaseStartedAt=this.busyStartedAt!==null?Math.max(t,this.busyStartedAt):t}updatePhaseFromEvent(e){switch(e.type){case"agent_start":this.setPhase({kind:"waiting_model"});break;case"agent_end":this.setPhase(null);break;case"message_update":{let t=e.assistantMessageEvent;this.setPhase(t?.type?.startsWith("thinking")?{kind:"thinking"}:null);break}case"auto_retry_start":{let t=e;this.setPhase({kind:"retrying",attempt:t.attempt??1,maxAttempts:t.maxAttempts??1,errorMessage:t.errorMessage});break}case"auto_retry_end":this.setPhase(null);break;case"tool_execution_start":{let t=e.toolCallId;if(t)this.runningToolNames.set(t,e.toolName??t);this.syncRunningToolsPhase();break}case"tool_execution_end":{let t=e.toolCallId;if(t)this.runningToolNames.delete(t);this.syncRunningToolsPhase();break}}}syncRunningToolsPhase(){this.setPhase(this.runningToolNames.size>0?{kind:"running_tools",tools:[...this.runningToolNames.entries()].map(([e,t])=>({id:e,name:t}))}:{kind:"waiting_model"})}setForceEmptySystemPrompt(e){this.forceEmptySystemPrompt=e,this.applyForcedEmptySystemPrompt()}beginExtensionBinding(e={}){this.ensureExtensionsBound(e).catch((t)=>{console.error("[pi-web] failed to dispatch session_start to extensions:",t instanceof Error?t.message:t)})}async waitUntilReady(){await this.waitForExtensionsBound()}ensureExtensionsBound(e={}){if(e.forceEmptySystemPrompt)this.forceEmptySystemPrompt=!0;if(this.extensionsBound)return this.applyForcedEmptySystemPrompt(),Promise.resolve();if(this.extensionBindingPromise)return this.extensionBindingPromise;return this.extensionBindingError=null,this.extensionBindingPromise=(async()=>{if(!this._alive)return;let t=this.createExtensionUiContext();if(typeof this.inner.bindExtensions==="function")await this.inner.bindExtensions.call(this.inner,{uiContext:t,mode:"rpc",commandContextActions:this.createExtensionCommandContextActions(),shutdownHandler:()=>this.emit({type:"extension_ui_request",id:rn(),method:"notify",notifyType:"warning",message:"Extension requested shutdown, but shutdown is not supported in Pi Web."}),onError:(r)=>this.emit({type:"extension_error",extensionPath:r.extensionPath,event:r.event,error:r.error})});else this.inner.extensionRunner.setUIContext?.(t,"rpc");this.extensionsBound=!0,this.applyForcedEmptySystemPrompt(),console.log(`[pi-web] session_start dispatched to extensions for session ${this.inner.sessionId}`)})().catch((t)=>{throw this.extensionBindingError=t,t}),this.extensionBindingPromise}async waitForExtensionsBound(){try{if(this.extensionBindingPromise)await this.extensionBindingPromise}catch(e){throw e instanceof Error?e:Error(String(e))}if(this.extensionBindingError)throw this.extensionBindingError instanceof Error?this.extensionBindingError:Error(String(this.extensionBindingError))}shouldWaitForExtensions(e){return e==="prompt"||e==="steer"||e==="follow_up"||e==="get_commands"}async withFinalRunningNotification(e){try{return await e()}finally{this.resetIdleTimer(),bn()}}applyForcedEmptySystemPrompt(){if(this.forceEmptySystemPrompt&&this.inner.agent.state)this.inner.agent.state.systemPrompt=""}emit(e){if(Y5(this.sessionId,e),this.listeners.length===0){if(this.bufferedEvents.push(e),this.bufferedEvents.length>$5)this.bufferedEvents.shift();return}for(let t of this.listeners)t(e)}resetIdleTimer(){if(this.idleTimer)clearTimeout(this.idleTimer);this.idleTimer=setTimeout(()=>{if(this.isRunning()){if(this.promptRunning&&Date.now()-this.lastPromptActivityAt>=U2){this.settleStalledRun();return}this.resetIdleTimer();return}this.destroy()},U2)}settleStalledRun(){this.promptRunning=!1,this.emit({type:"prompt_error",errorMessage:"Agent run stalled (no activity for 10 minutes) — reset to idle. "+"If this keeps happening, restart the pi-web server."}),this.emit({type:"prompt_done"}),this.resetIdleTimer(),bn()}persistBashOnlySession(){let e=this.inner.sessionManager,t=e.getSessionFile();if(!t||F2(t))return;let n=e.getHeader();if(!n)return;let r=`${[n,...e.getEntries()].map((i)=>JSON.stringify(i)).join(`
266
266
  `)}
267
- `;P5(t,r,{encoding:"utf8",flag:"wx"}),e.flushed=!0,Dr(this.inner.sessionId,t)}onEvent(e){let t=this.bufferedEvents;this.bufferedEvents=[];for(let n of t)e(n);this.listeners.push(e);for(let n of this.pendingUiRequests.values())e(n);for(let n of this.extensionWidgets.values())e({type:"extension_ui_request",id:rn(),method:"setWidget",widgetKey:n.key,widgetLines:n.lines,widgetPlacement:n.placement});for(let[n,r]of this.extensionStatuses)e({type:"extension_ui_request",id:rn(),method:"setStatus",statusKey:n,statusText:r});return()=>{let n=this.listeners.indexOf(e);if(n!==-1)this.listeners.splice(n,1)}}onDestroy(e){this.onDestroyCallback=e}async send(e){this.resetIdleTimer();let t=e.type;if(this.shouldWaitForExtensions(t))await this.waitForExtensionsBound();if(t==="prompt"||t==="steer"||t==="follow_up"){let n=E2(e.images);if(n)throw Error(n)}switch(t){case"prompt":{if(this.inner.isBashRunning)throw Error("Cannot send a prompt while a shell command is running");let{images:n,streamingBehavior:r}=e;if(Wt("ui-chain","2a sdk prompt",`${JSON.stringify(String(e.message).slice(0,80))} streamingBehavior=${r??"-"}`),this.promptRunning=!0,this.busyStartedAt===null||!r)this.busyStartedAt=Date.now();return this.setPhase({kind:"waiting_model"}),this.lastPromptActivityAt=Date.now(),bn(),this.inner.prompt(e.message,{...n?.length?{images:n}:{},...r?{streamingBehavior:r}:{},source:"rpc"}).then(()=>{if(Wt("ui-chain","2c prompt done"),this.promptRunning=!1,this.resetIdleTimer(),!r)this.emit({type:"prompt_done"});bn()}).catch((i)=>{if(Wt("ui-chain","2c prompt error",i instanceof Error?i.message:String(i)),this.promptRunning=!1,this.resetIdleTimer(),st(),this.emit({type:"prompt_error",errorMessage:i instanceof Error?i.message:String(i)}),!r)this.emit({type:"prompt_done"});bn()}),null}case"abort":return await this.withFinalRunningNotification(()=>this.inner.abort()),null;case"get_state":{let n=this.inner.model,r=this.inner.getContextUsage();return{sessionId:this.inner.sessionId,sessionFile:this.inner.sessionFile??"",isStreaming:this.inner.isStreaming,isPromptRunning:this.promptRunning,isBashRunning:this.inner.isBashRunning,isCompacting:this.inner.isCompacting,autoCompactionEnabled:this.inner.autoCompactionEnabled,autoRetryEnabled:this.inner.autoRetryEnabled,model:n?{id:n.id,provider:n.provider}:void 0,messageCount:0,pendingMessageCount:this.inner.pendingMessageCount,queuedMessages:{steering:[...this.inner.getSteeringMessages()],followUp:[...this.inner.getFollowUpMessages()]},contextUsage:r?{percent:r.percent,contextWindow:r.contextWindow,tokens:r.tokens}:null,systemPrompt:this.inner.agent.state?.systemPrompt??"",thinkingLevel:this.inner.agent.state?.thinkingLevel??"off",extensionStatuses:this.getExtensionStatuses(),extensionWidgets:this.getExtensionWidgets()}}case"set_model":{let{provider:n,modelId:r}=e,i=this.inner.modelRuntime.getModel(n,r);if(!i)await this.inner.modelRuntime.refresh({allowNetwork:!1}),i=this.inner.modelRuntime.getModel(n,r);if(!i)throw Error(`Model not found: ${n}/${r}`);return await this.inner.setModel(i),ke(),st(),{id:i.id,provider:i.provider}}case"fork":{if(this.inner.isBashRunning)throw Error("Cannot fork while a shell command is running");let n=e.entryId,r=this.inner.sessionManager,i=this.inner.sessionFile;if(!r.isPersisted())return{cancelled:!0};if(!i)throw Error("Persisted session is missing a session file");let o=r.getEntry(n);if(!o)throw Error("Invalid entry ID for forking");let s=r.getSessionDir(),a;if(!o.parentId){let u=Ns.create(r.getCwd(),s);u.newSession({parentSession:i}),a=u.getSessionFile()}else{let d=Ns.open(i,s).createBranchedSession(o.parentId);if(!d)throw Error("Failed to create forked session");a=d}let c=Ns.open(a,s).getSessionId();return Dr(c,a),st(),this.destroy(),{cancelled:!1,newSessionId:c}}case"navigate_tree":{if(this.inner.isBashRunning)throw Error("Cannot navigate while a shell command is running");return{cancelled:(await this.inner.navigateTree(e.targetId,{})).cancelled}}case"set_thinking_level":{let n=e.level;if(this.inner.setThinkingLevel(n),n==="xhigh"&&this.inner.model?.compat?.thinkingFormat==="deepseek"&&this.inner.agent?.state)this.inner.agent.state.thinkingLevel="xhigh";return st(),null}case"compact":try{return await this.withFinalRunningNotification(()=>this.inner.compact(e.customInstructions))}finally{st()}case"set_session_name":{let n=e.name?.trim();if(!n)throw Error("Session name cannot be empty");return this.inner.setSessionName(n),st(),null}case"get_session_stats":return{...this.inner.getSessionStats(),sessionName:this.inner.sessionManager.getSessionName()};case"get_last_assistant_text":return{text:this.inner.getLastAssistantText()??""};case"set_auto_compaction":return this.inner.setAutoCompactionEnabled(e.enabled),null;case"clear_queue":return this.inner.clearQueue();case"steer":{let n=e.images;try{await this.inner.steer(e.message,n?.length?n:void 0)}catch(r){if(H5(r))throw new Bs(r instanceof Error?r.message:String(r));throw r}return null}case"follow_up":{let n=e.images;return await this.inner.followUp(e.message,n?.length?n:void 0),null}case"get_tools":{let n=this.inner.getAllTools(),r=new Set(this.inner.getActiveToolNames());return n.map((i)=>({name:i.name,description:i.description,active:r.has(i.name)}))}case"get_commands":{let n=[];for(let r of this.inner.extensionRunner.getRegisteredCommands())n.push({name:r.invocationName,description:r.description,source:"extension",sourceInfo:r.sourceInfo});for(let r of this.inner.promptTemplates)n.push({name:r.name,description:r.description,source:"prompt",sourceInfo:r.sourceInfo});for(let r of this.inner.resourceLoader.getSkills().skills)n.push({name:`skill:${r.name}`,description:r.description,source:"skill",sourceInfo:r.sourceInfo});return{commands:n}}case"set_tools":{let n=e.toolNames;return this.setForceEmptySystemPrompt(n.length===0),this.inner.setActiveToolsByName(M2(this.inner,n)),this.applyForcedEmptySystemPrompt(),null}case"reload":{if(await this.waitForExtensionsBound(),this.extensionStatuses.clear(),this.extensionWidgets.clear(),this.syncProjectTrust(),await this.inner.reload(),typeof this.inner.bindExtensions!=="function")this.inner.extensionRunner.setUIContext?.(this.createExtensionUiContext(),"rpc");return this.applyForcedEmptySystemPrompt(),ke(),{success:!0}}case"abort_compaction":return this.inner.abortCompaction(),null;case"extension_ui_response":return this.resolveExtensionUiResponse(e),null;case"extension_ui_input":return this.handleExtensionUiInput(e.id,e.data),null;case"set_auto_retry":return this.inner.setAutoRetryEnabled(e.enabled),null;case"bash":{if(this.promptRunning||this.inner.isStreaming||this.inner.isCompacting||this.inner.isBashRunning)throw Error("Cannot run a shell command while the session is busy");let n=this.inner.executeBash(e.command,void 0,{excludeFromContext:e.excludeFromContext});this.busyStartedAt=Date.now(),this.setPhase({kind:"running_command"}),bn();try{let r=await n;return this.persistBashOnlySession(),r}finally{this.resetIdleTimer(),st(),this.emit({type:"prompt_done"}),this.setPhase(null),bn()}}case"abort_bash":return this.inner.abortBash(),null;default:throw Error(`Unsupported command: ${t}`)}}destroy(){if(!this._alive)return;if(this._alive=!1,this.idleTimer)clearTimeout(this.idleTimer);if(this.inner.isBashRunning)this.inner.abortBash();this.unsubscribe?.(),this.cancelPendingUiResponses();for(let e of Array.from(this.activeCustomUis.keys()))this.closeCustomUi(e,void 0);this.pendingUiResponses.clear(),this.pendingUiRequests.clear(),this.onDestroyCallback?.(),bn()}cancelPendingUiResponses(){for(let e of this.pendingUiResponses.values())e.cancel();this.pendingUiResponses.clear(),this.pendingUiRequests.clear()}getPendingUiRequests(){return Array.from(this.pendingUiRequests.values())}resolveExtensionUiResponse(e){let t=this.pendingUiResponses.get(e.id);if(!t)return;t.resolve(e)}getExtensionStatuses(){return Array.from(this.extensionStatuses,([e,t])=>({key:e,text:t}))}getExtensionWidgets(){return Array.from(this.extensionWidgets.values())}getCustomUiWidth(e){if(!e||typeof e!=="object")return Ph;let t=e.overlayOptions,n=typeof t==="function"?t():t;if(!n||typeof n!=="object")return Ph;let r=n.width;return typeof r==="number"&&Number.isFinite(r)?Math.max(40,Math.min(140,Math.round(r))):92}emitCustomUiRender(e,t){let n;try{n=t.component.render(t.width)}catch(i){n=[`Extension custom UI render failed: ${i instanceof Error?i.message:String(i)}`]}let r={type:"extension_ui_request",id:e,method:"custom",lines:n};this.pendingUiRequests.set(e,r),this.emit(r)}closeCustomUi(e,t){let n=this.activeCustomUis.get(e);if(!n||n.settled)return;n.settled=!0,this.activeCustomUis.delete(e),this.pendingUiRequests.delete(e);try{n.component.dispose?.()}catch{}this.emit({type:"extension_ui_request",id:e,method:"custom",lines:[],closed:!0}),n.resolve(t)}handleExtensionUiInput(e,t){let n=this.activeCustomUis.get(e);if(!n||typeof t!=="string")return;try{if(n.component.handleInput?.(t),this.activeCustomUis.has(e))this.emitCustomUiRender(e,n)}catch(r){this.closeCustomUi(e,void 0),this.emit({type:"extension_error",extensionPath:`custom-ui:${e}`,event:"custom_ui_input",error:r instanceof Error?r.message:String(r)})}}requestExtensionCustomUi(e,t){if(typeof e!=="function")return Promise.resolve(void 0);let n=rn(),r=this.getCustomUiWidth(t);return new Promise((i)=>{let o=!1,s=D2(()=>{let u=this.activeCustomUis.get(n);if(u)this.emitCustomUiRender(n,u)},r),a=(u)=>{if(o)return;o=!0,i(u)},c=(u)=>{if(this.activeCustomUis.has(n))this.closeCustomUi(n,u);else a(u)};Promise.resolve().then(()=>e(s,k2,X5,c)).then((u)=>{if(o){try{u?.dispose?.()}catch{}return}if(!u||typeof u!=="object"||typeof u.render!=="function"){a(void 0);return}let d={component:u,width:r,resolve:(f)=>a(f),settled:!1};this.activeCustomUis.set(n,d),this.emitCustomUiRender(n,d)}).catch((u)=>{if(o)return;this.emit({type:"extension_error",extensionPath:`custom-ui:${n}`,event:"custom_ui",error:u instanceof Error?u.message:String(u)}),a(void 0)})})}requestExtensionUi(e,t,n,r,i){if(i?.aborted)return Promise.resolve(t);let o=rn(),s={type:"extension_ui_request",id:o,...e,...r?{timeout:r,expiresAt:Date.now()+r}:{}};return new Promise((a)=>{let c,u=()=>{if(c)clearTimeout(c);i?.removeEventListener("abort",f),this.pendingUiRequests.delete(o),this.pendingUiResponses.delete(o)},d=(h)=>{u(),a(h)},f=()=>d(t);if(r)c=setTimeout(()=>d(t),r);i?.addEventListener("abort",f,{once:!0}),Wt("ui-chain",`2b ctx.ui.${String(e.method)}`,`id=${o.slice(0,8)} title=${JSON.stringify(e.title??null)} timeout=${r??"-"}`),this.pendingUiRequests.set(o,s),this.pendingUiResponses.set(o,{resolve:(h)=>d(n(h)),cancel:()=>d(t)}),this.emit(s)})}createExtensionUiContext(){return{select:(e,t,n)=>this.requestExtensionUi({method:"select",title:e,options:t,...n?.timeout?{timeout:n.timeout}:{}},void 0,(r)=>("value"in r)?r.value:void 0,n?.timeout,n?.signal),confirm:(e,t,n)=>this.requestExtensionUi({method:"confirm",title:e,message:t,...n?.timeout?{timeout:n.timeout}:{}},!1,(r)=>("confirmed"in r)?r.confirmed:!1,n?.timeout,n?.signal),input:(e,t,n)=>this.requestExtensionUi({method:"input",title:e,...t!==void 0?{placeholder:t}:{},...n?.timeout?{timeout:n.timeout}:{}},void 0,(r)=>("value"in r)?r.value:void 0,n?.timeout,n?.signal),editor:(e,t,n)=>this.requestExtensionUi({method:"editor",title:e,...t!==void 0?{prefill:t}:{},...n?.timeout?{timeout:n.timeout}:{}},void 0,(r)=>("value"in r)?r.value:void 0,n?.timeout,n?.signal),notify:(e,t)=>{this.emit({type:"extension_ui_request",id:rn(),method:"notify",message:e,notifyType:t})},onTerminalInput:()=>()=>{},setStatus:(e,t)=>{if(t===void 0)this.extensionStatuses.delete(e);else this.extensionStatuses.set(e,t);this.emit({type:"extension_ui_request",id:rn(),method:"setStatus",statusKey:e,statusText:t})},setWorkingMessage:()=>{},setWorkingVisible:()=>{},setWorkingIndicator:()=>{},setHiddenThinkingLabel:()=>{},setWidget:(e,t,n)=>{if(t!==void 0&&!Array.isArray(t))return;if(t===void 0)this.extensionWidgets.delete(e);else this.extensionWidgets.set(e,{key:e,lines:t,placement:n?.placement??"aboveEditor"});this.emit({type:"extension_ui_request",id:rn(),method:"setWidget",widgetKey:e,widgetLines:t,widgetPlacement:n?.placement})},setFooter:()=>{},setHeader:()=>{},setTitle:(e)=>{this.emit({type:"extension_ui_request",id:rn(),method:"setTitle",title:e})},custom:(e,t)=>this.requestExtensionCustomUi(e,t),pasteToEditor:(e)=>{this.emit({type:"extension_ui_request",id:rn(),method:"set_editor_text",text:e})},setEditorText:(e)=>{this.emit({type:"extension_ui_request",id:rn(),method:"set_editor_text",text:e})},getEditorText:()=>"",addAutocompleteProvider:()=>{},setEditorComponent:()=>{},getEditorComponent:()=>{return},get theme(){return k2},getAllThemes:()=>[],getTheme:()=>{return},setTheme:()=>({success:!1,error:"Theme switching is not supported in Pi Web extension UI yet"}),getToolsExpanded:()=>!1,setToolsExpanded:()=>{}}}createExtensionCommandContextActions(){return{waitForIdle:async()=>{await this.inner.agent.waitForIdle?.()},newSession:async()=>({cancelled:!0}),fork:async()=>({cancelled:!0}),navigateTree:async(e,t)=>({cancelled:(await this.inner.navigateTree(e,{summarize:t?.summarize})).cancelled}),switchSession:async()=>({cancelled:!0}),reload:async()=>{this.extensionStatuses.clear(),this.extensionWidgets.clear(),this.syncProjectTrust(),await this.inner.reload({beforeSessionStart:()=>{this.inner.extensionRunner.setUIContext?.(this.createExtensionUiContext(),"rpc")}}),this.applyForcedEmptySystemPrompt()}}}syncProjectTrust(){let e=ct(this.cwd,P2());this.inner.settingsManager.setProjectTrusted(e.trusted)}}function Tr(){if(!globalThis.__piSessions){globalThis.__piSessions=new Map;let e=()=>globalThis.__piSessions?.forEach((t)=>t.destroy());process.once("exit",e),process.once("SIGINT",e),process.once("SIGTERM",e)}return globalThis.__piSessions}function K5(){if(!globalThis.__piStartLocks)globalThis.__piStartLocks=new Map;return globalThis.__piStartLocks}function on(e){let t=O2(e);try{return O5(t)}catch{return t}}function B2(){if(!globalThis.__piStartingSessionCwds)globalThis.__piStartingSessionCwds=new Map;return globalThis.__piStartingSessionCwds}function Z5(e){let t=B2(),n=on(e);return t.set(n,(t.get(n)??0)+1),()=>{let r=(t.get(n)??1)-1;if(r>0)t.set(n,r);else t.delete(n)}}function bt(e){return Tr().get(e)}function L2(e){let t=on(e);for(let[n,r]of Tr()){if(!r.isAlive())continue;if(on(r.cwd)!==t)continue;if(r.hasMessages())continue;return n}return}function W2(e){let t=on(e);if(B2().has(t))return!0;return Array.from(Tr().values()).some((n)=>on(n.cwd)===t&&n.isRunning())}function j2(){let e=new Set,t=[];for(let n of Tr().values()){let r=on(n.cwd);if(e.has(r))continue;e.add(r),t.push(r)}return t}function q2(e){let t=on(e),n=Array.from(Tr().values()).filter((r)=>on(r.cwd)===t);for(let r of n)r.destroy();return n.length}function $2(){let e=new Set;for(let[t,n]of Tr())if(n.isRunning())e.add(n.sessionId||t);return[...e]}function Ls(){let e=[],t={},n={},r={};for(let[i,o]of Tr())if(o.isRunning()){let s=o.sessionId||i;e.push(s);let a=o.getPhase();if(a){t[s]=a;let u=o.getPhaseStartedAt();if(u!==null)n[s]=u}let c=o.getBusyStartedAt();if(c!==null)r[s]=c}return{runningSessionIds:e,phases:t,phaseSince:n,busySince:r}}function H2(){if(!globalThis.__piRunningListeners)globalThis.__piRunningListeners=new Set;return globalThis.__piRunningListeners}function G2(e){let t=H2();return t.add(e),()=>{t.delete(e)}}var Nh="";function bn(){let e=H2();if(e.size===0){Nh="";return}let t=Ls(),n=JSON.stringify(t);if(n===Nh)return;Nh=n;for(let r of e)try{r(t)}catch{}}function z2(){if(!globalThis.__piAgentEventListeners)globalThis.__piAgentEventListeners=new Set;return globalThis.__piAgentEventListeners}function V2(e){let t=z2();return t.add(e),()=>{t.delete(e)}}function Y5(e,t){for(let n of z2())try{n(e,t)}catch{}}var J5="@rainmanhhh/pi-web",R2=!1;function Q5(){return O2(import.meta.dirname,"..")}function eM(e,t){return(e??[]).some((n)=>{let r=typeof n==="string"?n:n.source;return r===t||r.includes(J5)})}async function tM(e,t){if(R2)return;if(R2=!0,pu())return;let n=Q5();if(!F2(I5(n,"extensions")))return;let r=L5.create(e,t),i=r.getGlobalSettings().packages;if(eM(i,n))return;r.setPackages([...i??[],n]),console.log(`[pi-web] self-registered as pi package: ${n}`)}async function fi(e,t,n,r={}){let{toolNames:i,initialModel:o,thinkingLevel:s}=r,a=Tr(),c=K5(),u=a.get(e);if(u?.isAlive())return{session:u,realSessionId:e};let d=c.get(e);if(d)return d;let f;if(t)f=Ns.open(t,void 0);else{if(!n)throw Error("cwd is required for a new session");f=Ns.create(n,void 0)}let h=f.getCwd(),p=Z5(h),g=(async()=>{B5();let y=P2();await tM(h,y);let v;if(i!==void 0)v=i.length===0?[]:void 0;let b=io(h,y),_=r.fixtureExtensionPaths??d2(e),m=await N5({cwd:h,agentDir:y,...b?{resourceLoaderReloadOptions:b}:{},..._.length>0?{resourceLoaderOptions:{additionalExtensionPaths:_}}:{}}),x=await xu(m.modelRuntime,m.settingsManager.getEnabledModels()),D=m.settingsManager.getDefaultProvider(),A=m.settingsManager.getDefaultModel(),U=f.getBranch().some((j)=>j.type==="message")?{scopedModels:[...x.scopedModels]}:_u(x,{...o?{requestedModel:o}:{},...D&&A?{defaultModel:{provider:D,modelId:A}}:{},...s?{thinkingLevel:s}:{}}),{session:C}=await M5({services:m,sessionManager:f,...U.model?{model:U.model}:{},...U.thinkingLevel?{thinkingLevel:U.thinkingLevel}:{},...U.scopedModels.length>0?{scopedModels:U.scopedModels}:{},...v!==void 0?{tools:v}:{}});if((await A2(m.settingsManager,{...o?{model:o}:{},...s?{thinkingLevel:s}:{}},{...C.model?{model:{provider:C.model.provider,modelId:C.model.id}}:{},thinkingLevel:C.thinkingLevel,supportsThinking:C.supportsThinking()})).modelDefaultChanged)ke();if(i&&i.length>0)C.setActiveToolsByName(M2(C,i));let F=new N2(C);if(i?.length===0)F.setForceEmptySystemPrompt(!0);F.start();let{sessionId:S,sessionFile:B}=C;if(B)Dr(S,B);return F.onDestroy(()=>a.delete(S)),a.set(S,F),F.beginExtensionBinding({forceEmptySystemPrompt:i?.length===0}),{session:F,realSessionId:S}})().finally(()=>{c.delete(e),p()});return c.set(e,g),g}import{resolve as nM}from"node:path";var rM="piE2eFixtureDir",iM="piE2eFixtureDir";function Bh(e){return nM(process.cwd(),e)}function oM(e){if(!e)return{};let t={};for(let n of e.split(";")){let r=n.indexOf("=");if(r===-1)continue;t[n.slice(0,r).trim()]=n.slice(r+1).trim()}return t}function be(e){let t=oM(e.headers.get("cookie"))[rM];if(t)try{return Bh(decodeURIComponent(t))}catch{return Bh(t)}let n=new URL(e.url).searchParams.get(iM);return n?Bh(n):void 0}var wu=Lt("oom-debug"),X2=Lt("oom-stress"),cM=new Set(["off","minimal","low","medium","high","xhigh","max"]);function uM(e){if(e===void 0)return;if(typeof e==="string"&&cM.has(e))return e;throw Error(`Invalid thinking level: ${String(e)}`)}function Lh(e){if(!e||e.id==="unknown"||e.provider==="unknown")return null;return{provider:e.provider,modelId:e.id}}async function lM(e,{params:t}){let{id:n}=await t;try{let r=await e.json();if(wu(`POST /api/agent/${n}`,`type=${r.type} message=${JSON.stringify(r.message)} keys=${Object.keys(r).join(",")}`),r.type==="prompt"&&r.message==="oom debug")return wu("INTERCEPTED","routing to oomDebugHandler"),dM(n);if(r.type==="prompt"&&r.message==="oom stress")return X2("INTERCEPTED","routing to oomStressHandler"),fM(n);if(n==="new")return hM(r,be(e));let i=bt(n);if(i?.isAlive()){let c=await Wh(i,r);return w.json({success:!0,data:c})}let o=await We(n);if(!o)return w.json({error:"Session not found"},{status:404});let{session:s}=await fi(n,o,void 0),a=await Wh(s,r);return w.json({success:!0,data:a})}catch(r){console.error(`[api] ${new URL(e.url).pathname} failed:`,r);let i=r instanceof Bs?400:500;return w.json({error:String(r)},{status:i})}}async function dM(e){wu("oomDebugHandler called",`session ${e}`);let t=30,n=bt(e);if(!n?.isAlive())return wu("session not alive or not found",`session ${e}`),w.json({error:"Session not found"},{status:404});return(async()=>{let r=(o)=>{n.emit(o)};r({type:"agent_start"}),await new Promise((o)=>setTimeout(o,t*1000));let i=`✅ OOM debug: fake response after ${t}s wait.`;r({type:"message_start",message:{role:"assistant",content:[]}}),r({type:"message_update",message:{role:"assistant",content:[{type:"text",text:i}]}}),r({type:"message_end",message:{role:"assistant",content:[{type:"text",text:i}]}}),r({type:"agent_end"})})(),w.json({success:!0,data:null})}async function fM(e){X2("oomStressHandler called",`session ${e}`);let t=5,n=bt(e);if(!n?.isAlive())return w.json({error:"Session not found"},{status:404});return(async()=>{let r=(d)=>{n.emit(d)};r({type:"agent_start"}),await new Promise((d)=>setTimeout(d,t*1000)),r({type:"message_start",message:{role:"assistant",content:[]}}),r({type:"message_update",assistantMessageEvent:{type:"thinking_start",contentIndex:0}});let i=400,o=500,s=80,a=[];for(let d=0;d<i;d++){let f=`Thinking step ${d+1}: ${"x".repeat(o-40)}
267
+ `;P5(t,r,{encoding:"utf8",flag:"wx"}),e.flushed=!0,Dr(this.inner.sessionId,t)}onEvent(e){let t=this.bufferedEvents;this.bufferedEvents=[];for(let n of t)e(n);this.listeners.push(e);for(let n of this.pendingUiRequests.values())e(n);for(let n of this.extensionWidgets.values())e({type:"extension_ui_request",id:rn(),method:"setWidget",widgetKey:n.key,widgetLines:n.lines,widgetPlacement:n.placement});for(let[n,r]of this.extensionStatuses)e({type:"extension_ui_request",id:rn(),method:"setStatus",statusKey:n,statusText:r});return()=>{let n=this.listeners.indexOf(e);if(n!==-1)this.listeners.splice(n,1)}}onDestroy(e){this.onDestroyCallback=e}async send(e){this.resetIdleTimer();let t=e.type;if(this.shouldWaitForExtensions(t))await this.waitForExtensionsBound();if(t==="prompt"||t==="steer"||t==="follow_up"){let n=E2(e.images);if(n)throw Error(n)}switch(t){case"prompt":{if(this.inner.isBashRunning)throw Error("Cannot send a prompt while a shell command is running");let{images:n,streamingBehavior:r}=e;if(Wt("ui-chain","2a sdk prompt",`${JSON.stringify(String(e.message).slice(0,80))} streamingBehavior=${r??"-"}`),this.promptRunning=!0,this.busyStartedAt===null||!r)this.busyStartedAt=Date.now();return this.setPhase({kind:"waiting_model"}),this.lastPromptActivityAt=Date.now(),bn(),this.inner.prompt(e.message,{...n?.length?{images:n}:{},...r?{streamingBehavior:r}:{},source:"rpc"}).then(()=>{if(Wt("ui-chain","2c prompt done"),this.promptRunning=!1,this.resetIdleTimer(),!r)this.emit({type:"prompt_done"});bn()}).catch((i)=>{if(Wt("ui-chain","2c prompt error",i instanceof Error?i.message:String(i)),this.promptRunning=!1,this.resetIdleTimer(),st(),this.emit({type:"prompt_error",errorMessage:i instanceof Error?i.message:String(i)}),!r)this.emit({type:"prompt_done"});bn()}),null}case"abort":return await this.withFinalRunningNotification(()=>this.inner.abort()),null;case"get_state":{let n=this.inner.model,r=this.inner.getContextUsage();return{sessionId:this.inner.sessionId,sessionFile:this.inner.sessionFile??"",isStreaming:this.inner.isStreaming,isPromptRunning:this.promptRunning,isBashRunning:this.inner.isBashRunning,isCompacting:this.inner.isCompacting,autoCompactionEnabled:this.inner.autoCompactionEnabled,autoRetryEnabled:this.inner.autoRetryEnabled,model:n?{id:n.id,provider:n.provider}:void 0,messageCount:0,pendingMessageCount:this.inner.pendingMessageCount,queuedMessages:{steering:[...this.inner.getSteeringMessages()],followUp:[...this.inner.getFollowUpMessages()]},contextUsage:r?{percent:r.percent,contextWindow:r.contextWindow,tokens:r.tokens}:null,systemPrompt:this.inner.agent.state?.systemPrompt??"",thinkingLevel:this.inner.agent.state?.thinkingLevel??"off",extensionStatuses:this.getExtensionStatuses(),extensionWidgets:this.getExtensionWidgets()}}case"set_model":{let{provider:n,modelId:r}=e,i=this.inner.modelRuntime.getModel(n,r);if(!i)await this.inner.modelRuntime.refresh({allowNetwork:!1}),i=this.inner.modelRuntime.getModel(n,r);if(!i)throw Error(`Model not found: ${n}/${r}`);return await this.inner.setModel(i),ke(),st(),{id:i.id,provider:i.provider}}case"fork":{if(this.inner.isBashRunning)throw Error("Cannot fork while a shell command is running");let n=e.entryId,r=this.inner.sessionManager,i=this.inner.sessionFile;if(!r.isPersisted())return{cancelled:!0};if(!i)throw Error("Persisted session is missing a session file");let o=r.getEntry(n);if(!o)throw Error("Invalid entry ID for forking");let s=r.getSessionDir(),a;if(!o.parentId){let u=Ns.create(r.getCwd(),s);u.newSession({parentSession:i}),a=u.getSessionFile()}else{let d=Ns.open(i,s).createBranchedSession(o.parentId);if(!d)throw Error("Failed to create forked session");a=d}let c=Ns.open(a,s).getSessionId();return Dr(c,a),st(),this.destroy(),{cancelled:!1,newSessionId:c}}case"navigate_tree":{if(this.inner.isBashRunning)throw Error("Cannot navigate while a shell command is running");return{cancelled:(await this.inner.navigateTree(e.targetId,{})).cancelled}}case"set_thinking_level":{let n=e.level;if(this.inner.setThinkingLevel(n),n==="xhigh"&&this.inner.model?.compat?.thinkingFormat==="deepseek"&&this.inner.agent?.state)this.inner.agent.state.thinkingLevel="xhigh";return st(),null}case"compact":try{return await this.withFinalRunningNotification(()=>this.inner.compact(e.customInstructions))}finally{st()}case"set_session_name":{let n=e.name?.trim();if(!n)throw Error("Session name cannot be empty");return this.inner.setSessionName(n),st(),null}case"get_session_stats":return{...this.inner.getSessionStats(),sessionName:this.inner.sessionManager.getSessionName()};case"get_last_assistant_text":return{text:this.inner.getLastAssistantText()??""};case"set_auto_compaction":return this.inner.setAutoCompactionEnabled(e.enabled),null;case"clear_queue":return this.inner.clearQueue();case"steer":{let n=e.images;try{await this.inner.steer(e.message,n?.length?n:void 0)}catch(r){if(H5(r))throw new Bs(r instanceof Error?r.message:String(r));throw r}return null}case"follow_up":{let n=e.images;return await this.inner.followUp(e.message,n?.length?n:void 0),null}case"get_tools":{let n=this.inner.getAllTools(),r=new Set(this.inner.getActiveToolNames());return n.map((i)=>({name:i.name,description:i.description,active:r.has(i.name)}))}case"get_commands":{let n=[];for(let r of this.inner.extensionRunner.getRegisteredCommands())n.push({name:r.invocationName,description:r.description,source:"extension",sourceInfo:r.sourceInfo});for(let r of this.inner.promptTemplates)n.push({name:r.name,description:r.description,source:"prompt",sourceInfo:r.sourceInfo});for(let r of this.inner.resourceLoader.getSkills().skills)n.push({name:`skill:${r.name}`,description:r.description,source:"skill",sourceInfo:r.sourceInfo});return{commands:n}}case"set_tools":{let n=e.toolNames;return this.setForceEmptySystemPrompt(n.length===0),this.inner.setActiveToolsByName(M2(this.inner,n)),this.applyForcedEmptySystemPrompt(),null}case"reload":{if(await this.waitForExtensionsBound(),this.extensionStatuses.clear(),this.extensionWidgets.clear(),this.syncProjectTrust(),await this.inner.reload(),typeof this.inner.bindExtensions!=="function")this.inner.extensionRunner.setUIContext?.(this.createExtensionUiContext(),"rpc");return this.applyForcedEmptySystemPrompt(),ke(),{success:!0}}case"abort_compaction":return this.inner.abortCompaction(),null;case"extension_ui_response":return this.resolveExtensionUiResponse(e),null;case"extension_ui_input":return this.handleExtensionUiInput(e.id,e.data),null;case"set_auto_retry":return this.inner.setAutoRetryEnabled(e.enabled),null;case"bash":{if(this.promptRunning||this.inner.isStreaming||this.inner.isCompacting||this.inner.isBashRunning)throw Error("Cannot run a shell command while the session is busy");let n=this.inner.executeBash(e.command,void 0,{excludeFromContext:e.excludeFromContext});this.busyStartedAt=Date.now(),this.setPhase({kind:"running_command"}),bn();try{let r=await n;return this.persistBashOnlySession(),r}finally{this.resetIdleTimer(),st(),this.emit({type:"prompt_done"}),this.setPhase(null),bn()}}case"abort_bash":return this.inner.abortBash(),null;default:throw Error(`Unsupported command: ${t}`)}}destroy(){if(!this._alive)return;if(this._alive=!1,this.idleTimer)clearTimeout(this.idleTimer);if(this.inner.isBashRunning)this.inner.abortBash();this.unsubscribe?.(),this.cancelPendingUiResponses();for(let e of Array.from(this.activeCustomUis.keys()))this.closeCustomUi(e,void 0);this.pendingUiResponses.clear(),this.pendingUiRequests.clear(),this.onDestroyCallback?.(),bn()}cancelPendingUiResponses(){for(let e of this.pendingUiResponses.values())e.cancel();this.pendingUiResponses.clear(),this.pendingUiRequests.clear()}getPendingUiRequests(){return Array.from(this.pendingUiRequests.values())}resolveExtensionUiResponse(e){let t=this.pendingUiResponses.get(e.id);if(!t)return;t.resolve(e)}getExtensionStatuses(){return Array.from(this.extensionStatuses,([e,t])=>({key:e,text:t}))}getExtensionWidgets(){return Array.from(this.extensionWidgets.values())}getCustomUiWidth(e){if(!e||typeof e!=="object")return Ph;let t=e.overlayOptions,n=typeof t==="function"?t():t;if(!n||typeof n!=="object")return Ph;let r=n.width;return typeof r==="number"&&Number.isFinite(r)?Math.max(40,Math.min(140,Math.round(r))):92}emitCustomUiRender(e,t){let n;try{n=t.component.render(t.width)}catch(i){n=[`Extension custom UI render failed: ${i instanceof Error?i.message:String(i)}`]}let r={type:"extension_ui_request",id:e,method:"custom",lines:n};this.pendingUiRequests.set(e,r),this.emit(r)}closeCustomUi(e,t){let n=this.activeCustomUis.get(e);if(!n||n.settled)return;n.settled=!0,this.activeCustomUis.delete(e),this.pendingUiRequests.delete(e);try{n.component.dispose?.()}catch{}this.emit({type:"extension_ui_request",id:e,method:"custom",lines:[],closed:!0}),n.resolve(t)}handleExtensionUiInput(e,t){let n=this.activeCustomUis.get(e);if(!n||typeof t!=="string")return;try{if(n.component.handleInput?.(t),this.activeCustomUis.has(e))this.emitCustomUiRender(e,n)}catch(r){this.closeCustomUi(e,void 0),this.emit({type:"extension_error",extensionPath:`custom-ui:${e}`,event:"custom_ui_input",error:r instanceof Error?r.message:String(r)})}}requestExtensionCustomUi(e,t){if(typeof e!=="function")return Promise.resolve(void 0);let n=rn(),r=this.getCustomUiWidth(t);return new Promise((i)=>{let o=!1,s=D2(()=>{let u=this.activeCustomUis.get(n);if(u)this.emitCustomUiRender(n,u)},r),a=(u)=>{if(o)return;o=!0,i(u)},c=(u)=>{if(this.activeCustomUis.has(n))this.closeCustomUi(n,u);else a(u)};Promise.resolve().then(()=>e(s,k2,X5,c)).then((u)=>{if(o){try{u?.dispose?.()}catch{}return}if(!u||typeof u!=="object"||typeof u.render!=="function"){a(void 0);return}let d={component:u,width:r,resolve:(f)=>a(f),settled:!1};this.activeCustomUis.set(n,d),this.emitCustomUiRender(n,d)}).catch((u)=>{if(o)return;this.emit({type:"extension_error",extensionPath:`custom-ui:${n}`,event:"custom_ui",error:u instanceof Error?u.message:String(u)}),a(void 0)})})}requestExtensionUi(e,t,n,r,i){if(i?.aborted)return Promise.resolve(t);let o=rn(),s={type:"extension_ui_request",id:o,...e,...r?{timeout:r,expiresAt:Date.now()+r}:{}};return new Promise((a)=>{let c,u=()=>{if(c)clearTimeout(c);i?.removeEventListener("abort",f),this.pendingUiRequests.delete(o),this.pendingUiResponses.delete(o)},d=(h)=>{u(),a(h)},f=()=>d(t);if(r)c=setTimeout(()=>d(t),r);i?.addEventListener("abort",f,{once:!0}),Wt("ui-chain",`2b ctx.ui.${String(e.method)}`,`id=${o.slice(0,8)} title=${JSON.stringify(e.title??null)} timeout=${r??"-"}`),this.pendingUiRequests.set(o,s),this.pendingUiResponses.set(o,{resolve:(h)=>d(n(h)),cancel:()=>d(t)}),this.emit(s)})}createExtensionUiContext(){return{select:(e,t,n)=>this.requestExtensionUi({method:"select",title:e,options:t,...n?.timeout?{timeout:n.timeout}:{}},void 0,(r)=>("value"in r)?r.value:void 0,n?.timeout,n?.signal),confirm:(e,t,n)=>this.requestExtensionUi({method:"confirm",title:e,message:t,...n?.timeout?{timeout:n.timeout}:{}},!1,(r)=>("confirmed"in r)?r.confirmed:!1,n?.timeout,n?.signal),input:(e,t,n)=>this.requestExtensionUi({method:"input",title:e,...t!==void 0?{placeholder:t}:{},...n?.timeout?{timeout:n.timeout}:{}},void 0,(r)=>("value"in r)?r.value:void 0,n?.timeout,n?.signal),editor:(e,t,n)=>this.requestExtensionUi({method:"editor",title:e,...t!==void 0?{prefill:t}:{},...n?.timeout?{timeout:n.timeout}:{}},void 0,(r)=>("value"in r)?r.value:void 0,n?.timeout,n?.signal),notify:(e,t)=>{this.emit({type:"extension_ui_request",id:rn(),method:"notify",message:e,notifyType:t})},onTerminalInput:()=>()=>{},setStatus:(e,t)=>{if(t===void 0)this.extensionStatuses.delete(e);else this.extensionStatuses.set(e,t);this.emit({type:"extension_ui_request",id:rn(),method:"setStatus",statusKey:e,statusText:t})},setWorkingMessage:()=>{},setWorkingVisible:()=>{},setWorkingIndicator:()=>{},setHiddenThinkingLabel:()=>{},setWidget:(e,t,n)=>{if(t!==void 0&&!Array.isArray(t))return;if(t===void 0)this.extensionWidgets.delete(e);else this.extensionWidgets.set(e,{key:e,lines:t,placement:n?.placement??"aboveEditor"});this.emit({type:"extension_ui_request",id:rn(),method:"setWidget",widgetKey:e,widgetLines:t,widgetPlacement:n?.placement})},setFooter:()=>{},setHeader:()=>{},setTitle:(e)=>{this.emit({type:"extension_ui_request",id:rn(),method:"setTitle",title:e})},custom:(e,t)=>this.requestExtensionCustomUi(e,t),pasteToEditor:(e)=>{this.emit({type:"extension_ui_request",id:rn(),method:"set_editor_text",text:e})},setEditorText:(e)=>{this.emit({type:"extension_ui_request",id:rn(),method:"set_editor_text",text:e})},getEditorText:()=>"",addAutocompleteProvider:()=>{},setEditorComponent:()=>{},getEditorComponent:()=>{return},get theme(){return k2},getAllThemes:()=>[],getTheme:()=>{return},setTheme:()=>({success:!1,error:"Theme switching is not supported in Pi Web extension UI yet"}),getToolsExpanded:()=>!1,setToolsExpanded:()=>{}}}createExtensionCommandContextActions(){return{waitForIdle:async()=>{await this.inner.agent.waitForIdle?.()},newSession:async()=>({cancelled:!0}),fork:async()=>({cancelled:!0}),navigateTree:async(e,t)=>({cancelled:(await this.inner.navigateTree(e,{summarize:t?.summarize})).cancelled}),switchSession:async()=>({cancelled:!0}),reload:async()=>{this.extensionStatuses.clear(),this.extensionWidgets.clear(),this.syncProjectTrust(),await this.inner.reload({beforeSessionStart:()=>{this.inner.extensionRunner.setUIContext?.(this.createExtensionUiContext(),"rpc")}}),this.applyForcedEmptySystemPrompt()}}}syncProjectTrust(){let e=ct(this.cwd,P2());this.inner.settingsManager.setProjectTrusted(e.trusted)}}function Tr(){if(!globalThis.__piSessions){globalThis.__piSessions=new Map;let e=()=>globalThis.__piSessions?.forEach((t)=>t.destroy());process.once("exit",e),process.once("SIGINT",e),process.once("SIGTERM",e)}return globalThis.__piSessions}function K5(){if(!globalThis.__piStartLocks)globalThis.__piStartLocks=new Map;return globalThis.__piStartLocks}function on(e){let t=O2(e);try{return O5(t)}catch{return t}}function B2(){if(!globalThis.__piStartingSessionCwds)globalThis.__piStartingSessionCwds=new Map;return globalThis.__piStartingSessionCwds}function Z5(e){let t=B2(),n=on(e);return t.set(n,(t.get(n)??0)+1),()=>{let r=(t.get(n)??1)-1;if(r>0)t.set(n,r);else t.delete(n)}}function bt(e){return Tr().get(e)}function L2(e){let t=on(e);for(let[n,r]of Tr()){if(!r.isAlive())continue;if(on(r.cwd)!==t)continue;if(r.hasMessages())continue;return n}return}function W2(e){let t=on(e);if(B2().has(t))return!0;return Array.from(Tr().values()).some((n)=>on(n.cwd)===t&&n.isRunning())}function j2(){let e=new Set,t=[];for(let n of Tr().values()){let r=on(n.cwd);if(e.has(r))continue;e.add(r),t.push(r)}return t}function q2(e){let t=on(e),n=Array.from(Tr().values()).filter((r)=>on(r.cwd)===t);for(let r of n)r.destroy();return n.length}function $2(){let e=new Set;for(let[t,n]of Tr())if(n.isRunning())e.add(n.sessionId||t);return[...e]}function Ls(){let e=[],t={},n={},r={};for(let[i,o]of Tr())if(o.isRunning()){let s=o.sessionId||i;e.push(s);let a=o.getPhase();if(a){t[s]=a;let u=o.getPhaseStartedAt();if(u!==null)n[s]=u}let c=o.getBusyStartedAt();if(c!==null)r[s]=c}return{runningSessionIds:e,phases:t,phaseSince:n,busySince:r}}function H2(){if(!globalThis.__piRunningListeners)globalThis.__piRunningListeners=new Set;return globalThis.__piRunningListeners}function G2(e){let t=H2();return t.add(e),()=>{t.delete(e)}}var Nh="";function bn(){let e=H2();if(e.size===0){Nh="";return}let t=Ls(),n=JSON.stringify(t);if(n===Nh)return;Nh=n;for(let r of e)try{r(t)}catch{}}function z2(){if(!globalThis.__piAgentEventListeners)globalThis.__piAgentEventListeners=new Set;return globalThis.__piAgentEventListeners}function V2(e){let t=z2();return t.add(e),()=>{t.delete(e)}}function Y5(e,t){for(let n of z2())try{n(e,t)}catch{}}var J5="@rainmanhhh/pi-web",R2=!1;function Q5(){return O2(import.meta.dirname,"..")}function eM(e,t){return(e??[]).some((n)=>{let r=typeof n==="string"?n:n.source;return r===t||r.includes(J5)})}async function tM(e,t){if(R2)return;if(R2=!0,pu())return;let n=Q5();if(!F2(I5(n,"extensions")))return;let r=L5.create(e,t),i=r.getGlobalSettings().packages;if(eM(i,n))return;r.setPackages([...i??[],n]),console.log(`[pi-web] self-registered as pi package: ${n}`)}async function fi(e,t,n,r={}){let{toolNames:i,initialModel:o,thinkingLevel:s}=r,a=Tr(),c=K5(),u=a.get(e);if(u?.isAlive())return{session:u,realSessionId:e};let d=c.get(e);if(d)return d;let f;if(t)f=Ns.open(t,void 0);else{if(!n)throw Error("cwd is required for a new session");f=Ns.create(n,void 0)}let h=f.getCwd(),p=Z5(h),g=(async()=>{B5();let y=P2();await tM(h,y);let v;if(i!==void 0)v=i.length===0?[]:void 0;let b=io(h,y),_=r.fixtureExtensionPaths??d2(e),m=await N5({cwd:h,agentDir:y,...b?{resourceLoaderReloadOptions:b}:{},..._.length>0?{resourceLoaderOptions:{additionalExtensionPaths:_}}:{}}),x=await xu(m.modelRuntime,m.settingsManager.getEnabledModels()),D=m.settingsManager.getDefaultProvider(),A=m.settingsManager.getDefaultModel(),U=f.getBranch().some((j)=>j.type==="message")?{scopedModels:[...x.scopedModels]}:_u(x,{...o?{requestedModel:o}:{},...D&&A?{defaultModel:{provider:D,modelId:A}}:{},...s?{thinkingLevel:s}:{}}),{session:C}=await M5({services:m,sessionManager:f,...U.model?{model:U.model}:{},...U.thinkingLevel?{thinkingLevel:U.thinkingLevel}:{},...U.scopedModels.length>0?{scopedModels:U.scopedModels}:{},...v!==void 0?{tools:v}:{}});if((await A2(m.settingsManager,{...o?{model:o}:{},...s?{thinkingLevel:s}:{}},{...C.model?{model:{provider:C.model.provider,modelId:C.model.id}}:{},thinkingLevel:C.thinkingLevel,supportsThinking:C.supportsThinking()})).modelDefaultChanged)ke();if(i&&i.length>0)C.setActiveToolsByName(M2(C,i));let F=new N2(C);if(i?.length===0)F.setForceEmptySystemPrompt(!0);F.start();let{sessionId:S,sessionFile:B}=C;if(B)Dr(S,B);return F.onDestroy(()=>a.delete(S)),a.set(S,F),F.beginExtensionBinding({forceEmptySystemPrompt:i?.length===0}),{session:F,realSessionId:S}})().finally(()=>{c.delete(e),p()});return c.set(e,g),g}import{resolve as nM}from"node:path";var rM="piE2eFixtureDir",iM="piE2eFixtureDir";function Bh(e){return nM(process.cwd(),e)}function oM(e){if(!e)return{};let t={};for(let n of e.split(";")){let r=n.indexOf("=");if(r===-1)continue;t[n.slice(0,r).trim()]=n.slice(r+1).trim()}return t}function xe(e){let t=oM(e.headers.get("cookie"))[rM];if(t)try{return Bh(decodeURIComponent(t))}catch{return Bh(t)}let n=new URL(e.url).searchParams.get(iM);return n?Bh(n):void 0}var wu=Lt("oom-debug"),X2=Lt("oom-stress"),cM=new Set(["off","minimal","low","medium","high","xhigh","max"]);function uM(e){if(e===void 0)return;if(typeof e==="string"&&cM.has(e))return e;throw Error(`Invalid thinking level: ${String(e)}`)}function Lh(e){if(!e||e.id==="unknown"||e.provider==="unknown")return null;return{provider:e.provider,modelId:e.id}}async function lM(e,{params:t}){let{id:n}=await t;try{let r=await e.json();if(wu(`POST /api/agent/${n}`,`type=${r.type} message=${JSON.stringify(r.message)} keys=${Object.keys(r).join(",")}`),r.type==="prompt"&&r.message==="oom debug")return wu("INTERCEPTED","routing to oomDebugHandler"),dM(n);if(r.type==="prompt"&&r.message==="oom stress")return X2("INTERCEPTED","routing to oomStressHandler"),fM(n);if(n==="new")return hM(r,xe(e));let i=bt(n);if(i?.isAlive()){let c=await Wh(i,r);return w.json({success:!0,data:c})}let o=await We(n);if(!o)return w.json({error:"Session not found"},{status:404});let{session:s}=await fi(n,o,void 0),a=await Wh(s,r);return w.json({success:!0,data:a})}catch(r){console.error(`[api] ${new URL(e.url).pathname} failed:`,r);let i=r instanceof Bs?400:500;return w.json({error:String(r)},{status:i})}}async function dM(e){wu("oomDebugHandler called",`session ${e}`);let t=30,n=bt(e);if(!n?.isAlive())return wu("session not alive or not found",`session ${e}`),w.json({error:"Session not found"},{status:404});return(async()=>{let r=(o)=>{n.emit(o)};r({type:"agent_start"}),await new Promise((o)=>setTimeout(o,t*1000));let i=`✅ OOM debug: fake response after ${t}s wait.`;r({type:"message_start",message:{role:"assistant",content:[]}}),r({type:"message_update",message:{role:"assistant",content:[{type:"text",text:i}]}}),r({type:"message_end",message:{role:"assistant",content:[{type:"text",text:i}]}}),r({type:"agent_end"})})(),w.json({success:!0,data:null})}async function fM(e){X2("oomStressHandler called",`session ${e}`);let t=5,n=bt(e);if(!n?.isAlive())return w.json({error:"Session not found"},{status:404});return(async()=>{let r=(d)=>{n.emit(d)};r({type:"agent_start"}),await new Promise((d)=>setTimeout(d,t*1000)),r({type:"message_start",message:{role:"assistant",content:[]}}),r({type:"message_update",assistantMessageEvent:{type:"thinking_start",contentIndex:0}});let i=400,o=500,s=80,a=[];for(let d=0;d<i;d++){let f=`Thinking step ${d+1}: ${"x".repeat(o-40)}
268
268
  `;a.push(f),r({type:"message_update",assistantMessageEvent:{type:"thinking_delta",contentIndex:0,delta:f}}),await new Promise((h)=>setTimeout(h,s))}let c=a.join("");r({type:"message_update",assistantMessageEvent:{type:"thinking_end",contentIndex:0,content:c}});let u=`
269
269
  Done. Streamed ${i} thinking chunks (${c.length} chars).`;r({type:"message_update",assistantMessageEvent:{type:"text_start",contentIndex:1}}),r({type:"message_update",assistantMessageEvent:{type:"text_delta",contentIndex:1,delta:u}}),r({type:"message_update",assistantMessageEvent:{type:"text_end",contentIndex:1,content:u}}),r({type:"message_end",message:{role:"assistant",content:[{type:"thinking",thinking:c},{type:"text",text:u}]}}),r({type:"agent_end"})})(),w.json({success:!0,data:null})}async function Wh(e,t){let{provider:n,modelId:r,...i}=t;if(t.type==="prompt"&&n&&r){let o=await e.send({type:"get_state"});if(o.model?.provider!==n||o.model?.id!==r)await e.send({type:"set_model",provider:n,modelId:r});return e.send(i)}return e.send(t)}async function hM(e,t){let{cwd:n,...r}=e;if(!n||typeof n!=="string")return w.json({error:"cwd is required"},{status:400});if(!aM(n))return w.json({error:`Directory does not exist: ${n}`},{status:400});let{provider:i,modelId:o,toolNames:s,thinkingLevel:a,...c}=r;if(i&&!o||!i&&o)throw Error("provider and modelId must be provided together");let u=uM(a);if(c.type==="ensure_session"){let y=L2(n);if(y){let v=bt(y);if(v?.isAlive()){if(i&&o)try{await v.send({type:"set_model",provider:i,modelId:o})}catch(_){console.error(`[api] set_model on reused session ${y} failed:`,_)}if(u)try{await v.send({type:"set_thinking_level",level:u})}catch(_){console.error(`[api] set_thinking_level on reused session ${y} failed:`,_)}let b=await v.send({type:"get_state"});return w.json({success:!0,sessionId:y,data:null,model:Lh(b.model),thinkingLevel:b.thinkingLevel})}}}let d=`__new__${sM()}`,{session:f,realSessionId:h}=await fi(d,"",n,{...s?{toolNames:s}:{},...i&&o?{initialModel:{provider:i,modelId:o}}:{},...u?{thinkingLevel:u}:{},...t?{fixtureExtensionPaths:Rh(t)}:{}});yt(n),st();let p=await f.send({type:"get_state"});if(i&&o&&c.type!=="ensure_session"&&(p.model?.provider!==i||p.model?.id!==o))await f.send({type:"set_model",provider:i,modelId:o});if(c.type==="ensure_session")return w.json({success:!0,sessionId:h,data:null,model:Lh(p.model),thinkingLevel:p.thinkingLevel});let g=await f.send(c);return w.json({success:!0,sessionId:h,data:g,model:Lh(p.model),thinkingLevel:p.thinkingLevel})}async function pM(e,{params:t}){let{id:n}=await t;try{let r=bt(n);if(!r?.isAlive())return w.json({running:!1});let i=await r.send({type:"get_state"});return w.json({running:!0,state:i})}catch(r){return console.error(`[api] ${new URL(e.url).pathname} failed:`,r),w.json({error:String(r)},{status:500})}}var qh={};Q(qh,{GET:()=>mM,dynamic:()=>gM});var gM="force-dynamic";async function mM(){return w.json(Ls(),{headers:{"Cache-Control":"no-store"}})}var zh={};Q(zh,{GET:()=>CM,dynamic:()=>SM});import{ModelRuntime as TM}from"@earendil-works/pi-coding-agent";var yM=new Set(["models_json_key","models_json_command"]),bM={"openai-codex":"ChatGPT Plus/Pro","github-copilot":"GitHub Copilot"};function K2(e){let t=new Set,n=[];for(let r of e){if(t.has(r.id))continue;t.add(r.id),n.push(r)}return n}function Z2(e){let t=[];for(let n of K2(e)){if(!n.hasApiKeyLogin)continue;if(n.status.source&&yM.has(n.status.source))continue;let r=n.status.configured&&n.credentialType!=="oauth";t.push({id:n.id,displayName:n.name,configured:r,...r&&n.status.source?{source:n.status.source}:{},modelCount:n.modelCount,modelIds:n.modelIds,reasoningModelIds:n.reasoningModelIds,imageInputModelIds:n.imageInputModelIds,supportsOAuth:n.hasOAuth,...n.baseUrl?{baseUrl:n.baseUrl}:{},...n.api?{api:n.api}:{}})}return t}function Y2(e){let t=[];for(let n of K2(e)){if(!n.hasOAuth)continue;t.push({id:n.id,name:bM[n.id]??n.oauthName??n.name,usesCallbackServer:!1,loggedIn:n.credentialType==="oauth",modelIds:n.modelIds,reasoningModelIds:n.reasoningModelIds,imageInputModelIds:n.imageInputModelIds,supportsApiKey:n.hasApiKeyLogin,...n.baseUrl?{baseUrl:n.baseUrl}:{},...n.api?{api:n.api}:{}})}return t}async function Du(e){let t=e.getModels(),n=new Map;for(let o of t){if(!o.reasoning)continue;let s=n.get(o.provider);if(s)s.push(o.id);else n.set(o.provider,[o.id])}let r=new Map;for(let o of t){if(!Array.isArray(o.input)||!o.input.includes("image"))continue;let s=r.get(o.provider);if(s)s.push(o.id);else r.set(o.provider,[o.id])}let i=new Map;try{for(let o of await e.listCredentials())if(o.type==="api_key"||o.type==="oauth")i.set(o.providerId,o.type)}catch{}return e.getProviders().map((o)=>({id:o.id,name:o.name,...typeof o.baseUrl==="string"&&o.baseUrl.trim()?{baseUrl:o.baseUrl}:{},...t.find((s)=>s.provider===o.id)?.api?{api:t.find((s)=>s.provider===o.id).api}:{},hasApiKeyLogin:Boolean(o.auth.apiKey?.login),hasOAuth:Boolean(o.auth.oauth),...o.auth.oauth?.name?{oauthName:o.auth.oauth.name}:{},status:e.getProviderAuthStatus(o.id),...i.has(o.id)?{credentialType:i.get(o.id)}:{},modelCount:t.filter((s)=>s.provider===o.id).length,modelIds:t.filter((s)=>s.provider===o.id).map((s)=>s.id),reasoningModelIds:n.get(o.id)??[],imageInputModelIds:r.get(o.id)??[]}))}import{readFile as t1,stat as n1,readdir as vM,mkdir as xM,writeFile as _M}from"node:fs/promises";import{join as js}from"node:path";import{getAgentDir as r1}from"@earendil-works/pi-coding-agent";var Eu=js(r1(),"pi-web","provider");function Tu(e){return/^[A-Za-z0-9][A-Za-z0-9._-]*$/.test(e)}async function pi(e){if(!Tu(e))return[];let t=js(Eu,e,"models.json");try{if(!(await n1(t)).isFile())return[]}catch{return[]}try{let n=await t1(t,"utf-8");return Ar(JSON.parse(n))}catch{return[]}}async function Su(e){let t=[];for(let n of await pi(e)){let r=Cr(n);if(r)t.push(r)}return t}function hi(e){let t=typeof e==="string"?Number(e):e;return typeof t==="number"&&Number.isFinite(t)?t:void 0}function Gh(e,t){let n=Cr(t);if(!n)return null;let r=typeof t==="object"&&t!==null?t:{},i=r.top_provider,o=r.architecture,s=r.pricing,a=r.capabilities,c=hi(r.context_length)??hi(r.context_window)??hi(i?.context_length)??hi(r.max_model_len)??0,u=hi(r.max_completion_tokens)??hi(r.max_output_tokens)??hi(i?.max_completion_tokens)??0,d=!1;if(Array.isArray(r.supported_parameters))d=r.supported_parameters.some((y)=>y==="reasoning"||y==="thinking");else if(r.reasoning!==void 0)d=r.reasoning===!0;else if(a)d=a.reasoning===!0;let h=(Array.isArray(r.input_modalities)?r.input_modalities:Array.isArray(o?.input_modalities)?o.input_modalities:["text"]).filter((y)=>y==="text"||y==="image");if(h.length===0)h.push("text");let p=(y)=>{let v=typeof y==="string"?Number(y):y;if(typeof v!=="number"||!Number.isFinite(v))return 0;return Math.abs(v)<1?v*1e6:v},g=s&&typeof s==="object"?{input:p(s.prompt),output:p(s.completion),cacheRead:p(s.input_cache_read),cacheWrite:p(s.input_cache_write)}:{input:0,output:0,cacheRead:0,cacheWrite:0};return{id:n.id,name:n.name??n.id,provider:e,api:"openai-completions",baseUrl:"",reasoning:d,input:h,cost:g,contextWindow:c,maxTokens:u}}function wM(e){if(!e||typeof e!=="object")return new Set;let t=new Set;for(let[n,r]of Object.entries(e)){let i=r&&typeof r==="object"?r:void 0;if(i&&Array.isArray(i.models))t.add(n.toLowerCase())}return t}async function oo(){try{let e=JSON.parse(await t1(js(r1(),"models.json"),"utf-8"));return wM(e.providers)}catch{return new Set}}async function so(){try{if(!(await n1(Eu)).isDirectory())return[]}catch{return[]}return(await vM(Eu,{withFileTypes:!0})).filter((t)=>t.isDirectory()).map((t)=>t.name)}var DM=["off","minimal","low","medium","high","xhigh","max"];async function Cu(e,t){if(!Tu(e))return;let n=js(Eu,e);await xM(n,{recursive:!0}),await _M(js(n,"models.json"),JSON.stringify(t,null,2)+`
270
270
  `)}function EM(e){let n=(typeof e==="object"&&e!==null?e:{}).reasoning;if(typeof n!=="object"||n===null)return;let r=n.supported_efforts;if(!Array.isArray(r))return;let i=r.filter((s)=>typeof s==="string"),o={};for(let s of DM)o[s]=i.includes(s)?s:null;return o}function i1(e,t){let n=Gh("__suggestion__",e);if(!n)return{};let r={};if(n.contextWindow>0&&n.contextWindow!==t.contextWindow)r.contextWindow=n.contextWindow;if(n.maxTokens>0&&n.maxTokens!==t.maxTokens)r.maxTokens=n.maxTokens;if(n.reasoning!==t.reasoning)r.reasoning=n.reasoning;if(JSON.stringify(n.input)!==JSON.stringify(t.input))r.input=n.input;let i=t.cost,o={};for(let a of["input","output","cacheRead","cacheWrite"]){let c=n.cost[a];if(c>0&&c!==i?.[a])o[a]=c}if(Object.keys(o).length>0)r.cost=o;let s=EM(e);if(s){let a=t.thinkingLevelMap??{},c={},u=!1;for(let[d,f]of Object.entries(s))if(a[d]!==f)c[d]=f,u=!0;if(u)r.thinkingLevelMap=c}return r}var SM="force-dynamic";async function CM(){let e=await TM.create({allowModelNetwork:!0}),t=Z2(await Du(e));return await AM(t),ke(),Response.json({providers:t})}async function AM(e){let t=await so();if(t.length===0)return;let n=await oo(),r=new Map;for(let i of t){if(n.has(i.toLowerCase()))continue;let o=await Su(i);if(o.length>0)r.set(i,o.map((s)=>s.id))}for(let i of e){let o=r.get(i.id);if(o)i.modelIds=o,i.modelCount=o.length}}var cp={};Q(cp,{DELETE:()=>DN,GET:()=>_N,POST:()=>wN,dynamic:()=>xN});import{ModelRuntime as j1}from"@earendil-works/pi-coding-agent";var M1=gn(k1(),1);import{chmodSync as F1,existsSync as R1,mkdirSync as mN,readFileSync as yN,writeFileSync as O1}from"node:fs";import{dirname as bN,join as P1}from"node:path";import{getAgentDir as I1}from"@earendil-works/pi-coding-agent";var N1={encoding:"utf-8",mode:384};function vN(e){let t=bN(e);if(!R1(t))mN(t,{recursive:!0,mode:448});if(!R1(e))O1(e,"{}",N1),F1(e,384)}function B1(e){return typeof e==="object"&&e!==null&&!Array.isArray(e)}async function L1(e,t){vN(e);let n,r=await M1.default.lock(e,{retries:{retries:10,factor:2,minTimeout:100,maxTimeout:1e4,randomize:!0},stale:30000,onCompromised:(o)=>{n=o}}),i=()=>{if(n)throw n};try{i();let o=JSON.parse(yN(e,"utf-8"));if(!B1(o))throw Error("Invalid auth.json: expected an object");let{result:s,changed:a}=t(o);if(a)i(),O1(e,JSON.stringify(o,null,2),N1),F1(e,384),i();return s}finally{try{await r()}catch{}}}function W1(e,t,n=P1(I1(),"auth.json")){return L1(n,(r)=>(r[e]=t,{result:void 0,changed:!0}))}async function Lu(e,t,n=P1(I1(),"auth.json")){return L1(n,(r)=>{if(!Object.hasOwn(r,e))return{result:{status:"not_found"},changed:!1};let i=r[e],o=B1(i)&&typeof i.type==="string"?i.type:"unknown";if(o!==t)return{result:{status:"type_mismatch",storedType:o},changed:!1};return delete r[e],{result:{status:"removed"},changed:!0}})}var xN="force-dynamic";async function _N(e,{params:t}){let{provider:n}=await t,r=await j1.create(),i=r.getProviderAuthStatus(n),o=r.getProvider(n)?.name??n,s=r.getModels(n).length;return w.json({provider:n,displayName:o,configured:i.configured,source:i.source,models:s})}async function wN(e,{params:t}){let{provider:n}=await t;try{let{apiKey:r}=await e.json();if(!r||typeof r!=="string"||!r.trim())return w.json({error:"apiKey is required"},{status:400});let o=(await j1.create()).getProvider(n)?.auth.apiKey;if(!o?.login)throw Error(`${n} does not support API key login`);let s=!1,a=await o.login({signal:e.signal,notify:()=>{},prompt:async(c)=>{if(c.type==="select"){let u=c.options.find((d)=>d.id==="api-key"||d.id==="bearer-token");if(u)return u.id;throw Error(`${n} requires interactive authentication setup`)}if(!s&&c.type==="secret")return s=!0,r.trim();throw Error(`${n} requires additional authentication settings`)}});return await W1(n,a),ke(),w.json({success:!0})}catch(r){return w.json({error:String(r)},{status:500})}}async function DN(e,{params:t}){let{provider:n}=await t;try{if((await Lu(n,"api_key")).status==="type_mismatch")return w.json({error:`${n} is authenticated with OAuth, not an API key`},{status:409});return ke(),w.json({success:!0})}catch(r){return w.json({error:String(r)},{status:500})}}var up={};Q(up,{GET:()=>CN,POST:()=>SN,dynamic:()=>TN});import{ModelRuntime as EN}from"@earendil-works/pi-coding-agent";var TN="force-dynamic";function q1(){if(!globalThis.__piLoginCallbacks)globalThis.__piLoginCallbacks=new Map;return globalThis.__piLoginCallbacks}async function SN(e,{params:t}){let{provider:n}=await t,{token:r,code:i}=await e.json();if(!r||!i)return Response.json({error:"token and code required"},{status:400});let o=q1(),s=o.get(r);if(!s)return Response.json({error:"No pending login for token"},{status:404});if(!r.startsWith(`${n}-`))return Response.json({error:"Token does not match provider"},{status:400});return s.resolve(i),o.delete(r),Response.json({ok:!0,provider:n})}async function CN(e,{params:t}){let{provider:n}=await t,r=new TextEncoder,i=(a,c)=>{a.enqueue(r.encode(`data: ${JSON.stringify(c)}
@@ -348,8 +348,8 @@ ${a}`,t.length>Ab)break}catch{t+=`
348
348
  git diff:
349
349
  `;async function Ote(e){let t="",n="";try{let r=await e.json(),i=await Mn(r.cwd);if(!i.ok)return w.json({error:i.error},{status:i.status});let o=typeof r.provider==="string"?r.provider.trim():"",s=typeof r.modelId==="string"?r.modelId.trim():"";if(t=o,n=s,!o||!s)return w.json({error:"provider and modelId are required"},{status:400});let a=typeof r.maxTokens==="number"&&Number.isFinite(r.maxTokens)?Math.min(4096,Math.max(64,Math.round(r.maxTokens))):512,c=await Rte(i.cwd);if(!c)return w.json({error:"No changes to generate commit message"},{status:400});let u=await Cte.create(),d=u.getError();if(d)return w.json({error:d},{status:500});let f=u.getModel(o,s);if(!f)return w.json({error:`Model not found: ${o}/${s}`},{status:404});let h=await u.getAuth(f);if(!h?.auth.apiKey)return w.json({error:`No API key for provider "${o}"`},{status:400});let p=f,g=c,y=f.contextWindow;if(typeof y==="number"&&y>0&&y<20000){let x=a+1500,A=Math.max(3000,y-x)*3;if(g.length>A)g=`${g.slice(0,A)}
350
350
 
351
- ... (truncated for context limit ${y})`}let v=Lt("generate-commit"),b;if(f.reasoning){let x={...f.thinkingLevelMap??{}};for(let A of["off","minimal","low","medium","high"])if(!(A in x))x[A]=A;b=["off","minimal","low","medium","high","xhigh","max"].find((A)=>typeof x[A]==="string")??"low",f.thinkingLevelMap=x}console.log(`[generate-commit] start provider=${o} model=${s} maxTokens=${a} ctx=${y??"unknown"} diffLen=${c.length} promptLen=${g.length} reasoningHint=${b??"<omitted>"}`),v("start",`provider=${o} model=${s} maxTokens=${a} ctx=${y??"unknown"} diffLen=${c.length} promptLen=${g.length} reasoningHint=${b??"<omitted>"}`),v("diff-preview",g.slice(0,50).replace(/\n/g,"\\n"));let _=new AbortController,m=setTimeout(()=>_.abort(),i3);try{let x={apiKey:h.auth.apiKey,headers:h.auth.headers,maxTokens:a,timeoutMs:i3,maxRetries:0,cacheRetention:"none",signal:_.signal};if(b!==void 0)x.reasoning=b;let D=await Ate(p,{messages:[{role:"user",content:Fte+g,timestamp:Date.now()}]},x);if(D.stopReason==="error"||D.stopReason==="aborted"){let E=D.errorMessage??(_.signal.aborted?"Generation timed out":"Model error");return console.error(`[generate-commit] failed provider=${o} model=${s} stopReason=${D.stopReason} error=${E}`),v("failed",`provider=${o} model=${s} stopReason=${D.stopReason} error=${E.slice(0,300)}`),w.json({error:E},{status:500})}let A=D.content.filter((E)=>E.type==="text").map((E)=>E.text).join("").trim().replace(/^```[\s\S]*?```$/m,(E)=>E.replace(/^```.*\n|\n```$/g,"").trim()).trim();if(v("result",`stopReason=${D.stopReason??"unknown"} contentTypes=${D.content.map((E)=>E.type).join(",")} textLen=${A.length} error=${D.errorMessage??""}`),!A){let E=D.stopReason==="length"||D.content.length>0&&D.content.every((C)=>C.type!=="text")?"(可能是推理模型上下文/ tokens 不足,尝试换用更大的 maxTokens 或非推理模型)":"",U=`Model returned empty message (stopReason=${D.stopReason??"unknown"})${E}`;return console.warn(`[generate-commit] empty text provider=${o} model=${s} maxTokens=${a} stopReason=${D.stopReason??"unknown"} content=${JSON.stringify(D.content).slice(0,600)} error=${D.errorMessage??""} frontendError=${U}`),v("empty",U),w.json({error:U},{status:500})}return v("success",`provider=${o} model=${s} stopReason=${D.stopReason??"unknown"} len=${A.length} preview=${A.slice(0,50).replace(/\n/g,"\\n")}`),console.log(`[generate-commit] success provider=${o} model=${s} stopReason=${D.stopReason??"unknown"} len=${A.length}`),w.json({message:A})}finally{clearTimeout(m)}}catch(r){let i=r instanceof Error?r.message:String(r);return console.error(`[generate-commit] exception provider=${t||"unknown"} model=${n||"unknown"} error=${i.slice(0,800)}`),w.json({error:i},{status:500})}}var Rb={};Q(Rb,{POST:()=>Pte});async function Pte(e){try{let t=await e.json(),n=await Mn(t.cwd);if(!n.ok)return w.json({error:n.error},{status:n.status});let r=await QF(n.cwd);if(!r.ok)return w.json({error:r.error},{status:400});return w.json({ok:!0,output:r.output})}catch(t){return w.json({error:t instanceof Error?t.message:String(t)},{status:500})}}var Fb={};Q(Fb,{POST:()=>Ite});async function Ite(e){try{let t=await e.json(),n=await Mn(t.cwd);if(!n.ok)return w.json({error:n.error},{status:n.status});let r=await e3(n.cwd);if(!r.ok)return w.json({error:r.error},{status:400});return w.json({ok:!0,output:r.output})}catch(t){return w.json({error:t instanceof Error?t.message:String(t)},{status:500})}}var Zb={};Q(Zb,{GET:()=>Jte});function Ob(){let e={};return e.promise=new Promise((t,n)=>{e.resolve=t,e.reject=n}),e}import{mkdirSync as Nte,readFileSync as nf,writeFileSync as u3,existsSync as Bte}from"node:fs";import{dirname as Lte,join as Bb}from"node:path";import{getAgentDir as Lb}from"@earendil-works/pi-coding-agent";var Qd=["off","minimal","low","medium","high","xhigh","max"];var o3=[{label:{en:"Explore project","zh-CN":"阅读项目"},message:{en:"Explore the current project and summarize the overall directory structure and responsibilities of core modules.","zh-CN":"阅读当前项目,总结整体目录结构与核心模块的职责。"}},{label:{en:"Review workspace changes","zh-CN":"审查工作区改动"},message:{en:"Review all changes in the current workspace, point out potential issues and improvements.","zh-CN":"审查当前工作区的所有改动,指出潜在问题与改进点。"}},{label:{en:"Find and fix bugs","zh-CN":"寻找并修复bug"},message:{en:"Inspect the current codebase, find and fix existing bugs.","zh-CN":"检查当前代码,寻找并修复其中存在的 bug。"}}];var s3=o3;var ef=new Map;function Wb(e){return Bb(e??Lb(),"pi-web","config.json")}function Wte(e){return Bb(e??Lb(),"pi-web-preferences.json")}function l3(e){try{if(Bte(Wb(e)))return;let t=JSON.parse(nf(Wte(e),"utf8"));jb({firstPaint:{locale:$b(t.firstPaint?.locale),fontScale:Vb(t.firstPaint?.fontScale)},preferences:t.preferences??{}},e)}catch{}}function Qr(e){let t=e===void 0,n=e??"",r=t?ef.get(n):void 0;if(!t||r===void 0||r===null)try{let d=nf(Wb(e),"utf8"),f=JSON.parse(d);r={firstPaint:{locale:$b(f.firstPaint?.locale),fontScale:Vb(f.firstPaint?.fontScale)},preferences:f.preferences??{},theme:tf(e)},ef.set(n,r)}catch{if(r={firstPaint:{},preferences:{},theme:tf(e)},t)ef.set(n,r)}let i=Hb(ds("defaultThinkingLevel",e)),o=Gb(e),s=zb(e),a=Ib(ds("defaultProjectTrust",e)),c=m3(e),u=Xb(e);return{...r,theme:tf(e),...i!==void 0?{defaultThinkingLevel:i}:{},...o!==void 0?{compaction:o}:{},...s!==void 0?{retry:s}:{},...a!==void 0?{defaultProjectTrust:a}:{},...c!==void 0?{subagents:c}:{},...u!==void 0?{piSettings:u}:{}}}function jb(e,t){try{let n=Wb(t);Nte(Lte(n),{recursive:!0});let r={firstPaint:e.firstPaint,preferences:e.preferences};if(u3(n,JSON.stringify(r,null,2),"utf8"),t===void 0)ef.set("",e)}catch{}}function d3(e,t){let n=Qr(t),r={...n.firstPaint,...e.locale!==void 0?{locale:$b(e.locale)??n.firstPaint.locale}:{},...e.fontScale!==void 0?{fontScale:Vb(e.fontScale)??n.firstPaint.fontScale}:{}},i=n.theme;if(e.theme!==void 0)i=Gte(e.theme,t);let o=e.defaultThinkingLevel===void 0?ds("defaultThinkingLevel",t):Nb("defaultThinkingLevel",Hb(e.defaultThinkingLevel),t),s=e.compaction===void 0?Gb(t):jte(e.compaction,t),a=e.retry===void 0?zb(t):$te(e.retry,t),c=e.defaultProjectTrust===void 0?Ib(ds("defaultProjectTrust",t)):(()=>{let h=Ib(e.defaultProjectTrust);if(h===void 0)return;return Nb("defaultProjectTrust",h,t),h})(),u=e.subagents===void 0?m3(t):Hte(e.subagents,t),d=e.piSettings===void 0?Xb(t):zte(e.piSettings,t),f={firstPaint:r,preferences:n.preferences,theme:i,defaultThinkingLevel:o,...s!==void 0?{compaction:s}:{},...a!==void 0?{retry:a}:{},...c!==void 0?{defaultProjectTrust:c}:{},...u!==void 0?{subagents:u}:{},...d!==void 0?{piSettings:d}:{}};return jb(f,t),f}function qb(e,t){let n=Qr(t),r={firstPaint:n.firstPaint,preferences:{...n.preferences,...e},theme:n.theme};return jb(r,t),r}function f3(e){let{preferences:t}=Qr(e);if(t.startScreenMessages!==void 0)return;qb({startScreenMessages:s3},e)}function $b(e){return e==="en"||e==="zh-CN"?e:void 0}function h3(e){return e==="dark"||e==="light"?e:void 0}function Hb(e){return typeof e==="string"&&Qd.includes(e)?e:void 0}function p3(e){if(typeof e!=="object"||e===null)return;let t=e;if(typeof t.enabled!=="boolean")return;if(typeof t.reserveTokens!=="number"||!Number.isInteger(t.reserveTokens)||t.reserveTokens<=0)return;if(typeof t.keepRecentTokens!=="number"||!Number.isInteger(t.keepRecentTokens)||t.keepRecentTokens<=0)return;return{enabled:t.enabled,reserveTokens:t.reserveTokens,keepRecentTokens:t.keepRecentTokens}}function Gb(e){return p3(fs("compaction",e))}function jte(e,t){let n=p3(e);if(!n)return Gb(t);return bc("compaction",n,t),n}function qte(e){if(typeof e!=="object"||e===null)return;let t=e,n={};if(typeof t.timeoutMs==="number"&&Number.isInteger(t.timeoutMs)&&t.timeoutMs>0)n.timeoutMs=t.timeoutMs;if(typeof t.maxRetries==="number"&&Number.isInteger(t.maxRetries)&&t.maxRetries>0)n.maxRetries=t.maxRetries;if(typeof t.maxRetryDelayMs==="number"&&Number.isInteger(t.maxRetryDelayMs)&&t.maxRetryDelayMs>0)n.maxRetryDelayMs=t.maxRetryDelayMs;return Object.keys(n).length>0?n:void 0}function g3(e){if(typeof e!=="object"||e===null)return;let t=e;if(typeof t.maxRetries!=="number"||!Number.isInteger(t.maxRetries)||t.maxRetries<=0)return;if(typeof t.baseDelayMs!=="number"||!Number.isInteger(t.baseDelayMs)||t.baseDelayMs<=0)return;let n={maxRetries:t.maxRetries,baseDelayMs:t.baseDelayMs};if(typeof t.enabled==="boolean")n.enabled=t.enabled;let r=qte(t.provider);if(r!==void 0)n.provider=r;return n}function zb(e){return g3(fs("retry",e))}function $te(e,t){let n=g3(e);if(!n)return zb(t);return bc("retry",n,t),n}function Ib(e){if(e==="ask"||e==="always"||e==="never")return e;if(e==="trust")return"always";if(e==="deny")return"never";return}function Mb(e){if(typeof e!=="object"||e===null)return;let t=e,n={};if(typeof t.defaultModel==="string"&&t.defaultModel.trim()!=="")n.defaultModel=t.defaultModel;let r=Hb(t.defaultThinking);if(r!==void 0)n.defaultThinking=r;return Object.keys(n).length>0?n:void 0}function m3(e){return Mb(fs("subagents",e))}function Hte(e,t){let n=Mb(e);if(n===void 0)return;let r=fs("subagents",t),i=typeof r==="object"&&r!==null?{...r}:{};if(n.defaultModel!==void 0)i.defaultModel=n.defaultModel;else delete i.defaultModel;if(n.defaultThinking!==void 0)i.defaultThinking=n.defaultThinking;else delete i.defaultThinking;return bc("subagents",i,t),Mb(i)}function fs(e,t){try{return JSON.parse(nf(y3(t),"utf8"))[e]}catch{return}}function bc(e,t,n){try{let r=y3(n),i={};try{i=JSON.parse(nf(r,"utf8"))}catch{i={}}i[e]=t,u3(r,JSON.stringify(i,null,2),"utf8")}catch{}}function ds(e,t){let n=fs(e,t);return typeof n==="string"?n:void 0}function Nb(e,t,n){if(t===void 0)return ds(e,n);return bc(e,t,n),t}function y3(e){return Bb(e??Lb(),"settings.json")}function tf(e){return h3(ds("theme",e))??"light"}function Gte(e,t){let n=h3(e);if(!n)return tf(t);return Nb("theme",n,t),n}function Vb(e){return typeof e==="number"&&Number.isFinite(e)&&e>=0.85&&e<=1.3?e:void 0}var yc=(e)=>typeof e==="boolean"?e:void 0,Pb=(e)=>typeof e==="number"&&Number.isInteger(e)&&e>0?e:void 0,a3=(e)=>typeof e==="string"&&e.trim()!==""?e:void 0;function c3(e,t){if(typeof e!=="object"||e===null)return;let n=e,r={};for(let[i,o]of Object.entries(t)){let s=o(n[i]);if(s!==void 0)r[i]=s}return Object.keys(r).length>0?r:void 0}var b3=[{key:"httpProxy",validate:a3},{key:"httpIdleTimeoutMs",validate:Pb},{key:"websocketConnectTimeoutMs",validate:Pb},{key:"enableAnalytics",validate:yc},{key:"enableInstallTelemetry",validate:yc},{key:"trackingId",validate:a3},{key:"branchSummary",validate:(e)=>c3(e,{reserveTokens:Pb,skipPrompt:yc})},{key:"images",validate:(e)=>c3(e,{autoResize:yc,blockImages:yc})}];function Xb(e){let t={};for(let{key:n,validate:r}of b3){let i=r(fs(n,e));if(i!==void 0)t[n]=i}return Object.keys(t).length>0?t:void 0}function zte(e,t){for(let{key:n,validate:r}of b3){if(!(n in e))continue;let i=r(e[n]);if(i===void 0)continue;bc(n,i,t)}return Xb(t)}var Vte=5000,Xte=60,v3=60000,of=new Map,rf=new Set,Kb=new Map,vc=new Map;function Kte(){let e=Qr().preferences.gitAutoFetchIntervalSec;return typeof e==="number"&&Number.isFinite(e)?e:Xte}function Zte(e){let t=Kb.get(e);if(t)return t;let n=Ob();Kb.set(e,n.promise);let r;return(async()=>{try{let i=await Promise.race([(async()=>{let o=await t3(e);if(!o.ok)return{ok:!1,error:o.error};let s=await Tb(e);return{ok:!0,snapshot:{ahead:s.ahead,behind:s.behind,updatedAt:Date.now()}}})(),new Promise((o,s)=>{r=setTimeout(()=>s(Error(`git fetch timeout after ${v3/1000}s`)),v3),r.unref?.()})]);n.resolve(i)}catch(i){n.resolve({ok:!1,error:i instanceof Error?i.message:String(i)})}finally{if(r)clearTimeout(r);Kb.delete(e)}})(),n.promise}async function x3(e){let t=new Map;for(let n of e){let r=null;try{r=await In(n)}catch{r=null}if(!r)continue;let i=t.get(r);if(i)i.push(n);else t.set(r,[n])}return t}async function _3(e,t){await Promise.all(Array.from(e,async([n,r])=>{let i=await Zte(n);if(!i.ok){console.warn(`[git-autofetch] fetch failed for ${n}: ${i.error}`);return}for(let o of r)of.set(on(o),i.snapshot);vc.set(n,t)}))}async function Yte(e=Date.now()){let t=j2();for(let s of[...rf])if(!t.includes(s))rf.delete(s);let n=new Set(t);for(let s of[...of.keys()])if(!n.has(s))of.delete(s);if(t.length===0){vc.clear();return}let r=Kte(),i=await x3(t);for(let s of[...vc.keys()])if(!i.has(s))vc.delete(s);if(r<=0){let s=t.filter((c)=>!rf.has(c));if(s.length===0)return;let a=await x3(s);await _3(a,e);for(let c of s)rf.add(c);return}let o=new Map;for(let[s,a]of i){let c=vc.get(s)??0;if(e-c<r*1000)continue;o.set(s,a)}if(o.size===0)return;await _3(o,e)}function w3(e){return of.get(on(e))??null}function D3(){setInterval(()=>{Yte()},Vte).unref()}async function Jte(e){try{let t=new URL(e.url).searchParams.get("cwd")??void 0,n=await Mn(t);if(!n.ok)return w.json({error:n.error},{status:n.status});let r=w3(n.cwd);if(!r)return w.json({ok:!0,cached:!1});return w.json({ok:!0,cached:!0,...r})}catch(t){return w.json({error:t instanceof Error?t.message:String(t)},{status:500})}}var Yb={};Q(Yb,{POST:()=>ene});import Qte from"node:fs";async function ene(e){try{let t=await e.json(),n=t.cwd?.trim()??"",r=t.filePath?.trim()??"",i=t.action==="unstage"?"unstage":"stage";if(!n||!n.startsWith("/")&&!at(n))return w.json({error:"cwd must be an absolute path"},{status:400});if(!r||!r.startsWith("/")&&!at(r))return w.json({error:"filePath must be an absolute path"},{status:400});let o=await le();if(!Xe(n,o))return w.json({error:"Access denied"},{status:403});let s;try{s=Qte.statSync(n)}catch{return w.json({error:"Directory not found"},{status:404})}if(!s.isDirectory())return w.json({error:"Not a directory"},{status:400});if(!ye(n,o))return w.json({error:"Access denied"},{status:403});let a=i==="unstage"?await YF(n,r):await ZF(n,r);if(!a.ok)return w.json({error:a.error},{status:400});return w.json({ok:!0})}catch(t){return w.json({error:t instanceof Error?t.message:String(t)},{status:500})}}var Jb={};Q(Jb,{GET:()=>nne});import tne from"node:fs";async function nne(e){try{let t=e.nextUrl.searchParams.get("cwd")?.trim()??"";if(!t||!t.startsWith("/")&&!at(t))return w.json({error:"cwd must be an absolute path"},{status:400});let n=await le();if(!Xe(t,n))return w.json({error:"Access denied"},{status:403});let r;try{r=tne.statSync(t)}catch{return w.json({error:"Directory not found"},{status:404})}if(!r.isDirectory())return w.json({error:"Not a directory"},{status:400});if(!ye(t,n))return w.json({error:"Access denied"},{status:403});return w.json(await KF(t))}catch(t){return w.json({error:t instanceof Error?t.message:String(t)},{status:500})}}var Qb={};Q(Qb,{GET:()=>ine});import{homedir as rne}from"node:os";async function ine(){return w.json({home:rne()})}var tv={};Q(tv,{GET:()=>fne,dynamic:()=>lne,loadModels:()=>ei});import{stat as one}from"node:fs/promises";import{resolve as sne}from"node:path";import{getSupportedThinkingLevels as ane}from"@earendil-works/pi-ai";import{createAgentSessionServices as cne,getAgentDir as T3}from"@earendil-works/pi-coding-agent";var sf=null;function E3(e){if(sf)return;let t=(async()=>{for(let n of e)await Promise.allSettled([n()])})();sf=t,t.then(()=>{sf=null})}function Nn(){return sf??Promise.resolve()}import{resolveModelScopeWithDiagnostics as une}from"@earendil-works/pi-coding-agent";var lne="force-dynamic",ev=new Intl.Collator(void 0,{numeric:!0,sensitivity:"base"});function dne(e,t){return ev.compare(e.name||e.id,t.name||t.id)||ev.compare(e.provider,t.provider)||ev.compare(e.id,t.id)}async function ei(e){let t=new Map,n=[],r=null,i={},o={},s={},a=T3(),c=io(e,a),u=await cne({cwd:e,agentDir:a,...c?{resourceLoaderReloadOptions:c}:{}}),d=u.modelRuntime.getError(),f=u.settingsManager,h=f.getEnabledModels(),p=await xu(u.modelRuntime,h),{visible:g,thinkingLevelPins:y,warnings:v}=p,b=await so(),_=await oo(),m=new Set,x=[],D=[],A=(h??[]).map((S)=>S.trim()).filter(Boolean);if(b.length>0){let S=new Map;for(let B of await u.modelRuntime.getAvailable())S.set(`${B.provider}/${B.id}`,B);for(let B of b){if(_.has(B.toLowerCase()))continue;let G=(await pi(B)).map((T)=>Gh(B,T)).filter((T)=>T!==null);if(G.length===0)continue;m.add(B);for(let T of G)D.push(S.get(`${B}/${T.id}`)??T);for(let T of await hne(B,G,A))x.push(S.get(`${B}/${T.id}`)??T)}}let E=[...g.filter((S)=>!m.has(S.provider)),...x];n=E.map((S)=>({id:S.id,name:S.name,provider:S.provider})).sort(dne);for(let S of E){let B=`${S.provider}/${S.id}`;if(t.set(B,S.name),i[B]=ane(S),S.thinkingLevelMap)o[B]=S.thinkingLevelMap}let U=[...u.modelRuntime.getModels().filter((S)=>!m.has(S.provider)),...D];for(let S of U){let B=`${S.provider}/${S.id}`;s[B]={id:S.id,name:S.name,api:S.api,provider:S.provider,baseUrl:S.baseUrl,reasoning:S.reasoning,...S.thinkingLevelMap?{thinkingLevelMap:S.thinkingLevelMap}:{},input:[...S.input],cost:{input:S.cost.input,output:S.cost.output,cacheRead:S.cost.cacheRead,cacheWrite:S.cost.cacheWrite},contextWindow:S.contextWindow,maxTokens:S.maxTokens,...S.samplingParams?{samplingParams:S.samplingParams}:{},...S.headers?{headers:S.headers}:{},...S.compat?{compat:S.compat}:{}}}let C=f.getDefaultProvider(),N=f.getDefaultModel(),F=_u(p,{...C&&N?{defaultModel:{provider:C,modelId:N}}:{}});if(F.model&&E.some((S)=>S.provider===F.model.provider&&S.id===F.model.id))r={provider:F.model.provider,modelId:F.model.id};return S2({models:Object.fromEntries(t),modelList:n,defaultModel:r,thinkingLevels:i,thinkingLevelMaps:o,thinkingLevelPins:y,definitions:s,...v.length>0?{modelScopeWarnings:v}:{}},d)}async function fne(e){await Nn();let t=new URL(e.url),n=t.searchParams.has("cwd"),r=n?t.searchParams.get("cwd"):T3(),i=sne(r),o;try{o=await one(i)}catch{return Response.json({error:`Directory does not exist: ${i}`},{status:400})}if(!o.isDirectory())return Response.json({error:`Not a directory: ${i}`},{status:400});if(n){let s=await le();if(!ye(i,s))return Response.json({error:"Access denied"},{status:403})}try{let a={...await Er(i,()=>ei(i))};return delete a.definitions,Response.json(a)}catch(s){return console.error("[api/models] failed to build model list:",s),Response.json({error:s instanceof Error?s.message:String(s)},{status:500})}}async function hne(e,t,n){if(n.length===0)return t;let r=[],i=!1;for(let u of n){let d=u.indexOf("/");if(d===-1){i=!0,r.push(u);continue}let f=u.slice(0,d).trim().toLowerCase();if(!f||/[*?[]/.test(f)){i=!0,r.push(u);continue}r.push(u)}let o=e.toLowerCase(),s=i?r:r.filter((u)=>u.slice(0,u.indexOf("/")).trim().toLowerCase()===o);if(!i&&s.length===0)return t;let a={getAvailable:async()=>t},{scopedModels:c}=await une(s,a);return c.map((u)=>u.model)}import nv from"node:fs";var pne=new Set(["select","confirm","input","editor"]),gne=new Set(["agent_settled","prompt_done","prompt_error","extension_error"]),mne=new Set(["turn_start","turn_end"]);function yne(e){if(mne.has(e.type))return null;if(e.type==="message_update"){let n=e.assistantMessageEvent;if(!n||typeof n.type!=="string")return e;let r={type:n.type};if(typeof n.delta==="string")r.delta=n.delta;if(typeof n.contentIndex==="number")r.contentIndex=n.contentIndex;if(n.type==="toolcall_end"&&n.toolCall&&typeof n.toolCall==="object")r.toolCall=n.toolCall;return{type:"message_update",assistantMessageEvent:r}}if(e.type==="message_start"||e.type==="message_end")return e;if(e.type==="agent_end")return{type:"agent_end"};return e}var ur=new Map,cf=null,uf=null;function Ft(e,t,n){try{e.ws.send(JSON.stringify({ch:t,data:n}))}catch{}}function S3(e,t){let n=ur.get(e);if(!n)return;for(let r of n){if(e==="global"){let i=t,o=i.type==="extension_ui_request"&&pne.has(i.method),s=typeof i.type==="string"&&gne.has(i.type);if(o)Wt("ui-chain",`3 ws broadcast ${String(i.method)}`,`id=${String(i.id).slice(0,8)} sid=${String(i.sessionId).slice(0,8)} conns=${n.size}`);if(!s){let a=i.sessionId;if(a&&!r.seenSessions.has(a))continue}Ft(r,e,t);continue}if(e==="running"){Ft(r,e,{type:"running",...A3(t,r.seenSessions)});continue}Ft(r,e,t)}}function bne(e){if(e==="global"&&!cf)cf=V2((t,n)=>{let r=yne(n);if(r)S3("global",{sessionId:t,...r})});if(e==="running"&&!uf)uf=G2((t)=>S3("running",t))}function A3(e,t){let n=e.runningSessionIds.filter((s)=>t.has(s)),r={},i={},o={};for(let s of n){if(e.phases[s]!==void 0)r[s]=e.phases[s];if(e.phaseSince[s]!==void 0)i[s]=e.phaseSince[s];if(e.busySince[s]!==void 0)o[s]=e.busySince[s]}return{runningSessionIds:n,phases:r,phaseSince:i,busySince:o}}function vne(e){if(e==="global"&&ur.get("global")?.size===0)cf?.(),cf=null;if(e==="running"&&ur.get("running")?.size===0)uf?.(),uf=null}function C3(e,t){let n=ur.get(t);if(!n)n=new Set,ur.set(t,n);if(n.add(e),!e.channels.has(t))e.channels.set(t,{kind:"passive"});bne(t)}function af(e,t){let n=e.channels.get(t);if(!n)return;if(e.channels.delete(t),n.kind==="agent")n.unsubscribe();if(n.kind==="watch")try{n.watcher.close()}catch{}if(ur.get(t)?.delete(e),n.kind==="passive")vne(t);if(n.kind==="agent"){let r=ur.get(t);if(!r||r.size===0){let i=t.slice(6);bt(i)?.cancelPendingUiResponses()}}}async function xne(e,t){let n=`agent:${t}`;if(e.seenSessions.add(t),e.channels.has(n))return;let r=bt(t);if(!r?.isAlive()){let o=await We(t);if(!o){Ft(e,n,{type:"not_found",sessionId:t});return}try{({session:r}=await fi(t,o,void 0))}catch(s){Ft(e,n,{type:"start_failed",sessionId:t,message:String(s)});return}}e.channels.set(n,{kind:"agent",unsubscribe:()=>{}}),ur.get(n)?.add(e),Ft(e,n,{type:"connected",sessionId:t});let i=r.getPendingUiRequests();for(let o of i)Ft(e,"global",{...o,sessionId:t})}function _ne(e,t){let n=t,r=`watch:${n}`,i;try{i=nv.statSync(n)}catch{Ft(e,r,{event:"error",message:"Not found"});return}if(!i.isFile()){Ft(e,r,{event:"error",message:"Not a file"});return}let o,s=i.mtimeMs,a=i.size;try{o=nv.watch(n,()=>{try{let c=nv.statSync(n);if(c.mtimeMs===s&&c.size===a)return;s=c.mtimeMs,a=c.size,Ft(e,r,{event:"change",mtime:c.mtime.toISOString(),size:c.size})}catch{Ft(e,r,{event:"change",mtime:new Date().toISOString(),size:0})}})}catch{Ft(e,r,{event:"error",message:"Failed to watch file"});return}o.on("error",()=>{af(e,r)}),e.channels.set(r,{kind:"watch",watcher:o}),ur.get(r)?.add(e),Ft(e,r,{event:"connected",filePath:n})}async function wne(e,t){switch(t.ch){case"global":{C3(e,"global");return}case"running":{C3(e,"running"),Ft(e,"running",{type:"running",...A3(Ls(),e.seenSessions)});return}case"agent":{let n=typeof t.sessionId==="string"?t.sessionId:"";if(n)await xne(e,n);return}case"watch":{if(typeof t.filePath==="string"&&t.filePath)_ne(e,t.filePath);return}default:return}}function Dne(e){if(!Et(e))return!1;let t=process.env.PI_WEB_PASSWORD;if(Ms(t)&&!ou(e.headers.get("authorization"),t))return!1;return!0}var rv=null;function iv(e){rv=e((t)=>{if(!Dne(t.req.raw))return{onOpen:(i,o)=>o.close(1008,"untrusted")};let n={ws:null,channels:new Map,seenSessions:new Set},r=null;return{onOpen:(i,o)=>{n.ws=o,o.send(JSON.stringify({type:"connected"})),r=setInterval(()=>{try{o.send(JSON.stringify({type:"ping"}))}catch{}},30000)},onMessage:async(i)=>{if(typeof i.data!=="string")return;let o;try{o=JSON.parse(i.data)}catch{return}if(o.type==="sub")await wne(n,o);else if(o.type==="unsub"&&typeof o.ch==="string")af(n,o.ch);else if(o.type==="unseen"&&typeof o.sessionId==="string"){let s=o.sessionId;n.seenSessions.delete(s);let a=`agent:${s}`;if(n.channels.has(a))af(n,a)}},onClose:()=>{if(r)clearInterval(r);for(let i of[...n.channels.keys()])af(n,i)}}})}function U3(e){e.get("/api/ws",(t,n)=>rv?rv(t,n):n())}var sv={};Q(sv,{GET:()=>qne,dynamic:()=>Mne});var Ene={anthropic:["api.anthropic.com"],google:["generativelanguage.googleapis.com"],openai:["api.openai.com"],openrouter:["openrouter.ai"]},Tne=new Set(["text","image"]);function $i(e){return typeof e==="object"&&e!==null&&!Array.isArray(e)}function lf(e){return typeof e==="string"&&e.trim()?e.trim():void 0}function df(e){return typeof e==="number"&&Number.isFinite(e)&&e>=0?e:void 0}function k3(e){return typeof e==="number"&&Number.isFinite(e)&&e>0?e:void 0}function Sne(e){if(!$i(e))return{};return{input:df(e.input),output:df(e.output),cacheRead:df(e.cache_read),cacheWrite:df(e.cache_write)}}function Cne(e){if(!$i(e)||!Array.isArray(e.input))return;let t=Array.from(new Set(e.input.filter((n)=>typeof n==="string").map((n)=>n.trim().toLocaleLowerCase()).filter((n)=>Tne.has(n))));return t.length?t:void 0}function ff(e){return e.trim().toLocaleLowerCase().replace(/[^a-z0-9]/g,"")}function R3(e){return e.trim().toLocaleLowerCase().replace(/^models\//,"")}function F3(e){if(!e)return;try{return new URL(e).hostname.toLocaleLowerCase().replace(/\.$/,"")}catch{return}}function Ane(e,t){return e===t||e.endsWith(`.${t}`)}function Une(e,t){let n=ff(t);if(!n)return!1;return ff(e.providerId)===n||ff(e.providerName)===n}function kne(e,t){let n=F3(t);if(!n)return!1;let r=Ene[ff(e.providerId)]??[],i=F3(e.providerBaseUrl);return[...r,...i?[i]:[]].some((o)=>Ane(n,o))}function Rne(e,t){let n=R3(t);if(!n)return!1;let r=R3(e.id),i=`${e.providerId.toLocaleLowerCase()}/${r}`;return r===n||i===n}function ov(e){return e.cost.input!==void 0&&e.cost.output!==void 0}function xc(e,t,n){if(e.length===0||t<=0)return;let r=new Map;for(let s of e){let a=n(s),c=r.get(a);if(c)c.count+=1;else r.set(a,{value:s,count:1})}let i=[...r.values()].sort((s,a)=>a.count-s.count),o=i[0];if(!o||o.count/t<0.6)return;if(i[1]?.count===o.count)return;return o.value}function O3(e){if(e.length===0)return;let t=new Map;for(let r of e)t.set(r,(t.get(r)??0)+1);let n=[...t.entries()].sort((r,i)=>i[1]-r[1]);if(!n[0]||n[1]?.[1]===n[0][1])return;return n[0][0]}function Fne(e){return{name:e.name,reasoning:e.reasoning,input:e.input,contextWindow:e.contextWindow,maxTokens:e.maxTokens}}function One(e){let t=e.length;return{name:xc(e.map((n)=>n.name),t,(n)=>n.toLocaleLowerCase()),reasoning:xc(e.flatMap((n)=>n.reasoning===void 0?[]:[n.reasoning]),t,String),input:xc(e.flatMap((n)=>n.input?[n.input]:[]),t,(n)=>[...n].sort().join(",")),contextWindow:xc(e.flatMap((n)=>n.contextWindow===void 0?[]:[n.contextWindow]),t,String),maxTokens:xc(e.flatMap((n)=>n.maxTokens===void 0?[]:[n.maxTokens]),t,String)}}function P3(e,t){return{status:"reliable",method:t,cost:e.cost,providerId:e.providerId,providerName:e.providerName,support:1,total:1}}function Pne(e){let t=e.filter(ov);if(t.length===0)return{status:"unreliable",reason:"no-valid-price",support:0,total:0};if(t.length===1)return{status:"unreliable",reason:"insufficient-support",support:1,total:1};let n=new Map;for(let a of t){let c=JSON.stringify([a.cost.input,a.cost.output]),u=n.get(c);if(u)u.push(a);else n.set(c,[a])}let r=[...n.values()].sort((a,c)=>c.length-a.length),i=r[0];if(!i)return{status:"unreliable",reason:"no-valid-price",support:0,total:t.length};if(r[1]?.length===i.length||i.length/t.length<0.6)return{status:"unreliable",reason:"conflict",support:i.length,total:t.length};let o=O3(i.flatMap((a)=>a.cost.cacheRead===void 0?[]:[a.cost.cacheRead])),s=O3(i.flatMap((a)=>a.cost.cacheWrite===void 0?[]:[a.cost.cacheWrite]));return{status:"reliable",method:"consensus",cost:{input:i[0].cost.input,output:i[0].cost.output,cacheRead:o,cacheWrite:s},support:i.length,total:t.length}}function I3(e){if(!$i(e))return[];let t=[];for(let[n,r]of Object.entries(e)){if(!$i(r)||!$i(r.models))continue;let i=lf(r.name)??n,o=lf(r.api);for(let[s,a]of Object.entries(r.models)){if(!$i(a))continue;let c=lf(a.id)??s;if(!c)continue;let u=lf(a.name)??c,d={key:`${n}/${c}`,providerId:n,providerName:i,id:c,name:u,cost:Sne(a.cost)};if(o)d.providerBaseUrl=o;if(typeof a.reasoning==="boolean")d.reasoning=a.reasoning;let f=Cne(a.modalities);if(f)d.input=f;if($i(a.limit)){let h=k3(a.limit.context),p=k3(a.limit.output);if(h!==void 0)d.contextWindow=h;if(p!==void 0)d.maxTokens=p}t.push(d)}}return t}function M3(e,t,n="",r=""){let i=e.filter((p)=>Rne(p,t));if(i.length===0)return{exactMatches:0,metadataMethod:"none",preset:{},price:{status:"unreliable",reason:"no-exact-match",support:0,total:0}};let o=i.filter((p)=>Une(p,n)),s=i.filter((p)=>kne(p,r)),a=o[0]??s[0],c=o.length?"provider":s.length?"base-url":"consensus",u=a?Fne(a):One(i),d=o.find(ov),f=s.find(ov),h=d?P3(d,"provider"):f?P3(f,"base-url"):Pne(i);if(h.status==="reliable")u.cost=h.cost;return{exactMatches:i.length,metadataMethod:c,matchedProviderId:a?.providerId,matchedProviderName:a?.providerName,preset:u,price:h}}function Ine(e,t,n){let r=e.id.toLocaleLowerCase(),i=e.name.toLocaleLowerCase(),o=e.providerId.toLocaleLowerCase(),s=e.providerName.toLocaleLowerCase(),a=`${o}/${r}`,c=20;if(!t)c=10;else if(r===t||a===t)c=0;else if(i===t)c=1;else if(r.startsWith(t)||i.startsWith(t))c=2;else if(a.startsWith(t)||o===t||s===t)c=3;else if(r.includes(t)||i.includes(t))c=4;else if(a.includes(t)||s.includes(t))c=5;if(c<20&&n&&(o===n||s===n))c-=0.5;return c}function N3(e,t,n="",r=50){let i=t.trim().toLocaleLowerCase(),o=n.trim().toLocaleLowerCase(),s=Math.max(1,Math.min(100,Math.floor(r)||50));return e.map((a)=>({entry:a,rank:Ine(a,i,o)})).filter(({rank:a})=>!i||a<20).sort((a,c)=>a.rank-c.rank||a.entry.providerName.localeCompare(c.entry.providerName,void 0,{sensitivity:"base"})||a.entry.name.localeCompare(c.entry.name,void 0,{numeric:!0,sensitivity:"base"})||a.entry.id.localeCompare(c.entry.id,void 0,{numeric:!0,sensitivity:"base"})).slice(0,s).map(({entry:a})=>a)}var Mne="force-dynamic",B3="https://models.dev/api.json",Nne=3600000,Bne=15000;function Lne(){return globalThis.__piModelsDevCatalogCache??={entries:[],expiresAt:0}}async function Wne(){let e=await fetch(B3,{cache:"no-store",headers:{Accept:"application/json"},signal:AbortSignal.timeout(Bne)});if(!e.ok)throw Error(`models.dev returned HTTP ${e.status}`);let t=I3(await e.json());if(t.length===0)throw Error("models.dev returned an empty catalog");return t}async function jne(){let e=Lne();if(e.entries.length>0&&e.expiresAt>Date.now())return e.entries;if(!e.inFlight)e.inFlight=Wne().then((t)=>(e.entries=t,e.expiresAt=Date.now()+Nne,t)).finally(()=>{e.inFlight=void 0});try{return await e.inFlight}catch(t){if(e.entries.length>0)return e.entries;throw t}}async function qne(e){let{searchParams:t}=new URL(e.url),n=(t.get("q")??"").slice(0,120),r=(t.get("provider")??"").slice(0,120),i=(t.get("baseUrl")??"").slice(0,500),o=Number.parseInt(t.get("limit")??"50",10),s=Number.isFinite(o)?o:50;try{let a=await jne(),c=N3(a,n,r,s),u=M3(a,n,r,i);return w.json({models:c,recommendation:u,source:B3})}catch(a){return w.json({error:a instanceof Error?a.message:String(a)},{status:502})}}var av={};Q(av,{POST:()=>Qne,dynamic:()=>Kne});import{mkdtempSync as $ne,rmSync as Hne,writeFileSync as Gne}from"node:fs";import{tmpdir as zne}from"node:os";import{join as L3}from"node:path";import{ModelRuntime as Vne}from"@earendil-works/pi-coding-agent";function Xne(e){return typeof e==="object"&&e!==null&&!Array.isArray(e)}function W3(e){if(!Xne(e))return{};return Object.fromEntries(Object.entries(e).filter((t)=>typeof t[1]==="string"))}async function j3(e,t){let n;try{n=$ne(L3(zne(),"pi-web-model-discovery-"));let r=L3(n,"models.json"),i="__pi_web_model_discovery__";Gne(r,JSON.stringify({providers:{[e]:{...t,models:[{id:i}]}}},null,2),"utf8");let o=await Vne.create({modelsPath:r}),s=o.getError();if(s)throw Error(s);let a=o.getModel(e,i);if(!a)throw Error(`Unable to load provider "${e}"`);let c=await o.getAuth(a);if(c)return{apiKey:c.auth.apiKey,headers:W3(c.auth.headers)};return{headers:W3(o.getCompatibilityRequestConfig(a).headers)}}finally{if(n)Hne(n,{recursive:!0,force:!0})}}var Kne="force-dynamic",Zne=20000;function Yne(e){return typeof e==="object"&&e!==null&&!Array.isArray(e)}function _c(e,t){return e.has(t)}function Jne(e,t,n){let r=new Headers(n);if(!_c(r,"accept"))r.set("Accept","application/json");if(!t)return r;if(e==="anthropic-messages"){if(!_c(r,"x-api-key"))r.set("x-api-key",t);if(!_c(r,"anthropic-version"))r.set("anthropic-version","2023-06-01")}else if(e==="google-generative-ai"){if(!_c(r,"x-goog-api-key"))r.set("x-goog-api-key",t)}else if(!_c(r,"authorization"))r.set("Authorization",`Bearer ${t}`);return r}async function Qne(e){try{let t=await e.json(),n=typeof t.providerName==="string"?t.providerName.trim():"";if(!n)return w.json({error:"providerName is required"},{status:400});if(!Yne(t.provider))return w.json({error:"provider is required"},{status:400});let r=typeof t.provider.baseUrl==="string"?t.provider.baseUrl.trim():"";if(!r)return w.json({error:"Base URL is required"},{status:400});let i=typeof t.provider.api==="string"&&t.provider.api?t.provider.api:"openai-completions",o;try{o=Ws(r,i)}catch{return w.json({error:"Base URL is invalid"},{status:400})}let s=await pi(n);if(s.length>0){let h=s.map((p)=>Cr(p)).filter((p)=>p!==null);if(h.length>0)return w.json({models:h})}let a=await j3(n,t.provider);if(typeof t.provider.apiKey==="string"&&t.provider.apiKey.trim()&&!a.apiKey)return w.json({error:`No API key found for "${n}"`},{status:400});let c=await fetch(o,{cache:"no-store",headers:Jne(i,a.apiKey,a.headers),signal:AbortSignal.timeout(Zne)}),u=await c.text();if(!c.ok)return w.json({error:u.slice(0,500)||`Upstream returned HTTP ${c.status}`,status:c.status},{status:502});let d;try{d=JSON.parse(u)}catch{return w.json({error:"Upstream model list was not valid JSON"},{status:502})}let f=Hh(d);if(f.length===0)return w.json({error:"No models found in the upstream response"},{status:502});return await Cu(n,Ar(d)),w.json({models:f,endpoint:o.toString()})}catch(t){let n=t instanceof Error?t.message:String(t),r=t instanceof DOMException&&t.name==="TimeoutError"?504:500;return w.json({error:n},{status:r})}}var cv={};Q(cv,{GET:()=>tre,dynamic:()=>ere});import{getAgentDir as q3}from"@earendil-works/pi-coding-agent";var ere="force-dynamic";async function tre(e){await Nn();let t=new URL(e.url),n=t.searchParams.get("provider")?.trim()??"",r=t.searchParams.get("model")?.trim()??"";if(!n||!r)return Response.json({error:"provider and model are required"},{status:400});try{let o=(await Er(q3(),()=>ei(q3()))).definitions?.[`${n}/${r}`];if(!o)return Response.json({error:`Model not found: ${n}/${r}`},{status:404});return Response.json({model:o})}catch(i){return console.error("[api/models-config/effective] failed:",i),Response.json({error:i instanceof Error?i.message:String(i)},{status:500})}}var uv={};Q(uv,{GET:()=>rre,dynamic:()=>nre});import{getAgentDir as $3}from"@earendil-works/pi-coding-agent";var nre="force-dynamic";async function rre(e){await Nn();let t=new URL(e.url),n=t.searchParams.get("provider")?.trim()??"",r=t.searchParams.get("model")?.trim()??"";if(!n||!r)return Response.json({error:"provider and model are required"},{status:400});try{let o=(await Er($3(),()=>ei($3()))).definitions?.[`${n}/${r}`];if(!o)return Response.json({error:`Model not found: ${n}/${r}`},{status:404});let a=(await pi(n)).find((u)=>Cr(u)?.id===r),c=a?i1(a,o):{};return Response.json({suggestion:c})}catch(i){return console.error("[api/models-config/override-suggestion] failed:",i),Response.json({error:i instanceof Error?i.message:String(i)},{status:500})}}var dv={};Q(dv,{POST:()=>sre,dynamic:()=>ire});var ire="force-dynamic",ore=15000;function lv(e){return typeof e==="object"&&e!==null&&!Array.isArray(e)}async function sre(e){if(!Et(e))return w.json({ok:!1,error:"Untrusted API request"},{status:403});if(!wr(e))return w.json({ok:!1,error:"Content-Type must be application/json"},{status:415});try{let t=await e.json(),n=lv(t.provider)?t.provider:{},r=typeof n.baseUrl==="string"?n.baseUrl.trim():"";if(!r)return w.json({ok:!1,error:"baseUrl is required"},{status:400});let i=typeof n.apiKey==="string"?n.apiKey.trim():"",o=typeof n.api==="string"?n.api:"",s={Accept:"application/json"};if(o==="anthropic-messages"){if(i)s["x-api-key"]=i;s["anthropic-version"]="2023-06-01"}else if(o==="google-generative-ai"){if(i)s["x-goog-api-key"]=i}else if(i)s.Authorization=`Bearer ${i}`;let a=`${r.replace(/\/+$/,"")}/models`,c=await fetch(a,{headers:s,cache:"no-store",signal:AbortSignal.timeout(ore)});if(!c.ok)return w.json({ok:!1,error:`HTTP ${c.status}`},{status:502});let u=await c.json().catch(()=>{return}),d=Array.isArray(u)?u:lv(u)&&Array.isArray(u.data)?u.data:lv(u)&&Array.isArray(u.models)?u.models:[];return w.json({ok:!0,models:d})}catch(t){return w.json({ok:!1,error:t instanceof Error?t.message:String(t)})}}Dc();fv();var vv={};Q(vv,{GET:()=>Ure,PUT:()=>kre,cleanupStaleEnabledModels:()=>bv,dynamic:()=>Sre});import{existsSync as pf,mkdirSync as K3,readFileSync as Z3}from"node:fs";import{dirname as Y3}from"node:path";var Tre=new Set(["off","minimal","low","medium","high","xhigh","max"]),X3=new Set(["amazon-bedrock","ant-ling","anthropic","azure-openai-responses","baseten","cerebras","cloudflare-ai-gateway","cloudflare-workers-ai","deepseek","fireworks","github-copilot","google","google-vertex","groq","huggingface","kimi-coding","minimax","minimax-cn","mistral","moonshotai","moonshotai-cn","nvidia","openai","openai-codex","opencode","opencode-go","openrouter","qwen-token-plan","qwen-token-plan-cn","qwen-token-plan-individual","radius","together","vercel-ai-gateway","xai","xiaomi","xiaomi-token-plan-ams","xiaomi-token-plan-cn","xiaomi-token-plan-sgp","zai","zai-coding-cn"]);function gv(e,t,n){let r=Object.keys(n?.providers??{}),i=t?.providers??{},o=new Set([...r,...Object.keys(i)]);return e.filter((s)=>{if(/[?*[\]]/.test(s)||!s.includes("/"))return!0;let a=s.indexOf("/"),c=s.slice(0,a);if(!o.has(c))return X3.has(c);let u=s.slice(a+1),d=u.lastIndexOf(":");if(d!==-1){let h=u.slice(d+1);if(Tre.has(h))u=u.slice(0,d);else return!0}let f=i[c];if(!f)return!1;if(X3.has(c))return!0;return(f.models??[]).some((h)=>h.id===u)})}var Sre="force-dynamic";function J3(e){return ti("models.json",en("models.json",e))}function yv(e){let t=J3(e);if(!pf(t))return{providers:{}};try{return JSON.parse(Z3(t,"utf8"))}catch{return{providers:{}}}}function Cre(e,t){let n=J3(t),r=Y3(n);if(!pf(r))K3(r,{recursive:!0});wc(n,JSON.stringify(e,null,2))}function Q3(e){return ti("settings.json",en("settings.json",e))}function Ec(e){let t=Q3(e);if(!pf(t))return{};try{return JSON.parse(Z3(t,"utf8"))}catch{return{}}}function mv(e,t){let n=Q3(t),r=Y3(n);if(!pf(r))K3(r,{recursive:!0});wc(n,JSON.stringify(e,null,2))}function Are(e){let t=Ec(e),n=t.defaultProvider,r=t.defaultModel;if(typeof n==="string"&&typeof r==="string"&&n&&r)return{provider:n,modelId:r};return null}function e8(e){let t=Ec(e);return Array.isArray(t.enabledModels)?t.enabledModels.filter((n)=>typeof n==="string"):[]}function bv(e){let t=e8(e);if(t.length===0)return;let n=yv(e),r=gv(t,n,n);if(r.length===t.length)return;let i=Ec(e);i.enabledModels=r,mv(i,e),ke(),console.log(`[models-config] pruned ${t.length-r.length} stale enabledModels entr${t.length-r.length===1?"y":"ies"}: ${t.filter((o)=>!r.includes(o)).join(", ")}`)}async function Ure(e){let t=be(e),n=yv(t);return w.json({providers:n.providers??{},defaultModel:Are(t),enabledModels:e8(t)})}async function kre(e){try{let t=await e.json(),{models:n,defaultModel:r,enabledModels:i}=t,s={...n??t};delete s.enabledModels,delete s.defaultModel,delete s.defaultProvider;let a=yv(be(e));if(Cre(s,be(e)),r&&typeof r.provider==="string"&&typeof r.modelId==="string"){let c=Ec(be(e));c.defaultProvider=r.provider,c.defaultModel=r.modelId,mv(c,be(e))}if(Array.isArray(i)){let c=Ec(be(e));c.enabledModels=gv(i.filter((u)=>typeof u==="string"),s,a),mv(c,be(e))}return ke(),w.json({success:!0})}catch(t){return w.json({error:String(t)},{status:500})}}var _v={};Q(_v,{GET:()=>jre,POST:()=>Wre,dynamic:()=>Ire,getProviderModelsCaches:()=>r8});import{getAgentDir as Rre}from"@earendil-works/pi-coding-agent";import{ModelRuntime as Fre}from"@earendil-works/pi-coding-agent";import{readFile as Ore,readdir as Pre,stat as t8}from"node:fs/promises";import{join as n8}from"node:path";var Ire="force-dynamic",xv=n8(Rre(),"pi-web","provider"),Mre=5000;async function r8(){try{if(!(await t8(xv)).isDirectory())return{}}catch{return{}}let e=await Pre(xv,{withFileTypes:!0}),t={};for(let n of e){if(!n.isDirectory())continue;let r=n8(xv,n.name,"models.json");try{let i=JSON.parse(await Ore(r,"utf-8")),o=Ar(i),s=await t8(r);t[n.name]={modelCount:o.length,lastSyncedAt:s.mtimeMs}}catch{}}return t}function Nre(e){return e.replace(/\$\{(\w+)\}/g,(t,n)=>process.env[n]??"").replace(/\$([A-Z_][A-Z0-9_]*)/g,(t,n)=>process.env[n]??"")}async function Bre(e){let{configFilePath:t,resolveConfigFileDir:n}=await Promise.resolve().then(() => (Dc(),V3)),r=t("models.json",n("models.json")),{readFileSync:i,existsSync:o}=await import("node:fs");if(!o(r))return null;try{let c=JSON.parse(i(r,"utf-8")).providers?.[e];if(!c)return null;let u=typeof c.baseUrl==="string"?c.baseUrl:void 0,d;if(typeof c.apiKey==="string")d=Nre(c.apiKey);return u?{baseUrl:u,apiKey:d}:null}catch{return null}}async function Lre(e,t){let n=t.getProvider(e),r,i={},o=await t.getAvailable();if(n){r=typeof n.baseUrl==="string"&&n.baseUrl.trim()&&n.baseUrl||o.find((p)=>p.provider===e)?.baseUrl||void 0;try{let p=await t.getAuth(e);if(p?.auth?.apiKey)i={Authorization:`Bearer ${p.auth.apiKey}`}}catch{}}else{let p=await Bre(e);if(!p)throw Error(`Provider "${e}" not found in built-in or models.json`);if(r=p.baseUrl,p.apiKey)i={Authorization:`Bearer ${p.apiKey}`}}if(!r||r.trim()==="")throw Error(`Provider "${e}" has no baseUrl configured`);let s=o.find((p)=>p.provider===e)?.api??"",a;try{a=Ws(r,s)}catch{throw Error(`Invalid baseUrl for provider "${e}"`)}let c=await fetch(a,{headers:i,cache:"no-store",signal:AbortSignal.timeout(Mre)});if(!c.ok)throw Error(`Provider "${e}" returned HTTP ${c.status} from ${a}`);let u=await c.text();if(!u.trim())throw Error(`Provider "${e}" returned empty response`);let d=JSON.parse(u),{parseDiscoveredModels:f}=await Promise.resolve().then(() => e1),h=Ar(d);if(f(d).length===0)throw Error(`Provider "${e}" returned no parsable models`);return await Cu(e,h),{count:h.length}}async function Wre(e){try{let{providerName:t}=await e.json();if(typeof t!=="string"||t.trim()==="")return Response.json({error:"providerName is required"},{status:400});let n=t.trim();if(!Tu(n))return Response.json({error:`Invalid providerName: ${JSON.stringify(t)}`},{status:400});let r=await Fre.create({allowModelNetwork:!0}),{count:i}=await Lre(n,r);return ke(),Response.json({count:i})}catch(t){let n=t instanceof Error?t.message:String(t);return Response.json({error:n},{status:500})}}async function jre(){let e=await r8();return Response.json(e)}var wv={};Q(wv,{GET:()=>Yre,PUT:()=>Jre});import{mkdirSync as Hre,readFileSync as Gre,writeFileSync as zre}from"node:fs";import{dirname as Vre,join as Xre}from"node:path";import{getAgentDir as Kre}from"@earendil-works/pi-coding-agent";var qre=Qd;function $re(e){return typeof e==="string"&&qre.includes(e)}function hs(e){if(!e||typeof e!=="object"||Array.isArray(e))return{};let t=e,n=(r)=>{let i=t[r];if(!i||typeof i!=="object"||Array.isArray(i))return;let o={};for(let[s,a]of Object.entries(i))if($re(a))o[s]=a;return Object.keys(o).length>0?o:void 0};return{models:n("models"),providers:n("providers")}}var gf=new Map;function i8(e){return Xre(e??Kre(),"pi-web","model-thinking.json")}function o8(e){let t=e??"",n=gf.get(t);if(n!==void 0&&n!==null)return n;try{let r=Gre(i8(e),"utf8"),i=JSON.parse(r);return n=hs(i),gf.set(t,n),n}catch{return n={},gf.set(t,n),n}}function Zre(e,t){try{let n=i8(t);Hre(Vre(n),{recursive:!0});let r=hs(e);zre(n,JSON.stringify(r,null,2)+`
352
- `,"utf8"),gf.set(t??"",r)}catch{}}function s8(e,t){let n=hs(e);return Zre(n,t),n}async function Yre(e){return w.json(o8(be(e)))}async function Jre(e){try{let t=await e.json(),n=be(e),r=hs(t),i=s8(r,n);return w.json(i)}catch{return w.json({error:"invalid body"},{status:400})}}var Dv={};Q(Dv,{POST:()=>cie,dynamic:()=>oie});import{mkdtempSync as Qre,rmSync as eie,writeFileSync as tie}from"node:fs";import{tmpdir as nie}from"node:os";import{join as a8}from"node:path";import{completeSimple as rie}from"@earendil-works/pi-ai/compat";import{ModelRuntime as iie}from"@earendil-works/pi-coding-agent";var oie="force-dynamic",c8=20000;function u8(e){return typeof e==="object"&&e!==null&&!Array.isArray(e)}function sie(e){return e instanceof Error?e.message:String(e)}function aie(e){return e.content.filter((t)=>t.type==="text").map((t)=>t.text).join("")}async function cie(e){if(!Et(e))return w.json({ok:!1,error:"Untrusted API request"},{status:403});if(!wr(e))return w.json({ok:!1,error:"Content-Type must be application/json"},{status:415});let t;try{let n=await e.json(),r=typeof n.providerName==="string"?n.providerName.trim():"";if(!r)return w.json({ok:!1,error:"providerName is required"},{status:400});if(!u8(n.provider))return w.json({ok:!1,error:"provider is required"},{status:400});if(!u8(n.model))return w.json({ok:!1,error:"model is required"},{status:400});let i=typeof n.model.id==="string"?n.model.id.trim():"";if(!i)return w.json({ok:!1,error:"Model ID is required"},{status:400});t=Qre(a8(nie(),"pi-web-model-test-"));let o=a8(t,"models.json");tie(o,JSON.stringify({providers:{[r]:{...n.provider,models:[{...n.model,id:i}]}}},null,2),"utf8");let s=await iie.create({modelsPath:o}),a=s.getError();if(a)return w.json({ok:!1,error:a});let c=s.getModel(r,i);if(!c)return w.json({ok:!1,error:`Model not found: ${r}/${i}`});let u=await s.getAuth(c);if(!u?.auth.apiKey)return w.json({ok:!1,error:`No API key found for "${r}"`});let d=new AbortController,f=setTimeout(()=>d.abort(),c8),h,p=Date.now();try{let g=await rie(c,{messages:[{role:"user",content:"Reply with OK only.",timestamp:Date.now()}]},{apiKey:u.auth.apiKey,headers:u.auth.headers,maxTokens:16,timeoutMs:c8,maxRetries:0,cacheRetention:"none",signal:d.signal,onResponse:(v)=>{h=v.status}}),y=Date.now()-p;if(g.stopReason==="error"||g.stopReason==="aborted")return w.json({ok:!1,error:g.errorMessage??(d.signal.aborted?"Test timed out":"Model returned an error"),latencyMs:y,status:h});return w.json({ok:!0,latencyMs:y,status:h,responseText:aie(g).slice(0,300)})}finally{clearTimeout(f)}}catch(n){return w.json({ok:!1,error:sie(n)},{status:500})}finally{if(t)eie(t,{recursive:!0,force:!0})}}var Sv={};Q(Sv,{GET:()=>_ie,POST:()=>wie,dynamic:()=>die,fixtureDirFrom:()=>be,readPlugins:()=>Sc});import{existsSync as b8,readFileSync as v8,statSync as Tv}from"node:fs";import{basename as Ev,dirname as Tc,extname as uie,join as yf,relative as lie}from"node:path";import{DefaultPackageManager as x8,getAgentDir as d8,SettingsManager as _8}from"@earendil-works/pi-coding-agent";function l8(e){return/^[!+-].+/.test(e.trim())}Dc();var die="force-dynamic";function bf(){return{extensions:0,skills:0,prompts:0,themes:0}}function w8(e){return e==="project"?"project":"global"}function vf(e,t){return`${t}\x00${e}`}function xf(e){return typeof e==="string"?e:e.source}function f8(e){if(typeof e==="string")return!1;return Array.isArray(e.extensions)&&e.extensions.length===0&&Array.isArray(e.skills)&&e.skills.length===0&&Array.isArray(e.prompts)&&e.prompts.length===0&&Array.isArray(e.themes)&&e.themes.length===0}function fie(e){let t=new Map;for(let n of e.getGlobalSettings().packages??[])t.set(vf(xf(n),"global"),f8(n));for(let n of e.getProjectSettings().packages??[])t.set(vf(xf(n),"project"),f8(n));return t}function h8(e,t,n,r){let i=n==="project"?e.getProjectSettings().packages??[]:e.getGlobalSettings().packages??[],o=!1,s=i.map((a)=>{if(xf(a)!==t)return a;if(o=!0,r)return{...typeof a==="string"?{source:a}:a,extensions:[],skills:[],prompts:[],themes:[]};return xf(a)});if(!o)return!1;if(n==="project")e.setProjectPackages(s);else e.setPackages(s);return!0}function p8(e,t){e[t]+=1}function hie(e,t){let n=Ev(e),r=uie(n);if(t==="skill"&&n.toLowerCase()==="skill.md")return Ev(Tc(e));if((t==="extension"||t==="theme"||t==="prompt")&&r){if(t==="extension"&&/^index\.(ts|js)$/.test(n))return Ev(Tc(e));return n.slice(0,-r.length)}return n}function pie(e){let t=e.metadata.baseDir;if(!t)return e.path;let n=lie(t,e.path);return n&&!n.startsWith("..")?n:e.path}function gie(e){let t=e.startsWith("npm:")?e.slice(4):void 0;if(t){let n=t.lastIndexOf("@"),r=t.startsWith("@")?t.indexOf("/",1):0;if(n>r)return t.slice(n+1)||void 0;return}if(e.startsWith("git:")||/^[a-z]+:\/\//.test(e)){let n=e.lastIndexOf("@"),r=e.lastIndexOf("/"),i=e.lastIndexOf(":");if(n>Math.max(r,i))return e.slice(n+1)||void 0}return}function mie(e){if(!e)return{};try{let n=Tv(e).isDirectory()?yf(e,"package.json"):yf(Tc(e),"package.json");if(!b8(n))return{};let r=JSON.parse(v8(n,"utf8"));return{packageName:typeof r.name==="string"?r.name:void 0,version:typeof r.version==="string"?r.version:void 0}}catch{return{}}}var g8=500;function yie(e){if(!e)return null;try{let n=Tv(e).isDirectory()?yf(e,"README.md"):yf(Tc(e),"README.md");if(!b8(n)||!Tv(n).isFile())return null;let r=v8(n,"utf8"),i=r.slice(0,g8).trim();if(!i)return null;return{path:n,summary:r.length>g8?`${i}…`:i}}catch{return null}}function mf(e,t,n,r,i){if(!e.enabled||e.metadata.origin!=="package")return;let o=e.metadata.source,s=w8(e.metadata.scope),a=vf(o,s),c=n.get(a)??bf();p8(c,t),p8(i,t),n.set(a,c);let u=r.get(a)??[],d=t==="extensions"?"extension":t==="skills"?"skill":t==="prompts"?"prompt":"theme";u.push({kind:d,name:hie(e.path,d),path:e.path,relativePath:pie(e)}),r.set(a,u)}function bie(e){let t=new Map,n=new Map,r=bf();for(let i of e.extensions)mf(i,"extensions",t,n,r);for(let i of e.skills)mf(i,"skills",t,n,r);for(let i of e.prompts)mf(i,"prompts",t,n,r);for(let i of e.themes)mf(i,"themes",t,n,r);return{countsByPackage:t,resourcesByPackage:n,totals:r}}function D8(e){return e?en("settings.json",e)??d8():d8()}function vie(e){let t=(e.getGlobalSettings().extensions??[]).map((r)=>({pattern:r,scope:"global"})),n=(e.getProjectSettings().extensions??[]).map((r)=>({pattern:r,scope:"project"}));return[...t,...n]}function m8(e,t,n){if(t==="project")e.setProjectExtensionPaths(n);else e.setExtensionPaths(n)}function y8(e,t){return(t==="project"?e.getProjectSettings():e.getGlobalSettings()).extensions??[]}async function Sc(e,t){let n=D8(t),r=ct(e,n),i=_8.create(e,n,{projectTrusted:r.trusted}),o=new x8({cwd:e,agentDir:n,settingsManager:i}),s=[],a=new Map,c=new Map,u=bf(),d=fie(i);try{let h=await o.resolve(async(p)=>(s.push({type:"warning",source:p,message:"Package is configured but not installed yet."}),"skip"));({countsByPackage:a,resourcesByPackage:c,totals:u}=bie(h))}catch(h){s.push({type:"error",message:h instanceof Error?h.message:String(h)})}return{packages:o.listConfiguredPackages().map((h)=>{let p=w8(h.scope),g=vf(h.source,p),y=d.get(g)??!1,v=a.get(g)??bf(),b=c.get(g)??[],_=v.extensions+v.skills+v.prompts+v.themes,m=mie(h.installedPath),x=yie(h.installedPath);if(x)yt(Tc(x.path));if(!h.installedPath)s.push({type:"warning",source:h.source,message:"Configured package path was not found."});return{source:h.source,scope:p,filtered:h.filtered,disabled:y,installedPath:h.installedPath,packageName:m.packageName,version:m.version,configuredVersion:gie(h.source),readmePath:x?.path,readmeSummary:x?.summary,counts:v,resources:b,status:y?"disabled":_>0?"loaded":h.installedPath?"installed":"missing"}}),extensionFilters:vie(i),totals:u,diagnostics:s,projectResourcesLoaded:r.trusted}}function xie(e){return e==="project"?"project":"global"}async function _ie(e){let{searchParams:t}=new URL(e.url),n=t.get("cwd");if(!n)return w.json({error:"cwd required"},{status:400});try{let r=await le();if(!ye(n,r))return w.json({error:"Access denied"},{status:403});let i=await Sc(n,be(e)),o=i.packages.filter((s)=>s.scope==="project");return w.json({...i,packages:o,extensionFilters:i.extensionFilters.filter((s)=>s.scope==="project"),totals:o.reduce((s,a)=>({extensions:s.extensions+a.counts.extensions,skills:s.skills+a.counts.skills,prompts:s.prompts+a.counts.prompts,themes:s.themes+a.counts.themes}),{extensions:0,skills:0,prompts:0,themes:0})})}catch(r){return w.json({error:String(r)},{status:500})}}async function wie(e){if(!Et(e))return w.json({error:"Untrusted API request"},{status:403});if(!wr(e))return w.json({error:"Content-Type must be application/json"},{status:415});try{let t=await e.json();if(!t.cwd)return w.json({error:"cwd required"},{status:400});if(!t.action)return w.json({error:"action required"},{status:400});let n=await le();if(!ye(t.cwd,n))return w.json({error:"Access denied"},{status:403});let r=be(e),i=D8(r),o=ct(t.cwd,i),s=_8.create(t.cwd,i,{projectTrusted:o.trusted}),a=xie(t.scope);if(a==="project"&&!o.trusted)return w.json({error:"Project resources must be trusted before modifying project plugins"},{status:403});let c=new x8({cwd:t.cwd,agentDir:i,settingsManager:s}),u=t.source?.trim(),d=a==="project";if(t.action==="install"){if(!u)return w.json({error:"source required"},{status:400});await c.installAndPersist(u,{local:d})}else if(t.action==="remove"){if(!u)return w.json({error:"source required"},{status:400});await c.removeAndPersist(u,{local:d})}else if(t.action==="update")await c.update(u);else if(t.action==="disable"){if(!u)return w.json({error:"source required"},{status:400});h8(s,u,a,!0),await s.flush()}else if(t.action==="enable"){if(!u)return w.json({error:"source required"},{status:400});h8(s,u,a,!1),await s.flush()}else if(t.action==="addExtensionFilter"){if(!u)return w.json({error:"pattern required"},{status:400});if(!l8(u))return w.json({error:`Invalid extension filter "${u}": must start with !, +, or - (plain paths have no effect in the extensions field)`},{status:400});let f=y8(s,a);if(f.includes(u))return w.json({error:`Extension filter already exists: ${u}`},{status:400});m8(s,a,[...f,u]),await s.flush()}else if(t.action==="removeExtensionFilter"){if(!u)return w.json({error:"pattern required"},{status:400});let f=y8(s,a),h=f.filter((p)=>p!==u);if(h.length===f.length)return w.json({error:`Extension filter not found: ${u}`},{status:400});m8(s,a,h),await s.flush()}else return w.json({error:`Unsupported action: ${t.action}`},{status:400});return w.json(await Sc(t.cwd,r))}catch(t){return w.json({error:t instanceof Error?t.message:String(t)},{status:500})}}var Cv={};Q(Cv,{GET:()=>Tie,dynamic:()=>Eie});import{getAgentDir as Die}from"@earendil-works/pi-coding-agent";var Eie="force-dynamic";async function Tie(e){let t=be(e);try{return w.json(await Sc(t??Die(),t))}catch(n){return w.json({error:String(n)},{status:500})}}var Av={};Q(Av,{GET:()=>Sie,PUT:()=>Cie});async function Sie(e){return w.json(Qr(be(e)))}async function Cie(e){try{let t=await e.json(),n=be(e);if(t.firstPaint&&typeof t.firstPaint==="object")d3(t.firstPaint,n);if(t.preferences&&typeof t.preferences==="object")qb(t.preferences,n);return w.json(Qr(n))}catch{return w.json({error:"invalid body"},{status:400})}}var Uv={};Q(Uv,{GET:()=>Rie,POST:()=>Fie,dynamic:()=>kie});import{stat as Aie}from"node:fs/promises";import{resolve as Uie}from"node:path";import{getAgentDir as E8}from"@earendil-works/pi-coding-agent";var kie="force-dynamic";async function T8(e){if(typeof e!=="string"||!e.trim())return{response:w.json({error:"cwd required"},{status:400})};let t=Uie($e(e));try{if(!(await Aie(t)).isDirectory())return{response:w.json({error:"cwd must be a directory"},{status:400})}}catch{return{response:w.json({error:"Directory does not exist"},{status:400})}}let n=await le();if(!ye(t,n))return{response:w.json({error:"Access denied"},{status:403})};return{cwd:t}}async function Rie(e){let t=new URL(e.url),n=t.searchParams.get("piE2eTrustCwd");if(n){for(let i of n.split(","))if(i.trim())yt(i.trim())}let r=await T8(t.searchParams.get("cwd"));if("response"in r)return r.response;return w.json(ct(r.cwd,E8()))}async function Fie(e){try{let t=await e.json(),n=await T8(t.cwd);if("response"in n)return n.response;let r=E8();if(!ct(n.cwd,r).requiresTrust)return w.json({error:"This project has no resources that require trust"},{status:409});if(W2(n.cwd))return w.json({error:"Wait for the active session to finish before trusting this project"},{status:409});let o=C2(n.cwd,r);return ke(),q2(n.cwd),w.json(o)}catch(t){return w.json({error:t instanceof Error?t.message:String(t)},{status:500})}}var Rv={};Q(Rv,{POST:()=>qie});import{Agent as Oie}from"@earendil-works/pi-agent-core";var Pie=90000,S8=80,kv=`Create a concise title for this session based on the conversation above.
351
+ ... (truncated for context limit ${y})`}let v=Lt("generate-commit"),b;if(f.reasoning){let x={...f.thinkingLevelMap??{}};for(let A of["off","minimal","low","medium","high"])if(!(A in x))x[A]=A;b=["off","minimal","low","medium","high","xhigh","max"].find((A)=>typeof x[A]==="string")??"low",f.thinkingLevelMap=x}console.log(`[generate-commit] start provider=${o} model=${s} maxTokens=${a} ctx=${y??"unknown"} diffLen=${c.length} promptLen=${g.length} reasoningHint=${b??"<omitted>"}`),v("start",`provider=${o} model=${s} maxTokens=${a} ctx=${y??"unknown"} diffLen=${c.length} promptLen=${g.length} reasoningHint=${b??"<omitted>"}`),v("diff-preview",g.slice(0,50).replace(/\n/g,"\\n"));let _=new AbortController,m=setTimeout(()=>_.abort(),i3);try{let x={apiKey:h.auth.apiKey,headers:h.auth.headers,maxTokens:a,timeoutMs:i3,maxRetries:0,cacheRetention:"none",signal:_.signal};if(b!==void 0)x.reasoning=b;let D=await Ate(p,{messages:[{role:"user",content:Fte+g,timestamp:Date.now()}]},x);if(D.stopReason==="error"||D.stopReason==="aborted"){let E=D.errorMessage??(_.signal.aborted?"Generation timed out":"Model error");return console.error(`[generate-commit] failed provider=${o} model=${s} stopReason=${D.stopReason} error=${E}`),v("failed",`provider=${o} model=${s} stopReason=${D.stopReason} error=${E.slice(0,300)}`),w.json({error:E},{status:500})}let A=D.content.filter((E)=>E.type==="text").map((E)=>E.text).join("").trim().replace(/^```[\s\S]*?```$/m,(E)=>E.replace(/^```.*\n|\n```$/g,"").trim()).trim();if(v("result",`stopReason=${D.stopReason??"unknown"} contentTypes=${D.content.map((E)=>E.type).join(",")} textLen=${A.length} error=${D.errorMessage??""}`),!A){let E=D.stopReason==="length"||D.content.length>0&&D.content.every((C)=>C.type!=="text")?"(可能是推理模型上下文/ tokens 不足,尝试换用更大的 maxTokens 或非推理模型)":"",U=`Model returned empty message (stopReason=${D.stopReason??"unknown"})${E}`;return console.warn(`[generate-commit] empty text provider=${o} model=${s} maxTokens=${a} stopReason=${D.stopReason??"unknown"} content=${JSON.stringify(D.content).slice(0,600)} error=${D.errorMessage??""} frontendError=${U}`),v("empty",U),w.json({error:U},{status:500})}return v("success",`provider=${o} model=${s} stopReason=${D.stopReason??"unknown"} len=${A.length} preview=${A.slice(0,50).replace(/\n/g,"\\n")}`),console.log(`[generate-commit] success provider=${o} model=${s} stopReason=${D.stopReason??"unknown"} len=${A.length}`),w.json({message:A})}finally{clearTimeout(m)}}catch(r){let i=r instanceof Error?r.message:String(r);return console.error(`[generate-commit] exception provider=${t||"unknown"} model=${n||"unknown"} error=${i.slice(0,800)}`),w.json({error:i},{status:500})}}var Rb={};Q(Rb,{POST:()=>Pte});async function Pte(e){try{let t=await e.json(),n=await Mn(t.cwd);if(!n.ok)return w.json({error:n.error},{status:n.status});let r=await QF(n.cwd);if(!r.ok)return w.json({error:r.error},{status:400});return w.json({ok:!0,output:r.output})}catch(t){return w.json({error:t instanceof Error?t.message:String(t)},{status:500})}}var Fb={};Q(Fb,{POST:()=>Ite});async function Ite(e){try{let t=await e.json(),n=await Mn(t.cwd);if(!n.ok)return w.json({error:n.error},{status:n.status});let r=await e3(n.cwd);if(!r.ok)return w.json({error:r.error},{status:400});return w.json({ok:!0,output:r.output})}catch(t){return w.json({error:t instanceof Error?t.message:String(t)},{status:500})}}var Zb={};Q(Zb,{GET:()=>Jte});function Ob(){let e={};return e.promise=new Promise((t,n)=>{e.resolve=t,e.reject=n}),e}import{mkdirSync as Nte,readFileSync as nf,writeFileSync as u3,existsSync as Bte}from"node:fs";import{dirname as Lte,join as Bb}from"node:path";import{getAgentDir as Lb}from"@earendil-works/pi-coding-agent";var Qd=["off","minimal","low","medium","high","xhigh","max"];var o3=[{label:{en:"Explore project","zh-CN":"阅读项目"},message:{en:"Explore the current project and summarize the overall directory structure and responsibilities of core modules.","zh-CN":"阅读当前项目,总结整体目录结构与核心模块的职责。"}},{label:{en:"Review workspace changes","zh-CN":"审查工作区改动"},message:{en:"Review all changes in the current workspace, point out potential issues and improvements.","zh-CN":"审查当前工作区的所有改动,指出潜在问题与改进点。"}},{label:{en:"Find and fix bugs","zh-CN":"寻找并修复bug"},message:{en:"Inspect the current codebase, find and fix existing bugs.","zh-CN":"检查当前代码,寻找并修复其中存在的 bug。"}}];var s3=o3;var ef=new Map;function Wb(e){return Bb(e??Lb(),"pi-web","config.json")}function Wte(e){return Bb(e??Lb(),"pi-web-preferences.json")}function l3(e){try{if(Bte(Wb(e)))return;let t=JSON.parse(nf(Wte(e),"utf8"));jb({firstPaint:{locale:$b(t.firstPaint?.locale),fontScale:Vb(t.firstPaint?.fontScale)},preferences:t.preferences??{}},e)}catch{}}function Qr(e){let t=e===void 0,n=e??"",r=t?ef.get(n):void 0;if(!t||r===void 0||r===null)try{let d=nf(Wb(e),"utf8"),f=JSON.parse(d);r={firstPaint:{locale:$b(f.firstPaint?.locale),fontScale:Vb(f.firstPaint?.fontScale)},preferences:f.preferences??{},theme:tf(e)},ef.set(n,r)}catch{if(r={firstPaint:{},preferences:{},theme:tf(e)},t)ef.set(n,r)}let i=Hb(ds("defaultThinkingLevel",e)),o=Gb(e),s=zb(e),a=Ib(ds("defaultProjectTrust",e)),c=m3(e),u=Xb(e);return{...r,theme:tf(e),...i!==void 0?{defaultThinkingLevel:i}:{},...o!==void 0?{compaction:o}:{},...s!==void 0?{retry:s}:{},...a!==void 0?{defaultProjectTrust:a}:{},...c!==void 0?{subagents:c}:{},...u!==void 0?{piSettings:u}:{}}}function jb(e,t){try{let n=Wb(t);Nte(Lte(n),{recursive:!0});let r={firstPaint:e.firstPaint,preferences:e.preferences};if(u3(n,JSON.stringify(r,null,2),"utf8"),t===void 0)ef.set("",e)}catch{}}function d3(e,t){let n=Qr(t),r={...n.firstPaint,...e.locale!==void 0?{locale:$b(e.locale)??n.firstPaint.locale}:{},...e.fontScale!==void 0?{fontScale:Vb(e.fontScale)??n.firstPaint.fontScale}:{}},i=n.theme;if(e.theme!==void 0)i=Gte(e.theme,t);let o=e.defaultThinkingLevel===void 0?ds("defaultThinkingLevel",t):Nb("defaultThinkingLevel",Hb(e.defaultThinkingLevel),t),s=e.compaction===void 0?Gb(t):jte(e.compaction,t),a=e.retry===void 0?zb(t):$te(e.retry,t),c=e.defaultProjectTrust===void 0?Ib(ds("defaultProjectTrust",t)):(()=>{let h=Ib(e.defaultProjectTrust);if(h===void 0)return;return Nb("defaultProjectTrust",h,t),h})(),u=e.subagents===void 0?m3(t):Hte(e.subagents,t),d=e.piSettings===void 0?Xb(t):zte(e.piSettings,t),f={firstPaint:r,preferences:n.preferences,theme:i,defaultThinkingLevel:o,...s!==void 0?{compaction:s}:{},...a!==void 0?{retry:a}:{},...c!==void 0?{defaultProjectTrust:c}:{},...u!==void 0?{subagents:u}:{},...d!==void 0?{piSettings:d}:{}};return jb(f,t),f}function qb(e,t){let n=Qr(t),r={firstPaint:n.firstPaint,preferences:{...n.preferences,...e},theme:n.theme};return jb(r,t),r}function f3(e){let{preferences:t}=Qr(e);if(t.startScreenMessages!==void 0)return;qb({startScreenMessages:s3},e)}function $b(e){return e==="en"||e==="zh-CN"?e:void 0}function h3(e){return e==="dark"||e==="light"?e:void 0}function Hb(e){return typeof e==="string"&&Qd.includes(e)?e:void 0}function p3(e){if(typeof e!=="object"||e===null)return;let t=e;if(typeof t.enabled!=="boolean")return;if(typeof t.reserveTokens!=="number"||!Number.isInteger(t.reserveTokens)||t.reserveTokens<=0)return;if(typeof t.keepRecentTokens!=="number"||!Number.isInteger(t.keepRecentTokens)||t.keepRecentTokens<=0)return;return{enabled:t.enabled,reserveTokens:t.reserveTokens,keepRecentTokens:t.keepRecentTokens}}function Gb(e){return p3(fs("compaction",e))}function jte(e,t){let n=p3(e);if(!n)return Gb(t);return bc("compaction",n,t),n}function qte(e){if(typeof e!=="object"||e===null)return;let t=e,n={};if(typeof t.timeoutMs==="number"&&Number.isInteger(t.timeoutMs)&&t.timeoutMs>0)n.timeoutMs=t.timeoutMs;if(typeof t.maxRetries==="number"&&Number.isInteger(t.maxRetries)&&t.maxRetries>0)n.maxRetries=t.maxRetries;if(typeof t.maxRetryDelayMs==="number"&&Number.isInteger(t.maxRetryDelayMs)&&t.maxRetryDelayMs>0)n.maxRetryDelayMs=t.maxRetryDelayMs;return Object.keys(n).length>0?n:void 0}function g3(e){if(typeof e!=="object"||e===null)return;let t=e;if(typeof t.maxRetries!=="number"||!Number.isInteger(t.maxRetries)||t.maxRetries<=0)return;if(typeof t.baseDelayMs!=="number"||!Number.isInteger(t.baseDelayMs)||t.baseDelayMs<=0)return;let n={maxRetries:t.maxRetries,baseDelayMs:t.baseDelayMs};if(typeof t.enabled==="boolean")n.enabled=t.enabled;let r=qte(t.provider);if(r!==void 0)n.provider=r;return n}function zb(e){return g3(fs("retry",e))}function $te(e,t){let n=g3(e);if(!n)return zb(t);return bc("retry",n,t),n}function Ib(e){if(e==="ask"||e==="always"||e==="never")return e;if(e==="trust")return"always";if(e==="deny")return"never";return}function Mb(e){if(typeof e!=="object"||e===null)return;let t=e,n={};if(typeof t.defaultModel==="string"&&t.defaultModel.trim()!=="")n.defaultModel=t.defaultModel;let r=Hb(t.defaultThinking);if(r!==void 0)n.defaultThinking=r;return Object.keys(n).length>0?n:void 0}function m3(e){return Mb(fs("subagents",e))}function Hte(e,t){let n=Mb(e);if(n===void 0)return;let r=fs("subagents",t),i=typeof r==="object"&&r!==null?{...r}:{};if(n.defaultModel!==void 0)i.defaultModel=n.defaultModel;else delete i.defaultModel;if(n.defaultThinking!==void 0)i.defaultThinking=n.defaultThinking;else delete i.defaultThinking;return bc("subagents",i,t),Mb(i)}function fs(e,t){try{return JSON.parse(nf(y3(t),"utf8"))[e]}catch{return}}function bc(e,t,n){try{let r=y3(n),i={};try{i=JSON.parse(nf(r,"utf8"))}catch{i={}}i[e]=t,u3(r,JSON.stringify(i,null,2),"utf8")}catch{}}function ds(e,t){let n=fs(e,t);return typeof n==="string"?n:void 0}function Nb(e,t,n){if(t===void 0)return ds(e,n);return bc(e,t,n),t}function y3(e){return Bb(e??Lb(),"settings.json")}function tf(e){return h3(ds("theme",e))??"light"}function Gte(e,t){let n=h3(e);if(!n)return tf(t);return Nb("theme",n,t),n}function Vb(e){return typeof e==="number"&&Number.isFinite(e)&&e>=0.85&&e<=1.3?e:void 0}var yc=(e)=>typeof e==="boolean"?e:void 0,Pb=(e)=>typeof e==="number"&&Number.isInteger(e)&&e>0?e:void 0,a3=(e)=>typeof e==="string"&&e.trim()!==""?e:void 0;function c3(e,t){if(typeof e!=="object"||e===null)return;let n=e,r={};for(let[i,o]of Object.entries(t)){let s=o(n[i]);if(s!==void 0)r[i]=s}return Object.keys(r).length>0?r:void 0}var b3=[{key:"httpProxy",validate:a3},{key:"httpIdleTimeoutMs",validate:Pb},{key:"websocketConnectTimeoutMs",validate:Pb},{key:"enableAnalytics",validate:yc},{key:"enableInstallTelemetry",validate:yc},{key:"trackingId",validate:a3},{key:"branchSummary",validate:(e)=>c3(e,{reserveTokens:Pb,skipPrompt:yc})},{key:"images",validate:(e)=>c3(e,{autoResize:yc,blockImages:yc})}];function Xb(e){let t={};for(let{key:n,validate:r}of b3){let i=r(fs(n,e));if(i!==void 0)t[n]=i}return Object.keys(t).length>0?t:void 0}function zte(e,t){for(let{key:n,validate:r}of b3){if(!(n in e))continue;let i=r(e[n]);if(i===void 0)continue;bc(n,i,t)}return Xb(t)}var Vte=5000,Xte=60,v3=60000,of=new Map,rf=new Set,Kb=new Map,vc=new Map;function Kte(){let e=Qr().preferences.gitAutoFetchIntervalSec;return typeof e==="number"&&Number.isFinite(e)?e:Xte}function Zte(e){let t=Kb.get(e);if(t)return t;let n=Ob();Kb.set(e,n.promise);let r;return(async()=>{try{let i=await Promise.race([(async()=>{let o=await t3(e);if(!o.ok)return{ok:!1,error:o.error};let s=await Tb(e);return{ok:!0,snapshot:{ahead:s.ahead,behind:s.behind,updatedAt:Date.now()}}})(),new Promise((o,s)=>{r=setTimeout(()=>s(Error(`git fetch timeout after ${v3/1000}s`)),v3),r.unref?.()})]);n.resolve(i)}catch(i){n.resolve({ok:!1,error:i instanceof Error?i.message:String(i)})}finally{if(r)clearTimeout(r);Kb.delete(e)}})(),n.promise}async function x3(e){let t=new Map;for(let n of e){let r=null;try{r=await In(n)}catch{r=null}if(!r)continue;let i=t.get(r);if(i)i.push(n);else t.set(r,[n])}return t}async function _3(e,t){await Promise.all(Array.from(e,async([n,r])=>{let i=await Zte(n);if(!i.ok){console.warn(`[git-autofetch] fetch failed for ${n}: ${i.error}`);return}for(let o of r)of.set(on(o),i.snapshot);vc.set(n,t)}))}async function Yte(e=Date.now()){let t=j2();for(let s of[...rf])if(!t.includes(s))rf.delete(s);let n=new Set(t);for(let s of[...of.keys()])if(!n.has(s))of.delete(s);if(t.length===0){vc.clear();return}let r=Kte(),i=await x3(t);for(let s of[...vc.keys()])if(!i.has(s))vc.delete(s);if(r<=0){let s=t.filter((c)=>!rf.has(c));if(s.length===0)return;let a=await x3(s);await _3(a,e);for(let c of s)rf.add(c);return}let o=new Map;for(let[s,a]of i){let c=vc.get(s)??0;if(e-c<r*1000)continue;o.set(s,a)}if(o.size===0)return;await _3(o,e)}function w3(e){return of.get(on(e))??null}function D3(){setInterval(()=>{Yte()},Vte).unref()}async function Jte(e){try{let t=new URL(e.url).searchParams.get("cwd")??void 0,n=await Mn(t);if(!n.ok)return w.json({error:n.error},{status:n.status});let r=w3(n.cwd);if(!r)return w.json({ok:!0,cached:!1});return w.json({ok:!0,cached:!0,...r})}catch(t){return w.json({error:t instanceof Error?t.message:String(t)},{status:500})}}var Yb={};Q(Yb,{POST:()=>ene});import Qte from"node:fs";async function ene(e){try{let t=await e.json(),n=t.cwd?.trim()??"",r=t.filePath?.trim()??"",i=t.action==="unstage"?"unstage":"stage";if(!n||!n.startsWith("/")&&!at(n))return w.json({error:"cwd must be an absolute path"},{status:400});if(!r||!r.startsWith("/")&&!at(r))return w.json({error:"filePath must be an absolute path"},{status:400});let o=await le();if(!Xe(n,o))return w.json({error:"Access denied"},{status:403});let s;try{s=Qte.statSync(n)}catch{return w.json({error:"Directory not found"},{status:404})}if(!s.isDirectory())return w.json({error:"Not a directory"},{status:400});if(!ye(n,o))return w.json({error:"Access denied"},{status:403});let a=i==="unstage"?await YF(n,r):await ZF(n,r);if(!a.ok)return w.json({error:a.error},{status:400});return w.json({ok:!0})}catch(t){return w.json({error:t instanceof Error?t.message:String(t)},{status:500})}}var Jb={};Q(Jb,{GET:()=>nne});import tne from"node:fs";async function nne(e){try{let t=e.nextUrl.searchParams.get("cwd")?.trim()??"";if(!t||!t.startsWith("/")&&!at(t))return w.json({error:"cwd must be an absolute path"},{status:400});let n=await le();if(!Xe(t,n))return w.json({error:"Access denied"},{status:403});let r;try{r=tne.statSync(t)}catch{return w.json({error:"Directory not found"},{status:404})}if(!r.isDirectory())return w.json({error:"Not a directory"},{status:400});if(!ye(t,n))return w.json({error:"Access denied"},{status:403});return w.json(await KF(t))}catch(t){return w.json({error:t instanceof Error?t.message:String(t)},{status:500})}}var Qb={};Q(Qb,{GET:()=>ine});import{homedir as rne}from"node:os";async function ine(){return w.json({home:rne()})}var tv={};Q(tv,{GET:()=>fne,dynamic:()=>lne,loadModels:()=>ei});import{stat as one}from"node:fs/promises";import{resolve as sne}from"node:path";import{getSupportedThinkingLevels as ane}from"@earendil-works/pi-ai";import{createAgentSessionServices as cne,getAgentDir as T3}from"@earendil-works/pi-coding-agent";var sf=null;function E3(e){if(sf)return;let t=(async()=>{for(let n of e)await Promise.allSettled([n()])})();sf=t,t.then(()=>{sf=null})}function Nn(){return sf??Promise.resolve()}import{resolveModelScopeWithDiagnostics as une}from"@earendil-works/pi-coding-agent";var lne="force-dynamic",ev=new Intl.Collator(void 0,{numeric:!0,sensitivity:"base"});function dne(e,t){return ev.compare(e.name||e.id,t.name||t.id)||ev.compare(e.provider,t.provider)||ev.compare(e.id,t.id)}async function ei(e){let t=new Map,n=[],r=null,i={},o={},s={},a=T3(),c=io(e,a),u=await cne({cwd:e,agentDir:a,...c?{resourceLoaderReloadOptions:c}:{}}),d=u.modelRuntime.getError(),f=u.settingsManager,h=f.getEnabledModels(),p=await xu(u.modelRuntime,h),{visible:g,thinkingLevelPins:y,warnings:v}=p,b=await so(),_=await oo(),m=new Set,x=[],D=[],A=(h??[]).map((S)=>S.trim()).filter(Boolean);if(b.length>0){let S=new Map;for(let B of await u.modelRuntime.getAvailable())S.set(`${B.provider}/${B.id}`,B);for(let B of b){if(_.has(B.toLowerCase()))continue;let G=(await pi(B)).map((T)=>Gh(B,T)).filter((T)=>T!==null);if(G.length===0)continue;m.add(B);for(let T of G)D.push(S.get(`${B}/${T.id}`)??T);for(let T of await hne(B,G,A))x.push(S.get(`${B}/${T.id}`)??T)}}let E=[...g.filter((S)=>!m.has(S.provider)),...x];n=E.map((S)=>({id:S.id,name:S.name,provider:S.provider})).sort(dne);for(let S of E){let B=`${S.provider}/${S.id}`;if(t.set(B,S.name),i[B]=ane(S),S.thinkingLevelMap)o[B]=S.thinkingLevelMap}let U=[...u.modelRuntime.getModels().filter((S)=>!m.has(S.provider)),...D];for(let S of U){let B=`${S.provider}/${S.id}`;s[B]={id:S.id,name:S.name,api:S.api,provider:S.provider,baseUrl:S.baseUrl,reasoning:S.reasoning,...S.thinkingLevelMap?{thinkingLevelMap:S.thinkingLevelMap}:{},input:[...S.input],cost:{input:S.cost.input,output:S.cost.output,cacheRead:S.cost.cacheRead,cacheWrite:S.cost.cacheWrite},contextWindow:S.contextWindow,maxTokens:S.maxTokens,...S.samplingParams?{samplingParams:S.samplingParams}:{},...S.headers?{headers:S.headers}:{},...S.compat?{compat:S.compat}:{}}}let C=f.getDefaultProvider(),N=f.getDefaultModel(),F=_u(p,{...C&&N?{defaultModel:{provider:C,modelId:N}}:{}});if(F.model&&E.some((S)=>S.provider===F.model.provider&&S.id===F.model.id))r={provider:F.model.provider,modelId:F.model.id};return S2({models:Object.fromEntries(t),modelList:n,defaultModel:r,thinkingLevels:i,thinkingLevelMaps:o,thinkingLevelPins:y,definitions:s,...v.length>0?{modelScopeWarnings:v}:{}},d)}async function fne(e){await Nn();let t=new URL(e.url),n=t.searchParams.has("cwd"),r=n?t.searchParams.get("cwd"):T3(),i=sne(r),o;try{o=await one(i)}catch{return Response.json({error:`Directory does not exist: ${i}`},{status:400})}if(!o.isDirectory())return Response.json({error:`Not a directory: ${i}`},{status:400});if(n){let s=await le();if(!ye(i,s))return Response.json({error:"Access denied"},{status:403})}try{let a={...await Er(i,()=>ei(i))};return delete a.definitions,Response.json(a)}catch(s){return console.error("[api/models] failed to build model list:",s),Response.json({error:s instanceof Error?s.message:String(s)},{status:500})}}async function hne(e,t,n){if(n.length===0)return t;let r=[],i=!1;for(let u of n){let d=u.indexOf("/");if(d===-1){i=!0,r.push(u);continue}let f=u.slice(0,d).trim().toLowerCase();if(!f||/[*?[]/.test(f)){i=!0,r.push(u);continue}r.push(u)}let o=e.toLowerCase(),s=i?r:r.filter((u)=>u.slice(0,u.indexOf("/")).trim().toLowerCase()===o);if(!i&&s.length===0)return t;let a={getAvailable:async()=>t},{scopedModels:c}=await une(s,a);return c.map((u)=>u.model)}import nv from"node:fs";var pne=new Set(["select","confirm","input","editor"]),gne=new Set(["agent_settled","prompt_done","prompt_error","extension_error"]),mne=new Set(["turn_start","turn_end"]);function yne(e){if(mne.has(e.type))return null;if(e.type==="message_update"){let n=e.assistantMessageEvent;if(!n||typeof n.type!=="string")return e;let r={type:n.type};if(typeof n.delta==="string")r.delta=n.delta;if(typeof n.contentIndex==="number")r.contentIndex=n.contentIndex;if(n.type==="toolcall_end"&&n.toolCall&&typeof n.toolCall==="object")r.toolCall=n.toolCall;return{type:"message_update",assistantMessageEvent:r}}if(e.type==="message_start"||e.type==="message_end")return e;if(e.type==="agent_end")return{type:"agent_end"};return e}var ur=new Map,cf=null,uf=null;function Ft(e,t,n){try{e.ws.send(JSON.stringify({ch:t,data:n}))}catch{}}function S3(e,t){let n=ur.get(e);if(!n)return;for(let r of n){if(e==="global"){let i=t,o=i.type==="extension_ui_request"&&pne.has(i.method),s=typeof i.type==="string"&&gne.has(i.type);if(o)Wt("ui-chain",`3 ws broadcast ${String(i.method)}`,`id=${String(i.id).slice(0,8)} sid=${String(i.sessionId).slice(0,8)} conns=${n.size}`);if(!s){let a=i.sessionId;if(a&&!r.seenSessions.has(a))continue}Ft(r,e,t);continue}if(e==="running"){Ft(r,e,{type:"running",...A3(t,r.seenSessions)});continue}Ft(r,e,t)}}function bne(e){if(e==="global"&&!cf)cf=V2((t,n)=>{let r=yne(n);if(r)S3("global",{sessionId:t,...r})});if(e==="running"&&!uf)uf=G2((t)=>S3("running",t))}function A3(e,t){let n=e.runningSessionIds.filter((s)=>t.has(s)),r={},i={},o={};for(let s of n){if(e.phases[s]!==void 0)r[s]=e.phases[s];if(e.phaseSince[s]!==void 0)i[s]=e.phaseSince[s];if(e.busySince[s]!==void 0)o[s]=e.busySince[s]}return{runningSessionIds:n,phases:r,phaseSince:i,busySince:o}}function vne(e){if(e==="global"&&ur.get("global")?.size===0)cf?.(),cf=null;if(e==="running"&&ur.get("running")?.size===0)uf?.(),uf=null}function C3(e,t){let n=ur.get(t);if(!n)n=new Set,ur.set(t,n);if(n.add(e),!e.channels.has(t))e.channels.set(t,{kind:"passive"});bne(t)}function af(e,t){let n=e.channels.get(t);if(!n)return;if(e.channels.delete(t),n.kind==="agent")n.unsubscribe();if(n.kind==="watch")try{n.watcher.close()}catch{}if(ur.get(t)?.delete(e),n.kind==="passive")vne(t);if(n.kind==="agent"){let r=ur.get(t);if(!r||r.size===0){let i=t.slice(6);bt(i)?.cancelPendingUiResponses()}}}async function xne(e,t){let n=`agent:${t}`;if(e.seenSessions.add(t),e.channels.has(n))return;let r=bt(t);if(!r?.isAlive()){let o=await We(t);if(!o){Ft(e,n,{type:"not_found",sessionId:t});return}try{({session:r}=await fi(t,o,void 0))}catch(s){Ft(e,n,{type:"start_failed",sessionId:t,message:String(s)});return}}e.channels.set(n,{kind:"agent",unsubscribe:()=>{}}),ur.get(n)?.add(e),Ft(e,n,{type:"connected",sessionId:t});let i=r.getPendingUiRequests();for(let o of i)Ft(e,"global",{...o,sessionId:t})}function _ne(e,t){let n=t,r=`watch:${n}`,i;try{i=nv.statSync(n)}catch{Ft(e,r,{event:"error",message:"Not found"});return}if(!i.isFile()){Ft(e,r,{event:"error",message:"Not a file"});return}let o,s=i.mtimeMs,a=i.size;try{o=nv.watch(n,()=>{try{let c=nv.statSync(n);if(c.mtimeMs===s&&c.size===a)return;s=c.mtimeMs,a=c.size,Ft(e,r,{event:"change",mtime:c.mtime.toISOString(),size:c.size})}catch{Ft(e,r,{event:"change",mtime:new Date().toISOString(),size:0})}})}catch{Ft(e,r,{event:"error",message:"Failed to watch file"});return}o.on("error",()=>{af(e,r)}),e.channels.set(r,{kind:"watch",watcher:o}),ur.get(r)?.add(e),Ft(e,r,{event:"connected",filePath:n})}async function wne(e,t){switch(t.ch){case"global":{C3(e,"global");return}case"running":{C3(e,"running"),Ft(e,"running",{type:"running",...A3(Ls(),e.seenSessions)});return}case"agent":{let n=typeof t.sessionId==="string"?t.sessionId:"";if(n)await xne(e,n);return}case"watch":{if(typeof t.filePath==="string"&&t.filePath)_ne(e,t.filePath);return}default:return}}function Dne(e){if(!Et(e))return!1;let t=process.env.PI_WEB_PASSWORD;if(Ms(t)&&!ou(e.headers.get("authorization"),t))return!1;return!0}var rv=null;function iv(e){rv=e((t)=>{if(!Dne(t.req.raw))return{onOpen:(i,o)=>o.close(1008,"untrusted")};let n={ws:null,channels:new Map,seenSessions:new Set},r=null;return{onOpen:(i,o)=>{n.ws=o,o.send(JSON.stringify({type:"connected"})),r=setInterval(()=>{try{o.send(JSON.stringify({type:"ping"}))}catch{}},30000)},onMessage:async(i)=>{if(typeof i.data!=="string")return;let o;try{o=JSON.parse(i.data)}catch{return}if(o.type==="sub")await wne(n,o);else if(o.type==="unsub"&&typeof o.ch==="string")af(n,o.ch);else if(o.type==="unseen"&&typeof o.sessionId==="string"){let s=o.sessionId;n.seenSessions.delete(s);let a=`agent:${s}`;if(n.channels.has(a))af(n,a)}},onClose:()=>{if(r)clearInterval(r);for(let i of[...n.channels.keys()])af(n,i)}}})}function U3(e){e.get("/api/ws",(t,n)=>rv?rv(t,n):n())}var sv={};Q(sv,{GET:()=>qne,dynamic:()=>Mne});var Ene={anthropic:["api.anthropic.com"],google:["generativelanguage.googleapis.com"],openai:["api.openai.com"],openrouter:["openrouter.ai"]},Tne=new Set(["text","image"]);function $i(e){return typeof e==="object"&&e!==null&&!Array.isArray(e)}function lf(e){return typeof e==="string"&&e.trim()?e.trim():void 0}function df(e){return typeof e==="number"&&Number.isFinite(e)&&e>=0?e:void 0}function k3(e){return typeof e==="number"&&Number.isFinite(e)&&e>0?e:void 0}function Sne(e){if(!$i(e))return{};return{input:df(e.input),output:df(e.output),cacheRead:df(e.cache_read),cacheWrite:df(e.cache_write)}}function Cne(e){if(!$i(e)||!Array.isArray(e.input))return;let t=Array.from(new Set(e.input.filter((n)=>typeof n==="string").map((n)=>n.trim().toLocaleLowerCase()).filter((n)=>Tne.has(n))));return t.length?t:void 0}function ff(e){return e.trim().toLocaleLowerCase().replace(/[^a-z0-9]/g,"")}function R3(e){return e.trim().toLocaleLowerCase().replace(/^models\//,"")}function F3(e){if(!e)return;try{return new URL(e).hostname.toLocaleLowerCase().replace(/\.$/,"")}catch{return}}function Ane(e,t){return e===t||e.endsWith(`.${t}`)}function Une(e,t){let n=ff(t);if(!n)return!1;return ff(e.providerId)===n||ff(e.providerName)===n}function kne(e,t){let n=F3(t);if(!n)return!1;let r=Ene[ff(e.providerId)]??[],i=F3(e.providerBaseUrl);return[...r,...i?[i]:[]].some((o)=>Ane(n,o))}function Rne(e,t){let n=R3(t);if(!n)return!1;let r=R3(e.id),i=`${e.providerId.toLocaleLowerCase()}/${r}`;return r===n||i===n}function ov(e){return e.cost.input!==void 0&&e.cost.output!==void 0}function xc(e,t,n){if(e.length===0||t<=0)return;let r=new Map;for(let s of e){let a=n(s),c=r.get(a);if(c)c.count+=1;else r.set(a,{value:s,count:1})}let i=[...r.values()].sort((s,a)=>a.count-s.count),o=i[0];if(!o||o.count/t<0.6)return;if(i[1]?.count===o.count)return;return o.value}function O3(e){if(e.length===0)return;let t=new Map;for(let r of e)t.set(r,(t.get(r)??0)+1);let n=[...t.entries()].sort((r,i)=>i[1]-r[1]);if(!n[0]||n[1]?.[1]===n[0][1])return;return n[0][0]}function Fne(e){return{name:e.name,reasoning:e.reasoning,input:e.input,contextWindow:e.contextWindow,maxTokens:e.maxTokens}}function One(e){let t=e.length;return{name:xc(e.map((n)=>n.name),t,(n)=>n.toLocaleLowerCase()),reasoning:xc(e.flatMap((n)=>n.reasoning===void 0?[]:[n.reasoning]),t,String),input:xc(e.flatMap((n)=>n.input?[n.input]:[]),t,(n)=>[...n].sort().join(",")),contextWindow:xc(e.flatMap((n)=>n.contextWindow===void 0?[]:[n.contextWindow]),t,String),maxTokens:xc(e.flatMap((n)=>n.maxTokens===void 0?[]:[n.maxTokens]),t,String)}}function P3(e,t){return{status:"reliable",method:t,cost:e.cost,providerId:e.providerId,providerName:e.providerName,support:1,total:1}}function Pne(e){let t=e.filter(ov);if(t.length===0)return{status:"unreliable",reason:"no-valid-price",support:0,total:0};if(t.length===1)return{status:"unreliable",reason:"insufficient-support",support:1,total:1};let n=new Map;for(let a of t){let c=JSON.stringify([a.cost.input,a.cost.output]),u=n.get(c);if(u)u.push(a);else n.set(c,[a])}let r=[...n.values()].sort((a,c)=>c.length-a.length),i=r[0];if(!i)return{status:"unreliable",reason:"no-valid-price",support:0,total:t.length};if(r[1]?.length===i.length||i.length/t.length<0.6)return{status:"unreliable",reason:"conflict",support:i.length,total:t.length};let o=O3(i.flatMap((a)=>a.cost.cacheRead===void 0?[]:[a.cost.cacheRead])),s=O3(i.flatMap((a)=>a.cost.cacheWrite===void 0?[]:[a.cost.cacheWrite]));return{status:"reliable",method:"consensus",cost:{input:i[0].cost.input,output:i[0].cost.output,cacheRead:o,cacheWrite:s},support:i.length,total:t.length}}function I3(e){if(!$i(e))return[];let t=[];for(let[n,r]of Object.entries(e)){if(!$i(r)||!$i(r.models))continue;let i=lf(r.name)??n,o=lf(r.api);for(let[s,a]of Object.entries(r.models)){if(!$i(a))continue;let c=lf(a.id)??s;if(!c)continue;let u=lf(a.name)??c,d={key:`${n}/${c}`,providerId:n,providerName:i,id:c,name:u,cost:Sne(a.cost)};if(o)d.providerBaseUrl=o;if(typeof a.reasoning==="boolean")d.reasoning=a.reasoning;let f=Cne(a.modalities);if(f)d.input=f;if($i(a.limit)){let h=k3(a.limit.context),p=k3(a.limit.output);if(h!==void 0)d.contextWindow=h;if(p!==void 0)d.maxTokens=p}t.push(d)}}return t}function M3(e,t,n="",r=""){let i=e.filter((p)=>Rne(p,t));if(i.length===0)return{exactMatches:0,metadataMethod:"none",preset:{},price:{status:"unreliable",reason:"no-exact-match",support:0,total:0}};let o=i.filter((p)=>Une(p,n)),s=i.filter((p)=>kne(p,r)),a=o[0]??s[0],c=o.length?"provider":s.length?"base-url":"consensus",u=a?Fne(a):One(i),d=o.find(ov),f=s.find(ov),h=d?P3(d,"provider"):f?P3(f,"base-url"):Pne(i);if(h.status==="reliable")u.cost=h.cost;return{exactMatches:i.length,metadataMethod:c,matchedProviderId:a?.providerId,matchedProviderName:a?.providerName,preset:u,price:h}}function Ine(e,t,n){let r=e.id.toLocaleLowerCase(),i=e.name.toLocaleLowerCase(),o=e.providerId.toLocaleLowerCase(),s=e.providerName.toLocaleLowerCase(),a=`${o}/${r}`,c=20;if(!t)c=10;else if(r===t||a===t)c=0;else if(i===t)c=1;else if(r.startsWith(t)||i.startsWith(t))c=2;else if(a.startsWith(t)||o===t||s===t)c=3;else if(r.includes(t)||i.includes(t))c=4;else if(a.includes(t)||s.includes(t))c=5;if(c<20&&n&&(o===n||s===n))c-=0.5;return c}function N3(e,t,n="",r=50){let i=t.trim().toLocaleLowerCase(),o=n.trim().toLocaleLowerCase(),s=Math.max(1,Math.min(100,Math.floor(r)||50));return e.map((a)=>({entry:a,rank:Ine(a,i,o)})).filter(({rank:a})=>!i||a<20).sort((a,c)=>a.rank-c.rank||a.entry.providerName.localeCompare(c.entry.providerName,void 0,{sensitivity:"base"})||a.entry.name.localeCompare(c.entry.name,void 0,{numeric:!0,sensitivity:"base"})||a.entry.id.localeCompare(c.entry.id,void 0,{numeric:!0,sensitivity:"base"})).slice(0,s).map(({entry:a})=>a)}var Mne="force-dynamic",B3="https://models.dev/api.json",Nne=3600000,Bne=15000;function Lne(){return globalThis.__piModelsDevCatalogCache??={entries:[],expiresAt:0}}async function Wne(){let e=await fetch(B3,{cache:"no-store",headers:{Accept:"application/json"},signal:AbortSignal.timeout(Bne)});if(!e.ok)throw Error(`models.dev returned HTTP ${e.status}`);let t=I3(await e.json());if(t.length===0)throw Error("models.dev returned an empty catalog");return t}async function jne(){let e=Lne();if(e.entries.length>0&&e.expiresAt>Date.now())return e.entries;if(!e.inFlight)e.inFlight=Wne().then((t)=>(e.entries=t,e.expiresAt=Date.now()+Nne,t)).finally(()=>{e.inFlight=void 0});try{return await e.inFlight}catch(t){if(e.entries.length>0)return e.entries;throw t}}async function qne(e){let{searchParams:t}=new URL(e.url),n=(t.get("q")??"").slice(0,120),r=(t.get("provider")??"").slice(0,120),i=(t.get("baseUrl")??"").slice(0,500),o=Number.parseInt(t.get("limit")??"50",10),s=Number.isFinite(o)?o:50;try{let a=await jne(),c=N3(a,n,r,s),u=M3(a,n,r,i);return w.json({models:c,recommendation:u,source:B3})}catch(a){return w.json({error:a instanceof Error?a.message:String(a)},{status:502})}}var av={};Q(av,{POST:()=>Qne,dynamic:()=>Kne});import{mkdtempSync as $ne,rmSync as Hne,writeFileSync as Gne}from"node:fs";import{tmpdir as zne}from"node:os";import{join as L3}from"node:path";import{ModelRuntime as Vne}from"@earendil-works/pi-coding-agent";function Xne(e){return typeof e==="object"&&e!==null&&!Array.isArray(e)}function W3(e){if(!Xne(e))return{};return Object.fromEntries(Object.entries(e).filter((t)=>typeof t[1]==="string"))}async function j3(e,t){let n;try{n=$ne(L3(zne(),"pi-web-model-discovery-"));let r=L3(n,"models.json"),i="__pi_web_model_discovery__";Gne(r,JSON.stringify({providers:{[e]:{...t,models:[{id:i}]}}},null,2),"utf8");let o=await Vne.create({modelsPath:r}),s=o.getError();if(s)throw Error(s);let a=o.getModel(e,i);if(!a)throw Error(`Unable to load provider "${e}"`);let c=await o.getAuth(a);if(c)return{apiKey:c.auth.apiKey,headers:W3(c.auth.headers)};return{headers:W3(o.getCompatibilityRequestConfig(a).headers)}}finally{if(n)Hne(n,{recursive:!0,force:!0})}}var Kne="force-dynamic",Zne=20000;function Yne(e){return typeof e==="object"&&e!==null&&!Array.isArray(e)}function _c(e,t){return e.has(t)}function Jne(e,t,n){let r=new Headers(n);if(!_c(r,"accept"))r.set("Accept","application/json");if(!t)return r;if(e==="anthropic-messages"){if(!_c(r,"x-api-key"))r.set("x-api-key",t);if(!_c(r,"anthropic-version"))r.set("anthropic-version","2023-06-01")}else if(e==="google-generative-ai"){if(!_c(r,"x-goog-api-key"))r.set("x-goog-api-key",t)}else if(!_c(r,"authorization"))r.set("Authorization",`Bearer ${t}`);return r}async function Qne(e){try{let t=await e.json(),n=typeof t.providerName==="string"?t.providerName.trim():"";if(!n)return w.json({error:"providerName is required"},{status:400});if(!Yne(t.provider))return w.json({error:"provider is required"},{status:400});let r=typeof t.provider.baseUrl==="string"?t.provider.baseUrl.trim():"";if(!r)return w.json({error:"Base URL is required"},{status:400});let i=typeof t.provider.api==="string"&&t.provider.api?t.provider.api:"openai-completions",o;try{o=Ws(r,i)}catch{return w.json({error:"Base URL is invalid"},{status:400})}let s=await pi(n);if(s.length>0){let h=s.map((p)=>Cr(p)).filter((p)=>p!==null);if(h.length>0)return w.json({models:h})}let a=await j3(n,t.provider);if(typeof t.provider.apiKey==="string"&&t.provider.apiKey.trim()&&!a.apiKey)return w.json({error:`No API key found for "${n}"`},{status:400});let c=await fetch(o,{cache:"no-store",headers:Jne(i,a.apiKey,a.headers),signal:AbortSignal.timeout(Zne)}),u=await c.text();if(!c.ok)return w.json({error:u.slice(0,500)||`Upstream returned HTTP ${c.status}`,status:c.status},{status:502});let d;try{d=JSON.parse(u)}catch{return w.json({error:"Upstream model list was not valid JSON"},{status:502})}let f=Hh(d);if(f.length===0)return w.json({error:"No models found in the upstream response"},{status:502});return await Cu(n,Ar(d)),w.json({models:f,endpoint:o.toString()})}catch(t){let n=t instanceof Error?t.message:String(t),r=t instanceof DOMException&&t.name==="TimeoutError"?504:500;return w.json({error:n},{status:r})}}var cv={};Q(cv,{GET:()=>tre,dynamic:()=>ere});import{getAgentDir as q3}from"@earendil-works/pi-coding-agent";var ere="force-dynamic";async function tre(e){await Nn();let t=new URL(e.url),n=t.searchParams.get("provider")?.trim()??"",r=t.searchParams.get("model")?.trim()??"";if(!n||!r)return Response.json({error:"provider and model are required"},{status:400});try{let o=(await Er(q3(),()=>ei(q3()))).definitions?.[`${n}/${r}`];if(!o)return Response.json({error:`Model not found: ${n}/${r}`},{status:404});return Response.json({model:o})}catch(i){return console.error("[api/models-config/effective] failed:",i),Response.json({error:i instanceof Error?i.message:String(i)},{status:500})}}var uv={};Q(uv,{GET:()=>rre,dynamic:()=>nre});import{getAgentDir as $3}from"@earendil-works/pi-coding-agent";var nre="force-dynamic";async function rre(e){await Nn();let t=new URL(e.url),n=t.searchParams.get("provider")?.trim()??"",r=t.searchParams.get("model")?.trim()??"";if(!n||!r)return Response.json({error:"provider and model are required"},{status:400});try{let o=(await Er($3(),()=>ei($3()))).definitions?.[`${n}/${r}`];if(!o)return Response.json({error:`Model not found: ${n}/${r}`},{status:404});let a=(await pi(n)).find((u)=>Cr(u)?.id===r),c=a?i1(a,o):{};return Response.json({suggestion:c})}catch(i){return console.error("[api/models-config/override-suggestion] failed:",i),Response.json({error:i instanceof Error?i.message:String(i)},{status:500})}}var dv={};Q(dv,{POST:()=>sre,dynamic:()=>ire});var ire="force-dynamic",ore=15000;function lv(e){return typeof e==="object"&&e!==null&&!Array.isArray(e)}async function sre(e){if(!Et(e))return w.json({ok:!1,error:"Untrusted API request"},{status:403});if(!wr(e))return w.json({ok:!1,error:"Content-Type must be application/json"},{status:415});try{let t=await e.json(),n=lv(t.provider)?t.provider:{},r=typeof n.baseUrl==="string"?n.baseUrl.trim():"";if(!r)return w.json({ok:!1,error:"baseUrl is required"},{status:400});let i=typeof n.apiKey==="string"?n.apiKey.trim():"",o=typeof n.api==="string"?n.api:"",s={Accept:"application/json"};if(o==="anthropic-messages"){if(i)s["x-api-key"]=i;s["anthropic-version"]="2023-06-01"}else if(o==="google-generative-ai"){if(i)s["x-goog-api-key"]=i}else if(i)s.Authorization=`Bearer ${i}`;let a=`${r.replace(/\/+$/,"")}/models`,c=await fetch(a,{headers:s,cache:"no-store",signal:AbortSignal.timeout(ore)});if(!c.ok)return w.json({ok:!1,error:`HTTP ${c.status}`},{status:502});let u=await c.json().catch(()=>{return}),d=Array.isArray(u)?u:lv(u)&&Array.isArray(u.data)?u.data:lv(u)&&Array.isArray(u.models)?u.models:[];return w.json({ok:!0,models:d})}catch(t){return w.json({ok:!1,error:t instanceof Error?t.message:String(t)})}}Dc();fv();var vv={};Q(vv,{GET:()=>Ure,PUT:()=>kre,cleanupStaleEnabledModels:()=>bv,dynamic:()=>Sre});import{existsSync as pf,mkdirSync as K3,readFileSync as Z3}from"node:fs";import{dirname as Y3}from"node:path";var Tre=new Set(["off","minimal","low","medium","high","xhigh","max"]),X3=new Set(["amazon-bedrock","ant-ling","anthropic","azure-openai-responses","baseten","cerebras","cloudflare-ai-gateway","cloudflare-workers-ai","deepseek","fireworks","github-copilot","google","google-vertex","groq","huggingface","kimi-coding","minimax","minimax-cn","mistral","moonshotai","moonshotai-cn","nvidia","openai","openai-codex","opencode","opencode-go","openrouter","qwen-token-plan","qwen-token-plan-cn","qwen-token-plan-individual","radius","together","vercel-ai-gateway","xai","xiaomi","xiaomi-token-plan-ams","xiaomi-token-plan-cn","xiaomi-token-plan-sgp","zai","zai-coding-cn"]);function gv(e,t,n){let r=Object.keys(n?.providers??{}),i=t?.providers??{},o=new Set([...r,...Object.keys(i)]);return e.filter((s)=>{if(/[?*[\]]/.test(s)||!s.includes("/"))return!0;let a=s.indexOf("/"),c=s.slice(0,a);if(!o.has(c))return X3.has(c);let u=s.slice(a+1),d=u.lastIndexOf(":");if(d!==-1){let h=u.slice(d+1);if(Tre.has(h))u=u.slice(0,d);else return!0}let f=i[c];if(!f)return!1;if(X3.has(c))return!0;return(f.models??[]).some((h)=>h.id===u)})}var Sre="force-dynamic";function J3(e){return ti("models.json",en("models.json",e))}function yv(e){let t=J3(e);if(!pf(t))return{providers:{}};try{return JSON.parse(Z3(t,"utf8"))}catch{return{providers:{}}}}function Cre(e,t){let n=J3(t),r=Y3(n);if(!pf(r))K3(r,{recursive:!0});wc(n,JSON.stringify(e,null,2))}function Q3(e){return ti("settings.json",en("settings.json",e))}function Ec(e){let t=Q3(e);if(!pf(t))return{};try{return JSON.parse(Z3(t,"utf8"))}catch{return{}}}function mv(e,t){let n=Q3(t),r=Y3(n);if(!pf(r))K3(r,{recursive:!0});wc(n,JSON.stringify(e,null,2))}function Are(e){let t=Ec(e),n=t.defaultProvider,r=t.defaultModel;if(typeof n==="string"&&typeof r==="string"&&n&&r)return{provider:n,modelId:r};return null}function e8(e){let t=Ec(e);return Array.isArray(t.enabledModels)?t.enabledModels.filter((n)=>typeof n==="string"):[]}function bv(e){let t=e8(e);if(t.length===0)return;let n=yv(e),r=gv(t,n,n);if(r.length===t.length)return;let i=Ec(e);i.enabledModels=r,mv(i,e),ke(),console.log(`[models-config] pruned ${t.length-r.length} stale enabledModels entr${t.length-r.length===1?"y":"ies"}: ${t.filter((o)=>!r.includes(o)).join(", ")}`)}async function Ure(e){let t=xe(e),n=yv(t);return w.json({providers:n.providers??{},defaultModel:Are(t),enabledModels:e8(t)})}async function kre(e){try{let t=await e.json(),{models:n,defaultModel:r,enabledModels:i}=t,s={...n??t};delete s.enabledModels,delete s.defaultModel,delete s.defaultProvider;let a=yv(xe(e));if(Cre(s,xe(e)),r&&typeof r.provider==="string"&&typeof r.modelId==="string"){let c=Ec(xe(e));c.defaultProvider=r.provider,c.defaultModel=r.modelId,mv(c,xe(e))}if(Array.isArray(i)){let c=Ec(xe(e));c.enabledModels=gv(i.filter((u)=>typeof u==="string"),s,a),mv(c,xe(e))}return ke(),w.json({success:!0})}catch(t){return w.json({error:String(t)},{status:500})}}var _v={};Q(_v,{GET:()=>jre,POST:()=>Wre,dynamic:()=>Ire,getProviderModelsCaches:()=>r8});import{getAgentDir as Rre}from"@earendil-works/pi-coding-agent";import{ModelRuntime as Fre}from"@earendil-works/pi-coding-agent";import{readFile as Ore,readdir as Pre,stat as t8}from"node:fs/promises";import{join as n8}from"node:path";var Ire="force-dynamic",xv=n8(Rre(),"pi-web","provider"),Mre=5000;async function r8(){try{if(!(await t8(xv)).isDirectory())return{}}catch{return{}}let e=await Pre(xv,{withFileTypes:!0}),t={};for(let n of e){if(!n.isDirectory())continue;let r=n8(xv,n.name,"models.json");try{let i=JSON.parse(await Ore(r,"utf-8")),o=Ar(i),s=await t8(r);t[n.name]={modelCount:o.length,lastSyncedAt:s.mtimeMs}}catch{}}return t}function Nre(e){return e.replace(/\$\{(\w+)\}/g,(t,n)=>process.env[n]??"").replace(/\$([A-Z_][A-Z0-9_]*)/g,(t,n)=>process.env[n]??"")}async function Bre(e){let{configFilePath:t,resolveConfigFileDir:n}=await Promise.resolve().then(() => (Dc(),V3)),r=t("models.json",n("models.json")),{readFileSync:i,existsSync:o}=await import("node:fs");if(!o(r))return null;try{let c=JSON.parse(i(r,"utf-8")).providers?.[e];if(!c)return null;let u=typeof c.baseUrl==="string"?c.baseUrl:void 0,d;if(typeof c.apiKey==="string")d=Nre(c.apiKey);return u?{baseUrl:u,apiKey:d}:null}catch{return null}}async function Lre(e,t){let n=t.getProvider(e),r,i={},o=await t.getAvailable();if(n){r=typeof n.baseUrl==="string"&&n.baseUrl.trim()&&n.baseUrl||o.find((p)=>p.provider===e)?.baseUrl||void 0;try{let p=await t.getAuth(e);if(p?.auth?.apiKey)i={Authorization:`Bearer ${p.auth.apiKey}`}}catch{}}else{let p=await Bre(e);if(!p)throw Error(`Provider "${e}" not found in built-in or models.json`);if(r=p.baseUrl,p.apiKey)i={Authorization:`Bearer ${p.apiKey}`}}if(!r||r.trim()==="")throw Error(`Provider "${e}" has no baseUrl configured`);let s=o.find((p)=>p.provider===e)?.api??"",a;try{a=Ws(r,s)}catch{throw Error(`Invalid baseUrl for provider "${e}"`)}let c=await fetch(a,{headers:i,cache:"no-store",signal:AbortSignal.timeout(Mre)});if(!c.ok)throw Error(`Provider "${e}" returned HTTP ${c.status} from ${a}`);let u=await c.text();if(!u.trim())throw Error(`Provider "${e}" returned empty response`);let d=JSON.parse(u),{parseDiscoveredModels:f}=await Promise.resolve().then(() => e1),h=Ar(d);if(f(d).length===0)throw Error(`Provider "${e}" returned no parsable models`);return await Cu(e,h),{count:h.length}}async function Wre(e){try{let{providerName:t}=await e.json();if(typeof t!=="string"||t.trim()==="")return Response.json({error:"providerName is required"},{status:400});let n=t.trim();if(!Tu(n))return Response.json({error:`Invalid providerName: ${JSON.stringify(t)}`},{status:400});let r=await Fre.create({allowModelNetwork:!0}),{count:i}=await Lre(n,r);return ke(),Response.json({count:i})}catch(t){let n=t instanceof Error?t.message:String(t);return Response.json({error:n},{status:500})}}async function jre(){let e=await r8();return Response.json(e)}var wv={};Q(wv,{GET:()=>Yre,PUT:()=>Jre});import{mkdirSync as Hre,readFileSync as Gre,writeFileSync as zre}from"node:fs";import{dirname as Vre,join as Xre}from"node:path";import{getAgentDir as Kre}from"@earendil-works/pi-coding-agent";var qre=Qd;function $re(e){return typeof e==="string"&&qre.includes(e)}function hs(e){if(!e||typeof e!=="object"||Array.isArray(e))return{};let t=e,n=(r)=>{let i=t[r];if(!i||typeof i!=="object"||Array.isArray(i))return;let o={};for(let[s,a]of Object.entries(i))if($re(a))o[s]=a;return Object.keys(o).length>0?o:void 0};return{models:n("models"),providers:n("providers")}}var gf=new Map;function i8(e){return Xre(e??Kre(),"pi-web","model-thinking.json")}function o8(e){let t=e??"",n=gf.get(t);if(n!==void 0&&n!==null)return n;try{let r=Gre(i8(e),"utf8"),i=JSON.parse(r);return n=hs(i),gf.set(t,n),n}catch{return n={},gf.set(t,n),n}}function Zre(e,t){try{let n=i8(t);Hre(Vre(n),{recursive:!0});let r=hs(e);zre(n,JSON.stringify(r,null,2)+`
352
+ `,"utf8"),gf.set(t??"",r)}catch{}}function s8(e,t){let n=hs(e);return Zre(n,t),n}async function Yre(e){return w.json(o8(xe(e)))}async function Jre(e){try{let t=await e.json(),n=xe(e),r=hs(t),i=s8(r,n);return w.json(i)}catch{return w.json({error:"invalid body"},{status:400})}}var Dv={};Q(Dv,{POST:()=>cie,dynamic:()=>oie});import{mkdtempSync as Qre,rmSync as eie,writeFileSync as tie}from"node:fs";import{tmpdir as nie}from"node:os";import{join as a8}from"node:path";import{completeSimple as rie}from"@earendil-works/pi-ai/compat";import{ModelRuntime as iie}from"@earendil-works/pi-coding-agent";var oie="force-dynamic",c8=20000;function u8(e){return typeof e==="object"&&e!==null&&!Array.isArray(e)}function sie(e){return e instanceof Error?e.message:String(e)}function aie(e){return e.content.filter((t)=>t.type==="text").map((t)=>t.text).join("")}async function cie(e){if(!Et(e))return w.json({ok:!1,error:"Untrusted API request"},{status:403});if(!wr(e))return w.json({ok:!1,error:"Content-Type must be application/json"},{status:415});let t;try{let n=await e.json(),r=typeof n.providerName==="string"?n.providerName.trim():"";if(!r)return w.json({ok:!1,error:"providerName is required"},{status:400});if(!u8(n.provider))return w.json({ok:!1,error:"provider is required"},{status:400});if(!u8(n.model))return w.json({ok:!1,error:"model is required"},{status:400});let i=typeof n.model.id==="string"?n.model.id.trim():"";if(!i)return w.json({ok:!1,error:"Model ID is required"},{status:400});t=Qre(a8(nie(),"pi-web-model-test-"));let o=a8(t,"models.json");tie(o,JSON.stringify({providers:{[r]:{...n.provider,models:[{...n.model,id:i}]}}},null,2),"utf8");let s=await iie.create({modelsPath:o}),a=s.getError();if(a)return w.json({ok:!1,error:a});let c=s.getModel(r,i);if(!c)return w.json({ok:!1,error:`Model not found: ${r}/${i}`});let u=await s.getAuth(c);if(!u?.auth.apiKey)return w.json({ok:!1,error:`No API key found for "${r}"`});let d=new AbortController,f=setTimeout(()=>d.abort(),c8),h,p=Date.now();try{let g=await rie(c,{messages:[{role:"user",content:"Reply with OK only.",timestamp:Date.now()}]},{apiKey:u.auth.apiKey,headers:u.auth.headers,maxTokens:16,timeoutMs:c8,maxRetries:0,cacheRetention:"none",signal:d.signal,onResponse:(v)=>{h=v.status}}),y=Date.now()-p;if(g.stopReason==="error"||g.stopReason==="aborted")return w.json({ok:!1,error:g.errorMessage??(d.signal.aborted?"Test timed out":"Model returned an error"),latencyMs:y,status:h});return w.json({ok:!0,latencyMs:y,status:h,responseText:aie(g).slice(0,300)})}finally{clearTimeout(f)}}catch(n){return w.json({ok:!1,error:sie(n)},{status:500})}finally{if(t)eie(t,{recursive:!0,force:!0})}}var Sv={};Q(Sv,{GET:()=>_ie,POST:()=>wie,dynamic:()=>die,fixtureDirFrom:()=>xe,readPlugins:()=>Sc});import{existsSync as b8,readFileSync as v8,statSync as Tv}from"node:fs";import{basename as Ev,dirname as Tc,extname as uie,join as yf,relative as lie}from"node:path";import{DefaultPackageManager as x8,getAgentDir as d8,SettingsManager as _8}from"@earendil-works/pi-coding-agent";function l8(e){return/^[!+-].+/.test(e.trim())}Dc();var die="force-dynamic";function bf(){return{extensions:0,skills:0,prompts:0,themes:0}}function w8(e){return e==="project"?"project":"global"}function vf(e,t){return`${t}\x00${e}`}function xf(e){return typeof e==="string"?e:e.source}function f8(e){if(typeof e==="string")return!1;return Array.isArray(e.extensions)&&e.extensions.length===0&&Array.isArray(e.skills)&&e.skills.length===0&&Array.isArray(e.prompts)&&e.prompts.length===0&&Array.isArray(e.themes)&&e.themes.length===0}function fie(e){let t=new Map;for(let n of e.getGlobalSettings().packages??[])t.set(vf(xf(n),"global"),f8(n));for(let n of e.getProjectSettings().packages??[])t.set(vf(xf(n),"project"),f8(n));return t}function h8(e,t,n,r){let i=n==="project"?e.getProjectSettings().packages??[]:e.getGlobalSettings().packages??[],o=!1,s=i.map((a)=>{if(xf(a)!==t)return a;if(o=!0,r)return{...typeof a==="string"?{source:a}:a,extensions:[],skills:[],prompts:[],themes:[]};return xf(a)});if(!o)return!1;if(n==="project")e.setProjectPackages(s);else e.setPackages(s);return!0}function p8(e,t){e[t]+=1}function hie(e,t){let n=Ev(e),r=uie(n);if(t==="skill"&&n.toLowerCase()==="skill.md")return Ev(Tc(e));if((t==="extension"||t==="theme"||t==="prompt")&&r){if(t==="extension"&&/^index\.(ts|js)$/.test(n))return Ev(Tc(e));return n.slice(0,-r.length)}return n}function pie(e){let t=e.metadata.baseDir;if(!t)return e.path;let n=lie(t,e.path);return n&&!n.startsWith("..")?n:e.path}function gie(e){let t=e.startsWith("npm:")?e.slice(4):void 0;if(t){let n=t.lastIndexOf("@"),r=t.startsWith("@")?t.indexOf("/",1):0;if(n>r)return t.slice(n+1)||void 0;return}if(e.startsWith("git:")||/^[a-z]+:\/\//.test(e)){let n=e.lastIndexOf("@"),r=e.lastIndexOf("/"),i=e.lastIndexOf(":");if(n>Math.max(r,i))return e.slice(n+1)||void 0}return}function mie(e){if(!e)return{};try{let n=Tv(e).isDirectory()?yf(e,"package.json"):yf(Tc(e),"package.json");if(!b8(n))return{};let r=JSON.parse(v8(n,"utf8"));return{packageName:typeof r.name==="string"?r.name:void 0,version:typeof r.version==="string"?r.version:void 0}}catch{return{}}}var g8=500;function yie(e){if(!e)return null;try{let n=Tv(e).isDirectory()?yf(e,"README.md"):yf(Tc(e),"README.md");if(!b8(n)||!Tv(n).isFile())return null;let r=v8(n,"utf8"),i=r.slice(0,g8).trim();if(!i)return null;return{path:n,summary:r.length>g8?`${i}…`:i}}catch{return null}}function mf(e,t,n,r,i){if(!e.enabled||e.metadata.origin!=="package")return;let o=e.metadata.source,s=w8(e.metadata.scope),a=vf(o,s),c=n.get(a)??bf();p8(c,t),p8(i,t),n.set(a,c);let u=r.get(a)??[],d=t==="extensions"?"extension":t==="skills"?"skill":t==="prompts"?"prompt":"theme";u.push({kind:d,name:hie(e.path,d),path:e.path,relativePath:pie(e)}),r.set(a,u)}function bie(e){let t=new Map,n=new Map,r=bf();for(let i of e.extensions)mf(i,"extensions",t,n,r);for(let i of e.skills)mf(i,"skills",t,n,r);for(let i of e.prompts)mf(i,"prompts",t,n,r);for(let i of e.themes)mf(i,"themes",t,n,r);return{countsByPackage:t,resourcesByPackage:n,totals:r}}function D8(e){return e?en("settings.json",e)??d8():d8()}function vie(e){let t=(e.getGlobalSettings().extensions??[]).map((r)=>({pattern:r,scope:"global"})),n=(e.getProjectSettings().extensions??[]).map((r)=>({pattern:r,scope:"project"}));return[...t,...n]}function m8(e,t,n){if(t==="project")e.setProjectExtensionPaths(n);else e.setExtensionPaths(n)}function y8(e,t){return(t==="project"?e.getProjectSettings():e.getGlobalSettings()).extensions??[]}async function Sc(e,t){let n=D8(t),r=ct(e,n),i=_8.create(e,n,{projectTrusted:r.trusted}),o=new x8({cwd:e,agentDir:n,settingsManager:i}),s=[],a=new Map,c=new Map,u=bf(),d=fie(i);try{let h=await o.resolve(async(p)=>(s.push({type:"warning",source:p,message:"Package is configured but not installed yet."}),"skip"));({countsByPackage:a,resourcesByPackage:c,totals:u}=bie(h))}catch(h){s.push({type:"error",message:h instanceof Error?h.message:String(h)})}return{packages:o.listConfiguredPackages().map((h)=>{let p=w8(h.scope),g=vf(h.source,p),y=d.get(g)??!1,v=a.get(g)??bf(),b=c.get(g)??[],_=v.extensions+v.skills+v.prompts+v.themes,m=mie(h.installedPath),x=yie(h.installedPath);if(x)yt(Tc(x.path));if(!h.installedPath)s.push({type:"warning",source:h.source,message:"Configured package path was not found."});return{source:h.source,scope:p,filtered:h.filtered,disabled:y,installedPath:h.installedPath,packageName:m.packageName,version:m.version,configuredVersion:gie(h.source),readmePath:x?.path,readmeSummary:x?.summary,counts:v,resources:b,status:y?"disabled":_>0?"loaded":h.installedPath?"installed":"missing"}}),extensionFilters:vie(i),totals:u,diagnostics:s,projectResourcesLoaded:r.trusted}}function xie(e){return e==="project"?"project":"global"}async function _ie(e){let{searchParams:t}=new URL(e.url),n=t.get("cwd");if(!n)return w.json({error:"cwd required"},{status:400});try{let r=await le();if(!ye(n,r))return w.json({error:"Access denied"},{status:403});let i=await Sc(n,xe(e)),o=i.packages.filter((s)=>s.scope==="project");return w.json({...i,packages:o,extensionFilters:i.extensionFilters.filter((s)=>s.scope==="project"),totals:o.reduce((s,a)=>({extensions:s.extensions+a.counts.extensions,skills:s.skills+a.counts.skills,prompts:s.prompts+a.counts.prompts,themes:s.themes+a.counts.themes}),{extensions:0,skills:0,prompts:0,themes:0})})}catch(r){return w.json({error:String(r)},{status:500})}}async function wie(e){if(!Et(e))return w.json({error:"Untrusted API request"},{status:403});if(!wr(e))return w.json({error:"Content-Type must be application/json"},{status:415});try{let t=await e.json();if(!t.cwd)return w.json({error:"cwd required"},{status:400});if(!t.action)return w.json({error:"action required"},{status:400});let n=await le();if(!ye(t.cwd,n))return w.json({error:"Access denied"},{status:403});let r=xe(e),i=D8(r),o=ct(t.cwd,i),s=_8.create(t.cwd,i,{projectTrusted:o.trusted}),a=xie(t.scope);if(a==="project"&&!o.trusted)return w.json({error:"Project resources must be trusted before modifying project plugins"},{status:403});let c=new x8({cwd:t.cwd,agentDir:i,settingsManager:s}),u=t.source?.trim(),d=a==="project";if(t.action==="install"){if(!u)return w.json({error:"source required"},{status:400});await c.installAndPersist(u,{local:d})}else if(t.action==="remove"){if(!u)return w.json({error:"source required"},{status:400});await c.removeAndPersist(u,{local:d})}else if(t.action==="update")await c.update(u);else if(t.action==="disable"){if(!u)return w.json({error:"source required"},{status:400});h8(s,u,a,!0),await s.flush()}else if(t.action==="enable"){if(!u)return w.json({error:"source required"},{status:400});h8(s,u,a,!1),await s.flush()}else if(t.action==="addExtensionFilter"){if(!u)return w.json({error:"pattern required"},{status:400});if(!l8(u))return w.json({error:`Invalid extension filter "${u}": must start with !, +, or - (plain paths have no effect in the extensions field)`},{status:400});let f=y8(s,a);if(f.includes(u))return w.json({error:`Extension filter already exists: ${u}`},{status:400});m8(s,a,[...f,u]),await s.flush()}else if(t.action==="removeExtensionFilter"){if(!u)return w.json({error:"pattern required"},{status:400});let f=y8(s,a),h=f.filter((p)=>p!==u);if(h.length===f.length)return w.json({error:`Extension filter not found: ${u}`},{status:400});m8(s,a,h),await s.flush()}else return w.json({error:`Unsupported action: ${t.action}`},{status:400});return w.json(await Sc(t.cwd,r))}catch(t){return w.json({error:t instanceof Error?t.message:String(t)},{status:500})}}var Cv={};Q(Cv,{GET:()=>Tie,dynamic:()=>Eie});import{getAgentDir as Die}from"@earendil-works/pi-coding-agent";var Eie="force-dynamic";async function Tie(e){let t=xe(e);try{return w.json(await Sc(t??Die(),t))}catch(n){return w.json({error:String(n)},{status:500})}}var Av={};Q(Av,{GET:()=>Sie,PUT:()=>Cie});async function Sie(e){return w.json(Qr(xe(e)))}async function Cie(e){try{let t=await e.json(),n=xe(e);if(t.firstPaint&&typeof t.firstPaint==="object")d3(t.firstPaint,n);if(t.preferences&&typeof t.preferences==="object")qb(t.preferences,n);return w.json(Qr(n))}catch{return w.json({error:"invalid body"},{status:400})}}var Uv={};Q(Uv,{GET:()=>Rie,POST:()=>Fie,dynamic:()=>kie});import{stat as Aie}from"node:fs/promises";import{resolve as Uie}from"node:path";import{getAgentDir as E8}from"@earendil-works/pi-coding-agent";var kie="force-dynamic";async function T8(e){if(typeof e!=="string"||!e.trim())return{response:w.json({error:"cwd required"},{status:400})};let t=Uie($e(e));try{if(!(await Aie(t)).isDirectory())return{response:w.json({error:"cwd must be a directory"},{status:400})}}catch{return{response:w.json({error:"Directory does not exist"},{status:400})}}let n=await le();if(!ye(t,n))return{response:w.json({error:"Access denied"},{status:403})};return{cwd:t}}async function Rie(e){let t=new URL(e.url),n=t.searchParams.get("piE2eTrustCwd");if(n){for(let i of n.split(","))if(i.trim())yt(i.trim())}let r=await T8(t.searchParams.get("cwd"));if("response"in r)return r.response;return w.json(ct(r.cwd,E8()))}async function Fie(e){try{let t=await e.json(),n=await T8(t.cwd);if("response"in n)return n.response;let r=E8();if(!ct(n.cwd,r).requiresTrust)return w.json({error:"This project has no resources that require trust"},{status:409});if(W2(n.cwd))return w.json({error:"Wait for the active session to finish before trusting this project"},{status:409});let o=C2(n.cwd,r);return ke(),q2(n.cwd),w.json(o)}catch(t){return w.json({error:t instanceof Error?t.message:String(t)},{status:500})}}var Rv={};Q(Rv,{POST:()=>qie});import{Agent as Oie}from"@earendil-works/pi-agent-core";var Pie=90000,S8=80,kv=`Create a concise title for this session based on the conversation above.
353
353
 
354
354
  Requirements:
355
355
  - Match the primary language used by the user.
@@ -359,7 +359,7 @@ Requirements:
359
359
  - Return only the title as plain text, with no quotes, label, markdown, or explanation.`;function Iie(e){return e.map((t)=>({...t,execute:async()=>{throw Error("Tools cannot be executed while generating a session title")}}))}function Mie(e){let t=e.state;return{initialState:{systemPrompt:t.systemPrompt,model:t.model,thinkingLevel:t.thinkingLevel,tools:Iie(t.tools),messages:t.messages},convertToLlm:e.convertToLlm,transformContext:e.transformContext,streamFn:e.streamFunction,getApiKey:e.getApiKey,onPayload:e.onPayload,onResponse:e.onResponse,steeringMode:e.steeringMode,followUpMode:e.followUpMode,sessionId:e.sessionId,thinkingBudgets:e.thinkingBudgets,transport:e.transport,maxRetryDelayMs:e.maxRetryDelayMs,toolExecution:e.toolExecution}}function Nie(e){let t=e.at(-1);if(t?.role!=="user")return e;let n=typeof t.content==="string"?`${t.content}
360
360
 
361
361
  ${kv}`:[...t.content,{type:"text",text:kv}];return[...e.slice(0,-1),{...t,content:n}]}function Bie(e){let t=[['"','"'],["'","'"],["`","`"],["“","”"],["「","」"],["『","』"]];for(let[n,r]of t)if(e.startsWith(n)&&e.endsWith(r)&&e.length>n.length+r.length)return e.slice(n.length,-r.length).trim();return e}function Lie(e){let t=e.trim(),n=t.match(/^```(?:json|text)?\s*([\s\S]*?)\s*```$/i);if(n)t=n[1].trim();if(t.startsWith("{"))try{let i=JSON.parse(t);if(typeof i.title==="string")t=i.title.trim()}catch{}if(t=t.split(/\r?\n/,1)[0]??"",t=t.replace(/^(?:session\s+title|title|标题)\s*[::-]\s*/i,""),t=Bie(t).replace(/\s+/g," ").trim(),t=t.replace(/[。.!]+$/u,"").trim(),!/[\p{L}\p{N}]/u.test(t))throw Error("The model did not return a usable session title");let r=Array.from(t);if(r.length>S8)t=r.slice(0,S8).join("").trim();return t}function Wie(e,t){let n=e.state.messages.slice(t);for(let r=n.length-1;r>=0;r--){let i=n[r];if(i.role!=="assistant")continue;if(i.stopReason==="error")throw Error(i.errorMessage||"The title model request failed");let o=i.content.filter((s)=>s.type==="text").map((s)=>s.text).join(`
362
- `).trim();if(!o)continue;return{title:Lie(o),...i.usage?{usage:{input:i.usage.input,output:i.usage.output,cacheRead:i.usage.cacheRead,cacheWrite:i.usage.cacheWrite,total:i.usage.totalTokens}}:{}}}throw Error("The model did not return a session title")}function jie(e){let t=[],n;for(let r=0;r<e.length;r++){let i=e[r];if(i.role==="assistant"){let o=new Set;for(let a=r+1;a<e.length;a++){let c=e[a];if(c.role!=="toolResult")break;o.add(c.toolCallId)}n=new Set;let s=i.content.filter((a)=>{if(a.type!=="toolCall")return!0;if(!o.has(a.id))return!1;return n.add(a.id),!0});if(s.length>0)t.push({...i,content:s});continue}if(i.role==="toolResult"){if(n?.delete(i.toolCallId))t.push(i);continue}n=void 0,t.push(i)}return t}async function C8(e){let t=e.agent;await t.waitForIdle();let n=jie(t.state.messages),r=n.length;if(!n.some((u)=>u.role==="user"))throw Error("The session has no user messages to name");let i=Mie(t);i.initialState.messages=n;let o=n.at(-1)?.role==="user";if(o)i.initialState.messages=Nie(n);let s=new Oie(i),a=o?s.continue():s.prompt(kv),c;try{await Promise.race([a,new Promise((u,d)=>{c=setTimeout(()=>{s.abort(),d(Error("Session title generation timed out"))},Pie)})])}catch(u){throw s.abort(),await a.catch(()=>{}),u}finally{if(c)clearTimeout(c)}return Wie(s,r)}async function qie(e,{params:t}){let{id:n}=await t;try{let r=await We(n);if(!r)return w.json({error:"Session not found"},{status:404});let i=bt(n),{session:o}=i?.isAlive()?{session:i}:await fi(n,r,void 0);await o.waitUntilReady?.();let s=await C8(o.inner);if(!o.isAlive())return w.json({error:"The session was closed while its title was being generated. Please try again."},{status:409});return o.inner.setSessionName(s.title),st(),w.json({title:s.title,usage:s.usage??null})}catch(r){return console.error(`[api] ${new URL(e.url).pathname} failed:`,r),w.json({error:r instanceof Error?r.message:String(r)},{status:500})}}var Fv={};Q(Fv,{GET:()=>Hie});import{SessionManager as $ie}from"@earendil-works/pi-coding-agent";async function Hie(e,{params:t}){let{id:n}=await t,r=new URL(e.url),i=r.searchParams.get("leafId")??void 0,o=r.searchParams.has("deferThinking"),s=r.searchParams.has("deferMedia");try{let a=await We(n);if(!a)return w.json({error:"Session not found"},{status:404});let c=$ie.open(a),u=yu(c.getEntries(),i,{deferThinking:o,deferToolResultImages:s});return w.json({context:u})}catch(a){return console.error(`[api] ${new URL(e.url).pathname} failed:`,a),w.json({error:String(a)},{status:500})}}var Ov={};Q(Ov,{GET:()=>Gie});async function Gie(e,{params:t}){let{id:n,entryId:r}=await t,i=new URL(e.url).searchParams.get("blockIndex"),o=i===null?Number.NaN:Number(i);if(!Number.isSafeInteger(o)||o<0)return w.json({error:"Valid blockIndex is required"},{status:400});try{let s=await We(n);if(!s)return w.json({error:"Session not found"},{status:404});let a=mu(s).find((u)=>u.id===r);if(a?.type!=="message"||a.message.role!=="assistant")return w.json({error:"Assistant message not found"},{status:404});let c=a.message.content[o];if(c?.type!=="thinking")return w.json({error:"Thinking block not found"},{status:404});return w.json({thinking:c.thinking})}catch(s){return w.json({error:String(s)},{status:500})}}var Mv={};Q(Mv,{GET:()=>hoe,dynamic:()=>soe});import{readFileSync as B8}from"node:fs";import{join as L8}from"node:path";import{DefaultPackageManager as roe,getAgentDir as I8,getPackageDir as ioe,SettingsManager as ooe}from"@earendil-works/pi-coding-agent";import{mkdirSync as zie,readFileSync as Vie,writeFileSync as Xie}from"node:fs";import{dirname as Kie,join as Zie}from"node:path";import{getAgentDir as Yie}from"@earendil-works/pi-coding-agent";var Pv=new Map;function A8(e){return Zie(e??Yie(),"pi-web","updates.json")}function U8(e){return typeof e==="boolean"?e:void 0}function Jie(e){if(typeof e!=="object"||e===null||Array.isArray(e))return;let t={};for(let[n,r]of Object.entries(e)){if(n.trim()==="")continue;if(typeof r==="string"&&r.trim()!=="")t[n]=r}return Object.keys(t).length>0?t:void 0}function Cc(e){let t=e??"",n=Pv.get(t);if(n!==void 0)return n;let r={enabled:!0,ignored:{}};try{let i=JSON.parse(Vie(A8(e),"utf8"));r={enabled:U8(i.enabled)??!0,ignored:Jie(i.ignored)??{}}}catch{}return Pv.set(t,r),r}function k8(e,t){let n=Cc(t),r={enabled:e.enabled!==void 0?U8(e.enabled)??n.enabled:n.enabled,ignored:{...n.ignored}};if(e.ignored!==void 0)for(let[i,o]of Object.entries(e.ignored)){if(i.trim()==="")continue;if(o===null||o===void 0||o==="")delete r.ignored[i];else r.ignored[i]=o}try{let i=A8(t);zie(Kie(i),{recursive:!0}),Xie(i,JSON.stringify(r,null,2),"utf8")}catch{}return Pv.set(t??"",r),r}import{homedir as Qie}from"node:os";import{join as R8}from"node:path";import{readFileSync as eoe}from"node:fs";var toe="https://registry.npmjs.org";function F8(e,t,n=Qie()){let r=process.env.NPM_CONFIG_REGISTRY?.trim()||process.env.npm_config_registry?.trim();if(r)return r;let i=e.startsWith("@")?e.slice(0,e.indexOf("/")):null,o=[];if(t)o.push(R8(t,".npmrc"));o.push(R8(n,".npmrc"));for(let s of o){let a=noe(s,i);if(a)return a}return toe}function noe(e,t){let n;try{n=eoe(e,"utf8")}catch{return null}let r=t?[`${t}:registry`,"registry"]:["registry"];for(let i of r)for(let o of n.split(/\r?\n/)){let s=o.trim();if(!s||s.startsWith("#")||s.startsWith(";"))continue;let a=s.indexOf("=");if(a<=0)continue;if(s.slice(0,a).trim()!==i)continue;let c=s.slice(a+1).trim().replace(/^["']|["']$/g,"");if(c)return c}return null}Dc();function P8(e,t){let n=O8(e),r=O8(t),i=Math.max(n.length,r.length);for(let o=0;o<i;o++){let s=n[o]??0,a=r[o]??0;if(s>a)return 1;if(s<a)return-1}return 0}function O8(e){return e.replace(/^v/i,"").split(/[-+]/)[0].split(".").map((t)=>{let n=Number.parseInt(t,10);return Number.isNaN(n)?0:n})}var soe="force-dynamic",aoe="@rainmanhhh/pi-web",coe=1800000,uoe=1e4;function M8(){try{let e=JSON.parse(B8(L8(ioe(),"package.json"),"utf8"));return typeof e.version==="string"?e.version:"0.0.0"}catch{return"0.0.0"}}async function W8(e,t){let n=F8(e,t).replace(/\/+$/,"");try{let r=await fetch(`${n}/${encodeURIComponent(e)}/latest`,{signal:AbortSignal.timeout(uoe),headers:{Accept:"application/json"}});if(!r.ok)return null;let i=await r.json();return typeof i.version==="string"?i.version:null}catch{return null}}function _f(e,t){return{current:e,latest:t}}function loe(e){return e?en("settings.json",e)??I8():I8()}function doe(e){try{let t=JSON.parse(B8(L8(e,"package.json"),"utf8"));if(typeof t.name!=="string"||typeof t.version!=="string")return;return{name:t.name,version:t.version}}catch{return}}async function foe(e,t){let n=loe(t),r=ct(e,n),i=ooe.create(e,n,{projectTrusted:r.trusted}),o=new roe({cwd:e,agentDir:n,settingsManager:i});try{let s=new Map;for(let a of o.listConfiguredPackages()){if(!a.installedPath||!a.source.startsWith("npm:"))continue;let c=doe(a.installedPath);if(!c)continue;let u=await W8(c.name,e);if(u===null||P8(u,c.version)<=0)continue;s.set(a.source,{source:a.source,displayName:c.name,type:"npm",scope:a.scope,current:c.version,latest:u})}return[...s.values()]}catch{return[]}}var N8=new Map,Iv=new Map;async function hoe(e){let{searchParams:t}=new URL(e.url),n=t.get("cwd"),r=t.get("refresh")==="1";if(n){let d=await le();if(!ye(n,d))return w.json({error:"Access denied"},{status:403})}let i=n??"<app>",o=Cc(be(e));if(!o.enabled)return w.json({checkedAt:0,enabled:!1,ignored:o.ignored,piWeb:_f(String(Os.version),null),sdk:_f(M8(),null),plugins:[]});let s=N8.get(i);if(!r&&s&&Date.now()-s.checkedAt<coe)return w.json(s);let a=Iv.get(i);if(!r&&a)return w.json(await a);let u=(async()=>{let d=be(e),[f,h]=await Promise.all([W8(aoe,n),n?foe(n,d):Promise.resolve([])]),p={checkedAt:Date.now(),enabled:!0,ignored:o.ignored,piWeb:_f(String(Os.version),f),sdk:_f(M8(),null),plugins:h};return N8.set(i,p),p})().finally(()=>{Iv.delete(i)});return Iv.set(i,u),w.json(await u)}var Nv={};Q(Nv,{GET:()=>goe,PUT:()=>moe,dynamic:()=>poe});var poe="force-dynamic";async function goe(e){return w.json(Cc(be(e)))}async function moe(e){try{let t=await e.json(),n={};if(t.enabled!==void 0&&typeof t.enabled==="boolean")n.enabled=t.enabled;if(t.ignored!==void 0&&typeof t.ignored==="object"&&t.ignored!==null)n.ignored=t.ignored;let r=k8(n,be(e));return w.json(r)}catch{return w.json({error:"invalid body"},{status:400})}}var Bv={};Q(Bv,{GET:()=>Moe,runtime:()=>koe});import{execFile as yoe}from"node:child_process";import{randomUUID as boe}from"node:crypto";import{existsSync as voe,mkdirSync as xoe,readFileSync as _oe,rmSync as woe}from"node:fs";import{tmpdir as Doe}from"node:os";import{basename as Eoe,dirname as Toe,join as ps}from"node:path";import{fileURLToPath as Soe,pathToFileURL as Coe}from"node:url";import{promisify as Aoe}from"node:util";var Uoe=Aoe(yoe),koe="nodejs";async function j8(){try{let{getPackageDir:e}=await import("@earendil-works/pi-coding-agent");return e()}catch{return null}}function Roe(e){return encodeURIComponent(e).replace(/[!'()*]/g,(t)=>`%${t.charCodeAt(0).toString(16).toUpperCase()}`)}function Foe(e,t){let n=e.replace(/[^\x20-\x7E]|["\\;\r\n]/g,"_")||"session.html";return`${t?"inline":"attachment"}; filename="${n}"; filename*=UTF-8''${Roe(e)}`}async function Ooe(){let e=new Set,t=await j8();if(t)e.add(ps(t,"dist","cli.js"));try{let n=import.meta.resolve;if(typeof n==="function"){let r=await n("@earendil-works/pi-coding-agent");e.add(ps(Toe(Soe(r)),"cli.js"))}}catch{}e.add(ps(process.cwd(),"node_modules","@earendil-works","pi-coding-agent","dist","cli.js"));for(let n of e)if(voe(n))return n;return null}function Poe(e){let t=(r)=>r.replace(/\r\n/g,`
362
+ `).trim();if(!o)continue;return{title:Lie(o),...i.usage?{usage:{input:i.usage.input,output:i.usage.output,cacheRead:i.usage.cacheRead,cacheWrite:i.usage.cacheWrite,total:i.usage.totalTokens}}:{}}}throw Error("The model did not return a session title")}function jie(e){let t=[],n;for(let r=0;r<e.length;r++){let i=e[r];if(i.role==="assistant"){let o=new Set;for(let a=r+1;a<e.length;a++){let c=e[a];if(c.role!=="toolResult")break;o.add(c.toolCallId)}n=new Set;let s=i.content.filter((a)=>{if(a.type!=="toolCall")return!0;if(!o.has(a.id))return!1;return n.add(a.id),!0});if(s.length>0)t.push({...i,content:s});continue}if(i.role==="toolResult"){if(n?.delete(i.toolCallId))t.push(i);continue}n=void 0,t.push(i)}return t}async function C8(e){let t=e.agent;await t.waitForIdle();let n=jie(t.state.messages),r=n.length;if(!n.some((u)=>u.role==="user"))throw Error("The session has no user messages to name");let i=Mie(t);i.initialState.messages=n;let o=n.at(-1)?.role==="user";if(o)i.initialState.messages=Nie(n);let s=new Oie(i),a=o?s.continue():s.prompt(kv),c;try{await Promise.race([a,new Promise((u,d)=>{c=setTimeout(()=>{s.abort(),d(Error("Session title generation timed out"))},Pie)})])}catch(u){throw s.abort(),await a.catch(()=>{}),u}finally{if(c)clearTimeout(c)}return Wie(s,r)}async function qie(e,{params:t}){let{id:n}=await t;try{let r=await We(n);if(!r)return w.json({error:"Session not found"},{status:404});let i=bt(n),{session:o}=i?.isAlive()?{session:i}:await fi(n,r,void 0);await o.waitUntilReady?.();let s=await C8(o.inner);if(!o.isAlive())return w.json({error:"The session was closed while its title was being generated. Please try again."},{status:409});return o.inner.setSessionName(s.title),st(),w.json({title:s.title,usage:s.usage??null})}catch(r){return console.error(`[api] ${new URL(e.url).pathname} failed:`,r),w.json({error:r instanceof Error?r.message:String(r)},{status:500})}}var Fv={};Q(Fv,{GET:()=>Hie});import{SessionManager as $ie}from"@earendil-works/pi-coding-agent";async function Hie(e,{params:t}){let{id:n}=await t,r=new URL(e.url),i=r.searchParams.get("leafId")??void 0,o=r.searchParams.has("deferThinking"),s=r.searchParams.has("deferMedia");try{let a=await We(n);if(!a)return w.json({error:"Session not found"},{status:404});let c=$ie.open(a),u=yu(c.getEntries(),i,{deferThinking:o,deferToolResultImages:s});return w.json({context:u})}catch(a){return console.error(`[api] ${new URL(e.url).pathname} failed:`,a),w.json({error:String(a)},{status:500})}}var Ov={};Q(Ov,{GET:()=>Gie});async function Gie(e,{params:t}){let{id:n,entryId:r}=await t,i=new URL(e.url).searchParams.get("blockIndex"),o=i===null?Number.NaN:Number(i);if(!Number.isSafeInteger(o)||o<0)return w.json({error:"Valid blockIndex is required"},{status:400});try{let s=await We(n);if(!s)return w.json({error:"Session not found"},{status:404});let a=mu(s).find((u)=>u.id===r);if(a?.type!=="message"||a.message.role!=="assistant")return w.json({error:"Assistant message not found"},{status:404});let c=a.message.content[o];if(c?.type!=="thinking")return w.json({error:"Thinking block not found"},{status:404});return w.json({thinking:c.thinking})}catch(s){return w.json({error:String(s)},{status:500})}}var Mv={};Q(Mv,{GET:()=>goe,dynamic:()=>soe});import{readFileSync as B8}from"node:fs";import{join as L8}from"node:path";import{DefaultPackageManager as roe,getAgentDir as I8,getPackageDir as ioe,SettingsManager as ooe}from"@earendil-works/pi-coding-agent";import{mkdirSync as zie,readFileSync as Vie,writeFileSync as Xie}from"node:fs";import{dirname as Kie,join as Zie}from"node:path";import{getAgentDir as Yie}from"@earendil-works/pi-coding-agent";var Pv=new Map;function A8(e){return Zie(e??Yie(),"pi-web","updates.json")}function U8(e){return typeof e==="boolean"?e:void 0}function Jie(e){if(typeof e!=="object"||e===null||Array.isArray(e))return;let t={};for(let[n,r]of Object.entries(e)){if(n.trim()==="")continue;if(typeof r==="string"&&r.trim()!=="")t[n]=r}return Object.keys(t).length>0?t:void 0}function Cc(e){let t=e??"",n=Pv.get(t);if(n!==void 0)return n;let r={enabled:!0,ignored:{}};try{let i=JSON.parse(Vie(A8(e),"utf8"));r={enabled:U8(i.enabled)??!0,ignored:Jie(i.ignored)??{}}}catch{}return Pv.set(t,r),r}function k8(e,t){let n=Cc(t),r={enabled:e.enabled!==void 0?U8(e.enabled)??n.enabled:n.enabled,ignored:{...n.ignored}};if(e.ignored!==void 0)for(let[i,o]of Object.entries(e.ignored)){if(i.trim()==="")continue;if(o===null||o===void 0||o==="")delete r.ignored[i];else r.ignored[i]=o}try{let i=A8(t);zie(Kie(i),{recursive:!0}),Xie(i,JSON.stringify(r,null,2),"utf8")}catch{}return Pv.set(t??"",r),r}import{homedir as Qie}from"node:os";import{join as R8}from"node:path";import{readFileSync as eoe}from"node:fs";var toe="https://registry.npmjs.org";function F8(e,t,n=Qie()){let r=process.env.NPM_CONFIG_REGISTRY?.trim()||process.env.npm_config_registry?.trim();if(r)return r;let i=e.startsWith("@")?e.slice(0,e.indexOf("/")):null,o=[];if(t)o.push(R8(t,".npmrc"));o.push(R8(n,".npmrc"));for(let s of o){let a=noe(s,i);if(a)return a}return toe}function noe(e,t){let n;try{n=eoe(e,"utf8")}catch{return null}let r=t?[`${t}:registry`,"registry"]:["registry"];for(let i of r)for(let o of n.split(/\r?\n/)){let s=o.trim();if(!s||s.startsWith("#")||s.startsWith(";"))continue;let a=s.indexOf("=");if(a<=0)continue;if(s.slice(0,a).trim()!==i)continue;let c=s.slice(a+1).trim().replace(/^["']|["']$/g,"");if(c)return c}return null}Dc();function P8(e,t){let n=O8(e),r=O8(t),i=Math.max(n.length,r.length);for(let o=0;o<i;o++){let s=n[o]??0,a=r[o]??0;if(s>a)return 1;if(s<a)return-1}return 0}function O8(e){return e.replace(/^v/i,"").split(/[-+]/)[0].split(".").map((t)=>{let n=Number.parseInt(t,10);return Number.isNaN(n)?0:n})}var soe="force-dynamic",aoe="@rainmanhhh/pi-web",coe=1800000,uoe=1e4;function M8(){try{let e=JSON.parse(B8(L8(ioe(),"package.json"),"utf8"));return typeof e.version==="string"?e.version:"0.0.0"}catch{return"0.0.0"}}async function loe(e,t){let n=F8(e,t).replace(/\/+$/,"");try{let r=await fetch(`${n}/${encodeURIComponent(e)}/latest`,{signal:AbortSignal.timeout(uoe),headers:{Accept:"application/json"}});if(!r.ok)return null;let i=await r.json();return typeof i.version==="string"?i.version:null}catch{return null}}function _f(e,t){return{current:e,latest:t}}function doe(e){return e?en("settings.json",e)??I8():I8()}function foe(e){try{let t=JSON.parse(B8(L8(e,"package.json"),"utf8"));if(typeof t.name!=="string"||typeof t.version!=="string")return;return{name:t.name,version:t.version}}catch{return}}async function hoe(e,t,n){let r=doe(t),i=ct(e,r),o=ooe.create(e,r,{projectTrusted:i.trusted}),s=new roe({cwd:e,agentDir:r,settingsManager:o});try{let a=new Map;for(let c of s.listConfiguredPackages()){if(!c.installedPath||!c.source.startsWith("npm:"))continue;let u=foe(c.installedPath);if(!u)continue;let d=await W8(u.name,e,n);if(d===null||P8(d,u.version)<=0)continue;a.set(c.source,{source:c.source,displayName:u.name,type:"npm",scope:c.scope,current:u.version,latest:d})}return[...a.values()]}catch{return[]}}var N8=new Map,Iv=new Map;function poe(e,t){return`${e}|${t??"<app>"}`}async function W8(e,t,n){let r=poe(e,t),i=N8.get(r);if(!n&&i&&Date.now()-i.checkedAt<coe)return i.latest;let o=Iv.get(r);if(!n&&o)return o;let s=loe(e,t??void 0).finally(()=>{Iv.delete(r)});Iv.set(r,s);let a=await s;return N8.set(r,{latest:a,checkedAt:Date.now()}),a}async function goe(e){let{searchParams:t}=new URL(e.url),n=t.get("cwd"),r=t.get("refresh")==="1";if(n){let c=await le();if(!ye(n,c))return w.json({error:"Access denied"},{status:403})}let i=xe(e),o=Cc(i);if(!o.enabled)return w.json({checkedAt:0,enabled:!1,ignored:o.ignored,piWeb:_f(String(Os.version),null),sdk:_f(M8(),null),plugins:[]});let[s,a]=await Promise.all([W8(aoe,n,r),n?hoe(n,i,r):Promise.resolve([])]);return w.json({checkedAt:Date.now(),enabled:!0,ignored:o.ignored,piWeb:_f(String(Os.version),s),sdk:_f(M8(),null),plugins:a})}var Nv={};Q(Nv,{GET:()=>yoe,PUT:()=>boe,dynamic:()=>moe});var moe="force-dynamic";async function yoe(e){return w.json(Cc(xe(e)))}async function boe(e){try{let t=await e.json(),n={};if(t.enabled!==void 0&&typeof t.enabled==="boolean")n.enabled=t.enabled;if(t.ignored!==void 0&&typeof t.ignored==="object"&&t.ignored!==null)n.ignored=t.ignored;let r=k8(n,xe(e));return w.json(r)}catch{return w.json({error:"invalid body"},{status:400})}}var Bv={};Q(Bv,{GET:()=>Boe,runtime:()=>Foe});import{execFile as voe}from"node:child_process";import{randomUUID as xoe}from"node:crypto";import{existsSync as _oe,mkdirSync as woe,readFileSync as Doe,rmSync as Eoe}from"node:fs";import{tmpdir as Toe}from"node:os";import{basename as Soe,dirname as Coe,join as ps}from"node:path";import{fileURLToPath as Aoe,pathToFileURL as Uoe}from"node:url";import{promisify as koe}from"node:util";var Roe=koe(voe),Foe="nodejs";async function j8(){try{let{getPackageDir:e}=await import("@earendil-works/pi-coding-agent");return e()}catch{return null}}function Ooe(e){return encodeURIComponent(e).replace(/[!'()*]/g,(t)=>`%${t.charCodeAt(0).toString(16).toUpperCase()}`)}function Poe(e,t){let n=e.replace(/[^\x20-\x7E]|["\\;\r\n]/g,"_")||"session.html";return`${t?"inline":"attachment"}; filename="${n}"; filename*=UTF-8''${Ooe(e)}`}async function Ioe(){let e=new Set,t=await j8();if(t)e.add(ps(t,"dist","cli.js"));try{let n=import.meta.resolve;if(typeof n==="function"){let r=await n("@earendil-works/pi-coding-agent");e.add(ps(Coe(Aoe(r)),"cli.js"))}}catch{}e.add(ps(process.cwd(),"node_modules","@earendil-works","pi-coding-agent","dist","cli.js"));for(let n of e)if(_oe(n))return n;return null}function Moe(e){let t=(r)=>r.replace(/\r\n/g,`
363
363
  `);e=t(e);let n=(r,i,o,s)=>{let a=t(o),c=t(s),u=r.split(a).length-1;if(u!==1)throw Error(`Failed to patch exported HTML: ${i} expected 1 match, found ${u}`);return r.replace(a,c)};return e=n(e,"sortChildren",` function sortChildren(node) {
364
364
  node.children.sort((a, b) =>
365
365
  new Date(a.entry.timestamp).getTime() - new Date(b.entry.timestamp).getTime()
@@ -413,13 +413,13 @@ ${kv}`:[...t.content,{type:"text",text:kv}];return[...e.slice(0,-1),{...t,conten
413
413
  }
414
414
  containsActive.set(node, has);
415
415
  }
416
- }`),e}async function Ioe(e,t){let n=await Ooe();if(n){await Uoe(process.execPath,[n,"--export",e,t],{cwd:process.cwd(),timeout:30000,env:{...process.env,PI_OFFLINE:"1",PI_SKIP_VERSION_CHECK:"1"},maxBuffer:1048576});return}let r=await j8();if(!r)throw Error("pi CLI not found");let i=Coe(ps(r,"dist","core","export-html","index.js")).href,{exportFromFile:o}=await import(i);await o(e,t)}async function Moe(e,{params:t}){let{id:n}=await t,r=new URL(e.url).searchParams.get("inline")==="1";try{let i=await We(n);if(!i)return w.json({error:"Session not found"},{status:404});let o=ps(Doe(),"pi-web-export");xoe(o,{recursive:!0});let a=`pi-session-${Eoe(i,".jsonl")}.html`,c=ps(o,`${boe()}.html`);try{await Ioe(i,c);let u=_oe(c,"utf8"),d=Poe(u);return new Response(d,{headers:{"Content-Type":"text/html; charset=utf-8","Content-Disposition":Foe(a,r),"Cache-Control":"no-cache","Content-Security-Policy":"frame-ancestors 'none'","X-Content-Type-Options":"nosniff","X-Frame-Options":"DENY"}})}finally{woe(c,{force:!0})}}catch(i){return w.json({error:String(i)},{status:500})}}var Lv={};Q(Lv,{DELETE:()=>Voe,GET:()=>Goe,PATCH:()=>zoe});import{readdirSync as Noe,readFileSync as Boe,statSync as Loe,unlinkSync as Woe,writeFileSync as joe}from"node:fs";import{dirname as qoe,join as q8}from"node:path";import{SessionManager as $8}from"@earendil-works/pi-coding-agent";var $oe=200;function Hoe(e){let t=new Set,n=new Set(e),r=new Set,i=[...e];while(i.length>0){let d=i.pop();if(r.has(d))continue;if(r.add(d),n.has(d)||d.children.length!==1)t.add(d);for(let f of d.children)i.push(f)}let o=(d,f)=>({...d,children:[],...f?.length?{compressedEntryIds:f}:{}}),s=e.map((d)=>o(d)),a=e.map((d,f)=>({source:d,projected:s[f],depth:1})),c=(d,f,h)=>{let p=[{node:d,compressedEntryIds:[]}],g=new Set;while(p.length>0){let{node:y,compressedEntryIds:v}=p.pop();if(g.has(y))continue;if(g.add(y),t.has(y)&&!h.has(y.entry.id))h.add(y.entry.id),f.children.push(o(y,v));for(let b=y.children.length-1;b>=0;b--)p.push({node:y.children[b],compressedEntryIds:t.has(y)?[]:[...v,y.entry.id]})}},u=new Set;while(a.length>0){let{source:d,projected:f,depth:h}=a.pop();u.clear();for(let p of f.children)u.add(p.entry.id);for(let p of d.children){let g=p;if(h>=$oe){c(g,f,u);continue}let y=[];while(!t.has(g)&&g.children.length===1)y.push(g.entry.id),g=g.children[0];if(!t.has(g))continue;if(u.has(g.entry.id))continue;u.add(g.entry.id);let v=o(g,y);f.children.push(v),a.push({source:g,projected:v,depth:h+1})}}return s}async function Goe(e,{params:t}){let{id:n}=await t;try{let r=await We(n);if(!r)return w.json({error:"Session not found"},{status:404});let i=$8.open(r),o=i.getEntries(),s=i.getLeafId(),a=Hoe(i.getTree()),c=new URL(e.url).searchParams,u=c.has("deferThinking"),d=c.has("deferMedia"),f=yu(o,s,{deferThinking:u,deferToolResultImages:d}),h=i.getHeader(),p=h?.timestamp??new Date().toISOString();try{p=Loe(r).mtime.toISOString()}catch{}let g=h?.parentSession?await h2(h.parentSession):void 0,y=h?{path:r,id:h.id,cwd:h.cwd??"",name:i.getSessionName(),created:h.timestamp,modified:p,messageCount:f.messages.length,firstMessage:f.messages.find((v)=>v.role==="user")?(()=>{let b=f.messages.find((_)=>_.role==="user").content;return typeof b==="string"?b:(Array.isArray(b)?b.find((_)=>_.type==="text")?.text??"":"")||"(no messages)"})():"(no messages)",parentSessionId:g}:null;return w.json({sessionId:n,filePath:r,info:y,leafId:s,tree:a,context:f})}catch(r){return w.json({error:String(r)},{status:500})}}async function zoe(e,{params:t}){let{id:n}=await t;try{let{name:r}=await e.json();if(typeof r!=="string")return w.json({error:"name is required"},{status:400});let i=await We(n);if(!i)return w.json({error:"Session not found"},{status:404});return $8.open(i).appendSessionInfo(r.trim()),st(),w.json({ok:!0})}catch(r){return w.json({error:String(r)},{status:500})}}async function Voe(e,{params:t}){let{id:n}=await t;try{let r=await We(n);if(!r)return w.json({error:"Session not found"},{status:404});let i=(await g2(r))?.parentSession,o=jt(r),s=qoe(r);try{let a=Noe(s).filter((c)=>c.endsWith(".jsonl")&&jt(q8(s,c))!==o);for(let c of a){let u=q8(s,c);try{let f=Boe(u,"utf8").split(`
417
- `),h=JSON.parse(f[0]);if(h.type==="session"&&h.parentSession&&jt(h.parentSession)===o)h.parentSession=i,f[0]=JSON.stringify(h),joe(u,f.join(`
418
- `))}catch{}}}catch{}return bt(n)?.destroy(),Woe(r),p2(n),st(),w.json({ok:!0})}catch(r){return w.json({error:String(r)},{status:500})}}var Wv={};Q(Wv,{GET:()=>Xoe});async function Xoe(e,{params:t}){let{id:n}=await t;try{let r=bt(n);if(r?.isAlive()){let i=await r.send({type:"get_state"});return w.json({running:!0,state:i})}if(!await We(n))return w.json({error:"Session not found"},{status:404});return w.json({running:!1})}catch(r){return w.json({error:String(r)},{status:500})}}var jv={};Q(jv,{GET:()=>Koe});async function Koe(e){try{let t=e.headers.get("cache-control")?.includes("no-store"),n=be(e),r;if(n)f2(),r=await hu(n),l2(r.map((i)=>i.id),n);else r=await ro(t?"fresh":void 0);return w.json({sessions:r,runningSessionIds:$2()})}catch(t){return console.error(`[api] ${new URL(e.url).pathname} failed:`,t),w.json({error:String(t)},{status:500})}}var Vv={};Q(Vv,{POST:()=>Ese,dynamic:()=>Dse});import{execFile as Zoe}from"node:child_process";import{mkdtemp as Yoe,rm as Joe}from"node:fs/promises";import{tmpdir as Qoe}from"node:os";import{join as ese}from"node:path";import{promisify as tse}from"node:util";var nse=15000,qv=30000,rse=process.env.SKILLS_API_URL||"https://skills.sh",$v=tse(Zoe);class Hv extends Error{status;constructor(e){super(`HTTP ${e}`);this.status=e}}function H8(e){let t=Gv(e.skillPath??""),n=t?`${e.source}/${t}`:e.source,r=e.ref?`#${encodeURIComponent(e.ref)}`:"",i=["skills","add",`${n}${r}`,"--skill",G8(e.package),"-y","--agent","pi"];if(e.scope==="global")i.push("-g");return i}function ise(e){return e.toLowerCase().replace(/[\s_]+/g,"-").replace(/[^a-z0-9-]/g,"").replace(/-+/g,"-").replace(/^-|-$/g,"")}function G8(e){let t=e.lastIndexOf("@");return t>=0?e.slice(t+1):e}function Gv(e){let t=e.replace(/\\/g,"/");if(t.toLowerCase().endsWith("/skill.md"))t=t.slice(0,-9);else if(t.toLowerCase().endsWith("skill.md"))t=t.slice(0,-8);return t.replace(/\/$/,"")}function gs(e,t,n,r){return{package:e.package,scope:e.scope,state:t,currentVersion:e.versionHash,latestVersion:n,message:r}}async function z8(e,t,n){let r=await t(e,{cache:"no-store",headers:n,signal:AbortSignal.timeout(nse)});if(!r.ok)throw new Hv(r.status);return r.json()}async function ose(e){let t=`https://github.com/${e.source}.git`,n=e.ref||"HEAD",r=Gv(e.skillPath),i=await Yoe(ese(Qoe(),"pi-web-skill-check-"));try{await $v("git",["init","--bare",i],{timeout:qv}),await $v("git",[`--git-dir=${i}`,"fetch","--depth=1","--filter=blob:none","--no-tags",t,n],{timeout:qv});let o=r?`FETCH_HEAD:${r}`:"FETCH_HEAD^{tree}",{stdout:s}=await $v("git",[`--git-dir=${i}`,"rev-parse",o],{timeout:qv}),a=s.trim();if(!/^[0-9a-f]{40}$/i.test(a))throw Error("Invalid Git tree hash");return a}finally{await Joe(i,{recursive:!0,force:!0})}}async function sse(e,t){let n=e.ref||"HEAD",r=`https://api.github.com/repos/${e.source}/git/trees/${encodeURIComponent(n)}?recursive=1`,i={Accept:"application/vnd.github.v3+json","User-Agent":"pi-web"};if(t.githubToken)i.Authorization=`Bearer ${t.githubToken}`;let o=Gv(e.skillPath),s;try{let a=await z8(r,t.fetcher,i);if(s=typeof a.sha==="string"&&!o?a.sha:void 0,o&&Array.isArray(a.tree)){let c=a.tree.find((u)=>u.type==="tree"&&u.path===o);if(c&&typeof c.sha==="string")s=c.sha}}catch(a){if(!(a instanceof Hv)||![401,403,429].includes(a.status))throw a;s=await t.resolveGitTreeHash(e)}if(!s)return gs(e,"error",void 0,"Remote skill path was not found.");return gs(e,s===e.versionHash?"up-to-date":"update-available",s)}async function ase(e,t){let[n,r]=e.source.split("/"),i=ise(G8(e.package)),o=`${t.skillsApiBase}/api/download/${encodeURIComponent(n)}/${encodeURIComponent(r)}/${encodeURIComponent(i)}`,s=await z8(o,t.fetcher),a=typeof s.hash==="string"?s.hash:void 0;if(!a)return gs(e,"error",void 0,"skills.sh did not return a version hash.");return gs(e,a===e.versionHash?"up-to-date":"update-available",a)}async function cse(e,t={}){if(!e.canCheckForUpdates||!e.versionHash||!e.skillPath)return gs(e,"unsupported",void 0,"This lock entry cannot be checked automatically.");let n={...t,fetcher:t.fetcher??fetch,skillsApiBase:t.skillsApiBase??rse,resolveGitTreeHash:t.resolveGitTreeHash??ose};try{return e.scope==="global"?await sse(e,n):await ase(e,n)}catch(r){return gs(e,"error",void 0,r instanceof Error?r.message:String(r))}}async function V8(e,t={}){let n=t.fetcher??fetch,r=new Map,i=async(o,s)=>{let a=r.get(o);if(!a)a=n(o,s),r.set(o,a);return(await a).clone()};return Promise.all(e.map((o)=>cse(o,{...t,fetcher:i})))}import{DefaultResourceLoader as vse,getAgentDir as Q8}from"@earendil-works/pi-coding-agent";import{existsSync as use,readFileSync as lse}from"node:fs";import{homedir as dse}from"node:os";import{isAbsolute as fse,join as Ac,relative as hse,resolve as X8,sep as pse}from"node:path";function gse({homeDir:e=dse(),xdgStateHome:t=process.env.XDG_STATE_HOME}={}){return t?Ac(t,"skills",".skill-lock.json"):Ac(e,".agents",".skill-lock.json")}function K8(e){try{let t=JSON.parse(lse(e,"utf8"));return t.skills&&typeof t.skills==="object"?t.skills:{}}catch{return{}}}function Z8(e,t){let n=hse(X8(t),X8(e));return n!==""&&n!==".."&&!n.startsWith(`..${pse}`)&&!fse(n)}function mse(e,t){if(e[t])return e[t];let n=t.toLowerCase(),r=Object.keys(e).find((i)=>i.toLowerCase()===n);return r?e[r]:void 0}function yse(e,t){if(t!=="github")return e.replace(/\/$/,"");return e.replace(/^git\+/,"").replace(/^https?:\/\/github\.com\//,"").replace(/^git@github\.com:/,"").replace(/\.git$/,"").replace(/\/$/,"")}function bse(e,t){if(!e||e.includes("://")||e.startsWith("git@"))return;let n=e.split("/").filter(Boolean).map(encodeURIComponent).join("/");if(!n)return;return`https://skills.sh/${n}/${encodeURIComponent(t)}`}function Y8(e,t,n){let r=mse(e,t);if(!r||typeof r.source!=="string"||!r.source.trim())return;let i=typeof r.sourceType==="string"?r.sourceType:void 0,o=yse(r.source.trim(),i);if(!o)return;let s=typeof r.skillPath==="string"?r.skillPath:void 0,a=typeof r.ref==="string"?r.ref:void 0,c=n==="global"?r.skillFolderHash:r.computedHash,u=typeof c==="string"&&c?c:void 0,d=i==="github"&&/^[\w.-]+\/[\w.-]+$/.test(o),f=n==="global"||!a;return{package:`${o}@${t}`,scope:n,source:o,sourceType:i,skillsShUrl:i==="local"?void 0:bse(o,t),...s&&{skillPath:s},...a&&{ref:a},...u&&{versionHash:u},canCheckForUpdates:Boolean(d&&s&&u&&f)}}function J8(e,{cwd:t,agentDir:n,globalLockPath:r=gse(),projectLockPath:i=Ac(t,"skills-lock.json")}){let o=K8(r),s=K8(i),a=Ac(n,"skills"),c=Ac(t,".pi","skills");return e.map((u)=>{if(!use(u.filePath))return u;let d=Z8(u.filePath,a)?Y8(o,u.name,"global"):Z8(u.filePath,c)?Y8(s,u.name,"project"):void 0;return d?{...u,install:d}:u})}var xse=32,Hi=new Map,zv=new Map;async function fn(e,t){let n=t?.forceFresh??!1,r=e===""?Q8():e;if(!n){let s=Hi.get(e);if(s)return{skills:[...s.skills.values()],diagnostics:s.diagnostics,projectResourcesLoaded:s.projectResourcesLoaded}}let i=zv.get(e);if(i)return i;let o=_se(r,e);zv.set(e,o);try{return await o}finally{zv.delete(e)}}async function _se(e,t){let n=Q8(),r=new vse({cwd:e,agentDir:n});await r.reload(io(e,n));let{skills:i,diagnostics:o}=r.getSkills(),s={skills:J8(i,{cwd:e,agentDir:n}),diagnostics:o,projectResourcesLoaded:ct(e,n).trusted},a=new Map;for(let c of s.skills)a.set(c.filePath,c);return Hi.set(t,{skills:a,diagnostics:s.diagnostics,projectResourcesLoaded:s.projectResourcesLoaded,loadedAt:Date.now()}),wse(),s}function wse(){while(Hi.size>xse){let e=null,t=1/0;for(let[n,r]of Hi){if(n==="")continue;if(r.loadedAt<t)t=r.loadedAt,e=n}if(e===null)break;Hi.delete(e)}}function eO(e,t,n){let r=Hi.get(e);if(!r)return;let i=r.skills.get(t);if(!i){Hi.delete(e);return}if(n.disableModelInvocation!==void 0)i.disableModelInvocation=n.disableModelInvocation}var Dse="force-dynamic";async function Ese(e){try{let t=await e.json(),n=typeof t.cwd==="string"?t.cwd:"";if(!n)return w.json({error:"cwd required"},{status:400});let r=await le();if(!ye(n,r))return w.json({error:"Access denied"},{status:403});let i=typeof t.package==="string"?t.package:void 0,o=t.scope==="global"||t.scope==="project"?t.scope:void 0;if(i&&!o||!i&&o)return w.json({error:"package and scope must be provided together"},{status:400});let{skills:s}=await fn(n),a=s.map((u)=>u.install).filter((u)=>Boolean(u)).filter((u)=>!i||u.package===i&&u.scope===o);if(i&&a.length===0)return w.json({error:"Installed skill not found"},{status:404});let c=await V8(a,{githubToken:process.env.GITHUB_TOKEN||process.env.GH_TOKEN});return w.json({updates:c})}catch(t){return w.json({error:t instanceof Error?t.message:String(t)},{status:500})}}var Xv={};Q(Xv,{POST:()=>Ose,dynamic:()=>Fse});import{getAgentDir as Rse}from"@earendil-works/pi-coding-agent";import{execFile as Tse}from"node:child_process";import{existsSync as Sse}from"node:fs";import{dirname as Cse,join as tO}from"node:path";import{execPath as nO}from"node:process";import{promisify as Ase}from"node:util";var Use=Ase(Tse);function kse(){let e=Cse(nO),t=[tO(e,"node_modules","npm","bin","npx-cli.js"),tO(e,"..","lib","node_modules","npm","bin","npx-cli.js")];for(let n of t)try{if(Sse(n))return n}catch{}return null}async function ms(e,t={}){let n=kse(),{command:r,commandArgs:i}=n?{command:nO,commandArgs:[n,...e]}:{command:"npx",commandArgs:e};return Use(r,i,{timeout:t.timeout,cwd:t.cwd,env:t.env})}var Fse="force-dynamic",rO=/\x1B\[[0-9;]*m/g;async function Ose(e){if(!Et(e))return w.json({error:"Untrusted API request"},{status:403});if(!wr(e))return w.json({error:"Content-Type must be application/json"},{status:415});try{let{package:t,scope:n,cwd:r}=await e.json();if(!t?.trim())return w.json({error:"package required"},{status:400});let i=n!=="project";if(!i){if(!r)return w.json({error:"cwd required for project install"},{status:400});let d=await le();if(!ye(r,d))return w.json({error:"Access denied"},{status:403});if(!ct(r,Rse()).trusted)return w.json({error:"Project resources must be trusted before installing project skills"},{status:403})}let o=["skills","add",t.trim(),"-y","--agent","pi"];if(i)o.push("-g");console.log(`[skills/install] running: npx ${o.join(" ")}`);let{stdout:s,stderr:a}=await ms(o,{timeout:60000,cwd:!i&&r?r:void 0,env:{...process.env,FORCE_COLOR:"0"}}),c=(s+a).replace(rO,"");if(!/Installation complete|Installed \d+ skill/.test(c))return w.json({error:c.slice(-300)||"Install failed"},{status:500});return w.json({success:!0,output:c})}catch(t){let n=t,r=((n.stdout??"")+(n.stderr??"")).replace(rO,"");return w.json({error:r||(n.message??String(t))},{status:500})}}var Kv={};Q(Kv,{GET:()=>jse,PATCH:()=>qse,dynamic:()=>Wse});import{existsSync as iO,readFileSync as Pse,writeFileSync as Ise}from"node:fs";import{homedir as Mse}from"node:os";import Nse from"node:path";import{getAgentDir as Bse,parseFrontmatter as Lse}from"@earendil-works/pi-coding-agent";var Wse="force-dynamic";async function jse(e){let{searchParams:t}=new URL(e.url),n=t.get("cwd");if(!n)return w.json({error:"cwd required"},{status:400});try{let r=await le();if(!ye(n,r))return w.json({error:"Access denied"},{status:403});let i=await fn(n,{forceFresh:(e.headers.get("cache-control")??"").includes("no-store")});return w.json({...i,skills:i.skills.filter((o)=>o.sourceInfo?.scope==="project")})}catch(r){return w.json({error:String(r)},{status:500})}}async function qse(e){try{let t=await e.json(),{filePath:n,disableModelInvocation:r,cwd:i}=t;if(!n)return w.json({error:"filePath required"},{status:400});if(!iO(n))return w.json({error:"file not found"},{status:404});let o=new Set(await le());o.add(Bse());let s=Nse.join(Mse(),".agents","skills");if(iO(s))o.add(s);if(!ye(n,o))return w.json({error:"Access denied"},{status:403});let a=Pse(n,"utf8"),c="disable-model-invocation",{frontmatter:u}=Lse(a),d=Boolean(u[c]),f=a;if(r&&!d){if(f=a.replace(/^---\r?\n/,`---
416
+ }`),e}async function Noe(e,t){let n=await Ioe();if(n){await Roe(process.execPath,[n,"--export",e,t],{cwd:process.cwd(),timeout:30000,env:{...process.env,PI_OFFLINE:"1",PI_SKIP_VERSION_CHECK:"1"},maxBuffer:1048576});return}let r=await j8();if(!r)throw Error("pi CLI not found");let i=Uoe(ps(r,"dist","core","export-html","index.js")).href,{exportFromFile:o}=await import(i);await o(e,t)}async function Boe(e,{params:t}){let{id:n}=await t,r=new URL(e.url).searchParams.get("inline")==="1";try{let i=await We(n);if(!i)return w.json({error:"Session not found"},{status:404});let o=ps(Toe(),"pi-web-export");woe(o,{recursive:!0});let a=`pi-session-${Soe(i,".jsonl")}.html`,c=ps(o,`${xoe()}.html`);try{await Noe(i,c);let u=Doe(c,"utf8"),d=Moe(u);return new Response(d,{headers:{"Content-Type":"text/html; charset=utf-8","Content-Disposition":Poe(a,r),"Cache-Control":"no-cache","Content-Security-Policy":"frame-ancestors 'none'","X-Content-Type-Options":"nosniff","X-Frame-Options":"DENY"}})}finally{Eoe(c,{force:!0})}}catch(i){return w.json({error:String(i)},{status:500})}}var Lv={};Q(Lv,{DELETE:()=>Koe,GET:()=>Voe,PATCH:()=>Xoe});import{readdirSync as Loe,readFileSync as Woe,statSync as joe,unlinkSync as qoe,writeFileSync as $oe}from"node:fs";import{dirname as Hoe,join as q8}from"node:path";import{SessionManager as $8}from"@earendil-works/pi-coding-agent";var Goe=200;function zoe(e){let t=new Set,n=new Set(e),r=new Set,i=[...e];while(i.length>0){let d=i.pop();if(r.has(d))continue;if(r.add(d),n.has(d)||d.children.length!==1)t.add(d);for(let f of d.children)i.push(f)}let o=(d,f)=>({...d,children:[],...f?.length?{compressedEntryIds:f}:{}}),s=e.map((d)=>o(d)),a=e.map((d,f)=>({source:d,projected:s[f],depth:1})),c=(d,f,h)=>{let p=[{node:d,compressedEntryIds:[]}],g=new Set;while(p.length>0){let{node:y,compressedEntryIds:v}=p.pop();if(g.has(y))continue;if(g.add(y),t.has(y)&&!h.has(y.entry.id))h.add(y.entry.id),f.children.push(o(y,v));for(let b=y.children.length-1;b>=0;b--)p.push({node:y.children[b],compressedEntryIds:t.has(y)?[]:[...v,y.entry.id]})}},u=new Set;while(a.length>0){let{source:d,projected:f,depth:h}=a.pop();u.clear();for(let p of f.children)u.add(p.entry.id);for(let p of d.children){let g=p;if(h>=Goe){c(g,f,u);continue}let y=[];while(!t.has(g)&&g.children.length===1)y.push(g.entry.id),g=g.children[0];if(!t.has(g))continue;if(u.has(g.entry.id))continue;u.add(g.entry.id);let v=o(g,y);f.children.push(v),a.push({source:g,projected:v,depth:h+1})}}return s}async function Voe(e,{params:t}){let{id:n}=await t;try{let r=await We(n);if(!r)return w.json({error:"Session not found"},{status:404});let i=$8.open(r),o=i.getEntries(),s=i.getLeafId(),a=zoe(i.getTree()),c=new URL(e.url).searchParams,u=c.has("deferThinking"),d=c.has("deferMedia"),f=yu(o,s,{deferThinking:u,deferToolResultImages:d}),h=i.getHeader(),p=h?.timestamp??new Date().toISOString();try{p=joe(r).mtime.toISOString()}catch{}let g=h?.parentSession?await h2(h.parentSession):void 0,y=h?{path:r,id:h.id,cwd:h.cwd??"",name:i.getSessionName(),created:h.timestamp,modified:p,messageCount:f.messages.length,firstMessage:f.messages.find((v)=>v.role==="user")?(()=>{let b=f.messages.find((_)=>_.role==="user").content;return typeof b==="string"?b:(Array.isArray(b)?b.find((_)=>_.type==="text")?.text??"":"")||"(no messages)"})():"(no messages)",parentSessionId:g}:null;return w.json({sessionId:n,filePath:r,info:y,leafId:s,tree:a,context:f})}catch(r){return w.json({error:String(r)},{status:500})}}async function Xoe(e,{params:t}){let{id:n}=await t;try{let{name:r}=await e.json();if(typeof r!=="string")return w.json({error:"name is required"},{status:400});let i=await We(n);if(!i)return w.json({error:"Session not found"},{status:404});return $8.open(i).appendSessionInfo(r.trim()),st(),w.json({ok:!0})}catch(r){return w.json({error:String(r)},{status:500})}}async function Koe(e,{params:t}){let{id:n}=await t;try{let r=await We(n);if(!r)return w.json({error:"Session not found"},{status:404});let i=(await g2(r))?.parentSession,o=jt(r),s=Hoe(r);try{let a=Loe(s).filter((c)=>c.endsWith(".jsonl")&&jt(q8(s,c))!==o);for(let c of a){let u=q8(s,c);try{let f=Woe(u,"utf8").split(`
417
+ `),h=JSON.parse(f[0]);if(h.type==="session"&&h.parentSession&&jt(h.parentSession)===o)h.parentSession=i,f[0]=JSON.stringify(h),$oe(u,f.join(`
418
+ `))}catch{}}}catch{}return bt(n)?.destroy(),qoe(r),p2(n),st(),w.json({ok:!0})}catch(r){return w.json({error:String(r)},{status:500})}}var Wv={};Q(Wv,{GET:()=>Zoe});async function Zoe(e,{params:t}){let{id:n}=await t;try{let r=bt(n);if(r?.isAlive()){let i=await r.send({type:"get_state"});return w.json({running:!0,state:i})}if(!await We(n))return w.json({error:"Session not found"},{status:404});return w.json({running:!1})}catch(r){return w.json({error:String(r)},{status:500})}}var jv={};Q(jv,{GET:()=>Yoe});async function Yoe(e){try{let t=e.headers.get("cache-control")?.includes("no-store"),n=xe(e),r;if(n)f2(),r=await hu(n),l2(r.map((i)=>i.id),n);else r=await ro(t?"fresh":void 0);return w.json({sessions:r,runningSessionIds:$2()})}catch(t){return console.error(`[api] ${new URL(e.url).pathname} failed:`,t),w.json({error:String(t)},{status:500})}}var Vv={};Q(Vv,{POST:()=>Sse,dynamic:()=>Tse});import{execFile as Joe}from"node:child_process";import{mkdtemp as Qoe,rm as ese}from"node:fs/promises";import{tmpdir as tse}from"node:os";import{join as nse}from"node:path";import{promisify as rse}from"node:util";var ise=15000,qv=30000,ose=process.env.SKILLS_API_URL||"https://skills.sh",$v=rse(Joe);class Hv extends Error{status;constructor(e){super(`HTTP ${e}`);this.status=e}}function H8(e){let t=Gv(e.skillPath??""),n=t?`${e.source}/${t}`:e.source,r=e.ref?`#${encodeURIComponent(e.ref)}`:"",i=["skills","add",`${n}${r}`,"--skill",G8(e.package),"-y","--agent","pi"];if(e.scope==="global")i.push("-g");return i}function sse(e){return e.toLowerCase().replace(/[\s_]+/g,"-").replace(/[^a-z0-9-]/g,"").replace(/-+/g,"-").replace(/^-|-$/g,"")}function G8(e){let t=e.lastIndexOf("@");return t>=0?e.slice(t+1):e}function Gv(e){let t=e.replace(/\\/g,"/");if(t.toLowerCase().endsWith("/skill.md"))t=t.slice(0,-9);else if(t.toLowerCase().endsWith("skill.md"))t=t.slice(0,-8);return t.replace(/\/$/,"")}function gs(e,t,n,r){return{package:e.package,scope:e.scope,state:t,currentVersion:e.versionHash,latestVersion:n,message:r}}async function z8(e,t,n){let r=await t(e,{cache:"no-store",headers:n,signal:AbortSignal.timeout(ise)});if(!r.ok)throw new Hv(r.status);return r.json()}async function ase(e){let t=`https://github.com/${e.source}.git`,n=e.ref||"HEAD",r=Gv(e.skillPath),i=await Qoe(nse(tse(),"pi-web-skill-check-"));try{await $v("git",["init","--bare",i],{timeout:qv}),await $v("git",[`--git-dir=${i}`,"fetch","--depth=1","--filter=blob:none","--no-tags",t,n],{timeout:qv});let o=r?`FETCH_HEAD:${r}`:"FETCH_HEAD^{tree}",{stdout:s}=await $v("git",[`--git-dir=${i}`,"rev-parse",o],{timeout:qv}),a=s.trim();if(!/^[0-9a-f]{40}$/i.test(a))throw Error("Invalid Git tree hash");return a}finally{await ese(i,{recursive:!0,force:!0})}}async function cse(e,t){let n=e.ref||"HEAD",r=`https://api.github.com/repos/${e.source}/git/trees/${encodeURIComponent(n)}?recursive=1`,i={Accept:"application/vnd.github.v3+json","User-Agent":"pi-web"};if(t.githubToken)i.Authorization=`Bearer ${t.githubToken}`;let o=Gv(e.skillPath),s;try{let a=await z8(r,t.fetcher,i);if(s=typeof a.sha==="string"&&!o?a.sha:void 0,o&&Array.isArray(a.tree)){let c=a.tree.find((u)=>u.type==="tree"&&u.path===o);if(c&&typeof c.sha==="string")s=c.sha}}catch(a){if(!(a instanceof Hv)||![401,403,429].includes(a.status))throw a;s=await t.resolveGitTreeHash(e)}if(!s)return gs(e,"error",void 0,"Remote skill path was not found.");return gs(e,s===e.versionHash?"up-to-date":"update-available",s)}async function use(e,t){let[n,r]=e.source.split("/"),i=sse(G8(e.package)),o=`${t.skillsApiBase}/api/download/${encodeURIComponent(n)}/${encodeURIComponent(r)}/${encodeURIComponent(i)}`,s=await z8(o,t.fetcher),a=typeof s.hash==="string"?s.hash:void 0;if(!a)return gs(e,"error",void 0,"skills.sh did not return a version hash.");return gs(e,a===e.versionHash?"up-to-date":"update-available",a)}async function lse(e,t={}){if(!e.canCheckForUpdates||!e.versionHash||!e.skillPath)return gs(e,"unsupported",void 0,"This lock entry cannot be checked automatically.");let n={...t,fetcher:t.fetcher??fetch,skillsApiBase:t.skillsApiBase??ose,resolveGitTreeHash:t.resolveGitTreeHash??ase};try{return e.scope==="global"?await cse(e,n):await use(e,n)}catch(r){return gs(e,"error",void 0,r instanceof Error?r.message:String(r))}}async function V8(e,t={}){let n=t.fetcher??fetch,r=new Map,i=async(o,s)=>{let a=r.get(o);if(!a)a=n(o,s),r.set(o,a);return(await a).clone()};return Promise.all(e.map((o)=>lse(o,{...t,fetcher:i})))}import{DefaultResourceLoader as _se,getAgentDir as Q8}from"@earendil-works/pi-coding-agent";import{existsSync as dse,readFileSync as fse}from"node:fs";import{homedir as hse}from"node:os";import{isAbsolute as pse,join as Ac,relative as gse,resolve as X8,sep as mse}from"node:path";function yse({homeDir:e=hse(),xdgStateHome:t=process.env.XDG_STATE_HOME}={}){return t?Ac(t,"skills",".skill-lock.json"):Ac(e,".agents",".skill-lock.json")}function K8(e){try{let t=JSON.parse(fse(e,"utf8"));return t.skills&&typeof t.skills==="object"?t.skills:{}}catch{return{}}}function Z8(e,t){let n=gse(X8(t),X8(e));return n!==""&&n!==".."&&!n.startsWith(`..${mse}`)&&!pse(n)}function bse(e,t){if(e[t])return e[t];let n=t.toLowerCase(),r=Object.keys(e).find((i)=>i.toLowerCase()===n);return r?e[r]:void 0}function vse(e,t){if(t!=="github")return e.replace(/\/$/,"");return e.replace(/^git\+/,"").replace(/^https?:\/\/github\.com\//,"").replace(/^git@github\.com:/,"").replace(/\.git$/,"").replace(/\/$/,"")}function xse(e,t){if(!e||e.includes("://")||e.startsWith("git@"))return;let n=e.split("/").filter(Boolean).map(encodeURIComponent).join("/");if(!n)return;return`https://skills.sh/${n}/${encodeURIComponent(t)}`}function Y8(e,t,n){let r=bse(e,t);if(!r||typeof r.source!=="string"||!r.source.trim())return;let i=typeof r.sourceType==="string"?r.sourceType:void 0,o=vse(r.source.trim(),i);if(!o)return;let s=typeof r.skillPath==="string"?r.skillPath:void 0,a=typeof r.ref==="string"?r.ref:void 0,c=n==="global"?r.skillFolderHash:r.computedHash,u=typeof c==="string"&&c?c:void 0,d=i==="github"&&/^[\w.-]+\/[\w.-]+$/.test(o),f=n==="global"||!a;return{package:`${o}@${t}`,scope:n,source:o,sourceType:i,skillsShUrl:i==="local"?void 0:xse(o,t),...s&&{skillPath:s},...a&&{ref:a},...u&&{versionHash:u},canCheckForUpdates:Boolean(d&&s&&u&&f)}}function J8(e,{cwd:t,agentDir:n,globalLockPath:r=yse(),projectLockPath:i=Ac(t,"skills-lock.json")}){let o=K8(r),s=K8(i),a=Ac(n,"skills"),c=Ac(t,".pi","skills");return e.map((u)=>{if(!dse(u.filePath))return u;let d=Z8(u.filePath,a)?Y8(o,u.name,"global"):Z8(u.filePath,c)?Y8(s,u.name,"project"):void 0;return d?{...u,install:d}:u})}var wse=32,Hi=new Map,zv=new Map;async function fn(e,t){let n=t?.forceFresh??!1,r=e===""?Q8():e;if(!n){let s=Hi.get(e);if(s)return{skills:[...s.skills.values()],diagnostics:s.diagnostics,projectResourcesLoaded:s.projectResourcesLoaded}}let i=zv.get(e);if(i)return i;let o=Dse(r,e);zv.set(e,o);try{return await o}finally{zv.delete(e)}}async function Dse(e,t){let n=Q8(),r=new _se({cwd:e,agentDir:n});await r.reload(io(e,n));let{skills:i,diagnostics:o}=r.getSkills(),s={skills:J8(i,{cwd:e,agentDir:n}),diagnostics:o,projectResourcesLoaded:ct(e,n).trusted},a=new Map;for(let c of s.skills)a.set(c.filePath,c);return Hi.set(t,{skills:a,diagnostics:s.diagnostics,projectResourcesLoaded:s.projectResourcesLoaded,loadedAt:Date.now()}),Ese(),s}function Ese(){while(Hi.size>wse){let e=null,t=1/0;for(let[n,r]of Hi){if(n==="")continue;if(r.loadedAt<t)t=r.loadedAt,e=n}if(e===null)break;Hi.delete(e)}}function eO(e,t,n){let r=Hi.get(e);if(!r)return;let i=r.skills.get(t);if(!i){Hi.delete(e);return}if(n.disableModelInvocation!==void 0)i.disableModelInvocation=n.disableModelInvocation}var Tse="force-dynamic";async function Sse(e){try{let t=await e.json(),n=typeof t.cwd==="string"?t.cwd:"";if(!n)return w.json({error:"cwd required"},{status:400});let r=await le();if(!ye(n,r))return w.json({error:"Access denied"},{status:403});let i=typeof t.package==="string"?t.package:void 0,o=t.scope==="global"||t.scope==="project"?t.scope:void 0;if(i&&!o||!i&&o)return w.json({error:"package and scope must be provided together"},{status:400});let{skills:s}=await fn(n),a=s.map((u)=>u.install).filter((u)=>Boolean(u)).filter((u)=>!i||u.package===i&&u.scope===o);if(i&&a.length===0)return w.json({error:"Installed skill not found"},{status:404});let c=await V8(a,{githubToken:process.env.GITHUB_TOKEN||process.env.GH_TOKEN});return w.json({updates:c})}catch(t){return w.json({error:t instanceof Error?t.message:String(t)},{status:500})}}var Xv={};Q(Xv,{POST:()=>Ise,dynamic:()=>Pse});import{getAgentDir as Ose}from"@earendil-works/pi-coding-agent";import{execFile as Cse}from"node:child_process";import{existsSync as Ase}from"node:fs";import{dirname as Use,join as tO}from"node:path";import{execPath as nO}from"node:process";import{promisify as kse}from"node:util";var Rse=kse(Cse);function Fse(){let e=Use(nO),t=[tO(e,"node_modules","npm","bin","npx-cli.js"),tO(e,"..","lib","node_modules","npm","bin","npx-cli.js")];for(let n of t)try{if(Ase(n))return n}catch{}return null}async function ms(e,t={}){let n=Fse(),{command:r,commandArgs:i}=n?{command:nO,commandArgs:[n,...e]}:{command:"npx",commandArgs:e};return Rse(r,i,{timeout:t.timeout,cwd:t.cwd,env:t.env})}var Pse="force-dynamic",rO=/\x1B\[[0-9;]*m/g;async function Ise(e){if(!Et(e))return w.json({error:"Untrusted API request"},{status:403});if(!wr(e))return w.json({error:"Content-Type must be application/json"},{status:415});try{let{package:t,scope:n,cwd:r}=await e.json();if(!t?.trim())return w.json({error:"package required"},{status:400});let i=n!=="project";if(!i){if(!r)return w.json({error:"cwd required for project install"},{status:400});let d=await le();if(!ye(r,d))return w.json({error:"Access denied"},{status:403});if(!ct(r,Ose()).trusted)return w.json({error:"Project resources must be trusted before installing project skills"},{status:403})}let o=["skills","add",t.trim(),"-y","--agent","pi"];if(i)o.push("-g");console.log(`[skills/install] running: npx ${o.join(" ")}`);let{stdout:s,stderr:a}=await ms(o,{timeout:60000,cwd:!i&&r?r:void 0,env:{...process.env,FORCE_COLOR:"0"}}),c=(s+a).replace(rO,"");if(!/Installation complete|Installed \d+ skill/.test(c))return w.json({error:c.slice(-300)||"Install failed"},{status:500});return w.json({success:!0,output:c})}catch(t){let n=t,r=((n.stdout??"")+(n.stderr??"")).replace(rO,"");return w.json({error:r||(n.message??String(t))},{status:500})}}var Kv={};Q(Kv,{GET:()=>$se,PATCH:()=>Hse,dynamic:()=>qse});import{existsSync as iO,readFileSync as Mse,writeFileSync as Nse}from"node:fs";import{homedir as Bse}from"node:os";import Lse from"node:path";import{getAgentDir as Wse,parseFrontmatter as jse}from"@earendil-works/pi-coding-agent";var qse="force-dynamic";async function $se(e){let{searchParams:t}=new URL(e.url),n=t.get("cwd");if(!n)return w.json({error:"cwd required"},{status:400});try{let r=await le();if(!ye(n,r))return w.json({error:"Access denied"},{status:403});let i=await fn(n,{forceFresh:(e.headers.get("cache-control")??"").includes("no-store")});return w.json({...i,skills:i.skills.filter((o)=>o.sourceInfo?.scope==="project")})}catch(r){return w.json({error:String(r)},{status:500})}}async function Hse(e){try{let t=await e.json(),{filePath:n,disableModelInvocation:r,cwd:i}=t;if(!n)return w.json({error:"filePath required"},{status:400});if(!iO(n))return w.json({error:"file not found"},{status:404});let o=new Set(await le());o.add(Wse());let s=Lse.join(Bse(),".agents","skills");if(iO(s))o.add(s);if(!ye(n,o))return w.json({error:"Access denied"},{status:403});let a=Mse(n,"utf8"),c="disable-model-invocation",{frontmatter:u}=jse(a),d=Boolean(u[c]),f=a;if(r&&!d){if(f=a.replace(/^---\r?\n/,`---
419
419
  ${c}: true
420
420
  `),f===a)f=`---
421
421
  ${c}: true
422
422
  ---
423
- ${a}`}else if(!r&&d)f=a.replace(new RegExp(`^${c}\\s*:.*\\r?\\n`,"m"),"");if(Ise(n,f,"utf8"),i)eO(i==="global"?"":i,n,{disableModelInvocation:r});return w.json({success:!0})}catch(t){return w.json({error:String(t)},{status:500})}}var Yv={};Q(Yv,{GET:()=>Kse,dynamic:()=>Xse});import{SessionManager as $se,createAgentSessionFromServices as Hse,createAgentSessionServices as Gse,getAgentDir as zse}from"@earendil-works/pi-coding-agent";var Zv=null,wf=null;async function oO(e){if(!(e?.forceFresh??!1)&&Zv)return Zv.commands;if(wf)return wf;let n=Vse();wf=n;try{return await n}finally{wf=null}}async function Vse(){let e=zse(),t=await Gse({cwd:e,agentDir:e}),n=$se.inMemory(e),{session:r}=await Hse({services:t,sessionManager:n}),i=[];for(let o of r.extensionRunner.getRegisteredCommands())i.push({name:o.invocationName,description:o.description,source:"extension",sourceInfo:o.sourceInfo});for(let o of r.promptTemplates)i.push({name:o.name,description:o.description,source:"prompt",sourceInfo:o.sourceInfo});for(let o of r.resourceLoader.getSkills().skills)i.push({name:`skill:${o.name}`,description:o.description,source:"skill",sourceInfo:o.sourceInfo});return Zv={commands:i,loadedAt:Date.now()},i}var Xse="force-dynamic";async function Kse(e){await Nn();try{let t=(e.headers.get("cache-control")??"").includes("no-store"),n=await oO({forceFresh:t});return w.json({commands:n})}catch(t){return w.json({error:String(t)},{status:500})}}var Jv={};Q(Jv,{GET:()=>Yse,dynamic:()=>Zse});var Zse="force-dynamic";async function Yse(e){await Nn();try{let t=(e.headers.get("cache-control")??"").includes("no-store");return w.json(await fn("",{forceFresh:t}))}catch(t){return w.json({error:String(t)},{status:500})}}var Qv={};Q(Qv,{POST:()=>sae,dynamic:()=>Jse});var Jse="force-dynamic",Qse=/\x1B\[[0-9;]*m/g,eae=50,tae=1,nae=50,sO=process.env.SKILLS_API_URL||"https://skills.sh";function rae(e){let t=typeof e==="number"?e:Number(e);if(!Number.isFinite(t))return eae;return Math.min(nae,Math.max(tae,Math.floor(t)))}function iae(e){if(!e||e<=0)return"";if(e>=1e6)return`${(e/1e6).toFixed(1).replace(/\.0$/,"")}M installs`;if(e>=1000)return`${(e/1000).toFixed(1).replace(/\.0$/,"")}K installs`;return`${e} install${e===1?"":"s"}`}function aO(e){let t=e.replace(Qse,""),n=[],r=t.split(`
424
- `);for(let i=0;i<r.length;i++){let s=r[i].trim().match(/^([\w.-]+\/[\w.\-@:]+)\s+([\d.,]+[KMB]?\s+installs)$/);if(s){let a=r[i+1]?.trim().replace(/^└\s*/,"");n.push({package:s[1],installs:s[2],url:a?.startsWith("https://")?a:""})}}return n}async function oae(e,t){let n=`${sO}/api/search?q=${encodeURIComponent(e)}&limit=${t}`,r=await fetch(n,{cache:"no-store"});if(!r.ok)throw Error(`skills.sh search failed: HTTP ${r.status}`);return((await r.json()).skills??[]).map((o)=>{let s=o.name?.trim(),a=o.source?.trim(),c=o.id?.trim();if(!s||!a&&!c)return null;return{package:`${a||c}@${s}`,installs:iae(o.installs),url:c?`${sO}/${c}`:""}}).filter((o)=>o!==null).sort((o,s)=>cO(s.installs)-cO(o.installs))}function cO(e){let t=e.match(/^([\d.]+)([KMB])?\s+installs?$/);if(!t)return 0;let n=Number(t[1]);if(!Number.isFinite(n))return 0;let r=t[2]==="B"?1e9:t[2]==="M"?1e6:t[2]==="K"?1000:1;return n*r}async function sae(e){try{let{query:t,limit:n}=await e.json();if(!t?.trim())return w.json({error:"query required"},{status:400});let r=rae(n);try{let i=await oae(t.trim(),r);return w.json({results:i})}catch{let{stdout:i,stderr:o}=await ms(["skills","find",t.trim()],{timeout:20000,env:{...process.env,FORCE_COLOR:"0"}}),s=aO(i+o).slice(0,r);return w.json({results:s})}}catch(t){let n=t,r=(n.stdout??"")+(n.stderr??""),i=r?aO(r):[];if(i.length>0)return w.json({results:i});return w.json({error:n.message??String(t)},{status:500})}}var ex={};Q(ex,{POST:()=>cae,dynamic:()=>aae});var aae="force-dynamic";async function cae(e){try{let t=await e.json(),n=typeof t.cwd==="string"?t.cwd:"",r=typeof t.package==="string"?t.package:"",i=t.scope==="global"||t.scope==="project"?t.scope:void 0;if(!n||!r||!i)return w.json({error:"cwd, package, and scope are required"},{status:400});let o=await le();if(!ye(n,o))return w.json({error:"Access denied"},{status:403});let{skills:s}=await fn(n),a=s.find((h)=>h.install?.package===r&&h.install.scope===i);if(!a?.install)return w.json({error:"Installed skill not found"},{status:404});if(!a.install.canCheckForUpdates)return w.json({error:"This skill cannot be updated automatically"},{status:400});let{stdout:c,stderr:u}=await ms(H8(a.install),{timeout:60000,cwd:i==="project"?n:void 0,env:{...process.env,FORCE_COLOR:"0"}}),f=(await fn(n)).skills.find((h)=>h.install?.package===r&&h.install.scope===i);return w.json({success:!0,skill:f,output:`${c}${u}`.slice(-500)})}catch(t){let n=t,r=`${n.stdout??""}${n.stderr??""}`;return w.json({error:r||n.message||String(t)},{status:500})}}var nx={};Q(nx,{DELETE:()=>dae,GET:()=>uae,POST:()=>lae});import{existsSync as uO}from"node:fs";async function tx(e){let t=await le();if(!Xe(e,t)||!ye(e,t))return w.json({error:"Access denied"},{status:403});return null}async function uae(e){try{let t=new URL(e.url).searchParams.get("cwd");if(!t)return w.json({error:"cwd is required"},{status:400});let n=await tx(t);if(n)return n;let r=await uu(t),i=[],o=!0;try{i=await Ch(uO(t)?t:r.projectRoot)}catch{o=!1}for(let s of i)yt(s.path);return w.json({projectRoot:r.projectRoot,isGit:o,isTopLevel:r.isTopLevel,worktrees:i})}catch(t){return w.json({error:String(t)},{status:500})}}async function lae(e){try{let t=await e.json();if(!t.cwd||typeof t.cwd!=="string")return w.json({error:"cwd is required"},{status:400});if(!t.branch||typeof t.branch!=="string")return w.json({error:"branch is required"},{status:400});let n=await tx(t.cwd);if(n)return n;if(!uO(t.cwd))return w.json({error:`Directory does not exist: ${t.cwd}`},{status:400});let r=await r2(t.cwd,t.branch);return w.json(r)}catch(t){let n=t instanceof Error?t.message:String(t);return w.json({error:n},{status:400})}}async function dae(e){try{let t=await e.json();if(!t.cwd||typeof t.cwd!=="string")return w.json({error:"cwd is required"},{status:400});if(!t.path||typeof t.path!=="string")return w.json({error:"path is required"},{status:400});let n=await tx(t.cwd);if(n)return n;return await i2(t.cwd,t.path,t.force===!0),w.json({success:!0})}catch(t){let n=t instanceof Error?t.message:String(t),r=/contains modified or untracked files|is dirty/i.test(n);return w.json({error:n,dirty:r},{status:r?409:400})}}import{createReadStream as fae}from"node:fs";import{stat as lO}from"node:fs/promises";import{extname as hae,join as ix,normalize as pae}from"node:path";import{Readable as gae}from"node:stream";var mae=Lt("static"),rx=ix(import.meta.dirname,"..","dist","static"),yae={".html":"text/html; charset=utf-8",".css":"text/css; charset=utf-8",".js":"text/javascript; charset=utf-8",".mjs":"text/javascript; charset=utf-8",".json":"application/json; charset=utf-8",".svg":"image/svg+xml",".png":"image/png",".ico":"image/x-icon",".webmanifest":"application/manifest+json",".woff2":"font/woff2",".txt":"text/plain; charset=utf-8"};async function dO(e){let t=performance.now(),n=new URL(e.req.url).pathname;if(n.startsWith("/api/"))return e.json({error:"Not found"},404);let r=n==="/"?"/index.html":decodeURIComponent(n),i=pae(ix(rx,r));if(!i.startsWith(rx))return e.text("Forbidden",403);let o=i;try{if(!(await lO(i)).isFile())return e.text("Not found",404)}catch{o=ix(rx,"index.html");try{await lO(o)}catch{return e.text("Not found",404)}}return mae(e.req.path,`${Math.round(performance.now()-t)}ms`),new Response(gae.toWeb(fae(o)),{headers:{"content-type":yae[hae(o).toLowerCase()]??"application/octet-stream"}})}var Y=new bh;Y.use("/api/*",async(e,t)=>{let n=e.req.raw,r=n.url.includes("/api/");if(!(r?Et(n):vh(n))){if(!r)return new Response("Untrusted request",{status:403});return new Response(JSON.stringify({error:"Untrusted API request"}),{status:403,headers:{"content-type":"application/json"}})}let o=process.env.PI_WEB_PASSWORD;if(Ms(o)&&!ou(n.headers.get("authorization"),o))return new Response("Authentication required",{status:401,headers:{"Cache-Control":"no-store","WWW-Authenticate":'Basic realm="Pi Web", charset="UTF-8"'}});await t()});ee(Y,"/api/agent/running",qh);ee(Y,"/api/agent/[id]/bash-output",Fh);ee(Y,"/api/agent/[id]",jh);ee(Y,"/api/auth/all-providers",zh);ee(Y,"/api/auth/api-key/[provider]",cp);ee(Y,"/api/auth/login/[provider]",up);ee(Y,"/api/auth/logout/[provider]",lp);ee(Y,"/api/auth/providers",dp);ee(Y,"/api/cwd/browse",hp);ee(Y,"/api/cwd/validate",pp);ee(Y,"/api/default-cwd",gp);ee(Y,"/api/file-index",mp);ee(Y,"/api/files/[...path]",wb);ee(Y,"/api/git/commit",Sb);ee(Y,"/api/git/diff",Cb);ee(Y,"/api/git/generate-commit",kb);ee(Y,"/api/git/push",Rb);ee(Y,"/api/git/pull",Fb);ee(Y,"/api/git/autofetch-status",Zb);ee(Y,"/api/git/stage",Yb);ee(Y,"/api/git/status",Jb);ee(Y,"/api/home",Qb);ee(Y,"/api/models-config/catalog",sv);ee(Y,"/api/models-config/discover",av);ee(Y,"/api/models-config/effective",cv);ee(Y,"/api/models-config/override-suggestion",uv);ee(Y,"/api/models-config/remote-models",dv);ee(Y,"/api/models-config",vv);ee(Y,"/api/models-config/sync-provider-models",_v);ee(Y,"/api/models-config/test",Dv);ee(Y,"/api/model-thinking",wv);ee(Y,"/api/models",tv);ee(Y,"/api/plugins/global",Cv);ee(Y,"/api/plugins",Sv);ee(Y,"/api/preferences",Av);ee(Y,"/api/updates",Mv);ee(Y,"/api/updates-config",Nv);ee(Y,"/api/project-trust",Uv);ee(Y,"/api/sessions/[id]/auto-name",Rv);ee(Y,"/api/sessions/[id]/context",Fv);ee(Y,"/api/sessions/[id]/entries/[entryId]/thinking",Ov);ee(Y,"/api/sessions/[id]/export",Bv);ee(Y,"/api/sessions/[id]",Lv);ee(Y,"/api/sessions/[id]/state",Wv);ee(Y,"/api/sessions",jv);ee(Y,"/api/commands/global",Yv);ee(Y,"/api/skills/check",Vv);ee(Y,"/api/skills/install",Xv);ee(Y,"/api/skills/global",Jv);ee(Y,"/api/skills",Kv);ee(Y,"/api/skills/search",Qv);ee(Y,"/api/skills/update",ex);ee(Y,"/api/worktrees",nx);U3(Y);D3();if(process.env.PI_WEB_E2E==="1")Y.get("/api/__e2e/probe",(e)=>e.json({agentDir:bae()}));Y.get("*",dO);import{closeSync as vae,mkdirSync as xae,openSync as _ae,writeSync as wae}from"node:fs";import{join as fO}from"node:path";import{inspect as Dae}from"node:util";import{getAgentDir as Eae}from"@earendil-works/pi-coding-agent";var ys=null,hO=!1;function Df(e,t){if(ys===null)return;let n=`[${new Date().toISOString()}][${e}] ${t.map((r)=>typeof r==="string"?r:Dae(r)).join(" ")}`;try{wae(ys,n+`
425
- `)}catch{}}function pO(e=!1){hO=e;try{let n=fO(Eae(),"pi-web");xae(n,{recursive:!0}),ys=_ae(fO(n,"server.log"),"w")}catch{ys=null}process.on("exit",()=>{if(ys!==null)vae(ys)});let t={debug:console.debug.bind(console),log:console.log.bind(console),warn:console.warn.bind(console),error:console.error.bind(console)};console.debug=(...n)=>{if(!hO)return t.debug(...n);t.debug(...n),Df("DEBUG",n)},console.log=(...n)=>{t.log(...n),Df("INFO",n)},console.warn=(...n)=>{t.warn(...n),Df("WARN",n)},console.error=(...n)=>{t.error(...n),Df("ERROR",n)}}var Px=new to().name("pi-web").description("Local web UI for the pi coding agent (API + static frontend)").version(Os.version).option("-p, --port <number>","server port",(e)=>Number.parseInt(e,10),Number(process.env.PORT??g0.port)).option("-H, --hostname <host>","bind address",process.env.HOST??"127.0.0.1").option("--open","open the browser once the server is ready").option("--agent-dir <dir>","pi agent directory (default: $PI_CODING_AGENT_DIR)",process.env.PI_CODING_AGENT_DIR).option("-d, --debug","enable debug logs (all levels) in console and server.log").showHelpAfterError();Px.parse();var si=Px.opts();K0(si.debug??!1);var{port:Dt,hostname:Mc}=si;if(!Number.isInteger(Dt)||Dt<=0||Dt>65535)Px.error(`invalid port: ${Dt}`);if(si.agentDir)process.env.PI_CODING_AGENT_DIR=si.agentDir;pO(si.debug??!1);function yue(e){return new Promise((t)=>{let n=mue({port:e,host:"127.0.0.1"});n.once("connect",()=>{n.destroy(),t(!0)}),n.once("error",()=>t(!1))})}function bue(e){let t=process.platform,n=t==="win32"?["cmd","/c","start","",e]:t==="darwin"?["open",e]:["xdg-open",e];try{gue(n[0],n.slice(1),{stdio:"ignore"}).unref()}catch{}}async function vue(e,t){let n=Date.now()+t;while(Date.now()<n){try{if((await fetch(e)).ok)return!0}catch{}await new Promise((r)=>setTimeout(r,250))}return!1}var Cs,cI=!1;function uI(e){if(cI)return;cI=!0,Lt("boot")("shutdown",`${e} received`);try{if(Cs&&typeof Cs.stop==="function")Cs.stop();else Cs?.close?.()}catch{}setTimeout(()=>process.exit(0),1500).unref()}process.on("SIGINT",()=>uI("SIGINT"));process.on("SIGTERM",()=>uI("SIGTERM"));async function xue(){let e=Lt("boot");if(e("cli parsed",`port=${Dt} host=${Mc}`),e("port probe",`checking port ${Dt}`),await yue(Dt))console.error(`[server] error: port ${Dt} is already in use — is another API server running?`),console.error(`[server] stop the process holding ${Dt} (e.g. bun run e2e:stop) and retry.`),process.exit(1);if(e("port probe",`${Dt} free`),typeof Bun>"u"){let{WebSocketServer:t}=await Promise.resolve().then(() => (EP(),DP)),{upgradeWebSocket:n}=await Promise.resolve().then(() => (Qf(),d0));iv(n);let r=new t({noServer:!0});Cs=Jf({fetch:Y.fetch,port:Dt,hostname:Mc,websocket:{server:r}})}else{let{createBunWebSocket:t}=await Promise.resolve().then(() => (sI(),oI)),{upgradeWebSocket:n,websocket:r}=t();iv(n),Cs=Bun.serve({port:Dt,hostname:Mc,fetch:Y.fetch,idleTimeout:255,websocket:r})}if(e("server listening",`http://${Mc}:${Dt}`),console.log(`[server] api server listening on http://${Mc}:${Dt}`),!si.agentDir)l3(),f3();if(setTimeout(()=>{E3([async()=>bv(),()=>fn(""),()=>Er(aI(),()=>ei(aI()))])},0),si.open){let t=`http://127.0.0.1:${Dt}`;if(await vue(`${t}/api/preferences`,30000))bue(t);else console.error(`[server] server did not become ready within 30s; open ${t} manually.`)}}xue();
423
+ ${a}`}else if(!r&&d)f=a.replace(new RegExp(`^${c}\\s*:.*\\r?\\n`,"m"),"");if(Nse(n,f,"utf8"),i)eO(i==="global"?"":i,n,{disableModelInvocation:r});return w.json({success:!0})}catch(t){return w.json({error:String(t)},{status:500})}}var Yv={};Q(Yv,{GET:()=>Yse,dynamic:()=>Zse});import{SessionManager as Gse,createAgentSessionFromServices as zse,createAgentSessionServices as Vse,getAgentDir as Xse}from"@earendil-works/pi-coding-agent";var Zv=null,wf=null;async function oO(e){if(!(e?.forceFresh??!1)&&Zv)return Zv.commands;if(wf)return wf;let n=Kse();wf=n;try{return await n}finally{wf=null}}async function Kse(){let e=Xse(),t=await Vse({cwd:e,agentDir:e}),n=Gse.inMemory(e),{session:r}=await zse({services:t,sessionManager:n}),i=[];for(let o of r.extensionRunner.getRegisteredCommands())i.push({name:o.invocationName,description:o.description,source:"extension",sourceInfo:o.sourceInfo});for(let o of r.promptTemplates)i.push({name:o.name,description:o.description,source:"prompt",sourceInfo:o.sourceInfo});for(let o of r.resourceLoader.getSkills().skills)i.push({name:`skill:${o.name}`,description:o.description,source:"skill",sourceInfo:o.sourceInfo});return Zv={commands:i,loadedAt:Date.now()},i}var Zse="force-dynamic";async function Yse(e){await Nn();try{let t=(e.headers.get("cache-control")??"").includes("no-store"),n=await oO({forceFresh:t});return w.json({commands:n})}catch(t){return w.json({error:String(t)},{status:500})}}var Jv={};Q(Jv,{GET:()=>Qse,dynamic:()=>Jse});var Jse="force-dynamic";async function Qse(e){await Nn();try{let t=(e.headers.get("cache-control")??"").includes("no-store");return w.json(await fn("",{forceFresh:t}))}catch(t){return w.json({error:String(t)},{status:500})}}var Qv={};Q(Qv,{POST:()=>cae,dynamic:()=>eae});var eae="force-dynamic",tae=/\x1B\[[0-9;]*m/g,nae=50,rae=1,iae=50,sO=process.env.SKILLS_API_URL||"https://skills.sh";function oae(e){let t=typeof e==="number"?e:Number(e);if(!Number.isFinite(t))return nae;return Math.min(iae,Math.max(rae,Math.floor(t)))}function sae(e){if(!e||e<=0)return"";if(e>=1e6)return`${(e/1e6).toFixed(1).replace(/\.0$/,"")}M installs`;if(e>=1000)return`${(e/1000).toFixed(1).replace(/\.0$/,"")}K installs`;return`${e} install${e===1?"":"s"}`}function aO(e){let t=e.replace(tae,""),n=[],r=t.split(`
424
+ `);for(let i=0;i<r.length;i++){let s=r[i].trim().match(/^([\w.-]+\/[\w.\-@:]+)\s+([\d.,]+[KMB]?\s+installs)$/);if(s){let a=r[i+1]?.trim().replace(/^└\s*/,"");n.push({package:s[1],installs:s[2],url:a?.startsWith("https://")?a:""})}}return n}async function aae(e,t){let n=`${sO}/api/search?q=${encodeURIComponent(e)}&limit=${t}`,r=await fetch(n,{cache:"no-store"});if(!r.ok)throw Error(`skills.sh search failed: HTTP ${r.status}`);return((await r.json()).skills??[]).map((o)=>{let s=o.name?.trim(),a=o.source?.trim(),c=o.id?.trim();if(!s||!a&&!c)return null;return{package:`${a||c}@${s}`,installs:sae(o.installs),url:c?`${sO}/${c}`:""}}).filter((o)=>o!==null).sort((o,s)=>cO(s.installs)-cO(o.installs))}function cO(e){let t=e.match(/^([\d.]+)([KMB])?\s+installs?$/);if(!t)return 0;let n=Number(t[1]);if(!Number.isFinite(n))return 0;let r=t[2]==="B"?1e9:t[2]==="M"?1e6:t[2]==="K"?1000:1;return n*r}async function cae(e){try{let{query:t,limit:n}=await e.json();if(!t?.trim())return w.json({error:"query required"},{status:400});let r=oae(n);try{let i=await aae(t.trim(),r);return w.json({results:i})}catch{let{stdout:i,stderr:o}=await ms(["skills","find",t.trim()],{timeout:20000,env:{...process.env,FORCE_COLOR:"0"}}),s=aO(i+o).slice(0,r);return w.json({results:s})}}catch(t){let n=t,r=(n.stdout??"")+(n.stderr??""),i=r?aO(r):[];if(i.length>0)return w.json({results:i});return w.json({error:n.message??String(t)},{status:500})}}var ex={};Q(ex,{POST:()=>lae,dynamic:()=>uae});var uae="force-dynamic";async function lae(e){try{let t=await e.json(),n=typeof t.cwd==="string"?t.cwd:"",r=typeof t.package==="string"?t.package:"",i=t.scope==="global"||t.scope==="project"?t.scope:void 0;if(!n||!r||!i)return w.json({error:"cwd, package, and scope are required"},{status:400});let o=await le();if(!ye(n,o))return w.json({error:"Access denied"},{status:403});let{skills:s}=await fn(n),a=s.find((h)=>h.install?.package===r&&h.install.scope===i);if(!a?.install)return w.json({error:"Installed skill not found"},{status:404});if(!a.install.canCheckForUpdates)return w.json({error:"This skill cannot be updated automatically"},{status:400});let{stdout:c,stderr:u}=await ms(H8(a.install),{timeout:60000,cwd:i==="project"?n:void 0,env:{...process.env,FORCE_COLOR:"0"}}),f=(await fn(n)).skills.find((h)=>h.install?.package===r&&h.install.scope===i);return w.json({success:!0,skill:f,output:`${c}${u}`.slice(-500)})}catch(t){let n=t,r=`${n.stdout??""}${n.stderr??""}`;return w.json({error:r||n.message||String(t)},{status:500})}}var nx={};Q(nx,{DELETE:()=>hae,GET:()=>dae,POST:()=>fae});import{existsSync as uO}from"node:fs";async function tx(e){let t=await le();if(!Xe(e,t)||!ye(e,t))return w.json({error:"Access denied"},{status:403});return null}async function dae(e){try{let t=new URL(e.url).searchParams.get("cwd");if(!t)return w.json({error:"cwd is required"},{status:400});let n=await tx(t);if(n)return n;let r=await uu(t),i=[],o=!0;try{i=await Ch(uO(t)?t:r.projectRoot)}catch{o=!1}for(let s of i)yt(s.path);return w.json({projectRoot:r.projectRoot,isGit:o,isTopLevel:r.isTopLevel,worktrees:i})}catch(t){return w.json({error:String(t)},{status:500})}}async function fae(e){try{let t=await e.json();if(!t.cwd||typeof t.cwd!=="string")return w.json({error:"cwd is required"},{status:400});if(!t.branch||typeof t.branch!=="string")return w.json({error:"branch is required"},{status:400});let n=await tx(t.cwd);if(n)return n;if(!uO(t.cwd))return w.json({error:`Directory does not exist: ${t.cwd}`},{status:400});let r=await r2(t.cwd,t.branch);return w.json(r)}catch(t){let n=t instanceof Error?t.message:String(t);return w.json({error:n},{status:400})}}async function hae(e){try{let t=await e.json();if(!t.cwd||typeof t.cwd!=="string")return w.json({error:"cwd is required"},{status:400});if(!t.path||typeof t.path!=="string")return w.json({error:"path is required"},{status:400});let n=await tx(t.cwd);if(n)return n;return await i2(t.cwd,t.path,t.force===!0),w.json({success:!0})}catch(t){let n=t instanceof Error?t.message:String(t),r=/contains modified or untracked files|is dirty/i.test(n);return w.json({error:n,dirty:r},{status:r?409:400})}}import{createReadStream as pae}from"node:fs";import{stat as lO}from"node:fs/promises";import{extname as gae,join as ix,normalize as mae}from"node:path";import{Readable as yae}from"node:stream";var bae=Lt("static"),rx=ix(import.meta.dirname,"..","dist","static"),vae={".html":"text/html; charset=utf-8",".css":"text/css; charset=utf-8",".js":"text/javascript; charset=utf-8",".mjs":"text/javascript; charset=utf-8",".json":"application/json; charset=utf-8",".svg":"image/svg+xml",".png":"image/png",".ico":"image/x-icon",".webmanifest":"application/manifest+json",".woff2":"font/woff2",".txt":"text/plain; charset=utf-8"};async function dO(e){let t=performance.now(),n=new URL(e.req.url).pathname;if(n.startsWith("/api/"))return e.json({error:"Not found"},404);let r=n==="/"?"/index.html":decodeURIComponent(n),i=mae(ix(rx,r));if(!i.startsWith(rx))return e.text("Forbidden",403);let o=i;try{if(!(await lO(i)).isFile())return e.text("Not found",404)}catch{o=ix(rx,"index.html");try{await lO(o)}catch{return e.text("Not found",404)}}return bae(e.req.path,`${Math.round(performance.now()-t)}ms`),new Response(yae.toWeb(pae(o)),{headers:{"content-type":vae[gae(o).toLowerCase()]??"application/octet-stream"}})}var Y=new bh;Y.use("/api/*",async(e,t)=>{let n=e.req.raw,r=n.url.includes("/api/");if(!(r?Et(n):vh(n))){if(!r)return new Response("Untrusted request",{status:403});return new Response(JSON.stringify({error:"Untrusted API request"}),{status:403,headers:{"content-type":"application/json"}})}let o=process.env.PI_WEB_PASSWORD;if(Ms(o)&&!ou(n.headers.get("authorization"),o))return new Response("Authentication required",{status:401,headers:{"Cache-Control":"no-store","WWW-Authenticate":'Basic realm="Pi Web", charset="UTF-8"'}});await t()});ee(Y,"/api/agent/running",qh);ee(Y,"/api/agent/[id]/bash-output",Fh);ee(Y,"/api/agent/[id]",jh);ee(Y,"/api/auth/all-providers",zh);ee(Y,"/api/auth/api-key/[provider]",cp);ee(Y,"/api/auth/login/[provider]",up);ee(Y,"/api/auth/logout/[provider]",lp);ee(Y,"/api/auth/providers",dp);ee(Y,"/api/cwd/browse",hp);ee(Y,"/api/cwd/validate",pp);ee(Y,"/api/default-cwd",gp);ee(Y,"/api/file-index",mp);ee(Y,"/api/files/[...path]",wb);ee(Y,"/api/git/commit",Sb);ee(Y,"/api/git/diff",Cb);ee(Y,"/api/git/generate-commit",kb);ee(Y,"/api/git/push",Rb);ee(Y,"/api/git/pull",Fb);ee(Y,"/api/git/autofetch-status",Zb);ee(Y,"/api/git/stage",Yb);ee(Y,"/api/git/status",Jb);ee(Y,"/api/home",Qb);ee(Y,"/api/models-config/catalog",sv);ee(Y,"/api/models-config/discover",av);ee(Y,"/api/models-config/effective",cv);ee(Y,"/api/models-config/override-suggestion",uv);ee(Y,"/api/models-config/remote-models",dv);ee(Y,"/api/models-config",vv);ee(Y,"/api/models-config/sync-provider-models",_v);ee(Y,"/api/models-config/test",Dv);ee(Y,"/api/model-thinking",wv);ee(Y,"/api/models",tv);ee(Y,"/api/plugins/global",Cv);ee(Y,"/api/plugins",Sv);ee(Y,"/api/preferences",Av);ee(Y,"/api/updates",Mv);ee(Y,"/api/updates-config",Nv);ee(Y,"/api/project-trust",Uv);ee(Y,"/api/sessions/[id]/auto-name",Rv);ee(Y,"/api/sessions/[id]/context",Fv);ee(Y,"/api/sessions/[id]/entries/[entryId]/thinking",Ov);ee(Y,"/api/sessions/[id]/export",Bv);ee(Y,"/api/sessions/[id]",Lv);ee(Y,"/api/sessions/[id]/state",Wv);ee(Y,"/api/sessions",jv);ee(Y,"/api/commands/global",Yv);ee(Y,"/api/skills/check",Vv);ee(Y,"/api/skills/install",Xv);ee(Y,"/api/skills/global",Jv);ee(Y,"/api/skills",Kv);ee(Y,"/api/skills/search",Qv);ee(Y,"/api/skills/update",ex);ee(Y,"/api/worktrees",nx);U3(Y);D3();if(process.env.PI_WEB_E2E==="1")Y.get("/api/__e2e/probe",(e)=>e.json({agentDir:xae()}));Y.get("*",dO);import{closeSync as _ae,mkdirSync as wae,openSync as Dae,writeSync as Eae}from"node:fs";import{join as fO}from"node:path";import{inspect as Tae}from"node:util";import{getAgentDir as Sae}from"@earendil-works/pi-coding-agent";var ys=null,hO=!1;function Df(e,t){if(ys===null)return;let n=`[${new Date().toISOString()}][${e}] ${t.map((r)=>typeof r==="string"?r:Tae(r)).join(" ")}`;try{Eae(ys,n+`
425
+ `)}catch{}}function pO(e=!1){hO=e;try{let n=fO(Sae(),"pi-web");wae(n,{recursive:!0}),ys=Dae(fO(n,"server.log"),"w")}catch{ys=null}process.on("exit",()=>{if(ys!==null)_ae(ys)});let t={debug:console.debug.bind(console),log:console.log.bind(console),warn:console.warn.bind(console),error:console.error.bind(console)};console.debug=(...n)=>{if(!hO)return t.debug(...n);t.debug(...n),Df("DEBUG",n)},console.log=(...n)=>{t.log(...n),Df("INFO",n)},console.warn=(...n)=>{t.warn(...n),Df("WARN",n)},console.error=(...n)=>{t.error(...n),Df("ERROR",n)}}var Px=new to().name("pi-web").description("Local web UI for the pi coding agent (API + static frontend)").version(Os.version).option("-p, --port <number>","server port",(e)=>Number.parseInt(e,10),Number(process.env.PORT??g0.port)).option("-H, --hostname <host>","bind address",process.env.HOST??"127.0.0.1").option("--open","open the browser once the server is ready").option("--agent-dir <dir>","pi agent directory (default: $PI_CODING_AGENT_DIR)",process.env.PI_CODING_AGENT_DIR).option("-d, --debug","enable debug logs (all levels) in console and server.log").showHelpAfterError();Px.parse();var si=Px.opts();K0(si.debug??!1);var{port:Dt,hostname:Mc}=si;if(!Number.isInteger(Dt)||Dt<=0||Dt>65535)Px.error(`invalid port: ${Dt}`);if(si.agentDir)process.env.PI_CODING_AGENT_DIR=si.agentDir;pO(si.debug??!1);function vue(e){return new Promise((t)=>{let n=bue({port:e,host:"127.0.0.1"});n.once("connect",()=>{n.destroy(),t(!0)}),n.once("error",()=>t(!1))})}function xue(e){let t=process.platform,n=t==="win32"?["cmd","/c","start","",e]:t==="darwin"?["open",e]:["xdg-open",e];try{yue(n[0],n.slice(1),{stdio:"ignore"}).unref()}catch{}}async function _ue(e,t){let n=Date.now()+t;while(Date.now()<n){try{if((await fetch(e)).ok)return!0}catch{}await new Promise((r)=>setTimeout(r,250))}return!1}var Cs,cI=!1;function uI(e){if(cI)return;cI=!0,Lt("boot")("shutdown",`${e} received`);try{if(Cs&&typeof Cs.stop==="function")Cs.stop();else Cs?.close?.()}catch{}setTimeout(()=>process.exit(0),1500).unref()}process.on("SIGINT",()=>uI("SIGINT"));process.on("SIGTERM",()=>uI("SIGTERM"));async function wue(){let e=Lt("boot");if(e("cli parsed",`port=${Dt} host=${Mc}`),e("port probe",`checking port ${Dt}`),await vue(Dt))console.error(`[server] error: port ${Dt} is already in use — is another API server running?`),console.error(`[server] stop the process holding ${Dt} (e.g. bun run e2e:stop) and retry.`),process.exit(1);if(e("port probe",`${Dt} free`),typeof Bun>"u"){let{WebSocketServer:t}=await Promise.resolve().then(() => (EP(),DP)),{upgradeWebSocket:n}=await Promise.resolve().then(() => (Qf(),d0));iv(n);let r=new t({noServer:!0});Cs=Jf({fetch:Y.fetch,port:Dt,hostname:Mc,websocket:{server:r}})}else{let{createBunWebSocket:t}=await Promise.resolve().then(() => (sI(),oI)),{upgradeWebSocket:n,websocket:r}=t();iv(n),Cs=Bun.serve({port:Dt,hostname:Mc,fetch:Y.fetch,idleTimeout:255,websocket:r})}if(e("server listening",`http://${Mc}:${Dt}`),console.log(`[server] api server listening on http://${Mc}:${Dt}`),!si.agentDir)l3(),f3();if(setTimeout(()=>{E3([async()=>bv(),()=>fn(""),()=>Er(aI(),()=>ei(aI()))])},0),si.open){let t=`http://127.0.0.1:${Dt}`;if(await _ue(`${t}/api/preferences`,30000))xue(t);else console.error(`[server] server did not become ready within 30s; open ${t} manually.`)}}wue();