@nuxt/devtools-nightly 3.0.1-29370252.f3266f0 → 3.1.0-29380644.75a814f

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 (88) hide show
  1. package/dist/chunks/module-main.mjs +22 -6
  2. package/dist/client/200.html +1 -1
  3. package/dist/client/404.html +1 -1
  4. package/dist/client/_nuxt/__blank-jhf8n41f.js +1 -0
  5. package/dist/client/_nuxt/{analyze-build-oe5r2n9t.js → analyze-build-oqpgv2ad.js} +1 -1
  6. package/dist/client/_nuxt/{assets-ntgzu9in.js → assets-gwkvq1qj.js} +1 -1
  7. package/dist/client/_nuxt/builds/latest.json +1 -1
  8. package/dist/client/_nuxt/builds/meta/93e5690c-f5d8-4c17-bb47-efbb3252eb09.json +1 -0
  9. package/dist/client/_nuxt/{client-miiq4qin.js → client-c7ye0k5n.js} +1 -1
  10. package/dist/client/_nuxt/{code-diff-ojhnq7lb.js → code-diff-injlkjgq.js} +1 -1
  11. package/dist/client/_nuxt/{code-snippets-io8vjgte.js → code-snippets-m6659svv.js} +1 -1
  12. package/dist/client/_nuxt/{components-lkamgq9x.js → components-j9k9gnq5.js} +1 -1
  13. package/dist/client/_nuxt/{composable-item-de2qbj5y.js → composable-item-fx38xsht.js} +1 -1
  14. package/dist/client/_nuxt/{custom-_name_-k891izff.js → custom-_name_-dcs88k11.js} +1 -1
  15. package/dist/client/_nuxt/{data-schema-button-hqryewml.js → data-schema-button-n4i5g8zd.js} +1 -1
  16. package/dist/client/_nuxt/{data-schema-drawer-kae79wen.js → data-schema-drawer-jl777ghs.js} +1 -1
  17. package/dist/client/_nuxt/{debug-fgaph4wa.js → debug-no085bbm.js} +1 -1
  18. package/dist/client/_nuxt/{default-bu22g8rc.js → default-bfbnrsq7.js} +1 -1
  19. package/dist/client/_nuxt/{duration-display-cjpkh71u.js → duration-display-jckntkny.js} +1 -1
  20. package/dist/client/_nuxt/{entry.css-dxneg9ww.css → entry.css-isd0m9wk.css} +1 -1
  21. package/dist/client/_nuxt/{error-404-odqix7df.js → error-404-bzvygsk0.js} +1 -1
  22. package/dist/client/_nuxt/error-404.css-comgjw6y.css +1 -0
  23. package/dist/client/_nuxt/{error-500-nxyyvxuo.js → error-500-l4uqt5om.js} +1 -1
  24. package/dist/client/_nuxt/error-500.css-mrt4j707.css +1 -0
  25. package/dist/client/_nuxt/{error-ntceple0.js → error-nv4do73a.js} +1 -1
  26. package/dist/client/_nuxt/f1vjkvp8.js +5 -0
  27. package/dist/client/_nuxt/{filepath-item-owlv864w.js → filepath-item-i5bipy7o.js} +1 -1
  28. package/dist/client/_nuxt/{full-jwu2wh2y.js → full-gze3nw3m.js} +1 -1
  29. package/dist/client/_nuxt/{help-fab-chg6ox1v.js → help-fab-9epbigv8.js} +1 -1
  30. package/dist/client/_nuxt/{hooks-n044szfl.js → hooks-jfgb41bi.js} +1 -1
  31. package/dist/client/_nuxt/{imports-mmcpk4yu.js → imports-im6tcx8h.js} +1 -1
  32. package/dist/client/_nuxt/{index-kfj644lq.js → index-n8u3ke0o.js} +1 -1
  33. package/dist/client/_nuxt/{launch-page-l87i7ewv.js → launch-page-hs2f7bb3.js} +1 -1
  34. package/dist/client/_nuxt/{modules-nhr2xnn0.js → modules-f23f2n0s.js} +1 -1
  35. package/dist/client/_nuxt/{nbadge-d24jlq2b.js → nbadge-b5jyufiz.js} +1 -1
  36. package/dist/client/_nuxt/{ncheckbox-eijyrwcq.js → ncheckbox-dhpz73wm.js} +1 -1
  37. package/dist/client/_nuxt/{ncode-block-pcw3yh3u.js → ncode-block-j34pr9ay.js} +1 -1
  38. package/dist/client/_nuxt/{ndrawer-ele5003c.js → ndrawer-drb8l4me.js} +1 -1
  39. package/dist/client/_nuxt/{ndropdown-jcnxkt1n.js → ndropdown-nmlejt8k.js} +1 -1
  40. package/dist/client/_nuxt/{nicon-title-he6hzgyb.js → nicon-title-d35s6mci.js} +1 -1
  41. package/dist/client/_nuxt/{nlink-fgjzhevk.js → nlink-c419gh8c.js} +1 -1
  42. package/dist/client/_nuxt/{nmarkdown-n6zsr15e.js → nmarkdown-nigjp7j4.js} +1 -1
  43. package/dist/client/_nuxt/{nnavbar-b4ap0r8w.js → nnavbar-l4xos9kw.js} +1 -1
  44. package/dist/client/_nuxt/{none-mz8h35k9.js → none-j493k6wm.js} +1 -1
  45. package/dist/client/_nuxt/{nsection-block-je23gs2w.js → nsection-block-egbswicp.js} +1 -1
  46. package/dist/client/_nuxt/{nselect-nvb1idpm.js → nselect-ioi0seuc.js} +1 -1
  47. package/dist/client/_nuxt/{nselect-tabs-fwdas30r.js → nselect-tabs-g53jlfar.js} +1 -1
  48. package/dist/client/_nuxt/{nswitch-ls95gzk4.js → nswitch-fe63il2r.js} +1 -1
  49. package/dist/client/_nuxt/{open-graph-e6wr9uqe.js → open-graph-c3v2g568.js} +1 -1
  50. package/dist/client/_nuxt/{overview-etz3y408.js → overview-kqlq2sz0.js} +1 -1
  51. package/dist/client/_nuxt/{pages-iubcr60c.js → pages-h5eaurpw.js} +1 -1
  52. package/dist/client/_nuxt/{payload-m9e323cd.js → payload-c8ikq1pb.js} +1 -1
  53. package/dist/client/_nuxt/pinia-hq7l4jea.js +1 -0
  54. package/dist/client/_nuxt/{plugins-kmy0sy6y.js → plugins-gmwa9k7w.js} +1 -1
  55. package/dist/client/_nuxt/{render-tree-depae72u.js → render-tree-jmtremgq.js} +1 -1
  56. package/dist/client/_nuxt/{runtime-configs-mmqwaa6s.js → runtime-configs-o3d6fqb4.js} +1 -1
  57. package/dist/client/_nuxt/{server-discovery-mjag1532.js → server-discovery-eo8vtqum.js} +1 -1
  58. package/dist/client/_nuxt/{server-route-inputs-e42a8bs5.js → server-route-inputs-b67yt8gz.js} +1 -1
  59. package/dist/client/_nuxt/{server-routes-g3nea2v8.js → server-routes-y5ufvi3u.js} +1 -1
  60. package/dist/client/_nuxt/{server-tasks-lrnz581v.js → server-tasks-kftsm9m7.js} +1 -1
  61. package/dist/client/_nuxt/{settings-hapu4is5.js → settings-l695ogca.js} +1 -1
  62. package/dist/client/_nuxt/{stacktrace-list-gp6s7nwa.js → stacktrace-list-bcj6vnom.js} +1 -1
  63. package/dist/client/_nuxt/{state-components-8k7sf46m.js → state-components-fc2pwsp2.js} +1 -1
  64. package/dist/client/_nuxt/{state-editor-kisl1jyp.js → state-editor-dk0l27xr.js} +1 -1
  65. package/dist/client/_nuxt/{state-modules-lzveckmy.js → state-modules-kznlrvp3.js} +1 -1
  66. package/dist/client/_nuxt/{storage-f2s67rns.js → storage-id6742p7.js} +1 -1
  67. package/dist/client/_nuxt/{terminals-mvgp8t5a.js → terminals-nkedy5k4.js} +1 -1
  68. package/dist/client/_nuxt/{timeline-oeagkh8k.js → timeline-wtko8gaq.js} +1 -1
  69. package/dist/client/_nuxt/{unocss-runtime-l38qoh5h.js → unocss-runtime-nd3zi5ym.js} +1 -1
  70. package/dist/client/_nuxt/vendor/{json-editor-vue-ikjc812x.js → json-editor-vue-gjlsq8io.js} +99 -134
  71. package/dist/client/_nuxt/vendor/{quicktype-core-i0qughny.js → quicktype-core-bmjj6ua7.js} +5 -57
  72. package/dist/client/_nuxt/vendor/{shiki-hpfujfi3.js → shiki-g7cm1eew.js} +12 -12
  73. package/dist/client/_nuxt/vendor/unocss-cmdaz4ot.js +3 -0
  74. package/dist/client/_nuxt/vendor/{vis-bs03k74b.js → vis-lxvjz9wh.js} +3 -61
  75. package/dist/client/_nuxt/{virtual-files-f297srwe.js → virtual-files-hzqpbnf8.js} +1 -1
  76. package/dist/client/_nuxt/vue-devtools-f6dfrqr1.js +2 -0
  77. package/dist/client/_nuxt/{vue-virtual-scroller.esm-b0ym3ct8.js → vue-virtual-scroller.esm-uia1jucn.js} +1 -1
  78. package/dist/client/index.html +1 -1
  79. package/dist/module.json +1 -1
  80. package/package.json +26 -26
  81. package/dist/client/_nuxt/__blank-dhzpxa9h.js +0 -1
  82. package/dist/client/_nuxt/builds/meta/748654cb-cf7c-463c-b0a9-cd67a30a6ae2.json +0 -1
  83. package/dist/client/_nuxt/error-404.css-da6qbpbu.css +0 -1
  84. package/dist/client/_nuxt/error-500.css-npck1tpq.css +0 -1
  85. package/dist/client/_nuxt/mp2i8ssm.js +0 -19
  86. package/dist/client/_nuxt/pinia-l1qdcrhg.js +0 -1
  87. package/dist/client/_nuxt/vendor/unocss-mh8fijzd.js +0 -3
  88. package/dist/client/_nuxt/vue-devtools-hb1vi95m.js +0 -2
@@ -1,4 +1,4 @@
1
- import{c as Dn,g as Nc}from"./json-editor-vue-ikjc812x.js";var $u={},Hn={},vs={},Eh;function et(){return Eh||(Eh=1,(function(e){var i=vs&&vs.__awaiter||function(ee,te,K,j){return new(K||(K=Promise))(function(G,ce){function $(Be){try{Se(j.next(Be))}catch(we){ce(we)}}function be(Be){try{Se(j.throw(Be))}catch(we){ce(we)}}function Se(Be){Be.done?G(Be.value):new K(function(we){we(Be.value)}).then($,be)}Se((j=j.apply(ee,te||[])).next())})};Object.defineProperty(e,"__esModule",{value:!0}),e.hashCodeInit=17;function n(ee){let te=0;for(let K=0;K<ee.length;K++){const j=ee.charCodeAt(K);te=(te<<5)-te+j,te=te&te}return te}e.hashString=n;function a(ee,te){return ee*31+(te|0)|0}e.addHashCode=a;function l(ee,te){return ee!==void 0?ee:te}e.withDefault=l;function d(ee,te){if(ee!==void 0)return te(ee)}e.definedMap=d;function u(ee,te,K){return l(d(ee,K),te)}e.definedMapWithDefault=u;function c(ee,te){return ee==null?!1:Object.prototype.hasOwnProperty.call(ee,te)}e.hasOwnProperty=c;function w(ee,te){for(const K of ee)if(te(K))return K}e.iterableFind=w;function U(ee,te){for(const K of ee)if(!te(K))return!1;return!0}e.iterableEvery=U;function F(ee,te){for(const K of ee)if(te(K))return!0;return!1}e.iterableSome=F;function O(ee){for(const te of ee)return te}e.iterableFirst=O;function M(ee){let te;for(const K of ee)(te===void 0||K>te)&&(te=K);return te}e.iterableMax=M;function L(ee,te){let K,j;for(const G of ee){const ce=te(G);(K===void 0||ce<K)&&(K=ce,j=G)}return j}e.iterableMinBy=L;function _(ee,te,K){let j=te;for(const G of ee)j=K(j,G);return j}e.iterableReduce=_;function*b(ee){let te=0;for(const K of ee)yield[te,K],te+=1}e.iterableEnumerate=b;function*v(ee,te){let K=0;for(const j of ee)K>=te?yield j:K+=1}e.iterableSkip=v;function h(ee,te){const K=ee.length;if(!(te>K))return ee[K-te]}e.arrayGetFromEnd=h;function m(ee){return h(ee,1)}e.arrayLast=m;function k(ee){const te=ee.length;if(te===0)throw new Error("Cannot pop empty array");return ee.slice(0,te-1)}e.arrayPop=k;function B(ee,te){const K=[];for(const j of te)K.length>0&&K.push(ee),K.push(j);return K}e.arrayIntercalate=B;function C(ee,te){return i(this,void 0,void 0,function*(){const K=[];let j=0;for(const G of ee)K.push(yield te(G,j)),j+=1;return K})}e.arrayMapSync=C;function R(ee,te){return ee<te?-1:ee>te?1:0}function A(ee,te){return ee.sort((K,j)=>R(te(K),te(j)))}e.arraySortByInto=A;function f(ee){return Array.isArray(ee)?ee:Array.from(ee)}e.toReadonlyArray=f;function E(ee,te){const K=new Map;for(const[j,G]of ee)K.set(j,te(G,j));return K}e.mapMap=E;function S(ee){for(const te of ee.values())return te}e.mapFirst=S;function P(ee,te){for(const K of ee.values())if(K===te)return!0;return!1}e.mapContains=P;function y(ee,te){for(const[K,j]of ee)if(te(j,K))return!0;return!1}e.mapSome=y;function r(ee,te){for(const[K,j]of te)ee.set(K,j);return ee}e.mapMergeInto=r;function s(ee,te){const K=new Map(ee);return r(K,te),K}e.mapMerge=s;function p(ee,te,K){for(const[j,G]of K){const ce=ee.get(j),$=ce===void 0?G:te(ce,G,j);ee.set(j,$)}return ee}e.mapMergeWithInto=p;function g(ee,te,K){const j=new Map(ee);return p(j,te,K),j}e.mapMergeWith=g;function I(ee,te){const K=new Map;for(const[j,G]of ee)te(G,j)&&K.set(j,G);return K}e.mapFilter=I;function x(ee,te){const K=new Map;for(const[j,G]of ee){const ce=te(G,j);ce!==void 0&&K.set(j,ce)}return K}e.mapFilterMap=x;function q(ee,te){return A(Array.from(ee),([K,j])=>te(j,K))}e.mapSortToArray=q;function T(ee,te){return new Map(q(ee,te))}e.mapSortBy=T;function D(ee){return T(ee,(te,K)=>K)}e.mapSortByKey=D;function W(ee,te){const K=new Map;for(const[j,G]of ee){const[ce,$]=te(G,j);K.set(ce,$)}return K}e.mapMapEntries=W;function J(ee,te,K){return ee.set(te,K(ee.get(te))),ee}e.mapUpdateInto=J;function X(ee){const te=new Map;for(const K of Object.getOwnPropertyNames(ee))te.set(K,ee[K]);return te}e.mapFromObject=X;function Q(ee){const te={};for(const[K,j]of ee)te[K]=j;return te}e.mapToObject=Q;function re(ee,te){const K=new Map;for(const j of ee)K.set(j,te(j));return K}e.mapFromIterable=re;function se(ee,te){for(const[K,j]of ee)if(te(j,K))return j}e.mapFind=se;function ne(ee){const te=new Map;for(const K of ee)for(const[j,G]of K){let ce=te.get(j);ce===void 0&&(ce=[],te.set(j,ce)),ce.push(G)}return te}e.mapTranspose=ne;function me(ee,te){return i(this,void 0,void 0,function*(){const K=new Map;for(const[j,G]of ee)K.set(j,yield te(G,j));return K})}e.mapMapSync=me;function ge(ee,te){for(const K of te)if(!ee.has(K))return!1;return!0}e.setIsSuperset=ge;function Ae(ee,te){for(const K of te)for(const j of K)ee.add(j);return ee}e.setUnionManyInto=Ae;function pe(ee,...te){return Ae(ee,te)}e.setUnionInto=pe;function le(ee,te){const K=new Set;for(const j of ee)te.has(j)&&K.add(j);return K}e.setIntersect=le;function ye(ee,te){const K=new Set(ee);for(const j of te)K.delete(j);return K}e.setSubtract=ye;function de(...ee){const te=new Set;return pe(te,...ee),te}e.setUnion=de;function Y(ee,te){const K=new Set;for(const j of ee)K.add(te(j));return K}e.setMap=Y;function z(ee,te){const K=new Set;for(const j of ee)te(j)&&K.add(j);return K}e.setFilter=z;function V(ee,te){const K=new Set;for(const j of ee){const G=te(j);G!==void 0&&K.add(G)}return K}e.setFilterMap=V;function ue(ee,te){return new Set(A(Array.from(ee),te))}e.setSortBy=ue;function Te(ee,te){const K=new Map;for(const j of ee){const G=te(j);let ce=K.get(G);ce===void 0&&(ce=new Set,K.set(G,ce)),ce.add(j)}return K}e.setGroupBy=Te;function Ie(ee){return ee instanceof Set?ee:new Set(ee)}e.toReadonlySet=Ie;class Ce{constructor(){this._map=new Map}set(te,K){let j=Ge(te)|0;for(;;){const G=this._map.get(j);if(G===void 0){this._map.set(j,[te,K]);return}if(We(te,G[0])){G[1]=K;return}j=j+1|0}}get(te){let K=Ge(te)|0;for(;;){const j=this._map.get(K);if(j===void 0)return;if(We(te,j[0]))return j[1];K=K+1|0}}has(te){return this.get(te)!==void 0}*values(){for(const[,[,te]]of this._map)yield te}}e.EqualityMap=Ce;function We(ee,te){if(ee===te)return!0;if(ee===void 0||te===void 0||ee===null||te===null)return!1;if(typeof ee.equals=="function"&&typeof te.equals=="function")return ee.equals(te);if(ee instanceof Set&&te instanceof Set){if(ee.size!==te.size)return!1;for(const K of ee)if(!te.has(K))return!1;return!0}if(ee instanceof Map&&te instanceof Map){if(ee.size!==te.size)return!1;for(const[K,j]of ee){const G=te.get(K);if(!We(j,G))return!1}return!0}if(Array.isArray(ee)&&Array.isArray(te)){const K=ee.length;if(K!==te.length)return!1;for(let j=0;j<K;j++)if(!We(ee[j],te[j]))return!1;return!0}return!1}e.areEqual=We;function Ge(ee){if(typeof ee=="number")return ee|0;if(typeof ee=="string")return n(ee);let te=e.hashCodeInit;if(ee===void 0)return te;if(ee===!0)return te+1|0;if(ee===!1)return te+2|0;if(ee===null)return te+3|0;if(typeof ee.hashCode=="function")return ee.hashCode();if(ee instanceof Set){for(const K of ee)te+=Ge(K);return te}if(ee instanceof Map){let K=e.hashCodeInit;for(const[j,G]of ee)K+=Ge(j),te+=Ge(G);return a(K,te)}if(Array.isArray(ee)){for(const K of ee)te=a(te,Ge(K));return te}throw new Error(`Cannot hash ${ee}`)}e.hashCodeOf=Ge})(vs)),vs}var el={},Ss={},tl={},rt={},la={exports:{}},pL=la.exports,Ah;function mL(){return Ah||(Ah=1,(function(e,i){(function(n,a){e.exports=a()})(typeof self<"u"?self:typeof window<"u"?window:typeof Dn<"u"?Dn:pL,function(){var n="3.7.7",a=n,l=typeof Buffer=="function",d=typeof TextDecoder=="function"?new TextDecoder:void 0,u=typeof TextEncoder=="function"?new TextEncoder:void 0,c="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",w=Array.prototype.slice.call(c),U=(function(Q){var re={};return Q.forEach(function(se,ne){return re[se]=ne}),re})(w),F=/^(?:[A-Za-z\d+\/]{4})*?(?:[A-Za-z\d+\/]{2}(?:==)?|[A-Za-z\d+\/]{3}=?)?$/,O=String.fromCharCode.bind(String),M=typeof Uint8Array.from=="function"?Uint8Array.from.bind(Uint8Array):function(Q){return new Uint8Array(Array.prototype.slice.call(Q,0))},L=function(Q){return Q.replace(/=/g,"").replace(/[+\/]/g,function(re){return re=="+"?"-":"_"})},_=function(Q){return Q.replace(/[^A-Za-z0-9\+\/]/g,"")},b=function(Q){for(var re,se,ne,me,ge="",Ae=Q.length%3,pe=0;pe<Q.length;){if((se=Q.charCodeAt(pe++))>255||(ne=Q.charCodeAt(pe++))>255||(me=Q.charCodeAt(pe++))>255)throw new TypeError("invalid character found");re=se<<16|ne<<8|me,ge+=w[re>>18&63]+w[re>>12&63]+w[re>>6&63]+w[re&63]}return Ae?ge.slice(0,Ae-3)+"===".substring(Ae):ge},v=typeof btoa=="function"?function(Q){return btoa(Q)}:l?function(Q){return Buffer.from(Q,"binary").toString("base64")}:b,h=l?function(Q){return Buffer.from(Q).toString("base64")}:function(Q){for(var re=4096,se=[],ne=0,me=Q.length;ne<me;ne+=re)se.push(O.apply(null,Q.subarray(ne,ne+re)));return v(se.join(""))},m=function(Q,re){return re===void 0&&(re=!1),re?L(h(Q)):h(Q)},k=function(Q){if(Q.length<2){var re=Q.charCodeAt(0);return re<128?Q:re<2048?O(192|re>>>6)+O(128|re&63):O(224|re>>>12&15)+O(128|re>>>6&63)+O(128|re&63)}else{var re=65536+(Q.charCodeAt(0)-55296)*1024+(Q.charCodeAt(1)-56320);return O(240|re>>>18&7)+O(128|re>>>12&63)+O(128|re>>>6&63)+O(128|re&63)}},B=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,C=function(Q){return Q.replace(B,k)},R=l?function(Q){return Buffer.from(Q,"utf8").toString("base64")}:u?function(Q){return h(u.encode(Q))}:function(Q){return v(C(Q))},A=function(Q,re){return re===void 0&&(re=!1),re?L(R(Q)):R(Q)},f=function(Q){return A(Q,!0)},E=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,S=function(Q){switch(Q.length){case 4:var re=(7&Q.charCodeAt(0))<<18|(63&Q.charCodeAt(1))<<12|(63&Q.charCodeAt(2))<<6|63&Q.charCodeAt(3),se=re-65536;return O((se>>>10)+55296)+O((se&1023)+56320);case 3:return O((15&Q.charCodeAt(0))<<12|(63&Q.charCodeAt(1))<<6|63&Q.charCodeAt(2));default:return O((31&Q.charCodeAt(0))<<6|63&Q.charCodeAt(1))}},P=function(Q){return Q.replace(E,S)},y=function(Q){if(Q=Q.replace(/\s+/g,""),!F.test(Q))throw new TypeError("malformed base64.");Q+="==".slice(2-(Q.length&3));for(var re,se="",ne,me,ge=0;ge<Q.length;)re=U[Q.charAt(ge++)]<<18|U[Q.charAt(ge++)]<<12|(ne=U[Q.charAt(ge++)])<<6|(me=U[Q.charAt(ge++)]),se+=ne===64?O(re>>16&255):me===64?O(re>>16&255,re>>8&255):O(re>>16&255,re>>8&255,re&255);return se},r=typeof atob=="function"?function(Q){return atob(_(Q))}:l?function(Q){return Buffer.from(Q,"base64").toString("binary")}:y,s=l?function(Q){return M(Buffer.from(Q,"base64"))}:function(Q){return M(r(Q).split("").map(function(re){return re.charCodeAt(0)}))},p=function(Q){return s(I(Q))},g=l?function(Q){return Buffer.from(Q,"base64").toString("utf8")}:d?function(Q){return d.decode(s(Q))}:function(Q){return P(r(Q))},I=function(Q){return _(Q.replace(/[-_]/g,function(re){return re=="-"?"+":"/"}))},x=function(Q){return g(I(Q))},q=function(Q){if(typeof Q!="string")return!1;var re=Q.replace(/\s+/g,"").replace(/={0,2}$/,"");return!/[^\s0-9a-zA-Z\+/]/.test(re)||!/[^\s0-9a-zA-Z\-_]/.test(re)},T=function(Q){return{value:Q,enumerable:!1,writable:!0,configurable:!0}},D=function(){var Q=function(re,se){return Object.defineProperty(String.prototype,re,T(se))};Q("fromBase64",function(){return x(this)}),Q("toBase64",function(re){return A(this,re)}),Q("toBase64URI",function(){return A(this,!0)}),Q("toBase64URL",function(){return A(this,!0)}),Q("toUint8Array",function(){return p(this)})},W=function(){var Q=function(re,se){return Object.defineProperty(Uint8Array.prototype,re,T(se))};Q("toBase64",function(re){return m(this,re)}),Q("toBase64URI",function(){return m(this,!0)}),Q("toBase64URL",function(){return m(this,!0)})},J=function(){D(),W()},X={version:n,VERSION:a,atob:r,atobPolyfill:y,btoa:v,btoaPolyfill:b,fromBase64:x,toBase64:A,encode:A,encodeURI:f,encodeURL:f,utob:C,btou:P,decode:x,isValid:q,fromUint8Array:m,toUint8Array:p,extendString:D,extendUint8Array:W,extendBuiltins:J};return X.Base64={},Object.keys(X).forEach(function(Q){return X.Base64[Q]=X[Q]}),X})})(la)),la.exports}var nl={},Fh;function Vi(){return Fh||(Fh=1,(function(e){var i=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Int32Array<"u";function n(d,u){return Object.prototype.hasOwnProperty.call(d,u)}e.assign=function(d){for(var u=Array.prototype.slice.call(arguments,1);u.length;){var c=u.shift();if(c){if(typeof c!="object")throw new TypeError(c+"must be non-object");for(var w in c)n(c,w)&&(d[w]=c[w])}}return d},e.shrinkBuf=function(d,u){return d.length===u?d:d.subarray?d.subarray(0,u):(d.length=u,d)};var a={arraySet:function(d,u,c,w,U){if(u.subarray&&d.subarray){d.set(u.subarray(c,c+w),U);return}for(var F=0;F<w;F++)d[U+F]=u[c+F]},flattenChunks:function(d){var u,c,w,U,F,O;for(w=0,u=0,c=d.length;u<c;u++)w+=d[u].length;for(O=new Uint8Array(w),U=0,u=0,c=d.length;u<c;u++)F=d[u],O.set(F,U),U+=F.length;return O}},l={arraySet:function(d,u,c,w,U){for(var F=0;F<w;F++)d[U+F]=u[c+F]},flattenChunks:function(d){return[].concat.apply([],d)}};e.setTyped=function(d){d?(e.Buf8=Uint8Array,e.Buf16=Uint16Array,e.Buf32=Int32Array,e.assign(e,a)):(e.Buf8=Array,e.Buf16=Array,e.Buf32=Array,e.assign(e,l))},e.setTyped(i)})(nl)),nl}var zr={},Kn={},or={},Ph;function yL(){if(Ph)return or;Ph=1;var e=Vi(),i=4,n=0,a=1,l=2;function d($){for(var be=$.length;--be>=0;)$[be]=0}var u=0,c=1,w=2,U=3,F=258,O=29,M=256,L=M+1+O,_=30,b=19,v=2*L+1,h=15,m=16,k=7,B=256,C=16,R=17,A=18,f=[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],E=[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],S=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],P=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],y=512,r=new Array((L+2)*2);d(r);var s=new Array(_*2);d(s);var p=new Array(y);d(p);var g=new Array(F-U+1);d(g);var I=new Array(O);d(I);var x=new Array(_);d(x);function q($,be,Se,Be,we){this.static_tree=$,this.extra_bits=be,this.extra_base=Se,this.elems=Be,this.max_length=we,this.has_stree=$&&$.length}var T,D,W;function J($,be){this.dyn_tree=$,this.max_code=0,this.stat_desc=be}function X($){return $<256?p[$]:p[256+($>>>7)]}function Q($,be){$.pending_buf[$.pending++]=be&255,$.pending_buf[$.pending++]=be>>>8&255}function re($,be,Se){$.bi_valid>m-Se?($.bi_buf|=be<<$.bi_valid&65535,Q($,$.bi_buf),$.bi_buf=be>>m-$.bi_valid,$.bi_valid+=Se-m):($.bi_buf|=be<<$.bi_valid&65535,$.bi_valid+=Se)}function se($,be,Se){re($,Se[be*2],Se[be*2+1])}function ne($,be){var Se=0;do Se|=$&1,$>>>=1,Se<<=1;while(--be>0);return Se>>>1}function me($){$.bi_valid===16?(Q($,$.bi_buf),$.bi_buf=0,$.bi_valid=0):$.bi_valid>=8&&($.pending_buf[$.pending++]=$.bi_buf&255,$.bi_buf>>=8,$.bi_valid-=8)}function ge($,be){var Se=be.dyn_tree,Be=be.max_code,we=be.stat_desc.static_tree,Pe=be.stat_desc.has_stree,oe=be.stat_desc.extra_bits,Re=be.stat_desc.extra_base,ze=be.stat_desc.max_length,H,ke,Ne,ae,Le,Fe,He=0;for(ae=0;ae<=h;ae++)$.bl_count[ae]=0;for(Se[$.heap[$.heap_max]*2+1]=0,H=$.heap_max+1;H<v;H++)ke=$.heap[H],ae=Se[Se[ke*2+1]*2+1]+1,ae>ze&&(ae=ze,He++),Se[ke*2+1]=ae,!(ke>Be)&&($.bl_count[ae]++,Le=0,ke>=Re&&(Le=oe[ke-Re]),Fe=Se[ke*2],$.opt_len+=Fe*(ae+Le),Pe&&($.static_len+=Fe*(we[ke*2+1]+Le)));if(He!==0){do{for(ae=ze-1;$.bl_count[ae]===0;)ae--;$.bl_count[ae]--,$.bl_count[ae+1]+=2,$.bl_count[ze]--,He-=2}while(He>0);for(ae=ze;ae!==0;ae--)for(ke=$.bl_count[ae];ke!==0;)Ne=$.heap[--H],!(Ne>Be)&&(Se[Ne*2+1]!==ae&&($.opt_len+=(ae-Se[Ne*2+1])*Se[Ne*2],Se[Ne*2+1]=ae),ke--)}}function Ae($,be,Se){var Be=new Array(h+1),we=0,Pe,oe;for(Pe=1;Pe<=h;Pe++)Be[Pe]=we=we+Se[Pe-1]<<1;for(oe=0;oe<=be;oe++){var Re=$[oe*2+1];Re!==0&&($[oe*2]=ne(Be[Re]++,Re))}}function pe(){var $,be,Se,Be,we,Pe=new Array(h+1);for(Se=0,Be=0;Be<O-1;Be++)for(I[Be]=Se,$=0;$<1<<f[Be];$++)g[Se++]=Be;for(g[Se-1]=Be,we=0,Be=0;Be<16;Be++)for(x[Be]=we,$=0;$<1<<E[Be];$++)p[we++]=Be;for(we>>=7;Be<_;Be++)for(x[Be]=we<<7,$=0;$<1<<E[Be]-7;$++)p[256+we++]=Be;for(be=0;be<=h;be++)Pe[be]=0;for($=0;$<=143;)r[$*2+1]=8,$++,Pe[8]++;for(;$<=255;)r[$*2+1]=9,$++,Pe[9]++;for(;$<=279;)r[$*2+1]=7,$++,Pe[7]++;for(;$<=287;)r[$*2+1]=8,$++,Pe[8]++;for(Ae(r,L+1,Pe),$=0;$<_;$++)s[$*2+1]=5,s[$*2]=ne($,5);T=new q(r,f,M+1,L,h),D=new q(s,E,0,_,h),W=new q(new Array(0),S,0,b,k)}function le($){var be;for(be=0;be<L;be++)$.dyn_ltree[be*2]=0;for(be=0;be<_;be++)$.dyn_dtree[be*2]=0;for(be=0;be<b;be++)$.bl_tree[be*2]=0;$.dyn_ltree[B*2]=1,$.opt_len=$.static_len=0,$.last_lit=$.matches=0}function ye($){$.bi_valid>8?Q($,$.bi_buf):$.bi_valid>0&&($.pending_buf[$.pending++]=$.bi_buf),$.bi_buf=0,$.bi_valid=0}function de($,be,Se,Be){ye($),Q($,Se),Q($,~Se),e.arraySet($.pending_buf,$.window,be,Se,$.pending),$.pending+=Se}function Y($,be,Se,Be){var we=be*2,Pe=Se*2;return $[we]<$[Pe]||$[we]===$[Pe]&&Be[be]<=Be[Se]}function z($,be,Se){for(var Be=$.heap[Se],we=Se<<1;we<=$.heap_len&&(we<$.heap_len&&Y(be,$.heap[we+1],$.heap[we],$.depth)&&we++,!Y(be,Be,$.heap[we],$.depth));)$.heap[Se]=$.heap[we],Se=we,we<<=1;$.heap[Se]=Be}function V($,be,Se){var Be,we,Pe=0,oe,Re;if($.last_lit!==0)do Be=$.pending_buf[$.d_buf+Pe*2]<<8|$.pending_buf[$.d_buf+Pe*2+1],we=$.pending_buf[$.l_buf+Pe],Pe++,Be===0?se($,we,be):(oe=g[we],se($,oe+M+1,be),Re=f[oe],Re!==0&&(we-=I[oe],re($,we,Re)),Be--,oe=X(Be),se($,oe,Se),Re=E[oe],Re!==0&&(Be-=x[oe],re($,Be,Re)));while(Pe<$.last_lit);se($,B,be)}function ue($,be){var Se=be.dyn_tree,Be=be.stat_desc.static_tree,we=be.stat_desc.has_stree,Pe=be.stat_desc.elems,oe,Re,ze=-1,H;for($.heap_len=0,$.heap_max=v,oe=0;oe<Pe;oe++)Se[oe*2]!==0?($.heap[++$.heap_len]=ze=oe,$.depth[oe]=0):Se[oe*2+1]=0;for(;$.heap_len<2;)H=$.heap[++$.heap_len]=ze<2?++ze:0,Se[H*2]=1,$.depth[H]=0,$.opt_len--,we&&($.static_len-=Be[H*2+1]);for(be.max_code=ze,oe=$.heap_len>>1;oe>=1;oe--)z($,Se,oe);H=Pe;do oe=$.heap[1],$.heap[1]=$.heap[$.heap_len--],z($,Se,1),Re=$.heap[1],$.heap[--$.heap_max]=oe,$.heap[--$.heap_max]=Re,Se[H*2]=Se[oe*2]+Se[Re*2],$.depth[H]=($.depth[oe]>=$.depth[Re]?$.depth[oe]:$.depth[Re])+1,Se[oe*2+1]=Se[Re*2+1]=H,$.heap[1]=H++,z($,Se,1);while($.heap_len>=2);$.heap[--$.heap_max]=$.heap[1],ge($,be),Ae(Se,ze,$.bl_count)}function Te($,be,Se){var Be,we=-1,Pe,oe=be[1],Re=0,ze=7,H=4;for(oe===0&&(ze=138,H=3),be[(Se+1)*2+1]=65535,Be=0;Be<=Se;Be++)Pe=oe,oe=be[(Be+1)*2+1],!(++Re<ze&&Pe===oe)&&(Re<H?$.bl_tree[Pe*2]+=Re:Pe!==0?(Pe!==we&&$.bl_tree[Pe*2]++,$.bl_tree[C*2]++):Re<=10?$.bl_tree[R*2]++:$.bl_tree[A*2]++,Re=0,we=Pe,oe===0?(ze=138,H=3):Pe===oe?(ze=6,H=3):(ze=7,H=4))}function Ie($,be,Se){var Be,we=-1,Pe,oe=be[1],Re=0,ze=7,H=4;for(oe===0&&(ze=138,H=3),Be=0;Be<=Se;Be++)if(Pe=oe,oe=be[(Be+1)*2+1],!(++Re<ze&&Pe===oe)){if(Re<H)do se($,Pe,$.bl_tree);while(--Re!==0);else Pe!==0?(Pe!==we&&(se($,Pe,$.bl_tree),Re--),se($,C,$.bl_tree),re($,Re-3,2)):Re<=10?(se($,R,$.bl_tree),re($,Re-3,3)):(se($,A,$.bl_tree),re($,Re-11,7));Re=0,we=Pe,oe===0?(ze=138,H=3):Pe===oe?(ze=6,H=3):(ze=7,H=4)}}function Ce($){var be;for(Te($,$.dyn_ltree,$.l_desc.max_code),Te($,$.dyn_dtree,$.d_desc.max_code),ue($,$.bl_desc),be=b-1;be>=3&&$.bl_tree[P[be]*2+1]===0;be--);return $.opt_len+=3*(be+1)+5+5+4,be}function We($,be,Se,Be){var we;for(re($,be-257,5),re($,Se-1,5),re($,Be-4,4),we=0;we<Be;we++)re($,$.bl_tree[P[we]*2+1],3);Ie($,$.dyn_ltree,be-1),Ie($,$.dyn_dtree,Se-1)}function Ge($){var be=4093624447,Se;for(Se=0;Se<=31;Se++,be>>>=1)if(be&1&&$.dyn_ltree[Se*2]!==0)return n;if($.dyn_ltree[18]!==0||$.dyn_ltree[20]!==0||$.dyn_ltree[26]!==0)return a;for(Se=32;Se<M;Se++)if($.dyn_ltree[Se*2]!==0)return a;return n}var ee=!1;function te($){ee||(pe(),ee=!0),$.l_desc=new J($.dyn_ltree,T),$.d_desc=new J($.dyn_dtree,D),$.bl_desc=new J($.bl_tree,W),$.bi_buf=0,$.bi_valid=0,le($)}function K($,be,Se,Be){re($,(u<<1)+(Be?1:0),3),de($,be,Se)}function j($){re($,c<<1,3),se($,B,r),me($)}function G($,be,Se,Be){var we,Pe,oe=0;$.level>0?($.strm.data_type===l&&($.strm.data_type=Ge($)),ue($,$.l_desc),ue($,$.d_desc),oe=Ce($),we=$.opt_len+3+7>>>3,Pe=$.static_len+3+7>>>3,Pe<=we&&(we=Pe)):we=Pe=Se+5,Se+4<=we&&be!==-1?K($,be,Se,Be):$.strategy===i||Pe===we?(re($,(c<<1)+(Be?1:0),3),V($,r,s)):(re($,(w<<1)+(Be?1:0),3),We($,$.l_desc.max_code+1,$.d_desc.max_code+1,oe+1),V($,$.dyn_ltree,$.dyn_dtree)),le($),Be&&ye($)}function ce($,be,Se){return $.pending_buf[$.d_buf+$.last_lit*2]=be>>>8&255,$.pending_buf[$.d_buf+$.last_lit*2+1]=be&255,$.pending_buf[$.l_buf+$.last_lit]=Se&255,$.last_lit++,be===0?$.dyn_ltree[Se*2]++:($.matches++,be--,$.dyn_ltree[(g[Se]+M+1)*2]++,$.dyn_dtree[X(be)*2]++),$.last_lit===$.lit_bufsize-1}return or._tr_init=te,or._tr_stored_block=K,or._tr_flush_block=G,or._tr_tally=ce,or._tr_align=j,or}var il,Ih;function Sy(){if(Ih)return il;Ih=1;function e(i,n,a,l){for(var d=i&65535|0,u=i>>>16&65535|0,c=0;a!==0;){c=a>2e3?2e3:a,a-=c;do d=d+n[l++]|0,u=u+d|0;while(--c);d%=65521,u%=65521}return d|u<<16|0}return il=e,il}var rl,Rh;function wy(){if(Rh)return rl;Rh=1;function e(){for(var a,l=[],d=0;d<256;d++){a=d;for(var u=0;u<8;u++)a=a&1?3988292384^a>>>1:a>>>1;l[d]=a}return l}var i=e();function n(a,l,d,u){var c=i,w=u+d;a^=-1;for(var U=u;U<w;U++)a=a>>>8^c[(a^l[U])&255];return a^-1}return rl=n,rl}var sl,Mh;function Oc(){return Mh||(Mh=1,sl={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"}),sl}var Bh;function gL(){if(Bh)return Kn;Bh=1;var e=Vi(),i=yL(),n=Sy(),a=wy(),l=Oc(),d=0,u=1,c=3,w=4,U=5,F=0,O=1,M=-2,L=-3,_=-5,b=-1,v=1,h=2,m=3,k=4,B=0,C=2,R=8,A=9,f=15,E=8,S=29,P=256,y=P+1+S,r=30,s=19,p=2*y+1,g=15,I=3,x=258,q=x+I+1,T=32,D=42,W=69,J=73,X=91,Q=103,re=113,se=666,ne=1,me=2,ge=3,Ae=4,pe=3;function le(H,ke){return H.msg=l[ke],ke}function ye(H){return(H<<1)-(H>4?9:0)}function de(H){for(var ke=H.length;--ke>=0;)H[ke]=0}function Y(H){var ke=H.state,Ne=ke.pending;Ne>H.avail_out&&(Ne=H.avail_out),Ne!==0&&(e.arraySet(H.output,ke.pending_buf,ke.pending_out,Ne,H.next_out),H.next_out+=Ne,ke.pending_out+=Ne,H.total_out+=Ne,H.avail_out-=Ne,ke.pending-=Ne,ke.pending===0&&(ke.pending_out=0))}function z(H,ke){i._tr_flush_block(H,H.block_start>=0?H.block_start:-1,H.strstart-H.block_start,ke),H.block_start=H.strstart,Y(H.strm)}function V(H,ke){H.pending_buf[H.pending++]=ke}function ue(H,ke){H.pending_buf[H.pending++]=ke>>>8&255,H.pending_buf[H.pending++]=ke&255}function Te(H,ke,Ne,ae){var Le=H.avail_in;return Le>ae&&(Le=ae),Le===0?0:(H.avail_in-=Le,e.arraySet(ke,H.input,H.next_in,Le,Ne),H.state.wrap===1?H.adler=n(H.adler,ke,Le,Ne):H.state.wrap===2&&(H.adler=a(H.adler,ke,Le,Ne)),H.next_in+=Le,H.total_in+=Le,Le)}function Ie(H,ke){var Ne=H.max_chain_length,ae=H.strstart,Le,Fe,He=H.prev_length,qe=H.nice_match,Ke=H.strstart>H.w_size-q?H.strstart-(H.w_size-q):0,ct=H.window,xn=H.w_mask,wt=H.prev,dt=H.strstart+x,Pt=ct[ae+He-1],Vt=ct[ae+He];H.prev_length>=H.good_match&&(Ne>>=2),qe>H.lookahead&&(qe=H.lookahead);do if(Le=ke,!(ct[Le+He]!==Vt||ct[Le+He-1]!==Pt||ct[Le]!==ct[ae]||ct[++Le]!==ct[ae+1])){ae+=2,Le++;do;while(ct[++ae]===ct[++Le]&&ct[++ae]===ct[++Le]&&ct[++ae]===ct[++Le]&&ct[++ae]===ct[++Le]&&ct[++ae]===ct[++Le]&&ct[++ae]===ct[++Le]&&ct[++ae]===ct[++Le]&&ct[++ae]===ct[++Le]&&ae<dt);if(Fe=x-(dt-ae),ae=dt-x,Fe>He){if(H.match_start=ke,He=Fe,Fe>=qe)break;Pt=ct[ae+He-1],Vt=ct[ae+He]}}while((ke=wt[ke&xn])>Ke&&--Ne!==0);return He<=H.lookahead?He:H.lookahead}function Ce(H){var ke=H.w_size,Ne,ae,Le,Fe,He;do{if(Fe=H.window_size-H.lookahead-H.strstart,H.strstart>=ke+(ke-q)){e.arraySet(H.window,H.window,ke,ke,0),H.match_start-=ke,H.strstart-=ke,H.block_start-=ke,ae=H.hash_size,Ne=ae;do Le=H.head[--Ne],H.head[Ne]=Le>=ke?Le-ke:0;while(--ae);ae=ke,Ne=ae;do Le=H.prev[--Ne],H.prev[Ne]=Le>=ke?Le-ke:0;while(--ae);Fe+=ke}if(H.strm.avail_in===0)break;if(ae=Te(H.strm,H.window,H.strstart+H.lookahead,Fe),H.lookahead+=ae,H.lookahead+H.insert>=I)for(He=H.strstart-H.insert,H.ins_h=H.window[He],H.ins_h=(H.ins_h<<H.hash_shift^H.window[He+1])&H.hash_mask;H.insert&&(H.ins_h=(H.ins_h<<H.hash_shift^H.window[He+I-1])&H.hash_mask,H.prev[He&H.w_mask]=H.head[H.ins_h],H.head[H.ins_h]=He,He++,H.insert--,!(H.lookahead+H.insert<I)););}while(H.lookahead<q&&H.strm.avail_in!==0)}function We(H,ke){var Ne=65535;for(Ne>H.pending_buf_size-5&&(Ne=H.pending_buf_size-5);;){if(H.lookahead<=1){if(Ce(H),H.lookahead===0&&ke===d)return ne;if(H.lookahead===0)break}H.strstart+=H.lookahead,H.lookahead=0;var ae=H.block_start+Ne;if((H.strstart===0||H.strstart>=ae)&&(H.lookahead=H.strstart-ae,H.strstart=ae,z(H,!1),H.strm.avail_out===0)||H.strstart-H.block_start>=H.w_size-q&&(z(H,!1),H.strm.avail_out===0))return ne}return H.insert=0,ke===w?(z(H,!0),H.strm.avail_out===0?ge:Ae):(H.strstart>H.block_start&&(z(H,!1),H.strm.avail_out===0),ne)}function Ge(H,ke){for(var Ne,ae;;){if(H.lookahead<q){if(Ce(H),H.lookahead<q&&ke===d)return ne;if(H.lookahead===0)break}if(Ne=0,H.lookahead>=I&&(H.ins_h=(H.ins_h<<H.hash_shift^H.window[H.strstart+I-1])&H.hash_mask,Ne=H.prev[H.strstart&H.w_mask]=H.head[H.ins_h],H.head[H.ins_h]=H.strstart),Ne!==0&&H.strstart-Ne<=H.w_size-q&&(H.match_length=Ie(H,Ne)),H.match_length>=I)if(ae=i._tr_tally(H,H.strstart-H.match_start,H.match_length-I),H.lookahead-=H.match_length,H.match_length<=H.max_lazy_match&&H.lookahead>=I){H.match_length--;do H.strstart++,H.ins_h=(H.ins_h<<H.hash_shift^H.window[H.strstart+I-1])&H.hash_mask,Ne=H.prev[H.strstart&H.w_mask]=H.head[H.ins_h],H.head[H.ins_h]=H.strstart;while(--H.match_length!==0);H.strstart++}else H.strstart+=H.match_length,H.match_length=0,H.ins_h=H.window[H.strstart],H.ins_h=(H.ins_h<<H.hash_shift^H.window[H.strstart+1])&H.hash_mask;else ae=i._tr_tally(H,0,H.window[H.strstart]),H.lookahead--,H.strstart++;if(ae&&(z(H,!1),H.strm.avail_out===0))return ne}return H.insert=H.strstart<I-1?H.strstart:I-1,ke===w?(z(H,!0),H.strm.avail_out===0?ge:Ae):H.last_lit&&(z(H,!1),H.strm.avail_out===0)?ne:me}function ee(H,ke){for(var Ne,ae,Le;;){if(H.lookahead<q){if(Ce(H),H.lookahead<q&&ke===d)return ne;if(H.lookahead===0)break}if(Ne=0,H.lookahead>=I&&(H.ins_h=(H.ins_h<<H.hash_shift^H.window[H.strstart+I-1])&H.hash_mask,Ne=H.prev[H.strstart&H.w_mask]=H.head[H.ins_h],H.head[H.ins_h]=H.strstart),H.prev_length=H.match_length,H.prev_match=H.match_start,H.match_length=I-1,Ne!==0&&H.prev_length<H.max_lazy_match&&H.strstart-Ne<=H.w_size-q&&(H.match_length=Ie(H,Ne),H.match_length<=5&&(H.strategy===v||H.match_length===I&&H.strstart-H.match_start>4096)&&(H.match_length=I-1)),H.prev_length>=I&&H.match_length<=H.prev_length){Le=H.strstart+H.lookahead-I,ae=i._tr_tally(H,H.strstart-1-H.prev_match,H.prev_length-I),H.lookahead-=H.prev_length-1,H.prev_length-=2;do++H.strstart<=Le&&(H.ins_h=(H.ins_h<<H.hash_shift^H.window[H.strstart+I-1])&H.hash_mask,Ne=H.prev[H.strstart&H.w_mask]=H.head[H.ins_h],H.head[H.ins_h]=H.strstart);while(--H.prev_length!==0);if(H.match_available=0,H.match_length=I-1,H.strstart++,ae&&(z(H,!1),H.strm.avail_out===0))return ne}else if(H.match_available){if(ae=i._tr_tally(H,0,H.window[H.strstart-1]),ae&&z(H,!1),H.strstart++,H.lookahead--,H.strm.avail_out===0)return ne}else H.match_available=1,H.strstart++,H.lookahead--}return H.match_available&&(ae=i._tr_tally(H,0,H.window[H.strstart-1]),H.match_available=0),H.insert=H.strstart<I-1?H.strstart:I-1,ke===w?(z(H,!0),H.strm.avail_out===0?ge:Ae):H.last_lit&&(z(H,!1),H.strm.avail_out===0)?ne:me}function te(H,ke){for(var Ne,ae,Le,Fe,He=H.window;;){if(H.lookahead<=x){if(Ce(H),H.lookahead<=x&&ke===d)return ne;if(H.lookahead===0)break}if(H.match_length=0,H.lookahead>=I&&H.strstart>0&&(Le=H.strstart-1,ae=He[Le],ae===He[++Le]&&ae===He[++Le]&&ae===He[++Le])){Fe=H.strstart+x;do;while(ae===He[++Le]&&ae===He[++Le]&&ae===He[++Le]&&ae===He[++Le]&&ae===He[++Le]&&ae===He[++Le]&&ae===He[++Le]&&ae===He[++Le]&&Le<Fe);H.match_length=x-(Fe-Le),H.match_length>H.lookahead&&(H.match_length=H.lookahead)}if(H.match_length>=I?(Ne=i._tr_tally(H,1,H.match_length-I),H.lookahead-=H.match_length,H.strstart+=H.match_length,H.match_length=0):(Ne=i._tr_tally(H,0,H.window[H.strstart]),H.lookahead--,H.strstart++),Ne&&(z(H,!1),H.strm.avail_out===0))return ne}return H.insert=0,ke===w?(z(H,!0),H.strm.avail_out===0?ge:Ae):H.last_lit&&(z(H,!1),H.strm.avail_out===0)?ne:me}function K(H,ke){for(var Ne;;){if(H.lookahead===0&&(Ce(H),H.lookahead===0)){if(ke===d)return ne;break}if(H.match_length=0,Ne=i._tr_tally(H,0,H.window[H.strstart]),H.lookahead--,H.strstart++,Ne&&(z(H,!1),H.strm.avail_out===0))return ne}return H.insert=0,ke===w?(z(H,!0),H.strm.avail_out===0?ge:Ae):H.last_lit&&(z(H,!1),H.strm.avail_out===0)?ne:me}function j(H,ke,Ne,ae,Le){this.good_length=H,this.max_lazy=ke,this.nice_length=Ne,this.max_chain=ae,this.func=Le}var G;G=[new j(0,0,0,0,We),new j(4,4,8,4,Ge),new j(4,5,16,8,Ge),new j(4,6,32,32,Ge),new j(4,4,16,16,ee),new j(8,16,32,32,ee),new j(8,16,128,128,ee),new j(8,32,128,256,ee),new j(32,128,258,1024,ee),new j(32,258,258,4096,ee)];function ce(H){H.window_size=2*H.w_size,de(H.head),H.max_lazy_match=G[H.level].max_lazy,H.good_match=G[H.level].good_length,H.nice_match=G[H.level].nice_length,H.max_chain_length=G[H.level].max_chain,H.strstart=0,H.block_start=0,H.lookahead=0,H.insert=0,H.match_length=H.prev_length=I-1,H.match_available=0,H.ins_h=0}function $(){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=R,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 e.Buf16(p*2),this.dyn_dtree=new e.Buf16((2*r+1)*2),this.bl_tree=new e.Buf16((2*s+1)*2),de(this.dyn_ltree),de(this.dyn_dtree),de(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new e.Buf16(g+1),this.heap=new e.Buf16(2*y+1),de(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new e.Buf16(2*y+1),de(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 be(H){var ke;return!H||!H.state?le(H,M):(H.total_in=H.total_out=0,H.data_type=C,ke=H.state,ke.pending=0,ke.pending_out=0,ke.wrap<0&&(ke.wrap=-ke.wrap),ke.status=ke.wrap?D:re,H.adler=ke.wrap===2?0:1,ke.last_flush=d,i._tr_init(ke),F)}function Se(H){var ke=be(H);return ke===F&&ce(H.state),ke}function Be(H,ke){return!H||!H.state||H.state.wrap!==2?M:(H.state.gzhead=ke,F)}function we(H,ke,Ne,ae,Le,Fe){if(!H)return M;var He=1;if(ke===b&&(ke=6),ae<0?(He=0,ae=-ae):ae>15&&(He=2,ae-=16),Le<1||Le>A||Ne!==R||ae<8||ae>15||ke<0||ke>9||Fe<0||Fe>k)return le(H,M);ae===8&&(ae=9);var qe=new $;return H.state=qe,qe.strm=H,qe.wrap=He,qe.gzhead=null,qe.w_bits=ae,qe.w_size=1<<qe.w_bits,qe.w_mask=qe.w_size-1,qe.hash_bits=Le+7,qe.hash_size=1<<qe.hash_bits,qe.hash_mask=qe.hash_size-1,qe.hash_shift=~~((qe.hash_bits+I-1)/I),qe.window=new e.Buf8(qe.w_size*2),qe.head=new e.Buf16(qe.hash_size),qe.prev=new e.Buf16(qe.w_size),qe.lit_bufsize=1<<Le+6,qe.pending_buf_size=qe.lit_bufsize*4,qe.pending_buf=new e.Buf8(qe.pending_buf_size),qe.d_buf=1*qe.lit_bufsize,qe.l_buf=3*qe.lit_bufsize,qe.level=ke,qe.strategy=Fe,qe.method=Ne,Se(H)}function Pe(H,ke){return we(H,ke,R,f,E,B)}function oe(H,ke){var Ne,ae,Le,Fe;if(!H||!H.state||ke>U||ke<0)return H?le(H,M):M;if(ae=H.state,!H.output||!H.input&&H.avail_in!==0||ae.status===se&&ke!==w)return le(H,H.avail_out===0?_:M);if(ae.strm=H,Ne=ae.last_flush,ae.last_flush=ke,ae.status===D)if(ae.wrap===2)H.adler=0,V(ae,31),V(ae,139),V(ae,8),ae.gzhead?(V(ae,(ae.gzhead.text?1:0)+(ae.gzhead.hcrc?2:0)+(ae.gzhead.extra?4:0)+(ae.gzhead.name?8:0)+(ae.gzhead.comment?16:0)),V(ae,ae.gzhead.time&255),V(ae,ae.gzhead.time>>8&255),V(ae,ae.gzhead.time>>16&255),V(ae,ae.gzhead.time>>24&255),V(ae,ae.level===9?2:ae.strategy>=h||ae.level<2?4:0),V(ae,ae.gzhead.os&255),ae.gzhead.extra&&ae.gzhead.extra.length&&(V(ae,ae.gzhead.extra.length&255),V(ae,ae.gzhead.extra.length>>8&255)),ae.gzhead.hcrc&&(H.adler=a(H.adler,ae.pending_buf,ae.pending,0)),ae.gzindex=0,ae.status=W):(V(ae,0),V(ae,0),V(ae,0),V(ae,0),V(ae,0),V(ae,ae.level===9?2:ae.strategy>=h||ae.level<2?4:0),V(ae,pe),ae.status=re);else{var He=R+(ae.w_bits-8<<4)<<8,qe=-1;ae.strategy>=h||ae.level<2?qe=0:ae.level<6?qe=1:ae.level===6?qe=2:qe=3,He|=qe<<6,ae.strstart!==0&&(He|=T),He+=31-He%31,ae.status=re,ue(ae,He),ae.strstart!==0&&(ue(ae,H.adler>>>16),ue(ae,H.adler&65535)),H.adler=1}if(ae.status===W)if(ae.gzhead.extra){for(Le=ae.pending;ae.gzindex<(ae.gzhead.extra.length&65535)&&!(ae.pending===ae.pending_buf_size&&(ae.gzhead.hcrc&&ae.pending>Le&&(H.adler=a(H.adler,ae.pending_buf,ae.pending-Le,Le)),Y(H),Le=ae.pending,ae.pending===ae.pending_buf_size));)V(ae,ae.gzhead.extra[ae.gzindex]&255),ae.gzindex++;ae.gzhead.hcrc&&ae.pending>Le&&(H.adler=a(H.adler,ae.pending_buf,ae.pending-Le,Le)),ae.gzindex===ae.gzhead.extra.length&&(ae.gzindex=0,ae.status=J)}else ae.status=J;if(ae.status===J)if(ae.gzhead.name){Le=ae.pending;do{if(ae.pending===ae.pending_buf_size&&(ae.gzhead.hcrc&&ae.pending>Le&&(H.adler=a(H.adler,ae.pending_buf,ae.pending-Le,Le)),Y(H),Le=ae.pending,ae.pending===ae.pending_buf_size)){Fe=1;break}ae.gzindex<ae.gzhead.name.length?Fe=ae.gzhead.name.charCodeAt(ae.gzindex++)&255:Fe=0,V(ae,Fe)}while(Fe!==0);ae.gzhead.hcrc&&ae.pending>Le&&(H.adler=a(H.adler,ae.pending_buf,ae.pending-Le,Le)),Fe===0&&(ae.gzindex=0,ae.status=X)}else ae.status=X;if(ae.status===X)if(ae.gzhead.comment){Le=ae.pending;do{if(ae.pending===ae.pending_buf_size&&(ae.gzhead.hcrc&&ae.pending>Le&&(H.adler=a(H.adler,ae.pending_buf,ae.pending-Le,Le)),Y(H),Le=ae.pending,ae.pending===ae.pending_buf_size)){Fe=1;break}ae.gzindex<ae.gzhead.comment.length?Fe=ae.gzhead.comment.charCodeAt(ae.gzindex++)&255:Fe=0,V(ae,Fe)}while(Fe!==0);ae.gzhead.hcrc&&ae.pending>Le&&(H.adler=a(H.adler,ae.pending_buf,ae.pending-Le,Le)),Fe===0&&(ae.status=Q)}else ae.status=Q;if(ae.status===Q&&(ae.gzhead.hcrc?(ae.pending+2>ae.pending_buf_size&&Y(H),ae.pending+2<=ae.pending_buf_size&&(V(ae,H.adler&255),V(ae,H.adler>>8&255),H.adler=0,ae.status=re)):ae.status=re),ae.pending!==0){if(Y(H),H.avail_out===0)return ae.last_flush=-1,F}else if(H.avail_in===0&&ye(ke)<=ye(Ne)&&ke!==w)return le(H,_);if(ae.status===se&&H.avail_in!==0)return le(H,_);if(H.avail_in!==0||ae.lookahead!==0||ke!==d&&ae.status!==se){var Ke=ae.strategy===h?K(ae,ke):ae.strategy===m?te(ae,ke):G[ae.level].func(ae,ke);if((Ke===ge||Ke===Ae)&&(ae.status=se),Ke===ne||Ke===ge)return H.avail_out===0&&(ae.last_flush=-1),F;if(Ke===me&&(ke===u?i._tr_align(ae):ke!==U&&(i._tr_stored_block(ae,0,0,!1),ke===c&&(de(ae.head),ae.lookahead===0&&(ae.strstart=0,ae.block_start=0,ae.insert=0))),Y(H),H.avail_out===0))return ae.last_flush=-1,F}return ke!==w?F:ae.wrap<=0?O:(ae.wrap===2?(V(ae,H.adler&255),V(ae,H.adler>>8&255),V(ae,H.adler>>16&255),V(ae,H.adler>>24&255),V(ae,H.total_in&255),V(ae,H.total_in>>8&255),V(ae,H.total_in>>16&255),V(ae,H.total_in>>24&255)):(ue(ae,H.adler>>>16),ue(ae,H.adler&65535)),Y(H),ae.wrap>0&&(ae.wrap=-ae.wrap),ae.pending!==0?F:O)}function Re(H){var ke;return!H||!H.state?M:(ke=H.state.status,ke!==D&&ke!==W&&ke!==J&&ke!==X&&ke!==Q&&ke!==re&&ke!==se?le(H,M):(H.state=null,ke===re?le(H,L):F))}function ze(H,ke){var Ne=ke.length,ae,Le,Fe,He,qe,Ke,ct,xn;if(!H||!H.state||(ae=H.state,He=ae.wrap,He===2||He===1&&ae.status!==D||ae.lookahead))return M;for(He===1&&(H.adler=n(H.adler,ke,Ne,0)),ae.wrap=0,Ne>=ae.w_size&&(He===0&&(de(ae.head),ae.strstart=0,ae.block_start=0,ae.insert=0),xn=new e.Buf8(ae.w_size),e.arraySet(xn,ke,Ne-ae.w_size,ae.w_size,0),ke=xn,Ne=ae.w_size),qe=H.avail_in,Ke=H.next_in,ct=H.input,H.avail_in=Ne,H.next_in=0,H.input=ke,Ce(ae);ae.lookahead>=I;){Le=ae.strstart,Fe=ae.lookahead-(I-1);do ae.ins_h=(ae.ins_h<<ae.hash_shift^ae.window[Le+I-1])&ae.hash_mask,ae.prev[Le&ae.w_mask]=ae.head[ae.ins_h],ae.head[ae.ins_h]=Le,Le++;while(--Fe);ae.strstart=Le,ae.lookahead=I-1,Ce(ae)}return ae.strstart+=ae.lookahead,ae.block_start=ae.strstart,ae.insert=ae.lookahead,ae.lookahead=0,ae.match_length=ae.prev_length=I-1,ae.match_available=0,H.next_in=Ke,H.input=ct,H.avail_in=qe,ae.wrap=He,F}return Kn.deflateInit=Pe,Kn.deflateInit2=we,Kn.deflateReset=Se,Kn.deflateResetKeep=be,Kn.deflateSetHeader=Be,Kn.deflate=oe,Kn.deflateEnd=Re,Kn.deflateSetDictionary=ze,Kn.deflateInfo="pako deflate (from Nodeca project)",Kn}var ar={},Dh;function Ly(){if(Dh)return ar;Dh=1;var e=Vi(),i=!0,n=!0;try{String.fromCharCode.apply(null,[0])}catch{i=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch{n=!1}for(var a=new e.Buf8(256),l=0;l<256;l++)a[l]=l>=252?6:l>=248?5:l>=240?4:l>=224?3:l>=192?2:1;a[254]=a[254]=1,ar.string2buf=function(u){var c,w,U,F,O,M=u.length,L=0;for(F=0;F<M;F++)w=u.charCodeAt(F),(w&64512)===55296&&F+1<M&&(U=u.charCodeAt(F+1),(U&64512)===56320&&(w=65536+(w-55296<<10)+(U-56320),F++)),L+=w<128?1:w<2048?2:w<65536?3:4;for(c=new e.Buf8(L),O=0,F=0;O<L;F++)w=u.charCodeAt(F),(w&64512)===55296&&F+1<M&&(U=u.charCodeAt(F+1),(U&64512)===56320&&(w=65536+(w-55296<<10)+(U-56320),F++)),w<128?c[O++]=w:w<2048?(c[O++]=192|w>>>6,c[O++]=128|w&63):w<65536?(c[O++]=224|w>>>12,c[O++]=128|w>>>6&63,c[O++]=128|w&63):(c[O++]=240|w>>>18,c[O++]=128|w>>>12&63,c[O++]=128|w>>>6&63,c[O++]=128|w&63);return c};function d(u,c){if(c<65534&&(u.subarray&&n||!u.subarray&&i))return String.fromCharCode.apply(null,e.shrinkBuf(u,c));for(var w="",U=0;U<c;U++)w+=String.fromCharCode(u[U]);return w}return ar.buf2binstring=function(u){return d(u,u.length)},ar.binstring2buf=function(u){for(var c=new e.Buf8(u.length),w=0,U=c.length;w<U;w++)c[w]=u.charCodeAt(w);return c},ar.buf2string=function(u,c){var w,U,F,O,M=c||u.length,L=new Array(M*2);for(U=0,w=0;w<M;){if(F=u[w++],F<128){L[U++]=F;continue}if(O=a[F],O>4){L[U++]=65533,w+=O-1;continue}for(F&=O===2?31:O===3?15:7;O>1&&w<M;)F=F<<6|u[w++]&63,O--;if(O>1){L[U++]=65533;continue}F<65536?L[U++]=F:(F-=65536,L[U++]=55296|F>>10&1023,L[U++]=56320|F&1023)}return d(L,U)},ar.utf8border=function(u,c){var w;for(c=c||u.length,c>u.length&&(c=u.length),w=c-1;w>=0&&(u[w]&192)===128;)w--;return w<0||w===0?c:w+a[u[w]]>c?w:c},ar}var ol,jh;function _y(){if(jh)return ol;jh=1;function e(){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}return ol=e,ol}var Uh;function bL(){if(Uh)return zr;Uh=1;var e=gL(),i=Vi(),n=Ly(),a=Oc(),l=_y(),d=Object.prototype.toString,u=0,c=4,w=0,U=1,F=2,O=-1,M=0,L=8;function _(m){if(!(this instanceof _))return new _(m);this.options=i.assign({level:O,method:L,chunkSize:16384,windowBits:15,memLevel:8,strategy:M,to:""},m||{});var k=this.options;k.raw&&k.windowBits>0?k.windowBits=-k.windowBits:k.gzip&&k.windowBits>0&&k.windowBits<16&&(k.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new l,this.strm.avail_out=0;var B=e.deflateInit2(this.strm,k.level,k.method,k.windowBits,k.memLevel,k.strategy);if(B!==w)throw new Error(a[B]);if(k.header&&e.deflateSetHeader(this.strm,k.header),k.dictionary){var C;if(typeof k.dictionary=="string"?C=n.string2buf(k.dictionary):d.call(k.dictionary)==="[object ArrayBuffer]"?C=new Uint8Array(k.dictionary):C=k.dictionary,B=e.deflateSetDictionary(this.strm,C),B!==w)throw new Error(a[B]);this._dict_set=!0}}_.prototype.push=function(m,k){var B=this.strm,C=this.options.chunkSize,R,A;if(this.ended)return!1;A=k===~~k?k:k===!0?c:u,typeof m=="string"?B.input=n.string2buf(m):d.call(m)==="[object ArrayBuffer]"?B.input=new Uint8Array(m):B.input=m,B.next_in=0,B.avail_in=B.input.length;do{if(B.avail_out===0&&(B.output=new i.Buf8(C),B.next_out=0,B.avail_out=C),R=e.deflate(B,A),R!==U&&R!==w)return this.onEnd(R),this.ended=!0,!1;(B.avail_out===0||B.avail_in===0&&(A===c||A===F))&&(this.options.to==="string"?this.onData(n.buf2binstring(i.shrinkBuf(B.output,B.next_out))):this.onData(i.shrinkBuf(B.output,B.next_out)))}while((B.avail_in>0||B.avail_out===0)&&R!==U);return A===c?(R=e.deflateEnd(this.strm),this.onEnd(R),this.ended=!0,R===w):(A===F&&(this.onEnd(w),B.avail_out=0),!0)},_.prototype.onData=function(m){this.chunks.push(m)},_.prototype.onEnd=function(m){m===w&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=i.flattenChunks(this.chunks)),this.chunks=[],this.err=m,this.msg=this.strm.msg};function b(m,k){var B=new _(k);if(B.push(m,!0),B.err)throw B.msg||a[B.err];return B.result}function v(m,k){return k=k||{},k.raw=!0,b(m,k)}function h(m,k){return k=k||{},k.gzip=!0,b(m,k)}return zr.Deflate=_,zr.deflate=b,zr.deflateRaw=v,zr.gzip=h,zr}var Wr={},Bn={},al,xh;function TL(){if(xh)return al;xh=1;var e=30,i=12;return al=function(a,l){var d,u,c,w,U,F,O,M,L,_,b,v,h,m,k,B,C,R,A,f,E,S,P,y,r;d=a.state,u=a.next_in,y=a.input,c=u+(a.avail_in-5),w=a.next_out,r=a.output,U=w-(l-a.avail_out),F=w+(a.avail_out-257),O=d.dmax,M=d.wsize,L=d.whave,_=d.wnext,b=d.window,v=d.hold,h=d.bits,m=d.lencode,k=d.distcode,B=(1<<d.lenbits)-1,C=(1<<d.distbits)-1;e:do{h<15&&(v+=y[u++]<<h,h+=8,v+=y[u++]<<h,h+=8),R=m[v&B];t:for(;;){if(A=R>>>24,v>>>=A,h-=A,A=R>>>16&255,A===0)r[w++]=R&65535;else if(A&16){f=R&65535,A&=15,A&&(h<A&&(v+=y[u++]<<h,h+=8),f+=v&(1<<A)-1,v>>>=A,h-=A),h<15&&(v+=y[u++]<<h,h+=8,v+=y[u++]<<h,h+=8),R=k[v&C];n:for(;;){if(A=R>>>24,v>>>=A,h-=A,A=R>>>16&255,A&16){if(E=R&65535,A&=15,h<A&&(v+=y[u++]<<h,h+=8,h<A&&(v+=y[u++]<<h,h+=8)),E+=v&(1<<A)-1,E>O){a.msg="invalid distance too far back",d.mode=e;break e}if(v>>>=A,h-=A,A=w-U,E>A){if(A=E-A,A>L&&d.sane){a.msg="invalid distance too far back",d.mode=e;break e}if(S=0,P=b,_===0){if(S+=M-A,A<f){f-=A;do r[w++]=b[S++];while(--A);S=w-E,P=r}}else if(_<A){if(S+=M+_-A,A-=_,A<f){f-=A;do r[w++]=b[S++];while(--A);if(S=0,_<f){A=_,f-=A;do r[w++]=b[S++];while(--A);S=w-E,P=r}}}else if(S+=_-A,A<f){f-=A;do r[w++]=b[S++];while(--A);S=w-E,P=r}for(;f>2;)r[w++]=P[S++],r[w++]=P[S++],r[w++]=P[S++],f-=3;f&&(r[w++]=P[S++],f>1&&(r[w++]=P[S++]))}else{S=w-E;do r[w++]=r[S++],r[w++]=r[S++],r[w++]=r[S++],f-=3;while(f>2);f&&(r[w++]=r[S++],f>1&&(r[w++]=r[S++]))}}else if((A&64)===0){R=k[(R&65535)+(v&(1<<A)-1)];continue n}else{a.msg="invalid distance code",d.mode=e;break e}break}}else if((A&64)===0){R=m[(R&65535)+(v&(1<<A)-1)];continue t}else if(A&32){d.mode=i;break e}else{a.msg="invalid literal/length code",d.mode=e;break e}break}}while(u<c&&w<F);f=h>>3,u-=f,h-=f<<3,v&=(1<<h)-1,a.next_in=u,a.next_out=w,a.avail_in=u<c?5+(c-u):5-(u-c),a.avail_out=w<F?257+(F-w):257-(w-F),d.hold=v,d.bits=h},al}var ul,zh;function vL(){if(zh)return ul;zh=1;var e=Vi(),i=15,n=852,a=592,l=0,d=1,u=2,c=[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],w=[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],U=[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],F=[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];return ul=function(M,L,_,b,v,h,m,k){var B=k.bits,C=0,R=0,A=0,f=0,E=0,S=0,P=0,y=0,r=0,s=0,p,g,I,x,q,T=null,D=0,W,J=new e.Buf16(i+1),X=new e.Buf16(i+1),Q=null,re=0,se,ne,me;for(C=0;C<=i;C++)J[C]=0;for(R=0;R<b;R++)J[L[_+R]]++;for(E=B,f=i;f>=1&&J[f]===0;f--);if(E>f&&(E=f),f===0)return v[h++]=1<<24|64<<16|0,v[h++]=1<<24|64<<16|0,k.bits=1,0;for(A=1;A<f&&J[A]===0;A++);for(E<A&&(E=A),y=1,C=1;C<=i;C++)if(y<<=1,y-=J[C],y<0)return-1;if(y>0&&(M===l||f!==1))return-1;for(X[1]=0,C=1;C<i;C++)X[C+1]=X[C]+J[C];for(R=0;R<b;R++)L[_+R]!==0&&(m[X[L[_+R]]++]=R);if(M===l?(T=Q=m,W=19):M===d?(T=c,D-=257,Q=w,re-=257,W=256):(T=U,Q=F,W=-1),s=0,R=0,C=A,q=h,S=E,P=0,I=-1,r=1<<E,x=r-1,M===d&&r>n||M===u&&r>a)return 1;for(;;){se=C-P,m[R]<W?(ne=0,me=m[R]):m[R]>W?(ne=Q[re+m[R]],me=T[D+m[R]]):(ne=96,me=0),p=1<<C-P,g=1<<S,A=g;do g-=p,v[q+(s>>P)+g]=se<<24|ne<<16|me|0;while(g!==0);for(p=1<<C-1;s&p;)p>>=1;if(p!==0?(s&=p-1,s+=p):s=0,R++,--J[C]===0){if(C===f)break;C=L[_+m[R]]}if(C>E&&(s&x)!==I){for(P===0&&(P=E),q+=A,S=C-P,y=1<<S;S+P<f&&(y-=J[S+P],!(y<=0));)S++,y<<=1;if(r+=1<<S,M===d&&r>n||M===u&&r>a)return 1;I=s&x,v[I]=E<<24|S<<16|q-h|0}}return s!==0&&(v[q+s]=C-P<<24|64<<16|0),k.bits=E,0},ul}var Wh;function SL(){if(Wh)return Bn;Wh=1;var e=Vi(),i=Sy(),n=wy(),a=TL(),l=vL(),d=0,u=1,c=2,w=4,U=5,F=6,O=0,M=1,L=2,_=-2,b=-3,v=-4,h=-5,m=8,k=1,B=2,C=3,R=4,A=5,f=6,E=7,S=8,P=9,y=10,r=11,s=12,p=13,g=14,I=15,x=16,q=17,T=18,D=19,W=20,J=21,X=22,Q=23,re=24,se=25,ne=26,me=27,ge=28,Ae=29,pe=30,le=31,ye=32,de=852,Y=592,z=15,V=z;function ue(we){return(we>>>24&255)+(we>>>8&65280)+((we&65280)<<8)+((we&255)<<24)}function Te(){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 e.Buf16(320),this.work=new e.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function Ie(we){var Pe;return!we||!we.state?_:(Pe=we.state,we.total_in=we.total_out=Pe.total=0,we.msg="",Pe.wrap&&(we.adler=Pe.wrap&1),Pe.mode=k,Pe.last=0,Pe.havedict=0,Pe.dmax=32768,Pe.head=null,Pe.hold=0,Pe.bits=0,Pe.lencode=Pe.lendyn=new e.Buf32(de),Pe.distcode=Pe.distdyn=new e.Buf32(Y),Pe.sane=1,Pe.back=-1,O)}function Ce(we){var Pe;return!we||!we.state?_:(Pe=we.state,Pe.wsize=0,Pe.whave=0,Pe.wnext=0,Ie(we))}function We(we,Pe){var oe,Re;return!we||!we.state||(Re=we.state,Pe<0?(oe=0,Pe=-Pe):(oe=(Pe>>4)+1,Pe<48&&(Pe&=15)),Pe&&(Pe<8||Pe>15))?_:(Re.window!==null&&Re.wbits!==Pe&&(Re.window=null),Re.wrap=oe,Re.wbits=Pe,Ce(we))}function Ge(we,Pe){var oe,Re;return we?(Re=new Te,we.state=Re,Re.window=null,oe=We(we,Pe),oe!==O&&(we.state=null),oe):_}function ee(we){return Ge(we,V)}var te=!0,K,j;function G(we){if(te){var Pe;for(K=new e.Buf32(512),j=new e.Buf32(32),Pe=0;Pe<144;)we.lens[Pe++]=8;for(;Pe<256;)we.lens[Pe++]=9;for(;Pe<280;)we.lens[Pe++]=7;for(;Pe<288;)we.lens[Pe++]=8;for(l(u,we.lens,0,288,K,0,we.work,{bits:9}),Pe=0;Pe<32;)we.lens[Pe++]=5;l(c,we.lens,0,32,j,0,we.work,{bits:5}),te=!1}we.lencode=K,we.lenbits=9,we.distcode=j,we.distbits=5}function ce(we,Pe,oe,Re){var ze,H=we.state;return H.window===null&&(H.wsize=1<<H.wbits,H.wnext=0,H.whave=0,H.window=new e.Buf8(H.wsize)),Re>=H.wsize?(e.arraySet(H.window,Pe,oe-H.wsize,H.wsize,0),H.wnext=0,H.whave=H.wsize):(ze=H.wsize-H.wnext,ze>Re&&(ze=Re),e.arraySet(H.window,Pe,oe-Re,ze,H.wnext),Re-=ze,Re?(e.arraySet(H.window,Pe,oe-Re,Re,0),H.wnext=Re,H.whave=H.wsize):(H.wnext+=ze,H.wnext===H.wsize&&(H.wnext=0),H.whave<H.wsize&&(H.whave+=ze))),0}function $(we,Pe){var oe,Re,ze,H,ke,Ne,ae,Le,Fe,He,qe,Ke,ct,xn,wt=0,dt,Pt,Vt,en,kr,Nr,Mt,ln,Jt=new e.Buf8(4),zn,bn,ao=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!we||!we.state||!we.output||!we.input&&we.avail_in!==0)return _;oe=we.state,oe.mode===s&&(oe.mode=p),ke=we.next_out,ze=we.output,ae=we.avail_out,H=we.next_in,Re=we.input,Ne=we.avail_in,Le=oe.hold,Fe=oe.bits,He=Ne,qe=ae,ln=O;e:for(;;)switch(oe.mode){case k:if(oe.wrap===0){oe.mode=p;break}for(;Fe<16;){if(Ne===0)break e;Ne--,Le+=Re[H++]<<Fe,Fe+=8}if(oe.wrap&2&&Le===35615){oe.check=0,Jt[0]=Le&255,Jt[1]=Le>>>8&255,oe.check=n(oe.check,Jt,2,0),Le=0,Fe=0,oe.mode=B;break}if(oe.flags=0,oe.head&&(oe.head.done=!1),!(oe.wrap&1)||(((Le&255)<<8)+(Le>>8))%31){we.msg="incorrect header check",oe.mode=pe;break}if((Le&15)!==m){we.msg="unknown compression method",oe.mode=pe;break}if(Le>>>=4,Fe-=4,Mt=(Le&15)+8,oe.wbits===0)oe.wbits=Mt;else if(Mt>oe.wbits){we.msg="invalid window size",oe.mode=pe;break}oe.dmax=1<<Mt,we.adler=oe.check=1,oe.mode=Le&512?y:s,Le=0,Fe=0;break;case B:for(;Fe<16;){if(Ne===0)break e;Ne--,Le+=Re[H++]<<Fe,Fe+=8}if(oe.flags=Le,(oe.flags&255)!==m){we.msg="unknown compression method",oe.mode=pe;break}if(oe.flags&57344){we.msg="unknown header flags set",oe.mode=pe;break}oe.head&&(oe.head.text=Le>>8&1),oe.flags&512&&(Jt[0]=Le&255,Jt[1]=Le>>>8&255,oe.check=n(oe.check,Jt,2,0)),Le=0,Fe=0,oe.mode=C;case C:for(;Fe<32;){if(Ne===0)break e;Ne--,Le+=Re[H++]<<Fe,Fe+=8}oe.head&&(oe.head.time=Le),oe.flags&512&&(Jt[0]=Le&255,Jt[1]=Le>>>8&255,Jt[2]=Le>>>16&255,Jt[3]=Le>>>24&255,oe.check=n(oe.check,Jt,4,0)),Le=0,Fe=0,oe.mode=R;case R:for(;Fe<16;){if(Ne===0)break e;Ne--,Le+=Re[H++]<<Fe,Fe+=8}oe.head&&(oe.head.xflags=Le&255,oe.head.os=Le>>8),oe.flags&512&&(Jt[0]=Le&255,Jt[1]=Le>>>8&255,oe.check=n(oe.check,Jt,2,0)),Le=0,Fe=0,oe.mode=A;case A:if(oe.flags&1024){for(;Fe<16;){if(Ne===0)break e;Ne--,Le+=Re[H++]<<Fe,Fe+=8}oe.length=Le,oe.head&&(oe.head.extra_len=Le),oe.flags&512&&(Jt[0]=Le&255,Jt[1]=Le>>>8&255,oe.check=n(oe.check,Jt,2,0)),Le=0,Fe=0}else oe.head&&(oe.head.extra=null);oe.mode=f;case f:if(oe.flags&1024&&(Ke=oe.length,Ke>Ne&&(Ke=Ne),Ke&&(oe.head&&(Mt=oe.head.extra_len-oe.length,oe.head.extra||(oe.head.extra=new Array(oe.head.extra_len)),e.arraySet(oe.head.extra,Re,H,Ke,Mt)),oe.flags&512&&(oe.check=n(oe.check,Re,Ke,H)),Ne-=Ke,H+=Ke,oe.length-=Ke),oe.length))break e;oe.length=0,oe.mode=E;case E:if(oe.flags&2048){if(Ne===0)break e;Ke=0;do Mt=Re[H+Ke++],oe.head&&Mt&&oe.length<65536&&(oe.head.name+=String.fromCharCode(Mt));while(Mt&&Ke<Ne);if(oe.flags&512&&(oe.check=n(oe.check,Re,Ke,H)),Ne-=Ke,H+=Ke,Mt)break e}else oe.head&&(oe.head.name=null);oe.length=0,oe.mode=S;case S:if(oe.flags&4096){if(Ne===0)break e;Ke=0;do Mt=Re[H+Ke++],oe.head&&Mt&&oe.length<65536&&(oe.head.comment+=String.fromCharCode(Mt));while(Mt&&Ke<Ne);if(oe.flags&512&&(oe.check=n(oe.check,Re,Ke,H)),Ne-=Ke,H+=Ke,Mt)break e}else oe.head&&(oe.head.comment=null);oe.mode=P;case P:if(oe.flags&512){for(;Fe<16;){if(Ne===0)break e;Ne--,Le+=Re[H++]<<Fe,Fe+=8}if(Le!==(oe.check&65535)){we.msg="header crc mismatch",oe.mode=pe;break}Le=0,Fe=0}oe.head&&(oe.head.hcrc=oe.flags>>9&1,oe.head.done=!0),we.adler=oe.check=0,oe.mode=s;break;case y:for(;Fe<32;){if(Ne===0)break e;Ne--,Le+=Re[H++]<<Fe,Fe+=8}we.adler=oe.check=ue(Le),Le=0,Fe=0,oe.mode=r;case r:if(oe.havedict===0)return we.next_out=ke,we.avail_out=ae,we.next_in=H,we.avail_in=Ne,oe.hold=Le,oe.bits=Fe,L;we.adler=oe.check=1,oe.mode=s;case s:if(Pe===U||Pe===F)break e;case p:if(oe.last){Le>>>=Fe&7,Fe-=Fe&7,oe.mode=me;break}for(;Fe<3;){if(Ne===0)break e;Ne--,Le+=Re[H++]<<Fe,Fe+=8}switch(oe.last=Le&1,Le>>>=1,Fe-=1,Le&3){case 0:oe.mode=g;break;case 1:if(G(oe),oe.mode=W,Pe===F){Le>>>=2,Fe-=2;break e}break;case 2:oe.mode=q;break;case 3:we.msg="invalid block type",oe.mode=pe}Le>>>=2,Fe-=2;break;case g:for(Le>>>=Fe&7,Fe-=Fe&7;Fe<32;){if(Ne===0)break e;Ne--,Le+=Re[H++]<<Fe,Fe+=8}if((Le&65535)!==(Le>>>16^65535)){we.msg="invalid stored block lengths",oe.mode=pe;break}if(oe.length=Le&65535,Le=0,Fe=0,oe.mode=I,Pe===F)break e;case I:oe.mode=x;case x:if(Ke=oe.length,Ke){if(Ke>Ne&&(Ke=Ne),Ke>ae&&(Ke=ae),Ke===0)break e;e.arraySet(ze,Re,H,Ke,ke),Ne-=Ke,H+=Ke,ae-=Ke,ke+=Ke,oe.length-=Ke;break}oe.mode=s;break;case q:for(;Fe<14;){if(Ne===0)break e;Ne--,Le+=Re[H++]<<Fe,Fe+=8}if(oe.nlen=(Le&31)+257,Le>>>=5,Fe-=5,oe.ndist=(Le&31)+1,Le>>>=5,Fe-=5,oe.ncode=(Le&15)+4,Le>>>=4,Fe-=4,oe.nlen>286||oe.ndist>30){we.msg="too many length or distance symbols",oe.mode=pe;break}oe.have=0,oe.mode=T;case T:for(;oe.have<oe.ncode;){for(;Fe<3;){if(Ne===0)break e;Ne--,Le+=Re[H++]<<Fe,Fe+=8}oe.lens[ao[oe.have++]]=Le&7,Le>>>=3,Fe-=3}for(;oe.have<19;)oe.lens[ao[oe.have++]]=0;if(oe.lencode=oe.lendyn,oe.lenbits=7,zn={bits:oe.lenbits},ln=l(d,oe.lens,0,19,oe.lencode,0,oe.work,zn),oe.lenbits=zn.bits,ln){we.msg="invalid code lengths set",oe.mode=pe;break}oe.have=0,oe.mode=D;case D:for(;oe.have<oe.nlen+oe.ndist;){for(;wt=oe.lencode[Le&(1<<oe.lenbits)-1],dt=wt>>>24,Pt=wt>>>16&255,Vt=wt&65535,!(dt<=Fe);){if(Ne===0)break e;Ne--,Le+=Re[H++]<<Fe,Fe+=8}if(Vt<16)Le>>>=dt,Fe-=dt,oe.lens[oe.have++]=Vt;else{if(Vt===16){for(bn=dt+2;Fe<bn;){if(Ne===0)break e;Ne--,Le+=Re[H++]<<Fe,Fe+=8}if(Le>>>=dt,Fe-=dt,oe.have===0){we.msg="invalid bit length repeat",oe.mode=pe;break}Mt=oe.lens[oe.have-1],Ke=3+(Le&3),Le>>>=2,Fe-=2}else if(Vt===17){for(bn=dt+3;Fe<bn;){if(Ne===0)break e;Ne--,Le+=Re[H++]<<Fe,Fe+=8}Le>>>=dt,Fe-=dt,Mt=0,Ke=3+(Le&7),Le>>>=3,Fe-=3}else{for(bn=dt+7;Fe<bn;){if(Ne===0)break e;Ne--,Le+=Re[H++]<<Fe,Fe+=8}Le>>>=dt,Fe-=dt,Mt=0,Ke=11+(Le&127),Le>>>=7,Fe-=7}if(oe.have+Ke>oe.nlen+oe.ndist){we.msg="invalid bit length repeat",oe.mode=pe;break}for(;Ke--;)oe.lens[oe.have++]=Mt}}if(oe.mode===pe)break;if(oe.lens[256]===0){we.msg="invalid code -- missing end-of-block",oe.mode=pe;break}if(oe.lenbits=9,zn={bits:oe.lenbits},ln=l(u,oe.lens,0,oe.nlen,oe.lencode,0,oe.work,zn),oe.lenbits=zn.bits,ln){we.msg="invalid literal/lengths set",oe.mode=pe;break}if(oe.distbits=6,oe.distcode=oe.distdyn,zn={bits:oe.distbits},ln=l(c,oe.lens,oe.nlen,oe.ndist,oe.distcode,0,oe.work,zn),oe.distbits=zn.bits,ln){we.msg="invalid distances set",oe.mode=pe;break}if(oe.mode=W,Pe===F)break e;case W:oe.mode=J;case J:if(Ne>=6&&ae>=258){we.next_out=ke,we.avail_out=ae,we.next_in=H,we.avail_in=Ne,oe.hold=Le,oe.bits=Fe,a(we,qe),ke=we.next_out,ze=we.output,ae=we.avail_out,H=we.next_in,Re=we.input,Ne=we.avail_in,Le=oe.hold,Fe=oe.bits,oe.mode===s&&(oe.back=-1);break}for(oe.back=0;wt=oe.lencode[Le&(1<<oe.lenbits)-1],dt=wt>>>24,Pt=wt>>>16&255,Vt=wt&65535,!(dt<=Fe);){if(Ne===0)break e;Ne--,Le+=Re[H++]<<Fe,Fe+=8}if(Pt&&(Pt&240)===0){for(en=dt,kr=Pt,Nr=Vt;wt=oe.lencode[Nr+((Le&(1<<en+kr)-1)>>en)],dt=wt>>>24,Pt=wt>>>16&255,Vt=wt&65535,!(en+dt<=Fe);){if(Ne===0)break e;Ne--,Le+=Re[H++]<<Fe,Fe+=8}Le>>>=en,Fe-=en,oe.back+=en}if(Le>>>=dt,Fe-=dt,oe.back+=dt,oe.length=Vt,Pt===0){oe.mode=ne;break}if(Pt&32){oe.back=-1,oe.mode=s;break}if(Pt&64){we.msg="invalid literal/length code",oe.mode=pe;break}oe.extra=Pt&15,oe.mode=X;case X:if(oe.extra){for(bn=oe.extra;Fe<bn;){if(Ne===0)break e;Ne--,Le+=Re[H++]<<Fe,Fe+=8}oe.length+=Le&(1<<oe.extra)-1,Le>>>=oe.extra,Fe-=oe.extra,oe.back+=oe.extra}oe.was=oe.length,oe.mode=Q;case Q:for(;wt=oe.distcode[Le&(1<<oe.distbits)-1],dt=wt>>>24,Pt=wt>>>16&255,Vt=wt&65535,!(dt<=Fe);){if(Ne===0)break e;Ne--,Le+=Re[H++]<<Fe,Fe+=8}if((Pt&240)===0){for(en=dt,kr=Pt,Nr=Vt;wt=oe.distcode[Nr+((Le&(1<<en+kr)-1)>>en)],dt=wt>>>24,Pt=wt>>>16&255,Vt=wt&65535,!(en+dt<=Fe);){if(Ne===0)break e;Ne--,Le+=Re[H++]<<Fe,Fe+=8}Le>>>=en,Fe-=en,oe.back+=en}if(Le>>>=dt,Fe-=dt,oe.back+=dt,Pt&64){we.msg="invalid distance code",oe.mode=pe;break}oe.offset=Vt,oe.extra=Pt&15,oe.mode=re;case re:if(oe.extra){for(bn=oe.extra;Fe<bn;){if(Ne===0)break e;Ne--,Le+=Re[H++]<<Fe,Fe+=8}oe.offset+=Le&(1<<oe.extra)-1,Le>>>=oe.extra,Fe-=oe.extra,oe.back+=oe.extra}if(oe.offset>oe.dmax){we.msg="invalid distance too far back",oe.mode=pe;break}oe.mode=se;case se:if(ae===0)break e;if(Ke=qe-ae,oe.offset>Ke){if(Ke=oe.offset-Ke,Ke>oe.whave&&oe.sane){we.msg="invalid distance too far back",oe.mode=pe;break}Ke>oe.wnext?(Ke-=oe.wnext,ct=oe.wsize-Ke):ct=oe.wnext-Ke,Ke>oe.length&&(Ke=oe.length),xn=oe.window}else xn=ze,ct=ke-oe.offset,Ke=oe.length;Ke>ae&&(Ke=ae),ae-=Ke,oe.length-=Ke;do ze[ke++]=xn[ct++];while(--Ke);oe.length===0&&(oe.mode=J);break;case ne:if(ae===0)break e;ze[ke++]=oe.length,ae--,oe.mode=J;break;case me:if(oe.wrap){for(;Fe<32;){if(Ne===0)break e;Ne--,Le|=Re[H++]<<Fe,Fe+=8}if(qe-=ae,we.total_out+=qe,oe.total+=qe,qe&&(we.adler=oe.check=oe.flags?n(oe.check,ze,qe,ke-qe):i(oe.check,ze,qe,ke-qe)),qe=ae,(oe.flags?Le:ue(Le))!==oe.check){we.msg="incorrect data check",oe.mode=pe;break}Le=0,Fe=0}oe.mode=ge;case ge:if(oe.wrap&&oe.flags){for(;Fe<32;){if(Ne===0)break e;Ne--,Le+=Re[H++]<<Fe,Fe+=8}if(Le!==(oe.total&4294967295)){we.msg="incorrect length check",oe.mode=pe;break}Le=0,Fe=0}oe.mode=Ae;case Ae:ln=M;break e;case pe:ln=b;break e;case le:return v;case ye:default:return _}return we.next_out=ke,we.avail_out=ae,we.next_in=H,we.avail_in=Ne,oe.hold=Le,oe.bits=Fe,(oe.wsize||qe!==we.avail_out&&oe.mode<pe&&(oe.mode<me||Pe!==w))&&ce(we,we.output,we.next_out,qe-we.avail_out),He-=we.avail_in,qe-=we.avail_out,we.total_in+=He,we.total_out+=qe,oe.total+=qe,oe.wrap&&qe&&(we.adler=oe.check=oe.flags?n(oe.check,ze,qe,we.next_out-qe):i(oe.check,ze,qe,we.next_out-qe)),we.data_type=oe.bits+(oe.last?64:0)+(oe.mode===s?128:0)+(oe.mode===W||oe.mode===I?256:0),(He===0&&qe===0||Pe===w)&&ln===O&&(ln=h),ln}function be(we){if(!we||!we.state)return _;var Pe=we.state;return Pe.window&&(Pe.window=null),we.state=null,O}function Se(we,Pe){var oe;return!we||!we.state||(oe=we.state,(oe.wrap&2)===0)?_:(oe.head=Pe,Pe.done=!1,O)}function Be(we,Pe){var oe=Pe.length,Re,ze,H;return!we||!we.state||(Re=we.state,Re.wrap!==0&&Re.mode!==r)?_:Re.mode===r&&(ze=1,ze=i(ze,Pe,oe,0),ze!==Re.check)?b:(H=ce(we,Pe,oe,oe),H?(Re.mode=le,v):(Re.havedict=1,O))}return Bn.inflateReset=Ce,Bn.inflateReset2=We,Bn.inflateResetKeep=Ie,Bn.inflateInit=ee,Bn.inflateInit2=Ge,Bn.inflate=$,Bn.inflateEnd=be,Bn.inflateGetHeader=Se,Bn.inflateSetDictionary=Be,Bn.inflateInfo="pako inflate (from Nodeca project)",Bn}var ll,qh;function ky(){return qh||(qh=1,ll={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}),ll}var cl,Jh;function wL(){if(Jh)return cl;Jh=1;function e(){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}return cl=e,cl}var Gh;function LL(){if(Gh)return Wr;Gh=1;var e=SL(),i=Vi(),n=Ly(),a=ky(),l=Oc(),d=_y(),u=wL(),c=Object.prototype.toString;function w(O){if(!(this instanceof w))return new w(O);this.options=i.assign({chunkSize:16384,windowBits:0,to:""},O||{});var M=this.options;M.raw&&M.windowBits>=0&&M.windowBits<16&&(M.windowBits=-M.windowBits,M.windowBits===0&&(M.windowBits=-15)),M.windowBits>=0&&M.windowBits<16&&!(O&&O.windowBits)&&(M.windowBits+=32),M.windowBits>15&&M.windowBits<48&&(M.windowBits&15)===0&&(M.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new d,this.strm.avail_out=0;var L=e.inflateInit2(this.strm,M.windowBits);if(L!==a.Z_OK)throw new Error(l[L]);if(this.header=new u,e.inflateGetHeader(this.strm,this.header),M.dictionary&&(typeof M.dictionary=="string"?M.dictionary=n.string2buf(M.dictionary):c.call(M.dictionary)==="[object ArrayBuffer]"&&(M.dictionary=new Uint8Array(M.dictionary)),M.raw&&(L=e.inflateSetDictionary(this.strm,M.dictionary),L!==a.Z_OK)))throw new Error(l[L])}w.prototype.push=function(O,M){var L=this.strm,_=this.options.chunkSize,b=this.options.dictionary,v,h,m,k,B,C=!1;if(this.ended)return!1;h=M===~~M?M:M===!0?a.Z_FINISH:a.Z_NO_FLUSH,typeof O=="string"?L.input=n.binstring2buf(O):c.call(O)==="[object ArrayBuffer]"?L.input=new Uint8Array(O):L.input=O,L.next_in=0,L.avail_in=L.input.length;do{if(L.avail_out===0&&(L.output=new i.Buf8(_),L.next_out=0,L.avail_out=_),v=e.inflate(L,a.Z_NO_FLUSH),v===a.Z_NEED_DICT&&b&&(v=e.inflateSetDictionary(this.strm,b)),v===a.Z_BUF_ERROR&&C===!0&&(v=a.Z_OK,C=!1),v!==a.Z_STREAM_END&&v!==a.Z_OK)return this.onEnd(v),this.ended=!0,!1;L.next_out&&(L.avail_out===0||v===a.Z_STREAM_END||L.avail_in===0&&(h===a.Z_FINISH||h===a.Z_SYNC_FLUSH))&&(this.options.to==="string"?(m=n.utf8border(L.output,L.next_out),k=L.next_out-m,B=n.buf2string(L.output,m),L.next_out=k,L.avail_out=_-k,k&&i.arraySet(L.output,L.output,m,k,0),this.onData(B)):this.onData(i.shrinkBuf(L.output,L.next_out))),L.avail_in===0&&L.avail_out===0&&(C=!0)}while((L.avail_in>0||L.avail_out===0)&&v!==a.Z_STREAM_END);return v===a.Z_STREAM_END&&(h=a.Z_FINISH),h===a.Z_FINISH?(v=e.inflateEnd(this.strm),this.onEnd(v),this.ended=!0,v===a.Z_OK):(h===a.Z_SYNC_FLUSH&&(this.onEnd(a.Z_OK),L.avail_out=0),!0)},w.prototype.onData=function(O){this.chunks.push(O)},w.prototype.onEnd=function(O){O===a.Z_OK&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=i.flattenChunks(this.chunks)),this.chunks=[],this.err=O,this.msg=this.strm.msg};function U(O,M){var L=new w(M);if(L.push(O,!0),L.err)throw L.msg||l[L.err];return L.result}function F(O,M){return M=M||{},M.raw=!0,U(O,M)}return Wr.Inflate=w,Wr.inflate=U,Wr.inflateRaw=F,Wr.ungzip=U,Wr}var fl,Hh;function _L(){if(Hh)return fl;Hh=1;var e=Vi().assign,i=bL(),n=LL(),a=ky(),l={};return e(l,i,n,a),fl=l,fl}var gi={},Kh;function yn(){if(Kh)return gi;Kh=1,Object.defineProperty(gi,"__esModule",{value:!0}),gi.messageAssert=gi.messageError=gi.QuickTypeError=void 0;const e={InternalError:"Internal error: ${message}",MiscJSONParseError:"Syntax error in ${description} JSON ${address}: ${message}",MiscReadError:"Cannot read from file or URL ${fileOrURL}: ${message}",MiscUnicodeHighSurrogateWithoutLowSurrogate:"Malformed unicode: High surrogate not followed by low surrogate",MiscInvalidMinMaxConstraint:"Invalid min-max constraint: ${min}-${max}",InferenceJSONReferenceNotRooted:"JSON reference doesn't start with '#/': ${reference}",InferenceJSONReferenceToUnion:"JSON reference points to a union type: ${reference}",InferenceJSONReferenceWrongProperty:"JSON reference points to a non-existant property: ${reference}",InferenceJSONReferenceInvalidArrayIndex:"JSON reference uses invalid array index: ${reference}",SchemaArrayIsInvalidSchema:"An array is not a valid JSON Schema at ${ref}",SchemaNullIsInvalidSchema:"null is not a valid JSON Schema at ${ref}",SchemaRefMustBeString:"$ref must be a string, but is an ${actual} at ${ref}",SchemaAdditionalTypesForbidRequired:"Can't have non-specified required properties but forbidden additionalTypes at ${ref}",SchemaNoTypeSpecified:"JSON Schema must specify at least one type at ${ref}",SchemaInvalidType:"Invalid type ${type} in JSON Schema at ${ref}",SchemaFalseNotSupported:'Schema "false" is not supported at ${ref}',SchemaInvalidJSONSchemaType:"Value of type ${type} is not valid JSON Schema at ${ref}",SchemaRequiredMustBeStringOrStringArray:"`required` must be string or array of strings, but is ${actual} at ${ref}",SchemaRequiredElementMustBeString:"`required` must contain only strings, but it has ${element}, at ${ref}",SchemaTypeMustBeStringOrStringArray:"`type` must be string or array of strings, but is ${actual}",SchemaTypeElementMustBeString:"`type` must contain only strings, but it has ${element}",SchemaArrayItemsMustBeStringOrArray:"Array items must be an array or an object, but is ${actual}",SchemaIDMustHaveAddress:"$id ${id} doesn't have an address at ${ref}",SchemaWrongAccessorEntryArrayLength:"Accessor entry array must have the same number of entries as the ${operation} at ${ref}",SchemaSetOperationCasesIsNotArray:"${operation} cases must be an array, but is ${cases}, at ${ref}",SchemaMoreThanOneUnionMemberName:"More than one name given for union member: ${names}",SchemaCannotGetTypesFromBoolean:"Schema value to get top-level types from must be an object, but is boolean, at ${ref}",SchemaCannotIndexArrayWithNonNumber:"Trying to index array in schema with key that is not a number, but is ${actual} at ${ref}",SchemaIndexNotInArray:"Index ${index} out of range of schema array at ${ref}",SchemaKeyNotInObject:"Key ${key} not in schema object at ${ref}",SchemaFetchError:"Could not fetch schema ${address}, referred to from ${base}",SchemaFetchErrorTopLevel:"Could not fetch top-level schema ${address}",SchemaFetchErrorAdditional:"Could not fetch additional schema ${address}",GraphQLNoQueriesDefined:"GraphQL file doesn't have any queries defined.",DriverUnknownSourceLanguage:"Unknown source language ${lang}",DriverUnknownOutputLanguage:"Unknown output language ${lang}",DriverMoreThanOneInputGiven:"More than one input given for top-level ${topLevel}",DriverCannotInferNameForSchema:"Cannot infer name for schema ${uri}",DriverNoGraphQLQueryGiven:"Please specify at least one GraphQL query as input",DriverNoGraphQLSchemaInDir:"No GraphQL schema in ${dir}",DriverMoreThanOneGraphQLSchemaInDir:"More than one GraphQL schema in ${dir}",DriverSourceLangMustBeGraphQL:"If a GraphQL schema is specified, the source language must be GraphQL",DriverGraphQLSchemaNeeded:"Please specify a GraphQL schema with --graphql-schema or --graphql-introspect",DriverInputFileDoesNotExist:"Input file ${filename} does not exist",DriverCannotMixJSONWithOtherSamples:"Cannot mix JSON samples with JSON Schems, GraphQL, or TypeScript in input subdirectory ${dir}",DriverCannotMixNonJSONInputs:"Cannot mix JSON Schema, GraphQL, and TypeScript in an input subdirectory ${dir}",DriverUnknownDebugOption:"Unknown debug option ${option}",DriverNoLanguageOrExtension:"Please specify a language (--lang) or an output file extension",DriverCLIOptionParsingFailed:"Option parsing failed: ${message}",IRNoForwardDeclarableTypeInCycle:"Cannot resolve cycle because it doesn't contain types that can be forward declared",IRTypeAttributesNotPropagated:"Type attributes for ${count} types were not carried over to the new graph: ${indexes}",IRNoEmptyUnions:"Trying to make an empty union - do you have an impossible type in your schema?",RendererUnknownOptionValue:"Unknown value ${value} for option ${name}",TypeScriptCompilerError:"TypeScript error: ${message}"};class i extends Error{constructor(d,u,c,w){super(c),this.errorMessage=d,this.messageName=u,this.properties=w}}gi.QuickTypeError=i;function n(l,d){const u=e[l];let c=u;const w=d;for(const U of Object.getOwnPropertyNames(w)){let F=w[U];typeof F=="object"&&typeof F.toString=="function"?F=F.toString():typeof F.message=="string"?F=F.message:typeof F!="string"&&(F=JSON.stringify(F)),c=c.replace("${"+U+"}",F)}throw new i(u,l,c,w)}gi.messageError=n;function a(l,d,u){if(!l)return n(d,u)}return gi.messageAssert=a,gi}const Cc=Symbol.for("yaml.alias"),Tc=Symbol.for("yaml.document"),Hi=Symbol.for("yaml.map"),Ny=Symbol.for("yaml.pair"),ai=Symbol.for("yaml.scalar"),es=Symbol.for("yaml.seq"),Un=Symbol.for("yaml.node.type"),Fi=e=>!!e&&typeof e=="object"&&e[Un]===Cc,Zi=e=>!!e&&typeof e=="object"&&e[Un]===Tc,gr=e=>!!e&&typeof e=="object"&&e[Un]===Hi,kt=e=>!!e&&typeof e=="object"&&e[Un]===Ny,vt=e=>!!e&&typeof e=="object"&&e[Un]===ai,br=e=>!!e&&typeof e=="object"&&e[Un]===es;function Ct(e){if(e&&typeof e=="object")switch(e[Un]){case Hi:case es:return!0}return!1}function Et(e){if(e&&typeof e=="object")switch(e[Un]){case Cc:case Hi:case ai:case es:return!0}return!1}const Oy=e=>(vt(e)||Ct(e))&&!!e.anchor,pn=Symbol("break visit"),Cy=Symbol("skip children"),oi=Symbol("remove node");function Qi(e,i){const n=Ey(i);Zi(e)?Gr(null,e.contents,n,Object.freeze([e]))===oi&&(e.contents=null):Gr(null,e,n,Object.freeze([]))}Qi.BREAK=pn;Qi.SKIP=Cy;Qi.REMOVE=oi;function Gr(e,i,n,a){const l=Ay(e,i,n,a);if(Et(l)||kt(l))return Fy(e,a,l),Gr(e,l,n,a);if(typeof l!="symbol"){if(Ct(i)){a=Object.freeze(a.concat(i));for(let d=0;d<i.items.length;++d){const u=Gr(d,i.items[d],n,a);if(typeof u=="number")d=u-1;else{if(u===pn)return pn;u===oi&&(i.items.splice(d,1),d-=1)}}}else if(kt(i)){a=Object.freeze(a.concat(i));const d=Gr("key",i.key,n,a);if(d===pn)return pn;d===oi&&(i.key=null);const u=Gr("value",i.value,n,a);if(u===pn)return pn;u===oi&&(i.value=null)}}return l}async function $s(e,i){const n=Ey(i);Zi(e)?await Hr(null,e.contents,n,Object.freeze([e]))===oi&&(e.contents=null):await Hr(null,e,n,Object.freeze([]))}$s.BREAK=pn;$s.SKIP=Cy;$s.REMOVE=oi;async function Hr(e,i,n,a){const l=await Ay(e,i,n,a);if(Et(l)||kt(l))return Fy(e,a,l),Hr(e,l,n,a);if(typeof l!="symbol"){if(Ct(i)){a=Object.freeze(a.concat(i));for(let d=0;d<i.items.length;++d){const u=await Hr(d,i.items[d],n,a);if(typeof u=="number")d=u-1;else{if(u===pn)return pn;u===oi&&(i.items.splice(d,1),d-=1)}}}else if(kt(i)){a=Object.freeze(a.concat(i));const d=await Hr("key",i.key,n,a);if(d===pn)return pn;d===oi&&(i.key=null);const u=await Hr("value",i.value,n,a);if(u===pn)return pn;u===oi&&(i.value=null)}}return l}function Ey(e){return typeof e=="object"&&(e.Collection||e.Node||e.Value)?Object.assign({Alias:e.Node,Map:e.Node,Scalar:e.Node,Seq:e.Node},e.Value&&{Map:e.Value,Scalar:e.Value,Seq:e.Value},e.Collection&&{Map:e.Collection,Seq:e.Collection},e):e}function Ay(e,i,n,a){if(typeof n=="function")return n(e,i,a);if(gr(i))return n.Map?.(e,i,a);if(br(i))return n.Seq?.(e,i,a);if(kt(i))return n.Pair?.(e,i,a);if(vt(i))return n.Scalar?.(e,i,a);if(Fi(i))return n.Alias?.(e,i,a)}function Fy(e,i,n){const a=i[i.length-1];if(Ct(a))a.items[e]=n;else if(kt(a))e==="key"?a.key=n:a.value=n;else if(Zi(a))a.contents=n;else{const l=Fi(a)?"alias":"scalar";throw new Error(`Cannot replace node with ${l} parent`)}}const kL={"!":"%21",",":"%2C","[":"%5B","]":"%5D","{":"%7B","}":"%7D"},NL=e=>e.replace(/[!,[\]{}]/g,i=>kL[i]);class un{constructor(i,n){this.docStart=null,this.docEnd=!1,this.yaml=Object.assign({},un.defaultYaml,i),this.tags=Object.assign({},un.defaultTags,n)}clone(){const i=new un(this.yaml,this.tags);return i.docStart=this.docStart,i}atDocument(){const i=new un(this.yaml,this.tags);switch(this.yaml.version){case"1.1":this.atNextDocument=!0;break;case"1.2":this.atNextDocument=!1,this.yaml={explicit:un.defaultYaml.explicit,version:"1.2"},this.tags=Object.assign({},un.defaultTags);break}return i}add(i,n){this.atNextDocument&&(this.yaml={explicit:un.defaultYaml.explicit,version:"1.1"},this.tags=Object.assign({},un.defaultTags),this.atNextDocument=!1);const a=i.trim().split(/[ \t]+/),l=a.shift();switch(l){case"%TAG":{if(a.length!==2&&(n(0,"%TAG directive should contain exactly two parts"),a.length<2))return!1;const[d,u]=a;return this.tags[d]=u,!0}case"%YAML":{if(this.yaml.explicit=!0,a.length!==1)return n(0,"%YAML directive should contain exactly one part"),!1;const[d]=a;if(d==="1.1"||d==="1.2")return this.yaml.version=d,!0;{const u=/^\d+\.\d+$/.test(d);return n(6,`Unsupported YAML version ${d}`,u),!1}}default:return n(0,`Unknown directive ${l}`,!0),!1}}tagName(i,n){if(i==="!")return"!";if(i[0]!=="!")return n(`Not a valid tag: ${i}`),null;if(i[1]==="<"){const u=i.slice(2,-1);return u==="!"||u==="!!"?(n(`Verbatim tags aren't resolved, so ${i} is invalid.`),null):(i[i.length-1]!==">"&&n("Verbatim tags must end with a >"),u)}const[,a,l]=i.match(/^(.*!)([^!]*)$/s);l||n(`The ${i} tag has no suffix`);const d=this.tags[a];if(d)try{return d+decodeURIComponent(l)}catch(u){return n(String(u)),null}return a==="!"?i:(n(`Could not resolve tag: ${i}`),null)}tagString(i){for(const[n,a]of Object.entries(this.tags))if(i.startsWith(a))return n+NL(i.substring(a.length));return i[0]==="!"?i:`!<${i}>`}toString(i){const n=this.yaml.explicit?[`%YAML ${this.yaml.version||"1.2"}`]:[],a=Object.entries(this.tags);let l;if(i&&a.length>0&&Et(i.contents)){const d={};Qi(i.contents,(u,c)=>{Et(c)&&c.tag&&(d[c.tag]=!0)}),l=Object.keys(d)}else l=[];for(const[d,u]of a)d==="!!"&&u==="tag:yaml.org,2002:"||(!i||l.some(c=>c.startsWith(u)))&&n.push(`%TAG ${d} ${u}`);return n.join(`
1
+ import{c as Dn,g as Nc}from"./json-editor-vue-gjlsq8io.js";var $u={},Hn={},vs={},Eh;function et(){return Eh||(Eh=1,(function(e){var i=vs&&vs.__awaiter||function(ee,te,K,j){return new(K||(K=Promise))(function(G,ce){function $(Be){try{Se(j.next(Be))}catch(we){ce(we)}}function be(Be){try{Se(j.throw(Be))}catch(we){ce(we)}}function Se(Be){Be.done?G(Be.value):new K(function(we){we(Be.value)}).then($,be)}Se((j=j.apply(ee,te||[])).next())})};Object.defineProperty(e,"__esModule",{value:!0}),e.hashCodeInit=17;function n(ee){let te=0;for(let K=0;K<ee.length;K++){const j=ee.charCodeAt(K);te=(te<<5)-te+j,te=te&te}return te}e.hashString=n;function a(ee,te){return ee*31+(te|0)|0}e.addHashCode=a;function l(ee,te){return ee!==void 0?ee:te}e.withDefault=l;function d(ee,te){if(ee!==void 0)return te(ee)}e.definedMap=d;function u(ee,te,K){return l(d(ee,K),te)}e.definedMapWithDefault=u;function c(ee,te){return ee==null?!1:Object.prototype.hasOwnProperty.call(ee,te)}e.hasOwnProperty=c;function w(ee,te){for(const K of ee)if(te(K))return K}e.iterableFind=w;function U(ee,te){for(const K of ee)if(!te(K))return!1;return!0}e.iterableEvery=U;function F(ee,te){for(const K of ee)if(te(K))return!0;return!1}e.iterableSome=F;function O(ee){for(const te of ee)return te}e.iterableFirst=O;function M(ee){let te;for(const K of ee)(te===void 0||K>te)&&(te=K);return te}e.iterableMax=M;function L(ee,te){let K,j;for(const G of ee){const ce=te(G);(K===void 0||ce<K)&&(K=ce,j=G)}return j}e.iterableMinBy=L;function _(ee,te,K){let j=te;for(const G of ee)j=K(j,G);return j}e.iterableReduce=_;function*b(ee){let te=0;for(const K of ee)yield[te,K],te+=1}e.iterableEnumerate=b;function*v(ee,te){let K=0;for(const j of ee)K>=te?yield j:K+=1}e.iterableSkip=v;function h(ee,te){const K=ee.length;if(!(te>K))return ee[K-te]}e.arrayGetFromEnd=h;function m(ee){return h(ee,1)}e.arrayLast=m;function k(ee){const te=ee.length;if(te===0)throw new Error("Cannot pop empty array");return ee.slice(0,te-1)}e.arrayPop=k;function B(ee,te){const K=[];for(const j of te)K.length>0&&K.push(ee),K.push(j);return K}e.arrayIntercalate=B;function C(ee,te){return i(this,void 0,void 0,function*(){const K=[];let j=0;for(const G of ee)K.push(yield te(G,j)),j+=1;return K})}e.arrayMapSync=C;function R(ee,te){return ee<te?-1:ee>te?1:0}function A(ee,te){return ee.sort((K,j)=>R(te(K),te(j)))}e.arraySortByInto=A;function f(ee){return Array.isArray(ee)?ee:Array.from(ee)}e.toReadonlyArray=f;function E(ee,te){const K=new Map;for(const[j,G]of ee)K.set(j,te(G,j));return K}e.mapMap=E;function S(ee){for(const te of ee.values())return te}e.mapFirst=S;function P(ee,te){for(const K of ee.values())if(K===te)return!0;return!1}e.mapContains=P;function y(ee,te){for(const[K,j]of ee)if(te(j,K))return!0;return!1}e.mapSome=y;function r(ee,te){for(const[K,j]of te)ee.set(K,j);return ee}e.mapMergeInto=r;function s(ee,te){const K=new Map(ee);return r(K,te),K}e.mapMerge=s;function p(ee,te,K){for(const[j,G]of K){const ce=ee.get(j),$=ce===void 0?G:te(ce,G,j);ee.set(j,$)}return ee}e.mapMergeWithInto=p;function g(ee,te,K){const j=new Map(ee);return p(j,te,K),j}e.mapMergeWith=g;function I(ee,te){const K=new Map;for(const[j,G]of ee)te(G,j)&&K.set(j,G);return K}e.mapFilter=I;function x(ee,te){const K=new Map;for(const[j,G]of ee){const ce=te(G,j);ce!==void 0&&K.set(j,ce)}return K}e.mapFilterMap=x;function q(ee,te){return A(Array.from(ee),([K,j])=>te(j,K))}e.mapSortToArray=q;function T(ee,te){return new Map(q(ee,te))}e.mapSortBy=T;function D(ee){return T(ee,(te,K)=>K)}e.mapSortByKey=D;function W(ee,te){const K=new Map;for(const[j,G]of ee){const[ce,$]=te(G,j);K.set(ce,$)}return K}e.mapMapEntries=W;function J(ee,te,K){return ee.set(te,K(ee.get(te))),ee}e.mapUpdateInto=J;function X(ee){const te=new Map;for(const K of Object.getOwnPropertyNames(ee))te.set(K,ee[K]);return te}e.mapFromObject=X;function Q(ee){const te={};for(const[K,j]of ee)te[K]=j;return te}e.mapToObject=Q;function re(ee,te){const K=new Map;for(const j of ee)K.set(j,te(j));return K}e.mapFromIterable=re;function se(ee,te){for(const[K,j]of ee)if(te(j,K))return j}e.mapFind=se;function ne(ee){const te=new Map;for(const K of ee)for(const[j,G]of K){let ce=te.get(j);ce===void 0&&(ce=[],te.set(j,ce)),ce.push(G)}return te}e.mapTranspose=ne;function me(ee,te){return i(this,void 0,void 0,function*(){const K=new Map;for(const[j,G]of ee)K.set(j,yield te(G,j));return K})}e.mapMapSync=me;function ge(ee,te){for(const K of te)if(!ee.has(K))return!1;return!0}e.setIsSuperset=ge;function Ae(ee,te){for(const K of te)for(const j of K)ee.add(j);return ee}e.setUnionManyInto=Ae;function pe(ee,...te){return Ae(ee,te)}e.setUnionInto=pe;function le(ee,te){const K=new Set;for(const j of ee)te.has(j)&&K.add(j);return K}e.setIntersect=le;function ye(ee,te){const K=new Set(ee);for(const j of te)K.delete(j);return K}e.setSubtract=ye;function de(...ee){const te=new Set;return pe(te,...ee),te}e.setUnion=de;function Y(ee,te){const K=new Set;for(const j of ee)K.add(te(j));return K}e.setMap=Y;function z(ee,te){const K=new Set;for(const j of ee)te(j)&&K.add(j);return K}e.setFilter=z;function V(ee,te){const K=new Set;for(const j of ee){const G=te(j);G!==void 0&&K.add(G)}return K}e.setFilterMap=V;function ue(ee,te){return new Set(A(Array.from(ee),te))}e.setSortBy=ue;function Te(ee,te){const K=new Map;for(const j of ee){const G=te(j);let ce=K.get(G);ce===void 0&&(ce=new Set,K.set(G,ce)),ce.add(j)}return K}e.setGroupBy=Te;function Ie(ee){return ee instanceof Set?ee:new Set(ee)}e.toReadonlySet=Ie;class Ce{constructor(){this._map=new Map}set(te,K){let j=Ge(te)|0;for(;;){const G=this._map.get(j);if(G===void 0){this._map.set(j,[te,K]);return}if(We(te,G[0])){G[1]=K;return}j=j+1|0}}get(te){let K=Ge(te)|0;for(;;){const j=this._map.get(K);if(j===void 0)return;if(We(te,j[0]))return j[1];K=K+1|0}}has(te){return this.get(te)!==void 0}*values(){for(const[,[,te]]of this._map)yield te}}e.EqualityMap=Ce;function We(ee,te){if(ee===te)return!0;if(ee===void 0||te===void 0||ee===null||te===null)return!1;if(typeof ee.equals=="function"&&typeof te.equals=="function")return ee.equals(te);if(ee instanceof Set&&te instanceof Set){if(ee.size!==te.size)return!1;for(const K of ee)if(!te.has(K))return!1;return!0}if(ee instanceof Map&&te instanceof Map){if(ee.size!==te.size)return!1;for(const[K,j]of ee){const G=te.get(K);if(!We(j,G))return!1}return!0}if(Array.isArray(ee)&&Array.isArray(te)){const K=ee.length;if(K!==te.length)return!1;for(let j=0;j<K;j++)if(!We(ee[j],te[j]))return!1;return!0}return!1}e.areEqual=We;function Ge(ee){if(typeof ee=="number")return ee|0;if(typeof ee=="string")return n(ee);let te=e.hashCodeInit;if(ee===void 0)return te;if(ee===!0)return te+1|0;if(ee===!1)return te+2|0;if(ee===null)return te+3|0;if(typeof ee.hashCode=="function")return ee.hashCode();if(ee instanceof Set){for(const K of ee)te+=Ge(K);return te}if(ee instanceof Map){let K=e.hashCodeInit;for(const[j,G]of ee)K+=Ge(j),te+=Ge(G);return a(K,te)}if(Array.isArray(ee)){for(const K of ee)te=a(te,Ge(K));return te}throw new Error(`Cannot hash ${ee}`)}e.hashCodeOf=Ge})(vs)),vs}var el={},Ss={},tl={},rt={},la={exports:{}},pL=la.exports,Ah;function mL(){return Ah||(Ah=1,(function(e,i){(function(n,a){e.exports=a()})(typeof self<"u"?self:typeof window<"u"?window:typeof Dn<"u"?Dn:pL,function(){var n="3.7.7",a=n,l=typeof Buffer=="function",d=typeof TextDecoder=="function"?new TextDecoder:void 0,u=typeof TextEncoder=="function"?new TextEncoder:void 0,c="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",w=Array.prototype.slice.call(c),U=(function(Q){var re={};return Q.forEach(function(se,ne){return re[se]=ne}),re})(w),F=/^(?:[A-Za-z\d+\/]{4})*?(?:[A-Za-z\d+\/]{2}(?:==)?|[A-Za-z\d+\/]{3}=?)?$/,O=String.fromCharCode.bind(String),M=typeof Uint8Array.from=="function"?Uint8Array.from.bind(Uint8Array):function(Q){return new Uint8Array(Array.prototype.slice.call(Q,0))},L=function(Q){return Q.replace(/=/g,"").replace(/[+\/]/g,function(re){return re=="+"?"-":"_"})},_=function(Q){return Q.replace(/[^A-Za-z0-9\+\/]/g,"")},b=function(Q){for(var re,se,ne,me,ge="",Ae=Q.length%3,pe=0;pe<Q.length;){if((se=Q.charCodeAt(pe++))>255||(ne=Q.charCodeAt(pe++))>255||(me=Q.charCodeAt(pe++))>255)throw new TypeError("invalid character found");re=se<<16|ne<<8|me,ge+=w[re>>18&63]+w[re>>12&63]+w[re>>6&63]+w[re&63]}return Ae?ge.slice(0,Ae-3)+"===".substring(Ae):ge},v=typeof btoa=="function"?function(Q){return btoa(Q)}:l?function(Q){return Buffer.from(Q,"binary").toString("base64")}:b,h=l?function(Q){return Buffer.from(Q).toString("base64")}:function(Q){for(var re=4096,se=[],ne=0,me=Q.length;ne<me;ne+=re)se.push(O.apply(null,Q.subarray(ne,ne+re)));return v(se.join(""))},m=function(Q,re){return re===void 0&&(re=!1),re?L(h(Q)):h(Q)},k=function(Q){if(Q.length<2){var re=Q.charCodeAt(0);return re<128?Q:re<2048?O(192|re>>>6)+O(128|re&63):O(224|re>>>12&15)+O(128|re>>>6&63)+O(128|re&63)}else{var re=65536+(Q.charCodeAt(0)-55296)*1024+(Q.charCodeAt(1)-56320);return O(240|re>>>18&7)+O(128|re>>>12&63)+O(128|re>>>6&63)+O(128|re&63)}},B=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,C=function(Q){return Q.replace(B,k)},R=l?function(Q){return Buffer.from(Q,"utf8").toString("base64")}:u?function(Q){return h(u.encode(Q))}:function(Q){return v(C(Q))},A=function(Q,re){return re===void 0&&(re=!1),re?L(R(Q)):R(Q)},f=function(Q){return A(Q,!0)},E=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,S=function(Q){switch(Q.length){case 4:var re=(7&Q.charCodeAt(0))<<18|(63&Q.charCodeAt(1))<<12|(63&Q.charCodeAt(2))<<6|63&Q.charCodeAt(3),se=re-65536;return O((se>>>10)+55296)+O((se&1023)+56320);case 3:return O((15&Q.charCodeAt(0))<<12|(63&Q.charCodeAt(1))<<6|63&Q.charCodeAt(2));default:return O((31&Q.charCodeAt(0))<<6|63&Q.charCodeAt(1))}},P=function(Q){return Q.replace(E,S)},y=function(Q){if(Q=Q.replace(/\s+/g,""),!F.test(Q))throw new TypeError("malformed base64.");Q+="==".slice(2-(Q.length&3));for(var re,se="",ne,me,ge=0;ge<Q.length;)re=U[Q.charAt(ge++)]<<18|U[Q.charAt(ge++)]<<12|(ne=U[Q.charAt(ge++)])<<6|(me=U[Q.charAt(ge++)]),se+=ne===64?O(re>>16&255):me===64?O(re>>16&255,re>>8&255):O(re>>16&255,re>>8&255,re&255);return se},r=typeof atob=="function"?function(Q){return atob(_(Q))}:l?function(Q){return Buffer.from(Q,"base64").toString("binary")}:y,s=l?function(Q){return M(Buffer.from(Q,"base64"))}:function(Q){return M(r(Q).split("").map(function(re){return re.charCodeAt(0)}))},p=function(Q){return s(I(Q))},g=l?function(Q){return Buffer.from(Q,"base64").toString("utf8")}:d?function(Q){return d.decode(s(Q))}:function(Q){return P(r(Q))},I=function(Q){return _(Q.replace(/[-_]/g,function(re){return re=="-"?"+":"/"}))},x=function(Q){return g(I(Q))},q=function(Q){if(typeof Q!="string")return!1;var re=Q.replace(/\s+/g,"").replace(/={0,2}$/,"");return!/[^\s0-9a-zA-Z\+/]/.test(re)||!/[^\s0-9a-zA-Z\-_]/.test(re)},T=function(Q){return{value:Q,enumerable:!1,writable:!0,configurable:!0}},D=function(){var Q=function(re,se){return Object.defineProperty(String.prototype,re,T(se))};Q("fromBase64",function(){return x(this)}),Q("toBase64",function(re){return A(this,re)}),Q("toBase64URI",function(){return A(this,!0)}),Q("toBase64URL",function(){return A(this,!0)}),Q("toUint8Array",function(){return p(this)})},W=function(){var Q=function(re,se){return Object.defineProperty(Uint8Array.prototype,re,T(se))};Q("toBase64",function(re){return m(this,re)}),Q("toBase64URI",function(){return m(this,!0)}),Q("toBase64URL",function(){return m(this,!0)})},J=function(){D(),W()},X={version:n,VERSION:a,atob:r,atobPolyfill:y,btoa:v,btoaPolyfill:b,fromBase64:x,toBase64:A,encode:A,encodeURI:f,encodeURL:f,utob:C,btou:P,decode:x,isValid:q,fromUint8Array:m,toUint8Array:p,extendString:D,extendUint8Array:W,extendBuiltins:J};return X.Base64={},Object.keys(X).forEach(function(Q){return X.Base64[Q]=X[Q]}),X})})(la)),la.exports}var nl={},Fh;function Vi(){return Fh||(Fh=1,(function(e){var i=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Int32Array<"u";function n(d,u){return Object.prototype.hasOwnProperty.call(d,u)}e.assign=function(d){for(var u=Array.prototype.slice.call(arguments,1);u.length;){var c=u.shift();if(c){if(typeof c!="object")throw new TypeError(c+"must be non-object");for(var w in c)n(c,w)&&(d[w]=c[w])}}return d},e.shrinkBuf=function(d,u){return d.length===u?d:d.subarray?d.subarray(0,u):(d.length=u,d)};var a={arraySet:function(d,u,c,w,U){if(u.subarray&&d.subarray){d.set(u.subarray(c,c+w),U);return}for(var F=0;F<w;F++)d[U+F]=u[c+F]},flattenChunks:function(d){var u,c,w,U,F,O;for(w=0,u=0,c=d.length;u<c;u++)w+=d[u].length;for(O=new Uint8Array(w),U=0,u=0,c=d.length;u<c;u++)F=d[u],O.set(F,U),U+=F.length;return O}},l={arraySet:function(d,u,c,w,U){for(var F=0;F<w;F++)d[U+F]=u[c+F]},flattenChunks:function(d){return[].concat.apply([],d)}};e.setTyped=function(d){d?(e.Buf8=Uint8Array,e.Buf16=Uint16Array,e.Buf32=Int32Array,e.assign(e,a)):(e.Buf8=Array,e.Buf16=Array,e.Buf32=Array,e.assign(e,l))},e.setTyped(i)})(nl)),nl}var zr={},Kn={},or={},Ph;function yL(){if(Ph)return or;Ph=1;var e=Vi(),i=4,n=0,a=1,l=2;function d($){for(var be=$.length;--be>=0;)$[be]=0}var u=0,c=1,w=2,U=3,F=258,O=29,M=256,L=M+1+O,_=30,b=19,v=2*L+1,h=15,m=16,k=7,B=256,C=16,R=17,A=18,f=[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],E=[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],S=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],P=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],y=512,r=new Array((L+2)*2);d(r);var s=new Array(_*2);d(s);var p=new Array(y);d(p);var g=new Array(F-U+1);d(g);var I=new Array(O);d(I);var x=new Array(_);d(x);function q($,be,Se,Be,we){this.static_tree=$,this.extra_bits=be,this.extra_base=Se,this.elems=Be,this.max_length=we,this.has_stree=$&&$.length}var T,D,W;function J($,be){this.dyn_tree=$,this.max_code=0,this.stat_desc=be}function X($){return $<256?p[$]:p[256+($>>>7)]}function Q($,be){$.pending_buf[$.pending++]=be&255,$.pending_buf[$.pending++]=be>>>8&255}function re($,be,Se){$.bi_valid>m-Se?($.bi_buf|=be<<$.bi_valid&65535,Q($,$.bi_buf),$.bi_buf=be>>m-$.bi_valid,$.bi_valid+=Se-m):($.bi_buf|=be<<$.bi_valid&65535,$.bi_valid+=Se)}function se($,be,Se){re($,Se[be*2],Se[be*2+1])}function ne($,be){var Se=0;do Se|=$&1,$>>>=1,Se<<=1;while(--be>0);return Se>>>1}function me($){$.bi_valid===16?(Q($,$.bi_buf),$.bi_buf=0,$.bi_valid=0):$.bi_valid>=8&&($.pending_buf[$.pending++]=$.bi_buf&255,$.bi_buf>>=8,$.bi_valid-=8)}function ge($,be){var Se=be.dyn_tree,Be=be.max_code,we=be.stat_desc.static_tree,Pe=be.stat_desc.has_stree,oe=be.stat_desc.extra_bits,Re=be.stat_desc.extra_base,ze=be.stat_desc.max_length,H,ke,Ne,ae,Le,Fe,He=0;for(ae=0;ae<=h;ae++)$.bl_count[ae]=0;for(Se[$.heap[$.heap_max]*2+1]=0,H=$.heap_max+1;H<v;H++)ke=$.heap[H],ae=Se[Se[ke*2+1]*2+1]+1,ae>ze&&(ae=ze,He++),Se[ke*2+1]=ae,!(ke>Be)&&($.bl_count[ae]++,Le=0,ke>=Re&&(Le=oe[ke-Re]),Fe=Se[ke*2],$.opt_len+=Fe*(ae+Le),Pe&&($.static_len+=Fe*(we[ke*2+1]+Le)));if(He!==0){do{for(ae=ze-1;$.bl_count[ae]===0;)ae--;$.bl_count[ae]--,$.bl_count[ae+1]+=2,$.bl_count[ze]--,He-=2}while(He>0);for(ae=ze;ae!==0;ae--)for(ke=$.bl_count[ae];ke!==0;)Ne=$.heap[--H],!(Ne>Be)&&(Se[Ne*2+1]!==ae&&($.opt_len+=(ae-Se[Ne*2+1])*Se[Ne*2],Se[Ne*2+1]=ae),ke--)}}function Ae($,be,Se){var Be=new Array(h+1),we=0,Pe,oe;for(Pe=1;Pe<=h;Pe++)Be[Pe]=we=we+Se[Pe-1]<<1;for(oe=0;oe<=be;oe++){var Re=$[oe*2+1];Re!==0&&($[oe*2]=ne(Be[Re]++,Re))}}function pe(){var $,be,Se,Be,we,Pe=new Array(h+1);for(Se=0,Be=0;Be<O-1;Be++)for(I[Be]=Se,$=0;$<1<<f[Be];$++)g[Se++]=Be;for(g[Se-1]=Be,we=0,Be=0;Be<16;Be++)for(x[Be]=we,$=0;$<1<<E[Be];$++)p[we++]=Be;for(we>>=7;Be<_;Be++)for(x[Be]=we<<7,$=0;$<1<<E[Be]-7;$++)p[256+we++]=Be;for(be=0;be<=h;be++)Pe[be]=0;for($=0;$<=143;)r[$*2+1]=8,$++,Pe[8]++;for(;$<=255;)r[$*2+1]=9,$++,Pe[9]++;for(;$<=279;)r[$*2+1]=7,$++,Pe[7]++;for(;$<=287;)r[$*2+1]=8,$++,Pe[8]++;for(Ae(r,L+1,Pe),$=0;$<_;$++)s[$*2+1]=5,s[$*2]=ne($,5);T=new q(r,f,M+1,L,h),D=new q(s,E,0,_,h),W=new q(new Array(0),S,0,b,k)}function le($){var be;for(be=0;be<L;be++)$.dyn_ltree[be*2]=0;for(be=0;be<_;be++)$.dyn_dtree[be*2]=0;for(be=0;be<b;be++)$.bl_tree[be*2]=0;$.dyn_ltree[B*2]=1,$.opt_len=$.static_len=0,$.last_lit=$.matches=0}function ye($){$.bi_valid>8?Q($,$.bi_buf):$.bi_valid>0&&($.pending_buf[$.pending++]=$.bi_buf),$.bi_buf=0,$.bi_valid=0}function de($,be,Se,Be){ye($),Q($,Se),Q($,~Se),e.arraySet($.pending_buf,$.window,be,Se,$.pending),$.pending+=Se}function Y($,be,Se,Be){var we=be*2,Pe=Se*2;return $[we]<$[Pe]||$[we]===$[Pe]&&Be[be]<=Be[Se]}function z($,be,Se){for(var Be=$.heap[Se],we=Se<<1;we<=$.heap_len&&(we<$.heap_len&&Y(be,$.heap[we+1],$.heap[we],$.depth)&&we++,!Y(be,Be,$.heap[we],$.depth));)$.heap[Se]=$.heap[we],Se=we,we<<=1;$.heap[Se]=Be}function V($,be,Se){var Be,we,Pe=0,oe,Re;if($.last_lit!==0)do Be=$.pending_buf[$.d_buf+Pe*2]<<8|$.pending_buf[$.d_buf+Pe*2+1],we=$.pending_buf[$.l_buf+Pe],Pe++,Be===0?se($,we,be):(oe=g[we],se($,oe+M+1,be),Re=f[oe],Re!==0&&(we-=I[oe],re($,we,Re)),Be--,oe=X(Be),se($,oe,Se),Re=E[oe],Re!==0&&(Be-=x[oe],re($,Be,Re)));while(Pe<$.last_lit);se($,B,be)}function ue($,be){var Se=be.dyn_tree,Be=be.stat_desc.static_tree,we=be.stat_desc.has_stree,Pe=be.stat_desc.elems,oe,Re,ze=-1,H;for($.heap_len=0,$.heap_max=v,oe=0;oe<Pe;oe++)Se[oe*2]!==0?($.heap[++$.heap_len]=ze=oe,$.depth[oe]=0):Se[oe*2+1]=0;for(;$.heap_len<2;)H=$.heap[++$.heap_len]=ze<2?++ze:0,Se[H*2]=1,$.depth[H]=0,$.opt_len--,we&&($.static_len-=Be[H*2+1]);for(be.max_code=ze,oe=$.heap_len>>1;oe>=1;oe--)z($,Se,oe);H=Pe;do oe=$.heap[1],$.heap[1]=$.heap[$.heap_len--],z($,Se,1),Re=$.heap[1],$.heap[--$.heap_max]=oe,$.heap[--$.heap_max]=Re,Se[H*2]=Se[oe*2]+Se[Re*2],$.depth[H]=($.depth[oe]>=$.depth[Re]?$.depth[oe]:$.depth[Re])+1,Se[oe*2+1]=Se[Re*2+1]=H,$.heap[1]=H++,z($,Se,1);while($.heap_len>=2);$.heap[--$.heap_max]=$.heap[1],ge($,be),Ae(Se,ze,$.bl_count)}function Te($,be,Se){var Be,we=-1,Pe,oe=be[1],Re=0,ze=7,H=4;for(oe===0&&(ze=138,H=3),be[(Se+1)*2+1]=65535,Be=0;Be<=Se;Be++)Pe=oe,oe=be[(Be+1)*2+1],!(++Re<ze&&Pe===oe)&&(Re<H?$.bl_tree[Pe*2]+=Re:Pe!==0?(Pe!==we&&$.bl_tree[Pe*2]++,$.bl_tree[C*2]++):Re<=10?$.bl_tree[R*2]++:$.bl_tree[A*2]++,Re=0,we=Pe,oe===0?(ze=138,H=3):Pe===oe?(ze=6,H=3):(ze=7,H=4))}function Ie($,be,Se){var Be,we=-1,Pe,oe=be[1],Re=0,ze=7,H=4;for(oe===0&&(ze=138,H=3),Be=0;Be<=Se;Be++)if(Pe=oe,oe=be[(Be+1)*2+1],!(++Re<ze&&Pe===oe)){if(Re<H)do se($,Pe,$.bl_tree);while(--Re!==0);else Pe!==0?(Pe!==we&&(se($,Pe,$.bl_tree),Re--),se($,C,$.bl_tree),re($,Re-3,2)):Re<=10?(se($,R,$.bl_tree),re($,Re-3,3)):(se($,A,$.bl_tree),re($,Re-11,7));Re=0,we=Pe,oe===0?(ze=138,H=3):Pe===oe?(ze=6,H=3):(ze=7,H=4)}}function Ce($){var be;for(Te($,$.dyn_ltree,$.l_desc.max_code),Te($,$.dyn_dtree,$.d_desc.max_code),ue($,$.bl_desc),be=b-1;be>=3&&$.bl_tree[P[be]*2+1]===0;be--);return $.opt_len+=3*(be+1)+5+5+4,be}function We($,be,Se,Be){var we;for(re($,be-257,5),re($,Se-1,5),re($,Be-4,4),we=0;we<Be;we++)re($,$.bl_tree[P[we]*2+1],3);Ie($,$.dyn_ltree,be-1),Ie($,$.dyn_dtree,Se-1)}function Ge($){var be=4093624447,Se;for(Se=0;Se<=31;Se++,be>>>=1)if(be&1&&$.dyn_ltree[Se*2]!==0)return n;if($.dyn_ltree[18]!==0||$.dyn_ltree[20]!==0||$.dyn_ltree[26]!==0)return a;for(Se=32;Se<M;Se++)if($.dyn_ltree[Se*2]!==0)return a;return n}var ee=!1;function te($){ee||(pe(),ee=!0),$.l_desc=new J($.dyn_ltree,T),$.d_desc=new J($.dyn_dtree,D),$.bl_desc=new J($.bl_tree,W),$.bi_buf=0,$.bi_valid=0,le($)}function K($,be,Se,Be){re($,(u<<1)+(Be?1:0),3),de($,be,Se)}function j($){re($,c<<1,3),se($,B,r),me($)}function G($,be,Se,Be){var we,Pe,oe=0;$.level>0?($.strm.data_type===l&&($.strm.data_type=Ge($)),ue($,$.l_desc),ue($,$.d_desc),oe=Ce($),we=$.opt_len+3+7>>>3,Pe=$.static_len+3+7>>>3,Pe<=we&&(we=Pe)):we=Pe=Se+5,Se+4<=we&&be!==-1?K($,be,Se,Be):$.strategy===i||Pe===we?(re($,(c<<1)+(Be?1:0),3),V($,r,s)):(re($,(w<<1)+(Be?1:0),3),We($,$.l_desc.max_code+1,$.d_desc.max_code+1,oe+1),V($,$.dyn_ltree,$.dyn_dtree)),le($),Be&&ye($)}function ce($,be,Se){return $.pending_buf[$.d_buf+$.last_lit*2]=be>>>8&255,$.pending_buf[$.d_buf+$.last_lit*2+1]=be&255,$.pending_buf[$.l_buf+$.last_lit]=Se&255,$.last_lit++,be===0?$.dyn_ltree[Se*2]++:($.matches++,be--,$.dyn_ltree[(g[Se]+M+1)*2]++,$.dyn_dtree[X(be)*2]++),$.last_lit===$.lit_bufsize-1}return or._tr_init=te,or._tr_stored_block=K,or._tr_flush_block=G,or._tr_tally=ce,or._tr_align=j,or}var il,Ih;function Sy(){if(Ih)return il;Ih=1;function e(i,n,a,l){for(var d=i&65535|0,u=i>>>16&65535|0,c=0;a!==0;){c=a>2e3?2e3:a,a-=c;do d=d+n[l++]|0,u=u+d|0;while(--c);d%=65521,u%=65521}return d|u<<16|0}return il=e,il}var rl,Rh;function wy(){if(Rh)return rl;Rh=1;function e(){for(var a,l=[],d=0;d<256;d++){a=d;for(var u=0;u<8;u++)a=a&1?3988292384^a>>>1:a>>>1;l[d]=a}return l}var i=e();function n(a,l,d,u){var c=i,w=u+d;a^=-1;for(var U=u;U<w;U++)a=a>>>8^c[(a^l[U])&255];return a^-1}return rl=n,rl}var sl,Mh;function Oc(){return Mh||(Mh=1,sl={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"}),sl}var Bh;function gL(){if(Bh)return Kn;Bh=1;var e=Vi(),i=yL(),n=Sy(),a=wy(),l=Oc(),d=0,u=1,c=3,w=4,U=5,F=0,O=1,M=-2,L=-3,_=-5,b=-1,v=1,h=2,m=3,k=4,B=0,C=2,R=8,A=9,f=15,E=8,S=29,P=256,y=P+1+S,r=30,s=19,p=2*y+1,g=15,I=3,x=258,q=x+I+1,T=32,D=42,W=69,J=73,X=91,Q=103,re=113,se=666,ne=1,me=2,ge=3,Ae=4,pe=3;function le(H,ke){return H.msg=l[ke],ke}function ye(H){return(H<<1)-(H>4?9:0)}function de(H){for(var ke=H.length;--ke>=0;)H[ke]=0}function Y(H){var ke=H.state,Ne=ke.pending;Ne>H.avail_out&&(Ne=H.avail_out),Ne!==0&&(e.arraySet(H.output,ke.pending_buf,ke.pending_out,Ne,H.next_out),H.next_out+=Ne,ke.pending_out+=Ne,H.total_out+=Ne,H.avail_out-=Ne,ke.pending-=Ne,ke.pending===0&&(ke.pending_out=0))}function z(H,ke){i._tr_flush_block(H,H.block_start>=0?H.block_start:-1,H.strstart-H.block_start,ke),H.block_start=H.strstart,Y(H.strm)}function V(H,ke){H.pending_buf[H.pending++]=ke}function ue(H,ke){H.pending_buf[H.pending++]=ke>>>8&255,H.pending_buf[H.pending++]=ke&255}function Te(H,ke,Ne,ae){var Le=H.avail_in;return Le>ae&&(Le=ae),Le===0?0:(H.avail_in-=Le,e.arraySet(ke,H.input,H.next_in,Le,Ne),H.state.wrap===1?H.adler=n(H.adler,ke,Le,Ne):H.state.wrap===2&&(H.adler=a(H.adler,ke,Le,Ne)),H.next_in+=Le,H.total_in+=Le,Le)}function Ie(H,ke){var Ne=H.max_chain_length,ae=H.strstart,Le,Fe,He=H.prev_length,qe=H.nice_match,Ke=H.strstart>H.w_size-q?H.strstart-(H.w_size-q):0,ct=H.window,xn=H.w_mask,wt=H.prev,dt=H.strstart+x,Pt=ct[ae+He-1],Vt=ct[ae+He];H.prev_length>=H.good_match&&(Ne>>=2),qe>H.lookahead&&(qe=H.lookahead);do if(Le=ke,!(ct[Le+He]!==Vt||ct[Le+He-1]!==Pt||ct[Le]!==ct[ae]||ct[++Le]!==ct[ae+1])){ae+=2,Le++;do;while(ct[++ae]===ct[++Le]&&ct[++ae]===ct[++Le]&&ct[++ae]===ct[++Le]&&ct[++ae]===ct[++Le]&&ct[++ae]===ct[++Le]&&ct[++ae]===ct[++Le]&&ct[++ae]===ct[++Le]&&ct[++ae]===ct[++Le]&&ae<dt);if(Fe=x-(dt-ae),ae=dt-x,Fe>He){if(H.match_start=ke,He=Fe,Fe>=qe)break;Pt=ct[ae+He-1],Vt=ct[ae+He]}}while((ke=wt[ke&xn])>Ke&&--Ne!==0);return He<=H.lookahead?He:H.lookahead}function Ce(H){var ke=H.w_size,Ne,ae,Le,Fe,He;do{if(Fe=H.window_size-H.lookahead-H.strstart,H.strstart>=ke+(ke-q)){e.arraySet(H.window,H.window,ke,ke,0),H.match_start-=ke,H.strstart-=ke,H.block_start-=ke,ae=H.hash_size,Ne=ae;do Le=H.head[--Ne],H.head[Ne]=Le>=ke?Le-ke:0;while(--ae);ae=ke,Ne=ae;do Le=H.prev[--Ne],H.prev[Ne]=Le>=ke?Le-ke:0;while(--ae);Fe+=ke}if(H.strm.avail_in===0)break;if(ae=Te(H.strm,H.window,H.strstart+H.lookahead,Fe),H.lookahead+=ae,H.lookahead+H.insert>=I)for(He=H.strstart-H.insert,H.ins_h=H.window[He],H.ins_h=(H.ins_h<<H.hash_shift^H.window[He+1])&H.hash_mask;H.insert&&(H.ins_h=(H.ins_h<<H.hash_shift^H.window[He+I-1])&H.hash_mask,H.prev[He&H.w_mask]=H.head[H.ins_h],H.head[H.ins_h]=He,He++,H.insert--,!(H.lookahead+H.insert<I)););}while(H.lookahead<q&&H.strm.avail_in!==0)}function We(H,ke){var Ne=65535;for(Ne>H.pending_buf_size-5&&(Ne=H.pending_buf_size-5);;){if(H.lookahead<=1){if(Ce(H),H.lookahead===0&&ke===d)return ne;if(H.lookahead===0)break}H.strstart+=H.lookahead,H.lookahead=0;var ae=H.block_start+Ne;if((H.strstart===0||H.strstart>=ae)&&(H.lookahead=H.strstart-ae,H.strstart=ae,z(H,!1),H.strm.avail_out===0)||H.strstart-H.block_start>=H.w_size-q&&(z(H,!1),H.strm.avail_out===0))return ne}return H.insert=0,ke===w?(z(H,!0),H.strm.avail_out===0?ge:Ae):(H.strstart>H.block_start&&(z(H,!1),H.strm.avail_out===0),ne)}function Ge(H,ke){for(var Ne,ae;;){if(H.lookahead<q){if(Ce(H),H.lookahead<q&&ke===d)return ne;if(H.lookahead===0)break}if(Ne=0,H.lookahead>=I&&(H.ins_h=(H.ins_h<<H.hash_shift^H.window[H.strstart+I-1])&H.hash_mask,Ne=H.prev[H.strstart&H.w_mask]=H.head[H.ins_h],H.head[H.ins_h]=H.strstart),Ne!==0&&H.strstart-Ne<=H.w_size-q&&(H.match_length=Ie(H,Ne)),H.match_length>=I)if(ae=i._tr_tally(H,H.strstart-H.match_start,H.match_length-I),H.lookahead-=H.match_length,H.match_length<=H.max_lazy_match&&H.lookahead>=I){H.match_length--;do H.strstart++,H.ins_h=(H.ins_h<<H.hash_shift^H.window[H.strstart+I-1])&H.hash_mask,Ne=H.prev[H.strstart&H.w_mask]=H.head[H.ins_h],H.head[H.ins_h]=H.strstart;while(--H.match_length!==0);H.strstart++}else H.strstart+=H.match_length,H.match_length=0,H.ins_h=H.window[H.strstart],H.ins_h=(H.ins_h<<H.hash_shift^H.window[H.strstart+1])&H.hash_mask;else ae=i._tr_tally(H,0,H.window[H.strstart]),H.lookahead--,H.strstart++;if(ae&&(z(H,!1),H.strm.avail_out===0))return ne}return H.insert=H.strstart<I-1?H.strstart:I-1,ke===w?(z(H,!0),H.strm.avail_out===0?ge:Ae):H.last_lit&&(z(H,!1),H.strm.avail_out===0)?ne:me}function ee(H,ke){for(var Ne,ae,Le;;){if(H.lookahead<q){if(Ce(H),H.lookahead<q&&ke===d)return ne;if(H.lookahead===0)break}if(Ne=0,H.lookahead>=I&&(H.ins_h=(H.ins_h<<H.hash_shift^H.window[H.strstart+I-1])&H.hash_mask,Ne=H.prev[H.strstart&H.w_mask]=H.head[H.ins_h],H.head[H.ins_h]=H.strstart),H.prev_length=H.match_length,H.prev_match=H.match_start,H.match_length=I-1,Ne!==0&&H.prev_length<H.max_lazy_match&&H.strstart-Ne<=H.w_size-q&&(H.match_length=Ie(H,Ne),H.match_length<=5&&(H.strategy===v||H.match_length===I&&H.strstart-H.match_start>4096)&&(H.match_length=I-1)),H.prev_length>=I&&H.match_length<=H.prev_length){Le=H.strstart+H.lookahead-I,ae=i._tr_tally(H,H.strstart-1-H.prev_match,H.prev_length-I),H.lookahead-=H.prev_length-1,H.prev_length-=2;do++H.strstart<=Le&&(H.ins_h=(H.ins_h<<H.hash_shift^H.window[H.strstart+I-1])&H.hash_mask,Ne=H.prev[H.strstart&H.w_mask]=H.head[H.ins_h],H.head[H.ins_h]=H.strstart);while(--H.prev_length!==0);if(H.match_available=0,H.match_length=I-1,H.strstart++,ae&&(z(H,!1),H.strm.avail_out===0))return ne}else if(H.match_available){if(ae=i._tr_tally(H,0,H.window[H.strstart-1]),ae&&z(H,!1),H.strstart++,H.lookahead--,H.strm.avail_out===0)return ne}else H.match_available=1,H.strstart++,H.lookahead--}return H.match_available&&(ae=i._tr_tally(H,0,H.window[H.strstart-1]),H.match_available=0),H.insert=H.strstart<I-1?H.strstart:I-1,ke===w?(z(H,!0),H.strm.avail_out===0?ge:Ae):H.last_lit&&(z(H,!1),H.strm.avail_out===0)?ne:me}function te(H,ke){for(var Ne,ae,Le,Fe,He=H.window;;){if(H.lookahead<=x){if(Ce(H),H.lookahead<=x&&ke===d)return ne;if(H.lookahead===0)break}if(H.match_length=0,H.lookahead>=I&&H.strstart>0&&(Le=H.strstart-1,ae=He[Le],ae===He[++Le]&&ae===He[++Le]&&ae===He[++Le])){Fe=H.strstart+x;do;while(ae===He[++Le]&&ae===He[++Le]&&ae===He[++Le]&&ae===He[++Le]&&ae===He[++Le]&&ae===He[++Le]&&ae===He[++Le]&&ae===He[++Le]&&Le<Fe);H.match_length=x-(Fe-Le),H.match_length>H.lookahead&&(H.match_length=H.lookahead)}if(H.match_length>=I?(Ne=i._tr_tally(H,1,H.match_length-I),H.lookahead-=H.match_length,H.strstart+=H.match_length,H.match_length=0):(Ne=i._tr_tally(H,0,H.window[H.strstart]),H.lookahead--,H.strstart++),Ne&&(z(H,!1),H.strm.avail_out===0))return ne}return H.insert=0,ke===w?(z(H,!0),H.strm.avail_out===0?ge:Ae):H.last_lit&&(z(H,!1),H.strm.avail_out===0)?ne:me}function K(H,ke){for(var Ne;;){if(H.lookahead===0&&(Ce(H),H.lookahead===0)){if(ke===d)return ne;break}if(H.match_length=0,Ne=i._tr_tally(H,0,H.window[H.strstart]),H.lookahead--,H.strstart++,Ne&&(z(H,!1),H.strm.avail_out===0))return ne}return H.insert=0,ke===w?(z(H,!0),H.strm.avail_out===0?ge:Ae):H.last_lit&&(z(H,!1),H.strm.avail_out===0)?ne:me}function j(H,ke,Ne,ae,Le){this.good_length=H,this.max_lazy=ke,this.nice_length=Ne,this.max_chain=ae,this.func=Le}var G;G=[new j(0,0,0,0,We),new j(4,4,8,4,Ge),new j(4,5,16,8,Ge),new j(4,6,32,32,Ge),new j(4,4,16,16,ee),new j(8,16,32,32,ee),new j(8,16,128,128,ee),new j(8,32,128,256,ee),new j(32,128,258,1024,ee),new j(32,258,258,4096,ee)];function ce(H){H.window_size=2*H.w_size,de(H.head),H.max_lazy_match=G[H.level].max_lazy,H.good_match=G[H.level].good_length,H.nice_match=G[H.level].nice_length,H.max_chain_length=G[H.level].max_chain,H.strstart=0,H.block_start=0,H.lookahead=0,H.insert=0,H.match_length=H.prev_length=I-1,H.match_available=0,H.ins_h=0}function $(){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=R,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 e.Buf16(p*2),this.dyn_dtree=new e.Buf16((2*r+1)*2),this.bl_tree=new e.Buf16((2*s+1)*2),de(this.dyn_ltree),de(this.dyn_dtree),de(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new e.Buf16(g+1),this.heap=new e.Buf16(2*y+1),de(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new e.Buf16(2*y+1),de(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 be(H){var ke;return!H||!H.state?le(H,M):(H.total_in=H.total_out=0,H.data_type=C,ke=H.state,ke.pending=0,ke.pending_out=0,ke.wrap<0&&(ke.wrap=-ke.wrap),ke.status=ke.wrap?D:re,H.adler=ke.wrap===2?0:1,ke.last_flush=d,i._tr_init(ke),F)}function Se(H){var ke=be(H);return ke===F&&ce(H.state),ke}function Be(H,ke){return!H||!H.state||H.state.wrap!==2?M:(H.state.gzhead=ke,F)}function we(H,ke,Ne,ae,Le,Fe){if(!H)return M;var He=1;if(ke===b&&(ke=6),ae<0?(He=0,ae=-ae):ae>15&&(He=2,ae-=16),Le<1||Le>A||Ne!==R||ae<8||ae>15||ke<0||ke>9||Fe<0||Fe>k)return le(H,M);ae===8&&(ae=9);var qe=new $;return H.state=qe,qe.strm=H,qe.wrap=He,qe.gzhead=null,qe.w_bits=ae,qe.w_size=1<<qe.w_bits,qe.w_mask=qe.w_size-1,qe.hash_bits=Le+7,qe.hash_size=1<<qe.hash_bits,qe.hash_mask=qe.hash_size-1,qe.hash_shift=~~((qe.hash_bits+I-1)/I),qe.window=new e.Buf8(qe.w_size*2),qe.head=new e.Buf16(qe.hash_size),qe.prev=new e.Buf16(qe.w_size),qe.lit_bufsize=1<<Le+6,qe.pending_buf_size=qe.lit_bufsize*4,qe.pending_buf=new e.Buf8(qe.pending_buf_size),qe.d_buf=1*qe.lit_bufsize,qe.l_buf=3*qe.lit_bufsize,qe.level=ke,qe.strategy=Fe,qe.method=Ne,Se(H)}function Pe(H,ke){return we(H,ke,R,f,E,B)}function oe(H,ke){var Ne,ae,Le,Fe;if(!H||!H.state||ke>U||ke<0)return H?le(H,M):M;if(ae=H.state,!H.output||!H.input&&H.avail_in!==0||ae.status===se&&ke!==w)return le(H,H.avail_out===0?_:M);if(ae.strm=H,Ne=ae.last_flush,ae.last_flush=ke,ae.status===D)if(ae.wrap===2)H.adler=0,V(ae,31),V(ae,139),V(ae,8),ae.gzhead?(V(ae,(ae.gzhead.text?1:0)+(ae.gzhead.hcrc?2:0)+(ae.gzhead.extra?4:0)+(ae.gzhead.name?8:0)+(ae.gzhead.comment?16:0)),V(ae,ae.gzhead.time&255),V(ae,ae.gzhead.time>>8&255),V(ae,ae.gzhead.time>>16&255),V(ae,ae.gzhead.time>>24&255),V(ae,ae.level===9?2:ae.strategy>=h||ae.level<2?4:0),V(ae,ae.gzhead.os&255),ae.gzhead.extra&&ae.gzhead.extra.length&&(V(ae,ae.gzhead.extra.length&255),V(ae,ae.gzhead.extra.length>>8&255)),ae.gzhead.hcrc&&(H.adler=a(H.adler,ae.pending_buf,ae.pending,0)),ae.gzindex=0,ae.status=W):(V(ae,0),V(ae,0),V(ae,0),V(ae,0),V(ae,0),V(ae,ae.level===9?2:ae.strategy>=h||ae.level<2?4:0),V(ae,pe),ae.status=re);else{var He=R+(ae.w_bits-8<<4)<<8,qe=-1;ae.strategy>=h||ae.level<2?qe=0:ae.level<6?qe=1:ae.level===6?qe=2:qe=3,He|=qe<<6,ae.strstart!==0&&(He|=T),He+=31-He%31,ae.status=re,ue(ae,He),ae.strstart!==0&&(ue(ae,H.adler>>>16),ue(ae,H.adler&65535)),H.adler=1}if(ae.status===W)if(ae.gzhead.extra){for(Le=ae.pending;ae.gzindex<(ae.gzhead.extra.length&65535)&&!(ae.pending===ae.pending_buf_size&&(ae.gzhead.hcrc&&ae.pending>Le&&(H.adler=a(H.adler,ae.pending_buf,ae.pending-Le,Le)),Y(H),Le=ae.pending,ae.pending===ae.pending_buf_size));)V(ae,ae.gzhead.extra[ae.gzindex]&255),ae.gzindex++;ae.gzhead.hcrc&&ae.pending>Le&&(H.adler=a(H.adler,ae.pending_buf,ae.pending-Le,Le)),ae.gzindex===ae.gzhead.extra.length&&(ae.gzindex=0,ae.status=J)}else ae.status=J;if(ae.status===J)if(ae.gzhead.name){Le=ae.pending;do{if(ae.pending===ae.pending_buf_size&&(ae.gzhead.hcrc&&ae.pending>Le&&(H.adler=a(H.adler,ae.pending_buf,ae.pending-Le,Le)),Y(H),Le=ae.pending,ae.pending===ae.pending_buf_size)){Fe=1;break}ae.gzindex<ae.gzhead.name.length?Fe=ae.gzhead.name.charCodeAt(ae.gzindex++)&255:Fe=0,V(ae,Fe)}while(Fe!==0);ae.gzhead.hcrc&&ae.pending>Le&&(H.adler=a(H.adler,ae.pending_buf,ae.pending-Le,Le)),Fe===0&&(ae.gzindex=0,ae.status=X)}else ae.status=X;if(ae.status===X)if(ae.gzhead.comment){Le=ae.pending;do{if(ae.pending===ae.pending_buf_size&&(ae.gzhead.hcrc&&ae.pending>Le&&(H.adler=a(H.adler,ae.pending_buf,ae.pending-Le,Le)),Y(H),Le=ae.pending,ae.pending===ae.pending_buf_size)){Fe=1;break}ae.gzindex<ae.gzhead.comment.length?Fe=ae.gzhead.comment.charCodeAt(ae.gzindex++)&255:Fe=0,V(ae,Fe)}while(Fe!==0);ae.gzhead.hcrc&&ae.pending>Le&&(H.adler=a(H.adler,ae.pending_buf,ae.pending-Le,Le)),Fe===0&&(ae.status=Q)}else ae.status=Q;if(ae.status===Q&&(ae.gzhead.hcrc?(ae.pending+2>ae.pending_buf_size&&Y(H),ae.pending+2<=ae.pending_buf_size&&(V(ae,H.adler&255),V(ae,H.adler>>8&255),H.adler=0,ae.status=re)):ae.status=re),ae.pending!==0){if(Y(H),H.avail_out===0)return ae.last_flush=-1,F}else if(H.avail_in===0&&ye(ke)<=ye(Ne)&&ke!==w)return le(H,_);if(ae.status===se&&H.avail_in!==0)return le(H,_);if(H.avail_in!==0||ae.lookahead!==0||ke!==d&&ae.status!==se){var Ke=ae.strategy===h?K(ae,ke):ae.strategy===m?te(ae,ke):G[ae.level].func(ae,ke);if((Ke===ge||Ke===Ae)&&(ae.status=se),Ke===ne||Ke===ge)return H.avail_out===0&&(ae.last_flush=-1),F;if(Ke===me&&(ke===u?i._tr_align(ae):ke!==U&&(i._tr_stored_block(ae,0,0,!1),ke===c&&(de(ae.head),ae.lookahead===0&&(ae.strstart=0,ae.block_start=0,ae.insert=0))),Y(H),H.avail_out===0))return ae.last_flush=-1,F}return ke!==w?F:ae.wrap<=0?O:(ae.wrap===2?(V(ae,H.adler&255),V(ae,H.adler>>8&255),V(ae,H.adler>>16&255),V(ae,H.adler>>24&255),V(ae,H.total_in&255),V(ae,H.total_in>>8&255),V(ae,H.total_in>>16&255),V(ae,H.total_in>>24&255)):(ue(ae,H.adler>>>16),ue(ae,H.adler&65535)),Y(H),ae.wrap>0&&(ae.wrap=-ae.wrap),ae.pending!==0?F:O)}function Re(H){var ke;return!H||!H.state?M:(ke=H.state.status,ke!==D&&ke!==W&&ke!==J&&ke!==X&&ke!==Q&&ke!==re&&ke!==se?le(H,M):(H.state=null,ke===re?le(H,L):F))}function ze(H,ke){var Ne=ke.length,ae,Le,Fe,He,qe,Ke,ct,xn;if(!H||!H.state||(ae=H.state,He=ae.wrap,He===2||He===1&&ae.status!==D||ae.lookahead))return M;for(He===1&&(H.adler=n(H.adler,ke,Ne,0)),ae.wrap=0,Ne>=ae.w_size&&(He===0&&(de(ae.head),ae.strstart=0,ae.block_start=0,ae.insert=0),xn=new e.Buf8(ae.w_size),e.arraySet(xn,ke,Ne-ae.w_size,ae.w_size,0),ke=xn,Ne=ae.w_size),qe=H.avail_in,Ke=H.next_in,ct=H.input,H.avail_in=Ne,H.next_in=0,H.input=ke,Ce(ae);ae.lookahead>=I;){Le=ae.strstart,Fe=ae.lookahead-(I-1);do ae.ins_h=(ae.ins_h<<ae.hash_shift^ae.window[Le+I-1])&ae.hash_mask,ae.prev[Le&ae.w_mask]=ae.head[ae.ins_h],ae.head[ae.ins_h]=Le,Le++;while(--Fe);ae.strstart=Le,ae.lookahead=I-1,Ce(ae)}return ae.strstart+=ae.lookahead,ae.block_start=ae.strstart,ae.insert=ae.lookahead,ae.lookahead=0,ae.match_length=ae.prev_length=I-1,ae.match_available=0,H.next_in=Ke,H.input=ct,H.avail_in=qe,ae.wrap=He,F}return Kn.deflateInit=Pe,Kn.deflateInit2=we,Kn.deflateReset=Se,Kn.deflateResetKeep=be,Kn.deflateSetHeader=Be,Kn.deflate=oe,Kn.deflateEnd=Re,Kn.deflateSetDictionary=ze,Kn.deflateInfo="pako deflate (from Nodeca project)",Kn}var ar={},Dh;function Ly(){if(Dh)return ar;Dh=1;var e=Vi(),i=!0,n=!0;try{String.fromCharCode.apply(null,[0])}catch{i=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch{n=!1}for(var a=new e.Buf8(256),l=0;l<256;l++)a[l]=l>=252?6:l>=248?5:l>=240?4:l>=224?3:l>=192?2:1;a[254]=a[254]=1,ar.string2buf=function(u){var c,w,U,F,O,M=u.length,L=0;for(F=0;F<M;F++)w=u.charCodeAt(F),(w&64512)===55296&&F+1<M&&(U=u.charCodeAt(F+1),(U&64512)===56320&&(w=65536+(w-55296<<10)+(U-56320),F++)),L+=w<128?1:w<2048?2:w<65536?3:4;for(c=new e.Buf8(L),O=0,F=0;O<L;F++)w=u.charCodeAt(F),(w&64512)===55296&&F+1<M&&(U=u.charCodeAt(F+1),(U&64512)===56320&&(w=65536+(w-55296<<10)+(U-56320),F++)),w<128?c[O++]=w:w<2048?(c[O++]=192|w>>>6,c[O++]=128|w&63):w<65536?(c[O++]=224|w>>>12,c[O++]=128|w>>>6&63,c[O++]=128|w&63):(c[O++]=240|w>>>18,c[O++]=128|w>>>12&63,c[O++]=128|w>>>6&63,c[O++]=128|w&63);return c};function d(u,c){if(c<65534&&(u.subarray&&n||!u.subarray&&i))return String.fromCharCode.apply(null,e.shrinkBuf(u,c));for(var w="",U=0;U<c;U++)w+=String.fromCharCode(u[U]);return w}return ar.buf2binstring=function(u){return d(u,u.length)},ar.binstring2buf=function(u){for(var c=new e.Buf8(u.length),w=0,U=c.length;w<U;w++)c[w]=u.charCodeAt(w);return c},ar.buf2string=function(u,c){var w,U,F,O,M=c||u.length,L=new Array(M*2);for(U=0,w=0;w<M;){if(F=u[w++],F<128){L[U++]=F;continue}if(O=a[F],O>4){L[U++]=65533,w+=O-1;continue}for(F&=O===2?31:O===3?15:7;O>1&&w<M;)F=F<<6|u[w++]&63,O--;if(O>1){L[U++]=65533;continue}F<65536?L[U++]=F:(F-=65536,L[U++]=55296|F>>10&1023,L[U++]=56320|F&1023)}return d(L,U)},ar.utf8border=function(u,c){var w;for(c=c||u.length,c>u.length&&(c=u.length),w=c-1;w>=0&&(u[w]&192)===128;)w--;return w<0||w===0?c:w+a[u[w]]>c?w:c},ar}var ol,jh;function _y(){if(jh)return ol;jh=1;function e(){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}return ol=e,ol}var Uh;function bL(){if(Uh)return zr;Uh=1;var e=gL(),i=Vi(),n=Ly(),a=Oc(),l=_y(),d=Object.prototype.toString,u=0,c=4,w=0,U=1,F=2,O=-1,M=0,L=8;function _(m){if(!(this instanceof _))return new _(m);this.options=i.assign({level:O,method:L,chunkSize:16384,windowBits:15,memLevel:8,strategy:M,to:""},m||{});var k=this.options;k.raw&&k.windowBits>0?k.windowBits=-k.windowBits:k.gzip&&k.windowBits>0&&k.windowBits<16&&(k.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new l,this.strm.avail_out=0;var B=e.deflateInit2(this.strm,k.level,k.method,k.windowBits,k.memLevel,k.strategy);if(B!==w)throw new Error(a[B]);if(k.header&&e.deflateSetHeader(this.strm,k.header),k.dictionary){var C;if(typeof k.dictionary=="string"?C=n.string2buf(k.dictionary):d.call(k.dictionary)==="[object ArrayBuffer]"?C=new Uint8Array(k.dictionary):C=k.dictionary,B=e.deflateSetDictionary(this.strm,C),B!==w)throw new Error(a[B]);this._dict_set=!0}}_.prototype.push=function(m,k){var B=this.strm,C=this.options.chunkSize,R,A;if(this.ended)return!1;A=k===~~k?k:k===!0?c:u,typeof m=="string"?B.input=n.string2buf(m):d.call(m)==="[object ArrayBuffer]"?B.input=new Uint8Array(m):B.input=m,B.next_in=0,B.avail_in=B.input.length;do{if(B.avail_out===0&&(B.output=new i.Buf8(C),B.next_out=0,B.avail_out=C),R=e.deflate(B,A),R!==U&&R!==w)return this.onEnd(R),this.ended=!0,!1;(B.avail_out===0||B.avail_in===0&&(A===c||A===F))&&(this.options.to==="string"?this.onData(n.buf2binstring(i.shrinkBuf(B.output,B.next_out))):this.onData(i.shrinkBuf(B.output,B.next_out)))}while((B.avail_in>0||B.avail_out===0)&&R!==U);return A===c?(R=e.deflateEnd(this.strm),this.onEnd(R),this.ended=!0,R===w):(A===F&&(this.onEnd(w),B.avail_out=0),!0)},_.prototype.onData=function(m){this.chunks.push(m)},_.prototype.onEnd=function(m){m===w&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=i.flattenChunks(this.chunks)),this.chunks=[],this.err=m,this.msg=this.strm.msg};function b(m,k){var B=new _(k);if(B.push(m,!0),B.err)throw B.msg||a[B.err];return B.result}function v(m,k){return k=k||{},k.raw=!0,b(m,k)}function h(m,k){return k=k||{},k.gzip=!0,b(m,k)}return zr.Deflate=_,zr.deflate=b,zr.deflateRaw=v,zr.gzip=h,zr}var Wr={},Bn={},al,xh;function TL(){if(xh)return al;xh=1;var e=30,i=12;return al=function(a,l){var d,u,c,w,U,F,O,M,L,_,b,v,h,m,k,B,C,R,A,f,E,S,P,y,r;d=a.state,u=a.next_in,y=a.input,c=u+(a.avail_in-5),w=a.next_out,r=a.output,U=w-(l-a.avail_out),F=w+(a.avail_out-257),O=d.dmax,M=d.wsize,L=d.whave,_=d.wnext,b=d.window,v=d.hold,h=d.bits,m=d.lencode,k=d.distcode,B=(1<<d.lenbits)-1,C=(1<<d.distbits)-1;e:do{h<15&&(v+=y[u++]<<h,h+=8,v+=y[u++]<<h,h+=8),R=m[v&B];t:for(;;){if(A=R>>>24,v>>>=A,h-=A,A=R>>>16&255,A===0)r[w++]=R&65535;else if(A&16){f=R&65535,A&=15,A&&(h<A&&(v+=y[u++]<<h,h+=8),f+=v&(1<<A)-1,v>>>=A,h-=A),h<15&&(v+=y[u++]<<h,h+=8,v+=y[u++]<<h,h+=8),R=k[v&C];n:for(;;){if(A=R>>>24,v>>>=A,h-=A,A=R>>>16&255,A&16){if(E=R&65535,A&=15,h<A&&(v+=y[u++]<<h,h+=8,h<A&&(v+=y[u++]<<h,h+=8)),E+=v&(1<<A)-1,E>O){a.msg="invalid distance too far back",d.mode=e;break e}if(v>>>=A,h-=A,A=w-U,E>A){if(A=E-A,A>L&&d.sane){a.msg="invalid distance too far back",d.mode=e;break e}if(S=0,P=b,_===0){if(S+=M-A,A<f){f-=A;do r[w++]=b[S++];while(--A);S=w-E,P=r}}else if(_<A){if(S+=M+_-A,A-=_,A<f){f-=A;do r[w++]=b[S++];while(--A);if(S=0,_<f){A=_,f-=A;do r[w++]=b[S++];while(--A);S=w-E,P=r}}}else if(S+=_-A,A<f){f-=A;do r[w++]=b[S++];while(--A);S=w-E,P=r}for(;f>2;)r[w++]=P[S++],r[w++]=P[S++],r[w++]=P[S++],f-=3;f&&(r[w++]=P[S++],f>1&&(r[w++]=P[S++]))}else{S=w-E;do r[w++]=r[S++],r[w++]=r[S++],r[w++]=r[S++],f-=3;while(f>2);f&&(r[w++]=r[S++],f>1&&(r[w++]=r[S++]))}}else if((A&64)===0){R=k[(R&65535)+(v&(1<<A)-1)];continue n}else{a.msg="invalid distance code",d.mode=e;break e}break}}else if((A&64)===0){R=m[(R&65535)+(v&(1<<A)-1)];continue t}else if(A&32){d.mode=i;break e}else{a.msg="invalid literal/length code",d.mode=e;break e}break}}while(u<c&&w<F);f=h>>3,u-=f,h-=f<<3,v&=(1<<h)-1,a.next_in=u,a.next_out=w,a.avail_in=u<c?5+(c-u):5-(u-c),a.avail_out=w<F?257+(F-w):257-(w-F),d.hold=v,d.bits=h},al}var ul,zh;function vL(){if(zh)return ul;zh=1;var e=Vi(),i=15,n=852,a=592,l=0,d=1,u=2,c=[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],w=[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],U=[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],F=[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];return ul=function(M,L,_,b,v,h,m,k){var B=k.bits,C=0,R=0,A=0,f=0,E=0,S=0,P=0,y=0,r=0,s=0,p,g,I,x,q,T=null,D=0,W,J=new e.Buf16(i+1),X=new e.Buf16(i+1),Q=null,re=0,se,ne,me;for(C=0;C<=i;C++)J[C]=0;for(R=0;R<b;R++)J[L[_+R]]++;for(E=B,f=i;f>=1&&J[f]===0;f--);if(E>f&&(E=f),f===0)return v[h++]=1<<24|64<<16|0,v[h++]=1<<24|64<<16|0,k.bits=1,0;for(A=1;A<f&&J[A]===0;A++);for(E<A&&(E=A),y=1,C=1;C<=i;C++)if(y<<=1,y-=J[C],y<0)return-1;if(y>0&&(M===l||f!==1))return-1;for(X[1]=0,C=1;C<i;C++)X[C+1]=X[C]+J[C];for(R=0;R<b;R++)L[_+R]!==0&&(m[X[L[_+R]]++]=R);if(M===l?(T=Q=m,W=19):M===d?(T=c,D-=257,Q=w,re-=257,W=256):(T=U,Q=F,W=-1),s=0,R=0,C=A,q=h,S=E,P=0,I=-1,r=1<<E,x=r-1,M===d&&r>n||M===u&&r>a)return 1;for(;;){se=C-P,m[R]<W?(ne=0,me=m[R]):m[R]>W?(ne=Q[re+m[R]],me=T[D+m[R]]):(ne=96,me=0),p=1<<C-P,g=1<<S,A=g;do g-=p,v[q+(s>>P)+g]=se<<24|ne<<16|me|0;while(g!==0);for(p=1<<C-1;s&p;)p>>=1;if(p!==0?(s&=p-1,s+=p):s=0,R++,--J[C]===0){if(C===f)break;C=L[_+m[R]]}if(C>E&&(s&x)!==I){for(P===0&&(P=E),q+=A,S=C-P,y=1<<S;S+P<f&&(y-=J[S+P],!(y<=0));)S++,y<<=1;if(r+=1<<S,M===d&&r>n||M===u&&r>a)return 1;I=s&x,v[I]=E<<24|S<<16|q-h|0}}return s!==0&&(v[q+s]=C-P<<24|64<<16|0),k.bits=E,0},ul}var Wh;function SL(){if(Wh)return Bn;Wh=1;var e=Vi(),i=Sy(),n=wy(),a=TL(),l=vL(),d=0,u=1,c=2,w=4,U=5,F=6,O=0,M=1,L=2,_=-2,b=-3,v=-4,h=-5,m=8,k=1,B=2,C=3,R=4,A=5,f=6,E=7,S=8,P=9,y=10,r=11,s=12,p=13,g=14,I=15,x=16,q=17,T=18,D=19,W=20,J=21,X=22,Q=23,re=24,se=25,ne=26,me=27,ge=28,Ae=29,pe=30,le=31,ye=32,de=852,Y=592,z=15,V=z;function ue(we){return(we>>>24&255)+(we>>>8&65280)+((we&65280)<<8)+((we&255)<<24)}function Te(){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 e.Buf16(320),this.work=new e.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function Ie(we){var Pe;return!we||!we.state?_:(Pe=we.state,we.total_in=we.total_out=Pe.total=0,we.msg="",Pe.wrap&&(we.adler=Pe.wrap&1),Pe.mode=k,Pe.last=0,Pe.havedict=0,Pe.dmax=32768,Pe.head=null,Pe.hold=0,Pe.bits=0,Pe.lencode=Pe.lendyn=new e.Buf32(de),Pe.distcode=Pe.distdyn=new e.Buf32(Y),Pe.sane=1,Pe.back=-1,O)}function Ce(we){var Pe;return!we||!we.state?_:(Pe=we.state,Pe.wsize=0,Pe.whave=0,Pe.wnext=0,Ie(we))}function We(we,Pe){var oe,Re;return!we||!we.state||(Re=we.state,Pe<0?(oe=0,Pe=-Pe):(oe=(Pe>>4)+1,Pe<48&&(Pe&=15)),Pe&&(Pe<8||Pe>15))?_:(Re.window!==null&&Re.wbits!==Pe&&(Re.window=null),Re.wrap=oe,Re.wbits=Pe,Ce(we))}function Ge(we,Pe){var oe,Re;return we?(Re=new Te,we.state=Re,Re.window=null,oe=We(we,Pe),oe!==O&&(we.state=null),oe):_}function ee(we){return Ge(we,V)}var te=!0,K,j;function G(we){if(te){var Pe;for(K=new e.Buf32(512),j=new e.Buf32(32),Pe=0;Pe<144;)we.lens[Pe++]=8;for(;Pe<256;)we.lens[Pe++]=9;for(;Pe<280;)we.lens[Pe++]=7;for(;Pe<288;)we.lens[Pe++]=8;for(l(u,we.lens,0,288,K,0,we.work,{bits:9}),Pe=0;Pe<32;)we.lens[Pe++]=5;l(c,we.lens,0,32,j,0,we.work,{bits:5}),te=!1}we.lencode=K,we.lenbits=9,we.distcode=j,we.distbits=5}function ce(we,Pe,oe,Re){var ze,H=we.state;return H.window===null&&(H.wsize=1<<H.wbits,H.wnext=0,H.whave=0,H.window=new e.Buf8(H.wsize)),Re>=H.wsize?(e.arraySet(H.window,Pe,oe-H.wsize,H.wsize,0),H.wnext=0,H.whave=H.wsize):(ze=H.wsize-H.wnext,ze>Re&&(ze=Re),e.arraySet(H.window,Pe,oe-Re,ze,H.wnext),Re-=ze,Re?(e.arraySet(H.window,Pe,oe-Re,Re,0),H.wnext=Re,H.whave=H.wsize):(H.wnext+=ze,H.wnext===H.wsize&&(H.wnext=0),H.whave<H.wsize&&(H.whave+=ze))),0}function $(we,Pe){var oe,Re,ze,H,ke,Ne,ae,Le,Fe,He,qe,Ke,ct,xn,wt=0,dt,Pt,Vt,en,kr,Nr,Mt,ln,Jt=new e.Buf8(4),zn,bn,ao=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!we||!we.state||!we.output||!we.input&&we.avail_in!==0)return _;oe=we.state,oe.mode===s&&(oe.mode=p),ke=we.next_out,ze=we.output,ae=we.avail_out,H=we.next_in,Re=we.input,Ne=we.avail_in,Le=oe.hold,Fe=oe.bits,He=Ne,qe=ae,ln=O;e:for(;;)switch(oe.mode){case k:if(oe.wrap===0){oe.mode=p;break}for(;Fe<16;){if(Ne===0)break e;Ne--,Le+=Re[H++]<<Fe,Fe+=8}if(oe.wrap&2&&Le===35615){oe.check=0,Jt[0]=Le&255,Jt[1]=Le>>>8&255,oe.check=n(oe.check,Jt,2,0),Le=0,Fe=0,oe.mode=B;break}if(oe.flags=0,oe.head&&(oe.head.done=!1),!(oe.wrap&1)||(((Le&255)<<8)+(Le>>8))%31){we.msg="incorrect header check",oe.mode=pe;break}if((Le&15)!==m){we.msg="unknown compression method",oe.mode=pe;break}if(Le>>>=4,Fe-=4,Mt=(Le&15)+8,oe.wbits===0)oe.wbits=Mt;else if(Mt>oe.wbits){we.msg="invalid window size",oe.mode=pe;break}oe.dmax=1<<Mt,we.adler=oe.check=1,oe.mode=Le&512?y:s,Le=0,Fe=0;break;case B:for(;Fe<16;){if(Ne===0)break e;Ne--,Le+=Re[H++]<<Fe,Fe+=8}if(oe.flags=Le,(oe.flags&255)!==m){we.msg="unknown compression method",oe.mode=pe;break}if(oe.flags&57344){we.msg="unknown header flags set",oe.mode=pe;break}oe.head&&(oe.head.text=Le>>8&1),oe.flags&512&&(Jt[0]=Le&255,Jt[1]=Le>>>8&255,oe.check=n(oe.check,Jt,2,0)),Le=0,Fe=0,oe.mode=C;case C:for(;Fe<32;){if(Ne===0)break e;Ne--,Le+=Re[H++]<<Fe,Fe+=8}oe.head&&(oe.head.time=Le),oe.flags&512&&(Jt[0]=Le&255,Jt[1]=Le>>>8&255,Jt[2]=Le>>>16&255,Jt[3]=Le>>>24&255,oe.check=n(oe.check,Jt,4,0)),Le=0,Fe=0,oe.mode=R;case R:for(;Fe<16;){if(Ne===0)break e;Ne--,Le+=Re[H++]<<Fe,Fe+=8}oe.head&&(oe.head.xflags=Le&255,oe.head.os=Le>>8),oe.flags&512&&(Jt[0]=Le&255,Jt[1]=Le>>>8&255,oe.check=n(oe.check,Jt,2,0)),Le=0,Fe=0,oe.mode=A;case A:if(oe.flags&1024){for(;Fe<16;){if(Ne===0)break e;Ne--,Le+=Re[H++]<<Fe,Fe+=8}oe.length=Le,oe.head&&(oe.head.extra_len=Le),oe.flags&512&&(Jt[0]=Le&255,Jt[1]=Le>>>8&255,oe.check=n(oe.check,Jt,2,0)),Le=0,Fe=0}else oe.head&&(oe.head.extra=null);oe.mode=f;case f:if(oe.flags&1024&&(Ke=oe.length,Ke>Ne&&(Ke=Ne),Ke&&(oe.head&&(Mt=oe.head.extra_len-oe.length,oe.head.extra||(oe.head.extra=new Array(oe.head.extra_len)),e.arraySet(oe.head.extra,Re,H,Ke,Mt)),oe.flags&512&&(oe.check=n(oe.check,Re,Ke,H)),Ne-=Ke,H+=Ke,oe.length-=Ke),oe.length))break e;oe.length=0,oe.mode=E;case E:if(oe.flags&2048){if(Ne===0)break e;Ke=0;do Mt=Re[H+Ke++],oe.head&&Mt&&oe.length<65536&&(oe.head.name+=String.fromCharCode(Mt));while(Mt&&Ke<Ne);if(oe.flags&512&&(oe.check=n(oe.check,Re,Ke,H)),Ne-=Ke,H+=Ke,Mt)break e}else oe.head&&(oe.head.name=null);oe.length=0,oe.mode=S;case S:if(oe.flags&4096){if(Ne===0)break e;Ke=0;do Mt=Re[H+Ke++],oe.head&&Mt&&oe.length<65536&&(oe.head.comment+=String.fromCharCode(Mt));while(Mt&&Ke<Ne);if(oe.flags&512&&(oe.check=n(oe.check,Re,Ke,H)),Ne-=Ke,H+=Ke,Mt)break e}else oe.head&&(oe.head.comment=null);oe.mode=P;case P:if(oe.flags&512){for(;Fe<16;){if(Ne===0)break e;Ne--,Le+=Re[H++]<<Fe,Fe+=8}if(Le!==(oe.check&65535)){we.msg="header crc mismatch",oe.mode=pe;break}Le=0,Fe=0}oe.head&&(oe.head.hcrc=oe.flags>>9&1,oe.head.done=!0),we.adler=oe.check=0,oe.mode=s;break;case y:for(;Fe<32;){if(Ne===0)break e;Ne--,Le+=Re[H++]<<Fe,Fe+=8}we.adler=oe.check=ue(Le),Le=0,Fe=0,oe.mode=r;case r:if(oe.havedict===0)return we.next_out=ke,we.avail_out=ae,we.next_in=H,we.avail_in=Ne,oe.hold=Le,oe.bits=Fe,L;we.adler=oe.check=1,oe.mode=s;case s:if(Pe===U||Pe===F)break e;case p:if(oe.last){Le>>>=Fe&7,Fe-=Fe&7,oe.mode=me;break}for(;Fe<3;){if(Ne===0)break e;Ne--,Le+=Re[H++]<<Fe,Fe+=8}switch(oe.last=Le&1,Le>>>=1,Fe-=1,Le&3){case 0:oe.mode=g;break;case 1:if(G(oe),oe.mode=W,Pe===F){Le>>>=2,Fe-=2;break e}break;case 2:oe.mode=q;break;case 3:we.msg="invalid block type",oe.mode=pe}Le>>>=2,Fe-=2;break;case g:for(Le>>>=Fe&7,Fe-=Fe&7;Fe<32;){if(Ne===0)break e;Ne--,Le+=Re[H++]<<Fe,Fe+=8}if((Le&65535)!==(Le>>>16^65535)){we.msg="invalid stored block lengths",oe.mode=pe;break}if(oe.length=Le&65535,Le=0,Fe=0,oe.mode=I,Pe===F)break e;case I:oe.mode=x;case x:if(Ke=oe.length,Ke){if(Ke>Ne&&(Ke=Ne),Ke>ae&&(Ke=ae),Ke===0)break e;e.arraySet(ze,Re,H,Ke,ke),Ne-=Ke,H+=Ke,ae-=Ke,ke+=Ke,oe.length-=Ke;break}oe.mode=s;break;case q:for(;Fe<14;){if(Ne===0)break e;Ne--,Le+=Re[H++]<<Fe,Fe+=8}if(oe.nlen=(Le&31)+257,Le>>>=5,Fe-=5,oe.ndist=(Le&31)+1,Le>>>=5,Fe-=5,oe.ncode=(Le&15)+4,Le>>>=4,Fe-=4,oe.nlen>286||oe.ndist>30){we.msg="too many length or distance symbols",oe.mode=pe;break}oe.have=0,oe.mode=T;case T:for(;oe.have<oe.ncode;){for(;Fe<3;){if(Ne===0)break e;Ne--,Le+=Re[H++]<<Fe,Fe+=8}oe.lens[ao[oe.have++]]=Le&7,Le>>>=3,Fe-=3}for(;oe.have<19;)oe.lens[ao[oe.have++]]=0;if(oe.lencode=oe.lendyn,oe.lenbits=7,zn={bits:oe.lenbits},ln=l(d,oe.lens,0,19,oe.lencode,0,oe.work,zn),oe.lenbits=zn.bits,ln){we.msg="invalid code lengths set",oe.mode=pe;break}oe.have=0,oe.mode=D;case D:for(;oe.have<oe.nlen+oe.ndist;){for(;wt=oe.lencode[Le&(1<<oe.lenbits)-1],dt=wt>>>24,Pt=wt>>>16&255,Vt=wt&65535,!(dt<=Fe);){if(Ne===0)break e;Ne--,Le+=Re[H++]<<Fe,Fe+=8}if(Vt<16)Le>>>=dt,Fe-=dt,oe.lens[oe.have++]=Vt;else{if(Vt===16){for(bn=dt+2;Fe<bn;){if(Ne===0)break e;Ne--,Le+=Re[H++]<<Fe,Fe+=8}if(Le>>>=dt,Fe-=dt,oe.have===0){we.msg="invalid bit length repeat",oe.mode=pe;break}Mt=oe.lens[oe.have-1],Ke=3+(Le&3),Le>>>=2,Fe-=2}else if(Vt===17){for(bn=dt+3;Fe<bn;){if(Ne===0)break e;Ne--,Le+=Re[H++]<<Fe,Fe+=8}Le>>>=dt,Fe-=dt,Mt=0,Ke=3+(Le&7),Le>>>=3,Fe-=3}else{for(bn=dt+7;Fe<bn;){if(Ne===0)break e;Ne--,Le+=Re[H++]<<Fe,Fe+=8}Le>>>=dt,Fe-=dt,Mt=0,Ke=11+(Le&127),Le>>>=7,Fe-=7}if(oe.have+Ke>oe.nlen+oe.ndist){we.msg="invalid bit length repeat",oe.mode=pe;break}for(;Ke--;)oe.lens[oe.have++]=Mt}}if(oe.mode===pe)break;if(oe.lens[256]===0){we.msg="invalid code -- missing end-of-block",oe.mode=pe;break}if(oe.lenbits=9,zn={bits:oe.lenbits},ln=l(u,oe.lens,0,oe.nlen,oe.lencode,0,oe.work,zn),oe.lenbits=zn.bits,ln){we.msg="invalid literal/lengths set",oe.mode=pe;break}if(oe.distbits=6,oe.distcode=oe.distdyn,zn={bits:oe.distbits},ln=l(c,oe.lens,oe.nlen,oe.ndist,oe.distcode,0,oe.work,zn),oe.distbits=zn.bits,ln){we.msg="invalid distances set",oe.mode=pe;break}if(oe.mode=W,Pe===F)break e;case W:oe.mode=J;case J:if(Ne>=6&&ae>=258){we.next_out=ke,we.avail_out=ae,we.next_in=H,we.avail_in=Ne,oe.hold=Le,oe.bits=Fe,a(we,qe),ke=we.next_out,ze=we.output,ae=we.avail_out,H=we.next_in,Re=we.input,Ne=we.avail_in,Le=oe.hold,Fe=oe.bits,oe.mode===s&&(oe.back=-1);break}for(oe.back=0;wt=oe.lencode[Le&(1<<oe.lenbits)-1],dt=wt>>>24,Pt=wt>>>16&255,Vt=wt&65535,!(dt<=Fe);){if(Ne===0)break e;Ne--,Le+=Re[H++]<<Fe,Fe+=8}if(Pt&&(Pt&240)===0){for(en=dt,kr=Pt,Nr=Vt;wt=oe.lencode[Nr+((Le&(1<<en+kr)-1)>>en)],dt=wt>>>24,Pt=wt>>>16&255,Vt=wt&65535,!(en+dt<=Fe);){if(Ne===0)break e;Ne--,Le+=Re[H++]<<Fe,Fe+=8}Le>>>=en,Fe-=en,oe.back+=en}if(Le>>>=dt,Fe-=dt,oe.back+=dt,oe.length=Vt,Pt===0){oe.mode=ne;break}if(Pt&32){oe.back=-1,oe.mode=s;break}if(Pt&64){we.msg="invalid literal/length code",oe.mode=pe;break}oe.extra=Pt&15,oe.mode=X;case X:if(oe.extra){for(bn=oe.extra;Fe<bn;){if(Ne===0)break e;Ne--,Le+=Re[H++]<<Fe,Fe+=8}oe.length+=Le&(1<<oe.extra)-1,Le>>>=oe.extra,Fe-=oe.extra,oe.back+=oe.extra}oe.was=oe.length,oe.mode=Q;case Q:for(;wt=oe.distcode[Le&(1<<oe.distbits)-1],dt=wt>>>24,Pt=wt>>>16&255,Vt=wt&65535,!(dt<=Fe);){if(Ne===0)break e;Ne--,Le+=Re[H++]<<Fe,Fe+=8}if((Pt&240)===0){for(en=dt,kr=Pt,Nr=Vt;wt=oe.distcode[Nr+((Le&(1<<en+kr)-1)>>en)],dt=wt>>>24,Pt=wt>>>16&255,Vt=wt&65535,!(en+dt<=Fe);){if(Ne===0)break e;Ne--,Le+=Re[H++]<<Fe,Fe+=8}Le>>>=en,Fe-=en,oe.back+=en}if(Le>>>=dt,Fe-=dt,oe.back+=dt,Pt&64){we.msg="invalid distance code",oe.mode=pe;break}oe.offset=Vt,oe.extra=Pt&15,oe.mode=re;case re:if(oe.extra){for(bn=oe.extra;Fe<bn;){if(Ne===0)break e;Ne--,Le+=Re[H++]<<Fe,Fe+=8}oe.offset+=Le&(1<<oe.extra)-1,Le>>>=oe.extra,Fe-=oe.extra,oe.back+=oe.extra}if(oe.offset>oe.dmax){we.msg="invalid distance too far back",oe.mode=pe;break}oe.mode=se;case se:if(ae===0)break e;if(Ke=qe-ae,oe.offset>Ke){if(Ke=oe.offset-Ke,Ke>oe.whave&&oe.sane){we.msg="invalid distance too far back",oe.mode=pe;break}Ke>oe.wnext?(Ke-=oe.wnext,ct=oe.wsize-Ke):ct=oe.wnext-Ke,Ke>oe.length&&(Ke=oe.length),xn=oe.window}else xn=ze,ct=ke-oe.offset,Ke=oe.length;Ke>ae&&(Ke=ae),ae-=Ke,oe.length-=Ke;do ze[ke++]=xn[ct++];while(--Ke);oe.length===0&&(oe.mode=J);break;case ne:if(ae===0)break e;ze[ke++]=oe.length,ae--,oe.mode=J;break;case me:if(oe.wrap){for(;Fe<32;){if(Ne===0)break e;Ne--,Le|=Re[H++]<<Fe,Fe+=8}if(qe-=ae,we.total_out+=qe,oe.total+=qe,qe&&(we.adler=oe.check=oe.flags?n(oe.check,ze,qe,ke-qe):i(oe.check,ze,qe,ke-qe)),qe=ae,(oe.flags?Le:ue(Le))!==oe.check){we.msg="incorrect data check",oe.mode=pe;break}Le=0,Fe=0}oe.mode=ge;case ge:if(oe.wrap&&oe.flags){for(;Fe<32;){if(Ne===0)break e;Ne--,Le+=Re[H++]<<Fe,Fe+=8}if(Le!==(oe.total&4294967295)){we.msg="incorrect length check",oe.mode=pe;break}Le=0,Fe=0}oe.mode=Ae;case Ae:ln=M;break e;case pe:ln=b;break e;case le:return v;case ye:default:return _}return we.next_out=ke,we.avail_out=ae,we.next_in=H,we.avail_in=Ne,oe.hold=Le,oe.bits=Fe,(oe.wsize||qe!==we.avail_out&&oe.mode<pe&&(oe.mode<me||Pe!==w))&&ce(we,we.output,we.next_out,qe-we.avail_out),He-=we.avail_in,qe-=we.avail_out,we.total_in+=He,we.total_out+=qe,oe.total+=qe,oe.wrap&&qe&&(we.adler=oe.check=oe.flags?n(oe.check,ze,qe,we.next_out-qe):i(oe.check,ze,qe,we.next_out-qe)),we.data_type=oe.bits+(oe.last?64:0)+(oe.mode===s?128:0)+(oe.mode===W||oe.mode===I?256:0),(He===0&&qe===0||Pe===w)&&ln===O&&(ln=h),ln}function be(we){if(!we||!we.state)return _;var Pe=we.state;return Pe.window&&(Pe.window=null),we.state=null,O}function Se(we,Pe){var oe;return!we||!we.state||(oe=we.state,(oe.wrap&2)===0)?_:(oe.head=Pe,Pe.done=!1,O)}function Be(we,Pe){var oe=Pe.length,Re,ze,H;return!we||!we.state||(Re=we.state,Re.wrap!==0&&Re.mode!==r)?_:Re.mode===r&&(ze=1,ze=i(ze,Pe,oe,0),ze!==Re.check)?b:(H=ce(we,Pe,oe,oe),H?(Re.mode=le,v):(Re.havedict=1,O))}return Bn.inflateReset=Ce,Bn.inflateReset2=We,Bn.inflateResetKeep=Ie,Bn.inflateInit=ee,Bn.inflateInit2=Ge,Bn.inflate=$,Bn.inflateEnd=be,Bn.inflateGetHeader=Se,Bn.inflateSetDictionary=Be,Bn.inflateInfo="pako inflate (from Nodeca project)",Bn}var ll,qh;function ky(){return qh||(qh=1,ll={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}),ll}var cl,Jh;function wL(){if(Jh)return cl;Jh=1;function e(){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}return cl=e,cl}var Gh;function LL(){if(Gh)return Wr;Gh=1;var e=SL(),i=Vi(),n=Ly(),a=ky(),l=Oc(),d=_y(),u=wL(),c=Object.prototype.toString;function w(O){if(!(this instanceof w))return new w(O);this.options=i.assign({chunkSize:16384,windowBits:0,to:""},O||{});var M=this.options;M.raw&&M.windowBits>=0&&M.windowBits<16&&(M.windowBits=-M.windowBits,M.windowBits===0&&(M.windowBits=-15)),M.windowBits>=0&&M.windowBits<16&&!(O&&O.windowBits)&&(M.windowBits+=32),M.windowBits>15&&M.windowBits<48&&(M.windowBits&15)===0&&(M.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new d,this.strm.avail_out=0;var L=e.inflateInit2(this.strm,M.windowBits);if(L!==a.Z_OK)throw new Error(l[L]);if(this.header=new u,e.inflateGetHeader(this.strm,this.header),M.dictionary&&(typeof M.dictionary=="string"?M.dictionary=n.string2buf(M.dictionary):c.call(M.dictionary)==="[object ArrayBuffer]"&&(M.dictionary=new Uint8Array(M.dictionary)),M.raw&&(L=e.inflateSetDictionary(this.strm,M.dictionary),L!==a.Z_OK)))throw new Error(l[L])}w.prototype.push=function(O,M){var L=this.strm,_=this.options.chunkSize,b=this.options.dictionary,v,h,m,k,B,C=!1;if(this.ended)return!1;h=M===~~M?M:M===!0?a.Z_FINISH:a.Z_NO_FLUSH,typeof O=="string"?L.input=n.binstring2buf(O):c.call(O)==="[object ArrayBuffer]"?L.input=new Uint8Array(O):L.input=O,L.next_in=0,L.avail_in=L.input.length;do{if(L.avail_out===0&&(L.output=new i.Buf8(_),L.next_out=0,L.avail_out=_),v=e.inflate(L,a.Z_NO_FLUSH),v===a.Z_NEED_DICT&&b&&(v=e.inflateSetDictionary(this.strm,b)),v===a.Z_BUF_ERROR&&C===!0&&(v=a.Z_OK,C=!1),v!==a.Z_STREAM_END&&v!==a.Z_OK)return this.onEnd(v),this.ended=!0,!1;L.next_out&&(L.avail_out===0||v===a.Z_STREAM_END||L.avail_in===0&&(h===a.Z_FINISH||h===a.Z_SYNC_FLUSH))&&(this.options.to==="string"?(m=n.utf8border(L.output,L.next_out),k=L.next_out-m,B=n.buf2string(L.output,m),L.next_out=k,L.avail_out=_-k,k&&i.arraySet(L.output,L.output,m,k,0),this.onData(B)):this.onData(i.shrinkBuf(L.output,L.next_out))),L.avail_in===0&&L.avail_out===0&&(C=!0)}while((L.avail_in>0||L.avail_out===0)&&v!==a.Z_STREAM_END);return v===a.Z_STREAM_END&&(h=a.Z_FINISH),h===a.Z_FINISH?(v=e.inflateEnd(this.strm),this.onEnd(v),this.ended=!0,v===a.Z_OK):(h===a.Z_SYNC_FLUSH&&(this.onEnd(a.Z_OK),L.avail_out=0),!0)},w.prototype.onData=function(O){this.chunks.push(O)},w.prototype.onEnd=function(O){O===a.Z_OK&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=i.flattenChunks(this.chunks)),this.chunks=[],this.err=O,this.msg=this.strm.msg};function U(O,M){var L=new w(M);if(L.push(O,!0),L.err)throw L.msg||l[L.err];return L.result}function F(O,M){return M=M||{},M.raw=!0,U(O,M)}return Wr.Inflate=w,Wr.inflate=U,Wr.inflateRaw=F,Wr.ungzip=U,Wr}var fl,Hh;function _L(){if(Hh)return fl;Hh=1;var e=Vi().assign,i=bL(),n=LL(),a=ky(),l={};return e(l,i,n,a),fl=l,fl}var gi={},Kh;function yn(){if(Kh)return gi;Kh=1,Object.defineProperty(gi,"__esModule",{value:!0}),gi.messageAssert=gi.messageError=gi.QuickTypeError=void 0;const e={InternalError:"Internal error: ${message}",MiscJSONParseError:"Syntax error in ${description} JSON ${address}: ${message}",MiscReadError:"Cannot read from file or URL ${fileOrURL}: ${message}",MiscUnicodeHighSurrogateWithoutLowSurrogate:"Malformed unicode: High surrogate not followed by low surrogate",MiscInvalidMinMaxConstraint:"Invalid min-max constraint: ${min}-${max}",InferenceJSONReferenceNotRooted:"JSON reference doesn't start with '#/': ${reference}",InferenceJSONReferenceToUnion:"JSON reference points to a union type: ${reference}",InferenceJSONReferenceWrongProperty:"JSON reference points to a non-existant property: ${reference}",InferenceJSONReferenceInvalidArrayIndex:"JSON reference uses invalid array index: ${reference}",SchemaArrayIsInvalidSchema:"An array is not a valid JSON Schema at ${ref}",SchemaNullIsInvalidSchema:"null is not a valid JSON Schema at ${ref}",SchemaRefMustBeString:"$ref must be a string, but is an ${actual} at ${ref}",SchemaAdditionalTypesForbidRequired:"Can't have non-specified required properties but forbidden additionalTypes at ${ref}",SchemaNoTypeSpecified:"JSON Schema must specify at least one type at ${ref}",SchemaInvalidType:"Invalid type ${type} in JSON Schema at ${ref}",SchemaFalseNotSupported:'Schema "false" is not supported at ${ref}',SchemaInvalidJSONSchemaType:"Value of type ${type} is not valid JSON Schema at ${ref}",SchemaRequiredMustBeStringOrStringArray:"`required` must be string or array of strings, but is ${actual} at ${ref}",SchemaRequiredElementMustBeString:"`required` must contain only strings, but it has ${element}, at ${ref}",SchemaTypeMustBeStringOrStringArray:"`type` must be string or array of strings, but is ${actual}",SchemaTypeElementMustBeString:"`type` must contain only strings, but it has ${element}",SchemaArrayItemsMustBeStringOrArray:"Array items must be an array or an object, but is ${actual}",SchemaIDMustHaveAddress:"$id ${id} doesn't have an address at ${ref}",SchemaWrongAccessorEntryArrayLength:"Accessor entry array must have the same number of entries as the ${operation} at ${ref}",SchemaSetOperationCasesIsNotArray:"${operation} cases must be an array, but is ${cases}, at ${ref}",SchemaMoreThanOneUnionMemberName:"More than one name given for union member: ${names}",SchemaCannotGetTypesFromBoolean:"Schema value to get top-level types from must be an object, but is boolean, at ${ref}",SchemaCannotIndexArrayWithNonNumber:"Trying to index array in schema with key that is not a number, but is ${actual} at ${ref}",SchemaIndexNotInArray:"Index ${index} out of range of schema array at ${ref}",SchemaKeyNotInObject:"Key ${key} not in schema object at ${ref}",SchemaFetchError:"Could not fetch schema ${address}, referred to from ${base}",SchemaFetchErrorTopLevel:"Could not fetch top-level schema ${address}",SchemaFetchErrorAdditional:"Could not fetch additional schema ${address}",GraphQLNoQueriesDefined:"GraphQL file doesn't have any queries defined.",DriverUnknownSourceLanguage:"Unknown source language ${lang}",DriverUnknownOutputLanguage:"Unknown output language ${lang}",DriverMoreThanOneInputGiven:"More than one input given for top-level ${topLevel}",DriverCannotInferNameForSchema:"Cannot infer name for schema ${uri}",DriverNoGraphQLQueryGiven:"Please specify at least one GraphQL query as input",DriverNoGraphQLSchemaInDir:"No GraphQL schema in ${dir}",DriverMoreThanOneGraphQLSchemaInDir:"More than one GraphQL schema in ${dir}",DriverSourceLangMustBeGraphQL:"If a GraphQL schema is specified, the source language must be GraphQL",DriverGraphQLSchemaNeeded:"Please specify a GraphQL schema with --graphql-schema or --graphql-introspect",DriverInputFileDoesNotExist:"Input file ${filename} does not exist",DriverCannotMixJSONWithOtherSamples:"Cannot mix JSON samples with JSON Schems, GraphQL, or TypeScript in input subdirectory ${dir}",DriverCannotMixNonJSONInputs:"Cannot mix JSON Schema, GraphQL, and TypeScript in an input subdirectory ${dir}",DriverUnknownDebugOption:"Unknown debug option ${option}",DriverNoLanguageOrExtension:"Please specify a language (--lang) or an output file extension",DriverCLIOptionParsingFailed:"Option parsing failed: ${message}",IRNoForwardDeclarableTypeInCycle:"Cannot resolve cycle because it doesn't contain types that can be forward declared",IRTypeAttributesNotPropagated:"Type attributes for ${count} types were not carried over to the new graph: ${indexes}",IRNoEmptyUnions:"Trying to make an empty union - do you have an impossible type in your schema?",RendererUnknownOptionValue:"Unknown value ${value} for option ${name}",TypeScriptCompilerError:"TypeScript error: ${message}"};class i extends Error{constructor(d,u,c,w){super(c),this.errorMessage=d,this.messageName=u,this.properties=w}}gi.QuickTypeError=i;function n(l,d){const u=e[l];let c=u;const w=d;for(const U of Object.getOwnPropertyNames(w)){let F=w[U];typeof F=="object"&&typeof F.toString=="function"?F=F.toString():typeof F.message=="string"?F=F.message:typeof F!="string"&&(F=JSON.stringify(F)),c=c.replace("${"+U+"}",F)}throw new i(u,l,c,w)}gi.messageError=n;function a(l,d,u){if(!l)return n(d,u)}return gi.messageAssert=a,gi}const Cc=Symbol.for("yaml.alias"),Tc=Symbol.for("yaml.document"),Hi=Symbol.for("yaml.map"),Ny=Symbol.for("yaml.pair"),ai=Symbol.for("yaml.scalar"),es=Symbol.for("yaml.seq"),Un=Symbol.for("yaml.node.type"),Fi=e=>!!e&&typeof e=="object"&&e[Un]===Cc,Zi=e=>!!e&&typeof e=="object"&&e[Un]===Tc,gr=e=>!!e&&typeof e=="object"&&e[Un]===Hi,kt=e=>!!e&&typeof e=="object"&&e[Un]===Ny,vt=e=>!!e&&typeof e=="object"&&e[Un]===ai,br=e=>!!e&&typeof e=="object"&&e[Un]===es;function Ct(e){if(e&&typeof e=="object")switch(e[Un]){case Hi:case es:return!0}return!1}function Et(e){if(e&&typeof e=="object")switch(e[Un]){case Cc:case Hi:case ai:case es:return!0}return!1}const Oy=e=>(vt(e)||Ct(e))&&!!e.anchor,pn=Symbol("break visit"),Cy=Symbol("skip children"),oi=Symbol("remove node");function Qi(e,i){const n=Ey(i);Zi(e)?Gr(null,e.contents,n,Object.freeze([e]))===oi&&(e.contents=null):Gr(null,e,n,Object.freeze([]))}Qi.BREAK=pn;Qi.SKIP=Cy;Qi.REMOVE=oi;function Gr(e,i,n,a){const l=Ay(e,i,n,a);if(Et(l)||kt(l))return Fy(e,a,l),Gr(e,l,n,a);if(typeof l!="symbol"){if(Ct(i)){a=Object.freeze(a.concat(i));for(let d=0;d<i.items.length;++d){const u=Gr(d,i.items[d],n,a);if(typeof u=="number")d=u-1;else{if(u===pn)return pn;u===oi&&(i.items.splice(d,1),d-=1)}}}else if(kt(i)){a=Object.freeze(a.concat(i));const d=Gr("key",i.key,n,a);if(d===pn)return pn;d===oi&&(i.key=null);const u=Gr("value",i.value,n,a);if(u===pn)return pn;u===oi&&(i.value=null)}}return l}async function $s(e,i){const n=Ey(i);Zi(e)?await Hr(null,e.contents,n,Object.freeze([e]))===oi&&(e.contents=null):await Hr(null,e,n,Object.freeze([]))}$s.BREAK=pn;$s.SKIP=Cy;$s.REMOVE=oi;async function Hr(e,i,n,a){const l=await Ay(e,i,n,a);if(Et(l)||kt(l))return Fy(e,a,l),Hr(e,l,n,a);if(typeof l!="symbol"){if(Ct(i)){a=Object.freeze(a.concat(i));for(let d=0;d<i.items.length;++d){const u=await Hr(d,i.items[d],n,a);if(typeof u=="number")d=u-1;else{if(u===pn)return pn;u===oi&&(i.items.splice(d,1),d-=1)}}}else if(kt(i)){a=Object.freeze(a.concat(i));const d=await Hr("key",i.key,n,a);if(d===pn)return pn;d===oi&&(i.key=null);const u=await Hr("value",i.value,n,a);if(u===pn)return pn;u===oi&&(i.value=null)}}return l}function Ey(e){return typeof e=="object"&&(e.Collection||e.Node||e.Value)?Object.assign({Alias:e.Node,Map:e.Node,Scalar:e.Node,Seq:e.Node},e.Value&&{Map:e.Value,Scalar:e.Value,Seq:e.Value},e.Collection&&{Map:e.Collection,Seq:e.Collection},e):e}function Ay(e,i,n,a){if(typeof n=="function")return n(e,i,a);if(gr(i))return n.Map?.(e,i,a);if(br(i))return n.Seq?.(e,i,a);if(kt(i))return n.Pair?.(e,i,a);if(vt(i))return n.Scalar?.(e,i,a);if(Fi(i))return n.Alias?.(e,i,a)}function Fy(e,i,n){const a=i[i.length-1];if(Ct(a))a.items[e]=n;else if(kt(a))e==="key"?a.key=n:a.value=n;else if(Zi(a))a.contents=n;else{const l=Fi(a)?"alias":"scalar";throw new Error(`Cannot replace node with ${l} parent`)}}const kL={"!":"%21",",":"%2C","[":"%5B","]":"%5D","{":"%7B","}":"%7D"},NL=e=>e.replace(/[!,[\]{}]/g,i=>kL[i]);class un{constructor(i,n){this.docStart=null,this.docEnd=!1,this.yaml=Object.assign({},un.defaultYaml,i),this.tags=Object.assign({},un.defaultTags,n)}clone(){const i=new un(this.yaml,this.tags);return i.docStart=this.docStart,i}atDocument(){const i=new un(this.yaml,this.tags);switch(this.yaml.version){case"1.1":this.atNextDocument=!0;break;case"1.2":this.atNextDocument=!1,this.yaml={explicit:un.defaultYaml.explicit,version:"1.2"},this.tags=Object.assign({},un.defaultTags);break}return i}add(i,n){this.atNextDocument&&(this.yaml={explicit:un.defaultYaml.explicit,version:"1.1"},this.tags=Object.assign({},un.defaultTags),this.atNextDocument=!1);const a=i.trim().split(/[ \t]+/),l=a.shift();switch(l){case"%TAG":{if(a.length!==2&&(n(0,"%TAG directive should contain exactly two parts"),a.length<2))return!1;const[d,u]=a;return this.tags[d]=u,!0}case"%YAML":{if(this.yaml.explicit=!0,a.length!==1)return n(0,"%YAML directive should contain exactly one part"),!1;const[d]=a;if(d==="1.1"||d==="1.2")return this.yaml.version=d,!0;{const u=/^\d+\.\d+$/.test(d);return n(6,`Unsupported YAML version ${d}`,u),!1}}default:return n(0,`Unknown directive ${l}`,!0),!1}}tagName(i,n){if(i==="!")return"!";if(i[0]!=="!")return n(`Not a valid tag: ${i}`),null;if(i[1]==="<"){const u=i.slice(2,-1);return u==="!"||u==="!!"?(n(`Verbatim tags aren't resolved, so ${i} is invalid.`),null):(i[i.length-1]!==">"&&n("Verbatim tags must end with a >"),u)}const[,a,l]=i.match(/^(.*!)([^!]*)$/s);l||n(`The ${i} tag has no suffix`);const d=this.tags[a];if(d)try{return d+decodeURIComponent(l)}catch(u){return n(String(u)),null}return a==="!"?i:(n(`Could not resolve tag: ${i}`),null)}tagString(i){for(const[n,a]of Object.entries(this.tags))if(i.startsWith(a))return n+NL(i.substring(a.length));return i[0]==="!"?i:`!<${i}>`}toString(i){const n=this.yaml.explicit?[`%YAML ${this.yaml.version||"1.2"}`]:[],a=Object.entries(this.tags);let l;if(i&&a.length>0&&Et(i.contents)){const d={};Qi(i.contents,(u,c)=>{Et(c)&&c.tag&&(d[c.tag]=!0)}),l=Object.keys(d)}else l=[];for(const[d,u]of a)d==="!!"&&u==="tag:yaml.org,2002:"||(!i||l.some(c=>c.startsWith(u)))&&n.push(`%TAG ${d} ${u}`);return n.join(`
2
2
  `)}}un.defaultYaml={explicit:!1,version:"1.2"};un.defaultTags={"!!":"tag:yaml.org,2002:"};function Py(e){if(/[\x00-\x19\s,[\]{}]/.test(e)){const n=`Anchor must not contain whitespace or control characters: ${JSON.stringify(e)}`;throw new Error(n)}return!0}function Iy(e){const i=new Set;return Qi(e,{Value(n,a){a.anchor&&i.add(a.anchor)}}),i}function Ry(e,i){for(let n=1;;++n){const a=`${e}${n}`;if(!i.has(a))return a}}function OL(e,i){const n=[],a=new Map;let l=null;return{onAnchor:d=>{n.push(d),l??(l=Iy(e));const u=Ry(i,l);return l.add(u),u},setAnchors:()=>{for(const d of n){const u=a.get(d);if(typeof u=="object"&&u.anchor&&(vt(u.node)||Ct(u.node)))u.node.anchor=u.anchor;else{const c=new Error("Failed to resolve repeated object (this should not happen)");throw c.source=d,c}}},sourceObjects:a}}function Kr(e,i,n,a){if(a&&typeof a=="object")if(Array.isArray(a))for(let l=0,d=a.length;l<d;++l){const u=a[l],c=Kr(e,a,String(l),u);c===void 0?delete a[l]:c!==u&&(a[l]=c)}else if(a instanceof Map)for(const l of Array.from(a.keys())){const d=a.get(l),u=Kr(e,a,l,d);u===void 0?a.delete(l):u!==d&&a.set(l,u)}else if(a instanceof Set)for(const l of Array.from(a)){const d=Kr(e,a,l,l);d===void 0?a.delete(l):d!==l&&(a.delete(l),a.add(d))}else for(const[l,d]of Object.entries(a)){const u=Kr(e,a,l,d);u===void 0?delete a[l]:u!==d&&(a[l]=u)}return e.call(i,n,a)}function jn(e,i,n){if(Array.isArray(e))return e.map((a,l)=>jn(a,String(l),n));if(e&&typeof e.toJSON=="function"){if(!n||!Oy(e))return e.toJSON(i,n);const a={aliasCount:0,count:1,res:void 0};n.anchors.set(e,a),n.onCreate=d=>{a.res=d,delete n.onCreate};const l=e.toJSON(i,n);return n.onCreate&&n.onCreate(l),l}return typeof e=="bigint"&&!n?.keep?Number(e):e}class Ec{constructor(i){Object.defineProperty(this,Un,{value:i})}clone(){const i=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));return this.range&&(i.range=this.range.slice()),i}toJS(i,{mapAsMap:n,maxAliasCount:a,onAnchor:l,reviver:d}={}){if(!Zi(i))throw new TypeError("A document argument is required");const u={anchors:new Map,doc:i,keep:!0,mapAsMap:n===!0,mapKeyWarned:!1,maxAliasCount:typeof a=="number"?a:100},c=jn(this,"",u);if(typeof l=="function")for(const{count:w,res:U}of u.anchors.values())l(U,w);return typeof d=="function"?Kr(d,{"":c},"",c):c}}class eo extends Ec{constructor(i){super(Cc),this.source=i,Object.defineProperty(this,"tag",{set(){throw new Error("Alias nodes cannot have tags")}})}resolve(i,n){let a;n?.aliasResolveCache?a=n.aliasResolveCache:(a=[],Qi(i,{Node:(d,u)=>{(Fi(u)||Oy(u))&&a.push(u)}}),n&&(n.aliasResolveCache=a));let l;for(const d of a){if(d===this)break;d.anchor===this.source&&(l=d)}return l}toJSON(i,n){if(!n)return{source:this.source};const{anchors:a,doc:l,maxAliasCount:d}=n,u=this.resolve(l,n);if(!u){const w=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw new ReferenceError(w)}let c=a.get(u);if(c||(jn(u,null,n),c=a.get(u)),!c||c.res===void 0){const w="This should not happen: Alias anchor was not resolved?";throw new ReferenceError(w)}if(d>=0&&(c.count+=1,c.aliasCount===0&&(c.aliasCount=ca(l,u,a)),c.count*c.aliasCount>d)){const w="Excessive alias count indicates a resource exhaustion attack";throw new ReferenceError(w)}return c.res}toString(i,n,a){const l=`*${this.source}`;if(i){if(Py(this.source),i.options.verifyAliasOrder&&!i.anchors.has(this.source)){const d=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw new Error(d)}if(i.implicitKey)return`${l} `}return l}}function ca(e,i,n){if(Fi(i)){const a=i.resolve(e),l=n&&a&&n.get(a);return l?l.count*l.aliasCount:0}else if(Ct(i)){let a=0;for(const l of i.items){const d=ca(e,l,n);d>a&&(a=d)}return a}else if(kt(i)){const a=ca(e,i.key,n),l=ca(e,i.value,n);return Math.max(a,l)}return 1}const My=e=>!e||typeof e!="function"&&typeof e!="object";class tt extends Ec{constructor(i){super(ai),this.value=i}toJSON(i,n){return n?.keep?this.value:jn(this.value,i,n)}toString(){return String(this.value)}}tt.BLOCK_FOLDED="BLOCK_FOLDED";tt.BLOCK_LITERAL="BLOCK_LITERAL";tt.PLAIN="PLAIN";tt.QUOTE_DOUBLE="QUOTE_DOUBLE";tt.QUOTE_SINGLE="QUOTE_SINGLE";const CL="tag:yaml.org,2002:";function EL(e,i,n){if(i){const a=n.filter(d=>d.tag===i),l=a.find(d=>!d.format)??a[0];if(!l)throw new Error(`Tag ${i} not found`);return l}return n.find(a=>a.identify?.(e)&&!a.format)}function Qs(e,i,n){if(Zi(e)&&(e=e.contents),Et(e))return e;if(kt(e)){const O=n.schema[Hi].createNode?.(n.schema,null,n);return O.items.push(e),O}(e instanceof String||e instanceof Number||e instanceof Boolean||typeof BigInt<"u"&&e instanceof BigInt)&&(e=e.valueOf());const{aliasDuplicateObjects:a,onAnchor:l,onTagObj:d,schema:u,sourceObjects:c}=n;let w;if(a&&e&&typeof e=="object"){if(w=c.get(e),w)return w.anchor??(w.anchor=l(e)),new eo(w.anchor);w={anchor:null,node:null},c.set(e,w)}i?.startsWith("!!")&&(i=CL+i.slice(2));let U=EL(e,i,u.tags);if(!U){if(e&&typeof e.toJSON=="function"&&(e=e.toJSON()),!e||typeof e!="object"){const O=new tt(e);return w&&(w.node=O),O}U=e instanceof Map?u[Hi]:Symbol.iterator in Object(e)?u[es]:u[Hi]}d&&(d(U),delete n.onTagObj);const F=U?.createNode?U.createNode(n.schema,e,n):typeof U?.nodeClass?.from=="function"?U.nodeClass.from(n.schema,e,n):new tt(e);return i?F.tag=i:U.default||(F.tag=U.tag),w&&(w.node=F),F}function ba(e,i,n){let a=n;for(let l=i.length-1;l>=0;--l){const d=i[l];if(typeof d=="number"&&Number.isInteger(d)&&d>=0){const u=[];u[d]=a,a=u}else a=new Map([[d,a]])}return Qs(a,void 0,{aliasDuplicateObjects:!1,keepUndefined:!1,onAnchor:()=>{throw new Error("This should not happen, please report a bug.")},schema:e,sourceObjects:new Map})}const Hs=e=>e==null||typeof e=="object"&&!!e[Symbol.iterator]().next().done;class By extends Ec{constructor(i,n){super(i),Object.defineProperty(this,"schema",{value:n,configurable:!0,enumerable:!1,writable:!0})}clone(i){const n=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));return i&&(n.schema=i),n.items=n.items.map(a=>Et(a)||kt(a)?a.clone(i):a),this.range&&(n.range=this.range.slice()),n}addIn(i,n){if(Hs(i))this.add(n);else{const[a,...l]=i,d=this.get(a,!0);if(Ct(d))d.addIn(l,n);else if(d===void 0&&this.schema)this.set(a,ba(this.schema,l,n));else throw new Error(`Expected YAML collection at ${a}. Remaining path: ${l}`)}}deleteIn(i){const[n,...a]=i;if(a.length===0)return this.delete(n);const l=this.get(n,!0);if(Ct(l))return l.deleteIn(a);throw new Error(`Expected YAML collection at ${n}. Remaining path: ${a}`)}getIn(i,n){const[a,...l]=i,d=this.get(a,!0);return l.length===0?!n&&vt(d)?d.value:d:Ct(d)?d.getIn(l,n):void 0}hasAllNullValues(i){return this.items.every(n=>{if(!kt(n))return!1;const a=n.value;return a==null||i&&vt(a)&&a.value==null&&!a.commentBefore&&!a.comment&&!a.tag})}hasIn(i){const[n,...a]=i;if(a.length===0)return this.has(n);const l=this.get(n,!0);return Ct(l)?l.hasIn(a):!1}setIn(i,n){const[a,...l]=i;if(l.length===0)this.set(a,n);else{const d=this.get(a,!0);if(Ct(d))d.setIn(l,n);else if(d===void 0&&this.schema)this.set(a,ba(this.schema,l,n));else throw new Error(`Expected YAML collection at ${a}. Remaining path: ${l}`)}}}const AL=e=>e.replace(/^(?!$)(?: $)?/gm,"#");function Ni(e,i){return/^\n+$/.test(e)?e.substring(1):i?e.replace(/^(?! *$)/gm,i):e}const pr=(e,i,n)=>e.endsWith(`
3
3
  `)?Ni(n,i):n.includes(`
4
4
  `)?`
@@ -138,42 +138,7 @@ ${n.comment}`:n.comment}this.doc.range[2]=n.offset;break}default:this.errors.pus
138
138
  `)+1;for(;n!==0;)this.onNewLine(this.offset+n),n=this.source.indexOf(`
139
139
  `,n)+1}return{type:i,offset:this.offset,indent:this.indent,source:this.source}}startBlockValue(i){switch(this.type){case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return this.flowScalar(this.type);case"block-scalar-header":return{type:"block-scalar",offset:this.offset,indent:this.indent,props:[this.sourceToken],source:""};case"flow-map-start":case"flow-seq-start":return{type:"flow-collection",offset:this.offset,indent:this.indent,start:this.sourceToken,items:[],end:[]};case"seq-item-ind":return{type:"block-seq",offset:this.offset,indent:this.indent,items:[{start:[this.sourceToken]}]};case"explicit-key-ind":{this.onKeyLine=!0;const n=ta(i),a=Jr(n);return a.push(this.sourceToken),{type:"block-map",offset:this.offset,indent:this.indent,items:[{start:a,explicitKey:!0}]}}case"map-value-ind":{this.onKeyLine=!0;const n=ta(i),a=Jr(n);return{type:"block-map",offset:this.offset,indent:this.indent,items:[{start:a,key:null,sep:[this.sourceToken]}]}}}return null}atIndentedComment(i,n){return this.type!=="comment"||this.indent<=n?!1:i.every(a=>a.type==="newline"||a.type==="space")}*documentEnd(i){this.type!=="doc-mode"&&(i.end?i.end.push(this.sourceToken):i.end=[this.sourceToken],this.type==="newline"&&(yield*this.pop()))}*lineEnd(i){switch(this.type){case"comma":case"doc-start":case"doc-end":case"flow-seq-end":case"flow-map-end":case"map-value-ind":yield*this.pop(),yield*this.step();break;case"newline":this.onKeyLine=!1;case"space":case"comment":default:i.end?i.end.push(this.sourceToken):i.end=[this.sourceToken],this.type==="newline"&&(yield*this.pop())}}}function yg(e){const i=e.prettyErrors!==!1;return{lineCounter:e.lineCounter||i&&new Wc||null,prettyErrors:i}}function gg(e,i={}){const{lineCounter:n,prettyErrors:a}=yg(i),l=new Ma(n?.addNewLine),d=new Fa(i),u=Array.from(d.compose(l.parse(e)));if(a&&n)for(const c of u)c.errors.forEach(va(e,n)),c.warnings.forEach(va(e,n));return u.length>0?u:Object.assign([],{empty:!0},d.streamInfo())}function qc(e,i={}){const{lineCounter:n,prettyErrors:a}=yg(i),l=new Ma(n?.addNewLine),d=new Fa(i);let u=null;for(const c of d.compose(l.parse(e),!0,e.length))if(!u)u=c;else if(u.options.logLevel!=="silent"){u.errors.push(new Gi(c.range.slice(0,2),"MULTIPLE_DOCS","Source contains multiple documents; please use YAML.parseAllDocuments()"));break}return a&&n&&(u.errors.forEach(va(e,n)),u.warnings.forEach(va(e,n))),u}function bg(e,i,n){let a;typeof i=="function"?a=i:n===void 0&&i&&typeof i=="object"&&(n=i);const l=qc(e,n);if(!l)return null;if(l.warnings.forEach(d=>Uy(l.options.logLevel,d)),l.errors.length>0){if(l.options.logLevel!=="silent")throw l.errors[0];l.errors=[]}return l.toJS(Object.assign({reviver:a},n))}function Tg(e,i,n){let a=null;if(typeof i=="function"||Array.isArray(i)?a=i:n===void 0&&i&&(n=i),typeof n=="string"&&(n=n.length),typeof n=="number"){const l=Math.round(n);n=l<1?void 0:l>8?{indent:8}:{indent:l}}if(e===void 0){const{keepUndefined:l}=n??i??{};if(!l)return}return Zi(e)&&!a?e.toString(n):new Tr(e,a,n).toString(n)}const E_=Object.freeze(Object.defineProperty({__proto__:null,Alias:eo,CST:pg,Composer:Fa,Document:Tr,Lexer:zc,LineCounter:Wc,Pair:$t,Parser:Ma,Scalar:tt,Schema:io,YAMLError:Aa,YAMLMap:mn,YAMLParseError:Gi,YAMLSeq:Ci,YAMLWarning:Uc,isAlias:Fi,isCollection:Ct,isDocument:Zi,isMap:gr,isNode:Et,isPair:kt,isScalar:vt,isSeq:br,parse:bg,parseAllDocuments:gg,parseDocument:qc,stringify:Tg,visit:Qi,visitAsync:$s},Symbol.toStringTag,{value:"Module"})),A_=Object.freeze(Object.defineProperty({__proto__:null,Alias:eo,CST:pg,Composer:Fa,Document:Tr,Lexer:zc,LineCounter:Wc,Pair:$t,Parser:Ma,Scalar:tt,Schema:io,YAMLError:Aa,YAMLMap:mn,YAMLParseError:Gi,YAMLSeq:Ci,YAMLWarning:Uc,default:E_,isAlias:Fi,isCollection:Ct,isDocument:Zi,isMap:gr,isNode:Et,isPair:kt,isScalar:vt,isSeq:br,parse:bg,parseAllDocuments:gg,parseDocument:qc,stringify:Tg,visit:Qi,visitAsync:$s},Symbol.toStringTag,{value:"Module"})),F_=Nc(A_);var rp;function Qe(){if(rp)return rt;rp=1;var e=rt&&rt.__createBinding||(Object.create?(function(f,E,S,P){P===void 0&&(P=S);var y=Object.getOwnPropertyDescriptor(E,S);(!y||("get"in y?!E.__esModule:y.writable||y.configurable))&&(y={enumerable:!0,get:function(){return E[S]}}),Object.defineProperty(f,P,y)}):(function(f,E,S,P){P===void 0&&(P=S),f[P]=E[S]})),i=rt&&rt.__setModuleDefault||(Object.create?(function(f,E){Object.defineProperty(f,"default",{enumerable:!0,value:E})}):function(f,E){f.default=E}),n=rt&&rt.__importStar||function(f){if(f&&f.__esModule)return f;var E={};if(f!=null)for(var S in f)S!=="default"&&Object.prototype.hasOwnProperty.call(f,S)&&e(E,f,S);return i(E,f),E};Object.defineProperty(rt,"__esModule",{value:!0}),rt.numberEnumValues=rt.indentationString=rt.parseJSON=rt.inflateBase64=rt.errorMessage=rt.repeatedCall=rt.repeated=rt.mustNotHappen=rt.panic=rt.assert=rt.assertNever=rt.nonNull=rt.defined=rt.checkArray=rt.checkStringMap=rt.checkString=rt.isStringMap=void 0;const a=mL(),l=n(_L()),d=yn(),u=n(F_);function c(f,E){if(typeof f!="object"||Array.isArray(f)||f===null)return!1;if(E!==void 0)for(const S of Object.getOwnPropertyNames(f)){const P=f[S];if(!E(P))return!1}return!0}rt.isStringMap=c;function w(f){return typeof f=="string"}rt.checkString=w;function U(f,E){return c(f,E)?f:b(`Value must be an object, but is ${f}`)}rt.checkStringMap=U;function F(f,E){if(!Array.isArray(f))return b(`Value must be an array, but is ${f}`);if(E!==void 0){for(const S of f)if(!E(S))return b(`Array item does not satisfy constraint: ${S}`)}return f}rt.checkArray=F;function O(f){return f!==void 0?f:b("Defined value expected, but got undefined")}rt.defined=O;function M(f){return f!==null?f:b("Non-null value expected, but got null")}rt.nonNull=M;function L(f){return(0,d.messageError)("InternalError",{message:`Unexpected object ${f}`})}rt.assertNever=L;function _(f,E="Assertion failed"){if(!f)return(0,d.messageError)("InternalError",{message:E})}rt.assert=_;function b(f){return(0,d.messageError)("InternalError",{message:f})}rt.panic=b;function v(){return b("This must not happen")}rt.mustNotHappen=v;function h(f,E){const S=[];for(let P=0;P<f;P++)S.push(E);return S}rt.repeated=h;function m(f,E){const S=[];for(let P=0;P<f;P++)S.push(E());return S}rt.repeatedCall=m;function k(f){return f instanceof Error?f.message:f.toString()}rt.errorMessage=k;function B(f){const E=a.Base64.atob(f);return l.inflate(E,{to:"string"})}rt.inflateBase64=B;function C(f,E,S="<unknown>"){try{return f.charCodeAt(0)===65279&&(f=f.slice(1)),u.parse(f)}catch(P){let y;return P instanceof SyntaxError?y=P.message:y=`Unknown exception ${P}`,(0,d.messageError)("MiscJSONParseError",{description:E,address:S,message:y})}}rt.parseJSON=C;function R(f){return" ".repeat(f)}rt.indentationString=R;function A(f){const E=[];for(const S of Object.keys(f)){const P=f[S];typeof P=="number"&&E.push(P)}return E}return rt.numberEnumValues=A,rt}var bi={};function P_(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var pa={exports:{}},I_=pa.exports,sp;function vg(){return sp||(sp=1,(function(e,i){(function(n,a){typeof P_=="function"?e.exports=a():n.pluralize=a()})(I_,function(){var n=[],a=[],l={},d={},u={};function c(b){return typeof b=="string"?new RegExp("^"+b+"$","i"):b}function w(b,v){return b===v?v:b===b.toLowerCase()?v.toLowerCase():b===b.toUpperCase()?v.toUpperCase():b[0]===b[0].toUpperCase()?v.charAt(0).toUpperCase()+v.substr(1).toLowerCase():v.toLowerCase()}function U(b,v){return b.replace(/\$(\d{1,2})/g,function(h,m){return v[m]||""})}function F(b,v){return b.replace(v[0],function(h,m){var k=U(v[1],arguments);return w(h===""?b[m-1]:h,k)})}function O(b,v,h){if(!b.length||l.hasOwnProperty(b))return v;for(var m=h.length;m--;){var k=h[m];if(k[0].test(v))return F(v,k)}return v}function M(b,v,h){return function(m){var k=m.toLowerCase();return v.hasOwnProperty(k)?w(m,k):b.hasOwnProperty(k)?w(m,b[k]):O(k,m,h)}}function L(b,v,h,m){return function(k){var B=k.toLowerCase();return v.hasOwnProperty(B)?!0:b.hasOwnProperty(B)?!1:O(B,B,h)===B}}function _(b,v,h){var m=v===1?_.singular(b):_.plural(b);return(h?v+" ":"")+m}return _.plural=M(u,d,n),_.isPlural=L(u,d,n),_.singular=M(d,u,a),_.isSingular=L(d,u,a),_.addPluralRule=function(b,v){n.push([c(b),v])},_.addSingularRule=function(b,v){a.push([c(b),v])},_.addUncountableRule=function(b){if(typeof b=="string"){l[b.toLowerCase()]=!0;return}_.addPluralRule(b,"$0"),_.addSingularRule(b,"$0")},_.addIrregularRule=function(b,v){v=v.toLowerCase(),b=b.toLowerCase(),u[b]=v,d[v]=b},[["I","we"],["me","us"],["he","they"],["she","they"],["them","them"],["myself","ourselves"],["yourself","yourselves"],["itself","themselves"],["herself","themselves"],["himself","themselves"],["themself","themselves"],["is","are"],["was","were"],["has","have"],["this","these"],["that","those"],["echo","echoes"],["dingo","dingoes"],["volcano","volcanoes"],["tornado","tornadoes"],["torpedo","torpedoes"],["genus","genera"],["viscus","viscera"],["stigma","stigmata"],["stoma","stomata"],["dogma","dogmata"],["lemma","lemmata"],["schema","schemata"],["anathema","anathemata"],["ox","oxen"],["axe","axes"],["die","dice"],["yes","yeses"],["foot","feet"],["eave","eaves"],["goose","geese"],["tooth","teeth"],["quiz","quizzes"],["human","humans"],["proof","proofs"],["carve","carves"],["valve","valves"],["looey","looies"],["thief","thieves"],["groove","grooves"],["pickaxe","pickaxes"],["passerby","passersby"]].forEach(function(b){return _.addIrregularRule(b[0],b[1])}),[[/s?$/i,"s"],[/[^\u0000-\u007F]$/i,"$0"],[/([^aeiou]ese)$/i,"$1"],[/(ax|test)is$/i,"$1es"],[/(alias|[^aou]us|t[lm]as|gas|ris)$/i,"$1es"],[/(e[mn]u)s?$/i,"$1s"],[/([^l]ias|[aeiou]las|[ejzr]as|[iu]am)$/i,"$1"],[/(alumn|syllab|vir|radi|nucle|fung|cact|stimul|termin|bacill|foc|uter|loc|strat)(?:us|i)$/i,"$1i"],[/(alumn|alg|vertebr)(?:a|ae)$/i,"$1ae"],[/(seraph|cherub)(?:im)?$/i,"$1im"],[/(her|at|gr)o$/i,"$1oes"],[/(agend|addend|millenni|dat|extrem|bacteri|desiderat|strat|candelabr|errat|ov|symposi|curricul|automat|quor)(?:a|um)$/i,"$1a"],[/(apheli|hyperbat|periheli|asyndet|noumen|phenomen|criteri|organ|prolegomen|hedr|automat)(?:a|on)$/i,"$1a"],[/sis$/i,"ses"],[/(?:(kni|wi|li)fe|(ar|l|ea|eo|oa|hoo)f)$/i,"$1$2ves"],[/([^aeiouy]|qu)y$/i,"$1ies"],[/([^ch][ieo][ln])ey$/i,"$1ies"],[/(x|ch|ss|sh|zz)$/i,"$1es"],[/(matr|cod|mur|sil|vert|ind|append)(?:ix|ex)$/i,"$1ices"],[/\b((?:tit)?m|l)(?:ice|ouse)$/i,"$1ice"],[/(pe)(?:rson|ople)$/i,"$1ople"],[/(child)(?:ren)?$/i,"$1ren"],[/eaux$/i,"$0"],[/m[ae]n$/i,"men"],["thou","you"]].forEach(function(b){return _.addPluralRule(b[0],b[1])}),[[/s$/i,""],[/(ss)$/i,"$1"],[/(wi|kni|(?:after|half|high|low|mid|non|night|[^\w]|^)li)ves$/i,"$1fe"],[/(ar|(?:wo|[ae])l|[eo][ao])ves$/i,"$1f"],[/ies$/i,"y"],[/\b([pl]|zomb|(?:neck|cross)?t|coll|faer|food|gen|goon|group|lass|talk|goal|cut)ies$/i,"$1ie"],[/\b(mon|smil)ies$/i,"$1ey"],[/\b((?:tit)?m|l)ice$/i,"$1ouse"],[/(seraph|cherub)im$/i,"$1"],[/(x|ch|ss|sh|zz|tto|go|cho|alias|[^aou]us|t[lm]as|gas|(?:her|at|gr)o|[aeiou]ris)(?:es)?$/i,"$1"],[/(analy|diagno|parenthe|progno|synop|the|empha|cri|ne)(?:sis|ses)$/i,"$1sis"],[/(movie|twelve|abuse|e[mn]u)s$/i,"$1"],[/(test)(?:is|es)$/i,"$1is"],[/(alumn|syllab|vir|radi|nucle|fung|cact|stimul|termin|bacill|foc|uter|loc|strat)(?:us|i)$/i,"$1us"],[/(agend|addend|millenni|dat|extrem|bacteri|desiderat|strat|candelabr|errat|ov|symposi|curricul|quor)a$/i,"$1um"],[/(apheli|hyperbat|periheli|asyndet|noumen|phenomen|criteri|organ|prolegomen|hedr|automat)a$/i,"$1on"],[/(alumn|alg|vertebr)ae$/i,"$1a"],[/(cod|mur|sil|vert|ind)ices$/i,"$1ex"],[/(matr|append)ices$/i,"$1ix"],[/(pe)(rson|ople)$/i,"$1rson"],[/(child)ren$/i,"$1"],[/(eau)x?$/i,"$1"],[/men$/i,"man"]].forEach(function(b){return _.addSingularRule(b[0],b[1])}),["adulthood","advice","agenda","aid","aircraft","alcohol","ammo","analytics","anime","athletics","audio","bison","blood","bream","buffalo","butter","carp","cash","chassis","chess","clothing","cod","commerce","cooperation","corps","debris","diabetes","digestion","elk","energy","equipment","excretion","expertise","firmware","flounder","fun","gallows","garbage","graffiti","hardware","headquarters","health","herpes","highjinks","homework","housework","information","jeans","justice","kudos","labour","literature","machinery","mackerel","mail","media","mews","moose","music","mud","manga","news","only","personnel","pike","plankton","pliers","police","pollution","premises","rain","research","rice","salmon","scissors","series","sewage","shambles","shrimp","software","species","staff","swine","tennis","traffic","transportation","trout","tuna","wealth","welfare","whiting","wildebeest","wildlife","you",/pok[eé]mon$/i,/[^aeiou]ese$/i,/deer$/i,/fish$/i,/measles$/i,/o[iu]s$/i,/pox$/i,/sheep$/i].forEach(_.addUncountableRule),_})})(pa)),pa.exports}var kn={},op;function At(){if(op)return kn;op=1,Object.defineProperty(kn,"__esModule",{value:!0}),kn.increaseTypeAttributesDistance=kn.makeTypeAttributesInferred=kn.combineTypeAttributes=kn.emptyTypeAttributes=kn.TypeAttributeKind=void 0;const e=et(),i=Qe();class n{constructor(c){this.name=c}appliesToTypeKind(c){return c!=="any"}combine(c){return(0,i.panic)(`Cannot combine type attribute ${this.name}`)}intersect(c){return this.combine(c)}makeInferred(c){return(0,i.panic)(`Cannot make type attribute ${this.name} inferred`)}increaseDistance(c){return c}addToSchema(c,w,U){}children(c){return new Set}stringify(c){}get inIdentity(){return!1}requiresUniqueIdentity(c){return!1}reconstitute(c,w){return w}makeAttributes(c){const w=[[this,c]];return new Map(w)}tryGetInAttributes(c){return c.get(this)}setInAttributes(c,w){return new Map(c).set(this,w)}modifyInAttributes(c,w){const U=w(this.tryGetInAttributes(c));if(U===void 0){const F=new Map(c);return F.delete(this),F}return this.setInAttributes(c,U)}setDefaultInAttributes(c,w){return this.tryGetInAttributes(c)!==void 0?c:this.modifyInAttributes(c,w)}removeInAttributes(c){return(0,e.mapFilter)(c,(w,U)=>U!==this)}equals(c){return c instanceof n?this.name===c.name:!1}hashCode(){return(0,e.hashString)(this.name)}}kn.TypeAttributeKind=n,kn.emptyTypeAttributes=new Map;function a(u,c,w){const U=u==="union";let F;if(Array.isArray(c))F=c;else{if(w===void 0)return(0,i.panic)("Must have on array or two attributes");F=[c,w]}const O=(0,e.mapTranspose)(F);function M(L,_){return(0,i.assert)(L.length>0,"Cannot combine zero type attributes"),L.length===1?L[0]:U?_.combine(L):_.intersect(L)}return(0,e.mapFilterMap)(O,M)}kn.combineTypeAttributes=a;function l(u){return(0,e.mapFilterMap)(u,(c,w)=>w.makeInferred(c))}kn.makeTypeAttributesInferred=l;function d(u){return(0,e.mapFilterMap)(u,(c,w)=>w.increaseDistance(c))}return kn.increaseTypeAttributesDistance=d,kn}var Ls={},Tl={},Nn={},ap;function zt(){if(ap)return Nn;ap=1,Object.defineProperty(Nn,"__esModule",{value:!0}),Nn.EnumOption=Nn.StringOption=Nn.BooleanOption=Nn.getOptionValues=Nn.Option=void 0;const e=Qe(),i=yn(),n=et();class a{constructor(U){U.renderer=!0,this.definition=U,(0,e.assert)(U.kind!==void 0,"Renderer option kind must be defined")}getValue(U){const F=U[this.definition.name];return F===void 0?this.definition.defaultValue:F}get cliDefinitions(){return{actual:[this.definition],display:[this.definition]}}}Nn.Option=a;function l(w,U){const F={};for(const O of Object.getOwnPropertyNames(w))F[O]=w[O].getValue(U);return F}Nn.getOptionValues=l;class d extends a{constructor(U,F,O,M="primary"){super({name:U,kind:M,type:Boolean,description:F,defaultValue:O})}get cliDefinitions(){const U=Object.assign({},this.definition,{name:`no-${this.definition.name}`,defaultValue:!this.definition.defaultValue});return{display:[Object.assign({},this.definition,{name:`[no-]${this.definition.name}`,description:`${this.definition.description} (${this.definition.defaultValue?"on":"off"} by default)`})],actual:[this.definition,U]}}getValue(U){let F=U[this.definition.name];F===void 0&&(F=this.definition.defaultValue);let O=U[`no-${this.definition.name}`];return O===void 0&&(O=!this.definition.defaultValue),F==="true"?F=!0:F==="false"&&(F=!1),this.definition.defaultValue?F&&!O:F||!O}}Nn.BooleanOption=d;class u extends a{constructor(U,F,O,M,L="primary"){const _={name:U,kind:L,type:String,description:F,typeLabel:O,defaultValue:M};super(_)}}Nn.StringOption=u;class c extends a{constructor(U,F,O,M=void 0,L="primary"){M===void 0&&(M=O[0][0]);const _={name:U,kind:L,type:String,description:F,typeLabel:O.map(([b,v])=>b).join("|"),legalValues:O.map(([b,v])=>b),defaultValue:M};super(_),this._values={};for(const[b,v]of O)this._values[b]=v}getValue(U){let F=U[this.definition.name];return F===void 0&&(F=this.definition.defaultValue),(0,n.hasOwnProperty)(this._values,F)?this._values[F]:(0,i.messageError)("RendererUnknownOptionValue",{value:F,name:this.definition.name})}}return Nn.EnumOption=c,Nn}var up;function vr(){return up||(up=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.acronymStyle=e.acronymOption=e.AcronymStyleOptions=e.acronyms=void 0;const i=zt(),n=Nt();e.acronyms=["aaa","aabb","aac","aal","aalc","aarp","abac","abcl","abi","abm","abr","ac","acd","ack","acl","acm","acme","acp","acpi","acr","adb","adc","adccp","ado","adsl","adt","ae","aes","af","afp","agp","ai","aix","alac","algol","alsa","alu","amd","amoled","amqp","amr","ann","ansi","aop","apci","api","apic","apipa","apl","apr","arin","aros","arp","arpa","arpanet","ascii","aset","asg","asic","asimo","aslr","asm","asmp","asp","asr","assp","ast","ata","atag","atapi","atm","av","avc","avi","awfl","awk","awt","bal","bam","bbp","bbs","bcd","bcnf","beep","ber","bfd","bfs","bft","bgp","bi","binac","bios","bjt","bmp","bnc","boinc","bom","bootp","bpdu","bpel","bpl","bpm","brm","brms","brr","brs","bsa","bsb","bsd","bss","bt","bw","byod","ca","cad","cae","cai","caid","captcha","caq","cd","cde","cdfs","cdma","cdn","cdp","cdsa","cert","ces","cf","cfd","cfg","cg","cga","cgi","cgt","chs","cidr","cifs","cim","cio","cir","cisc","cjk","cjkv","cli","clr","cm","cmdb","cmmi","cmo","cmos","cms","cn","cnc","cng","cnr","cobol","com","corba","cots","cpa","cpan","cpri","cps","cpu","cr","cran","crc","crlf","crm","crs","crt","crud","cs","cse","csi","csm","csp","csrf","css","csv","ct","ctan","ctcp","ctfe","cti","ctl","ctm","cts","ctss","cua","cvs","dac","dal","dao","dap","darpa","dat","db","dba","dbcs","dbms","dcc","dcca","dccp","dcl","dcmi","dcom","dcs","dd","dde","ddi","ddl","ddr","dec","des","dfa","dfd","dfs","dgd","dhcp","dhtml","dif","dimm","din","dip","dism","divx","dkim","dl","dll","dlna","dlp","dma","dmca","dmi","dml","dmr","dmz","dn","dnd","dns","doa","docsis","dom","dos","dp","dpc","dpi","dpmi","dpms","dr","dram","dri","drm","dsa","dsdl","dsdm","dsl","dslam","dsn","dsp","dsssl","dtd","dte","dtp","dtr","dvd","dvi","dvr","dw","eai","eap","eas","ebcdic","ebml","ecc","ecma","ecn","ecos","ecrs","eda","edi","edo","edsac","edvac","eeprom","eff","efi","efm","efs","ega","egp","eide","eigrp","eisa","elf","emacs","ems","eniac","eod","eof","eol","eom","eos","eprom","erd","erm","erp","esb","escon","esd","esr","etl","etw","euc","eula","ewmh","ext","fap","faq","fasm","fbdimm","fcb","fcs","fdc","fdd","fddi","fdm","fdma","fds","fec","femb","fet","fhs","ficon","fifo","fips","fl","flac","flops","fmc","fmo","foldoc","fosdem","fosi","foss","fp","fpga","fps","fpu","fqdn","fru","fs","fsb","fsf","fsm","ftp","ftta","fttc","ftth","fttp","fud","fvek","fws","fxp","fyi","gb","gcc","gcj","gcr","gdb","gdi","geran","gfdl","gif","gigo","gimps","gis","gml","gnu","goms","gpasm","gpfs","gpg","gpgpu","gpib","gpl","gprs","gpt","gpu","gsm","gui","guid","gwt","gyr","hal","hasp","hba","hci","hcl","hd","hdd","hdl","hdmi","hf","hfs","hhd","hid","hig","hird","hlasm","hls","hma","hp","hpc","hpfs","hsdpa","hsm","ht","htc","htm","html","http","https","htx","hurd","hvd","iana","ibm","ic","icann","ich","icmp","icp","ics","ict","id","ide","idf","idl","ids","iec","ieee","ietf","ifl","igmp","igrp","ihv","iiop","iis","ike","il","im","imap","ime","infosec","ip","ipam","ipc","ipl","ipmi","ipo","ipp","ips","iptv","ipx","ir","irc","iri","irp","irq","isa","isam","isatap","isc","isdn","iso","isp","ispf","isr","isv","itil","itl","itu","ivcr","ivrs","jaxb","jaxp","jbod","jce","jcl","jcp","jdbc","jdk","jds","jee","jes","jfc","jfet","jfs","jini","jit","jme","jms","jmx","jndi","jni","jnz","jpeg","jre","js","jse","json","jsp","jtag","jvm","kb","kde","km","krl","kvm","lacp","lan","lb","lba","lcd","lcos","lcr","ldap","le","led","lf","lfs","lga","lgpl","lib","lif","lifo","lilo","lisp","lkml","lm","loc","lpc","lpi","lpt","lru","lsb","lsi","lte","ltl","ltr","lun","lv","lvd","lvm","lzw","mac","manet","mapi","mb","mbcs","mbd","mbr","mca","mcad","mcas","mcdba","mcdst","mcitp","mcm","mcp","mcpc","mcpd","mcsa","mcsd","mcse","mct","mcts","mda","mdf","mdi","mf","mfc","mfm","mgcp","mib","micr","midi","mimd","mime","mimo","minix","mips","mis","misd","mit","mmc","mmds","mmf","mmi","mmio","mmorpg","mmu","mmx","mng","mom","mos","mosfet","motd","mous","mov","mpaa","mpeg","mpl","mpls","mpu","ms","msa","msb","msdn","msi","msn","mt","mta","mtbf","mtu","mua","mvc","mvp","mvs","mwc","mx","mxf","nack","nak","nas","nasm","ncp","ncq","ncsa","ndis","ndps","nds","nep","nfa","nfc","nfs","ngl","ngscb","ni","nic","nim","nio","nist","nlp","nls","nmi","nntp","noc","nop","nos","np","npl","nptl","npu","ns","nsa","nsi","nspr","nss","nt","ntfs","ntlm","ntp","numa","nurbs","nvr","nvram","oat","obsai","odbc","oem","oes","ofdm","oftc","oid","olap","ole","oled","olpc","oltp","omf","omg","omr","oo","ooe","oom","oop","ootb","opml","orb","orm","os","oscon","osdn","osi","ospf","oss","ostg","oui","pap","parc","pata","pbs","pc","pcb","pci","pcl","pcm","pcmcia","pcre","pd","pda","pdf","pdh","pdp","pe","perl","pfa","pg","pga","pgo","pgp","php","pid","pim","pio","pkcs","pki","plc","pld","plt","pmm","png","pnrp","poid","pojo","posix","ppc","ppi","ppp","pptp","pr","ps","psa","psm","psu","psvi","pv","pvg","pvr","pxe","pxi","qa","qdr","qfp","qotd","qsop","qtam","racf","rad","raid","raii","rait","ram","rarp","ras","rc","rcs","rd","rdbms","rdc","rdf","rdm","rdos","rdp","rds","refal","rest","rf","rfc","rfi","rfid","rgb","rgba","rhel","rhl","ria","riaa","rip","rir","risc","rje","rle","rll","rmi","rms","rom","romb","rpc","rpg","rpm","rras","rsa","rsi","rss","rtai","rtc","rte","rtems","rtl","rtos","rtp","rts","rtsp","rtti","rwd","san","sas","sata","sax","sbod","sbu","scada","scid","scm","scp","scpc","scpi","scsa","scsi","sctp","sd","sddl","sdh","sdi","sdio","sdk","sdl","sdn","sdp","sdr","sdram","sdsl","se","sec","sei","seo","sftp","sgi","sgml","sgr","sha","shdsl","sigcat","siggraph","simd","simm","sip","sisd","siso","sles","sli","slm","sloc","sma","smb","smbios","sme","smf","smil","smp","smps","sms","smt","smtp","sna","snmp","sntp","soa","soe","soho","soi","sopa","sp","spa","sparc","spf","spi","spm","spmd","sql","sram","ssa","ssd","ssdp","sse","ssh","ssi","ssid","ssl","ssp","ssse","sssp","sstp","sus","suse","svc","svd","svg","svga","swf","swt","tao","tapi","tasm","tb","tcp","tcu","tdma","tft","tftp","ti","tla","tld","tls","tlv","tnc","tpf","tpm","troff","tron","trsdos","tso","tsp","tsr","tta","ttf","ttl","tts","tty","tucows","twain","uaag","uac","uart","uat","ucs","uddi","udma","udp","uefi","uhf","ui","ul","ula","uma","umb","uml","umpc","umts","unc","univac","ups","uri","url","usb","usr","utc","utf","utp","utran","uucp","uuid","uun","uvc","uwp","ux","vax","vb","vba","vbs","vcpi","vdm","vdsl","vesa","vfat","vfs","vg","vga","vhf","vlan","vlb","vlf","vliw","vlsi","vlsm","vm","vmm","vnc","vod","vpn","vpu","vr","vram","vrml","vsam","vsat","vt","vtam","vtl","wafs","wai","wais","wan","wap","wasm","wbem","wcag","wcf","wdm","wep","wfi","wins","wlan","wma","wmi","wmv","wns","wol","wor","wora","wpa","wpad","wpan","wpf","wsdl","wsfl","wusb","wwan","wwdc","wwid","wwn","www","wysiwyg","wzc","xag","xaml","xcbl","xdm","xdmcp","xhtml","xilp","xml","xmms","xmpp","xms","xns","xp","xpcom","xpi","xpidl","xps","xsd","xsl","xslt","xss","xtf","xul","xvga","yaaf","yacc","yaml","zcav","zcs","zif","zifs","zisc","zma","zoi","zope","zpl"];var a;(function(u){u.Pascal="pascal",u.Camel="camel",u.Original="original",u.Lower="lowerCase"})(a=e.AcronymStyleOptions||(e.AcronymStyleOptions={}));const l=function(u){return new i.EnumOption("acronym-style","Acronym naming style",[[a.Original,a.Original],[a.Pascal,a.Pascal],[a.Camel,a.Camel],[a.Lower,a.Lower]],u,"secondary")};e.acronymOption=l;function d(u){return{[a.Pascal]:n.allUpperWordStyle,[a.Camel]:n.firstUpperWordStyle,[a.Original]:n.originalWord,[a.Lower]:n.allLowerWordStyle}[u]}e.acronymStyle=d})(Tl)),Tl}var vl={exports:{}},_s={},lp;function Jc(){if(lp)return _s;lp=1,_s.byteLength=c,_s.toByteArray=U,_s.fromByteArray=M;for(var e=[],i=[],n=typeof Uint8Array<"u"?Uint8Array:Array,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",l=0,d=a.length;l<d;++l)e[l]=a[l],i[a.charCodeAt(l)]=l;i[45]=62,i[95]=63;function u(L){var _=L.length;if(_%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var b=L.indexOf("=");b===-1&&(b=_);var v=b===_?0:4-b%4;return[b,v]}function c(L){var _=u(L),b=_[0],v=_[1];return(b+v)*3/4-v}function w(L,_,b){return(_+b)*3/4-b}function U(L){var _,b=u(L),v=b[0],h=b[1],m=new n(w(L,v,h)),k=0,B=h>0?v-4:v,C;for(C=0;C<B;C+=4)_=i[L.charCodeAt(C)]<<18|i[L.charCodeAt(C+1)]<<12|i[L.charCodeAt(C+2)]<<6|i[L.charCodeAt(C+3)],m[k++]=_>>16&255,m[k++]=_>>8&255,m[k++]=_&255;return h===2&&(_=i[L.charCodeAt(C)]<<2|i[L.charCodeAt(C+1)]>>4,m[k++]=_&255),h===1&&(_=i[L.charCodeAt(C)]<<10|i[L.charCodeAt(C+1)]<<4|i[L.charCodeAt(C+2)]>>2,m[k++]=_>>8&255,m[k++]=_&255),m}function F(L){return e[L>>18&63]+e[L>>12&63]+e[L>>6&63]+e[L&63]}function O(L,_,b){for(var v,h=[],m=_;m<b;m+=3)v=(L[m]<<16&16711680)+(L[m+1]<<8&65280)+(L[m+2]&255),h.push(F(v));return h.join("")}function M(L){for(var _,b=L.length,v=b%3,h=[],m=16383,k=0,B=b-v;k<B;k+=m)h.push(O(L,k,k+m>B?B:k+m));return v===1?(_=L[b-1],h.push(e[_>>2]+e[_<<4&63]+"==")):v===2&&(_=(L[b-2]<<8)+L[b-1],h.push(e[_>>10]+e[_>>4&63]+e[_<<2&63]+"=")),h.join("")}return _s}var Sl,cp;function R_(){if(cp)return Sl;cp=1;var e=0,i=-3;function n(){this.table=new Uint16Array(16),this.trans=new Uint16Array(288)}function a(f,E){this.source=f,this.sourceIndex=0,this.tag=0,this.bitcount=0,this.dest=E,this.destLen=0,this.ltree=new n,this.dtree=new n}var l=new n,d=new n,u=new Uint8Array(30),c=new Uint16Array(30),w=new Uint8Array(30),U=new Uint16Array(30),F=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),O=new n,M=new Uint8Array(320);function L(f,E,S,P){var y,r;for(y=0;y<S;++y)f[y]=0;for(y=0;y<30-S;++y)f[y+S]=y/S|0;for(r=P,y=0;y<30;++y)E[y]=r,r+=1<<f[y]}function _(f,E){var S;for(S=0;S<7;++S)f.table[S]=0;for(f.table[7]=24,f.table[8]=152,f.table[9]=112,S=0;S<24;++S)f.trans[S]=256+S;for(S=0;S<144;++S)f.trans[24+S]=S;for(S=0;S<8;++S)f.trans[168+S]=280+S;for(S=0;S<112;++S)f.trans[176+S]=144+S;for(S=0;S<5;++S)E.table[S]=0;for(E.table[5]=32,S=0;S<32;++S)E.trans[S]=S}var b=new Uint16Array(16);function v(f,E,S,P){var y,r;for(y=0;y<16;++y)f.table[y]=0;for(y=0;y<P;++y)f.table[E[S+y]]++;for(f.table[0]=0,r=0,y=0;y<16;++y)b[y]=r,r+=f.table[y];for(y=0;y<P;++y)E[S+y]&&(f.trans[b[E[S+y]]++]=y)}function h(f){f.bitcount--||(f.tag=f.source[f.sourceIndex++],f.bitcount=7);var E=f.tag&1;return f.tag>>>=1,E}function m(f,E,S){if(!E)return S;for(;f.bitcount<24;)f.tag|=f.source[f.sourceIndex++]<<f.bitcount,f.bitcount+=8;var P=f.tag&65535>>>16-E;return f.tag>>>=E,f.bitcount-=E,P+S}function k(f,E){for(;f.bitcount<24;)f.tag|=f.source[f.sourceIndex++]<<f.bitcount,f.bitcount+=8;var S=0,P=0,y=0,r=f.tag;do P=2*P+(r&1),r>>>=1,++y,S+=E.table[y],P-=E.table[y];while(P>=0);return f.tag=r,f.bitcount-=y,E.trans[S+P]}function B(f,E,S){var P,y,r,s,p,g;for(P=m(f,5,257),y=m(f,5,1),r=m(f,4,4),s=0;s<19;++s)M[s]=0;for(s=0;s<r;++s){var I=m(f,3,0);M[F[s]]=I}for(v(O,M,0,19),p=0;p<P+y;){var x=k(f,O);switch(x){case 16:var q=M[p-1];for(g=m(f,2,3);g;--g)M[p++]=q;break;case 17:for(g=m(f,3,3);g;--g)M[p++]=0;break;case 18:for(g=m(f,7,11);g;--g)M[p++]=0;break;default:M[p++]=x;break}}v(E,M,0,P),v(S,M,P,y)}function C(f,E,S){for(;;){var P=k(f,E);if(P===256)return e;if(P<256)f.dest[f.destLen++]=P;else{var y,r,s,p;for(P-=257,y=m(f,u[P],c[P]),r=k(f,S),s=f.destLen-m(f,w[r],U[r]),p=s;p<s+y;++p)f.dest[f.destLen++]=f.dest[p]}}}function R(f){for(var E,S,P;f.bitcount>8;)f.sourceIndex--,f.bitcount-=8;if(E=f.source[f.sourceIndex+1],E=256*E+f.source[f.sourceIndex],S=f.source[f.sourceIndex+3],S=256*S+f.source[f.sourceIndex+2],E!==(~S&65535))return i;for(f.sourceIndex+=4,P=E;P;--P)f.dest[f.destLen++]=f.source[f.sourceIndex++];return f.bitcount=0,e}function A(f,E){var S=new a(f,E),P,y,r;do{switch(P=h(S),y=m(S,2,0),y){case 0:r=R(S);break;case 1:r=C(S,l,d);break;case 2:B(S,S.ltree,S.dtree),r=C(S,S.ltree,S.dtree);break;default:r=i}if(r!==e)throw new Error("Data error")}while(!P);return S.destLen<S.dest.length?typeof S.dest.slice=="function"?S.dest.slice(0,S.destLen):S.dest.subarray(0,S.destLen):S.dest}return _(l,d),L(u,c,4,3),L(w,U,2,1),u[28]=0,c[28]=258,Sl=A,Sl}var wl,fp;function M_(){if(fp)return wl;fp=1;const e=new Uint8Array(new Uint32Array([305419896]).buffer)[0]===18,i=(l,d,u)=>{let c=l[d];l[d]=l[u],l[u]=c},n=l=>{const d=l.length;for(let u=0;u<d;u+=4)i(l,u,u+3),i(l,u+1,u+2)};return wl={swap32LE:l=>{e&&n(l)}},wl}var Ll,dp;function B_(){if(dp)return Ll;dp=1;const e=R_(),{swap32LE:i}=M_(),n=11,a=5,l=n-a,d=65536>>n,c=(1<<l)-1,w=2,F=(1<<a)-1,O=65536>>a,M=1024>>a,v=O+M+32,h=1<<w;class m{constructor(B){const C=typeof B.readUInt32BE=="function"&&typeof B.slice=="function";if(C||B instanceof Uint8Array){let R;if(C)this.highStart=B.readUInt32LE(0),this.errorValue=B.readUInt32LE(4),R=B.readUInt32LE(8),B=B.slice(12);else{const A=new DataView(B.buffer);this.highStart=A.getUint32(0,!0),this.errorValue=A.getUint32(4,!0),R=A.getUint32(8,!0),B=B.subarray(12)}B=e(B,new Uint8Array(R)),B=e(B,new Uint8Array(R)),i(B),this.data=new Uint32Array(B.buffer)}else({data:this.data,highStart:this.highStart,errorValue:this.errorValue}=B)}get(B){let C;return B<0||B>1114111?this.errorValue:B<55296||B>56319&&B<=65535?(C=(this.data[B>>a]<<w)+(B&F),this.data[C]):B<=65535?(C=(this.data[O+(B-55296>>a)]<<w)+(B&F),this.data[C]):B<this.highStart?(C=this.data[v-d+(B>>n)],C=this.data[C+(B>>a&c)],C=(C<<w)+(B&F),this.data[C]):this.data[this.data.length-h]}}return Ll=m,Ll}var hp;function so(){return hp||(hp=1,(function(e){var i=Jc(),n=B_();function a(J){return J&&J.__esModule?J.default:J}function l(J){Object.defineProperty(J,"__esModule",{value:!0,configurable:!0})}function d(J,X,Q,re){Object.defineProperty(J,X,{get:Q,set:re,enumerable:!0,configurable:!0})}l(e.exports),d(e.exports,"getCategory",()=>f),d(e.exports,"getCombiningClass",()=>E),d(e.exports,"getScript",()=>S),d(e.exports,"getEastAsianWidth",()=>P),d(e.exports,"getNumericValue",()=>y),d(e.exports,"isAlphabetic",()=>r),d(e.exports,"isDigit",()=>s),d(e.exports,"isPunctuation",()=>p),d(e.exports,"isLowerCase",()=>g),d(e.exports,"isUpperCase",()=>I),d(e.exports,"isTitleCase",()=>x),d(e.exports,"isWhiteSpace",()=>q),d(e.exports,"isBaseForm",()=>T),d(e.exports,"isMark",()=>D),d(e.exports,"default",()=>W);var u={};u=JSON.parse('{"categories":["Cc","Zs","Po","Sc","Ps","Pe","Sm","Pd","Nd","Lu","Sk","Pc","Ll","So","Lo","Pi","Cf","No","Pf","Lt","Lm","Mn","Me","Mc","Nl","Zl","Zp","Cs","Co"],"combiningClasses":["Not_Reordered","Above","Above_Right","Below","Attached_Above_Right","Attached_Below","Overlay","Iota_Subscript","Double_Below","Double_Above","Below_Right","Above_Left","CCC10","CCC11","CCC12","CCC13","CCC14","CCC15","CCC16","CCC17","CCC18","CCC19","CCC20","CCC21","CCC22","CCC23","CCC24","CCC25","CCC30","CCC31","CCC32","CCC27","CCC28","CCC29","CCC33","CCC34","CCC35","CCC36","Nukta","Virama","CCC84","CCC91","CCC103","CCC107","CCC118","CCC122","CCC129","CCC130","CCC132","Attached_Above","Below_Left","Left","Kana_Voicing","CCC26","Right"],"scripts":["Common","Latin","Bopomofo","Inherited","Greek","Coptic","Cyrillic","Armenian","Hebrew","Arabic","Syriac","Thaana","Nko","Samaritan","Mandaic","Devanagari","Bengali","Gurmukhi","Gujarati","Oriya","Tamil","Telugu","Kannada","Malayalam","Sinhala","Thai","Lao","Tibetan","Myanmar","Georgian","Hangul","Ethiopic","Cherokee","Canadian_Aboriginal","Ogham","Runic","Tagalog","Hanunoo","Buhid","Tagbanwa","Khmer","Mongolian","Limbu","Tai_Le","New_Tai_Lue","Buginese","Tai_Tham","Balinese","Sundanese","Batak","Lepcha","Ol_Chiki","Braille","Glagolitic","Tifinagh","Han","Hiragana","Katakana","Yi","Lisu","Vai","Bamum","Syloti_Nagri","Phags_Pa","Saurashtra","Kayah_Li","Rejang","Javanese","Cham","Tai_Viet","Meetei_Mayek","null","Linear_B","Lycian","Carian","Old_Italic","Gothic","Old_Permic","Ugaritic","Old_Persian","Deseret","Shavian","Osmanya","Osage","Elbasan","Caucasian_Albanian","Linear_A","Cypriot","Imperial_Aramaic","Palmyrene","Nabataean","Hatran","Phoenician","Lydian","Meroitic_Hieroglyphs","Meroitic_Cursive","Kharoshthi","Old_South_Arabian","Old_North_Arabian","Manichaean","Avestan","Inscriptional_Parthian","Inscriptional_Pahlavi","Psalter_Pahlavi","Old_Turkic","Old_Hungarian","Hanifi_Rohingya","Old_Sogdian","Sogdian","Elymaic","Brahmi","Kaithi","Sora_Sompeng","Chakma","Mahajani","Sharada","Khojki","Multani","Khudawadi","Grantha","Newa","Tirhuta","Siddham","Modi","Takri","Ahom","Dogra","Warang_Citi","Nandinagari","Zanabazar_Square","Soyombo","Pau_Cin_Hau","Bhaiksuki","Marchen","Masaram_Gondi","Gunjala_Gondi","Makasar","Cuneiform","Egyptian_Hieroglyphs","Anatolian_Hieroglyphs","Mro","Bassa_Vah","Pahawh_Hmong","Medefaidrin","Miao","Tangut","Nushu","Duployan","SignWriting","Nyiakeng_Puachue_Hmong","Wancho","Mende_Kikakui","Adlam"],"eaw":["N","Na","A","W","H","F"]}');const c=new(a(n))(a(i).toByteArray("AAARAAAAAADwfAEAZXl5ONRt+/5bPVFZimRfKoTQJNm37CGE7Iw0j3UsTWKsoyI7kwyyTiEUzSD7NiEzhWYijH0wMVkHE4Mx49fzfo+3nuP4/fdZjvv+XNd5n/d9nef1WZvmKhTxiZndzDQBSEYQqxqKwnsKvGQucFh+6t6cJ792ePQBZv5S9yXSwkyjf/P4T7mTNnIAv1dOVhMlR9lflbUL9JeJguqsjvG9NTj/wLb566VAURnLo2vvRi89S3gW/33ihh2eXpDn40BIW7REl/7coRKIhAFlAiOtbLDTt6mMb4GzMF1gNnvX/sBxtbsAIjfztCNcQjcNDtLThRvuXu5M5g/CBjaLBE4lJm4qy/oZD97+IJryApcXfgWYlkvWbhfXgujOJKVu8B+ozqTLbxyJ5kNiR75CxDqfBM9eOlDMmGeoZ0iQbbS5VUplIwI+ZNXEKQVJxlwqjhOY7w3XwPesbLK5JZE+Tt4X8q8km0dzInsPPzbscrjBMVjF5mOHSeRdJVgKUjLTHiHqXSPkep8N/zFk8167KLp75f6RndkvzdfB6Uz3MmqvRArzdCbs1/iRZjYPLLF3U8Qs+H+Rb8iK51a6NIV2V9+07uJsTGFWpPz8J++7iRu2B6eAKlK/kujrLthwaD/7a6J5w90TusnH1JMAc+gNrql4aspOUG/RrsxUKmPzhHgP4Bleru+6Vfc/MBjgXVx7who94nPn7MPFrnwQP7g0k0Dq0h2GSKO6fTZ8nLodN1SiOUj/5EL/Xo1DBvRm0wmrh3x6phcJ20/9CuMr5h8WPqXMSasLoLHoufTmE7mzYrs6B0dY7KjuCogKqsvxnxAwXWvd9Puc9PnE8DOHT2INHxRlIyVHrqZahtfV2E/A2PDdtA3ewlRHMtFIBKO/T4IozWTQZ+mb+gdKuk/ZHrqloucKdsOSJmlWTSntWjcxVMjUmroXLM10I6TwDLnBq4LP69TxgVeyGsd8yHvhF8ydPlrNRSNs9EP7WmeuSE7Lu10JbOuQcJw/63sDp68wB9iwP5AO+mBpV0R5VDDeyQUFCel1G+4KHBgEVFS0YK+m2sXLWLuGTlkVAd97WwKKdacjWElRCuDRauf33l/yVcDF6sVPKeTes99FC1NpNWcpieGSV/IbO8PCTy5pbUR1U8lxzf4T+y6fZMxOz3LshkQLeeDSd0WmUrQgajmbktrxsb2AZ0ACw2Vgni+gV/m+KvCRWLg08Clx7uhql+v9XySGcjjOHlsp8vBw/e8HS7dtiqF6T/XcSXuaMW66GF1g4q9YyBadHqy3Y5jin1c7yZos6BBr6dsomSHxiUHanYtcYQwnMMZhRhOnaYJeyJzaRuukyCUh48+e/BUvk/aEfDp8ag+jD64BHxNnQ5v/E7WRk7eLjGV13I3oqy45YNONi/1op1oDr7rPjkhPsTXgUpQtGDPlIs55KhQaic9kSGs/UrZ2QKQOflB8MTEQxRF9pullToWO7Eplan6mcMRFnUu2441yxi23x+KqKlr7RWWsi9ZXMWlr8vfP3llk1m2PRj0yudccxBuoa7VfIgRmnFPGX6Pm1WIfMm/Rm4n/xTn8IGqA0GWuqgu48pEUO0U9nN+ZdIvFpPb7VDPphIfRZxznlHeVFebkd9l+raXy9BpTMcIUIvBfgHEb6ndGo8VUkxpief14KjzFOcaANfgvFpvyY8lE8lE4raHizLpluPzMks1hx/e1Hok5yV0p7qQH7GaYeMzzZTFvRpv6k6iaJ4yNqzBvN8J7B430h2wFm1IBPcqbou33G7/NWPgopl4Mllla6e24L3TOTVNkza2zv3QKuDWTeDpClCEYgTQ+5vEBSQZs/rMF50+sm4jofTgWLqgX1x3TkrDEVaRqfY/xZizFZ3Y8/DFEFD31VSfBQ5raEB6nHnZh6ddehtclQJ8fBrldyIh99LNnV32HzKEej04hk6SYjdauCa4aYW0ru/QxvQRGzLKOAQszf3ixJypTW3WWL6BLSF2EMCMIw7OUvWBC6A/gDc2D1jvBapMCc7ztx6jYczwTKsRLL6dMNXb83HS8kdD0pTMMj161zbVHkU0mhSHo9SlBDDXdN6hDvRGizmohtIyR3ot8tF5iUG4GLNcXeGvBudSFrHu+bVZb9jirNVG+rQPI51A7Hu8/b0UeaIaZ4UgDO68PkYx3PE2HWpKapJ764Kxt5TFYpywMy4DLQqVRy11I7SOLhxUFmqiEK52NaijWArIfCg6qG8q5eSiwRCJb1R7GDJG74TrYgx/lVq7w9++Kh929xSJEaoSse5fUOQg9nMAnIZv+7fwVRcNv3gOHI46Vb5jYUC66PYHO6lS+TOmvEQjuYmx4RkffYGxqZIp/DPWNHAixbRBc+XKE3JEOgs4jIwu/dSAwhydruOGF39co91aTs85JJ3Z/LpXoF43hUwJsb/M1Chzdn8HX8vLXnqWUKvRhNLpfAF4PTFqva1sBQG0J+59HyYfmQ3oa4/sxZdapVLlo/fooxSXi/dOEQWIWq8E0FkttEyTFXR2aNMPINMIzZwCNEheYTVltsdaLkMyKoEUluPNAYCM2IG3br0DLy0fVNWKHtbSKbBjfiw7Lu06gQFalC7RC9BwRMSpLYDUo9pDtDfzwUiPJKLJ2LGcSphWBadOI/iJjNqUHV7ucG8yC6+iNM9QYElqBR7ECFXrcTgWQ3eG/tCWacT9bxIkfmxPmi3vOd36KxihAJA73vWNJ+Y9oapXNscVSVqS5g15xOWND/WuUCcA9YAAg6WFbjHamrblZ5c0L6Zx1X58ZittGcfDKU697QRSqW/g+RofNRyvrWMrBn44cPvkRe2HdTu/Cq01C5/riWPHZyXPKHuSDDdW8c1XPgd6ogvLh20qEIu8c19sqr4ufyHrwh37ZN5MkvY1dsGmEz9pUBTxWrvvhNyODyX2Q1k/fbX/T/vbHNcBrmjgDtvBdtZrVtiIg5iXQuzO/DEMvRX8Mi1zymSlt92BGILeKItjoShJXE/H7xwnf0Iewb8BFieJ9MflEBCQYEDm8eZniiEPfGoaYiiEdhQxHQNr2AuRdmbL9mcl18Kumh+HEZLp6z+j35ML9zTbUwahUZCyQQOgQrGfdfQtaR/OYJ/9dYXb2TWZFMijfCA8Nov4sa5FFDUe1T68h4q08WDE7JbbDiej4utRMR9ontevxlXv6LuJTXt1YEv8bDzEt683PuSsIN0afvu0rcBu9AbXZbkOG3K3AhtqQ28N23lXm7S3Yn6KXmAhBhz+GeorJJ4XxO/b3vZk2LXp42+QvsVxGSNVpfSctIFMTR1bD9t70i6sfNF3WKz/uKDEDCpzzztwhL45lsw89H2IpWN10sXHRlhDse9KCdpP5qNNpU84cTY+aiqswqR8XZ9ea0KbVRwRuOGQU3csAtV2fSbnq47U6es6rKlWLWhg3s/B9C9g+oTyp6RtIldR51OOkP5/6nSy6itUVPcMNOp4M/hDdKOz3uK6srbdxOrc2cJgr1Sg02oBxxSky6V7JaG+ziNwlfqnjnvh2/uq1lKfbp+qpwq/D/5OI5gkFl5CejKGxfc2YVJfGqc4E0x5e9PHK2ukbHNI7/RZV6LNe65apbTGjoCaQls0txPPbmQbCQn+/upCoXRZy9yzorWJvZ0KWcbXlBxU/d5I4ERUTxMuVWhSMmF677LNN7NnLwsmKawXkCgbrpcluOl0WChR1qhtSrxGXHu251dEItYhYX3snvn1gS2uXuzdTxCJjZtjsip0iT2sDC0qMS7Bk9su2NyXjFK5/f5ZoWwofg3DtTyjaFqspnOOTSh8xK/CKUFS57guVEkw9xoQuRCwwEO9Lu9z2vYxSa9NFV8DvSxv2C4WYLYF8Nrc4DzWkzNsk81JJOlZ/LYJrGCoj4MmZpnf3AXmzxT4rtl9jsqljEyedz468SGKdBiQzyz/qWKEhFg45ZczlZZ3KGL3l6sn+3TTa3zMVMhPa1obGp/z+fvY0QXTrJTf1XAT3EtQdUfYYlmWZyvPZ/6rWwU7UOQei7pVE0osgN94Iy+T1+omE6z4Rh2O20FjgBeK2y1mcoFiMDOJvuZPn5Moy9fmFH3wyfKvn4+TwfLvt/lHTTVnvrtoUWRBiQXhiNM8nE6ZoWeux/Z0b2unRcdUzdDpmL7CAgd1ToRXwgmHTZOgiGtVT+xr1QH9ObebRTT4NzL+XSpLuuWp62GqQvJVTPoZOeJCb6gIwd9XHMftQ+Kc08IKKdKQANSJ1a2gve3JdRhO0+tNiYzWAZfd7isoeBu67W7xuK8WX7nhJURld98Inb0t/dWOSau/kDvV4DJo/cImw9AO2Gvq0F2n0M7yIZKL8amMbjYld+qFls7hq8Acvq97K2PrCaomuUiesu7qNanGupEl6J/iem8lyr/NMnsTr6o41PO0yhQh3hPFN0wJP7S830je9iTBLzUNgYH+gUZpROo3rN2qgCI+6GewpX8w8CH+ro6QrWiStqmcMzVa3vEel+3/dDxMp0rDv1Q6wTMS3K64zTT6RWzK1y643im25Ja7X2ePCV2mTswd/4jshZPo4bLnerqIosq/hy2bKUAmVn9n4oun1+a0DIZ56UhVwmZHdUNpLa8gmPvxS1eNvCF1T0wo1wKPdCJi0qOrWz7oYRTzgTtkzEzZn308XSLwUog4OWGKJzCn/3FfF9iA32dZHSv30pRCM3KBY9WZoRhtdK/ChHk6DEQBsfV6tN2o1Cn0mLtPBfnkS+qy1L2xfFe9TQPtDE1Be44RTl82E9hPT2rS2+93LFbzhQQO3C/hD2jRFH3BWWbasAfuMhRJFcTri73eE835y016s22DjoFJ862WvLj69fu2TgSF3RHia9D5DSitlQAXYCnbdqjPkR287Lh6dCHDapos+eFDvcZPP2edPmTFxznJE/EBLoQQ0Qmn9EkZOyJmHxMbvKYb8o21ZHmv5YLqgsEPk9gWZwYQY9wLqGXuax/8QlV5qDaPbq9pLPT1yp+zOWKmraEy1OUJI7zdEcEmvBpbdwLrDCgEb2xX8S/nxZgjK4bRi+pbOmbh8bEeoPvU/L9ndx9kntlDALbdAvp0O8ZC3zSUnFg4cePsw7jxewWvL7HRSBLUn6J7vTH9uld5N76JFPgBCdXGF221oEJk++XfRwXplLSyrVO7HFWBEs99nTazKveW3HpbD4dH/YmdAl+lwbSt8BQWyTG7jAsACI7bPPUU9hI9XUHWqQOuezHzUjnx5Qqs6T1qNHfTTHleDtmqK7flA9a0gz2nycIpz1FHBuWxKNtUeTdqP29Fb3tv+tl5JyBqXoR+vCsdzZwZUhf6Lu8bvkB9yQP4x7GGegB0ym0Lpl03Q7e+C0cDsm9GSDepCDji7nUslLyYyluPfvLyKaDSX4xpR+nVYQjQQn5F8KbY1gbIVLiK1J3mW90zTyR1bqApX2BlWh7KG8LAY9/S9nWC0XXh9pZZo6xuir12T43rkaGfQssbQyIslA7uJnSHOV22NhlNtUo0czxPAsXhh8tIQYaTM4l/yAlZlydTcXhlG22Gs/n3BxKBd/3ZjYwg3NaUurVXhNB+afVnFfNr9TbC9ksNdvwpNfeHanyJ8M6GrIVfLlYAPv0ILe4dn0Z+BJSbJkN7eZY/c6+6ttDYcIDeUKIDXqUSE42Xdh5nRbuaObozjht0HJ5H1e+em+NJi/+8kQlyjCbJpPckwThZeIF9/u7lrVIKNeJLCN/TpPAeXxvd31/CUDWHK9MuP1V1TJgngzi4V0qzS3SW3Qy5UiGHqg02wQa5tsEl9s/X9nNMosgLlUgZSfCBj1DiypLfhr9/r0nR0XY2tmhDOcUS4E7cqa4EJBhzqvpbZa35Q5Iz5EqmhYiOGDAYk606Tv74+KGfPjKVuP15rIzgW0I7/niOu9el/sn2bRye0gV+GrePDRDMHjwO1lEdeXH8N+UTO3IoN18kpI3tPxz+fY+n2MGMSGFHAx/83tKeJOl+2i+f1O9v6FfEDBbqrw+lpM8Anav7zHNr7hE78nXUtPNodMbCnITWA7Ma/IHlZ50F9hWge/wzOvSbtqFVFtkS8Of2nssjZwbSFdU+VO8z6tCEc9UA9ACxT5zIUeSrkBB/v1krOpm7bVMrGxEKfI6LcnpB4D8bvn2hDKGqKrJaVAJuDaBEY3F7eXyqnFWlOoFV/8ZLspZiZd7orXLhd4mhHQgbuKbHjJWUzrnm0Dxw/LJLzXCkh7slMxKo8uxZIWZfdKHlfI7uj3LP6ARAuWdF7ZmZ7daOKqKGbz5LxOggTgS39oEioYmrqkCeUDvbxkBYKeHhcLmMN8dMF01ZMb32IpL/cH8R7VHQSI5I0YfL14g9d7P/6cjB1JXXxbozEDbsrPdmL8ph7QW10jio+v7YsqHKQ6xrBbOVtxU0/nFfzUGZwIBLwyUvg49ii+54nv9FyECBpURnQK4Ox6N7lw5fsjdd5l/2SwBcAHMJoyjO1Pifye2dagaOwCVMqdJWAo77pvBe0zdJcTWu5fdzPNfV2p1pc7/JKQ8zhKkwsOELUDhXygPJ5oR8Vpk2lsCen3D3QOQp2zdrSZHjVBstDF/wWO98rrkQ6/7zt/Drip7OHIug1lomNdmRaHRrjmqeodn22sesQQPgzimPOMqC60a5+i/UYh51uZm+ijWkkaI2xjrBO2558DZNZMiuDQlaVAvBy2wLn/bR3FrNzfnO/9oDztYqxZrr7JMIhqmrochbqmQnKowxW29bpqTaJu7kW1VotC72QkYX8OoDDdMDwV1kJRk3mufgJBzf+iwFRJ7XWQwO5ujVglgFgHtycWiMLx5N+6XU+TulLabWjOzoao03fniUW0xvIJNPbk7CQlFZd/RCOPvgQbLjh5ITE8NVJeKt3HGr6JTnFdIzcVOlEtwqbIIX0IM7saC+4N5047MTJ9+Wn11EhyEPIlwsHE5utCeXRjQzlrR+R1Cf/qDzcNbqLXdk3J7gQ39VUrrEkS/VMWjjg+t2oYrqB0tUZClcUF6+LBC3EQ7KnGIwm/qjZX4GKPtjTX1zQKV6nPAb2t/Rza5IqKRf8i2DFEhV/YSifX0YwsiF6TQnp48Gr65TFq0zUe6LGjiY7fq0LSGKL1VnC6ESI2yxvt3XqBx53B3gSlGFeJcPbUbonW1E9E9m4NfuwPh+t5QjRxX34lvBPVxwQd7aeTd+r9dw5CiP1pt8wMZoMdni7GapYdo6KPgeQKcmlFfq4UYhvV0IBgeiR3RnTMBaqDqpZrTRyLdsp4l0IXZTdErfH0sN3dqBG5vRIx3VgCYcHmmkqJ8Hyu3s9K9uBD1d8cZUEx3qYcF5vsqeRpF1GOg8emeWM2OmBlWPdZ6qAXwm3nENFyh+kvXk132PfWAlN0kb7yh4fz2T7VWUY/hEXX5DvxGABC03XRpyOG8t/u3Gh5tZdpsSV9AWaxJN7zwhVglgII1gV28tUViyqn4UMdIh5t+Ea2zo7PO48oba0TwQbiSZOH4YhD578kPF3reuaP7LujPMsjHmaDuId9XEaZBCJhbXJbRg5VCk3KJpryH/+8S3wdhR47pdFcmpZG2p0Bpjp/VbvalgIZMllYX5L31aMPdt1J7r/7wbixt0Mnz2ZvNGTARHPVD+2O1D8SGpWXlVnP2ekgon55YiinADDynyaXtZDXueVqbuTi8z8cHHK325pgqM+mWZwzHeEreMvhZopAScXM14SJHpGwZyRljMlDvcMm9FZ/1e9+r/puOnpXOtc9Iu2fmgBfEP9cGW1Fzb1rGlfJ08pACtq1ZW18bf2cevebzVeHbaA50G9qoUp39JWdPHbYkPCRXjt4gzlq3Cxge28Mky8MoS/+On72kc+ZI2xBtgJytpAQHQ1zrEddMIVyR5urX6yBNu8v5lKC8eLdGKTJtbgIZ3ZyTzSfWmx9f+cvcJe8yM39K/djkp2aUTE/9m2Lj5jg7b8vdRAer7DO3SyLNHs1CAm5x5iAdh2yGJYivArZbCBNY88Tw+w+C1Tbt7wK3zl2rzTHo/D8/gb3c3mYrnEIEipYqPUcdWjnTsSw471O3EUN7Gtg4NOAs9PJrxm03VuZKa5xwXAYCjt7Gs01Km6T2DhOYUMoFcCSu7Hk1p3yP1eG+M3v3Q5luAze6WwBnZIYO0TCucPWK+UJ36KoJ8Y+vpavhLO8g5ed704IjlQdfemrMu//EvPYXTQSGIPPfiagJS9nMqP5IvkxN9pvuJz7h8carPXTKMq8jnTeL0STan6dnLTAqwIswcIwWDR2KwbGddAVN8SYWRB7kfBfBRkSXzvHlIF8D6jo64kUzYk5o/n8oLjKqat0rdXvQ86MkwQGMnnlcasqPPT2+mVtUGb32KuH6cyZQenrRG11TArcAl27+nvOMBDe++EKHf4YdyGf7mznzOz33cFFGEcv329p4qG2hoaQ8ULiMyVz6ENcxhoqGnFIdupcn7GICQWuw3yO3W8S33mzCcMYJ8ywc7U7rmaQf/W5K63Gr4bVTpXOyOp4tbaPyIaatBNpXqlmQUTSZXjxPr19+73PSaT+QnI35YsWn6WpfJjRtK8vlJZoTSgjaRU39AGCkWOZtifJrnefCrqwTKDFmuWUCukEsYcRrMzCoit28wYpP7kSVjMD8WJYQiNc2blMjuqYegmf6SsfC1jqz8XzghMlOX+gn/MKZmgljszrmehEa4V98VreJDxYvHr3j7IeJB9/sBZV41BWT/AZAjuC5XorlIPnZgBAniBEhanp0/0+qZmEWDpu8ige1hUPIyTo6T6gDEcFhWSoduNh8YSu65KgMOGBw7VlNYzNIgwHtq9KP2yyTVysqX5v12sf7D+vQUdR2dRDvCV40rIInXSLWT/yrC6ExOQxBJwIDbeZcl3z1yR5Rj3l8IGpxspapnvBL+fwupA3b6fkFceID9wgiM1ILB0cHVdvo/R4xg8yqKXT8efl0GnGX1/27FUYeUW2L/GNRGGWVGp3i91oaJkb4rybENHre9a2P5viz/yqk8ngWUUS+Kv+fu+9BLFnfLiLXOFcIeBJLhnayCiuDRSqcx0Qu68gVsGYc6EHD500Fkt+gpDj6gvr884n8wZ5o6q7xtL5wA0beXQnffWYkZrs2NGIRgQbsc5NB302SVx+R4ROvmgZaR8wBcji128BMfJ9kcvJ4DC+bQ57kRmv5yxgU4ngZfn0/JNZ8JBwxjTqS+s9kjJFG1unGUGLwMiIuXUD9EFhNIJuyCEAmVZSIGKH4G6v1gRR1LyzQKH2ZqiI1DnHMoDEZspbDjTeaFIAbSvjSq3A+n46y9hhVM8wIpnARSXyzmOD96d9UXvFroSPgGw1dq2vdEqDq9fJN1EbL2WulNmHkFDvxSO9ZT/RX/Bw2gA/BrF90XrJACereVfbV/YXaKfp77Nmx5NjEIUlxojsy7iN7nBHSZigfsbFyVOX1ZTeCCxvqnRSExP4lk5ZeYlRu9caaa743TWNdchRIhEWwadsBIe245C8clpaZ4zrPsk+OwXzxWCvRRumyNSLW5KWaSJyJU95cwheK76gr7228spZ3hmTtLyrfM2QRFqZFMR8/Q6yWfVgwTdfX2Ry4w3+eAO/5VT5nFb5NlzXPvBEAWrNZ6Q3jbH0RF4vcbp+fDngf/ywpoyNQtjrfvcq93AVb1RDWRghvyqgI2BkMr1rwYi8gizZ0G9GmPpMeqPerAQ0dJbzx+KAFM4IBq6iSLpZHUroeyfd9o5o+4fR2EtsZBoJORQEA4SW0CmeXSnblx2e9QkCHIodyqV6+g5ETEpZsLqnd/Na60EKPX/tQpPEcO+COIBPcQdszDzSiHGyQFPly/7KciUh1u+mFfxTCHGv9nn2WqndGgeGjQ/kr02qmTBX7Hc1qiEvgiSz1Tz/sy7Es29wvn6FrDGPP7asXlhOaiHxOctPvTptFA1kHFUk8bME7SsTSnGbFbUrssxrq70LhoSh5OwvQna+w84XdXhZb2sloJ4ZsCg3j+PrjJL08/JBi5zGd6ud/ZxhmcGKLOXPcNunQq5ESW92iJvfsuRrNYtawWwSmNhPYoFj2QqWNF0ffLpGt/ad24RJ8vkb5sXkpyKXmvFG5Vcdzf/44k3PBL/ojJ52+kWGzOArnyp5f969oV3J2c4Li27Nkova9VwRNVKqN0V+gV+mTHitgkXV30aWd3A1RSildEleiNPA+5cp+3+T7X+xfHiRZXQ1s4FA9TxIcnveQs9JSZ5r5qNmgqlW4zMtZ6rYNvgmyVcywKtu8ZxnSbS5vXlBV+NXdIfi3+xzrnJ0TkFL+Un8v1PWOC2PPFCjVPq7qTH7mOpzOYj/b4h0ceT+eHgr97Jqhb1ziVfeANzfN8bFUhPKBi7hJBCukQnB0aGjFTYLJPXL26lQ2b80xrOD5cFWgA8hz3St0e69kwNnD3+nX3gy12FjrjO+ddRvvvfyV3SWbXcxqNHfmsb9u1TV+wHTb9B07/L2sB8WUHJ9eeNomDyysEWZ0deqEhH/oWI2oiEh526gvAK1Nx2kIhNvkYR+tPYHEa9j+nd1VBpQP1uzSjIDO+fDDB7uy029rRjDC5Sk6aKczyz1D5uA9Lu+Rrrapl8JXNL3VRllNQH2K1ZFxOpX8LprttfqQ56MbPM0IttUheXWD/mROOeFqGUbL+kUOVlXLTFX/525g4faLEFO4qWWdmOXMNvVjpIVTWt650HfQjX9oT3Dg5Au6+v1/Ci78La6ZOngYCFPT1AUwxQuZ0yt5xKdNXLaDTISMTeCj16XTryhM36K2mfGRIgot71voWs8tTpL/f1rvcwv3LSDf+/G8THCT7NpfHWcW+lsF/ol8q9Bi6MezNTqp0rpp/kJRiVfNrX/w27cRRTu8RIIqtUblBMkxy4jwAVqCjUJkiPBj2cAoVloG8B2/N5deLdMhDb7xs5nhd3dubJhuj8WbaFRyu1L678DHhhA+rMimNo4C1kGpp0tD/qnCfCFHejpf0LJX43OTr578PY0tnIIrlWyNYyuR/ie6j2xNb1OV6u0dOX/1Dtcd7+ya9W+rY2LmnyQMtk8SMLTon8RAdwOaN2tNg5zVnDKlmVeOxPV2vhHIo9QEPV7jc3f+zVDquiNg1OaHX3cZXJDRY5MJpo+VanAcmqp4oasYLG+wrXUL5vJU0kqk2hGEskhP+Jjigrz1l6QnEwp6n8PMVeJp70Ii6ppeaK9GhF6fJE00ceLyxv08tKiPat4QdxZFgSbQknnEiCLD8Qc1rjazVKM3r3gXnnMeONgdz/yFV1q+haaN+wnF3Fn4uYCI9XsKOuVwDD0LsCO/f0gj5cmxCFcr7sclIcefWjvore+3aSU474cyqDVxH7w1RX3CHsaqsMRX17ZLgjsDXws3kLm2XJdM3Ku383UXqaHqsywzPhx7NFir0Fqjym/w6cxD2U9ypa3dx7Z12w/fi3Jps8sqJ8f8Ah8aZAvkHXvIRyrsxK7rrFaNNdNvjI8+3Emri195DCNa858anj2Qdny6Czshkn4N2+1m+k5S8sunX3Ja7I+JutRzg1mc2e9Yc0Zv9PZn1SwhxIdU9sXwZRTd/J5FoUm0e+PYREeHg3oc2YYzGf2xfJxXExt4pT3RfDRHvMXLUmoXOy63xv5pLuhOEax0dRgSywZ/GH+YBXFgCeTU0hZ8SPEFsn8punp1Kurd1KgXxUZ+la3R5+4ePGR4ZF5UQtOa83+Vj8zh80dfzbhxWCeoJnQ4dkZJM4drzknZOOKx2n3WrvJnzFIS8p0xeic+M3ZRVXIp10tV2DyYKwRxLzulPwzHcLlYTxl4PF7v8l106Azr+6wBFejbq/3P72C/0j78cepY9990/d4eAurn2lqdGKLU8FffnMw7cY7pVeXJRMU73Oxwi2g2vh/+4gX8dvbjfojn/eLVhhYl8GthwCQ50KcZq4z2JeW5eeOnJWFQEnVxDoG459TaC4zXybECEoJ0V5q1tXrQbDMtUxeTV6Pdt1/zJuc7TJoV/9YZFWxUtCf6Ou3Vd/vR/vG0138hJQrHkNeoep5dLe+6umcSquKvMaFpm3EZHDBOvCi0XYyIFHMgX7Cqp3JVXlxJFwQfHSaIUEbI2u1lBVUdlNw4Qa9UsLPEK94Qiln3pyKxQVCeNlx8yd7EegVNQBkFLabKvnietYVB4IPZ1fSor82arbgYec8aSdFMaIluYTYuNx32SxfrjKUdPGq+UNp5YpydoEG3xVLixtmHO9zXxKAnHnPuH2fPGrjx0GcuCDEU+yXUtXh6nfUL+cykws1gJ5vkfYFaFBr9PdCXvVf35OJQxzUMmWjv0W6uGJK11uAGDqSpOwCf6rouSIjPVgw57cJCOQ4b9tkI/Y5WNon9Swe72aZryKo8d+HyHBEdWJKrkary0LIGczA4Irq353Wc0Zga3om7UQiAGCvIl8GGyaqz5zH+1gMP5phWUCpKtttWIyicz09vXg76GxkmiGSMQ06Z9X8BUwqOtauDbPIf4rpK/yYoeAHxJ9soXS9VDe1Aw+awOOxaN8foLrif0TXBvQ55dtRtulRq9emFDBxlQcqKCaD8NeTSE7FOHvcjf/+oKbbtRqz9gbofoc2EzQ3pL6W5JdfJzAWmOk8oeoECe90lVMruwl/ltM015P/zIPazqvdvFmLNVHMIZrwiQ2tIKtGh6PDVH+85ew3caqVt2BsDv5rOcu3G9srQWd7NmgtzCRUXLYknYRSwtH9oUtkqyN3CfP20xQ1faXQl4MEmjQehWR6GmGnkdpYNQYeIG408yAX7uCZmYUic9juOfb+Re28+OVOB+scYK4DaPcBe+5wmji9gymtkMpKo4UKqCz7yxzuN8VIlx9yNozpRJpNaWHtaZVEqP45n2JemTlYBSmNIK1FuSYAUQ1yBLnKxevrjayd+h2i8PjdB3YY6b0nr3JuOXGpPMyh4V2dslpR3DFEvgpsBLqhqLDOWP4yEvIL6f21PpA7/8B")),w=Math.log2||(J=>Math.log(J)/Math.LN2),U=J=>w(J)+1|0,F=U(a(u).categories.length-1),O=U(a(u).combiningClasses.length-1),M=U(a(u).scripts.length-1),L=U(a(u).eaw.length-1),_=10,b=O+M+L+_,v=M+L+_,h=L+_,m=_,k=(1<<F)-1,B=(1<<O)-1,C=(1<<M)-1,R=(1<<L)-1,A=(1<<_)-1;function f(J){const X=c.get(J);return a(u).categories[X>>b&k]}function E(J){const X=c.get(J);return a(u).combiningClasses[X>>v&B]}function S(J){const X=c.get(J);return a(u).scripts[X>>h&C]}function P(J){const X=c.get(J);return a(u).eaw[X>>m&R]}function y(J){let X=c.get(J),Q=X&A;if(Q===0)return null;if(Q<=50)return Q-1;if(Q<480){const re=(Q>>4)-12,se=(Q&15)+1;return re/se}else if(Q<768){X=(Q>>5)-14;let re=(Q&31)+2;for(;re>0;)X*=10,re--;return X}else{X=(Q>>2)-191;let re=(Q&3)+1;for(;re>0;)X*=60,re--;return X}}function r(J){const X=f(J);return X==="Lu"||X==="Ll"||X==="Lt"||X==="Lm"||X==="Lo"||X==="Nl"}function s(J){return f(J)==="Nd"}function p(J){const X=f(J);return X==="Pc"||X==="Pd"||X==="Pe"||X==="Pf"||X==="Pi"||X==="Po"||X==="Ps"}function g(J){return f(J)==="Ll"}function I(J){return f(J)==="Lu"}function x(J){return f(J)==="Lt"}function q(J){const X=f(J);return X==="Zs"||X==="Zl"||X==="Zp"}function T(J){const X=f(J);return X==="Nd"||X==="No"||X==="Nl"||X==="Lu"||X==="Ll"||X==="Lt"||X==="Lm"||X==="Lo"||X==="Me"||X==="Mc"}function D(J){const X=f(J);return X==="Mn"||X==="Me"||X==="Mc"}var W={getCategory:f,getCombiningClass:E,getScript:S,getEastAsianWidth:P,getNumericValue:y,isAlphabetic:r,isDigit:s,isPunctuation:p,isLowerCase:g,isUpperCase:I,isTitleCase:x,isWhiteSpace:q,isBaseForm:T,isMark:D}})(vl)),vl.exports}var pp;function Nt(){return pp||(pp=1,(function(e){var i=Ls&&Ls.__importDefault||function(de){return de&&de.__esModule?de:{default:de}};Object.defineProperty(e,"__esModule",{value:!0}),e.makeNameStyle=e.addPrefixIfNecessary=e.combineWords=e.allLowerWordStyle=e.originalWord=e.allUpperWordStyle=e.firstUpperWordStyle=e.splitIntoWords=e.fastIsUpperCase=e.startWithLetter=e.snakeCase=e.camelCase=e.pascalCase=e.decapitalize=e.capitalize=e.trimEnd=e.isWordCharacter=e.isLetterOrUnderscoreOrDigit=e.isLetterOrUnderscore=e.isLetterOrDigit=e.isNumeric=e.isDigit=e.isLetter=e.isAscii=e.isPrintable=e.stringEscape=e.utf16StringEscape=e.escapeNonPrintableMapper=e.standardUnicodeHexEscape=e.intToHex=e.repeatString=e.legalizeCharacters=e.utf16LegalizeCharacters=e.utf32ConcatMap=e.utf16ConcatMap=void 0;const n=Qe(),a=vr(),l=yn(),d=i(so());function u(de){const Y=[],z=[];for(let V=0;V<128;V++){let ue=0;const Te=de(V);Te===String.fromCharCode(V)&&(ue=1),Y.push(Te),z.push(ue)}return{charStringMap:Y,charNoEscapeMap:z}}function c(de){const Y=[];for(let z=0;z<128;z++)Y.push(de(z));return function(z){return z<128?Y[z]:de(z)}}function w(de){const{charStringMap:Y,charNoEscapeMap:z}=u(de);return function(ue){let Te=null,Ie=0,Ce=0;for(;Ce<ue.length;){const We=ue.charCodeAt(Ce);if(z[We]!==1){Te===null&&(Te=[]),Te.push(ue.substring(Ie,Ce));const Ge=Y[We];Ge===void 0?Te.push(de(ue.charCodeAt(Ce))):Te.push(Ge),Ie=Ce+1}Ce++}return Te===null?ue:(Te.push(ue.substring(Ie,Ce)),Te.join(""))}}e.utf16ConcatMap=w;function U(de){return de>=55296&&de<=56319}function F(de){return de>=56320&&de<=57343}function O(de){const{charStringMap:Y,charNoEscapeMap:z}=u(de);return function(ue){let Te=null,Ie=0,Ce=0;for(;Ce<ue.length;){let We=ue.charCodeAt(Ce);if(z[We]!==1){if(Te===null&&(Te=[]),Te.push(ue.substring(Ie,Ce)),U(We)){const ee=We;Ce++;const te=ue.charCodeAt(Ce);(0,l.messageAssert)(F(te),"MiscUnicodeHighSurrogateWithoutLowSurrogate",{});const K=ee-55296;We=65536+(te-56320)+(K<<10)}const Ge=Y[We];Ge===void 0?Te.push(de(We)):Te.push(Ge),Ie=Ce+1}Ce++}return Te===null?ue:(Te.push(ue.substring(Ie,Ce)),Te.join(""))}}e.utf32ConcatMap=O;function M(de){return w(Y=>de(Y)?String.fromCharCode(Y):"")}e.utf16LegalizeCharacters=M;function L(de){return O(Y=>Y<=65535&&de(Y)?String.fromCharCode(Y):"")}e.legalizeCharacters=L;function _(de,Y){if((0,n.assert)(Y>=0,"Cannot repeat a string a negative number of times"),Y===0)return"";let z="";do Y%2!==0&&(z+=de),Y=Math.floor(Y/2),Y>0&&(de+=de);while(Y>0);return z}e.repeatString=_;function b(de,Y){let z=de.toString(16);return z.length>=Y?z:_("0",Y-z.length)+z}e.intToHex=b;function v(de){return de<=65535?"\\u"+b(de,4):"\\U"+b(de,8)}e.standardUnicodeHexEscape=v;function h(de,Y){function z(V){switch(V){case 92:return"\\\\";case 34:return'\\"';case 10:return"\\n";case 9:return"\\t";default:return de(V)?String.fromCharCode(V):Y(V)}}return z}e.escapeNonPrintableMapper=h,e.utf16StringEscape=w(h(m,v)),e.stringEscape=O(h(m,v));function m(de){if(de>65535)return!1;const Y=d.default.getCategory(de);return["Mc","No","Sk","Me","Nd","Po","Lt","Pc","Sm","Zs","Lu","Pd","So","Pe","Pf","Ps","Sc","Ll","Lm","Pi","Nl","Mn","Lo"].indexOf(Y)>=0}e.isPrintable=m;function k(de){return de<128}e.isAscii=k;function B(de){const Y=d.default.getCategory(de);return["Lu","Ll","Lt","Lo"].indexOf(Y)>=0}e.isLetter=B;function C(de){const Y=d.default.getCategory(de);return["Nd"].indexOf(Y)>=0}e.isDigit=C;function R(de){const Y=d.default.getCategory(de);return["No","Nd","Nl"].indexOf(Y)>=0}e.isNumeric=R;function A(de){return B(de)||C(de)}e.isLetterOrDigit=A;function f(de){return B(de)||de===95}e.isLetterOrUnderscore=f;function E(de){return f(de)||C(de)}e.isLetterOrUnderscoreOrDigit=E;function S(de){return B(de)||C(de)}e.isWordCharacter=S;function P(de){const Y=de.length;let z=Y;for(let V=Y-1;V>=0&&d.default.isWhiteSpace(de.charCodeAt(V));V--)z=V;return z===Y?de:de.slice(0,z)}e.trimEnd=P;function y(de,Y){return Y===""?Y:de(Y[0])+Y.slice(1)}function r(de){return y(Y=>Y.toUpperCase(),de)}e.capitalize=r;function s(de){return y(Y=>Y.toLowerCase(),de)}e.decapitalize=s;const p=/[-_. ]+/;function g(de){return de.split(p).map(r).join("")}e.pascalCase=g;function I(de){return s(g(de))}e.camelCase=I;function x(de){return re(de).map(({word:z})=>z.toLowerCase()).join("_")}e.snakeCase=x;function q(de,Y,z){const V=Y?r:s;return z===""?V("empty"):de(z.charCodeAt(0))?V(z):V("the"+z)}e.startWithLetter=q;const T=new Set(a.acronyms),D=c(S),W=c(de=>!S(de)),J=c(de=>d.default.isLowerCase(de));e.fastIsUpperCase=c(de=>d.default.isUpperCase(de));const X=c(de=>!d.default.isLowerCase(de)&&!d.default.isUpperCase(de)),Q=c(C);function re(de){const Y=[];let z;const V=de.length;let ue=0,Te;function Ie(){return ue>=V}function Ce(){return(0,n.defined)(de.codePointAt(ue))}function We(Se){for(;!Ie();){const Be=Ce();if(!Se(Be))break;J(Be)&&(Te=ue),ue++}}function Ge(){We(W)}function ee(){We(J)}function te(){We(e.fastIsUpperCase)}function K(){We(X)}function j(){We(Q)}function G(){(0,n.assert)(z===void 0,"Interval started before last one was committed"),z=ue}function ce(){if(z===void 0)return(0,n.panic)("Tried to commit interval without starting one");(0,n.assert)(ue>z,"Interval must be non-empty"),!Ie()&&F(Ce())&&(ue+=1);const Se=Te===void 0||Te<z;Y.push([z,ue,Se]),z=void 0}function $(){return z===void 0?(0,n.panic)("Tried to get interval length without starting one"):ue-z}for(;Ge(),!Ie();)G(),J(Ce())?(ee(),j(),ce()):(0,e.fastIsUpperCase)(Ce())?(te(),Ie()?ce():$()===1?(ee(),j(),ce()):C(Ce())?(j(),ce()):(D(Ce())&&(ue-=1),ce())):(K(),ce());const be=[];for(const[Se,Be,we]of Y){const Pe=de.slice(Se,Be),oe=Te!==void 0&&we||T.has(Pe.toLowerCase());be.push({word:Pe,isAcronym:oe})}return be}e.splitIntoWords=re;function se(de){return(0,n.assert)(de.length>0,"Cannot style an empty string"),de[0].toUpperCase()+de.slice(1).toLowerCase()}e.firstUpperWordStyle=se;function ne(de){return de.toUpperCase()}e.allUpperWordStyle=ne;function me(de){return de}e.originalWord=me;function ge(de){return de.toLowerCase()}e.allLowerWordStyle=ge;function Ae(de,Y){(0,n.assert)(Y.length>0,"Tried to style an empty word");const z=de(Y);return(0,n.assert)(z.length>0,"Word style must not make word empty"),z}function pe(de,Y,z,V,ue,Te,Ie,Ce){const We=[];for(const G of de){const ce=Y(G.word);ce.length!==0&&We.push({word:ce,isAcronym:G.isAcronym})}if(We.length===0){const G=Y("empty");(0,n.assert)(G.length>0,'Word "empty" is invalid in target language'),We.push({word:G,isAcronym:!1})}const Ge=[],ee=We[0],te=ee.isAcronym?ue:z,K=Ae(te,ee.word);let j;if(Ce((0,n.defined)(K.codePointAt(0))))Ge.push(K),j=We.slice(1);else{const G=Y("the");(0,n.assert)(G.length>0,'Word "the" is invalid in the target language');const ce=Ae(z,G);(0,n.assert)(Ce((0,n.defined)(ce.codePointAt(0))),'The first character of styling "the" is not a start character'),Ge.push(ce),j=We}for(const G of j){const ce=G.isAcronym?Te:V;Ge.push(Ae(ce,G.word))}return Ge.join(Ie)}e.combineWords=pe;function le(de,Y){return Y.startsWith(de)?Y:de+Y}e.addPrefixIfNecessary=le;function ye(de,Y,z){let V,ue,Te,Ie,Ce;switch(de==="pascal"||de==="camel"||de==="pascal-upper-acronyms"||de==="camel-upper-acronyms"?(V="",de==="pascal-upper-acronyms"||de==="camel-upper-acronyms"?(Te=se,Ce=ne):Te=Ce=se):V="_",de){case"pascal":case"pascal-upper-acronyms":ue=Ie=se;break;case"camel":case"camel-upper-acronyms":ue=Ie=ge;break;case"underscore":ue=Te=Ie=Ce=ge;break;case"upper-underscore":ue=Te=Ie=Ce=ne;break;default:return(0,n.assertNever)(de)}return We=>{const Ge=re(We),ee=pe(Ge,Y,ue,Te,Ie,Ce,V,f);return z!==void 0?le(z,ee):ee}}e.makeNameStyle=ye})(Ls)),Ls}var ks={},mp;function D_(){if(mp)return ks;mp=1,Object.defineProperty(ks,"__esModule",{value:!0}),ks.Chance=void 0;class e{constructor(d){d===void 0&&(d=Math.floor(Math.random()*Math.pow(10,13))),this.N=624,this.M=397,this.MATRIX_A=2567483615,this.UPPER_MASK=2147483648,this.LOWER_MASK=2147483647,this.mt=new Array(this.N),this.mti=this.N+1,this.init_genrand(d)}init_genrand(d){for(this.mt[0]=d>>>0,this.mti=1;this.mti<this.N;this.mti++)d=this.mt[this.mti-1]^this.mt[this.mti-1]>>>30,this.mt[this.mti]=(((d&4294901760)>>>16)*1812433253<<16)+(d&65535)*1812433253+this.mti,this.mt[this.mti]>>>=0}genrand_int32(){let d,u=new Array(0,this.MATRIX_A);if(this.mti>=this.N){let c;for(this.mti===this.N+1&&this.init_genrand(5489),c=0;c<this.N-this.M;c++)d=this.mt[c]&this.UPPER_MASK|this.mt[c+1]&this.LOWER_MASK,this.mt[c]=this.mt[c+this.M]^d>>>1^u[d&1];for(;c<this.N-1;c++)d=this.mt[c]&this.UPPER_MASK|this.mt[c+1]&this.LOWER_MASK,this.mt[c]=this.mt[c+(this.M-this.N)]^d>>>1^u[d&1];d=this.mt[this.N-1]&this.UPPER_MASK|this.mt[0]&this.LOWER_MASK,this.mt[this.N-1]=this.mt[this.M-1]^d>>>1^u[d&1],this.mti=0}return d=this.mt[this.mti++],d^=d>>>11,d^=d<<7&2636928640,d^=d<<15&4022730752,d^=d>>>18,d>>>0}random(){return this.genrand_int32()*(1/4294967296)}}let i=class{constructor(d){this.seed=d,this.mt=new e(this.seed)}random(){return this.mt.random()}integer(d){return Math.floor(this.random()*(d.max-d.min+1)+d.min)}natural(d){return this.integer({min:0,max:d.max})}pick(d){if(d.length===0)throw new RangeError("Chance: Cannot pick() from an empty array");return d[this.natural({max:d.length-1})]}animal(){const d=["desert","forest","ocean","zoo","farm","pet","grassland"];return this.pick(n[this.pick(d)])}city(){return this.pick(a)}};ks.Chance=i;const n={ocean:["Acantharea","Anemone","Angelfish King","Ahi Tuna","Albacore","American Oyster","Anchovy","Armored Snail","Arctic Char","Atlantic Bluefin Tuna","Atlantic Cod","Atlantic Goliath Grouper","Atlantic Trumpetfish","Atlantic Wolffish","Baleen Whale","Banded Butterflyfish","Banded Coral Shrimp","Banded Sea Krait","Barnacle","Barndoor Skate","Barracuda","Basking Shark","Bass","Beluga Whale","Bluebanded Goby","Bluehead Wrasse","Bluefish","Bluestreak Cleaner-Wrasse","Blue Marlin","Blue Shark","Blue Spiny Lobster","Blue Tang","Blue Whale","Broadclub Cuttlefish","Bull Shark","Chambered Nautilus","Chilean Basket Star","Chilean Jack Mackerel","Chinook Salmon","Christmas Tree Worm","Clam","Clown Anemonefish","Clown Triggerfish","Cod","Coelacanth","Cockscomb Cup Coral","Common Fangtooth","Conch","Cookiecutter Shark","Copepod","Coral","Corydoras","Cownose Ray","Crab","Crown-of-Thorns Starfish","Cushion Star","Cuttlefish","California Sea Otters","Dolphin","Dolphinfish","Dory","Devil Fish","Dugong","Dumbo Octopus","Dungeness Crab","Eccentric Sand Dollar","Edible Sea Cucumber","Eel","Elephant Seal","Elkhorn Coral","Emperor Shrimp","Estuarine Crocodile","Fathead Sculpin","Fiddler Crab","Fin Whale","Flameback","Flamingo Tongue Snail","Flashlight Fish","Flatback Turtle","Flatfish","Flying Fish","Flounder","Fluke","French Angelfish","Frilled Shark","Fugu (also called Pufferfish)","Gar","Geoduck","Giant Barrel Sponge","Giant Caribbean Sea Anemone","Giant Clam","Giant Isopod","Giant Kingfish","Giant Oarfish","Giant Pacific Octopus","Giant Pyrosome","Giant Sea Star","Giant Squid","Glowing Sucker Octopus","Giant Tube Worm","Goblin Shark","Goosefish","Great White Shark","Greenland Shark","Grey Atlantic Seal","Grouper","Grunion","Guineafowl Puffer","Haddock","Hake","Halibut","Hammerhead Shark","Hapuka","Harbor Porpoise","Harbor Seal","Hatchetfish","Hawaiian Monk Seal","Hawksbill Turtle","Hector's Dolphin","Hermit Crab","Herring","Hoki","Horn Shark","Horseshoe Crab","Humpback Anglerfish","Humpback Whale","Icefish","Imperator Angelfish","Irukandji Jellyfish","Isopod","Ivory Bush Coral","Japanese Spider Crab","Jellyfish","John Dory","Juan Fernandez Fur Seal","Killer Whale","Kiwa Hirsuta","Krill","Lagoon Triggerfish","Lamprey","Leafy Seadragon","Leopard Seal","Limpet","Ling","Lionfish","Lions Mane Jellyfish","Lobe Coral","Lobster","Loggerhead Turtle","Longnose Sawshark","Longsnout Seahorse","Lophelia Coral","Marrus Orthocanna","Manatee","Manta Ray","Marlin","Megamouth Shark","Mexican Lookdown","Mimic Octopus","Moon Jelly","Mollusk","Monkfish","Moray Eel","Mullet","Mussel","Megaladon","Napoleon Wrasse","Nassau Grouper","Narwhal","Nautilus","Needlefish","Northern Seahorse","North Atlantic Right Whale","Northern Red Snapper","Norway Lobster","Nudibranch","Nurse Shark","Oarfish","Ocean Sunfish","Oceanic Whitetip Shark","Octopus","Olive Sea Snake","Orange Roughy","Ostracod","Otter","Oyster","Pacific Angelshark","Pacific Blackdragon","Pacific Halibut","Pacific Sardine","Pacific Sea Nettle Jellyfish","Pacific White Sided Dolphin","Pantropical Spotted Dolphin","Patagonian Toothfish","Peacock Mantis Shrimp","Pelagic Thresher Shark","Penguin","Peruvian Anchoveta","Pilchard","Pink Salmon","Pinniped","Plankton","Porpoise","Polar Bear","Portuguese Man o' War","Pycnogonid Sea Spider","Quahog","Queen Angelfish","Queen Conch","Queen Parrotfish","Queensland Grouper","Ragfish","Ratfish","Rattail Fish","Ray","Red Drum","Red King Crab","Ringed Seal","Risso's Dolphin","Ross Seals","Sablefish","Salmon","Sand Dollar","Sandbar Shark","Sawfish","Sarcastic Fringehead","Scalloped Hammerhead Shark","Seahorse","Sea Cucumber","Sea Lion","Sea Urchin","Seal","Shark","Shortfin Mako Shark","Shovelnose Guitarfish","Shrimp","Silverside Fish","Skipjack Tuna","Slender Snipe Eel","Smalltooth Sawfish","Smelts","Sockeye Salmon","Southern Stingray","Sponge","Spotted Porcupinefish","Spotted Dolphin","Spotted Eagle Ray","Spotted Moray","Squid","Squidworm","Starfish","Stickleback","Stonefish","Stoplight Loosejaw","Sturgeon","Swordfish","Tan Bristlemouth","Tasseled Wobbegong","Terrible Claw Lobster","Threespot Damselfish","Tiger Prawn","Tiger Shark","Tilefish","Toadfish","Tropical Two-Wing Flyfish","Tuna","Umbrella Squid","Velvet Crab","Venus Flytrap Sea Anemone","Vigtorniella Worm","Viperfish","Vampire Squid","Vaquita","Wahoo","Walrus","West Indian Manatee","Whale","Whale Shark","Whiptail Gulper","White-Beaked Dolphin","White-Ring Garden Eel","White Shrimp","Wobbegong","Wrasse","Wreckfish","Xiphosura","Yellowtail Damselfish","Yelloweye Rockfish","Yellow Cup Black Coral","Yellow Tube Sponge","Yellowfin Tuna","Zebrashark","Zooplankton"],desert:["Aardwolf","Addax","African Wild Ass","Ant","Antelope","Armadillo","Baboon","Badger","Bat","Bearded Dragon","Beetle","Bird","Black-footed Cat","Boa","Brown Bear","Bustard","Butterfly","Camel","Caracal","Caracara","Caterpillar","Centipede","Cheetah","Chipmunk","Chuckwalla","Climbing Mouse","Coati","Cobra","Cotton Rat","Cougar","Courser","Crane Fly","Crow","Dassie Rat","Dove","Dunnart","Eagle","Echidna","Elephant","Emu","Falcon","Fly","Fox","Frogmouth","Gecko","Geoffroy's Cat","Gerbil","Grasshopper","Guanaco","Gundi","Hamster","Hawk","Hedgehog","Hyena","Hyrax","Jackal","Kangaroo","Kangaroo Rat","Kestrel","Kowari","Kultarr","Leopard","Lion","Macaw","Meerkat","Mouse","Oryx","Ostrich","Owl","Pronghorn","Python","Rabbit","Raccoon","Rattlesnake","Rhinoceros","Sand Cat","Spectacled Bear","Spiny Mouse","Starling","Stick Bug","Tarantula","Tit","Toad","Tortoise","Tyrant Flycatcher","Viper","Vulture","Waxwing","Xerus","Zebra"],grassland:["Aardvark","Aardwolf","Accentor","African Buffalo","African Wild Dog","Alpaca","Anaconda","Ant","Anteater","Antelope","Armadillo","Baboon","Badger","Bandicoot","Barbet","Bat","Bee","Bee-eater","Beetle","Bird","Bison","Black-footed Cat","Black-footed Ferret","Bluebird","Boa","Bowerbird","Brown Bear","Bush Dog","Bushshrike","Bustard","Butterfly","Buzzard","Caracal","Caracara","Cardinal","Caterpillar","Cheetah","Chipmunk","Civet","Climbing Mouse","Clouded Leopard","Coati","Cobra","Cockatoo","Cockroach","Common Genet","Cotton Rat","Cougar","Courser","Coyote","Crane","Crane Fly","Cricket","Crow","Culpeo","Death Adder","Deer","Deer Mouse","Dingo","Dinosaur","Dove","Drongo","Duck","Duiker","Dunnart","Eagle","Echidna","Elephant","Elk","Emu","Falcon","Finch","Flea","Fly","Flying Frog","Fox","Frog","Frogmouth","Garter Snake","Gazelle","Gecko","Geoffroy's Cat","Gerbil","Giant Tortoise","Giraffe","Grasshopper","Grison","Groundhog","Grouse","Guanaco","Guinea Pig","Hamster","Harrier","Hartebeest","Hawk","Hedgehog","Helmetshrike","Hippopotamus","Hornbill","Hyena","Hyrax","Impala","Jackal","Jaguar","Jaguarundi","Kangaroo","Kangaroo Rat","Kestrel","Kultarr","Ladybug","Leopard","Lion","Macaw","Meerkat","Mouse","Newt","Oryx","Ostrich","Owl","Pangolin","Pheasant","Prairie Dog","Pronghorn","Przewalski's Horse","Python","Quoll","Rabbit","Raven","Rhinoceros","Shelduck","Sloth Bear","Spectacled Bear","Squirrel","Starling","Stick Bug","Tamandua","Tasmanian Devil","Thornbill","Thrush","Toad","Tortoise"],forest:["Agouti","Anaconda","Anoa","Ant","Anteater","Antelope","Armadillo","Asian Black Bear","Aye-aye","Babirusa","Baboon","Badger","Bandicoot","Banteng","Barbet","Basilisk","Bat","Bearded Dragon","Bee","Bee-eater","Beetle","Bettong","Binturong","Bird-of-paradise","Bongo","Bowerbird","Bulbul","Bush Dog","Bushbaby","Bushshrike","Butterfly","Buzzard","Caecilian","Cardinal","Cassowary","Caterpillar","Centipede","Chameleon","Chimpanzee","Cicada","Civet","Clouded Leopard","Coati","Cobra","Cockatoo","Cockroach","Colugo","Cotinga","Cotton Rat","Cougar","Crane Fly","Cricket","Crocodile","Crow","Cuckoo","Cuscus","Death Adder","Deer","Dhole","Dingo","Dinosaur","Drongo","Duck","Duiker","Eagle","Echidna","Elephant","Finch","Flat-headed Cat","Flea","Flowerpecker","Fly","Flying Frog","Fossa","Frog","Frogmouth","Gaur","Gecko","Gorilla","Grison","Hawaiian Honeycreeper","Hawk","Hedgehog","Helmetshrike","Hornbill","Hyrax","Iguana","Jackal","Jaguar","Jaguarundi","Kestrel","Ladybug","Lemur","Leopard","Lion","Macaw","Mandrill","Margay","Monkey","Mouse","Mouse Deer","Newt","Okapi","Old World Flycatcher","Orangutan","Owl","Pangolin","Peafowl","Pheasant","Possum","Python","Quokka","Rabbit","Raccoon","Red Panda","Red River Hog","Rhinoceros","Sloth Bear","Spectacled Bear","Squirrel","Starling","Stick Bug","Sun Bear","Tamandua","Tamarin","Tapir","Tarantula","Thrush","Tiger","Tit","Toad","Tortoise","Toucan","Trogon","Trumpeter","Turaco","Turtle","Tyrant Flycatcher","Viper","Vulture","Wallaby","Warbler","Wasp","Waxwing","Weaver","Weaver-finch","Whistler","White-eye","Whydah","Woodswallow","Worm","Wren","Xenops","Yellowjacket","Accentor","African Buffalo","American Black Bear","Anole","Bird","Bison","Boa","Brown Bear","Chipmunk","Common Genet","Copperhead","Coyote","Deer Mouse","Dormouse","Elk","Emu","Fisher","Fox","Garter Snake","Giant Panda","Giant Tortoise","Groundhog","Grouse","Guanaco","Himalayan Tahr","Kangaroo","Koala","Numbat","Quoll","Raccoon dog","Tasmanian Devil","Thornbill","Turkey","Vole","Weasel","Wildcat","Wolf","Wombat","Woodchuck","Woodpecker"],farm:["Alpaca","Buffalo","Banteng","Cow","Cat","Chicken","Carp","Camel","Donkey","Dog","Duck","Emu","Goat","Gayal","Guinea","Goose","Horse","Honey","Llama","Pig","Pigeon","Rhea","Rabbit","Sheep","Silkworm","Turkey","Yak","Zebu"],pet:["Bearded Dragon","Birds","Burro","Cats","Chameleons","Chickens","Chinchillas","Chinese Water Dragon","Cows","Dogs","Donkey","Ducks","Ferrets","Fish","Geckos","Geese","Gerbils","Goats","Guinea Fowl","Guinea Pigs","Hamsters","Hedgehogs","Horses","Iguanas","Llamas","Lizards","Mice","Mule","Peafowl","Pigs and Hogs","Pigeons","Ponies","Pot Bellied Pig","Rabbits","Rats","Sheep","Skinks","Snakes","Stick Insects","Sugar Gliders","Tarantula","Turkeys","Turtles"],zoo:["Aardvark","African Wild Dog","Aldabra Tortoise","American Alligator","American Bison","Amur Tiger","Anaconda","Andean Condor","Asian Elephant","Baby Doll Sheep","Bald Eagle","Barred Owl","Blue Iguana","Boer Goat","California Sea Lion","Caribbean Flamingo","Chinchilla","Collared Lemur","Coquerel's Sifaka","Cuban Amazon Parrot","Ebony Langur","Fennec Fox","Fossa","Gelada","Giant Anteater","Giraffe","Gorilla","Grizzly Bear","Henkel's Leaf-tailed Gecko","Indian Gharial","Indian Rhinoceros","King Cobra","King Vulture","Komodo Dragon","Linne's Two-toed Sloth","Lion","Little Penguin","Madagascar Tree Boa","Magellanic Penguin","Malayan Tapir","Malayan Tiger","Matschies Tree Kangaroo","Mini Donkey","Monarch Butterfly","Nile crocodile","North American Porcupine","Nubian Ibex","Okapi","Poison Dart Frog","Polar Bear","Pygmy Marmoset","Radiated Tortoise","Red Panda","Red Ruffed Lemur","Ring-tailed Lemur","Ring-tailed Mongoose","Rock Hyrax","Small Clawed Asian Otter","Snow Leopard","Snowy Owl","Southern White-faced Owl","Southern White Rhinocerous","Squirrel Monkey","Tufted Puffin","White Cheeked Gibbon","White-throated Bee Eater","Zebra"]},a=["Alert","Nord","Eureka","Ny-Ålesund","Longyearbyen","Qaanaaq","Grise Fiord","Dikson","Upernavik","Tiksi","Belushya Guba","Barrow","Honningsvåg","Hammerfest","Deadhorse","Nuorgam","Vadsø","Alta","Utsjoki","Kirkenes","Tromsø","Tuktoyaktuk","Norilsk","Murmansk","Harstad","Narvik","Inuvik","Kiruna","Verkhoyansk","Bodø","Gällivare","Kemijärvi","Rovaniemi","Ísafjörður","Kuusamo","Tornio","Boden","Haparanda","Kemi","Akureyri","Luleå","Pudasjärvi","Piteå","Oulu","Fairbanks","Skellefteå","Anadyr","Arkhangelsk","Nome","Nuuk (Godthåb)","Reykjavík","Umeå","Iqaluit","Stjørdal","Trondheim","Örnsköldsvik","Östersund","Vaasa","Kuopio","Yellowknife","Sundsvall","Jyväskylä","Yakutsk","Tórshavn","Petrozavodsk","Tampere","Anchorage","Lillehammer","Lahti","Qaqortoq","Whitehorse","Turku","Bergen","Vantaa","Lerwick","Espoo","Helsinki","Oslo","Saint Petersburg","Uppsala","Fritz Creek","Magadan","Tallinn","Stockholm","Sarpsborg","Örebro","Vologda","Norrköping","Linköping","Tartu","Juneau","Arendal","Kristiansand","Perm","Valga","Gothenburg","Visby","Yaroslavl","Inverness","Aberdeen","Sitka","Riga","Izhevsk","Yekaterinburg","Fort McMurray","Dundee","Nizhny Novgorod","Stirling","Bratsk","Aarhus","Krasnoyarsk","Edinburgh","Glasgow","Kazan","Moscow","Copenhagen","Malmö","Esbjerg","Odense","Grande Prairie","Chelyabinsk","Novosibirsk","Derry","Omsk","Newcastle upon Tyne","Sunderland","Petropavl","Flensburg","Ufa","Kaliningrad","Vilnius","Belfast","Middlesbrough","Gdynia","Gdańsk","Kiel","Douglas","Rostock","Lancaster","York","Prince George","Minsk","Bradford","Leeds","Hamburg","Edmonton","Tolyatti","Manchester","Liverpool","Sheffield","Dublin","Groningen","Samara","Bremen","Petropavlovsk-Kamchatsky","Nottingham","Derby","Leicester","Norwich","Peterborough","Berlin","Birmingham","Gomel","Coventry","Poznań","Haarlem","Amsterdam","Hannover","Irkutsk","Warsaw","Enschede","Cambridge","Leiden","Saskatoon","Utrecht","The Hague","Münster","Rotterdam","Cork","Adak","Gloucester","Oxford","Voronezh","Swansea","Saratov","Dortmund","London","Cardiff","Greenwich","Bristol","Bath","Leipzig","Düsseldorf","Antwerp","Astana","Winchester","Calgary","Ghent","Dresden","Erfurt","Calais","Cologne","Southampton","Maastricht","Brussels","Brighton and Hove","Portsmouth","Exeter","Kamloops","Lille","Regina","Kiev","Charleroi","Plymouth","Frankfurt am Main","Prague","Kraków","Kharkiv","Winnipeg","Kelowna","Lviv","Luxembourg","Le Havre","Nuremberg","Rouen","Vancouver","Paris","Stuttgart","Bellingham","Volgograd","Strasbourg","Dnipro","Victoria","Saguenay","Brest","Thunder Bay","Linz","Vienna","Bratislava","Munich","Donetsk","Ulaanbaatar","Orléans","Salzburg","Seattle","St. John's","Basel","Budapest","Qiqihar","Zürich","Innsbruck","Rostov-on-Don","Nantes","Vaduz","Atyrau","Graz","Chişinău","Bern","Tiraspol","Quebec City","Bismarck","Duluth","Saint-Pierre","Cluj-Napoca","Moscow","Helena","Sault Ste. Marie","Lausanne","Sudbury","Odessa","North Bay","Charlottetown","Geneva","Moncton","Ljubljana","Fredericton","Zagreb","Lyon","Harbin","New Glasgow","Portland","Montreal","Milan","Venice","Ottawa","Wakkanai","Saint John","Novi Sad","Turin","Krasnodar","Minneapolis","Simferopol","Halifax","Bordeaux","Belgrade","Šabac","Drobeta Turnu Severin","Bologna","Bucharest","Ravenna","Genoa","Pierre","Craiova","Augusta","Montpelier","Bath","San Marino","Changchun","Sarajevo","Yarmouth","Ürümqi","Florence","Asahikawa","Monaco","Nice","Toronto","Boise","Toulouse","Sochi","Cannes","Gijón","Sioux Falls","Split","Oviedo","Nemuro","San Sebastián","Marseille","Almaty","Bilbao","Concord","Rochester","Vladivostok","Sapporo","Milwaukee","Sukhumi","Kushiro","London","Follonica","Obihiro","Buffalo","Santiago de Compostela","Bishkek","Vitoria-Gasteiz","Sofia","Pristina","Andorra la Vella","Nukus","Podgorica","Boston","Detroit","Windsor","Vigo","Tskhinvali","Avezzano","Skopje","Colchester","Rome","Vatican City","Chicago","Providence","Shenyang","Chongjin","Hartford","Hakodate","Tbilisi","Valladolid","Zaragoza","Des Moines","Braga","Cleveland","Barcelona","Tirana","Tashkent","Porto","Cheyenne","Bari","Fort Wayne","Istanbul","Trabzon","Namangan","Naples","Aomori","Lincoln","Eureka","Salt Lake City","Jersey City","New York City","Thessaloniki","Lleida","Pittsburgh","Baku","Madrid","Trenton","Bursa","Yerevan","Boulder","Columbus","Ankara","Philadelphia","Beijing","Stepanakert","Forked River","Eskisehir","Indianapolis","Denver","Akita","Morioka","Palma","Reno","Flores Island","Valencia","Baltimore","Cagliari","Dover","Wonsan","Tianjin","Cincinnati","Kansas City","Pyongyang","Ibiza","Dalian","Washington","Lisbon","St. Louis","Horta","Sacramento","Dushanbe","Angra do Heroísmo","Halkida","İzmir","Charleston","Alicante","Sendai","Louisville","Yamagata","Messina","Palermo","Tabriz","Shijiazhuang","Trapani","Athena","Kaesong","Ashgabat","Niigata","Taiyuan","Konya","Ponta Delgada","Oakland","San Francisco","Fukushima","Wichita","Seoul","San Jose","Catania","Incheon","Sevilla","Mugla","Springfield","Gaziantep","Adana","Virginia Beach","Almería","Tunis","Mersin","Algiers","Málaga","Toyama","Jinan","Nagano","Xining","Handan","Kanazawa","Utsunomiya","Maebashi","Mito","Mosul","Mashhad","Arbil","Las Vegas","Nashville","Gibraltar","Tulsa","Fukui","Qingdao","Lanzhou","Knoxville","Valletta","Birkirkara","Los Alamos","Daegu","Raleigh","Tangier","Tehran","Tokyo","Santa Fe","Kōfu","Chiba","Latakia","Kawasaki","Tottori","Oklahoma City","Matsue","Kirkuk","Yokohama","Gifu","Tiaret","Heraklion","Melilla","Charlotte","Nagoya","Busan","Nicosia","Memphis","Albuquerque","Ōtsu","Kyoto","Shizuoka","Zhengzhou","Little Rock","Sfax","Tsu","Osaka","Kōbe","Nara","Okayama","Kabul","Santa Barbara","Hiroshima","Takamatsu","Xi'an","Wakayama","Wilmington","Yamaguchi","Arak","Srinagar","Tokushima","Los Angeles","Rabat","Peshawar","Columbia","Riverside","Beirut","Matsuyama","Atlanta","Islamabad","Birmingham","Rawalpindi","Fukuoka","Kōchi","Casablanca","Damascus","Phoenix","Lubbock","Baghdad","Saga","Ōita","Tripoli","Charleston","Dallas","Nagasaki","Kumamoto","San Diego","Mexicali","Funchal","El Centro","Isfahan","Karbala","Tijuana","Shreveport","Jackson","Hamilton","Tucson","Benghazi","Tel Aviv","Nanjing","Najaf","Amman","Miyazaki","Ramallah","Ensenada","El Paso","Jerusalem","Ciudad Juárez","Amritsar","Marrakech","Kandahar","Kagoshima","Lahore","Gaza","Faisalabad","Port Said","Alexandria","Shanghai","Shimla","Ludhiana","Chandigarh","Mobile","Chengdu","Wuhan","Basra","Agadir","Jacksonville","Austin","Hangzhou","Multan","Cairo","New Orleans","Suez","Houston","Lhasa","Chongqing","Eilat","San Antonio","Kuwait City","Shigatse","Hermosillo","Chihuahua","New Delhi","Santa Cruz de Tenerife","Orlando","Las Palmas de Gran Canaria","Tampa","Corpus Christi","Maspalomas","Kathmandu","Dibrugarh","Thimphu","Gangtok","Agra","El Aaiún","Sabha","Jaipur","Lucknow","Siliguri","Tezpur","Kanpur","Dammam","Naha","Manama","Guwahati","Brownsville","Miami","Luxor","Monterrey","Patna","Shillong","Torreón","Kulpahar","Doha","Dubai","Hyderabad","Nassau","Kunming","Taipei","Karachi","Culiacán","Riyadh","Key West","Medina","Abu Dhabi","Al Ain","Taichung","Durango","Agartala","Dhaka","Muscat","Havana","Guangzhou","Ahmedabad","Dongguan","Tainan","Cabo San Lucas","Nanning","Kaohsiung","Kolkata (Calcutta)","Shenzhen","Chittagong","Hong Kong","Tampico","San Luis Potosí","Aguascalientes","Jeddah","Cockburn Town","Mecca","Honolulu","Chhattisgarh","Cancún","Surat","Nagpur","León","Hanoi","Mérida","Hai Phong","Zapopan","Puerto Vallarta","Guadalajara","Querétaro","Haikou","Santiago de Cuba","Chiang Rai","Naypyidaw","Hilo","George Town","Veracruz","Puebla","Mumbai","Chiang Mai","Port-au-Prince","Pune","Santo Domingo","San Juan","Road Town","Charlotte Amalie","The Valley","Nouakchott","Kingston","Vientiane","Visakhapatnam","Belize City","Udon Thani","Hyderabad","Basseterre","Belmopan","St. John's","Salalah","Acapulco","Yangon","Timbuktu","Huế","Khon Kaen","Da Nang","Basse-Terre","Omdurman","Khartoum","Sana'a","Asmara","Roseau","Saipan","Son My","Nakhon Ratchasima","Praia","Tapachula","Quetzaltenango","Thiès","Dakar","Quezon City","Guatemala City","Fort-de-France","Manila","Makati","Ayutthaya","Tegucigalpa","Castries","Bangkok","San Salvador","Niamey","Dededo","Hagåtña","Banjul","Serekunda","Siem Reap","Brikama","Kingstown","Bridgetown","Chennai (Madras)","Bangalore","Pattaya","Koulikoro","Bamako","Chinandega","Oranjestad","Ouagadougou","Managua","Willemstad","N'Djamena","St. George's","Kano","Bissau","Port Blair","Djibouti","Phnom Penh","Bobo-Dioulasso","Barranquilla","Ho Chi Minh City","Iloilo City","Port of Spain","Maracaibo","Liberia","Caracas","Chaguanas","Cartagena","San Fernando","Cebu City","Maracay","Valencia","Alajuela","Limón","Jaffna","Hargeisa","Puntarenas","Kochi","San José","Tagbilaran","Conakry","Tamale","Surat Thani","Abuja","Addis Ababa","Panama City","Mérida","Moundou","Trivandrum","Freetown","Ciudad Bolívar","Cúcuta","Phuket","San Cristóbal","Nzérékoré","Batticaloa","Melekeok","Weno","Ibadan","Koror","Kandy","Majuro","Davao City","Hat Yai","Colombo","Palikir","Sri Jayawardenapura-Kotte","Zamboanga City","Yamoussoukro","Georgetown","Kumasi","Porto-Novo","Lagos","Enugu","Cotonou","Benin City","Monrovia","Medellín","Lomé","Kota Bharu","Alor Setar","Kota Kinabalu","Paramaribo","Puerto Ayacucho","Accra","Banda Aceh","George Town","Abidjan","Cayenne","Sekondi-Takoradi","Bandar Seri Begawan","Juba","Port Harcourt","Ipoh","Bogotá","Miri","Bangui","Malé","Douala","Yaoundé","Malabo","Medan","Santiago de Cali","Kuala Lumpur","Boa Vista","Malacca Town","Mogadishu","Kuching","Johor Bahru","South Tarawa","Singapore","Pekanbaru","Libreville","São Tomé","Kampala","Entebbe","Mbandaka","Macapá","Pontianak","Quito","Kismayo","Yaren District","Padang","Balikpapan","Nairobi","Belém","Kigali","Guayaquil","Mwanza","São Luís","Jayapura","Palembang","Manaus","Bujumbura","Sobral","Ambon","Fortaleza","Iquitos","Fernando de Noronha","Mombasa","Brazzaville","Kinshasa","Victoria","Teresina","Makassar","Imperatriz","Natal","Zanzibar City","Dodoma","Jakarta","Bogor","Dar es Salaam","Bandung","Semarang","João Pessoa","Juazeiro do Norte","Campina Grande","Surabaya","Yogyakarta","Malang","Recife","Trujillo","Caruaru","Funafuti","Dili","Denpasar","Porto Velho","Luanda","Garanhuns","Nukulaelae","Petrolina","Honiara","Port Moresby","Maceió","Rio Branco","Aracaju","Palmas","Lubumbashi","Moroni","Sinop","Lima","Darwin","Huambo","Mamoudzou","Ndola","Salvador","Ayacucho","Mata-Utu","Cusco","Apia","Lilongwe","Pago Pago","Ilhéus","Lusaka","Cuiabá","Blantyre","Brasília","Jamestown","Arequipa","Labasa","Rabi Island","La Paz","Goiânia","Cairns","Papeete","Port Vila","Santa Cruz de la Sierra","Livingstone","Harare","Suva","Arica","Governador Valadares","Uberlândia","Antananarivo","Mutare","Sucre","Alofi","Townsville","Gweru","Belo Horizonte","Port Louis","Bulawayo","Iquique","Port Hedland","Vitória","Campo Grande","São José do Rio Preto","Saint-Denis","Nukuʻalofa","Francistown","Ribeirão Preto","Avarua","Juiz de Fora","Poços de Caldas","Araraquara","Nouméa","Bauru","Calama","Windhoek","Assis","Campinas","Rio de Janeiro","São José dos Campos","Rockhampton","São Paulo","Antofagasta","Polokwane","Gaborone","Salta","Adamstown","Asunción","Curitiba","Nelspruit","Ciudad del Este","Pretoria","Mafikeng","Maputo","Johannesburg","Mbabane","Lobamba","Manzini","San Miguel de Tucumán","Hanga Roa","Copiapó","Brisbane","Corrientes","Florianópolis","Gold Coast","Kimberley","Kingston","Bloemfontein","Maseru","Pietermaritzburg","Durban","La Serena","Córdoba","Santa Fe","Pelotas","Perth","San Juan","Mandurah","Bhisho","Mendoza","Newcastle","Rosario","Viña del Mar","Valparaíso","Santiago","Chuí","Sydney","Cape Town","Port Elizabeth","Wollongong","Buenos Aires","Montevideo","Adelaide","Canberra","Concepción","Auckland","Edinburgh of the Seven Seas","Hamilton","Melbourne","Mar del Plata","Geelong","Bahía Blanca","Temuco","Neuquén","Hastings","Valdivia","San Carlos de Bariloche","Nelson","Wellington","Puerto Montt","Launceston, Tasmania","Hobart","Trelew","Christchurch","Waitangi","Puerto Aisén","Coihaique","Comodoro Rivadavia","Dunedin","Invercargill","Río Gallegos","Stanley","Punta Arenas","Grytviken","Ushuaia","Puerto Williams","Puerto Toro","Villa Las Estrellas","Esperanza","Rothera","Concordia"];return ks}var yp;function Ki(){return yp||(yp=1,(function(e){var i=bi&&bi.__createBinding||(Object.create?(function(R,A,f,E){E===void 0&&(E=f);var S=Object.getOwnPropertyDescriptor(A,f);(!S||("get"in S?!A.__esModule:S.writable||S.configurable))&&(S={enumerable:!0,get:function(){return A[f]}}),Object.defineProperty(R,E,S)}):(function(R,A,f,E){E===void 0&&(E=f),R[E]=A[f]})),n=bi&&bi.__setModuleDefault||(Object.create?(function(R,A){Object.defineProperty(R,"default",{enumerable:!0,value:A})}):function(R,A){R.default=A}),a=bi&&bi.__importStar||function(R){if(R&&R.__esModule)return R;var A={};if(R!=null)for(var f in R)f!=="default"&&Object.prototype.hasOwnProperty.call(R,f)&&i(A,R,f);return n(A,R),A};Object.defineProperty(e,"__esModule",{value:!0}),e.makeNamesTypeAttributes=e.singularizeTypeNames=e.modifyTypeNames=e.namesTypeAttributeKind=e.TooManyTypeNames=e.RegularTypeNames=e.TypeNames=e.tooManyNamesThreshold=e.initTypeNames=void 0;const l=a(vg()),d=et(),u=Qe(),c=At(),w=Nt(),U=D_();let F,O;function M(){F=new U.Chance(31415),O=new Set}e.initTypeNames=M,M();function L(){for(;;){const R=`${F.city()} ${F.animal()}`;if(!O.has(R))return O.add(R),R}}function _(R){let A=(0,d.iterableFirst)(R);if(A===void 0)return(0,u.panic)("Named type has no names");if(R.size===1)return A;const f=(0,d.setMap)(R,p=>(0,w.splitIntoWords)(p).map(g=>g.word.toLowerCase()).join("_")),E=(0,u.defined)((0,d.iterableFirst)(f));if(f.size===1)return E;let S=E.length,P=E.length;for(const p of(0,d.iterableSkip)(f,1)){S=Math.min(S,p.length);for(let g=0;g<S;g++)if(E[g]!==p[g]){S=g;break}P=Math.min(P,p.length);for(let g=0;g<P;g++)if(E[E.length-g-1]!==p[p.length-g-1]){P=g;break}}const y=S>2?E.slice(0,S):"",r=P>2?E.slice(E.length-P):"",s=y+r;return s.length>2?s:E}e.tooManyNamesThreshold=1e3;let b=class Sg{static makeWithDistance(A,f,E){return A.size>=e.tooManyNamesThreshold?new h(E):((f===void 0||f.size>e.tooManyNamesThreshold)&&(f=void 0),new v(A,f,E))}static make(A,f,E){return Sg.makeWithDistance(A,f,E?1:0)}constructor(A){this.distance=A}get areInferred(){return this.distance>0}};e.TypeNames=b;class v extends b{constructor(A,f,E){super(E),this.names=A,this._alternativeNames=f}add(A,f=0){let E=new Set(this.names),S=this.distance,P=(0,d.definedMap)(this._alternativeNames,y=>new Set(y));for(let y=f;y<A.length;y++){const r=A[y];if(r instanceof v&&r._alternativeNames!==void 0&&(P===void 0&&(P=new Set),(0,d.setUnionInto)(P,r._alternativeNames)),!(r.distance>S)){if(!(r instanceof v))return(0,u.assert)(r instanceof h,"Unknown TypeNames instance"),r.add(A,y+1);r.distance<S?(E=new Set(r.names),S=r.distance,P=(0,d.definedMap)(r._alternativeNames,s=>new Set(s))):((0,u.assert)(r.distance===S,"This should be the only case left"),(0,d.setUnionInto)(E,r.names))}}return b.makeWithDistance(E,P,S)}clearInferred(){const A=this.areInferred?new Set:this.names;return b.makeWithDistance(A,new Set,this.distance)}get combinedName(){return _(this.names)}get proposedNames(){const A=new Set([this.combinedName]);return this._alternativeNames===void 0||(0,d.setUnionInto)(A,this._alternativeNames),A}makeInferred(){return b.makeWithDistance(this.names,this._alternativeNames,this.distance+1)}singularize(){return b.makeWithDistance((0,d.setMap)(this.names,l.singular),(0,d.definedMap)(this._alternativeNames,A=>(0,d.setMap)(A,l.singular)),this.distance+1)}toString(){const f=`${this.areInferred?`distance ${this.distance}`:"given"} ${Array.from(this.names).join(",")}`;return this._alternativeNames===void 0?f:`${f} (${Array.from(this._alternativeNames).join(",")})`}}e.RegularTypeNames=v;class h extends b{constructor(A,f){super(A),f===void 0&&(f=L()),this.names=new Set([f])}get combinedName(){return(0,u.defined)((0,d.iterableFirst)(this.names))}get proposedNames(){return this.names}add(A,f=0){if(!this.areInferred)return this;for(let E=f;E<A.length;E++){const S=A[E];if(S.distance<this.distance)return S.add(A,E+1)}return this}clearInferred(){return this.areInferred?b.makeWithDistance(new Set,new Set,this.distance):this}makeInferred(){return new h(this.distance+1,(0,d.iterableFirst)(this.names))}singularize(){return this}toString(){return`too many ${this.combinedName}`}}e.TooManyTypeNames=h;class m extends c.TypeAttributeKind{constructor(){super("names")}combine(A){return(0,u.assert)(A.length>0,"Can't combine zero type names"),A[0].add(A,1)}makeInferred(A){return A.makeInferred()}increaseDistance(A){return A.makeInferred()}stringify(A){return A.toString()}}e.namesTypeAttributeKind=new m;function k(R,A){return e.namesTypeAttributeKind.modifyInAttributes(R,A)}e.modifyTypeNames=k;function B(R){return k(R,A=>{if(A!==void 0)return A.singularize()})}e.singularizeTypeNames=B;function C(R,A){let f;return typeof R=="string"?f=b.make(new Set([R]),new Set,(0,u.defined)(A)):f=R,e.namesTypeAttributeKind.makeAttributes(f)}e.makeNamesTypeAttributes=C})(bi)),bi}var Tt={},ot={},Ti={},_l={},gp;function is(){return gp||(gp=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.TypeBuilder=e.getNoStringTypeMapping=e.stringTypeMappingGet=e.provenanceTypeAttributeKind=void 0;const i=et(),n=mt(),a=ni(),l=At(),d=Qe(),u=Pi();class c extends l.TypeAttributeKind{constructor(){super("provenance")}appliesToTypeKind(L){return!0}combine(L){return(0,i.setUnionManyInto)(new Set,L)}makeInferred(L){return L}stringify(L){return Array.from(L).sort().map(_=>_.toString()).join(",")}}e.provenanceTypeAttributeKind=new c;function w(M,L){const _=M.get(L);return _===void 0?"string":_}e.stringTypeMappingGet=w;let U;function F(){return U===void 0&&(U=new Map(Array.from(n.transformedStringTypeKinds).map(M=>[M,M]))),U}e.getNoStringTypeMapping=F;class O{constructor(L,_,b,v,h,m){this._stringTypeMapping=_,this.canonicalOrder=b,this._allPropertiesOptional=v,this._addProvenanceAttributes=h,this.topLevels=new Map,this.types=[],this.typeAttributes=[],this._addedForwardingIntersection=!1,this._typeForIdentity=new i.EqualityMap,(0,d.assert)(!h||!m,"We can't both inherit as well as add provenance"),this.typeGraph=new a.TypeGraph(this,L,h||m)}addTopLevel(L,_){(0,d.assert)(!this.topLevels.has(L),"Trying to add top-level with existing name"),(0,d.assert)(this.types[(0,a.typeRefIndex)(_)]!==void 0,"Trying to add a top-level type that doesn't exist (yet?)"),this.topLevels.set(L,_)}reserveTypeRef(){const L=this.types.length;this.types.push(void 0);const _=(0,a.makeTypeRef)(this.typeGraph,L),b=this._addProvenanceAttributes?e.provenanceTypeAttributeKind.makeAttributes(new Set([L])):l.emptyTypeAttributes;return this.typeAttributes.push(b),_}assertTypeRefGraph(L){L!==void 0&&(0,a.assertTypeRefGraph)(L,this.typeGraph)}assertTypeRefSetGraph(L){L!==void 0&&L.forEach(_=>this.assertTypeRefGraph(_))}filterTypeAttributes(L,_){const b=(0,i.mapFilter)(_,(v,h)=>h.appliesToTypeKind(L.kind));return _.size!==b.size&&this.setLostTypeAttributes(),b}commitType(L,_){this.assertTypeRefGraph(L);const b=(0,a.typeRefIndex)(L);(0,d.assert)(this.types[b]===void 0,"A type index was committed twice"),this.types[b]=_,this.typeAttributes[b]=this.filterTypeAttributes(_,this.typeAttributes[b])}addType(L,_,b){L!==void 0&&(this.assertTypeRefGraph(L),(0,d.assert)(this.types[(0,a.typeRefIndex)(L)]===void 0));const v=L!==void 0?L:this.reserveTypeRef();if(b!==void 0){const m=(0,a.typeRefIndex)(v);this.typeAttributes[m]=(0,l.combineTypeAttributes)("union",this.typeAttributes[m],b)}const h=_(v);return this.commitType(v,h),v}typeAtIndex(L){const _=this.types[L];return _===void 0?(0,d.panic)("Trying to deref an undefined type in a type builder"):_}atIndex(L){const _=this.typeAtIndex(L),b=this.typeAttributes[L];return[_,b]}addAttributes(L,_){this.assertTypeRefGraph(L);const b=(0,a.typeRefIndex)(L),v=this.typeAttributes[b];(0,d.assert)((0,i.iterableEvery)(_,([k,B])=>{if(!k.inIdentity)return!0;const C=v.get(k);return C===void 0?!1:(0,i.areEqual)(C,B)}),"Can't add different identity type attributes to an existing type");const h=this.types[b];h!==void 0&&(_=this.filterTypeAttributes(h,_));const m=(0,i.mapFilter)(_,(k,B)=>!B.inIdentity);this.typeAttributes[b]=(0,l.combineTypeAttributes)("union",v,m)}finish(){return this.typeGraph.freeze(this.topLevels,this.types.map(d.defined),this.typeAttributes),this.typeGraph}addForwardingIntersection(L,_){return this.assertTypeRefGraph(_),this._addedForwardingIntersection=!0,this.addType(L,b=>new n.IntersectionType(b,this.typeGraph,new Set([_])),void 0)}forwardIfNecessary(L,_){if(_!==void 0)return L===void 0?_:this.addForwardingIntersection(L,_)}get didAddForwardingIntersection(){return this._addedForwardingIntersection}registerTypeForIdentity(L,_){L!==void 0&&this._typeForIdentity.set(L,_)}makeIdentity(L){return L()}getOrAddType(L,_,b,v){const h=this.makeIdentity(L);let m;if(h===void 0?m=void 0:m=this._typeForIdentity.get(h),m!==void 0){const B=this.forwardIfNecessary(v,m);return b!==void 0&&this.addAttributes(B,(0,i.mapFilter)(b,(C,R)=>!R.inIdentity)),B}const k=this.addType(v,_,b);return this.registerTypeForIdentity(h,k),k}registerType(L){this.registerTypeForIdentity(L.identity,L.typeRef)}getPrimitiveType(L,_,b){const v=(0,i.withDefault)(_,l.emptyTypeAttributes);let h=L==="string"?void 0:u.StringTypes.unrestricted;return(0,n.isPrimitiveStringTypeKind)(L)&&L!=="string"&&(L=w(this._stringTypeMapping,L)),L==="string"?this.getStringType(v,h,b):this.getOrAddType(()=>(0,n.primitiveTypeIdentity)(L,v),m=>new n.PrimitiveType(m,this.typeGraph,L),v,b)}getStringType(L,_,b){const v=(0,i.mapFind)(L,(h,m)=>m===u.stringTypesTypeAttributeKind);return(0,d.assert)(_===void 0!=(v===void 0),"Must instantiate string type with one enum case attribute"),v===void 0&&(L=(0,l.combineTypeAttributes)("union",L,u.stringTypesTypeAttributeKind.makeAttributes((0,d.defined)(_)))),this.getOrAddType(()=>(0,n.primitiveTypeIdentity)("string",L),h=>new n.PrimitiveType(h,this.typeGraph,"string"),L,b)}getEnumType(L,_,b){return this.getOrAddType(()=>(0,n.enumTypeIdentity)(L,_),v=>new n.EnumType(v,this.typeGraph,_),L,b)}makeClassProperty(L,_){return new n.ClassProperty(L,this.typeGraph,_)}getUniqueObjectType(L,_,b,v){return this.assertTypeRefGraph(b),_=(0,i.definedMap)(_,h=>this.modifyPropertiesIfNecessary(h)),this.addType(v,h=>new n.ObjectType(h,this.typeGraph,"object",!0,_,b),L)}getUniqueMapType(L){return this.addType(L,_=>new n.MapType(_,this.typeGraph,void 0),void 0)}getMapType(L,_,b){return this.assertTypeRefGraph(_),this.getOrAddType(()=>(0,n.mapTypeIdentify)(L,_),v=>new n.MapType(v,this.typeGraph,_),L,b)}setObjectProperties(L,_,b){this.assertTypeRefGraph(b);const v=(0,a.derefTypeRef)(L,this.typeGraph);if(!(v instanceof n.ObjectType))return(0,d.panic)("Tried to set properties of non-object type");v.setProperties(this.modifyPropertiesIfNecessary(_),b),this.registerType(v)}getUniqueArrayType(L){return this.addType(L,_=>new n.ArrayType(_,this.typeGraph,void 0),void 0)}getArrayType(L,_,b){return this.assertTypeRefGraph(_),this.getOrAddType(()=>(0,n.arrayTypeIdentity)(L,_),v=>new n.ArrayType(v,this.typeGraph,_),L,b)}setArrayItems(L,_){this.assertTypeRefGraph(_);const b=(0,a.derefTypeRef)(L,this.typeGraph);if(!(b instanceof n.ArrayType))return(0,d.panic)("Tried to set items of non-array type");b.setItems(_),this.registerType(b)}modifyPropertiesIfNecessary(L){return L.forEach(_=>this.assertTypeRefGraph(_.typeRef)),this.canonicalOrder&&(L=(0,i.mapSortByKey)(L)),this._allPropertiesOptional&&(L=(0,i.mapMap)(L,_=>this.makeClassProperty(_.typeRef,!0))),L}getClassType(L,_,b){return _=this.modifyPropertiesIfNecessary(_),this.getOrAddType(()=>(0,n.classTypeIdentity)(L,_),v=>new n.ClassType(v,this.typeGraph,!1,_),L,b)}getUniqueClassType(L,_,b,v){return b=(0,i.definedMap)(b,h=>this.modifyPropertiesIfNecessary(h)),this.addType(v,h=>new n.ClassType(h,this.typeGraph,_,b),L)}getUnionType(L,_,b){return this.assertTypeRefSetGraph(_),this.getOrAddType(()=>(0,n.unionTypeIdentity)(L,_),v=>new n.UnionType(v,this.typeGraph,_),L,b)}getUniqueUnionType(L,_,b){return this.assertTypeRefSetGraph(_),this.addType(b,v=>new n.UnionType(v,this.typeGraph,_),L)}getIntersectionType(L,_,b){return this.assertTypeRefSetGraph(_),this.getOrAddType(()=>(0,n.intersectionTypeIdentity)(L,_),v=>new n.IntersectionType(v,this.typeGraph,_),L,b)}getUniqueIntersectionType(L,_,b){return this.assertTypeRefSetGraph(_),this.addType(b,v=>new n.IntersectionType(v,this.typeGraph,_),L)}setSetOperationMembers(L,_){this.assertTypeRefSetGraph(_);const b=(0,a.derefTypeRef)(L,this.typeGraph);if(!(b instanceof n.UnionType||b instanceof n.IntersectionType))return(0,d.panic)("Tried to set members of non-set-operation type");b.setMembers(_),this.registerType(b)}setLostTypeAttributes(){}}e.TypeBuilder=O})(_l)),_l}var bp;function Pi(){if(bp)return Ti;bp=1,Object.defineProperty(Ti,"__esModule",{value:!0}),Ti.inferTransformedStringTypeKindForString=Ti.stringTypesTypeAttributeKind=Ti.StringTypes=void 0;const e=et(),i=At(),n=Qe(),a=is();let l=class qi{static fromCase(v,h){return new qi(new Map([[v,h]]),new Set)}static fromCases(v){for(const h of v);return new qi(new Map(v.map(h=>[h,1])),new Set)}constructor(v,h){this.cases=v,this.transformations=h,v===void 0&&(0,n.assert)(h.size===0,"We can't have an unrestricted string that also allows transformations")}get isRestricted(){return this.cases!==void 0}union(v,h){if(this.cases===void 0)return this;const m=new Map(this.cases),k=new Set(this.transformations);for(let B=h;B<v.length;B++){const C=v[B];if(C.cases===void 0)return C;(0,e.mapMergeWithInto)(m,(R,A)=>R+A,C.cases),(0,e.setUnionInto)(k,C.transformations)}return new qi(m,k)}intersect(v,h){let m=this.cases,k=this.transformations;for(let B=h;B<v.length;B++){const C=v[B];if(m===void 0)m=(0,e.definedMap)(C.cases,R=>new Map(R));else if(C.cases!==void 0){const R=m,A=C.cases;m=(0,e.mapMap)((0,e.setIntersect)(R.keys(),new Set(A.keys())).entries(),f=>Math.min((0,n.defined)(R.get(f)),(0,n.defined)(A.get(f))))}k=(0,e.setIntersect)(k,C.transformations)}return new qi(m,k)}applyStringTypeMapping(v){if(!this.isRestricted)return this;const h=new Set;for(const m of this.transformations){const k=(0,a.stringTypeMappingGet)(v,m);if(k==="string")return qi.unrestricted;h.add(k)}return new qi(this.cases,new Set(h))}equals(v){return v instanceof qi?(0,e.areEqual)(this.cases,v.cases)&&(0,e.areEqual)(this.transformations,v.transformations):!1}hashCode(){let v=(0,e.hashCodeOf)(this.cases);return v=(0,e.addHashCode)(v,(0,e.hashCodeOf)(this.transformations)),v}toString(){const v=[],h=this.cases;if(h===void 0)v.push("unrestricted");else{const m=(0,e.iterableFirst)(h.keys());m===void 0?v.push("enum with no cases"):v.push(`${h.size.toString()} enums: ${m} (${h.get(m)}), ...`)}return v.concat(Array.from(this.transformations)).join(",")}};Ti.StringTypes=l,l.unrestricted=new l(void 0,new Set);class d extends i.TypeAttributeKind{constructor(){super("stringTypes")}get inIdentity(){return!0}requiresUniqueIdentity(v){return v.cases!==void 0&&v.cases.size>0}combine(v){return(0,n.assert)(v.length>0),v[0].union(v,1)}intersect(v){return(0,n.assert)(v.length>0),v[0].intersect(v,1)}makeInferred(v){}stringify(v){return v.toString()}}Ti.stringTypesTypeAttributeKind=new d;const u=/^(0|-?[1-9]\d*)$/,c=1<<31,w=2147483647;function U(b){if(b.match(u)===null)return!1;const v=parseInt(b,10);return v>=c&&v<=w}const F=/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/;function O(b){return b.match(F)!==null}const M=/^(https?|ftp):\/\/[^{}]+$/;function L(b){return b.match(M)!==null}function _(b,v){if(!(b.length===0||"0123456789-abcdefth".indexOf(b[0])<0)){if(v.isDate(b))return"date";if(v.isTime(b))return"time";if(v.isDateTime(b))return"date-time";if(U(b))return"integer-string";if(b==="false"||b==="true")return"bool-string";if(O(b))return"uuid";if(L(b))return"uri"}}return Ti.inferTransformedStringTypeKindForString=_,Ti}var Tp;function pt(){if(Tp)return ot;Tp=1,Object.defineProperty(ot,"__esModule",{value:!0}),ot.matchCompoundType=ot.matchType=ot.matchTypeExhaustive=ot.stringTypesForType=ot.directlyReachableSingleNamedType=ot.directlyReachableTypes=ot.separateNamedTypes=ot.isNamedType=ot.getNullAsOptional=ot.nonNullTypeCases=ot.nullableFromUnion=ot.removeNullFromType=ot.removeNullFromUnion=ot.isAnyOrNull=ot.combineTypeAttributesOfTypes=ot.makeGroupsToFlatten=ot.setOperationMembersRecursively=ot.assertIsClass=ot.assertIsObject=void 0;const e=et(),i=Qe(),n=At(),a=mt(),l=Pi();function d(f){return f instanceof a.ObjectType?f:(0,i.panic)("Supposed object type is not an object type")}ot.assertIsObject=d;function u(f){return f instanceof a.ClassType?f:(0,i.panic)("Supposed class type is not a class type")}ot.assertIsClass=u;function c(f,E){const S=Array.isArray(f)?f:[f],P=S[0].kind,y=P!=="intersection",r=new Set,s=new Set;let p=n.emptyTypeAttributes;function g(I){if(I.kind===P){const x=I;if(r.has(x))return;r.add(x),E!==void 0&&(p=(0,n.combineTypeAttributes)(E,p,I.getAttributes()));for(const q of x.members)g(q)}else y||I.kind!=="any"?s.add(I):E!==void 0&&(p=(0,n.combineTypeAttributes)(E,p,I.getAttributes()))}for(const I of S)g(I);return[s,p]}ot.setOperationMembersRecursively=c;function w(f,E){const S=new e.EqualityMap;for(const P of f){const y=new Set(c(P,void 0)[0]);if(E!==void 0&&!E(y))continue;let r=S.get(y);r===void 0&&(r=new Set,y.size===1&&r.add((0,i.defined)((0,e.iterableFirst)(y)))),r.add(P),S.set(y,r)}return Array.from(S.values()).map(P=>Array.from(P))}ot.makeGroupsToFlatten=w;function U(f,E){return(0,n.combineTypeAttributes)(f,Array.from(E).map(S=>S.getAttributes()))}ot.combineTypeAttributesOfTypes=U;function F(f){return f.kind==="any"||f.kind==="null"}ot.isAnyOrNull=F;function O(f,E=!1){function S(y){return E===!1?y:E===!0?(0,e.setSortBy)(y,r=>r.kind):(0,e.setSortBy)(y,E)}const P=f.findMember("null");return P===void 0?[null,S(f.members)]:[P,S((0,e.setFilter)(f.members,y=>y.kind!=="null"))]}ot.removeNullFromUnion=O;function M(f){return f.kind==="null"?[f,new Set]:f instanceof a.UnionType?O(f):[null,new Set([f])]}ot.removeNullFromType=M;function L(f){const[E,S]=O(f);return E===null||S.size!==1?null:(0,i.defined)((0,e.iterableFirst)(S))}ot.nullableFromUnion=L;function _(f){return M(f)[1]}ot.nonNullTypeCases=_;function b(f){const[E,S]=M(f.type);return f.isOptional?[!0,S]:[E!==null,S]}ot.getNullAsOptional=b;function v(f){return["class","union","enum","object"].indexOf(f.kind)>=0}ot.isNamedType=v;function h(f){const E=(0,e.setFilter)(f,y=>y.kind==="object"||y.kind==="class"),S=(0,e.setFilter)(f,y=>y instanceof a.EnumType),P=(0,e.setFilter)(f,y=>y instanceof a.UnionType);return{objects:E,enums:S,unions:P}}ot.separateNamedTypes=h;function m(f,E){const S=E(f);return S!==null?S:(0,e.setUnion)(...Array.from(f.getNonAttributeChildren()).map(P=>m(P,E)))}ot.directlyReachableTypes=m;function k(f){const E=m(f,S=>!(S instanceof a.UnionType)&&v(S)||S instanceof a.UnionType&&L(S)===null?new Set([S]):null);return(0,i.assert)(E.size<=1,"Cannot have more than one defined type per top-level"),(0,e.iterableFirst)(E)}ot.directlyReachableSingleNamedType=k;function B(f){(0,i.assert)(f.kind==="string","Only strings can have string types");const E=l.stringTypesTypeAttributeKind.tryGetInAttributes(f.getAttributes());return E===void 0?(0,i.panic)("All strings must have a string type attribute"):E}ot.stringTypesForType=B;function C(f,E,S,P,y,r,s,p,g,I,x,q,T,D,W){if(f.isPrimitive()){if((0,a.isPrimitiveStringTypeKind)(f.kind))return f.kind==="string"?p(f):W(f);const J=f.kind,X={none:E,any:S,null:P,bool:y,integer:r,double:s}[J];return X!==void 0?X(f):(0,i.assertNever)(X)}else{if(f instanceof a.ArrayType)return g(f);if(f instanceof a.ClassType)return I(f);if(f instanceof a.MapType)return x(f);if(f instanceof a.ObjectType)return q(f);if(f instanceof a.EnumType)return T(f);if(f instanceof a.UnionType)return D(f)}return(0,i.panic)(`Unknown type ${f.kind}`)}ot.matchTypeExhaustive=C;function R(f,E,S,P,y,r,s,p,g,I,x,q,T){function D(W){return(0,i.panic)(`Unsupported type ${W.kind} in non-exhaustive match`)}return C(f,D,E,S,P,y,r,s,p,g,I,D,x,q,T||D)}ot.matchType=R;function A(f,E,S,P,y,r){function s(p){}return C(f,s,s,s,s,s,s,s,E,S,P,y,s,r,s)}return ot.matchCompoundType=A,ot}var Zn={},vp;function j_(){if(vp)return Zn;vp=1,Object.defineProperty(Zn,"__esModule",{value:!0}),Zn.GraphRewriteBuilder=Zn.GraphRemapBuilder=Zn.BaseGraphRewriteBuilder=Zn.TypeReconstituter=void 0;const e=et(),i=pt(),n=ni(),a=At(),l=Qe(),d=is();class u{constructor(O,M,L,_,b){this._typeBuilder=O,this._makeClassUnique=M,this._typeAttributes=L,this._forwardingRef=_,this._register=b,this._wasUsed=!1,this._typeRef=void 0}builderForNewType(){return(0,l.assert)(!this._wasUsed,"TypeReconstituter used more than once"),this._wasUsed=!0,this._typeBuilder}builderForSetting(){return(0,l.assert)(this._wasUsed&&this._typeRef!==void 0,"Can't set type members before constructing a type"),this._typeBuilder}getResult(){return this._typeRef===void 0?(0,l.panic)("Type was not reconstituted"):this._typeRef}register(O){(0,l.assert)(this._typeRef===void 0,"Cannot register a type twice"),this._typeRef=O,this._register(O)}registerAndAddAttributes(O){this._typeBuilder.addAttributes(O,this._typeAttributes),this.register(O)}lookup(O){if((0,l.assert)(!this._wasUsed,"Cannot lookup constituents after building type"),(0,n.isTypeRef)(O))return this._typeBuilder.lookupTypeRefs([O],void 0,!1);{const M=Array.from(O).map(L=>this._typeBuilder.lookupTypeRefs([L],void 0,!1));return M.some(L=>L===void 0)?void 0:M}}lookupMap(O){const M=this.lookup(O.values());if(M===void 0)return;(0,l.assert)(M.length===O.size,"Didn't get back the correct number of types");const L=new Map;let _=0;for(const b of O.keys())L.set(b,M[_]),_+=1;return L}reconstitute(O){return(0,l.assert)(this._wasUsed,"Cannot reconstitute constituents before building type"),(0,n.isTypeRef)(O)?this._typeBuilder.reconstituteTypeRef(O):Array.from(O).map(M=>this._typeBuilder.reconstituteTypeRef(M))}reconstituteMap(O){return(0,e.mapMap)(O,M=>this._typeBuilder.reconstituteTypeRef(M))}getPrimitiveType(O){this.register(this.builderForNewType().getPrimitiveType(O,this._typeAttributes,this._forwardingRef))}getEnumType(O){this.register(this.builderForNewType().getEnumType(this._typeAttributes,O,this._forwardingRef))}getUniqueMapType(){this.registerAndAddAttributes(this.builderForNewType().getUniqueMapType(this._forwardingRef))}getMapType(O){this.register(this.builderForNewType().getMapType(this._typeAttributes,O,this._forwardingRef))}getUniqueArrayType(){this.registerAndAddAttributes(this.builderForNewType().getUniqueArrayType(this._forwardingRef))}getArrayType(O){this.register(this.builderForNewType().getArrayType(this._typeAttributes,O,this._forwardingRef))}setArrayItems(O){this.builderForSetting().setArrayItems(this.getResult(),O)}makeClassProperty(O,M){return this._typeBuilder.makeClassProperty(O,M)}getObjectType(O,M){this.register(this.builderForNewType().getUniqueObjectType(this._typeAttributes,O,M,this._forwardingRef))}getUniqueObjectType(O,M){this.register(this.builderForNewType().getUniqueObjectType(this._typeAttributes,O,M,this._forwardingRef))}getClassType(O){if(this._makeClassUnique){this.getUniqueClassType(!1,O);return}this.register(this.builderForNewType().getClassType(this._typeAttributes,O,this._forwardingRef))}getUniqueClassType(O,M){this.register(this.builderForNewType().getUniqueClassType(this._typeAttributes,O,M,this._forwardingRef))}setObjectProperties(O,M){this.builderForSetting().setObjectProperties(this.getResult(),O,M)}getUnionType(O){this.register(this.builderForNewType().getUnionType(this._typeAttributes,O,this._forwardingRef))}getUniqueUnionType(){this.register(this.builderForNewType().getUniqueUnionType(this._typeAttributes,void 0,this._forwardingRef))}getIntersectionType(O){this.register(this.builderForNewType().getIntersectionType(this._typeAttributes,O,this._forwardingRef))}getUniqueIntersectionType(O){this.register(this.builderForNewType().getUniqueIntersectionType(this._typeAttributes,O,this._forwardingRef))}setSetOperationMembers(O){this.builderForSetting().setSetOperationMembers(this.getResult(),O)}}Zn.TypeReconstituter=u;class c extends d.TypeBuilder{constructor(O,M,L,_,b){super(O.serial+1,M,L,!1,!1,_),this.originalGraph=O,this.debugPrint=b,this.reconstitutedTypes=new Map,this._lostTypeAttributes=!1,this._printIndent=0}withForwardingRef(O,M){if(O!==void 0)return M(O);const L=this.reserveTypeRef(),_=M(L);return(0,l.assert)(_===L,"Type creator didn't return its forwarding ref"),_}reconstituteType(O,M,L){return this.reconstituteTypeRef(O.typeRef,M,L)}reconstituteTypeRef(O,M,L){const _=this.lookupTypeRefs([O],L);return _!==void 0?(M!==void 0&&this.addAttributes(_,M),_):this.forceReconstituteTypeRef(O,M,L)}reconstituteTypeAttributes(O){return(0,e.mapMap)(O,(M,L)=>L.reconstitute(this,M))}assertTypeRefsToReconstitute(O,M){(0,l.assert)(O.length>0,"Must have at least one type to reconstitute");for(const L of O)(0,n.assertTypeRefGraph)(L,this.originalGraph);M!==void 0&&(0,n.assertTypeRefGraph)(M,this.typeGraph)}changeDebugPrintIndent(O){this._printIndent+=O}get debugPrintIndentation(){return(0,l.indentationString)(this._printIndent)}finish(){for(const[O,M]of this.originalGraph.topLevels)this.addTopLevel(O,this.reconstituteType(M));return super.finish()}setLostTypeAttributes(){this._lostTypeAttributes=!0}get lostTypeAttributes(){return this._lostTypeAttributes}}Zn.BaseGraphRewriteBuilder=c;class w extends c{constructor(O,M,L,_,b,v){super(O,M,L,_,v),this._map=b,this._attributeSources=new Map;for(const[h,m]of b){let k=this._attributeSources.get(m);k===void 0&&(k=[m],this._attributeSources.set(m,k)),k.push(h)}}makeIdentity(O){}getMapTarget(O){const M=this._map.get((0,n.derefTypeRef)(O,this.originalGraph));return M===void 0?O:((0,l.assert)(this._map.get(M)===void 0,"We have a type that's remapped to a remapped type"),M.typeRef)}addForwardingIntersection(O,M){return(0,l.panic)("We can't add forwarding intersections when we're removing forwarding intersections")}lookupTypeRefs(O,M){(0,l.assert)(M===void 0,"We can't have a forwarding ref when we remap"),this.assertTypeRefsToReconstitute(O,M);const L=this.reconstitutedTypes.get((0,n.typeRefIndex)(this.getMapTarget(O[0])));if(L!==void 0){for(let _=1;_<O.length;_++){const b=this.reconstitutedTypes.get((0,n.typeRefIndex)(this.getMapTarget(O[_])));if(L!==b)return}return L}}forceReconstituteTypeRef(O,M,L){O=this.getMapTarget(O);const _=(0,n.typeRefIndex)(O);return(0,l.assert)(this.reconstitutedTypes.get(_)===void 0,"Type has already been reconstituted"),(0,l.assert)(L===void 0,"We can't have a forwarding ref when we remap"),this.withForwardingRef(void 0,b=>{this.reconstitutedTypes.set(_,b),this.debugPrint&&(console.log(`${this.debugPrintIndentation}reconstituting ${_} as ${(0,n.typeRefIndex)(b)}`),this.changeDebugPrintIndent(1));const[v,h]=(0,n.typeAndAttributesForTypeRef)(O,this.originalGraph),m=this._attributeSources.get(v);M===void 0&&(M=a.emptyTypeAttributes),m===void 0?M=(0,a.combineTypeAttributes)("union",M,this.reconstituteTypeAttributes(h)):M=(0,a.combineTypeAttributes)("union",M,this.reconstituteTypeAttributes((0,i.combineTypeAttributesOfTypes)("union",m)));const k=M,B=new u(this,this.canonicalOrder,k,b,C=>{(0,l.assert)(C===b,"Reconstituted type as a different ref"),this.debugPrint&&(this.changeDebugPrintIndent(-1),console.log(`${this.debugPrintIndentation}reconstituted ${_} as ${(0,n.typeRefIndex)(C)}`))});return v.reconstitute(B,this.canonicalOrder),B.getResult()})}}Zn.GraphRemapBuilder=w;class U extends c{constructor(O,M,L,_,b,v,h){super(O,M,L,_,v),this._replacer=h,this._reconstitutedUnions=new e.EqualityMap,this._setsToReplaceByMember=new Map;for(const m of b){const k=new Set(m);for(const B of k){const C=B.index;(0,l.assert)(!this._setsToReplaceByMember.has(C),"A type is member of more than one set to be replaced"),this._setsToReplaceByMember.set(C,k)}}}registerUnion(O,M){const L=new Set(O);(0,l.assert)(!this._reconstitutedUnions.has(L),"Cannot register reconstituted set twice"),this._reconstitutedUnions.set(L,M)}replaceSet(O,M){return this.withForwardingRef(M,L=>{this.debugPrint&&(console.log(`${this.debugPrintIndentation}replacing set ${Array.from(O).map(b=>b.index.toString()).join(",")} as ${(0,n.typeRefIndex)(L)}`),this.changeDebugPrintIndent(1));for(const b of O){const v=b.typeRef,h=(0,n.typeRefIndex)(v);this.reconstitutedTypes.set(h,L),this._setsToReplaceByMember.delete(h)}const _=this._replacer(O,this,L);return(0,l.assert)(_===L,"The forwarding ref got lost when replacing"),this.debugPrint&&(this.changeDebugPrintIndent(-1),console.log(`${this.debugPrintIndentation}replaced set ${Array.from(O).map(b=>b.index.toString()).join(",")} as ${(0,n.typeRefIndex)(L)}`)),_})}forceReconstituteTypeRef(O,M,L){const[_,b]=(0,n.typeAndAttributesForTypeRef)(O,this.originalGraph),v=(0,n.typeRefIndex)(O);this.debugPrint&&(console.log(`${this.debugPrintIndentation}reconstituting ${v}`),this.changeDebugPrintIndent(1)),M===void 0?M=this.reconstituteTypeAttributes(b):M=(0,a.combineTypeAttributes)("union",M,this.reconstituteTypeAttributes(b));const h=new u(this,this.canonicalOrder,M,L,m=>{this.debugPrint&&(this.changeDebugPrintIndent(-1),console.log(`${this.debugPrintIndentation}reconstituted ${v} as ${(0,n.typeRefIndex)(m)}`)),L!==void 0&&(0,l.assert)(m===L,"We didn't pass the forwarding ref");const k=this.reconstitutedTypes.get(v);k===void 0?this.reconstitutedTypes.set(v,m):(0,l.assert)(m===k,"We reconstituted a type twice differently")});return _.reconstitute(h,this.canonicalOrder),h.getResult()}lookupTypeRefs(O,M,L=!0){this.assertTypeRefsToReconstitute(O,M);let _=this.reconstitutedTypes.get((0,n.typeRefIndex)(O[0]));if(_!==void 0&&_!==M){let v=!0;for(let h=1;h<O.length;h++)if(this.reconstitutedTypes.get((0,n.typeRefIndex)(O[h]))!==_){v=!1;break}if(v)return this.forwardIfNecessary(M,_)}if(_=this._reconstitutedUnions.get(new Set(O)),_!==void 0&&_!==M)return this.forwardIfNecessary(M,_);const b=this._setsToReplaceByMember.get((0,n.typeRefIndex)(O[0]));if(b!==void 0){for(let v=1;v<O.length;v++)if(this._setsToReplaceByMember.get((0,n.typeRefIndex)(O[v]))!==b)return;if(L)return this.replaceSet(b,M)}}}return Zn.GraphRewriteBuilder=U,Zn}var Ns={},Sp;function Lg(){if(Sp)return Ns;Sp=1,Object.defineProperty(Ns,"__esModule",{value:!0}),Ns.Graph=void 0;const e=et(),i=Qe();function n(F){if(F.length===0)return 0;let O=-1,M=0;for(const L of F){(0,i.assert)(L.length>0,"Empty component not allowed");for(const _ of L)(0,i.assert)(_>=0,"Negative vertex index is invalid"),O=Math.max(O,_),M+=1}return(0,i.assert)(O+1===M,"Vertex indexes and count don't match up"),M}function a(F){let O=0;const M=[],L=F.length,_=(0,i.repeated)(L,-1),b=(0,i.repeated)(L,-1),v=(0,i.repeated)(L,!1),h=[];function m(k){_[k]=O,b[k]=O,O+=1,M.push(k),v[k]=!0;for(const B of F[k])_[B]<0?(m(B),b[k]=Math.min(b[k],b[B])):v[B]&&(b[k]=Math.min(b[k],_[B]));if(b[k]===_[k]){const B=[];let C;do C=(0,i.defined)(M.pop()),v[C]=!1,B.push(C);while(C!==k);h.push(B)}}for(let k=0;k<L;k++)_[k]<0&&m(k);return(0,i.assert)(n(h)===L,"We didn't put all the nodes into SCCs"),h}function l(F,O){const M=O.length,L=F.length;(0,i.assert)(L===n(O),"Components don't match up with graph");const _=(0,i.repeated)(L,-1);for(let b=0;b<M;b++)for(const v of O[b])(0,i.assert)(_[v]<0,"We have a node that's in two components"),_[v]=b;return _}function d(F,O){const M=O.length,L=l(F,O),_=(0,i.repeated)(M,!1),b=[];for(let v=0;v<M;v++){const h=[];for(const m of O[v])for(const k of F[m]){const B=L[k];B===v||_[B]||(h.push(B),_[B]=!0)}for(const m of h)(0,i.assert)(_[m]),_[m]=!1;b.push(h)}return b}function u(F){const O=F.length,M=(0,i.repeatedCall)(O,()=>[]);for(let L=0;L<O;L++)for(const _ of F[L])M[_].push(L);return M}function c(F){const O=F.length,M=(0,i.repeated)(O,0);for(const L of F)for(const _ of L)M[_]+=1;return M}function w(F){const O=F.length,M=c(F),L=[];for(let _=0;_<O;_++)M[_]===0&&L.push(_);return L}let U=class wg{constructor(O,M,L){this._nodes=Array.from(O),this._indexByNode=new Map(this._nodes.map((b,v)=>[b,v]));let _;Array.isArray(L)?_=L:_=this._nodes.map(b=>Array.from(L(b)).map(v=>(0,i.defined)(this._indexByNode.get(v)))),M&&(_=u(_)),this._successors=_}get size(){return this._nodes.length}get nodes(){return this._nodes}findRoots(){const O=w(this._successors);return new Set(O.map(M=>this._nodes[M]))}dfsTraversal(O,M,L){const _=(0,i.repeated)(this.size,!1),b=v=>{if(!_[v]){_[v]=!0,M&&L(this._nodes[v]);for(const h of this._successors[v])b(h);M||L(this._nodes[v])}};b((0,i.defined)(this._indexByNode.get(O)))}stronglyConnectedComponents(){const O=a(this._successors),M=d(this._successors,O);return new wg(O.map(L=>(0,e.setMap)(L,_=>this._nodes[_])),!1,M)}makeDot(O,M){const L=[];L.push("digraph G {"),L.push(" ordering = out;"),L.push("");for(let _=0;_<this.size;_++){const b=this._nodes[_];O(b)&&L.push(` node${_} [label="${M(b)}"];`)}for(let _=0;_<this.size;_++)if(O(this._nodes[_]))for(const b of this._successors[_])O(this._nodes[b])&&L.push(` node${_} -> node${b};`);return L.push("}"),L.push(""),L.join(`
140
140
  `)}};return Ns.Graph=U,Ns}var wp;function ni(){if(wp)return Tt;wp=1,Object.defineProperty(Tt,"__esModule",{value:!0}),Tt.removeIndirectionIntersections=Tt.optionalToNullable=Tt.noneToAny=Tt.TypeGraph=Tt.TypeAttributeStoreView=Tt.TypeAttributeStore=Tt.typeAndAttributesForTypeRef=Tt.attributesForTypeRef=Tt.derefTypeRef=Tt.assertTypeRefGraph=Tt.typeRefIndex=Tt.makeTypeRef=Tt.isTypeRef=void 0;const e=et(),i=mt(),n=pt(),a=Qe(),l=is(),d=j_(),u=Ki(),c=Lg(),w=At(),U=yn(),F=26,O=(1<<F)-1,L=(1<<31-F)-1;function _(y){return typeof y=="number"}Tt.isTypeRef=_;function b(y,r){return(0,a.assert)(r<=O,"Too many types in graph"),(y.serial&L)<<F|r}Tt.makeTypeRef=b;function v(y){return y&O}Tt.typeRefIndex=v;function h(y,r){(0,a.assert)((y>>F&L)===(r.serial&L),"Mixing the wrong type reference and graph")}Tt.assertTypeRefGraph=h;function m(y){return y instanceof f?y:y.originalGraph}function k(y,r){const s=m(r);return h(y,s),s.typeAtIndex(v(y))}Tt.derefTypeRef=k;function B(y,r){const s=m(r);return h(y,s),s.atIndex(v(y))[1]}Tt.attributesForTypeRef=B;function C(y,r){const s=m(r);return h(y,s),s.atIndex(v(y))}Tt.typeAndAttributesForTypeRef=C;class R{constructor(r,s){this._typeGraph=r,this._values=s,this._topLevelValues=new Map}getTypeIndex(r){const s=r.typeRef;return h(s,this._typeGraph),v(s)}attributesForType(r){const s=this.getTypeIndex(r),p=this._values[s];return p!==void 0?p:w.emptyTypeAttributes}attributesForTopLevel(r){const s=this._topLevelValues.get(r);return s!==void 0?s:w.emptyTypeAttributes}setInMap(r,s,p){return new Map(r).set(s,p)}set(r,s,p){const g=this.getTypeIndex(s);for(;g>=this._values.length;)this._values.push(void 0);this._values[g]=this.setInMap(this.attributesForType(s),r,p)}setForTopLevel(r,s,p){this._topLevelValues.set(s,this.setInMap(this.attributesForTopLevel(s),r,p))}tryGetInMap(r,s){return r.get(s)}tryGet(r,s){return this.tryGetInMap(this.attributesForType(s),r)}tryGetForTopLevel(r,s){return this.tryGetInMap(this.attributesForTopLevel(s),r)}}Tt.TypeAttributeStore=R;class A{constructor(r,s){this._attributeStore=r,this._definition=s}set(r,s){this._attributeStore.set(this._definition,r,s)}setForTopLevel(r,s){this._attributeStore.setForTopLevel(this._definition,r,s)}tryGet(r){return this._attributeStore.tryGet(this._definition,r)}get(r){return(0,a.defined)(this.tryGet(r))}tryGetForTopLevel(r){return this._attributeStore.tryGetForTopLevel(this._definition,r)}getForTopLevel(r){return(0,a.defined)(this.tryGetForTopLevel(r))}}Tt.TypeAttributeStoreView=A;let f=class{constructor(r,s,p){this.serial=s,this._haveProvenanceAttributes=p,this._attributeStore=void 0,this._topLevels=new Map,this._parents=void 0,this._printOnRewrite=!1,this._typeBuilder=r}get isFrozen(){return this._typeBuilder===void 0}get attributeStore(){return(0,a.defined)(this._attributeStore)}freeze(r,s,p){(0,a.assert)(!this.isFrozen,"Tried to freeze TypeGraph a second time");for(const g of s)h(g.typeRef,this);this._attributeStore=new R(this,p),this._types=s,this._typeBuilder=void 0,this._topLevels=(0,e.mapMap)(r,g=>k(g,this))}get topLevels(){return(0,a.assert)(this.isFrozen,"Cannot get top-levels from a non-frozen graph"),this._topLevels}typeAtIndex(r){return this._typeBuilder!==void 0?this._typeBuilder.typeAtIndex(r):(0,a.defined)(this._types)[r]}atIndex(r){if(this._typeBuilder!==void 0)return this._typeBuilder.atIndex(r);const s=this.typeAtIndex(r);return[s,(0,a.defined)(this._attributeStore).attributesForType(s)]}filterTypes(r){const s=new Set;let p=[];function g(I){if(s.has(I))return;s.add(I),(r===void 0||r(I))&&p.push(I);for(const q of I.getChildren())g(q)}for(const[,I]of this.topLevels)g(I);return new Set(p)}allNamedTypes(){return this.filterTypes(n.isNamedType)}allNamedTypesSeparated(){const r=this.allNamedTypes();return(0,n.separateNamedTypes)(r)}allProvenance(){(0,a.assert)(this._haveProvenanceAttributes);const r=new A(this.attributeStore,l.provenanceTypeAttributeKind),s=Array.from(this.allTypesUnordered()).map(g=>{const I=r.tryGet(g);return I!==void 0?I:new Set}),p=new Set;return(0,e.setUnionManyInto)(p,s),p}setPrintOnRewrite(){this._printOnRewrite=!0}checkLostTypeAttributes(r,s){if(!this._haveProvenanceAttributes||r.lostTypeAttributes)return;const p=this.allProvenance(),g=s.allProvenance();if(p.size!==g.size){const I=(0,e.setSubtract)(p,g),x=Array.from(I);return(0,U.messageError)("IRTypeAttributesNotPropagated",{count:I.size,indexes:x})}}printRewrite(r){this._printOnRewrite&&console.log(`
141
- # ${r}`)}rewrite(r,s,p,g,I,x,q=!1){if(this.printRewrite(r),!q&&g.length===0)return this;const T=new d.GraphRewriteBuilder(this,s,p,this._haveProvenanceAttributes,g,I,x),D=T.finish();return this.checkLostTypeAttributes(T,D),this._printOnRewrite&&(D.setPrintOnRewrite(),D.printGraph()),T.didAddForwardingIntersection?P(D,s,I):D}remap(r,s,p,g,I,x=!1){if(this.printRewrite(r),!x&&g.size===0)return this;const q=new d.GraphRemapBuilder(this,s,p,this._haveProvenanceAttributes,g,I),T=q.finish();return this.checkLostTypeAttributes(q,T),this._printOnRewrite&&(T.setPrintOnRewrite(),T.printGraph()),(0,a.assert)(!q.didAddForwardingIntersection),T}garbageCollect(r,s){return this.remap("GC",(0,l.getNoStringTypeMapping)(),r,new Map,s,!0)}rewriteFixedPoint(r,s){let p=this;for(;;){const g=this.rewrite("fixed-point",(0,l.getNoStringTypeMapping)(),r,[],s,a.mustNotHappen,!0);if(p.allTypesUnordered().size===g.allTypesUnordered().size)return p;p=g}}allTypesUnordered(){return(0,a.assert)(this.isFrozen,"Tried to get all graph types before it was frozen"),new Set((0,a.defined)(this._types))}makeGraph(r,s){return new c.Graph((0,a.defined)(this._types),r,s)}getParentsOfType(r){if(h(r.typeRef,this),this._parents===void 0){const s=(0,a.defined)(this._types).map(p=>new Set);for(const p of this.allTypesUnordered())for(const g of p.getChildren()){const I=g.index;s[I]=s[I].add(p)}this._parents=s}return this._parents[r.index]}printGraph(){const r=(0,a.defined)(this._types);for(let s=0;s<r.length;s++){const p=r[s],g=[];g.push(`${p.debugPrintKind}${p.hasNames?` ${p.getCombinedName()}`:""}`);const I=p.getChildren();I.size>0&&g.push(`children ${Array.from(I).map(x=>x.index).join(",")}`);for(const[x,q]of p.getAttributes()){const T=x.stringify(q);T!==void 0&&g.push(T)}console.log(`${s}: ${g.join(" | ")}`)}}};Tt.TypeGraph=f;function E(y,r,s){const p=(0,e.setFilter)(y.allTypesUnordered(),g=>g.kind==="none");return p.size===0?y:((0,a.assert)(p.size===1,"Cannot have more than one none type"),y.rewrite("none to any",r,!1,[Array.from(p)],s,(g,I,x)=>{const q=(0,n.combineTypeAttributesOfTypes)("union",g);return I.getPrimitiveType("any",q,x)}))}Tt.noneToAny=E;function S(y,r,s){function p(x,q,T){const D=(0,e.mapMap)(x.getProperties(),(W,J)=>{const X=W.type;let Q;if(!W.isOptional||X.isNullable)Q=q.reconstituteType(X);else{const re=q.getPrimitiveType("null");let se;X instanceof i.UnionType?se=(0,e.setMap)(X.members,me=>q.reconstituteType(me)).add(re):se=new Set([q.reconstituteType(X),re]);const ne=u.namesTypeAttributeKind.setDefaultInAttributes(X.getAttributes(),()=>u.TypeNames.make(new Set([J]),new Set,!0));Q=q.getUnionType(ne,se)}return q.makeClassProperty(Q,W.isOptional)});return x.isFixed?q.getUniqueClassType(x.getAttributes(),!0,D,T):q.getClassType(x.getAttributes(),D,T)}const g=(0,e.setFilter)(y.allTypesUnordered(),x=>x instanceof i.ClassType&&(0,e.mapSome)(x.getProperties(),q=>q.isOptional)),I=Array.from(g).map(x=>[x]);return g.size===0?y:y.rewrite("optional to nullable",r,!1,I,s,(x,q,T)=>{(0,a.assert)(x.size===1);const D=(0,a.defined)((0,e.iterableFirst)(x));return p(D,q,T)})}Tt.optionalToNullable=S;function P(y,r,s){const p=[];for(const g of y.allTypesUnordered()){if(!(g instanceof i.IntersectionType))continue;const I=new Set([g]);let x=g;for(;x.members.size===1;){const q=(0,a.defined)((0,e.iterableFirst)(x.members));if(!(q instanceof i.IntersectionType)){p.push([g,q]);break}if(I.has(q))return(0,a.panic)("There's a cycle of intersection types");I.add(q),x=q}}return y.remap("remove indirection intersections",r,!1,new Map(p),s)}return Tt.removeIndirectionIntersections=P,Tt}var Os={},ma={exports:{}},Ks={exports:{}};/*! https://mths.be/punycode v1.4.0 by @mathias */var U_=Ks.exports,Lp;function x_(){return Lp||(Lp=1,(function(e,i){(function(n){var a=i&&!i.nodeType&&i,l=e&&!e.nodeType&&e,d=typeof Dn=="object"&&Dn;(d.global===d||d.window===d||d.self===d)&&(n=d);var u,c=2147483647,w=36,U=1,F=26,O=38,M=700,L=72,_=128,b="-",v=/^xn--/,h=/[^\x20-\x7E]/,m=/[\x2E\u3002\uFF0E\uFF61]/g,k={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},B=w-U,C=Math.floor,R=String.fromCharCode,A;function f(T){throw new RangeError(k[T])}function E(T,D){for(var W=T.length,J=[];W--;)J[W]=D(T[W]);return J}function S(T,D){var W=T.split("@"),J="";W.length>1&&(J=W[0]+"@",T=W[1]),T=T.replace(m,".");var X=T.split("."),Q=E(X,D).join(".");return J+Q}function P(T){for(var D=[],W=0,J=T.length,X,Q;W<J;)X=T.charCodeAt(W++),X>=55296&&X<=56319&&W<J?(Q=T.charCodeAt(W++),(Q&64512)==56320?D.push(((X&1023)<<10)+(Q&1023)+65536):(D.push(X),W--)):D.push(X);return D}function y(T){return E(T,function(D){var W="";return D>65535&&(D-=65536,W+=R(D>>>10&1023|55296),D=56320|D&1023),W+=R(D),W}).join("")}function r(T){return T-48<10?T-22:T-65<26?T-65:T-97<26?T-97:w}function s(T,D){return T+22+75*(T<26)-((D!=0)<<5)}function p(T,D,W){var J=0;for(T=W?C(T/M):T>>1,T+=C(T/D);T>B*F>>1;J+=w)T=C(T/B);return C(J+(B+1)*T/(T+O))}function g(T){var D=[],W=T.length,J,X=0,Q=_,re=L,se,ne,me,ge,Ae,pe,le,ye,de;for(se=T.lastIndexOf(b),se<0&&(se=0),ne=0;ne<se;++ne)T.charCodeAt(ne)>=128&&f("not-basic"),D.push(T.charCodeAt(ne));for(me=se>0?se+1:0;me<W;){for(ge=X,Ae=1,pe=w;me>=W&&f("invalid-input"),le=r(T.charCodeAt(me++)),(le>=w||le>C((c-X)/Ae))&&f("overflow"),X+=le*Ae,ye=pe<=re?U:pe>=re+F?F:pe-re,!(le<ye);pe+=w)de=w-ye,Ae>C(c/de)&&f("overflow"),Ae*=de;J=D.length+1,re=p(X-ge,J,ge==0),C(X/J)>c-Q&&f("overflow"),Q+=C(X/J),X%=J,D.splice(X++,0,Q)}return y(D)}function I(T){var D,W,J,X,Q,re,se,ne,me,ge,Ae,pe=[],le,ye,de,Y;for(T=P(T),le=T.length,D=_,W=0,Q=L,re=0;re<le;++re)Ae=T[re],Ae<128&&pe.push(R(Ae));for(J=X=pe.length,X&&pe.push(b);J<le;){for(se=c,re=0;re<le;++re)Ae=T[re],Ae>=D&&Ae<se&&(se=Ae);for(ye=J+1,se-D>C((c-W)/ye)&&f("overflow"),W+=(se-D)*ye,D=se,re=0;re<le;++re)if(Ae=T[re],Ae<D&&++W>c&&f("overflow"),Ae==D){for(ne=W,me=w;ge=me<=Q?U:me>=Q+F?F:me-Q,!(ne<ge);me+=w)Y=ne-ge,de=w-ge,pe.push(R(s(ge+Y%de,0))),ne=C(Y/de);pe.push(R(s(ne,0))),Q=p(W,ye,J==X),W=0,++J}++W,++D}return pe.join("")}function x(T){return S(T,function(D){return v.test(D)?g(D.slice(4).toLowerCase()):D})}function q(T){return S(T,function(D){return h.test(D)?"xn--"+I(D):D})}if(u={version:"1.3.2",ucs2:{decode:P,encode:y},decode:g,encode:I,toASCII:q,toUnicode:x},a&&l)if(e.exports==a)l.exports=u;else for(A in u)u.hasOwnProperty(A)&&(a[A]=u[A]);else n.punycode=u})(U_)})(Ks,Ks.exports)),Ks.exports}var ya={exports:{}};/*!
142
- * URI.js - Mutating URLs
143
- * IPv6 Support
144
- *
145
- * Version: 1.19.11
146
- *
147
- * Author: Rodney Rehm
148
- * Web: http://medialize.github.io/URI.js/
149
- *
150
- * Licensed under
151
- * MIT License http://www.opensource.org/licenses/mit-license
152
- *
153
- */var z_=ya.exports,_p;function W_(){return _p||(_p=1,(function(e){(function(i,n){e.exports?e.exports=n():i.IPv6=n(i)})(z_,function(i){var n=i&&i.IPv6;function a(d){var u=d.toLowerCase(),c=u.split(":"),w=c.length,U=8;c[0]===""&&c[1]===""&&c[2]===""?(c.shift(),c.shift()):c[0]===""&&c[1]===""?c.shift():c[w-1]===""&&c[w-2]===""&&c.pop(),w=c.length,c[w-1].indexOf(".")!==-1&&(U=7);var F;for(F=0;F<w&&c[F]!=="";F++);if(F<U)for(c.splice(F,1,"0000");c.length<U;)c.splice(F,0,"0000");for(var O,M=0;M<U;M++){O=c[M].split("");for(var L=0;L<3&&(O[0]==="0"&&O.length>1);L++)O.splice(0,1);c[M]=O.join("")}var _=-1,b=0,v=0,h=-1,m=!1;for(M=0;M<U;M++)m?c[M]==="0"?v+=1:(m=!1,v>b&&(_=h,b=v)):c[M]==="0"&&(m=!0,h=M,v=1);v>b&&(_=h,b=v),b>1&&c.splice(_,b,""),w=c.length;var k="";for(c[0]===""&&(k=":"),M=0;M<w&&(k+=c[M],M!==w-1);M++)k+=":";return c[w-1]===""&&(k+=":"),k}function l(){return i.IPv6===this&&(i.IPv6=n),this}return{best:a,noConflict:l}})})(ya)),ya.exports}var ga={exports:{}};/*!
154
- * URI.js - Mutating URLs
155
- * Second Level Domain (SLD) Support
156
- *
157
- * Version: 1.19.11
158
- *
159
- * Author: Rodney Rehm
160
- * Web: http://medialize.github.io/URI.js/
161
- *
162
- * Licensed under
163
- * MIT License http://www.opensource.org/licenses/mit-license
164
- *
165
- */var q_=ga.exports,kp;function J_(){return kp||(kp=1,(function(e){(function(i,n){e.exports?e.exports=n():i.SecondLevelDomains=n(i)})(q_,function(i){var n=i&&i.SecondLevelDomains,a={list:{ac:" com gov mil net org ",ae:" ac co gov mil name net org pro sch ",af:" com edu gov net org ",al:" com edu gov mil net org ",ao:" co ed gv it og pb ",ar:" com edu gob gov int mil net org tur ",at:" ac co gv or ",au:" asn com csiro edu gov id net org ",ba:" co com edu gov mil net org rs unbi unmo unsa untz unze ",bb:" biz co com edu gov info net org store tv ",bh:" biz cc com edu gov info net org ",bn:" com edu gov net org ",bo:" com edu gob gov int mil net org tv ",br:" adm adv agr am arq art ato b bio blog bmd cim cng cnt com coop ecn edu eng esp etc eti far flog fm fnd fot fst g12 ggf gov imb ind inf jor jus lel mat med mil mus net nom not ntr odo org ppg pro psc psi qsl rec slg srv tmp trd tur tv vet vlog wiki zlg ",bs:" com edu gov net org ",bz:" du et om ov rg ",ca:" ab bc mb nb nf nl ns nt nu on pe qc sk yk ",ck:" biz co edu gen gov info net org ",cn:" ac ah bj com cq edu fj gd gov gs gx gz ha hb he hi hl hn jl js jx ln mil net nm nx org qh sc sd sh sn sx tj tw xj xz yn zj ",co:" com edu gov mil net nom org ",cr:" ac c co ed fi go or sa ",cy:" ac biz com ekloges gov ltd name net org parliament press pro tm ",do:" art com edu gob gov mil net org sld web ",dz:" art asso com edu gov net org pol ",ec:" com edu fin gov info med mil net org pro ",eg:" com edu eun gov mil name net org sci ",er:" com edu gov ind mil net org rochest w ",es:" com edu gob nom org ",et:" biz com edu gov info name net org ",fj:" ac biz com info mil name net org pro ",fk:" ac co gov net nom org ",fr:" asso com f gouv nom prd presse tm ",gg:" co net org ",gh:" com edu gov mil org ",gn:" ac com gov net org ",gr:" com edu gov mil net org ",gt:" com edu gob ind mil net org ",gu:" com edu gov net org ",hk:" com edu gov idv net org ",hu:" 2000 agrar bolt casino city co erotica erotika film forum games hotel info ingatlan jogasz konyvelo lakas media news org priv reklam sex shop sport suli szex tm tozsde utazas video ",id:" ac co go mil net or sch web ",il:" ac co gov idf k12 muni net org ",in:" ac co edu ernet firm gen gov i ind mil net nic org res ",iq:" com edu gov i mil net org ",ir:" ac co dnssec gov i id net org sch ",it:" edu gov ",je:" co net org ",jo:" com edu gov mil name net org sch ",jp:" ac ad co ed go gr lg ne or ",ke:" ac co go info me mobi ne or sc ",kh:" com edu gov mil net org per ",ki:" biz com de edu gov info mob net org tel ",km:" asso com coop edu gouv k medecin mil nom notaires pharmaciens presse tm veterinaire ",kn:" edu gov net org ",kr:" ac busan chungbuk chungnam co daegu daejeon es gangwon go gwangju gyeongbuk gyeonggi gyeongnam hs incheon jeju jeonbuk jeonnam k kg mil ms ne or pe re sc seoul ulsan ",kw:" com edu gov net org ",ky:" com edu gov net org ",kz:" com edu gov mil net org ",lb:" com edu gov net org ",lk:" assn com edu gov grp hotel int ltd net ngo org sch soc web ",lr:" com edu gov net org ",lv:" asn com conf edu gov id mil net org ",ly:" com edu gov id med net org plc sch ",ma:" ac co gov m net org press ",mc:" asso tm ",me:" ac co edu gov its net org priv ",mg:" com edu gov mil nom org prd tm ",mk:" com edu gov inf name net org pro ",ml:" com edu gov net org presse ",mn:" edu gov org ",mo:" com edu gov net org ",mt:" com edu gov net org ",mv:" aero biz com coop edu gov info int mil museum name net org pro ",mw:" ac co com coop edu gov int museum net org ",mx:" com edu gob net org ",my:" com edu gov mil name net org sch ",nf:" arts com firm info net other per rec store web ",ng:" biz com edu gov mil mobi name net org sch ",ni:" ac co com edu gob mil net nom org ",np:" com edu gov mil net org ",nr:" biz com edu gov info net org ",om:" ac biz co com edu gov med mil museum net org pro sch ",pe:" com edu gob mil net nom org sld ",ph:" com edu gov i mil net ngo org ",pk:" biz com edu fam gob gok gon gop gos gov net org web ",pl:" art bialystok biz com edu gda gdansk gorzow gov info katowice krakow lodz lublin mil net ngo olsztyn org poznan pwr radom slupsk szczecin torun warszawa waw wroc wroclaw zgora ",pr:" ac biz com edu est gov info isla name net org pro prof ",ps:" com edu gov net org plo sec ",pw:" belau co ed go ne or ",ro:" arts com firm info nom nt org rec store tm www ",rs:" ac co edu gov in org ",sb:" com edu gov net org ",sc:" com edu gov net org ",sh:" co com edu gov net nom org ",sl:" com edu gov net org ",st:" co com consulado edu embaixada gov mil net org principe saotome store ",sv:" com edu gob org red ",sz:" ac co org ",tr:" av bbs bel biz com dr edu gen gov info k12 name net org pol tel tsk tv web ",tt:" aero biz cat co com coop edu gov info int jobs mil mobi museum name net org pro tel travel ",tw:" club com ebiz edu game gov idv mil net org ",mu:" ac co com gov net or org ",mz:" ac co edu gov org ",na:" co com ",nz:" ac co cri geek gen govt health iwi maori mil net org parliament school ",pa:" abo ac com edu gob ing med net nom org sld ",pt:" com edu gov int net nome org publ ",py:" com edu gov mil net org ",qa:" com edu gov mil net org ",re:" asso com nom ",ru:" ac adygeya altai amur arkhangelsk astrakhan bashkiria belgorod bir bryansk buryatia cbg chel chelyabinsk chita chukotka chuvashia com dagestan e-burg edu gov grozny int irkutsk ivanovo izhevsk jar joshkar-ola kalmykia kaluga kamchatka karelia kazan kchr kemerovo khabarovsk khakassia khv kirov koenig komi kostroma kranoyarsk kuban kurgan kursk lipetsk magadan mari mari-el marine mil mordovia mosreg msk murmansk nalchik net nnov nov novosibirsk nsk omsk orenburg org oryol penza perm pp pskov ptz rnd ryazan sakhalin samara saratov simbirsk smolensk spb stavropol stv surgut tambov tatarstan tom tomsk tsaritsyn tsk tula tuva tver tyumen udm udmurtia ulan-ude vladikavkaz vladimir vladivostok volgograd vologda voronezh vrn vyatka yakutia yamal yekaterinburg yuzhno-sakhalinsk ",rw:" ac co com edu gouv gov int mil net ",sa:" com edu gov med net org pub sch ",sd:" com edu gov info med net org tv ",se:" a ac b bd c d e f g h i k l m n o org p parti pp press r s t tm u w x y z ",sg:" com edu gov idn net org per ",sn:" art com edu gouv org perso univ ",sy:" com edu gov mil net news org ",th:" ac co go in mi net or ",tj:" ac biz co com edu go gov info int mil name net nic org test web ",tn:" agrinet com defense edunet ens fin gov ind info intl mincom nat net org perso rnrt rns rnu tourism ",tz:" ac co go ne or ",ua:" biz cherkassy chernigov chernovtsy ck cn co com crimea cv dn dnepropetrovsk donetsk dp edu gov if in ivano-frankivsk kh kharkov kherson khmelnitskiy kiev kirovograd km kr ks kv lg lugansk lutsk lviv me mk net nikolaev od odessa org pl poltava pp rovno rv sebastopol sumy te ternopil uzhgorod vinnica vn zaporizhzhe zhitomir zp zt ",ug:" ac co go ne or org sc ",uk:" ac bl british-library co cym gov govt icnet jet lea ltd me mil mod national-library-scotland nel net nhs nic nls org orgn parliament plc police sch scot soc ",us:" dni fed isa kids nsn ",uy:" com edu gub mil net org ",ve:" co com edu gob info mil net org web ",vi:" co com k12 net org ",vn:" ac biz com edu gov health info int name net org pro ",ye:" co com gov ltd me net org plc ",yu:" ac co edu gov org ",za:" ac agric alt bourse city co cybernet db edu gov grondar iaccess imt inca landesign law mil net ngo nis nom olivetti org pix school tm web ",zm:" ac co com edu gov net org sch ",com:"ar br cn de eu gb gr hu jpn kr no qc ru sa se uk us uy za ",net:"gb jp se uk ",org:"ae",de:"com "},has:function(l){var d=l.lastIndexOf(".");if(d<=0||d>=l.length-1)return!1;var u=l.lastIndexOf(".",d-1);if(u<=0||u>=d-1)return!1;var c=a.list[l.slice(d+1)];return c?c.indexOf(" "+l.slice(u+1,d)+" ")>=0:!1},is:function(l){var d=l.lastIndexOf(".");if(d<=0||d>=l.length-1)return!1;var u=l.lastIndexOf(".",d-1);if(u>=0)return!1;var c=a.list[l.slice(d+1)];return c?c.indexOf(" "+l.slice(0,d)+" ")>=0:!1},get:function(l){var d=l.lastIndexOf(".");if(d<=0||d>=l.length-1)return null;var u=l.lastIndexOf(".",d-1);if(u<=0||u>=d-1)return null;var c=a.list[l.slice(d+1)];return!c||c.indexOf(" "+l.slice(u+1,d)+" ")<0?null:l.slice(u+1)},noConflict:function(){return i.SecondLevelDomains===this&&(i.SecondLevelDomains=n),this}};return a})})(ga)),ga.exports}/*!
166
- * URI.js - Mutating URLs
167
- *
168
- * Version: 1.19.11
169
- *
170
- * Author: Rodney Rehm
171
- * Web: http://medialize.github.io/URI.js/
172
- *
173
- * Licensed under
174
- * MIT License http://www.opensource.org/licenses/mit-license
175
- *
176
- */var G_=ma.exports,Np;function _g(){return Np||(Np=1,(function(e){(function(i,n){e.exports?e.exports=n(x_(),W_(),J_()):i.URI=n(i.punycode,i.IPv6,i.SecondLevelDomains,i)})(G_,function(i,n,a,l){var d=l&&l.URI;function u(r,s){var p=arguments.length>=1,g=arguments.length>=2;if(!(this instanceof u))return p?g?new u(r,s):new u(r):new u;if(r===void 0){if(p)throw new TypeError("undefined is not a valid argument for URI");typeof location<"u"?r=location.href+"":r=""}if(r===null&&p)throw new TypeError("null is not a valid argument for URI");return this.href(r),s!==void 0?this.absoluteTo(s):this}function c(r){return/^[0-9]+$/.test(r)}u.version="1.19.11";var w=u.prototype,U=Object.prototype.hasOwnProperty;function F(r){return r.replace(/([.*+?^=!:${}()|[\]\/\\])/g,"\\$1")}function O(r){return r===void 0?"Undefined":String(Object.prototype.toString.call(r)).slice(8,-1)}function M(r){return O(r)==="Array"}function L(r,s){var p={},g,I;if(O(s)==="RegExp")p=null;else if(M(s))for(g=0,I=s.length;g<I;g++)p[s[g]]=!0;else p[s]=!0;for(g=0,I=r.length;g<I;g++){var x=p&&p[r[g]]!==void 0||!p&&s.test(r[g]);x&&(r.splice(g,1),I--,g--)}return r}function _(r,s){var p,g;if(M(s)){for(p=0,g=s.length;p<g;p++)if(!_(r,s[p]))return!1;return!0}var I=O(s);for(p=0,g=r.length;p<g;p++)if(I==="RegExp"){if(typeof r[p]=="string"&&r[p].match(s))return!0}else if(r[p]===s)return!0;return!1}function b(r,s){if(!M(r)||!M(s)||r.length!==s.length)return!1;r.sort(),s.sort();for(var p=0,g=r.length;p<g;p++)if(r[p]!==s[p])return!1;return!0}function v(r){var s=/^\/+|\/+$/g;return r.replace(s,"")}u._parts=function(){return{protocol:null,username:null,password:null,hostname:null,urn:null,port:null,path:null,query:null,fragment:null,preventInvalidHostname:u.preventInvalidHostname,duplicateQueryParameters:u.duplicateQueryParameters,escapeQuerySpace:u.escapeQuerySpace}},u.preventInvalidHostname=!1,u.duplicateQueryParameters=!1,u.escapeQuerySpace=!0,u.protocol_expression=/^[a-z][a-z0-9.+-]*$/i,u.idn_expression=/[^a-z0-9\._-]/i,u.punycode_expression=/(xn--)/i,u.ip4_expression=/^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}$/,u.ip6_expression=/^\s*((([0-9A-Fa-f]{1,4}:){7}([0-9A-Fa-f]{1,4}|:))|(([0-9A-Fa-f]{1,4}:){6}(:[0-9A-Fa-f]{1,4}|((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){5}(((:[0-9A-Fa-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){4}(((:[0-9A-Fa-f]{1,4}){1,3})|((:[0-9A-Fa-f]{1,4})?:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){3}(((:[0-9A-Fa-f]{1,4}){1,4})|((:[0-9A-Fa-f]{1,4}){0,2}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){2}(((:[0-9A-Fa-f]{1,4}){1,5})|((:[0-9A-Fa-f]{1,4}){0,3}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){1}(((:[0-9A-Fa-f]{1,4}){1,6})|((:[0-9A-Fa-f]{1,4}){0,4}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(:(((:[0-9A-Fa-f]{1,4}){1,7})|((:[0-9A-Fa-f]{1,4}){0,5}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))(%.+)?\s*$/,u.find_uri_expression=/\b((?:[a-z][\w-]+:(?:\/{1,3}|[a-z0-9%])|www\d{0,3}[.]|[a-z0-9.\-]+[.][a-z]{2,4}\/)(?:[^\s()<>]+|\(([^\s()<>]+|(\([^\s()<>]+\)))*\))+(?:\(([^\s()<>]+|(\([^\s()<>]+\)))*\)|[^\s`!()\[\]{};:'".,<>?«»“”‘’]))/ig,u.findUri={start:/\b(?:([a-z][a-z0-9.+-]*:\/\/)|www\.)/gi,end:/[\s\r\n]|$/,trim:/[`!()\[\]{};:'".,<>?«»“”„‘’]+$/,parens:/(\([^\)]*\)|\[[^\]]*\]|\{[^}]*\}|<[^>]*>)/g},u.leading_whitespace_expression=/^[\x00-\x20\u00a0\u1680\u2000-\u200a\u2028\u2029\u202f\u205f\u3000\ufeff]+/,u.ascii_tab_whitespace=/[\u0009\u000A\u000D]+/g,u.defaultPorts={http:"80",https:"443",ftp:"21",gopher:"70",ws:"80",wss:"443"},u.hostProtocols=["http","https"],u.invalid_hostname_characters=/[^a-zA-Z0-9\.\-:_]/,u.domAttributes={a:"href",blockquote:"cite",link:"href",base:"href",script:"src",form:"action",img:"src",area:"href",iframe:"src",embed:"src",source:"src",track:"src",input:"src",audio:"src",video:"src"},u.getDomAttribute=function(r){if(!(!r||!r.nodeName)){var s=r.nodeName.toLowerCase();if(!(s==="input"&&r.type!=="image"))return u.domAttributes[s]}};function h(r){return escape(r)}function m(r){return encodeURIComponent(r).replace(/[!'()*]/g,h).replace(/\*/g,"%2A")}u.encode=m,u.decode=decodeURIComponent,u.iso8859=function(){u.encode=escape,u.decode=unescape},u.unicode=function(){u.encode=m,u.decode=decodeURIComponent},u.characters={pathname:{encode:{expression:/%(24|26|2B|2C|3B|3D|3A|40)/ig,map:{"%24":"$","%26":"&","%2B":"+","%2C":",","%3B":";","%3D":"=","%3A":":","%40":"@"}},decode:{expression:/[\/\?#]/g,map:{"/":"%2F","?":"%3F","#":"%23"}}},reserved:{encode:{expression:/%(21|23|24|26|27|28|29|2A|2B|2C|2F|3A|3B|3D|3F|40|5B|5D)/ig,map:{"%3A":":","%2F":"/","%3F":"?","%23":"#","%5B":"[","%5D":"]","%40":"@","%21":"!","%24":"$","%26":"&","%27":"'","%28":"(","%29":")","%2A":"*","%2B":"+","%2C":",","%3B":";","%3D":"="}}},urnpath:{encode:{expression:/%(21|24|27|28|29|2A|2B|2C|3B|3D|40)/ig,map:{"%21":"!","%24":"$","%27":"'","%28":"(","%29":")","%2A":"*","%2B":"+","%2C":",","%3B":";","%3D":"=","%40":"@"}},decode:{expression:/[\/\?#:]/g,map:{"/":"%2F","?":"%3F","#":"%23",":":"%3A"}}}},u.encodeQuery=function(r,s){var p=u.encode(r+"");return s===void 0&&(s=u.escapeQuerySpace),s?p.replace(/%20/g,"+"):p},u.decodeQuery=function(r,s){r+="",s===void 0&&(s=u.escapeQuerySpace);try{return u.decode(s?r.replace(/\+/g,"%20"):r)}catch{return r}};var k={encode:"encode",decode:"decode"},B,C=function(r,s){return function(p){try{return u[s](p+"").replace(u.characters[r][s].expression,function(g){return u.characters[r][s].map[g]})}catch{return p}}};for(B in k)u[B+"PathSegment"]=C("pathname",k[B]),u[B+"UrnPathSegment"]=C("urnpath",k[B]);var R=function(r,s,p){return function(g){var I;p?I=function(D){return u[s](u[p](D))}:I=u[s];for(var x=(g+"").split(r),q=0,T=x.length;q<T;q++)x[q]=I(x[q]);return x.join(r)}};u.decodePath=R("/","decodePathSegment"),u.decodeUrnPath=R(":","decodeUrnPathSegment"),u.recodePath=R("/","encodePathSegment","decode"),u.recodeUrnPath=R(":","encodeUrnPathSegment","decode"),u.encodeReserved=C("reserved","encode"),u.parse=function(r,s){var p;return s||(s={preventInvalidHostname:u.preventInvalidHostname}),r=r.replace(u.leading_whitespace_expression,""),r=r.replace(u.ascii_tab_whitespace,""),p=r.indexOf("#"),p>-1&&(s.fragment=r.substring(p+1)||null,r=r.substring(0,p)),p=r.indexOf("?"),p>-1&&(s.query=r.substring(p+1)||null,r=r.substring(0,p)),r=r.replace(/^(https?|ftp|wss?)?:+[/\\]*/i,"$1://"),r=r.replace(/^[/\\]{2,}/i,"//"),r.substring(0,2)==="//"?(s.protocol=null,r=r.substring(2),r=u.parseAuthority(r,s)):(p=r.indexOf(":"),p>-1&&(s.protocol=r.substring(0,p)||null,s.protocol&&!s.protocol.match(u.protocol_expression)?s.protocol=void 0:r.substring(p+1,p+3).replace(/\\/g,"/")==="//"?(r=r.substring(p+3),r=u.parseAuthority(r,s)):(r=r.substring(p+1),s.urn=!0))),s.path=r,s},u.parseHost=function(r,s){r||(r=""),r=r.replace(/\\/g,"/");var p=r.indexOf("/"),g,I;if(p===-1&&(p=r.length),r.charAt(0)==="[")g=r.indexOf("]"),s.hostname=r.substring(1,g)||null,s.port=r.substring(g+2,p)||null,s.port==="/"&&(s.port=null);else{var x=r.indexOf(":"),q=r.indexOf("/"),T=r.indexOf(":",x+1);T!==-1&&(q===-1||T<q)?(s.hostname=r.substring(0,p)||null,s.port=null):(I=r.substring(0,p).split(":"),s.hostname=I[0]||null,s.port=I[1]||null)}return s.hostname&&r.substring(p).charAt(0)!=="/"&&(p++,r="/"+r),s.preventInvalidHostname&&u.ensureValidHostname(s.hostname,s.protocol),s.port&&u.ensureValidPort(s.port),r.substring(p)||"/"},u.parseAuthority=function(r,s){return r=u.parseUserinfo(r,s),u.parseHost(r,s)},u.parseUserinfo=function(r,s){var p=r,g=r.indexOf("\\");g!==-1&&(r=r.replace(/\\/g,"/"));var I=r.indexOf("/"),x=r.lastIndexOf("@",I>-1?I:r.length-1),q;return x>-1&&(I===-1||x<I)?(q=r.substring(0,x).split(":"),s.username=q[0]?u.decode(q[0]):null,q.shift(),s.password=q[0]?u.decode(q.join(":")):null,r=p.substring(x+1)):(s.username=null,s.password=null),r},u.parseQuery=function(r,s){if(!r)return{};if(r=r.replace(/&+/g,"&").replace(/^\?*&*|&+$/g,""),!r)return{};for(var p={},g=r.split("&"),I=g.length,x,q,T,D=0;D<I;D++)x=g[D].split("="),q=u.decodeQuery(x.shift(),s),T=x.length?u.decodeQuery(x.join("="),s):null,q!=="__proto__"&&(U.call(p,q)?((typeof p[q]=="string"||p[q]===null)&&(p[q]=[p[q]]),p[q].push(T)):p[q]=T);return p},u.build=function(r){var s="",p=!1;return r.protocol&&(s+=r.protocol+":"),!r.urn&&(s||r.hostname)&&(s+="//",p=!0),s+=u.buildAuthority(r)||"",typeof r.path=="string"&&(r.path.charAt(0)!=="/"&&p&&(s+="/"),s+=r.path),typeof r.query=="string"&&r.query&&(s+="?"+r.query),typeof r.fragment=="string"&&r.fragment&&(s+="#"+r.fragment),s},u.buildHost=function(r){var s="";if(r.hostname)u.ip6_expression.test(r.hostname)?s+="["+r.hostname+"]":s+=r.hostname;else return"";return r.port&&(s+=":"+r.port),s},u.buildAuthority=function(r){return u.buildUserinfo(r)+u.buildHost(r)},u.buildUserinfo=function(r){var s="";return r.username&&(s+=u.encode(r.username)),r.password&&(s+=":"+u.encode(r.password)),s&&(s+="@"),s},u.buildQuery=function(r,s,p){var g="",I,x,q,T;for(x in r)if(x!=="__proto__"&&U.call(r,x))if(M(r[x]))for(I={},q=0,T=r[x].length;q<T;q++)r[x][q]!==void 0&&I[r[x][q]+""]===void 0&&(g+="&"+u.buildQueryParameter(x,r[x][q],p),s!==!0&&(I[r[x][q]+""]=!0));else r[x]!==void 0&&(g+="&"+u.buildQueryParameter(x,r[x],p));return g.substring(1)},u.buildQueryParameter=function(r,s,p){return u.encodeQuery(r,p)+(s!==null?"="+u.encodeQuery(s,p):"")},u.addQuery=function(r,s,p){if(typeof s=="object")for(var g in s)U.call(s,g)&&u.addQuery(r,g,s[g]);else if(typeof s=="string"){if(r[s]===void 0){r[s]=p;return}else typeof r[s]=="string"&&(r[s]=[r[s]]);M(p)||(p=[p]),r[s]=(r[s]||[]).concat(p)}else throw new TypeError("URI.addQuery() accepts an object, string as the name parameter")},u.setQuery=function(r,s,p){if(typeof s=="object")for(var g in s)U.call(s,g)&&u.setQuery(r,g,s[g]);else if(typeof s=="string")r[s]=p===void 0?null:p;else throw new TypeError("URI.setQuery() accepts an object, string as the name parameter")},u.removeQuery=function(r,s,p){var g,I,x;if(M(s))for(g=0,I=s.length;g<I;g++)r[s[g]]=void 0;else if(O(s)==="RegExp")for(x in r)s.test(x)&&(r[x]=void 0);else if(typeof s=="object")for(x in s)U.call(s,x)&&u.removeQuery(r,x,s[x]);else if(typeof s=="string")p!==void 0?O(p)==="RegExp"?!M(r[s])&&p.test(r[s])?r[s]=void 0:r[s]=L(r[s],p):r[s]===String(p)&&(!M(p)||p.length===1)?r[s]=void 0:M(r[s])&&(r[s]=L(r[s],p)):r[s]=void 0;else throw new TypeError("URI.removeQuery() accepts an object, string, RegExp as the first parameter")},u.hasQuery=function(r,s,p,g){switch(O(s)){case"String":break;case"RegExp":for(var I in r)if(U.call(r,I)&&s.test(I)&&(p===void 0||u.hasQuery(r,I,p)))return!0;return!1;case"Object":for(var x in s)if(U.call(s,x)&&!u.hasQuery(r,x,s[x]))return!1;return!0;default:throw new TypeError("URI.hasQuery() accepts a string, regular expression or object as the name parameter")}switch(O(p)){case"Undefined":return s in r;case"Boolean":var q=!!(M(r[s])?r[s].length:r[s]);return p===q;case"Function":return!!p(r[s],s,r);case"Array":if(!M(r[s]))return!1;var T=g?_:b;return T(r[s],p);case"RegExp":return M(r[s])?g?_(r[s],p):!1:!!(r[s]&&r[s].match(p));case"Number":p=String(p);case"String":return M(r[s])?g?_(r[s],p):!1:r[s]===p;default:throw new TypeError("URI.hasQuery() accepts undefined, boolean, string, number, RegExp, Function as the value parameter")}},u.joinPaths=function(){for(var r=[],s=[],p=0,g=0;g<arguments.length;g++){var I=new u(arguments[g]);r.push(I);for(var x=I.segment(),q=0;q<x.length;q++)typeof x[q]=="string"&&s.push(x[q]),x[q]&&p++}if(!s.length||!p)return new u("");var T=new u("").segment(s);return(r[0].path()===""||r[0].path().slice(0,1)==="/")&&T.path("/"+T.path()),T.normalize()},u.commonPath=function(r,s){var p=Math.min(r.length,s.length),g;for(g=0;g<p;g++)if(r.charAt(g)!==s.charAt(g)){g--;break}return g<1?r.charAt(0)===s.charAt(0)&&r.charAt(0)==="/"?"/":"":((r.charAt(g)!=="/"||s.charAt(g)!=="/")&&(g=r.substring(0,g).lastIndexOf("/")),r.substring(0,g+1))},u.withinString=function(r,s,p){p||(p={});var g=p.start||u.findUri.start,I=p.end||u.findUri.end,x=p.trim||u.findUri.trim,q=p.parens||u.findUri.parens,T=/[a-z0-9-]=["']?$/i;for(g.lastIndex=0;;){var D=g.exec(r);if(!D)break;var W=D.index;if(p.ignoreHtml){var J=r.slice(Math.max(W-3,0),W);if(J&&T.test(J))continue}for(var X=W+r.slice(W).search(I),Q=r.slice(W,X),re=-1;;){var se=q.exec(Q);if(!se)break;var ne=se.index+se[0].length;re=Math.max(re,ne)}if(re>-1?Q=Q.slice(0,re)+Q.slice(re).replace(x,""):Q=Q.replace(x,""),!(Q.length<=D[0].length)&&!(p.ignore&&p.ignore.test(Q))){X=W+Q.length;var me=s(Q,W,X,r);if(me===void 0){g.lastIndex=X;continue}me=String(me),r=r.slice(0,W)+me+r.slice(X),g.lastIndex=W+me.length}}return g.lastIndex=0,r},u.ensureValidHostname=function(r,s){var p=!!r,g=!!s,I=!1;if(g&&(I=_(u.hostProtocols,s)),I&&!p)throw new TypeError("Hostname cannot be empty, if protocol is "+s);if(r&&r.match(u.invalid_hostname_characters)){if(!i)throw new TypeError('Hostname "'+r+'" contains characters other than [A-Z0-9.-:_] and Punycode.js is not available');if(i.toASCII(r).match(u.invalid_hostname_characters))throw new TypeError('Hostname "'+r+'" contains characters other than [A-Z0-9.-:_]')}},u.ensureValidPort=function(r){if(r){var s=Number(r);if(!(c(s)&&s>0&&s<65536))throw new TypeError('Port "'+r+'" is not a valid port')}},u.noConflict=function(r){if(r){var s={URI:this.noConflict()};return l.URITemplate&&typeof l.URITemplate.noConflict=="function"&&(s.URITemplate=l.URITemplate.noConflict()),l.IPv6&&typeof l.IPv6.noConflict=="function"&&(s.IPv6=l.IPv6.noConflict()),l.SecondLevelDomains&&typeof l.SecondLevelDomains.noConflict=="function"&&(s.SecondLevelDomains=l.SecondLevelDomains.noConflict()),s}else l.URI===this&&(l.URI=d);return this},w.build=function(r){return r===!0?this._deferred_build=!0:(r===void 0||this._deferred_build)&&(this._string=u.build(this._parts),this._deferred_build=!1),this},w.clone=function(){return new u(this)},w.valueOf=w.toString=function(){return this.build(!1)._string};function A(r){return function(s,p){return s===void 0?this._parts[r]||"":(this._parts[r]=s||null,this.build(!p),this)}}function f(r,s){return function(p,g){return p===void 0?this._parts[r]||"":(p!==null&&(p=p+"",p.charAt(0)===s&&(p=p.substring(1))),this._parts[r]=p,this.build(!g),this)}}w.protocol=A("protocol"),w.username=A("username"),w.password=A("password"),w.hostname=A("hostname"),w.port=A("port"),w.query=f("query","?"),w.fragment=f("fragment","#"),w.search=function(r,s){var p=this.query(r,s);return typeof p=="string"&&p.length?"?"+p:p},w.hash=function(r,s){var p=this.fragment(r,s);return typeof p=="string"&&p.length?"#"+p:p},w.pathname=function(r,s){if(r===void 0||r===!0){var p=this._parts.path||(this._parts.hostname?"/":"");return r?(this._parts.urn?u.decodeUrnPath:u.decodePath)(p):p}else return this._parts.urn?this._parts.path=r?u.recodeUrnPath(r):"":this._parts.path=r?u.recodePath(r):"/",this.build(!s),this},w.path=w.pathname,w.href=function(r,s){var p;if(r===void 0)return this.toString();this._string="",this._parts=u._parts();var g=r instanceof u,I=typeof r=="object"&&(r.hostname||r.path||r.pathname);if(r.nodeName){var x=u.getDomAttribute(r);r=r[x]||"",I=!1}if(!g&&I&&r.pathname!==void 0&&(r=r.toString()),typeof r=="string"||r instanceof String)this._parts=u.parse(String(r),this._parts);else if(g||I){var q=g?r._parts:r;for(p in q)p!=="query"&&U.call(this._parts,p)&&(this._parts[p]=q[p]);q.query&&this.query(q.query,!1)}else throw new TypeError("invalid input");return this.build(!s),this},w.is=function(r){var s=!1,p=!1,g=!1,I=!1,x=!1,q=!1,T=!1,D=!this._parts.urn;switch(this._parts.hostname&&(D=!1,p=u.ip4_expression.test(this._parts.hostname),g=u.ip6_expression.test(this._parts.hostname),s=p||g,I=!s,x=I&&a&&a.has(this._parts.hostname),q=I&&u.idn_expression.test(this._parts.hostname),T=I&&u.punycode_expression.test(this._parts.hostname)),r.toLowerCase()){case"relative":return D;case"absolute":return!D;case"domain":case"name":return I;case"sld":return x;case"ip":return s;case"ip4":case"ipv4":case"inet4":return p;case"ip6":case"ipv6":case"inet6":return g;case"idn":return q;case"url":return!this._parts.urn;case"urn":return!!this._parts.urn;case"punycode":return T}return null};var E=w.protocol,S=w.port,P=w.hostname;w.protocol=function(r,s){if(r&&(r=r.replace(/:(\/\/)?$/,""),!r.match(u.protocol_expression)))throw new TypeError('Protocol "'+r+`" contains characters other than [A-Z0-9.+-] or doesn't start with [A-Z]`);return E.call(this,r,s)},w.scheme=w.protocol,w.port=function(r,s){return this._parts.urn?r===void 0?"":this:(r!==void 0&&(r===0&&(r=null),r&&(r+="",r.charAt(0)===":"&&(r=r.substring(1)),u.ensureValidPort(r))),S.call(this,r,s))},w.hostname=function(r,s){if(this._parts.urn)return r===void 0?"":this;if(r!==void 0){var p={preventInvalidHostname:this._parts.preventInvalidHostname},g=u.parseHost(r,p);if(g!=="/")throw new TypeError('Hostname "'+r+'" contains characters other than [A-Z0-9.-]');r=p.hostname,this._parts.preventInvalidHostname&&u.ensureValidHostname(r,this._parts.protocol)}return P.call(this,r,s)},w.origin=function(r,s){if(this._parts.urn)return r===void 0?"":this;if(r===void 0){var p=this.protocol(),g=this.authority();return g?(p?p+"://":"")+this.authority():""}else{var I=u(r);return this.protocol(I.protocol()).authority(I.authority()).build(!s),this}},w.host=function(r,s){if(this._parts.urn)return r===void 0?"":this;if(r===void 0)return this._parts.hostname?u.buildHost(this._parts):"";var p=u.parseHost(r,this._parts);if(p!=="/")throw new TypeError('Hostname "'+r+'" contains characters other than [A-Z0-9.-]');return this.build(!s),this},w.authority=function(r,s){if(this._parts.urn)return r===void 0?"":this;if(r===void 0)return this._parts.hostname?u.buildAuthority(this._parts):"";var p=u.parseAuthority(r,this._parts);if(p!=="/")throw new TypeError('Hostname "'+r+'" contains characters other than [A-Z0-9.-]');return this.build(!s),this},w.userinfo=function(r,s){if(this._parts.urn)return r===void 0?"":this;if(r===void 0){var p=u.buildUserinfo(this._parts);return p&&p.substring(0,p.length-1)}else return r[r.length-1]!=="@"&&(r+="@"),u.parseUserinfo(r,this._parts),this.build(!s),this},w.resource=function(r,s){var p;return r===void 0?this.path()+this.search()+this.hash():(p=u.parse(r),this._parts.path=p.path,this._parts.query=p.query,this._parts.fragment=p.fragment,this.build(!s),this)},w.subdomain=function(r,s){if(this._parts.urn)return r===void 0?"":this;if(r===void 0){if(!this._parts.hostname||this.is("IP"))return"";var p=this._parts.hostname.length-this.domain().length-1;return this._parts.hostname.substring(0,p)||""}else{var g=this._parts.hostname.length-this.domain().length,I=this._parts.hostname.substring(0,g),x=new RegExp("^"+F(I));if(r&&r.charAt(r.length-1)!=="."&&(r+="."),r.indexOf(":")!==-1)throw new TypeError("Domains cannot contain colons");return r&&u.ensureValidHostname(r,this._parts.protocol),this._parts.hostname=this._parts.hostname.replace(x,r),this.build(!s),this}},w.domain=function(r,s){if(this._parts.urn)return r===void 0?"":this;if(typeof r=="boolean"&&(s=r,r=void 0),r===void 0){if(!this._parts.hostname||this.is("IP"))return"";var p=this._parts.hostname.match(/\./g);if(p&&p.length<2)return this._parts.hostname;var g=this._parts.hostname.length-this.tld(s).length-1;return g=this._parts.hostname.lastIndexOf(".",g-1)+1,this._parts.hostname.substring(g)||""}else{if(!r)throw new TypeError("cannot set domain empty");if(r.indexOf(":")!==-1)throw new TypeError("Domains cannot contain colons");if(u.ensureValidHostname(r,this._parts.protocol),!this._parts.hostname||this.is("IP"))this._parts.hostname=r;else{var I=new RegExp(F(this.domain())+"$");this._parts.hostname=this._parts.hostname.replace(I,r)}return this.build(!s),this}},w.tld=function(r,s){if(this._parts.urn)return r===void 0?"":this;if(typeof r=="boolean"&&(s=r,r=void 0),r===void 0){if(!this._parts.hostname||this.is("IP"))return"";var p=this._parts.hostname.lastIndexOf("."),g=this._parts.hostname.substring(p+1);return s!==!0&&a&&a.list[g.toLowerCase()]&&a.get(this._parts.hostname)||g}else{var I;if(r)if(r.match(/[^a-zA-Z0-9-]/))if(a&&a.is(r))I=new RegExp(F(this.tld())+"$"),this._parts.hostname=this._parts.hostname.replace(I,r);else throw new TypeError('TLD "'+r+'" contains characters other than [A-Z0-9]');else{if(!this._parts.hostname||this.is("IP"))throw new ReferenceError("cannot set TLD on non-domain host");I=new RegExp(F(this.tld())+"$"),this._parts.hostname=this._parts.hostname.replace(I,r)}else throw new TypeError("cannot set TLD empty");return this.build(!s),this}},w.directory=function(r,s){if(this._parts.urn)return r===void 0?"":this;if(r===void 0||r===!0){if(!this._parts.path&&!this._parts.hostname)return"";if(this._parts.path==="/")return"/";var p=this._parts.path.length-this.filename().length-1,g=this._parts.path.substring(0,p)||(this._parts.hostname?"/":"");return r?u.decodePath(g):g}else{var I=this._parts.path.length-this.filename().length,x=this._parts.path.substring(0,I),q=new RegExp("^"+F(x));return this.is("relative")||(r||(r="/"),r.charAt(0)!=="/"&&(r="/"+r)),r&&r.charAt(r.length-1)!=="/"&&(r+="/"),r=u.recodePath(r),this._parts.path=this._parts.path.replace(q,r),this.build(!s),this}},w.filename=function(r,s){if(this._parts.urn)return r===void 0?"":this;if(typeof r!="string"){if(!this._parts.path||this._parts.path==="/")return"";var p=this._parts.path.lastIndexOf("/"),g=this._parts.path.substring(p+1);return r?u.decodePathSegment(g):g}else{var I=!1;r.charAt(0)==="/"&&(r=r.substring(1)),r.match(/\.?\//)&&(I=!0);var x=new RegExp(F(this.filename())+"$");return r=u.recodePath(r),this._parts.path=this._parts.path.replace(x,r),I?this.normalizePath(s):this.build(!s),this}},w.suffix=function(r,s){if(this._parts.urn)return r===void 0?"":this;if(r===void 0||r===!0){if(!this._parts.path||this._parts.path==="/")return"";var p=this.filename(),g=p.lastIndexOf("."),I,x;return g===-1?"":(I=p.substring(g+1),x=/^[a-z0-9%]+$/i.test(I)?I:"",r?u.decodePathSegment(x):x)}else{r.charAt(0)==="."&&(r=r.substring(1));var q=this.suffix(),T;if(q)r?T=new RegExp(F(q)+"$"):T=new RegExp(F("."+q)+"$");else{if(!r)return this;this._parts.path+="."+u.recodePath(r)}return T&&(r=u.recodePath(r),this._parts.path=this._parts.path.replace(T,r)),this.build(!s),this}},w.segment=function(r,s,p){var g=this._parts.urn?":":"/",I=this.path(),x=I.substring(0,1)==="/",q=I.split(g);if(r!==void 0&&typeof r!="number"&&(p=s,s=r,r=void 0),r!==void 0&&typeof r!="number")throw new Error('Bad segment "'+r+'", must be 0-based integer');if(x&&q.shift(),r<0&&(r=Math.max(q.length+r,0)),s===void 0)return r===void 0?q:q[r];if(r===null||q[r]===void 0)if(M(s)){q=[];for(var T=0,D=s.length;T<D;T++)!s[T].length&&(!q.length||!q[q.length-1].length)||(q.length&&!q[q.length-1].length&&q.pop(),q.push(v(s[T])))}else(s||typeof s=="string")&&(s=v(s),q[q.length-1]===""?q[q.length-1]=s:q.push(s));else s?q[r]=v(s):q.splice(r,1);return x&&q.unshift(""),this.path(q.join(g),p)},w.segmentCoded=function(r,s,p){var g,I,x;if(typeof r!="number"&&(p=s,s=r,r=void 0),s===void 0){if(g=this.segment(r,s,p),!M(g))g=g!==void 0?u.decode(g):void 0;else for(I=0,x=g.length;I<x;I++)g[I]=u.decode(g[I]);return g}if(!M(s))s=typeof s=="string"||s instanceof String?u.encode(s):s;else for(I=0,x=s.length;I<x;I++)s[I]=u.encode(s[I]);return this.segment(r,s,p)};var y=w.query;return w.query=function(r,s){if(r===!0)return u.parseQuery(this._parts.query,this._parts.escapeQuerySpace);if(typeof r=="function"){var p=u.parseQuery(this._parts.query,this._parts.escapeQuerySpace),g=r.call(this,p);return this._parts.query=u.buildQuery(g||p,this._parts.duplicateQueryParameters,this._parts.escapeQuerySpace),this.build(!s),this}else return r!==void 0&&typeof r!="string"?(this._parts.query=u.buildQuery(r,this._parts.duplicateQueryParameters,this._parts.escapeQuerySpace),this.build(!s),this):y.call(this,r,s)},w.setQuery=function(r,s,p){var g=u.parseQuery(this._parts.query,this._parts.escapeQuerySpace);if(typeof r=="string"||r instanceof String)g[r]=s!==void 0?s:null;else if(typeof r=="object")for(var I in r)U.call(r,I)&&(g[I]=r[I]);else throw new TypeError("URI.addQuery() accepts an object, string as the name parameter");return this._parts.query=u.buildQuery(g,this._parts.duplicateQueryParameters,this._parts.escapeQuerySpace),typeof r!="string"&&(p=s),this.build(!p),this},w.addQuery=function(r,s,p){var g=u.parseQuery(this._parts.query,this._parts.escapeQuerySpace);return u.addQuery(g,r,s===void 0?null:s),this._parts.query=u.buildQuery(g,this._parts.duplicateQueryParameters,this._parts.escapeQuerySpace),typeof r!="string"&&(p=s),this.build(!p),this},w.removeQuery=function(r,s,p){var g=u.parseQuery(this._parts.query,this._parts.escapeQuerySpace);return u.removeQuery(g,r,s),this._parts.query=u.buildQuery(g,this._parts.duplicateQueryParameters,this._parts.escapeQuerySpace),typeof r!="string"&&(p=s),this.build(!p),this},w.hasQuery=function(r,s,p){var g=u.parseQuery(this._parts.query,this._parts.escapeQuerySpace);return u.hasQuery(g,r,s,p)},w.setSearch=w.setQuery,w.addSearch=w.addQuery,w.removeSearch=w.removeQuery,w.hasSearch=w.hasQuery,w.normalize=function(){return this._parts.urn?this.normalizeProtocol(!1).normalizePath(!1).normalizeQuery(!1).normalizeFragment(!1).build():this.normalizeProtocol(!1).normalizeHostname(!1).normalizePort(!1).normalizePath(!1).normalizeQuery(!1).normalizeFragment(!1).build()},w.normalizeProtocol=function(r){return typeof this._parts.protocol=="string"&&(this._parts.protocol=this._parts.protocol.toLowerCase(),this.build(!r)),this},w.normalizeHostname=function(r){return this._parts.hostname&&(this.is("IDN")&&i?this._parts.hostname=i.toASCII(this._parts.hostname):this.is("IPv6")&&n&&(this._parts.hostname=n.best(this._parts.hostname)),this._parts.hostname=this._parts.hostname.toLowerCase(),this.build(!r)),this},w.normalizePort=function(r){return typeof this._parts.protocol=="string"&&this._parts.port===u.defaultPorts[this._parts.protocol]&&(this._parts.port=null,this.build(!r)),this},w.normalizePath=function(r){var s=this._parts.path;if(!s)return this;if(this._parts.urn)return this._parts.path=u.recodeUrnPath(this._parts.path),this.build(!r),this;if(this._parts.path==="/")return this;s=u.recodePath(s);var p,g="",I,x;for(s.charAt(0)!=="/"&&(p=!0,s="/"+s),(s.slice(-3)==="/.."||s.slice(-2)==="/.")&&(s+="/"),s=s.replace(/(\/(\.\/)+)|(\/\.$)/g,"/").replace(/\/{2,}/g,"/"),p&&(g=s.substring(1).match(/^(\.\.\/)+/)||"",g&&(g=g[0]));I=s.search(/\/\.\.(\/|$)/),I!==-1;){if(I===0){s=s.substring(3);continue}x=s.substring(0,I).lastIndexOf("/"),x===-1&&(x=I),s=s.substring(0,x)+s.substring(I+3)}return p&&this.is("relative")&&(s=g+s.substring(1)),this._parts.path=s,this.build(!r),this},w.normalizePathname=w.normalizePath,w.normalizeQuery=function(r){return typeof this._parts.query=="string"&&(this._parts.query.length?this.query(u.parseQuery(this._parts.query,this._parts.escapeQuerySpace)):this._parts.query=null,this.build(!r)),this},w.normalizeFragment=function(r){return this._parts.fragment||(this._parts.fragment=null,this.build(!r)),this},w.normalizeSearch=w.normalizeQuery,w.normalizeHash=w.normalizeFragment,w.iso8859=function(){var r=u.encode,s=u.decode;u.encode=escape,u.decode=decodeURIComponent;try{this.normalize()}finally{u.encode=r,u.decode=s}return this},w.unicode=function(){var r=u.encode,s=u.decode;u.encode=m,u.decode=unescape;try{this.normalize()}finally{u.encode=r,u.decode=s}return this},w.readable=function(){var r=this.clone();r.username("").password("").normalize();var s="";if(r._parts.protocol&&(s+=r._parts.protocol+"://"),r._parts.hostname&&(r.is("punycode")&&i?(s+=i.toUnicode(r._parts.hostname),r._parts.port&&(s+=":"+r._parts.port)):s+=r.host()),r._parts.hostname&&r._parts.path&&r._parts.path.charAt(0)!=="/"&&(s+="/"),s+=r.path(!0),r._parts.query){for(var p="",g=0,I=r._parts.query.split("&"),x=I.length;g<x;g++){var q=(I[g]||"").split("=");p+="&"+u.decodeQuery(q[0],this._parts.escapeQuerySpace).replace(/&/g,"%26"),q[1]!==void 0&&(p+="="+u.decodeQuery(q[1],this._parts.escapeQuerySpace).replace(/&/g,"%26"))}s+="?"+p.substring(1)}return s+=u.decodeQuery(r.hash(),!0),s},w.absoluteTo=function(r){var s=this.clone(),p=["protocol","username","password","hostname","port"],g,I,x;if(this._parts.urn)throw new Error("URNs do not have any generally defined hierarchical components");if(r instanceof u||(r=new u(r)),s._parts.protocol||(s._parts.protocol=r._parts.protocol,this._parts.hostname))return s;for(I=0;x=p[I];I++)s._parts[x]=r._parts[x];return s._parts.path?(s._parts.path.substring(-2)===".."&&(s._parts.path+="/"),s.path().charAt(0)!=="/"&&(g=r.directory(),g=g||(r.path().indexOf("/")===0?"/":""),s._parts.path=(g?g+"/":"")+s._parts.path,s.normalizePath())):(s._parts.path=r._parts.path,s._parts.query||(s._parts.query=r._parts.query)),s.build(),s},w.relativeTo=function(r){var s=this.clone().normalize(),p,g,I,x,q;if(s._parts.urn)throw new Error("URNs do not have any generally defined hierarchical components");if(r=new u(r).normalize(),p=s._parts,g=r._parts,x=s.path(),q=r.path(),x.charAt(0)!=="/")throw new Error("URI is already relative");if(q.charAt(0)!=="/")throw new Error("Cannot calculate a URI relative to another relative URI");if(p.protocol===g.protocol&&(p.protocol=null),p.username!==g.username||p.password!==g.password||p.protocol!==null||p.username!==null||p.password!==null)return s.build();if(p.hostname===g.hostname&&p.port===g.port)p.hostname=null,p.port=null;else return s.build();if(x===q)return p.path="",s.build();if(I=u.commonPath(x,q),!I)return s.build();var T=g.path.substring(I.length).replace(/[^\/]*$/,"").replace(/.*?\//g,"../");return p.path=T+p.path.substring(I.length)||"./",s.build()},w.equals=function(r){var s=this.clone(),p=new u(r),g={},I={},x={},q,T,D;if(s.normalize(),p.normalize(),s.toString()===p.toString())return!0;if(q=s.query(),T=p.query(),s.query(""),p.query(""),s.toString()!==p.toString()||q.length!==T.length)return!1;g=u.parseQuery(q,this._parts.escapeQuerySpace),I=u.parseQuery(T,this._parts.escapeQuerySpace);for(D in g)if(U.call(g,D)){if(M(g[D])){if(!b(g[D],I[D]))return!1}else if(g[D]!==I[D])return!1;x[D]=!0}for(D in I)if(U.call(I,D)&&!x[D])return!1;return!0},w.preventInvalidHostname=function(r){return this._parts.preventInvalidHostname=!!r,this},w.duplicateQueryParameters=function(r){return this._parts.duplicateQueryParameters=!!r,this},w.escapeQuerySpace=function(r){return this._parts.escapeQuerySpace=!!r,this},u})})(ma)),ma.exports}var Op;function Gc(){return Op||(Op=1,(function(e){var i=Os&&Os.__importDefault||function(L){return L&&L.__esModule?L:{default:L}};Object.defineProperty(e,"__esModule",{value:!0}),e.uriSchemaAttributesProducer=e.uriInferenceAttributesProducer=e.uriTypeAttributeKind=void 0;const n=i(_g()),a=At(),l=et(),d=Qe(),u="qt-uri-protocols",c="qt-uri-extensions";class w extends a.TypeAttributeKind{constructor(){super("uriAttributes")}get inIdentity(){return!0}combine(_){const b=_.map(h=>h[0]),v=_.map(h=>h[1]);return[(0,l.setUnionManyInto)(new Set,b),(0,l.setUnionManyInto)(new Set,v)]}makeInferred(_){}addToSchema(_,b,v){if(b.kind!=="string"&&b.kind!=="uri")return;const[h,m]=v;h.size>0&&(_[u]=Array.from(h).sort()),m.size>0&&(_[c]=Array.from(m).sort())}}e.uriTypeAttributeKind=new w;const U=/^.+(\.[^./\\]+)$/;function F(L){const _=L.match(U);if(_!==null)return _[1]}function O(L){try{const _=(0,n.default)(L),b=F(_.path()),v=b===void 0?[]:[b.toLowerCase()];return e.uriTypeAttributeKind.makeAttributes([new Set([_.protocol().toLowerCase()]),new Set(v)])}catch{return a.emptyTypeAttributes}}e.uriInferenceAttributesProducer=O;function M(L,_,b){if(typeof L!="object"||!b.has("string"))return;let v;const h=L[u];h!==void 0?v=new Set((0,d.checkArray)(h,d.checkString)):v=new Set;let m;const k=L[c];if(k!==void 0?m=new Set((0,d.checkArray)(k,d.checkString)):m=new Set,!(v.size===0&&m.size===0))return{forString:e.uriTypeAttributeKind.makeAttributes([v,m])}}e.uriSchemaAttributesProducer=M})(Os)),Os}var Cp;function mt(){return Cp||(Cp=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.UnionType=e.IntersectionType=e.SetOperationType=e.intersectionTypeIdentity=e.unionTypeIdentity=e.setOperationTypeIdentity=e.setOperationCasesEqual=e.EnumType=e.enumTypeIdentity=e.MapType=e.ClassType=e.ObjectType=e.mapTypeIdentify=e.classTypeIdentity=e.ClassProperty=e.GenericClassProperty=e.ArrayType=e.arrayTypeIdentity=e.PrimitiveType=e.primitiveTypeIdentity=e.Type=e.TypeIdentity=e.isPrimitiveTypeKind=e.isNumberTypeKind=e.targetTypeKindForTransformedStringTypeKind=e.isPrimitiveStringTypeKind=e.transformedStringTypeKinds=e.transformedStringTypeTargetTypeKindsMap=void 0;const i=et(),n=Qe(),a=Ki(),l=yn(),d=ni(),u=Gc(),c={date:{jsonSchema:"date",primitive:void 0},time:{jsonSchema:"time",primitive:void 0},"date-time":{jsonSchema:"date-time",primitive:void 0},uuid:{jsonSchema:"uuid",primitive:void 0},uri:{jsonSchema:"uri",primitive:void 0,attributesProducer:u.uriInferenceAttributesProducer},"integer-string":{jsonSchema:"integer",primitive:"integer"},"bool-string":{jsonSchema:"boolean",primitive:"bool"}};e.transformedStringTypeTargetTypeKindsMap=(0,i.mapFromObject)(c),e.transformedStringTypeKinds=new Set(Object.getOwnPropertyNames(c));function w(W){return W==="string"||(0,i.hasOwnProperty)(c,W)}e.isPrimitiveStringTypeKind=w;function U(W){const J=e.transformedStringTypeTargetTypeKindsMap.get(W);if(J!==void 0)return J.primitive}e.targetTypeKindForTransformedStringTypeKind=U;function F(W){return W==="integer"||W==="double"}e.isNumberTypeKind=F;function O(W){return w(W)||F(W)?!0:W==="none"||W==="any"||W==="null"||W==="bool"}e.isPrimitiveTypeKind=O;function M(W,J){return W.index===J.index||W.kind==="none"||J.kind==="none"}class L{constructor(J,X){this._kind=J,this._components=X;let Q=i.hashCodeInit;Q=(0,i.addHashCode)(Q,(0,i.hashCodeOf)(this._kind));for(const re of X)Q=(0,i.addHashCode)(Q,(0,i.hashCodeOf)(re));this._hashCode=Q}equals(J){if(!(J instanceof L)||this._kind!==J._kind)return!1;const X=this._components.length;(0,n.assert)(X===J._components.length,"Components of a type kind's identity must have the same length");for(let Q=0;Q<X;Q++)if(!(0,i.areEqual)(this._components[Q],J._components[Q]))return!1;return!0}hashCode(){return this._hashCode}}e.TypeIdentity=L;class _{constructor(J,X){this.typeRef=J,this.graph=X}get index(){return(0,d.typeRefIndex)(this.typeRef)}getChildren(){let J=this.getNonAttributeChildren();for(const[X,Q]of this.getAttributes())X.children!==void 0&&(0,i.setUnionInto)(J,X.children(Q));return J}getAttributes(){return(0,d.attributesForTypeRef)(this.typeRef,this.graph)}get hasNames(){return a.namesTypeAttributeKind.tryGetInAttributes(this.getAttributes())!==void 0}getNames(){return(0,n.defined)(a.namesTypeAttributeKind.tryGetInAttributes(this.getAttributes()))}getCombinedName(){return this.getNames().combinedName}get debugPrintKind(){return this.kind}equals(J){return J instanceof _?this.typeRef===J.typeRef:!1}hashCode(){return(0,i.hashCodeOf)(this.typeRef)}structurallyCompatible(J,X=!1){function Q(ge,Ae){return ge===Ae?!0:X?ge==="integer"?Ae==="double":ge==="double"?Ae==="integer":!1:!1}if(M(this,J))return!0;if(!Q(this.kind,J.kind))return!1;const re=[[this,J]],se=[];let ne;const me=(ge,Ae)=>M(ge,Ae)?!0:Q(ge.kind,Ae.kind)?(re.push([ge,Ae]),!0):(ne=!0,!1);for(;re.length>0;){let[ge,Ae]=(0,n.defined)(re.pop());if(ge.index>Ae.index&&([ge,Ae]=[Ae,ge]),!ge.isPrimitive()){let pe=ge.index,le=Ae.index,ye=!1;for(const[de,Y]of se)if(de===pe&&Y===le){ye=!0;break}if(ye)continue;se.push([pe,le])}if(ne=!1,!ge.structuralEqualityStep(Ae,X,me)||ne)return!1}return!0}getParentTypes(){return this.graph.getParentsOfType(this)}getAncestorsNotInSet(J){const X=[this],Q=new Set,re=new Set;for(;;){const se=X.pop();if(se===void 0)break;const ne=se.getParentTypes();console.log(`${ne.size} parents`);for(const me of ne)Q.has(me)||(Q.add(me),J.has(me.typeRef)?(console.log(`adding ${me.kind}`),X.push(me)):(console.log(`found ${me.kind}`),re.add(me)))}return re}}e.Type=_;function b(W){return(0,i.mapSome)(W,(J,X)=>X.requiresUniqueIdentity(J))}function v(W){return(0,i.mapFilter)(W,(J,X)=>X.inIdentity)}function h(W,J){if(!b(J))return new L(W,[v(J)])}e.primitiveTypeIdentity=h;class m extends _{constructor(J,X,Q){super(J,X),this.kind=Q}get isNullable(){return this.kind==="null"||this.kind==="any"||this.kind==="none"}isPrimitive(){return!0}getNonAttributeChildren(){return new Set}get identity(){return h(this.kind,this.getAttributes())}reconstitute(J){J.getPrimitiveType(this.kind)}structuralEqualityStep(J,X,Q){return!0}}e.PrimitiveType=m;function k(W,J){if(!b(W))return new L("array",[v(W),J])}e.arrayTypeIdentity=k;class B extends _{constructor(J,X,Q){super(J,X),this._itemsRef=Q,this.kind="array"}setItems(J){if(this._itemsRef!==void 0)return(0,n.panic)("Can only set array items once");this._itemsRef=J}getItemsRef(){return this._itemsRef===void 0?(0,n.panic)("Array items accessed before they were set"):this._itemsRef}get items(){return(0,d.derefTypeRef)(this.getItemsRef(),this.graph)}getNonAttributeChildren(){return new Set([this.items])}get isNullable(){return!1}isPrimitive(){return!1}get identity(){return k(this.getAttributes(),this.getItemsRef())}reconstitute(J){const X=this.getItemsRef(),Q=J.lookup(X);Q===void 0?(J.getUniqueArrayType(),J.setArrayItems(J.reconstitute(this.getItemsRef()))):J.getArrayType(Q)}structuralEqualityStep(J,X,Q){return Q(this.items,J.items)}}e.ArrayType=B;class C{constructor(J,X){this.typeData=J,this.isOptional=X}equals(J){return J instanceof C?(0,i.areEqual)(this.typeData,J.typeData)&&this.isOptional===J.isOptional:!1}hashCode(){return(0,i.hashCodeOf)(this.typeData)+(this.isOptional?17:23)}}e.GenericClassProperty=C;class R extends C{constructor(J,X,Q){super(J,Q),this.graph=X}get typeRef(){return this.typeData}get type(){return(0,d.derefTypeRef)(this.typeRef,this.graph)}}e.ClassProperty=R;function A(W,J,X,Q){if(!b(J))return new L(W,[v(J),X,Q])}function f(W,J){return A("class",W,J,void 0)}e.classTypeIdentity=f;function E(W,J){return A("map",W,new Map,J)}e.mapTypeIdentify=E;class S extends _{constructor(J,X,Q,re,se,ne){super(J,X),this.kind=Q,this.isFixed=re,this._properties=se,this._additionalPropertiesRef=ne,Q==="map"?(se!==void 0&&(0,n.assert)(se.size===0),(0,n.assert)(!re)):Q==="class"?(0,n.assert)(ne===void 0):(0,n.assert)(re)}setProperties(J,X){(0,n.assert)(this._properties===void 0,"Tried to set object properties twice"),this instanceof y&&(0,n.assert)(J.size===0,"Cannot set properties on map type"),this instanceof P&&(0,n.assert)(X===void 0,"Cannot set additional properties of class type"),this._properties=J,this._additionalPropertiesRef=X}getProperties(){return(0,n.defined)(this._properties)}getSortedProperties(){return(0,i.mapSortByKey)(this.getProperties())}getAdditionalPropertiesRef(){return(0,n.assert)(this._properties!==void 0,"Properties are not set yet"),this._additionalPropertiesRef}getAdditionalProperties(){const J=this.getAdditionalPropertiesRef();if(J!==void 0)return(0,d.derefTypeRef)(J,this.graph)}getNonAttributeChildren(){const J=(0,i.mapSortToArray)(this.getProperties(),(Q,re)=>re).map(([Q,re])=>re.type),X=this.getAdditionalProperties();return X!==void 0&&J.push(X),new Set(J)}get isNullable(){return!1}isPrimitive(){return!1}get identity(){if(!this.isFixed)return A(this.kind,this.getAttributes(),this.getProperties(),this.getAdditionalPropertiesRef())}reconstitute(J,X){const Q=this.getSortedProperties(),re=X?Q:this.getProperties(),se=J.lookupMap((0,i.mapMap)(Q,me=>me.typeRef)),ne=(0,i.definedMap)(this._additionalPropertiesRef,me=>J.lookup(me));if(se!==void 0&&(ne!==void 0||this._additionalPropertiesRef===void 0)){const me=(0,i.mapMap)(re,(ge,Ae)=>J.makeClassProperty((0,n.defined)(se.get(Ae)),ge.isOptional));switch(this.kind){case"object":(0,n.assert)(this.isFixed),J.getObjectType(me,ne);break;case"map":J.getMapType((0,n.defined)(ne));break;case"class":this.isFixed?J.getUniqueClassType(!0,me):J.getClassType(me);break;default:return(0,n.panic)(`Invalid object type kind ${this.kind}`)}}else{switch(this.kind){case"object":(0,n.assert)(this.isFixed),J.getUniqueObjectType(void 0,void 0);break;case"map":J.getUniqueMapType();break;case"class":J.getUniqueClassType(this.isFixed,void 0);break;default:return(0,n.panic)(`Invalid object type kind ${this.kind}`)}const me=(0,i.mapMap)(Q,pe=>J.reconstitute(pe.typeRef)),ge=(0,i.mapMap)(re,(pe,le)=>J.makeClassProperty((0,n.defined)(me.get(le)),pe.isOptional)),Ae=(0,i.definedMap)(this._additionalPropertiesRef,pe=>J.reconstitute(pe));J.setObjectProperties(ge,Ae)}}structuralEqualityStep(J,X,Q){const re=this.getProperties(),se=J.getProperties();if(re.size!==se.size)return!1;let ne=!1;for(const[Ae,pe]of re){const le=se.get(Ae);if(le===void 0||pe.isOptional!==le.isOptional||!Q(pe.type,le.type))return ne=!0,!1}if(ne)return!1;const me=this.getAdditionalProperties(),ge=J.getAdditionalProperties();return me===void 0!=(ge===void 0)?!1:me===void 0||ge===void 0?!0:Q(me,ge)}}e.ObjectType=S;class P extends S{constructor(J,X,Q,re){super(J,X,"class",Q,re,void 0)}}e.ClassType=P;class y extends S{constructor(J,X,Q){super(J,X,"map",!1,(0,i.definedMap)(Q,()=>new Map),Q)}get values(){return(0,n.defined)(this.getAdditionalProperties())}}e.MapType=y;function r(W,J){if(!b(W))return new L("enum",[v(W),J])}e.enumTypeIdentity=r;class s extends _{constructor(J,X,Q){super(J,X),this.cases=Q,this.kind="enum"}get isNullable(){return!1}isPrimitive(){return!1}get identity(){return r(this.getAttributes(),this.cases)}getNonAttributeChildren(){return new Set}reconstitute(J){J.getEnumType(this.cases)}structuralEqualityStep(J,X,Q){return(0,i.areEqual)(this.cases,J.cases)}}e.EnumType=s;function p(W,J,X,Q){const re=(0,i.toReadonlySet)(W),se=(0,i.toReadonlySet)(J);return re.size!==se.size?!1:(0,i.iterableEvery)(re,ne=>{const me=(0,i.iterableFind)(se,ge=>ge.kind===ne.kind);return!!(me!==void 0&&Q(ne,me)||X&&(ne.kind==="integer"&&(0,i.iterableSome)(se,ge=>ge.kind==="double")||ne.kind==="double"&&(0,i.iterableSome)(se,ge=>ge.kind==="integer")))})}e.setOperationCasesEqual=p;function g(W,J,X){if(!b(J))return new L(W,[v(J),X])}e.setOperationTypeIdentity=g;function I(W,J){return g("union",W,J)}e.unionTypeIdentity=I;function x(W,J){return g("intersection",W,J)}e.intersectionTypeIdentity=x;class q extends _{constructor(J,X,Q,re){super(J,X),this.kind=Q,this._memberRefs=re}setMembers(J){if(this._memberRefs!==void 0)return(0,n.panic)("Can only set map members once");this._memberRefs=J}getMemberRefs(){return this._memberRefs===void 0?(0,n.panic)("Map members accessed before they were set"):this._memberRefs}get members(){return(0,i.setMap)(this.getMemberRefs(),J=>(0,d.derefTypeRef)(J,this.graph))}get sortedMembers(){return this.getNonAttributeChildren()}getNonAttributeChildren(){return(0,i.setSortBy)(this.members,J=>J.kind)}isPrimitive(){return!1}get identity(){return g(this.kind,this.getAttributes(),this.getMemberRefs())}reconstituteSetOperation(J,X,Q){const re=(0,i.mapMap)(this.sortedMembers.entries(),me=>me.typeRef),se=X?this.sortedMembers:this.members,ne=J.lookupMap(re);if(ne===void 0){Q(void 0);const me=J.reconstituteMap(re);J.setSetOperationMembers((0,i.setMap)(se,ge=>(0,n.defined)(me.get(ge))))}else Q((0,i.setMap)(se,me=>(0,n.defined)(ne.get(me))))}structuralEqualityStep(J,X,Q){return p(this.members,J.members,X,Q)}}e.SetOperationType=q;class T extends q{constructor(J,X,Q){super(J,X,"intersection",Q)}get isNullable(){return(0,n.panic)("isNullable not implemented for IntersectionType")}reconstitute(J,X){this.reconstituteSetOperation(J,X,Q=>{Q===void 0?J.getUniqueIntersectionType():J.getIntersectionType(Q)})}}e.IntersectionType=T;class D extends q{constructor(J,X,Q){super(J,X,"union",Q),Q!==void 0&&(0,l.messageAssert)(Q.size>0,"IRNoEmptyUnions",{})}setMembers(J){(0,l.messageAssert)(J.size>0,"IRNoEmptyUnions",{}),super.setMembers(J)}get stringTypeMembers(){return(0,i.setFilter)(this.members,J=>w(J.kind)||J.kind==="enum")}findMember(J){return(0,i.iterableFind)(this.members,X=>X.kind===J)}get isNullable(){return this.findMember("null")!==void 0}get isCanonical(){const J=this.members;if(J.size<=1)return!1;const X=(0,i.setMap)(J,re=>re.kind);if(X.size<J.size||X.has("union")||X.has("intersection")||X.has("none")||X.has("any")||X.has("string")&&X.has("enum"))return!1;let Q=0;return X.has("class")&&(Q+=1),X.has("map")&&(Q+=1),X.has("object")&&(Q+=1),!(Q>1)}reconstitute(J,X){this.reconstituteSetOperation(J,X,Q=>{Q===void 0?J.getUniqueUnionType():J.getUnionType(Q)})}}e.UnionType=D})(tl)),tl}var xt={},Rt={},Ep;function Ft(){if(Ep)return Rt;Ep=1,Object.defineProperty(Rt,"__esModule",{value:!0}),Rt.assignNames=Rt.keywordNamespace=Rt.DependencyName=Rt.AssociatedName=Rt.SimpleName=Rt.FixedName=Rt.Name=Rt.funPrefixNamer=Rt.Namer=Rt.Namespace=void 0;const e=et(),i=Qe();class n{constructor(v,h,m,k){this._children=new Set,this._members=new Set,this.forbiddenNamespaces=new Set(m),this.additionalForbidden=new Set(k),h!==void 0&&h.addChild(this)}addChild(v){this._children.add(v)}get children(){return this._children}get members(){return this._members}get forbiddenNameds(){return(0,e.setUnion)(this.additionalForbidden,...Array.from(this.forbiddenNamespaces).map(v=>v.members))}add(v){return this._members.add(v),v}}Rt.Namespace=n;class a{constructor(v,h,m){this.name=v,this.nameStyle=h,this._prefixes=new Set(m)}assignNames(v,h,m){const k=new Set(h),B=Array.from(m);(0,i.assert)(B.length>0,"Number of names can't be less than 1");const C=new Map;let R=[];for(const E of B){const S=E.proposeUnstyledNames(v),P=E.namingFunction,y=(0,e.iterableFind)(S,r=>!k.has(P.nameStyle(r))&&B.every(s=>s===E||!s.proposeUnstyledNames(v).has(r)));if(y!==void 0){const r=P.nameStyle(y),s=E.nameAssignments(k,r);if(s!==null){(0,e.mapMergeInto)(C,s),(0,e.setUnionInto)(k,s.values());continue}}R.push(E)}let A=this._prefixes.values(),f=1;for(const E of R){const S=(0,i.defined)((0,e.iterableFirst)(E.proposeUnstyledNames(v)));for(;;){let P;const{done:y,value:r}=A.next();y?(P=`${S}_${f.toString()}`,f++):P=`${r}_${S}`;const s=E.namingFunction.nameStyle(P),p=E.nameAssignments(k,s);if(p!==null){(0,e.mapMergeInto)(C,p),(0,e.setUnionInto)(k,p.values());break}}}return C}}Rt.Namer=a;const l=["Purple","Fluffy","Tentacled","Sticky","Indigo","Indecent","Hilarious","Ambitious","Cunning","Magenta","Frisky","Mischievous","Braggadocious"];function d(b,v){return new a(b,v,l)}Rt.funPrefixNamer=d;class u{constructor(v,h){this._namingFunction=v,this.order=h,this._associates=new Set}addAssociate(v){this._associates.add(v)}isFixed(){return this instanceof c}get namingFunction(){return(0,i.defined)(this._namingFunction)}firstProposedName(v){return(0,i.defined)((0,e.iterableFirst)(this.proposeUnstyledNames(v)))}nameAssignments(v,h){if(v.has(h))return null;const m=new Map([[this,h]]);for(const k of this._associates){const B=k.getName(h);if(v.has(B))return null;m.set(k,B)}return m}}Rt.Name=u;class c extends u{constructor(v){super(void 0,0),this._fixedName=v}get dependencies(){return[]}addAssociate(v){return(0,i.panic)("Cannot add associates to fixed names")}get fixedName(){return this._fixedName}proposeUnstyledNames(v){return(0,i.panic)("Only fixedName should be called on FixedName.")}}Rt.FixedName=c;class w extends u{constructor(v,h,m){super(h,m),this._unstyledNames=new Set(v)}get dependencies(){return[]}proposeUnstyledNames(v){return this._unstyledNames}}Rt.SimpleName=w;class U extends u{constructor(v,h,m){super(void 0,h),this._sponsor=v,this.getName=m}get dependencies(){return[this._sponsor]}proposeUnstyledNames(v){return(0,i.panic)("AssociatedName must be assigned via its sponsor")}}Rt.AssociatedName=U;class F extends u{constructor(v,h,m){super(v,h),this._proposeUnstyledName=m;const k=[];m(B=>(k.push(B),"0xDEADBEEF")),this._dependencies=new Set(k)}get dependencies(){return Array.from(this._dependencies)}proposeUnstyledNames(v){return new Set([this._proposeUnstyledName(h=>((0,i.assert)(this._dependencies.has(h),"DependencyName proposer is not pure"),(0,i.defined)(v.get(h))))])}}Rt.DependencyName=F;function O(b,v){const h=new n(b,void 0,[],[]);for(const m of v)h.add(new c(m));return h}Rt.keywordNamespace=O;function M(b){return(0,e.setUnion)(b,...Array.from((0,e.setMap)(b,v=>M(v.children))))}class L{constructor(v){this._names=new Map,this._namedsForName=new Map,this.isReadyToBeNamed=h=>this._names.has(h)?!1:h.dependencies.every(m=>this._names.has(m)),this.isConflicting=(h,m)=>{const k=this._namedsForName.get(m);if(k===void 0)return!1;for(const B of k)if(h.members.has(B)||h.forbiddenNameds.has(B))return!0;return!1},this.assign=(h,m,k)=>{(0,i.assert)(!this.names.has(h),`Name "${k}" assigned twice`),(0,i.assert)(!this.isConflicting(m,k),`Assigned name "${k}" conflicts`),this._names.set(h,k);let B=this._namedsForName.get(k);B===void 0&&(B=new Set,this._namedsForName.set(k,B)),B.add(h)},this.namespaces=M(v)}get names(){return this._names}areForbiddensFullyNamed(v){return(0,e.iterableEvery)(v.forbiddenNameds,h=>this._names.has(h))}}function _(b){const v=new L(b);for(const h of v.namespaces)for(const m of h.members)m.isFixed()&&v.assign(m,h,m.fixedName);for(;;){const h=(0,e.setFilter)(v.namespaces,C=>v.areForbiddensFullyNamed(C)),m=(0,e.iterableFind)(h,C=>(0,e.iterableSome)(C.members,v.isReadyToBeNamed));if(m===void 0)return v.names;const k=(0,e.setUnion)(m.members,m.forbiddenNameds);let B=(0,e.setFilterMap)(k,C=>v.names.get(C));for(;;){const C=(0,e.setFilter)(m.members,v.isReadyToBeNamed),R=(0,e.iterableMinBy)(C,S=>S.order);if(R===void 0)break;const A=R.order,f=(0,e.setFilter)(C,S=>S.order===A),E=(0,e.setGroupBy)(f,S=>S.namingFunction);for(const[S,P]of E){const y=(0,e.setGroupBy)(P,r=>r.namingFunction.nameStyle(r.firstProposedName(v.names)));for(const[,r]of y){const s=S.assignNames(v.names,B,r);for(const[p,g]of s)v.assign(p,m,g);(0,e.setUnionInto)(B,s.values())}}}}}return Rt.assignNames=_,Rt}var Ap;function Dt(){if(Ap)return xt;Ap=1,Object.defineProperty(xt,"__esModule",{value:!0}),xt.parenIfNeeded=xt.multiWord=xt.singleWord=xt.serializeRenderResult=xt.modifySource=xt.maybeAnnotated=xt.annotated=xt.sourcelikeToSource=xt.newline=void 0;const e=et(),i=Ft(),n=Qe(),a=Nt();function l(){return{kind:"newline",indentationChange:0}}xt.newline=l;function d(_){if(_ instanceof Array)return{kind:"sequence",sequence:_.map(d)};if(typeof _=="string"){const b=_.split(`
141
+ # ${r}`)}rewrite(r,s,p,g,I,x,q=!1){if(this.printRewrite(r),!q&&g.length===0)return this;const T=new d.GraphRewriteBuilder(this,s,p,this._haveProvenanceAttributes,g,I,x),D=T.finish();return this.checkLostTypeAttributes(T,D),this._printOnRewrite&&(D.setPrintOnRewrite(),D.printGraph()),T.didAddForwardingIntersection?P(D,s,I):D}remap(r,s,p,g,I,x=!1){if(this.printRewrite(r),!x&&g.size===0)return this;const q=new d.GraphRemapBuilder(this,s,p,this._haveProvenanceAttributes,g,I),T=q.finish();return this.checkLostTypeAttributes(q,T),this._printOnRewrite&&(T.setPrintOnRewrite(),T.printGraph()),(0,a.assert)(!q.didAddForwardingIntersection),T}garbageCollect(r,s){return this.remap("GC",(0,l.getNoStringTypeMapping)(),r,new Map,s,!0)}rewriteFixedPoint(r,s){let p=this;for(;;){const g=this.rewrite("fixed-point",(0,l.getNoStringTypeMapping)(),r,[],s,a.mustNotHappen,!0);if(p.allTypesUnordered().size===g.allTypesUnordered().size)return p;p=g}}allTypesUnordered(){return(0,a.assert)(this.isFrozen,"Tried to get all graph types before it was frozen"),new Set((0,a.defined)(this._types))}makeGraph(r,s){return new c.Graph((0,a.defined)(this._types),r,s)}getParentsOfType(r){if(h(r.typeRef,this),this._parents===void 0){const s=(0,a.defined)(this._types).map(p=>new Set);for(const p of this.allTypesUnordered())for(const g of p.getChildren()){const I=g.index;s[I]=s[I].add(p)}this._parents=s}return this._parents[r.index]}printGraph(){const r=(0,a.defined)(this._types);for(let s=0;s<r.length;s++){const p=r[s],g=[];g.push(`${p.debugPrintKind}${p.hasNames?` ${p.getCombinedName()}`:""}`);const I=p.getChildren();I.size>0&&g.push(`children ${Array.from(I).map(x=>x.index).join(",")}`);for(const[x,q]of p.getAttributes()){const T=x.stringify(q);T!==void 0&&g.push(T)}console.log(`${s}: ${g.join(" | ")}`)}}};Tt.TypeGraph=f;function E(y,r,s){const p=(0,e.setFilter)(y.allTypesUnordered(),g=>g.kind==="none");return p.size===0?y:((0,a.assert)(p.size===1,"Cannot have more than one none type"),y.rewrite("none to any",r,!1,[Array.from(p)],s,(g,I,x)=>{const q=(0,n.combineTypeAttributesOfTypes)("union",g);return I.getPrimitiveType("any",q,x)}))}Tt.noneToAny=E;function S(y,r,s){function p(x,q,T){const D=(0,e.mapMap)(x.getProperties(),(W,J)=>{const X=W.type;let Q;if(!W.isOptional||X.isNullable)Q=q.reconstituteType(X);else{const re=q.getPrimitiveType("null");let se;X instanceof i.UnionType?se=(0,e.setMap)(X.members,me=>q.reconstituteType(me)).add(re):se=new Set([q.reconstituteType(X),re]);const ne=u.namesTypeAttributeKind.setDefaultInAttributes(X.getAttributes(),()=>u.TypeNames.make(new Set([J]),new Set,!0));Q=q.getUnionType(ne,se)}return q.makeClassProperty(Q,W.isOptional)});return x.isFixed?q.getUniqueClassType(x.getAttributes(),!0,D,T):q.getClassType(x.getAttributes(),D,T)}const g=(0,e.setFilter)(y.allTypesUnordered(),x=>x instanceof i.ClassType&&(0,e.mapSome)(x.getProperties(),q=>q.isOptional)),I=Array.from(g).map(x=>[x]);return g.size===0?y:y.rewrite("optional to nullable",r,!1,I,s,(x,q,T)=>{(0,a.assert)(x.size===1);const D=(0,a.defined)((0,e.iterableFirst)(x));return p(D,q,T)})}Tt.optionalToNullable=S;function P(y,r,s){const p=[];for(const g of y.allTypesUnordered()){if(!(g instanceof i.IntersectionType))continue;const I=new Set([g]);let x=g;for(;x.members.size===1;){const q=(0,a.defined)((0,e.iterableFirst)(x.members));if(!(q instanceof i.IntersectionType)){p.push([g,q]);break}if(I.has(q))return(0,a.panic)("There's a cycle of intersection types");I.add(q),x=q}}return y.remap("remove indirection intersections",r,!1,new Map(p),s)}return Tt.removeIndirectionIntersections=P,Tt}var Os={},ma={exports:{}},Ks={exports:{}};var U_=Ks.exports,Lp;function x_(){return Lp||(Lp=1,(function(e,i){(function(n){var a=i&&!i.nodeType&&i,l=e&&!e.nodeType&&e,d=typeof Dn=="object"&&Dn;(d.global===d||d.window===d||d.self===d)&&(n=d);var u,c=2147483647,w=36,U=1,F=26,O=38,M=700,L=72,_=128,b="-",v=/^xn--/,h=/[^\x20-\x7E]/,m=/[\x2E\u3002\uFF0E\uFF61]/g,k={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},B=w-U,C=Math.floor,R=String.fromCharCode,A;function f(T){throw new RangeError(k[T])}function E(T,D){for(var W=T.length,J=[];W--;)J[W]=D(T[W]);return J}function S(T,D){var W=T.split("@"),J="";W.length>1&&(J=W[0]+"@",T=W[1]),T=T.replace(m,".");var X=T.split("."),Q=E(X,D).join(".");return J+Q}function P(T){for(var D=[],W=0,J=T.length,X,Q;W<J;)X=T.charCodeAt(W++),X>=55296&&X<=56319&&W<J?(Q=T.charCodeAt(W++),(Q&64512)==56320?D.push(((X&1023)<<10)+(Q&1023)+65536):(D.push(X),W--)):D.push(X);return D}function y(T){return E(T,function(D){var W="";return D>65535&&(D-=65536,W+=R(D>>>10&1023|55296),D=56320|D&1023),W+=R(D),W}).join("")}function r(T){return T-48<10?T-22:T-65<26?T-65:T-97<26?T-97:w}function s(T,D){return T+22+75*(T<26)-((D!=0)<<5)}function p(T,D,W){var J=0;for(T=W?C(T/M):T>>1,T+=C(T/D);T>B*F>>1;J+=w)T=C(T/B);return C(J+(B+1)*T/(T+O))}function g(T){var D=[],W=T.length,J,X=0,Q=_,re=L,se,ne,me,ge,Ae,pe,le,ye,de;for(se=T.lastIndexOf(b),se<0&&(se=0),ne=0;ne<se;++ne)T.charCodeAt(ne)>=128&&f("not-basic"),D.push(T.charCodeAt(ne));for(me=se>0?se+1:0;me<W;){for(ge=X,Ae=1,pe=w;me>=W&&f("invalid-input"),le=r(T.charCodeAt(me++)),(le>=w||le>C((c-X)/Ae))&&f("overflow"),X+=le*Ae,ye=pe<=re?U:pe>=re+F?F:pe-re,!(le<ye);pe+=w)de=w-ye,Ae>C(c/de)&&f("overflow"),Ae*=de;J=D.length+1,re=p(X-ge,J,ge==0),C(X/J)>c-Q&&f("overflow"),Q+=C(X/J),X%=J,D.splice(X++,0,Q)}return y(D)}function I(T){var D,W,J,X,Q,re,se,ne,me,ge,Ae,pe=[],le,ye,de,Y;for(T=P(T),le=T.length,D=_,W=0,Q=L,re=0;re<le;++re)Ae=T[re],Ae<128&&pe.push(R(Ae));for(J=X=pe.length,X&&pe.push(b);J<le;){for(se=c,re=0;re<le;++re)Ae=T[re],Ae>=D&&Ae<se&&(se=Ae);for(ye=J+1,se-D>C((c-W)/ye)&&f("overflow"),W+=(se-D)*ye,D=se,re=0;re<le;++re)if(Ae=T[re],Ae<D&&++W>c&&f("overflow"),Ae==D){for(ne=W,me=w;ge=me<=Q?U:me>=Q+F?F:me-Q,!(ne<ge);me+=w)Y=ne-ge,de=w-ge,pe.push(R(s(ge+Y%de,0))),ne=C(Y/de);pe.push(R(s(ne,0))),Q=p(W,ye,J==X),W=0,++J}++W,++D}return pe.join("")}function x(T){return S(T,function(D){return v.test(D)?g(D.slice(4).toLowerCase()):D})}function q(T){return S(T,function(D){return h.test(D)?"xn--"+I(D):D})}if(u={version:"1.3.2",ucs2:{decode:P,encode:y},decode:g,encode:I,toASCII:q,toUnicode:x},a&&l)if(e.exports==a)l.exports=u;else for(A in u)u.hasOwnProperty(A)&&(a[A]=u[A]);else n.punycode=u})(U_)})(Ks,Ks.exports)),Ks.exports}var ya={exports:{}};var z_=ya.exports,_p;function W_(){return _p||(_p=1,(function(e){(function(i,n){e.exports?e.exports=n():i.IPv6=n(i)})(z_,function(i){var n=i&&i.IPv6;function a(d){var u=d.toLowerCase(),c=u.split(":"),w=c.length,U=8;c[0]===""&&c[1]===""&&c[2]===""?(c.shift(),c.shift()):c[0]===""&&c[1]===""?c.shift():c[w-1]===""&&c[w-2]===""&&c.pop(),w=c.length,c[w-1].indexOf(".")!==-1&&(U=7);var F;for(F=0;F<w&&c[F]!=="";F++);if(F<U)for(c.splice(F,1,"0000");c.length<U;)c.splice(F,0,"0000");for(var O,M=0;M<U;M++){O=c[M].split("");for(var L=0;L<3&&(O[0]==="0"&&O.length>1);L++)O.splice(0,1);c[M]=O.join("")}var _=-1,b=0,v=0,h=-1,m=!1;for(M=0;M<U;M++)m?c[M]==="0"?v+=1:(m=!1,v>b&&(_=h,b=v)):c[M]==="0"&&(m=!0,h=M,v=1);v>b&&(_=h,b=v),b>1&&c.splice(_,b,""),w=c.length;var k="";for(c[0]===""&&(k=":"),M=0;M<w&&(k+=c[M],M!==w-1);M++)k+=":";return c[w-1]===""&&(k+=":"),k}function l(){return i.IPv6===this&&(i.IPv6=n),this}return{best:a,noConflict:l}})})(ya)),ya.exports}var ga={exports:{}};var q_=ga.exports,kp;function J_(){return kp||(kp=1,(function(e){(function(i,n){e.exports?e.exports=n():i.SecondLevelDomains=n(i)})(q_,function(i){var n=i&&i.SecondLevelDomains,a={list:{ac:" com gov mil net org ",ae:" ac co gov mil name net org pro sch ",af:" com edu gov net org ",al:" com edu gov mil net org ",ao:" co ed gv it og pb ",ar:" com edu gob gov int mil net org tur ",at:" ac co gv or ",au:" asn com csiro edu gov id net org ",ba:" co com edu gov mil net org rs unbi unmo unsa untz unze ",bb:" biz co com edu gov info net org store tv ",bh:" biz cc com edu gov info net org ",bn:" com edu gov net org ",bo:" com edu gob gov int mil net org tv ",br:" adm adv agr am arq art ato b bio blog bmd cim cng cnt com coop ecn edu eng esp etc eti far flog fm fnd fot fst g12 ggf gov imb ind inf jor jus lel mat med mil mus net nom not ntr odo org ppg pro psc psi qsl rec slg srv tmp trd tur tv vet vlog wiki zlg ",bs:" com edu gov net org ",bz:" du et om ov rg ",ca:" ab bc mb nb nf nl ns nt nu on pe qc sk yk ",ck:" biz co edu gen gov info net org ",cn:" ac ah bj com cq edu fj gd gov gs gx gz ha hb he hi hl hn jl js jx ln mil net nm nx org qh sc sd sh sn sx tj tw xj xz yn zj ",co:" com edu gov mil net nom org ",cr:" ac c co ed fi go or sa ",cy:" ac biz com ekloges gov ltd name net org parliament press pro tm ",do:" art com edu gob gov mil net org sld web ",dz:" art asso com edu gov net org pol ",ec:" com edu fin gov info med mil net org pro ",eg:" com edu eun gov mil name net org sci ",er:" com edu gov ind mil net org rochest w ",es:" com edu gob nom org ",et:" biz com edu gov info name net org ",fj:" ac biz com info mil name net org pro ",fk:" ac co gov net nom org ",fr:" asso com f gouv nom prd presse tm ",gg:" co net org ",gh:" com edu gov mil org ",gn:" ac com gov net org ",gr:" com edu gov mil net org ",gt:" com edu gob ind mil net org ",gu:" com edu gov net org ",hk:" com edu gov idv net org ",hu:" 2000 agrar bolt casino city co erotica erotika film forum games hotel info ingatlan jogasz konyvelo lakas media news org priv reklam sex shop sport suli szex tm tozsde utazas video ",id:" ac co go mil net or sch web ",il:" ac co gov idf k12 muni net org ",in:" ac co edu ernet firm gen gov i ind mil net nic org res ",iq:" com edu gov i mil net org ",ir:" ac co dnssec gov i id net org sch ",it:" edu gov ",je:" co net org ",jo:" com edu gov mil name net org sch ",jp:" ac ad co ed go gr lg ne or ",ke:" ac co go info me mobi ne or sc ",kh:" com edu gov mil net org per ",ki:" biz com de edu gov info mob net org tel ",km:" asso com coop edu gouv k medecin mil nom notaires pharmaciens presse tm veterinaire ",kn:" edu gov net org ",kr:" ac busan chungbuk chungnam co daegu daejeon es gangwon go gwangju gyeongbuk gyeonggi gyeongnam hs incheon jeju jeonbuk jeonnam k kg mil ms ne or pe re sc seoul ulsan ",kw:" com edu gov net org ",ky:" com edu gov net org ",kz:" com edu gov mil net org ",lb:" com edu gov net org ",lk:" assn com edu gov grp hotel int ltd net ngo org sch soc web ",lr:" com edu gov net org ",lv:" asn com conf edu gov id mil net org ",ly:" com edu gov id med net org plc sch ",ma:" ac co gov m net org press ",mc:" asso tm ",me:" ac co edu gov its net org priv ",mg:" com edu gov mil nom org prd tm ",mk:" com edu gov inf name net org pro ",ml:" com edu gov net org presse ",mn:" edu gov org ",mo:" com edu gov net org ",mt:" com edu gov net org ",mv:" aero biz com coop edu gov info int mil museum name net org pro ",mw:" ac co com coop edu gov int museum net org ",mx:" com edu gob net org ",my:" com edu gov mil name net org sch ",nf:" arts com firm info net other per rec store web ",ng:" biz com edu gov mil mobi name net org sch ",ni:" ac co com edu gob mil net nom org ",np:" com edu gov mil net org ",nr:" biz com edu gov info net org ",om:" ac biz co com edu gov med mil museum net org pro sch ",pe:" com edu gob mil net nom org sld ",ph:" com edu gov i mil net ngo org ",pk:" biz com edu fam gob gok gon gop gos gov net org web ",pl:" art bialystok biz com edu gda gdansk gorzow gov info katowice krakow lodz lublin mil net ngo olsztyn org poznan pwr radom slupsk szczecin torun warszawa waw wroc wroclaw zgora ",pr:" ac biz com edu est gov info isla name net org pro prof ",ps:" com edu gov net org plo sec ",pw:" belau co ed go ne or ",ro:" arts com firm info nom nt org rec store tm www ",rs:" ac co edu gov in org ",sb:" com edu gov net org ",sc:" com edu gov net org ",sh:" co com edu gov net nom org ",sl:" com edu gov net org ",st:" co com consulado edu embaixada gov mil net org principe saotome store ",sv:" com edu gob org red ",sz:" ac co org ",tr:" av bbs bel biz com dr edu gen gov info k12 name net org pol tel tsk tv web ",tt:" aero biz cat co com coop edu gov info int jobs mil mobi museum name net org pro tel travel ",tw:" club com ebiz edu game gov idv mil net org ",mu:" ac co com gov net or org ",mz:" ac co edu gov org ",na:" co com ",nz:" ac co cri geek gen govt health iwi maori mil net org parliament school ",pa:" abo ac com edu gob ing med net nom org sld ",pt:" com edu gov int net nome org publ ",py:" com edu gov mil net org ",qa:" com edu gov mil net org ",re:" asso com nom ",ru:" ac adygeya altai amur arkhangelsk astrakhan bashkiria belgorod bir bryansk buryatia cbg chel chelyabinsk chita chukotka chuvashia com dagestan e-burg edu gov grozny int irkutsk ivanovo izhevsk jar joshkar-ola kalmykia kaluga kamchatka karelia kazan kchr kemerovo khabarovsk khakassia khv kirov koenig komi kostroma kranoyarsk kuban kurgan kursk lipetsk magadan mari mari-el marine mil mordovia mosreg msk murmansk nalchik net nnov nov novosibirsk nsk omsk orenburg org oryol penza perm pp pskov ptz rnd ryazan sakhalin samara saratov simbirsk smolensk spb stavropol stv surgut tambov tatarstan tom tomsk tsaritsyn tsk tula tuva tver tyumen udm udmurtia ulan-ude vladikavkaz vladimir vladivostok volgograd vologda voronezh vrn vyatka yakutia yamal yekaterinburg yuzhno-sakhalinsk ",rw:" ac co com edu gouv gov int mil net ",sa:" com edu gov med net org pub sch ",sd:" com edu gov info med net org tv ",se:" a ac b bd c d e f g h i k l m n o org p parti pp press r s t tm u w x y z ",sg:" com edu gov idn net org per ",sn:" art com edu gouv org perso univ ",sy:" com edu gov mil net news org ",th:" ac co go in mi net or ",tj:" ac biz co com edu go gov info int mil name net nic org test web ",tn:" agrinet com defense edunet ens fin gov ind info intl mincom nat net org perso rnrt rns rnu tourism ",tz:" ac co go ne or ",ua:" biz cherkassy chernigov chernovtsy ck cn co com crimea cv dn dnepropetrovsk donetsk dp edu gov if in ivano-frankivsk kh kharkov kherson khmelnitskiy kiev kirovograd km kr ks kv lg lugansk lutsk lviv me mk net nikolaev od odessa org pl poltava pp rovno rv sebastopol sumy te ternopil uzhgorod vinnica vn zaporizhzhe zhitomir zp zt ",ug:" ac co go ne or org sc ",uk:" ac bl british-library co cym gov govt icnet jet lea ltd me mil mod national-library-scotland nel net nhs nic nls org orgn parliament plc police sch scot soc ",us:" dni fed isa kids nsn ",uy:" com edu gub mil net org ",ve:" co com edu gob info mil net org web ",vi:" co com k12 net org ",vn:" ac biz com edu gov health info int name net org pro ",ye:" co com gov ltd me net org plc ",yu:" ac co edu gov org ",za:" ac agric alt bourse city co cybernet db edu gov grondar iaccess imt inca landesign law mil net ngo nis nom olivetti org pix school tm web ",zm:" ac co com edu gov net org sch ",com:"ar br cn de eu gb gr hu jpn kr no qc ru sa se uk us uy za ",net:"gb jp se uk ",org:"ae",de:"com "},has:function(l){var d=l.lastIndexOf(".");if(d<=0||d>=l.length-1)return!1;var u=l.lastIndexOf(".",d-1);if(u<=0||u>=d-1)return!1;var c=a.list[l.slice(d+1)];return c?c.indexOf(" "+l.slice(u+1,d)+" ")>=0:!1},is:function(l){var d=l.lastIndexOf(".");if(d<=0||d>=l.length-1)return!1;var u=l.lastIndexOf(".",d-1);if(u>=0)return!1;var c=a.list[l.slice(d+1)];return c?c.indexOf(" "+l.slice(0,d)+" ")>=0:!1},get:function(l){var d=l.lastIndexOf(".");if(d<=0||d>=l.length-1)return null;var u=l.lastIndexOf(".",d-1);if(u<=0||u>=d-1)return null;var c=a.list[l.slice(d+1)];return!c||c.indexOf(" "+l.slice(u+1,d)+" ")<0?null:l.slice(u+1)},noConflict:function(){return i.SecondLevelDomains===this&&(i.SecondLevelDomains=n),this}};return a})})(ga)),ga.exports}var G_=ma.exports,Np;function _g(){return Np||(Np=1,(function(e){(function(i,n){e.exports?e.exports=n(x_(),W_(),J_()):i.URI=n(i.punycode,i.IPv6,i.SecondLevelDomains,i)})(G_,function(i,n,a,l){var d=l&&l.URI;function u(r,s){var p=arguments.length>=1,g=arguments.length>=2;if(!(this instanceof u))return p?g?new u(r,s):new u(r):new u;if(r===void 0){if(p)throw new TypeError("undefined is not a valid argument for URI");typeof location<"u"?r=location.href+"":r=""}if(r===null&&p)throw new TypeError("null is not a valid argument for URI");return this.href(r),s!==void 0?this.absoluteTo(s):this}function c(r){return/^[0-9]+$/.test(r)}u.version="1.19.11";var w=u.prototype,U=Object.prototype.hasOwnProperty;function F(r){return r.replace(/([.*+?^=!:${}()|[\]\/\\])/g,"\\$1")}function O(r){return r===void 0?"Undefined":String(Object.prototype.toString.call(r)).slice(8,-1)}function M(r){return O(r)==="Array"}function L(r,s){var p={},g,I;if(O(s)==="RegExp")p=null;else if(M(s))for(g=0,I=s.length;g<I;g++)p[s[g]]=!0;else p[s]=!0;for(g=0,I=r.length;g<I;g++){var x=p&&p[r[g]]!==void 0||!p&&s.test(r[g]);x&&(r.splice(g,1),I--,g--)}return r}function _(r,s){var p,g;if(M(s)){for(p=0,g=s.length;p<g;p++)if(!_(r,s[p]))return!1;return!0}var I=O(s);for(p=0,g=r.length;p<g;p++)if(I==="RegExp"){if(typeof r[p]=="string"&&r[p].match(s))return!0}else if(r[p]===s)return!0;return!1}function b(r,s){if(!M(r)||!M(s)||r.length!==s.length)return!1;r.sort(),s.sort();for(var p=0,g=r.length;p<g;p++)if(r[p]!==s[p])return!1;return!0}function v(r){var s=/^\/+|\/+$/g;return r.replace(s,"")}u._parts=function(){return{protocol:null,username:null,password:null,hostname:null,urn:null,port:null,path:null,query:null,fragment:null,preventInvalidHostname:u.preventInvalidHostname,duplicateQueryParameters:u.duplicateQueryParameters,escapeQuerySpace:u.escapeQuerySpace}},u.preventInvalidHostname=!1,u.duplicateQueryParameters=!1,u.escapeQuerySpace=!0,u.protocol_expression=/^[a-z][a-z0-9.+-]*$/i,u.idn_expression=/[^a-z0-9\._-]/i,u.punycode_expression=/(xn--)/i,u.ip4_expression=/^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}$/,u.ip6_expression=/^\s*((([0-9A-Fa-f]{1,4}:){7}([0-9A-Fa-f]{1,4}|:))|(([0-9A-Fa-f]{1,4}:){6}(:[0-9A-Fa-f]{1,4}|((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){5}(((:[0-9A-Fa-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){4}(((:[0-9A-Fa-f]{1,4}){1,3})|((:[0-9A-Fa-f]{1,4})?:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){3}(((:[0-9A-Fa-f]{1,4}){1,4})|((:[0-9A-Fa-f]{1,4}){0,2}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){2}(((:[0-9A-Fa-f]{1,4}){1,5})|((:[0-9A-Fa-f]{1,4}){0,3}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){1}(((:[0-9A-Fa-f]{1,4}){1,6})|((:[0-9A-Fa-f]{1,4}){0,4}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(:(((:[0-9A-Fa-f]{1,4}){1,7})|((:[0-9A-Fa-f]{1,4}){0,5}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))(%.+)?\s*$/,u.find_uri_expression=/\b((?:[a-z][\w-]+:(?:\/{1,3}|[a-z0-9%])|www\d{0,3}[.]|[a-z0-9.\-]+[.][a-z]{2,4}\/)(?:[^\s()<>]+|\(([^\s()<>]+|(\([^\s()<>]+\)))*\))+(?:\(([^\s()<>]+|(\([^\s()<>]+\)))*\)|[^\s`!()\[\]{};:'".,<>?«»“”‘’]))/ig,u.findUri={start:/\b(?:([a-z][a-z0-9.+-]*:\/\/)|www\.)/gi,end:/[\s\r\n]|$/,trim:/[`!()\[\]{};:'".,<>?«»“”„‘’]+$/,parens:/(\([^\)]*\)|\[[^\]]*\]|\{[^}]*\}|<[^>]*>)/g},u.leading_whitespace_expression=/^[\x00-\x20\u00a0\u1680\u2000-\u200a\u2028\u2029\u202f\u205f\u3000\ufeff]+/,u.ascii_tab_whitespace=/[\u0009\u000A\u000D]+/g,u.defaultPorts={http:"80",https:"443",ftp:"21",gopher:"70",ws:"80",wss:"443"},u.hostProtocols=["http","https"],u.invalid_hostname_characters=/[^a-zA-Z0-9\.\-:_]/,u.domAttributes={a:"href",blockquote:"cite",link:"href",base:"href",script:"src",form:"action",img:"src",area:"href",iframe:"src",embed:"src",source:"src",track:"src",input:"src",audio:"src",video:"src"},u.getDomAttribute=function(r){if(!(!r||!r.nodeName)){var s=r.nodeName.toLowerCase();if(!(s==="input"&&r.type!=="image"))return u.domAttributes[s]}};function h(r){return escape(r)}function m(r){return encodeURIComponent(r).replace(/[!'()*]/g,h).replace(/\*/g,"%2A")}u.encode=m,u.decode=decodeURIComponent,u.iso8859=function(){u.encode=escape,u.decode=unescape},u.unicode=function(){u.encode=m,u.decode=decodeURIComponent},u.characters={pathname:{encode:{expression:/%(24|26|2B|2C|3B|3D|3A|40)/ig,map:{"%24":"$","%26":"&","%2B":"+","%2C":",","%3B":";","%3D":"=","%3A":":","%40":"@"}},decode:{expression:/[\/\?#]/g,map:{"/":"%2F","?":"%3F","#":"%23"}}},reserved:{encode:{expression:/%(21|23|24|26|27|28|29|2A|2B|2C|2F|3A|3B|3D|3F|40|5B|5D)/ig,map:{"%3A":":","%2F":"/","%3F":"?","%23":"#","%5B":"[","%5D":"]","%40":"@","%21":"!","%24":"$","%26":"&","%27":"'","%28":"(","%29":")","%2A":"*","%2B":"+","%2C":",","%3B":";","%3D":"="}}},urnpath:{encode:{expression:/%(21|24|27|28|29|2A|2B|2C|3B|3D|40)/ig,map:{"%21":"!","%24":"$","%27":"'","%28":"(","%29":")","%2A":"*","%2B":"+","%2C":",","%3B":";","%3D":"=","%40":"@"}},decode:{expression:/[\/\?#:]/g,map:{"/":"%2F","?":"%3F","#":"%23",":":"%3A"}}}},u.encodeQuery=function(r,s){var p=u.encode(r+"");return s===void 0&&(s=u.escapeQuerySpace),s?p.replace(/%20/g,"+"):p},u.decodeQuery=function(r,s){r+="",s===void 0&&(s=u.escapeQuerySpace);try{return u.decode(s?r.replace(/\+/g,"%20"):r)}catch{return r}};var k={encode:"encode",decode:"decode"},B,C=function(r,s){return function(p){try{return u[s](p+"").replace(u.characters[r][s].expression,function(g){return u.characters[r][s].map[g]})}catch{return p}}};for(B in k)u[B+"PathSegment"]=C("pathname",k[B]),u[B+"UrnPathSegment"]=C("urnpath",k[B]);var R=function(r,s,p){return function(g){var I;p?I=function(D){return u[s](u[p](D))}:I=u[s];for(var x=(g+"").split(r),q=0,T=x.length;q<T;q++)x[q]=I(x[q]);return x.join(r)}};u.decodePath=R("/","decodePathSegment"),u.decodeUrnPath=R(":","decodeUrnPathSegment"),u.recodePath=R("/","encodePathSegment","decode"),u.recodeUrnPath=R(":","encodeUrnPathSegment","decode"),u.encodeReserved=C("reserved","encode"),u.parse=function(r,s){var p;return s||(s={preventInvalidHostname:u.preventInvalidHostname}),r=r.replace(u.leading_whitespace_expression,""),r=r.replace(u.ascii_tab_whitespace,""),p=r.indexOf("#"),p>-1&&(s.fragment=r.substring(p+1)||null,r=r.substring(0,p)),p=r.indexOf("?"),p>-1&&(s.query=r.substring(p+1)||null,r=r.substring(0,p)),r=r.replace(/^(https?|ftp|wss?)?:+[/\\]*/i,"$1://"),r=r.replace(/^[/\\]{2,}/i,"//"),r.substring(0,2)==="//"?(s.protocol=null,r=r.substring(2),r=u.parseAuthority(r,s)):(p=r.indexOf(":"),p>-1&&(s.protocol=r.substring(0,p)||null,s.protocol&&!s.protocol.match(u.protocol_expression)?s.protocol=void 0:r.substring(p+1,p+3).replace(/\\/g,"/")==="//"?(r=r.substring(p+3),r=u.parseAuthority(r,s)):(r=r.substring(p+1),s.urn=!0))),s.path=r,s},u.parseHost=function(r,s){r||(r=""),r=r.replace(/\\/g,"/");var p=r.indexOf("/"),g,I;if(p===-1&&(p=r.length),r.charAt(0)==="[")g=r.indexOf("]"),s.hostname=r.substring(1,g)||null,s.port=r.substring(g+2,p)||null,s.port==="/"&&(s.port=null);else{var x=r.indexOf(":"),q=r.indexOf("/"),T=r.indexOf(":",x+1);T!==-1&&(q===-1||T<q)?(s.hostname=r.substring(0,p)||null,s.port=null):(I=r.substring(0,p).split(":"),s.hostname=I[0]||null,s.port=I[1]||null)}return s.hostname&&r.substring(p).charAt(0)!=="/"&&(p++,r="/"+r),s.preventInvalidHostname&&u.ensureValidHostname(s.hostname,s.protocol),s.port&&u.ensureValidPort(s.port),r.substring(p)||"/"},u.parseAuthority=function(r,s){return r=u.parseUserinfo(r,s),u.parseHost(r,s)},u.parseUserinfo=function(r,s){var p=r,g=r.indexOf("\\");g!==-1&&(r=r.replace(/\\/g,"/"));var I=r.indexOf("/"),x=r.lastIndexOf("@",I>-1?I:r.length-1),q;return x>-1&&(I===-1||x<I)?(q=r.substring(0,x).split(":"),s.username=q[0]?u.decode(q[0]):null,q.shift(),s.password=q[0]?u.decode(q.join(":")):null,r=p.substring(x+1)):(s.username=null,s.password=null),r},u.parseQuery=function(r,s){if(!r)return{};if(r=r.replace(/&+/g,"&").replace(/^\?*&*|&+$/g,""),!r)return{};for(var p={},g=r.split("&"),I=g.length,x,q,T,D=0;D<I;D++)x=g[D].split("="),q=u.decodeQuery(x.shift(),s),T=x.length?u.decodeQuery(x.join("="),s):null,q!=="__proto__"&&(U.call(p,q)?((typeof p[q]=="string"||p[q]===null)&&(p[q]=[p[q]]),p[q].push(T)):p[q]=T);return p},u.build=function(r){var s="",p=!1;return r.protocol&&(s+=r.protocol+":"),!r.urn&&(s||r.hostname)&&(s+="//",p=!0),s+=u.buildAuthority(r)||"",typeof r.path=="string"&&(r.path.charAt(0)!=="/"&&p&&(s+="/"),s+=r.path),typeof r.query=="string"&&r.query&&(s+="?"+r.query),typeof r.fragment=="string"&&r.fragment&&(s+="#"+r.fragment),s},u.buildHost=function(r){var s="";if(r.hostname)u.ip6_expression.test(r.hostname)?s+="["+r.hostname+"]":s+=r.hostname;else return"";return r.port&&(s+=":"+r.port),s},u.buildAuthority=function(r){return u.buildUserinfo(r)+u.buildHost(r)},u.buildUserinfo=function(r){var s="";return r.username&&(s+=u.encode(r.username)),r.password&&(s+=":"+u.encode(r.password)),s&&(s+="@"),s},u.buildQuery=function(r,s,p){var g="",I,x,q,T;for(x in r)if(x!=="__proto__"&&U.call(r,x))if(M(r[x]))for(I={},q=0,T=r[x].length;q<T;q++)r[x][q]!==void 0&&I[r[x][q]+""]===void 0&&(g+="&"+u.buildQueryParameter(x,r[x][q],p),s!==!0&&(I[r[x][q]+""]=!0));else r[x]!==void 0&&(g+="&"+u.buildQueryParameter(x,r[x],p));return g.substring(1)},u.buildQueryParameter=function(r,s,p){return u.encodeQuery(r,p)+(s!==null?"="+u.encodeQuery(s,p):"")},u.addQuery=function(r,s,p){if(typeof s=="object")for(var g in s)U.call(s,g)&&u.addQuery(r,g,s[g]);else if(typeof s=="string"){if(r[s]===void 0){r[s]=p;return}else typeof r[s]=="string"&&(r[s]=[r[s]]);M(p)||(p=[p]),r[s]=(r[s]||[]).concat(p)}else throw new TypeError("URI.addQuery() accepts an object, string as the name parameter")},u.setQuery=function(r,s,p){if(typeof s=="object")for(var g in s)U.call(s,g)&&u.setQuery(r,g,s[g]);else if(typeof s=="string")r[s]=p===void 0?null:p;else throw new TypeError("URI.setQuery() accepts an object, string as the name parameter")},u.removeQuery=function(r,s,p){var g,I,x;if(M(s))for(g=0,I=s.length;g<I;g++)r[s[g]]=void 0;else if(O(s)==="RegExp")for(x in r)s.test(x)&&(r[x]=void 0);else if(typeof s=="object")for(x in s)U.call(s,x)&&u.removeQuery(r,x,s[x]);else if(typeof s=="string")p!==void 0?O(p)==="RegExp"?!M(r[s])&&p.test(r[s])?r[s]=void 0:r[s]=L(r[s],p):r[s]===String(p)&&(!M(p)||p.length===1)?r[s]=void 0:M(r[s])&&(r[s]=L(r[s],p)):r[s]=void 0;else throw new TypeError("URI.removeQuery() accepts an object, string, RegExp as the first parameter")},u.hasQuery=function(r,s,p,g){switch(O(s)){case"String":break;case"RegExp":for(var I in r)if(U.call(r,I)&&s.test(I)&&(p===void 0||u.hasQuery(r,I,p)))return!0;return!1;case"Object":for(var x in s)if(U.call(s,x)&&!u.hasQuery(r,x,s[x]))return!1;return!0;default:throw new TypeError("URI.hasQuery() accepts a string, regular expression or object as the name parameter")}switch(O(p)){case"Undefined":return s in r;case"Boolean":var q=!!(M(r[s])?r[s].length:r[s]);return p===q;case"Function":return!!p(r[s],s,r);case"Array":if(!M(r[s]))return!1;var T=g?_:b;return T(r[s],p);case"RegExp":return M(r[s])?g?_(r[s],p):!1:!!(r[s]&&r[s].match(p));case"Number":p=String(p);case"String":return M(r[s])?g?_(r[s],p):!1:r[s]===p;default:throw new TypeError("URI.hasQuery() accepts undefined, boolean, string, number, RegExp, Function as the value parameter")}},u.joinPaths=function(){for(var r=[],s=[],p=0,g=0;g<arguments.length;g++){var I=new u(arguments[g]);r.push(I);for(var x=I.segment(),q=0;q<x.length;q++)typeof x[q]=="string"&&s.push(x[q]),x[q]&&p++}if(!s.length||!p)return new u("");var T=new u("").segment(s);return(r[0].path()===""||r[0].path().slice(0,1)==="/")&&T.path("/"+T.path()),T.normalize()},u.commonPath=function(r,s){var p=Math.min(r.length,s.length),g;for(g=0;g<p;g++)if(r.charAt(g)!==s.charAt(g)){g--;break}return g<1?r.charAt(0)===s.charAt(0)&&r.charAt(0)==="/"?"/":"":((r.charAt(g)!=="/"||s.charAt(g)!=="/")&&(g=r.substring(0,g).lastIndexOf("/")),r.substring(0,g+1))},u.withinString=function(r,s,p){p||(p={});var g=p.start||u.findUri.start,I=p.end||u.findUri.end,x=p.trim||u.findUri.trim,q=p.parens||u.findUri.parens,T=/[a-z0-9-]=["']?$/i;for(g.lastIndex=0;;){var D=g.exec(r);if(!D)break;var W=D.index;if(p.ignoreHtml){var J=r.slice(Math.max(W-3,0),W);if(J&&T.test(J))continue}for(var X=W+r.slice(W).search(I),Q=r.slice(W,X),re=-1;;){var se=q.exec(Q);if(!se)break;var ne=se.index+se[0].length;re=Math.max(re,ne)}if(re>-1?Q=Q.slice(0,re)+Q.slice(re).replace(x,""):Q=Q.replace(x,""),!(Q.length<=D[0].length)&&!(p.ignore&&p.ignore.test(Q))){X=W+Q.length;var me=s(Q,W,X,r);if(me===void 0){g.lastIndex=X;continue}me=String(me),r=r.slice(0,W)+me+r.slice(X),g.lastIndex=W+me.length}}return g.lastIndex=0,r},u.ensureValidHostname=function(r,s){var p=!!r,g=!!s,I=!1;if(g&&(I=_(u.hostProtocols,s)),I&&!p)throw new TypeError("Hostname cannot be empty, if protocol is "+s);if(r&&r.match(u.invalid_hostname_characters)){if(!i)throw new TypeError('Hostname "'+r+'" contains characters other than [A-Z0-9.-:_] and Punycode.js is not available');if(i.toASCII(r).match(u.invalid_hostname_characters))throw new TypeError('Hostname "'+r+'" contains characters other than [A-Z0-9.-:_]')}},u.ensureValidPort=function(r){if(r){var s=Number(r);if(!(c(s)&&s>0&&s<65536))throw new TypeError('Port "'+r+'" is not a valid port')}},u.noConflict=function(r){if(r){var s={URI:this.noConflict()};return l.URITemplate&&typeof l.URITemplate.noConflict=="function"&&(s.URITemplate=l.URITemplate.noConflict()),l.IPv6&&typeof l.IPv6.noConflict=="function"&&(s.IPv6=l.IPv6.noConflict()),l.SecondLevelDomains&&typeof l.SecondLevelDomains.noConflict=="function"&&(s.SecondLevelDomains=l.SecondLevelDomains.noConflict()),s}else l.URI===this&&(l.URI=d);return this},w.build=function(r){return r===!0?this._deferred_build=!0:(r===void 0||this._deferred_build)&&(this._string=u.build(this._parts),this._deferred_build=!1),this},w.clone=function(){return new u(this)},w.valueOf=w.toString=function(){return this.build(!1)._string};function A(r){return function(s,p){return s===void 0?this._parts[r]||"":(this._parts[r]=s||null,this.build(!p),this)}}function f(r,s){return function(p,g){return p===void 0?this._parts[r]||"":(p!==null&&(p=p+"",p.charAt(0)===s&&(p=p.substring(1))),this._parts[r]=p,this.build(!g),this)}}w.protocol=A("protocol"),w.username=A("username"),w.password=A("password"),w.hostname=A("hostname"),w.port=A("port"),w.query=f("query","?"),w.fragment=f("fragment","#"),w.search=function(r,s){var p=this.query(r,s);return typeof p=="string"&&p.length?"?"+p:p},w.hash=function(r,s){var p=this.fragment(r,s);return typeof p=="string"&&p.length?"#"+p:p},w.pathname=function(r,s){if(r===void 0||r===!0){var p=this._parts.path||(this._parts.hostname?"/":"");return r?(this._parts.urn?u.decodeUrnPath:u.decodePath)(p):p}else return this._parts.urn?this._parts.path=r?u.recodeUrnPath(r):"":this._parts.path=r?u.recodePath(r):"/",this.build(!s),this},w.path=w.pathname,w.href=function(r,s){var p;if(r===void 0)return this.toString();this._string="",this._parts=u._parts();var g=r instanceof u,I=typeof r=="object"&&(r.hostname||r.path||r.pathname);if(r.nodeName){var x=u.getDomAttribute(r);r=r[x]||"",I=!1}if(!g&&I&&r.pathname!==void 0&&(r=r.toString()),typeof r=="string"||r instanceof String)this._parts=u.parse(String(r),this._parts);else if(g||I){var q=g?r._parts:r;for(p in q)p!=="query"&&U.call(this._parts,p)&&(this._parts[p]=q[p]);q.query&&this.query(q.query,!1)}else throw new TypeError("invalid input");return this.build(!s),this},w.is=function(r){var s=!1,p=!1,g=!1,I=!1,x=!1,q=!1,T=!1,D=!this._parts.urn;switch(this._parts.hostname&&(D=!1,p=u.ip4_expression.test(this._parts.hostname),g=u.ip6_expression.test(this._parts.hostname),s=p||g,I=!s,x=I&&a&&a.has(this._parts.hostname),q=I&&u.idn_expression.test(this._parts.hostname),T=I&&u.punycode_expression.test(this._parts.hostname)),r.toLowerCase()){case"relative":return D;case"absolute":return!D;case"domain":case"name":return I;case"sld":return x;case"ip":return s;case"ip4":case"ipv4":case"inet4":return p;case"ip6":case"ipv6":case"inet6":return g;case"idn":return q;case"url":return!this._parts.urn;case"urn":return!!this._parts.urn;case"punycode":return T}return null};var E=w.protocol,S=w.port,P=w.hostname;w.protocol=function(r,s){if(r&&(r=r.replace(/:(\/\/)?$/,""),!r.match(u.protocol_expression)))throw new TypeError('Protocol "'+r+`" contains characters other than [A-Z0-9.+-] or doesn't start with [A-Z]`);return E.call(this,r,s)},w.scheme=w.protocol,w.port=function(r,s){return this._parts.urn?r===void 0?"":this:(r!==void 0&&(r===0&&(r=null),r&&(r+="",r.charAt(0)===":"&&(r=r.substring(1)),u.ensureValidPort(r))),S.call(this,r,s))},w.hostname=function(r,s){if(this._parts.urn)return r===void 0?"":this;if(r!==void 0){var p={preventInvalidHostname:this._parts.preventInvalidHostname},g=u.parseHost(r,p);if(g!=="/")throw new TypeError('Hostname "'+r+'" contains characters other than [A-Z0-9.-]');r=p.hostname,this._parts.preventInvalidHostname&&u.ensureValidHostname(r,this._parts.protocol)}return P.call(this,r,s)},w.origin=function(r,s){if(this._parts.urn)return r===void 0?"":this;if(r===void 0){var p=this.protocol(),g=this.authority();return g?(p?p+"://":"")+this.authority():""}else{var I=u(r);return this.protocol(I.protocol()).authority(I.authority()).build(!s),this}},w.host=function(r,s){if(this._parts.urn)return r===void 0?"":this;if(r===void 0)return this._parts.hostname?u.buildHost(this._parts):"";var p=u.parseHost(r,this._parts);if(p!=="/")throw new TypeError('Hostname "'+r+'" contains characters other than [A-Z0-9.-]');return this.build(!s),this},w.authority=function(r,s){if(this._parts.urn)return r===void 0?"":this;if(r===void 0)return this._parts.hostname?u.buildAuthority(this._parts):"";var p=u.parseAuthority(r,this._parts);if(p!=="/")throw new TypeError('Hostname "'+r+'" contains characters other than [A-Z0-9.-]');return this.build(!s),this},w.userinfo=function(r,s){if(this._parts.urn)return r===void 0?"":this;if(r===void 0){var p=u.buildUserinfo(this._parts);return p&&p.substring(0,p.length-1)}else return r[r.length-1]!=="@"&&(r+="@"),u.parseUserinfo(r,this._parts),this.build(!s),this},w.resource=function(r,s){var p;return r===void 0?this.path()+this.search()+this.hash():(p=u.parse(r),this._parts.path=p.path,this._parts.query=p.query,this._parts.fragment=p.fragment,this.build(!s),this)},w.subdomain=function(r,s){if(this._parts.urn)return r===void 0?"":this;if(r===void 0){if(!this._parts.hostname||this.is("IP"))return"";var p=this._parts.hostname.length-this.domain().length-1;return this._parts.hostname.substring(0,p)||""}else{var g=this._parts.hostname.length-this.domain().length,I=this._parts.hostname.substring(0,g),x=new RegExp("^"+F(I));if(r&&r.charAt(r.length-1)!=="."&&(r+="."),r.indexOf(":")!==-1)throw new TypeError("Domains cannot contain colons");return r&&u.ensureValidHostname(r,this._parts.protocol),this._parts.hostname=this._parts.hostname.replace(x,r),this.build(!s),this}},w.domain=function(r,s){if(this._parts.urn)return r===void 0?"":this;if(typeof r=="boolean"&&(s=r,r=void 0),r===void 0){if(!this._parts.hostname||this.is("IP"))return"";var p=this._parts.hostname.match(/\./g);if(p&&p.length<2)return this._parts.hostname;var g=this._parts.hostname.length-this.tld(s).length-1;return g=this._parts.hostname.lastIndexOf(".",g-1)+1,this._parts.hostname.substring(g)||""}else{if(!r)throw new TypeError("cannot set domain empty");if(r.indexOf(":")!==-1)throw new TypeError("Domains cannot contain colons");if(u.ensureValidHostname(r,this._parts.protocol),!this._parts.hostname||this.is("IP"))this._parts.hostname=r;else{var I=new RegExp(F(this.domain())+"$");this._parts.hostname=this._parts.hostname.replace(I,r)}return this.build(!s),this}},w.tld=function(r,s){if(this._parts.urn)return r===void 0?"":this;if(typeof r=="boolean"&&(s=r,r=void 0),r===void 0){if(!this._parts.hostname||this.is("IP"))return"";var p=this._parts.hostname.lastIndexOf("."),g=this._parts.hostname.substring(p+1);return s!==!0&&a&&a.list[g.toLowerCase()]&&a.get(this._parts.hostname)||g}else{var I;if(r)if(r.match(/[^a-zA-Z0-9-]/))if(a&&a.is(r))I=new RegExp(F(this.tld())+"$"),this._parts.hostname=this._parts.hostname.replace(I,r);else throw new TypeError('TLD "'+r+'" contains characters other than [A-Z0-9]');else{if(!this._parts.hostname||this.is("IP"))throw new ReferenceError("cannot set TLD on non-domain host");I=new RegExp(F(this.tld())+"$"),this._parts.hostname=this._parts.hostname.replace(I,r)}else throw new TypeError("cannot set TLD empty");return this.build(!s),this}},w.directory=function(r,s){if(this._parts.urn)return r===void 0?"":this;if(r===void 0||r===!0){if(!this._parts.path&&!this._parts.hostname)return"";if(this._parts.path==="/")return"/";var p=this._parts.path.length-this.filename().length-1,g=this._parts.path.substring(0,p)||(this._parts.hostname?"/":"");return r?u.decodePath(g):g}else{var I=this._parts.path.length-this.filename().length,x=this._parts.path.substring(0,I),q=new RegExp("^"+F(x));return this.is("relative")||(r||(r="/"),r.charAt(0)!=="/"&&(r="/"+r)),r&&r.charAt(r.length-1)!=="/"&&(r+="/"),r=u.recodePath(r),this._parts.path=this._parts.path.replace(q,r),this.build(!s),this}},w.filename=function(r,s){if(this._parts.urn)return r===void 0?"":this;if(typeof r!="string"){if(!this._parts.path||this._parts.path==="/")return"";var p=this._parts.path.lastIndexOf("/"),g=this._parts.path.substring(p+1);return r?u.decodePathSegment(g):g}else{var I=!1;r.charAt(0)==="/"&&(r=r.substring(1)),r.match(/\.?\//)&&(I=!0);var x=new RegExp(F(this.filename())+"$");return r=u.recodePath(r),this._parts.path=this._parts.path.replace(x,r),I?this.normalizePath(s):this.build(!s),this}},w.suffix=function(r,s){if(this._parts.urn)return r===void 0?"":this;if(r===void 0||r===!0){if(!this._parts.path||this._parts.path==="/")return"";var p=this.filename(),g=p.lastIndexOf("."),I,x;return g===-1?"":(I=p.substring(g+1),x=/^[a-z0-9%]+$/i.test(I)?I:"",r?u.decodePathSegment(x):x)}else{r.charAt(0)==="."&&(r=r.substring(1));var q=this.suffix(),T;if(q)r?T=new RegExp(F(q)+"$"):T=new RegExp(F("."+q)+"$");else{if(!r)return this;this._parts.path+="."+u.recodePath(r)}return T&&(r=u.recodePath(r),this._parts.path=this._parts.path.replace(T,r)),this.build(!s),this}},w.segment=function(r,s,p){var g=this._parts.urn?":":"/",I=this.path(),x=I.substring(0,1)==="/",q=I.split(g);if(r!==void 0&&typeof r!="number"&&(p=s,s=r,r=void 0),r!==void 0&&typeof r!="number")throw new Error('Bad segment "'+r+'", must be 0-based integer');if(x&&q.shift(),r<0&&(r=Math.max(q.length+r,0)),s===void 0)return r===void 0?q:q[r];if(r===null||q[r]===void 0)if(M(s)){q=[];for(var T=0,D=s.length;T<D;T++)!s[T].length&&(!q.length||!q[q.length-1].length)||(q.length&&!q[q.length-1].length&&q.pop(),q.push(v(s[T])))}else(s||typeof s=="string")&&(s=v(s),q[q.length-1]===""?q[q.length-1]=s:q.push(s));else s?q[r]=v(s):q.splice(r,1);return x&&q.unshift(""),this.path(q.join(g),p)},w.segmentCoded=function(r,s,p){var g,I,x;if(typeof r!="number"&&(p=s,s=r,r=void 0),s===void 0){if(g=this.segment(r,s,p),!M(g))g=g!==void 0?u.decode(g):void 0;else for(I=0,x=g.length;I<x;I++)g[I]=u.decode(g[I]);return g}if(!M(s))s=typeof s=="string"||s instanceof String?u.encode(s):s;else for(I=0,x=s.length;I<x;I++)s[I]=u.encode(s[I]);return this.segment(r,s,p)};var y=w.query;return w.query=function(r,s){if(r===!0)return u.parseQuery(this._parts.query,this._parts.escapeQuerySpace);if(typeof r=="function"){var p=u.parseQuery(this._parts.query,this._parts.escapeQuerySpace),g=r.call(this,p);return this._parts.query=u.buildQuery(g||p,this._parts.duplicateQueryParameters,this._parts.escapeQuerySpace),this.build(!s),this}else return r!==void 0&&typeof r!="string"?(this._parts.query=u.buildQuery(r,this._parts.duplicateQueryParameters,this._parts.escapeQuerySpace),this.build(!s),this):y.call(this,r,s)},w.setQuery=function(r,s,p){var g=u.parseQuery(this._parts.query,this._parts.escapeQuerySpace);if(typeof r=="string"||r instanceof String)g[r]=s!==void 0?s:null;else if(typeof r=="object")for(var I in r)U.call(r,I)&&(g[I]=r[I]);else throw new TypeError("URI.addQuery() accepts an object, string as the name parameter");return this._parts.query=u.buildQuery(g,this._parts.duplicateQueryParameters,this._parts.escapeQuerySpace),typeof r!="string"&&(p=s),this.build(!p),this},w.addQuery=function(r,s,p){var g=u.parseQuery(this._parts.query,this._parts.escapeQuerySpace);return u.addQuery(g,r,s===void 0?null:s),this._parts.query=u.buildQuery(g,this._parts.duplicateQueryParameters,this._parts.escapeQuerySpace),typeof r!="string"&&(p=s),this.build(!p),this},w.removeQuery=function(r,s,p){var g=u.parseQuery(this._parts.query,this._parts.escapeQuerySpace);return u.removeQuery(g,r,s),this._parts.query=u.buildQuery(g,this._parts.duplicateQueryParameters,this._parts.escapeQuerySpace),typeof r!="string"&&(p=s),this.build(!p),this},w.hasQuery=function(r,s,p){var g=u.parseQuery(this._parts.query,this._parts.escapeQuerySpace);return u.hasQuery(g,r,s,p)},w.setSearch=w.setQuery,w.addSearch=w.addQuery,w.removeSearch=w.removeQuery,w.hasSearch=w.hasQuery,w.normalize=function(){return this._parts.urn?this.normalizeProtocol(!1).normalizePath(!1).normalizeQuery(!1).normalizeFragment(!1).build():this.normalizeProtocol(!1).normalizeHostname(!1).normalizePort(!1).normalizePath(!1).normalizeQuery(!1).normalizeFragment(!1).build()},w.normalizeProtocol=function(r){return typeof this._parts.protocol=="string"&&(this._parts.protocol=this._parts.protocol.toLowerCase(),this.build(!r)),this},w.normalizeHostname=function(r){return this._parts.hostname&&(this.is("IDN")&&i?this._parts.hostname=i.toASCII(this._parts.hostname):this.is("IPv6")&&n&&(this._parts.hostname=n.best(this._parts.hostname)),this._parts.hostname=this._parts.hostname.toLowerCase(),this.build(!r)),this},w.normalizePort=function(r){return typeof this._parts.protocol=="string"&&this._parts.port===u.defaultPorts[this._parts.protocol]&&(this._parts.port=null,this.build(!r)),this},w.normalizePath=function(r){var s=this._parts.path;if(!s)return this;if(this._parts.urn)return this._parts.path=u.recodeUrnPath(this._parts.path),this.build(!r),this;if(this._parts.path==="/")return this;s=u.recodePath(s);var p,g="",I,x;for(s.charAt(0)!=="/"&&(p=!0,s="/"+s),(s.slice(-3)==="/.."||s.slice(-2)==="/.")&&(s+="/"),s=s.replace(/(\/(\.\/)+)|(\/\.$)/g,"/").replace(/\/{2,}/g,"/"),p&&(g=s.substring(1).match(/^(\.\.\/)+/)||"",g&&(g=g[0]));I=s.search(/\/\.\.(\/|$)/),I!==-1;){if(I===0){s=s.substring(3);continue}x=s.substring(0,I).lastIndexOf("/"),x===-1&&(x=I),s=s.substring(0,x)+s.substring(I+3)}return p&&this.is("relative")&&(s=g+s.substring(1)),this._parts.path=s,this.build(!r),this},w.normalizePathname=w.normalizePath,w.normalizeQuery=function(r){return typeof this._parts.query=="string"&&(this._parts.query.length?this.query(u.parseQuery(this._parts.query,this._parts.escapeQuerySpace)):this._parts.query=null,this.build(!r)),this},w.normalizeFragment=function(r){return this._parts.fragment||(this._parts.fragment=null,this.build(!r)),this},w.normalizeSearch=w.normalizeQuery,w.normalizeHash=w.normalizeFragment,w.iso8859=function(){var r=u.encode,s=u.decode;u.encode=escape,u.decode=decodeURIComponent;try{this.normalize()}finally{u.encode=r,u.decode=s}return this},w.unicode=function(){var r=u.encode,s=u.decode;u.encode=m,u.decode=unescape;try{this.normalize()}finally{u.encode=r,u.decode=s}return this},w.readable=function(){var r=this.clone();r.username("").password("").normalize();var s="";if(r._parts.protocol&&(s+=r._parts.protocol+"://"),r._parts.hostname&&(r.is("punycode")&&i?(s+=i.toUnicode(r._parts.hostname),r._parts.port&&(s+=":"+r._parts.port)):s+=r.host()),r._parts.hostname&&r._parts.path&&r._parts.path.charAt(0)!=="/"&&(s+="/"),s+=r.path(!0),r._parts.query){for(var p="",g=0,I=r._parts.query.split("&"),x=I.length;g<x;g++){var q=(I[g]||"").split("=");p+="&"+u.decodeQuery(q[0],this._parts.escapeQuerySpace).replace(/&/g,"%26"),q[1]!==void 0&&(p+="="+u.decodeQuery(q[1],this._parts.escapeQuerySpace).replace(/&/g,"%26"))}s+="?"+p.substring(1)}return s+=u.decodeQuery(r.hash(),!0),s},w.absoluteTo=function(r){var s=this.clone(),p=["protocol","username","password","hostname","port"],g,I,x;if(this._parts.urn)throw new Error("URNs do not have any generally defined hierarchical components");if(r instanceof u||(r=new u(r)),s._parts.protocol||(s._parts.protocol=r._parts.protocol,this._parts.hostname))return s;for(I=0;x=p[I];I++)s._parts[x]=r._parts[x];return s._parts.path?(s._parts.path.substring(-2)===".."&&(s._parts.path+="/"),s.path().charAt(0)!=="/"&&(g=r.directory(),g=g||(r.path().indexOf("/")===0?"/":""),s._parts.path=(g?g+"/":"")+s._parts.path,s.normalizePath())):(s._parts.path=r._parts.path,s._parts.query||(s._parts.query=r._parts.query)),s.build(),s},w.relativeTo=function(r){var s=this.clone().normalize(),p,g,I,x,q;if(s._parts.urn)throw new Error("URNs do not have any generally defined hierarchical components");if(r=new u(r).normalize(),p=s._parts,g=r._parts,x=s.path(),q=r.path(),x.charAt(0)!=="/")throw new Error("URI is already relative");if(q.charAt(0)!=="/")throw new Error("Cannot calculate a URI relative to another relative URI");if(p.protocol===g.protocol&&(p.protocol=null),p.username!==g.username||p.password!==g.password||p.protocol!==null||p.username!==null||p.password!==null)return s.build();if(p.hostname===g.hostname&&p.port===g.port)p.hostname=null,p.port=null;else return s.build();if(x===q)return p.path="",s.build();if(I=u.commonPath(x,q),!I)return s.build();var T=g.path.substring(I.length).replace(/[^\/]*$/,"").replace(/.*?\//g,"../");return p.path=T+p.path.substring(I.length)||"./",s.build()},w.equals=function(r){var s=this.clone(),p=new u(r),g={},I={},x={},q,T,D;if(s.normalize(),p.normalize(),s.toString()===p.toString())return!0;if(q=s.query(),T=p.query(),s.query(""),p.query(""),s.toString()!==p.toString()||q.length!==T.length)return!1;g=u.parseQuery(q,this._parts.escapeQuerySpace),I=u.parseQuery(T,this._parts.escapeQuerySpace);for(D in g)if(U.call(g,D)){if(M(g[D])){if(!b(g[D],I[D]))return!1}else if(g[D]!==I[D])return!1;x[D]=!0}for(D in I)if(U.call(I,D)&&!x[D])return!1;return!0},w.preventInvalidHostname=function(r){return this._parts.preventInvalidHostname=!!r,this},w.duplicateQueryParameters=function(r){return this._parts.duplicateQueryParameters=!!r,this},w.escapeQuerySpace=function(r){return this._parts.escapeQuerySpace=!!r,this},u})})(ma)),ma.exports}var Op;function Gc(){return Op||(Op=1,(function(e){var i=Os&&Os.__importDefault||function(L){return L&&L.__esModule?L:{default:L}};Object.defineProperty(e,"__esModule",{value:!0}),e.uriSchemaAttributesProducer=e.uriInferenceAttributesProducer=e.uriTypeAttributeKind=void 0;const n=i(_g()),a=At(),l=et(),d=Qe(),u="qt-uri-protocols",c="qt-uri-extensions";class w extends a.TypeAttributeKind{constructor(){super("uriAttributes")}get inIdentity(){return!0}combine(_){const b=_.map(h=>h[0]),v=_.map(h=>h[1]);return[(0,l.setUnionManyInto)(new Set,b),(0,l.setUnionManyInto)(new Set,v)]}makeInferred(_){}addToSchema(_,b,v){if(b.kind!=="string"&&b.kind!=="uri")return;const[h,m]=v;h.size>0&&(_[u]=Array.from(h).sort()),m.size>0&&(_[c]=Array.from(m).sort())}}e.uriTypeAttributeKind=new w;const U=/^.+(\.[^./\\]+)$/;function F(L){const _=L.match(U);if(_!==null)return _[1]}function O(L){try{const _=(0,n.default)(L),b=F(_.path()),v=b===void 0?[]:[b.toLowerCase()];return e.uriTypeAttributeKind.makeAttributes([new Set([_.protocol().toLowerCase()]),new Set(v)])}catch{return a.emptyTypeAttributes}}e.uriInferenceAttributesProducer=O;function M(L,_,b){if(typeof L!="object"||!b.has("string"))return;let v;const h=L[u];h!==void 0?v=new Set((0,d.checkArray)(h,d.checkString)):v=new Set;let m;const k=L[c];if(k!==void 0?m=new Set((0,d.checkArray)(k,d.checkString)):m=new Set,!(v.size===0&&m.size===0))return{forString:e.uriTypeAttributeKind.makeAttributes([v,m])}}e.uriSchemaAttributesProducer=M})(Os)),Os}var Cp;function mt(){return Cp||(Cp=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.UnionType=e.IntersectionType=e.SetOperationType=e.intersectionTypeIdentity=e.unionTypeIdentity=e.setOperationTypeIdentity=e.setOperationCasesEqual=e.EnumType=e.enumTypeIdentity=e.MapType=e.ClassType=e.ObjectType=e.mapTypeIdentify=e.classTypeIdentity=e.ClassProperty=e.GenericClassProperty=e.ArrayType=e.arrayTypeIdentity=e.PrimitiveType=e.primitiveTypeIdentity=e.Type=e.TypeIdentity=e.isPrimitiveTypeKind=e.isNumberTypeKind=e.targetTypeKindForTransformedStringTypeKind=e.isPrimitiveStringTypeKind=e.transformedStringTypeKinds=e.transformedStringTypeTargetTypeKindsMap=void 0;const i=et(),n=Qe(),a=Ki(),l=yn(),d=ni(),u=Gc(),c={date:{jsonSchema:"date",primitive:void 0},time:{jsonSchema:"time",primitive:void 0},"date-time":{jsonSchema:"date-time",primitive:void 0},uuid:{jsonSchema:"uuid",primitive:void 0},uri:{jsonSchema:"uri",primitive:void 0,attributesProducer:u.uriInferenceAttributesProducer},"integer-string":{jsonSchema:"integer",primitive:"integer"},"bool-string":{jsonSchema:"boolean",primitive:"bool"}};e.transformedStringTypeTargetTypeKindsMap=(0,i.mapFromObject)(c),e.transformedStringTypeKinds=new Set(Object.getOwnPropertyNames(c));function w(W){return W==="string"||(0,i.hasOwnProperty)(c,W)}e.isPrimitiveStringTypeKind=w;function U(W){const J=e.transformedStringTypeTargetTypeKindsMap.get(W);if(J!==void 0)return J.primitive}e.targetTypeKindForTransformedStringTypeKind=U;function F(W){return W==="integer"||W==="double"}e.isNumberTypeKind=F;function O(W){return w(W)||F(W)?!0:W==="none"||W==="any"||W==="null"||W==="bool"}e.isPrimitiveTypeKind=O;function M(W,J){return W.index===J.index||W.kind==="none"||J.kind==="none"}class L{constructor(J,X){this._kind=J,this._components=X;let Q=i.hashCodeInit;Q=(0,i.addHashCode)(Q,(0,i.hashCodeOf)(this._kind));for(const re of X)Q=(0,i.addHashCode)(Q,(0,i.hashCodeOf)(re));this._hashCode=Q}equals(J){if(!(J instanceof L)||this._kind!==J._kind)return!1;const X=this._components.length;(0,n.assert)(X===J._components.length,"Components of a type kind's identity must have the same length");for(let Q=0;Q<X;Q++)if(!(0,i.areEqual)(this._components[Q],J._components[Q]))return!1;return!0}hashCode(){return this._hashCode}}e.TypeIdentity=L;class _{constructor(J,X){this.typeRef=J,this.graph=X}get index(){return(0,d.typeRefIndex)(this.typeRef)}getChildren(){let J=this.getNonAttributeChildren();for(const[X,Q]of this.getAttributes())X.children!==void 0&&(0,i.setUnionInto)(J,X.children(Q));return J}getAttributes(){return(0,d.attributesForTypeRef)(this.typeRef,this.graph)}get hasNames(){return a.namesTypeAttributeKind.tryGetInAttributes(this.getAttributes())!==void 0}getNames(){return(0,n.defined)(a.namesTypeAttributeKind.tryGetInAttributes(this.getAttributes()))}getCombinedName(){return this.getNames().combinedName}get debugPrintKind(){return this.kind}equals(J){return J instanceof _?this.typeRef===J.typeRef:!1}hashCode(){return(0,i.hashCodeOf)(this.typeRef)}structurallyCompatible(J,X=!1){function Q(ge,Ae){return ge===Ae?!0:X?ge==="integer"?Ae==="double":ge==="double"?Ae==="integer":!1:!1}if(M(this,J))return!0;if(!Q(this.kind,J.kind))return!1;const re=[[this,J]],se=[];let ne;const me=(ge,Ae)=>M(ge,Ae)?!0:Q(ge.kind,Ae.kind)?(re.push([ge,Ae]),!0):(ne=!0,!1);for(;re.length>0;){let[ge,Ae]=(0,n.defined)(re.pop());if(ge.index>Ae.index&&([ge,Ae]=[Ae,ge]),!ge.isPrimitive()){let pe=ge.index,le=Ae.index,ye=!1;for(const[de,Y]of se)if(de===pe&&Y===le){ye=!0;break}if(ye)continue;se.push([pe,le])}if(ne=!1,!ge.structuralEqualityStep(Ae,X,me)||ne)return!1}return!0}getParentTypes(){return this.graph.getParentsOfType(this)}getAncestorsNotInSet(J){const X=[this],Q=new Set,re=new Set;for(;;){const se=X.pop();if(se===void 0)break;const ne=se.getParentTypes();console.log(`${ne.size} parents`);for(const me of ne)Q.has(me)||(Q.add(me),J.has(me.typeRef)?(console.log(`adding ${me.kind}`),X.push(me)):(console.log(`found ${me.kind}`),re.add(me)))}return re}}e.Type=_;function b(W){return(0,i.mapSome)(W,(J,X)=>X.requiresUniqueIdentity(J))}function v(W){return(0,i.mapFilter)(W,(J,X)=>X.inIdentity)}function h(W,J){if(!b(J))return new L(W,[v(J)])}e.primitiveTypeIdentity=h;class m extends _{constructor(J,X,Q){super(J,X),this.kind=Q}get isNullable(){return this.kind==="null"||this.kind==="any"||this.kind==="none"}isPrimitive(){return!0}getNonAttributeChildren(){return new Set}get identity(){return h(this.kind,this.getAttributes())}reconstitute(J){J.getPrimitiveType(this.kind)}structuralEqualityStep(J,X,Q){return!0}}e.PrimitiveType=m;function k(W,J){if(!b(W))return new L("array",[v(W),J])}e.arrayTypeIdentity=k;class B extends _{constructor(J,X,Q){super(J,X),this._itemsRef=Q,this.kind="array"}setItems(J){if(this._itemsRef!==void 0)return(0,n.panic)("Can only set array items once");this._itemsRef=J}getItemsRef(){return this._itemsRef===void 0?(0,n.panic)("Array items accessed before they were set"):this._itemsRef}get items(){return(0,d.derefTypeRef)(this.getItemsRef(),this.graph)}getNonAttributeChildren(){return new Set([this.items])}get isNullable(){return!1}isPrimitive(){return!1}get identity(){return k(this.getAttributes(),this.getItemsRef())}reconstitute(J){const X=this.getItemsRef(),Q=J.lookup(X);Q===void 0?(J.getUniqueArrayType(),J.setArrayItems(J.reconstitute(this.getItemsRef()))):J.getArrayType(Q)}structuralEqualityStep(J,X,Q){return Q(this.items,J.items)}}e.ArrayType=B;class C{constructor(J,X){this.typeData=J,this.isOptional=X}equals(J){return J instanceof C?(0,i.areEqual)(this.typeData,J.typeData)&&this.isOptional===J.isOptional:!1}hashCode(){return(0,i.hashCodeOf)(this.typeData)+(this.isOptional?17:23)}}e.GenericClassProperty=C;class R extends C{constructor(J,X,Q){super(J,Q),this.graph=X}get typeRef(){return this.typeData}get type(){return(0,d.derefTypeRef)(this.typeRef,this.graph)}}e.ClassProperty=R;function A(W,J,X,Q){if(!b(J))return new L(W,[v(J),X,Q])}function f(W,J){return A("class",W,J,void 0)}e.classTypeIdentity=f;function E(W,J){return A("map",W,new Map,J)}e.mapTypeIdentify=E;class S extends _{constructor(J,X,Q,re,se,ne){super(J,X),this.kind=Q,this.isFixed=re,this._properties=se,this._additionalPropertiesRef=ne,Q==="map"?(se!==void 0&&(0,n.assert)(se.size===0),(0,n.assert)(!re)):Q==="class"?(0,n.assert)(ne===void 0):(0,n.assert)(re)}setProperties(J,X){(0,n.assert)(this._properties===void 0,"Tried to set object properties twice"),this instanceof y&&(0,n.assert)(J.size===0,"Cannot set properties on map type"),this instanceof P&&(0,n.assert)(X===void 0,"Cannot set additional properties of class type"),this._properties=J,this._additionalPropertiesRef=X}getProperties(){return(0,n.defined)(this._properties)}getSortedProperties(){return(0,i.mapSortByKey)(this.getProperties())}getAdditionalPropertiesRef(){return(0,n.assert)(this._properties!==void 0,"Properties are not set yet"),this._additionalPropertiesRef}getAdditionalProperties(){const J=this.getAdditionalPropertiesRef();if(J!==void 0)return(0,d.derefTypeRef)(J,this.graph)}getNonAttributeChildren(){const J=(0,i.mapSortToArray)(this.getProperties(),(Q,re)=>re).map(([Q,re])=>re.type),X=this.getAdditionalProperties();return X!==void 0&&J.push(X),new Set(J)}get isNullable(){return!1}isPrimitive(){return!1}get identity(){if(!this.isFixed)return A(this.kind,this.getAttributes(),this.getProperties(),this.getAdditionalPropertiesRef())}reconstitute(J,X){const Q=this.getSortedProperties(),re=X?Q:this.getProperties(),se=J.lookupMap((0,i.mapMap)(Q,me=>me.typeRef)),ne=(0,i.definedMap)(this._additionalPropertiesRef,me=>J.lookup(me));if(se!==void 0&&(ne!==void 0||this._additionalPropertiesRef===void 0)){const me=(0,i.mapMap)(re,(ge,Ae)=>J.makeClassProperty((0,n.defined)(se.get(Ae)),ge.isOptional));switch(this.kind){case"object":(0,n.assert)(this.isFixed),J.getObjectType(me,ne);break;case"map":J.getMapType((0,n.defined)(ne));break;case"class":this.isFixed?J.getUniqueClassType(!0,me):J.getClassType(me);break;default:return(0,n.panic)(`Invalid object type kind ${this.kind}`)}}else{switch(this.kind){case"object":(0,n.assert)(this.isFixed),J.getUniqueObjectType(void 0,void 0);break;case"map":J.getUniqueMapType();break;case"class":J.getUniqueClassType(this.isFixed,void 0);break;default:return(0,n.panic)(`Invalid object type kind ${this.kind}`)}const me=(0,i.mapMap)(Q,pe=>J.reconstitute(pe.typeRef)),ge=(0,i.mapMap)(re,(pe,le)=>J.makeClassProperty((0,n.defined)(me.get(le)),pe.isOptional)),Ae=(0,i.definedMap)(this._additionalPropertiesRef,pe=>J.reconstitute(pe));J.setObjectProperties(ge,Ae)}}structuralEqualityStep(J,X,Q){const re=this.getProperties(),se=J.getProperties();if(re.size!==se.size)return!1;let ne=!1;for(const[Ae,pe]of re){const le=se.get(Ae);if(le===void 0||pe.isOptional!==le.isOptional||!Q(pe.type,le.type))return ne=!0,!1}if(ne)return!1;const me=this.getAdditionalProperties(),ge=J.getAdditionalProperties();return me===void 0!=(ge===void 0)?!1:me===void 0||ge===void 0?!0:Q(me,ge)}}e.ObjectType=S;class P extends S{constructor(J,X,Q,re){super(J,X,"class",Q,re,void 0)}}e.ClassType=P;class y extends S{constructor(J,X,Q){super(J,X,"map",!1,(0,i.definedMap)(Q,()=>new Map),Q)}get values(){return(0,n.defined)(this.getAdditionalProperties())}}e.MapType=y;function r(W,J){if(!b(W))return new L("enum",[v(W),J])}e.enumTypeIdentity=r;class s extends _{constructor(J,X,Q){super(J,X),this.cases=Q,this.kind="enum"}get isNullable(){return!1}isPrimitive(){return!1}get identity(){return r(this.getAttributes(),this.cases)}getNonAttributeChildren(){return new Set}reconstitute(J){J.getEnumType(this.cases)}structuralEqualityStep(J,X,Q){return(0,i.areEqual)(this.cases,J.cases)}}e.EnumType=s;function p(W,J,X,Q){const re=(0,i.toReadonlySet)(W),se=(0,i.toReadonlySet)(J);return re.size!==se.size?!1:(0,i.iterableEvery)(re,ne=>{const me=(0,i.iterableFind)(se,ge=>ge.kind===ne.kind);return!!(me!==void 0&&Q(ne,me)||X&&(ne.kind==="integer"&&(0,i.iterableSome)(se,ge=>ge.kind==="double")||ne.kind==="double"&&(0,i.iterableSome)(se,ge=>ge.kind==="integer")))})}e.setOperationCasesEqual=p;function g(W,J,X){if(!b(J))return new L(W,[v(J),X])}e.setOperationTypeIdentity=g;function I(W,J){return g("union",W,J)}e.unionTypeIdentity=I;function x(W,J){return g("intersection",W,J)}e.intersectionTypeIdentity=x;class q extends _{constructor(J,X,Q,re){super(J,X),this.kind=Q,this._memberRefs=re}setMembers(J){if(this._memberRefs!==void 0)return(0,n.panic)("Can only set map members once");this._memberRefs=J}getMemberRefs(){return this._memberRefs===void 0?(0,n.panic)("Map members accessed before they were set"):this._memberRefs}get members(){return(0,i.setMap)(this.getMemberRefs(),J=>(0,d.derefTypeRef)(J,this.graph))}get sortedMembers(){return this.getNonAttributeChildren()}getNonAttributeChildren(){return(0,i.setSortBy)(this.members,J=>J.kind)}isPrimitive(){return!1}get identity(){return g(this.kind,this.getAttributes(),this.getMemberRefs())}reconstituteSetOperation(J,X,Q){const re=(0,i.mapMap)(this.sortedMembers.entries(),me=>me.typeRef),se=X?this.sortedMembers:this.members,ne=J.lookupMap(re);if(ne===void 0){Q(void 0);const me=J.reconstituteMap(re);J.setSetOperationMembers((0,i.setMap)(se,ge=>(0,n.defined)(me.get(ge))))}else Q((0,i.setMap)(se,me=>(0,n.defined)(ne.get(me))))}structuralEqualityStep(J,X,Q){return p(this.members,J.members,X,Q)}}e.SetOperationType=q;class T extends q{constructor(J,X,Q){super(J,X,"intersection",Q)}get isNullable(){return(0,n.panic)("isNullable not implemented for IntersectionType")}reconstitute(J,X){this.reconstituteSetOperation(J,X,Q=>{Q===void 0?J.getUniqueIntersectionType():J.getIntersectionType(Q)})}}e.IntersectionType=T;class D extends q{constructor(J,X,Q){super(J,X,"union",Q),Q!==void 0&&(0,l.messageAssert)(Q.size>0,"IRNoEmptyUnions",{})}setMembers(J){(0,l.messageAssert)(J.size>0,"IRNoEmptyUnions",{}),super.setMembers(J)}get stringTypeMembers(){return(0,i.setFilter)(this.members,J=>w(J.kind)||J.kind==="enum")}findMember(J){return(0,i.iterableFind)(this.members,X=>X.kind===J)}get isNullable(){return this.findMember("null")!==void 0}get isCanonical(){const J=this.members;if(J.size<=1)return!1;const X=(0,i.setMap)(J,re=>re.kind);if(X.size<J.size||X.has("union")||X.has("intersection")||X.has("none")||X.has("any")||X.has("string")&&X.has("enum"))return!1;let Q=0;return X.has("class")&&(Q+=1),X.has("map")&&(Q+=1),X.has("object")&&(Q+=1),!(Q>1)}reconstitute(J,X){this.reconstituteSetOperation(J,X,Q=>{Q===void 0?J.getUniqueUnionType():J.getUnionType(Q)})}}e.UnionType=D})(tl)),tl}var xt={},Rt={},Ep;function Ft(){if(Ep)return Rt;Ep=1,Object.defineProperty(Rt,"__esModule",{value:!0}),Rt.assignNames=Rt.keywordNamespace=Rt.DependencyName=Rt.AssociatedName=Rt.SimpleName=Rt.FixedName=Rt.Name=Rt.funPrefixNamer=Rt.Namer=Rt.Namespace=void 0;const e=et(),i=Qe();class n{constructor(v,h,m,k){this._children=new Set,this._members=new Set,this.forbiddenNamespaces=new Set(m),this.additionalForbidden=new Set(k),h!==void 0&&h.addChild(this)}addChild(v){this._children.add(v)}get children(){return this._children}get members(){return this._members}get forbiddenNameds(){return(0,e.setUnion)(this.additionalForbidden,...Array.from(this.forbiddenNamespaces).map(v=>v.members))}add(v){return this._members.add(v),v}}Rt.Namespace=n;class a{constructor(v,h,m){this.name=v,this.nameStyle=h,this._prefixes=new Set(m)}assignNames(v,h,m){const k=new Set(h),B=Array.from(m);(0,i.assert)(B.length>0,"Number of names can't be less than 1");const C=new Map;let R=[];for(const E of B){const S=E.proposeUnstyledNames(v),P=E.namingFunction,y=(0,e.iterableFind)(S,r=>!k.has(P.nameStyle(r))&&B.every(s=>s===E||!s.proposeUnstyledNames(v).has(r)));if(y!==void 0){const r=P.nameStyle(y),s=E.nameAssignments(k,r);if(s!==null){(0,e.mapMergeInto)(C,s),(0,e.setUnionInto)(k,s.values());continue}}R.push(E)}let A=this._prefixes.values(),f=1;for(const E of R){const S=(0,i.defined)((0,e.iterableFirst)(E.proposeUnstyledNames(v)));for(;;){let P;const{done:y,value:r}=A.next();y?(P=`${S}_${f.toString()}`,f++):P=`${r}_${S}`;const s=E.namingFunction.nameStyle(P),p=E.nameAssignments(k,s);if(p!==null){(0,e.mapMergeInto)(C,p),(0,e.setUnionInto)(k,p.values());break}}}return C}}Rt.Namer=a;const l=["Purple","Fluffy","Tentacled","Sticky","Indigo","Indecent","Hilarious","Ambitious","Cunning","Magenta","Frisky","Mischievous","Braggadocious"];function d(b,v){return new a(b,v,l)}Rt.funPrefixNamer=d;class u{constructor(v,h){this._namingFunction=v,this.order=h,this._associates=new Set}addAssociate(v){this._associates.add(v)}isFixed(){return this instanceof c}get namingFunction(){return(0,i.defined)(this._namingFunction)}firstProposedName(v){return(0,i.defined)((0,e.iterableFirst)(this.proposeUnstyledNames(v)))}nameAssignments(v,h){if(v.has(h))return null;const m=new Map([[this,h]]);for(const k of this._associates){const B=k.getName(h);if(v.has(B))return null;m.set(k,B)}return m}}Rt.Name=u;class c extends u{constructor(v){super(void 0,0),this._fixedName=v}get dependencies(){return[]}addAssociate(v){return(0,i.panic)("Cannot add associates to fixed names")}get fixedName(){return this._fixedName}proposeUnstyledNames(v){return(0,i.panic)("Only fixedName should be called on FixedName.")}}Rt.FixedName=c;class w extends u{constructor(v,h,m){super(h,m),this._unstyledNames=new Set(v)}get dependencies(){return[]}proposeUnstyledNames(v){return this._unstyledNames}}Rt.SimpleName=w;class U extends u{constructor(v,h,m){super(void 0,h),this._sponsor=v,this.getName=m}get dependencies(){return[this._sponsor]}proposeUnstyledNames(v){return(0,i.panic)("AssociatedName must be assigned via its sponsor")}}Rt.AssociatedName=U;class F extends u{constructor(v,h,m){super(v,h),this._proposeUnstyledName=m;const k=[];m(B=>(k.push(B),"0xDEADBEEF")),this._dependencies=new Set(k)}get dependencies(){return Array.from(this._dependencies)}proposeUnstyledNames(v){return new Set([this._proposeUnstyledName(h=>((0,i.assert)(this._dependencies.has(h),"DependencyName proposer is not pure"),(0,i.defined)(v.get(h))))])}}Rt.DependencyName=F;function O(b,v){const h=new n(b,void 0,[],[]);for(const m of v)h.add(new c(m));return h}Rt.keywordNamespace=O;function M(b){return(0,e.setUnion)(b,...Array.from((0,e.setMap)(b,v=>M(v.children))))}class L{constructor(v){this._names=new Map,this._namedsForName=new Map,this.isReadyToBeNamed=h=>this._names.has(h)?!1:h.dependencies.every(m=>this._names.has(m)),this.isConflicting=(h,m)=>{const k=this._namedsForName.get(m);if(k===void 0)return!1;for(const B of k)if(h.members.has(B)||h.forbiddenNameds.has(B))return!0;return!1},this.assign=(h,m,k)=>{(0,i.assert)(!this.names.has(h),`Name "${k}" assigned twice`),(0,i.assert)(!this.isConflicting(m,k),`Assigned name "${k}" conflicts`),this._names.set(h,k);let B=this._namedsForName.get(k);B===void 0&&(B=new Set,this._namedsForName.set(k,B)),B.add(h)},this.namespaces=M(v)}get names(){return this._names}areForbiddensFullyNamed(v){return(0,e.iterableEvery)(v.forbiddenNameds,h=>this._names.has(h))}}function _(b){const v=new L(b);for(const h of v.namespaces)for(const m of h.members)m.isFixed()&&v.assign(m,h,m.fixedName);for(;;){const h=(0,e.setFilter)(v.namespaces,C=>v.areForbiddensFullyNamed(C)),m=(0,e.iterableFind)(h,C=>(0,e.iterableSome)(C.members,v.isReadyToBeNamed));if(m===void 0)return v.names;const k=(0,e.setUnion)(m.members,m.forbiddenNameds);let B=(0,e.setFilterMap)(k,C=>v.names.get(C));for(;;){const C=(0,e.setFilter)(m.members,v.isReadyToBeNamed),R=(0,e.iterableMinBy)(C,S=>S.order);if(R===void 0)break;const A=R.order,f=(0,e.setFilter)(C,S=>S.order===A),E=(0,e.setGroupBy)(f,S=>S.namingFunction);for(const[S,P]of E){const y=(0,e.setGroupBy)(P,r=>r.namingFunction.nameStyle(r.firstProposedName(v.names)));for(const[,r]of y){const s=S.assignNames(v.names,B,r);for(const[p,g]of s)v.assign(p,m,g);(0,e.setUnionInto)(B,s.values())}}}}}return Rt.assignNames=_,Rt}var Ap;function Dt(){if(Ap)return xt;Ap=1,Object.defineProperty(xt,"__esModule",{value:!0}),xt.parenIfNeeded=xt.multiWord=xt.singleWord=xt.serializeRenderResult=xt.modifySource=xt.maybeAnnotated=xt.annotated=xt.sourcelikeToSource=xt.newline=void 0;const e=et(),i=Ft(),n=Qe(),a=Nt();function l(){return{kind:"newline",indentationChange:0}}xt.newline=l;function d(_){if(_ instanceof Array)return{kind:"sequence",sequence:_.map(d)};if(typeof _=="string"){const b=_.split(`
177
142
  `);return b.length===1?{kind:"text",text:_}:{kind:"sequence",sequence:(0,e.arrayIntercalate)(l(),b.map(v=>({kind:"text",text:v})))}}return _ instanceof i.Name?{kind:"name",named:_}:_}xt.sourcelikeToSource=d;function u(_,b){return{kind:"annotated",annotation:_,source:d(b)}}xt.annotated=u;function c(_,b,v){return _?u(b,v):v}xt.maybeAnnotated=c;function w(_,b){return{kind:"modified",modifier:_,source:d(b)}}xt.modifySource=w;function U(_,b){switch(_.kind){case"text":return _.text.length;case"newline":return(0,n.panic)("Newline must not occur within a line.");case"sequence":return _.sequence.map(v=>U(v,b)).reduce((v,h)=>v+h,0);case"table":return(0,n.panic)("Table must not occur within a line.");case"annotated":return U(_.source,b);case"name":return(0,n.defined)(b.get(_.named)).length;case"modified":return F(_,b,"").lines.join(`
178
143
  `).length;default:return(0,n.assertNever)(_)}}function F(_,b,v){let h=0,m=0;const k=[];let B=[];const C=[];function R(){m!==0&&(B.push((0,a.repeatString)(v,m)),m=0)}function A(){const P=B.join("");return B=[P],P}function f(){return{line:k.length,column:A().length}}function E(){k.push(A()),B=[]}function S(P){switch(P.kind){case"text":R(),B.push(P.text);break;case"newline":E(),h+=P.indentationChange,m=h;break;case"sequence":for(const T of P.sequence)S(T);break;case"table":const y=P.table,r=y.length;if(r===0)break;const s=y.map(T=>T.map(D=>U(D,b))),p=(0,n.defined)((0,e.iterableMax)(y.map(T=>T.length)));if(p===0)break;const g=[];for(let T=0;T<p;T++)g.push((0,n.defined)((0,e.iterableMax)(s.map(D=>(0,e.withDefault)(D[T],0)))));for(let T=0;T<r;T++){R();const D=(0,n.defined)(y[T]),W=(0,n.defined)(s[T]);for(let J=0;J<p;J++){const X=g[J],Q=(0,e.withDefault)(D[J],{kind:"text",text:""}),re=(0,e.withDefault)(W[J],0);S(Q),J<p-1&&re<X&&B.push((0,a.repeatString)(" ",X-re))}T<r-1&&(E(),m=h)}break;case"annotated":const I=f();S(P.source);const x=f();C.push({annotation:P.annotation,span:{start:I,end:x}});break;case"name":(0,n.assert)(b.has(P.named),"No name for Named"),R(),B.push((0,n.defined)(b.get(P.named)));break;case"modified":R();const q=F(P.source,b,v).lines;(0,n.assert)(q.length===1,"Cannot modify more than one line."),B.push(P.modifier(q[0]));break;default:return(0,n.assertNever)(P)}}return S(_),E(),{lines:k,annotations:C}}xt.serializeRenderResult=F;function O(..._){return{source:_,needsParens:!1}}xt.singleWord=O;function M(_,...b){if((0,n.assert)(b.length>0,"Zero words is not multiple"),b.length===1)return O(b[0]);const v=[];for(let h=0;h<b.length;h++)h>0&&v.push(_),v.push(b[h]);return{source:v,needsParens:!0}}xt.multiWord=M;function L({source:_,needsParens:b}){return b?["(",_,")"]:_}return xt.parenIfNeeded=L,xt}var kl={},Cs={},Qn={},Fp;function On(){if(Fp)return Qn;Fp=1,Object.defineProperty(Qn,"__esModule",{value:!0}),Qn.nullTypeIssueAnnotation=Qn.anyTypeIssueAnnotation=Qn.IssueAnnotationData=Qn.AnnotationData=void 0;class e{}Qn.AnnotationData=e;class i extends e{constructor(a){super(),this.message=a}}return Qn.IssueAnnotationData=i,Qn.anyTypeIssueAnnotation=new i("quicktype cannot infer this type because there is no data about it in the input."),Qn.nullTypeIssueAnnotation=new i("The only value for this in the input is null, which means you probably need a more complete input sample."),Qn}var Pp;function H_(){if(Pp)return Cs;Pp=1,Object.defineProperty(Cs,"__esModule",{value:!0}),Cs.Renderer=void 0;const e=et(),i=Ft(),n=Dt(),a=On(),l=Qe();function d(U){return Array.isArray(U)?{position:U[0],count:U[1]}:{position:U,count:1}}function u(U){const F=U.length;let O=0;for(let M=0;M<F;M++){const L=U.charAt(M);if(L===" ")O+=1;else if(L===" ")O=(O/4+1)*4;else return{indent:O,text:U.substring(M)}}return{indent:0,text:null}}class c{constructor(){this._currentEmitTarget=this._emitted=[],this._numBlankLinesNeeded=0,this._preventBlankLine=!0}get isEmpty(){return this._emitted.length===0}get isNested(){return this._emitted!==this._currentEmitTarget}get source(){return this._emitted}pushItem(F){this._currentEmitTarget.push(F),this._preventBlankLine=!1}emitNewline(){const F=(0,n.newline)();this.pushItem(F),this._lastNewline=F}emitItem(F){if(!this.isEmpty)for(let O=0;O<this._numBlankLinesNeeded;O++)this.emitNewline();this._numBlankLinesNeeded=0,this.pushItem(F)}containsItem(F){return this._currentEmitTarget.find(M=>F===M)!==void 0}ensureBlankLine(F){this._preventBlankLine||(this._numBlankLinesNeeded=Math.max(this._numBlankLinesNeeded,F))}preventBlankLine(){this._numBlankLinesNeeded=0,this._preventBlankLine=!0}changeIndent(F){if(this._lastNewline===void 0)return(0,l.panic)("Cannot change indent for the first line");this._lastNewline.indentationChange+=F}}let w=class{constructor(F,O){this.targetLanguage=F,this.emitTable=M=>{if(M.length===0)return;const L=M.map(_=>_.map(b=>(0,n.sourcelikeToSource)(b)));this._emitContext.emitItem({kind:"table",table:L}),this._emitContext.emitNewline()},this.typeGraph=O.typeGraph,this.leadingComments=O.leadingComments,this._finishedFiles=new Map,this._finishedEmitContexts=new Map,this._emitContext=new c}ensureBlankLine(F=1){this._emitContext.ensureBlankLine(F)}preventBlankLine(){this._emitContext.preventBlankLine()}emitItem(F){this._emitContext.emitItem(F)}emitItemOnce(F){return this._emitContext.containsItem(F)?!1:(this.emitItem(F),!0)}emitLineOnce(...F){let O=!0;F.length===1?O=this.emitItemOnce(F[0]):F.length>1&&(O=this.emitItemOnce(F)),O&&this._emitContext.emitNewline()}emitLine(...F){F.length===1?this._emitContext.emitItem(F[0]):F.length>1&&this._emitContext.emitItem(F),this._emitContext.emitNewline()}emitMultiline(F){const O=F.split(`
179
144
  `),M=O.length;if(M===0)return;this.emitLine(O[0]);let L=0;for(let _=1;_<M;_++){const b=O[_],{indent:v,text:h}=u(b);if((0,l.assert)(v%4===0,"Indentation is not a multiple of 4."),h!==null){const m=v/4;this.changeIndent(m-L),L=m,this.emitLine(h)}else this._emitContext.emitNewline()}L!==0&&this.changeIndent(-L)}gatherSource(F){const O=this._emitContext;this._emitContext=new c,F(),(0,l.assert)(!this._emitContext.isNested,"emit context not restored correctly");const M=this._emitContext.source;return this._emitContext=O,M}emitGatheredSource(F){for(const O of F)this._emitContext.emitItem(O)}emitAnnotated(F,O){const M=this.gatherSource(O),L=(0,n.sourcelikeToSource)(M);this._emitContext.emitItem((0,n.annotated)(F,L))}emitIssue(F,O){this.emitAnnotated(new a.IssueAnnotationData(F),O)}changeIndent(F){this._emitContext.changeIndent(F)}iterableForEach(F,O){const M=Array.from(F);let L=!0;for(const[_,b]of(0,e.iterableEnumerate)(M)){const v=M.length===1?"only":L?"first":_===M.length-1?"last":"middle";O(b,v),L=!1}}forEach(F,O,M,L){let _=!1;return this.iterableForEach(F,([b,v],h)=>{h==="only"||h==="first"?this.ensureBlankLine(M):this.ensureBlankLine(O),L(v,b,h),_=!0}),_}forEachWithBlankLines(F,O,M){const{position:L,count:_}=d(O),b=["interposing","leading-and-interposing"].indexOf(L)>=0,v=["leading","leading-and-interposing"].indexOf(L)>=0;return this.forEach(F,b?_:0,v?_:0,M)}indent(F){this.changeIndent(1),F(),this.changeIndent(-1)}assignNames(){return(0,i.assignNames)(this.setUpNaming())}initializeEmitContextForFilename(F){if(this._finishedEmitContexts.has(F.toLowerCase())){const O=this._finishedEmitContexts.get(F.toLowerCase());O!==void 0&&(this._emitContext=O)}}finishFile(F){this._finishedFiles.has(F)&&console.log(`[WARNING] Tried to emit file ${F} more than once. If performing multi-file output this warning can be safely ignored.`);const O=(0,n.sourcelikeToSource)(this._emitContext.source);this._finishedFiles.set(F,O),this._finishedEmitContexts.set(F.toLowerCase(),this._emitContext),this._emitContext=new c}render(F){return this._names=this.assignNames(),this.emitSource(F),this._emitContext.isEmpty||this.finishFile(F),{sources:this._finishedFiles,names:this._names}}get names(){return this._names===void 0?(0,l.panic)("Names accessed before they were assigned"):this._names}};return Cs.Renderer=w,Cs}var vi={},Ip;function K_(){if(Ip)return vi;Ip=1,Object.defineProperty(vi,"__esModule",{value:!0}),vi.declarationsForGraph=vi.cycleBreakerTypesForGraph=vi.DeclarationIR=void 0;const e=et(),i=Qe(),n=Lg(),a=yn();let l=class{constructor(U,F){this.forwardedTypes=F,this.declarations=Array.from(U)}};vi.DeclarationIR=l;function d(w,U,F){const O=U.indexOf(w);if(O<0)return;if(F===void 0)return U[O];const L=U.slice(0,O+1).reverse().find(F);return L===void 0?(0,i.panic)("Found a cycle that cannot be broken"):L}function u(w,U,F){const O=new Set,M=new Set,L=Array.from(w.topLevels.values());function _(b,v){if(!O.has(b)){if(U(b))for(const h of b.getChildren())L.push(h);else{const h=d(b,v,F);if(h!==void 0){M.add(h);return}for(const m of b.getChildren())v.unshift(b),_(m,v),v.shift()}O.add(b)}}for(;;){const b=L.pop();if(b===void 0)break;const v=[];_(b,v),(0,i.assert)(v.length===0)}return M}vi.cycleBreakerTypesForGraph=u;function c(w,U,F,O){const M=U===void 0,L=[],_=new Set,b=new Set;function v(m,k){const B=m.stronglyConnectedComponents();function C(f){if(b.has(f))return;b.add(f);const E=(0,e.setFilter)(f,O);if(E.size===1){L.push({kind:"define",type:(0,i.defined)((0,e.iterableFirst)(E))});return}if(E.size===0&&f.size===1)return;if(E.size===0){L.push({kind:"define",type:(0,i.defined)((0,e.iterableFirst)(f))});return}if(U===void 0){for(const r of E)L.push({kind:"define",type:r});return}const S=(0,e.setFilter)(f,U);if(S.size===0)return(0,a.messageError)("IRNoForwardDeclarableTypeInCycle",{});for(const r of S)L.push({kind:"forward",type:r});(0,e.setUnionInto)(_,S);const P=(0,e.setSubtract)(f,S),y=new n.Graph(P,!0,r=>(0,e.setIntersect)(F(r),P));v(y);for(const r of S)L.push({kind:"define",type:r})}const A=B.findRoots();for(const f of A)B.dfsTraversal(f,M,C)}const h=w.makeGraph(!1,F);return v(h),new l(L,_)}return vi.declarationsForGraph=c,vi}var Nl={},ur={},lr={},Rp;function Hc(){if(Rp)return lr;Rp=1;var e=lr&&lr.__awaiter||function(a,l,d,u){function c(w){return w instanceof d?w:new d(function(U){U(w)})}return new(d||(d=Promise))(function(w,U){function F(L){try{M(u.next(L))}catch(_){U(_)}}function O(L){try{M(u.throw(L))}catch(_){U(_)}}function M(L){L.done?w(L.value):c(L.value).then(F,O)}M((u=u.apply(a,l||[])).next())})};Object.defineProperty(lr,"__esModule",{value:!0}),lr.JSONSchemaStore=void 0;const i=Qe();let n=class{constructor(){this._schemas=new Map}add(l,d){(0,i.assert)(!this._schemas.has(l),"Cannot set a schema for an address twice"),this._schemas.set(l,d)}get(l,d){return e(this,void 0,void 0,function*(){let u=this._schemas.get(l);if(u!==void 0)return u;d&&console.log(`trying to fetch ${l}`);try{u=yield this.fetch(l)}catch{}if(u===void 0){d&&console.log(`couldn't fetch ${l}`);return}return d&&console.log(`successully fetched ${l}`),this.add(l,u),u})}};return lr.JSONSchemaStore=n,lr}var Ol={},Mp;function Ba(){return Mp||(Mp=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.accessorNamesAttributeProducer=e.makeAccessorNames=e.unionMemberName=e.makeUnionMemberNamesAttribute=e.unionMemberNamesTypeAttributeKind=e.makeUnionIdentifierAttribute=e.unionIdentifierTypeAttributeKind=e.getAccessorName=e.enumCaseNames=e.objectPropertyNames=e.lookupKey=e.accessorNamesTypeAttributeKind=void 0;const i=et(),n=At(),a=Qe(),l=yn();class d extends n.TypeAttributeKind{constructor(){super("accessorNames")}makeInferred(R){}}e.accessorNamesTypeAttributeKind=new d;function u(C,R){if(typeof C=="string")return[C,!1];const A=C.get(R);if(A!==void 0)return[A,!0];const f=C.get("*");if(f!==void 0)return[f,!1]}function c(C,R,A){const f=C.get(R);if(f!==void 0)return u(f,A)}e.lookupKey=c;function w(C,R){const A=e.accessorNamesTypeAttributeKind.tryGetInAttributes(C.getAttributes()),f=C.getProperties();return A===void 0?(0,i.mapMap)(f,E=>{}):(0,i.mapMap)(f,(E,S)=>c(A,S,R))}e.objectPropertyNames=w;function U(C,R){const A=e.accessorNamesTypeAttributeKind.tryGetInAttributes(C.getAttributes());return A===void 0?(0,i.mapMap)(C.cases.entries(),f=>{}):(0,i.mapMap)(C.cases.entries(),f=>c(A,f,R))}e.enumCaseNames=U;function F(C,R){const A=C.get(R);return A===void 0?[void 0,!1]:A}e.getAccessorName=F;class O extends n.TypeAttributeKind{constructor(){super("unionIdentifier")}combine(R){return(0,i.setUnionManyInto)(new Set,R)}makeInferred(R){return new Set}}e.unionIdentifierTypeAttributeKind=new O;let M=0;function L(){const C=e.unionIdentifierTypeAttributeKind.makeAttributes(new Set([M]));return M+=1,C}e.makeUnionIdentifierAttribute=L;class _ extends n.TypeAttributeKind{constructor(){super("unionMemberNames")}combine(R){const A=new Map;for(const f of R)(0,i.mapMergeInto)(A,f);return A}}e.unionMemberNamesTypeAttributeKind=new _;function b(C,R){const A=(0,a.defined)(e.unionIdentifierTypeAttributeKind.tryGetInAttributes(C)),f=(0,i.mapFromIterable)(A,E=>R);return e.unionMemberNamesTypeAttributeKind.makeAttributes(f)}e.makeUnionMemberNamesAttribute=b;function v(C,R,A){const f=e.unionIdentifierTypeAttributeKind.tryGetInAttributes(C.getAttributes());if(f===void 0)return[void 0,!1];const E=e.unionMemberNamesTypeAttributeKind.tryGetInAttributes(R.getAttributes());if(E===void 0)return[void 0,!1];const S=new Set,P=new Set;for(const p of f){const g=E.get(p);if(g===void 0)continue;const I=u(g,A);if(I===void 0)continue;const[x,q]=I;q?P.add(x):S.add(x)}let y,r,s=(0,i.iterableFirst)(P);if(s!==void 0)y=P.size,r=!0;else{if(s=(0,i.iterableFirst)(S),s===void 0)return[void 0,!1];y=S.size,r=!1}return(0,l.messageAssert)(y===1,"SchemaMoreThanOneUnionMemberName",{names:Array.from(S)}),[s,r]}e.unionMemberName=v;function h(C){return typeof C=="string"?!0:(0,a.isStringMap)(C,R=>typeof R=="string")}function m(C){return typeof C=="string"?C:(0,i.mapFromObject)(C)}function k(C){const R=(0,a.checkStringMap)(C,h);return(0,i.mapMap)((0,i.mapFromObject)(R),m)}e.makeAccessorNames=k;function B(C,R,A,f){if(typeof C!="object")return;const E=C["qt-accessors"];if(E!==void 0){if(f===void 0)return{forType:e.accessorNamesTypeAttributeKind.makeAttributes(k(E))};{const S=L(),P=(0,a.checkArray)(E,h);(0,l.messageAssert)(f.length===P.length,"SchemaWrongAccessorEntryArrayLength",{operation:"oneOf",ref:R.push("oneOf")});const y=P.map(r=>b(S,m(r)));return{forUnion:S,forCases:y}}}}e.accessorNamesAttributeProducer=B})(Ol)),Ol}var Cl={},Bp;function kg(){return Bp||(Bp=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.enumValuesAttributeProducer=e.enumCaseValues=e.enumValuesTypeAttributeKind=void 0;const i=et(),n=Ba(),a=At();class l extends a.TypeAttributeKind{constructor(){super("enumValues")}makeInferred(w){}}e.enumValuesTypeAttributeKind=new l;function d(c,w){const U=e.enumValuesTypeAttributeKind.tryGetInAttributes(c.getAttributes());return U===void 0?(0,i.mapMap)(c.cases.entries(),F=>{}):(0,i.mapMap)(c.cases.entries(),F=>(0,n.lookupKey)(U,F,w))}e.enumCaseValues=d;function u(c,w,U){if(typeof c!="object")return;const F=c["qt-enum-values"];if(F!==void 0)return{forType:e.enumValuesTypeAttributeKind.makeAttributes((0,n.makeAccessorNames)(F))}}e.enumValuesAttributeProducer=u})(Cl)),Cl}var El={},Dp;function Xr(){return Dp||(Dp=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.patternForType=e.patternAttributeProducer=e.patternTypeAttributeKind=e.PatternTypeAttributeKind=e.minMaxLengthForType=e.minMaxValueForType=e.minMaxLengthAttributeProducer=e.minMaxAttributeProducer=e.minMaxLengthTypeAttributeKind=e.minMaxTypeAttributeKind=e.MinMaxConstraintTypeAttributeKind=void 0;const i=At(),n=Qe(),a=yn();function l(_){const[b,v]=_;if(typeof b=="number"&&typeof v=="number"&&b>v)return(0,a.messageError)("MiscInvalidMinMaxConstraint",{min:b,max:v});if(!(b===void 0&&v===void 0))return _}class d extends i.TypeAttributeKind{constructor(b,v,h,m){super(b),this._typeKinds=v,this._minSchemaProperty=h,this._maxSchemaProperty=m}get inIdentity(){return!0}combine(b){(0,n.assert)(b.length>0);let[v,h]=b[0];for(let m=1;m<b.length;m++){const[k,B]=b[m];typeof v=="number"&&typeof k=="number"?v=Math.min(v,k):v=void 0,typeof h=="number"&&typeof B=="number"?h=Math.max(h,B):h=void 0}return l([v,h])}intersect(b){(0,n.assert)(b.length>0);let[v,h]=b[0];for(let m=1;m<b.length;m++){const[k,B]=b[m];typeof v=="number"&&typeof k=="number"?v=Math.max(v,k):v===void 0&&(v=k),typeof h=="number"&&typeof B=="number"?h=Math.min(h,B):h===void 0&&(h=B)}return l([v,h])}makeInferred(b){}addToSchema(b,v,h){if(this._typeKinds.has(v.kind))return;const[m,k]=h;m!==void 0&&(b[this._minSchemaProperty]=m),k!==void 0&&(b[this._maxSchemaProperty]=k)}stringify([b,v]){return`${b}-${v}`}}e.MinMaxConstraintTypeAttributeKind=d,e.minMaxTypeAttributeKind=new d("minMax",new Set(["integer","double"]),"minimum","maximum"),e.minMaxLengthTypeAttributeKind=new d("minMaxLength",new Set(["string"]),"minLength","maxLength");function u(_,b,v){if(typeof _!="object")return;let h,m;if(typeof _[b]=="number"&&(h=_[b]),typeof _[v]=="number"&&(m=_[v]),!(h===void 0&&m===void 0))return[h,m]}function c(_,b,v){if(!v.has("number")&&!v.has("integer"))return;const h=u(_,"minimum","maximum");if(h!==void 0)return{forNumber:e.minMaxTypeAttributeKind.makeAttributes(h)}}e.minMaxAttributeProducer=c;function w(_,b,v){if(!v.has("string"))return;const h=u(_,"minLength","maxLength");if(h!==void 0)return{forString:e.minMaxLengthTypeAttributeKind.makeAttributes(h)}}e.minMaxLengthAttributeProducer=w;function U(_){return e.minMaxTypeAttributeKind.tryGetInAttributes(_.getAttributes())}e.minMaxValueForType=U;function F(_){return e.minMaxLengthTypeAttributeKind.tryGetInAttributes(_.getAttributes())}e.minMaxLengthForType=F;class O extends i.TypeAttributeKind{constructor(){super("pattern")}get inIdentity(){return!0}combine(b){return(0,n.assert)(b.length>0),b.map(v=>`(${v})`).join("|")}intersect(b){}makeInferred(b){}addToSchema(b,v,h){v.kind==="string"&&(b.pattern=h)}}e.PatternTypeAttributeKind=O,e.patternTypeAttributeKind=new O;function M(_,b,v){if(typeof _!="object"||!v.has("string"))return;const h=_.pattern;if(typeof h=="string")return{forString:e.patternTypeAttributeKind.makeAttributes(h)}}e.patternAttributeProducer=M;function L(_){return e.patternTypeAttributeKind.tryGetInAttributes(_.getAttributes())}e.patternForType=L})(El)),El}var jp;function kc(){return jp||(jp=1,(function(e){var i=ur&&ur.__awaiter||function(se,ne,me,ge){function Ae(pe){return pe instanceof me?pe:new me(function(le){le(pe)})}return new(me||(me=Promise))(function(pe,le){function ye(z){try{Y(ge.next(z))}catch(V){le(V)}}function de(z){try{Y(ge.throw(z))}catch(V){le(V)}}function Y(z){z.done?pe(z.value):Ae(z.value).then(ye,de)}Y((ge=ge.apply(se,ne||[])).next())})},n=ur&&ur.__importDefault||function(se){return se&&se.__esModule?se:{default:se}};Object.defineProperty(e,"__esModule",{value:!0}),e.JSONSchemaInput=e.schemaTypeDict=e.Ref=e.PathElementKind=void 0;const a=n(_g()),l=et(),d=mt(),u=Qe(),c=Ki(),w=Ki(),U=At(),F=Hc(),O=yn(),M=Pi(),L=Da(),_=Ba(),b=kg(),v=Xr(),h=Xr(),m=Xr(),k=Gc();var B;(function(se){se[se.Root=0]="Root",se[se.KeyOrIndex=1]="KeyOrIndex",se[se.Type=2]="Type",se[se.Object=3]="Object"})(B=e.PathElementKind||(e.PathElementKind={}));function C(se){if(se.kind===B.KeyOrIndex)return se.key}function R(se,ne){if(se.kind!==ne.kind)return!1;switch(se.kind){case B.Type:return se.index===ne.index;case B.KeyOrIndex:return se.key===ne.key;default:return!0}}function A(se,ne){const me=typeof se=="function"?se():se instanceof y?se:se.canonicalRef;return Object.assign({ref:me},ne===void 0?{}:ne)}function f(se,ne){return Array.isArray(se)?(0,O.messageError)("SchemaArrayIsInvalidSchema",A(ne)):se===null?(0,O.messageError)("SchemaNullIsInvalidSchema",A(ne)):typeof se!="object"?(0,O.messageError)("SchemaInvalidJSONSchemaType",A(ne,{type:typeof se})):se}function E(se,ne){return typeof se=="boolean"?se:f(se,ne)}const S=new RegExp("^[0-9]+$");function P(se){return typeof se=="string"&&(se=new a.default(se)),new a.default(a.default.decode(se.clone().normalize().toString()))}class y{static root(ne){const me=(0,l.definedMap)(ne,ge=>new a.default(ge));return new y(me,[])}static parsePath(ne){const me=[];if(ne.startsWith("/")&&(me.push({kind:B.Root}),ne=ne.slice(1)),ne!==""){const ge=ne.split("/");for(let Ae=0;Ae<ge.length;Ae++)me.push({kind:B.KeyOrIndex,key:ge[Ae]})}return me}static parseURI(ne,me=!1){me||(ne=ne.clone());let ge=ne.fragment();ne.fragment(""),(ne.host()!==""||ne.filename()!=="")&&ge===""&&(ge="/");const Ae=y.parsePath(ge);return new y(ne,Ae)}static parse(ne){return y.parseURI(new a.default(ne),!0)}constructor(ne,me){this.path=me,ne!==void 0?((0,u.assert)(ne.fragment()==="",`Ref URI with fragment is not allowed: ${ne.toString()}`),this.addressURI=P(ne)):this.addressURI=void 0}get hasAddress(){return this.addressURI!==void 0}get address(){return(0,u.defined)(this.addressURI).toString()}get isRoot(){return this.path.length===1&&this.path[0].kind===B.Root}pushElement(ne){const me=Array.from(this.path);return me.push(ne),new y(this.addressURI,me)}push(...ne){let me=this;for(const ge of ne)me=me.pushElement({kind:B.KeyOrIndex,key:ge});return me}pushObject(){return this.pushElement({kind:B.Object})}pushType(ne){return this.pushElement({kind:B.Type,index:ne})}resolveAgainst(ne){let me=this.addressURI;return ne!==void 0&&ne.addressURI!==void 0&&(me=me===void 0?ne.addressURI:me.absoluteTo(ne.addressURI)),new y(me,this.path)}get name(){const ne=Array.from(this.path);for(;;){const me=ne.pop();if(me===void 0||me.kind===B.Root){let ge=this.addressURI!==void 0?this.addressURI.filename():"";const Ae=this.addressURI!==void 0?this.addressURI.suffix():"";return ge.length>Ae.length+1&&(ge=ge.slice(0,ge.length-Ae.length-1)),ge===""?"Something":ge}switch(me.kind){case B.KeyOrIndex:if(S.test(me.key))return me.key;break;case B.Type:case B.Object:return(0,u.panic)("We shouldn't try to get the name of Type or Object refs");default:return(0,u.assertNever)(me)}}}get definitionName(){const ne=(0,l.arrayGetFromEnd)(this.path,2);if(ne!==void 0&&C(ne)==="definitions")return C((0,u.defined)((0,l.arrayLast)(this.path)))}toString(){function ne(ge){switch(ge.kind){case B.Root:return"";case B.Type:return`type/${ge.index.toString()}`;case B.Object:return"object";case B.KeyOrIndex:return ge.key;default:return(0,u.assertNever)(ge)}}return(this.addressURI===void 0?"":this.addressURI.toString())+"#"+this.path.map(ne).join("/")}lookup(ne,me,ge){const Ae=()=>new y(this.addressURI,me),pe=me[0];if(pe===void 0)return E(ne,Ae);const le=me.slice(1);switch(pe.kind){case B.Root:return this.lookup(ge,le,ge);case B.KeyOrIndex:const ye=pe.key;if(Array.isArray(ne)){if(!/^\d+$/.test(ye))return(0,O.messageError)("SchemaCannotIndexArrayWithNonNumber",A(Ae,{actual:ye}));const de=parseInt(pe.key,10);return de>=ne.length?(0,O.messageError)("SchemaIndexNotInArray",A(Ae,{index:de})):this.lookup(ne[de],le,ge)}else return(0,l.hasOwnProperty)(ne,ye)?this.lookup(f(ne,Ae)[pe.key],le,ge):(0,O.messageError)("SchemaKeyNotInObject",A(Ae,{key:ye}));case B.Type:return(0,u.panic)('Cannot look up path that indexes "type"');case B.Object:return(0,u.panic)('Cannot look up path that indexes "object"');default:return(0,u.assertNever)(pe)}}lookupRef(ne){return this.lookup(ne,this.path,ne)}equals(ne){if(!(ne instanceof y))return!1;if(this.addressURI!==void 0&&ne.addressURI!==void 0){if(!this.addressURI.equals(ne.addressURI))return!1}else if(this.addressURI===void 0!=(ne.addressURI===void 0))return!1;const me=this.path.length;if(me!==ne.path.length)return!1;for(let ge=0;ge<me;ge++)if(!R(this.path[ge],ne.path[ge]))return!1;return!0}hashCode(){let ne=(0,l.hashCodeOf)((0,l.definedMap)(this.addressURI,me=>me.toString()));for(const me of this.path)switch(ne=(0,l.addHashCode)(ne,me.kind),me.kind){case B.Type:ne=(0,l.addHashCode)(ne,me.index);break;case B.KeyOrIndex:ne=(0,l.addHashCode)(ne,(0,l.hashString)(me.key));break}return ne}}e.Ref=y;class r{constructor(ne,me,ge=!1){this.haveID=ge,this.canonicalRef=ne,this.virtualRef=me!==void 0?me:ne}updateWithID(ne){if(typeof ne!="string")return this;const me=y.parse(ne),ge=this.haveID?me.resolveAgainst(this.virtualRef):me;return this.haveID||(0,O.messageAssert)(ge.hasAddress,"SchemaIDMustHaveAddress",A(this,{id:ne})),new r(this.canonicalRef,ge,!0)}push(...ne){return new r(this.canonicalRef.push(...ne),this.virtualRef.push(...ne),this.haveID)}pushObject(){return new r(this.canonicalRef.pushObject(),this.virtualRef.pushObject(),this.haveID)}pushType(ne){return new r(this.canonicalRef.pushType(ne),this.virtualRef.pushType(ne),this.haveID)}toString(){return`${this.virtualRef.toString()} (${this.canonicalRef.toString()})`}}class s{constructor(ne){this._ctx=ne,this._map=new l.EqualityMap,this._schemaAddressesAdded=new Set}addIDs(ne,me){if(ne===null)return;if(Array.isArray(ne)){for(let pe=0;pe<ne.length;pe++)this.addIDs(ne[pe],me.push(pe.toString()));return}if(typeof ne!="object")return;const ge=me,Ae=ne.$id;typeof Ae=="string"&&(me=me.updateWithID(Ae)),me.haveID&&(this._ctx.debugPrintSchemaResolving&&console.log(`adding mapping ${me.toString()}`),this._map.set(me.virtualRef,ge));for(const pe of Object.getOwnPropertyNames(ne))this.addIDs(ne[pe],me.push(pe))}addSchema(ne,me){return this._schemaAddressesAdded.has(me)?!1:(this.addIDs(ne,new r(y.root(me),y.root(void 0))),this._schemaAddressesAdded.add(me),!0)}canonize(ne,me){const ge=me.resolveAgainst(ne.virtualRef),Ae=this._map.get(ge);if(Ae!==void 0)return Ae;const pe=ge.addressURI===void 0?new y(ne.canonicalRef.addressURI,ge.path):ge;return new r(pe,new y(void 0,ge.path))}}function p(se,ne){let me;if(typeof se=="string")me=new Set([se]);else if(Array.isArray(se)){const pe=[];for(const le of se){if(typeof le!="string")return(0,O.messageError)("SchemaTypeElementMustBeString",A(ne,{element:le}));pe.push(le)}me=new Set(pe)}else return(0,O.messageError)("SchemaTypeMustBeStringOrStringArray",A(ne,{actual:se}));(0,O.messageAssert)(me.size>0,"SchemaNoTypeSpecified",A(ne));const ge=["null","boolean","object","array","number","string","integer"],Ae=(0,l.iterableFind)(me,pe=>ge.indexOf(pe)<0);return Ae!==void 0?(0,O.messageError)("SchemaInvalidType",A(ne,{type:Ae})):me}function g(se,ne){if(!Array.isArray(se))return(0,O.messageError)("SchemaRequiredMustBeStringOrStringArray",A(ne,{actual:se}));for(const me of se)if(typeof me!="string")return(0,O.messageError)("SchemaRequiredElementMustBeString",A(ne,{element:me}));return se}e.schemaTypeDict={null:!0,boolean:!0,string:!0,integer:!0,number:!0,array:!0,object:!0};const I=Object.getOwnPropertyNames(e.schemaTypeDict);function x(se){const ne=(0,l.iterableFind)(d.transformedStringTypeTargetTypeKindsMap,([me,{jsonSchema:ge}])=>ge===se);if(ne!==void 0)return ne[0]}function q(se,ne){return se===void 0?(0,O.messageError)("SchemaFetchErrorTopLevel",{address:ne}):(0,O.messageError)("SchemaFetchError",{address:ne,base:se.canonicalRef})}class T{constructor(ne,me,ge){this._ctx=ne,this._store=me,this._canonizer=ge}tryResolveVirtualRef(ne,me,ge){return i(this,void 0,void 0,function*(){let Ae=!1;for(;;){const pe=this._canonizer.canonize(ne,ge),le=pe.canonicalRef;(0,u.assert)(le.hasAddress,"Canonical ref can't be resolved without an address");const ye=le.address;let de=le.addressURI===void 0?void 0:yield this._store.get(ye,this._ctx.debugPrintSchemaResolving);if(de===void 0)return[void 0,pe];if(this._canonizer.addSchema(de,ye))(0,u.assert)(!Ae,"We can't add a schema twice"),Ae=!0;else{let Y=this._canonizer.canonize(me,ge);return ne!==void 0&&(Y=new r(new y(pe.canonicalRef.addressURI,Y.canonicalRef.path),Y.virtualRef,Y.haveID)),[Y.canonicalRef.lookupRef(de),Y]}}})}resolveVirtualRef(ne,me){return i(this,void 0,void 0,function*(){this._ctx.debugPrintSchemaResolving&&console.log(`resolving ${me.toString()} relative to ${ne.toString()}`);let ge=yield this.tryResolveVirtualRef(ne,ne,me),Ae=ge[0];if(Ae!==void 0)return this._ctx.debugPrintSchemaResolving&&console.log(`resolved to ${ge[1].toString()}`),[Ae,ge[1]];const pe=new r(ne.canonicalRef,new y(ne.canonicalRef.addressURI,ne.virtualRef.path),ne.haveID);return ge=yield this.tryResolveVirtualRef(pe,ne,me),Ae=ge[0],Ae!==void 0?(this._ctx.debugPrintSchemaResolving&&console.log(`resolved to ${ge[1].toString()}`),[Ae,ge[1]]):q(ne,me.address)})}resolveTopLevelRef(ne){return i(this,void 0,void 0,function*(){return yield this.resolveVirtualRef(new r(new y(ne.addressURI,[])),new y(void 0,ne.path))})}}function D(se,ne,me,ge){return i(this,void 0,void 0,function*(){let Ae=new l.EqualityMap;function pe(Y,z){const V=Ae.get(Y.canonicalRef);V!==void 0&&(0,u.assert)(V===z,"Trying to set path again to different type"),Ae.set(Y.canonicalRef,z)}function le(Y,z,V,ue,Te,Ie=Ce=>Ce.toLowerCase()){return i(this,void 0,void 0,function*(){const Ce=new Set(ue),We=(0,l.mapSortBy)((0,l.mapFromObject)(V),(K,j)=>Ie(j)),Ge=yield(0,l.mapMapSync)(We,(K,j)=>i(this,void 0,void 0,function*(){const G=Y.push("properties",j),ce=yield de(E(K,G.canonicalRef),G,(0,w.makeNamesTypeAttributes)(j,!0)),$=!Ce.has(j);return ne.makeClassProperty(ce,$)}));let ee;if(Te===void 0||Te===!0)ee=ne.getPrimitiveType("any");else if(Te===!1)ee=void 0;else{const K=Y.push("additionalProperties");ee=yield de(E(Te,K.canonicalRef),K,(0,w.singularizeTypeNames)(z))}const te=(0,l.setSubtract)(Ce,Ge.keys());if(te.size>0){const K=ee;if(K===void 0)return(0,O.messageError)("SchemaAdditionalTypesForbidRequired",A(Y));const j=(0,l.mapFromIterable)(te,G=>ne.makeClassProperty(K,!1));(0,l.mapMergeInto)(Ge,j)}return ne.getUniqueObjectType(z,Ge,ee)})}function ye(Y,z,V){return i(this,void 0,void 0,function*(){const ue=Array.isArray(Y.enum)?Y.enum:void 0,Te=(0,l.definedMap)(Y.type,ze=>p(ze,z));function Ie(ze){if(Te!==void 0&&!Te.has(ze))return!1;if(ue!==void 0){let H;switch(ze){case"null":H=ke=>ke===null;break;case"integer":H=ke=>typeof ke=="number"&&ke===Math.floor(ke);break;default:H=ke=>typeof ke===ze;break}return ue.find(H)!==void 0}return!0}const Ce=(0,l.setFilter)(I,Ie);let We;function Ge(ze,H){let ke;if(ze===void 0&&We!==void 0)ke=We;else{ke=[];for(const Ne of ge){const ae=Ne(Y,z.canonicalRef,Ce,ze);ae!==void 0&&ke.push(ae)}ze===void 0&&(We=ke)}for(const Ne of ke)H(Ne)}function ee(ze){let H=U.emptyTypeAttributes;return Ge(void 0,ke=>{const Ne=ze(ke);Ne!==void 0&&(H=(0,U.combineTypeAttributes)("union",H,Ne))}),H}function te(ze){return Y.oneOf===void 0&&(ze=(0,U.combineTypeAttributes)("union",ze,ee(({forType:H,forUnion:ke,forCases:Ne})=>((0,u.assert)(ke===void 0&&Ne===void 0,"We can't have attributes for unions and cases if we don't have a union"),H)))),(0,w.modifyTypeNames)(ze,H=>{const ke=(0,u.defined)(H);if(!ke.areInferred)return ke;let Ne=Y.title;return typeof Ne!="string"&&(Ne=z.canonicalRef.definitionName),typeof Ne=="string"?c.TypeNames.make(new Set([Ne]),new Set,Y.$ref!==void 0):ke.makeInferred()})}V=te(V);const K=(0,U.makeTypeAttributesInferred)(V);function j(ze){const H=x(Y.format);return H===void 0?ne.getStringType(ze,M.StringTypes.unrestricted):ne.getPrimitiveType(H,ze)}function G(){return i(this,void 0,void 0,function*(){const ze=(0,w.singularizeTypeNames)(V),H=Y.items;let ke;if(Array.isArray(H)){const Ne=z.push("items"),ae=yield(0,l.arrayMapSync)(H,(Le,Fe)=>i(this,void 0,void 0,function*(){const He=Ne.push(Fe.toString());return yield de(E(Le,He.canonicalRef),He,ze)}));ke=ne.getUnionType(U.emptyTypeAttributes,new Set(ae))}else if(typeof H=="object"){const Ne=z.push("items");ke=yield de(E(H,Ne.canonicalRef),Ne,ze)}else{if(H!==void 0)return(0,O.messageError)("SchemaArrayItemsMustBeStringOrArray",A(z,{actual:H}));ke=ne.getPrimitiveType("any")}return ne.addAttributes(ke,ze),ne.getArrayType(U.emptyTypeAttributes,ke)})}function ce(){return i(this,void 0,void 0,function*(){let ze;Y.required===void 0||typeof Y.required=="boolean"?ze=[]:ze=Array.from(g(Y.required,z));let H;Y.properties===void 0?H={}:H=f(Y.properties,z.canonicalRef);for(const Fe of Object.getOwnPropertyNames(H))H[Fe].required===!0&&ze.indexOf(Fe)<0&&ze.push(Fe);let ke=Y.additionalProperties;ke===void 0&&typeof Y.patternProperties=="object"&&(0,l.hasOwnProperty)(Y.patternProperties,".*")&&(ke=Y.patternProperties[".*"]);const Ne=(0,U.combineTypeAttributes)("union",K,ee(({forObject:Fe})=>Fe)),ae=Y.quicktypePropertyOrder?Y.quicktypePropertyOrder:[];return yield le(z,Ne,H,ze,ke,Fe=>{const He=ae.indexOf(Fe);return He!==-1?He:Fe.toLowerCase()})})}function $(ze,H){return i(this,void 0,void 0,function*(){const ke=z.push(H);return Array.isArray(ze)?yield(0,l.arrayMapSync)(ze,(Ne,ae)=>i(this,void 0,void 0,function*(){const Le=ke.push(ae.toString());return yield de(E(Ne,Le.canonicalRef),Le,(0,U.makeTypeAttributesInferred)(V))})):(0,O.messageError)("SchemaSetOperationCasesIsNotArray",A(ke,{operation:H,cases:ze}))})}const be=ne.getUniqueIntersectionType(V,void 0);pe(z,be);function Se(ze,H){return i(this,void 0,void 0,function*(){const ke=yield $(ze,H);let Ne=(0,U.makeTypeAttributesInferred)(V);H==="oneOf"&&Ge(ze,({forType:Le,forUnion:Fe,forCases:He})=>{if(Le!==void 0&&ne.addAttributes(be,Le),Fe!==void 0&&(Ne=(0,U.combineTypeAttributes)("union",Ne,Fe)),He!==void 0){(0,u.assert)(He.length===ke.length,"Number of case attributes doesn't match number of cases");for(let qe=0;qe<ke.length;qe++)ne.addAttributes(ke[qe],He[qe])}});const ae=ne.getUniqueUnionType(Ne,void 0);return ne.setSetOperationMembers(ae,new Set(ke)),ae})}const Be=ue===void 0&&(Te===void 0||Te.has("object")),we=ue===void 0&&(Te===void 0||Te.has("array")),Pe=Ce.has("string")&&ue!==void 0&&ue.find(ze=>typeof ze=="string")!==void 0,oe=Te!==void 0||Y.properties!==void 0||Y.additionalProperties!==void 0||Y.items!==void 0||Y.required!==void 0||ue!==void 0,Re=[];if(oe){const ze=[],H=ee(({forNumber:Ne})=>Ne);for(const[Ne,ae]of[["null","null"],["number","double"],["integer","integer"],["boolean","bool"]]){if(!Ce.has(Ne))continue;const Le=(0,d.isNumberTypeKind)(ae)?H:void 0;ze.push(ne.getPrimitiveType(ae,Le))}const ke=(0,U.combineTypeAttributes)("union",K,ee(({forString:Ne})=>Ne));if(Pe){const Ne=ue.filter(ae=>typeof ae=="string");ze.push(ne.getStringType(ke,M.StringTypes.fromCases(Ne)))}else Ce.has("string")&&ze.push(j(ke));we&&ze.push(yield G()),Be&&ze.push(yield ce()),Re.push(ne.getUniqueUnionType(K,new Set(ze)))}if(Y.$ref!==void 0){if(typeof Y.$ref!="string")return(0,O.messageError)("SchemaRefMustBeString",A(z,{actual:typeof Y.$ref}));const ze=y.parse(Y.$ref),[H,ke]=yield se.resolveVirtualRef(z,ze),Ne=(0,w.modifyTypeNames)(V,ae=>(0,u.defined)(ae).areInferred?c.TypeNames.make(new Set([ke.canonicalRef.name]),new Set,!0):ae);Re.push(yield de(H,ke,Ne))}return Y.allOf!==void 0&&Re.push(...yield $(Y.allOf,"allOf")),Y.oneOf!==void 0&&Re.push(yield Se(Y.oneOf,"oneOf")),Y.anyOf!==void 0&&Re.push(yield Se(Y.anyOf,"anyOf")),ne.setSetOperationMembers(be,new Set(Re)),be})}function de(Y,z,V){return i(this,void 0,void 0,function*(){const ue=Ae.get(z.canonicalRef);if(ue!==void 0)return ue;let Te;return typeof Y=="boolean"?((0,O.messageAssert)(Y===!0,"SchemaFalseNotSupported",A(z)),Te=ne.getPrimitiveType("any")):(z=z.updateWithID(Y.$id),Te=yield ye(Y,z,V)),pe(z,Te),Te})}for(const[Y,z]of me){const[V,ue]=yield se.resolveTopLevelRef(z),Te=yield de(V,ue,(0,w.makeNamesTypeAttributes)(Y,!1));ne.addTopLevel(Y,Te)}})}function W(se){const ne=se.toLowerCase(),me=[".json",".schema"];for(const ge of me)if(ne.endsWith(ge)){const Ae=se.slice(0,se.length-ge.length);if(Ae.length>0)return Ae}return se}function J(se){const ne=se.fragment();if(ne!==""){const ge=ne.split("/"),Ae=ge.length;if(ge[Ae-1]!=="")return W(ge[Ae-1]);if(Ae>1&&ge[Ae-2]!=="")return W(ge[Ae-2])}const me=se.filename();return me!==""?W(me):(0,O.messageError)("DriverCannotInferNameForSchema",{uri:se.toString()})}function X(se,ne,me){return i(this,void 0,void 0,function*(){const ge=ne.fragment();let Ae=ge.endsWith("/");Ae&&(ne=ne.clone().fragment(ge.slice(0,-1)));const pe=y.parseURI(ne);pe.isRoot&&(Ae=!1);const le=(yield se.resolveTopLevelRef(pe))[0];if(Ae)return typeof le!="object"?(0,O.messageError)("SchemaCannotGetTypesFromBoolean",{ref:pe.toString()}):(0,l.mapMap)((0,l.mapFromObject)(le),(ye,de)=>pe.push(de));{let ye;if(typeof le=="object"&&typeof le.title=="string")ye=le.title;else{const de=J(ne);ye=de!==void 0?de:me}return[ye,pe]}})}class Q extends F.JSONSchemaStore{constructor(ne,me){super(),this._inputs=ne,this._delegate=me}fetch(ne){return i(this,void 0,void 0,function*(){const me=this._inputs.get(ne);return me!==void 0?E((0,u.parseJSON)(me,"JSON Schema",ne),()=>y.root(ne)):this._delegate===void 0?(0,u.panic)(`Schema URI ${ne} requested, but no store given`):yield this._delegate.fetch(ne)})}}let re=class{constructor(ne,me=[],ge=[]){this._schemaStore=ne,this._additionalSchemaAddresses=ge,this.kind="schema",this.needSchemaProcessing=!0,this._schemaInputs=new Map,this._schemaSources=[],this._topLevels=new Map,this._needIR=!1,this._attributeProducers=[L.descriptionAttributeProducer,_.accessorNamesAttributeProducer,b.enumValuesAttributeProducer,k.uriSchemaAttributesProducer,v.minMaxAttributeProducer,h.minMaxLengthAttributeProducer,m.patternAttributeProducer].concat(me)}get needIR(){return this._needIR}addTopLevel(ne,me){this._topLevels.set(ne,me)}addTypes(ne,me){return i(this,void 0,void 0,function*(){if(this._schemaSources.length===0)return;let ge=this._schemaStore;if(this._schemaInputs.size===0){if(ge===void 0)return(0,u.panic)("Must have a schema store to process JSON Schema")}else ge=this._schemaStore=new Q(this._schemaInputs,ge);const Ae=ge,pe=new s(ne);for(const ye of this._additionalSchemaAddresses){const de=yield Ae.get(ye,ne.debugPrintSchemaResolving);if(de===void 0)return(0,O.messageError)("SchemaFetchErrorAdditional",{address:ye});pe.addSchema(de,ye)}const le=new T(ne,(0,u.defined)(this._schemaStore),pe);for(const[ye,de]of this._schemaSources){const Y=de.name,z=yield X(le,ye,Y);if(Array.isArray(z)){let V;this._schemaSources.length===1?V=Y:V=z[0],this.addTopLevel(V,z[1])}else for(const[V,ue]of z)this.addTopLevel(V,ue)}yield D(le,me,this._topLevels,this._attributeProducers)})}addTypesSync(){return(0,u.panic)("addTypesSync not supported in JSONSchemaInput")}addSource(ne){return i(this,void 0,void 0,function*(){return this.addSourceSync(ne)})}addSourceSync(ne){const{name:me,uris:ge,schema:Ae,isConverted:pe}=ne;pe!==!0&&(this._needIR=!0);let le;if(ge===void 0?le=[new a.default(me)]:le=ge.map(ye=>{const de=P(ye);return de.clone().hash("").toString()===""&&de.path(me),de}),Ae===void 0)(0,u.assert)(ge!==void 0,"URIs must be given if schema source is not specified");else for(let ye=0;ye<le.length;ye++){const de=le[ye],Y=de.clone().hash(""),z=Y.path();let V=0;do V>0&&Y.path(`${z}-${V}`),V++;while(this._schemaInputs.has(Y.toString()));this._schemaInputs.set(Y.toString(),Ae),le[ye]=Y.hash(de.hash())}for(const ye of le)this._schemaSources.push([ye,ne])}singleStringSchemaSource(){if(!this._schemaSources.every(([me,{schema:ge}])=>typeof ge=="string"))return;const ne=new Set(this._schemaSources.map(([me,{schema:ge}])=>ge));if(ne.size===1)return(0,u.defined)((0,l.iterableFirst)(ne))}};e.JSONSchemaInput=re})(ur)),ur}var Up;function Da(){return Up||(Up=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.descriptionAttributeProducer=e.propertyDescriptionsTypeAttributeKind=e.descriptionTypeAttributeKind=e.addDescriptionToSchema=void 0;const i=et(),n=At(),a=kc();function l(U,F){F!==void 0&&(U.description=Array.from(F).join(`
@@ -922,14 +887,7 @@ makeNullableEncoder f m =
922
887
  import Data.Aeson.Types (emptyObject)
923
888
  import Data.ByteString.Lazy (ByteString)
924
889
  import Data.HashMap.Strict (HashMap)
925
- import Data.Text (Text)`),this._options.useList||this.emitLine("import Data.Vector (Vector)")),this.forEachTopLevel("leading-and-interposing",(m,k)=>this.emitTopLevelDefinition(m,k),m=>this.namedTypeToNameForTopLevel(m)===void 0),this.forEachNamedType("leading-and-interposing",(m,k)=>this.emitClassDefinition(m,k),(m,k)=>this.emitEnumDefinition(m,k),(m,k)=>this.emitUnionDefinition(m,k)),this.forEachTopLevel("leading-and-interposing",(m,k)=>this.emitTopLevelFunctions(k)),this.forEachNamedType("leading-and-interposing",(m,k)=>this.emitClassFunctions(m,k),(m,k)=>this.emitEnumFunctions(m,k),(m,k)=>this.emitUnionFunctions(m,k)),!this._options.justTypes&&this.ensureBlankLine()}}e.HaskellRenderer=b})(Jl)),Jl}var Li={},Vs={exports:{}};/**
926
- * @license
927
- * Lodash <https://lodash.com/>
928
- * Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
929
- * Released under MIT license <https://lodash.com/license>
930
- * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
931
- * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
932
- */var X_=Vs.exports,hm;function Y_(){return hm||(hm=1,(function(e,i){(function(){var n,a="4.17.21",l=200,d="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",u="Expected a function",c="Invalid `variable` option passed into `_.template`",w="__lodash_hash_undefined__",U=500,F="__lodash_placeholder__",O=1,M=2,L=4,_=1,b=2,v=1,h=2,m=4,k=8,B=16,C=32,R=64,A=128,f=256,E=512,S=30,P="...",y=800,r=16,s=1,p=2,g=3,I=1/0,x=9007199254740991,q=17976931348623157e292,T=NaN,D=4294967295,W=D-1,J=D>>>1,X=[["ary",A],["bind",v],["bindKey",h],["curry",k],["curryRight",B],["flip",E],["partial",C],["partialRight",R],["rearg",f]],Q="[object Arguments]",re="[object Array]",se="[object AsyncFunction]",ne="[object Boolean]",me="[object Date]",ge="[object DOMException]",Ae="[object Error]",pe="[object Function]",le="[object GeneratorFunction]",ye="[object Map]",de="[object Number]",Y="[object Null]",z="[object Object]",V="[object Promise]",ue="[object Proxy]",Te="[object RegExp]",Ie="[object Set]",Ce="[object String]",We="[object Symbol]",Ge="[object Undefined]",ee="[object WeakMap]",te="[object WeakSet]",K="[object ArrayBuffer]",j="[object DataView]",G="[object Float32Array]",ce="[object Float64Array]",$="[object Int8Array]",be="[object Int16Array]",Se="[object Int32Array]",Be="[object Uint8Array]",we="[object Uint8ClampedArray]",Pe="[object Uint16Array]",oe="[object Uint32Array]",Re=/\b__p \+= '';/g,ze=/\b(__p \+=) '' \+/g,H=/(__e\(.*?\)|\b__t\)) \+\n'';/g,ke=/&(?:amp|lt|gt|quot|#39);/g,Ne=/[&<>"']/g,ae=RegExp(ke.source),Le=RegExp(Ne.source),Fe=/<%-([\s\S]+?)%>/g,He=/<%([\s\S]+?)%>/g,qe=/<%=([\s\S]+?)%>/g,Ke=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,ct=/^\w*$/,xn=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,wt=/[\\^$.*+?()[\]{}|]/g,dt=RegExp(wt.source),Pt=/^\s+/,Vt=/\s/,en=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,kr=/\{\n\/\* \[wrapped with (.+)\] \*/,Nr=/,? & /,Mt=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,ln=/[()=,{}\[\]\/\s]/,Jt=/\\(\\)?/g,zn=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,bn=/\w*$/,ao=/^[-+]0x[0-9a-f]+$/i,tb=/^0b[01]+$/i,nb=/^\[object .+?Constructor\]$/,ib=/^0o[0-7]+$/i,rb=/^(?:0|[1-9]\d*)$/,sb=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,uo=/($^)/,ob=/['\n\r\u2028\u2029\\]/g,lo="\\ud800-\\udfff",ab="\\u0300-\\u036f",ub="\\ufe20-\\ufe2f",lb="\\u20d0-\\u20ff",rf=ab+ub+lb,sf="\\u2700-\\u27bf",of="a-z\\xdf-\\xf6\\xf8-\\xff",cb="\\xac\\xb1\\xd7\\xf7",fb="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",db="\\u2000-\\u206f",hb=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",af="A-Z\\xc0-\\xd6\\xd8-\\xde",uf="\\ufe0e\\ufe0f",lf=cb+fb+db+hb,qa="['’]",pb="["+lo+"]",cf="["+lf+"]",co="["+rf+"]",ff="\\d+",mb="["+sf+"]",df="["+of+"]",hf="[^"+lo+lf+ff+sf+of+af+"]",Ja="\\ud83c[\\udffb-\\udfff]",yb="(?:"+co+"|"+Ja+")",pf="[^"+lo+"]",Ga="(?:\\ud83c[\\udde6-\\uddff]){2}",Ha="[\\ud800-\\udbff][\\udc00-\\udfff]",Or="["+af+"]",mf="\\u200d",yf="(?:"+df+"|"+hf+")",gb="(?:"+Or+"|"+hf+")",gf="(?:"+qa+"(?:d|ll|m|re|s|t|ve))?",bf="(?:"+qa+"(?:D|LL|M|RE|S|T|VE))?",Tf=yb+"?",vf="["+uf+"]?",bb="(?:"+mf+"(?:"+[pf,Ga,Ha].join("|")+")"+vf+Tf+")*",Tb="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",vb="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Sf=vf+Tf+bb,Sb="(?:"+[mb,Ga,Ha].join("|")+")"+Sf,wb="(?:"+[pf+co+"?",co,Ga,Ha,pb].join("|")+")",Lb=RegExp(qa,"g"),_b=RegExp(co,"g"),Ka=RegExp(Ja+"(?="+Ja+")|"+wb+Sf,"g"),kb=RegExp([Or+"?"+df+"+"+gf+"(?="+[cf,Or,"$"].join("|")+")",gb+"+"+bf+"(?="+[cf,Or+yf,"$"].join("|")+")",Or+"?"+yf+"+"+gf,Or+"+"+bf,vb,Tb,ff,Sb].join("|"),"g"),Nb=RegExp("["+mf+lo+rf+uf+"]"),Ob=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Cb=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],Eb=-1,_t={};_t[G]=_t[ce]=_t[$]=_t[be]=_t[Se]=_t[Be]=_t[we]=_t[Pe]=_t[oe]=!0,_t[Q]=_t[re]=_t[K]=_t[ne]=_t[j]=_t[me]=_t[Ae]=_t[pe]=_t[ye]=_t[de]=_t[z]=_t[Te]=_t[Ie]=_t[Ce]=_t[ee]=!1;var Lt={};Lt[Q]=Lt[re]=Lt[K]=Lt[j]=Lt[ne]=Lt[me]=Lt[G]=Lt[ce]=Lt[$]=Lt[be]=Lt[Se]=Lt[ye]=Lt[de]=Lt[z]=Lt[Te]=Lt[Ie]=Lt[Ce]=Lt[We]=Lt[Be]=Lt[we]=Lt[Pe]=Lt[oe]=!0,Lt[Ae]=Lt[pe]=Lt[ee]=!1;var Ab={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},Fb={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},Pb={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},Ib={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Rb=parseFloat,Mb=parseInt,wf=typeof Dn=="object"&&Dn&&Dn.Object===Object&&Dn,Bb=typeof self=="object"&&self&&self.Object===Object&&self,Qt=wf||Bb||Function("return this")(),Va=i&&!i.nodeType&&i,Xi=Va&&!0&&e&&!e.nodeType&&e,Lf=Xi&&Xi.exports===Va,Za=Lf&&wf.process,Cn=(function(){try{var Oe=Xi&&Xi.require&&Xi.require("util").types;return Oe||Za&&Za.binding&&Za.binding("util")}catch{}})(),_f=Cn&&Cn.isArrayBuffer,kf=Cn&&Cn.isDate,Nf=Cn&&Cn.isMap,Of=Cn&&Cn.isRegExp,Cf=Cn&&Cn.isSet,Ef=Cn&&Cn.isTypedArray;function Tn(Oe,De,Me){switch(Me.length){case 0:return Oe.call(De);case 1:return Oe.call(De,Me[0]);case 2:return Oe.call(De,Me[0],Me[1]);case 3:return Oe.call(De,Me[0],Me[1],Me[2])}return Oe.apply(De,Me)}function Db(Oe,De,Me,Ve){for(var nt=-1,yt=Oe==null?0:Oe.length;++nt<yt;){var Gt=Oe[nt];De(Ve,Gt,Me(Gt),Oe)}return Ve}function En(Oe,De){for(var Me=-1,Ve=Oe==null?0:Oe.length;++Me<Ve&&De(Oe[Me],Me,Oe)!==!1;);return Oe}function jb(Oe,De){for(var Me=Oe==null?0:Oe.length;Me--&&De(Oe[Me],Me,Oe)!==!1;);return Oe}function Af(Oe,De){for(var Me=-1,Ve=Oe==null?0:Oe.length;++Me<Ve;)if(!De(Oe[Me],Me,Oe))return!1;return!0}function Ii(Oe,De){for(var Me=-1,Ve=Oe==null?0:Oe.length,nt=0,yt=[];++Me<Ve;){var Gt=Oe[Me];De(Gt,Me,Oe)&&(yt[nt++]=Gt)}return yt}function fo(Oe,De){var Me=Oe==null?0:Oe.length;return!!Me&&Cr(Oe,De,0)>-1}function Qa(Oe,De,Me){for(var Ve=-1,nt=Oe==null?0:Oe.length;++Ve<nt;)if(Me(De,Oe[Ve]))return!0;return!1}function Ot(Oe,De){for(var Me=-1,Ve=Oe==null?0:Oe.length,nt=Array(Ve);++Me<Ve;)nt[Me]=De(Oe[Me],Me,Oe);return nt}function Ri(Oe,De){for(var Me=-1,Ve=De.length,nt=Oe.length;++Me<Ve;)Oe[nt+Me]=De[Me];return Oe}function Xa(Oe,De,Me,Ve){var nt=-1,yt=Oe==null?0:Oe.length;for(Ve&&yt&&(Me=Oe[++nt]);++nt<yt;)Me=De(Me,Oe[nt],nt,Oe);return Me}function Ub(Oe,De,Me,Ve){var nt=Oe==null?0:Oe.length;for(Ve&&nt&&(Me=Oe[--nt]);nt--;)Me=De(Me,Oe[nt],nt,Oe);return Me}function Ya(Oe,De){for(var Me=-1,Ve=Oe==null?0:Oe.length;++Me<Ve;)if(De(Oe[Me],Me,Oe))return!0;return!1}var xb=$a("length");function zb(Oe){return Oe.split("")}function Wb(Oe){return Oe.match(Mt)||[]}function Ff(Oe,De,Me){var Ve;return Me(Oe,function(nt,yt,Gt){if(De(nt,yt,Gt))return Ve=yt,!1}),Ve}function ho(Oe,De,Me,Ve){for(var nt=Oe.length,yt=Me+(Ve?1:-1);Ve?yt--:++yt<nt;)if(De(Oe[yt],yt,Oe))return yt;return-1}function Cr(Oe,De,Me){return De===De?e0(Oe,De,Me):ho(Oe,Pf,Me)}function qb(Oe,De,Me,Ve){for(var nt=Me-1,yt=Oe.length;++nt<yt;)if(Ve(Oe[nt],De))return nt;return-1}function Pf(Oe){return Oe!==Oe}function If(Oe,De){var Me=Oe==null?0:Oe.length;return Me?tu(Oe,De)/Me:T}function $a(Oe){return function(De){return De==null?n:De[Oe]}}function eu(Oe){return function(De){return Oe==null?n:Oe[De]}}function Rf(Oe,De,Me,Ve,nt){return nt(Oe,function(yt,Gt,St){Me=Ve?(Ve=!1,yt):De(Me,yt,Gt,St)}),Me}function Jb(Oe,De){var Me=Oe.length;for(Oe.sort(De);Me--;)Oe[Me]=Oe[Me].value;return Oe}function tu(Oe,De){for(var Me,Ve=-1,nt=Oe.length;++Ve<nt;){var yt=De(Oe[Ve]);yt!==n&&(Me=Me===n?yt:Me+yt)}return Me}function nu(Oe,De){for(var Me=-1,Ve=Array(Oe);++Me<Oe;)Ve[Me]=De(Me);return Ve}function Gb(Oe,De){return Ot(De,function(Me){return[Me,Oe[Me]]})}function Mf(Oe){return Oe&&Oe.slice(0,Uf(Oe)+1).replace(Pt,"")}function vn(Oe){return function(De){return Oe(De)}}function iu(Oe,De){return Ot(De,function(Me){return Oe[Me]})}function ss(Oe,De){return Oe.has(De)}function Bf(Oe,De){for(var Me=-1,Ve=Oe.length;++Me<Ve&&Cr(De,Oe[Me],0)>-1;);return Me}function Df(Oe,De){for(var Me=Oe.length;Me--&&Cr(De,Oe[Me],0)>-1;);return Me}function Hb(Oe,De){for(var Me=Oe.length,Ve=0;Me--;)Oe[Me]===De&&++Ve;return Ve}var Kb=eu(Ab),Vb=eu(Fb);function Zb(Oe){return"\\"+Ib[Oe]}function Qb(Oe,De){return Oe==null?n:Oe[De]}function Er(Oe){return Nb.test(Oe)}function Xb(Oe){return Ob.test(Oe)}function Yb(Oe){for(var De,Me=[];!(De=Oe.next()).done;)Me.push(De.value);return Me}function ru(Oe){var De=-1,Me=Array(Oe.size);return Oe.forEach(function(Ve,nt){Me[++De]=[nt,Ve]}),Me}function jf(Oe,De){return function(Me){return Oe(De(Me))}}function Mi(Oe,De){for(var Me=-1,Ve=Oe.length,nt=0,yt=[];++Me<Ve;){var Gt=Oe[Me];(Gt===De||Gt===F)&&(Oe[Me]=F,yt[nt++]=Me)}return yt}function po(Oe){var De=-1,Me=Array(Oe.size);return Oe.forEach(function(Ve){Me[++De]=Ve}),Me}function $b(Oe){var De=-1,Me=Array(Oe.size);return Oe.forEach(function(Ve){Me[++De]=[Ve,Ve]}),Me}function e0(Oe,De,Me){for(var Ve=Me-1,nt=Oe.length;++Ve<nt;)if(Oe[Ve]===De)return Ve;return-1}function t0(Oe,De,Me){for(var Ve=Me+1;Ve--;)if(Oe[Ve]===De)return Ve;return Ve}function Ar(Oe){return Er(Oe)?i0(Oe):xb(Oe)}function Wn(Oe){return Er(Oe)?r0(Oe):zb(Oe)}function Uf(Oe){for(var De=Oe.length;De--&&Vt.test(Oe.charAt(De)););return De}var n0=eu(Pb);function i0(Oe){for(var De=Ka.lastIndex=0;Ka.test(Oe);)++De;return De}function r0(Oe){return Oe.match(Ka)||[]}function s0(Oe){return Oe.match(kb)||[]}var o0=(function Oe(De){De=De==null?Qt:Fr.defaults(Qt.Object(),De,Fr.pick(Qt,Cb));var Me=De.Array,Ve=De.Date,nt=De.Error,yt=De.Function,Gt=De.Math,St=De.Object,su=De.RegExp,a0=De.String,An=De.TypeError,mo=Me.prototype,u0=yt.prototype,Pr=St.prototype,yo=De["__core-js_shared__"],go=u0.toString,bt=Pr.hasOwnProperty,l0=0,xf=(function(){var t=/[^.]+$/.exec(yo&&yo.keys&&yo.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""})(),bo=Pr.toString,c0=go.call(St),f0=Qt._,d0=su("^"+go.call(bt).replace(wt,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),To=Lf?De.Buffer:n,Bi=De.Symbol,vo=De.Uint8Array,zf=To?To.allocUnsafe:n,So=jf(St.getPrototypeOf,St),Wf=St.create,qf=Pr.propertyIsEnumerable,wo=mo.splice,Jf=Bi?Bi.isConcatSpreadable:n,os=Bi?Bi.iterator:n,Yi=Bi?Bi.toStringTag:n,Lo=(function(){try{var t=ir(St,"defineProperty");return t({},"",{}),t}catch{}})(),h0=De.clearTimeout!==Qt.clearTimeout&&De.clearTimeout,p0=Ve&&Ve.now!==Qt.Date.now&&Ve.now,m0=De.setTimeout!==Qt.setTimeout&&De.setTimeout,_o=Gt.ceil,ko=Gt.floor,ou=St.getOwnPropertySymbols,y0=To?To.isBuffer:n,Gf=De.isFinite,g0=mo.join,b0=jf(St.keys,St),Ht=Gt.max,tn=Gt.min,T0=Ve.now,v0=De.parseInt,Hf=Gt.random,S0=mo.reverse,au=ir(De,"DataView"),as=ir(De,"Map"),uu=ir(De,"Promise"),Ir=ir(De,"Set"),us=ir(De,"WeakMap"),ls=ir(St,"create"),No=us&&new us,Rr={},w0=rr(au),L0=rr(as),_0=rr(uu),k0=rr(Ir),N0=rr(us),Oo=Bi?Bi.prototype:n,cs=Oo?Oo.valueOf:n,Kf=Oo?Oo.toString:n;function fe(t){if(Bt(t)&&!it(t)&&!(t instanceof ft)){if(t instanceof Fn)return t;if(bt.call(t,"__wrapped__"))return Vd(t)}return new Fn(t)}var Mr=(function(){function t(){}return function(o){if(!It(o))return{};if(Wf)return Wf(o);t.prototype=o;var N=new t;return t.prototype=n,N}})();function Co(){}function Fn(t,o){this.__wrapped__=t,this.__actions__=[],this.__chain__=!!o,this.__index__=0,this.__values__=n}fe.templateSettings={escape:Fe,evaluate:He,interpolate:qe,variable:"",imports:{_:fe}},fe.prototype=Co.prototype,fe.prototype.constructor=fe,Fn.prototype=Mr(Co.prototype),Fn.prototype.constructor=Fn;function ft(t){this.__wrapped__=t,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=D,this.__views__=[]}function O0(){var t=new ft(this.__wrapped__);return t.__actions__=cn(this.__actions__),t.__dir__=this.__dir__,t.__filtered__=this.__filtered__,t.__iteratees__=cn(this.__iteratees__),t.__takeCount__=this.__takeCount__,t.__views__=cn(this.__views__),t}function C0(){if(this.__filtered__){var t=new ft(this);t.__dir__=-1,t.__filtered__=!0}else t=this.clone(),t.__dir__*=-1;return t}function E0(){var t=this.__wrapped__.value(),o=this.__dir__,N=it(t),Z=o<0,ie=N?t.length:0,he=zT(0,ie,this.__views__),ve=he.start,_e=he.end,Ee=_e-ve,je=Z?_e:ve-1,Ue=this.__iteratees__,xe=Ue.length,Je=0,Ze=tn(Ee,this.__takeCount__);if(!N||!Z&&ie==Ee&&Ze==Ee)return gd(t,this.__actions__);var Ye=[];e:for(;Ee--&&Je<Ze;){je+=o;for(var at=-1,$e=t[je];++at<xe;){var lt=Ue[at],ht=lt.iteratee,Ln=lt.type,on=ht($e);if(Ln==p)$e=on;else if(!on){if(Ln==s)continue e;break e}}Ye[Je++]=$e}return Ye}ft.prototype=Mr(Co.prototype),ft.prototype.constructor=ft;function $i(t){var o=-1,N=t==null?0:t.length;for(this.clear();++o<N;){var Z=t[o];this.set(Z[0],Z[1])}}function A0(){this.__data__=ls?ls(null):{},this.size=0}function F0(t){var o=this.has(t)&&delete this.__data__[t];return this.size-=o?1:0,o}function P0(t){var o=this.__data__;if(ls){var N=o[t];return N===w?n:N}return bt.call(o,t)?o[t]:n}function I0(t){var o=this.__data__;return ls?o[t]!==n:bt.call(o,t)}function R0(t,o){var N=this.__data__;return this.size+=this.has(t)?0:1,N[t]=ls&&o===n?w:o,this}$i.prototype.clear=A0,$i.prototype.delete=F0,$i.prototype.get=P0,$i.prototype.has=I0,$i.prototype.set=R0;function ui(t){var o=-1,N=t==null?0:t.length;for(this.clear();++o<N;){var Z=t[o];this.set(Z[0],Z[1])}}function M0(){this.__data__=[],this.size=0}function B0(t){var o=this.__data__,N=Eo(o,t);if(N<0)return!1;var Z=o.length-1;return N==Z?o.pop():wo.call(o,N,1),--this.size,!0}function D0(t){var o=this.__data__,N=Eo(o,t);return N<0?n:o[N][1]}function j0(t){return Eo(this.__data__,t)>-1}function U0(t,o){var N=this.__data__,Z=Eo(N,t);return Z<0?(++this.size,N.push([t,o])):N[Z][1]=o,this}ui.prototype.clear=M0,ui.prototype.delete=B0,ui.prototype.get=D0,ui.prototype.has=j0,ui.prototype.set=U0;function li(t){var o=-1,N=t==null?0:t.length;for(this.clear();++o<N;){var Z=t[o];this.set(Z[0],Z[1])}}function x0(){this.size=0,this.__data__={hash:new $i,map:new(as||ui),string:new $i}}function z0(t){var o=zo(this,t).delete(t);return this.size-=o?1:0,o}function W0(t){return zo(this,t).get(t)}function q0(t){return zo(this,t).has(t)}function J0(t,o){var N=zo(this,t),Z=N.size;return N.set(t,o),this.size+=N.size==Z?0:1,this}li.prototype.clear=x0,li.prototype.delete=z0,li.prototype.get=W0,li.prototype.has=q0,li.prototype.set=J0;function er(t){var o=-1,N=t==null?0:t.length;for(this.__data__=new li;++o<N;)this.add(t[o])}function G0(t){return this.__data__.set(t,w),this}function H0(t){return this.__data__.has(t)}er.prototype.add=er.prototype.push=G0,er.prototype.has=H0;function qn(t){var o=this.__data__=new ui(t);this.size=o.size}function K0(){this.__data__=new ui,this.size=0}function V0(t){var o=this.__data__,N=o.delete(t);return this.size=o.size,N}function Z0(t){return this.__data__.get(t)}function Q0(t){return this.__data__.has(t)}function X0(t,o){var N=this.__data__;if(N instanceof ui){var Z=N.__data__;if(!as||Z.length<l-1)return Z.push([t,o]),this.size=++N.size,this;N=this.__data__=new li(Z)}return N.set(t,o),this.size=N.size,this}qn.prototype.clear=K0,qn.prototype.delete=V0,qn.prototype.get=Z0,qn.prototype.has=Q0,qn.prototype.set=X0;function Vf(t,o){var N=it(t),Z=!N&&sr(t),ie=!N&&!Z&&zi(t),he=!N&&!Z&&!ie&&Ur(t),ve=N||Z||ie||he,_e=ve?nu(t.length,a0):[],Ee=_e.length;for(var je in t)(o||bt.call(t,je))&&!(ve&&(je=="length"||ie&&(je=="offset"||je=="parent")||he&&(je=="buffer"||je=="byteLength"||je=="byteOffset")||hi(je,Ee)))&&_e.push(je);return _e}function Zf(t){var o=t.length;return o?t[Tu(0,o-1)]:n}function Y0(t,o){return Wo(cn(t),tr(o,0,t.length))}function $0(t){return Wo(cn(t))}function lu(t,o,N){(N!==n&&!Jn(t[o],N)||N===n&&!(o in t))&&ci(t,o,N)}function fs(t,o,N){var Z=t[o];(!(bt.call(t,o)&&Jn(Z,N))||N===n&&!(o in t))&&ci(t,o,N)}function Eo(t,o){for(var N=t.length;N--;)if(Jn(t[N][0],o))return N;return-1}function eT(t,o,N,Z){return Di(t,function(ie,he,ve){o(Z,ie,N(ie),ve)}),Z}function Qf(t,o){return t&&ri(o,Zt(o),t)}function tT(t,o){return t&&ri(o,dn(o),t)}function ci(t,o,N){o=="__proto__"&&Lo?Lo(t,o,{configurable:!0,enumerable:!0,value:N,writable:!0}):t[o]=N}function cu(t,o){for(var N=-1,Z=o.length,ie=Me(Z),he=t==null;++N<Z;)ie[N]=he?n:Ju(t,o[N]);return ie}function tr(t,o,N){return t===t&&(N!==n&&(t=t<=N?t:N),o!==n&&(t=t>=o?t:o)),t}function Pn(t,o,N,Z,ie,he){var ve,_e=o&O,Ee=o&M,je=o&L;if(N&&(ve=ie?N(t,Z,ie,he):N(t)),ve!==n)return ve;if(!It(t))return t;var Ue=it(t);if(Ue){if(ve=qT(t),!_e)return cn(t,ve)}else{var xe=nn(t),Je=xe==pe||xe==le;if(zi(t))return vd(t,_e);if(xe==z||xe==Q||Je&&!ie){if(ve=Ee||Je?{}:Ud(t),!_e)return Ee?PT(t,tT(ve,t)):FT(t,Qf(ve,t))}else{if(!Lt[xe])return ie?t:{};ve=JT(t,xe,_e)}}he||(he=new qn);var Ze=he.get(t);if(Ze)return Ze;he.set(t,ve),ph(t)?t.forEach(function($e){ve.add(Pn($e,o,N,$e,t,he))}):dh(t)&&t.forEach(function($e,lt){ve.set(lt,Pn($e,o,N,lt,t,he))});var Ye=je?Ee?Au:Eu:Ee?dn:Zt,at=Ue?n:Ye(t);return En(at||t,function($e,lt){at&&(lt=$e,$e=t[lt]),fs(ve,lt,Pn($e,o,N,lt,t,he))}),ve}function nT(t){var o=Zt(t);return function(N){return Xf(N,t,o)}}function Xf(t,o,N){var Z=N.length;if(t==null)return!Z;for(t=St(t);Z--;){var ie=N[Z],he=o[ie],ve=t[ie];if(ve===n&&!(ie in t)||!he(ve))return!1}return!0}function Yf(t,o,N){if(typeof t!="function")throw new An(u);return bs(function(){t.apply(n,N)},o)}function ds(t,o,N,Z){var ie=-1,he=fo,ve=!0,_e=t.length,Ee=[],je=o.length;if(!_e)return Ee;N&&(o=Ot(o,vn(N))),Z?(he=Qa,ve=!1):o.length>=l&&(he=ss,ve=!1,o=new er(o));e:for(;++ie<_e;){var Ue=t[ie],xe=N==null?Ue:N(Ue);if(Ue=Z||Ue!==0?Ue:0,ve&&xe===xe){for(var Je=je;Je--;)if(o[Je]===xe)continue e;Ee.push(Ue)}else he(o,xe,Z)||Ee.push(Ue)}return Ee}var Di=kd(ii),$f=kd(du,!0);function iT(t,o){var N=!0;return Di(t,function(Z,ie,he){return N=!!o(Z,ie,he),N}),N}function Ao(t,o,N){for(var Z=-1,ie=t.length;++Z<ie;){var he=t[Z],ve=o(he);if(ve!=null&&(_e===n?ve===ve&&!wn(ve):N(ve,_e)))var _e=ve,Ee=he}return Ee}function rT(t,o,N,Z){var ie=t.length;for(N=st(N),N<0&&(N=-N>ie?0:ie+N),Z=Z===n||Z>ie?ie:st(Z),Z<0&&(Z+=ie),Z=N>Z?0:yh(Z);N<Z;)t[N++]=o;return t}function ed(t,o){var N=[];return Di(t,function(Z,ie,he){o(Z,ie,he)&&N.push(Z)}),N}function Xt(t,o,N,Z,ie){var he=-1,ve=t.length;for(N||(N=HT),ie||(ie=[]);++he<ve;){var _e=t[he];o>0&&N(_e)?o>1?Xt(_e,o-1,N,Z,ie):Ri(ie,_e):Z||(ie[ie.length]=_e)}return ie}var fu=Nd(),td=Nd(!0);function ii(t,o){return t&&fu(t,o,Zt)}function du(t,o){return t&&td(t,o,Zt)}function Fo(t,o){return Ii(o,function(N){return pi(t[N])})}function nr(t,o){o=Ui(o,t);for(var N=0,Z=o.length;t!=null&&N<Z;)t=t[si(o[N++])];return N&&N==Z?t:n}function nd(t,o,N){var Z=o(t);return it(t)?Z:Ri(Z,N(t))}function rn(t){return t==null?t===n?Ge:Y:Yi&&Yi in St(t)?xT(t):$T(t)}function hu(t,o){return t>o}function sT(t,o){return t!=null&&bt.call(t,o)}function oT(t,o){return t!=null&&o in St(t)}function aT(t,o,N){return t>=tn(o,N)&&t<Ht(o,N)}function pu(t,o,N){for(var Z=N?Qa:fo,ie=t[0].length,he=t.length,ve=he,_e=Me(he),Ee=1/0,je=[];ve--;){var Ue=t[ve];ve&&o&&(Ue=Ot(Ue,vn(o))),Ee=tn(Ue.length,Ee),_e[ve]=!N&&(o||ie>=120&&Ue.length>=120)?new er(ve&&Ue):n}Ue=t[0];var xe=-1,Je=_e[0];e:for(;++xe<ie&&je.length<Ee;){var Ze=Ue[xe],Ye=o?o(Ze):Ze;if(Ze=N||Ze!==0?Ze:0,!(Je?ss(Je,Ye):Z(je,Ye,N))){for(ve=he;--ve;){var at=_e[ve];if(!(at?ss(at,Ye):Z(t[ve],Ye,N)))continue e}Je&&Je.push(Ye),je.push(Ze)}}return je}function uT(t,o,N,Z){return ii(t,function(ie,he,ve){o(Z,N(ie),he,ve)}),Z}function hs(t,o,N){o=Ui(o,t),t=qd(t,o);var Z=t==null?t:t[si(Rn(o))];return Z==null?n:Tn(Z,t,N)}function id(t){return Bt(t)&&rn(t)==Q}function lT(t){return Bt(t)&&rn(t)==K}function cT(t){return Bt(t)&&rn(t)==me}function ps(t,o,N,Z,ie){return t===o?!0:t==null||o==null||!Bt(t)&&!Bt(o)?t!==t&&o!==o:fT(t,o,N,Z,ps,ie)}function fT(t,o,N,Z,ie,he){var ve=it(t),_e=it(o),Ee=ve?re:nn(t),je=_e?re:nn(o);Ee=Ee==Q?z:Ee,je=je==Q?z:je;var Ue=Ee==z,xe=je==z,Je=Ee==je;if(Je&&zi(t)){if(!zi(o))return!1;ve=!0,Ue=!1}if(Je&&!Ue)return he||(he=new qn),ve||Ur(t)?Bd(t,o,N,Z,ie,he):jT(t,o,Ee,N,Z,ie,he);if(!(N&_)){var Ze=Ue&&bt.call(t,"__wrapped__"),Ye=xe&&bt.call(o,"__wrapped__");if(Ze||Ye){var at=Ze?t.value():t,$e=Ye?o.value():o;return he||(he=new qn),ie(at,$e,N,Z,he)}}return Je?(he||(he=new qn),UT(t,o,N,Z,ie,he)):!1}function dT(t){return Bt(t)&&nn(t)==ye}function mu(t,o,N,Z){var ie=N.length,he=ie,ve=!Z;if(t==null)return!he;for(t=St(t);ie--;){var _e=N[ie];if(ve&&_e[2]?_e[1]!==t[_e[0]]:!(_e[0]in t))return!1}for(;++ie<he;){_e=N[ie];var Ee=_e[0],je=t[Ee],Ue=_e[1];if(ve&&_e[2]){if(je===n&&!(Ee in t))return!1}else{var xe=new qn;if(Z)var Je=Z(je,Ue,Ee,t,o,xe);if(!(Je===n?ps(Ue,je,_|b,Z,xe):Je))return!1}}return!0}function rd(t){if(!It(t)||VT(t))return!1;var o=pi(t)?d0:nb;return o.test(rr(t))}function hT(t){return Bt(t)&&rn(t)==Te}function pT(t){return Bt(t)&&nn(t)==Ie}function mT(t){return Bt(t)&&Vo(t.length)&&!!_t[rn(t)]}function sd(t){return typeof t=="function"?t:t==null?hn:typeof t=="object"?it(t)?ud(t[0],t[1]):ad(t):Oh(t)}function yu(t){if(!gs(t))return b0(t);var o=[];for(var N in St(t))bt.call(t,N)&&N!="constructor"&&o.push(N);return o}function yT(t){if(!It(t))return YT(t);var o=gs(t),N=[];for(var Z in t)Z=="constructor"&&(o||!bt.call(t,Z))||N.push(Z);return N}function gu(t,o){return t<o}function od(t,o){var N=-1,Z=fn(t)?Me(t.length):[];return Di(t,function(ie,he,ve){Z[++N]=o(ie,he,ve)}),Z}function ad(t){var o=Pu(t);return o.length==1&&o[0][2]?zd(o[0][0],o[0][1]):function(N){return N===t||mu(N,t,o)}}function ud(t,o){return Ru(t)&&xd(o)?zd(si(t),o):function(N){var Z=Ju(N,t);return Z===n&&Z===o?Gu(N,t):ps(o,Z,_|b)}}function Po(t,o,N,Z,ie){t!==o&&fu(o,function(he,ve){if(ie||(ie=new qn),It(he))gT(t,o,ve,N,Po,Z,ie);else{var _e=Z?Z(Bu(t,ve),he,ve+"",t,o,ie):n;_e===n&&(_e=he),lu(t,ve,_e)}},dn)}function gT(t,o,N,Z,ie,he,ve){var _e=Bu(t,N),Ee=Bu(o,N),je=ve.get(Ee);if(je){lu(t,N,je);return}var Ue=he?he(_e,Ee,N+"",t,o,ve):n,xe=Ue===n;if(xe){var Je=it(Ee),Ze=!Je&&zi(Ee),Ye=!Je&&!Ze&&Ur(Ee);Ue=Ee,Je||Ze||Ye?it(_e)?Ue=_e:jt(_e)?Ue=cn(_e):Ze?(xe=!1,Ue=vd(Ee,!0)):Ye?(xe=!1,Ue=Sd(Ee,!0)):Ue=[]:Ts(Ee)||sr(Ee)?(Ue=_e,sr(_e)?Ue=gh(_e):(!It(_e)||pi(_e))&&(Ue=Ud(Ee))):xe=!1}xe&&(ve.set(Ee,Ue),ie(Ue,Ee,Z,he,ve),ve.delete(Ee)),lu(t,N,Ue)}function ld(t,o){var N=t.length;if(N)return o+=o<0?N:0,hi(o,N)?t[o]:n}function cd(t,o,N){o.length?o=Ot(o,function(he){return it(he)?function(ve){return nr(ve,he.length===1?he[0]:he)}:he}):o=[hn];var Z=-1;o=Ot(o,vn(Xe()));var ie=od(t,function(he,ve,_e){var Ee=Ot(o,function(je){return je(he)});return{criteria:Ee,index:++Z,value:he}});return Jb(ie,function(he,ve){return AT(he,ve,N)})}function bT(t,o){return fd(t,o,function(N,Z){return Gu(t,Z)})}function fd(t,o,N){for(var Z=-1,ie=o.length,he={};++Z<ie;){var ve=o[Z],_e=nr(t,ve);N(_e,ve)&&ms(he,Ui(ve,t),_e)}return he}function TT(t){return function(o){return nr(o,t)}}function bu(t,o,N,Z){var ie=Z?qb:Cr,he=-1,ve=o.length,_e=t;for(t===o&&(o=cn(o)),N&&(_e=Ot(t,vn(N)));++he<ve;)for(var Ee=0,je=o[he],Ue=N?N(je):je;(Ee=ie(_e,Ue,Ee,Z))>-1;)_e!==t&&wo.call(_e,Ee,1),wo.call(t,Ee,1);return t}function dd(t,o){for(var N=t?o.length:0,Z=N-1;N--;){var ie=o[N];if(N==Z||ie!==he){var he=ie;hi(ie)?wo.call(t,ie,1):wu(t,ie)}}return t}function Tu(t,o){return t+ko(Hf()*(o-t+1))}function vT(t,o,N,Z){for(var ie=-1,he=Ht(_o((o-t)/(N||1)),0),ve=Me(he);he--;)ve[Z?he:++ie]=t,t+=N;return ve}function vu(t,o){var N="";if(!t||o<1||o>x)return N;do o%2&&(N+=t),o=ko(o/2),o&&(t+=t);while(o);return N}function ut(t,o){return Du(Wd(t,o,hn),t+"")}function ST(t){return Zf(xr(t))}function wT(t,o){var N=xr(t);return Wo(N,tr(o,0,N.length))}function ms(t,o,N,Z){if(!It(t))return t;o=Ui(o,t);for(var ie=-1,he=o.length,ve=he-1,_e=t;_e!=null&&++ie<he;){var Ee=si(o[ie]),je=N;if(Ee==="__proto__"||Ee==="constructor"||Ee==="prototype")return t;if(ie!=ve){var Ue=_e[Ee];je=Z?Z(Ue,Ee,_e):n,je===n&&(je=It(Ue)?Ue:hi(o[ie+1])?[]:{})}fs(_e,Ee,je),_e=_e[Ee]}return t}var hd=No?function(t,o){return No.set(t,o),t}:hn,LT=Lo?function(t,o){return Lo(t,"toString",{configurable:!0,enumerable:!1,value:Ku(o),writable:!0})}:hn;function _T(t){return Wo(xr(t))}function In(t,o,N){var Z=-1,ie=t.length;o<0&&(o=-o>ie?0:ie+o),N=N>ie?ie:N,N<0&&(N+=ie),ie=o>N?0:N-o>>>0,o>>>=0;for(var he=Me(ie);++Z<ie;)he[Z]=t[Z+o];return he}function kT(t,o){var N;return Di(t,function(Z,ie,he){return N=o(Z,ie,he),!N}),!!N}function Io(t,o,N){var Z=0,ie=t==null?Z:t.length;if(typeof o=="number"&&o===o&&ie<=J){for(;Z<ie;){var he=Z+ie>>>1,ve=t[he];ve!==null&&!wn(ve)&&(N?ve<=o:ve<o)?Z=he+1:ie=he}return ie}return Su(t,o,hn,N)}function Su(t,o,N,Z){var ie=0,he=t==null?0:t.length;if(he===0)return 0;o=N(o);for(var ve=o!==o,_e=o===null,Ee=wn(o),je=o===n;ie<he;){var Ue=ko((ie+he)/2),xe=N(t[Ue]),Je=xe!==n,Ze=xe===null,Ye=xe===xe,at=wn(xe);if(ve)var $e=Z||Ye;else je?$e=Ye&&(Z||Je):_e?$e=Ye&&Je&&(Z||!Ze):Ee?$e=Ye&&Je&&!Ze&&(Z||!at):Ze||at?$e=!1:$e=Z?xe<=o:xe<o;$e?ie=Ue+1:he=Ue}return tn(he,W)}function pd(t,o){for(var N=-1,Z=t.length,ie=0,he=[];++N<Z;){var ve=t[N],_e=o?o(ve):ve;if(!N||!Jn(_e,Ee)){var Ee=_e;he[ie++]=ve===0?0:ve}}return he}function md(t){return typeof t=="number"?t:wn(t)?T:+t}function Sn(t){if(typeof t=="string")return t;if(it(t))return Ot(t,Sn)+"";if(wn(t))return Kf?Kf.call(t):"";var o=t+"";return o=="0"&&1/t==-I?"-0":o}function ji(t,o,N){var Z=-1,ie=fo,he=t.length,ve=!0,_e=[],Ee=_e;if(N)ve=!1,ie=Qa;else if(he>=l){var je=o?null:BT(t);if(je)return po(je);ve=!1,ie=ss,Ee=new er}else Ee=o?[]:_e;e:for(;++Z<he;){var Ue=t[Z],xe=o?o(Ue):Ue;if(Ue=N||Ue!==0?Ue:0,ve&&xe===xe){for(var Je=Ee.length;Je--;)if(Ee[Je]===xe)continue e;o&&Ee.push(xe),_e.push(Ue)}else ie(Ee,xe,N)||(Ee!==_e&&Ee.push(xe),_e.push(Ue))}return _e}function wu(t,o){return o=Ui(o,t),t=qd(t,o),t==null||delete t[si(Rn(o))]}function yd(t,o,N,Z){return ms(t,o,N(nr(t,o)),Z)}function Ro(t,o,N,Z){for(var ie=t.length,he=Z?ie:-1;(Z?he--:++he<ie)&&o(t[he],he,t););return N?In(t,Z?0:he,Z?he+1:ie):In(t,Z?he+1:0,Z?ie:he)}function gd(t,o){var N=t;return N instanceof ft&&(N=N.value()),Xa(o,function(Z,ie){return ie.func.apply(ie.thisArg,Ri([Z],ie.args))},N)}function Lu(t,o,N){var Z=t.length;if(Z<2)return Z?ji(t[0]):[];for(var ie=-1,he=Me(Z);++ie<Z;)for(var ve=t[ie],_e=-1;++_e<Z;)_e!=ie&&(he[ie]=ds(he[ie]||ve,t[_e],o,N));return ji(Xt(he,1),o,N)}function bd(t,o,N){for(var Z=-1,ie=t.length,he=o.length,ve={};++Z<ie;){var _e=Z<he?o[Z]:n;N(ve,t[Z],_e)}return ve}function _u(t){return jt(t)?t:[]}function ku(t){return typeof t=="function"?t:hn}function Ui(t,o){return it(t)?t:Ru(t,o)?[t]:Kd(gt(t))}var NT=ut;function xi(t,o,N){var Z=t.length;return N=N===n?Z:N,!o&&N>=Z?t:In(t,o,N)}var Td=h0||function(t){return Qt.clearTimeout(t)};function vd(t,o){if(o)return t.slice();var N=t.length,Z=zf?zf(N):new t.constructor(N);return t.copy(Z),Z}function Nu(t){var o=new t.constructor(t.byteLength);return new vo(o).set(new vo(t)),o}function OT(t,o){var N=o?Nu(t.buffer):t.buffer;return new t.constructor(N,t.byteOffset,t.byteLength)}function CT(t){var o=new t.constructor(t.source,bn.exec(t));return o.lastIndex=t.lastIndex,o}function ET(t){return cs?St(cs.call(t)):{}}function Sd(t,o){var N=o?Nu(t.buffer):t.buffer;return new t.constructor(N,t.byteOffset,t.length)}function wd(t,o){if(t!==o){var N=t!==n,Z=t===null,ie=t===t,he=wn(t),ve=o!==n,_e=o===null,Ee=o===o,je=wn(o);if(!_e&&!je&&!he&&t>o||he&&ve&&Ee&&!_e&&!je||Z&&ve&&Ee||!N&&Ee||!ie)return 1;if(!Z&&!he&&!je&&t<o||je&&N&&ie&&!Z&&!he||_e&&N&&ie||!ve&&ie||!Ee)return-1}return 0}function AT(t,o,N){for(var Z=-1,ie=t.criteria,he=o.criteria,ve=ie.length,_e=N.length;++Z<ve;){var Ee=wd(ie[Z],he[Z]);if(Ee){if(Z>=_e)return Ee;var je=N[Z];return Ee*(je=="desc"?-1:1)}}return t.index-o.index}function Ld(t,o,N,Z){for(var ie=-1,he=t.length,ve=N.length,_e=-1,Ee=o.length,je=Ht(he-ve,0),Ue=Me(Ee+je),xe=!Z;++_e<Ee;)Ue[_e]=o[_e];for(;++ie<ve;)(xe||ie<he)&&(Ue[N[ie]]=t[ie]);for(;je--;)Ue[_e++]=t[ie++];return Ue}function _d(t,o,N,Z){for(var ie=-1,he=t.length,ve=-1,_e=N.length,Ee=-1,je=o.length,Ue=Ht(he-_e,0),xe=Me(Ue+je),Je=!Z;++ie<Ue;)xe[ie]=t[ie];for(var Ze=ie;++Ee<je;)xe[Ze+Ee]=o[Ee];for(;++ve<_e;)(Je||ie<he)&&(xe[Ze+N[ve]]=t[ie++]);return xe}function cn(t,o){var N=-1,Z=t.length;for(o||(o=Me(Z));++N<Z;)o[N]=t[N];return o}function ri(t,o,N,Z){var ie=!N;N||(N={});for(var he=-1,ve=o.length;++he<ve;){var _e=o[he],Ee=Z?Z(N[_e],t[_e],_e,N,t):n;Ee===n&&(Ee=t[_e]),ie?ci(N,_e,Ee):fs(N,_e,Ee)}return N}function FT(t,o){return ri(t,Iu(t),o)}function PT(t,o){return ri(t,Dd(t),o)}function Mo(t,o){return function(N,Z){var ie=it(N)?Db:eT,he=o?o():{};return ie(N,t,Xe(Z,2),he)}}function Br(t){return ut(function(o,N){var Z=-1,ie=N.length,he=ie>1?N[ie-1]:n,ve=ie>2?N[2]:n;for(he=t.length>3&&typeof he=="function"?(ie--,he):n,ve&&sn(N[0],N[1],ve)&&(he=ie<3?n:he,ie=1),o=St(o);++Z<ie;){var _e=N[Z];_e&&t(o,_e,Z,he)}return o})}function kd(t,o){return function(N,Z){if(N==null)return N;if(!fn(N))return t(N,Z);for(var ie=N.length,he=o?ie:-1,ve=St(N);(o?he--:++he<ie)&&Z(ve[he],he,ve)!==!1;);return N}}function Nd(t){return function(o,N,Z){for(var ie=-1,he=St(o),ve=Z(o),_e=ve.length;_e--;){var Ee=ve[t?_e:++ie];if(N(he[Ee],Ee,he)===!1)break}return o}}function IT(t,o,N){var Z=o&v,ie=ys(t);function he(){var ve=this&&this!==Qt&&this instanceof he?ie:t;return ve.apply(Z?N:this,arguments)}return he}function Od(t){return function(o){o=gt(o);var N=Er(o)?Wn(o):n,Z=N?N[0]:o.charAt(0),ie=N?xi(N,1).join(""):o.slice(1);return Z[t]()+ie}}function Dr(t){return function(o){return Xa(kh(_h(o).replace(Lb,"")),t,"")}}function ys(t){return function(){var o=arguments;switch(o.length){case 0:return new t;case 1:return new t(o[0]);case 2:return new t(o[0],o[1]);case 3:return new t(o[0],o[1],o[2]);case 4:return new t(o[0],o[1],o[2],o[3]);case 5:return new t(o[0],o[1],o[2],o[3],o[4]);case 6:return new t(o[0],o[1],o[2],o[3],o[4],o[5]);case 7:return new t(o[0],o[1],o[2],o[3],o[4],o[5],o[6])}var N=Mr(t.prototype),Z=t.apply(N,o);return It(Z)?Z:N}}function RT(t,o,N){var Z=ys(t);function ie(){for(var he=arguments.length,ve=Me(he),_e=he,Ee=jr(ie);_e--;)ve[_e]=arguments[_e];var je=he<3&&ve[0]!==Ee&&ve[he-1]!==Ee?[]:Mi(ve,Ee);if(he-=je.length,he<N)return Pd(t,o,Bo,ie.placeholder,n,ve,je,n,n,N-he);var Ue=this&&this!==Qt&&this instanceof ie?Z:t;return Tn(Ue,this,ve)}return ie}function Cd(t){return function(o,N,Z){var ie=St(o);if(!fn(o)){var he=Xe(N,3);o=Zt(o),N=function(_e){return he(ie[_e],_e,ie)}}var ve=t(o,N,Z);return ve>-1?ie[he?o[ve]:ve]:n}}function Ed(t){return di(function(o){var N=o.length,Z=N,ie=Fn.prototype.thru;for(t&&o.reverse();Z--;){var he=o[Z];if(typeof he!="function")throw new An(u);if(ie&&!ve&&xo(he)=="wrapper")var ve=new Fn([],!0)}for(Z=ve?Z:N;++Z<N;){he=o[Z];var _e=xo(he),Ee=_e=="wrapper"?Fu(he):n;Ee&&Mu(Ee[0])&&Ee[1]==(A|k|C|f)&&!Ee[4].length&&Ee[9]==1?ve=ve[xo(Ee[0])].apply(ve,Ee[3]):ve=he.length==1&&Mu(he)?ve[_e]():ve.thru(he)}return function(){var je=arguments,Ue=je[0];if(ve&&je.length==1&&it(Ue))return ve.plant(Ue).value();for(var xe=0,Je=N?o[xe].apply(this,je):Ue;++xe<N;)Je=o[xe].call(this,Je);return Je}})}function Bo(t,o,N,Z,ie,he,ve,_e,Ee,je){var Ue=o&A,xe=o&v,Je=o&h,Ze=o&(k|B),Ye=o&E,at=Je?n:ys(t);function $e(){for(var lt=arguments.length,ht=Me(lt),Ln=lt;Ln--;)ht[Ln]=arguments[Ln];if(Ze)var on=jr($e),_n=Hb(ht,on);if(Z&&(ht=Ld(ht,Z,ie,Ze)),he&&(ht=_d(ht,he,ve,Ze)),lt-=_n,Ze&&lt<je){var Ut=Mi(ht,on);return Pd(t,o,Bo,$e.placeholder,N,ht,Ut,_e,Ee,je-lt)}var Gn=xe?N:this,yi=Je?Gn[t]:t;return lt=ht.length,_e?ht=ev(ht,_e):Ye&&lt>1&&ht.reverse(),Ue&&Ee<lt&&(ht.length=Ee),this&&this!==Qt&&this instanceof $e&&(yi=at||ys(yi)),yi.apply(Gn,ht)}return $e}function Ad(t,o){return function(N,Z){return uT(N,t,o(Z),{})}}function Do(t,o){return function(N,Z){var ie;if(N===n&&Z===n)return o;if(N!==n&&(ie=N),Z!==n){if(ie===n)return Z;typeof N=="string"||typeof Z=="string"?(N=Sn(N),Z=Sn(Z)):(N=md(N),Z=md(Z)),ie=t(N,Z)}return ie}}function Ou(t){return di(function(o){return o=Ot(o,vn(Xe())),ut(function(N){var Z=this;return t(o,function(ie){return Tn(ie,Z,N)})})})}function jo(t,o){o=o===n?" ":Sn(o);var N=o.length;if(N<2)return N?vu(o,t):o;var Z=vu(o,_o(t/Ar(o)));return Er(o)?xi(Wn(Z),0,t).join(""):Z.slice(0,t)}function MT(t,o,N,Z){var ie=o&v,he=ys(t);function ve(){for(var _e=-1,Ee=arguments.length,je=-1,Ue=Z.length,xe=Me(Ue+Ee),Je=this&&this!==Qt&&this instanceof ve?he:t;++je<Ue;)xe[je]=Z[je];for(;Ee--;)xe[je++]=arguments[++_e];return Tn(Je,ie?N:this,xe)}return ve}function Fd(t){return function(o,N,Z){return Z&&typeof Z!="number"&&sn(o,N,Z)&&(N=Z=n),o=mi(o),N===n?(N=o,o=0):N=mi(N),Z=Z===n?o<N?1:-1:mi(Z),vT(o,N,Z,t)}}function Uo(t){return function(o,N){return typeof o=="string"&&typeof N=="string"||(o=Mn(o),N=Mn(N)),t(o,N)}}function Pd(t,o,N,Z,ie,he,ve,_e,Ee,je){var Ue=o&k,xe=Ue?ve:n,Je=Ue?n:ve,Ze=Ue?he:n,Ye=Ue?n:he;o|=Ue?C:R,o&=~(Ue?R:C),o&m||(o&=-4);var at=[t,o,ie,Ze,xe,Ye,Je,_e,Ee,je],$e=N.apply(n,at);return Mu(t)&&Jd($e,at),$e.placeholder=Z,Gd($e,t,o)}function Cu(t){var o=Gt[t];return function(N,Z){if(N=Mn(N),Z=Z==null?0:tn(st(Z),292),Z&&Gf(N)){var ie=(gt(N)+"e").split("e"),he=o(ie[0]+"e"+(+ie[1]+Z));return ie=(gt(he)+"e").split("e"),+(ie[0]+"e"+(+ie[1]-Z))}return o(N)}}var BT=Ir&&1/po(new Ir([,-0]))[1]==I?function(t){return new Ir(t)}:Qu;function Id(t){return function(o){var N=nn(o);return N==ye?ru(o):N==Ie?$b(o):Gb(o,t(o))}}function fi(t,o,N,Z,ie,he,ve,_e){var Ee=o&h;if(!Ee&&typeof t!="function")throw new An(u);var je=Z?Z.length:0;if(je||(o&=-97,Z=ie=n),ve=ve===n?ve:Ht(st(ve),0),_e=_e===n?_e:st(_e),je-=ie?ie.length:0,o&R){var Ue=Z,xe=ie;Z=ie=n}var Je=Ee?n:Fu(t),Ze=[t,o,N,Z,ie,Ue,xe,he,ve,_e];if(Je&&XT(Ze,Je),t=Ze[0],o=Ze[1],N=Ze[2],Z=Ze[3],ie=Ze[4],_e=Ze[9]=Ze[9]===n?Ee?0:t.length:Ht(Ze[9]-je,0),!_e&&o&(k|B)&&(o&=-25),!o||o==v)var Ye=IT(t,o,N);else o==k||o==B?Ye=RT(t,o,_e):(o==C||o==(v|C))&&!ie.length?Ye=MT(t,o,N,Z):Ye=Bo.apply(n,Ze);var at=Je?hd:Jd;return Gd(at(Ye,Ze),t,o)}function Rd(t,o,N,Z){return t===n||Jn(t,Pr[N])&&!bt.call(Z,N)?o:t}function Md(t,o,N,Z,ie,he){return It(t)&&It(o)&&(he.set(o,t),Po(t,o,n,Md,he),he.delete(o)),t}function DT(t){return Ts(t)?n:t}function Bd(t,o,N,Z,ie,he){var ve=N&_,_e=t.length,Ee=o.length;if(_e!=Ee&&!(ve&&Ee>_e))return!1;var je=he.get(t),Ue=he.get(o);if(je&&Ue)return je==o&&Ue==t;var xe=-1,Je=!0,Ze=N&b?new er:n;for(he.set(t,o),he.set(o,t);++xe<_e;){var Ye=t[xe],at=o[xe];if(Z)var $e=ve?Z(at,Ye,xe,o,t,he):Z(Ye,at,xe,t,o,he);if($e!==n){if($e)continue;Je=!1;break}if(Ze){if(!Ya(o,function(lt,ht){if(!ss(Ze,ht)&&(Ye===lt||ie(Ye,lt,N,Z,he)))return Ze.push(ht)})){Je=!1;break}}else if(!(Ye===at||ie(Ye,at,N,Z,he))){Je=!1;break}}return he.delete(t),he.delete(o),Je}function jT(t,o,N,Z,ie,he,ve){switch(N){case j:if(t.byteLength!=o.byteLength||t.byteOffset!=o.byteOffset)return!1;t=t.buffer,o=o.buffer;case K:return!(t.byteLength!=o.byteLength||!he(new vo(t),new vo(o)));case ne:case me:case de:return Jn(+t,+o);case Ae:return t.name==o.name&&t.message==o.message;case Te:case Ce:return t==o+"";case ye:var _e=ru;case Ie:var Ee=Z&_;if(_e||(_e=po),t.size!=o.size&&!Ee)return!1;var je=ve.get(t);if(je)return je==o;Z|=b,ve.set(t,o);var Ue=Bd(_e(t),_e(o),Z,ie,he,ve);return ve.delete(t),Ue;case We:if(cs)return cs.call(t)==cs.call(o)}return!1}function UT(t,o,N,Z,ie,he){var ve=N&_,_e=Eu(t),Ee=_e.length,je=Eu(o),Ue=je.length;if(Ee!=Ue&&!ve)return!1;for(var xe=Ee;xe--;){var Je=_e[xe];if(!(ve?Je in o:bt.call(o,Je)))return!1}var Ze=he.get(t),Ye=he.get(o);if(Ze&&Ye)return Ze==o&&Ye==t;var at=!0;he.set(t,o),he.set(o,t);for(var $e=ve;++xe<Ee;){Je=_e[xe];var lt=t[Je],ht=o[Je];if(Z)var Ln=ve?Z(ht,lt,Je,o,t,he):Z(lt,ht,Je,t,o,he);if(!(Ln===n?lt===ht||ie(lt,ht,N,Z,he):Ln)){at=!1;break}$e||($e=Je=="constructor")}if(at&&!$e){var on=t.constructor,_n=o.constructor;on!=_n&&"constructor"in t&&"constructor"in o&&!(typeof on=="function"&&on instanceof on&&typeof _n=="function"&&_n instanceof _n)&&(at=!1)}return he.delete(t),he.delete(o),at}function di(t){return Du(Wd(t,n,Xd),t+"")}function Eu(t){return nd(t,Zt,Iu)}function Au(t){return nd(t,dn,Dd)}var Fu=No?function(t){return No.get(t)}:Qu;function xo(t){for(var o=t.name+"",N=Rr[o],Z=bt.call(Rr,o)?N.length:0;Z--;){var ie=N[Z],he=ie.func;if(he==null||he==t)return ie.name}return o}function jr(t){var o=bt.call(fe,"placeholder")?fe:t;return o.placeholder}function Xe(){var t=fe.iteratee||Vu;return t=t===Vu?sd:t,arguments.length?t(arguments[0],arguments[1]):t}function zo(t,o){var N=t.__data__;return KT(o)?N[typeof o=="string"?"string":"hash"]:N.map}function Pu(t){for(var o=Zt(t),N=o.length;N--;){var Z=o[N],ie=t[Z];o[N]=[Z,ie,xd(ie)]}return o}function ir(t,o){var N=Qb(t,o);return rd(N)?N:n}function xT(t){var o=bt.call(t,Yi),N=t[Yi];try{t[Yi]=n;var Z=!0}catch{}var ie=bo.call(t);return Z&&(o?t[Yi]=N:delete t[Yi]),ie}var Iu=ou?function(t){return t==null?[]:(t=St(t),Ii(ou(t),function(o){return qf.call(t,o)}))}:Xu,Dd=ou?function(t){for(var o=[];t;)Ri(o,Iu(t)),t=So(t);return o}:Xu,nn=rn;(au&&nn(new au(new ArrayBuffer(1)))!=j||as&&nn(new as)!=ye||uu&&nn(uu.resolve())!=V||Ir&&nn(new Ir)!=Ie||us&&nn(new us)!=ee)&&(nn=function(t){var o=rn(t),N=o==z?t.constructor:n,Z=N?rr(N):"";if(Z)switch(Z){case w0:return j;case L0:return ye;case _0:return V;case k0:return Ie;case N0:return ee}return o});function zT(t,o,N){for(var Z=-1,ie=N.length;++Z<ie;){var he=N[Z],ve=he.size;switch(he.type){case"drop":t+=ve;break;case"dropRight":o-=ve;break;case"take":o=tn(o,t+ve);break;case"takeRight":t=Ht(t,o-ve);break}}return{start:t,end:o}}function WT(t){var o=t.match(kr);return o?o[1].split(Nr):[]}function jd(t,o,N){o=Ui(o,t);for(var Z=-1,ie=o.length,he=!1;++Z<ie;){var ve=si(o[Z]);if(!(he=t!=null&&N(t,ve)))break;t=t[ve]}return he||++Z!=ie?he:(ie=t==null?0:t.length,!!ie&&Vo(ie)&&hi(ve,ie)&&(it(t)||sr(t)))}function qT(t){var o=t.length,N=new t.constructor(o);return o&&typeof t[0]=="string"&&bt.call(t,"index")&&(N.index=t.index,N.input=t.input),N}function Ud(t){return typeof t.constructor=="function"&&!gs(t)?Mr(So(t)):{}}function JT(t,o,N){var Z=t.constructor;switch(o){case K:return Nu(t);case ne:case me:return new Z(+t);case j:return OT(t,N);case G:case ce:case $:case be:case Se:case Be:case we:case Pe:case oe:return Sd(t,N);case ye:return new Z;case de:case Ce:return new Z(t);case Te:return CT(t);case Ie:return new Z;case We:return ET(t)}}function GT(t,o){var N=o.length;if(!N)return t;var Z=N-1;return o[Z]=(N>1?"& ":"")+o[Z],o=o.join(N>2?", ":" "),t.replace(en,`{
890
+ import Data.Text (Text)`),this._options.useList||this.emitLine("import Data.Vector (Vector)")),this.forEachTopLevel("leading-and-interposing",(m,k)=>this.emitTopLevelDefinition(m,k),m=>this.namedTypeToNameForTopLevel(m)===void 0),this.forEachNamedType("leading-and-interposing",(m,k)=>this.emitClassDefinition(m,k),(m,k)=>this.emitEnumDefinition(m,k),(m,k)=>this.emitUnionDefinition(m,k)),this.forEachTopLevel("leading-and-interposing",(m,k)=>this.emitTopLevelFunctions(k)),this.forEachNamedType("leading-and-interposing",(m,k)=>this.emitClassFunctions(m,k),(m,k)=>this.emitEnumFunctions(m,k),(m,k)=>this.emitUnionFunctions(m,k)),!this._options.justTypes&&this.ensureBlankLine()}}e.HaskellRenderer=b})(Jl)),Jl}var Li={},Vs={exports:{}};var X_=Vs.exports,hm;function Y_(){return hm||(hm=1,(function(e,i){(function(){var n,a="4.17.21",l=200,d="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",u="Expected a function",c="Invalid `variable` option passed into `_.template`",w="__lodash_hash_undefined__",U=500,F="__lodash_placeholder__",O=1,M=2,L=4,_=1,b=2,v=1,h=2,m=4,k=8,B=16,C=32,R=64,A=128,f=256,E=512,S=30,P="...",y=800,r=16,s=1,p=2,g=3,I=1/0,x=9007199254740991,q=17976931348623157e292,T=NaN,D=4294967295,W=D-1,J=D>>>1,X=[["ary",A],["bind",v],["bindKey",h],["curry",k],["curryRight",B],["flip",E],["partial",C],["partialRight",R],["rearg",f]],Q="[object Arguments]",re="[object Array]",se="[object AsyncFunction]",ne="[object Boolean]",me="[object Date]",ge="[object DOMException]",Ae="[object Error]",pe="[object Function]",le="[object GeneratorFunction]",ye="[object Map]",de="[object Number]",Y="[object Null]",z="[object Object]",V="[object Promise]",ue="[object Proxy]",Te="[object RegExp]",Ie="[object Set]",Ce="[object String]",We="[object Symbol]",Ge="[object Undefined]",ee="[object WeakMap]",te="[object WeakSet]",K="[object ArrayBuffer]",j="[object DataView]",G="[object Float32Array]",ce="[object Float64Array]",$="[object Int8Array]",be="[object Int16Array]",Se="[object Int32Array]",Be="[object Uint8Array]",we="[object Uint8ClampedArray]",Pe="[object Uint16Array]",oe="[object Uint32Array]",Re=/\b__p \+= '';/g,ze=/\b(__p \+=) '' \+/g,H=/(__e\(.*?\)|\b__t\)) \+\n'';/g,ke=/&(?:amp|lt|gt|quot|#39);/g,Ne=/[&<>"']/g,ae=RegExp(ke.source),Le=RegExp(Ne.source),Fe=/<%-([\s\S]+?)%>/g,He=/<%([\s\S]+?)%>/g,qe=/<%=([\s\S]+?)%>/g,Ke=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,ct=/^\w*$/,xn=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,wt=/[\\^$.*+?()[\]{}|]/g,dt=RegExp(wt.source),Pt=/^\s+/,Vt=/\s/,en=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,kr=/\{\n\/\* \[wrapped with (.+)\] \*/,Nr=/,? & /,Mt=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,ln=/[()=,{}\[\]\/\s]/,Jt=/\\(\\)?/g,zn=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,bn=/\w*$/,ao=/^[-+]0x[0-9a-f]+$/i,tb=/^0b[01]+$/i,nb=/^\[object .+?Constructor\]$/,ib=/^0o[0-7]+$/i,rb=/^(?:0|[1-9]\d*)$/,sb=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,uo=/($^)/,ob=/['\n\r\u2028\u2029\\]/g,lo="\\ud800-\\udfff",ab="\\u0300-\\u036f",ub="\\ufe20-\\ufe2f",lb="\\u20d0-\\u20ff",rf=ab+ub+lb,sf="\\u2700-\\u27bf",of="a-z\\xdf-\\xf6\\xf8-\\xff",cb="\\xac\\xb1\\xd7\\xf7",fb="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",db="\\u2000-\\u206f",hb=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",af="A-Z\\xc0-\\xd6\\xd8-\\xde",uf="\\ufe0e\\ufe0f",lf=cb+fb+db+hb,qa="['’]",pb="["+lo+"]",cf="["+lf+"]",co="["+rf+"]",ff="\\d+",mb="["+sf+"]",df="["+of+"]",hf="[^"+lo+lf+ff+sf+of+af+"]",Ja="\\ud83c[\\udffb-\\udfff]",yb="(?:"+co+"|"+Ja+")",pf="[^"+lo+"]",Ga="(?:\\ud83c[\\udde6-\\uddff]){2}",Ha="[\\ud800-\\udbff][\\udc00-\\udfff]",Or="["+af+"]",mf="\\u200d",yf="(?:"+df+"|"+hf+")",gb="(?:"+Or+"|"+hf+")",gf="(?:"+qa+"(?:d|ll|m|re|s|t|ve))?",bf="(?:"+qa+"(?:D|LL|M|RE|S|T|VE))?",Tf=yb+"?",vf="["+uf+"]?",bb="(?:"+mf+"(?:"+[pf,Ga,Ha].join("|")+")"+vf+Tf+")*",Tb="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",vb="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Sf=vf+Tf+bb,Sb="(?:"+[mb,Ga,Ha].join("|")+")"+Sf,wb="(?:"+[pf+co+"?",co,Ga,Ha,pb].join("|")+")",Lb=RegExp(qa,"g"),_b=RegExp(co,"g"),Ka=RegExp(Ja+"(?="+Ja+")|"+wb+Sf,"g"),kb=RegExp([Or+"?"+df+"+"+gf+"(?="+[cf,Or,"$"].join("|")+")",gb+"+"+bf+"(?="+[cf,Or+yf,"$"].join("|")+")",Or+"?"+yf+"+"+gf,Or+"+"+bf,vb,Tb,ff,Sb].join("|"),"g"),Nb=RegExp("["+mf+lo+rf+uf+"]"),Ob=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Cb=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],Eb=-1,_t={};_t[G]=_t[ce]=_t[$]=_t[be]=_t[Se]=_t[Be]=_t[we]=_t[Pe]=_t[oe]=!0,_t[Q]=_t[re]=_t[K]=_t[ne]=_t[j]=_t[me]=_t[Ae]=_t[pe]=_t[ye]=_t[de]=_t[z]=_t[Te]=_t[Ie]=_t[Ce]=_t[ee]=!1;var Lt={};Lt[Q]=Lt[re]=Lt[K]=Lt[j]=Lt[ne]=Lt[me]=Lt[G]=Lt[ce]=Lt[$]=Lt[be]=Lt[Se]=Lt[ye]=Lt[de]=Lt[z]=Lt[Te]=Lt[Ie]=Lt[Ce]=Lt[We]=Lt[Be]=Lt[we]=Lt[Pe]=Lt[oe]=!0,Lt[Ae]=Lt[pe]=Lt[ee]=!1;var Ab={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},Fb={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},Pb={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},Ib={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Rb=parseFloat,Mb=parseInt,wf=typeof Dn=="object"&&Dn&&Dn.Object===Object&&Dn,Bb=typeof self=="object"&&self&&self.Object===Object&&self,Qt=wf||Bb||Function("return this")(),Va=i&&!i.nodeType&&i,Xi=Va&&!0&&e&&!e.nodeType&&e,Lf=Xi&&Xi.exports===Va,Za=Lf&&wf.process,Cn=(function(){try{var Oe=Xi&&Xi.require&&Xi.require("util").types;return Oe||Za&&Za.binding&&Za.binding("util")}catch{}})(),_f=Cn&&Cn.isArrayBuffer,kf=Cn&&Cn.isDate,Nf=Cn&&Cn.isMap,Of=Cn&&Cn.isRegExp,Cf=Cn&&Cn.isSet,Ef=Cn&&Cn.isTypedArray;function Tn(Oe,De,Me){switch(Me.length){case 0:return Oe.call(De);case 1:return Oe.call(De,Me[0]);case 2:return Oe.call(De,Me[0],Me[1]);case 3:return Oe.call(De,Me[0],Me[1],Me[2])}return Oe.apply(De,Me)}function Db(Oe,De,Me,Ve){for(var nt=-1,yt=Oe==null?0:Oe.length;++nt<yt;){var Gt=Oe[nt];De(Ve,Gt,Me(Gt),Oe)}return Ve}function En(Oe,De){for(var Me=-1,Ve=Oe==null?0:Oe.length;++Me<Ve&&De(Oe[Me],Me,Oe)!==!1;);return Oe}function jb(Oe,De){for(var Me=Oe==null?0:Oe.length;Me--&&De(Oe[Me],Me,Oe)!==!1;);return Oe}function Af(Oe,De){for(var Me=-1,Ve=Oe==null?0:Oe.length;++Me<Ve;)if(!De(Oe[Me],Me,Oe))return!1;return!0}function Ii(Oe,De){for(var Me=-1,Ve=Oe==null?0:Oe.length,nt=0,yt=[];++Me<Ve;){var Gt=Oe[Me];De(Gt,Me,Oe)&&(yt[nt++]=Gt)}return yt}function fo(Oe,De){var Me=Oe==null?0:Oe.length;return!!Me&&Cr(Oe,De,0)>-1}function Qa(Oe,De,Me){for(var Ve=-1,nt=Oe==null?0:Oe.length;++Ve<nt;)if(Me(De,Oe[Ve]))return!0;return!1}function Ot(Oe,De){for(var Me=-1,Ve=Oe==null?0:Oe.length,nt=Array(Ve);++Me<Ve;)nt[Me]=De(Oe[Me],Me,Oe);return nt}function Ri(Oe,De){for(var Me=-1,Ve=De.length,nt=Oe.length;++Me<Ve;)Oe[nt+Me]=De[Me];return Oe}function Xa(Oe,De,Me,Ve){var nt=-1,yt=Oe==null?0:Oe.length;for(Ve&&yt&&(Me=Oe[++nt]);++nt<yt;)Me=De(Me,Oe[nt],nt,Oe);return Me}function Ub(Oe,De,Me,Ve){var nt=Oe==null?0:Oe.length;for(Ve&&nt&&(Me=Oe[--nt]);nt--;)Me=De(Me,Oe[nt],nt,Oe);return Me}function Ya(Oe,De){for(var Me=-1,Ve=Oe==null?0:Oe.length;++Me<Ve;)if(De(Oe[Me],Me,Oe))return!0;return!1}var xb=$a("length");function zb(Oe){return Oe.split("")}function Wb(Oe){return Oe.match(Mt)||[]}function Ff(Oe,De,Me){var Ve;return Me(Oe,function(nt,yt,Gt){if(De(nt,yt,Gt))return Ve=yt,!1}),Ve}function ho(Oe,De,Me,Ve){for(var nt=Oe.length,yt=Me+(Ve?1:-1);Ve?yt--:++yt<nt;)if(De(Oe[yt],yt,Oe))return yt;return-1}function Cr(Oe,De,Me){return De===De?e0(Oe,De,Me):ho(Oe,Pf,Me)}function qb(Oe,De,Me,Ve){for(var nt=Me-1,yt=Oe.length;++nt<yt;)if(Ve(Oe[nt],De))return nt;return-1}function Pf(Oe){return Oe!==Oe}function If(Oe,De){var Me=Oe==null?0:Oe.length;return Me?tu(Oe,De)/Me:T}function $a(Oe){return function(De){return De==null?n:De[Oe]}}function eu(Oe){return function(De){return Oe==null?n:Oe[De]}}function Rf(Oe,De,Me,Ve,nt){return nt(Oe,function(yt,Gt,St){Me=Ve?(Ve=!1,yt):De(Me,yt,Gt,St)}),Me}function Jb(Oe,De){var Me=Oe.length;for(Oe.sort(De);Me--;)Oe[Me]=Oe[Me].value;return Oe}function tu(Oe,De){for(var Me,Ve=-1,nt=Oe.length;++Ve<nt;){var yt=De(Oe[Ve]);yt!==n&&(Me=Me===n?yt:Me+yt)}return Me}function nu(Oe,De){for(var Me=-1,Ve=Array(Oe);++Me<Oe;)Ve[Me]=De(Me);return Ve}function Gb(Oe,De){return Ot(De,function(Me){return[Me,Oe[Me]]})}function Mf(Oe){return Oe&&Oe.slice(0,Uf(Oe)+1).replace(Pt,"")}function vn(Oe){return function(De){return Oe(De)}}function iu(Oe,De){return Ot(De,function(Me){return Oe[Me]})}function ss(Oe,De){return Oe.has(De)}function Bf(Oe,De){for(var Me=-1,Ve=Oe.length;++Me<Ve&&Cr(De,Oe[Me],0)>-1;);return Me}function Df(Oe,De){for(var Me=Oe.length;Me--&&Cr(De,Oe[Me],0)>-1;);return Me}function Hb(Oe,De){for(var Me=Oe.length,Ve=0;Me--;)Oe[Me]===De&&++Ve;return Ve}var Kb=eu(Ab),Vb=eu(Fb);function Zb(Oe){return"\\"+Ib[Oe]}function Qb(Oe,De){return Oe==null?n:Oe[De]}function Er(Oe){return Nb.test(Oe)}function Xb(Oe){return Ob.test(Oe)}function Yb(Oe){for(var De,Me=[];!(De=Oe.next()).done;)Me.push(De.value);return Me}function ru(Oe){var De=-1,Me=Array(Oe.size);return Oe.forEach(function(Ve,nt){Me[++De]=[nt,Ve]}),Me}function jf(Oe,De){return function(Me){return Oe(De(Me))}}function Mi(Oe,De){for(var Me=-1,Ve=Oe.length,nt=0,yt=[];++Me<Ve;){var Gt=Oe[Me];(Gt===De||Gt===F)&&(Oe[Me]=F,yt[nt++]=Me)}return yt}function po(Oe){var De=-1,Me=Array(Oe.size);return Oe.forEach(function(Ve){Me[++De]=Ve}),Me}function $b(Oe){var De=-1,Me=Array(Oe.size);return Oe.forEach(function(Ve){Me[++De]=[Ve,Ve]}),Me}function e0(Oe,De,Me){for(var Ve=Me-1,nt=Oe.length;++Ve<nt;)if(Oe[Ve]===De)return Ve;return-1}function t0(Oe,De,Me){for(var Ve=Me+1;Ve--;)if(Oe[Ve]===De)return Ve;return Ve}function Ar(Oe){return Er(Oe)?i0(Oe):xb(Oe)}function Wn(Oe){return Er(Oe)?r0(Oe):zb(Oe)}function Uf(Oe){for(var De=Oe.length;De--&&Vt.test(Oe.charAt(De)););return De}var n0=eu(Pb);function i0(Oe){for(var De=Ka.lastIndex=0;Ka.test(Oe);)++De;return De}function r0(Oe){return Oe.match(Ka)||[]}function s0(Oe){return Oe.match(kb)||[]}var o0=(function Oe(De){De=De==null?Qt:Fr.defaults(Qt.Object(),De,Fr.pick(Qt,Cb));var Me=De.Array,Ve=De.Date,nt=De.Error,yt=De.Function,Gt=De.Math,St=De.Object,su=De.RegExp,a0=De.String,An=De.TypeError,mo=Me.prototype,u0=yt.prototype,Pr=St.prototype,yo=De["__core-js_shared__"],go=u0.toString,bt=Pr.hasOwnProperty,l0=0,xf=(function(){var t=/[^.]+$/.exec(yo&&yo.keys&&yo.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""})(),bo=Pr.toString,c0=go.call(St),f0=Qt._,d0=su("^"+go.call(bt).replace(wt,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),To=Lf?De.Buffer:n,Bi=De.Symbol,vo=De.Uint8Array,zf=To?To.allocUnsafe:n,So=jf(St.getPrototypeOf,St),Wf=St.create,qf=Pr.propertyIsEnumerable,wo=mo.splice,Jf=Bi?Bi.isConcatSpreadable:n,os=Bi?Bi.iterator:n,Yi=Bi?Bi.toStringTag:n,Lo=(function(){try{var t=ir(St,"defineProperty");return t({},"",{}),t}catch{}})(),h0=De.clearTimeout!==Qt.clearTimeout&&De.clearTimeout,p0=Ve&&Ve.now!==Qt.Date.now&&Ve.now,m0=De.setTimeout!==Qt.setTimeout&&De.setTimeout,_o=Gt.ceil,ko=Gt.floor,ou=St.getOwnPropertySymbols,y0=To?To.isBuffer:n,Gf=De.isFinite,g0=mo.join,b0=jf(St.keys,St),Ht=Gt.max,tn=Gt.min,T0=Ve.now,v0=De.parseInt,Hf=Gt.random,S0=mo.reverse,au=ir(De,"DataView"),as=ir(De,"Map"),uu=ir(De,"Promise"),Ir=ir(De,"Set"),us=ir(De,"WeakMap"),ls=ir(St,"create"),No=us&&new us,Rr={},w0=rr(au),L0=rr(as),_0=rr(uu),k0=rr(Ir),N0=rr(us),Oo=Bi?Bi.prototype:n,cs=Oo?Oo.valueOf:n,Kf=Oo?Oo.toString:n;function fe(t){if(Bt(t)&&!it(t)&&!(t instanceof ft)){if(t instanceof Fn)return t;if(bt.call(t,"__wrapped__"))return Vd(t)}return new Fn(t)}var Mr=(function(){function t(){}return function(o){if(!It(o))return{};if(Wf)return Wf(o);t.prototype=o;var N=new t;return t.prototype=n,N}})();function Co(){}function Fn(t,o){this.__wrapped__=t,this.__actions__=[],this.__chain__=!!o,this.__index__=0,this.__values__=n}fe.templateSettings={escape:Fe,evaluate:He,interpolate:qe,variable:"",imports:{_:fe}},fe.prototype=Co.prototype,fe.prototype.constructor=fe,Fn.prototype=Mr(Co.prototype),Fn.prototype.constructor=Fn;function ft(t){this.__wrapped__=t,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=D,this.__views__=[]}function O0(){var t=new ft(this.__wrapped__);return t.__actions__=cn(this.__actions__),t.__dir__=this.__dir__,t.__filtered__=this.__filtered__,t.__iteratees__=cn(this.__iteratees__),t.__takeCount__=this.__takeCount__,t.__views__=cn(this.__views__),t}function C0(){if(this.__filtered__){var t=new ft(this);t.__dir__=-1,t.__filtered__=!0}else t=this.clone(),t.__dir__*=-1;return t}function E0(){var t=this.__wrapped__.value(),o=this.__dir__,N=it(t),Z=o<0,ie=N?t.length:0,he=zT(0,ie,this.__views__),ve=he.start,_e=he.end,Ee=_e-ve,je=Z?_e:ve-1,Ue=this.__iteratees__,xe=Ue.length,Je=0,Ze=tn(Ee,this.__takeCount__);if(!N||!Z&&ie==Ee&&Ze==Ee)return gd(t,this.__actions__);var Ye=[];e:for(;Ee--&&Je<Ze;){je+=o;for(var at=-1,$e=t[je];++at<xe;){var lt=Ue[at],ht=lt.iteratee,Ln=lt.type,on=ht($e);if(Ln==p)$e=on;else if(!on){if(Ln==s)continue e;break e}}Ye[Je++]=$e}return Ye}ft.prototype=Mr(Co.prototype),ft.prototype.constructor=ft;function $i(t){var o=-1,N=t==null?0:t.length;for(this.clear();++o<N;){var Z=t[o];this.set(Z[0],Z[1])}}function A0(){this.__data__=ls?ls(null):{},this.size=0}function F0(t){var o=this.has(t)&&delete this.__data__[t];return this.size-=o?1:0,o}function P0(t){var o=this.__data__;if(ls){var N=o[t];return N===w?n:N}return bt.call(o,t)?o[t]:n}function I0(t){var o=this.__data__;return ls?o[t]!==n:bt.call(o,t)}function R0(t,o){var N=this.__data__;return this.size+=this.has(t)?0:1,N[t]=ls&&o===n?w:o,this}$i.prototype.clear=A0,$i.prototype.delete=F0,$i.prototype.get=P0,$i.prototype.has=I0,$i.prototype.set=R0;function ui(t){var o=-1,N=t==null?0:t.length;for(this.clear();++o<N;){var Z=t[o];this.set(Z[0],Z[1])}}function M0(){this.__data__=[],this.size=0}function B0(t){var o=this.__data__,N=Eo(o,t);if(N<0)return!1;var Z=o.length-1;return N==Z?o.pop():wo.call(o,N,1),--this.size,!0}function D0(t){var o=this.__data__,N=Eo(o,t);return N<0?n:o[N][1]}function j0(t){return Eo(this.__data__,t)>-1}function U0(t,o){var N=this.__data__,Z=Eo(N,t);return Z<0?(++this.size,N.push([t,o])):N[Z][1]=o,this}ui.prototype.clear=M0,ui.prototype.delete=B0,ui.prototype.get=D0,ui.prototype.has=j0,ui.prototype.set=U0;function li(t){var o=-1,N=t==null?0:t.length;for(this.clear();++o<N;){var Z=t[o];this.set(Z[0],Z[1])}}function x0(){this.size=0,this.__data__={hash:new $i,map:new(as||ui),string:new $i}}function z0(t){var o=zo(this,t).delete(t);return this.size-=o?1:0,o}function W0(t){return zo(this,t).get(t)}function q0(t){return zo(this,t).has(t)}function J0(t,o){var N=zo(this,t),Z=N.size;return N.set(t,o),this.size+=N.size==Z?0:1,this}li.prototype.clear=x0,li.prototype.delete=z0,li.prototype.get=W0,li.prototype.has=q0,li.prototype.set=J0;function er(t){var o=-1,N=t==null?0:t.length;for(this.__data__=new li;++o<N;)this.add(t[o])}function G0(t){return this.__data__.set(t,w),this}function H0(t){return this.__data__.has(t)}er.prototype.add=er.prototype.push=G0,er.prototype.has=H0;function qn(t){var o=this.__data__=new ui(t);this.size=o.size}function K0(){this.__data__=new ui,this.size=0}function V0(t){var o=this.__data__,N=o.delete(t);return this.size=o.size,N}function Z0(t){return this.__data__.get(t)}function Q0(t){return this.__data__.has(t)}function X0(t,o){var N=this.__data__;if(N instanceof ui){var Z=N.__data__;if(!as||Z.length<l-1)return Z.push([t,o]),this.size=++N.size,this;N=this.__data__=new li(Z)}return N.set(t,o),this.size=N.size,this}qn.prototype.clear=K0,qn.prototype.delete=V0,qn.prototype.get=Z0,qn.prototype.has=Q0,qn.prototype.set=X0;function Vf(t,o){var N=it(t),Z=!N&&sr(t),ie=!N&&!Z&&zi(t),he=!N&&!Z&&!ie&&Ur(t),ve=N||Z||ie||he,_e=ve?nu(t.length,a0):[],Ee=_e.length;for(var je in t)(o||bt.call(t,je))&&!(ve&&(je=="length"||ie&&(je=="offset"||je=="parent")||he&&(je=="buffer"||je=="byteLength"||je=="byteOffset")||hi(je,Ee)))&&_e.push(je);return _e}function Zf(t){var o=t.length;return o?t[Tu(0,o-1)]:n}function Y0(t,o){return Wo(cn(t),tr(o,0,t.length))}function $0(t){return Wo(cn(t))}function lu(t,o,N){(N!==n&&!Jn(t[o],N)||N===n&&!(o in t))&&ci(t,o,N)}function fs(t,o,N){var Z=t[o];(!(bt.call(t,o)&&Jn(Z,N))||N===n&&!(o in t))&&ci(t,o,N)}function Eo(t,o){for(var N=t.length;N--;)if(Jn(t[N][0],o))return N;return-1}function eT(t,o,N,Z){return Di(t,function(ie,he,ve){o(Z,ie,N(ie),ve)}),Z}function Qf(t,o){return t&&ri(o,Zt(o),t)}function tT(t,o){return t&&ri(o,dn(o),t)}function ci(t,o,N){o=="__proto__"&&Lo?Lo(t,o,{configurable:!0,enumerable:!0,value:N,writable:!0}):t[o]=N}function cu(t,o){for(var N=-1,Z=o.length,ie=Me(Z),he=t==null;++N<Z;)ie[N]=he?n:Ju(t,o[N]);return ie}function tr(t,o,N){return t===t&&(N!==n&&(t=t<=N?t:N),o!==n&&(t=t>=o?t:o)),t}function Pn(t,o,N,Z,ie,he){var ve,_e=o&O,Ee=o&M,je=o&L;if(N&&(ve=ie?N(t,Z,ie,he):N(t)),ve!==n)return ve;if(!It(t))return t;var Ue=it(t);if(Ue){if(ve=qT(t),!_e)return cn(t,ve)}else{var xe=nn(t),Je=xe==pe||xe==le;if(zi(t))return vd(t,_e);if(xe==z||xe==Q||Je&&!ie){if(ve=Ee||Je?{}:Ud(t),!_e)return Ee?PT(t,tT(ve,t)):FT(t,Qf(ve,t))}else{if(!Lt[xe])return ie?t:{};ve=JT(t,xe,_e)}}he||(he=new qn);var Ze=he.get(t);if(Ze)return Ze;he.set(t,ve),ph(t)?t.forEach(function($e){ve.add(Pn($e,o,N,$e,t,he))}):dh(t)&&t.forEach(function($e,lt){ve.set(lt,Pn($e,o,N,lt,t,he))});var Ye=je?Ee?Au:Eu:Ee?dn:Zt,at=Ue?n:Ye(t);return En(at||t,function($e,lt){at&&(lt=$e,$e=t[lt]),fs(ve,lt,Pn($e,o,N,lt,t,he))}),ve}function nT(t){var o=Zt(t);return function(N){return Xf(N,t,o)}}function Xf(t,o,N){var Z=N.length;if(t==null)return!Z;for(t=St(t);Z--;){var ie=N[Z],he=o[ie],ve=t[ie];if(ve===n&&!(ie in t)||!he(ve))return!1}return!0}function Yf(t,o,N){if(typeof t!="function")throw new An(u);return bs(function(){t.apply(n,N)},o)}function ds(t,o,N,Z){var ie=-1,he=fo,ve=!0,_e=t.length,Ee=[],je=o.length;if(!_e)return Ee;N&&(o=Ot(o,vn(N))),Z?(he=Qa,ve=!1):o.length>=l&&(he=ss,ve=!1,o=new er(o));e:for(;++ie<_e;){var Ue=t[ie],xe=N==null?Ue:N(Ue);if(Ue=Z||Ue!==0?Ue:0,ve&&xe===xe){for(var Je=je;Je--;)if(o[Je]===xe)continue e;Ee.push(Ue)}else he(o,xe,Z)||Ee.push(Ue)}return Ee}var Di=kd(ii),$f=kd(du,!0);function iT(t,o){var N=!0;return Di(t,function(Z,ie,he){return N=!!o(Z,ie,he),N}),N}function Ao(t,o,N){for(var Z=-1,ie=t.length;++Z<ie;){var he=t[Z],ve=o(he);if(ve!=null&&(_e===n?ve===ve&&!wn(ve):N(ve,_e)))var _e=ve,Ee=he}return Ee}function rT(t,o,N,Z){var ie=t.length;for(N=st(N),N<0&&(N=-N>ie?0:ie+N),Z=Z===n||Z>ie?ie:st(Z),Z<0&&(Z+=ie),Z=N>Z?0:yh(Z);N<Z;)t[N++]=o;return t}function ed(t,o){var N=[];return Di(t,function(Z,ie,he){o(Z,ie,he)&&N.push(Z)}),N}function Xt(t,o,N,Z,ie){var he=-1,ve=t.length;for(N||(N=HT),ie||(ie=[]);++he<ve;){var _e=t[he];o>0&&N(_e)?o>1?Xt(_e,o-1,N,Z,ie):Ri(ie,_e):Z||(ie[ie.length]=_e)}return ie}var fu=Nd(),td=Nd(!0);function ii(t,o){return t&&fu(t,o,Zt)}function du(t,o){return t&&td(t,o,Zt)}function Fo(t,o){return Ii(o,function(N){return pi(t[N])})}function nr(t,o){o=Ui(o,t);for(var N=0,Z=o.length;t!=null&&N<Z;)t=t[si(o[N++])];return N&&N==Z?t:n}function nd(t,o,N){var Z=o(t);return it(t)?Z:Ri(Z,N(t))}function rn(t){return t==null?t===n?Ge:Y:Yi&&Yi in St(t)?xT(t):$T(t)}function hu(t,o){return t>o}function sT(t,o){return t!=null&&bt.call(t,o)}function oT(t,o){return t!=null&&o in St(t)}function aT(t,o,N){return t>=tn(o,N)&&t<Ht(o,N)}function pu(t,o,N){for(var Z=N?Qa:fo,ie=t[0].length,he=t.length,ve=he,_e=Me(he),Ee=1/0,je=[];ve--;){var Ue=t[ve];ve&&o&&(Ue=Ot(Ue,vn(o))),Ee=tn(Ue.length,Ee),_e[ve]=!N&&(o||ie>=120&&Ue.length>=120)?new er(ve&&Ue):n}Ue=t[0];var xe=-1,Je=_e[0];e:for(;++xe<ie&&je.length<Ee;){var Ze=Ue[xe],Ye=o?o(Ze):Ze;if(Ze=N||Ze!==0?Ze:0,!(Je?ss(Je,Ye):Z(je,Ye,N))){for(ve=he;--ve;){var at=_e[ve];if(!(at?ss(at,Ye):Z(t[ve],Ye,N)))continue e}Je&&Je.push(Ye),je.push(Ze)}}return je}function uT(t,o,N,Z){return ii(t,function(ie,he,ve){o(Z,N(ie),he,ve)}),Z}function hs(t,o,N){o=Ui(o,t),t=qd(t,o);var Z=t==null?t:t[si(Rn(o))];return Z==null?n:Tn(Z,t,N)}function id(t){return Bt(t)&&rn(t)==Q}function lT(t){return Bt(t)&&rn(t)==K}function cT(t){return Bt(t)&&rn(t)==me}function ps(t,o,N,Z,ie){return t===o?!0:t==null||o==null||!Bt(t)&&!Bt(o)?t!==t&&o!==o:fT(t,o,N,Z,ps,ie)}function fT(t,o,N,Z,ie,he){var ve=it(t),_e=it(o),Ee=ve?re:nn(t),je=_e?re:nn(o);Ee=Ee==Q?z:Ee,je=je==Q?z:je;var Ue=Ee==z,xe=je==z,Je=Ee==je;if(Je&&zi(t)){if(!zi(o))return!1;ve=!0,Ue=!1}if(Je&&!Ue)return he||(he=new qn),ve||Ur(t)?Bd(t,o,N,Z,ie,he):jT(t,o,Ee,N,Z,ie,he);if(!(N&_)){var Ze=Ue&&bt.call(t,"__wrapped__"),Ye=xe&&bt.call(o,"__wrapped__");if(Ze||Ye){var at=Ze?t.value():t,$e=Ye?o.value():o;return he||(he=new qn),ie(at,$e,N,Z,he)}}return Je?(he||(he=new qn),UT(t,o,N,Z,ie,he)):!1}function dT(t){return Bt(t)&&nn(t)==ye}function mu(t,o,N,Z){var ie=N.length,he=ie,ve=!Z;if(t==null)return!he;for(t=St(t);ie--;){var _e=N[ie];if(ve&&_e[2]?_e[1]!==t[_e[0]]:!(_e[0]in t))return!1}for(;++ie<he;){_e=N[ie];var Ee=_e[0],je=t[Ee],Ue=_e[1];if(ve&&_e[2]){if(je===n&&!(Ee in t))return!1}else{var xe=new qn;if(Z)var Je=Z(je,Ue,Ee,t,o,xe);if(!(Je===n?ps(Ue,je,_|b,Z,xe):Je))return!1}}return!0}function rd(t){if(!It(t)||VT(t))return!1;var o=pi(t)?d0:nb;return o.test(rr(t))}function hT(t){return Bt(t)&&rn(t)==Te}function pT(t){return Bt(t)&&nn(t)==Ie}function mT(t){return Bt(t)&&Vo(t.length)&&!!_t[rn(t)]}function sd(t){return typeof t=="function"?t:t==null?hn:typeof t=="object"?it(t)?ud(t[0],t[1]):ad(t):Oh(t)}function yu(t){if(!gs(t))return b0(t);var o=[];for(var N in St(t))bt.call(t,N)&&N!="constructor"&&o.push(N);return o}function yT(t){if(!It(t))return YT(t);var o=gs(t),N=[];for(var Z in t)Z=="constructor"&&(o||!bt.call(t,Z))||N.push(Z);return N}function gu(t,o){return t<o}function od(t,o){var N=-1,Z=fn(t)?Me(t.length):[];return Di(t,function(ie,he,ve){Z[++N]=o(ie,he,ve)}),Z}function ad(t){var o=Pu(t);return o.length==1&&o[0][2]?zd(o[0][0],o[0][1]):function(N){return N===t||mu(N,t,o)}}function ud(t,o){return Ru(t)&&xd(o)?zd(si(t),o):function(N){var Z=Ju(N,t);return Z===n&&Z===o?Gu(N,t):ps(o,Z,_|b)}}function Po(t,o,N,Z,ie){t!==o&&fu(o,function(he,ve){if(ie||(ie=new qn),It(he))gT(t,o,ve,N,Po,Z,ie);else{var _e=Z?Z(Bu(t,ve),he,ve+"",t,o,ie):n;_e===n&&(_e=he),lu(t,ve,_e)}},dn)}function gT(t,o,N,Z,ie,he,ve){var _e=Bu(t,N),Ee=Bu(o,N),je=ve.get(Ee);if(je){lu(t,N,je);return}var Ue=he?he(_e,Ee,N+"",t,o,ve):n,xe=Ue===n;if(xe){var Je=it(Ee),Ze=!Je&&zi(Ee),Ye=!Je&&!Ze&&Ur(Ee);Ue=Ee,Je||Ze||Ye?it(_e)?Ue=_e:jt(_e)?Ue=cn(_e):Ze?(xe=!1,Ue=vd(Ee,!0)):Ye?(xe=!1,Ue=Sd(Ee,!0)):Ue=[]:Ts(Ee)||sr(Ee)?(Ue=_e,sr(_e)?Ue=gh(_e):(!It(_e)||pi(_e))&&(Ue=Ud(Ee))):xe=!1}xe&&(ve.set(Ee,Ue),ie(Ue,Ee,Z,he,ve),ve.delete(Ee)),lu(t,N,Ue)}function ld(t,o){var N=t.length;if(N)return o+=o<0?N:0,hi(o,N)?t[o]:n}function cd(t,o,N){o.length?o=Ot(o,function(he){return it(he)?function(ve){return nr(ve,he.length===1?he[0]:he)}:he}):o=[hn];var Z=-1;o=Ot(o,vn(Xe()));var ie=od(t,function(he,ve,_e){var Ee=Ot(o,function(je){return je(he)});return{criteria:Ee,index:++Z,value:he}});return Jb(ie,function(he,ve){return AT(he,ve,N)})}function bT(t,o){return fd(t,o,function(N,Z){return Gu(t,Z)})}function fd(t,o,N){for(var Z=-1,ie=o.length,he={};++Z<ie;){var ve=o[Z],_e=nr(t,ve);N(_e,ve)&&ms(he,Ui(ve,t),_e)}return he}function TT(t){return function(o){return nr(o,t)}}function bu(t,o,N,Z){var ie=Z?qb:Cr,he=-1,ve=o.length,_e=t;for(t===o&&(o=cn(o)),N&&(_e=Ot(t,vn(N)));++he<ve;)for(var Ee=0,je=o[he],Ue=N?N(je):je;(Ee=ie(_e,Ue,Ee,Z))>-1;)_e!==t&&wo.call(_e,Ee,1),wo.call(t,Ee,1);return t}function dd(t,o){for(var N=t?o.length:0,Z=N-1;N--;){var ie=o[N];if(N==Z||ie!==he){var he=ie;hi(ie)?wo.call(t,ie,1):wu(t,ie)}}return t}function Tu(t,o){return t+ko(Hf()*(o-t+1))}function vT(t,o,N,Z){for(var ie=-1,he=Ht(_o((o-t)/(N||1)),0),ve=Me(he);he--;)ve[Z?he:++ie]=t,t+=N;return ve}function vu(t,o){var N="";if(!t||o<1||o>x)return N;do o%2&&(N+=t),o=ko(o/2),o&&(t+=t);while(o);return N}function ut(t,o){return Du(Wd(t,o,hn),t+"")}function ST(t){return Zf(xr(t))}function wT(t,o){var N=xr(t);return Wo(N,tr(o,0,N.length))}function ms(t,o,N,Z){if(!It(t))return t;o=Ui(o,t);for(var ie=-1,he=o.length,ve=he-1,_e=t;_e!=null&&++ie<he;){var Ee=si(o[ie]),je=N;if(Ee==="__proto__"||Ee==="constructor"||Ee==="prototype")return t;if(ie!=ve){var Ue=_e[Ee];je=Z?Z(Ue,Ee,_e):n,je===n&&(je=It(Ue)?Ue:hi(o[ie+1])?[]:{})}fs(_e,Ee,je),_e=_e[Ee]}return t}var hd=No?function(t,o){return No.set(t,o),t}:hn,LT=Lo?function(t,o){return Lo(t,"toString",{configurable:!0,enumerable:!1,value:Ku(o),writable:!0})}:hn;function _T(t){return Wo(xr(t))}function In(t,o,N){var Z=-1,ie=t.length;o<0&&(o=-o>ie?0:ie+o),N=N>ie?ie:N,N<0&&(N+=ie),ie=o>N?0:N-o>>>0,o>>>=0;for(var he=Me(ie);++Z<ie;)he[Z]=t[Z+o];return he}function kT(t,o){var N;return Di(t,function(Z,ie,he){return N=o(Z,ie,he),!N}),!!N}function Io(t,o,N){var Z=0,ie=t==null?Z:t.length;if(typeof o=="number"&&o===o&&ie<=J){for(;Z<ie;){var he=Z+ie>>>1,ve=t[he];ve!==null&&!wn(ve)&&(N?ve<=o:ve<o)?Z=he+1:ie=he}return ie}return Su(t,o,hn,N)}function Su(t,o,N,Z){var ie=0,he=t==null?0:t.length;if(he===0)return 0;o=N(o);for(var ve=o!==o,_e=o===null,Ee=wn(o),je=o===n;ie<he;){var Ue=ko((ie+he)/2),xe=N(t[Ue]),Je=xe!==n,Ze=xe===null,Ye=xe===xe,at=wn(xe);if(ve)var $e=Z||Ye;else je?$e=Ye&&(Z||Je):_e?$e=Ye&&Je&&(Z||!Ze):Ee?$e=Ye&&Je&&!Ze&&(Z||!at):Ze||at?$e=!1:$e=Z?xe<=o:xe<o;$e?ie=Ue+1:he=Ue}return tn(he,W)}function pd(t,o){for(var N=-1,Z=t.length,ie=0,he=[];++N<Z;){var ve=t[N],_e=o?o(ve):ve;if(!N||!Jn(_e,Ee)){var Ee=_e;he[ie++]=ve===0?0:ve}}return he}function md(t){return typeof t=="number"?t:wn(t)?T:+t}function Sn(t){if(typeof t=="string")return t;if(it(t))return Ot(t,Sn)+"";if(wn(t))return Kf?Kf.call(t):"";var o=t+"";return o=="0"&&1/t==-I?"-0":o}function ji(t,o,N){var Z=-1,ie=fo,he=t.length,ve=!0,_e=[],Ee=_e;if(N)ve=!1,ie=Qa;else if(he>=l){var je=o?null:BT(t);if(je)return po(je);ve=!1,ie=ss,Ee=new er}else Ee=o?[]:_e;e:for(;++Z<he;){var Ue=t[Z],xe=o?o(Ue):Ue;if(Ue=N||Ue!==0?Ue:0,ve&&xe===xe){for(var Je=Ee.length;Je--;)if(Ee[Je]===xe)continue e;o&&Ee.push(xe),_e.push(Ue)}else ie(Ee,xe,N)||(Ee!==_e&&Ee.push(xe),_e.push(Ue))}return _e}function wu(t,o){return o=Ui(o,t),t=qd(t,o),t==null||delete t[si(Rn(o))]}function yd(t,o,N,Z){return ms(t,o,N(nr(t,o)),Z)}function Ro(t,o,N,Z){for(var ie=t.length,he=Z?ie:-1;(Z?he--:++he<ie)&&o(t[he],he,t););return N?In(t,Z?0:he,Z?he+1:ie):In(t,Z?he+1:0,Z?ie:he)}function gd(t,o){var N=t;return N instanceof ft&&(N=N.value()),Xa(o,function(Z,ie){return ie.func.apply(ie.thisArg,Ri([Z],ie.args))},N)}function Lu(t,o,N){var Z=t.length;if(Z<2)return Z?ji(t[0]):[];for(var ie=-1,he=Me(Z);++ie<Z;)for(var ve=t[ie],_e=-1;++_e<Z;)_e!=ie&&(he[ie]=ds(he[ie]||ve,t[_e],o,N));return ji(Xt(he,1),o,N)}function bd(t,o,N){for(var Z=-1,ie=t.length,he=o.length,ve={};++Z<ie;){var _e=Z<he?o[Z]:n;N(ve,t[Z],_e)}return ve}function _u(t){return jt(t)?t:[]}function ku(t){return typeof t=="function"?t:hn}function Ui(t,o){return it(t)?t:Ru(t,o)?[t]:Kd(gt(t))}var NT=ut;function xi(t,o,N){var Z=t.length;return N=N===n?Z:N,!o&&N>=Z?t:In(t,o,N)}var Td=h0||function(t){return Qt.clearTimeout(t)};function vd(t,o){if(o)return t.slice();var N=t.length,Z=zf?zf(N):new t.constructor(N);return t.copy(Z),Z}function Nu(t){var o=new t.constructor(t.byteLength);return new vo(o).set(new vo(t)),o}function OT(t,o){var N=o?Nu(t.buffer):t.buffer;return new t.constructor(N,t.byteOffset,t.byteLength)}function CT(t){var o=new t.constructor(t.source,bn.exec(t));return o.lastIndex=t.lastIndex,o}function ET(t){return cs?St(cs.call(t)):{}}function Sd(t,o){var N=o?Nu(t.buffer):t.buffer;return new t.constructor(N,t.byteOffset,t.length)}function wd(t,o){if(t!==o){var N=t!==n,Z=t===null,ie=t===t,he=wn(t),ve=o!==n,_e=o===null,Ee=o===o,je=wn(o);if(!_e&&!je&&!he&&t>o||he&&ve&&Ee&&!_e&&!je||Z&&ve&&Ee||!N&&Ee||!ie)return 1;if(!Z&&!he&&!je&&t<o||je&&N&&ie&&!Z&&!he||_e&&N&&ie||!ve&&ie||!Ee)return-1}return 0}function AT(t,o,N){for(var Z=-1,ie=t.criteria,he=o.criteria,ve=ie.length,_e=N.length;++Z<ve;){var Ee=wd(ie[Z],he[Z]);if(Ee){if(Z>=_e)return Ee;var je=N[Z];return Ee*(je=="desc"?-1:1)}}return t.index-o.index}function Ld(t,o,N,Z){for(var ie=-1,he=t.length,ve=N.length,_e=-1,Ee=o.length,je=Ht(he-ve,0),Ue=Me(Ee+je),xe=!Z;++_e<Ee;)Ue[_e]=o[_e];for(;++ie<ve;)(xe||ie<he)&&(Ue[N[ie]]=t[ie]);for(;je--;)Ue[_e++]=t[ie++];return Ue}function _d(t,o,N,Z){for(var ie=-1,he=t.length,ve=-1,_e=N.length,Ee=-1,je=o.length,Ue=Ht(he-_e,0),xe=Me(Ue+je),Je=!Z;++ie<Ue;)xe[ie]=t[ie];for(var Ze=ie;++Ee<je;)xe[Ze+Ee]=o[Ee];for(;++ve<_e;)(Je||ie<he)&&(xe[Ze+N[ve]]=t[ie++]);return xe}function cn(t,o){var N=-1,Z=t.length;for(o||(o=Me(Z));++N<Z;)o[N]=t[N];return o}function ri(t,o,N,Z){var ie=!N;N||(N={});for(var he=-1,ve=o.length;++he<ve;){var _e=o[he],Ee=Z?Z(N[_e],t[_e],_e,N,t):n;Ee===n&&(Ee=t[_e]),ie?ci(N,_e,Ee):fs(N,_e,Ee)}return N}function FT(t,o){return ri(t,Iu(t),o)}function PT(t,o){return ri(t,Dd(t),o)}function Mo(t,o){return function(N,Z){var ie=it(N)?Db:eT,he=o?o():{};return ie(N,t,Xe(Z,2),he)}}function Br(t){return ut(function(o,N){var Z=-1,ie=N.length,he=ie>1?N[ie-1]:n,ve=ie>2?N[2]:n;for(he=t.length>3&&typeof he=="function"?(ie--,he):n,ve&&sn(N[0],N[1],ve)&&(he=ie<3?n:he,ie=1),o=St(o);++Z<ie;){var _e=N[Z];_e&&t(o,_e,Z,he)}return o})}function kd(t,o){return function(N,Z){if(N==null)return N;if(!fn(N))return t(N,Z);for(var ie=N.length,he=o?ie:-1,ve=St(N);(o?he--:++he<ie)&&Z(ve[he],he,ve)!==!1;);return N}}function Nd(t){return function(o,N,Z){for(var ie=-1,he=St(o),ve=Z(o),_e=ve.length;_e--;){var Ee=ve[t?_e:++ie];if(N(he[Ee],Ee,he)===!1)break}return o}}function IT(t,o,N){var Z=o&v,ie=ys(t);function he(){var ve=this&&this!==Qt&&this instanceof he?ie:t;return ve.apply(Z?N:this,arguments)}return he}function Od(t){return function(o){o=gt(o);var N=Er(o)?Wn(o):n,Z=N?N[0]:o.charAt(0),ie=N?xi(N,1).join(""):o.slice(1);return Z[t]()+ie}}function Dr(t){return function(o){return Xa(kh(_h(o).replace(Lb,"")),t,"")}}function ys(t){return function(){var o=arguments;switch(o.length){case 0:return new t;case 1:return new t(o[0]);case 2:return new t(o[0],o[1]);case 3:return new t(o[0],o[1],o[2]);case 4:return new t(o[0],o[1],o[2],o[3]);case 5:return new t(o[0],o[1],o[2],o[3],o[4]);case 6:return new t(o[0],o[1],o[2],o[3],o[4],o[5]);case 7:return new t(o[0],o[1],o[2],o[3],o[4],o[5],o[6])}var N=Mr(t.prototype),Z=t.apply(N,o);return It(Z)?Z:N}}function RT(t,o,N){var Z=ys(t);function ie(){for(var he=arguments.length,ve=Me(he),_e=he,Ee=jr(ie);_e--;)ve[_e]=arguments[_e];var je=he<3&&ve[0]!==Ee&&ve[he-1]!==Ee?[]:Mi(ve,Ee);if(he-=je.length,he<N)return Pd(t,o,Bo,ie.placeholder,n,ve,je,n,n,N-he);var Ue=this&&this!==Qt&&this instanceof ie?Z:t;return Tn(Ue,this,ve)}return ie}function Cd(t){return function(o,N,Z){var ie=St(o);if(!fn(o)){var he=Xe(N,3);o=Zt(o),N=function(_e){return he(ie[_e],_e,ie)}}var ve=t(o,N,Z);return ve>-1?ie[he?o[ve]:ve]:n}}function Ed(t){return di(function(o){var N=o.length,Z=N,ie=Fn.prototype.thru;for(t&&o.reverse();Z--;){var he=o[Z];if(typeof he!="function")throw new An(u);if(ie&&!ve&&xo(he)=="wrapper")var ve=new Fn([],!0)}for(Z=ve?Z:N;++Z<N;){he=o[Z];var _e=xo(he),Ee=_e=="wrapper"?Fu(he):n;Ee&&Mu(Ee[0])&&Ee[1]==(A|k|C|f)&&!Ee[4].length&&Ee[9]==1?ve=ve[xo(Ee[0])].apply(ve,Ee[3]):ve=he.length==1&&Mu(he)?ve[_e]():ve.thru(he)}return function(){var je=arguments,Ue=je[0];if(ve&&je.length==1&&it(Ue))return ve.plant(Ue).value();for(var xe=0,Je=N?o[xe].apply(this,je):Ue;++xe<N;)Je=o[xe].call(this,Je);return Je}})}function Bo(t,o,N,Z,ie,he,ve,_e,Ee,je){var Ue=o&A,xe=o&v,Je=o&h,Ze=o&(k|B),Ye=o&E,at=Je?n:ys(t);function $e(){for(var lt=arguments.length,ht=Me(lt),Ln=lt;Ln--;)ht[Ln]=arguments[Ln];if(Ze)var on=jr($e),_n=Hb(ht,on);if(Z&&(ht=Ld(ht,Z,ie,Ze)),he&&(ht=_d(ht,he,ve,Ze)),lt-=_n,Ze&&lt<je){var Ut=Mi(ht,on);return Pd(t,o,Bo,$e.placeholder,N,ht,Ut,_e,Ee,je-lt)}var Gn=xe?N:this,yi=Je?Gn[t]:t;return lt=ht.length,_e?ht=ev(ht,_e):Ye&&lt>1&&ht.reverse(),Ue&&Ee<lt&&(ht.length=Ee),this&&this!==Qt&&this instanceof $e&&(yi=at||ys(yi)),yi.apply(Gn,ht)}return $e}function Ad(t,o){return function(N,Z){return uT(N,t,o(Z),{})}}function Do(t,o){return function(N,Z){var ie;if(N===n&&Z===n)return o;if(N!==n&&(ie=N),Z!==n){if(ie===n)return Z;typeof N=="string"||typeof Z=="string"?(N=Sn(N),Z=Sn(Z)):(N=md(N),Z=md(Z)),ie=t(N,Z)}return ie}}function Ou(t){return di(function(o){return o=Ot(o,vn(Xe())),ut(function(N){var Z=this;return t(o,function(ie){return Tn(ie,Z,N)})})})}function jo(t,o){o=o===n?" ":Sn(o);var N=o.length;if(N<2)return N?vu(o,t):o;var Z=vu(o,_o(t/Ar(o)));return Er(o)?xi(Wn(Z),0,t).join(""):Z.slice(0,t)}function MT(t,o,N,Z){var ie=o&v,he=ys(t);function ve(){for(var _e=-1,Ee=arguments.length,je=-1,Ue=Z.length,xe=Me(Ue+Ee),Je=this&&this!==Qt&&this instanceof ve?he:t;++je<Ue;)xe[je]=Z[je];for(;Ee--;)xe[je++]=arguments[++_e];return Tn(Je,ie?N:this,xe)}return ve}function Fd(t){return function(o,N,Z){return Z&&typeof Z!="number"&&sn(o,N,Z)&&(N=Z=n),o=mi(o),N===n?(N=o,o=0):N=mi(N),Z=Z===n?o<N?1:-1:mi(Z),vT(o,N,Z,t)}}function Uo(t){return function(o,N){return typeof o=="string"&&typeof N=="string"||(o=Mn(o),N=Mn(N)),t(o,N)}}function Pd(t,o,N,Z,ie,he,ve,_e,Ee,je){var Ue=o&k,xe=Ue?ve:n,Je=Ue?n:ve,Ze=Ue?he:n,Ye=Ue?n:he;o|=Ue?C:R,o&=~(Ue?R:C),o&m||(o&=-4);var at=[t,o,ie,Ze,xe,Ye,Je,_e,Ee,je],$e=N.apply(n,at);return Mu(t)&&Jd($e,at),$e.placeholder=Z,Gd($e,t,o)}function Cu(t){var o=Gt[t];return function(N,Z){if(N=Mn(N),Z=Z==null?0:tn(st(Z),292),Z&&Gf(N)){var ie=(gt(N)+"e").split("e"),he=o(ie[0]+"e"+(+ie[1]+Z));return ie=(gt(he)+"e").split("e"),+(ie[0]+"e"+(+ie[1]-Z))}return o(N)}}var BT=Ir&&1/po(new Ir([,-0]))[1]==I?function(t){return new Ir(t)}:Qu;function Id(t){return function(o){var N=nn(o);return N==ye?ru(o):N==Ie?$b(o):Gb(o,t(o))}}function fi(t,o,N,Z,ie,he,ve,_e){var Ee=o&h;if(!Ee&&typeof t!="function")throw new An(u);var je=Z?Z.length:0;if(je||(o&=-97,Z=ie=n),ve=ve===n?ve:Ht(st(ve),0),_e=_e===n?_e:st(_e),je-=ie?ie.length:0,o&R){var Ue=Z,xe=ie;Z=ie=n}var Je=Ee?n:Fu(t),Ze=[t,o,N,Z,ie,Ue,xe,he,ve,_e];if(Je&&XT(Ze,Je),t=Ze[0],o=Ze[1],N=Ze[2],Z=Ze[3],ie=Ze[4],_e=Ze[9]=Ze[9]===n?Ee?0:t.length:Ht(Ze[9]-je,0),!_e&&o&(k|B)&&(o&=-25),!o||o==v)var Ye=IT(t,o,N);else o==k||o==B?Ye=RT(t,o,_e):(o==C||o==(v|C))&&!ie.length?Ye=MT(t,o,N,Z):Ye=Bo.apply(n,Ze);var at=Je?hd:Jd;return Gd(at(Ye,Ze),t,o)}function Rd(t,o,N,Z){return t===n||Jn(t,Pr[N])&&!bt.call(Z,N)?o:t}function Md(t,o,N,Z,ie,he){return It(t)&&It(o)&&(he.set(o,t),Po(t,o,n,Md,he),he.delete(o)),t}function DT(t){return Ts(t)?n:t}function Bd(t,o,N,Z,ie,he){var ve=N&_,_e=t.length,Ee=o.length;if(_e!=Ee&&!(ve&&Ee>_e))return!1;var je=he.get(t),Ue=he.get(o);if(je&&Ue)return je==o&&Ue==t;var xe=-1,Je=!0,Ze=N&b?new er:n;for(he.set(t,o),he.set(o,t);++xe<_e;){var Ye=t[xe],at=o[xe];if(Z)var $e=ve?Z(at,Ye,xe,o,t,he):Z(Ye,at,xe,t,o,he);if($e!==n){if($e)continue;Je=!1;break}if(Ze){if(!Ya(o,function(lt,ht){if(!ss(Ze,ht)&&(Ye===lt||ie(Ye,lt,N,Z,he)))return Ze.push(ht)})){Je=!1;break}}else if(!(Ye===at||ie(Ye,at,N,Z,he))){Je=!1;break}}return he.delete(t),he.delete(o),Je}function jT(t,o,N,Z,ie,he,ve){switch(N){case j:if(t.byteLength!=o.byteLength||t.byteOffset!=o.byteOffset)return!1;t=t.buffer,o=o.buffer;case K:return!(t.byteLength!=o.byteLength||!he(new vo(t),new vo(o)));case ne:case me:case de:return Jn(+t,+o);case Ae:return t.name==o.name&&t.message==o.message;case Te:case Ce:return t==o+"";case ye:var _e=ru;case Ie:var Ee=Z&_;if(_e||(_e=po),t.size!=o.size&&!Ee)return!1;var je=ve.get(t);if(je)return je==o;Z|=b,ve.set(t,o);var Ue=Bd(_e(t),_e(o),Z,ie,he,ve);return ve.delete(t),Ue;case We:if(cs)return cs.call(t)==cs.call(o)}return!1}function UT(t,o,N,Z,ie,he){var ve=N&_,_e=Eu(t),Ee=_e.length,je=Eu(o),Ue=je.length;if(Ee!=Ue&&!ve)return!1;for(var xe=Ee;xe--;){var Je=_e[xe];if(!(ve?Je in o:bt.call(o,Je)))return!1}var Ze=he.get(t),Ye=he.get(o);if(Ze&&Ye)return Ze==o&&Ye==t;var at=!0;he.set(t,o),he.set(o,t);for(var $e=ve;++xe<Ee;){Je=_e[xe];var lt=t[Je],ht=o[Je];if(Z)var Ln=ve?Z(ht,lt,Je,o,t,he):Z(lt,ht,Je,t,o,he);if(!(Ln===n?lt===ht||ie(lt,ht,N,Z,he):Ln)){at=!1;break}$e||($e=Je=="constructor")}if(at&&!$e){var on=t.constructor,_n=o.constructor;on!=_n&&"constructor"in t&&"constructor"in o&&!(typeof on=="function"&&on instanceof on&&typeof _n=="function"&&_n instanceof _n)&&(at=!1)}return he.delete(t),he.delete(o),at}function di(t){return Du(Wd(t,n,Xd),t+"")}function Eu(t){return nd(t,Zt,Iu)}function Au(t){return nd(t,dn,Dd)}var Fu=No?function(t){return No.get(t)}:Qu;function xo(t){for(var o=t.name+"",N=Rr[o],Z=bt.call(Rr,o)?N.length:0;Z--;){var ie=N[Z],he=ie.func;if(he==null||he==t)return ie.name}return o}function jr(t){var o=bt.call(fe,"placeholder")?fe:t;return o.placeholder}function Xe(){var t=fe.iteratee||Vu;return t=t===Vu?sd:t,arguments.length?t(arguments[0],arguments[1]):t}function zo(t,o){var N=t.__data__;return KT(o)?N[typeof o=="string"?"string":"hash"]:N.map}function Pu(t){for(var o=Zt(t),N=o.length;N--;){var Z=o[N],ie=t[Z];o[N]=[Z,ie,xd(ie)]}return o}function ir(t,o){var N=Qb(t,o);return rd(N)?N:n}function xT(t){var o=bt.call(t,Yi),N=t[Yi];try{t[Yi]=n;var Z=!0}catch{}var ie=bo.call(t);return Z&&(o?t[Yi]=N:delete t[Yi]),ie}var Iu=ou?function(t){return t==null?[]:(t=St(t),Ii(ou(t),function(o){return qf.call(t,o)}))}:Xu,Dd=ou?function(t){for(var o=[];t;)Ri(o,Iu(t)),t=So(t);return o}:Xu,nn=rn;(au&&nn(new au(new ArrayBuffer(1)))!=j||as&&nn(new as)!=ye||uu&&nn(uu.resolve())!=V||Ir&&nn(new Ir)!=Ie||us&&nn(new us)!=ee)&&(nn=function(t){var o=rn(t),N=o==z?t.constructor:n,Z=N?rr(N):"";if(Z)switch(Z){case w0:return j;case L0:return ye;case _0:return V;case k0:return Ie;case N0:return ee}return o});function zT(t,o,N){for(var Z=-1,ie=N.length;++Z<ie;){var he=N[Z],ve=he.size;switch(he.type){case"drop":t+=ve;break;case"dropRight":o-=ve;break;case"take":o=tn(o,t+ve);break;case"takeRight":t=Ht(t,o-ve);break}}return{start:t,end:o}}function WT(t){var o=t.match(kr);return o?o[1].split(Nr):[]}function jd(t,o,N){o=Ui(o,t);for(var Z=-1,ie=o.length,he=!1;++Z<ie;){var ve=si(o[Z]);if(!(he=t!=null&&N(t,ve)))break;t=t[ve]}return he||++Z!=ie?he:(ie=t==null?0:t.length,!!ie&&Vo(ie)&&hi(ve,ie)&&(it(t)||sr(t)))}function qT(t){var o=t.length,N=new t.constructor(o);return o&&typeof t[0]=="string"&&bt.call(t,"index")&&(N.index=t.index,N.input=t.input),N}function Ud(t){return typeof t.constructor=="function"&&!gs(t)?Mr(So(t)):{}}function JT(t,o,N){var Z=t.constructor;switch(o){case K:return Nu(t);case ne:case me:return new Z(+t);case j:return OT(t,N);case G:case ce:case $:case be:case Se:case Be:case we:case Pe:case oe:return Sd(t,N);case ye:return new Z;case de:case Ce:return new Z(t);case Te:return CT(t);case Ie:return new Z;case We:return ET(t)}}function GT(t,o){var N=o.length;if(!N)return t;var Z=N-1;return o[Z]=(N>1?"& ":"")+o[Z],o=o.join(N>2?", ":" "),t.replace(en,`{
933
891
  /* [wrapped with `+o+`] */
934
892
  `)}function HT(t){return it(t)||sr(t)||!!(Jf&&t&&t[Jf])}function hi(t,o){var N=typeof t;return o=o??x,!!o&&(N=="number"||N!="symbol"&&rb.test(t))&&t>-1&&t%1==0&&t<o}function sn(t,o,N){if(!It(N))return!1;var Z=typeof o;return(Z=="number"?fn(N)&&hi(o,N.length):Z=="string"&&o in N)?Jn(N[o],t):!1}function Ru(t,o){if(it(t))return!1;var N=typeof t;return N=="number"||N=="symbol"||N=="boolean"||t==null||wn(t)?!0:ct.test(t)||!Ke.test(t)||o!=null&&t in St(o)}function KT(t){var o=typeof t;return o=="string"||o=="number"||o=="symbol"||o=="boolean"?t!=="__proto__":t===null}function Mu(t){var o=xo(t),N=fe[o];if(typeof N!="function"||!(o in ft.prototype))return!1;if(t===N)return!0;var Z=Fu(N);return!!Z&&t===Z[0]}function VT(t){return!!xf&&xf in t}var ZT=yo?pi:Yu;function gs(t){var o=t&&t.constructor,N=typeof o=="function"&&o.prototype||Pr;return t===N}function xd(t){return t===t&&!It(t)}function zd(t,o){return function(N){return N==null?!1:N[t]===o&&(o!==n||t in St(N))}}function QT(t){var o=Ho(t,function(Z){return N.size===U&&N.clear(),Z}),N=o.cache;return o}function XT(t,o){var N=t[1],Z=o[1],ie=N|Z,he=ie<(v|h|A),ve=Z==A&&N==k||Z==A&&N==f&&t[7].length<=o[8]||Z==(A|f)&&o[7].length<=o[8]&&N==k;if(!(he||ve))return t;Z&v&&(t[2]=o[2],ie|=N&v?0:m);var _e=o[3];if(_e){var Ee=t[3];t[3]=Ee?Ld(Ee,_e,o[4]):_e,t[4]=Ee?Mi(t[3],F):o[4]}return _e=o[5],_e&&(Ee=t[5],t[5]=Ee?_d(Ee,_e,o[6]):_e,t[6]=Ee?Mi(t[5],F):o[6]),_e=o[7],_e&&(t[7]=_e),Z&A&&(t[8]=t[8]==null?o[8]:tn(t[8],o[8])),t[9]==null&&(t[9]=o[9]),t[0]=o[0],t[1]=ie,t}function YT(t){var o=[];if(t!=null)for(var N in St(t))o.push(N);return o}function $T(t){return bo.call(t)}function Wd(t,o,N){return o=Ht(o===n?t.length-1:o,0),function(){for(var Z=arguments,ie=-1,he=Ht(Z.length-o,0),ve=Me(he);++ie<he;)ve[ie]=Z[o+ie];ie=-1;for(var _e=Me(o+1);++ie<o;)_e[ie]=Z[ie];return _e[o]=N(ve),Tn(t,this,_e)}}function qd(t,o){return o.length<2?t:nr(t,In(o,0,-1))}function ev(t,o){for(var N=t.length,Z=tn(o.length,N),ie=cn(t);Z--;){var he=o[Z];t[Z]=hi(he,N)?ie[he]:n}return t}function Bu(t,o){if(!(o==="constructor"&&typeof t[o]=="function")&&o!="__proto__")return t[o]}var Jd=Hd(hd),bs=m0||function(t,o){return Qt.setTimeout(t,o)},Du=Hd(LT);function Gd(t,o,N){var Z=o+"";return Du(t,GT(Z,tv(WT(Z),N)))}function Hd(t){var o=0,N=0;return function(){var Z=T0(),ie=r-(Z-N);if(N=Z,ie>0){if(++o>=y)return arguments[0]}else o=0;return t.apply(n,arguments)}}function Wo(t,o){var N=-1,Z=t.length,ie=Z-1;for(o=o===n?Z:o;++N<o;){var he=Tu(N,ie),ve=t[he];t[he]=t[N],t[N]=ve}return t.length=o,t}var Kd=QT(function(t){var o=[];return t.charCodeAt(0)===46&&o.push(""),t.replace(xn,function(N,Z,ie,he){o.push(ie?he.replace(Jt,"$1"):Z||N)}),o});function si(t){if(typeof t=="string"||wn(t))return t;var o=t+"";return o=="0"&&1/t==-I?"-0":o}function rr(t){if(t!=null){try{return go.call(t)}catch{}try{return t+""}catch{}}return""}function tv(t,o){return En(X,function(N){var Z="_."+N[0];o&N[1]&&!fo(t,Z)&&t.push(Z)}),t.sort()}function Vd(t){if(t instanceof ft)return t.clone();var o=new Fn(t.__wrapped__,t.__chain__);return o.__actions__=cn(t.__actions__),o.__index__=t.__index__,o.__values__=t.__values__,o}function nv(t,o,N){(N?sn(t,o,N):o===n)?o=1:o=Ht(st(o),0);var Z=t==null?0:t.length;if(!Z||o<1)return[];for(var ie=0,he=0,ve=Me(_o(Z/o));ie<Z;)ve[he++]=In(t,ie,ie+=o);return ve}function iv(t){for(var o=-1,N=t==null?0:t.length,Z=0,ie=[];++o<N;){var he=t[o];he&&(ie[Z++]=he)}return ie}function rv(){var t=arguments.length;if(!t)return[];for(var o=Me(t-1),N=arguments[0],Z=t;Z--;)o[Z-1]=arguments[Z];return Ri(it(N)?cn(N):[N],Xt(o,1))}var sv=ut(function(t,o){return jt(t)?ds(t,Xt(o,1,jt,!0)):[]}),ov=ut(function(t,o){var N=Rn(o);return jt(N)&&(N=n),jt(t)?ds(t,Xt(o,1,jt,!0),Xe(N,2)):[]}),av=ut(function(t,o){var N=Rn(o);return jt(N)&&(N=n),jt(t)?ds(t,Xt(o,1,jt,!0),n,N):[]});function uv(t,o,N){var Z=t==null?0:t.length;return Z?(o=N||o===n?1:st(o),In(t,o<0?0:o,Z)):[]}function lv(t,o,N){var Z=t==null?0:t.length;return Z?(o=N||o===n?1:st(o),o=Z-o,In(t,0,o<0?0:o)):[]}function cv(t,o){return t&&t.length?Ro(t,Xe(o,3),!0,!0):[]}function fv(t,o){return t&&t.length?Ro(t,Xe(o,3),!0):[]}function dv(t,o,N,Z){var ie=t==null?0:t.length;return ie?(N&&typeof N!="number"&&sn(t,o,N)&&(N=0,Z=ie),rT(t,o,N,Z)):[]}function Zd(t,o,N){var Z=t==null?0:t.length;if(!Z)return-1;var ie=N==null?0:st(N);return ie<0&&(ie=Ht(Z+ie,0)),ho(t,Xe(o,3),ie)}function Qd(t,o,N){var Z=t==null?0:t.length;if(!Z)return-1;var ie=Z-1;return N!==n&&(ie=st(N),ie=N<0?Ht(Z+ie,0):tn(ie,Z-1)),ho(t,Xe(o,3),ie,!0)}function Xd(t){var o=t==null?0:t.length;return o?Xt(t,1):[]}function hv(t){var o=t==null?0:t.length;return o?Xt(t,I):[]}function pv(t,o){var N=t==null?0:t.length;return N?(o=o===n?1:st(o),Xt(t,o)):[]}function mv(t){for(var o=-1,N=t==null?0:t.length,Z={};++o<N;){var ie=t[o];Z[ie[0]]=ie[1]}return Z}function Yd(t){return t&&t.length?t[0]:n}function yv(t,o,N){var Z=t==null?0:t.length;if(!Z)return-1;var ie=N==null?0:st(N);return ie<0&&(ie=Ht(Z+ie,0)),Cr(t,o,ie)}function gv(t){var o=t==null?0:t.length;return o?In(t,0,-1):[]}var bv=ut(function(t){var o=Ot(t,_u);return o.length&&o[0]===t[0]?pu(o):[]}),Tv=ut(function(t){var o=Rn(t),N=Ot(t,_u);return o===Rn(N)?o=n:N.pop(),N.length&&N[0]===t[0]?pu(N,Xe(o,2)):[]}),vv=ut(function(t){var o=Rn(t),N=Ot(t,_u);return o=typeof o=="function"?o:n,o&&N.pop(),N.length&&N[0]===t[0]?pu(N,n,o):[]});function Sv(t,o){return t==null?"":g0.call(t,o)}function Rn(t){var o=t==null?0:t.length;return o?t[o-1]:n}function wv(t,o,N){var Z=t==null?0:t.length;if(!Z)return-1;var ie=Z;return N!==n&&(ie=st(N),ie=ie<0?Ht(Z+ie,0):tn(ie,Z-1)),o===o?t0(t,o,ie):ho(t,Pf,ie,!0)}function Lv(t,o){return t&&t.length?ld(t,st(o)):n}var _v=ut($d);function $d(t,o){return t&&t.length&&o&&o.length?bu(t,o):t}function kv(t,o,N){return t&&t.length&&o&&o.length?bu(t,o,Xe(N,2)):t}function Nv(t,o,N){return t&&t.length&&o&&o.length?bu(t,o,n,N):t}var Ov=di(function(t,o){var N=t==null?0:t.length,Z=cu(t,o);return dd(t,Ot(o,function(ie){return hi(ie,N)?+ie:ie}).sort(wd)),Z});function Cv(t,o){var N=[];if(!(t&&t.length))return N;var Z=-1,ie=[],he=t.length;for(o=Xe(o,3);++Z<he;){var ve=t[Z];o(ve,Z,t)&&(N.push(ve),ie.push(Z))}return dd(t,ie),N}function ju(t){return t==null?t:S0.call(t)}function Ev(t,o,N){var Z=t==null?0:t.length;return Z?(N&&typeof N!="number"&&sn(t,o,N)?(o=0,N=Z):(o=o==null?0:st(o),N=N===n?Z:st(N)),In(t,o,N)):[]}function Av(t,o){return Io(t,o)}function Fv(t,o,N){return Su(t,o,Xe(N,2))}function Pv(t,o){var N=t==null?0:t.length;if(N){var Z=Io(t,o);if(Z<N&&Jn(t[Z],o))return Z}return-1}function Iv(t,o){return Io(t,o,!0)}function Rv(t,o,N){return Su(t,o,Xe(N,2),!0)}function Mv(t,o){var N=t==null?0:t.length;if(N){var Z=Io(t,o,!0)-1;if(Jn(t[Z],o))return Z}return-1}function Bv(t){return t&&t.length?pd(t):[]}function Dv(t,o){return t&&t.length?pd(t,Xe(o,2)):[]}function jv(t){var o=t==null?0:t.length;return o?In(t,1,o):[]}function Uv(t,o,N){return t&&t.length?(o=N||o===n?1:st(o),In(t,0,o<0?0:o)):[]}function xv(t,o,N){var Z=t==null?0:t.length;return Z?(o=N||o===n?1:st(o),o=Z-o,In(t,o<0?0:o,Z)):[]}function zv(t,o){return t&&t.length?Ro(t,Xe(o,3),!1,!0):[]}function Wv(t,o){return t&&t.length?Ro(t,Xe(o,3)):[]}var qv=ut(function(t){return ji(Xt(t,1,jt,!0))}),Jv=ut(function(t){var o=Rn(t);return jt(o)&&(o=n),ji(Xt(t,1,jt,!0),Xe(o,2))}),Gv=ut(function(t){var o=Rn(t);return o=typeof o=="function"?o:n,ji(Xt(t,1,jt,!0),n,o)});function Hv(t){return t&&t.length?ji(t):[]}function Kv(t,o){return t&&t.length?ji(t,Xe(o,2)):[]}function Vv(t,o){return o=typeof o=="function"?o:n,t&&t.length?ji(t,n,o):[]}function Uu(t){if(!(t&&t.length))return[];var o=0;return t=Ii(t,function(N){if(jt(N))return o=Ht(N.length,o),!0}),nu(o,function(N){return Ot(t,$a(N))})}function eh(t,o){if(!(t&&t.length))return[];var N=Uu(t);return o==null?N:Ot(N,function(Z){return Tn(o,n,Z)})}var Zv=ut(function(t,o){return jt(t)?ds(t,o):[]}),Qv=ut(function(t){return Lu(Ii(t,jt))}),Xv=ut(function(t){var o=Rn(t);return jt(o)&&(o=n),Lu(Ii(t,jt),Xe(o,2))}),Yv=ut(function(t){var o=Rn(t);return o=typeof o=="function"?o:n,Lu(Ii(t,jt),n,o)}),$v=ut(Uu);function eS(t,o){return bd(t||[],o||[],fs)}function tS(t,o){return bd(t||[],o||[],ms)}var nS=ut(function(t){var o=t.length,N=o>1?t[o-1]:n;return N=typeof N=="function"?(t.pop(),N):n,eh(t,N)});function th(t){var o=fe(t);return o.__chain__=!0,o}function iS(t,o){return o(t),t}function qo(t,o){return o(t)}var rS=di(function(t){var o=t.length,N=o?t[0]:0,Z=this.__wrapped__,ie=function(he){return cu(he,t)};return o>1||this.__actions__.length||!(Z instanceof ft)||!hi(N)?this.thru(ie):(Z=Z.slice(N,+N+(o?1:0)),Z.__actions__.push({func:qo,args:[ie],thisArg:n}),new Fn(Z,this.__chain__).thru(function(he){return o&&!he.length&&he.push(n),he}))});function sS(){return th(this)}function oS(){return new Fn(this.value(),this.__chain__)}function aS(){this.__values__===n&&(this.__values__=mh(this.value()));var t=this.__index__>=this.__values__.length,o=t?n:this.__values__[this.__index__++];return{done:t,value:o}}function uS(){return this}function lS(t){for(var o,N=this;N instanceof Co;){var Z=Vd(N);Z.__index__=0,Z.__values__=n,o?ie.__wrapped__=Z:o=Z;var ie=Z;N=N.__wrapped__}return ie.__wrapped__=t,o}function cS(){var t=this.__wrapped__;if(t instanceof ft){var o=t;return this.__actions__.length&&(o=new ft(this)),o=o.reverse(),o.__actions__.push({func:qo,args:[ju],thisArg:n}),new Fn(o,this.__chain__)}return this.thru(ju)}function fS(){return gd(this.__wrapped__,this.__actions__)}var dS=Mo(function(t,o,N){bt.call(t,N)?++t[N]:ci(t,N,1)});function hS(t,o,N){var Z=it(t)?Af:iT;return N&&sn(t,o,N)&&(o=n),Z(t,Xe(o,3))}function pS(t,o){var N=it(t)?Ii:ed;return N(t,Xe(o,3))}var mS=Cd(Zd),yS=Cd(Qd);function gS(t,o){return Xt(Jo(t,o),1)}function bS(t,o){return Xt(Jo(t,o),I)}function TS(t,o,N){return N=N===n?1:st(N),Xt(Jo(t,o),N)}function nh(t,o){var N=it(t)?En:Di;return N(t,Xe(o,3))}function ih(t,o){var N=it(t)?jb:$f;return N(t,Xe(o,3))}var vS=Mo(function(t,o,N){bt.call(t,N)?t[N].push(o):ci(t,N,[o])});function SS(t,o,N,Z){t=fn(t)?t:xr(t),N=N&&!Z?st(N):0;var ie=t.length;return N<0&&(N=Ht(ie+N,0)),Zo(t)?N<=ie&&t.indexOf(o,N)>-1:!!ie&&Cr(t,o,N)>-1}var wS=ut(function(t,o,N){var Z=-1,ie=typeof o=="function",he=fn(t)?Me(t.length):[];return Di(t,function(ve){he[++Z]=ie?Tn(o,ve,N):hs(ve,o,N)}),he}),LS=Mo(function(t,o,N){ci(t,N,o)});function Jo(t,o){var N=it(t)?Ot:od;return N(t,Xe(o,3))}function _S(t,o,N,Z){return t==null?[]:(it(o)||(o=o==null?[]:[o]),N=Z?n:N,it(N)||(N=N==null?[]:[N]),cd(t,o,N))}var kS=Mo(function(t,o,N){t[N?0:1].push(o)},function(){return[[],[]]});function NS(t,o,N){var Z=it(t)?Xa:Rf,ie=arguments.length<3;return Z(t,Xe(o,4),N,ie,Di)}function OS(t,o,N){var Z=it(t)?Ub:Rf,ie=arguments.length<3;return Z(t,Xe(o,4),N,ie,$f)}function CS(t,o){var N=it(t)?Ii:ed;return N(t,Ko(Xe(o,3)))}function ES(t){var o=it(t)?Zf:ST;return o(t)}function AS(t,o,N){(N?sn(t,o,N):o===n)?o=1:o=st(o);var Z=it(t)?Y0:wT;return Z(t,o)}function FS(t){var o=it(t)?$0:_T;return o(t)}function PS(t){if(t==null)return 0;if(fn(t))return Zo(t)?Ar(t):t.length;var o=nn(t);return o==ye||o==Ie?t.size:yu(t).length}function IS(t,o,N){var Z=it(t)?Ya:kT;return N&&sn(t,o,N)&&(o=n),Z(t,Xe(o,3))}var RS=ut(function(t,o){if(t==null)return[];var N=o.length;return N>1&&sn(t,o[0],o[1])?o=[]:N>2&&sn(o[0],o[1],o[2])&&(o=[o[0]]),cd(t,Xt(o,1),[])}),Go=p0||function(){return Qt.Date.now()};function MS(t,o){if(typeof o!="function")throw new An(u);return t=st(t),function(){if(--t<1)return o.apply(this,arguments)}}function rh(t,o,N){return o=N?n:o,o=t&&o==null?t.length:o,fi(t,A,n,n,n,n,o)}function sh(t,o){var N;if(typeof o!="function")throw new An(u);return t=st(t),function(){return--t>0&&(N=o.apply(this,arguments)),t<=1&&(o=n),N}}var xu=ut(function(t,o,N){var Z=v;if(N.length){var ie=Mi(N,jr(xu));Z|=C}return fi(t,Z,o,N,ie)}),oh=ut(function(t,o,N){var Z=v|h;if(N.length){var ie=Mi(N,jr(oh));Z|=C}return fi(o,Z,t,N,ie)});function ah(t,o,N){o=N?n:o;var Z=fi(t,k,n,n,n,n,n,o);return Z.placeholder=ah.placeholder,Z}function uh(t,o,N){o=N?n:o;var Z=fi(t,B,n,n,n,n,n,o);return Z.placeholder=uh.placeholder,Z}function lh(t,o,N){var Z,ie,he,ve,_e,Ee,je=0,Ue=!1,xe=!1,Je=!0;if(typeof t!="function")throw new An(u);o=Mn(o)||0,It(N)&&(Ue=!!N.leading,xe="maxWait"in N,he=xe?Ht(Mn(N.maxWait)||0,o):he,Je="trailing"in N?!!N.trailing:Je);function Ze(Ut){var Gn=Z,yi=ie;return Z=ie=n,je=Ut,ve=t.apply(yi,Gn),ve}function Ye(Ut){return je=Ut,_e=bs(lt,o),Ue?Ze(Ut):ve}function at(Ut){var Gn=Ut-Ee,yi=Ut-je,Ch=o-Gn;return xe?tn(Ch,he-yi):Ch}function $e(Ut){var Gn=Ut-Ee,yi=Ut-je;return Ee===n||Gn>=o||Gn<0||xe&&yi>=he}function lt(){var Ut=Go();if($e(Ut))return ht(Ut);_e=bs(lt,at(Ut))}function ht(Ut){return _e=n,Je&&Z?Ze(Ut):(Z=ie=n,ve)}function Ln(){_e!==n&&Td(_e),je=0,Z=Ee=ie=_e=n}function on(){return _e===n?ve:ht(Go())}function _n(){var Ut=Go(),Gn=$e(Ut);if(Z=arguments,ie=this,Ee=Ut,Gn){if(_e===n)return Ye(Ee);if(xe)return Td(_e),_e=bs(lt,o),Ze(Ee)}return _e===n&&(_e=bs(lt,o)),ve}return _n.cancel=Ln,_n.flush=on,_n}var BS=ut(function(t,o){return Yf(t,1,o)}),DS=ut(function(t,o,N){return Yf(t,Mn(o)||0,N)});function jS(t){return fi(t,E)}function Ho(t,o){if(typeof t!="function"||o!=null&&typeof o!="function")throw new An(u);var N=function(){var Z=arguments,ie=o?o.apply(this,Z):Z[0],he=N.cache;if(he.has(ie))return he.get(ie);var ve=t.apply(this,Z);return N.cache=he.set(ie,ve)||he,ve};return N.cache=new(Ho.Cache||li),N}Ho.Cache=li;function Ko(t){if(typeof t!="function")throw new An(u);return function(){var o=arguments;switch(o.length){case 0:return!t.call(this);case 1:return!t.call(this,o[0]);case 2:return!t.call(this,o[0],o[1]);case 3:return!t.call(this,o[0],o[1],o[2])}return!t.apply(this,o)}}function US(t){return sh(2,t)}var xS=NT(function(t,o){o=o.length==1&&it(o[0])?Ot(o[0],vn(Xe())):Ot(Xt(o,1),vn(Xe()));var N=o.length;return ut(function(Z){for(var ie=-1,he=tn(Z.length,N);++ie<he;)Z[ie]=o[ie].call(this,Z[ie]);return Tn(t,this,Z)})}),zu=ut(function(t,o){var N=Mi(o,jr(zu));return fi(t,C,n,o,N)}),ch=ut(function(t,o){var N=Mi(o,jr(ch));return fi(t,R,n,o,N)}),zS=di(function(t,o){return fi(t,f,n,n,n,o)});function WS(t,o){if(typeof t!="function")throw new An(u);return o=o===n?o:st(o),ut(t,o)}function qS(t,o){if(typeof t!="function")throw new An(u);return o=o==null?0:Ht(st(o),0),ut(function(N){var Z=N[o],ie=xi(N,0,o);return Z&&Ri(ie,Z),Tn(t,this,ie)})}function JS(t,o,N){var Z=!0,ie=!0;if(typeof t!="function")throw new An(u);return It(N)&&(Z="leading"in N?!!N.leading:Z,ie="trailing"in N?!!N.trailing:ie),lh(t,o,{leading:Z,maxWait:o,trailing:ie})}function GS(t){return rh(t,1)}function HS(t,o){return zu(ku(o),t)}function KS(){if(!arguments.length)return[];var t=arguments[0];return it(t)?t:[t]}function VS(t){return Pn(t,L)}function ZS(t,o){return o=typeof o=="function"?o:n,Pn(t,L,o)}function QS(t){return Pn(t,O|L)}function XS(t,o){return o=typeof o=="function"?o:n,Pn(t,O|L,o)}function YS(t,o){return o==null||Xf(t,o,Zt(o))}function Jn(t,o){return t===o||t!==t&&o!==o}var $S=Uo(hu),ew=Uo(function(t,o){return t>=o}),sr=id((function(){return arguments})())?id:function(t){return Bt(t)&&bt.call(t,"callee")&&!qf.call(t,"callee")},it=Me.isArray,tw=_f?vn(_f):lT;function fn(t){return t!=null&&Vo(t.length)&&!pi(t)}function jt(t){return Bt(t)&&fn(t)}function nw(t){return t===!0||t===!1||Bt(t)&&rn(t)==ne}var zi=y0||Yu,iw=kf?vn(kf):cT;function rw(t){return Bt(t)&&t.nodeType===1&&!Ts(t)}function sw(t){if(t==null)return!0;if(fn(t)&&(it(t)||typeof t=="string"||typeof t.splice=="function"||zi(t)||Ur(t)||sr(t)))return!t.length;var o=nn(t);if(o==ye||o==Ie)return!t.size;if(gs(t))return!yu(t).length;for(var N in t)if(bt.call(t,N))return!1;return!0}function ow(t,o){return ps(t,o)}function aw(t,o,N){N=typeof N=="function"?N:n;var Z=N?N(t,o):n;return Z===n?ps(t,o,n,N):!!Z}function Wu(t){if(!Bt(t))return!1;var o=rn(t);return o==Ae||o==ge||typeof t.message=="string"&&typeof t.name=="string"&&!Ts(t)}function uw(t){return typeof t=="number"&&Gf(t)}function pi(t){if(!It(t))return!1;var o=rn(t);return o==pe||o==le||o==se||o==ue}function fh(t){return typeof t=="number"&&t==st(t)}function Vo(t){return typeof t=="number"&&t>-1&&t%1==0&&t<=x}function It(t){var o=typeof t;return t!=null&&(o=="object"||o=="function")}function Bt(t){return t!=null&&typeof t=="object"}var dh=Nf?vn(Nf):dT;function lw(t,o){return t===o||mu(t,o,Pu(o))}function cw(t,o,N){return N=typeof N=="function"?N:n,mu(t,o,Pu(o),N)}function fw(t){return hh(t)&&t!=+t}function dw(t){if(ZT(t))throw new nt(d);return rd(t)}function hw(t){return t===null}function pw(t){return t==null}function hh(t){return typeof t=="number"||Bt(t)&&rn(t)==de}function Ts(t){if(!Bt(t)||rn(t)!=z)return!1;var o=So(t);if(o===null)return!0;var N=bt.call(o,"constructor")&&o.constructor;return typeof N=="function"&&N instanceof N&&go.call(N)==c0}var qu=Of?vn(Of):hT;function mw(t){return fh(t)&&t>=-x&&t<=x}var ph=Cf?vn(Cf):pT;function Zo(t){return typeof t=="string"||!it(t)&&Bt(t)&&rn(t)==Ce}function wn(t){return typeof t=="symbol"||Bt(t)&&rn(t)==We}var Ur=Ef?vn(Ef):mT;function yw(t){return t===n}function gw(t){return Bt(t)&&nn(t)==ee}function bw(t){return Bt(t)&&rn(t)==te}var Tw=Uo(gu),vw=Uo(function(t,o){return t<=o});function mh(t){if(!t)return[];if(fn(t))return Zo(t)?Wn(t):cn(t);if(os&&t[os])return Yb(t[os]());var o=nn(t),N=o==ye?ru:o==Ie?po:xr;return N(t)}function mi(t){if(!t)return t===0?t:0;if(t=Mn(t),t===I||t===-I){var o=t<0?-1:1;return o*q}return t===t?t:0}function st(t){var o=mi(t),N=o%1;return o===o?N?o-N:o:0}function yh(t){return t?tr(st(t),0,D):0}function Mn(t){if(typeof t=="number")return t;if(wn(t))return T;if(It(t)){var o=typeof t.valueOf=="function"?t.valueOf():t;t=It(o)?o+"":o}if(typeof t!="string")return t===0?t:+t;t=Mf(t);var N=tb.test(t);return N||ib.test(t)?Mb(t.slice(2),N?2:8):ao.test(t)?T:+t}function gh(t){return ri(t,dn(t))}function Sw(t){return t?tr(st(t),-x,x):t===0?t:0}function gt(t){return t==null?"":Sn(t)}var ww=Br(function(t,o){if(gs(o)||fn(o)){ri(o,Zt(o),t);return}for(var N in o)bt.call(o,N)&&fs(t,N,o[N])}),bh=Br(function(t,o){ri(o,dn(o),t)}),Qo=Br(function(t,o,N,Z){ri(o,dn(o),t,Z)}),Lw=Br(function(t,o,N,Z){ri(o,Zt(o),t,Z)}),_w=di(cu);function kw(t,o){var N=Mr(t);return o==null?N:Qf(N,o)}var Nw=ut(function(t,o){t=St(t);var N=-1,Z=o.length,ie=Z>2?o[2]:n;for(ie&&sn(o[0],o[1],ie)&&(Z=1);++N<Z;)for(var he=o[N],ve=dn(he),_e=-1,Ee=ve.length;++_e<Ee;){var je=ve[_e],Ue=t[je];(Ue===n||Jn(Ue,Pr[je])&&!bt.call(t,je))&&(t[je]=he[je])}return t}),Ow=ut(function(t){return t.push(n,Md),Tn(Th,n,t)});function Cw(t,o){return Ff(t,Xe(o,3),ii)}function Ew(t,o){return Ff(t,Xe(o,3),du)}function Aw(t,o){return t==null?t:fu(t,Xe(o,3),dn)}function Fw(t,o){return t==null?t:td(t,Xe(o,3),dn)}function Pw(t,o){return t&&ii(t,Xe(o,3))}function Iw(t,o){return t&&du(t,Xe(o,3))}function Rw(t){return t==null?[]:Fo(t,Zt(t))}function Mw(t){return t==null?[]:Fo(t,dn(t))}function Ju(t,o,N){var Z=t==null?n:nr(t,o);return Z===n?N:Z}function Bw(t,o){return t!=null&&jd(t,o,sT)}function Gu(t,o){return t!=null&&jd(t,o,oT)}var Dw=Ad(function(t,o,N){o!=null&&typeof o.toString!="function"&&(o=bo.call(o)),t[o]=N},Ku(hn)),jw=Ad(function(t,o,N){o!=null&&typeof o.toString!="function"&&(o=bo.call(o)),bt.call(t,o)?t[o].push(N):t[o]=[N]},Xe),Uw=ut(hs);function Zt(t){return fn(t)?Vf(t):yu(t)}function dn(t){return fn(t)?Vf(t,!0):yT(t)}function xw(t,o){var N={};return o=Xe(o,3),ii(t,function(Z,ie,he){ci(N,o(Z,ie,he),Z)}),N}function zw(t,o){var N={};return o=Xe(o,3),ii(t,function(Z,ie,he){ci(N,ie,o(Z,ie,he))}),N}var Ww=Br(function(t,o,N){Po(t,o,N)}),Th=Br(function(t,o,N,Z){Po(t,o,N,Z)}),qw=di(function(t,o){var N={};if(t==null)return N;var Z=!1;o=Ot(o,function(he){return he=Ui(he,t),Z||(Z=he.length>1),he}),ri(t,Au(t),N),Z&&(N=Pn(N,O|M|L,DT));for(var ie=o.length;ie--;)wu(N,o[ie]);return N});function Jw(t,o){return vh(t,Ko(Xe(o)))}var Gw=di(function(t,o){return t==null?{}:bT(t,o)});function vh(t,o){if(t==null)return{};var N=Ot(Au(t),function(Z){return[Z]});return o=Xe(o),fd(t,N,function(Z,ie){return o(Z,ie[0])})}function Hw(t,o,N){o=Ui(o,t);var Z=-1,ie=o.length;for(ie||(ie=1,t=n);++Z<ie;){var he=t==null?n:t[si(o[Z])];he===n&&(Z=ie,he=N),t=pi(he)?he.call(t):he}return t}function Kw(t,o,N){return t==null?t:ms(t,o,N)}function Vw(t,o,N,Z){return Z=typeof Z=="function"?Z:n,t==null?t:ms(t,o,N,Z)}var Sh=Id(Zt),wh=Id(dn);function Zw(t,o,N){var Z=it(t),ie=Z||zi(t)||Ur(t);if(o=Xe(o,4),N==null){var he=t&&t.constructor;ie?N=Z?new he:[]:It(t)?N=pi(he)?Mr(So(t)):{}:N={}}return(ie?En:ii)(t,function(ve,_e,Ee){return o(N,ve,_e,Ee)}),N}function Qw(t,o){return t==null?!0:wu(t,o)}function Xw(t,o,N){return t==null?t:yd(t,o,ku(N))}function Yw(t,o,N,Z){return Z=typeof Z=="function"?Z:n,t==null?t:yd(t,o,ku(N),Z)}function xr(t){return t==null?[]:iu(t,Zt(t))}function $w(t){return t==null?[]:iu(t,dn(t))}function e1(t,o,N){return N===n&&(N=o,o=n),N!==n&&(N=Mn(N),N=N===N?N:0),o!==n&&(o=Mn(o),o=o===o?o:0),tr(Mn(t),o,N)}function t1(t,o,N){return o=mi(o),N===n?(N=o,o=0):N=mi(N),t=Mn(t),aT(t,o,N)}function n1(t,o,N){if(N&&typeof N!="boolean"&&sn(t,o,N)&&(o=N=n),N===n&&(typeof o=="boolean"?(N=o,o=n):typeof t=="boolean"&&(N=t,t=n)),t===n&&o===n?(t=0,o=1):(t=mi(t),o===n?(o=t,t=0):o=mi(o)),t>o){var Z=t;t=o,o=Z}if(N||t%1||o%1){var ie=Hf();return tn(t+ie*(o-t+Rb("1e-"+((ie+"").length-1))),o)}return Tu(t,o)}var i1=Dr(function(t,o,N){return o=o.toLowerCase(),t+(N?Lh(o):o)});function Lh(t){return Hu(gt(t).toLowerCase())}function _h(t){return t=gt(t),t&&t.replace(sb,Kb).replace(_b,"")}function r1(t,o,N){t=gt(t),o=Sn(o);var Z=t.length;N=N===n?Z:tr(st(N),0,Z);var ie=N;return N-=o.length,N>=0&&t.slice(N,ie)==o}function s1(t){return t=gt(t),t&&Le.test(t)?t.replace(Ne,Vb):t}function o1(t){return t=gt(t),t&&dt.test(t)?t.replace(wt,"\\$&"):t}var a1=Dr(function(t,o,N){return t+(N?"-":"")+o.toLowerCase()}),u1=Dr(function(t,o,N){return t+(N?" ":"")+o.toLowerCase()}),l1=Od("toLowerCase");function c1(t,o,N){t=gt(t),o=st(o);var Z=o?Ar(t):0;if(!o||Z>=o)return t;var ie=(o-Z)/2;return jo(ko(ie),N)+t+jo(_o(ie),N)}function f1(t,o,N){t=gt(t),o=st(o);var Z=o?Ar(t):0;return o&&Z<o?t+jo(o-Z,N):t}function d1(t,o,N){t=gt(t),o=st(o);var Z=o?Ar(t):0;return o&&Z<o?jo(o-Z,N)+t:t}function h1(t,o,N){return N||o==null?o=0:o&&(o=+o),v0(gt(t).replace(Pt,""),o||0)}function p1(t,o,N){return(N?sn(t,o,N):o===n)?o=1:o=st(o),vu(gt(t),o)}function m1(){var t=arguments,o=gt(t[0]);return t.length<3?o:o.replace(t[1],t[2])}var y1=Dr(function(t,o,N){return t+(N?"_":"")+o.toLowerCase()});function g1(t,o,N){return N&&typeof N!="number"&&sn(t,o,N)&&(o=N=n),N=N===n?D:N>>>0,N?(t=gt(t),t&&(typeof o=="string"||o!=null&&!qu(o))&&(o=Sn(o),!o&&Er(t))?xi(Wn(t),0,N):t.split(o,N)):[]}var b1=Dr(function(t,o,N){return t+(N?" ":"")+Hu(o)});function T1(t,o,N){return t=gt(t),N=N==null?0:tr(st(N),0,t.length),o=Sn(o),t.slice(N,N+o.length)==o}function v1(t,o,N){var Z=fe.templateSettings;N&&sn(t,o,N)&&(o=n),t=gt(t),o=Qo({},o,Z,Rd);var ie=Qo({},o.imports,Z.imports,Rd),he=Zt(ie),ve=iu(ie,he),_e,Ee,je=0,Ue=o.interpolate||uo,xe="__p += '",Je=su((o.escape||uo).source+"|"+Ue.source+"|"+(Ue===qe?zn:uo).source+"|"+(o.evaluate||uo).source+"|$","g"),Ze="//# sourceURL="+(bt.call(o,"sourceURL")?(o.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++Eb+"]")+`
935
893
  `;t.replace(Je,function($e,lt,ht,Ln,on,_n){return ht||(ht=Ln),xe+=t.slice(je,_n).replace(ob,Zb),lt&&(_e=!0,xe+=`' +
@@ -988,18 +946,8 @@ treating contingent properties as nullable.`,order:7},ignoreJsonRefs:{descriptio
988
946
  '{ $ref: "#/foo/bar" }' to refer
989
947
  to another part of the input.`,order:8}},e.inferenceFlagNames=Object.getOwnPropertyNames(e.inferenceFlagsObject),e.inferenceFlags=e.inferenceFlagsObject;const A={lang:"ts",inputData:new k.InputData,alphabetizeProperties:!1,allPropertiesOptional:!1,fixedTopLevels:!1,noRender:!1,leadingComments:void 0,rendererOptions:{},indentation:void 0,outputFilename:"stdout",debugPrintGraph:!1,checkProvenance:!1,debugPrintReconstitution:!1,debugPrintGatherNames:!1,debugPrintTransformations:!1,debugPrintTimes:!1,debugPrintSchemaResolving:!1};function f(){const g={};for(const I of e.inferenceFlagNames)g[I]=!0;return g}e.defaultInferenceFlags=f();let E=class{constructor(I){this._options=Object.assign({},A,e.defaultInferenceFlags);for(const x of Object.getOwnPropertyNames(I)){const q=I[x];q!==void 0&&(this._options[x]=q)}}get stringTypeMapping(){const I=R(this._options.lang),x=new Map(I.stringTypeMapping);for(const q of e.inferenceFlagNames){const T=e.inferenceFlags[q].stringType;!this._options[q]&&T!==void 0&&x.set(T,"string")}return x}get debugPrintReconstitution(){return this._options.debugPrintReconstitution===!0}get debugPrintTransformations(){return this._options.debugPrintTransformations}get debugPrintSchemaResolving(){return this._options.debugPrintSchemaResolving}timeSync(I,x){return l(this,void 0,void 0,function*(){const q=Date.now(),T=yield x(),D=Date.now();return this._options.debugPrintTimes&&console.log(`${I} took ${D-q}ms`),T})}time(I,x){const q=Date.now(),T=x(),D=Date.now();return this._options.debugPrintTimes&&console.log(`${I} took ${D-q}ms`),T}makeGraphInputs(){const I=R(this._options.lang),x=this.stringTypeMapping,q=!I.supportsUnionsWithBothNumberTypes,T=new F.TypeBuilder(0,x,this._options.alphabetizeProperties,this._options.allPropertiesOptional,this._options.checkProvenance,!1);return{targetLanguage:I,stringTypeMapping:x,conflateNumbers:q,typeBuilder:T}}makeGraph(I){return l(this,void 0,void 0,function*(){const x=this.makeGraphInputs();return yield this.timeSync("read input",()=>l(this,void 0,void 0,function*(){return yield I.addTypes(this,x.typeBuilder,this._options.inferMaps,this._options.inferEnums,this._options.fixedTopLevels)})),this.processGraph(I,x)})}makeGraphSync(I){const x=this.makeGraphInputs();return this.time("read input",()=>I.addTypesSync(this,x.typeBuilder,this._options.inferMaps,this._options.inferEnums,this._options.fixedTopLevels)),this.processGraph(I,x)}processGraph(I,x){const{targetLanguage:q,stringTypeMapping:T,conflateNumbers:D,typeBuilder:W}=x;let J=W.finish();this._options.debugPrintGraph&&(J.setPrintOnRewrite(),J.printGraph());const X=this.debugPrintReconstitution;(W.didAddForwardingIntersection||!this._options.ignoreJsonRefs)&&this.time("remove indirection intersections",()=>J=(0,O.removeIndirectionIntersections)(J,T,X));let Q=!1;if(I.needSchemaProcessing||!this._options.ignoreJsonRefs){let se=!1;do{const ne=J;se||this.time("resolve intersections",()=>[J,se]=(0,v.resolveIntersections)(J,T,X)),Q||this.time("flatten unions",()=>[J,Q]=(0,b.flattenUnions)(J,T,D,!0,X)),J===ne&&(0,c.assert)(se&&Q,"Graph didn't change but we're not done")}while(!se||!Q)}this.time("replace object type",()=>J=(0,h.replaceObjectType)(J,T,D,q.supportsFullObjectType,X));do this.time("flatten unions",()=>[J,Q]=(0,b.flattenUnions)(J,T,D,!1,X));while(!Q);if(this._options.combineClasses){const se=this.time("combine classes",()=>(0,w.combineClasses)(this,J,this._options.alphabetizeProperties,!0,!1,X));se===J?J=se:this.time("combine classes cleanup",()=>J=(0,w.combineClasses)(this,se,this._options.alphabetizeProperties,!1,!0,X))}if(this._options.inferMaps)for(;;){const se=this.time("infer maps",()=>(0,U.inferMaps)(J,T,!0,X));if(se===J)break;J=se}const re=I.needSchemaProcessing?"all":this._options.inferEnums?"infer":"none";return this.time("expand strings",()=>J=(0,_.expandStrings)(this,J,re)),this.time("flatten unions",()=>[J,Q]=(0,b.flattenUnions)(J,T,D,!1,X)),(0,c.assert)(Q,"We should only have to flatten unions once after expanding strings"),I.needSchemaProcessing&&this.time("flatten strings",()=>J=(0,B.flattenStrings)(J,T,X)),this.time("none to any",()=>J=(0,O.noneToAny)(J,T,X)),q.supportsOptionalClassProperties||this.time("optional to nullable",()=>J=(0,O.optionalToNullable)(J,T,X)),this.time("fixed point",()=>J=J.rewriteFixedPoint(!1,X)),this.time("make transformations",()=>J=(0,C.makeTransformations)(this,J,q)),this.time("flatten unions",()=>[J,Q]=(0,b.flattenUnions)(J,T,D,!1,X)),(0,c.assert)(Q,"We should only have to flatten unions once after making transformations"),this.time("GC",()=>J=J.garbageCollect(this._options.alphabetizeProperties,X)),this._options.debugPrintGraph&&console.log(`
990
948
  # gather names`),this.time("gather names",()=>(0,L.gatherNames)(J,!I.needSchemaProcessing,this._options.debugPrintGatherNames)),this._options.debugPrintGraph&&J.printGraph(),J}makeSimpleTextResult(I){return new Map([[this._options.outputFilename,{lines:I,annotations:[]}]])}preRun(){(0,M.initTypeNames)();const I=R(this._options.lang),x=this._options.inputData,T=x.needIR||I.names.indexOf("schema")<0?void 0:x.singleStringSchemaSource();if(T!==void 0){const D=JSON.stringify(JSON.parse(T),void 0,4).split(`
991
- `);D.push("");const W={lines:D,annotations:[]};return new Map([[this._options.outputFilename,W]])}return[x,I]}run(){return l(this,void 0,void 0,function*(){const I=this.preRun();if(!Array.isArray(I))return I;const[x,q]=I,T=yield this.makeGraph(x);return this.renderGraph(q,T)})}runSync(){const I=this.preRun();if(!Array.isArray(I))return I;const[x,q]=I,T=this.makeGraphSync(x);return this.renderGraph(q,T)}renderGraph(I,x){return this._options.noRender?this.makeSimpleTextResult(["Done.",""]):I.renderGraphAndSerialize(x,this._options.outputFilename,this._options.alphabetizeProperties,this._options.leadingComments,this._options.rendererOptions,this._options.indentation)}};function S(g){return l(this,void 0,void 0,function*(){return yield new E(g).run()})}e.quicktypeMultiFile=S;function P(g){return new E(g).runSync()}e.quicktypeMultiFileSync=P;function y(g,I){return{line:g.line+I,column:g.column}}function r(g,I){return{start:y(g.start,I),end:y(g.end,I)}}function s(g){if(g.size<=1){const q=(0,d.mapFirst)(g);return q===void 0?{lines:[],annotations:[]}:q}let I=[],x=[];for(const[q,T]of g){const D=I.length+2;I=I.concat([`// ${q}`,""],T.lines),x=x.concat(T.annotations.map(W=>({annotation:W.annotation,span:r(W.span,D)})))}return{lines:I,annotations:x}}e.combineRenderResults=s;function p(g){return l(this,void 0,void 0,function*(){const I=yield S(g);return s(I)})}e.quicktype=p})(Hn)),Hn}var ei={},na={},Gl={exports:{}},Hl={exports:{}},Kl={},ia={};/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */var Im;function Kg(){return Im||(Im=1,ia.read=function(e,i,n,a,l){var d,u,c=l*8-a-1,w=(1<<c)-1,U=w>>1,F=-7,O=n?l-1:0,M=n?-1:1,L=e[i+O];for(O+=M,d=L&(1<<-F)-1,L>>=-F,F+=c;F>0;d=d*256+e[i+O],O+=M,F-=8);for(u=d&(1<<-F)-1,d>>=-F,F+=a;F>0;u=u*256+e[i+O],O+=M,F-=8);if(d===0)d=1-U;else{if(d===w)return u?NaN:(L?-1:1)*(1/0);u=u+Math.pow(2,a),d=d-U}return(L?-1:1)*u*Math.pow(2,d-a)},ia.write=function(e,i,n,a,l,d){var u,c,w,U=d*8-l-1,F=(1<<U)-1,O=F>>1,M=l===23?Math.pow(2,-24)-Math.pow(2,-77):0,L=a?0:d-1,_=a?1:-1,b=i<0||i===0&&1/i<0?1:0;for(i=Math.abs(i),isNaN(i)||i===1/0?(c=isNaN(i)?1:0,u=F):(u=Math.floor(Math.log(i)/Math.LN2),i*(w=Math.pow(2,-u))<1&&(u--,w*=2),u+O>=1?i+=M/w:i+=M*Math.pow(2,1-O),i*w>=2&&(u++,w/=2),u+O>=F?(c=0,u=F):u+O>=1?(c=(i*w-1)*Math.pow(2,l),u=u+O):(c=i*Math.pow(2,O-1)*Math.pow(2,l),u=0));l>=8;e[n+L]=c&255,L+=_,c/=256,l-=8);for(u=u<<l|c,U+=l;U>0;e[n+L]=u&255,L+=_,u/=256,U-=8);e[n+L-_]|=b*128}),ia}/*!
992
- * The buffer module from node.js, for the browser.
993
- *
994
- * @author Feross Aboukhadijeh <https://feross.org>
995
- * @license MIT
996
- */var Rm;function Sr(){return Rm||(Rm=1,(function(e){const i=Jc(),n=Kg(),a=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;e.Buffer=c,e.SlowBuffer=m,e.INSPECT_MAX_BYTES=50;const l=2147483647;e.kMaxLength=l,c.TYPED_ARRAY_SUPPORT=d(),!c.TYPED_ARRAY_SUPPORT&&typeof console<"u"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function d(){try{const K=new Uint8Array(1),j={foo:function(){return 42}};return Object.setPrototypeOf(j,Uint8Array.prototype),Object.setPrototypeOf(K,j),K.foo()===42}catch{return!1}}Object.defineProperty(c.prototype,"parent",{enumerable:!0,get:function(){if(c.isBuffer(this))return this.buffer}}),Object.defineProperty(c.prototype,"offset",{enumerable:!0,get:function(){if(c.isBuffer(this))return this.byteOffset}});function u(K){if(K>l)throw new RangeError('The value "'+K+'" is invalid for option "size"');const j=new Uint8Array(K);return Object.setPrototypeOf(j,c.prototype),j}function c(K,j,G){if(typeof K=="number"){if(typeof j=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return O(K)}return w(K,j,G)}c.poolSize=8192;function w(K,j,G){if(typeof K=="string")return M(K,j);if(ArrayBuffer.isView(K))return _(K);if(K==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof K);if(Ce(K,ArrayBuffer)||K&&Ce(K.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(Ce(K,SharedArrayBuffer)||K&&Ce(K.buffer,SharedArrayBuffer)))return b(K,j,G);if(typeof K=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');const ce=K.valueOf&&K.valueOf();if(ce!=null&&ce!==K)return c.from(ce,j,G);const $=v(K);if($)return $;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof K[Symbol.toPrimitive]=="function")return c.from(K[Symbol.toPrimitive]("string"),j,G);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof K)}c.from=function(K,j,G){return w(K,j,G)},Object.setPrototypeOf(c.prototype,Uint8Array.prototype),Object.setPrototypeOf(c,Uint8Array);function U(K){if(typeof K!="number")throw new TypeError('"size" argument must be of type number');if(K<0)throw new RangeError('The value "'+K+'" is invalid for option "size"')}function F(K,j,G){return U(K),K<=0?u(K):j!==void 0?typeof G=="string"?u(K).fill(j,G):u(K).fill(j):u(K)}c.alloc=function(K,j,G){return F(K,j,G)};function O(K){return U(K),u(K<0?0:h(K)|0)}c.allocUnsafe=function(K){return O(K)},c.allocUnsafeSlow=function(K){return O(K)};function M(K,j){if((typeof j!="string"||j==="")&&(j="utf8"),!c.isEncoding(j))throw new TypeError("Unknown encoding: "+j);const G=k(K,j)|0;let ce=u(G);const $=ce.write(K,j);return $!==G&&(ce=ce.slice(0,$)),ce}function L(K){const j=K.length<0?0:h(K.length)|0,G=u(j);for(let ce=0;ce<j;ce+=1)G[ce]=K[ce]&255;return G}function _(K){if(Ce(K,Uint8Array)){const j=new Uint8Array(K);return b(j.buffer,j.byteOffset,j.byteLength)}return L(K)}function b(K,j,G){if(j<0||K.byteLength<j)throw new RangeError('"offset" is outside of buffer bounds');if(K.byteLength<j+(G||0))throw new RangeError('"length" is outside of buffer bounds');let ce;return j===void 0&&G===void 0?ce=new Uint8Array(K):G===void 0?ce=new Uint8Array(K,j):ce=new Uint8Array(K,j,G),Object.setPrototypeOf(ce,c.prototype),ce}function v(K){if(c.isBuffer(K)){const j=h(K.length)|0,G=u(j);return G.length===0||K.copy(G,0,0,j),G}if(K.length!==void 0)return typeof K.length!="number"||We(K.length)?u(0):L(K);if(K.type==="Buffer"&&Array.isArray(K.data))return L(K.data)}function h(K){if(K>=l)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+l.toString(16)+" bytes");return K|0}function m(K){return+K!=K&&(K=0),c.alloc(+K)}c.isBuffer=function(j){return j!=null&&j._isBuffer===!0&&j!==c.prototype},c.compare=function(j,G){if(Ce(j,Uint8Array)&&(j=c.from(j,j.offset,j.byteLength)),Ce(G,Uint8Array)&&(G=c.from(G,G.offset,G.byteLength)),!c.isBuffer(j)||!c.isBuffer(G))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(j===G)return 0;let ce=j.length,$=G.length;for(let be=0,Se=Math.min(ce,$);be<Se;++be)if(j[be]!==G[be]){ce=j[be],$=G[be];break}return ce<$?-1:$<ce?1:0},c.isEncoding=function(j){switch(String(j).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},c.concat=function(j,G){if(!Array.isArray(j))throw new TypeError('"list" argument must be an Array of Buffers');if(j.length===0)return c.alloc(0);let ce;if(G===void 0)for(G=0,ce=0;ce<j.length;++ce)G+=j[ce].length;const $=c.allocUnsafe(G);let be=0;for(ce=0;ce<j.length;++ce){let Se=j[ce];if(Ce(Se,Uint8Array))be+Se.length>$.length?(c.isBuffer(Se)||(Se=c.from(Se)),Se.copy($,be)):Uint8Array.prototype.set.call($,Se,be);else if(c.isBuffer(Se))Se.copy($,be);else throw new TypeError('"list" argument must be an Array of Buffers');be+=Se.length}return $};function k(K,j){if(c.isBuffer(K))return K.length;if(ArrayBuffer.isView(K)||Ce(K,ArrayBuffer))return K.byteLength;if(typeof K!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof K);const G=K.length,ce=arguments.length>2&&arguments[2]===!0;if(!ce&&G===0)return 0;let $=!1;for(;;)switch(j){case"ascii":case"latin1":case"binary":return G;case"utf8":case"utf-8":return z(K).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return G*2;case"hex":return G>>>1;case"base64":return Te(K).length;default:if($)return ce?-1:z(K).length;j=(""+j).toLowerCase(),$=!0}}c.byteLength=k;function B(K,j,G){let ce=!1;if((j===void 0||j<0)&&(j=0),j>this.length||((G===void 0||G>this.length)&&(G=this.length),G<=0)||(G>>>=0,j>>>=0,G<=j))return"";for(K||(K="utf8");;)switch(K){case"hex":return q(this,j,G);case"utf8":case"utf-8":return s(this,j,G);case"ascii":return I(this,j,G);case"latin1":case"binary":return x(this,j,G);case"base64":return r(this,j,G);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return T(this,j,G);default:if(ce)throw new TypeError("Unknown encoding: "+K);K=(K+"").toLowerCase(),ce=!0}}c.prototype._isBuffer=!0;function C(K,j,G){const ce=K[j];K[j]=K[G],K[G]=ce}c.prototype.swap16=function(){const j=this.length;if(j%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let G=0;G<j;G+=2)C(this,G,G+1);return this},c.prototype.swap32=function(){const j=this.length;if(j%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let G=0;G<j;G+=4)C(this,G,G+3),C(this,G+1,G+2);return this},c.prototype.swap64=function(){const j=this.length;if(j%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let G=0;G<j;G+=8)C(this,G,G+7),C(this,G+1,G+6),C(this,G+2,G+5),C(this,G+3,G+4);return this},c.prototype.toString=function(){const j=this.length;return j===0?"":arguments.length===0?s(this,0,j):B.apply(this,arguments)},c.prototype.toLocaleString=c.prototype.toString,c.prototype.equals=function(j){if(!c.isBuffer(j))throw new TypeError("Argument must be a Buffer");return this===j?!0:c.compare(this,j)===0},c.prototype.inspect=function(){let j="";const G=e.INSPECT_MAX_BYTES;return j=this.toString("hex",0,G).replace(/(.{2})/g,"$1 ").trim(),this.length>G&&(j+=" ... "),"<Buffer "+j+">"},a&&(c.prototype[a]=c.prototype.inspect),c.prototype.compare=function(j,G,ce,$,be){if(Ce(j,Uint8Array)&&(j=c.from(j,j.offset,j.byteLength)),!c.isBuffer(j))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof j);if(G===void 0&&(G=0),ce===void 0&&(ce=j?j.length:0),$===void 0&&($=0),be===void 0&&(be=this.length),G<0||ce>j.length||$<0||be>this.length)throw new RangeError("out of range index");if($>=be&&G>=ce)return 0;if($>=be)return-1;if(G>=ce)return 1;if(G>>>=0,ce>>>=0,$>>>=0,be>>>=0,this===j)return 0;let Se=be-$,Be=ce-G;const we=Math.min(Se,Be),Pe=this.slice($,be),oe=j.slice(G,ce);for(let Re=0;Re<we;++Re)if(Pe[Re]!==oe[Re]){Se=Pe[Re],Be=oe[Re];break}return Se<Be?-1:Be<Se?1:0};function R(K,j,G,ce,$){if(K.length===0)return-1;if(typeof G=="string"?(ce=G,G=0):G>2147483647?G=2147483647:G<-2147483648&&(G=-2147483648),G=+G,We(G)&&(G=$?0:K.length-1),G<0&&(G=K.length+G),G>=K.length){if($)return-1;G=K.length-1}else if(G<0)if($)G=0;else return-1;if(typeof j=="string"&&(j=c.from(j,ce)),c.isBuffer(j))return j.length===0?-1:A(K,j,G,ce,$);if(typeof j=="number")return j=j&255,typeof Uint8Array.prototype.indexOf=="function"?$?Uint8Array.prototype.indexOf.call(K,j,G):Uint8Array.prototype.lastIndexOf.call(K,j,G):A(K,[j],G,ce,$);throw new TypeError("val must be string, number or Buffer")}function A(K,j,G,ce,$){let be=1,Se=K.length,Be=j.length;if(ce!==void 0&&(ce=String(ce).toLowerCase(),ce==="ucs2"||ce==="ucs-2"||ce==="utf16le"||ce==="utf-16le")){if(K.length<2||j.length<2)return-1;be=2,Se/=2,Be/=2,G/=2}function we(oe,Re){return be===1?oe[Re]:oe.readUInt16BE(Re*be)}let Pe;if($){let oe=-1;for(Pe=G;Pe<Se;Pe++)if(we(K,Pe)===we(j,oe===-1?0:Pe-oe)){if(oe===-1&&(oe=Pe),Pe-oe+1===Be)return oe*be}else oe!==-1&&(Pe-=Pe-oe),oe=-1}else for(G+Be>Se&&(G=Se-Be),Pe=G;Pe>=0;Pe--){let oe=!0;for(let Re=0;Re<Be;Re++)if(we(K,Pe+Re)!==we(j,Re)){oe=!1;break}if(oe)return Pe}return-1}c.prototype.includes=function(j,G,ce){return this.indexOf(j,G,ce)!==-1},c.prototype.indexOf=function(j,G,ce){return R(this,j,G,ce,!0)},c.prototype.lastIndexOf=function(j,G,ce){return R(this,j,G,ce,!1)};function f(K,j,G,ce){G=Number(G)||0;const $=K.length-G;ce?(ce=Number(ce),ce>$&&(ce=$)):ce=$;const be=j.length;ce>be/2&&(ce=be/2);let Se;for(Se=0;Se<ce;++Se){const Be=parseInt(j.substr(Se*2,2),16);if(We(Be))return Se;K[G+Se]=Be}return Se}function E(K,j,G,ce){return Ie(z(j,K.length-G),K,G,ce)}function S(K,j,G,ce){return Ie(V(j),K,G,ce)}function P(K,j,G,ce){return Ie(Te(j),K,G,ce)}function y(K,j,G,ce){return Ie(ue(j,K.length-G),K,G,ce)}c.prototype.write=function(j,G,ce,$){if(G===void 0)$="utf8",ce=this.length,G=0;else if(ce===void 0&&typeof G=="string")$=G,ce=this.length,G=0;else if(isFinite(G))G=G>>>0,isFinite(ce)?(ce=ce>>>0,$===void 0&&($="utf8")):($=ce,ce=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");const be=this.length-G;if((ce===void 0||ce>be)&&(ce=be),j.length>0&&(ce<0||G<0)||G>this.length)throw new RangeError("Attempt to write outside buffer bounds");$||($="utf8");let Se=!1;for(;;)switch($){case"hex":return f(this,j,G,ce);case"utf8":case"utf-8":return E(this,j,G,ce);case"ascii":case"latin1":case"binary":return S(this,j,G,ce);case"base64":return P(this,j,G,ce);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return y(this,j,G,ce);default:if(Se)throw new TypeError("Unknown encoding: "+$);$=(""+$).toLowerCase(),Se=!0}},c.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function r(K,j,G){return j===0&&G===K.length?i.fromByteArray(K):i.fromByteArray(K.slice(j,G))}function s(K,j,G){G=Math.min(K.length,G);const ce=[];let $=j;for(;$<G;){const be=K[$];let Se=null,Be=be>239?4:be>223?3:be>191?2:1;if($+Be<=G){let we,Pe,oe,Re;switch(Be){case 1:be<128&&(Se=be);break;case 2:we=K[$+1],(we&192)===128&&(Re=(be&31)<<6|we&63,Re>127&&(Se=Re));break;case 3:we=K[$+1],Pe=K[$+2],(we&192)===128&&(Pe&192)===128&&(Re=(be&15)<<12|(we&63)<<6|Pe&63,Re>2047&&(Re<55296||Re>57343)&&(Se=Re));break;case 4:we=K[$+1],Pe=K[$+2],oe=K[$+3],(we&192)===128&&(Pe&192)===128&&(oe&192)===128&&(Re=(be&15)<<18|(we&63)<<12|(Pe&63)<<6|oe&63,Re>65535&&Re<1114112&&(Se=Re))}}Se===null?(Se=65533,Be=1):Se>65535&&(Se-=65536,ce.push(Se>>>10&1023|55296),Se=56320|Se&1023),ce.push(Se),$+=Be}return g(ce)}const p=4096;function g(K){const j=K.length;if(j<=p)return String.fromCharCode.apply(String,K);let G="",ce=0;for(;ce<j;)G+=String.fromCharCode.apply(String,K.slice(ce,ce+=p));return G}function I(K,j,G){let ce="";G=Math.min(K.length,G);for(let $=j;$<G;++$)ce+=String.fromCharCode(K[$]&127);return ce}function x(K,j,G){let ce="";G=Math.min(K.length,G);for(let $=j;$<G;++$)ce+=String.fromCharCode(K[$]);return ce}function q(K,j,G){const ce=K.length;(!j||j<0)&&(j=0),(!G||G<0||G>ce)&&(G=ce);let $="";for(let be=j;be<G;++be)$+=Ge[K[be]];return $}function T(K,j,G){const ce=K.slice(j,G);let $="";for(let be=0;be<ce.length-1;be+=2)$+=String.fromCharCode(ce[be]+ce[be+1]*256);return $}c.prototype.slice=function(j,G){const ce=this.length;j=~~j,G=G===void 0?ce:~~G,j<0?(j+=ce,j<0&&(j=0)):j>ce&&(j=ce),G<0?(G+=ce,G<0&&(G=0)):G>ce&&(G=ce),G<j&&(G=j);const $=this.subarray(j,G);return Object.setPrototypeOf($,c.prototype),$};function D(K,j,G){if(K%1!==0||K<0)throw new RangeError("offset is not uint");if(K+j>G)throw new RangeError("Trying to access beyond buffer length")}c.prototype.readUintLE=c.prototype.readUIntLE=function(j,G,ce){j=j>>>0,G=G>>>0,ce||D(j,G,this.length);let $=this[j],be=1,Se=0;for(;++Se<G&&(be*=256);)$+=this[j+Se]*be;return $},c.prototype.readUintBE=c.prototype.readUIntBE=function(j,G,ce){j=j>>>0,G=G>>>0,ce||D(j,G,this.length);let $=this[j+--G],be=1;for(;G>0&&(be*=256);)$+=this[j+--G]*be;return $},c.prototype.readUint8=c.prototype.readUInt8=function(j,G){return j=j>>>0,G||D(j,1,this.length),this[j]},c.prototype.readUint16LE=c.prototype.readUInt16LE=function(j,G){return j=j>>>0,G||D(j,2,this.length),this[j]|this[j+1]<<8},c.prototype.readUint16BE=c.prototype.readUInt16BE=function(j,G){return j=j>>>0,G||D(j,2,this.length),this[j]<<8|this[j+1]},c.prototype.readUint32LE=c.prototype.readUInt32LE=function(j,G){return j=j>>>0,G||D(j,4,this.length),(this[j]|this[j+1]<<8|this[j+2]<<16)+this[j+3]*16777216},c.prototype.readUint32BE=c.prototype.readUInt32BE=function(j,G){return j=j>>>0,G||D(j,4,this.length),this[j]*16777216+(this[j+1]<<16|this[j+2]<<8|this[j+3])},c.prototype.readBigUInt64LE=ee(function(j){j=j>>>0,le(j,"offset");const G=this[j],ce=this[j+7];(G===void 0||ce===void 0)&&ye(j,this.length-8);const $=G+this[++j]*2**8+this[++j]*2**16+this[++j]*2**24,be=this[++j]+this[++j]*2**8+this[++j]*2**16+ce*2**24;return BigInt($)+(BigInt(be)<<BigInt(32))}),c.prototype.readBigUInt64BE=ee(function(j){j=j>>>0,le(j,"offset");const G=this[j],ce=this[j+7];(G===void 0||ce===void 0)&&ye(j,this.length-8);const $=G*2**24+this[++j]*2**16+this[++j]*2**8+this[++j],be=this[++j]*2**24+this[++j]*2**16+this[++j]*2**8+ce;return(BigInt($)<<BigInt(32))+BigInt(be)}),c.prototype.readIntLE=function(j,G,ce){j=j>>>0,G=G>>>0,ce||D(j,G,this.length);let $=this[j],be=1,Se=0;for(;++Se<G&&(be*=256);)$+=this[j+Se]*be;return be*=128,$>=be&&($-=Math.pow(2,8*G)),$},c.prototype.readIntBE=function(j,G,ce){j=j>>>0,G=G>>>0,ce||D(j,G,this.length);let $=G,be=1,Se=this[j+--$];for(;$>0&&(be*=256);)Se+=this[j+--$]*be;return be*=128,Se>=be&&(Se-=Math.pow(2,8*G)),Se},c.prototype.readInt8=function(j,G){return j=j>>>0,G||D(j,1,this.length),this[j]&128?(255-this[j]+1)*-1:this[j]},c.prototype.readInt16LE=function(j,G){j=j>>>0,G||D(j,2,this.length);const ce=this[j]|this[j+1]<<8;return ce&32768?ce|4294901760:ce},c.prototype.readInt16BE=function(j,G){j=j>>>0,G||D(j,2,this.length);const ce=this[j+1]|this[j]<<8;return ce&32768?ce|4294901760:ce},c.prototype.readInt32LE=function(j,G){return j=j>>>0,G||D(j,4,this.length),this[j]|this[j+1]<<8|this[j+2]<<16|this[j+3]<<24},c.prototype.readInt32BE=function(j,G){return j=j>>>0,G||D(j,4,this.length),this[j]<<24|this[j+1]<<16|this[j+2]<<8|this[j+3]},c.prototype.readBigInt64LE=ee(function(j){j=j>>>0,le(j,"offset");const G=this[j],ce=this[j+7];(G===void 0||ce===void 0)&&ye(j,this.length-8);const $=this[j+4]+this[j+5]*2**8+this[j+6]*2**16+(ce<<24);return(BigInt($)<<BigInt(32))+BigInt(G+this[++j]*2**8+this[++j]*2**16+this[++j]*2**24)}),c.prototype.readBigInt64BE=ee(function(j){j=j>>>0,le(j,"offset");const G=this[j],ce=this[j+7];(G===void 0||ce===void 0)&&ye(j,this.length-8);const $=(G<<24)+this[++j]*2**16+this[++j]*2**8+this[++j];return(BigInt($)<<BigInt(32))+BigInt(this[++j]*2**24+this[++j]*2**16+this[++j]*2**8+ce)}),c.prototype.readFloatLE=function(j,G){return j=j>>>0,G||D(j,4,this.length),n.read(this,j,!0,23,4)},c.prototype.readFloatBE=function(j,G){return j=j>>>0,G||D(j,4,this.length),n.read(this,j,!1,23,4)},c.prototype.readDoubleLE=function(j,G){return j=j>>>0,G||D(j,8,this.length),n.read(this,j,!0,52,8)},c.prototype.readDoubleBE=function(j,G){return j=j>>>0,G||D(j,8,this.length),n.read(this,j,!1,52,8)};function W(K,j,G,ce,$,be){if(!c.isBuffer(K))throw new TypeError('"buffer" argument must be a Buffer instance');if(j>$||j<be)throw new RangeError('"value" argument is out of bounds');if(G+ce>K.length)throw new RangeError("Index out of range")}c.prototype.writeUintLE=c.prototype.writeUIntLE=function(j,G,ce,$){if(j=+j,G=G>>>0,ce=ce>>>0,!$){const Be=Math.pow(2,8*ce)-1;W(this,j,G,ce,Be,0)}let be=1,Se=0;for(this[G]=j&255;++Se<ce&&(be*=256);)this[G+Se]=j/be&255;return G+ce},c.prototype.writeUintBE=c.prototype.writeUIntBE=function(j,G,ce,$){if(j=+j,G=G>>>0,ce=ce>>>0,!$){const Be=Math.pow(2,8*ce)-1;W(this,j,G,ce,Be,0)}let be=ce-1,Se=1;for(this[G+be]=j&255;--be>=0&&(Se*=256);)this[G+be]=j/Se&255;return G+ce},c.prototype.writeUint8=c.prototype.writeUInt8=function(j,G,ce){return j=+j,G=G>>>0,ce||W(this,j,G,1,255,0),this[G]=j&255,G+1},c.prototype.writeUint16LE=c.prototype.writeUInt16LE=function(j,G,ce){return j=+j,G=G>>>0,ce||W(this,j,G,2,65535,0),this[G]=j&255,this[G+1]=j>>>8,G+2},c.prototype.writeUint16BE=c.prototype.writeUInt16BE=function(j,G,ce){return j=+j,G=G>>>0,ce||W(this,j,G,2,65535,0),this[G]=j>>>8,this[G+1]=j&255,G+2},c.prototype.writeUint32LE=c.prototype.writeUInt32LE=function(j,G,ce){return j=+j,G=G>>>0,ce||W(this,j,G,4,4294967295,0),this[G+3]=j>>>24,this[G+2]=j>>>16,this[G+1]=j>>>8,this[G]=j&255,G+4},c.prototype.writeUint32BE=c.prototype.writeUInt32BE=function(j,G,ce){return j=+j,G=G>>>0,ce||W(this,j,G,4,4294967295,0),this[G]=j>>>24,this[G+1]=j>>>16,this[G+2]=j>>>8,this[G+3]=j&255,G+4};function J(K,j,G,ce,$){pe(j,ce,$,K,G,7);let be=Number(j&BigInt(4294967295));K[G++]=be,be=be>>8,K[G++]=be,be=be>>8,K[G++]=be,be=be>>8,K[G++]=be;let Se=Number(j>>BigInt(32)&BigInt(4294967295));return K[G++]=Se,Se=Se>>8,K[G++]=Se,Se=Se>>8,K[G++]=Se,Se=Se>>8,K[G++]=Se,G}function X(K,j,G,ce,$){pe(j,ce,$,K,G,7);let be=Number(j&BigInt(4294967295));K[G+7]=be,be=be>>8,K[G+6]=be,be=be>>8,K[G+5]=be,be=be>>8,K[G+4]=be;let Se=Number(j>>BigInt(32)&BigInt(4294967295));return K[G+3]=Se,Se=Se>>8,K[G+2]=Se,Se=Se>>8,K[G+1]=Se,Se=Se>>8,K[G]=Se,G+8}c.prototype.writeBigUInt64LE=ee(function(j,G=0){return J(this,j,G,BigInt(0),BigInt("0xffffffffffffffff"))}),c.prototype.writeBigUInt64BE=ee(function(j,G=0){return X(this,j,G,BigInt(0),BigInt("0xffffffffffffffff"))}),c.prototype.writeIntLE=function(j,G,ce,$){if(j=+j,G=G>>>0,!$){const we=Math.pow(2,8*ce-1);W(this,j,G,ce,we-1,-we)}let be=0,Se=1,Be=0;for(this[G]=j&255;++be<ce&&(Se*=256);)j<0&&Be===0&&this[G+be-1]!==0&&(Be=1),this[G+be]=(j/Se>>0)-Be&255;return G+ce},c.prototype.writeIntBE=function(j,G,ce,$){if(j=+j,G=G>>>0,!$){const we=Math.pow(2,8*ce-1);W(this,j,G,ce,we-1,-we)}let be=ce-1,Se=1,Be=0;for(this[G+be]=j&255;--be>=0&&(Se*=256);)j<0&&Be===0&&this[G+be+1]!==0&&(Be=1),this[G+be]=(j/Se>>0)-Be&255;return G+ce},c.prototype.writeInt8=function(j,G,ce){return j=+j,G=G>>>0,ce||W(this,j,G,1,127,-128),j<0&&(j=255+j+1),this[G]=j&255,G+1},c.prototype.writeInt16LE=function(j,G,ce){return j=+j,G=G>>>0,ce||W(this,j,G,2,32767,-32768),this[G]=j&255,this[G+1]=j>>>8,G+2},c.prototype.writeInt16BE=function(j,G,ce){return j=+j,G=G>>>0,ce||W(this,j,G,2,32767,-32768),this[G]=j>>>8,this[G+1]=j&255,G+2},c.prototype.writeInt32LE=function(j,G,ce){return j=+j,G=G>>>0,ce||W(this,j,G,4,2147483647,-2147483648),this[G]=j&255,this[G+1]=j>>>8,this[G+2]=j>>>16,this[G+3]=j>>>24,G+4},c.prototype.writeInt32BE=function(j,G,ce){return j=+j,G=G>>>0,ce||W(this,j,G,4,2147483647,-2147483648),j<0&&(j=4294967295+j+1),this[G]=j>>>24,this[G+1]=j>>>16,this[G+2]=j>>>8,this[G+3]=j&255,G+4},c.prototype.writeBigInt64LE=ee(function(j,G=0){return J(this,j,G,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),c.prototype.writeBigInt64BE=ee(function(j,G=0){return X(this,j,G,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function Q(K,j,G,ce,$,be){if(G+ce>K.length)throw new RangeError("Index out of range");if(G<0)throw new RangeError("Index out of range")}function re(K,j,G,ce,$){return j=+j,G=G>>>0,$||Q(K,j,G,4),n.write(K,j,G,ce,23,4),G+4}c.prototype.writeFloatLE=function(j,G,ce){return re(this,j,G,!0,ce)},c.prototype.writeFloatBE=function(j,G,ce){return re(this,j,G,!1,ce)};function se(K,j,G,ce,$){return j=+j,G=G>>>0,$||Q(K,j,G,8),n.write(K,j,G,ce,52,8),G+8}c.prototype.writeDoubleLE=function(j,G,ce){return se(this,j,G,!0,ce)},c.prototype.writeDoubleBE=function(j,G,ce){return se(this,j,G,!1,ce)},c.prototype.copy=function(j,G,ce,$){if(!c.isBuffer(j))throw new TypeError("argument should be a Buffer");if(ce||(ce=0),!$&&$!==0&&($=this.length),G>=j.length&&(G=j.length),G||(G=0),$>0&&$<ce&&($=ce),$===ce||j.length===0||this.length===0)return 0;if(G<0)throw new RangeError("targetStart out of bounds");if(ce<0||ce>=this.length)throw new RangeError("Index out of range");if($<0)throw new RangeError("sourceEnd out of bounds");$>this.length&&($=this.length),j.length-G<$-ce&&($=j.length-G+ce);const be=$-ce;return this===j&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(G,ce,$):Uint8Array.prototype.set.call(j,this.subarray(ce,$),G),be},c.prototype.fill=function(j,G,ce,$){if(typeof j=="string"){if(typeof G=="string"?($=G,G=0,ce=this.length):typeof ce=="string"&&($=ce,ce=this.length),$!==void 0&&typeof $!="string")throw new TypeError("encoding must be a string");if(typeof $=="string"&&!c.isEncoding($))throw new TypeError("Unknown encoding: "+$);if(j.length===1){const Se=j.charCodeAt(0);($==="utf8"&&Se<128||$==="latin1")&&(j=Se)}}else typeof j=="number"?j=j&255:typeof j=="boolean"&&(j=Number(j));if(G<0||this.length<G||this.length<ce)throw new RangeError("Out of range index");if(ce<=G)return this;G=G>>>0,ce=ce===void 0?this.length:ce>>>0,j||(j=0);let be;if(typeof j=="number")for(be=G;be<ce;++be)this[be]=j;else{const Se=c.isBuffer(j)?j:c.from(j,$),Be=Se.length;if(Be===0)throw new TypeError('The value "'+j+'" is invalid for argument "value"');for(be=0;be<ce-G;++be)this[be+G]=Se[be%Be]}return this};const ne={};function me(K,j,G){ne[K]=class extends G{constructor(){super(),Object.defineProperty(this,"message",{value:j.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${K}]`,this.stack,delete this.name}get code(){return K}set code($){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:$,writable:!0})}toString(){return`${this.name} [${K}]: ${this.message}`}}}me("ERR_BUFFER_OUT_OF_BOUNDS",function(K){return K?`${K} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),me("ERR_INVALID_ARG_TYPE",function(K,j){return`The "${K}" argument must be of type number. Received type ${typeof j}`},TypeError),me("ERR_OUT_OF_RANGE",function(K,j,G){let ce=`The value of "${K}" is out of range.`,$=G;return Number.isInteger(G)&&Math.abs(G)>2**32?$=ge(String(G)):typeof G=="bigint"&&($=String(G),(G>BigInt(2)**BigInt(32)||G<-(BigInt(2)**BigInt(32)))&&($=ge($)),$+="n"),ce+=` It must be ${j}. Received ${$}`,ce},RangeError);function ge(K){let j="",G=K.length;const ce=K[0]==="-"?1:0;for(;G>=ce+4;G-=3)j=`_${K.slice(G-3,G)}${j}`;return`${K.slice(0,G)}${j}`}function Ae(K,j,G){le(j,"offset"),(K[j]===void 0||K[j+G]===void 0)&&ye(j,K.length-(G+1))}function pe(K,j,G,ce,$,be){if(K>G||K<j){const Se=typeof j=="bigint"?"n":"";let Be;throw j===0||j===BigInt(0)?Be=`>= 0${Se} and < 2${Se} ** ${(be+1)*8}${Se}`:Be=`>= -(2${Se} ** ${(be+1)*8-1}${Se}) and < 2 ** ${(be+1)*8-1}${Se}`,new ne.ERR_OUT_OF_RANGE("value",Be,K)}Ae(ce,$,be)}function le(K,j){if(typeof K!="number")throw new ne.ERR_INVALID_ARG_TYPE(j,"number",K)}function ye(K,j,G){throw Math.floor(K)!==K?(le(K,G),new ne.ERR_OUT_OF_RANGE("offset","an integer",K)):j<0?new ne.ERR_BUFFER_OUT_OF_BOUNDS:new ne.ERR_OUT_OF_RANGE("offset",`>= 0 and <= ${j}`,K)}const de=/[^+/0-9A-Za-z-_]/g;function Y(K){if(K=K.split("=")[0],K=K.trim().replace(de,""),K.length<2)return"";for(;K.length%4!==0;)K=K+"=";return K}function z(K,j){j=j||1/0;let G;const ce=K.length;let $=null;const be=[];for(let Se=0;Se<ce;++Se){if(G=K.charCodeAt(Se),G>55295&&G<57344){if(!$){if(G>56319){(j-=3)>-1&&be.push(239,191,189);continue}else if(Se+1===ce){(j-=3)>-1&&be.push(239,191,189);continue}$=G;continue}if(G<56320){(j-=3)>-1&&be.push(239,191,189),$=G;continue}G=($-55296<<10|G-56320)+65536}else $&&(j-=3)>-1&&be.push(239,191,189);if($=null,G<128){if((j-=1)<0)break;be.push(G)}else if(G<2048){if((j-=2)<0)break;be.push(G>>6|192,G&63|128)}else if(G<65536){if((j-=3)<0)break;be.push(G>>12|224,G>>6&63|128,G&63|128)}else if(G<1114112){if((j-=4)<0)break;be.push(G>>18|240,G>>12&63|128,G>>6&63|128,G&63|128)}else throw new Error("Invalid code point")}return be}function V(K){const j=[];for(let G=0;G<K.length;++G)j.push(K.charCodeAt(G)&255);return j}function ue(K,j){let G,ce,$;const be=[];for(let Se=0;Se<K.length&&!((j-=2)<0);++Se)G=K.charCodeAt(Se),ce=G>>8,$=G%256,be.push($),be.push(ce);return be}function Te(K){return i.toByteArray(Y(K))}function Ie(K,j,G,ce){let $;for($=0;$<ce&&!($+G>=j.length||$>=K.length);++$)j[$+G]=K[$];return $}function Ce(K,j){return K instanceof j||K!=null&&K.constructor!=null&&K.constructor.name!=null&&K.constructor.name===j.name}function We(K){return K!==K}const Ge=(function(){const K="0123456789abcdef",j=new Array(256);for(let G=0;G<16;++G){const ce=G*16;for(let $=0;$<16;++$)j[ce+$]=K[G]+K[$]}return j})();function ee(K){return typeof BigInt>"u"?te:K}function te(){throw new Error("BigInt not supported")}})(Kl)),Kl}var Vl,Mm;function Kt(){return Mm||(Mm=1,Vl={ArrayIsArray(e){return Array.isArray(e)},ArrayPrototypeIncludes(e,i){return e.includes(i)},ArrayPrototypeIndexOf(e,i){return e.indexOf(i)},ArrayPrototypeJoin(e,i){return e.join(i)},ArrayPrototypeMap(e,i){return e.map(i)},ArrayPrototypePop(e,i){return e.pop(i)},ArrayPrototypePush(e,i){return e.push(i)},ArrayPrototypeSlice(e,i,n){return e.slice(i,n)},Error,FunctionPrototypeCall(e,i,...n){return e.call(i,...n)},FunctionPrototypeSymbolHasInstance(e,i){return Function.prototype[Symbol.hasInstance].call(e,i)},MathFloor:Math.floor,Number,NumberIsInteger:Number.isInteger,NumberIsNaN:Number.isNaN,NumberMAX_SAFE_INTEGER:Number.MAX_SAFE_INTEGER,NumberMIN_SAFE_INTEGER:Number.MIN_SAFE_INTEGER,NumberParseInt:Number.parseInt,ObjectDefineProperties(e,i){return Object.defineProperties(e,i)},ObjectDefineProperty(e,i,n){return Object.defineProperty(e,i,n)},ObjectGetOwnPropertyDescriptor(e,i){return Object.getOwnPropertyDescriptor(e,i)},ObjectKeys(e){return Object.keys(e)},ObjectSetPrototypeOf(e,i){return Object.setPrototypeOf(e,i)},Promise,PromisePrototypeCatch(e,i){return e.catch(i)},PromisePrototypeThen(e,i,n){return e.then(i,n)},PromiseReject(e){return Promise.reject(e)},ReflectApply:Reflect.apply,RegExpPrototypeTest(e,i){return e.test(i)},SafeSet:Set,String,StringPrototypeSlice(e,i,n){return e.slice(i,n)},StringPrototypeToLowerCase(e){return e.toLowerCase()},StringPrototypeToUpperCase(e){return e.toUpperCase()},StringPrototypeTrim(e){return e.trim()},Symbol,SymbolAsyncIterator:Symbol.asyncIterator,SymbolHasInstance:Symbol.hasInstance,SymbolIterator:Symbol.iterator,TypedArrayPrototypeSet(e,i,n){return e.set(i,n)},Uint8Array}),Vl}var Zl={exports:{}},Bm;function Ei(){return Bm||(Bm=1,(function(e){const i=Sr(),n=Object.getPrototypeOf(async function(){}).constructor,a=globalThis.Blob||i.Blob,l=typeof a<"u"?function(c){return c instanceof a}:function(c){return!1};class d extends Error{constructor(c){if(!Array.isArray(c))throw new TypeError(`Expected input to be an Array, got ${typeof c}`);let w="";for(let U=0;U<c.length;U++)w+=` ${c[U].stack}
997
- `;super(w),this.name="AggregateError",this.errors=c}}e.exports={AggregateError:d,kEmptyObject:Object.freeze({}),once(u){let c=!1;return function(...w){c||(c=!0,u.apply(this,w))}},createDeferredPromise:function(){let u,c;return{promise:new Promise((U,F)=>{u=U,c=F}),resolve:u,reject:c}},promisify(u){return new Promise((c,w)=>{u((U,...F)=>U?w(U):c(...F))})},debuglog(){return function(){}},format(u,...c){return u.replace(/%([sdifj])/g,function(...[w,U]){const F=c.shift();return U==="f"?F.toFixed(6):U==="j"?JSON.stringify(F):U==="s"&&typeof F=="object"?`${F.constructor!==Object?F.constructor.name:""} {}`.trim():F.toString()})},inspect(u){switch(typeof u){case"string":if(u.includes("'"))if(u.includes('"')){if(!u.includes("`")&&!u.includes("${"))return`\`${u}\``}else return`"${u}"`;return`'${u}'`;case"number":return isNaN(u)?"NaN":Object.is(u,-0)?String(u):u;case"bigint":return`${String(u)}n`;case"boolean":case"undefined":return String(u);case"object":return"{}"}},types:{isAsyncFunction(u){return u instanceof n},isArrayBufferView(u){return ArrayBuffer.isView(u)}},isBlob:l},e.exports.promisify.custom=Symbol.for("nodejs.util.promisify.custom")})(Zl)),Zl.exports}var ra={};const dk=Object.freeze(Object.create(null,{__mock__:{get:()=>!0}})),hk=Object.freeze(Object.defineProperty({__proto__:null,default:dk},Symbol.toStringTag,{value:"Module"})),Xc=Nc(hk);var Ql,Dm;function gn(){if(Dm)return Ql;Dm=1;const{format:e,inspect:i,AggregateError:n}=Ei(),a=globalThis.AggregateError||n,l=Symbol("kIsNodeError"),d=["string","function","number","object","Function","Object","boolean","bigint","symbol"],u=/^([A-Z][a-z0-9]*)+$/,c="__node_internal_",w={};function U(v,h){if(!v)throw new w.ERR_INTERNAL_ASSERTION(h)}function F(v){let h="",m=v.length;const k=v[0]==="-"?1:0;for(;m>=k+4;m-=3)h=`_${v.slice(m-3,m)}${h}`;return`${v.slice(0,m)}${h}`}function O(v,h,m){if(typeof h=="function")return U(h.length<=m.length,`Code: ${v}; The provided arguments length (${m.length}) does not match the required ones (${h.length}).`),h(...m);const k=(h.match(/%[dfijoOs]/g)||[]).length;return U(k===m.length,`Code: ${v}; The provided arguments length (${m.length}) does not match the required ones (${k}).`),m.length===0?h:e(h,...m)}function M(v,h,m){m||(m=Error);class k extends m{constructor(...C){super(O(v,h,C))}toString(){return`${this.name} [${v}]: ${this.message}`}}Object.defineProperties(k.prototype,{name:{value:m.name,writable:!0,enumerable:!1,configurable:!0},toString:{value(){return`${this.name} [${v}]: ${this.message}`},writable:!0,enumerable:!1,configurable:!0}}),k.prototype.code=v,k.prototype[l]=!0,w[v]=k}function L(v){const h=c+v.name;return Object.defineProperty(v,"name",{value:h}),v}function _(v,h){if(v&&h&&v!==h){if(Array.isArray(h.errors))return h.errors.push(v),h;const m=new a([h,v],h.message);return m.code=h.code,m}return v||h}class b extends Error{constructor(h="The operation was aborted",m=void 0){if(m!==void 0&&typeof m!="object")throw new w.ERR_INVALID_ARG_TYPE("options","Object",m);super(h,m),this.code="ABORT_ERR",this.name="AbortError"}}return M("ERR_ASSERTION","%s",Error),M("ERR_INVALID_ARG_TYPE",(v,h,m)=>{U(typeof v=="string","'name' must be a string"),Array.isArray(h)||(h=[h]);let k="The ";v.endsWith(" argument")?k+=`${v} `:k+=`"${v}" ${v.includes(".")?"property":"argument"} `,k+="must be ";const B=[],C=[],R=[];for(const f of h)U(typeof f=="string","All expected entries have to be of type string"),d.includes(f)?B.push(f.toLowerCase()):u.test(f)?C.push(f):(U(f!=="object",'The value "object" should be written as "Object"'),R.push(f));if(C.length>0){const f=B.indexOf("object");f!==-1&&(B.splice(B,f,1),C.push("Object"))}if(B.length>0){switch(B.length){case 1:k+=`of type ${B[0]}`;break;case 2:k+=`one of type ${B[0]} or ${B[1]}`;break;default:{const f=B.pop();k+=`one of type ${B.join(", ")}, or ${f}`}}(C.length>0||R.length>0)&&(k+=" or ")}if(C.length>0){switch(C.length){case 1:k+=`an instance of ${C[0]}`;break;case 2:k+=`an instance of ${C[0]} or ${C[1]}`;break;default:{const f=C.pop();k+=`an instance of ${C.join(", ")}, or ${f}`}}R.length>0&&(k+=" or ")}switch(R.length){case 0:break;case 1:R[0].toLowerCase()!==R[0]&&(k+="an "),k+=`${R[0]}`;break;case 2:k+=`one of ${R[0]} or ${R[1]}`;break;default:{const f=R.pop();k+=`one of ${R.join(", ")}, or ${f}`}}if(m==null)k+=`. Received ${m}`;else if(typeof m=="function"&&m.name)k+=`. Received function ${m.name}`;else if(typeof m=="object"){var A;if((A=m.constructor)!==null&&A!==void 0&&A.name)k+=`. Received an instance of ${m.constructor.name}`;else{const f=i(m,{depth:-1});k+=`. Received ${f}`}}else{let f=i(m,{colors:!1});f.length>25&&(f=`${f.slice(0,25)}...`),k+=`. Received type ${typeof m} (${f})`}return k},TypeError),M("ERR_INVALID_ARG_VALUE",(v,h,m="is invalid")=>{let k=i(h);return k.length>128&&(k=k.slice(0,128)+"..."),`The ${v.includes(".")?"property":"argument"} '${v}' ${m}. Received ${k}`},TypeError),M("ERR_INVALID_RETURN_VALUE",(v,h,m)=>{var k;const B=m!=null&&(k=m.constructor)!==null&&k!==void 0&&k.name?`instance of ${m.constructor.name}`:`type ${typeof m}`;return`Expected ${v} to be returned from the "${h}" function but got ${B}.`},TypeError),M("ERR_MISSING_ARGS",(...v)=>{U(v.length>0,"At least one arg needs to be specified");let h;const m=v.length;switch(v=(Array.isArray(v)?v:[v]).map(k=>`"${k}"`).join(" or "),m){case 1:h+=`The ${v[0]} argument`;break;case 2:h+=`The ${v[0]} and ${v[1]} arguments`;break;default:{const k=v.pop();h+=`The ${v.join(", ")}, and ${k} arguments`}break}return`${h} must be specified`},TypeError),M("ERR_OUT_OF_RANGE",(v,h,m)=>{U(h,'Missing "range" argument');let k;return Number.isInteger(m)&&Math.abs(m)>2**32?k=F(String(m)):typeof m=="bigint"?(k=String(m),(m>2n**32n||m<-(2n**32n))&&(k=F(k)),k+="n"):k=i(m),`The value of "${v}" is out of range. It must be ${h}. Received ${k}`},RangeError),M("ERR_MULTIPLE_CALLBACK","Callback called multiple times",Error),M("ERR_METHOD_NOT_IMPLEMENTED","The %s method is not implemented",Error),M("ERR_STREAM_ALREADY_FINISHED","Cannot call %s after a stream was finished",Error),M("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable",Error),M("ERR_STREAM_DESTROYED","Cannot call %s after a stream was destroyed",Error),M("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),M("ERR_STREAM_PREMATURE_CLOSE","Premature close",Error),M("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF",Error),M("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event",Error),M("ERR_STREAM_WRITE_AFTER_END","write after end",Error),M("ERR_UNKNOWN_ENCODING","Unknown encoding: %s",TypeError),Ql={AbortError:b,aggregateTwoErrors:L(_),hideStackFrames:L,codes:w},Ql}var Xl,jm;function xa(){if(jm)return Xl;jm=1;const{ArrayIsArray:e,ArrayPrototypeIncludes:i,ArrayPrototypeJoin:n,ArrayPrototypeMap:a,NumberIsInteger:l,NumberIsNaN:d,NumberMAX_SAFE_INTEGER:u,NumberMIN_SAFE_INTEGER:c,NumberParseInt:w,ObjectPrototypeHasOwnProperty:U,RegExpPrototypeExec:F,String:O,StringPrototypeToUpperCase:M,StringPrototypeTrim:L}=Kt(),{hideStackFrames:_,codes:{ERR_SOCKET_BAD_PORT:b,ERR_INVALID_ARG_TYPE:v,ERR_INVALID_ARG_VALUE:h,ERR_OUT_OF_RANGE:m,ERR_UNKNOWN_SIGNAL:k}}=gn(),{normalizeEncoding:B}=Ei(),{isAsyncFunction:C,isArrayBufferView:R}=Ei().types,A={};function f(pe){return pe===(pe|0)}function E(pe){return pe===pe>>>0}const S=/^[0-7]+$/,P="must be a 32-bit unsigned integer or an octal string";function y(pe,le,ye){if(typeof pe>"u"&&(pe=ye),typeof pe=="string"){if(F(S,pe)===null)throw new h(le,pe,P);pe=w(pe,8)}return p(pe,le),pe}const r=_((pe,le,ye=c,de=u)=>{if(typeof pe!="number")throw new v(le,"number",pe);if(!l(pe))throw new m(le,"an integer",pe);if(pe<ye||pe>de)throw new m(le,`>= ${ye} && <= ${de}`,pe)}),s=_((pe,le,ye=-2147483648,de=2147483647)=>{if(typeof pe!="number")throw new v(le,"number",pe);if(!l(pe))throw new m(le,"an integer",pe);if(pe<ye||pe>de)throw new m(le,`>= ${ye} && <= ${de}`,pe)}),p=_((pe,le,ye=!1)=>{if(typeof pe!="number")throw new v(le,"number",pe);if(!l(pe))throw new m(le,"an integer",pe);const de=ye?1:0,Y=4294967295;if(pe<de||pe>Y)throw new m(le,`>= ${de} && <= ${Y}`,pe)});function g(pe,le){if(typeof pe!="string")throw new v(le,"string",pe)}function I(pe,le,ye=void 0,de){if(typeof pe!="number")throw new v(le,"number",pe);if(ye!=null&&pe<ye||de!=null&&pe>de||(ye!=null||de!=null)&&d(pe))throw new m(le,`${ye!=null?`>= ${ye}`:""}${ye!=null&&de!=null?" && ":""}${de!=null?`<= ${de}`:""}`,pe)}const x=_((pe,le,ye)=>{if(!i(ye,pe)){const Y="must be one of: "+n(a(ye,z=>typeof z=="string"?`'${z}'`:O(z)),", ");throw new h(le,pe,Y)}});function q(pe,le){if(typeof pe!="boolean")throw new v(le,"boolean",pe)}function T(pe,le,ye){return pe==null||!U(pe,le)?ye:pe[le]}const D=_((pe,le,ye=null)=>{const de=T(ye,"allowArray",!1),Y=T(ye,"allowFunction",!1);if(!T(ye,"nullable",!1)&&pe===null||!de&&e(pe)||typeof pe!="object"&&(!Y||typeof pe!="function"))throw new v(le,"Object",pe)}),W=_((pe,le,ye=0)=>{if(!e(pe))throw new v(le,"Array",pe);if(pe.length<ye){const de=`must be longer than ${ye}`;throw new h(le,pe,de)}});function J(pe,le="signal"){if(g(pe,le),A[pe]===void 0)throw A[M(pe)]!==void 0?new k(pe+" (signals must use all capital letters)"):new k(pe)}const X=_((pe,le="buffer")=>{if(!R(pe))throw new v(le,["Buffer","TypedArray","DataView"],pe)});function Q(pe,le){const ye=B(le),de=pe.length;if(ye==="hex"&&de%2!==0)throw new h("encoding",le,`is invalid for data of length ${de}`)}function re(pe,le="Port",ye=!0){if(typeof pe!="number"&&typeof pe!="string"||typeof pe=="string"&&L(pe).length===0||+pe!==+pe>>>0||pe>65535||pe===0&&!ye)throw new b(le,pe,ye);return pe|0}const se=_((pe,le)=>{if(pe!==void 0&&(pe===null||typeof pe!="object"||!("aborted"in pe)))throw new v(le,"AbortSignal",pe)}),ne=_((pe,le)=>{if(typeof pe!="function")throw new v(le,"Function",pe)}),me=_((pe,le)=>{if(typeof pe!="function"||C(pe))throw new v(le,"Function",pe)}),ge=_((pe,le)=>{if(pe!==void 0)throw new v(le,"undefined",pe)});function Ae(pe,le,ye){if(!i(ye,pe))throw new v(le,`('${n(ye,"|")}')`,pe)}return Xl={isInt32:f,isUint32:E,parseFileMode:y,validateArray:W,validateBoolean:q,validateBuffer:X,validateEncoding:Q,validateFunction:ne,validateInt32:s,validateInteger:r,validateNumber:I,validateObject:D,validateOneOf:x,validatePlainFunction:me,validatePort:re,validateSignalName:J,validateString:g,validateUint32:p,validateUndefined:ge,validateUnion:Ae,validateAbortSignal:se},Xl}var sa={exports:{}},Yl={exports:{}},Um;function wr(){if(Um)return Yl.exports;Um=1;var e=Yl.exports={},i,n;function a(){throw new Error("setTimeout has not been defined")}function l(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?i=setTimeout:i=a}catch{i=a}try{typeof clearTimeout=="function"?n=clearTimeout:n=l}catch{n=l}})();function d(b){if(i===setTimeout)return setTimeout(b,0);if((i===a||!i)&&setTimeout)return i=setTimeout,setTimeout(b,0);try{return i(b,0)}catch{try{return i.call(null,b,0)}catch{return i.call(this,b,0)}}}function u(b){if(n===clearTimeout)return clearTimeout(b);if((n===l||!n)&&clearTimeout)return n=clearTimeout,clearTimeout(b);try{return n(b)}catch{try{return n.call(null,b)}catch{return n.call(this,b)}}}var c=[],w=!1,U,F=-1;function O(){!w||!U||(w=!1,U.length?c=U.concat(c):F=-1,c.length&&M())}function M(){if(!w){var b=d(O);w=!0;for(var v=c.length;v;){for(U=c,c=[];++F<v;)U&&U[F].run();F=-1,v=c.length}U=null,w=!1,u(b)}}e.nextTick=function(b){var v=new Array(arguments.length-1);if(arguments.length>1)for(var h=1;h<arguments.length;h++)v[h-1]=arguments[h];c.push(new L(b,v)),c.length===1&&!w&&d(M)};function L(b,v){this.fun=b,this.array=v}L.prototype.run=function(){this.fun.apply(null,this.array)},e.title="browser",e.browser=!0,e.env={},e.argv=[],e.version="",e.versions={};function _(){}return e.on=_,e.addListener=_,e.once=_,e.off=_,e.removeListener=_,e.removeAllListeners=_,e.emit=_,e.prependListener=_,e.prependOnceListener=_,e.listeners=function(b){return[]},e.binding=function(b){throw new Error("process.binding is not supported")},e.cwd=function(){return"/"},e.chdir=function(b){throw new Error("process.chdir is not supported")},e.umask=function(){return 0},Yl.exports}var $l,xm;function Lr(){if(xm)return $l;xm=1;const{Symbol:e,SymbolAsyncIterator:i,SymbolIterator:n}=Kt(),a=e("kDestroyed"),l=e("kIsErrored"),d=e("kIsReadable"),u=e("kIsDisturbed");function c(r,s=!1){var p;return!!(r&&typeof r.pipe=="function"&&typeof r.on=="function"&&(!s||typeof r.pause=="function"&&typeof r.resume=="function")&&(!r._writableState||((p=r._readableState)===null||p===void 0?void 0:p.readable)!==!1)&&(!r._writableState||r._readableState))}function w(r){var s;return!!(r&&typeof r.write=="function"&&typeof r.on=="function"&&(!r._readableState||((s=r._writableState)===null||s===void 0?void 0:s.writable)!==!1))}function U(r){return!!(r&&typeof r.pipe=="function"&&r._readableState&&typeof r.on=="function"&&typeof r.write=="function")}function F(r){return r&&(r._readableState||r._writableState||typeof r.write=="function"&&typeof r.on=="function"||typeof r.pipe=="function"&&typeof r.on=="function")}function O(r,s){return r==null?!1:s===!0?typeof r[i]=="function":s===!1?typeof r[n]=="function":typeof r[i]=="function"||typeof r[n]=="function"}function M(r){if(!F(r))return null;const s=r._writableState,p=r._readableState,g=s||p;return!!(r.destroyed||r[a]||g!=null&&g.destroyed)}function L(r){if(!w(r))return null;if(r.writableEnded===!0)return!0;const s=r._writableState;return s!=null&&s.errored?!1:typeof s?.ended!="boolean"?null:s.ended}function _(r,s){if(!w(r))return null;if(r.writableFinished===!0)return!0;const p=r._writableState;return p!=null&&p.errored?!1:typeof p?.finished!="boolean"?null:!!(p.finished||s===!1&&p.ended===!0&&p.length===0)}function b(r){if(!c(r))return null;if(r.readableEnded===!0)return!0;const s=r._readableState;return!s||s.errored?!1:typeof s?.ended!="boolean"?null:s.ended}function v(r,s){if(!c(r))return null;const p=r._readableState;return p!=null&&p.errored?!1:typeof p?.endEmitted!="boolean"?null:!!(p.endEmitted||s===!1&&p.ended===!0&&p.length===0)}function h(r){return r&&r[d]!=null?r[d]:typeof r?.readable!="boolean"?null:M(r)?!1:c(r)&&r.readable&&!v(r)}function m(r){return typeof r?.writable!="boolean"?null:M(r)?!1:w(r)&&r.writable&&!L(r)}function k(r,s){return F(r)?M(r)?!0:!(s?.readable!==!1&&h(r)||s?.writable!==!1&&m(r)):null}function B(r){var s,p;return F(r)?r.writableErrored?r.writableErrored:(s=(p=r._writableState)===null||p===void 0?void 0:p.errored)!==null&&s!==void 0?s:null:null}function C(r){var s,p;return F(r)?r.readableErrored?r.readableErrored:(s=(p=r._readableState)===null||p===void 0?void 0:p.errored)!==null&&s!==void 0?s:null:null}function R(r){if(!F(r))return null;if(typeof r.closed=="boolean")return r.closed;const s=r._writableState,p=r._readableState;return typeof s?.closed=="boolean"||typeof p?.closed=="boolean"?s?.closed||p?.closed:typeof r._closed=="boolean"&&A(r)?r._closed:null}function A(r){return typeof r._closed=="boolean"&&typeof r._defaultKeepAlive=="boolean"&&typeof r._removedConnection=="boolean"&&typeof r._removedContLen=="boolean"}function f(r){return typeof r._sent100=="boolean"&&A(r)}function E(r){var s;return typeof r._consuming=="boolean"&&typeof r._dumped=="boolean"&&((s=r.req)===null||s===void 0?void 0:s.upgradeOrConnect)===void 0}function S(r){if(!F(r))return null;const s=r._writableState,p=r._readableState,g=s||p;return!g&&f(r)||!!(g&&g.autoDestroy&&g.emitClose&&g.closed===!1)}function P(r){var s;return!!(r&&((s=r[u])!==null&&s!==void 0?s:r.readableDidRead||r.readableAborted))}function y(r){var s,p,g,I,x,q,T,D,W,J;return!!(r&&((s=(p=(g=(I=(x=(q=r[l])!==null&&q!==void 0?q:r.readableErrored)!==null&&x!==void 0?x:r.writableErrored)!==null&&I!==void 0?I:(T=r._readableState)===null||T===void 0?void 0:T.errorEmitted)!==null&&g!==void 0?g:(D=r._writableState)===null||D===void 0?void 0:D.errorEmitted)!==null&&p!==void 0?p:(W=r._readableState)===null||W===void 0?void 0:W.errored)!==null&&s!==void 0?s:!((J=r._writableState)===null||J===void 0)&&J.errored))}return $l={kDestroyed:a,isDisturbed:P,kIsDisturbed:u,isErrored:y,kIsErrored:l,isReadable:h,kIsReadable:d,isClosed:R,isDestroyed:M,isDuplexNodeStream:U,isFinished:k,isIterable:O,isReadableNodeStream:c,isReadableEnded:b,isReadableFinished:v,isReadableErrored:C,isNodeStream:F,isWritable:m,isWritableNodeStream:w,isWritableEnded:L,isWritableFinished:_,isWritableErrored:B,isServerRequest:E,isServerResponse:f,willEmitClose:S},$l}var zm;function _r(){if(zm)return sa.exports;zm=1;const e=wr(),{AbortError:i,codes:n}=gn(),{ERR_INVALID_ARG_TYPE:a,ERR_STREAM_PREMATURE_CLOSE:l}=n,{kEmptyObject:d,once:u}=Ei(),{validateAbortSignal:c,validateFunction:w,validateObject:U}=xa(),{Promise:F}=Kt(),{isClosed:O,isReadable:M,isReadableNodeStream:L,isReadableFinished:_,isReadableErrored:b,isWritable:v,isWritableNodeStream:h,isWritableFinished:m,isWritableErrored:k,isNodeStream:B,willEmitClose:C}=Lr();function R(S){return S.setHeader&&typeof S.abort=="function"}const A=()=>{};function f(S,P,y){var r,s;arguments.length===2?(y=P,P=d):P==null?P=d:U(P,"options"),w(y,"callback"),c(P.signal,"options.signal"),y=u(y);const p=(r=P.readable)!==null&&r!==void 0?r:L(S),g=(s=P.writable)!==null&&s!==void 0?s:h(S);if(!B(S))throw new a("stream","Stream",S);const I=S._writableState,x=S._readableState,q=()=>{S.writable||W()};let T=C(S)&&L(S)===p&&h(S)===g,D=m(S,!1);const W=()=>{D=!0,S.destroyed&&(T=!1),!(T&&(!S.readable||p))&&(!p||J)&&y.call(S)};let J=_(S,!1);const X=()=>{J=!0,S.destroyed&&(T=!1),!(T&&(!S.writable||g))&&(!g||D)&&y.call(S)},Q=ge=>{y.call(S,ge)};let re=O(S);const se=()=>{re=!0;const ge=k(S)||b(S);if(ge&&typeof ge!="boolean")return y.call(S,ge);if(p&&!J&&L(S,!0)&&!_(S,!1))return y.call(S,new l);if(g&&!D&&!m(S,!1))return y.call(S,new l);y.call(S)},ne=()=>{S.req.on("finish",W)};R(S)?(S.on("complete",W),T||S.on("abort",se),S.req?ne():S.on("request",ne)):g&&!I&&(S.on("end",q),S.on("close",q)),!T&&typeof S.aborted=="boolean"&&S.on("aborted",se),S.on("end",X),S.on("finish",W),P.error!==!1&&S.on("error",Q),S.on("close",se),re?e.nextTick(se):I!=null&&I.errorEmitted||x!=null&&x.errorEmitted?T||e.nextTick(se):(!p&&(!T||M(S))&&(D||v(S)===!1)||!g&&(!T||v(S))&&(J||M(S)===!1)||x&&S.req&&S.aborted)&&e.nextTick(se);const me=()=>{y=A,S.removeListener("aborted",se),S.removeListener("complete",W),S.removeListener("abort",se),S.removeListener("request",ne),S.req&&S.req.removeListener("finish",W),S.removeListener("end",q),S.removeListener("close",q),S.removeListener("finish",W),S.removeListener("end",X),S.removeListener("error",Q),S.removeListener("close",se)};if(P.signal&&!re){const ge=()=>{const Ae=y;me(),Ae.call(S,new i(void 0,{cause:P.signal.reason}))};if(P.signal.aborted)e.nextTick(ge);else{const Ae=y;y=u((...pe)=>{P.signal.removeEventListener("abort",ge),Ae.apply(S,pe)}),P.signal.addEventListener("abort",ge)}}return me}function E(S,P){return new F((y,r)=>{f(S,P,s=>{s?r(s):y()})})}return sa.exports=f,sa.exports.finished=E,sa.exports}var Wm;function pk(){if(Wm)return ra;Wm=1;const e=globalThis.AbortController||Xc.AbortController,{codes:{ERR_INVALID_ARG_TYPE:i,ERR_MISSING_ARGS:n,ERR_OUT_OF_RANGE:a},AbortError:l}=gn(),{validateAbortSignal:d,validateInteger:u,validateObject:c}=xa(),w=Kt().Symbol("kWeak"),{finished:U}=_r(),{ArrayPrototypePush:F,MathFloor:O,Number:M,NumberIsNaN:L,Promise:_,PromiseReject:b,PromisePrototypeThen:v,Symbol:h}=Kt(),m=h("kEmpty"),k=h("kEof");function B(x,q){if(typeof x!="function")throw new i("fn",["Function","AsyncFunction"],x);q!=null&&c(q,"options"),q?.signal!=null&&d(q.signal,"options.signal");let T=1;return q?.concurrency!=null&&(T=O(q.concurrency)),u(T,"concurrency",1),async function*(){var W,J;const X=new e,Q=this,re=[],se=X.signal,ne={signal:se},me=()=>X.abort();q!=null&&(W=q.signal)!==null&&W!==void 0&&W.aborted&&me(),q==null||(J=q.signal)===null||J===void 0||J.addEventListener("abort",me);let ge,Ae,pe=!1;function le(){pe=!0}async function ye(){try{for await(let z of Q){var de;if(pe)return;if(se.aborted)throw new l;try{z=x(z,ne)}catch(V){z=b(V)}z!==m&&(typeof((de=z)===null||de===void 0?void 0:de.catch)=="function"&&z.catch(le),re.push(z),ge&&(ge(),ge=null),!pe&&re.length&&re.length>=T&&await new _(V=>{Ae=V}))}re.push(k)}catch(z){const V=b(z);v(V,void 0,le),re.push(V)}finally{var Y;pe=!0,ge&&(ge(),ge=null),q==null||(Y=q.signal)===null||Y===void 0||Y.removeEventListener("abort",me)}}ye();try{for(;;){for(;re.length>0;){const de=await re[0];if(de===k)return;if(se.aborted)throw new l;de!==m&&(yield de),re.shift(),Ae&&(Ae(),Ae=null)}await new _(de=>{ge=de})}}finally{X.abort(),pe=!0,Ae&&(Ae(),Ae=null)}}.call(this)}function C(x=void 0){return x!=null&&c(x,"options"),x?.signal!=null&&d(x.signal,"options.signal"),async function*(){let T=0;for await(const W of this){var D;if(x!=null&&(D=x.signal)!==null&&D!==void 0&&D.aborted)throw new l({cause:x.signal.reason});yield[T++,W]}}.call(this)}async function R(x,q=void 0){for await(const T of S.call(this,x,q))return!0;return!1}async function A(x,q=void 0){if(typeof x!="function")throw new i("fn",["Function","AsyncFunction"],x);return!await R.call(this,async(...T)=>!await x(...T),q)}async function f(x,q){for await(const T of S.call(this,x,q))return T}async function E(x,q){if(typeof x!="function")throw new i("fn",["Function","AsyncFunction"],x);async function T(D,W){return await x(D,W),m}for await(const D of B.call(this,T,q));}function S(x,q){if(typeof x!="function")throw new i("fn",["Function","AsyncFunction"],x);async function T(D,W){return await x(D,W)?D:m}return B.call(this,T,q)}class P extends n{constructor(){super("reduce"),this.message="Reduce of an empty stream requires an initial value"}}async function y(x,q,T){var D;if(typeof x!="function")throw new i("reducer",["Function","AsyncFunction"],x);T!=null&&c(T,"options"),T?.signal!=null&&d(T.signal,"options.signal");let W=arguments.length>1;if(T!=null&&(D=T.signal)!==null&&D!==void 0&&D.aborted){const se=new l(void 0,{cause:T.signal.reason});throw this.once("error",()=>{}),await U(this.destroy(se)),se}const J=new e,X=J.signal;if(T!=null&&T.signal){const se={once:!0,[w]:this};T.signal.addEventListener("abort",()=>J.abort(),se)}let Q=!1;try{for await(const se of this){var re;if(Q=!0,T!=null&&(re=T.signal)!==null&&re!==void 0&&re.aborted)throw new l;W?q=await x(q,se,{signal:X}):(q=se,W=!0)}if(!Q&&!W)throw new P}finally{J.abort()}return q}async function r(x){x!=null&&c(x,"options"),x?.signal!=null&&d(x.signal,"options.signal");const q=[];for await(const D of this){var T;if(x!=null&&(T=x.signal)!==null&&T!==void 0&&T.aborted)throw new l(void 0,{cause:x.signal.reason});F(q,D)}return q}function s(x,q){const T=B.call(this,x,q);return async function*(){for await(const W of T)yield*W}.call(this)}function p(x){if(x=M(x),L(x))return 0;if(x<0)throw new a("number",">= 0",x);return x}function g(x,q=void 0){return q!=null&&c(q,"options"),q?.signal!=null&&d(q.signal,"options.signal"),x=p(x),async function*(){var D;if(q!=null&&(D=q.signal)!==null&&D!==void 0&&D.aborted)throw new l;for await(const J of this){var W;if(q!=null&&(W=q.signal)!==null&&W!==void 0&&W.aborted)throw new l;x--<=0&&(yield J)}}.call(this)}function I(x,q=void 0){return q!=null&&c(q,"options"),q?.signal!=null&&d(q.signal,"options.signal"),x=p(x),async function*(){var D;if(q!=null&&(D=q.signal)!==null&&D!==void 0&&D.aborted)throw new l;for await(const J of this){var W;if(q!=null&&(W=q.signal)!==null&&W!==void 0&&W.aborted)throw new l;if(x-- >0)yield J;else return}}.call(this)}return ra.streamReturningOperators={asIndexedPairs:C,drop:g,filter:S,flatMap:s,map:B,take:I},ra.promiseReturningOperators={every:A,forEach:E,reduce:y,toArray:r,some:R,find:f},ra}var ec,qm;function rs(){if(qm)return ec;qm=1;const e=wr(),{aggregateTwoErrors:i,codes:{ERR_MULTIPLE_CALLBACK:n},AbortError:a}=gn(),{Symbol:l}=Kt(),{kDestroyed:d,isDestroyed:u,isFinished:c,isServerRequest:w}=Lr(),U=l("kDestroy"),F=l("kConstruct");function O(S,P,y){S&&(S.stack,P&&!P.errored&&(P.errored=S),y&&!y.errored&&(y.errored=S))}function M(S,P){const y=this._readableState,r=this._writableState,s=r||y;return r&&r.destroyed||y&&y.destroyed?(typeof P=="function"&&P(),this):(O(S,r,y),r&&(r.destroyed=!0),y&&(y.destroyed=!0),s.constructed?L(this,S,P):this.once(U,function(p){L(this,i(p,S),P)}),this)}function L(S,P,y){let r=!1;function s(p){if(r)return;r=!0;const g=S._readableState,I=S._writableState;O(p,I,g),I&&(I.closed=!0),g&&(g.closed=!0),typeof y=="function"&&y(p),p?e.nextTick(_,S,p):e.nextTick(b,S)}try{S._destroy(P||null,s)}catch(p){s(p)}}function _(S,P){v(S,P),b(S)}function b(S){const P=S._readableState,y=S._writableState;y&&(y.closeEmitted=!0),P&&(P.closeEmitted=!0),(y&&y.emitClose||P&&P.emitClose)&&S.emit("close")}function v(S,P){const y=S._readableState,r=S._writableState;r&&r.errorEmitted||y&&y.errorEmitted||(r&&(r.errorEmitted=!0),y&&(y.errorEmitted=!0),S.emit("error",P))}function h(){const S=this._readableState,P=this._writableState;S&&(S.constructed=!0,S.closed=!1,S.closeEmitted=!1,S.destroyed=!1,S.errored=null,S.errorEmitted=!1,S.reading=!1,S.ended=S.readable===!1,S.endEmitted=S.readable===!1),P&&(P.constructed=!0,P.destroyed=!1,P.closed=!1,P.closeEmitted=!1,P.errored=null,P.errorEmitted=!1,P.finalCalled=!1,P.prefinished=!1,P.ended=P.writable===!1,P.ending=P.writable===!1,P.finished=P.writable===!1)}function m(S,P,y){const r=S._readableState,s=S._writableState;if(s&&s.destroyed||r&&r.destroyed)return this;r&&r.autoDestroy||s&&s.autoDestroy?S.destroy(P):P&&(P.stack,s&&!s.errored&&(s.errored=P),r&&!r.errored&&(r.errored=P),y?e.nextTick(v,S,P):v(S,P))}function k(S,P){if(typeof S._construct!="function")return;const y=S._readableState,r=S._writableState;y&&(y.constructed=!1),r&&(r.constructed=!1),S.once(F,P),!(S.listenerCount(F)>1)&&e.nextTick(B,S)}function B(S){let P=!1;function y(r){if(P){m(S,r??new n);return}P=!0;const s=S._readableState,p=S._writableState,g=p||s;s&&(s.constructed=!0),p&&(p.constructed=!0),g.destroyed?S.emit(U,r):r?m(S,r,!0):e.nextTick(C,S)}try{S._construct(y)}catch(r){y(r)}}function C(S){S.emit(F)}function R(S){return S&&S.setHeader&&typeof S.abort=="function"}function A(S){S.emit("close")}function f(S,P){S.emit("error",P),e.nextTick(A,S)}function E(S,P){!S||u(S)||(!P&&!c(S)&&(P=new a),w(S)?(S.socket=null,S.destroy(P)):R(S)?S.abort():R(S.req)?S.req.abort():typeof S.destroy=="function"?S.destroy(P):typeof S.close=="function"?S.close():P?e.nextTick(f,S,P):e.nextTick(A,S),S.destroyed||(S[d]=!0))}return ec={construct:k,destroyer:E,destroy:M,undestroy:h,errorOrDestroy:m},ec}var oa={exports:{}},Jm;function Yc(){if(Jm)return oa.exports;Jm=1;var e=typeof Reflect=="object"?Reflect:null,i=e&&typeof e.apply=="function"?e.apply:function(C,R,A){return Function.prototype.apply.call(C,R,A)},n;e&&typeof e.ownKeys=="function"?n=e.ownKeys:Object.getOwnPropertySymbols?n=function(C){return Object.getOwnPropertyNames(C).concat(Object.getOwnPropertySymbols(C))}:n=function(C){return Object.getOwnPropertyNames(C)};function a(B){console&&console.warn&&console.warn(B)}var l=Number.isNaN||function(C){return C!==C};function d(){d.init.call(this)}oa.exports=d,oa.exports.once=h,d.EventEmitter=d,d.prototype._events=void 0,d.prototype._eventsCount=0,d.prototype._maxListeners=void 0;var u=10;function c(B){if(typeof B!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof B)}Object.defineProperty(d,"defaultMaxListeners",{enumerable:!0,get:function(){return u},set:function(B){if(typeof B!="number"||B<0||l(B))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+B+".");u=B}}),d.init=function(){(this._events===void 0||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},d.prototype.setMaxListeners=function(C){if(typeof C!="number"||C<0||l(C))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+C+".");return this._maxListeners=C,this};function w(B){return B._maxListeners===void 0?d.defaultMaxListeners:B._maxListeners}d.prototype.getMaxListeners=function(){return w(this)},d.prototype.emit=function(C){for(var R=[],A=1;A<arguments.length;A++)R.push(arguments[A]);var f=C==="error",E=this._events;if(E!==void 0)f=f&&E.error===void 0;else if(!f)return!1;if(f){var S;if(R.length>0&&(S=R[0]),S instanceof Error)throw S;var P=new Error("Unhandled error."+(S?" ("+S.message+")":""));throw P.context=S,P}var y=E[C];if(y===void 0)return!1;if(typeof y=="function")i(y,this,R);else for(var r=y.length,s=_(y,r),A=0;A<r;++A)i(s[A],this,R);return!0};function U(B,C,R,A){var f,E,S;if(c(R),E=B._events,E===void 0?(E=B._events=Object.create(null),B._eventsCount=0):(E.newListener!==void 0&&(B.emit("newListener",C,R.listener?R.listener:R),E=B._events),S=E[C]),S===void 0)S=E[C]=R,++B._eventsCount;else if(typeof S=="function"?S=E[C]=A?[R,S]:[S,R]:A?S.unshift(R):S.push(R),f=w(B),f>0&&S.length>f&&!S.warned){S.warned=!0;var P=new Error("Possible EventEmitter memory leak detected. "+S.length+" "+String(C)+" listeners added. Use emitter.setMaxListeners() to increase limit");P.name="MaxListenersExceededWarning",P.emitter=B,P.type=C,P.count=S.length,a(P)}return B}d.prototype.addListener=function(C,R){return U(this,C,R,!1)},d.prototype.on=d.prototype.addListener,d.prototype.prependListener=function(C,R){return U(this,C,R,!0)};function F(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function O(B,C,R){var A={fired:!1,wrapFn:void 0,target:B,type:C,listener:R},f=F.bind(A);return f.listener=R,A.wrapFn=f,f}d.prototype.once=function(C,R){return c(R),this.on(C,O(this,C,R)),this},d.prototype.prependOnceListener=function(C,R){return c(R),this.prependListener(C,O(this,C,R)),this},d.prototype.removeListener=function(C,R){var A,f,E,S,P;if(c(R),f=this._events,f===void 0)return this;if(A=f[C],A===void 0)return this;if(A===R||A.listener===R)--this._eventsCount===0?this._events=Object.create(null):(delete f[C],f.removeListener&&this.emit("removeListener",C,A.listener||R));else if(typeof A!="function"){for(E=-1,S=A.length-1;S>=0;S--)if(A[S]===R||A[S].listener===R){P=A[S].listener,E=S;break}if(E<0)return this;E===0?A.shift():b(A,E),A.length===1&&(f[C]=A[0]),f.removeListener!==void 0&&this.emit("removeListener",C,P||R)}return this},d.prototype.off=d.prototype.removeListener,d.prototype.removeAllListeners=function(C){var R,A,f;if(A=this._events,A===void 0)return this;if(A.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):A[C]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete A[C]),this;if(arguments.length===0){var E=Object.keys(A),S;for(f=0;f<E.length;++f)S=E[f],S!=="removeListener"&&this.removeAllListeners(S);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if(R=A[C],typeof R=="function")this.removeListener(C,R);else if(R!==void 0)for(f=R.length-1;f>=0;f--)this.removeListener(C,R[f]);return this};function M(B,C,R){var A=B._events;if(A===void 0)return[];var f=A[C];return f===void 0?[]:typeof f=="function"?R?[f.listener||f]:[f]:R?v(f):_(f,f.length)}d.prototype.listeners=function(C){return M(this,C,!0)},d.prototype.rawListeners=function(C){return M(this,C,!1)},d.listenerCount=function(B,C){return typeof B.listenerCount=="function"?B.listenerCount(C):L.call(B,C)},d.prototype.listenerCount=L;function L(B){var C=this._events;if(C!==void 0){var R=C[B];if(typeof R=="function")return 1;if(R!==void 0)return R.length}return 0}d.prototype.eventNames=function(){return this._eventsCount>0?n(this._events):[]};function _(B,C){for(var R=new Array(C),A=0;A<C;++A)R[A]=B[A];return R}function b(B,C){for(;C+1<B.length;C++)B[C]=B[C+1];B.pop()}function v(B){for(var C=new Array(B.length),R=0;R<C.length;++R)C[R]=B[R].listener||B[R];return C}function h(B,C){return new Promise(function(R,A){function f(S){B.removeListener(C,E),A(S)}function E(){typeof B.removeListener=="function"&&B.removeListener("error",f),R([].slice.call(arguments))}k(B,C,E,{once:!0}),C!=="error"&&m(B,f,{once:!0})})}function m(B,C,R){typeof B.on=="function"&&k(B,"error",C,R)}function k(B,C,R,A){if(typeof B.on=="function")A.once?B.once(C,R):B.on(C,R);else if(typeof B.addEventListener=="function")B.addEventListener(C,function f(E){A.once&&B.removeEventListener(C,f),R(E)});else throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof B)}return oa.exports}var tc,Gm;function $c(){if(Gm)return tc;Gm=1;const{ArrayIsArray:e,ObjectSetPrototypeOf:i}=Kt(),{EventEmitter:n}=Yc();function a(d){n.call(this,d)}i(a.prototype,n.prototype),i(a,n),a.prototype.pipe=function(d,u){const c=this;function w(b){d.writable&&d.write(b)===!1&&c.pause&&c.pause()}c.on("data",w);function U(){c.readable&&c.resume&&c.resume()}d.on("drain",U),!d._isStdio&&(!u||u.end!==!1)&&(c.on("end",O),c.on("close",M));let F=!1;function O(){F||(F=!0,d.end())}function M(){F||(F=!0,typeof d.destroy=="function"&&d.destroy())}function L(b){_(),n.listenerCount(this,"error")===0&&this.emit("error",b)}l(c,"error",L),l(d,"error",L);function _(){c.removeListener("data",w),d.removeListener("drain",U),c.removeListener("end",O),c.removeListener("close",M),c.removeListener("error",L),d.removeListener("error",L),c.removeListener("end",_),c.removeListener("close",_),d.removeListener("close",_)}return c.on("end",_),c.on("close",_),d.on("close",_),d.emit("pipe",c),d};function l(d,u,c){if(typeof d.prependListener=="function")return d.prependListener(u,c);!d._events||!d._events[u]?d.on(u,c):e(d._events[u])?d._events[u].unshift(c):d._events[u]=[c,d._events[u]]}return tc={Stream:a,prependListener:l},tc}var nc={exports:{}},Hm;function ef(){return Hm||(Hm=1,(function(e){const{AbortError:i,codes:n}=gn(),a=_r(),{ERR_INVALID_ARG_TYPE:l}=n,d=(c,w)=>{if(typeof c!="object"||!("aborted"in c))throw new l(w,"AbortSignal",c)};function u(c){return!!(c&&typeof c.pipe=="function")}e.exports.addAbortSignal=function(w,U){if(d(w,"signal"),!u(U))throw new l("stream","stream.Stream",U);return e.exports.addAbortSignalNoValidate(w,U)},e.exports.addAbortSignalNoValidate=function(c,w){if(typeof c!="object"||!("aborted"in c))return w;const U=()=>{w.destroy(new i(void 0,{cause:c.reason}))};return c.aborted?U():(c.addEventListener("abort",U),a(w,()=>c.removeEventListener("abort",U))),w}})(nc)),nc.exports}var ic,Km;function mk(){if(Km)return ic;Km=1;const{StringPrototypeSlice:e,SymbolIterator:i,TypedArrayPrototypeSet:n,Uint8Array:a}=Kt(),{Buffer:l}=Sr(),{inspect:d}=Ei();return ic=class{constructor(){this.head=null,this.tail=null,this.length=0}push(c){const w={data:c,next:null};this.length>0?this.tail.next=w:this.head=w,this.tail=w,++this.length}unshift(c){const w={data:c,next:this.head};this.length===0&&(this.tail=w),this.head=w,++this.length}shift(){if(this.length===0)return;const c=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,c}clear(){this.head=this.tail=null,this.length=0}join(c){if(this.length===0)return"";let w=this.head,U=""+w.data;for(;(w=w.next)!==null;)U+=c+w.data;return U}concat(c){if(this.length===0)return l.alloc(0);const w=l.allocUnsafe(c>>>0);let U=this.head,F=0;for(;U;)n(w,U.data,F),F+=U.data.length,U=U.next;return w}consume(c,w){const U=this.head.data;if(c<U.length){const F=U.slice(0,c);return this.head.data=U.slice(c),F}return c===U.length?this.shift():w?this._getString(c):this._getBuffer(c)}first(){return this.head.data}*[i](){for(let c=this.head;c;c=c.next)yield c.data}_getString(c){let w="",U=this.head,F=0;do{const O=U.data;if(c>O.length)w+=O,c-=O.length;else{c===O.length?(w+=O,++F,U.next?this.head=U.next:this.head=this.tail=null):(w+=e(O,0,c),this.head=U,U.data=e(O,c));break}++F}while((U=U.next)!==null);return this.length-=F,w}_getBuffer(c){const w=l.allocUnsafe(c),U=c;let F=this.head,O=0;do{const M=F.data;if(c>M.length)n(w,M,U-c),c-=M.length;else{c===M.length?(n(w,M,U-c),++O,F.next?this.head=F.next:this.head=this.tail=null):(n(w,new a(M.buffer,M.byteOffset,c),U-c),this.head=F,F.data=M.slice(c));break}++O}while((F=F.next)!==null);return this.length-=O,w}[Symbol.for("nodejs.util.inspect.custom")](c,w){return d(this,{...w,depth:0,customInspect:!1})}},ic}var rc,Vm;function tf(){if(Vm)return rc;Vm=1;const{MathFloor:e,NumberIsInteger:i}=Kt(),{ERR_INVALID_ARG_VALUE:n}=gn().codes;function a(u,c,w){return u.highWaterMark!=null?u.highWaterMark:c?u[w]:null}function l(u){return u?16:16*1024}function d(u,c,w,U){const F=a(c,U,w);if(F!=null){if(!i(F)||F<0){const O=U?`options.${w}`:"options.highWaterMark";throw new n(O,F)}return e(F)}return l(u.objectMode)}return rc={getHighWaterMark:d,getDefaultHighWaterMark:l},rc}var sc={},aa={exports:{}},oc={};/*!
998
- * The buffer module from node.js, for the browser.
999
- *
1000
- * @author Feross Aboukhadijeh <https://feross.org>
1001
- * @license MIT
1002
- */var Zm;function yk(){return Zm||(Zm=1,(function(e){var i=Jc(),n=Kg(),a=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;e.Buffer=c,e.SlowBuffer=m,e.INSPECT_MAX_BYTES=50;var l=2147483647;e.kMaxLength=l,c.TYPED_ARRAY_SUPPORT=d(),!c.TYPED_ARRAY_SUPPORT&&typeof console<"u"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function d(){try{var Y=new Uint8Array(1),z={foo:function(){return 42}};return Object.setPrototypeOf(z,Uint8Array.prototype),Object.setPrototypeOf(Y,z),Y.foo()===42}catch{return!1}}Object.defineProperty(c.prototype,"parent",{enumerable:!0,get:function(){if(c.isBuffer(this))return this.buffer}}),Object.defineProperty(c.prototype,"offset",{enumerable:!0,get:function(){if(c.isBuffer(this))return this.byteOffset}});function u(Y){if(Y>l)throw new RangeError('The value "'+Y+'" is invalid for option "size"');var z=new Uint8Array(Y);return Object.setPrototypeOf(z,c.prototype),z}function c(Y,z,V){if(typeof Y=="number"){if(typeof z=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return O(Y)}return w(Y,z,V)}c.poolSize=8192;function w(Y,z,V){if(typeof Y=="string")return M(Y,z);if(ArrayBuffer.isView(Y))return _(Y);if(Y==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof Y);if(le(Y,ArrayBuffer)||Y&&le(Y.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(le(Y,SharedArrayBuffer)||Y&&le(Y.buffer,SharedArrayBuffer)))return b(Y,z,V);if(typeof Y=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');var ue=Y.valueOf&&Y.valueOf();if(ue!=null&&ue!==Y)return c.from(ue,z,V);var Te=v(Y);if(Te)return Te;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof Y[Symbol.toPrimitive]=="function")return c.from(Y[Symbol.toPrimitive]("string"),z,V);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof Y)}c.from=function(Y,z,V){return w(Y,z,V)},Object.setPrototypeOf(c.prototype,Uint8Array.prototype),Object.setPrototypeOf(c,Uint8Array);function U(Y){if(typeof Y!="number")throw new TypeError('"size" argument must be of type number');if(Y<0)throw new RangeError('The value "'+Y+'" is invalid for option "size"')}function F(Y,z,V){return U(Y),Y<=0?u(Y):z!==void 0?typeof V=="string"?u(Y).fill(z,V):u(Y).fill(z):u(Y)}c.alloc=function(Y,z,V){return F(Y,z,V)};function O(Y){return U(Y),u(Y<0?0:h(Y)|0)}c.allocUnsafe=function(Y){return O(Y)},c.allocUnsafeSlow=function(Y){return O(Y)};function M(Y,z){if((typeof z!="string"||z==="")&&(z="utf8"),!c.isEncoding(z))throw new TypeError("Unknown encoding: "+z);var V=k(Y,z)|0,ue=u(V),Te=ue.write(Y,z);return Te!==V&&(ue=ue.slice(0,Te)),ue}function L(Y){for(var z=Y.length<0?0:h(Y.length)|0,V=u(z),ue=0;ue<z;ue+=1)V[ue]=Y[ue]&255;return V}function _(Y){if(le(Y,Uint8Array)){var z=new Uint8Array(Y);return b(z.buffer,z.byteOffset,z.byteLength)}return L(Y)}function b(Y,z,V){if(z<0||Y.byteLength<z)throw new RangeError('"offset" is outside of buffer bounds');if(Y.byteLength<z+(V||0))throw new RangeError('"length" is outside of buffer bounds');var ue;return z===void 0&&V===void 0?ue=new Uint8Array(Y):V===void 0?ue=new Uint8Array(Y,z):ue=new Uint8Array(Y,z,V),Object.setPrototypeOf(ue,c.prototype),ue}function v(Y){if(c.isBuffer(Y)){var z=h(Y.length)|0,V=u(z);return V.length===0||Y.copy(V,0,0,z),V}if(Y.length!==void 0)return typeof Y.length!="number"||ye(Y.length)?u(0):L(Y);if(Y.type==="Buffer"&&Array.isArray(Y.data))return L(Y.data)}function h(Y){if(Y>=l)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+l.toString(16)+" bytes");return Y|0}function m(Y){return+Y!=Y&&(Y=0),c.alloc(+Y)}c.isBuffer=function(z){return z!=null&&z._isBuffer===!0&&z!==c.prototype},c.compare=function(z,V){if(le(z,Uint8Array)&&(z=c.from(z,z.offset,z.byteLength)),le(V,Uint8Array)&&(V=c.from(V,V.offset,V.byteLength)),!c.isBuffer(z)||!c.isBuffer(V))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(z===V)return 0;for(var ue=z.length,Te=V.length,Ie=0,Ce=Math.min(ue,Te);Ie<Ce;++Ie)if(z[Ie]!==V[Ie]){ue=z[Ie],Te=V[Ie];break}return ue<Te?-1:Te<ue?1:0},c.isEncoding=function(z){switch(String(z).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},c.concat=function(z,V){if(!Array.isArray(z))throw new TypeError('"list" argument must be an Array of Buffers');if(z.length===0)return c.alloc(0);var ue;if(V===void 0)for(V=0,ue=0;ue<z.length;++ue)V+=z[ue].length;var Te=c.allocUnsafe(V),Ie=0;for(ue=0;ue<z.length;++ue){var Ce=z[ue];if(le(Ce,Uint8Array))Ie+Ce.length>Te.length?c.from(Ce).copy(Te,Ie):Uint8Array.prototype.set.call(Te,Ce,Ie);else if(c.isBuffer(Ce))Ce.copy(Te,Ie);else throw new TypeError('"list" argument must be an Array of Buffers');Ie+=Ce.length}return Te};function k(Y,z){if(c.isBuffer(Y))return Y.length;if(ArrayBuffer.isView(Y)||le(Y,ArrayBuffer))return Y.byteLength;if(typeof Y!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof Y);var V=Y.length,ue=arguments.length>2&&arguments[2]===!0;if(!ue&&V===0)return 0;for(var Te=!1;;)switch(z){case"ascii":case"latin1":case"binary":return V;case"utf8":case"utf-8":return ne(Y).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return V*2;case"hex":return V>>>1;case"base64":return Ae(Y).length;default:if(Te)return ue?-1:ne(Y).length;z=(""+z).toLowerCase(),Te=!0}}c.byteLength=k;function B(Y,z,V){var ue=!1;if((z===void 0||z<0)&&(z=0),z>this.length||((V===void 0||V>this.length)&&(V=this.length),V<=0)||(V>>>=0,z>>>=0,V<=z))return"";for(Y||(Y="utf8");;)switch(Y){case"hex":return q(this,z,V);case"utf8":case"utf-8":return s(this,z,V);case"ascii":return I(this,z,V);case"latin1":case"binary":return x(this,z,V);case"base64":return r(this,z,V);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return T(this,z,V);default:if(ue)throw new TypeError("Unknown encoding: "+Y);Y=(Y+"").toLowerCase(),ue=!0}}c.prototype._isBuffer=!0;function C(Y,z,V){var ue=Y[z];Y[z]=Y[V],Y[V]=ue}c.prototype.swap16=function(){var z=this.length;if(z%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var V=0;V<z;V+=2)C(this,V,V+1);return this},c.prototype.swap32=function(){var z=this.length;if(z%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var V=0;V<z;V+=4)C(this,V,V+3),C(this,V+1,V+2);return this},c.prototype.swap64=function(){var z=this.length;if(z%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var V=0;V<z;V+=8)C(this,V,V+7),C(this,V+1,V+6),C(this,V+2,V+5),C(this,V+3,V+4);return this},c.prototype.toString=function(){var z=this.length;return z===0?"":arguments.length===0?s(this,0,z):B.apply(this,arguments)},c.prototype.toLocaleString=c.prototype.toString,c.prototype.equals=function(z){if(!c.isBuffer(z))throw new TypeError("Argument must be a Buffer");return this===z?!0:c.compare(this,z)===0},c.prototype.inspect=function(){var z="",V=e.INSPECT_MAX_BYTES;return z=this.toString("hex",0,V).replace(/(.{2})/g,"$1 ").trim(),this.length>V&&(z+=" ... "),"<Buffer "+z+">"},a&&(c.prototype[a]=c.prototype.inspect),c.prototype.compare=function(z,V,ue,Te,Ie){if(le(z,Uint8Array)&&(z=c.from(z,z.offset,z.byteLength)),!c.isBuffer(z))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof z);if(V===void 0&&(V=0),ue===void 0&&(ue=z?z.length:0),Te===void 0&&(Te=0),Ie===void 0&&(Ie=this.length),V<0||ue>z.length||Te<0||Ie>this.length)throw new RangeError("out of range index");if(Te>=Ie&&V>=ue)return 0;if(Te>=Ie)return-1;if(V>=ue)return 1;if(V>>>=0,ue>>>=0,Te>>>=0,Ie>>>=0,this===z)return 0;for(var Ce=Ie-Te,We=ue-V,Ge=Math.min(Ce,We),ee=this.slice(Te,Ie),te=z.slice(V,ue),K=0;K<Ge;++K)if(ee[K]!==te[K]){Ce=ee[K],We=te[K];break}return Ce<We?-1:We<Ce?1:0};function R(Y,z,V,ue,Te){if(Y.length===0)return-1;if(typeof V=="string"?(ue=V,V=0):V>2147483647?V=2147483647:V<-2147483648&&(V=-2147483648),V=+V,ye(V)&&(V=Te?0:Y.length-1),V<0&&(V=Y.length+V),V>=Y.length){if(Te)return-1;V=Y.length-1}else if(V<0)if(Te)V=0;else return-1;if(typeof z=="string"&&(z=c.from(z,ue)),c.isBuffer(z))return z.length===0?-1:A(Y,z,V,ue,Te);if(typeof z=="number")return z=z&255,typeof Uint8Array.prototype.indexOf=="function"?Te?Uint8Array.prototype.indexOf.call(Y,z,V):Uint8Array.prototype.lastIndexOf.call(Y,z,V):A(Y,[z],V,ue,Te);throw new TypeError("val must be string, number or Buffer")}function A(Y,z,V,ue,Te){var Ie=1,Ce=Y.length,We=z.length;if(ue!==void 0&&(ue=String(ue).toLowerCase(),ue==="ucs2"||ue==="ucs-2"||ue==="utf16le"||ue==="utf-16le")){if(Y.length<2||z.length<2)return-1;Ie=2,Ce/=2,We/=2,V/=2}function Ge(G,ce){return Ie===1?G[ce]:G.readUInt16BE(ce*Ie)}var ee;if(Te){var te=-1;for(ee=V;ee<Ce;ee++)if(Ge(Y,ee)===Ge(z,te===-1?0:ee-te)){if(te===-1&&(te=ee),ee-te+1===We)return te*Ie}else te!==-1&&(ee-=ee-te),te=-1}else for(V+We>Ce&&(V=Ce-We),ee=V;ee>=0;ee--){for(var K=!0,j=0;j<We;j++)if(Ge(Y,ee+j)!==Ge(z,j)){K=!1;break}if(K)return ee}return-1}c.prototype.includes=function(z,V,ue){return this.indexOf(z,V,ue)!==-1},c.prototype.indexOf=function(z,V,ue){return R(this,z,V,ue,!0)},c.prototype.lastIndexOf=function(z,V,ue){return R(this,z,V,ue,!1)};function f(Y,z,V,ue){V=Number(V)||0;var Te=Y.length-V;ue?(ue=Number(ue),ue>Te&&(ue=Te)):ue=Te;var Ie=z.length;ue>Ie/2&&(ue=Ie/2);for(var Ce=0;Ce<ue;++Ce){var We=parseInt(z.substr(Ce*2,2),16);if(ye(We))return Ce;Y[V+Ce]=We}return Ce}function E(Y,z,V,ue){return pe(ne(z,Y.length-V),Y,V,ue)}function S(Y,z,V,ue){return pe(me(z),Y,V,ue)}function P(Y,z,V,ue){return pe(Ae(z),Y,V,ue)}function y(Y,z,V,ue){return pe(ge(z,Y.length-V),Y,V,ue)}c.prototype.write=function(z,V,ue,Te){if(V===void 0)Te="utf8",ue=this.length,V=0;else if(ue===void 0&&typeof V=="string")Te=V,ue=this.length,V=0;else if(isFinite(V))V=V>>>0,isFinite(ue)?(ue=ue>>>0,Te===void 0&&(Te="utf8")):(Te=ue,ue=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var Ie=this.length-V;if((ue===void 0||ue>Ie)&&(ue=Ie),z.length>0&&(ue<0||V<0)||V>this.length)throw new RangeError("Attempt to write outside buffer bounds");Te||(Te="utf8");for(var Ce=!1;;)switch(Te){case"hex":return f(this,z,V,ue);case"utf8":case"utf-8":return E(this,z,V,ue);case"ascii":case"latin1":case"binary":return S(this,z,V,ue);case"base64":return P(this,z,V,ue);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return y(this,z,V,ue);default:if(Ce)throw new TypeError("Unknown encoding: "+Te);Te=(""+Te).toLowerCase(),Ce=!0}},c.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function r(Y,z,V){return z===0&&V===Y.length?i.fromByteArray(Y):i.fromByteArray(Y.slice(z,V))}function s(Y,z,V){V=Math.min(Y.length,V);for(var ue=[],Te=z;Te<V;){var Ie=Y[Te],Ce=null,We=Ie>239?4:Ie>223?3:Ie>191?2:1;if(Te+We<=V){var Ge,ee,te,K;switch(We){case 1:Ie<128&&(Ce=Ie);break;case 2:Ge=Y[Te+1],(Ge&192)===128&&(K=(Ie&31)<<6|Ge&63,K>127&&(Ce=K));break;case 3:Ge=Y[Te+1],ee=Y[Te+2],(Ge&192)===128&&(ee&192)===128&&(K=(Ie&15)<<12|(Ge&63)<<6|ee&63,K>2047&&(K<55296||K>57343)&&(Ce=K));break;case 4:Ge=Y[Te+1],ee=Y[Te+2],te=Y[Te+3],(Ge&192)===128&&(ee&192)===128&&(te&192)===128&&(K=(Ie&15)<<18|(Ge&63)<<12|(ee&63)<<6|te&63,K>65535&&K<1114112&&(Ce=K))}}Ce===null?(Ce=65533,We=1):Ce>65535&&(Ce-=65536,ue.push(Ce>>>10&1023|55296),Ce=56320|Ce&1023),ue.push(Ce),Te+=We}return g(ue)}var p=4096;function g(Y){var z=Y.length;if(z<=p)return String.fromCharCode.apply(String,Y);for(var V="",ue=0;ue<z;)V+=String.fromCharCode.apply(String,Y.slice(ue,ue+=p));return V}function I(Y,z,V){var ue="";V=Math.min(Y.length,V);for(var Te=z;Te<V;++Te)ue+=String.fromCharCode(Y[Te]&127);return ue}function x(Y,z,V){var ue="";V=Math.min(Y.length,V);for(var Te=z;Te<V;++Te)ue+=String.fromCharCode(Y[Te]);return ue}function q(Y,z,V){var ue=Y.length;(!z||z<0)&&(z=0),(!V||V<0||V>ue)&&(V=ue);for(var Te="",Ie=z;Ie<V;++Ie)Te+=de[Y[Ie]];return Te}function T(Y,z,V){for(var ue=Y.slice(z,V),Te="",Ie=0;Ie<ue.length-1;Ie+=2)Te+=String.fromCharCode(ue[Ie]+ue[Ie+1]*256);return Te}c.prototype.slice=function(z,V){var ue=this.length;z=~~z,V=V===void 0?ue:~~V,z<0?(z+=ue,z<0&&(z=0)):z>ue&&(z=ue),V<0?(V+=ue,V<0&&(V=0)):V>ue&&(V=ue),V<z&&(V=z);var Te=this.subarray(z,V);return Object.setPrototypeOf(Te,c.prototype),Te};function D(Y,z,V){if(Y%1!==0||Y<0)throw new RangeError("offset is not uint");if(Y+z>V)throw new RangeError("Trying to access beyond buffer length")}c.prototype.readUintLE=c.prototype.readUIntLE=function(z,V,ue){z=z>>>0,V=V>>>0,ue||D(z,V,this.length);for(var Te=this[z],Ie=1,Ce=0;++Ce<V&&(Ie*=256);)Te+=this[z+Ce]*Ie;return Te},c.prototype.readUintBE=c.prototype.readUIntBE=function(z,V,ue){z=z>>>0,V=V>>>0,ue||D(z,V,this.length);for(var Te=this[z+--V],Ie=1;V>0&&(Ie*=256);)Te+=this[z+--V]*Ie;return Te},c.prototype.readUint8=c.prototype.readUInt8=function(z,V){return z=z>>>0,V||D(z,1,this.length),this[z]},c.prototype.readUint16LE=c.prototype.readUInt16LE=function(z,V){return z=z>>>0,V||D(z,2,this.length),this[z]|this[z+1]<<8},c.prototype.readUint16BE=c.prototype.readUInt16BE=function(z,V){return z=z>>>0,V||D(z,2,this.length),this[z]<<8|this[z+1]},c.prototype.readUint32LE=c.prototype.readUInt32LE=function(z,V){return z=z>>>0,V||D(z,4,this.length),(this[z]|this[z+1]<<8|this[z+2]<<16)+this[z+3]*16777216},c.prototype.readUint32BE=c.prototype.readUInt32BE=function(z,V){return z=z>>>0,V||D(z,4,this.length),this[z]*16777216+(this[z+1]<<16|this[z+2]<<8|this[z+3])},c.prototype.readIntLE=function(z,V,ue){z=z>>>0,V=V>>>0,ue||D(z,V,this.length);for(var Te=this[z],Ie=1,Ce=0;++Ce<V&&(Ie*=256);)Te+=this[z+Ce]*Ie;return Ie*=128,Te>=Ie&&(Te-=Math.pow(2,8*V)),Te},c.prototype.readIntBE=function(z,V,ue){z=z>>>0,V=V>>>0,ue||D(z,V,this.length);for(var Te=V,Ie=1,Ce=this[z+--Te];Te>0&&(Ie*=256);)Ce+=this[z+--Te]*Ie;return Ie*=128,Ce>=Ie&&(Ce-=Math.pow(2,8*V)),Ce},c.prototype.readInt8=function(z,V){return z=z>>>0,V||D(z,1,this.length),this[z]&128?(255-this[z]+1)*-1:this[z]},c.prototype.readInt16LE=function(z,V){z=z>>>0,V||D(z,2,this.length);var ue=this[z]|this[z+1]<<8;return ue&32768?ue|4294901760:ue},c.prototype.readInt16BE=function(z,V){z=z>>>0,V||D(z,2,this.length);var ue=this[z+1]|this[z]<<8;return ue&32768?ue|4294901760:ue},c.prototype.readInt32LE=function(z,V){return z=z>>>0,V||D(z,4,this.length),this[z]|this[z+1]<<8|this[z+2]<<16|this[z+3]<<24},c.prototype.readInt32BE=function(z,V){return z=z>>>0,V||D(z,4,this.length),this[z]<<24|this[z+1]<<16|this[z+2]<<8|this[z+3]},c.prototype.readFloatLE=function(z,V){return z=z>>>0,V||D(z,4,this.length),n.read(this,z,!0,23,4)},c.prototype.readFloatBE=function(z,V){return z=z>>>0,V||D(z,4,this.length),n.read(this,z,!1,23,4)},c.prototype.readDoubleLE=function(z,V){return z=z>>>0,V||D(z,8,this.length),n.read(this,z,!0,52,8)},c.prototype.readDoubleBE=function(z,V){return z=z>>>0,V||D(z,8,this.length),n.read(this,z,!1,52,8)};function W(Y,z,V,ue,Te,Ie){if(!c.isBuffer(Y))throw new TypeError('"buffer" argument must be a Buffer instance');if(z>Te||z<Ie)throw new RangeError('"value" argument is out of bounds');if(V+ue>Y.length)throw new RangeError("Index out of range")}c.prototype.writeUintLE=c.prototype.writeUIntLE=function(z,V,ue,Te){if(z=+z,V=V>>>0,ue=ue>>>0,!Te){var Ie=Math.pow(2,8*ue)-1;W(this,z,V,ue,Ie,0)}var Ce=1,We=0;for(this[V]=z&255;++We<ue&&(Ce*=256);)this[V+We]=z/Ce&255;return V+ue},c.prototype.writeUintBE=c.prototype.writeUIntBE=function(z,V,ue,Te){if(z=+z,V=V>>>0,ue=ue>>>0,!Te){var Ie=Math.pow(2,8*ue)-1;W(this,z,V,ue,Ie,0)}var Ce=ue-1,We=1;for(this[V+Ce]=z&255;--Ce>=0&&(We*=256);)this[V+Ce]=z/We&255;return V+ue},c.prototype.writeUint8=c.prototype.writeUInt8=function(z,V,ue){return z=+z,V=V>>>0,ue||W(this,z,V,1,255,0),this[V]=z&255,V+1},c.prototype.writeUint16LE=c.prototype.writeUInt16LE=function(z,V,ue){return z=+z,V=V>>>0,ue||W(this,z,V,2,65535,0),this[V]=z&255,this[V+1]=z>>>8,V+2},c.prototype.writeUint16BE=c.prototype.writeUInt16BE=function(z,V,ue){return z=+z,V=V>>>0,ue||W(this,z,V,2,65535,0),this[V]=z>>>8,this[V+1]=z&255,V+2},c.prototype.writeUint32LE=c.prototype.writeUInt32LE=function(z,V,ue){return z=+z,V=V>>>0,ue||W(this,z,V,4,4294967295,0),this[V+3]=z>>>24,this[V+2]=z>>>16,this[V+1]=z>>>8,this[V]=z&255,V+4},c.prototype.writeUint32BE=c.prototype.writeUInt32BE=function(z,V,ue){return z=+z,V=V>>>0,ue||W(this,z,V,4,4294967295,0),this[V]=z>>>24,this[V+1]=z>>>16,this[V+2]=z>>>8,this[V+3]=z&255,V+4},c.prototype.writeIntLE=function(z,V,ue,Te){if(z=+z,V=V>>>0,!Te){var Ie=Math.pow(2,8*ue-1);W(this,z,V,ue,Ie-1,-Ie)}var Ce=0,We=1,Ge=0;for(this[V]=z&255;++Ce<ue&&(We*=256);)z<0&&Ge===0&&this[V+Ce-1]!==0&&(Ge=1),this[V+Ce]=(z/We>>0)-Ge&255;return V+ue},c.prototype.writeIntBE=function(z,V,ue,Te){if(z=+z,V=V>>>0,!Te){var Ie=Math.pow(2,8*ue-1);W(this,z,V,ue,Ie-1,-Ie)}var Ce=ue-1,We=1,Ge=0;for(this[V+Ce]=z&255;--Ce>=0&&(We*=256);)z<0&&Ge===0&&this[V+Ce+1]!==0&&(Ge=1),this[V+Ce]=(z/We>>0)-Ge&255;return V+ue},c.prototype.writeInt8=function(z,V,ue){return z=+z,V=V>>>0,ue||W(this,z,V,1,127,-128),z<0&&(z=255+z+1),this[V]=z&255,V+1},c.prototype.writeInt16LE=function(z,V,ue){return z=+z,V=V>>>0,ue||W(this,z,V,2,32767,-32768),this[V]=z&255,this[V+1]=z>>>8,V+2},c.prototype.writeInt16BE=function(z,V,ue){return z=+z,V=V>>>0,ue||W(this,z,V,2,32767,-32768),this[V]=z>>>8,this[V+1]=z&255,V+2},c.prototype.writeInt32LE=function(z,V,ue){return z=+z,V=V>>>0,ue||W(this,z,V,4,2147483647,-2147483648),this[V]=z&255,this[V+1]=z>>>8,this[V+2]=z>>>16,this[V+3]=z>>>24,V+4},c.prototype.writeInt32BE=function(z,V,ue){return z=+z,V=V>>>0,ue||W(this,z,V,4,2147483647,-2147483648),z<0&&(z=4294967295+z+1),this[V]=z>>>24,this[V+1]=z>>>16,this[V+2]=z>>>8,this[V+3]=z&255,V+4};function J(Y,z,V,ue,Te,Ie){if(V+ue>Y.length)throw new RangeError("Index out of range");if(V<0)throw new RangeError("Index out of range")}function X(Y,z,V,ue,Te){return z=+z,V=V>>>0,Te||J(Y,z,V,4),n.write(Y,z,V,ue,23,4),V+4}c.prototype.writeFloatLE=function(z,V,ue){return X(this,z,V,!0,ue)},c.prototype.writeFloatBE=function(z,V,ue){return X(this,z,V,!1,ue)};function Q(Y,z,V,ue,Te){return z=+z,V=V>>>0,Te||J(Y,z,V,8),n.write(Y,z,V,ue,52,8),V+8}c.prototype.writeDoubleLE=function(z,V,ue){return Q(this,z,V,!0,ue)},c.prototype.writeDoubleBE=function(z,V,ue){return Q(this,z,V,!1,ue)},c.prototype.copy=function(z,V,ue,Te){if(!c.isBuffer(z))throw new TypeError("argument should be a Buffer");if(ue||(ue=0),!Te&&Te!==0&&(Te=this.length),V>=z.length&&(V=z.length),V||(V=0),Te>0&&Te<ue&&(Te=ue),Te===ue||z.length===0||this.length===0)return 0;if(V<0)throw new RangeError("targetStart out of bounds");if(ue<0||ue>=this.length)throw new RangeError("Index out of range");if(Te<0)throw new RangeError("sourceEnd out of bounds");Te>this.length&&(Te=this.length),z.length-V<Te-ue&&(Te=z.length-V+ue);var Ie=Te-ue;return this===z&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(V,ue,Te):Uint8Array.prototype.set.call(z,this.subarray(ue,Te),V),Ie},c.prototype.fill=function(z,V,ue,Te){if(typeof z=="string"){if(typeof V=="string"?(Te=V,V=0,ue=this.length):typeof ue=="string"&&(Te=ue,ue=this.length),Te!==void 0&&typeof Te!="string")throw new TypeError("encoding must be a string");if(typeof Te=="string"&&!c.isEncoding(Te))throw new TypeError("Unknown encoding: "+Te);if(z.length===1){var Ie=z.charCodeAt(0);(Te==="utf8"&&Ie<128||Te==="latin1")&&(z=Ie)}}else typeof z=="number"?z=z&255:typeof z=="boolean"&&(z=Number(z));if(V<0||this.length<V||this.length<ue)throw new RangeError("Out of range index");if(ue<=V)return this;V=V>>>0,ue=ue===void 0?this.length:ue>>>0,z||(z=0);var Ce;if(typeof z=="number")for(Ce=V;Ce<ue;++Ce)this[Ce]=z;else{var We=c.isBuffer(z)?z:c.from(z,Te),Ge=We.length;if(Ge===0)throw new TypeError('The value "'+z+'" is invalid for argument "value"');for(Ce=0;Ce<ue-V;++Ce)this[Ce+V]=We[Ce%Ge]}return this};var re=/[^+/0-9A-Za-z-_]/g;function se(Y){if(Y=Y.split("=")[0],Y=Y.trim().replace(re,""),Y.length<2)return"";for(;Y.length%4!==0;)Y=Y+"=";return Y}function ne(Y,z){z=z||1/0;for(var V,ue=Y.length,Te=null,Ie=[],Ce=0;Ce<ue;++Ce){if(V=Y.charCodeAt(Ce),V>55295&&V<57344){if(!Te){if(V>56319){(z-=3)>-1&&Ie.push(239,191,189);continue}else if(Ce+1===ue){(z-=3)>-1&&Ie.push(239,191,189);continue}Te=V;continue}if(V<56320){(z-=3)>-1&&Ie.push(239,191,189),Te=V;continue}V=(Te-55296<<10|V-56320)+65536}else Te&&(z-=3)>-1&&Ie.push(239,191,189);if(Te=null,V<128){if((z-=1)<0)break;Ie.push(V)}else if(V<2048){if((z-=2)<0)break;Ie.push(V>>6|192,V&63|128)}else if(V<65536){if((z-=3)<0)break;Ie.push(V>>12|224,V>>6&63|128,V&63|128)}else if(V<1114112){if((z-=4)<0)break;Ie.push(V>>18|240,V>>12&63|128,V>>6&63|128,V&63|128)}else throw new Error("Invalid code point")}return Ie}function me(Y){for(var z=[],V=0;V<Y.length;++V)z.push(Y.charCodeAt(V)&255);return z}function ge(Y,z){for(var V,ue,Te,Ie=[],Ce=0;Ce<Y.length&&!((z-=2)<0);++Ce)V=Y.charCodeAt(Ce),ue=V>>8,Te=V%256,Ie.push(Te),Ie.push(ue);return Ie}function Ae(Y){return i.toByteArray(se(Y))}function pe(Y,z,V,ue){for(var Te=0;Te<ue&&!(Te+V>=z.length||Te>=Y.length);++Te)z[Te+V]=Y[Te];return Te}function le(Y,z){return Y instanceof z||Y!=null&&Y.constructor!=null&&Y.constructor.name!=null&&Y.constructor.name===z.name}function ye(Y){return Y!==Y}var de=(function(){for(var Y="0123456789abcdef",z=new Array(256),V=0;V<16;++V)for(var ue=V*16,Te=0;Te<16;++Te)z[ue+Te]=Y[V]+Y[Te];return z})()})(oc)),oc}/*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */var Qm;function gk(){return Qm||(Qm=1,(function(e,i){var n=yk(),a=n.Buffer;function l(u,c){for(var w in u)c[w]=u[w]}a.from&&a.alloc&&a.allocUnsafe&&a.allocUnsafeSlow?e.exports=n:(l(n,i),i.Buffer=d);function d(u,c,w){return a(u,c,w)}d.prototype=Object.create(a.prototype),l(a,d),d.from=function(u,c,w){if(typeof u=="number")throw new TypeError("Argument must not be a number");return a(u,c,w)},d.alloc=function(u,c,w){if(typeof u!="number")throw new TypeError("Argument must be a number");var U=a(u);return c!==void 0?typeof w=="string"?U.fill(c,w):U.fill(c):U.fill(0),U},d.allocUnsafe=function(u){if(typeof u!="number")throw new TypeError("Argument must be a number");return a(u)},d.allocUnsafeSlow=function(u){if(typeof u!="number")throw new TypeError("Argument must be a number");return n.SlowBuffer(u)}})(aa,aa.exports)),aa.exports}var Xm;function bk(){if(Xm)return sc;Xm=1;var e=gk().Buffer,i=e.isEncoding||function(h){switch(h=""+h,h&&h.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 n(h){if(!h)return"utf8";for(var m;;)switch(h){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 h;default:if(m)return;h=(""+h).toLowerCase(),m=!0}}function a(h){var m=n(h);if(typeof m!="string"&&(e.isEncoding===i||!i(h)))throw new Error("Unknown encoding: "+h);return m||h}sc.StringDecoder=l;function l(h){this.encoding=a(h);var m;switch(this.encoding){case"utf16le":this.text=O,this.end=M,m=4;break;case"utf8":this.fillLast=w,m=4;break;case"base64":this.text=L,this.end=_,m=3;break;default:this.write=b,this.end=v;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=e.allocUnsafe(m)}l.prototype.write=function(h){if(h.length===0)return"";var m,k;if(this.lastNeed){if(m=this.fillLast(h),m===void 0)return"";k=this.lastNeed,this.lastNeed=0}else k=0;return k<h.length?m?m+this.text(h,k):this.text(h,k):m||""},l.prototype.end=F,l.prototype.text=U,l.prototype.fillLast=function(h){if(this.lastNeed<=h.length)return h.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);h.copy(this.lastChar,this.lastTotal-this.lastNeed,0,h.length),this.lastNeed-=h.length};function d(h){return h<=127?0:h>>5===6?2:h>>4===14?3:h>>3===30?4:h>>6===2?-1:-2}function u(h,m,k){var B=m.length-1;if(B<k)return 0;var C=d(m[B]);return C>=0?(C>0&&(h.lastNeed=C-1),C):--B<k||C===-2?0:(C=d(m[B]),C>=0?(C>0&&(h.lastNeed=C-2),C):--B<k||C===-2?0:(C=d(m[B]),C>=0?(C>0&&(C===2?C=0:h.lastNeed=C-3),C):0))}function c(h,m,k){if((m[0]&192)!==128)return h.lastNeed=0,"�";if(h.lastNeed>1&&m.length>1){if((m[1]&192)!==128)return h.lastNeed=1,"�";if(h.lastNeed>2&&m.length>2&&(m[2]&192)!==128)return h.lastNeed=2,"�"}}function w(h){var m=this.lastTotal-this.lastNeed,k=c(this,h);if(k!==void 0)return k;if(this.lastNeed<=h.length)return h.copy(this.lastChar,m,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);h.copy(this.lastChar,m,0,h.length),this.lastNeed-=h.length}function U(h,m){var k=u(this,h,m);if(!this.lastNeed)return h.toString("utf8",m);this.lastTotal=k;var B=h.length-(k-this.lastNeed);return h.copy(this.lastChar,0,B),h.toString("utf8",m,B)}function F(h){var m=h&&h.length?this.write(h):"";return this.lastNeed?m+"�":m}function O(h,m){if((h.length-m)%2===0){var k=h.toString("utf16le",m);if(k){var B=k.charCodeAt(k.length-1);if(B>=55296&&B<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=h[h.length-2],this.lastChar[1]=h[h.length-1],k.slice(0,-1)}return k}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=h[h.length-1],h.toString("utf16le",m,h.length-1)}function M(h){var m=h&&h.length?this.write(h):"";if(this.lastNeed){var k=this.lastTotal-this.lastNeed;return m+this.lastChar.toString("utf16le",0,k)}return m}function L(h,m){var k=(h.length-m)%3;return k===0?h.toString("base64",m):(this.lastNeed=3-k,this.lastTotal=3,k===1?this.lastChar[0]=h[h.length-1]:(this.lastChar[0]=h[h.length-2],this.lastChar[1]=h[h.length-1]),h.toString("base64",m,h.length-k))}function _(h){var m=h&&h.length?this.write(h):"";return this.lastNeed?m+this.lastChar.toString("base64",0,3-this.lastNeed):m}function b(h){return h.toString(this.encoding)}function v(h){return h&&h.length?this.write(h):""}return sc}var ac,Ym;function Vg(){if(Ym)return ac;Ym=1;const e=wr(),{PromisePrototypeThen:i,SymbolAsyncIterator:n,SymbolIterator:a}=Kt(),{Buffer:l}=Sr(),{ERR_INVALID_ARG_TYPE:d,ERR_STREAM_NULL_VALUES:u}=gn().codes;function c(w,U,F){let O;if(typeof U=="string"||U instanceof l)return new w({objectMode:!0,...F,read(){this.push(U),this.push(null)}});let M;if(U&&U[n])M=!0,O=U[n]();else if(U&&U[a])M=!1,O=U[a]();else throw new d("iterable",["Iterable"],U);const L=new w({objectMode:!0,highWaterMark:1,...F});let _=!1;L._read=function(){_||(_=!0,v())},L._destroy=function(h,m){i(b(h),()=>e.nextTick(m,h),k=>e.nextTick(m,k||h))};async function b(h){const m=h!=null,k=typeof O.throw=="function";if(m&&k){const{value:B,done:C}=await O.throw(h);if(await B,C)return}if(typeof O.return=="function"){const{value:B}=await O.return();await B}}async function v(){for(;;){try{const{value:h,done:m}=M?await O.next():O.next();if(m)L.push(null);else{const k=h&&typeof h.then=="function"?await h:h;if(k===null)throw _=!1,new u;if(L.push(k))continue;_=!1}}catch(h){L.destroy(h)}break}}return L}return ac=c,ac}var uc,$m;function za(){if($m)return uc;$m=1;const e=wr(),{ArrayPrototypeIndexOf:i,NumberIsInteger:n,NumberIsNaN:a,NumberParseInt:l,ObjectDefineProperties:d,ObjectKeys:u,ObjectSetPrototypeOf:c,Promise:w,SafeSet:U,SymbolAsyncIterator:F,Symbol:O}=Kt();uc=T,T.ReadableState=q;const{EventEmitter:M}=Yc(),{Stream:L,prependListener:_}=$c(),{Buffer:b}=Sr(),{addAbortSignal:v}=ef(),h=_r();let m=Ei().debuglog("stream",ee=>{m=ee});const k=mk(),B=rs(),{getHighWaterMark:C,getDefaultHighWaterMark:R}=tf(),{aggregateTwoErrors:A,codes:{ERR_INVALID_ARG_TYPE:f,ERR_METHOD_NOT_IMPLEMENTED:E,ERR_OUT_OF_RANGE:S,ERR_STREAM_PUSH_AFTER_EOF:P,ERR_STREAM_UNSHIFT_AFTER_END_EVENT:y}}=gn(),{validateObject:r}=xa(),s=O("kPaused"),{StringDecoder:p}=bk(),g=Vg();c(T.prototype,L.prototype),c(T,L);const I=()=>{},{errorOrDestroy:x}=B;function q(ee,te,K){typeof K!="boolean"&&(K=te instanceof Ai()),this.objectMode=!!(ee&&ee.objectMode),K&&(this.objectMode=this.objectMode||!!(ee&&ee.readableObjectMode)),this.highWaterMark=ee?C(this,ee,"readableHighWaterMark",K):R(!1),this.buffer=new k,this.length=0,this.pipes=[],this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.constructed=!0,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this[s]=null,this.errorEmitted=!1,this.emitClose=!ee||ee.emitClose!==!1,this.autoDestroy=!ee||ee.autoDestroy!==!1,this.destroyed=!1,this.errored=null,this.closed=!1,this.closeEmitted=!1,this.defaultEncoding=ee&&ee.defaultEncoding||"utf8",this.awaitDrainWriters=null,this.multiAwaitDrain=!1,this.readingMore=!1,this.dataEmitted=!1,this.decoder=null,this.encoding=null,ee&&ee.encoding&&(this.decoder=new p(ee.encoding),this.encoding=ee.encoding)}function T(ee){if(!(this instanceof T))return new T(ee);const te=this instanceof Ai();this._readableState=new q(ee,this,te),ee&&(typeof ee.read=="function"&&(this._read=ee.read),typeof ee.destroy=="function"&&(this._destroy=ee.destroy),typeof ee.construct=="function"&&(this._construct=ee.construct),ee.signal&&!te&&v(ee.signal,this)),L.call(this,ee),B.construct(this,()=>{this._readableState.needReadable&&me(this,this._readableState)})}T.prototype.destroy=B.destroy,T.prototype._undestroy=B.undestroy,T.prototype._destroy=function(ee,te){te(ee)},T.prototype[M.captureRejectionSymbol]=function(ee){this.destroy(ee)},T.prototype.push=function(ee,te){return D(this,ee,te,!1)},T.prototype.unshift=function(ee,te){return D(this,ee,te,!0)};function D(ee,te,K,j){m("readableAddChunk",te);const G=ee._readableState;let ce;if(G.objectMode||(typeof te=="string"?(K=K||G.defaultEncoding,G.encoding!==K&&(j&&G.encoding?te=b.from(te,K).toString(G.encoding):(te=b.from(te,K),K=""))):te instanceof b?K="":L._isUint8Array(te)?(te=L._uint8ArrayToBuffer(te),K=""):te!=null&&(ce=new f("chunk",["string","Buffer","Uint8Array"],te))),ce)x(ee,ce);else if(te===null)G.reading=!1,re(ee,G);else if(G.objectMode||te&&te.length>0)if(j)if(G.endEmitted)x(ee,new y);else{if(G.destroyed||G.errored)return!1;W(ee,G,te,!0)}else if(G.ended)x(ee,new P);else{if(G.destroyed||G.errored)return!1;G.reading=!1,G.decoder&&!K?(te=G.decoder.write(te),G.objectMode||te.length!==0?W(ee,G,te,!1):me(ee,G)):W(ee,G,te,!1)}else j||(G.reading=!1,me(ee,G));return!G.ended&&(G.length<G.highWaterMark||G.length===0)}function W(ee,te,K,j){te.flowing&&te.length===0&&!te.sync&&ee.listenerCount("data")>0?(te.multiAwaitDrain?te.awaitDrainWriters.clear():te.awaitDrainWriters=null,te.dataEmitted=!0,ee.emit("data",K)):(te.length+=te.objectMode?1:K.length,j?te.buffer.unshift(K):te.buffer.push(K),te.needReadable&&se(ee)),me(ee,te)}T.prototype.isPaused=function(){const ee=this._readableState;return ee[s]===!0||ee.flowing===!1},T.prototype.setEncoding=function(ee){const te=new p(ee);this._readableState.decoder=te,this._readableState.encoding=this._readableState.decoder.encoding;const K=this._readableState.buffer;let j="";for(const G of K)j+=te.write(G);return K.clear(),j!==""&&K.push(j),this._readableState.length=j.length,this};const J=1073741824;function X(ee){if(ee>J)throw new S("size","<= 1GiB",ee);return ee--,ee|=ee>>>1,ee|=ee>>>2,ee|=ee>>>4,ee|=ee>>>8,ee|=ee>>>16,ee++,ee}function Q(ee,te){return ee<=0||te.length===0&&te.ended?0:te.objectMode?1:a(ee)?te.flowing&&te.length?te.buffer.first().length:te.length:ee<=te.length?ee:te.ended?te.length:0}T.prototype.read=function(ee){m("read",ee),ee===void 0?ee=NaN:n(ee)||(ee=l(ee,10));const te=this._readableState,K=ee;if(ee>te.highWaterMark&&(te.highWaterMark=X(ee)),ee!==0&&(te.emittedReadable=!1),ee===0&&te.needReadable&&((te.highWaterMark!==0?te.length>=te.highWaterMark:te.length>0)||te.ended))return m("read: emitReadable",te.length,te.ended),te.length===0&&te.ended?Te(this):se(this),null;if(ee=Q(ee,te),ee===0&&te.ended)return te.length===0&&Te(this),null;let j=te.needReadable;if(m("need readable",j),(te.length===0||te.length-ee<te.highWaterMark)&&(j=!0,m("length less than watermark",j)),te.ended||te.reading||te.destroyed||te.errored||!te.constructed)j=!1,m("reading, ended or constructing",j);else if(j){m("do read"),te.reading=!0,te.sync=!0,te.length===0&&(te.needReadable=!0);try{this._read(te.highWaterMark)}catch(ce){x(this,ce)}te.sync=!1,te.reading||(ee=Q(K,te))}let G;return ee>0?G=ue(ee,te):G=null,G===null?(te.needReadable=te.length<=te.highWaterMark,ee=0):(te.length-=ee,te.multiAwaitDrain?te.awaitDrainWriters.clear():te.awaitDrainWriters=null),te.length===0&&(te.ended||(te.needReadable=!0),K!==ee&&te.ended&&Te(this)),G!==null&&!te.errorEmitted&&!te.closeEmitted&&(te.dataEmitted=!0,this.emit("data",G)),G};function re(ee,te){if(m("onEofChunk"),!te.ended){if(te.decoder){const K=te.decoder.end();K&&K.length&&(te.buffer.push(K),te.length+=te.objectMode?1:K.length)}te.ended=!0,te.sync?se(ee):(te.needReadable=!1,te.emittedReadable=!0,ne(ee))}}function se(ee){const te=ee._readableState;m("emitReadable",te.needReadable,te.emittedReadable),te.needReadable=!1,te.emittedReadable||(m("emitReadable",te.flowing),te.emittedReadable=!0,e.nextTick(ne,ee))}function ne(ee){const te=ee._readableState;m("emitReadable_",te.destroyed,te.length,te.ended),!te.destroyed&&!te.errored&&(te.length||te.ended)&&(ee.emit("readable"),te.emittedReadable=!1),te.needReadable=!te.flowing&&!te.ended&&te.length<=te.highWaterMark,Y(ee)}function me(ee,te){!te.readingMore&&te.constructed&&(te.readingMore=!0,e.nextTick(ge,ee,te))}function ge(ee,te){for(;!te.reading&&!te.ended&&(te.length<te.highWaterMark||te.flowing&&te.length===0);){const K=te.length;if(m("maybeReadMore read 0"),ee.read(0),K===te.length)break}te.readingMore=!1}T.prototype._read=function(ee){throw new E("_read()")},T.prototype.pipe=function(ee,te){const K=this,j=this._readableState;j.pipes.length===1&&(j.multiAwaitDrain||(j.multiAwaitDrain=!0,j.awaitDrainWriters=new U(j.awaitDrainWriters?[j.awaitDrainWriters]:[]))),j.pipes.push(ee),m("pipe count=%d opts=%j",j.pipes.length,te);const ce=(!te||te.end!==!1)&&ee!==e.stdout&&ee!==e.stderr?be:ke;j.endEmitted?e.nextTick(ce):K.once("end",ce),ee.on("unpipe",$);function $(Ne,ae){m("onunpipe"),Ne===K&&ae&&ae.hasUnpiped===!1&&(ae.hasUnpiped=!0,we())}function be(){m("onend"),ee.end()}let Se,Be=!1;function we(){m("cleanup"),ee.removeListener("close",ze),ee.removeListener("finish",H),Se&&ee.removeListener("drain",Se),ee.removeListener("error",Re),ee.removeListener("unpipe",$),K.removeListener("end",be),K.removeListener("end",ke),K.removeListener("data",oe),Be=!0,Se&&j.awaitDrainWriters&&(!ee._writableState||ee._writableState.needDrain)&&Se()}function Pe(){Be||(j.pipes.length===1&&j.pipes[0]===ee?(m("false write response, pause",0),j.awaitDrainWriters=ee,j.multiAwaitDrain=!1):j.pipes.length>1&&j.pipes.includes(ee)&&(m("false write response, pause",j.awaitDrainWriters.size),j.awaitDrainWriters.add(ee)),K.pause()),Se||(Se=Ae(K,ee),ee.on("drain",Se))}K.on("data",oe);function oe(Ne){m("ondata");const ae=ee.write(Ne);m("dest.write",ae),ae===!1&&Pe()}function Re(Ne){if(m("onerror",Ne),ke(),ee.removeListener("error",Re),ee.listenerCount("error")===0){const ae=ee._writableState||ee._readableState;ae&&!ae.errorEmitted?x(ee,Ne):ee.emit("error",Ne)}}_(ee,"error",Re);function ze(){ee.removeListener("finish",H),ke()}ee.once("close",ze);function H(){m("onfinish"),ee.removeListener("close",ze),ke()}ee.once("finish",H);function ke(){m("unpipe"),K.unpipe(ee)}return ee.emit("pipe",K),ee.writableNeedDrain===!0?j.flowing&&Pe():j.flowing||(m("pipe resume"),K.resume()),ee};function Ae(ee,te){return function(){const j=ee._readableState;j.awaitDrainWriters===te?(m("pipeOnDrain",1),j.awaitDrainWriters=null):j.multiAwaitDrain&&(m("pipeOnDrain",j.awaitDrainWriters.size),j.awaitDrainWriters.delete(te)),(!j.awaitDrainWriters||j.awaitDrainWriters.size===0)&&ee.listenerCount("data")&&ee.resume()}}T.prototype.unpipe=function(ee){const te=this._readableState,K={hasUnpiped:!1};if(te.pipes.length===0)return this;if(!ee){const G=te.pipes;te.pipes=[],this.pause();for(let ce=0;ce<G.length;ce++)G[ce].emit("unpipe",this,{hasUnpiped:!1});return this}const j=i(te.pipes,ee);return j===-1?this:(te.pipes.splice(j,1),te.pipes.length===0&&this.pause(),ee.emit("unpipe",this,K),this)},T.prototype.on=function(ee,te){const K=L.prototype.on.call(this,ee,te),j=this._readableState;return ee==="data"?(j.readableListening=this.listenerCount("readable")>0,j.flowing!==!1&&this.resume()):ee==="readable"&&!j.endEmitted&&!j.readableListening&&(j.readableListening=j.needReadable=!0,j.flowing=!1,j.emittedReadable=!1,m("on readable",j.length,j.reading),j.length?se(this):j.reading||e.nextTick(le,this)),K},T.prototype.addListener=T.prototype.on,T.prototype.removeListener=function(ee,te){const K=L.prototype.removeListener.call(this,ee,te);return ee==="readable"&&e.nextTick(pe,this),K},T.prototype.off=T.prototype.removeListener,T.prototype.removeAllListeners=function(ee){const te=L.prototype.removeAllListeners.apply(this,arguments);return(ee==="readable"||ee===void 0)&&e.nextTick(pe,this),te};function pe(ee){const te=ee._readableState;te.readableListening=ee.listenerCount("readable")>0,te.resumeScheduled&&te[s]===!1?te.flowing=!0:ee.listenerCount("data")>0?ee.resume():te.readableListening||(te.flowing=null)}function le(ee){m("readable nexttick read 0"),ee.read(0)}T.prototype.resume=function(){const ee=this._readableState;return ee.flowing||(m("resume"),ee.flowing=!ee.readableListening,ye(this,ee)),ee[s]=!1,this};function ye(ee,te){te.resumeScheduled||(te.resumeScheduled=!0,e.nextTick(de,ee,te))}function de(ee,te){m("resume",te.reading),te.reading||ee.read(0),te.resumeScheduled=!1,ee.emit("resume"),Y(ee),te.flowing&&!te.reading&&ee.read(0)}T.prototype.pause=function(){return m("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(m("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState[s]=!0,this};function Y(ee){const te=ee._readableState;for(m("flow",te.flowing);te.flowing&&ee.read()!==null;);}T.prototype.wrap=function(ee){let te=!1;ee.on("data",j=>{!this.push(j)&&ee.pause&&(te=!0,ee.pause())}),ee.on("end",()=>{this.push(null)}),ee.on("error",j=>{x(this,j)}),ee.on("close",()=>{this.destroy()}),ee.on("destroy",()=>{this.destroy()}),this._read=()=>{te&&ee.resume&&(te=!1,ee.resume())};const K=u(ee);for(let j=1;j<K.length;j++){const G=K[j];this[G]===void 0&&typeof ee[G]=="function"&&(this[G]=ee[G].bind(ee))}return this},T.prototype[F]=function(){return z(this)},T.prototype.iterator=function(ee){return ee!==void 0&&r(ee,"options"),z(this,ee)};function z(ee,te){typeof ee.read!="function"&&(ee=T.wrap(ee,{objectMode:!0}));const K=V(ee,te);return K.stream=ee,K}async function*V(ee,te){let K=I;function j($){this===ee?(K(),K=I):K=$}ee.on("readable",j);let G;const ce=h(ee,{writable:!1},$=>{G=$?A(G,$):null,K(),K=I});try{for(;;){const $=ee.destroyed?null:ee.read();if($!==null)yield $;else{if(G)throw G;if(G===null)return;await new w(j)}}}catch($){throw G=A(G,$),G}finally{(G||te?.destroyOnReturn!==!1)&&(G===void 0||ee._readableState.autoDestroy)?B.destroyer(ee,null):(ee.off("readable",j),ce())}}d(T.prototype,{readable:{__proto__:null,get(){const ee=this._readableState;return!!ee&&ee.readable!==!1&&!ee.destroyed&&!ee.errorEmitted&&!ee.endEmitted},set(ee){this._readableState&&(this._readableState.readable=!!ee)}},readableDidRead:{__proto__:null,enumerable:!1,get:function(){return this._readableState.dataEmitted}},readableAborted:{__proto__:null,enumerable:!1,get:function(){return!!(this._readableState.readable!==!1&&(this._readableState.destroyed||this._readableState.errored)&&!this._readableState.endEmitted)}},readableHighWaterMark:{__proto__:null,enumerable:!1,get:function(){return this._readableState.highWaterMark}},readableBuffer:{__proto__:null,enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}},readableFlowing:{__proto__:null,enumerable:!1,get:function(){return this._readableState.flowing},set:function(ee){this._readableState&&(this._readableState.flowing=ee)}},readableLength:{__proto__:null,enumerable:!1,get(){return this._readableState.length}},readableObjectMode:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.objectMode:!1}},readableEncoding:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.encoding:null}},errored:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.errored:null}},closed:{__proto__:null,get(){return this._readableState?this._readableState.closed:!1}},destroyed:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.destroyed:!1},set(ee){this._readableState&&(this._readableState.destroyed=ee)}},readableEnded:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.endEmitted:!1}}}),d(q.prototype,{pipesCount:{__proto__:null,get(){return this.pipes.length}},paused:{__proto__:null,get(){return this[s]!==!1},set(ee){this[s]=!!ee}}}),T._fromList=ue;function ue(ee,te){if(te.length===0)return null;let K;return te.objectMode?K=te.buffer.shift():!ee||ee>=te.length?(te.decoder?K=te.buffer.join(""):te.buffer.length===1?K=te.buffer.first():K=te.buffer.concat(te.length),te.buffer.clear()):K=te.buffer.consume(ee,te.decoder),K}function Te(ee){const te=ee._readableState;m("endReadable",te.endEmitted),te.endEmitted||(te.ended=!0,e.nextTick(Ie,te,ee))}function Ie(ee,te){if(m("endReadableNT",ee.endEmitted,ee.length),!ee.errored&&!ee.closeEmitted&&!ee.endEmitted&&ee.length===0){if(ee.endEmitted=!0,te.emit("end"),te.writable&&te.allowHalfOpen===!1)e.nextTick(Ce,te);else if(ee.autoDestroy){const K=te._writableState;(!K||K.autoDestroy&&(K.finished||K.writable===!1))&&te.destroy()}}}function Ce(ee){ee.writable&&!ee.writableEnded&&!ee.destroyed&&ee.end()}T.from=function(ee,te){return g(T,ee,te)};let We;function Ge(){return We===void 0&&(We={}),We}return T.fromWeb=function(ee,te){return Ge().newStreamReadableFromReadableStream(ee,te)},T.toWeb=function(ee,te){return Ge().newReadableStreamFromStreamReadable(ee,te)},T.wrap=function(ee,te){var K,j;return new T({objectMode:(K=(j=ee.readableObjectMode)!==null&&j!==void 0?j:ee.objectMode)!==null&&K!==void 0?K:!0,...te,destroy(G,ce){B.destroyer(ee,G),ce(G)}}).wrap(ee)},uc}var lc,ey;function Zg(){if(ey)return lc;ey=1;const e=wr(),{ArrayPrototypeSlice:i,Error:n,FunctionPrototypeSymbolHasInstance:a,ObjectDefineProperty:l,ObjectDefineProperties:d,ObjectSetPrototypeOf:u,StringPrototypeToLowerCase:c,Symbol:w,SymbolHasInstance:U}=Kt();lc=p,p.WritableState=r;const{EventEmitter:F}=Yc(),O=$c().Stream,{Buffer:M}=Sr(),L=rs(),{addAbortSignal:_}=ef(),{getHighWaterMark:b,getDefaultHighWaterMark:v}=tf(),{ERR_INVALID_ARG_TYPE:h,ERR_METHOD_NOT_IMPLEMENTED:m,ERR_MULTIPLE_CALLBACK:k,ERR_STREAM_CANNOT_PIPE:B,ERR_STREAM_DESTROYED:C,ERR_STREAM_ALREADY_FINISHED:R,ERR_STREAM_NULL_VALUES:A,ERR_STREAM_WRITE_AFTER_END:f,ERR_UNKNOWN_ENCODING:E}=gn().codes,{errorOrDestroy:S}=L;u(p.prototype,O.prototype),u(p,O);function P(){}const y=w("kOnFinished");function r(le,ye,de){typeof de!="boolean"&&(de=ye instanceof Ai()),this.objectMode=!!(le&&le.objectMode),de&&(this.objectMode=this.objectMode||!!(le&&le.writableObjectMode)),this.highWaterMark=le?b(this,le,"writableHighWaterMark",de):v(!1),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;const Y=!!(le&&le.decodeStrings===!1);this.decodeStrings=!Y,this.defaultEncoding=le&&le.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=T.bind(void 0,ye),this.writecb=null,this.writelen=0,this.afterWriteTickInfo=null,s(this),this.pendingcb=0,this.constructed=!0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=!le||le.emitClose!==!1,this.autoDestroy=!le||le.autoDestroy!==!1,this.errored=null,this.closed=!1,this.closeEmitted=!1,this[y]=[]}function s(le){le.buffered=[],le.bufferedIndex=0,le.allBuffers=!0,le.allNoop=!0}r.prototype.getBuffer=function(){return i(this.buffered,this.bufferedIndex)},l(r.prototype,"bufferedRequestCount",{__proto__:null,get(){return this.buffered.length-this.bufferedIndex}});function p(le){const ye=this instanceof Ai();if(!ye&&!a(p,this))return new p(le);this._writableState=new r(le,this,ye),le&&(typeof le.write=="function"&&(this._write=le.write),typeof le.writev=="function"&&(this._writev=le.writev),typeof le.destroy=="function"&&(this._destroy=le.destroy),typeof le.final=="function"&&(this._final=le.final),typeof le.construct=="function"&&(this._construct=le.construct),le.signal&&_(le.signal,this)),O.call(this,le),L.construct(this,()=>{const de=this._writableState;de.writing||X(this,de),ne(this,de)})}l(p,U,{__proto__:null,value:function(le){return a(this,le)?!0:this!==p?!1:le&&le._writableState instanceof r}}),p.prototype.pipe=function(){S(this,new B)};function g(le,ye,de,Y){const z=le._writableState;if(typeof de=="function")Y=de,de=z.defaultEncoding;else{if(!de)de=z.defaultEncoding;else if(de!=="buffer"&&!M.isEncoding(de))throw new E(de);typeof Y!="function"&&(Y=P)}if(ye===null)throw new A;if(!z.objectMode)if(typeof ye=="string")z.decodeStrings!==!1&&(ye=M.from(ye,de),de="buffer");else if(ye instanceof M)de="buffer";else if(O._isUint8Array(ye))ye=O._uint8ArrayToBuffer(ye),de="buffer";else throw new h("chunk",["string","Buffer","Uint8Array"],ye);let V;return z.ending?V=new f:z.destroyed&&(V=new C("write")),V?(e.nextTick(Y,V),S(le,V,!0),V):(z.pendingcb++,I(le,z,ye,de,Y))}p.prototype.write=function(le,ye,de){return g(this,le,ye,de)===!0},p.prototype.cork=function(){this._writableState.corked++},p.prototype.uncork=function(){const le=this._writableState;le.corked&&(le.corked--,le.writing||X(this,le))},p.prototype.setDefaultEncoding=function(ye){if(typeof ye=="string"&&(ye=c(ye)),!M.isEncoding(ye))throw new E(ye);return this._writableState.defaultEncoding=ye,this};function I(le,ye,de,Y,z){const V=ye.objectMode?1:de.length;ye.length+=V;const ue=ye.length<ye.highWaterMark;return ue||(ye.needDrain=!0),ye.writing||ye.corked||ye.errored||!ye.constructed?(ye.buffered.push({chunk:de,encoding:Y,callback:z}),ye.allBuffers&&Y!=="buffer"&&(ye.allBuffers=!1),ye.allNoop&&z!==P&&(ye.allNoop=!1)):(ye.writelen=V,ye.writecb=z,ye.writing=!0,ye.sync=!0,le._write(de,Y,ye.onwrite),ye.sync=!1),ue&&!ye.errored&&!ye.destroyed}function x(le,ye,de,Y,z,V,ue){ye.writelen=Y,ye.writecb=ue,ye.writing=!0,ye.sync=!0,ye.destroyed?ye.onwrite(new C("write")):de?le._writev(z,ye.onwrite):le._write(z,V,ye.onwrite),ye.sync=!1}function q(le,ye,de,Y){--ye.pendingcb,Y(de),J(ye),S(le,de)}function T(le,ye){const de=le._writableState,Y=de.sync,z=de.writecb;if(typeof z!="function"){S(le,new k);return}de.writing=!1,de.writecb=null,de.length-=de.writelen,de.writelen=0,ye?(ye.stack,de.errored||(de.errored=ye),le._readableState&&!le._readableState.errored&&(le._readableState.errored=ye),Y?e.nextTick(q,le,de,ye,z):q(le,de,ye,z)):(de.buffered.length>de.bufferedIndex&&X(le,de),Y?de.afterWriteTickInfo!==null&&de.afterWriteTickInfo.cb===z?de.afterWriteTickInfo.count++:(de.afterWriteTickInfo={count:1,cb:z,stream:le,state:de},e.nextTick(D,de.afterWriteTickInfo)):W(le,de,1,z))}function D({stream:le,state:ye,count:de,cb:Y}){return ye.afterWriteTickInfo=null,W(le,ye,de,Y)}function W(le,ye,de,Y){for(!ye.ending&&!le.destroyed&&ye.length===0&&ye.needDrain&&(ye.needDrain=!1,le.emit("drain"));de-- >0;)ye.pendingcb--,Y();ye.destroyed&&J(ye),ne(le,ye)}function J(le){if(le.writing)return;for(let z=le.bufferedIndex;z<le.buffered.length;++z){var ye;const{chunk:V,callback:ue}=le.buffered[z],Te=le.objectMode?1:V.length;le.length-=Te,ue((ye=le.errored)!==null&&ye!==void 0?ye:new C("write"))}const de=le[y].splice(0);for(let z=0;z<de.length;z++){var Y;de[z]((Y=le.errored)!==null&&Y!==void 0?Y:new C("end"))}s(le)}function X(le,ye){if(ye.corked||ye.bufferProcessing||ye.destroyed||!ye.constructed)return;const{buffered:de,bufferedIndex:Y,objectMode:z}=ye,V=de.length-Y;if(!V)return;let ue=Y;if(ye.bufferProcessing=!0,V>1&&le._writev){ye.pendingcb-=V-1;const Te=ye.allNoop?P:Ce=>{for(let We=ue;We<de.length;++We)de[We].callback(Ce)},Ie=ye.allNoop&&ue===0?de:i(de,ue);Ie.allBuffers=ye.allBuffers,x(le,ye,!0,ye.length,Ie,"",Te),s(ye)}else{do{const{chunk:Te,encoding:Ie,callback:Ce}=de[ue];de[ue++]=null;const We=z?1:Te.length;x(le,ye,!1,We,Te,Ie,Ce)}while(ue<de.length&&!ye.writing);ue===de.length?s(ye):ue>256?(de.splice(0,ue),ye.bufferedIndex=0):ye.bufferedIndex=ue}ye.bufferProcessing=!1}p.prototype._write=function(le,ye,de){if(this._writev)this._writev([{chunk:le,encoding:ye}],de);else throw new m("_write()")},p.prototype._writev=null,p.prototype.end=function(le,ye,de){const Y=this._writableState;typeof le=="function"?(de=le,le=null,ye=null):typeof ye=="function"&&(de=ye,ye=null);let z;if(le!=null){const V=g(this,le,ye);V instanceof n&&(z=V)}return Y.corked&&(Y.corked=1,this.uncork()),z||(!Y.errored&&!Y.ending?(Y.ending=!0,ne(this,Y,!0),Y.ended=!0):Y.finished?z=new R("end"):Y.destroyed&&(z=new C("end"))),typeof de=="function"&&(z||Y.finished?e.nextTick(de,z):Y[y].push(de)),this};function Q(le){return le.ending&&!le.destroyed&&le.constructed&&le.length===0&&!le.errored&&le.buffered.length===0&&!le.finished&&!le.writing&&!le.errorEmitted&&!le.closeEmitted}function re(le,ye){let de=!1;function Y(z){if(de){S(le,z??k());return}if(de=!0,ye.pendingcb--,z){const V=ye[y].splice(0);for(let ue=0;ue<V.length;ue++)V[ue](z);S(le,z,ye.sync)}else Q(ye)&&(ye.prefinished=!0,le.emit("prefinish"),ye.pendingcb++,e.nextTick(me,le,ye))}ye.sync=!0,ye.pendingcb++;try{le._final(Y)}catch(z){Y(z)}ye.sync=!1}function se(le,ye){!ye.prefinished&&!ye.finalCalled&&(typeof le._final=="function"&&!ye.destroyed?(ye.finalCalled=!0,re(le,ye)):(ye.prefinished=!0,le.emit("prefinish")))}function ne(le,ye,de){Q(ye)&&(se(le,ye),ye.pendingcb===0&&(de?(ye.pendingcb++,e.nextTick((Y,z)=>{Q(z)?me(Y,z):z.pendingcb--},le,ye)):Q(ye)&&(ye.pendingcb++,me(le,ye))))}function me(le,ye){ye.pendingcb--,ye.finished=!0;const de=ye[y].splice(0);for(let Y=0;Y<de.length;Y++)de[Y]();if(le.emit("finish"),ye.autoDestroy){const Y=le._readableState;(!Y||Y.autoDestroy&&(Y.endEmitted||Y.readable===!1))&&le.destroy()}}d(p.prototype,{closed:{__proto__:null,get(){return this._writableState?this._writableState.closed:!1}},destroyed:{__proto__:null,get(){return this._writableState?this._writableState.destroyed:!1},set(le){this._writableState&&(this._writableState.destroyed=le)}},writable:{__proto__:null,get(){const le=this._writableState;return!!le&&le.writable!==!1&&!le.destroyed&&!le.errored&&!le.ending&&!le.ended},set(le){this._writableState&&(this._writableState.writable=!!le)}},writableFinished:{__proto__:null,get(){return this._writableState?this._writableState.finished:!1}},writableObjectMode:{__proto__:null,get(){return this._writableState?this._writableState.objectMode:!1}},writableBuffer:{__proto__:null,get(){return this._writableState&&this._writableState.getBuffer()}},writableEnded:{__proto__:null,get(){return this._writableState?this._writableState.ending:!1}},writableNeedDrain:{__proto__:null,get(){const le=this._writableState;return le?!le.destroyed&&!le.ending&&le.needDrain:!1}},writableHighWaterMark:{__proto__:null,get(){return this._writableState&&this._writableState.highWaterMark}},writableCorked:{__proto__:null,get(){return this._writableState?this._writableState.corked:0}},writableLength:{__proto__:null,get(){return this._writableState&&this._writableState.length}},errored:{__proto__:null,enumerable:!1,get(){return this._writableState?this._writableState.errored:null}},writableAborted:{__proto__:null,enumerable:!1,get:function(){return!!(this._writableState.writable!==!1&&(this._writableState.destroyed||this._writableState.errored)&&!this._writableState.finished)}}});const ge=L.destroy;p.prototype.destroy=function(le,ye){const de=this._writableState;return!de.destroyed&&(de.bufferedIndex<de.buffered.length||de[y].length)&&e.nextTick(J,de),ge.call(this,le,ye),this},p.prototype._undestroy=L.undestroy,p.prototype._destroy=function(le,ye){ye(le)},p.prototype[F.captureRejectionSymbol]=function(le){this.destroy(le)};let Ae;function pe(){return Ae===void 0&&(Ae={}),Ae}return p.fromWeb=function(le,ye){return pe().newStreamWritableFromWritableStream(le,ye)},p.toWeb=function(le){return pe().newWritableStreamFromStreamWritable(le)},lc}var cc,ty;function Tk(){if(ty)return cc;ty=1;const e=wr(),i=Sr(),{isReadable:n,isWritable:a,isIterable:l,isNodeStream:d,isReadableNodeStream:u,isWritableNodeStream:c,isDuplexNodeStream:w}=Lr(),U=_r(),{AbortError:F,codes:{ERR_INVALID_ARG_TYPE:O,ERR_INVALID_RETURN_VALUE:M}}=gn(),{destroyer:L}=rs(),_=Ai(),b=za(),{createDeferredPromise:v}=Ei(),h=Vg(),m=globalThis.Blob||i.Blob,k=typeof m<"u"?function(S){return S instanceof m}:function(S){return!1},B=globalThis.AbortController||Xc.AbortController,{FunctionPrototypeCall:C}=Kt();class R extends _{constructor(S){super(S),S?.readable===!1&&(this._readableState.readable=!1,this._readableState.ended=!0,this._readableState.endEmitted=!0),S?.writable===!1&&(this._writableState.writable=!1,this._writableState.ending=!0,this._writableState.ended=!0,this._writableState.finished=!0)}}cc=function E(S,P){if(w(S))return S;if(u(S))return f({readable:S});if(c(S))return f({writable:S});if(d(S))return f({writable:!1,readable:!1});if(typeof S=="function"){const{value:r,write:s,final:p,destroy:g}=A(S);if(l(r))return h(R,r,{objectMode:!0,write:s,final:p,destroy:g});const I=r?.then;if(typeof I=="function"){let x;const q=C(I,r,T=>{if(T!=null)throw new M("nully","body",T)},T=>{L(x,T)});return x=new R({objectMode:!0,readable:!1,write:s,final(T){p(async()=>{try{await q,e.nextTick(T,null)}catch(D){e.nextTick(T,D)}})},destroy:g})}throw new M("Iterable, AsyncIterable or AsyncFunction",P,r)}if(k(S))return E(S.arrayBuffer());if(l(S))return h(R,S,{objectMode:!0,writable:!1});if(typeof S?.writable=="object"||typeof S?.readable=="object"){const r=S!=null&&S.readable?u(S?.readable)?S?.readable:E(S.readable):void 0,s=S!=null&&S.writable?c(S?.writable)?S?.writable:E(S.writable):void 0;return f({readable:r,writable:s})}const y=S?.then;if(typeof y=="function"){let r;return C(y,S,s=>{s!=null&&r.push(s),r.push(null)},s=>{L(r,s)}),r=new R({objectMode:!0,writable:!1,read(){}})}throw new O(P,["Blob","ReadableStream","WritableStream","Stream","Iterable","AsyncIterable","Function","{ readable, writable } pair","Promise"],S)};function A(E){let{promise:S,resolve:P}=v();const y=new B,r=y.signal;return{value:E((async function*(){for(;;){const p=S;S=null;const{chunk:g,done:I,cb:x}=await p;if(e.nextTick(x),I)return;if(r.aborted)throw new F(void 0,{cause:r.reason});({promise:S,resolve:P}=v()),yield g}})(),{signal:r}),write(p,g,I){const x=P;P=null,x({chunk:p,done:!1,cb:I})},final(p){const g=P;P=null,g({done:!0,cb:p})},destroy(p,g){y.abort(),g(p)}}}function f(E){const S=E.readable&&typeof E.readable.read!="function"?b.wrap(E.readable):E.readable,P=E.writable;let y=!!n(S),r=!!a(P),s,p,g,I,x;function q(T){const D=I;I=null,D?D(T):T?x.destroy(T):!y&&!r&&x.destroy()}return x=new R({readableObjectMode:!!(S!=null&&S.readableObjectMode),writableObjectMode:!!(P!=null&&P.writableObjectMode),readable:y,writable:r}),r&&(U(P,T=>{r=!1,T&&L(S,T),q(T)}),x._write=function(T,D,W){P.write(T,D)?W():s=W},x._final=function(T){P.end(),p=T},P.on("drain",function(){if(s){const T=s;s=null,T()}}),P.on("finish",function(){if(p){const T=p;p=null,T()}})),y&&(U(S,T=>{y=!1,T&&L(S,T),q(T)}),S.on("readable",function(){if(g){const T=g;g=null,T()}}),S.on("end",function(){x.push(null)}),x._read=function(){for(;;){const T=S.read();if(T===null){g=x._read;return}if(!x.push(T))return}}),x._destroy=function(T,D){!T&&I!==null&&(T=new F),g=null,s=null,p=null,I===null?D(T):(I=D,L(P,T),L(S,T))},x}return cc}var fc,ny;function Ai(){if(ny)return fc;ny=1;const{ObjectDefineProperties:e,ObjectGetOwnPropertyDescriptor:i,ObjectKeys:n,ObjectSetPrototypeOf:a}=Kt();fc=u;const l=za(),d=Zg();a(u.prototype,l.prototype),a(u,l);{const F=n(d.prototype);for(let O=0;O<F.length;O++){const M=F[O];u.prototype[M]||(u.prototype[M]=d.prototype[M])}}function u(F){if(!(this instanceof u))return new u(F);l.call(this,F),d.call(this,F),F?(this.allowHalfOpen=F.allowHalfOpen!==!1,F.readable===!1&&(this._readableState.readable=!1,this._readableState.ended=!0,this._readableState.endEmitted=!0),F.writable===!1&&(this._writableState.writable=!1,this._writableState.ending=!0,this._writableState.ended=!0,this._writableState.finished=!0)):this.allowHalfOpen=!0}e(u.prototype,{writable:{__proto__:null,...i(d.prototype,"writable")},writableHighWaterMark:{__proto__:null,...i(d.prototype,"writableHighWaterMark")},writableObjectMode:{__proto__:null,...i(d.prototype,"writableObjectMode")},writableBuffer:{__proto__:null,...i(d.prototype,"writableBuffer")},writableLength:{__proto__:null,...i(d.prototype,"writableLength")},writableFinished:{__proto__:null,...i(d.prototype,"writableFinished")},writableCorked:{__proto__:null,...i(d.prototype,"writableCorked")},writableEnded:{__proto__:null,...i(d.prototype,"writableEnded")},writableNeedDrain:{__proto__:null,...i(d.prototype,"writableNeedDrain")},destroyed:{__proto__:null,get(){return this._readableState===void 0||this._writableState===void 0?!1:this._readableState.destroyed&&this._writableState.destroyed},set(F){this._readableState&&this._writableState&&(this._readableState.destroyed=F,this._writableState.destroyed=F)}}});let c;function w(){return c===void 0&&(c={}),c}u.fromWeb=function(F,O){return w().newStreamDuplexFromReadableWritablePair(F,O)},u.toWeb=function(F){return w().newReadableWritablePairFromDuplex(F)};let U;return u.from=function(F){return U||(U=Tk()),U(F,"body")},fc}var dc,iy;function Qg(){if(iy)return dc;iy=1;const{ObjectSetPrototypeOf:e,Symbol:i}=Kt();dc=u;const{ERR_METHOD_NOT_IMPLEMENTED:n}=gn().codes,a=Ai(),{getHighWaterMark:l}=tf();e(u.prototype,a.prototype),e(u,a);const d=i("kCallback");function u(U){if(!(this instanceof u))return new u(U);const F=U?l(this,U,"readableHighWaterMark",!0):null;F===0&&(U={...U,highWaterMark:null,readableHighWaterMark:F,writableHighWaterMark:U.writableHighWaterMark||0}),a.call(this,U),this._readableState.sync=!1,this[d]=null,U&&(typeof U.transform=="function"&&(this._transform=U.transform),typeof U.flush=="function"&&(this._flush=U.flush)),this.on("prefinish",w)}function c(U){typeof this._flush=="function"&&!this.destroyed?this._flush((F,O)=>{if(F){U?U(F):this.destroy(F);return}O!=null&&this.push(O),this.push(null),U&&U()}):(this.push(null),U&&U())}function w(){this._final!==c&&c.call(this)}return u.prototype._final=c,u.prototype._transform=function(U,F,O){throw new n("_transform()")},u.prototype._write=function(U,F,O){const M=this._readableState,L=this._writableState,_=M.length;this._transform(U,F,(b,v)=>{if(b){O(b);return}v!=null&&this.push(v),L.ended||_===M.length||M.length<M.highWaterMark?O():this[d]=O})},u.prototype._read=function(){if(this[d]){const U=this[d];this[d]=null,U()}},dc}var hc,ry;function Xg(){if(ry)return hc;ry=1;const{ObjectSetPrototypeOf:e}=Kt();hc=n;const i=Qg();e(n.prototype,i.prototype),e(n,i);function n(a){if(!(this instanceof n))return new n(a);i.call(this,a)}return n.prototype._transform=function(a,l,d){d(null,a)},hc}var pc,sy;function nf(){if(sy)return pc;sy=1;const e=wr(),{ArrayIsArray:i,Promise:n,SymbolAsyncIterator:a}=Kt(),l=_r(),{once:d}=Ei(),u=rs(),c=Ai(),{aggregateTwoErrors:w,codes:{ERR_INVALID_ARG_TYPE:U,ERR_INVALID_RETURN_VALUE:F,ERR_MISSING_ARGS:O,ERR_STREAM_DESTROYED:M,ERR_STREAM_PREMATURE_CLOSE:L},AbortError:_}=gn(),{validateFunction:b,validateAbortSignal:v}=xa(),{isIterable:h,isReadable:m,isReadableNodeStream:k,isNodeStream:B}=Lr(),C=globalThis.AbortController||Xc.AbortController;let R,A;function f(g,I,x){let q=!1;g.on("close",()=>{q=!0});const T=l(g,{readable:I,writable:x},D=>{q=!D});return{destroy:D=>{q||(q=!0,u.destroyer(g,D||new M("pipe")))},cleanup:T}}function E(g){return b(g[g.length-1],"streams[stream.length - 1]"),g.pop()}function S(g){if(h(g))return g;if(k(g))return P(g);throw new U("val",["Readable","Iterable","AsyncIterable"],g)}async function*P(g){A||(A=za()),yield*A.prototype[a].call(g)}async function y(g,I,x,{end:q}){let T,D=null;const W=Q=>{if(Q&&(T=Q),D){const re=D;D=null,re()}},J=()=>new n((Q,re)=>{T?re(T):D=()=>{T?re(T):Q()}});I.on("drain",W);const X=l(I,{readable:!1},W);try{I.writableNeedDrain&&await J();for await(const Q of g)I.write(Q)||await J();q&&I.end(),await J(),x()}catch(Q){x(T!==Q?w(T,Q):Q)}finally{X(),I.off("drain",W)}}function r(...g){return s(g,d(E(g)))}function s(g,I,x){if(g.length===1&&i(g[0])&&(g=g[0]),g.length<2)throw new O("streams");const q=new C,T=q.signal,D=x?.signal,W=[];v(D,"options.signal");function J(){me(new _)}D?.addEventListener("abort",J);let X,Q;const re=[];let se=0;function ne(pe){me(pe,--se===0)}function me(pe,le){if(pe&&(!X||X.code==="ERR_STREAM_PREMATURE_CLOSE")&&(X=pe),!(!X&&!le)){for(;re.length;)re.shift()(X);D?.removeEventListener("abort",J),q.abort(),le&&(X||W.forEach(ye=>ye()),e.nextTick(I,X,Q))}}let ge;for(let pe=0;pe<g.length;pe++){const le=g[pe],ye=pe<g.length-1,de=pe>0,Y=ye||x?.end!==!1,z=pe===g.length-1;if(B(le)){let V=function(ue){ue&&ue.name!=="AbortError"&&ue.code!=="ERR_STREAM_PREMATURE_CLOSE"&&ne(ue)};if(Y){const{destroy:ue,cleanup:Te}=f(le,ye,de);re.push(ue),m(le)&&z&&W.push(Te)}le.on("error",V),m(le)&&z&&W.push(()=>{le.removeListener("error",V)})}if(pe===0)if(typeof le=="function"){if(ge=le({signal:T}),!h(ge))throw new F("Iterable, AsyncIterable or Stream","source",ge)}else h(le)||k(le)?ge=le:ge=c.from(le);else if(typeof le=="function")if(ge=S(ge),ge=le(ge,{signal:T}),ye){if(!h(ge,!0))throw new F("AsyncIterable",`transform[${pe-1}]`,ge)}else{var Ae;R||(R=Xg());const V=new R({objectMode:!0}),ue=(Ae=ge)===null||Ae===void 0?void 0:Ae.then;if(typeof ue=="function")se++,ue.call(ge,Ce=>{Q=Ce,Ce!=null&&V.write(Ce),Y&&V.end(),e.nextTick(ne)},Ce=>{V.destroy(Ce),e.nextTick(ne,Ce)});else if(h(ge,!0))se++,y(ge,V,ne,{end:Y});else throw new F("AsyncIterable or Promise","destination",ge);ge=V;const{destroy:Te,cleanup:Ie}=f(ge,!1,!0);re.push(Te),z&&W.push(Ie)}else if(B(le)){if(k(ge)){se+=2;const V=p(ge,le,ne,{end:Y});m(le)&&z&&W.push(V)}else if(h(ge))se++,y(ge,le,ne,{end:Y});else throw new U("val",["Readable","Iterable","AsyncIterable"],ge);ge=le}else ge=c.from(le)}return(T!=null&&T.aborted||D!=null&&D.aborted)&&e.nextTick(J),ge}function p(g,I,x,{end:q}){let T=!1;return I.on("close",()=>{T||x(new L)}),g.pipe(I,{end:q}),q?g.once("end",()=>{T=!0,I.end()}):x(),l(g,{readable:!0,writable:!1},D=>{const W=g._readableState;D&&D.code==="ERR_STREAM_PREMATURE_CLOSE"&&W&&W.ended&&!W.errored&&!W.errorEmitted?g.once("end",x).once("error",x):x(D)}),l(I,{readable:!1,writable:!0},x)}return pc={pipelineImpl:s,pipeline:r},pc}var mc,oy;function vk(){if(oy)return mc;oy=1;const{pipeline:e}=nf(),i=Ai(),{destroyer:n}=rs(),{isNodeStream:a,isReadable:l,isWritable:d}=Lr(),{AbortError:u,codes:{ERR_INVALID_ARG_VALUE:c,ERR_MISSING_ARGS:w}}=gn();return mc=function(...F){if(F.length===0)throw new w("streams");if(F.length===1)return i.from(F[0]);const O=[...F];if(typeof F[0]=="function"&&(F[0]=i.from(F[0])),typeof F[F.length-1]=="function"){const R=F.length-1;F[R]=i.from(F[R])}for(let R=0;R<F.length;++R)if(a(F[R])){if(R<F.length-1&&!l(F[R]))throw new c(`streams[${R}]`,O[R],"must be readable");if(R>0&&!d(F[R]))throw new c(`streams[${R}]`,O[R],"must be writable")}let M,L,_,b,v;function h(R){const A=b;b=null,A?A(R):R?v.destroy(R):!C&&!B&&v.destroy()}const m=F[0],k=e(F,h),B=!!d(m),C=!!l(k);return v=new i({writableObjectMode:!!(m!=null&&m.writableObjectMode),readableObjectMode:!!(k!=null&&k.writableObjectMode),writable:B,readable:C}),B&&(v._write=function(R,A,f){m.write(R,A)?f():M=f},v._final=function(R){m.end(),L=R},m.on("drain",function(){if(M){const R=M;M=null,R()}}),k.on("finish",function(){if(L){const R=L;L=null,R()}})),C&&(k.on("readable",function(){if(_){const R=_;_=null,R()}}),k.on("end",function(){v.push(null)}),v._read=function(){for(;;){const R=k.read();if(R===null){_=v._read;return}if(!v.push(R))return}}),v._destroy=function(R,A){!R&&b!==null&&(R=new u),_=null,M=null,L=null,b===null?A(R):(b=A,n(k,R))},v},mc}var yc,ay;function Yg(){if(ay)return yc;ay=1;const{ArrayPrototypePop:e,Promise:i}=Kt(),{isIterable:n,isNodeStream:a}=Lr(),{pipelineImpl:l}=nf(),{finished:d}=_r();function u(...c){return new i((w,U)=>{let F,O;const M=c[c.length-1];if(M&&typeof M=="object"&&!a(M)&&!n(M)){const L=e(c);F=L.signal,O=L.end}l(c,(L,_)=>{L?U(L):w(_)},{signal:F,end:O})})}return yc={finished:d,pipeline:u},yc}var uy;function Sk(){if(uy)return Hl.exports;uy=1;const{Buffer:e}=Sr(),{ObjectDefineProperty:i,ObjectKeys:n,ReflectApply:a}=Kt(),{promisify:{custom:l}}=Ei(),{streamReturningOperators:d,promiseReturningOperators:u}=pk(),{codes:{ERR_ILLEGAL_CONSTRUCTOR:c}}=gn(),w=vk(),{pipeline:U}=nf(),{destroyer:F}=rs(),O=_r(),M=Yg(),L=Lr(),_=Hl.exports=$c().Stream;_.isDisturbed=L.isDisturbed,_.isErrored=L.isErrored,_.isReadable=L.isReadable,_.Readable=za();for(const v of n(d)){let m=function(...k){if(new.target)throw c();return _.Readable.from(a(h,this,k))};const h=d[v];i(m,"name",{__proto__:null,value:h.name}),i(m,"length",{__proto__:null,value:h.length}),i(_.Readable.prototype,v,{__proto__:null,value:m,enumerable:!1,configurable:!0,writable:!0})}for(const v of n(u)){let m=function(...k){if(new.target)throw c();return a(h,this,k)};const h=u[v];i(m,"name",{__proto__:null,value:h.name}),i(m,"length",{__proto__:null,value:h.length}),i(_.Readable.prototype,v,{__proto__:null,value:m,enumerable:!1,configurable:!0,writable:!0})}_.Writable=Zg(),_.Duplex=Ai(),_.Transform=Qg(),_.PassThrough=Xg(),_.pipeline=U;const{addAbortSignal:b}=ef();return _.addAbortSignal=b,_.finished=O,_.destroy=F,_.compose=w,i(_,"promises",{__proto__:null,configurable:!0,enumerable:!0,get(){return M}}),i(U,l,{__proto__:null,enumerable:!0,get(){return M.pipeline}}),i(O,l,{__proto__:null,enumerable:!0,get(){return M.finished}}),_.Stream=_,_._isUint8Array=function(h){return h instanceof Uint8Array},_._uint8ArrayToBuffer=function(h){return e.from(h.buffer,h.byteOffset,h.byteLength)},Hl.exports}var ly;function wk(){return ly||(ly=1,(function(e){const i=Sk(),n=Yg(),a=i.Readable.destroy;e.exports=i.Readable,e.exports._uint8ArrayToBuffer=i._uint8ArrayToBuffer,e.exports._isUint8Array=i._isUint8Array,e.exports.isDisturbed=i.isDisturbed,e.exports.isErrored=i.isErrored,e.exports.isReadable=i.isReadable,e.exports.Readable=i.Readable,e.exports.Writable=i.Writable,e.exports.Duplex=i.Duplex,e.exports.Transform=i.Transform,e.exports.PassThrough=i.PassThrough,e.exports.addAbortSignal=i.addAbortSignal,e.exports.finished=i.finished,e.exports.destroy=i.destroy,e.exports.destroy=a,e.exports.pipeline=i.pipeline,e.exports.compose=i.compose,Object.defineProperty(i,"promises",{configurable:!0,enumerable:!0,get(){return n}}),e.exports.Stream=i.Stream,e.exports.default=e.exports})(Gl)),Gl.exports}var cy;function Lk(){if(cy)return na;cy=1,Object.defineProperty(na,"__esModule",{value:!0});const e=wk();function i(n){n=Object.assign({},n);const a=n.array;let l=n.encoding;const d=l==="buffer";let u=!1;a?u=!(l||d):l=l||"utf8",d&&(l=void 0);let c=0;const w=[],U=new e.PassThrough({objectMode:u});return l&&U.setEncoding(l),U.on("data",F=>{w.push(F),u?c=w.length:c+=F.length}),U.getBufferedValue=()=>a?w:d?Buffer.concat(w,c):w.join(""),U.getBufferedLength=()=>c,U}return na.default=i,na}var fy;function $g(){if(fy)return ei;fy=1;var e=ei&&ei.__importDefault||function(d){return d&&d.__esModule?d:{default:d}};Object.defineProperty(ei,"__esModule",{value:!0}),ei.array=ei.buffer=ei.getStream=void 0;const i=e(Lk());function n(d,u={}){if(!d)return Promise.reject(new Error("Expected a stream"));u=Object.assign({maxBuffer:1/0},u);const c=u.maxBuffer||1/0;let w,U;const F=new Promise((O,M)=>{const L=_=>{_&&(_.bufferedData=w.getBufferedValue()),M(_)};w=(0,i.default)(u),d.once("error",L),d.pipe(w),w.on("data",()=>{w.getBufferedLength()>c&&M(new Error("maxBuffer exceeded"))}),w.once("error",L),w.on("end",O),U=()=>{d.unpipe&&d.unpipe(w)}});return F.then(U,U),F.then(()=>w.getBufferedValue())}ei.getStream=n;function a(d,u={}){n(d,Object.assign({},u,{encoding:"buffer"}))}ei.buffer=a;function l(d,u={}){n(d,Object.assign({},u,{array:!0}))}return ei.array=l,ei}var Yt={};const _k={},kk=Object.freeze(Object.defineProperty({__proto__:null,default:_k},Symbol.toStringTag,{value:"Module"})),Nk=Nc(kk);var Wi={},dy;function Ok(){if(dy)return Wi;dy=1,Object.defineProperty(Wi,"__esModule",{value:!0});var e=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(u){return typeof u}:function(u){return u&&typeof Symbol=="function"&&u.constructor===Symbol&&u!==Symbol.prototype?"symbol":typeof u},i=typeof window<"u"&&typeof window.document<"u",n=typeof process<"u"&&process.versions!=null&&process.versions.node!=null,a=(typeof self>"u"?"undefined":e(self))==="object"&&self.constructor&&self.constructor.name==="DedicatedWorkerGlobalScope",l=typeof window<"u"&&window.name==="nodejs"||typeof navigator<"u"&&(navigator.userAgent.includes("Node.js")||navigator.userAgent.includes("jsdom")),d=typeof Deno<"u"&&typeof Deno.version<"u"&&typeof Deno.version.deno<"u";return Wi.isBrowser=i,Wi.isWebWorker=a,Wi.isNode=n,Wi.isJsDom=l,Wi.isDeno=d,Wi}var gc={},Js={},hy;function Ck(){if(hy)return Js;hy=1,Object.defineProperty(Js,"__esModule",{value:!0}),Js.DefaultMap=void 0;class e extends Map{constructor(n,a){super(a),this._defaultFunc=n}get(n){let a=super.get(n);if(a===void 0){if(this.has(n))return a;a=this._defaultFunc(n),this.set(n,a)}return a}update(n,a){const l=a(this.get(n));return this.set(n,l),l}}return Js.DefaultMap=e,Js}var py;function Ek(){return py||(py=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.DefaultMap=e.exceptionToError=e.exceptionToString=e.filterUndefined=e.mapFilterUndefined=e.hasOwnProperty=e.isEnumValue=e.definedMap=e.reduceTwo=e.sleep=e.dontAwait=e.defined=e.assertNever=e.assert=e.panic=e.proveNever=e.proveType=void 0;function i(m){}e.proveType=i;function n(m,k,B){return console.trace(k),B}e.proveNever=n;function a(m="This should not happen"){console.trace(m);debugger;throw new Error(m)}e.panic=a;function l(m,k="Assertion failed"){if(!m)return a(k)}e.assert=l;function d(m,k="`never` happened"){return a(k)}e.assertNever=d;function u(m,k){return m===void 0?a("Value was undefined but should be defined"+(k!==void 0?` because: ${k}`:"")):m}e.defined=u;function c(m){m instanceof Promise&&m.catch(k=>{throw console.trace("Unhandled error from unawaited promise",k),k})}e.dontAwait=c;function w(m){return new Promise(k=>{setTimeout(k,m)})}e.sleep=w;function U(m,k,B){return m===void 0?k:k===void 0?m:B(m,k)}e.reduceTwo=U;function F(m,k){if(m!==void 0)return k(m)}e.definedMap=F;function O(m,k){return Object.keys(m).map(B=>m[B]).some(B=>B===k)}e.isEnumValue=O;function M(m,k){return m==null?!1:Object.prototype.hasOwnProperty.call(m,k)}e.hasOwnProperty=M;function L(m,k){const B=[];let C=0;for(const R of m){const A=k(R,C);C+=1,A!==void 0&&B.push(A)}return B}e.mapFilterUndefined=L;function _(m){const k=[];for(const B of m)B!==void 0&&k.push(B);return k}e.filterUndefined=_;function b(m){if(m===void 0)return"";try{return m.toString()}catch(k){try{return`Exception can't be stringified: ${b(k)}`}catch{return"Exception can't be stringified"}}}e.exceptionToString=b;function v(m){return m instanceof Error?m:new Error(b(m))}e.exceptionToError=v;var h=Ck();Object.defineProperty(e,"DefaultMap",{enumerable:!0,get:function(){return h.DefaultMap}})})(gc)),gc}var bc,my;function Ak(){if(my)return bc;my=1,bc=a;var e=/^(?:\w+:)?\/\/(\S+)$/,i=/^localhost[\:?\d]*(?:[^\:?\d]\S*)?$/,n=/^[^\s\.]+\.\S{2,}$/;function a(l){if(typeof l!="string")return!1;var d=l.match(e);if(!d)return!1;var u=d[1];return u?!!(i.test(u)||n.test(u)):!1}return bc}var ua={exports:{}},yy;function Fk(){return yy||(yy=1,(function(e,i){var n=typeof globalThis<"u"&&globalThis||typeof self<"u"&&self||typeof Dn<"u"&&Dn,a=(function(){function d(){this.fetch=!1,this.DOMException=n.DOMException}return d.prototype=n,new d})();(function(d){(function(u){var c=typeof d<"u"&&d||typeof self<"u"&&self||typeof Dn<"u"&&Dn||{},w={searchParams:"URLSearchParams"in c,iterable:"Symbol"in c&&"iterator"in Symbol,blob:"FileReader"in c&&"Blob"in c&&(function(){try{return new Blob,!0}catch{return!1}})(),formData:"FormData"in c,arrayBuffer:"ArrayBuffer"in c};function U(p){return p&&DataView.prototype.isPrototypeOf(p)}if(w.arrayBuffer)var F=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],O=ArrayBuffer.isView||function(p){return p&&F.indexOf(Object.prototype.toString.call(p))>-1};function M(p){if(typeof p!="string"&&(p=String(p)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(p)||p==="")throw new TypeError('Invalid character in header field name: "'+p+'"');return p.toLowerCase()}function L(p){return typeof p!="string"&&(p=String(p)),p}function _(p){var g={next:function(){var I=p.shift();return{done:I===void 0,value:I}}};return w.iterable&&(g[Symbol.iterator]=function(){return g}),g}function b(p){this.map={},p instanceof b?p.forEach(function(g,I){this.append(I,g)},this):Array.isArray(p)?p.forEach(function(g){if(g.length!=2)throw new TypeError("Headers constructor: expected name/value pair to be length 2, found"+g.length);this.append(g[0],g[1])},this):p&&Object.getOwnPropertyNames(p).forEach(function(g){this.append(g,p[g])},this)}b.prototype.append=function(p,g){p=M(p),g=L(g);var I=this.map[p];this.map[p]=I?I+", "+g:g},b.prototype.delete=function(p){delete this.map[M(p)]},b.prototype.get=function(p){return p=M(p),this.has(p)?this.map[p]:null},b.prototype.has=function(p){return this.map.hasOwnProperty(M(p))},b.prototype.set=function(p,g){this.map[M(p)]=L(g)},b.prototype.forEach=function(p,g){for(var I in this.map)this.map.hasOwnProperty(I)&&p.call(g,this.map[I],I,this)},b.prototype.keys=function(){var p=[];return this.forEach(function(g,I){p.push(I)}),_(p)},b.prototype.values=function(){var p=[];return this.forEach(function(g){p.push(g)}),_(p)},b.prototype.entries=function(){var p=[];return this.forEach(function(g,I){p.push([I,g])}),_(p)},w.iterable&&(b.prototype[Symbol.iterator]=b.prototype.entries);function v(p){if(!p._noBody){if(p.bodyUsed)return Promise.reject(new TypeError("Already read"));p.bodyUsed=!0}}function h(p){return new Promise(function(g,I){p.onload=function(){g(p.result)},p.onerror=function(){I(p.error)}})}function m(p){var g=new FileReader,I=h(g);return g.readAsArrayBuffer(p),I}function k(p){var g=new FileReader,I=h(g),x=/charset=([A-Za-z0-9_-]+)/.exec(p.type),q=x?x[1]:"utf-8";return g.readAsText(p,q),I}function B(p){for(var g=new Uint8Array(p),I=new Array(g.length),x=0;x<g.length;x++)I[x]=String.fromCharCode(g[x]);return I.join("")}function C(p){if(p.slice)return p.slice(0);var g=new Uint8Array(p.byteLength);return g.set(new Uint8Array(p)),g.buffer}function R(){return this.bodyUsed=!1,this._initBody=function(p){this.bodyUsed=this.bodyUsed,this._bodyInit=p,p?typeof p=="string"?this._bodyText=p:w.blob&&Blob.prototype.isPrototypeOf(p)?this._bodyBlob=p:w.formData&&FormData.prototype.isPrototypeOf(p)?this._bodyFormData=p:w.searchParams&&URLSearchParams.prototype.isPrototypeOf(p)?this._bodyText=p.toString():w.arrayBuffer&&w.blob&&U(p)?(this._bodyArrayBuffer=C(p.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):w.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(p)||O(p))?this._bodyArrayBuffer=C(p):this._bodyText=p=Object.prototype.toString.call(p):(this._noBody=!0,this._bodyText=""),this.headers.get("content-type")||(typeof p=="string"?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):w.searchParams&&URLSearchParams.prototype.isPrototypeOf(p)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},w.blob&&(this.blob=function(){var p=v(this);if(p)return p;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))}),this.arrayBuffer=function(){if(this._bodyArrayBuffer){var p=v(this);return p||(ArrayBuffer.isView(this._bodyArrayBuffer)?Promise.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength)):Promise.resolve(this._bodyArrayBuffer))}else{if(w.blob)return this.blob().then(m);throw new Error("could not read as ArrayBuffer")}},this.text=function(){var p=v(this);if(p)return p;if(this._bodyBlob)return k(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(B(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},w.formData&&(this.formData=function(){return this.text().then(S)}),this.json=function(){return this.text().then(JSON.parse)},this}var A=["CONNECT","DELETE","GET","HEAD","OPTIONS","PATCH","POST","PUT","TRACE"];function f(p){var g=p.toUpperCase();return A.indexOf(g)>-1?g:p}function E(p,g){if(!(this instanceof E))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');g=g||{};var I=g.body;if(p instanceof E){if(p.bodyUsed)throw new TypeError("Already read");this.url=p.url,this.credentials=p.credentials,g.headers||(this.headers=new b(p.headers)),this.method=p.method,this.mode=p.mode,this.signal=p.signal,!I&&p._bodyInit!=null&&(I=p._bodyInit,p.bodyUsed=!0)}else this.url=String(p);if(this.credentials=g.credentials||this.credentials||"same-origin",(g.headers||!this.headers)&&(this.headers=new b(g.headers)),this.method=f(g.method||this.method||"GET"),this.mode=g.mode||this.mode||null,this.signal=g.signal||this.signal||(function(){if("AbortController"in c){var T=new AbortController;return T.signal}})(),this.referrer=null,(this.method==="GET"||this.method==="HEAD")&&I)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(I),(this.method==="GET"||this.method==="HEAD")&&(g.cache==="no-store"||g.cache==="no-cache")){var x=/([?&])_=[^&]*/;if(x.test(this.url))this.url=this.url.replace(x,"$1_="+new Date().getTime());else{var q=/\?/;this.url+=(q.test(this.url)?"&":"?")+"_="+new Date().getTime()}}}E.prototype.clone=function(){return new E(this,{body:this._bodyInit})};function S(p){var g=new FormData;return p.trim().split("&").forEach(function(I){if(I){var x=I.split("="),q=x.shift().replace(/\+/g," "),T=x.join("=").replace(/\+/g," ");g.append(decodeURIComponent(q),decodeURIComponent(T))}}),g}function P(p){var g=new b,I=p.replace(/\r?\n[\t ]+/g," ");return I.split("\r").map(function(x){return x.indexOf(`
949
+ `);D.push("");const W={lines:D,annotations:[]};return new Map([[this._options.outputFilename,W]])}return[x,I]}run(){return l(this,void 0,void 0,function*(){const I=this.preRun();if(!Array.isArray(I))return I;const[x,q]=I,T=yield this.makeGraph(x);return this.renderGraph(q,T)})}runSync(){const I=this.preRun();if(!Array.isArray(I))return I;const[x,q]=I,T=this.makeGraphSync(x);return this.renderGraph(q,T)}renderGraph(I,x){return this._options.noRender?this.makeSimpleTextResult(["Done.",""]):I.renderGraphAndSerialize(x,this._options.outputFilename,this._options.alphabetizeProperties,this._options.leadingComments,this._options.rendererOptions,this._options.indentation)}};function S(g){return l(this,void 0,void 0,function*(){return yield new E(g).run()})}e.quicktypeMultiFile=S;function P(g){return new E(g).runSync()}e.quicktypeMultiFileSync=P;function y(g,I){return{line:g.line+I,column:g.column}}function r(g,I){return{start:y(g.start,I),end:y(g.end,I)}}function s(g){if(g.size<=1){const q=(0,d.mapFirst)(g);return q===void 0?{lines:[],annotations:[]}:q}let I=[],x=[];for(const[q,T]of g){const D=I.length+2;I=I.concat([`// ${q}`,""],T.lines),x=x.concat(T.annotations.map(W=>({annotation:W.annotation,span:r(W.span,D)})))}return{lines:I,annotations:x}}e.combineRenderResults=s;function p(g){return l(this,void 0,void 0,function*(){const I=yield S(g);return s(I)})}e.quicktype=p})(Hn)),Hn}var ei={},na={},Gl={exports:{}},Hl={exports:{}},Kl={},ia={};var Im;function Kg(){return Im||(Im=1,ia.read=function(e,i,n,a,l){var d,u,c=l*8-a-1,w=(1<<c)-1,U=w>>1,F=-7,O=n?l-1:0,M=n?-1:1,L=e[i+O];for(O+=M,d=L&(1<<-F)-1,L>>=-F,F+=c;F>0;d=d*256+e[i+O],O+=M,F-=8);for(u=d&(1<<-F)-1,d>>=-F,F+=a;F>0;u=u*256+e[i+O],O+=M,F-=8);if(d===0)d=1-U;else{if(d===w)return u?NaN:(L?-1:1)*(1/0);u=u+Math.pow(2,a),d=d-U}return(L?-1:1)*u*Math.pow(2,d-a)},ia.write=function(e,i,n,a,l,d){var u,c,w,U=d*8-l-1,F=(1<<U)-1,O=F>>1,M=l===23?Math.pow(2,-24)-Math.pow(2,-77):0,L=a?0:d-1,_=a?1:-1,b=i<0||i===0&&1/i<0?1:0;for(i=Math.abs(i),isNaN(i)||i===1/0?(c=isNaN(i)?1:0,u=F):(u=Math.floor(Math.log(i)/Math.LN2),i*(w=Math.pow(2,-u))<1&&(u--,w*=2),u+O>=1?i+=M/w:i+=M*Math.pow(2,1-O),i*w>=2&&(u++,w/=2),u+O>=F?(c=0,u=F):u+O>=1?(c=(i*w-1)*Math.pow(2,l),u=u+O):(c=i*Math.pow(2,O-1)*Math.pow(2,l),u=0));l>=8;e[n+L]=c&255,L+=_,c/=256,l-=8);for(u=u<<l|c,U+=l;U>0;e[n+L]=u&255,L+=_,u/=256,U-=8);e[n+L-_]|=b*128}),ia}var Rm;function Sr(){return Rm||(Rm=1,(function(e){const i=Jc(),n=Kg(),a=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;e.Buffer=c,e.SlowBuffer=m,e.INSPECT_MAX_BYTES=50;const l=2147483647;e.kMaxLength=l,c.TYPED_ARRAY_SUPPORT=d(),!c.TYPED_ARRAY_SUPPORT&&typeof console<"u"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function d(){try{const K=new Uint8Array(1),j={foo:function(){return 42}};return Object.setPrototypeOf(j,Uint8Array.prototype),Object.setPrototypeOf(K,j),K.foo()===42}catch{return!1}}Object.defineProperty(c.prototype,"parent",{enumerable:!0,get:function(){if(c.isBuffer(this))return this.buffer}}),Object.defineProperty(c.prototype,"offset",{enumerable:!0,get:function(){if(c.isBuffer(this))return this.byteOffset}});function u(K){if(K>l)throw new RangeError('The value "'+K+'" is invalid for option "size"');const j=new Uint8Array(K);return Object.setPrototypeOf(j,c.prototype),j}function c(K,j,G){if(typeof K=="number"){if(typeof j=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return O(K)}return w(K,j,G)}c.poolSize=8192;function w(K,j,G){if(typeof K=="string")return M(K,j);if(ArrayBuffer.isView(K))return _(K);if(K==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof K);if(Ce(K,ArrayBuffer)||K&&Ce(K.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(Ce(K,SharedArrayBuffer)||K&&Ce(K.buffer,SharedArrayBuffer)))return b(K,j,G);if(typeof K=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');const ce=K.valueOf&&K.valueOf();if(ce!=null&&ce!==K)return c.from(ce,j,G);const $=v(K);if($)return $;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof K[Symbol.toPrimitive]=="function")return c.from(K[Symbol.toPrimitive]("string"),j,G);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof K)}c.from=function(K,j,G){return w(K,j,G)},Object.setPrototypeOf(c.prototype,Uint8Array.prototype),Object.setPrototypeOf(c,Uint8Array);function U(K){if(typeof K!="number")throw new TypeError('"size" argument must be of type number');if(K<0)throw new RangeError('The value "'+K+'" is invalid for option "size"')}function F(K,j,G){return U(K),K<=0?u(K):j!==void 0?typeof G=="string"?u(K).fill(j,G):u(K).fill(j):u(K)}c.alloc=function(K,j,G){return F(K,j,G)};function O(K){return U(K),u(K<0?0:h(K)|0)}c.allocUnsafe=function(K){return O(K)},c.allocUnsafeSlow=function(K){return O(K)};function M(K,j){if((typeof j!="string"||j==="")&&(j="utf8"),!c.isEncoding(j))throw new TypeError("Unknown encoding: "+j);const G=k(K,j)|0;let ce=u(G);const $=ce.write(K,j);return $!==G&&(ce=ce.slice(0,$)),ce}function L(K){const j=K.length<0?0:h(K.length)|0,G=u(j);for(let ce=0;ce<j;ce+=1)G[ce]=K[ce]&255;return G}function _(K){if(Ce(K,Uint8Array)){const j=new Uint8Array(K);return b(j.buffer,j.byteOffset,j.byteLength)}return L(K)}function b(K,j,G){if(j<0||K.byteLength<j)throw new RangeError('"offset" is outside of buffer bounds');if(K.byteLength<j+(G||0))throw new RangeError('"length" is outside of buffer bounds');let ce;return j===void 0&&G===void 0?ce=new Uint8Array(K):G===void 0?ce=new Uint8Array(K,j):ce=new Uint8Array(K,j,G),Object.setPrototypeOf(ce,c.prototype),ce}function v(K){if(c.isBuffer(K)){const j=h(K.length)|0,G=u(j);return G.length===0||K.copy(G,0,0,j),G}if(K.length!==void 0)return typeof K.length!="number"||We(K.length)?u(0):L(K);if(K.type==="Buffer"&&Array.isArray(K.data))return L(K.data)}function h(K){if(K>=l)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+l.toString(16)+" bytes");return K|0}function m(K){return+K!=K&&(K=0),c.alloc(+K)}c.isBuffer=function(j){return j!=null&&j._isBuffer===!0&&j!==c.prototype},c.compare=function(j,G){if(Ce(j,Uint8Array)&&(j=c.from(j,j.offset,j.byteLength)),Ce(G,Uint8Array)&&(G=c.from(G,G.offset,G.byteLength)),!c.isBuffer(j)||!c.isBuffer(G))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(j===G)return 0;let ce=j.length,$=G.length;for(let be=0,Se=Math.min(ce,$);be<Se;++be)if(j[be]!==G[be]){ce=j[be],$=G[be];break}return ce<$?-1:$<ce?1:0},c.isEncoding=function(j){switch(String(j).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},c.concat=function(j,G){if(!Array.isArray(j))throw new TypeError('"list" argument must be an Array of Buffers');if(j.length===0)return c.alloc(0);let ce;if(G===void 0)for(G=0,ce=0;ce<j.length;++ce)G+=j[ce].length;const $=c.allocUnsafe(G);let be=0;for(ce=0;ce<j.length;++ce){let Se=j[ce];if(Ce(Se,Uint8Array))be+Se.length>$.length?(c.isBuffer(Se)||(Se=c.from(Se)),Se.copy($,be)):Uint8Array.prototype.set.call($,Se,be);else if(c.isBuffer(Se))Se.copy($,be);else throw new TypeError('"list" argument must be an Array of Buffers');be+=Se.length}return $};function k(K,j){if(c.isBuffer(K))return K.length;if(ArrayBuffer.isView(K)||Ce(K,ArrayBuffer))return K.byteLength;if(typeof K!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof K);const G=K.length,ce=arguments.length>2&&arguments[2]===!0;if(!ce&&G===0)return 0;let $=!1;for(;;)switch(j){case"ascii":case"latin1":case"binary":return G;case"utf8":case"utf-8":return z(K).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return G*2;case"hex":return G>>>1;case"base64":return Te(K).length;default:if($)return ce?-1:z(K).length;j=(""+j).toLowerCase(),$=!0}}c.byteLength=k;function B(K,j,G){let ce=!1;if((j===void 0||j<0)&&(j=0),j>this.length||((G===void 0||G>this.length)&&(G=this.length),G<=0)||(G>>>=0,j>>>=0,G<=j))return"";for(K||(K="utf8");;)switch(K){case"hex":return q(this,j,G);case"utf8":case"utf-8":return s(this,j,G);case"ascii":return I(this,j,G);case"latin1":case"binary":return x(this,j,G);case"base64":return r(this,j,G);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return T(this,j,G);default:if(ce)throw new TypeError("Unknown encoding: "+K);K=(K+"").toLowerCase(),ce=!0}}c.prototype._isBuffer=!0;function C(K,j,G){const ce=K[j];K[j]=K[G],K[G]=ce}c.prototype.swap16=function(){const j=this.length;if(j%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let G=0;G<j;G+=2)C(this,G,G+1);return this},c.prototype.swap32=function(){const j=this.length;if(j%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let G=0;G<j;G+=4)C(this,G,G+3),C(this,G+1,G+2);return this},c.prototype.swap64=function(){const j=this.length;if(j%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let G=0;G<j;G+=8)C(this,G,G+7),C(this,G+1,G+6),C(this,G+2,G+5),C(this,G+3,G+4);return this},c.prototype.toString=function(){const j=this.length;return j===0?"":arguments.length===0?s(this,0,j):B.apply(this,arguments)},c.prototype.toLocaleString=c.prototype.toString,c.prototype.equals=function(j){if(!c.isBuffer(j))throw new TypeError("Argument must be a Buffer");return this===j?!0:c.compare(this,j)===0},c.prototype.inspect=function(){let j="";const G=e.INSPECT_MAX_BYTES;return j=this.toString("hex",0,G).replace(/(.{2})/g,"$1 ").trim(),this.length>G&&(j+=" ... "),"<Buffer "+j+">"},a&&(c.prototype[a]=c.prototype.inspect),c.prototype.compare=function(j,G,ce,$,be){if(Ce(j,Uint8Array)&&(j=c.from(j,j.offset,j.byteLength)),!c.isBuffer(j))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof j);if(G===void 0&&(G=0),ce===void 0&&(ce=j?j.length:0),$===void 0&&($=0),be===void 0&&(be=this.length),G<0||ce>j.length||$<0||be>this.length)throw new RangeError("out of range index");if($>=be&&G>=ce)return 0;if($>=be)return-1;if(G>=ce)return 1;if(G>>>=0,ce>>>=0,$>>>=0,be>>>=0,this===j)return 0;let Se=be-$,Be=ce-G;const we=Math.min(Se,Be),Pe=this.slice($,be),oe=j.slice(G,ce);for(let Re=0;Re<we;++Re)if(Pe[Re]!==oe[Re]){Se=Pe[Re],Be=oe[Re];break}return Se<Be?-1:Be<Se?1:0};function R(K,j,G,ce,$){if(K.length===0)return-1;if(typeof G=="string"?(ce=G,G=0):G>2147483647?G=2147483647:G<-2147483648&&(G=-2147483648),G=+G,We(G)&&(G=$?0:K.length-1),G<0&&(G=K.length+G),G>=K.length){if($)return-1;G=K.length-1}else if(G<0)if($)G=0;else return-1;if(typeof j=="string"&&(j=c.from(j,ce)),c.isBuffer(j))return j.length===0?-1:A(K,j,G,ce,$);if(typeof j=="number")return j=j&255,typeof Uint8Array.prototype.indexOf=="function"?$?Uint8Array.prototype.indexOf.call(K,j,G):Uint8Array.prototype.lastIndexOf.call(K,j,G):A(K,[j],G,ce,$);throw new TypeError("val must be string, number or Buffer")}function A(K,j,G,ce,$){let be=1,Se=K.length,Be=j.length;if(ce!==void 0&&(ce=String(ce).toLowerCase(),ce==="ucs2"||ce==="ucs-2"||ce==="utf16le"||ce==="utf-16le")){if(K.length<2||j.length<2)return-1;be=2,Se/=2,Be/=2,G/=2}function we(oe,Re){return be===1?oe[Re]:oe.readUInt16BE(Re*be)}let Pe;if($){let oe=-1;for(Pe=G;Pe<Se;Pe++)if(we(K,Pe)===we(j,oe===-1?0:Pe-oe)){if(oe===-1&&(oe=Pe),Pe-oe+1===Be)return oe*be}else oe!==-1&&(Pe-=Pe-oe),oe=-1}else for(G+Be>Se&&(G=Se-Be),Pe=G;Pe>=0;Pe--){let oe=!0;for(let Re=0;Re<Be;Re++)if(we(K,Pe+Re)!==we(j,Re)){oe=!1;break}if(oe)return Pe}return-1}c.prototype.includes=function(j,G,ce){return this.indexOf(j,G,ce)!==-1},c.prototype.indexOf=function(j,G,ce){return R(this,j,G,ce,!0)},c.prototype.lastIndexOf=function(j,G,ce){return R(this,j,G,ce,!1)};function f(K,j,G,ce){G=Number(G)||0;const $=K.length-G;ce?(ce=Number(ce),ce>$&&(ce=$)):ce=$;const be=j.length;ce>be/2&&(ce=be/2);let Se;for(Se=0;Se<ce;++Se){const Be=parseInt(j.substr(Se*2,2),16);if(We(Be))return Se;K[G+Se]=Be}return Se}function E(K,j,G,ce){return Ie(z(j,K.length-G),K,G,ce)}function S(K,j,G,ce){return Ie(V(j),K,G,ce)}function P(K,j,G,ce){return Ie(Te(j),K,G,ce)}function y(K,j,G,ce){return Ie(ue(j,K.length-G),K,G,ce)}c.prototype.write=function(j,G,ce,$){if(G===void 0)$="utf8",ce=this.length,G=0;else if(ce===void 0&&typeof G=="string")$=G,ce=this.length,G=0;else if(isFinite(G))G=G>>>0,isFinite(ce)?(ce=ce>>>0,$===void 0&&($="utf8")):($=ce,ce=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");const be=this.length-G;if((ce===void 0||ce>be)&&(ce=be),j.length>0&&(ce<0||G<0)||G>this.length)throw new RangeError("Attempt to write outside buffer bounds");$||($="utf8");let Se=!1;for(;;)switch($){case"hex":return f(this,j,G,ce);case"utf8":case"utf-8":return E(this,j,G,ce);case"ascii":case"latin1":case"binary":return S(this,j,G,ce);case"base64":return P(this,j,G,ce);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return y(this,j,G,ce);default:if(Se)throw new TypeError("Unknown encoding: "+$);$=(""+$).toLowerCase(),Se=!0}},c.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function r(K,j,G){return j===0&&G===K.length?i.fromByteArray(K):i.fromByteArray(K.slice(j,G))}function s(K,j,G){G=Math.min(K.length,G);const ce=[];let $=j;for(;$<G;){const be=K[$];let Se=null,Be=be>239?4:be>223?3:be>191?2:1;if($+Be<=G){let we,Pe,oe,Re;switch(Be){case 1:be<128&&(Se=be);break;case 2:we=K[$+1],(we&192)===128&&(Re=(be&31)<<6|we&63,Re>127&&(Se=Re));break;case 3:we=K[$+1],Pe=K[$+2],(we&192)===128&&(Pe&192)===128&&(Re=(be&15)<<12|(we&63)<<6|Pe&63,Re>2047&&(Re<55296||Re>57343)&&(Se=Re));break;case 4:we=K[$+1],Pe=K[$+2],oe=K[$+3],(we&192)===128&&(Pe&192)===128&&(oe&192)===128&&(Re=(be&15)<<18|(we&63)<<12|(Pe&63)<<6|oe&63,Re>65535&&Re<1114112&&(Se=Re))}}Se===null?(Se=65533,Be=1):Se>65535&&(Se-=65536,ce.push(Se>>>10&1023|55296),Se=56320|Se&1023),ce.push(Se),$+=Be}return g(ce)}const p=4096;function g(K){const j=K.length;if(j<=p)return String.fromCharCode.apply(String,K);let G="",ce=0;for(;ce<j;)G+=String.fromCharCode.apply(String,K.slice(ce,ce+=p));return G}function I(K,j,G){let ce="";G=Math.min(K.length,G);for(let $=j;$<G;++$)ce+=String.fromCharCode(K[$]&127);return ce}function x(K,j,G){let ce="";G=Math.min(K.length,G);for(let $=j;$<G;++$)ce+=String.fromCharCode(K[$]);return ce}function q(K,j,G){const ce=K.length;(!j||j<0)&&(j=0),(!G||G<0||G>ce)&&(G=ce);let $="";for(let be=j;be<G;++be)$+=Ge[K[be]];return $}function T(K,j,G){const ce=K.slice(j,G);let $="";for(let be=0;be<ce.length-1;be+=2)$+=String.fromCharCode(ce[be]+ce[be+1]*256);return $}c.prototype.slice=function(j,G){const ce=this.length;j=~~j,G=G===void 0?ce:~~G,j<0?(j+=ce,j<0&&(j=0)):j>ce&&(j=ce),G<0?(G+=ce,G<0&&(G=0)):G>ce&&(G=ce),G<j&&(G=j);const $=this.subarray(j,G);return Object.setPrototypeOf($,c.prototype),$};function D(K,j,G){if(K%1!==0||K<0)throw new RangeError("offset is not uint");if(K+j>G)throw new RangeError("Trying to access beyond buffer length")}c.prototype.readUintLE=c.prototype.readUIntLE=function(j,G,ce){j=j>>>0,G=G>>>0,ce||D(j,G,this.length);let $=this[j],be=1,Se=0;for(;++Se<G&&(be*=256);)$+=this[j+Se]*be;return $},c.prototype.readUintBE=c.prototype.readUIntBE=function(j,G,ce){j=j>>>0,G=G>>>0,ce||D(j,G,this.length);let $=this[j+--G],be=1;for(;G>0&&(be*=256);)$+=this[j+--G]*be;return $},c.prototype.readUint8=c.prototype.readUInt8=function(j,G){return j=j>>>0,G||D(j,1,this.length),this[j]},c.prototype.readUint16LE=c.prototype.readUInt16LE=function(j,G){return j=j>>>0,G||D(j,2,this.length),this[j]|this[j+1]<<8},c.prototype.readUint16BE=c.prototype.readUInt16BE=function(j,G){return j=j>>>0,G||D(j,2,this.length),this[j]<<8|this[j+1]},c.prototype.readUint32LE=c.prototype.readUInt32LE=function(j,G){return j=j>>>0,G||D(j,4,this.length),(this[j]|this[j+1]<<8|this[j+2]<<16)+this[j+3]*16777216},c.prototype.readUint32BE=c.prototype.readUInt32BE=function(j,G){return j=j>>>0,G||D(j,4,this.length),this[j]*16777216+(this[j+1]<<16|this[j+2]<<8|this[j+3])},c.prototype.readBigUInt64LE=ee(function(j){j=j>>>0,le(j,"offset");const G=this[j],ce=this[j+7];(G===void 0||ce===void 0)&&ye(j,this.length-8);const $=G+this[++j]*2**8+this[++j]*2**16+this[++j]*2**24,be=this[++j]+this[++j]*2**8+this[++j]*2**16+ce*2**24;return BigInt($)+(BigInt(be)<<BigInt(32))}),c.prototype.readBigUInt64BE=ee(function(j){j=j>>>0,le(j,"offset");const G=this[j],ce=this[j+7];(G===void 0||ce===void 0)&&ye(j,this.length-8);const $=G*2**24+this[++j]*2**16+this[++j]*2**8+this[++j],be=this[++j]*2**24+this[++j]*2**16+this[++j]*2**8+ce;return(BigInt($)<<BigInt(32))+BigInt(be)}),c.prototype.readIntLE=function(j,G,ce){j=j>>>0,G=G>>>0,ce||D(j,G,this.length);let $=this[j],be=1,Se=0;for(;++Se<G&&(be*=256);)$+=this[j+Se]*be;return be*=128,$>=be&&($-=Math.pow(2,8*G)),$},c.prototype.readIntBE=function(j,G,ce){j=j>>>0,G=G>>>0,ce||D(j,G,this.length);let $=G,be=1,Se=this[j+--$];for(;$>0&&(be*=256);)Se+=this[j+--$]*be;return be*=128,Se>=be&&(Se-=Math.pow(2,8*G)),Se},c.prototype.readInt8=function(j,G){return j=j>>>0,G||D(j,1,this.length),this[j]&128?(255-this[j]+1)*-1:this[j]},c.prototype.readInt16LE=function(j,G){j=j>>>0,G||D(j,2,this.length);const ce=this[j]|this[j+1]<<8;return ce&32768?ce|4294901760:ce},c.prototype.readInt16BE=function(j,G){j=j>>>0,G||D(j,2,this.length);const ce=this[j+1]|this[j]<<8;return ce&32768?ce|4294901760:ce},c.prototype.readInt32LE=function(j,G){return j=j>>>0,G||D(j,4,this.length),this[j]|this[j+1]<<8|this[j+2]<<16|this[j+3]<<24},c.prototype.readInt32BE=function(j,G){return j=j>>>0,G||D(j,4,this.length),this[j]<<24|this[j+1]<<16|this[j+2]<<8|this[j+3]},c.prototype.readBigInt64LE=ee(function(j){j=j>>>0,le(j,"offset");const G=this[j],ce=this[j+7];(G===void 0||ce===void 0)&&ye(j,this.length-8);const $=this[j+4]+this[j+5]*2**8+this[j+6]*2**16+(ce<<24);return(BigInt($)<<BigInt(32))+BigInt(G+this[++j]*2**8+this[++j]*2**16+this[++j]*2**24)}),c.prototype.readBigInt64BE=ee(function(j){j=j>>>0,le(j,"offset");const G=this[j],ce=this[j+7];(G===void 0||ce===void 0)&&ye(j,this.length-8);const $=(G<<24)+this[++j]*2**16+this[++j]*2**8+this[++j];return(BigInt($)<<BigInt(32))+BigInt(this[++j]*2**24+this[++j]*2**16+this[++j]*2**8+ce)}),c.prototype.readFloatLE=function(j,G){return j=j>>>0,G||D(j,4,this.length),n.read(this,j,!0,23,4)},c.prototype.readFloatBE=function(j,G){return j=j>>>0,G||D(j,4,this.length),n.read(this,j,!1,23,4)},c.prototype.readDoubleLE=function(j,G){return j=j>>>0,G||D(j,8,this.length),n.read(this,j,!0,52,8)},c.prototype.readDoubleBE=function(j,G){return j=j>>>0,G||D(j,8,this.length),n.read(this,j,!1,52,8)};function W(K,j,G,ce,$,be){if(!c.isBuffer(K))throw new TypeError('"buffer" argument must be a Buffer instance');if(j>$||j<be)throw new RangeError('"value" argument is out of bounds');if(G+ce>K.length)throw new RangeError("Index out of range")}c.prototype.writeUintLE=c.prototype.writeUIntLE=function(j,G,ce,$){if(j=+j,G=G>>>0,ce=ce>>>0,!$){const Be=Math.pow(2,8*ce)-1;W(this,j,G,ce,Be,0)}let be=1,Se=0;for(this[G]=j&255;++Se<ce&&(be*=256);)this[G+Se]=j/be&255;return G+ce},c.prototype.writeUintBE=c.prototype.writeUIntBE=function(j,G,ce,$){if(j=+j,G=G>>>0,ce=ce>>>0,!$){const Be=Math.pow(2,8*ce)-1;W(this,j,G,ce,Be,0)}let be=ce-1,Se=1;for(this[G+be]=j&255;--be>=0&&(Se*=256);)this[G+be]=j/Se&255;return G+ce},c.prototype.writeUint8=c.prototype.writeUInt8=function(j,G,ce){return j=+j,G=G>>>0,ce||W(this,j,G,1,255,0),this[G]=j&255,G+1},c.prototype.writeUint16LE=c.prototype.writeUInt16LE=function(j,G,ce){return j=+j,G=G>>>0,ce||W(this,j,G,2,65535,0),this[G]=j&255,this[G+1]=j>>>8,G+2},c.prototype.writeUint16BE=c.prototype.writeUInt16BE=function(j,G,ce){return j=+j,G=G>>>0,ce||W(this,j,G,2,65535,0),this[G]=j>>>8,this[G+1]=j&255,G+2},c.prototype.writeUint32LE=c.prototype.writeUInt32LE=function(j,G,ce){return j=+j,G=G>>>0,ce||W(this,j,G,4,4294967295,0),this[G+3]=j>>>24,this[G+2]=j>>>16,this[G+1]=j>>>8,this[G]=j&255,G+4},c.prototype.writeUint32BE=c.prototype.writeUInt32BE=function(j,G,ce){return j=+j,G=G>>>0,ce||W(this,j,G,4,4294967295,0),this[G]=j>>>24,this[G+1]=j>>>16,this[G+2]=j>>>8,this[G+3]=j&255,G+4};function J(K,j,G,ce,$){pe(j,ce,$,K,G,7);let be=Number(j&BigInt(4294967295));K[G++]=be,be=be>>8,K[G++]=be,be=be>>8,K[G++]=be,be=be>>8,K[G++]=be;let Se=Number(j>>BigInt(32)&BigInt(4294967295));return K[G++]=Se,Se=Se>>8,K[G++]=Se,Se=Se>>8,K[G++]=Se,Se=Se>>8,K[G++]=Se,G}function X(K,j,G,ce,$){pe(j,ce,$,K,G,7);let be=Number(j&BigInt(4294967295));K[G+7]=be,be=be>>8,K[G+6]=be,be=be>>8,K[G+5]=be,be=be>>8,K[G+4]=be;let Se=Number(j>>BigInt(32)&BigInt(4294967295));return K[G+3]=Se,Se=Se>>8,K[G+2]=Se,Se=Se>>8,K[G+1]=Se,Se=Se>>8,K[G]=Se,G+8}c.prototype.writeBigUInt64LE=ee(function(j,G=0){return J(this,j,G,BigInt(0),BigInt("0xffffffffffffffff"))}),c.prototype.writeBigUInt64BE=ee(function(j,G=0){return X(this,j,G,BigInt(0),BigInt("0xffffffffffffffff"))}),c.prototype.writeIntLE=function(j,G,ce,$){if(j=+j,G=G>>>0,!$){const we=Math.pow(2,8*ce-1);W(this,j,G,ce,we-1,-we)}let be=0,Se=1,Be=0;for(this[G]=j&255;++be<ce&&(Se*=256);)j<0&&Be===0&&this[G+be-1]!==0&&(Be=1),this[G+be]=(j/Se>>0)-Be&255;return G+ce},c.prototype.writeIntBE=function(j,G,ce,$){if(j=+j,G=G>>>0,!$){const we=Math.pow(2,8*ce-1);W(this,j,G,ce,we-1,-we)}let be=ce-1,Se=1,Be=0;for(this[G+be]=j&255;--be>=0&&(Se*=256);)j<0&&Be===0&&this[G+be+1]!==0&&(Be=1),this[G+be]=(j/Se>>0)-Be&255;return G+ce},c.prototype.writeInt8=function(j,G,ce){return j=+j,G=G>>>0,ce||W(this,j,G,1,127,-128),j<0&&(j=255+j+1),this[G]=j&255,G+1},c.prototype.writeInt16LE=function(j,G,ce){return j=+j,G=G>>>0,ce||W(this,j,G,2,32767,-32768),this[G]=j&255,this[G+1]=j>>>8,G+2},c.prototype.writeInt16BE=function(j,G,ce){return j=+j,G=G>>>0,ce||W(this,j,G,2,32767,-32768),this[G]=j>>>8,this[G+1]=j&255,G+2},c.prototype.writeInt32LE=function(j,G,ce){return j=+j,G=G>>>0,ce||W(this,j,G,4,2147483647,-2147483648),this[G]=j&255,this[G+1]=j>>>8,this[G+2]=j>>>16,this[G+3]=j>>>24,G+4},c.prototype.writeInt32BE=function(j,G,ce){return j=+j,G=G>>>0,ce||W(this,j,G,4,2147483647,-2147483648),j<0&&(j=4294967295+j+1),this[G]=j>>>24,this[G+1]=j>>>16,this[G+2]=j>>>8,this[G+3]=j&255,G+4},c.prototype.writeBigInt64LE=ee(function(j,G=0){return J(this,j,G,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),c.prototype.writeBigInt64BE=ee(function(j,G=0){return X(this,j,G,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function Q(K,j,G,ce,$,be){if(G+ce>K.length)throw new RangeError("Index out of range");if(G<0)throw new RangeError("Index out of range")}function re(K,j,G,ce,$){return j=+j,G=G>>>0,$||Q(K,j,G,4),n.write(K,j,G,ce,23,4),G+4}c.prototype.writeFloatLE=function(j,G,ce){return re(this,j,G,!0,ce)},c.prototype.writeFloatBE=function(j,G,ce){return re(this,j,G,!1,ce)};function se(K,j,G,ce,$){return j=+j,G=G>>>0,$||Q(K,j,G,8),n.write(K,j,G,ce,52,8),G+8}c.prototype.writeDoubleLE=function(j,G,ce){return se(this,j,G,!0,ce)},c.prototype.writeDoubleBE=function(j,G,ce){return se(this,j,G,!1,ce)},c.prototype.copy=function(j,G,ce,$){if(!c.isBuffer(j))throw new TypeError("argument should be a Buffer");if(ce||(ce=0),!$&&$!==0&&($=this.length),G>=j.length&&(G=j.length),G||(G=0),$>0&&$<ce&&($=ce),$===ce||j.length===0||this.length===0)return 0;if(G<0)throw new RangeError("targetStart out of bounds");if(ce<0||ce>=this.length)throw new RangeError("Index out of range");if($<0)throw new RangeError("sourceEnd out of bounds");$>this.length&&($=this.length),j.length-G<$-ce&&($=j.length-G+ce);const be=$-ce;return this===j&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(G,ce,$):Uint8Array.prototype.set.call(j,this.subarray(ce,$),G),be},c.prototype.fill=function(j,G,ce,$){if(typeof j=="string"){if(typeof G=="string"?($=G,G=0,ce=this.length):typeof ce=="string"&&($=ce,ce=this.length),$!==void 0&&typeof $!="string")throw new TypeError("encoding must be a string");if(typeof $=="string"&&!c.isEncoding($))throw new TypeError("Unknown encoding: "+$);if(j.length===1){const Se=j.charCodeAt(0);($==="utf8"&&Se<128||$==="latin1")&&(j=Se)}}else typeof j=="number"?j=j&255:typeof j=="boolean"&&(j=Number(j));if(G<0||this.length<G||this.length<ce)throw new RangeError("Out of range index");if(ce<=G)return this;G=G>>>0,ce=ce===void 0?this.length:ce>>>0,j||(j=0);let be;if(typeof j=="number")for(be=G;be<ce;++be)this[be]=j;else{const Se=c.isBuffer(j)?j:c.from(j,$),Be=Se.length;if(Be===0)throw new TypeError('The value "'+j+'" is invalid for argument "value"');for(be=0;be<ce-G;++be)this[be+G]=Se[be%Be]}return this};const ne={};function me(K,j,G){ne[K]=class extends G{constructor(){super(),Object.defineProperty(this,"message",{value:j.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${K}]`,this.stack,delete this.name}get code(){return K}set code($){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:$,writable:!0})}toString(){return`${this.name} [${K}]: ${this.message}`}}}me("ERR_BUFFER_OUT_OF_BOUNDS",function(K){return K?`${K} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),me("ERR_INVALID_ARG_TYPE",function(K,j){return`The "${K}" argument must be of type number. Received type ${typeof j}`},TypeError),me("ERR_OUT_OF_RANGE",function(K,j,G){let ce=`The value of "${K}" is out of range.`,$=G;return Number.isInteger(G)&&Math.abs(G)>2**32?$=ge(String(G)):typeof G=="bigint"&&($=String(G),(G>BigInt(2)**BigInt(32)||G<-(BigInt(2)**BigInt(32)))&&($=ge($)),$+="n"),ce+=` It must be ${j}. Received ${$}`,ce},RangeError);function ge(K){let j="",G=K.length;const ce=K[0]==="-"?1:0;for(;G>=ce+4;G-=3)j=`_${K.slice(G-3,G)}${j}`;return`${K.slice(0,G)}${j}`}function Ae(K,j,G){le(j,"offset"),(K[j]===void 0||K[j+G]===void 0)&&ye(j,K.length-(G+1))}function pe(K,j,G,ce,$,be){if(K>G||K<j){const Se=typeof j=="bigint"?"n":"";let Be;throw j===0||j===BigInt(0)?Be=`>= 0${Se} and < 2${Se} ** ${(be+1)*8}${Se}`:Be=`>= -(2${Se} ** ${(be+1)*8-1}${Se}) and < 2 ** ${(be+1)*8-1}${Se}`,new ne.ERR_OUT_OF_RANGE("value",Be,K)}Ae(ce,$,be)}function le(K,j){if(typeof K!="number")throw new ne.ERR_INVALID_ARG_TYPE(j,"number",K)}function ye(K,j,G){throw Math.floor(K)!==K?(le(K,G),new ne.ERR_OUT_OF_RANGE("offset","an integer",K)):j<0?new ne.ERR_BUFFER_OUT_OF_BOUNDS:new ne.ERR_OUT_OF_RANGE("offset",`>= 0 and <= ${j}`,K)}const de=/[^+/0-9A-Za-z-_]/g;function Y(K){if(K=K.split("=")[0],K=K.trim().replace(de,""),K.length<2)return"";for(;K.length%4!==0;)K=K+"=";return K}function z(K,j){j=j||1/0;let G;const ce=K.length;let $=null;const be=[];for(let Se=0;Se<ce;++Se){if(G=K.charCodeAt(Se),G>55295&&G<57344){if(!$){if(G>56319){(j-=3)>-1&&be.push(239,191,189);continue}else if(Se+1===ce){(j-=3)>-1&&be.push(239,191,189);continue}$=G;continue}if(G<56320){(j-=3)>-1&&be.push(239,191,189),$=G;continue}G=($-55296<<10|G-56320)+65536}else $&&(j-=3)>-1&&be.push(239,191,189);if($=null,G<128){if((j-=1)<0)break;be.push(G)}else if(G<2048){if((j-=2)<0)break;be.push(G>>6|192,G&63|128)}else if(G<65536){if((j-=3)<0)break;be.push(G>>12|224,G>>6&63|128,G&63|128)}else if(G<1114112){if((j-=4)<0)break;be.push(G>>18|240,G>>12&63|128,G>>6&63|128,G&63|128)}else throw new Error("Invalid code point")}return be}function V(K){const j=[];for(let G=0;G<K.length;++G)j.push(K.charCodeAt(G)&255);return j}function ue(K,j){let G,ce,$;const be=[];for(let Se=0;Se<K.length&&!((j-=2)<0);++Se)G=K.charCodeAt(Se),ce=G>>8,$=G%256,be.push($),be.push(ce);return be}function Te(K){return i.toByteArray(Y(K))}function Ie(K,j,G,ce){let $;for($=0;$<ce&&!($+G>=j.length||$>=K.length);++$)j[$+G]=K[$];return $}function Ce(K,j){return K instanceof j||K!=null&&K.constructor!=null&&K.constructor.name!=null&&K.constructor.name===j.name}function We(K){return K!==K}const Ge=(function(){const K="0123456789abcdef",j=new Array(256);for(let G=0;G<16;++G){const ce=G*16;for(let $=0;$<16;++$)j[ce+$]=K[G]+K[$]}return j})();function ee(K){return typeof BigInt>"u"?te:K}function te(){throw new Error("BigInt not supported")}})(Kl)),Kl}var Vl,Mm;function Kt(){return Mm||(Mm=1,Vl={ArrayIsArray(e){return Array.isArray(e)},ArrayPrototypeIncludes(e,i){return e.includes(i)},ArrayPrototypeIndexOf(e,i){return e.indexOf(i)},ArrayPrototypeJoin(e,i){return e.join(i)},ArrayPrototypeMap(e,i){return e.map(i)},ArrayPrototypePop(e,i){return e.pop(i)},ArrayPrototypePush(e,i){return e.push(i)},ArrayPrototypeSlice(e,i,n){return e.slice(i,n)},Error,FunctionPrototypeCall(e,i,...n){return e.call(i,...n)},FunctionPrototypeSymbolHasInstance(e,i){return Function.prototype[Symbol.hasInstance].call(e,i)},MathFloor:Math.floor,Number,NumberIsInteger:Number.isInteger,NumberIsNaN:Number.isNaN,NumberMAX_SAFE_INTEGER:Number.MAX_SAFE_INTEGER,NumberMIN_SAFE_INTEGER:Number.MIN_SAFE_INTEGER,NumberParseInt:Number.parseInt,ObjectDefineProperties(e,i){return Object.defineProperties(e,i)},ObjectDefineProperty(e,i,n){return Object.defineProperty(e,i,n)},ObjectGetOwnPropertyDescriptor(e,i){return Object.getOwnPropertyDescriptor(e,i)},ObjectKeys(e){return Object.keys(e)},ObjectSetPrototypeOf(e,i){return Object.setPrototypeOf(e,i)},Promise,PromisePrototypeCatch(e,i){return e.catch(i)},PromisePrototypeThen(e,i,n){return e.then(i,n)},PromiseReject(e){return Promise.reject(e)},ReflectApply:Reflect.apply,RegExpPrototypeTest(e,i){return e.test(i)},SafeSet:Set,String,StringPrototypeSlice(e,i,n){return e.slice(i,n)},StringPrototypeToLowerCase(e){return e.toLowerCase()},StringPrototypeToUpperCase(e){return e.toUpperCase()},StringPrototypeTrim(e){return e.trim()},Symbol,SymbolAsyncIterator:Symbol.asyncIterator,SymbolHasInstance:Symbol.hasInstance,SymbolIterator:Symbol.iterator,TypedArrayPrototypeSet(e,i,n){return e.set(i,n)},Uint8Array}),Vl}var Zl={exports:{}},Bm;function Ei(){return Bm||(Bm=1,(function(e){const i=Sr(),n=Object.getPrototypeOf(async function(){}).constructor,a=globalThis.Blob||i.Blob,l=typeof a<"u"?function(c){return c instanceof a}:function(c){return!1};class d extends Error{constructor(c){if(!Array.isArray(c))throw new TypeError(`Expected input to be an Array, got ${typeof c}`);let w="";for(let U=0;U<c.length;U++)w+=` ${c[U].stack}
950
+ `;super(w),this.name="AggregateError",this.errors=c}}e.exports={AggregateError:d,kEmptyObject:Object.freeze({}),once(u){let c=!1;return function(...w){c||(c=!0,u.apply(this,w))}},createDeferredPromise:function(){let u,c;return{promise:new Promise((U,F)=>{u=U,c=F}),resolve:u,reject:c}},promisify(u){return new Promise((c,w)=>{u((U,...F)=>U?w(U):c(...F))})},debuglog(){return function(){}},format(u,...c){return u.replace(/%([sdifj])/g,function(...[w,U]){const F=c.shift();return U==="f"?F.toFixed(6):U==="j"?JSON.stringify(F):U==="s"&&typeof F=="object"?`${F.constructor!==Object?F.constructor.name:""} {}`.trim():F.toString()})},inspect(u){switch(typeof u){case"string":if(u.includes("'"))if(u.includes('"')){if(!u.includes("`")&&!u.includes("${"))return`\`${u}\``}else return`"${u}"`;return`'${u}'`;case"number":return isNaN(u)?"NaN":Object.is(u,-0)?String(u):u;case"bigint":return`${String(u)}n`;case"boolean":case"undefined":return String(u);case"object":return"{}"}},types:{isAsyncFunction(u){return u instanceof n},isArrayBufferView(u){return ArrayBuffer.isView(u)}},isBlob:l},e.exports.promisify.custom=Symbol.for("nodejs.util.promisify.custom")})(Zl)),Zl.exports}var ra={};const dk=Object.freeze(Object.create(null,{__mock__:{get:()=>!0}})),hk=Object.freeze(Object.defineProperty({__proto__:null,default:dk},Symbol.toStringTag,{value:"Module"})),Xc=Nc(hk);var Ql,Dm;function gn(){if(Dm)return Ql;Dm=1;const{format:e,inspect:i,AggregateError:n}=Ei(),a=globalThis.AggregateError||n,l=Symbol("kIsNodeError"),d=["string","function","number","object","Function","Object","boolean","bigint","symbol"],u=/^([A-Z][a-z0-9]*)+$/,c="__node_internal_",w={};function U(v,h){if(!v)throw new w.ERR_INTERNAL_ASSERTION(h)}function F(v){let h="",m=v.length;const k=v[0]==="-"?1:0;for(;m>=k+4;m-=3)h=`_${v.slice(m-3,m)}${h}`;return`${v.slice(0,m)}${h}`}function O(v,h,m){if(typeof h=="function")return U(h.length<=m.length,`Code: ${v}; The provided arguments length (${m.length}) does not match the required ones (${h.length}).`),h(...m);const k=(h.match(/%[dfijoOs]/g)||[]).length;return U(k===m.length,`Code: ${v}; The provided arguments length (${m.length}) does not match the required ones (${k}).`),m.length===0?h:e(h,...m)}function M(v,h,m){m||(m=Error);class k extends m{constructor(...C){super(O(v,h,C))}toString(){return`${this.name} [${v}]: ${this.message}`}}Object.defineProperties(k.prototype,{name:{value:m.name,writable:!0,enumerable:!1,configurable:!0},toString:{value(){return`${this.name} [${v}]: ${this.message}`},writable:!0,enumerable:!1,configurable:!0}}),k.prototype.code=v,k.prototype[l]=!0,w[v]=k}function L(v){const h=c+v.name;return Object.defineProperty(v,"name",{value:h}),v}function _(v,h){if(v&&h&&v!==h){if(Array.isArray(h.errors))return h.errors.push(v),h;const m=new a([h,v],h.message);return m.code=h.code,m}return v||h}class b extends Error{constructor(h="The operation was aborted",m=void 0){if(m!==void 0&&typeof m!="object")throw new w.ERR_INVALID_ARG_TYPE("options","Object",m);super(h,m),this.code="ABORT_ERR",this.name="AbortError"}}return M("ERR_ASSERTION","%s",Error),M("ERR_INVALID_ARG_TYPE",(v,h,m)=>{U(typeof v=="string","'name' must be a string"),Array.isArray(h)||(h=[h]);let k="The ";v.endsWith(" argument")?k+=`${v} `:k+=`"${v}" ${v.includes(".")?"property":"argument"} `,k+="must be ";const B=[],C=[],R=[];for(const f of h)U(typeof f=="string","All expected entries have to be of type string"),d.includes(f)?B.push(f.toLowerCase()):u.test(f)?C.push(f):(U(f!=="object",'The value "object" should be written as "Object"'),R.push(f));if(C.length>0){const f=B.indexOf("object");f!==-1&&(B.splice(B,f,1),C.push("Object"))}if(B.length>0){switch(B.length){case 1:k+=`of type ${B[0]}`;break;case 2:k+=`one of type ${B[0]} or ${B[1]}`;break;default:{const f=B.pop();k+=`one of type ${B.join(", ")}, or ${f}`}}(C.length>0||R.length>0)&&(k+=" or ")}if(C.length>0){switch(C.length){case 1:k+=`an instance of ${C[0]}`;break;case 2:k+=`an instance of ${C[0]} or ${C[1]}`;break;default:{const f=C.pop();k+=`an instance of ${C.join(", ")}, or ${f}`}}R.length>0&&(k+=" or ")}switch(R.length){case 0:break;case 1:R[0].toLowerCase()!==R[0]&&(k+="an "),k+=`${R[0]}`;break;case 2:k+=`one of ${R[0]} or ${R[1]}`;break;default:{const f=R.pop();k+=`one of ${R.join(", ")}, or ${f}`}}if(m==null)k+=`. Received ${m}`;else if(typeof m=="function"&&m.name)k+=`. Received function ${m.name}`;else if(typeof m=="object"){var A;if((A=m.constructor)!==null&&A!==void 0&&A.name)k+=`. Received an instance of ${m.constructor.name}`;else{const f=i(m,{depth:-1});k+=`. Received ${f}`}}else{let f=i(m,{colors:!1});f.length>25&&(f=`${f.slice(0,25)}...`),k+=`. Received type ${typeof m} (${f})`}return k},TypeError),M("ERR_INVALID_ARG_VALUE",(v,h,m="is invalid")=>{let k=i(h);return k.length>128&&(k=k.slice(0,128)+"..."),`The ${v.includes(".")?"property":"argument"} '${v}' ${m}. Received ${k}`},TypeError),M("ERR_INVALID_RETURN_VALUE",(v,h,m)=>{var k;const B=m!=null&&(k=m.constructor)!==null&&k!==void 0&&k.name?`instance of ${m.constructor.name}`:`type ${typeof m}`;return`Expected ${v} to be returned from the "${h}" function but got ${B}.`},TypeError),M("ERR_MISSING_ARGS",(...v)=>{U(v.length>0,"At least one arg needs to be specified");let h;const m=v.length;switch(v=(Array.isArray(v)?v:[v]).map(k=>`"${k}"`).join(" or "),m){case 1:h+=`The ${v[0]} argument`;break;case 2:h+=`The ${v[0]} and ${v[1]} arguments`;break;default:{const k=v.pop();h+=`The ${v.join(", ")}, and ${k} arguments`}break}return`${h} must be specified`},TypeError),M("ERR_OUT_OF_RANGE",(v,h,m)=>{U(h,'Missing "range" argument');let k;return Number.isInteger(m)&&Math.abs(m)>2**32?k=F(String(m)):typeof m=="bigint"?(k=String(m),(m>2n**32n||m<-(2n**32n))&&(k=F(k)),k+="n"):k=i(m),`The value of "${v}" is out of range. It must be ${h}. Received ${k}`},RangeError),M("ERR_MULTIPLE_CALLBACK","Callback called multiple times",Error),M("ERR_METHOD_NOT_IMPLEMENTED","The %s method is not implemented",Error),M("ERR_STREAM_ALREADY_FINISHED","Cannot call %s after a stream was finished",Error),M("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable",Error),M("ERR_STREAM_DESTROYED","Cannot call %s after a stream was destroyed",Error),M("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),M("ERR_STREAM_PREMATURE_CLOSE","Premature close",Error),M("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF",Error),M("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event",Error),M("ERR_STREAM_WRITE_AFTER_END","write after end",Error),M("ERR_UNKNOWN_ENCODING","Unknown encoding: %s",TypeError),Ql={AbortError:b,aggregateTwoErrors:L(_),hideStackFrames:L,codes:w},Ql}var Xl,jm;function xa(){if(jm)return Xl;jm=1;const{ArrayIsArray:e,ArrayPrototypeIncludes:i,ArrayPrototypeJoin:n,ArrayPrototypeMap:a,NumberIsInteger:l,NumberIsNaN:d,NumberMAX_SAFE_INTEGER:u,NumberMIN_SAFE_INTEGER:c,NumberParseInt:w,ObjectPrototypeHasOwnProperty:U,RegExpPrototypeExec:F,String:O,StringPrototypeToUpperCase:M,StringPrototypeTrim:L}=Kt(),{hideStackFrames:_,codes:{ERR_SOCKET_BAD_PORT:b,ERR_INVALID_ARG_TYPE:v,ERR_INVALID_ARG_VALUE:h,ERR_OUT_OF_RANGE:m,ERR_UNKNOWN_SIGNAL:k}}=gn(),{normalizeEncoding:B}=Ei(),{isAsyncFunction:C,isArrayBufferView:R}=Ei().types,A={};function f(pe){return pe===(pe|0)}function E(pe){return pe===pe>>>0}const S=/^[0-7]+$/,P="must be a 32-bit unsigned integer or an octal string";function y(pe,le,ye){if(typeof pe>"u"&&(pe=ye),typeof pe=="string"){if(F(S,pe)===null)throw new h(le,pe,P);pe=w(pe,8)}return p(pe,le),pe}const r=_((pe,le,ye=c,de=u)=>{if(typeof pe!="number")throw new v(le,"number",pe);if(!l(pe))throw new m(le,"an integer",pe);if(pe<ye||pe>de)throw new m(le,`>= ${ye} && <= ${de}`,pe)}),s=_((pe,le,ye=-2147483648,de=2147483647)=>{if(typeof pe!="number")throw new v(le,"number",pe);if(!l(pe))throw new m(le,"an integer",pe);if(pe<ye||pe>de)throw new m(le,`>= ${ye} && <= ${de}`,pe)}),p=_((pe,le,ye=!1)=>{if(typeof pe!="number")throw new v(le,"number",pe);if(!l(pe))throw new m(le,"an integer",pe);const de=ye?1:0,Y=4294967295;if(pe<de||pe>Y)throw new m(le,`>= ${de} && <= ${Y}`,pe)});function g(pe,le){if(typeof pe!="string")throw new v(le,"string",pe)}function I(pe,le,ye=void 0,de){if(typeof pe!="number")throw new v(le,"number",pe);if(ye!=null&&pe<ye||de!=null&&pe>de||(ye!=null||de!=null)&&d(pe))throw new m(le,`${ye!=null?`>= ${ye}`:""}${ye!=null&&de!=null?" && ":""}${de!=null?`<= ${de}`:""}`,pe)}const x=_((pe,le,ye)=>{if(!i(ye,pe)){const Y="must be one of: "+n(a(ye,z=>typeof z=="string"?`'${z}'`:O(z)),", ");throw new h(le,pe,Y)}});function q(pe,le){if(typeof pe!="boolean")throw new v(le,"boolean",pe)}function T(pe,le,ye){return pe==null||!U(pe,le)?ye:pe[le]}const D=_((pe,le,ye=null)=>{const de=T(ye,"allowArray",!1),Y=T(ye,"allowFunction",!1);if(!T(ye,"nullable",!1)&&pe===null||!de&&e(pe)||typeof pe!="object"&&(!Y||typeof pe!="function"))throw new v(le,"Object",pe)}),W=_((pe,le,ye=0)=>{if(!e(pe))throw new v(le,"Array",pe);if(pe.length<ye){const de=`must be longer than ${ye}`;throw new h(le,pe,de)}});function J(pe,le="signal"){if(g(pe,le),A[pe]===void 0)throw A[M(pe)]!==void 0?new k(pe+" (signals must use all capital letters)"):new k(pe)}const X=_((pe,le="buffer")=>{if(!R(pe))throw new v(le,["Buffer","TypedArray","DataView"],pe)});function Q(pe,le){const ye=B(le),de=pe.length;if(ye==="hex"&&de%2!==0)throw new h("encoding",le,`is invalid for data of length ${de}`)}function re(pe,le="Port",ye=!0){if(typeof pe!="number"&&typeof pe!="string"||typeof pe=="string"&&L(pe).length===0||+pe!==+pe>>>0||pe>65535||pe===0&&!ye)throw new b(le,pe,ye);return pe|0}const se=_((pe,le)=>{if(pe!==void 0&&(pe===null||typeof pe!="object"||!("aborted"in pe)))throw new v(le,"AbortSignal",pe)}),ne=_((pe,le)=>{if(typeof pe!="function")throw new v(le,"Function",pe)}),me=_((pe,le)=>{if(typeof pe!="function"||C(pe))throw new v(le,"Function",pe)}),ge=_((pe,le)=>{if(pe!==void 0)throw new v(le,"undefined",pe)});function Ae(pe,le,ye){if(!i(ye,pe))throw new v(le,`('${n(ye,"|")}')`,pe)}return Xl={isInt32:f,isUint32:E,parseFileMode:y,validateArray:W,validateBoolean:q,validateBuffer:X,validateEncoding:Q,validateFunction:ne,validateInt32:s,validateInteger:r,validateNumber:I,validateObject:D,validateOneOf:x,validatePlainFunction:me,validatePort:re,validateSignalName:J,validateString:g,validateUint32:p,validateUndefined:ge,validateUnion:Ae,validateAbortSignal:se},Xl}var sa={exports:{}},Yl={exports:{}},Um;function wr(){if(Um)return Yl.exports;Um=1;var e=Yl.exports={},i,n;function a(){throw new Error("setTimeout has not been defined")}function l(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?i=setTimeout:i=a}catch{i=a}try{typeof clearTimeout=="function"?n=clearTimeout:n=l}catch{n=l}})();function d(b){if(i===setTimeout)return setTimeout(b,0);if((i===a||!i)&&setTimeout)return i=setTimeout,setTimeout(b,0);try{return i(b,0)}catch{try{return i.call(null,b,0)}catch{return i.call(this,b,0)}}}function u(b){if(n===clearTimeout)return clearTimeout(b);if((n===l||!n)&&clearTimeout)return n=clearTimeout,clearTimeout(b);try{return n(b)}catch{try{return n.call(null,b)}catch{return n.call(this,b)}}}var c=[],w=!1,U,F=-1;function O(){!w||!U||(w=!1,U.length?c=U.concat(c):F=-1,c.length&&M())}function M(){if(!w){var b=d(O);w=!0;for(var v=c.length;v;){for(U=c,c=[];++F<v;)U&&U[F].run();F=-1,v=c.length}U=null,w=!1,u(b)}}e.nextTick=function(b){var v=new Array(arguments.length-1);if(arguments.length>1)for(var h=1;h<arguments.length;h++)v[h-1]=arguments[h];c.push(new L(b,v)),c.length===1&&!w&&d(M)};function L(b,v){this.fun=b,this.array=v}L.prototype.run=function(){this.fun.apply(null,this.array)},e.title="browser",e.browser=!0,e.env={},e.argv=[],e.version="",e.versions={};function _(){}return e.on=_,e.addListener=_,e.once=_,e.off=_,e.removeListener=_,e.removeAllListeners=_,e.emit=_,e.prependListener=_,e.prependOnceListener=_,e.listeners=function(b){return[]},e.binding=function(b){throw new Error("process.binding is not supported")},e.cwd=function(){return"/"},e.chdir=function(b){throw new Error("process.chdir is not supported")},e.umask=function(){return 0},Yl.exports}var $l,xm;function Lr(){if(xm)return $l;xm=1;const{Symbol:e,SymbolAsyncIterator:i,SymbolIterator:n}=Kt(),a=e("kDestroyed"),l=e("kIsErrored"),d=e("kIsReadable"),u=e("kIsDisturbed");function c(r,s=!1){var p;return!!(r&&typeof r.pipe=="function"&&typeof r.on=="function"&&(!s||typeof r.pause=="function"&&typeof r.resume=="function")&&(!r._writableState||((p=r._readableState)===null||p===void 0?void 0:p.readable)!==!1)&&(!r._writableState||r._readableState))}function w(r){var s;return!!(r&&typeof r.write=="function"&&typeof r.on=="function"&&(!r._readableState||((s=r._writableState)===null||s===void 0?void 0:s.writable)!==!1))}function U(r){return!!(r&&typeof r.pipe=="function"&&r._readableState&&typeof r.on=="function"&&typeof r.write=="function")}function F(r){return r&&(r._readableState||r._writableState||typeof r.write=="function"&&typeof r.on=="function"||typeof r.pipe=="function"&&typeof r.on=="function")}function O(r,s){return r==null?!1:s===!0?typeof r[i]=="function":s===!1?typeof r[n]=="function":typeof r[i]=="function"||typeof r[n]=="function"}function M(r){if(!F(r))return null;const s=r._writableState,p=r._readableState,g=s||p;return!!(r.destroyed||r[a]||g!=null&&g.destroyed)}function L(r){if(!w(r))return null;if(r.writableEnded===!0)return!0;const s=r._writableState;return s!=null&&s.errored?!1:typeof s?.ended!="boolean"?null:s.ended}function _(r,s){if(!w(r))return null;if(r.writableFinished===!0)return!0;const p=r._writableState;return p!=null&&p.errored?!1:typeof p?.finished!="boolean"?null:!!(p.finished||s===!1&&p.ended===!0&&p.length===0)}function b(r){if(!c(r))return null;if(r.readableEnded===!0)return!0;const s=r._readableState;return!s||s.errored?!1:typeof s?.ended!="boolean"?null:s.ended}function v(r,s){if(!c(r))return null;const p=r._readableState;return p!=null&&p.errored?!1:typeof p?.endEmitted!="boolean"?null:!!(p.endEmitted||s===!1&&p.ended===!0&&p.length===0)}function h(r){return r&&r[d]!=null?r[d]:typeof r?.readable!="boolean"?null:M(r)?!1:c(r)&&r.readable&&!v(r)}function m(r){return typeof r?.writable!="boolean"?null:M(r)?!1:w(r)&&r.writable&&!L(r)}function k(r,s){return F(r)?M(r)?!0:!(s?.readable!==!1&&h(r)||s?.writable!==!1&&m(r)):null}function B(r){var s,p;return F(r)?r.writableErrored?r.writableErrored:(s=(p=r._writableState)===null||p===void 0?void 0:p.errored)!==null&&s!==void 0?s:null:null}function C(r){var s,p;return F(r)?r.readableErrored?r.readableErrored:(s=(p=r._readableState)===null||p===void 0?void 0:p.errored)!==null&&s!==void 0?s:null:null}function R(r){if(!F(r))return null;if(typeof r.closed=="boolean")return r.closed;const s=r._writableState,p=r._readableState;return typeof s?.closed=="boolean"||typeof p?.closed=="boolean"?s?.closed||p?.closed:typeof r._closed=="boolean"&&A(r)?r._closed:null}function A(r){return typeof r._closed=="boolean"&&typeof r._defaultKeepAlive=="boolean"&&typeof r._removedConnection=="boolean"&&typeof r._removedContLen=="boolean"}function f(r){return typeof r._sent100=="boolean"&&A(r)}function E(r){var s;return typeof r._consuming=="boolean"&&typeof r._dumped=="boolean"&&((s=r.req)===null||s===void 0?void 0:s.upgradeOrConnect)===void 0}function S(r){if(!F(r))return null;const s=r._writableState,p=r._readableState,g=s||p;return!g&&f(r)||!!(g&&g.autoDestroy&&g.emitClose&&g.closed===!1)}function P(r){var s;return!!(r&&((s=r[u])!==null&&s!==void 0?s:r.readableDidRead||r.readableAborted))}function y(r){var s,p,g,I,x,q,T,D,W,J;return!!(r&&((s=(p=(g=(I=(x=(q=r[l])!==null&&q!==void 0?q:r.readableErrored)!==null&&x!==void 0?x:r.writableErrored)!==null&&I!==void 0?I:(T=r._readableState)===null||T===void 0?void 0:T.errorEmitted)!==null&&g!==void 0?g:(D=r._writableState)===null||D===void 0?void 0:D.errorEmitted)!==null&&p!==void 0?p:(W=r._readableState)===null||W===void 0?void 0:W.errored)!==null&&s!==void 0?s:!((J=r._writableState)===null||J===void 0)&&J.errored))}return $l={kDestroyed:a,isDisturbed:P,kIsDisturbed:u,isErrored:y,kIsErrored:l,isReadable:h,kIsReadable:d,isClosed:R,isDestroyed:M,isDuplexNodeStream:U,isFinished:k,isIterable:O,isReadableNodeStream:c,isReadableEnded:b,isReadableFinished:v,isReadableErrored:C,isNodeStream:F,isWritable:m,isWritableNodeStream:w,isWritableEnded:L,isWritableFinished:_,isWritableErrored:B,isServerRequest:E,isServerResponse:f,willEmitClose:S},$l}var zm;function _r(){if(zm)return sa.exports;zm=1;const e=wr(),{AbortError:i,codes:n}=gn(),{ERR_INVALID_ARG_TYPE:a,ERR_STREAM_PREMATURE_CLOSE:l}=n,{kEmptyObject:d,once:u}=Ei(),{validateAbortSignal:c,validateFunction:w,validateObject:U}=xa(),{Promise:F}=Kt(),{isClosed:O,isReadable:M,isReadableNodeStream:L,isReadableFinished:_,isReadableErrored:b,isWritable:v,isWritableNodeStream:h,isWritableFinished:m,isWritableErrored:k,isNodeStream:B,willEmitClose:C}=Lr();function R(S){return S.setHeader&&typeof S.abort=="function"}const A=()=>{};function f(S,P,y){var r,s;arguments.length===2?(y=P,P=d):P==null?P=d:U(P,"options"),w(y,"callback"),c(P.signal,"options.signal"),y=u(y);const p=(r=P.readable)!==null&&r!==void 0?r:L(S),g=(s=P.writable)!==null&&s!==void 0?s:h(S);if(!B(S))throw new a("stream","Stream",S);const I=S._writableState,x=S._readableState,q=()=>{S.writable||W()};let T=C(S)&&L(S)===p&&h(S)===g,D=m(S,!1);const W=()=>{D=!0,S.destroyed&&(T=!1),!(T&&(!S.readable||p))&&(!p||J)&&y.call(S)};let J=_(S,!1);const X=()=>{J=!0,S.destroyed&&(T=!1),!(T&&(!S.writable||g))&&(!g||D)&&y.call(S)},Q=ge=>{y.call(S,ge)};let re=O(S);const se=()=>{re=!0;const ge=k(S)||b(S);if(ge&&typeof ge!="boolean")return y.call(S,ge);if(p&&!J&&L(S,!0)&&!_(S,!1))return y.call(S,new l);if(g&&!D&&!m(S,!1))return y.call(S,new l);y.call(S)},ne=()=>{S.req.on("finish",W)};R(S)?(S.on("complete",W),T||S.on("abort",se),S.req?ne():S.on("request",ne)):g&&!I&&(S.on("end",q),S.on("close",q)),!T&&typeof S.aborted=="boolean"&&S.on("aborted",se),S.on("end",X),S.on("finish",W),P.error!==!1&&S.on("error",Q),S.on("close",se),re?e.nextTick(se):I!=null&&I.errorEmitted||x!=null&&x.errorEmitted?T||e.nextTick(se):(!p&&(!T||M(S))&&(D||v(S)===!1)||!g&&(!T||v(S))&&(J||M(S)===!1)||x&&S.req&&S.aborted)&&e.nextTick(se);const me=()=>{y=A,S.removeListener("aborted",se),S.removeListener("complete",W),S.removeListener("abort",se),S.removeListener("request",ne),S.req&&S.req.removeListener("finish",W),S.removeListener("end",q),S.removeListener("close",q),S.removeListener("finish",W),S.removeListener("end",X),S.removeListener("error",Q),S.removeListener("close",se)};if(P.signal&&!re){const ge=()=>{const Ae=y;me(),Ae.call(S,new i(void 0,{cause:P.signal.reason}))};if(P.signal.aborted)e.nextTick(ge);else{const Ae=y;y=u((...pe)=>{P.signal.removeEventListener("abort",ge),Ae.apply(S,pe)}),P.signal.addEventListener("abort",ge)}}return me}function E(S,P){return new F((y,r)=>{f(S,P,s=>{s?r(s):y()})})}return sa.exports=f,sa.exports.finished=E,sa.exports}var Wm;function pk(){if(Wm)return ra;Wm=1;const e=globalThis.AbortController||Xc.AbortController,{codes:{ERR_INVALID_ARG_TYPE:i,ERR_MISSING_ARGS:n,ERR_OUT_OF_RANGE:a},AbortError:l}=gn(),{validateAbortSignal:d,validateInteger:u,validateObject:c}=xa(),w=Kt().Symbol("kWeak"),{finished:U}=_r(),{ArrayPrototypePush:F,MathFloor:O,Number:M,NumberIsNaN:L,Promise:_,PromiseReject:b,PromisePrototypeThen:v,Symbol:h}=Kt(),m=h("kEmpty"),k=h("kEof");function B(x,q){if(typeof x!="function")throw new i("fn",["Function","AsyncFunction"],x);q!=null&&c(q,"options"),q?.signal!=null&&d(q.signal,"options.signal");let T=1;return q?.concurrency!=null&&(T=O(q.concurrency)),u(T,"concurrency",1),async function*(){var W,J;const X=new e,Q=this,re=[],se=X.signal,ne={signal:se},me=()=>X.abort();q!=null&&(W=q.signal)!==null&&W!==void 0&&W.aborted&&me(),q==null||(J=q.signal)===null||J===void 0||J.addEventListener("abort",me);let ge,Ae,pe=!1;function le(){pe=!0}async function ye(){try{for await(let z of Q){var de;if(pe)return;if(se.aborted)throw new l;try{z=x(z,ne)}catch(V){z=b(V)}z!==m&&(typeof((de=z)===null||de===void 0?void 0:de.catch)=="function"&&z.catch(le),re.push(z),ge&&(ge(),ge=null),!pe&&re.length&&re.length>=T&&await new _(V=>{Ae=V}))}re.push(k)}catch(z){const V=b(z);v(V,void 0,le),re.push(V)}finally{var Y;pe=!0,ge&&(ge(),ge=null),q==null||(Y=q.signal)===null||Y===void 0||Y.removeEventListener("abort",me)}}ye();try{for(;;){for(;re.length>0;){const de=await re[0];if(de===k)return;if(se.aborted)throw new l;de!==m&&(yield de),re.shift(),Ae&&(Ae(),Ae=null)}await new _(de=>{ge=de})}}finally{X.abort(),pe=!0,Ae&&(Ae(),Ae=null)}}.call(this)}function C(x=void 0){return x!=null&&c(x,"options"),x?.signal!=null&&d(x.signal,"options.signal"),async function*(){let T=0;for await(const W of this){var D;if(x!=null&&(D=x.signal)!==null&&D!==void 0&&D.aborted)throw new l({cause:x.signal.reason});yield[T++,W]}}.call(this)}async function R(x,q=void 0){for await(const T of S.call(this,x,q))return!0;return!1}async function A(x,q=void 0){if(typeof x!="function")throw new i("fn",["Function","AsyncFunction"],x);return!await R.call(this,async(...T)=>!await x(...T),q)}async function f(x,q){for await(const T of S.call(this,x,q))return T}async function E(x,q){if(typeof x!="function")throw new i("fn",["Function","AsyncFunction"],x);async function T(D,W){return await x(D,W),m}for await(const D of B.call(this,T,q));}function S(x,q){if(typeof x!="function")throw new i("fn",["Function","AsyncFunction"],x);async function T(D,W){return await x(D,W)?D:m}return B.call(this,T,q)}class P extends n{constructor(){super("reduce"),this.message="Reduce of an empty stream requires an initial value"}}async function y(x,q,T){var D;if(typeof x!="function")throw new i("reducer",["Function","AsyncFunction"],x);T!=null&&c(T,"options"),T?.signal!=null&&d(T.signal,"options.signal");let W=arguments.length>1;if(T!=null&&(D=T.signal)!==null&&D!==void 0&&D.aborted){const se=new l(void 0,{cause:T.signal.reason});throw this.once("error",()=>{}),await U(this.destroy(se)),se}const J=new e,X=J.signal;if(T!=null&&T.signal){const se={once:!0,[w]:this};T.signal.addEventListener("abort",()=>J.abort(),se)}let Q=!1;try{for await(const se of this){var re;if(Q=!0,T!=null&&(re=T.signal)!==null&&re!==void 0&&re.aborted)throw new l;W?q=await x(q,se,{signal:X}):(q=se,W=!0)}if(!Q&&!W)throw new P}finally{J.abort()}return q}async function r(x){x!=null&&c(x,"options"),x?.signal!=null&&d(x.signal,"options.signal");const q=[];for await(const D of this){var T;if(x!=null&&(T=x.signal)!==null&&T!==void 0&&T.aborted)throw new l(void 0,{cause:x.signal.reason});F(q,D)}return q}function s(x,q){const T=B.call(this,x,q);return async function*(){for await(const W of T)yield*W}.call(this)}function p(x){if(x=M(x),L(x))return 0;if(x<0)throw new a("number",">= 0",x);return x}function g(x,q=void 0){return q!=null&&c(q,"options"),q?.signal!=null&&d(q.signal,"options.signal"),x=p(x),async function*(){var D;if(q!=null&&(D=q.signal)!==null&&D!==void 0&&D.aborted)throw new l;for await(const J of this){var W;if(q!=null&&(W=q.signal)!==null&&W!==void 0&&W.aborted)throw new l;x--<=0&&(yield J)}}.call(this)}function I(x,q=void 0){return q!=null&&c(q,"options"),q?.signal!=null&&d(q.signal,"options.signal"),x=p(x),async function*(){var D;if(q!=null&&(D=q.signal)!==null&&D!==void 0&&D.aborted)throw new l;for await(const J of this){var W;if(q!=null&&(W=q.signal)!==null&&W!==void 0&&W.aborted)throw new l;if(x-- >0)yield J;else return}}.call(this)}return ra.streamReturningOperators={asIndexedPairs:C,drop:g,filter:S,flatMap:s,map:B,take:I},ra.promiseReturningOperators={every:A,forEach:E,reduce:y,toArray:r,some:R,find:f},ra}var ec,qm;function rs(){if(qm)return ec;qm=1;const e=wr(),{aggregateTwoErrors:i,codes:{ERR_MULTIPLE_CALLBACK:n},AbortError:a}=gn(),{Symbol:l}=Kt(),{kDestroyed:d,isDestroyed:u,isFinished:c,isServerRequest:w}=Lr(),U=l("kDestroy"),F=l("kConstruct");function O(S,P,y){S&&(S.stack,P&&!P.errored&&(P.errored=S),y&&!y.errored&&(y.errored=S))}function M(S,P){const y=this._readableState,r=this._writableState,s=r||y;return r&&r.destroyed||y&&y.destroyed?(typeof P=="function"&&P(),this):(O(S,r,y),r&&(r.destroyed=!0),y&&(y.destroyed=!0),s.constructed?L(this,S,P):this.once(U,function(p){L(this,i(p,S),P)}),this)}function L(S,P,y){let r=!1;function s(p){if(r)return;r=!0;const g=S._readableState,I=S._writableState;O(p,I,g),I&&(I.closed=!0),g&&(g.closed=!0),typeof y=="function"&&y(p),p?e.nextTick(_,S,p):e.nextTick(b,S)}try{S._destroy(P||null,s)}catch(p){s(p)}}function _(S,P){v(S,P),b(S)}function b(S){const P=S._readableState,y=S._writableState;y&&(y.closeEmitted=!0),P&&(P.closeEmitted=!0),(y&&y.emitClose||P&&P.emitClose)&&S.emit("close")}function v(S,P){const y=S._readableState,r=S._writableState;r&&r.errorEmitted||y&&y.errorEmitted||(r&&(r.errorEmitted=!0),y&&(y.errorEmitted=!0),S.emit("error",P))}function h(){const S=this._readableState,P=this._writableState;S&&(S.constructed=!0,S.closed=!1,S.closeEmitted=!1,S.destroyed=!1,S.errored=null,S.errorEmitted=!1,S.reading=!1,S.ended=S.readable===!1,S.endEmitted=S.readable===!1),P&&(P.constructed=!0,P.destroyed=!1,P.closed=!1,P.closeEmitted=!1,P.errored=null,P.errorEmitted=!1,P.finalCalled=!1,P.prefinished=!1,P.ended=P.writable===!1,P.ending=P.writable===!1,P.finished=P.writable===!1)}function m(S,P,y){const r=S._readableState,s=S._writableState;if(s&&s.destroyed||r&&r.destroyed)return this;r&&r.autoDestroy||s&&s.autoDestroy?S.destroy(P):P&&(P.stack,s&&!s.errored&&(s.errored=P),r&&!r.errored&&(r.errored=P),y?e.nextTick(v,S,P):v(S,P))}function k(S,P){if(typeof S._construct!="function")return;const y=S._readableState,r=S._writableState;y&&(y.constructed=!1),r&&(r.constructed=!1),S.once(F,P),!(S.listenerCount(F)>1)&&e.nextTick(B,S)}function B(S){let P=!1;function y(r){if(P){m(S,r??new n);return}P=!0;const s=S._readableState,p=S._writableState,g=p||s;s&&(s.constructed=!0),p&&(p.constructed=!0),g.destroyed?S.emit(U,r):r?m(S,r,!0):e.nextTick(C,S)}try{S._construct(y)}catch(r){y(r)}}function C(S){S.emit(F)}function R(S){return S&&S.setHeader&&typeof S.abort=="function"}function A(S){S.emit("close")}function f(S,P){S.emit("error",P),e.nextTick(A,S)}function E(S,P){!S||u(S)||(!P&&!c(S)&&(P=new a),w(S)?(S.socket=null,S.destroy(P)):R(S)?S.abort():R(S.req)?S.req.abort():typeof S.destroy=="function"?S.destroy(P):typeof S.close=="function"?S.close():P?e.nextTick(f,S,P):e.nextTick(A,S),S.destroyed||(S[d]=!0))}return ec={construct:k,destroyer:E,destroy:M,undestroy:h,errorOrDestroy:m},ec}var oa={exports:{}},Jm;function Yc(){if(Jm)return oa.exports;Jm=1;var e=typeof Reflect=="object"?Reflect:null,i=e&&typeof e.apply=="function"?e.apply:function(C,R,A){return Function.prototype.apply.call(C,R,A)},n;e&&typeof e.ownKeys=="function"?n=e.ownKeys:Object.getOwnPropertySymbols?n=function(C){return Object.getOwnPropertyNames(C).concat(Object.getOwnPropertySymbols(C))}:n=function(C){return Object.getOwnPropertyNames(C)};function a(B){console&&console.warn&&console.warn(B)}var l=Number.isNaN||function(C){return C!==C};function d(){d.init.call(this)}oa.exports=d,oa.exports.once=h,d.EventEmitter=d,d.prototype._events=void 0,d.prototype._eventsCount=0,d.prototype._maxListeners=void 0;var u=10;function c(B){if(typeof B!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof B)}Object.defineProperty(d,"defaultMaxListeners",{enumerable:!0,get:function(){return u},set:function(B){if(typeof B!="number"||B<0||l(B))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+B+".");u=B}}),d.init=function(){(this._events===void 0||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},d.prototype.setMaxListeners=function(C){if(typeof C!="number"||C<0||l(C))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+C+".");return this._maxListeners=C,this};function w(B){return B._maxListeners===void 0?d.defaultMaxListeners:B._maxListeners}d.prototype.getMaxListeners=function(){return w(this)},d.prototype.emit=function(C){for(var R=[],A=1;A<arguments.length;A++)R.push(arguments[A]);var f=C==="error",E=this._events;if(E!==void 0)f=f&&E.error===void 0;else if(!f)return!1;if(f){var S;if(R.length>0&&(S=R[0]),S instanceof Error)throw S;var P=new Error("Unhandled error."+(S?" ("+S.message+")":""));throw P.context=S,P}var y=E[C];if(y===void 0)return!1;if(typeof y=="function")i(y,this,R);else for(var r=y.length,s=_(y,r),A=0;A<r;++A)i(s[A],this,R);return!0};function U(B,C,R,A){var f,E,S;if(c(R),E=B._events,E===void 0?(E=B._events=Object.create(null),B._eventsCount=0):(E.newListener!==void 0&&(B.emit("newListener",C,R.listener?R.listener:R),E=B._events),S=E[C]),S===void 0)S=E[C]=R,++B._eventsCount;else if(typeof S=="function"?S=E[C]=A?[R,S]:[S,R]:A?S.unshift(R):S.push(R),f=w(B),f>0&&S.length>f&&!S.warned){S.warned=!0;var P=new Error("Possible EventEmitter memory leak detected. "+S.length+" "+String(C)+" listeners added. Use emitter.setMaxListeners() to increase limit");P.name="MaxListenersExceededWarning",P.emitter=B,P.type=C,P.count=S.length,a(P)}return B}d.prototype.addListener=function(C,R){return U(this,C,R,!1)},d.prototype.on=d.prototype.addListener,d.prototype.prependListener=function(C,R){return U(this,C,R,!0)};function F(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function O(B,C,R){var A={fired:!1,wrapFn:void 0,target:B,type:C,listener:R},f=F.bind(A);return f.listener=R,A.wrapFn=f,f}d.prototype.once=function(C,R){return c(R),this.on(C,O(this,C,R)),this},d.prototype.prependOnceListener=function(C,R){return c(R),this.prependListener(C,O(this,C,R)),this},d.prototype.removeListener=function(C,R){var A,f,E,S,P;if(c(R),f=this._events,f===void 0)return this;if(A=f[C],A===void 0)return this;if(A===R||A.listener===R)--this._eventsCount===0?this._events=Object.create(null):(delete f[C],f.removeListener&&this.emit("removeListener",C,A.listener||R));else if(typeof A!="function"){for(E=-1,S=A.length-1;S>=0;S--)if(A[S]===R||A[S].listener===R){P=A[S].listener,E=S;break}if(E<0)return this;E===0?A.shift():b(A,E),A.length===1&&(f[C]=A[0]),f.removeListener!==void 0&&this.emit("removeListener",C,P||R)}return this},d.prototype.off=d.prototype.removeListener,d.prototype.removeAllListeners=function(C){var R,A,f;if(A=this._events,A===void 0)return this;if(A.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):A[C]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete A[C]),this;if(arguments.length===0){var E=Object.keys(A),S;for(f=0;f<E.length;++f)S=E[f],S!=="removeListener"&&this.removeAllListeners(S);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if(R=A[C],typeof R=="function")this.removeListener(C,R);else if(R!==void 0)for(f=R.length-1;f>=0;f--)this.removeListener(C,R[f]);return this};function M(B,C,R){var A=B._events;if(A===void 0)return[];var f=A[C];return f===void 0?[]:typeof f=="function"?R?[f.listener||f]:[f]:R?v(f):_(f,f.length)}d.prototype.listeners=function(C){return M(this,C,!0)},d.prototype.rawListeners=function(C){return M(this,C,!1)},d.listenerCount=function(B,C){return typeof B.listenerCount=="function"?B.listenerCount(C):L.call(B,C)},d.prototype.listenerCount=L;function L(B){var C=this._events;if(C!==void 0){var R=C[B];if(typeof R=="function")return 1;if(R!==void 0)return R.length}return 0}d.prototype.eventNames=function(){return this._eventsCount>0?n(this._events):[]};function _(B,C){for(var R=new Array(C),A=0;A<C;++A)R[A]=B[A];return R}function b(B,C){for(;C+1<B.length;C++)B[C]=B[C+1];B.pop()}function v(B){for(var C=new Array(B.length),R=0;R<C.length;++R)C[R]=B[R].listener||B[R];return C}function h(B,C){return new Promise(function(R,A){function f(S){B.removeListener(C,E),A(S)}function E(){typeof B.removeListener=="function"&&B.removeListener("error",f),R([].slice.call(arguments))}k(B,C,E,{once:!0}),C!=="error"&&m(B,f,{once:!0})})}function m(B,C,R){typeof B.on=="function"&&k(B,"error",C,R)}function k(B,C,R,A){if(typeof B.on=="function")A.once?B.once(C,R):B.on(C,R);else if(typeof B.addEventListener=="function")B.addEventListener(C,function f(E){A.once&&B.removeEventListener(C,f),R(E)});else throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof B)}return oa.exports}var tc,Gm;function $c(){if(Gm)return tc;Gm=1;const{ArrayIsArray:e,ObjectSetPrototypeOf:i}=Kt(),{EventEmitter:n}=Yc();function a(d){n.call(this,d)}i(a.prototype,n.prototype),i(a,n),a.prototype.pipe=function(d,u){const c=this;function w(b){d.writable&&d.write(b)===!1&&c.pause&&c.pause()}c.on("data",w);function U(){c.readable&&c.resume&&c.resume()}d.on("drain",U),!d._isStdio&&(!u||u.end!==!1)&&(c.on("end",O),c.on("close",M));let F=!1;function O(){F||(F=!0,d.end())}function M(){F||(F=!0,typeof d.destroy=="function"&&d.destroy())}function L(b){_(),n.listenerCount(this,"error")===0&&this.emit("error",b)}l(c,"error",L),l(d,"error",L);function _(){c.removeListener("data",w),d.removeListener("drain",U),c.removeListener("end",O),c.removeListener("close",M),c.removeListener("error",L),d.removeListener("error",L),c.removeListener("end",_),c.removeListener("close",_),d.removeListener("close",_)}return c.on("end",_),c.on("close",_),d.on("close",_),d.emit("pipe",c),d};function l(d,u,c){if(typeof d.prependListener=="function")return d.prependListener(u,c);!d._events||!d._events[u]?d.on(u,c):e(d._events[u])?d._events[u].unshift(c):d._events[u]=[c,d._events[u]]}return tc={Stream:a,prependListener:l},tc}var nc={exports:{}},Hm;function ef(){return Hm||(Hm=1,(function(e){const{AbortError:i,codes:n}=gn(),a=_r(),{ERR_INVALID_ARG_TYPE:l}=n,d=(c,w)=>{if(typeof c!="object"||!("aborted"in c))throw new l(w,"AbortSignal",c)};function u(c){return!!(c&&typeof c.pipe=="function")}e.exports.addAbortSignal=function(w,U){if(d(w,"signal"),!u(U))throw new l("stream","stream.Stream",U);return e.exports.addAbortSignalNoValidate(w,U)},e.exports.addAbortSignalNoValidate=function(c,w){if(typeof c!="object"||!("aborted"in c))return w;const U=()=>{w.destroy(new i(void 0,{cause:c.reason}))};return c.aborted?U():(c.addEventListener("abort",U),a(w,()=>c.removeEventListener("abort",U))),w}})(nc)),nc.exports}var ic,Km;function mk(){if(Km)return ic;Km=1;const{StringPrototypeSlice:e,SymbolIterator:i,TypedArrayPrototypeSet:n,Uint8Array:a}=Kt(),{Buffer:l}=Sr(),{inspect:d}=Ei();return ic=class{constructor(){this.head=null,this.tail=null,this.length=0}push(c){const w={data:c,next:null};this.length>0?this.tail.next=w:this.head=w,this.tail=w,++this.length}unshift(c){const w={data:c,next:this.head};this.length===0&&(this.tail=w),this.head=w,++this.length}shift(){if(this.length===0)return;const c=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,c}clear(){this.head=this.tail=null,this.length=0}join(c){if(this.length===0)return"";let w=this.head,U=""+w.data;for(;(w=w.next)!==null;)U+=c+w.data;return U}concat(c){if(this.length===0)return l.alloc(0);const w=l.allocUnsafe(c>>>0);let U=this.head,F=0;for(;U;)n(w,U.data,F),F+=U.data.length,U=U.next;return w}consume(c,w){const U=this.head.data;if(c<U.length){const F=U.slice(0,c);return this.head.data=U.slice(c),F}return c===U.length?this.shift():w?this._getString(c):this._getBuffer(c)}first(){return this.head.data}*[i](){for(let c=this.head;c;c=c.next)yield c.data}_getString(c){let w="",U=this.head,F=0;do{const O=U.data;if(c>O.length)w+=O,c-=O.length;else{c===O.length?(w+=O,++F,U.next?this.head=U.next:this.head=this.tail=null):(w+=e(O,0,c),this.head=U,U.data=e(O,c));break}++F}while((U=U.next)!==null);return this.length-=F,w}_getBuffer(c){const w=l.allocUnsafe(c),U=c;let F=this.head,O=0;do{const M=F.data;if(c>M.length)n(w,M,U-c),c-=M.length;else{c===M.length?(n(w,M,U-c),++O,F.next?this.head=F.next:this.head=this.tail=null):(n(w,new a(M.buffer,M.byteOffset,c),U-c),this.head=F,F.data=M.slice(c));break}++O}while((F=F.next)!==null);return this.length-=O,w}[Symbol.for("nodejs.util.inspect.custom")](c,w){return d(this,{...w,depth:0,customInspect:!1})}},ic}var rc,Vm;function tf(){if(Vm)return rc;Vm=1;const{MathFloor:e,NumberIsInteger:i}=Kt(),{ERR_INVALID_ARG_VALUE:n}=gn().codes;function a(u,c,w){return u.highWaterMark!=null?u.highWaterMark:c?u[w]:null}function l(u){return u?16:16*1024}function d(u,c,w,U){const F=a(c,U,w);if(F!=null){if(!i(F)||F<0){const O=U?`options.${w}`:"options.highWaterMark";throw new n(O,F)}return e(F)}return l(u.objectMode)}return rc={getHighWaterMark:d,getDefaultHighWaterMark:l},rc}var sc={},aa={exports:{}},oc={};var Zm;function yk(){return Zm||(Zm=1,(function(e){var i=Jc(),n=Kg(),a=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;e.Buffer=c,e.SlowBuffer=m,e.INSPECT_MAX_BYTES=50;var l=2147483647;e.kMaxLength=l,c.TYPED_ARRAY_SUPPORT=d(),!c.TYPED_ARRAY_SUPPORT&&typeof console<"u"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function d(){try{var Y=new Uint8Array(1),z={foo:function(){return 42}};return Object.setPrototypeOf(z,Uint8Array.prototype),Object.setPrototypeOf(Y,z),Y.foo()===42}catch{return!1}}Object.defineProperty(c.prototype,"parent",{enumerable:!0,get:function(){if(c.isBuffer(this))return this.buffer}}),Object.defineProperty(c.prototype,"offset",{enumerable:!0,get:function(){if(c.isBuffer(this))return this.byteOffset}});function u(Y){if(Y>l)throw new RangeError('The value "'+Y+'" is invalid for option "size"');var z=new Uint8Array(Y);return Object.setPrototypeOf(z,c.prototype),z}function c(Y,z,V){if(typeof Y=="number"){if(typeof z=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return O(Y)}return w(Y,z,V)}c.poolSize=8192;function w(Y,z,V){if(typeof Y=="string")return M(Y,z);if(ArrayBuffer.isView(Y))return _(Y);if(Y==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof Y);if(le(Y,ArrayBuffer)||Y&&le(Y.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(le(Y,SharedArrayBuffer)||Y&&le(Y.buffer,SharedArrayBuffer)))return b(Y,z,V);if(typeof Y=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');var ue=Y.valueOf&&Y.valueOf();if(ue!=null&&ue!==Y)return c.from(ue,z,V);var Te=v(Y);if(Te)return Te;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof Y[Symbol.toPrimitive]=="function")return c.from(Y[Symbol.toPrimitive]("string"),z,V);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof Y)}c.from=function(Y,z,V){return w(Y,z,V)},Object.setPrototypeOf(c.prototype,Uint8Array.prototype),Object.setPrototypeOf(c,Uint8Array);function U(Y){if(typeof Y!="number")throw new TypeError('"size" argument must be of type number');if(Y<0)throw new RangeError('The value "'+Y+'" is invalid for option "size"')}function F(Y,z,V){return U(Y),Y<=0?u(Y):z!==void 0?typeof V=="string"?u(Y).fill(z,V):u(Y).fill(z):u(Y)}c.alloc=function(Y,z,V){return F(Y,z,V)};function O(Y){return U(Y),u(Y<0?0:h(Y)|0)}c.allocUnsafe=function(Y){return O(Y)},c.allocUnsafeSlow=function(Y){return O(Y)};function M(Y,z){if((typeof z!="string"||z==="")&&(z="utf8"),!c.isEncoding(z))throw new TypeError("Unknown encoding: "+z);var V=k(Y,z)|0,ue=u(V),Te=ue.write(Y,z);return Te!==V&&(ue=ue.slice(0,Te)),ue}function L(Y){for(var z=Y.length<0?0:h(Y.length)|0,V=u(z),ue=0;ue<z;ue+=1)V[ue]=Y[ue]&255;return V}function _(Y){if(le(Y,Uint8Array)){var z=new Uint8Array(Y);return b(z.buffer,z.byteOffset,z.byteLength)}return L(Y)}function b(Y,z,V){if(z<0||Y.byteLength<z)throw new RangeError('"offset" is outside of buffer bounds');if(Y.byteLength<z+(V||0))throw new RangeError('"length" is outside of buffer bounds');var ue;return z===void 0&&V===void 0?ue=new Uint8Array(Y):V===void 0?ue=new Uint8Array(Y,z):ue=new Uint8Array(Y,z,V),Object.setPrototypeOf(ue,c.prototype),ue}function v(Y){if(c.isBuffer(Y)){var z=h(Y.length)|0,V=u(z);return V.length===0||Y.copy(V,0,0,z),V}if(Y.length!==void 0)return typeof Y.length!="number"||ye(Y.length)?u(0):L(Y);if(Y.type==="Buffer"&&Array.isArray(Y.data))return L(Y.data)}function h(Y){if(Y>=l)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+l.toString(16)+" bytes");return Y|0}function m(Y){return+Y!=Y&&(Y=0),c.alloc(+Y)}c.isBuffer=function(z){return z!=null&&z._isBuffer===!0&&z!==c.prototype},c.compare=function(z,V){if(le(z,Uint8Array)&&(z=c.from(z,z.offset,z.byteLength)),le(V,Uint8Array)&&(V=c.from(V,V.offset,V.byteLength)),!c.isBuffer(z)||!c.isBuffer(V))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(z===V)return 0;for(var ue=z.length,Te=V.length,Ie=0,Ce=Math.min(ue,Te);Ie<Ce;++Ie)if(z[Ie]!==V[Ie]){ue=z[Ie],Te=V[Ie];break}return ue<Te?-1:Te<ue?1:0},c.isEncoding=function(z){switch(String(z).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},c.concat=function(z,V){if(!Array.isArray(z))throw new TypeError('"list" argument must be an Array of Buffers');if(z.length===0)return c.alloc(0);var ue;if(V===void 0)for(V=0,ue=0;ue<z.length;++ue)V+=z[ue].length;var Te=c.allocUnsafe(V),Ie=0;for(ue=0;ue<z.length;++ue){var Ce=z[ue];if(le(Ce,Uint8Array))Ie+Ce.length>Te.length?c.from(Ce).copy(Te,Ie):Uint8Array.prototype.set.call(Te,Ce,Ie);else if(c.isBuffer(Ce))Ce.copy(Te,Ie);else throw new TypeError('"list" argument must be an Array of Buffers');Ie+=Ce.length}return Te};function k(Y,z){if(c.isBuffer(Y))return Y.length;if(ArrayBuffer.isView(Y)||le(Y,ArrayBuffer))return Y.byteLength;if(typeof Y!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof Y);var V=Y.length,ue=arguments.length>2&&arguments[2]===!0;if(!ue&&V===0)return 0;for(var Te=!1;;)switch(z){case"ascii":case"latin1":case"binary":return V;case"utf8":case"utf-8":return ne(Y).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return V*2;case"hex":return V>>>1;case"base64":return Ae(Y).length;default:if(Te)return ue?-1:ne(Y).length;z=(""+z).toLowerCase(),Te=!0}}c.byteLength=k;function B(Y,z,V){var ue=!1;if((z===void 0||z<0)&&(z=0),z>this.length||((V===void 0||V>this.length)&&(V=this.length),V<=0)||(V>>>=0,z>>>=0,V<=z))return"";for(Y||(Y="utf8");;)switch(Y){case"hex":return q(this,z,V);case"utf8":case"utf-8":return s(this,z,V);case"ascii":return I(this,z,V);case"latin1":case"binary":return x(this,z,V);case"base64":return r(this,z,V);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return T(this,z,V);default:if(ue)throw new TypeError("Unknown encoding: "+Y);Y=(Y+"").toLowerCase(),ue=!0}}c.prototype._isBuffer=!0;function C(Y,z,V){var ue=Y[z];Y[z]=Y[V],Y[V]=ue}c.prototype.swap16=function(){var z=this.length;if(z%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var V=0;V<z;V+=2)C(this,V,V+1);return this},c.prototype.swap32=function(){var z=this.length;if(z%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var V=0;V<z;V+=4)C(this,V,V+3),C(this,V+1,V+2);return this},c.prototype.swap64=function(){var z=this.length;if(z%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var V=0;V<z;V+=8)C(this,V,V+7),C(this,V+1,V+6),C(this,V+2,V+5),C(this,V+3,V+4);return this},c.prototype.toString=function(){var z=this.length;return z===0?"":arguments.length===0?s(this,0,z):B.apply(this,arguments)},c.prototype.toLocaleString=c.prototype.toString,c.prototype.equals=function(z){if(!c.isBuffer(z))throw new TypeError("Argument must be a Buffer");return this===z?!0:c.compare(this,z)===0},c.prototype.inspect=function(){var z="",V=e.INSPECT_MAX_BYTES;return z=this.toString("hex",0,V).replace(/(.{2})/g,"$1 ").trim(),this.length>V&&(z+=" ... "),"<Buffer "+z+">"},a&&(c.prototype[a]=c.prototype.inspect),c.prototype.compare=function(z,V,ue,Te,Ie){if(le(z,Uint8Array)&&(z=c.from(z,z.offset,z.byteLength)),!c.isBuffer(z))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof z);if(V===void 0&&(V=0),ue===void 0&&(ue=z?z.length:0),Te===void 0&&(Te=0),Ie===void 0&&(Ie=this.length),V<0||ue>z.length||Te<0||Ie>this.length)throw new RangeError("out of range index");if(Te>=Ie&&V>=ue)return 0;if(Te>=Ie)return-1;if(V>=ue)return 1;if(V>>>=0,ue>>>=0,Te>>>=0,Ie>>>=0,this===z)return 0;for(var Ce=Ie-Te,We=ue-V,Ge=Math.min(Ce,We),ee=this.slice(Te,Ie),te=z.slice(V,ue),K=0;K<Ge;++K)if(ee[K]!==te[K]){Ce=ee[K],We=te[K];break}return Ce<We?-1:We<Ce?1:0};function R(Y,z,V,ue,Te){if(Y.length===0)return-1;if(typeof V=="string"?(ue=V,V=0):V>2147483647?V=2147483647:V<-2147483648&&(V=-2147483648),V=+V,ye(V)&&(V=Te?0:Y.length-1),V<0&&(V=Y.length+V),V>=Y.length){if(Te)return-1;V=Y.length-1}else if(V<0)if(Te)V=0;else return-1;if(typeof z=="string"&&(z=c.from(z,ue)),c.isBuffer(z))return z.length===0?-1:A(Y,z,V,ue,Te);if(typeof z=="number")return z=z&255,typeof Uint8Array.prototype.indexOf=="function"?Te?Uint8Array.prototype.indexOf.call(Y,z,V):Uint8Array.prototype.lastIndexOf.call(Y,z,V):A(Y,[z],V,ue,Te);throw new TypeError("val must be string, number or Buffer")}function A(Y,z,V,ue,Te){var Ie=1,Ce=Y.length,We=z.length;if(ue!==void 0&&(ue=String(ue).toLowerCase(),ue==="ucs2"||ue==="ucs-2"||ue==="utf16le"||ue==="utf-16le")){if(Y.length<2||z.length<2)return-1;Ie=2,Ce/=2,We/=2,V/=2}function Ge(G,ce){return Ie===1?G[ce]:G.readUInt16BE(ce*Ie)}var ee;if(Te){var te=-1;for(ee=V;ee<Ce;ee++)if(Ge(Y,ee)===Ge(z,te===-1?0:ee-te)){if(te===-1&&(te=ee),ee-te+1===We)return te*Ie}else te!==-1&&(ee-=ee-te),te=-1}else for(V+We>Ce&&(V=Ce-We),ee=V;ee>=0;ee--){for(var K=!0,j=0;j<We;j++)if(Ge(Y,ee+j)!==Ge(z,j)){K=!1;break}if(K)return ee}return-1}c.prototype.includes=function(z,V,ue){return this.indexOf(z,V,ue)!==-1},c.prototype.indexOf=function(z,V,ue){return R(this,z,V,ue,!0)},c.prototype.lastIndexOf=function(z,V,ue){return R(this,z,V,ue,!1)};function f(Y,z,V,ue){V=Number(V)||0;var Te=Y.length-V;ue?(ue=Number(ue),ue>Te&&(ue=Te)):ue=Te;var Ie=z.length;ue>Ie/2&&(ue=Ie/2);for(var Ce=0;Ce<ue;++Ce){var We=parseInt(z.substr(Ce*2,2),16);if(ye(We))return Ce;Y[V+Ce]=We}return Ce}function E(Y,z,V,ue){return pe(ne(z,Y.length-V),Y,V,ue)}function S(Y,z,V,ue){return pe(me(z),Y,V,ue)}function P(Y,z,V,ue){return pe(Ae(z),Y,V,ue)}function y(Y,z,V,ue){return pe(ge(z,Y.length-V),Y,V,ue)}c.prototype.write=function(z,V,ue,Te){if(V===void 0)Te="utf8",ue=this.length,V=0;else if(ue===void 0&&typeof V=="string")Te=V,ue=this.length,V=0;else if(isFinite(V))V=V>>>0,isFinite(ue)?(ue=ue>>>0,Te===void 0&&(Te="utf8")):(Te=ue,ue=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var Ie=this.length-V;if((ue===void 0||ue>Ie)&&(ue=Ie),z.length>0&&(ue<0||V<0)||V>this.length)throw new RangeError("Attempt to write outside buffer bounds");Te||(Te="utf8");for(var Ce=!1;;)switch(Te){case"hex":return f(this,z,V,ue);case"utf8":case"utf-8":return E(this,z,V,ue);case"ascii":case"latin1":case"binary":return S(this,z,V,ue);case"base64":return P(this,z,V,ue);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return y(this,z,V,ue);default:if(Ce)throw new TypeError("Unknown encoding: "+Te);Te=(""+Te).toLowerCase(),Ce=!0}},c.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function r(Y,z,V){return z===0&&V===Y.length?i.fromByteArray(Y):i.fromByteArray(Y.slice(z,V))}function s(Y,z,V){V=Math.min(Y.length,V);for(var ue=[],Te=z;Te<V;){var Ie=Y[Te],Ce=null,We=Ie>239?4:Ie>223?3:Ie>191?2:1;if(Te+We<=V){var Ge,ee,te,K;switch(We){case 1:Ie<128&&(Ce=Ie);break;case 2:Ge=Y[Te+1],(Ge&192)===128&&(K=(Ie&31)<<6|Ge&63,K>127&&(Ce=K));break;case 3:Ge=Y[Te+1],ee=Y[Te+2],(Ge&192)===128&&(ee&192)===128&&(K=(Ie&15)<<12|(Ge&63)<<6|ee&63,K>2047&&(K<55296||K>57343)&&(Ce=K));break;case 4:Ge=Y[Te+1],ee=Y[Te+2],te=Y[Te+3],(Ge&192)===128&&(ee&192)===128&&(te&192)===128&&(K=(Ie&15)<<18|(Ge&63)<<12|(ee&63)<<6|te&63,K>65535&&K<1114112&&(Ce=K))}}Ce===null?(Ce=65533,We=1):Ce>65535&&(Ce-=65536,ue.push(Ce>>>10&1023|55296),Ce=56320|Ce&1023),ue.push(Ce),Te+=We}return g(ue)}var p=4096;function g(Y){var z=Y.length;if(z<=p)return String.fromCharCode.apply(String,Y);for(var V="",ue=0;ue<z;)V+=String.fromCharCode.apply(String,Y.slice(ue,ue+=p));return V}function I(Y,z,V){var ue="";V=Math.min(Y.length,V);for(var Te=z;Te<V;++Te)ue+=String.fromCharCode(Y[Te]&127);return ue}function x(Y,z,V){var ue="";V=Math.min(Y.length,V);for(var Te=z;Te<V;++Te)ue+=String.fromCharCode(Y[Te]);return ue}function q(Y,z,V){var ue=Y.length;(!z||z<0)&&(z=0),(!V||V<0||V>ue)&&(V=ue);for(var Te="",Ie=z;Ie<V;++Ie)Te+=de[Y[Ie]];return Te}function T(Y,z,V){for(var ue=Y.slice(z,V),Te="",Ie=0;Ie<ue.length-1;Ie+=2)Te+=String.fromCharCode(ue[Ie]+ue[Ie+1]*256);return Te}c.prototype.slice=function(z,V){var ue=this.length;z=~~z,V=V===void 0?ue:~~V,z<0?(z+=ue,z<0&&(z=0)):z>ue&&(z=ue),V<0?(V+=ue,V<0&&(V=0)):V>ue&&(V=ue),V<z&&(V=z);var Te=this.subarray(z,V);return Object.setPrototypeOf(Te,c.prototype),Te};function D(Y,z,V){if(Y%1!==0||Y<0)throw new RangeError("offset is not uint");if(Y+z>V)throw new RangeError("Trying to access beyond buffer length")}c.prototype.readUintLE=c.prototype.readUIntLE=function(z,V,ue){z=z>>>0,V=V>>>0,ue||D(z,V,this.length);for(var Te=this[z],Ie=1,Ce=0;++Ce<V&&(Ie*=256);)Te+=this[z+Ce]*Ie;return Te},c.prototype.readUintBE=c.prototype.readUIntBE=function(z,V,ue){z=z>>>0,V=V>>>0,ue||D(z,V,this.length);for(var Te=this[z+--V],Ie=1;V>0&&(Ie*=256);)Te+=this[z+--V]*Ie;return Te},c.prototype.readUint8=c.prototype.readUInt8=function(z,V){return z=z>>>0,V||D(z,1,this.length),this[z]},c.prototype.readUint16LE=c.prototype.readUInt16LE=function(z,V){return z=z>>>0,V||D(z,2,this.length),this[z]|this[z+1]<<8},c.prototype.readUint16BE=c.prototype.readUInt16BE=function(z,V){return z=z>>>0,V||D(z,2,this.length),this[z]<<8|this[z+1]},c.prototype.readUint32LE=c.prototype.readUInt32LE=function(z,V){return z=z>>>0,V||D(z,4,this.length),(this[z]|this[z+1]<<8|this[z+2]<<16)+this[z+3]*16777216},c.prototype.readUint32BE=c.prototype.readUInt32BE=function(z,V){return z=z>>>0,V||D(z,4,this.length),this[z]*16777216+(this[z+1]<<16|this[z+2]<<8|this[z+3])},c.prototype.readIntLE=function(z,V,ue){z=z>>>0,V=V>>>0,ue||D(z,V,this.length);for(var Te=this[z],Ie=1,Ce=0;++Ce<V&&(Ie*=256);)Te+=this[z+Ce]*Ie;return Ie*=128,Te>=Ie&&(Te-=Math.pow(2,8*V)),Te},c.prototype.readIntBE=function(z,V,ue){z=z>>>0,V=V>>>0,ue||D(z,V,this.length);for(var Te=V,Ie=1,Ce=this[z+--Te];Te>0&&(Ie*=256);)Ce+=this[z+--Te]*Ie;return Ie*=128,Ce>=Ie&&(Ce-=Math.pow(2,8*V)),Ce},c.prototype.readInt8=function(z,V){return z=z>>>0,V||D(z,1,this.length),this[z]&128?(255-this[z]+1)*-1:this[z]},c.prototype.readInt16LE=function(z,V){z=z>>>0,V||D(z,2,this.length);var ue=this[z]|this[z+1]<<8;return ue&32768?ue|4294901760:ue},c.prototype.readInt16BE=function(z,V){z=z>>>0,V||D(z,2,this.length);var ue=this[z+1]|this[z]<<8;return ue&32768?ue|4294901760:ue},c.prototype.readInt32LE=function(z,V){return z=z>>>0,V||D(z,4,this.length),this[z]|this[z+1]<<8|this[z+2]<<16|this[z+3]<<24},c.prototype.readInt32BE=function(z,V){return z=z>>>0,V||D(z,4,this.length),this[z]<<24|this[z+1]<<16|this[z+2]<<8|this[z+3]},c.prototype.readFloatLE=function(z,V){return z=z>>>0,V||D(z,4,this.length),n.read(this,z,!0,23,4)},c.prototype.readFloatBE=function(z,V){return z=z>>>0,V||D(z,4,this.length),n.read(this,z,!1,23,4)},c.prototype.readDoubleLE=function(z,V){return z=z>>>0,V||D(z,8,this.length),n.read(this,z,!0,52,8)},c.prototype.readDoubleBE=function(z,V){return z=z>>>0,V||D(z,8,this.length),n.read(this,z,!1,52,8)};function W(Y,z,V,ue,Te,Ie){if(!c.isBuffer(Y))throw new TypeError('"buffer" argument must be a Buffer instance');if(z>Te||z<Ie)throw new RangeError('"value" argument is out of bounds');if(V+ue>Y.length)throw new RangeError("Index out of range")}c.prototype.writeUintLE=c.prototype.writeUIntLE=function(z,V,ue,Te){if(z=+z,V=V>>>0,ue=ue>>>0,!Te){var Ie=Math.pow(2,8*ue)-1;W(this,z,V,ue,Ie,0)}var Ce=1,We=0;for(this[V]=z&255;++We<ue&&(Ce*=256);)this[V+We]=z/Ce&255;return V+ue},c.prototype.writeUintBE=c.prototype.writeUIntBE=function(z,V,ue,Te){if(z=+z,V=V>>>0,ue=ue>>>0,!Te){var Ie=Math.pow(2,8*ue)-1;W(this,z,V,ue,Ie,0)}var Ce=ue-1,We=1;for(this[V+Ce]=z&255;--Ce>=0&&(We*=256);)this[V+Ce]=z/We&255;return V+ue},c.prototype.writeUint8=c.prototype.writeUInt8=function(z,V,ue){return z=+z,V=V>>>0,ue||W(this,z,V,1,255,0),this[V]=z&255,V+1},c.prototype.writeUint16LE=c.prototype.writeUInt16LE=function(z,V,ue){return z=+z,V=V>>>0,ue||W(this,z,V,2,65535,0),this[V]=z&255,this[V+1]=z>>>8,V+2},c.prototype.writeUint16BE=c.prototype.writeUInt16BE=function(z,V,ue){return z=+z,V=V>>>0,ue||W(this,z,V,2,65535,0),this[V]=z>>>8,this[V+1]=z&255,V+2},c.prototype.writeUint32LE=c.prototype.writeUInt32LE=function(z,V,ue){return z=+z,V=V>>>0,ue||W(this,z,V,4,4294967295,0),this[V+3]=z>>>24,this[V+2]=z>>>16,this[V+1]=z>>>8,this[V]=z&255,V+4},c.prototype.writeUint32BE=c.prototype.writeUInt32BE=function(z,V,ue){return z=+z,V=V>>>0,ue||W(this,z,V,4,4294967295,0),this[V]=z>>>24,this[V+1]=z>>>16,this[V+2]=z>>>8,this[V+3]=z&255,V+4},c.prototype.writeIntLE=function(z,V,ue,Te){if(z=+z,V=V>>>0,!Te){var Ie=Math.pow(2,8*ue-1);W(this,z,V,ue,Ie-1,-Ie)}var Ce=0,We=1,Ge=0;for(this[V]=z&255;++Ce<ue&&(We*=256);)z<0&&Ge===0&&this[V+Ce-1]!==0&&(Ge=1),this[V+Ce]=(z/We>>0)-Ge&255;return V+ue},c.prototype.writeIntBE=function(z,V,ue,Te){if(z=+z,V=V>>>0,!Te){var Ie=Math.pow(2,8*ue-1);W(this,z,V,ue,Ie-1,-Ie)}var Ce=ue-1,We=1,Ge=0;for(this[V+Ce]=z&255;--Ce>=0&&(We*=256);)z<0&&Ge===0&&this[V+Ce+1]!==0&&(Ge=1),this[V+Ce]=(z/We>>0)-Ge&255;return V+ue},c.prototype.writeInt8=function(z,V,ue){return z=+z,V=V>>>0,ue||W(this,z,V,1,127,-128),z<0&&(z=255+z+1),this[V]=z&255,V+1},c.prototype.writeInt16LE=function(z,V,ue){return z=+z,V=V>>>0,ue||W(this,z,V,2,32767,-32768),this[V]=z&255,this[V+1]=z>>>8,V+2},c.prototype.writeInt16BE=function(z,V,ue){return z=+z,V=V>>>0,ue||W(this,z,V,2,32767,-32768),this[V]=z>>>8,this[V+1]=z&255,V+2},c.prototype.writeInt32LE=function(z,V,ue){return z=+z,V=V>>>0,ue||W(this,z,V,4,2147483647,-2147483648),this[V]=z&255,this[V+1]=z>>>8,this[V+2]=z>>>16,this[V+3]=z>>>24,V+4},c.prototype.writeInt32BE=function(z,V,ue){return z=+z,V=V>>>0,ue||W(this,z,V,4,2147483647,-2147483648),z<0&&(z=4294967295+z+1),this[V]=z>>>24,this[V+1]=z>>>16,this[V+2]=z>>>8,this[V+3]=z&255,V+4};function J(Y,z,V,ue,Te,Ie){if(V+ue>Y.length)throw new RangeError("Index out of range");if(V<0)throw new RangeError("Index out of range")}function X(Y,z,V,ue,Te){return z=+z,V=V>>>0,Te||J(Y,z,V,4),n.write(Y,z,V,ue,23,4),V+4}c.prototype.writeFloatLE=function(z,V,ue){return X(this,z,V,!0,ue)},c.prototype.writeFloatBE=function(z,V,ue){return X(this,z,V,!1,ue)};function Q(Y,z,V,ue,Te){return z=+z,V=V>>>0,Te||J(Y,z,V,8),n.write(Y,z,V,ue,52,8),V+8}c.prototype.writeDoubleLE=function(z,V,ue){return Q(this,z,V,!0,ue)},c.prototype.writeDoubleBE=function(z,V,ue){return Q(this,z,V,!1,ue)},c.prototype.copy=function(z,V,ue,Te){if(!c.isBuffer(z))throw new TypeError("argument should be a Buffer");if(ue||(ue=0),!Te&&Te!==0&&(Te=this.length),V>=z.length&&(V=z.length),V||(V=0),Te>0&&Te<ue&&(Te=ue),Te===ue||z.length===0||this.length===0)return 0;if(V<0)throw new RangeError("targetStart out of bounds");if(ue<0||ue>=this.length)throw new RangeError("Index out of range");if(Te<0)throw new RangeError("sourceEnd out of bounds");Te>this.length&&(Te=this.length),z.length-V<Te-ue&&(Te=z.length-V+ue);var Ie=Te-ue;return this===z&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(V,ue,Te):Uint8Array.prototype.set.call(z,this.subarray(ue,Te),V),Ie},c.prototype.fill=function(z,V,ue,Te){if(typeof z=="string"){if(typeof V=="string"?(Te=V,V=0,ue=this.length):typeof ue=="string"&&(Te=ue,ue=this.length),Te!==void 0&&typeof Te!="string")throw new TypeError("encoding must be a string");if(typeof Te=="string"&&!c.isEncoding(Te))throw new TypeError("Unknown encoding: "+Te);if(z.length===1){var Ie=z.charCodeAt(0);(Te==="utf8"&&Ie<128||Te==="latin1")&&(z=Ie)}}else typeof z=="number"?z=z&255:typeof z=="boolean"&&(z=Number(z));if(V<0||this.length<V||this.length<ue)throw new RangeError("Out of range index");if(ue<=V)return this;V=V>>>0,ue=ue===void 0?this.length:ue>>>0,z||(z=0);var Ce;if(typeof z=="number")for(Ce=V;Ce<ue;++Ce)this[Ce]=z;else{var We=c.isBuffer(z)?z:c.from(z,Te),Ge=We.length;if(Ge===0)throw new TypeError('The value "'+z+'" is invalid for argument "value"');for(Ce=0;Ce<ue-V;++Ce)this[Ce+V]=We[Ce%Ge]}return this};var re=/[^+/0-9A-Za-z-_]/g;function se(Y){if(Y=Y.split("=")[0],Y=Y.trim().replace(re,""),Y.length<2)return"";for(;Y.length%4!==0;)Y=Y+"=";return Y}function ne(Y,z){z=z||1/0;for(var V,ue=Y.length,Te=null,Ie=[],Ce=0;Ce<ue;++Ce){if(V=Y.charCodeAt(Ce),V>55295&&V<57344){if(!Te){if(V>56319){(z-=3)>-1&&Ie.push(239,191,189);continue}else if(Ce+1===ue){(z-=3)>-1&&Ie.push(239,191,189);continue}Te=V;continue}if(V<56320){(z-=3)>-1&&Ie.push(239,191,189),Te=V;continue}V=(Te-55296<<10|V-56320)+65536}else Te&&(z-=3)>-1&&Ie.push(239,191,189);if(Te=null,V<128){if((z-=1)<0)break;Ie.push(V)}else if(V<2048){if((z-=2)<0)break;Ie.push(V>>6|192,V&63|128)}else if(V<65536){if((z-=3)<0)break;Ie.push(V>>12|224,V>>6&63|128,V&63|128)}else if(V<1114112){if((z-=4)<0)break;Ie.push(V>>18|240,V>>12&63|128,V>>6&63|128,V&63|128)}else throw new Error("Invalid code point")}return Ie}function me(Y){for(var z=[],V=0;V<Y.length;++V)z.push(Y.charCodeAt(V)&255);return z}function ge(Y,z){for(var V,ue,Te,Ie=[],Ce=0;Ce<Y.length&&!((z-=2)<0);++Ce)V=Y.charCodeAt(Ce),ue=V>>8,Te=V%256,Ie.push(Te),Ie.push(ue);return Ie}function Ae(Y){return i.toByteArray(se(Y))}function pe(Y,z,V,ue){for(var Te=0;Te<ue&&!(Te+V>=z.length||Te>=Y.length);++Te)z[Te+V]=Y[Te];return Te}function le(Y,z){return Y instanceof z||Y!=null&&Y.constructor!=null&&Y.constructor.name!=null&&Y.constructor.name===z.name}function ye(Y){return Y!==Y}var de=(function(){for(var Y="0123456789abcdef",z=new Array(256),V=0;V<16;++V)for(var ue=V*16,Te=0;Te<16;++Te)z[ue+Te]=Y[V]+Y[Te];return z})()})(oc)),oc}var Qm;function gk(){return Qm||(Qm=1,(function(e,i){var n=yk(),a=n.Buffer;function l(u,c){for(var w in u)c[w]=u[w]}a.from&&a.alloc&&a.allocUnsafe&&a.allocUnsafeSlow?e.exports=n:(l(n,i),i.Buffer=d);function d(u,c,w){return a(u,c,w)}d.prototype=Object.create(a.prototype),l(a,d),d.from=function(u,c,w){if(typeof u=="number")throw new TypeError("Argument must not be a number");return a(u,c,w)},d.alloc=function(u,c,w){if(typeof u!="number")throw new TypeError("Argument must be a number");var U=a(u);return c!==void 0?typeof w=="string"?U.fill(c,w):U.fill(c):U.fill(0),U},d.allocUnsafe=function(u){if(typeof u!="number")throw new TypeError("Argument must be a number");return a(u)},d.allocUnsafeSlow=function(u){if(typeof u!="number")throw new TypeError("Argument must be a number");return n.SlowBuffer(u)}})(aa,aa.exports)),aa.exports}var Xm;function bk(){if(Xm)return sc;Xm=1;var e=gk().Buffer,i=e.isEncoding||function(h){switch(h=""+h,h&&h.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 n(h){if(!h)return"utf8";for(var m;;)switch(h){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 h;default:if(m)return;h=(""+h).toLowerCase(),m=!0}}function a(h){var m=n(h);if(typeof m!="string"&&(e.isEncoding===i||!i(h)))throw new Error("Unknown encoding: "+h);return m||h}sc.StringDecoder=l;function l(h){this.encoding=a(h);var m;switch(this.encoding){case"utf16le":this.text=O,this.end=M,m=4;break;case"utf8":this.fillLast=w,m=4;break;case"base64":this.text=L,this.end=_,m=3;break;default:this.write=b,this.end=v;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=e.allocUnsafe(m)}l.prototype.write=function(h){if(h.length===0)return"";var m,k;if(this.lastNeed){if(m=this.fillLast(h),m===void 0)return"";k=this.lastNeed,this.lastNeed=0}else k=0;return k<h.length?m?m+this.text(h,k):this.text(h,k):m||""},l.prototype.end=F,l.prototype.text=U,l.prototype.fillLast=function(h){if(this.lastNeed<=h.length)return h.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);h.copy(this.lastChar,this.lastTotal-this.lastNeed,0,h.length),this.lastNeed-=h.length};function d(h){return h<=127?0:h>>5===6?2:h>>4===14?3:h>>3===30?4:h>>6===2?-1:-2}function u(h,m,k){var B=m.length-1;if(B<k)return 0;var C=d(m[B]);return C>=0?(C>0&&(h.lastNeed=C-1),C):--B<k||C===-2?0:(C=d(m[B]),C>=0?(C>0&&(h.lastNeed=C-2),C):--B<k||C===-2?0:(C=d(m[B]),C>=0?(C>0&&(C===2?C=0:h.lastNeed=C-3),C):0))}function c(h,m,k){if((m[0]&192)!==128)return h.lastNeed=0,"�";if(h.lastNeed>1&&m.length>1){if((m[1]&192)!==128)return h.lastNeed=1,"�";if(h.lastNeed>2&&m.length>2&&(m[2]&192)!==128)return h.lastNeed=2,"�"}}function w(h){var m=this.lastTotal-this.lastNeed,k=c(this,h);if(k!==void 0)return k;if(this.lastNeed<=h.length)return h.copy(this.lastChar,m,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);h.copy(this.lastChar,m,0,h.length),this.lastNeed-=h.length}function U(h,m){var k=u(this,h,m);if(!this.lastNeed)return h.toString("utf8",m);this.lastTotal=k;var B=h.length-(k-this.lastNeed);return h.copy(this.lastChar,0,B),h.toString("utf8",m,B)}function F(h){var m=h&&h.length?this.write(h):"";return this.lastNeed?m+"�":m}function O(h,m){if((h.length-m)%2===0){var k=h.toString("utf16le",m);if(k){var B=k.charCodeAt(k.length-1);if(B>=55296&&B<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=h[h.length-2],this.lastChar[1]=h[h.length-1],k.slice(0,-1)}return k}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=h[h.length-1],h.toString("utf16le",m,h.length-1)}function M(h){var m=h&&h.length?this.write(h):"";if(this.lastNeed){var k=this.lastTotal-this.lastNeed;return m+this.lastChar.toString("utf16le",0,k)}return m}function L(h,m){var k=(h.length-m)%3;return k===0?h.toString("base64",m):(this.lastNeed=3-k,this.lastTotal=3,k===1?this.lastChar[0]=h[h.length-1]:(this.lastChar[0]=h[h.length-2],this.lastChar[1]=h[h.length-1]),h.toString("base64",m,h.length-k))}function _(h){var m=h&&h.length?this.write(h):"";return this.lastNeed?m+this.lastChar.toString("base64",0,3-this.lastNeed):m}function b(h){return h.toString(this.encoding)}function v(h){return h&&h.length?this.write(h):""}return sc}var ac,Ym;function Vg(){if(Ym)return ac;Ym=1;const e=wr(),{PromisePrototypeThen:i,SymbolAsyncIterator:n,SymbolIterator:a}=Kt(),{Buffer:l}=Sr(),{ERR_INVALID_ARG_TYPE:d,ERR_STREAM_NULL_VALUES:u}=gn().codes;function c(w,U,F){let O;if(typeof U=="string"||U instanceof l)return new w({objectMode:!0,...F,read(){this.push(U),this.push(null)}});let M;if(U&&U[n])M=!0,O=U[n]();else if(U&&U[a])M=!1,O=U[a]();else throw new d("iterable",["Iterable"],U);const L=new w({objectMode:!0,highWaterMark:1,...F});let _=!1;L._read=function(){_||(_=!0,v())},L._destroy=function(h,m){i(b(h),()=>e.nextTick(m,h),k=>e.nextTick(m,k||h))};async function b(h){const m=h!=null,k=typeof O.throw=="function";if(m&&k){const{value:B,done:C}=await O.throw(h);if(await B,C)return}if(typeof O.return=="function"){const{value:B}=await O.return();await B}}async function v(){for(;;){try{const{value:h,done:m}=M?await O.next():O.next();if(m)L.push(null);else{const k=h&&typeof h.then=="function"?await h:h;if(k===null)throw _=!1,new u;if(L.push(k))continue;_=!1}}catch(h){L.destroy(h)}break}}return L}return ac=c,ac}var uc,$m;function za(){if($m)return uc;$m=1;const e=wr(),{ArrayPrototypeIndexOf:i,NumberIsInteger:n,NumberIsNaN:a,NumberParseInt:l,ObjectDefineProperties:d,ObjectKeys:u,ObjectSetPrototypeOf:c,Promise:w,SafeSet:U,SymbolAsyncIterator:F,Symbol:O}=Kt();uc=T,T.ReadableState=q;const{EventEmitter:M}=Yc(),{Stream:L,prependListener:_}=$c(),{Buffer:b}=Sr(),{addAbortSignal:v}=ef(),h=_r();let m=Ei().debuglog("stream",ee=>{m=ee});const k=mk(),B=rs(),{getHighWaterMark:C,getDefaultHighWaterMark:R}=tf(),{aggregateTwoErrors:A,codes:{ERR_INVALID_ARG_TYPE:f,ERR_METHOD_NOT_IMPLEMENTED:E,ERR_OUT_OF_RANGE:S,ERR_STREAM_PUSH_AFTER_EOF:P,ERR_STREAM_UNSHIFT_AFTER_END_EVENT:y}}=gn(),{validateObject:r}=xa(),s=O("kPaused"),{StringDecoder:p}=bk(),g=Vg();c(T.prototype,L.prototype),c(T,L);const I=()=>{},{errorOrDestroy:x}=B;function q(ee,te,K){typeof K!="boolean"&&(K=te instanceof Ai()),this.objectMode=!!(ee&&ee.objectMode),K&&(this.objectMode=this.objectMode||!!(ee&&ee.readableObjectMode)),this.highWaterMark=ee?C(this,ee,"readableHighWaterMark",K):R(!1),this.buffer=new k,this.length=0,this.pipes=[],this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.constructed=!0,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this[s]=null,this.errorEmitted=!1,this.emitClose=!ee||ee.emitClose!==!1,this.autoDestroy=!ee||ee.autoDestroy!==!1,this.destroyed=!1,this.errored=null,this.closed=!1,this.closeEmitted=!1,this.defaultEncoding=ee&&ee.defaultEncoding||"utf8",this.awaitDrainWriters=null,this.multiAwaitDrain=!1,this.readingMore=!1,this.dataEmitted=!1,this.decoder=null,this.encoding=null,ee&&ee.encoding&&(this.decoder=new p(ee.encoding),this.encoding=ee.encoding)}function T(ee){if(!(this instanceof T))return new T(ee);const te=this instanceof Ai();this._readableState=new q(ee,this,te),ee&&(typeof ee.read=="function"&&(this._read=ee.read),typeof ee.destroy=="function"&&(this._destroy=ee.destroy),typeof ee.construct=="function"&&(this._construct=ee.construct),ee.signal&&!te&&v(ee.signal,this)),L.call(this,ee),B.construct(this,()=>{this._readableState.needReadable&&me(this,this._readableState)})}T.prototype.destroy=B.destroy,T.prototype._undestroy=B.undestroy,T.prototype._destroy=function(ee,te){te(ee)},T.prototype[M.captureRejectionSymbol]=function(ee){this.destroy(ee)},T.prototype.push=function(ee,te){return D(this,ee,te,!1)},T.prototype.unshift=function(ee,te){return D(this,ee,te,!0)};function D(ee,te,K,j){m("readableAddChunk",te);const G=ee._readableState;let ce;if(G.objectMode||(typeof te=="string"?(K=K||G.defaultEncoding,G.encoding!==K&&(j&&G.encoding?te=b.from(te,K).toString(G.encoding):(te=b.from(te,K),K=""))):te instanceof b?K="":L._isUint8Array(te)?(te=L._uint8ArrayToBuffer(te),K=""):te!=null&&(ce=new f("chunk",["string","Buffer","Uint8Array"],te))),ce)x(ee,ce);else if(te===null)G.reading=!1,re(ee,G);else if(G.objectMode||te&&te.length>0)if(j)if(G.endEmitted)x(ee,new y);else{if(G.destroyed||G.errored)return!1;W(ee,G,te,!0)}else if(G.ended)x(ee,new P);else{if(G.destroyed||G.errored)return!1;G.reading=!1,G.decoder&&!K?(te=G.decoder.write(te),G.objectMode||te.length!==0?W(ee,G,te,!1):me(ee,G)):W(ee,G,te,!1)}else j||(G.reading=!1,me(ee,G));return!G.ended&&(G.length<G.highWaterMark||G.length===0)}function W(ee,te,K,j){te.flowing&&te.length===0&&!te.sync&&ee.listenerCount("data")>0?(te.multiAwaitDrain?te.awaitDrainWriters.clear():te.awaitDrainWriters=null,te.dataEmitted=!0,ee.emit("data",K)):(te.length+=te.objectMode?1:K.length,j?te.buffer.unshift(K):te.buffer.push(K),te.needReadable&&se(ee)),me(ee,te)}T.prototype.isPaused=function(){const ee=this._readableState;return ee[s]===!0||ee.flowing===!1},T.prototype.setEncoding=function(ee){const te=new p(ee);this._readableState.decoder=te,this._readableState.encoding=this._readableState.decoder.encoding;const K=this._readableState.buffer;let j="";for(const G of K)j+=te.write(G);return K.clear(),j!==""&&K.push(j),this._readableState.length=j.length,this};const J=1073741824;function X(ee){if(ee>J)throw new S("size","<= 1GiB",ee);return ee--,ee|=ee>>>1,ee|=ee>>>2,ee|=ee>>>4,ee|=ee>>>8,ee|=ee>>>16,ee++,ee}function Q(ee,te){return ee<=0||te.length===0&&te.ended?0:te.objectMode?1:a(ee)?te.flowing&&te.length?te.buffer.first().length:te.length:ee<=te.length?ee:te.ended?te.length:0}T.prototype.read=function(ee){m("read",ee),ee===void 0?ee=NaN:n(ee)||(ee=l(ee,10));const te=this._readableState,K=ee;if(ee>te.highWaterMark&&(te.highWaterMark=X(ee)),ee!==0&&(te.emittedReadable=!1),ee===0&&te.needReadable&&((te.highWaterMark!==0?te.length>=te.highWaterMark:te.length>0)||te.ended))return m("read: emitReadable",te.length,te.ended),te.length===0&&te.ended?Te(this):se(this),null;if(ee=Q(ee,te),ee===0&&te.ended)return te.length===0&&Te(this),null;let j=te.needReadable;if(m("need readable",j),(te.length===0||te.length-ee<te.highWaterMark)&&(j=!0,m("length less than watermark",j)),te.ended||te.reading||te.destroyed||te.errored||!te.constructed)j=!1,m("reading, ended or constructing",j);else if(j){m("do read"),te.reading=!0,te.sync=!0,te.length===0&&(te.needReadable=!0);try{this._read(te.highWaterMark)}catch(ce){x(this,ce)}te.sync=!1,te.reading||(ee=Q(K,te))}let G;return ee>0?G=ue(ee,te):G=null,G===null?(te.needReadable=te.length<=te.highWaterMark,ee=0):(te.length-=ee,te.multiAwaitDrain?te.awaitDrainWriters.clear():te.awaitDrainWriters=null),te.length===0&&(te.ended||(te.needReadable=!0),K!==ee&&te.ended&&Te(this)),G!==null&&!te.errorEmitted&&!te.closeEmitted&&(te.dataEmitted=!0,this.emit("data",G)),G};function re(ee,te){if(m("onEofChunk"),!te.ended){if(te.decoder){const K=te.decoder.end();K&&K.length&&(te.buffer.push(K),te.length+=te.objectMode?1:K.length)}te.ended=!0,te.sync?se(ee):(te.needReadable=!1,te.emittedReadable=!0,ne(ee))}}function se(ee){const te=ee._readableState;m("emitReadable",te.needReadable,te.emittedReadable),te.needReadable=!1,te.emittedReadable||(m("emitReadable",te.flowing),te.emittedReadable=!0,e.nextTick(ne,ee))}function ne(ee){const te=ee._readableState;m("emitReadable_",te.destroyed,te.length,te.ended),!te.destroyed&&!te.errored&&(te.length||te.ended)&&(ee.emit("readable"),te.emittedReadable=!1),te.needReadable=!te.flowing&&!te.ended&&te.length<=te.highWaterMark,Y(ee)}function me(ee,te){!te.readingMore&&te.constructed&&(te.readingMore=!0,e.nextTick(ge,ee,te))}function ge(ee,te){for(;!te.reading&&!te.ended&&(te.length<te.highWaterMark||te.flowing&&te.length===0);){const K=te.length;if(m("maybeReadMore read 0"),ee.read(0),K===te.length)break}te.readingMore=!1}T.prototype._read=function(ee){throw new E("_read()")},T.prototype.pipe=function(ee,te){const K=this,j=this._readableState;j.pipes.length===1&&(j.multiAwaitDrain||(j.multiAwaitDrain=!0,j.awaitDrainWriters=new U(j.awaitDrainWriters?[j.awaitDrainWriters]:[]))),j.pipes.push(ee),m("pipe count=%d opts=%j",j.pipes.length,te);const ce=(!te||te.end!==!1)&&ee!==e.stdout&&ee!==e.stderr?be:ke;j.endEmitted?e.nextTick(ce):K.once("end",ce),ee.on("unpipe",$);function $(Ne,ae){m("onunpipe"),Ne===K&&ae&&ae.hasUnpiped===!1&&(ae.hasUnpiped=!0,we())}function be(){m("onend"),ee.end()}let Se,Be=!1;function we(){m("cleanup"),ee.removeListener("close",ze),ee.removeListener("finish",H),Se&&ee.removeListener("drain",Se),ee.removeListener("error",Re),ee.removeListener("unpipe",$),K.removeListener("end",be),K.removeListener("end",ke),K.removeListener("data",oe),Be=!0,Se&&j.awaitDrainWriters&&(!ee._writableState||ee._writableState.needDrain)&&Se()}function Pe(){Be||(j.pipes.length===1&&j.pipes[0]===ee?(m("false write response, pause",0),j.awaitDrainWriters=ee,j.multiAwaitDrain=!1):j.pipes.length>1&&j.pipes.includes(ee)&&(m("false write response, pause",j.awaitDrainWriters.size),j.awaitDrainWriters.add(ee)),K.pause()),Se||(Se=Ae(K,ee),ee.on("drain",Se))}K.on("data",oe);function oe(Ne){m("ondata");const ae=ee.write(Ne);m("dest.write",ae),ae===!1&&Pe()}function Re(Ne){if(m("onerror",Ne),ke(),ee.removeListener("error",Re),ee.listenerCount("error")===0){const ae=ee._writableState||ee._readableState;ae&&!ae.errorEmitted?x(ee,Ne):ee.emit("error",Ne)}}_(ee,"error",Re);function ze(){ee.removeListener("finish",H),ke()}ee.once("close",ze);function H(){m("onfinish"),ee.removeListener("close",ze),ke()}ee.once("finish",H);function ke(){m("unpipe"),K.unpipe(ee)}return ee.emit("pipe",K),ee.writableNeedDrain===!0?j.flowing&&Pe():j.flowing||(m("pipe resume"),K.resume()),ee};function Ae(ee,te){return function(){const j=ee._readableState;j.awaitDrainWriters===te?(m("pipeOnDrain",1),j.awaitDrainWriters=null):j.multiAwaitDrain&&(m("pipeOnDrain",j.awaitDrainWriters.size),j.awaitDrainWriters.delete(te)),(!j.awaitDrainWriters||j.awaitDrainWriters.size===0)&&ee.listenerCount("data")&&ee.resume()}}T.prototype.unpipe=function(ee){const te=this._readableState,K={hasUnpiped:!1};if(te.pipes.length===0)return this;if(!ee){const G=te.pipes;te.pipes=[],this.pause();for(let ce=0;ce<G.length;ce++)G[ce].emit("unpipe",this,{hasUnpiped:!1});return this}const j=i(te.pipes,ee);return j===-1?this:(te.pipes.splice(j,1),te.pipes.length===0&&this.pause(),ee.emit("unpipe",this,K),this)},T.prototype.on=function(ee,te){const K=L.prototype.on.call(this,ee,te),j=this._readableState;return ee==="data"?(j.readableListening=this.listenerCount("readable")>0,j.flowing!==!1&&this.resume()):ee==="readable"&&!j.endEmitted&&!j.readableListening&&(j.readableListening=j.needReadable=!0,j.flowing=!1,j.emittedReadable=!1,m("on readable",j.length,j.reading),j.length?se(this):j.reading||e.nextTick(le,this)),K},T.prototype.addListener=T.prototype.on,T.prototype.removeListener=function(ee,te){const K=L.prototype.removeListener.call(this,ee,te);return ee==="readable"&&e.nextTick(pe,this),K},T.prototype.off=T.prototype.removeListener,T.prototype.removeAllListeners=function(ee){const te=L.prototype.removeAllListeners.apply(this,arguments);return(ee==="readable"||ee===void 0)&&e.nextTick(pe,this),te};function pe(ee){const te=ee._readableState;te.readableListening=ee.listenerCount("readable")>0,te.resumeScheduled&&te[s]===!1?te.flowing=!0:ee.listenerCount("data")>0?ee.resume():te.readableListening||(te.flowing=null)}function le(ee){m("readable nexttick read 0"),ee.read(0)}T.prototype.resume=function(){const ee=this._readableState;return ee.flowing||(m("resume"),ee.flowing=!ee.readableListening,ye(this,ee)),ee[s]=!1,this};function ye(ee,te){te.resumeScheduled||(te.resumeScheduled=!0,e.nextTick(de,ee,te))}function de(ee,te){m("resume",te.reading),te.reading||ee.read(0),te.resumeScheduled=!1,ee.emit("resume"),Y(ee),te.flowing&&!te.reading&&ee.read(0)}T.prototype.pause=function(){return m("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(m("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState[s]=!0,this};function Y(ee){const te=ee._readableState;for(m("flow",te.flowing);te.flowing&&ee.read()!==null;);}T.prototype.wrap=function(ee){let te=!1;ee.on("data",j=>{!this.push(j)&&ee.pause&&(te=!0,ee.pause())}),ee.on("end",()=>{this.push(null)}),ee.on("error",j=>{x(this,j)}),ee.on("close",()=>{this.destroy()}),ee.on("destroy",()=>{this.destroy()}),this._read=()=>{te&&ee.resume&&(te=!1,ee.resume())};const K=u(ee);for(let j=1;j<K.length;j++){const G=K[j];this[G]===void 0&&typeof ee[G]=="function"&&(this[G]=ee[G].bind(ee))}return this},T.prototype[F]=function(){return z(this)},T.prototype.iterator=function(ee){return ee!==void 0&&r(ee,"options"),z(this,ee)};function z(ee,te){typeof ee.read!="function"&&(ee=T.wrap(ee,{objectMode:!0}));const K=V(ee,te);return K.stream=ee,K}async function*V(ee,te){let K=I;function j($){this===ee?(K(),K=I):K=$}ee.on("readable",j);let G;const ce=h(ee,{writable:!1},$=>{G=$?A(G,$):null,K(),K=I});try{for(;;){const $=ee.destroyed?null:ee.read();if($!==null)yield $;else{if(G)throw G;if(G===null)return;await new w(j)}}}catch($){throw G=A(G,$),G}finally{(G||te?.destroyOnReturn!==!1)&&(G===void 0||ee._readableState.autoDestroy)?B.destroyer(ee,null):(ee.off("readable",j),ce())}}d(T.prototype,{readable:{__proto__:null,get(){const ee=this._readableState;return!!ee&&ee.readable!==!1&&!ee.destroyed&&!ee.errorEmitted&&!ee.endEmitted},set(ee){this._readableState&&(this._readableState.readable=!!ee)}},readableDidRead:{__proto__:null,enumerable:!1,get:function(){return this._readableState.dataEmitted}},readableAborted:{__proto__:null,enumerable:!1,get:function(){return!!(this._readableState.readable!==!1&&(this._readableState.destroyed||this._readableState.errored)&&!this._readableState.endEmitted)}},readableHighWaterMark:{__proto__:null,enumerable:!1,get:function(){return this._readableState.highWaterMark}},readableBuffer:{__proto__:null,enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}},readableFlowing:{__proto__:null,enumerable:!1,get:function(){return this._readableState.flowing},set:function(ee){this._readableState&&(this._readableState.flowing=ee)}},readableLength:{__proto__:null,enumerable:!1,get(){return this._readableState.length}},readableObjectMode:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.objectMode:!1}},readableEncoding:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.encoding:null}},errored:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.errored:null}},closed:{__proto__:null,get(){return this._readableState?this._readableState.closed:!1}},destroyed:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.destroyed:!1},set(ee){this._readableState&&(this._readableState.destroyed=ee)}},readableEnded:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.endEmitted:!1}}}),d(q.prototype,{pipesCount:{__proto__:null,get(){return this.pipes.length}},paused:{__proto__:null,get(){return this[s]!==!1},set(ee){this[s]=!!ee}}}),T._fromList=ue;function ue(ee,te){if(te.length===0)return null;let K;return te.objectMode?K=te.buffer.shift():!ee||ee>=te.length?(te.decoder?K=te.buffer.join(""):te.buffer.length===1?K=te.buffer.first():K=te.buffer.concat(te.length),te.buffer.clear()):K=te.buffer.consume(ee,te.decoder),K}function Te(ee){const te=ee._readableState;m("endReadable",te.endEmitted),te.endEmitted||(te.ended=!0,e.nextTick(Ie,te,ee))}function Ie(ee,te){if(m("endReadableNT",ee.endEmitted,ee.length),!ee.errored&&!ee.closeEmitted&&!ee.endEmitted&&ee.length===0){if(ee.endEmitted=!0,te.emit("end"),te.writable&&te.allowHalfOpen===!1)e.nextTick(Ce,te);else if(ee.autoDestroy){const K=te._writableState;(!K||K.autoDestroy&&(K.finished||K.writable===!1))&&te.destroy()}}}function Ce(ee){ee.writable&&!ee.writableEnded&&!ee.destroyed&&ee.end()}T.from=function(ee,te){return g(T,ee,te)};let We;function Ge(){return We===void 0&&(We={}),We}return T.fromWeb=function(ee,te){return Ge().newStreamReadableFromReadableStream(ee,te)},T.toWeb=function(ee,te){return Ge().newReadableStreamFromStreamReadable(ee,te)},T.wrap=function(ee,te){var K,j;return new T({objectMode:(K=(j=ee.readableObjectMode)!==null&&j!==void 0?j:ee.objectMode)!==null&&K!==void 0?K:!0,...te,destroy(G,ce){B.destroyer(ee,G),ce(G)}}).wrap(ee)},uc}var lc,ey;function Zg(){if(ey)return lc;ey=1;const e=wr(),{ArrayPrototypeSlice:i,Error:n,FunctionPrototypeSymbolHasInstance:a,ObjectDefineProperty:l,ObjectDefineProperties:d,ObjectSetPrototypeOf:u,StringPrototypeToLowerCase:c,Symbol:w,SymbolHasInstance:U}=Kt();lc=p,p.WritableState=r;const{EventEmitter:F}=Yc(),O=$c().Stream,{Buffer:M}=Sr(),L=rs(),{addAbortSignal:_}=ef(),{getHighWaterMark:b,getDefaultHighWaterMark:v}=tf(),{ERR_INVALID_ARG_TYPE:h,ERR_METHOD_NOT_IMPLEMENTED:m,ERR_MULTIPLE_CALLBACK:k,ERR_STREAM_CANNOT_PIPE:B,ERR_STREAM_DESTROYED:C,ERR_STREAM_ALREADY_FINISHED:R,ERR_STREAM_NULL_VALUES:A,ERR_STREAM_WRITE_AFTER_END:f,ERR_UNKNOWN_ENCODING:E}=gn().codes,{errorOrDestroy:S}=L;u(p.prototype,O.prototype),u(p,O);function P(){}const y=w("kOnFinished");function r(le,ye,de){typeof de!="boolean"&&(de=ye instanceof Ai()),this.objectMode=!!(le&&le.objectMode),de&&(this.objectMode=this.objectMode||!!(le&&le.writableObjectMode)),this.highWaterMark=le?b(this,le,"writableHighWaterMark",de):v(!1),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;const Y=!!(le&&le.decodeStrings===!1);this.decodeStrings=!Y,this.defaultEncoding=le&&le.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=T.bind(void 0,ye),this.writecb=null,this.writelen=0,this.afterWriteTickInfo=null,s(this),this.pendingcb=0,this.constructed=!0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=!le||le.emitClose!==!1,this.autoDestroy=!le||le.autoDestroy!==!1,this.errored=null,this.closed=!1,this.closeEmitted=!1,this[y]=[]}function s(le){le.buffered=[],le.bufferedIndex=0,le.allBuffers=!0,le.allNoop=!0}r.prototype.getBuffer=function(){return i(this.buffered,this.bufferedIndex)},l(r.prototype,"bufferedRequestCount",{__proto__:null,get(){return this.buffered.length-this.bufferedIndex}});function p(le){const ye=this instanceof Ai();if(!ye&&!a(p,this))return new p(le);this._writableState=new r(le,this,ye),le&&(typeof le.write=="function"&&(this._write=le.write),typeof le.writev=="function"&&(this._writev=le.writev),typeof le.destroy=="function"&&(this._destroy=le.destroy),typeof le.final=="function"&&(this._final=le.final),typeof le.construct=="function"&&(this._construct=le.construct),le.signal&&_(le.signal,this)),O.call(this,le),L.construct(this,()=>{const de=this._writableState;de.writing||X(this,de),ne(this,de)})}l(p,U,{__proto__:null,value:function(le){return a(this,le)?!0:this!==p?!1:le&&le._writableState instanceof r}}),p.prototype.pipe=function(){S(this,new B)};function g(le,ye,de,Y){const z=le._writableState;if(typeof de=="function")Y=de,de=z.defaultEncoding;else{if(!de)de=z.defaultEncoding;else if(de!=="buffer"&&!M.isEncoding(de))throw new E(de);typeof Y!="function"&&(Y=P)}if(ye===null)throw new A;if(!z.objectMode)if(typeof ye=="string")z.decodeStrings!==!1&&(ye=M.from(ye,de),de="buffer");else if(ye instanceof M)de="buffer";else if(O._isUint8Array(ye))ye=O._uint8ArrayToBuffer(ye),de="buffer";else throw new h("chunk",["string","Buffer","Uint8Array"],ye);let V;return z.ending?V=new f:z.destroyed&&(V=new C("write")),V?(e.nextTick(Y,V),S(le,V,!0),V):(z.pendingcb++,I(le,z,ye,de,Y))}p.prototype.write=function(le,ye,de){return g(this,le,ye,de)===!0},p.prototype.cork=function(){this._writableState.corked++},p.prototype.uncork=function(){const le=this._writableState;le.corked&&(le.corked--,le.writing||X(this,le))},p.prototype.setDefaultEncoding=function(ye){if(typeof ye=="string"&&(ye=c(ye)),!M.isEncoding(ye))throw new E(ye);return this._writableState.defaultEncoding=ye,this};function I(le,ye,de,Y,z){const V=ye.objectMode?1:de.length;ye.length+=V;const ue=ye.length<ye.highWaterMark;return ue||(ye.needDrain=!0),ye.writing||ye.corked||ye.errored||!ye.constructed?(ye.buffered.push({chunk:de,encoding:Y,callback:z}),ye.allBuffers&&Y!=="buffer"&&(ye.allBuffers=!1),ye.allNoop&&z!==P&&(ye.allNoop=!1)):(ye.writelen=V,ye.writecb=z,ye.writing=!0,ye.sync=!0,le._write(de,Y,ye.onwrite),ye.sync=!1),ue&&!ye.errored&&!ye.destroyed}function x(le,ye,de,Y,z,V,ue){ye.writelen=Y,ye.writecb=ue,ye.writing=!0,ye.sync=!0,ye.destroyed?ye.onwrite(new C("write")):de?le._writev(z,ye.onwrite):le._write(z,V,ye.onwrite),ye.sync=!1}function q(le,ye,de,Y){--ye.pendingcb,Y(de),J(ye),S(le,de)}function T(le,ye){const de=le._writableState,Y=de.sync,z=de.writecb;if(typeof z!="function"){S(le,new k);return}de.writing=!1,de.writecb=null,de.length-=de.writelen,de.writelen=0,ye?(ye.stack,de.errored||(de.errored=ye),le._readableState&&!le._readableState.errored&&(le._readableState.errored=ye),Y?e.nextTick(q,le,de,ye,z):q(le,de,ye,z)):(de.buffered.length>de.bufferedIndex&&X(le,de),Y?de.afterWriteTickInfo!==null&&de.afterWriteTickInfo.cb===z?de.afterWriteTickInfo.count++:(de.afterWriteTickInfo={count:1,cb:z,stream:le,state:de},e.nextTick(D,de.afterWriteTickInfo)):W(le,de,1,z))}function D({stream:le,state:ye,count:de,cb:Y}){return ye.afterWriteTickInfo=null,W(le,ye,de,Y)}function W(le,ye,de,Y){for(!ye.ending&&!le.destroyed&&ye.length===0&&ye.needDrain&&(ye.needDrain=!1,le.emit("drain"));de-- >0;)ye.pendingcb--,Y();ye.destroyed&&J(ye),ne(le,ye)}function J(le){if(le.writing)return;for(let z=le.bufferedIndex;z<le.buffered.length;++z){var ye;const{chunk:V,callback:ue}=le.buffered[z],Te=le.objectMode?1:V.length;le.length-=Te,ue((ye=le.errored)!==null&&ye!==void 0?ye:new C("write"))}const de=le[y].splice(0);for(let z=0;z<de.length;z++){var Y;de[z]((Y=le.errored)!==null&&Y!==void 0?Y:new C("end"))}s(le)}function X(le,ye){if(ye.corked||ye.bufferProcessing||ye.destroyed||!ye.constructed)return;const{buffered:de,bufferedIndex:Y,objectMode:z}=ye,V=de.length-Y;if(!V)return;let ue=Y;if(ye.bufferProcessing=!0,V>1&&le._writev){ye.pendingcb-=V-1;const Te=ye.allNoop?P:Ce=>{for(let We=ue;We<de.length;++We)de[We].callback(Ce)},Ie=ye.allNoop&&ue===0?de:i(de,ue);Ie.allBuffers=ye.allBuffers,x(le,ye,!0,ye.length,Ie,"",Te),s(ye)}else{do{const{chunk:Te,encoding:Ie,callback:Ce}=de[ue];de[ue++]=null;const We=z?1:Te.length;x(le,ye,!1,We,Te,Ie,Ce)}while(ue<de.length&&!ye.writing);ue===de.length?s(ye):ue>256?(de.splice(0,ue),ye.bufferedIndex=0):ye.bufferedIndex=ue}ye.bufferProcessing=!1}p.prototype._write=function(le,ye,de){if(this._writev)this._writev([{chunk:le,encoding:ye}],de);else throw new m("_write()")},p.prototype._writev=null,p.prototype.end=function(le,ye,de){const Y=this._writableState;typeof le=="function"?(de=le,le=null,ye=null):typeof ye=="function"&&(de=ye,ye=null);let z;if(le!=null){const V=g(this,le,ye);V instanceof n&&(z=V)}return Y.corked&&(Y.corked=1,this.uncork()),z||(!Y.errored&&!Y.ending?(Y.ending=!0,ne(this,Y,!0),Y.ended=!0):Y.finished?z=new R("end"):Y.destroyed&&(z=new C("end"))),typeof de=="function"&&(z||Y.finished?e.nextTick(de,z):Y[y].push(de)),this};function Q(le){return le.ending&&!le.destroyed&&le.constructed&&le.length===0&&!le.errored&&le.buffered.length===0&&!le.finished&&!le.writing&&!le.errorEmitted&&!le.closeEmitted}function re(le,ye){let de=!1;function Y(z){if(de){S(le,z??k());return}if(de=!0,ye.pendingcb--,z){const V=ye[y].splice(0);for(let ue=0;ue<V.length;ue++)V[ue](z);S(le,z,ye.sync)}else Q(ye)&&(ye.prefinished=!0,le.emit("prefinish"),ye.pendingcb++,e.nextTick(me,le,ye))}ye.sync=!0,ye.pendingcb++;try{le._final(Y)}catch(z){Y(z)}ye.sync=!1}function se(le,ye){!ye.prefinished&&!ye.finalCalled&&(typeof le._final=="function"&&!ye.destroyed?(ye.finalCalled=!0,re(le,ye)):(ye.prefinished=!0,le.emit("prefinish")))}function ne(le,ye,de){Q(ye)&&(se(le,ye),ye.pendingcb===0&&(de?(ye.pendingcb++,e.nextTick((Y,z)=>{Q(z)?me(Y,z):z.pendingcb--},le,ye)):Q(ye)&&(ye.pendingcb++,me(le,ye))))}function me(le,ye){ye.pendingcb--,ye.finished=!0;const de=ye[y].splice(0);for(let Y=0;Y<de.length;Y++)de[Y]();if(le.emit("finish"),ye.autoDestroy){const Y=le._readableState;(!Y||Y.autoDestroy&&(Y.endEmitted||Y.readable===!1))&&le.destroy()}}d(p.prototype,{closed:{__proto__:null,get(){return this._writableState?this._writableState.closed:!1}},destroyed:{__proto__:null,get(){return this._writableState?this._writableState.destroyed:!1},set(le){this._writableState&&(this._writableState.destroyed=le)}},writable:{__proto__:null,get(){const le=this._writableState;return!!le&&le.writable!==!1&&!le.destroyed&&!le.errored&&!le.ending&&!le.ended},set(le){this._writableState&&(this._writableState.writable=!!le)}},writableFinished:{__proto__:null,get(){return this._writableState?this._writableState.finished:!1}},writableObjectMode:{__proto__:null,get(){return this._writableState?this._writableState.objectMode:!1}},writableBuffer:{__proto__:null,get(){return this._writableState&&this._writableState.getBuffer()}},writableEnded:{__proto__:null,get(){return this._writableState?this._writableState.ending:!1}},writableNeedDrain:{__proto__:null,get(){const le=this._writableState;return le?!le.destroyed&&!le.ending&&le.needDrain:!1}},writableHighWaterMark:{__proto__:null,get(){return this._writableState&&this._writableState.highWaterMark}},writableCorked:{__proto__:null,get(){return this._writableState?this._writableState.corked:0}},writableLength:{__proto__:null,get(){return this._writableState&&this._writableState.length}},errored:{__proto__:null,enumerable:!1,get(){return this._writableState?this._writableState.errored:null}},writableAborted:{__proto__:null,enumerable:!1,get:function(){return!!(this._writableState.writable!==!1&&(this._writableState.destroyed||this._writableState.errored)&&!this._writableState.finished)}}});const ge=L.destroy;p.prototype.destroy=function(le,ye){const de=this._writableState;return!de.destroyed&&(de.bufferedIndex<de.buffered.length||de[y].length)&&e.nextTick(J,de),ge.call(this,le,ye),this},p.prototype._undestroy=L.undestroy,p.prototype._destroy=function(le,ye){ye(le)},p.prototype[F.captureRejectionSymbol]=function(le){this.destroy(le)};let Ae;function pe(){return Ae===void 0&&(Ae={}),Ae}return p.fromWeb=function(le,ye){return pe().newStreamWritableFromWritableStream(le,ye)},p.toWeb=function(le){return pe().newWritableStreamFromStreamWritable(le)},lc}var cc,ty;function Tk(){if(ty)return cc;ty=1;const e=wr(),i=Sr(),{isReadable:n,isWritable:a,isIterable:l,isNodeStream:d,isReadableNodeStream:u,isWritableNodeStream:c,isDuplexNodeStream:w}=Lr(),U=_r(),{AbortError:F,codes:{ERR_INVALID_ARG_TYPE:O,ERR_INVALID_RETURN_VALUE:M}}=gn(),{destroyer:L}=rs(),_=Ai(),b=za(),{createDeferredPromise:v}=Ei(),h=Vg(),m=globalThis.Blob||i.Blob,k=typeof m<"u"?function(S){return S instanceof m}:function(S){return!1},B=globalThis.AbortController||Xc.AbortController,{FunctionPrototypeCall:C}=Kt();class R extends _{constructor(S){super(S),S?.readable===!1&&(this._readableState.readable=!1,this._readableState.ended=!0,this._readableState.endEmitted=!0),S?.writable===!1&&(this._writableState.writable=!1,this._writableState.ending=!0,this._writableState.ended=!0,this._writableState.finished=!0)}}cc=function E(S,P){if(w(S))return S;if(u(S))return f({readable:S});if(c(S))return f({writable:S});if(d(S))return f({writable:!1,readable:!1});if(typeof S=="function"){const{value:r,write:s,final:p,destroy:g}=A(S);if(l(r))return h(R,r,{objectMode:!0,write:s,final:p,destroy:g});const I=r?.then;if(typeof I=="function"){let x;const q=C(I,r,T=>{if(T!=null)throw new M("nully","body",T)},T=>{L(x,T)});return x=new R({objectMode:!0,readable:!1,write:s,final(T){p(async()=>{try{await q,e.nextTick(T,null)}catch(D){e.nextTick(T,D)}})},destroy:g})}throw new M("Iterable, AsyncIterable or AsyncFunction",P,r)}if(k(S))return E(S.arrayBuffer());if(l(S))return h(R,S,{objectMode:!0,writable:!1});if(typeof S?.writable=="object"||typeof S?.readable=="object"){const r=S!=null&&S.readable?u(S?.readable)?S?.readable:E(S.readable):void 0,s=S!=null&&S.writable?c(S?.writable)?S?.writable:E(S.writable):void 0;return f({readable:r,writable:s})}const y=S?.then;if(typeof y=="function"){let r;return C(y,S,s=>{s!=null&&r.push(s),r.push(null)},s=>{L(r,s)}),r=new R({objectMode:!0,writable:!1,read(){}})}throw new O(P,["Blob","ReadableStream","WritableStream","Stream","Iterable","AsyncIterable","Function","{ readable, writable } pair","Promise"],S)};function A(E){let{promise:S,resolve:P}=v();const y=new B,r=y.signal;return{value:E((async function*(){for(;;){const p=S;S=null;const{chunk:g,done:I,cb:x}=await p;if(e.nextTick(x),I)return;if(r.aborted)throw new F(void 0,{cause:r.reason});({promise:S,resolve:P}=v()),yield g}})(),{signal:r}),write(p,g,I){const x=P;P=null,x({chunk:p,done:!1,cb:I})},final(p){const g=P;P=null,g({done:!0,cb:p})},destroy(p,g){y.abort(),g(p)}}}function f(E){const S=E.readable&&typeof E.readable.read!="function"?b.wrap(E.readable):E.readable,P=E.writable;let y=!!n(S),r=!!a(P),s,p,g,I,x;function q(T){const D=I;I=null,D?D(T):T?x.destroy(T):!y&&!r&&x.destroy()}return x=new R({readableObjectMode:!!(S!=null&&S.readableObjectMode),writableObjectMode:!!(P!=null&&P.writableObjectMode),readable:y,writable:r}),r&&(U(P,T=>{r=!1,T&&L(S,T),q(T)}),x._write=function(T,D,W){P.write(T,D)?W():s=W},x._final=function(T){P.end(),p=T},P.on("drain",function(){if(s){const T=s;s=null,T()}}),P.on("finish",function(){if(p){const T=p;p=null,T()}})),y&&(U(S,T=>{y=!1,T&&L(S,T),q(T)}),S.on("readable",function(){if(g){const T=g;g=null,T()}}),S.on("end",function(){x.push(null)}),x._read=function(){for(;;){const T=S.read();if(T===null){g=x._read;return}if(!x.push(T))return}}),x._destroy=function(T,D){!T&&I!==null&&(T=new F),g=null,s=null,p=null,I===null?D(T):(I=D,L(P,T),L(S,T))},x}return cc}var fc,ny;function Ai(){if(ny)return fc;ny=1;const{ObjectDefineProperties:e,ObjectGetOwnPropertyDescriptor:i,ObjectKeys:n,ObjectSetPrototypeOf:a}=Kt();fc=u;const l=za(),d=Zg();a(u.prototype,l.prototype),a(u,l);{const F=n(d.prototype);for(let O=0;O<F.length;O++){const M=F[O];u.prototype[M]||(u.prototype[M]=d.prototype[M])}}function u(F){if(!(this instanceof u))return new u(F);l.call(this,F),d.call(this,F),F?(this.allowHalfOpen=F.allowHalfOpen!==!1,F.readable===!1&&(this._readableState.readable=!1,this._readableState.ended=!0,this._readableState.endEmitted=!0),F.writable===!1&&(this._writableState.writable=!1,this._writableState.ending=!0,this._writableState.ended=!0,this._writableState.finished=!0)):this.allowHalfOpen=!0}e(u.prototype,{writable:{__proto__:null,...i(d.prototype,"writable")},writableHighWaterMark:{__proto__:null,...i(d.prototype,"writableHighWaterMark")},writableObjectMode:{__proto__:null,...i(d.prototype,"writableObjectMode")},writableBuffer:{__proto__:null,...i(d.prototype,"writableBuffer")},writableLength:{__proto__:null,...i(d.prototype,"writableLength")},writableFinished:{__proto__:null,...i(d.prototype,"writableFinished")},writableCorked:{__proto__:null,...i(d.prototype,"writableCorked")},writableEnded:{__proto__:null,...i(d.prototype,"writableEnded")},writableNeedDrain:{__proto__:null,...i(d.prototype,"writableNeedDrain")},destroyed:{__proto__:null,get(){return this._readableState===void 0||this._writableState===void 0?!1:this._readableState.destroyed&&this._writableState.destroyed},set(F){this._readableState&&this._writableState&&(this._readableState.destroyed=F,this._writableState.destroyed=F)}}});let c;function w(){return c===void 0&&(c={}),c}u.fromWeb=function(F,O){return w().newStreamDuplexFromReadableWritablePair(F,O)},u.toWeb=function(F){return w().newReadableWritablePairFromDuplex(F)};let U;return u.from=function(F){return U||(U=Tk()),U(F,"body")},fc}var dc,iy;function Qg(){if(iy)return dc;iy=1;const{ObjectSetPrototypeOf:e,Symbol:i}=Kt();dc=u;const{ERR_METHOD_NOT_IMPLEMENTED:n}=gn().codes,a=Ai(),{getHighWaterMark:l}=tf();e(u.prototype,a.prototype),e(u,a);const d=i("kCallback");function u(U){if(!(this instanceof u))return new u(U);const F=U?l(this,U,"readableHighWaterMark",!0):null;F===0&&(U={...U,highWaterMark:null,readableHighWaterMark:F,writableHighWaterMark:U.writableHighWaterMark||0}),a.call(this,U),this._readableState.sync=!1,this[d]=null,U&&(typeof U.transform=="function"&&(this._transform=U.transform),typeof U.flush=="function"&&(this._flush=U.flush)),this.on("prefinish",w)}function c(U){typeof this._flush=="function"&&!this.destroyed?this._flush((F,O)=>{if(F){U?U(F):this.destroy(F);return}O!=null&&this.push(O),this.push(null),U&&U()}):(this.push(null),U&&U())}function w(){this._final!==c&&c.call(this)}return u.prototype._final=c,u.prototype._transform=function(U,F,O){throw new n("_transform()")},u.prototype._write=function(U,F,O){const M=this._readableState,L=this._writableState,_=M.length;this._transform(U,F,(b,v)=>{if(b){O(b);return}v!=null&&this.push(v),L.ended||_===M.length||M.length<M.highWaterMark?O():this[d]=O})},u.prototype._read=function(){if(this[d]){const U=this[d];this[d]=null,U()}},dc}var hc,ry;function Xg(){if(ry)return hc;ry=1;const{ObjectSetPrototypeOf:e}=Kt();hc=n;const i=Qg();e(n.prototype,i.prototype),e(n,i);function n(a){if(!(this instanceof n))return new n(a);i.call(this,a)}return n.prototype._transform=function(a,l,d){d(null,a)},hc}var pc,sy;function nf(){if(sy)return pc;sy=1;const e=wr(),{ArrayIsArray:i,Promise:n,SymbolAsyncIterator:a}=Kt(),l=_r(),{once:d}=Ei(),u=rs(),c=Ai(),{aggregateTwoErrors:w,codes:{ERR_INVALID_ARG_TYPE:U,ERR_INVALID_RETURN_VALUE:F,ERR_MISSING_ARGS:O,ERR_STREAM_DESTROYED:M,ERR_STREAM_PREMATURE_CLOSE:L},AbortError:_}=gn(),{validateFunction:b,validateAbortSignal:v}=xa(),{isIterable:h,isReadable:m,isReadableNodeStream:k,isNodeStream:B}=Lr(),C=globalThis.AbortController||Xc.AbortController;let R,A;function f(g,I,x){let q=!1;g.on("close",()=>{q=!0});const T=l(g,{readable:I,writable:x},D=>{q=!D});return{destroy:D=>{q||(q=!0,u.destroyer(g,D||new M("pipe")))},cleanup:T}}function E(g){return b(g[g.length-1],"streams[stream.length - 1]"),g.pop()}function S(g){if(h(g))return g;if(k(g))return P(g);throw new U("val",["Readable","Iterable","AsyncIterable"],g)}async function*P(g){A||(A=za()),yield*A.prototype[a].call(g)}async function y(g,I,x,{end:q}){let T,D=null;const W=Q=>{if(Q&&(T=Q),D){const re=D;D=null,re()}},J=()=>new n((Q,re)=>{T?re(T):D=()=>{T?re(T):Q()}});I.on("drain",W);const X=l(I,{readable:!1},W);try{I.writableNeedDrain&&await J();for await(const Q of g)I.write(Q)||await J();q&&I.end(),await J(),x()}catch(Q){x(T!==Q?w(T,Q):Q)}finally{X(),I.off("drain",W)}}function r(...g){return s(g,d(E(g)))}function s(g,I,x){if(g.length===1&&i(g[0])&&(g=g[0]),g.length<2)throw new O("streams");const q=new C,T=q.signal,D=x?.signal,W=[];v(D,"options.signal");function J(){me(new _)}D?.addEventListener("abort",J);let X,Q;const re=[];let se=0;function ne(pe){me(pe,--se===0)}function me(pe,le){if(pe&&(!X||X.code==="ERR_STREAM_PREMATURE_CLOSE")&&(X=pe),!(!X&&!le)){for(;re.length;)re.shift()(X);D?.removeEventListener("abort",J),q.abort(),le&&(X||W.forEach(ye=>ye()),e.nextTick(I,X,Q))}}let ge;for(let pe=0;pe<g.length;pe++){const le=g[pe],ye=pe<g.length-1,de=pe>0,Y=ye||x?.end!==!1,z=pe===g.length-1;if(B(le)){let V=function(ue){ue&&ue.name!=="AbortError"&&ue.code!=="ERR_STREAM_PREMATURE_CLOSE"&&ne(ue)};if(Y){const{destroy:ue,cleanup:Te}=f(le,ye,de);re.push(ue),m(le)&&z&&W.push(Te)}le.on("error",V),m(le)&&z&&W.push(()=>{le.removeListener("error",V)})}if(pe===0)if(typeof le=="function"){if(ge=le({signal:T}),!h(ge))throw new F("Iterable, AsyncIterable or Stream","source",ge)}else h(le)||k(le)?ge=le:ge=c.from(le);else if(typeof le=="function")if(ge=S(ge),ge=le(ge,{signal:T}),ye){if(!h(ge,!0))throw new F("AsyncIterable",`transform[${pe-1}]`,ge)}else{var Ae;R||(R=Xg());const V=new R({objectMode:!0}),ue=(Ae=ge)===null||Ae===void 0?void 0:Ae.then;if(typeof ue=="function")se++,ue.call(ge,Ce=>{Q=Ce,Ce!=null&&V.write(Ce),Y&&V.end(),e.nextTick(ne)},Ce=>{V.destroy(Ce),e.nextTick(ne,Ce)});else if(h(ge,!0))se++,y(ge,V,ne,{end:Y});else throw new F("AsyncIterable or Promise","destination",ge);ge=V;const{destroy:Te,cleanup:Ie}=f(ge,!1,!0);re.push(Te),z&&W.push(Ie)}else if(B(le)){if(k(ge)){se+=2;const V=p(ge,le,ne,{end:Y});m(le)&&z&&W.push(V)}else if(h(ge))se++,y(ge,le,ne,{end:Y});else throw new U("val",["Readable","Iterable","AsyncIterable"],ge);ge=le}else ge=c.from(le)}return(T!=null&&T.aborted||D!=null&&D.aborted)&&e.nextTick(J),ge}function p(g,I,x,{end:q}){let T=!1;return I.on("close",()=>{T||x(new L)}),g.pipe(I,{end:q}),q?g.once("end",()=>{T=!0,I.end()}):x(),l(g,{readable:!0,writable:!1},D=>{const W=g._readableState;D&&D.code==="ERR_STREAM_PREMATURE_CLOSE"&&W&&W.ended&&!W.errored&&!W.errorEmitted?g.once("end",x).once("error",x):x(D)}),l(I,{readable:!1,writable:!0},x)}return pc={pipelineImpl:s,pipeline:r},pc}var mc,oy;function vk(){if(oy)return mc;oy=1;const{pipeline:e}=nf(),i=Ai(),{destroyer:n}=rs(),{isNodeStream:a,isReadable:l,isWritable:d}=Lr(),{AbortError:u,codes:{ERR_INVALID_ARG_VALUE:c,ERR_MISSING_ARGS:w}}=gn();return mc=function(...F){if(F.length===0)throw new w("streams");if(F.length===1)return i.from(F[0]);const O=[...F];if(typeof F[0]=="function"&&(F[0]=i.from(F[0])),typeof F[F.length-1]=="function"){const R=F.length-1;F[R]=i.from(F[R])}for(let R=0;R<F.length;++R)if(a(F[R])){if(R<F.length-1&&!l(F[R]))throw new c(`streams[${R}]`,O[R],"must be readable");if(R>0&&!d(F[R]))throw new c(`streams[${R}]`,O[R],"must be writable")}let M,L,_,b,v;function h(R){const A=b;b=null,A?A(R):R?v.destroy(R):!C&&!B&&v.destroy()}const m=F[0],k=e(F,h),B=!!d(m),C=!!l(k);return v=new i({writableObjectMode:!!(m!=null&&m.writableObjectMode),readableObjectMode:!!(k!=null&&k.writableObjectMode),writable:B,readable:C}),B&&(v._write=function(R,A,f){m.write(R,A)?f():M=f},v._final=function(R){m.end(),L=R},m.on("drain",function(){if(M){const R=M;M=null,R()}}),k.on("finish",function(){if(L){const R=L;L=null,R()}})),C&&(k.on("readable",function(){if(_){const R=_;_=null,R()}}),k.on("end",function(){v.push(null)}),v._read=function(){for(;;){const R=k.read();if(R===null){_=v._read;return}if(!v.push(R))return}}),v._destroy=function(R,A){!R&&b!==null&&(R=new u),_=null,M=null,L=null,b===null?A(R):(b=A,n(k,R))},v},mc}var yc,ay;function Yg(){if(ay)return yc;ay=1;const{ArrayPrototypePop:e,Promise:i}=Kt(),{isIterable:n,isNodeStream:a}=Lr(),{pipelineImpl:l}=nf(),{finished:d}=_r();function u(...c){return new i((w,U)=>{let F,O;const M=c[c.length-1];if(M&&typeof M=="object"&&!a(M)&&!n(M)){const L=e(c);F=L.signal,O=L.end}l(c,(L,_)=>{L?U(L):w(_)},{signal:F,end:O})})}return yc={finished:d,pipeline:u},yc}var uy;function Sk(){if(uy)return Hl.exports;uy=1;const{Buffer:e}=Sr(),{ObjectDefineProperty:i,ObjectKeys:n,ReflectApply:a}=Kt(),{promisify:{custom:l}}=Ei(),{streamReturningOperators:d,promiseReturningOperators:u}=pk(),{codes:{ERR_ILLEGAL_CONSTRUCTOR:c}}=gn(),w=vk(),{pipeline:U}=nf(),{destroyer:F}=rs(),O=_r(),M=Yg(),L=Lr(),_=Hl.exports=$c().Stream;_.isDisturbed=L.isDisturbed,_.isErrored=L.isErrored,_.isReadable=L.isReadable,_.Readable=za();for(const v of n(d)){let m=function(...k){if(new.target)throw c();return _.Readable.from(a(h,this,k))};const h=d[v];i(m,"name",{__proto__:null,value:h.name}),i(m,"length",{__proto__:null,value:h.length}),i(_.Readable.prototype,v,{__proto__:null,value:m,enumerable:!1,configurable:!0,writable:!0})}for(const v of n(u)){let m=function(...k){if(new.target)throw c();return a(h,this,k)};const h=u[v];i(m,"name",{__proto__:null,value:h.name}),i(m,"length",{__proto__:null,value:h.length}),i(_.Readable.prototype,v,{__proto__:null,value:m,enumerable:!1,configurable:!0,writable:!0})}_.Writable=Zg(),_.Duplex=Ai(),_.Transform=Qg(),_.PassThrough=Xg(),_.pipeline=U;const{addAbortSignal:b}=ef();return _.addAbortSignal=b,_.finished=O,_.destroy=F,_.compose=w,i(_,"promises",{__proto__:null,configurable:!0,enumerable:!0,get(){return M}}),i(U,l,{__proto__:null,enumerable:!0,get(){return M.pipeline}}),i(O,l,{__proto__:null,enumerable:!0,get(){return M.finished}}),_.Stream=_,_._isUint8Array=function(h){return h instanceof Uint8Array},_._uint8ArrayToBuffer=function(h){return e.from(h.buffer,h.byteOffset,h.byteLength)},Hl.exports}var ly;function wk(){return ly||(ly=1,(function(e){const i=Sk(),n=Yg(),a=i.Readable.destroy;e.exports=i.Readable,e.exports._uint8ArrayToBuffer=i._uint8ArrayToBuffer,e.exports._isUint8Array=i._isUint8Array,e.exports.isDisturbed=i.isDisturbed,e.exports.isErrored=i.isErrored,e.exports.isReadable=i.isReadable,e.exports.Readable=i.Readable,e.exports.Writable=i.Writable,e.exports.Duplex=i.Duplex,e.exports.Transform=i.Transform,e.exports.PassThrough=i.PassThrough,e.exports.addAbortSignal=i.addAbortSignal,e.exports.finished=i.finished,e.exports.destroy=i.destroy,e.exports.destroy=a,e.exports.pipeline=i.pipeline,e.exports.compose=i.compose,Object.defineProperty(i,"promises",{configurable:!0,enumerable:!0,get(){return n}}),e.exports.Stream=i.Stream,e.exports.default=e.exports})(Gl)),Gl.exports}var cy;function Lk(){if(cy)return na;cy=1,Object.defineProperty(na,"__esModule",{value:!0});const e=wk();function i(n){n=Object.assign({},n);const a=n.array;let l=n.encoding;const d=l==="buffer";let u=!1;a?u=!(l||d):l=l||"utf8",d&&(l=void 0);let c=0;const w=[],U=new e.PassThrough({objectMode:u});return l&&U.setEncoding(l),U.on("data",F=>{w.push(F),u?c=w.length:c+=F.length}),U.getBufferedValue=()=>a?w:d?Buffer.concat(w,c):w.join(""),U.getBufferedLength=()=>c,U}return na.default=i,na}var fy;function $g(){if(fy)return ei;fy=1;var e=ei&&ei.__importDefault||function(d){return d&&d.__esModule?d:{default:d}};Object.defineProperty(ei,"__esModule",{value:!0}),ei.array=ei.buffer=ei.getStream=void 0;const i=e(Lk());function n(d,u={}){if(!d)return Promise.reject(new Error("Expected a stream"));u=Object.assign({maxBuffer:1/0},u);const c=u.maxBuffer||1/0;let w,U;const F=new Promise((O,M)=>{const L=_=>{_&&(_.bufferedData=w.getBufferedValue()),M(_)};w=(0,i.default)(u),d.once("error",L),d.pipe(w),w.on("data",()=>{w.getBufferedLength()>c&&M(new Error("maxBuffer exceeded"))}),w.once("error",L),w.on("end",O),U=()=>{d.unpipe&&d.unpipe(w)}});return F.then(U,U),F.then(()=>w.getBufferedValue())}ei.getStream=n;function a(d,u={}){n(d,Object.assign({},u,{encoding:"buffer"}))}ei.buffer=a;function l(d,u={}){n(d,Object.assign({},u,{array:!0}))}return ei.array=l,ei}var Yt={};const _k={},kk=Object.freeze(Object.defineProperty({__proto__:null,default:_k},Symbol.toStringTag,{value:"Module"})),Nk=Nc(kk);var Wi={},dy;function Ok(){if(dy)return Wi;dy=1,Object.defineProperty(Wi,"__esModule",{value:!0});var e=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(u){return typeof u}:function(u){return u&&typeof Symbol=="function"&&u.constructor===Symbol&&u!==Symbol.prototype?"symbol":typeof u},i=typeof window<"u"&&typeof window.document<"u",n=typeof process<"u"&&process.versions!=null&&process.versions.node!=null,a=(typeof self>"u"?"undefined":e(self))==="object"&&self.constructor&&self.constructor.name==="DedicatedWorkerGlobalScope",l=typeof window<"u"&&window.name==="nodejs"||typeof navigator<"u"&&(navigator.userAgent.includes("Node.js")||navigator.userAgent.includes("jsdom")),d=typeof Deno<"u"&&typeof Deno.version<"u"&&typeof Deno.version.deno<"u";return Wi.isBrowser=i,Wi.isWebWorker=a,Wi.isNode=n,Wi.isJsDom=l,Wi.isDeno=d,Wi}var gc={},Js={},hy;function Ck(){if(hy)return Js;hy=1,Object.defineProperty(Js,"__esModule",{value:!0}),Js.DefaultMap=void 0;class e extends Map{constructor(n,a){super(a),this._defaultFunc=n}get(n){let a=super.get(n);if(a===void 0){if(this.has(n))return a;a=this._defaultFunc(n),this.set(n,a)}return a}update(n,a){const l=a(this.get(n));return this.set(n,l),l}}return Js.DefaultMap=e,Js}var py;function Ek(){return py||(py=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.DefaultMap=e.exceptionToError=e.exceptionToString=e.filterUndefined=e.mapFilterUndefined=e.hasOwnProperty=e.isEnumValue=e.definedMap=e.reduceTwo=e.sleep=e.dontAwait=e.defined=e.assertNever=e.assert=e.panic=e.proveNever=e.proveType=void 0;function i(m){}e.proveType=i;function n(m,k,B){return console.trace(k),B}e.proveNever=n;function a(m="This should not happen"){console.trace(m);debugger;throw new Error(m)}e.panic=a;function l(m,k="Assertion failed"){if(!m)return a(k)}e.assert=l;function d(m,k="`never` happened"){return a(k)}e.assertNever=d;function u(m,k){return m===void 0?a("Value was undefined but should be defined"+(k!==void 0?` because: ${k}`:"")):m}e.defined=u;function c(m){m instanceof Promise&&m.catch(k=>{throw console.trace("Unhandled error from unawaited promise",k),k})}e.dontAwait=c;function w(m){return new Promise(k=>{setTimeout(k,m)})}e.sleep=w;function U(m,k,B){return m===void 0?k:k===void 0?m:B(m,k)}e.reduceTwo=U;function F(m,k){if(m!==void 0)return k(m)}e.definedMap=F;function O(m,k){return Object.keys(m).map(B=>m[B]).some(B=>B===k)}e.isEnumValue=O;function M(m,k){return m==null?!1:Object.prototype.hasOwnProperty.call(m,k)}e.hasOwnProperty=M;function L(m,k){const B=[];let C=0;for(const R of m){const A=k(R,C);C+=1,A!==void 0&&B.push(A)}return B}e.mapFilterUndefined=L;function _(m){const k=[];for(const B of m)B!==void 0&&k.push(B);return k}e.filterUndefined=_;function b(m){if(m===void 0)return"";try{return m.toString()}catch(k){try{return`Exception can't be stringified: ${b(k)}`}catch{return"Exception can't be stringified"}}}e.exceptionToString=b;function v(m){return m instanceof Error?m:new Error(b(m))}e.exceptionToError=v;var h=Ck();Object.defineProperty(e,"DefaultMap",{enumerable:!0,get:function(){return h.DefaultMap}})})(gc)),gc}var bc,my;function Ak(){if(my)return bc;my=1,bc=a;var e=/^(?:\w+:)?\/\/(\S+)$/,i=/^localhost[\:?\d]*(?:[^\:?\d]\S*)?$/,n=/^[^\s\.]+\.\S{2,}$/;function a(l){if(typeof l!="string")return!1;var d=l.match(e);if(!d)return!1;var u=d[1];return u?!!(i.test(u)||n.test(u)):!1}return bc}var ua={exports:{}},yy;function Fk(){return yy||(yy=1,(function(e,i){var n=typeof globalThis<"u"&&globalThis||typeof self<"u"&&self||typeof Dn<"u"&&Dn,a=(function(){function d(){this.fetch=!1,this.DOMException=n.DOMException}return d.prototype=n,new d})();(function(d){(function(u){var c=typeof d<"u"&&d||typeof self<"u"&&self||typeof Dn<"u"&&Dn||{},w={searchParams:"URLSearchParams"in c,iterable:"Symbol"in c&&"iterator"in Symbol,blob:"FileReader"in c&&"Blob"in c&&(function(){try{return new Blob,!0}catch{return!1}})(),formData:"FormData"in c,arrayBuffer:"ArrayBuffer"in c};function U(p){return p&&DataView.prototype.isPrototypeOf(p)}if(w.arrayBuffer)var F=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],O=ArrayBuffer.isView||function(p){return p&&F.indexOf(Object.prototype.toString.call(p))>-1};function M(p){if(typeof p!="string"&&(p=String(p)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(p)||p==="")throw new TypeError('Invalid character in header field name: "'+p+'"');return p.toLowerCase()}function L(p){return typeof p!="string"&&(p=String(p)),p}function _(p){var g={next:function(){var I=p.shift();return{done:I===void 0,value:I}}};return w.iterable&&(g[Symbol.iterator]=function(){return g}),g}function b(p){this.map={},p instanceof b?p.forEach(function(g,I){this.append(I,g)},this):Array.isArray(p)?p.forEach(function(g){if(g.length!=2)throw new TypeError("Headers constructor: expected name/value pair to be length 2, found"+g.length);this.append(g[0],g[1])},this):p&&Object.getOwnPropertyNames(p).forEach(function(g){this.append(g,p[g])},this)}b.prototype.append=function(p,g){p=M(p),g=L(g);var I=this.map[p];this.map[p]=I?I+", "+g:g},b.prototype.delete=function(p){delete this.map[M(p)]},b.prototype.get=function(p){return p=M(p),this.has(p)?this.map[p]:null},b.prototype.has=function(p){return this.map.hasOwnProperty(M(p))},b.prototype.set=function(p,g){this.map[M(p)]=L(g)},b.prototype.forEach=function(p,g){for(var I in this.map)this.map.hasOwnProperty(I)&&p.call(g,this.map[I],I,this)},b.prototype.keys=function(){var p=[];return this.forEach(function(g,I){p.push(I)}),_(p)},b.prototype.values=function(){var p=[];return this.forEach(function(g){p.push(g)}),_(p)},b.prototype.entries=function(){var p=[];return this.forEach(function(g,I){p.push([I,g])}),_(p)},w.iterable&&(b.prototype[Symbol.iterator]=b.prototype.entries);function v(p){if(!p._noBody){if(p.bodyUsed)return Promise.reject(new TypeError("Already read"));p.bodyUsed=!0}}function h(p){return new Promise(function(g,I){p.onload=function(){g(p.result)},p.onerror=function(){I(p.error)}})}function m(p){var g=new FileReader,I=h(g);return g.readAsArrayBuffer(p),I}function k(p){var g=new FileReader,I=h(g),x=/charset=([A-Za-z0-9_-]+)/.exec(p.type),q=x?x[1]:"utf-8";return g.readAsText(p,q),I}function B(p){for(var g=new Uint8Array(p),I=new Array(g.length),x=0;x<g.length;x++)I[x]=String.fromCharCode(g[x]);return I.join("")}function C(p){if(p.slice)return p.slice(0);var g=new Uint8Array(p.byteLength);return g.set(new Uint8Array(p)),g.buffer}function R(){return this.bodyUsed=!1,this._initBody=function(p){this.bodyUsed=this.bodyUsed,this._bodyInit=p,p?typeof p=="string"?this._bodyText=p:w.blob&&Blob.prototype.isPrototypeOf(p)?this._bodyBlob=p:w.formData&&FormData.prototype.isPrototypeOf(p)?this._bodyFormData=p:w.searchParams&&URLSearchParams.prototype.isPrototypeOf(p)?this._bodyText=p.toString():w.arrayBuffer&&w.blob&&U(p)?(this._bodyArrayBuffer=C(p.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):w.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(p)||O(p))?this._bodyArrayBuffer=C(p):this._bodyText=p=Object.prototype.toString.call(p):(this._noBody=!0,this._bodyText=""),this.headers.get("content-type")||(typeof p=="string"?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):w.searchParams&&URLSearchParams.prototype.isPrototypeOf(p)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},w.blob&&(this.blob=function(){var p=v(this);if(p)return p;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))}),this.arrayBuffer=function(){if(this._bodyArrayBuffer){var p=v(this);return p||(ArrayBuffer.isView(this._bodyArrayBuffer)?Promise.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength)):Promise.resolve(this._bodyArrayBuffer))}else{if(w.blob)return this.blob().then(m);throw new Error("could not read as ArrayBuffer")}},this.text=function(){var p=v(this);if(p)return p;if(this._bodyBlob)return k(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(B(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},w.formData&&(this.formData=function(){return this.text().then(S)}),this.json=function(){return this.text().then(JSON.parse)},this}var A=["CONNECT","DELETE","GET","HEAD","OPTIONS","PATCH","POST","PUT","TRACE"];function f(p){var g=p.toUpperCase();return A.indexOf(g)>-1?g:p}function E(p,g){if(!(this instanceof E))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');g=g||{};var I=g.body;if(p instanceof E){if(p.bodyUsed)throw new TypeError("Already read");this.url=p.url,this.credentials=p.credentials,g.headers||(this.headers=new b(p.headers)),this.method=p.method,this.mode=p.mode,this.signal=p.signal,!I&&p._bodyInit!=null&&(I=p._bodyInit,p.bodyUsed=!0)}else this.url=String(p);if(this.credentials=g.credentials||this.credentials||"same-origin",(g.headers||!this.headers)&&(this.headers=new b(g.headers)),this.method=f(g.method||this.method||"GET"),this.mode=g.mode||this.mode||null,this.signal=g.signal||this.signal||(function(){if("AbortController"in c){var T=new AbortController;return T.signal}})(),this.referrer=null,(this.method==="GET"||this.method==="HEAD")&&I)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(I),(this.method==="GET"||this.method==="HEAD")&&(g.cache==="no-store"||g.cache==="no-cache")){var x=/([?&])_=[^&]*/;if(x.test(this.url))this.url=this.url.replace(x,"$1_="+new Date().getTime());else{var q=/\?/;this.url+=(q.test(this.url)?"&":"?")+"_="+new Date().getTime()}}}E.prototype.clone=function(){return new E(this,{body:this._bodyInit})};function S(p){var g=new FormData;return p.trim().split("&").forEach(function(I){if(I){var x=I.split("="),q=x.shift().replace(/\+/g," "),T=x.join("=").replace(/\+/g," ");g.append(decodeURIComponent(q),decodeURIComponent(T))}}),g}function P(p){var g=new b,I=p.replace(/\r?\n[\t ]+/g," ");return I.split("\r").map(function(x){return x.indexOf(`
1003
951
  `)===0?x.substr(1,x.length):x}).forEach(function(x){var q=x.split(":"),T=q.shift().trim();if(T){var D=q.join(":").trim();try{g.append(T,D)}catch(W){console.warn("Response "+W.message)}}}),g}R.call(E.prototype);function y(p,g){if(!(this instanceof y))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');if(g||(g={}),this.type="default",this.status=g.status===void 0?200:g.status,this.status<200||this.status>599)throw new RangeError("Failed to construct 'Response': The status provided (0) is outside the range [200, 599].");this.ok=this.status>=200&&this.status<300,this.statusText=g.statusText===void 0?"":""+g.statusText,this.headers=new b(g.headers),this.url=g.url||"",this._initBody(p)}R.call(y.prototype),y.prototype.clone=function(){return new y(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new b(this.headers),url:this.url})},y.error=function(){var p=new y(null,{status:200,statusText:""});return p.ok=!1,p.status=0,p.type="error",p};var r=[301,302,303,307,308];y.redirect=function(p,g){if(r.indexOf(g)===-1)throw new RangeError("Invalid status code");return new y(null,{status:g,headers:{location:p}})},u.DOMException=c.DOMException;try{new u.DOMException}catch{u.DOMException=function(g,I){this.message=g,this.name=I;var x=Error(g);this.stack=x.stack},u.DOMException.prototype=Object.create(Error.prototype),u.DOMException.prototype.constructor=u.DOMException}function s(p,g){return new Promise(function(I,x){var q=new E(p,g);if(q.signal&&q.signal.aborted)return x(new u.DOMException("Aborted","AbortError"));var T=new XMLHttpRequest;function D(){T.abort()}T.onload=function(){var X={statusText:T.statusText,headers:P(T.getAllResponseHeaders()||"")};q.url.indexOf("file://")===0&&(T.status<200||T.status>599)?X.status=200:X.status=T.status,X.url="responseURL"in T?T.responseURL:X.headers.get("X-Request-URL");var Q="response"in T?T.response:T.responseText;setTimeout(function(){I(new y(Q,X))},0)},T.onerror=function(){setTimeout(function(){x(new TypeError("Network request failed"))},0)},T.ontimeout=function(){setTimeout(function(){x(new TypeError("Network request timed out"))},0)},T.onabort=function(){setTimeout(function(){x(new u.DOMException("Aborted","AbortError"))},0)};function W(X){try{return X===""&&c.location.href?c.location.href:X}catch{return X}}if(T.open(q.method,W(q.url),!0),q.credentials==="include"?T.withCredentials=!0:q.credentials==="omit"&&(T.withCredentials=!1),"responseType"in T&&(w.blob?T.responseType="blob":w.arrayBuffer&&(T.responseType="arraybuffer")),g&&typeof g.headers=="object"&&!(g.headers instanceof b||c.Headers&&g.headers instanceof c.Headers)){var J=[];Object.getOwnPropertyNames(g.headers).forEach(function(X){J.push(M(X)),T.setRequestHeader(X,L(g.headers[X]))}),q.headers.forEach(function(X,Q){J.indexOf(Q)===-1&&T.setRequestHeader(Q,X)})}else q.headers.forEach(function(X,Q){T.setRequestHeader(Q,X)});q.signal&&(q.signal.addEventListener("abort",D),T.onreadystatechange=function(){T.readyState===4&&q.signal.removeEventListener("abort",D)}),T.send(typeof q._bodyInit>"u"?null:q._bodyInit)})}return s.polyfill=!0,c.fetch||(c.fetch=s,c.Headers=b,c.Request=E,c.Response=y),u.Headers=b,u.Request=E,u.Response=y,u.fetch=s,Object.defineProperty(u,"__esModule",{value:!0}),u})({})})(a),a.fetch.ponyfill=!0,delete a.fetch.polyfill;var l=n.fetch?n:a;i=l.fetch,i.default=l.fetch,i.fetch=l.fetch,i.Headers=l.Headers,i.Request=l.Request,i.Response=l.Response,e.exports=i})(ua,ua.exports)),ua.exports}var gy;function eb(){if(gy)return Yt;gy=1;var e=Yt&&Yt.__createBinding||(Object.create?(function(b,v,h,m){m===void 0&&(m=h);var k=Object.getOwnPropertyDescriptor(v,h);(!k||("get"in k?!v.__esModule:k.writable||k.configurable))&&(k={enumerable:!0,get:function(){return v[h]}}),Object.defineProperty(b,m,k)}):(function(b,v,h,m){m===void 0&&(m=h),b[m]=v[h]})),i=Yt&&Yt.__setModuleDefault||(Object.create?(function(b,v){Object.defineProperty(b,"default",{enumerable:!0,value:v})}):function(b,v){b.default=v}),n=Yt&&Yt.__importStar||function(b){if(b&&b.__esModule)return b;var v={};if(b!=null)for(var h in b)h!=="default"&&Object.prototype.hasOwnProperty.call(b,h)&&e(v,b,h);return i(v,b),v},a=Yt&&Yt.__awaiter||function(b,v,h,m){function k(B){return B instanceof h?B:new h(function(C){C(B)})}return new(h||(h=Promise))(function(B,C){function R(E){try{f(m.next(E))}catch(S){C(S)}}function A(E){try{f(m.throw(E))}catch(S){C(S)}}function f(E){E.done?B(E.value):k(E.value).then(R,A)}f((m=m.apply(b,v||[])).next())})},l=Yt&&Yt.__importDefault||function(b){return b&&b.__esModule?b:{default:b}};Object.defineProperty(Yt,"__esModule",{value:!0}),Yt.readFromFileOrURL=Yt.readableFromFileOrURL=void 0;const d=n(Nk),u=Ok(),c=$g(),w=Ek(),U=Wa(),F=Ak(),O=l(Fk());function M(b){return Array.isArray(b)?b.reduce(function(v,h){if(h!==void 0&&h.length>0){const m=h.indexOf(":");if(m<0)return(0,U.panic)(`Could not parse HTTP header "${h}".`);const k=h.slice(0,m).trim(),B=h.slice(m+1).trim();v[k]=B}return v},{}):{}}function L(b,v){return a(this,void 0,void 0,function*(){try{if(F(b)){const h=yield(0,O.default)(b,{headers:M(v)});return(0,w.defined)(h.body)}else if(u.isNode){if(b==="-")return process.stdin;const h=d.lstatSync(b).isSymbolicLink()?d.readlinkSync(b):b;if(d.existsSync(h))return d.createReadStream(h,"utf8")}}catch(h){return(0,U.messageError)("MiscReadError",{fileOrURL:b,message:(0,w.exceptionToString)(h)})}return(0,U.messageError)("DriverInputFileDoesNotExist",{filename:b})})}Yt.readableFromFileOrURL=L;function _(b,v){return a(this,void 0,void 0,function*(){const h=yield L(b,v);try{return yield(0,c.getStream)(h)}catch(m){return(0,U.messageError)("MiscReadError",{fileOrURL:b,message:(0,w.exceptionToString)(m)})}})}return Yt.readFromFileOrURL=_,Yt}var hr={},by;function Pk(){if(by)return hr;by=1;var e=hr&&hr.__awaiter||function(d,u,c,w){function U(F){return F instanceof c?F:new c(function(O){O(F)})}return new(c||(c=Promise))(function(F,O){function M(b){try{_(w.next(b))}catch(v){O(v)}}function L(b){try{_(w.throw(b))}catch(v){O(v)}}function _(b){b.done?F(b.value):U(b.value).then(M,L)}_((w=w.apply(d,u||[])).next())})};Object.defineProperty(hr,"__esModule",{value:!0}),hr.FetchingJSONSchemaStore=void 0;const i=Hc(),n=Wa(),a=eb();let l=class extends i.JSONSchemaStore{constructor(u){super(),this._httpHeaders=u}fetch(u){return e(this,void 0,void 0,function*(){return(0,n.parseJSON)(yield(0,a.readFromFileOrURL)(u,this._httpHeaders),"JSON Schema",u)})}};return hr.FetchingJSONSchemaStore=l,hr}var Gs={},Ty;function Ik(){if(Ty)return Gs;Ty=1,Object.defineProperty(Gs,"__esModule",{value:!0}),Gs.sourcesFromPostmanCollection=void 0;const e=Qe();function i(a){try{return JSON.parse(a),!0}catch{return!1}}function n(a,l){const d=[],u=[];function c(F){if(typeof F=="object"){if(Array.isArray(F.item)){for(const O of F.item)c(O);typeof F.info=="object"&&typeof F.info.description=="string"&&u.push(F.info.description)}if(typeof F.name=="string"&&Array.isArray(F.response)){const O=[];for(const M of F.response)typeof M=="object"&&typeof M.body=="string"&&i(M.body)&&O.push(M.body);if(O.length>0){const M={name:F.name,samples:O},L=[F.name];if(typeof F.request=="object"){const{method:_,url:b}=F.request;_!==void 0&&typeof b=="object"&&b.raw!==void 0&&L.push(`${_} ${b.raw}`)}typeof F.request=="object"&&typeof F.request.description=="string"&&L.push(F.request.description),M.description=L.length===0?void 0:L.join(`
1004
952
 
1005
953
  `),d.push(M)}}}}c((0,e.parseJSON)(a,"Postman collection",l));const w=u.join(`