@redocly/openapi-docs 3.12.0-next.3 → 3.12.0-next.5
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.
- package/dist/redocly-openapi-docs.min.js +3 -3
- package/lib/components/Markdown/Markdown.d.ts +1 -1
- package/lib/components/Markdown/Markdown.js +1 -1
- package/lib/components/Markdown/types.d.ts +11 -2
- package/lib/index.d.ts +1 -0
- package/lib/index.js +1 -1
- package/lib/services/config-options/types.d.ts +2 -10
- package/package.json +4 -4
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* @license Redocly OpenAPI Docs
|
|
3
3
|
* (c) Copyright 2025 Redocly LLC, all rights reserved.
|
|
4
4
|
* -------------------------------------------------------------
|
|
5
|
-
* Version: 3.12.0-next.
|
|
5
|
+
* Version: 3.12.0-next.5
|
|
6
6
|
**/function X_(e,t){for(var r=0;r<t.length;r++){const n=t[r];if(typeof n!="string"&&!Array.isArray(n)){for(const o in n)if(o!=="default"&&!(o in e)){const i=Object.getOwnPropertyDescriptor(n,o);i&&Object.defineProperty(e,o,i.get?i:{enumerable:!0,get:()=>n[o]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}function qn(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Y_(e){if(Object.prototype.hasOwnProperty.call(e,"__esModule"))return e;var t=e.default;if(typeof t=="function"){var r=function n(){return this instanceof n?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(n){var o=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(r,n,o.get?o:{enumerable:!0,get:function(){return e[n]}})}),r}var G_={exports:{}},Bg={};/**
|
|
7
7
|
* @license React
|
|
8
8
|
* react-jsx-runtime.production.js
|
|
@@ -8756,7 +8756,7 @@ ${o.indent}`,variablesPrefix:o.variablesPrefix,capitalize:!0,lang:tr.PHP});h.len
|
|
|
8756
8756
|
white-space: nowrap;
|
|
8757
8757
|
overflow: hidden;
|
|
8758
8758
|
`;/*! @license DOMPurify 3.2.6 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.2.6/LICENSE */const{entries:iB,setPrototypeOf:aB,isFrozen:Wwe,getPrototypeOf:Uwe,getOwnPropertyDescriptor:Hwe}=Object;let{freeze:Oi,seal:ts,create:sB}=Object,{apply:r9,construct:n9}=typeof Reflect<"u"&&Reflect;Oi||(Oi=function(e){return e}),ts||(ts=function(e){return e}),r9||(r9=function(e,t,r){return e.apply(t,r)}),n9||(n9=function(e,t){return new e(...t)});const Wb=ki(Array.prototype.forEach),Xwe=ki(Array.prototype.lastIndexOf),lB=ki(Array.prototype.pop),S1=ki(Array.prototype.push),Ywe=ki(Array.prototype.splice),Ub=ki(String.prototype.toLowerCase),o9=ki(String.prototype.toString),cB=ki(String.prototype.match),j1=ki(String.prototype.replace),Gwe=ki(String.prototype.indexOf),Jwe=ki(String.prototype.trim),$s=ki(Object.prototype.hasOwnProperty),wi=ki(RegExp.prototype.test),A1=Kwe(TypeError);function ki(e){return function(t){t instanceof RegExp&&(t.lastIndex=0);for(var r=arguments.length,n=new Array(r>1?r-1:0),o=1;o<r;o++)n[o-1]=arguments[o];return r9(e,t,n)}}function Kwe(e){return function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return n9(e,r)}}function or(e,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Ub;aB&&aB(e,null);let n=t.length;for(;n--;){let o=t[n];if(typeof o=="string"){const i=r(o);i!==o&&(Wwe(t)||(t[n]=i),o=i)}e[o]=!0}return e}function e9e(e){for(let t=0;t<e.length;t++)$s(e,t)||(e[t]=null);return e}function mc(e){const t=sB(null);for(const[r,n]of iB(e))$s(e,r)&&(Array.isArray(n)?t[r]=e9e(n):n&&typeof n=="object"&&n.constructor===Object?t[r]=mc(n):t[r]=n);return t}function E1(e,t){for(;e!==null;){const n=Hwe(e,t);if(n){if(n.get)return ki(n.get);if(typeof n.value=="function")return ki(n.value)}e=Uwe(e)}function r(){return null}return r}const uB=Oi(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),i9=Oi(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),a9=Oi(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),t9e=Oi(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),s9=Oi(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),r9e=Oi(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),dB=Oi(["#text"]),pB=Oi(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),l9=Oi(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),hB=Oi(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),Hb=Oi(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),n9e=ts(/\{\{[\w\W]*|[\w\W]*\}\}/gm),o9e=ts(/<%[\w\W]*|[\w\W]*%>/gm),i9e=ts(/\$\{[\w\W]*/gm),a9e=ts(/^data-[\-\w.\u00B7-\uFFFF]+$/),s9e=ts(/^aria-[\-\w]+$/),fB=ts(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),l9e=ts(/^(?:\w+script|data):/i),c9e=ts(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),gB=ts(/^html$/i),u9e=ts(/^[a-z][.\w]*(-[.\w]+)+$/i);var mB=Object.freeze({__proto__:null,ARIA_ATTR:s9e,ATTR_WHITESPACE:c9e,CUSTOM_ELEMENT:u9e,DATA_ATTR:a9e,DOCTYPE_NAME:gB,ERB_EXPR:o9e,IS_ALLOWED_URI:fB,IS_SCRIPT_OR_DATA:l9e,MUSTACHE_EXPR:n9e,TMPLIT_EXPR:i9e});const P1={element:1,text:3,progressingInstruction:7,comment:8,document:9},d9e=function(){return typeof window>"u"?null:window},p9e=function(e,t){if(typeof e!="object"||typeof e.createPolicy!="function")return null;let r=null;const n="data-tt-policy-suffix";t&&t.hasAttribute(n)&&(r=t.getAttribute(n));const o="dompurify"+(r?"#"+r:"");try{return e.createPolicy(o,{createHTML(i){return i},createScriptURL(i){return i}})}catch{return console.warn("TrustedTypes policy "+o+" could not be created."),null}},vB=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function bB(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:d9e();const t=ke=>bB(ke);if(t.version="3.2.6",t.removed=[],!e||!e.document||e.document.nodeType!==P1.document||!e.Element)return t.isSupported=!1,t;let{document:r}=e;const n=r,o=n.currentScript,{DocumentFragment:i,HTMLTemplateElement:a,Node:s,Element:l,NodeFilter:c,NamedNodeMap:u=e.NamedNodeMap||e.MozNamedAttrMap,HTMLFormElement:d,DOMParser:h,trustedTypes:g}=e,v=l.prototype,b=E1(v,"cloneNode"),y=E1(v,"remove"),x=E1(v,"nextSibling"),O=E1(v,"childNodes"),k=E1(v,"parentNode");if(typeof a=="function"){const ke=r.createElement("template");ke.content&&ke.content.ownerDocument&&(r=ke.content.ownerDocument)}let j,C="";const{implementation:A,createNodeIterator:E,createDocumentFragment:P,getElementsByTagName:T}=r,{importNode:I}=n;let L=vB();t.isSupported=typeof iB=="function"&&typeof k=="function"&&A&&A.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:M,ERB_EXPR:N,TMPLIT_EXPR:z,DATA_ATTR:U,ARIA_ATTR:X,IS_SCRIPT_OR_DATA:te,ATTR_WHITESPACE:ee,CUSTOM_ELEMENT:se}=mB;let{IS_ALLOWED_URI:W}=mB,Q=null;const Y=or({},[...uB,...i9,...a9,...s9,...dB]);let q=null;const H=or({},[...pB,...l9,...hB,...Hb]);let re=Object.seal(sB(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),G=null,oe=null,ne=!0,be=!0,ve=!1,_=!0,Z=!1,fe=!0,F=!1,he=!1,ue=!1,K=!1,ae=!1,le=!1,Ce=!0,Se=!1;const me="user-content-";let ye=!0,xe=!1,Ee={},Ue=null;const B=or({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let J=null;const ce=or({},["audio","video","img","source","image","track"]);let je=null;const $e=or({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Be="http://www.w3.org/1998/Math/MathML",qe="http://www.w3.org/2000/svg",pt="http://www.w3.org/1999/xhtml";let Dt=pt,wt=!1,bt=null;const Ut=or({},[Be,qe,pt],o9);let jo=or({},["mi","mo","mn","ms","mtext"]),ro=or({},["annotation-xml"]);const Vo=or({},["title","style","font","a","script"]);let rn=null;const yn=["application/xhtml+xml","text/html"],Cn="text/html";let Cr=null,Sr=null;const vo=r.createElement("form"),ar=function(ke){return ke instanceof RegExp||ke instanceof Function},sr=function(){let ke=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(Sr&&Sr===ke)){if((!ke||typeof ke!="object")&&(ke={}),ke=mc(ke),rn=yn.indexOf(ke.PARSER_MEDIA_TYPE)===-1?Cn:ke.PARSER_MEDIA_TYPE,Cr=rn==="application/xhtml+xml"?o9:Ub,Q=$s(ke,"ALLOWED_TAGS")?or({},ke.ALLOWED_TAGS,Cr):Y,q=$s(ke,"ALLOWED_ATTR")?or({},ke.ALLOWED_ATTR,Cr):H,bt=$s(ke,"ALLOWED_NAMESPACES")?or({},ke.ALLOWED_NAMESPACES,o9):Ut,je=$s(ke,"ADD_URI_SAFE_ATTR")?or(mc($e),ke.ADD_URI_SAFE_ATTR,Cr):$e,J=$s(ke,"ADD_DATA_URI_TAGS")?or(mc(ce),ke.ADD_DATA_URI_TAGS,Cr):ce,Ue=$s(ke,"FORBID_CONTENTS")?or({},ke.FORBID_CONTENTS,Cr):B,G=$s(ke,"FORBID_TAGS")?or({},ke.FORBID_TAGS,Cr):mc({}),oe=$s(ke,"FORBID_ATTR")?or({},ke.FORBID_ATTR,Cr):mc({}),Ee=$s(ke,"USE_PROFILES")?ke.USE_PROFILES:!1,ne=ke.ALLOW_ARIA_ATTR!==!1,be=ke.ALLOW_DATA_ATTR!==!1,ve=ke.ALLOW_UNKNOWN_PROTOCOLS||!1,_=ke.ALLOW_SELF_CLOSE_IN_ATTR!==!1,Z=ke.SAFE_FOR_TEMPLATES||!1,fe=ke.SAFE_FOR_XML!==!1,F=ke.WHOLE_DOCUMENT||!1,K=ke.RETURN_DOM||!1,ae=ke.RETURN_DOM_FRAGMENT||!1,le=ke.RETURN_TRUSTED_TYPE||!1,ue=ke.FORCE_BODY||!1,Ce=ke.SANITIZE_DOM!==!1,Se=ke.SANITIZE_NAMED_PROPS||!1,ye=ke.KEEP_CONTENT!==!1,xe=ke.IN_PLACE||!1,W=ke.ALLOWED_URI_REGEXP||fB,Dt=ke.NAMESPACE||pt,jo=ke.MATHML_TEXT_INTEGRATION_POINTS||jo,ro=ke.HTML_INTEGRATION_POINTS||ro,re=ke.CUSTOM_ELEMENT_HANDLING||{},ke.CUSTOM_ELEMENT_HANDLING&&ar(ke.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(re.tagNameCheck=ke.CUSTOM_ELEMENT_HANDLING.tagNameCheck),ke.CUSTOM_ELEMENT_HANDLING&&ar(ke.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(re.attributeNameCheck=ke.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),ke.CUSTOM_ELEMENT_HANDLING&&typeof ke.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(re.allowCustomizedBuiltInElements=ke.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Z&&(be=!1),ae&&(K=!0),Ee&&(Q=or({},dB),q=[],Ee.html===!0&&(or(Q,uB),or(q,pB)),Ee.svg===!0&&(or(Q,i9),or(q,l9),or(q,Hb)),Ee.svgFilters===!0&&(or(Q,a9),or(q,l9),or(q,Hb)),Ee.mathMl===!0&&(or(Q,s9),or(q,hB),or(q,Hb))),ke.ADD_TAGS&&(Q===Y&&(Q=mc(Q)),or(Q,ke.ADD_TAGS,Cr)),ke.ADD_ATTR&&(q===H&&(q=mc(q)),or(q,ke.ADD_ATTR,Cr)),ke.ADD_URI_SAFE_ATTR&&or(je,ke.ADD_URI_SAFE_ATTR,Cr),ke.FORBID_CONTENTS&&(Ue===B&&(Ue=mc(Ue)),or(Ue,ke.FORBID_CONTENTS,Cr)),ye&&(Q["#text"]=!0),F&&or(Q,["html","head","body"]),Q.table&&(or(Q,["tbody"]),delete G.tbody),ke.TRUSTED_TYPES_POLICY){if(typeof ke.TRUSTED_TYPES_POLICY.createHTML!="function")throw A1('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof ke.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw A1('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');j=ke.TRUSTED_TYPES_POLICY,C=j.createHTML("")}else j===void 0&&(j=p9e(g,o)),j!==null&&typeof C=="string"&&(C=j.createHTML(""));Oi&&Oi(ke),Sr=ke}},Wr=or({},[...i9,...a9,...t9e]),wr=or({},[...s9,...r9e]),we=function(ke){let Je=k(ke);(!Je||!Je.tagName)&&(Je={namespaceURI:Dt,tagName:"template"});const Ke=Ub(ke.tagName),xt=Ub(Je.tagName);return bt[ke.namespaceURI]?ke.namespaceURI===qe?Je.namespaceURI===pt?Ke==="svg":Je.namespaceURI===Be?Ke==="svg"&&(xt==="annotation-xml"||jo[xt]):!!Wr[Ke]:ke.namespaceURI===Be?Je.namespaceURI===pt?Ke==="math":Je.namespaceURI===qe?Ke==="math"&&ro[xt]:!!wr[Ke]:ke.namespaceURI===pt?Je.namespaceURI===qe&&!ro[xt]||Je.namespaceURI===Be&&!jo[xt]?!1:!wr[Ke]&&(Vo[Ke]||!Wr[Ke]):!!(rn==="application/xhtml+xml"&&bt[ke.namespaceURI]):!1},st=function(ke){S1(t.removed,{element:ke});try{k(ke).removeChild(ke)}catch{y(ke)}},xn=function(ke,Je){try{S1(t.removed,{attribute:Je.getAttributeNode(ke),from:Je})}catch{S1(t.removed,{attribute:null,from:Je})}if(Je.removeAttribute(ke),ke==="is")if(K||ae)try{st(Je)}catch{}else try{Je.setAttribute(ke,"")}catch{}},Ao=function(ke){let Je=null,Ke=null;if(ue)ke="<remove></remove>"+ke;else{const jr=cB(ke,/^[\r\n\t ]+/);Ke=jr&&jr[0]}rn==="application/xhtml+xml"&&Dt===pt&&(ke='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+ke+"</body></html>");const xt=j?j.createHTML(ke):ke;if(Dt===pt)try{Je=new h().parseFromString(xt,rn)}catch{}if(!Je||!Je.documentElement){Je=A.createDocument(Dt,"template",null);try{Je.documentElement.innerHTML=wt?C:xt}catch{}}const Ur=Je.body||Je.documentElement;return ke&&Ke&&Ur.insertBefore(r.createTextNode(Ke),Ur.childNodes[0]||null),Dt===pt?T.call(Je,F?"html":"body")[0]:F?Je.documentElement:Ur},yt=function(ke){return E.call(ke.ownerDocument||ke,ke,c.SHOW_ELEMENT|c.SHOW_COMMENT|c.SHOW_TEXT|c.SHOW_PROCESSING_INSTRUCTION|c.SHOW_CDATA_SECTION,null)},Fo=function(ke){return ke instanceof d&&(typeof ke.nodeName!="string"||typeof ke.textContent!="string"||typeof ke.removeChild!="function"||!(ke.attributes instanceof u)||typeof ke.removeAttribute!="function"||typeof ke.setAttribute!="function"||typeof ke.namespaceURI!="string"||typeof ke.insertBefore!="function"||typeof ke.hasChildNodes!="function")},zi=function(ke){return typeof s=="function"&&ke instanceof s};function _r(ke,Je,Ke){Wb(ke,xt=>{xt.call(t,Je,Ke,Sr)})}const bo=function(ke){let Je=null;if(_r(L.beforeSanitizeElements,ke,null),Fo(ke))return st(ke),!0;const Ke=Cr(ke.nodeName);if(_r(L.uponSanitizeElement,ke,{tagName:Ke,allowedTags:Q}),fe&&ke.hasChildNodes()&&!zi(ke.firstElementChild)&&wi(/<[/\w!]/g,ke.innerHTML)&&wi(/<[/\w!]/g,ke.textContent)||ke.nodeType===P1.progressingInstruction||fe&&ke.nodeType===P1.comment&&wi(/<[/\w]/g,ke.data))return st(ke),!0;if(!Q[Ke]||G[Ke]){if(!G[Ke]&&no(Ke)&&(re.tagNameCheck instanceof RegExp&&wi(re.tagNameCheck,Ke)||re.tagNameCheck instanceof Function&&re.tagNameCheck(Ke)))return!1;if(ye&&!Ue[Ke]){const xt=k(ke)||ke.parentNode,Ur=O(ke)||ke.childNodes;if(Ur&&xt){const jr=Ur.length;for(let Sn=jr-1;Sn>=0;--Sn){const Vn=b(Ur[Sn],!0);Vn.__removalCount=(ke.__removalCount||0)+1,xt.insertBefore(Vn,x(ke))}}}return st(ke),!0}return ke instanceof l&&!we(ke)||(Ke==="noscript"||Ke==="noembed"||Ke==="noframes")&&wi(/<\/no(script|embed|frames)/i,ke.innerHTML)?(st(ke),!0):(Z&&ke.nodeType===P1.text&&(Je=ke.textContent,Wb([M,N,z],xt=>{Je=j1(Je,xt," ")}),ke.textContent!==Je&&(S1(t.removed,{element:ke.cloneNode()}),ke.textContent=Je)),_r(L.afterSanitizeElements,ke,null),!1)},nn=function(ke,Je,Ke){if(Ce&&(Je==="id"||Je==="name")&&(Ke in r||Ke in vo))return!1;if(!(be&&!oe[Je]&&wi(U,Je))&&!(ne&&wi(X,Je))){if(!q[Je]||oe[Je]){if(!(no(ke)&&(re.tagNameCheck instanceof RegExp&&wi(re.tagNameCheck,ke)||re.tagNameCheck instanceof Function&&re.tagNameCheck(ke))&&(re.attributeNameCheck instanceof RegExp&&wi(re.attributeNameCheck,Je)||re.attributeNameCheck instanceof Function&&re.attributeNameCheck(Je))||Je==="is"&&re.allowCustomizedBuiltInElements&&(re.tagNameCheck instanceof RegExp&&wi(re.tagNameCheck,Ke)||re.tagNameCheck instanceof Function&&re.tagNameCheck(Ke))))return!1}else if(!je[Je]&&!wi(W,j1(Ke,ee,""))&&!((Je==="src"||Je==="xlink:href"||Je==="href")&&ke!=="script"&&Gwe(Ke,"data:")===0&&J[ke])&&!(ve&&!wi(te,j1(Ke,ee,"")))&&Ke)return!1}return!0},no=function(ke){return ke!=="annotation-xml"&&cB(ke,se)},oo=function(ke){_r(L.beforeSanitizeAttributes,ke,null);const{attributes:Je}=ke;if(!Je||Fo(ke))return;const Ke={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:q,forceKeepAttr:void 0};let xt=Je.length;for(;xt--;){const Ur=Je[xt],{name:jr,namespaceURI:Sn,value:Vn}=Ur,_n=Cr(jr),Qo=Vn;let pr=jr==="value"?Qo:Jwe(Qo);if(Ke.attrName=_n,Ke.attrValue=pr,Ke.keepAttr=!0,Ke.forceKeepAttr=void 0,_r(L.uponSanitizeAttribute,ke,Ke),pr=Ke.attrValue,Se&&(_n==="id"||_n==="name")&&(xn(jr,ke),pr=me+pr),fe&&wi(/((--!?|])>)|<\/(style|title)/i,pr)){xn(jr,ke);continue}if(Ke.forceKeepAttr)continue;if(!Ke.keepAttr){xn(jr,ke);continue}if(!_&&wi(/\/>/i,pr)){xn(jr,ke);continue}Z&&Wb([M,N,z],Na=>{pr=j1(pr,Na," ")});const Eo=Cr(ke.nodeName);if(!nn(Eo,_n,pr)){xn(jr,ke);continue}if(j&&typeof g=="object"&&typeof g.getAttributeType=="function"&&!Sn)switch(g.getAttributeType(Eo,_n)){case"TrustedHTML":{pr=j.createHTML(pr);break}case"TrustedScriptURL":{pr=j.createScriptURL(pr);break}}if(pr!==Qo)try{Sn?ke.setAttributeNS(Sn,jr,pr):ke.setAttribute(jr,pr),Fo(ke)?st(ke):lB(t.removed)}catch{xn(jr,ke)}}_r(L.afterSanitizeAttributes,ke,null)},br=function ke(Je){let Ke=null;const xt=yt(Je);for(_r(L.beforeSanitizeShadowDOM,Je,null);Ke=xt.nextNode();)_r(L.uponSanitizeShadowNode,Ke,null),bo(Ke),oo(Ke),Ke.content instanceof i&&ke(Ke.content);_r(L.afterSanitizeShadowDOM,Je,null)};return t.sanitize=function(ke){let Je=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Ke=null,xt=null,Ur=null,jr=null;if(wt=!ke,wt&&(ke="<!-->"),typeof ke!="string"&&!zi(ke))if(typeof ke.toString=="function"){if(ke=ke.toString(),typeof ke!="string")throw A1("dirty is not a string, aborting")}else throw A1("toString is not a function");if(!t.isSupported)return ke;if(he||sr(Je),t.removed=[],typeof ke=="string"&&(xe=!1),xe){if(ke.nodeName){const _n=Cr(ke.nodeName);if(!Q[_n]||G[_n])throw A1("root node is forbidden and cannot be sanitized in-place")}}else if(ke instanceof s)Ke=Ao("<!---->"),xt=Ke.ownerDocument.importNode(ke,!0),xt.nodeType===P1.element&&xt.nodeName==="BODY"||xt.nodeName==="HTML"?Ke=xt:Ke.appendChild(xt);else{if(!K&&!Z&&!F&&ke.indexOf("<")===-1)return j&&le?j.createHTML(ke):ke;if(Ke=Ao(ke),!Ke)return K?null:le?C:""}Ke&&ue&&st(Ke.firstChild);const Sn=yt(xe?ke:Ke);for(;Ur=Sn.nextNode();)bo(Ur),oo(Ur),Ur.content instanceof i&&br(Ur.content);if(xe)return ke;if(K){if(ae)for(jr=P.call(Ke.ownerDocument);Ke.firstChild;)jr.appendChild(Ke.firstChild);else jr=Ke;return(q.shadowroot||q.shadowrootmode)&&(jr=I.call(n,jr,!0)),jr}let Vn=F?Ke.outerHTML:Ke.innerHTML;return F&&Q["!doctype"]&&Ke.ownerDocument&&Ke.ownerDocument.doctype&&Ke.ownerDocument.doctype.name&&wi(gB,Ke.ownerDocument.doctype.name)&&(Vn="<!DOCTYPE "+Ke.ownerDocument.doctype.name+`>
|
|
8759
|
-
`+Vn),Z&&Wb([M,N,z],_n=>{Vn=j1(Vn,_n," ")}),j&&le?j.createHTML(Vn):Vn},t.setConfig=function(){let ke=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};sr(ke),he=!0},t.clearConfig=function(){Sr=null,he=!1},t.isValidAttribute=function(ke,Je,Ke){Sr||sr({});const xt=Cr(ke),Ur=Cr(Je);return nn(xt,Ur,Ke)},t.addHook=function(ke,Je){typeof Je=="function"&&S1(L[ke],Je)},t.removeHook=function(ke,Je){if(Je!==void 0){const Ke=Xwe(L[ke],Je);return Ke===-1?void 0:Ywe(L[ke],Ke,1)[0]}return lB(L[ke])},t.removeHooks=function(ke){L[ke]=[]},t.removeAllHooks=function(){L=vB()},t}var h9e=bB();const f9e=["OpenApiResponse","OpenApiRequestBody"],ko=({source:e,ast:t,htmlWrap:r,...
|
|
8759
|
+
`+Vn),Z&&Wb([M,N,z],_n=>{Vn=j1(Vn,_n," ")}),j&&le?j.createHTML(Vn):Vn},t.setConfig=function(){let ke=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};sr(ke),he=!0},t.clearConfig=function(){Sr=null,he=!1},t.isValidAttribute=function(ke,Je,Ke){Sr||sr({});const xt=Cr(ke),Ur=Cr(Je);return nn(xt,Ur,Ke)},t.addHook=function(ke,Je){typeof Je=="function"&&S1(L[ke],Je)},t.removeHook=function(ke,Je){if(Je!==void 0){const Ke=Xwe(L[ke],Je);return Ke===-1?void 0:Ywe(L[ke],Ke,1)[0]}return lB(L[ke])},t.removeHooks=function(ke){L[ke]=[]},t.removeAllHooks=function(){L=vB()},t}var h9e=bB();const f9e=["OpenApiResponse","OpenApiRequestBody"],ko=({source:e,ast:t,htmlWrap:r,markdocOptions:n,...o})=>{const i=jt(xi);if(!e&&!t)return null;const a=Object.keys(i?.markdocOptions||{}).length?i?.markdocOptions:n,s=a&&{tags:a?.tags,nodes:a?.nodes,partials:a?.partials,variables:a?.variables,functions:a?.functions},l=a&&{components:a?.components};let c;if(e)if(Sd(e)){const g=i?.unstable_hooks?.sanitize?i.unstable_hooks?.sanitize?.(e):i?.sanitize?h9e.sanitize(e):e,v=Zr.parse(g);c=Zr.transform(v,s)}else{const g=Zr.Ast.fromJSON(typeof e.result=="object"?JSON.stringify(e.result):e.result);Array.isArray(g),c=Zr.transform(g,s)}else t&&(c=Zr.transform(t,s));const u=g=>{const v=Zr.renderers.react(g,kt,l);return f.jsx(ul,{...o,children:v,as:"div"})};if(!r)return u(c);const d=g=>g.attributes?.htmlWrap!==!1&&!f9e.includes(g?.name),h=(g,v)=>g?r(u(v)):u(v);return c=Array.isArray(c)?c:c.children,f.jsx(f.Fragment,{children:c.map((g,v)=>f.jsx($.Fragment,{children:h(d(g),g)},g?.attributes?.id||v))})},fl=Pe.span`
|
|
8760
8760
|
vertical-align: middle;
|
|
8761
8761
|
line-height: var(--schema-labels-line-height);
|
|
8762
8762
|
font-size: var(--schema-property-labels-font-size);
|
|
@@ -10469,7 +10469,7 @@ globstar while`,t,h,r,g,v),this.matchOne(t.slice(h),r.slice(g),n))return this.de
|
|
|
10469
10469
|
* @author Feross Aboukhadijeh <https://feross.org>
|
|
10470
10470
|
* @license MIT
|
|
10471
10471
|
*/var aZ;function xy(){return aZ||(aZ=1,function(e){const t=pRe(),r=hRe(),n=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;e.Buffer=s,e.SlowBuffer=O,e.INSPECT_MAX_BYTES=50;const o=2147483647;e.kMaxLength=o,s.TYPED_ARRAY_SUPPORT=i(),!s.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 i(){try{const B=new Uint8Array(1),J={foo:function(){return 42}};return Object.setPrototypeOf(J,Uint8Array.prototype),Object.setPrototypeOf(B,J),B.foo()===42}catch{return!1}}Object.defineProperty(s.prototype,"parent",{enumerable:!0,get:function(){if(s.isBuffer(this))return this.buffer}}),Object.defineProperty(s.prototype,"offset",{enumerable:!0,get:function(){if(s.isBuffer(this))return this.byteOffset}});function a(B){if(B>o)throw new RangeError('The value "'+B+'" is invalid for option "size"');const J=new Uint8Array(B);return Object.setPrototypeOf(J,s.prototype),J}function s(B,J,ce){if(typeof B=="number"){if(typeof J=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return d(B)}return l(B,J,ce)}s.poolSize=8192;function l(B,J,ce){if(typeof B=="string")return h(B,J);if(ArrayBuffer.isView(B))return v(B);if(B==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof B);if(me(B,ArrayBuffer)||B&&me(B.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(me(B,SharedArrayBuffer)||B&&me(B.buffer,SharedArrayBuffer)))return b(B,J,ce);if(typeof B=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');const je=B.valueOf&&B.valueOf();if(je!=null&&je!==B)return s.from(je,J,ce);const $e=y(B);if($e)return $e;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof B[Symbol.toPrimitive]=="function")return s.from(B[Symbol.toPrimitive]("string"),J,ce);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof B)}s.from=function(B,J,ce){return l(B,J,ce)},Object.setPrototypeOf(s.prototype,Uint8Array.prototype),Object.setPrototypeOf(s,Uint8Array);function c(B){if(typeof B!="number")throw new TypeError('"size" argument must be of type number');if(B<0)throw new RangeError('The value "'+B+'" is invalid for option "size"')}function u(B,J,ce){return c(B),B<=0?a(B):J!==void 0?typeof ce=="string"?a(B).fill(J,ce):a(B).fill(J):a(B)}s.alloc=function(B,J,ce){return u(B,J,ce)};function d(B){return c(B),a(B<0?0:x(B)|0)}s.allocUnsafe=function(B){return d(B)},s.allocUnsafeSlow=function(B){return d(B)};function h(B,J){if((typeof J!="string"||J==="")&&(J="utf8"),!s.isEncoding(J))throw new TypeError("Unknown encoding: "+J);const ce=k(B,J)|0;let je=a(ce);const $e=je.write(B,J);return $e!==ce&&(je=je.slice(0,$e)),je}function g(B){const J=B.length<0?0:x(B.length)|0,ce=a(J);for(let je=0;je<J;je+=1)ce[je]=B[je]&255;return ce}function v(B){if(me(B,Uint8Array)){const J=new Uint8Array(B);return b(J.buffer,J.byteOffset,J.byteLength)}return g(B)}function b(B,J,ce){if(J<0||B.byteLength<J)throw new RangeError('"offset" is outside of buffer bounds');if(B.byteLength<J+(ce||0))throw new RangeError('"length" is outside of buffer bounds');let je;return J===void 0&&ce===void 0?je=new Uint8Array(B):ce===void 0?je=new Uint8Array(B,J):je=new Uint8Array(B,J,ce),Object.setPrototypeOf(je,s.prototype),je}function y(B){if(s.isBuffer(B)){const J=x(B.length)|0,ce=a(J);return ce.length===0||B.copy(ce,0,0,J),ce}if(B.length!==void 0)return typeof B.length!="number"||ye(B.length)?a(0):g(B);if(B.type==="Buffer"&&Array.isArray(B.data))return g(B.data)}function x(B){if(B>=o)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+o.toString(16)+" bytes");return B|0}function O(B){return+B!=B&&(B=0),s.alloc(+B)}s.isBuffer=function(B){return B!=null&&B._isBuffer===!0&&B!==s.prototype},s.compare=function(B,J){if(me(B,Uint8Array)&&(B=s.from(B,B.offset,B.byteLength)),me(J,Uint8Array)&&(J=s.from(J,J.offset,J.byteLength)),!s.isBuffer(B)||!s.isBuffer(J))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(B===J)return 0;let ce=B.length,je=J.length;for(let $e=0,Be=Math.min(ce,je);$e<Be;++$e)if(B[$e]!==J[$e]){ce=B[$e],je=J[$e];break}return ce<je?-1:je<ce?1:0},s.isEncoding=function(B){switch(String(B).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}},s.concat=function(B,J){if(!Array.isArray(B))throw new TypeError('"list" argument must be an Array of Buffers');if(B.length===0)return s.alloc(0);let ce;if(J===void 0)for(J=0,ce=0;ce<B.length;++ce)J+=B[ce].length;const je=s.allocUnsafe(J);let $e=0;for(ce=0;ce<B.length;++ce){let Be=B[ce];if(me(Be,Uint8Array))$e+Be.length>je.length?(s.isBuffer(Be)||(Be=s.from(Be)),Be.copy(je,$e)):Uint8Array.prototype.set.call(je,Be,$e);else if(s.isBuffer(Be))Be.copy(je,$e);else throw new TypeError('"list" argument must be an Array of Buffers');$e+=Be.length}return je};function k(B,J){if(s.isBuffer(B))return B.length;if(ArrayBuffer.isView(B)||me(B,ArrayBuffer))return B.byteLength;if(typeof B!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof B);const ce=B.length,je=arguments.length>2&&arguments[2]===!0;if(!je&&ce===0)return 0;let $e=!1;for(;;)switch(J){case"ascii":case"latin1":case"binary":return ce;case"utf8":case"utf-8":return K(B).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return ce*2;case"hex":return ce>>>1;case"base64":return Ce(B).length;default:if($e)return je?-1:K(B).length;J=(""+J).toLowerCase(),$e=!0}}s.byteLength=k;function j(B,J,ce){let je=!1;if((J===void 0||J<0)&&(J=0),J>this.length||((ce===void 0||ce>this.length)&&(ce=this.length),ce<=0)||(ce>>>=0,J>>>=0,ce<=J))return"";for(B||(B="utf8");;)switch(B){case"hex":return se(this,J,ce);case"utf8":case"utf-8":return z(this,J,ce);case"ascii":return te(this,J,ce);case"latin1":case"binary":return ee(this,J,ce);case"base64":return N(this,J,ce);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return W(this,J,ce);default:if(je)throw new TypeError("Unknown encoding: "+B);B=(B+"").toLowerCase(),je=!0}}s.prototype._isBuffer=!0;function C(B,J,ce){const je=B[J];B[J]=B[ce],B[ce]=je}s.prototype.swap16=function(){const B=this.length;if(B%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let J=0;J<B;J+=2)C(this,J,J+1);return this},s.prototype.swap32=function(){const B=this.length;if(B%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let J=0;J<B;J+=4)C(this,J,J+3),C(this,J+1,J+2);return this},s.prototype.swap64=function(){const B=this.length;if(B%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let J=0;J<B;J+=8)C(this,J,J+7),C(this,J+1,J+6),C(this,J+2,J+5),C(this,J+3,J+4);return this},s.prototype.toString=function(){const B=this.length;return B===0?"":arguments.length===0?z(this,0,B):j.apply(this,arguments)},s.prototype.toLocaleString=s.prototype.toString,s.prototype.equals=function(B){if(!s.isBuffer(B))throw new TypeError("Argument must be a Buffer");return this===B?!0:s.compare(this,B)===0},s.prototype.inspect=function(){let B="";const J=e.INSPECT_MAX_BYTES;return B=this.toString("hex",0,J).replace(/(.{2})/g,"$1 ").trim(),this.length>J&&(B+=" ... "),"<Buffer "+B+">"},n&&(s.prototype[n]=s.prototype.inspect),s.prototype.compare=function(B,J,ce,je,$e){if(me(B,Uint8Array)&&(B=s.from(B,B.offset,B.byteLength)),!s.isBuffer(B))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof B);if(J===void 0&&(J=0),ce===void 0&&(ce=B?B.length:0),je===void 0&&(je=0),$e===void 0&&($e=this.length),J<0||ce>B.length||je<0||$e>this.length)throw new RangeError("out of range index");if(je>=$e&&J>=ce)return 0;if(je>=$e)return-1;if(J>=ce)return 1;if(J>>>=0,ce>>>=0,je>>>=0,$e>>>=0,this===B)return 0;let Be=$e-je,qe=ce-J;const pt=Math.min(Be,qe),Dt=this.slice(je,$e),wt=B.slice(J,ce);for(let bt=0;bt<pt;++bt)if(Dt[bt]!==wt[bt]){Be=Dt[bt],qe=wt[bt];break}return Be<qe?-1:qe<Be?1:0};function A(B,J,ce,je,$e){if(B.length===0)return-1;if(typeof ce=="string"?(je=ce,ce=0):ce>2147483647?ce=2147483647:ce<-2147483648&&(ce=-2147483648),ce=+ce,ye(ce)&&(ce=$e?0:B.length-1),ce<0&&(ce=B.length+ce),ce>=B.length){if($e)return-1;ce=B.length-1}else if(ce<0)if($e)ce=0;else return-1;if(typeof J=="string"&&(J=s.from(J,je)),s.isBuffer(J))return J.length===0?-1:E(B,J,ce,je,$e);if(typeof J=="number")return J=J&255,typeof Uint8Array.prototype.indexOf=="function"?$e?Uint8Array.prototype.indexOf.call(B,J,ce):Uint8Array.prototype.lastIndexOf.call(B,J,ce):E(B,[J],ce,je,$e);throw new TypeError("val must be string, number or Buffer")}function E(B,J,ce,je,$e){let Be=1,qe=B.length,pt=J.length;if(je!==void 0&&(je=String(je).toLowerCase(),je==="ucs2"||je==="ucs-2"||je==="utf16le"||je==="utf-16le")){if(B.length<2||J.length<2)return-1;Be=2,qe/=2,pt/=2,ce/=2}function Dt(bt,Ut){return Be===1?bt[Ut]:bt.readUInt16BE(Ut*Be)}let wt;if($e){let bt=-1;for(wt=ce;wt<qe;wt++)if(Dt(B,wt)===Dt(J,bt===-1?0:wt-bt)){if(bt===-1&&(bt=wt),wt-bt+1===pt)return bt*Be}else bt!==-1&&(wt-=wt-bt),bt=-1}else for(ce+pt>qe&&(ce=qe-pt),wt=ce;wt>=0;wt--){let bt=!0;for(let Ut=0;Ut<pt;Ut++)if(Dt(B,wt+Ut)!==Dt(J,Ut)){bt=!1;break}if(bt)return wt}return-1}s.prototype.includes=function(B,J,ce){return this.indexOf(B,J,ce)!==-1},s.prototype.indexOf=function(B,J,ce){return A(this,B,J,ce,!0)},s.prototype.lastIndexOf=function(B,J,ce){return A(this,B,J,ce,!1)};function P(B,J,ce,je){ce=Number(ce)||0;const $e=B.length-ce;je?(je=Number(je),je>$e&&(je=$e)):je=$e;const Be=J.length;je>Be/2&&(je=Be/2);let qe;for(qe=0;qe<je;++qe){const pt=parseInt(J.substr(qe*2,2),16);if(ye(pt))return qe;B[ce+qe]=pt}return qe}function T(B,J,ce,je){return Se(K(J,B.length-ce),B,ce,je)}function I(B,J,ce,je){return Se(ae(J),B,ce,je)}function L(B,J,ce,je){return Se(Ce(J),B,ce,je)}function M(B,J,ce,je){return Se(le(J,B.length-ce),B,ce,je)}s.prototype.write=function(B,J,ce,je){if(J===void 0)je="utf8",ce=this.length,J=0;else if(ce===void 0&&typeof J=="string")je=J,ce=this.length,J=0;else if(isFinite(J))J=J>>>0,isFinite(ce)?(ce=ce>>>0,je===void 0&&(je="utf8")):(je=ce,ce=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");const $e=this.length-J;if((ce===void 0||ce>$e)&&(ce=$e),B.length>0&&(ce<0||J<0)||J>this.length)throw new RangeError("Attempt to write outside buffer bounds");je||(je="utf8");let Be=!1;for(;;)switch(je){case"hex":return P(this,B,J,ce);case"utf8":case"utf-8":return T(this,B,J,ce);case"ascii":case"latin1":case"binary":return I(this,B,J,ce);case"base64":return L(this,B,J,ce);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return M(this,B,J,ce);default:if(Be)throw new TypeError("Unknown encoding: "+je);je=(""+je).toLowerCase(),Be=!0}},s.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function N(B,J,ce){return J===0&&ce===B.length?t.fromByteArray(B):t.fromByteArray(B.slice(J,ce))}function z(B,J,ce){ce=Math.min(B.length,ce);const je=[];let $e=J;for(;$e<ce;){const Be=B[$e];let qe=null,pt=Be>239?4:Be>223?3:Be>191?2:1;if($e+pt<=ce){let Dt,wt,bt,Ut;switch(pt){case 1:Be<128&&(qe=Be);break;case 2:Dt=B[$e+1],(Dt&192)===128&&(Ut=(Be&31)<<6|Dt&63,Ut>127&&(qe=Ut));break;case 3:Dt=B[$e+1],wt=B[$e+2],(Dt&192)===128&&(wt&192)===128&&(Ut=(Be&15)<<12|(Dt&63)<<6|wt&63,Ut>2047&&(Ut<55296||Ut>57343)&&(qe=Ut));break;case 4:Dt=B[$e+1],wt=B[$e+2],bt=B[$e+3],(Dt&192)===128&&(wt&192)===128&&(bt&192)===128&&(Ut=(Be&15)<<18|(Dt&63)<<12|(wt&63)<<6|bt&63,Ut>65535&&Ut<1114112&&(qe=Ut))}}qe===null?(qe=65533,pt=1):qe>65535&&(qe-=65536,je.push(qe>>>10&1023|55296),qe=56320|qe&1023),je.push(qe),$e+=pt}return X(je)}const U=4096;function X(B){const J=B.length;if(J<=U)return String.fromCharCode.apply(String,B);let ce="",je=0;for(;je<J;)ce+=String.fromCharCode.apply(String,B.slice(je,je+=U));return ce}function te(B,J,ce){let je="";ce=Math.min(B.length,ce);for(let $e=J;$e<ce;++$e)je+=String.fromCharCode(B[$e]&127);return je}function ee(B,J,ce){let je="";ce=Math.min(B.length,ce);for(let $e=J;$e<ce;++$e)je+=String.fromCharCode(B[$e]);return je}function se(B,J,ce){const je=B.length;(!J||J<0)&&(J=0),(!ce||ce<0||ce>je)&&(ce=je);let $e="";for(let Be=J;Be<ce;++Be)$e+=xe[B[Be]];return $e}function W(B,J,ce){const je=B.slice(J,ce);let $e="";for(let Be=0;Be<je.length-1;Be+=2)$e+=String.fromCharCode(je[Be]+je[Be+1]*256);return $e}s.prototype.slice=function(B,J){const ce=this.length;B=~~B,J=J===void 0?ce:~~J,B<0?(B+=ce,B<0&&(B=0)):B>ce&&(B=ce),J<0?(J+=ce,J<0&&(J=0)):J>ce&&(J=ce),J<B&&(J=B);const je=this.subarray(B,J);return Object.setPrototypeOf(je,s.prototype),je};function Q(B,J,ce){if(B%1!==0||B<0)throw new RangeError("offset is not uint");if(B+J>ce)throw new RangeError("Trying to access beyond buffer length")}s.prototype.readUintLE=s.prototype.readUIntLE=function(B,J,ce){B=B>>>0,J=J>>>0,ce||Q(B,J,this.length);let je=this[B],$e=1,Be=0;for(;++Be<J&&($e*=256);)je+=this[B+Be]*$e;return je},s.prototype.readUintBE=s.prototype.readUIntBE=function(B,J,ce){B=B>>>0,J=J>>>0,ce||Q(B,J,this.length);let je=this[B+--J],$e=1;for(;J>0&&($e*=256);)je+=this[B+--J]*$e;return je},s.prototype.readUint8=s.prototype.readUInt8=function(B,J){return B=B>>>0,J||Q(B,1,this.length),this[B]},s.prototype.readUint16LE=s.prototype.readUInt16LE=function(B,J){return B=B>>>0,J||Q(B,2,this.length),this[B]|this[B+1]<<8},s.prototype.readUint16BE=s.prototype.readUInt16BE=function(B,J){return B=B>>>0,J||Q(B,2,this.length),this[B]<<8|this[B+1]},s.prototype.readUint32LE=s.prototype.readUInt32LE=function(B,J){return B=B>>>0,J||Q(B,4,this.length),(this[B]|this[B+1]<<8|this[B+2]<<16)+this[B+3]*16777216},s.prototype.readUint32BE=s.prototype.readUInt32BE=function(B,J){return B=B>>>0,J||Q(B,4,this.length),this[B]*16777216+(this[B+1]<<16|this[B+2]<<8|this[B+3])},s.prototype.readBigUInt64LE=Ee(function(B){B=B>>>0,fe(B,"offset");const J=this[B],ce=this[B+7];(J===void 0||ce===void 0)&&F(B,this.length-8);const je=J+this[++B]*2**8+this[++B]*2**16+this[++B]*2**24,$e=this[++B]+this[++B]*2**8+this[++B]*2**16+ce*2**24;return BigInt(je)+(BigInt($e)<<BigInt(32))}),s.prototype.readBigUInt64BE=Ee(function(B){B=B>>>0,fe(B,"offset");const J=this[B],ce=this[B+7];(J===void 0||ce===void 0)&&F(B,this.length-8);const je=J*2**24+this[++B]*2**16+this[++B]*2**8+this[++B],$e=this[++B]*2**24+this[++B]*2**16+this[++B]*2**8+ce;return(BigInt(je)<<BigInt(32))+BigInt($e)}),s.prototype.readIntLE=function(B,J,ce){B=B>>>0,J=J>>>0,ce||Q(B,J,this.length);let je=this[B],$e=1,Be=0;for(;++Be<J&&($e*=256);)je+=this[B+Be]*$e;return $e*=128,je>=$e&&(je-=Math.pow(2,8*J)),je},s.prototype.readIntBE=function(B,J,ce){B=B>>>0,J=J>>>0,ce||Q(B,J,this.length);let je=J,$e=1,Be=this[B+--je];for(;je>0&&($e*=256);)Be+=this[B+--je]*$e;return $e*=128,Be>=$e&&(Be-=Math.pow(2,8*J)),Be},s.prototype.readInt8=function(B,J){return B=B>>>0,J||Q(B,1,this.length),this[B]&128?(255-this[B]+1)*-1:this[B]},s.prototype.readInt16LE=function(B,J){B=B>>>0,J||Q(B,2,this.length);const ce=this[B]|this[B+1]<<8;return ce&32768?ce|4294901760:ce},s.prototype.readInt16BE=function(B,J){B=B>>>0,J||Q(B,2,this.length);const ce=this[B+1]|this[B]<<8;return ce&32768?ce|4294901760:ce},s.prototype.readInt32LE=function(B,J){return B=B>>>0,J||Q(B,4,this.length),this[B]|this[B+1]<<8|this[B+2]<<16|this[B+3]<<24},s.prototype.readInt32BE=function(B,J){return B=B>>>0,J||Q(B,4,this.length),this[B]<<24|this[B+1]<<16|this[B+2]<<8|this[B+3]},s.prototype.readBigInt64LE=Ee(function(B){B=B>>>0,fe(B,"offset");const J=this[B],ce=this[B+7];(J===void 0||ce===void 0)&&F(B,this.length-8);const je=this[B+4]+this[B+5]*2**8+this[B+6]*2**16+(ce<<24);return(BigInt(je)<<BigInt(32))+BigInt(J+this[++B]*2**8+this[++B]*2**16+this[++B]*2**24)}),s.prototype.readBigInt64BE=Ee(function(B){B=B>>>0,fe(B,"offset");const J=this[B],ce=this[B+7];(J===void 0||ce===void 0)&&F(B,this.length-8);const je=(J<<24)+this[++B]*2**16+this[++B]*2**8+this[++B];return(BigInt(je)<<BigInt(32))+BigInt(this[++B]*2**24+this[++B]*2**16+this[++B]*2**8+ce)}),s.prototype.readFloatLE=function(B,J){return B=B>>>0,J||Q(B,4,this.length),r.read(this,B,!0,23,4)},s.prototype.readFloatBE=function(B,J){return B=B>>>0,J||Q(B,4,this.length),r.read(this,B,!1,23,4)},s.prototype.readDoubleLE=function(B,J){return B=B>>>0,J||Q(B,8,this.length),r.read(this,B,!0,52,8)},s.prototype.readDoubleBE=function(B,J){return B=B>>>0,J||Q(B,8,this.length),r.read(this,B,!1,52,8)};function Y(B,J,ce,je,$e,Be){if(!s.isBuffer(B))throw new TypeError('"buffer" argument must be a Buffer instance');if(J>$e||J<Be)throw new RangeError('"value" argument is out of bounds');if(ce+je>B.length)throw new RangeError("Index out of range")}s.prototype.writeUintLE=s.prototype.writeUIntLE=function(B,J,ce,je){if(B=+B,J=J>>>0,ce=ce>>>0,!je){const qe=Math.pow(2,8*ce)-1;Y(this,B,J,ce,qe,0)}let $e=1,Be=0;for(this[J]=B&255;++Be<ce&&($e*=256);)this[J+Be]=B/$e&255;return J+ce},s.prototype.writeUintBE=s.prototype.writeUIntBE=function(B,J,ce,je){if(B=+B,J=J>>>0,ce=ce>>>0,!je){const qe=Math.pow(2,8*ce)-1;Y(this,B,J,ce,qe,0)}let $e=ce-1,Be=1;for(this[J+$e]=B&255;--$e>=0&&(Be*=256);)this[J+$e]=B/Be&255;return J+ce},s.prototype.writeUint8=s.prototype.writeUInt8=function(B,J,ce){return B=+B,J=J>>>0,ce||Y(this,B,J,1,255,0),this[J]=B&255,J+1},s.prototype.writeUint16LE=s.prototype.writeUInt16LE=function(B,J,ce){return B=+B,J=J>>>0,ce||Y(this,B,J,2,65535,0),this[J]=B&255,this[J+1]=B>>>8,J+2},s.prototype.writeUint16BE=s.prototype.writeUInt16BE=function(B,J,ce){return B=+B,J=J>>>0,ce||Y(this,B,J,2,65535,0),this[J]=B>>>8,this[J+1]=B&255,J+2},s.prototype.writeUint32LE=s.prototype.writeUInt32LE=function(B,J,ce){return B=+B,J=J>>>0,ce||Y(this,B,J,4,4294967295,0),this[J+3]=B>>>24,this[J+2]=B>>>16,this[J+1]=B>>>8,this[J]=B&255,J+4},s.prototype.writeUint32BE=s.prototype.writeUInt32BE=function(B,J,ce){return B=+B,J=J>>>0,ce||Y(this,B,J,4,4294967295,0),this[J]=B>>>24,this[J+1]=B>>>16,this[J+2]=B>>>8,this[J+3]=B&255,J+4};function q(B,J,ce,je,$e){Z(J,je,$e,B,ce,7);let Be=Number(J&BigInt(4294967295));B[ce++]=Be,Be=Be>>8,B[ce++]=Be,Be=Be>>8,B[ce++]=Be,Be=Be>>8,B[ce++]=Be;let qe=Number(J>>BigInt(32)&BigInt(4294967295));return B[ce++]=qe,qe=qe>>8,B[ce++]=qe,qe=qe>>8,B[ce++]=qe,qe=qe>>8,B[ce++]=qe,ce}function H(B,J,ce,je,$e){Z(J,je,$e,B,ce,7);let Be=Number(J&BigInt(4294967295));B[ce+7]=Be,Be=Be>>8,B[ce+6]=Be,Be=Be>>8,B[ce+5]=Be,Be=Be>>8,B[ce+4]=Be;let qe=Number(J>>BigInt(32)&BigInt(4294967295));return B[ce+3]=qe,qe=qe>>8,B[ce+2]=qe,qe=qe>>8,B[ce+1]=qe,qe=qe>>8,B[ce]=qe,ce+8}s.prototype.writeBigUInt64LE=Ee(function(B,J=0){return q(this,B,J,BigInt(0),BigInt("0xffffffffffffffff"))}),s.prototype.writeBigUInt64BE=Ee(function(B,J=0){return H(this,B,J,BigInt(0),BigInt("0xffffffffffffffff"))}),s.prototype.writeIntLE=function(B,J,ce,je){if(B=+B,J=J>>>0,!je){const pt=Math.pow(2,8*ce-1);Y(this,B,J,ce,pt-1,-pt)}let $e=0,Be=1,qe=0;for(this[J]=B&255;++$e<ce&&(Be*=256);)B<0&&qe===0&&this[J+$e-1]!==0&&(qe=1),this[J+$e]=(B/Be>>0)-qe&255;return J+ce},s.prototype.writeIntBE=function(B,J,ce,je){if(B=+B,J=J>>>0,!je){const pt=Math.pow(2,8*ce-1);Y(this,B,J,ce,pt-1,-pt)}let $e=ce-1,Be=1,qe=0;for(this[J+$e]=B&255;--$e>=0&&(Be*=256);)B<0&&qe===0&&this[J+$e+1]!==0&&(qe=1),this[J+$e]=(B/Be>>0)-qe&255;return J+ce},s.prototype.writeInt8=function(B,J,ce){return B=+B,J=J>>>0,ce||Y(this,B,J,1,127,-128),B<0&&(B=255+B+1),this[J]=B&255,J+1},s.prototype.writeInt16LE=function(B,J,ce){return B=+B,J=J>>>0,ce||Y(this,B,J,2,32767,-32768),this[J]=B&255,this[J+1]=B>>>8,J+2},s.prototype.writeInt16BE=function(B,J,ce){return B=+B,J=J>>>0,ce||Y(this,B,J,2,32767,-32768),this[J]=B>>>8,this[J+1]=B&255,J+2},s.prototype.writeInt32LE=function(B,J,ce){return B=+B,J=J>>>0,ce||Y(this,B,J,4,2147483647,-2147483648),this[J]=B&255,this[J+1]=B>>>8,this[J+2]=B>>>16,this[J+3]=B>>>24,J+4},s.prototype.writeInt32BE=function(B,J,ce){return B=+B,J=J>>>0,ce||Y(this,B,J,4,2147483647,-2147483648),B<0&&(B=4294967295+B+1),this[J]=B>>>24,this[J+1]=B>>>16,this[J+2]=B>>>8,this[J+3]=B&255,J+4},s.prototype.writeBigInt64LE=Ee(function(B,J=0){return q(this,B,J,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),s.prototype.writeBigInt64BE=Ee(function(B,J=0){return H(this,B,J,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function re(B,J,ce,je,$e,Be){if(ce+je>B.length)throw new RangeError("Index out of range");if(ce<0)throw new RangeError("Index out of range")}function G(B,J,ce,je,$e){return J=+J,ce=ce>>>0,$e||re(B,J,ce,4),r.write(B,J,ce,je,23,4),ce+4}s.prototype.writeFloatLE=function(B,J,ce){return G(this,B,J,!0,ce)},s.prototype.writeFloatBE=function(B,J,ce){return G(this,B,J,!1,ce)};function oe(B,J,ce,je,$e){return J=+J,ce=ce>>>0,$e||re(B,J,ce,8),r.write(B,J,ce,je,52,8),ce+8}s.prototype.writeDoubleLE=function(B,J,ce){return oe(this,B,J,!0,ce)},s.prototype.writeDoubleBE=function(B,J,ce){return oe(this,B,J,!1,ce)},s.prototype.copy=function(B,J,ce,je){if(!s.isBuffer(B))throw new TypeError("argument should be a Buffer");if(ce||(ce=0),!je&&je!==0&&(je=this.length),J>=B.length&&(J=B.length),J||(J=0),je>0&&je<ce&&(je=ce),je===ce||B.length===0||this.length===0)return 0;if(J<0)throw new RangeError("targetStart out of bounds");if(ce<0||ce>=this.length)throw new RangeError("Index out of range");if(je<0)throw new RangeError("sourceEnd out of bounds");je>this.length&&(je=this.length),B.length-J<je-ce&&(je=B.length-J+ce);const $e=je-ce;return this===B&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(J,ce,je):Uint8Array.prototype.set.call(B,this.subarray(ce,je),J),$e},s.prototype.fill=function(B,J,ce,je){if(typeof B=="string"){if(typeof J=="string"?(je=J,J=0,ce=this.length):typeof ce=="string"&&(je=ce,ce=this.length),je!==void 0&&typeof je!="string")throw new TypeError("encoding must be a string");if(typeof je=="string"&&!s.isEncoding(je))throw new TypeError("Unknown encoding: "+je);if(B.length===1){const Be=B.charCodeAt(0);(je==="utf8"&&Be<128||je==="latin1")&&(B=Be)}}else typeof B=="number"?B=B&255:typeof B=="boolean"&&(B=Number(B));if(J<0||this.length<J||this.length<ce)throw new RangeError("Out of range index");if(ce<=J)return this;J=J>>>0,ce=ce===void 0?this.length:ce>>>0,B||(B=0);let $e;if(typeof B=="number")for($e=J;$e<ce;++$e)this[$e]=B;else{const Be=s.isBuffer(B)?B:s.from(B,je),qe=Be.length;if(qe===0)throw new TypeError('The value "'+B+'" is invalid for argument "value"');for($e=0;$e<ce-J;++$e)this[$e+J]=Be[$e%qe]}return this};const ne={};function be(B,J,ce){ne[B]=class extends ce{constructor(){super(),Object.defineProperty(this,"message",{value:J.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${B}]`,delete this.name}get code(){return B}set code(je){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:je,writable:!0})}toString(){return`${this.name} [${B}]: ${this.message}`}}}be("ERR_BUFFER_OUT_OF_BOUNDS",function(B){return B?`${B} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),be("ERR_INVALID_ARG_TYPE",function(B,J){return`The "${B}" argument must be of type number. Received type ${typeof J}`},TypeError),be("ERR_OUT_OF_RANGE",function(B,J,ce){let je=`The value of "${B}" is out of range.`,$e=ce;return Number.isInteger(ce)&&Math.abs(ce)>2**32?$e=ve(String(ce)):typeof ce=="bigint"&&($e=String(ce),(ce>BigInt(2)**BigInt(32)||ce<-(BigInt(2)**BigInt(32)))&&($e=ve($e)),$e+="n"),je+=` It must be ${J}. Received ${$e}`,je},RangeError);function ve(B){let J="",ce=B.length;const je=B[0]==="-"?1:0;for(;ce>=je+4;ce-=3)J=`_${B.slice(ce-3,ce)}${J}`;return`${B.slice(0,ce)}${J}`}function _(B,J,ce){fe(J,"offset"),(B[J]===void 0||B[J+ce]===void 0)&&F(J,B.length-(ce+1))}function Z(B,J,ce,je,$e,Be){if(B>ce||B<J){const qe=typeof J=="bigint"?"n":"";let pt;throw J===0||J===BigInt(0)?pt=`>= 0${qe} and < 2${qe} ** ${(Be+1)*8}${qe}`:pt=`>= -(2${qe} ** ${(Be+1)*8-1}${qe}) and < 2 ** ${(Be+1)*8-1}${qe}`,new ne.ERR_OUT_OF_RANGE("value",pt,B)}_(je,$e,Be)}function fe(B,J){if(typeof B!="number")throw new ne.ERR_INVALID_ARG_TYPE(J,"number",B)}function F(B,J,ce){throw Math.floor(B)!==B?(fe(B,ce),new ne.ERR_OUT_OF_RANGE("offset","an integer",B)):J<0?new ne.ERR_BUFFER_OUT_OF_BOUNDS:new ne.ERR_OUT_OF_RANGE("offset",`>= 0 and <= ${J}`,B)}const he=/[^+/0-9A-Za-z-_]/g;function ue(B){if(B=B.split("=")[0],B=B.trim().replace(he,""),B.length<2)return"";for(;B.length%4!==0;)B=B+"=";return B}function K(B,J){J=J||1/0;let ce;const je=B.length;let $e=null;const Be=[];for(let qe=0;qe<je;++qe){if(ce=B.charCodeAt(qe),ce>55295&&ce<57344){if(!$e){if(ce>56319){(J-=3)>-1&&Be.push(239,191,189);continue}else if(qe+1===je){(J-=3)>-1&&Be.push(239,191,189);continue}$e=ce;continue}if(ce<56320){(J-=3)>-1&&Be.push(239,191,189),$e=ce;continue}ce=($e-55296<<10|ce-56320)+65536}else $e&&(J-=3)>-1&&Be.push(239,191,189);if($e=null,ce<128){if((J-=1)<0)break;Be.push(ce)}else if(ce<2048){if((J-=2)<0)break;Be.push(ce>>6|192,ce&63|128)}else if(ce<65536){if((J-=3)<0)break;Be.push(ce>>12|224,ce>>6&63|128,ce&63|128)}else if(ce<1114112){if((J-=4)<0)break;Be.push(ce>>18|240,ce>>12&63|128,ce>>6&63|128,ce&63|128)}else throw new Error("Invalid code point")}return Be}function ae(B){const J=[];for(let ce=0;ce<B.length;++ce)J.push(B.charCodeAt(ce)&255);return J}function le(B,J){let ce,je,$e;const Be=[];for(let qe=0;qe<B.length&&!((J-=2)<0);++qe)ce=B.charCodeAt(qe),je=ce>>8,$e=ce%256,Be.push($e),Be.push(je);return Be}function Ce(B){return t.toByteArray(ue(B))}function Se(B,J,ce,je){let $e;for($e=0;$e<je&&!($e+ce>=J.length||$e>=B.length);++$e)J[$e+ce]=B[$e];return $e}function me(B,J){return B instanceof J||B!=null&&B.constructor!=null&&B.constructor.name!=null&&B.constructor.name===J.name}function ye(B){return B!==B}const xe=function(){const B="0123456789abcdef",J=new Array(256);for(let ce=0;ce<16;++ce){const je=ce*16;for(let $e=0;$e<16;++$e)J[je+$e]=B[ce]+B[$e]}return J}();function Ee(B){return typeof BigInt>"u"?Ue:B}function Ue(){throw new Error("BigInt not supported")}}(nZ)),nZ}const fRe={isatty:()=>{},createRequire:()=>{}},gRe=Object.freeze(Object.defineProperty({__proto__:null,default:fRe},Symbol.toStringTag,{value:"Module"})),Sh=Y_(gRe);var Id={},Oy={exports:{}};/*! https://mths.be/punycode v1.3.2 by @mathias */var mRe=Oy.exports,sZ;function vRe(){return sZ||(sZ=1,function(e,t){(function(r){var n=t&&!t.nodeType&&t,o=e&&!e.nodeType&&e,i=typeof globalThis=="object"&&globalThis;(i.global===i||i.window===i||i.self===i)&&(r=i);var a,s=2147483647,l=36,c=1,u=26,d=38,h=700,g=72,v=128,b="-",y=/^xn--/,x=/[^\x20-\x7E]/,O=/[\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"},j=l-c,C=Math.floor,A=String.fromCharCode,E;function P(W){throw RangeError(k[W])}function T(W,Q){for(var Y=W.length,q=[];Y--;)q[Y]=Q(W[Y]);return q}function I(W,Q){var Y=W.split("@"),q="";Y.length>1&&(q=Y[0]+"@",W=Y[1]),W=W.replace(O,".");var H=W.split("."),re=T(H,Q).join(".");return q+re}function L(W){for(var Q=[],Y=0,q=W.length,H,re;Y<q;)H=W.charCodeAt(Y++),H>=55296&&H<=56319&&Y<q?(re=W.charCodeAt(Y++),(re&64512)==56320?Q.push(((H&1023)<<10)+(re&1023)+65536):(Q.push(H),Y--)):Q.push(H);return Q}function M(W){return T(W,function(Q){var Y="";return Q>65535&&(Q-=65536,Y+=A(Q>>>10&1023|55296),Q=56320|Q&1023),Y+=A(Q),Y}).join("")}function N(W){return W-48<10?W-22:W-65<26?W-65:W-97<26?W-97:l}function z(W,Q){return W+22+75*(W<26)-((Q!=0)<<5)}function U(W,Q,Y){var q=0;for(W=Y?C(W/h):W>>1,W+=C(W/Q);W>j*u>>1;q+=l)W=C(W/j);return C(q+(j+1)*W/(W+d))}function X(W){var Q=[],Y=W.length,q,H=0,re=v,G=g,oe,ne,be,ve,_,Z,fe,F,he;for(oe=W.lastIndexOf(b),oe<0&&(oe=0),ne=0;ne<oe;++ne)W.charCodeAt(ne)>=128&&P("not-basic"),Q.push(W.charCodeAt(ne));for(be=oe>0?oe+1:0;be<Y;){for(ve=H,_=1,Z=l;be>=Y&&P("invalid-input"),fe=N(W.charCodeAt(be++)),(fe>=l||fe>C((s-H)/_))&&P("overflow"),H+=fe*_,F=Z<=G?c:Z>=G+u?u:Z-G,!(fe<F);Z+=l)he=l-F,_>C(s/he)&&P("overflow"),_*=he;q=Q.length+1,G=U(H-ve,q,ve==0),C(H/q)>s-re&&P("overflow"),re+=C(H/q),H%=q,Q.splice(H++,0,re)}return M(Q)}function te(W){var Q,Y,q,H,re,G,oe,ne,be,ve,_,Z=[],fe,F,he,ue;for(W=L(W),fe=W.length,Q=v,Y=0,re=g,G=0;G<fe;++G)_=W[G],_<128&&Z.push(A(_));for(q=H=Z.length,H&&Z.push(b);q<fe;){for(oe=s,G=0;G<fe;++G)_=W[G],_>=Q&&_<oe&&(oe=_);for(F=q+1,oe-Q>C((s-Y)/F)&&P("overflow"),Y+=(oe-Q)*F,Q=oe,G=0;G<fe;++G)if(_=W[G],_<Q&&++Y>s&&P("overflow"),_==Q){for(ne=Y,be=l;ve=be<=re?c:be>=re+u?u:be-re,!(ne<ve);be+=l)ue=ne-ve,he=l-ve,Z.push(A(z(ve+ue%he,0))),ne=C(ue/he);Z.push(A(z(ne,0))),re=U(Y,F,q==H),Y=0,++q}++Y,++Q}return Z.join("")}function ee(W){return I(W,function(Q){return y.test(Q)?X(Q.slice(4).toLowerCase()):Q})}function se(W){return I(W,function(Q){return x.test(Q)?"xn--"+te(Q):Q})}if(a={version:"1.3.2",ucs2:{decode:L,encode:M},decode:X,encode:te,toASCII:se,toUnicode:ee},n&&o)if(e.exports==n)o.exports=a;else for(E in a)a.hasOwnProperty(E)&&(n[E]=a[E]);else r.punycode=a})(mRe)}(Oy,Oy.exports)),Oy.exports}var lZ,cZ;function bRe(){return cZ||(cZ=1,lZ={isString:function(e){return typeof e=="string"},isObject:function(e){return typeof e=="object"&&e!==null},isNull:function(e){return e===null},isNullOrUndefined:function(e){return e==null}}),lZ}var U1={},c7,uZ;function yRe(){if(uZ)return c7;uZ=1;function e(t,r){return Object.prototype.hasOwnProperty.call(t,r)}return c7=function(t,r,n,o){r=r||"&",n=n||"=";var i={};if(typeof t!="string"||t.length===0)return i;var a=/\+/g;t=t.split(r);var s=1e3;o&&typeof o.maxKeys=="number"&&(s=o.maxKeys);var l=t.length;s>0&&l>s&&(l=s);for(var c=0;c<l;++c){var u=t[c].replace(a,"%20"),d=u.indexOf(n),h,g,v,b;d>=0?(h=u.substr(0,d),g=u.substr(d+1)):(h=u,g=""),v=decodeURIComponent(h),b=decodeURIComponent(g),e(i,v)?Array.isArray(i[v])?i[v].push(b):i[v]=[i[v],b]:i[v]=b}return i},c7}var u7,dZ;function xRe(){if(dZ)return u7;dZ=1;var e=function(t){switch(typeof t){case"string":return t;case"boolean":return t?"true":"false";case"number":return isFinite(t)?t:"";default:return""}};return u7=function(t,r,n,o){return r=r||"&",n=n||"=",t===null&&(t=void 0),typeof t=="object"?Object.keys(t).map(function(i){var a=encodeURIComponent(e(i))+n;return Array.isArray(t[i])?t[i].map(function(s){return a+encodeURIComponent(e(s))}).join(r):a+encodeURIComponent(e(t[i]))}).join(r):o?encodeURIComponent(e(o))+n+encodeURIComponent(e(t)):""},u7}var pZ;function ORe(){return pZ||(pZ=1,U1.decode=U1.parse=yRe(),U1.encode=U1.stringify=xRe()),U1}var hZ;function d7(){if(hZ)return Id;hZ=1;var e=vRe(),t=bRe();Id.parse=O,Id.resolve=j,Id.resolveObject=C,Id.format=k,Id.Url=r;function r(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}var n=/^([a-z0-9.+-]+:)/i,o=/:[0-9]*$/,i=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,a=["<",">",'"',"`"," ","\r",`
|
|
10472
|
-
`," "],s=["{","}","|","\\","^","`"].concat(a),l=["'"].concat(s),c=["%","/","?",";","#"].concat(l),u=["/","?","#"],d=255,h=/^[+a-z0-9A-Z_-]{0,63}$/,g=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,v={javascript:!0,"javascript:":!0},b={javascript:!0,"javascript:":!0},y={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},x=ORe();function O(A,E,P){if(A&&t.isObject(A)&&A instanceof r)return A;var T=new r;return T.parse(A,E,P),T}r.prototype.parse=function(A,E,P){if(!t.isString(A))throw new TypeError("Parameter 'url' must be a string, not "+typeof A);var T=A.indexOf("?"),I=T!==-1&&T<A.indexOf("#")?"?":"#",L=A.split(I),M=/\\/g;L[0]=L[0].replace(M,"/"),A=L.join(I);var N=A;if(N=N.trim(),!P&&A.split("#").length===1){var z=i.exec(N);if(z)return this.path=N,this.href=N,this.pathname=z[1],z[2]?(this.search=z[2],E?this.query=x.parse(this.search.substr(1)):this.query=this.search.substr(1)):E&&(this.search="",this.query={}),this}var U=n.exec(N);if(U){U=U[0];var X=U.toLowerCase();this.protocol=X,N=N.substr(U.length)}if(P||U||N.match(/^\/\/[^@\/]+@[^@\/]+/)){var te=N.substr(0,2)==="//";te&&!(U&&b[U])&&(N=N.substr(2),this.slashes=!0)}if(!b[U]&&(te||U&&!y[U])){for(var ee=-1,se=0;se<u.length;se++){var W=N.indexOf(u[se]);W!==-1&&(ee===-1||W<ee)&&(ee=W)}var Q,Y;ee===-1?Y=N.lastIndexOf("@"):Y=N.lastIndexOf("@",ee),Y!==-1&&(Q=N.slice(0,Y),N=N.slice(Y+1),this.auth=decodeURIComponent(Q)),ee=-1;for(var se=0;se<c.length;se++){var W=N.indexOf(c[se]);W!==-1&&(ee===-1||W<ee)&&(ee=W)}ee===-1&&(ee=N.length),this.host=N.slice(0,ee),N=N.slice(ee),this.parseHost(),this.hostname=this.hostname||"";var q=this.hostname[0]==="["&&this.hostname[this.hostname.length-1]==="]";if(!q)for(var H=this.hostname.split(/\./),se=0,re=H.length;se<re;se++){var G=H[se];if(G&&!G.match(h)){for(var oe="",ne=0,be=G.length;ne<be;ne++)G.charCodeAt(ne)>127?oe+="x":oe+=G[ne];if(!oe.match(h)){var ve=H.slice(0,se),_=H.slice(se+1),Z=G.match(g);Z&&(ve.push(Z[1]),_.unshift(Z[2])),_.length&&(N="/"+_.join(".")+N),this.hostname=ve.join(".");break}}}this.hostname.length>d?this.hostname="":this.hostname=this.hostname.toLowerCase(),q||(this.hostname=e.toASCII(this.hostname));var fe=this.port?":"+this.port:"",F=this.hostname||"";this.host=F+fe,this.href+=this.host,q&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),N[0]!=="/"&&(N="/"+N))}if(!v[X])for(var se=0,re=l.length;se<re;se++){var he=l[se];if(N.indexOf(he)!==-1){var ue=encodeURIComponent(he);ue===he&&(ue=escape(he)),N=N.split(he).join(ue)}}var K=N.indexOf("#");K!==-1&&(this.hash=N.substr(K),N=N.slice(0,K));var ae=N.indexOf("?");if(ae!==-1?(this.search=N.substr(ae),this.query=N.substr(ae+1),E&&(this.query=x.parse(this.query)),N=N.slice(0,ae)):E&&(this.search="",this.query={}),N&&(this.pathname=N),y[X]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){var fe=this.pathname||"",le=this.search||"";this.path=fe+le}return this.href=this.format(),this};function k(A){return t.isString(A)&&(A=O(A)),A instanceof r?A.format():r.prototype.format.call(A)}r.prototype.format=function(){var A=this.auth||"";A&&(A=encodeURIComponent(A),A=A.replace(/%3A/i,":"),A+="@");var E=this.protocol||"",P=this.pathname||"",T=this.hash||"",I=!1,L="";this.host?I=A+this.host:this.hostname&&(I=A+(this.hostname.indexOf(":")===-1?this.hostname:"["+this.hostname+"]"),this.port&&(I+=":"+this.port)),this.query&&t.isObject(this.query)&&Object.keys(this.query).length&&(L=x.stringify(this.query));var M=this.search||L&&"?"+L||"";return E&&E.substr(-1)!==":"&&(E+=":"),this.slashes||(!E||y[E])&&I!==!1?(I="//"+(I||""),P&&P.charAt(0)!=="/"&&(P="/"+P)):I||(I=""),T&&T.charAt(0)!=="#"&&(T="#"+T),M&&M.charAt(0)!=="?"&&(M="?"+M),P=P.replace(/[?#]/g,function(N){return encodeURIComponent(N)}),M=M.replace("#","%23"),E+I+P+M+T};function j(A,E){return O(A,!1,!0).resolve(E)}r.prototype.resolve=function(A){return this.resolveObject(O(A,!1,!0)).format()};function C(A,E){return A?O(A,!1,!0).resolveObject(E):E}return r.prototype.resolveObject=function(A){if(t.isString(A)){var E=new r;E.parse(A,!1,!0),A=E}for(var P=new r,T=Object.keys(this),I=0;I<T.length;I++){var L=T[I];P[L]=this[L]}if(P.hash=A.hash,A.href==="")return P.href=P.format(),P;if(A.slashes&&!A.protocol){for(var M=Object.keys(A),N=0;N<M.length;N++){var z=M[N];z!=="protocol"&&(P[z]=A[z])}return y[P.protocol]&&P.hostname&&!P.pathname&&(P.path=P.pathname="/"),P.href=P.format(),P}if(A.protocol&&A.protocol!==P.protocol){if(!y[A.protocol]){for(var U=Object.keys(A),X=0;X<U.length;X++){var te=U[X];P[te]=A[te]}return P.href=P.format(),P}if(P.protocol=A.protocol,!A.host&&!b[A.protocol]){for(var re=(A.pathname||"").split("/");re.length&&!(A.host=re.shift()););A.host||(A.host=""),A.hostname||(A.hostname=""),re[0]!==""&&re.unshift(""),re.length<2&&re.unshift(""),P.pathname=re.join("/")}else P.pathname=A.pathname;if(P.search=A.search,P.query=A.query,P.host=A.host||"",P.auth=A.auth,P.hostname=A.hostname||A.host,P.port=A.port,P.pathname||P.search){var ee=P.pathname||"",se=P.search||"";P.path=ee+se}return P.slashes=P.slashes||A.slashes,P.href=P.format(),P}var W=P.pathname&&P.pathname.charAt(0)==="/",Q=A.host||A.pathname&&A.pathname.charAt(0)==="/",Y=Q||W||P.host&&A.pathname,q=Y,H=P.pathname&&P.pathname.split("/")||[],re=A.pathname&&A.pathname.split("/")||[],G=P.protocol&&!y[P.protocol];if(G&&(P.hostname="",P.port=null,P.host&&(H[0]===""?H[0]=P.host:H.unshift(P.host)),P.host="",A.protocol&&(A.hostname=null,A.port=null,A.host&&(re[0]===""?re[0]=A.host:re.unshift(A.host)),A.host=null),Y=Y&&(re[0]===""||H[0]==="")),Q)P.host=A.host||A.host===""?A.host:P.host,P.hostname=A.hostname||A.hostname===""?A.hostname:P.hostname,P.search=A.search,P.query=A.query,H=re;else if(re.length)H||(H=[]),H.pop(),H=H.concat(re),P.search=A.search,P.query=A.query;else if(!t.isNullOrUndefined(A.search)){if(G){P.hostname=P.host=H.shift();var oe=P.host&&P.host.indexOf("@")>0?P.host.split("@"):!1;oe&&(P.auth=oe.shift(),P.host=P.hostname=oe.shift())}return P.search=A.search,P.query=A.query,(!t.isNull(P.pathname)||!t.isNull(P.search))&&(P.path=(P.pathname?P.pathname:"")+(P.search?P.search:"")),P.href=P.format(),P}if(!H.length)return P.pathname=null,P.search?P.path="/"+P.search:P.path=null,P.href=P.format(),P;for(var ne=H.slice(-1)[0],be=(P.host||A.host||H.length>1)&&(ne==="."||ne==="..")||ne==="",ve=0,_=H.length;_>=0;_--)ne=H[_],ne==="."?H.splice(_,1):ne===".."?(H.splice(_,1),ve++):ve&&(H.splice(_,1),ve--);if(!Y&&!q)for(;ve--;ve)H.unshift("..");Y&&H[0]!==""&&(!H[0]||H[0].charAt(0)!=="/")&&H.unshift(""),be&&H.join("/").substr(-1)!=="/"&&H.push("");var Z=H[0]===""||H[0]&&H[0].charAt(0)==="/";if(G){P.hostname=P.host=Z?"":H.length?H.shift():"";var oe=P.host&&P.host.indexOf("@")>0?P.host.split("@"):!1;oe&&(P.auth=oe.shift(),P.host=P.hostname=oe.shift())}return Y=Y||P.host&&H.length,Y&&!Z&&H.unshift(""),H.length?P.pathname=H.join("/"):(P.pathname=null,P.path=null),(!t.isNull(P.pathname)||!t.isNull(P.search))&&(P.path=(P.pathname?P.pathname:"")+(P.search?P.search:"")),P.auth=A.auth||P.auth,P.slashes=P.slashes||A.slashes,P.href=P.format(),P},r.prototype.parseHost=function(){var A=this.host,E=o.exec(A);E&&(E=E[0],E!==":"&&(this.port=E.substr(1)),A=A.substr(0,A.length-E.length)),A&&(this.hostname=A)},Id}var p7,fZ;function wRe(){if(fZ)return p7;fZ=1;function e(){return typeof process=="object"&&typeof process.nextTick=="function"?process.nextTick:typeof setImmediate=="function"?setImmediate:function(t){setTimeout(t,0)}}return p7=e(),p7}var h7,gZ;function kRe(){if(gZ)return h7;gZ=1;var e=wRe();return h7=function(t,r){if(t){r.then(function(n){e(function(){t(null,n)})},function(n){e(function(){t(n)})});return}else return r},h7}var f7,mZ;function wy(){if(mZ)return f7;mZ=1;function e(n){return n.replace(/\~/g,"~0").replace(/\//g,"~1")}function t(n){return n.replace(/\~1/g,"/").replace(/~0/g,"~")}function r(n,o,i){if(typeof n>"u")return!1;if(!o||typeof o!="string"||o==="#")return typeof i<"u"?i:n;if(o.indexOf("#")>=0){let s=o.split("#");if(s[0])return!1;o=s[1],o=decodeURIComponent(o.slice(1).split("+").join(" "))}o.startsWith("/")&&(o=o.slice(1));let a=o.split("/");for(let s=0;s<a.length;s++){a[s]=t(a[s]);let l=typeof i<"u"&&s==a.length-1,c=parseInt(a[s],10);if(!Array.isArray(n)||isNaN(c)||c.toString()!==a[s]?c=Array.isArray(n)&&a[s]==="-"?-2:-1:a[s]=s>0?a[s-1]:"",c!=-1||n&&n.hasOwnProperty(a[s]))if(c>=0)l&&(n[c]=i),n=n[c];else{if(c===-2)return l?(Array.isArray(n)&&n.push(i),i):void 0;l&&(n[a[s]]=i),n=n[a[s]]}else if(typeof i<"u"&&typeof n=="object"&&!Array.isArray(n))n[a[s]]=l?i:a[s+1]==="0"||a[s+1]==="-"?[]:{},n=n[a[s]];else return!1}return n}return f7={jptr:r,jpescape:e,jpunescape:t},f7}var g7,vZ;function m7(){if(vZ)return g7;vZ=1;function e(t,r){return r==="$ref"&&!!t&&typeof t[r]=="string"}return g7={isRef:e},g7}var v7,bZ;function ky(){if(bZ)return v7;bZ=1;function e(a){return a}function t(a){return JSON.parse(JSON.stringify(a))}function r(a){let s={};for(let l in a)a.hasOwnProperty(l)&&(s[l]=a[l]);return s}function n(a){let s=Array.isArray(a)?[]:{};for(let l in a)(a.hasOwnProperty(l)||Array.isArray(a))&&(s[l]=typeof a[l]=="object"?n(a[l]):a[l]);return s}function o(a){return Object.assign({},a)}function i(a,s){if(s||(s=new WeakMap),Object(a)!==a||a instanceof Function)return a;if(s.has(a))return s.get(a);try{var l=new a.constructor}catch{l=Object.create(Object.getPrototypeOf(a))}return s.set(a,l),Object.assign(l,...Object.keys(a).map(c=>({[c]:i(a[c],s)})))}return v7={nop:e,clone:t,shallowClone:r,deepClone:n,fastClone:o,circularClone:i},v7}var b7,yZ;function y7(){if(yZ)return b7;yZ=1;const e=wy().jpescape;function t(){return{path:"#",depth:0,pkey:"",parent:{},payload:{},seen:new WeakMap,identity:!1,identityDetection:!1}}function r(n,o,i){if(o||(o={depth:0}),o.depth||(o=Object.assign({},t(),o)),typeof n!="object")return;let a=o.path;for(let s in n){if(o.key=s,o.path=o.path+"/"+encodeURIComponent(e(s)),o.identityPath=o.seen.get(n[s]),o.identity=typeof o.identityPath<"u",n.hasOwnProperty(s)&&i(n,s,o),typeof n[s]=="object"&&!o.identity){o.identityDetection&&!Array.isArray(n[s])&&n[s]!==null&&o.seen.set(n[s],o.path);let l={};l.parent=n,l.path=o.path,l.depth=o.depth?o.depth+1:1,l.pkey=s,l.payload=o.payload,l.seen=o.seen,l.identity=!1,l.identityDetection=o.identityDetection,r(n[s],l,i)}o.path=a}}return b7={recurse:r},b7}var x7,xZ;function CRe(){if(xZ)return x7;xZ=1;const e=y7().recurse,t=ky().shallowClone,r=wy().jptr,n=m7().isRef;var o=function(a){return a&&a.verbose?{warn:function(){var s=Array.prototype.slice.call(arguments);console.warn.apply(console,s)}}:{warn:function(){}}};function i(a,s,l){l||(l={}),l.cache||(l.cache={}),l.state||(l.state={}),l.state.identityDetection=!0,l.depth=l.depth?l.depth+1:1;let c=l.depth>1?a:t(a),u={data:c},d=l.depth>1?s:t(s);l.master||(l.master=c);let h=o(l),g=1;for(;g>0;)g=0,e(u,l.state,function(v,b,y){if(n(v,b)){let x=v[b];if(g++,l.cache[x]){let O=l.cache[x];if(O.resolved)h.warn("Patching %s for %s",x,O.path),y.parent[y.pkey]=O.data,l.$ref&&typeof y.parent[y.pkey]=="object"&&y.parent[y.pkey]!==null&&(y.parent[y.pkey][l.$ref]=x);else{if(x===O.path)throw new Error(`Tight circle at ${O.path}`);h.warn("Unresolved ref"),y.parent[y.pkey]=r(O.source,O.path),y.parent[y.pkey]===!1&&(y.parent[y.pkey]=r(O.source,O.key)),l.$ref&&typeof y.parent[y.pkey]=="object"&&y.parent[y.pkey]!==null&&(y.parent[l.$ref]=x)}}else{let O={};O.path=y.path.split("/$ref")[0],O.key=x,h.warn("Dereffing %s at %s",x,O.path),O.source=d,O.data=r(O.source,O.key),O.data===!1&&(O.data=r(l.master,O.key),O.source=l.master),O.data===!1&&h.warn("Missing $ref target",O.key),l.cache[x]=O,O.data=y.parent[y.pkey]=i(r(O.source,O.key),O.source,l),l.$ref&&typeof y.parent[y.pkey]=="object"&&y.parent[y.pkey]!==null&&(y.parent[y.pkey][l.$ref]=x),O.resolved=!0}}});return u.data}return x7={dereference:i},x7}var O7,OZ;function SRe(){if(OZ)return O7;OZ=1,O7=i,i.default=i,i.stable=c,i.stableStringify=c;var e="[...]",t="[Circular]",r=[],n=[];function o(){return{depthLimit:Number.MAX_SAFE_INTEGER,edgesLimit:Number.MAX_SAFE_INTEGER}}function i(h,g,v,b){typeof b>"u"&&(b=o()),s(h,"",0,[],void 0,0,b);var y;try{n.length===0?y=JSON.stringify(h,g,v):y=JSON.stringify(h,d(g),v)}catch{return JSON.stringify("[unable to serialize, circular reference is too complex to analyze]")}finally{for(;r.length!==0;){var x=r.pop();x.length===4?Object.defineProperty(x[0],x[1],x[3]):x[0][x[1]]=x[2]}}return y}function a(h,g,v,b){var y=Object.getOwnPropertyDescriptor(b,v);y.get!==void 0?y.configurable?(Object.defineProperty(b,v,{value:h}),r.push([b,v,g,y])):n.push([g,v,h]):(b[v]=h,r.push([b,v,g]))}function s(h,g,v,b,y,x,O){x+=1;var k;if(typeof h=="object"&&h!==null){for(k=0;k<b.length;k++)if(b[k]===h){a(t,h,g,y);return}if(typeof O.depthLimit<"u"&&x>O.depthLimit){a(e,h,g,y);return}if(typeof O.edgesLimit<"u"&&v+1>O.edgesLimit){a(e,h,g,y);return}if(b.push(h),Array.isArray(h))for(k=0;k<h.length;k++)s(h[k],k,k,b,h,x,O);else{var j=Object.keys(h);for(k=0;k<j.length;k++){var C=j[k];s(h[C],C,k,b,h,x,O)}}b.pop()}}function l(h,g){return h<g?-1:h>g?1:0}function c(h,g,v,b){typeof b>"u"&&(b=o());var y=u(h,"",0,[],void 0,0,b)||h,x;try{n.length===0?x=JSON.stringify(y,g,v):x=JSON.stringify(y,d(g),v)}catch{return JSON.stringify("[unable to serialize, circular reference is too complex to analyze]")}finally{for(;r.length!==0;){var O=r.pop();O.length===4?Object.defineProperty(O[0],O[1],O[3]):O[0][O[1]]=O[2]}}return x}function u(h,g,v,b,y,x,O){x+=1;var k;if(typeof h=="object"&&h!==null){for(k=0;k<b.length;k++)if(b[k]===h){a(t,h,g,y);return}try{if(typeof h.toJSON=="function")return}catch{return}if(typeof O.depthLimit<"u"&&x>O.depthLimit){a(e,h,g,y);return}if(typeof O.edgesLimit<"u"&&v+1>O.edgesLimit){a(e,h,g,y);return}if(b.push(h),Array.isArray(h))for(k=0;k<h.length;k++)u(h[k],k,k,b,h,x,O);else{var j={},C=Object.keys(h).sort(l);for(k=0;k<C.length;k++){var A=C[k];u(h[A],A,k,b,h,x,O),j[A]=h[A]}if(typeof y<"u")r.push([y,g,h]),y[g]=j;else return j}b.pop()}}function d(h){return h=typeof h<"u"?h:function(g,v){return v},function(g,v){if(n.length>0)for(var b=0;b<n.length;b++){var y=n[b];if(y[1]===g&&y[0]===v){v=y[2],n.splice(b,1);break}}return h.call(this,g,v)}}return O7}var w7,wZ;function kZ(){if(wZ)return w7;wZ=1;var e={};const t=SRe(),r=e.NODE_DISABLE_COLORS?{red:"",yellow:"",green:"",normal:""}:{red:"\x1B[31m",yellow:"\x1B[33;1m",green:"\x1B[32m",normal:"\x1B[0m"};function n(y,x,O){return O.indexOf(y)===x}function o(y){return new Set(y).size!==y.length}function i(y){return new Set(y).size<=1}function a(y,x){function O(k,j){return t.stringify(k)===t.stringify(Object.assign({},k,j))}return O(y,x)&&O(x,y)}function s(y){let x=[];for(let O of y)x.find(function(k,j,C){return a(k,O)})||x.push(O);return x}function l(y){return y.length===s(y).length}function c(y){return y.find(function(x,O,k){return y.indexOf(x)<O})}function u(y){let x=0,O;if(y.length===0)return x;for(let k=0;k<y.length;k++)O=y.charCodeAt(k),x=(x<<5)-x+O,x|=0;return x}String.prototype.toCamelCase=function(){return this.toLowerCase().replace(/[-_ \/\.](.)/g,function(y,x){return x.toUpperCase()})};const d=["format","minimum","maximum","exclusiveMinimum","exclusiveMaximum","minLength","maxLength","multipleOf","minItems","maxItems","uniqueItems","minProperties","maxProperties","additionalProperties","pattern","enum","default"],h=["items","minItems","maxItems","uniqueItems"],g=["get","post","put","delete","patch","head","options","trace"];function v(y){y=y.replace("[]","Array");let x=y.split("/");return x[0]=x[0].replace(/[^A-Za-z0-9_\-\.]+|\s+/gm,"_"),x.join("/")}function b(y){return v(y.split("/").join("_"))}return w7={colour:r,uniqueOnly:n,hasDuplicates:o,allSame:i,distinctArray:l,firstDupe:c,hash:u,parameterTypeProperties:d,arrayProperties:h,httpMethods:g,sanitise:v,sanitiseAll:b},w7}var k7,CZ;function jRe(){if(CZ)return k7;CZ=1;const e=Sh,t=XM(),r=d7(),n=Sh,o=Sh,i=wy().jptr,a=y7().recurse,s=ky().clone,l=CRe().dereference,c=m7().isRef,u=kZ();function d(P){return[...new Set(P)]}function h(P,T,I,L,M){return new Promise(function(N,z){e.readFile(P,T,function(U,X){U?I.ignoreIOErrors&&M?(I.verbose&&console.warn("FAILED",L),I.externalRefs[L].failed=!0,N(M)):z(U):N(X)})})}function g(P,T,I,L,M,N){let z=N.externalRefs[I+L].paths[0],U=r.parse(M),X={},te=1;for(;te;)te=0,a(P,{identityDetection:!0},function(ee,se,W){if(c(ee,se)){if(ee[se].startsWith("#")){if(!X[ee[se]]&&!ee.$fixed){let Q=s(i(T,ee[se]));if(N.verbose>1&&console.warn((Q===!1?u.colour.red:u.colour.green)+"Fragment resolution",ee[se],u.colour.normal),Q===!1){if(W.parent[W.pkey]={},N.fatal){let Y=new Error("Fragment $ref resolution failed "+ee[se]);if(N.promise)N.promise.reject(Y);else throw Y}}else te++,W.parent[W.pkey]=Q,X[ee[se]]=W.path.replace("/%24ref","")}else if(!ee.$fixed){let Q=(z+"/"+X[ee[se]]).split("/#/").join("/");W.parent[W.pkey]={$ref:Q,"x-miro":ee[se],$fixed:!0},N.verbose>1&&console.warn("Replacing with",Q),te++}}else if(U.protocol){let Q=r.resolve(M,ee[se]).toString();N.verbose>1&&console.warn(u.colour.yellow+"Rewriting external url ref",ee[se],"as",Q,u.colour.normal),ee["x-miro"]=ee[se],N.externalRefs[ee[se]]&&(N.externalRefs[Q]||(N.externalRefs[Q]=N.externalRefs[ee[se]]),N.externalRefs[Q].failed=N.externalRefs[ee[se]].failed),ee[se]=Q}else if(!ee["x-miro"]){let Q=r.resolve(M,ee[se]).toString(),Y=!1;N.externalRefs[ee[se]]&&(Y=N.externalRefs[ee[se]].failed),Y||(N.verbose>1&&console.warn(u.colour.yellow+"Rewriting external ref",ee[se],"as",Q,u.colour.normal),ee["x-miro"]=ee[se],ee[se]=Q)}}});return a(P,{},function(ee,se,W){c(ee,se)&&typeof ee.$fixed<"u"&&delete ee.$fixed}),N.verbose>1&&console.warn("Finished fragment resolution"),P}function v(P,T){if(!T.filters||!T.filters.length)return P;for(let I of T.filters)P=I(P,T);return P}function b(P,T){return P&&P.length>2?P:T&&T.length>2?T:"file:"}function y(P,T,I,L){var M=r.parse(I.source),N=I.source.split("\\").join("/").split("/");N.pop()||N.pop();let z="",U=T.split("#");U.length>1&&(z="#"+U[1],T=U[0]),N=N.join("/");let X=r.parse(T),te=b(X.protocol,M.protocol),ee;if(te==="file:"?ee=t.resolve(N?N+"/":"",T):ee=r.resolve(N?N+"/":"",T),I.cache[ee]){I.verbose&&console.warn("CACHED",ee,z);let se=s(I.cache[ee]),W=I.externalRef=se;if(z&&(W=i(W,z),W===!1&&(W={},I.fatal))){let Q=new Error("Cached $ref resolution failed "+ee+z);if(I.promise)I.promise.reject(Q);else throw Q}return W=g(W,se,T,z,ee,I),W=v(W,I),L(s(W),ee,I),Promise.resolve(W)}if(I.verbose&&console.warn("GET",ee,z),I.handlers&&I.handlers[te])return I.handlers[te](N,T,z,I).then(function(se){return I.externalRef=se,se=v(se,I),I.cache[ee]=se,L(se,ee,I),se}).catch(function(se){throw I.verbose&&console.warn(se),se});if(te&&te.startsWith("http")){const se=Object.assign({},I.fetchOptions,{agent:I.agent});return I.fetch(ee,se).then(function(W){if(W.status!==200){if(I.ignoreIOErrors)return I.verbose&&console.warn("FAILED",T),I.externalRefs[T].failed=!0,'{"$ref":"'+T+'"}';throw new Error(`Received status code ${W.status}: ${ee}`)}return W.text()}).then(function(W){try{let Q=o.parse(W,{schema:"core",prettyErrors:!0});if(W=I.externalRef=Q,I.cache[ee]=s(W),z&&(W=i(W,z),W===!1&&(W={},I.fatal))){let Y=new Error("Remote $ref resolution failed "+ee+z);if(I.promise)I.promise.reject(Y);else throw Y}W=g(W,Q,T,z,ee,I),W=v(W,I)}catch(Q){if(I.verbose&&console.warn(Q),I.promise&&I.fatal)I.promise.reject(Q);else throw Q}return L(W,ee,I),W}).catch(function(W){if(I.verbose&&console.warn(W),I.cache[ee]={},I.promise&&I.fatal)I.promise.reject(W);else throw W})}else{const se='{"$ref":"'+T+'"}';return h(ee,I.encoding||"utf8",I,T,se).then(function(W){try{let Q=o.parse(W,{schema:"core",prettyErrors:!0});if(W=I.externalRef=Q,I.cache[ee]=s(W),z&&(W=i(W,z),W===!1&&(W={},I.fatal))){let Y=new Error("File $ref resolution failed "+ee+z);if(I.promise)I.promise.reject(Y);else throw Y}W=g(W,Q,T,z,ee,I),W=v(W,I)}catch(Q){if(I.verbose&&console.warn(Q),I.promise&&I.fatal)I.promise.reject(Q);else throw Q}return L(W,ee,I),W}).catch(function(W){if(I.verbose&&console.warn(W),I.promise&&I.fatal)I.promise.reject(W);else throw W})}}function x(P){return new Promise(function(T,I){function L(N,z,U){if(N[z]&&c(N[z],"$ref")){let X=N[z].$ref;if(!X.startsWith("#")){let te="";if(!M[X]){let ee=Object.keys(M).find(function(se,W,Q){return X.startsWith(se+"/")});ee&&(P.verbose&&console.warn("Found potential subschema at",ee),te="/"+(X.split("#")[1]||"").replace(ee.split("#")[1]||""),te=te.split("/undefined").join(""),X=ee)}if(M[X]||(M[X]={resolved:!1,paths:[],extras:{},description:N[z].description}),M[X].resolved){if(!M[X].failed)if(P.rewriteRefs){let ee=M[X].resolvedAt;P.verbose>1&&console.warn("Rewriting ref",X,ee),N[z]["x-miro"]=X,N[z].$ref=ee+te}else N[z]=s(M[X].data)}else M[X].paths.push(U.path),M[X].extras[U.path]=te}}}let M=P.externalRefs;if(P.resolver.depth>0&&P.source===P.resolver.base)return T(M);a(P.openapi.definitions,{identityDetection:!0,path:"#/definitions"},L),a(P.openapi.components,{identityDetection:!0,path:"#/components"},L),a(P.openapi,{identityDetection:!0},L),T(M)})}function O(P){return new Promise(function(T,I){x(P).then(function(M){for(let N in M)if(!M[N].resolved){let z=P.resolver.depth;z>0&&z++,P.resolver.actions[z].push(function(){return y(P.openapi,N,P,function(U,X,te){if(!M[N].resolved){let W={};W.context=M[N],W.$ref=N,W.original=s(U),W.updated=U,W.source=X,te.externals.push(W),M[N].resolved=!0}let ee=Object.assign({},te,{source:"",resolver:{actions:te.resolver.actions,depth:te.resolver.actions.length-1,base:te.resolver.base}});te.patch&&M[N].description&&!U.description&&typeof U=="object"&&(U.description=M[N].description),M[N].data=U;let se=d(M[N].paths);se=se.sort(function(W,Q){const Y=W.startsWith("#/components/")||W.startsWith("#/definitions/"),q=Q.startsWith("#/components/")||Q.startsWith("#/definitions/");return Y&&!q?-1:q&&!Y?1:0});for(let W of se)if(M[N].resolvedAt&&W!==M[N].resolvedAt&&W.indexOf("x-ms-examples/")<0)te.verbose>1&&console.warn("Creating pointer to data at",W),i(te.openapi,W,{$ref:M[N].resolvedAt+M[N].extras[W],"x-miro":N+M[N].extras[W]});else{M[N].resolvedAt?te.verbose>1&&console.warn("Avoiding circular reference"):(M[N].resolvedAt=W,te.verbose>1&&console.warn("Creating initial clone of data at",W));let Q=s(U);i(te.openapi,W,Q)}te.resolver.actions[ee.resolver.depth].length===0&&te.resolver.actions[ee.resolver.depth].push(function(){return O(ee)})})})}}).catch(function(M){P.verbose&&console.warn(M),I(M)});let L={options:P};L.actions=P.resolver.actions[P.resolver.depth],T(L)})}const k=P=>P.reduce((T,I)=>T.then(L=>I().then(Array.prototype.concat.bind(L))),Promise.resolve([]));function j(P,T,I){P.resolver.actions.push([]),O(P).then(function(L){k(L.actions).then(function(){if(P.resolver.depth>=P.resolver.actions.length)return console.warn("Ran off the end of resolver actions"),T(!0);P.resolver.depth++,P.resolver.actions[P.resolver.depth].length?setTimeout(function(){j(L.options,T,I)},0):(P.verbose>1&&console.warn(u.colour.yellow+"Finished external resolution!",u.colour.normal),P.resolveInternal&&(P.verbose>1&&console.warn(u.colour.yellow+"Starting internal resolution!",u.colour.normal),P.openapi=l(P.openapi,P.original,{verbose:P.verbose-1}),P.verbose>1&&console.warn(u.colour.yellow+"Finished internal resolution!",u.colour.normal)),a(P.openapi,{},function(M,N,z){c(M,N)&&(P.preserveMiro||delete M["x-miro"])}),T(P))}).catch(function(M){P.verbose&&console.warn(M),I(M)})}).catch(function(L){P.verbose&&console.warn(L),I(L)})}function C(P){if(P.cache||(P.cache={}),P.fetch||(P.fetch=n),P.source){let T=r.parse(P.source);(!T.protocol||T.protocol.length<=2)&&(P.source=t.resolve(P.source))}P.externals=[],P.externalRefs={},P.rewriteRefs=!0,P.resolver={},P.resolver.depth=0,P.resolver.base=P.source,P.resolver.actions=[[]]}function A(P){return C(P),new Promise(function(T,I){P.resolve?j(P,T,I):T(P)})}function E(P,T,I){return I||(I={}),I.openapi=P,I.source=T,I.resolve=!0,C(I),new Promise(function(L,M){j(I,L,M)})}return k7={optionalResolve:A,resolve:E},k7}var C7,SZ;function ARe(){if(SZ)return C7;SZ=1;function e(){return{depth:0,seen:new WeakMap,top:!0,combine:!1,allowRefSiblings:!1}}function t(r,n,o,i){if(typeof o.depth>"u"&&(o=e()),r===null||typeof r>"u")return r;if(typeof r.$ref<"u"){let a={$ref:r.$ref};return o.allowRefSiblings&&r.description&&(a.description=r.description),i(a,n,o),a}if(o.combine&&(r.allOf&&Array.isArray(r.allOf)&&r.allOf.length===1&&(r=Object.assign({},r.allOf[0],r),delete r.allOf),r.anyOf&&Array.isArray(r.anyOf)&&r.anyOf.length===1&&(r=Object.assign({},r.anyOf[0],r),delete r.anyOf),r.oneOf&&Array.isArray(r.oneOf)&&r.oneOf.length===1&&(r=Object.assign({},r.oneOf[0],r),delete r.oneOf)),i(r,n,o),o.seen.has(r))return r;if(typeof r=="object"&&r!==null&&o.seen.set(r,!0),o.top=!1,o.depth++,typeof r.items<"u"&&(o.property="items",t(r.items,r,o,i)),r.additionalItems&&typeof r.additionalItems=="object"&&(o.property="additionalItems",t(r.additionalItems,r,o,i)),r.additionalProperties&&typeof r.additionalProperties=="object"&&(o.property="additionalProperties",t(r.additionalProperties,r,o,i)),r.properties)for(let a in r.properties){let s=r.properties[a];o.property="properties/"+a,t(s,r,o,i)}if(r.patternProperties)for(let a in r.patternProperties){let s=r.patternProperties[a];o.property="patternProperties/"+a,t(s,r,o,i)}if(r.allOf)for(let a in r.allOf){let s=r.allOf[a];o.property="allOf/"+a,t(s,r,o,i)}if(r.anyOf)for(let a in r.anyOf){let s=r.anyOf[a];o.property="anyOf/"+a,t(s,r,o,i)}if(r.oneOf)for(let a in r.oneOf){let s=r.oneOf[a];o.property="oneOf/"+a,t(s,r,o,i)}return r.not&&(o.property="not",t(r.not,r,o,i)),o.depth--,r}return C7={getDefaultState:e,walkSchema:t},C7}var jZ={},S7={exports:{}},AZ={},EZ;function PZ(){return EZ||(EZ=1,function(e){e.fetch=o(globalThis.fetch)&&o(globalThis.ReadableStream),e.writableStream=o(globalThis.WritableStream),e.abortController=o(globalThis.AbortController);var t;function r(){if(t!==void 0)return t;if(globalThis.XMLHttpRequest){t=new globalThis.XMLHttpRequest;try{t.open("GET",globalThis.XDomainRequest?"/":"https://example.com")}catch{t=null}}else t=null;return t}function n(i){var a=r();if(!a)return!1;try{return a.responseType=i,a.responseType===i}catch{}return!1}e.arraybuffer=e.fetch||n("arraybuffer"),e.msstream=!e.fetch&&n("ms-stream"),e.mozchunkedarraybuffer=!e.fetch&&n("moz-chunked-arraybuffer"),e.overrideMimeType=e.fetch||(r()?o(r().overrideMimeType):!1);function o(i){return typeof i=="function"}t=null}(AZ)),AZ}var Cy={},j7={exports:{}},Sy={exports:{}},TZ;function ERe(){if(TZ)return Sy.exports;TZ=1;var e=typeof Reflect=="object"?Reflect:null,t=e&&typeof e.apply=="function"?e.apply:function(j,C,A){return Function.prototype.apply.call(j,C,A)},r;e&&typeof e.ownKeys=="function"?r=e.ownKeys:Object.getOwnPropertySymbols?r=function(j){return Object.getOwnPropertyNames(j).concat(Object.getOwnPropertySymbols(j))}:r=function(j){return Object.getOwnPropertyNames(j)};function n(j){console&&console.warn&&console.warn(j)}var o=Number.isNaN||function(j){return j!==j};function i(){i.init.call(this)}Sy.exports=i,Sy.exports.once=x,i.EventEmitter=i,i.prototype._events=void 0,i.prototype._eventsCount=0,i.prototype._maxListeners=void 0;var a=10;function s(j){if(typeof j!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof j)}Object.defineProperty(i,"defaultMaxListeners",{enumerable:!0,get:function(){return a},set:function(j){if(typeof j!="number"||j<0||o(j))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+j+".");a=j}}),i.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},i.prototype.setMaxListeners=function(j){if(typeof j!="number"||j<0||o(j))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+j+".");return this._maxListeners=j,this};function l(j){return j._maxListeners===void 0?i.defaultMaxListeners:j._maxListeners}i.prototype.getMaxListeners=function(){return l(this)},i.prototype.emit=function(j){for(var C=[],A=1;A<arguments.length;A++)C.push(arguments[A]);var E=j==="error",P=this._events;if(P!==void 0)E=E&&P.error===void 0;else if(!E)return!1;if(E){var T;if(C.length>0&&(T=C[0]),T instanceof Error)throw T;var I=new Error("Unhandled error."+(T?" ("+T.message+")":""));throw I.context=T,I}var L=P[j];if(L===void 0)return!1;if(typeof L=="function")t(L,this,C);else for(var M=L.length,N=v(L,M),A=0;A<M;++A)t(N[A],this,C);return!0};function c(j,C,A,E){var P,T,I;if(s(A),T=j._events,T===void 0?(T=j._events=Object.create(null),j._eventsCount=0):(T.newListener!==void 0&&(j.emit("newListener",C,A.listener?A.listener:A),T=j._events),I=T[C]),I===void 0)I=T[C]=A,++j._eventsCount;else if(typeof I=="function"?I=T[C]=E?[A,I]:[I,A]:E?I.unshift(A):I.push(A),P=l(j),P>0&&I.length>P&&!I.warned){I.warned=!0;var L=new Error("Possible EventEmitter memory leak detected. "+I.length+" "+String(C)+" listeners added. Use emitter.setMaxListeners() to increase limit");L.name="MaxListenersExceededWarning",L.emitter=j,L.type=C,L.count=I.length,n(L)}return j}i.prototype.addListener=function(j,C){return c(this,j,C,!1)},i.prototype.on=i.prototype.addListener,i.prototype.prependListener=function(j,C){return c(this,j,C,!0)};function u(){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 d(j,C,A){var E={fired:!1,wrapFn:void 0,target:j,type:C,listener:A},P=u.bind(E);return P.listener=A,E.wrapFn=P,P}i.prototype.once=function(j,C){return s(C),this.on(j,d(this,j,C)),this},i.prototype.prependOnceListener=function(j,C){return s(C),this.prependListener(j,d(this,j,C)),this},i.prototype.removeListener=function(j,C){var A,E,P,T,I;if(s(C),E=this._events,E===void 0)return this;if(A=E[j],A===void 0)return this;if(A===C||A.listener===C)--this._eventsCount===0?this._events=Object.create(null):(delete E[j],E.removeListener&&this.emit("removeListener",j,A.listener||C));else if(typeof A!="function"){for(P=-1,T=A.length-1;T>=0;T--)if(A[T]===C||A[T].listener===C){I=A[T].listener,P=T;break}if(P<0)return this;P===0?A.shift():b(A,P),A.length===1&&(E[j]=A[0]),E.removeListener!==void 0&&this.emit("removeListener",j,I||C)}return this},i.prototype.off=i.prototype.removeListener,i.prototype.removeAllListeners=function(j){var C,A,E;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[j]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete A[j]),this;if(arguments.length===0){var P=Object.keys(A),T;for(E=0;E<P.length;++E)T=P[E],T!=="removeListener"&&this.removeAllListeners(T);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if(C=A[j],typeof C=="function")this.removeListener(j,C);else if(C!==void 0)for(E=C.length-1;E>=0;E--)this.removeListener(j,C[E]);return this};function h(j,C,A){var E=j._events;if(E===void 0)return[];var P=E[C];return P===void 0?[]:typeof P=="function"?A?[P.listener||P]:[P]:A?y(P):v(P,P.length)}i.prototype.listeners=function(j){return h(this,j,!0)},i.prototype.rawListeners=function(j){return h(this,j,!1)},i.listenerCount=function(j,C){return typeof j.listenerCount=="function"?j.listenerCount(C):g.call(j,C)},i.prototype.listenerCount=g;function g(j){var C=this._events;if(C!==void 0){var A=C[j];if(typeof A=="function")return 1;if(A!==void 0)return A.length}return 0}i.prototype.eventNames=function(){return this._eventsCount>0?r(this._events):[]};function v(j,C){for(var A=new Array(C),E=0;E<C;++E)A[E]=j[E];return A}function b(j,C){for(;C+1<j.length;C++)j[C]=j[C+1];j.pop()}function y(j){for(var C=new Array(j.length),A=0;A<C.length;++A)C[A]=j[A].listener||j[A];return C}function x(j,C){return new Promise(function(A,E){function P(I){j.removeListener(C,T),E(I)}function T(){typeof j.removeListener=="function"&&j.removeListener("error",P),A([].slice.call(arguments))}k(j,C,T,{once:!0}),C!=="error"&&O(j,P,{once:!0})})}function O(j,C,A){typeof j.on=="function"&&k(j,"error",C,A)}function k(j,C,A,E){if(typeof j.on=="function")E.once?j.once(C,A):j.on(C,A);else if(typeof j.addEventListener=="function")j.addEventListener(C,function P(T){E.once&&j.removeEventListener(C,P),A(T)});else throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof j)}return Sy.exports}var _Z,$Z;function RZ(){return $Z||($Z=1,_Z=ERe().EventEmitter),_Z}const A7=Y_(Xje);var E7,IZ;function PRe(){if(IZ)return E7;IZ=1;function e(v,b){var y=Object.keys(v);if(Object.getOwnPropertySymbols){var x=Object.getOwnPropertySymbols(v);b&&(x=x.filter(function(O){return Object.getOwnPropertyDescriptor(v,O).enumerable})),y.push.apply(y,x)}return y}function t(v){for(var b=1;b<arguments.length;b++){var y=arguments[b]!=null?arguments[b]:{};b%2?e(Object(y),!0).forEach(function(x){r(v,x,y[x])}):Object.getOwnPropertyDescriptors?Object.defineProperties(v,Object.getOwnPropertyDescriptors(y)):e(Object(y)).forEach(function(x){Object.defineProperty(v,x,Object.getOwnPropertyDescriptor(y,x))})}return v}function r(v,b,y){return b=a(b),b in v?Object.defineProperty(v,b,{value:y,enumerable:!0,configurable:!0,writable:!0}):v[b]=y,v}function n(v,b){if(!(v instanceof b))throw new TypeError("Cannot call a class as a function")}function o(v,b){for(var y=0;y<b.length;y++){var x=b[y];x.enumerable=x.enumerable||!1,x.configurable=!0,"value"in x&&(x.writable=!0),Object.defineProperty(v,a(x.key),x)}}function i(v,b,y){return b&&o(v.prototype,b),Object.defineProperty(v,"prototype",{writable:!1}),v}function a(v){var b=s(v,"string");return typeof b=="symbol"?b:String(b)}function s(v,b){if(typeof v!="object"||v===null)return v;var y=v[Symbol.toPrimitive];if(y!==void 0){var x=y.call(v,b);if(typeof x!="object")return x;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(v)}var l=xy(),c=l.Buffer,u=A7,d=u.inspect,h=d&&d.custom||"inspect";function g(v,b,y){c.prototype.copy.call(v,b,y)}return E7=function(){function v(){n(this,v),this.head=null,this.tail=null,this.length=0}return i(v,[{key:"push",value:function(b){var y={data:b,next:null};this.length>0?this.tail.next=y:this.head=y,this.tail=y,++this.length}},{key:"unshift",value:function(b){var y={data:b,next:this.head};this.length===0&&(this.tail=y),this.head=y,++this.length}},{key:"shift",value:function(){if(this.length!==0){var b=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,b}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(b){if(this.length===0)return"";for(var y=this.head,x=""+y.data;y=y.next;)x+=b+y.data;return x}},{key:"concat",value:function(b){if(this.length===0)return c.alloc(0);for(var y=c.allocUnsafe(b>>>0),x=this.head,O=0;x;)g(x.data,y,O),O+=x.data.length,x=x.next;return y}},{key:"consume",value:function(b,y){var x;return b<this.head.data.length?(x=this.head.data.slice(0,b),this.head.data=this.head.data.slice(b)):b===this.head.data.length?x=this.shift():x=y?this._getString(b):this._getBuffer(b),x}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(b){var y=this.head,x=1,O=y.data;for(b-=O.length;y=y.next;){var k=y.data,j=b>k.length?k.length:b;if(j===k.length?O+=k:O+=k.slice(0,b),b-=j,b===0){j===k.length?(++x,y.next?this.head=y.next:this.head=this.tail=null):(this.head=y,y.data=k.slice(j));break}++x}return this.length-=x,O}},{key:"_getBuffer",value:function(b){var y=c.allocUnsafe(b),x=this.head,O=1;for(x.data.copy(y),b-=x.data.length;x=x.next;){var k=x.data,j=b>k.length?k.length:b;if(k.copy(y,y.length-b,0,j),b-=j,b===0){j===k.length?(++O,x.next?this.head=x.next:this.head=this.tail=null):(this.head=x,x.data=k.slice(j));break}++O}return this.length-=O,y}},{key:h,value:function(b,y){return d(this,t(t({},y),{},{depth:0,customInspect:!1}))}}]),v}(),E7}var P7,MZ;function zZ(){if(MZ)return P7;MZ=1;function e(a,s){var l=this,c=this._readableState&&this._readableState.destroyed,u=this._writableState&&this._writableState.destroyed;return c||u?(s?s(a):a&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,process.nextTick(o,this,a)):process.nextTick(o,this,a)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(a||null,function(d){!s&&d?l._writableState?l._writableState.errorEmitted?process.nextTick(r,l):(l._writableState.errorEmitted=!0,process.nextTick(t,l,d)):process.nextTick(t,l,d):s?(process.nextTick(r,l),s(d)):process.nextTick(r,l)}),this)}function t(a,s){o(a,s),r(a)}function r(a){a._writableState&&!a._writableState.emitClose||a._readableState&&!a._readableState.emitClose||a.emit("close")}function n(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function o(a,s){a.emit("error",s)}function i(a,s){var l=a._readableState,c=a._writableState;l&&l.autoDestroy||c&&c.autoDestroy?a.destroy(s):a.emit("error",s)}return P7={destroy:e,undestroy:n,errorOrDestroy:i},P7}var T7={},LZ;function jh(){if(LZ)return T7;LZ=1;function e(s,l){s.prototype=Object.create(l.prototype),s.prototype.constructor=s,s.__proto__=l}var t={};function r(s,l,c){c||(c=Error);function u(h,g,v){return typeof l=="string"?l:l(h,g,v)}var d=function(h){e(g,h);function g(v,b,y){return h.call(this,u(v,b,y))||this}return g}(c);d.prototype.name=c.name,d.prototype.code=s,t[s]=d}function n(s,l){if(Array.isArray(s)){var c=s.length;return s=s.map(function(u){return String(u)}),c>2?"one of ".concat(l," ").concat(s.slice(0,c-1).join(", "),", or ")+s[c-1]:c===2?"one of ".concat(l," ").concat(s[0]," or ").concat(s[1]):"of ".concat(l," ").concat(s[0])}else return"of ".concat(l," ").concat(String(s))}function o(s,l,c){return s.substr(0,l.length)===l}function i(s,l,c){return(c===void 0||c>s.length)&&(c=s.length),s.substring(c-l.length,c)===l}function a(s,l,c){return typeof c!="number"&&(c=0),c+l.length>s.length?!1:s.indexOf(l,c)!==-1}return r("ERR_INVALID_OPT_VALUE",function(s,l){return'The value "'+l+'" is invalid for option "'+s+'"'},TypeError),r("ERR_INVALID_ARG_TYPE",function(s,l,c){var u;typeof l=="string"&&o(l,"not ")?(u="must not be",l=l.replace(/^not /,"")):u="must be";var d;if(i(s," argument"))d="The ".concat(s," ").concat(u," ").concat(n(l,"type"));else{var h=a(s,".")?"property":"argument";d='The "'.concat(s,'" ').concat(h," ").concat(u," ").concat(n(l,"type"))}return d+=". Received type ".concat(typeof c),d},TypeError),r("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),r("ERR_METHOD_NOT_IMPLEMENTED",function(s){return"The "+s+" method is not implemented"}),r("ERR_STREAM_PREMATURE_CLOSE","Premature close"),r("ERR_STREAM_DESTROYED",function(s){return"Cannot call "+s+" after a stream was destroyed"}),r("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),r("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),r("ERR_STREAM_WRITE_AFTER_END","write after end"),r("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),r("ERR_UNKNOWN_ENCODING",function(s){return"Unknown encoding: "+s},TypeError),r("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),T7.codes=t,T7}var _7,DZ;function NZ(){if(DZ)return _7;DZ=1;var e=jh().codes.ERR_INVALID_OPT_VALUE;function t(n,o,i){return n.highWaterMark!=null?n.highWaterMark:o?n[i]:null}function r(n,o,i,a){var s=t(o,a,i);if(s!=null){if(!(isFinite(s)&&Math.floor(s)===s)||s<0){var l=a?i:"highWaterMark";throw new e(l,s)}return Math.floor(s)}return n.objectMode?16:16*1024}return _7={getHighWaterMark:r},_7}var $7,BZ;function TRe(){if(BZ)return $7;BZ=1,$7=e;function e(r,n){if(t("noDeprecation"))return r;var o=!1;function i(){if(!o){if(t("throwDeprecation"))throw new Error(n);t("traceDeprecation")?console.trace(n):console.warn(n),o=!0}return r.apply(this,arguments)}return i}function t(r){try{if(!globalThis.localStorage)return!1}catch{return!1}var n=globalThis.localStorage[r];return n==null?!1:String(n).toLowerCase()==="true"}return $7}var R7,VZ;function FZ(){if(VZ)return R7;VZ=1,R7=P;function e(G){var oe=this;this.next=null,this.entry=null,this.finish=function(){re(oe,G)}}var t;P.WritableState=A;var r={deprecate:TRe()},n=RZ(),o=xy().Buffer,i=(typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function a(G){return o.from(G)}function s(G){return o.isBuffer(G)||G instanceof i}var l=zZ(),c=NZ(),u=c.getHighWaterMark,d=jh().codes,h=d.ERR_INVALID_ARG_TYPE,g=d.ERR_METHOD_NOT_IMPLEMENTED,v=d.ERR_MULTIPLE_CALLBACK,b=d.ERR_STREAM_CANNOT_PIPE,y=d.ERR_STREAM_DESTROYED,x=d.ERR_STREAM_NULL_VALUES,O=d.ERR_STREAM_WRITE_AFTER_END,k=d.ERR_UNKNOWN_ENCODING,j=l.errorOrDestroy;function C(){}function A(G,oe,ne){t=t||Ah(),G=G||{},typeof ne!="boolean"&&(ne=oe instanceof t),this.objectMode=!!G.objectMode,ne&&(this.objectMode=this.objectMode||!!G.writableObjectMode),this.highWaterMark=u(this,G,"writableHighWaterMark",ne),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var be=G.decodeStrings===!1;this.decodeStrings=!be,this.defaultEncoding=G.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(ve){X(oe,ve)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=G.emitClose!==!1,this.autoDestroy=!!G.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new e(this)}A.prototype.getBuffer=function(){for(var G=this.bufferedRequest,oe=[];G;)oe.push(G),G=G.next;return oe},function(){try{Object.defineProperty(A.prototype,"buffer",{get:r.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}}();var E;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(E=Function.prototype[Symbol.hasInstance],Object.defineProperty(P,Symbol.hasInstance,{value:function(G){return E.call(this,G)?!0:this!==P?!1:G&&G._writableState instanceof A}})):E=function(G){return G instanceof this};function P(G){t=t||Ah();var oe=this instanceof t;if(!oe&&!E.call(P,this))return new P(G);this._writableState=new A(G,this,oe),this.writable=!0,G&&(typeof G.write=="function"&&(this._write=G.write),typeof G.writev=="function"&&(this._writev=G.writev),typeof G.destroy=="function"&&(this._destroy=G.destroy),typeof G.final=="function"&&(this._final=G.final)),n.call(this)}P.prototype.pipe=function(){j(this,new b)};function T(G,oe){var ne=new O;j(G,ne),process.nextTick(oe,ne)}function I(G,oe,ne,be){var ve;return ne===null?ve=new x:typeof ne!="string"&&!oe.objectMode&&(ve=new h("chunk",["string","Buffer"],ne)),ve?(j(G,ve),process.nextTick(be,ve),!1):!0}P.prototype.write=function(G,oe,ne){var be=this._writableState,ve=!1,_=!be.objectMode&&s(G);return _&&!o.isBuffer(G)&&(G=a(G)),typeof oe=="function"&&(ne=oe,oe=null),_?oe="buffer":oe||(oe=be.defaultEncoding),typeof ne!="function"&&(ne=C),be.ending?T(this,ne):(_||I(this,be,G,ne))&&(be.pendingcb++,ve=M(this,be,_,G,oe,ne)),ve},P.prototype.cork=function(){this._writableState.corked++},P.prototype.uncork=function(){var G=this._writableState;G.corked&&(G.corked--,!G.writing&&!G.corked&&!G.bufferProcessing&&G.bufferedRequest&&se(this,G))},P.prototype.setDefaultEncoding=function(G){if(typeof G=="string"&&(G=G.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((G+"").toLowerCase())>-1))throw new k(G);return this._writableState.defaultEncoding=G,this},Object.defineProperty(P.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});function L(G,oe,ne){return!G.objectMode&&G.decodeStrings!==!1&&typeof oe=="string"&&(oe=o.from(oe,ne)),oe}Object.defineProperty(P.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function M(G,oe,ne,be,ve,_){if(!ne){var Z=L(oe,be,ve);be!==Z&&(ne=!0,ve="buffer",be=Z)}var fe=oe.objectMode?1:be.length;oe.length+=fe;var F=oe.length<oe.highWaterMark;if(F||(oe.needDrain=!0),oe.writing||oe.corked){var he=oe.lastBufferedRequest;oe.lastBufferedRequest={chunk:be,encoding:ve,isBuf:ne,callback:_,next:null},he?he.next=oe.lastBufferedRequest:oe.bufferedRequest=oe.lastBufferedRequest,oe.bufferedRequestCount+=1}else N(G,oe,!1,fe,be,ve,_);return F}function N(G,oe,ne,be,ve,_,Z){oe.writelen=be,oe.writecb=Z,oe.writing=!0,oe.sync=!0,oe.destroyed?oe.onwrite(new y("write")):ne?G._writev(ve,oe.onwrite):G._write(ve,_,oe.onwrite),oe.sync=!1}function z(G,oe,ne,be,ve){--oe.pendingcb,ne?(process.nextTick(ve,be),process.nextTick(q,G,oe),G._writableState.errorEmitted=!0,j(G,be)):(ve(be),G._writableState.errorEmitted=!0,j(G,be),q(G,oe))}function U(G){G.writing=!1,G.writecb=null,G.length-=G.writelen,G.writelen=0}function X(G,oe){var ne=G._writableState,be=ne.sync,ve=ne.writecb;if(typeof ve!="function")throw new v;if(U(ne),oe)z(G,ne,be,oe,ve);else{var _=W(ne)||G.destroyed;!_&&!ne.corked&&!ne.bufferProcessing&&ne.bufferedRequest&&se(G,ne),be?process.nextTick(te,G,ne,_,ve):te(G,ne,_,ve)}}function te(G,oe,ne,be){ne||ee(G,oe),oe.pendingcb--,be(),q(G,oe)}function ee(G,oe){oe.length===0&&oe.needDrain&&(oe.needDrain=!1,G.emit("drain"))}function se(G,oe){oe.bufferProcessing=!0;var ne=oe.bufferedRequest;if(G._writev&&ne&&ne.next){var be=oe.bufferedRequestCount,ve=new Array(be),_=oe.corkedRequestsFree;_.entry=ne;for(var Z=0,fe=!0;ne;)ve[Z]=ne,ne.isBuf||(fe=!1),ne=ne.next,Z+=1;ve.allBuffers=fe,N(G,oe,!0,oe.length,ve,"",_.finish),oe.pendingcb++,oe.lastBufferedRequest=null,_.next?(oe.corkedRequestsFree=_.next,_.next=null):oe.corkedRequestsFree=new e(oe),oe.bufferedRequestCount=0}else{for(;ne;){var F=ne.chunk,he=ne.encoding,ue=ne.callback,K=oe.objectMode?1:F.length;if(N(G,oe,!1,K,F,he,ue),ne=ne.next,oe.bufferedRequestCount--,oe.writing)break}ne===null&&(oe.lastBufferedRequest=null)}oe.bufferedRequest=ne,oe.bufferProcessing=!1}P.prototype._write=function(G,oe,ne){ne(new g("_write()"))},P.prototype._writev=null,P.prototype.end=function(G,oe,ne){var be=this._writableState;return typeof G=="function"?(ne=G,G=null,oe=null):typeof oe=="function"&&(ne=oe,oe=null),G!=null&&this.write(G,oe),be.corked&&(be.corked=1,this.uncork()),be.ending||H(this,be,ne),this},Object.defineProperty(P.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function W(G){return G.ending&&G.length===0&&G.bufferedRequest===null&&!G.finished&&!G.writing}function Q(G,oe){G._final(function(ne){oe.pendingcb--,ne&&j(G,ne),oe.prefinished=!0,G.emit("prefinish"),q(G,oe)})}function Y(G,oe){!oe.prefinished&&!oe.finalCalled&&(typeof G._final=="function"&&!oe.destroyed?(oe.pendingcb++,oe.finalCalled=!0,process.nextTick(Q,G,oe)):(oe.prefinished=!0,G.emit("prefinish")))}function q(G,oe){var ne=W(oe);if(ne&&(Y(G,oe),oe.pendingcb===0&&(oe.finished=!0,G.emit("finish"),oe.autoDestroy))){var be=G._readableState;(!be||be.autoDestroy&&be.endEmitted)&&G.destroy()}return ne}function H(G,oe,ne){oe.ending=!0,q(G,oe),ne&&(oe.finished?process.nextTick(ne):G.once("finish",ne)),oe.ended=!0,G.writable=!1}function re(G,oe,ne){var be=G.entry;for(G.entry=null;be;){var ve=be.callback;oe.pendingcb--,ve(ne),be=be.next}oe.corkedRequestsFree.next=G}return Object.defineProperty(P.prototype,"destroyed",{enumerable:!1,get:function(){return this._writableState===void 0?!1:this._writableState.destroyed},set:function(G){this._writableState&&(this._writableState.destroyed=G)}}),P.prototype.destroy=l.destroy,P.prototype._undestroy=l.undestroy,P.prototype._destroy=function(G,oe){oe(G)},R7}var I7,QZ;function Ah(){if(QZ)return I7;QZ=1;var e=Object.keys||function(c){var u=[];for(var d in c)u.push(d);return u};I7=a;for(var t=JZ(),r=FZ(),n=e(r.prototype),o=0;o<n.length;o++){var i=n[o];a.prototype[i]||(a.prototype[i]=r.prototype[i])}function a(c){if(!(this instanceof a))return new a(c);t.call(this,c),r.call(this,c),this.allowHalfOpen=!0,c&&(c.readable===!1&&(this.readable=!1),c.writable===!1&&(this.writable=!1),c.allowHalfOpen===!1&&(this.allowHalfOpen=!1,this.once("end",s)))}Object.defineProperty(a.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(a.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(a.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function s(){this._writableState.ended||process.nextTick(l,this)}function l(c){c.end()}return Object.defineProperty(a.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0||this._writableState===void 0?!1:this._readableState.destroyed&&this._writableState.destroyed},set:function(c){this._readableState===void 0||this._writableState===void 0||(this._readableState.destroyed=c,this._writableState.destroyed=c)}}),I7}var M7={},z7={exports:{}};/*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */var qZ;function _Re(){return qZ||(qZ=1,function(e,t){var r=xy(),n=r.Buffer;function o(a,s){for(var l in a)s[l]=a[l]}n.from&&n.alloc&&n.allocUnsafe&&n.allocUnsafeSlow?e.exports=r:(o(r,t),t.Buffer=i);function i(a,s,l){return n(a,s,l)}i.prototype=Object.create(n.prototype),o(n,i),i.from=function(a,s,l){if(typeof a=="number")throw new TypeError("Argument must not be a number");return n(a,s,l)},i.alloc=function(a,s,l){if(typeof a!="number")throw new TypeError("Argument must be a number");var c=n(a);return s!==void 0?typeof l=="string"?c.fill(s,l):c.fill(s):c.fill(0),c},i.allocUnsafe=function(a){if(typeof a!="number")throw new TypeError("Argument must be a number");return n(a)},i.allocUnsafeSlow=function(a){if(typeof a!="number")throw new TypeError("Argument must be a number");return r.SlowBuffer(a)}}(z7,z7.exports)),z7.exports}var ZZ;function WZ(){if(ZZ)return M7;ZZ=1;var e=_Re().Buffer,t=e.isEncoding||function(x){switch(x=""+x,x&&x.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 r(x){if(!x)return"utf8";for(var O;;)switch(x){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 x;default:if(O)return;x=(""+x).toLowerCase(),O=!0}}function n(x){var O=r(x);if(typeof O!="string"&&(e.isEncoding===t||!t(x)))throw new Error("Unknown encoding: "+x);return O||x}M7.StringDecoder=o;function o(x){this.encoding=n(x);var O;switch(this.encoding){case"utf16le":this.text=d,this.end=h,O=4;break;case"utf8":this.fillLast=l,O=4;break;case"base64":this.text=g,this.end=v,O=3;break;default:this.write=b,this.end=y;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=e.allocUnsafe(O)}o.prototype.write=function(x){if(x.length===0)return"";var O,k;if(this.lastNeed){if(O=this.fillLast(x),O===void 0)return"";k=this.lastNeed,this.lastNeed=0}else k=0;return k<x.length?O?O+this.text(x,k):this.text(x,k):O||""},o.prototype.end=u,o.prototype.text=c,o.prototype.fillLast=function(x){if(this.lastNeed<=x.length)return x.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);x.copy(this.lastChar,this.lastTotal-this.lastNeed,0,x.length),this.lastNeed-=x.length};function i(x){return x<=127?0:x>>5===6?2:x>>4===14?3:x>>3===30?4:x>>6===2?-1:-2}function a(x,O,k){var j=O.length-1;if(j<k)return 0;var C=i(O[j]);return C>=0?(C>0&&(x.lastNeed=C-1),C):--j<k||C===-2?0:(C=i(O[j]),C>=0?(C>0&&(x.lastNeed=C-2),C):--j<k||C===-2?0:(C=i(O[j]),C>=0?(C>0&&(C===2?C=0:x.lastNeed=C-3),C):0))}function s(x,O,k){if((O[0]&192)!==128)return x.lastNeed=0,"\uFFFD";if(x.lastNeed>1&&O.length>1){if((O[1]&192)!==128)return x.lastNeed=1,"\uFFFD";if(x.lastNeed>2&&O.length>2&&(O[2]&192)!==128)return x.lastNeed=2,"\uFFFD"}}function l(x){var O=this.lastTotal-this.lastNeed,k=s(this,x);if(k!==void 0)return k;if(this.lastNeed<=x.length)return x.copy(this.lastChar,O,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);x.copy(this.lastChar,O,0,x.length),this.lastNeed-=x.length}function c(x,O){var k=a(this,x,O);if(!this.lastNeed)return x.toString("utf8",O);this.lastTotal=k;var j=x.length-(k-this.lastNeed);return x.copy(this.lastChar,0,j),x.toString("utf8",O,j)}function u(x){var O=x&&x.length?this.write(x):"";return this.lastNeed?O+"\uFFFD":O}function d(x,O){if((x.length-O)%2===0){var k=x.toString("utf16le",O);if(k){var j=k.charCodeAt(k.length-1);if(j>=55296&&j<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=x[x.length-2],this.lastChar[1]=x[x.length-1],k.slice(0,-1)}return k}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=x[x.length-1],x.toString("utf16le",O,x.length-1)}function h(x){var O=x&&x.length?this.write(x):"";if(this.lastNeed){var k=this.lastTotal-this.lastNeed;return O+this.lastChar.toString("utf16le",0,k)}return O}function g(x,O){var k=(x.length-O)%3;return k===0?x.toString("base64",O):(this.lastNeed=3-k,this.lastTotal=3,k===1?this.lastChar[0]=x[x.length-1]:(this.lastChar[0]=x[x.length-2],this.lastChar[1]=x[x.length-1]),x.toString("base64",O,x.length-k))}function v(x){var O=x&&x.length?this.write(x):"";return this.lastNeed?O+this.lastChar.toString("base64",0,3-this.lastNeed):O}function b(x){return x.toString(this.encoding)}function y(x){return x&&x.length?this.write(x):""}return M7}var L7,UZ;function D7(){if(UZ)return L7;UZ=1;var e=jh().codes.ERR_STREAM_PREMATURE_CLOSE;function t(i){var a=!1;return function(){if(!a){a=!0;for(var s=arguments.length,l=new Array(s),c=0;c<s;c++)l[c]=arguments[c];i.apply(this,l)}}}function r(){}function n(i){return i.setHeader&&typeof i.abort=="function"}function o(i,a,s){if(typeof a=="function")return o(i,null,a);a||(a={}),s=t(s||r);var l=a.readable||a.readable!==!1&&i.readable,c=a.writable||a.writable!==!1&&i.writable,u=function(){i.writable||h()},d=i._writableState&&i._writableState.finished,h=function(){c=!1,d=!0,l||s.call(i)},g=i._readableState&&i._readableState.endEmitted,v=function(){l=!1,g=!0,c||s.call(i)},b=function(O){s.call(i,O)},y=function(){var O;if(l&&!g)return(!i._readableState||!i._readableState.ended)&&(O=new e),s.call(i,O);if(c&&!d)return(!i._writableState||!i._writableState.ended)&&(O=new e),s.call(i,O)},x=function(){i.req.on("finish",h)};return n(i)?(i.on("complete",h),i.on("abort",y),i.req?x():i.on("request",x)):c&&!i._writableState&&(i.on("end",u),i.on("close",u)),i.on("end",v),i.on("finish",h),a.error!==!1&&i.on("error",b),i.on("close",y),function(){i.removeListener("complete",h),i.removeListener("abort",y),i.removeListener("request",x),i.req&&i.req.removeListener("finish",h),i.removeListener("end",u),i.removeListener("close",u),i.removeListener("finish",h),i.removeListener("end",v),i.removeListener("error",b),i.removeListener("close",y)}}return L7=o,L7}var N7,HZ;function $Re(){if(HZ)return N7;HZ=1;var e;function t(k,j,C){return j=r(j),j in k?Object.defineProperty(k,j,{value:C,enumerable:!0,configurable:!0,writable:!0}):k[j]=C,k}function r(k){var j=n(k,"string");return typeof j=="symbol"?j:String(j)}function n(k,j){if(typeof k!="object"||k===null)return k;var C=k[Symbol.toPrimitive];if(C!==void 0){var A=C.call(k,j);if(typeof A!="object")return A;throw new TypeError("@@toPrimitive must return a primitive value.")}return(j==="string"?String:Number)(k)}var o=D7(),i=Symbol("lastResolve"),a=Symbol("lastReject"),s=Symbol("error"),l=Symbol("ended"),c=Symbol("lastPromise"),u=Symbol("handlePromise"),d=Symbol("stream");function h(k,j){return{value:k,done:j}}function g(k){var j=k[i];if(j!==null){var C=k[d].read();C!==null&&(k[c]=null,k[i]=null,k[a]=null,j(h(C,!1)))}}function v(k){process.nextTick(g,k)}function b(k,j){return function(C,A){k.then(function(){if(j[l]){C(h(void 0,!0));return}j[u](C,A)},A)}}var y=Object.getPrototypeOf(function(){}),x=Object.setPrototypeOf((e={get stream(){return this[d]},next:function(){var k=this,j=this[s];if(j!==null)return Promise.reject(j);if(this[l])return Promise.resolve(h(void 0,!0));if(this[d].destroyed)return new Promise(function(P,T){process.nextTick(function(){k[s]?T(k[s]):P(h(void 0,!0))})});var C=this[c],A;if(C)A=new Promise(b(C,this));else{var E=this[d].read();if(E!==null)return Promise.resolve(h(E,!1));A=new Promise(this[u])}return this[c]=A,A}},t(e,Symbol.asyncIterator,function(){return this}),t(e,"return",function(){var k=this;return new Promise(function(j,C){k[d].destroy(null,function(A){if(A){C(A);return}j(h(void 0,!0))})})}),e),y),O=function(k){var j,C=Object.create(x,(j={},t(j,d,{value:k,writable:!0}),t(j,i,{value:null,writable:!0}),t(j,a,{value:null,writable:!0}),t(j,s,{value:null,writable:!0}),t(j,l,{value:k._readableState.endEmitted,writable:!0}),t(j,u,{value:function(A,E){var P=C[d].read();P?(C[c]=null,C[i]=null,C[a]=null,A(h(P,!1))):(C[i]=A,C[a]=E)},writable:!0}),j));return C[c]=null,o(k,function(A){if(A&&A.code!=="ERR_STREAM_PREMATURE_CLOSE"){var E=C[a];E!==null&&(C[c]=null,C[i]=null,C[a]=null,E(A)),C[s]=A;return}var P=C[i];P!==null&&(C[c]=null,C[i]=null,C[a]=null,P(h(void 0,!0))),C[l]=!0}),k.on("readable",v.bind(null,C)),C};return N7=O,N7}var XZ,YZ;function RRe(){return YZ||(YZ=1,XZ=function(){throw new Error("Readable.from is not available in the browser")}),XZ}var B7,GZ;function JZ(){if(GZ)return B7;GZ=1,B7=T;var e;T.ReadableState=P;var t=function(_,Z){return _.listeners(Z).length},r=RZ(),n=xy().Buffer,o=(typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function i(_){return n.from(_)}function a(_){return n.isBuffer(_)||_ instanceof o}var s=A7,l;s&&s.debuglog?l=s.debuglog("stream"):l=function(){};var c=PRe(),u=zZ(),d=NZ(),h=d.getHighWaterMark,g=jh().codes,v=g.ERR_INVALID_ARG_TYPE,b=g.ERR_STREAM_PUSH_AFTER_EOF,y=g.ERR_METHOD_NOT_IMPLEMENTED,x=g.ERR_STREAM_UNSHIFT_AFTER_END_EVENT,O,k,j,C=u.errorOrDestroy,A=["error","close","destroy","pause","resume"];function E(_,Z,fe){if(typeof _.prependListener=="function")return _.prependListener(Z,fe);!_._events||!_._events[Z]?_.on(Z,fe):Array.isArray(_._events[Z])?_._events[Z].unshift(fe):_._events[Z]=[fe,_._events[Z]]}function P(_,Z,fe){e=e||Ah(),_=_||{},typeof fe!="boolean"&&(fe=Z instanceof e),this.objectMode=!!_.objectMode,fe&&(this.objectMode=this.objectMode||!!_.readableObjectMode),this.highWaterMark=h(this,_,"readableHighWaterMark",fe),this.buffer=new c,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=_.emitClose!==!1,this.autoDestroy=!!_.autoDestroy,this.destroyed=!1,this.defaultEncoding=_.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,_.encoding&&(O||(O=WZ().StringDecoder),this.decoder=new O(_.encoding),this.encoding=_.encoding)}function T(_){if(e=e||Ah(),!(this instanceof T))return new T(_);var Z=this instanceof e;this._readableState=new P(_,this,Z),this.readable=!0,_&&(typeof _.read=="function"&&(this._read=_.read),typeof _.destroy=="function"&&(this._destroy=_.destroy)),r.call(this)}Object.defineProperty(T.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(_){this._readableState&&(this._readableState.destroyed=_)}}),T.prototype.destroy=u.destroy,T.prototype._undestroy=u.undestroy,T.prototype._destroy=function(_,Z){Z(_)},T.prototype.push=function(_,Z){var fe=this._readableState,F;return fe.objectMode?F=!0:typeof _=="string"&&(Z=Z||fe.defaultEncoding,Z!==fe.encoding&&(_=n.from(_,Z),Z=""),F=!0),I(this,_,Z,!1,F)},T.prototype.unshift=function(_){return I(this,_,null,!0,!1)};function I(_,Z,fe,F,he){l("readableAddChunk",Z);var ue=_._readableState;if(Z===null)ue.reading=!1,X(_,ue);else{var K;if(he||(K=M(ue,Z)),K)C(_,K);else if(ue.objectMode||Z&&Z.length>0)if(typeof Z!="string"&&!ue.objectMode&&Object.getPrototypeOf(Z)!==n.prototype&&(Z=i(Z)),F)ue.endEmitted?C(_,new x):L(_,ue,Z,!0);else if(ue.ended)C(_,new b);else{if(ue.destroyed)return!1;ue.reading=!1,ue.decoder&&!fe?(Z=ue.decoder.write(Z),ue.objectMode||Z.length!==0?L(_,ue,Z,!1):se(_,ue)):L(_,ue,Z,!1)}else F||(ue.reading=!1,se(_,ue))}return!ue.ended&&(ue.length<ue.highWaterMark||ue.length===0)}function L(_,Z,fe,F){Z.flowing&&Z.length===0&&!Z.sync?(Z.awaitDrain=0,_.emit("data",fe)):(Z.length+=Z.objectMode?1:fe.length,F?Z.buffer.unshift(fe):Z.buffer.push(fe),Z.needReadable&&te(_)),se(_,Z)}function M(_,Z){var fe;return!a(Z)&&typeof Z!="string"&&Z!==void 0&&!_.objectMode&&(fe=new v("chunk",["string","Buffer","Uint8Array"],Z)),fe}T.prototype.isPaused=function(){return this._readableState.flowing===!1},T.prototype.setEncoding=function(_){O||(O=WZ().StringDecoder);var Z=new O(_);this._readableState.decoder=Z,this._readableState.encoding=this._readableState.decoder.encoding;for(var fe=this._readableState.buffer.head,F="";fe!==null;)F+=Z.write(fe.data),fe=fe.next;return this._readableState.buffer.clear(),F!==""&&this._readableState.buffer.push(F),this._readableState.length=F.length,this};var N=1073741824;function z(_){return _>=N?_=N:(_--,_|=_>>>1,_|=_>>>2,_|=_>>>4,_|=_>>>8,_|=_>>>16,_++),_}function U(_,Z){return _<=0||Z.length===0&&Z.ended?0:Z.objectMode?1:_!==_?Z.flowing&&Z.length?Z.buffer.head.data.length:Z.length:(_>Z.highWaterMark&&(Z.highWaterMark=z(_)),_<=Z.length?_:Z.ended?Z.length:(Z.needReadable=!0,0))}T.prototype.read=function(_){l("read",_),_=parseInt(_,10);var Z=this._readableState,fe=_;if(_!==0&&(Z.emittedReadable=!1),_===0&&Z.needReadable&&((Z.highWaterMark!==0?Z.length>=Z.highWaterMark:Z.length>0)||Z.ended))return l("read: emitReadable",Z.length,Z.ended),Z.length===0&&Z.ended?ne(this):te(this),null;if(_=U(_,Z),_===0&&Z.ended)return Z.length===0&&ne(this),null;var F=Z.needReadable;l("need readable",F),(Z.length===0||Z.length-_<Z.highWaterMark)&&(F=!0,l("length less than watermark",F)),Z.ended||Z.reading?(F=!1,l("reading or ended",F)):F&&(l("do read"),Z.reading=!0,Z.sync=!0,Z.length===0&&(Z.needReadable=!0),this._read(Z.highWaterMark),Z.sync=!1,Z.reading||(_=U(fe,Z)));var he;return _>0?he=oe(_,Z):he=null,he===null?(Z.needReadable=Z.length<=Z.highWaterMark,_=0):(Z.length-=_,Z.awaitDrain=0),Z.length===0&&(Z.ended||(Z.needReadable=!0),fe!==_&&Z.ended&&ne(this)),he!==null&&this.emit("data",he),he};function X(_,Z){if(l("onEofChunk"),!Z.ended){if(Z.decoder){var fe=Z.decoder.end();fe&&fe.length&&(Z.buffer.push(fe),Z.length+=Z.objectMode?1:fe.length)}Z.ended=!0,Z.sync?te(_):(Z.needReadable=!1,Z.emittedReadable||(Z.emittedReadable=!0,ee(_)))}}function te(_){var Z=_._readableState;l("emitReadable",Z.needReadable,Z.emittedReadable),Z.needReadable=!1,Z.emittedReadable||(l("emitReadable",Z.flowing),Z.emittedReadable=!0,process.nextTick(ee,_))}function ee(_){var Z=_._readableState;l("emitReadable_",Z.destroyed,Z.length,Z.ended),!Z.destroyed&&(Z.length||Z.ended)&&(_.emit("readable"),Z.emittedReadable=!1),Z.needReadable=!Z.flowing&&!Z.ended&&Z.length<=Z.highWaterMark,G(_)}function se(_,Z){Z.readingMore||(Z.readingMore=!0,process.nextTick(W,_,Z))}function W(_,Z){for(;!Z.reading&&!Z.ended&&(Z.length<Z.highWaterMark||Z.flowing&&Z.length===0);){var fe=Z.length;if(l("maybeReadMore read 0"),_.read(0),fe===Z.length)break}Z.readingMore=!1}T.prototype._read=function(_){C(this,new y("_read()"))},T.prototype.pipe=function(_,Z){var fe=this,F=this._readableState;switch(F.pipesCount){case 0:F.pipes=_;break;case 1:F.pipes=[F.pipes,_];break;default:F.pipes.push(_);break}F.pipesCount+=1,l("pipe count=%d opts=%j",F.pipesCount,Z);var he=(!Z||Z.end!==!1)&&_!==null&&_!==process.stderr,ue=he?ae:Ue;F.endEmitted?process.nextTick(ue):fe.once("end",ue),_.on("unpipe",K);function K(B,J){l("onunpipe"),B===fe&&J&&J.hasUnpiped===!1&&(J.hasUnpiped=!0,Se())}function ae(){l("onend"),_.end()}var le=Q(fe);_.on("drain",le);var Ce=!1;function Se(){l("cleanup"),_.removeListener("close",xe),_.removeListener("finish",Ee),_.removeListener("drain",le),_.removeListener("error",ye),_.removeListener("unpipe",K),fe.removeListener("end",ae),fe.removeListener("end",Ue),fe.removeListener("data",me),Ce=!0,F.awaitDrain&&(!_._writableState||_._writableState.needDrain)&&le()}fe.on("data",me);function me(B){l("ondata");var J=_.write(B);l("dest.write",J),J===!1&&((F.pipesCount===1&&F.pipes===_||F.pipesCount>1&&ve(F.pipes,_)!==-1)&&!Ce&&(l("false write response, pause",F.awaitDrain),F.awaitDrain++),fe.pause())}function ye(B){l("onerror",B),Ue(),_.removeListener("error",ye),t(_,"error")===0&&C(_,B)}E(_,"error",ye);function xe(){_.removeListener("finish",Ee),Ue()}_.once("close",xe);function Ee(){l("onfinish"),_.removeListener("close",xe),Ue()}_.once("finish",Ee);function Ue(){l("unpipe"),fe.unpipe(_)}return _.emit("pipe",fe),F.flowing||(l("pipe resume"),fe.resume()),_};function Q(_){return function(){var Z=_._readableState;l("pipeOnDrain",Z.awaitDrain),Z.awaitDrain&&Z.awaitDrain--,Z.awaitDrain===0&&t(_,"data")&&(Z.flowing=!0,G(_))}}T.prototype.unpipe=function(_){var Z=this._readableState,fe={hasUnpiped:!1};if(Z.pipesCount===0)return this;if(Z.pipesCount===1)return _&&_!==Z.pipes?this:(_||(_=Z.pipes),Z.pipes=null,Z.pipesCount=0,Z.flowing=!1,_&&_.emit("unpipe",this,fe),this);if(!_){var F=Z.pipes,he=Z.pipesCount;Z.pipes=null,Z.pipesCount=0,Z.flowing=!1;for(var ue=0;ue<he;ue++)F[ue].emit("unpipe",this,{hasUnpiped:!1});return this}var K=ve(Z.pipes,_);return K===-1?this:(Z.pipes.splice(K,1),Z.pipesCount-=1,Z.pipesCount===1&&(Z.pipes=Z.pipes[0]),_.emit("unpipe",this,fe),this)},T.prototype.on=function(_,Z){var fe=r.prototype.on.call(this,_,Z),F=this._readableState;return _==="data"?(F.readableListening=this.listenerCount("readable")>0,F.flowing!==!1&&this.resume()):_==="readable"&&!F.endEmitted&&!F.readableListening&&(F.readableListening=F.needReadable=!0,F.flowing=!1,F.emittedReadable=!1,l("on readable",F.length,F.reading),F.length?te(this):F.reading||process.nextTick(q,this)),fe},T.prototype.addListener=T.prototype.on,T.prototype.removeListener=function(_,Z){var fe=r.prototype.removeListener.call(this,_,Z);return _==="readable"&&process.nextTick(Y,this),fe},T.prototype.removeAllListeners=function(_){var Z=r.prototype.removeAllListeners.apply(this,arguments);return(_==="readable"||_===void 0)&&process.nextTick(Y,this),Z};function Y(_){var Z=_._readableState;Z.readableListening=_.listenerCount("readable")>0,Z.resumeScheduled&&!Z.paused?Z.flowing=!0:_.listenerCount("data")>0&&_.resume()}function q(_){l("readable nexttick read 0"),_.read(0)}T.prototype.resume=function(){var _=this._readableState;return _.flowing||(l("resume"),_.flowing=!_.readableListening,H(this,_)),_.paused=!1,this};function H(_,Z){Z.resumeScheduled||(Z.resumeScheduled=!0,process.nextTick(re,_,Z))}function re(_,Z){l("resume",Z.reading),Z.reading||_.read(0),Z.resumeScheduled=!1,_.emit("resume"),G(_),Z.flowing&&!Z.reading&&_.read(0)}T.prototype.pause=function(){return l("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(l("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this};function G(_){var Z=_._readableState;for(l("flow",Z.flowing);Z.flowing&&_.read()!==null;);}T.prototype.wrap=function(_){var Z=this,fe=this._readableState,F=!1;_.on("end",function(){if(l("wrapped end"),fe.decoder&&!fe.ended){var K=fe.decoder.end();K&&K.length&&Z.push(K)}Z.push(null)}),_.on("data",function(K){if(l("wrapped data"),fe.decoder&&(K=fe.decoder.write(K)),!(fe.objectMode&&K==null)&&!(!fe.objectMode&&(!K||!K.length))){var ae=Z.push(K);ae||(F=!0,_.pause())}});for(var he in _)this[he]===void 0&&typeof _[he]=="function"&&(this[he]=function(K){return function(){return _[K].apply(_,arguments)}}(he));for(var ue=0;ue<A.length;ue++)_.on(A[ue],this.emit.bind(this,A[ue]));return this._read=function(K){l("wrapped _read",K),F&&(F=!1,_.resume())},this},typeof Symbol=="function"&&(T.prototype[Symbol.asyncIterator]=function(){return k===void 0&&(k=$Re()),k(this)}),Object.defineProperty(T.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(T.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty(T.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(_){this._readableState&&(this._readableState.flowing=_)}}),T._fromList=oe,Object.defineProperty(T.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}});function oe(_,Z){if(Z.length===0)return null;var fe;return Z.objectMode?fe=Z.buffer.shift():!_||_>=Z.length?(Z.decoder?fe=Z.buffer.join(""):Z.buffer.length===1?fe=Z.buffer.first():fe=Z.buffer.concat(Z.length),Z.buffer.clear()):fe=Z.buffer.consume(_,Z.decoder),fe}function ne(_){var Z=_._readableState;l("endReadable",Z.endEmitted),Z.endEmitted||(Z.ended=!0,process.nextTick(be,Z,_))}function be(_,Z){if(l("endReadableNT",_.endEmitted,_.length),!_.endEmitted&&_.length===0&&(_.endEmitted=!0,Z.readable=!1,Z.emit("end"),_.autoDestroy)){var fe=Z._writableState;(!fe||fe.autoDestroy&&fe.finished)&&Z.destroy()}}typeof Symbol=="function"&&(T.from=function(_,Z){return j===void 0&&(j=RRe()),j(T,_,Z)});function ve(_,Z){for(var fe=0,F=_.length;fe<F;fe++)if(_[fe]===Z)return fe;return-1}return B7}var V7,KZ;function eW(){if(KZ)return V7;KZ=1,V7=s;var e=jh().codes,t=e.ERR_METHOD_NOT_IMPLEMENTED,r=e.ERR_MULTIPLE_CALLBACK,n=e.ERR_TRANSFORM_ALREADY_TRANSFORMING,o=e.ERR_TRANSFORM_WITH_LENGTH_0,i=Ah();function a(u,d){var h=this._transformState;h.transforming=!1;var g=h.writecb;if(g===null)return this.emit("error",new r);h.writechunk=null,h.writecb=null,d!=null&&this.push(d),g(u);var v=this._readableState;v.reading=!1,(v.needReadable||v.length<v.highWaterMark)&&this._read(v.highWaterMark)}function s(u){if(!(this instanceof s))return new s(u);i.call(this,u),this._transformState={afterTransform:a.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,u&&(typeof u.transform=="function"&&(this._transform=u.transform),typeof u.flush=="function"&&(this._flush=u.flush)),this.on("prefinish",l)}function l(){var u=this;typeof this._flush=="function"&&!this._readableState.destroyed?this._flush(function(d,h){c(u,d,h)}):c(this,null,null)}s.prototype.push=function(u,d){return this._transformState.needTransform=!1,i.prototype.push.call(this,u,d)},s.prototype._transform=function(u,d,h){h(new t("_transform()"))},s.prototype._write=function(u,d,h){var g=this._transformState;if(g.writecb=h,g.writechunk=u,g.writeencoding=d,!g.transforming){var v=this._readableState;(g.needTransform||v.needReadable||v.length<v.highWaterMark)&&this._read(v.highWaterMark)}},s.prototype._read=function(u){var d=this._transformState;d.writechunk!==null&&!d.transforming?(d.transforming=!0,this._transform(d.writechunk,d.writeencoding,d.afterTransform)):d.needTransform=!0},s.prototype._destroy=function(u,d){i.prototype._destroy.call(this,u,function(h){d(h)})};function c(u,d,h){if(d)return u.emit("error",d);if(h!=null&&u.push(h),u._writableState.length)throw new o;if(u._transformState.transforming)throw new n;return u.push(null)}return V7}var F7,tW;function IRe(){if(tW)return F7;tW=1,F7=t;var e=eW();function t(r){if(!(this instanceof t))return new t(r);e.call(this,r)}return t.prototype._transform=function(r,n,o){o(null,r)},F7}var Q7,rW;function MRe(){if(rW)return Q7;rW=1;var e;function t(h){var g=!1;return function(){g||(g=!0,h.apply(void 0,arguments))}}var r=jh().codes,n=r.ERR_MISSING_ARGS,o=r.ERR_STREAM_DESTROYED;function i(h){if(h)throw h}function a(h){return h.setHeader&&typeof h.abort=="function"}function s(h,g,v,b){b=t(b);var y=!1;h.on("close",function(){y=!0}),e===void 0&&(e=D7()),e(h,{readable:g,writable:v},function(O){if(O)return b(O);y=!0,b()});var x=!1;return function(O){if(!y&&!x){if(x=!0,a(h))return h.abort();if(typeof h.destroy=="function")return h.destroy();b(O||new o("pipe"))}}}function l(h){h()}function c(h,g){return h.pipe(g)}function u(h){return!h.length||typeof h[h.length-1]!="function"?i:h.pop()}function d(){for(var h=arguments.length,g=new Array(h),v=0;v<h;v++)g[v]=arguments[v];var b=u(g);if(Array.isArray(g[0])&&(g=g[0]),g.length<2)throw new n("streams");var y,x=g.map(function(O,k){var j=k<g.length-1,C=k>0;return s(O,j,C,function(A){y||(y=A),A&&x.forEach(l),!j&&(x.forEach(l),b(y))})});return g.reduce(c)}return Q7=d,Q7}var nW;function oW(){return nW||(nW=1,function(e,t){t=e.exports=JZ(),t.Stream=t,t.Readable=t,t.Writable=FZ(),t.Duplex=Ah(),t.Transform=eW(),t.PassThrough=IRe(),t.finished=D7(),t.pipeline=MRe()}(j7,j7.exports)),j7.exports}var iW;function aW(){if(iW)return Cy;iW=1;var e=PZ(),t=Mw(),r=oW(),n=Cy.readyStates={UNSENT:0,OPENED:1,HEADERS_RECEIVED:2,LOADING:3,DONE:4},o=Cy.IncomingMessage=function(i,a,s,l){var c=this;if(r.Readable.call(c),c._mode=s,c.headers={},c.rawHeaders=[],c.trailers={},c.rawTrailers=[],c.on("end",function(){process.nextTick(function(){c.emit("close")})}),s==="fetch"){let b=function(){d.read().then(function(y){if(!c._destroyed){if(l(y.done),y.done){c.push(null);return}c.push(Buffer.from(y.value)),b()}}).catch(function(y){l(!0),c._destroyed||c.emit("error",y)})};if(c._fetchResponse=a,c.url=a.url,c.statusCode=a.status,c.statusMessage=a.statusText,a.headers.forEach(function(y,x){c.headers[x.toLowerCase()]=y,c.rawHeaders.push(x,y)}),e.writableStream){var u=new WritableStream({write:function(y){return l(!1),new Promise(function(x,O){c._destroyed?O():c.push(Buffer.from(y))?x():c._resumeFetch=x})},close:function(){l(!0),c._destroyed||c.push(null)},abort:function(y){l(!0),c._destroyed||c.emit("error",y)}});try{a.body.pipeTo(u).catch(function(y){l(!0),c._destroyed||c.emit("error",y)});return}catch{}}var d=a.body.getReader();b()}else{c._xhr=i,c._pos=0,c.url=i.responseURL,c.statusCode=i.status,c.statusMessage=i.statusText;var h=i.getAllResponseHeaders().split(/\r?\n/);if(h.forEach(function(b){var y=b.match(/^([^:]+):\s*(.*)/);if(y){var x=y[1].toLowerCase();x==="set-cookie"?(c.headers[x]===void 0&&(c.headers[x]=[]),c.headers[x].push(y[2])):c.headers[x]!==void 0?c.headers[x]+=", "+y[2]:c.headers[x]=y[2],c.rawHeaders.push(y[1],y[2])}}),c._charset="x-user-defined",!e.overrideMimeType){var g=c.rawHeaders["mime-type"];if(g){var v=g.match(/;\s*charset=([^;])(;|$)/);v&&(c._charset=v[1].toLowerCase())}c._charset||(c._charset="utf-8")}}};return t(o,r.Readable),o.prototype._read=function(){var i=this,a=i._resumeFetch;a&&(i._resumeFetch=null,a())},o.prototype._onXHRProgress=function(i){var a=this,s=a._xhr,l=null;switch(a._mode){case"text":if(l=s.responseText,l.length>a._pos){var c=l.substr(a._pos);if(a._charset==="x-user-defined"){for(var u=Buffer.alloc(c.length),d=0;d<c.length;d++)u[d]=c.charCodeAt(d)&255;a.push(u)}else a.push(c,a._charset);a._pos=l.length}break;case"arraybuffer":if(s.readyState!==n.DONE||!s.response)break;l=s.response,a.push(Buffer.from(new Uint8Array(l)));break;case"moz-chunked-arraybuffer":if(l=s.response,s.readyState!==n.LOADING||!l)break;a.push(Buffer.from(new Uint8Array(l)));break;case"ms-stream":if(l=s.response,s.readyState!==n.LOADING)break;var h=new globalThis.MSStreamReader;h.onprogress=function(){h.result.byteLength>a._pos&&(a.push(Buffer.from(new Uint8Array(h.result.slice(a._pos)))),a._pos=h.result.byteLength)},h.onload=function(){i(!0),a.push(null)},h.readAsArrayBuffer(l);break}a._xhr.readyState===n.DONE&&a._mode!=="ms-stream"&&(i(!0),a.push(null))},Cy}var sW;function zRe(){if(sW)return S7.exports;sW=1;var e=PZ(),t=Mw(),r=aW(),n=oW(),o=r.IncomingMessage,i=r.readyStates;function a(u,d){return e.fetch&&d?"fetch":e.mozchunkedarraybuffer?"moz-chunked-arraybuffer":e.msstream?"ms-stream":e.arraybuffer&&u?"arraybuffer":"text"}var s=S7.exports=function(u){var d=this;n.Writable.call(d),d._opts=u,d._body=[],d._headers={},u.auth&&d.setHeader("Authorization","Basic "+Buffer.from(u.auth).toString("base64")),Object.keys(u.headers).forEach(function(v){d.setHeader(v,u.headers[v])});var h,g=!0;if(u.mode==="disable-fetch"||"requestTimeout"in u&&!e.abortController)g=!1,h=!0;else if(u.mode==="prefer-streaming")h=!1;else if(u.mode==="allow-wrong-content-type")h=!e.overrideMimeType;else if(!u.mode||u.mode==="default"||u.mode==="prefer-fast")h=!0;else throw new Error("Invalid value for opts.mode");d._mode=a(h,g),d._fetchTimer=null,d._socketTimeout=null,d._socketTimer=null,d.on("finish",function(){d._onFinish()})};t(s,n.Writable),s.prototype.setHeader=function(u,d){var h=this,g=u.toLowerCase();c.indexOf(g)===-1&&(h._headers[g]={name:u,value:d})},s.prototype.getHeader=function(u){var d=this._headers[u.toLowerCase()];return d?d.value:null},s.prototype.removeHeader=function(u){var d=this;delete d._headers[u.toLowerCase()]},s.prototype._onFinish=function(){var u=this;if(!u._destroyed){var d=u._opts;"timeout"in d&&d.timeout!==0&&u.setTimeout(d.timeout);var h=u._headers,g=null;d.method!=="GET"&&d.method!=="HEAD"&&(g=new Blob(u._body,{type:(h["content-type"]||{}).value||""}));var v=[];if(Object.keys(h).forEach(function(O){var k=h[O].name,j=h[O].value;Array.isArray(j)?j.forEach(function(C){v.push([k,C])}):v.push([k,j])}),u._mode==="fetch"){var b=null;if(e.abortController){var y=new AbortController;b=y.signal,u._fetchAbortController=y,"requestTimeout"in d&&d.requestTimeout!==0&&(u._fetchTimer=globalThis.setTimeout(function(){u.emit("requestTimeout"),u._fetchAbortController&&u._fetchAbortController.abort()},d.requestTimeout))}globalThis.fetch(u._opts.url,{method:u._opts.method,headers:v,body:g||void 0,mode:"cors",credentials:d.withCredentials?"include":"same-origin",signal:b}).then(function(O){u._fetchResponse=O,u._resetTimers(!1),u._connect()},function(O){u._resetTimers(!0),u._destroyed||u.emit("error",O)})}else{var x=u._xhr=new globalThis.XMLHttpRequest;try{x.open(u._opts.method,u._opts.url,!0)}catch(O){process.nextTick(function(){u.emit("error",O)});return}"responseType"in x&&(x.responseType=u._mode),"withCredentials"in x&&(x.withCredentials=!!d.withCredentials),u._mode==="text"&&"overrideMimeType"in x&&x.overrideMimeType("text/plain; charset=x-user-defined"),"requestTimeout"in d&&(x.timeout=d.requestTimeout,x.ontimeout=function(){u.emit("requestTimeout")}),v.forEach(function(O){x.setRequestHeader(O[0],O[1])}),u._response=null,x.onreadystatechange=function(){switch(x.readyState){case i.LOADING:case i.DONE:u._onXHRProgress();break}},u._mode==="moz-chunked-arraybuffer"&&(x.onprogress=function(){u._onXHRProgress()}),x.onerror=function(){u._destroyed||(u._resetTimers(!0),u.emit("error",new Error("XHR error")))};try{x.send(g)}catch(O){process.nextTick(function(){u.emit("error",O)});return}}}};function l(u){try{var d=u.status;return d!==null&&d!==0}catch{return!1}}s.prototype._onXHRProgress=function(){var u=this;u._resetTimers(!1),!(!l(u._xhr)||u._destroyed)&&(u._response||u._connect(),u._response._onXHRProgress(u._resetTimers.bind(u)))},s.prototype._connect=function(){var u=this;u._destroyed||(u._response=new o(u._xhr,u._fetchResponse,u._mode,u._resetTimers.bind(u)),u._response.on("error",function(d){u.emit("error",d)}),u.emit("response",u._response))},s.prototype._write=function(u,d,h){var g=this;g._body.push(u),h()},s.prototype._resetTimers=function(u){var d=this;globalThis.clearTimeout(d._socketTimer),d._socketTimer=null,u?(globalThis.clearTimeout(d._fetchTimer),d._fetchTimer=null):d._socketTimeout&&(d._socketTimer=globalThis.setTimeout(function(){d.emit("timeout")},d._socketTimeout))},s.prototype.abort=s.prototype.destroy=function(u){var d=this;d._destroyed=!0,d._resetTimers(!0),d._response&&(d._response._destroyed=!0),d._xhr?d._xhr.abort():d._fetchAbortController&&d._fetchAbortController.abort(),u&&d.emit("error",u)},s.prototype.end=function(u,d,h){var g=this;typeof u=="function"&&(h=u,u=void 0),n.Writable.prototype.end.call(g,u,d,h)},s.prototype.setTimeout=function(u,d){var h=this;d&&h.once("timeout",d),h._socketTimeout=u,h._resetTimers(!1)},s.prototype.flushHeaders=function(){},s.prototype.setNoDelay=function(){},s.prototype.setSocketKeepAlive=function(){};var c=["accept-charset","accept-encoding","access-control-request-headers","access-control-request-method","connection","content-length","cookie","cookie2","date","dnt","expect","host","keep-alive","origin","referer","te","trailer","transfer-encoding","upgrade","via"];return S7.exports}var q7,lW;function LRe(){if(lW)return q7;lW=1,q7=t;var e=Object.prototype.hasOwnProperty;function t(){for(var r={},n=0;n<arguments.length;n++){var o=arguments[n];for(var i in o)e.call(o,i)&&(r[i]=o[i])}return r}return q7}var cW,uW;function DRe(){return uW||(uW=1,cW={100:"Continue",101:"Switching Protocols",102:"Processing",200:"OK",201:"Created",202:"Accepted",203:"Non-Authoritative Information",204:"No Content",205:"Reset Content",206:"Partial Content",207:"Multi-Status",208:"Already Reported",226:"IM Used",300:"Multiple Choices",301:"Moved Permanently",302:"Found",303:"See Other",304:"Not Modified",305:"Use Proxy",307:"Temporary Redirect",308:"Permanent Redirect",400:"Bad Request",401:"Unauthorized",402:"Payment Required",403:"Forbidden",404:"Not Found",405:"Method Not Allowed",406:"Not Acceptable",407:"Proxy Authentication Required",408:"Request Timeout",409:"Conflict",410:"Gone",411:"Length Required",412:"Precondition Failed",413:"Payload Too Large",414:"URI Too Long",415:"Unsupported Media Type",416:"Range Not Satisfiable",417:"Expectation Failed",418:"I'm a teapot",421:"Misdirected Request",422:"Unprocessable Entity",423:"Locked",424:"Failed Dependency",425:"Unordered Collection",426:"Upgrade Required",428:"Precondition Required",429:"Too Many Requests",431:"Request Header Fields Too Large",451:"Unavailable For Legal Reasons",500:"Internal Server Error",501:"Not Implemented",502:"Bad Gateway",503:"Service Unavailable",504:"Gateway Timeout",505:"HTTP Version Not Supported",506:"Variant Also Negotiates",507:"Insufficient Storage",508:"Loop Detected",509:"Bandwidth Limit Exceeded",510:"Not Extended",511:"Network Authentication Required"}),cW}var dW;function NRe(){return dW||(dW=1,function(e){var t=zRe(),r=aW(),n=LRe(),o=DRe(),i=d7(),a=e;a.request=function(s,l){typeof s=="string"?s=i.parse(s):s=n(s);var c=globalThis.location.protocol.search(/^https?:$/)===-1?"http:":"",u=s.protocol||c,d=s.hostname||s.host,h=s.port,g=s.path||"/";d&&d.indexOf(":")!==-1&&(d="["+d+"]"),s.url=(d?u+"//"+d:"")+(h?":"+h:"")+g,s.method=(s.method||"GET").toUpperCase(),s.headers=s.headers||{};var v=new t(s);return l&&v.on("response",l),v},a.get=function(s,l){var c=a.request(s,l);return c.end(),c},a.ClientRequest=t,a.IncomingMessage=r.IncomingMessage,a.Agent=function(){},a.Agent.defaultMaxSockets=4,a.globalAgent=new a.Agent,a.STATUS_CODES=o,a.METHODS=["CHECKOUT","CONNECT","COPY","DELETE","GET","HEAD","LOCK","M-SEARCH","MERGE","MKACTIVITY","MKCOL","MOVE","NOTIFY","OPTIONS","PATCH","POST","PROPFIND","PROPPATCH","PURGE","PUT","REPORT","SEARCH","SUBSCRIBE","TRACE","UNLOCK","UNSUBSCRIBE"]}(jZ)),jZ}var pW,hW;function BRe(){return hW||(hW=1,pW={statusCodes:Object.assign({},{default:"Default response","1XX":"Informational",103:"Early hints","2XX":"Successful","3XX":"Redirection","4XX":"Client Error","5XX":"Server Error","7XX":"Developer Error"},NRe().STATUS_CODES)}),pW}const VRe="7.0.8",FRe={version:VRe};var Z7,fW;function QRe(){if(fW)return Z7;fW=1;const e=Sh,t=d7(),r=kRe(),n=Sh,o=Sh,i=wy(),a=i.jptr,s=m7().isRef,l=ky().clone,c=ky().circularClone,u=y7().recurse,d=jRe(),h=ARe(),g=kZ(),v=BRe().statusCodes,b=FRe.version,y="3.0.0";let x;class O extends Error{constructor(Z){super(Z),this.name="S2OError"}}function k(_,Z){let fe=new O(_);if(fe.options=Z,Z.promise)Z.promise.reject(fe);else throw fe}function j(_,Z,fe){fe.warnOnly?Z[fe.warnProperty||"x-s2o-warning"]=_:k(_,fe)}function C(_,Z,fe){if(_.nullable&&fe.patches++,_.discriminator&&typeof _.discriminator=="string"&&(_.discriminator={propertyName:_.discriminator}),_.items&&Array.isArray(_.items)&&(_.items.length===0?_.items={}:_.items.length===1?_.items=_.items[0]:_.items={anyOf:_.items}),_.type&&Array.isArray(_.type))if(fe.patch){if(fe.patches++,_.type.length===0)delete _.type;else{_.oneOf||(_.oneOf=[]);for(let F of _.type){let he={};if(F==="null")_.nullable=!0;else{he.type=F;for(let ue of g.arrayProperties)typeof _.prop<"u"&&(he[ue]=_[ue],delete _[ue])}he.type&&_.oneOf.push(he)}delete _.type,_.oneOf.length===0?delete _.oneOf:_.oneOf.length<2&&(_.type=_.oneOf[0].type,Object.keys(_.oneOf[0]).length>1&&j("Lost properties from oneOf",_,fe),delete _.oneOf)}_.type&&Array.isArray(_.type)&&_.type.length===1&&(_.type=_.type[0])}else k("(Patchable) schema type must not be an array",fe);_.type&&_.type==="null"&&(delete _.type,_.nullable=!0),_.type==="array"&&!_.items&&(_.items={}),_.type==="file"&&(_.type="string",_.format="binary"),typeof _.required=="boolean"&&(_.required&&_.name&&(typeof Z.required>"u"&&(Z.required=[]),Array.isArray(Z.required)&&Z.required.push(_.name)),delete _.required),_.xml&&typeof _.xml.namespace=="string"&&(_.xml.namespace||delete _.xml.namespace),typeof _.allowEmptyValue<"u"&&(fe.patches++,delete _.allowEmptyValue)}function A(_,Z){if(_["x-required"]&&Array.isArray(_["x-required"])&&(_.required||(_.required=[]),_.required=_.required.concat(_["x-required"]),delete _["x-required"]),_["x-anyOf"]&&(_.anyOf=_["x-anyOf"],delete _["x-anyOf"]),_["x-oneOf"]&&(_.oneOf=_["x-oneOf"],delete _["x-oneOf"]),_["x-not"]&&(_.not=_["x-not"],delete _["x-not"]),typeof _["x-nullable"]=="boolean"&&(_.nullable=_["x-nullable"],delete _["x-nullable"]),typeof _["x-discriminator"]=="object"&&typeof _["x-discriminator"].propertyName=="string"){_.discriminator=_["x-discriminator"],delete _["x-discriminator"];for(let fe in _.discriminator.mapping){let F=_.discriminator.mapping[fe];F.startsWith("#/definitions/")&&(_.discriminator.mapping[fe]=F.replace("#/definitions/","#/components/schemas/"))}}}function E(_,Z){h.walkSchema(_,{},{},function(fe,F,he){A(fe),C(fe,F,Z)})}function P(_){return _.indexOf("#")>=0?_=_.split("#")[1].split("/").pop():_=_.split("/").pop().split(".")[0],encodeURIComponent(g.sanitise(_))}function T(_,Z,fe){let F=fe.payload.options;if(s(_,Z)){if(!_[Z].startsWith("#/components/")){if(_[Z]==="#/consumes")delete _[Z],fe.parent[fe.pkey]=l(F.openapi.consumes);else if(_[Z]==="#/produces")delete _[Z],fe.parent[fe.pkey]=l(F.openapi.produces);else if(_[Z].startsWith("#/definitions/")){let he=_[Z].replace("#/definitions/","").split("/");const ue=i.jpunescape(he[0]);let K=x.schemas[decodeURIComponent(ue)];K?he[0]=K:j("Could not resolve reference "+_[Z],_,F),_[Z]="#/components/schemas/"+he.join("/")}else if(_[Z].startsWith("#/parameters/"))_[Z]="#/components/parameters/"+g.sanitise(_[Z].replace("#/parameters/",""));else if(_[Z].startsWith("#/responses/"))_[Z]="#/components/responses/"+g.sanitise(_[Z].replace("#/responses/",""));else if(_[Z].startsWith("#")){let he=l(i.jptr(F.openapi,_[Z]));if(he===!1)j("direct $ref not found "+_[Z],_,F);else if(F.refmap[_[Z]])_[Z]=F.refmap[_[Z]];else{let ue=_[Z];ue=ue.replace("/properties/headers/",""),ue=ue.replace("/properties/responses/",""),ue=ue.replace("/properties/parameters/",""),ue=ue.replace("/properties/schemas/","");let K="schemas",ae=ue.lastIndexOf("/schema");if(K=ue.indexOf("/headers/")>ae?"headers":ue.indexOf("/responses/")>ae?"responses":ue.indexOf("/example")>ae?"examples":ue.indexOf("/x-")>ae?"extensions":ue.indexOf("/parameters/")>ae?"parameters":"schemas",K==="schemas"&&E(he,F),K!=="responses"&&K!=="extensions"){let le=K.substr(0,K.length-1);le==="parameter"&&he.name&&he.name===g.sanitise(he.name)&&(le=encodeURIComponent(he.name));let Ce=1;for(_["x-miro"]&&(le=P(_["x-miro"]),Ce="");i.jptr(F.openapi,"#/components/"+K+"/"+le+Ce);)Ce=Ce===""?2:++Ce;let Se="#/components/"+K+"/"+le+Ce,me="";K==="examples"&&(he={value:he},me="/value"),i.jptr(F.openapi,Se,he),F.refmap[_[Z]]=Se+me,_[Z]=Se+me}}}}if(delete _["x-miro"],Object.keys(_).length>1){const he=_[Z],ue=fe.path.indexOf("/schema")>=0;F.refSiblings==="preserve"||(ue&&F.refSiblings==="allOf"?(delete _.$ref,fe.parent[fe.pkey]={allOf:[{$ref:he},_]}):fe.parent[fe.pkey]={$ref:he})}}if(Z==="x-ms-odata"&&typeof _[Z]=="string"&&_[Z].startsWith("#/")){let he=_[Z].replace("#/definitions/","").replace("#/components/schemas/","").split("/"),ue=x.schemas[decodeURIComponent(he[0])];ue?he[0]=ue:j("Could not resolve reference "+_[Z],_,F),_[Z]="#/components/schemas/"+he.join("/")}}function I(_,Z){for(let fe in Z.refmap)i.jptr(_,fe,{$ref:Z.refmap[fe]})}function L(_){for(let Z in _)for(let fe in _[Z]){let F=g.sanitise(fe);fe!==F&&(_[Z][F]=_[Z][fe],delete _[Z][fe])}}function M(_,Z){if(_.type==="basic"&&(_.type="http",_.scheme="basic"),_.type==="oauth2"){let fe={},F=_.flow;_.flow==="application"&&(F="clientCredentials"),_.flow==="accessCode"&&(F="authorizationCode"),typeof _.authorizationUrl<"u"&&(fe.authorizationUrl=_.authorizationUrl.split("?")[0].trim()||"/"),typeof _.tokenUrl=="string"&&(fe.tokenUrl=_.tokenUrl.split("?")[0].trim()||"/"),fe.scopes=_.scopes||{},_.flows={},_.flows[F]=fe,delete _.flow,delete _.authorizationUrl,delete _.tokenUrl,delete _.scopes,typeof _.name<"u"&&(Z.patch?(Z.patches++,delete _.name):k("(Patchable) oauth2 securitySchemes should not have name property",Z))}}function N(_){return _&&!_["x-s2o-delete"]}function z(_,Z){if(_.$ref)_.$ref=_.$ref.replace("#/responses/","#/components/responses/");else{_.type&&!_.schema&&(_.schema={}),_.type&&(_.schema.type=_.type),_.items&&_.items.type!=="array"&&(_.items.collectionFormat!==_.collectionFormat&&j("Nested collectionFormats are not supported",_,Z),delete _.items.collectionFormat),_.type==="array"?(_.collectionFormat==="ssv"?j("collectionFormat:ssv is no longer supported for headers",_,Z):_.collectionFormat==="pipes"?j("collectionFormat:pipes is no longer supported for headers",_,Z):_.collectionFormat==="multi"?_.explode=!0:_.collectionFormat==="tsv"?(j("collectionFormat:tsv is no longer supported",_,Z),_["x-collectionFormat"]="tsv"):_.style="simple",delete _.collectionFormat):_.collectionFormat&&(Z.patch?(Z.patches++,delete _.collectionFormat):k("(Patchable) collectionFormat is only applicable to header.type array",Z)),delete _.type;for(let fe of g.parameterTypeProperties)typeof _[fe]<"u"&&(_.schema[fe]=_[fe],delete _[fe]);for(let fe of g.arrayProperties)typeof _[fe]<"u"&&(_.schema[fe]=_[fe],delete _[fe])}}function U(_,Z){if(_.$ref.indexOf("#/parameters/")>=0){let fe=_.$ref.split("#/parameters/");_.$ref=fe[0]+"#/components/parameters/"+g.sanitise(fe[1])}_.$ref.indexOf("#/definitions/")>=0&&j("Definition used as parameter",_,Z)}function X(_,Z){let fe={};for(let F of Object.keys(_))fe[F]=_[F],F==="parameters"&&(fe.requestBody={},Z.rbname&&(fe[Z.rbname]=""));return fe.requestBody={},fe}function te(_,Z,fe,F,he,ue,K){let ae={},le=!0,Ce;if(Z&&Z.consumes&&typeof Z.consumes=="string")if(K.patch)K.patches++,Z.consumes=[Z.consumes];else return k("(Patchable) operation.consumes must be an array",K);Array.isArray(ue.consumes)||delete ue.consumes;let Se=((Z?Z.consumes:null)||ue.consumes||[]).filter(g.uniqueOnly);if(_&&_.$ref&&typeof _.$ref=="string"){U(_,K);let me=decodeURIComponent(_.$ref.replace("#/components/parameters/","")),ye=!1,xe=ue.components.parameters[me];if((!xe||xe["x-s2o-delete"])&&_.$ref.startsWith("#/")&&(_["x-s2o-delete"]=!0,ye=!0),ye){let Ee=_.$ref,Ue=a(ue,_.$ref);!Ue&&Ee.startsWith("#/")?j("Could not resolve reference "+Ee,_,K):Ue&&(_=Ue)}}if(_&&(_.name||_.in)){typeof _["x-deprecated"]=="boolean"&&(_.deprecated=_["x-deprecated"],delete _["x-deprecated"]),typeof _["x-example"]<"u"&&(_.example=_["x-example"],delete _["x-example"]),_.in!=="body"&&!_.type&&(K.patch?(K.patches++,_.type="string"):k("(Patchable) parameter.type is mandatory for non-body parameters",K)),_.type&&typeof _.type=="object"&&_.type.$ref&&(_.type=a(ue,_.type.$ref)),_.type==="file"&&(_["x-s2o-originalType"]=_.type,Ce=_.type),_.description&&typeof _.description=="object"&&_.description.$ref&&(_.description=a(ue,_.description.$ref)),_.description===null&&delete _.description;let me=_.collectionFormat;if(_.type==="array"&&!me&&(me="csv"),me&&(_.type!=="array"&&(K.patch?(K.patches++,delete _.collectionFormat):k("(Patchable) collectionFormat is only applicable to param.type array",K)),me==="csv"&&(_.in==="query"||_.in==="cookie")&&(_.style="form",_.explode=!1),me==="csv"&&(_.in==="path"||_.in==="header")&&(_.style="simple"),me==="ssv"&&(_.in==="query"?_.style="spaceDelimited":j("collectionFormat:ssv is no longer supported except for in:query parameters",_,K)),me==="pipes"&&(_.in==="query"?_.style="pipeDelimited":j("collectionFormat:pipes is no longer supported except for in:query parameters",_,K)),me==="multi"&&(_.explode=!0),me==="tsv"&&(j("collectionFormat:tsv is no longer supported",_,K),_["x-collectionFormat"]="tsv"),delete _.collectionFormat),_.type&&_.type!=="body"&&_.in!=="formData")if(_.items&&_.schema)j("parameter has array,items and schema",_,K);else{_.schema&&K.patches++,(!_.schema||typeof _.schema!="object")&&(_.schema={}),_.schema.type=_.type,_.items&&(_.schema.items=_.items,delete _.items,u(_.schema.items,null,function(ye,xe,Ee){xe==="collectionFormat"&&typeof ye[xe]=="string"&&(me&&ye[xe]!==me&&j("Nested collectionFormats are not supported",_,K),delete ye[xe])}));for(let ye of g.parameterTypeProperties)typeof _[ye]<"u"&&(_.schema[ye]=_[ye]),delete _[ye]}_.schema&&E(_.schema,K),_["x-ms-skip-url-encoding"]&&_.in==="query"&&(_.allowReserved=!0,delete _["x-ms-skip-url-encoding"])}if(_&&_.in==="formData"){le=!1,ae.content={};let me="application/x-www-form-urlencoded";if(Se.length&&Se.indexOf("multipart/form-data")>=0&&(me="multipart/form-data"),ae.content[me]={},_.schema)ae.content[me].schema=_.schema,_.schema.$ref&&(ae["x-s2o-name"]=decodeURIComponent(_.schema.$ref.replace("#/components/schemas/","")));else{ae.content[me].schema={},ae.content[me].schema.type="object",ae.content[me].schema.properties={},ae.content[me].schema.properties[_.name]={};let ye=ae.content[me].schema,xe=ae.content[me].schema.properties[_.name];_.description&&(xe.description=_.description),_.example&&(xe.example=_.example),_.type&&(xe.type=_.type);for(let Ee of g.parameterTypeProperties)typeof _[Ee]<"u"&&(xe[Ee]=_[Ee]);_.required===!0&&(ye.required||(ye.required=[]),ye.required.push(_.name),ae.required=!0),typeof _.default<"u"&&(xe.default=_.default),xe.properties&&(xe.properties=_.properties),_.allOf&&(xe.allOf=_.allOf),_.type==="array"&&_.items&&(xe.items=_.items,xe.items.collectionFormat&&delete xe.items.collectionFormat),(Ce==="file"||_["x-s2o-originalType"]==="file")&&(xe.type="string",xe.format="binary"),ee(_,xe)}}else _&&_.type==="file"&&(_.required&&(ae.required=_.required),ae.content={},ae.content["application/octet-stream"]={},ae.content["application/octet-stream"].schema={},ae.content["application/octet-stream"].schema.type="string",ae.content["application/octet-stream"].schema.format="binary",ee(_,ae));if(_&&_.in==="body"){ae.content={},_.name&&(ae["x-s2o-name"]=(Z&&Z.operationId?g.sanitiseAll(Z.operationId):"")+("_"+_.name).toCamelCase()),_.description&&(ae.description=_.description),_.required&&(ae.required=_.required),Z&&K.rbname&&_.name&&(Z[K.rbname]=_.name),_.schema&&_.schema.$ref?ae["x-s2o-name"]=decodeURIComponent(_.schema.$ref.replace("#/components/schemas/","")):_.schema&&_.schema.type==="array"&&_.schema.items&&_.schema.items.$ref&&(ae["x-s2o-name"]=decodeURIComponent(_.schema.items.$ref.replace("#/components/schemas/",""))+"Array"),Se.length||Se.push("application/json");for(let me of Se)ae.content[me]={},ae.content[me].schema=l(_.schema||{}),E(ae.content[me].schema,K);ee(_,ae)}if(Object.keys(ae).length>0&&(_["x-s2o-delete"]=!0,Z))if(Z.requestBody&&le){Z.requestBody["x-s2o-overloaded"]=!0;let me=Z.operationId||he;j("Operation "+me+" has multiple requestBodies",Z,K)}else Z.requestBody||(Z=fe[F]=X(Z,K)),Z.requestBody.content&&Z.requestBody.content["multipart/form-data"]&&Z.requestBody.content["multipart/form-data"].schema&&Z.requestBody.content["multipart/form-data"].schema.properties&&ae.content["multipart/form-data"]&&ae.content["multipart/form-data"].schema&&ae.content["multipart/form-data"].schema.properties?(Z.requestBody.content["multipart/form-data"].schema.properties=Object.assign(Z.requestBody.content["multipart/form-data"].schema.properties,ae.content["multipart/form-data"].schema.properties),Z.requestBody.content["multipart/form-data"].schema.required=(Z.requestBody.content["multipart/form-data"].schema.required||[]).concat(ae.content["multipart/form-data"].schema.required||[]),Z.requestBody.content["multipart/form-data"].schema.required.length||delete Z.requestBody.content["multipart/form-data"].schema.required):Z.requestBody.content&&Z.requestBody.content["application/x-www-form-urlencoded"]&&Z.requestBody.content["application/x-www-form-urlencoded"].schema&&Z.requestBody.content["application/x-www-form-urlencoded"].schema.properties&&ae.content["application/x-www-form-urlencoded"]&&ae.content["application/x-www-form-urlencoded"].schema&&ae.content["application/x-www-form-urlencoded"].schema.properties?(Z.requestBody.content["application/x-www-form-urlencoded"].schema.properties=Object.assign(Z.requestBody.content["application/x-www-form-urlencoded"].schema.properties,ae.content["application/x-www-form-urlencoded"].schema.properties),Z.requestBody.content["application/x-www-form-urlencoded"].schema.required=(Z.requestBody.content["application/x-www-form-urlencoded"].schema.required||[]).concat(ae.content["application/x-www-form-urlencoded"].schema.required||[]),Z.requestBody.content["application/x-www-form-urlencoded"].schema.required.length||delete Z.requestBody.content["application/x-www-form-urlencoded"].schema.required):(Z.requestBody=Object.assign(Z.requestBody,ae),Z.requestBody["x-s2o-name"]||(Z.requestBody.schema&&Z.requestBody.schema.$ref?Z.requestBody["x-s2o-name"]=decodeURIComponent(Z.requestBody.schema.$ref.replace("#/components/schemas/","")).split("/").join(""):Z.operationId&&(Z.requestBody["x-s2o-name"]=g.sanitiseAll(Z.operationId))));if(_&&!_["x-s2o-delete"]){delete _.type;for(let me of g.parameterTypeProperties)delete _[me];_.in==="path"&&(typeof _.required>"u"||_.required!==!0)&&(K.patch?(K.patches++,_.required=!0):k("(Patchable) path parameters must be required:true ["+_.name+" in "+he+"]",K))}return Z}function ee(_,Z){for(let fe in _)fe.startsWith("x-")&&!fe.startsWith("x-s2o")&&(Z[fe]=_[fe])}function se(_,Z,fe,F,he){if(!_)return!1;if(_.$ref&&typeof _.$ref=="string")_.$ref.indexOf("#/definitions/")>=0?j("definition used as response: "+_.$ref,_,he):_.$ref.startsWith("#/responses/")&&(_.$ref="#/components/responses/"+g.sanitise(decodeURIComponent(_.$ref.replace("#/responses/",""))));else{if((typeof _.description>"u"||_.description===null||_.description===""&&he.patch)&&(he.patch?typeof _=="object"&&!Array.isArray(_)&&(he.patches++,_.description=v[_]||""):k("(Patchable) response.description is mandatory",he)),typeof _.schema<"u"){if(E(_.schema,he),_.schema.$ref&&typeof _.schema.$ref=="string"&&_.schema.$ref.startsWith("#/responses/")&&(_.schema.$ref="#/components/responses/"+g.sanitise(decodeURIComponent(_.schema.$ref.replace("#/responses/","")))),fe&&fe.produces&&typeof fe.produces=="string")if(he.patch)he.patches++,fe.produces=[fe.produces];else return k("(Patchable) operation.produces must be an array",he);F.produces&&!Array.isArray(F.produces)&&delete F.produces;let ue=((fe?fe.produces:null)||F.produces||[]).filter(g.uniqueOnly);ue.length||ue.push("*/*"),_.content={};for(let K of ue){if(_.content[K]={},_.content[K].schema=l(_.schema),_.examples&&_.examples[K]){let ae={};ae.value=_.examples[K],_.content[K].examples={},_.content[K].examples.response=ae,delete _.examples[K]}_.content[K].schema.type==="file"&&(_.content[K].schema={type:"string",format:"binary"})}delete _.schema}for(let ue in _.examples)_.content||(_.content={}),_.content[ue]||(_.content[ue]={}),_.content[ue].examples={},_.content[ue].examples.response={},_.content[ue].examples.response.value=_.examples[ue];if(delete _.examples,_.headers)for(let ue in _.headers)ue.toLowerCase()==="status code"?he.patch?(he.patches++,delete _.headers[ue]):k('(Patchable) "Status Code" is not a valid header',he):z(_.headers[ue],he)}}function W(_,Z,fe,F,he){for(let ue in _){let K=_[ue];K&&K["x-trace"]&&typeof K["x-trace"]=="object"&&(K.trace=K["x-trace"],delete K["x-trace"]),K&&K["x-summary"]&&typeof K["x-summary"]=="string"&&(K.summary=K["x-summary"],delete K["x-summary"]),K&&K["x-description"]&&typeof K["x-description"]=="string"&&(K.description=K["x-description"],delete K["x-description"]),K&&K["x-servers"]&&Array.isArray(K["x-servers"])&&(K.servers=K["x-servers"],delete K["x-servers"]);for(let ae in K)if(g.httpMethods.indexOf(ae)>=0||ae==="x-amazon-apigateway-any-method"){let le=K[ae];if(le&&le.parameters&&Array.isArray(le.parameters)){if(K.parameters)for(let Ce of K.parameters)typeof Ce.$ref=="string"&&(U(Ce,fe),Ce=a(he,Ce.$ref)),!le.parameters.find(function(Se,me,ye){return Se.name===Ce.name&&Se.in===Ce.in})&&(Ce.in==="formData"||Ce.in==="body"||Ce.type==="file")&&(le=te(Ce,le,K,ae,ue,he,fe),fe.rbname&&le[fe.rbname]===""&&delete le[fe.rbname]);for(let Ce of le.parameters)le=te(Ce,le,K,ae,ae+":"+ue,he,fe);fe.rbname&&le[fe.rbname]===""&&delete le[fe.rbname],fe.debug||le.parameters&&(le.parameters=le.parameters.filter(N))}if(le&&le.security&&L(le.security),typeof le=="object"){if(!le.responses){let Ce={};Ce.description="Default response",le.responses={default:Ce}}for(let Ce in le.responses){let Se=le.responses[Ce];se(Se,Ce,le,he,fe)}}if(le&&le["x-servers"]&&Array.isArray(le["x-servers"]))le.servers=le["x-servers"],delete le["x-servers"];else if(le&&le.schemes&&le.schemes.length){for(let Ce of le.schemes)if((!he.schemes||he.schemes.indexOf(Ce)<0)&&(le.servers||(le.servers=[]),Array.isArray(he.servers)))for(let Se of he.servers){let me=l(Se),ye=t.parse(me.url);ye.protocol=Ce,me.url=ye.format(),le.servers.push(me)}}if(fe.debug&&(le["x-s2o-consumes"]=le.consumes||[],le["x-s2o-produces"]=le.produces||[]),le){if(delete le.consumes,delete le.produces,delete le.schemes,le["x-ms-examples"]){for(let Ce in le["x-ms-examples"]){let Se=le["x-ms-examples"][Ce],me=g.sanitiseAll(Ce);if(Se.parameters)for(let ye in Se.parameters){let xe=Se.parameters[ye];for(let Ee of(le.parameters||[]).concat(K.parameters||[]))Ee.$ref&&(Ee=i.jptr(he,Ee.$ref)),Ee.name===ye&&!Ee.example&&(Ee.examples||(Ee.examples={}),Ee.examples[Ce]={value:xe})}if(Se.responses)for(let ye in Se.responses){if(Se.responses[ye].headers)for(let xe in Se.responses[ye].headers){let Ee=Se.responses[ye].headers[xe];for(let Ue in le.responses[ye].headers)if(Ue===xe){let B=le.responses[ye].headers[Ue];B.example=Ee}}if(Se.responses[ye].body&&(he.components.examples[me]={value:l(Se.responses[ye].body)},le.responses[ye]&&le.responses[ye].content))for(let xe in le.responses[ye].content){let Ee=le.responses[ye].content[xe];Ee.examples||(Ee.examples={}),Ee.examples[Ce]={$ref:"#/components/examples/"+me}}}}delete le["x-ms-examples"]}if(le.parameters&&le.parameters.length===0&&delete le.parameters,le.requestBody){let Ce=le.operationId?g.sanitiseAll(le.operationId):g.sanitiseAll(ae+ue).toCamelCase(),Se=g.sanitise(le.requestBody["x-s2o-name"]||Ce||"");delete le.requestBody["x-s2o-name"];let me=JSON.stringify(le.requestBody),ye=g.hash(me);if(!F[ye]){let Ee={};Ee.name=Se,Ee.body=le.requestBody,Ee.refs=[],F[ye]=Ee}let xe="#/"+Z+"/"+encodeURIComponent(i.jpescape(ue))+"/"+ae+"/requestBody";F[ye].refs.push(xe)}}}if(K&&K.parameters){for(let ae in K.parameters){let le=K.parameters[ae];te(le,null,K,null,ue,he,fe)}!fe.debug&&Array.isArray(K.parameters)&&(K.parameters=K.parameters.filter(N))}}}function Q(_,Z){let fe={};x={schemas:{}},_.security&&L(_.security);for(let he in _.components.securitySchemes){let ue=g.sanitise(he);he!==ue&&(_.components.securitySchemes[ue]&&k("Duplicate sanitised securityScheme name "+ue,Z),_.components.securitySchemes[ue]=_.components.securitySchemes[he],delete _.components.securitySchemes[he]),M(_.components.securitySchemes[ue],Z)}for(let he in _.components.schemas){let ue=g.sanitiseAll(he),K="";if(he!==ue){for(;_.components.schemas[ue+K];)K=K?++K:2;_.components.schemas[ue+K]=_.components.schemas[he],delete _.components.schemas[he]}x.schemas[he]=ue+K,E(_.components.schemas[ue+K],Z)}Z.refmap={},u(_,{payload:{options:Z}},T),I(_,Z);for(let he in _.components.parameters){let ue=g.sanitise(he);he!==ue&&(_.components.parameters[ue]&&k("Duplicate sanitised parameter name "+ue,Z),_.components.parameters[ue]=_.components.parameters[he],delete _.components.parameters[he]);let K=_.components.parameters[ue];te(K,null,null,null,ue,_,Z)}for(let he in _.components.responses){let ue=g.sanitise(he);he!==ue&&(_.components.responses[ue]&&k("Duplicate sanitised response name "+ue,Z),_.components.responses[ue]=_.components.responses[he],delete _.components.responses[he]);let K=_.components.responses[ue];if(se(K,ue,null,_,Z),K.headers)for(let ae in K.headers)ae.toLowerCase()==="status code"?Z.patch?(Z.patches++,delete K.headers[ae]):k('(Patchable) "Status Code" is not a valid header',Z):z(K.headers[ae],Z)}for(let he in _.components.requestBodies){let ue=_.components.requestBodies[he],K=JSON.stringify(ue),ae=g.hash(K),le={};le.name=he,le.body=ue,le.refs=[],fe[ae]=le}if(W(_.paths,"paths",Z,fe,_),_["x-ms-paths"]&&W(_["x-ms-paths"],"x-ms-paths",Z,fe,_),!Z.debug)for(let he in _.components.parameters)_.components.parameters[he]["x-s2o-delete"]&&delete _.components.parameters[he];Z.debug&&(_["x-s2o-consumes"]=_.consumes||[],_["x-s2o-produces"]=_.produces||[]),delete _.consumes,delete _.produces,delete _.schemes;let F=[];if(_.components.requestBodies={},!Z.resolveInternal){let he=1;for(let ue in fe){let K=fe[ue];if(K.refs.length>1){let ae="";for(K.name||(K.name="requestBody",ae=he++);F.indexOf(K.name+ae)>=0;)ae=ae?++ae:2;K.name=K.name+ae,F.push(K.name),_.components.requestBodies[K.name]=l(K.body);for(let le in K.refs){let Ce={};Ce.$ref="#/components/requestBodies/"+K.name,i.jptr(_,K.refs[le],Ce)}}}}return _.components.responses&&Object.keys(_.components.responses).length===0&&delete _.components.responses,_.components.parameters&&Object.keys(_.components.parameters).length===0&&delete _.components.parameters,_.components.examples&&Object.keys(_.components.examples).length===0&&delete _.components.examples,_.components.requestBodies&&Object.keys(_.components.requestBodies).length===0&&delete _.components.requestBodies,_.components.securitySchemes&&Object.keys(_.components.securitySchemes).length===0&&delete _.components.securitySchemes,_.components.headers&&Object.keys(_.components.headers).length===0&&delete _.components.headers,_.components.schemas&&Object.keys(_.components.schemas).length===0&&delete _.components.schemas,_.components&&Object.keys(_.components).length===0&&delete _.components,_}function Y(_){return!_||!_.url||typeof _.url!="string"||(_.url=_.url.split("{{").join("{"),_.url=_.url.split("}}").join("}"),_.url.replace(/\{(.+?)\}/g,function(Z,fe){_.variables||(_.variables={}),_.variables[fe]={default:"unknown"}})),_}function q(_,Z,fe){if(typeof _.info>"u"||_.info===null)if(Z.patch)Z.patches++,_.info={version:"",title:""};else return fe(new O("(Patchable) info object is mandatory"));if(typeof _.info!="object"||Array.isArray(_.info))return fe(new O("info must be an object"));if(typeof _.info.title>"u"||_.info.title===null)if(Z.patch)Z.patches++,_.info.title="";else return fe(new O("(Patchable) info.title cannot be null"));if(typeof _.info.version>"u"||_.info.version===null)if(Z.patch)Z.patches++,_.info.version="";else return fe(new O("(Patchable) info.version cannot be null"));if(typeof _.info.version!="string")if(Z.patch)Z.patches++,_.info.version=_.info.version.toString();else return fe(new O("(Patchable) info.version must be a string"));if(typeof _.info.logo<"u")if(Z.patch)Z.patches++,_.info["x-logo"]=_.info.logo,delete _.info.logo;else return fe(new O("(Patchable) info should not have logo property"));if(typeof _.info.termsOfService<"u"){if(_.info.termsOfService===null)if(Z.patch)Z.patches++,_.info.termsOfService="";else return fe(new O("(Patchable) info.termsOfService cannot be null"));try{new URL(_.info.termsOfService)}catch{if(Z.patch)Z.patches++,delete _.info.termsOfService;else return fe(new O("(Patchable) info.termsOfService must be a URL"))}}}function H(_,Z,fe){if(typeof _.paths>"u")if(Z.patch)Z.patches++,_.paths={};else return fe(new O("(Patchable) paths object is mandatory"))}function re(_,Z){const fe=new WeakSet;u(_,{identityDetection:!0},function(F,he,ue){typeof F[he]=="object"&&F[he]!==null&&(fe.has(F[he])?Z.anchors?F[he]=l(F[he]):k("YAML anchor or merge key at "+ue.path,Z):fe.add(F[he]))})}function G(_,Z,fe){return r(fe,new Promise(function(F,he){if(_||(_={}),Z.original=_,Z.text||(Z.text=o.stringify(_)),Z.externals=[],Z.externalRefs={},Z.rewriteRefs=!0,Z.preserveMiro=!0,Z.promise={},Z.promise.resolve=F,Z.promise.reject=he,Z.patches=0,Z.cache||(Z.cache={}),Z.source&&(Z.cache[Z.source]=Z.original),re(_,Z),_.openapi&&typeof _.openapi=="string"&&_.openapi.startsWith("3.")){Z.openapi=c(_),q(Z.openapi,Z,he),H(Z.openapi,Z,he),d.optionalResolve(Z).then(function(){return Z.direct?F(Z.openapi):F(Z)}).catch(function(K){console.warn(K),he(K)});return}if(!_.swagger||_.swagger!="2.0")return he(new O("Unsupported swagger/OpenAPI version: "+(_.openapi?_.openapi:_.swagger)));let ue=Z.openapi={};if(ue.openapi=typeof Z.targetVersion=="string"&&Z.targetVersion.startsWith("3.")?Z.targetVersion:y,Z.origin){ue["x-origin"]||(ue["x-origin"]=[]);let K={};K.url=Z.source||Z.origin,K.format="swagger",K.version=_.swagger,K.converter={},K.converter.url="https://github.com/mermade/oas-kit",K.converter.version=b,ue["x-origin"].push(K)}if(ue=Object.assign(ue,c(_)),delete ue.swagger,u(ue,{},function(K,ae,le){K[ae]===null&&!ae.startsWith("x-")&&ae!=="default"&&le.path.indexOf("/example")<0&&delete K[ae]}),_.host)for(let K of Array.isArray(_.schemes)?_.schemes:[""]){let ae={},le=(_.basePath||"").replace(/\/$/,"");ae.url=(K?K+":":"")+"//"+_.host+le,Y(ae),ue.servers||(ue.servers=[]),ue.servers.push(ae)}else if(_.basePath){let K={};K.url=_.basePath,Y(K),ue.servers||(ue.servers=[]),ue.servers.push(K)}if(delete ue.host,delete ue.basePath,ue["x-servers"]&&Array.isArray(ue["x-servers"])&&(ue.servers=ue["x-servers"],delete ue["x-servers"]),_["x-ms-parameterized-host"]){let K=_["x-ms-parameterized-host"],ae={};ae.url=K.hostTemplate+(_.basePath?_.basePath:""),ae.variables={};const le=ae.url.match(/\{\w+\}/g);for(let Ce in K.parameters){let Se=K.parameters[Ce];Se.$ref&&(Se=l(a(ue,Se.$ref))),Ce.startsWith("x-")||(delete Se.required,delete Se.type,delete Se.in,typeof Se.default>"u"&&(Se.enum?Se.default=Se.enum[0]:Se.default="none"),Se.name||(Se.name=le[Ce].replace("{","").replace("}","")),ae.variables[Se.name]=Se,delete Se.name)}ue.servers||(ue.servers=[]),K.useSchemePrefix===!1?ue.servers.push(ae):_.schemes.forEach(Ce=>{ue.servers.push(Object.assign({},ae,{url:Ce+"://"+ae.url}))}),delete ue["x-ms-parameterized-host"]}q(ue,Z,he),H(ue,Z,he),typeof ue.consumes=="string"&&(ue.consumes=[ue.consumes]),typeof ue.produces=="string"&&(ue.produces=[ue.produces]),ue.components={},ue["x-callbacks"]&&(ue.components.callbacks=ue["x-callbacks"],delete ue["x-callbacks"]),ue.components.examples={},ue.components.headers={},ue["x-links"]&&(ue.components.links=ue["x-links"],delete ue["x-links"]),ue.components.parameters=ue.parameters||{},ue.components.responses=ue.responses||{},ue.components.requestBodies={},ue.components.securitySchemes=ue.securityDefinitions||{},ue.components.schemas=ue.definitions||{},delete ue.definitions,delete ue.responses,delete ue.parameters,delete ue.securityDefinitions,d.optionalResolve(Z).then(function(){Q(Z.openapi,Z),Z.direct?F(Z.openapi):F(Z)}).catch(function(K){console.warn(K),he(K)})}))}function oe(_,Z,fe){return r(fe,new Promise(function(F,he){let ue=null,K=null;try{ue=JSON.parse(_),Z.text=JSON.stringify(ue,null,2)}catch(ae){K=ae;try{ue=o.parse(_,{schema:"core",prettyErrors:!0}),Z.sourceYaml=!0,Z.text=_}catch(le){K=le}}ue?G(ue,Z).then(ae=>F(ae)).catch(ae=>he(ae)):he(new O(K?K.message:"Could not parse string"))}))}function ne(_,Z,fe){return r(fe,new Promise(function(F,he){Z.origin=!0,Z.source||(Z.source=_),Z.verbose&&console.warn("GET "+_),Z.fetch||(Z.fetch=n);const ue=Object.assign({},Z.fetchOptions,{agent:Z.agent});Z.fetch(_,ue).then(function(K){if(K.status!==200)throw new O(`Received status code ${K.status}: ${_}`);return K.text()}).then(function(K){oe(K,Z).then(ae=>F(ae)).catch(ae=>he(ae))}).catch(function(K){he(K)})}))}function be(_,Z,fe){return r(fe,new Promise(function(F,he){e.readFile(_,Z.encoding||"utf8",function(ue,K){ue?he(ue):(Z.sourceFile=_,oe(K,Z).then(ae=>F(ae)).catch(ae=>he(ae)))})}))}function ve(_,Z,fe){return r(fe,new Promise(function(F,he){let ue="";_.on("data",function(K){ue+=K}).on("end",function(){oe(ue,Z).then(K=>F(K)).catch(K=>he(K))})}))}return Z7={S2OError:O,targetVersion:y,convert:G,convertObj:G,convertUrl:ne,convertStr:oe,convertFile:be,convertStream:ve},Z7}var qRe=QRe();const ZRe=qn(qRe);function WRe(e){return e.paths||(e.paths={}),new Promise((t,r)=>ZRe.convertObj(e,{patch:!0,warnOnly:!0,text:"{}",anchors:!0},(n,o)=>{if(n)return r(n);t(o?.openapi)}))}async function URe(e){const t=new bE({}),r={config:t,base:Ya?window.location.href:typeof globalThis.process<"u"?globalThis.process.cwd():""};Ya&&(t.resolve.http.customFetch=globalThis.fetch),typeof e=="object"&&e!==null?r.doc=HRe(e):r.ref=e;const{bundle:{parsed:n}}=await cRe(r);return n.swagger!==void 0?WRe(n):n}function HRe(e){return{source:{absoluteRef:""},parsed:e}}async function XRe(e,t,r){let n;if(r?.skipBundle){if(!e)throw new Error('spec must be specified when using "skipBundleAndConvert"');n=e}else n=await URe(e||t);try{jwe(n)}catch{}return n}const YRe=({options:e,definitionUrl:t,definition:r,activeSampleLanguage:n,children:o})=>{const[,i]=$.useState(),[a,s]=$.useState(!0),[l,c]=$.useState(null);$.useEffect(()=>{async function d(){s(!0);try{c(await XRe(r,t,e))}catch(h){i(()=>{throw h})}}d()},[r,t,e]);const u=$.useMemo(()=>{if(l)return e?.unstable_hooks?.onInit&&e.unstable_hooks?.onInit?.({store:{definition:l,options:e,definitionUrl:t,activeSampleLanguage:n}}),{definition:l,options:e,definitionUrl:t,activeSampleLanguage:n}},Awe([l,e,t]));return $.useEffect(()=>{u&&s(!1)},[u]),u?a?va(e?.hideLoading,!1)?null:f.jsx(fme,{color:"--loading-spinner-color"}):$.isValidElement(o)?$.cloneElement(o,{store:u}):null:null};function GRe({definition:e,definitionUrl:t,options:r={},activeItemId:n,activeSampleLanguage:o,activeDeepLink:i}){return f.jsx(YRe,{definition:e,definitionUrl:t,options:r,activeItemId:n,activeSampleLanguage:o,activeDeepLink:i,children:f.jsx(WV,{withCommonStyles:!0})})}function JRe(e){const t={},r=e.attributes;for(let n=0;n<r.length;n++){const o=r[n];t[o.name]=o.value}return t}function KRe(e){const t=JRe(e),r={};for(const n in t){const o=n.replace(/-(.)/g,(i,a)=>a.toUpperCase());r[o]=t[n]}return r}function eIe(e,t=document.querySelector("redoc")){p$.hydrateRoot(t,f.jsx(WV,{store:e}))}function gW(e,t={},r=U6("redoc")){if(r===null)throw new Error('"element" argument is not provided and <redoc> tag is not found on the page');let n,o;typeof e=="string"?n=e:typeof e=="object"&&(o=e),p$.createRoot(r).render($.createElement(GRe,{definition:o,definitionUrl:n,options:{...t,...KRe(r)}},["Loading..."]))}const tIe="3.12.0-next.3",rIe="ac51d5ec";function nIe(){const e=U6("redoc");if(!e)return;const t=e.getAttribute("spec-url");t&&gW(t,{},e)}nIe();var oIe={},W7=function(e,t){return W7=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(r[o]=n[o])},W7(e,t)};function iIe(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");W7(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var jy=function(){return jy=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},jy.apply(this,arguments)},aIe=Object.prototype.hasOwnProperty;function mW(e,t){return e===t?e!==0||t!==0||1/e===1/t:e!==e&&t!==t}function sIe(e,t){if(mW(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;for(var o=0;o<r.length;o++)if(!aIe.call(t,r[o])||!mW(e[r[o]],t[r[o]]))return!1;return!0}var qt=Symbol("none"),lIe=Symbol("__state");function vW(e,t){var r=yW(e);r.activate(t);var n=r.toMethods();return n.self()}function cIe(e,t,r,n,o){function i(a){var s=a.map(function(v){return v()}),l=s.map(function(v){return v.onInit}).filter(function(v){return v}),c=s.map(function(v){return v.onPremerge}).filter(function(v){return v}),u=s.map(function(v){return v.onPreset}).filter(function(v){return v}),d=s.map(function(v){return v.onSet}).filter(function(v){return v}),h=s.map(function(v){return v.onDestroy}).filter(function(v){return v}),g={onCreate:function(v,b){for(var y=0,x=s;y<x.length;y++){var O=x[y];if(O.onCreate){var k=O.onCreate(v,b);Object.assign(b,k)}}return b}};return l.length>0&&(g.onInit=function(v,b){for(var y=0,x=l;y<x.length;y++){var O=x[y];O(v,b)}}),c.length>0&&(g.onPremerge=function(v,b,y){for(var x=0,O=c;x<O.length;x++){var k=O[x];k(v,b,y)}}),u.length>0&&(g.onPreset=function(v,b,y){for(var x=0,O=u;x<O.length;x++){var k=O[x];k(v,b,y)}}),d.length>0&&(g.onSet=function(v,b,y){for(var x=0,O=d;x<O.length;x++){var k=O[x];k(v,b,y)}}),h.length>0&&(g.onDestroy=function(v){for(var b=0,y=h;b<y.length;b++){var x=y[b];x(v)}}),g}return function(){return i([e,t,r,n,o].filter(function(a){return a}))}}function bW(e,t){var r=Object(e)===e?e[U7]:void 0;if(r)if(r.isMounted){var n=function(){var b=r.store,y=function(){return a({store:b,state:x,source:i.source,parentMethods:r})},x=new Py(b,r.path,b.get(r.path),b.edition,y);return{store:b,state:x,source:e,parentMethods:r}},o=kt.useState(n),i=o[0],a=o[1];(i.store!==r.store||!("source"in i))&&(i.state.onUnmount(),i.parentMethods.unsubscribe(i.state),i=n()),Object.defineProperty(i,"store",{enumerable:!1}),Object.defineProperty(i,"state",{enumerable:!1}),Object.defineProperty(i,"source",{enumerable:!1}),Object.defineProperty(i,"parentMethods",{enumerable:!1}),i.state.reconstruct(r.path,i.store.get(r.path),i.store.edition,i.source!==e),i.source=e,r.subscribe(i.state),t8(function(){return i.state.onMount(),r.subscribe(i.state),function(){i.state.onUnmount(),r.unsubscribe(i.state)}},[]);var s=i.state.self();return i["[hookstate(scoped)]"]=s,s}else{var n=function(){var y=r.store,x=function(){return c.state.isMounted&&u({store:y,state:O,source:c.source})},O=new Py(y,ri,y.get(ri),y.edition,x);return{store:y,state:O,source:e}},l=kt.useState(n),c=l[0],u=l[1];(c.store!==r.store||!("source"in c))&&(c.state.onUnmount(),c.store.unsubscribe(c.state),c=n()),Object.defineProperty(c,"store",{enumerable:!1}),Object.defineProperty(c,"state",{enumerable:!1}),Object.defineProperty(c,"source",{enumerable:!1}),c.state.reconstruct(ri,c.store.get(ri),c.store.edition,c.source!==e),c.source=e,c.store.subscribe(c.state),t8(function(){return c.state.onMount(),c.store.subscribe(c.state),function(){c.state.onUnmount(),c.store.unsubscribe(c.state)}},[]);for(var s=c.state.self(),d=0;d<r.path.length;d+=1)s=s.nested(r.path[d]);return c["[hookstate(global)]"]=s,s}else{var n=function(){var x=yW(e),O=function(){return g.state.isMounted&&v({store:x,state:k})},k=new Py(x,ri,x.get(ri),x.edition,O);return{store:x,state:k}},h=kt.useState(n),g=h[0],v=h[1];"source"in g&&(g.state.onUnmount(),g.store.unsubscribe(g.state),g.store.deactivate(),g=n()),Object.defineProperty(g,"store",{enumerable:!1}),Object.defineProperty(g,"state",{enumerable:!1}),g.state.reconstruct(ri,g.store.get(ri),g.store.edition,!1),g.store.subscribe(g.state),g.store.activate(t),t8(function(){return g.state.onMount(),g.store.subscribe(g.state),g.store.activate(t),function(){g.state.onUnmount(),g.store.unsubscribe(g.state),g.store.deactivate()}},[]);var s=g.state.self();return g["[hookstate(local)]"]=s,s}}var U7=Symbol("self"),cn;(function(e){e[e.StateUsedInDependencyList=100]="StateUsedInDependencyList",e[e.InitStateToValueFromState=101]="InitStateToValueFromState",e[e.SetStateToValueFromState=102]="SetStateToValueFromState",e[e.GetStateWhenPromised=103]="GetStateWhenPromised",e[e.SetStateWhenPromised=104]="SetStateWhenPromised",e[e.SetStateNestedToPromised=105]="SetStateNestedToPromised",e[e.SetStateWhenDestroyed=106]="SetStateWhenDestroyed",e[e.ToJson_Value=108]="ToJson_Value",e[e.ToJson_State=109]="ToJson_State",e[e.GetProperty_Function=110]="GetProperty_Function",e[e.InitStateStoreSwitchover=111]="InitStateStoreSwitchover",e[e.GetUnknownPlugin=120]="GetUnknownPlugin",e[e.SetProperty_State=201]="SetProperty_State",e[e.SetProperty_Value=202]="SetProperty_Value",e[e.SetPrototypeOf_State=203]="SetPrototypeOf_State",e[e.SetPrototypeOf_Value=204]="SetPrototypeOf_Value",e[e.PreventExtensions_State=205]="PreventExtensions_State",e[e.PreventExtensions_Value=206]="PreventExtensions_Value",e[e.DefineProperty_State=207]="DefineProperty_State",e[e.DefineProperty_Value=208]="DefineProperty_Value",e[e.DeleteProperty_State=209]="DeleteProperty_State",e[e.DeleteProperty_Value=210]="DeleteProperty_Value",e[e.Construct_State=211]="Construct_State",e[e.Construct_Value=212]="Construct_Value",e[e.Apply_State=213]="Apply_State",e[e.Apply_Value=214]="Apply_Value"})(cn||(cn={}));var os=function(e){iIe(t,e);function t(r,n,o){return e.call(this,"Error: HOOKSTATE-".concat(n," [path: /").concat(r.join("/")).concat(o?", details: ".concat(o):"","]. ")+"See https://hookstate.js.org/docs/exceptions#hookstate-".concat(n))||this}return t}(Error),Ay=Symbol("ProxyMarker"),ri=[],uIe=function(){function e(t){var r=this;this._value=t,this.edition=1,this._subscribers=new Set,Object(t)===t&&X7.promiseDetector(t)?this.setPromised(t):t===qt&&this.setPromised(void 0);var n=function(){r._stateMethods.reconstruct(ri,r.get(ri),r.edition,!1)};n[Ey]=!0,this._stateMethods=new Py(this,ri,this.get(ri),this.edition,n),this.subscribe(this._stateMethods)}return e.prototype.setPromised=function(t){var r=this;if(this._value=qt,this._promiseError=void 0,this._promiseResolver=void 0,!t){this._promise=new Promise(function(n){r._promiseResolver=n});return}t=t.then(function(n){r._promise===t&&(r._promise=void 0,r._promiseError=void 0,r.update(r._stateMethods.self(),r.set(ri,n)))}).catch(function(n){if(r._promise===t){r._promise=void 0,r._promiseResolver=void 0,r._promiseError=n,r.edition+=1;var o={path:ri};r.update(r._stateMethods.self(),o)}}),this._promise=t},e.prototype.activate=function(t){var r,n,o,i;this.edition<0&&(this.edition=-this.edition),this._extension===void 0&&(this._extension=t?.(),this._extensionMethods=(n=(r=this._extension)===null||r===void 0?void 0:r.onCreate)===null||n===void 0?void 0:n.call(r,this._stateMethods.self(),{}),(i=(o=this._extension)===null||o===void 0?void 0:o.onInit)===null||i===void 0||i.call(o,this._stateMethods.self(),this._extensionMethods||{}))},e.prototype.deactivate=function(){var t,r;this._extension&&((r=(t=this._extension).onDestroy)===null||r===void 0||r.call(t,this._stateMethods.self()),delete this._extension,delete this._extensionMethods),this.edition>0&&(this.edition=-this.edition)},Object.defineProperty(e.prototype,"extension",{get:function(){return this._extensionMethods},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"promise",{get:function(){return this._promise},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"promiseError",{get:function(){return this._promiseError},enumerable:!1,configurable:!0}),e.prototype.get=function(t){var r=this._value;return r===qt||t.forEach(function(n){r=r[n]}),r},e.prototype.set=function(t,r){var n,o;if(t.length===0){if(r===qt)this.setPromised(void 0);else if(Object(r)===r&&X7.promiseDetector(r))this.setPromised(r),r=qt;else{if(this._promise&&!this._promiseResolver)throw new os(t,cn.SetStateWhenPromised);this._promiseError=void 0}var i=this._value;if(this._value=r,this.afterSet(),i===qt&&this._value!==qt&&this._promiseResolver){this._promise=void 0,this._promiseError=void 0;var a=this._promiseResolver;a(this._value)}return{path:t}}if(Object(r)===r&&X7.promiseDetector(r))throw new os(t,cn.SetStateNestedToPromised);for(var s=this._value,l=0;l<t.length-1;l+=1)s=s[t[l]];var c=t[t.length-1];return c in s?r!==qt?(s[c]=r,this.afterSet(),{path:t}):(Array.isArray(s)&&typeof c=="number"?s.splice(c,1):delete s[c],this.afterSet(),{path:t.slice(0,-1),actions:(n={},n[c]="D",n)}):r!==qt?(s[c]=r,this.afterSet(),{path:t.slice(0,-1),actions:(o={},o[c]="I",o)}):{path:t}},e.prototype.preset=function(t,r){var n,o;(o=(n=this._extension)===null||n===void 0?void 0:n.onPreset)===null||o===void 0||o.call(n,t,r,this._stateMethods.self())},e.prototype.premerge=function(t,r){var n,o;(o=(n=this._extension)===null||n===void 0?void 0:n.onPremerge)===null||o===void 0||o.call(n,t,r,this._stateMethods.self())},e.prototype.update=function(t,r){var n=this,o,i;(i=(o=this._extension)===null||o===void 0?void 0:o.onSet)===null||i===void 0||i.call(o,t,r,this._stateMethods.self());var a=new Set;r.actions&&Object.values(r.actions).findIndex(function(s){return s!=="U"})===-1?Object.keys(r.actions).forEach(function(s){n._subscribers.forEach(function(l){return l.onSet({path:r.path.concat(s)},a)})}):this._subscribers.forEach(function(s){return s.onSet(r,a)}),a.forEach(function(s){return s()})},e.prototype.afterSet=function(){this.edition>0&&(this.edition+=1),this.edition<0&&(this.edition-=1)},e.prototype.toMethods=function(){return this._stateMethods},e.prototype.subscribe=function(t){this._subscribers.add(t)},e.prototype.unsubscribe=function(t){this._subscribers.delete(t)},e.prototype.toJSON=function(){throw new os(ri,cn.ToJson_Value)},e}(),Md=Symbol("UnusedValue"),Ey=Symbol("IsUnmounted"),Py=function(){function e(t,r,n,o,i){this.store=t,this.path=r,this.valueSource=n,this.valueEdition=o,this.onSetUsed=i,this.valueUsed=Md}return Object.defineProperty(e.prototype,lIe,{get:function(){return[this.get(),this.self()]},enumerable:!1,configurable:!0}),e.prototype.reconstruct=function(t,r,n,o){this.path=t,this.valueSource=r,this.valueEdition=n,this.valueUsed=Md,o?(delete this.selfUsed,delete this.childrenCreated,delete this.childrenUsedPrevious):(this.valueUsedNoProxyPrevious=this.valueUsedNoProxy,this.childrenUsedPrevious=this.childrenUsed),delete this.valueUsedNoProxy,delete this.childrenUsed},e.prototype.reconnect=function(){this.get({__internalAllowPromised:!0,noproxy:this.valueUsedNoProxyPrevious}),this.childrenUsed=jy(jy({},this.childrenUsedPrevious),this.childrenUsed)},e.prototype.getUntracked=function(t){if(this.valueEdition!==this.store.edition&&(this.valueSource=this.store.get(this.path),this.valueEdition=this.store.edition,this.valueUsed!==Md&&(this.valueUsed=Md,this.get({__internalAllowPromised:!0}))),t)return this.valueSource;if(this.store.promiseError)throw this.store.promiseError;if(this.store.promise)throw new os(this.path,cn.GetStateWhenPromised);return this.valueSource},e.prototype.get=function(t){var r,n=this.getUntracked(t?.__internalAllowPromised);return t?.stealth?n:(this.valueUsed===Md&&(Array.isArray(n)?this.valueUsed=this.valueArrayImpl(n):Object(n)===n?((r=n.constructor)===null||r===void 0?void 0:r.name)==="Object"?this.valueUsed=this.valueObjectImpl(n):(this.valueUsedNoProxy=!0,this.valueUsed=n):this.valueUsed=n),t?.noproxy?(this.valueUsedNoProxy=!0,n):this.valueUsed)},Object.defineProperty(e.prototype,"value",{get:function(){return this.get()},enumerable:!1,configurable:!0}),e.prototype.setUntrackedV4=function(t){if(typeof t=="function"&&(t=t(this.getUntracked())),this.store.preset(this.self(),t),Object(t)===t&&t[Ay])throw new os(this.path,cn.SetStateToValueFromState);return t!==Object(t)&&t===this.getUntracked(!0)?null:this.store.set(this.path,t)},e.prototype.set=function(t){var r=this.setUntrackedV4(t);r&&this.store.update(this.self(),r)},e.prototype.mergeUntracked=function(t){var r=this.mergeUntrackedV4(t);return r?[r.path]:[]},e.prototype.mergeUntrackedV4=function(t){var r=this.getUntracked();if(typeof t=="function"&&(t=t(r)),this.store.premerge(this.self(),t),Array.isArray(r))if(Array.isArray(t)){var n={path:this.path,actions:{}};return t.forEach(function(s,l){n.actions[r.push(s)-1]="I"}),Object.keys(n.actions).length>0?(this.setUntrackedV4(r),n):null}else{var o={path:this.path,actions:{}},i=[];return Object.keys(t).map(function(s){return Number(s)}).sort(function(s,l){return s-l}).forEach(function(s){var l=Number(s),c=t[l];c===qt?(o.actions[l]="D",i.push(l)):(l in r?o.actions[l]="U":o.actions[l]="I",r[l]=c)}),i.reverse().forEach(function(s){r.splice(s,1)}),Object.keys(o.actions).length>0?(this.setUntrackedV4(r),o):null}else if(Object(r)===r){var a={path:this.path,actions:{}};return Object.keys(t).forEach(function(s){var l=t[s];l===qt?(a.actions[s]="D",delete r[s]):(s in r?a.actions[s]="U":a.actions[s]="I",r[s]=l)}),Object.keys(a.actions).length>0?(this.setUntrackedV4(r),a):null}else return typeof r=="string"?this.setUntrackedV4(r+String(t)):this.setUntrackedV4(t)},e.prototype.merge=function(t){var r=this.mergeUntrackedV4(t);r&&this.store.update(this.self(),r)},e.prototype.nested=function(t){return this.child(t).self()},e.prototype.rerender=function(t){for(var r=0,n=t;r<n.length;r++){var o=n[r];this.store.update(this.self(),{path:o})}},e.prototype.activate=function(t){this.store.activate(t)},e.prototype.deactivate=function(){this.store.deactivate()},e.prototype.subscribe=function(t){this.subscribers===void 0&&(this.subscribers=new Set),this.subscribers.add(t)},e.prototype.unsubscribe=function(t){this.subscribers&&this.subscribers.delete(t)},Object.defineProperty(e.prototype,"isMounted",{get:function(){return!this.onSetUsed[Ey]},enumerable:!1,configurable:!0}),e.prototype.onMount=function(){delete this.onSetUsed[Ey]},e.prototype.onUnmount=function(){this.onSetUsed[Ey]=!0},e.prototype.onSet=function(t,r){var n=this,o=function(){var a,s=!1;n.valueUsedNoProxy&&n.valueUsed!==Md&&(r.add(n.onSetUsed),delete n.selfUsed,s=!0);var l=t.path,c=l[n.path.length];if(c===void 0){if(n.valueUsed!==Md){if(r.add(n.onSetUsed),delete n.selfUsed,delete n.childrenUsed,t.actions&&n.childrenCreated)if(Array.isArray(n.valueSource)&&Object.values(t.actions).includes("D")){var u=Object.keys(t.actions).map(function(g){return Number(g)}).sort(function(g,v){return g-v}).find(function(g){var v;return((v=t.actions)===null||v===void 0?void 0:v[g])==="D"});for(var d in n.childrenCreated)(Number(d)>=u||d in t.actions)&&delete n.childrenCreated[d]}else for(var d in t.actions)delete n.childrenCreated[d];else delete n.childrenCreated;return!0}}else{var h=(a=n.childrenUsed)===null||a===void 0?void 0:a[c];if(h&&h.onSet(t,r))return delete n.selfUsed,!0}return s},i=o();return!i&&this.subscribers!==void 0&&this.subscribers.forEach(function(a){a.onSet(t,r)&&delete n.selfUsed}),i},Object.defineProperty(e.prototype,"keys",{get:function(){var t=this.get();if(Array.isArray(t))return Object.keys(t).map(function(r){return Number(r)}).filter(function(r){return Number.isInteger(r)});if(Object(t)===t)return Object.keys(t)},enumerable:!1,configurable:!0}),e.prototype.child=function(t){this.childrenUsed=this.childrenUsed||{};var r=this.childrenUsed.hasOwnProperty(t)&&this.childrenUsed[t];if(r)return r;var n=this.valueSource[t];if(typeof n=="function")throw new os(this.path,cn.GetProperty_Function);this.childrenCreated=this.childrenCreated||{};var o=this.childrenCreated[t],i;return o?(o.reconstruct(this.path.concat(t),n,this.valueEdition,!1),i=o):(i=new e(this.store,this.path.concat(t),n,this.valueEdition,this.onSetUsed),this.childrenCreated[t]=i),this.valueUsedNoProxy&&(i.valueUsedNoProxy=!0),this.childrenUsed[t]=i,i},e.prototype.valueArrayImpl=function(t){var r=this;return H7(this.path,t,function(){return t},function(n,o){if(o==="length")return n.length;if(o in Array.prototype)return Array.prototype[o];if(o===Ay)return r;if(typeof o=="symbol")return n[o];var i=Number(o);if(Number.isInteger(i))return r.child(i).get()},function(n,o,i){if(typeof o=="symbol")return n[o]=i,!0;throw new os(r.path,cn.SetProperty_Value)},!0)},e.prototype.valueObjectImpl=function(t){var r=this;return H7(this.path,t,function(){return t},function(n,o){return o in Object.prototype?Object.prototype[o]:o===Ay?r:typeof o=="symbol"?n[o]:r.child(o).get()},function(n,o,i){if(typeof o=="symbol")return n[o]=i,!0;throw new os(r.path,cn.SetProperty_Value)},!0)},e.prototype.self=function(){var t=this;if(this.selfUsed)return this.selfUsed;var r=function(n,o){if(o===U7)return t;if(typeof o!="symbol"){if(o==="toJSON")throw new os(t.path,cn.ToJson_State);var i=function(s){var l=t.get({__internalAllowPromised:s==="$$typeof"||s==="constructor"});if(s in Object.prototype)return Object.prototype[s];if(!(Object(l)!==l&&l!==qt)){if(Array.isArray(l)){if(s==="length")return l.length;if(s in Array.prototype)return Array.prototype[s];var c=Number(s);return Number.isInteger(c)?t.nested(c):void 0}return t.nested(s.toString())}};switch(o){case"path":return t.path;case"keys":return t.keys;case"value":return t.value;case"ornull":return t.ornull;case"promised":return t.promised;case"promise":return t.promise;case"error":return t.error;case"get":return function(s){return t.get(s)};case"set":return function(s){return t.set(s)};case"merge":return function(s){return t.merge(s)};case"nested":return function(s){return i(s)};default:var a=t.store.extension;return a&&o in a?a[o](t.self()):i(o)}}};return this.selfUsed=H7(this.path,this.valueSource,function(n){return t.get({__internalAllowPromised:!0,stealth:n?.stealth})},r,function(n,o,i){throw new os(t.path,cn.SetProperty_State)},!1),this.selfUsed},Object.defineProperty(e.prototype,"promised",{get:function(){return this.get({__internalAllowPromised:!0}),!!this.store.promise},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"promise",{get:function(){var t=this,r;return this.get({__internalAllowPromised:!0}),(r=this.store.promise)===null||r===void 0?void 0:r.then(function(n){return t.self()})},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"error",{get:function(){return this.get({__internalAllowPromised:!!this.store.promiseError}),this.store.promiseError},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"ornull",{get:function(){var t=this.get();return t==null?t:this.self()},enumerable:!1,configurable:!0}),e}();function H7(e,t,r,n,o,i){var a=function(s){throw new os(e,s)};return Object(t)!==t&&(t={}),new Proxy(t,{getPrototypeOf:function(s){var l=r();return l==null?null:Object.getPrototypeOf(l===qt?new Promise(function(){}):l)},setPrototypeOf:function(s,l){return a(i?cn.SetPrototypeOf_State:cn.SetPrototypeOf_Value)},isExtensible:function(s){return!0},preventExtensions:function(s){return a(i?cn.PreventExtensions_State:cn.PreventExtensions_Value)},getOwnPropertyDescriptor:function(s,l){var c=r();if(Object(c)===c){var u=Object.getOwnPropertyDescriptor(c,l);return Array.isArray(c)&&l in Array.prototype?u:u&&{configurable:!0,enumerable:u.enumerable,get:function(){return n(c,l)},set:void 0}}if(!(i||c===qt)){if(l==="value")return{configurable:!0,enumerable:!0,get:function(){return r({stealth:!0})},set:void 0};if(l==="path")return{configurable:!0,enumerable:!0,get:function(){return e},set:void 0}}},has:function(s,l){if(typeof l=="symbol")return!1;var c=r();return Object(c)===c?l in c:i||c===qt?!1:l==="value"||l==="path"},get:n,set:o,deleteProperty:function(s,l){return a(i?cn.DeleteProperty_State:cn.DeleteProperty_Value)},defineProperty:function(s,l,c){return a(i?cn.DefineProperty_State:cn.DefineProperty_Value)},ownKeys:function(s){var l=r();return Array.isArray(l)&&s.length===void 0&&Object.defineProperty(t,"length",{value:0,writable:!0,enumerable:!1,configurable:!1}),Object(l)===l?Object.getOwnPropertyNames(l):i||l===qt?[]:["value","path"]},apply:function(s,l,c){return a(i?cn.Apply_State:cn.Apply_Value)},construct:function(s,l,c){return a(i?cn.Construct_State:cn.Construct_Value)}})}function yW(e){var t=e;if(typeof e=="function"&&(t=e()),Object(t)===t&&t[Ay])throw new os(ri,cn.InitStateToValueFromState);return new uIe(t)}var X7={interceptDependencyListsMode:"always",isDevelopmentMode:typeof process=="object"&&typeof oIe=="object"&&!1,promiseDetector:function(e){return Promise.resolve(e)===e},hiddenInterceptDependencyListsModeDebug:!1};function zd(e,t){for(var r=0,n=e||[];r<n.length;r++){var o=n[r];if(o===Object(o)){var i=o[U7];i&&i.reconnect()}}return e}var Ty;function dIe(e,t){return zd(t),Ty(e,t)}var _y;function pIe(e,t){return zd(t),_y(e,t)}var Y7;function hIe(e,t){return zd(t),Y7(e,t)}var G7;function fIe(e,t,r){return zd(r),G7(e,t,r)}var J7;function gIe(e,t){return zd(t),J7(e,t)}var K7;function mIe(e,t){return zd(t),K7(e,t)}var e8;function vIe(e,t){return e8(e,function(r,n){return zd(Object.keys(n).map(function(o){return n[o]})),(t||sIe)(r,n)})}function bIe(){!Ty&&kt.useEffect&&(Ty=kt.useEffect,kt.useEffect=dIe),!_y&&kt.useLayoutEffect&&(_y=kt.useLayoutEffect,kt.useLayoutEffect=pIe),!Y7&&kt.useInsertionEffect&&(Y7=kt.useInsertionEffect,kt.useInsertionEffect=hIe),!G7&&kt.useImperativeHandle&&(G7=kt.useImperativeHandle,kt.useImperativeHandle=fIe),!J7&&kt.useMemo&&(J7=kt.useMemo,kt.useMemo=gIe),!K7&&kt.useCallback&&(K7=kt.useCallback,kt.useCallback=mIe),!e8&&kt.memo&&(e8=kt.memo,kt.memo=vIe)}bIe();var t8=typeof window<"u"?_y:Ty;function is(e){return"Minified Redux error #"+e+"; visit https://redux.js.org/Errors?code="+e+" for the full message or use the non-minified dev environment for full errors. "}var xW=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),OW=function(){return Math.random().toString(36).substring(7).split("").join(".")},wW={INIT:"@@redux/INIT"+OW(),REPLACE:"@@redux/REPLACE"+OW()};function yIe(e){if(typeof e!="object"||e===null)return!1;for(var t=e;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function kW(e,t,r){var n;if(typeof t=="function"&&typeof r=="function"||typeof r=="function"&&typeof arguments[3]=="function")throw new Error(is(0));if(typeof t=="function"&&typeof r>"u"&&(r=t,t=void 0),typeof r<"u"){if(typeof r!="function")throw new Error(is(1));return r(kW)(e,t)}if(typeof e!="function")throw new Error(is(2));var o=e,i=t,a=[],s=a,l=!1;function c(){s===a&&(s=a.slice())}function u(){if(l)throw new Error(is(3));return i}function d(b){if(typeof b!="function")throw new Error(is(4));if(l)throw new Error(is(5));var y=!0;return c(),s.push(b),function(){if(y){if(l)throw new Error(is(6));y=!1,c();var x=s.indexOf(b);s.splice(x,1),a=null}}}function h(b){if(!yIe(b))throw new Error(is(7));if(typeof b.type>"u")throw new Error(is(8));if(l)throw new Error(is(9));try{l=!0,i=o(i,b)}finally{l=!1}for(var y=a=s,x=0;x<y.length;x++){var O=y[x];O()}return b}function g(b){if(typeof b!="function")throw new Error(is(10));o=b,h({type:wW.REPLACE})}function v(){var b,y=d;return b={subscribe:function(x){if(typeof x!="object"||x===null)throw new Error(is(11));function O(){x.next&&x.next(u())}O();var k=y(O);return{unsubscribe:k}}},b[xW]=function(){return this},b}return h({type:wW.INIT}),n={dispatch:h,subscribe:d,getState:u,replaceReducer:g},n[xW]=v,n}var xIe=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:function(){return function(e){return e}};function OIe(e,t,r){var n=!1,o=!1,i=kW(function(s,l){if(!o){var c=function(y){return Array.isArray(y)&&y.findIndex(function(x){return typeof x!="string"&&typeof x!="number"})===-1};if(l.type.startsWith("SET")){var u=function(y){try{n=!0,"value"in l?y.set(l.value):y.set(qt)}finally{n=!1}};if(l.path){if(c(l.path)){l.path.length===0&&u(e);for(var d=e,h=!0,g=0,v=l.path;g<v.length;g++){var b=v[g];d[b]?d=d[b]:h=!1}h&&u(d)}}else u(e)}else l.type==="BREAKPOINT"&&r()}return e.promised||e.error?qt:e.get({noproxy:!0})},xIe({name:"".concat(window.location.hostname,": ").concat(t),trace:!0,traceLimit:16,autoPause:!0,shouldHotReload:!1,features:{persist:!0,pause:!0,lock:!1,export:"custom",import:"custom",jump:!1,skip:!1,reorder:!1,dispatch:!0,test:!1}})),a=function(s,l){if(n)l&&l();else try{o=!0,i.dispatch(s)}finally{o=!1}};return a}function wIe(e){return function(){var t,r,n=!1;return{onInit:function(o,i){if(!(typeof window>"u"||!("__REDUX_DEVTOOLS_EXTENSION__"in window))){if(e?.key===void 0){if(i.identifier===void 0)throw Error("State is missing Identifiable extension or Devtools key option");t=i.identifier(o)}else t=e.key;r=OIe(o,t,function(){n=!n}),o.promise||r?.({type:"CREATE",state:o.get({noproxy:!0,stealth:!0})})}},onSet:function(o,i){if(r?.({type:"SET [".concat(o.path.join("/"),"]"),state:o.get({noproxy:!0,stealth:!0}),descriptor:i}),n)debugger},onDestroy:function(){r?.({type:"DESTROY"})}}}}var gr=(e=>(e.Normal="Normal",e.Edit="Edit",e.Draft="Draft",e))(gr||{});const $y="default",CW=[{name:$y,inputs:[],servers:[],state:gr.Normal}];var bl=(e=>(e.Idle="idle",e.Loading="loading",e.Success="success",e.Error="error",e))(bl||{});function r8(){const{tabsState:e}=Pr();return{tabs:e.tabs,activeTabIdx:e.activeTabIdx}}function ka(e,t){return e.type===t}const SW={activeTabIdx:0,tabs:[]};function yl(e){const t=new WeakMap;function r(n){if(typeof n!="object"||n===null)return n;if(t.has(n))return t.get(n);const o=Array.isArray(n)?[]:{};t.set(n,o);for(const i in n)Object.prototype.hasOwnProperty.call(n,i)&&(o[i]=r(n[i]));return o}return r(e)}function n8(e,t){if(e===t)return!0;if(e&&t&&typeof e=="object"&&typeof t=="object"){if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return!1;for(let o=0;o<e.length;o++)if(!n8(e[o],t[o]))return!1;return!0}const r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;for(let o=0;o<r.length;o++){const i=r[o];if(!Object.prototype.hasOwnProperty.call(t,i)||!n8(e[i],t[i]))return!1}return!0}return e!==e&&t!==t}function Ry(e){if(typeof e!="object"||e===null)return e;if(Array.isArray(e))return e.map(Ry);const t={};for(const r in e)Object.prototype.hasOwnProperty.call(e,r)&&r!=="id"&&(t[r]=Ry(e[r]));return t}function jW(e){return Object.keys(e).forEach(t=>{e[t]===void 0&&delete e[t]}),e}var o8={exports:{}},i8={exports:{}},kIe=i8.exports,AW;function lr(){return AW||(AW=1,function(e,t){(function(r,n){e.exports=n()})(kIe,function(){var r=r||function(n,o){var i;if(typeof window<"u"&&window.crypto&&(i=window.crypto),typeof self<"u"&&self.crypto&&(i=self.crypto),typeof globalThis<"u"&&globalThis.crypto&&(i=globalThis.crypto),!i&&typeof window<"u"&&window.msCrypto&&(i=window.msCrypto),!i&&typeof globalThis<"u"&&globalThis.crypto&&(i=globalThis.crypto),!i&&typeof Yg=="function")try{i=A7}catch{}var a=function(){if(i){if(typeof i.getRandomValues=="function")try{return i.getRandomValues(new Uint32Array(1))[0]}catch{}if(typeof i.randomBytes=="function")try{return i.randomBytes(4).readInt32LE()}catch{}}throw new Error("Native crypto module could not be used to get secure random number.")},s=Object.create||function(){function O(){}return function(k){var j;return O.prototype=k,j=new O,O.prototype=null,j}}(),l={},c=l.lib={},u=c.Base=function(){return{extend:function(O){var k=s(this);return O&&k.mixIn(O),(!k.hasOwnProperty("init")||this.init===k.init)&&(k.init=function(){k.$super.init.apply(this,arguments)}),k.init.prototype=k,k.$super=this,k},create:function(){var O=this.extend();return O.init.apply(O,arguments),O},init:function(){},mixIn:function(O){for(var k in O)O.hasOwnProperty(k)&&(this[k]=O[k]);O.hasOwnProperty("toString")&&(this.toString=O.toString)},clone:function(){return this.init.prototype.extend(this)}}}(),d=c.WordArray=u.extend({init:function(O,k){O=this.words=O||[],k!=o?this.sigBytes=k:this.sigBytes=O.length*4},toString:function(O){return(O||g).stringify(this)},concat:function(O){var k=this.words,j=O.words,C=this.sigBytes,A=O.sigBytes;if(this.clamp(),C%4)for(var E=0;E<A;E++){var P=j[E>>>2]>>>24-E%4*8&255;k[C+E>>>2]|=P<<24-(C+E)%4*8}else for(var T=0;T<A;T+=4)k[C+T>>>2]=j[T>>>2];return this.sigBytes+=A,this},clamp:function(){var O=this.words,k=this.sigBytes;O[k>>>2]&=4294967295<<32-k%4*8,O.length=n.ceil(k/4)},clone:function(){var O=u.clone.call(this);return O.words=this.words.slice(0),O},random:function(O){for(var k=[],j=0;j<O;j+=4)k.push(a());return new d.init(k,O)}}),h=l.enc={},g=h.Hex={stringify:function(O){for(var k=O.words,j=O.sigBytes,C=[],A=0;A<j;A++){var E=k[A>>>2]>>>24-A%4*8&255;C.push((E>>>4).toString(16)),C.push((E&15).toString(16))}return C.join("")},parse:function(O){for(var k=O.length,j=[],C=0;C<k;C+=2)j[C>>>3]|=parseInt(O.substr(C,2),16)<<24-C%8*4;return new d.init(j,k/2)}},v=h.Latin1={stringify:function(O){for(var k=O.words,j=O.sigBytes,C=[],A=0;A<j;A++){var E=k[A>>>2]>>>24-A%4*8&255;C.push(String.fromCharCode(E))}return C.join("")},parse:function(O){for(var k=O.length,j=[],C=0;C<k;C++)j[C>>>2]|=(O.charCodeAt(C)&255)<<24-C%4*8;return new d.init(j,k)}},b=h.Utf8={stringify:function(O){try{return decodeURIComponent(escape(v.stringify(O)))}catch{throw new Error("Malformed UTF-8 data")}},parse:function(O){return v.parse(unescape(encodeURIComponent(O)))}},y=c.BufferedBlockAlgorithm=u.extend({reset:function(){this._data=new d.init,this._nDataBytes=0},_append:function(O){typeof O=="string"&&(O=b.parse(O)),this._data.concat(O),this._nDataBytes+=O.sigBytes},_process:function(O){var k,j=this._data,C=j.words,A=j.sigBytes,E=this.blockSize,P=E*4,T=A/P;O?T=n.ceil(T):T=n.max((T|0)-this._minBufferSize,0);var I=T*E,L=n.min(I*4,A);if(I){for(var M=0;M<I;M+=E)this._doProcessBlock(C,M);k=C.splice(0,I),j.sigBytes-=L}return new d.init(k,L)},clone:function(){var O=u.clone.call(this);return O._data=this._data.clone(),O},_minBufferSize:0});c.Hasher=y.extend({cfg:u.extend(),init:function(O){this.cfg=this.cfg.extend(O),this.reset()},reset:function(){y.reset.call(this),this._doReset()},update:function(O){return this._append(O),this._process(),this},finalize:function(O){O&&this._append(O);var k=this._doFinalize();return k},blockSize:16,_createHelper:function(O){return function(k,j){return new O.init(j).finalize(k)}},_createHmacHelper:function(O){return function(k,j){return new x.HMAC.init(O,j).finalize(k)}}});var x=l.algo={};return l}(Math);return r})}(i8)),i8.exports}var a8={exports:{}},CIe=a8.exports,EW;function Iy(){return EW||(EW=1,function(e,t){(function(r,n){e.exports=n(lr())})(CIe,function(r){return function(n){var o=r,i=o.lib,a=i.Base,s=i.WordArray,l=o.x64={};l.Word=a.extend({init:function(c,u){this.high=c,this.low=u}}),l.WordArray=a.extend({init:function(c,u){c=this.words=c||[],u!=n?this.sigBytes=u:this.sigBytes=c.length*8},toX32:function(){for(var c=this.words,u=c.length,d=[],h=0;h<u;h++){var g=c[h];d.push(g.high),d.push(g.low)}return s.create(d,this.sigBytes)},clone:function(){for(var c=a.clone.call(this),u=c.words=this.words.slice(0),d=u.length,h=0;h<d;h++)u[h]=u[h].clone();return c}})}(),r})}(a8)),a8.exports}var s8={exports:{}},SIe=s8.exports,PW;function jIe(){return PW||(PW=1,function(e,t){(function(r,n){e.exports=n(lr())})(SIe,function(r){return function(){if(typeof ArrayBuffer=="function"){var n=r,o=n.lib,i=o.WordArray,a=i.init,s=i.init=function(l){if(l instanceof ArrayBuffer&&(l=new Uint8Array(l)),(l instanceof Int8Array||typeof Uint8ClampedArray<"u"&&l instanceof Uint8ClampedArray||l instanceof Int16Array||l instanceof Uint16Array||l instanceof Int32Array||l instanceof Uint32Array||l instanceof Float32Array||l instanceof Float64Array)&&(l=new Uint8Array(l.buffer,l.byteOffset,l.byteLength)),l instanceof Uint8Array){for(var c=l.byteLength,u=[],d=0;d<c;d++)u[d>>>2]|=l[d]<<24-d%4*8;a.call(this,u,c)}else a.apply(this,arguments)};s.prototype=i}}(),r.lib.WordArray})}(s8)),s8.exports}var l8={exports:{}},AIe=l8.exports,TW;function EIe(){return TW||(TW=1,function(e,t){(function(r,n){e.exports=n(lr())})(AIe,function(r){return function(){var n=r,o=n.lib,i=o.WordArray,a=n.enc;a.Utf16=a.Utf16BE={stringify:function(l){for(var c=l.words,u=l.sigBytes,d=[],h=0;h<u;h+=2){var g=c[h>>>2]>>>16-h%4*8&65535;d.push(String.fromCharCode(g))}return d.join("")},parse:function(l){for(var c=l.length,u=[],d=0;d<c;d++)u[d>>>1]|=l.charCodeAt(d)<<16-d%2*16;return i.create(u,c*2)}},a.Utf16LE={stringify:function(l){for(var c=l.words,u=l.sigBytes,d=[],h=0;h<u;h+=2){var g=s(c[h>>>2]>>>16-h%4*8&65535);d.push(String.fromCharCode(g))}return d.join("")},parse:function(l){for(var c=l.length,u=[],d=0;d<c;d++)u[d>>>1]|=s(l.charCodeAt(d)<<16-d%2*16);return i.create(u,c*2)}};function s(l){return l<<8&4278255360|l>>>8&16711935}}(),r.enc.Utf16})}(l8)),l8.exports}var c8={exports:{}},PIe=c8.exports,_W;function Ld(){return _W||(_W=1,function(e,t){(function(r,n){e.exports=n(lr())})(PIe,function(r){return function(){var n=r,o=n.lib,i=o.WordArray,a=n.enc;a.Base64={stringify:function(l){var c=l.words,u=l.sigBytes,d=this._map;l.clamp();for(var h=[],g=0;g<u;g+=3)for(var v=c[g>>>2]>>>24-g%4*8&255,b=c[g+1>>>2]>>>24-(g+1)%4*8&255,y=c[g+2>>>2]>>>24-(g+2)%4*8&255,x=v<<16|b<<8|y,O=0;O<4&&g+O*.75<u;O++)h.push(d.charAt(x>>>6*(3-O)&63));var k=d.charAt(64);if(k)for(;h.length%4;)h.push(k);return h.join("")},parse:function(l){var c=l.length,u=this._map,d=this._reverseMap;if(!d){d=this._reverseMap=[];for(var h=0;h<u.length;h++)d[u.charCodeAt(h)]=h}var g=u.charAt(64);if(g){var v=l.indexOf(g);v!==-1&&(c=v)}return s(l,c,d)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="};function s(l,c,u){for(var d=[],h=0,g=0;g<c;g++)if(g%4){var v=u[l.charCodeAt(g-1)]<<g%4*2,b=u[l.charCodeAt(g)]>>>6-g%4*2,y=v|b;d[h>>>2]|=y<<24-h%4*8,h++}return i.create(d,h)}}(),r.enc.Base64})}(c8)),c8.exports}var u8={exports:{}},TIe=u8.exports,$W;function _Ie(){return $W||($W=1,function(e,t){(function(r,n){e.exports=n(lr())})(TIe,function(r){return function(){var n=r,o=n.lib,i=o.WordArray,a=n.enc;a.Base64url={stringify:function(l,c){c===void 0&&(c=!0);var u=l.words,d=l.sigBytes,h=c?this._safe_map:this._map;l.clamp();for(var g=[],v=0;v<d;v+=3)for(var b=u[v>>>2]>>>24-v%4*8&255,y=u[v+1>>>2]>>>24-(v+1)%4*8&255,x=u[v+2>>>2]>>>24-(v+2)%4*8&255,O=b<<16|y<<8|x,k=0;k<4&&v+k*.75<d;k++)g.push(h.charAt(O>>>6*(3-k)&63));var j=h.charAt(64);if(j)for(;g.length%4;)g.push(j);return g.join("")},parse:function(l,c){c===void 0&&(c=!0);var u=l.length,d=c?this._safe_map:this._map,h=this._reverseMap;if(!h){h=this._reverseMap=[];for(var g=0;g<d.length;g++)h[d.charCodeAt(g)]=g}var v=d.charAt(64);if(v){var b=l.indexOf(v);b!==-1&&(u=b)}return s(l,u,h)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",_safe_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"};function s(l,c,u){for(var d=[],h=0,g=0;g<c;g++)if(g%4){var v=u[l.charCodeAt(g-1)]<<g%4*2,b=u[l.charCodeAt(g)]>>>6-g%4*2,y=v|b;d[h>>>2]|=y<<24-h%4*8,h++}return i.create(d,h)}}(),r.enc.Base64url})}(u8)),u8.exports}var d8={exports:{}},$Ie=d8.exports,RW;function Dd(){return RW||(RW=1,function(e,t){(function(r,n){e.exports=n(lr())})($Ie,function(r){return function(n){var o=r,i=o.lib,a=i.WordArray,s=i.Hasher,l=o.algo,c=[];(function(){for(var b=0;b<64;b++)c[b]=n.abs(n.sin(b+1))*4294967296|0})();var u=l.MD5=s.extend({_doReset:function(){this._hash=new a.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(b,y){for(var x=0;x<16;x++){var O=y+x,k=b[O];b[O]=(k<<8|k>>>24)&16711935|(k<<24|k>>>8)&4278255360}var j=this._hash.words,C=b[y+0],A=b[y+1],E=b[y+2],P=b[y+3],T=b[y+4],I=b[y+5],L=b[y+6],M=b[y+7],N=b[y+8],z=b[y+9],U=b[y+10],X=b[y+11],te=b[y+12],ee=b[y+13],se=b[y+14],W=b[y+15],Q=j[0],Y=j[1],q=j[2],H=j[3];Q=d(Q,Y,q,H,C,7,c[0]),H=d(H,Q,Y,q,A,12,c[1]),q=d(q,H,Q,Y,E,17,c[2]),Y=d(Y,q,H,Q,P,22,c[3]),Q=d(Q,Y,q,H,T,7,c[4]),H=d(H,Q,Y,q,I,12,c[5]),q=d(q,H,Q,Y,L,17,c[6]),Y=d(Y,q,H,Q,M,22,c[7]),Q=d(Q,Y,q,H,N,7,c[8]),H=d(H,Q,Y,q,z,12,c[9]),q=d(q,H,Q,Y,U,17,c[10]),Y=d(Y,q,H,Q,X,22,c[11]),Q=d(Q,Y,q,H,te,7,c[12]),H=d(H,Q,Y,q,ee,12,c[13]),q=d(q,H,Q,Y,se,17,c[14]),Y=d(Y,q,H,Q,W,22,c[15]),Q=h(Q,Y,q,H,A,5,c[16]),H=h(H,Q,Y,q,L,9,c[17]),q=h(q,H,Q,Y,X,14,c[18]),Y=h(Y,q,H,Q,C,20,c[19]),Q=h(Q,Y,q,H,I,5,c[20]),H=h(H,Q,Y,q,U,9,c[21]),q=h(q,H,Q,Y,W,14,c[22]),Y=h(Y,q,H,Q,T,20,c[23]),Q=h(Q,Y,q,H,z,5,c[24]),H=h(H,Q,Y,q,se,9,c[25]),q=h(q,H,Q,Y,P,14,c[26]),Y=h(Y,q,H,Q,N,20,c[27]),Q=h(Q,Y,q,H,ee,5,c[28]),H=h(H,Q,Y,q,E,9,c[29]),q=h(q,H,Q,Y,M,14,c[30]),Y=h(Y,q,H,Q,te,20,c[31]),Q=g(Q,Y,q,H,I,4,c[32]),H=g(H,Q,Y,q,N,11,c[33]),q=g(q,H,Q,Y,X,16,c[34]),Y=g(Y,q,H,Q,se,23,c[35]),Q=g(Q,Y,q,H,A,4,c[36]),H=g(H,Q,Y,q,T,11,c[37]),q=g(q,H,Q,Y,M,16,c[38]),Y=g(Y,q,H,Q,U,23,c[39]),Q=g(Q,Y,q,H,ee,4,c[40]),H=g(H,Q,Y,q,C,11,c[41]),q=g(q,H,Q,Y,P,16,c[42]),Y=g(Y,q,H,Q,L,23,c[43]),Q=g(Q,Y,q,H,z,4,c[44]),H=g(H,Q,Y,q,te,11,c[45]),q=g(q,H,Q,Y,W,16,c[46]),Y=g(Y,q,H,Q,E,23,c[47]),Q=v(Q,Y,q,H,C,6,c[48]),H=v(H,Q,Y,q,M,10,c[49]),q=v(q,H,Q,Y,se,15,c[50]),Y=v(Y,q,H,Q,I,21,c[51]),Q=v(Q,Y,q,H,te,6,c[52]),H=v(H,Q,Y,q,P,10,c[53]),q=v(q,H,Q,Y,U,15,c[54]),Y=v(Y,q,H,Q,A,21,c[55]),Q=v(Q,Y,q,H,N,6,c[56]),H=v(H,Q,Y,q,W,10,c[57]),q=v(q,H,Q,Y,L,15,c[58]),Y=v(Y,q,H,Q,ee,21,c[59]),Q=v(Q,Y,q,H,T,6,c[60]),H=v(H,Q,Y,q,X,10,c[61]),q=v(q,H,Q,Y,E,15,c[62]),Y=v(Y,q,H,Q,z,21,c[63]),j[0]=j[0]+Q|0,j[1]=j[1]+Y|0,j[2]=j[2]+q|0,j[3]=j[3]+H|0},_doFinalize:function(){var b=this._data,y=b.words,x=this._nDataBytes*8,O=b.sigBytes*8;y[O>>>5]|=128<<24-O%32;var k=n.floor(x/4294967296),j=x;y[(O+64>>>9<<4)+15]=(k<<8|k>>>24)&16711935|(k<<24|k>>>8)&4278255360,y[(O+64>>>9<<4)+14]=(j<<8|j>>>24)&16711935|(j<<24|j>>>8)&4278255360,b.sigBytes=(y.length+1)*4,this._process();for(var C=this._hash,A=C.words,E=0;E<4;E++){var P=A[E];A[E]=(P<<8|P>>>24)&16711935|(P<<24|P>>>8)&4278255360}return C},clone:function(){var b=s.clone.call(this);return b._hash=this._hash.clone(),b}});function d(b,y,x,O,k,j,C){var A=b+(y&x|~y&O)+k+C;return(A<<j|A>>>32-j)+y}function h(b,y,x,O,k,j,C){var A=b+(y&O|x&~O)+k+C;return(A<<j|A>>>32-j)+y}function g(b,y,x,O,k,j,C){var A=b+(y^x^O)+k+C;return(A<<j|A>>>32-j)+y}function v(b,y,x,O,k,j,C){var A=b+(x^(y|~O))+k+C;return(A<<j|A>>>32-j)+y}o.MD5=s._createHelper(u),o.HmacMD5=s._createHmacHelper(u)}(Math),r.MD5})}(d8)),d8.exports}var p8={exports:{}},RIe=p8.exports,IW;function MW(){return IW||(IW=1,function(e,t){(function(r,n){e.exports=n(lr())})(RIe,function(r){return function(){var n=r,o=n.lib,i=o.WordArray,a=o.Hasher,s=n.algo,l=[],c=s.SHA1=a.extend({_doReset:function(){this._hash=new i.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(u,d){for(var h=this._hash.words,g=h[0],v=h[1],b=h[2],y=h[3],x=h[4],O=0;O<80;O++){if(O<16)l[O]=u[d+O]|0;else{var k=l[O-3]^l[O-8]^l[O-14]^l[O-16];l[O]=k<<1|k>>>31}var j=(g<<5|g>>>27)+x+l[O];O<20?j+=(v&b|~v&y)+1518500249:O<40?j+=(v^b^y)+1859775393:O<60?j+=(v&b|v&y|b&y)-1894007588:j+=(v^b^y)-899497514,x=y,y=b,b=v<<30|v>>>2,v=g,g=j}h[0]=h[0]+g|0,h[1]=h[1]+v|0,h[2]=h[2]+b|0,h[3]=h[3]+y|0,h[4]=h[4]+x|0},_doFinalize:function(){var u=this._data,d=u.words,h=this._nDataBytes*8,g=u.sigBytes*8;return d[g>>>5]|=128<<24-g%32,d[(g+64>>>9<<4)+14]=Math.floor(h/4294967296),d[(g+64>>>9<<4)+15]=h,u.sigBytes=d.length*4,this._process(),this._hash},clone:function(){var u=a.clone.call(this);return u._hash=this._hash.clone(),u}});n.SHA1=a._createHelper(c),n.HmacSHA1=a._createHmacHelper(c)}(),r.SHA1})}(p8)),p8.exports}var h8={exports:{}},IIe=h8.exports,zW;function f8(){return zW||(zW=1,function(e,t){(function(r,n){e.exports=n(lr())})(IIe,function(r){return function(n){var o=r,i=o.lib,a=i.WordArray,s=i.Hasher,l=o.algo,c=[],u=[];(function(){function g(x){for(var O=n.sqrt(x),k=2;k<=O;k++)if(!(x%k))return!1;return!0}function v(x){return(x-(x|0))*4294967296|0}for(var b=2,y=0;y<64;)g(b)&&(y<8&&(c[y]=v(n.pow(b,1/2))),u[y]=v(n.pow(b,1/3)),y++),b++})();var d=[],h=l.SHA256=s.extend({_doReset:function(){this._hash=new a.init(c.slice(0))},_doProcessBlock:function(g,v){for(var b=this._hash.words,y=b[0],x=b[1],O=b[2],k=b[3],j=b[4],C=b[5],A=b[6],E=b[7],P=0;P<64;P++){if(P<16)d[P]=g[v+P]|0;else{var T=d[P-15],I=(T<<25|T>>>7)^(T<<14|T>>>18)^T>>>3,L=d[P-2],M=(L<<15|L>>>17)^(L<<13|L>>>19)^L>>>10;d[P]=I+d[P-7]+M+d[P-16]}var N=j&C^~j&A,z=y&x^y&O^x&O,U=(y<<30|y>>>2)^(y<<19|y>>>13)^(y<<10|y>>>22),X=(j<<26|j>>>6)^(j<<21|j>>>11)^(j<<7|j>>>25),te=E+X+N+u[P]+d[P],ee=U+z;E=A,A=C,C=j,j=k+te|0,k=O,O=x,x=y,y=te+ee|0}b[0]=b[0]+y|0,b[1]=b[1]+x|0,b[2]=b[2]+O|0,b[3]=b[3]+k|0,b[4]=b[4]+j|0,b[5]=b[5]+C|0,b[6]=b[6]+A|0,b[7]=b[7]+E|0},_doFinalize:function(){var g=this._data,v=g.words,b=this._nDataBytes*8,y=g.sigBytes*8;return v[y>>>5]|=128<<24-y%32,v[(y+64>>>9<<4)+14]=n.floor(b/4294967296),v[(y+64>>>9<<4)+15]=b,g.sigBytes=v.length*4,this._process(),this._hash},clone:function(){var g=s.clone.call(this);return g._hash=this._hash.clone(),g}});o.SHA256=s._createHelper(h),o.HmacSHA256=s._createHmacHelper(h)}(Math),r.SHA256})}(h8)),h8.exports}var g8={exports:{}},MIe=g8.exports,LW;function zIe(){return LW||(LW=1,function(e,t){(function(r,n,o){e.exports=n(lr(),f8())})(MIe,function(r){return function(){var n=r,o=n.lib,i=o.WordArray,a=n.algo,s=a.SHA256,l=a.SHA224=s.extend({_doReset:function(){this._hash=new i.init([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428])},_doFinalize:function(){var c=s._doFinalize.call(this);return c.sigBytes-=4,c}});n.SHA224=s._createHelper(l),n.HmacSHA224=s._createHmacHelper(l)}(),r.SHA224})}(g8)),g8.exports}var m8={exports:{}},LIe=m8.exports,DW;function NW(){return DW||(DW=1,function(e,t){(function(r,n,o){e.exports=n(lr(),Iy())})(LIe,function(r){return function(){var n=r,o=n.lib,i=o.Hasher,a=n.x64,s=a.Word,l=a.WordArray,c=n.algo;function u(){return s.create.apply(s,arguments)}var d=[u(1116352408,3609767458),u(1899447441,602891725),u(3049323471,3964484399),u(3921009573,2173295548),u(961987163,4081628472),u(1508970993,3053834265),u(2453635748,2937671579),u(2870763221,3664609560),u(3624381080,2734883394),u(310598401,1164996542),u(607225278,1323610764),u(1426881987,3590304994),u(1925078388,4068182383),u(2162078206,991336113),u(2614888103,633803317),u(3248222580,3479774868),u(3835390401,2666613458),u(4022224774,944711139),u(264347078,2341262773),u(604807628,2007800933),u(770255983,1495990901),u(1249150122,1856431235),u(1555081692,3175218132),u(1996064986,2198950837),u(2554220882,3999719339),u(2821834349,766784016),u(2952996808,2566594879),u(3210313671,3203337956),u(3336571891,1034457026),u(3584528711,2466948901),u(113926993,3758326383),u(338241895,168717936),u(666307205,1188179964),u(773529912,1546045734),u(1294757372,1522805485),u(1396182291,2643833823),u(1695183700,2343527390),u(1986661051,1014477480),u(2177026350,1206759142),u(2456956037,344077627),u(2730485921,1290863460),u(2820302411,3158454273),u(3259730800,3505952657),u(3345764771,106217008),u(3516065817,3606008344),u(3600352804,1432725776),u(4094571909,1467031594),u(275423344,851169720),u(430227734,3100823752),u(506948616,1363258195),u(659060556,3750685593),u(883997877,3785050280),u(958139571,3318307427),u(1322822218,3812723403),u(1537002063,2003034995),u(1747873779,3602036899),u(1955562222,1575990012),u(2024104815,1125592928),u(2227730452,2716904306),u(2361852424,442776044),u(2428436474,593698344),u(2756734187,3733110249),u(3204031479,2999351573),u(3329325298,3815920427),u(3391569614,3928383900),u(3515267271,566280711),u(3940187606,3454069534),u(4118630271,4000239992),u(116418474,1914138554),u(174292421,2731055270),u(289380356,3203993006),u(460393269,320620315),u(685471733,587496836),u(852142971,1086792851),u(1017036298,365543100),u(1126000580,2618297676),u(1288033470,3409855158),u(1501505948,4234509866),u(1607167915,987167468),u(1816402316,1246189591)],h=[];(function(){for(var v=0;v<80;v++)h[v]=u()})();var g=c.SHA512=i.extend({_doReset:function(){this._hash=new l.init([new s.init(1779033703,4089235720),new s.init(3144134277,2227873595),new s.init(1013904242,4271175723),new s.init(2773480762,1595750129),new s.init(1359893119,2917565137),new s.init(2600822924,725511199),new s.init(528734635,4215389547),new s.init(1541459225,327033209)])},_doProcessBlock:function(v,b){for(var y=this._hash.words,x=y[0],O=y[1],k=y[2],j=y[3],C=y[4],A=y[5],E=y[6],P=y[7],T=x.high,I=x.low,L=O.high,M=O.low,N=k.high,z=k.low,U=j.high,X=j.low,te=C.high,ee=C.low,se=A.high,W=A.low,Q=E.high,Y=E.low,q=P.high,H=P.low,re=T,G=I,oe=L,ne=M,be=N,ve=z,_=U,Z=X,fe=te,F=ee,he=se,ue=W,K=Q,ae=Y,le=q,Ce=H,Se=0;Se<80;Se++){var me,ye,xe=h[Se];if(Se<16)ye=xe.high=v[b+Se*2]|0,me=xe.low=v[b+Se*2+1]|0;else{var Ee=h[Se-15],Ue=Ee.high,B=Ee.low,J=(Ue>>>1|B<<31)^(Ue>>>8|B<<24)^Ue>>>7,ce=(B>>>1|Ue<<31)^(B>>>8|Ue<<24)^(B>>>7|Ue<<25),je=h[Se-2],$e=je.high,Be=je.low,qe=($e>>>19|Be<<13)^($e<<3|Be>>>29)^$e>>>6,pt=(Be>>>19|$e<<13)^(Be<<3|$e>>>29)^(Be>>>6|$e<<26),Dt=h[Se-7],wt=Dt.high,bt=Dt.low,Ut=h[Se-16],jo=Ut.high,ro=Ut.low;me=ce+bt,ye=J+wt+(me>>>0<ce>>>0?1:0),me=me+pt,ye=ye+qe+(me>>>0<pt>>>0?1:0),me=me+ro,ye=ye+jo+(me>>>0<ro>>>0?1:0),xe.high=ye,xe.low=me}var Vo=fe&he^~fe&K,rn=F&ue^~F&ae,yn=re&oe^re&be^oe&be,Cn=G&ne^G&ve^ne&ve,Cr=(re>>>28|G<<4)^(re<<30|G>>>2)^(re<<25|G>>>7),Sr=(G>>>28|re<<4)^(G<<30|re>>>2)^(G<<25|re>>>7),vo=(fe>>>14|F<<18)^(fe>>>18|F<<14)^(fe<<23|F>>>9),ar=(F>>>14|fe<<18)^(F>>>18|fe<<14)^(F<<23|fe>>>9),sr=d[Se],Wr=sr.high,wr=sr.low,we=Ce+ar,st=le+vo+(we>>>0<Ce>>>0?1:0),we=we+rn,st=st+Vo+(we>>>0<rn>>>0?1:0),we=we+wr,st=st+Wr+(we>>>0<wr>>>0?1:0),we=we+me,st=st+ye+(we>>>0<me>>>0?1:0),xn=Sr+Cn,Ao=Cr+yn+(xn>>>0<Sr>>>0?1:0);le=K,Ce=ae,K=he,ae=ue,he=fe,ue=F,F=Z+we|0,fe=_+st+(F>>>0<Z>>>0?1:0)|0,_=be,Z=ve,be=oe,ve=ne,oe=re,ne=G,G=we+xn|0,re=st+Ao+(G>>>0<we>>>0?1:0)|0}I=x.low=I+G,x.high=T+re+(I>>>0<G>>>0?1:0),M=O.low=M+ne,O.high=L+oe+(M>>>0<ne>>>0?1:0),z=k.low=z+ve,k.high=N+be+(z>>>0<ve>>>0?1:0),X=j.low=X+Z,j.high=U+_+(X>>>0<Z>>>0?1:0),ee=C.low=ee+F,C.high=te+fe+(ee>>>0<F>>>0?1:0),W=A.low=W+ue,A.high=se+he+(W>>>0<ue>>>0?1:0),Y=E.low=Y+ae,E.high=Q+K+(Y>>>0<ae>>>0?1:0),H=P.low=H+Ce,P.high=q+le+(H>>>0<Ce>>>0?1:0)},_doFinalize:function(){var v=this._data,b=v.words,y=this._nDataBytes*8,x=v.sigBytes*8;b[x>>>5]|=128<<24-x%32,b[(x+128>>>10<<5)+30]=Math.floor(y/4294967296),b[(x+128>>>10<<5)+31]=y,v.sigBytes=b.length*4,this._process();var O=this._hash.toX32();return O},clone:function(){var v=i.clone.call(this);return v._hash=this._hash.clone(),v},blockSize:1024/32});n.SHA512=i._createHelper(g),n.HmacSHA512=i._createHmacHelper(g)}(),r.SHA512})}(m8)),m8.exports}var v8={exports:{}},DIe=v8.exports,BW;function NIe(){return BW||(BW=1,function(e,t){(function(r,n,o){e.exports=n(lr(),Iy(),NW())})(DIe,function(r){return function(){var n=r,o=n.x64,i=o.Word,a=o.WordArray,s=n.algo,l=s.SHA512,c=s.SHA384=l.extend({_doReset:function(){this._hash=new a.init([new i.init(3418070365,3238371032),new i.init(1654270250,914150663),new i.init(2438529370,812702999),new i.init(355462360,4144912697),new i.init(1731405415,4290775857),new i.init(2394180231,1750603025),new i.init(3675008525,1694076839),new i.init(1203062813,3204075428)])},_doFinalize:function(){var u=l._doFinalize.call(this);return u.sigBytes-=16,u}});n.SHA384=l._createHelper(c),n.HmacSHA384=l._createHmacHelper(c)}(),r.SHA384})}(v8)),v8.exports}var b8={exports:{}},BIe=b8.exports,VW;function VIe(){return VW||(VW=1,function(e,t){(function(r,n,o){e.exports=n(lr(),Iy())})(BIe,function(r){return function(n){var o=r,i=o.lib,a=i.WordArray,s=i.Hasher,l=o.x64,c=l.Word,u=o.algo,d=[],h=[],g=[];(function(){for(var y=1,x=0,O=0;O<24;O++){d[y+5*x]=(O+1)*(O+2)/2%64;var k=x%5,j=(2*y+3*x)%5;y=k,x=j}for(var y=0;y<5;y++)for(var x=0;x<5;x++)h[y+5*x]=x+(2*y+3*x)%5*5;for(var C=1,A=0;A<24;A++){for(var E=0,P=0,T=0;T<7;T++){if(C&1){var I=(1<<T)-1;I<32?P^=1<<I:E^=1<<I-32}C&128?C=C<<1^113:C<<=1}g[A]=c.create(E,P)}})();var v=[];(function(){for(var y=0;y<25;y++)v[y]=c.create()})();var b=u.SHA3=s.extend({cfg:s.cfg.extend({outputLength:512}),_doReset:function(){for(var y=this._state=[],x=0;x<25;x++)y[x]=new c.init;this.blockSize=(1600-2*this.cfg.outputLength)/32},_doProcessBlock:function(y,x){for(var O=this._state,k=this.blockSize/2,j=0;j<k;j++){var C=y[x+2*j],A=y[x+2*j+1];C=(C<<8|C>>>24)&16711935|(C<<24|C>>>8)&4278255360,A=(A<<8|A>>>24)&16711935|(A<<24|A>>>8)&4278255360;var E=O[j];E.high^=A,E.low^=C}for(var P=0;P<24;P++){for(var T=0;T<5;T++){for(var I=0,L=0,M=0;M<5;M++){var E=O[T+5*M];I^=E.high,L^=E.low}var N=v[T];N.high=I,N.low=L}for(var T=0;T<5;T++)for(var z=v[(T+4)%5],U=v[(T+1)%5],X=U.high,te=U.low,I=z.high^(X<<1|te>>>31),L=z.low^(te<<1|X>>>31),M=0;M<5;M++){var E=O[T+5*M];E.high^=I,E.low^=L}for(var ee=1;ee<25;ee++){var I,L,E=O[ee],se=E.high,W=E.low,Q=d[ee];Q<32?(I=se<<Q|W>>>32-Q,L=W<<Q|se>>>32-Q):(I=W<<Q-32|se>>>64-Q,L=se<<Q-32|W>>>64-Q);var Y=v[h[ee]];Y.high=I,Y.low=L}var q=v[0],H=O[0];q.high=H.high,q.low=H.low;for(var T=0;T<5;T++)for(var M=0;M<5;M++){var ee=T+5*M,E=O[ee],re=v[ee],G=v[(T+1)%5+5*M],oe=v[(T+2)%5+5*M];E.high=re.high^~G.high&oe.high,E.low=re.low^~G.low&oe.low}var E=O[0],ne=g[P];E.high^=ne.high,E.low^=ne.low}},_doFinalize:function(){var y=this._data,x=y.words,O=y.sigBytes*8,k=this.blockSize*32;x[O>>>5]|=1<<24-O%32,x[(n.ceil((O+1)/k)*k>>>5)-1]|=128,y.sigBytes=x.length*4,this._process();for(var j=this._state,C=this.cfg.outputLength/8,A=C/8,E=[],P=0;P<A;P++){var T=j[P],I=T.high,L=T.low;I=(I<<8|I>>>24)&16711935|(I<<24|I>>>8)&4278255360,L=(L<<8|L>>>24)&16711935|(L<<24|L>>>8)&4278255360,E.push(L),E.push(I)}return new a.init(E,C)},clone:function(){for(var y=s.clone.call(this),x=y._state=this._state.slice(0),O=0;O<25;O++)x[O]=x[O].clone();return y}});o.SHA3=s._createHelper(b),o.HmacSHA3=s._createHmacHelper(b)}(Math),r.SHA3})}(b8)),b8.exports}var y8={exports:{}},FIe=y8.exports,FW;function QIe(){return FW||(FW=1,function(e,t){(function(r,n){e.exports=n(lr())})(FIe,function(r){/** @preserve
|
|
10472
|
+
`," "],s=["{","}","|","\\","^","`"].concat(a),l=["'"].concat(s),c=["%","/","?",";","#"].concat(l),u=["/","?","#"],d=255,h=/^[+a-z0-9A-Z_-]{0,63}$/,g=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,v={javascript:!0,"javascript:":!0},b={javascript:!0,"javascript:":!0},y={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},x=ORe();function O(A,E,P){if(A&&t.isObject(A)&&A instanceof r)return A;var T=new r;return T.parse(A,E,P),T}r.prototype.parse=function(A,E,P){if(!t.isString(A))throw new TypeError("Parameter 'url' must be a string, not "+typeof A);var T=A.indexOf("?"),I=T!==-1&&T<A.indexOf("#")?"?":"#",L=A.split(I),M=/\\/g;L[0]=L[0].replace(M,"/"),A=L.join(I);var N=A;if(N=N.trim(),!P&&A.split("#").length===1){var z=i.exec(N);if(z)return this.path=N,this.href=N,this.pathname=z[1],z[2]?(this.search=z[2],E?this.query=x.parse(this.search.substr(1)):this.query=this.search.substr(1)):E&&(this.search="",this.query={}),this}var U=n.exec(N);if(U){U=U[0];var X=U.toLowerCase();this.protocol=X,N=N.substr(U.length)}if(P||U||N.match(/^\/\/[^@\/]+@[^@\/]+/)){var te=N.substr(0,2)==="//";te&&!(U&&b[U])&&(N=N.substr(2),this.slashes=!0)}if(!b[U]&&(te||U&&!y[U])){for(var ee=-1,se=0;se<u.length;se++){var W=N.indexOf(u[se]);W!==-1&&(ee===-1||W<ee)&&(ee=W)}var Q,Y;ee===-1?Y=N.lastIndexOf("@"):Y=N.lastIndexOf("@",ee),Y!==-1&&(Q=N.slice(0,Y),N=N.slice(Y+1),this.auth=decodeURIComponent(Q)),ee=-1;for(var se=0;se<c.length;se++){var W=N.indexOf(c[se]);W!==-1&&(ee===-1||W<ee)&&(ee=W)}ee===-1&&(ee=N.length),this.host=N.slice(0,ee),N=N.slice(ee),this.parseHost(),this.hostname=this.hostname||"";var q=this.hostname[0]==="["&&this.hostname[this.hostname.length-1]==="]";if(!q)for(var H=this.hostname.split(/\./),se=0,re=H.length;se<re;se++){var G=H[se];if(G&&!G.match(h)){for(var oe="",ne=0,be=G.length;ne<be;ne++)G.charCodeAt(ne)>127?oe+="x":oe+=G[ne];if(!oe.match(h)){var ve=H.slice(0,se),_=H.slice(se+1),Z=G.match(g);Z&&(ve.push(Z[1]),_.unshift(Z[2])),_.length&&(N="/"+_.join(".")+N),this.hostname=ve.join(".");break}}}this.hostname.length>d?this.hostname="":this.hostname=this.hostname.toLowerCase(),q||(this.hostname=e.toASCII(this.hostname));var fe=this.port?":"+this.port:"",F=this.hostname||"";this.host=F+fe,this.href+=this.host,q&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),N[0]!=="/"&&(N="/"+N))}if(!v[X])for(var se=0,re=l.length;se<re;se++){var he=l[se];if(N.indexOf(he)!==-1){var ue=encodeURIComponent(he);ue===he&&(ue=escape(he)),N=N.split(he).join(ue)}}var K=N.indexOf("#");K!==-1&&(this.hash=N.substr(K),N=N.slice(0,K));var ae=N.indexOf("?");if(ae!==-1?(this.search=N.substr(ae),this.query=N.substr(ae+1),E&&(this.query=x.parse(this.query)),N=N.slice(0,ae)):E&&(this.search="",this.query={}),N&&(this.pathname=N),y[X]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){var fe=this.pathname||"",le=this.search||"";this.path=fe+le}return this.href=this.format(),this};function k(A){return t.isString(A)&&(A=O(A)),A instanceof r?A.format():r.prototype.format.call(A)}r.prototype.format=function(){var A=this.auth||"";A&&(A=encodeURIComponent(A),A=A.replace(/%3A/i,":"),A+="@");var E=this.protocol||"",P=this.pathname||"",T=this.hash||"",I=!1,L="";this.host?I=A+this.host:this.hostname&&(I=A+(this.hostname.indexOf(":")===-1?this.hostname:"["+this.hostname+"]"),this.port&&(I+=":"+this.port)),this.query&&t.isObject(this.query)&&Object.keys(this.query).length&&(L=x.stringify(this.query));var M=this.search||L&&"?"+L||"";return E&&E.substr(-1)!==":"&&(E+=":"),this.slashes||(!E||y[E])&&I!==!1?(I="//"+(I||""),P&&P.charAt(0)!=="/"&&(P="/"+P)):I||(I=""),T&&T.charAt(0)!=="#"&&(T="#"+T),M&&M.charAt(0)!=="?"&&(M="?"+M),P=P.replace(/[?#]/g,function(N){return encodeURIComponent(N)}),M=M.replace("#","%23"),E+I+P+M+T};function j(A,E){return O(A,!1,!0).resolve(E)}r.prototype.resolve=function(A){return this.resolveObject(O(A,!1,!0)).format()};function C(A,E){return A?O(A,!1,!0).resolveObject(E):E}return r.prototype.resolveObject=function(A){if(t.isString(A)){var E=new r;E.parse(A,!1,!0),A=E}for(var P=new r,T=Object.keys(this),I=0;I<T.length;I++){var L=T[I];P[L]=this[L]}if(P.hash=A.hash,A.href==="")return P.href=P.format(),P;if(A.slashes&&!A.protocol){for(var M=Object.keys(A),N=0;N<M.length;N++){var z=M[N];z!=="protocol"&&(P[z]=A[z])}return y[P.protocol]&&P.hostname&&!P.pathname&&(P.path=P.pathname="/"),P.href=P.format(),P}if(A.protocol&&A.protocol!==P.protocol){if(!y[A.protocol]){for(var U=Object.keys(A),X=0;X<U.length;X++){var te=U[X];P[te]=A[te]}return P.href=P.format(),P}if(P.protocol=A.protocol,!A.host&&!b[A.protocol]){for(var re=(A.pathname||"").split("/");re.length&&!(A.host=re.shift()););A.host||(A.host=""),A.hostname||(A.hostname=""),re[0]!==""&&re.unshift(""),re.length<2&&re.unshift(""),P.pathname=re.join("/")}else P.pathname=A.pathname;if(P.search=A.search,P.query=A.query,P.host=A.host||"",P.auth=A.auth,P.hostname=A.hostname||A.host,P.port=A.port,P.pathname||P.search){var ee=P.pathname||"",se=P.search||"";P.path=ee+se}return P.slashes=P.slashes||A.slashes,P.href=P.format(),P}var W=P.pathname&&P.pathname.charAt(0)==="/",Q=A.host||A.pathname&&A.pathname.charAt(0)==="/",Y=Q||W||P.host&&A.pathname,q=Y,H=P.pathname&&P.pathname.split("/")||[],re=A.pathname&&A.pathname.split("/")||[],G=P.protocol&&!y[P.protocol];if(G&&(P.hostname="",P.port=null,P.host&&(H[0]===""?H[0]=P.host:H.unshift(P.host)),P.host="",A.protocol&&(A.hostname=null,A.port=null,A.host&&(re[0]===""?re[0]=A.host:re.unshift(A.host)),A.host=null),Y=Y&&(re[0]===""||H[0]==="")),Q)P.host=A.host||A.host===""?A.host:P.host,P.hostname=A.hostname||A.hostname===""?A.hostname:P.hostname,P.search=A.search,P.query=A.query,H=re;else if(re.length)H||(H=[]),H.pop(),H=H.concat(re),P.search=A.search,P.query=A.query;else if(!t.isNullOrUndefined(A.search)){if(G){P.hostname=P.host=H.shift();var oe=P.host&&P.host.indexOf("@")>0?P.host.split("@"):!1;oe&&(P.auth=oe.shift(),P.host=P.hostname=oe.shift())}return P.search=A.search,P.query=A.query,(!t.isNull(P.pathname)||!t.isNull(P.search))&&(P.path=(P.pathname?P.pathname:"")+(P.search?P.search:"")),P.href=P.format(),P}if(!H.length)return P.pathname=null,P.search?P.path="/"+P.search:P.path=null,P.href=P.format(),P;for(var ne=H.slice(-1)[0],be=(P.host||A.host||H.length>1)&&(ne==="."||ne==="..")||ne==="",ve=0,_=H.length;_>=0;_--)ne=H[_],ne==="."?H.splice(_,1):ne===".."?(H.splice(_,1),ve++):ve&&(H.splice(_,1),ve--);if(!Y&&!q)for(;ve--;ve)H.unshift("..");Y&&H[0]!==""&&(!H[0]||H[0].charAt(0)!=="/")&&H.unshift(""),be&&H.join("/").substr(-1)!=="/"&&H.push("");var Z=H[0]===""||H[0]&&H[0].charAt(0)==="/";if(G){P.hostname=P.host=Z?"":H.length?H.shift():"";var oe=P.host&&P.host.indexOf("@")>0?P.host.split("@"):!1;oe&&(P.auth=oe.shift(),P.host=P.hostname=oe.shift())}return Y=Y||P.host&&H.length,Y&&!Z&&H.unshift(""),H.length?P.pathname=H.join("/"):(P.pathname=null,P.path=null),(!t.isNull(P.pathname)||!t.isNull(P.search))&&(P.path=(P.pathname?P.pathname:"")+(P.search?P.search:"")),P.auth=A.auth||P.auth,P.slashes=P.slashes||A.slashes,P.href=P.format(),P},r.prototype.parseHost=function(){var A=this.host,E=o.exec(A);E&&(E=E[0],E!==":"&&(this.port=E.substr(1)),A=A.substr(0,A.length-E.length)),A&&(this.hostname=A)},Id}var p7,fZ;function wRe(){if(fZ)return p7;fZ=1;function e(){return typeof process=="object"&&typeof process.nextTick=="function"?process.nextTick:typeof setImmediate=="function"?setImmediate:function(t){setTimeout(t,0)}}return p7=e(),p7}var h7,gZ;function kRe(){if(gZ)return h7;gZ=1;var e=wRe();return h7=function(t,r){if(t){r.then(function(n){e(function(){t(null,n)})},function(n){e(function(){t(n)})});return}else return r},h7}var f7,mZ;function wy(){if(mZ)return f7;mZ=1;function e(n){return n.replace(/\~/g,"~0").replace(/\//g,"~1")}function t(n){return n.replace(/\~1/g,"/").replace(/~0/g,"~")}function r(n,o,i){if(typeof n>"u")return!1;if(!o||typeof o!="string"||o==="#")return typeof i<"u"?i:n;if(o.indexOf("#")>=0){let s=o.split("#");if(s[0])return!1;o=s[1],o=decodeURIComponent(o.slice(1).split("+").join(" "))}o.startsWith("/")&&(o=o.slice(1));let a=o.split("/");for(let s=0;s<a.length;s++){a[s]=t(a[s]);let l=typeof i<"u"&&s==a.length-1,c=parseInt(a[s],10);if(!Array.isArray(n)||isNaN(c)||c.toString()!==a[s]?c=Array.isArray(n)&&a[s]==="-"?-2:-1:a[s]=s>0?a[s-1]:"",c!=-1||n&&n.hasOwnProperty(a[s]))if(c>=0)l&&(n[c]=i),n=n[c];else{if(c===-2)return l?(Array.isArray(n)&&n.push(i),i):void 0;l&&(n[a[s]]=i),n=n[a[s]]}else if(typeof i<"u"&&typeof n=="object"&&!Array.isArray(n))n[a[s]]=l?i:a[s+1]==="0"||a[s+1]==="-"?[]:{},n=n[a[s]];else return!1}return n}return f7={jptr:r,jpescape:e,jpunescape:t},f7}var g7,vZ;function m7(){if(vZ)return g7;vZ=1;function e(t,r){return r==="$ref"&&!!t&&typeof t[r]=="string"}return g7={isRef:e},g7}var v7,bZ;function ky(){if(bZ)return v7;bZ=1;function e(a){return a}function t(a){return JSON.parse(JSON.stringify(a))}function r(a){let s={};for(let l in a)a.hasOwnProperty(l)&&(s[l]=a[l]);return s}function n(a){let s=Array.isArray(a)?[]:{};for(let l in a)(a.hasOwnProperty(l)||Array.isArray(a))&&(s[l]=typeof a[l]=="object"?n(a[l]):a[l]);return s}function o(a){return Object.assign({},a)}function i(a,s){if(s||(s=new WeakMap),Object(a)!==a||a instanceof Function)return a;if(s.has(a))return s.get(a);try{var l=new a.constructor}catch{l=Object.create(Object.getPrototypeOf(a))}return s.set(a,l),Object.assign(l,...Object.keys(a).map(c=>({[c]:i(a[c],s)})))}return v7={nop:e,clone:t,shallowClone:r,deepClone:n,fastClone:o,circularClone:i},v7}var b7,yZ;function y7(){if(yZ)return b7;yZ=1;const e=wy().jpescape;function t(){return{path:"#",depth:0,pkey:"",parent:{},payload:{},seen:new WeakMap,identity:!1,identityDetection:!1}}function r(n,o,i){if(o||(o={depth:0}),o.depth||(o=Object.assign({},t(),o)),typeof n!="object")return;let a=o.path;for(let s in n){if(o.key=s,o.path=o.path+"/"+encodeURIComponent(e(s)),o.identityPath=o.seen.get(n[s]),o.identity=typeof o.identityPath<"u",n.hasOwnProperty(s)&&i(n,s,o),typeof n[s]=="object"&&!o.identity){o.identityDetection&&!Array.isArray(n[s])&&n[s]!==null&&o.seen.set(n[s],o.path);let l={};l.parent=n,l.path=o.path,l.depth=o.depth?o.depth+1:1,l.pkey=s,l.payload=o.payload,l.seen=o.seen,l.identity=!1,l.identityDetection=o.identityDetection,r(n[s],l,i)}o.path=a}}return b7={recurse:r},b7}var x7,xZ;function CRe(){if(xZ)return x7;xZ=1;const e=y7().recurse,t=ky().shallowClone,r=wy().jptr,n=m7().isRef;var o=function(a){return a&&a.verbose?{warn:function(){var s=Array.prototype.slice.call(arguments);console.warn.apply(console,s)}}:{warn:function(){}}};function i(a,s,l){l||(l={}),l.cache||(l.cache={}),l.state||(l.state={}),l.state.identityDetection=!0,l.depth=l.depth?l.depth+1:1;let c=l.depth>1?a:t(a),u={data:c},d=l.depth>1?s:t(s);l.master||(l.master=c);let h=o(l),g=1;for(;g>0;)g=0,e(u,l.state,function(v,b,y){if(n(v,b)){let x=v[b];if(g++,l.cache[x]){let O=l.cache[x];if(O.resolved)h.warn("Patching %s for %s",x,O.path),y.parent[y.pkey]=O.data,l.$ref&&typeof y.parent[y.pkey]=="object"&&y.parent[y.pkey]!==null&&(y.parent[y.pkey][l.$ref]=x);else{if(x===O.path)throw new Error(`Tight circle at ${O.path}`);h.warn("Unresolved ref"),y.parent[y.pkey]=r(O.source,O.path),y.parent[y.pkey]===!1&&(y.parent[y.pkey]=r(O.source,O.key)),l.$ref&&typeof y.parent[y.pkey]=="object"&&y.parent[y.pkey]!==null&&(y.parent[l.$ref]=x)}}else{let O={};O.path=y.path.split("/$ref")[0],O.key=x,h.warn("Dereffing %s at %s",x,O.path),O.source=d,O.data=r(O.source,O.key),O.data===!1&&(O.data=r(l.master,O.key),O.source=l.master),O.data===!1&&h.warn("Missing $ref target",O.key),l.cache[x]=O,O.data=y.parent[y.pkey]=i(r(O.source,O.key),O.source,l),l.$ref&&typeof y.parent[y.pkey]=="object"&&y.parent[y.pkey]!==null&&(y.parent[y.pkey][l.$ref]=x),O.resolved=!0}}});return u.data}return x7={dereference:i},x7}var O7,OZ;function SRe(){if(OZ)return O7;OZ=1,O7=i,i.default=i,i.stable=c,i.stableStringify=c;var e="[...]",t="[Circular]",r=[],n=[];function o(){return{depthLimit:Number.MAX_SAFE_INTEGER,edgesLimit:Number.MAX_SAFE_INTEGER}}function i(h,g,v,b){typeof b>"u"&&(b=o()),s(h,"",0,[],void 0,0,b);var y;try{n.length===0?y=JSON.stringify(h,g,v):y=JSON.stringify(h,d(g),v)}catch{return JSON.stringify("[unable to serialize, circular reference is too complex to analyze]")}finally{for(;r.length!==0;){var x=r.pop();x.length===4?Object.defineProperty(x[0],x[1],x[3]):x[0][x[1]]=x[2]}}return y}function a(h,g,v,b){var y=Object.getOwnPropertyDescriptor(b,v);y.get!==void 0?y.configurable?(Object.defineProperty(b,v,{value:h}),r.push([b,v,g,y])):n.push([g,v,h]):(b[v]=h,r.push([b,v,g]))}function s(h,g,v,b,y,x,O){x+=1;var k;if(typeof h=="object"&&h!==null){for(k=0;k<b.length;k++)if(b[k]===h){a(t,h,g,y);return}if(typeof O.depthLimit<"u"&&x>O.depthLimit){a(e,h,g,y);return}if(typeof O.edgesLimit<"u"&&v+1>O.edgesLimit){a(e,h,g,y);return}if(b.push(h),Array.isArray(h))for(k=0;k<h.length;k++)s(h[k],k,k,b,h,x,O);else{var j=Object.keys(h);for(k=0;k<j.length;k++){var C=j[k];s(h[C],C,k,b,h,x,O)}}b.pop()}}function l(h,g){return h<g?-1:h>g?1:0}function c(h,g,v,b){typeof b>"u"&&(b=o());var y=u(h,"",0,[],void 0,0,b)||h,x;try{n.length===0?x=JSON.stringify(y,g,v):x=JSON.stringify(y,d(g),v)}catch{return JSON.stringify("[unable to serialize, circular reference is too complex to analyze]")}finally{for(;r.length!==0;){var O=r.pop();O.length===4?Object.defineProperty(O[0],O[1],O[3]):O[0][O[1]]=O[2]}}return x}function u(h,g,v,b,y,x,O){x+=1;var k;if(typeof h=="object"&&h!==null){for(k=0;k<b.length;k++)if(b[k]===h){a(t,h,g,y);return}try{if(typeof h.toJSON=="function")return}catch{return}if(typeof O.depthLimit<"u"&&x>O.depthLimit){a(e,h,g,y);return}if(typeof O.edgesLimit<"u"&&v+1>O.edgesLimit){a(e,h,g,y);return}if(b.push(h),Array.isArray(h))for(k=0;k<h.length;k++)u(h[k],k,k,b,h,x,O);else{var j={},C=Object.keys(h).sort(l);for(k=0;k<C.length;k++){var A=C[k];u(h[A],A,k,b,h,x,O),j[A]=h[A]}if(typeof y<"u")r.push([y,g,h]),y[g]=j;else return j}b.pop()}}function d(h){return h=typeof h<"u"?h:function(g,v){return v},function(g,v){if(n.length>0)for(var b=0;b<n.length;b++){var y=n[b];if(y[1]===g&&y[0]===v){v=y[2],n.splice(b,1);break}}return h.call(this,g,v)}}return O7}var w7,wZ;function kZ(){if(wZ)return w7;wZ=1;var e={};const t=SRe(),r=e.NODE_DISABLE_COLORS?{red:"",yellow:"",green:"",normal:""}:{red:"\x1B[31m",yellow:"\x1B[33;1m",green:"\x1B[32m",normal:"\x1B[0m"};function n(y,x,O){return O.indexOf(y)===x}function o(y){return new Set(y).size!==y.length}function i(y){return new Set(y).size<=1}function a(y,x){function O(k,j){return t.stringify(k)===t.stringify(Object.assign({},k,j))}return O(y,x)&&O(x,y)}function s(y){let x=[];for(let O of y)x.find(function(k,j,C){return a(k,O)})||x.push(O);return x}function l(y){return y.length===s(y).length}function c(y){return y.find(function(x,O,k){return y.indexOf(x)<O})}function u(y){let x=0,O;if(y.length===0)return x;for(let k=0;k<y.length;k++)O=y.charCodeAt(k),x=(x<<5)-x+O,x|=0;return x}String.prototype.toCamelCase=function(){return this.toLowerCase().replace(/[-_ \/\.](.)/g,function(y,x){return x.toUpperCase()})};const d=["format","minimum","maximum","exclusiveMinimum","exclusiveMaximum","minLength","maxLength","multipleOf","minItems","maxItems","uniqueItems","minProperties","maxProperties","additionalProperties","pattern","enum","default"],h=["items","minItems","maxItems","uniqueItems"],g=["get","post","put","delete","patch","head","options","trace"];function v(y){y=y.replace("[]","Array");let x=y.split("/");return x[0]=x[0].replace(/[^A-Za-z0-9_\-\.]+|\s+/gm,"_"),x.join("/")}function b(y){return v(y.split("/").join("_"))}return w7={colour:r,uniqueOnly:n,hasDuplicates:o,allSame:i,distinctArray:l,firstDupe:c,hash:u,parameterTypeProperties:d,arrayProperties:h,httpMethods:g,sanitise:v,sanitiseAll:b},w7}var k7,CZ;function jRe(){if(CZ)return k7;CZ=1;const e=Sh,t=XM(),r=d7(),n=Sh,o=Sh,i=wy().jptr,a=y7().recurse,s=ky().clone,l=CRe().dereference,c=m7().isRef,u=kZ();function d(P){return[...new Set(P)]}function h(P,T,I,L,M){return new Promise(function(N,z){e.readFile(P,T,function(U,X){U?I.ignoreIOErrors&&M?(I.verbose&&console.warn("FAILED",L),I.externalRefs[L].failed=!0,N(M)):z(U):N(X)})})}function g(P,T,I,L,M,N){let z=N.externalRefs[I+L].paths[0],U=r.parse(M),X={},te=1;for(;te;)te=0,a(P,{identityDetection:!0},function(ee,se,W){if(c(ee,se)){if(ee[se].startsWith("#")){if(!X[ee[se]]&&!ee.$fixed){let Q=s(i(T,ee[se]));if(N.verbose>1&&console.warn((Q===!1?u.colour.red:u.colour.green)+"Fragment resolution",ee[se],u.colour.normal),Q===!1){if(W.parent[W.pkey]={},N.fatal){let Y=new Error("Fragment $ref resolution failed "+ee[se]);if(N.promise)N.promise.reject(Y);else throw Y}}else te++,W.parent[W.pkey]=Q,X[ee[se]]=W.path.replace("/%24ref","")}else if(!ee.$fixed){let Q=(z+"/"+X[ee[se]]).split("/#/").join("/");W.parent[W.pkey]={$ref:Q,"x-miro":ee[se],$fixed:!0},N.verbose>1&&console.warn("Replacing with",Q),te++}}else if(U.protocol){let Q=r.resolve(M,ee[se]).toString();N.verbose>1&&console.warn(u.colour.yellow+"Rewriting external url ref",ee[se],"as",Q,u.colour.normal),ee["x-miro"]=ee[se],N.externalRefs[ee[se]]&&(N.externalRefs[Q]||(N.externalRefs[Q]=N.externalRefs[ee[se]]),N.externalRefs[Q].failed=N.externalRefs[ee[se]].failed),ee[se]=Q}else if(!ee["x-miro"]){let Q=r.resolve(M,ee[se]).toString(),Y=!1;N.externalRefs[ee[se]]&&(Y=N.externalRefs[ee[se]].failed),Y||(N.verbose>1&&console.warn(u.colour.yellow+"Rewriting external ref",ee[se],"as",Q,u.colour.normal),ee["x-miro"]=ee[se],ee[se]=Q)}}});return a(P,{},function(ee,se,W){c(ee,se)&&typeof ee.$fixed<"u"&&delete ee.$fixed}),N.verbose>1&&console.warn("Finished fragment resolution"),P}function v(P,T){if(!T.filters||!T.filters.length)return P;for(let I of T.filters)P=I(P,T);return P}function b(P,T){return P&&P.length>2?P:T&&T.length>2?T:"file:"}function y(P,T,I,L){var M=r.parse(I.source),N=I.source.split("\\").join("/").split("/");N.pop()||N.pop();let z="",U=T.split("#");U.length>1&&(z="#"+U[1],T=U[0]),N=N.join("/");let X=r.parse(T),te=b(X.protocol,M.protocol),ee;if(te==="file:"?ee=t.resolve(N?N+"/":"",T):ee=r.resolve(N?N+"/":"",T),I.cache[ee]){I.verbose&&console.warn("CACHED",ee,z);let se=s(I.cache[ee]),W=I.externalRef=se;if(z&&(W=i(W,z),W===!1&&(W={},I.fatal))){let Q=new Error("Cached $ref resolution failed "+ee+z);if(I.promise)I.promise.reject(Q);else throw Q}return W=g(W,se,T,z,ee,I),W=v(W,I),L(s(W),ee,I),Promise.resolve(W)}if(I.verbose&&console.warn("GET",ee,z),I.handlers&&I.handlers[te])return I.handlers[te](N,T,z,I).then(function(se){return I.externalRef=se,se=v(se,I),I.cache[ee]=se,L(se,ee,I),se}).catch(function(se){throw I.verbose&&console.warn(se),se});if(te&&te.startsWith("http")){const se=Object.assign({},I.fetchOptions,{agent:I.agent});return I.fetch(ee,se).then(function(W){if(W.status!==200){if(I.ignoreIOErrors)return I.verbose&&console.warn("FAILED",T),I.externalRefs[T].failed=!0,'{"$ref":"'+T+'"}';throw new Error(`Received status code ${W.status}: ${ee}`)}return W.text()}).then(function(W){try{let Q=o.parse(W,{schema:"core",prettyErrors:!0});if(W=I.externalRef=Q,I.cache[ee]=s(W),z&&(W=i(W,z),W===!1&&(W={},I.fatal))){let Y=new Error("Remote $ref resolution failed "+ee+z);if(I.promise)I.promise.reject(Y);else throw Y}W=g(W,Q,T,z,ee,I),W=v(W,I)}catch(Q){if(I.verbose&&console.warn(Q),I.promise&&I.fatal)I.promise.reject(Q);else throw Q}return L(W,ee,I),W}).catch(function(W){if(I.verbose&&console.warn(W),I.cache[ee]={},I.promise&&I.fatal)I.promise.reject(W);else throw W})}else{const se='{"$ref":"'+T+'"}';return h(ee,I.encoding||"utf8",I,T,se).then(function(W){try{let Q=o.parse(W,{schema:"core",prettyErrors:!0});if(W=I.externalRef=Q,I.cache[ee]=s(W),z&&(W=i(W,z),W===!1&&(W={},I.fatal))){let Y=new Error("File $ref resolution failed "+ee+z);if(I.promise)I.promise.reject(Y);else throw Y}W=g(W,Q,T,z,ee,I),W=v(W,I)}catch(Q){if(I.verbose&&console.warn(Q),I.promise&&I.fatal)I.promise.reject(Q);else throw Q}return L(W,ee,I),W}).catch(function(W){if(I.verbose&&console.warn(W),I.promise&&I.fatal)I.promise.reject(W);else throw W})}}function x(P){return new Promise(function(T,I){function L(N,z,U){if(N[z]&&c(N[z],"$ref")){let X=N[z].$ref;if(!X.startsWith("#")){let te="";if(!M[X]){let ee=Object.keys(M).find(function(se,W,Q){return X.startsWith(se+"/")});ee&&(P.verbose&&console.warn("Found potential subschema at",ee),te="/"+(X.split("#")[1]||"").replace(ee.split("#")[1]||""),te=te.split("/undefined").join(""),X=ee)}if(M[X]||(M[X]={resolved:!1,paths:[],extras:{},description:N[z].description}),M[X].resolved){if(!M[X].failed)if(P.rewriteRefs){let ee=M[X].resolvedAt;P.verbose>1&&console.warn("Rewriting ref",X,ee),N[z]["x-miro"]=X,N[z].$ref=ee+te}else N[z]=s(M[X].data)}else M[X].paths.push(U.path),M[X].extras[U.path]=te}}}let M=P.externalRefs;if(P.resolver.depth>0&&P.source===P.resolver.base)return T(M);a(P.openapi.definitions,{identityDetection:!0,path:"#/definitions"},L),a(P.openapi.components,{identityDetection:!0,path:"#/components"},L),a(P.openapi,{identityDetection:!0},L),T(M)})}function O(P){return new Promise(function(T,I){x(P).then(function(M){for(let N in M)if(!M[N].resolved){let z=P.resolver.depth;z>0&&z++,P.resolver.actions[z].push(function(){return y(P.openapi,N,P,function(U,X,te){if(!M[N].resolved){let W={};W.context=M[N],W.$ref=N,W.original=s(U),W.updated=U,W.source=X,te.externals.push(W),M[N].resolved=!0}let ee=Object.assign({},te,{source:"",resolver:{actions:te.resolver.actions,depth:te.resolver.actions.length-1,base:te.resolver.base}});te.patch&&M[N].description&&!U.description&&typeof U=="object"&&(U.description=M[N].description),M[N].data=U;let se=d(M[N].paths);se=se.sort(function(W,Q){const Y=W.startsWith("#/components/")||W.startsWith("#/definitions/"),q=Q.startsWith("#/components/")||Q.startsWith("#/definitions/");return Y&&!q?-1:q&&!Y?1:0});for(let W of se)if(M[N].resolvedAt&&W!==M[N].resolvedAt&&W.indexOf("x-ms-examples/")<0)te.verbose>1&&console.warn("Creating pointer to data at",W),i(te.openapi,W,{$ref:M[N].resolvedAt+M[N].extras[W],"x-miro":N+M[N].extras[W]});else{M[N].resolvedAt?te.verbose>1&&console.warn("Avoiding circular reference"):(M[N].resolvedAt=W,te.verbose>1&&console.warn("Creating initial clone of data at",W));let Q=s(U);i(te.openapi,W,Q)}te.resolver.actions[ee.resolver.depth].length===0&&te.resolver.actions[ee.resolver.depth].push(function(){return O(ee)})})})}}).catch(function(M){P.verbose&&console.warn(M),I(M)});let L={options:P};L.actions=P.resolver.actions[P.resolver.depth],T(L)})}const k=P=>P.reduce((T,I)=>T.then(L=>I().then(Array.prototype.concat.bind(L))),Promise.resolve([]));function j(P,T,I){P.resolver.actions.push([]),O(P).then(function(L){k(L.actions).then(function(){if(P.resolver.depth>=P.resolver.actions.length)return console.warn("Ran off the end of resolver actions"),T(!0);P.resolver.depth++,P.resolver.actions[P.resolver.depth].length?setTimeout(function(){j(L.options,T,I)},0):(P.verbose>1&&console.warn(u.colour.yellow+"Finished external resolution!",u.colour.normal),P.resolveInternal&&(P.verbose>1&&console.warn(u.colour.yellow+"Starting internal resolution!",u.colour.normal),P.openapi=l(P.openapi,P.original,{verbose:P.verbose-1}),P.verbose>1&&console.warn(u.colour.yellow+"Finished internal resolution!",u.colour.normal)),a(P.openapi,{},function(M,N,z){c(M,N)&&(P.preserveMiro||delete M["x-miro"])}),T(P))}).catch(function(M){P.verbose&&console.warn(M),I(M)})}).catch(function(L){P.verbose&&console.warn(L),I(L)})}function C(P){if(P.cache||(P.cache={}),P.fetch||(P.fetch=n),P.source){let T=r.parse(P.source);(!T.protocol||T.protocol.length<=2)&&(P.source=t.resolve(P.source))}P.externals=[],P.externalRefs={},P.rewriteRefs=!0,P.resolver={},P.resolver.depth=0,P.resolver.base=P.source,P.resolver.actions=[[]]}function A(P){return C(P),new Promise(function(T,I){P.resolve?j(P,T,I):T(P)})}function E(P,T,I){return I||(I={}),I.openapi=P,I.source=T,I.resolve=!0,C(I),new Promise(function(L,M){j(I,L,M)})}return k7={optionalResolve:A,resolve:E},k7}var C7,SZ;function ARe(){if(SZ)return C7;SZ=1;function e(){return{depth:0,seen:new WeakMap,top:!0,combine:!1,allowRefSiblings:!1}}function t(r,n,o,i){if(typeof o.depth>"u"&&(o=e()),r===null||typeof r>"u")return r;if(typeof r.$ref<"u"){let a={$ref:r.$ref};return o.allowRefSiblings&&r.description&&(a.description=r.description),i(a,n,o),a}if(o.combine&&(r.allOf&&Array.isArray(r.allOf)&&r.allOf.length===1&&(r=Object.assign({},r.allOf[0],r),delete r.allOf),r.anyOf&&Array.isArray(r.anyOf)&&r.anyOf.length===1&&(r=Object.assign({},r.anyOf[0],r),delete r.anyOf),r.oneOf&&Array.isArray(r.oneOf)&&r.oneOf.length===1&&(r=Object.assign({},r.oneOf[0],r),delete r.oneOf)),i(r,n,o),o.seen.has(r))return r;if(typeof r=="object"&&r!==null&&o.seen.set(r,!0),o.top=!1,o.depth++,typeof r.items<"u"&&(o.property="items",t(r.items,r,o,i)),r.additionalItems&&typeof r.additionalItems=="object"&&(o.property="additionalItems",t(r.additionalItems,r,o,i)),r.additionalProperties&&typeof r.additionalProperties=="object"&&(o.property="additionalProperties",t(r.additionalProperties,r,o,i)),r.properties)for(let a in r.properties){let s=r.properties[a];o.property="properties/"+a,t(s,r,o,i)}if(r.patternProperties)for(let a in r.patternProperties){let s=r.patternProperties[a];o.property="patternProperties/"+a,t(s,r,o,i)}if(r.allOf)for(let a in r.allOf){let s=r.allOf[a];o.property="allOf/"+a,t(s,r,o,i)}if(r.anyOf)for(let a in r.anyOf){let s=r.anyOf[a];o.property="anyOf/"+a,t(s,r,o,i)}if(r.oneOf)for(let a in r.oneOf){let s=r.oneOf[a];o.property="oneOf/"+a,t(s,r,o,i)}return r.not&&(o.property="not",t(r.not,r,o,i)),o.depth--,r}return C7={getDefaultState:e,walkSchema:t},C7}var jZ={},S7={exports:{}},AZ={},EZ;function PZ(){return EZ||(EZ=1,function(e){e.fetch=o(globalThis.fetch)&&o(globalThis.ReadableStream),e.writableStream=o(globalThis.WritableStream),e.abortController=o(globalThis.AbortController);var t;function r(){if(t!==void 0)return t;if(globalThis.XMLHttpRequest){t=new globalThis.XMLHttpRequest;try{t.open("GET",globalThis.XDomainRequest?"/":"https://example.com")}catch{t=null}}else t=null;return t}function n(i){var a=r();if(!a)return!1;try{return a.responseType=i,a.responseType===i}catch{}return!1}e.arraybuffer=e.fetch||n("arraybuffer"),e.msstream=!e.fetch&&n("ms-stream"),e.mozchunkedarraybuffer=!e.fetch&&n("moz-chunked-arraybuffer"),e.overrideMimeType=e.fetch||(r()?o(r().overrideMimeType):!1);function o(i){return typeof i=="function"}t=null}(AZ)),AZ}var Cy={},j7={exports:{}},Sy={exports:{}},TZ;function ERe(){if(TZ)return Sy.exports;TZ=1;var e=typeof Reflect=="object"?Reflect:null,t=e&&typeof e.apply=="function"?e.apply:function(j,C,A){return Function.prototype.apply.call(j,C,A)},r;e&&typeof e.ownKeys=="function"?r=e.ownKeys:Object.getOwnPropertySymbols?r=function(j){return Object.getOwnPropertyNames(j).concat(Object.getOwnPropertySymbols(j))}:r=function(j){return Object.getOwnPropertyNames(j)};function n(j){console&&console.warn&&console.warn(j)}var o=Number.isNaN||function(j){return j!==j};function i(){i.init.call(this)}Sy.exports=i,Sy.exports.once=x,i.EventEmitter=i,i.prototype._events=void 0,i.prototype._eventsCount=0,i.prototype._maxListeners=void 0;var a=10;function s(j){if(typeof j!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof j)}Object.defineProperty(i,"defaultMaxListeners",{enumerable:!0,get:function(){return a},set:function(j){if(typeof j!="number"||j<0||o(j))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+j+".");a=j}}),i.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},i.prototype.setMaxListeners=function(j){if(typeof j!="number"||j<0||o(j))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+j+".");return this._maxListeners=j,this};function l(j){return j._maxListeners===void 0?i.defaultMaxListeners:j._maxListeners}i.prototype.getMaxListeners=function(){return l(this)},i.prototype.emit=function(j){for(var C=[],A=1;A<arguments.length;A++)C.push(arguments[A]);var E=j==="error",P=this._events;if(P!==void 0)E=E&&P.error===void 0;else if(!E)return!1;if(E){var T;if(C.length>0&&(T=C[0]),T instanceof Error)throw T;var I=new Error("Unhandled error."+(T?" ("+T.message+")":""));throw I.context=T,I}var L=P[j];if(L===void 0)return!1;if(typeof L=="function")t(L,this,C);else for(var M=L.length,N=v(L,M),A=0;A<M;++A)t(N[A],this,C);return!0};function c(j,C,A,E){var P,T,I;if(s(A),T=j._events,T===void 0?(T=j._events=Object.create(null),j._eventsCount=0):(T.newListener!==void 0&&(j.emit("newListener",C,A.listener?A.listener:A),T=j._events),I=T[C]),I===void 0)I=T[C]=A,++j._eventsCount;else if(typeof I=="function"?I=T[C]=E?[A,I]:[I,A]:E?I.unshift(A):I.push(A),P=l(j),P>0&&I.length>P&&!I.warned){I.warned=!0;var L=new Error("Possible EventEmitter memory leak detected. "+I.length+" "+String(C)+" listeners added. Use emitter.setMaxListeners() to increase limit");L.name="MaxListenersExceededWarning",L.emitter=j,L.type=C,L.count=I.length,n(L)}return j}i.prototype.addListener=function(j,C){return c(this,j,C,!1)},i.prototype.on=i.prototype.addListener,i.prototype.prependListener=function(j,C){return c(this,j,C,!0)};function u(){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 d(j,C,A){var E={fired:!1,wrapFn:void 0,target:j,type:C,listener:A},P=u.bind(E);return P.listener=A,E.wrapFn=P,P}i.prototype.once=function(j,C){return s(C),this.on(j,d(this,j,C)),this},i.prototype.prependOnceListener=function(j,C){return s(C),this.prependListener(j,d(this,j,C)),this},i.prototype.removeListener=function(j,C){var A,E,P,T,I;if(s(C),E=this._events,E===void 0)return this;if(A=E[j],A===void 0)return this;if(A===C||A.listener===C)--this._eventsCount===0?this._events=Object.create(null):(delete E[j],E.removeListener&&this.emit("removeListener",j,A.listener||C));else if(typeof A!="function"){for(P=-1,T=A.length-1;T>=0;T--)if(A[T]===C||A[T].listener===C){I=A[T].listener,P=T;break}if(P<0)return this;P===0?A.shift():b(A,P),A.length===1&&(E[j]=A[0]),E.removeListener!==void 0&&this.emit("removeListener",j,I||C)}return this},i.prototype.off=i.prototype.removeListener,i.prototype.removeAllListeners=function(j){var C,A,E;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[j]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete A[j]),this;if(arguments.length===0){var P=Object.keys(A),T;for(E=0;E<P.length;++E)T=P[E],T!=="removeListener"&&this.removeAllListeners(T);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if(C=A[j],typeof C=="function")this.removeListener(j,C);else if(C!==void 0)for(E=C.length-1;E>=0;E--)this.removeListener(j,C[E]);return this};function h(j,C,A){var E=j._events;if(E===void 0)return[];var P=E[C];return P===void 0?[]:typeof P=="function"?A?[P.listener||P]:[P]:A?y(P):v(P,P.length)}i.prototype.listeners=function(j){return h(this,j,!0)},i.prototype.rawListeners=function(j){return h(this,j,!1)},i.listenerCount=function(j,C){return typeof j.listenerCount=="function"?j.listenerCount(C):g.call(j,C)},i.prototype.listenerCount=g;function g(j){var C=this._events;if(C!==void 0){var A=C[j];if(typeof A=="function")return 1;if(A!==void 0)return A.length}return 0}i.prototype.eventNames=function(){return this._eventsCount>0?r(this._events):[]};function v(j,C){for(var A=new Array(C),E=0;E<C;++E)A[E]=j[E];return A}function b(j,C){for(;C+1<j.length;C++)j[C]=j[C+1];j.pop()}function y(j){for(var C=new Array(j.length),A=0;A<C.length;++A)C[A]=j[A].listener||j[A];return C}function x(j,C){return new Promise(function(A,E){function P(I){j.removeListener(C,T),E(I)}function T(){typeof j.removeListener=="function"&&j.removeListener("error",P),A([].slice.call(arguments))}k(j,C,T,{once:!0}),C!=="error"&&O(j,P,{once:!0})})}function O(j,C,A){typeof j.on=="function"&&k(j,"error",C,A)}function k(j,C,A,E){if(typeof j.on=="function")E.once?j.once(C,A):j.on(C,A);else if(typeof j.addEventListener=="function")j.addEventListener(C,function P(T){E.once&&j.removeEventListener(C,P),A(T)});else throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof j)}return Sy.exports}var _Z,$Z;function RZ(){return $Z||($Z=1,_Z=ERe().EventEmitter),_Z}const A7=Y_(Xje);var E7,IZ;function PRe(){if(IZ)return E7;IZ=1;function e(v,b){var y=Object.keys(v);if(Object.getOwnPropertySymbols){var x=Object.getOwnPropertySymbols(v);b&&(x=x.filter(function(O){return Object.getOwnPropertyDescriptor(v,O).enumerable})),y.push.apply(y,x)}return y}function t(v){for(var b=1;b<arguments.length;b++){var y=arguments[b]!=null?arguments[b]:{};b%2?e(Object(y),!0).forEach(function(x){r(v,x,y[x])}):Object.getOwnPropertyDescriptors?Object.defineProperties(v,Object.getOwnPropertyDescriptors(y)):e(Object(y)).forEach(function(x){Object.defineProperty(v,x,Object.getOwnPropertyDescriptor(y,x))})}return v}function r(v,b,y){return b=a(b),b in v?Object.defineProperty(v,b,{value:y,enumerable:!0,configurable:!0,writable:!0}):v[b]=y,v}function n(v,b){if(!(v instanceof b))throw new TypeError("Cannot call a class as a function")}function o(v,b){for(var y=0;y<b.length;y++){var x=b[y];x.enumerable=x.enumerable||!1,x.configurable=!0,"value"in x&&(x.writable=!0),Object.defineProperty(v,a(x.key),x)}}function i(v,b,y){return b&&o(v.prototype,b),Object.defineProperty(v,"prototype",{writable:!1}),v}function a(v){var b=s(v,"string");return typeof b=="symbol"?b:String(b)}function s(v,b){if(typeof v!="object"||v===null)return v;var y=v[Symbol.toPrimitive];if(y!==void 0){var x=y.call(v,b);if(typeof x!="object")return x;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(v)}var l=xy(),c=l.Buffer,u=A7,d=u.inspect,h=d&&d.custom||"inspect";function g(v,b,y){c.prototype.copy.call(v,b,y)}return E7=function(){function v(){n(this,v),this.head=null,this.tail=null,this.length=0}return i(v,[{key:"push",value:function(b){var y={data:b,next:null};this.length>0?this.tail.next=y:this.head=y,this.tail=y,++this.length}},{key:"unshift",value:function(b){var y={data:b,next:this.head};this.length===0&&(this.tail=y),this.head=y,++this.length}},{key:"shift",value:function(){if(this.length!==0){var b=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,b}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(b){if(this.length===0)return"";for(var y=this.head,x=""+y.data;y=y.next;)x+=b+y.data;return x}},{key:"concat",value:function(b){if(this.length===0)return c.alloc(0);for(var y=c.allocUnsafe(b>>>0),x=this.head,O=0;x;)g(x.data,y,O),O+=x.data.length,x=x.next;return y}},{key:"consume",value:function(b,y){var x;return b<this.head.data.length?(x=this.head.data.slice(0,b),this.head.data=this.head.data.slice(b)):b===this.head.data.length?x=this.shift():x=y?this._getString(b):this._getBuffer(b),x}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(b){var y=this.head,x=1,O=y.data;for(b-=O.length;y=y.next;){var k=y.data,j=b>k.length?k.length:b;if(j===k.length?O+=k:O+=k.slice(0,b),b-=j,b===0){j===k.length?(++x,y.next?this.head=y.next:this.head=this.tail=null):(this.head=y,y.data=k.slice(j));break}++x}return this.length-=x,O}},{key:"_getBuffer",value:function(b){var y=c.allocUnsafe(b),x=this.head,O=1;for(x.data.copy(y),b-=x.data.length;x=x.next;){var k=x.data,j=b>k.length?k.length:b;if(k.copy(y,y.length-b,0,j),b-=j,b===0){j===k.length?(++O,x.next?this.head=x.next:this.head=this.tail=null):(this.head=x,x.data=k.slice(j));break}++O}return this.length-=O,y}},{key:h,value:function(b,y){return d(this,t(t({},y),{},{depth:0,customInspect:!1}))}}]),v}(),E7}var P7,MZ;function zZ(){if(MZ)return P7;MZ=1;function e(a,s){var l=this,c=this._readableState&&this._readableState.destroyed,u=this._writableState&&this._writableState.destroyed;return c||u?(s?s(a):a&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,process.nextTick(o,this,a)):process.nextTick(o,this,a)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(a||null,function(d){!s&&d?l._writableState?l._writableState.errorEmitted?process.nextTick(r,l):(l._writableState.errorEmitted=!0,process.nextTick(t,l,d)):process.nextTick(t,l,d):s?(process.nextTick(r,l),s(d)):process.nextTick(r,l)}),this)}function t(a,s){o(a,s),r(a)}function r(a){a._writableState&&!a._writableState.emitClose||a._readableState&&!a._readableState.emitClose||a.emit("close")}function n(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function o(a,s){a.emit("error",s)}function i(a,s){var l=a._readableState,c=a._writableState;l&&l.autoDestroy||c&&c.autoDestroy?a.destroy(s):a.emit("error",s)}return P7={destroy:e,undestroy:n,errorOrDestroy:i},P7}var T7={},LZ;function jh(){if(LZ)return T7;LZ=1;function e(s,l){s.prototype=Object.create(l.prototype),s.prototype.constructor=s,s.__proto__=l}var t={};function r(s,l,c){c||(c=Error);function u(h,g,v){return typeof l=="string"?l:l(h,g,v)}var d=function(h){e(g,h);function g(v,b,y){return h.call(this,u(v,b,y))||this}return g}(c);d.prototype.name=c.name,d.prototype.code=s,t[s]=d}function n(s,l){if(Array.isArray(s)){var c=s.length;return s=s.map(function(u){return String(u)}),c>2?"one of ".concat(l," ").concat(s.slice(0,c-1).join(", "),", or ")+s[c-1]:c===2?"one of ".concat(l," ").concat(s[0]," or ").concat(s[1]):"of ".concat(l," ").concat(s[0])}else return"of ".concat(l," ").concat(String(s))}function o(s,l,c){return s.substr(0,l.length)===l}function i(s,l,c){return(c===void 0||c>s.length)&&(c=s.length),s.substring(c-l.length,c)===l}function a(s,l,c){return typeof c!="number"&&(c=0),c+l.length>s.length?!1:s.indexOf(l,c)!==-1}return r("ERR_INVALID_OPT_VALUE",function(s,l){return'The value "'+l+'" is invalid for option "'+s+'"'},TypeError),r("ERR_INVALID_ARG_TYPE",function(s,l,c){var u;typeof l=="string"&&o(l,"not ")?(u="must not be",l=l.replace(/^not /,"")):u="must be";var d;if(i(s," argument"))d="The ".concat(s," ").concat(u," ").concat(n(l,"type"));else{var h=a(s,".")?"property":"argument";d='The "'.concat(s,'" ').concat(h," ").concat(u," ").concat(n(l,"type"))}return d+=". Received type ".concat(typeof c),d},TypeError),r("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),r("ERR_METHOD_NOT_IMPLEMENTED",function(s){return"The "+s+" method is not implemented"}),r("ERR_STREAM_PREMATURE_CLOSE","Premature close"),r("ERR_STREAM_DESTROYED",function(s){return"Cannot call "+s+" after a stream was destroyed"}),r("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),r("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),r("ERR_STREAM_WRITE_AFTER_END","write after end"),r("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),r("ERR_UNKNOWN_ENCODING",function(s){return"Unknown encoding: "+s},TypeError),r("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),T7.codes=t,T7}var _7,DZ;function NZ(){if(DZ)return _7;DZ=1;var e=jh().codes.ERR_INVALID_OPT_VALUE;function t(n,o,i){return n.highWaterMark!=null?n.highWaterMark:o?n[i]:null}function r(n,o,i,a){var s=t(o,a,i);if(s!=null){if(!(isFinite(s)&&Math.floor(s)===s)||s<0){var l=a?i:"highWaterMark";throw new e(l,s)}return Math.floor(s)}return n.objectMode?16:16*1024}return _7={getHighWaterMark:r},_7}var $7,BZ;function TRe(){if(BZ)return $7;BZ=1,$7=e;function e(r,n){if(t("noDeprecation"))return r;var o=!1;function i(){if(!o){if(t("throwDeprecation"))throw new Error(n);t("traceDeprecation")?console.trace(n):console.warn(n),o=!0}return r.apply(this,arguments)}return i}function t(r){try{if(!globalThis.localStorage)return!1}catch{return!1}var n=globalThis.localStorage[r];return n==null?!1:String(n).toLowerCase()==="true"}return $7}var R7,VZ;function FZ(){if(VZ)return R7;VZ=1,R7=P;function e(G){var oe=this;this.next=null,this.entry=null,this.finish=function(){re(oe,G)}}var t;P.WritableState=A;var r={deprecate:TRe()},n=RZ(),o=xy().Buffer,i=(typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function a(G){return o.from(G)}function s(G){return o.isBuffer(G)||G instanceof i}var l=zZ(),c=NZ(),u=c.getHighWaterMark,d=jh().codes,h=d.ERR_INVALID_ARG_TYPE,g=d.ERR_METHOD_NOT_IMPLEMENTED,v=d.ERR_MULTIPLE_CALLBACK,b=d.ERR_STREAM_CANNOT_PIPE,y=d.ERR_STREAM_DESTROYED,x=d.ERR_STREAM_NULL_VALUES,O=d.ERR_STREAM_WRITE_AFTER_END,k=d.ERR_UNKNOWN_ENCODING,j=l.errorOrDestroy;function C(){}function A(G,oe,ne){t=t||Ah(),G=G||{},typeof ne!="boolean"&&(ne=oe instanceof t),this.objectMode=!!G.objectMode,ne&&(this.objectMode=this.objectMode||!!G.writableObjectMode),this.highWaterMark=u(this,G,"writableHighWaterMark",ne),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var be=G.decodeStrings===!1;this.decodeStrings=!be,this.defaultEncoding=G.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(ve){X(oe,ve)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=G.emitClose!==!1,this.autoDestroy=!!G.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new e(this)}A.prototype.getBuffer=function(){for(var G=this.bufferedRequest,oe=[];G;)oe.push(G),G=G.next;return oe},function(){try{Object.defineProperty(A.prototype,"buffer",{get:r.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}}();var E;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(E=Function.prototype[Symbol.hasInstance],Object.defineProperty(P,Symbol.hasInstance,{value:function(G){return E.call(this,G)?!0:this!==P?!1:G&&G._writableState instanceof A}})):E=function(G){return G instanceof this};function P(G){t=t||Ah();var oe=this instanceof t;if(!oe&&!E.call(P,this))return new P(G);this._writableState=new A(G,this,oe),this.writable=!0,G&&(typeof G.write=="function"&&(this._write=G.write),typeof G.writev=="function"&&(this._writev=G.writev),typeof G.destroy=="function"&&(this._destroy=G.destroy),typeof G.final=="function"&&(this._final=G.final)),n.call(this)}P.prototype.pipe=function(){j(this,new b)};function T(G,oe){var ne=new O;j(G,ne),process.nextTick(oe,ne)}function I(G,oe,ne,be){var ve;return ne===null?ve=new x:typeof ne!="string"&&!oe.objectMode&&(ve=new h("chunk",["string","Buffer"],ne)),ve?(j(G,ve),process.nextTick(be,ve),!1):!0}P.prototype.write=function(G,oe,ne){var be=this._writableState,ve=!1,_=!be.objectMode&&s(G);return _&&!o.isBuffer(G)&&(G=a(G)),typeof oe=="function"&&(ne=oe,oe=null),_?oe="buffer":oe||(oe=be.defaultEncoding),typeof ne!="function"&&(ne=C),be.ending?T(this,ne):(_||I(this,be,G,ne))&&(be.pendingcb++,ve=M(this,be,_,G,oe,ne)),ve},P.prototype.cork=function(){this._writableState.corked++},P.prototype.uncork=function(){var G=this._writableState;G.corked&&(G.corked--,!G.writing&&!G.corked&&!G.bufferProcessing&&G.bufferedRequest&&se(this,G))},P.prototype.setDefaultEncoding=function(G){if(typeof G=="string"&&(G=G.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((G+"").toLowerCase())>-1))throw new k(G);return this._writableState.defaultEncoding=G,this},Object.defineProperty(P.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});function L(G,oe,ne){return!G.objectMode&&G.decodeStrings!==!1&&typeof oe=="string"&&(oe=o.from(oe,ne)),oe}Object.defineProperty(P.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function M(G,oe,ne,be,ve,_){if(!ne){var Z=L(oe,be,ve);be!==Z&&(ne=!0,ve="buffer",be=Z)}var fe=oe.objectMode?1:be.length;oe.length+=fe;var F=oe.length<oe.highWaterMark;if(F||(oe.needDrain=!0),oe.writing||oe.corked){var he=oe.lastBufferedRequest;oe.lastBufferedRequest={chunk:be,encoding:ve,isBuf:ne,callback:_,next:null},he?he.next=oe.lastBufferedRequest:oe.bufferedRequest=oe.lastBufferedRequest,oe.bufferedRequestCount+=1}else N(G,oe,!1,fe,be,ve,_);return F}function N(G,oe,ne,be,ve,_,Z){oe.writelen=be,oe.writecb=Z,oe.writing=!0,oe.sync=!0,oe.destroyed?oe.onwrite(new y("write")):ne?G._writev(ve,oe.onwrite):G._write(ve,_,oe.onwrite),oe.sync=!1}function z(G,oe,ne,be,ve){--oe.pendingcb,ne?(process.nextTick(ve,be),process.nextTick(q,G,oe),G._writableState.errorEmitted=!0,j(G,be)):(ve(be),G._writableState.errorEmitted=!0,j(G,be),q(G,oe))}function U(G){G.writing=!1,G.writecb=null,G.length-=G.writelen,G.writelen=0}function X(G,oe){var ne=G._writableState,be=ne.sync,ve=ne.writecb;if(typeof ve!="function")throw new v;if(U(ne),oe)z(G,ne,be,oe,ve);else{var _=W(ne)||G.destroyed;!_&&!ne.corked&&!ne.bufferProcessing&&ne.bufferedRequest&&se(G,ne),be?process.nextTick(te,G,ne,_,ve):te(G,ne,_,ve)}}function te(G,oe,ne,be){ne||ee(G,oe),oe.pendingcb--,be(),q(G,oe)}function ee(G,oe){oe.length===0&&oe.needDrain&&(oe.needDrain=!1,G.emit("drain"))}function se(G,oe){oe.bufferProcessing=!0;var ne=oe.bufferedRequest;if(G._writev&&ne&&ne.next){var be=oe.bufferedRequestCount,ve=new Array(be),_=oe.corkedRequestsFree;_.entry=ne;for(var Z=0,fe=!0;ne;)ve[Z]=ne,ne.isBuf||(fe=!1),ne=ne.next,Z+=1;ve.allBuffers=fe,N(G,oe,!0,oe.length,ve,"",_.finish),oe.pendingcb++,oe.lastBufferedRequest=null,_.next?(oe.corkedRequestsFree=_.next,_.next=null):oe.corkedRequestsFree=new e(oe),oe.bufferedRequestCount=0}else{for(;ne;){var F=ne.chunk,he=ne.encoding,ue=ne.callback,K=oe.objectMode?1:F.length;if(N(G,oe,!1,K,F,he,ue),ne=ne.next,oe.bufferedRequestCount--,oe.writing)break}ne===null&&(oe.lastBufferedRequest=null)}oe.bufferedRequest=ne,oe.bufferProcessing=!1}P.prototype._write=function(G,oe,ne){ne(new g("_write()"))},P.prototype._writev=null,P.prototype.end=function(G,oe,ne){var be=this._writableState;return typeof G=="function"?(ne=G,G=null,oe=null):typeof oe=="function"&&(ne=oe,oe=null),G!=null&&this.write(G,oe),be.corked&&(be.corked=1,this.uncork()),be.ending||H(this,be,ne),this},Object.defineProperty(P.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function W(G){return G.ending&&G.length===0&&G.bufferedRequest===null&&!G.finished&&!G.writing}function Q(G,oe){G._final(function(ne){oe.pendingcb--,ne&&j(G,ne),oe.prefinished=!0,G.emit("prefinish"),q(G,oe)})}function Y(G,oe){!oe.prefinished&&!oe.finalCalled&&(typeof G._final=="function"&&!oe.destroyed?(oe.pendingcb++,oe.finalCalled=!0,process.nextTick(Q,G,oe)):(oe.prefinished=!0,G.emit("prefinish")))}function q(G,oe){var ne=W(oe);if(ne&&(Y(G,oe),oe.pendingcb===0&&(oe.finished=!0,G.emit("finish"),oe.autoDestroy))){var be=G._readableState;(!be||be.autoDestroy&&be.endEmitted)&&G.destroy()}return ne}function H(G,oe,ne){oe.ending=!0,q(G,oe),ne&&(oe.finished?process.nextTick(ne):G.once("finish",ne)),oe.ended=!0,G.writable=!1}function re(G,oe,ne){var be=G.entry;for(G.entry=null;be;){var ve=be.callback;oe.pendingcb--,ve(ne),be=be.next}oe.corkedRequestsFree.next=G}return Object.defineProperty(P.prototype,"destroyed",{enumerable:!1,get:function(){return this._writableState===void 0?!1:this._writableState.destroyed},set:function(G){this._writableState&&(this._writableState.destroyed=G)}}),P.prototype.destroy=l.destroy,P.prototype._undestroy=l.undestroy,P.prototype._destroy=function(G,oe){oe(G)},R7}var I7,QZ;function Ah(){if(QZ)return I7;QZ=1;var e=Object.keys||function(c){var u=[];for(var d in c)u.push(d);return u};I7=a;for(var t=JZ(),r=FZ(),n=e(r.prototype),o=0;o<n.length;o++){var i=n[o];a.prototype[i]||(a.prototype[i]=r.prototype[i])}function a(c){if(!(this instanceof a))return new a(c);t.call(this,c),r.call(this,c),this.allowHalfOpen=!0,c&&(c.readable===!1&&(this.readable=!1),c.writable===!1&&(this.writable=!1),c.allowHalfOpen===!1&&(this.allowHalfOpen=!1,this.once("end",s)))}Object.defineProperty(a.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(a.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(a.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function s(){this._writableState.ended||process.nextTick(l,this)}function l(c){c.end()}return Object.defineProperty(a.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0||this._writableState===void 0?!1:this._readableState.destroyed&&this._writableState.destroyed},set:function(c){this._readableState===void 0||this._writableState===void 0||(this._readableState.destroyed=c,this._writableState.destroyed=c)}}),I7}var M7={},z7={exports:{}};/*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */var qZ;function _Re(){return qZ||(qZ=1,function(e,t){var r=xy(),n=r.Buffer;function o(a,s){for(var l in a)s[l]=a[l]}n.from&&n.alloc&&n.allocUnsafe&&n.allocUnsafeSlow?e.exports=r:(o(r,t),t.Buffer=i);function i(a,s,l){return n(a,s,l)}i.prototype=Object.create(n.prototype),o(n,i),i.from=function(a,s,l){if(typeof a=="number")throw new TypeError("Argument must not be a number");return n(a,s,l)},i.alloc=function(a,s,l){if(typeof a!="number")throw new TypeError("Argument must be a number");var c=n(a);return s!==void 0?typeof l=="string"?c.fill(s,l):c.fill(s):c.fill(0),c},i.allocUnsafe=function(a){if(typeof a!="number")throw new TypeError("Argument must be a number");return n(a)},i.allocUnsafeSlow=function(a){if(typeof a!="number")throw new TypeError("Argument must be a number");return r.SlowBuffer(a)}}(z7,z7.exports)),z7.exports}var ZZ;function WZ(){if(ZZ)return M7;ZZ=1;var e=_Re().Buffer,t=e.isEncoding||function(x){switch(x=""+x,x&&x.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 r(x){if(!x)return"utf8";for(var O;;)switch(x){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 x;default:if(O)return;x=(""+x).toLowerCase(),O=!0}}function n(x){var O=r(x);if(typeof O!="string"&&(e.isEncoding===t||!t(x)))throw new Error("Unknown encoding: "+x);return O||x}M7.StringDecoder=o;function o(x){this.encoding=n(x);var O;switch(this.encoding){case"utf16le":this.text=d,this.end=h,O=4;break;case"utf8":this.fillLast=l,O=4;break;case"base64":this.text=g,this.end=v,O=3;break;default:this.write=b,this.end=y;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=e.allocUnsafe(O)}o.prototype.write=function(x){if(x.length===0)return"";var O,k;if(this.lastNeed){if(O=this.fillLast(x),O===void 0)return"";k=this.lastNeed,this.lastNeed=0}else k=0;return k<x.length?O?O+this.text(x,k):this.text(x,k):O||""},o.prototype.end=u,o.prototype.text=c,o.prototype.fillLast=function(x){if(this.lastNeed<=x.length)return x.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);x.copy(this.lastChar,this.lastTotal-this.lastNeed,0,x.length),this.lastNeed-=x.length};function i(x){return x<=127?0:x>>5===6?2:x>>4===14?3:x>>3===30?4:x>>6===2?-1:-2}function a(x,O,k){var j=O.length-1;if(j<k)return 0;var C=i(O[j]);return C>=0?(C>0&&(x.lastNeed=C-1),C):--j<k||C===-2?0:(C=i(O[j]),C>=0?(C>0&&(x.lastNeed=C-2),C):--j<k||C===-2?0:(C=i(O[j]),C>=0?(C>0&&(C===2?C=0:x.lastNeed=C-3),C):0))}function s(x,O,k){if((O[0]&192)!==128)return x.lastNeed=0,"\uFFFD";if(x.lastNeed>1&&O.length>1){if((O[1]&192)!==128)return x.lastNeed=1,"\uFFFD";if(x.lastNeed>2&&O.length>2&&(O[2]&192)!==128)return x.lastNeed=2,"\uFFFD"}}function l(x){var O=this.lastTotal-this.lastNeed,k=s(this,x);if(k!==void 0)return k;if(this.lastNeed<=x.length)return x.copy(this.lastChar,O,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);x.copy(this.lastChar,O,0,x.length),this.lastNeed-=x.length}function c(x,O){var k=a(this,x,O);if(!this.lastNeed)return x.toString("utf8",O);this.lastTotal=k;var j=x.length-(k-this.lastNeed);return x.copy(this.lastChar,0,j),x.toString("utf8",O,j)}function u(x){var O=x&&x.length?this.write(x):"";return this.lastNeed?O+"\uFFFD":O}function d(x,O){if((x.length-O)%2===0){var k=x.toString("utf16le",O);if(k){var j=k.charCodeAt(k.length-1);if(j>=55296&&j<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=x[x.length-2],this.lastChar[1]=x[x.length-1],k.slice(0,-1)}return k}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=x[x.length-1],x.toString("utf16le",O,x.length-1)}function h(x){var O=x&&x.length?this.write(x):"";if(this.lastNeed){var k=this.lastTotal-this.lastNeed;return O+this.lastChar.toString("utf16le",0,k)}return O}function g(x,O){var k=(x.length-O)%3;return k===0?x.toString("base64",O):(this.lastNeed=3-k,this.lastTotal=3,k===1?this.lastChar[0]=x[x.length-1]:(this.lastChar[0]=x[x.length-2],this.lastChar[1]=x[x.length-1]),x.toString("base64",O,x.length-k))}function v(x){var O=x&&x.length?this.write(x):"";return this.lastNeed?O+this.lastChar.toString("base64",0,3-this.lastNeed):O}function b(x){return x.toString(this.encoding)}function y(x){return x&&x.length?this.write(x):""}return M7}var L7,UZ;function D7(){if(UZ)return L7;UZ=1;var e=jh().codes.ERR_STREAM_PREMATURE_CLOSE;function t(i){var a=!1;return function(){if(!a){a=!0;for(var s=arguments.length,l=new Array(s),c=0;c<s;c++)l[c]=arguments[c];i.apply(this,l)}}}function r(){}function n(i){return i.setHeader&&typeof i.abort=="function"}function o(i,a,s){if(typeof a=="function")return o(i,null,a);a||(a={}),s=t(s||r);var l=a.readable||a.readable!==!1&&i.readable,c=a.writable||a.writable!==!1&&i.writable,u=function(){i.writable||h()},d=i._writableState&&i._writableState.finished,h=function(){c=!1,d=!0,l||s.call(i)},g=i._readableState&&i._readableState.endEmitted,v=function(){l=!1,g=!0,c||s.call(i)},b=function(O){s.call(i,O)},y=function(){var O;if(l&&!g)return(!i._readableState||!i._readableState.ended)&&(O=new e),s.call(i,O);if(c&&!d)return(!i._writableState||!i._writableState.ended)&&(O=new e),s.call(i,O)},x=function(){i.req.on("finish",h)};return n(i)?(i.on("complete",h),i.on("abort",y),i.req?x():i.on("request",x)):c&&!i._writableState&&(i.on("end",u),i.on("close",u)),i.on("end",v),i.on("finish",h),a.error!==!1&&i.on("error",b),i.on("close",y),function(){i.removeListener("complete",h),i.removeListener("abort",y),i.removeListener("request",x),i.req&&i.req.removeListener("finish",h),i.removeListener("end",u),i.removeListener("close",u),i.removeListener("finish",h),i.removeListener("end",v),i.removeListener("error",b),i.removeListener("close",y)}}return L7=o,L7}var N7,HZ;function $Re(){if(HZ)return N7;HZ=1;var e;function t(k,j,C){return j=r(j),j in k?Object.defineProperty(k,j,{value:C,enumerable:!0,configurable:!0,writable:!0}):k[j]=C,k}function r(k){var j=n(k,"string");return typeof j=="symbol"?j:String(j)}function n(k,j){if(typeof k!="object"||k===null)return k;var C=k[Symbol.toPrimitive];if(C!==void 0){var A=C.call(k,j);if(typeof A!="object")return A;throw new TypeError("@@toPrimitive must return a primitive value.")}return(j==="string"?String:Number)(k)}var o=D7(),i=Symbol("lastResolve"),a=Symbol("lastReject"),s=Symbol("error"),l=Symbol("ended"),c=Symbol("lastPromise"),u=Symbol("handlePromise"),d=Symbol("stream");function h(k,j){return{value:k,done:j}}function g(k){var j=k[i];if(j!==null){var C=k[d].read();C!==null&&(k[c]=null,k[i]=null,k[a]=null,j(h(C,!1)))}}function v(k){process.nextTick(g,k)}function b(k,j){return function(C,A){k.then(function(){if(j[l]){C(h(void 0,!0));return}j[u](C,A)},A)}}var y=Object.getPrototypeOf(function(){}),x=Object.setPrototypeOf((e={get stream(){return this[d]},next:function(){var k=this,j=this[s];if(j!==null)return Promise.reject(j);if(this[l])return Promise.resolve(h(void 0,!0));if(this[d].destroyed)return new Promise(function(P,T){process.nextTick(function(){k[s]?T(k[s]):P(h(void 0,!0))})});var C=this[c],A;if(C)A=new Promise(b(C,this));else{var E=this[d].read();if(E!==null)return Promise.resolve(h(E,!1));A=new Promise(this[u])}return this[c]=A,A}},t(e,Symbol.asyncIterator,function(){return this}),t(e,"return",function(){var k=this;return new Promise(function(j,C){k[d].destroy(null,function(A){if(A){C(A);return}j(h(void 0,!0))})})}),e),y),O=function(k){var j,C=Object.create(x,(j={},t(j,d,{value:k,writable:!0}),t(j,i,{value:null,writable:!0}),t(j,a,{value:null,writable:!0}),t(j,s,{value:null,writable:!0}),t(j,l,{value:k._readableState.endEmitted,writable:!0}),t(j,u,{value:function(A,E){var P=C[d].read();P?(C[c]=null,C[i]=null,C[a]=null,A(h(P,!1))):(C[i]=A,C[a]=E)},writable:!0}),j));return C[c]=null,o(k,function(A){if(A&&A.code!=="ERR_STREAM_PREMATURE_CLOSE"){var E=C[a];E!==null&&(C[c]=null,C[i]=null,C[a]=null,E(A)),C[s]=A;return}var P=C[i];P!==null&&(C[c]=null,C[i]=null,C[a]=null,P(h(void 0,!0))),C[l]=!0}),k.on("readable",v.bind(null,C)),C};return N7=O,N7}var XZ,YZ;function RRe(){return YZ||(YZ=1,XZ=function(){throw new Error("Readable.from is not available in the browser")}),XZ}var B7,GZ;function JZ(){if(GZ)return B7;GZ=1,B7=T;var e;T.ReadableState=P;var t=function(_,Z){return _.listeners(Z).length},r=RZ(),n=xy().Buffer,o=(typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function i(_){return n.from(_)}function a(_){return n.isBuffer(_)||_ instanceof o}var s=A7,l;s&&s.debuglog?l=s.debuglog("stream"):l=function(){};var c=PRe(),u=zZ(),d=NZ(),h=d.getHighWaterMark,g=jh().codes,v=g.ERR_INVALID_ARG_TYPE,b=g.ERR_STREAM_PUSH_AFTER_EOF,y=g.ERR_METHOD_NOT_IMPLEMENTED,x=g.ERR_STREAM_UNSHIFT_AFTER_END_EVENT,O,k,j,C=u.errorOrDestroy,A=["error","close","destroy","pause","resume"];function E(_,Z,fe){if(typeof _.prependListener=="function")return _.prependListener(Z,fe);!_._events||!_._events[Z]?_.on(Z,fe):Array.isArray(_._events[Z])?_._events[Z].unshift(fe):_._events[Z]=[fe,_._events[Z]]}function P(_,Z,fe){e=e||Ah(),_=_||{},typeof fe!="boolean"&&(fe=Z instanceof e),this.objectMode=!!_.objectMode,fe&&(this.objectMode=this.objectMode||!!_.readableObjectMode),this.highWaterMark=h(this,_,"readableHighWaterMark",fe),this.buffer=new c,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=_.emitClose!==!1,this.autoDestroy=!!_.autoDestroy,this.destroyed=!1,this.defaultEncoding=_.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,_.encoding&&(O||(O=WZ().StringDecoder),this.decoder=new O(_.encoding),this.encoding=_.encoding)}function T(_){if(e=e||Ah(),!(this instanceof T))return new T(_);var Z=this instanceof e;this._readableState=new P(_,this,Z),this.readable=!0,_&&(typeof _.read=="function"&&(this._read=_.read),typeof _.destroy=="function"&&(this._destroy=_.destroy)),r.call(this)}Object.defineProperty(T.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(_){this._readableState&&(this._readableState.destroyed=_)}}),T.prototype.destroy=u.destroy,T.prototype._undestroy=u.undestroy,T.prototype._destroy=function(_,Z){Z(_)},T.prototype.push=function(_,Z){var fe=this._readableState,F;return fe.objectMode?F=!0:typeof _=="string"&&(Z=Z||fe.defaultEncoding,Z!==fe.encoding&&(_=n.from(_,Z),Z=""),F=!0),I(this,_,Z,!1,F)},T.prototype.unshift=function(_){return I(this,_,null,!0,!1)};function I(_,Z,fe,F,he){l("readableAddChunk",Z);var ue=_._readableState;if(Z===null)ue.reading=!1,X(_,ue);else{var K;if(he||(K=M(ue,Z)),K)C(_,K);else if(ue.objectMode||Z&&Z.length>0)if(typeof Z!="string"&&!ue.objectMode&&Object.getPrototypeOf(Z)!==n.prototype&&(Z=i(Z)),F)ue.endEmitted?C(_,new x):L(_,ue,Z,!0);else if(ue.ended)C(_,new b);else{if(ue.destroyed)return!1;ue.reading=!1,ue.decoder&&!fe?(Z=ue.decoder.write(Z),ue.objectMode||Z.length!==0?L(_,ue,Z,!1):se(_,ue)):L(_,ue,Z,!1)}else F||(ue.reading=!1,se(_,ue))}return!ue.ended&&(ue.length<ue.highWaterMark||ue.length===0)}function L(_,Z,fe,F){Z.flowing&&Z.length===0&&!Z.sync?(Z.awaitDrain=0,_.emit("data",fe)):(Z.length+=Z.objectMode?1:fe.length,F?Z.buffer.unshift(fe):Z.buffer.push(fe),Z.needReadable&&te(_)),se(_,Z)}function M(_,Z){var fe;return!a(Z)&&typeof Z!="string"&&Z!==void 0&&!_.objectMode&&(fe=new v("chunk",["string","Buffer","Uint8Array"],Z)),fe}T.prototype.isPaused=function(){return this._readableState.flowing===!1},T.prototype.setEncoding=function(_){O||(O=WZ().StringDecoder);var Z=new O(_);this._readableState.decoder=Z,this._readableState.encoding=this._readableState.decoder.encoding;for(var fe=this._readableState.buffer.head,F="";fe!==null;)F+=Z.write(fe.data),fe=fe.next;return this._readableState.buffer.clear(),F!==""&&this._readableState.buffer.push(F),this._readableState.length=F.length,this};var N=1073741824;function z(_){return _>=N?_=N:(_--,_|=_>>>1,_|=_>>>2,_|=_>>>4,_|=_>>>8,_|=_>>>16,_++),_}function U(_,Z){return _<=0||Z.length===0&&Z.ended?0:Z.objectMode?1:_!==_?Z.flowing&&Z.length?Z.buffer.head.data.length:Z.length:(_>Z.highWaterMark&&(Z.highWaterMark=z(_)),_<=Z.length?_:Z.ended?Z.length:(Z.needReadable=!0,0))}T.prototype.read=function(_){l("read",_),_=parseInt(_,10);var Z=this._readableState,fe=_;if(_!==0&&(Z.emittedReadable=!1),_===0&&Z.needReadable&&((Z.highWaterMark!==0?Z.length>=Z.highWaterMark:Z.length>0)||Z.ended))return l("read: emitReadable",Z.length,Z.ended),Z.length===0&&Z.ended?ne(this):te(this),null;if(_=U(_,Z),_===0&&Z.ended)return Z.length===0&&ne(this),null;var F=Z.needReadable;l("need readable",F),(Z.length===0||Z.length-_<Z.highWaterMark)&&(F=!0,l("length less than watermark",F)),Z.ended||Z.reading?(F=!1,l("reading or ended",F)):F&&(l("do read"),Z.reading=!0,Z.sync=!0,Z.length===0&&(Z.needReadable=!0),this._read(Z.highWaterMark),Z.sync=!1,Z.reading||(_=U(fe,Z)));var he;return _>0?he=oe(_,Z):he=null,he===null?(Z.needReadable=Z.length<=Z.highWaterMark,_=0):(Z.length-=_,Z.awaitDrain=0),Z.length===0&&(Z.ended||(Z.needReadable=!0),fe!==_&&Z.ended&&ne(this)),he!==null&&this.emit("data",he),he};function X(_,Z){if(l("onEofChunk"),!Z.ended){if(Z.decoder){var fe=Z.decoder.end();fe&&fe.length&&(Z.buffer.push(fe),Z.length+=Z.objectMode?1:fe.length)}Z.ended=!0,Z.sync?te(_):(Z.needReadable=!1,Z.emittedReadable||(Z.emittedReadable=!0,ee(_)))}}function te(_){var Z=_._readableState;l("emitReadable",Z.needReadable,Z.emittedReadable),Z.needReadable=!1,Z.emittedReadable||(l("emitReadable",Z.flowing),Z.emittedReadable=!0,process.nextTick(ee,_))}function ee(_){var Z=_._readableState;l("emitReadable_",Z.destroyed,Z.length,Z.ended),!Z.destroyed&&(Z.length||Z.ended)&&(_.emit("readable"),Z.emittedReadable=!1),Z.needReadable=!Z.flowing&&!Z.ended&&Z.length<=Z.highWaterMark,G(_)}function se(_,Z){Z.readingMore||(Z.readingMore=!0,process.nextTick(W,_,Z))}function W(_,Z){for(;!Z.reading&&!Z.ended&&(Z.length<Z.highWaterMark||Z.flowing&&Z.length===0);){var fe=Z.length;if(l("maybeReadMore read 0"),_.read(0),fe===Z.length)break}Z.readingMore=!1}T.prototype._read=function(_){C(this,new y("_read()"))},T.prototype.pipe=function(_,Z){var fe=this,F=this._readableState;switch(F.pipesCount){case 0:F.pipes=_;break;case 1:F.pipes=[F.pipes,_];break;default:F.pipes.push(_);break}F.pipesCount+=1,l("pipe count=%d opts=%j",F.pipesCount,Z);var he=(!Z||Z.end!==!1)&&_!==null&&_!==process.stderr,ue=he?ae:Ue;F.endEmitted?process.nextTick(ue):fe.once("end",ue),_.on("unpipe",K);function K(B,J){l("onunpipe"),B===fe&&J&&J.hasUnpiped===!1&&(J.hasUnpiped=!0,Se())}function ae(){l("onend"),_.end()}var le=Q(fe);_.on("drain",le);var Ce=!1;function Se(){l("cleanup"),_.removeListener("close",xe),_.removeListener("finish",Ee),_.removeListener("drain",le),_.removeListener("error",ye),_.removeListener("unpipe",K),fe.removeListener("end",ae),fe.removeListener("end",Ue),fe.removeListener("data",me),Ce=!0,F.awaitDrain&&(!_._writableState||_._writableState.needDrain)&&le()}fe.on("data",me);function me(B){l("ondata");var J=_.write(B);l("dest.write",J),J===!1&&((F.pipesCount===1&&F.pipes===_||F.pipesCount>1&&ve(F.pipes,_)!==-1)&&!Ce&&(l("false write response, pause",F.awaitDrain),F.awaitDrain++),fe.pause())}function ye(B){l("onerror",B),Ue(),_.removeListener("error",ye),t(_,"error")===0&&C(_,B)}E(_,"error",ye);function xe(){_.removeListener("finish",Ee),Ue()}_.once("close",xe);function Ee(){l("onfinish"),_.removeListener("close",xe),Ue()}_.once("finish",Ee);function Ue(){l("unpipe"),fe.unpipe(_)}return _.emit("pipe",fe),F.flowing||(l("pipe resume"),fe.resume()),_};function Q(_){return function(){var Z=_._readableState;l("pipeOnDrain",Z.awaitDrain),Z.awaitDrain&&Z.awaitDrain--,Z.awaitDrain===0&&t(_,"data")&&(Z.flowing=!0,G(_))}}T.prototype.unpipe=function(_){var Z=this._readableState,fe={hasUnpiped:!1};if(Z.pipesCount===0)return this;if(Z.pipesCount===1)return _&&_!==Z.pipes?this:(_||(_=Z.pipes),Z.pipes=null,Z.pipesCount=0,Z.flowing=!1,_&&_.emit("unpipe",this,fe),this);if(!_){var F=Z.pipes,he=Z.pipesCount;Z.pipes=null,Z.pipesCount=0,Z.flowing=!1;for(var ue=0;ue<he;ue++)F[ue].emit("unpipe",this,{hasUnpiped:!1});return this}var K=ve(Z.pipes,_);return K===-1?this:(Z.pipes.splice(K,1),Z.pipesCount-=1,Z.pipesCount===1&&(Z.pipes=Z.pipes[0]),_.emit("unpipe",this,fe),this)},T.prototype.on=function(_,Z){var fe=r.prototype.on.call(this,_,Z),F=this._readableState;return _==="data"?(F.readableListening=this.listenerCount("readable")>0,F.flowing!==!1&&this.resume()):_==="readable"&&!F.endEmitted&&!F.readableListening&&(F.readableListening=F.needReadable=!0,F.flowing=!1,F.emittedReadable=!1,l("on readable",F.length,F.reading),F.length?te(this):F.reading||process.nextTick(q,this)),fe},T.prototype.addListener=T.prototype.on,T.prototype.removeListener=function(_,Z){var fe=r.prototype.removeListener.call(this,_,Z);return _==="readable"&&process.nextTick(Y,this),fe},T.prototype.removeAllListeners=function(_){var Z=r.prototype.removeAllListeners.apply(this,arguments);return(_==="readable"||_===void 0)&&process.nextTick(Y,this),Z};function Y(_){var Z=_._readableState;Z.readableListening=_.listenerCount("readable")>0,Z.resumeScheduled&&!Z.paused?Z.flowing=!0:_.listenerCount("data")>0&&_.resume()}function q(_){l("readable nexttick read 0"),_.read(0)}T.prototype.resume=function(){var _=this._readableState;return _.flowing||(l("resume"),_.flowing=!_.readableListening,H(this,_)),_.paused=!1,this};function H(_,Z){Z.resumeScheduled||(Z.resumeScheduled=!0,process.nextTick(re,_,Z))}function re(_,Z){l("resume",Z.reading),Z.reading||_.read(0),Z.resumeScheduled=!1,_.emit("resume"),G(_),Z.flowing&&!Z.reading&&_.read(0)}T.prototype.pause=function(){return l("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(l("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this};function G(_){var Z=_._readableState;for(l("flow",Z.flowing);Z.flowing&&_.read()!==null;);}T.prototype.wrap=function(_){var Z=this,fe=this._readableState,F=!1;_.on("end",function(){if(l("wrapped end"),fe.decoder&&!fe.ended){var K=fe.decoder.end();K&&K.length&&Z.push(K)}Z.push(null)}),_.on("data",function(K){if(l("wrapped data"),fe.decoder&&(K=fe.decoder.write(K)),!(fe.objectMode&&K==null)&&!(!fe.objectMode&&(!K||!K.length))){var ae=Z.push(K);ae||(F=!0,_.pause())}});for(var he in _)this[he]===void 0&&typeof _[he]=="function"&&(this[he]=function(K){return function(){return _[K].apply(_,arguments)}}(he));for(var ue=0;ue<A.length;ue++)_.on(A[ue],this.emit.bind(this,A[ue]));return this._read=function(K){l("wrapped _read",K),F&&(F=!1,_.resume())},this},typeof Symbol=="function"&&(T.prototype[Symbol.asyncIterator]=function(){return k===void 0&&(k=$Re()),k(this)}),Object.defineProperty(T.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(T.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty(T.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(_){this._readableState&&(this._readableState.flowing=_)}}),T._fromList=oe,Object.defineProperty(T.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}});function oe(_,Z){if(Z.length===0)return null;var fe;return Z.objectMode?fe=Z.buffer.shift():!_||_>=Z.length?(Z.decoder?fe=Z.buffer.join(""):Z.buffer.length===1?fe=Z.buffer.first():fe=Z.buffer.concat(Z.length),Z.buffer.clear()):fe=Z.buffer.consume(_,Z.decoder),fe}function ne(_){var Z=_._readableState;l("endReadable",Z.endEmitted),Z.endEmitted||(Z.ended=!0,process.nextTick(be,Z,_))}function be(_,Z){if(l("endReadableNT",_.endEmitted,_.length),!_.endEmitted&&_.length===0&&(_.endEmitted=!0,Z.readable=!1,Z.emit("end"),_.autoDestroy)){var fe=Z._writableState;(!fe||fe.autoDestroy&&fe.finished)&&Z.destroy()}}typeof Symbol=="function"&&(T.from=function(_,Z){return j===void 0&&(j=RRe()),j(T,_,Z)});function ve(_,Z){for(var fe=0,F=_.length;fe<F;fe++)if(_[fe]===Z)return fe;return-1}return B7}var V7,KZ;function eW(){if(KZ)return V7;KZ=1,V7=s;var e=jh().codes,t=e.ERR_METHOD_NOT_IMPLEMENTED,r=e.ERR_MULTIPLE_CALLBACK,n=e.ERR_TRANSFORM_ALREADY_TRANSFORMING,o=e.ERR_TRANSFORM_WITH_LENGTH_0,i=Ah();function a(u,d){var h=this._transformState;h.transforming=!1;var g=h.writecb;if(g===null)return this.emit("error",new r);h.writechunk=null,h.writecb=null,d!=null&&this.push(d),g(u);var v=this._readableState;v.reading=!1,(v.needReadable||v.length<v.highWaterMark)&&this._read(v.highWaterMark)}function s(u){if(!(this instanceof s))return new s(u);i.call(this,u),this._transformState={afterTransform:a.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,u&&(typeof u.transform=="function"&&(this._transform=u.transform),typeof u.flush=="function"&&(this._flush=u.flush)),this.on("prefinish",l)}function l(){var u=this;typeof this._flush=="function"&&!this._readableState.destroyed?this._flush(function(d,h){c(u,d,h)}):c(this,null,null)}s.prototype.push=function(u,d){return this._transformState.needTransform=!1,i.prototype.push.call(this,u,d)},s.prototype._transform=function(u,d,h){h(new t("_transform()"))},s.prototype._write=function(u,d,h){var g=this._transformState;if(g.writecb=h,g.writechunk=u,g.writeencoding=d,!g.transforming){var v=this._readableState;(g.needTransform||v.needReadable||v.length<v.highWaterMark)&&this._read(v.highWaterMark)}},s.prototype._read=function(u){var d=this._transformState;d.writechunk!==null&&!d.transforming?(d.transforming=!0,this._transform(d.writechunk,d.writeencoding,d.afterTransform)):d.needTransform=!0},s.prototype._destroy=function(u,d){i.prototype._destroy.call(this,u,function(h){d(h)})};function c(u,d,h){if(d)return u.emit("error",d);if(h!=null&&u.push(h),u._writableState.length)throw new o;if(u._transformState.transforming)throw new n;return u.push(null)}return V7}var F7,tW;function IRe(){if(tW)return F7;tW=1,F7=t;var e=eW();function t(r){if(!(this instanceof t))return new t(r);e.call(this,r)}return t.prototype._transform=function(r,n,o){o(null,r)},F7}var Q7,rW;function MRe(){if(rW)return Q7;rW=1;var e;function t(h){var g=!1;return function(){g||(g=!0,h.apply(void 0,arguments))}}var r=jh().codes,n=r.ERR_MISSING_ARGS,o=r.ERR_STREAM_DESTROYED;function i(h){if(h)throw h}function a(h){return h.setHeader&&typeof h.abort=="function"}function s(h,g,v,b){b=t(b);var y=!1;h.on("close",function(){y=!0}),e===void 0&&(e=D7()),e(h,{readable:g,writable:v},function(O){if(O)return b(O);y=!0,b()});var x=!1;return function(O){if(!y&&!x){if(x=!0,a(h))return h.abort();if(typeof h.destroy=="function")return h.destroy();b(O||new o("pipe"))}}}function l(h){h()}function c(h,g){return h.pipe(g)}function u(h){return!h.length||typeof h[h.length-1]!="function"?i:h.pop()}function d(){for(var h=arguments.length,g=new Array(h),v=0;v<h;v++)g[v]=arguments[v];var b=u(g);if(Array.isArray(g[0])&&(g=g[0]),g.length<2)throw new n("streams");var y,x=g.map(function(O,k){var j=k<g.length-1,C=k>0;return s(O,j,C,function(A){y||(y=A),A&&x.forEach(l),!j&&(x.forEach(l),b(y))})});return g.reduce(c)}return Q7=d,Q7}var nW;function oW(){return nW||(nW=1,function(e,t){t=e.exports=JZ(),t.Stream=t,t.Readable=t,t.Writable=FZ(),t.Duplex=Ah(),t.Transform=eW(),t.PassThrough=IRe(),t.finished=D7(),t.pipeline=MRe()}(j7,j7.exports)),j7.exports}var iW;function aW(){if(iW)return Cy;iW=1;var e=PZ(),t=Mw(),r=oW(),n=Cy.readyStates={UNSENT:0,OPENED:1,HEADERS_RECEIVED:2,LOADING:3,DONE:4},o=Cy.IncomingMessage=function(i,a,s,l){var c=this;if(r.Readable.call(c),c._mode=s,c.headers={},c.rawHeaders=[],c.trailers={},c.rawTrailers=[],c.on("end",function(){process.nextTick(function(){c.emit("close")})}),s==="fetch"){let b=function(){d.read().then(function(y){if(!c._destroyed){if(l(y.done),y.done){c.push(null);return}c.push(Buffer.from(y.value)),b()}}).catch(function(y){l(!0),c._destroyed||c.emit("error",y)})};if(c._fetchResponse=a,c.url=a.url,c.statusCode=a.status,c.statusMessage=a.statusText,a.headers.forEach(function(y,x){c.headers[x.toLowerCase()]=y,c.rawHeaders.push(x,y)}),e.writableStream){var u=new WritableStream({write:function(y){return l(!1),new Promise(function(x,O){c._destroyed?O():c.push(Buffer.from(y))?x():c._resumeFetch=x})},close:function(){l(!0),c._destroyed||c.push(null)},abort:function(y){l(!0),c._destroyed||c.emit("error",y)}});try{a.body.pipeTo(u).catch(function(y){l(!0),c._destroyed||c.emit("error",y)});return}catch{}}var d=a.body.getReader();b()}else{c._xhr=i,c._pos=0,c.url=i.responseURL,c.statusCode=i.status,c.statusMessage=i.statusText;var h=i.getAllResponseHeaders().split(/\r?\n/);if(h.forEach(function(b){var y=b.match(/^([^:]+):\s*(.*)/);if(y){var x=y[1].toLowerCase();x==="set-cookie"?(c.headers[x]===void 0&&(c.headers[x]=[]),c.headers[x].push(y[2])):c.headers[x]!==void 0?c.headers[x]+=", "+y[2]:c.headers[x]=y[2],c.rawHeaders.push(y[1],y[2])}}),c._charset="x-user-defined",!e.overrideMimeType){var g=c.rawHeaders["mime-type"];if(g){var v=g.match(/;\s*charset=([^;])(;|$)/);v&&(c._charset=v[1].toLowerCase())}c._charset||(c._charset="utf-8")}}};return t(o,r.Readable),o.prototype._read=function(){var i=this,a=i._resumeFetch;a&&(i._resumeFetch=null,a())},o.prototype._onXHRProgress=function(i){var a=this,s=a._xhr,l=null;switch(a._mode){case"text":if(l=s.responseText,l.length>a._pos){var c=l.substr(a._pos);if(a._charset==="x-user-defined"){for(var u=Buffer.alloc(c.length),d=0;d<c.length;d++)u[d]=c.charCodeAt(d)&255;a.push(u)}else a.push(c,a._charset);a._pos=l.length}break;case"arraybuffer":if(s.readyState!==n.DONE||!s.response)break;l=s.response,a.push(Buffer.from(new Uint8Array(l)));break;case"moz-chunked-arraybuffer":if(l=s.response,s.readyState!==n.LOADING||!l)break;a.push(Buffer.from(new Uint8Array(l)));break;case"ms-stream":if(l=s.response,s.readyState!==n.LOADING)break;var h=new globalThis.MSStreamReader;h.onprogress=function(){h.result.byteLength>a._pos&&(a.push(Buffer.from(new Uint8Array(h.result.slice(a._pos)))),a._pos=h.result.byteLength)},h.onload=function(){i(!0),a.push(null)},h.readAsArrayBuffer(l);break}a._xhr.readyState===n.DONE&&a._mode!=="ms-stream"&&(i(!0),a.push(null))},Cy}var sW;function zRe(){if(sW)return S7.exports;sW=1;var e=PZ(),t=Mw(),r=aW(),n=oW(),o=r.IncomingMessage,i=r.readyStates;function a(u,d){return e.fetch&&d?"fetch":e.mozchunkedarraybuffer?"moz-chunked-arraybuffer":e.msstream?"ms-stream":e.arraybuffer&&u?"arraybuffer":"text"}var s=S7.exports=function(u){var d=this;n.Writable.call(d),d._opts=u,d._body=[],d._headers={},u.auth&&d.setHeader("Authorization","Basic "+Buffer.from(u.auth).toString("base64")),Object.keys(u.headers).forEach(function(v){d.setHeader(v,u.headers[v])});var h,g=!0;if(u.mode==="disable-fetch"||"requestTimeout"in u&&!e.abortController)g=!1,h=!0;else if(u.mode==="prefer-streaming")h=!1;else if(u.mode==="allow-wrong-content-type")h=!e.overrideMimeType;else if(!u.mode||u.mode==="default"||u.mode==="prefer-fast")h=!0;else throw new Error("Invalid value for opts.mode");d._mode=a(h,g),d._fetchTimer=null,d._socketTimeout=null,d._socketTimer=null,d.on("finish",function(){d._onFinish()})};t(s,n.Writable),s.prototype.setHeader=function(u,d){var h=this,g=u.toLowerCase();c.indexOf(g)===-1&&(h._headers[g]={name:u,value:d})},s.prototype.getHeader=function(u){var d=this._headers[u.toLowerCase()];return d?d.value:null},s.prototype.removeHeader=function(u){var d=this;delete d._headers[u.toLowerCase()]},s.prototype._onFinish=function(){var u=this;if(!u._destroyed){var d=u._opts;"timeout"in d&&d.timeout!==0&&u.setTimeout(d.timeout);var h=u._headers,g=null;d.method!=="GET"&&d.method!=="HEAD"&&(g=new Blob(u._body,{type:(h["content-type"]||{}).value||""}));var v=[];if(Object.keys(h).forEach(function(O){var k=h[O].name,j=h[O].value;Array.isArray(j)?j.forEach(function(C){v.push([k,C])}):v.push([k,j])}),u._mode==="fetch"){var b=null;if(e.abortController){var y=new AbortController;b=y.signal,u._fetchAbortController=y,"requestTimeout"in d&&d.requestTimeout!==0&&(u._fetchTimer=globalThis.setTimeout(function(){u.emit("requestTimeout"),u._fetchAbortController&&u._fetchAbortController.abort()},d.requestTimeout))}globalThis.fetch(u._opts.url,{method:u._opts.method,headers:v,body:g||void 0,mode:"cors",credentials:d.withCredentials?"include":"same-origin",signal:b}).then(function(O){u._fetchResponse=O,u._resetTimers(!1),u._connect()},function(O){u._resetTimers(!0),u._destroyed||u.emit("error",O)})}else{var x=u._xhr=new globalThis.XMLHttpRequest;try{x.open(u._opts.method,u._opts.url,!0)}catch(O){process.nextTick(function(){u.emit("error",O)});return}"responseType"in x&&(x.responseType=u._mode),"withCredentials"in x&&(x.withCredentials=!!d.withCredentials),u._mode==="text"&&"overrideMimeType"in x&&x.overrideMimeType("text/plain; charset=x-user-defined"),"requestTimeout"in d&&(x.timeout=d.requestTimeout,x.ontimeout=function(){u.emit("requestTimeout")}),v.forEach(function(O){x.setRequestHeader(O[0],O[1])}),u._response=null,x.onreadystatechange=function(){switch(x.readyState){case i.LOADING:case i.DONE:u._onXHRProgress();break}},u._mode==="moz-chunked-arraybuffer"&&(x.onprogress=function(){u._onXHRProgress()}),x.onerror=function(){u._destroyed||(u._resetTimers(!0),u.emit("error",new Error("XHR error")))};try{x.send(g)}catch(O){process.nextTick(function(){u.emit("error",O)});return}}}};function l(u){try{var d=u.status;return d!==null&&d!==0}catch{return!1}}s.prototype._onXHRProgress=function(){var u=this;u._resetTimers(!1),!(!l(u._xhr)||u._destroyed)&&(u._response||u._connect(),u._response._onXHRProgress(u._resetTimers.bind(u)))},s.prototype._connect=function(){var u=this;u._destroyed||(u._response=new o(u._xhr,u._fetchResponse,u._mode,u._resetTimers.bind(u)),u._response.on("error",function(d){u.emit("error",d)}),u.emit("response",u._response))},s.prototype._write=function(u,d,h){var g=this;g._body.push(u),h()},s.prototype._resetTimers=function(u){var d=this;globalThis.clearTimeout(d._socketTimer),d._socketTimer=null,u?(globalThis.clearTimeout(d._fetchTimer),d._fetchTimer=null):d._socketTimeout&&(d._socketTimer=globalThis.setTimeout(function(){d.emit("timeout")},d._socketTimeout))},s.prototype.abort=s.prototype.destroy=function(u){var d=this;d._destroyed=!0,d._resetTimers(!0),d._response&&(d._response._destroyed=!0),d._xhr?d._xhr.abort():d._fetchAbortController&&d._fetchAbortController.abort(),u&&d.emit("error",u)},s.prototype.end=function(u,d,h){var g=this;typeof u=="function"&&(h=u,u=void 0),n.Writable.prototype.end.call(g,u,d,h)},s.prototype.setTimeout=function(u,d){var h=this;d&&h.once("timeout",d),h._socketTimeout=u,h._resetTimers(!1)},s.prototype.flushHeaders=function(){},s.prototype.setNoDelay=function(){},s.prototype.setSocketKeepAlive=function(){};var c=["accept-charset","accept-encoding","access-control-request-headers","access-control-request-method","connection","content-length","cookie","cookie2","date","dnt","expect","host","keep-alive","origin","referer","te","trailer","transfer-encoding","upgrade","via"];return S7.exports}var q7,lW;function LRe(){if(lW)return q7;lW=1,q7=t;var e=Object.prototype.hasOwnProperty;function t(){for(var r={},n=0;n<arguments.length;n++){var o=arguments[n];for(var i in o)e.call(o,i)&&(r[i]=o[i])}return r}return q7}var cW,uW;function DRe(){return uW||(uW=1,cW={100:"Continue",101:"Switching Protocols",102:"Processing",200:"OK",201:"Created",202:"Accepted",203:"Non-Authoritative Information",204:"No Content",205:"Reset Content",206:"Partial Content",207:"Multi-Status",208:"Already Reported",226:"IM Used",300:"Multiple Choices",301:"Moved Permanently",302:"Found",303:"See Other",304:"Not Modified",305:"Use Proxy",307:"Temporary Redirect",308:"Permanent Redirect",400:"Bad Request",401:"Unauthorized",402:"Payment Required",403:"Forbidden",404:"Not Found",405:"Method Not Allowed",406:"Not Acceptable",407:"Proxy Authentication Required",408:"Request Timeout",409:"Conflict",410:"Gone",411:"Length Required",412:"Precondition Failed",413:"Payload Too Large",414:"URI Too Long",415:"Unsupported Media Type",416:"Range Not Satisfiable",417:"Expectation Failed",418:"I'm a teapot",421:"Misdirected Request",422:"Unprocessable Entity",423:"Locked",424:"Failed Dependency",425:"Unordered Collection",426:"Upgrade Required",428:"Precondition Required",429:"Too Many Requests",431:"Request Header Fields Too Large",451:"Unavailable For Legal Reasons",500:"Internal Server Error",501:"Not Implemented",502:"Bad Gateway",503:"Service Unavailable",504:"Gateway Timeout",505:"HTTP Version Not Supported",506:"Variant Also Negotiates",507:"Insufficient Storage",508:"Loop Detected",509:"Bandwidth Limit Exceeded",510:"Not Extended",511:"Network Authentication Required"}),cW}var dW;function NRe(){return dW||(dW=1,function(e){var t=zRe(),r=aW(),n=LRe(),o=DRe(),i=d7(),a=e;a.request=function(s,l){typeof s=="string"?s=i.parse(s):s=n(s);var c=globalThis.location.protocol.search(/^https?:$/)===-1?"http:":"",u=s.protocol||c,d=s.hostname||s.host,h=s.port,g=s.path||"/";d&&d.indexOf(":")!==-1&&(d="["+d+"]"),s.url=(d?u+"//"+d:"")+(h?":"+h:"")+g,s.method=(s.method||"GET").toUpperCase(),s.headers=s.headers||{};var v=new t(s);return l&&v.on("response",l),v},a.get=function(s,l){var c=a.request(s,l);return c.end(),c},a.ClientRequest=t,a.IncomingMessage=r.IncomingMessage,a.Agent=function(){},a.Agent.defaultMaxSockets=4,a.globalAgent=new a.Agent,a.STATUS_CODES=o,a.METHODS=["CHECKOUT","CONNECT","COPY","DELETE","GET","HEAD","LOCK","M-SEARCH","MERGE","MKACTIVITY","MKCOL","MOVE","NOTIFY","OPTIONS","PATCH","POST","PROPFIND","PROPPATCH","PURGE","PUT","REPORT","SEARCH","SUBSCRIBE","TRACE","UNLOCK","UNSUBSCRIBE"]}(jZ)),jZ}var pW,hW;function BRe(){return hW||(hW=1,pW={statusCodes:Object.assign({},{default:"Default response","1XX":"Informational",103:"Early hints","2XX":"Successful","3XX":"Redirection","4XX":"Client Error","5XX":"Server Error","7XX":"Developer Error"},NRe().STATUS_CODES)}),pW}const VRe="7.0.8",FRe={version:VRe};var Z7,fW;function QRe(){if(fW)return Z7;fW=1;const e=Sh,t=d7(),r=kRe(),n=Sh,o=Sh,i=wy(),a=i.jptr,s=m7().isRef,l=ky().clone,c=ky().circularClone,u=y7().recurse,d=jRe(),h=ARe(),g=kZ(),v=BRe().statusCodes,b=FRe.version,y="3.0.0";let x;class O extends Error{constructor(Z){super(Z),this.name="S2OError"}}function k(_,Z){let fe=new O(_);if(fe.options=Z,Z.promise)Z.promise.reject(fe);else throw fe}function j(_,Z,fe){fe.warnOnly?Z[fe.warnProperty||"x-s2o-warning"]=_:k(_,fe)}function C(_,Z,fe){if(_.nullable&&fe.patches++,_.discriminator&&typeof _.discriminator=="string"&&(_.discriminator={propertyName:_.discriminator}),_.items&&Array.isArray(_.items)&&(_.items.length===0?_.items={}:_.items.length===1?_.items=_.items[0]:_.items={anyOf:_.items}),_.type&&Array.isArray(_.type))if(fe.patch){if(fe.patches++,_.type.length===0)delete _.type;else{_.oneOf||(_.oneOf=[]);for(let F of _.type){let he={};if(F==="null")_.nullable=!0;else{he.type=F;for(let ue of g.arrayProperties)typeof _.prop<"u"&&(he[ue]=_[ue],delete _[ue])}he.type&&_.oneOf.push(he)}delete _.type,_.oneOf.length===0?delete _.oneOf:_.oneOf.length<2&&(_.type=_.oneOf[0].type,Object.keys(_.oneOf[0]).length>1&&j("Lost properties from oneOf",_,fe),delete _.oneOf)}_.type&&Array.isArray(_.type)&&_.type.length===1&&(_.type=_.type[0])}else k("(Patchable) schema type must not be an array",fe);_.type&&_.type==="null"&&(delete _.type,_.nullable=!0),_.type==="array"&&!_.items&&(_.items={}),_.type==="file"&&(_.type="string",_.format="binary"),typeof _.required=="boolean"&&(_.required&&_.name&&(typeof Z.required>"u"&&(Z.required=[]),Array.isArray(Z.required)&&Z.required.push(_.name)),delete _.required),_.xml&&typeof _.xml.namespace=="string"&&(_.xml.namespace||delete _.xml.namespace),typeof _.allowEmptyValue<"u"&&(fe.patches++,delete _.allowEmptyValue)}function A(_,Z){if(_["x-required"]&&Array.isArray(_["x-required"])&&(_.required||(_.required=[]),_.required=_.required.concat(_["x-required"]),delete _["x-required"]),_["x-anyOf"]&&(_.anyOf=_["x-anyOf"],delete _["x-anyOf"]),_["x-oneOf"]&&(_.oneOf=_["x-oneOf"],delete _["x-oneOf"]),_["x-not"]&&(_.not=_["x-not"],delete _["x-not"]),typeof _["x-nullable"]=="boolean"&&(_.nullable=_["x-nullable"],delete _["x-nullable"]),typeof _["x-discriminator"]=="object"&&typeof _["x-discriminator"].propertyName=="string"){_.discriminator=_["x-discriminator"],delete _["x-discriminator"];for(let fe in _.discriminator.mapping){let F=_.discriminator.mapping[fe];F.startsWith("#/definitions/")&&(_.discriminator.mapping[fe]=F.replace("#/definitions/","#/components/schemas/"))}}}function E(_,Z){h.walkSchema(_,{},{},function(fe,F,he){A(fe),C(fe,F,Z)})}function P(_){return _.indexOf("#")>=0?_=_.split("#")[1].split("/").pop():_=_.split("/").pop().split(".")[0],encodeURIComponent(g.sanitise(_))}function T(_,Z,fe){let F=fe.payload.options;if(s(_,Z)){if(!_[Z].startsWith("#/components/")){if(_[Z]==="#/consumes")delete _[Z],fe.parent[fe.pkey]=l(F.openapi.consumes);else if(_[Z]==="#/produces")delete _[Z],fe.parent[fe.pkey]=l(F.openapi.produces);else if(_[Z].startsWith("#/definitions/")){let he=_[Z].replace("#/definitions/","").split("/");const ue=i.jpunescape(he[0]);let K=x.schemas[decodeURIComponent(ue)];K?he[0]=K:j("Could not resolve reference "+_[Z],_,F),_[Z]="#/components/schemas/"+he.join("/")}else if(_[Z].startsWith("#/parameters/"))_[Z]="#/components/parameters/"+g.sanitise(_[Z].replace("#/parameters/",""));else if(_[Z].startsWith("#/responses/"))_[Z]="#/components/responses/"+g.sanitise(_[Z].replace("#/responses/",""));else if(_[Z].startsWith("#")){let he=l(i.jptr(F.openapi,_[Z]));if(he===!1)j("direct $ref not found "+_[Z],_,F);else if(F.refmap[_[Z]])_[Z]=F.refmap[_[Z]];else{let ue=_[Z];ue=ue.replace("/properties/headers/",""),ue=ue.replace("/properties/responses/",""),ue=ue.replace("/properties/parameters/",""),ue=ue.replace("/properties/schemas/","");let K="schemas",ae=ue.lastIndexOf("/schema");if(K=ue.indexOf("/headers/")>ae?"headers":ue.indexOf("/responses/")>ae?"responses":ue.indexOf("/example")>ae?"examples":ue.indexOf("/x-")>ae?"extensions":ue.indexOf("/parameters/")>ae?"parameters":"schemas",K==="schemas"&&E(he,F),K!=="responses"&&K!=="extensions"){let le=K.substr(0,K.length-1);le==="parameter"&&he.name&&he.name===g.sanitise(he.name)&&(le=encodeURIComponent(he.name));let Ce=1;for(_["x-miro"]&&(le=P(_["x-miro"]),Ce="");i.jptr(F.openapi,"#/components/"+K+"/"+le+Ce);)Ce=Ce===""?2:++Ce;let Se="#/components/"+K+"/"+le+Ce,me="";K==="examples"&&(he={value:he},me="/value"),i.jptr(F.openapi,Se,he),F.refmap[_[Z]]=Se+me,_[Z]=Se+me}}}}if(delete _["x-miro"],Object.keys(_).length>1){const he=_[Z],ue=fe.path.indexOf("/schema")>=0;F.refSiblings==="preserve"||(ue&&F.refSiblings==="allOf"?(delete _.$ref,fe.parent[fe.pkey]={allOf:[{$ref:he},_]}):fe.parent[fe.pkey]={$ref:he})}}if(Z==="x-ms-odata"&&typeof _[Z]=="string"&&_[Z].startsWith("#/")){let he=_[Z].replace("#/definitions/","").replace("#/components/schemas/","").split("/"),ue=x.schemas[decodeURIComponent(he[0])];ue?he[0]=ue:j("Could not resolve reference "+_[Z],_,F),_[Z]="#/components/schemas/"+he.join("/")}}function I(_,Z){for(let fe in Z.refmap)i.jptr(_,fe,{$ref:Z.refmap[fe]})}function L(_){for(let Z in _)for(let fe in _[Z]){let F=g.sanitise(fe);fe!==F&&(_[Z][F]=_[Z][fe],delete _[Z][fe])}}function M(_,Z){if(_.type==="basic"&&(_.type="http",_.scheme="basic"),_.type==="oauth2"){let fe={},F=_.flow;_.flow==="application"&&(F="clientCredentials"),_.flow==="accessCode"&&(F="authorizationCode"),typeof _.authorizationUrl<"u"&&(fe.authorizationUrl=_.authorizationUrl.split("?")[0].trim()||"/"),typeof _.tokenUrl=="string"&&(fe.tokenUrl=_.tokenUrl.split("?")[0].trim()||"/"),fe.scopes=_.scopes||{},_.flows={},_.flows[F]=fe,delete _.flow,delete _.authorizationUrl,delete _.tokenUrl,delete _.scopes,typeof _.name<"u"&&(Z.patch?(Z.patches++,delete _.name):k("(Patchable) oauth2 securitySchemes should not have name property",Z))}}function N(_){return _&&!_["x-s2o-delete"]}function z(_,Z){if(_.$ref)_.$ref=_.$ref.replace("#/responses/","#/components/responses/");else{_.type&&!_.schema&&(_.schema={}),_.type&&(_.schema.type=_.type),_.items&&_.items.type!=="array"&&(_.items.collectionFormat!==_.collectionFormat&&j("Nested collectionFormats are not supported",_,Z),delete _.items.collectionFormat),_.type==="array"?(_.collectionFormat==="ssv"?j("collectionFormat:ssv is no longer supported for headers",_,Z):_.collectionFormat==="pipes"?j("collectionFormat:pipes is no longer supported for headers",_,Z):_.collectionFormat==="multi"?_.explode=!0:_.collectionFormat==="tsv"?(j("collectionFormat:tsv is no longer supported",_,Z),_["x-collectionFormat"]="tsv"):_.style="simple",delete _.collectionFormat):_.collectionFormat&&(Z.patch?(Z.patches++,delete _.collectionFormat):k("(Patchable) collectionFormat is only applicable to header.type array",Z)),delete _.type;for(let fe of g.parameterTypeProperties)typeof _[fe]<"u"&&(_.schema[fe]=_[fe],delete _[fe]);for(let fe of g.arrayProperties)typeof _[fe]<"u"&&(_.schema[fe]=_[fe],delete _[fe])}}function U(_,Z){if(_.$ref.indexOf("#/parameters/")>=0){let fe=_.$ref.split("#/parameters/");_.$ref=fe[0]+"#/components/parameters/"+g.sanitise(fe[1])}_.$ref.indexOf("#/definitions/")>=0&&j("Definition used as parameter",_,Z)}function X(_,Z){let fe={};for(let F of Object.keys(_))fe[F]=_[F],F==="parameters"&&(fe.requestBody={},Z.rbname&&(fe[Z.rbname]=""));return fe.requestBody={},fe}function te(_,Z,fe,F,he,ue,K){let ae={},le=!0,Ce;if(Z&&Z.consumes&&typeof Z.consumes=="string")if(K.patch)K.patches++,Z.consumes=[Z.consumes];else return k("(Patchable) operation.consumes must be an array",K);Array.isArray(ue.consumes)||delete ue.consumes;let Se=((Z?Z.consumes:null)||ue.consumes||[]).filter(g.uniqueOnly);if(_&&_.$ref&&typeof _.$ref=="string"){U(_,K);let me=decodeURIComponent(_.$ref.replace("#/components/parameters/","")),ye=!1,xe=ue.components.parameters[me];if((!xe||xe["x-s2o-delete"])&&_.$ref.startsWith("#/")&&(_["x-s2o-delete"]=!0,ye=!0),ye){let Ee=_.$ref,Ue=a(ue,_.$ref);!Ue&&Ee.startsWith("#/")?j("Could not resolve reference "+Ee,_,K):Ue&&(_=Ue)}}if(_&&(_.name||_.in)){typeof _["x-deprecated"]=="boolean"&&(_.deprecated=_["x-deprecated"],delete _["x-deprecated"]),typeof _["x-example"]<"u"&&(_.example=_["x-example"],delete _["x-example"]),_.in!=="body"&&!_.type&&(K.patch?(K.patches++,_.type="string"):k("(Patchable) parameter.type is mandatory for non-body parameters",K)),_.type&&typeof _.type=="object"&&_.type.$ref&&(_.type=a(ue,_.type.$ref)),_.type==="file"&&(_["x-s2o-originalType"]=_.type,Ce=_.type),_.description&&typeof _.description=="object"&&_.description.$ref&&(_.description=a(ue,_.description.$ref)),_.description===null&&delete _.description;let me=_.collectionFormat;if(_.type==="array"&&!me&&(me="csv"),me&&(_.type!=="array"&&(K.patch?(K.patches++,delete _.collectionFormat):k("(Patchable) collectionFormat is only applicable to param.type array",K)),me==="csv"&&(_.in==="query"||_.in==="cookie")&&(_.style="form",_.explode=!1),me==="csv"&&(_.in==="path"||_.in==="header")&&(_.style="simple"),me==="ssv"&&(_.in==="query"?_.style="spaceDelimited":j("collectionFormat:ssv is no longer supported except for in:query parameters",_,K)),me==="pipes"&&(_.in==="query"?_.style="pipeDelimited":j("collectionFormat:pipes is no longer supported except for in:query parameters",_,K)),me==="multi"&&(_.explode=!0),me==="tsv"&&(j("collectionFormat:tsv is no longer supported",_,K),_["x-collectionFormat"]="tsv"),delete _.collectionFormat),_.type&&_.type!=="body"&&_.in!=="formData")if(_.items&&_.schema)j("parameter has array,items and schema",_,K);else{_.schema&&K.patches++,(!_.schema||typeof _.schema!="object")&&(_.schema={}),_.schema.type=_.type,_.items&&(_.schema.items=_.items,delete _.items,u(_.schema.items,null,function(ye,xe,Ee){xe==="collectionFormat"&&typeof ye[xe]=="string"&&(me&&ye[xe]!==me&&j("Nested collectionFormats are not supported",_,K),delete ye[xe])}));for(let ye of g.parameterTypeProperties)typeof _[ye]<"u"&&(_.schema[ye]=_[ye]),delete _[ye]}_.schema&&E(_.schema,K),_["x-ms-skip-url-encoding"]&&_.in==="query"&&(_.allowReserved=!0,delete _["x-ms-skip-url-encoding"])}if(_&&_.in==="formData"){le=!1,ae.content={};let me="application/x-www-form-urlencoded";if(Se.length&&Se.indexOf("multipart/form-data")>=0&&(me="multipart/form-data"),ae.content[me]={},_.schema)ae.content[me].schema=_.schema,_.schema.$ref&&(ae["x-s2o-name"]=decodeURIComponent(_.schema.$ref.replace("#/components/schemas/","")));else{ae.content[me].schema={},ae.content[me].schema.type="object",ae.content[me].schema.properties={},ae.content[me].schema.properties[_.name]={};let ye=ae.content[me].schema,xe=ae.content[me].schema.properties[_.name];_.description&&(xe.description=_.description),_.example&&(xe.example=_.example),_.type&&(xe.type=_.type);for(let Ee of g.parameterTypeProperties)typeof _[Ee]<"u"&&(xe[Ee]=_[Ee]);_.required===!0&&(ye.required||(ye.required=[]),ye.required.push(_.name),ae.required=!0),typeof _.default<"u"&&(xe.default=_.default),xe.properties&&(xe.properties=_.properties),_.allOf&&(xe.allOf=_.allOf),_.type==="array"&&_.items&&(xe.items=_.items,xe.items.collectionFormat&&delete xe.items.collectionFormat),(Ce==="file"||_["x-s2o-originalType"]==="file")&&(xe.type="string",xe.format="binary"),ee(_,xe)}}else _&&_.type==="file"&&(_.required&&(ae.required=_.required),ae.content={},ae.content["application/octet-stream"]={},ae.content["application/octet-stream"].schema={},ae.content["application/octet-stream"].schema.type="string",ae.content["application/octet-stream"].schema.format="binary",ee(_,ae));if(_&&_.in==="body"){ae.content={},_.name&&(ae["x-s2o-name"]=(Z&&Z.operationId?g.sanitiseAll(Z.operationId):"")+("_"+_.name).toCamelCase()),_.description&&(ae.description=_.description),_.required&&(ae.required=_.required),Z&&K.rbname&&_.name&&(Z[K.rbname]=_.name),_.schema&&_.schema.$ref?ae["x-s2o-name"]=decodeURIComponent(_.schema.$ref.replace("#/components/schemas/","")):_.schema&&_.schema.type==="array"&&_.schema.items&&_.schema.items.$ref&&(ae["x-s2o-name"]=decodeURIComponent(_.schema.items.$ref.replace("#/components/schemas/",""))+"Array"),Se.length||Se.push("application/json");for(let me of Se)ae.content[me]={},ae.content[me].schema=l(_.schema||{}),E(ae.content[me].schema,K);ee(_,ae)}if(Object.keys(ae).length>0&&(_["x-s2o-delete"]=!0,Z))if(Z.requestBody&&le){Z.requestBody["x-s2o-overloaded"]=!0;let me=Z.operationId||he;j("Operation "+me+" has multiple requestBodies",Z,K)}else Z.requestBody||(Z=fe[F]=X(Z,K)),Z.requestBody.content&&Z.requestBody.content["multipart/form-data"]&&Z.requestBody.content["multipart/form-data"].schema&&Z.requestBody.content["multipart/form-data"].schema.properties&&ae.content["multipart/form-data"]&&ae.content["multipart/form-data"].schema&&ae.content["multipart/form-data"].schema.properties?(Z.requestBody.content["multipart/form-data"].schema.properties=Object.assign(Z.requestBody.content["multipart/form-data"].schema.properties,ae.content["multipart/form-data"].schema.properties),Z.requestBody.content["multipart/form-data"].schema.required=(Z.requestBody.content["multipart/form-data"].schema.required||[]).concat(ae.content["multipart/form-data"].schema.required||[]),Z.requestBody.content["multipart/form-data"].schema.required.length||delete Z.requestBody.content["multipart/form-data"].schema.required):Z.requestBody.content&&Z.requestBody.content["application/x-www-form-urlencoded"]&&Z.requestBody.content["application/x-www-form-urlencoded"].schema&&Z.requestBody.content["application/x-www-form-urlencoded"].schema.properties&&ae.content["application/x-www-form-urlencoded"]&&ae.content["application/x-www-form-urlencoded"].schema&&ae.content["application/x-www-form-urlencoded"].schema.properties?(Z.requestBody.content["application/x-www-form-urlencoded"].schema.properties=Object.assign(Z.requestBody.content["application/x-www-form-urlencoded"].schema.properties,ae.content["application/x-www-form-urlencoded"].schema.properties),Z.requestBody.content["application/x-www-form-urlencoded"].schema.required=(Z.requestBody.content["application/x-www-form-urlencoded"].schema.required||[]).concat(ae.content["application/x-www-form-urlencoded"].schema.required||[]),Z.requestBody.content["application/x-www-form-urlencoded"].schema.required.length||delete Z.requestBody.content["application/x-www-form-urlencoded"].schema.required):(Z.requestBody=Object.assign(Z.requestBody,ae),Z.requestBody["x-s2o-name"]||(Z.requestBody.schema&&Z.requestBody.schema.$ref?Z.requestBody["x-s2o-name"]=decodeURIComponent(Z.requestBody.schema.$ref.replace("#/components/schemas/","")).split("/").join(""):Z.operationId&&(Z.requestBody["x-s2o-name"]=g.sanitiseAll(Z.operationId))));if(_&&!_["x-s2o-delete"]){delete _.type;for(let me of g.parameterTypeProperties)delete _[me];_.in==="path"&&(typeof _.required>"u"||_.required!==!0)&&(K.patch?(K.patches++,_.required=!0):k("(Patchable) path parameters must be required:true ["+_.name+" in "+he+"]",K))}return Z}function ee(_,Z){for(let fe in _)fe.startsWith("x-")&&!fe.startsWith("x-s2o")&&(Z[fe]=_[fe])}function se(_,Z,fe,F,he){if(!_)return!1;if(_.$ref&&typeof _.$ref=="string")_.$ref.indexOf("#/definitions/")>=0?j("definition used as response: "+_.$ref,_,he):_.$ref.startsWith("#/responses/")&&(_.$ref="#/components/responses/"+g.sanitise(decodeURIComponent(_.$ref.replace("#/responses/",""))));else{if((typeof _.description>"u"||_.description===null||_.description===""&&he.patch)&&(he.patch?typeof _=="object"&&!Array.isArray(_)&&(he.patches++,_.description=v[_]||""):k("(Patchable) response.description is mandatory",he)),typeof _.schema<"u"){if(E(_.schema,he),_.schema.$ref&&typeof _.schema.$ref=="string"&&_.schema.$ref.startsWith("#/responses/")&&(_.schema.$ref="#/components/responses/"+g.sanitise(decodeURIComponent(_.schema.$ref.replace("#/responses/","")))),fe&&fe.produces&&typeof fe.produces=="string")if(he.patch)he.patches++,fe.produces=[fe.produces];else return k("(Patchable) operation.produces must be an array",he);F.produces&&!Array.isArray(F.produces)&&delete F.produces;let ue=((fe?fe.produces:null)||F.produces||[]).filter(g.uniqueOnly);ue.length||ue.push("*/*"),_.content={};for(let K of ue){if(_.content[K]={},_.content[K].schema=l(_.schema),_.examples&&_.examples[K]){let ae={};ae.value=_.examples[K],_.content[K].examples={},_.content[K].examples.response=ae,delete _.examples[K]}_.content[K].schema.type==="file"&&(_.content[K].schema={type:"string",format:"binary"})}delete _.schema}for(let ue in _.examples)_.content||(_.content={}),_.content[ue]||(_.content[ue]={}),_.content[ue].examples={},_.content[ue].examples.response={},_.content[ue].examples.response.value=_.examples[ue];if(delete _.examples,_.headers)for(let ue in _.headers)ue.toLowerCase()==="status code"?he.patch?(he.patches++,delete _.headers[ue]):k('(Patchable) "Status Code" is not a valid header',he):z(_.headers[ue],he)}}function W(_,Z,fe,F,he){for(let ue in _){let K=_[ue];K&&K["x-trace"]&&typeof K["x-trace"]=="object"&&(K.trace=K["x-trace"],delete K["x-trace"]),K&&K["x-summary"]&&typeof K["x-summary"]=="string"&&(K.summary=K["x-summary"],delete K["x-summary"]),K&&K["x-description"]&&typeof K["x-description"]=="string"&&(K.description=K["x-description"],delete K["x-description"]),K&&K["x-servers"]&&Array.isArray(K["x-servers"])&&(K.servers=K["x-servers"],delete K["x-servers"]);for(let ae in K)if(g.httpMethods.indexOf(ae)>=0||ae==="x-amazon-apigateway-any-method"){let le=K[ae];if(le&&le.parameters&&Array.isArray(le.parameters)){if(K.parameters)for(let Ce of K.parameters)typeof Ce.$ref=="string"&&(U(Ce,fe),Ce=a(he,Ce.$ref)),!le.parameters.find(function(Se,me,ye){return Se.name===Ce.name&&Se.in===Ce.in})&&(Ce.in==="formData"||Ce.in==="body"||Ce.type==="file")&&(le=te(Ce,le,K,ae,ue,he,fe),fe.rbname&&le[fe.rbname]===""&&delete le[fe.rbname]);for(let Ce of le.parameters)le=te(Ce,le,K,ae,ae+":"+ue,he,fe);fe.rbname&&le[fe.rbname]===""&&delete le[fe.rbname],fe.debug||le.parameters&&(le.parameters=le.parameters.filter(N))}if(le&&le.security&&L(le.security),typeof le=="object"){if(!le.responses){let Ce={};Ce.description="Default response",le.responses={default:Ce}}for(let Ce in le.responses){let Se=le.responses[Ce];se(Se,Ce,le,he,fe)}}if(le&&le["x-servers"]&&Array.isArray(le["x-servers"]))le.servers=le["x-servers"],delete le["x-servers"];else if(le&&le.schemes&&le.schemes.length){for(let Ce of le.schemes)if((!he.schemes||he.schemes.indexOf(Ce)<0)&&(le.servers||(le.servers=[]),Array.isArray(he.servers)))for(let Se of he.servers){let me=l(Se),ye=t.parse(me.url);ye.protocol=Ce,me.url=ye.format(),le.servers.push(me)}}if(fe.debug&&(le["x-s2o-consumes"]=le.consumes||[],le["x-s2o-produces"]=le.produces||[]),le){if(delete le.consumes,delete le.produces,delete le.schemes,le["x-ms-examples"]){for(let Ce in le["x-ms-examples"]){let Se=le["x-ms-examples"][Ce],me=g.sanitiseAll(Ce);if(Se.parameters)for(let ye in Se.parameters){let xe=Se.parameters[ye];for(let Ee of(le.parameters||[]).concat(K.parameters||[]))Ee.$ref&&(Ee=i.jptr(he,Ee.$ref)),Ee.name===ye&&!Ee.example&&(Ee.examples||(Ee.examples={}),Ee.examples[Ce]={value:xe})}if(Se.responses)for(let ye in Se.responses){if(Se.responses[ye].headers)for(let xe in Se.responses[ye].headers){let Ee=Se.responses[ye].headers[xe];for(let Ue in le.responses[ye].headers)if(Ue===xe){let B=le.responses[ye].headers[Ue];B.example=Ee}}if(Se.responses[ye].body&&(he.components.examples[me]={value:l(Se.responses[ye].body)},le.responses[ye]&&le.responses[ye].content))for(let xe in le.responses[ye].content){let Ee=le.responses[ye].content[xe];Ee.examples||(Ee.examples={}),Ee.examples[Ce]={$ref:"#/components/examples/"+me}}}}delete le["x-ms-examples"]}if(le.parameters&&le.parameters.length===0&&delete le.parameters,le.requestBody){let Ce=le.operationId?g.sanitiseAll(le.operationId):g.sanitiseAll(ae+ue).toCamelCase(),Se=g.sanitise(le.requestBody["x-s2o-name"]||Ce||"");delete le.requestBody["x-s2o-name"];let me=JSON.stringify(le.requestBody),ye=g.hash(me);if(!F[ye]){let Ee={};Ee.name=Se,Ee.body=le.requestBody,Ee.refs=[],F[ye]=Ee}let xe="#/"+Z+"/"+encodeURIComponent(i.jpescape(ue))+"/"+ae+"/requestBody";F[ye].refs.push(xe)}}}if(K&&K.parameters){for(let ae in K.parameters){let le=K.parameters[ae];te(le,null,K,null,ue,he,fe)}!fe.debug&&Array.isArray(K.parameters)&&(K.parameters=K.parameters.filter(N))}}}function Q(_,Z){let fe={};x={schemas:{}},_.security&&L(_.security);for(let he in _.components.securitySchemes){let ue=g.sanitise(he);he!==ue&&(_.components.securitySchemes[ue]&&k("Duplicate sanitised securityScheme name "+ue,Z),_.components.securitySchemes[ue]=_.components.securitySchemes[he],delete _.components.securitySchemes[he]),M(_.components.securitySchemes[ue],Z)}for(let he in _.components.schemas){let ue=g.sanitiseAll(he),K="";if(he!==ue){for(;_.components.schemas[ue+K];)K=K?++K:2;_.components.schemas[ue+K]=_.components.schemas[he],delete _.components.schemas[he]}x.schemas[he]=ue+K,E(_.components.schemas[ue+K],Z)}Z.refmap={},u(_,{payload:{options:Z}},T),I(_,Z);for(let he in _.components.parameters){let ue=g.sanitise(he);he!==ue&&(_.components.parameters[ue]&&k("Duplicate sanitised parameter name "+ue,Z),_.components.parameters[ue]=_.components.parameters[he],delete _.components.parameters[he]);let K=_.components.parameters[ue];te(K,null,null,null,ue,_,Z)}for(let he in _.components.responses){let ue=g.sanitise(he);he!==ue&&(_.components.responses[ue]&&k("Duplicate sanitised response name "+ue,Z),_.components.responses[ue]=_.components.responses[he],delete _.components.responses[he]);let K=_.components.responses[ue];if(se(K,ue,null,_,Z),K.headers)for(let ae in K.headers)ae.toLowerCase()==="status code"?Z.patch?(Z.patches++,delete K.headers[ae]):k('(Patchable) "Status Code" is not a valid header',Z):z(K.headers[ae],Z)}for(let he in _.components.requestBodies){let ue=_.components.requestBodies[he],K=JSON.stringify(ue),ae=g.hash(K),le={};le.name=he,le.body=ue,le.refs=[],fe[ae]=le}if(W(_.paths,"paths",Z,fe,_),_["x-ms-paths"]&&W(_["x-ms-paths"],"x-ms-paths",Z,fe,_),!Z.debug)for(let he in _.components.parameters)_.components.parameters[he]["x-s2o-delete"]&&delete _.components.parameters[he];Z.debug&&(_["x-s2o-consumes"]=_.consumes||[],_["x-s2o-produces"]=_.produces||[]),delete _.consumes,delete _.produces,delete _.schemes;let F=[];if(_.components.requestBodies={},!Z.resolveInternal){let he=1;for(let ue in fe){let K=fe[ue];if(K.refs.length>1){let ae="";for(K.name||(K.name="requestBody",ae=he++);F.indexOf(K.name+ae)>=0;)ae=ae?++ae:2;K.name=K.name+ae,F.push(K.name),_.components.requestBodies[K.name]=l(K.body);for(let le in K.refs){let Ce={};Ce.$ref="#/components/requestBodies/"+K.name,i.jptr(_,K.refs[le],Ce)}}}}return _.components.responses&&Object.keys(_.components.responses).length===0&&delete _.components.responses,_.components.parameters&&Object.keys(_.components.parameters).length===0&&delete _.components.parameters,_.components.examples&&Object.keys(_.components.examples).length===0&&delete _.components.examples,_.components.requestBodies&&Object.keys(_.components.requestBodies).length===0&&delete _.components.requestBodies,_.components.securitySchemes&&Object.keys(_.components.securitySchemes).length===0&&delete _.components.securitySchemes,_.components.headers&&Object.keys(_.components.headers).length===0&&delete _.components.headers,_.components.schemas&&Object.keys(_.components.schemas).length===0&&delete _.components.schemas,_.components&&Object.keys(_.components).length===0&&delete _.components,_}function Y(_){return!_||!_.url||typeof _.url!="string"||(_.url=_.url.split("{{").join("{"),_.url=_.url.split("}}").join("}"),_.url.replace(/\{(.+?)\}/g,function(Z,fe){_.variables||(_.variables={}),_.variables[fe]={default:"unknown"}})),_}function q(_,Z,fe){if(typeof _.info>"u"||_.info===null)if(Z.patch)Z.patches++,_.info={version:"",title:""};else return fe(new O("(Patchable) info object is mandatory"));if(typeof _.info!="object"||Array.isArray(_.info))return fe(new O("info must be an object"));if(typeof _.info.title>"u"||_.info.title===null)if(Z.patch)Z.patches++,_.info.title="";else return fe(new O("(Patchable) info.title cannot be null"));if(typeof _.info.version>"u"||_.info.version===null)if(Z.patch)Z.patches++,_.info.version="";else return fe(new O("(Patchable) info.version cannot be null"));if(typeof _.info.version!="string")if(Z.patch)Z.patches++,_.info.version=_.info.version.toString();else return fe(new O("(Patchable) info.version must be a string"));if(typeof _.info.logo<"u")if(Z.patch)Z.patches++,_.info["x-logo"]=_.info.logo,delete _.info.logo;else return fe(new O("(Patchable) info should not have logo property"));if(typeof _.info.termsOfService<"u"){if(_.info.termsOfService===null)if(Z.patch)Z.patches++,_.info.termsOfService="";else return fe(new O("(Patchable) info.termsOfService cannot be null"));try{new URL(_.info.termsOfService)}catch{if(Z.patch)Z.patches++,delete _.info.termsOfService;else return fe(new O("(Patchable) info.termsOfService must be a URL"))}}}function H(_,Z,fe){if(typeof _.paths>"u")if(Z.patch)Z.patches++,_.paths={};else return fe(new O("(Patchable) paths object is mandatory"))}function re(_,Z){const fe=new WeakSet;u(_,{identityDetection:!0},function(F,he,ue){typeof F[he]=="object"&&F[he]!==null&&(fe.has(F[he])?Z.anchors?F[he]=l(F[he]):k("YAML anchor or merge key at "+ue.path,Z):fe.add(F[he]))})}function G(_,Z,fe){return r(fe,new Promise(function(F,he){if(_||(_={}),Z.original=_,Z.text||(Z.text=o.stringify(_)),Z.externals=[],Z.externalRefs={},Z.rewriteRefs=!0,Z.preserveMiro=!0,Z.promise={},Z.promise.resolve=F,Z.promise.reject=he,Z.patches=0,Z.cache||(Z.cache={}),Z.source&&(Z.cache[Z.source]=Z.original),re(_,Z),_.openapi&&typeof _.openapi=="string"&&_.openapi.startsWith("3.")){Z.openapi=c(_),q(Z.openapi,Z,he),H(Z.openapi,Z,he),d.optionalResolve(Z).then(function(){return Z.direct?F(Z.openapi):F(Z)}).catch(function(K){console.warn(K),he(K)});return}if(!_.swagger||_.swagger!="2.0")return he(new O("Unsupported swagger/OpenAPI version: "+(_.openapi?_.openapi:_.swagger)));let ue=Z.openapi={};if(ue.openapi=typeof Z.targetVersion=="string"&&Z.targetVersion.startsWith("3.")?Z.targetVersion:y,Z.origin){ue["x-origin"]||(ue["x-origin"]=[]);let K={};K.url=Z.source||Z.origin,K.format="swagger",K.version=_.swagger,K.converter={},K.converter.url="https://github.com/mermade/oas-kit",K.converter.version=b,ue["x-origin"].push(K)}if(ue=Object.assign(ue,c(_)),delete ue.swagger,u(ue,{},function(K,ae,le){K[ae]===null&&!ae.startsWith("x-")&&ae!=="default"&&le.path.indexOf("/example")<0&&delete K[ae]}),_.host)for(let K of Array.isArray(_.schemes)?_.schemes:[""]){let ae={},le=(_.basePath||"").replace(/\/$/,"");ae.url=(K?K+":":"")+"//"+_.host+le,Y(ae),ue.servers||(ue.servers=[]),ue.servers.push(ae)}else if(_.basePath){let K={};K.url=_.basePath,Y(K),ue.servers||(ue.servers=[]),ue.servers.push(K)}if(delete ue.host,delete ue.basePath,ue["x-servers"]&&Array.isArray(ue["x-servers"])&&(ue.servers=ue["x-servers"],delete ue["x-servers"]),_["x-ms-parameterized-host"]){let K=_["x-ms-parameterized-host"],ae={};ae.url=K.hostTemplate+(_.basePath?_.basePath:""),ae.variables={};const le=ae.url.match(/\{\w+\}/g);for(let Ce in K.parameters){let Se=K.parameters[Ce];Se.$ref&&(Se=l(a(ue,Se.$ref))),Ce.startsWith("x-")||(delete Se.required,delete Se.type,delete Se.in,typeof Se.default>"u"&&(Se.enum?Se.default=Se.enum[0]:Se.default="none"),Se.name||(Se.name=le[Ce].replace("{","").replace("}","")),ae.variables[Se.name]=Se,delete Se.name)}ue.servers||(ue.servers=[]),K.useSchemePrefix===!1?ue.servers.push(ae):_.schemes.forEach(Ce=>{ue.servers.push(Object.assign({},ae,{url:Ce+"://"+ae.url}))}),delete ue["x-ms-parameterized-host"]}q(ue,Z,he),H(ue,Z,he),typeof ue.consumes=="string"&&(ue.consumes=[ue.consumes]),typeof ue.produces=="string"&&(ue.produces=[ue.produces]),ue.components={},ue["x-callbacks"]&&(ue.components.callbacks=ue["x-callbacks"],delete ue["x-callbacks"]),ue.components.examples={},ue.components.headers={},ue["x-links"]&&(ue.components.links=ue["x-links"],delete ue["x-links"]),ue.components.parameters=ue.parameters||{},ue.components.responses=ue.responses||{},ue.components.requestBodies={},ue.components.securitySchemes=ue.securityDefinitions||{},ue.components.schemas=ue.definitions||{},delete ue.definitions,delete ue.responses,delete ue.parameters,delete ue.securityDefinitions,d.optionalResolve(Z).then(function(){Q(Z.openapi,Z),Z.direct?F(Z.openapi):F(Z)}).catch(function(K){console.warn(K),he(K)})}))}function oe(_,Z,fe){return r(fe,new Promise(function(F,he){let ue=null,K=null;try{ue=JSON.parse(_),Z.text=JSON.stringify(ue,null,2)}catch(ae){K=ae;try{ue=o.parse(_,{schema:"core",prettyErrors:!0}),Z.sourceYaml=!0,Z.text=_}catch(le){K=le}}ue?G(ue,Z).then(ae=>F(ae)).catch(ae=>he(ae)):he(new O(K?K.message:"Could not parse string"))}))}function ne(_,Z,fe){return r(fe,new Promise(function(F,he){Z.origin=!0,Z.source||(Z.source=_),Z.verbose&&console.warn("GET "+_),Z.fetch||(Z.fetch=n);const ue=Object.assign({},Z.fetchOptions,{agent:Z.agent});Z.fetch(_,ue).then(function(K){if(K.status!==200)throw new O(`Received status code ${K.status}: ${_}`);return K.text()}).then(function(K){oe(K,Z).then(ae=>F(ae)).catch(ae=>he(ae))}).catch(function(K){he(K)})}))}function be(_,Z,fe){return r(fe,new Promise(function(F,he){e.readFile(_,Z.encoding||"utf8",function(ue,K){ue?he(ue):(Z.sourceFile=_,oe(K,Z).then(ae=>F(ae)).catch(ae=>he(ae)))})}))}function ve(_,Z,fe){return r(fe,new Promise(function(F,he){let ue="";_.on("data",function(K){ue+=K}).on("end",function(){oe(ue,Z).then(K=>F(K)).catch(K=>he(K))})}))}return Z7={S2OError:O,targetVersion:y,convert:G,convertObj:G,convertUrl:ne,convertStr:oe,convertFile:be,convertStream:ve},Z7}var qRe=QRe();const ZRe=qn(qRe);function WRe(e){return e.paths||(e.paths={}),new Promise((t,r)=>ZRe.convertObj(e,{patch:!0,warnOnly:!0,text:"{}",anchors:!0},(n,o)=>{if(n)return r(n);t(o?.openapi)}))}async function URe(e){const t=new bE({}),r={config:t,base:Ya?window.location.href:typeof globalThis.process<"u"?globalThis.process.cwd():""};Ya&&(t.resolve.http.customFetch=globalThis.fetch),typeof e=="object"&&e!==null?r.doc=HRe(e):r.ref=e;const{bundle:{parsed:n}}=await cRe(r);return n.swagger!==void 0?WRe(n):n}function HRe(e){return{source:{absoluteRef:""},parsed:e}}async function XRe(e,t,r){let n;if(r?.skipBundle){if(!e)throw new Error('spec must be specified when using "skipBundleAndConvert"');n=e}else n=await URe(e||t);try{jwe(n)}catch{}return n}const YRe=({options:e,definitionUrl:t,definition:r,activeSampleLanguage:n,children:o})=>{const[,i]=$.useState(),[a,s]=$.useState(!0),[l,c]=$.useState(null);$.useEffect(()=>{async function d(){s(!0);try{c(await XRe(r,t,e))}catch(h){i(()=>{throw h})}}d()},[r,t,e]);const u=$.useMemo(()=>{if(l)return e?.unstable_hooks?.onInit&&e.unstable_hooks?.onInit?.({store:{definition:l,options:e,definitionUrl:t,activeSampleLanguage:n}}),{definition:l,options:e,definitionUrl:t,activeSampleLanguage:n}},Awe([l,e,t]));return $.useEffect(()=>{u&&s(!1)},[u]),u?a?va(e?.hideLoading,!1)?null:f.jsx(fme,{color:"--loading-spinner-color"}):$.isValidElement(o)?$.cloneElement(o,{store:u}):null:null};function GRe({definition:e,definitionUrl:t,options:r={},activeItemId:n,activeSampleLanguage:o,activeDeepLink:i}){return f.jsx(YRe,{definition:e,definitionUrl:t,options:r,activeItemId:n,activeSampleLanguage:o,activeDeepLink:i,children:f.jsx(WV,{withCommonStyles:!0})})}function JRe(e){const t={},r=e.attributes;for(let n=0;n<r.length;n++){const o=r[n];t[o.name]=o.value}return t}function KRe(e){const t=JRe(e),r={};for(const n in t){const o=n.replace(/-(.)/g,(i,a)=>a.toUpperCase());r[o]=t[n]}return r}function eIe(e,t=document.querySelector("redoc")){p$.hydrateRoot(t,f.jsx(WV,{store:e}))}function gW(e,t={},r=U6("redoc")){if(r===null)throw new Error('"element" argument is not provided and <redoc> tag is not found on the page');let n,o;typeof e=="string"?n=e:typeof e=="object"&&(o=e),p$.createRoot(r).render($.createElement(GRe,{definition:o,definitionUrl:n,options:{...t,...KRe(r)}},["Loading..."]))}const tIe="3.12.0-next.5",rIe="19701846";function nIe(){const e=U6("redoc");if(!e)return;const t=e.getAttribute("spec-url");t&&gW(t,{},e)}nIe();var oIe={},W7=function(e,t){return W7=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(r[o]=n[o])},W7(e,t)};function iIe(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");W7(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var jy=function(){return jy=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},jy.apply(this,arguments)},aIe=Object.prototype.hasOwnProperty;function mW(e,t){return e===t?e!==0||t!==0||1/e===1/t:e!==e&&t!==t}function sIe(e,t){if(mW(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;for(var o=0;o<r.length;o++)if(!aIe.call(t,r[o])||!mW(e[r[o]],t[r[o]]))return!1;return!0}var qt=Symbol("none"),lIe=Symbol("__state");function vW(e,t){var r=yW(e);r.activate(t);var n=r.toMethods();return n.self()}function cIe(e,t,r,n,o){function i(a){var s=a.map(function(v){return v()}),l=s.map(function(v){return v.onInit}).filter(function(v){return v}),c=s.map(function(v){return v.onPremerge}).filter(function(v){return v}),u=s.map(function(v){return v.onPreset}).filter(function(v){return v}),d=s.map(function(v){return v.onSet}).filter(function(v){return v}),h=s.map(function(v){return v.onDestroy}).filter(function(v){return v}),g={onCreate:function(v,b){for(var y=0,x=s;y<x.length;y++){var O=x[y];if(O.onCreate){var k=O.onCreate(v,b);Object.assign(b,k)}}return b}};return l.length>0&&(g.onInit=function(v,b){for(var y=0,x=l;y<x.length;y++){var O=x[y];O(v,b)}}),c.length>0&&(g.onPremerge=function(v,b,y){for(var x=0,O=c;x<O.length;x++){var k=O[x];k(v,b,y)}}),u.length>0&&(g.onPreset=function(v,b,y){for(var x=0,O=u;x<O.length;x++){var k=O[x];k(v,b,y)}}),d.length>0&&(g.onSet=function(v,b,y){for(var x=0,O=d;x<O.length;x++){var k=O[x];k(v,b,y)}}),h.length>0&&(g.onDestroy=function(v){for(var b=0,y=h;b<y.length;b++){var x=y[b];x(v)}}),g}return function(){return i([e,t,r,n,o].filter(function(a){return a}))}}function bW(e,t){var r=Object(e)===e?e[U7]:void 0;if(r)if(r.isMounted){var n=function(){var b=r.store,y=function(){return a({store:b,state:x,source:i.source,parentMethods:r})},x=new Py(b,r.path,b.get(r.path),b.edition,y);return{store:b,state:x,source:e,parentMethods:r}},o=kt.useState(n),i=o[0],a=o[1];(i.store!==r.store||!("source"in i))&&(i.state.onUnmount(),i.parentMethods.unsubscribe(i.state),i=n()),Object.defineProperty(i,"store",{enumerable:!1}),Object.defineProperty(i,"state",{enumerable:!1}),Object.defineProperty(i,"source",{enumerable:!1}),Object.defineProperty(i,"parentMethods",{enumerable:!1}),i.state.reconstruct(r.path,i.store.get(r.path),i.store.edition,i.source!==e),i.source=e,r.subscribe(i.state),t8(function(){return i.state.onMount(),r.subscribe(i.state),function(){i.state.onUnmount(),r.unsubscribe(i.state)}},[]);var s=i.state.self();return i["[hookstate(scoped)]"]=s,s}else{var n=function(){var y=r.store,x=function(){return c.state.isMounted&&u({store:y,state:O,source:c.source})},O=new Py(y,ri,y.get(ri),y.edition,x);return{store:y,state:O,source:e}},l=kt.useState(n),c=l[0],u=l[1];(c.store!==r.store||!("source"in c))&&(c.state.onUnmount(),c.store.unsubscribe(c.state),c=n()),Object.defineProperty(c,"store",{enumerable:!1}),Object.defineProperty(c,"state",{enumerable:!1}),Object.defineProperty(c,"source",{enumerable:!1}),c.state.reconstruct(ri,c.store.get(ri),c.store.edition,c.source!==e),c.source=e,c.store.subscribe(c.state),t8(function(){return c.state.onMount(),c.store.subscribe(c.state),function(){c.state.onUnmount(),c.store.unsubscribe(c.state)}},[]);for(var s=c.state.self(),d=0;d<r.path.length;d+=1)s=s.nested(r.path[d]);return c["[hookstate(global)]"]=s,s}else{var n=function(){var x=yW(e),O=function(){return g.state.isMounted&&v({store:x,state:k})},k=new Py(x,ri,x.get(ri),x.edition,O);return{store:x,state:k}},h=kt.useState(n),g=h[0],v=h[1];"source"in g&&(g.state.onUnmount(),g.store.unsubscribe(g.state),g.store.deactivate(),g=n()),Object.defineProperty(g,"store",{enumerable:!1}),Object.defineProperty(g,"state",{enumerable:!1}),g.state.reconstruct(ri,g.store.get(ri),g.store.edition,!1),g.store.subscribe(g.state),g.store.activate(t),t8(function(){return g.state.onMount(),g.store.subscribe(g.state),g.store.activate(t),function(){g.state.onUnmount(),g.store.unsubscribe(g.state),g.store.deactivate()}},[]);var s=g.state.self();return g["[hookstate(local)]"]=s,s}}var U7=Symbol("self"),cn;(function(e){e[e.StateUsedInDependencyList=100]="StateUsedInDependencyList",e[e.InitStateToValueFromState=101]="InitStateToValueFromState",e[e.SetStateToValueFromState=102]="SetStateToValueFromState",e[e.GetStateWhenPromised=103]="GetStateWhenPromised",e[e.SetStateWhenPromised=104]="SetStateWhenPromised",e[e.SetStateNestedToPromised=105]="SetStateNestedToPromised",e[e.SetStateWhenDestroyed=106]="SetStateWhenDestroyed",e[e.ToJson_Value=108]="ToJson_Value",e[e.ToJson_State=109]="ToJson_State",e[e.GetProperty_Function=110]="GetProperty_Function",e[e.InitStateStoreSwitchover=111]="InitStateStoreSwitchover",e[e.GetUnknownPlugin=120]="GetUnknownPlugin",e[e.SetProperty_State=201]="SetProperty_State",e[e.SetProperty_Value=202]="SetProperty_Value",e[e.SetPrototypeOf_State=203]="SetPrototypeOf_State",e[e.SetPrototypeOf_Value=204]="SetPrototypeOf_Value",e[e.PreventExtensions_State=205]="PreventExtensions_State",e[e.PreventExtensions_Value=206]="PreventExtensions_Value",e[e.DefineProperty_State=207]="DefineProperty_State",e[e.DefineProperty_Value=208]="DefineProperty_Value",e[e.DeleteProperty_State=209]="DeleteProperty_State",e[e.DeleteProperty_Value=210]="DeleteProperty_Value",e[e.Construct_State=211]="Construct_State",e[e.Construct_Value=212]="Construct_Value",e[e.Apply_State=213]="Apply_State",e[e.Apply_Value=214]="Apply_Value"})(cn||(cn={}));var os=function(e){iIe(t,e);function t(r,n,o){return e.call(this,"Error: HOOKSTATE-".concat(n," [path: /").concat(r.join("/")).concat(o?", details: ".concat(o):"","]. ")+"See https://hookstate.js.org/docs/exceptions#hookstate-".concat(n))||this}return t}(Error),Ay=Symbol("ProxyMarker"),ri=[],uIe=function(){function e(t){var r=this;this._value=t,this.edition=1,this._subscribers=new Set,Object(t)===t&&X7.promiseDetector(t)?this.setPromised(t):t===qt&&this.setPromised(void 0);var n=function(){r._stateMethods.reconstruct(ri,r.get(ri),r.edition,!1)};n[Ey]=!0,this._stateMethods=new Py(this,ri,this.get(ri),this.edition,n),this.subscribe(this._stateMethods)}return e.prototype.setPromised=function(t){var r=this;if(this._value=qt,this._promiseError=void 0,this._promiseResolver=void 0,!t){this._promise=new Promise(function(n){r._promiseResolver=n});return}t=t.then(function(n){r._promise===t&&(r._promise=void 0,r._promiseError=void 0,r.update(r._stateMethods.self(),r.set(ri,n)))}).catch(function(n){if(r._promise===t){r._promise=void 0,r._promiseResolver=void 0,r._promiseError=n,r.edition+=1;var o={path:ri};r.update(r._stateMethods.self(),o)}}),this._promise=t},e.prototype.activate=function(t){var r,n,o,i;this.edition<0&&(this.edition=-this.edition),this._extension===void 0&&(this._extension=t?.(),this._extensionMethods=(n=(r=this._extension)===null||r===void 0?void 0:r.onCreate)===null||n===void 0?void 0:n.call(r,this._stateMethods.self(),{}),(i=(o=this._extension)===null||o===void 0?void 0:o.onInit)===null||i===void 0||i.call(o,this._stateMethods.self(),this._extensionMethods||{}))},e.prototype.deactivate=function(){var t,r;this._extension&&((r=(t=this._extension).onDestroy)===null||r===void 0||r.call(t,this._stateMethods.self()),delete this._extension,delete this._extensionMethods),this.edition>0&&(this.edition=-this.edition)},Object.defineProperty(e.prototype,"extension",{get:function(){return this._extensionMethods},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"promise",{get:function(){return this._promise},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"promiseError",{get:function(){return this._promiseError},enumerable:!1,configurable:!0}),e.prototype.get=function(t){var r=this._value;return r===qt||t.forEach(function(n){r=r[n]}),r},e.prototype.set=function(t,r){var n,o;if(t.length===0){if(r===qt)this.setPromised(void 0);else if(Object(r)===r&&X7.promiseDetector(r))this.setPromised(r),r=qt;else{if(this._promise&&!this._promiseResolver)throw new os(t,cn.SetStateWhenPromised);this._promiseError=void 0}var i=this._value;if(this._value=r,this.afterSet(),i===qt&&this._value!==qt&&this._promiseResolver){this._promise=void 0,this._promiseError=void 0;var a=this._promiseResolver;a(this._value)}return{path:t}}if(Object(r)===r&&X7.promiseDetector(r))throw new os(t,cn.SetStateNestedToPromised);for(var s=this._value,l=0;l<t.length-1;l+=1)s=s[t[l]];var c=t[t.length-1];return c in s?r!==qt?(s[c]=r,this.afterSet(),{path:t}):(Array.isArray(s)&&typeof c=="number"?s.splice(c,1):delete s[c],this.afterSet(),{path:t.slice(0,-1),actions:(n={},n[c]="D",n)}):r!==qt?(s[c]=r,this.afterSet(),{path:t.slice(0,-1),actions:(o={},o[c]="I",o)}):{path:t}},e.prototype.preset=function(t,r){var n,o;(o=(n=this._extension)===null||n===void 0?void 0:n.onPreset)===null||o===void 0||o.call(n,t,r,this._stateMethods.self())},e.prototype.premerge=function(t,r){var n,o;(o=(n=this._extension)===null||n===void 0?void 0:n.onPremerge)===null||o===void 0||o.call(n,t,r,this._stateMethods.self())},e.prototype.update=function(t,r){var n=this,o,i;(i=(o=this._extension)===null||o===void 0?void 0:o.onSet)===null||i===void 0||i.call(o,t,r,this._stateMethods.self());var a=new Set;r.actions&&Object.values(r.actions).findIndex(function(s){return s!=="U"})===-1?Object.keys(r.actions).forEach(function(s){n._subscribers.forEach(function(l){return l.onSet({path:r.path.concat(s)},a)})}):this._subscribers.forEach(function(s){return s.onSet(r,a)}),a.forEach(function(s){return s()})},e.prototype.afterSet=function(){this.edition>0&&(this.edition+=1),this.edition<0&&(this.edition-=1)},e.prototype.toMethods=function(){return this._stateMethods},e.prototype.subscribe=function(t){this._subscribers.add(t)},e.prototype.unsubscribe=function(t){this._subscribers.delete(t)},e.prototype.toJSON=function(){throw new os(ri,cn.ToJson_Value)},e}(),Md=Symbol("UnusedValue"),Ey=Symbol("IsUnmounted"),Py=function(){function e(t,r,n,o,i){this.store=t,this.path=r,this.valueSource=n,this.valueEdition=o,this.onSetUsed=i,this.valueUsed=Md}return Object.defineProperty(e.prototype,lIe,{get:function(){return[this.get(),this.self()]},enumerable:!1,configurable:!0}),e.prototype.reconstruct=function(t,r,n,o){this.path=t,this.valueSource=r,this.valueEdition=n,this.valueUsed=Md,o?(delete this.selfUsed,delete this.childrenCreated,delete this.childrenUsedPrevious):(this.valueUsedNoProxyPrevious=this.valueUsedNoProxy,this.childrenUsedPrevious=this.childrenUsed),delete this.valueUsedNoProxy,delete this.childrenUsed},e.prototype.reconnect=function(){this.get({__internalAllowPromised:!0,noproxy:this.valueUsedNoProxyPrevious}),this.childrenUsed=jy(jy({},this.childrenUsedPrevious),this.childrenUsed)},e.prototype.getUntracked=function(t){if(this.valueEdition!==this.store.edition&&(this.valueSource=this.store.get(this.path),this.valueEdition=this.store.edition,this.valueUsed!==Md&&(this.valueUsed=Md,this.get({__internalAllowPromised:!0}))),t)return this.valueSource;if(this.store.promiseError)throw this.store.promiseError;if(this.store.promise)throw new os(this.path,cn.GetStateWhenPromised);return this.valueSource},e.prototype.get=function(t){var r,n=this.getUntracked(t?.__internalAllowPromised);return t?.stealth?n:(this.valueUsed===Md&&(Array.isArray(n)?this.valueUsed=this.valueArrayImpl(n):Object(n)===n?((r=n.constructor)===null||r===void 0?void 0:r.name)==="Object"?this.valueUsed=this.valueObjectImpl(n):(this.valueUsedNoProxy=!0,this.valueUsed=n):this.valueUsed=n),t?.noproxy?(this.valueUsedNoProxy=!0,n):this.valueUsed)},Object.defineProperty(e.prototype,"value",{get:function(){return this.get()},enumerable:!1,configurable:!0}),e.prototype.setUntrackedV4=function(t){if(typeof t=="function"&&(t=t(this.getUntracked())),this.store.preset(this.self(),t),Object(t)===t&&t[Ay])throw new os(this.path,cn.SetStateToValueFromState);return t!==Object(t)&&t===this.getUntracked(!0)?null:this.store.set(this.path,t)},e.prototype.set=function(t){var r=this.setUntrackedV4(t);r&&this.store.update(this.self(),r)},e.prototype.mergeUntracked=function(t){var r=this.mergeUntrackedV4(t);return r?[r.path]:[]},e.prototype.mergeUntrackedV4=function(t){var r=this.getUntracked();if(typeof t=="function"&&(t=t(r)),this.store.premerge(this.self(),t),Array.isArray(r))if(Array.isArray(t)){var n={path:this.path,actions:{}};return t.forEach(function(s,l){n.actions[r.push(s)-1]="I"}),Object.keys(n.actions).length>0?(this.setUntrackedV4(r),n):null}else{var o={path:this.path,actions:{}},i=[];return Object.keys(t).map(function(s){return Number(s)}).sort(function(s,l){return s-l}).forEach(function(s){var l=Number(s),c=t[l];c===qt?(o.actions[l]="D",i.push(l)):(l in r?o.actions[l]="U":o.actions[l]="I",r[l]=c)}),i.reverse().forEach(function(s){r.splice(s,1)}),Object.keys(o.actions).length>0?(this.setUntrackedV4(r),o):null}else if(Object(r)===r){var a={path:this.path,actions:{}};return Object.keys(t).forEach(function(s){var l=t[s];l===qt?(a.actions[s]="D",delete r[s]):(s in r?a.actions[s]="U":a.actions[s]="I",r[s]=l)}),Object.keys(a.actions).length>0?(this.setUntrackedV4(r),a):null}else return typeof r=="string"?this.setUntrackedV4(r+String(t)):this.setUntrackedV4(t)},e.prototype.merge=function(t){var r=this.mergeUntrackedV4(t);r&&this.store.update(this.self(),r)},e.prototype.nested=function(t){return this.child(t).self()},e.prototype.rerender=function(t){for(var r=0,n=t;r<n.length;r++){var o=n[r];this.store.update(this.self(),{path:o})}},e.prototype.activate=function(t){this.store.activate(t)},e.prototype.deactivate=function(){this.store.deactivate()},e.prototype.subscribe=function(t){this.subscribers===void 0&&(this.subscribers=new Set),this.subscribers.add(t)},e.prototype.unsubscribe=function(t){this.subscribers&&this.subscribers.delete(t)},Object.defineProperty(e.prototype,"isMounted",{get:function(){return!this.onSetUsed[Ey]},enumerable:!1,configurable:!0}),e.prototype.onMount=function(){delete this.onSetUsed[Ey]},e.prototype.onUnmount=function(){this.onSetUsed[Ey]=!0},e.prototype.onSet=function(t,r){var n=this,o=function(){var a,s=!1;n.valueUsedNoProxy&&n.valueUsed!==Md&&(r.add(n.onSetUsed),delete n.selfUsed,s=!0);var l=t.path,c=l[n.path.length];if(c===void 0){if(n.valueUsed!==Md){if(r.add(n.onSetUsed),delete n.selfUsed,delete n.childrenUsed,t.actions&&n.childrenCreated)if(Array.isArray(n.valueSource)&&Object.values(t.actions).includes("D")){var u=Object.keys(t.actions).map(function(g){return Number(g)}).sort(function(g,v){return g-v}).find(function(g){var v;return((v=t.actions)===null||v===void 0?void 0:v[g])==="D"});for(var d in n.childrenCreated)(Number(d)>=u||d in t.actions)&&delete n.childrenCreated[d]}else for(var d in t.actions)delete n.childrenCreated[d];else delete n.childrenCreated;return!0}}else{var h=(a=n.childrenUsed)===null||a===void 0?void 0:a[c];if(h&&h.onSet(t,r))return delete n.selfUsed,!0}return s},i=o();return!i&&this.subscribers!==void 0&&this.subscribers.forEach(function(a){a.onSet(t,r)&&delete n.selfUsed}),i},Object.defineProperty(e.prototype,"keys",{get:function(){var t=this.get();if(Array.isArray(t))return Object.keys(t).map(function(r){return Number(r)}).filter(function(r){return Number.isInteger(r)});if(Object(t)===t)return Object.keys(t)},enumerable:!1,configurable:!0}),e.prototype.child=function(t){this.childrenUsed=this.childrenUsed||{};var r=this.childrenUsed.hasOwnProperty(t)&&this.childrenUsed[t];if(r)return r;var n=this.valueSource[t];if(typeof n=="function")throw new os(this.path,cn.GetProperty_Function);this.childrenCreated=this.childrenCreated||{};var o=this.childrenCreated[t],i;return o?(o.reconstruct(this.path.concat(t),n,this.valueEdition,!1),i=o):(i=new e(this.store,this.path.concat(t),n,this.valueEdition,this.onSetUsed),this.childrenCreated[t]=i),this.valueUsedNoProxy&&(i.valueUsedNoProxy=!0),this.childrenUsed[t]=i,i},e.prototype.valueArrayImpl=function(t){var r=this;return H7(this.path,t,function(){return t},function(n,o){if(o==="length")return n.length;if(o in Array.prototype)return Array.prototype[o];if(o===Ay)return r;if(typeof o=="symbol")return n[o];var i=Number(o);if(Number.isInteger(i))return r.child(i).get()},function(n,o,i){if(typeof o=="symbol")return n[o]=i,!0;throw new os(r.path,cn.SetProperty_Value)},!0)},e.prototype.valueObjectImpl=function(t){var r=this;return H7(this.path,t,function(){return t},function(n,o){return o in Object.prototype?Object.prototype[o]:o===Ay?r:typeof o=="symbol"?n[o]:r.child(o).get()},function(n,o,i){if(typeof o=="symbol")return n[o]=i,!0;throw new os(r.path,cn.SetProperty_Value)},!0)},e.prototype.self=function(){var t=this;if(this.selfUsed)return this.selfUsed;var r=function(n,o){if(o===U7)return t;if(typeof o!="symbol"){if(o==="toJSON")throw new os(t.path,cn.ToJson_State);var i=function(s){var l=t.get({__internalAllowPromised:s==="$$typeof"||s==="constructor"});if(s in Object.prototype)return Object.prototype[s];if(!(Object(l)!==l&&l!==qt)){if(Array.isArray(l)){if(s==="length")return l.length;if(s in Array.prototype)return Array.prototype[s];var c=Number(s);return Number.isInteger(c)?t.nested(c):void 0}return t.nested(s.toString())}};switch(o){case"path":return t.path;case"keys":return t.keys;case"value":return t.value;case"ornull":return t.ornull;case"promised":return t.promised;case"promise":return t.promise;case"error":return t.error;case"get":return function(s){return t.get(s)};case"set":return function(s){return t.set(s)};case"merge":return function(s){return t.merge(s)};case"nested":return function(s){return i(s)};default:var a=t.store.extension;return a&&o in a?a[o](t.self()):i(o)}}};return this.selfUsed=H7(this.path,this.valueSource,function(n){return t.get({__internalAllowPromised:!0,stealth:n?.stealth})},r,function(n,o,i){throw new os(t.path,cn.SetProperty_State)},!1),this.selfUsed},Object.defineProperty(e.prototype,"promised",{get:function(){return this.get({__internalAllowPromised:!0}),!!this.store.promise},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"promise",{get:function(){var t=this,r;return this.get({__internalAllowPromised:!0}),(r=this.store.promise)===null||r===void 0?void 0:r.then(function(n){return t.self()})},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"error",{get:function(){return this.get({__internalAllowPromised:!!this.store.promiseError}),this.store.promiseError},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"ornull",{get:function(){var t=this.get();return t==null?t:this.self()},enumerable:!1,configurable:!0}),e}();function H7(e,t,r,n,o,i){var a=function(s){throw new os(e,s)};return Object(t)!==t&&(t={}),new Proxy(t,{getPrototypeOf:function(s){var l=r();return l==null?null:Object.getPrototypeOf(l===qt?new Promise(function(){}):l)},setPrototypeOf:function(s,l){return a(i?cn.SetPrototypeOf_State:cn.SetPrototypeOf_Value)},isExtensible:function(s){return!0},preventExtensions:function(s){return a(i?cn.PreventExtensions_State:cn.PreventExtensions_Value)},getOwnPropertyDescriptor:function(s,l){var c=r();if(Object(c)===c){var u=Object.getOwnPropertyDescriptor(c,l);return Array.isArray(c)&&l in Array.prototype?u:u&&{configurable:!0,enumerable:u.enumerable,get:function(){return n(c,l)},set:void 0}}if(!(i||c===qt)){if(l==="value")return{configurable:!0,enumerable:!0,get:function(){return r({stealth:!0})},set:void 0};if(l==="path")return{configurable:!0,enumerable:!0,get:function(){return e},set:void 0}}},has:function(s,l){if(typeof l=="symbol")return!1;var c=r();return Object(c)===c?l in c:i||c===qt?!1:l==="value"||l==="path"},get:n,set:o,deleteProperty:function(s,l){return a(i?cn.DeleteProperty_State:cn.DeleteProperty_Value)},defineProperty:function(s,l,c){return a(i?cn.DefineProperty_State:cn.DefineProperty_Value)},ownKeys:function(s){var l=r();return Array.isArray(l)&&s.length===void 0&&Object.defineProperty(t,"length",{value:0,writable:!0,enumerable:!1,configurable:!1}),Object(l)===l?Object.getOwnPropertyNames(l):i||l===qt?[]:["value","path"]},apply:function(s,l,c){return a(i?cn.Apply_State:cn.Apply_Value)},construct:function(s,l,c){return a(i?cn.Construct_State:cn.Construct_Value)}})}function yW(e){var t=e;if(typeof e=="function"&&(t=e()),Object(t)===t&&t[Ay])throw new os(ri,cn.InitStateToValueFromState);return new uIe(t)}var X7={interceptDependencyListsMode:"always",isDevelopmentMode:typeof process=="object"&&typeof oIe=="object"&&!1,promiseDetector:function(e){return Promise.resolve(e)===e},hiddenInterceptDependencyListsModeDebug:!1};function zd(e,t){for(var r=0,n=e||[];r<n.length;r++){var o=n[r];if(o===Object(o)){var i=o[U7];i&&i.reconnect()}}return e}var Ty;function dIe(e,t){return zd(t),Ty(e,t)}var _y;function pIe(e,t){return zd(t),_y(e,t)}var Y7;function hIe(e,t){return zd(t),Y7(e,t)}var G7;function fIe(e,t,r){return zd(r),G7(e,t,r)}var J7;function gIe(e,t){return zd(t),J7(e,t)}var K7;function mIe(e,t){return zd(t),K7(e,t)}var e8;function vIe(e,t){return e8(e,function(r,n){return zd(Object.keys(n).map(function(o){return n[o]})),(t||sIe)(r,n)})}function bIe(){!Ty&&kt.useEffect&&(Ty=kt.useEffect,kt.useEffect=dIe),!_y&&kt.useLayoutEffect&&(_y=kt.useLayoutEffect,kt.useLayoutEffect=pIe),!Y7&&kt.useInsertionEffect&&(Y7=kt.useInsertionEffect,kt.useInsertionEffect=hIe),!G7&&kt.useImperativeHandle&&(G7=kt.useImperativeHandle,kt.useImperativeHandle=fIe),!J7&&kt.useMemo&&(J7=kt.useMemo,kt.useMemo=gIe),!K7&&kt.useCallback&&(K7=kt.useCallback,kt.useCallback=mIe),!e8&&kt.memo&&(e8=kt.memo,kt.memo=vIe)}bIe();var t8=typeof window<"u"?_y:Ty;function is(e){return"Minified Redux error #"+e+"; visit https://redux.js.org/Errors?code="+e+" for the full message or use the non-minified dev environment for full errors. "}var xW=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),OW=function(){return Math.random().toString(36).substring(7).split("").join(".")},wW={INIT:"@@redux/INIT"+OW(),REPLACE:"@@redux/REPLACE"+OW()};function yIe(e){if(typeof e!="object"||e===null)return!1;for(var t=e;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function kW(e,t,r){var n;if(typeof t=="function"&&typeof r=="function"||typeof r=="function"&&typeof arguments[3]=="function")throw new Error(is(0));if(typeof t=="function"&&typeof r>"u"&&(r=t,t=void 0),typeof r<"u"){if(typeof r!="function")throw new Error(is(1));return r(kW)(e,t)}if(typeof e!="function")throw new Error(is(2));var o=e,i=t,a=[],s=a,l=!1;function c(){s===a&&(s=a.slice())}function u(){if(l)throw new Error(is(3));return i}function d(b){if(typeof b!="function")throw new Error(is(4));if(l)throw new Error(is(5));var y=!0;return c(),s.push(b),function(){if(y){if(l)throw new Error(is(6));y=!1,c();var x=s.indexOf(b);s.splice(x,1),a=null}}}function h(b){if(!yIe(b))throw new Error(is(7));if(typeof b.type>"u")throw new Error(is(8));if(l)throw new Error(is(9));try{l=!0,i=o(i,b)}finally{l=!1}for(var y=a=s,x=0;x<y.length;x++){var O=y[x];O()}return b}function g(b){if(typeof b!="function")throw new Error(is(10));o=b,h({type:wW.REPLACE})}function v(){var b,y=d;return b={subscribe:function(x){if(typeof x!="object"||x===null)throw new Error(is(11));function O(){x.next&&x.next(u())}O();var k=y(O);return{unsubscribe:k}}},b[xW]=function(){return this},b}return h({type:wW.INIT}),n={dispatch:h,subscribe:d,getState:u,replaceReducer:g},n[xW]=v,n}var xIe=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:function(){return function(e){return e}};function OIe(e,t,r){var n=!1,o=!1,i=kW(function(s,l){if(!o){var c=function(y){return Array.isArray(y)&&y.findIndex(function(x){return typeof x!="string"&&typeof x!="number"})===-1};if(l.type.startsWith("SET")){var u=function(y){try{n=!0,"value"in l?y.set(l.value):y.set(qt)}finally{n=!1}};if(l.path){if(c(l.path)){l.path.length===0&&u(e);for(var d=e,h=!0,g=0,v=l.path;g<v.length;g++){var b=v[g];d[b]?d=d[b]:h=!1}h&&u(d)}}else u(e)}else l.type==="BREAKPOINT"&&r()}return e.promised||e.error?qt:e.get({noproxy:!0})},xIe({name:"".concat(window.location.hostname,": ").concat(t),trace:!0,traceLimit:16,autoPause:!0,shouldHotReload:!1,features:{persist:!0,pause:!0,lock:!1,export:"custom",import:"custom",jump:!1,skip:!1,reorder:!1,dispatch:!0,test:!1}})),a=function(s,l){if(n)l&&l();else try{o=!0,i.dispatch(s)}finally{o=!1}};return a}function wIe(e){return function(){var t,r,n=!1;return{onInit:function(o,i){if(!(typeof window>"u"||!("__REDUX_DEVTOOLS_EXTENSION__"in window))){if(e?.key===void 0){if(i.identifier===void 0)throw Error("State is missing Identifiable extension or Devtools key option");t=i.identifier(o)}else t=e.key;r=OIe(o,t,function(){n=!n}),o.promise||r?.({type:"CREATE",state:o.get({noproxy:!0,stealth:!0})})}},onSet:function(o,i){if(r?.({type:"SET [".concat(o.path.join("/"),"]"),state:o.get({noproxy:!0,stealth:!0}),descriptor:i}),n)debugger},onDestroy:function(){r?.({type:"DESTROY"})}}}}var gr=(e=>(e.Normal="Normal",e.Edit="Edit",e.Draft="Draft",e))(gr||{});const $y="default",CW=[{name:$y,inputs:[],servers:[],state:gr.Normal}];var bl=(e=>(e.Idle="idle",e.Loading="loading",e.Success="success",e.Error="error",e))(bl||{});function r8(){const{tabsState:e}=Pr();return{tabs:e.tabs,activeTabIdx:e.activeTabIdx}}function ka(e,t){return e.type===t}const SW={activeTabIdx:0,tabs:[]};function yl(e){const t=new WeakMap;function r(n){if(typeof n!="object"||n===null)return n;if(t.has(n))return t.get(n);const o=Array.isArray(n)?[]:{};t.set(n,o);for(const i in n)Object.prototype.hasOwnProperty.call(n,i)&&(o[i]=r(n[i]));return o}return r(e)}function n8(e,t){if(e===t)return!0;if(e&&t&&typeof e=="object"&&typeof t=="object"){if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return!1;for(let o=0;o<e.length;o++)if(!n8(e[o],t[o]))return!1;return!0}const r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;for(let o=0;o<r.length;o++){const i=r[o];if(!Object.prototype.hasOwnProperty.call(t,i)||!n8(e[i],t[i]))return!1}return!0}return e!==e&&t!==t}function Ry(e){if(typeof e!="object"||e===null)return e;if(Array.isArray(e))return e.map(Ry);const t={};for(const r in e)Object.prototype.hasOwnProperty.call(e,r)&&r!=="id"&&(t[r]=Ry(e[r]));return t}function jW(e){return Object.keys(e).forEach(t=>{e[t]===void 0&&delete e[t]}),e}var o8={exports:{}},i8={exports:{}},kIe=i8.exports,AW;function lr(){return AW||(AW=1,function(e,t){(function(r,n){e.exports=n()})(kIe,function(){var r=r||function(n,o){var i;if(typeof window<"u"&&window.crypto&&(i=window.crypto),typeof self<"u"&&self.crypto&&(i=self.crypto),typeof globalThis<"u"&&globalThis.crypto&&(i=globalThis.crypto),!i&&typeof window<"u"&&window.msCrypto&&(i=window.msCrypto),!i&&typeof globalThis<"u"&&globalThis.crypto&&(i=globalThis.crypto),!i&&typeof Yg=="function")try{i=A7}catch{}var a=function(){if(i){if(typeof i.getRandomValues=="function")try{return i.getRandomValues(new Uint32Array(1))[0]}catch{}if(typeof i.randomBytes=="function")try{return i.randomBytes(4).readInt32LE()}catch{}}throw new Error("Native crypto module could not be used to get secure random number.")},s=Object.create||function(){function O(){}return function(k){var j;return O.prototype=k,j=new O,O.prototype=null,j}}(),l={},c=l.lib={},u=c.Base=function(){return{extend:function(O){var k=s(this);return O&&k.mixIn(O),(!k.hasOwnProperty("init")||this.init===k.init)&&(k.init=function(){k.$super.init.apply(this,arguments)}),k.init.prototype=k,k.$super=this,k},create:function(){var O=this.extend();return O.init.apply(O,arguments),O},init:function(){},mixIn:function(O){for(var k in O)O.hasOwnProperty(k)&&(this[k]=O[k]);O.hasOwnProperty("toString")&&(this.toString=O.toString)},clone:function(){return this.init.prototype.extend(this)}}}(),d=c.WordArray=u.extend({init:function(O,k){O=this.words=O||[],k!=o?this.sigBytes=k:this.sigBytes=O.length*4},toString:function(O){return(O||g).stringify(this)},concat:function(O){var k=this.words,j=O.words,C=this.sigBytes,A=O.sigBytes;if(this.clamp(),C%4)for(var E=0;E<A;E++){var P=j[E>>>2]>>>24-E%4*8&255;k[C+E>>>2]|=P<<24-(C+E)%4*8}else for(var T=0;T<A;T+=4)k[C+T>>>2]=j[T>>>2];return this.sigBytes+=A,this},clamp:function(){var O=this.words,k=this.sigBytes;O[k>>>2]&=4294967295<<32-k%4*8,O.length=n.ceil(k/4)},clone:function(){var O=u.clone.call(this);return O.words=this.words.slice(0),O},random:function(O){for(var k=[],j=0;j<O;j+=4)k.push(a());return new d.init(k,O)}}),h=l.enc={},g=h.Hex={stringify:function(O){for(var k=O.words,j=O.sigBytes,C=[],A=0;A<j;A++){var E=k[A>>>2]>>>24-A%4*8&255;C.push((E>>>4).toString(16)),C.push((E&15).toString(16))}return C.join("")},parse:function(O){for(var k=O.length,j=[],C=0;C<k;C+=2)j[C>>>3]|=parseInt(O.substr(C,2),16)<<24-C%8*4;return new d.init(j,k/2)}},v=h.Latin1={stringify:function(O){for(var k=O.words,j=O.sigBytes,C=[],A=0;A<j;A++){var E=k[A>>>2]>>>24-A%4*8&255;C.push(String.fromCharCode(E))}return C.join("")},parse:function(O){for(var k=O.length,j=[],C=0;C<k;C++)j[C>>>2]|=(O.charCodeAt(C)&255)<<24-C%4*8;return new d.init(j,k)}},b=h.Utf8={stringify:function(O){try{return decodeURIComponent(escape(v.stringify(O)))}catch{throw new Error("Malformed UTF-8 data")}},parse:function(O){return v.parse(unescape(encodeURIComponent(O)))}},y=c.BufferedBlockAlgorithm=u.extend({reset:function(){this._data=new d.init,this._nDataBytes=0},_append:function(O){typeof O=="string"&&(O=b.parse(O)),this._data.concat(O),this._nDataBytes+=O.sigBytes},_process:function(O){var k,j=this._data,C=j.words,A=j.sigBytes,E=this.blockSize,P=E*4,T=A/P;O?T=n.ceil(T):T=n.max((T|0)-this._minBufferSize,0);var I=T*E,L=n.min(I*4,A);if(I){for(var M=0;M<I;M+=E)this._doProcessBlock(C,M);k=C.splice(0,I),j.sigBytes-=L}return new d.init(k,L)},clone:function(){var O=u.clone.call(this);return O._data=this._data.clone(),O},_minBufferSize:0});c.Hasher=y.extend({cfg:u.extend(),init:function(O){this.cfg=this.cfg.extend(O),this.reset()},reset:function(){y.reset.call(this),this._doReset()},update:function(O){return this._append(O),this._process(),this},finalize:function(O){O&&this._append(O);var k=this._doFinalize();return k},blockSize:16,_createHelper:function(O){return function(k,j){return new O.init(j).finalize(k)}},_createHmacHelper:function(O){return function(k,j){return new x.HMAC.init(O,j).finalize(k)}}});var x=l.algo={};return l}(Math);return r})}(i8)),i8.exports}var a8={exports:{}},CIe=a8.exports,EW;function Iy(){return EW||(EW=1,function(e,t){(function(r,n){e.exports=n(lr())})(CIe,function(r){return function(n){var o=r,i=o.lib,a=i.Base,s=i.WordArray,l=o.x64={};l.Word=a.extend({init:function(c,u){this.high=c,this.low=u}}),l.WordArray=a.extend({init:function(c,u){c=this.words=c||[],u!=n?this.sigBytes=u:this.sigBytes=c.length*8},toX32:function(){for(var c=this.words,u=c.length,d=[],h=0;h<u;h++){var g=c[h];d.push(g.high),d.push(g.low)}return s.create(d,this.sigBytes)},clone:function(){for(var c=a.clone.call(this),u=c.words=this.words.slice(0),d=u.length,h=0;h<d;h++)u[h]=u[h].clone();return c}})}(),r})}(a8)),a8.exports}var s8={exports:{}},SIe=s8.exports,PW;function jIe(){return PW||(PW=1,function(e,t){(function(r,n){e.exports=n(lr())})(SIe,function(r){return function(){if(typeof ArrayBuffer=="function"){var n=r,o=n.lib,i=o.WordArray,a=i.init,s=i.init=function(l){if(l instanceof ArrayBuffer&&(l=new Uint8Array(l)),(l instanceof Int8Array||typeof Uint8ClampedArray<"u"&&l instanceof Uint8ClampedArray||l instanceof Int16Array||l instanceof Uint16Array||l instanceof Int32Array||l instanceof Uint32Array||l instanceof Float32Array||l instanceof Float64Array)&&(l=new Uint8Array(l.buffer,l.byteOffset,l.byteLength)),l instanceof Uint8Array){for(var c=l.byteLength,u=[],d=0;d<c;d++)u[d>>>2]|=l[d]<<24-d%4*8;a.call(this,u,c)}else a.apply(this,arguments)};s.prototype=i}}(),r.lib.WordArray})}(s8)),s8.exports}var l8={exports:{}},AIe=l8.exports,TW;function EIe(){return TW||(TW=1,function(e,t){(function(r,n){e.exports=n(lr())})(AIe,function(r){return function(){var n=r,o=n.lib,i=o.WordArray,a=n.enc;a.Utf16=a.Utf16BE={stringify:function(l){for(var c=l.words,u=l.sigBytes,d=[],h=0;h<u;h+=2){var g=c[h>>>2]>>>16-h%4*8&65535;d.push(String.fromCharCode(g))}return d.join("")},parse:function(l){for(var c=l.length,u=[],d=0;d<c;d++)u[d>>>1]|=l.charCodeAt(d)<<16-d%2*16;return i.create(u,c*2)}},a.Utf16LE={stringify:function(l){for(var c=l.words,u=l.sigBytes,d=[],h=0;h<u;h+=2){var g=s(c[h>>>2]>>>16-h%4*8&65535);d.push(String.fromCharCode(g))}return d.join("")},parse:function(l){for(var c=l.length,u=[],d=0;d<c;d++)u[d>>>1]|=s(l.charCodeAt(d)<<16-d%2*16);return i.create(u,c*2)}};function s(l){return l<<8&4278255360|l>>>8&16711935}}(),r.enc.Utf16})}(l8)),l8.exports}var c8={exports:{}},PIe=c8.exports,_W;function Ld(){return _W||(_W=1,function(e,t){(function(r,n){e.exports=n(lr())})(PIe,function(r){return function(){var n=r,o=n.lib,i=o.WordArray,a=n.enc;a.Base64={stringify:function(l){var c=l.words,u=l.sigBytes,d=this._map;l.clamp();for(var h=[],g=0;g<u;g+=3)for(var v=c[g>>>2]>>>24-g%4*8&255,b=c[g+1>>>2]>>>24-(g+1)%4*8&255,y=c[g+2>>>2]>>>24-(g+2)%4*8&255,x=v<<16|b<<8|y,O=0;O<4&&g+O*.75<u;O++)h.push(d.charAt(x>>>6*(3-O)&63));var k=d.charAt(64);if(k)for(;h.length%4;)h.push(k);return h.join("")},parse:function(l){var c=l.length,u=this._map,d=this._reverseMap;if(!d){d=this._reverseMap=[];for(var h=0;h<u.length;h++)d[u.charCodeAt(h)]=h}var g=u.charAt(64);if(g){var v=l.indexOf(g);v!==-1&&(c=v)}return s(l,c,d)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="};function s(l,c,u){for(var d=[],h=0,g=0;g<c;g++)if(g%4){var v=u[l.charCodeAt(g-1)]<<g%4*2,b=u[l.charCodeAt(g)]>>>6-g%4*2,y=v|b;d[h>>>2]|=y<<24-h%4*8,h++}return i.create(d,h)}}(),r.enc.Base64})}(c8)),c8.exports}var u8={exports:{}},TIe=u8.exports,$W;function _Ie(){return $W||($W=1,function(e,t){(function(r,n){e.exports=n(lr())})(TIe,function(r){return function(){var n=r,o=n.lib,i=o.WordArray,a=n.enc;a.Base64url={stringify:function(l,c){c===void 0&&(c=!0);var u=l.words,d=l.sigBytes,h=c?this._safe_map:this._map;l.clamp();for(var g=[],v=0;v<d;v+=3)for(var b=u[v>>>2]>>>24-v%4*8&255,y=u[v+1>>>2]>>>24-(v+1)%4*8&255,x=u[v+2>>>2]>>>24-(v+2)%4*8&255,O=b<<16|y<<8|x,k=0;k<4&&v+k*.75<d;k++)g.push(h.charAt(O>>>6*(3-k)&63));var j=h.charAt(64);if(j)for(;g.length%4;)g.push(j);return g.join("")},parse:function(l,c){c===void 0&&(c=!0);var u=l.length,d=c?this._safe_map:this._map,h=this._reverseMap;if(!h){h=this._reverseMap=[];for(var g=0;g<d.length;g++)h[d.charCodeAt(g)]=g}var v=d.charAt(64);if(v){var b=l.indexOf(v);b!==-1&&(u=b)}return s(l,u,h)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",_safe_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"};function s(l,c,u){for(var d=[],h=0,g=0;g<c;g++)if(g%4){var v=u[l.charCodeAt(g-1)]<<g%4*2,b=u[l.charCodeAt(g)]>>>6-g%4*2,y=v|b;d[h>>>2]|=y<<24-h%4*8,h++}return i.create(d,h)}}(),r.enc.Base64url})}(u8)),u8.exports}var d8={exports:{}},$Ie=d8.exports,RW;function Dd(){return RW||(RW=1,function(e,t){(function(r,n){e.exports=n(lr())})($Ie,function(r){return function(n){var o=r,i=o.lib,a=i.WordArray,s=i.Hasher,l=o.algo,c=[];(function(){for(var b=0;b<64;b++)c[b]=n.abs(n.sin(b+1))*4294967296|0})();var u=l.MD5=s.extend({_doReset:function(){this._hash=new a.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(b,y){for(var x=0;x<16;x++){var O=y+x,k=b[O];b[O]=(k<<8|k>>>24)&16711935|(k<<24|k>>>8)&4278255360}var j=this._hash.words,C=b[y+0],A=b[y+1],E=b[y+2],P=b[y+3],T=b[y+4],I=b[y+5],L=b[y+6],M=b[y+7],N=b[y+8],z=b[y+9],U=b[y+10],X=b[y+11],te=b[y+12],ee=b[y+13],se=b[y+14],W=b[y+15],Q=j[0],Y=j[1],q=j[2],H=j[3];Q=d(Q,Y,q,H,C,7,c[0]),H=d(H,Q,Y,q,A,12,c[1]),q=d(q,H,Q,Y,E,17,c[2]),Y=d(Y,q,H,Q,P,22,c[3]),Q=d(Q,Y,q,H,T,7,c[4]),H=d(H,Q,Y,q,I,12,c[5]),q=d(q,H,Q,Y,L,17,c[6]),Y=d(Y,q,H,Q,M,22,c[7]),Q=d(Q,Y,q,H,N,7,c[8]),H=d(H,Q,Y,q,z,12,c[9]),q=d(q,H,Q,Y,U,17,c[10]),Y=d(Y,q,H,Q,X,22,c[11]),Q=d(Q,Y,q,H,te,7,c[12]),H=d(H,Q,Y,q,ee,12,c[13]),q=d(q,H,Q,Y,se,17,c[14]),Y=d(Y,q,H,Q,W,22,c[15]),Q=h(Q,Y,q,H,A,5,c[16]),H=h(H,Q,Y,q,L,9,c[17]),q=h(q,H,Q,Y,X,14,c[18]),Y=h(Y,q,H,Q,C,20,c[19]),Q=h(Q,Y,q,H,I,5,c[20]),H=h(H,Q,Y,q,U,9,c[21]),q=h(q,H,Q,Y,W,14,c[22]),Y=h(Y,q,H,Q,T,20,c[23]),Q=h(Q,Y,q,H,z,5,c[24]),H=h(H,Q,Y,q,se,9,c[25]),q=h(q,H,Q,Y,P,14,c[26]),Y=h(Y,q,H,Q,N,20,c[27]),Q=h(Q,Y,q,H,ee,5,c[28]),H=h(H,Q,Y,q,E,9,c[29]),q=h(q,H,Q,Y,M,14,c[30]),Y=h(Y,q,H,Q,te,20,c[31]),Q=g(Q,Y,q,H,I,4,c[32]),H=g(H,Q,Y,q,N,11,c[33]),q=g(q,H,Q,Y,X,16,c[34]),Y=g(Y,q,H,Q,se,23,c[35]),Q=g(Q,Y,q,H,A,4,c[36]),H=g(H,Q,Y,q,T,11,c[37]),q=g(q,H,Q,Y,M,16,c[38]),Y=g(Y,q,H,Q,U,23,c[39]),Q=g(Q,Y,q,H,ee,4,c[40]),H=g(H,Q,Y,q,C,11,c[41]),q=g(q,H,Q,Y,P,16,c[42]),Y=g(Y,q,H,Q,L,23,c[43]),Q=g(Q,Y,q,H,z,4,c[44]),H=g(H,Q,Y,q,te,11,c[45]),q=g(q,H,Q,Y,W,16,c[46]),Y=g(Y,q,H,Q,E,23,c[47]),Q=v(Q,Y,q,H,C,6,c[48]),H=v(H,Q,Y,q,M,10,c[49]),q=v(q,H,Q,Y,se,15,c[50]),Y=v(Y,q,H,Q,I,21,c[51]),Q=v(Q,Y,q,H,te,6,c[52]),H=v(H,Q,Y,q,P,10,c[53]),q=v(q,H,Q,Y,U,15,c[54]),Y=v(Y,q,H,Q,A,21,c[55]),Q=v(Q,Y,q,H,N,6,c[56]),H=v(H,Q,Y,q,W,10,c[57]),q=v(q,H,Q,Y,L,15,c[58]),Y=v(Y,q,H,Q,ee,21,c[59]),Q=v(Q,Y,q,H,T,6,c[60]),H=v(H,Q,Y,q,X,10,c[61]),q=v(q,H,Q,Y,E,15,c[62]),Y=v(Y,q,H,Q,z,21,c[63]),j[0]=j[0]+Q|0,j[1]=j[1]+Y|0,j[2]=j[2]+q|0,j[3]=j[3]+H|0},_doFinalize:function(){var b=this._data,y=b.words,x=this._nDataBytes*8,O=b.sigBytes*8;y[O>>>5]|=128<<24-O%32;var k=n.floor(x/4294967296),j=x;y[(O+64>>>9<<4)+15]=(k<<8|k>>>24)&16711935|(k<<24|k>>>8)&4278255360,y[(O+64>>>9<<4)+14]=(j<<8|j>>>24)&16711935|(j<<24|j>>>8)&4278255360,b.sigBytes=(y.length+1)*4,this._process();for(var C=this._hash,A=C.words,E=0;E<4;E++){var P=A[E];A[E]=(P<<8|P>>>24)&16711935|(P<<24|P>>>8)&4278255360}return C},clone:function(){var b=s.clone.call(this);return b._hash=this._hash.clone(),b}});function d(b,y,x,O,k,j,C){var A=b+(y&x|~y&O)+k+C;return(A<<j|A>>>32-j)+y}function h(b,y,x,O,k,j,C){var A=b+(y&O|x&~O)+k+C;return(A<<j|A>>>32-j)+y}function g(b,y,x,O,k,j,C){var A=b+(y^x^O)+k+C;return(A<<j|A>>>32-j)+y}function v(b,y,x,O,k,j,C){var A=b+(x^(y|~O))+k+C;return(A<<j|A>>>32-j)+y}o.MD5=s._createHelper(u),o.HmacMD5=s._createHmacHelper(u)}(Math),r.MD5})}(d8)),d8.exports}var p8={exports:{}},RIe=p8.exports,IW;function MW(){return IW||(IW=1,function(e,t){(function(r,n){e.exports=n(lr())})(RIe,function(r){return function(){var n=r,o=n.lib,i=o.WordArray,a=o.Hasher,s=n.algo,l=[],c=s.SHA1=a.extend({_doReset:function(){this._hash=new i.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(u,d){for(var h=this._hash.words,g=h[0],v=h[1],b=h[2],y=h[3],x=h[4],O=0;O<80;O++){if(O<16)l[O]=u[d+O]|0;else{var k=l[O-3]^l[O-8]^l[O-14]^l[O-16];l[O]=k<<1|k>>>31}var j=(g<<5|g>>>27)+x+l[O];O<20?j+=(v&b|~v&y)+1518500249:O<40?j+=(v^b^y)+1859775393:O<60?j+=(v&b|v&y|b&y)-1894007588:j+=(v^b^y)-899497514,x=y,y=b,b=v<<30|v>>>2,v=g,g=j}h[0]=h[0]+g|0,h[1]=h[1]+v|0,h[2]=h[2]+b|0,h[3]=h[3]+y|0,h[4]=h[4]+x|0},_doFinalize:function(){var u=this._data,d=u.words,h=this._nDataBytes*8,g=u.sigBytes*8;return d[g>>>5]|=128<<24-g%32,d[(g+64>>>9<<4)+14]=Math.floor(h/4294967296),d[(g+64>>>9<<4)+15]=h,u.sigBytes=d.length*4,this._process(),this._hash},clone:function(){var u=a.clone.call(this);return u._hash=this._hash.clone(),u}});n.SHA1=a._createHelper(c),n.HmacSHA1=a._createHmacHelper(c)}(),r.SHA1})}(p8)),p8.exports}var h8={exports:{}},IIe=h8.exports,zW;function f8(){return zW||(zW=1,function(e,t){(function(r,n){e.exports=n(lr())})(IIe,function(r){return function(n){var o=r,i=o.lib,a=i.WordArray,s=i.Hasher,l=o.algo,c=[],u=[];(function(){function g(x){for(var O=n.sqrt(x),k=2;k<=O;k++)if(!(x%k))return!1;return!0}function v(x){return(x-(x|0))*4294967296|0}for(var b=2,y=0;y<64;)g(b)&&(y<8&&(c[y]=v(n.pow(b,1/2))),u[y]=v(n.pow(b,1/3)),y++),b++})();var d=[],h=l.SHA256=s.extend({_doReset:function(){this._hash=new a.init(c.slice(0))},_doProcessBlock:function(g,v){for(var b=this._hash.words,y=b[0],x=b[1],O=b[2],k=b[3],j=b[4],C=b[5],A=b[6],E=b[7],P=0;P<64;P++){if(P<16)d[P]=g[v+P]|0;else{var T=d[P-15],I=(T<<25|T>>>7)^(T<<14|T>>>18)^T>>>3,L=d[P-2],M=(L<<15|L>>>17)^(L<<13|L>>>19)^L>>>10;d[P]=I+d[P-7]+M+d[P-16]}var N=j&C^~j&A,z=y&x^y&O^x&O,U=(y<<30|y>>>2)^(y<<19|y>>>13)^(y<<10|y>>>22),X=(j<<26|j>>>6)^(j<<21|j>>>11)^(j<<7|j>>>25),te=E+X+N+u[P]+d[P],ee=U+z;E=A,A=C,C=j,j=k+te|0,k=O,O=x,x=y,y=te+ee|0}b[0]=b[0]+y|0,b[1]=b[1]+x|0,b[2]=b[2]+O|0,b[3]=b[3]+k|0,b[4]=b[4]+j|0,b[5]=b[5]+C|0,b[6]=b[6]+A|0,b[7]=b[7]+E|0},_doFinalize:function(){var g=this._data,v=g.words,b=this._nDataBytes*8,y=g.sigBytes*8;return v[y>>>5]|=128<<24-y%32,v[(y+64>>>9<<4)+14]=n.floor(b/4294967296),v[(y+64>>>9<<4)+15]=b,g.sigBytes=v.length*4,this._process(),this._hash},clone:function(){var g=s.clone.call(this);return g._hash=this._hash.clone(),g}});o.SHA256=s._createHelper(h),o.HmacSHA256=s._createHmacHelper(h)}(Math),r.SHA256})}(h8)),h8.exports}var g8={exports:{}},MIe=g8.exports,LW;function zIe(){return LW||(LW=1,function(e,t){(function(r,n,o){e.exports=n(lr(),f8())})(MIe,function(r){return function(){var n=r,o=n.lib,i=o.WordArray,a=n.algo,s=a.SHA256,l=a.SHA224=s.extend({_doReset:function(){this._hash=new i.init([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428])},_doFinalize:function(){var c=s._doFinalize.call(this);return c.sigBytes-=4,c}});n.SHA224=s._createHelper(l),n.HmacSHA224=s._createHmacHelper(l)}(),r.SHA224})}(g8)),g8.exports}var m8={exports:{}},LIe=m8.exports,DW;function NW(){return DW||(DW=1,function(e,t){(function(r,n,o){e.exports=n(lr(),Iy())})(LIe,function(r){return function(){var n=r,o=n.lib,i=o.Hasher,a=n.x64,s=a.Word,l=a.WordArray,c=n.algo;function u(){return s.create.apply(s,arguments)}var d=[u(1116352408,3609767458),u(1899447441,602891725),u(3049323471,3964484399),u(3921009573,2173295548),u(961987163,4081628472),u(1508970993,3053834265),u(2453635748,2937671579),u(2870763221,3664609560),u(3624381080,2734883394),u(310598401,1164996542),u(607225278,1323610764),u(1426881987,3590304994),u(1925078388,4068182383),u(2162078206,991336113),u(2614888103,633803317),u(3248222580,3479774868),u(3835390401,2666613458),u(4022224774,944711139),u(264347078,2341262773),u(604807628,2007800933),u(770255983,1495990901),u(1249150122,1856431235),u(1555081692,3175218132),u(1996064986,2198950837),u(2554220882,3999719339),u(2821834349,766784016),u(2952996808,2566594879),u(3210313671,3203337956),u(3336571891,1034457026),u(3584528711,2466948901),u(113926993,3758326383),u(338241895,168717936),u(666307205,1188179964),u(773529912,1546045734),u(1294757372,1522805485),u(1396182291,2643833823),u(1695183700,2343527390),u(1986661051,1014477480),u(2177026350,1206759142),u(2456956037,344077627),u(2730485921,1290863460),u(2820302411,3158454273),u(3259730800,3505952657),u(3345764771,106217008),u(3516065817,3606008344),u(3600352804,1432725776),u(4094571909,1467031594),u(275423344,851169720),u(430227734,3100823752),u(506948616,1363258195),u(659060556,3750685593),u(883997877,3785050280),u(958139571,3318307427),u(1322822218,3812723403),u(1537002063,2003034995),u(1747873779,3602036899),u(1955562222,1575990012),u(2024104815,1125592928),u(2227730452,2716904306),u(2361852424,442776044),u(2428436474,593698344),u(2756734187,3733110249),u(3204031479,2999351573),u(3329325298,3815920427),u(3391569614,3928383900),u(3515267271,566280711),u(3940187606,3454069534),u(4118630271,4000239992),u(116418474,1914138554),u(174292421,2731055270),u(289380356,3203993006),u(460393269,320620315),u(685471733,587496836),u(852142971,1086792851),u(1017036298,365543100),u(1126000580,2618297676),u(1288033470,3409855158),u(1501505948,4234509866),u(1607167915,987167468),u(1816402316,1246189591)],h=[];(function(){for(var v=0;v<80;v++)h[v]=u()})();var g=c.SHA512=i.extend({_doReset:function(){this._hash=new l.init([new s.init(1779033703,4089235720),new s.init(3144134277,2227873595),new s.init(1013904242,4271175723),new s.init(2773480762,1595750129),new s.init(1359893119,2917565137),new s.init(2600822924,725511199),new s.init(528734635,4215389547),new s.init(1541459225,327033209)])},_doProcessBlock:function(v,b){for(var y=this._hash.words,x=y[0],O=y[1],k=y[2],j=y[3],C=y[4],A=y[5],E=y[6],P=y[7],T=x.high,I=x.low,L=O.high,M=O.low,N=k.high,z=k.low,U=j.high,X=j.low,te=C.high,ee=C.low,se=A.high,W=A.low,Q=E.high,Y=E.low,q=P.high,H=P.low,re=T,G=I,oe=L,ne=M,be=N,ve=z,_=U,Z=X,fe=te,F=ee,he=se,ue=W,K=Q,ae=Y,le=q,Ce=H,Se=0;Se<80;Se++){var me,ye,xe=h[Se];if(Se<16)ye=xe.high=v[b+Se*2]|0,me=xe.low=v[b+Se*2+1]|0;else{var Ee=h[Se-15],Ue=Ee.high,B=Ee.low,J=(Ue>>>1|B<<31)^(Ue>>>8|B<<24)^Ue>>>7,ce=(B>>>1|Ue<<31)^(B>>>8|Ue<<24)^(B>>>7|Ue<<25),je=h[Se-2],$e=je.high,Be=je.low,qe=($e>>>19|Be<<13)^($e<<3|Be>>>29)^$e>>>6,pt=(Be>>>19|$e<<13)^(Be<<3|$e>>>29)^(Be>>>6|$e<<26),Dt=h[Se-7],wt=Dt.high,bt=Dt.low,Ut=h[Se-16],jo=Ut.high,ro=Ut.low;me=ce+bt,ye=J+wt+(me>>>0<ce>>>0?1:0),me=me+pt,ye=ye+qe+(me>>>0<pt>>>0?1:0),me=me+ro,ye=ye+jo+(me>>>0<ro>>>0?1:0),xe.high=ye,xe.low=me}var Vo=fe&he^~fe&K,rn=F&ue^~F&ae,yn=re&oe^re&be^oe&be,Cn=G&ne^G&ve^ne&ve,Cr=(re>>>28|G<<4)^(re<<30|G>>>2)^(re<<25|G>>>7),Sr=(G>>>28|re<<4)^(G<<30|re>>>2)^(G<<25|re>>>7),vo=(fe>>>14|F<<18)^(fe>>>18|F<<14)^(fe<<23|F>>>9),ar=(F>>>14|fe<<18)^(F>>>18|fe<<14)^(F<<23|fe>>>9),sr=d[Se],Wr=sr.high,wr=sr.low,we=Ce+ar,st=le+vo+(we>>>0<Ce>>>0?1:0),we=we+rn,st=st+Vo+(we>>>0<rn>>>0?1:0),we=we+wr,st=st+Wr+(we>>>0<wr>>>0?1:0),we=we+me,st=st+ye+(we>>>0<me>>>0?1:0),xn=Sr+Cn,Ao=Cr+yn+(xn>>>0<Sr>>>0?1:0);le=K,Ce=ae,K=he,ae=ue,he=fe,ue=F,F=Z+we|0,fe=_+st+(F>>>0<Z>>>0?1:0)|0,_=be,Z=ve,be=oe,ve=ne,oe=re,ne=G,G=we+xn|0,re=st+Ao+(G>>>0<we>>>0?1:0)|0}I=x.low=I+G,x.high=T+re+(I>>>0<G>>>0?1:0),M=O.low=M+ne,O.high=L+oe+(M>>>0<ne>>>0?1:0),z=k.low=z+ve,k.high=N+be+(z>>>0<ve>>>0?1:0),X=j.low=X+Z,j.high=U+_+(X>>>0<Z>>>0?1:0),ee=C.low=ee+F,C.high=te+fe+(ee>>>0<F>>>0?1:0),W=A.low=W+ue,A.high=se+he+(W>>>0<ue>>>0?1:0),Y=E.low=Y+ae,E.high=Q+K+(Y>>>0<ae>>>0?1:0),H=P.low=H+Ce,P.high=q+le+(H>>>0<Ce>>>0?1:0)},_doFinalize:function(){var v=this._data,b=v.words,y=this._nDataBytes*8,x=v.sigBytes*8;b[x>>>5]|=128<<24-x%32,b[(x+128>>>10<<5)+30]=Math.floor(y/4294967296),b[(x+128>>>10<<5)+31]=y,v.sigBytes=b.length*4,this._process();var O=this._hash.toX32();return O},clone:function(){var v=i.clone.call(this);return v._hash=this._hash.clone(),v},blockSize:1024/32});n.SHA512=i._createHelper(g),n.HmacSHA512=i._createHmacHelper(g)}(),r.SHA512})}(m8)),m8.exports}var v8={exports:{}},DIe=v8.exports,BW;function NIe(){return BW||(BW=1,function(e,t){(function(r,n,o){e.exports=n(lr(),Iy(),NW())})(DIe,function(r){return function(){var n=r,o=n.x64,i=o.Word,a=o.WordArray,s=n.algo,l=s.SHA512,c=s.SHA384=l.extend({_doReset:function(){this._hash=new a.init([new i.init(3418070365,3238371032),new i.init(1654270250,914150663),new i.init(2438529370,812702999),new i.init(355462360,4144912697),new i.init(1731405415,4290775857),new i.init(2394180231,1750603025),new i.init(3675008525,1694076839),new i.init(1203062813,3204075428)])},_doFinalize:function(){var u=l._doFinalize.call(this);return u.sigBytes-=16,u}});n.SHA384=l._createHelper(c),n.HmacSHA384=l._createHmacHelper(c)}(),r.SHA384})}(v8)),v8.exports}var b8={exports:{}},BIe=b8.exports,VW;function VIe(){return VW||(VW=1,function(e,t){(function(r,n,o){e.exports=n(lr(),Iy())})(BIe,function(r){return function(n){var o=r,i=o.lib,a=i.WordArray,s=i.Hasher,l=o.x64,c=l.Word,u=o.algo,d=[],h=[],g=[];(function(){for(var y=1,x=0,O=0;O<24;O++){d[y+5*x]=(O+1)*(O+2)/2%64;var k=x%5,j=(2*y+3*x)%5;y=k,x=j}for(var y=0;y<5;y++)for(var x=0;x<5;x++)h[y+5*x]=x+(2*y+3*x)%5*5;for(var C=1,A=0;A<24;A++){for(var E=0,P=0,T=0;T<7;T++){if(C&1){var I=(1<<T)-1;I<32?P^=1<<I:E^=1<<I-32}C&128?C=C<<1^113:C<<=1}g[A]=c.create(E,P)}})();var v=[];(function(){for(var y=0;y<25;y++)v[y]=c.create()})();var b=u.SHA3=s.extend({cfg:s.cfg.extend({outputLength:512}),_doReset:function(){for(var y=this._state=[],x=0;x<25;x++)y[x]=new c.init;this.blockSize=(1600-2*this.cfg.outputLength)/32},_doProcessBlock:function(y,x){for(var O=this._state,k=this.blockSize/2,j=0;j<k;j++){var C=y[x+2*j],A=y[x+2*j+1];C=(C<<8|C>>>24)&16711935|(C<<24|C>>>8)&4278255360,A=(A<<8|A>>>24)&16711935|(A<<24|A>>>8)&4278255360;var E=O[j];E.high^=A,E.low^=C}for(var P=0;P<24;P++){for(var T=0;T<5;T++){for(var I=0,L=0,M=0;M<5;M++){var E=O[T+5*M];I^=E.high,L^=E.low}var N=v[T];N.high=I,N.low=L}for(var T=0;T<5;T++)for(var z=v[(T+4)%5],U=v[(T+1)%5],X=U.high,te=U.low,I=z.high^(X<<1|te>>>31),L=z.low^(te<<1|X>>>31),M=0;M<5;M++){var E=O[T+5*M];E.high^=I,E.low^=L}for(var ee=1;ee<25;ee++){var I,L,E=O[ee],se=E.high,W=E.low,Q=d[ee];Q<32?(I=se<<Q|W>>>32-Q,L=W<<Q|se>>>32-Q):(I=W<<Q-32|se>>>64-Q,L=se<<Q-32|W>>>64-Q);var Y=v[h[ee]];Y.high=I,Y.low=L}var q=v[0],H=O[0];q.high=H.high,q.low=H.low;for(var T=0;T<5;T++)for(var M=0;M<5;M++){var ee=T+5*M,E=O[ee],re=v[ee],G=v[(T+1)%5+5*M],oe=v[(T+2)%5+5*M];E.high=re.high^~G.high&oe.high,E.low=re.low^~G.low&oe.low}var E=O[0],ne=g[P];E.high^=ne.high,E.low^=ne.low}},_doFinalize:function(){var y=this._data,x=y.words,O=y.sigBytes*8,k=this.blockSize*32;x[O>>>5]|=1<<24-O%32,x[(n.ceil((O+1)/k)*k>>>5)-1]|=128,y.sigBytes=x.length*4,this._process();for(var j=this._state,C=this.cfg.outputLength/8,A=C/8,E=[],P=0;P<A;P++){var T=j[P],I=T.high,L=T.low;I=(I<<8|I>>>24)&16711935|(I<<24|I>>>8)&4278255360,L=(L<<8|L>>>24)&16711935|(L<<24|L>>>8)&4278255360,E.push(L),E.push(I)}return new a.init(E,C)},clone:function(){for(var y=s.clone.call(this),x=y._state=this._state.slice(0),O=0;O<25;O++)x[O]=x[O].clone();return y}});o.SHA3=s._createHelper(b),o.HmacSHA3=s._createHmacHelper(b)}(Math),r.SHA3})}(b8)),b8.exports}var y8={exports:{}},FIe=y8.exports,FW;function QIe(){return FW||(FW=1,function(e,t){(function(r,n){e.exports=n(lr())})(FIe,function(r){/** @preserve
|
|
10473
10473
|
(c) 2012 by Cédric Mesnil. All rights reserved.
|
|
10474
10474
|
|
|
10475
10475
|
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
|